/*! For license information please see common2.js.LICENSE.txt */
(() => {
    var __webpack_modules__ = {
        1073: t => {
            t.exports = {
                trueFunc: function () {
                    return !0
                }, falseFunc: function () {
                    return !1
                }
            }
        }, 9125: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.groupSelectors = e.getDocumentRoot = void 0;
            var i = n(2515);
            e.getDocumentRoot = function (t) {
                for (; t.parent;) t = t.parent;
                return t
            }, e.groupSelectors = function (t) {
                for (var e = [], n = [], r = 0, o = t; r < o.length; r++) {
                    var a = o[r];
                    a.some(i.isFilter) ? e.push(a) : n.push(a)
                }
                return [n, e]
            }
        }, 7248: function (t, e, n) {
            "use strict";
            var i = this && this.__assign || function () {
                return i = Object.assign || function (t) {
                    for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
                    return t
                }, i.apply(this, arguments)
            }, r = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), o = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), a = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && r(e, t, n);
                return o(e, t), e
            }, s = this && this.__spreadArray || function (t, e, n) {
                if (n || 2 === arguments.length) for (var i, r = 0, o = e.length; r < o; r++) !i && r in e || (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
                return t.concat(i || Array.prototype.slice.call(e))
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.select = e.filter = e.some = e.is = e.aliases = e.pseudos = e.filters = void 0;
            var l = n(7763), u = n(5366), c = a(n(9432)), h = a(n(1073)), d = n(9125), p = n(2515), f = n(5366);
            Object.defineProperty(e, "filters", {
                enumerable: !0, get: function () {
                    return f.filters
                }
            }), Object.defineProperty(e, "pseudos", {
                enumerable: !0, get: function () {
                    return f.pseudos
                }
            }), Object.defineProperty(e, "aliases", {
                enumerable: !0, get: function () {
                    return f.aliases
                }
            });
            var g = {type: l.SelectorType.Universal, namespace: null},
                m = {type: l.SelectorType.Pseudo, name: "scope", data: null};

            function y(t, e, n) {
                if (void 0 === n && (n = {}), "function" == typeof e) return t.some(e);
                var i = (0, d.groupSelectors)((0, l.parse)(e)), r = i[0], o = i[1];
                return r.length > 0 && t.some((0, u._compileToken)(r, n)) || o.some((function (e) {
                    return _(e, t, n).length > 0
                }))
            }

            function v(t, e, n) {
                if (0 === e.length) return [];
                var i, r = (0, d.groupSelectors)(t), o = r[0], a = r[1];
                if (o.length) {
                    var s = A(e, o, n);
                    if (0 === a.length) return s;
                    s.length && (i = new Set(s))
                }
                for (var l = 0; l < a.length && (null == i ? void 0 : i.size) !== e.length; l++) {
                    var u = a[l];
                    if (0 === (i ? e.filter((function (t) {
                        return c.isTag(t) && !i.has(t)
                    })) : e).length) break;
                    if ((s = _(u, e, n)).length) if (i) s.forEach((function (t) {
                        return i.add(t)
                    })); else {
                        if (l === a.length - 1) return s;
                        i = new Set(s)
                    }
                }
                return void 0 !== i ? i.size === e.length ? e : e.filter((function (t) {
                    return i.has(t)
                })) : []
            }

            function _(t, e, n) {
                var r;
                if (t.some(l.isTraversal)) {
                    var o = null !== (r = n.root) && void 0 !== r ? r : (0, d.getDocumentRoot)(e[0]),
                        a = i(i({}, n), {context: e, relativeSelector: !1});
                    return t.push(m), T(o, t, a, !0, e.length)
                }
                return T(e, t, n, !1, e.length)
            }

            function T(t, e, n, r, o) {
                var a = e.findIndex(p.isFilter), s = e.slice(0, a), d = e[a], f = e.length - 1 === a ? o : 1 / 0,
                    m = (0, p.getLimit)(d.name, d.data, f);
                if (0 === m) return [];
                var y = (0 !== s.length || Array.isArray(t) ? 0 === s.length ? (Array.isArray(t) ? t : [t]).filter(c.isTag) : r || s.some(l.isTraversal) ? x(t, [s], n, m) : A(t, [s], n) : c.getChildren(t).filter(c.isTag)).slice(0, m),
                    _ = function (t, e, n, i) {
                        var r = "string" == typeof n ? parseInt(n, 10) : NaN;
                        switch (t) {
                            case"first":
                            case"lt":
                                return e;
                            case"last":
                                return e.length > 0 ? [e[e.length - 1]] : e;
                            case"nth":
                            case"eq":
                                return isFinite(r) && Math.abs(r) < e.length ? [r < 0 ? e[e.length + r] : e[r]] : [];
                            case"gt":
                                return isFinite(r) ? e.slice(r + 1) : [];
                            case"even":
                                return e.filter((function (t, e) {
                                    return e % 2 == 0
                                }));
                            case"odd":
                                return e.filter((function (t, e) {
                                    return e % 2 == 1
                                }));
                            case"not":
                                var o = new Set(v(n, e, i));
                                return e.filter((function (t) {
                                    return !o.has(t)
                                }))
                        }
                    }(d.name, y, d.data, n);
                if (0 === _.length || e.length === a + 1) return _;
                var S = e.slice(a + 1), b = S.some(l.isTraversal);
                if (b) {
                    if ((0, l.isTraversal)(S[0])) {
                        var I = S[0].type;
                        I !== l.SelectorType.Sibling && I !== l.SelectorType.Adjacent || (_ = (0, u.prepareContext)(_, c, !0)), S.unshift(g)
                    }
                    n = i(i({}, n), {
                        relativeSelector: !1, rootFunc: function (t) {
                            return _.includes(t)
                        }
                    })
                } else n.rootFunc && n.rootFunc !== h.trueFunc && (n = i(i({}, n), {rootFunc: h.trueFunc}));
                return S.some(p.isFilter) ? T(_, S, n, !1, o) : b ? x(_, [S], n, o) : A(_, [S], n)
            }

            function x(t, e, n, i) {
                return S(t, (0, u._compileToken)(e, n, t), i)
            }

            function S(t, e, n) {
                void 0 === n && (n = 1 / 0);
                var i = (0, u.prepareContext)(t, c, e.shouldTestNextSiblings);
                return c.find((function (t) {
                    return c.isTag(t) && e(t)
                }), i, !0, n)
            }

            function A(t, e, n) {
                var i = (Array.isArray(t) ? t : [t]).filter(c.isTag);
                if (0 === i.length) return i;
                var r = (0, u._compileToken)(e, n);
                return r === h.trueFunc ? i : i.filter(r)
            }

            e.is = function (t, e, n) {
                return void 0 === n && (n = {}), y([t], e, n)
            }, e.some = y, e.filter = function (t, e, n) {
                return void 0 === n && (n = {}), v((0, l.parse)(t), e, n)
            }, e.select = function (t, e, n, i) {
                if (void 0 === n && (n = {}), void 0 === i && (i = 1 / 0), "function" == typeof t) return S(e, t);
                var r = (0, d.groupSelectors)((0, l.parse)(t)), o = r[0], a = r[1].map((function (t) {
                    return T(e, t, n, !0, i)
                }));
                return o.length && a.push(x(e, o, n, i)), 0 === a.length ? [] : 1 === a.length ? a[0] : c.uniqueSort(a.reduce((function (t, e) {
                    return s(s([], t, !0), e, !0)
                })))
            }
        }, 2515: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.getLimit = e.isFilter = e.filterNames = void 0, e.filterNames = new Set(["first", "last", "eq", "gt", "nth", "lt", "even", "odd"]), e.isFilter = function t(n) {
                return "pseudo" === n.type && (!!e.filterNames.has(n.name) || !("not" !== n.name || !Array.isArray(n.data)) && n.data.some((function (e) {
                    return e.some(t)
                })))
            }, e.getLimit = function (t, e, n) {
                var i = null != e ? parseInt(e, 10) : NaN;
                switch (t) {
                    case"first":
                        return 1;
                    case"nth":
                    case"eq":
                        return isFinite(i) ? i >= 0 ? i + 1 : 1 / 0 : 0;
                    case"lt":
                        return isFinite(i) ? i >= 0 ? Math.min(i, n) : 1 / 0 : 0;
                    case"gt":
                        return isFinite(i) ? 1 / 0 : 0;
                    case"odd":
                        return 2 * n;
                    case"even":
                        return 2 * n - 1;
                    case"last":
                    case"not":
                        return 1 / 0
                }
            }
        }, 6451: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.toggleClass = e.removeClass = e.addClass = e.hasClass = e.removeAttr = e.val = e.data = e.prop = e.attr = void 0;
            var i = n(6634), r = n(5633), o = n(9432), a = Object.prototype.hasOwnProperty, s = /\s+/, l = "data-",
                u = {null: null, true: !0, false: !1},
                c = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
                h = /^{[^]*}$|^\[[^]*]$/;

            function d(t, e, n) {
                var o;
                if (t && (0, r.isTag)(t)) return null !== (o = t.attribs) && void 0 !== o || (t.attribs = {}), e ? a.call(t.attribs, e) ? !n && c.test(e) ? e : t.attribs[e] : "option" === t.name && "value" === e ? (0, i.text)(t.children) : "input" !== t.name || "radio" !== t.attribs.type && "checkbox" !== t.attribs.type || "value" !== e ? void 0 : "on" : t.attribs
            }

            function p(t, e, n) {
                null === n ? v(t, e) : t.attribs[e] = "".concat(n)
            }

            function f(t, e, n) {
                return e in t ? t[e] : !n && c.test(e) ? void 0 !== d(t, e, !1) : d(t, e, n)
            }

            function g(t, e, n, i) {
                e in t ? t[e] = n : p(t, e, !i && c.test(e) ? n ? "" : null : "".concat(n))
            }

            function m(t, e, n) {
                var i, r = t;
                null !== (i = r.data) && void 0 !== i || (r.data = {}), "object" == typeof e ? Object.assign(r.data, e) : "string" == typeof e && void 0 !== n && (r.data[e] = n)
            }

            function y(t, e) {
                var n, i, o;
                null == e ? i = (n = Object.keys(t.attribs).filter((function (t) {
                    return t.startsWith(l)
                }))).map((function (t) {
                    return (0, r.camelCase)(t.slice(l.length))
                })) : (n = [l + (0, r.cssCase)(e)], i = [e]);
                for (var s = 0; s < n.length; ++s) {
                    var c = n[s], d = i[s];
                    if (a.call(t.attribs, c) && !a.call(t.data, d)) {
                        if (o = t.attribs[c], a.call(u, o)) o = u[o]; else if (o === String(Number(o))) o = Number(o); else if (h.test(o)) try {
                            o = JSON.parse(o)
                        } catch (t) {
                        }
                        t.data[d] = o
                    }
                }
                return null == e ? t.data : o
            }

            function v(t, e) {
                t.attribs && a.call(t.attribs, e) && delete t.attribs[e]
            }

            function _(t) {
                return t ? t.trim().split(s) : []
            }

            e.attr = function (t, e) {
                if ("object" == typeof t || void 0 !== e) {
                    if ("function" == typeof e) {
                        if ("string" != typeof t) throw new Error("Bad combination of arguments.");
                        return (0, r.domEach)(this, (function (n, i) {
                            (0, r.isTag)(n) && p(n, t, e.call(n, i, n.attribs[t]))
                        }))
                    }
                    return (0, r.domEach)(this, (function (n) {
                        (0, r.isTag)(n) && ("object" == typeof t ? Object.keys(t).forEach((function (e) {
                            var i = t[e];
                            p(n, e, i)
                        })) : p(n, t, e))
                    }))
                }
                return arguments.length > 1 ? this : d(this[0], t, this.options.xmlMode)
            }, e.prop = function (t, e) {
                var n, i = this;
                if ("string" == typeof t && void 0 === e) {
                    var a = this[0];
                    if (!a || !(0, r.isTag)(a)) return;
                    switch (t) {
                        case"style":
                            var s = this.css(), l = Object.keys(s);
                            return l.forEach((function (t, e) {
                                s[e] = t
                            })), s.length = l.length, s;
                        case"tagName":
                        case"nodeName":
                            return a.name.toUpperCase();
                        case"href":
                        case"src":
                            var u = null === (n = a.attribs) || void 0 === n ? void 0 : n[t];
                            return "undefined" == typeof URL || ("href" !== t || "a" !== a.tagName && "link" !== a.name) && ("src" !== t || "img" !== a.tagName && "iframe" !== a.tagName && "audio" !== a.tagName && "video" !== a.tagName && "source" !== a.tagName) || void 0 === u || !this.options.baseURI ? u : new URL(u, this.options.baseURI).href;
                        case"innerText":
                            return (0, o.innerText)(a);
                        case"textContent":
                            return (0, o.textContent)(a);
                        case"outerHTML":
                            return this.clone().wrap("<container />").parent().html();
                        case"innerHTML":
                            return this.html();
                        default:
                            return f(a, t, this.options.xmlMode)
                    }
                }
                if ("object" == typeof t || void 0 !== e) {
                    if ("function" == typeof e) {
                        if ("object" == typeof t) throw new Error("Bad combination of arguments.");
                        return (0, r.domEach)(this, (function (n, o) {
                            (0, r.isTag)(n) && g(n, t, e.call(n, o, f(n, t, i.options.xmlMode)), i.options.xmlMode)
                        }))
                    }
                    return (0, r.domEach)(this, (function (n) {
                        (0, r.isTag)(n) && ("object" == typeof t ? Object.keys(t).forEach((function (e) {
                            var r = t[e];
                            g(n, e, r, i.options.xmlMode)
                        })) : g(n, t, e, i.options.xmlMode))
                    }))
                }
            }, e.data = function (t, e) {
                var n, i = this[0];
                if (i && (0, r.isTag)(i)) {
                    var o = i;
                    return null !== (n = o.data) && void 0 !== n || (o.data = {}), t ? "object" == typeof t || void 0 !== e ? ((0, r.domEach)(this, (function (n) {
                        (0, r.isTag)(n) && ("object" == typeof t ? m(n, t) : m(n, t, e))
                    })), this) : a.call(o.data, t) ? o.data[t] : y(o, t) : y(o)
                }
            }, e.val = function (t) {
                var e = 0 === arguments.length, n = this[0];
                if (!n || !(0, r.isTag)(n)) return e ? void 0 : this;
                switch (n.name) {
                    case"textarea":
                        return this.text(t);
                    case"select":
                        var o = this.find("option:selected");
                        if (!e) {
                            if (null == this.attr("multiple") && "object" == typeof t) return this;
                            this.find("option").removeAttr("selected");
                            for (var a = "object" != typeof t ? [t] : t, s = 0; s < a.length; s++) this.find('option[value="'.concat(a[s], '"]')).attr("selected", "");
                            return this
                        }
                        return this.attr("multiple") ? o.toArray().map((function (t) {
                            return (0, i.text)(t.children)
                        })) : o.attr("value");
                    case"input":
                    case"option":
                        return e ? this.attr("value") : this.attr("value", t)
                }
            }, e.removeAttr = function (t) {
                for (var e = _(t), n = function (t) {
                    (0, r.domEach)(i, (function (n) {
                        (0, r.isTag)(n) && v(n, e[t])
                    }))
                }, i = this, o = 0; o < e.length; o++) n(o);
                return this
            }, e.hasClass = function (t) {
                return this.toArray().some((function (e) {
                    var n = (0, r.isTag)(e) && e.attribs.class, i = -1;
                    if (n && t.length) for (; (i = n.indexOf(t, i + 1)) > -1;) {
                        var o = i + t.length;
                        if ((0 === i || s.test(n[i - 1])) && (o === n.length || s.test(n[o]))) return !0
                    }
                    return !1
                }))
            }, e.addClass = function t(e) {
                if ("function" == typeof e) return (0, r.domEach)(this, (function (n, i) {
                    if ((0, r.isTag)(n)) {
                        var o = n.attribs.class || "";
                        t.call([n], e.call(n, i, o))
                    }
                }));
                if (!e || "string" != typeof e) return this;
                for (var n = e.split(s), i = this.length, o = 0; o < i; o++) {
                    var a = this[o];
                    if ((0, r.isTag)(a)) {
                        var l = d(a, "class", !1);
                        if (l) {
                            for (var u = " ".concat(l, " "), c = 0; c < n.length; c++) {
                                var h = "".concat(n[c], " ");
                                u.includes(" ".concat(h)) || (u += h)
                            }
                            p(a, "class", u.trim())
                        } else p(a, "class", n.join(" ").trim())
                    }
                }
                return this
            }, e.removeClass = function t(e) {
                if ("function" == typeof e) return (0, r.domEach)(this, (function (n, i) {
                    (0, r.isTag)(n) && t.call([n], e.call(n, i, n.attribs.class || ""))
                }));
                var n = _(e), i = n.length, o = 0 === arguments.length;
                return (0, r.domEach)(this, (function (t) {
                    if ((0, r.isTag)(t)) if (o) t.attribs.class = ""; else {
                        for (var e = _(t.attribs.class), a = !1, s = 0; s < i; s++) {
                            var l = e.indexOf(n[s]);
                            l >= 0 && (e.splice(l, 1), a = !0, s--)
                        }
                        a && (t.attribs.class = e.join(" "))
                    }
                }))
            }, e.toggleClass = function t(e, n) {
                if ("function" == typeof e) return (0, r.domEach)(this, (function (i, o) {
                    (0, r.isTag)(i) && t.call([i], e.call(i, o, i.attribs.class || "", n), n)
                }));
                if (!e || "string" != typeof e) return this;
                for (var i = e.split(s), o = i.length, a = "boolean" == typeof n ? n ? 1 : -1 : 0, l = this.length, u = 0; u < l; u++) {
                    var c = this[u];
                    if ((0, r.isTag)(c)) {
                        for (var h = _(c.attribs.class), d = 0; d < o; d++) {
                            var p = h.indexOf(i[d]);
                            a >= 0 && p < 0 ? h.push(i[d]) : a <= 0 && p >= 0 && h.splice(p, 1)
                        }
                        c.attribs.class = h.join(" ")
                    }
                }
                return this
            }
        }, 9806: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.css = void 0;
            var i = n(5633);

            function r(t, e, n, i) {
                if ("string" == typeof e) {
                    var a = o(t), s = "function" == typeof n ? n.call(t, i, a[e]) : n;
                    "" === s ? delete a[e] : null != s && (a[e] = s), t.attribs.style = (l = a, Object.keys(l).reduce((function (t, e) {
                        return "".concat(t).concat(t ? " " : "").concat(e, ": ").concat(l[e], ";")
                    }), ""))
                } else "object" == typeof e && Object.keys(e).forEach((function (n, i) {
                    r(t, n, e[n], i)
                }));
                var l
            }

            function o(t, e) {
                if (t && (0, i.isTag)(t)) {
                    var n = function (t) {
                        if (t = (t || "").trim(), !t) return {};
                        for (var e, n = {}, i = 0, r = t.split(";"); i < r.length; i++) {
                            var o = r[i], a = o.indexOf(":");
                            if (a < 1 || a === o.length - 1) {
                                var s = o.trimEnd();
                                s.length > 0 && void 0 !== e && (n[e] += ";".concat(s))
                            } else n[e = o.slice(0, a).trim()] = o.slice(a + 1).trim()
                        }
                        return n
                    }(t.attribs.style);
                    if ("string" == typeof e) return n[e];
                    if (Array.isArray(e)) {
                        var r = {};
                        return e.forEach((function (t) {
                            null != n[t] && (r[t] = n[t])
                        })), r
                    }
                    return n
                }
            }

            e.css = function (t, e) {
                return null != t && null != e || "object" == typeof t && !Array.isArray(t) ? (0, i.domEach)(this, (function (n, o) {
                    (0, i.isTag)(n) && r(n, t, e, o)
                })) : 0 !== this.length ? o(this[0], t) : void 0
            }
        }, 3432: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.serializeArray = e.serialize = void 0;
            var i = n(5633), r = "input,select,textarea,keygen", o = /%20/g, a = /\r?\n/g;
            e.serialize = function () {
                return this.serializeArray().map((function (t) {
                    return "".concat(encodeURIComponent(t.name), "=").concat(encodeURIComponent(t.value))
                })).join("&").replace(o, "+")
            }, e.serializeArray = function () {
                var t = this;
                return this.map((function (e, n) {
                    var o = t._make(n);
                    return (0, i.isTag)(n) && "form" === n.name ? o.find(r).toArray() : o.filter(r).toArray()
                })).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((function (e, n) {
                    var i, r = t._make(n), o = r.attr("name"), s = null !== (i = r.val()) && void 0 !== i ? i : "";
                    return Array.isArray(s) ? s.map((function (t) {
                        return {name: o, value: t.replace(a, "\r\n")}
                    })) : {name: o, value: s.replace(a, "\r\n")}
                })).toArray()
            }
        }, 848: function (t, e, n) {
            "use strict";
            var i = this && this.__spreadArray || function (t, e, n) {
                if (n || 2 === arguments.length) for (var i, r = 0, o = e.length; r < o; r++) !i && r in e || (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
                return t.concat(i || Array.prototype.slice.call(e))
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.clone = e.text = e.toString = e.html = e.empty = e.replaceWith = e.remove = e.insertBefore = e.before = e.insertAfter = e.after = e.wrapAll = e.unwrap = e.wrapInner = e.wrap = e.prepend = e.append = e.prependTo = e.appendTo = e._makeDomArray = void 0;
            var r = n(7915), o = n(5012), a = n(6634), s = n(5633), l = n(9432);

            function u(t) {
                return function () {
                    for (var e = this, n = [], i = 0; i < arguments.length; i++) n[i] = arguments[i];
                    var o = this.length - 1;
                    return (0, s.domEach)(this, (function (i, a) {
                        if ((0, r.hasChildren)(i)) {
                            var s = "function" == typeof n[0] ? n[0].call(i, a, e._render(i.children)) : n,
                                l = e._makeDomArray(s, a < o);
                            t(l, i.children, i)
                        }
                    }))
                }
            }

            function c(t, e, n, r, o) {
                for (var a, s, l = i([e, n], r, !0), u = 0 === e ? null : t[e - 1], c = e + n >= t.length ? null : t[e + n], h = 0; h < r.length; ++h) {
                    var d = r[h], p = d.parent;
                    if (p) {
                        var f = p.children.indexOf(d);
                        f > -1 && (p.children.splice(f, 1), o === p && e > f && l[0]--)
                    }
                    d.parent = o, d.prev && (d.prev.next = null !== (a = d.next) && void 0 !== a ? a : null), d.next && (d.next.prev = null !== (s = d.prev) && void 0 !== s ? s : null), d.prev = 0 === h ? u : r[h - 1], d.next = h === r.length - 1 ? c : r[h + 1]
                }
                return u && (u.next = r[0]), c && (c.prev = r[r.length - 1]), t.splice.apply(t, l)
            }

            function h(t) {
                return function (e) {
                    for (var n = this.length - 1, i = this.parents().last(), o = 0; o < this.length; o++) {
                        var a = this[o],
                            l = "function" == typeof e ? e.call(a, o, a) : "string" != typeof e || (0, s.isHtml)(e) ? e : i.find(e).clone(),
                            u = this._makeDomArray(l, o < n)[0];
                        if (u && (0, r.hasChildren)(u)) {
                            for (var c = u, h = 0; h < c.children.length;) {
                                var d = c.children[h];
                                (0, s.isTag)(d) ? (c = d, h = 0) : h++
                            }
                            t(a, c, [u])
                        }
                    }
                    return this
                }
            }

            e._makeDomArray = function (t, e) {
                var n = this;
                return null == t ? [] : (0, s.isCheerio)(t) ? e ? (0, s.cloneDom)(t.get()) : t.get() : Array.isArray(t) ? t.reduce((function (t, i) {
                    return t.concat(n._makeDomArray(i, e))
                }), []) : "string" == typeof t ? this._parse(t, this.options, !1, null).children : e ? (0, s.cloneDom)([t]) : [t]
            }, e.appendTo = function (t) {
                return ((0, s.isCheerio)(t) ? t : this._make(t)).append(this), this
            }, e.prependTo = function (t) {
                return ((0, s.isCheerio)(t) ? t : this._make(t)).prepend(this), this
            }, e.append = u((function (t, e, n) {
                c(e, e.length, 0, t, n)
            })), e.prepend = u((function (t, e, n) {
                c(e, 0, 0, t, n)
            })), e.wrap = h((function (t, e, n) {
                var i = t.parent;
                if (i) {
                    var r = i.children, a = r.indexOf(t);
                    (0, o.update)([t], e), c(r, a, 0, n, i)
                }
            })), e.wrapInner = h((function (t, e, n) {
                (0, r.hasChildren)(t) && ((0, o.update)(t.children, e), (0, o.update)(n, t))
            })), e.unwrap = function (t) {
                var e = this;
                return this.parent(t).not("body").each((function (t, n) {
                    e._make(n).replaceWith(n.children)
                })), this
            }, e.wrapAll = function (t) {
                var e = this[0];
                if (e) {
                    for (var n = this._make("function" == typeof t ? t.call(e, 0, e) : t).insertBefore(e), i = void 0, r = 0; r < n.length; r++) "tag" === n[r].type && (i = n[r]);
                    for (var o = 0; i && o < i.children.length;) {
                        var a = i.children[o];
                        "tag" === a.type ? (i = a, o = 0) : o++
                    }
                    i && this._make(i).append(this)
                }
                return this
            }, e.after = function () {
                for (var t = this, e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
                var i = this.length - 1;
                return (0, s.domEach)(this, (function (n, o) {
                    var a = n.parent;
                    if ((0, r.hasChildren)(n) && a) {
                        var s = a.children, l = s.indexOf(n);
                        if (!(l < 0)) {
                            var u = "function" == typeof e[0] ? e[0].call(n, o, t._render(n.children)) : e;
                            c(s, l + 1, 0, t._makeDomArray(u, o < i), a)
                        }
                    }
                }))
            }, e.insertAfter = function (t) {
                var e = this;
                "string" == typeof t && (t = this._make(t)), this.remove();
                var n = [];
                return this._makeDomArray(t).forEach((function (t) {
                    var i = e.clone().toArray(), r = t.parent;
                    if (r) {
                        var o = r.children, a = o.indexOf(t);
                        a < 0 || (c(o, a + 1, 0, i, r), n.push.apply(n, i))
                    }
                })), this._make(n)
            }, e.before = function () {
                for (var t = this, e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
                var i = this.length - 1;
                return (0, s.domEach)(this, (function (n, o) {
                    var a = n.parent;
                    if ((0, r.hasChildren)(n) && a) {
                        var s = a.children, l = s.indexOf(n);
                        if (!(l < 0)) {
                            var u = "function" == typeof e[0] ? e[0].call(n, o, t._render(n.children)) : e;
                            c(s, l, 0, t._makeDomArray(u, o < i), a)
                        }
                    }
                }))
            }, e.insertBefore = function (t) {
                var e = this, n = this._make(t);
                this.remove();
                var i = [];
                return (0, s.domEach)(n, (function (t) {
                    var n = e.clone().toArray(), r = t.parent;
                    if (r) {
                        var o = r.children, a = o.indexOf(t);
                        a < 0 || (c(o, a, 0, n, r), i.push.apply(i, n))
                    }
                })), this._make(i)
            }, e.remove = function (t) {
                var e = t ? this.filter(t) : this;
                return (0, s.domEach)(e, (function (t) {
                    (0, l.removeElement)(t), t.prev = t.next = t.parent = null
                })), this
            }, e.replaceWith = function (t) {
                var e = this;
                return (0, s.domEach)(this, (function (n, i) {
                    var r = n.parent;
                    if (r) {
                        var a = r.children, s = "function" == typeof t ? t.call(n, i, n) : t, l = e._makeDomArray(s);
                        (0, o.update)(l, null);
                        var u = a.indexOf(n);
                        c(a, u, 1, l, r), l.includes(n) || (n.parent = n.prev = n.next = null)
                    }
                }))
            }, e.empty = function () {
                return (0, s.domEach)(this, (function (t) {
                    (0, r.hasChildren)(t) && (t.children.forEach((function (t) {
                        t.next = t.prev = t.parent = null
                    })), t.children.length = 0)
                }))
            }, e.html = function (t) {
                var e = this;
                if (void 0 === t) {
                    var n = this[0];
                    return n && (0, r.hasChildren)(n) ? this._render(n.children) : null
                }
                return (0, s.domEach)(this, (function (n) {
                    if ((0, r.hasChildren)(n)) {
                        n.children.forEach((function (t) {
                            t.next = t.prev = t.parent = null
                        }));
                        var i = (0, s.isCheerio)(t) ? t.toArray() : e._parse("".concat(t), e.options, !1, n).children;
                        (0, o.update)(i, n)
                    }
                }))
            }, e.toString = function () {
                return this._render(this)
            }, e.text = function (t) {
                var e = this;
                return void 0 === t ? (0, a.text)(this) : "function" == typeof t ? (0, s.domEach)(this, (function (n, i) {
                    return e._make(n).text(t.call(n, i, (0, a.text)([n])))
                })) : (0, s.domEach)(this, (function (e) {
                    if ((0, r.hasChildren)(e)) {
                        e.children.forEach((function (t) {
                            t.next = t.prev = t.parent = null
                        }));
                        var n = new r.Text("".concat(t));
                        (0, o.update)(n, e)
                    }
                }))
            }, e.clone = function () {
                return this._make((0, s.cloneDom)(this.get()))
            }
        }, 1042: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), o = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n);
                return r(e, t), e
            }, a = this && this.__spreadArray || function (t, e, n) {
                if (n || 2 === arguments.length) for (var i, r = 0, o = e.length; r < o; r++) !i && r in e || (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
                return t.concat(i || Array.prototype.slice.call(e))
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.addBack = e.add = e.end = e.slice = e.index = e.toArray = e.get = e.eq = e.last = e.first = e.has = e.not = e.is = e.filterArray = e.filter = e.map = e.each = e.contents = e.children = e.siblings = e.prevUntil = e.prevAll = e.prev = e.nextUntil = e.nextAll = e.next = e.closest = e.parentsUntil = e.parents = e.parent = e.find = void 0;
            var s = n(7915), l = o(n(7248)), u = n(5633), c = n(6634), h = n(9432), d = /^\s*[~+]/;

            function p(t) {
                return function (e) {
                    for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i];
                    return function (i) {
                        var r, o = t(e, this);
                        return i && (o = _(o, i, this.options.xmlMode, null === (r = this._root) || void 0 === r ? void 0 : r[0])), this._make(this.length > 1 && o.length > 1 ? n.reduce((function (t, e) {
                            return e(t)
                        }), o) : o)
                    }
                }
            }

            e.find = function (t) {
                var e;
                if (!t) return this._make([]);
                var n = this.toArray();
                if ("string" != typeof t) {
                    var i = (0, u.isCheerio)(t) ? t.toArray() : [t];
                    return this._make(i.filter((function (t) {
                        return n.some((function (e) {
                            return (0, c.contains)(e, t)
                        }))
                    })))
                }
                var r = d.test(t) ? n : this.children().toArray(), o = {
                    context: n,
                    root: null === (e = this._root) || void 0 === e ? void 0 : e[0],
                    xmlMode: this.options.xmlMode,
                    lowerCaseTags: this.options.lowerCaseTags,
                    lowerCaseAttributeNames: this.options.lowerCaseAttributeNames,
                    pseudos: this.options.pseudos,
                    quirksMode: this.options.quirksMode
                };
                return this._make(l.select(t, r, o))
            };
            var f = p((function (t, e) {
                for (var n, i = [], r = 0; r < e.length; r++) {
                    var o = t(e[r]);
                    i.push(o)
                }
                return (n = new Array).concat.apply(n, i)
            })), g = p((function (t, e) {
                for (var n = [], i = 0; i < e.length; i++) {
                    var r = t(e[i]);
                    null !== r && n.push(r)
                }
                return n
            }));

            function m(t) {
                for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
                var i = null, r = p((function (t, e) {
                    var n = [];
                    return (0, u.domEach)(e, (function (e) {
                        for (var r; (r = t(e)) && !(null == i ? void 0 : i(r, n.length)); e = r) n.push(r)
                    })), n
                })).apply(void 0, a([t], e, !1));
                return function (t, e) {
                    var n = this;
                    i = "string" == typeof t ? function (e) {
                        return l.is(e, t, n.options)
                    } : t ? v(t) : null;
                    var o = r.call(this, e);
                    return i = null, o
                }
            }

            function y(t) {
                return Array.from(new Set(t))
            }

            function v(t) {
                return "function" == typeof t ? function (e, n) {
                    return t.call(e, n, e)
                } : (0, u.isCheerio)(t) ? function (e) {
                    return Array.prototype.includes.call(t, e)
                } : function (e) {
                    return t === e
                }
            }

            function _(t, e, n, i) {
                return "string" == typeof e ? l.filter(e, t, {xmlMode: n, root: i}) : t.filter(v(e))
            }

            e.parent = g((function (t) {
                var e = t.parent;
                return e && !(0, s.isDocument)(e) ? e : null
            }), y), e.parents = f((function (t) {
                for (var e = []; t.parent && !(0, s.isDocument)(t.parent);) e.push(t.parent), t = t.parent;
                return e
            }), h.uniqueSort, (function (t) {
                return t.reverse()
            })), e.parentsUntil = m((function (t) {
                var e = t.parent;
                return e && !(0, s.isDocument)(e) ? e : null
            }), h.uniqueSort, (function (t) {
                return t.reverse()
            })), e.closest = function (t) {
                var e, n = [];
                if (!t) return this._make(n);
                var i = {
                    xmlMode: this.options.xmlMode,
                    root: null === (e = this._root) || void 0 === e ? void 0 : e[0]
                }, r = "string" == typeof t ? function (e) {
                    return l.is(e, t, i)
                } : v(t);
                return (0, u.domEach)(this, (function (t) {
                    for (; t && (0, u.isTag)(t);) {
                        if (r(t, 0)) {
                            n.includes(t) || n.push(t);
                            break
                        }
                        t = t.parent
                    }
                })), this._make(n)
            }, e.next = g((function (t) {
                return (0, h.nextElementSibling)(t)
            })), e.nextAll = f((function (t) {
                for (var e = []; t.next;) t = t.next, (0, u.isTag)(t) && e.push(t);
                return e
            }), y), e.nextUntil = m((function (t) {
                return (0, h.nextElementSibling)(t)
            }), y), e.prev = g((function (t) {
                return (0, h.prevElementSibling)(t)
            })), e.prevAll = f((function (t) {
                for (var e = []; t.prev;) t = t.prev, (0, u.isTag)(t) && e.push(t);
                return e
            }), y), e.prevUntil = m((function (t) {
                return (0, h.prevElementSibling)(t)
            }), y), e.siblings = f((function (t) {
                return (0, h.getSiblings)(t).filter((function (e) {
                    return (0, u.isTag)(e) && e !== t
                }))
            }), h.uniqueSort), e.children = f((function (t) {
                return (0, h.getChildren)(t).filter(u.isTag)
            }), y), e.contents = function () {
                var t = this.toArray().reduce((function (t, e) {
                    return (0, s.hasChildren)(e) ? t.concat(e.children) : t
                }), []);
                return this._make(t)
            }, e.each = function (t) {
                for (var e = 0, n = this.length; e < n && !1 !== t.call(this[e], e, this[e]);) ++e;
                return this
            }, e.map = function (t) {
                for (var e = [], n = 0; n < this.length; n++) {
                    var i = this[n], r = t.call(i, n, i);
                    null != r && (e = e.concat(r))
                }
                return this._make(e)
            }, e.filter = function (t) {
                var e;
                return this._make(_(this.toArray(), t, this.options.xmlMode, null === (e = this._root) || void 0 === e ? void 0 : e[0]))
            }, e.filterArray = _, e.is = function (t) {
                var e = this.toArray();
                return "string" == typeof t ? l.some(e.filter(u.isTag), t, this.options) : !!t && e.some(v(t))
            }, e.not = function (t) {
                var e = this.toArray();
                if ("string" == typeof t) {
                    var n = new Set(l.filter(t, e, this.options));
                    e = e.filter((function (t) {
                        return !n.has(t)
                    }))
                } else {
                    var i = v(t);
                    e = e.filter((function (t, e) {
                        return !i(t, e)
                    }))
                }
                return this._make(e)
            }, e.has = function (t) {
                var e = this;
                return this.filter("string" == typeof t ? ":has(".concat(t, ")") : function (n, i) {
                    return e._make(i).find(t).length > 0
                })
            }, e.first = function () {
                return this.length > 1 ? this._make(this[0]) : this
            }, e.last = function () {
                return this.length > 0 ? this._make(this[this.length - 1]) : this
            }, e.eq = function (t) {
                var e;
                return 0 === (t = +t) && this.length <= 1 ? this : (t < 0 && (t = this.length + t), this._make(null !== (e = this[t]) && void 0 !== e ? e : []))
            }, e.get = function (t) {
                return null == t ? this.toArray() : this[t < 0 ? this.length + t : t]
            }, e.toArray = function () {
                return Array.prototype.slice.call(this)
            }, e.index = function (t) {
                var e, n;
                return null == t ? (e = this.parent().children(), n = this[0]) : "string" == typeof t ? (e = this._make(t), n = this[0]) : (e = this, n = (0, u.isCheerio)(t) ? t[0] : t), Array.prototype.indexOf.call(e, n)
            }, e.slice = function (t, e) {
                return this._make(Array.prototype.slice.call(this, t, e))
            }, e.end = function () {
                var t;
                return null !== (t = this.prevObject) && void 0 !== t ? t : this._make([])
            }, e.add = function (t, e) {
                var n = this._make(t, e), i = (0, h.uniqueSort)(a(a([], this.get(), !0), n.get(), !0));
                return this._make(i)
            }, e.addBack = function (t) {
                return this.prevObject ? this.add(t ? this.prevObject.filter(t) : this.prevObject) : this
            }
        }, 7911: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), o = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n);
                return r(e, t), e
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.Cheerio = void 0;
            var a = o(n(6451)), s = o(n(1042)), l = o(n(848)), u = o(n(9806)), c = o(n(3432)), h = function (t, e, n) {
                if (this.length = 0, this.options = n, this._root = e, t) {
                    for (var i = 0; i < t.length; i++) this[i] = t[i];
                    this.length = t.length
                }
            };
            e.Cheerio = h, h.prototype.cheerio = "[cheerio object]", h.prototype.splice = Array.prototype.splice, h.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator], Object.assign(h.prototype, a, s, l, u, c)
        }, 7503: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), o = this && this.__exportStar || function (t, e) {
                for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n)
            }, a = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n);
                return r(e, t), e
            }, s = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.root = e.parseHTML = e.merge = e.contains = e.text = e.xml = e.html = e.load = void 0, o(n(8701), e);
            var l = n(3434), u = n(5012), c = n(7957), h = s(n(7220)), d = n(3719),
                p = (0, u.getParse)((function (t, e, n, i) {
                    return e.xmlMode || e._useHtmlParser2 ? (0, d.parseDocument)(t, e) : (0, c.parseWithParse5)(t, e, n, i)
                }));
            e.load = (0, l.getLoad)(p, (function (t, e) {
                return e.xmlMode || e._useHtmlParser2 ? (0, h.default)(t, e) : (0, c.renderWithParse5)(t)
            })), e.default = (0, e.load)([]);
            var f = n(6634);
            Object.defineProperty(e, "html", {
                enumerable: !0, get: function () {
                    return f.html
                }
            }), Object.defineProperty(e, "xml", {
                enumerable: !0, get: function () {
                    return f.xml
                }
            }), Object.defineProperty(e, "text", {
                enumerable: !0, get: function () {
                    return f.text
                }
            });
            var g = a(n(6634));
            e.contains = g.contains, e.merge = g.merge, e.parseHTML = g.parseHTML, e.root = g.root
        }, 3434: function (t, e, n) {
            "use strict";
            var i, r = this && this.__extends || (i = function (t, e) {
                return i = Object.setPrototypeOf || {__proto__: []} instanceof Array && function (t, e) {
                    t.__proto__ = e
                } || function (t, e) {
                    for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n])
                }, i(t, e)
            }, function (t, e) {
                if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");

                function n() {
                    this.constructor = t
                }

                i(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }), o = this && this.__assign || function () {
                return o = Object.assign || function (t) {
                    for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
                    return t
                }, o.apply(this, arguments)
            }, a = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), s = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), l = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && a(e, t, n);
                return s(e, t), e
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.getLoad = void 0;
            var u = l(n(2754)), c = l(n(6634)), h = n(7911), d = n(5633);
            e.getLoad = function (t, e) {
                return function n(i, a, s) {
                    if (void 0 === s && (s = !0), null == i) throw new Error("cheerio.load() expects a string");
                    var l = o(o({}, u.default), (0, u.flatten)(a)), p = t(i, l, s, null), f = function (n) {
                        function i() {
                            return null !== n && n.apply(this, arguments) || this
                        }

                        return r(i, n), i.prototype._make = function (t, e) {
                            var n = g(t, e);
                            return n.prevObject = this, n
                        }, i.prototype._parse = function (e, n, i, r) {
                            return t(e, n, i, r)
                        }, i.prototype._render = function (t) {
                            return e(t, this.options)
                        }, i
                    }(h.Cheerio);

                    function g(e, n, i, r) {
                        if (void 0 === i && (i = p), e && (0, d.isCheerio)(e)) return e;
                        var a = o(o({}, l), (0, u.flatten)(r)),
                            s = "string" == typeof i ? [t(i, a, !1, null)] : "length" in i ? i : [i],
                            c = (0, d.isCheerio)(s) ? s : new f(s, null, a);
                        if (c._root = c, !e) return new f(void 0, c, a);
                        var h,
                            g = "string" == typeof e && (0, d.isHtml)(e) ? t(e, a, !1, null).children : (h = e).name || "root" === h.type || "text" === h.type || "comment" === h.type ? [e] : Array.isArray(e) ? e : void 0,
                            m = new f(g, c, a);
                        if (g) return m;
                        if ("string" != typeof e) throw new Error("Unexpected type of selector");
                        var y = e,
                            v = n ? "string" == typeof n ? (0, d.isHtml)(n) ? new f([t(n, a, !1, null)], c, a) : (y = "".concat(n, " ").concat(y), c) : (0, d.isCheerio)(n) ? n : new f(Array.isArray(n) ? n : [n], c, a) : c;
                        return v ? v.find(y) : m
                    }

                    return Object.assign(g, c, {
                        load: n,
                        _root: p,
                        _options: l,
                        fn: f.prototype,
                        prototype: f.prototype
                    }), g
                }
            }
        }, 2754: function (t, e) {
            "use strict";
            var n = this && this.__assign || function () {
                return n = Object.assign || function (t) {
                    for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
                    return t
                }, n.apply(this, arguments)
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.flatten = void 0;
            e.default = {xml: !1, decodeEntities: !0};
            var i = {_useHtmlParser2: !0, xmlMode: !0};
            e.flatten = function (t) {
                return (null == t ? void 0 : t.xml) ? "boolean" == typeof t.xml ? i : n(n({}, i), t.xml) : null != t ? t : void 0
            }
        }, 5012: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.update = e.getParse = void 0;
            var i = n(9432), r = n(7915);

            function o(t, e) {
                var n = Array.isArray(t) ? t : [t];
                e ? e.children = n : e = null;
                for (var r = 0; r < n.length; r++) {
                    var o = n[r];
                    o.parent && o.parent.children !== n && (0, i.removeElement)(o), e ? (o.prev = n[r - 1] || null, o.next = n[r + 1] || null) : o.prev = o.next = null, o.parent = e
                }
                return e
            }

            e.getParse = function (t) {
                return function (e, n, i, a) {
                    if ("undefined" != typeof Buffer && Buffer.isBuffer(e) && (e = e.toString()), "string" == typeof e) return t(e, n, i, a);
                    var s = e;
                    if (!Array.isArray(s) && (0, r.isDocument)(s)) return s;
                    var l = new r.Document([]);
                    return o(s, l), l
                }
            }, e.update = o
        }, 7957: function (t, e, n) {
            "use strict";
            var i = this && this.__spreadArray || function (t, e, n) {
                if (n || 2 === arguments.length) for (var i, r = 0, o = e.length; r < o; r++) !i && r in e || (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
                return t.concat(i || Array.prototype.slice.call(e))
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.renderWithParse5 = e.parseWithParse5 = void 0;
            var r = n(7915), o = n(2177), a = n(2411);
            e.parseWithParse5 = function (t, e, n, i) {
                var r = {
                    scriptingEnabled: "boolean" != typeof e.scriptingEnabled || e.scriptingEnabled,
                    treeAdapter: a.adapter,
                    sourceCodeLocationInfo: e.sourceCodeLocationInfo
                };
                return n ? (0, o.parse)(t, r) : (0, o.parseFragment)(i, t, r)
            };
            var s = {treeAdapter: a.adapter};
            e.renderWithParse5 = function (t) {
                for (var e, n = ("length" in t ? t : [t]), a = 0; a < n.length; a += 1) {
                    var l = n[a];
                    (0, r.isDocument)(l) && (e = Array.prototype.splice).call.apply(e, i([n, a, 1], l.children, !1))
                }
                var u = "";
                for (a = 0; a < n.length; a += 1) {
                    l = n[a];
                    u += (0, o.serializeOuter)(l, s)
                }
                return u
            }
        }, 6634: function (t, e, n) {
            "use strict";
            var i = this && this.__assign || function () {
                return i = Object.assign || function (t) {
                    for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
                    return t
                }, i.apply(this, arguments)
            }, r = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), o = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), a = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && r(e, t, n);
                return o(e, t), e
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.merge = e.contains = e.root = e.parseHTML = e.text = e.xml = e.html = void 0;
            var s = n(9432), l = a(n(2754));

            function u(t, e, n) {
                return t ? t(null != e ? e : t._root.children, null, void 0, n).toString() : ""
            }

            function c(t) {
                if (Array.isArray(t)) return !0;
                if ("object" != typeof t || !Object.prototype.hasOwnProperty.call(t, "length") || "number" != typeof t.length || t.length < 0) return !1;
                for (var e = 0; e < t.length; e++) if (!(e in t)) return !1;
                return !0
            }

            e.html = function (t, e) {
                return u(this, function (t, e) {
                    return !e && "object" == typeof t && null != t && !("length" in t) && !("type" in t)
                }(t) ? void (e = t) : t, i(i(i({}, l.default), null == this ? void 0 : this._options), (0, l.flatten)(null != e ? e : {})))
            }, e.xml = function (t) {
                return u(this, t, i(i({}, this._options), {xmlMode: !0}))
            }, e.text = function (t) {
                for (var e = t || (this ? this.root() : []), n = "", i = 0; i < e.length; i++) n += (0, s.textContent)(e[i]);
                return n
            }, e.parseHTML = function (t, e, n) {
                if (void 0 === n && (n = "boolean" == typeof e && e), !t || "string" != typeof t) return null;
                "boolean" == typeof e && (n = e);
                var i = this.load(t, l.default, !1);
                return n || i("script").remove(), i.root()[0].children.slice()
            }, e.root = function () {
                return this(this._root)
            }, e.contains = function (t, e) {
                if (e === t) return !1;
                for (var n = e; n && n !== n.parent;) if ((n = n.parent) === t) return !0;
                return !1
            }, e.merge = function (t, e) {
                if (c(t) && c(e)) {
                    for (var n = t.length, i = +e.length, r = 0; r < i; r++) t[n++] = e[r];
                    return t.length = n, t
                }
            }
        }, 8701: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0})
        }, 5633: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.isHtml = e.cloneDom = e.domEach = e.cssCase = e.camelCase = e.isCheerio = e.isTag = void 0;
            var i, r = n(7915), o = n(7915);
            Object.defineProperty(e, "isTag", {
                enumerable: !0, get: function () {
                    return o.isTag
                }
            }), e.isCheerio = function (t) {
                return null != t.cheerio
            }, e.camelCase = function (t) {
                return t.replace(/[_.-](\w|$)/g, (function (t, e) {
                    return e.toUpperCase()
                }))
            }, e.cssCase = function (t) {
                return t.replace(/[A-Z]/g, "-$&").toLowerCase()
            }, e.domEach = function (t, e) {
                for (var n = t.length, i = 0; i < n; i++) e(t[i], i);
                return t
            }, e.cloneDom = function (t) {
                var e = "length" in t ? Array.prototype.map.call(t, (function (t) {
                    return (0, r.cloneNode)(t, !0)
                })) : [(0, r.cloneNode)(t, !0)], n = new r.Document(e);
                return e.forEach((function (t) {
                    t.parent = n
                })), e
            }, function (t) {
                t[t.LowerA = 97] = "LowerA", t[t.LowerZ = 122] = "LowerZ", t[t.UpperA = 65] = "UpperA", t[t.UpperZ = 90] = "UpperZ", t[t.Exclamation = 33] = "Exclamation"
            }(i || (i = {})), e.isHtml = function (t) {
                var e = t.indexOf("<");
                if (e < 0 || e > t.length - 3) return !1;
                var n = t.charCodeAt(e + 1);
                return (n >= i.LowerA && n <= i.LowerZ || n >= i.UpperA && n <= i.UpperZ || n === i.Exclamation) && t.includes(">", e + 2)
            }
        }, 4134: (t, e, n) => {
            "use strict";
            n.d(e, {Z: () => s});
            var i = n(8081), r = n.n(i), o = n(3645), a = n.n(o)()(r());
            a.push([t.id, "\n.crx-tools[data-v-ac18c8e2] {\r\n  /* padding: 10px 5px; */\r\n  width: 100%;\r\n  background: white;\n}\n.crx-tools-container[data-v-ac18c8e2]{\r\n  width: calc(.2 * (100vw - 56px));\r\n  padding: 5px;\r\n  position: relative;\r\n  border: 1px solid #ebebeb;\r\n  border-radius: 3px;\n}\r\n", ""]);
            const s = a
        }, 4550: (t, e, n) => {
            "use strict";
            n.d(e, {Z: () => s});
            var i = n(8081), r = n.n(i), o = n(3645), a = n.n(o)()(r());
            a.push([t.id, "\n.crx-item[data-v-bacf8f72] {\r\n\r\n  display: flex;\r\n  margin-bottom: 10px;\n}\n.crx-item-label[data-v-bacf8f72] {\r\n  /* font-weight: 600; */\r\n  margin-right: 5px;\r\n  color: black;\r\n  word-break: keep-all;\n}\n.crx-item-text[data-v-bacf8f72] {\r\n  font-weight: 600;\r\n  color: black;\r\n  /* word-break: keep-all; */\n}\n.rank-tag[data-v-bacf8f72] {\r\n  background-color: rgb(147, 217, 109);\r\n  color: rgb(0, 0, 0);\r\n  font-size: 12px;\r\n  font-weight: bold;\r\n  padding: 1px 3px;\r\n  border-radius: 4px;\n}\n.spin[data-v-bacf8f72] {\r\n  position: absolute;\r\n  width: 100%;\r\n  top: 0;\r\n  height: 100%;\r\n  display: flex;\r\n  justify-content: center;\r\n  align-items: center;\r\n  background: #e8e6e6c7;\n}\n.line[data-v-bacf8f72] {\r\n  width: 100%;\r\n  margin: 3px 0;\r\n  border-bottom: 1px dashed rgb(232, 233, 234);\n}\n.crx-copy[data-v-bacf8f72] {\r\n  font-weight: normal;\r\n  font-size: 12px;\r\n  padding: 1px 10px;\r\n  background: #93d96d;\r\n  color: black;\r\n  letter-spacing: 2px;\r\n  border-radius: 3px;\r\n  cursor: pointer;\n}\n.edit-mark[data-v-bacf8f72] {\r\n  display: inline-block;\r\n  padding: 4px 10px;\r\n  background: #93d96d;\r\n  color: black;\r\n  border-radius: 3px;\r\n  line-height: 14px;\n}\n.collect[data-v-bacf8f72] {\r\n  font-weight: 500;\r\n  font-size: 12px;\r\n  background: red;\r\n  border-radius: 3px;\r\n  padding: 2px 10px;\r\n  color: white;\r\n  margin-left: 15px;\r\n  cursor: pointer;\n}\r\n", ""]);
            const s = a
        }, 6741: (t, e, n) => {
            "use strict";
            n.d(e, {Z: () => s});
            var i = n(8081), r = n.n(i), o = n(3645), a = n.n(o)()(r());
            a.push([t.id, "\n.seller-tag {\r\n  background-color: rgb(253, 241, 239);\r\n  color: rgb(251, 139, 120) !important;\r\n  font-size: 12px;\r\n  padding: 1px 3px;\r\n  border-radius: 4px;\n}\r\n", ""]);
            const s = a
        }, 7423: (t, e, n) => {
            "use strict";
            n.d(e, {Z: () => s});
            var i = n(8081), r = n.n(i), o = n(3645), a = n.n(o)()(r());
            a.push([t.id, "\n.mark[data-v-6625082d] .ant-select-dropdown-menu-item {\r\n  margin: 0 !important;\n}\n.mark[data-v-6625082d] label {\r\n  font-weight: normal;\n}\n.mark[data-v-6625082d] .ant-form-item-children textarea {\r\n  box-shadow: unset;\n}\r\n", ""]);
            const s = a
        }, 3597: (t, e, n) => {
            "use strict";
            n.d(e, {Z: () => s});
            var i = n(8081), r = n.n(i), o = n(3645), a = n.n(o)()(r());
            a.push([t.id, "\n.crx-item[data-v-a24f3ace] {\r\n\r\n  display: flex;\r\n  margin-bottom: 10px;\n}\n.crx-item-label[data-v-a24f3ace] {\r\n  /* font-weight: 600; */\r\n  margin-right: 5px;\r\n  color: black;\r\n  word-break: keep-all;\n}\n.crx-item-text[data-v-a24f3ace] {\r\n  font-weight: 600;\r\n  color: black;\r\n  /* word-break: keep-all; */\n}\n.rank-tag[data-v-a24f3ace] {\r\n  background-color: rgb(147, 217, 109);\r\n  color: rgb(0, 0, 0);\r\n  font-size: 12px;\r\n  font-weight: bold;\r\n  padding: 1px 3px;\r\n  border-radius: 4px;\n}\n.spin[data-v-a24f3ace] {\r\n  position: absolute;\r\n  width: 100%;\r\n  top: 0;\r\n  height: 100%;\r\n  display: flex;\r\n  justify-content: center;\r\n  align-items: center;\r\n  background: #e8e6e6c7;\n}\n.line[data-v-a24f3ace] {\r\n  width: 100%;\r\n  margin: 3px 0;\r\n  border-bottom: 1px dashed rgb(232, 233, 234);\n}\r\n", ""]);
            const s = a
        }, 9793: (t, e, n) => {
            "use strict";
            n.d(e, {Z: () => s});
            var i = n(8081), r = n.n(i), o = n(3645), a = n.n(o)()(r());
            a.push([t.id, "\n.seller-tag {\r\n  background-color: rgb(253, 241, 239);\r\n  color: rgb(251, 139, 120) !important;\r\n  font-size: 12px;\r\n  padding: 1px 3px;\r\n  border-radius: 4px;\n}\r\n", ""]);
            const s = a
        }, 3645: t => {
            "use strict";
            t.exports = function (t) {
                var e = [];
                return e.toString = function () {
                    return this.map((function (e) {
                        var n = "", i = void 0 !== e[5];
                        return e[4] && (n += "@supports (".concat(e[4], ") {")), e[2] && (n += "@media ".concat(e[2], " {")), i && (n += "@layer".concat(e[5].length > 0 ? " ".concat(e[5]) : "", " {")), n += t(e), i && (n += "}"), e[2] && (n += "}"), e[4] && (n += "}"), n
                    })).join("")
                }, e.i = function (t, n, i, r, o) {
                    "string" == typeof t && (t = [[null, t, void 0]]);
                    var a = {};
                    if (i) for (var s = 0; s < this.length; s++) {
                        var l = this[s][0];
                        null != l && (a[l] = !0)
                    }
                    for (var u = 0; u < t.length; u++) {
                        var c = [].concat(t[u]);
                        i && a[c[0]] || (void 0 !== o && (void 0 === c[5] || (c[1] = "@layer".concat(c[5].length > 0 ? " ".concat(c[5]) : "", " {").concat(c[1], "}")), c[5] = o), n && (c[2] ? (c[1] = "@media ".concat(c[2], " {").concat(c[1], "}"), c[2] = n) : c[2] = n), r && (c[4] ? (c[1] = "@supports (".concat(c[4], ") {").concat(c[1], "}"), c[4] = r) : c[4] = "".concat(r)), e.push(c))
                    }
                }, e
            }
        }, 8081: t => {
            "use strict";
            t.exports = function (t) {
                return t[1]
            }
        }, 996: function (t, e, n) {
            "use strict";
            var i = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.attributeRules = void 0;
            var r = i(n(1073)), o = /[-[\]{}()*+?.,\\^$|#\s]/g;

            function a(t) {
                return t.replace(o, "\\$&")
            }

            var s = new Set(["accept", "accept-charset", "align", "alink", "axis", "bgcolor", "charset", "checked", "clear", "codetype", "color", "compact", "declare", "defer", "dir", "direction", "disabled", "enctype", "face", "frame", "hreflang", "http-equiv", "lang", "language", "link", "media", "method", "multiple", "nohref", "noresize", "noshade", "nowrap", "readonly", "rel", "rev", "rules", "scope", "scrolling", "selected", "shape", "target", "text", "type", "valign", "valuetype", "vlink"]);

            function l(t, e) {
                return "boolean" == typeof t.ignoreCase ? t.ignoreCase : "quirks" === t.ignoreCase ? !!e.quirksMode : !e.xmlMode && s.has(t.name)
            }

            e.attributeRules = {
                equals: function (t, e, n) {
                    var i = n.adapter, r = e.name, o = e.value;
                    return l(e, n) ? (o = o.toLowerCase(), function (e) {
                        var n = i.getAttributeValue(e, r);
                        return null != n && n.length === o.length && n.toLowerCase() === o && t(e)
                    }) : function (e) {
                        return i.getAttributeValue(e, r) === o && t(e)
                    }
                }, hyphen: function (t, e, n) {
                    var i = n.adapter, r = e.name, o = e.value, a = o.length;
                    return l(e, n) ? (o = o.toLowerCase(), function (e) {
                        var n = i.getAttributeValue(e, r);
                        return null != n && (n.length === a || "-" === n.charAt(a)) && n.substr(0, a).toLowerCase() === o && t(e)
                    }) : function (e) {
                        var n = i.getAttributeValue(e, r);
                        return null != n && (n.length === a || "-" === n.charAt(a)) && n.substr(0, a) === o && t(e)
                    }
                }, element: function (t, e, n) {
                    var i = n.adapter, o = e.name, s = e.value;
                    if (/\s/.test(s)) return r.default.falseFunc;
                    var u = new RegExp("(?:^|\\s)".concat(a(s), "(?:$|\\s)"), l(e, n) ? "i" : "");
                    return function (e) {
                        var n = i.getAttributeValue(e, o);
                        return null != n && n.length >= s.length && u.test(n) && t(e)
                    }
                }, exists: function (t, e, n) {
                    var i = e.name, r = n.adapter;
                    return function (e) {
                        return r.hasAttrib(e, i) && t(e)
                    }
                }, start: function (t, e, n) {
                    var i = n.adapter, o = e.name, a = e.value, s = a.length;
                    return 0 === s ? r.default.falseFunc : l(e, n) ? (a = a.toLowerCase(), function (e) {
                        var n = i.getAttributeValue(e, o);
                        return null != n && n.length >= s && n.substr(0, s).toLowerCase() === a && t(e)
                    }) : function (e) {
                        var n;
                        return !!(null === (n = i.getAttributeValue(e, o)) || void 0 === n ? void 0 : n.startsWith(a)) && t(e)
                    }
                }, end: function (t, e, n) {
                    var i = n.adapter, o = e.name, a = e.value, s = -a.length;
                    return 0 === s ? r.default.falseFunc : l(e, n) ? (a = a.toLowerCase(), function (e) {
                        var n;
                        return (null === (n = i.getAttributeValue(e, o)) || void 0 === n ? void 0 : n.substr(s).toLowerCase()) === a && t(e)
                    }) : function (e) {
                        var n;
                        return !!(null === (n = i.getAttributeValue(e, o)) || void 0 === n ? void 0 : n.endsWith(a)) && t(e)
                    }
                }, any: function (t, e, n) {
                    var i = n.adapter, o = e.name, s = e.value;
                    if ("" === s) return r.default.falseFunc;
                    if (l(e, n)) {
                        var u = new RegExp(a(s), "i");
                        return function (e) {
                            var n = i.getAttributeValue(e, o);
                            return null != n && n.length >= s.length && u.test(n) && t(e)
                        }
                    }
                    return function (e) {
                        var n;
                        return !!(null === (n = i.getAttributeValue(e, o)) || void 0 === n ? void 0 : n.includes(s)) && t(e)
                    }
                }, not: function (t, e, n) {
                    var i = n.adapter, r = e.name, o = e.value;
                    return "" === o ? function (e) {
                        return !!i.getAttributeValue(e, r) && t(e)
                    } : l(e, n) ? (o = o.toLowerCase(), function (e) {
                        var n = i.getAttributeValue(e, r);
                        return (null == n || n.length !== o.length || n.toLowerCase() !== o) && t(e)
                    }) : function (e) {
                        return i.getAttributeValue(e, r) !== o && t(e)
                    }
                }
            }
        }, 8866: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), o = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n);
                return r(e, t), e
            }, a = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.compileToken = e.compileUnsafe = e.compile = void 0;
            var s = n(7763), l = a(n(1073)), u = o(n(7353)), c = n(3621), h = n(1768);

            function d(t, e, n) {
                return y("string" == typeof t ? (0, s.parse)(t) : t, e, n)
            }

            function p(t) {
                return t.type === s.SelectorType.Pseudo && ("scope" === t.name || Array.isArray(t.data) && t.data.some((function (t) {
                    return t.some(p)
                })))
            }

            e.compile = function (t, e, n) {
                var i = d(t, e, n);
                return (0, h.ensureIsTag)(i, e.adapter)
            }, e.compileUnsafe = d;
            var f = {type: s.SelectorType.Descendant}, g = {type: "_flexibleDescendant"},
                m = {type: s.SelectorType.Pseudo, name: "scope", data: null};

            function y(t, e, n) {
                var i;
                t.forEach(u.default), n = null !== (i = e.context) && void 0 !== i ? i : n;
                var r = Array.isArray(n), o = n && (Array.isArray(n) ? n : [n]);
                if (!1 !== e.relativeSelector) !function (t, e, n) {
                    for (var i = e.adapter, r = !!(null == n ? void 0 : n.every((function (t) {
                        var e = i.isTag(t) && i.getParent(t);
                        return t === h.PLACEHOLDER_ELEMENT || e && i.isTag(e)
                    }))), o = 0, a = t; o < a.length; o++) {
                        var l = a[o];
                        if (l.length > 0 && (0, u.isTraversal)(l[0]) && l[0].type !== s.SelectorType.Descendant) ; else {
                            if (!r || l.some(p)) continue;
                            l.unshift(f)
                        }
                        l.unshift(m)
                    }
                }(t, e, o); else if (t.some((function (t) {
                    return t.length > 0 && (0, u.isTraversal)(t[0])
                }))) throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");
                var a = !1, d = t.map((function (t) {
                    if (t.length >= 2) {
                        var n = t[0], i = t[1];
                        n.type !== s.SelectorType.Pseudo || "scope" !== n.name || (r && i.type === s.SelectorType.Descendant ? t[1] = g : i.type !== s.SelectorType.Adjacent && i.type !== s.SelectorType.Sibling || (a = !0))
                    }
                    return function (t, e, n) {
                        var i;
                        return t.reduce((function (t, i) {
                            return t === l.default.falseFunc ? l.default.falseFunc : (0, c.compileGeneralSelector)(t, i, e, n, y)
                        }), null !== (i = e.rootFunc) && void 0 !== i ? i : l.default.trueFunc)
                    }(t, e, o)
                })).reduce(v, l.default.falseFunc);
                return d.shouldTestNextSiblings = a, d
            }

            function v(t, e) {
                return e === l.default.falseFunc || t === l.default.trueFunc ? t : t === l.default.falseFunc || e === l.default.trueFunc ? e : function (n) {
                    return t(n) || e(n)
                }
            }

            e.compileToken = y
        }, 3621: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.compileGeneralSelector = void 0;
            var i = n(996), r = n(8677), o = n(7763);

            function a(t, e) {
                var n = e.getParent(t);
                return n && e.isTag(n) ? n : null
            }

            e.compileGeneralSelector = function (t, e, n, s, l) {
                var u = n.adapter, c = n.equals;
                switch (e.type) {
                    case o.SelectorType.PseudoElement:
                        throw new Error("Pseudo-elements are not supported by css-select");
                    case o.SelectorType.ColumnCombinator:
                        throw new Error("Column combinators are not yet supported by css-select");
                    case o.SelectorType.Attribute:
                        if (null != e.namespace) throw new Error("Namespaced attributes are not yet supported by css-select");
                        return n.xmlMode && !n.lowerCaseAttributeNames || (e.name = e.name.toLowerCase()), i.attributeRules[e.action](t, e, n);
                    case o.SelectorType.Pseudo:
                        return (0, r.compilePseudoSelector)(t, e, n, s, l);
                    case o.SelectorType.Tag:
                        if (null != e.namespace) throw new Error("Namespaced tag names are not yet supported by css-select");
                        var h = e.name;
                        return n.xmlMode && !n.lowerCaseTags || (h = h.toLowerCase()), function (e) {
                            return u.getName(e) === h && t(e)
                        };
                    case o.SelectorType.Descendant:
                        if (!1 === n.cacheResults || "undefined" == typeof WeakSet) return function (e) {
                            for (var n = e; n = a(n, u);) if (t(n)) return !0;
                            return !1
                        };
                        var d = new WeakSet;
                        return function (e) {
                            for (var n = e; n = a(n, u);) if (!d.has(n)) {
                                if (u.isTag(n) && t(n)) return !0;
                                d.add(n)
                            }
                            return !1
                        };
                    case"_flexibleDescendant":
                        return function (e) {
                            var n = e;
                            do {
                                if (t(n)) return !0
                            } while (n = a(n, u));
                            return !1
                        };
                    case o.SelectorType.Parent:
                        return function (e) {
                            return u.getChildren(e).some((function (e) {
                                return u.isTag(e) && t(e)
                            }))
                        };
                    case o.SelectorType.Child:
                        return function (e) {
                            var n = u.getParent(e);
                            return null != n && u.isTag(n) && t(n)
                        };
                    case o.SelectorType.Sibling:
                        return function (e) {
                            for (var n = u.getSiblings(e), i = 0; i < n.length; i++) {
                                var r = n[i];
                                if (c(e, r)) break;
                                if (u.isTag(r) && t(r)) return !0
                            }
                            return !1
                        };
                    case o.SelectorType.Adjacent:
                        return u.prevElementSibling ? function (e) {
                            var n = u.prevElementSibling(e);
                            return null != n && t(n)
                        } : function (e) {
                            for (var n, i = u.getSiblings(e), r = 0; r < i.length; r++) {
                                var o = i[r];
                                if (c(e, o)) break;
                                u.isTag(o) && (n = o)
                            }
                            return !!n && t(n)
                        };
                    case o.SelectorType.Universal:
                        if (null != e.namespace && "*" !== e.namespace) throw new Error("Namespaced universal selectors are not yet supported by css-select");
                        return t
                }
            }
        }, 5366: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), o = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n);
                return r(e, t), e
            }, a = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.aliases = e.pseudos = e.filters = e.is = e.selectOne = e.selectAll = e.prepareContext = e._compileToken = e._compileUnsafe = e.compile = void 0;
            var s = o(n(9432)), l = a(n(1073)), u = n(8866), c = n(1768), h = function (t, e) {
                return t === e
            }, d = {adapter: s, equals: h};

            function p(t) {
                var e, n, i, r, o = null != t ? t : d;
                return null !== (e = o.adapter) && void 0 !== e || (o.adapter = s), null !== (n = o.equals) && void 0 !== n || (o.equals = null !== (r = null === (i = o.adapter) || void 0 === i ? void 0 : i.equals) && void 0 !== r ? r : h), o
            }

            function f(t) {
                return function (e, n, i) {
                    var r = p(n);
                    return t(e, r, i)
                }
            }

            function g(t) {
                return function (e, n, i) {
                    var r = p(i);
                    "function" != typeof e && (e = (0, u.compileUnsafe)(e, r, n));
                    var o = m(n, r.adapter, e.shouldTestNextSiblings);
                    return t(e, o, r)
                }
            }

            function m(t, e, n) {
                return void 0 === n && (n = !1), n && (t = function (t, e) {
                    for (var n = Array.isArray(t) ? t.slice(0) : [t], i = n.length, r = 0; r < i; r++) {
                        var o = (0, c.getNextSiblings)(n[r], e);
                        n.push.apply(n, o)
                    }
                    return n
                }(t, e)), Array.isArray(t) ? e.removeSubsets(t) : e.getChildren(t)
            }

            e.compile = f(u.compile), e._compileUnsafe = f(u.compileUnsafe), e._compileToken = f(u.compileToken), e.prepareContext = m, e.selectAll = g((function (t, e, n) {
                return t !== l.default.falseFunc && e && 0 !== e.length ? n.adapter.findAll(t, e) : []
            })), e.selectOne = g((function (t, e, n) {
                return t !== l.default.falseFunc && e && 0 !== e.length ? n.adapter.findOne(t, e) : null
            })), e.is = function (t, e, n) {
                var i = p(n);
                return ("function" == typeof e ? e : (0, u.compile)(e, i))(t)
            }, e.default = e.selectAll;
            var y = n(8677);
            Object.defineProperty(e, "filters", {
                enumerable: !0, get: function () {
                    return y.filters
                }
            }), Object.defineProperty(e, "pseudos", {
                enumerable: !0, get: function () {
                    return y.pseudos
                }
            }), Object.defineProperty(e, "aliases", {
                enumerable: !0, get: function () {
                    return y.aliases
                }
            })
        }, 2968: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.aliases = void 0, e.aliases = {
                "any-link": ":is(a, area, link)[href]",
                link: ":any-link:not(:visited)",
                disabled: ":is(\n        :is(button, input, select, textarea, optgroup, option)[disabled],\n        optgroup[disabled] > option,\n        fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n    )",
                enabled: ":not(:disabled)",
                checked: ":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",
                required: ":is(input, select, textarea)[required]",
                optional: ":is(input, select, textarea):not([required])",
                selected: "option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",
                checkbox: "[type=checkbox]",
                file: "[type=file]",
                password: "[type=password]",
                radio: "[type=radio]",
                reset: "[type=reset]",
                image: "[type=image]",
                submit: "[type=submit]",
                parent: ":not(:empty)",
                header: ":is(h1, h2, h3, h4, h5, h6)",
                button: ":is(button, input[type=button])",
                input: ":is(input, textarea, select, button)",
                text: "input:is(:not([type!='']), [type=text])"
            }
        }, 7689: function (t, e, n) {
            "use strict";
            var i = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.filters = void 0;
            var r = i(n(7540)), o = i(n(1073));

            function a(t, e) {
                return function (n) {
                    var i = e.getParent(n);
                    return null != i && e.isTag(i) && t(n)
                }
            }

            function s(t) {
                return function (e, n, i) {
                    var r = i.adapter[t];
                    return "function" != typeof r ? o.default.falseFunc : function (t) {
                        return r(t) && e(t)
                    }
                }
            }

            e.filters = {
                contains: function (t, e, n) {
                    var i = n.adapter;
                    return function (n) {
                        return t(n) && i.getText(n).includes(e)
                    }
                }, icontains: function (t, e, n) {
                    var i = n.adapter, r = e.toLowerCase();
                    return function (e) {
                        return t(e) && i.getText(e).toLowerCase().includes(r)
                    }
                }, "nth-child": function (t, e, n) {
                    var i = n.adapter, s = n.equals, l = (0, r.default)(e);
                    return l === o.default.falseFunc ? o.default.falseFunc : l === o.default.trueFunc ? a(t, i) : function (e) {
                        for (var n = i.getSiblings(e), r = 0, o = 0; o < n.length && !s(e, n[o]); o++) i.isTag(n[o]) && r++;
                        return l(r) && t(e)
                    }
                }, "nth-last-child": function (t, e, n) {
                    var i = n.adapter, s = n.equals, l = (0, r.default)(e);
                    return l === o.default.falseFunc ? o.default.falseFunc : l === o.default.trueFunc ? a(t, i) : function (e) {
                        for (var n = i.getSiblings(e), r = 0, o = n.length - 1; o >= 0 && !s(e, n[o]); o--) i.isTag(n[o]) && r++;
                        return l(r) && t(e)
                    }
                }, "nth-of-type": function (t, e, n) {
                    var i = n.adapter, s = n.equals, l = (0, r.default)(e);
                    return l === o.default.falseFunc ? o.default.falseFunc : l === o.default.trueFunc ? a(t, i) : function (e) {
                        for (var n = i.getSiblings(e), r = 0, o = 0; o < n.length; o++) {
                            var a = n[o];
                            if (s(e, a)) break;
                            i.isTag(a) && i.getName(a) === i.getName(e) && r++
                        }
                        return l(r) && t(e)
                    }
                }, "nth-last-of-type": function (t, e, n) {
                    var i = n.adapter, s = n.equals, l = (0, r.default)(e);
                    return l === o.default.falseFunc ? o.default.falseFunc : l === o.default.trueFunc ? a(t, i) : function (e) {
                        for (var n = i.getSiblings(e), r = 0, o = n.length - 1; o >= 0; o--) {
                            var a = n[o];
                            if (s(e, a)) break;
                            i.isTag(a) && i.getName(a) === i.getName(e) && r++
                        }
                        return l(r) && t(e)
                    }
                }, root: function (t, e, n) {
                    var i = n.adapter;
                    return function (e) {
                        var n = i.getParent(e);
                        return (null == n || !i.isTag(n)) && t(e)
                    }
                }, scope: function (t, n, i, r) {
                    var o = i.equals;
                    return r && 0 !== r.length ? 1 === r.length ? function (e) {
                        return o(r[0], e) && t(e)
                    } : function (e) {
                        return r.includes(e) && t(e)
                    } : e.filters.root(t, n, i)
                }, hover: s("isHovered"), visited: s("isVisited"), active: s("isActive")
            }
        }, 8677: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.compilePseudoSelector = e.aliases = e.pseudos = e.filters = void 0;
            var i = n(7763), r = n(7689);
            Object.defineProperty(e, "filters", {
                enumerable: !0, get: function () {
                    return r.filters
                }
            });
            var o = n(7221);
            Object.defineProperty(e, "pseudos", {
                enumerable: !0, get: function () {
                    return o.pseudos
                }
            });
            var a = n(2968);
            Object.defineProperty(e, "aliases", {
                enumerable: !0, get: function () {
                    return a.aliases
                }
            });
            var s = n(1768);
            e.compilePseudoSelector = function (t, e, n, l, u) {
                var c, h = e.name, d = e.data;
                if (Array.isArray(d)) {
                    if (!(h in s.subselects)) throw new Error("Unknown pseudo-class :".concat(h, "(").concat(d, ")"));
                    return s.subselects[h](t, d, n, l, u)
                }
                var p = null === (c = n.pseudos) || void 0 === c ? void 0 : c[h],
                    f = "string" == typeof p ? p : a.aliases[h];
                if ("string" == typeof f) {
                    if (null != d) throw new Error("Pseudo ".concat(h, " doesn't have any arguments"));
                    var g = (0, i.parse)(f);
                    return s.subselects.is(t, g, n, l, u)
                }
                if ("function" == typeof p) return (0, o.verifyPseudoArgs)(p, h, d, 1), function (e) {
                    return p(e, d) && t(e)
                };
                if (h in r.filters) return r.filters[h](t, d, n, l);
                if (h in o.pseudos) {
                    var m = o.pseudos[h];
                    return (0, o.verifyPseudoArgs)(m, h, d, 2), function (e) {
                        return m(e, n, d) && t(e)
                    }
                }
                throw new Error("Unknown pseudo-class :".concat(h))
            }
        }, 7221: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.verifyPseudoArgs = e.pseudos = void 0, e.pseudos = {
                empty: function (t, e) {
                    var n = e.adapter;
                    return !n.getChildren(t).some((function (t) {
                        return n.isTag(t) || "" !== n.getText(t)
                    }))
                }, "first-child": function (t, e) {
                    var n = e.adapter, i = e.equals;
                    if (n.prevElementSibling) return null == n.prevElementSibling(t);
                    var r = n.getSiblings(t).find((function (t) {
                        return n.isTag(t)
                    }));
                    return null != r && i(t, r)
                }, "last-child": function (t, e) {
                    for (var n = e.adapter, i = e.equals, r = n.getSiblings(t), o = r.length - 1; o >= 0; o--) {
                        if (i(t, r[o])) return !0;
                        if (n.isTag(r[o])) break
                    }
                    return !1
                }, "first-of-type": function (t, e) {
                    for (var n = e.adapter, i = e.equals, r = n.getSiblings(t), o = n.getName(t), a = 0; a < r.length; a++) {
                        var s = r[a];
                        if (i(t, s)) return !0;
                        if (n.isTag(s) && n.getName(s) === o) break
                    }
                    return !1
                }, "last-of-type": function (t, e) {
                    for (var n = e.adapter, i = e.equals, r = n.getSiblings(t), o = n.getName(t), a = r.length - 1; a >= 0; a--) {
                        var s = r[a];
                        if (i(t, s)) return !0;
                        if (n.isTag(s) && n.getName(s) === o) break
                    }
                    return !1
                }, "only-of-type": function (t, e) {
                    var n = e.adapter, i = e.equals, r = n.getName(t);
                    return n.getSiblings(t).every((function (e) {
                        return i(t, e) || !n.isTag(e) || n.getName(e) !== r
                    }))
                }, "only-child": function (t, e) {
                    var n = e.adapter, i = e.equals;
                    return n.getSiblings(t).every((function (e) {
                        return i(t, e) || !n.isTag(e)
                    }))
                }
            }, e.verifyPseudoArgs = function (t, e, n, i) {
                if (null === n) {
                    if (t.length > i) throw new Error("Pseudo-class :".concat(e, " requires an argument"))
                } else if (t.length === i) throw new Error("Pseudo-class :".concat(e, " doesn't have any arguments"))
            }
        }, 1768: function (t, e, n) {
            "use strict";
            var i = this && this.__spreadArray || function (t, e, n) {
                if (n || 2 === arguments.length) for (var i, r = 0, o = e.length; r < o; r++) !i && r in e || (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
                return t.concat(i || Array.prototype.slice.call(e))
            }, r = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.subselects = e.getNextSiblings = e.ensureIsTag = e.PLACEHOLDER_ELEMENT = void 0;
            var o = r(n(1073)), a = n(7353);

            function s(t, e) {
                return t === o.default.falseFunc ? o.default.falseFunc : function (n) {
                    return e.isTag(n) && t(n)
                }
            }

            function l(t, e) {
                var n = e.getSiblings(t);
                if (n.length <= 1) return [];
                var i = n.indexOf(t);
                return i < 0 || i === n.length - 1 ? [] : n.slice(i + 1).filter(e.isTag)
            }

            function u(t) {
                return {
                    xmlMode: !!t.xmlMode,
                    lowerCaseAttributeNames: !!t.lowerCaseAttributeNames,
                    lowerCaseTags: !!t.lowerCaseTags,
                    quirksMode: !!t.quirksMode,
                    cacheResults: !!t.cacheResults,
                    pseudos: t.pseudos,
                    adapter: t.adapter,
                    equals: t.equals
                }
            }

            e.PLACEHOLDER_ELEMENT = {}, e.ensureIsTag = s, e.getNextSiblings = l;
            var c = function (t, e, n, i, r) {
                var a = r(e, u(n), i);
                return a === o.default.trueFunc ? t : a === o.default.falseFunc ? o.default.falseFunc : function (e) {
                    return a(e) && t(e)
                }
            };
            e.subselects = {
                is: c, matches: c, where: c, not: function (t, e, n, i, r) {
                    var a = r(e, u(n), i);
                    return a === o.default.falseFunc ? t : a === o.default.trueFunc ? o.default.falseFunc : function (e) {
                        return !a(e) && t(e)
                    }
                }, has: function (t, n, r, c, h) {
                    var d = r.adapter, p = u(r);
                    p.relativeSelector = !0;
                    var f = n.some((function (t) {
                        return t.some(a.isTraversal)
                    })) ? [e.PLACEHOLDER_ELEMENT] : void 0, g = h(n, p, f);
                    if (g === o.default.falseFunc) return o.default.falseFunc;
                    var m = s(g, d);
                    if (f && g !== o.default.trueFunc) {
                        var y = g.shouldTestNextSiblings, v = void 0 !== y && y;
                        return function (e) {
                            if (!t(e)) return !1;
                            f[0] = e;
                            var n = d.getChildren(e), r = v ? i(i([], n, !0), l(e, d), !0) : n;
                            return d.existsOne(m, r)
                        }
                    }
                    return function (e) {
                        return t(e) && d.existsOne(m, d.getChildren(e))
                    }
                }
            }
        }, 7353: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.isTraversal = void 0;
            var i = n(7763),
                r = new Map([[i.SelectorType.Universal, 50], [i.SelectorType.Tag, 30], [i.SelectorType.Attribute, 1], [i.SelectorType.Pseudo, 0]]);
            e.isTraversal = function (t) {
                return !r.has(t.type)
            };
            var o = new Map([[i.AttributeAction.Exists, 10], [i.AttributeAction.Equals, 8], [i.AttributeAction.Not, 7], [i.AttributeAction.Start, 6], [i.AttributeAction.End, 6], [i.AttributeAction.Any, 5]]);

            function a(t) {
                var e, n, s = null !== (e = r.get(t.type)) && void 0 !== e ? e : -1;
                return t.type === i.SelectorType.Attribute ? (s = null !== (n = o.get(t.action)) && void 0 !== n ? n : 4, t.action === i.AttributeAction.Equals && "id" === t.name && (s = 9), t.ignoreCase && (s >>= 1)) : t.type === i.SelectorType.Pseudo && (t.data ? "has" === t.name || "contains" === t.name ? s = 0 : Array.isArray(t.data) ? (s = Math.min.apply(Math, t.data.map((function (t) {
                    return Math.min.apply(Math, t.map(a))
                })))) < 0 && (s = 0) : s = 2 : s = 3), s
            }

            e.default = function (t) {
                for (var e = t.map(a), n = 1; n < t.length; n++) {
                    var i = e[n];
                    if (!(i < 0)) for (var r = n - 1; r >= 0 && i < e[r]; r--) {
                        var o = t[r + 1];
                        t[r + 1] = t[r], t[r] = o, e[r + 1] = e[r], e[r] = i
                    }
                }
            }
        }, 7763: (t, e, n) => {
            "use strict";
            var i;
            n.r(e), n.d(e, {
                AttributeAction: () => o,
                IgnoreCaseMode: () => r,
                SelectorType: () => i,
                isTraversal: () => c,
                parse: () => m,
                stringify: () => A
            }), function (t) {
                t.Attribute = "attribute", t.Pseudo = "pseudo", t.PseudoElement = "pseudo-element", t.Tag = "tag", t.Universal = "universal", t.Adjacent = "adjacent", t.Child = "child", t.Descendant = "descendant", t.Parent = "parent", t.Sibling = "sibling", t.ColumnCombinator = "column-combinator"
            }(i || (i = {}));
            const r = {Unknown: null, QuirksMode: "quirks", IgnoreCase: !0, CaseSensitive: !1};
            var o;
            !function (t) {
                t.Any = "any", t.Element = "element", t.End = "end", t.Equals = "equals", t.Exists = "exists", t.Hyphen = "hyphen", t.Not = "not", t.Start = "start"
            }(o || (o = {}));
            const a = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/, s = /\\([\da-f]{1,6}\s?|(\s)|.)/gi,
                l = new Map([[126, o.Element], [94, o.Start], [36, o.End], [42, o.Any], [33, o.Not], [124, o.Hyphen]]),
                u = new Set(["has", "not", "matches", "is", "where", "host", "host-context"]);

            function c(t) {
                switch (t.type) {
                    case i.Adjacent:
                    case i.Child:
                    case i.Descendant:
                    case i.Parent:
                    case i.Sibling:
                    case i.ColumnCombinator:
                        return !0;
                    default:
                        return !1
                }
            }

            const h = new Set(["contains", "icontains"]);

            function d(t, e, n) {
                const i = parseInt(e, 16) - 65536;
                return i != i || n ? e : i < 0 ? String.fromCharCode(i + 65536) : String.fromCharCode(i >> 10 | 55296, 1023 & i | 56320)
            }

            function p(t) {
                return t.replace(s, d)
            }

            function f(t) {
                return 39 === t || 34 === t
            }

            function g(t) {
                return 32 === t || 9 === t || 10 === t || 12 === t || 13 === t
            }

            function m(t) {
                const e = [], n = y(e, `${t}`, 0);
                if (n < t.length) throw new Error(`Unmatched selector: ${t.slice(n)}`);
                return e
            }

            function y(t, e, n) {
                let r = [];

                function s(t) {
                    const i = e.slice(n + t).match(a);
                    if (!i) throw new Error(`Expected name, found ${e.slice(n)}`);
                    const [r] = i;
                    return n += t + r.length, p(r)
                }

                function d(t) {
                    for (n += t; n < e.length && g(e.charCodeAt(n));) n++
                }

                function m() {
                    const t = n += 1;
                    let i = 1;
                    for (; i > 0 && n < e.length; n++) 40 !== e.charCodeAt(n) || v(n) ? 41 !== e.charCodeAt(n) || v(n) || i-- : i++;
                    if (i) throw new Error("Parenthesis not matched");
                    return p(e.slice(t, n - 1))
                }

                function v(t) {
                    let n = 0;
                    for (; 92 === e.charCodeAt(--t);) n++;
                    return 1 == (1 & n)
                }

                function _() {
                    if (r.length > 0 && c(r[r.length - 1])) throw new Error("Did not expect successive traversals.")
                }

                function T(t) {
                    r.length > 0 && r[r.length - 1].type === i.Descendant ? r[r.length - 1].type = t : (_(), r.push({type: t}))
                }

                function x(t, e) {
                    r.push({type: i.Attribute, name: t, action: e, value: s(1), namespace: null, ignoreCase: "quirks"})
                }

                function S() {
                    if (r.length && r[r.length - 1].type === i.Descendant && r.pop(), 0 === r.length) throw new Error("Empty sub-selector");
                    t.push(r)
                }

                if (d(0), e.length === n) return n;
                t:for (; n < e.length;) {
                    const t = e.charCodeAt(n);
                    switch (t) {
                        case 32:
                        case 9:
                        case 10:
                        case 12:
                        case 13:
                            0 !== r.length && r[0].type === i.Descendant || (_(), r.push({type: i.Descendant})), d(1);
                            break;
                        case 62:
                            T(i.Child), d(1);
                            break;
                        case 60:
                            T(i.Parent), d(1);
                            break;
                        case 126:
                            T(i.Sibling), d(1);
                            break;
                        case 43:
                            T(i.Adjacent), d(1);
                            break;
                        case 46:
                            x("class", o.Element);
                            break;
                        case 35:
                            x("id", o.Equals);
                            break;
                        case 91: {
                            let t;
                            d(1);
                            let a = null;
                            124 === e.charCodeAt(n) ? t = s(1) : e.startsWith("*|", n) ? (a = "*", t = s(2)) : (t = s(0), 124 === e.charCodeAt(n) && 61 !== e.charCodeAt(n + 1) && (a = t, t = s(1))), d(0);
                            let u = o.Exists;
                            const c = l.get(e.charCodeAt(n));
                            if (c) {
                                if (u = c, 61 !== e.charCodeAt(n + 1)) throw new Error("Expected `=`");
                                d(2)
                            } else 61 === e.charCodeAt(n) && (u = o.Equals, d(1));
                            let h = "", m = null;
                            if ("exists" !== u) {
                                if (f(e.charCodeAt(n))) {
                                    const t = e.charCodeAt(n);
                                    let i = n + 1;
                                    for (; i < e.length && (e.charCodeAt(i) !== t || v(i));) i += 1;
                                    if (e.charCodeAt(i) !== t) throw new Error("Attribute value didn't end");
                                    h = p(e.slice(n + 1, i)), n = i + 1
                                } else {
                                    const t = n;
                                    for (; n < e.length && (!g(e.charCodeAt(n)) && 93 !== e.charCodeAt(n) || v(n));) n += 1;
                                    h = p(e.slice(t, n))
                                }
                                d(0);
                                const t = 32 | e.charCodeAt(n);
                                115 === t ? (m = !1, d(1)) : 105 === t && (m = !0, d(1))
                            }
                            if (93 !== e.charCodeAt(n)) throw new Error("Attribute selector didn't terminate");
                            n += 1;
                            const y = {type: i.Attribute, name: t, action: u, value: h, namespace: a, ignoreCase: m};
                            r.push(y);
                            break
                        }
                        case 58: {
                            if (58 === e.charCodeAt(n + 1)) {
                                r.push({
                                    type: i.PseudoElement,
                                    name: s(2).toLowerCase(),
                                    data: 40 === e.charCodeAt(n) ? m() : null
                                });
                                continue
                            }
                            const t = s(1).toLowerCase();
                            let o = null;
                            if (40 === e.charCodeAt(n)) if (u.has(t)) {
                                if (f(e.charCodeAt(n + 1))) throw new Error(`Pseudo-selector ${t} cannot be quoted`);
                                if (o = [], n = y(o, e, n + 1), 41 !== e.charCodeAt(n)) throw new Error(`Missing closing parenthesis in :${t} (${e})`);
                                n += 1
                            } else {
                                if (o = m(), h.has(t)) {
                                    const t = o.charCodeAt(0);
                                    t === o.charCodeAt(o.length - 1) && f(t) && (o = o.slice(1, -1))
                                }
                                o = p(o)
                            }
                            r.push({type: i.Pseudo, name: t, data: o});
                            break
                        }
                        case 44:
                            S(), r = [], d(1);
                            break;
                        default: {
                            if (e.startsWith("/*", n)) {
                                const t = e.indexOf("*/", n + 2);
                                if (t < 0) throw new Error("Comment was not terminated");
                                n = t + 2, 0 === r.length && d(0);
                                break
                            }
                            let o, l = null;
                            if (42 === t) n += 1, o = "*"; else if (124 === t) {
                                if (o = "", 124 === e.charCodeAt(n + 1)) {
                                    T(i.ColumnCombinator), d(2);
                                    break
                                }
                            } else {
                                if (!a.test(e.slice(n))) break t;
                                o = s(0)
                            }
                            124 === e.charCodeAt(n) && 124 !== e.charCodeAt(n + 1) && (l = o, 42 === e.charCodeAt(n + 1) ? (o = "*", n += 2) : o = s(1)), r.push("*" === o ? {
                                type: i.Universal,
                                namespace: l
                            } : {type: i.Tag, name: o, namespace: l})
                        }
                    }
                }
                return S(), n
            }

            const v = ["\\", '"'], _ = [...v, "(", ")"], T = new Set(v.map((t => t.charCodeAt(0)))),
                x = new Set(_.map((t => t.charCodeAt(0)))),
                S = new Set([..._, "~", "^", "$", "*", "+", "!", "|", ":", "[", "]", " ", "."].map((t => t.charCodeAt(0))));

            function A(t) {
                return t.map((t => t.map(b).join(""))).join(", ")
            }

            function b(t, e, n) {
                switch (t.type) {
                    case i.Child:
                        return 0 === e ? "> " : " > ";
                    case i.Parent:
                        return 0 === e ? "< " : " < ";
                    case i.Sibling:
                        return 0 === e ? "~ " : " ~ ";
                    case i.Adjacent:
                        return 0 === e ? "+ " : " + ";
                    case i.Descendant:
                        return " ";
                    case i.ColumnCombinator:
                        return 0 === e ? "|| " : " || ";
                    case i.Universal:
                        return "*" === t.namespace && e + 1 < n.length && "name" in n[e + 1] ? "" : `${E(t.namespace)}*`;
                    case i.Tag:
                        return I(t);
                    case i.PseudoElement:
                        return `::${C(t.name, S)}${null === t.data ? "" : `(${C(t.data, x)})`}`;
                    case i.Pseudo:
                        return `:${C(t.name, S)}${null === t.data ? "" : `(${"string" == typeof t.data ? C(t.data, x) : A(t.data)})`}`;
                    case i.Attribute: {
                        if ("id" === t.name && t.action === o.Equals && "quirks" === t.ignoreCase && !t.namespace) return `#${C(t.value, S)}`;
                        if ("class" === t.name && t.action === o.Element && "quirks" === t.ignoreCase && !t.namespace) return `.${C(t.value, S)}`;
                        const e = I(t);
                        return t.action === o.Exists ? `[${e}]` : `[${e}${function (t) {
                            switch (t) {
                                case o.Equals:
                                    return "";
                                case o.Element:
                                    return "~";
                                case o.Start:
                                    return "^";
                                case o.End:
                                    return "$";
                                case o.Any:
                                    return "*";
                                case o.Not:
                                    return "!";
                                case o.Hyphen:
                                    return "|";
                                case o.Exists:
                                    throw new Error("Shouldn't be here")
                            }
                        }(t.action)}="${C(t.value, T)}"${null === t.ignoreCase ? "" : t.ignoreCase ? " i" : " s"}]`
                    }
                }
            }

            function I(t) {
                return `${E(t.namespace)}${C(t.name, S)}`
            }

            function E(t) {
                return null !== t ? `${"*" === t ? "*" : C(t, S)}|` : ""
            }

            function C(t, e) {
                let n = 0, i = "";
                for (let r = 0; r < t.length; r++) e.has(t.charCodeAt(r)) && (i += `${t.slice(n, r)}\\${t.charAt(r)}`, n = r + 1);
                return i.length > 0 ? i + t.slice(n) : t
            }
        }, 7837: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.attributeNames = e.elementNames = void 0, e.elementNames = new Map(["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "textPath"].map((function (t) {
                return [t.toLowerCase(), t]
            }))), e.attributeNames = new Map(["definitionURL", "attributeName", "attributeType", "baseFrequency", "baseProfile", "calcMode", "clipPathUnits", "diffuseConstant", "edgeMode", "filterUnits", "glyphRef", "gradientTransform", "gradientUnits", "kernelMatrix", "kernelUnitLength", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "limitingConeAngle", "markerHeight", "markerUnits", "markerWidth", "maskContentUnits", "maskUnits", "numOctaves", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "refX", "refY", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "specularConstant", "specularExponent", "spreadMethod", "startOffset", "stdDeviation", "stitchTiles", "surfaceScale", "systemLanguage", "tableValues", "targetX", "targetY", "textLength", "viewBox", "viewTarget", "xChannelSelector", "yChannelSelector", "zoomAndPan"].map((function (t) {
                return [t.toLowerCase(), t]
            })))
        }, 7220: function (t, e, n) {
            "use strict";
            var i = this && this.__assign || function () {
                return i = Object.assign || function (t) {
                    for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
                    return t
                }, i.apply(this, arguments)
            }, r = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), o = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), a = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && r(e, t, n);
                return o(e, t), e
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.render = void 0;
            var s = a(n(9960)), l = n(5863), u = n(7837),
                c = new Set(["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"]);

            function h(t) {
                return t.replace(/"/g, "&quot;")
            }

            var d = new Set(["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source", "track", "wbr"]);

            function p(t, e) {
                void 0 === e && (e = {});
                for (var n = ("length" in t ? t : [t]), i = "", r = 0; r < n.length; r++) i += f(n[r], e);
                return i
            }

            function f(t, e) {
                switch (t.type) {
                    case s.Root:
                        return p(t.children, e);
                    case s.Doctype:
                    case s.Directive:
                        return "<".concat(t.data, ">");
                    case s.Comment:
                        return function (t) {
                            return "\x3c!--".concat(t.data, "--\x3e")
                        }(t);
                    case s.CDATA:
                        return function (t) {
                            return "<![CDATA[".concat(t.children[0].data, "]]>")
                        }(t);
                    case s.Script:
                    case s.Style:
                    case s.Tag:
                        return function (t, e) {
                            var n;
                            "foreign" === e.xmlMode && (t.name = null !== (n = u.elementNames.get(t.name)) && void 0 !== n ? n : t.name, t.parent && g.has(t.parent.name) && (e = i(i({}, e), {xmlMode: !1})));
                            !e.xmlMode && m.has(t.name) && (e = i(i({}, e), {xmlMode: "foreign"}));
                            var r = "<".concat(t.name), o = function (t, e) {
                                var n;
                                if (t) {
                                    var i = !1 === (null !== (n = e.encodeEntities) && void 0 !== n ? n : e.decodeEntities) ? h : e.xmlMode || "utf8" !== e.encodeEntities ? l.encodeXML : l.escapeAttribute;
                                    return Object.keys(t).map((function (n) {
                                        var r, o, a = null !== (r = t[n]) && void 0 !== r ? r : "";
                                        return "foreign" === e.xmlMode && (n = null !== (o = u.attributeNames.get(n)) && void 0 !== o ? o : n), e.emptyAttrs || e.xmlMode || "" !== a ? "".concat(n, '="').concat(i(a), '"') : n
                                    })).join(" ")
                                }
                            }(t.attribs, e);
                            o && (r += " ".concat(o));
                            0 === t.children.length && (e.xmlMode ? !1 !== e.selfClosingTags : e.selfClosingTags && d.has(t.name)) ? (e.xmlMode || (r += " "), r += "/>") : (r += ">", t.children.length > 0 && (r += p(t.children, e)), !e.xmlMode && d.has(t.name) || (r += "</".concat(t.name, ">")));
                            return r
                        }(t, e);
                    case s.Text:
                        return function (t, e) {
                            var n, i = t.data || "";
                            !1 === (null !== (n = e.encodeEntities) && void 0 !== n ? n : e.decodeEntities) || !e.xmlMode && t.parent && c.has(t.parent.name) || (i = e.xmlMode || "utf8" !== e.encodeEntities ? (0, l.encodeXML)(i) : (0, l.escapeText)(i));
                            return i
                        }(t, e)
                }
            }

            e.render = p, e.default = p;
            var g = new Set(["mi", "mo", "mn", "ms", "mtext", "annotation-xml", "foreignObject", "desc", "title"]),
                m = new Set(["svg", "math"])
        }, 9960: (t, e) => {
            "use strict";
            var n;
            Object.defineProperty(e, "__esModule", {value: !0}), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0, function (t) {
                t.Root = "root", t.Text = "text", t.Directive = "directive", t.Comment = "comment", t.Script = "script", t.Style = "style", t.Tag = "tag", t.CDATA = "cdata", t.Doctype = "doctype"
            }(n = e.ElementType || (e.ElementType = {})), e.isTag = function (t) {
                return t.type === n.Tag || t.type === n.Script || t.type === n.Style
            }, e.Root = n.Root, e.Text = n.Text, e.Directive = n.Directive, e.Comment = n.Comment, e.Script = n.Script, e.Style = n.Style, e.Tag = n.Tag, e.CDATA = n.CDATA, e.Doctype = n.Doctype
        }, 7915: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__exportStar || function (t, e) {
                for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n)
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.DomHandler = void 0;
            var o = n(9960), a = n(7790);
            r(n(7790), e);
            var s = {withStartIndices: !1, withEndIndices: !1, xmlMode: !1}, l = function () {
                function t(t, e, n) {
                    this.dom = [], this.root = new a.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, "function" == typeof e && (n = e, e = s), "object" == typeof t && (e = t, t = void 0), this.callback = null != t ? t : null, this.options = null != e ? e : s, this.elementCB = null != n ? n : null
                }

                return t.prototype.onparserinit = function (t) {
                    this.parser = t
                }, t.prototype.onreset = function () {
                    this.dom = [], this.root = new a.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null
                }, t.prototype.onend = function () {
                    this.done || (this.done = !0, this.parser = null, this.handleCallback(null))
                }, t.prototype.onerror = function (t) {
                    this.handleCallback(t)
                }, t.prototype.onclosetag = function () {
                    this.lastNode = null;
                    var t = this.tagStack.pop();
                    this.options.withEndIndices && (t.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(t)
                }, t.prototype.onopentag = function (t, e) {
                    var n = this.options.xmlMode ? o.ElementType.Tag : void 0, i = new a.Element(t, e, void 0, n);
                    this.addNode(i), this.tagStack.push(i)
                }, t.prototype.ontext = function (t) {
                    var e = this.lastNode;
                    if (e && e.type === o.ElementType.Text) e.data += t, this.options.withEndIndices && (e.endIndex = this.parser.endIndex); else {
                        var n = new a.Text(t);
                        this.addNode(n), this.lastNode = n
                    }
                }, t.prototype.oncomment = function (t) {
                    if (this.lastNode && this.lastNode.type === o.ElementType.Comment) this.lastNode.data += t; else {
                        var e = new a.Comment(t);
                        this.addNode(e), this.lastNode = e
                    }
                }, t.prototype.oncommentend = function () {
                    this.lastNode = null
                }, t.prototype.oncdatastart = function () {
                    var t = new a.Text(""), e = new a.CDATA([t]);
                    this.addNode(e), t.parent = e, this.lastNode = t
                }, t.prototype.oncdataend = function () {
                    this.lastNode = null
                }, t.prototype.onprocessinginstruction = function (t, e) {
                    var n = new a.ProcessingInstruction(t, e);
                    this.addNode(n)
                }, t.prototype.handleCallback = function (t) {
                    if ("function" == typeof this.callback) this.callback(t, this.dom); else if (t) throw t
                }, t.prototype.addNode = function (t) {
                    var e = this.tagStack[this.tagStack.length - 1], n = e.children[e.children.length - 1];
                    this.options.withStartIndices && (t.startIndex = this.parser.startIndex), this.options.withEndIndices && (t.endIndex = this.parser.endIndex), e.children.push(t), n && (t.prev = n, n.next = t), t.parent = e, this.lastNode = null
                }, t
            }();
            e.DomHandler = l, e.default = l
        }, 7790: function (t, e, n) {
            "use strict";
            var i, r = this && this.__extends || (i = function (t, e) {
                return i = Object.setPrototypeOf || {__proto__: []} instanceof Array && function (t, e) {
                    t.__proto__ = e
                } || function (t, e) {
                    for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n])
                }, i(t, e)
            }, function (t, e) {
                if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");

                function n() {
                    this.constructor = t
                }

                i(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }), o = this && this.__assign || function () {
                return o = Object.assign || function (t) {
                    for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
                    return t
                }, o.apply(this, arguments)
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.cloneNode = e.hasChildren = e.isDocument = e.isDirective = e.isComment = e.isText = e.isCDATA = e.isTag = e.Element = e.Document = e.CDATA = e.NodeWithChildren = e.ProcessingInstruction = e.Comment = e.Text = e.DataNode = e.Node = void 0;
            var a = n(9960), s = function () {
                function t() {
                    this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null
                }

                return Object.defineProperty(t.prototype, "parentNode", {
                    get: function () {
                        return this.parent
                    }, set: function (t) {
                        this.parent = t
                    }, enumerable: !1, configurable: !0
                }), Object.defineProperty(t.prototype, "previousSibling", {
                    get: function () {
                        return this.prev
                    }, set: function (t) {
                        this.prev = t
                    }, enumerable: !1, configurable: !0
                }), Object.defineProperty(t.prototype, "nextSibling", {
                    get: function () {
                        return this.next
                    }, set: function (t) {
                        this.next = t
                    }, enumerable: !1, configurable: !0
                }), t.prototype.cloneNode = function (t) {
                    return void 0 === t && (t = !1), S(this, t)
                }, t
            }();
            e.Node = s;
            var l = function (t) {
                function e(e) {
                    var n = t.call(this) || this;
                    return n.data = e, n
                }

                return r(e, t), Object.defineProperty(e.prototype, "nodeValue", {
                    get: function () {
                        return this.data
                    }, set: function (t) {
                        this.data = t
                    }, enumerable: !1, configurable: !0
                }), e
            }(s);
            e.DataNode = l;
            var u = function (t) {
                function e() {
                    var e = null !== t && t.apply(this, arguments) || this;
                    return e.type = a.ElementType.Text, e
                }

                return r(e, t), Object.defineProperty(e.prototype, "nodeType", {
                    get: function () {
                        return 3
                    }, enumerable: !1, configurable: !0
                }), e
            }(l);
            e.Text = u;
            var c = function (t) {
                function e() {
                    var e = null !== t && t.apply(this, arguments) || this;
                    return e.type = a.ElementType.Comment, e
                }

                return r(e, t), Object.defineProperty(e.prototype, "nodeType", {
                    get: function () {
                        return 8
                    }, enumerable: !1, configurable: !0
                }), e
            }(l);
            e.Comment = c;
            var h = function (t) {
                function e(e, n) {
                    var i = t.call(this, n) || this;
                    return i.name = e, i.type = a.ElementType.Directive, i
                }

                return r(e, t), Object.defineProperty(e.prototype, "nodeType", {
                    get: function () {
                        return 1
                    }, enumerable: !1, configurable: !0
                }), e
            }(l);
            e.ProcessingInstruction = h;
            var d = function (t) {
                function e(e) {
                    var n = t.call(this) || this;
                    return n.children = e, n
                }

                return r(e, t), Object.defineProperty(e.prototype, "firstChild", {
                    get: function () {
                        var t;
                        return null !== (t = this.children[0]) && void 0 !== t ? t : null
                    }, enumerable: !1, configurable: !0
                }), Object.defineProperty(e.prototype, "lastChild", {
                    get: function () {
                        return this.children.length > 0 ? this.children[this.children.length - 1] : null
                    }, enumerable: !1, configurable: !0
                }), Object.defineProperty(e.prototype, "childNodes", {
                    get: function () {
                        return this.children
                    }, set: function (t) {
                        this.children = t
                    }, enumerable: !1, configurable: !0
                }), e
            }(s);
            e.NodeWithChildren = d;
            var p = function (t) {
                function e() {
                    var e = null !== t && t.apply(this, arguments) || this;
                    return e.type = a.ElementType.CDATA, e
                }

                return r(e, t), Object.defineProperty(e.prototype, "nodeType", {
                    get: function () {
                        return 4
                    }, enumerable: !1, configurable: !0
                }), e
            }(d);
            e.CDATA = p;
            var f = function (t) {
                function e() {
                    var e = null !== t && t.apply(this, arguments) || this;
                    return e.type = a.ElementType.Root, e
                }

                return r(e, t), Object.defineProperty(e.prototype, "nodeType", {
                    get: function () {
                        return 9
                    }, enumerable: !1, configurable: !0
                }), e
            }(d);
            e.Document = f;
            var g = function (t) {
                function e(e, n, i, r) {
                    void 0 === i && (i = []), void 0 === r && (r = "script" === e ? a.ElementType.Script : "style" === e ? a.ElementType.Style : a.ElementType.Tag);
                    var o = t.call(this, i) || this;
                    return o.name = e, o.attribs = n, o.type = r, o
                }

                return r(e, t), Object.defineProperty(e.prototype, "nodeType", {
                    get: function () {
                        return 1
                    }, enumerable: !1, configurable: !0
                }), Object.defineProperty(e.prototype, "tagName", {
                    get: function () {
                        return this.name
                    }, set: function (t) {
                        this.name = t
                    }, enumerable: !1, configurable: !0
                }), Object.defineProperty(e.prototype, "attributes", {
                    get: function () {
                        var t = this;
                        return Object.keys(this.attribs).map((function (e) {
                            var n, i;
                            return {
                                name: e,
                                value: t.attribs[e],
                                namespace: null === (n = t["x-attribsNamespace"]) || void 0 === n ? void 0 : n[e],
                                prefix: null === (i = t["x-attribsPrefix"]) || void 0 === i ? void 0 : i[e]
                            }
                        }))
                    }, enumerable: !1, configurable: !0
                }), e
            }(d);

            function m(t) {
                return (0, a.isTag)(t)
            }

            function y(t) {
                return t.type === a.ElementType.CDATA
            }

            function v(t) {
                return t.type === a.ElementType.Text
            }

            function _(t) {
                return t.type === a.ElementType.Comment
            }

            function T(t) {
                return t.type === a.ElementType.Directive
            }

            function x(t) {
                return t.type === a.ElementType.Root
            }

            function S(t, e) {
                var n;
                if (void 0 === e && (e = !1), v(t)) n = new u(t.data); else if (_(t)) n = new c(t.data); else if (m(t)) {
                    var i = e ? A(t.children) : [], r = new g(t.name, o({}, t.attribs), i);
                    i.forEach((function (t) {
                        return t.parent = r
                    })), null != t.namespace && (r.namespace = t.namespace), t["x-attribsNamespace"] && (r["x-attribsNamespace"] = o({}, t["x-attribsNamespace"])), t["x-attribsPrefix"] && (r["x-attribsPrefix"] = o({}, t["x-attribsPrefix"])), n = r
                } else if (y(t)) {
                    i = e ? A(t.children) : [];
                    var a = new p(i);
                    i.forEach((function (t) {
                        return t.parent = a
                    })), n = a
                } else if (x(t)) {
                    i = e ? A(t.children) : [];
                    var s = new f(i);
                    i.forEach((function (t) {
                        return t.parent = s
                    })), t["x-mode"] && (s["x-mode"] = t["x-mode"]), n = s
                } else {
                    if (!T(t)) throw new Error("Not implemented yet: ".concat(t.type));
                    var l = new h(t.name, t.data);
                    null != t["x-name"] && (l["x-name"] = t["x-name"], l["x-publicId"] = t["x-publicId"], l["x-systemId"] = t["x-systemId"]), n = l
                }
                return n.startIndex = t.startIndex, n.endIndex = t.endIndex, null != t.sourceCodeLocation && (n.sourceCodeLocation = t.sourceCodeLocation), n
            }

            function A(t) {
                for (var e = t.map((function (t) {
                    return S(t, !0)
                })), n = 1; n < e.length; n++) e[n].prev = e[n - 1], e[n - 1].next = e[n];
                return e
            }

            e.Element = g, e.isTag = m, e.isCDATA = y, e.isText = v, e.isComment = _, e.isDirective = T, e.isDocument = x, e.hasChildren = function (t) {
                return Object.prototype.hasOwnProperty.call(t, "children")
            }, e.cloneNode = S
        }, 6996: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.getFeed = void 0;
            var i = n(3346), r = n(3905);
            e.getFeed = function (t) {
                var e = l(h, t);
                return e ? "feed" === e.name ? function (t) {
                    var e, n = t.children, i = {
                        type: "atom", items: (0, r.getElementsByTagName)("entry", n).map((function (t) {
                            var e, n = t.children, i = {media: s(n)};
                            c(i, "id", "id", n), c(i, "title", "title", n);
                            var r = null === (e = l("link", n)) || void 0 === e ? void 0 : e.attribs.href;
                            r && (i.link = r);
                            var o = u("summary", n) || u("content", n);
                            o && (i.description = o);
                            var a = u("updated", n);
                            return a && (i.pubDate = new Date(a)), i
                        }))
                    };
                    c(i, "id", "id", n), c(i, "title", "title", n);
                    var o = null === (e = l("link", n)) || void 0 === e ? void 0 : e.attribs.href;
                    o && (i.link = o);
                    c(i, "description", "subtitle", n);
                    var a = u("updated", n);
                    a && (i.updated = new Date(a));
                    return c(i, "author", "email", n, !0), i
                }(e) : function (t) {
                    var e, n,
                        i = null !== (n = null === (e = l("channel", t.children)) || void 0 === e ? void 0 : e.children) && void 0 !== n ? n : [],
                        o = {
                            type: t.name.substr(0, 3),
                            id: "",
                            items: (0, r.getElementsByTagName)("item", t.children).map((function (t) {
                                var e = t.children, n = {media: s(e)};
                                c(n, "id", "guid", e), c(n, "title", "title", e), c(n, "link", "link", e), c(n, "description", "description", e);
                                var i = u("pubDate", e) || u("dc:date", e);
                                return i && (n.pubDate = new Date(i)), n
                            }))
                        };
                    c(o, "title", "title", i), c(o, "link", "link", i), c(o, "description", "description", i);
                    var a = u("lastBuildDate", i);
                    a && (o.updated = new Date(a));
                    return c(o, "author", "managingEditor", i, !0), o
                }(e) : null
            };
            var o = ["url", "type", "lang"],
                a = ["fileSize", "bitrate", "framerate", "samplingrate", "channels", "duration", "height", "width"];

            function s(t) {
                return (0, r.getElementsByTagName)("media:content", t).map((function (t) {
                    for (var e = t.attribs, n = {
                        medium: e.medium,
                        isDefault: !!e.isDefault
                    }, i = 0, r = o; i < r.length; i++) {
                        e[u = r[i]] && (n[u] = e[u])
                    }
                    for (var s = 0, l = a; s < l.length; s++) {
                        var u;
                        e[u = l[s]] && (n[u] = parseInt(e[u], 10))
                    }
                    return e.expression && (n.expression = e.expression), n
                }))
            }

            function l(t, e) {
                return (0, r.getElementsByTagName)(t, e, !0, 1)[0]
            }

            function u(t, e, n) {
                return void 0 === n && (n = !1), (0, i.textContent)((0, r.getElementsByTagName)(t, e, n, 1)).trim()
            }

            function c(t, e, n, i, r) {
                void 0 === r && (r = !1);
                var o = u(n, i, r);
                o && (t[e] = o)
            }

            function h(t) {
                return "rss" === t || "feed" === t || "rdf:RDF" === t
            }
        }, 4975: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.uniqueSort = e.compareDocumentPosition = e.DocumentPosition = e.removeSubsets = void 0;
            var i, r = n(7915);

            function o(t, e) {
                var n = [], o = [];
                if (t === e) return 0;
                for (var a = (0, r.hasChildren)(t) ? t : t.parent; a;) n.unshift(a), a = a.parent;
                for (a = (0, r.hasChildren)(e) ? e : e.parent; a;) o.unshift(a), a = a.parent;
                for (var s = Math.min(n.length, o.length), l = 0; l < s && n[l] === o[l];) l++;
                if (0 === l) return i.DISCONNECTED;
                var u = n[l - 1], c = u.children, h = n[l], d = o[l];
                return c.indexOf(h) > c.indexOf(d) ? u === e ? i.FOLLOWING | i.CONTAINED_BY : i.FOLLOWING : u === t ? i.PRECEDING | i.CONTAINS : i.PRECEDING
            }

            e.removeSubsets = function (t) {
                for (var e = t.length; --e >= 0;) {
                    var n = t[e];
                    if (e > 0 && t.lastIndexOf(n, e - 1) >= 0) t.splice(e, 1); else for (var i = n.parent; i; i = i.parent) if (t.includes(i)) {
                        t.splice(e, 1);
                        break
                    }
                }
                return t
            }, function (t) {
                t[t.DISCONNECTED = 1] = "DISCONNECTED", t[t.PRECEDING = 2] = "PRECEDING", t[t.FOLLOWING = 4] = "FOLLOWING", t[t.CONTAINS = 8] = "CONTAINS", t[t.CONTAINED_BY = 16] = "CONTAINED_BY"
            }(i = e.DocumentPosition || (e.DocumentPosition = {})), e.compareDocumentPosition = o, e.uniqueSort = function (t) {
                return (t = t.filter((function (t, e, n) {
                    return !n.includes(t, e + 1)
                }))).sort((function (t, e) {
                    var n = o(t, e);
                    return n & i.PRECEDING ? -1 : n & i.FOLLOWING ? 1 : 0
                })), t
            }
        }, 9432: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__exportStar || function (t, e) {
                for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n)
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.hasChildren = e.isDocument = e.isComment = e.isText = e.isCDATA = e.isTag = void 0, r(n(3346), e), r(n(5010), e), r(n(6765), e), r(n(8043), e), r(n(3905), e), r(n(4975), e), r(n(6996), e);
            var o = n(7915);
            Object.defineProperty(e, "isTag", {
                enumerable: !0, get: function () {
                    return o.isTag
                }
            }), Object.defineProperty(e, "isCDATA", {
                enumerable: !0, get: function () {
                    return o.isCDATA
                }
            }), Object.defineProperty(e, "isText", {
                enumerable: !0, get: function () {
                    return o.isText
                }
            }), Object.defineProperty(e, "isComment", {
                enumerable: !0, get: function () {
                    return o.isComment
                }
            }), Object.defineProperty(e, "isDocument", {
                enumerable: !0, get: function () {
                    return o.isDocument
                }
            }), Object.defineProperty(e, "hasChildren", {
                enumerable: !0, get: function () {
                    return o.hasChildren
                }
            })
        }, 3905: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.getElementsByTagType = e.getElementsByTagName = e.getElementById = e.getElements = e.testElement = void 0;
            var i = n(7915), r = n(8043), o = {
                tag_name: function (t) {
                    return "function" == typeof t ? function (e) {
                        return (0, i.isTag)(e) && t(e.name)
                    } : "*" === t ? i.isTag : function (e) {
                        return (0, i.isTag)(e) && e.name === t
                    }
                }, tag_type: function (t) {
                    return "function" == typeof t ? function (e) {
                        return t(e.type)
                    } : function (e) {
                        return e.type === t
                    }
                }, tag_contains: function (t) {
                    return "function" == typeof t ? function (e) {
                        return (0, i.isText)(e) && t(e.data)
                    } : function (e) {
                        return (0, i.isText)(e) && e.data === t
                    }
                }
            };

            function a(t, e) {
                return "function" == typeof e ? function (n) {
                    return (0, i.isTag)(n) && e(n.attribs[t])
                } : function (n) {
                    return (0, i.isTag)(n) && n.attribs[t] === e
                }
            }

            function s(t, e) {
                return function (n) {
                    return t(n) || e(n)
                }
            }

            function l(t) {
                var e = Object.keys(t).map((function (e) {
                    var n = t[e];
                    return Object.prototype.hasOwnProperty.call(o, e) ? o[e](n) : a(e, n)
                }));
                return 0 === e.length ? null : e.reduce(s)
            }

            e.testElement = function (t, e) {
                var n = l(t);
                return !n || n(e)
            }, e.getElements = function (t, e, n, i) {
                void 0 === i && (i = 1 / 0);
                var o = l(t);
                return o ? (0, r.filter)(o, e, n, i) : []
            }, e.getElementById = function (t, e, n) {
                return void 0 === n && (n = !0), Array.isArray(e) || (e = [e]), (0, r.findOne)(a("id", t), e, n)
            }, e.getElementsByTagName = function (t, e, n, i) {
                return void 0 === n && (n = !0), void 0 === i && (i = 1 / 0), (0, r.filter)(o.tag_name(t), e, n, i)
            }, e.getElementsByTagType = function (t, e, n, i) {
                return void 0 === n && (n = !0), void 0 === i && (i = 1 / 0), (0, r.filter)(o.tag_type(t), e, n, i)
            }
        }, 6765: (t, e) => {
            "use strict";

            function n(t) {
                if (t.prev && (t.prev.next = t.next), t.next && (t.next.prev = t.prev), t.parent) {
                    var e = t.parent.children, n = e.lastIndexOf(t);
                    n >= 0 && e.splice(n, 1)
                }
                t.next = null, t.prev = null, t.parent = null
            }

            Object.defineProperty(e, "__esModule", {value: !0}), e.prepend = e.prependChild = e.append = e.appendChild = e.replaceElement = e.removeElement = void 0, e.removeElement = n, e.replaceElement = function (t, e) {
                var n = e.prev = t.prev;
                n && (n.next = e);
                var i = e.next = t.next;
                i && (i.prev = e);
                var r = e.parent = t.parent;
                if (r) {
                    var o = r.children;
                    o[o.lastIndexOf(t)] = e, t.parent = null
                }
            }, e.appendChild = function (t, e) {
                if (n(e), e.next = null, e.parent = t, t.children.push(e) > 1) {
                    var i = t.children[t.children.length - 2];
                    i.next = e, e.prev = i
                } else e.prev = null
            }, e.append = function (t, e) {
                n(e);
                var i = t.parent, r = t.next;
                if (e.next = r, e.prev = t, t.next = e, e.parent = i, r) {
                    if (r.prev = e, i) {
                        var o = i.children;
                        o.splice(o.lastIndexOf(r), 0, e)
                    }
                } else i && i.children.push(e)
            }, e.prependChild = function (t, e) {
                if (n(e), e.parent = t, e.prev = null, 1 !== t.children.unshift(e)) {
                    var i = t.children[1];
                    i.prev = e, e.next = i
                } else e.next = null
            }, e.prepend = function (t, e) {
                n(e);
                var i = t.parent;
                if (i) {
                    var r = i.children;
                    r.splice(r.indexOf(t), 0, e)
                }
                t.prev && (t.prev.next = e), e.parent = i, e.prev = t.prev, e.next = t, t.prev = e
            }
        }, 8043: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.findAll = e.existsOne = e.findOne = e.findOneChild = e.find = e.filter = void 0;
            var i = n(7915);

            function r(t, e, n, r) {
                for (var o = [], a = [e], s = [0]; ;) if (s[0] >= a[0].length) {
                    if (1 === s.length) return o;
                    a.shift(), s.shift()
                } else {
                    var l = a[0][s[0]++];
                    if (t(l) && (o.push(l), --r <= 0)) return o;
                    n && (0, i.hasChildren)(l) && l.children.length > 0 && (s.unshift(0), a.unshift(l.children))
                }
            }

            e.filter = function (t, e, n, i) {
                return void 0 === n && (n = !0), void 0 === i && (i = 1 / 0), r(t, Array.isArray(e) ? e : [e], n, i)
            }, e.find = r, e.findOneChild = function (t, e) {
                return e.find(t)
            }, e.findOne = function t(e, n, r) {
                void 0 === r && (r = !0);
                for (var o = null, a = 0; a < n.length && !o; a++) {
                    var s = n[a];
                    (0, i.isTag)(s) && (e(s) ? o = s : r && s.children.length > 0 && (o = t(e, s.children, !0)))
                }
                return o
            }, e.existsOne = function t(e, n) {
                return n.some((function (n) {
                    return (0, i.isTag)(n) && (e(n) || t(e, n.children))
                }))
            }, e.findAll = function (t, e) {
                for (var n = [], r = [e], o = [0]; ;) if (o[0] >= r[0].length) {
                    if (1 === r.length) return n;
                    r.shift(), o.shift()
                } else {
                    var a = r[0][o[0]++];
                    (0, i.isTag)(a) && (t(a) && n.push(a), a.children.length > 0 && (o.unshift(0), r.unshift(a.children)))
                }
            }
        }, 3346: function (t, e, n) {
            "use strict";
            var i = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.innerText = e.textContent = e.getText = e.getInnerHTML = e.getOuterHTML = void 0;
            var r = n(7915), o = i(n(7220)), a = n(9960);

            function s(t, e) {
                return (0, o.default)(t, e)
            }

            e.getOuterHTML = s, e.getInnerHTML = function (t, e) {
                return (0, r.hasChildren)(t) ? t.children.map((function (t) {
                    return s(t, e)
                })).join("") : ""
            }, e.getText = function t(e) {
                return Array.isArray(e) ? e.map(t).join("") : (0, r.isTag)(e) ? "br" === e.name ? "\n" : t(e.children) : (0, r.isCDATA)(e) ? t(e.children) : (0, r.isText)(e) ? e.data : ""
            }, e.textContent = function t(e) {
                return Array.isArray(e) ? e.map(t).join("") : (0, r.hasChildren)(e) && !(0, r.isComment)(e) ? t(e.children) : (0, r.isText)(e) ? e.data : ""
            }, e.innerText = function t(e) {
                return Array.isArray(e) ? e.map(t).join("") : (0, r.hasChildren)(e) && (e.type === a.ElementType.Tag || (0, r.isCDATA)(e)) ? t(e.children) : (0, r.isText)(e) ? e.data : ""
            }
        }, 5010: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.prevElementSibling = e.nextElementSibling = e.getName = e.hasAttrib = e.getAttributeValue = e.getSiblings = e.getParent = e.getChildren = void 0;
            var i = n(7915);

            function r(t) {
                return (0, i.hasChildren)(t) ? t.children : []
            }

            function o(t) {
                return t.parent || null
            }

            e.getChildren = r, e.getParent = o, e.getSiblings = function (t) {
                var e = o(t);
                if (null != e) return r(e);
                for (var n = [t], i = t.prev, a = t.next; null != i;) n.unshift(i), i = i.prev;
                for (; null != a;) n.push(a), a = a.next;
                return n
            }, e.getAttributeValue = function (t, e) {
                var n;
                return null === (n = t.attribs) || void 0 === n ? void 0 : n[e]
            }, e.hasAttrib = function (t, e) {
                return null != t.attribs && Object.prototype.hasOwnProperty.call(t.attribs, e) && null != t.attribs[e]
            }, e.getName = function (t) {
                return t.name
            }, e.nextElementSibling = function (t) {
                for (var e = t.next; null !== e && !(0, i.isTag)(e);) e = e.next;
                return e
            }, e.prevElementSibling = function (t) {
                for (var e = t.prev; null !== e && !(0, i.isTag)(e);) e = e.prev;
                return e
            }
        }, 4076: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), o = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n);
                return r(e, t), e
            }, a = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.decodeXML = e.decodeHTMLStrict = e.decodeHTMLAttribute = e.decodeHTML = e.determineBranch = e.EntityDecoder = e.DecodingMode = e.BinTrieFlags = e.fromCodePoint = e.replaceCodePoint = e.decodeCodePoint = e.xmlDecodeTree = e.htmlDecodeTree = void 0;
            var s = a(n(3704));
            e.htmlDecodeTree = s.default;
            var l = a(n(2060));
            e.xmlDecodeTree = l.default;
            var u = o(n(26));
            e.decodeCodePoint = u.default;
            var c, h = n(26);
            Object.defineProperty(e, "replaceCodePoint", {
                enumerable: !0, get: function () {
                    return h.replaceCodePoint
                }
            }), Object.defineProperty(e, "fromCodePoint", {
                enumerable: !0, get: function () {
                    return h.fromCodePoint
                }
            }), function (t) {
                t[t.NUM = 35] = "NUM", t[t.SEMI = 59] = "SEMI", t[t.EQUALS = 61] = "EQUALS", t[t.ZERO = 48] = "ZERO", t[t.NINE = 57] = "NINE", t[t.LOWER_A = 97] = "LOWER_A", t[t.LOWER_F = 102] = "LOWER_F", t[t.LOWER_X = 120] = "LOWER_X", t[t.LOWER_Z = 122] = "LOWER_Z", t[t.UPPER_A = 65] = "UPPER_A", t[t.UPPER_F = 70] = "UPPER_F", t[t.UPPER_Z = 90] = "UPPER_Z"
            }(c || (c = {}));
            var d, p, f;

            function g(t) {
                return t >= c.ZERO && t <= c.NINE
            }

            function m(t) {
                return t === c.EQUALS || function (t) {
                    return t >= c.UPPER_A && t <= c.UPPER_Z || t >= c.LOWER_A && t <= c.LOWER_Z || g(t)
                }(t)
            }

            !function (t) {
                t[t.VALUE_LENGTH = 49152] = "VALUE_LENGTH", t[t.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", t[t.JUMP_TABLE = 127] = "JUMP_TABLE"
            }(d = e.BinTrieFlags || (e.BinTrieFlags = {})), function (t) {
                t[t.EntityStart = 0] = "EntityStart", t[t.NumericStart = 1] = "NumericStart", t[t.NumericDecimal = 2] = "NumericDecimal", t[t.NumericHex = 3] = "NumericHex", t[t.NamedEntity = 4] = "NamedEntity"
            }(p || (p = {})), function (t) {
                t[t.Legacy = 0] = "Legacy", t[t.Strict = 1] = "Strict", t[t.Attribute = 2] = "Attribute"
            }(f = e.DecodingMode || (e.DecodingMode = {}));
            var y = function () {
                function t(t, e, n) {
                    this.decodeTree = t, this.emitCodePoint = e, this.errors = n, this.state = p.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = f.Strict
                }

                return t.prototype.startEntity = function (t) {
                    this.decodeMode = t, this.state = p.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1
                }, t.prototype.write = function (t, e) {
                    switch (this.state) {
                        case p.EntityStart:
                            return t.charCodeAt(e) === c.NUM ? (this.state = p.NumericStart, this.consumed += 1, this.stateNumericStart(t, e + 1)) : (this.state = p.NamedEntity, this.stateNamedEntity(t, e));
                        case p.NumericStart:
                            return this.stateNumericStart(t, e);
                        case p.NumericDecimal:
                            return this.stateNumericDecimal(t, e);
                        case p.NumericHex:
                            return this.stateNumericHex(t, e);
                        case p.NamedEntity:
                            return this.stateNamedEntity(t, e)
                    }
                }, t.prototype.stateNumericStart = function (t, e) {
                    return e >= t.length ? -1 : (32 | t.charCodeAt(e)) === c.LOWER_X ? (this.state = p.NumericHex, this.consumed += 1, this.stateNumericHex(t, e + 1)) : (this.state = p.NumericDecimal, this.stateNumericDecimal(t, e))
                }, t.prototype.addToNumericResult = function (t, e, n, i) {
                    if (e !== n) {
                        var r = n - e;
                        this.result = this.result * Math.pow(i, r) + parseInt(t.substr(e, r), i), this.consumed += r
                    }
                }, t.prototype.stateNumericHex = function (t, e) {
                    for (var n, i = e; e < t.length;) {
                        var r = t.charCodeAt(e);
                        if (!(g(r) || (n = r, n >= c.UPPER_A && n <= c.UPPER_F || n >= c.LOWER_A && n <= c.LOWER_F))) return this.addToNumericResult(t, i, e, 16), this.emitNumericEntity(r, 3);
                        e += 1
                    }
                    return this.addToNumericResult(t, i, e, 16), -1
                }, t.prototype.stateNumericDecimal = function (t, e) {
                    for (var n = e; e < t.length;) {
                        var i = t.charCodeAt(e);
                        if (!g(i)) return this.addToNumericResult(t, n, e, 10), this.emitNumericEntity(i, 2);
                        e += 1
                    }
                    return this.addToNumericResult(t, n, e, 10), -1
                }, t.prototype.emitNumericEntity = function (t, e) {
                    var n;
                    if (this.consumed <= e) return null === (n = this.errors) || void 0 === n || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
                    if (t === c.SEMI) this.consumed += 1; else if (this.decodeMode === f.Strict) return 0;
                    return this.emitCodePoint((0, u.replaceCodePoint)(this.result), this.consumed), this.errors && (t !== c.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed
                }, t.prototype.stateNamedEntity = function (t, e) {
                    for (var n = this.decodeTree, i = n[this.treeIndex], r = (i & d.VALUE_LENGTH) >> 14; e < t.length; e++, this.excess++) {
                        var o = t.charCodeAt(e);
                        if (this.treeIndex = _(n, i, this.treeIndex + Math.max(1, r), o), this.treeIndex < 0) return 0 === this.result || this.decodeMode === f.Attribute && (0 === r || m(o)) ? 0 : this.emitNotTerminatedNamedEntity();
                        if (0 !== (r = ((i = n[this.treeIndex]) & d.VALUE_LENGTH) >> 14)) {
                            if (o === c.SEMI) return this.emitNamedEntityData(this.treeIndex, r, this.consumed + this.excess);
                            this.decodeMode !== f.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0)
                        }
                    }
                    return -1
                }, t.prototype.emitNotTerminatedNamedEntity = function () {
                    var t, e = this.result, n = (this.decodeTree[e] & d.VALUE_LENGTH) >> 14;
                    return this.emitNamedEntityData(e, n, this.consumed), null === (t = this.errors) || void 0 === t || t.missingSemicolonAfterCharacterReference(), this.consumed
                }, t.prototype.emitNamedEntityData = function (t, e, n) {
                    var i = this.decodeTree;
                    return this.emitCodePoint(1 === e ? i[t] & ~d.VALUE_LENGTH : i[t + 1], n), 3 === e && this.emitCodePoint(i[t + 2], n), n
                }, t.prototype.end = function () {
                    var t;
                    switch (this.state) {
                        case p.NamedEntity:
                            return 0 === this.result || this.decodeMode === f.Attribute && this.result !== this.treeIndex ? 0 : this.emitNotTerminatedNamedEntity();
                        case p.NumericDecimal:
                            return this.emitNumericEntity(0, 2);
                        case p.NumericHex:
                            return this.emitNumericEntity(0, 3);
                        case p.NumericStart:
                            return null === (t = this.errors) || void 0 === t || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
                        case p.EntityStart:
                            return 0
                    }
                }, t
            }();

            function v(t) {
                var e = "", n = new y(t, (function (t) {
                    return e += (0, u.fromCodePoint)(t)
                }));
                return function (t, i) {
                    for (var r = 0, o = 0; (o = t.indexOf("&", o)) >= 0;) {
                        e += t.slice(r, o), n.startEntity(i);
                        var a = n.write(t, o + 1);
                        if (a < 0) {
                            r = o + n.end();
                            break
                        }
                        r = o + a, o = 0 === a ? r + 1 : r
                    }
                    var s = e + t.slice(r);
                    return e = "", s
                }
            }

            function _(t, e, n, i) {
                var r = (e & d.BRANCH_LENGTH) >> 7, o = e & d.JUMP_TABLE;
                if (0 === r) return 0 !== o && i === o ? n : -1;
                if (o) {
                    var a = i - o;
                    return a < 0 || a >= r ? -1 : t[n + a] - 1
                }
                for (var s = n, l = s + r - 1; s <= l;) {
                    var u = s + l >>> 1, c = t[u];
                    if (c < i) s = u + 1; else {
                        if (!(c > i)) return t[u + r];
                        l = u - 1
                    }
                }
                return -1
            }

            e.EntityDecoder = y, e.determineBranch = _;
            var T = v(s.default), x = v(l.default);
            e.decodeHTML = function (t, e) {
                return void 0 === e && (e = f.Legacy), T(t, e)
            }, e.decodeHTMLAttribute = function (t) {
                return T(t, f.Attribute)
            }, e.decodeHTMLStrict = function (t) {
                return T(t, f.Strict)
            }, e.decodeXML = function (t) {
                return x(t, f.Strict)
            }
        }, 26: (t, e) => {
            "use strict";
            var n;
            Object.defineProperty(e, "__esModule", {value: !0}), e.replaceCodePoint = e.fromCodePoint = void 0;
            var i = new Map([[0, 65533], [128, 8364], [130, 8218], [131, 402], [132, 8222], [133, 8230], [134, 8224], [135, 8225], [136, 710], [137, 8240], [138, 352], [139, 8249], [140, 338], [142, 381], [145, 8216], [146, 8217], [147, 8220], [148, 8221], [149, 8226], [150, 8211], [151, 8212], [152, 732], [153, 8482], [154, 353], [155, 8250], [156, 339], [158, 382], [159, 376]]);

            function r(t) {
                var e;
                return t >= 55296 && t <= 57343 || t > 1114111 ? 65533 : null !== (e = i.get(t)) && void 0 !== e ? e : t
            }

            e.fromCodePoint = null !== (n = String.fromCodePoint) && void 0 !== n ? n : function (t) {
                var e = "";
                return t > 65535 && (t -= 65536, e += String.fromCharCode(t >>> 10 & 1023 | 55296), t = 56320 | 1023 & t), e += String.fromCharCode(t)
            }, e.replaceCodePoint = r, e.default = function (t) {
                return (0, e.fromCodePoint)(r(t))
            }
        }, 7322: function (t, e, n) {
            "use strict";
            var i = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.encodeNonAsciiHTML = e.encodeHTML = void 0;
            var r = i(n(4021)), o = n(4625), a = /[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;

            function s(t, e) {
                for (var n, i = "", a = 0; null !== (n = t.exec(e));) {
                    var s = n.index;
                    i += e.substring(a, s);
                    var l = e.charCodeAt(s), u = r.default.get(l);
                    if ("object" == typeof u) {
                        if (s + 1 < e.length) {
                            var c = e.charCodeAt(s + 1),
                                h = "number" == typeof u.n ? u.n === c ? u.o : void 0 : u.n.get(c);
                            if (void 0 !== h) {
                                i += h, a = t.lastIndex += 1;
                                continue
                            }
                        }
                        u = u.v
                    }
                    if (void 0 !== u) i += u, a = s + 1; else {
                        var d = (0, o.getCodePoint)(e, s);
                        i += "&#x".concat(d.toString(16), ";"), a = t.lastIndex += Number(d !== l)
                    }
                }
                return i + e.substr(a)
            }

            e.encodeHTML = function (t) {
                return s(a, t)
            }, e.encodeNonAsciiHTML = function (t) {
                return s(o.xmlReplacer, t)
            }
        }, 4625: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.escapeText = e.escapeAttribute = e.escapeUTF8 = e.escape = e.encodeXML = e.getCodePoint = e.xmlReplacer = void 0, e.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
            var n = new Map([[34, "&quot;"], [38, "&amp;"], [39, "&apos;"], [60, "&lt;"], [62, "&gt;"]]);

            function i(t) {
                for (var i, r = "", o = 0; null !== (i = e.xmlReplacer.exec(t));) {
                    var a = i.index, s = t.charCodeAt(a), l = n.get(s);
                    void 0 !== l ? (r += t.substring(o, a) + l, o = a + 1) : (r += "".concat(t.substring(o, a), "&#x").concat((0, e.getCodePoint)(t, a).toString(16), ";"), o = e.xmlReplacer.lastIndex += Number(55296 == (64512 & s)))
                }
                return r + t.substr(o)
            }

            function r(t, e) {
                return function (n) {
                    for (var i, r = 0, o = ""; i = t.exec(n);) r !== i.index && (o += n.substring(r, i.index)), o += e.get(i[0].charCodeAt(0)), r = i.index + 1;
                    return o + n.substring(r)
                }
            }

            e.getCodePoint = null != String.prototype.codePointAt ? function (t, e) {
                return t.codePointAt(e)
            } : function (t, e) {
                return 55296 == (64512 & t.charCodeAt(e)) ? 1024 * (t.charCodeAt(e) - 55296) + t.charCodeAt(e + 1) - 56320 + 65536 : t.charCodeAt(e)
            }, e.encodeXML = i, e.escape = i, e.escapeUTF8 = r(/[&<>'"]/g, n), e.escapeAttribute = r(/["&\u00A0]/g, new Map([[34, "&quot;"], [38, "&amp;"], [160, "&nbsp;"]])), e.escapeText = r(/[&<>\u00A0]/g, new Map([[38, "&amp;"], [60, "&lt;"], [62, "&gt;"], [160, "&nbsp;"]]))
        }, 3704: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.default = new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function (t) {
                return t.charCodeAt(0)
            })))
        }, 2060: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.default = new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function (t) {
                return t.charCodeAt(0)
            })))
        }, 4021: (t, e) => {
            "use strict";

            function n(t) {
                for (var e = 1; e < t.length; e++) t[e][0] += t[e - 1][0] + 1;
                return t
            }

            Object.defineProperty(e, "__esModule", {value: !0}), e.default = new Map(n([[9, "&Tab;"], [0, "&NewLine;"], [22, "&excl;"], [0, "&quot;"], [0, "&num;"], [0, "&dollar;"], [0, "&percnt;"], [0, "&amp;"], [0, "&apos;"], [0, "&lpar;"], [0, "&rpar;"], [0, "&ast;"], [0, "&plus;"], [0, "&comma;"], [1, "&period;"], [0, "&sol;"], [10, "&colon;"], [0, "&semi;"], [0, {
                v: "&lt;",
                n: 8402,
                o: "&nvlt;"
            }], [0, {v: "&equals;", n: 8421, o: "&bne;"}], [0, {
                v: "&gt;",
                n: 8402,
                o: "&nvgt;"
            }], [0, "&quest;"], [0, "&commat;"], [26, "&lbrack;"], [0, "&bsol;"], [0, "&rbrack;"], [0, "&Hat;"], [0, "&lowbar;"], [0, "&DiacriticalGrave;"], [5, {
                n: 106,
                o: "&fjlig;"
            }], [20, "&lbrace;"], [0, "&verbar;"], [0, "&rbrace;"], [34, "&nbsp;"], [0, "&iexcl;"], [0, "&cent;"], [0, "&pound;"], [0, "&curren;"], [0, "&yen;"], [0, "&brvbar;"], [0, "&sect;"], [0, "&die;"], [0, "&copy;"], [0, "&ordf;"], [0, "&laquo;"], [0, "&not;"], [0, "&shy;"], [0, "&circledR;"], [0, "&macr;"], [0, "&deg;"], [0, "&PlusMinus;"], [0, "&sup2;"], [0, "&sup3;"], [0, "&acute;"], [0, "&micro;"], [0, "&para;"], [0, "&centerdot;"], [0, "&cedil;"], [0, "&sup1;"], [0, "&ordm;"], [0, "&raquo;"], [0, "&frac14;"], [0, "&frac12;"], [0, "&frac34;"], [0, "&iquest;"], [0, "&Agrave;"], [0, "&Aacute;"], [0, "&Acirc;"], [0, "&Atilde;"], [0, "&Auml;"], [0, "&angst;"], [0, "&AElig;"], [0, "&Ccedil;"], [0, "&Egrave;"], [0, "&Eacute;"], [0, "&Ecirc;"], [0, "&Euml;"], [0, "&Igrave;"], [0, "&Iacute;"], [0, "&Icirc;"], [0, "&Iuml;"], [0, "&ETH;"], [0, "&Ntilde;"], [0, "&Ograve;"], [0, "&Oacute;"], [0, "&Ocirc;"], [0, "&Otilde;"], [0, "&Ouml;"], [0, "&times;"], [0, "&Oslash;"], [0, "&Ugrave;"], [0, "&Uacute;"], [0, "&Ucirc;"], [0, "&Uuml;"], [0, "&Yacute;"], [0, "&THORN;"], [0, "&szlig;"], [0, "&agrave;"], [0, "&aacute;"], [0, "&acirc;"], [0, "&atilde;"], [0, "&auml;"], [0, "&aring;"], [0, "&aelig;"], [0, "&ccedil;"], [0, "&egrave;"], [0, "&eacute;"], [0, "&ecirc;"], [0, "&euml;"], [0, "&igrave;"], [0, "&iacute;"], [0, "&icirc;"], [0, "&iuml;"], [0, "&eth;"], [0, "&ntilde;"], [0, "&ograve;"], [0, "&oacute;"], [0, "&ocirc;"], [0, "&otilde;"], [0, "&ouml;"], [0, "&div;"], [0, "&oslash;"], [0, "&ugrave;"], [0, "&uacute;"], [0, "&ucirc;"], [0, "&uuml;"], [0, "&yacute;"], [0, "&thorn;"], [0, "&yuml;"], [0, "&Amacr;"], [0, "&amacr;"], [0, "&Abreve;"], [0, "&abreve;"], [0, "&Aogon;"], [0, "&aogon;"], [0, "&Cacute;"], [0, "&cacute;"], [0, "&Ccirc;"], [0, "&ccirc;"], [0, "&Cdot;"], [0, "&cdot;"], [0, "&Ccaron;"], [0, "&ccaron;"], [0, "&Dcaron;"], [0, "&dcaron;"], [0, "&Dstrok;"], [0, "&dstrok;"], [0, "&Emacr;"], [0, "&emacr;"], [2, "&Edot;"], [0, "&edot;"], [0, "&Eogon;"], [0, "&eogon;"], [0, "&Ecaron;"], [0, "&ecaron;"], [0, "&Gcirc;"], [0, "&gcirc;"], [0, "&Gbreve;"], [0, "&gbreve;"], [0, "&Gdot;"], [0, "&gdot;"], [0, "&Gcedil;"], [1, "&Hcirc;"], [0, "&hcirc;"], [0, "&Hstrok;"], [0, "&hstrok;"], [0, "&Itilde;"], [0, "&itilde;"], [0, "&Imacr;"], [0, "&imacr;"], [2, "&Iogon;"], [0, "&iogon;"], [0, "&Idot;"], [0, "&imath;"], [0, "&IJlig;"], [0, "&ijlig;"], [0, "&Jcirc;"], [0, "&jcirc;"], [0, "&Kcedil;"], [0, "&kcedil;"], [0, "&kgreen;"], [0, "&Lacute;"], [0, "&lacute;"], [0, "&Lcedil;"], [0, "&lcedil;"], [0, "&Lcaron;"], [0, "&lcaron;"], [0, "&Lmidot;"], [0, "&lmidot;"], [0, "&Lstrok;"], [0, "&lstrok;"], [0, "&Nacute;"], [0, "&nacute;"], [0, "&Ncedil;"], [0, "&ncedil;"], [0, "&Ncaron;"], [0, "&ncaron;"], [0, "&napos;"], [0, "&ENG;"], [0, "&eng;"], [0, "&Omacr;"], [0, "&omacr;"], [2, "&Odblac;"], [0, "&odblac;"], [0, "&OElig;"], [0, "&oelig;"], [0, "&Racute;"], [0, "&racute;"], [0, "&Rcedil;"], [0, "&rcedil;"], [0, "&Rcaron;"], [0, "&rcaron;"], [0, "&Sacute;"], [0, "&sacute;"], [0, "&Scirc;"], [0, "&scirc;"], [0, "&Scedil;"], [0, "&scedil;"], [0, "&Scaron;"], [0, "&scaron;"], [0, "&Tcedil;"], [0, "&tcedil;"], [0, "&Tcaron;"], [0, "&tcaron;"], [0, "&Tstrok;"], [0, "&tstrok;"], [0, "&Utilde;"], [0, "&utilde;"], [0, "&Umacr;"], [0, "&umacr;"], [0, "&Ubreve;"], [0, "&ubreve;"], [0, "&Uring;"], [0, "&uring;"], [0, "&Udblac;"], [0, "&udblac;"], [0, "&Uogon;"], [0, "&uogon;"], [0, "&Wcirc;"], [0, "&wcirc;"], [0, "&Ycirc;"], [0, "&ycirc;"], [0, "&Yuml;"], [0, "&Zacute;"], [0, "&zacute;"], [0, "&Zdot;"], [0, "&zdot;"], [0, "&Zcaron;"], [0, "&zcaron;"], [19, "&fnof;"], [34, "&imped;"], [63, "&gacute;"], [65, "&jmath;"], [142, "&circ;"], [0, "&caron;"], [16, "&breve;"], [0, "&DiacriticalDot;"], [0, "&ring;"], [0, "&ogon;"], [0, "&DiacriticalTilde;"], [0, "&dblac;"], [51, "&DownBreve;"], [127, "&Alpha;"], [0, "&Beta;"], [0, "&Gamma;"], [0, "&Delta;"], [0, "&Epsilon;"], [0, "&Zeta;"], [0, "&Eta;"], [0, "&Theta;"], [0, "&Iota;"], [0, "&Kappa;"], [0, "&Lambda;"], [0, "&Mu;"], [0, "&Nu;"], [0, "&Xi;"], [0, "&Omicron;"], [0, "&Pi;"], [0, "&Rho;"], [1, "&Sigma;"], [0, "&Tau;"], [0, "&Upsilon;"], [0, "&Phi;"], [0, "&Chi;"], [0, "&Psi;"], [0, "&ohm;"], [7, "&alpha;"], [0, "&beta;"], [0, "&gamma;"], [0, "&delta;"], [0, "&epsi;"], [0, "&zeta;"], [0, "&eta;"], [0, "&theta;"], [0, "&iota;"], [0, "&kappa;"], [0, "&lambda;"], [0, "&mu;"], [0, "&nu;"], [0, "&xi;"], [0, "&omicron;"], [0, "&pi;"], [0, "&rho;"], [0, "&sigmaf;"], [0, "&sigma;"], [0, "&tau;"], [0, "&upsi;"], [0, "&phi;"], [0, "&chi;"], [0, "&psi;"], [0, "&omega;"], [7, "&thetasym;"], [0, "&Upsi;"], [2, "&phiv;"], [0, "&piv;"], [5, "&Gammad;"], [0, "&digamma;"], [18, "&kappav;"], [0, "&rhov;"], [3, "&epsiv;"], [0, "&backepsilon;"], [10, "&IOcy;"], [0, "&DJcy;"], [0, "&GJcy;"], [0, "&Jukcy;"], [0, "&DScy;"], [0, "&Iukcy;"], [0, "&YIcy;"], [0, "&Jsercy;"], [0, "&LJcy;"], [0, "&NJcy;"], [0, "&TSHcy;"], [0, "&KJcy;"], [1, "&Ubrcy;"], [0, "&DZcy;"], [0, "&Acy;"], [0, "&Bcy;"], [0, "&Vcy;"], [0, "&Gcy;"], [0, "&Dcy;"], [0, "&IEcy;"], [0, "&ZHcy;"], [0, "&Zcy;"], [0, "&Icy;"], [0, "&Jcy;"], [0, "&Kcy;"], [0, "&Lcy;"], [0, "&Mcy;"], [0, "&Ncy;"], [0, "&Ocy;"], [0, "&Pcy;"], [0, "&Rcy;"], [0, "&Scy;"], [0, "&Tcy;"], [0, "&Ucy;"], [0, "&Fcy;"], [0, "&KHcy;"], [0, "&TScy;"], [0, "&CHcy;"], [0, "&SHcy;"], [0, "&SHCHcy;"], [0, "&HARDcy;"], [0, "&Ycy;"], [0, "&SOFTcy;"], [0, "&Ecy;"], [0, "&YUcy;"], [0, "&YAcy;"], [0, "&acy;"], [0, "&bcy;"], [0, "&vcy;"], [0, "&gcy;"], [0, "&dcy;"], [0, "&iecy;"], [0, "&zhcy;"], [0, "&zcy;"], [0, "&icy;"], [0, "&jcy;"], [0, "&kcy;"], [0, "&lcy;"], [0, "&mcy;"], [0, "&ncy;"], [0, "&ocy;"], [0, "&pcy;"], [0, "&rcy;"], [0, "&scy;"], [0, "&tcy;"], [0, "&ucy;"], [0, "&fcy;"], [0, "&khcy;"], [0, "&tscy;"], [0, "&chcy;"], [0, "&shcy;"], [0, "&shchcy;"], [0, "&hardcy;"], [0, "&ycy;"], [0, "&softcy;"], [0, "&ecy;"], [0, "&yucy;"], [0, "&yacy;"], [1, "&iocy;"], [0, "&djcy;"], [0, "&gjcy;"], [0, "&jukcy;"], [0, "&dscy;"], [0, "&iukcy;"], [0, "&yicy;"], [0, "&jsercy;"], [0, "&ljcy;"], [0, "&njcy;"], [0, "&tshcy;"], [0, "&kjcy;"], [1, "&ubrcy;"], [0, "&dzcy;"], [7074, "&ensp;"], [0, "&emsp;"], [0, "&emsp13;"], [0, "&emsp14;"], [1, "&numsp;"], [0, "&puncsp;"], [0, "&ThinSpace;"], [0, "&hairsp;"], [0, "&NegativeMediumSpace;"], [0, "&zwnj;"], [0, "&zwj;"], [0, "&lrm;"], [0, "&rlm;"], [0, "&dash;"], [2, "&ndash;"], [0, "&mdash;"], [0, "&horbar;"], [0, "&Verbar;"], [1, "&lsquo;"], [0, "&CloseCurlyQuote;"], [0, "&lsquor;"], [1, "&ldquo;"], [0, "&CloseCurlyDoubleQuote;"], [0, "&bdquo;"], [1, "&dagger;"], [0, "&Dagger;"], [0, "&bull;"], [2, "&nldr;"], [0, "&hellip;"], [9, "&permil;"], [0, "&pertenk;"], [0, "&prime;"], [0, "&Prime;"], [0, "&tprime;"], [0, "&backprime;"], [3, "&lsaquo;"], [0, "&rsaquo;"], [3, "&oline;"], [2, "&caret;"], [1, "&hybull;"], [0, "&frasl;"], [10, "&bsemi;"], [7, "&qprime;"], [7, {
                v: "&MediumSpace;",
                n: 8202,
                o: "&ThickSpace;"
            }], [0, "&NoBreak;"], [0, "&af;"], [0, "&InvisibleTimes;"], [0, "&ic;"], [72, "&euro;"], [46, "&tdot;"], [0, "&DotDot;"], [37, "&complexes;"], [2, "&incare;"], [4, "&gscr;"], [0, "&hamilt;"], [0, "&Hfr;"], [0, "&Hopf;"], [0, "&planckh;"], [0, "&hbar;"], [0, "&imagline;"], [0, "&Ifr;"], [0, "&lagran;"], [0, "&ell;"], [1, "&naturals;"], [0, "&numero;"], [0, "&copysr;"], [0, "&weierp;"], [0, "&Popf;"], [0, "&Qopf;"], [0, "&realine;"], [0, "&real;"], [0, "&reals;"], [0, "&rx;"], [3, "&trade;"], [1, "&integers;"], [2, "&mho;"], [0, "&zeetrf;"], [0, "&iiota;"], [2, "&bernou;"], [0, "&Cayleys;"], [1, "&escr;"], [0, "&Escr;"], [0, "&Fouriertrf;"], [1, "&Mellintrf;"], [0, "&order;"], [0, "&alefsym;"], [0, "&beth;"], [0, "&gimel;"], [0, "&daleth;"], [12, "&CapitalDifferentialD;"], [0, "&dd;"], [0, "&ee;"], [0, "&ii;"], [10, "&frac13;"], [0, "&frac23;"], [0, "&frac15;"], [0, "&frac25;"], [0, "&frac35;"], [0, "&frac45;"], [0, "&frac16;"], [0, "&frac56;"], [0, "&frac18;"], [0, "&frac38;"], [0, "&frac58;"], [0, "&frac78;"], [49, "&larr;"], [0, "&ShortUpArrow;"], [0, "&rarr;"], [0, "&darr;"], [0, "&harr;"], [0, "&updownarrow;"], [0, "&nwarr;"], [0, "&nearr;"], [0, "&LowerRightArrow;"], [0, "&LowerLeftArrow;"], [0, "&nlarr;"], [0, "&nrarr;"], [1, {
                v: "&rarrw;",
                n: 824,
                o: "&nrarrw;"
            }], [0, "&Larr;"], [0, "&Uarr;"], [0, "&Rarr;"], [0, "&Darr;"], [0, "&larrtl;"], [0, "&rarrtl;"], [0, "&LeftTeeArrow;"], [0, "&mapstoup;"], [0, "&map;"], [0, "&DownTeeArrow;"], [1, "&hookleftarrow;"], [0, "&hookrightarrow;"], [0, "&larrlp;"], [0, "&looparrowright;"], [0, "&harrw;"], [0, "&nharr;"], [1, "&lsh;"], [0, "&rsh;"], [0, "&ldsh;"], [0, "&rdsh;"], [1, "&crarr;"], [0, "&cularr;"], [0, "&curarr;"], [2, "&circlearrowleft;"], [0, "&circlearrowright;"], [0, "&leftharpoonup;"], [0, "&DownLeftVector;"], [0, "&RightUpVector;"], [0, "&LeftUpVector;"], [0, "&rharu;"], [0, "&DownRightVector;"], [0, "&dharr;"], [0, "&dharl;"], [0, "&RightArrowLeftArrow;"], [0, "&udarr;"], [0, "&LeftArrowRightArrow;"], [0, "&leftleftarrows;"], [0, "&upuparrows;"], [0, "&rightrightarrows;"], [0, "&ddarr;"], [0, "&leftrightharpoons;"], [0, "&Equilibrium;"], [0, "&nlArr;"], [0, "&nhArr;"], [0, "&nrArr;"], [0, "&DoubleLeftArrow;"], [0, "&DoubleUpArrow;"], [0, "&DoubleRightArrow;"], [0, "&dArr;"], [0, "&DoubleLeftRightArrow;"], [0, "&DoubleUpDownArrow;"], [0, "&nwArr;"], [0, "&neArr;"], [0, "&seArr;"], [0, "&swArr;"], [0, "&lAarr;"], [0, "&rAarr;"], [1, "&zigrarr;"], [6, "&larrb;"], [0, "&rarrb;"], [15, "&DownArrowUpArrow;"], [7, "&loarr;"], [0, "&roarr;"], [0, "&hoarr;"], [0, "&forall;"], [0, "&comp;"], [0, {
                v: "&part;",
                n: 824,
                o: "&npart;"
            }], [0, "&exist;"], [0, "&nexist;"], [0, "&empty;"], [1, "&Del;"], [0, "&Element;"], [0, "&NotElement;"], [1, "&ni;"], [0, "&notni;"], [2, "&prod;"], [0, "&coprod;"], [0, "&sum;"], [0, "&minus;"], [0, "&MinusPlus;"], [0, "&dotplus;"], [1, "&Backslash;"], [0, "&lowast;"], [0, "&compfn;"], [1, "&radic;"], [2, "&prop;"], [0, "&infin;"], [0, "&angrt;"], [0, {
                v: "&ang;",
                n: 8402,
                o: "&nang;"
            }], [0, "&angmsd;"], [0, "&angsph;"], [0, "&mid;"], [0, "&nmid;"], [0, "&DoubleVerticalBar;"], [0, "&NotDoubleVerticalBar;"], [0, "&and;"], [0, "&or;"], [0, {
                v: "&cap;",
                n: 65024,
                o: "&caps;"
            }], [0, {
                v: "&cup;",
                n: 65024,
                o: "&cups;"
            }], [0, "&int;"], [0, "&Int;"], [0, "&iiint;"], [0, "&conint;"], [0, "&Conint;"], [0, "&Cconint;"], [0, "&cwint;"], [0, "&ClockwiseContourIntegral;"], [0, "&awconint;"], [0, "&there4;"], [0, "&becaus;"], [0, "&ratio;"], [0, "&Colon;"], [0, "&dotminus;"], [1, "&mDDot;"], [0, "&homtht;"], [0, {
                v: "&sim;",
                n: 8402,
                o: "&nvsim;"
            }], [0, {v: "&backsim;", n: 817, o: "&race;"}], [0, {
                v: "&ac;",
                n: 819,
                o: "&acE;"
            }], [0, "&acd;"], [0, "&VerticalTilde;"], [0, "&NotTilde;"], [0, {
                v: "&eqsim;",
                n: 824,
                o: "&nesim;"
            }], [0, "&sime;"], [0, "&NotTildeEqual;"], [0, "&cong;"], [0, "&simne;"], [0, "&ncong;"], [0, "&ap;"], [0, "&nap;"], [0, "&ape;"], [0, {
                v: "&apid;",
                n: 824,
                o: "&napid;"
            }], [0, "&backcong;"], [0, {v: "&asympeq;", n: 8402, o: "&nvap;"}], [0, {
                v: "&bump;",
                n: 824,
                o: "&nbump;"
            }], [0, {v: "&bumpe;", n: 824, o: "&nbumpe;"}], [0, {
                v: "&doteq;",
                n: 824,
                o: "&nedot;"
            }], [0, "&doteqdot;"], [0, "&efDot;"], [0, "&erDot;"], [0, "&Assign;"], [0, "&ecolon;"], [0, "&ecir;"], [0, "&circeq;"], [1, "&wedgeq;"], [0, "&veeeq;"], [1, "&triangleq;"], [2, "&equest;"], [0, "&ne;"], [0, {
                v: "&Congruent;",
                n: 8421,
                o: "&bnequiv;"
            }], [0, "&nequiv;"], [1, {v: "&le;", n: 8402, o: "&nvle;"}], [0, {
                v: "&ge;",
                n: 8402,
                o: "&nvge;"
            }], [0, {v: "&lE;", n: 824, o: "&nlE;"}], [0, {v: "&gE;", n: 824, o: "&ngE;"}], [0, {
                v: "&lnE;",
                n: 65024,
                o: "&lvertneqq;"
            }], [0, {v: "&gnE;", n: 65024, o: "&gvertneqq;"}], [0, {
                v: "&ll;",
                n: new Map(n([[824, "&nLtv;"], [7577, "&nLt;"]]))
            }], [0, {
                v: "&gg;",
                n: new Map(n([[824, "&nGtv;"], [7577, "&nGt;"]]))
            }], [0, "&between;"], [0, "&NotCupCap;"], [0, "&nless;"], [0, "&ngt;"], [0, "&nle;"], [0, "&nge;"], [0, "&lesssim;"], [0, "&GreaterTilde;"], [0, "&nlsim;"], [0, "&ngsim;"], [0, "&LessGreater;"], [0, "&gl;"], [0, "&NotLessGreater;"], [0, "&NotGreaterLess;"], [0, "&pr;"], [0, "&sc;"], [0, "&prcue;"], [0, "&sccue;"], [0, "&PrecedesTilde;"], [0, {
                v: "&scsim;",
                n: 824,
                o: "&NotSucceedsTilde;"
            }], [0, "&NotPrecedes;"], [0, "&NotSucceeds;"], [0, {
                v: "&sub;",
                n: 8402,
                o: "&NotSubset;"
            }], [0, {
                v: "&sup;",
                n: 8402,
                o: "&NotSuperset;"
            }], [0, "&nsub;"], [0, "&nsup;"], [0, "&sube;"], [0, "&supe;"], [0, "&NotSubsetEqual;"], [0, "&NotSupersetEqual;"], [0, {
                v: "&subne;",
                n: 65024,
                o: "&varsubsetneq;"
            }], [0, {
                v: "&supne;",
                n: 65024,
                o: "&varsupsetneq;"
            }], [1, "&cupdot;"], [0, "&UnionPlus;"], [0, {
                v: "&sqsub;",
                n: 824,
                o: "&NotSquareSubset;"
            }], [0, {
                v: "&sqsup;",
                n: 824,
                o: "&NotSquareSuperset;"
            }], [0, "&sqsube;"], [0, "&sqsupe;"], [0, {v: "&sqcap;", n: 65024, o: "&sqcaps;"}], [0, {
                v: "&sqcup;",
                n: 65024,
                o: "&sqcups;"
            }], [0, "&CirclePlus;"], [0, "&CircleMinus;"], [0, "&CircleTimes;"], [0, "&osol;"], [0, "&CircleDot;"], [0, "&circledcirc;"], [0, "&circledast;"], [1, "&circleddash;"], [0, "&boxplus;"], [0, "&boxminus;"], [0, "&boxtimes;"], [0, "&dotsquare;"], [0, "&RightTee;"], [0, "&dashv;"], [0, "&DownTee;"], [0, "&bot;"], [1, "&models;"], [0, "&DoubleRightTee;"], [0, "&Vdash;"], [0, "&Vvdash;"], [0, "&VDash;"], [0, "&nvdash;"], [0, "&nvDash;"], [0, "&nVdash;"], [0, "&nVDash;"], [0, "&prurel;"], [1, "&LeftTriangle;"], [0, "&RightTriangle;"], [0, {
                v: "&LeftTriangleEqual;",
                n: 8402,
                o: "&nvltrie;"
            }], [0, {
                v: "&RightTriangleEqual;",
                n: 8402,
                o: "&nvrtrie;"
            }], [0, "&origof;"], [0, "&imof;"], [0, "&multimap;"], [0, "&hercon;"], [0, "&intcal;"], [0, "&veebar;"], [1, "&barvee;"], [0, "&angrtvb;"], [0, "&lrtri;"], [0, "&bigwedge;"], [0, "&bigvee;"], [0, "&bigcap;"], [0, "&bigcup;"], [0, "&diam;"], [0, "&sdot;"], [0, "&sstarf;"], [0, "&divideontimes;"], [0, "&bowtie;"], [0, "&ltimes;"], [0, "&rtimes;"], [0, "&leftthreetimes;"], [0, "&rightthreetimes;"], [0, "&backsimeq;"], [0, "&curlyvee;"], [0, "&curlywedge;"], [0, "&Sub;"], [0, "&Sup;"], [0, "&Cap;"], [0, "&Cup;"], [0, "&fork;"], [0, "&epar;"], [0, "&lessdot;"], [0, "&gtdot;"], [0, {
                v: "&Ll;",
                n: 824,
                o: "&nLl;"
            }], [0, {v: "&Gg;", n: 824, o: "&nGg;"}], [0, {v: "&leg;", n: 65024, o: "&lesg;"}], [0, {
                v: "&gel;",
                n: 65024,
                o: "&gesl;"
            }], [2, "&cuepr;"], [0, "&cuesc;"], [0, "&NotPrecedesSlantEqual;"], [0, "&NotSucceedsSlantEqual;"], [0, "&NotSquareSubsetEqual;"], [0, "&NotSquareSupersetEqual;"], [2, "&lnsim;"], [0, "&gnsim;"], [0, "&precnsim;"], [0, "&scnsim;"], [0, "&nltri;"], [0, "&NotRightTriangle;"], [0, "&nltrie;"], [0, "&NotRightTriangleEqual;"], [0, "&vellip;"], [0, "&ctdot;"], [0, "&utdot;"], [0, "&dtdot;"], [0, "&disin;"], [0, "&isinsv;"], [0, "&isins;"], [0, {
                v: "&isindot;",
                n: 824,
                o: "&notindot;"
            }], [0, "&notinvc;"], [0, "&notinvb;"], [1, {
                v: "&isinE;",
                n: 824,
                o: "&notinE;"
            }], [0, "&nisd;"], [0, "&xnis;"], [0, "&nis;"], [0, "&notnivc;"], [0, "&notnivb;"], [6, "&barwed;"], [0, "&Barwed;"], [1, "&lceil;"], [0, "&rceil;"], [0, "&LeftFloor;"], [0, "&rfloor;"], [0, "&drcrop;"], [0, "&dlcrop;"], [0, "&urcrop;"], [0, "&ulcrop;"], [0, "&bnot;"], [1, "&profline;"], [0, "&profsurf;"], [1, "&telrec;"], [0, "&target;"], [5, "&ulcorn;"], [0, "&urcorn;"], [0, "&dlcorn;"], [0, "&drcorn;"], [2, "&frown;"], [0, "&smile;"], [9, "&cylcty;"], [0, "&profalar;"], [7, "&topbot;"], [6, "&ovbar;"], [1, "&solbar;"], [60, "&angzarr;"], [51, "&lmoustache;"], [0, "&rmoustache;"], [2, "&OverBracket;"], [0, "&bbrk;"], [0, "&bbrktbrk;"], [37, "&OverParenthesis;"], [0, "&UnderParenthesis;"], [0, "&OverBrace;"], [0, "&UnderBrace;"], [2, "&trpezium;"], [4, "&elinters;"], [59, "&blank;"], [164, "&circledS;"], [55, "&boxh;"], [1, "&boxv;"], [9, "&boxdr;"], [3, "&boxdl;"], [3, "&boxur;"], [3, "&boxul;"], [3, "&boxvr;"], [7, "&boxvl;"], [7, "&boxhd;"], [7, "&boxhu;"], [7, "&boxvh;"], [19, "&boxH;"], [0, "&boxV;"], [0, "&boxdR;"], [0, "&boxDr;"], [0, "&boxDR;"], [0, "&boxdL;"], [0, "&boxDl;"], [0, "&boxDL;"], [0, "&boxuR;"], [0, "&boxUr;"], [0, "&boxUR;"], [0, "&boxuL;"], [0, "&boxUl;"], [0, "&boxUL;"], [0, "&boxvR;"], [0, "&boxVr;"], [0, "&boxVR;"], [0, "&boxvL;"], [0, "&boxVl;"], [0, "&boxVL;"], [0, "&boxHd;"], [0, "&boxhD;"], [0, "&boxHD;"], [0, "&boxHu;"], [0, "&boxhU;"], [0, "&boxHU;"], [0, "&boxvH;"], [0, "&boxVh;"], [0, "&boxVH;"], [19, "&uhblk;"], [3, "&lhblk;"], [3, "&block;"], [8, "&blk14;"], [0, "&blk12;"], [0, "&blk34;"], [13, "&square;"], [8, "&blacksquare;"], [0, "&EmptyVerySmallSquare;"], [1, "&rect;"], [0, "&marker;"], [2, "&fltns;"], [1, "&bigtriangleup;"], [0, "&blacktriangle;"], [0, "&triangle;"], [2, "&blacktriangleright;"], [0, "&rtri;"], [3, "&bigtriangledown;"], [0, "&blacktriangledown;"], [0, "&dtri;"], [2, "&blacktriangleleft;"], [0, "&ltri;"], [6, "&loz;"], [0, "&cir;"], [32, "&tridot;"], [2, "&bigcirc;"], [8, "&ultri;"], [0, "&urtri;"], [0, "&lltri;"], [0, "&EmptySmallSquare;"], [0, "&FilledSmallSquare;"], [8, "&bigstar;"], [0, "&star;"], [7, "&phone;"], [49, "&female;"], [1, "&male;"], [29, "&spades;"], [2, "&clubs;"], [1, "&hearts;"], [0, "&diamondsuit;"], [3, "&sung;"], [2, "&flat;"], [0, "&natural;"], [0, "&sharp;"], [163, "&check;"], [3, "&cross;"], [8, "&malt;"], [21, "&sext;"], [33, "&VerticalSeparator;"], [25, "&lbbrk;"], [0, "&rbbrk;"], [84, "&bsolhsub;"], [0, "&suphsol;"], [28, "&LeftDoubleBracket;"], [0, "&RightDoubleBracket;"], [0, "&lang;"], [0, "&rang;"], [0, "&Lang;"], [0, "&Rang;"], [0, "&loang;"], [0, "&roang;"], [7, "&longleftarrow;"], [0, "&longrightarrow;"], [0, "&longleftrightarrow;"], [0, "&DoubleLongLeftArrow;"], [0, "&DoubleLongRightArrow;"], [0, "&DoubleLongLeftRightArrow;"], [1, "&longmapsto;"], [2, "&dzigrarr;"], [258, "&nvlArr;"], [0, "&nvrArr;"], [0, "&nvHarr;"], [0, "&Map;"], [6, "&lbarr;"], [0, "&bkarow;"], [0, "&lBarr;"], [0, "&dbkarow;"], [0, "&drbkarow;"], [0, "&DDotrahd;"], [0, "&UpArrowBar;"], [0, "&DownArrowBar;"], [2, "&Rarrtl;"], [2, "&latail;"], [0, "&ratail;"], [0, "&lAtail;"], [0, "&rAtail;"], [0, "&larrfs;"], [0, "&rarrfs;"], [0, "&larrbfs;"], [0, "&rarrbfs;"], [2, "&nwarhk;"], [0, "&nearhk;"], [0, "&hksearow;"], [0, "&hkswarow;"], [0, "&nwnear;"], [0, "&nesear;"], [0, "&seswar;"], [0, "&swnwar;"], [8, {
                v: "&rarrc;",
                n: 824,
                o: "&nrarrc;"
            }], [1, "&cudarrr;"], [0, "&ldca;"], [0, "&rdca;"], [0, "&cudarrl;"], [0, "&larrpl;"], [2, "&curarrm;"], [0, "&cularrp;"], [7, "&rarrpl;"], [2, "&harrcir;"], [0, "&Uarrocir;"], [0, "&lurdshar;"], [0, "&ldrushar;"], [2, "&LeftRightVector;"], [0, "&RightUpDownVector;"], [0, "&DownLeftRightVector;"], [0, "&LeftUpDownVector;"], [0, "&LeftVectorBar;"], [0, "&RightVectorBar;"], [0, "&RightUpVectorBar;"], [0, "&RightDownVectorBar;"], [0, "&DownLeftVectorBar;"], [0, "&DownRightVectorBar;"], [0, "&LeftUpVectorBar;"], [0, "&LeftDownVectorBar;"], [0, "&LeftTeeVector;"], [0, "&RightTeeVector;"], [0, "&RightUpTeeVector;"], [0, "&RightDownTeeVector;"], [0, "&DownLeftTeeVector;"], [0, "&DownRightTeeVector;"], [0, "&LeftUpTeeVector;"], [0, "&LeftDownTeeVector;"], [0, "&lHar;"], [0, "&uHar;"], [0, "&rHar;"], [0, "&dHar;"], [0, "&luruhar;"], [0, "&ldrdhar;"], [0, "&ruluhar;"], [0, "&rdldhar;"], [0, "&lharul;"], [0, "&llhard;"], [0, "&rharul;"], [0, "&lrhard;"], [0, "&udhar;"], [0, "&duhar;"], [0, "&RoundImplies;"], [0, "&erarr;"], [0, "&simrarr;"], [0, "&larrsim;"], [0, "&rarrsim;"], [0, "&rarrap;"], [0, "&ltlarr;"], [1, "&gtrarr;"], [0, "&subrarr;"], [1, "&suplarr;"], [0, "&lfisht;"], [0, "&rfisht;"], [0, "&ufisht;"], [0, "&dfisht;"], [5, "&lopar;"], [0, "&ropar;"], [4, "&lbrke;"], [0, "&rbrke;"], [0, "&lbrkslu;"], [0, "&rbrksld;"], [0, "&lbrksld;"], [0, "&rbrkslu;"], [0, "&langd;"], [0, "&rangd;"], [0, "&lparlt;"], [0, "&rpargt;"], [0, "&gtlPar;"], [0, "&ltrPar;"], [3, "&vzigzag;"], [1, "&vangrt;"], [0, "&angrtvbd;"], [6, "&ange;"], [0, "&range;"], [0, "&dwangle;"], [0, "&uwangle;"], [0, "&angmsdaa;"], [0, "&angmsdab;"], [0, "&angmsdac;"], [0, "&angmsdad;"], [0, "&angmsdae;"], [0, "&angmsdaf;"], [0, "&angmsdag;"], [0, "&angmsdah;"], [0, "&bemptyv;"], [0, "&demptyv;"], [0, "&cemptyv;"], [0, "&raemptyv;"], [0, "&laemptyv;"], [0, "&ohbar;"], [0, "&omid;"], [0, "&opar;"], [1, "&operp;"], [1, "&olcross;"], [0, "&odsold;"], [1, "&olcir;"], [0, "&ofcir;"], [0, "&olt;"], [0, "&ogt;"], [0, "&cirscir;"], [0, "&cirE;"], [0, "&solb;"], [0, "&bsolb;"], [3, "&boxbox;"], [3, "&trisb;"], [0, "&rtriltri;"], [0, {
                v: "&LeftTriangleBar;",
                n: 824,
                o: "&NotLeftTriangleBar;"
            }], [0, {
                v: "&RightTriangleBar;",
                n: 824,
                o: "&NotRightTriangleBar;"
            }], [11, "&iinfin;"], [0, "&infintie;"], [0, "&nvinfin;"], [4, "&eparsl;"], [0, "&smeparsl;"], [0, "&eqvparsl;"], [5, "&blacklozenge;"], [8, "&RuleDelayed;"], [1, "&dsol;"], [9, "&bigodot;"], [0, "&bigoplus;"], [0, "&bigotimes;"], [1, "&biguplus;"], [1, "&bigsqcup;"], [5, "&iiiint;"], [0, "&fpartint;"], [2, "&cirfnint;"], [0, "&awint;"], [0, "&rppolint;"], [0, "&scpolint;"], [0, "&npolint;"], [0, "&pointint;"], [0, "&quatint;"], [0, "&intlarhk;"], [10, "&pluscir;"], [0, "&plusacir;"], [0, "&simplus;"], [0, "&plusdu;"], [0, "&plussim;"], [0, "&plustwo;"], [1, "&mcomma;"], [0, "&minusdu;"], [2, "&loplus;"], [0, "&roplus;"], [0, "&Cross;"], [0, "&timesd;"], [0, "&timesbar;"], [1, "&smashp;"], [0, "&lotimes;"], [0, "&rotimes;"], [0, "&otimesas;"], [0, "&Otimes;"], [0, "&odiv;"], [0, "&triplus;"], [0, "&triminus;"], [0, "&tritime;"], [0, "&intprod;"], [2, "&amalg;"], [0, "&capdot;"], [1, "&ncup;"], [0, "&ncap;"], [0, "&capand;"], [0, "&cupor;"], [0, "&cupcap;"], [0, "&capcup;"], [0, "&cupbrcap;"], [0, "&capbrcup;"], [0, "&cupcup;"], [0, "&capcap;"], [0, "&ccups;"], [0, "&ccaps;"], [2, "&ccupssm;"], [2, "&And;"], [0, "&Or;"], [0, "&andand;"], [0, "&oror;"], [0, "&orslope;"], [0, "&andslope;"], [1, "&andv;"], [0, "&orv;"], [0, "&andd;"], [0, "&ord;"], [1, "&wedbar;"], [6, "&sdote;"], [3, "&simdot;"], [2, {
                v: "&congdot;",
                n: 824,
                o: "&ncongdot;"
            }], [0, "&easter;"], [0, "&apacir;"], [0, {
                v: "&apE;",
                n: 824,
                o: "&napE;"
            }], [0, "&eplus;"], [0, "&pluse;"], [0, "&Esim;"], [0, "&Colone;"], [0, "&Equal;"], [1, "&ddotseq;"], [0, "&equivDD;"], [0, "&ltcir;"], [0, "&gtcir;"], [0, "&ltquest;"], [0, "&gtquest;"], [0, {
                v: "&leqslant;",
                n: 824,
                o: "&nleqslant;"
            }], [0, {
                v: "&geqslant;",
                n: 824,
                o: "&ngeqslant;"
            }], [0, "&lesdot;"], [0, "&gesdot;"], [0, "&lesdoto;"], [0, "&gesdoto;"], [0, "&lesdotor;"], [0, "&gesdotol;"], [0, "&lap;"], [0, "&gap;"], [0, "&lne;"], [0, "&gne;"], [0, "&lnap;"], [0, "&gnap;"], [0, "&lEg;"], [0, "&gEl;"], [0, "&lsime;"], [0, "&gsime;"], [0, "&lsimg;"], [0, "&gsiml;"], [0, "&lgE;"], [0, "&glE;"], [0, "&lesges;"], [0, "&gesles;"], [0, "&els;"], [0, "&egs;"], [0, "&elsdot;"], [0, "&egsdot;"], [0, "&el;"], [0, "&eg;"], [2, "&siml;"], [0, "&simg;"], [0, "&simlE;"], [0, "&simgE;"], [0, {
                v: "&LessLess;",
                n: 824,
                o: "&NotNestedLessLess;"
            }], [0, {
                v: "&GreaterGreater;",
                n: 824,
                o: "&NotNestedGreaterGreater;"
            }], [1, "&glj;"], [0, "&gla;"], [0, "&ltcc;"], [0, "&gtcc;"], [0, "&lescc;"], [0, "&gescc;"], [0, "&smt;"], [0, "&lat;"], [0, {
                v: "&smte;",
                n: 65024,
                o: "&smtes;"
            }], [0, {v: "&late;", n: 65024, o: "&lates;"}], [0, "&bumpE;"], [0, {
                v: "&PrecedesEqual;",
                n: 824,
                o: "&NotPrecedesEqual;"
            }], [0, {
                v: "&sce;",
                n: 824,
                o: "&NotSucceedsEqual;"
            }], [2, "&prE;"], [0, "&scE;"], [0, "&precneqq;"], [0, "&scnE;"], [0, "&prap;"], [0, "&scap;"], [0, "&precnapprox;"], [0, "&scnap;"], [0, "&Pr;"], [0, "&Sc;"], [0, "&subdot;"], [0, "&supdot;"], [0, "&subplus;"], [0, "&supplus;"], [0, "&submult;"], [0, "&supmult;"], [0, "&subedot;"], [0, "&supedot;"], [0, {
                v: "&subE;",
                n: 824,
                o: "&nsubE;"
            }], [0, {v: "&supE;", n: 824, o: "&nsupE;"}], [0, "&subsim;"], [0, "&supsim;"], [2, {
                v: "&subnE;",
                n: 65024,
                o: "&varsubsetneqq;"
            }], [0, {
                v: "&supnE;",
                n: 65024,
                o: "&varsupsetneqq;"
            }], [2, "&csub;"], [0, "&csup;"], [0, "&csube;"], [0, "&csupe;"], [0, "&subsup;"], [0, "&supsub;"], [0, "&subsub;"], [0, "&supsup;"], [0, "&suphsub;"], [0, "&supdsub;"], [0, "&forkv;"], [0, "&topfork;"], [0, "&mlcp;"], [8, "&Dashv;"], [1, "&Vdashl;"], [0, "&Barv;"], [0, "&vBar;"], [0, "&vBarv;"], [1, "&Vbar;"], [0, "&Not;"], [0, "&bNot;"], [0, "&rnmid;"], [0, "&cirmid;"], [0, "&midcir;"], [0, "&topcir;"], [0, "&nhpar;"], [0, "&parsim;"], [9, {
                v: "&parsl;",
                n: 8421,
                o: "&nparsl;"
            }], [44343, {
                n: new Map(n([[56476, "&Ascr;"], [1, "&Cscr;"], [0, "&Dscr;"], [2, "&Gscr;"], [2, "&Jscr;"], [0, "&Kscr;"], [2, "&Nscr;"], [0, "&Oscr;"], [0, "&Pscr;"], [0, "&Qscr;"], [1, "&Sscr;"], [0, "&Tscr;"], [0, "&Uscr;"], [0, "&Vscr;"], [0, "&Wscr;"], [0, "&Xscr;"], [0, "&Yscr;"], [0, "&Zscr;"], [0, "&ascr;"], [0, "&bscr;"], [0, "&cscr;"], [0, "&dscr;"], [1, "&fscr;"], [1, "&hscr;"], [0, "&iscr;"], [0, "&jscr;"], [0, "&kscr;"], [0, "&lscr;"], [0, "&mscr;"], [0, "&nscr;"], [1, "&pscr;"], [0, "&qscr;"], [0, "&rscr;"], [0, "&sscr;"], [0, "&tscr;"], [0, "&uscr;"], [0, "&vscr;"], [0, "&wscr;"], [0, "&xscr;"], [0, "&yscr;"], [0, "&zscr;"], [52, "&Afr;"], [0, "&Bfr;"], [1, "&Dfr;"], [0, "&Efr;"], [0, "&Ffr;"], [0, "&Gfr;"], [2, "&Jfr;"], [0, "&Kfr;"], [0, "&Lfr;"], [0, "&Mfr;"], [0, "&Nfr;"], [0, "&Ofr;"], [0, "&Pfr;"], [0, "&Qfr;"], [1, "&Sfr;"], [0, "&Tfr;"], [0, "&Ufr;"], [0, "&Vfr;"], [0, "&Wfr;"], [0, "&Xfr;"], [0, "&Yfr;"], [1, "&afr;"], [0, "&bfr;"], [0, "&cfr;"], [0, "&dfr;"], [0, "&efr;"], [0, "&ffr;"], [0, "&gfr;"], [0, "&hfr;"], [0, "&ifr;"], [0, "&jfr;"], [0, "&kfr;"], [0, "&lfr;"], [0, "&mfr;"], [0, "&nfr;"], [0, "&ofr;"], [0, "&pfr;"], [0, "&qfr;"], [0, "&rfr;"], [0, "&sfr;"], [0, "&tfr;"], [0, "&ufr;"], [0, "&vfr;"], [0, "&wfr;"], [0, "&xfr;"], [0, "&yfr;"], [0, "&zfr;"], [0, "&Aopf;"], [0, "&Bopf;"], [1, "&Dopf;"], [0, "&Eopf;"], [0, "&Fopf;"], [0, "&Gopf;"], [1, "&Iopf;"], [0, "&Jopf;"], [0, "&Kopf;"], [0, "&Lopf;"], [0, "&Mopf;"], [1, "&Oopf;"], [3, "&Sopf;"], [0, "&Topf;"], [0, "&Uopf;"], [0, "&Vopf;"], [0, "&Wopf;"], [0, "&Xopf;"], [0, "&Yopf;"], [1, "&aopf;"], [0, "&bopf;"], [0, "&copf;"], [0, "&dopf;"], [0, "&eopf;"], [0, "&fopf;"], [0, "&gopf;"], [0, "&hopf;"], [0, "&iopf;"], [0, "&jopf;"], [0, "&kopf;"], [0, "&lopf;"], [0, "&mopf;"], [0, "&nopf;"], [0, "&oopf;"], [0, "&popf;"], [0, "&qopf;"], [0, "&ropf;"], [0, "&sopf;"], [0, "&topf;"], [0, "&uopf;"], [0, "&vopf;"], [0, "&wopf;"], [0, "&xopf;"], [0, "&yopf;"], [0, "&zopf;"]]))
            }], [8906, "&fflig;"], [0, "&filig;"], [0, "&fllig;"], [0, "&ffilig;"], [0, "&ffllig;"]]))
        }, 5863: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.decodeXMLStrict = e.decodeHTML5Strict = e.decodeHTML4Strict = e.decodeHTML5 = e.decodeHTML4 = e.decodeHTMLAttribute = e.decodeHTMLStrict = e.decodeHTML = e.decodeXML = e.DecodingMode = e.EntityDecoder = e.encodeHTML5 = e.encodeHTML4 = e.encodeNonAsciiHTML = e.encodeHTML = e.escapeText = e.escapeAttribute = e.escapeUTF8 = e.escape = e.encodeXML = e.encode = e.decodeStrict = e.decode = e.EncodingMode = e.EntityLevel = void 0;
            var i, r, o = n(4076), a = n(7322), s = n(4625);

            function l(t, e) {
                if (void 0 === e && (e = i.XML), ("number" == typeof e ? e : e.level) === i.HTML) {
                    var n = "object" == typeof e ? e.mode : void 0;
                    return (0, o.decodeHTML)(t, n)
                }
                return (0, o.decodeXML)(t)
            }

            !function (t) {
                t[t.XML = 0] = "XML", t[t.HTML = 1] = "HTML"
            }(i = e.EntityLevel || (e.EntityLevel = {})), function (t) {
                t[t.UTF8 = 0] = "UTF8", t[t.ASCII = 1] = "ASCII", t[t.Extensive = 2] = "Extensive", t[t.Attribute = 3] = "Attribute", t[t.Text = 4] = "Text"
            }(r = e.EncodingMode || (e.EncodingMode = {})), e.decode = l, e.decodeStrict = function (t, e) {
                var n;
                void 0 === e && (e = i.XML);
                var r = "number" == typeof e ? {level: e} : e;
                return null !== (n = r.mode) && void 0 !== n || (r.mode = o.DecodingMode.Strict), l(t, r)
            }, e.encode = function (t, e) {
                void 0 === e && (e = i.XML);
                var n = "number" == typeof e ? {level: e} : e;
                return n.mode === r.UTF8 ? (0, s.escapeUTF8)(t) : n.mode === r.Attribute ? (0, s.escapeAttribute)(t) : n.mode === r.Text ? (0, s.escapeText)(t) : n.level === i.HTML ? n.mode === r.ASCII ? (0, a.encodeNonAsciiHTML)(t) : (0, a.encodeHTML)(t) : (0, s.encodeXML)(t)
            };
            var u = n(4625);
            Object.defineProperty(e, "encodeXML", {
                enumerable: !0, get: function () {
                    return u.encodeXML
                }
            }), Object.defineProperty(e, "escape", {
                enumerable: !0, get: function () {
                    return u.escape
                }
            }), Object.defineProperty(e, "escapeUTF8", {
                enumerable: !0, get: function () {
                    return u.escapeUTF8
                }
            }), Object.defineProperty(e, "escapeAttribute", {
                enumerable: !0, get: function () {
                    return u.escapeAttribute
                }
            }), Object.defineProperty(e, "escapeText", {
                enumerable: !0, get: function () {
                    return u.escapeText
                }
            });
            var c = n(7322);
            Object.defineProperty(e, "encodeHTML", {
                enumerable: !0, get: function () {
                    return c.encodeHTML
                }
            }), Object.defineProperty(e, "encodeNonAsciiHTML", {
                enumerable: !0, get: function () {
                    return c.encodeNonAsciiHTML
                }
            }), Object.defineProperty(e, "encodeHTML4", {
                enumerable: !0, get: function () {
                    return c.encodeHTML
                }
            }), Object.defineProperty(e, "encodeHTML5", {
                enumerable: !0, get: function () {
                    return c.encodeHTML
                }
            });
            var h = n(4076);
            Object.defineProperty(e, "EntityDecoder", {
                enumerable: !0, get: function () {
                    return h.EntityDecoder
                }
            }), Object.defineProperty(e, "DecodingMode", {
                enumerable: !0, get: function () {
                    return h.DecodingMode
                }
            }), Object.defineProperty(e, "decodeXML", {
                enumerable: !0, get: function () {
                    return h.decodeXML
                }
            }), Object.defineProperty(e, "decodeHTML", {
                enumerable: !0, get: function () {
                    return h.decodeHTML
                }
            }), Object.defineProperty(e, "decodeHTMLStrict", {
                enumerable: !0, get: function () {
                    return h.decodeHTMLStrict
                }
            }), Object.defineProperty(e, "decodeHTMLAttribute", {
                enumerable: !0, get: function () {
                    return h.decodeHTMLAttribute
                }
            }), Object.defineProperty(e, "decodeHTML4", {
                enumerable: !0, get: function () {
                    return h.decodeHTML
                }
            }), Object.defineProperty(e, "decodeHTML5", {
                enumerable: !0, get: function () {
                    return h.decodeHTML
                }
            }), Object.defineProperty(e, "decodeHTML4Strict", {
                enumerable: !0, get: function () {
                    return h.decodeHTMLStrict
                }
            }), Object.defineProperty(e, "decodeHTML5Strict", {
                enumerable: !0, get: function () {
                    return h.decodeHTMLStrict
                }
            }), Object.defineProperty(e, "decodeXMLStrict", {
                enumerable: !0, get: function () {
                    return h.decodeXML
                }
            })
        }, 763: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), o = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n);
                return r(e, t), e
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.Parser = void 0;
            var a = o(n(9889)), s = n(4076),
                l = new Set(["input", "option", "optgroup", "select", "button", "datalist", "textarea"]),
                u = new Set(["p"]), c = new Set(["thead", "tbody"]), h = new Set(["dd", "dt"]),
                d = new Set(["rt", "rp"]),
                p = new Map([["tr", new Set(["tr", "th", "td"])], ["th", new Set(["th"])], ["td", new Set(["thead", "th", "td"])], ["body", new Set(["head", "link", "script"])], ["li", new Set(["li"])], ["p", u], ["h1", u], ["h2", u], ["h3", u], ["h4", u], ["h5", u], ["h6", u], ["select", l], ["input", l], ["output", l], ["button", l], ["datalist", l], ["textarea", l], ["option", new Set(["option"])], ["optgroup", new Set(["optgroup", "option"])], ["dd", h], ["dt", h], ["address", u], ["article", u], ["aside", u], ["blockquote", u], ["details", u], ["div", u], ["dl", u], ["fieldset", u], ["figcaption", u], ["figure", u], ["footer", u], ["form", u], ["header", u], ["hr", u], ["main", u], ["nav", u], ["ol", u], ["pre", u], ["section", u], ["table", u], ["ul", u], ["rt", d], ["rp", d], ["tbody", c], ["tfoot", c]]),
                f = new Set(["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source", "track", "wbr"]),
                g = new Set(["math", "svg"]),
                m = new Set(["mi", "mo", "mn", "ms", "mtext", "annotation-xml", "foreignobject", "desc", "title"]),
                y = /\s|\//, v = function () {
                    function t(t, e) {
                        var n, i, r, o, s;
                        void 0 === e && (e = {}), this.options = e, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.foreignContext = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = null != t ? t : {}, this.lowerCaseTagNames = null !== (n = e.lowerCaseTags) && void 0 !== n ? n : !e.xmlMode, this.lowerCaseAttributeNames = null !== (i = e.lowerCaseAttributeNames) && void 0 !== i ? i : !e.xmlMode, this.tokenizer = new (null !== (r = e.Tokenizer) && void 0 !== r ? r : a.default)(this.options, this), null === (s = (o = this.cbs).onparserinit) || void 0 === s || s.call(o, this)
                    }

                    return t.prototype.ontext = function (t, e) {
                        var n, i, r = this.getSlice(t, e);
                        this.endIndex = e - 1, null === (i = (n = this.cbs).ontext) || void 0 === i || i.call(n, r), this.startIndex = e
                    }, t.prototype.ontextentity = function (t) {
                        var e, n, i = this.tokenizer.getSectionStart();
                        this.endIndex = i - 1, null === (n = (e = this.cbs).ontext) || void 0 === n || n.call(e, (0, s.fromCodePoint)(t)), this.startIndex = i
                    }, t.prototype.isVoidElement = function (t) {
                        return !this.options.xmlMode && f.has(t)
                    }, t.prototype.onopentagname = function (t, e) {
                        this.endIndex = e;
                        var n = this.getSlice(t, e);
                        this.lowerCaseTagNames && (n = n.toLowerCase()), this.emitOpenTag(n)
                    }, t.prototype.emitOpenTag = function (t) {
                        var e, n, i, r;
                        this.openTagStart = this.startIndex, this.tagname = t;
                        var o = !this.options.xmlMode && p.get(t);
                        if (o) for (; this.stack.length > 0 && o.has(this.stack[this.stack.length - 1]);) {
                            var a = this.stack.pop();
                            null === (n = (e = this.cbs).onclosetag) || void 0 === n || n.call(e, a, !0)
                        }
                        this.isVoidElement(t) || (this.stack.push(t), g.has(t) ? this.foreignContext.push(!0) : m.has(t) && this.foreignContext.push(!1)), null === (r = (i = this.cbs).onopentagname) || void 0 === r || r.call(i, t), this.cbs.onopentag && (this.attribs = {})
                    }, t.prototype.endOpenTag = function (t) {
                        var e, n;
                        this.startIndex = this.openTagStart, this.attribs && (null === (n = (e = this.cbs).onopentag) || void 0 === n || n.call(e, this.tagname, this.attribs, t), this.attribs = null), this.cbs.onclosetag && this.isVoidElement(this.tagname) && this.cbs.onclosetag(this.tagname, !0), this.tagname = ""
                    }, t.prototype.onopentagend = function (t) {
                        this.endIndex = t, this.endOpenTag(!1), this.startIndex = t + 1
                    }, t.prototype.onclosetag = function (t, e) {
                        var n, i, r, o, a, s;
                        this.endIndex = e;
                        var l = this.getSlice(t, e);
                        if (this.lowerCaseTagNames && (l = l.toLowerCase()), (g.has(l) || m.has(l)) && this.foreignContext.pop(), this.isVoidElement(l)) this.options.xmlMode || "br" !== l || (null === (i = (n = this.cbs).onopentagname) || void 0 === i || i.call(n, "br"), null === (o = (r = this.cbs).onopentag) || void 0 === o || o.call(r, "br", {}, !0), null === (s = (a = this.cbs).onclosetag) || void 0 === s || s.call(a, "br", !1)); else {
                            var u = this.stack.lastIndexOf(l);
                            if (-1 !== u) if (this.cbs.onclosetag) for (var c = this.stack.length - u; c--;) this.cbs.onclosetag(this.stack.pop(), 0 !== c); else this.stack.length = u; else this.options.xmlMode || "p" !== l || (this.emitOpenTag("p"), this.closeCurrentTag(!0))
                        }
                        this.startIndex = e + 1
                    }, t.prototype.onselfclosingtag = function (t) {
                        this.endIndex = t, this.options.xmlMode || this.options.recognizeSelfClosing || this.foreignContext[this.foreignContext.length - 1] ? (this.closeCurrentTag(!1), this.startIndex = t + 1) : this.onopentagend(t)
                    }, t.prototype.closeCurrentTag = function (t) {
                        var e, n, i = this.tagname;
                        this.endOpenTag(t), this.stack[this.stack.length - 1] === i && (null === (n = (e = this.cbs).onclosetag) || void 0 === n || n.call(e, i, !t), this.stack.pop())
                    }, t.prototype.onattribname = function (t, e) {
                        this.startIndex = t;
                        var n = this.getSlice(t, e);
                        this.attribname = this.lowerCaseAttributeNames ? n.toLowerCase() : n
                    }, t.prototype.onattribdata = function (t, e) {
                        this.attribvalue += this.getSlice(t, e)
                    }, t.prototype.onattribentity = function (t) {
                        this.attribvalue += (0, s.fromCodePoint)(t)
                    }, t.prototype.onattribend = function (t, e) {
                        var n, i;
                        this.endIndex = e, null === (i = (n = this.cbs).onattribute) || void 0 === i || i.call(n, this.attribname, this.attribvalue, t === a.QuoteType.Double ? '"' : t === a.QuoteType.Single ? "'" : t === a.QuoteType.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = ""
                    }, t.prototype.getInstructionName = function (t) {
                        var e = t.search(y), n = e < 0 ? t : t.substr(0, e);
                        return this.lowerCaseTagNames && (n = n.toLowerCase()), n
                    }, t.prototype.ondeclaration = function (t, e) {
                        this.endIndex = e;
                        var n = this.getSlice(t, e);
                        if (this.cbs.onprocessinginstruction) {
                            var i = this.getInstructionName(n);
                            this.cbs.onprocessinginstruction("!".concat(i), "!".concat(n))
                        }
                        this.startIndex = e + 1
                    }, t.prototype.onprocessinginstruction = function (t, e) {
                        this.endIndex = e;
                        var n = this.getSlice(t, e);
                        if (this.cbs.onprocessinginstruction) {
                            var i = this.getInstructionName(n);
                            this.cbs.onprocessinginstruction("?".concat(i), "?".concat(n))
                        }
                        this.startIndex = e + 1
                    }, t.prototype.oncomment = function (t, e, n) {
                        var i, r, o, a;
                        this.endIndex = e, null === (r = (i = this.cbs).oncomment) || void 0 === r || r.call(i, this.getSlice(t, e - n)), null === (a = (o = this.cbs).oncommentend) || void 0 === a || a.call(o), this.startIndex = e + 1
                    }, t.prototype.oncdata = function (t, e, n) {
                        var i, r, o, a, s, l, u, c, h, d;
                        this.endIndex = e;
                        var p = this.getSlice(t, e - n);
                        this.options.xmlMode || this.options.recognizeCDATA ? (null === (r = (i = this.cbs).oncdatastart) || void 0 === r || r.call(i), null === (a = (o = this.cbs).ontext) || void 0 === a || a.call(o, p), null === (l = (s = this.cbs).oncdataend) || void 0 === l || l.call(s)) : (null === (c = (u = this.cbs).oncomment) || void 0 === c || c.call(u, "[CDATA[".concat(p, "]]")), null === (d = (h = this.cbs).oncommentend) || void 0 === d || d.call(h)), this.startIndex = e + 1
                    }, t.prototype.onend = function () {
                        var t, e;
                        if (this.cbs.onclosetag) {
                            this.endIndex = this.startIndex;
                            for (var n = this.stack.length; n > 0; this.cbs.onclosetag(this.stack[--n], !0)) ;
                        }
                        null === (e = (t = this.cbs).onend) || void 0 === e || e.call(t)
                    }, t.prototype.reset = function () {
                        var t, e, n, i;
                        null === (e = (t = this.cbs).onreset) || void 0 === e || e.call(t), this.tokenizer.reset(), this.tagname = "", this.attribname = "", this.attribs = null, this.stack.length = 0, this.startIndex = 0, this.endIndex = 0, null === (i = (n = this.cbs).onparserinit) || void 0 === i || i.call(n, this), this.buffers.length = 0, this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1
                    }, t.prototype.parseComplete = function (t) {
                        this.reset(), this.end(t)
                    }, t.prototype.getSlice = function (t, e) {
                        for (; t - this.bufferOffset >= this.buffers[0].length;) this.shiftBuffer();
                        for (var n = this.buffers[0].slice(t - this.bufferOffset, e - this.bufferOffset); e - this.bufferOffset > this.buffers[0].length;) this.shiftBuffer(), n += this.buffers[0].slice(0, e - this.bufferOffset);
                        return n
                    }, t.prototype.shiftBuffer = function () {
                        this.bufferOffset += this.buffers[0].length, this.writeIndex--, this.buffers.shift()
                    }, t.prototype.write = function (t) {
                        var e, n;
                        this.ended ? null === (n = (e = this.cbs).onerror) || void 0 === n || n.call(e, new Error(".write() after done!")) : (this.buffers.push(t), this.tokenizer.running && (this.tokenizer.write(t), this.writeIndex++))
                    }, t.prototype.end = function (t) {
                        var e, n;
                        this.ended ? null === (n = (e = this.cbs).onerror) || void 0 === n || n.call(e, new Error(".end() after done!")) : (t && this.write(t), this.ended = !0, this.tokenizer.end())
                    }, t.prototype.pause = function () {
                        this.tokenizer.pause()
                    }, t.prototype.resume = function () {
                        for (this.tokenizer.resume(); this.tokenizer.running && this.writeIndex < this.buffers.length;) this.tokenizer.write(this.buffers[this.writeIndex++]);
                        this.ended && this.tokenizer.end()
                    }, t.prototype.parseChunk = function (t) {
                        this.write(t)
                    }, t.prototype.done = function (t) {
                        this.end(t)
                    }, t
                }();
            e.Parser = v
        }, 9889: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.QuoteType = void 0;
            var i, r, o, a = n(4076);

            function s(t) {
                return t === i.Space || t === i.NewLine || t === i.Tab || t === i.FormFeed || t === i.CarriageReturn
            }

            function l(t) {
                return t === i.Slash || t === i.Gt || s(t)
            }

            function u(t) {
                return t >= i.Zero && t <= i.Nine
            }

            !function (t) {
                t[t.Tab = 9] = "Tab", t[t.NewLine = 10] = "NewLine", t[t.FormFeed = 12] = "FormFeed", t[t.CarriageReturn = 13] = "CarriageReturn", t[t.Space = 32] = "Space", t[t.ExclamationMark = 33] = "ExclamationMark", t[t.Number = 35] = "Number", t[t.Amp = 38] = "Amp", t[t.SingleQuote = 39] = "SingleQuote", t[t.DoubleQuote = 34] = "DoubleQuote", t[t.Dash = 45] = "Dash", t[t.Slash = 47] = "Slash", t[t.Zero = 48] = "Zero", t[t.Nine = 57] = "Nine", t[t.Semi = 59] = "Semi", t[t.Lt = 60] = "Lt", t[t.Eq = 61] = "Eq", t[t.Gt = 62] = "Gt", t[t.Questionmark = 63] = "Questionmark", t[t.UpperA = 65] = "UpperA", t[t.LowerA = 97] = "LowerA", t[t.UpperF = 70] = "UpperF", t[t.LowerF = 102] = "LowerF", t[t.UpperZ = 90] = "UpperZ", t[t.LowerZ = 122] = "LowerZ", t[t.LowerX = 120] = "LowerX", t[t.OpeningSquareBracket = 91] = "OpeningSquareBracket"
            }(i || (i = {})), function (t) {
                t[t.Text = 1] = "Text", t[t.BeforeTagName = 2] = "BeforeTagName", t[t.InTagName = 3] = "InTagName", t[t.InSelfClosingTag = 4] = "InSelfClosingTag", t[t.BeforeClosingTagName = 5] = "BeforeClosingTagName", t[t.InClosingTagName = 6] = "InClosingTagName", t[t.AfterClosingTagName = 7] = "AfterClosingTagName", t[t.BeforeAttributeName = 8] = "BeforeAttributeName", t[t.InAttributeName = 9] = "InAttributeName", t[t.AfterAttributeName = 10] = "AfterAttributeName", t[t.BeforeAttributeValue = 11] = "BeforeAttributeValue", t[t.InAttributeValueDq = 12] = "InAttributeValueDq", t[t.InAttributeValueSq = 13] = "InAttributeValueSq", t[t.InAttributeValueNq = 14] = "InAttributeValueNq", t[t.BeforeDeclaration = 15] = "BeforeDeclaration", t[t.InDeclaration = 16] = "InDeclaration", t[t.InProcessingInstruction = 17] = "InProcessingInstruction", t[t.BeforeComment = 18] = "BeforeComment", t[t.CDATASequence = 19] = "CDATASequence", t[t.InSpecialComment = 20] = "InSpecialComment", t[t.InCommentLike = 21] = "InCommentLike", t[t.BeforeSpecialS = 22] = "BeforeSpecialS", t[t.SpecialStartSequence = 23] = "SpecialStartSequence", t[t.InSpecialTag = 24] = "InSpecialTag", t[t.BeforeEntity = 25] = "BeforeEntity", t[t.BeforeNumericEntity = 26] = "BeforeNumericEntity", t[t.InNamedEntity = 27] = "InNamedEntity", t[t.InNumericEntity = 28] = "InNumericEntity", t[t.InHexEntity = 29] = "InHexEntity"
            }(r || (r = {})), function (t) {
                t[t.NoValue = 0] = "NoValue", t[t.Unquoted = 1] = "Unquoted", t[t.Single = 2] = "Single", t[t.Double = 3] = "Double"
            }(o = e.QuoteType || (e.QuoteType = {}));
            var c = {
                Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
                CdataEnd: new Uint8Array([93, 93, 62]),
                CommentEnd: new Uint8Array([45, 45, 62]),
                ScriptEnd: new Uint8Array([60, 47, 115, 99, 114, 105, 112, 116]),
                StyleEnd: new Uint8Array([60, 47, 115, 116, 121, 108, 101]),
                TitleEnd: new Uint8Array([60, 47, 116, 105, 116, 108, 101])
            }, h = function () {
                function t(t, e) {
                    var n = t.xmlMode, i = void 0 !== n && n, o = t.decodeEntities, s = void 0 === o || o;
                    this.cbs = e, this.state = r.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = r.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.trieIndex = 0, this.trieCurrent = 0, this.entityResult = 0, this.entityExcess = 0, this.xmlMode = i, this.decodeEntities = s, this.entityTrie = i ? a.xmlDecodeTree : a.htmlDecodeTree
                }

                return t.prototype.reset = function () {
                    this.state = r.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = r.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0
                }, t.prototype.write = function (t) {
                    this.offset += this.buffer.length, this.buffer = t, this.parse()
                }, t.prototype.end = function () {
                    this.running && this.finish()
                }, t.prototype.pause = function () {
                    this.running = !1
                }, t.prototype.resume = function () {
                    this.running = !0, this.index < this.buffer.length + this.offset && this.parse()
                }, t.prototype.getIndex = function () {
                    return this.index
                }, t.prototype.getSectionStart = function () {
                    return this.sectionStart
                }, t.prototype.stateText = function (t) {
                    t === i.Lt || !this.decodeEntities && this.fastForwardTo(i.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = r.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && t === i.Amp && (this.state = r.BeforeEntity)
                }, t.prototype.stateSpecialStartSequence = function (t) {
                    var e = this.sequenceIndex === this.currentSequence.length;
                    if (e ? l(t) : (32 | t) === this.currentSequence[this.sequenceIndex]) {
                        if (!e) return void this.sequenceIndex++
                    } else this.isSpecial = !1;
                    this.sequenceIndex = 0, this.state = r.InTagName, this.stateInTagName(t)
                }, t.prototype.stateInSpecialTag = function (t) {
                    if (this.sequenceIndex === this.currentSequence.length) {
                        if (t === i.Gt || s(t)) {
                            var e = this.index - this.currentSequence.length;
                            if (this.sectionStart < e) {
                                var n = this.index;
                                this.index = e, this.cbs.ontext(this.sectionStart, e), this.index = n
                            }
                            return this.isSpecial = !1, this.sectionStart = e + 2, void this.stateInClosingTagName(t)
                        }
                        this.sequenceIndex = 0
                    }
                    (32 | t) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : 0 === this.sequenceIndex ? this.currentSequence === c.TitleEnd ? this.decodeEntities && t === i.Amp && (this.state = r.BeforeEntity) : this.fastForwardTo(i.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = Number(t === i.Lt)
                }, t.prototype.stateCDATASequence = function (t) {
                    t === c.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === c.Cdata.length && (this.state = r.InCommentLike, this.currentSequence = c.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = r.InDeclaration, this.stateInDeclaration(t))
                }, t.prototype.fastForwardTo = function (t) {
                    for (; ++this.index < this.buffer.length + this.offset;) if (this.buffer.charCodeAt(this.index - this.offset) === t) return !0;
                    return this.index = this.buffer.length + this.offset - 1, !1
                }, t.prototype.stateInCommentLike = function (t) {
                    t === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === c.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = r.Text) : 0 === this.sequenceIndex ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : t !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0)
                }, t.prototype.isTagStartChar = function (t) {
                    return this.xmlMode ? !l(t) : function (t) {
                        return t >= i.LowerA && t <= i.LowerZ || t >= i.UpperA && t <= i.UpperZ
                    }(t)
                }, t.prototype.startSpecial = function (t, e) {
                    this.isSpecial = !0, this.currentSequence = t, this.sequenceIndex = e, this.state = r.SpecialStartSequence
                }, t.prototype.stateBeforeTagName = function (t) {
                    if (t === i.ExclamationMark) this.state = r.BeforeDeclaration, this.sectionStart = this.index + 1; else if (t === i.Questionmark) this.state = r.InProcessingInstruction, this.sectionStart = this.index + 1; else if (this.isTagStartChar(t)) {
                        var e = 32 | t;
                        this.sectionStart = this.index, this.xmlMode || e !== c.TitleEnd[2] ? this.state = this.xmlMode || e !== c.ScriptEnd[2] ? r.InTagName : r.BeforeSpecialS : this.startSpecial(c.TitleEnd, 3)
                    } else t === i.Slash ? this.state = r.BeforeClosingTagName : (this.state = r.Text, this.stateText(t))
                }, t.prototype.stateInTagName = function (t) {
                    l(t) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = r.BeforeAttributeName, this.stateBeforeAttributeName(t))
                }, t.prototype.stateBeforeClosingTagName = function (t) {
                    s(t) || (t === i.Gt ? this.state = r.Text : (this.state = this.isTagStartChar(t) ? r.InClosingTagName : r.InSpecialComment, this.sectionStart = this.index))
                }, t.prototype.stateInClosingTagName = function (t) {
                    (t === i.Gt || s(t)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = r.AfterClosingTagName, this.stateAfterClosingTagName(t))
                }, t.prototype.stateAfterClosingTagName = function (t) {
                    (t === i.Gt || this.fastForwardTo(i.Gt)) && (this.state = r.Text, this.baseState = r.Text, this.sectionStart = this.index + 1)
                }, t.prototype.stateBeforeAttributeName = function (t) {
                    t === i.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = r.InSpecialTag, this.sequenceIndex = 0) : this.state = r.Text, this.baseState = this.state, this.sectionStart = this.index + 1) : t === i.Slash ? this.state = r.InSelfClosingTag : s(t) || (this.state = r.InAttributeName, this.sectionStart = this.index)
                }, t.prototype.stateInSelfClosingTag = function (t) {
                    t === i.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = r.Text, this.baseState = r.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : s(t) || (this.state = r.BeforeAttributeName, this.stateBeforeAttributeName(t))
                }, t.prototype.stateInAttributeName = function (t) {
                    (t === i.Eq || l(t)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = -1, this.state = r.AfterAttributeName, this.stateAfterAttributeName(t))
                }, t.prototype.stateAfterAttributeName = function (t) {
                    t === i.Eq ? this.state = r.BeforeAttributeValue : t === i.Slash || t === i.Gt ? (this.cbs.onattribend(o.NoValue, this.index), this.state = r.BeforeAttributeName, this.stateBeforeAttributeName(t)) : s(t) || (this.cbs.onattribend(o.NoValue, this.index), this.state = r.InAttributeName, this.sectionStart = this.index)
                }, t.prototype.stateBeforeAttributeValue = function (t) {
                    t === i.DoubleQuote ? (this.state = r.InAttributeValueDq, this.sectionStart = this.index + 1) : t === i.SingleQuote ? (this.state = r.InAttributeValueSq, this.sectionStart = this.index + 1) : s(t) || (this.sectionStart = this.index, this.state = r.InAttributeValueNq, this.stateInAttributeValueNoQuotes(t))
                }, t.prototype.handleInAttributeValue = function (t, e) {
                    t === e || !this.decodeEntities && this.fastForwardTo(e) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(e === i.DoubleQuote ? o.Double : o.Single, this.index), this.state = r.BeforeAttributeName) : this.decodeEntities && t === i.Amp && (this.baseState = this.state, this.state = r.BeforeEntity)
                }, t.prototype.stateInAttributeValueDoubleQuotes = function (t) {
                    this.handleInAttributeValue(t, i.DoubleQuote)
                }, t.prototype.stateInAttributeValueSingleQuotes = function (t) {
                    this.handleInAttributeValue(t, i.SingleQuote)
                }, t.prototype.stateInAttributeValueNoQuotes = function (t) {
                    s(t) || t === i.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(o.Unquoted, this.index), this.state = r.BeforeAttributeName, this.stateBeforeAttributeName(t)) : this.decodeEntities && t === i.Amp && (this.baseState = this.state, this.state = r.BeforeEntity)
                }, t.prototype.stateBeforeDeclaration = function (t) {
                    t === i.OpeningSquareBracket ? (this.state = r.CDATASequence, this.sequenceIndex = 0) : this.state = t === i.Dash ? r.BeforeComment : r.InDeclaration
                }, t.prototype.stateInDeclaration = function (t) {
                    (t === i.Gt || this.fastForwardTo(i.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = r.Text, this.sectionStart = this.index + 1)
                }, t.prototype.stateInProcessingInstruction = function (t) {
                    (t === i.Gt || this.fastForwardTo(i.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = r.Text, this.sectionStart = this.index + 1)
                }, t.prototype.stateBeforeComment = function (t) {
                    t === i.Dash ? (this.state = r.InCommentLike, this.currentSequence = c.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = r.InDeclaration
                }, t.prototype.stateInSpecialComment = function (t) {
                    (t === i.Gt || this.fastForwardTo(i.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = r.Text, this.sectionStart = this.index + 1)
                }, t.prototype.stateBeforeSpecialS = function (t) {
                    var e = 32 | t;
                    e === c.ScriptEnd[3] ? this.startSpecial(c.ScriptEnd, 4) : e === c.StyleEnd[3] ? this.startSpecial(c.StyleEnd, 4) : (this.state = r.InTagName, this.stateInTagName(t))
                }, t.prototype.stateBeforeEntity = function (t) {
                    this.entityExcess = 1, this.entityResult = 0, t === i.Number ? this.state = r.BeforeNumericEntity : t === i.Amp || (this.trieIndex = 0, this.trieCurrent = this.entityTrie[0], this.state = r.InNamedEntity, this.stateInNamedEntity(t))
                }, t.prototype.stateInNamedEntity = function (t) {
                    if (this.entityExcess += 1, this.trieIndex = (0, a.determineBranch)(this.entityTrie, this.trieCurrent, this.trieIndex + 1, t), this.trieIndex < 0) return this.emitNamedEntity(), void this.index--;
                    this.trieCurrent = this.entityTrie[this.trieIndex];
                    var e = this.trieCurrent & a.BinTrieFlags.VALUE_LENGTH;
                    if (e) {
                        var n = (e >> 14) - 1;
                        if (this.allowLegacyEntity() || t === i.Semi) {
                            var r = this.index - this.entityExcess + 1;
                            r > this.sectionStart && this.emitPartial(this.sectionStart, r), this.entityResult = this.trieIndex, this.trieIndex += n, this.entityExcess = 0, this.sectionStart = this.index + 1, 0 === n && this.emitNamedEntity()
                        } else this.trieIndex += n
                    }
                }, t.prototype.emitNamedEntity = function () {
                    if (this.state = this.baseState, 0 !== this.entityResult) switch ((this.entityTrie[this.entityResult] & a.BinTrieFlags.VALUE_LENGTH) >> 14) {
                        case 1:
                            this.emitCodePoint(this.entityTrie[this.entityResult] & ~a.BinTrieFlags.VALUE_LENGTH);
                            break;
                        case 2:
                            this.emitCodePoint(this.entityTrie[this.entityResult + 1]);
                            break;
                        case 3:
                            this.emitCodePoint(this.entityTrie[this.entityResult + 1]), this.emitCodePoint(this.entityTrie[this.entityResult + 2])
                    }
                }, t.prototype.stateBeforeNumericEntity = function (t) {
                    (32 | t) === i.LowerX ? (this.entityExcess++, this.state = r.InHexEntity) : (this.state = r.InNumericEntity, this.stateInNumericEntity(t))
                }, t.prototype.emitNumericEntity = function (t) {
                    var e = this.index - this.entityExcess - 1;
                    e + 2 + Number(this.state === r.InHexEntity) !== this.index && (e > this.sectionStart && this.emitPartial(this.sectionStart, e), this.sectionStart = this.index + Number(t), this.emitCodePoint((0, a.replaceCodePoint)(this.entityResult))), this.state = this.baseState
                }, t.prototype.stateInNumericEntity = function (t) {
                    t === i.Semi ? this.emitNumericEntity(!0) : u(t) ? (this.entityResult = 10 * this.entityResult + (t - i.Zero), this.entityExcess++) : (this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state = this.baseState, this.index--)
                }, t.prototype.stateInHexEntity = function (t) {
                    t === i.Semi ? this.emitNumericEntity(!0) : u(t) ? (this.entityResult = 16 * this.entityResult + (t - i.Zero), this.entityExcess++) : !function (t) {
                        return t >= i.UpperA && t <= i.UpperF || t >= i.LowerA && t <= i.LowerF
                    }(t) ? (this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state = this.baseState, this.index--) : (this.entityResult = 16 * this.entityResult + ((32 | t) - i.LowerA + 10), this.entityExcess++)
                }, t.prototype.allowLegacyEntity = function () {
                    return !this.xmlMode && (this.baseState === r.Text || this.baseState === r.InSpecialTag)
                }, t.prototype.cleanup = function () {
                    this.running && this.sectionStart !== this.index && (this.state === r.Text || this.state === r.InSpecialTag && 0 === this.sequenceIndex ? (this.cbs.ontext(this.sectionStart, this.index), this.sectionStart = this.index) : this.state !== r.InAttributeValueDq && this.state !== r.InAttributeValueSq && this.state !== r.InAttributeValueNq || (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = this.index))
                }, t.prototype.shouldContinue = function () {
                    return this.index < this.buffer.length + this.offset && this.running
                }, t.prototype.parse = function () {
                    for (; this.shouldContinue();) {
                        var t = this.buffer.charCodeAt(this.index - this.offset);
                        switch (this.state) {
                            case r.Text:
                                this.stateText(t);
                                break;
                            case r.SpecialStartSequence:
                                this.stateSpecialStartSequence(t);
                                break;
                            case r.InSpecialTag:
                                this.stateInSpecialTag(t);
                                break;
                            case r.CDATASequence:
                                this.stateCDATASequence(t);
                                break;
                            case r.InAttributeValueDq:
                                this.stateInAttributeValueDoubleQuotes(t);
                                break;
                            case r.InAttributeName:
                                this.stateInAttributeName(t);
                                break;
                            case r.InCommentLike:
                                this.stateInCommentLike(t);
                                break;
                            case r.InSpecialComment:
                                this.stateInSpecialComment(t);
                                break;
                            case r.BeforeAttributeName:
                                this.stateBeforeAttributeName(t);
                                break;
                            case r.InTagName:
                                this.stateInTagName(t);
                                break;
                            case r.InClosingTagName:
                                this.stateInClosingTagName(t);
                                break;
                            case r.BeforeTagName:
                                this.stateBeforeTagName(t);
                                break;
                            case r.AfterAttributeName:
                                this.stateAfterAttributeName(t);
                                break;
                            case r.InAttributeValueSq:
                                this.stateInAttributeValueSingleQuotes(t);
                                break;
                            case r.BeforeAttributeValue:
                                this.stateBeforeAttributeValue(t);
                                break;
                            case r.BeforeClosingTagName:
                                this.stateBeforeClosingTagName(t);
                                break;
                            case r.AfterClosingTagName:
                                this.stateAfterClosingTagName(t);
                                break;
                            case r.BeforeSpecialS:
                                this.stateBeforeSpecialS(t);
                                break;
                            case r.InAttributeValueNq:
                                this.stateInAttributeValueNoQuotes(t);
                                break;
                            case r.InSelfClosingTag:
                                this.stateInSelfClosingTag(t);
                                break;
                            case r.InDeclaration:
                                this.stateInDeclaration(t);
                                break;
                            case r.BeforeDeclaration:
                                this.stateBeforeDeclaration(t);
                                break;
                            case r.BeforeComment:
                                this.stateBeforeComment(t);
                                break;
                            case r.InProcessingInstruction:
                                this.stateInProcessingInstruction(t);
                                break;
                            case r.InNamedEntity:
                                this.stateInNamedEntity(t);
                                break;
                            case r.BeforeEntity:
                                this.stateBeforeEntity(t);
                                break;
                            case r.InHexEntity:
                                this.stateInHexEntity(t);
                                break;
                            case r.InNumericEntity:
                                this.stateInNumericEntity(t);
                                break;
                            default:
                                this.stateBeforeNumericEntity(t)
                        }
                        this.index++
                    }
                    this.cleanup()
                }, t.prototype.finish = function () {
                    this.state === r.InNamedEntity && this.emitNamedEntity(), this.sectionStart < this.index && this.handleTrailingData(), this.cbs.onend()
                }, t.prototype.handleTrailingData = function () {
                    var t = this.buffer.length + this.offset;
                    this.state === r.InCommentLike ? this.currentSequence === c.CdataEnd ? this.cbs.oncdata(this.sectionStart, t, 0) : this.cbs.oncomment(this.sectionStart, t, 0) : this.state === r.InNumericEntity && this.allowLegacyEntity() || this.state === r.InHexEntity && this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state === r.InTagName || this.state === r.BeforeAttributeName || this.state === r.BeforeAttributeValue || this.state === r.AfterAttributeName || this.state === r.InAttributeName || this.state === r.InAttributeValueSq || this.state === r.InAttributeValueDq || this.state === r.InAttributeValueNq || this.state === r.InClosingTagName || this.cbs.ontext(this.sectionStart, t)
                }, t.prototype.emitPartial = function (t, e) {
                    this.baseState !== r.Text && this.baseState !== r.InSpecialTag ? this.cbs.onattribdata(t, e) : this.cbs.ontext(t, e)
                }, t.prototype.emitCodePoint = function (t) {
                    this.baseState !== r.Text && this.baseState !== r.InSpecialTag ? this.cbs.onattribentity(t) : this.cbs.ontextentity(t)
                }, t
            }();
            e.default = h
        }, 3719: function (t, e, n) {
            "use strict";
            var i = this && this.__createBinding || (Object.create ? function (t, e, n, i) {
                void 0 === i && (i = n);
                var r = Object.getOwnPropertyDescriptor(e, n);
                r && !("get" in r ? !e.__esModule : r.writable || r.configurable) || (r = {
                    enumerable: !0,
                    get: function () {
                        return e[n]
                    }
                }), Object.defineProperty(t, i, r)
            } : function (t, e, n, i) {
                void 0 === i && (i = n), t[i] = e[n]
            }), r = this && this.__setModuleDefault || (Object.create ? function (t, e) {
                Object.defineProperty(t, "default", {enumerable: !0, value: e})
            } : function (t, e) {
                t.default = e
            }), o = this && this.__importStar || function (t) {
                if (t && t.__esModule) return t;
                var e = {};
                if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n);
                return r(e, t), e
            }, a = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.DomUtils = e.parseFeed = e.getFeed = e.ElementType = e.Tokenizer = e.createDomStream = e.parseDOM = e.parseDocument = e.DefaultHandler = e.DomHandler = e.Parser = void 0;
            var s = n(763), l = n(763);
            Object.defineProperty(e, "Parser", {
                enumerable: !0, get: function () {
                    return l.Parser
                }
            });
            var u = n(7915), c = n(7915);

            function h(t, e) {
                var n = new u.DomHandler(void 0, e);
                return new s.Parser(n, e).end(t), n.root
            }

            function d(t, e) {
                return h(t, e).children
            }

            Object.defineProperty(e, "DomHandler", {
                enumerable: !0, get: function () {
                    return c.DomHandler
                }
            }), Object.defineProperty(e, "DefaultHandler", {
                enumerable: !0, get: function () {
                    return c.DomHandler
                }
            }), e.parseDocument = h, e.parseDOM = d, e.createDomStream = function (t, e, n) {
                var i = new u.DomHandler(t, e, n);
                return new s.Parser(i, e)
            };
            var p = n(9889);
            Object.defineProperty(e, "Tokenizer", {
                enumerable: !0, get: function () {
                    return a(p).default
                }
            }), e.ElementType = o(n(9960));
            var f = n(9432), g = n(9432);
            Object.defineProperty(e, "getFeed", {
                enumerable: !0, get: function () {
                    return g.getFeed
                }
            });
            var m = {xmlMode: !0};
            e.parseFeed = function (t, e) {
                return void 0 === e && (e = m), (0, f.getFeed)(d(t, e))
            }, e.DomUtils = o(n(9432))
        }, 8495: (module, exports, __webpack_require__) => {
            var process = __webpack_require__(4155), __WEBPACK_AMD_DEFINE_RESULT__;
            (function () {
                "use strict";
                var ERROR = "input is invalid type", WINDOW = "object" == typeof window, root = WINDOW ? window : {};
                root.JS_MD5_NO_WINDOW && (WINDOW = !1);
                var WEB_WORKER = !WINDOW && "object" == typeof self,
                    NODE_JS = !root.JS_MD5_NO_NODE_JS && "object" == typeof process && process.versions && process.versions.node;
                NODE_JS ? root = __webpack_require__.g : WEB_WORKER && (root = self);
                var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && module.exports, AMD = __webpack_require__.amdO,
                    ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && "undefined" != typeof ArrayBuffer,
                    HEX_CHARS = "0123456789abcdef".split(""), EXTRA = [128, 32768, 8388608, -2147483648],
                    SHIFT = [0, 8, 16, 24],
                    OUTPUT_TYPES = ["hex", "array", "digest", "buffer", "arrayBuffer", "base64"],
                    BASE64_ENCODE_CHAR = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),
                    blocks = [], buffer8;
                if (ARRAY_BUFFER) {
                    var buffer = new ArrayBuffer(68);
                    buffer8 = new Uint8Array(buffer), blocks = new Uint32Array(buffer)
                }
                !root.JS_MD5_NO_NODE_JS && Array.isArray || (Array.isArray = function (t) {
                    return "[object Array]" === Object.prototype.toString.call(t)
                }), !ARRAY_BUFFER || !root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW && ArrayBuffer.isView || (ArrayBuffer.isView = function (t) {
                    return "object" == typeof t && t.buffer && t.buffer.constructor === ArrayBuffer
                });
                var createOutputMethod = function (t) {
                    return function (e) {
                        return new Md5(!0).update(e)[t]()
                    }
                }, createMethod = function () {
                    var t = createOutputMethod("hex");
                    NODE_JS && (t = nodeWrap(t)), t.create = function () {
                        return new Md5
                    }, t.update = function (e) {
                        return t.create().update(e)
                    };
                    for (var e = 0; e < OUTPUT_TYPES.length; ++e) {
                        var n = OUTPUT_TYPES[e];
                        t[n] = createOutputMethod(n)
                    }
                    return t
                }, nodeWrap = function (method) {
                    var crypto = eval("require('crypto')"), Buffer = eval("require('buffer').Buffer"),
                        nodeMethod = function (t) {
                            if ("string" == typeof t) return crypto.createHash("md5").update(t, "utf8").digest("hex");
                            if (null == t) throw ERROR;
                            return t.constructor === ArrayBuffer && (t = new Uint8Array(t)), Array.isArray(t) || ArrayBuffer.isView(t) || t.constructor === Buffer ? crypto.createHash("md5").update(new Buffer(t)).digest("hex") : method(t)
                        };
                    return nodeMethod
                };

                function Md5(t) {
                    if (t) blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0, this.blocks = blocks, this.buffer8 = buffer8; else if (ARRAY_BUFFER) {
                        var e = new ArrayBuffer(68);
                        this.buffer8 = new Uint8Array(e), this.blocks = new Uint32Array(e)
                    } else this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
                    this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0
                }

                Md5.prototype.update = function (t) {
                    if (!this.finalized) {
                        var e, n = typeof t;
                        if ("string" !== n) {
                            if ("object" !== n) throw ERROR;
                            if (null === t) throw ERROR;
                            if (ARRAY_BUFFER && t.constructor === ArrayBuffer) t = new Uint8Array(t); else if (!(Array.isArray(t) || ARRAY_BUFFER && ArrayBuffer.isView(t))) throw ERROR;
                            e = !0
                        }
                        for (var i, r, o = 0, a = t.length, s = this.blocks, l = this.buffer8; o < a;) {
                            if (this.hashed && (this.hashed = !1, s[0] = s[16], s[16] = s[1] = s[2] = s[3] = s[4] = s[5] = s[6] = s[7] = s[8] = s[9] = s[10] = s[11] = s[12] = s[13] = s[14] = s[15] = 0), e) if (ARRAY_BUFFER) for (r = this.start; o < a && r < 64; ++o) l[r++] = t[o]; else for (r = this.start; o < a && r < 64; ++o) s[r >> 2] |= t[o] << SHIFT[3 & r++]; else if (ARRAY_BUFFER) for (r = this.start; o < a && r < 64; ++o) (i = t.charCodeAt(o)) < 128 ? l[r++] = i : i < 2048 ? (l[r++] = 192 | i >> 6, l[r++] = 128 | 63 & i) : i < 55296 || i >= 57344 ? (l[r++] = 224 | i >> 12, l[r++] = 128 | i >> 6 & 63, l[r++] = 128 | 63 & i) : (i = 65536 + ((1023 & i) << 10 | 1023 & t.charCodeAt(++o)), l[r++] = 240 | i >> 18, l[r++] = 128 | i >> 12 & 63, l[r++] = 128 | i >> 6 & 63, l[r++] = 128 | 63 & i); else for (r = this.start; o < a && r < 64; ++o) (i = t.charCodeAt(o)) < 128 ? s[r >> 2] |= i << SHIFT[3 & r++] : i < 2048 ? (s[r >> 2] |= (192 | i >> 6) << SHIFT[3 & r++], s[r >> 2] |= (128 | 63 & i) << SHIFT[3 & r++]) : i < 55296 || i >= 57344 ? (s[r >> 2] |= (224 | i >> 12) << SHIFT[3 & r++], s[r >> 2] |= (128 | i >> 6 & 63) << SHIFT[3 & r++], s[r >> 2] |= (128 | 63 & i) << SHIFT[3 & r++]) : (i = 65536 + ((1023 & i) << 10 | 1023 & t.charCodeAt(++o)), s[r >> 2] |= (240 | i >> 18) << SHIFT[3 & r++], s[r >> 2] |= (128 | i >> 12 & 63) << SHIFT[3 & r++], s[r >> 2] |= (128 | i >> 6 & 63) << SHIFT[3 & r++], s[r >> 2] |= (128 | 63 & i) << SHIFT[3 & r++]);
                            this.lastByteIndex = r, this.bytes += r - this.start, r >= 64 ? (this.start = r - 64, this.hash(), this.hashed = !0) : this.start = r
                        }
                        return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this
                    }
                }, Md5.prototype.finalize = function () {
                    if (!this.finalized) {
                        this.finalized = !0;
                        var t = this.blocks, e = this.lastByteIndex;
                        t[e >> 2] |= EXTRA[3 & e], e >= 56 && (this.hashed || this.hash(), t[0] = t[16], t[16] = t[1] = t[2] = t[3] = t[4] = t[5] = t[6] = t[7] = t[8] = t[9] = t[10] = t[11] = t[12] = t[13] = t[14] = t[15] = 0), t[14] = this.bytes << 3, t[15] = this.hBytes << 3 | this.bytes >>> 29, this.hash()
                    }
                }, Md5.prototype.hash = function () {
                    var t, e, n, i, r, o, a = this.blocks;
                    this.first ? e = ((e = ((t = ((t = a[0] - 680876937) << 7 | t >>> 25) - 271733879 << 0) ^ (n = ((n = (-271733879 ^ (i = ((i = (-1732584194 ^ 2004318071 & t) + a[1] - 117830708) << 12 | i >>> 20) + t << 0) & (-271733879 ^ t)) + a[2] - 1126478375) << 17 | n >>> 15) + i << 0) & (i ^ t)) + a[3] - 1316259209) << 22 | e >>> 10) + n << 0 : (t = this.h0, e = this.h1, n = this.h2, e = ((e += ((t = ((t += ((i = this.h3) ^ e & (n ^ i)) + a[0] - 680876936) << 7 | t >>> 25) + e << 0) ^ (n = ((n += (e ^ (i = ((i += (n ^ t & (e ^ n)) + a[1] - 389564586) << 12 | i >>> 20) + t << 0) & (t ^ e)) + a[2] + 606105819) << 17 | n >>> 15) + i << 0) & (i ^ t)) + a[3] - 1044525330) << 22 | e >>> 10) + n << 0), e = ((e += ((t = ((t += (i ^ e & (n ^ i)) + a[4] - 176418897) << 7 | t >>> 25) + e << 0) ^ (n = ((n += (e ^ (i = ((i += (n ^ t & (e ^ n)) + a[5] + 1200080426) << 12 | i >>> 20) + t << 0) & (t ^ e)) + a[6] - 1473231341) << 17 | n >>> 15) + i << 0) & (i ^ t)) + a[7] - 45705983) << 22 | e >>> 10) + n << 0, e = ((e += ((t = ((t += (i ^ e & (n ^ i)) + a[8] + 1770035416) << 7 | t >>> 25) + e << 0) ^ (n = ((n += (e ^ (i = ((i += (n ^ t & (e ^ n)) + a[9] - 1958414417) << 12 | i >>> 20) + t << 0) & (t ^ e)) + a[10] - 42063) << 17 | n >>> 15) + i << 0) & (i ^ t)) + a[11] - 1990404162) << 22 | e >>> 10) + n << 0, e = ((e += ((t = ((t += (i ^ e & (n ^ i)) + a[12] + 1804603682) << 7 | t >>> 25) + e << 0) ^ (n = ((n += (e ^ (i = ((i += (n ^ t & (e ^ n)) + a[13] - 40341101) << 12 | i >>> 20) + t << 0) & (t ^ e)) + a[14] - 1502002290) << 17 | n >>> 15) + i << 0) & (i ^ t)) + a[15] + 1236535329) << 22 | e >>> 10) + n << 0, e = ((e += ((i = ((i += (e ^ n & ((t = ((t += (n ^ i & (e ^ n)) + a[1] - 165796510) << 5 | t >>> 27) + e << 0) ^ e)) + a[6] - 1069501632) << 9 | i >>> 23) + t << 0) ^ t & ((n = ((n += (t ^ e & (i ^ t)) + a[11] + 643717713) << 14 | n >>> 18) + i << 0) ^ i)) + a[0] - 373897302) << 20 | e >>> 12) + n << 0, e = ((e += ((i = ((i += (e ^ n & ((t = ((t += (n ^ i & (e ^ n)) + a[5] - 701558691) << 5 | t >>> 27) + e << 0) ^ e)) + a[10] + 38016083) << 9 | i >>> 23) + t << 0) ^ t & ((n = ((n += (t ^ e & (i ^ t)) + a[15] - 660478335) << 14 | n >>> 18) + i << 0) ^ i)) + a[4] - 405537848) << 20 | e >>> 12) + n << 0, e = ((e += ((i = ((i += (e ^ n & ((t = ((t += (n ^ i & (e ^ n)) + a[9] + 568446438) << 5 | t >>> 27) + e << 0) ^ e)) + a[14] - 1019803690) << 9 | i >>> 23) + t << 0) ^ t & ((n = ((n += (t ^ e & (i ^ t)) + a[3] - 187363961) << 14 | n >>> 18) + i << 0) ^ i)) + a[8] + 1163531501) << 20 | e >>> 12) + n << 0, e = ((e += ((i = ((i += (e ^ n & ((t = ((t += (n ^ i & (e ^ n)) + a[13] - 1444681467) << 5 | t >>> 27) + e << 0) ^ e)) + a[2] - 51403784) << 9 | i >>> 23) + t << 0) ^ t & ((n = ((n += (t ^ e & (i ^ t)) + a[7] + 1735328473) << 14 | n >>> 18) + i << 0) ^ i)) + a[12] - 1926607734) << 20 | e >>> 12) + n << 0, e = ((e += ((o = (i = ((i += ((r = e ^ n) ^ (t = ((t += (r ^ i) + a[5] - 378558) << 4 | t >>> 28) + e << 0)) + a[8] - 2022574463) << 11 | i >>> 21) + t << 0) ^ t) ^ (n = ((n += (o ^ e) + a[11] + 1839030562) << 16 | n >>> 16) + i << 0)) + a[14] - 35309556) << 23 | e >>> 9) + n << 0, e = ((e += ((o = (i = ((i += ((r = e ^ n) ^ (t = ((t += (r ^ i) + a[1] - 1530992060) << 4 | t >>> 28) + e << 0)) + a[4] + 1272893353) << 11 | i >>> 21) + t << 0) ^ t) ^ (n = ((n += (o ^ e) + a[7] - 155497632) << 16 | n >>> 16) + i << 0)) + a[10] - 1094730640) << 23 | e >>> 9) + n << 0, e = ((e += ((o = (i = ((i += ((r = e ^ n) ^ (t = ((t += (r ^ i) + a[13] + 681279174) << 4 | t >>> 28) + e << 0)) + a[0] - 358537222) << 11 | i >>> 21) + t << 0) ^ t) ^ (n = ((n += (o ^ e) + a[3] - 722521979) << 16 | n >>> 16) + i << 0)) + a[6] + 76029189) << 23 | e >>> 9) + n << 0, e = ((e += ((o = (i = ((i += ((r = e ^ n) ^ (t = ((t += (r ^ i) + a[9] - 640364487) << 4 | t >>> 28) + e << 0)) + a[12] - 421815835) << 11 | i >>> 21) + t << 0) ^ t) ^ (n = ((n += (o ^ e) + a[15] + 530742520) << 16 | n >>> 16) + i << 0)) + a[2] - 995338651) << 23 | e >>> 9) + n << 0, e = ((e += ((i = ((i += (e ^ ((t = ((t += (n ^ (e | ~i)) + a[0] - 198630844) << 6 | t >>> 26) + e << 0) | ~n)) + a[7] + 1126891415) << 10 | i >>> 22) + t << 0) ^ ((n = ((n += (t ^ (i | ~e)) + a[14] - 1416354905) << 15 | n >>> 17) + i << 0) | ~t)) + a[5] - 57434055) << 21 | e >>> 11) + n << 0, e = ((e += ((i = ((i += (e ^ ((t = ((t += (n ^ (e | ~i)) + a[12] + 1700485571) << 6 | t >>> 26) + e << 0) | ~n)) + a[3] - 1894986606) << 10 | i >>> 22) + t << 0) ^ ((n = ((n += (t ^ (i | ~e)) + a[10] - 1051523) << 15 | n >>> 17) + i << 0) | ~t)) + a[1] - 2054922799) << 21 | e >>> 11) + n << 0, e = ((e += ((i = ((i += (e ^ ((t = ((t += (n ^ (e | ~i)) + a[8] + 1873313359) << 6 | t >>> 26) + e << 0) | ~n)) + a[15] - 30611744) << 10 | i >>> 22) + t << 0) ^ ((n = ((n += (t ^ (i | ~e)) + a[6] - 1560198380) << 15 | n >>> 17) + i << 0) | ~t)) + a[13] + 1309151649) << 21 | e >>> 11) + n << 0, e = ((e += ((i = ((i += (e ^ ((t = ((t += (n ^ (e | ~i)) + a[4] - 145523070) << 6 | t >>> 26) + e << 0) | ~n)) + a[11] - 1120210379) << 10 | i >>> 22) + t << 0) ^ ((n = ((n += (t ^ (i | ~e)) + a[2] + 718787259) << 15 | n >>> 17) + i << 0) | ~t)) + a[9] - 343485551) << 21 | e >>> 11) + n << 0, this.first ? (this.h0 = t + 1732584193 << 0, this.h1 = e - 271733879 << 0, this.h2 = n - 1732584194 << 0, this.h3 = i + 271733878 << 0, this.first = !1) : (this.h0 = this.h0 + t << 0, this.h1 = this.h1 + e << 0, this.h2 = this.h2 + n << 0, this.h3 = this.h3 + i << 0)
                }, Md5.prototype.hex = function () {
                    this.finalize();
                    var t = this.h0, e = this.h1, n = this.h2, i = this.h3;
                    return HEX_CHARS[t >> 4 & 15] + HEX_CHARS[15 & t] + HEX_CHARS[t >> 12 & 15] + HEX_CHARS[t >> 8 & 15] + HEX_CHARS[t >> 20 & 15] + HEX_CHARS[t >> 16 & 15] + HEX_CHARS[t >> 28 & 15] + HEX_CHARS[t >> 24 & 15] + HEX_CHARS[e >> 4 & 15] + HEX_CHARS[15 & e] + HEX_CHARS[e >> 12 & 15] + HEX_CHARS[e >> 8 & 15] + HEX_CHARS[e >> 20 & 15] + HEX_CHARS[e >> 16 & 15] + HEX_CHARS[e >> 28 & 15] + HEX_CHARS[e >> 24 & 15] + HEX_CHARS[n >> 4 & 15] + HEX_CHARS[15 & n] + HEX_CHARS[n >> 12 & 15] + HEX_CHARS[n >> 8 & 15] + HEX_CHARS[n >> 20 & 15] + HEX_CHARS[n >> 16 & 15] + HEX_CHARS[n >> 28 & 15] + HEX_CHARS[n >> 24 & 15] + HEX_CHARS[i >> 4 & 15] + HEX_CHARS[15 & i] + HEX_CHARS[i >> 12 & 15] + HEX_CHARS[i >> 8 & 15] + HEX_CHARS[i >> 20 & 15] + HEX_CHARS[i >> 16 & 15] + HEX_CHARS[i >> 28 & 15] + HEX_CHARS[i >> 24 & 15]
                }, Md5.prototype.toString = Md5.prototype.hex, Md5.prototype.digest = function () {
                    this.finalize();
                    var t = this.h0, e = this.h1, n = this.h2, i = this.h3;
                    return [255 & t, t >> 8 & 255, t >> 16 & 255, t >> 24 & 255, 255 & e, e >> 8 & 255, e >> 16 & 255, e >> 24 & 255, 255 & n, n >> 8 & 255, n >> 16 & 255, n >> 24 & 255, 255 & i, i >> 8 & 255, i >> 16 & 255, i >> 24 & 255]
                }, Md5.prototype.array = Md5.prototype.digest, Md5.prototype.arrayBuffer = function () {
                    this.finalize();
                    var t = new ArrayBuffer(16), e = new Uint32Array(t);
                    return e[0] = this.h0, e[1] = this.h1, e[2] = this.h2, e[3] = this.h3, t
                }, Md5.prototype.buffer = Md5.prototype.arrayBuffer, Md5.prototype.base64 = function () {
                    for (var t, e, n, i = "", r = this.array(), o = 0; o < 15;) t = r[o++], e = r[o++], n = r[o++], i += BASE64_ENCODE_CHAR[t >>> 2] + BASE64_ENCODE_CHAR[63 & (t << 4 | e >>> 4)] + BASE64_ENCODE_CHAR[63 & (e << 2 | n >>> 6)] + BASE64_ENCODE_CHAR[63 & n];
                    return t = r[o], i += BASE64_ENCODE_CHAR[t >>> 2] + BASE64_ENCODE_CHAR[t << 4 & 63] + "=="
                };
                var exports = createMethod();
                COMMON_JS ? module.exports = exports : (root.md5 = exports, AMD && (__WEBPACK_AMD_DEFINE_RESULT__ = function () {
                    return exports
                }.call(exports, __webpack_require__, exports, module), void 0 === __WEBPACK_AMD_DEFINE_RESULT__ || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)))
            })()
        }, 9769: function (t, e, n) {
            "use strict";
            var i = this && this.__importDefault || function (t) {
                return t && t.__esModule ? t : {default: t}
            };
            Object.defineProperty(e, "__esModule", {value: !0}), e.generate = e.compile = void 0;
            var r = i(n(1073));
            e.compile = function (t) {
                var e = t[0], n = t[1] - 1;
                if (n < 0 && e <= 0) return r.default.falseFunc;
                if (-1 === e) return function (t) {
                    return t <= n
                };
                if (0 === e) return function (t) {
                    return t === n
                };
                if (1 === e) return n < 0 ? r.default.trueFunc : function (t) {
                    return t >= n
                };
                var i = Math.abs(e), o = (n % i + i) % i;
                return e > 1 ? function (t) {
                    return t >= n && t % i === o
                } : function (t) {
                    return t <= n && t % i === o
                }
            }, e.generate = function (t) {
                var e = t[0], n = t[1] - 1, i = 0;
                if (e < 0) {
                    var r = -e, o = (n % r + r) % r;
                    return function () {
                        var t = o + r * i++;
                        return t > n ? null : t
                    }
                }
                return 0 === e ? n < 0 ? function () {
                    return null
                } : function () {
                    return 0 == i++ ? n : null
                } : (n < 0 && (n += e * Math.ceil(-n / e)), function () {
                    return e * i++ + n
                })
            }
        }, 7540: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.sequence = e.generate = e.compile = e.parse = void 0;
            var i = n(7766);
            Object.defineProperty(e, "parse", {
                enumerable: !0, get: function () {
                    return i.parse
                }
            });
            var r = n(9769);
            Object.defineProperty(e, "compile", {
                enumerable: !0, get: function () {
                    return r.compile
                }
            }), Object.defineProperty(e, "generate", {
                enumerable: !0, get: function () {
                    return r.generate
                }
            }), e.default = function (t) {
                return (0, r.compile)((0, i.parse)(t))
            }, e.sequence = function (t) {
                return (0, r.generate)((0, i.parse)(t))
            }
        }, 7766: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.parse = void 0;
            var n = new Set([9, 10, 12, 13, 32]), i = "0".charCodeAt(0), r = "9".charCodeAt(0);
            e.parse = function (t) {
                if ("even" === (t = t.trim().toLowerCase())) return [2, 0];
                if ("odd" === t) return [2, 1];
                var e = 0, o = 0, a = l(), s = u();
                if (e < t.length && "n" === t.charAt(e) && (e++, o = a * (null != s ? s : 1), c(), e < t.length ? (a = l(), c(), s = u()) : a = s = 0), null === s || e < t.length) throw new Error("n-th rule couldn't be parsed ('".concat(t, "')"));
                return [o, a * s];

                function l() {
                    return "-" === t.charAt(e) ? (e++, -1) : ("+" === t.charAt(e) && e++, 1)
                }

                function u() {
                    for (var n = e, o = 0; e < t.length && t.charCodeAt(e) >= i && t.charCodeAt(e) <= r;) o = 10 * o + (t.charCodeAt(e) - i), e++;
                    return e === n ? null : o
                }

                function c() {
                    for (; e < t.length && n.has(t.charCodeAt(e));) e++
                }
            }
        }, 4155: t => {
            var e, n, i = t.exports = {};

            function r() {
                throw new Error("setTimeout has not been defined")
            }

            function o() {
                throw new Error("clearTimeout has not been defined")
            }

            function a(t) {
                if (e === setTimeout) return setTimeout(t, 0);
                if ((e === r || !e) && setTimeout) return e = setTimeout, setTimeout(t, 0);
                try {
                    return e(t, 0)
                } catch (n) {
                    try {
                        return e.call(null, t, 0)
                    } catch (n) {
                        return e.call(this, t, 0)
                    }
                }
            }

            !function () {
                try {
                    e = "function" == typeof setTimeout ? setTimeout : r
                } catch (t) {
                    e = r
                }
                try {
                    n = "function" == typeof clearTimeout ? clearTimeout : o
                } catch (t) {
                    n = o
                }
            }();
            var s, l = [], u = !1, c = -1;

            function h() {
                u && s && (u = !1, s.length ? l = s.concat(l) : c = -1, l.length && d())
            }

            function d() {
                if (!u) {
                    var t = a(h);
                    u = !0;
                    for (var e = l.length; e;) {
                        for (s = l, l = []; ++c < e;) s && s[c].run();
                        c = -1, e = l.length
                    }
                    s = null, u = !1, function (t) {
                        if (n === clearTimeout) return clearTimeout(t);
                        if ((n === o || !n) && clearTimeout) return n = clearTimeout, clearTimeout(t);
                        try {
                            return n(t)
                        } catch (e) {
                            try {
                                return n.call(null, t)
                            } catch (e) {
                                return n.call(this, t)
                            }
                        }
                    }(t)
                }
            }

            function p(t, e) {
                this.fun = t, this.array = e
            }

            function f() {
            }

            i.nextTick = function (t) {
                var e = new Array(arguments.length - 1);
                if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
                l.push(new p(t, e)), 1 !== l.length || u || a(d)
            }, p.prototype.run = function () {
                this.fun.apply(null, this.array)
            }, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {}, i.on = f, i.addListener = f, i.once = f, i.off = f, i.removeListener = f, i.removeAllListeners = f, i.emit = f, i.prependListener = f, i.prependOnceListener = f, i.listeners = function (t) {
                return []
            }, i.binding = function (t) {
                throw new Error("process.binding is not supported")
            }, i.cwd = function () {
                return "/"
            }, i.chdir = function (t) {
                throw new Error("process.chdir is not supported")
            }, i.umask = function () {
                return 0
            }
        }, 3379: t => {
            "use strict";
            var e = [];

            function n(t) {
                for (var n = -1, i = 0; i < e.length; i++) if (e[i].identifier === t) {
                    n = i;
                    break
                }
                return n
            }

            function i(t, i) {
                for (var o = {}, a = [], s = 0; s < t.length; s++) {
                    var l = t[s], u = i.base ? l[0] + i.base : l[0], c = o[u] || 0, h = "".concat(u, " ").concat(c);
                    o[u] = c + 1;
                    var d = n(h), p = {css: l[1], media: l[2], sourceMap: l[3], supports: l[4], layer: l[5]};
                    if (-1 !== d) e[d].references++, e[d].updater(p); else {
                        var f = r(p, i);
                        i.byIndex = s, e.splice(s, 0, {identifier: h, updater: f, references: 1})
                    }
                    a.push(h)
                }
                return a
            }

            function r(t, e) {
                var n = e.domAPI(e);
                n.update(t);
                return function (e) {
                    if (e) {
                        if (e.css === t.css && e.media === t.media && e.sourceMap === t.sourceMap && e.supports === t.supports && e.layer === t.layer) return;
                        n.update(t = e)
                    } else n.remove()
                }
            }

            t.exports = function (t, r) {
                var o = i(t = t || [], r = r || {});
                return function (t) {
                    t = t || [];
                    for (var a = 0; a < o.length; a++) {
                        var s = n(o[a]);
                        e[s].references--
                    }
                    for (var l = i(t, r), u = 0; u < o.length; u++) {
                        var c = n(o[u]);
                        0 === e[c].references && (e[c].updater(), e.splice(c, 1))
                    }
                    o = l
                }
            }
        }, 569: t => {
            "use strict";
            var e = {};
            t.exports = function (t, n) {
                var i = function (t) {
                    if (void 0 === e[t]) {
                        var n = document.querySelector(t);
                        if (window.HTMLIFrameElement && n instanceof window.HTMLIFrameElement) try {
                            n = n.contentDocument.head
                        } catch (t) {
                            n = null
                        }
                        e[t] = n
                    }
                    return e[t]
                }(t);
                if (!i) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
                i.appendChild(n)
            }
        }, 9216: t => {
            "use strict";
            t.exports = function (t) {
                var e = document.createElement("style");
                return t.setAttributes(e, t.attributes), t.insert(e, t.options), e
            }
        }, 3565: (t, e, n) => {
            "use strict";
            t.exports = function (t) {
                var e = n.nc;
                e && t.setAttribute("nonce", e)
            }
        }, 7795: t => {
            "use strict";
            t.exports = function (t) {
                if ("undefined" == typeof document) return {
                    update: function () {
                    }, remove: function () {
                    }
                };
                var e = t.insertStyleElement(t);
                return {
                    update: function (n) {
                        !function (t, e, n) {
                            var i = "";
                            n.supports && (i += "@supports (".concat(n.supports, ") {")), n.media && (i += "@media ".concat(n.media, " {"));
                            var r = void 0 !== n.layer;
                            r && (i += "@layer".concat(n.layer.length > 0 ? " ".concat(n.layer) : "", " {")), i += n.css, r && (i += "}"), n.media && (i += "}"), n.supports && (i += "}");
                            var o = n.sourceMap;
                            o && "undefined" != typeof btoa && (i += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o)))), " */")), e.styleTagTransform(i, t, e.options)
                        }(e, t, n)
                    }, remove: function () {
                        !function (t) {
                            if (null === t.parentNode) return !1;
                            t.parentNode.removeChild(t)
                        }(e)
                    }
                }
            }
        }, 4589: t => {
            "use strict";
            t.exports = function (t, e) {
                if (e.styleSheet) e.styleSheet.cssText = t; else {
                    for (; e.firstChild;) e.removeChild(e.firstChild);
                    e.appendChild(document.createTextNode(t))
                }
            }
        }, 2411: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.adapter = e.serializeDoctypeContent = void 0;
            const i = n(2177), r = n(7915);

            function o(t) {
                return new r.Text(t)
            }

            function a(t) {
                const e = t.includes('"') ? "'" : '"';
                return e + t + e
            }

            function s(t, e, n) {
                let i = "!DOCTYPE ";
                return t && (i += t), e ? i += ` PUBLIC ${a(e)}` : n && (i += " SYSTEM"), n && (i += ` ${a(n)}`), i
            }

            e.serializeDoctypeContent = s, e.adapter = {
                isCommentNode: r.isComment,
                isElementNode: r.isTag,
                isTextNode: r.isText,
                createDocument() {
                    const t = new r.Document([]);
                    return t["x-mode"] = i.html.DOCUMENT_MODE.NO_QUIRKS, t
                },
                createDocumentFragment: () => new r.Document([]),
                createElement(t, e, n) {
                    const i = Object.create(null), o = Object.create(null), a = Object.create(null);
                    for (let t = 0; t < n.length; t++) {
                        const e = n[t].name;
                        i[e] = n[t].value, o[e] = n[t].namespace, a[e] = n[t].prefix
                    }
                    const s = new r.Element(t, i, []);
                    return s.namespace = e, s["x-attribsNamespace"] = o, s["x-attribsPrefix"] = a, s
                },
                createCommentNode: t => new r.Comment(t),
                appendChild(t, e) {
                    const n = t.children[t.children.length - 1];
                    n && (n.next = e, e.prev = n), t.children.push(e), e.parent = t
                },
                insertBefore(t, e, n) {
                    const i = t.children.indexOf(n), {prev: r} = n;
                    r && (r.next = e, e.prev = r), n.prev = e, e.next = n, t.children.splice(i, 0, e), e.parent = t
                },
                setTemplateContent(t, n) {
                    e.adapter.appendChild(t, n)
                },
                getTemplateContent: t => t.children[0],
                setDocumentType(t, n, i, o) {
                    const a = s(n, i, o);
                    let l = t.children.find((t => (0, r.isDirective)(t) && "!doctype" === t.name));
                    l ? l.data = null != a ? a : null : (l = new r.ProcessingInstruction("!doctype", a), e.adapter.appendChild(t, l)), l["x-name"] = null != n ? n : void 0, l["x-publicId"] = null != i ? i : void 0, l["x-systemId"] = null != o ? o : void 0
                },
                setDocumentMode(t, e) {
                    t["x-mode"] = e
                },
                getDocumentMode: t => t["x-mode"],
                detachNode(t) {
                    if (t.parent) {
                        const e = t.parent.children.indexOf(t), {prev: n, next: i} = t;
                        t.prev = null, t.next = null, n && (n.next = i), i && (i.prev = n), t.parent.children.splice(e, 1), t.parent = null
                    }
                },
                insertText(t, n) {
                    const i = t.children[t.children.length - 1];
                    i && (0, r.isText)(i) ? i.data += n : e.adapter.appendChild(t, o(n))
                },
                insertTextBefore(t, n, i) {
                    const a = t.children[t.children.indexOf(i) - 1];
                    a && (0, r.isText)(a) ? a.data += n : e.adapter.insertBefore(t, o(n), i)
                },
                adoptAttributes(t, e) {
                    for (let n = 0; n < e.length; n++) {
                        const i = e[n].name;
                        void 0 === t.attribs[i] && (t.attribs[i] = e[n].value, t["x-attribsNamespace"][i] = e[n].namespace, t["x-attribsPrefix"][i] = e[n].prefix)
                    }
                },
                getFirstChild: t => t.children[0],
                getChildNodes: t => t.children,
                getParentNode: t => t.parent,
                getAttrList: t => t.attributes,
                getTagName: t => t.name,
                getNamespaceURI: t => t.namespace,
                getTextNodeContent: t => t.data,
                getCommentNodeContent: t => t.data,
                getDocumentTypeNodeName(t) {
                    var e;
                    return null !== (e = t["x-name"]) && void 0 !== e ? e : ""
                },
                getDocumentTypeNodePublicId(t) {
                    var e;
                    return null !== (e = t["x-publicId"]) && void 0 !== e ? e : ""
                },
                getDocumentTypeNodeSystemId(t) {
                    var e;
                    return null !== (e = t["x-systemId"]) && void 0 !== e ? e : ""
                },
                isDocumentTypeNode: t => (0, r.isDirective)(t) && "!doctype" === t.name,
                setNodeSourceCodeLocation(t, e) {
                    e && (t.startIndex = e.startOffset, t.endIndex = e.endOffset), t.sourceCodeLocation = e
                },
                getNodeSourceCodeLocation: t => t.sourceCodeLocation,
                updateNodeSourceCodeLocation(t, e) {
                    null != e.endOffset && (t.endIndex = e.endOffset), t.sourceCodeLocation = Object.assign(Object.assign({}, t.sourceCodeLocation), e)
                }
            }
        }, 3067: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.getDocumentMode = e.isConforming = void 0;
            const i = n(7618), r = "html",
                o = ["+//silmaril//dtd html pro v0r11 19970101//", "-//as//dtd html 3.0 aswedit + extensions//", "-//advasoft ltd//dtd html 3.0 aswedit + extensions//", "-//ietf//dtd html 2.0 level 1//", "-//ietf//dtd html 2.0 level 2//", "-//ietf//dtd html 2.0 strict level 1//", "-//ietf//dtd html 2.0 strict level 2//", "-//ietf//dtd html 2.0 strict//", "-//ietf//dtd html 2.0//", "-//ietf//dtd html 2.1e//", "-//ietf//dtd html 3.0//", "-//ietf//dtd html 3.2 final//", "-//ietf//dtd html 3.2//", "-//ietf//dtd html 3//", "-//ietf//dtd html level 0//", "-//ietf//dtd html level 1//", "-//ietf//dtd html level 2//", "-//ietf//dtd html level 3//", "-//ietf//dtd html strict level 0//", "-//ietf//dtd html strict level 1//", "-//ietf//dtd html strict level 2//", "-//ietf//dtd html strict level 3//", "-//ietf//dtd html strict//", "-//ietf//dtd html//", "-//metrius//dtd metrius presentational//", "-//microsoft//dtd internet explorer 2.0 html strict//", "-//microsoft//dtd internet explorer 2.0 html//", "-//microsoft//dtd internet explorer 2.0 tables//", "-//microsoft//dtd internet explorer 3.0 html strict//", "-//microsoft//dtd internet explorer 3.0 html//", "-//microsoft//dtd internet explorer 3.0 tables//", "-//netscape comm. corp.//dtd html//", "-//netscape comm. corp.//dtd strict html//", "-//o'reilly and associates//dtd html 2.0//", "-//o'reilly and associates//dtd html extended 1.0//", "-//o'reilly and associates//dtd html extended relaxed 1.0//", "-//sq//dtd html 2.0 hotmetal + extensions//", "-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//", "-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//", "-//spyglass//dtd html 2.0 extended//", "-//sun microsystems corp.//dtd hotjava html//", "-//sun microsystems corp.//dtd hotjava strict html//", "-//w3c//dtd html 3 1995-03-24//", "-//w3c//dtd html 3.2 draft//", "-//w3c//dtd html 3.2 final//", "-//w3c//dtd html 3.2//", "-//w3c//dtd html 3.2s draft//", "-//w3c//dtd html 4.0 frameset//", "-//w3c//dtd html 4.0 transitional//", "-//w3c//dtd html experimental 19960712//", "-//w3c//dtd html experimental 970421//", "-//w3c//dtd w3 html//", "-//w3o//dtd w3 html 3.0//", "-//webtechs//dtd mozilla html 2.0//", "-//webtechs//dtd mozilla html//"],
                a = [...o, "-//w3c//dtd html 4.01 frameset//", "-//w3c//dtd html 4.01 transitional//"],
                s = new Set(["-//w3o//dtd w3 html strict 3.0//en//", "-/w3c/dtd html 4.0 transitional/en", "html"]),
                l = ["-//w3c//dtd xhtml 1.0 frameset//", "-//w3c//dtd xhtml 1.0 transitional//"],
                u = [...l, "-//w3c//dtd html 4.01 frameset//", "-//w3c//dtd html 4.01 transitional//"];

            function c(t, e) {
                return e.some((e => t.startsWith(e)))
            }

            e.isConforming = function (t) {
                return t.name === r && null === t.publicId && (null === t.systemId || "about:legacy-compat" === t.systemId)
            }, e.getDocumentMode = function (t) {
                if (t.name !== r) return i.DOCUMENT_MODE.QUIRKS;
                const {systemId: e} = t;
                if (e && "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd" === e.toLowerCase()) return i.DOCUMENT_MODE.QUIRKS;
                let {publicId: n} = t;
                if (null !== n) {
                    if (n = n.toLowerCase(), s.has(n)) return i.DOCUMENT_MODE.QUIRKS;
                    let t = null === e ? a : o;
                    if (c(n, t)) return i.DOCUMENT_MODE.QUIRKS;
                    if (t = null === e ? l : u, c(n, t)) return i.DOCUMENT_MODE.LIMITED_QUIRKS
                }
                return i.DOCUMENT_MODE.NO_QUIRKS
            }
        }, 2799: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.ERR = void 0, function (t) {
                t.controlCharacterInInputStream = "control-character-in-input-stream", t.noncharacterInInputStream = "noncharacter-in-input-stream", t.surrogateInInputStream = "surrogate-in-input-stream", t.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", t.endTagWithAttributes = "end-tag-with-attributes", t.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", t.unexpectedSolidusInTag = "unexpected-solidus-in-tag", t.unexpectedNullCharacter = "unexpected-null-character", t.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", t.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", t.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", t.missingEndTagName = "missing-end-tag-name", t.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", t.unknownNamedCharacterReference = "unknown-named-character-reference", t.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", t.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", t.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", t.eofBeforeTagName = "eof-before-tag-name", t.eofInTag = "eof-in-tag", t.missingAttributeValue = "missing-attribute-value", t.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", t.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", t.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", t.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", t.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", t.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", t.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", t.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", t.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", t.cdataInHtmlContent = "cdata-in-html-content", t.incorrectlyOpenedComment = "incorrectly-opened-comment", t.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", t.eofInDoctype = "eof-in-doctype", t.nestedComment = "nested-comment", t.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", t.eofInComment = "eof-in-comment", t.incorrectlyClosedComment = "incorrectly-closed-comment", t.eofInCdata = "eof-in-cdata", t.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", t.nullCharacterReference = "null-character-reference", t.surrogateCharacterReference = "surrogate-character-reference", t.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", t.controlCharacterReference = "control-character-reference", t.noncharacterCharacterReference = "noncharacter-character-reference", t.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", t.missingDoctypeName = "missing-doctype-name", t.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", t.duplicateAttribute = "duplicate-attribute", t.nonConformingDoctype = "non-conforming-doctype", t.missingDoctype = "missing-doctype", t.misplacedDoctype = "misplaced-doctype", t.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", t.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", t.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", t.openElementsLeftAfterEof = "open-elements-left-after-eof", t.abandonedHeadElementChild = "abandoned-head-element-child", t.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", t.nestedNoscriptInHead = "nested-noscript-in-head", t.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text"
            }(e.ERR || (e.ERR = {}))
        }, 6617: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.isIntegrationPoint = e.adjustTokenSVGTagName = e.adjustTokenXMLAttrs = e.adjustTokenSVGAttrs = e.adjustTokenMathMLAttrs = e.causesExit = e.SVG_TAG_NAMES_ADJUSTMENT_MAP = void 0;
            const i = n(7618), r = {TEXT_HTML: "text/html", APPLICATION_XML: "application/xhtml+xml"},
                o = new Map(["attributeName", "attributeType", "baseFrequency", "baseProfile", "calcMode", "clipPathUnits", "diffuseConstant", "edgeMode", "filterUnits", "glyphRef", "gradientTransform", "gradientUnits", "kernelMatrix", "kernelUnitLength", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "limitingConeAngle", "markerHeight", "markerUnits", "markerWidth", "maskContentUnits", "maskUnits", "numOctaves", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "refX", "refY", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "specularConstant", "specularExponent", "spreadMethod", "startOffset", "stdDeviation", "stitchTiles", "surfaceScale", "systemLanguage", "tableValues", "targetX", "targetY", "textLength", "viewBox", "viewTarget", "xChannelSelector", "yChannelSelector", "zoomAndPan"].map((t => [t.toLowerCase(), t]))),
                a = new Map([["xlink:actuate", {
                    prefix: "xlink",
                    name: "actuate",
                    namespace: i.NS.XLINK
                }], ["xlink:arcrole", {
                    prefix: "xlink",
                    name: "arcrole",
                    namespace: i.NS.XLINK
                }], ["xlink:href", {
                    prefix: "xlink",
                    name: "href",
                    namespace: i.NS.XLINK
                }], ["xlink:role", {
                    prefix: "xlink",
                    name: "role",
                    namespace: i.NS.XLINK
                }], ["xlink:show", {
                    prefix: "xlink",
                    name: "show",
                    namespace: i.NS.XLINK
                }], ["xlink:title", {
                    prefix: "xlink",
                    name: "title",
                    namespace: i.NS.XLINK
                }], ["xlink:type", {prefix: "xlink", name: "type", namespace: i.NS.XLINK}], ["xml:base", {
                    prefix: "xml",
                    name: "base",
                    namespace: i.NS.XML
                }], ["xml:lang", {prefix: "xml", name: "lang", namespace: i.NS.XML}], ["xml:space", {
                    prefix: "xml",
                    name: "space",
                    namespace: i.NS.XML
                }], ["xmlns", {prefix: "", name: "xmlns", namespace: i.NS.XMLNS}], ["xmlns:xlink", {
                    prefix: "xmlns",
                    name: "xlink",
                    namespace: i.NS.XMLNS
                }]]);
            e.SVG_TAG_NAMES_ADJUSTMENT_MAP = new Map(["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "textPath"].map((t => [t.toLowerCase(), t])));
            const s = new Set([i.TAG_ID.B, i.TAG_ID.BIG, i.TAG_ID.BLOCKQUOTE, i.TAG_ID.BODY, i.TAG_ID.BR, i.TAG_ID.CENTER, i.TAG_ID.CODE, i.TAG_ID.DD, i.TAG_ID.DIV, i.TAG_ID.DL, i.TAG_ID.DT, i.TAG_ID.EM, i.TAG_ID.EMBED, i.TAG_ID.H1, i.TAG_ID.H2, i.TAG_ID.H3, i.TAG_ID.H4, i.TAG_ID.H5, i.TAG_ID.H6, i.TAG_ID.HEAD, i.TAG_ID.HR, i.TAG_ID.I, i.TAG_ID.IMG, i.TAG_ID.LI, i.TAG_ID.LISTING, i.TAG_ID.MENU, i.TAG_ID.META, i.TAG_ID.NOBR, i.TAG_ID.OL, i.TAG_ID.P, i.TAG_ID.PRE, i.TAG_ID.RUBY, i.TAG_ID.S, i.TAG_ID.SMALL, i.TAG_ID.SPAN, i.TAG_ID.STRONG, i.TAG_ID.STRIKE, i.TAG_ID.SUB, i.TAG_ID.SUP, i.TAG_ID.TABLE, i.TAG_ID.TT, i.TAG_ID.U, i.TAG_ID.UL, i.TAG_ID.VAR]);
            e.causesExit = function (t) {
                const e = t.tagID;
                return e === i.TAG_ID.FONT && t.attrs.some((({name: t}) => t === i.ATTRS.COLOR || t === i.ATTRS.SIZE || t === i.ATTRS.FACE)) || s.has(e)
            }, e.adjustTokenMathMLAttrs = function (t) {
                for (let e = 0; e < t.attrs.length; e++) if ("definitionurl" === t.attrs[e].name) {
                    t.attrs[e].name = "definitionURL";
                    break
                }
            }, e.adjustTokenSVGAttrs = function (t) {
                for (let e = 0; e < t.attrs.length; e++) {
                    const n = o.get(t.attrs[e].name);
                    null != n && (t.attrs[e].name = n)
                }
            }, e.adjustTokenXMLAttrs = function (t) {
                for (let e = 0; e < t.attrs.length; e++) {
                    const n = a.get(t.attrs[e].name);
                    n && (t.attrs[e].prefix = n.prefix, t.attrs[e].name = n.name, t.attrs[e].namespace = n.namespace)
                }
            }, e.adjustTokenSVGTagName = function (t) {
                const n = e.SVG_TAG_NAMES_ADJUSTMENT_MAP.get(t.tagName);
                null != n && (t.tagName = n, t.tagID = (0, i.getTagID)(t.tagName))
            }, e.isIntegrationPoint = function (t, e, n, o) {
                return (!o || o === i.NS.HTML) && function (t, e, n) {
                    if (e === i.NS.MATHML && t === i.TAG_ID.ANNOTATION_XML) for (let t = 0; t < n.length; t++) if (n[t].name === i.ATTRS.ENCODING) {
                        const e = n[t].value.toLowerCase();
                        return e === r.TEXT_HTML || e === r.APPLICATION_XML
                    }
                    return e === i.NS.SVG && (t === i.TAG_ID.FOREIGN_OBJECT || t === i.TAG_ID.DESC || t === i.TAG_ID.TITLE)
                }(t, e, n) || (!o || o === i.NS.MATHML) && function (t, e) {
                    return e === i.NS.MATHML && (t === i.TAG_ID.MI || t === i.TAG_ID.MO || t === i.TAG_ID.MN || t === i.TAG_ID.MS || t === i.TAG_ID.MTEXT)
                }(t, e)
            }
        }, 7618: (t, e) => {
            "use strict";
            var n, i, r;
            Object.defineProperty(e, "__esModule", {value: !0}), e.hasUnescapedText = e.isNumberedHeader = e.SPECIAL_ELEMENTS = e.getTagID = e.TAG_ID = e.TAG_NAMES = e.DOCUMENT_MODE = e.ATTRS = e.NS = void 0, function (t) {
                t.HTML = "http://www.w3.org/1999/xhtml", t.MATHML = "http://www.w3.org/1998/Math/MathML", t.SVG = "http://www.w3.org/2000/svg", t.XLINK = "http://www.w3.org/1999/xlink", t.XML = "http://www.w3.org/XML/1998/namespace", t.XMLNS = "http://www.w3.org/2000/xmlns/"
            }(n = e.NS || (e.NS = {})), function (t) {
                t.TYPE = "type", t.ACTION = "action", t.ENCODING = "encoding", t.PROMPT = "prompt", t.NAME = "name", t.COLOR = "color", t.FACE = "face", t.SIZE = "size"
            }(e.ATTRS || (e.ATTRS = {})), function (t) {
                t.NO_QUIRKS = "no-quirks", t.QUIRKS = "quirks", t.LIMITED_QUIRKS = "limited-quirks"
            }(e.DOCUMENT_MODE || (e.DOCUMENT_MODE = {})), function (t) {
                t.A = "a", t.ADDRESS = "address", t.ANNOTATION_XML = "annotation-xml", t.APPLET = "applet", t.AREA = "area", t.ARTICLE = "article", t.ASIDE = "aside", t.B = "b", t.BASE = "base", t.BASEFONT = "basefont", t.BGSOUND = "bgsound", t.BIG = "big", t.BLOCKQUOTE = "blockquote", t.BODY = "body", t.BR = "br", t.BUTTON = "button", t.CAPTION = "caption", t.CENTER = "center", t.CODE = "code", t.COL = "col", t.COLGROUP = "colgroup", t.DD = "dd", t.DESC = "desc", t.DETAILS = "details", t.DIALOG = "dialog", t.DIR = "dir", t.DIV = "div", t.DL = "dl", t.DT = "dt", t.EM = "em", t.EMBED = "embed", t.FIELDSET = "fieldset", t.FIGCAPTION = "figcaption", t.FIGURE = "figure", t.FONT = "font", t.FOOTER = "footer", t.FOREIGN_OBJECT = "foreignObject", t.FORM = "form", t.FRAME = "frame", t.FRAMESET = "frameset", t.H1 = "h1", t.H2 = "h2", t.H3 = "h3", t.H4 = "h4", t.H5 = "h5", t.H6 = "h6", t.HEAD = "head", t.HEADER = "header", t.HGROUP = "hgroup", t.HR = "hr", t.HTML = "html", t.I = "i", t.IMG = "img", t.IMAGE = "image", t.INPUT = "input", t.IFRAME = "iframe", t.KEYGEN = "keygen", t.LABEL = "label", t.LI = "li", t.LINK = "link", t.LISTING = "listing", t.MAIN = "main", t.MALIGNMARK = "malignmark", t.MARQUEE = "marquee", t.MATH = "math", t.MENU = "menu", t.META = "meta", t.MGLYPH = "mglyph", t.MI = "mi", t.MO = "mo", t.MN = "mn", t.MS = "ms", t.MTEXT = "mtext", t.NAV = "nav", t.NOBR = "nobr", t.NOFRAMES = "noframes", t.NOEMBED = "noembed", t.NOSCRIPT = "noscript", t.OBJECT = "object", t.OL = "ol", t.OPTGROUP = "optgroup", t.OPTION = "option", t.P = "p", t.PARAM = "param", t.PLAINTEXT = "plaintext", t.PRE = "pre", t.RB = "rb", t.RP = "rp", t.RT = "rt", t.RTC = "rtc", t.RUBY = "ruby", t.S = "s", t.SCRIPT = "script", t.SECTION = "section", t.SELECT = "select", t.SOURCE = "source", t.SMALL = "small", t.SPAN = "span", t.STRIKE = "strike", t.STRONG = "strong", t.STYLE = "style",t.SUB = "sub",t.SUMMARY = "summary",t.SUP = "sup",t.TABLE = "table",t.TBODY = "tbody",t.TEMPLATE = "template",t.TEXTAREA = "textarea",t.TFOOT = "tfoot",t.TD = "td",t.TH = "th",t.THEAD = "thead",t.TITLE = "title",t.TR = "tr",t.TRACK = "track",t.TT = "tt",t.U = "u",t.UL = "ul",t.SVG = "svg",t.VAR = "var",t.WBR = "wbr",t.XMP = "xmp"
            }(i = e.TAG_NAMES || (e.TAG_NAMES = {})), function (t) {
                t[t.UNKNOWN = 0] = "UNKNOWN", t[t.A = 1] = "A", t[t.ADDRESS = 2] = "ADDRESS", t[t.ANNOTATION_XML = 3] = "ANNOTATION_XML", t[t.APPLET = 4] = "APPLET", t[t.AREA = 5] = "AREA", t[t.ARTICLE = 6] = "ARTICLE", t[t.ASIDE = 7] = "ASIDE", t[t.B = 8] = "B", t[t.BASE = 9] = "BASE", t[t.BASEFONT = 10] = "BASEFONT", t[t.BGSOUND = 11] = "BGSOUND", t[t.BIG = 12] = "BIG", t[t.BLOCKQUOTE = 13] = "BLOCKQUOTE", t[t.BODY = 14] = "BODY", t[t.BR = 15] = "BR", t[t.BUTTON = 16] = "BUTTON", t[t.CAPTION = 17] = "CAPTION", t[t.CENTER = 18] = "CENTER", t[t.CODE = 19] = "CODE", t[t.COL = 20] = "COL", t[t.COLGROUP = 21] = "COLGROUP", t[t.DD = 22] = "DD", t[t.DESC = 23] = "DESC", t[t.DETAILS = 24] = "DETAILS", t[t.DIALOG = 25] = "DIALOG", t[t.DIR = 26] = "DIR", t[t.DIV = 27] = "DIV", t[t.DL = 28] = "DL", t[t.DT = 29] = "DT", t[t.EM = 30] = "EM", t[t.EMBED = 31] = "EMBED", t[t.FIELDSET = 32] = "FIELDSET", t[t.FIGCAPTION = 33] = "FIGCAPTION", t[t.FIGURE = 34] = "FIGURE", t[t.FONT = 35] = "FONT", t[t.FOOTER = 36] = "FOOTER", t[t.FOREIGN_OBJECT = 37] = "FOREIGN_OBJECT", t[t.FORM = 38] = "FORM", t[t.FRAME = 39] = "FRAME", t[t.FRAMESET = 40] = "FRAMESET", t[t.H1 = 41] = "H1", t[t.H2 = 42] = "H2", t[t.H3 = 43] = "H3", t[t.H4 = 44] = "H4", t[t.H5 = 45] = "H5", t[t.H6 = 46] = "H6", t[t.HEAD = 47] = "HEAD", t[t.HEADER = 48] = "HEADER", t[t.HGROUP = 49] = "HGROUP", t[t.HR = 50] = "HR", t[t.HTML = 51] = "HTML", t[t.I = 52] = "I", t[t.IMG = 53] = "IMG", t[t.IMAGE = 54] = "IMAGE", t[t.INPUT = 55] = "INPUT", t[t.IFRAME = 56] = "IFRAME", t[t.KEYGEN = 57] = "KEYGEN", t[t.LABEL = 58] = "LABEL", t[t.LI = 59] = "LI", t[t.LINK = 60] = "LINK", t[t.LISTING = 61] = "LISTING", t[t.MAIN = 62] = "MAIN", t[t.MALIGNMARK = 63] = "MALIGNMARK", t[t.MARQUEE = 64] = "MARQUEE", t[t.MATH = 65] = "MATH", t[t.MENU = 66] = "MENU", t[t.META = 67] = "META", t[t.MGLYPH = 68] = "MGLYPH", t[t.MI = 69] = "MI", t[t.MO = 70] = "MO", t[t.MN = 71] = "MN", t[t.MS = 72] = "MS", t[t.MTEXT = 73] = "MTEXT", t[t.NAV = 74] = "NAV", t[t.NOBR = 75] = "NOBR", t[t.NOFRAMES = 76] = "NOFRAMES", t[t.NOEMBED = 77] = "NOEMBED", t[t.NOSCRIPT = 78] = "NOSCRIPT", t[t.OBJECT = 79] = "OBJECT", t[t.OL = 80] = "OL", t[t.OPTGROUP = 81] = "OPTGROUP", t[t.OPTION = 82] = "OPTION", t[t.P = 83] = "P", t[t.PARAM = 84] = "PARAM", t[t.PLAINTEXT = 85] = "PLAINTEXT", t[t.PRE = 86] = "PRE", t[t.RB = 87] = "RB", t[t.RP = 88] = "RP", t[t.RT = 89] = "RT", t[t.RTC = 90] = "RTC", t[t.RUBY = 91] = "RUBY", t[t.S = 92] = "S", t[t.SCRIPT = 93] = "SCRIPT", t[t.SECTION = 94] = "SECTION", t[t.SELECT = 95] = "SELECT", t[t.SOURCE = 96] = "SOURCE", t[t.SMALL = 97] = "SMALL", t[t.SPAN = 98] = "SPAN", t[t.STRIKE = 99] = "STRIKE", t[t.STRONG = 100] = "STRONG",t[t.STYLE = 101] = "STYLE",t[t.SUB = 102] = "SUB",t[t.SUMMARY = 103] = "SUMMARY",t[t.SUP = 104] = "SUP",t[t.TABLE = 105] = "TABLE",t[t.TBODY = 106] = "TBODY",t[t.TEMPLATE = 107] = "TEMPLATE",t[t.TEXTAREA = 108] = "TEXTAREA",t[t.TFOOT = 109] = "TFOOT",t[t.TD = 110] = "TD",t[t.TH = 111] = "TH",t[t.THEAD = 112] = "THEAD",t[t.TITLE = 113] = "TITLE",t[t.TR = 114] = "TR",t[t.TRACK = 115] = "TRACK",t[t.TT = 116] = "TT",t[t.U = 117] = "U",t[t.UL = 118] = "UL",t[t.SVG = 119] = "SVG",t[t.VAR = 120] = "VAR",t[t.WBR = 121] = "WBR",t[t.XMP = 122] = "XMP"
            }(r = e.TAG_ID || (e.TAG_ID = {}));
            const o = new Map([[i.A, r.A], [i.ADDRESS, r.ADDRESS], [i.ANNOTATION_XML, r.ANNOTATION_XML], [i.APPLET, r.APPLET], [i.AREA, r.AREA], [i.ARTICLE, r.ARTICLE], [i.ASIDE, r.ASIDE], [i.B, r.B], [i.BASE, r.BASE], [i.BASEFONT, r.BASEFONT], [i.BGSOUND, r.BGSOUND], [i.BIG, r.BIG], [i.BLOCKQUOTE, r.BLOCKQUOTE], [i.BODY, r.BODY], [i.BR, r.BR], [i.BUTTON, r.BUTTON], [i.CAPTION, r.CAPTION], [i.CENTER, r.CENTER], [i.CODE, r.CODE], [i.COL, r.COL], [i.COLGROUP, r.COLGROUP], [i.DD, r.DD], [i.DESC, r.DESC], [i.DETAILS, r.DETAILS], [i.DIALOG, r.DIALOG], [i.DIR, r.DIR], [i.DIV, r.DIV], [i.DL, r.DL], [i.DT, r.DT], [i.EM, r.EM], [i.EMBED, r.EMBED], [i.FIELDSET, r.FIELDSET], [i.FIGCAPTION, r.FIGCAPTION], [i.FIGURE, r.FIGURE], [i.FONT, r.FONT], [i.FOOTER, r.FOOTER], [i.FOREIGN_OBJECT, r.FOREIGN_OBJECT], [i.FORM, r.FORM], [i.FRAME, r.FRAME], [i.FRAMESET, r.FRAMESET], [i.H1, r.H1], [i.H2, r.H2], [i.H3, r.H3], [i.H4, r.H4], [i.H5, r.H5], [i.H6, r.H6], [i.HEAD, r.HEAD], [i.HEADER, r.HEADER], [i.HGROUP, r.HGROUP], [i.HR, r.HR], [i.HTML, r.HTML], [i.I, r.I], [i.IMG, r.IMG], [i.IMAGE, r.IMAGE], [i.INPUT, r.INPUT], [i.IFRAME, r.IFRAME], [i.KEYGEN, r.KEYGEN], [i.LABEL, r.LABEL], [i.LI, r.LI], [i.LINK, r.LINK], [i.LISTING, r.LISTING], [i.MAIN, r.MAIN], [i.MALIGNMARK, r.MALIGNMARK], [i.MARQUEE, r.MARQUEE], [i.MATH, r.MATH], [i.MENU, r.MENU], [i.META, r.META], [i.MGLYPH, r.MGLYPH], [i.MI, r.MI], [i.MO, r.MO], [i.MN, r.MN], [i.MS, r.MS], [i.MTEXT, r.MTEXT], [i.NAV, r.NAV], [i.NOBR, r.NOBR], [i.NOFRAMES, r.NOFRAMES], [i.NOEMBED, r.NOEMBED], [i.NOSCRIPT, r.NOSCRIPT], [i.OBJECT, r.OBJECT], [i.OL, r.OL], [i.OPTGROUP, r.OPTGROUP], [i.OPTION, r.OPTION], [i.P, r.P], [i.PARAM, r.PARAM], [i.PLAINTEXT, r.PLAINTEXT], [i.PRE, r.PRE], [i.RB, r.RB], [i.RP, r.RP], [i.RT, r.RT], [i.RTC, r.RTC], [i.RUBY, r.RUBY], [i.S, r.S], [i.SCRIPT, r.SCRIPT], [i.SECTION, r.SECTION], [i.SELECT, r.SELECT], [i.SOURCE, r.SOURCE], [i.SMALL, r.SMALL], [i.SPAN, r.SPAN], [i.STRIKE, r.STRIKE], [i.STRONG, r.STRONG], [i.STYLE, r.STYLE], [i.SUB, r.SUB], [i.SUMMARY, r.SUMMARY], [i.SUP, r.SUP], [i.TABLE, r.TABLE], [i.TBODY, r.TBODY], [i.TEMPLATE, r.TEMPLATE], [i.TEXTAREA, r.TEXTAREA], [i.TFOOT, r.TFOOT], [i.TD, r.TD], [i.TH, r.TH], [i.THEAD, r.THEAD], [i.TITLE, r.TITLE], [i.TR, r.TR], [i.TRACK, r.TRACK], [i.TT, r.TT], [i.U, r.U], [i.UL, r.UL], [i.SVG, r.SVG], [i.VAR, r.VAR], [i.WBR, r.WBR], [i.XMP, r.XMP]]);
            e.getTagID = function (t) {
                var e;
                return null !== (e = o.get(t)) && void 0 !== e ? e : r.UNKNOWN
            };
            const a = r;
            e.SPECIAL_ELEMENTS = {
                [n.HTML]: new Set([a.ADDRESS, a.APPLET, a.AREA, a.ARTICLE, a.ASIDE, a.BASE, a.BASEFONT, a.BGSOUND, a.BLOCKQUOTE, a.BODY, a.BR, a.BUTTON, a.CAPTION, a.CENTER, a.COL, a.COLGROUP, a.DD, a.DETAILS, a.DIR, a.DIV, a.DL, a.DT, a.EMBED, a.FIELDSET, a.FIGCAPTION, a.FIGURE, a.FOOTER, a.FORM, a.FRAME, a.FRAMESET, a.H1, a.H2, a.H3, a.H4, a.H5, a.H6, a.HEAD, a.HEADER, a.HGROUP, a.HR, a.HTML, a.IFRAME, a.IMG, a.INPUT, a.LI, a.LINK, a.LISTING, a.MAIN, a.MARQUEE, a.MENU, a.META, a.NAV, a.NOEMBED, a.NOFRAMES, a.NOSCRIPT, a.OBJECT, a.OL, a.P, a.PARAM, a.PLAINTEXT, a.PRE, a.SCRIPT, a.SECTION, a.SELECT, a.SOURCE, a.STYLE, a.SUMMARY, a.TABLE, a.TBODY, a.TD, a.TEMPLATE, a.TEXTAREA, a.TFOOT, a.TH, a.THEAD, a.TITLE, a.TR, a.TRACK, a.UL, a.WBR, a.XMP]),
                [n.MATHML]: new Set([a.MI, a.MO, a.MN, a.MS, a.MTEXT, a.ANNOTATION_XML]),
                [n.SVG]: new Set([a.TITLE, a.FOREIGN_OBJECT, a.DESC]),
                [n.XLINK]: new Set,
                [n.XML]: new Set,
                [n.XMLNS]: new Set
            }, e.isNumberedHeader = function (t) {
                return t === a.H1 || t === a.H2 || t === a.H3 || t === a.H4 || t === a.H5 || t === a.H6
            };
            const s = new Set([i.STYLE, i.SCRIPT, i.XMP, i.IFRAME, i.NOEMBED, i.NOFRAMES, i.PLAINTEXT]);
            e.hasUnescapedText = function (t, e) {
                return s.has(t) || e && t === i.NOSCRIPT
            }
        }, 4961: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.getTokenAttr = e.TokenType = void 0, function (t) {
                t[t.CHARACTER = 0] = "CHARACTER", t[t.NULL_CHARACTER = 1] = "NULL_CHARACTER", t[t.WHITESPACE_CHARACTER = 2] = "WHITESPACE_CHARACTER", t[t.START_TAG = 3] = "START_TAG", t[t.END_TAG = 4] = "END_TAG", t[t.COMMENT = 5] = "COMMENT", t[t.DOCTYPE = 6] = "DOCTYPE", t[t.EOF = 7] = "EOF", t[t.HIBERNATION = 8] = "HIBERNATION"
            }(e.TokenType || (e.TokenType = {})), e.getTokenAttr = function (t, e) {
                for (let n = t.attrs.length - 1; n >= 0; n--) if (t.attrs[n].name === e) return t.attrs[n].value;
                return null
            }
        }, 6222: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.isUndefinedCodePoint = e.isControlCodePoint = e.getSurrogatePairCodePoint = e.isSurrogatePair = e.isSurrogate = e.SEQUENCES = e.CODE_POINTS = e.REPLACEMENT_CHARACTER = void 0;
            const n = new Set([65534, 65535, 131070, 131071, 196606, 196607, 262142, 262143, 327678, 327679, 393214, 393215, 458750, 458751, 524286, 524287, 589822, 589823, 655358, 655359, 720894, 720895, 786430, 786431, 851966, 851967, 917502, 917503, 983038, 983039, 1048574, 1048575, 1114110, 1114111]);
            e.REPLACEMENT_CHARACTER = "�", function (t) {
                t[t.EOF = -1] = "EOF", t[t.NULL = 0] = "NULL", t[t.TABULATION = 9] = "TABULATION", t[t.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", t[t.LINE_FEED = 10] = "LINE_FEED", t[t.FORM_FEED = 12] = "FORM_FEED", t[t.SPACE = 32] = "SPACE", t[t.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", t[t.QUOTATION_MARK = 34] = "QUOTATION_MARK", t[t.NUMBER_SIGN = 35] = "NUMBER_SIGN", t[t.AMPERSAND = 38] = "AMPERSAND", t[t.APOSTROPHE = 39] = "APOSTROPHE", t[t.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", t[t.SOLIDUS = 47] = "SOLIDUS", t[t.DIGIT_0 = 48] = "DIGIT_0", t[t.DIGIT_9 = 57] = "DIGIT_9", t[t.SEMICOLON = 59] = "SEMICOLON", t[t.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", t[t.EQUALS_SIGN = 61] = "EQUALS_SIGN", t[t.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", t[t.QUESTION_MARK = 63] = "QUESTION_MARK", t[t.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", t[t.LATIN_CAPITAL_F = 70] = "LATIN_CAPITAL_F", t[t.LATIN_CAPITAL_X = 88] = "LATIN_CAPITAL_X", t[t.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", t[t.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", t[t.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", t[t.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", t[t.LATIN_SMALL_F = 102] = "LATIN_SMALL_F", t[t.LATIN_SMALL_X = 120] = "LATIN_SMALL_X", t[t.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z", t[t.REPLACEMENT_CHARACTER = 65533] = "REPLACEMENT_CHARACTER"
            }(e.CODE_POINTS || (e.CODE_POINTS = {})), e.SEQUENCES = {
                DASH_DASH: "--",
                CDATA_START: "[CDATA[",
                DOCTYPE: "doctype",
                SCRIPT: "script",
                PUBLIC: "public",
                SYSTEM: "system"
            }, e.isSurrogate = function (t) {
                return t >= 55296 && t <= 57343
            }, e.isSurrogatePair = function (t) {
                return t >= 56320 && t <= 57343
            }, e.getSurrogatePairCodePoint = function (t, e) {
                return 1024 * (t - 55296) + 9216 + e
            }, e.isControlCodePoint = function (t) {
                return 32 !== t && 10 !== t && 13 !== t && 9 !== t && 12 !== t && t >= 1 && t <= 31 || t >= 127 && t <= 159
            }, e.isUndefinedCodePoint = function (t) {
                return t >= 64976 && t <= 65007 || n.has(t)
            }
        }, 2177: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.parseFragment = e.parse = e.TokenizerMode = e.Tokenizer = e.Token = e.html = e.foreignContent = e.ErrorCodes = e.serializeOuter = e.serialize = e.Parser = e.defaultTreeAdapter = void 0;
            const i = n(5789);
            var r = n(212);
            Object.defineProperty(e, "defaultTreeAdapter", {
                enumerable: !0, get: function () {
                    return r.defaultTreeAdapter
                }
            });
            var o = n(5789);
            Object.defineProperty(e, "Parser", {
                enumerable: !0, get: function () {
                    return o.Parser
                }
            });
            var a = n(4402);
            Object.defineProperty(e, "serialize", {
                enumerable: !0, get: function () {
                    return a.serialize
                }
            }), Object.defineProperty(e, "serializeOuter", {
                enumerable: !0, get: function () {
                    return a.serializeOuter
                }
            });
            var s = n(2799);
            Object.defineProperty(e, "ErrorCodes", {
                enumerable: !0, get: function () {
                    return s.ERR
                }
            }), e.foreignContent = n(6617), e.html = n(7618), e.Token = n(4961);
            var l = n(3675);
            Object.defineProperty(e, "Tokenizer", {
                enumerable: !0, get: function () {
                    return l.Tokenizer
                }
            }), Object.defineProperty(e, "TokenizerMode", {
                enumerable: !0, get: function () {
                    return l.TokenizerMode
                }
            }), e.parse = function (t, e) {
                return i.Parser.parse(t, e)
            }, e.parseFragment = function (t, e, n) {
                "string" == typeof t && (n = e, e = t, t = null);
                const r = i.Parser.getFragmentParser(t, n);
                return r.tokenizer.write(e, !0), r.getFragment()
            }
        }, 4265: (t, e) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.FormattingElementList = e.EntryType = void 0;
            var n;
            !function (t) {
                t[t.Marker = 0] = "Marker", t[t.Element = 1] = "Element"
            }(n = e.EntryType || (e.EntryType = {}));
            const i = {type: n.Marker};
            e.FormattingElementList = class {
                constructor(t) {
                    this.treeAdapter = t, this.entries = [], this.bookmark = null
                }

                _getNoahArkConditionCandidates(t, e) {
                    const i = [], r = e.length, o = this.treeAdapter.getTagName(t),
                        a = this.treeAdapter.getNamespaceURI(t);
                    for (let t = 0; t < this.entries.length; t++) {
                        const e = this.entries[t];
                        if (e.type === n.Marker) break;
                        const {element: s} = e;
                        if (this.treeAdapter.getTagName(s) === o && this.treeAdapter.getNamespaceURI(s) === a) {
                            const e = this.treeAdapter.getAttrList(s);
                            e.length === r && i.push({idx: t, attrs: e})
                        }
                    }
                    return i
                }

                _ensureNoahArkCondition(t) {
                    if (this.entries.length < 3) return;
                    const e = this.treeAdapter.getAttrList(t), n = this._getNoahArkConditionCandidates(t, e);
                    if (n.length < 3) return;
                    const i = new Map(e.map((t => [t.name, t.value])));
                    let r = 0;
                    for (let t = 0; t < n.length; t++) {
                        const e = n[t];
                        e.attrs.every((t => i.get(t.name) === t.value)) && (r += 1, r >= 3 && this.entries.splice(e.idx, 1))
                    }
                }

                insertMarker() {
                    this.entries.unshift(i)
                }

                pushElement(t, e) {
                    this._ensureNoahArkCondition(t), this.entries.unshift({type: n.Element, element: t, token: e})
                }

                insertElementAfterBookmark(t, e) {
                    const i = this.entries.indexOf(this.bookmark);
                    this.entries.splice(i, 0, {type: n.Element, element: t, token: e})
                }

                removeEntry(t) {
                    const e = this.entries.indexOf(t);
                    e >= 0 && this.entries.splice(e, 1)
                }

                clearToLastMarker() {
                    const t = this.entries.indexOf(i);
                    t >= 0 ? this.entries.splice(0, t + 1) : this.entries.length = 0
                }

                getElementEntryInScopeWithTagName(t) {
                    const e = this.entries.find((e => e.type === n.Marker || this.treeAdapter.getTagName(e.element) === t));
                    return e && e.type === n.Element ? e : null
                }

                getElementEntry(t) {
                    return this.entries.find((e => e.type === n.Element && e.element === t))
                }
            }
        }, 5789: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.Parser = void 0;
            const i = n(3675), r = n(59), o = n(4265), a = n(212), s = n(3067), l = n(6617), u = n(2799), c = n(6222),
                h = n(7618), d = n(4961), p = "hidden", f = 8, g = 3;
            var m;
            !function (t) {
                t[t.INITIAL = 0] = "INITIAL", t[t.BEFORE_HTML = 1] = "BEFORE_HTML", t[t.BEFORE_HEAD = 2] = "BEFORE_HEAD", t[t.IN_HEAD = 3] = "IN_HEAD", t[t.IN_HEAD_NO_SCRIPT = 4] = "IN_HEAD_NO_SCRIPT", t[t.AFTER_HEAD = 5] = "AFTER_HEAD", t[t.IN_BODY = 6] = "IN_BODY", t[t.TEXT = 7] = "TEXT", t[t.IN_TABLE = 8] = "IN_TABLE", t[t.IN_TABLE_TEXT = 9] = "IN_TABLE_TEXT", t[t.IN_CAPTION = 10] = "IN_CAPTION", t[t.IN_COLUMN_GROUP = 11] = "IN_COLUMN_GROUP", t[t.IN_TABLE_BODY = 12] = "IN_TABLE_BODY", t[t.IN_ROW = 13] = "IN_ROW", t[t.IN_CELL = 14] = "IN_CELL", t[t.IN_SELECT = 15] = "IN_SELECT", t[t.IN_SELECT_IN_TABLE = 16] = "IN_SELECT_IN_TABLE", t[t.IN_TEMPLATE = 17] = "IN_TEMPLATE", t[t.AFTER_BODY = 18] = "AFTER_BODY", t[t.IN_FRAMESET = 19] = "IN_FRAMESET", t[t.AFTER_FRAMESET = 20] = "AFTER_FRAMESET", t[t.AFTER_AFTER_BODY = 21] = "AFTER_AFTER_BODY", t[t.AFTER_AFTER_FRAMESET = 22] = "AFTER_AFTER_FRAMESET"
            }(m || (m = {}));
            const y = {startLine: -1, startCol: -1, startOffset: -1, endLine: -1, endCol: -1, endOffset: -1},
                v = new Set([h.TAG_ID.TABLE, h.TAG_ID.TBODY, h.TAG_ID.TFOOT, h.TAG_ID.THEAD, h.TAG_ID.TR]), _ = {
                    scriptingEnabled: !0,
                    sourceCodeLocationInfo: !1,
                    treeAdapter: a.defaultTreeAdapter,
                    onParseError: null
                };

            function T(t, e) {
                let n = t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);
                return n ? t.openElements.contains(n.element) ? t.openElements.hasInScope(e.tagID) || (n = null) : (t.activeFormattingElements.removeEntry(n), n = null) : Y(t, e), n
            }

            function x(t, e) {
                let n = null, i = t.openElements.stackTop;
                for (; i >= 0; i--) {
                    const r = t.openElements.items[i];
                    if (r === e.element) break;
                    t._isSpecialElement(r, t.openElements.tagIDs[i]) && (n = r)
                }
                return n || (t.openElements.shortenToLength(i < 0 ? 0 : i), t.activeFormattingElements.removeEntry(e)), n
            }

            function S(t, e, n) {
                let i = e, r = t.openElements.getCommonAncestor(e);
                for (let o = 0, a = r; a !== n; o++, a = r) {
                    r = t.openElements.getCommonAncestor(a);
                    const n = t.activeFormattingElements.getElementEntry(a), s = n && o >= g;
                    !n || s ? (s && t.activeFormattingElements.removeEntry(n), t.openElements.remove(a)) : (a = A(t, n), i === e && (t.activeFormattingElements.bookmark = n), t.treeAdapter.detachNode(i), t.treeAdapter.appendChild(a, i), i = a)
                }
                return i
            }

            function A(t, e) {
                const n = t.treeAdapter.getNamespaceURI(e.element),
                    i = t.treeAdapter.createElement(e.token.tagName, n, e.token.attrs);
                return t.openElements.replace(e.element, i), e.element = i, i
            }

            function b(t, e, n) {
                const i = t.treeAdapter.getTagName(e), r = (0, h.getTagID)(i);
                if (t._isElementCausesFosterParenting(r)) t._fosterParentElement(n); else {
                    const i = t.treeAdapter.getNamespaceURI(e);
                    r === h.TAG_ID.TEMPLATE && i === h.NS.HTML && (e = t.treeAdapter.getTemplateContent(e)), t.treeAdapter.appendChild(e, n)
                }
            }

            function I(t, e, n) {
                const i = t.treeAdapter.getNamespaceURI(n.element), {token: r} = n,
                    o = t.treeAdapter.createElement(r.tagName, i, r.attrs);
                t._adoptNodes(e, o), t.treeAdapter.appendChild(e, o), t.activeFormattingElements.insertElementAfterBookmark(o, r), t.activeFormattingElements.removeEntry(n), t.openElements.remove(n.element), t.openElements.insertAfter(e, o, r.tagID)
            }

            function E(t, e) {
                for (let n = 0; n < f; n++) {
                    const n = T(t, e);
                    if (!n) break;
                    const i = x(t, n);
                    if (!i) break;
                    t.activeFormattingElements.bookmark = n;
                    const r = S(t, i, n.element), o = t.openElements.getCommonAncestor(n.element);
                    t.treeAdapter.detachNode(r), o && b(t, o, r), I(t, i, n)
                }
            }

            function C(t, e) {
                t._appendCommentNode(e, t.openElements.currentTmplContentOrNode)
            }

            function D(t, e) {
                if (t.stopped = !0, e.location) {
                    const n = t.fragmentContext ? 0 : 2;
                    for (let i = t.openElements.stackTop; i >= n; i--) t._setEndLocation(t.openElements.items[i], e);
                    if (!t.fragmentContext && t.openElements.stackTop >= 0) {
                        const n = t.openElements.items[0], i = t.treeAdapter.getNodeSourceCodeLocation(n);
                        if (i && !i.endTag && (t._setEndLocation(n, e), t.openElements.stackTop >= 1)) {
                            const n = t.openElements.items[1], i = t.treeAdapter.getNodeSourceCodeLocation(n);
                            i && !i.endTag && t._setEndLocation(n, e)
                        }
                    }
                }
            }

            function w(t, e) {
                t._err(e, u.ERR.missingDoctype, !0), t.treeAdapter.setDocumentMode(t.document, h.DOCUMENT_MODE.QUIRKS), t.insertionMode = m.BEFORE_HTML, t._processToken(e)
            }

            function M(t, e) {
                t._insertFakeRootElement(), t.insertionMode = m.BEFORE_HEAD, t._processToken(e)
            }

            function N(t, e) {
                t._insertFakeElement(h.TAG_NAMES.HEAD, h.TAG_ID.HEAD), t.headElement = t.openElements.current, t.insertionMode = m.IN_HEAD, t._processToken(e)
            }

            function O(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.HTML:
                        W(t, e);
                        break;
                    case h.TAG_ID.BASE:
                    case h.TAG_ID.BASEFONT:
                    case h.TAG_ID.BGSOUND:
                    case h.TAG_ID.LINK:
                    case h.TAG_ID.META:
                        t._appendElement(e, h.NS.HTML), e.ackSelfClosing = !0;
                        break;
                    case h.TAG_ID.TITLE:
                        t._switchToTextParsing(e, i.TokenizerMode.RCDATA);
                        break;
                    case h.TAG_ID.NOSCRIPT:
                        t.options.scriptingEnabled ? t._switchToTextParsing(e, i.TokenizerMode.RAWTEXT) : (t._insertElement(e, h.NS.HTML), t.insertionMode = m.IN_HEAD_NO_SCRIPT);
                        break;
                    case h.TAG_ID.NOFRAMES:
                    case h.TAG_ID.STYLE:
                        t._switchToTextParsing(e, i.TokenizerMode.RAWTEXT);
                        break;
                    case h.TAG_ID.SCRIPT:
                        t._switchToTextParsing(e, i.TokenizerMode.SCRIPT_DATA);
                        break;
                    case h.TAG_ID.TEMPLATE:
                        t._insertTemplate(e), t.activeFormattingElements.insertMarker(), t.framesetOk = !1, t.insertionMode = m.IN_TEMPLATE, t.tmplInsertionModeStack.unshift(m.IN_TEMPLATE);
                        break;
                    case h.TAG_ID.HEAD:
                        t._err(e, u.ERR.misplacedStartTagForHeadElement);
                        break;
                    default:
                        R(t, e)
                }
            }

            function L(t, e) {
                t.openElements.tmplCount > 0 ? (t.openElements.generateImpliedEndTagsThoroughly(), t.openElements.currentTagId !== h.TAG_ID.TEMPLATE && t._err(e, u.ERR.closingOfElementWithOpenChildElements), t.openElements.popUntilTagNamePopped(h.TAG_ID.TEMPLATE), t.activeFormattingElements.clearToLastMarker(), t.tmplInsertionModeStack.shift(), t._resetInsertionMode()) : t._err(e, u.ERR.endTagWithoutMatchingOpenElement)
            }

            function R(t, e) {
                t.openElements.pop(), t.insertionMode = m.AFTER_HEAD, t._processToken(e)
            }

            function k(t, e) {
                const n = e.type === d.TokenType.EOF ? u.ERR.openElementsLeftAfterEof : u.ERR.disallowedContentInNoscriptInHead;
                t._err(e, n), t.openElements.pop(), t.insertionMode = m.IN_HEAD, t._processToken(e)
            }

            function P(t, e) {
                t._insertFakeElement(h.TAG_NAMES.BODY, h.TAG_ID.BODY), t.insertionMode = m.IN_BODY, G(t, e)
            }

            function G(t, e) {
                switch (e.type) {
                    case d.TokenType.CHARACTER:
                        F(t, e);
                        break;
                    case d.TokenType.WHITESPACE_CHARACTER:
                        B(t, e);
                        break;
                    case d.TokenType.COMMENT:
                        C(t, e);
                        break;
                    case d.TokenType.START_TAG:
                        W(t, e);
                        break;
                    case d.TokenType.END_TAG:
                        q(t, e);
                        break;
                    case d.TokenType.EOF:
                        j(t, e)
                }
            }

            function B(t, e) {
                t._reconstructActiveFormattingElements(), t._insertCharacters(e)
            }

            function F(t, e) {
                t._reconstructActiveFormattingElements(), t._insertCharacters(e), t.framesetOk = !1
            }

            function H(t, e) {
                t._reconstructActiveFormattingElements(), t._appendElement(e, h.NS.HTML), t.framesetOk = !1, e.ackSelfClosing = !0
            }

            function U(t) {
                const e = (0, d.getTokenAttr)(t, h.ATTRS.TYPE);
                return null != e && e.toLowerCase() === p
            }

            function V(t, e) {
                t._switchToTextParsing(e, i.TokenizerMode.RAWTEXT)
            }

            function z(t, e) {
                t._reconstructActiveFormattingElements(), t._insertElement(e, h.NS.HTML)
            }

            function W(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.I:
                    case h.TAG_ID.S:
                    case h.TAG_ID.B:
                    case h.TAG_ID.U:
                    case h.TAG_ID.EM:
                    case h.TAG_ID.TT:
                    case h.TAG_ID.BIG:
                    case h.TAG_ID.CODE:
                    case h.TAG_ID.FONT:
                    case h.TAG_ID.SMALL:
                    case h.TAG_ID.STRIKE:
                    case h.TAG_ID.STRONG:
                        !function (t, e) {
                            t._reconstructActiveFormattingElements(), t._insertElement(e, h.NS.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e)
                        }(t, e);
                        break;
                    case h.TAG_ID.A:
                        !function (t, e) {
                            const n = t.activeFormattingElements.getElementEntryInScopeWithTagName(h.TAG_NAMES.A);
                            n && (E(t, e), t.openElements.remove(n.element), t.activeFormattingElements.removeEntry(n)), t._reconstructActiveFormattingElements(), t._insertElement(e, h.NS.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e)
                        }(t, e);
                        break;
                    case h.TAG_ID.H1:
                    case h.TAG_ID.H2:
                    case h.TAG_ID.H3:
                    case h.TAG_ID.H4:
                    case h.TAG_ID.H5:
                    case h.TAG_ID.H6:
                        !function (t, e) {
                            t.openElements.hasInButtonScope(h.TAG_ID.P) && t._closePElement(), (0, h.isNumberedHeader)(t.openElements.currentTagId) && t.openElements.pop(), t._insertElement(e, h.NS.HTML)
                        }(t, e);
                        break;
                    case h.TAG_ID.P:
                    case h.TAG_ID.DL:
                    case h.TAG_ID.OL:
                    case h.TAG_ID.UL:
                    case h.TAG_ID.DIV:
                    case h.TAG_ID.DIR:
                    case h.TAG_ID.NAV:
                    case h.TAG_ID.MAIN:
                    case h.TAG_ID.MENU:
                    case h.TAG_ID.ASIDE:
                    case h.TAG_ID.CENTER:
                    case h.TAG_ID.FIGURE:
                    case h.TAG_ID.FOOTER:
                    case h.TAG_ID.HEADER:
                    case h.TAG_ID.HGROUP:
                    case h.TAG_ID.DIALOG:
                    case h.TAG_ID.DETAILS:
                    case h.TAG_ID.ADDRESS:
                    case h.TAG_ID.ARTICLE:
                    case h.TAG_ID.SECTION:
                    case h.TAG_ID.SUMMARY:
                    case h.TAG_ID.FIELDSET:
                    case h.TAG_ID.BLOCKQUOTE:
                    case h.TAG_ID.FIGCAPTION:
                        !function (t, e) {
                            t.openElements.hasInButtonScope(h.TAG_ID.P) && t._closePElement(), t._insertElement(e, h.NS.HTML)
                        }(t, e);
                        break;
                    case h.TAG_ID.LI:
                    case h.TAG_ID.DD:
                    case h.TAG_ID.DT:
                        !function (t, e) {
                            t.framesetOk = !1;
                            const n = e.tagID;
                            for (let e = t.openElements.stackTop; e >= 0; e--) {
                                const i = t.openElements.tagIDs[e];
                                if (n === h.TAG_ID.LI && i === h.TAG_ID.LI || (n === h.TAG_ID.DD || n === h.TAG_ID.DT) && (i === h.TAG_ID.DD || i === h.TAG_ID.DT)) {
                                    t.openElements.generateImpliedEndTagsWithExclusion(i), t.openElements.popUntilTagNamePopped(i);
                                    break
                                }
                                if (i !== h.TAG_ID.ADDRESS && i !== h.TAG_ID.DIV && i !== h.TAG_ID.P && t._isSpecialElement(t.openElements.items[e], i)) break
                            }
                            t.openElements.hasInButtonScope(h.TAG_ID.P) && t._closePElement(), t._insertElement(e, h.NS.HTML)
                        }(t, e);
                        break;
                    case h.TAG_ID.BR:
                    case h.TAG_ID.IMG:
                    case h.TAG_ID.WBR:
                    case h.TAG_ID.AREA:
                    case h.TAG_ID.EMBED:
                    case h.TAG_ID.KEYGEN:
                        H(t, e);
                        break;
                    case h.TAG_ID.HR:
                        !function (t, e) {
                            t.openElements.hasInButtonScope(h.TAG_ID.P) && t._closePElement(), t._appendElement(e, h.NS.HTML), t.framesetOk = !1, e.ackSelfClosing = !0
                        }(t, e);
                        break;
                    case h.TAG_ID.RB:
                    case h.TAG_ID.RTC:
                        !function (t, e) {
                            t.openElements.hasInScope(h.TAG_ID.RUBY) && t.openElements.generateImpliedEndTags(), t._insertElement(e, h.NS.HTML)
                        }(t, e);
                        break;
                    case h.TAG_ID.RT:
                    case h.TAG_ID.RP:
                        !function (t, e) {
                            t.openElements.hasInScope(h.TAG_ID.RUBY) && t.openElements.generateImpliedEndTagsWithExclusion(h.TAG_ID.RTC), t._insertElement(e, h.NS.HTML)
                        }(t, e);
                        break;
                    case h.TAG_ID.PRE:
                    case h.TAG_ID.LISTING:
                        !function (t, e) {
                            t.openElements.hasInButtonScope(h.TAG_ID.P) && t._closePElement(), t._insertElement(e, h.NS.HTML), t.skipNextNewLine = !0, t.framesetOk = !1
                        }(t, e);
                        break;
                    case h.TAG_ID.XMP:
                        !function (t, e) {
                            t.openElements.hasInButtonScope(h.TAG_ID.P) && t._closePElement(), t._reconstructActiveFormattingElements(), t.framesetOk = !1, t._switchToTextParsing(e, i.TokenizerMode.RAWTEXT)
                        }(t, e);
                        break;
                    case h.TAG_ID.SVG:
                        !function (t, e) {
                            t._reconstructActiveFormattingElements(), l.adjustTokenSVGAttrs(e), l.adjustTokenXMLAttrs(e), e.selfClosing ? t._appendElement(e, h.NS.SVG) : t._insertElement(e, h.NS.SVG), e.ackSelfClosing = !0
                        }(t, e);
                        break;
                    case h.TAG_ID.HTML:
                        !function (t, e) {
                            0 === t.openElements.tmplCount && t.treeAdapter.adoptAttributes(t.openElements.items[0], e.attrs)
                        }(t, e);
                        break;
                    case h.TAG_ID.BASE:
                    case h.TAG_ID.LINK:
                    case h.TAG_ID.META:
                    case h.TAG_ID.STYLE:
                    case h.TAG_ID.TITLE:
                    case h.TAG_ID.SCRIPT:
                    case h.TAG_ID.BGSOUND:
                    case h.TAG_ID.BASEFONT:
                    case h.TAG_ID.TEMPLATE:
                        O(t, e);
                        break;
                    case h.TAG_ID.BODY:
                        !function (t, e) {
                            const n = t.openElements.tryPeekProperlyNestedBodyElement();
                            n && 0 === t.openElements.tmplCount && (t.framesetOk = !1, t.treeAdapter.adoptAttributes(n, e.attrs))
                        }(t, e);
                        break;
                    case h.TAG_ID.FORM:
                        !function (t, e) {
                            const n = t.openElements.tmplCount > 0;
                            t.formElement && !n || (t.openElements.hasInButtonScope(h.TAG_ID.P) && t._closePElement(), t._insertElement(e, h.NS.HTML), n || (t.formElement = t.openElements.current))
                        }(t, e);
                        break;
                    case h.TAG_ID.NOBR:
                        !function (t, e) {
                            t._reconstructActiveFormattingElements(), t.openElements.hasInScope(h.TAG_ID.NOBR) && (E(t, e), t._reconstructActiveFormattingElements()), t._insertElement(e, h.NS.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e)
                        }(t, e);
                        break;
                    case h.TAG_ID.MATH:
                        !function (t, e) {
                            t._reconstructActiveFormattingElements(), l.adjustTokenMathMLAttrs(e), l.adjustTokenXMLAttrs(e), e.selfClosing ? t._appendElement(e, h.NS.MATHML) : t._insertElement(e, h.NS.MATHML), e.ackSelfClosing = !0
                        }(t, e);
                        break;
                    case h.TAG_ID.TABLE:
                        !function (t, e) {
                            t.treeAdapter.getDocumentMode(t.document) !== h.DOCUMENT_MODE.QUIRKS && t.openElements.hasInButtonScope(h.TAG_ID.P) && t._closePElement(), t._insertElement(e, h.NS.HTML), t.framesetOk = !1, t.insertionMode = m.IN_TABLE
                        }(t, e);
                        break;
                    case h.TAG_ID.INPUT:
                        !function (t, e) {
                            t._reconstructActiveFormattingElements(), t._appendElement(e, h.NS.HTML), U(e) || (t.framesetOk = !1), e.ackSelfClosing = !0
                        }(t, e);
                        break;
                    case h.TAG_ID.PARAM:
                    case h.TAG_ID.TRACK:
                    case h.TAG_ID.SOURCE:
                        !function (t, e) {
                            t._appendElement(e, h.NS.HTML), e.ackSelfClosing = !0
                        }(t, e);
                        break;
                    case h.TAG_ID.IMAGE:
                        !function (t, e) {
                            e.tagName = h.TAG_NAMES.IMG, e.tagID = h.TAG_ID.IMG, H(t, e)
                        }(t, e);
                        break;
                    case h.TAG_ID.BUTTON:
                        !function (t, e) {
                            t.openElements.hasInScope(h.TAG_ID.BUTTON) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(h.TAG_ID.BUTTON)), t._reconstructActiveFormattingElements(), t._insertElement(e, h.NS.HTML), t.framesetOk = !1
                        }(t, e);
                        break;
                    case h.TAG_ID.APPLET:
                    case h.TAG_ID.OBJECT:
                    case h.TAG_ID.MARQUEE:
                        !function (t, e) {
                            t._reconstructActiveFormattingElements(), t._insertElement(e, h.NS.HTML), t.activeFormattingElements.insertMarker(), t.framesetOk = !1
                        }(t, e);
                        break;
                    case h.TAG_ID.IFRAME:
                        !function (t, e) {
                            t.framesetOk = !1, t._switchToTextParsing(e, i.TokenizerMode.RAWTEXT)
                        }(t, e);
                        break;
                    case h.TAG_ID.SELECT:
                        !function (t, e) {
                            t._reconstructActiveFormattingElements(), t._insertElement(e, h.NS.HTML), t.framesetOk = !1, t.insertionMode = t.insertionMode === m.IN_TABLE || t.insertionMode === m.IN_CAPTION || t.insertionMode === m.IN_TABLE_BODY || t.insertionMode === m.IN_ROW || t.insertionMode === m.IN_CELL ? m.IN_SELECT_IN_TABLE : m.IN_SELECT
                        }(t, e);
                        break;
                    case h.TAG_ID.OPTION:
                    case h.TAG_ID.OPTGROUP:
                        !function (t, e) {
                            t.openElements.currentTagId === h.TAG_ID.OPTION && t.openElements.pop(), t._reconstructActiveFormattingElements(), t._insertElement(e, h.NS.HTML)
                        }(t, e);
                        break;
                    case h.TAG_ID.NOEMBED:
                        V(t, e);
                        break;
                    case h.TAG_ID.FRAMESET:
                        !function (t, e) {
                            const n = t.openElements.tryPeekProperlyNestedBodyElement();
                            t.framesetOk && n && (t.treeAdapter.detachNode(n), t.openElements.popAllUpToHtmlElement(), t._insertElement(e, h.NS.HTML), t.insertionMode = m.IN_FRAMESET)
                        }(t, e);
                        break;
                    case h.TAG_ID.TEXTAREA:
                        !function (t, e) {
                            t._insertElement(e, h.NS.HTML), t.skipNextNewLine = !0, t.tokenizer.state = i.TokenizerMode.RCDATA, t.originalInsertionMode = t.insertionMode, t.framesetOk = !1, t.insertionMode = m.TEXT
                        }(t, e);
                        break;
                    case h.TAG_ID.NOSCRIPT:
                        t.options.scriptingEnabled ? V(t, e) : z(t, e);
                        break;
                    case h.TAG_ID.PLAINTEXT:
                        !function (t, e) {
                            t.openElements.hasInButtonScope(h.TAG_ID.P) && t._closePElement(), t._insertElement(e, h.NS.HTML), t.tokenizer.state = i.TokenizerMode.PLAINTEXT
                        }(t, e);
                        break;
                    case h.TAG_ID.COL:
                    case h.TAG_ID.TH:
                    case h.TAG_ID.TD:
                    case h.TAG_ID.TR:
                    case h.TAG_ID.HEAD:
                    case h.TAG_ID.FRAME:
                    case h.TAG_ID.TBODY:
                    case h.TAG_ID.TFOOT:
                    case h.TAG_ID.THEAD:
                    case h.TAG_ID.CAPTION:
                    case h.TAG_ID.COLGROUP:
                        break;
                    default:
                        z(t, e)
                }
            }

            function Y(t, e) {
                const n = e.tagName, i = e.tagID;
                for (let e = t.openElements.stackTop; e > 0; e--) {
                    const r = t.openElements.items[e], o = t.openElements.tagIDs[e];
                    if (i === o && (i !== h.TAG_ID.UNKNOWN || t.treeAdapter.getTagName(r) === n)) {
                        t.openElements.generateImpliedEndTagsWithExclusion(i), t.openElements.stackTop >= e && t.openElements.shortenToLength(e);
                        break
                    }
                    if (t._isSpecialElement(r, o)) break
                }
            }

            function q(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.A:
                    case h.TAG_ID.B:
                    case h.TAG_ID.I:
                    case h.TAG_ID.S:
                    case h.TAG_ID.U:
                    case h.TAG_ID.EM:
                    case h.TAG_ID.TT:
                    case h.TAG_ID.BIG:
                    case h.TAG_ID.CODE:
                    case h.TAG_ID.FONT:
                    case h.TAG_ID.NOBR:
                    case h.TAG_ID.SMALL:
                    case h.TAG_ID.STRIKE:
                    case h.TAG_ID.STRONG:
                        E(t, e);
                        break;
                    case h.TAG_ID.P:
                        !function (t) {
                            t.openElements.hasInButtonScope(h.TAG_ID.P) || t._insertFakeElement(h.TAG_NAMES.P, h.TAG_ID.P), t._closePElement()
                        }(t);
                        break;
                    case h.TAG_ID.DL:
                    case h.TAG_ID.UL:
                    case h.TAG_ID.OL:
                    case h.TAG_ID.DIR:
                    case h.TAG_ID.DIV:
                    case h.TAG_ID.NAV:
                    case h.TAG_ID.PRE:
                    case h.TAG_ID.MAIN:
                    case h.TAG_ID.MENU:
                    case h.TAG_ID.ASIDE:
                    case h.TAG_ID.BUTTON:
                    case h.TAG_ID.CENTER:
                    case h.TAG_ID.FIGURE:
                    case h.TAG_ID.FOOTER:
                    case h.TAG_ID.HEADER:
                    case h.TAG_ID.HGROUP:
                    case h.TAG_ID.DIALOG:
                    case h.TAG_ID.ADDRESS:
                    case h.TAG_ID.ARTICLE:
                    case h.TAG_ID.DETAILS:
                    case h.TAG_ID.SECTION:
                    case h.TAG_ID.SUMMARY:
                    case h.TAG_ID.LISTING:
                    case h.TAG_ID.FIELDSET:
                    case h.TAG_ID.BLOCKQUOTE:
                    case h.TAG_ID.FIGCAPTION:
                        !function (t, e) {
                            const n = e.tagID;
                            t.openElements.hasInScope(n) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(n))
                        }(t, e);
                        break;
                    case h.TAG_ID.LI:
                        !function (t) {
                            t.openElements.hasInListItemScope(h.TAG_ID.LI) && (t.openElements.generateImpliedEndTagsWithExclusion(h.TAG_ID.LI), t.openElements.popUntilTagNamePopped(h.TAG_ID.LI))
                        }(t);
                        break;
                    case h.TAG_ID.DD:
                    case h.TAG_ID.DT:
                        !function (t, e) {
                            const n = e.tagID;
                            t.openElements.hasInScope(n) && (t.openElements.generateImpliedEndTagsWithExclusion(n), t.openElements.popUntilTagNamePopped(n))
                        }(t, e);
                        break;
                    case h.TAG_ID.H1:
                    case h.TAG_ID.H2:
                    case h.TAG_ID.H3:
                    case h.TAG_ID.H4:
                    case h.TAG_ID.H5:
                    case h.TAG_ID.H6:
                        !function (t) {
                            t.openElements.hasNumberedHeaderInScope() && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilNumberedHeaderPopped())
                        }(t);
                        break;
                    case h.TAG_ID.BR:
                        !function (t) {
                            t._reconstructActiveFormattingElements(), t._insertFakeElement(h.TAG_NAMES.BR, h.TAG_ID.BR), t.openElements.pop(), t.framesetOk = !1
                        }(t);
                        break;
                    case h.TAG_ID.BODY:
                        !function (t, e) {
                            if (t.openElements.hasInScope(h.TAG_ID.BODY) && (t.insertionMode = m.AFTER_BODY, t.options.sourceCodeLocationInfo)) {
                                const n = t.openElements.tryPeekProperlyNestedBodyElement();
                                n && t._setEndLocation(n, e)
                            }
                        }(t, e);
                        break;
                    case h.TAG_ID.HTML:
                        !function (t, e) {
                            t.openElements.hasInScope(h.TAG_ID.BODY) && (t.insertionMode = m.AFTER_BODY, ht(t, e))
                        }(t, e);
                        break;
                    case h.TAG_ID.FORM:
                        !function (t) {
                            const e = t.openElements.tmplCount > 0, {formElement: n} = t;
                            e || (t.formElement = null), (n || e) && t.openElements.hasInScope(h.TAG_ID.FORM) && (t.openElements.generateImpliedEndTags(), e ? t.openElements.popUntilTagNamePopped(h.TAG_ID.FORM) : n && t.openElements.remove(n))
                        }(t);
                        break;
                    case h.TAG_ID.APPLET:
                    case h.TAG_ID.OBJECT:
                    case h.TAG_ID.MARQUEE:
                        !function (t, e) {
                            const n = e.tagID;
                            t.openElements.hasInScope(n) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(n), t.activeFormattingElements.clearToLastMarker())
                        }(t, e);
                        break;
                    case h.TAG_ID.TEMPLATE:
                        L(t, e);
                        break;
                    default:
                        Y(t, e)
                }
            }

            function j(t, e) {
                t.tmplInsertionModeStack.length > 0 ? ct(t, e) : D(t, e)
            }

            function X(t, e) {
                if (v.has(t.openElements.currentTagId)) switch (t.pendingCharacterTokens.length = 0, t.hasNonWhitespacePendingCharacterToken = !1, t.originalInsertionMode = t.insertionMode, t.insertionMode = m.IN_TABLE_TEXT, e.type) {
                    case d.TokenType.CHARACTER:
                        J(t, e);
                        break;
                    case d.TokenType.WHITESPACE_CHARACTER:
                        $(t, e)
                } else Q(t, e)
            }

            function Z(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.TD:
                    case h.TAG_ID.TH:
                    case h.TAG_ID.TR:
                        !function (t, e) {
                            t.openElements.clearBackToTableContext(), t._insertFakeElement(h.TAG_NAMES.TBODY, h.TAG_ID.TBODY), t.insertionMode = m.IN_TABLE_BODY, rt(t, e)
                        }(t, e);
                        break;
                    case h.TAG_ID.STYLE:
                    case h.TAG_ID.SCRIPT:
                    case h.TAG_ID.TEMPLATE:
                        O(t, e);
                        break;
                    case h.TAG_ID.COL:
                        !function (t, e) {
                            t.openElements.clearBackToTableContext(), t._insertFakeElement(h.TAG_NAMES.COLGROUP, h.TAG_ID.COLGROUP), t.insertionMode = m.IN_COLUMN_GROUP, nt(t, e)
                        }(t, e);
                        break;
                    case h.TAG_ID.FORM:
                        !function (t, e) {
                            t.formElement || 0 !== t.openElements.tmplCount || (t._insertElement(e, h.NS.HTML), t.formElement = t.openElements.current, t.openElements.pop())
                        }(t, e);
                        break;
                    case h.TAG_ID.TABLE:
                        !function (t, e) {
                            t.openElements.hasInTableScope(h.TAG_ID.TABLE) && (t.openElements.popUntilTagNamePopped(h.TAG_ID.TABLE), t._resetInsertionMode(), t._processStartTag(e))
                        }(t, e);
                        break;
                    case h.TAG_ID.TBODY:
                    case h.TAG_ID.TFOOT:
                    case h.TAG_ID.THEAD:
                        !function (t, e) {
                            t.openElements.clearBackToTableContext(), t._insertElement(e, h.NS.HTML), t.insertionMode = m.IN_TABLE_BODY
                        }(t, e);
                        break;
                    case h.TAG_ID.INPUT:
                        !function (t, e) {
                            U(e) ? t._appendElement(e, h.NS.HTML) : Q(t, e), e.ackSelfClosing = !0
                        }(t, e);
                        break;
                    case h.TAG_ID.CAPTION:
                        !function (t, e) {
                            t.openElements.clearBackToTableContext(), t.activeFormattingElements.insertMarker(), t._insertElement(e, h.NS.HTML), t.insertionMode = m.IN_CAPTION
                        }(t, e);
                        break;
                    case h.TAG_ID.COLGROUP:
                        !function (t, e) {
                            t.openElements.clearBackToTableContext(), t._insertElement(e, h.NS.HTML), t.insertionMode = m.IN_COLUMN_GROUP
                        }(t, e);
                        break;
                    default:
                        Q(t, e)
                }
            }

            function K(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.TABLE:
                        t.openElements.hasInTableScope(h.TAG_ID.TABLE) && (t.openElements.popUntilTagNamePopped(h.TAG_ID.TABLE), t._resetInsertionMode());
                        break;
                    case h.TAG_ID.TEMPLATE:
                        L(t, e);
                        break;
                    case h.TAG_ID.BODY:
                    case h.TAG_ID.CAPTION:
                    case h.TAG_ID.COL:
                    case h.TAG_ID.COLGROUP:
                    case h.TAG_ID.HTML:
                    case h.TAG_ID.TBODY:
                    case h.TAG_ID.TD:
                    case h.TAG_ID.TFOOT:
                    case h.TAG_ID.TH:
                    case h.TAG_ID.THEAD:
                    case h.TAG_ID.TR:
                        break;
                    default:
                        Q(t, e)
                }
            }

            function Q(t, e) {
                const n = t.fosterParentingEnabled;
                t.fosterParentingEnabled = !0, G(t, e), t.fosterParentingEnabled = n
            }

            function $(t, e) {
                t.pendingCharacterTokens.push(e)
            }

            function J(t, e) {
                t.pendingCharacterTokens.push(e), t.hasNonWhitespacePendingCharacterToken = !0
            }

            function tt(t, e) {
                let n = 0;
                if (t.hasNonWhitespacePendingCharacterToken) for (; n < t.pendingCharacterTokens.length; n++) Q(t, t.pendingCharacterTokens[n]); else for (; n < t.pendingCharacterTokens.length; n++) t._insertCharacters(t.pendingCharacterTokens[n]);
                t.insertionMode = t.originalInsertionMode, t._processToken(e)
            }

            e.Parser = class {
                constructor(t, e, n = null, a = null) {
                    this.fragmentContext = n, this.scriptHandler = a, this.currentToken = null, this.stopped = !1, this.insertionMode = m.INITIAL, this.originalInsertionMode = m.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = Object.assign(Object.assign({}, _), t), this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = null != e ? e : this.treeAdapter.createDocument(), this.tokenizer = new i.Tokenizer(this.options, this), this.activeFormattingElements = new o.FormattingElementList(this.treeAdapter), this.fragmentContextID = n ? (0, h.getTagID)(this.treeAdapter.getTagName(n)) : h.TAG_ID.UNKNOWN, this._setContextModes(null != n ? n : this.document, this.fragmentContextID), this.openElements = new r.OpenElementStack(this.document, this.treeAdapter, this)
                }

                static parse(t, e) {
                    const n = new this(e);
                    return n.tokenizer.write(t, !0), n.document
                }

                static getFragmentParser(t, e) {
                    const n = Object.assign(Object.assign({}, _), e);
                    null != t || (t = n.treeAdapter.createElement(h.TAG_NAMES.TEMPLATE, h.NS.HTML, []));
                    const i = n.treeAdapter.createElement("documentmock", h.NS.HTML, []), r = new this(n, i, t);
                    return r.fragmentContextID === h.TAG_ID.TEMPLATE && r.tmplInsertionModeStack.unshift(m.IN_TEMPLATE), r._initTokenizerForFragmentParsing(), r._insertFakeRootElement(), r._resetInsertionMode(), r._findFormInFragmentContext(), r
                }

                getFragment() {
                    const t = this.treeAdapter.getFirstChild(this.document),
                        e = this.treeAdapter.createDocumentFragment();
                    return this._adoptNodes(t, e), e
                }

                _err(t, e, n) {
                    var i;
                    if (!this.onParseError) return;
                    const r = null !== (i = t.location) && void 0 !== i ? i : y, o = {
                        code: e,
                        startLine: r.startLine,
                        startCol: r.startCol,
                        startOffset: r.startOffset,
                        endLine: n ? r.startLine : r.endLine,
                        endCol: n ? r.startCol : r.endCol,
                        endOffset: n ? r.startOffset : r.endOffset
                    };
                    this.onParseError(o)
                }

                onItemPush(t, e, n) {
                    var i, r;
                    null === (r = (i = this.treeAdapter).onItemPush) || void 0 === r || r.call(i, t), n && this.openElements.stackTop > 0 && this._setContextModes(t, e)
                }

                onItemPop(t, e) {
                    var n, i;
                    if (this.options.sourceCodeLocationInfo && this._setEndLocation(t, this.currentToken), null === (i = (n = this.treeAdapter).onItemPop) || void 0 === i || i.call(n, t, this.openElements.current), e) {
                        let t, e;
                        0 === this.openElements.stackTop && this.fragmentContext ? (t = this.fragmentContext, e = this.fragmentContextID) : ({
                            current: t,
                            currentTagId: e
                        } = this.openElements), this._setContextModes(t, e)
                    }
                }

                _setContextModes(t, e) {
                    const n = t === this.document || this.treeAdapter.getNamespaceURI(t) === h.NS.HTML;
                    this.currentNotInHTML = !n, this.tokenizer.inForeignNode = !n && !this._isIntegrationPoint(e, t)
                }

                _switchToTextParsing(t, e) {
                    this._insertElement(t, h.NS.HTML), this.tokenizer.state = e, this.originalInsertionMode = this.insertionMode, this.insertionMode = m.TEXT
                }

                switchToPlaintextParsing() {
                    this.insertionMode = m.TEXT, this.originalInsertionMode = m.IN_BODY, this.tokenizer.state = i.TokenizerMode.PLAINTEXT
                }

                _getAdjustedCurrentElement() {
                    return 0 === this.openElements.stackTop && this.fragmentContext ? this.fragmentContext : this.openElements.current
                }

                _findFormInFragmentContext() {
                    let t = this.fragmentContext;
                    for (; t;) {
                        if (this.treeAdapter.getTagName(t) === h.TAG_NAMES.FORM) {
                            this.formElement = t;
                            break
                        }
                        t = this.treeAdapter.getParentNode(t)
                    }
                }

                _initTokenizerForFragmentParsing() {
                    if (this.fragmentContext && this.treeAdapter.getNamespaceURI(this.fragmentContext) === h.NS.HTML) switch (this.fragmentContextID) {
                        case h.TAG_ID.TITLE:
                        case h.TAG_ID.TEXTAREA:
                            this.tokenizer.state = i.TokenizerMode.RCDATA;
                            break;
                        case h.TAG_ID.STYLE:
                        case h.TAG_ID.XMP:
                        case h.TAG_ID.IFRAME:
                        case h.TAG_ID.NOEMBED:
                        case h.TAG_ID.NOFRAMES:
                        case h.TAG_ID.NOSCRIPT:
                            this.tokenizer.state = i.TokenizerMode.RAWTEXT;
                            break;
                        case h.TAG_ID.SCRIPT:
                            this.tokenizer.state = i.TokenizerMode.SCRIPT_DATA;
                            break;
                        case h.TAG_ID.PLAINTEXT:
                            this.tokenizer.state = i.TokenizerMode.PLAINTEXT
                    }
                }

                _setDocumentType(t) {
                    const e = t.name || "", n = t.publicId || "", i = t.systemId || "";
                    if (this.treeAdapter.setDocumentType(this.document, e, n, i), t.location) {
                        const e = this.treeAdapter.getChildNodes(this.document).find((t => this.treeAdapter.isDocumentTypeNode(t)));
                        e && this.treeAdapter.setNodeSourceCodeLocation(e, t.location)
                    }
                }

                _attachElementToTree(t, e) {
                    if (this.options.sourceCodeLocationInfo) {
                        const n = e && Object.assign(Object.assign({}, e), {startTag: e});
                        this.treeAdapter.setNodeSourceCodeLocation(t, n)
                    }
                    if (this._shouldFosterParentOnInsertion()) this._fosterParentElement(t); else {
                        const e = this.openElements.currentTmplContentOrNode;
                        this.treeAdapter.appendChild(e, t)
                    }
                }

                _appendElement(t, e) {
                    const n = this.treeAdapter.createElement(t.tagName, e, t.attrs);
                    this._attachElementToTree(n, t.location)
                }

                _insertElement(t, e) {
                    const n = this.treeAdapter.createElement(t.tagName, e, t.attrs);
                    this._attachElementToTree(n, t.location), this.openElements.push(n, t.tagID)
                }

                _insertFakeElement(t, e) {
                    const n = this.treeAdapter.createElement(t, h.NS.HTML, []);
                    this._attachElementToTree(n, null), this.openElements.push(n, e)
                }

                _insertTemplate(t) {
                    const e = this.treeAdapter.createElement(t.tagName, h.NS.HTML, t.attrs),
                        n = this.treeAdapter.createDocumentFragment();
                    this.treeAdapter.setTemplateContent(e, n), this._attachElementToTree(e, t.location), this.openElements.push(e, t.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(n, null)
                }

                _insertFakeRootElement() {
                    const t = this.treeAdapter.createElement(h.TAG_NAMES.HTML, h.NS.HTML, []);
                    this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(t, null), this.treeAdapter.appendChild(this.openElements.current, t), this.openElements.push(t, h.TAG_ID.HTML)
                }

                _appendCommentNode(t, e) {
                    const n = this.treeAdapter.createCommentNode(t.data);
                    this.treeAdapter.appendChild(e, n), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(n, t.location)
                }

                _insertCharacters(t) {
                    let e, n;
                    if (this._shouldFosterParentOnInsertion() ? (({
                        parent: e,
                        beforeElement: n
                    } = this._findFosterParentingLocation()), n ? this.treeAdapter.insertTextBefore(e, t.chars, n) : this.treeAdapter.insertText(e, t.chars)) : (e = this.openElements.currentTmplContentOrNode, this.treeAdapter.insertText(e, t.chars)), !t.location) return;
                    const i = this.treeAdapter.getChildNodes(e), r = n ? i.lastIndexOf(n) : i.length, o = i[r - 1];
                    if (this.treeAdapter.getNodeSourceCodeLocation(o)) {
                        const {endLine: e, endCol: n, endOffset: i} = t.location;
                        this.treeAdapter.updateNodeSourceCodeLocation(o, {endLine: e, endCol: n, endOffset: i})
                    } else this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(o, t.location)
                }

                _adoptNodes(t, e) {
                    for (let n = this.treeAdapter.getFirstChild(t); n; n = this.treeAdapter.getFirstChild(t)) this.treeAdapter.detachNode(n), this.treeAdapter.appendChild(e, n)
                }

                _setEndLocation(t, e) {
                    if (this.treeAdapter.getNodeSourceCodeLocation(t) && e.location) {
                        const n = e.location, i = this.treeAdapter.getTagName(t),
                            r = e.type === d.TokenType.END_TAG && i === e.tagName ? {
                                endTag: Object.assign({}, n),
                                endLine: n.endLine,
                                endCol: n.endCol,
                                endOffset: n.endOffset
                            } : {endLine: n.startLine, endCol: n.startCol, endOffset: n.startOffset};
                        this.treeAdapter.updateNodeSourceCodeLocation(t, r)
                    }
                }

                shouldProcessStartTagTokenInForeignContent(t) {
                    if (!this.currentNotInHTML) return !1;
                    let e, n;
                    return 0 === this.openElements.stackTop && this.fragmentContext ? (e = this.fragmentContext, n = this.fragmentContextID) : ({
                        current: e,
                        currentTagId: n
                    } = this.openElements), (t.tagID !== h.TAG_ID.SVG || this.treeAdapter.getTagName(e) !== h.TAG_NAMES.ANNOTATION_XML || this.treeAdapter.getNamespaceURI(e) !== h.NS.MATHML) && (this.tokenizer.inForeignNode || (t.tagID === h.TAG_ID.MGLYPH || t.tagID === h.TAG_ID.MALIGNMARK) && !this._isIntegrationPoint(n, e, h.NS.HTML))
                }

                _processToken(t) {
                    switch (t.type) {
                        case d.TokenType.CHARACTER:
                            this.onCharacter(t);
                            break;
                        case d.TokenType.NULL_CHARACTER:
                            this.onNullCharacter(t);
                            break;
                        case d.TokenType.COMMENT:
                            this.onComment(t);
                            break;
                        case d.TokenType.DOCTYPE:
                            this.onDoctype(t);
                            break;
                        case d.TokenType.START_TAG:
                            this._processStartTag(t);
                            break;
                        case d.TokenType.END_TAG:
                            this.onEndTag(t);
                            break;
                        case d.TokenType.EOF:
                            this.onEof(t);
                            break;
                        case d.TokenType.WHITESPACE_CHARACTER:
                            this.onWhitespaceCharacter(t)
                    }
                }

                _isIntegrationPoint(t, e, n) {
                    const i = this.treeAdapter.getNamespaceURI(e), r = this.treeAdapter.getAttrList(e);
                    return l.isIntegrationPoint(t, i, r, n)
                }

                _reconstructActiveFormattingElements() {
                    const t = this.activeFormattingElements.entries.length;
                    if (t) {
                        const e = this.activeFormattingElements.entries.findIndex((t => t.type === o.EntryType.Marker || this.openElements.contains(t.element)));
                        for (let n = e < 0 ? t - 1 : e - 1; n >= 0; n--) {
                            const t = this.activeFormattingElements.entries[n];
                            this._insertElement(t.token, this.treeAdapter.getNamespaceURI(t.element)), t.element = this.openElements.current
                        }
                    }
                }

                _closeTableCell() {
                    this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode = m.IN_ROW
                }

                _closePElement() {
                    this.openElements.generateImpliedEndTagsWithExclusion(h.TAG_ID.P), this.openElements.popUntilTagNamePopped(h.TAG_ID.P)
                }

                _resetInsertionMode() {
                    for (let t = this.openElements.stackTop; t >= 0; t--) switch (0 === t && this.fragmentContext ? this.fragmentContextID : this.openElements.tagIDs[t]) {
                        case h.TAG_ID.TR:
                            return void (this.insertionMode = m.IN_ROW);
                        case h.TAG_ID.TBODY:
                        case h.TAG_ID.THEAD:
                        case h.TAG_ID.TFOOT:
                            return void (this.insertionMode = m.IN_TABLE_BODY);
                        case h.TAG_ID.CAPTION:
                            return void (this.insertionMode = m.IN_CAPTION);
                        case h.TAG_ID.COLGROUP:
                            return void (this.insertionMode = m.IN_COLUMN_GROUP);
                        case h.TAG_ID.TABLE:
                            return void (this.insertionMode = m.IN_TABLE);
                        case h.TAG_ID.BODY:
                            return void (this.insertionMode = m.IN_BODY);
                        case h.TAG_ID.FRAMESET:
                            return void (this.insertionMode = m.IN_FRAMESET);
                        case h.TAG_ID.SELECT:
                            return void this._resetInsertionModeForSelect(t);
                        case h.TAG_ID.TEMPLATE:
                            return void (this.insertionMode = this.tmplInsertionModeStack[0]);
                        case h.TAG_ID.HTML:
                            return void (this.insertionMode = this.headElement ? m.AFTER_HEAD : m.BEFORE_HEAD);
                        case h.TAG_ID.TD:
                        case h.TAG_ID.TH:
                            if (t > 0) return void (this.insertionMode = m.IN_CELL);
                            break;
                        case h.TAG_ID.HEAD:
                            if (t > 0) return void (this.insertionMode = m.IN_HEAD)
                    }
                    this.insertionMode = m.IN_BODY
                }

                _resetInsertionModeForSelect(t) {
                    if (t > 0) for (let e = t - 1; e > 0; e--) {
                        const t = this.openElements.tagIDs[e];
                        if (t === h.TAG_ID.TEMPLATE) break;
                        if (t === h.TAG_ID.TABLE) return void (this.insertionMode = m.IN_SELECT_IN_TABLE)
                    }
                    this.insertionMode = m.IN_SELECT
                }

                _isElementCausesFosterParenting(t) {
                    return v.has(t)
                }

                _shouldFosterParentOnInsertion() {
                    return this.fosterParentingEnabled && this._isElementCausesFosterParenting(this.openElements.currentTagId)
                }

                _findFosterParentingLocation() {
                    for (let t = this.openElements.stackTop; t >= 0; t--) {
                        const e = this.openElements.items[t];
                        switch (this.openElements.tagIDs[t]) {
                            case h.TAG_ID.TEMPLATE:
                                if (this.treeAdapter.getNamespaceURI(e) === h.NS.HTML) return {
                                    parent: this.treeAdapter.getTemplateContent(e),
                                    beforeElement: null
                                };
                                break;
                            case h.TAG_ID.TABLE: {
                                const n = this.treeAdapter.getParentNode(e);
                                return n ? {parent: n, beforeElement: e} : {
                                    parent: this.openElements.items[t - 1],
                                    beforeElement: null
                                }
                            }
                        }
                    }
                    return {parent: this.openElements.items[0], beforeElement: null}
                }

                _fosterParentElement(t) {
                    const e = this._findFosterParentingLocation();
                    e.beforeElement ? this.treeAdapter.insertBefore(e.parent, t, e.beforeElement) : this.treeAdapter.appendChild(e.parent, t)
                }

                _isSpecialElement(t, e) {
                    const n = this.treeAdapter.getNamespaceURI(t);
                    return h.SPECIAL_ELEMENTS[n].has(e)
                }

                onCharacter(t) {
                    if (this.skipNextNewLine = !1, this.tokenizer.inForeignNode) !function (t, e) {
                        t._insertCharacters(e), t.framesetOk = !1
                    }(this, t); else switch (this.insertionMode) {
                        case m.INITIAL:
                            w(this, t);
                            break;
                        case m.BEFORE_HTML:
                            M(this, t);
                            break;
                        case m.BEFORE_HEAD:
                            N(this, t);
                            break;
                        case m.IN_HEAD:
                            R(this, t);
                            break;
                        case m.IN_HEAD_NO_SCRIPT:
                            k(this, t);
                            break;
                        case m.AFTER_HEAD:
                            P(this, t);
                            break;
                        case m.IN_BODY:
                        case m.IN_CAPTION:
                        case m.IN_CELL:
                        case m.IN_TEMPLATE:
                            F(this, t);
                            break;
                        case m.TEXT:
                        case m.IN_SELECT:
                        case m.IN_SELECT_IN_TABLE:
                            this._insertCharacters(t);
                            break;
                        case m.IN_TABLE:
                        case m.IN_TABLE_BODY:
                        case m.IN_ROW:
                            X(this, t);
                            break;
                        case m.IN_TABLE_TEXT:
                            J(this, t);
                            break;
                        case m.IN_COLUMN_GROUP:
                            it(this, t);
                            break;
                        case m.AFTER_BODY:
                            dt(this, t);
                            break;
                        case m.AFTER_AFTER_BODY:
                            pt(this, t)
                    }
                }

                onNullCharacter(t) {
                    if (this.skipNextNewLine = !1, this.tokenizer.inForeignNode) !function (t, e) {
                        e.chars = c.REPLACEMENT_CHARACTER, t._insertCharacters(e)
                    }(this, t); else switch (this.insertionMode) {
                        case m.INITIAL:
                            w(this, t);
                            break;
                        case m.BEFORE_HTML:
                            M(this, t);
                            break;
                        case m.BEFORE_HEAD:
                            N(this, t);
                            break;
                        case m.IN_HEAD:
                            R(this, t);
                            break;
                        case m.IN_HEAD_NO_SCRIPT:
                            k(this, t);
                            break;
                        case m.AFTER_HEAD:
                            P(this, t);
                            break;
                        case m.TEXT:
                            this._insertCharacters(t);
                            break;
                        case m.IN_TABLE:
                        case m.IN_TABLE_BODY:
                        case m.IN_ROW:
                            X(this, t);
                            break;
                        case m.IN_COLUMN_GROUP:
                            it(this, t);
                            break;
                        case m.AFTER_BODY:
                            dt(this, t);
                            break;
                        case m.AFTER_AFTER_BODY:
                            pt(this, t)
                    }
                }

                onComment(t) {
                    if (this.skipNextNewLine = !1, this.currentNotInHTML) C(this, t); else switch (this.insertionMode) {
                        case m.INITIAL:
                        case m.BEFORE_HTML:
                        case m.BEFORE_HEAD:
                        case m.IN_HEAD:
                        case m.IN_HEAD_NO_SCRIPT:
                        case m.AFTER_HEAD:
                        case m.IN_BODY:
                        case m.IN_TABLE:
                        case m.IN_CAPTION:
                        case m.IN_COLUMN_GROUP:
                        case m.IN_TABLE_BODY:
                        case m.IN_ROW:
                        case m.IN_CELL:
                        case m.IN_SELECT:
                        case m.IN_SELECT_IN_TABLE:
                        case m.IN_TEMPLATE:
                        case m.IN_FRAMESET:
                        case m.AFTER_FRAMESET:
                            C(this, t);
                            break;
                        case m.IN_TABLE_TEXT:
                            tt(this, t);
                            break;
                        case m.AFTER_BODY:
                            !function (t, e) {
                                t._appendCommentNode(e, t.openElements.items[0])
                            }(this, t);
                            break;
                        case m.AFTER_AFTER_BODY:
                        case m.AFTER_AFTER_FRAMESET:
                            !function (t, e) {
                                t._appendCommentNode(e, t.document)
                            }(this, t)
                    }
                }

                onDoctype(t) {
                    switch (this.skipNextNewLine = !1, this.insertionMode) {
                        case m.INITIAL:
                            !function (t, e) {
                                t._setDocumentType(e);
                                const n = e.forceQuirks ? h.DOCUMENT_MODE.QUIRKS : s.getDocumentMode(e);
                                s.isConforming(e) || t._err(e, u.ERR.nonConformingDoctype);
                                t.treeAdapter.setDocumentMode(t.document, n), t.insertionMode = m.BEFORE_HTML
                            }(this, t);
                            break;
                        case m.BEFORE_HEAD:
                        case m.IN_HEAD:
                        case m.IN_HEAD_NO_SCRIPT:
                        case m.AFTER_HEAD:
                            this._err(t, u.ERR.misplacedDoctype);
                            break;
                        case m.IN_TABLE_TEXT:
                            tt(this, t)
                    }
                }

                onStartTag(t) {
                    this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t, u.ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)
                }

                _processStartTag(t) {
                    this.shouldProcessStartTagTokenInForeignContent(t) ? function (t, e) {
                        if (l.causesExit(e)) ft(t), t._startTagOutsideForeignContent(e); else {
                            const n = t._getAdjustedCurrentElement(), i = t.treeAdapter.getNamespaceURI(n);
                            i === h.NS.MATHML ? l.adjustTokenMathMLAttrs(e) : i === h.NS.SVG && (l.adjustTokenSVGTagName(e), l.adjustTokenSVGAttrs(e)), l.adjustTokenXMLAttrs(e), e.selfClosing ? t._appendElement(e, i) : t._insertElement(e, i), e.ackSelfClosing = !0
                        }
                    }(this, t) : this._startTagOutsideForeignContent(t)
                }

                _startTagOutsideForeignContent(t) {
                    switch (this.insertionMode) {
                        case m.INITIAL:
                            w(this, t);
                            break;
                        case m.BEFORE_HTML:
                            !function (t, e) {
                                e.tagID === h.TAG_ID.HTML ? (t._insertElement(e, h.NS.HTML), t.insertionMode = m.BEFORE_HEAD) : M(t, e)
                            }(this, t);
                            break;
                        case m.BEFORE_HEAD:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.HTML:
                                        W(t, e);
                                        break;
                                    case h.TAG_ID.HEAD:
                                        t._insertElement(e, h.NS.HTML), t.headElement = t.openElements.current, t.insertionMode = m.IN_HEAD;
                                        break;
                                    default:
                                        N(t, e)
                                }
                            }(this, t);
                            break;
                        case m.IN_HEAD:
                            O(this, t);
                            break;
                        case m.IN_HEAD_NO_SCRIPT:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.HTML:
                                        W(t, e);
                                        break;
                                    case h.TAG_ID.BASEFONT:
                                    case h.TAG_ID.BGSOUND:
                                    case h.TAG_ID.HEAD:
                                    case h.TAG_ID.LINK:
                                    case h.TAG_ID.META:
                                    case h.TAG_ID.NOFRAMES:
                                    case h.TAG_ID.STYLE:
                                        O(t, e);
                                        break;
                                    case h.TAG_ID.NOSCRIPT:
                                        t._err(e, u.ERR.nestedNoscriptInHead);
                                        break;
                                    default:
                                        k(t, e)
                                }
                            }(this, t);
                            break;
                        case m.AFTER_HEAD:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.HTML:
                                        W(t, e);
                                        break;
                                    case h.TAG_ID.BODY:
                                        t._insertElement(e, h.NS.HTML), t.framesetOk = !1, t.insertionMode = m.IN_BODY;
                                        break;
                                    case h.TAG_ID.FRAMESET:
                                        t._insertElement(e, h.NS.HTML), t.insertionMode = m.IN_FRAMESET;
                                        break;
                                    case h.TAG_ID.BASE:
                                    case h.TAG_ID.BASEFONT:
                                    case h.TAG_ID.BGSOUND:
                                    case h.TAG_ID.LINK:
                                    case h.TAG_ID.META:
                                    case h.TAG_ID.NOFRAMES:
                                    case h.TAG_ID.SCRIPT:
                                    case h.TAG_ID.STYLE:
                                    case h.TAG_ID.TEMPLATE:
                                    case h.TAG_ID.TITLE:
                                        t._err(e, u.ERR.abandonedHeadElementChild), t.openElements.push(t.headElement, h.TAG_ID.HEAD), O(t, e), t.openElements.remove(t.headElement);
                                        break;
                                    case h.TAG_ID.HEAD:
                                        t._err(e, u.ERR.misplacedStartTagForHeadElement);
                                        break;
                                    default:
                                        P(t, e)
                                }
                            }(this, t);
                            break;
                        case m.IN_BODY:
                            W(this, t);
                            break;
                        case m.IN_TABLE:
                            Z(this, t);
                            break;
                        case m.IN_TABLE_TEXT:
                            tt(this, t);
                            break;
                        case m.IN_CAPTION:
                            !function (t, e) {
                                const n = e.tagID;
                                et.has(n) ? t.openElements.hasInTableScope(h.TAG_ID.CAPTION) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(h.TAG_ID.CAPTION), t.activeFormattingElements.clearToLastMarker(), t.insertionMode = m.IN_TABLE, Z(t, e)) : W(t, e)
                            }(this, t);
                            break;
                        case m.IN_COLUMN_GROUP:
                            nt(this, t);
                            break;
                        case m.IN_TABLE_BODY:
                            rt(this, t);
                            break;
                        case m.IN_ROW:
                            at(this, t);
                            break;
                        case m.IN_CELL:
                            !function (t, e) {
                                const n = e.tagID;
                                et.has(n) ? (t.openElements.hasInTableScope(h.TAG_ID.TD) || t.openElements.hasInTableScope(h.TAG_ID.TH)) && (t._closeTableCell(), at(t, e)) : W(t, e)
                            }(this, t);
                            break;
                        case m.IN_SELECT:
                            lt(this, t);
                            break;
                        case m.IN_SELECT_IN_TABLE:
                            !function (t, e) {
                                const n = e.tagID;
                                n === h.TAG_ID.CAPTION || n === h.TAG_ID.TABLE || n === h.TAG_ID.TBODY || n === h.TAG_ID.TFOOT || n === h.TAG_ID.THEAD || n === h.TAG_ID.TR || n === h.TAG_ID.TD || n === h.TAG_ID.TH ? (t.openElements.popUntilTagNamePopped(h.TAG_ID.SELECT), t._resetInsertionMode(), t._processStartTag(e)) : lt(t, e)
                            }(this, t);
                            break;
                        case m.IN_TEMPLATE:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.BASE:
                                    case h.TAG_ID.BASEFONT:
                                    case h.TAG_ID.BGSOUND:
                                    case h.TAG_ID.LINK:
                                    case h.TAG_ID.META:
                                    case h.TAG_ID.NOFRAMES:
                                    case h.TAG_ID.SCRIPT:
                                    case h.TAG_ID.STYLE:
                                    case h.TAG_ID.TEMPLATE:
                                    case h.TAG_ID.TITLE:
                                        O(t, e);
                                        break;
                                    case h.TAG_ID.CAPTION:
                                    case h.TAG_ID.COLGROUP:
                                    case h.TAG_ID.TBODY:
                                    case h.TAG_ID.TFOOT:
                                    case h.TAG_ID.THEAD:
                                        t.tmplInsertionModeStack[0] = m.IN_TABLE, t.insertionMode = m.IN_TABLE, Z(t, e);
                                        break;
                                    case h.TAG_ID.COL:
                                        t.tmplInsertionModeStack[0] = m.IN_COLUMN_GROUP, t.insertionMode = m.IN_COLUMN_GROUP, nt(t, e);
                                        break;
                                    case h.TAG_ID.TR:
                                        t.tmplInsertionModeStack[0] = m.IN_TABLE_BODY, t.insertionMode = m.IN_TABLE_BODY, rt(t, e);
                                        break;
                                    case h.TAG_ID.TD:
                                    case h.TAG_ID.TH:
                                        t.tmplInsertionModeStack[0] = m.IN_ROW, t.insertionMode = m.IN_ROW, at(t, e);
                                        break;
                                    default:
                                        t.tmplInsertionModeStack[0] = m.IN_BODY, t.insertionMode = m.IN_BODY, W(t, e)
                                }
                            }(this, t);
                            break;
                        case m.AFTER_BODY:
                            !function (t, e) {
                                e.tagID === h.TAG_ID.HTML ? W(t, e) : dt(t, e)
                            }(this, t);
                            break;
                        case m.IN_FRAMESET:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.HTML:
                                        W(t, e);
                                        break;
                                    case h.TAG_ID.FRAMESET:
                                        t._insertElement(e, h.NS.HTML);
                                        break;
                                    case h.TAG_ID.FRAME:
                                        t._appendElement(e, h.NS.HTML), e.ackSelfClosing = !0;
                                        break;
                                    case h.TAG_ID.NOFRAMES:
                                        O(t, e)
                                }
                            }(this, t);
                            break;
                        case m.AFTER_FRAMESET:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.HTML:
                                        W(t, e);
                                        break;
                                    case h.TAG_ID.NOFRAMES:
                                        O(t, e)
                                }
                            }(this, t);
                            break;
                        case m.AFTER_AFTER_BODY:
                            !function (t, e) {
                                e.tagID === h.TAG_ID.HTML ? W(t, e) : pt(t, e)
                            }(this, t);
                            break;
                        case m.AFTER_AFTER_FRAMESET:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.HTML:
                                        W(t, e);
                                        break;
                                    case h.TAG_ID.NOFRAMES:
                                        O(t, e)
                                }
                            }(this, t)
                    }
                }

                onEndTag(t) {
                    this.skipNextNewLine = !1, this.currentToken = t, this.currentNotInHTML ? function (t, e) {
                        if (e.tagID === h.TAG_ID.P || e.tagID === h.TAG_ID.BR) return ft(t), void t._endTagOutsideForeignContent(e);
                        for (let n = t.openElements.stackTop; n > 0; n--) {
                            const i = t.openElements.items[n];
                            if (t.treeAdapter.getNamespaceURI(i) === h.NS.HTML) {
                                t._endTagOutsideForeignContent(e);
                                break
                            }
                            const r = t.treeAdapter.getTagName(i);
                            if (r.toLowerCase() === e.tagName) {
                                e.tagName = r, t.openElements.shortenToLength(n);
                                break
                            }
                        }
                    }(this, t) : this._endTagOutsideForeignContent(t)
                }

                _endTagOutsideForeignContent(t) {
                    switch (this.insertionMode) {
                        case m.INITIAL:
                            w(this, t);
                            break;
                        case m.BEFORE_HTML:
                            !function (t, e) {
                                const n = e.tagID;
                                n !== h.TAG_ID.HTML && n !== h.TAG_ID.HEAD && n !== h.TAG_ID.BODY && n !== h.TAG_ID.BR || M(t, e)
                            }(this, t);
                            break;
                        case m.BEFORE_HEAD:
                            !function (t, e) {
                                const n = e.tagID;
                                n === h.TAG_ID.HEAD || n === h.TAG_ID.BODY || n === h.TAG_ID.HTML || n === h.TAG_ID.BR ? N(t, e) : t._err(e, u.ERR.endTagWithoutMatchingOpenElement)
                            }(this, t);
                            break;
                        case m.IN_HEAD:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.HEAD:
                                        t.openElements.pop(), t.insertionMode = m.AFTER_HEAD;
                                        break;
                                    case h.TAG_ID.BODY:
                                    case h.TAG_ID.BR:
                                    case h.TAG_ID.HTML:
                                        R(t, e);
                                        break;
                                    case h.TAG_ID.TEMPLATE:
                                        L(t, e);
                                        break;
                                    default:
                                        t._err(e, u.ERR.endTagWithoutMatchingOpenElement)
                                }
                            }(this, t);
                            break;
                        case m.IN_HEAD_NO_SCRIPT:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.NOSCRIPT:
                                        t.openElements.pop(), t.insertionMode = m.IN_HEAD;
                                        break;
                                    case h.TAG_ID.BR:
                                        k(t, e);
                                        break;
                                    default:
                                        t._err(e, u.ERR.endTagWithoutMatchingOpenElement)
                                }
                            }(this, t);
                            break;
                        case m.AFTER_HEAD:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.BODY:
                                    case h.TAG_ID.HTML:
                                    case h.TAG_ID.BR:
                                        P(t, e);
                                        break;
                                    case h.TAG_ID.TEMPLATE:
                                        L(t, e);
                                        break;
                                    default:
                                        t._err(e, u.ERR.endTagWithoutMatchingOpenElement)
                                }
                            }(this, t);
                            break;
                        case m.IN_BODY:
                            q(this, t);
                            break;
                        case m.TEXT:
                            !function (t, e) {
                                var n;
                                e.tagID === h.TAG_ID.SCRIPT && (null === (n = t.scriptHandler) || void 0 === n || n.call(t, t.openElements.current));
                                t.openElements.pop(), t.insertionMode = t.originalInsertionMode
                            }(this, t);
                            break;
                        case m.IN_TABLE:
                            K(this, t);
                            break;
                        case m.IN_TABLE_TEXT:
                            tt(this, t);
                            break;
                        case m.IN_CAPTION:
                            !function (t, e) {
                                const n = e.tagID;
                                switch (n) {
                                    case h.TAG_ID.CAPTION:
                                    case h.TAG_ID.TABLE:
                                        t.openElements.hasInTableScope(h.TAG_ID.CAPTION) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(h.TAG_ID.CAPTION), t.activeFormattingElements.clearToLastMarker(), t.insertionMode = m.IN_TABLE, n === h.TAG_ID.TABLE && K(t, e));
                                        break;
                                    case h.TAG_ID.BODY:
                                    case h.TAG_ID.COL:
                                    case h.TAG_ID.COLGROUP:
                                    case h.TAG_ID.HTML:
                                    case h.TAG_ID.TBODY:
                                    case h.TAG_ID.TD:
                                    case h.TAG_ID.TFOOT:
                                    case h.TAG_ID.TH:
                                    case h.TAG_ID.THEAD:
                                    case h.TAG_ID.TR:
                                        break;
                                    default:
                                        q(t, e)
                                }
                            }(this, t);
                            break;
                        case m.IN_COLUMN_GROUP:
                            !function (t, e) {
                                switch (e.tagID) {
                                    case h.TAG_ID.COLGROUP:
                                        t.openElements.currentTagId === h.TAG_ID.COLGROUP && (t.openElements.pop(), t.insertionMode = m.IN_TABLE);
                                        break;
                                    case h.TAG_ID.TEMPLATE:
                                        L(t, e);
                                        break;
                                    case h.TAG_ID.COL:
                                        break;
                                    default:
                                        it(t, e)
                                }
                            }(this, t);
                            break;
                        case m.IN_TABLE_BODY:
                            ot(this, t);
                            break;
                        case m.IN_ROW:
                            st(this, t);
                            break;
                        case m.IN_CELL:
                            !function (t, e) {
                                const n = e.tagID;
                                switch (n) {
                                    case h.TAG_ID.TD:
                                    case h.TAG_ID.TH:
                                        t.openElements.hasInTableScope(n) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(n), t.activeFormattingElements.clearToLastMarker(), t.insertionMode = m.IN_ROW);
                                        break;
                                    case h.TAG_ID.TABLE:
                                    case h.TAG_ID.TBODY:
                                    case h.TAG_ID.TFOOT:
                                    case h.TAG_ID.THEAD:
                                    case h.TAG_ID.TR:
                                        t.openElements.hasInTableScope(n) && (t._closeTableCell(), st(t, e));
                                        break;
                                    case h.TAG_ID.BODY:
                                    case h.TAG_ID.CAPTION:
                                    case h.TAG_ID.COL:
                                    case h.TAG_ID.COLGROUP:
                                    case h.TAG_ID.HTML:
                                        break;
                                    default:
                                        q(t, e)
                                }
                            }(this, t);
                            break;
                        case m.IN_SELECT:
                            ut(this, t);
                            break;
                        case m.IN_SELECT_IN_TABLE:
                            !function (t, e) {
                                const n = e.tagID;
                                n === h.TAG_ID.CAPTION || n === h.TAG_ID.TABLE || n === h.TAG_ID.TBODY || n === h.TAG_ID.TFOOT || n === h.TAG_ID.THEAD || n === h.TAG_ID.TR || n === h.TAG_ID.TD || n === h.TAG_ID.TH ? t.openElements.hasInTableScope(n) && (t.openElements.popUntilTagNamePopped(h.TAG_ID.SELECT), t._resetInsertionMode(), t.onEndTag(e)) : ut(t, e)
                            }(this, t);
                            break;
                        case m.IN_TEMPLATE:
                            !function (t, e) {
                                e.tagID === h.TAG_ID.TEMPLATE && L(t, e)
                            }(this, t);
                            break;
                        case m.AFTER_BODY:
                            ht(this, t);
                            break;
                        case m.IN_FRAMESET:
                            !function (t, e) {
                                e.tagID !== h.TAG_ID.FRAMESET || t.openElements.isRootHtmlElementCurrent() || (t.openElements.pop(), t.fragmentContext || t.openElements.currentTagId === h.TAG_ID.FRAMESET || (t.insertionMode = m.AFTER_FRAMESET))
                            }(this, t);
                            break;
                        case m.AFTER_FRAMESET:
                            !function (t, e) {
                                e.tagID === h.TAG_ID.HTML && (t.insertionMode = m.AFTER_AFTER_FRAMESET)
                            }(this, t);
                            break;
                        case m.AFTER_AFTER_BODY:
                            pt(this, t)
                    }
                }

                onEof(t) {
                    switch (this.insertionMode) {
                        case m.INITIAL:
                            w(this, t);
                            break;
                        case m.BEFORE_HTML:
                            M(this, t);
                            break;
                        case m.BEFORE_HEAD:
                            N(this, t);
                            break;
                        case m.IN_HEAD:
                            R(this, t);
                            break;
                        case m.IN_HEAD_NO_SCRIPT:
                            k(this, t);
                            break;
                        case m.AFTER_HEAD:
                            P(this, t);
                            break;
                        case m.IN_BODY:
                        case m.IN_TABLE:
                        case m.IN_CAPTION:
                        case m.IN_COLUMN_GROUP:
                        case m.IN_TABLE_BODY:
                        case m.IN_ROW:
                        case m.IN_CELL:
                        case m.IN_SELECT:
                        case m.IN_SELECT_IN_TABLE:
                            j(this, t);
                            break;
                        case m.TEXT:
                            !function (t, e) {
                                t._err(e, u.ERR.eofInElementThatCanContainOnlyText), t.openElements.pop(), t.insertionMode = t.originalInsertionMode, t.onEof(e)
                            }(this, t);
                            break;
                        case m.IN_TABLE_TEXT:
                            tt(this, t);
                            break;
                        case m.IN_TEMPLATE:
                            ct(this, t);
                            break;
                        case m.AFTER_BODY:
                        case m.IN_FRAMESET:
                        case m.AFTER_FRAMESET:
                        case m.AFTER_AFTER_BODY:
                        case m.AFTER_AFTER_FRAMESET:
                            D(this, t)
                    }
                }

                onWhitespaceCharacter(t) {
                    if (this.skipNextNewLine && (this.skipNextNewLine = !1, t.chars.charCodeAt(0) === c.CODE_POINTS.LINE_FEED)) {
                        if (1 === t.chars.length) return;
                        t.chars = t.chars.substr(1)
                    }
                    if (this.tokenizer.inForeignNode) this._insertCharacters(t); else switch (this.insertionMode) {
                        case m.IN_HEAD:
                        case m.IN_HEAD_NO_SCRIPT:
                        case m.AFTER_HEAD:
                        case m.TEXT:
                        case m.IN_COLUMN_GROUP:
                        case m.IN_SELECT:
                        case m.IN_SELECT_IN_TABLE:
                        case m.IN_FRAMESET:
                        case m.AFTER_FRAMESET:
                            this._insertCharacters(t);
                            break;
                        case m.IN_BODY:
                        case m.IN_CAPTION:
                        case m.IN_CELL:
                        case m.IN_TEMPLATE:
                        case m.AFTER_BODY:
                        case m.AFTER_AFTER_BODY:
                        case m.AFTER_AFTER_FRAMESET:
                            B(this, t);
                            break;
                        case m.IN_TABLE:
                        case m.IN_TABLE_BODY:
                        case m.IN_ROW:
                            X(this, t);
                            break;
                        case m.IN_TABLE_TEXT:
                            $(this, t)
                    }
                }
            };
            const et = new Set([h.TAG_ID.CAPTION, h.TAG_ID.COL, h.TAG_ID.COLGROUP, h.TAG_ID.TBODY, h.TAG_ID.TD, h.TAG_ID.TFOOT, h.TAG_ID.TH, h.TAG_ID.THEAD, h.TAG_ID.TR]);

            function nt(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.HTML:
                        W(t, e);
                        break;
                    case h.TAG_ID.COL:
                        t._appendElement(e, h.NS.HTML), e.ackSelfClosing = !0;
                        break;
                    case h.TAG_ID.TEMPLATE:
                        O(t, e);
                        break;
                    default:
                        it(t, e)
                }
            }

            function it(t, e) {
                t.openElements.currentTagId === h.TAG_ID.COLGROUP && (t.openElements.pop(), t.insertionMode = m.IN_TABLE, t._processToken(e))
            }

            function rt(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.TR:
                        t.openElements.clearBackToTableBodyContext(), t._insertElement(e, h.NS.HTML), t.insertionMode = m.IN_ROW;
                        break;
                    case h.TAG_ID.TH:
                    case h.TAG_ID.TD:
                        t.openElements.clearBackToTableBodyContext(), t._insertFakeElement(h.TAG_NAMES.TR, h.TAG_ID.TR), t.insertionMode = m.IN_ROW, at(t, e);
                        break;
                    case h.TAG_ID.CAPTION:
                    case h.TAG_ID.COL:
                    case h.TAG_ID.COLGROUP:
                    case h.TAG_ID.TBODY:
                    case h.TAG_ID.TFOOT:
                    case h.TAG_ID.THEAD:
                        t.openElements.hasTableBodyContextInTableScope() && (t.openElements.clearBackToTableBodyContext(), t.openElements.pop(), t.insertionMode = m.IN_TABLE, Z(t, e));
                        break;
                    default:
                        Z(t, e)
                }
            }

            function ot(t, e) {
                const n = e.tagID;
                switch (e.tagID) {
                    case h.TAG_ID.TBODY:
                    case h.TAG_ID.TFOOT:
                    case h.TAG_ID.THEAD:
                        t.openElements.hasInTableScope(n) && (t.openElements.clearBackToTableBodyContext(), t.openElements.pop(), t.insertionMode = m.IN_TABLE);
                        break;
                    case h.TAG_ID.TABLE:
                        t.openElements.hasTableBodyContextInTableScope() && (t.openElements.clearBackToTableBodyContext(), t.openElements.pop(), t.insertionMode = m.IN_TABLE, K(t, e));
                        break;
                    case h.TAG_ID.BODY:
                    case h.TAG_ID.CAPTION:
                    case h.TAG_ID.COL:
                    case h.TAG_ID.COLGROUP:
                    case h.TAG_ID.HTML:
                    case h.TAG_ID.TD:
                    case h.TAG_ID.TH:
                    case h.TAG_ID.TR:
                        break;
                    default:
                        K(t, e)
                }
            }

            function at(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.TH:
                    case h.TAG_ID.TD:
                        t.openElements.clearBackToTableRowContext(), t._insertElement(e, h.NS.HTML), t.insertionMode = m.IN_CELL, t.activeFormattingElements.insertMarker();
                        break;
                    case h.TAG_ID.CAPTION:
                    case h.TAG_ID.COL:
                    case h.TAG_ID.COLGROUP:
                    case h.TAG_ID.TBODY:
                    case h.TAG_ID.TFOOT:
                    case h.TAG_ID.THEAD:
                    case h.TAG_ID.TR:
                        t.openElements.hasInTableScope(h.TAG_ID.TR) && (t.openElements.clearBackToTableRowContext(), t.openElements.pop(), t.insertionMode = m.IN_TABLE_BODY, rt(t, e));
                        break;
                    default:
                        Z(t, e)
                }
            }

            function st(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.TR:
                        t.openElements.hasInTableScope(h.TAG_ID.TR) && (t.openElements.clearBackToTableRowContext(), t.openElements.pop(), t.insertionMode = m.IN_TABLE_BODY);
                        break;
                    case h.TAG_ID.TABLE:
                        t.openElements.hasInTableScope(h.TAG_ID.TR) && (t.openElements.clearBackToTableRowContext(), t.openElements.pop(), t.insertionMode = m.IN_TABLE_BODY, ot(t, e));
                        break;
                    case h.TAG_ID.TBODY:
                    case h.TAG_ID.TFOOT:
                    case h.TAG_ID.THEAD:
                        (t.openElements.hasInTableScope(e.tagID) || t.openElements.hasInTableScope(h.TAG_ID.TR)) && (t.openElements.clearBackToTableRowContext(), t.openElements.pop(), t.insertionMode = m.IN_TABLE_BODY, ot(t, e));
                        break;
                    case h.TAG_ID.BODY:
                    case h.TAG_ID.CAPTION:
                    case h.TAG_ID.COL:
                    case h.TAG_ID.COLGROUP:
                    case h.TAG_ID.HTML:
                    case h.TAG_ID.TD:
                    case h.TAG_ID.TH:
                        break;
                    default:
                        K(t, e)
                }
            }

            function lt(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.HTML:
                        W(t, e);
                        break;
                    case h.TAG_ID.OPTION:
                        t.openElements.currentTagId === h.TAG_ID.OPTION && t.openElements.pop(), t._insertElement(e, h.NS.HTML);
                        break;
                    case h.TAG_ID.OPTGROUP:
                        t.openElements.currentTagId === h.TAG_ID.OPTION && t.openElements.pop(), t.openElements.currentTagId === h.TAG_ID.OPTGROUP && t.openElements.pop(), t._insertElement(e, h.NS.HTML);
                        break;
                    case h.TAG_ID.INPUT:
                    case h.TAG_ID.KEYGEN:
                    case h.TAG_ID.TEXTAREA:
                    case h.TAG_ID.SELECT:
                        t.openElements.hasInSelectScope(h.TAG_ID.SELECT) && (t.openElements.popUntilTagNamePopped(h.TAG_ID.SELECT), t._resetInsertionMode(), e.tagID !== h.TAG_ID.SELECT && t._processStartTag(e));
                        break;
                    case h.TAG_ID.SCRIPT:
                    case h.TAG_ID.TEMPLATE:
                        O(t, e)
                }
            }

            function ut(t, e) {
                switch (e.tagID) {
                    case h.TAG_ID.OPTGROUP:
                        t.openElements.stackTop > 0 && t.openElements.currentTagId === h.TAG_ID.OPTION && t.openElements.tagIDs[t.openElements.stackTop - 1] === h.TAG_ID.OPTGROUP && t.openElements.pop(), t.openElements.currentTagId === h.TAG_ID.OPTGROUP && t.openElements.pop();
                        break;
                    case h.TAG_ID.OPTION:
                        t.openElements.currentTagId === h.TAG_ID.OPTION && t.openElements.pop();
                        break;
                    case h.TAG_ID.SELECT:
                        t.openElements.hasInSelectScope(h.TAG_ID.SELECT) && (t.openElements.popUntilTagNamePopped(h.TAG_ID.SELECT), t._resetInsertionMode());
                        break;
                    case h.TAG_ID.TEMPLATE:
                        L(t, e)
                }
            }

            function ct(t, e) {
                t.openElements.tmplCount > 0 ? (t.openElements.popUntilTagNamePopped(h.TAG_ID.TEMPLATE), t.activeFormattingElements.clearToLastMarker(), t.tmplInsertionModeStack.shift(), t._resetInsertionMode(), t.onEof(e)) : D(t, e)
            }

            function ht(t, e) {
                var n;
                if (e.tagID === h.TAG_ID.HTML) {
                    if (t.fragmentContext || (t.insertionMode = m.AFTER_AFTER_BODY), t.options.sourceCodeLocationInfo && t.openElements.tagIDs[0] === h.TAG_ID.HTML) {
                        t._setEndLocation(t.openElements.items[0], e);
                        const i = t.openElements.items[1];
                        i && !(null === (n = t.treeAdapter.getNodeSourceCodeLocation(i)) || void 0 === n ? void 0 : n.endTag) && t._setEndLocation(i, e)
                    }
                } else dt(t, e)
            }

            function dt(t, e) {
                t.insertionMode = m.IN_BODY, G(t, e)
            }

            function pt(t, e) {
                t.insertionMode = m.IN_BODY, G(t, e)
            }

            function ft(t) {
                for (; t.treeAdapter.getNamespaceURI(t.openElements.current) !== h.NS.HTML && !t._isIntegrationPoint(t.openElements.currentTagId, t.openElements.current);) t.openElements.pop()
            }
        }, 59: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.OpenElementStack = void 0;
            const i = n(7618),
                r = new Set([i.TAG_ID.DD, i.TAG_ID.DT, i.TAG_ID.LI, i.TAG_ID.OPTGROUP, i.TAG_ID.OPTION, i.TAG_ID.P, i.TAG_ID.RB, i.TAG_ID.RP, i.TAG_ID.RT, i.TAG_ID.RTC]),
                o = new Set([...r, i.TAG_ID.CAPTION, i.TAG_ID.COLGROUP, i.TAG_ID.TBODY, i.TAG_ID.TD, i.TAG_ID.TFOOT, i.TAG_ID.TH, i.TAG_ID.THEAD, i.TAG_ID.TR]),
                a = new Map([[i.TAG_ID.APPLET, i.NS.HTML], [i.TAG_ID.CAPTION, i.NS.HTML], [i.TAG_ID.HTML, i.NS.HTML], [i.TAG_ID.MARQUEE, i.NS.HTML], [i.TAG_ID.OBJECT, i.NS.HTML], [i.TAG_ID.TABLE, i.NS.HTML], [i.TAG_ID.TD, i.NS.HTML], [i.TAG_ID.TEMPLATE, i.NS.HTML], [i.TAG_ID.TH, i.NS.HTML], [i.TAG_ID.ANNOTATION_XML, i.NS.MATHML], [i.TAG_ID.MI, i.NS.MATHML], [i.TAG_ID.MN, i.NS.MATHML], [i.TAG_ID.MO, i.NS.MATHML], [i.TAG_ID.MS, i.NS.MATHML], [i.TAG_ID.MTEXT, i.NS.MATHML], [i.TAG_ID.DESC, i.NS.SVG], [i.TAG_ID.FOREIGN_OBJECT, i.NS.SVG], [i.TAG_ID.TITLE, i.NS.SVG]]),
                s = [i.TAG_ID.H1, i.TAG_ID.H2, i.TAG_ID.H3, i.TAG_ID.H4, i.TAG_ID.H5, i.TAG_ID.H6],
                l = [i.TAG_ID.TR, i.TAG_ID.TEMPLATE, i.TAG_ID.HTML],
                u = [i.TAG_ID.TBODY, i.TAG_ID.TFOOT, i.TAG_ID.THEAD, i.TAG_ID.TEMPLATE, i.TAG_ID.HTML],
                c = [i.TAG_ID.TABLE, i.TAG_ID.TEMPLATE, i.TAG_ID.HTML], h = [i.TAG_ID.TD, i.TAG_ID.TH];
            e.OpenElementStack = class {
                get currentTmplContentOrNode() {
                    return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current
                }

                constructor(t, e, n) {
                    this.treeAdapter = e, this.handler = n, this.items = [], this.tagIDs = [], this.stackTop = -1, this.tmplCount = 0, this.currentTagId = i.TAG_ID.UNKNOWN, this.current = t
                }

                _indexOf(t) {
                    return this.items.lastIndexOf(t, this.stackTop)
                }

                _isInTemplate() {
                    return this.currentTagId === i.TAG_ID.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === i.NS.HTML
                }

                _updateCurrentElement() {
                    this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop]
                }

                push(t, e) {
                    this.stackTop++, this.items[this.stackTop] = t, this.current = t, this.tagIDs[this.stackTop] = e, this.currentTagId = e, this._isInTemplate() && this.tmplCount++, this.handler.onItemPush(t, e, !0)
                }

                pop() {
                    const t = this.current;
                    this.tmplCount > 0 && this._isInTemplate() && this.tmplCount--, this.stackTop--, this._updateCurrentElement(), this.handler.onItemPop(t, !0)
                }

                replace(t, e) {
                    const n = this._indexOf(t);
                    this.items[n] = e, n === this.stackTop && (this.current = e)
                }

                insertAfter(t, e, n) {
                    const i = this._indexOf(t) + 1;
                    this.items.splice(i, 0, e), this.tagIDs.splice(i, 0, n), this.stackTop++, i === this.stackTop && this._updateCurrentElement(), this.handler.onItemPush(this.current, this.currentTagId, i === this.stackTop)
                }

                popUntilTagNamePopped(t) {
                    let e = this.stackTop + 1;
                    do {
                        e = this.tagIDs.lastIndexOf(t, e - 1)
                    } while (e > 0 && this.treeAdapter.getNamespaceURI(this.items[e]) !== i.NS.HTML);
                    this.shortenToLength(e < 0 ? 0 : e)
                }

                shortenToLength(t) {
                    for (; this.stackTop >= t;) {
                        const e = this.current;
                        this.tmplCount > 0 && this._isInTemplate() && (this.tmplCount -= 1), this.stackTop--, this._updateCurrentElement(), this.handler.onItemPop(e, this.stackTop < t)
                    }
                }

                popUntilElementPopped(t) {
                    const e = this._indexOf(t);
                    this.shortenToLength(e < 0 ? 0 : e)
                }

                popUntilPopped(t, e) {
                    const n = this._indexOfTagNames(t, e);
                    this.shortenToLength(n < 0 ? 0 : n)
                }

                popUntilNumberedHeaderPopped() {
                    this.popUntilPopped(s, i.NS.HTML)
                }

                popUntilTableCellPopped() {
                    this.popUntilPopped(h, i.NS.HTML)
                }

                popAllUpToHtmlElement() {
                    this.tmplCount = 0, this.shortenToLength(1)
                }

                _indexOfTagNames(t, e) {
                    for (let n = this.stackTop; n >= 0; n--) if (t.includes(this.tagIDs[n]) && this.treeAdapter.getNamespaceURI(this.items[n]) === e) return n;
                    return -1
                }

                clearBackTo(t, e) {
                    const n = this._indexOfTagNames(t, e);
                    this.shortenToLength(n + 1)
                }

                clearBackToTableContext() {
                    this.clearBackTo(c, i.NS.HTML)
                }

                clearBackToTableBodyContext() {
                    this.clearBackTo(u, i.NS.HTML)
                }

                clearBackToTableRowContext() {
                    this.clearBackTo(l, i.NS.HTML)
                }

                remove(t) {
                    const e = this._indexOf(t);
                    e >= 0 && (e === this.stackTop ? this.pop() : (this.items.splice(e, 1), this.tagIDs.splice(e, 1), this.stackTop--, this._updateCurrentElement(), this.handler.onItemPop(t, !1)))
                }

                tryPeekProperlyNestedBodyElement() {
                    return this.stackTop >= 1 && this.tagIDs[1] === i.TAG_ID.BODY ? this.items[1] : null
                }

                contains(t) {
                    return this._indexOf(t) > -1
                }

                getCommonAncestor(t) {
                    const e = this._indexOf(t) - 1;
                    return e >= 0 ? this.items[e] : null
                }

                isRootHtmlElementCurrent() {
                    return 0 === this.stackTop && this.tagIDs[0] === i.TAG_ID.HTML
                }

                hasInScope(t) {
                    for (let e = this.stackTop; e >= 0; e--) {
                        const n = this.tagIDs[e], r = this.treeAdapter.getNamespaceURI(this.items[e]);
                        if (n === t && r === i.NS.HTML) return !0;
                        if (a.get(n) === r) return !1
                    }
                    return !0
                }

                hasNumberedHeaderInScope() {
                    for (let t = this.stackTop; t >= 0; t--) {
                        const e = this.tagIDs[t], n = this.treeAdapter.getNamespaceURI(this.items[t]);
                        if ((0, i.isNumberedHeader)(e) && n === i.NS.HTML) return !0;
                        if (a.get(e) === n) return !1
                    }
                    return !0
                }

                hasInListItemScope(t) {
                    for (let e = this.stackTop; e >= 0; e--) {
                        const n = this.tagIDs[e], r = this.treeAdapter.getNamespaceURI(this.items[e]);
                        if (n === t && r === i.NS.HTML) return !0;
                        if ((n === i.TAG_ID.UL || n === i.TAG_ID.OL) && r === i.NS.HTML || a.get(n) === r) return !1
                    }
                    return !0
                }

                hasInButtonScope(t) {
                    for (let e = this.stackTop; e >= 0; e--) {
                        const n = this.tagIDs[e], r = this.treeAdapter.getNamespaceURI(this.items[e]);
                        if (n === t && r === i.NS.HTML) return !0;
                        if (n === i.TAG_ID.BUTTON && r === i.NS.HTML || a.get(n) === r) return !1
                    }
                    return !0
                }

                hasInTableScope(t) {
                    for (let e = this.stackTop; e >= 0; e--) {
                        const n = this.tagIDs[e];
                        if (this.treeAdapter.getNamespaceURI(this.items[e]) === i.NS.HTML) {
                            if (n === t) return !0;
                            if (n === i.TAG_ID.TABLE || n === i.TAG_ID.TEMPLATE || n === i.TAG_ID.HTML) return !1
                        }
                    }
                    return !0
                }

                hasTableBodyContextInTableScope() {
                    for (let t = this.stackTop; t >= 0; t--) {
                        const e = this.tagIDs[t];
                        if (this.treeAdapter.getNamespaceURI(this.items[t]) === i.NS.HTML) {
                            if (e === i.TAG_ID.TBODY || e === i.TAG_ID.THEAD || e === i.TAG_ID.TFOOT) return !0;
                            if (e === i.TAG_ID.TABLE || e === i.TAG_ID.HTML) return !1
                        }
                    }
                    return !0
                }

                hasInSelectScope(t) {
                    for (let e = this.stackTop; e >= 0; e--) {
                        const n = this.tagIDs[e];
                        if (this.treeAdapter.getNamespaceURI(this.items[e]) === i.NS.HTML) {
                            if (n === t) return !0;
                            if (n !== i.TAG_ID.OPTION && n !== i.TAG_ID.OPTGROUP) return !1
                        }
                    }
                    return !0
                }

                generateImpliedEndTags() {
                    for (; r.has(this.currentTagId);) this.pop()
                }

                generateImpliedEndTagsThoroughly() {
                    for (; o.has(this.currentTagId);) this.pop()
                }

                generateImpliedEndTagsWithExclusion(t) {
                    for (; this.currentTagId !== t && o.has(this.currentTagId);) this.pop()
                }
            }
        }, 4402: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.serializeOuter = e.serialize = void 0;
            const i = n(7618), r = n(4625), o = n(212),
                a = new Set([i.TAG_NAMES.AREA, i.TAG_NAMES.BASE, i.TAG_NAMES.BASEFONT, i.TAG_NAMES.BGSOUND, i.TAG_NAMES.BR, i.TAG_NAMES.COL, i.TAG_NAMES.EMBED, i.TAG_NAMES.FRAME, i.TAG_NAMES.HR, i.TAG_NAMES.IMG, i.TAG_NAMES.INPUT, i.TAG_NAMES.KEYGEN, i.TAG_NAMES.LINK, i.TAG_NAMES.META, i.TAG_NAMES.PARAM, i.TAG_NAMES.SOURCE, i.TAG_NAMES.TRACK, i.TAG_NAMES.WBR]);

            function s(t, e) {
                return e.treeAdapter.isElementNode(t) && e.treeAdapter.getNamespaceURI(t) === i.NS.HTML && a.has(e.treeAdapter.getTagName(t))
            }

            const l = {treeAdapter: o.defaultTreeAdapter, scriptingEnabled: !0};

            function u(t, e) {
                let n = "";
                const r = e.treeAdapter.isElementNode(t) && e.treeAdapter.getTagName(t) === i.TAG_NAMES.TEMPLATE && e.treeAdapter.getNamespaceURI(t) === i.NS.HTML ? e.treeAdapter.getTemplateContent(t) : t,
                    o = e.treeAdapter.getChildNodes(r);
                if (o) for (const t of o) n += c(t, e);
                return n
            }

            function c(t, e) {
                return e.treeAdapter.isElementNode(t) ? function (t, e) {
                    const n = e.treeAdapter.getTagName(t);
                    return `<${n}${function (t, {treeAdapter: e}) {
                        let n = "";
                        for (const o of e.getAttrList(t)) {
                            if (n += " ", o.namespace) switch (o.namespace) {
                                case i.NS.XML:
                                    n += `xml:${o.name}`;
                                    break;
                                case i.NS.XMLNS:
                                    "xmlns" !== o.name && (n += "xmlns:"), n += o.name;
                                    break;
                                case i.NS.XLINK:
                                    n += `xlink:${o.name}`;
                                    break;
                                default:
                                    n += `${o.prefix}:${o.name}`
                            } else n += o.name;
                            n += `="${(0, r.escapeAttribute)(o.value)}"`
                        }
                        return n
                    }(t, e)}>${s(t, e) ? "" : `${u(t, e)}</${n}>`}`
                }(t, e) : e.treeAdapter.isTextNode(t) ? function (t, e) {
                    const {treeAdapter: n} = e, o = n.getTextNodeContent(t), a = n.getParentNode(t),
                        s = a && n.isElementNode(a) && n.getTagName(a);
                    return s && n.getNamespaceURI(a) === i.NS.HTML && (0, i.hasUnescapedText)(s, e.scriptingEnabled) ? o : (0, r.escapeText)(o)
                }(t, e) : e.treeAdapter.isCommentNode(t) ? function (t, {treeAdapter: e}) {
                    return `\x3c!--${e.getCommentNodeContent(t)}--\x3e`
                }(t, e) : e.treeAdapter.isDocumentTypeNode(t) ? function (t, {treeAdapter: e}) {
                    return `<!DOCTYPE ${e.getDocumentTypeNodeName(t)}>`
                }(t, e) : ""
            }

            e.serialize = function (t, e) {
                const n = Object.assign(Object.assign({}, l), e);
                return s(t, n) ? "" : u(t, n)
            }, e.serializeOuter = function (t, e) {
                return c(t, Object.assign(Object.assign({}, l), e))
            }
        }, 3675: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.Tokenizer = e.TokenizerMode = void 0;
            const i = n(1171), r = n(6222), o = n(4961), a = n(4076), s = n(2799), l = n(7618),
                u = new Map([[128, 8364], [130, 8218], [131, 402], [132, 8222], [133, 8230], [134, 8224], [135, 8225], [136, 710], [137, 8240], [138, 352], [139, 8249], [140, 338], [142, 381], [145, 8216], [146, 8217], [147, 8220], [148, 8221], [149, 8226], [150, 8211], [151, 8212], [152, 732], [153, 8482], [154, 353], [155, 8250], [156, 339], [158, 382], [159, 376]]);
            var c;

            function h(t) {
                return t >= r.CODE_POINTS.DIGIT_0 && t <= r.CODE_POINTS.DIGIT_9
            }

            function d(t) {
                return t >= r.CODE_POINTS.LATIN_CAPITAL_A && t <= r.CODE_POINTS.LATIN_CAPITAL_Z
            }

            function p(t) {
                return function (t) {
                    return t >= r.CODE_POINTS.LATIN_SMALL_A && t <= r.CODE_POINTS.LATIN_SMALL_Z
                }(t) || d(t)
            }

            function f(t) {
                return p(t) || h(t)
            }

            function g(t) {
                return t >= r.CODE_POINTS.LATIN_CAPITAL_A && t <= r.CODE_POINTS.LATIN_CAPITAL_F
            }

            function m(t) {
                return t >= r.CODE_POINTS.LATIN_SMALL_A && t <= r.CODE_POINTS.LATIN_SMALL_F
            }

            function y(t) {
                return t + 32
            }

            function v(t) {
                return t === r.CODE_POINTS.SPACE || t === r.CODE_POINTS.LINE_FEED || t === r.CODE_POINTS.TABULATION || t === r.CODE_POINTS.FORM_FEED
            }

            function _(t) {
                return v(t) || t === r.CODE_POINTS.SOLIDUS || t === r.CODE_POINTS.GREATER_THAN_SIGN
            }

            !function (t) {
                t[t.DATA = 0] = "DATA", t[t.RCDATA = 1] = "RCDATA", t[t.RAWTEXT = 2] = "RAWTEXT", t[t.SCRIPT_DATA = 3] = "SCRIPT_DATA", t[t.PLAINTEXT = 4] = "PLAINTEXT", t[t.TAG_OPEN = 5] = "TAG_OPEN", t[t.END_TAG_OPEN = 6] = "END_TAG_OPEN", t[t.TAG_NAME = 7] = "TAG_NAME", t[t.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", t[t.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", t[t.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", t[t.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", t[t.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", t[t.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", t[t.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", t[t.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", t[t.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", t[t.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", t[t.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", t[t.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", t[t.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", t[t.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", t[t.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", t[t.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", t[t.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", t[t.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", t[t.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", t[t.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", t[t.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", t[t.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", t[t.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", t[t.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", t[t.COMMENT_START = 42] = "COMMENT_START", t[t.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", t[t.COMMENT = 44] = "COMMENT", t[t.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", t[t.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", t[t.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", t[t.COMMENT_END = 50] = "COMMENT_END", t[t.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", t[t.DOCTYPE = 52] = "DOCTYPE", t[t.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", t[t.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", t[t.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", t[t.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", t[t.CDATA_SECTION = 68] = "CDATA_SECTION", t[t.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", t[t.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", t[t.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", t[t.NAMED_CHARACTER_REFERENCE = 72] = "NAMED_CHARACTER_REFERENCE", t[t.AMBIGUOUS_AMPERSAND = 73] = "AMBIGUOUS_AMPERSAND", t[t.NUMERIC_CHARACTER_REFERENCE = 74] = "NUMERIC_CHARACTER_REFERENCE", t[t.HEXADEMICAL_CHARACTER_REFERENCE_START = 75] = "HEXADEMICAL_CHARACTER_REFERENCE_START", t[t.HEXADEMICAL_CHARACTER_REFERENCE = 76] = "HEXADEMICAL_CHARACTER_REFERENCE", t[t.DECIMAL_CHARACTER_REFERENCE = 77] = "DECIMAL_CHARACTER_REFERENCE", t[t.NUMERIC_CHARACTER_REFERENCE_END = 78] = "NUMERIC_CHARACTER_REFERENCE_END"
            }(c || (c = {})), e.TokenizerMode = {
                DATA: c.DATA,
                RCDATA: c.RCDATA,
                RAWTEXT: c.RAWTEXT,
                SCRIPT_DATA: c.SCRIPT_DATA,
                PLAINTEXT: c.PLAINTEXT,
                CDATA_SECTION: c.CDATA_SECTION
            };
            e.Tokenizer = class {
                constructor(t, e) {
                    this.options = t, this.handler = e, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state = c.DATA, this.returnState = c.DATA, this.charRefCode = -1, this.consumedAfterSnapshot = -1, this.currentCharacterToken = null, this.currentToken = null, this.currentAttr = {
                        name: "",
                        value: ""
                    }, this.preprocessor = new i.Preprocessor(e), this.currentLocation = this.getCurrentLocation(-1)
                }

                _err(t) {
                    var e, n;
                    null === (n = (e = this.handler).onParseError) || void 0 === n || n.call(e, this.preprocessor.getError(t))
                }

                getCurrentLocation(t) {
                    return this.options.sourceCodeLocationInfo ? {
                        startLine: this.preprocessor.line,
                        startCol: this.preprocessor.col - t,
                        startOffset: this.preprocessor.offset - t,
                        endLine: -1,
                        endCol: -1,
                        endOffset: -1
                    } : null
                }

                _runParsingLoop() {
                    if (!this.inLoop) {
                        for (this.inLoop = !0; this.active && !this.paused;) {
                            this.consumedAfterSnapshot = 0;
                            const t = this._consume();
                            this._ensureHibernation() || this._callState(t)
                        }
                        this.inLoop = !1
                    }
                }

                pause() {
                    this.paused = !0
                }

                resume(t) {
                    if (!this.paused) throw new Error("Parser was already resumed");
                    this.paused = !1, this.inLoop || (this._runParsingLoop(), this.paused || null == t || t())
                }

                write(t, e, n) {
                    this.active = !0, this.preprocessor.write(t, e), this._runParsingLoop(), this.paused || null == n || n()
                }

                insertHtmlAtCurrentPos(t) {
                    this.active = !0, this.preprocessor.insertHtmlAtCurrentPos(t), this._runParsingLoop()
                }

                _ensureHibernation() {
                    return !!this.preprocessor.endOfChunkHit && (this._unconsume(this.consumedAfterSnapshot), this.active = !1, !0)
                }

                _consume() {
                    return this.consumedAfterSnapshot++, this.preprocessor.advance()
                }

                _unconsume(t) {
                    this.consumedAfterSnapshot -= t, this.preprocessor.retreat(t)
                }

                _reconsumeInState(t, e) {
                    this.state = t, this._callState(e)
                }

                _advanceBy(t) {
                    this.consumedAfterSnapshot += t;
                    for (let e = 0; e < t; e++) this.preprocessor.advance()
                }

                _consumeSequenceIfMatch(t, e) {
                    return !!this.preprocessor.startsWith(t, e) && (this._advanceBy(t.length - 1), !0)
                }

                _createStartTagToken() {
                    this.currentToken = {
                        type: o.TokenType.START_TAG,
                        tagName: "",
                        tagID: l.TAG_ID.UNKNOWN,
                        selfClosing: !1,
                        ackSelfClosing: !1,
                        attrs: [],
                        location: this.getCurrentLocation(1)
                    }
                }

                _createEndTagToken() {
                    this.currentToken = {
                        type: o.TokenType.END_TAG,
                        tagName: "",
                        tagID: l.TAG_ID.UNKNOWN,
                        selfClosing: !1,
                        ackSelfClosing: !1,
                        attrs: [],
                        location: this.getCurrentLocation(2)
                    }
                }

                _createCommentToken(t) {
                    this.currentToken = {type: o.TokenType.COMMENT, data: "", location: this.getCurrentLocation(t)}
                }

                _createDoctypeToken(t) {
                    this.currentToken = {
                        type: o.TokenType.DOCTYPE,
                        name: t,
                        forceQuirks: !1,
                        publicId: null,
                        systemId: null,
                        location: this.currentLocation
                    }
                }

                _createCharacterToken(t, e) {
                    this.currentCharacterToken = {type: t, chars: e, location: this.currentLocation}
                }

                _createAttr(t) {
                    this.currentAttr = {name: t, value: ""}, this.currentLocation = this.getCurrentLocation(0)
                }

                _leaveAttrName() {
                    var t, e;
                    const n = this.currentToken;
                    if (null === (0, o.getTokenAttr)(n, this.currentAttr.name)) {
                        if (n.attrs.push(this.currentAttr), n.location && this.currentLocation) {
                            (null !== (t = (e = n.location).attrs) && void 0 !== t ? t : e.attrs = Object.create(null))[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue()
                        }
                    } else this._err(s.ERR.duplicateAttribute)
                }

                _leaveAttrValue() {
                    this.currentLocation && (this.currentLocation.endLine = this.preprocessor.line, this.currentLocation.endCol = this.preprocessor.col, this.currentLocation.endOffset = this.preprocessor.offset)
                }

                prepareToken(t) {
                    this._emitCurrentCharacterToken(t.location), this.currentToken = null, t.location && (t.location.endLine = this.preprocessor.line, t.location.endCol = this.preprocessor.col + 1, t.location.endOffset = this.preprocessor.offset + 1), this.currentLocation = this.getCurrentLocation(-1)
                }

                emitCurrentTagToken() {
                    const t = this.currentToken;
                    this.prepareToken(t), t.tagID = (0, l.getTagID)(t.tagName), t.type === o.TokenType.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(s.ERR.endTagWithAttributes), t.selfClosing && this._err(s.ERR.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk()
                }

                emitCurrentComment(t) {
                    this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk()
                }

                emitCurrentDoctype(t) {
                    this.prepareToken(t), this.handler.onDoctype(t), this.preprocessor.dropParsedChunk()
                }

                _emitCurrentCharacterToken(t) {
                    if (this.currentCharacterToken) {
                        switch (t && this.currentCharacterToken.location && (this.currentCharacterToken.location.endLine = t.startLine, this.currentCharacterToken.location.endCol = t.startCol, this.currentCharacterToken.location.endOffset = t.startOffset), this.currentCharacterToken.type) {
                            case o.TokenType.CHARACTER:
                                this.handler.onCharacter(this.currentCharacterToken);
                                break;
                            case o.TokenType.NULL_CHARACTER:
                                this.handler.onNullCharacter(this.currentCharacterToken);
                                break;
                            case o.TokenType.WHITESPACE_CHARACTER:
                                this.handler.onWhitespaceCharacter(this.currentCharacterToken)
                        }
                        this.currentCharacterToken = null
                    }
                }

                _emitEOFToken() {
                    const t = this.getCurrentLocation(0);
                    t && (t.endLine = t.startLine, t.endCol = t.startCol, t.endOffset = t.startOffset), this._emitCurrentCharacterToken(t), this.handler.onEof({
                        type: o.TokenType.EOF,
                        location: t
                    }), this.active = !1
                }

                _appendCharToCurrentCharacterToken(t, e) {
                    if (this.currentCharacterToken) {
                        if (this.currentCharacterToken.type === t) return void (this.currentCharacterToken.chars += e);
                        this.currentLocation = this.getCurrentLocation(0), this._emitCurrentCharacterToken(this.currentLocation), this.preprocessor.dropParsedChunk()
                    }
                    this._createCharacterToken(t, e)
                }

                _emitCodePoint(t) {
                    const e = v(t) ? o.TokenType.WHITESPACE_CHARACTER : t === r.CODE_POINTS.NULL ? o.TokenType.NULL_CHARACTER : o.TokenType.CHARACTER;
                    this._appendCharToCurrentCharacterToken(e, String.fromCodePoint(t))
                }

                _emitChars(t) {
                    this._appendCharToCurrentCharacterToken(o.TokenType.CHARACTER, t)
                }

                _matchNamedCharacterReference(t) {
                    let e = null, n = 0, i = !1;
                    for (let s = 0, l = a.htmlDecodeTree[0]; s >= 0 && (s = (0, a.determineBranch)(a.htmlDecodeTree, l, s + 1, t), !(s < 0)); t = this._consume()) {
                        n += 1, l = a.htmlDecodeTree[s];
                        const u = l & a.BinTrieFlags.VALUE_LENGTH;
                        if (u) {
                            const l = (u >> 14) - 1;
                            if (t !== r.CODE_POINTS.SEMICOLON && this._isCharacterReferenceInAttribute() && ((o = this.preprocessor.peek(1)) === r.CODE_POINTS.EQUALS_SIGN || f(o)) ? (e = [r.CODE_POINTS.AMPERSAND], s += l) : (e = 0 === l ? [a.htmlDecodeTree[s] & ~a.BinTrieFlags.VALUE_LENGTH] : 1 === l ? [a.htmlDecodeTree[++s]] : [a.htmlDecodeTree[++s], a.htmlDecodeTree[++s]], n = 0, i = t !== r.CODE_POINTS.SEMICOLON), 0 === l) {
                                this._consume();
                                break
                            }
                        }
                    }
                    var o;
                    return this._unconsume(n), i && !this.preprocessor.endOfChunkHit && this._err(s.ERR.missingSemicolonAfterCharacterReference), this._unconsume(1), e
                }

                _isCharacterReferenceInAttribute() {
                    return this.returnState === c.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === c.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === c.ATTRIBUTE_VALUE_UNQUOTED
                }

                _flushCodePointConsumedAsCharacterReference(t) {
                    this._isCharacterReferenceInAttribute() ? this.currentAttr.value += String.fromCodePoint(t) : this._emitCodePoint(t)
                }

                _callState(t) {
                    switch (this.state) {
                        case c.DATA:
                            this._stateData(t);
                            break;
                        case c.RCDATA:
                            this._stateRcdata(t);
                            break;
                        case c.RAWTEXT:
                            this._stateRawtext(t);
                            break;
                        case c.SCRIPT_DATA:
                            this._stateScriptData(t);
                            break;
                        case c.PLAINTEXT:
                            this._statePlaintext(t);
                            break;
                        case c.TAG_OPEN:
                            this._stateTagOpen(t);
                            break;
                        case c.END_TAG_OPEN:
                            this._stateEndTagOpen(t);
                            break;
                        case c.TAG_NAME:
                            this._stateTagName(t);
                            break;
                        case c.RCDATA_LESS_THAN_SIGN:
                            this._stateRcdataLessThanSign(t);
                            break;
                        case c.RCDATA_END_TAG_OPEN:
                            this._stateRcdataEndTagOpen(t);
                            break;
                        case c.RCDATA_END_TAG_NAME:
                            this._stateRcdataEndTagName(t);
                            break;
                        case c.RAWTEXT_LESS_THAN_SIGN:
                            this._stateRawtextLessThanSign(t);
                            break;
                        case c.RAWTEXT_END_TAG_OPEN:
                            this._stateRawtextEndTagOpen(t);
                            break;
                        case c.RAWTEXT_END_TAG_NAME:
                            this._stateRawtextEndTagName(t);
                            break;
                        case c.SCRIPT_DATA_LESS_THAN_SIGN:
                            this._stateScriptDataLessThanSign(t);
                            break;
                        case c.SCRIPT_DATA_END_TAG_OPEN:
                            this._stateScriptDataEndTagOpen(t);
                            break;
                        case c.SCRIPT_DATA_END_TAG_NAME:
                            this._stateScriptDataEndTagName(t);
                            break;
                        case c.SCRIPT_DATA_ESCAPE_START:
                            this._stateScriptDataEscapeStart(t);
                            break;
                        case c.SCRIPT_DATA_ESCAPE_START_DASH:
                            this._stateScriptDataEscapeStartDash(t);
                            break;
                        case c.SCRIPT_DATA_ESCAPED:
                            this._stateScriptDataEscaped(t);
                            break;
                        case c.SCRIPT_DATA_ESCAPED_DASH:
                            this._stateScriptDataEscapedDash(t);
                            break;
                        case c.SCRIPT_DATA_ESCAPED_DASH_DASH:
                            this._stateScriptDataEscapedDashDash(t);
                            break;
                        case c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:
                            this._stateScriptDataEscapedLessThanSign(t);
                            break;
                        case c.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:
                            this._stateScriptDataEscapedEndTagOpen(t);
                            break;
                        case c.SCRIPT_DATA_ESCAPED_END_TAG_NAME:
                            this._stateScriptDataEscapedEndTagName(t);
                            break;
                        case c.SCRIPT_DATA_DOUBLE_ESCAPE_START:
                            this._stateScriptDataDoubleEscapeStart(t);
                            break;
                        case c.SCRIPT_DATA_DOUBLE_ESCAPED:
                            this._stateScriptDataDoubleEscaped(t);
                            break;
                        case c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:
                            this._stateScriptDataDoubleEscapedDash(t);
                            break;
                        case c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:
                            this._stateScriptDataDoubleEscapedDashDash(t);
                            break;
                        case c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:
                            this._stateScriptDataDoubleEscapedLessThanSign(t);
                            break;
                        case c.SCRIPT_DATA_DOUBLE_ESCAPE_END:
                            this._stateScriptDataDoubleEscapeEnd(t);
                            break;
                        case c.BEFORE_ATTRIBUTE_NAME:
                            this._stateBeforeAttributeName(t);
                            break;
                        case c.ATTRIBUTE_NAME:
                            this._stateAttributeName(t);
                            break;
                        case c.AFTER_ATTRIBUTE_NAME:
                            this._stateAfterAttributeName(t);
                            break;
                        case c.BEFORE_ATTRIBUTE_VALUE:
                            this._stateBeforeAttributeValue(t);
                            break;
                        case c.ATTRIBUTE_VALUE_DOUBLE_QUOTED:
                            this._stateAttributeValueDoubleQuoted(t);
                            break;
                        case c.ATTRIBUTE_VALUE_SINGLE_QUOTED:
                            this._stateAttributeValueSingleQuoted(t);
                            break;
                        case c.ATTRIBUTE_VALUE_UNQUOTED:
                            this._stateAttributeValueUnquoted(t);
                            break;
                        case c.AFTER_ATTRIBUTE_VALUE_QUOTED:
                            this._stateAfterAttributeValueQuoted(t);
                            break;
                        case c.SELF_CLOSING_START_TAG:
                            this._stateSelfClosingStartTag(t);
                            break;
                        case c.BOGUS_COMMENT:
                            this._stateBogusComment(t);
                            break;
                        case c.MARKUP_DECLARATION_OPEN:
                            this._stateMarkupDeclarationOpen(t);
                            break;
                        case c.COMMENT_START:
                            this._stateCommentStart(t);
                            break;
                        case c.COMMENT_START_DASH:
                            this._stateCommentStartDash(t);
                            break;
                        case c.COMMENT:
                            this._stateComment(t);
                            break;
                        case c.COMMENT_LESS_THAN_SIGN:
                            this._stateCommentLessThanSign(t);
                            break;
                        case c.COMMENT_LESS_THAN_SIGN_BANG:
                            this._stateCommentLessThanSignBang(t);
                            break;
                        case c.COMMENT_LESS_THAN_SIGN_BANG_DASH:
                            this._stateCommentLessThanSignBangDash(t);
                            break;
                        case c.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:
                            this._stateCommentLessThanSignBangDashDash(t);
                            break;
                        case c.COMMENT_END_DASH:
                            this._stateCommentEndDash(t);
                            break;
                        case c.COMMENT_END:
                            this._stateCommentEnd(t);
                            break;
                        case c.COMMENT_END_BANG:
                            this._stateCommentEndBang(t);
                            break;
                        case c.DOCTYPE:
                            this._stateDoctype(t);
                            break;
                        case c.BEFORE_DOCTYPE_NAME:
                            this._stateBeforeDoctypeName(t);
                            break;
                        case c.DOCTYPE_NAME:
                            this._stateDoctypeName(t);
                            break;
                        case c.AFTER_DOCTYPE_NAME:
                            this._stateAfterDoctypeName(t);
                            break;
                        case c.AFTER_DOCTYPE_PUBLIC_KEYWORD:
                            this._stateAfterDoctypePublicKeyword(t);
                            break;
                        case c.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:
                            this._stateBeforeDoctypePublicIdentifier(t);
                            break;
                        case c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:
                            this._stateDoctypePublicIdentifierDoubleQuoted(t);
                            break;
                        case c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:
                            this._stateDoctypePublicIdentifierSingleQuoted(t);
                            break;
                        case c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:
                            this._stateAfterDoctypePublicIdentifier(t);
                            break;
                        case c.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:
                            this._stateBetweenDoctypePublicAndSystemIdentifiers(t);
                            break;
                        case c.AFTER_DOCTYPE_SYSTEM_KEYWORD:
                            this._stateAfterDoctypeSystemKeyword(t);
                            break;
                        case c.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:
                            this._stateBeforeDoctypeSystemIdentifier(t);
                            break;
                        case c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:
                            this._stateDoctypeSystemIdentifierDoubleQuoted(t);
                            break;
                        case c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:
                            this._stateDoctypeSystemIdentifierSingleQuoted(t);
                            break;
                        case c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:
                            this._stateAfterDoctypeSystemIdentifier(t);
                            break;
                        case c.BOGUS_DOCTYPE:
                            this._stateBogusDoctype(t);
                            break;
                        case c.CDATA_SECTION:
                            this._stateCdataSection(t);
                            break;
                        case c.CDATA_SECTION_BRACKET:
                            this._stateCdataSectionBracket(t);
                            break;
                        case c.CDATA_SECTION_END:
                            this._stateCdataSectionEnd(t);
                            break;
                        case c.CHARACTER_REFERENCE:
                            this._stateCharacterReference(t);
                            break;
                        case c.NAMED_CHARACTER_REFERENCE:
                            this._stateNamedCharacterReference(t);
                            break;
                        case c.AMBIGUOUS_AMPERSAND:
                            this._stateAmbiguousAmpersand(t);
                            break;
                        case c.NUMERIC_CHARACTER_REFERENCE:
                            this._stateNumericCharacterReference(t);
                            break;
                        case c.HEXADEMICAL_CHARACTER_REFERENCE_START:
                            this._stateHexademicalCharacterReferenceStart(t);
                            break;
                        case c.HEXADEMICAL_CHARACTER_REFERENCE:
                            this._stateHexademicalCharacterReference(t);
                            break;
                        case c.DECIMAL_CHARACTER_REFERENCE:
                            this._stateDecimalCharacterReference(t);
                            break;
                        case c.NUMERIC_CHARACTER_REFERENCE_END:
                            this._stateNumericCharacterReferenceEnd(t);
                            break;
                        default:
                            throw new Error("Unknown state")
                    }
                }

                _stateData(t) {
                    switch (t) {
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.TAG_OPEN;
                            break;
                        case r.CODE_POINTS.AMPERSAND:
                            this.returnState = c.DATA, this.state = c.CHARACTER_REFERENCE;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this._emitCodePoint(t);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._emitEOFToken();
                            break;
                        default:
                            this._emitCodePoint(t)
                    }
                }

                _stateRcdata(t) {
                    switch (t) {
                        case r.CODE_POINTS.AMPERSAND:
                            this.returnState = c.RCDATA, this.state = c.CHARACTER_REFERENCE;
                            break;
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.RCDATA_LESS_THAN_SIGN;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._emitEOFToken();
                            break;
                        default:
                            this._emitCodePoint(t)
                    }
                }

                _stateRawtext(t) {
                    switch (t) {
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.RAWTEXT_LESS_THAN_SIGN;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._emitEOFToken();
                            break;
                        default:
                            this._emitCodePoint(t)
                    }
                }

                _stateScriptData(t) {
                    switch (t) {
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.SCRIPT_DATA_LESS_THAN_SIGN;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._emitEOFToken();
                            break;
                        default:
                            this._emitCodePoint(t)
                    }
                }

                _statePlaintext(t) {
                    switch (t) {
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._emitEOFToken();
                            break;
                        default:
                            this._emitCodePoint(t)
                    }
                }

                _stateTagOpen(t) {
                    if (p(t)) this._createStartTagToken(), this.state = c.TAG_NAME, this._stateTagName(t); else switch (t) {
                        case r.CODE_POINTS.EXCLAMATION_MARK:
                            this.state = c.MARKUP_DECLARATION_OPEN;
                            break;
                        case r.CODE_POINTS.SOLIDUS:
                            this.state = c.END_TAG_OPEN;
                            break;
                        case r.CODE_POINTS.QUESTION_MARK:
                            this._err(s.ERR.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = c.BOGUS_COMMENT, this._stateBogusComment(t);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = c.DATA, this._stateData(t)
                    }
                }

                _stateEndTagOpen(t) {
                    if (p(t)) this._createEndTagToken(), this.state = c.TAG_NAME, this._stateTagName(t); else switch (t) {
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.missingEndTagName), this.state = c.DATA;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = c.BOGUS_COMMENT, this._stateBogusComment(t)
                    }
                }

                _stateTagName(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            this.state = c.BEFORE_ATTRIBUTE_NAME;
                            break;
                        case r.CODE_POINTS.SOLIDUS:
                            this.state = c.SELF_CLOSING_START_TAG;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.DATA, this.emitCurrentTagToken();
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), e.tagName += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInTag), this._emitEOFToken();
                            break;
                        default:
                            e.tagName += String.fromCodePoint(d(t) ? y(t) : t)
                    }
                }

                _stateRcdataLessThanSign(t) {
                    t === r.CODE_POINTS.SOLIDUS ? this.state = c.RCDATA_END_TAG_OPEN : (this._emitChars("<"), this.state = c.RCDATA, this._stateRcdata(t))
                }

                _stateRcdataEndTagOpen(t) {
                    p(t) ? (this.state = c.RCDATA_END_TAG_NAME, this._stateRcdataEndTagName(t)) : (this._emitChars("</"), this.state = c.RCDATA, this._stateRcdata(t))
                }

                handleSpecialEndTag(t) {
                    if (!this.preprocessor.startsWith(this.lastStartTagName, !1)) return !this._ensureHibernation();
                    this._createEndTagToken();
                    this.currentToken.tagName = this.lastStartTagName;
                    switch (this.preprocessor.peek(this.lastStartTagName.length)) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            return this._advanceBy(this.lastStartTagName.length), this.state = c.BEFORE_ATTRIBUTE_NAME, !1;
                        case r.CODE_POINTS.SOLIDUS:
                            return this._advanceBy(this.lastStartTagName.length), this.state = c.SELF_CLOSING_START_TAG, !1;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            return this._advanceBy(this.lastStartTagName.length), this.emitCurrentTagToken(), this.state = c.DATA, !1;
                        default:
                            return !this._ensureHibernation()
                    }
                }

                _stateRcdataEndTagName(t) {
                    this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = c.RCDATA, this._stateRcdata(t))
                }

                _stateRawtextLessThanSign(t) {
                    t === r.CODE_POINTS.SOLIDUS ? this.state = c.RAWTEXT_END_TAG_OPEN : (this._emitChars("<"), this.state = c.RAWTEXT, this._stateRawtext(t))
                }

                _stateRawtextEndTagOpen(t) {
                    p(t) ? (this.state = c.RAWTEXT_END_TAG_NAME, this._stateRawtextEndTagName(t)) : (this._emitChars("</"), this.state = c.RAWTEXT, this._stateRawtext(t))
                }

                _stateRawtextEndTagName(t) {
                    this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = c.RAWTEXT, this._stateRawtext(t))
                }

                _stateScriptDataLessThanSign(t) {
                    switch (t) {
                        case r.CODE_POINTS.SOLIDUS:
                            this.state = c.SCRIPT_DATA_END_TAG_OPEN;
                            break;
                        case r.CODE_POINTS.EXCLAMATION_MARK:
                            this.state = c.SCRIPT_DATA_ESCAPE_START, this._emitChars("<!");
                            break;
                        default:
                            this._emitChars("<"), this.state = c.SCRIPT_DATA, this._stateScriptData(t)
                    }
                }

                _stateScriptDataEndTagOpen(t) {
                    p(t) ? (this.state = c.SCRIPT_DATA_END_TAG_NAME, this._stateScriptDataEndTagName(t)) : (this._emitChars("</"), this.state = c.SCRIPT_DATA, this._stateScriptData(t))
                }

                _stateScriptDataEndTagName(t) {
                    this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = c.SCRIPT_DATA, this._stateScriptData(t))
                }

                _stateScriptDataEscapeStart(t) {
                    t === r.CODE_POINTS.HYPHEN_MINUS ? (this.state = c.SCRIPT_DATA_ESCAPE_START_DASH, this._emitChars("-")) : (this.state = c.SCRIPT_DATA, this._stateScriptData(t))
                }

                _stateScriptDataEscapeStartDash(t) {
                    t === r.CODE_POINTS.HYPHEN_MINUS ? (this.state = c.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-")) : (this.state = c.SCRIPT_DATA, this._stateScriptData(t))
                }

                _stateScriptDataEscaped(t) {
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this.state = c.SCRIPT_DATA_ESCAPED_DASH, this._emitChars("-");
                            break;
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
                            break;
                        default:
                            this._emitCodePoint(t)
                    }
                }

                _stateScriptDataEscapedDash(t) {
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this.state = c.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-");
                            break;
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this.state = c.SCRIPT_DATA_ESCAPED, this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
                            break;
                        default:
                            this.state = c.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t)
                    }
                }

                _stateScriptDataEscapedDashDash(t) {
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this._emitChars("-");
                            break;
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.SCRIPT_DATA, this._emitChars(">");
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this.state = c.SCRIPT_DATA_ESCAPED, this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
                            break;
                        default:
                            this.state = c.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t)
                    }
                }

                _stateScriptDataEscapedLessThanSign(t) {
                    t === r.CODE_POINTS.SOLIDUS ? this.state = c.SCRIPT_DATA_ESCAPED_END_TAG_OPEN : p(t) ? (this._emitChars("<"), this.state = c.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(t)) : (this._emitChars("<"), this.state = c.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t))
                }

                _stateScriptDataEscapedEndTagOpen(t) {
                    p(t) ? (this.state = c.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(t)) : (this._emitChars("</"), this.state = c.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t))
                }

                _stateScriptDataEscapedEndTagName(t) {
                    this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = c.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t))
                }

                _stateScriptDataDoubleEscapeStart(t) {
                    if (this.preprocessor.startsWith(r.SEQUENCES.SCRIPT, !1) && _(this.preprocessor.peek(r.SEQUENCES.SCRIPT.length))) {
                        this._emitCodePoint(t);
                        for (let t = 0; t < r.SEQUENCES.SCRIPT.length; t++) this._emitCodePoint(this._consume());
                        this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED
                    } else this._ensureHibernation() || (this.state = c.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t))
                }

                _stateScriptDataDoubleEscaped(t) {
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH, this._emitChars("-");
                            break;
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
                            break;
                        default:
                            this._emitCodePoint(t)
                    }
                }

                _stateScriptDataDoubleEscapedDash(t) {
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH, this._emitChars("-");
                            break;
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
                            break;
                        default:
                            this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t)
                    }
                }

                _stateScriptDataDoubleEscapedDashDash(t) {
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this._emitChars("-");
                            break;
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.SCRIPT_DATA, this._emitChars(">");
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(r.REPLACEMENT_CHARACTER);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
                            break;
                        default:
                            this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t)
                    }
                }

                _stateScriptDataDoubleEscapedLessThanSign(t) {
                    t === r.CODE_POINTS.SOLIDUS ? (this.state = c.SCRIPT_DATA_DOUBLE_ESCAPE_END, this._emitChars("/")) : (this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t))
                }

                _stateScriptDataDoubleEscapeEnd(t) {
                    if (this.preprocessor.startsWith(r.SEQUENCES.SCRIPT, !1) && _(this.preprocessor.peek(r.SEQUENCES.SCRIPT.length))) {
                        this._emitCodePoint(t);
                        for (let t = 0; t < r.SEQUENCES.SCRIPT.length; t++) this._emitCodePoint(this._consume());
                        this.state = c.SCRIPT_DATA_ESCAPED
                    } else this._ensureHibernation() || (this.state = c.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t))
                }

                _stateBeforeAttributeName(t) {
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            break;
                        case r.CODE_POINTS.SOLIDUS:
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                        case r.CODE_POINTS.EOF:
                            this.state = c.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
                            break;
                        case r.CODE_POINTS.EQUALS_SIGN:
                            this._err(s.ERR.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = c.ATTRIBUTE_NAME;
                            break;
                        default:
                            this._createAttr(""), this.state = c.ATTRIBUTE_NAME, this._stateAttributeName(t)
                    }
                }

                _stateAttributeName(t) {
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                        case r.CODE_POINTS.SOLIDUS:
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                        case r.CODE_POINTS.EOF:
                            this._leaveAttrName(), this.state = c.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
                            break;
                        case r.CODE_POINTS.EQUALS_SIGN:
                            this._leaveAttrName(), this.state = c.BEFORE_ATTRIBUTE_VALUE;
                            break;
                        case r.CODE_POINTS.QUOTATION_MARK:
                        case r.CODE_POINTS.APOSTROPHE:
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            this._err(s.ERR.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(t);
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this.currentAttr.name += r.REPLACEMENT_CHARACTER;
                            break;
                        default:
                            this.currentAttr.name += String.fromCodePoint(d(t) ? y(t) : t)
                    }
                }

                _stateAfterAttributeName(t) {
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            break;
                        case r.CODE_POINTS.SOLIDUS:
                            this.state = c.SELF_CLOSING_START_TAG;
                            break;
                        case r.CODE_POINTS.EQUALS_SIGN:
                            this.state = c.BEFORE_ATTRIBUTE_VALUE;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.DATA, this.emitCurrentTagToken();
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInTag), this._emitEOFToken();
                            break;
                        default:
                            this._createAttr(""), this.state = c.ATTRIBUTE_NAME, this._stateAttributeName(t)
                    }
                }

                _stateBeforeAttributeValue(t) {
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            break;
                        case r.CODE_POINTS.QUOTATION_MARK:
                            this.state = c.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
                            break;
                        case r.CODE_POINTS.APOSTROPHE:
                            this.state = c.ATTRIBUTE_VALUE_SINGLE_QUOTED;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.missingAttributeValue), this.state = c.DATA, this.emitCurrentTagToken();
                            break;
                        default:
                            this.state = c.ATTRIBUTE_VALUE_UNQUOTED, this._stateAttributeValueUnquoted(t)
                    }
                }

                _stateAttributeValueDoubleQuoted(t) {
                    switch (t) {
                        case r.CODE_POINTS.QUOTATION_MARK:
                            this.state = c.AFTER_ATTRIBUTE_VALUE_QUOTED;
                            break;
                        case r.CODE_POINTS.AMPERSAND:
                            this.returnState = c.ATTRIBUTE_VALUE_DOUBLE_QUOTED, this.state = c.CHARACTER_REFERENCE;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this.currentAttr.value += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInTag), this._emitEOFToken();
                            break;
                        default:
                            this.currentAttr.value += String.fromCodePoint(t)
                    }
                }

                _stateAttributeValueSingleQuoted(t) {
                    switch (t) {
                        case r.CODE_POINTS.APOSTROPHE:
                            this.state = c.AFTER_ATTRIBUTE_VALUE_QUOTED;
                            break;
                        case r.CODE_POINTS.AMPERSAND:
                            this.returnState = c.ATTRIBUTE_VALUE_SINGLE_QUOTED, this.state = c.CHARACTER_REFERENCE;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this.currentAttr.value += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInTag), this._emitEOFToken();
                            break;
                        default:
                            this.currentAttr.value += String.fromCodePoint(t)
                    }
                }

                _stateAttributeValueUnquoted(t) {
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            this._leaveAttrValue(), this.state = c.BEFORE_ATTRIBUTE_NAME;
                            break;
                        case r.CODE_POINTS.AMPERSAND:
                            this.returnState = c.ATTRIBUTE_VALUE_UNQUOTED, this.state = c.CHARACTER_REFERENCE;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._leaveAttrValue(), this.state = c.DATA, this.emitCurrentTagToken();
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this.currentAttr.value += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.QUOTATION_MARK:
                        case r.CODE_POINTS.APOSTROPHE:
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                        case r.CODE_POINTS.EQUALS_SIGN:
                        case r.CODE_POINTS.GRAVE_ACCENT:
                            this._err(s.ERR.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(t);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInTag), this._emitEOFToken();
                            break;
                        default:
                            this.currentAttr.value += String.fromCodePoint(t)
                    }
                }

                _stateAfterAttributeValueQuoted(t) {
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            this._leaveAttrValue(), this.state = c.BEFORE_ATTRIBUTE_NAME;
                            break;
                        case r.CODE_POINTS.SOLIDUS:
                            this._leaveAttrValue(), this.state = c.SELF_CLOSING_START_TAG;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._leaveAttrValue(), this.state = c.DATA, this.emitCurrentTagToken();
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInTag), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.missingWhitespaceBetweenAttributes), this.state = c.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t)
                    }
                }

                _stateSelfClosingStartTag(t) {
                    switch (t) {
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.currentToken.selfClosing = !0, this.state = c.DATA, this.emitCurrentTagToken();
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInTag), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.unexpectedSolidusInTag), this.state = c.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t)
                    }
                }

                _stateBogusComment(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.DATA, this.emitCurrentComment(e);
                            break;
                        case r.CODE_POINTS.EOF:
                            this.emitCurrentComment(e), this._emitEOFToken();
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), e.data += r.REPLACEMENT_CHARACTER;
                            break;
                        default:
                            e.data += String.fromCodePoint(t)
                    }
                }

                _stateMarkupDeclarationOpen(t) {
                    this._consumeSequenceIfMatch(r.SEQUENCES.DASH_DASH, !0) ? (this._createCommentToken(r.SEQUENCES.DASH_DASH.length + 1), this.state = c.COMMENT_START) : this._consumeSequenceIfMatch(r.SEQUENCES.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(r.SEQUENCES.DOCTYPE.length + 1), this.state = c.DOCTYPE) : this._consumeSequenceIfMatch(r.SEQUENCES.CDATA_START, !0) ? this.inForeignNode ? this.state = c.CDATA_SECTION : (this._err(s.ERR.cdataInHtmlContent), this._createCommentToken(r.SEQUENCES.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = c.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(s.ERR.incorrectlyOpenedComment), this._createCommentToken(2), this.state = c.BOGUS_COMMENT, this._stateBogusComment(t))
                }

                _stateCommentStart(t) {
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this.state = c.COMMENT_START_DASH;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN: {
                            this._err(s.ERR.abruptClosingOfEmptyComment), this.state = c.DATA;
                            const t = this.currentToken;
                            this.emitCurrentComment(t);
                            break
                        }
                        default:
                            this.state = c.COMMENT, this._stateComment(t)
                    }
                }

                _stateCommentStartDash(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this.state = c.COMMENT_END;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.abruptClosingOfEmptyComment), this.state = c.DATA, this.emitCurrentComment(e);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInComment), this.emitCurrentComment(e), this._emitEOFToken();
                            break;
                        default:
                            e.data += "-", this.state = c.COMMENT, this._stateComment(t)
                    }
                }

                _stateComment(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this.state = c.COMMENT_END_DASH;
                            break;
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            e.data += "<", this.state = c.COMMENT_LESS_THAN_SIGN;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), e.data += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInComment), this.emitCurrentComment(e), this._emitEOFToken();
                            break;
                        default:
                            e.data += String.fromCodePoint(t)
                    }
                }

                _stateCommentLessThanSign(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.EXCLAMATION_MARK:
                            e.data += "!", this.state = c.COMMENT_LESS_THAN_SIGN_BANG;
                            break;
                        case r.CODE_POINTS.LESS_THAN_SIGN:
                            e.data += "<";
                            break;
                        default:
                            this.state = c.COMMENT, this._stateComment(t)
                    }
                }

                _stateCommentLessThanSignBang(t) {
                    t === r.CODE_POINTS.HYPHEN_MINUS ? this.state = c.COMMENT_LESS_THAN_SIGN_BANG_DASH : (this.state = c.COMMENT, this._stateComment(t))
                }

                _stateCommentLessThanSignBangDash(t) {
                    t === r.CODE_POINTS.HYPHEN_MINUS ? this.state = c.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH : (this.state = c.COMMENT_END_DASH, this._stateCommentEndDash(t))
                }

                _stateCommentLessThanSignBangDashDash(t) {
                    t !== r.CODE_POINTS.GREATER_THAN_SIGN && t !== r.CODE_POINTS.EOF && this._err(s.ERR.nestedComment), this.state = c.COMMENT_END, this._stateCommentEnd(t)
                }

                _stateCommentEndDash(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            this.state = c.COMMENT_END;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInComment), this.emitCurrentComment(e), this._emitEOFToken();
                            break;
                        default:
                            e.data += "-", this.state = c.COMMENT, this._stateComment(t)
                    }
                }

                _stateCommentEnd(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.DATA, this.emitCurrentComment(e);
                            break;
                        case r.CODE_POINTS.EXCLAMATION_MARK:
                            this.state = c.COMMENT_END_BANG;
                            break;
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            e.data += "-";
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInComment), this.emitCurrentComment(e), this._emitEOFToken();
                            break;
                        default:
                            e.data += "--", this.state = c.COMMENT, this._stateComment(t)
                    }
                }

                _stateCommentEndBang(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.HYPHEN_MINUS:
                            e.data += "--!", this.state = c.COMMENT_END_DASH;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.incorrectlyClosedComment), this.state = c.DATA, this.emitCurrentComment(e);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInComment), this.emitCurrentComment(e), this._emitEOFToken();
                            break;
                        default:
                            e.data += "--!", this.state = c.COMMENT, this._stateComment(t)
                    }
                }

                _stateDoctype(t) {
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            this.state = c.BEFORE_DOCTYPE_NAME;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
                            break;
                        case r.CODE_POINTS.EOF: {
                            this._err(s.ERR.eofInDoctype), this._createDoctypeToken(null);
                            const t = this.currentToken;
                            t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
                            break
                        }
                        default:
                            this._err(s.ERR.missingWhitespaceBeforeDoctypeName), this.state = c.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t)
                    }
                }

                _stateBeforeDoctypeName(t) {
                    if (d(t)) this._createDoctypeToken(String.fromCharCode(y(t))), this.state = c.DOCTYPE_NAME; else switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), this._createDoctypeToken(r.REPLACEMENT_CHARACTER), this.state = c.DOCTYPE_NAME;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN: {
                            this._err(s.ERR.missingDoctypeName), this._createDoctypeToken(null);
                            const t = this.currentToken;
                            t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = c.DATA;
                            break
                        }
                        case r.CODE_POINTS.EOF: {
                            this._err(s.ERR.eofInDoctype), this._createDoctypeToken(null);
                            const t = this.currentToken;
                            t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
                            break
                        }
                        default:
                            this._createDoctypeToken(String.fromCodePoint(t)), this.state = c.DOCTYPE_NAME
                    }
                }

                _stateDoctypeName(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            this.state = c.AFTER_DOCTYPE_NAME;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.DATA, this.emitCurrentDoctype(e);
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), e.name += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            e.name += String.fromCodePoint(d(t) ? y(t) : t)
                    }
                }

                _stateAfterDoctypeName(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.DATA, this.emitCurrentDoctype(e);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            this._consumeSequenceIfMatch(r.SEQUENCES.PUBLIC, !1) ? this.state = c.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(r.SEQUENCES.SYSTEM, !1) ? this.state = c.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(s.ERR.invalidCharacterSequenceAfterDoctypeName), e.forceQuirks = !0, this.state = c.BOGUS_DOCTYPE, this._stateBogusDoctype(t))
                    }
                }

                _stateAfterDoctypePublicKeyword(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            this.state = c.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
                            break;
                        case r.CODE_POINTS.QUOTATION_MARK:
                            this._err(s.ERR.missingWhitespaceAfterDoctypePublicKeyword), e.publicId = "", this.state = c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
                            break;
                        case r.CODE_POINTS.APOSTROPHE:
                            this._err(s.ERR.missingWhitespaceAfterDoctypePublicKeyword), e.publicId = "", this.state = c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.missingDoctypePublicIdentifier), e.forceQuirks = !0, this.state = c.DATA, this.emitCurrentDoctype(e);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.missingQuoteBeforeDoctypePublicIdentifier), e.forceQuirks = !0, this.state = c.BOGUS_DOCTYPE, this._stateBogusDoctype(t)
                    }
                }

                _stateBeforeDoctypePublicIdentifier(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            break;
                        case r.CODE_POINTS.QUOTATION_MARK:
                            e.publicId = "", this.state = c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
                            break;
                        case r.CODE_POINTS.APOSTROPHE:
                            e.publicId = "", this.state = c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.missingDoctypePublicIdentifier), e.forceQuirks = !0, this.state = c.DATA, this.emitCurrentDoctype(e);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.missingQuoteBeforeDoctypePublicIdentifier), e.forceQuirks = !0, this.state = c.BOGUS_DOCTYPE, this._stateBogusDoctype(t)
                    }
                }

                _stateDoctypePublicIdentifierDoubleQuoted(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.QUOTATION_MARK:
                            this.state = c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), e.publicId += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.abruptDoctypePublicIdentifier), e.forceQuirks = !0, this.emitCurrentDoctype(e), this.state = c.DATA;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            e.publicId += String.fromCodePoint(t)
                    }
                }

                _stateDoctypePublicIdentifierSingleQuoted(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.APOSTROPHE:
                            this.state = c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), e.publicId += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.abruptDoctypePublicIdentifier), e.forceQuirks = !0, this.emitCurrentDoctype(e), this.state = c.DATA;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            e.publicId += String.fromCodePoint(t)
                    }
                }

                _stateAfterDoctypePublicIdentifier(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            this.state = c.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.DATA, this.emitCurrentDoctype(e);
                            break;
                        case r.CODE_POINTS.QUOTATION_MARK:
                            this._err(s.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), e.systemId = "", this.state = c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
                            break;
                        case r.CODE_POINTS.APOSTROPHE:
                            this._err(s.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), e.systemId = "", this.state = c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.missingQuoteBeforeDoctypeSystemIdentifier), e.forceQuirks = !0, this.state = c.BOGUS_DOCTYPE, this._stateBogusDoctype(t)
                    }
                }

                _stateBetweenDoctypePublicAndSystemIdentifiers(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.emitCurrentDoctype(e), this.state = c.DATA;
                            break;
                        case r.CODE_POINTS.QUOTATION_MARK:
                            e.systemId = "", this.state = c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
                            break;
                        case r.CODE_POINTS.APOSTROPHE:
                            e.systemId = "", this.state = c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.missingQuoteBeforeDoctypeSystemIdentifier), e.forceQuirks = !0, this.state = c.BOGUS_DOCTYPE, this._stateBogusDoctype(t)
                    }
                }

                _stateAfterDoctypeSystemKeyword(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            this.state = c.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
                            break;
                        case r.CODE_POINTS.QUOTATION_MARK:
                            this._err(s.ERR.missingWhitespaceAfterDoctypeSystemKeyword), e.systemId = "", this.state = c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
                            break;
                        case r.CODE_POINTS.APOSTROPHE:
                            this._err(s.ERR.missingWhitespaceAfterDoctypeSystemKeyword), e.systemId = "", this.state = c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.missingDoctypeSystemIdentifier), e.forceQuirks = !0, this.state = c.DATA, this.emitCurrentDoctype(e);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.missingQuoteBeforeDoctypeSystemIdentifier), e.forceQuirks = !0, this.state = c.BOGUS_DOCTYPE, this._stateBogusDoctype(t)
                    }
                }

                _stateBeforeDoctypeSystemIdentifier(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            break;
                        case r.CODE_POINTS.QUOTATION_MARK:
                            e.systemId = "", this.state = c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
                            break;
                        case r.CODE_POINTS.APOSTROPHE:
                            e.systemId = "", this.state = c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.missingDoctypeSystemIdentifier), e.forceQuirks = !0, this.state = c.DATA, this.emitCurrentDoctype(e);
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.missingQuoteBeforeDoctypeSystemIdentifier), e.forceQuirks = !0, this.state = c.BOGUS_DOCTYPE, this._stateBogusDoctype(t)
                    }
                }

                _stateDoctypeSystemIdentifierDoubleQuoted(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.QUOTATION_MARK:
                            this.state = c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), e.systemId += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.abruptDoctypeSystemIdentifier), e.forceQuirks = !0, this.emitCurrentDoctype(e), this.state = c.DATA;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            e.systemId += String.fromCodePoint(t)
                    }
                }

                _stateDoctypeSystemIdentifierSingleQuoted(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.APOSTROPHE:
                            this.state = c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter), e.systemId += r.REPLACEMENT_CHARACTER;
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this._err(s.ERR.abruptDoctypeSystemIdentifier), e.forceQuirks = !0, this.emitCurrentDoctype(e), this.state = c.DATA;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            e.systemId += String.fromCodePoint(t)
                    }
                }

                _stateAfterDoctypeSystemIdentifier(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.SPACE:
                        case r.CODE_POINTS.LINE_FEED:
                        case r.CODE_POINTS.TABULATION:
                        case r.CODE_POINTS.FORM_FEED:
                            break;
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.emitCurrentDoctype(e), this.state = c.DATA;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInDoctype), e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
                            break;
                        default:
                            this._err(s.ERR.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = c.BOGUS_DOCTYPE, this._stateBogusDoctype(t)
                    }
                }

                _stateBogusDoctype(t) {
                    const e = this.currentToken;
                    switch (t) {
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.emitCurrentDoctype(e), this.state = c.DATA;
                            break;
                        case r.CODE_POINTS.NULL:
                            this._err(s.ERR.unexpectedNullCharacter);
                            break;
                        case r.CODE_POINTS.EOF:
                            this.emitCurrentDoctype(e), this._emitEOFToken()
                    }
                }

                _stateCdataSection(t) {
                    switch (t) {
                        case r.CODE_POINTS.RIGHT_SQUARE_BRACKET:
                            this.state = c.CDATA_SECTION_BRACKET;
                            break;
                        case r.CODE_POINTS.EOF:
                            this._err(s.ERR.eofInCdata), this._emitEOFToken();
                            break;
                        default:
                            this._emitCodePoint(t)
                    }
                }

                _stateCdataSectionBracket(t) {
                    t === r.CODE_POINTS.RIGHT_SQUARE_BRACKET ? this.state = c.CDATA_SECTION_END : (this._emitChars("]"), this.state = c.CDATA_SECTION, this._stateCdataSection(t))
                }

                _stateCdataSectionEnd(t) {
                    switch (t) {
                        case r.CODE_POINTS.GREATER_THAN_SIGN:
                            this.state = c.DATA;
                            break;
                        case r.CODE_POINTS.RIGHT_SQUARE_BRACKET:
                            this._emitChars("]");
                            break;
                        default:
                            this._emitChars("]]"), this.state = c.CDATA_SECTION, this._stateCdataSection(t)
                    }
                }

                _stateCharacterReference(t) {
                    t === r.CODE_POINTS.NUMBER_SIGN ? this.state = c.NUMERIC_CHARACTER_REFERENCE : f(t) ? (this.state = c.NAMED_CHARACTER_REFERENCE, this._stateNamedCharacterReference(t)) : (this._flushCodePointConsumedAsCharacterReference(r.CODE_POINTS.AMPERSAND), this._reconsumeInState(this.returnState, t))
                }

                _stateNamedCharacterReference(t) {
                    const e = this._matchNamedCharacterReference(t);
                    if (this._ensureHibernation()) ; else if (e) {
                        for (let t = 0; t < e.length; t++) this._flushCodePointConsumedAsCharacterReference(e[t]);
                        this.state = this.returnState
                    } else this._flushCodePointConsumedAsCharacterReference(r.CODE_POINTS.AMPERSAND), this.state = c.AMBIGUOUS_AMPERSAND
                }

                _stateAmbiguousAmpersand(t) {
                    f(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === r.CODE_POINTS.SEMICOLON && this._err(s.ERR.unknownNamedCharacterReference), this._reconsumeInState(this.returnState, t))
                }

                _stateNumericCharacterReference(t) {
                    this.charRefCode = 0, t === r.CODE_POINTS.LATIN_SMALL_X || t === r.CODE_POINTS.LATIN_CAPITAL_X ? this.state = c.HEXADEMICAL_CHARACTER_REFERENCE_START : h(t) ? (this.state = c.DECIMAL_CHARACTER_REFERENCE, this._stateDecimalCharacterReference(t)) : (this._err(s.ERR.absenceOfDigitsInNumericCharacterReference), this._flushCodePointConsumedAsCharacterReference(r.CODE_POINTS.AMPERSAND), this._flushCodePointConsumedAsCharacterReference(r.CODE_POINTS.NUMBER_SIGN), this._reconsumeInState(this.returnState, t))
                }

                _stateHexademicalCharacterReferenceStart(t) {
                    !function (t) {
                        return h(t) || g(t) || m(t)
                    }(t) ? (this._err(s.ERR.absenceOfDigitsInNumericCharacterReference), this._flushCodePointConsumedAsCharacterReference(r.CODE_POINTS.AMPERSAND), this._flushCodePointConsumedAsCharacterReference(r.CODE_POINTS.NUMBER_SIGN), this._unconsume(2), this.state = this.returnState) : (this.state = c.HEXADEMICAL_CHARACTER_REFERENCE, this._stateHexademicalCharacterReference(t))
                }

                _stateHexademicalCharacterReference(t) {
                    g(t) ? this.charRefCode = 16 * this.charRefCode + t - 55 : m(t) ? this.charRefCode = 16 * this.charRefCode + t - 87 : h(t) ? this.charRefCode = 16 * this.charRefCode + t - 48 : t === r.CODE_POINTS.SEMICOLON ? this.state = c.NUMERIC_CHARACTER_REFERENCE_END : (this._err(s.ERR.missingSemicolonAfterCharacterReference), this.state = c.NUMERIC_CHARACTER_REFERENCE_END, this._stateNumericCharacterReferenceEnd(t))
                }

                _stateDecimalCharacterReference(t) {
                    h(t) ? this.charRefCode = 10 * this.charRefCode + t - 48 : t === r.CODE_POINTS.SEMICOLON ? this.state = c.NUMERIC_CHARACTER_REFERENCE_END : (this._err(s.ERR.missingSemicolonAfterCharacterReference), this.state = c.NUMERIC_CHARACTER_REFERENCE_END, this._stateNumericCharacterReferenceEnd(t))
                }

                _stateNumericCharacterReferenceEnd(t) {
                    if (this.charRefCode === r.CODE_POINTS.NULL) this._err(s.ERR.nullCharacterReference), this.charRefCode = r.CODE_POINTS.REPLACEMENT_CHARACTER; else if (this.charRefCode > 1114111) this._err(s.ERR.characterReferenceOutsideUnicodeRange), this.charRefCode = r.CODE_POINTS.REPLACEMENT_CHARACTER; else if ((0, r.isSurrogate)(this.charRefCode)) this._err(s.ERR.surrogateCharacterReference), this.charRefCode = r.CODE_POINTS.REPLACEMENT_CHARACTER; else if ((0, r.isUndefinedCodePoint)(this.charRefCode)) this._err(s.ERR.noncharacterCharacterReference); else if ((0, r.isControlCodePoint)(this.charRefCode) || this.charRefCode === r.CODE_POINTS.CARRIAGE_RETURN) {
                        this._err(s.ERR.controlCharacterReference);
                        const t = u.get(this.charRefCode);
                        void 0 !== t && (this.charRefCode = t)
                    }
                    this._flushCodePointConsumedAsCharacterReference(this.charRefCode), this._reconsumeInState(this.returnState, t)
                }
            }
        }, 1171: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.Preprocessor = void 0;
            const i = n(6222), r = n(2799);
            e.Preprocessor = class {
                constructor(t) {
                    this.handler = t, this.html = "", this.pos = -1, this.lastGapPos = -2, this.gapStack = [], this.skipNextNewLine = !1, this.lastChunkWritten = !1, this.endOfChunkHit = !1, this.bufferWaterline = 65536, this.isEol = !1, this.lineStartPos = 0, this.droppedBufferSize = 0, this.line = 1, this.lastErrOffset = -1
                }

                get col() {
                    return this.pos - this.lineStartPos + Number(this.lastGapPos !== this.pos)
                }

                get offset() {
                    return this.droppedBufferSize + this.pos
                }

                getError(t) {
                    const {line: e, col: n, offset: i} = this;
                    return {code: t, startLine: e, endLine: e, startCol: n, endCol: n, startOffset: i, endOffset: i}
                }

                _err(t) {
                    this.handler.onParseError && this.lastErrOffset !== this.offset && (this.lastErrOffset = this.offset, this.handler.onParseError(this.getError(t)))
                }

                _addGap() {
                    this.gapStack.push(this.lastGapPos), this.lastGapPos = this.pos
                }

                _processSurrogate(t) {
                    if (this.pos !== this.html.length - 1) {
                        const e = this.html.charCodeAt(this.pos + 1);
                        if ((0, i.isSurrogatePair)(e)) return this.pos++, this._addGap(), (0, i.getSurrogatePairCodePoint)(t, e)
                    } else if (!this.lastChunkWritten) return this.endOfChunkHit = !0, i.CODE_POINTS.EOF;
                    return this._err(r.ERR.surrogateInInputStream), t
                }

                willDropParsedChunk() {
                    return this.pos > this.bufferWaterline
                }

                dropParsedChunk() {
                    this.willDropParsedChunk() && (this.html = this.html.substring(this.pos), this.lineStartPos -= this.pos, this.droppedBufferSize += this.pos, this.pos = 0, this.lastGapPos = -2, this.gapStack.length = 0)
                }

                write(t, e) {
                    this.html.length > 0 ? this.html += t : this.html = t, this.endOfChunkHit = !1, this.lastChunkWritten = e
                }

                insertHtmlAtCurrentPos(t) {
                    this.html = this.html.substring(0, this.pos + 1) + t + this.html.substring(this.pos + 1), this.endOfChunkHit = !1
                }

                startsWith(t, e) {
                    if (this.pos + t.length > this.html.length) return this.endOfChunkHit = !this.lastChunkWritten, !1;
                    if (e) return this.html.startsWith(t, this.pos);
                    for (let e = 0; e < t.length; e++) {
                        if ((32 | this.html.charCodeAt(this.pos + e)) !== t.charCodeAt(e)) return !1
                    }
                    return !0
                }

                peek(t) {
                    const e = this.pos + t;
                    if (e >= this.html.length) return this.endOfChunkHit = !this.lastChunkWritten, i.CODE_POINTS.EOF;
                    const n = this.html.charCodeAt(e);
                    return n === i.CODE_POINTS.CARRIAGE_RETURN ? i.CODE_POINTS.LINE_FEED : n
                }

                advance() {
                    if (this.pos++, this.isEol && (this.isEol = !1, this.line++, this.lineStartPos = this.pos), this.pos >= this.html.length) return this.endOfChunkHit = !this.lastChunkWritten, i.CODE_POINTS.EOF;
                    let t = this.html.charCodeAt(this.pos);
                    if (t === i.CODE_POINTS.CARRIAGE_RETURN) return this.isEol = !0, this.skipNextNewLine = !0, i.CODE_POINTS.LINE_FEED;
                    if (t === i.CODE_POINTS.LINE_FEED && (this.isEol = !0, this.skipNextNewLine)) return this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance();
                    this.skipNextNewLine = !1, (0, i.isSurrogate)(t) && (t = this._processSurrogate(t));
                    return null === this.handler.onParseError || t > 31 && t < 127 || t === i.CODE_POINTS.LINE_FEED || t === i.CODE_POINTS.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t
                }

                _checkForProblematicCharacters(t) {
                    (0, i.isControlCodePoint)(t) ? this._err(r.ERR.controlCharacterInInputStream) : (0, i.isUndefinedCodePoint)(t) && this._err(r.ERR.noncharacterInInputStream)
                }

                retreat(t) {
                    for (this.pos -= t; this.pos < this.lastGapPos;) this.lastGapPos = this.gapStack.pop(), this.pos--;
                    this.isEol = !1
                }
            }
        }, 212: (t, e, n) => {
            "use strict";
            Object.defineProperty(e, "__esModule", {value: !0}), e.defaultTreeAdapter = void 0;
            const i = n(7618);

            function r(t) {
                return {nodeName: "#text", value: t, parentNode: null}
            }

            e.defaultTreeAdapter = {
                createDocument: () => ({nodeName: "#document", mode: i.DOCUMENT_MODE.NO_QUIRKS, childNodes: []}),
                createDocumentFragment: () => ({nodeName: "#document-fragment", childNodes: []}),
                createElement: (t, e, n) => ({
                    nodeName: t,
                    tagName: t,
                    attrs: n,
                    namespaceURI: e,
                    childNodes: [],
                    parentNode: null
                }),
                createCommentNode: t => ({nodeName: "#comment", data: t, parentNode: null}),
                appendChild(t, e) {
                    t.childNodes.push(e), e.parentNode = t
                },
                insertBefore(t, e, n) {
                    const i = t.childNodes.indexOf(n);
                    t.childNodes.splice(i, 0, e), e.parentNode = t
                },
                setTemplateContent(t, e) {
                    t.content = e
                },
                getTemplateContent: t => t.content,
                setDocumentType(t, n, i, r) {
                    const o = t.childNodes.find((t => "#documentType" === t.nodeName));
                    if (o) o.name = n, o.publicId = i, o.systemId = r; else {
                        const o = {nodeName: "#documentType", name: n, publicId: i, systemId: r, parentNode: null};
                        e.defaultTreeAdapter.appendChild(t, o)
                    }
                },
                setDocumentMode(t, e) {
                    t.mode = e
                },
                getDocumentMode: t => t.mode,
                detachNode(t) {
                    if (t.parentNode) {
                        const e = t.parentNode.childNodes.indexOf(t);
                        t.parentNode.childNodes.splice(e, 1), t.parentNode = null
                    }
                },
                insertText(t, n) {
                    if (t.childNodes.length > 0) {
                        const i = t.childNodes[t.childNodes.length - 1];
                        if (e.defaultTreeAdapter.isTextNode(i)) return void (i.value += n)
                    }
                    e.defaultTreeAdapter.appendChild(t, r(n))
                },
                insertTextBefore(t, n, i) {
                    const o = t.childNodes[t.childNodes.indexOf(i) - 1];
                    o && e.defaultTreeAdapter.isTextNode(o) ? o.value += n : e.defaultTreeAdapter.insertBefore(t, r(n), i)
                },
                adoptAttributes(t, e) {
                    const n = new Set(t.attrs.map((t => t.name)));
                    for (let i = 0; i < e.length; i++) n.has(e[i].name) || t.attrs.push(e[i])
                },
                getFirstChild: t => t.childNodes[0],
                getChildNodes: t => t.childNodes,
                getParentNode: t => t.parentNode,
                getAttrList: t => t.attrs,
                getTagName: t => t.tagName,
                getNamespaceURI: t => t.namespaceURI,
                getTextNodeContent: t => t.value,
                getCommentNodeContent: t => t.data,
                getDocumentTypeNodeName: t => t.name,
                getDocumentTypeNodePublicId: t => t.publicId,
                getDocumentTypeNodeSystemId: t => t.systemId,
                isTextNode: t => "#text" === t.nodeName,
                isCommentNode: t => "#comment" === t.nodeName,
                isDocumentTypeNode: t => "#documentType" === t.nodeName,
                isElementNode: t => Object.prototype.hasOwnProperty.call(t, "tagName"),
                setNodeSourceCodeLocation(t, e) {
                    t.sourceCodeLocation = e
                },
                getNodeSourceCodeLocation: t => t.sourceCodeLocation,
                updateNodeSourceCodeLocation(t, e) {
                    t.sourceCodeLocation = Object.assign(Object.assign({}, t.sourceCodeLocation), e)
                }
            }
        }
    }, __webpack_module_cache__ = {};

    function __webpack_require__(t) {
        var e = __webpack_module_cache__[t];
        if (void 0 !== e) return e.exports;
        var n = __webpack_module_cache__[t] = {id: t, exports: {}};
        return __webpack_modules__[t].call(n.exports, n, n.exports, __webpack_require__), n.exports
    }

    __webpack_require__.amdO = {}, __webpack_require__.n = t => {
        var e = t && t.__esModule ? () => t.default : () => t;
        return __webpack_require__.d(e, {a: e}), e
    }, __webpack_require__.d = (t, e) => {
        for (var n in e) __webpack_require__.o(e, n) && !__webpack_require__.o(t, n) && Object.defineProperty(t, n, {
            enumerable: !0,
            get: e[n]
        })
    }, __webpack_require__.g = function () {
        if ("object" == typeof globalThis) return globalThis;
        try {
            return this || new Function("return this")()
        } catch (t) {
            if ("object" == typeof window) return window
        }
    }(), __webpack_require__.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e), __webpack_require__.r = t => {
        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {value: "Module"}), Object.defineProperty(t, "__esModule", {value: !0})
    }, __webpack_require__.nc = void 0;
    var __webpack_exports__ = {};
    (() => {
        "use strict";
        var t = {};
        __webpack_require__.r(t), __webpack_require__.d(t, {
            Arc: () => Xg,
            BezierCurve: () => Yg,
            BoundingRect: () => hn,
            Circle: () => sg,
            CompoundPath: () => Kg,
            Ellipse: () => cg,
            Group: () => xo,
            Image: () => gl,
            IncrementalDisplayable: () => lm,
            Line: () => Hg,
            LinearGradient: () => $g,
            OrientedBoundingRect: () => om,
            Path: () => ll,
            Point: () => tn,
            Polygon: () => Lg,
            Polyline: () => Pg,
            RadialGradient: () => Jg,
            Rect: () => Al,
            Ring: () => wg,
            Sector: () => Eg,
            Text: () => Fl,
            applyTransform: () => Em,
            clipPointsByRect: () => Mm,
            clipRectByRect: () => Nm,
            createIcon: () => Om,
            extendPath: () => fm,
            extendShape: () => dm,
            getShapeClass: () => mm,
            getTransform: () => Im,
            groupTransition: () => wm,
            initProps: () => Xu,
            isElementRemoved: () => Zu,
            lineLineIntersect: () => Rm,
            linePolygonIntersect: () => Lm,
            makeImage: () => vm,
            makePath: () => ym,
            mergePath: () => Tm,
            registerShape: () => gm,
            removeElement: () => Ku,
            removeElementWithFadeOut: () => $u,
            resizePath: () => xm,
            setTooltipConfig: () => Pm,
            subPixelOptimize: () => bm,
            subPixelOptimizeLine: () => Sm,
            subPixelOptimizeRect: () => Am,
            transformDirection: () => Cm,
            traverseElements: () => Bm,
            updateProps: () => ju
        });
        var e = function () {
            var t = this, e = t.$createElement, n = t._self._c || e;
            return n("div", {
                staticClass: "crx-tools",
                staticStyle: {display: "flex", height: "400px"}
            }, [n("div", {
                staticClass: "crx-tools-container",
                style: {width: t.marketId ? "calc(.2 * (100vw - 56px))" : "100%"}
            }, [n("goods-info", {
                attrs: {result: t.result, asin: t.asin, mainImg: t.mainImg},
                on: {shipFee: t.shipFee, collectAsin: t.collectAsin}
            })], 1), t._v(" "), t.marketId ? n("div", {
                staticStyle: {
                    width: "calc(100% - 0.2 * (100vw - 28px))",
                    height: "100%"
                }
            }, [n("seller-data", {
                attrs: {asin: t.asin, marketId: t.marketId},
                on: {sellerData: t.sellerData}
            })], 1) : t._e()])
        };
        e._withStripped = !0;
        var n = __webpack_require__(8495), i = __webpack_require__.n(n);

        function r() {
            let t = "", e = window.location.host;
            return e = e.split(".").pop(), "ca" == e ? t = "加拿大" : "com" == e ? t = "美国" : "jp" == e ? t = "日本" : "de" == e ? t = "德国" : "fr" == e ? t = "法国" : "mx" == e ? t = "墨西哥" : "uk" == e ? t = "英国" : "au" == e && (t = "澳大利亚"), t
        }

        function o(t) {
            t.t = (new Date).getTime() + "";
            let e = i()(t.t + "ncjq28n934nfa012ezcc;@#zrcsf");
            return t.sign = e, t
        }

        function a(t, e = {}, n = {}) {
            return new Promise((i => {
                n["Content-Type"] = "Application/json";
                let r = {method: "POST", body: JSON.stringify(e), headers: n};
                s(t, r).then((t => {
                    i(t)
                }))
            }))
        }

        function s(t, e) {
            return new Promise(((n, i) => {
                chrome.runtime.sendMessage({type: "request", data: {url: t, options: e}}, (t => {
                    -2 == t?.code ? (antd.message.warning(t.msg), chrome.storage.local.remove(["userInfo", "level"])) : n(t)
                }))
            }))
        }

        var l = function () {
            var t = this, e = t.$createElement, n = t._self._c || e;
            return n("div", {
                staticStyle: {
                    width: "100%",
                    height: "100%",
                    position: "relative"
                }
            }, [n("div", {staticClass: "crx-item"}, [n("div", {staticClass: "crx-item-label"}, [t._v("ASIN:")]), t._v(" "), n("div", {staticClass: "crx-item-text"}, [t._v("\n\n      " + t._s(t.asin) + "\n\n      "), n("a-icon", {
                attrs: {type: "copy"},
                on: {
                    click: function (e) {
                        return t.clickCopy(t.asin)
                    }
                }
            }), t._v(" "), !t.asin || !t.brand || t.collectStatus || t.asinMark || t.bestsellersPage ? t._e() : n("span", {
                staticClass: "collect crx-asin-collect",
                on: {click: t.collectAsin}
            }, [t._v("采集")]), t._v(" "), t.asin && t.brand && t.collectStatus && !t.asinMark ? n("span", {
                staticClass: "collect",
                staticStyle: {background: "blue"}
            }, [t._v("已采集")]) : t._e()], 1)]), t._v(" "), t.brand ? n("div", {staticClass: "crx-item"}, [n("div", {staticClass: "crx-item-label"}, [t._v("品牌:")]), t._v(" "), n("div", {
                staticClass: "crx-item-text",
                staticStyle: {display: "flex", "align-items": "center"}
            }, [n("span", {
                staticClass: "crx-brand",
                staticStyle: {"margin-right": "10px", "user-select": "none"}
            }, [t._v(t._s(t.brand))]), t._v(" "), t.brandResult ? t._e() : n("span", {
                staticClass: "crx-copy",
                on: {
                    click: function (e) {
                        return t.checkBrand(t.brand)
                    }
                }
            }, [t._v("复制并检测")]), t._v(" "), "未侵权" == t.brandResult ? n("span", {staticStyle: {color: "blue"}}, [t._v(t._s(t.brandResult))]) : n("a-popover", [t.brandResultList.length > 0 ? n("template", {slot: "content"}, t._l(t.brandResultList, (function (e) {
                return n("a-tag", {
                    key: e.country,
                    staticStyle: {"margin-right": "10px"},
                    attrs: {color: e.color}
                }, [t._v(t._s(e.country) + t._s(e.status))])
            })), 1) : t._e(), t._v(" "), n("span", {
                style: {color: t.brandResultColor, fontWeight: "normal"},
                attrs: {type: "primary"}
            }, [t._v("\n          " + t._s(t.brandResult) + "\n        ")])], 2)], 1)]) : t._e(), t._v(" "), n("div", {staticClass: "crx-item"}, [n("div", {staticClass: "crx-item-label"}, [t._v("卖家:")]), t._v(" "), n("div", {
                staticClass: "crx-item-text",
                staticStyle: {display: "flex", "align-items": "center", "flex-wrap": "wrap"}
            }, [n("span", [t._v(t._s(t.seller_name))]), t._v(" "), n("a-tooltip", {
                attrs: {
                    placement: "topLeft",
                    "arrow-point-at-center": ""
                }
            }, [n("div", {attrs: {slot: "title"}, slot: "title"}, t._l(t.businessInfo, (function (e) {
                return n("div", {key: e}, [t._v(t._s(e))])
            })), 0), t._v(" "), t.country ? n("img", {
                staticStyle: {width: "18px", "margin-left": "10px"},
                attrs: {src: t.country}
            }) : t._e()]), t._v(" "), n("div", {
                staticStyle: {"margin-left": "15px", "font-weight": "normal"},
                domProps: {innerHTML: t._s(t.seller_html)}
            }), t._v(" "), n("div", {
                staticClass: "seller-tag",
                staticStyle: {"margin-left": "15px", "font-weight": "normal"}
            }, [t._v("配送:" + t._s(t.seller_type))])], 1)]), t._v(" "), n("div", {staticClass: "line"}), t._v(" "), t.cartInfo.totalFee ? n("div", {staticClass: "crx-item"}, [n("div", {staticClass: "crx-item-label"}, [t._v("购物车价格:")]), t._v(" "), n("div", {
                staticClass: "crx-item-text",
                staticStyle: {display: "flex", "align-items": "center", "flex-wrap": "wrap"}
            }, [n("span", {
                staticClass: "crx-cart-price",
                staticStyle: {color: "red", "margin-left": "5px"}
            }, [n("span", {staticStyle: {width: "12px"}}, [t._v("$")]), t._v(t._s(t.cartInfo.totalFee))])])]) : t._e(), t._v(" "), t.cartInfo.totalFee ? n("div", {staticClass: "line"}) : t._e(), t._v(" "), t.bsr.length ? n("div", {staticClass: "crx-item-text"}, t._l(t.bsr, (function (e) {
                return n("div", {
                    staticStyle: {
                        display: "flex",
                        "align-items": "center",
                        "margin-bottom": "5px"
                    }
                }, [n("div", {staticClass: "rank-tag"}, [t._v(t._s(e.rank))]), t._v(" "), n("span", {staticStyle: {margin: "0 5px"}}, [t._v("in")]), t._v(" "), n("a", {
                    staticStyle: {color: "rgb(0, 103, 192) !important"},
                    attrs: {href: e.url}
                }, [t._v(t._s(e.sort))])])
            })), 0) : t._e(), t._v(" "), t.bsr.length ? n("div", {staticClass: "line"}) : t._e(), t._v(" "), t.color ? n("div", {staticClass: "crx-item"}, [n("div", {staticClass: "crx-item-label"}, [t._v("颜色:")]), t._v(" "), n("div", {staticClass: "crx-item-text"}, [t._v(t._s(t.color))])]) : t._e(), t._v(" "), t.color ? n("div", {staticClass: "line"}) : t._e(), t._v(" "), t.weight ? n("div", {staticClass: "crx-item"}, [n("div", {staticClass: "crx-item-label"}, [t._v("重量:")]), t._v(" "), n("div", {staticClass: "crx-item-text"}, [t._v(t._s(t.weight) + "\n      "), t.kilograme ? n("span", [t._v("(" + t._s(t.kilograme) + "g)")]) : t._e()])]) : t._e(), t._v(" "), t.weight ? n("div", {staticClass: "line"}) : t._e(), t._v(" "), t.size ? n("div", {staticClass: "crx-item"}, [n("div", {staticClass: "crx-item-label"}, [t._v("尺寸:")]), t._v(" "), n("div", {staticClass: "crx-item-text"}, [t._v(t._s(t.size) + "\n    ")])]) : t._e(), t._v(" "), t.size ? n("div", {staticClass: "line"}) : t._e(), t._v(" "), t.bianti ? n("div", {staticClass: "crx-item"}, [n("div", {staticClass: "crx-item-label"}, [t._v("变体:")]), t._v(" "), n("div", {staticClass: "crx-item-text"}, [t._v(t._s(t.bianti) + "\n    ")])]) : t._e(), t._v(" "), t.bianti ? n("div", {staticClass: "line"}) : t._e(), t._v(" "), t.upload_time ? n("div", {staticClass: "crx-item"}, [n("div", {staticClass: "crx-item-label"}, [t._v("上架时间:")]), t._v(" "), n("div", {staticClass: "crx-item-text"}, [t._v(t._s(t.upload_time) + "\n      "), n("span", [t._v("(" + t._s(t.todayDistance) + ")")])])]) : t._e(), t._v(" "), n("div", {staticClass: "crx-item"}, [n("div", {
                staticClass: "rank-tag",
                staticStyle: {cursor: "pointer"},
                on: {click: t.searchImg}
            }, [t._v("1688查图")]), t._v(" "), n("div", {
                staticClass: "rank-tag",
                staticStyle: {cursor: "pointer", "margin-left": "20px"},
                on: {click: t.findSimilar}
            }, [t._v("找相似")])]), t._v(" "), n("img", {
                staticStyle: {
                    position: "absolute",
                    width: "30px",
                    top: "0",
                    right: "0"
                }, attrs: {src: t.logo, alt: ""}
            }), t._v(" "), t.loading ? n("a-spin", {staticClass: "spin", attrs: {spinning: t.loading}}) : t._e()], 1)
        };
        l._withStripped = !0;
        const u = __webpack_require__(7503);
        var c = function () {
            var t = this, e = t.$createElement, n = t._self._c || e;
            return t.visible ? n("a-modal", {
                staticClass: "mark",
                attrs: {title: t.title, visible: t.visible, "confirm-loading": t.confirmLoading, width: "50%"},
                on: {ok: t.handleOk, cancel: t.handleCancel}
            }, [n("div", [n("a-form", {
                ref: "form",
                attrs: {form: t.form, "label-col": t.labelCol, "wrapper-col": t.wrapperCol}
            }, [n("a-form-item", {attrs: {label: "类型"}}, [n("a-select", {
                directives: [{
                    name: "decorator",
                    rawName: "v-decorator",
                    value: ["type", {rules: [{required: !0, message: "请选择"}]}],
                    expression: "['type', { rules: [{ required: true, message: '请选择' }] }]"
                }]
            }, t._l(t.typeList, (function (e, i) {
                return n("a-select-option", {
                    key: e,
                    attrs: {value: e}
                }, [t._v("\n            " + t._s(e) + "\n          ")])
            })), 1)], 1), t._v(" "), n("a-form-item", {attrs: {label: "备注"}}, [n("a-input", {
                directives: [{
                    name: "decorator",
                    rawName: "v-decorator",
                    value: ["remark"],
                    expression: "['remark']"
                }], staticStyle: {"min-height": "160px"}, attrs: {type: "textarea", placeholder: "请输入备注"}
            })], 1)], 1)], 1)]) : t._e()
        };
        c._withStripped = !0;
        const h = {
            components: {}, data() {
                return {
                    form: this.$form.createForm(this, {name: "normal_login"}),
                    visible: !1,
                    confirmLoading: !1,
                    labelCol: {xs: {span: 24}, sm: {span: 5}},
                    wrapperCol: {xs: {span: 24}, sm: {span: 16}},
                    infos: null,
                    title: "标记",
                    tag: "",
                    typeList: ["普通标记", "侵权标记", "上架标记", "取消标记"],
                    asin: null,
                    id: null
                }
            }, mounted() {
            }, methods: {
                handleOk() {
                    this.form.validateFields(((t, e) => {
                        if (console.log("values", e, this.asin), !t) {
                            if (this.confirmLoading = !0, e.asin = this.asin, e.country = r(), "取消标记" == e.type) return function (t, e = {}) {
                                return new Promise((n => {
                                    s(t = `${t}?${new URLSearchParams(e).toString()}`, {method: "delete"}).then((t => {
                                        n(t)
                                    }))
                                }))
                            }("/asinMark/delete", {asin: this.asin, country: r()}).then((t => {
                                antd.message.success("操作成功"), this.$emit("changeMark", null)
                            })), this.confirmLoading = !1, this.closeModal(), !1;
                            a("/asinMark/add", e).then((t => {
                                0 == t.code ? (antd.message.success("操作成功"), e.id = "1", e.nickname = t.data.nickname, this.$emit("changeMark", e), this.closeModal()) : antd.message.warning("操作失败")
                            })).finally((() => {
                                this.confirmLoading = !1
                            }))
                        }
                    }))
                }, handleCancel() {
                    this.closeModal()
                }, closeModal() {
                    this.visible = !1
                }, setForm(t) {
                    let {id: e, type: n, asin: i, remark: r} = t;
                    e ? (this.form.setFieldsValue({
                        type: n,
                        remark: r
                    }), this.id = e) : (this.id = null, this.form.setFieldsValue({})), this.asin = i
                }
            }
        }, d = h;
        var p = __webpack_require__(3379), f = __webpack_require__.n(p), g = __webpack_require__(7795),
            m = __webpack_require__.n(g), y = __webpack_require__(569), v = __webpack_require__.n(y),
            _ = __webpack_require__(3565), T = __webpack_require__.n(_), x = __webpack_require__(9216),
            S = __webpack_require__.n(x), A = __webpack_require__(4589), b = __webpack_require__.n(A),
            I = __webpack_require__(7423), E = {};
        E.styleTagTransform = b(), E.setAttributes = T(), E.insert = v().bind(null, "head"), E.domAPI = m(), E.insertStyleElement = S();
        f()(I.Z, E);
        I.Z && I.Z.locals && I.Z.locals;

        function C(t, e, n, i, r, o, a, s) {
            var l, u = "function" == typeof t ? t.options : t;
            if (e && (u.render = e, u.staticRenderFns = n, u._compiled = !0), i && (u.functional = !0), o && (u._scopeId = "data-v-" + o), a ? (l = function (t) {
                (t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__), r && r.call(this, t), t && t._registeredComponents && t._registeredComponents.add(a)
            }, u._ssrRegister = l) : r && (l = s ? function () {
                r.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
            } : r), l) if (u.functional) {
                u._injectStyles = l;
                var c = u.render;
                u.render = function (t, e) {
                    return l.call(e), c(t, e)
                }
            } else {
                var h = u.beforeCreate;
                u.beforeCreate = h ? [].concat(h, l) : [l]
            }
            return {exports: t, options: u}
        }

        const D = {
            props: {asin: "", result: "", mainImg: ""},
            components: {markModal: C(d, c, [], !1, null, "6625082d", null).exports},
            data: () => ({
                loading: !0,
                brand: "",
                follwer_seller: 0,
                seller_name: "",
                seller_type: "",
                bsr: [],
                color: "",
                size: "",
                seller_html: "",
                upload_time: "",
                todayDistance: "",
                brandResult: "",
                brandResultList: "",
                weight: "",
                bianti: "",
                cartInfo: {},
                logo: "",
                kilograme: "",
                country: "",
                businessInfo: [],
                mark: null,
                wait: !1,
                collectStatus: !1,
                asinMark: !1,
                brandResultColor: "",
                bestsellersPage: location.href.includes("gp/bestsellers") || location.href.includes("Best-Sellers")
            }),
            mounted() {
                this.asin && (this.getShipFee(), chrome.storage.local.get("asinArr", (t => {
                    t?.asinArr?.includes(this.asin) && (this.collectStatus = !0)
                }))), this.logo = chrome.runtime.getURL("icon/logo.png"), window.addEventListener("message", (t => {
                    let e = t?.data || {};
                    "asin_mark" == e.origin && e.asin == this.asin && (this.asinMark = !0)
                }))
            },
            methods: {
                findSimilar() {
                    let t = `https://www.amazon.com/stylesnap?q=${this.mainImg || document.querySelector("li.item.a-spacing-small img").src}`;
                    window.open(t)
                }, showGoodsInfo() {
                    let t = this.result;
                    if (this.brand = t?.brand, this.brand && (this.brand = this.brand.replace(/(访问|商店|品牌旗舰店|.*?：)/g, "").trim()), this.color = t?.color || "", this.weight = t?.weight || "", t?.weight) try {
                        let e = t.weight.match(/[\d.]+/)[0];
                        t.weight.toLocaleLowerCase().includes("pounds") && (this.kilograme = (453.6 * parseFloat(e)).toFixed(2)), t.weight.toLocaleLowerCase().includes("ounces") && (this.kilograme = (28.35 * parseFloat(e)).toFixed(2))
                    } catch {
                    }
                    this.bianti = t?.bianti || "", this.size = t?.size, this.bsr = t?.bsr.map((t => {
                        let e = t.sort.match(/#[\d,]+/gi);
                        return e && (t.rank = e[0], t.sort = t.sort.replace(t.rank, "").replace("in", "")), t
                    })), t?.upload_time && (this.upload_time = t.upload_time, this.todayDistance = Math.ceil(((new Date).getTime() - new Date(t.upload_time).getTime()) / 864e5))
                }, clickCopy(t) {
                    document.addEventListener("copy", (function (e) {
                        e.clipboardData.setData("text/plain", t), e.preventDefault()
                    }), {once: !0}), document.execCommand("copy"), antd.message.success("复制成功")
                }, checkBrand(t) {
                    chrome.storage.local.get(["userInfo", "level"], (e => {
                        if (e?.userInfo) {
                            if (parseInt(e?.level || "0") <= 0) return antd.message.warning("仅会员可检测"), !1;
                            this.clickCopy(t), a("/public/checkBrand", o({brand: t})).then((t => {
                                0 == t.code ? (this.loading = !1, this.showBrandInfo(t?.data || "[]", !1), console.log(this.brandResultList, this.brandResult)) : antd.message.warning(t.msg)
                            }))
                        } else antd.message.warning("请登录后操作")
                    }))
                }, getShipFee() {
                    let t = `https://${window.location.host}/gp/product/ajax/ref=dp_aod_new_mbc?asin=${this.asin}&pc=dp&experienceId=aodAjaxMain`;
                    fetch(t, {method: "get", credentials: "include"}).then((t => t.text())).then((t => {
                        (function (t) {
                            let e = "", n = "", i = "", r = "", o = 1;
                            return new Promise((a => {
                                let s = u.load(t), l = s("#aod-pinned-offer a.a-size-small.a-link-normal");
                                if (l.length || (l = s("#aod-pinned-offer #aod-offer-soldBy a")), l.length || (l = s("#aod-pinned-offer #aod-offer-soldBy span")), l.length) {
                                    n = s(l).text(), i = `${window.location.protocol}//${window.location.host}${s(l).attr("href")}`;
                                    let t = s("#aod-pinned-offer .a-price").eq(0).text() || "";
                                    t.includes("€") && (t = t.replace(/,/g, ".")), t = t.replace(/,/g, ""), t = t.match(/[\d.]+/), t = t ? t[0] : 0;
                                    let a = s('#aod-pinned-offer span[data-csa-c-type="element"]').attr("data-csa-c-delivery-price") || "";
                                    a = a.match(/[\d.]+/), a = a ? a[0] : 0, t && (e = (parseFloat(t) + parseFloat(a)).toFixed(2));
                                    let u = s("#aod-pinned-offer .a-spacing-micro").text() || "";
                                    u = u.match(/\d+/), u && (e = (e - parseFloat(u[0])).toFixed(2)), r = s("#aod-pinned-offer #aod-offer-shipsFrom").eq(0).find("span.a-size-small").eq(1).text() || "", r = r && !r.toLocaleLowerCase().includes("amazon") ? "FBM" : "FBA", o = s("#aod-offer-list > .a-section > #aod-offer").length + 1
                                }
                                a({totalFee: e, cart_name: n, cart_url: i, seller_type: r, follwer_seller: o})
                            }))
                        })(t).then((t => {
                            console.log("getShipFee", t), this.cartInfo = t, this.seller_name = t.cart_name, this.seller_type = t.seller_type, this.getCountry(t.cart_url), this.$emit("shipFee", t), this.seller_html = `<a \n            data-action="show-all-offers-display" \n            data-show-all-offers-display="{&quot;asin&quot;:&quot;${this.asin}&quot;}" \n            href="${window.location.protocol}//${window.location.host}/gp/offer-listing/${this.asin}/ref=dp_olp_new_mbc?ie=UTF8&amp;condition=new" \n            target="_blank" \n            class="seller-tag a-declarative">\n            卖家:${t.follwer_seller}\n          </a>`
                        }))
                    }))
                }, getCountry(t) {
                    let e = t.match(/(?<=seller=).*?(?=&)/);
                    e && (e = e[0], chrome.storage.local.get("country", (n => {
                        let i = n?.country || {};
                        if (i[e] && i[e].time > (new Date).getTime() / 1e3) {
                            let t = i[e].data, n = t.pop();
                            this.country = chrome.runtime.getURL(`icon/${n}.png`), t.push(n), this.businessInfo = t, console.log("exist")
                        } else console.log("not exist"), chrome.runtime.sendMessage({type: "getCart", data: t}, (t => {
                            (function (t) {
                                return new Promise((e => {
                                    let n = u.load(t), i = [];
                                    n(".indent-left").each((function () {
                                        i.push(n(this).text())
                                    })), e(i)
                                }))
                            })(t).then((t => {
                                if (console.log("getCountry", t), t && t.length) {
                                    i[e] = {
                                        data: t,
                                        time: parseInt((new Date).getTime() / 1e3) + 604800
                                    }, chrome.storage.local.set({country: i});
                                    let n = t.pop();
                                    this.country = chrome.runtime.getURL(`icon/${n}.png`), t.push(n), this.businessInfo = t
                                }
                            }))
                        }))
                    })))
                }, addMark() {
                    this.$refs.markModal.visible = !0, this.$nextTick((() => {
                        this.$refs.markModal.setForm({asin: this.asin})
                    }))
                }, editMark() {
                    this.$refs.markModal.visible = !0, this.$nextTick((() => {
                        this.$refs.markModal.setForm(this.mark)
                    }))
                }, changeMark(t) {
                    this.mark = t
                }, searchImg() {
                    if (this.wait) return antd.message.warning("正在查询，请稍等"), !1;
                    let t = this.mainImg || document.querySelector("li.item.a-spacing-small img").src;
                    console.log("img", t), t && (this.wait = !0, chrome.runtime.sendMessage({
                        type: "ali",
                        data: t
                    }, (t => {
                        console.log("res", t), this.wait = !1, 0 == t.code ? window.open(t.url) : antd.$message.warning("获取失败")
                    })))
                }, collectAsin() {
                    if (this.brandResult) this.collectStatus = !0, this.$emit("collectAsin", {
                        status: "未侵权" == this.brandResult ? "未侵权" : "侵权",
                        brandResult: this.brandResultList
                    }); else {
                        a("/public/checkBrand", o({brand: this.brand})).then((t => {
                            0 == t.code ? (this.loading = !1, this.showBrandInfo(t?.data || "[]", !0), this.collectStatus = !0) : antd.message.warning("品牌检测失败")
                        }))
                    }
                }, showBrandInfo(t, e = !1) {
                    if (t = JSON.parse(t), console.log("arr", t), 0 == t.length) return this.brandResult = "未侵权", this.brandResultColor = "blue", this.brandResultList = [], e && this.$emit("collectAsin", {
                        status: "未侵权" == this.brandResult ? "未侵权" : "侵权",
                        brandResult: this.brandResultList
                    }), !1;
                    let n = ["Registered", "Pending", "Expired", "Ended"], i = location.host.split(".").pop();
                    "com" == i && (i = "us");
                    let r = {};
                    1 == t.length ? r[t[0].designation] = t[0].status : r = t.reduce(((t, e, i) => {
                        if (1 == i && (t = {[t.designation]: t.status}), Object.keys(t).includes(e.designation)) {
                            n.indexOf(t[e.designation]) > n.indexOf(e.status) && (t[e.designation] = e.status)
                        } else t[e.designation] = e.status;
                        return t
                    }));
                    let o = {
                        AB: "ARABPAT",
                        AD: "安道尔",
                        AE: "阿拉伯联合酋长国",
                        AF: "阿富汗",
                        AFR: "非洲",
                        AG: "安提瓜和巴布达",
                        AI: "安圭拉",
                        AL: "阿尔巴尼亚",
                        AM: "亚美尼亚",
                        AN: "荷属安的列斯",
                        ANT: "南极洲",
                        AO: "安哥拉",
                        AP: "非洲地区知识产权组织 ",
                        AQ: "南极洲",
                        AR: "阿根廷",
                        AS: "美属萨摩亚",
                        ASI: "亚洲",
                        AT: "奥地利",
                        AU: "澳大利亚",
                        AW: "阿鲁巴",
                        AX: "奥兰群岛",
                        AZ: "阿塞拜疆",
                        BA: "波斯尼亚和黑塞哥维纳",
                        BB: "巴巴多斯",
                        BD: "孟加拉国",
                        BE: "比利时",
                        BF: "布基纳法索",
                        BG: "保加利亚",
                        BH: "巴林",
                        BI: "布隆迪",
                        BJ: "贝宁",
                        BL: "圣巴泰勒米",
                        BM: "百慕大",
                        BN: "文莱达鲁萨兰国",
                        BO: "多民族玻利维亚国",
                        BQ: "博纳尔、圣俄斯塔休斯和萨巴",
                        BR: "巴西",
                        BS: "巴哈马",
                        BT: "不丹",
                        BV: "布韦岛",
                        BW: "博茨瓦纳",
                        BX: "比荷卢知识产权局",
                        BY: "白俄罗斯",
                        BZ: "伯利兹",
                        CA: "加拿大",
                        CC: "科科斯群岛（基灵群岛）",
                        CD: "刚果民主共和国",
                        CF: "中非共和国",
                        CG: "刚果",
                        CH: "瑞士",
                        CI: "科特迪瓦",
                        CK: "库克群岛",
                        CL: "智利",
                        CM: "喀麦隆",
                        CN: "中国",
                        CO: "哥伦比亚",
                        CR: "哥斯达黎加",
                        CS: "捷克斯洛伐克",
                        CU: "古巴",
                        CV: "佛得角",
                        CW: "库拉索",
                        CX: "圣诞岛",
                        CY: "塞浦路斯",
                        CZ: "捷克共和国",
                        DD: "德意志民主共和国",
                        DE: "德国",
                        DJ: "吉布提",
                        DK: "丹麦",
                        DM: "多米尼克",
                        DO: "多米尼加",
                        DT: "西德",
                        DZ: "阿尔及利亚",
                        EA: "欧亚专利组织",
                        EC: "厄瓜多尔",
                        EE: "爱沙尼亚",
                        EG: "埃及",
                        EH: "西撒哈拉",
                        EM: "欧洲联盟",
                        EP: "欧洲专利局",
                        ER: "厄立特里亚",
                        ES: "西班牙",
                        ET: "埃塞俄比亚",
                        EUR: "欧洲",
                        FI: "芬兰",
                        FJ: "斐济",
                        FK: "福克兰群岛（马尔维纳斯群岛）",
                        FM: "密克罗尼西亚联邦",
                        FO: "法罗群岛",
                        FR: "法国",
                        GA: "加蓬",
                        GB: "英国",
                        GC: "海湾阿拉伯国家合作委员会专利局",
                        GD: "格林纳达",
                        GE: "格鲁吉亚",
                        GF: "法属圭亚那",
                        GG: "格恩西岛",
                        GH: "加纳",
                        GI: "直布罗陀",
                        GL: "格陵兰",
                        GM: "冈比亚",
                        GN: "几内亚",
                        GP: "瓜德罗普",
                        GQ: "赤道几内亚",
                        GR: "希腊",
                        GS: "南乔治亚和南桑威奇群岛",
                        GT: "危地马拉",
                        GU: "关岛",
                        GW: "几内亚比绍",
                        GY: "圭亚那",
                        HK: "香港",
                        HM: "赫德岛和麦克唐纳群岛",
                        HN: "洪都拉斯",
                        HR: "克罗地亚",
                        HT: "海地",
                        HU: "匈牙利",
                        IB: "世界知识产权组织国际局",
                        ID: "印度尼西亚",
                        IE: "爱尔兰",
                        IL: "以色列",
                        IM: "马恩岛",
                        IN: "印度",
                        INN: "世界卫生组织",
                        IO: "英属印度洋领地",
                        IQ: "伊拉克",
                        IR: "伊朗伊斯兰共和国",
                        IS: "冰岛",
                        IT: "意大利",
                        JE: "泽西岛",
                        JM: "牙买加",
                        JO: "约旦",
                        JP: "日本",
                        KE: "肯尼亚",
                        KG: "吉尔吉斯斯坦",
                        KH: "柬埔寨",
                        KI: "基里巴斯",
                        KM: "科摩罗",
                        KN: "圣基茨和尼维斯",
                        KP: "朝鲜民主主义人民共和国",
                        KR: "大韩民国",
                        KW: "科威特",
                        KY: "开曼群岛",
                        KZ: "哈萨克斯坦",
                        LA: "老挝人民民主共和国",
                        LB: "黎巴嫩",
                        LC: "圣卢西亚",
                        LI: "列支敦士登",
                        LISBON: "世界知识产权组织",
                        LK: "斯里兰卡",
                        LP: "LATIPAT",
                        LR: "利比里亚",
                        LS: "莱索托",
                        LT: "立陶宛",
                        LU: "卢森堡",
                        LV: "拉脱维亚",
                        LY: "利比亚",
                        MA: "摩洛哥",
                        MC: "摩纳哥",
                        MD: "摩尔多瓦共和国",
                        ME: "黑山",
                        MF: "圣马丁（法国部分）",
                        MG: "马达加斯加",
                        MH: "马绍尔群岛",
                        MK: "前南斯拉夫的马其顿共和国",
                        ML: "马里",
                        MM: "缅甸",
                        MN: "蒙古",
                        MO: "澳门",
                        MP: "北马里亚纳群岛",
                        MQ: "马提尼克",
                        MR: "毛里塔尼亚",
                        MS: "蒙特塞拉特",
                        MT: "马耳他",
                        MU: "毛里求斯",
                        MV: "马尔代夫",
                        MW: "马拉维",
                        MX: "墨西哥",
                        MY: "马来西亚",
                        MZ: "莫桑比克",
                        NA: "纳米比亚",
                        NAM: "北美洲",
                        NC: "新喀里多尼亚",
                        NE: "尼日尔",
                        NF: "诺福克岛",
                        NG: "尼日利亚",
                        NI: "尼加拉瓜",
                        NL: "荷兰",
                        NO: "挪威",
                        NP: "尼泊尔",
                        NR: "瑙鲁",
                        NU: "纽埃",
                        NZ: "新西兰",
                        OA: "非洲知识产权组织",
                        OCE: "大洋洲",
                        OM: "阿曼",
                        PA: "巴拿马",
                        PE: "秘鲁",
                        PF: "法属波利尼西亚",
                        PG: "巴布亚新几内亚",
                        PH: "菲律宾",
                        PK: "巴基斯坦",
                        PL: "波兰",
                        PM: "圣皮埃尔和密克隆",
                        PN: "皮特凯恩",
                        PR: "波多黎各",
                        PS: "巴勒斯坦",
                        PT: "葡萄牙",
                        PW: "帕劳",
                        PY: "巴拉圭",
                        QA: "卡塔尔",
                        QO: "没有ST.3代码的组织",
                        QZ: "欧洲联盟",
                        RE: "留尼汪",
                        RO: "罗马尼亚",
                        RS: "塞尔维亚",
                        RU: "俄罗斯联邦",
                        RW: "卢旺达",
                        SA: "沙特阿拉伯",
                        SAM: "南美洲",
                        SB: "所罗门群岛",
                        SC: "塞舌尔",
                        SD: "苏丹",
                        SE: "瑞典",
                        SG: "新加坡",
                        SH: "圣赫勒拿、阿森松和特里斯坦-达库尼亚",
                        SI: "斯洛文尼亚",
                        SIXTER: "世界知识产权组织",
                        SJ: "斯瓦尔巴和扬马延",
                        SK: "斯洛伐克",
                        SL: "塞拉里昂",
                        SM: "圣马力诺",
                        SN: "塞内加尔",
                        SO: "索马里",
                        SR: "苏里南",
                        SS: "南苏丹",
                        ST: "圣多美和普林西比",
                        SU: "苏联",
                        SV: "萨尔瓦多",
                        SX: "圣马丁（荷兰部分）",
                        SY: "阿拉伯叙利亚共和国",
                        SZ: "斯威士兰",
                        TC: "特克斯和凯科斯群岛",
                        TD: "乍得",
                        TF: "法属南部领地",
                        TG: "多哥",
                        TH: "泰国",
                        TJ: "塔吉克斯坦",
                        TK: "托克劳",
                        TL: "东帝汶",
                        TM: "土库曼斯坦",
                        TN: "突尼斯",
                        TO: "汤加",
                        TR: "土耳其",
                        TT: "特立尼达和多巴哥",
                        TV: "图瓦卢",
                        TW: "台湾（中国省）",
                        TZ: "坦桑尼亚联合共和国",
                        UA: "乌克兰",
                        UG: "乌干达",
                        UK: "英国",
                        UM: "美国本土外小岛屿",
                        US: "美国",
                        UY: "乌拉圭",
                        UZ: "乌兹别克斯坦",
                        VA: "罗马教廷",
                        VC: "圣文森特和格林纳丁斯",
                        VE: "委内瑞拉玻利瓦尔共和国",
                        VG: "英属维尔京群岛",
                        VI: "美属维尔京群岛",
                        VN: "越南",
                        VU: "瓦努阿图",
                        WF: "瓦利斯和富图纳",
                        WHO: "世界卫生组织",
                        WO: "世界知识产权组织",
                        WS: "萨摩亚",
                        XK: "科索沃共和国",
                        XN: "北欧专利局",
                        XX: "国际",
                        XXX: "跨国和国际局",
                        YD: "民主也门",
                        YE: "也门",
                        YT: "马约特岛",
                        YU: "塞尔维亚和黑山",
                        ZA: "南非",
                        ZM: "赞比亚",
                        ZW: "津巴布韦"
                    }, a = {Registered: "已注册", Pending: "待定", Expired: "已过期", Ended: "过期"};
                    Object.keys(r).includes(i.toLocaleUpperCase()) ? this.brandResultColor = "red" : this.brandResultColor = "#df974c", this.brandResult = `${Object.keys(r).length}个注册商标`;
                    let s = Object.keys(r).map((t => ({
                        country: o[t] || t,
                        status: a[r[t]] || r[t],
                        color: t.toLocaleLowerCase() == i ? "red" : "blue"
                    })));
                    this.brandResultList = JSON.parse(JSON.stringify(s)), console.log("brandResultList", this.brandResultList), e && this.$emit("collectAsin", {
                        status: "未侵权" == this.brandResult ? "未侵权" : "侵权",
                        brandResult: this.brandResultList
                    })
                }
            },
            watch: {
                result: {
                    handler(t) {
                        t && (this.loading = !1, this.showGoodsInfo())
                    }, immediate: !0, deep: !0
                }
            }
        }, w = D;
        var M = __webpack_require__(4550), N = {};
        N.styleTagTransform = b(), N.setAttributes = T(), N.insert = v().bind(null, "head"), N.domAPI = m(), N.insertStyleElement = S();
        f()(M.Z, N);
        M.Z && M.Z.locals && M.Z.locals;
        var O = __webpack_require__(6741), L = {};
        L.styleTagTransform = b(), L.setAttributes = T(), L.insert = v().bind(null, "head"), L.domAPI = m(), L.insertStyleElement = S();
        f()(O.Z, L);
        O.Z && O.Z.locals && O.Z.locals;
        const R = C(w, l, [], !1, null, "bacf8f72", null).exports;
        var k = function () {
            var t = this.$createElement, e = this._self._c || t;
            return e("div", {staticStyle: {width: "100%", height: "100%"}}, [e("div", {
                ref: "echartData",
                staticStyle: {width: "100%", height: "100%"}
            })])
        };
        k._withStripped = !0;
        var P = function (t, e) {
            return P = Object.setPrototypeOf || {__proto__: []} instanceof Array && function (t, e) {
                t.__proto__ = e
            } || function (t, e) {
                for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n])
            }, P(t, e)
        };

        function G(t, e) {
            if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");

            function n() {
                this.constructor = t
            }

            P(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
        }

        Object.create;
        Object.create;
        var B = function () {
            this.firefox = !1, this.ie = !1, this.edge = !1, this.newEdge = !1, this.weChat = !1
        }, F = new function () {
            this.browser = new B, this.node = !1, this.wxa = !1, this.worker = !1, this.svgSupported = !1, this.touchEventsSupported = !1, this.pointerEventsSupported = !1, this.domSupported = !1, this.transformSupported = !1, this.transform3dSupported = !1, this.hasGlobalWindow = "undefined" != typeof window
        };
        "object" == typeof wx && "function" == typeof wx.getSystemInfoSync ? (F.wxa = !0, F.touchEventsSupported = !0) : "undefined" == typeof document && "undefined" != typeof self ? F.worker = !0 : "undefined" == typeof navigator ? (F.node = !0, F.svgSupported = !0) : function (t, e) {
            var n = e.browser, i = t.match(/Firefox\/([\d.]+)/),
                r = t.match(/MSIE\s([\d.]+)/) || t.match(/Trident\/.+?rv:(([\d.]+))/), o = t.match(/Edge?\/([\d.]+)/),
                a = /micromessenger/i.test(t);
            i && (n.firefox = !0, n.version = i[1]);
            r && (n.ie = !0, n.version = r[1]);
            o && (n.edge = !0, n.version = o[1], n.newEdge = +o[1].split(".")[0] > 18);
            a && (n.weChat = !0);
            e.svgSupported = "undefined" != typeof SVGRect, e.touchEventsSupported = "ontouchstart" in window && !n.ie && !n.edge, e.pointerEventsSupported = "onpointerdown" in window && (n.edge || n.ie && +n.version >= 11), e.domSupported = "undefined" != typeof document;
            var s = document.documentElement.style;
            e.transform3dSupported = (n.ie && "transition" in s || n.edge || "WebKitCSSMatrix" in window && "m11" in new WebKitCSSMatrix || "MozPerspective" in s) && !("OTransition" in s), e.transformSupported = e.transform3dSupported || n.ie && +n.version >= 9
        }(navigator.userAgent, F);
        const H = F;
        var U = 12, V = "sans-serif", z = U + "px " + V;
        var W, Y, q = function (t) {
                var e = {};
                if ("undefined" == typeof JSON) return e;
                for (var n = 0; n < t.length; n++) {
                    var i = String.fromCharCode(n + 32), r = (t.charCodeAt(n) - 20) / 100;
                    e[i] = r
                }
                return e
            }("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),
            j = {
                createCanvas: function () {
                    return "undefined" != typeof document && document.createElement("canvas")
                }, measureText: function (t, e) {
                    if (!W) {
                        var n = j.createCanvas();
                        W = n && n.getContext("2d")
                    }
                    if (W) return Y !== e && (Y = W.font = e || z), W.measureText(t);
                    t = t || "";
                    var i = /(\d+)px/.exec(e = e || z), r = i && +i[1] || U, o = 0;
                    if (e.indexOf("mono") >= 0) o = r * t.length; else for (var a = 0; a < t.length; a++) {
                        var s = q[t[a]];
                        o += null == s ? r : s * r
                    }
                    return {width: o}
                }, loadImage: function (t, e, n) {
                    var i = new Image;
                    return i.onload = e, i.onerror = n, i.src = t, i
                }
            };
        var X = vt(["Function", "RegExp", "Date", "Error", "CanvasGradient", "CanvasPattern", "Image", "Canvas"], (function (t, e) {
                return t["[object " + e + "]"] = !0, t
            }), {}),
            Z = vt(["Int8", "Uint8", "Uint8Clamped", "Int16", "Uint16", "Int32", "Uint32", "Float32", "Float64"], (function (t, e) {
                return t["[object " + e + "Array]"] = !0, t
            }), {}), K = Object.prototype.toString, Q = Array.prototype, $ = Q.forEach, J = Q.filter, tt = Q.slice,
            et = Q.map, nt = function () {
            }.constructor, it = nt ? nt.prototype : null, rt = "__proto__", ot = 2311;

        function at() {
            return ot++
        }

        function st() {
            for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
            "undefined" != typeof console && console.error.apply(console, t)
        }

        function lt(t) {
            if (null == t || "object" != typeof t) return t;
            var e = t, n = K.call(t);
            if ("[object Array]" === n) {
                if (!zt(t)) {
                    e = [];
                    for (var i = 0, r = t.length; i < r; i++) e[i] = lt(t[i])
                }
            } else if (Z[n]) {
                if (!zt(t)) {
                    var o = t.constructor;
                    if (o.from) e = o.from(t); else {
                        e = new o(t.length);
                        for (i = 0, r = t.length; i < r; i++) e[i] = t[i]
                    }
                }
            } else if (!X[n] && !zt(t) && !Nt(t)) for (var a in e = {}, t) t.hasOwnProperty(a) && a !== rt && (e[a] = lt(t[a]));
            return e
        }

        function ut(t, e, n) {
            if (!Dt(e) || !Dt(t)) return n ? lt(e) : t;
            for (var i in e) if (e.hasOwnProperty(i) && i !== rt) {
                var r = t[i], o = e[i];
                !Dt(o) || !Dt(r) || At(o) || At(r) || Nt(o) || Nt(r) || wt(o) || wt(r) || zt(o) || zt(r) ? !n && i in t || (t[i] = lt(e[i])) : ut(r, o, n)
            }
            return t
        }

        function ct(t, e) {
            for (var n = t[0], i = 1, r = t.length; i < r; i++) n = ut(n, t[i], e);
            return n
        }

        function ht(t, e) {
            if (Object.assign) Object.assign(t, e); else for (var n in e) e.hasOwnProperty(n) && n !== rt && (t[n] = e[n]);
            return t
        }

        function dt(t, e, n) {
            for (var i = Tt(e), r = 0; r < i.length; r++) {
                var o = i[r];
                (n ? null != e[o] : null == t[o]) && (t[o] = e[o])
            }
            return t
        }

        j.createCanvas;

        function pt(t, e) {
            if (t) {
                if (t.indexOf) return t.indexOf(e);
                for (var n = 0, i = t.length; n < i; n++) if (t[n] === e) return n
            }
            return -1
        }

        function ft(t, e, n) {
            if (t = "prototype" in t ? t.prototype : t, e = "prototype" in e ? e.prototype : e, Object.getOwnPropertyNames) for (var i = Object.getOwnPropertyNames(e), r = 0; r < i.length; r++) {
                var o = i[r];
                "constructor" !== o && (n ? null != e[o] : null == t[o]) && (t[o] = e[o])
            } else dt(t, e, n)
        }

        function gt(t) {
            return !!t && ("string" != typeof t && "number" == typeof t.length)
        }

        function mt(t, e, n) {
            if (t && e) if (t.forEach && t.forEach === $) t.forEach(e, n); else if (t.length === +t.length) for (var i = 0, r = t.length; i < r; i++) e.call(n, t[i], i, t); else for (var o in t) t.hasOwnProperty(o) && e.call(n, t[o], o, t)
        }

        function yt(t, e, n) {
            if (!t) return [];
            if (!e) return Gt(t);
            if (t.map && t.map === et) return t.map(e, n);
            for (var i = [], r = 0, o = t.length; r < o; r++) i.push(e.call(n, t[r], r, t));
            return i
        }

        function vt(t, e, n, i) {
            if (t && e) {
                for (var r = 0, o = t.length; r < o; r++) n = e.call(i, n, t[r], r, t);
                return n
            }
        }

        function _t(t, e, n) {
            if (!t) return [];
            if (!e) return Gt(t);
            if (t.filter && t.filter === J) return t.filter(e, n);
            for (var i = [], r = 0, o = t.length; r < o; r++) e.call(n, t[r], r, t) && i.push(t[r]);
            return i
        }

        function Tt(t) {
            if (!t) return [];
            if (Object.keys) return Object.keys(t);
            var e = [];
            for (var n in t) t.hasOwnProperty(n) && e.push(n);
            return e
        }

        var xt = it && bt(it.bind) ? it.call.bind(it.bind) : function (t, e) {
            for (var n = [], i = 2; i < arguments.length; i++) n[i - 2] = arguments[i];
            return function () {
                return t.apply(e, n.concat(tt.call(arguments)))
            }
        };

        function St(t) {
            for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
            return function () {
                return t.apply(this, e.concat(tt.call(arguments)))
            }
        }

        function At(t) {
            return Array.isArray ? Array.isArray(t) : "[object Array]" === K.call(t)
        }

        function bt(t) {
            return "function" == typeof t
        }

        function It(t) {
            return "string" == typeof t
        }

        function Et(t) {
            return "[object String]" === K.call(t)
        }

        function Ct(t) {
            return "number" == typeof t
        }

        function Dt(t) {
            var e = typeof t;
            return "function" === e || !!t && "object" === e
        }

        function wt(t) {
            return !!X[K.call(t)]
        }

        function Mt(t) {
            return !!Z[K.call(t)]
        }

        function Nt(t) {
            return "object" == typeof t && "number" == typeof t.nodeType && "object" == typeof t.ownerDocument
        }

        function Ot(t) {
            return null != t.colorStops
        }

        function Lt(t) {
            return t != t
        }

        function Rt() {
            for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
            for (var n = 0, i = t.length; n < i; n++) if (null != t[n]) return t[n]
        }

        function kt(t, e) {
            return null != t ? t : e
        }

        function Pt(t, e, n) {
            return null != t ? t : null != e ? e : n
        }

        function Gt(t) {
            for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
            return tt.apply(t, e)
        }

        function Bt(t) {
            if ("number" == typeof t) return [t, t, t, t];
            var e = t.length;
            return 2 === e ? [t[0], t[1], t[0], t[1]] : 3 === e ? [t[0], t[1], t[2], t[1]] : t
        }

        function Ft(t, e) {
            if (!t) throw new Error(e)
        }

        function Ht(t) {
            return null == t ? null : "function" == typeof t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "")
        }

        var Ut = "__ec_primitive__";

        function Vt(t) {
            t[Ut] = !0
        }

        function zt(t) {
            return t[Ut]
        }

        var Wt = function () {
            function t() {
                this.data = {}
            }

            return t.prototype.delete = function (t) {
                var e = this.has(t);
                return e && delete this.data[t], e
            }, t.prototype.has = function (t) {
                return this.data.hasOwnProperty(t)
            }, t.prototype.get = function (t) {
                return this.data[t]
            }, t.prototype.set = function (t, e) {
                return this.data[t] = e, this
            }, t.prototype.keys = function () {
                return Tt(this.data)
            }, t.prototype.forEach = function (t) {
                var e = this.data;
                for (var n in e) e.hasOwnProperty(n) && t(e[n], n)
            }, t
        }(), Yt = "function" == typeof Map;
        var qt = function () {
            function t(e) {
                var n = At(e);
                this.data = Yt ? new Map : new Wt;
                var i = this;

                function r(t, e) {
                    n ? i.set(t, e) : i.set(e, t)
                }

                e instanceof t ? e.each(r) : e && mt(e, r)
            }

            return t.prototype.hasKey = function (t) {
                return this.data.has(t)
            }, t.prototype.get = function (t) {
                return this.data.get(t)
            }, t.prototype.set = function (t, e) {
                return this.data.set(t, e), e
            }, t.prototype.each = function (t, e) {
                this.data.forEach((function (n, i) {
                    t.call(e, n, i)
                }))
            }, t.prototype.keys = function () {
                var t = this.data.keys();
                return Yt ? Array.from(t) : t
            }, t.prototype.removeKey = function (t) {
                this.data.delete(t)
            }, t
        }();

        function jt(t) {
            return new qt(t)
        }

        function Xt(t, e) {
            for (var n = new t.constructor(t.length + e.length), i = 0; i < t.length; i++) n[i] = t[i];
            var r = t.length;
            for (i = 0; i < e.length; i++) n[i + r] = e[i];
            return n
        }

        function Zt(t, e) {
            var n;
            if (Object.create) n = Object.create(t); else {
                var i = function () {
                };
                i.prototype = t, n = new i
            }
            return e && ht(n, e), n
        }

        function Kt(t) {
            var e = t.style;
            e.webkitUserSelect = "none", e.userSelect = "none", e.webkitTapHighlightColor = "rgba(0,0,0,0)", e["-webkit-touch-callout"] = "none"
        }

        function Qt(t, e) {
            return t.hasOwnProperty(e)
        }

        function $t() {
        }

        var Jt = 180 / Math.PI;

        function te(t, e) {
            return null == t && (t = 0), null == e && (e = 0), [t, e]
        }

        function ee(t, e) {
            return t[0] = e[0], t[1] = e[1], t
        }

        function ne(t) {
            return [t[0], t[1]]
        }

        function ie(t, e, n) {
            return t[0] = e, t[1] = n, t
        }

        function re(t, e, n) {
            return t[0] = e[0] + n[0], t[1] = e[1] + n[1], t
        }

        function oe(t, e, n, i) {
            return t[0] = e[0] + n[0] * i, t[1] = e[1] + n[1] * i, t
        }

        function ae(t, e, n) {
            return t[0] = e[0] - n[0], t[1] = e[1] - n[1], t
        }

        function se(t) {
            return Math.sqrt(le(t))
        }

        function le(t) {
            return t[0] * t[0] + t[1] * t[1]
        }

        function ue(t, e, n) {
            return t[0] = e[0] * n, t[1] = e[1] * n, t
        }

        function ce(t, e) {
            var n = se(e);
            return 0 === n ? (t[0] = 0, t[1] = 0) : (t[0] = e[0] / n, t[1] = e[1] / n), t
        }

        function he(t, e) {
            return Math.sqrt((t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1]))
        }

        var de = he;
        var pe = function (t, e) {
            return (t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1])
        };

        function fe(t, e, n, i) {
            return t[0] = e[0] + i * (n[0] - e[0]), t[1] = e[1] + i * (n[1] - e[1]), t
        }

        function ge(t, e, n) {
            var i = e[0], r = e[1];
            return t[0] = n[0] * i + n[2] * r + n[4], t[1] = n[1] * i + n[3] * r + n[5], t
        }

        function me(t, e, n) {
            return t[0] = Math.min(e[0], n[0]), t[1] = Math.min(e[1], n[1]), t
        }

        function ye(t, e, n) {
            return t[0] = Math.max(e[0], n[0]), t[1] = Math.max(e[1], n[1]), t
        }

        var ve = function (t, e) {
            this.target = t, this.topTarget = e && e.topTarget
        }, _e = function () {
            function t(t) {
                this.handler = t, t.on("mousedown", this._dragStart, this), t.on("mousemove", this._drag, this), t.on("mouseup", this._dragEnd, this)
            }

            return t.prototype._dragStart = function (t) {
                for (var e = t.target; e && !e.draggable;) e = e.parent || e.__hostTarget;
                e && (this._draggingTarget = e, e.dragging = !0, this._x = t.offsetX, this._y = t.offsetY, this.handler.dispatchToElement(new ve(e, t), "dragstart", t.event))
            }, t.prototype._drag = function (t) {
                var e = this._draggingTarget;
                if (e) {
                    var n = t.offsetX, i = t.offsetY, r = n - this._x, o = i - this._y;
                    this._x = n, this._y = i, e.drift(r, o, t), this.handler.dispatchToElement(new ve(e, t), "drag", t.event);
                    var a = this.handler.findHover(n, i, e).target, s = this._dropTarget;
                    this._dropTarget = a, e !== a && (s && a !== s && this.handler.dispatchToElement(new ve(s, t), "dragleave", t.event), a && a !== s && this.handler.dispatchToElement(new ve(a, t), "dragenter", t.event))
                }
            }, t.prototype._dragEnd = function (t) {
                var e = this._draggingTarget;
                e && (e.dragging = !1), this.handler.dispatchToElement(new ve(e, t), "dragend", t.event), this._dropTarget && this.handler.dispatchToElement(new ve(this._dropTarget, t), "drop", t.event), this._draggingTarget = null, this._dropTarget = null
            }, t
        }();
        const Te = _e;
        var xe = function () {
            function t(t) {
                t && (this._$eventProcessor = t)
            }

            return t.prototype.on = function (t, e, n, i) {
                this._$handlers || (this._$handlers = {});
                var r = this._$handlers;
                if ("function" == typeof e && (i = n, n = e, e = null), !n || !t) return this;
                var o = this._$eventProcessor;
                null != e && o && o.normalizeQuery && (e = o.normalizeQuery(e)), r[t] || (r[t] = []);
                for (var a = 0; a < r[t].length; a++) if (r[t][a].h === n) return this;
                var s = {h: n, query: e, ctx: i || this, callAtLast: n.zrEventfulCallAtLast}, l = r[t].length - 1,
                    u = r[t][l];
                return u && u.callAtLast ? r[t].splice(l, 0, s) : r[t].push(s), this
            }, t.prototype.isSilent = function (t) {
                var e = this._$handlers;
                return !e || !e[t] || !e[t].length
            }, t.prototype.off = function (t, e) {
                var n = this._$handlers;
                if (!n) return this;
                if (!t) return this._$handlers = {}, this;
                if (e) {
                    if (n[t]) {
                        for (var i = [], r = 0, o = n[t].length; r < o; r++) n[t][r].h !== e && i.push(n[t][r]);
                        n[t] = i
                    }
                    n[t] && 0 === n[t].length && delete n[t]
                } else delete n[t];
                return this
            }, t.prototype.trigger = function (t) {
                for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
                if (!this._$handlers) return this;
                var i = this._$handlers[t], r = this._$eventProcessor;
                if (i) for (var o = e.length, a = i.length, s = 0; s < a; s++) {
                    var l = i[s];
                    if (!r || !r.filter || null == l.query || r.filter(t, l.query)) switch (o) {
                        case 0:
                            l.h.call(l.ctx);
                            break;
                        case 1:
                            l.h.call(l.ctx, e[0]);
                            break;
                        case 2:
                            l.h.call(l.ctx, e[0], e[1]);
                            break;
                        default:
                            l.h.apply(l.ctx, e)
                    }
                }
                return r && r.afterTrigger && r.afterTrigger(t), this
            }, t.prototype.triggerWithContext = function (t) {
                for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
                if (!this._$handlers) return this;
                var i = this._$handlers[t], r = this._$eventProcessor;
                if (i) for (var o = e.length, a = e[o - 1], s = i.length, l = 0; l < s; l++) {
                    var u = i[l];
                    if (!r || !r.filter || null == u.query || r.filter(t, u.query)) switch (o) {
                        case 0:
                            u.h.call(a);
                            break;
                        case 1:
                            u.h.call(a, e[0]);
                            break;
                        case 2:
                            u.h.call(a, e[0], e[1]);
                            break;
                        default:
                            u.h.apply(a, e.slice(1, o - 1))
                    }
                }
                return r && r.afterTrigger && r.afterTrigger(t), this
            }, t
        }();
        const Se = xe;
        var Ae = Math.log(2);

        function be(t, e, n, i, r, o) {
            var a = i + "-" + r, s = t.length;
            if (o.hasOwnProperty(a)) return o[a];
            if (1 === e) {
                var l = Math.round(Math.log((1 << s) - 1 & ~r) / Ae);
                return t[n][l]
            }
            for (var u = i | 1 << n, c = n + 1; i & 1 << c;) c++;
            for (var h = 0, d = 0, p = 0; d < s; d++) {
                var f = 1 << d;
                f & r || (h += (p % 2 ? -1 : 1) * t[n][d] * be(t, e - 1, c, u, r | f, o), p++)
            }
            return o[a] = h, h
        }

        function Ie(t, e) {
            var n = [[t[0], t[1], 1, 0, 0, 0, -e[0] * t[0], -e[0] * t[1]], [0, 0, 0, t[0], t[1], 1, -e[1] * t[0], -e[1] * t[1]], [t[2], t[3], 1, 0, 0, 0, -e[2] * t[2], -e[2] * t[3]], [0, 0, 0, t[2], t[3], 1, -e[3] * t[2], -e[3] * t[3]], [t[4], t[5], 1, 0, 0, 0, -e[4] * t[4], -e[4] * t[5]], [0, 0, 0, t[4], t[5], 1, -e[5] * t[4], -e[5] * t[5]], [t[6], t[7], 1, 0, 0, 0, -e[6] * t[6], -e[6] * t[7]], [0, 0, 0, t[6], t[7], 1, -e[7] * t[6], -e[7] * t[7]]],
                i = {}, r = be(n, 8, 0, 0, 0, i);
            if (0 !== r) {
                for (var o = [], a = 0; a < 8; a++) for (var s = 0; s < 8; s++) null == o[s] && (o[s] = 0), o[s] += ((a + s) % 2 ? -1 : 1) * be(n, 7, 0 === a ? 1 : 0, 1 << a, 1 << s, i) / r * e[a];
                return function (t, e, n) {
                    var i = e * o[6] + n * o[7] + 1;
                    t[0] = (e * o[0] + n * o[1] + o[2]) / i, t[1] = (e * o[3] + n * o[4] + o[5]) / i
                }
            }
        }

        var Ee = "___zrEVENTSAVED", Ce = [];

        function De(t, e, n, i, r) {
            if (e.getBoundingClientRect && H.domSupported && !we(e)) {
                var o = e[Ee] || (e[Ee] = {}), a = function (t, e) {
                    var n = e.markers;
                    if (n) return n;
                    n = e.markers = [];
                    for (var i = ["left", "right"], r = ["top", "bottom"], o = 0; o < 4; o++) {
                        var a = document.createElement("div"), s = o % 2, l = (o >> 1) % 2;
                        a.style.cssText = ["position: absolute", "visibility: hidden", "padding: 0", "margin: 0", "border-width: 0", "user-select: none", "width:0", "height:0", i[s] + ":0", r[l] + ":0", i[1 - s] + ":auto", r[1 - l] + ":auto", ""].join("!important;"), t.appendChild(a), n.push(a)
                    }
                    return n
                }(e, o), s = function (t, e, n) {
                    for (var i = n ? "invTrans" : "trans", r = e[i], o = e.srcCoords, a = [], s = [], l = !0, u = 0; u < 4; u++) {
                        var c = t[u].getBoundingClientRect(), h = 2 * u, d = c.left, p = c.top;
                        a.push(d, p), l = l && o && d === o[h] && p === o[h + 1], s.push(t[u].offsetLeft, t[u].offsetTop)
                    }
                    return l && r ? r : (e.srcCoords = a, e[i] = n ? Ie(s, a) : Ie(a, s))
                }(a, o, r);
                if (s) return s(t, n, i), !0
            }
            return !1
        }

        function we(t) {
            return "CANVAS" === t.nodeName.toUpperCase()
        }

        var Me = /([&<>"'])/g, Ne = {"&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;"};

        function Oe(t) {
            return null == t ? "" : (t + "").replace(Me, (function (t, e) {
                return Ne[e]
            }))
        }

        var Le = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, Re = [],
            ke = H.browser.firefox && +H.browser.version.split(".")[0] < 39;

        function Pe(t, e, n, i) {
            return n = n || {}, i ? Ge(t, e, n) : ke && null != e.layerX && e.layerX !== e.offsetX ? (n.zrX = e.layerX, n.zrY = e.layerY) : null != e.offsetX ? (n.zrX = e.offsetX, n.zrY = e.offsetY) : Ge(t, e, n), n
        }

        function Ge(t, e, n) {
            if (H.domSupported && t.getBoundingClientRect) {
                var i = e.clientX, r = e.clientY;
                if (we(t)) {
                    var o = t.getBoundingClientRect();
                    return n.zrX = i - o.left, void (n.zrY = r - o.top)
                }
                if (De(Re, t, i, r)) return n.zrX = Re[0], void (n.zrY = Re[1])
            }
            n.zrX = n.zrY = 0
        }

        function Be(t) {
            return t || window.event
        }

        function Fe(t, e, n) {
            if (null != (e = Be(e)).zrX) return e;
            var i = e.type;
            if (i && i.indexOf("touch") >= 0) {
                var r = "touchend" !== i ? e.targetTouches[0] : e.changedTouches[0];
                r && Pe(t, r, e, n)
            } else {
                Pe(t, e, e, n);
                var o = function (t) {
                    var e = t.wheelDelta;
                    if (e) return e;
                    var n = t.deltaX, i = t.deltaY;
                    if (null == n || null == i) return e;
                    return 3 * (0 !== i ? Math.abs(i) : Math.abs(n)) * (i > 0 ? -1 : i < 0 ? 1 : n > 0 ? -1 : 1)
                }(e);
                e.zrDelta = o ? o / 120 : -(e.detail || 0) / 3
            }
            var a = e.button;
            return null == e.which && void 0 !== a && Le.test(e.type) && (e.which = 1 & a ? 1 : 2 & a ? 3 : 4 & a ? 2 : 0), e
        }

        function He(t, e, n, i) {
            t.addEventListener(e, n, i)
        }

        var Ue = function (t) {
            t.preventDefault(), t.stopPropagation(), t.cancelBubble = !0
        };

        function Ve(t) {
            return 2 === t.which || 3 === t.which
        }

        var ze = function () {
            function t() {
                this._track = []
            }

            return t.prototype.recognize = function (t, e, n) {
                return this._doTrack(t, e, n), this._recognize(t)
            }, t.prototype.clear = function () {
                return this._track.length = 0, this
            }, t.prototype._doTrack = function (t, e, n) {
                var i = t.touches;
                if (i) {
                    for (var r = {points: [], touches: [], target: e, event: t}, o = 0, a = i.length; o < a; o++) {
                        var s = i[o], l = Pe(n, s, {});
                        r.points.push([l.zrX, l.zrY]), r.touches.push(s)
                    }
                    this._track.push(r)
                }
            }, t.prototype._recognize = function (t) {
                for (var e in Ye) if (Ye.hasOwnProperty(e)) {
                    var n = Ye[e](this._track, t);
                    if (n) return n
                }
            }, t
        }();

        function We(t) {
            var e = t[1][0] - t[0][0], n = t[1][1] - t[0][1];
            return Math.sqrt(e * e + n * n)
        }

        var Ye = {
            pinch: function (t, e) {
                var n = t.length;
                if (n) {
                    var i, r = (t[n - 1] || {}).points, o = (t[n - 2] || {}).points || r;
                    if (o && o.length > 1 && r && r.length > 1) {
                        var a = We(r) / We(o);
                        !isFinite(a) && (a = 1), e.pinchScale = a;
                        var s = [((i = r)[0][0] + i[1][0]) / 2, (i[0][1] + i[1][1]) / 2];
                        return e.pinchX = s[0], e.pinchY = s[1], {type: "pinch", target: t[0].target, event: e}
                    }
                }
            }
        };

        function qe(t) {
            return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 1, t[4] = 0, t[5] = 0, t
        }

        function je(t, e) {
            return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t[4] = e[4], t[5] = e[5], t
        }

        function Xe(t, e, n) {
            var i = e[0] * n[0] + e[2] * n[1], r = e[1] * n[0] + e[3] * n[1], o = e[0] * n[2] + e[2] * n[3],
                a = e[1] * n[2] + e[3] * n[3], s = e[0] * n[4] + e[2] * n[5] + e[4],
                l = e[1] * n[4] + e[3] * n[5] + e[5];
            return t[0] = i, t[1] = r, t[2] = o, t[3] = a, t[4] = s, t[5] = l, t
        }

        function Ze(t, e, n) {
            return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t[4] = e[4] + n[0], t[5] = e[5] + n[1], t
        }

        function Ke(t, e, n) {
            var i = e[0], r = e[2], o = e[4], a = e[1], s = e[3], l = e[5], u = Math.sin(n), c = Math.cos(n);
            return t[0] = i * c + a * u, t[1] = -i * u + a * c, t[2] = r * c + s * u, t[3] = -r * u + c * s, t[4] = c * o + u * l, t[5] = c * l - u * o, t
        }

        function Qe(t, e, n) {
            var i = n[0], r = n[1];
            return t[0] = e[0] * i, t[1] = e[1] * r, t[2] = e[2] * i, t[3] = e[3] * r, t[4] = e[4] * i, t[5] = e[5] * r, t
        }

        function $e(t, e) {
            var n = e[0], i = e[2], r = e[4], o = e[1], a = e[3], s = e[5], l = n * a - o * i;
            return l ? (l = 1 / l, t[0] = a * l, t[1] = -o * l, t[2] = -i * l, t[3] = n * l, t[4] = (i * s - a * r) * l, t[5] = (o * r - n * s) * l, t) : null
        }

        var Je = function () {
            function t(t, e) {
                this.x = t || 0, this.y = e || 0
            }

            return t.prototype.copy = function (t) {
                return this.x = t.x, this.y = t.y, this
            }, t.prototype.clone = function () {
                return new t(this.x, this.y)
            }, t.prototype.set = function (t, e) {
                return this.x = t, this.y = e, this
            }, t.prototype.equal = function (t) {
                return t.x === this.x && t.y === this.y
            }, t.prototype.add = function (t) {
                return this.x += t.x, this.y += t.y, this
            }, t.prototype.scale = function (t) {
                this.x *= t, this.y *= t
            }, t.prototype.scaleAndAdd = function (t, e) {
                this.x += t.x * e, this.y += t.y * e
            }, t.prototype.sub = function (t) {
                return this.x -= t.x, this.y -= t.y, this
            }, t.prototype.dot = function (t) {
                return this.x * t.x + this.y * t.y
            }, t.prototype.len = function () {
                return Math.sqrt(this.x * this.x + this.y * this.y)
            }, t.prototype.lenSquare = function () {
                return this.x * this.x + this.y * this.y
            }, t.prototype.normalize = function () {
                var t = this.len();
                return this.x /= t, this.y /= t, this
            }, t.prototype.distance = function (t) {
                var e = this.x - t.x, n = this.y - t.y;
                return Math.sqrt(e * e + n * n)
            }, t.prototype.distanceSquare = function (t) {
                var e = this.x - t.x, n = this.y - t.y;
                return e * e + n * n
            }, t.prototype.negate = function () {
                return this.x = -this.x, this.y = -this.y, this
            }, t.prototype.transform = function (t) {
                if (t) {
                    var e = this.x, n = this.y;
                    return this.x = t[0] * e + t[2] * n + t[4], this.y = t[1] * e + t[3] * n + t[5], this
                }
            }, t.prototype.toArray = function (t) {
                return t[0] = this.x, t[1] = this.y, t
            }, t.prototype.fromArray = function (t) {
                this.x = t[0], this.y = t[1]
            }, t.set = function (t, e, n) {
                t.x = e, t.y = n
            }, t.copy = function (t, e) {
                t.x = e.x, t.y = e.y
            }, t.len = function (t) {
                return Math.sqrt(t.x * t.x + t.y * t.y)
            }, t.lenSquare = function (t) {
                return t.x * t.x + t.y * t.y
            }, t.dot = function (t, e) {
                return t.x * e.x + t.y * e.y
            }, t.add = function (t, e, n) {
                t.x = e.x + n.x, t.y = e.y + n.y
            }, t.sub = function (t, e, n) {
                t.x = e.x - n.x, t.y = e.y - n.y
            }, t.scale = function (t, e, n) {
                t.x = e.x * n, t.y = e.y * n
            }, t.scaleAndAdd = function (t, e, n, i) {
                t.x = e.x + n.x * i, t.y = e.y + n.y * i
            }, t.lerp = function (t, e, n, i) {
                var r = 1 - i;
                t.x = r * e.x + i * n.x, t.y = r * e.y + i * n.y
            }, t
        }();
        const tn = Je;
        var en = Math.min, nn = Math.max, rn = new tn, on = new tn, an = new tn, sn = new tn, ln = new tn, un = new tn,
            cn = function () {
                function t(t, e, n, i) {
                    n < 0 && (t += n, n = -n), i < 0 && (e += i, i = -i), this.x = t, this.y = e, this.width = n, this.height = i
                }

                return t.prototype.union = function (t) {
                    var e = en(t.x, this.x), n = en(t.y, this.y);
                    isFinite(this.x) && isFinite(this.width) ? this.width = nn(t.x + t.width, this.x + this.width) - e : this.width = t.width, isFinite(this.y) && isFinite(this.height) ? this.height = nn(t.y + t.height, this.y + this.height) - n : this.height = t.height, this.x = e, this.y = n
                }, t.prototype.applyTransform = function (e) {
                    t.applyTransform(this, this, e)
                }, t.prototype.calculateTransform = function (t) {
                    var e = this, n = t.width / e.width, i = t.height / e.height, r = [1, 0, 0, 1, 0, 0];
                    return Ze(r, r, [-e.x, -e.y]), Qe(r, r, [n, i]), Ze(r, r, [t.x, t.y]), r
                }, t.prototype.intersect = function (e, n) {
                    if (!e) return !1;
                    e instanceof t || (e = t.create(e));
                    var i = this, r = i.x, o = i.x + i.width, a = i.y, s = i.y + i.height, l = e.x, u = e.x + e.width,
                        c = e.y, h = e.y + e.height, d = !(o < l || u < r || s < c || h < a);
                    if (n) {
                        var p = 1 / 0, f = 0, g = Math.abs(o - l), m = Math.abs(u - r), y = Math.abs(s - c),
                            v = Math.abs(h - a), _ = Math.min(g, m), T = Math.min(y, v);
                        o < l || u < r ? _ > f && (f = _, g < m ? tn.set(un, -g, 0) : tn.set(un, m, 0)) : _ < p && (p = _, g < m ? tn.set(ln, g, 0) : tn.set(ln, -m, 0)), s < c || h < a ? T > f && (f = T, y < v ? tn.set(un, 0, -y) : tn.set(un, 0, v)) : _ < p && (p = _, y < v ? tn.set(ln, 0, y) : tn.set(ln, 0, -v))
                    }
                    return n && tn.copy(n, d ? ln : un), d
                }, t.prototype.contain = function (t, e) {
                    var n = this;
                    return t >= n.x && t <= n.x + n.width && e >= n.y && e <= n.y + n.height
                }, t.prototype.clone = function () {
                    return new t(this.x, this.y, this.width, this.height)
                }, t.prototype.copy = function (e) {
                    t.copy(this, e)
                }, t.prototype.plain = function () {
                    return {x: this.x, y: this.y, width: this.width, height: this.height}
                }, t.prototype.isFinite = function () {
                    return isFinite(this.x) && isFinite(this.y) && isFinite(this.width) && isFinite(this.height)
                }, t.prototype.isZero = function () {
                    return 0 === this.width || 0 === this.height
                }, t.create = function (e) {
                    return new t(e.x, e.y, e.width, e.height)
                }, t.copy = function (t, e) {
                    t.x = e.x, t.y = e.y, t.width = e.width, t.height = e.height
                }, t.applyTransform = function (e, n, i) {
                    if (i) {
                        if (i[1] < 1e-5 && i[1] > -1e-5 && i[2] < 1e-5 && i[2] > -1e-5) {
                            var r = i[0], o = i[3], a = i[4], s = i[5];
                            return e.x = n.x * r + a, e.y = n.y * o + s, e.width = n.width * r, e.height = n.height * o, e.width < 0 && (e.x += e.width, e.width = -e.width), void (e.height < 0 && (e.y += e.height, e.height = -e.height))
                        }
                        rn.x = an.x = n.x, rn.y = sn.y = n.y, on.x = sn.x = n.x + n.width, on.y = an.y = n.y + n.height, rn.transform(i), sn.transform(i), on.transform(i), an.transform(i), e.x = en(rn.x, on.x, an.x, sn.x), e.y = en(rn.y, on.y, an.y, sn.y);
                        var l = nn(rn.x, on.x, an.x, sn.x), u = nn(rn.y, on.y, an.y, sn.y);
                        e.width = l - e.x, e.height = u - e.y
                    } else e !== n && t.copy(e, n)
                }, t
            }();
        const hn = cn;
        var dn = "silent";

        function pn() {
            Ue(this.event)
        }

        var fn = function (t) {
                function e() {
                    var e = null !== t && t.apply(this, arguments) || this;
                    return e.handler = null, e
                }

                return G(e, t), e.prototype.dispose = function () {
                }, e.prototype.setCursor = function () {
                }, e
            }(Se), gn = function (t, e) {
                this.x = t, this.y = e
            }, mn = ["click", "dblclick", "mousewheel", "mouseout", "mouseup", "mousedown", "mousemove", "contextmenu"],
            yn = new hn(0, 0, 0, 0), vn = function (t) {
                function e(e, n, i, r, o) {
                    var a = t.call(this) || this;
                    return a._hovered = new gn(0, 0), a.storage = e, a.painter = n, a.painterRoot = r, a._pointerSize = o, i = i || new fn, a.proxy = null, a.setHandlerProxy(i), a._draggingMgr = new Te(a), a
                }

                return G(e, t), e.prototype.setHandlerProxy = function (t) {
                    this.proxy && this.proxy.dispose(), t && (mt(mn, (function (e) {
                        t.on && t.on(e, this[e], this)
                    }), this), t.handler = this), this.proxy = t
                }, e.prototype.mousemove = function (t) {
                    var e = t.zrX, n = t.zrY, i = xn(this, e, n), r = this._hovered, o = r.target;
                    o && !o.__zr && (o = (r = this.findHover(r.x, r.y)).target);
                    var a = this._hovered = i ? new gn(e, n) : this.findHover(e, n), s = a.target, l = this.proxy;
                    l.setCursor && l.setCursor(s ? s.cursor : "default"), o && s !== o && this.dispatchToElement(r, "mouseout", t), this.dispatchToElement(a, "mousemove", t), s && s !== o && this.dispatchToElement(a, "mouseover", t)
                }, e.prototype.mouseout = function (t) {
                    var e = t.zrEventControl;
                    "only_globalout" !== e && this.dispatchToElement(this._hovered, "mouseout", t), "no_globalout" !== e && this.trigger("globalout", {
                        type: "globalout",
                        event: t
                    })
                }, e.prototype.resize = function () {
                    this._hovered = new gn(0, 0)
                }, e.prototype.dispatch = function (t, e) {
                    var n = this[t];
                    n && n.call(this, e)
                }, e.prototype.dispose = function () {
                    this.proxy.dispose(), this.storage = null, this.proxy = null, this.painter = null
                }, e.prototype.setCursorStyle = function (t) {
                    var e = this.proxy;
                    e.setCursor && e.setCursor(t)
                }, e.prototype.dispatchToElement = function (t, e, n) {
                    var i = (t = t || {}).target;
                    if (!i || !i.silent) {
                        for (var r = "on" + e, o = function (t, e, n) {
                            return {
                                type: t,
                                event: n,
                                target: e.target,
                                topTarget: e.topTarget,
                                cancelBubble: !1,
                                offsetX: n.zrX,
                                offsetY: n.zrY,
                                gestureEvent: n.gestureEvent,
                                pinchX: n.pinchX,
                                pinchY: n.pinchY,
                                pinchScale: n.pinchScale,
                                wheelDelta: n.zrDelta,
                                zrByTouch: n.zrByTouch,
                                which: n.which,
                                stop: pn
                            }
                        }(e, t, n); i && (i[r] && (o.cancelBubble = !!i[r].call(i, o)), i.trigger(e, o), i = i.__hostTarget ? i.__hostTarget : i.parent, !o.cancelBubble);) ;
                        o.cancelBubble || (this.trigger(e, o), this.painter && this.painter.eachOtherLayer && this.painter.eachOtherLayer((function (t) {
                            "function" == typeof t[r] && t[r].call(t, o), t.trigger && t.trigger(e, o)
                        })))
                    }
                }, e.prototype.findHover = function (t, e, n) {
                    var i = this.storage.getDisplayList(), r = new gn(t, e);
                    if (Tn(i, r, t, e, n), this._pointerSize && !r.target) {
                        for (var o = [], a = this._pointerSize, s = a / 2, l = new hn(t - s, e - s, a, a), u = i.length - 1; u >= 0; u--) {
                            var c = i[u];
                            c === n || c.ignore || c.ignoreCoarsePointer || c.parent && c.parent.ignoreCoarsePointer || (yn.copy(c.getBoundingRect()), c.transform && yn.applyTransform(c.transform), yn.intersect(l) && o.push(c))
                        }
                        if (o.length) for (var h = Math.PI / 12, d = 2 * Math.PI, p = 0; p < s; p += 4) for (var f = 0; f < d; f += h) {
                            if (Tn(o, r, t + p * Math.cos(f), e + p * Math.sin(f), n), r.target) return r
                        }
                    }
                    return r
                }, e.prototype.processGesture = function (t, e) {
                    this._gestureMgr || (this._gestureMgr = new ze);
                    var n = this._gestureMgr;
                    "start" === e && n.clear();
                    var i = n.recognize(t, this.findHover(t.zrX, t.zrY, null).target, this.proxy.dom);
                    if ("end" === e && n.clear(), i) {
                        var r = i.type;
                        t.gestureEvent = r;
                        var o = new gn;
                        o.target = i.target, this.dispatchToElement(o, r, i.event)
                    }
                }, e
            }(Se);

        function _n(t, e, n) {
            if (t[t.rectHover ? "rectContain" : "contain"](e, n)) {
                for (var i = t, r = void 0, o = !1; i;) {
                    if (i.ignoreClip && (o = !0), !o) {
                        var a = i.getClipPath();
                        if (a && !a.contain(e, n)) return !1;
                        i.silent && (r = !0)
                    }
                    var s = i.__hostTarget;
                    i = s || i.parent
                }
                return !r || dn
            }
            return !1
        }

        function Tn(t, e, n, i, r) {
            for (var o = t.length - 1; o >= 0; o--) {
                var a = t[o], s = void 0;
                if (a !== r && !a.ignore && (s = _n(a, n, i)) && (!e.topTarget && (e.topTarget = a), s !== dn)) {
                    e.target = a;
                    break
                }
            }
        }

        function xn(t, e, n) {
            var i = t.painter;
            return e < 0 || e > i.getWidth() || n < 0 || n > i.getHeight()
        }

        mt(["click", "mousedown", "mouseup", "mousewheel", "dblclick", "contextmenu"], (function (t) {
            vn.prototype[t] = function (e) {
                var n, i, r = e.zrX, o = e.zrY, a = xn(this, r, o);
                if ("mouseup" === t && a || (i = (n = this.findHover(r, o)).target), "mousedown" === t) this._downEl = i, this._downPoint = [e.zrX, e.zrY], this._upEl = i; else if ("mouseup" === t) this._upEl = i; else if ("click" === t) {
                    if (this._downEl !== this._upEl || !this._downPoint || de(this._downPoint, [e.zrX, e.zrY]) > 4) return;
                    this._downPoint = null
                }
                this.dispatchToElement(n, t, e)
            }
        }));
        const Sn = vn;
        var An = 32, bn = 7;

        function In(t, e, n, i) {
            var r = e + 1;
            if (r === n) return 1;
            if (i(t[r++], t[e]) < 0) {
                for (; r < n && i(t[r], t[r - 1]) < 0;) r++;
                !function (t, e, n) {
                    n--;
                    for (; e < n;) {
                        var i = t[e];
                        t[e++] = t[n], t[n--] = i
                    }
                }(t, e, r)
            } else for (; r < n && i(t[r], t[r - 1]) >= 0;) r++;
            return r - e
        }

        function En(t, e, n, i, r) {
            for (i === e && i++; i < n; i++) {
                for (var o, a = t[i], s = e, l = i; s < l;) r(a, t[o = s + l >>> 1]) < 0 ? l = o : s = o + 1;
                var u = i - s;
                switch (u) {
                    case 3:
                        t[s + 3] = t[s + 2];
                    case 2:
                        t[s + 2] = t[s + 1];
                    case 1:
                        t[s + 1] = t[s];
                        break;
                    default:
                        for (; u > 0;) t[s + u] = t[s + u - 1], u--
                }
                t[s] = a
            }
        }

        function Cn(t, e, n, i, r, o) {
            var a = 0, s = 0, l = 1;
            if (o(t, e[n + r]) > 0) {
                for (s = i - r; l < s && o(t, e[n + r + l]) > 0;) a = l, (l = 1 + (l << 1)) <= 0 && (l = s);
                l > s && (l = s), a += r, l += r
            } else {
                for (s = r + 1; l < s && o(t, e[n + r - l]) <= 0;) a = l, (l = 1 + (l << 1)) <= 0 && (l = s);
                l > s && (l = s);
                var u = a;
                a = r - l, l = r - u
            }
            for (a++; a < l;) {
                var c = a + (l - a >>> 1);
                o(t, e[n + c]) > 0 ? a = c + 1 : l = c
            }
            return l
        }

        function Dn(t, e, n, i, r, o) {
            var a = 0, s = 0, l = 1;
            if (o(t, e[n + r]) < 0) {
                for (s = r + 1; l < s && o(t, e[n + r - l]) < 0;) a = l, (l = 1 + (l << 1)) <= 0 && (l = s);
                l > s && (l = s);
                var u = a;
                a = r - l, l = r - u
            } else {
                for (s = i - r; l < s && o(t, e[n + r + l]) >= 0;) a = l, (l = 1 + (l << 1)) <= 0 && (l = s);
                l > s && (l = s), a += r, l += r
            }
            for (a++; a < l;) {
                var c = a + (l - a >>> 1);
                o(t, e[n + c]) < 0 ? l = c : a = c + 1
            }
            return l
        }

        function wn(t, e) {
            var n, i, r, o = bn, a = 0;
            n = t.length;
            var s = [];

            function l(n) {
                var l = i[n], u = r[n], c = i[n + 1], h = r[n + 1];
                r[n] = u + h, n === a - 3 && (i[n + 1] = i[n + 2], r[n + 1] = r[n + 2]), a--;
                var d = Dn(t[c], t, l, u, 0, e);
                l += d, 0 !== (u -= d) && 0 !== (h = Cn(t[l + u - 1], t, c, h, h - 1, e)) && (u <= h ? function (n, i, r, a) {
                    var l = 0;
                    for (l = 0; l < i; l++) s[l] = t[n + l];
                    var u = 0, c = r, h = n;
                    if (t[h++] = t[c++], 0 == --a) {
                        for (l = 0; l < i; l++) t[h + l] = s[u + l];
                        return
                    }
                    if (1 === i) {
                        for (l = 0; l < a; l++) t[h + l] = t[c + l];
                        return void (t[h + a] = s[u])
                    }
                    var d, p, f, g = o;
                    for (; ;) {
                        d = 0, p = 0, f = !1;
                        do {
                            if (e(t[c], s[u]) < 0) {
                                if (t[h++] = t[c++], p++, d = 0, 0 == --a) {
                                    f = !0;
                                    break
                                }
                            } else if (t[h++] = s[u++], d++, p = 0, 1 == --i) {
                                f = !0;
                                break
                            }
                        } while ((d | p) < g);
                        if (f) break;
                        do {
                            if (0 !== (d = Dn(t[c], s, u, i, 0, e))) {
                                for (l = 0; l < d; l++) t[h + l] = s[u + l];
                                if (h += d, u += d, (i -= d) <= 1) {
                                    f = !0;
                                    break
                                }
                            }
                            if (t[h++] = t[c++], 0 == --a) {
                                f = !0;
                                break
                            }
                            if (0 !== (p = Cn(s[u], t, c, a, 0, e))) {
                                for (l = 0; l < p; l++) t[h + l] = t[c + l];
                                if (h += p, c += p, 0 === (a -= p)) {
                                    f = !0;
                                    break
                                }
                            }
                            if (t[h++] = s[u++], 1 == --i) {
                                f = !0;
                                break
                            }
                            g--
                        } while (d >= bn || p >= bn);
                        if (f) break;
                        g < 0 && (g = 0), g += 2
                    }
                    if ((o = g) < 1 && (o = 1), 1 === i) {
                        for (l = 0; l < a; l++) t[h + l] = t[c + l];
                        t[h + a] = s[u]
                    } else {
                        if (0 === i) throw new Error;
                        for (l = 0; l < i; l++) t[h + l] = s[u + l]
                    }
                }(l, u, c, h) : function (n, i, r, a) {
                    var l = 0;
                    for (l = 0; l < a; l++) s[l] = t[r + l];
                    var u = n + i - 1, c = a - 1, h = r + a - 1, d = 0, p = 0;
                    if (t[h--] = t[u--], 0 == --i) {
                        for (d = h - (a - 1), l = 0; l < a; l++) t[d + l] = s[l];
                        return
                    }
                    if (1 === a) {
                        for (p = (h -= i) + 1, d = (u -= i) + 1, l = i - 1; l >= 0; l--) t[p + l] = t[d + l];
                        return void (t[h] = s[c])
                    }
                    var f = o;
                    for (; ;) {
                        var g = 0, m = 0, y = !1;
                        do {
                            if (e(s[c], t[u]) < 0) {
                                if (t[h--] = t[u--], g++, m = 0, 0 == --i) {
                                    y = !0;
                                    break
                                }
                            } else if (t[h--] = s[c--], m++, g = 0, 1 == --a) {
                                y = !0;
                                break
                            }
                        } while ((g | m) < f);
                        if (y) break;
                        do {
                            if (0 !== (g = i - Dn(s[c], t, n, i, i - 1, e))) {
                                for (i -= g, p = (h -= g) + 1, d = (u -= g) + 1, l = g - 1; l >= 0; l--) t[p + l] = t[d + l];
                                if (0 === i) {
                                    y = !0;
                                    break
                                }
                            }
                            if (t[h--] = s[c--], 1 == --a) {
                                y = !0;
                                break
                            }
                            if (0 !== (m = a - Cn(t[u], s, 0, a, a - 1, e))) {
                                for (a -= m, p = (h -= m) + 1, d = (c -= m) + 1, l = 0; l < m; l++) t[p + l] = s[d + l];
                                if (a <= 1) {
                                    y = !0;
                                    break
                                }
                            }
                            if (t[h--] = t[u--], 0 == --i) {
                                y = !0;
                                break
                            }
                            f--
                        } while (g >= bn || m >= bn);
                        if (y) break;
                        f < 0 && (f = 0), f += 2
                    }
                    (o = f) < 1 && (o = 1);
                    if (1 === a) {
                        for (p = (h -= i) + 1, d = (u -= i) + 1, l = i - 1; l >= 0; l--) t[p + l] = t[d + l];
                        t[h] = s[c]
                    } else {
                        if (0 === a) throw new Error;
                        for (d = h - (a - 1), l = 0; l < a; l++) t[d + l] = s[l]
                    }
                }(l, u, c, h))
            }

            return n < 120 ? 5 : n < 1542 ? 10 : n < 119151 ? 19 : 40, i = [], r = [], {
                mergeRuns: function () {
                    for (; a > 1;) {
                        var t = a - 2;
                        if (t >= 1 && r[t - 1] <= r[t] + r[t + 1] || t >= 2 && r[t - 2] <= r[t] + r[t - 1]) r[t - 1] < r[t + 1] && t--; else if (r[t] > r[t + 1]) break;
                        l(t)
                    }
                }, forceMergeRuns: function () {
                    for (; a > 1;) {
                        var t = a - 2;
                        t > 0 && r[t - 1] < r[t + 1] && t--, l(t)
                    }
                }, pushRun: function (t, e) {
                    i[a] = t, r[a] = e, a += 1
                }
            }
        }

        function Mn(t, e, n, i) {
            n || (n = 0), i || (i = t.length);
            var r = i - n;
            if (!(r < 2)) {
                var o = 0;
                if (r < An) En(t, n, i, n + (o = In(t, n, i, e)), e); else {
                    var a = wn(t, e), s = function (t) {
                        for (var e = 0; t >= An;) e |= 1 & t, t >>= 1;
                        return t + e
                    }(r);
                    do {
                        if ((o = In(t, n, i, e)) < s) {
                            var l = r;
                            l > s && (l = s), En(t, n, n + l, n + o, e), o = l
                        }
                        a.pushRun(n, o), a.mergeRuns(), r -= o, n += o
                    } while (0 !== r);
                    a.forceMergeRuns()
                }
            }
        }

        var Nn = 1, On = 4, Ln = !1;

        function Rn() {
            Ln || (Ln = !0, console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))
        }

        function kn(t, e) {
            return t.zlevel === e.zlevel ? t.z === e.z ? t.z2 - e.z2 : t.z - e.z : t.zlevel - e.zlevel
        }

        var Pn = function () {
            function t() {
                this._roots = [], this._displayList = [], this._displayListLen = 0, this.displayableSortFunc = kn
            }

            return t.prototype.traverse = function (t, e) {
                for (var n = 0; n < this._roots.length; n++) this._roots[n].traverse(t, e)
            }, t.prototype.getDisplayList = function (t, e) {
                e = e || !1;
                var n = this._displayList;
                return !t && n.length || this.updateDisplayList(e), n
            }, t.prototype.updateDisplayList = function (t) {
                this._displayListLen = 0;
                for (var e = this._roots, n = this._displayList, i = 0, r = e.length; i < r; i++) this._updateAndAddDisplayable(e[i], null, t);
                n.length = this._displayListLen, Mn(n, kn)
            }, t.prototype._updateAndAddDisplayable = function (t, e, n) {
                if (!t.ignore || n) {
                    t.beforeUpdate(), t.update(), t.afterUpdate();
                    var i = t.getClipPath();
                    if (t.ignoreClip) e = null; else if (i) {
                        e = e ? e.slice() : [];
                        for (var r = i, o = t; r;) r.parent = o, r.updateTransform(), e.push(r), o = r, r = r.getClipPath()
                    }
                    if (t.childrenRef) {
                        for (var a = t.childrenRef(), s = 0; s < a.length; s++) {
                            var l = a[s];
                            t.__dirty && (l.__dirty |= Nn), this._updateAndAddDisplayable(l, e, n)
                        }
                        t.__dirty = 0
                    } else {
                        var u = t;
                        e && e.length ? u.__clipPaths = e : u.__clipPaths && u.__clipPaths.length > 0 && (u.__clipPaths = []), isNaN(u.z) && (Rn(), u.z = 0), isNaN(u.z2) && (Rn(), u.z2 = 0), isNaN(u.zlevel) && (Rn(), u.zlevel = 0), this._displayList[this._displayListLen++] = u
                    }
                    var c = t.getDecalElement && t.getDecalElement();
                    c && this._updateAndAddDisplayable(c, e, n);
                    var h = t.getTextGuideLine();
                    h && this._updateAndAddDisplayable(h, e, n);
                    var d = t.getTextContent();
                    d && this._updateAndAddDisplayable(d, e, n)
                }
            }, t.prototype.addRoot = function (t) {
                t.__zr && t.__zr.storage === this || this._roots.push(t)
            }, t.prototype.delRoot = function (t) {
                if (t instanceof Array) for (var e = 0, n = t.length; e < n; e++) this.delRoot(t[e]); else {
                    var i = pt(this._roots, t);
                    i >= 0 && this._roots.splice(i, 1)
                }
            }, t.prototype.delAllRoots = function () {
                this._roots = [], this._displayList = [], this._displayListLen = 0
            }, t.prototype.getRoots = function () {
                return this._roots
            }, t.prototype.dispose = function () {
                this._displayList = null, this._roots = null
            }, t
        }();
        const Gn = Pn;
        const Bn = H.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function (t) {
            return setTimeout(t, 16)
        };
        var Fn = {
            linear: function (t) {
                return t
            }, quadraticIn: function (t) {
                return t * t
            }, quadraticOut: function (t) {
                return t * (2 - t)
            }, quadraticInOut: function (t) {
                return (t *= 2) < 1 ? .5 * t * t : -.5 * (--t * (t - 2) - 1)
            }, cubicIn: function (t) {
                return t * t * t
            }, cubicOut: function (t) {
                return --t * t * t + 1
            }, cubicInOut: function (t) {
                return (t *= 2) < 1 ? .5 * t * t * t : .5 * ((t -= 2) * t * t + 2)
            }, quarticIn: function (t) {
                return t * t * t * t
            }, quarticOut: function (t) {
                return 1 - --t * t * t * t
            }, quarticInOut: function (t) {
                return (t *= 2) < 1 ? .5 * t * t * t * t : -.5 * ((t -= 2) * t * t * t - 2)
            }, quinticIn: function (t) {
                return t * t * t * t * t
            }, quinticOut: function (t) {
                return --t * t * t * t * t + 1
            }, quinticInOut: function (t) {
                return (t *= 2) < 1 ? .5 * t * t * t * t * t : .5 * ((t -= 2) * t * t * t * t + 2)
            }, sinusoidalIn: function (t) {
                return 1 - Math.cos(t * Math.PI / 2)
            }, sinusoidalOut: function (t) {
                return Math.sin(t * Math.PI / 2)
            }, sinusoidalInOut: function (t) {
                return .5 * (1 - Math.cos(Math.PI * t))
            }, exponentialIn: function (t) {
                return 0 === t ? 0 : Math.pow(1024, t - 1)
            }, exponentialOut: function (t) {
                return 1 === t ? 1 : 1 - Math.pow(2, -10 * t)
            }, exponentialInOut: function (t) {
                return 0 === t ? 0 : 1 === t ? 1 : (t *= 2) < 1 ? .5 * Math.pow(1024, t - 1) : .5 * (2 - Math.pow(2, -10 * (t - 1)))
            }, circularIn: function (t) {
                return 1 - Math.sqrt(1 - t * t)
            }, circularOut: function (t) {
                return Math.sqrt(1 - --t * t)
            }, circularInOut: function (t) {
                return (t *= 2) < 1 ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1)
            }, elasticIn: function (t) {
                var e, n = .1;
                return 0 === t ? 0 : 1 === t ? 1 : (!n || n < 1 ? (n = 1, e = .1) : e = .4 * Math.asin(1 / n) / (2 * Math.PI), -n * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / .4))
            }, elasticOut: function (t) {
                var e, n = .1;
                return 0 === t ? 0 : 1 === t ? 1 : (!n || n < 1 ? (n = 1, e = .1) : e = .4 * Math.asin(1 / n) / (2 * Math.PI), n * Math.pow(2, -10 * t) * Math.sin((t - e) * (2 * Math.PI) / .4) + 1)
            }, elasticInOut: function (t) {
                var e, n = .1, i = .4;
                return 0 === t ? 0 : 1 === t ? 1 : (!n || n < 1 ? (n = 1, e = .1) : e = i * Math.asin(1 / n) / (2 * Math.PI), (t *= 2) < 1 ? n * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / i) * -.5 : n * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / i) * .5 + 1)
            }, backIn: function (t) {
                var e = 1.70158;
                return t * t * ((e + 1) * t - e)
            }, backOut: function (t) {
                var e = 1.70158;
                return --t * t * ((e + 1) * t + e) + 1
            }, backInOut: function (t) {
                var e = 2.5949095;
                return (t *= 2) < 1 ? t * t * ((e + 1) * t - e) * .5 : .5 * ((t -= 2) * t * ((e + 1) * t + e) + 2)
            }, bounceIn: function (t) {
                return 1 - Fn.bounceOut(1 - t)
            }, bounceOut: function (t) {
                return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375
            }, bounceInOut: function (t) {
                return t < .5 ? .5 * Fn.bounceIn(2 * t) : .5 * Fn.bounceOut(2 * t - 1) + .5
            }
        };
        const Hn = Fn;
        var Un = Math.pow, Vn = Math.sqrt, zn = 1e-8, Wn = 1e-4, Yn = Vn(3), qn = 1 / 3, jn = te(), Xn = te(),
            Zn = te();

        function Kn(t) {
            return t > -zn && t < zn
        }

        function Qn(t) {
            return t > zn || t < -zn
        }

        function $n(t, e, n, i, r) {
            var o = 1 - r;
            return o * o * (o * t + 3 * r * e) + r * r * (r * i + 3 * o * n)
        }

        function Jn(t, e, n, i, r) {
            var o = 1 - r;
            return 3 * (((e - t) * o + 2 * (n - e) * r) * o + (i - n) * r * r)
        }

        function ti(t, e, n, i, r, o) {
            var a = i + 3 * (e - n) - t, s = 3 * (n - 2 * e + t), l = 3 * (e - t), u = t - r, c = s * s - 3 * a * l,
                h = s * l - 9 * a * u, d = l * l - 3 * s * u, p = 0;
            if (Kn(c) && Kn(h)) {
                if (Kn(s)) o[0] = 0; else (b = -l / s) >= 0 && b <= 1 && (o[p++] = b)
            } else {
                var f = h * h - 4 * c * d;
                if (Kn(f)) {
                    var g = h / c, m = -g / 2;
                    (b = -s / a + g) >= 0 && b <= 1 && (o[p++] = b), m >= 0 && m <= 1 && (o[p++] = m)
                } else if (f > 0) {
                    var y = Vn(f), v = c * s + 1.5 * a * (-h + y), _ = c * s + 1.5 * a * (-h - y);
                    (b = (-s - ((v = v < 0 ? -Un(-v, qn) : Un(v, qn)) + (_ = _ < 0 ? -Un(-_, qn) : Un(_, qn)))) / (3 * a)) >= 0 && b <= 1 && (o[p++] = b)
                } else {
                    var T = (2 * c * s - 3 * a * h) / (2 * Vn(c * c * c)), x = Math.acos(T) / 3, S = Vn(c),
                        A = Math.cos(x), b = (-s - 2 * S * A) / (3 * a),
                        I = (m = (-s + S * (A + Yn * Math.sin(x))) / (3 * a), (-s + S * (A - Yn * Math.sin(x))) / (3 * a));
                    b >= 0 && b <= 1 && (o[p++] = b), m >= 0 && m <= 1 && (o[p++] = m), I >= 0 && I <= 1 && (o[p++] = I)
                }
            }
            return p
        }

        function ei(t, e, n, i, r) {
            var o = 6 * n - 12 * e + 6 * t, a = 9 * e + 3 * i - 3 * t - 9 * n, s = 3 * e - 3 * t, l = 0;
            if (Kn(a)) {
                if (Qn(o)) (c = -s / o) >= 0 && c <= 1 && (r[l++] = c)
            } else {
                var u = o * o - 4 * a * s;
                if (Kn(u)) r[0] = -o / (2 * a); else if (u > 0) {
                    var c, h = Vn(u), d = (-o - h) / (2 * a);
                    (c = (-o + h) / (2 * a)) >= 0 && c <= 1 && (r[l++] = c), d >= 0 && d <= 1 && (r[l++] = d)
                }
            }
            return l
        }

        function ni(t, e, n, i, r, o) {
            var a = (e - t) * r + t, s = (n - e) * r + e, l = (i - n) * r + n, u = (s - a) * r + a, c = (l - s) * r + s,
                h = (c - u) * r + u;
            o[0] = t, o[1] = a, o[2] = u, o[3] = h, o[4] = h, o[5] = c, o[6] = l, o[7] = i
        }

        function ii(t, e, n, i, r, o, a, s, l, u, c) {
            var h, d, p, f, g, m = .005, y = 1 / 0;
            jn[0] = l, jn[1] = u;
            for (var v = 0; v < 1; v += .05) Xn[0] = $n(t, n, r, a, v), Xn[1] = $n(e, i, o, s, v), (f = pe(jn, Xn)) < y && (h = v, y = f);
            y = 1 / 0;
            for (var _ = 0; _ < 32 && !(m < Wn); _++) d = h - m, p = h + m, Xn[0] = $n(t, n, r, a, d), Xn[1] = $n(e, i, o, s, d), f = pe(Xn, jn), d >= 0 && f < y ? (h = d, y = f) : (Zn[0] = $n(t, n, r, a, p), Zn[1] = $n(e, i, o, s, p), g = pe(Zn, jn), p <= 1 && g < y ? (h = p, y = g) : m *= .5);
            return c && (c[0] = $n(t, n, r, a, h), c[1] = $n(e, i, o, s, h)), Vn(y)
        }

        function ri(t, e, n, i, r, o, a, s, l) {
            for (var u = t, c = e, h = 0, d = 1 / l, p = 1; p <= l; p++) {
                var f = p * d, g = $n(t, n, r, a, f), m = $n(e, i, o, s, f), y = g - u, v = m - c;
                h += Math.sqrt(y * y + v * v), u = g, c = m
            }
            return h
        }

        function oi(t, e, n, i) {
            var r = 1 - i;
            return r * (r * t + 2 * i * e) + i * i * n
        }

        function ai(t, e, n, i) {
            return 2 * ((1 - i) * (e - t) + i * (n - e))
        }

        function si(t, e, n) {
            var i = t + n - 2 * e;
            return 0 === i ? .5 : (t - e) / i
        }

        function li(t, e, n, i, r) {
            var o = (e - t) * i + t, a = (n - e) * i + e, s = (a - o) * i + o;
            r[0] = t, r[1] = o, r[2] = s, r[3] = s, r[4] = a, r[5] = n
        }

        function ui(t, e, n, i, r, o, a, s, l) {
            var u, c = .005, h = 1 / 0;
            jn[0] = a, jn[1] = s;
            for (var d = 0; d < 1; d += .05) {
                Xn[0] = oi(t, n, r, d), Xn[1] = oi(e, i, o, d), (m = pe(jn, Xn)) < h && (u = d, h = m)
            }
            h = 1 / 0;
            for (var p = 0; p < 32 && !(c < Wn); p++) {
                var f = u - c, g = u + c;
                Xn[0] = oi(t, n, r, f), Xn[1] = oi(e, i, o, f);
                var m = pe(Xn, jn);
                if (f >= 0 && m < h) u = f, h = m; else {
                    Zn[0] = oi(t, n, r, g), Zn[1] = oi(e, i, o, g);
                    var y = pe(Zn, jn);
                    g <= 1 && y < h ? (u = g, h = y) : c *= .5
                }
            }
            return l && (l[0] = oi(t, n, r, u), l[1] = oi(e, i, o, u)), Vn(h)
        }

        function ci(t, e, n, i, r, o, a) {
            for (var s = t, l = e, u = 0, c = 1 / a, h = 1; h <= a; h++) {
                var d = h * c, p = oi(t, n, r, d), f = oi(e, i, o, d), g = p - s, m = f - l;
                u += Math.sqrt(g * g + m * m), s = p, l = f
            }
            return u
        }

        var hi = /cubic-bezier\(([0-9,\.e ]+)\)/;

        function di(t) {
            var e = t && hi.exec(t);
            if (e) {
                var n = e[1].split(","), i = +Ht(n[0]), r = +Ht(n[1]), o = +Ht(n[2]), a = +Ht(n[3]);
                if (isNaN(i + r + o + a)) return;
                var s = [];
                return function (t) {
                    return t <= 0 ? 0 : t >= 1 ? 1 : ti(0, i, o, 1, t, s) && $n(0, r, a, 1, s[0])
                }
            }
        }

        const pi = function () {
            function t(t) {
                this._inited = !1, this._startTime = 0, this._pausedTime = 0, this._paused = !1, this._life = t.life || 1e3, this._delay = t.delay || 0, this.loop = t.loop || !1, this.onframe = t.onframe || $t, this.ondestroy = t.ondestroy || $t, this.onrestart = t.onrestart || $t, t.easing && this.setEasing(t.easing)
            }

            return t.prototype.step = function (t, e) {
                if (this._inited || (this._startTime = t + this._delay, this._inited = !0), !this._paused) {
                    var n = this._life, i = t - this._startTime - this._pausedTime, r = i / n;
                    r < 0 && (r = 0), r = Math.min(r, 1);
                    var o = this.easingFunc, a = o ? o(r) : r;
                    if (this.onframe(a), 1 === r) {
                        if (!this.loop) return !0;
                        var s = i % n;
                        this._startTime = t - s, this._pausedTime = 0, this.onrestart()
                    }
                    return !1
                }
                this._pausedTime += e
            }, t.prototype.pause = function () {
                this._paused = !0
            }, t.prototype.resume = function () {
                this._paused = !1
            }, t.prototype.setEasing = function (t) {
                this.easing = t, this.easingFunc = bt(t) ? t : Hn[t] || di(t)
            }, t
        }();
        var fi = function (t) {
            this.value = t
        }, gi = function () {
            function t() {
                this._len = 0
            }

            return t.prototype.insert = function (t) {
                var e = new fi(t);
                return this.insertEntry(e), e
            }, t.prototype.insertEntry = function (t) {
                this.head ? (this.tail.next = t, t.prev = this.tail, t.next = null, this.tail = t) : this.head = this.tail = t, this._len++
            }, t.prototype.remove = function (t) {
                var e = t.prev, n = t.next;
                e ? e.next = n : this.head = n, n ? n.prev = e : this.tail = e, t.next = t.prev = null, this._len--
            }, t.prototype.len = function () {
                return this._len
            }, t.prototype.clear = function () {
                this.head = this.tail = null, this._len = 0
            }, t
        }(), mi = function () {
            function t(t) {
                this._list = new gi, this._maxSize = 10, this._map = {}, this._maxSize = t
            }

            return t.prototype.put = function (t, e) {
                var n = this._list, i = this._map, r = null;
                if (null == i[t]) {
                    var o = n.len(), a = this._lastRemovedEntry;
                    if (o >= this._maxSize && o > 0) {
                        var s = n.head;
                        n.remove(s), delete i[s.key], r = s.value, this._lastRemovedEntry = s
                    }
                    a ? a.value = e : a = new fi(e), a.key = t, n.insertEntry(a), i[t] = a
                }
                return r
            }, t.prototype.get = function (t) {
                var e = this._map[t], n = this._list;
                if (null != e) return e !== n.tail && (n.remove(e), n.insertEntry(e)), e.value
            }, t.prototype.clear = function () {
                this._list.clear(), this._map = {}
            }, t.prototype.len = function () {
                return this._list.len()
            }, t
        }();
        const yi = mi;
        var vi = {
            transparent: [0, 0, 0, 0],
            aliceblue: [240, 248, 255, 1],
            antiquewhite: [250, 235, 215, 1],
            aqua: [0, 255, 255, 1],
            aquamarine: [127, 255, 212, 1],
            azure: [240, 255, 255, 1],
            beige: [245, 245, 220, 1],
            bisque: [255, 228, 196, 1],
            black: [0, 0, 0, 1],
            blanchedalmond: [255, 235, 205, 1],
            blue: [0, 0, 255, 1],
            blueviolet: [138, 43, 226, 1],
            brown: [165, 42, 42, 1],
            burlywood: [222, 184, 135, 1],
            cadetblue: [95, 158, 160, 1],
            chartreuse: [127, 255, 0, 1],
            chocolate: [210, 105, 30, 1],
            coral: [255, 127, 80, 1],
            cornflowerblue: [100, 149, 237, 1],
            cornsilk: [255, 248, 220, 1],
            crimson: [220, 20, 60, 1],
            cyan: [0, 255, 255, 1],
            darkblue: [0, 0, 139, 1],
            darkcyan: [0, 139, 139, 1],
            darkgoldenrod: [184, 134, 11, 1],
            darkgray: [169, 169, 169, 1],
            darkgreen: [0, 100, 0, 1],
            darkgrey: [169, 169, 169, 1],
            darkkhaki: [189, 183, 107, 1],
            darkmagenta: [139, 0, 139, 1],
            darkolivegreen: [85, 107, 47, 1],
            darkorange: [255, 140, 0, 1],
            darkorchid: [153, 50, 204, 1],
            darkred: [139, 0, 0, 1],
            darksalmon: [233, 150, 122, 1],
            darkseagreen: [143, 188, 143, 1],
            darkslateblue: [72, 61, 139, 1],
            darkslategray: [47, 79, 79, 1],
            darkslategrey: [47, 79, 79, 1],
            darkturquoise: [0, 206, 209, 1],
            darkviolet: [148, 0, 211, 1],
            deeppink: [255, 20, 147, 1],
            deepskyblue: [0, 191, 255, 1],
            dimgray: [105, 105, 105, 1],
            dimgrey: [105, 105, 105, 1],
            dodgerblue: [30, 144, 255, 1],
            firebrick: [178, 34, 34, 1],
            floralwhite: [255, 250, 240, 1],
            forestgreen: [34, 139, 34, 1],
            fuchsia: [255, 0, 255, 1],
            gainsboro: [220, 220, 220, 1],
            ghostwhite: [248, 248, 255, 1],
            gold: [255, 215, 0, 1],
            goldenrod: [218, 165, 32, 1],
            gray: [128, 128, 128, 1],
            green: [0, 128, 0, 1],
            greenyellow: [173, 255, 47, 1],
            grey: [128, 128, 128, 1],
            honeydew: [240, 255, 240, 1],
            hotpink: [255, 105, 180, 1],
            indianred: [205, 92, 92, 1],
            indigo: [75, 0, 130, 1],
            ivory: [255, 255, 240, 1],
            khaki: [240, 230, 140, 1],
            lavender: [230, 230, 250, 1],
            lavenderblush: [255, 240, 245, 1],
            lawngreen: [124, 252, 0, 1],
            lemonchiffon: [255, 250, 205, 1],
            lightblue: [173, 216, 230, 1],
            lightcoral: [240, 128, 128, 1],
            lightcyan: [224, 255, 255, 1],
            lightgoldenrodyellow: [250, 250, 210, 1],
            lightgray: [211, 211, 211, 1],
            lightgreen: [144, 238, 144, 1],
            lightgrey: [211, 211, 211, 1],
            lightpink: [255, 182, 193, 1],
            lightsalmon: [255, 160, 122, 1],
            lightseagreen: [32, 178, 170, 1],
            lightskyblue: [135, 206, 250, 1],
            lightslategray: [119, 136, 153, 1],
            lightslategrey: [119, 136, 153, 1],
            lightsteelblue: [176, 196, 222, 1],
            lightyellow: [255, 255, 224, 1],
            lime: [0, 255, 0, 1],
            limegreen: [50, 205, 50, 1],
            linen: [250, 240, 230, 1],
            magenta: [255, 0, 255, 1],
            maroon: [128, 0, 0, 1],
            mediumaquamarine: [102, 205, 170, 1],
            mediumblue: [0, 0, 205, 1],
            mediumorchid: [186, 85, 211, 1],
            mediumpurple: [147, 112, 219, 1],
            mediumseagreen: [60, 179, 113, 1],
            mediumslateblue: [123, 104, 238, 1],
            mediumspringgreen: [0, 250, 154, 1],
            mediumturquoise: [72, 209, 204, 1],
            mediumvioletred: [199, 21, 133, 1],
            midnightblue: [25, 25, 112, 1],
            mintcream: [245, 255, 250, 1],
            mistyrose: [255, 228, 225, 1],
            moccasin: [255, 228, 181, 1],
            navajowhite: [255, 222, 173, 1],
            navy: [0, 0, 128, 1],
            oldlace: [253, 245, 230, 1],
            olive: [128, 128, 0, 1],
            olivedrab: [107, 142, 35, 1],
            orange: [255, 165, 0, 1],
            orangered: [255, 69, 0, 1],
            orchid: [218, 112, 214, 1],
            palegoldenrod: [238, 232, 170, 1],
            palegreen: [152, 251, 152, 1],
            paleturquoise: [175, 238, 238, 1],
            palevioletred: [219, 112, 147, 1],
            papayawhip: [255, 239, 213, 1],
            peachpuff: [255, 218, 185, 1],
            peru: [205, 133, 63, 1],
            pink: [255, 192, 203, 1],
            plum: [221, 160, 221, 1],
            powderblue: [176, 224, 230, 1],
            purple: [128, 0, 128, 1],
            red: [255, 0, 0, 1],
            rosybrown: [188, 143, 143, 1],
            royalblue: [65, 105, 225, 1],
            saddlebrown: [139, 69, 19, 1],
            salmon: [250, 128, 114, 1],
            sandybrown: [244, 164, 96, 1],
            seagreen: [46, 139, 87, 1],
            seashell: [255, 245, 238, 1],
            sienna: [160, 82, 45, 1],
            silver: [192, 192, 192, 1],
            skyblue: [135, 206, 235, 1],
            slateblue: [106, 90, 205, 1],
            slategray: [112, 128, 144, 1],
            slategrey: [112, 128, 144, 1],
            snow: [255, 250, 250, 1],
            springgreen: [0, 255, 127, 1],
            steelblue: [70, 130, 180, 1],
            tan: [210, 180, 140, 1],
            teal: [0, 128, 128, 1],
            thistle: [216, 191, 216, 1],
            tomato: [255, 99, 71, 1],
            turquoise: [64, 224, 208, 1],
            violet: [238, 130, 238, 1],
            wheat: [245, 222, 179, 1],
            white: [255, 255, 255, 1],
            whitesmoke: [245, 245, 245, 1],
            yellow: [255, 255, 0, 1],
            yellowgreen: [154, 205, 50, 1]
        };

        function _i(t) {
            return (t = Math.round(t)) < 0 ? 0 : t > 255 ? 255 : t
        }

        function Ti(t) {
            return t < 0 ? 0 : t > 1 ? 1 : t
        }

        function xi(t) {
            var e = t;
            return e.length && "%" === e.charAt(e.length - 1) ? _i(parseFloat(e) / 100 * 255) : _i(parseInt(e, 10))
        }

        function Si(t) {
            var e = t;
            return e.length && "%" === e.charAt(e.length - 1) ? Ti(parseFloat(e) / 100) : Ti(parseFloat(e))
        }

        function Ai(t, e, n) {
            return n < 0 ? n += 1 : n > 1 && (n -= 1), 6 * n < 1 ? t + (e - t) * n * 6 : 2 * n < 1 ? e : 3 * n < 2 ? t + (e - t) * (2 / 3 - n) * 6 : t
        }

        function bi(t, e, n) {
            return t + (e - t) * n
        }

        function Ii(t, e, n, i, r) {
            return t[0] = e, t[1] = n, t[2] = i, t[3] = r, t
        }

        function Ei(t, e) {
            return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t
        }

        var Ci = new yi(20), Di = null;

        function wi(t, e) {
            Di && Ei(Di, e), Di = Ci.put(t, Di || e.slice())
        }

        function Mi(t, e) {
            if (t) {
                e = e || [];
                var n = Ci.get(t);
                if (n) return Ei(e, n);
                var i = (t += "").replace(/ /g, "").toLowerCase();
                if (i in vi) return Ei(e, vi[i]), wi(t, e), e;
                var r, o = i.length;
                if ("#" === i.charAt(0)) return 4 === o || 5 === o ? (r = parseInt(i.slice(1, 4), 16)) >= 0 && r <= 4095 ? (Ii(e, (3840 & r) >> 4 | (3840 & r) >> 8, 240 & r | (240 & r) >> 4, 15 & r | (15 & r) << 4, 5 === o ? parseInt(i.slice(4), 16) / 15 : 1), wi(t, e), e) : void Ii(e, 0, 0, 0, 1) : 7 === o || 9 === o ? (r = parseInt(i.slice(1, 7), 16)) >= 0 && r <= 16777215 ? (Ii(e, (16711680 & r) >> 16, (65280 & r) >> 8, 255 & r, 9 === o ? parseInt(i.slice(7), 16) / 255 : 1), wi(t, e), e) : void Ii(e, 0, 0, 0, 1) : void 0;
                var a = i.indexOf("("), s = i.indexOf(")");
                if (-1 !== a && s + 1 === o) {
                    var l = i.substr(0, a), u = i.substr(a + 1, s - (a + 1)).split(","), c = 1;
                    switch (l) {
                        case"rgba":
                            if (4 !== u.length) return 3 === u.length ? Ii(e, +u[0], +u[1], +u[2], 1) : Ii(e, 0, 0, 0, 1);
                            c = Si(u.pop());
                        case"rgb":
                            return u.length >= 3 ? (Ii(e, xi(u[0]), xi(u[1]), xi(u[2]), 3 === u.length ? c : Si(u[3])), wi(t, e), e) : void Ii(e, 0, 0, 0, 1);
                        case"hsla":
                            return 4 !== u.length ? void Ii(e, 0, 0, 0, 1) : (u[3] = Si(u[3]), Ni(u, e), wi(t, e), e);
                        case"hsl":
                            return 3 !== u.length ? void Ii(e, 0, 0, 0, 1) : (Ni(u, e), wi(t, e), e);
                        default:
                            return
                    }
                }
                Ii(e, 0, 0, 0, 1)
            }
        }

        function Ni(t, e) {
            var n = (parseFloat(t[0]) % 360 + 360) % 360 / 360, i = Si(t[1]), r = Si(t[2]),
                o = r <= .5 ? r * (i + 1) : r + i - r * i, a = 2 * r - o;
            return Ii(e = e || [], _i(255 * Ai(a, o, n + 1 / 3)), _i(255 * Ai(a, o, n)), _i(255 * Ai(a, o, n - 1 / 3)), 1), 4 === t.length && (e[3] = t[3]), e
        }

        function Oi(t, e) {
            var n = Mi(t);
            if (n) {
                for (var i = 0; i < 3; i++) n[i] = e < 0 ? n[i] * (1 - e) | 0 : (255 - n[i]) * e + n[i] | 0, n[i] > 255 ? n[i] = 255 : n[i] < 0 && (n[i] = 0);
                return Gi(n, 4 === n.length ? "rgba" : "rgb")
            }
        }

        function Li(t, e, n) {
            if (e && e.length && t >= 0 && t <= 1) {
                n = n || [];
                var i = t * (e.length - 1), r = Math.floor(i), o = Math.ceil(i), a = e[r], s = e[o], l = i - r;
                return n[0] = _i(bi(a[0], s[0], l)), n[1] = _i(bi(a[1], s[1], l)), n[2] = _i(bi(a[2], s[2], l)), n[3] = Ti(bi(a[3], s[3], l)), n
            }
        }

        function Ri(t, e, n) {
            if (e && e.length && t >= 0 && t <= 1) {
                var i = t * (e.length - 1), r = Math.floor(i), o = Math.ceil(i), a = Mi(e[r]), s = Mi(e[o]), l = i - r,
                    u = Gi([_i(bi(a[0], s[0], l)), _i(bi(a[1], s[1], l)), _i(bi(a[2], s[2], l)), Ti(bi(a[3], s[3], l))], "rgba");
                return n ? {color: u, leftIndex: r, rightIndex: o, value: i} : u
            }
        }

        function ki(t, e, n, i) {
            var r = Mi(t);
            if (t) return r = function (t) {
                if (t) {
                    var e, n, i = t[0] / 255, r = t[1] / 255, o = t[2] / 255, a = Math.min(i, r, o),
                        s = Math.max(i, r, o), l = s - a, u = (s + a) / 2;
                    if (0 === l) e = 0, n = 0; else {
                        n = u < .5 ? l / (s + a) : l / (2 - s - a);
                        var c = ((s - i) / 6 + l / 2) / l, h = ((s - r) / 6 + l / 2) / l, d = ((s - o) / 6 + l / 2) / l;
                        i === s ? e = d - h : r === s ? e = 1 / 3 + c - d : o === s && (e = 2 / 3 + h - c), e < 0 && (e += 1), e > 1 && (e -= 1)
                    }
                    var p = [360 * e, n, u];
                    return null != t[3] && p.push(t[3]), p
                }
            }(r), null != e && (r[0] = function (t) {
                return (t = Math.round(t)) < 0 ? 0 : t > 360 ? 360 : t
            }(e)), null != n && (r[1] = Si(n)), null != i && (r[2] = Si(i)), Gi(Ni(r), "rgba")
        }

        function Pi(t, e) {
            var n = Mi(t);
            if (n && null != e) return n[3] = Ti(e), Gi(n, "rgba")
        }

        function Gi(t, e) {
            if (t && t.length) {
                var n = t[0] + "," + t[1] + "," + t[2];
                return "rgba" !== e && "hsva" !== e && "hsla" !== e || (n += "," + t[3]), e + "(" + n + ")"
            }
        }

        function Bi(t, e) {
            var n = Mi(t);
            return n ? (.299 * n[0] + .587 * n[1] + .114 * n[2]) * n[3] / 255 + (1 - n[3]) * e : 0
        }

        var Fi = Math.round;

        function Hi(t) {
            var e;
            if (t && "transparent" !== t) {
                if ("string" == typeof t && t.indexOf("rgba") > -1) {
                    var n = Mi(t);
                    n && (t = "rgb(" + n[0] + "," + n[1] + "," + n[2] + ")", e = n[3])
                }
            } else t = "none";
            return {color: t, opacity: null == e ? 1 : e}
        }

        var Ui = 1e-4;

        function Vi(t) {
            return t < Ui && t > -Ui
        }

        function zi(t) {
            return Fi(1e3 * t) / 1e3
        }

        function Wi(t) {
            return Fi(1e4 * t) / 1e4
        }

        var Yi = {left: "start", right: "end", center: "middle", middle: "middle"};

        function qi(t) {
            return t && !!t.image
        }

        function ji(t) {
            return qi(t) || function (t) {
                return t && !!t.svgElement
            }(t)
        }

        function Xi(t) {
            return "linear" === t.type
        }

        function Zi(t) {
            return "radial" === t.type
        }

        function Ki(t) {
            return t && ("linear" === t.type || "radial" === t.type)
        }

        function Qi(t) {
            return "url(#" + t + ")"
        }

        function $i(t) {
            var e = t.getGlobalScale(), n = Math.max(e[0], e[1]);
            return Math.max(Math.ceil(Math.log(n) / Math.log(10)), 1)
        }

        function Ji(t) {
            var e = t.x || 0, n = t.y || 0, i = (t.rotation || 0) * Jt, r = kt(t.scaleX, 1), o = kt(t.scaleY, 1),
                a = t.skewX || 0, s = t.skewY || 0, l = [];
            return (e || n) && l.push("translate(" + e + "px," + n + "px)"), i && l.push("rotate(" + i + ")"), 1 === r && 1 === o || l.push("scale(" + r + "," + o + ")"), (a || s) && l.push("skew(" + Fi(a * Jt) + "deg, " + Fi(s * Jt) + "deg)"), l.join(" ")
        }

        var tr = H.hasGlobalWindow && bt(window.btoa) ? function (t) {
            return window.btoa(unescape(encodeURIComponent(t)))
        } : "undefined" != typeof Buffer ? function (t) {
            return Buffer.from(t).toString("base64")
        } : function (t) {
            return null
        }, er = Array.prototype.slice;

        function nr(t, e, n) {
            return (e - t) * n + t
        }

        function ir(t, e, n, i) {
            for (var r = e.length, o = 0; o < r; o++) t[o] = nr(e[o], n[o], i);
            return t
        }

        function rr(t, e, n, i) {
            for (var r = e.length, o = 0; o < r; o++) t[o] = e[o] + n[o] * i;
            return t
        }

        function or(t, e, n, i) {
            for (var r = e.length, o = r && e[0].length, a = 0; a < r; a++) {
                t[a] || (t[a] = []);
                for (var s = 0; s < o; s++) t[a][s] = e[a][s] + n[a][s] * i
            }
            return t
        }

        function ar(t, e) {
            for (var n = t.length, i = e.length, r = n > i ? e : t, o = Math.min(n, i), a = r[o - 1] || {
                color: [0, 0, 0, 0],
                offset: 0
            }, s = o; s < Math.max(n, i); s++) r.push({offset: a.offset, color: a.color.slice()})
        }

        function sr(t, e, n) {
            var i = t, r = e;
            if (i.push && r.push) {
                var o = i.length, a = r.length;
                if (o !== a) if (o > a) i.length = a; else for (var s = o; s < a; s++) i.push(1 === n ? r[s] : er.call(r[s]));
                var l = i[0] && i[0].length;
                for (s = 0; s < i.length; s++) if (1 === n) isNaN(i[s]) && (i[s] = r[s]); else for (var u = 0; u < l; u++) isNaN(i[s][u]) && (i[s][u] = r[s][u])
            }
        }

        function lr(t) {
            if (gt(t)) {
                var e = t.length;
                if (gt(t[0])) {
                    for (var n = [], i = 0; i < e; i++) n.push(er.call(t[i]));
                    return n
                }
                return er.call(t)
            }
            return t
        }

        function ur(t) {
            return t[0] = Math.floor(t[0]) || 0, t[1] = Math.floor(t[1]) || 0, t[2] = Math.floor(t[2]) || 0, t[3] = null == t[3] ? 1 : t[3], "rgba(" + t.join(",") + ")"
        }

        function cr(t) {
            return 4 === t || 5 === t
        }

        function hr(t) {
            return 1 === t || 2 === t
        }

        var dr = [0, 0, 0, 0], pr = function () {
            function t(t) {
                this.keyframes = [], this.discrete = !1, this._invalid = !1, this._needsSort = !1, this._lastFr = 0, this._lastFrP = 0, this.propName = t
            }

            return t.prototype.isFinished = function () {
                return this._finished
            }, t.prototype.setFinished = function () {
                this._finished = !0, this._additiveTrack && this._additiveTrack.setFinished()
            }, t.prototype.needsAnimate = function () {
                return this.keyframes.length >= 1
            }, t.prototype.getAdditiveTrack = function () {
                return this._additiveTrack
            }, t.prototype.addKeyframe = function (t, e, n) {
                this._needsSort = !0;
                var i = this.keyframes, r = i.length, o = !1, a = 6, s = e;
                if (gt(e)) {
                    var l = function (t) {
                        return gt(t && t[0]) ? 2 : 1
                    }(e);
                    a = l, (1 === l && !Ct(e[0]) || 2 === l && !Ct(e[0][0])) && (o = !0)
                } else if (Ct(e) && !Lt(e)) a = 0; else if (It(e)) if (isNaN(+e)) {
                    var u = Mi(e);
                    u && (s = u, a = 3)
                } else a = 0; else if (Ot(e)) {
                    var c = ht({}, s);
                    c.colorStops = yt(e.colorStops, (function (t) {
                        return {offset: t.offset, color: Mi(t.color)}
                    })), Xi(e) ? a = 4 : Zi(e) && (a = 5), s = c
                }
                0 === r ? this.valType = a : a === this.valType && 6 !== a || (o = !0), this.discrete = this.discrete || o;
                var h = {time: t, value: s, rawValue: e, percent: 0};
                return n && (h.easing = n, h.easingFunc = bt(n) ? n : Hn[n] || di(n)), i.push(h), h
            }, t.prototype.prepare = function (t, e) {
                var n = this.keyframes;
                this._needsSort && n.sort((function (t, e) {
                    return t.time - e.time
                }));
                for (var i = this.valType, r = n.length, o = n[r - 1], a = this.discrete, s = hr(i), l = cr(i), u = 0; u < r; u++) {
                    var c = n[u], h = c.value, d = o.value;
                    c.percent = c.time / t, a || (s && u !== r - 1 ? sr(h, d, i) : l && ar(h.colorStops, d.colorStops))
                }
                if (!a && 5 !== i && e && this.needsAnimate() && e.needsAnimate() && i === e.valType && !e._finished) {
                    this._additiveTrack = e;
                    var p = n[0].value;
                    for (u = 0; u < r; u++) 0 === i ? n[u].additiveValue = n[u].value - p : 3 === i ? n[u].additiveValue = rr([], n[u].value, p, -1) : hr(i) && (n[u].additiveValue = 1 === i ? rr([], n[u].value, p, -1) : or([], n[u].value, p, -1))
                }
            }, t.prototype.step = function (t, e) {
                if (!this._finished) {
                    this._additiveTrack && this._additiveTrack._finished && (this._additiveTrack = null);
                    var n, i, r, o = null != this._additiveTrack, a = o ? "additiveValue" : "value", s = this.valType,
                        l = this.keyframes, u = l.length, c = this.propName, h = 3 === s, d = this._lastFr,
                        p = Math.min;
                    if (1 === u) i = r = l[0]; else {
                        if (e < 0) n = 0; else if (e < this._lastFrP) {
                            for (n = p(d + 1, u - 1); n >= 0 && !(l[n].percent <= e); n--) ;
                            n = p(n, u - 2)
                        } else {
                            for (n = d; n < u && !(l[n].percent > e); n++) ;
                            n = p(n - 1, u - 2)
                        }
                        r = l[n + 1], i = l[n]
                    }
                    if (i && r) {
                        this._lastFr = n, this._lastFrP = e;
                        var f = r.percent - i.percent, g = 0 === f ? 1 : p((e - i.percent) / f, 1);
                        r.easingFunc && (g = r.easingFunc(g));
                        var m = o ? this._additiveValue : h ? dr : t[c];
                        if (!hr(s) && !h || m || (m = this._additiveValue = []), this.discrete) t[c] = g < 1 ? i.rawValue : r.rawValue; else if (hr(s)) 1 === s ? ir(m, i[a], r[a], g) : function (t, e, n, i) {
                            for (var r = e.length, o = r && e[0].length, a = 0; a < r; a++) {
                                t[a] || (t[a] = []);
                                for (var s = 0; s < o; s++) t[a][s] = nr(e[a][s], n[a][s], i)
                            }
                        }(m, i[a], r[a], g); else if (cr(s)) {
                            var y = i[a], v = r[a], _ = 4 === s;
                            t[c] = {
                                type: _ ? "linear" : "radial",
                                x: nr(y.x, v.x, g),
                                y: nr(y.y, v.y, g),
                                colorStops: yt(y.colorStops, (function (t, e) {
                                    var n = v.colorStops[e];
                                    return {offset: nr(t.offset, n.offset, g), color: ur(ir([], t.color, n.color, g))}
                                })),
                                global: v.global
                            }, _ ? (t[c].x2 = nr(y.x2, v.x2, g), t[c].y2 = nr(y.y2, v.y2, g)) : t[c].r = nr(y.r, v.r, g)
                        } else if (h) ir(m, i[a], r[a], g), o || (t[c] = ur(m)); else {
                            var T = nr(i[a], r[a], g);
                            o ? this._additiveValue = T : t[c] = T
                        }
                        o && this._addToTarget(t)
                    }
                }
            }, t.prototype._addToTarget = function (t) {
                var e = this.valType, n = this.propName, i = this._additiveValue;
                0 === e ? t[n] = t[n] + i : 3 === e ? (Mi(t[n], dr), rr(dr, dr, i, 1), t[n] = ur(dr)) : 1 === e ? rr(t[n], t[n], i, 1) : 2 === e && or(t[n], t[n], i, 1)
            }, t
        }(), fr = function () {
            function t(t, e, n, i) {
                this._tracks = {}, this._trackKeys = [], this._maxTime = 0, this._started = 0, this._clip = null, this._target = t, this._loop = e, e && i ? st("Can' use additive animation on looped animation.") : (this._additiveAnimators = i, this._allowDiscrete = n)
            }

            return t.prototype.getMaxTime = function () {
                return this._maxTime
            }, t.prototype.getDelay = function () {
                return this._delay
            }, t.prototype.getLoop = function () {
                return this._loop
            }, t.prototype.getTarget = function () {
                return this._target
            }, t.prototype.changeTarget = function (t) {
                this._target = t
            }, t.prototype.when = function (t, e, n) {
                return this.whenWithKeys(t, e, Tt(e), n)
            }, t.prototype.whenWithKeys = function (t, e, n, i) {
                for (var r = this._tracks, o = 0; o < n.length; o++) {
                    var a = n[o], s = r[a];
                    if (!s) {
                        s = r[a] = new pr(a);
                        var l = void 0, u = this._getAdditiveTrack(a);
                        if (u) {
                            var c = u.keyframes, h = c[c.length - 1];
                            l = h && h.value, 3 === u.valType && l && (l = ur(l))
                        } else l = this._target[a];
                        if (null == l) continue;
                        t > 0 && s.addKeyframe(0, lr(l), i), this._trackKeys.push(a)
                    }
                    s.addKeyframe(t, lr(e[a]), i)
                }
                return this._maxTime = Math.max(this._maxTime, t), this
            }, t.prototype.pause = function () {
                this._clip.pause(), this._paused = !0
            }, t.prototype.resume = function () {
                this._clip.resume(), this._paused = !1
            }, t.prototype.isPaused = function () {
                return !!this._paused
            }, t.prototype.duration = function (t) {
                return this._maxTime = t, this._force = !0, this
            }, t.prototype._doneCallback = function () {
                this._setTracksFinished(), this._clip = null;
                var t = this._doneCbs;
                if (t) for (var e = t.length, n = 0; n < e; n++) t[n].call(this)
            }, t.prototype._abortedCallback = function () {
                this._setTracksFinished();
                var t = this.animation, e = this._abortedCbs;
                if (t && t.removeClip(this._clip), this._clip = null, e) for (var n = 0; n < e.length; n++) e[n].call(this)
            }, t.prototype._setTracksFinished = function () {
                for (var t = this._tracks, e = this._trackKeys, n = 0; n < e.length; n++) t[e[n]].setFinished()
            }, t.prototype._getAdditiveTrack = function (t) {
                var e, n = this._additiveAnimators;
                if (n) for (var i = 0; i < n.length; i++) {
                    var r = n[i].getTrack(t);
                    r && (e = r)
                }
                return e
            }, t.prototype.start = function (t) {
                if (!(this._started > 0)) {
                    this._started = 1;
                    for (var e = this, n = [], i = this._maxTime || 0, r = 0; r < this._trackKeys.length; r++) {
                        var o = this._trackKeys[r], a = this._tracks[o], s = this._getAdditiveTrack(o), l = a.keyframes,
                            u = l.length;
                        if (a.prepare(i, s), a.needsAnimate()) if (!this._allowDiscrete && a.discrete) {
                            var c = l[u - 1];
                            c && (e._target[a.propName] = c.rawValue), a.setFinished()
                        } else n.push(a)
                    }
                    if (n.length || this._force) {
                        var h = new pi({
                            life: i, loop: this._loop, delay: this._delay || 0, onframe: function (t) {
                                e._started = 2;
                                var i = e._additiveAnimators;
                                if (i) {
                                    for (var r = !1, o = 0; o < i.length; o++) if (i[o]._clip) {
                                        r = !0;
                                        break
                                    }
                                    r || (e._additiveAnimators = null)
                                }
                                for (o = 0; o < n.length; o++) n[o].step(e._target, t);
                                var a = e._onframeCbs;
                                if (a) for (o = 0; o < a.length; o++) a[o](e._target, t)
                            }, ondestroy: function () {
                                e._doneCallback()
                            }
                        });
                        this._clip = h, this.animation && this.animation.addClip(h), t && h.setEasing(t)
                    } else this._doneCallback();
                    return this
                }
            }, t.prototype.stop = function (t) {
                if (this._clip) {
                    var e = this._clip;
                    t && e.onframe(1), this._abortedCallback()
                }
            }, t.prototype.delay = function (t) {
                return this._delay = t, this
            }, t.prototype.during = function (t) {
                return t && (this._onframeCbs || (this._onframeCbs = []), this._onframeCbs.push(t)), this
            }, t.prototype.done = function (t) {
                return t && (this._doneCbs || (this._doneCbs = []), this._doneCbs.push(t)), this
            }, t.prototype.aborted = function (t) {
                return t && (this._abortedCbs || (this._abortedCbs = []), this._abortedCbs.push(t)), this
            }, t.prototype.getClip = function () {
                return this._clip
            }, t.prototype.getTrack = function (t) {
                return this._tracks[t]
            }, t.prototype.getTracks = function () {
                var t = this;
                return yt(this._trackKeys, (function (e) {
                    return t._tracks[e]
                }))
            }, t.prototype.stopTracks = function (t, e) {
                if (!t.length || !this._clip) return !0;
                for (var n = this._tracks, i = this._trackKeys, r = 0; r < t.length; r++) {
                    var o = n[t[r]];
                    o && !o.isFinished() && (e ? o.step(this._target, 1) : 1 === this._started && o.step(this._target, 0), o.setFinished())
                }
                var a = !0;
                for (r = 0; r < i.length; r++) if (!n[i[r]].isFinished()) {
                    a = !1;
                    break
                }
                return a && this._abortedCallback(), a
            }, t.prototype.saveTo = function (t, e, n) {
                if (t) {
                    e = e || this._trackKeys;
                    for (var i = 0; i < e.length; i++) {
                        var r = e[i], o = this._tracks[r];
                        if (o && !o.isFinished()) {
                            var a = o.keyframes, s = a[n ? 0 : a.length - 1];
                            s && (t[r] = lr(s.rawValue))
                        }
                    }
                }
            }, t.prototype.__changeFinalValue = function (t, e) {
                e = e || Tt(t);
                for (var n = 0; n < e.length; n++) {
                    var i = e[n], r = this._tracks[i];
                    if (r) {
                        var o = r.keyframes;
                        if (o.length > 1) {
                            var a = o.pop();
                            r.addKeyframe(a.time, t[i]), r.prepare(this._maxTime, r.getAdditiveTrack())
                        }
                    }
                }
            }, t
        }();
        const gr = fr;

        function mr() {
            return (new Date).getTime()
        }

        var yr = function (t) {
            function e(e) {
                var n = t.call(this) || this;
                return n._running = !1, n._time = 0, n._pausedTime = 0, n._pauseStart = 0, n._paused = !1, e = e || {}, n.stage = e.stage || {}, n
            }

            return G(e, t), e.prototype.addClip = function (t) {
                t.animation && this.removeClip(t), this._head ? (this._tail.next = t, t.prev = this._tail, t.next = null, this._tail = t) : this._head = this._tail = t, t.animation = this
            }, e.prototype.addAnimator = function (t) {
                t.animation = this;
                var e = t.getClip();
                e && this.addClip(e)
            }, e.prototype.removeClip = function (t) {
                if (t.animation) {
                    var e = t.prev, n = t.next;
                    e ? e.next = n : this._head = n, n ? n.prev = e : this._tail = e, t.next = t.prev = t.animation = null
                }
            }, e.prototype.removeAnimator = function (t) {
                var e = t.getClip();
                e && this.removeClip(e), t.animation = null
            }, e.prototype.update = function (t) {
                for (var e = mr() - this._pausedTime, n = e - this._time, i = this._head; i;) {
                    var r = i.next;
                    i.step(e, n) ? (i.ondestroy(), this.removeClip(i), i = r) : i = r
                }
                this._time = e, t || (this.trigger("frame", n), this.stage.update && this.stage.update())
            }, e.prototype._startLoop = function () {
                var t = this;
                this._running = !0, Bn((function e() {
                    t._running && (Bn(e), !t._paused && t.update())
                }))
            }, e.prototype.start = function () {
                this._running || (this._time = mr(), this._pausedTime = 0, this._startLoop())
            }, e.prototype.stop = function () {
                this._running = !1
            }, e.prototype.pause = function () {
                this._paused || (this._pauseStart = mr(), this._paused = !0)
            }, e.prototype.resume = function () {
                this._paused && (this._pausedTime += mr() - this._pauseStart, this._paused = !1)
            }, e.prototype.clear = function () {
                for (var t = this._head; t;) {
                    var e = t.next;
                    t.prev = t.next = t.animation = null, t = e
                }
                this._head = this._tail = null
            }, e.prototype.isFinished = function () {
                return null == this._head
            }, e.prototype.animate = function (t, e) {
                e = e || {}, this.start();
                var n = new gr(t, e.loop);
                return this.addAnimator(n), n
            }, e
        }(Se);
        const vr = yr;
        var _r, Tr, xr = H.domSupported, Sr = (Tr = {
            pointerdown: 1,
            pointerup: 1,
            pointermove: 1,
            pointerout: 1
        }, {
            mouse: _r = ["click", "dblclick", "mousewheel", "wheel", "mouseout", "mouseup", "mousedown", "mousemove", "contextmenu"],
            touch: ["touchstart", "touchend", "touchmove"],
            pointer: yt(_r, (function (t) {
                var e = t.replace("mouse", "pointer");
                return Tr.hasOwnProperty(e) ? e : t
            }))
        }), Ar = ["mousemove", "mouseup"], br = ["pointermove", "pointerup"], Ir = !1;

        function Er(t) {
            var e = t.pointerType;
            return "pen" === e || "touch" === e
        }

        function Cr(t) {
            t && (t.zrByTouch = !0)
        }

        function Dr(t, e) {
            for (var n = e, i = !1; n && 9 !== n.nodeType && !(i = n.domBelongToZr || n !== e && n === t.painterRoot);) n = n.parentNode;
            return i
        }

        var wr = function (t, e) {
            this.stopPropagation = $t, this.stopImmediatePropagation = $t, this.preventDefault = $t, this.type = e.type, this.target = this.currentTarget = t.dom, this.pointerType = e.pointerType, this.clientX = e.clientX, this.clientY = e.clientY
        }, Mr = {
            mousedown: function (t) {
                t = Fe(this.dom, t), this.__mayPointerCapture = [t.zrX, t.zrY], this.trigger("mousedown", t)
            }, mousemove: function (t) {
                t = Fe(this.dom, t);
                var e = this.__mayPointerCapture;
                !e || t.zrX === e[0] && t.zrY === e[1] || this.__togglePointerCapture(!0), this.trigger("mousemove", t)
            }, mouseup: function (t) {
                t = Fe(this.dom, t), this.__togglePointerCapture(!1), this.trigger("mouseup", t)
            }, mouseout: function (t) {
                Dr(this, (t = Fe(this.dom, t)).toElement || t.relatedTarget) || (this.__pointerCapturing && (t.zrEventControl = "no_globalout"), this.trigger("mouseout", t))
            }, wheel: function (t) {
                Ir = !0, t = Fe(this.dom, t), this.trigger("mousewheel", t)
            }, mousewheel: function (t) {
                Ir || (t = Fe(this.dom, t), this.trigger("mousewheel", t))
            }, touchstart: function (t) {
                Cr(t = Fe(this.dom, t)), this.__lastTouchMoment = new Date, this.handler.processGesture(t, "start"), Mr.mousemove.call(this, t), Mr.mousedown.call(this, t)
            }, touchmove: function (t) {
                Cr(t = Fe(this.dom, t)), this.handler.processGesture(t, "change"), Mr.mousemove.call(this, t)
            }, touchend: function (t) {
                Cr(t = Fe(this.dom, t)), this.handler.processGesture(t, "end"), Mr.mouseup.call(this, t), +new Date - +this.__lastTouchMoment < 300 && Mr.click.call(this, t)
            }, pointerdown: function (t) {
                Mr.mousedown.call(this, t)
            }, pointermove: function (t) {
                Er(t) || Mr.mousemove.call(this, t)
            }, pointerup: function (t) {
                Mr.mouseup.call(this, t)
            }, pointerout: function (t) {
                Er(t) || Mr.mouseout.call(this, t)
            }
        };
        mt(["click", "dblclick", "contextmenu"], (function (t) {
            Mr[t] = function (e) {
                e = Fe(this.dom, e), this.trigger(t, e)
            }
        }));
        var Nr = {
            pointermove: function (t) {
                Er(t) || Nr.mousemove.call(this, t)
            }, pointerup: function (t) {
                Nr.mouseup.call(this, t)
            }, mousemove: function (t) {
                this.trigger("mousemove", t)
            }, mouseup: function (t) {
                var e = this.__pointerCapturing;
                this.__togglePointerCapture(!1), this.trigger("mouseup", t), e && (t.zrEventControl = "only_globalout", this.trigger("mouseout", t))
            }
        };

        function Or(t, e) {
            var n = e.domHandlers;
            H.pointerEventsSupported ? mt(Sr.pointer, (function (i) {
                Rr(e, i, (function (e) {
                    n[i].call(t, e)
                }))
            })) : (H.touchEventsSupported && mt(Sr.touch, (function (i) {
                Rr(e, i, (function (r) {
                    n[i].call(t, r), function (t) {
                        t.touching = !0, null != t.touchTimer && (clearTimeout(t.touchTimer), t.touchTimer = null), t.touchTimer = setTimeout((function () {
                            t.touching = !1, t.touchTimer = null
                        }), 700)
                    }(e)
                }))
            })), mt(Sr.mouse, (function (i) {
                Rr(e, i, (function (r) {
                    r = Be(r), e.touching || n[i].call(t, r)
                }))
            })))
        }

        function Lr(t, e) {
            function n(n) {
                Rr(e, n, (function (i) {
                    i = Be(i), Dr(t, i.target) || (i = function (t, e) {
                        return Fe(t.dom, new wr(t, e), !0)
                    }(t, i), e.domHandlers[n].call(t, i))
                }), {capture: !0})
            }

            H.pointerEventsSupported ? mt(br, n) : H.touchEventsSupported || mt(Ar, n)
        }

        function Rr(t, e, n, i) {
            t.mounted[e] = n, t.listenerOpts[e] = i, He(t.domTarget, e, n, i)
        }

        function kr(t) {
            var e, n, i, r, o = t.mounted;
            for (var a in o) o.hasOwnProperty(a) && (e = t.domTarget, n = a, i = o[a], r = t.listenerOpts[a], e.removeEventListener(n, i, r));
            t.mounted = {}
        }

        var Pr = function (t, e) {
            this.mounted = {}, this.listenerOpts = {}, this.touching = !1, this.domTarget = t, this.domHandlers = e
        };
        const Gr = function (t) {
            function e(e, n) {
                var i = t.call(this) || this;
                return i.__pointerCapturing = !1, i.dom = e, i.painterRoot = n, i._localHandlerScope = new Pr(e, Mr), xr && (i._globalHandlerScope = new Pr(document, Nr)), Or(i, i._localHandlerScope), i
            }

            return G(e, t), e.prototype.dispose = function () {
                kr(this._localHandlerScope), xr && kr(this._globalHandlerScope)
            }, e.prototype.setCursor = function (t) {
                this.dom.style && (this.dom.style.cursor = t || "default")
            }, e.prototype.__togglePointerCapture = function (t) {
                if (this.__mayPointerCapture = null, xr && +this.__pointerCapturing ^ +t) {
                    this.__pointerCapturing = t;
                    var e = this._globalHandlerScope;
                    t ? Lr(this, e) : kr(e)
                }
            }, e
        }(Se);
        var Br = 1;
        H.hasGlobalWindow && (Br = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1));
        var Fr = Br, Hr = "#333", Ur = "#ccc", Vr = qe, zr = 5e-5;

        function Wr(t) {
            return t > zr || t < -5e-5
        }

        var Yr = [], qr = [], jr = [1, 0, 0, 1, 0, 0], Xr = Math.abs, Zr = function () {
                function t() {
                }

                return t.prototype.getLocalTransform = function (e) {
                    return t.getLocalTransform(this, e)
                }, t.prototype.setPosition = function (t) {
                    this.x = t[0], this.y = t[1]
                }, t.prototype.setScale = function (t) {
                    this.scaleX = t[0], this.scaleY = t[1]
                }, t.prototype.setSkew = function (t) {
                    this.skewX = t[0], this.skewY = t[1]
                }, t.prototype.setOrigin = function (t) {
                    this.originX = t[0], this.originY = t[1]
                }, t.prototype.needLocalTransform = function () {
                    return Wr(this.rotation) || Wr(this.x) || Wr(this.y) || Wr(this.scaleX - 1) || Wr(this.scaleY - 1) || Wr(this.skewX) || Wr(this.skewY)
                }, t.prototype.updateTransform = function () {
                    var t = this.parent && this.parent.transform, e = this.needLocalTransform(), n = this.transform;
                    e || t ? (n = n || [1, 0, 0, 1, 0, 0], e ? this.getLocalTransform(n) : Vr(n), t && (e ? Xe(n, t, n) : je(n, t)), this.transform = n, this._resolveGlobalScaleRatio(n)) : n && (Vr(n), this.invTransform = null)
                }, t.prototype._resolveGlobalScaleRatio = function (t) {
                    var e = this.globalScaleRatio;
                    if (null != e && 1 !== e) {
                        this.getGlobalScale(Yr);
                        var n = Yr[0] < 0 ? -1 : 1, i = Yr[1] < 0 ? -1 : 1, r = ((Yr[0] - n) * e + n) / Yr[0] || 0,
                            o = ((Yr[1] - i) * e + i) / Yr[1] || 0;
                        t[0] *= r, t[1] *= r, t[2] *= o, t[3] *= o
                    }
                    this.invTransform = this.invTransform || [1, 0, 0, 1, 0, 0], $e(this.invTransform, t)
                }, t.prototype.getComputedTransform = function () {
                    for (var t = this, e = []; t;) e.push(t), t = t.parent;
                    for (; t = e.pop();) t.updateTransform();
                    return this.transform
                }, t.prototype.setLocalTransform = function (t) {
                    if (t) {
                        var e = t[0] * t[0] + t[1] * t[1], n = t[2] * t[2] + t[3] * t[3], i = Math.atan2(t[1], t[0]),
                            r = Math.PI / 2 + i - Math.atan2(t[3], t[2]);
                        n = Math.sqrt(n) * Math.cos(r), e = Math.sqrt(e), this.skewX = r, this.skewY = 0, this.rotation = -i, this.x = +t[4], this.y = +t[5], this.scaleX = e, this.scaleY = n, this.originX = 0, this.originY = 0
                    }
                }, t.prototype.decomposeTransform = function () {
                    if (this.transform) {
                        var t = this.parent, e = this.transform;
                        t && t.transform && (Xe(qr, t.invTransform, e), e = qr);
                        var n = this.originX, i = this.originY;
                        (n || i) && (jr[4] = n, jr[5] = i, Xe(qr, e, jr), qr[4] -= n, qr[5] -= i, e = qr), this.setLocalTransform(e)
                    }
                }, t.prototype.getGlobalScale = function (t) {
                    var e = this.transform;
                    return t = t || [], e ? (t[0] = Math.sqrt(e[0] * e[0] + e[1] * e[1]), t[1] = Math.sqrt(e[2] * e[2] + e[3] * e[3]), e[0] < 0 && (t[0] = -t[0]), e[3] < 0 && (t[1] = -t[1]), t) : (t[0] = 1, t[1] = 1, t)
                }, t.prototype.transformCoordToLocal = function (t, e) {
                    var n = [t, e], i = this.invTransform;
                    return i && ge(n, n, i), n
                }, t.prototype.transformCoordToGlobal = function (t, e) {
                    var n = [t, e], i = this.transform;
                    return i && ge(n, n, i), n
                }, t.prototype.getLineScale = function () {
                    var t = this.transform;
                    return t && Xr(t[0] - 1) > 1e-10 && Xr(t[3] - 1) > 1e-10 ? Math.sqrt(Xr(t[0] * t[3] - t[2] * t[1])) : 1
                }, t.prototype.copyTransform = function (t) {
                    Qr(this, t)
                }, t.getLocalTransform = function (t, e) {
                    e = e || [];
                    var n = t.originX || 0, i = t.originY || 0, r = t.scaleX, o = t.scaleY, a = t.anchorX, s = t.anchorY,
                        l = t.rotation || 0, u = t.x, c = t.y, h = t.skewX ? Math.tan(t.skewX) : 0,
                        d = t.skewY ? Math.tan(-t.skewY) : 0;
                    if (n || i || a || s) {
                        var p = n + a, f = i + s;
                        e[4] = -p * r - h * f * o, e[5] = -f * o - d * p * r
                    } else e[4] = e[5] = 0;
                    return e[0] = r, e[3] = o, e[1] = d * r, e[2] = h * o, l && Ke(e, e, l), e[4] += n + u, e[5] += i + c, e
                }, t.initDefaultProps = function () {
                    var e = t.prototype;
                    e.scaleX = e.scaleY = e.globalScaleRatio = 1, e.x = e.y = e.originX = e.originY = e.skewX = e.skewY = e.rotation = e.anchorX = e.anchorY = 0
                }(), t
            }(),
            Kr = ["x", "y", "originX", "originY", "anchorX", "anchorY", "rotation", "scaleX", "scaleY", "skewX", "skewY"];

        function Qr(t, e) {
            for (var n = 0; n < Kr.length; n++) {
                var i = Kr[n];
                t[i] = e[i]
            }
        }

        const $r = Zr;
        var Jr = {};

        function to(t, e) {
            var n = Jr[e = e || z];
            n || (n = Jr[e] = new yi(500));
            var i = n.get(t);
            return null == i && (i = j.measureText(t, e).width, n.put(t, i)), i
        }

        function eo(t, e, n, i) {
            var r = to(t, e), o = oo(e), a = io(0, r, n), s = ro(0, o, i);
            return new hn(a, s, r, o)
        }

        function no(t, e, n, i) {
            var r = ((t || "") + "").split("\n");
            if (1 === r.length) return eo(r[0], e, n, i);
            for (var o = new hn(0, 0, 0, 0), a = 0; a < r.length; a++) {
                var s = eo(r[a], e, n, i);
                0 === a ? o.copy(s) : o.union(s)
            }
            return o
        }

        function io(t, e, n) {
            return "right" === n ? t -= e : "center" === n && (t -= e / 2), t
        }

        function ro(t, e, n) {
            return "middle" === n ? t -= e / 2 : "bottom" === n && (t -= e), t
        }

        function oo(t) {
            return to("国", t)
        }

        function ao(t, e) {
            return "string" == typeof t ? t.lastIndexOf("%") >= 0 ? parseFloat(t) / 100 * e : parseFloat(t) : t
        }

        function so(t, e, n) {
            var i = e.position || "inside", r = null != e.distance ? e.distance : 5, o = n.height, a = n.width,
                s = o / 2, l = n.x, u = n.y, c = "left", h = "top";
            if (i instanceof Array) l += ao(i[0], n.width), u += ao(i[1], n.height), c = null, h = null; else switch (i) {
                case"left":
                    l -= r, u += s, c = "right", h = "middle";
                    break;
                case"right":
                    l += r + a, u += s, h = "middle";
                    break;
                case"top":
                    l += a / 2, u -= r, c = "center", h = "bottom";
                    break;
                case"bottom":
                    l += a / 2, u += o + r, c = "center";
                    break;
                case"inside":
                    l += a / 2, u += s, c = "center", h = "middle";
                    break;
                case"insideLeft":
                    l += r, u += s, h = "middle";
                    break;
                case"insideRight":
                    l += a - r, u += s, c = "right", h = "middle";
                    break;
                case"insideTop":
                    l += a / 2, u += r, c = "center";
                    break;
                case"insideBottom":
                    l += a / 2, u += o - r, c = "center", h = "bottom";
                    break;
                case"insideTopLeft":
                    l += r, u += r;
                    break;
                case"insideTopRight":
                    l += a - r, u += r, c = "right";
                    break;
                case"insideBottomLeft":
                    l += r, u += o - r, h = "bottom";
                    break;
                case"insideBottomRight":
                    l += a - r, u += o - r, c = "right", h = "bottom"
            }
            return (t = t || {}).x = l, t.y = u, t.align = c, t.verticalAlign = h, t
        }

        var lo = "__zr_normal__", uo = Kr.concat(["ignore"]), co = vt(Kr, (function (t, e) {
            return t[e] = !0, t
        }), {ignore: !1}), ho = {}, po = new hn(0, 0, 0, 0), fo = function () {
            function t(t) {
                this.id = at(), this.animators = [], this.currentStates = [], this.states = {}, this._init(t)
            }

            return t.prototype._init = function (t) {
                this.attr(t)
            }, t.prototype.drift = function (t, e, n) {
                switch (this.draggable) {
                    case"horizontal":
                        e = 0;
                        break;
                    case"vertical":
                        t = 0
                }
                var i = this.transform;
                i || (i = this.transform = [1, 0, 0, 1, 0, 0]), i[4] += t, i[5] += e, this.decomposeTransform(), this.markRedraw()
            }, t.prototype.beforeUpdate = function () {
            }, t.prototype.afterUpdate = function () {
            }, t.prototype.update = function () {
                this.updateTransform(), this.__dirty && this.updateInnerText()
            }, t.prototype.updateInnerText = function (t) {
                var e = this._textContent;
                if (e && (!e.ignore || t)) {
                    this.textConfig || (this.textConfig = {});
                    var n = this.textConfig, i = n.local, r = e.innerTransformable, o = void 0, a = void 0, s = !1;
                    r.parent = i ? this : null;
                    var l = !1;
                    if (r.copyTransform(e), null != n.position) {
                        var u = po;
                        n.layoutRect ? u.copy(n.layoutRect) : u.copy(this.getBoundingRect()), i || u.applyTransform(this.transform), this.calculateTextPosition ? this.calculateTextPosition(ho, n, u) : so(ho, n, u), r.x = ho.x, r.y = ho.y, o = ho.align, a = ho.verticalAlign;
                        var c = n.origin;
                        if (c && null != n.rotation) {
                            var h = void 0, d = void 0;
                            "center" === c ? (h = .5 * u.width, d = .5 * u.height) : (h = ao(c[0], u.width), d = ao(c[1], u.height)), l = !0, r.originX = -r.x + h + (i ? 0 : u.x), r.originY = -r.y + d + (i ? 0 : u.y)
                        }
                    }
                    null != n.rotation && (r.rotation = n.rotation);
                    var p = n.offset;
                    p && (r.x += p[0], r.y += p[1], l || (r.originX = -p[0], r.originY = -p[1]));
                    var f = null == n.inside ? "string" == typeof n.position && n.position.indexOf("inside") >= 0 : n.inside,
                        g = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {}), m = void 0, y = void 0,
                        v = void 0;
                    f && this.canBeInsideText() ? (m = n.insideFill, y = n.insideStroke, null != m && "auto" !== m || (m = this.getInsideTextFill()), null != y && "auto" !== y || (y = this.getInsideTextStroke(m), v = !0)) : (m = n.outsideFill, y = n.outsideStroke, null != m && "auto" !== m || (m = this.getOutsideFill()), null != y && "auto" !== y || (y = this.getOutsideStroke(m), v = !0)), (m = m || "#000") === g.fill && y === g.stroke && v === g.autoStroke && o === g.align && a === g.verticalAlign || (s = !0, g.fill = m, g.stroke = y, g.autoStroke = v, g.align = o, g.verticalAlign = a, e.setDefaultTextStyle(g)), e.__dirty |= Nn, s && e.dirtyStyle(!0)
                }
            }, t.prototype.canBeInsideText = function () {
                return !0
            }, t.prototype.getInsideTextFill = function () {
                return "#fff"
            }, t.prototype.getInsideTextStroke = function (t) {
                return "#000"
            }, t.prototype.getOutsideFill = function () {
                return this.__zr && this.__zr.isDarkMode() ? Ur : Hr
            }, t.prototype.getOutsideStroke = function (t) {
                var e = this.__zr && this.__zr.getBackgroundColor(), n = "string" == typeof e && Mi(e);
                n || (n = [255, 255, 255, 1]);
                for (var i = n[3], r = this.__zr.isDarkMode(), o = 0; o < 3; o++) n[o] = n[o] * i + (r ? 0 : 255) * (1 - i);
                return n[3] = 1, Gi(n, "rgba")
            }, t.prototype.traverse = function (t, e) {
            }, t.prototype.attrKV = function (t, e) {
                "textConfig" === t ? this.setTextConfig(e) : "textContent" === t ? this.setTextContent(e) : "clipPath" === t ? this.setClipPath(e) : "extra" === t ? (this.extra = this.extra || {}, ht(this.extra, e)) : this[t] = e
            }, t.prototype.hide = function () {
                this.ignore = !0, this.markRedraw()
            }, t.prototype.show = function () {
                this.ignore = !1, this.markRedraw()
            }, t.prototype.attr = function (t, e) {
                if ("string" == typeof t) this.attrKV(t, e); else if (Dt(t)) for (var n = Tt(t), i = 0; i < n.length; i++) {
                    var r = n[i];
                    this.attrKV(r, t[r])
                }
                return this.markRedraw(), this
            }, t.prototype.saveCurrentToNormalState = function (t) {
                this._innerSaveToNormal(t);
                for (var e = this._normalState, n = 0; n < this.animators.length; n++) {
                    var i = this.animators[n], r = i.__fromStateTransition;
                    if (!(i.getLoop() || r && r !== lo)) {
                        var o = i.targetName, a = o ? e[o] : e;
                        i.saveTo(a)
                    }
                }
            }, t.prototype._innerSaveToNormal = function (t) {
                var e = this._normalState;
                e || (e = this._normalState = {}), t.textConfig && !e.textConfig && (e.textConfig = this.textConfig), this._savePrimaryToNormal(t, e, uo)
            }, t.prototype._savePrimaryToNormal = function (t, e, n) {
                for (var i = 0; i < n.length; i++) {
                    var r = n[i];
                    null == t[r] || r in e || (e[r] = this[r])
                }
            }, t.prototype.hasState = function () {
                return this.currentStates.length > 0
            }, t.prototype.getState = function (t) {
                return this.states[t]
            }, t.prototype.ensureState = function (t) {
                var e = this.states;
                return e[t] || (e[t] = {}), e[t]
            }, t.prototype.clearStates = function (t) {
                this.useState(lo, !1, t)
            }, t.prototype.useState = function (t, e, n, i) {
                var r = t === lo;
                if (this.hasState() || !r) {
                    var o = this.currentStates, a = this.stateTransition;
                    if (!(pt(o, t) >= 0) || !e && 1 !== o.length) {
                        var s;
                        if (this.stateProxy && !r && (s = this.stateProxy(t)), s || (s = this.states && this.states[t]), s || r) {
                            r || this.saveCurrentToNormalState(s);
                            var l = !!(s && s.hoverLayer || i);
                            l && this._toggleHoverLayerFlag(!0), this._applyStateObj(t, s, this._normalState, e, !n && !this.__inHover && a && a.duration > 0, a);
                            var u = this._textContent, c = this._textGuide;
                            return u && u.useState(t, e, n, l), c && c.useState(t, e, n, l), r ? (this.currentStates = [], this._normalState = {}) : e ? this.currentStates.push(t) : this.currentStates = [t], this._updateAnimationTargets(), this.markRedraw(), !l && this.__inHover && (this._toggleHoverLayerFlag(!1), this.__dirty &= ~Nn), s
                        }
                        st("State " + t + " not exists.")
                    }
                }
            }, t.prototype.useStates = function (t, e, n) {
                if (t.length) {
                    var i = [], r = this.currentStates, o = t.length, a = o === r.length;
                    if (a) for (var s = 0; s < o; s++) if (t[s] !== r[s]) {
                        a = !1;
                        break
                    }
                    if (a) return;
                    for (s = 0; s < o; s++) {
                        var l = t[s], u = void 0;
                        this.stateProxy && (u = this.stateProxy(l, t)), u || (u = this.states[l]), u && i.push(u)
                    }
                    var c = i[o - 1], h = !!(c && c.hoverLayer || n);
                    h && this._toggleHoverLayerFlag(!0);
                    var d = this._mergeStates(i), p = this.stateTransition;
                    this.saveCurrentToNormalState(d), this._applyStateObj(t.join(","), d, this._normalState, !1, !e && !this.__inHover && p && p.duration > 0, p);
                    var f = this._textContent, g = this._textGuide;
                    f && f.useStates(t, e, h), g && g.useStates(t, e, h), this._updateAnimationTargets(), this.currentStates = t.slice(), this.markRedraw(), !h && this.__inHover && (this._toggleHoverLayerFlag(!1), this.__dirty &= ~Nn)
                } else this.clearStates()
            }, t.prototype._updateAnimationTargets = function () {
                for (var t = 0; t < this.animators.length; t++) {
                    var e = this.animators[t];
                    e.targetName && e.changeTarget(this[e.targetName])
                }
            }, t.prototype.removeState = function (t) {
                var e = pt(this.currentStates, t);
                if (e >= 0) {
                    var n = this.currentStates.slice();
                    n.splice(e, 1), this.useStates(n)
                }
            }, t.prototype.replaceState = function (t, e, n) {
                var i = this.currentStates.slice(), r = pt(i, t), o = pt(i, e) >= 0;
                r >= 0 ? o ? i.splice(r, 1) : i[r] = e : n && !o && i.push(e), this.useStates(i)
            }, t.prototype.toggleState = function (t, e) {
                e ? this.useState(t, !0) : this.removeState(t)
            }, t.prototype._mergeStates = function (t) {
                for (var e, n = {}, i = 0; i < t.length; i++) {
                    var r = t[i];
                    ht(n, r), r.textConfig && ht(e = e || {}, r.textConfig)
                }
                return e && (n.textConfig = e), n
            }, t.prototype._applyStateObj = function (t, e, n, i, r, o) {
                var a = !(e && i);
                e && e.textConfig ? (this.textConfig = ht({}, i ? this.textConfig : n.textConfig), ht(this.textConfig, e.textConfig)) : a && n.textConfig && (this.textConfig = n.textConfig);
                for (var s = {}, l = !1, u = 0; u < uo.length; u++) {
                    var c = uo[u], h = r && co[c];
                    e && null != e[c] ? h ? (l = !0, s[c] = e[c]) : this[c] = e[c] : a && null != n[c] && (h ? (l = !0, s[c] = n[c]) : this[c] = n[c])
                }
                if (!r) for (u = 0; u < this.animators.length; u++) {
                    var d = this.animators[u], p = d.targetName;
                    d.getLoop() || d.__changeFinalValue(p ? (e || n)[p] : e || n)
                }
                l && this._transitionState(t, s, o)
            }, t.prototype._attachComponent = function (t) {
                if ((!t.__zr || t.__hostTarget) && t !== this) {
                    var e = this.__zr;
                    e && t.addSelfToZr(e), t.__zr = e, t.__hostTarget = this
                }
            }, t.prototype._detachComponent = function (t) {
                t.__zr && t.removeSelfFromZr(t.__zr), t.__zr = null, t.__hostTarget = null
            }, t.prototype.getClipPath = function () {
                return this._clipPath
            }, t.prototype.setClipPath = function (t) {
                this._clipPath && this._clipPath !== t && this.removeClipPath(), this._attachComponent(t), this._clipPath = t, this.markRedraw()
            }, t.prototype.removeClipPath = function () {
                var t = this._clipPath;
                t && (this._detachComponent(t), this._clipPath = null, this.markRedraw())
            }, t.prototype.getTextContent = function () {
                return this._textContent
            }, t.prototype.setTextContent = function (t) {
                var e = this._textContent;
                e !== t && (e && e !== t && this.removeTextContent(), t.innerTransformable = new $r, this._attachComponent(t), this._textContent = t, this.markRedraw())
            }, t.prototype.setTextConfig = function (t) {
                this.textConfig || (this.textConfig = {}), ht(this.textConfig, t), this.markRedraw()
            }, t.prototype.removeTextConfig = function () {
                this.textConfig = null, this.markRedraw()
            }, t.prototype.removeTextContent = function () {
                var t = this._textContent;
                t && (t.innerTransformable = null, this._detachComponent(t), this._textContent = null, this._innerTextDefaultStyle = null, this.markRedraw())
            }, t.prototype.getTextGuideLine = function () {
                return this._textGuide
            }, t.prototype.setTextGuideLine = function (t) {
                this._textGuide && this._textGuide !== t && this.removeTextGuideLine(), this._attachComponent(t), this._textGuide = t, this.markRedraw()
            }, t.prototype.removeTextGuideLine = function () {
                var t = this._textGuide;
                t && (this._detachComponent(t), this._textGuide = null, this.markRedraw())
            }, t.prototype.markRedraw = function () {
                this.__dirty |= Nn;
                var t = this.__zr;
                t && (this.__inHover ? t.refreshHover() : t.refresh()), this.__hostTarget && this.__hostTarget.markRedraw()
            }, t.prototype.dirty = function () {
                this.markRedraw()
            }, t.prototype._toggleHoverLayerFlag = function (t) {
                this.__inHover = t;
                var e = this._textContent, n = this._textGuide;
                e && (e.__inHover = t), n && (n.__inHover = t)
            }, t.prototype.addSelfToZr = function (t) {
                if (this.__zr !== t) {
                    this.__zr = t;
                    var e = this.animators;
                    if (e) for (var n = 0; n < e.length; n++) t.animation.addAnimator(e[n]);
                    this._clipPath && this._clipPath.addSelfToZr(t), this._textContent && this._textContent.addSelfToZr(t), this._textGuide && this._textGuide.addSelfToZr(t)
                }
            }, t.prototype.removeSelfFromZr = function (t) {
                if (this.__zr) {
                    this.__zr = null;
                    var e = this.animators;
                    if (e) for (var n = 0; n < e.length; n++) t.animation.removeAnimator(e[n]);
                    this._clipPath && this._clipPath.removeSelfFromZr(t), this._textContent && this._textContent.removeSelfFromZr(t), this._textGuide && this._textGuide.removeSelfFromZr(t)
                }
            }, t.prototype.animate = function (t, e, n) {
                var i = t ? this[t] : this;
                var r = new gr(i, e, n);
                return t && (r.targetName = t), this.addAnimator(r, t), r
            }, t.prototype.addAnimator = function (t, e) {
                var n = this.__zr, i = this;
                t.during((function () {
                    i.updateDuringAnimation(e)
                })).done((function () {
                    var e = i.animators, n = pt(e, t);
                    n >= 0 && e.splice(n, 1)
                })), this.animators.push(t), n && n.animation.addAnimator(t), n && n.wakeUp()
            }, t.prototype.updateDuringAnimation = function (t) {
                this.markRedraw()
            }, t.prototype.stopAnimation = function (t, e) {
                for (var n = this.animators, i = n.length, r = [], o = 0; o < i; o++) {
                    var a = n[o];
                    t && t !== a.scope ? r.push(a) : a.stop(e)
                }
                return this.animators = r, this
            }, t.prototype.animateTo = function (t, e, n) {
                go(this, t, e, n)
            }, t.prototype.animateFrom = function (t, e, n) {
                go(this, t, e, n, !0)
            }, t.prototype._transitionState = function (t, e, n, i) {
                for (var r = go(this, e, n, i), o = 0; o < r.length; o++) r[o].__fromStateTransition = t
            }, t.prototype.getBoundingRect = function () {
                return null
            }, t.prototype.getPaintRect = function () {
                return null
            }, t.initDefaultProps = function () {
                var e = t.prototype;
                e.type = "element", e.name = "", e.ignore = e.silent = e.isGroup = e.draggable = e.dragging = e.ignoreClip = e.__inHover = !1, e.__dirty = Nn;

                function n(t, n, i, r) {
                    function o(t, e) {
                        Object.defineProperty(e, 0, {
                            get: function () {
                                return t[i]
                            }, set: function (e) {
                                t[i] = e
                            }
                        }), Object.defineProperty(e, 1, {
                            get: function () {
                                return t[r]
                            }, set: function (e) {
                                t[r] = e
                            }
                        })
                    }

                    Object.defineProperty(e, t, {
                        get: function () {
                            this[n] || o(this, this[n] = []);
                            return this[n]
                        }, set: function (t) {
                            this[i] = t[0], this[r] = t[1], this[n] = t, o(this, t)
                        }
                    })
                }

                Object.defineProperty && (n("position", "_legacyPos", "x", "y"), n("scale", "_legacyScale", "scaleX", "scaleY"), n("origin", "_legacyOrigin", "originX", "originY"))
            }(), t
        }();

        function go(t, e, n, i, r) {
            var o = [];
            vo(t, "", t, e, n = n || {}, i, o, r);
            var a = o.length, s = !1, l = n.done, u = n.aborted, c = function () {
                s = !0, --a <= 0 && (s ? l && l() : u && u())
            }, h = function () {
                --a <= 0 && (s ? l && l() : u && u())
            };
            a || l && l(), o.length > 0 && n.during && o[0].during((function (t, e) {
                n.during(e)
            }));
            for (var d = 0; d < o.length; d++) {
                var p = o[d];
                c && p.done(c), h && p.aborted(h), n.force && p.duration(n.duration), p.start(n.easing)
            }
            return o
        }

        function mo(t, e, n) {
            for (var i = 0; i < n; i++) t[i] = e[i]
        }

        function yo(t, e, n) {
            if (gt(e[n])) if (gt(t[n]) || (t[n] = []), Mt(e[n])) {
                var i = e[n].length;
                t[n].length !== i && (t[n] = new e[n].constructor(i), mo(t[n], e[n], i))
            } else {
                var r = e[n], o = t[n], a = r.length;
                if (gt(r[0])) for (var s = r[0].length, l = 0; l < a; l++) o[l] ? mo(o[l], r[l], s) : o[l] = Array.prototype.slice.call(r[l]); else mo(o, r, a);
                o.length = r.length
            } else t[n] = e[n]
        }

        function vo(t, e, n, i, r, o, a, s) {
            for (var l = Tt(i), u = r.duration, c = r.delay, h = r.additive, d = r.setToFinal, p = !Dt(o), f = t.animators, g = [], m = 0; m < l.length; m++) {
                var y = l[m], v = i[y];
                if (null != v && null != n[y] && (p || o[y])) if (!Dt(v) || gt(v) || Ot(v)) g.push(y); else {
                    if (e) {
                        s || (n[y] = v, t.updateDuringAnimation(e));
                        continue
                    }
                    vo(t, y, n[y], v, r, o && o[y], a, s)
                } else s || (n[y] = v, t.updateDuringAnimation(e), g.push(y))
            }
            var _ = g.length;
            if (!h && _) for (var T = 0; T < f.length; T++) {
                if ((S = f[T]).targetName === e) if (S.stopTracks(g)) {
                    var x = pt(f, S);
                    f.splice(x, 1)
                }
            }
            if (r.force || (g = _t(g, (function (t) {
                return e = i[t], r = n[t], !(e === r || gt(e) && gt(r) && function (t, e) {
                    var n = t.length;
                    if (n !== e.length) return !1;
                    for (var i = 0; i < n; i++) if (t[i] !== e[i]) return !1;
                    return !0
                }(e, r));
                var e, r
            })), _ = g.length), _ > 0 || r.force && !a.length) {
                var S, A = void 0, b = void 0, I = void 0;
                if (s) {
                    b = {}, d && (A = {});
                    for (T = 0; T < _; T++) {
                        b[y = g[T]] = n[y], d ? A[y] = i[y] : n[y] = i[y]
                    }
                } else if (d) {
                    I = {};
                    for (T = 0; T < _; T++) {
                        I[y = g[T]] = lr(n[y]), yo(n, i, y)
                    }
                }
                (S = new gr(n, !1, !1, h ? _t(f, (function (t) {
                    return t.targetName === e
                })) : null)).targetName = e, r.scope && (S.scope = r.scope), d && A && S.whenWithKeys(0, A, g), I && S.whenWithKeys(0, I, g), S.whenWithKeys(null == u ? 500 : u, s ? b : i, g).delay(c || 0), t.addAnimator(S, e), a.push(S)
            }
        }

        ft(fo, Se), ft(fo, $r);
        const _o = fo;
        var To = function (t) {
            function e(e) {
                var n = t.call(this) || this;
                return n.isGroup = !0, n._children = [], n.attr(e), n
            }

            return G(e, t), e.prototype.childrenRef = function () {
                return this._children
            }, e.prototype.children = function () {
                return this._children.slice()
            }, e.prototype.childAt = function (t) {
                return this._children[t]
            }, e.prototype.childOfName = function (t) {
                for (var e = this._children, n = 0; n < e.length; n++) if (e[n].name === t) return e[n]
            }, e.prototype.childCount = function () {
                return this._children.length
            }, e.prototype.add = function (t) {
                return t && t !== this && t.parent !== this && (this._children.push(t), this._doAdd(t)), this
            }, e.prototype.addBefore = function (t, e) {
                if (t && t !== this && t.parent !== this && e && e.parent === this) {
                    var n = this._children, i = n.indexOf(e);
                    i >= 0 && (n.splice(i, 0, t), this._doAdd(t))
                }
                return this
            }, e.prototype.replace = function (t, e) {
                var n = pt(this._children, t);
                return n >= 0 && this.replaceAt(e, n), this
            }, e.prototype.replaceAt = function (t, e) {
                var n = this._children, i = n[e];
                if (t && t !== this && t.parent !== this && t !== i) {
                    n[e] = t, i.parent = null;
                    var r = this.__zr;
                    r && i.removeSelfFromZr(r), this._doAdd(t)
                }
                return this
            }, e.prototype._doAdd = function (t) {
                t.parent && t.parent.remove(t), t.parent = this;
                var e = this.__zr;
                e && e !== t.__zr && t.addSelfToZr(e), e && e.refresh()
            }, e.prototype.remove = function (t) {
                var e = this.__zr, n = this._children, i = pt(n, t);
                return i < 0 || (n.splice(i, 1), t.parent = null, e && t.removeSelfFromZr(e), e && e.refresh()), this
            }, e.prototype.removeAll = function () {
                for (var t = this._children, e = this.__zr, n = 0; n < t.length; n++) {
                    var i = t[n];
                    e && i.removeSelfFromZr(e), i.parent = null
                }
                return t.length = 0, this
            }, e.prototype.eachChild = function (t, e) {
                for (var n = this._children, i = 0; i < n.length; i++) {
                    var r = n[i];
                    t.call(e, r, i)
                }
                return this
            }, e.prototype.traverse = function (t, e) {
                for (var n = 0; n < this._children.length; n++) {
                    var i = this._children[n], r = t.call(e, i);
                    i.isGroup && !r && i.traverse(t, e)
                }
                return this
            }, e.prototype.addSelfToZr = function (e) {
                t.prototype.addSelfToZr.call(this, e);
                for (var n = 0; n < this._children.length; n++) {
                    this._children[n].addSelfToZr(e)
                }
            }, e.prototype.removeSelfFromZr = function (e) {
                t.prototype.removeSelfFromZr.call(this, e);
                for (var n = 0; n < this._children.length; n++) {
                    this._children[n].removeSelfFromZr(e)
                }
            }, e.prototype.getBoundingRect = function (t) {
                for (var e = new hn(0, 0, 0, 0), n = t || this._children, i = [], r = null, o = 0; o < n.length; o++) {
                    var a = n[o];
                    if (!a.ignore && !a.invisible) {
                        var s = a.getBoundingRect(), l = a.getLocalTransform(i);
                        l ? (hn.applyTransform(e, s, l), (r = r || e.clone()).union(e)) : (r = r || s.clone()).union(s)
                    }
                }
                return r || e
            }, e
        }(_o);
        To.prototype.type = "group";
        const xo = To;
        var So = {}, Ao = {};
        var bo = function () {
            function t(t, e, n) {
                var i = this;
                this._sleepAfterStill = 10, this._stillFrameAccum = 0, this._needsRefresh = !0, this._needsRefreshHover = !0, this._darkMode = !1, n = n || {}, this.dom = e, this.id = t;
                var r = new Gn, o = n.renderer || "canvas";
                So[o] || (o = Tt(So)[0]), n.useDirtyRect = null != n.useDirtyRect && n.useDirtyRect;
                var a = new So[o](e, r, n, t), s = n.ssr || a.ssrOnly;
                this.storage = r, this.painter = a;
                var l, u = H.node || H.worker || s ? null : new Gr(a.getViewportRoot(), a.root), c = n.useCoarsePointer;
                (null == c || "auto" === c ? H.touchEventsSupported : !!c) && (l = kt(n.pointerSize, 44)), this.handler = new Sn(r, a, u, a.root, l), this.animation = new vr({
                    stage: {
                        update: s ? null : function () {
                            return i._flush(!0)
                        }
                    }
                }), s || this.animation.start()
            }

            return t.prototype.add = function (t) {
                t && (this.storage.addRoot(t), t.addSelfToZr(this), this.refresh())
            }, t.prototype.remove = function (t) {
                t && (this.storage.delRoot(t), t.removeSelfFromZr(this), this.refresh())
            }, t.prototype.configLayer = function (t, e) {
                this.painter.configLayer && this.painter.configLayer(t, e), this.refresh()
            }, t.prototype.setBackgroundColor = function (t) {
                this.painter.setBackgroundColor && this.painter.setBackgroundColor(t), this.refresh(), this._backgroundColor = t, this._darkMode = function (t) {
                    if (!t) return !1;
                    if ("string" == typeof t) return Bi(t, 1) < .4;
                    if (t.colorStops) {
                        for (var e = t.colorStops, n = 0, i = e.length, r = 0; r < i; r++) n += Bi(e[r].color, 1);
                        return (n /= i) < .4
                    }
                    return !1
                }(t)
            }, t.prototype.getBackgroundColor = function () {
                return this._backgroundColor
            }, t.prototype.setDarkMode = function (t) {
                this._darkMode = t
            }, t.prototype.isDarkMode = function () {
                return this._darkMode
            }, t.prototype.refreshImmediately = function (t) {
                t || this.animation.update(!0), this._needsRefresh = !1, this.painter.refresh(), this._needsRefresh = !1
            }, t.prototype.refresh = function () {
                this._needsRefresh = !0, this.animation.start()
            }, t.prototype.flush = function () {
                this._flush(!1)
            }, t.prototype._flush = function (t) {
                var e, n = mr();
                this._needsRefresh && (e = !0, this.refreshImmediately(t)), this._needsRefreshHover && (e = !0, this.refreshHoverImmediately());
                var i = mr();
                e ? (this._stillFrameAccum = 0, this.trigger("rendered", {elapsedTime: i - n})) : this._sleepAfterStill > 0 && (this._stillFrameAccum++, this._stillFrameAccum > this._sleepAfterStill && this.animation.stop())
            }, t.prototype.setSleepAfterStill = function (t) {
                this._sleepAfterStill = t
            }, t.prototype.wakeUp = function () {
                this.animation.start(), this._stillFrameAccum = 0
            }, t.prototype.refreshHover = function () {
                this._needsRefreshHover = !0
            }, t.prototype.refreshHoverImmediately = function () {
                this._needsRefreshHover = !1, this.painter.refreshHover && "canvas" === this.painter.getType() && this.painter.refreshHover()
            }, t.prototype.resize = function (t) {
                t = t || {}, this.painter.resize(t.width, t.height), this.handler.resize()
            }, t.prototype.clearAnimation = function () {
                this.animation.clear()
            }, t.prototype.getWidth = function () {
                return this.painter.getWidth()
            }, t.prototype.getHeight = function () {
                return this.painter.getHeight()
            }, t.prototype.setCursorStyle = function (t) {
                this.handler.setCursorStyle(t)
            }, t.prototype.findHover = function (t, e) {
                return this.handler.findHover(t, e)
            }, t.prototype.on = function (t, e, n) {
                return this.handler.on(t, e, n), this
            }, t.prototype.off = function (t, e) {
                this.handler.off(t, e)
            }, t.prototype.trigger = function (t, e) {
                this.handler.trigger(t, e)
            }, t.prototype.clear = function () {
                for (var t = this.storage.getRoots(), e = 0; e < t.length; e++) t[e] instanceof xo && t[e].removeSelfFromZr(this);
                this.storage.delAllRoots(), this.painter.clear()
            }, t.prototype.dispose = function () {
                var t;
                this.animation.stop(), this.clear(), this.storage.dispose(), this.painter.dispose(), this.handler.dispose(), this.animation = this.storage = this.painter = this.handler = null, t = this.id, delete Ao[t]
            }, t
        }();

        function Io(t, e) {
            var n = new bo(at(), t, e);
            return Ao[n.id] = n, n
        }

        var Eo = 1e-4, Co = 20;

        function Do(t, e, n, i) {
            var r = e[0], o = e[1], a = n[0], s = n[1], l = o - r, u = s - a;
            if (0 === l) return 0 === u ? a : (a + s) / 2;
            if (i) if (l > 0) {
                if (t <= r) return a;
                if (t >= o) return s
            } else {
                if (t >= r) return a;
                if (t <= o) return s
            } else {
                if (t === r) return a;
                if (t === o) return s
            }
            return (t - r) / l * u + a
        }

        function wo(t, e) {
            switch (t) {
                case"center":
                case"middle":
                    t = "50%";
                    break;
                case"left":
                case"top":
                    t = "0%";
                    break;
                case"right":
                case"bottom":
                    t = "100%"
            }
            return It(t) ? (n = t, n.replace(/^\s+|\s+$/g, "")).match(/%$/) ? parseFloat(t) / 100 * e : parseFloat(t) : null == t ? NaN : +t;
            var n
        }

        function Mo(t, e, n) {
            return null == e && (e = 10), e = Math.min(Math.max(0, e), Co), t = (+t).toFixed(e), n ? t : +t
        }

        function No(t) {
            return t.sort((function (t, e) {
                return t - e
            })), t
        }

        function Oo(t) {
            if (t = +t, isNaN(t)) return 0;
            if (t > 1e-14) for (var e = 1, n = 0; n < 15; n++, e *= 10) if (Math.round(t * e) / e === t) return n;
            return function (t) {
                var e = t.toString().toLowerCase(), n = e.indexOf("e"), i = n > 0 ? +e.slice(n + 1) : 0,
                    r = n > 0 ? n : e.length, o = e.indexOf("."), a = o < 0 ? 0 : r - 1 - o;
                return Math.max(0, a - i)
            }(t)
        }

        function Lo(t, e) {
            var n = Math.log, i = Math.LN10, r = Math.floor(n(t[1] - t[0]) / i),
                o = Math.round(n(Math.abs(e[1] - e[0])) / i), a = Math.min(Math.max(-r + o, 0), 20);
            return isFinite(a) ? a : 20
        }

        function Ro(t, e) {
            var n = vt(t, (function (t, e) {
                return t + (isNaN(e) ? 0 : e)
            }), 0);
            if (0 === n) return [];
            for (var i = Math.pow(10, e), r = yt(t, (function (t) {
                return (isNaN(t) ? 0 : t) / n * i * 100
            })), o = 100 * i, a = yt(r, (function (t) {
                return Math.floor(t)
            })), s = vt(a, (function (t, e) {
                return t + e
            }), 0), l = yt(r, (function (t, e) {
                return t - a[e]
            })); s < o;) {
                for (var u = Number.NEGATIVE_INFINITY, c = null, h = 0, d = l.length; h < d; ++h) l[h] > u && (u = l[h], c = h);
                ++a[c], l[c] = 0, ++s
            }
            return yt(a, (function (t) {
                return t / i
            }))
        }

        function ko(t, e) {
            var n = Math.max(Oo(t), Oo(e)), i = t + e;
            return n > Co ? i : Mo(i, n)
        }

        var Po = 9007199254740991;

        function Go(t) {
            var e = 2 * Math.PI;
            return (t % e + e) % e
        }

        function Bo(t) {
            return t > -Eo && t < Eo
        }

        var Fo = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;

        function Ho(t) {
            if (t instanceof Date) return t;
            if (It(t)) {
                var e = Fo.exec(t);
                if (!e) return new Date(NaN);
                if (e[8]) {
                    var n = +e[4] || 0;
                    return "Z" !== e[8].toUpperCase() && (n -= +e[8].slice(0, 3)), new Date(Date.UTC(+e[1], +(e[2] || 1) - 1, +e[3] || 1, n, +(e[5] || 0), +e[6] || 0, e[7] ? +e[7].substring(0, 3) : 0))
                }
                return new Date(+e[1], +(e[2] || 1) - 1, +e[3] || 1, +e[4] || 0, +(e[5] || 0), +e[6] || 0, e[7] ? +e[7].substring(0, 3) : 0)
            }
            return null == t ? new Date(NaN) : new Date(Math.round(t))
        }

        function Uo(t) {
            if (0 === t) return 0;
            var e = Math.floor(Math.log(t) / Math.LN10);
            return t / Math.pow(10, e) >= 10 && e++, e
        }

        function Vo(t, e) {
            var n = Uo(t), i = Math.pow(10, n), r = t / i;
            return t = (e ? r < 1.5 ? 1 : r < 2.5 ? 2 : r < 4 ? 3 : r < 7 ? 5 : 10 : r < 1 ? 1 : r < 2 ? 2 : r < 3 ? 3 : r < 5 ? 5 : 10) * i, n >= -20 ? +t.toFixed(n < 0 ? -n : 0) : t
        }

        function zo(t, e) {
            var n = (t.length - 1) * e + 1, i = Math.floor(n), r = +t[i - 1], o = n - i;
            return o ? r + o * (t[i] - r) : r
        }

        function Wo(t) {
            t.sort((function (t, e) {
                return s(t, e, 0) ? -1 : 1
            }));
            for (var e = -1 / 0, n = 1, i = 0; i < t.length;) {
                for (var r = t[i].interval, o = t[i].close, a = 0; a < 2; a++) r[a] <= e && (r[a] = e, o[a] = a ? 1 : 1 - n), e = r[a], n = o[a];
                r[0] === r[1] && o[0] * o[1] != 1 ? t.splice(i, 1) : i++
            }
            return t;

            function s(t, e, n) {
                return t.interval[n] < e.interval[n] || t.interval[n] === e.interval[n] && (t.close[n] - e.close[n] == (n ? -1 : 1) || !n && s(t, e, 1))
            }
        }

        function Yo(t) {
            var e = parseFloat(t);
            return e == t && (0 !== e || !It(t) || t.indexOf("x") <= 0) ? e : NaN
        }

        function qo(t) {
            return !isNaN(Yo(t))
        }

        function jo() {
            return Math.round(9 * Math.random())
        }

        function Xo(t, e) {
            return 0 === e ? t : Xo(e, t % e)
        }

        function Zo(t, e) {
            return null == t ? e : null == e ? t : t * e / Xo(t, e)
        }

        function Ko(t, e, n) {
            return (e - t) * n + t
        }

        var Qo = "series\0", $o = "\0_ec_\0";

        function Jo(t) {
            return t instanceof Array ? t : null == t ? [] : [t]
        }

        function ta(t, e, n) {
            if (t) {
                t[e] = t[e] || {}, t.emphasis = t.emphasis || {}, t.emphasis[e] = t.emphasis[e] || {};
                for (var i = 0, r = n.length; i < r; i++) {
                    var o = n[i];
                    !t.emphasis[e].hasOwnProperty(o) && t[e].hasOwnProperty(o) && (t.emphasis[e][o] = t[e][o])
                }
            }
        }

        var ea = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "rich", "tag", "color", "textBorderColor", "textBorderWidth", "width", "height", "lineHeight", "align", "verticalAlign", "baseline", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY", "backgroundColor", "borderColor", "borderWidth", "borderRadius", "padding"];

        function na(t) {
            return !Dt(t) || At(t) || t instanceof Date ? t : t.value
        }

        function ia(t) {
            return Dt(t) && !(t instanceof Array)
        }

        function ra(t, e, n) {
            var i = "normalMerge" === n, r = "replaceMerge" === n, o = "replaceAll" === n;
            t = t || [], e = (e || []).slice();
            var a = jt();
            mt(e, (function (t, n) {
                Dt(t) || (e[n] = null)
            }));
            var s, l, u = function (t, e, n) {
                var i = [];
                if ("replaceAll" === n) return i;
                for (var r = 0; r < t.length; r++) {
                    var o = t[r];
                    o && null != o.id && e.set(o.id, r), i.push({
                        existing: "replaceMerge" === n || ua(o) ? null : o,
                        newOption: null,
                        keyInfo: null,
                        brandNew: null
                    })
                }
                return i
            }(t, a, n);
            return (i || r) && function (t, e, n, i) {
                mt(i, (function (r, o) {
                    if (r && null != r.id) {
                        var a = aa(r.id), s = n.get(a);
                        if (null != s) {
                            var l = t[s];
                            Ft(!l.newOption, 'Duplicated option on id "' + a + '".'), l.newOption = r, l.existing = e[s], i[o] = null
                        }
                    }
                }))
            }(u, t, a, e), i && function (t, e) {
                mt(e, (function (n, i) {
                    if (n && null != n.name) for (var r = 0; r < t.length; r++) {
                        var o = t[r].existing;
                        if (!t[r].newOption && o && (null == o.id || null == n.id) && !ua(n) && !ua(o) && oa("name", o, n)) return t[r].newOption = n, void (e[i] = null)
                    }
                }))
            }(u, e), i || r ? function (t, e, n) {
                mt(e, (function (e) {
                    if (e) {
                        for (var i, r = 0; (i = t[r]) && (i.newOption || ua(i.existing) || i.existing && null != e.id && !oa("id", e, i.existing));) r++;
                        i ? (i.newOption = e, i.brandNew = n) : t.push({
                            newOption: e,
                            brandNew: n,
                            existing: null,
                            keyInfo: null
                        }), r++
                    }
                }))
            }(u, e, r) : o && function (t, e) {
                mt(e, (function (e) {
                    t.push({newOption: e, brandNew: !0, existing: null, keyInfo: null})
                }))
            }(u, e), s = u, l = jt(), mt(s, (function (t) {
                var e = t.existing;
                e && l.set(e.id, t)
            })), mt(s, (function (t) {
                var e = t.newOption;
                Ft(!e || null == e.id || !l.get(e.id) || l.get(e.id) === t, "id duplicates: " + (e && e.id)), e && null != e.id && l.set(e.id, t), !t.keyInfo && (t.keyInfo = {})
            })), mt(s, (function (t, e) {
                var n = t.existing, i = t.newOption, r = t.keyInfo;
                if (Dt(i)) {
                    if (r.name = null != i.name ? aa(i.name) : n ? n.name : Qo + e, n) r.id = aa(n.id); else if (null != i.id) r.id = aa(i.id); else {
                        var o = 0;
                        do {
                            r.id = "\0" + r.name + "\0" + o++
                        } while (l.get(r.id))
                    }
                    l.set(r.id, t)
                }
            })), u
        }

        function oa(t, e, n) {
            var i = sa(e[t], null), r = sa(n[t], null);
            return null != i && null != r && i === r
        }

        function aa(t) {
            return sa(t, "")
        }

        function sa(t, e) {
            return null == t ? e : It(t) ? t : Ct(t) || Et(t) ? t + "" : e
        }

        function la(t) {
            var e = t.name;
            return !(!e || !e.indexOf(Qo))
        }

        function ua(t) {
            return t && null != t.id && 0 === aa(t.id).indexOf($o)
        }

        function ca(t, e) {
            return null != e.dataIndexInside ? e.dataIndexInside : null != e.dataIndex ? At(e.dataIndex) ? yt(e.dataIndex, (function (e) {
                return t.indexOfRawIndex(e)
            })) : t.indexOfRawIndex(e.dataIndex) : null != e.name ? At(e.name) ? yt(e.name, (function (e) {
                return t.indexOfName(e)
            })) : t.indexOfName(e.name) : void 0
        }

        function ha() {
            var t = "__ec_inner_" + da++;
            return function (e) {
                return e[t] || (e[t] = {})
            }
        }

        var da = jo();

        function pa(t, e, n) {
            var i = fa(e, n), r = i.mainTypeSpecified, o = i.queryOptionMap, a = i.others,
                s = n ? n.defaultMainType : null;
            return !r && s && o.set(s, {}), o.each((function (e, i) {
                var r = ya(t, i, e, {
                    useDefault: s === i,
                    enableAll: !n || null == n.enableAll || n.enableAll,
                    enableNone: !n || null == n.enableNone || n.enableNone
                });
                a[i + "Models"] = r.models, a[i + "Model"] = r.models[0]
            })), a
        }

        function fa(t, e) {
            var n;
            if (It(t)) {
                var i = {};
                i[t + "Index"] = 0, n = i
            } else n = t;
            var r = jt(), o = {}, a = !1;
            return mt(n, (function (t, n) {
                if ("dataIndex" !== n && "dataIndexInside" !== n) {
                    var i = n.match(/^(\w+)(Index|Id|Name)$/) || [], s = i[1], l = (i[2] || "").toLowerCase();
                    if (s && l && !(e && e.includeMainTypes && pt(e.includeMainTypes, s) < 0)) a = a || !!s, (r.get(s) || r.set(s, {}))[l] = t
                } else o[n] = t
            })), {mainTypeSpecified: a, queryOptionMap: r, others: o}
        }

        var ga = {useDefault: !0, enableAll: !1, enableNone: !1}, ma = {useDefault: !1, enableAll: !0, enableNone: !0};

        function ya(t, e, n, i) {
            i = i || ga;
            var r = n.index, o = n.id, a = n.name, s = {models: null, specified: null != r || null != o || null != a};
            if (!s.specified) {
                var l = void 0;
                return s.models = i.useDefault && (l = t.getComponent(e)) ? [l] : [], s
            }
            return "none" === r || !1 === r ? (Ft(i.enableNone, '`"none"` or `false` is not a valid value on index option.'), s.models = [], s) : ("all" === r && (Ft(i.enableAll, '`"all"` is not a valid value on index option.'), r = o = a = null), s.models = t.queryComponents({
                mainType: e,
                index: r,
                id: o,
                name: a
            }), s)
        }

        function va(t, e, n) {
            t.setAttribute ? t.setAttribute(e, n) : t[e] = n
        }

        function _a(t, e) {
            var n = jt(), i = [];
            return mt(t, (function (t) {
                var r = e(t);
                (n.get(r) || (i.push(r), n.set(r, []))).push(t)
            })), {keys: i, buckets: n}
        }

        function Ta(t, e, n, i, r) {
            var o = null == e || "auto" === e;
            if (null == i) return i;
            if (Ct(i)) return Mo(f = Ko(n || 0, i, r), o ? Math.max(Oo(n || 0), Oo(i)) : e);
            if (It(i)) return r < 1 ? n : i;
            for (var a = [], s = n, l = i, u = Math.max(s ? s.length : 0, l.length), c = 0; c < u; ++c) {
                var h = t.getDimensionInfo(c);
                if (h && "ordinal" === h.type) a[c] = (r < 1 && s ? s : l)[c]; else {
                    var d = s && s[c] ? s[c] : 0, p = l[c], f = Ko(d, p, r);
                    a[c] = Mo(f, o ? Math.max(Oo(d), Oo(p)) : e)
                }
            }
            return a
        }

        var xa = ".", Sa = "___EC__COMPONENT__CONTAINER___", Aa = "___EC__EXTENDED_CLASS___";

        function ba(t) {
            var e = {main: "", sub: ""};
            if (t) {
                var n = t.split(xa);
                e.main = n[0] || "", e.sub = n[1] || ""
            }
            return e
        }

        function Ia(t, e) {
            t.$constructor = t, t.extend = function (t) {
                var e, n, i = this;
                return bt(n = i) && /^class\s/.test(Function.prototype.toString.call(n)) ? e = function (t) {
                    function e() {
                        return t.apply(this, arguments) || this
                    }

                    return G(e, t), e
                }(i) : (e = function () {
                    (t.$constructor || i).apply(this, arguments)
                }, function (t, e) {
                    var n = t.prototype;

                    function i() {
                    }

                    for (var r in i.prototype = e.prototype, t.prototype = new i, n) n.hasOwnProperty(r) && (t.prototype[r] = n[r]);
                    t.prototype.constructor = t, t.superClass = e
                }(e, this)), ht(e.prototype, t), e[Aa] = !0, e.extend = this.extend, e.superCall = Da, e.superApply = wa, e.superClass = i, e
            }
        }

        function Ea(t, e) {
            t.extend = e.extend
        }

        var Ca = Math.round(10 * Math.random());

        function Da(t, e) {
            for (var n = [], i = 2; i < arguments.length; i++) n[i - 2] = arguments[i];
            return this.superClass.prototype[e].apply(t, n)
        }

        function wa(t, e, n) {
            return this.superClass.prototype[e].apply(t, n)
        }

        function Ma(t) {
            var e = {};
            t.registerClass = function (t) {
                var n, i = t.type || t.prototype.type;
                if (i) {
                    Ft(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n = i), 'componentType "' + n + '" illegal'), t.prototype.type = i;
                    var r = ba(i);
                    if (r.sub) {
                        if (r.sub !== Sa) {
                            var o = function (t) {
                                var n = e[t.main];
                                n && n[Sa] || ((n = e[t.main] = {})[Sa] = !0);
                                return n
                            }(r);
                            o[r.sub] = t
                        }
                    } else e[r.main] = t
                }
                return t
            }, t.getClass = function (t, n, i) {
                var r = e[t];
                if (r && r[Sa] && (r = n ? r[n] : null), i && !r) throw new Error(n ? "Component " + t + "." + (n || "") + " is used but not imported." : t + ".type should be specified.");
                return r
            }, t.getClassesByMainType = function (t) {
                var n = ba(t), i = [], r = e[n.main];
                return r && r[Sa] ? mt(r, (function (t, e) {
                    e !== Sa && i.push(t)
                })) : i.push(r), i
            }, t.hasClass = function (t) {
                var n = ba(t);
                return !!e[n.main]
            }, t.getAllClassMainTypes = function () {
                var t = [];
                return mt(e, (function (e, n) {
                    t.push(n)
                })), t
            }, t.hasSubTypes = function (t) {
                var n = ba(t), i = e[n.main];
                return i && i[Sa]
            }
        }

        function Na(t, e) {
            for (var n = 0; n < t.length; n++) t[n][1] || (t[n][1] = t[n][0]);
            return e = e || !1, function (n, i, r) {
                for (var o = {}, a = 0; a < t.length; a++) {
                    var s = t[a][1];
                    if (!(i && pt(i, s) >= 0 || r && pt(r, s) < 0)) {
                        var l = n.getShallow(s, e);
                        null != l && (o[t[a][0]] = l)
                    }
                }
                return o
            }
        }

        var Oa = Na([["fill", "color"], ["shadowBlur"], ["shadowOffsetX"], ["shadowOffsetY"], ["opacity"], ["shadowColor"]]),
            La = function () {
                function t() {
                }

                return t.prototype.getAreaStyle = function (t, e) {
                    return Oa(this, t, e)
                }, t
            }(), Ra = new yi(50);

        function ka(t) {
            if ("string" == typeof t) {
                var e = Ra.get(t);
                return e && e.image
            }
            return t
        }

        function Pa(t, e, n, i, r) {
            if (t) {
                if ("string" == typeof t) {
                    if (e && e.__zrImageSrc === t || !n) return e;
                    var o = Ra.get(t), a = {hostEl: n, cb: i, cbPayload: r};
                    return o ? !Ba(e = o.image) && o.pending.push(a) : ((e = j.loadImage(t, Ga, Ga)).__zrImageSrc = t, Ra.put(t, e.__cachedImgObj = {
                        image: e,
                        pending: [a]
                    })), e
                }
                return t
            }
            return e
        }

        function Ga() {
            var t = this.__cachedImgObj;
            this.onload = this.onerror = this.__cachedImgObj = null;
            for (var e = 0; e < t.pending.length; e++) {
                var n = t.pending[e], i = n.cb;
                i && i(this, n.cbPayload), n.hostEl.dirty()
            }
            t.pending.length = 0
        }

        function Ba(t) {
            return t && t.width && t.height
        }

        var Fa = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;

        function Ha(t, e, n, i, r) {
            if (!e) return "";
            var o = (t + "").split("\n");
            r = Ua(e, n, i, r);
            for (var a = 0, s = o.length; a < s; a++) o[a] = Va(o[a], r);
            return o.join("\n")
        }

        function Ua(t, e, n, i) {
            var r = ht({}, i = i || {});
            r.font = e, n = kt(n, "..."), r.maxIterations = kt(i.maxIterations, 2);
            var o = r.minChar = kt(i.minChar, 0);
            r.cnCharWidth = to("国", e);
            var a = r.ascCharWidth = to("a", e);
            r.placeholder = kt(i.placeholder, "");
            for (var s = t = Math.max(0, t - 1), l = 0; l < o && s >= a; l++) s -= a;
            var u = to(n, e);
            return u > s && (n = "", u = 0), s = t - u, r.ellipsis = n, r.ellipsisWidth = u, r.contentWidth = s, r.containerWidth = t, r
        }

        function Va(t, e) {
            var n = e.containerWidth, i = e.font, r = e.contentWidth;
            if (!n) return "";
            var o = to(t, i);
            if (o <= n) return t;
            for (var a = 0; ; a++) {
                if (o <= r || a >= e.maxIterations) {
                    t += e.ellipsis;
                    break
                }
                var s = 0 === a ? za(t, r, e.ascCharWidth, e.cnCharWidth) : o > 0 ? Math.floor(t.length * r / o) : 0;
                o = to(t = t.substr(0, s), i)
            }
            return "" === t && (t = e.placeholder), t
        }

        function za(t, e, n, i) {
            for (var r = 0, o = 0, a = t.length; o < a && r < e; o++) {
                var s = t.charCodeAt(o);
                r += 0 <= s && s <= 127 ? n : i
            }
            return o
        }

        var Wa = function () {
        }, Ya = function (t) {
            this.tokens = [], t && (this.tokens = t)
        }, qa = function () {
            this.width = 0, this.height = 0, this.contentWidth = 0, this.contentHeight = 0, this.outerWidth = 0, this.outerHeight = 0, this.lines = []
        };

        function ja(t, e, n, i, r) {
            var o, a, s = "" === e, l = r && n.rich[r] || {}, u = t.lines, c = l.font || n.font, h = !1;
            if (i) {
                var d = l.padding, p = d ? d[1] + d[3] : 0;
                if (null != l.width && "auto" !== l.width) {
                    var f = ao(l.width, i.width) + p;
                    u.length > 0 && f + i.accumWidth > i.width && (o = e.split("\n"), h = !0), i.accumWidth = f
                } else {
                    var g = Ka(e, c, i.width, i.breakAll, i.accumWidth);
                    i.accumWidth = g.accumWidth + p, a = g.linesWidths, o = g.lines
                }
            } else o = e.split("\n");
            for (var m = 0; m < o.length; m++) {
                var y = o[m], v = new Wa;
                if (v.styleName = r, v.text = y, v.isLineHolder = !y && !s, "number" == typeof l.width ? v.width = l.width : v.width = a ? a[m] : to(y, c), m || h) u.push(new Ya([v])); else {
                    var _ = (u[u.length - 1] || (u[0] = new Ya)).tokens, T = _.length;
                    1 === T && _[0].isLineHolder ? _[0] = v : (y || !T || s) && _.push(v)
                }
            }
        }

        var Xa = vt(",&?/;] ".split(""), (function (t, e) {
            return t[e] = !0, t
        }), {});

        function Za(t) {
            return !function (t) {
                var e = t.charCodeAt(0);
                return e >= 32 && e <= 591 || e >= 880 && e <= 4351 || e >= 4608 && e <= 5119 || e >= 7680 && e <= 8303
            }(t) || !!Xa[t]
        }

        function Ka(t, e, n, i, r) {
            for (var o = [], a = [], s = "", l = "", u = 0, c = 0, h = 0; h < t.length; h++) {
                var d = t.charAt(h);
                if ("\n" !== d) {
                    var p = to(d, e), f = !i && !Za(d);
                    (o.length ? c + p > n : r + c + p > n) ? c ? (s || l) && (f ? (s || (s = l, l = "", c = u = 0), o.push(s), a.push(c - u), l += d, s = "", c = u += p) : (l && (s += l, l = "", u = 0), o.push(s), a.push(c), s = d, c = p)) : f ? (o.push(l), a.push(u), l = d, u = p) : (o.push(d), a.push(p)) : (c += p, f ? (l += d, u += p) : (l && (s += l, l = "", u = 0), s += d))
                } else l && (s += l, c += u), o.push(s), a.push(c), s = "", l = "", u = 0, c = 0
            }
            return o.length || s || (s = t, l = "", u = 0), l && (s += l), s && (o.push(s), a.push(c)), 1 === o.length && (c += r), {
                accumWidth: c,
                lines: o,
                linesWidths: a
            }
        }

        var Qa = "__zr_style_" + Math.round(10 * Math.random()), $a = {
            shadowBlur: 0,
            shadowOffsetX: 0,
            shadowOffsetY: 0,
            shadowColor: "#000",
            opacity: 1,
            blend: "source-over"
        }, Ja = {style: {shadowBlur: !0, shadowOffsetX: !0, shadowOffsetY: !0, shadowColor: !0, opacity: !0}};
        $a[Qa] = !0;
        var ts = ["z", "z2", "invisible"], es = ["invisible"], ns = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            var n;
            return G(e, t), e.prototype._init = function (e) {
                for (var n = Tt(e), i = 0; i < n.length; i++) {
                    var r = n[i];
                    "style" === r ? this.useStyle(e[r]) : t.prototype.attrKV.call(this, r, e[r])
                }
                this.style || this.useStyle({})
            }, e.prototype.beforeBrush = function () {
            }, e.prototype.afterBrush = function () {
            }, e.prototype.innerBeforeBrush = function () {
            }, e.prototype.innerAfterBrush = function () {
            }, e.prototype.shouldBePainted = function (t, e, n, i) {
                var r = this.transform;
                if (this.ignore || this.invisible || 0 === this.style.opacity || this.culling && function (t, e, n) {
                    is.copy(t.getBoundingRect()), t.transform && is.applyTransform(t.transform);
                    return rs.width = e, rs.height = n, !is.intersect(rs)
                }(this, t, e) || r && !r[0] && !r[3]) return !1;
                if (n && this.__clipPaths) for (var o = 0; o < this.__clipPaths.length; ++o) if (this.__clipPaths[o].isZeroArea()) return !1;
                if (i && this.parent) for (var a = this.parent; a;) {
                    if (a.ignore) return !1;
                    a = a.parent
                }
                return !0
            }, e.prototype.contain = function (t, e) {
                return this.rectContain(t, e)
            }, e.prototype.traverse = function (t, e) {
                t.call(e, this)
            }, e.prototype.rectContain = function (t, e) {
                var n = this.transformCoordToLocal(t, e);
                return this.getBoundingRect().contain(n[0], n[1])
            }, e.prototype.getPaintRect = function () {
                var t = this._paintRect;
                if (!this._paintRect || this.__dirty) {
                    var e = this.transform, n = this.getBoundingRect(), i = this.style, r = i.shadowBlur || 0,
                        o = i.shadowOffsetX || 0, a = i.shadowOffsetY || 0;
                    t = this._paintRect || (this._paintRect = new hn(0, 0, 0, 0)), e ? hn.applyTransform(t, n, e) : t.copy(n), (r || o || a) && (t.width += 2 * r + Math.abs(o), t.height += 2 * r + Math.abs(a), t.x = Math.min(t.x, t.x + o - r), t.y = Math.min(t.y, t.y + a - r));
                    var s = this.dirtyRectTolerance;
                    t.isZero() || (t.x = Math.floor(t.x - s), t.y = Math.floor(t.y - s), t.width = Math.ceil(t.width + 1 + 2 * s), t.height = Math.ceil(t.height + 1 + 2 * s))
                }
                return t
            }, e.prototype.setPrevPaintRect = function (t) {
                t ? (this._prevPaintRect = this._prevPaintRect || new hn(0, 0, 0, 0), this._prevPaintRect.copy(t)) : this._prevPaintRect = null
            }, e.prototype.getPrevPaintRect = function () {
                return this._prevPaintRect
            }, e.prototype.animateStyle = function (t) {
                return this.animate("style", t)
            }, e.prototype.updateDuringAnimation = function (t) {
                "style" === t ? this.dirtyStyle() : this.markRedraw()
            }, e.prototype.attrKV = function (e, n) {
                "style" !== e ? t.prototype.attrKV.call(this, e, n) : this.style ? this.setStyle(n) : this.useStyle(n)
            }, e.prototype.setStyle = function (t, e) {
                return "string" == typeof t ? this.style[t] = e : ht(this.style, t), this.dirtyStyle(), this
            }, e.prototype.dirtyStyle = function (t) {
                t || this.markRedraw(), this.__dirty |= 2, this._rect && (this._rect = null)
            }, e.prototype.dirty = function () {
                this.dirtyStyle()
            }, e.prototype.styleChanged = function () {
                return !!(2 & this.__dirty)
            }, e.prototype.styleUpdated = function () {
                this.__dirty &= -3
            }, e.prototype.createStyle = function (t) {
                return Zt($a, t)
            }, e.prototype.useStyle = function (t) {
                t[Qa] || (t = this.createStyle(t)), this.__inHover ? this.__hoverStyle = t : this.style = t, this.dirtyStyle()
            }, e.prototype.isStyleObject = function (t) {
                return t[Qa]
            }, e.prototype._innerSaveToNormal = function (e) {
                t.prototype._innerSaveToNormal.call(this, e);
                var n = this._normalState;
                e.style && !n.style && (n.style = this._mergeStyle(this.createStyle(), this.style)), this._savePrimaryToNormal(e, n, ts)
            }, e.prototype._applyStateObj = function (e, n, i, r, o, a) {
                t.prototype._applyStateObj.call(this, e, n, i, r, o, a);
                var s, l = !(n && r);
                if (n && n.style ? o ? r ? s = n.style : (s = this._mergeStyle(this.createStyle(), i.style), this._mergeStyle(s, n.style)) : (s = this._mergeStyle(this.createStyle(), r ? this.style : i.style), this._mergeStyle(s, n.style)) : l && (s = i.style), s) if (o) {
                    var u = this.style;
                    if (this.style = this.createStyle(l ? {} : u), l) for (var c = Tt(u), h = 0; h < c.length; h++) {
                        (p = c[h]) in s && (s[p] = s[p], this.style[p] = u[p])
                    }
                    var d = Tt(s);
                    for (h = 0; h < d.length; h++) {
                        var p = d[h];
                        this.style[p] = this.style[p]
                    }
                    this._transitionState(e, {style: s}, a, this.getAnimationStyleProps())
                } else this.useStyle(s);
                var f = this.__inHover ? es : ts;
                for (h = 0; h < f.length; h++) {
                    p = f[h];
                    n && null != n[p] ? this[p] = n[p] : l && null != i[p] && (this[p] = i[p])
                }
            }, e.prototype._mergeStates = function (e) {
                for (var n, i = t.prototype._mergeStates.call(this, e), r = 0; r < e.length; r++) {
                    var o = e[r];
                    o.style && (n = n || {}, this._mergeStyle(n, o.style))
                }
                return n && (i.style = n), i
            }, e.prototype._mergeStyle = function (t, e) {
                return ht(t, e), t
            }, e.prototype.getAnimationStyleProps = function () {
                return Ja
            }, e.initDefaultProps = ((n = e.prototype).type = "displayable", n.invisible = !1, n.z = 0, n.z2 = 0, n.zlevel = 0, n.culling = !1, n.cursor = "pointer", n.rectHover = !1, n.incremental = !1, n._rect = null, n.dirtyRectTolerance = 0, void (n.__dirty = 2 | Nn)), e
        }(_o), is = new hn(0, 0, 0, 0), rs = new hn(0, 0, 0, 0);
        const os = ns;
        var as = Math.min, ss = Math.max, ls = Math.sin, us = Math.cos, cs = 2 * Math.PI, hs = te(), ds = te(),
            ps = te();

        function fs(t, e, n) {
            if (0 !== t.length) {
                for (var i = t[0], r = i[0], o = i[0], a = i[1], s = i[1], l = 1; l < t.length; l++) i = t[l], r = as(r, i[0]), o = ss(o, i[0]), a = as(a, i[1]), s = ss(s, i[1]);
                e[0] = r, e[1] = a, n[0] = o, n[1] = s
            }
        }

        function gs(t, e, n, i, r, o) {
            r[0] = as(t, n), r[1] = as(e, i), o[0] = ss(t, n), o[1] = ss(e, i)
        }

        var ms = [], ys = [];

        function vs(t, e, n, i, r, o, a, s, l, u) {
            var c = ei, h = $n, d = c(t, n, r, a, ms);
            l[0] = 1 / 0, l[1] = 1 / 0, u[0] = -1 / 0, u[1] = -1 / 0;
            for (var p = 0; p < d; p++) {
                var f = h(t, n, r, a, ms[p]);
                l[0] = as(f, l[0]), u[0] = ss(f, u[0])
            }
            d = c(e, i, o, s, ys);
            for (p = 0; p < d; p++) {
                var g = h(e, i, o, s, ys[p]);
                l[1] = as(g, l[1]), u[1] = ss(g, u[1])
            }
            l[0] = as(t, l[0]), u[0] = ss(t, u[0]), l[0] = as(a, l[0]), u[0] = ss(a, u[0]), l[1] = as(e, l[1]), u[1] = ss(e, u[1]), l[1] = as(s, l[1]), u[1] = ss(s, u[1])
        }

        function _s(t, e, n, i, r, o, a, s) {
            var l = si, u = oi, c = ss(as(l(t, n, r), 1), 0), h = ss(as(l(e, i, o), 1), 0), d = u(t, n, r, c),
                p = u(e, i, o, h);
            a[0] = as(t, r, d), a[1] = as(e, o, p), s[0] = ss(t, r, d), s[1] = ss(e, o, p)
        }

        function Ts(t, e, n, i, r, o, a, s, l) {
            var u = me, c = ye, h = Math.abs(r - o);
            if (h % cs < 1e-4 && h > 1e-4) return s[0] = t - n, s[1] = e - i, l[0] = t + n, void (l[1] = e + i);
            if (hs[0] = us(r) * n + t, hs[1] = ls(r) * i + e, ds[0] = us(o) * n + t, ds[1] = ls(o) * i + e, u(s, hs, ds), c(l, hs, ds), (r %= cs) < 0 && (r += cs), (o %= cs) < 0 && (o += cs), r > o && !a ? o += cs : r < o && a && (r += cs), a) {
                var d = o;
                o = r, r = d
            }
            for (var p = 0; p < o; p += Math.PI / 2) p > r && (ps[0] = us(p) * n + t, ps[1] = ls(p) * i + e, u(s, ps, s), c(l, ps, l))
        }

        var xs = {M: 1, L: 2, C: 3, Q: 4, A: 5, Z: 6, R: 7}, Ss = [], As = [], bs = [], Is = [], Es = [], Cs = [],
            Ds = Math.min, ws = Math.max, Ms = Math.cos, Ns = Math.sin, Os = Math.abs, Ls = Math.PI, Rs = 2 * Ls,
            ks = "undefined" != typeof Float32Array, Ps = [];

        function Gs(t) {
            return Math.round(t / Ls * 1e8) / 1e8 % 2 * Ls
        }

        function Bs(t, e) {
            var n = Gs(t[0]);
            n < 0 && (n += Rs);
            var i = n - t[0], r = t[1];
            r += i, !e && r - n >= Rs ? r = n + Rs : e && n - r >= Rs ? r = n - Rs : !e && n > r ? r = n + (Rs - Gs(n - r)) : e && n < r && (r = n - (Rs - Gs(r - n))), t[0] = n, t[1] = r
        }

        var Fs = function () {
            function t(t) {
                this.dpr = 1, this._xi = 0, this._yi = 0, this._x0 = 0, this._y0 = 0, this._len = 0, t && (this._saveData = !1), this._saveData && (this.data = [])
            }

            return t.prototype.increaseVersion = function () {
                this._version++
            }, t.prototype.getVersion = function () {
                return this._version
            }, t.prototype.setScale = function (t, e, n) {
                (n = n || 0) > 0 && (this._ux = Os(n / Fr / t) || 0, this._uy = Os(n / Fr / e) || 0)
            }, t.prototype.setDPR = function (t) {
                this.dpr = t
            }, t.prototype.setContext = function (t) {
                this._ctx = t
            }, t.prototype.getContext = function () {
                return this._ctx
            }, t.prototype.beginPath = function () {
                return this._ctx && this._ctx.beginPath(), this.reset(), this
            }, t.prototype.reset = function () {
                this._saveData && (this._len = 0), this._pathSegLen && (this._pathSegLen = null, this._pathLen = 0), this._version++
            }, t.prototype.moveTo = function (t, e) {
                return this._drawPendingPt(), this.addData(xs.M, t, e), this._ctx && this._ctx.moveTo(t, e), this._x0 = t, this._y0 = e, this._xi = t, this._yi = e, this
            }, t.prototype.lineTo = function (t, e) {
                var n = Os(t - this._xi), i = Os(e - this._yi), r = n > this._ux || i > this._uy;
                if (this.addData(xs.L, t, e), this._ctx && r && this._ctx.lineTo(t, e), r) this._xi = t, this._yi = e, this._pendingPtDist = 0; else {
                    var o = n * n + i * i;
                    o > this._pendingPtDist && (this._pendingPtX = t, this._pendingPtY = e, this._pendingPtDist = o)
                }
                return this
            }, t.prototype.bezierCurveTo = function (t, e, n, i, r, o) {
                return this._drawPendingPt(), this.addData(xs.C, t, e, n, i, r, o), this._ctx && this._ctx.bezierCurveTo(t, e, n, i, r, o), this._xi = r, this._yi = o, this
            }, t.prototype.quadraticCurveTo = function (t, e, n, i) {
                return this._drawPendingPt(), this.addData(xs.Q, t, e, n, i), this._ctx && this._ctx.quadraticCurveTo(t, e, n, i), this._xi = n, this._yi = i, this
            }, t.prototype.arc = function (t, e, n, i, r, o) {
                this._drawPendingPt(), Ps[0] = i, Ps[1] = r, Bs(Ps, o), i = Ps[0];
                var a = (r = Ps[1]) - i;
                return this.addData(xs.A, t, e, n, n, i, a, 0, o ? 0 : 1), this._ctx && this._ctx.arc(t, e, n, i, r, o), this._xi = Ms(r) * n + t, this._yi = Ns(r) * n + e, this
            }, t.prototype.arcTo = function (t, e, n, i, r) {
                return this._drawPendingPt(), this._ctx && this._ctx.arcTo(t, e, n, i, r), this
            }, t.prototype.rect = function (t, e, n, i) {
                return this._drawPendingPt(), this._ctx && this._ctx.rect(t, e, n, i), this.addData(xs.R, t, e, n, i), this
            }, t.prototype.closePath = function () {
                this._drawPendingPt(), this.addData(xs.Z);
                var t = this._ctx, e = this._x0, n = this._y0;
                return t && t.closePath(), this._xi = e, this._yi = n, this
            }, t.prototype.fill = function (t) {
                t && t.fill(), this.toStatic()
            }, t.prototype.stroke = function (t) {
                t && t.stroke(), this.toStatic()
            }, t.prototype.len = function () {
                return this._len
            }, t.prototype.setData = function (t) {
                var e = t.length;
                this.data && this.data.length === e || !ks || (this.data = new Float32Array(e));
                for (var n = 0; n < e; n++) this.data[n] = t[n];
                this._len = e
            }, t.prototype.appendPath = function (t) {
                t instanceof Array || (t = [t]);
                for (var e = t.length, n = 0, i = this._len, r = 0; r < e; r++) n += t[r].len();
                ks && this.data instanceof Float32Array && (this.data = new Float32Array(i + n));
                for (r = 0; r < e; r++) for (var o = t[r].data, a = 0; a < o.length; a++) this.data[i++] = o[a];
                this._len = i
            }, t.prototype.addData = function (t, e, n, i, r, o, a, s, l) {
                if (this._saveData) {
                    var u = this.data;
                    this._len + arguments.length > u.length && (this._expandData(), u = this.data);
                    for (var c = 0; c < arguments.length; c++) u[this._len++] = arguments[c]
                }
            }, t.prototype._drawPendingPt = function () {
                this._pendingPtDist > 0 && (this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY), this._pendingPtDist = 0)
            }, t.prototype._expandData = function () {
                if (!(this.data instanceof Array)) {
                    for (var t = [], e = 0; e < this._len; e++) t[e] = this.data[e];
                    this.data = t
                }
            }, t.prototype.toStatic = function () {
                if (this._saveData) {
                    this._drawPendingPt();
                    var t = this.data;
                    t instanceof Array && (t.length = this._len, ks && this._len > 11 && (this.data = new Float32Array(t)))
                }
            }, t.prototype.getBoundingRect = function () {
                bs[0] = bs[1] = Es[0] = Es[1] = Number.MAX_VALUE, Is[0] = Is[1] = Cs[0] = Cs[1] = -Number.MAX_VALUE;
                var t, e = this.data, n = 0, i = 0, r = 0, o = 0;
                for (t = 0; t < this._len;) {
                    var a = e[t++], s = 1 === t;
                    switch (s && (r = n = e[t], o = i = e[t + 1]), a) {
                        case xs.M:
                            n = r = e[t++], i = o = e[t++], Es[0] = r, Es[1] = o, Cs[0] = r, Cs[1] = o;
                            break;
                        case xs.L:
                            gs(n, i, e[t], e[t + 1], Es, Cs), n = e[t++], i = e[t++];
                            break;
                        case xs.C:
                            vs(n, i, e[t++], e[t++], e[t++], e[t++], e[t], e[t + 1], Es, Cs), n = e[t++], i = e[t++];
                            break;
                        case xs.Q:
                            _s(n, i, e[t++], e[t++], e[t], e[t + 1], Es, Cs), n = e[t++], i = e[t++];
                            break;
                        case xs.A:
                            var l = e[t++], u = e[t++], c = e[t++], h = e[t++], d = e[t++], p = e[t++] + d;
                            t += 1;
                            var f = !e[t++];
                            s && (r = Ms(d) * c + l, o = Ns(d) * h + u), Ts(l, u, c, h, d, p, f, Es, Cs), n = Ms(p) * c + l, i = Ns(p) * h + u;
                            break;
                        case xs.R:
                            gs(r = n = e[t++], o = i = e[t++], r + e[t++], o + e[t++], Es, Cs);
                            break;
                        case xs.Z:
                            n = r, i = o
                    }
                    me(bs, bs, Es), ye(Is, Is, Cs)
                }
                return 0 === t && (bs[0] = bs[1] = Is[0] = Is[1] = 0), new hn(bs[0], bs[1], Is[0] - bs[0], Is[1] - bs[1])
            }, t.prototype._calculateLength = function () {
                var t = this.data, e = this._len, n = this._ux, i = this._uy, r = 0, o = 0, a = 0, s = 0;
                this._pathSegLen || (this._pathSegLen = []);
                for (var l = this._pathSegLen, u = 0, c = 0, h = 0; h < e;) {
                    var d = t[h++], p = 1 === h;
                    p && (a = r = t[h], s = o = t[h + 1]);
                    var f = -1;
                    switch (d) {
                        case xs.M:
                            r = a = t[h++], o = s = t[h++];
                            break;
                        case xs.L:
                            var g = t[h++], m = (_ = t[h++]) - o;
                            (Os(w = g - r) > n || Os(m) > i || h === e - 1) && (f = Math.sqrt(w * w + m * m), r = g, o = _);
                            break;
                        case xs.C:
                            var y = t[h++], v = t[h++], _ = (g = t[h++], t[h++]), T = t[h++], x = t[h++];
                            f = ri(r, o, y, v, g, _, T, x, 10), r = T, o = x;
                            break;
                        case xs.Q:
                            f = ci(r, o, y = t[h++], v = t[h++], g = t[h++], _ = t[h++], 10), r = g, o = _;
                            break;
                        case xs.A:
                            var S = t[h++], A = t[h++], b = t[h++], I = t[h++], E = t[h++], C = t[h++], D = C + E;
                            h += 1;
                            t[h++];
                            p && (a = Ms(E) * b + S, s = Ns(E) * I + A), f = ws(b, I) * Ds(Rs, Math.abs(C)), r = Ms(D) * b + S, o = Ns(D) * I + A;
                            break;
                        case xs.R:
                            a = r = t[h++], s = o = t[h++], f = 2 * t[h++] + 2 * t[h++];
                            break;
                        case xs.Z:
                            var w = a - r;
                            m = s - o;
                            f = Math.sqrt(w * w + m * m), r = a, o = s
                    }
                    f >= 0 && (l[c++] = f, u += f)
                }
                return this._pathLen = u, u
            }, t.prototype.rebuildPath = function (t, e) {
                var n, i, r, o, a, s, l, u, c, h, d = this.data, p = this._ux, f = this._uy, g = this._len, m = e < 1,
                    y = 0, v = 0, _ = 0;
                if (!m || (this._pathSegLen || this._calculateLength(), l = this._pathSegLen, u = e * this._pathLen)) t:for (var T = 0; T < g;) {
                    var x = d[T++], S = 1 === T;
                    switch (S && (n = r = d[T], i = o = d[T + 1]), x !== xs.L && _ > 0 && (t.lineTo(c, h), _ = 0), x) {
                        case xs.M:
                            n = r = d[T++], i = o = d[T++], t.moveTo(r, o);
                            break;
                        case xs.L:
                            a = d[T++], s = d[T++];
                            var A = Os(a - r), b = Os(s - o);
                            if (A > p || b > f) {
                                if (m) {
                                    if (y + (X = l[v++]) > u) {
                                        var I = (u - y) / X;
                                        t.lineTo(r * (1 - I) + a * I, o * (1 - I) + s * I);
                                        break t
                                    }
                                    y += X
                                }
                                t.lineTo(a, s), r = a, o = s, _ = 0
                            } else {
                                var E = A * A + b * b;
                                E > _ && (c = a, h = s, _ = E)
                            }
                            break;
                        case xs.C:
                            var C = d[T++], D = d[T++], w = d[T++], M = d[T++], N = d[T++], O = d[T++];
                            if (m) {
                                if (y + (X = l[v++]) > u) {
                                    ni(r, C, w, N, I = (u - y) / X, Ss), ni(o, D, M, O, I, As), t.bezierCurveTo(Ss[1], As[1], Ss[2], As[2], Ss[3], As[3]);
                                    break t
                                }
                                y += X
                            }
                            t.bezierCurveTo(C, D, w, M, N, O), r = N, o = O;
                            break;
                        case xs.Q:
                            C = d[T++], D = d[T++], w = d[T++], M = d[T++];
                            if (m) {
                                if (y + (X = l[v++]) > u) {
                                    li(r, C, w, I = (u - y) / X, Ss), li(o, D, M, I, As), t.quadraticCurveTo(Ss[1], As[1], Ss[2], As[2]);
                                    break t
                                }
                                y += X
                            }
                            t.quadraticCurveTo(C, D, w, M), r = w, o = M;
                            break;
                        case xs.A:
                            var L = d[T++], R = d[T++], k = d[T++], P = d[T++], G = d[T++], B = d[T++], F = d[T++],
                                H = !d[T++], U = k > P ? k : P, V = Os(k - P) > .001, z = G + B, W = !1;
                            if (m) y + (X = l[v++]) > u && (z = G + B * (u - y) / X, W = !0), y += X;
                            if (V && t.ellipse ? t.ellipse(L, R, k, P, F, G, z, H) : t.arc(L, R, U, G, z, H), W) break t;
                            S && (n = Ms(G) * k + L, i = Ns(G) * P + R), r = Ms(z) * k + L, o = Ns(z) * P + R;
                            break;
                        case xs.R:
                            n = r = d[T], i = o = d[T + 1], a = d[T++], s = d[T++];
                            var Y = d[T++], q = d[T++];
                            if (m) {
                                if (y + (X = l[v++]) > u) {
                                    var j = u - y;
                                    t.moveTo(a, s), t.lineTo(a + Ds(j, Y), s), (j -= Y) > 0 && t.lineTo(a + Y, s + Ds(j, q)), (j -= q) > 0 && t.lineTo(a + ws(Y - j, 0), s + q), (j -= Y) > 0 && t.lineTo(a, s + ws(q - j, 0));
                                    break t
                                }
                                y += X
                            }
                            t.rect(a, s, Y, q);
                            break;
                        case xs.Z:
                            if (m) {
                                var X;
                                if (y + (X = l[v++]) > u) {
                                    I = (u - y) / X;
                                    t.lineTo(r * (1 - I) + n * I, o * (1 - I) + i * I);
                                    break t
                                }
                                y += X
                            }
                            t.closePath(), r = n, o = i
                    }
                }
            }, t.prototype.clone = function () {
                var e = new t, n = this.data;
                return e.data = n.slice ? n.slice() : Array.prototype.slice.call(n), e._len = this._len, e
            }, t.CMD = xs, t.initDefaultProps = function () {
                var e = t.prototype;
                e._saveData = !0, e._ux = 0, e._uy = 0, e._pendingPtDist = 0, e._version = 0
            }(), t
        }();
        const Hs = Fs;

        function Us(t, e, n, i, r, o, a) {
            if (0 === r) return !1;
            var s = r, l = 0;
            if (a > e + s && a > i + s || a < e - s && a < i - s || o > t + s && o > n + s || o < t - s && o < n - s) return !1;
            if (t === n) return Math.abs(o - t) <= s / 2;
            var u = (l = (e - i) / (t - n)) * o - a + (t * i - n * e) / (t - n);
            return u * u / (l * l + 1) <= s / 2 * s / 2
        }

        function Vs(t, e, n, i, r, o, a, s, l, u, c) {
            if (0 === l) return !1;
            var h = l;
            return !(c > e + h && c > i + h && c > o + h && c > s + h || c < e - h && c < i - h && c < o - h && c < s - h || u > t + h && u > n + h && u > r + h && u > a + h || u < t - h && u < n - h && u < r - h && u < a - h) && ii(t, e, n, i, r, o, a, s, u, c, null) <= h / 2
        }

        function zs(t, e, n, i, r, o, a, s, l) {
            if (0 === a) return !1;
            var u = a;
            return !(l > e + u && l > i + u && l > o + u || l < e - u && l < i - u && l < o - u || s > t + u && s > n + u && s > r + u || s < t - u && s < n - u && s < r - u) && ui(t, e, n, i, r, o, s, l, null) <= u / 2
        }

        var Ws = 2 * Math.PI;

        function Ys(t) {
            return (t %= Ws) < 0 && (t += Ws), t
        }

        var qs = 2 * Math.PI;

        function js(t, e, n, i, r, o, a, s, l) {
            if (0 === a) return !1;
            var u = a;
            s -= t, l -= e;
            var c = Math.sqrt(s * s + l * l);
            if (c - u > n || c + u < n) return !1;
            if (Math.abs(i - r) % qs < 1e-4) return !0;
            if (o) {
                var h = i;
                i = Ys(r), r = Ys(h)
            } else i = Ys(i), r = Ys(r);
            i > r && (r += qs);
            var d = Math.atan2(l, s);
            return d < 0 && (d += qs), d >= i && d <= r || d + qs >= i && d + qs <= r
        }

        function Xs(t, e, n, i, r, o) {
            if (o > e && o > i || o < e && o < i) return 0;
            if (i === e) return 0;
            var a = (o - e) / (i - e), s = i < e ? 1 : -1;
            1 !== a && 0 !== a || (s = i < e ? .5 : -.5);
            var l = a * (n - t) + t;
            return l === r ? 1 / 0 : l > r ? s : 0
        }

        var Zs = Hs.CMD, Ks = 2 * Math.PI, Qs = 1e-4;
        var $s = [-1, -1, -1], Js = [-1, -1];

        function tl(t, e, n, i, r, o, a, s, l, u) {
            if (u > e && u > i && u > o && u > s || u < e && u < i && u < o && u < s) return 0;
            var c, h = ti(e, i, o, s, u, $s);
            if (0 === h) return 0;
            for (var d = 0, p = -1, f = void 0, g = void 0, m = 0; m < h; m++) {
                var y = $s[m], v = 0 === y || 1 === y ? .5 : 1;
                $n(t, n, r, a, y) < l || (p < 0 && (p = ei(e, i, o, s, Js), Js[1] < Js[0] && p > 1 && (c = void 0, c = Js[0], Js[0] = Js[1], Js[1] = c), f = $n(e, i, o, s, Js[0]), p > 1 && (g = $n(e, i, o, s, Js[1]))), 2 === p ? y < Js[0] ? d += f < e ? v : -v : y < Js[1] ? d += g < f ? v : -v : d += s < g ? v : -v : y < Js[0] ? d += f < e ? v : -v : d += s < f ? v : -v)
            }
            return d
        }

        function el(t, e, n, i, r, o, a, s) {
            if (s > e && s > i && s > o || s < e && s < i && s < o) return 0;
            var l = function (t, e, n, i, r) {
                var o = t - 2 * e + n, a = 2 * (e - t), s = t - i, l = 0;
                if (Kn(o)) Qn(a) && (c = -s / a) >= 0 && c <= 1 && (r[l++] = c); else {
                    var u = a * a - 4 * o * s;
                    if (Kn(u)) (c = -a / (2 * o)) >= 0 && c <= 1 && (r[l++] = c); else if (u > 0) {
                        var c, h = Vn(u), d = (-a - h) / (2 * o);
                        (c = (-a + h) / (2 * o)) >= 0 && c <= 1 && (r[l++] = c), d >= 0 && d <= 1 && (r[l++] = d)
                    }
                }
                return l
            }(e, i, o, s, $s);
            if (0 === l) return 0;
            var u = si(e, i, o);
            if (u >= 0 && u <= 1) {
                for (var c = 0, h = oi(e, i, o, u), d = 0; d < l; d++) {
                    var p = 0 === $s[d] || 1 === $s[d] ? .5 : 1;
                    oi(t, n, r, $s[d]) < a || ($s[d] < u ? c += h < e ? p : -p : c += o < h ? p : -p)
                }
                return c
            }
            p = 0 === $s[0] || 1 === $s[0] ? .5 : 1;
            return oi(t, n, r, $s[0]) < a ? 0 : o < e ? p : -p
        }

        function nl(t, e, n, i, r, o, a, s) {
            if ((s -= e) > n || s < -n) return 0;
            var l = Math.sqrt(n * n - s * s);
            $s[0] = -l, $s[1] = l;
            var u = Math.abs(i - r);
            if (u < 1e-4) return 0;
            if (u >= Ks - 1e-4) {
                i = 0, r = Ks;
                var c = o ? 1 : -1;
                return a >= $s[0] + t && a <= $s[1] + t ? c : 0
            }
            if (i > r) {
                var h = i;
                i = r, r = h
            }
            i < 0 && (i += Ks, r += Ks);
            for (var d = 0, p = 0; p < 2; p++) {
                var f = $s[p];
                if (f + t > a) {
                    var g = Math.atan2(s, f);
                    c = o ? 1 : -1;
                    g < 0 && (g = Ks + g), (g >= i && g <= r || g + Ks >= i && g + Ks <= r) && (g > Math.PI / 2 && g < 1.5 * Math.PI && (c = -c), d += c)
                }
            }
            return d
        }

        function il(t, e, n, i, r) {
            for (var o, a, s, l, u = t.data, c = t.len(), h = 0, d = 0, p = 0, f = 0, g = 0, m = 0; m < c;) {
                var y = u[m++], v = 1 === m;
                switch (y === Zs.M && m > 1 && (n || (h += Xs(d, p, f, g, i, r))), v && (f = d = u[m], g = p = u[m + 1]), y) {
                    case Zs.M:
                        d = f = u[m++], p = g = u[m++];
                        break;
                    case Zs.L:
                        if (n) {
                            if (Us(d, p, u[m], u[m + 1], e, i, r)) return !0
                        } else h += Xs(d, p, u[m], u[m + 1], i, r) || 0;
                        d = u[m++], p = u[m++];
                        break;
                    case Zs.C:
                        if (n) {
                            if (Vs(d, p, u[m++], u[m++], u[m++], u[m++], u[m], u[m + 1], e, i, r)) return !0
                        } else h += tl(d, p, u[m++], u[m++], u[m++], u[m++], u[m], u[m + 1], i, r) || 0;
                        d = u[m++], p = u[m++];
                        break;
                    case Zs.Q:
                        if (n) {
                            if (zs(d, p, u[m++], u[m++], u[m], u[m + 1], e, i, r)) return !0
                        } else h += el(d, p, u[m++], u[m++], u[m], u[m + 1], i, r) || 0;
                        d = u[m++], p = u[m++];
                        break;
                    case Zs.A:
                        var _ = u[m++], T = u[m++], x = u[m++], S = u[m++], A = u[m++], b = u[m++];
                        m += 1;
                        var I = !!(1 - u[m++]);
                        o = Math.cos(A) * x + _, a = Math.sin(A) * S + T, v ? (f = o, g = a) : h += Xs(d, p, o, a, i, r);
                        var E = (i - _) * S / x + _;
                        if (n) {
                            if (js(_, T, S, A, A + b, I, e, E, r)) return !0
                        } else h += nl(_, T, S, A, A + b, I, E, r);
                        d = Math.cos(A + b) * x + _, p = Math.sin(A + b) * S + T;
                        break;
                    case Zs.R:
                        if (f = d = u[m++], g = p = u[m++], o = f + u[m++], a = g + u[m++], n) {
                            if (Us(f, g, o, g, e, i, r) || Us(o, g, o, a, e, i, r) || Us(o, a, f, a, e, i, r) || Us(f, a, f, g, e, i, r)) return !0
                        } else h += Xs(o, g, o, a, i, r), h += Xs(f, a, f, g, i, r);
                        break;
                    case Zs.Z:
                        if (n) {
                            if (Us(d, p, f, g, e, i, r)) return !0
                        } else h += Xs(d, p, f, g, i, r);
                        d = f, p = g
                }
            }
            return n || (s = p, l = g, Math.abs(s - l) < Qs) || (h += Xs(d, p, f, g, i, r) || 0), 0 !== h
        }

        var rl = dt({
            fill: "#000",
            stroke: null,
            strokePercent: 1,
            fillOpacity: 1,
            strokeOpacity: 1,
            lineDashOffset: 0,
            lineWidth: 1,
            lineCap: "butt",
            miterLimit: 10,
            strokeNoScale: !1,
            strokeFirst: !1
        }, $a), ol = {
            style: dt({
                fill: !0,
                stroke: !0,
                strokePercent: !0,
                fillOpacity: !0,
                strokeOpacity: !0,
                lineDashOffset: !0,
                lineWidth: !0,
                miterLimit: !0
            }, Ja.style)
        }, al = Kr.concat(["invisible", "culling", "z", "z2", "zlevel", "parent"]), sl = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            var n;
            return G(e, t), e.prototype.update = function () {
                var n = this;
                t.prototype.update.call(this);
                var i = this.style;
                if (i.decal) {
                    var r = this._decalEl = this._decalEl || new e;
                    r.buildPath === e.prototype.buildPath && (r.buildPath = function (t) {
                        n.buildPath(t, n.shape)
                    }), r.silent = !0;
                    var o = r.style;
                    for (var a in i) o[a] !== i[a] && (o[a] = i[a]);
                    o.fill = i.fill ? i.decal : null, o.decal = null, o.shadowColor = null, i.strokeFirst && (o.stroke = null);
                    for (var s = 0; s < al.length; ++s) r[al[s]] = this[al[s]];
                    r.__dirty |= Nn
                } else this._decalEl && (this._decalEl = null)
            }, e.prototype.getDecalElement = function () {
                return this._decalEl
            }, e.prototype._init = function (e) {
                var n = Tt(e);
                this.shape = this.getDefaultShape();
                var i = this.getDefaultStyle();
                i && this.useStyle(i);
                for (var r = 0; r < n.length; r++) {
                    var o = n[r], a = e[o];
                    "style" === o ? this.style ? ht(this.style, a) : this.useStyle(a) : "shape" === o ? ht(this.shape, a) : t.prototype.attrKV.call(this, o, a)
                }
                this.style || this.useStyle({})
            }, e.prototype.getDefaultStyle = function () {
                return null
            }, e.prototype.getDefaultShape = function () {
                return {}
            }, e.prototype.canBeInsideText = function () {
                return this.hasFill()
            }, e.prototype.getInsideTextFill = function () {
                var t = this.style.fill;
                if ("none" !== t) {
                    if (It(t)) {
                        var e = Bi(t, 0);
                        return e > .5 ? Hr : e > .2 ? "#eee" : Ur
                    }
                    if (t) return Ur
                }
                return Hr
            }, e.prototype.getInsideTextStroke = function (t) {
                var e = this.style.fill;
                if (It(e)) {
                    var n = this.__zr;
                    if (!(!n || !n.isDarkMode()) === Bi(t, 0) < .4) return e
                }
            }, e.prototype.buildPath = function (t, e, n) {
            }, e.prototype.pathUpdated = function () {
                this.__dirty &= ~On
            }, e.prototype.getUpdatedPathProxy = function (t) {
                return !this.path && this.createPathProxy(), this.path.beginPath(), this.buildPath(this.path, this.shape, t), this.path
            }, e.prototype.createPathProxy = function () {
                this.path = new Hs(!1)
            }, e.prototype.hasStroke = function () {
                var t = this.style, e = t.stroke;
                return !(null == e || "none" === e || !(t.lineWidth > 0))
            }, e.prototype.hasFill = function () {
                var t = this.style.fill;
                return null != t && "none" !== t
            }, e.prototype.getBoundingRect = function () {
                var t = this._rect, e = this.style, n = !t;
                if (n) {
                    var i = !1;
                    this.path || (i = !0, this.createPathProxy());
                    var r = this.path;
                    (i || this.__dirty & On) && (r.beginPath(), this.buildPath(r, this.shape, !1), this.pathUpdated()), t = r.getBoundingRect()
                }
                if (this._rect = t, this.hasStroke() && this.path && this.path.len() > 0) {
                    var o = this._rectStroke || (this._rectStroke = t.clone());
                    if (this.__dirty || n) {
                        o.copy(t);
                        var a = e.strokeNoScale ? this.getLineScale() : 1, s = e.lineWidth;
                        if (!this.hasFill()) {
                            var l = this.strokeContainThreshold;
                            s = Math.max(s, null == l ? 4 : l)
                        }
                        a > 1e-10 && (o.width += s / a, o.height += s / a, o.x -= s / a / 2, o.y -= s / a / 2)
                    }
                    return o
                }
                return t
            }, e.prototype.contain = function (t, e) {
                var n = this.transformCoordToLocal(t, e), i = this.getBoundingRect(), r = this.style;
                if (t = n[0], e = n[1], i.contain(t, e)) {
                    var o = this.path;
                    if (this.hasStroke()) {
                        var a = r.lineWidth, s = r.strokeNoScale ? this.getLineScale() : 1;
                        if (s > 1e-10 && (this.hasFill() || (a = Math.max(a, this.strokeContainThreshold)), function (t, e, n, i) {
                            return il(t, e, !0, n, i)
                        }(o, a / s, t, e))) return !0
                    }
                    if (this.hasFill()) return function (t, e, n) {
                        return il(t, 0, !1, e, n)
                    }(o, t, e)
                }
                return !1
            }, e.prototype.dirtyShape = function () {
                this.__dirty |= On, this._rect && (this._rect = null), this._decalEl && this._decalEl.dirtyShape(), this.markRedraw()
            }, e.prototype.dirty = function () {
                this.dirtyStyle(), this.dirtyShape()
            }, e.prototype.animateShape = function (t) {
                return this.animate("shape", t)
            }, e.prototype.updateDuringAnimation = function (t) {
                "style" === t ? this.dirtyStyle() : "shape" === t ? this.dirtyShape() : this.markRedraw()
            }, e.prototype.attrKV = function (e, n) {
                "shape" === e ? this.setShape(n) : t.prototype.attrKV.call(this, e, n)
            }, e.prototype.setShape = function (t, e) {
                var n = this.shape;
                return n || (n = this.shape = {}), "string" == typeof t ? n[t] = e : ht(n, t), this.dirtyShape(), this
            }, e.prototype.shapeChanged = function () {
                return !!(this.__dirty & On)
            }, e.prototype.createStyle = function (t) {
                return Zt(rl, t)
            }, e.prototype._innerSaveToNormal = function (e) {
                t.prototype._innerSaveToNormal.call(this, e);
                var n = this._normalState;
                e.shape && !n.shape && (n.shape = ht({}, this.shape))
            }, e.prototype._applyStateObj = function (e, n, i, r, o, a) {
                t.prototype._applyStateObj.call(this, e, n, i, r, o, a);
                var s, l = !(n && r);
                if (n && n.shape ? o ? r ? s = n.shape : (s = ht({}, i.shape), ht(s, n.shape)) : (s = ht({}, r ? this.shape : i.shape), ht(s, n.shape)) : l && (s = i.shape), s) if (o) {
                    this.shape = ht({}, this.shape);
                    for (var u = {}, c = Tt(s), h = 0; h < c.length; h++) {
                        var d = c[h];
                        "object" == typeof s[d] ? this.shape[d] = s[d] : u[d] = s[d]
                    }
                    this._transitionState(e, {shape: u}, a)
                } else this.shape = s, this.dirtyShape()
            }, e.prototype._mergeStates = function (e) {
                for (var n, i = t.prototype._mergeStates.call(this, e), r = 0; r < e.length; r++) {
                    var o = e[r];
                    o.shape && (n = n || {}, this._mergeStyle(n, o.shape))
                }
                return n && (i.shape = n), i
            }, e.prototype.getAnimationStyleProps = function () {
                return ol
            }, e.prototype.isZeroArea = function () {
                return !1
            }, e.extend = function (t) {
                var n = function (e) {
                    function n(n) {
                        var i = e.call(this, n) || this;
                        return t.init && t.init.call(i, n), i
                    }

                    return G(n, e), n.prototype.getDefaultStyle = function () {
                        return lt(t.style)
                    }, n.prototype.getDefaultShape = function () {
                        return lt(t.shape)
                    }, n
                }(e);
                for (var i in t) "function" == typeof t[i] && (n.prototype[i] = t[i]);
                return n
            }, e.initDefaultProps = ((n = e.prototype).type = "path", n.strokeContainThreshold = 5, n.segmentIgnoreThreshold = 0, n.subPixelOptimize = !1, n.autoBatch = !1, void (n.__dirty = 2 | Nn | On)), e
        }(os);
        const ll = sl;
        var ul = dt({strokeFirst: !0, font: z, x: 0, y: 0, textAlign: "left", textBaseline: "top", miterLimit: 2}, rl),
            cl = function (t) {
                function e() {
                    return null !== t && t.apply(this, arguments) || this
                }

                return G(e, t), e.prototype.hasStroke = function () {
                    var t = this.style, e = t.stroke;
                    return null != e && "none" !== e && t.lineWidth > 0
                }, e.prototype.hasFill = function () {
                    var t = this.style.fill;
                    return null != t && "none" !== t
                }, e.prototype.createStyle = function (t) {
                    return Zt(ul, t)
                }, e.prototype.setBoundingRect = function (t) {
                    this._rect = t
                }, e.prototype.getBoundingRect = function () {
                    var t = this.style;
                    if (!this._rect) {
                        var e = t.text;
                        null != e ? e += "" : e = "";
                        var n = no(e, t.font, t.textAlign, t.textBaseline);
                        if (n.x += t.x || 0, n.y += t.y || 0, this.hasStroke()) {
                            var i = t.lineWidth;
                            n.x -= i / 2, n.y -= i / 2, n.width += i, n.height += i
                        }
                        this._rect = n
                    }
                    return this._rect
                }, e.initDefaultProps = void (e.prototype.dirtyRectTolerance = 10), e
            }(os);
        cl.prototype.type = "tspan";
        const hl = cl;
        var dl = dt({x: 0, y: 0}, $a),
            pl = {style: dt({x: !0, y: !0, width: !0, height: !0, sx: !0, sy: !0, sWidth: !0, sHeight: !0}, Ja.style)};
        var fl = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.createStyle = function (t) {
                return Zt(dl, t)
            }, e.prototype._getSize = function (t) {
                var e = this.style, n = e[t];
                if (null != n) return n;
                var i, r = (i = e.image) && "string" != typeof i && i.width && i.height ? e.image : this.__image;
                if (!r) return 0;
                var o = "width" === t ? "height" : "width", a = e[o];
                return null == a ? r[t] : r[t] / r[o] * a
            }, e.prototype.getWidth = function () {
                return this._getSize("width")
            }, e.prototype.getHeight = function () {
                return this._getSize("height")
            }, e.prototype.getAnimationStyleProps = function () {
                return pl
            }, e.prototype.getBoundingRect = function () {
                var t = this.style;
                return this._rect || (this._rect = new hn(t.x || 0, t.y || 0, this.getWidth(), this.getHeight())), this._rect
            }, e
        }(os);
        fl.prototype.type = "image";
        const gl = fl;
        var ml = Math.round;

        function yl(t, e, n) {
            if (e) {
                var i = e.x1, r = e.x2, o = e.y1, a = e.y2;
                t.x1 = i, t.x2 = r, t.y1 = o, t.y2 = a;
                var s = n && n.lineWidth;
                return s ? (ml(2 * i) === ml(2 * r) && (t.x1 = t.x2 = _l(i, s, !0)), ml(2 * o) === ml(2 * a) && (t.y1 = t.y2 = _l(o, s, !0)), t) : t
            }
        }

        function vl(t, e, n) {
            if (e) {
                var i = e.x, r = e.y, o = e.width, a = e.height;
                t.x = i, t.y = r, t.width = o, t.height = a;
                var s = n && n.lineWidth;
                return s ? (t.x = _l(i, s, !0), t.y = _l(r, s, !0), t.width = Math.max(_l(i + o, s, !1) - t.x, 0 === o ? 0 : 1), t.height = Math.max(_l(r + a, s, !1) - t.y, 0 === a ? 0 : 1), t) : t
            }
        }

        function _l(t, e, n) {
            if (!e) return t;
            var i = ml(2 * t);
            return (i + ml(e)) % 2 == 0 ? i / 2 : (i + (n ? 1 : -1)) / 2
        }

        var Tl = function () {
            this.x = 0, this.y = 0, this.width = 0, this.height = 0
        }, xl = {}, Sl = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new Tl
            }, e.prototype.buildPath = function (t, e) {
                var n, i, r, o;
                if (this.subPixelOptimize) {
                    var a = vl(xl, e, this.style);
                    n = a.x, i = a.y, r = a.width, o = a.height, a.r = e.r, e = a
                } else n = e.x, i = e.y, r = e.width, o = e.height;
                e.r ? function (t, e) {
                    var n, i, r, o, a, s = e.x, l = e.y, u = e.width, c = e.height, h = e.r;
                    u < 0 && (s += u, u = -u), c < 0 && (l += c, c = -c), "number" == typeof h ? n = i = r = o = h : h instanceof Array ? 1 === h.length ? n = i = r = o = h[0] : 2 === h.length ? (n = r = h[0], i = o = h[1]) : 3 === h.length ? (n = h[0], i = o = h[1], r = h[2]) : (n = h[0], i = h[1], r = h[2], o = h[3]) : n = i = r = o = 0, n + i > u && (n *= u / (a = n + i), i *= u / a), r + o > u && (r *= u / (a = r + o), o *= u / a), i + r > c && (i *= c / (a = i + r), r *= c / a), n + o > c && (n *= c / (a = n + o), o *= c / a), t.moveTo(s + n, l), t.lineTo(s + u - i, l), 0 !== i && t.arc(s + u - i, l + i, i, -Math.PI / 2, 0), t.lineTo(s + u, l + c - r), 0 !== r && t.arc(s + u - r, l + c - r, r, 0, Math.PI / 2), t.lineTo(s + o, l + c), 0 !== o && t.arc(s + o, l + c - o, o, Math.PI / 2, Math.PI), t.lineTo(s, l + n), 0 !== n && t.arc(s + n, l + n, n, Math.PI, 1.5 * Math.PI)
                }(t, e) : t.rect(n, i, r, o)
            }, e.prototype.isZeroArea = function () {
                return !this.shape.width || !this.shape.height
            }, e
        }(ll);
        Sl.prototype.type = "rect";
        const Al = Sl;
        var bl = {fill: "#000"}, Il = {
                style: dt({
                    fill: !0,
                    stroke: !0,
                    fillOpacity: !0,
                    strokeOpacity: !0,
                    lineWidth: !0,
                    fontSize: !0,
                    lineHeight: !0,
                    width: !0,
                    height: !0,
                    textShadowColor: !0,
                    textShadowBlur: !0,
                    textShadowOffsetX: !0,
                    textShadowOffsetY: !0,
                    backgroundColor: !0,
                    padding: !0,
                    borderColor: !0,
                    borderWidth: !0,
                    borderRadius: !0
                }, Ja.style)
            }, El = function (t) {
                function e(e) {
                    var n = t.call(this) || this;
                    return n.type = "text", n._children = [], n._defaultStyle = bl, n.attr(e), n
                }

                return G(e, t), e.prototype.childrenRef = function () {
                    return this._children
                }, e.prototype.update = function () {
                    t.prototype.update.call(this), this.styleChanged() && this._updateSubTexts();
                    for (var e = 0; e < this._children.length; e++) {
                        var n = this._children[e];
                        n.zlevel = this.zlevel, n.z = this.z, n.z2 = this.z2, n.culling = this.culling, n.cursor = this.cursor, n.invisible = this.invisible
                    }
                }, e.prototype.updateTransform = function () {
                    var e = this.innerTransformable;
                    e ? (e.updateTransform(), e.transform && (this.transform = e.transform)) : t.prototype.updateTransform.call(this)
                }, e.prototype.getLocalTransform = function (e) {
                    var n = this.innerTransformable;
                    return n ? n.getLocalTransform(e) : t.prototype.getLocalTransform.call(this, e)
                }, e.prototype.getComputedTransform = function () {
                    return this.__hostTarget && (this.__hostTarget.getComputedTransform(), this.__hostTarget.updateInnerText(!0)), t.prototype.getComputedTransform.call(this)
                }, e.prototype._updateSubTexts = function () {
                    var t;
                    this._childCursor = 0, Ll(t = this.style), mt(t.rich, Ll), this.style.rich ? this._updateRichTexts() : this._updatePlainTexts(), this._children.length = this._childCursor, this.styleUpdated()
                }, e.prototype.addSelfToZr = function (e) {
                    t.prototype.addSelfToZr.call(this, e);
                    for (var n = 0; n < this._children.length; n++) this._children[n].__zr = e
                }, e.prototype.removeSelfFromZr = function (e) {
                    t.prototype.removeSelfFromZr.call(this, e);
                    for (var n = 0; n < this._children.length; n++) this._children[n].__zr = null
                }, e.prototype.getBoundingRect = function () {
                    if (this.styleChanged() && this._updateSubTexts(), !this._rect) {
                        for (var t = new hn(0, 0, 0, 0), e = this._children, n = [], i = null, r = 0; r < e.length; r++) {
                            var o = e[r], a = o.getBoundingRect(), s = o.getLocalTransform(n);
                            s ? (t.copy(a), t.applyTransform(s), (i = i || t.clone()).union(t)) : (i = i || a.clone()).union(a)
                        }
                        this._rect = i || t
                    }
                    return this._rect
                }, e.prototype.setDefaultTextStyle = function (t) {
                    this._defaultStyle = t || bl
                }, e.prototype.setTextContent = function (t) {
                    0
                }, e.prototype._mergeStyle = function (t, e) {
                    if (!e) return t;
                    var n = e.rich, i = t.rich || n && {};
                    return ht(t, e), n && i ? (this._mergeRich(i, n), t.rich = i) : i && (t.rich = i), t
                }, e.prototype._mergeRich = function (t, e) {
                    for (var n = Tt(e), i = 0; i < n.length; i++) {
                        var r = n[i];
                        t[r] = t[r] || {}, ht(t[r], e[r])
                    }
                }, e.prototype.getAnimationStyleProps = function () {
                    return Il
                }, e.prototype._getOrCreateChild = function (t) {
                    var e = this._children[this._childCursor];
                    return e && e instanceof t || (e = new t), this._children[this._childCursor++] = e, e.__zr = this.__zr, e.parent = this, e
                }, e.prototype._updatePlainTexts = function () {
                    var t = this.style, e = t.font || z, n = t.padding, i = function (t, e) {
                            null != t && (t += "");
                            var n, i = e.overflow, r = e.padding, o = e.font, a = "truncate" === i, s = oo(o),
                                l = kt(e.lineHeight, s), u = !!e.backgroundColor, c = "truncate" === e.lineOverflow,
                                h = e.width,
                                d = (n = null == h || "break" !== i && "breakAll" !== i ? t ? t.split("\n") : [] : t ? Ka(t, e.font, h, "breakAll" === i, 0).lines : []).length * l,
                                p = kt(e.height, d);
                            if (d > p && c) {
                                var f = Math.floor(p / l);
                                n = n.slice(0, f)
                            }
                            if (t && a && null != h) for (var g = Ua(h, o, e.ellipsis, {
                                minChar: e.truncateMinChar,
                                placeholder: e.placeholder
                            }), m = 0; m < n.length; m++) n[m] = Va(n[m], g);
                            var y = p, v = 0;
                            for (m = 0; m < n.length; m++) v = Math.max(to(n[m], o), v);
                            null == h && (h = v);
                            var _ = v;
                            return r && (y += r[0] + r[2], _ += r[1] + r[3], h += r[1] + r[3]), u && (_ = h), {
                                lines: n,
                                height: p,
                                outerWidth: _,
                                outerHeight: y,
                                lineHeight: l,
                                calculatedLineHeight: s,
                                contentWidth: v,
                                contentHeight: d,
                                width: h
                            }
                        }(Gl(t), t), r = Bl(t), o = !!t.backgroundColor, a = i.outerHeight, s = i.outerWidth,
                        l = i.contentWidth, u = i.lines, c = i.lineHeight, h = this._defaultStyle, d = t.x || 0,
                        p = t.y || 0, f = t.align || h.align || "left", g = t.verticalAlign || h.verticalAlign || "top",
                        m = d, y = ro(p, i.contentHeight, g);
                    if (r || n) {
                        var v = io(d, s, f), _ = ro(p, a, g);
                        r && this._renderBackground(t, t, v, _, s, a)
                    }
                    y += c / 2, n && (m = Pl(d, f, n), "top" === g ? y += n[0] : "bottom" === g && (y -= n[2]));
                    for (var T = 0, x = !1, S = (kl("fill" in t ? t.fill : (x = !0, h.fill))), A = (Rl("stroke" in t ? t.stroke : o || h.autoStroke && !x ? null : (T = 2, h.stroke))), b = t.textShadowBlur > 0, I = null != t.width && ("truncate" === t.overflow || "break" === t.overflow || "breakAll" === t.overflow), E = i.calculatedLineHeight, C = 0; C < u.length; C++) {
                        var D = this._getOrCreateChild(hl), w = D.createStyle();
                        D.useStyle(w), w.text = u[C], w.x = m, w.y = y, f && (w.textAlign = f), w.textBaseline = "middle", w.opacity = t.opacity, w.strokeFirst = !0, b && (w.shadowBlur = t.textShadowBlur || 0, w.shadowColor = t.textShadowColor || "transparent", w.shadowOffsetX = t.textShadowOffsetX || 0, w.shadowOffsetY = t.textShadowOffsetY || 0), w.stroke = A, w.fill = S, A && (w.lineWidth = t.lineWidth || T, w.lineDash = t.lineDash, w.lineDashOffset = t.lineDashOffset || 0), w.font = e, Nl(w, t), y += c, I && D.setBoundingRect(new hn(io(w.x, t.width, w.textAlign), ro(w.y, E, w.textBaseline), l, E))
                    }
                }, e.prototype._updateRichTexts = function () {
                    var t = this.style, e = function (t, e) {
                            var n = new qa;
                            if (null != t && (t += ""), !t) return n;
                            for (var i, r = e.width, o = e.height, a = e.overflow, s = "break" !== a && "breakAll" !== a || null == r ? null : {
                                width: r,
                                accumWidth: 0,
                                breakAll: "breakAll" === a
                            }, l = Fa.lastIndex = 0; null != (i = Fa.exec(t));) {
                                var u = i.index;
                                u > l && ja(n, t.substring(l, u), e, s), ja(n, i[2], e, s, i[1]), l = Fa.lastIndex
                            }
                            l < t.length && ja(n, t.substring(l, t.length), e, s);
                            var c = [], h = 0, d = 0, p = e.padding, f = "truncate" === a, g = "truncate" === e.lineOverflow;

                            function m(t, e, n) {
                                t.width = e, t.lineHeight = n, h += n, d = Math.max(d, e)
                            }

                            t:for (var y = 0; y < n.lines.length; y++) {
                                for (var v = n.lines[y], _ = 0, T = 0, x = 0; x < v.tokens.length; x++) {
                                    var S = (O = v.tokens[x]).styleName && e.rich[O.styleName] || {},
                                        A = O.textPadding = S.padding, b = A ? A[1] + A[3] : 0, I = O.font = S.font || e.font;
                                    O.contentHeight = oo(I);
                                    var E = kt(S.height, O.contentHeight);
                                    if (O.innerHeight = E, A && (E += A[0] + A[2]), O.height = E, O.lineHeight = Pt(S.lineHeight, e.lineHeight, E), O.align = S && S.align || e.align, O.verticalAlign = S && S.verticalAlign || "middle", g && null != o && h + O.lineHeight > o) {
                                        x > 0 ? (v.tokens = v.tokens.slice(0, x), m(v, T, _), n.lines = n.lines.slice(0, y + 1)) : n.lines = n.lines.slice(0, y);
                                        break t
                                    }
                                    var C = S.width, D = null == C || "auto" === C;
                                    if ("string" == typeof C && "%" === C.charAt(C.length - 1)) O.percentWidth = C, c.push(O), O.contentWidth = to(O.text, I); else {
                                        if (D) {
                                            var w = S.backgroundColor, M = w && w.image;
                                            M && Ba(M = ka(M)) && (O.width = Math.max(O.width, M.width * E / M.height))
                                        }
                                        var N = f && null != r ? r - T : null;
                                        null != N && N < O.width ? !D || N < b ? (O.text = "", O.width = O.contentWidth = 0) : (O.text = Ha(O.text, N - b, I, e.ellipsis, {minChar: e.truncateMinChar}), O.width = O.contentWidth = to(O.text, I)) : O.contentWidth = to(O.text, I)
                                    }
                                    O.width += b, T += O.width, S && (_ = Math.max(_, O.lineHeight))
                                }
                                m(v, T, _)
                            }
                            for (n.outerWidth = n.width = kt(r, d), n.outerHeight = n.height = kt(o, h), n.contentHeight = h, n.contentWidth = d, p && (n.outerWidth += p[1] + p[3], n.outerHeight += p[0] + p[2]), y = 0; y < c.length; y++) {
                                var O, L = (O = c[y]).percentWidth;
                                O.width = parseInt(L, 10) / 100 * n.width
                            }
                            return n
                        }(Gl(t), t), n = e.width, i = e.outerWidth, r = e.outerHeight, o = t.padding, a = t.x || 0,
                        s = t.y || 0, l = this._defaultStyle, u = t.align || l.align,
                        c = t.verticalAlign || l.verticalAlign, h = io(a, i, u), d = ro(s, r, c), p = h, f = d;
                    o && (p += o[3], f += o[0]);
                    var g = p + n;
                    Bl(t) && this._renderBackground(t, t, h, d, i, r);
                    for (var m = !!t.backgroundColor, y = 0; y < e.lines.length; y++) {
                        for (var v = e.lines[y], _ = v.tokens, T = _.length, x = v.lineHeight, S = v.width, A = 0, b = p, I = g, E = T - 1, C = void 0; A < T && (!(C = _[A]).align || "left" === C.align);) this._placeToken(C, t, x, f, b, "left", m), S -= C.width, b += C.width, A++;
                        for (; E >= 0 && "right" === (C = _[E]).align;) this._placeToken(C, t, x, f, I, "right", m), S -= C.width, I -= C.width, E--;
                        for (b += (n - (b - p) - (g - I) - S) / 2; A <= E;) C = _[A], this._placeToken(C, t, x, f, b + C.width / 2, "center", m), b += C.width, A++;
                        f += x
                    }
                }, e.prototype._placeToken = function (t, e, n, i, r, o, a) {
                    var s = e.rich[t.styleName] || {};
                    s.text = t.text;
                    var l = t.verticalAlign, u = i + n / 2;
                    "top" === l ? u = i + t.height / 2 : "bottom" === l && (u = i + n - t.height / 2), !t.isLineHolder && Bl(s) && this._renderBackground(s, e, "right" === o ? r - t.width : "center" === o ? r - t.width / 2 : r, u - t.height / 2, t.width, t.height);
                    var c = !!s.backgroundColor, h = t.textPadding;
                    h && (r = Pl(r, o, h), u -= t.height / 2 - h[0] - t.innerHeight / 2);
                    var d = this._getOrCreateChild(hl), p = d.createStyle();
                    d.useStyle(p);
                    var f = this._defaultStyle, g = !1, m = 0,
                        y = kl("fill" in s ? s.fill : "fill" in e ? e.fill : (g = !0, f.fill)),
                        v = Rl("stroke" in s ? s.stroke : "stroke" in e ? e.stroke : c || a || f.autoStroke && !g ? null : (m = 2, f.stroke)),
                        _ = s.textShadowBlur > 0 || e.textShadowBlur > 0;
                    p.text = t.text, p.x = r, p.y = u, _ && (p.shadowBlur = s.textShadowBlur || e.textShadowBlur || 0, p.shadowColor = s.textShadowColor || e.textShadowColor || "transparent", p.shadowOffsetX = s.textShadowOffsetX || e.textShadowOffsetX || 0, p.shadowOffsetY = s.textShadowOffsetY || e.textShadowOffsetY || 0), p.textAlign = o, p.textBaseline = "middle", p.font = t.font || z, p.opacity = Pt(s.opacity, e.opacity, 1), Nl(p, s), v && (p.lineWidth = Pt(s.lineWidth, e.lineWidth, m), p.lineDash = kt(s.lineDash, e.lineDash), p.lineDashOffset = e.lineDashOffset || 0, p.stroke = v), y && (p.fill = y);
                    var T = t.contentWidth, x = t.contentHeight;
                    d.setBoundingRect(new hn(io(p.x, T, p.textAlign), ro(p.y, x, p.textBaseline), T, x))
                }, e.prototype._renderBackground = function (t, e, n, i, r, o) {
                    var a, s, l, u = t.backgroundColor, c = t.borderWidth, h = t.borderColor, d = u && u.image, p = u && !d,
                        f = t.borderRadius, g = this;
                    if (p || t.lineHeight || c && h) {
                        (a = this._getOrCreateChild(Al)).useStyle(a.createStyle()), a.style.fill = null;
                        var m = a.shape;
                        m.x = n, m.y = i, m.width = r, m.height = o, m.r = f, a.dirtyShape()
                    }
                    if (p) (l = a.style).fill = u || null, l.fillOpacity = kt(t.fillOpacity, 1); else if (d) {
                        (s = this._getOrCreateChild(gl)).onload = function () {
                            g.dirtyStyle()
                        };
                        var y = s.style;
                        y.image = u.image, y.x = n, y.y = i, y.width = r, y.height = o
                    }
                    c && h && ((l = a.style).lineWidth = c, l.stroke = h, l.strokeOpacity = kt(t.strokeOpacity, 1), l.lineDash = t.borderDash, l.lineDashOffset = t.borderDashOffset || 0, a.strokeContainThreshold = 0, a.hasFill() && a.hasStroke() && (l.strokeFirst = !0, l.lineWidth *= 2));
                    var v = (a || s).style;
                    v.shadowBlur = t.shadowBlur || 0, v.shadowColor = t.shadowColor || "transparent", v.shadowOffsetX = t.shadowOffsetX || 0, v.shadowOffsetY = t.shadowOffsetY || 0, v.opacity = Pt(t.opacity, e.opacity, 1)
                }, e.makeFont = function (t) {
                    var e = "";
                    return Ol(t) && (e = [t.fontStyle, t.fontWeight, Ml(t.fontSize), t.fontFamily || "sans-serif"].join(" ")), e && Ht(e) || t.textFont || t.font
                }, e
            }(os), Cl = {left: !0, right: 1, center: 1}, Dl = {top: 1, bottom: 1, middle: 1},
            wl = ["fontStyle", "fontWeight", "fontSize", "fontFamily"];

        function Ml(t) {
            return "string" != typeof t || -1 === t.indexOf("px") && -1 === t.indexOf("rem") && -1 === t.indexOf("em") ? isNaN(+t) ? U + "px" : t + "px" : t
        }

        function Nl(t, e) {
            for (var n = 0; n < wl.length; n++) {
                var i = wl[n], r = e[i];
                null != r && (t[i] = r)
            }
        }

        function Ol(t) {
            return null != t.fontSize || t.fontFamily || t.fontWeight
        }

        function Ll(t) {
            if (t) {
                t.font = El.makeFont(t);
                var e = t.align;
                "middle" === e && (e = "center"), t.align = null == e || Cl[e] ? e : "left";
                var n = t.verticalAlign;
                "center" === n && (n = "middle"), t.verticalAlign = null == n || Dl[n] ? n : "top", t.padding && (t.padding = Bt(t.padding))
            }
        }

        function Rl(t, e) {
            return null == t || e <= 0 || "transparent" === t || "none" === t ? null : t.image || t.colorStops ? "#000" : t
        }

        function kl(t) {
            return null == t || "none" === t ? null : t.image || t.colorStops ? "#000" : t
        }

        function Pl(t, e, n) {
            return "right" === e ? t - n[1] : "center" === e ? t + n[3] / 2 - n[1] / 2 : t + n[3]
        }

        function Gl(t) {
            var e = t.text;
            return null != e && (e += ""), e
        }

        function Bl(t) {
            return !!(t.backgroundColor || t.lineHeight || t.borderWidth && t.borderColor)
        }

        const Fl = El;
        var Hl = ha(), Ul = function (t, e, n, i) {
                if (i) {
                    var r = Hl(i);
                    r.dataIndex = n, r.dataType = e, r.seriesIndex = t, "group" === i.type && i.traverse((function (i) {
                        var r = Hl(i);
                        r.seriesIndex = t, r.dataIndex = n, r.dataType = e
                    }))
                }
            }, Vl = 1, zl = {}, Wl = ha(), Yl = ha(), ql = 0, jl = 1, Xl = 2, Zl = ["emphasis", "blur", "select"],
            Kl = ["normal", "emphasis", "blur", "select"], Ql = 10, $l = 9, Jl = "highlight", tu = "downplay",
            eu = "select", nu = "unselect", iu = "toggleSelect";

        function ru(t) {
            return null != t && "none" !== t
        }

        var ou = new yi(100);

        function au(t) {
            if (It(t)) {
                var e = ou.get(t);
                return e || (e = Oi(t, -.1), ou.put(t, e)), e
            }
            if (Ot(t)) {
                var n = ht({}, t);
                return n.colorStops = yt(t.colorStops, (function (t) {
                    return {offset: t.offset, color: Oi(t.color, -.1)}
                })), n
            }
            return t
        }

        function su(t, e, n) {
            t.onHoverStateChange && (t.hoverState || 0) !== n && t.onHoverStateChange(e), t.hoverState = n
        }

        function lu(t) {
            su(t, "emphasis", Xl)
        }

        function uu(t) {
            t.hoverState === Xl && su(t, "normal", ql)
        }

        function cu(t) {
            su(t, "blur", jl)
        }

        function hu(t) {
            t.hoverState === jl && su(t, "normal", ql)
        }

        function du(t) {
            t.selected = !0
        }

        function pu(t) {
            t.selected = !1
        }

        function fu(t, e, n) {
            e(t, n)
        }

        function gu(t, e, n) {
            fu(t, e, n), t.isGroup && t.traverse((function (t) {
                fu(t, e, n)
            }))
        }

        function mu(t, e) {
            switch (e) {
                case"emphasis":
                    t.hoverState = Xl;
                    break;
                case"normal":
                    t.hoverState = ql;
                    break;
                case"blur":
                    t.hoverState = jl;
                    break;
                case"select":
                    t.selected = !0
            }
        }

        function yu(t, e) {
            var n = this.states[t];
            if (this.style) {
                if ("emphasis" === t) return function (t, e, n, i) {
                    var r = n && pt(n, "select") >= 0, o = !1;
                    if (t instanceof ll) {
                        var a = Wl(t), s = r && a.selectFill || a.normalFill, l = r && a.selectStroke || a.normalStroke;
                        if (ru(s) || ru(l)) {
                            var u = (i = i || {}).style || {};
                            "inherit" === u.fill ? (o = !0, i = ht({}, i), (u = ht({}, u)).fill = s) : !ru(u.fill) && ru(s) ? (o = !0, i = ht({}, i), (u = ht({}, u)).fill = au(s)) : !ru(u.stroke) && ru(l) && (o || (i = ht({}, i), u = ht({}, u)), u.stroke = au(l)), i.style = u
                        }
                    }
                    if (i && null == i.z2) {
                        o || (i = ht({}, i));
                        var c = t.z2EmphasisLift;
                        i.z2 = t.z2 + (null != c ? c : Ql)
                    }
                    return i
                }(this, 0, e, n);
                if ("blur" === t) return function (t, e, n) {
                    var i = pt(t.currentStates, e) >= 0, r = t.style.opacity, o = i ? null : function (t, e, n, i) {
                        for (var r = t.style, o = {}, a = 0; a < e.length; a++) {
                            var s = e[a], l = r[s];
                            o[s] = null == l ? i && i[s] : l
                        }
                        for (a = 0; a < t.animators.length; a++) {
                            var u = t.animators[a];
                            u.__fromStateTransition && u.__fromStateTransition.indexOf(n) < 0 && "style" === u.targetName && u.saveTo(o, e)
                        }
                        return o
                    }(t, ["opacity"], e, {opacity: 1}), a = (n = n || {}).style || {};
                    return null == a.opacity && (n = ht({}, n), a = ht({opacity: i ? r : .1 * o.opacity}, a), n.style = a), n
                }(this, t, n);
                if ("select" === t) return function (t, e, n) {
                    if (n && null == n.z2) {
                        n = ht({}, n);
                        var i = t.z2SelectLift;
                        n.z2 = t.z2 + (null != i ? i : $l)
                    }
                    return n
                }(this, 0, n)
            }
            return n
        }

        function vu(t) {
            t.stateProxy = yu;
            var e = t.getTextContent(), n = t.getTextGuideLine();
            e && (e.stateProxy = yu), n && (n.stateProxy = yu)
        }

        function _u(t, e) {
            !Cu(t, e) && !t.__highByOuter && gu(t, lu)
        }

        function Tu(t, e) {
            !Cu(t, e) && !t.__highByOuter && gu(t, uu)
        }

        function xu(t, e) {
            t.__highByOuter |= 1 << (e || 0), gu(t, lu)
        }

        function Su(t, e) {
            !(t.__highByOuter &= ~(1 << (e || 0))) && gu(t, uu)
        }

        function Au(t) {
            gu(t, cu)
        }

        function bu(t) {
            gu(t, hu)
        }

        function Iu(t) {
            gu(t, du)
        }

        function Eu(t) {
            gu(t, pu)
        }

        function Cu(t, e) {
            return t.__highDownSilentOnTouch && e.zrByTouch
        }

        function Du(t) {
            var e = t.getModel(), n = [], i = [];
            e.eachComponent((function (e, r) {
                var o = Yl(r), a = "series" === e, s = a ? t.getViewOfSeriesModel(r) : t.getViewOfComponentModel(r);
                !a && i.push(s), o.isBlured && (s.group.traverse((function (t) {
                    hu(t)
                })), a && n.push(r)), o.isBlured = !1
            })), mt(i, (function (t) {
                t && t.toggleBlurSeries && t.toggleBlurSeries(n, !1, e)
            }))
        }

        function wu(t, e, n, i) {
            var r = i.getModel();

            function o(t, e) {
                for (var n = 0; n < e.length; n++) {
                    var i = t.getItemGraphicEl(e[n]);
                    i && bu(i)
                }
            }

            if (n = n || "coordinateSystem", null != t && e && "none" !== e) {
                var a = r.getSeriesByIndex(t), s = a.coordinateSystem;
                s && s.master && (s = s.master);
                var l = [];
                r.eachSeries((function (t) {
                    var r = a === t, u = t.coordinateSystem;
                    if (u && u.master && (u = u.master), !("series" === n && !r || "coordinateSystem" === n && !(u && s ? u === s : r) || "series" === e && r)) {
                        if (i.getViewOfSeriesModel(t).group.traverse((function (t) {
                            t.__highByOuter && r && "self" === e || cu(t)
                        })), gt(e)) o(t.getData(), e); else if (Dt(e)) for (var c = Tt(e), h = 0; h < c.length; h++) o(t.getData(c[h]), e[c[h]]);
                        l.push(t), Yl(t).isBlured = !0
                    }
                })), r.eachComponent((function (t, e) {
                    if ("series" !== t) {
                        var n = i.getViewOfComponentModel(e);
                        n && n.toggleBlurSeries && n.toggleBlurSeries(l, !0, r)
                    }
                }))
            }
        }

        function Mu(t, e, n) {
            if (null != t && null != e) {
                var i = n.getModel().getComponent(t, e);
                if (i) {
                    Yl(i).isBlured = !0;
                    var r = n.getViewOfComponentModel(i);
                    r && r.focusBlurEnabled && r.group.traverse((function (t) {
                        cu(t)
                    }))
                }
            }
        }

        function Nu(t, e, n, i) {
            var r = {focusSelf: !1, dispatchers: null};
            if (null == t || "series" === t || null == e || null == n) return r;
            var o = i.getModel().getComponent(t, e);
            if (!o) return r;
            var a = i.getViewOfComponentModel(o);
            if (!a || !a.findHighDownDispatchers) return r;
            for (var s, l = a.findHighDownDispatchers(n), u = 0; u < l.length; u++) if ("self" === Hl(l[u]).focus) {
                s = !0;
                break
            }
            return {focusSelf: s, dispatchers: l}
        }

        function Ou(t) {
            mt(t.getAllData(), (function (e) {
                var n = e.data, i = e.type;
                n.eachItemGraphicEl((function (e, n) {
                    t.isSelected(n, i) ? Iu(e) : Eu(e)
                }))
            }))
        }

        function Lu(t) {
            var e = [];
            return t.eachSeries((function (t) {
                mt(t.getAllData(), (function (n) {
                    n.data;
                    var i = n.type, r = t.getSelectedDataIndices();
                    if (r.length > 0) {
                        var o = {dataIndex: r, seriesIndex: t.seriesIndex};
                        null != i && (o.dataType = i), e.push(o)
                    }
                }))
            })), e
        }

        function Ru(t, e, n) {
            Hu(t, !0), gu(t, vu), Pu(t, e, n)
        }

        function ku(t, e, n, i) {
            i ? function (t) {
                Hu(t, !1)
            }(t) : Ru(t, e, n)
        }

        function Pu(t, e, n) {
            var i = Hl(t);
            null != e ? (i.focus = e, i.blurScope = n) : i.focus && (i.focus = null)
        }

        var Gu = ["emphasis", "blur", "select"],
            Bu = {itemStyle: "getItemStyle", lineStyle: "getLineStyle", areaStyle: "getAreaStyle"};

        function Fu(t, e, n, i) {
            n = n || "itemStyle";
            for (var r = 0; r < Gu.length; r++) {
                var o = Gu[r], a = e.getModel([o, n]);
                t.ensureState(o).style = i ? i(a) : a[Bu[n]]()
            }
        }

        function Hu(t, e) {
            var n = !1 === e, i = t;
            t.highDownSilentOnTouch && (i.__highDownSilentOnTouch = t.highDownSilentOnTouch), n && !i.__highDownDispatcher || (i.__highByOuter = i.__highByOuter || 0, i.__highDownDispatcher = !n)
        }

        function Uu(t) {
            return !(!t || !t.__highDownDispatcher)
        }

        function Vu(t) {
            var e = t.type;
            return e === eu || e === nu || e === iu
        }

        function zu(t) {
            var e = t.type;
            return e === Jl || e === tu
        }

        var Wu = ha();

        function Yu(t, e, n, i, r) {
            var o;
            if (e && e.ecModel) {
                var a = e.ecModel.getUpdatePayload();
                o = a && a.animation
            }
            var s = "update" === t;
            if (e && e.isAnimationEnabled()) {
                var l = void 0, u = void 0, c = void 0;
                return i ? (l = kt(i.duration, 200), u = kt(i.easing, "cubicOut"), c = 0) : (l = e.getShallow(s ? "animationDurationUpdate" : "animationDuration"), u = e.getShallow(s ? "animationEasingUpdate" : "animationEasing"), c = e.getShallow(s ? "animationDelayUpdate" : "animationDelay")), o && (null != o.duration && (l = o.duration), null != o.easing && (u = o.easing), null != o.delay && (c = o.delay)), bt(c) && (c = c(n, r)), bt(l) && (l = l(n)), {
                    duration: l || 0,
                    delay: c,
                    easing: u
                }
            }
            return null
        }

        function qu(t, e, n, i, r, o, a) {
            var s, l = !1;
            bt(r) ? (a = o, o = r, r = null) : Dt(r) && (o = r.cb, a = r.during, l = r.isFrom, s = r.removeOpt, r = r.dataIndex);
            var u = "leave" === t;
            u || e.stopAnimation("leave");
            var c = Yu(t, i, r, u ? s || {} : null, i && i.getAnimationDelayParams ? i.getAnimationDelayParams(e, r) : null);
            if (c && c.duration > 0) {
                var h = {
                    duration: c.duration,
                    delay: c.delay || 0,
                    easing: c.easing,
                    done: o,
                    force: !!o || !!a,
                    setToFinal: !u,
                    scope: t,
                    during: a
                };
                l ? e.animateFrom(n, h) : e.animateTo(n, h)
            } else e.stopAnimation(), !l && e.attr(n), a && a(1), o && o()
        }

        function ju(t, e, n, i, r, o) {
            qu("update", t, e, n, i, r, o)
        }

        function Xu(t, e, n, i, r, o) {
            qu("enter", t, e, n, i, r, o)
        }

        function Zu(t) {
            if (!t.__zr) return !0;
            for (var e = 0; e < t.animators.length; e++) {
                if ("leave" === t.animators[e].scope) return !0
            }
            return !1
        }

        function Ku(t, e, n, i, r, o) {
            Zu(t) || qu("leave", t, e, n, i, r, o)
        }

        function Qu(t, e, n, i) {
            t.removeTextContent(), t.removeTextGuideLine(), Ku(t, {style: {opacity: 0}}, e, n, i)
        }

        function $u(t, e, n) {
            function i() {
                t.parent && t.parent.remove(t)
            }

            t.isGroup ? t.traverse((function (t) {
                t.isGroup || Qu(t, e, n, i)
            })) : Qu(t, e, n, i)
        }

        function Ju(t) {
            Wu(t).oldStyle = t.style
        }

        var tc = {};

        function ec(t, e) {
            for (var n = 0; n < Zl.length; n++) {
                var i = Zl[n], r = e[i], o = t.ensureState(i);
                o.style = o.style || {}, o.style.text = r
            }
            var a = t.currentStates.slice();
            t.clearStates(!0), t.setStyle({text: e.normal}), t.useStates(a, !0)
        }

        function nc(t, e, n) {
            var i, r = t.labelFetcher, o = t.labelDataIndex, a = t.labelDimIndex, s = e.normal;
            r && (i = r.getFormattedLabel(o, "normal", null, a, s && s.get("formatter"), null != n ? {interpolatedValue: n} : null)), null == i && (i = bt(t.defaultText) ? t.defaultText(o, t, n) : t.defaultText);
            for (var l = {normal: i}, u = 0; u < Zl.length; u++) {
                var c = Zl[u], h = e[c];
                l[c] = kt(r ? r.getFormattedLabel(o, c, null, a, h && h.get("formatter")) : null, i)
            }
            return l
        }

        function ic(t, e, n, i) {
            n = n || tc;
            for (var r = t instanceof Fl, o = !1, a = 0; a < Kl.length; a++) {
                if ((d = e[Kl[a]]) && d.getShallow("show")) {
                    o = !0;
                    break
                }
            }
            var s = r ? t : t.getTextContent();
            if (o) {
                r || (s || (s = new Fl, t.setTextContent(s)), t.stateProxy && (s.stateProxy = t.stateProxy));
                var l = nc(n, e), u = e.normal, c = !!u.getShallow("show"), h = oc(u, i && i.normal, n, !1, !r);
                h.text = l.normal, r || t.setTextConfig(ac(u, n, !1));
                for (a = 0; a < Zl.length; a++) {
                    var d, p = Zl[a];
                    if (d = e[p]) {
                        var f = s.ensureState(p), g = !!kt(d.getShallow("show"), c);
                        if (g !== c && (f.ignore = !g), f.style = oc(d, i && i[p], n, !0, !r), f.style.text = l[p], !r) t.ensureState(p).textConfig = ac(d, n, !0)
                    }
                }
                s.silent = !!u.getShallow("silent"), null != s.style.x && (h.x = s.style.x), null != s.style.y && (h.y = s.style.y), s.ignore = !c, s.useStyle(h), s.dirty(), n.enableTextSetter && (dc(s).setLabelText = function (t) {
                    var i = nc(n, e, t);
                    ec(s, i)
                })
            } else s && (s.ignore = !0);
            t.dirty()
        }

        function rc(t, e) {
            e = e || "label";
            for (var n = {normal: t.getModel(e)}, i = 0; i < Zl.length; i++) {
                var r = Zl[i];
                n[r] = t.getModel([r, e])
            }
            return n
        }

        function oc(t, e, n, i, r) {
            var o = {};
            return function (t, e, n, i, r) {
                n = n || tc;
                var o, a = e.ecModel, s = a && a.option.textStyle, l = function (t) {
                    var e;
                    for (; t && t !== t.ecModel;) {
                        var n = (t.option || tc).rich;
                        if (n) {
                            e = e || {};
                            for (var i = Tt(n), r = 0; r < i.length; r++) {
                                e[i[r]] = 1
                            }
                        }
                        t = t.parentModel
                    }
                    return e
                }(e);
                if (l) for (var u in o = {}, l) if (l.hasOwnProperty(u)) {
                    var c = e.getModel(["rich", u]);
                    cc(o[u] = {}, c, s, n, i, r, !1, !0)
                }
                o && (t.rich = o);
                var h = e.get("overflow");
                h && (t.overflow = h);
                var d = e.get("minMargin");
                null != d && (t.margin = d);
                cc(t, e, s, n, i, r, !0, !1)
            }(o, t, n, i, r), e && ht(o, e), o
        }

        function ac(t, e, n) {
            e = e || {};
            var i, r = {}, o = t.getShallow("rotate"), a = kt(t.getShallow("distance"), n ? null : 5),
                s = t.getShallow("offset");
            return "outside" === (i = t.getShallow("position") || (n ? null : "inside")) && (i = e.defaultOutsidePosition || "top"), null != i && (r.position = i), null != s && (r.offset = s), null != o && (o *= Math.PI / 180, r.rotation = o), null != a && (r.distance = a), r.outsideFill = "inherit" === t.get("color") ? e.inheritColor || null : "auto", r
        }

        var sc = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"],
            lc = ["align", "lineHeight", "width", "height", "tag", "verticalAlign", "ellipsis"],
            uc = ["padding", "borderWidth", "borderRadius", "borderDashOffset", "backgroundColor", "borderColor", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"];

        function cc(t, e, n, i, r, o, a, s) {
            n = !r && n || tc;
            var l = i && i.inheritColor, u = e.getShallow("color"), c = e.getShallow("textBorderColor"),
                h = kt(e.getShallow("opacity"), n.opacity);
            "inherit" !== u && "auto" !== u || (u = l || null), "inherit" !== c && "auto" !== c || (c = l || null), o || (u = u || n.color, c = c || n.textBorderColor), null != u && (t.fill = u), null != c && (t.stroke = c);
            var d = kt(e.getShallow("textBorderWidth"), n.textBorderWidth);
            null != d && (t.lineWidth = d);
            var p = kt(e.getShallow("textBorderType"), n.textBorderType);
            null != p && (t.lineDash = p);
            var f = kt(e.getShallow("textBorderDashOffset"), n.textBorderDashOffset);
            null != f && (t.lineDashOffset = f), r || null != h || s || (h = i && i.defaultOpacity), null != h && (t.opacity = h), r || o || null == t.fill && i.inheritColor && (t.fill = i.inheritColor);
            for (var g = 0; g < sc.length; g++) {
                var m = sc[g];
                null != (v = kt(e.getShallow(m), n[m])) && (t[m] = v)
            }
            for (g = 0; g < lc.length; g++) {
                m = lc[g];
                null != (v = e.getShallow(m)) && (t[m] = v)
            }
            if (null == t.verticalAlign) {
                var y = e.getShallow("baseline");
                null != y && (t.verticalAlign = y)
            }
            if (!a || !i.disableBox) {
                for (g = 0; g < uc.length; g++) {
                    var v;
                    m = uc[g];
                    null != (v = e.getShallow(m)) && (t[m] = v)
                }
                var _ = e.getShallow("borderType");
                null != _ && (t.borderDash = _), "auto" !== t.backgroundColor && "inherit" !== t.backgroundColor || !l || (t.backgroundColor = l), "auto" !== t.borderColor && "inherit" !== t.borderColor || !l || (t.borderColor = l)
            }
        }

        function hc(t, e) {
            var n = e && e.getModel("textStyle");
            return Ht([t.fontStyle || n && n.getShallow("fontStyle") || "", t.fontWeight || n && n.getShallow("fontWeight") || "", (t.fontSize || n && n.getShallow("fontSize") || 12) + "px", t.fontFamily || n && n.getShallow("fontFamily") || "sans-serif"].join(" "))
        }

        var dc = ha();

        function pc(t, e, n, i) {
            if (t) {
                var r = dc(t);
                r.prevValue = r.value, r.value = n;
                var o = e.normal;
                r.valueAnimation = o.get("valueAnimation"), r.valueAnimation && (r.precision = o.get("precision"), r.defaultInterpolatedText = i, r.statesModels = e)
            }
        }

        function fc(t, e, n, i, r) {
            var o = dc(t);
            if (o.valueAnimation && o.prevValue !== o.value) {
                var a = o.defaultInterpolatedText, s = kt(o.interpolatedValue, o.prevValue), l = o.value;
                t.percent = 0, (null == o.prevValue ? Xu : ju)(t, {percent: 1}, i, e, null, (function (i) {
                    var u = Ta(n, o.precision, s, l, i);
                    o.interpolatedValue = 1 === i ? null : u;
                    var c = nc({labelDataIndex: e, labelFetcher: r, defaultText: a ? a(u) : u + ""}, o.statesModels, u);
                    ec(t, c)
                }))
            }
        }

        var gc = ["textStyle", "color"],
            mc = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "padding", "lineHeight", "rich", "width", "height", "overflow"],
            yc = new Fl, vc = function () {
                function t() {
                }

                return t.prototype.getTextColor = function (t) {
                    var e = this.ecModel;
                    return this.getShallow("color") || (!t && e ? e.get(gc) : null)
                }, t.prototype.getFont = function () {
                    return hc({
                        fontStyle: this.getShallow("fontStyle"),
                        fontWeight: this.getShallow("fontWeight"),
                        fontSize: this.getShallow("fontSize"),
                        fontFamily: this.getShallow("fontFamily")
                    }, this.ecModel)
                }, t.prototype.getTextRect = function (t) {
                    for (var e = {
                        text: t,
                        verticalAlign: this.getShallow("verticalAlign") || this.getShallow("baseline")
                    }, n = 0; n < mc.length; n++) e[mc[n]] = this.getShallow(mc[n]);
                    return yc.useStyle(e), yc.update(), yc.getBoundingRect()
                }, t
            }();
        const _c = vc;
        var Tc, xc,
            Sc = [["lineWidth", "width"], ["stroke", "color"], ["opacity"], ["shadowBlur"], ["shadowOffsetX"], ["shadowOffsetY"], ["shadowColor"], ["lineDash", "type"], ["lineDashOffset", "dashOffset"], ["lineCap", "cap"], ["lineJoin", "join"], ["miterLimit"]],
            Ac = Na(Sc), bc = function () {
                function t() {
                }

                return t.prototype.getLineStyle = function (t) {
                    return Ac(this, t)
                }, t
            }(),
            Ic = [["fill", "color"], ["stroke", "borderColor"], ["lineWidth", "borderWidth"], ["opacity"], ["shadowBlur"], ["shadowOffsetX"], ["shadowOffsetY"], ["shadowColor"], ["lineDash", "borderType"], ["lineDashOffset", "borderDashOffset"], ["lineCap", "borderCap"], ["lineJoin", "borderJoin"], ["miterLimit", "borderMiterLimit"]],
            Ec = Na(Ic), Cc = function () {
                function t() {
                }

                return t.prototype.getItemStyle = function (t, e) {
                    return Ec(this, t, e)
                }, t
            }(), Dc = function () {
                function t(t, e, n) {
                    this.parentModel = e, this.ecModel = n, this.option = t
                }

                return t.prototype.init = function (t, e, n) {
                    for (var i = [], r = 3; r < arguments.length; r++) i[r - 3] = arguments[r]
                }, t.prototype.mergeOption = function (t, e) {
                    ut(this.option, t, !0)
                }, t.prototype.get = function (t, e) {
                    return null == t ? this.option : this._doGet(this.parsePath(t), !e && this.parentModel)
                }, t.prototype.getShallow = function (t, e) {
                    var n = this.option, i = null == n ? n : n[t];
                    if (null == i && !e) {
                        var r = this.parentModel;
                        r && (i = r.getShallow(t))
                    }
                    return i
                }, t.prototype.getModel = function (e, n) {
                    var i = null != e, r = i ? this.parsePath(e) : null;
                    return new t(i ? this._doGet(r) : this.option, n = n || this.parentModel && this.parentModel.getModel(this.resolveParentPath(r)), this.ecModel)
                }, t.prototype.isEmpty = function () {
                    return null == this.option
                }, t.prototype.restoreData = function () {
                }, t.prototype.clone = function () {
                    return new (0, this.constructor)(lt(this.option))
                }, t.prototype.parsePath = function (t) {
                    return "string" == typeof t ? t.split(".") : t
                }, t.prototype.resolveParentPath = function (t) {
                    return t
                }, t.prototype.isAnimationEnabled = function () {
                    if (!H.node && this.option) {
                        if (null != this.option.animation) return !!this.option.animation;
                        if (this.parentModel) return this.parentModel.isAnimationEnabled()
                    }
                }, t.prototype._doGet = function (t, e) {
                    var n = this.option;
                    if (!t) return n;
                    for (var i = 0; i < t.length && (!t[i] || null != (n = n && "object" == typeof n ? n[t[i]] : null)); i++) ;
                    return null == n && e && (n = e._doGet(this.resolveParentPath(t), e.parentModel)), n
                }, t
            }();
        Ia(Dc), Tc = Dc, xc = ["__\0is_clz", Ca++].join("_"), Tc.prototype[xc] = !0, Tc.isInstance = function (t) {
            return !(!t || !t[xc])
        }, ft(Dc, bc), ft(Dc, Cc), ft(Dc, La), ft(Dc, _c);
        const wc = Dc;
        var Mc = Math.round(10 * Math.random());

        function Nc(t) {
            return [t || "", Mc++].join("_")
        }

        function Oc(t, e) {
            return ut(ut({}, t, !0), e, !0)
        }

        var Lc = "ZH", Rc = "EN", kc = Rc, Pc = {}, Gc = {},
            Bc = H.domSupported && (document.documentElement.lang || navigator.language || navigator.browserLanguage).toUpperCase().indexOf(Lc) > -1 ? Lc : kc;

        function Fc(t, e) {
            t = t.toUpperCase(), Gc[t] = new wc(e), Pc[t] = e
        }

        function Hc(t) {
            return Gc[t]
        }

        Fc(Rc, {
            time: {
                month: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
                monthAbbr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
                dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
                dayOfWeekAbbr: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
            },
            legend: {selector: {all: "All", inverse: "Inv"}},
            toolbox: {
                brush: {
                    title: {
                        rect: "Box Select",
                        polygon: "Lasso Select",
                        lineX: "Horizontally Select",
                        lineY: "Vertically Select",
                        keep: "Keep Selections",
                        clear: "Clear Selections"
                    }
                },
                dataView: {title: "Data View", lang: ["Data View", "Close", "Refresh"]},
                dataZoom: {title: {zoom: "Zoom", back: "Zoom Reset"}},
                magicType: {
                    title: {
                        line: "Switch to Line Chart",
                        bar: "Switch to Bar Chart",
                        stack: "Stack",
                        tiled: "Tile"
                    }
                },
                restore: {title: "Restore"},
                saveAsImage: {title: "Save as Image", lang: ["Right Click to Save Image"]}
            },
            series: {
                typeNames: {
                    pie: "Pie chart",
                    bar: "Bar chart",
                    line: "Line chart",
                    scatter: "Scatter plot",
                    effectScatter: "Ripple scatter plot",
                    radar: "Radar chart",
                    tree: "Tree",
                    treemap: "Treemap",
                    boxplot: "Boxplot",
                    candlestick: "Candlestick",
                    k: "K line chart",
                    heatmap: "Heat map",
                    map: "Map",
                    parallel: "Parallel coordinate map",
                    lines: "Line graph",
                    graph: "Relationship graph",
                    sankey: "Sankey diagram",
                    funnel: "Funnel chart",
                    gauge: "Gauge",
                    pictorialBar: "Pictorial bar",
                    themeRiver: "Theme River Map",
                    sunburst: "Sunburst"
                }
            },
            aria: {
                general: {withTitle: 'This is a chart about "{title}"', withoutTitle: "This is a chart"},
                series: {
                    single: {
                        prefix: "",
                        withName: " with type {seriesType} named {seriesName}.",
                        withoutName: " with type {seriesType}."
                    },
                    multiple: {
                        prefix: ". It consists of {seriesCount} series count.",
                        withName: " The {seriesId} series is a {seriesType} representing {seriesName}.",
                        withoutName: " The {seriesId} series is a {seriesType}.",
                        separator: {middle: "", end: ""}
                    }
                },
                data: {
                    allData: "The data is as follows: ",
                    partialData: "The first {displayCnt} items are: ",
                    withName: "the data for {name} is {value}",
                    withoutName: "{value}",
                    separator: {middle: ", ", end: ". "}
                }
            }
        }), Fc(Lc, {
            time: {
                month: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
                monthAbbr: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
                dayOfWeek: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
                dayOfWeekAbbr: ["日", "一", "二", "三", "四", "五", "六"]
            },
            legend: {selector: {all: "全选", inverse: "反选"}},
            toolbox: {
                brush: {
                    title: {
                        rect: "矩形选择",
                        polygon: "圈选",
                        lineX: "横向选择",
                        lineY: "纵向选择",
                        keep: "保持选择",
                        clear: "清除选择"
                    }
                },
                dataView: {title: "数据视图", lang: ["数据视图", "关闭", "刷新"]},
                dataZoom: {title: {zoom: "区域缩放", back: "区域缩放还原"}},
                magicType: {
                    title: {
                        line: "切换为折线图",
                        bar: "切换为柱状图",
                        stack: "切换为堆叠",
                        tiled: "切换为平铺"
                    }
                },
                restore: {title: "还原"},
                saveAsImage: {title: "保存为图片", lang: ["右键另存为图片"]}
            },
            series: {
                typeNames: {
                    pie: "饼图",
                    bar: "柱状图",
                    line: "折线图",
                    scatter: "散点图",
                    effectScatter: "涟漪散点图",
                    radar: "雷达图",
                    tree: "树图",
                    treemap: "矩形树图",
                    boxplot: "箱型图",
                    candlestick: "K线图",
                    k: "K线图",
                    heatmap: "热力图",
                    map: "地图",
                    parallel: "平行坐标图",
                    lines: "线图",
                    graph: "关系图",
                    sankey: "桑基图",
                    funnel: "漏斗图",
                    gauge: "仪表盘图",
                    pictorialBar: "象形柱图",
                    themeRiver: "主题河流图",
                    sunburst: "旭日图"
                }
            },
            aria: {
                general: {withTitle: "这是一个关于“{title}”的图表。", withoutTitle: "这是一个图表，"},
                series: {
                    single: {
                        prefix: "",
                        withName: "图表类型是{seriesType}，表示{seriesName}。",
                        withoutName: "图表类型是{seriesType}。"
                    },
                    multiple: {
                        prefix: "它由{seriesCount}个图表系列组成。",
                        withName: "第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",
                        withoutName: "第{seriesId}个系列是一个{seriesType}，",
                        separator: {middle: "；", end: "。"}
                    }
                },
                data: {
                    allData: "其数据是——",
                    partialData: "其中，前{displayCnt}项是——",
                    withName: "{name}的数据是{value}",
                    withoutName: "{value}",
                    separator: {middle: "，", end: ""}
                }
            }
        });
        var Uc = 1e3, Vc = 60 * Uc, zc = 60 * Vc, Wc = 24 * zc, Yc = 365 * Wc, qc = {
                year: "{yyyy}",
                month: "{MMM}",
                day: "{d}",
                hour: "{HH}:{mm}",
                minute: "{HH}:{mm}",
                second: "{HH}:{mm}:{ss}",
                millisecond: "{HH}:{mm}:{ss} {SSS}",
                none: "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"
            }, jc = "{yyyy}-{MM}-{dd}", Xc = {
                year: "{yyyy}",
                month: "{yyyy}-{MM}",
                day: jc,
                hour: jc + " " + qc.hour,
                minute: jc + " " + qc.minute,
                second: jc + " " + qc.second,
                millisecond: qc.none
            }, Zc = ["year", "month", "day", "hour", "minute", "second", "millisecond"],
            Kc = ["year", "half-year", "quarter", "month", "week", "half-week", "day", "half-day", "quarter-day", "hour", "minute", "second", "millisecond"];

        function Qc(t, e) {
            return "0000".substr(0, e - (t += "").length) + t
        }

        function $c(t) {
            switch (t) {
                case"half-year":
                case"quarter":
                    return "month";
                case"week":
                case"half-week":
                    return "day";
                case"half-day":
                case"quarter-day":
                    return "hour";
                default:
                    return t
            }
        }

        function Jc(t) {
            return t === $c(t)
        }

        function th(t, e, n, i) {
            var r = Ho(t), o = r[ih(n)](), a = r[rh(n)]() + 1, s = Math.floor((a - 1) / 3) + 1, l = r[oh(n)](),
                u = r["get" + (n ? "UTC" : "") + "Day"](), c = r[ah(n)](), h = (c - 1) % 12 + 1, d = r[sh(n)](),
                p = r[lh(n)](), f = r[uh(n)](), g = (i instanceof wc ? i : Hc(i || Bc) || Gc[kc]).getModel("time"),
                m = g.get("month"), y = g.get("monthAbbr"), v = g.get("dayOfWeek"), _ = g.get("dayOfWeekAbbr");
            return (e || "").replace(/{yyyy}/g, o + "").replace(/{yy}/g, Qc(o % 100 + "", 2)).replace(/{Q}/g, s + "").replace(/{MMMM}/g, m[a - 1]).replace(/{MMM}/g, y[a - 1]).replace(/{MM}/g, Qc(a, 2)).replace(/{M}/g, a + "").replace(/{dd}/g, Qc(l, 2)).replace(/{d}/g, l + "").replace(/{eeee}/g, v[u]).replace(/{ee}/g, _[u]).replace(/{e}/g, u + "").replace(/{HH}/g, Qc(c, 2)).replace(/{H}/g, c + "").replace(/{hh}/g, Qc(h + "", 2)).replace(/{h}/g, h + "").replace(/{mm}/g, Qc(d, 2)).replace(/{m}/g, d + "").replace(/{ss}/g, Qc(p, 2)).replace(/{s}/g, p + "").replace(/{SSS}/g, Qc(f, 3)).replace(/{S}/g, f + "")
        }

        function eh(t, e) {
            var n = Ho(t), i = n[rh(e)]() + 1, r = n[oh(e)](), o = n[ah(e)](), a = n[sh(e)](), s = n[lh(e)](),
                l = 0 === n[uh(e)](), u = l && 0 === s, c = u && 0 === a, h = c && 0 === o, d = h && 1 === r;
            return d && 1 === i ? "year" : d ? "month" : h ? "day" : c ? "hour" : u ? "minute" : l ? "second" : "millisecond"
        }

        function nh(t, e, n) {
            var i = Ct(t) ? Ho(t) : t;
            switch (e = e || eh(t, n)) {
                case"year":
                    return i[ih(n)]();
                case"half-year":
                    return i[rh(n)]() >= 6 ? 1 : 0;
                case"quarter":
                    return Math.floor((i[rh(n)]() + 1) / 4);
                case"month":
                    return i[rh(n)]();
                case"day":
                    return i[oh(n)]();
                case"half-day":
                    return i[ah(n)]() / 24;
                case"hour":
                    return i[ah(n)]();
                case"minute":
                    return i[sh(n)]();
                case"second":
                    return i[lh(n)]();
                case"millisecond":
                    return i[uh(n)]()
            }
        }

        function ih(t) {
            return t ? "getUTCFullYear" : "getFullYear"
        }

        function rh(t) {
            return t ? "getUTCMonth" : "getMonth"
        }

        function oh(t) {
            return t ? "getUTCDate" : "getDate"
        }

        function ah(t) {
            return t ? "getUTCHours" : "getHours"
        }

        function sh(t) {
            return t ? "getUTCMinutes" : "getMinutes"
        }

        function lh(t) {
            return t ? "getUTCSeconds" : "getSeconds"
        }

        function uh(t) {
            return t ? "getUTCMilliseconds" : "getMilliseconds"
        }

        function ch(t) {
            return t ? "setUTCFullYear" : "setFullYear"
        }

        function hh(t) {
            return t ? "setUTCMonth" : "setMonth"
        }

        function dh(t) {
            return t ? "setUTCDate" : "setDate"
        }

        function ph(t) {
            return t ? "setUTCHours" : "setHours"
        }

        function fh(t) {
            return t ? "setUTCMinutes" : "setMinutes"
        }

        function gh(t) {
            return t ? "setUTCSeconds" : "setSeconds"
        }

        function mh(t) {
            return t ? "setUTCMilliseconds" : "setMilliseconds"
        }

        function yh(t) {
            if (!qo(t)) return It(t) ? t : "-";
            var e = (t + "").split(".");
            return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, "$1,") + (e.length > 1 ? "." + e[1] : "")
        }

        function vh(t, e) {
            return t = (t || "").toLowerCase().replace(/-(.)/g, (function (t, e) {
                return e.toUpperCase()
            })), e && t && (t = t.charAt(0).toUpperCase() + t.slice(1)), t
        }

        var _h = Bt;

        function Th(t, e, n) {
            function i(t) {
                return t && Ht(t) ? t : "-"
            }

            function r(t) {
                return !(null == t || isNaN(t) || !isFinite(t))
            }

            var o = "time" === e, a = t instanceof Date;
            if (o || a) {
                var s = o ? Ho(t) : t;
                if (!isNaN(+s)) return th(s, "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}", n);
                if (a) return "-"
            }
            if ("ordinal" === e) return Et(t) ? i(t) : Ct(t) && r(t) ? t + "" : "-";
            var l = Yo(t);
            return r(l) ? yh(l) : Et(t) ? i(t) : "boolean" == typeof t ? t + "" : "-"
        }

        var xh = ["a", "b", "c", "d", "e", "f", "g"], Sh = function (t, e) {
            return "{" + t + (null == e ? "" : e) + "}"
        };

        function Ah(t, e, n) {
            At(e) || (e = [e]);
            var i = e.length;
            if (!i) return "";
            for (var r = e[0].$vars || [], o = 0; o < r.length; o++) {
                var a = xh[o];
                t = t.replace(Sh(a), Sh(a, 0))
            }
            for (var s = 0; s < i; s++) for (var l = 0; l < r.length; l++) {
                var u = e[s][r[l]];
                t = t.replace(Sh(xh[l], s), n ? Oe(u) : u)
            }
            return t
        }

        function bh(t, e) {
            return e = e || "transparent", It(t) ? t : Dt(t) && t.colorStops && (t.colorStops[0] || {}).color || e
        }

        function Ih(t, e) {
            if ("_blank" === e || "blank" === e) {
                var n = window.open();
                n.opener = null, n.location.href = t
            } else window.open(t, e)
        }

        var Eh = mt, Ch = ["left", "right", "top", "bottom", "width", "height"],
            Dh = [["width", "left", "right"], ["height", "top", "bottom"]];

        function wh(t, e, n, i, r) {
            var o = 0, a = 0;
            null == i && (i = 1 / 0), null == r && (r = 1 / 0);
            var s = 0;
            e.eachChild((function (l, u) {
                var c, h, d = l.getBoundingRect(), p = e.childAt(u + 1), f = p && p.getBoundingRect();
                if ("horizontal" === t) {
                    var g = d.width + (f ? -f.x + d.x : 0);
                    (c = o + g) > i || l.newline ? (o = 0, c = g, a += s + n, s = d.height) : s = Math.max(s, d.height)
                } else {
                    var m = d.height + (f ? -f.y + d.y : 0);
                    (h = a + m) > r || l.newline ? (o += s + n, a = 0, h = m, s = d.width) : s = Math.max(s, d.width)
                }
                l.newline || (l.x = o, l.y = a, l.markRedraw(), "horizontal" === t ? o = c + n : a = h + n)
            }))
        }

        var Mh = wh;
        St(wh, "vertical"), St(wh, "horizontal");

        function Nh(t, e, n) {
            n = _h(n || 0);
            var i = e.width, r = e.height, o = wo(t.left, i), a = wo(t.top, r), s = wo(t.right, i), l = wo(t.bottom, r),
                u = wo(t.width, i), c = wo(t.height, r), h = n[2] + n[0], d = n[1] + n[3], p = t.aspect;
            switch (isNaN(u) && (u = i - s - d - o), isNaN(c) && (c = r - l - h - a), null != p && (isNaN(u) && isNaN(c) && (p > i / r ? u = .8 * i : c = .8 * r), isNaN(u) && (u = p * c), isNaN(c) && (c = u / p)), isNaN(o) && (o = i - s - u - d), isNaN(a) && (a = r - l - c - h), t.left || t.right) {
                case"center":
                    o = i / 2 - u / 2 - n[3];
                    break;
                case"right":
                    o = i - u - d
            }
            switch (t.top || t.bottom) {
                case"middle":
                case"center":
                    a = r / 2 - c / 2 - n[0];
                    break;
                case"bottom":
                    a = r - c - h
            }
            o = o || 0, a = a || 0, isNaN(u) && (u = i - d - o - (s || 0)), isNaN(c) && (c = r - h - a - (l || 0));
            var f = new hn(o + n[3], a + n[0], u, c);
            return f.margin = n, f
        }

        function Oh(t, e, n, i, r, o) {
            var a, s = !r || !r.hv || r.hv[0], l = !r || !r.hv || r.hv[1], u = r && r.boundingMode || "all";
            if ((o = o || t).x = t.x, o.y = t.y, !s && !l) return !1;
            if ("raw" === u) a = "group" === t.type ? new hn(0, 0, +e.width || 0, +e.height || 0) : t.getBoundingRect(); else if (a = t.getBoundingRect(), t.needLocalTransform()) {
                var c = t.getLocalTransform();
                (a = a.clone()).applyTransform(c)
            }
            var h = Nh(dt({width: a.width, height: a.height}, e), n, i), d = s ? h.x - a.x : 0, p = l ? h.y - a.y : 0;
            return "raw" === u ? (o.x = d, o.y = p) : (o.x += d, o.y += p), o === t && t.markRedraw(), !0
        }

        function Lh(t) {
            var e = t.layoutMode || t.constructor.layoutMode;
            return Dt(e) ? e : e ? {type: e} : null
        }

        function Rh(t, e, n) {
            var i = n && n.ignoreSize;
            !At(i) && (i = [i, i]);
            var r = a(Dh[0], 0), o = a(Dh[1], 1);

            function a(n, r) {
                var o = {}, a = 0, u = {}, c = 0;
                if (Eh(n, (function (e) {
                    u[e] = t[e]
                })), Eh(n, (function (t) {
                    s(e, t) && (o[t] = u[t] = e[t]), l(o, t) && a++, l(u, t) && c++
                })), i[r]) return l(e, n[1]) ? u[n[2]] = null : l(e, n[2]) && (u[n[1]] = null), u;
                if (2 !== c && a) {
                    if (a >= 2) return o;
                    for (var h = 0; h < n.length; h++) {
                        var d = n[h];
                        if (!s(o, d) && s(t, d)) {
                            o[d] = t[d];
                            break
                        }
                    }
                    return o
                }
                return u
            }

            function s(t, e) {
                return t.hasOwnProperty(e)
            }

            function l(t, e) {
                return null != t[e] && "auto" !== t[e]
            }

            function u(t, e, n) {
                Eh(t, (function (t) {
                    e[t] = n[t]
                }))
            }

            u(Dh[0], t, r), u(Dh[1], t, o)
        }

        function kh(t) {
            return Ph({}, t)
        }

        function Ph(t, e) {
            return e && t && Eh(Ch, (function (n) {
                e.hasOwnProperty(n) && (t[n] = e[n])
            })), t
        }

        var Gh = ha(), Bh = function (t) {
            function e(e, n, i) {
                var r = t.call(this, e, n, i) || this;
                return r.uid = Nc("ec_cpt_model"), r
            }

            return G(e, t), e.prototype.init = function (t, e, n) {
                this.mergeDefaultAndTheme(t, n)
            }, e.prototype.mergeDefaultAndTheme = function (t, e) {
                var n = Lh(this), i = n ? kh(t) : {};
                ut(t, e.getTheme().get(this.mainType)), ut(t, this.getDefaultOption()), n && Rh(t, i, n)
            }, e.prototype.mergeOption = function (t, e) {
                ut(this.option, t, !0);
                var n = Lh(this);
                n && Rh(this.option, t, n)
            }, e.prototype.optionUpdated = function (t, e) {
            }, e.prototype.getDefaultOption = function () {
                var t = this.constructor;
                if (!function (t) {
                    return !(!t || !t[Aa])
                }(t)) return t.defaultOption;
                var e = Gh(this);
                if (!e.defaultOption) {
                    for (var n = [], i = t; i;) {
                        var r = i.prototype.defaultOption;
                        r && n.push(r), i = i.superClass
                    }
                    for (var o = {}, a = n.length - 1; a >= 0; a--) o = ut(o, n[a], !0);
                    e.defaultOption = o
                }
                return e.defaultOption
            }, e.prototype.getReferringComponents = function (t, e) {
                var n = t + "Index", i = t + "Id";
                return ya(this.ecModel, t, {index: this.get(n, !0), id: this.get(i, !0)}, e)
            }, e.prototype.getBoxLayoutParams = function () {
                var t = this;
                return {
                    left: t.get("left"),
                    top: t.get("top"),
                    right: t.get("right"),
                    bottom: t.get("bottom"),
                    width: t.get("width"),
                    height: t.get("height")
                }
            }, e.prototype.getZLevelKey = function () {
                return ""
            }, e.prototype.setZLevel = function (t) {
                this.option.zlevel = t
            }, e.protoInitialize = function () {
                var t = e.prototype;
                t.type = "component", t.id = "", t.name = "", t.mainType = "", t.subType = "", t.componentIndex = 0
            }(), e
        }(wc);
        Ea(Bh, wc), Ma(Bh), function (t) {
            var e = {};
            t.registerSubTypeDefaulter = function (t, n) {
                var i = ba(t);
                e[i.main] = n
            }, t.determineSubType = function (n, i) {
                var r = i.type;
                if (!r) {
                    var o = ba(n).main;
                    t.hasSubTypes(n) && e[o] && (r = e[o](i))
                }
                return r
            }
        }(Bh), function (t, e) {
            function n(t, e) {
                return t[e] || (t[e] = {predecessor: [], successor: []}), t[e]
            }

            t.topologicalTravel = function (t, i, r, o) {
                if (t.length) {
                    var a = function (t) {
                        var i = {}, r = [];
                        return mt(t, (function (o) {
                            var a = n(i, o), s = function (t, e) {
                                var n = [];
                                return mt(t, (function (t) {
                                    pt(e, t) >= 0 && n.push(t)
                                })), n
                            }(a.originalDeps = e(o), t);
                            a.entryCount = s.length, 0 === a.entryCount && r.push(o), mt(s, (function (t) {
                                pt(a.predecessor, t) < 0 && a.predecessor.push(t);
                                var e = n(i, t);
                                pt(e.successor, t) < 0 && e.successor.push(o)
                            }))
                        })), {graph: i, noEntryList: r}
                    }(i), s = a.graph, l = a.noEntryList, u = {};
                    for (mt(t, (function (t) {
                        u[t] = !0
                    })); l.length;) {
                        var c = l.pop(), h = s[c], d = !!u[c];
                        d && (r.call(o, c, h.originalDeps.slice()), delete u[c]), mt(h.successor, d ? f : p)
                    }
                    mt(u, (function () {
                        throw new Error("")
                    }))
                }

                function p(t) {
                    s[t].entryCount--, 0 === s[t].entryCount && l.push(t)
                }

                function f(t) {
                    u[t] = !0, p(t)
                }
            }
        }(Bh, (function (t) {
            var e = [];
            mt(Bh.getClassesByMainType(t), (function (t) {
                e = e.concat(t.dependencies || t.prototype.dependencies || [])
            })), e = yt(e, (function (t) {
                return ba(t).main
            })), "dataset" !== t && pt(e, "dataset") <= 0 && e.unshift("dataset");
            return e
        }));
        const Fh = Bh;
        var Hh = "";
        "undefined" != typeof navigator && (Hh = navigator.platform || "");
        var Uh = "rgba(0, 0, 0, 0.2)";
        const Vh = {
            darkMode: "auto",
            colorBy: "series",
            color: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
            gradientColor: ["#f6efa6", "#d88273", "#bf444c"],
            aria: {
                decal: {
                    decals: [{
                        color: Uh,
                        dashArrayX: [1, 0],
                        dashArrayY: [2, 5],
                        symbolSize: 1,
                        rotation: Math.PI / 6
                    }, {
                        color: Uh,
                        symbol: "circle",
                        dashArrayX: [[8, 8], [0, 8, 8, 0]],
                        dashArrayY: [6, 0],
                        symbolSize: .8
                    }, {color: Uh, dashArrayX: [1, 0], dashArrayY: [4, 3], rotation: -Math.PI / 4}, {
                        color: Uh,
                        dashArrayX: [[6, 6], [0, 6, 6, 0]],
                        dashArrayY: [6, 0]
                    }, {
                        color: Uh,
                        dashArrayX: [[1, 0], [1, 6]],
                        dashArrayY: [1, 0, 6, 0],
                        rotation: Math.PI / 4
                    }, {
                        color: Uh,
                        symbol: "triangle",
                        dashArrayX: [[9, 9], [0, 9, 9, 0]],
                        dashArrayY: [7, 2],
                        symbolSize: .75
                    }]
                }
            },
            textStyle: {
                fontFamily: Hh.match(/^Win/) ? "Microsoft YaHei" : "sans-serif",
                fontSize: 12,
                fontStyle: "normal",
                fontWeight: "normal"
            },
            blendMode: null,
            stateAnimation: {duration: 300, easing: "cubicOut"},
            animation: "auto",
            animationDuration: 1e3,
            animationDurationUpdate: 500,
            animationEasing: "cubicInOut",
            animationEasingUpdate: "cubicInOut",
            animationThreshold: 2e3,
            progressiveThreshold: 3e3,
            progressive: 400,
            hoverLayerThreshold: 3e3,
            useUTC: !1
        };
        var zh = jt(["tooltip", "label", "itemName", "itemId", "itemGroupId", "seriesName"]), Wh = "original",
            Yh = "arrayRows", qh = "objectRows", jh = "keyedColumns", Xh = "typedArray", Zh = "unknown", Kh = "column",
            Qh = "row", $h = {Must: 1, Might: 2, Not: 3}, Jh = ha();

        function td(t, e, n) {
            var i = {}, r = nd(e);
            if (!r || !t) return i;
            var o, a, s = [], l = [], u = e.ecModel, c = Jh(u).datasetMap, h = r.uid + "_" + n.seriesLayoutBy;
            mt(t = t.slice(), (function (e, n) {
                var r = Dt(e) ? e : t[n] = {name: e};
                "ordinal" === r.type && null == o && (o = n, a = f(r)), i[r.name] = []
            }));
            var d = c.get(h) || c.set(h, {categoryWayDim: a, valueWayDim: 0});

            function p(t, e, n) {
                for (var i = 0; i < n; i++) t.push(e + i)
            }

            function f(t) {
                var e = t.dimsDef;
                return e ? e.length : 1
            }

            return mt(t, (function (t, e) {
                var n = t.name, r = f(t);
                if (null == o) {
                    var a = d.valueWayDim;
                    p(i[n], a, r), p(l, a, r), d.valueWayDim += r
                } else if (o === e) p(i[n], 0, r), p(s, 0, r); else {
                    a = d.categoryWayDim;
                    p(i[n], a, r), p(l, a, r), d.categoryWayDim += r
                }
            })), s.length && (i.itemName = s), l.length && (i.seriesName = l), i
        }

        function ed(t, e, n) {
            var i = {};
            if (!nd(t)) return i;
            var r, o = e.sourceFormat, a = e.dimensionsDefine;
            o !== qh && o !== jh || mt(a, (function (t, e) {
                "name" === (Dt(t) ? t.name : t) && (r = e)
            }));
            var s = function () {
                for (var t = {}, i = {}, s = [], l = 0, u = Math.min(5, n); l < u; l++) {
                    var c = rd(e.data, o, e.seriesLayoutBy, a, e.startIndex, l);
                    s.push(c);
                    var h = c === $h.Not;
                    if (h && null == t.v && l !== r && (t.v = l), (null == t.n || t.n === t.v || !h && s[t.n] === $h.Not) && (t.n = l), d(t) && s[t.n] !== $h.Not) return t;
                    h || (c === $h.Might && null == i.v && l !== r && (i.v = l), null != i.n && i.n !== i.v || (i.n = l))
                }

                function d(t) {
                    return null != t.v && null != t.n
                }

                return d(t) ? t : d(i) ? i : null
            }();
            if (s) {
                i.value = [s.v];
                var l = null != r ? r : s.n;
                i.itemName = [l], i.seriesName = [l]
            }
            return i
        }

        function nd(t) {
            if (!t.get("data", !0)) return ya(t.ecModel, "dataset", {
                index: t.get("datasetIndex", !0),
                id: t.get("datasetId", !0)
            }, ga).models[0]
        }

        function id(t, e) {
            return rd(t.data, t.sourceFormat, t.seriesLayoutBy, t.dimensionsDefine, t.startIndex, e)
        }

        function rd(t, e, n, i, r, o) {
            var a, s, l;
            if (Mt(t)) return $h.Not;
            if (i) {
                var u = i[o];
                Dt(u) ? (s = u.name, l = u.type) : It(u) && (s = u)
            }
            if (null != l) return "ordinal" === l ? $h.Must : $h.Not;
            if (e === Yh) {
                var c = t;
                if (n === Qh) {
                    for (var h = c[o], d = 0; d < (h || []).length && d < 5; d++) if (null != (a = _(h[r + d]))) return a
                } else for (d = 0; d < c.length && d < 5; d++) {
                    var p = c[r + d];
                    if (p && null != (a = _(p[o]))) return a
                }
            } else if (e === qh) {
                var f = t;
                if (!s) return $h.Not;
                for (d = 0; d < f.length && d < 5; d++) {
                    if ((y = f[d]) && null != (a = _(y[s]))) return a
                }
            } else if (e === jh) {
                var g = t;
                if (!s) return $h.Not;
                if (!(h = g[s]) || Mt(h)) return $h.Not;
                for (d = 0; d < h.length && d < 5; d++) if (null != (a = _(h[d]))) return a
            } else if (e === Wh) {
                var m = t;
                for (d = 0; d < m.length && d < 5; d++) {
                    var y, v = na(y = m[d]);
                    if (!At(v)) return $h.Not;
                    if (null != (a = _(v[o]))) return a
                }
            }

            function _(t) {
                var e = It(t);
                return null != t && isFinite(t) && "" !== t ? e ? $h.Might : $h.Not : e && "-" !== t ? $h.Must : void 0
            }

            return $h.Not
        }

        var od = jt();
        var ad, sd, ld, ud = ha(), cd = ha(), hd = function () {
            function t() {
            }

            return t.prototype.getColorFromPalette = function (t, e, n) {
                var i = Jo(this.get("color", !0)), r = this.get("colorLayer", !0);
                return pd(this, ud, i, r, t, e, n)
            }, t.prototype.clearColorPalette = function () {
                !function (t, e) {
                    e(t).paletteIdx = 0, e(t).paletteNameMap = {}
                }(this, ud)
            }, t
        }();

        function dd(t, e, n, i) {
            var r = Jo(t.get(["aria", "decal", "decals"]));
            return pd(t, cd, r, null, e, n, i)
        }

        function pd(t, e, n, i, r, o, a) {
            var s = e(o = o || t), l = s.paletteIdx || 0, u = s.paletteNameMap = s.paletteNameMap || {};
            if (u.hasOwnProperty(r)) return u[r];
            var c = null != a && i ? function (t, e) {
                for (var n = t.length, i = 0; i < n; i++) if (t[i].length > e) return t[i];
                return t[n - 1]
            }(i, a) : n;
            if ((c = c || n) && c.length) {
                var h = c[l];
                return r && (u[r] = h), s.paletteIdx = (l + 1) % c.length, h
            }
        }

        var fd = "\0_ec_inner";
        var gd = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.init = function (t, e, n, i, r, o) {
                i = i || {}, this.option = null, this._theme = new wc(i), this._locale = new wc(r), this._optionManager = o
            }, e.prototype.setOption = function (t, e, n) {
                var i = vd(e);
                this._optionManager.setOption(t, n, i), this._resetOption(null, i)
            }, e.prototype.resetOption = function (t, e) {
                return this._resetOption(t, vd(e))
            }, e.prototype._resetOption = function (t, e) {
                var n = !1, i = this._optionManager;
                if (!t || "recreate" === t) {
                    var r = i.mountOption("recreate" === t);
                    0, this.option && "recreate" !== t ? (this.restoreData(), this._mergeOption(r, e)) : ld(this, r), n = !0
                }
                if ("timeline" !== t && "media" !== t || this.restoreData(), !t || "recreate" === t || "timeline" === t) {
                    var o = i.getTimelineOption(this);
                    o && (n = !0, this._mergeOption(o, e))
                }
                if (!t || "recreate" === t || "media" === t) {
                    var a = i.getMediaOption(this);
                    a.length && mt(a, (function (t) {
                        n = !0, this._mergeOption(t, e)
                    }), this)
                }
                return n
            }, e.prototype.mergeOption = function (t) {
                this._mergeOption(t, null)
            }, e.prototype._mergeOption = function (t, e) {
                var n = this.option, i = this._componentsMap, r = this._componentsCount, o = [], a = jt(),
                    s = e && e.replaceMergeMainTypeMap;
                Jh(this).datasetMap = jt(), mt(t, (function (t, e) {
                    null != t && (Fh.hasClass(e) ? e && (o.push(e), a.set(e, !0)) : n[e] = null == n[e] ? lt(t) : ut(n[e], t, !0))
                })), s && s.each((function (t, e) {
                    Fh.hasClass(e) && !a.get(e) && (o.push(e), a.set(e, !0))
                })), Fh.topologicalTravel(o, Fh.getAllClassMainTypes(), (function (e) {
                    var o = function (t, e, n) {
                            var i = od.get(e);
                            if (!i) return n;
                            var r = i(t);
                            return r ? n.concat(r) : n
                        }(this, e, Jo(t[e])), a = i.get(e),
                        l = a ? s && s.get(e) ? "replaceMerge" : "normalMerge" : "replaceAll", u = ra(a, o, l);
                    (function (t, e, n) {
                        mt(t, (function (t) {
                            var i = t.newOption;
                            Dt(i) && (t.keyInfo.mainType = e, t.keyInfo.subType = function (t, e, n, i) {
                                return e.type ? e.type : n ? n.subType : i.determineSubType(t, e)
                            }(e, i, t.existing, n))
                        }))
                    })(u, e, Fh), n[e] = null, i.set(e, null), r.set(e, 0);
                    var c, h = [], d = [], p = 0;
                    mt(u, (function (t, n) {
                        var i = t.existing, r = t.newOption;
                        if (r) {
                            var o = "series" === e, a = Fh.getClass(e, t.keyInfo.subType, !o);
                            if (!a) return;
                            if ("tooltip" === e) {
                                if (c) return void 0;
                                c = !0
                            }
                            if (i && i.constructor === a) i.name = t.keyInfo.name, i.mergeOption(r, this), i.optionUpdated(r, !1); else {
                                var s = ht({componentIndex: n}, t.keyInfo);
                                ht(i = new a(r, this, this, s), s), t.brandNew && (i.__requireNewView = !0), i.init(r, this, this), i.optionUpdated(null, !0)
                            }
                        } else i && (i.mergeOption({}, this), i.optionUpdated({}, !1));
                        i ? (h.push(i.option), d.push(i), p++) : (h.push(void 0), d.push(void 0))
                    }), this), n[e] = h, i.set(e, d), r.set(e, p), "series" === e && ad(this)
                }), this), this._seriesIndices || ad(this)
            }, e.prototype.getOption = function () {
                var t = lt(this.option);
                return mt(t, (function (e, n) {
                    if (Fh.hasClass(n)) {
                        for (var i = Jo(e), r = i.length, o = !1, a = r - 1; a >= 0; a--) i[a] && !ua(i[a]) ? o = !0 : (i[a] = null, !o && r--);
                        i.length = r, t[n] = i
                    }
                })), delete t[fd], t
            }, e.prototype.getTheme = function () {
                return this._theme
            }, e.prototype.getLocaleModel = function () {
                return this._locale
            }, e.prototype.setUpdatePayload = function (t) {
                this._payload = t
            }, e.prototype.getUpdatePayload = function () {
                return this._payload
            }, e.prototype.getComponent = function (t, e) {
                var n = this._componentsMap.get(t);
                if (n) {
                    var i = n[e || 0];
                    if (i) return i;
                    if (null == e) for (var r = 0; r < n.length; r++) if (n[r]) return n[r]
                }
            }, e.prototype.queryComponents = function (t) {
                var e = t.mainType;
                if (!e) return [];
                var n, i = t.index, r = t.id, o = t.name, a = this._componentsMap.get(e);
                return a && a.length ? (null != i ? (n = [], mt(Jo(i), (function (t) {
                    a[t] && n.push(a[t])
                }))) : n = null != r ? md("id", r, a) : null != o ? md("name", o, a) : _t(a, (function (t) {
                    return !!t
                })), yd(n, t)) : []
            }, e.prototype.findComponents = function (t) {
                var e, n, i, r, o, a = t.query, s = t.mainType,
                    l = (n = s + "Index", i = s + "Id", r = s + "Name", !(e = a) || null == e[n] && null == e[i] && null == e[r] ? null : {
                        mainType: s,
                        index: e[n],
                        id: e[i],
                        name: e[r]
                    }), u = l ? this.queryComponents(l) : _t(this._componentsMap.get(s), (function (t) {
                        return !!t
                    }));
                return o = yd(u, t), t.filter ? _t(o, t.filter) : o
            }, e.prototype.eachComponent = function (t, e, n) {
                var i = this._componentsMap;
                if (bt(t)) {
                    var r = e, o = t;
                    i.each((function (t, e) {
                        for (var n = 0; t && n < t.length; n++) {
                            var i = t[n];
                            i && o.call(r, e, i, i.componentIndex)
                        }
                    }))
                } else for (var a = It(t) ? i.get(t) : Dt(t) ? this.findComponents(t) : null, s = 0; a && s < a.length; s++) {
                    var l = a[s];
                    l && e.call(n, l, l.componentIndex)
                }
            }, e.prototype.getSeriesByName = function (t) {
                var e = sa(t, null);
                return _t(this._componentsMap.get("series"), (function (t) {
                    return !!t && null != e && t.name === e
                }))
            }, e.prototype.getSeriesByIndex = function (t) {
                return this._componentsMap.get("series")[t]
            }, e.prototype.getSeriesByType = function (t) {
                return _t(this._componentsMap.get("series"), (function (e) {
                    return !!e && e.subType === t
                }))
            }, e.prototype.getSeries = function () {
                return _t(this._componentsMap.get("series"), (function (t) {
                    return !!t
                }))
            }, e.prototype.getSeriesCount = function () {
                return this._componentsCount.get("series")
            }, e.prototype.eachSeries = function (t, e) {
                sd(this), mt(this._seriesIndices, (function (n) {
                    var i = this._componentsMap.get("series")[n];
                    t.call(e, i, n)
                }), this)
            }, e.prototype.eachRawSeries = function (t, e) {
                mt(this._componentsMap.get("series"), (function (n) {
                    n && t.call(e, n, n.componentIndex)
                }))
            }, e.prototype.eachSeriesByType = function (t, e, n) {
                sd(this), mt(this._seriesIndices, (function (i) {
                    var r = this._componentsMap.get("series")[i];
                    r.subType === t && e.call(n, r, i)
                }), this)
            }, e.prototype.eachRawSeriesByType = function (t, e, n) {
                return mt(this.getSeriesByType(t), e, n)
            }, e.prototype.isSeriesFiltered = function (t) {
                return sd(this), null == this._seriesIndicesMap.get(t.componentIndex)
            }, e.prototype.getCurrentSeriesIndices = function () {
                return (this._seriesIndices || []).slice()
            }, e.prototype.filterSeries = function (t, e) {
                sd(this);
                var n = [];
                mt(this._seriesIndices, (function (i) {
                    var r = this._componentsMap.get("series")[i];
                    t.call(e, r, i) && n.push(i)
                }), this), this._seriesIndices = n, this._seriesIndicesMap = jt(n)
            }, e.prototype.restoreData = function (t) {
                ad(this);
                var e = this._componentsMap, n = [];
                e.each((function (t, e) {
                    Fh.hasClass(e) && n.push(e)
                })), Fh.topologicalTravel(n, Fh.getAllClassMainTypes(), (function (n) {
                    mt(e.get(n), (function (e) {
                        !e || "series" === n && function (t, e) {
                            if (e) {
                                var n = e.seriesIndex, i = e.seriesId, r = e.seriesName;
                                return null != n && t.componentIndex !== n || null != i && t.id !== i || null != r && t.name !== r
                            }
                        }(e, t) || e.restoreData()
                    }))
                }))
            }, e.internalField = (ad = function (t) {
                var e = t._seriesIndices = [];
                mt(t._componentsMap.get("series"), (function (t) {
                    t && e.push(t.componentIndex)
                })), t._seriesIndicesMap = jt(e)
            }, sd = function (t) {
            }, void (ld = function (t, e) {
                t.option = {}, t.option[fd] = 1, t._componentsMap = jt({series: []}), t._componentsCount = jt();
                var n = e.aria;
                Dt(n) && null == n.enabled && (n.enabled = !0), function (t, e) {
                    var n = t.color && !t.colorLayer;
                    mt(e, (function (e, i) {
                        "colorLayer" === i && n || Fh.hasClass(i) || ("object" == typeof e ? t[i] = t[i] ? ut(t[i], e, !1) : lt(e) : null == t[i] && (t[i] = e))
                    }))
                }(e, t._theme.option), ut(e, Vh, !1), t._mergeOption(e, null)
            })), e
        }(wc);

        function md(t, e, n) {
            if (At(e)) {
                var i = jt();
                return mt(e, (function (t) {
                    null != t && (null != sa(t, null) && i.set(t, !0))
                })), _t(n, (function (e) {
                    return e && i.get(e[t])
                }))
            }
            var r = sa(e, null);
            return _t(n, (function (e) {
                return e && null != r && e[t] === r
            }))
        }

        function yd(t, e) {
            return e.hasOwnProperty("subType") ? _t(t, (function (t) {
                return t && t.subType === e.subType
            })) : t
        }

        function vd(t) {
            var e = jt();
            return t && mt(Jo(t.replaceMerge), (function (t) {
                e.set(t, !0)
            })), {replaceMergeMainTypeMap: e}
        }

        ft(gd, hd);
        const _d = gd;
        var Td = ["getDom", "getZr", "getWidth", "getHeight", "getDevicePixelRatio", "dispatchAction", "isSSR", "isDisposed", "on", "off", "getDataURL", "getConnectedDataURL", "getOption", "getId", "updateLabelLayout"];
        const xd = function (t) {
            mt(Td, (function (e) {
                this[e] = xt(t[e], t)
            }), this)
        };
        var Sd = {}, Ad = function () {
            function t() {
                this._coordinateSystems = []
            }

            return t.prototype.create = function (t, e) {
                var n = [];
                mt(Sd, (function (i, r) {
                    var o = i.create(t, e);
                    n = n.concat(o || [])
                })), this._coordinateSystems = n
            }, t.prototype.update = function (t, e) {
                mt(this._coordinateSystems, (function (n) {
                    n.update && n.update(t, e)
                }))
            }, t.prototype.getCoordinateSystems = function () {
                return this._coordinateSystems.slice()
            }, t.register = function (t, e) {
                Sd[t] = e
            }, t.get = function (t) {
                return Sd[t]
            }, t
        }();
        const bd = Ad;
        var Id = /^(min|max)?(.+)$/, Ed = function () {
            function t(t) {
                this._timelineOptions = [], this._mediaList = [], this._currentMediaIndices = [], this._api = t
            }

            return t.prototype.setOption = function (t, e, n) {
                t && (mt(Jo(t.series), (function (t) {
                    t && t.data && Mt(t.data) && Vt(t.data)
                })), mt(Jo(t.dataset), (function (t) {
                    t && t.source && Mt(t.source) && Vt(t.source)
                }))), t = lt(t);
                var i = this._optionBackup, r = function (t, e, n) {
                    var i, r, o = [], a = t.baseOption, s = t.timeline, l = t.options, u = t.media, c = !!t.media,
                        h = !!(l || s || a && a.timeline);
                    a ? (r = a).timeline || (r.timeline = s) : ((h || c) && (t.options = t.media = null), r = t);
                    c && At(u) && mt(u, (function (t) {
                        t && t.option && (t.query ? o.push(t) : i || (i = t))
                    }));

                    function d(t) {
                        mt(e, (function (e) {
                            e(t, n)
                        }))
                    }

                    return d(r), mt(l, (function (t) {
                        return d(t)
                    })), mt(o, (function (t) {
                        return d(t.option)
                    })), {baseOption: r, timelineOptions: l || [], mediaDefault: i, mediaList: o}
                }(t, e, !i);
                this._newBaseOption = r.baseOption, i ? (r.timelineOptions.length && (i.timelineOptions = r.timelineOptions), r.mediaList.length && (i.mediaList = r.mediaList), r.mediaDefault && (i.mediaDefault = r.mediaDefault)) : this._optionBackup = r
            }, t.prototype.mountOption = function (t) {
                var e = this._optionBackup;
                return this._timelineOptions = e.timelineOptions, this._mediaList = e.mediaList, this._mediaDefault = e.mediaDefault, this._currentMediaIndices = [], lt(t ? e.baseOption : this._newBaseOption)
            }, t.prototype.getTimelineOption = function (t) {
                var e, n = this._timelineOptions;
                if (n.length) {
                    var i = t.getComponent("timeline");
                    i && (e = lt(n[i.getCurrentIndex()]))
                }
                return e
            }, t.prototype.getMediaOption = function (t) {
                var e, n, i = this._api.getWidth(), r = this._api.getHeight(), o = this._mediaList,
                    a = this._mediaDefault, s = [], l = [];
                if (!o.length && !a) return l;
                for (var u = 0, c = o.length; u < c; u++) Cd(o[u].query, i, r) && s.push(u);
                return !s.length && a && (s = [-1]), s.length && (e = s, n = this._currentMediaIndices, e.join(",") !== n.join(",")) && (l = yt(s, (function (t) {
                    return lt(-1 === t ? a.option : o[t].option)
                }))), this._currentMediaIndices = s, l
            }, t
        }();

        function Cd(t, e, n) {
            var i = {width: e, height: n, aspectratio: e / n}, r = !0;
            return mt(t, (function (t, e) {
                var n = e.match(Id);
                if (n && n[1] && n[2]) {
                    var o = n[1], a = n[2].toLowerCase();
                    (function (t, e, n) {
                        return "min" === n ? t >= e : "max" === n ? t <= e : t === e
                    })(i[a], t, o) || (r = !1)
                }
            })), r
        }

        const Dd = Ed;
        var wd = mt, Md = Dt,
            Nd = ["areaStyle", "lineStyle", "nodeStyle", "linkStyle", "chordStyle", "label", "labelLine"];

        function Od(t) {
            var e = t && t.itemStyle;
            if (e) for (var n = 0, i = Nd.length; n < i; n++) {
                var r = Nd[n], o = e.normal, a = e.emphasis;
                o && o[r] && (t[r] = t[r] || {}, t[r].normal ? ut(t[r].normal, o[r]) : t[r].normal = o[r], o[r] = null), a && a[r] && (t[r] = t[r] || {}, t[r].emphasis ? ut(t[r].emphasis, a[r]) : t[r].emphasis = a[r], a[r] = null)
            }
        }

        function Ld(t, e, n) {
            if (t && t[e] && (t[e].normal || t[e].emphasis)) {
                var i = t[e].normal, r = t[e].emphasis;
                i && (n ? (t[e].normal = t[e].emphasis = null, dt(t[e], i)) : t[e] = i), r && (t.emphasis = t.emphasis || {}, t.emphasis[e] = r, r.focus && (t.emphasis.focus = r.focus), r.blurScope && (t.emphasis.blurScope = r.blurScope))
            }
        }

        function Rd(t) {
            Ld(t, "itemStyle"), Ld(t, "lineStyle"), Ld(t, "areaStyle"), Ld(t, "label"), Ld(t, "labelLine"), Ld(t, "upperLabel"), Ld(t, "edgeLabel")
        }

        function kd(t, e) {
            var n = Md(t) && t[e], i = Md(n) && n.textStyle;
            if (i) {
                0;
                for (var r = 0, o = ea.length; r < o; r++) {
                    var a = ea[r];
                    i.hasOwnProperty(a) && (n[a] = i[a])
                }
            }
        }

        function Pd(t) {
            t && (Rd(t), kd(t, "label"), t.emphasis && kd(t.emphasis, "label"))
        }

        function Gd(t) {
            return At(t) ? t : t ? [t] : []
        }

        function Bd(t) {
            return (At(t) ? t[0] : t) || {}
        }

        function Fd(t, e) {
            wd(Gd(t.series), (function (t) {
                Md(t) && function (t) {
                    if (Md(t)) {
                        Od(t), Rd(t), kd(t, "label"), kd(t, "upperLabel"), kd(t, "edgeLabel"), t.emphasis && (kd(t.emphasis, "label"), kd(t.emphasis, "upperLabel"), kd(t.emphasis, "edgeLabel"));
                        var e = t.markPoint;
                        e && (Od(e), Pd(e));
                        var n = t.markLine;
                        n && (Od(n), Pd(n));
                        var i = t.markArea;
                        i && Pd(i);
                        var r = t.data;
                        if ("graph" === t.type) {
                            r = r || t.nodes;
                            var o = t.links || t.edges;
                            if (o && !Mt(o)) for (var a = 0; a < o.length; a++) Pd(o[a]);
                            mt(t.categories, (function (t) {
                                Rd(t)
                            }))
                        }
                        if (r && !Mt(r)) for (a = 0; a < r.length; a++) Pd(r[a]);
                        if ((e = t.markPoint) && e.data) {
                            var s = e.data;
                            for (a = 0; a < s.length; a++) Pd(s[a])
                        }
                        if ((n = t.markLine) && n.data) {
                            var l = n.data;
                            for (a = 0; a < l.length; a++) At(l[a]) ? (Pd(l[a][0]), Pd(l[a][1])) : Pd(l[a])
                        }
                        "gauge" === t.type ? (kd(t, "axisLabel"), kd(t, "title"), kd(t, "detail")) : "treemap" === t.type ? (Ld(t.breadcrumb, "itemStyle"), mt(t.levels, (function (t) {
                            Rd(t)
                        }))) : "tree" === t.type && Rd(t.leaves)
                    }
                }(t)
            }));
            var n = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "parallelAxis", "radar"];
            e && n.push("valueAxis", "categoryAxis", "logAxis", "timeAxis"), wd(n, (function (e) {
                wd(Gd(t[e]), (function (t) {
                    t && (kd(t, "axisLabel"), kd(t.axisPointer, "label"))
                }))
            })), wd(Gd(t.parallel), (function (t) {
                var e = t && t.parallelAxisDefault;
                kd(e, "axisLabel"), kd(e && e.axisPointer, "label")
            })), wd(Gd(t.calendar), (function (t) {
                Ld(t, "itemStyle"), kd(t, "dayLabel"), kd(t, "monthLabel"), kd(t, "yearLabel")
            })), wd(Gd(t.radar), (function (t) {
                kd(t, "name"), t.name && null == t.axisName && (t.axisName = t.name, delete t.name), null != t.nameGap && null == t.axisNameGap && (t.axisNameGap = t.nameGap, delete t.nameGap)
            })), wd(Gd(t.geo), (function (t) {
                Md(t) && (Pd(t), wd(Gd(t.regions), (function (t) {
                    Pd(t)
                })))
            })), wd(Gd(t.timeline), (function (t) {
                Pd(t), Ld(t, "label"), Ld(t, "itemStyle"), Ld(t, "controlStyle", !0);
                var e = t.data;
                At(e) && mt(e, (function (t) {
                    Dt(t) && (Ld(t, "label"), Ld(t, "itemStyle"))
                }))
            })), wd(Gd(t.toolbox), (function (t) {
                Ld(t, "iconStyle"), wd(t.feature, (function (t) {
                    Ld(t, "iconStyle")
                }))
            })), kd(Bd(t.axisPointer), "label"), kd(Bd(t.tooltip).axisPointer, "label")
        }

        function Hd(t) {
            t && mt(Ud, (function (e) {
                e[0] in t && !(e[1] in t) && (t[e[1]] = t[e[0]])
            }))
        }

        var Ud = [["x", "left"], ["y", "top"], ["x2", "right"], ["y2", "bottom"]],
            Vd = ["grid", "geo", "parallel", "legend", "toolbox", "title", "visualMap", "dataZoom", "timeline"],
            zd = [["borderRadius", "barBorderRadius"], ["borderColor", "barBorderColor"], ["borderWidth", "barBorderWidth"]];

        function Wd(t) {
            var e = t && t.itemStyle;
            if (e) for (var n = 0; n < zd.length; n++) {
                var i = zd[n][1], r = zd[n][0];
                null != e[i] && (e[r] = e[i])
            }
        }

        function Yd(t) {
            t && "edge" === t.alignTo && null != t.margin && null == t.edgeDistance && (t.edgeDistance = t.margin)
        }

        function qd(t) {
            t && t.downplay && !t.blur && (t.blur = t.downplay)
        }

        function jd(t, e) {
            if (t) for (var n = 0; n < t.length; n++) e(t[n]), t[n] && jd(t[n].children, e)
        }

        function Xd(t, e) {
            Fd(t, e), t.series = Jo(t.series), mt(t.series, (function (t) {
                if (Dt(t)) {
                    var e = t.type;
                    if ("line" === e) null != t.clipOverflow && (t.clip = t.clipOverflow); else if ("pie" === e || "gauge" === e) {
                        if (null != t.clockWise && (t.clockwise = t.clockWise), Yd(t.label), (r = t.data) && !Mt(r)) for (var n = 0; n < r.length; n++) Yd(r[n]);
                        null != t.hoverOffset && (t.emphasis = t.emphasis || {}, (t.emphasis.scaleSize = null) && (t.emphasis.scaleSize = t.hoverOffset))
                    } else if ("gauge" === e) {
                        var i = function (t, e) {
                            for (var n = e.split(","), i = t, r = 0; r < n.length && null != (i = i && i[n[r]]); r++) ;
                            return i
                        }(t, "pointer.color");
                        null != i && function (t, e, n, i) {
                            for (var r, o = e.split(","), a = t, s = 0; s < o.length - 1; s++) null == a[r = o[s]] && (a[r] = {}), a = a[r];
                            (i || null == a[o[s]]) && (a[o[s]] = n)
                        }(t, "itemStyle.color", i)
                    } else if ("bar" === e) {
                        var r;
                        if (Wd(t), Wd(t.backgroundStyle), Wd(t.emphasis), (r = t.data) && !Mt(r)) for (n = 0; n < r.length; n++) "object" == typeof r[n] && (Wd(r[n]), Wd(r[n] && r[n].emphasis))
                    } else if ("sunburst" === e) {
                        var o = t.highlightPolicy;
                        o && (t.emphasis = t.emphasis || {}, t.emphasis.focus || (t.emphasis.focus = o)), qd(t), jd(t.data, qd)
                    } else "graph" === e || "sankey" === e ? function (t) {
                        t && null != t.focusNodeAdjacency && (t.emphasis = t.emphasis || {}, null == t.emphasis.focus && (t.emphasis.focus = "adjacency"))
                    }(t) : "map" === e && (t.mapType && !t.map && (t.map = t.mapType), t.mapLocation && dt(t, t.mapLocation));
                    null != t.hoverAnimation && (t.emphasis = t.emphasis || {}, t.emphasis && null == t.emphasis.scale && (t.emphasis.scale = t.hoverAnimation)), Hd(t)
                }
            })), t.dataRange && (t.visualMap = t.dataRange), mt(Vd, (function (e) {
                var n = t[e];
                n && (At(n) || (n = [n]), mt(n, (function (t) {
                    Hd(t)
                })))
            }))
        }

        function Zd(t) {
            mt(t, (function (e, n) {
                var i = [], r = [NaN, NaN], o = [e.stackResultDimension, e.stackedOverDimension], a = e.data,
                    s = e.isStackedByIndex, l = e.seriesModel.get("stackStrategy") || "samesign";
                a.modify(o, (function (o, u, c) {
                    var h, d, p = a.get(e.stackedDimension, c);
                    if (isNaN(p)) return r;
                    s ? d = a.getRawIndex(c) : h = a.get(e.stackedByDimension, c);
                    for (var f = NaN, g = n - 1; g >= 0; g--) {
                        var m = t[g];
                        if (s || (d = m.data.rawIndexOf(m.stackedByDimension, h)), d >= 0) {
                            var y = m.data.getByRawIndex(m.stackResultDimension, d);
                            if ("all" === l || "positive" === l && y > 0 || "negative" === l && y < 0 || "samesign" === l && p >= 0 && y > 0 || "samesign" === l && p <= 0 && y < 0) {
                                p = ko(p, y), f = y;
                                break
                            }
                        }
                    }
                    return i[0] = p, i[1] = f, i
                }))
            }))
        }

        var Kd, Qd, $d, Jd, tp, ep = function (t) {
            this.data = t.data || (t.sourceFormat === jh ? {} : []), this.sourceFormat = t.sourceFormat || Zh, this.seriesLayoutBy = t.seriesLayoutBy || Kh, this.startIndex = t.startIndex || 0, this.dimensionsDetectedCount = t.dimensionsDetectedCount, this.metaRawOption = t.metaRawOption;
            var e = this.dimensionsDefine = t.dimensionsDefine;
            if (e) for (var n = 0; n < e.length; n++) {
                var i = e[n];
                null == i.type && id(this, n) === $h.Must && (i.type = "ordinal")
            }
        };

        function np(t) {
            return t instanceof ep
        }

        function ip(t, e, n) {
            n = n || op(t);
            var i = e.seriesLayoutBy, r = function (t, e, n, i, r) {
                var o, a;
                if (!t) return {dimensionsDefine: ap(r), startIndex: a, dimensionsDetectedCount: o};
                if (e === Yh) {
                    var s = t;
                    "auto" === i || null == i ? sp((function (t) {
                        null != t && "-" !== t && (It(t) ? null == a && (a = 1) : a = 0)
                    }), n, s, 10) : a = Ct(i) ? i : i ? 1 : 0, r || 1 !== a || (r = [], sp((function (t, e) {
                        r[e] = null != t ? t + "" : ""
                    }), n, s, 1 / 0)), o = r ? r.length : n === Qh ? s.length : s[0] ? s[0].length : null
                } else if (e === qh) r || (r = function (t) {
                    var e, n = 0;
                    for (; n < t.length && !(e = t[n++]);) ;
                    if (e) return Tt(e)
                }(t)); else if (e === jh) r || (r = [], mt(t, (function (t, e) {
                    r.push(e)
                }))); else if (e === Wh) {
                    var l = na(t[0]);
                    o = At(l) && l.length || 1
                }
                return {startIndex: a, dimensionsDefine: ap(r), dimensionsDetectedCount: o}
            }(t, n, i, e.sourceHeader, e.dimensions);
            return new ep({
                data: t,
                sourceFormat: n,
                seriesLayoutBy: i,
                dimensionsDefine: r.dimensionsDefine,
                startIndex: r.startIndex,
                dimensionsDetectedCount: r.dimensionsDetectedCount,
                metaRawOption: lt(e)
            })
        }

        function rp(t) {
            return new ep({data: t, sourceFormat: Mt(t) ? Xh : Wh})
        }

        function op(t) {
            var e = Zh;
            if (Mt(t)) e = Xh; else if (At(t)) {
                0 === t.length && (e = Yh);
                for (var n = 0, i = t.length; n < i; n++) {
                    var r = t[n];
                    if (null != r) {
                        if (At(r)) {
                            e = Yh;
                            break
                        }
                        if (Dt(r)) {
                            e = qh;
                            break
                        }
                    }
                }
            } else if (Dt(t)) for (var o in t) if (Qt(t, o) && gt(t[o])) {
                e = jh;
                break
            }
            return e
        }

        function ap(t) {
            if (t) {
                var e = jt();
                return yt(t, (function (t, n) {
                    var i = {name: (t = Dt(t) ? t : {name: t}).name, displayName: t.displayName, type: t.type};
                    if (null == i.name) return i;
                    i.name += "", null == i.displayName && (i.displayName = i.name);
                    var r = e.get(i.name);
                    return r ? i.name += "-" + r.count++ : e.set(i.name, {count: 1}), i
                }))
            }
        }

        function sp(t, e, n, i) {
            if (e === Qh) for (var r = 0; r < n.length && r < i; r++) t(n[r] ? n[r][0] : null, r); else {
                var o = n[0] || [];
                for (r = 0; r < o.length && r < i; r++) t(o[r], r)
            }
        }

        function lp(t) {
            var e = t.sourceFormat;
            return e === qh || e === jh
        }

        var up = function () {
            function t(t, e) {
                var n = np(t) ? t : rp(t);
                this._source = n;
                var i = this._data = n.data;
                n.sourceFormat === Xh && (this._offset = 0, this._dimSize = e, this._data = i), tp(this, i, n)
            }

            return t.prototype.getSource = function () {
                return this._source
            }, t.prototype.count = function () {
                return 0
            }, t.prototype.getItem = function (t, e) {
            }, t.prototype.appendData = function (t) {
            }, t.prototype.clean = function () {
            }, t.protoInitialize = function () {
                var e = t.prototype;
                e.pure = !1, e.persistent = !0
            }(), t.internalField = function () {
                var t;
                tp = function (t, r, o) {
                    var a = o.sourceFormat, s = o.seriesLayoutBy, l = o.startIndex, u = o.dimensionsDefine;
                    if (ht(t, Jd[_p(a, s)]), a === Xh) t.getItem = e, t.count = i, t.fillStorage = n; else {
                        var c = dp(a, s);
                        t.getItem = xt(c, null, r, l, u);
                        var h = gp(a, s);
                        t.count = xt(h, null, r, l, u)
                    }
                };
                var e = function (t, e) {
                    t -= this._offset, e = e || [];
                    for (var n = this._data, i = this._dimSize, r = i * t, o = 0; o < i; o++) e[o] = n[r + o];
                    return e
                }, n = function (t, e, n, i) {
                    for (var r = this._data, o = this._dimSize, a = 0; a < o; a++) {
                        for (var s = i[a], l = null == s[0] ? 1 / 0 : s[0], u = null == s[1] ? -1 / 0 : s[1], c = e - t, h = n[a], d = 0; d < c; d++) {
                            var p = r[d * o + a];
                            h[t + d] = p, p < l && (l = p), p > u && (u = p)
                        }
                        s[0] = l, s[1] = u
                    }
                }, i = function () {
                    return this._data ? this._data.length / this._dimSize : 0
                };

                function r(t) {
                    for (var e = 0; e < t.length; e++) this._data.push(t[e])
                }

                (t = {})[Yh + "_" + Kh] = {pure: !0, appendData: r}, t[Yh + "_" + Qh] = {
                    pure: !0,
                    appendData: function () {
                        throw new Error('Do not support appendData when set seriesLayoutBy: "row".')
                    }
                }, t[qh] = {pure: !0, appendData: r}, t[jh] = {
                    pure: !0, appendData: function (t) {
                        var e = this._data;
                        mt(t, (function (t, n) {
                            for (var i = e[n] || (e[n] = []), r = 0; r < (t || []).length; r++) i.push(t[r])
                        }))
                    }
                }, t[Wh] = {appendData: r}, t[Xh] = {
                    persistent: !1, pure: !0, appendData: function (t) {
                        this._data = t
                    }, clean: function () {
                        this._offset += this.count(), this._data = null
                    }
                }, Jd = t
            }(), t
        }(), cp = function (t, e, n, i) {
            return t[i]
        }, hp = ((Kd = {})[Yh + "_" + Kh] = function (t, e, n, i) {
            return t[i + e]
        }, Kd[Yh + "_" + Qh] = function (t, e, n, i, r) {
            i += e;
            for (var o = r || [], a = t, s = 0; s < a.length; s++) {
                var l = a[s];
                o[s] = l ? l[i] : null
            }
            return o
        }, Kd[qh] = cp, Kd[jh] = function (t, e, n, i, r) {
            for (var o = r || [], a = 0; a < n.length; a++) {
                0;
                var s = t[n[a].name];
                o[a] = s ? s[i] : null
            }
            return o
        }, Kd[Wh] = cp, Kd);

        function dp(t, e) {
            return hp[_p(t, e)]
        }

        var pp = function (t, e, n) {
            return t.length
        }, fp = ((Qd = {})[Yh + "_" + Kh] = function (t, e, n) {
            return Math.max(0, t.length - e)
        }, Qd[Yh + "_" + Qh] = function (t, e, n) {
            var i = t[0];
            return i ? Math.max(0, i.length - e) : 0
        }, Qd[qh] = pp, Qd[jh] = function (t, e, n) {
            var i = t[n[0].name];
            return i ? i.length : 0
        }, Qd[Wh] = pp, Qd);

        function gp(t, e) {
            return fp[_p(t, e)]
        }

        var mp = function (t, e, n) {
            return t[e]
        }, yp = (($d = {})[Yh] = mp, $d[qh] = function (t, e, n) {
            return t[n]
        }, $d[jh] = mp, $d[Wh] = function (t, e, n) {
            var i = na(t);
            return i instanceof Array ? i[e] : i
        }, $d[Xh] = mp, $d);

        function vp(t) {
            return yp[t]
        }

        function _p(t, e) {
            return t === Yh ? t + "_" + e : t
        }

        function Tp(t, e, n) {
            if (t) {
                var i = t.getRawDataItem(e);
                if (null != i) {
                    var r = t.getStore(), o = r.getSource().sourceFormat;
                    if (null != n) {
                        var a = t.getDimensionIndex(n), s = r.getDimensionProperty(a);
                        return vp(o)(i, a, s)
                    }
                    var l = i;
                    return o === Wh && (l = na(i)), l
                }
            }
        }

        var xp = /\{@(.+?)\}/g, Sp = function () {
            function t() {
            }

            return t.prototype.getDataParams = function (t, e) {
                var n = this.getData(e), i = this.getRawValue(t, e), r = n.getRawIndex(t), o = n.getName(t),
                    a = n.getRawDataItem(t), s = n.getItemVisual(t, "style"),
                    l = s && s[n.getItemVisual(t, "drawType") || "fill"], u = s && s.stroke, c = this.mainType,
                    h = "series" === c, d = n.userOutput && n.userOutput.get();
                return {
                    componentType: c,
                    componentSubType: this.subType,
                    componentIndex: this.componentIndex,
                    seriesType: h ? this.subType : null,
                    seriesIndex: this.seriesIndex,
                    seriesId: h ? this.id : null,
                    seriesName: h ? this.name : null,
                    name: o,
                    dataIndex: r,
                    data: a,
                    dataType: e,
                    value: i,
                    color: l,
                    borderColor: u,
                    dimensionNames: d ? d.fullDimensions : null,
                    encode: d ? d.encode : null,
                    $vars: ["seriesName", "name", "value"]
                }
            }, t.prototype.getFormattedLabel = function (t, e, n, i, r, o) {
                e = e || "normal";
                var a = this.getData(n), s = this.getDataParams(t, n);
                (o && (s.value = o.interpolatedValue), null != i && At(s.value) && (s.value = s.value[i]), r) || (r = a.getItemModel(t).get("normal" === e ? ["label", "formatter"] : [e, "label", "formatter"]));
                return bt(r) ? (s.status = e, s.dimensionIndex = i, r(s)) : It(r) ? Ah(r, s).replace(xp, (function (e, n) {
                    var i = n.length, r = n;
                    "[" === r.charAt(0) && "]" === r.charAt(i - 1) && (r = +r.slice(1, i - 1));
                    var s = Tp(a, t, r);
                    if (o && At(o.interpolatedValue)) {
                        var l = a.getDimensionIndex(r);
                        l >= 0 && (s = o.interpolatedValue[l])
                    }
                    return null != s ? s + "" : ""
                })) : void 0
            }, t.prototype.getRawValue = function (t, e) {
                return Tp(this.getData(e), t)
            }, t.prototype.formatTooltip = function (t, e, n) {
            }, t
        }();

        function Ap(t) {
            var e, n;
            return Dt(t) ? t.type && (n = t) : e = t, {text: e, frag: n}
        }

        function bp(t) {
            return new Ip(t)
        }

        var Ip = function () {
            function t(t) {
                t = t || {}, this._reset = t.reset, this._plan = t.plan, this._count = t.count, this._onDirty = t.onDirty, this._dirty = !0
            }

            return t.prototype.perform = function (t) {
                var e, n = this._upstream, i = t && t.skip;
                if (this._dirty && n) {
                    var r = this.context;
                    r.data = r.outputData = n.context.outputData
                }
                this.__pipeline && (this.__pipeline.currentTask = this), this._plan && !i && (e = this._plan(this.context));
                var o, a = c(this._modBy), s = this._modDataCount || 0, l = c(t && t.modBy),
                    u = t && t.modDataCount || 0;

                function c(t) {
                    return !(t >= 1) && (t = 1), t
                }

                a === l && s === u || (e = "reset"), (this._dirty || "reset" === e) && (this._dirty = !1, o = this._doReset(i)), this._modBy = l, this._modDataCount = u;
                var h = t && t.step;
                if (this._dueEnd = n ? n._outputDueEnd : this._count ? this._count(this.context) : 1 / 0, this._progress) {
                    var d = this._dueIndex, p = Math.min(null != h ? this._dueIndex + h : 1 / 0, this._dueEnd);
                    if (!i && (o || d < p)) {
                        var f = this._progress;
                        if (At(f)) for (var g = 0; g < f.length; g++) this._doProgress(f[g], d, p, l, u); else this._doProgress(f, d, p, l, u)
                    }
                    this._dueIndex = p;
                    var m = null != this._settedOutputEnd ? this._settedOutputEnd : p;
                    0, this._outputDueEnd = m
                } else this._dueIndex = this._outputDueEnd = null != this._settedOutputEnd ? this._settedOutputEnd : this._dueEnd;
                return this.unfinished()
            }, t.prototype.dirty = function () {
                this._dirty = !0, this._onDirty && this._onDirty(this.context)
            }, t.prototype._doProgress = function (t, e, n, i, r) {
                Ep.reset(e, n, i, r), this._callingProgress = t, this._callingProgress({
                    start: e,
                    end: n,
                    count: n - e,
                    next: Ep.next
                }, this.context)
            }, t.prototype._doReset = function (t) {
                var e, n;
                this._dueIndex = this._outputDueEnd = this._dueEnd = 0, this._settedOutputEnd = null, !t && this._reset && ((e = this._reset(this.context)) && e.progress && (n = e.forceFirstProgress, e = e.progress), At(e) && !e.length && (e = null)), this._progress = e, this._modBy = this._modDataCount = null;
                var i = this._downstream;
                return i && i.dirty(), n
            }, t.prototype.unfinished = function () {
                return this._progress && this._dueIndex < this._dueEnd
            }, t.prototype.pipe = function (t) {
                (this._downstream !== t || this._dirty) && (this._downstream = t, t._upstream = this, t.dirty())
            }, t.prototype.dispose = function () {
                this._disposed || (this._upstream && (this._upstream._downstream = null), this._downstream && (this._downstream._upstream = null), this._dirty = !1, this._disposed = !0)
            }, t.prototype.getUpstream = function () {
                return this._upstream
            }, t.prototype.getDownstream = function () {
                return this._downstream
            }, t.prototype.setOutputEnd = function (t) {
                this._outputDueEnd = this._settedOutputEnd = t
            }, t
        }(), Ep = function () {
            var t, e, n, i, r, o = {
                reset: function (l, u, c, h) {
                    e = l, t = u, n = c, i = h, r = Math.ceil(i / n), o.next = n > 1 && i > 0 ? s : a
                }
            };
            return o;

            function a() {
                return e < t ? e++ : null
            }

            function s() {
                var o = e % r * n + Math.ceil(e / r), a = e >= t ? null : o < i ? o : e;
                return e++, a
            }
        }();
        "undefined" != typeof console && console.warn && console.log;

        function Cp(t) {
            0
        }

        function Dp(t) {
            throw new Error(t)
        }

        function wp(t, e) {
            var n = e && e.type;
            return "ordinal" === n ? t : ("time" !== n || Ct(t) || null == t || "-" === t || (t = +Ho(t)), null == t || "" === t ? NaN : +t)
        }

        var Mp = jt({
            number: function (t) {
                return parseFloat(t)
            }, time: function (t) {
                return +Ho(t)
            }, trim: function (t) {
                return It(t) ? Ht(t) : t
            }
        });

        function Np(t) {
            return Mp.get(t)
        }

        var Op = {
            lt: function (t, e) {
                return t < e
            }, lte: function (t, e) {
                return t <= e
            }, gt: function (t, e) {
                return t > e
            }, gte: function (t, e) {
                return t >= e
            }
        }, Lp = function () {
            function t(t, e) {
                if (!Ct(e)) {
                    0, Dp("")
                }
                this._opFn = Op[t], this._rvalFloat = Yo(e)
            }

            return t.prototype.evaluate = function (t) {
                return Ct(t) ? this._opFn(t, this._rvalFloat) : this._opFn(Yo(t), this._rvalFloat)
            }, t
        }(), Rp = function () {
            function t(t, e) {
                var n = "desc" === t;
                this._resultLT = n ? 1 : -1, null == e && (e = n ? "min" : "max"), this._incomparable = "min" === e ? -1 / 0 : 1 / 0
            }

            return t.prototype.evaluate = function (t, e) {
                var n = Ct(t) ? t : Yo(t), i = Ct(e) ? e : Yo(e), r = isNaN(n), o = isNaN(i);
                if (r && (n = this._incomparable), o && (i = this._incomparable), r && o) {
                    var a = It(t), s = It(e);
                    a && (n = s ? t : 0), s && (i = a ? e : 0)
                }
                return n < i ? this._resultLT : n > i ? -this._resultLT : 0
            }, t
        }(), kp = function () {
            function t(t, e) {
                this._rval = e, this._isEQ = t, this._rvalTypeof = typeof e, this._rvalFloat = Yo(e)
            }

            return t.prototype.evaluate = function (t) {
                var e = t === this._rval;
                if (!e) {
                    var n = typeof t;
                    n === this._rvalTypeof || "number" !== n && "number" !== this._rvalTypeof || (e = Yo(t) === this._rvalFloat)
                }
                return this._isEQ ? e : !e
            }, t
        }();

        function Pp(t, e) {
            return "eq" === t || "ne" === t ? new kp("eq" === t, e) : Qt(Op, t) ? new Lp(t, e) : null
        }

        var Gp = function () {
            function t() {
            }

            return t.prototype.getRawData = function () {
                throw new Error("not supported")
            }, t.prototype.getRawDataItem = function (t) {
                throw new Error("not supported")
            }, t.prototype.cloneRawData = function () {
            }, t.prototype.getDimensionInfo = function (t) {
            }, t.prototype.cloneAllDimensionInfo = function () {
            }, t.prototype.count = function () {
            }, t.prototype.retrieveValue = function (t, e) {
            }, t.prototype.retrieveValueFromItem = function (t, e) {
            }, t.prototype.convertValue = function (t, e) {
                return wp(t, e)
            }, t
        }();

        function Bp(t) {
            if (!Wp(t.sourceFormat)) {
                0, Dp("")
            }
            return t.data
        }

        function Fp(t) {
            var e = t.sourceFormat, n = t.data;
            if (!Wp(e)) {
                0, Dp("")
            }
            if (e === Yh) {
                for (var i = [], r = 0, o = n.length; r < o; r++) i.push(n[r].slice());
                return i
            }
            if (e === qh) {
                for (i = [], r = 0, o = n.length; r < o; r++) i.push(ht({}, n[r]));
                return i
            }
        }

        function Hp(t, e, n) {
            if (null != n) return Ct(n) || !isNaN(n) && !Qt(e, n) ? t[n] : Qt(e, n) ? e[n] : void 0
        }

        function Up(t) {
            return lt(t)
        }

        var Vp = jt();

        function zp(t, e, n, i) {
            e.length || Dp(""), Dt(t) || Dp("");
            var r = t.type, o = Vp.get(r);
            o || Dp("");
            var a = yt(e, (function (t) {
                return function (t, e) {
                    var n = new Gp, i = t.data, r = n.sourceFormat = t.sourceFormat, o = t.startIndex;
                    t.seriesLayoutBy !== Kh && Dp("");
                    var a = [], s = {}, l = t.dimensionsDefine;
                    if (l) mt(l, (function (t, e) {
                        var n = t.name, i = {index: e, name: n, displayName: t.displayName};
                        a.push(i), null != n && (Qt(s, n) && Dp(""), s[n] = i)
                    })); else for (var u = 0; u < t.dimensionsDetectedCount; u++) a.push({index: u});
                    var c = dp(r, Kh);
                    e.__isBuiltIn && (n.getRawDataItem = function (t) {
                        return c(i, o, a, t)
                    }, n.getRawData = xt(Bp, null, t)), n.cloneRawData = xt(Fp, null, t);
                    var h = gp(r, Kh);
                    n.count = xt(h, null, i, o, a);
                    var d = vp(r);
                    n.retrieveValue = function (t, e) {
                        var n = c(i, o, a, t);
                        return p(n, e)
                    };
                    var p = n.retrieveValueFromItem = function (t, e) {
                        if (null != t) {
                            var n = a[e];
                            return n ? d(t, e, n.name) : void 0
                        }
                    };
                    return n.getDimensionInfo = xt(Hp, null, a, s), n.cloneAllDimensionInfo = xt(Up, null, a), n
                }(t, o)
            }));
            return yt(Jo(o.transform({upstream: a[0], upstreamList: a, config: lt(t.config)})), (function (t, n) {
                var i;
                Dt(t) || Dp(""), t.data || Dp(""), Wp(op(t.data)) || Dp("");
                var r = e[0];
                if (r && 0 === n && !t.dimensions) {
                    var o = r.startIndex;
                    o && (t.data = r.data.slice(0, o).concat(t.data)), i = {
                        seriesLayoutBy: Kh,
                        sourceHeader: o,
                        dimensions: r.metaRawOption.dimensions
                    }
                } else i = {seriesLayoutBy: Kh, sourceHeader: 0, dimensions: t.dimensions};
                return ip(t.data, i, null)
            }))
        }

        function Wp(t) {
            return t === Yh || t === qh
        }

        var Yp, qp = "undefined", jp = typeof Uint32Array === qp ? Array : Uint32Array,
            Xp = typeof Uint16Array === qp ? Array : Uint16Array, Zp = typeof Int32Array === qp ? Array : Int32Array,
            Kp = typeof Float64Array === qp ? Array : Float64Array,
            Qp = {float: Kp, int: Zp, ordinal: Array, number: Array, time: Kp};

        function $p(t) {
            return t > 65535 ? jp : Xp
        }

        function Jp(t, e, n, i, r) {
            var o = Qp[n || "float"];
            if (r) {
                var a = t[e], s = a && a.length;
                if (s !== i) {
                    for (var l = new o(i), u = 0; u < s; u++) l[u] = a[u];
                    t[e] = l
                }
            } else t[e] = new o(i)
        }

        var tf = function () {
            function t() {
                this._chunks = [], this._rawExtent = [], this._extent = [], this._count = 0, this._rawCount = 0, this._calcDimNameToIdx = jt()
            }

            return t.prototype.initData = function (t, e, n) {
                this._provider = t, this._chunks = [], this._indices = null, this.getRawIndex = this._getRawIdxIdentity;
                var i = t.getSource(), r = this.defaultDimValueGetter = Yp[i.sourceFormat];
                this._dimValueGetter = n || r, this._rawExtent = [];
                lp(i);
                this._dimensions = yt(e, (function (t) {
                    return {type: t.type, property: t.property}
                })), this._initDataFromProvider(0, t.count())
            }, t.prototype.getProvider = function () {
                return this._provider
            }, t.prototype.getSource = function () {
                return this._provider.getSource()
            }, t.prototype.ensureCalculationDimension = function (t, e) {
                var n = this._calcDimNameToIdx, i = this._dimensions, r = n.get(t);
                if (null != r) {
                    if (i[r].type === e) return r
                } else r = i.length;
                return i[r] = {type: e}, n.set(t, r), this._chunks[r] = new Qp[e || "float"](this._rawCount), this._rawExtent[r] = [1 / 0, -1 / 0], r
            }, t.prototype.collectOrdinalMeta = function (t, e) {
                var n = this._chunks[t], i = this._dimensions[t], r = this._rawExtent, o = i.ordinalOffset || 0,
                    a = n.length;
                0 === o && (r[t] = [1 / 0, -1 / 0]);
                for (var s = r[t], l = o; l < a; l++) {
                    var u = n[l] = e.parseAndCollect(n[l]);
                    isNaN(u) || (s[0] = Math.min(u, s[0]), s[1] = Math.max(u, s[1]))
                }
                i.ordinalMeta = e, i.ordinalOffset = a, i.type = "ordinal"
            }, t.prototype.getOrdinalMeta = function (t) {
                return this._dimensions[t].ordinalMeta
            }, t.prototype.getDimensionProperty = function (t) {
                var e = this._dimensions[t];
                return e && e.property
            }, t.prototype.appendData = function (t) {
                var e = this._provider, n = this.count();
                e.appendData(t);
                var i = e.count();
                return e.persistent || (i += n), n < i && this._initDataFromProvider(n, i, !0), [n, i]
            }, t.prototype.appendValues = function (t, e) {
                for (var n = this._chunks, i = this._dimensions, r = i.length, o = this._rawExtent, a = this.count(), s = a + Math.max(t.length, e || 0), l = 0; l < r; l++) {
                    Jp(n, l, (p = i[l]).type, s, !0)
                }
                for (var u = [], c = a; c < s; c++) for (var h = c - a, d = 0; d < r; d++) {
                    var p = i[d], f = Yp.arrayRows.call(this, t[h] || u, p.property, h, d);
                    n[d][c] = f;
                    var g = o[d];
                    f < g[0] && (g[0] = f), f > g[1] && (g[1] = f)
                }
                return this._rawCount = this._count = s, {start: a, end: s}
            }, t.prototype._initDataFromProvider = function (t, e, n) {
                for (var i = this._provider, r = this._chunks, o = this._dimensions, a = o.length, s = this._rawExtent, l = yt(o, (function (t) {
                    return t.property
                })), u = 0; u < a; u++) {
                    var c = o[u];
                    s[u] || (s[u] = [1 / 0, -1 / 0]), Jp(r, u, c.type, e, n)
                }
                if (i.fillStorage) i.fillStorage(t, e, r, s); else for (var h = [], d = t; d < e; d++) {
                    h = i.getItem(d, h);
                    for (var p = 0; p < a; p++) {
                        var f = r[p], g = this._dimValueGetter(h, l[p], d, p);
                        f[d] = g;
                        var m = s[p];
                        g < m[0] && (m[0] = g), g > m[1] && (m[1] = g)
                    }
                }
                !i.persistent && i.clean && i.clean(), this._rawCount = this._count = e, this._extent = []
            }, t.prototype.count = function () {
                return this._count
            }, t.prototype.get = function (t, e) {
                if (!(e >= 0 && e < this._count)) return NaN;
                var n = this._chunks[t];
                return n ? n[this.getRawIndex(e)] : NaN
            }, t.prototype.getValues = function (t, e) {
                var n = [], i = [];
                if (null == e) {
                    e = t, t = [];
                    for (var r = 0; r < this._dimensions.length; r++) i.push(r)
                } else i = t;
                r = 0;
                for (var o = i.length; r < o; r++) n.push(this.get(i[r], e));
                return n
            }, t.prototype.getByRawIndex = function (t, e) {
                if (!(e >= 0 && e < this._rawCount)) return NaN;
                var n = this._chunks[t];
                return n ? n[e] : NaN
            }, t.prototype.getSum = function (t) {
                var e = 0;
                if (this._chunks[t]) for (var n = 0, i = this.count(); n < i; n++) {
                    var r = this.get(t, n);
                    isNaN(r) || (e += r)
                }
                return e
            }, t.prototype.getMedian = function (t) {
                var e = [];
                this.each([t], (function (t) {
                    isNaN(t) || e.push(t)
                }));
                var n = e.sort((function (t, e) {
                    return t - e
                })), i = this.count();
                return 0 === i ? 0 : i % 2 == 1 ? n[(i - 1) / 2] : (n[i / 2] + n[i / 2 - 1]) / 2
            }, t.prototype.indexOfRawIndex = function (t) {
                if (t >= this._rawCount || t < 0) return -1;
                if (!this._indices) return t;
                var e = this._indices, n = e[t];
                if (null != n && n < this._count && n === t) return t;
                for (var i = 0, r = this._count - 1; i <= r;) {
                    var o = (i + r) / 2 | 0;
                    if (e[o] < t) i = o + 1; else {
                        if (!(e[o] > t)) return o;
                        r = o - 1
                    }
                }
                return -1
            }, t.prototype.indicesOfNearest = function (t, e, n) {
                var i = this._chunks[t], r = [];
                if (!i) return r;
                null == n && (n = 1 / 0);
                for (var o = 1 / 0, a = -1, s = 0, l = 0, u = this.count(); l < u; l++) {
                    var c = e - i[this.getRawIndex(l)], h = Math.abs(c);
                    h <= n && ((h < o || h === o && c >= 0 && a < 0) && (o = h, a = c, s = 0), c === a && (r[s++] = l))
                }
                return r.length = s, r
            }, t.prototype.getIndices = function () {
                var t, e = this._indices;
                if (e) {
                    var n = e.constructor, i = this._count;
                    if (n === Array) {
                        t = new n(i);
                        for (var r = 0; r < i; r++) t[r] = e[r]
                    } else t = new n(e.buffer, 0, i)
                } else {
                    t = new (n = $p(this._rawCount))(this.count());
                    for (r = 0; r < t.length; r++) t[r] = r
                }
                return t
            }, t.prototype.filter = function (t, e) {
                if (!this._count) return this;
                for (var n = this.clone(), i = n.count(), r = new ($p(n._rawCount))(i), o = [], a = t.length, s = 0, l = t[0], u = n._chunks, c = 0; c < i; c++) {
                    var h = void 0, d = n.getRawIndex(c);
                    if (0 === a) h = e(c); else if (1 === a) {
                        h = e(u[l][d], c)
                    } else {
                        for (var p = 0; p < a; p++) o[p] = u[t[p]][d];
                        o[p] = c, h = e.apply(null, o)
                    }
                    h && (r[s++] = d)
                }
                return s < i && (n._indices = r), n._count = s, n._extent = [], n._updateGetRawIdx(), n
            }, t.prototype.selectRange = function (t) {
                var e = this.clone(), n = e._count;
                if (!n) return this;
                var i = Tt(t), r = i.length;
                if (!r) return this;
                var o = e.count(), a = new ($p(e._rawCount))(o), s = 0, l = i[0], u = t[l][0], c = t[l][1],
                    h = e._chunks, d = !1;
                if (!e._indices) {
                    var p = 0;
                    if (1 === r) {
                        for (var f = h[i[0]], g = 0; g < n; g++) {
                            ((_ = f[g]) >= u && _ <= c || isNaN(_)) && (a[s++] = p), p++
                        }
                        d = !0
                    } else if (2 === r) {
                        f = h[i[0]];
                        var m = h[i[1]], y = t[i[1]][0], v = t[i[1]][1];
                        for (g = 0; g < n; g++) {
                            var _ = f[g], T = m[g];
                            (_ >= u && _ <= c || isNaN(_)) && (T >= y && T <= v || isNaN(T)) && (a[s++] = p), p++
                        }
                        d = !0
                    }
                }
                if (!d) if (1 === r) for (g = 0; g < o; g++) {
                    var x = e.getRawIndex(g);
                    ((_ = h[i[0]][x]) >= u && _ <= c || isNaN(_)) && (a[s++] = x)
                } else for (g = 0; g < o; g++) {
                    for (var S = !0, A = (x = e.getRawIndex(g), 0); A < r; A++) {
                        var b = i[A];
                        ((_ = h[b][x]) < t[b][0] || _ > t[b][1]) && (S = !1)
                    }
                    S && (a[s++] = e.getRawIndex(g))
                }
                return s < o && (e._indices = a), e._count = s, e._extent = [], e._updateGetRawIdx(), e
            }, t.prototype.map = function (t, e) {
                var n = this.clone(t);
                return this._updateDims(n, t, e), n
            }, t.prototype.modify = function (t, e) {
                this._updateDims(this, t, e)
            }, t.prototype._updateDims = function (t, e, n) {
                for (var i = t._chunks, r = [], o = e.length, a = t.count(), s = [], l = t._rawExtent, u = 0; u < e.length; u++) l[e[u]] = [1 / 0, -1 / 0];
                for (var c = 0; c < a; c++) {
                    for (var h = t.getRawIndex(c), d = 0; d < o; d++) s[d] = i[e[d]][h];
                    s[o] = c;
                    var p = n && n.apply(null, s);
                    if (null != p) {
                        "object" != typeof p && (r[0] = p, p = r);
                        for (u = 0; u < p.length; u++) {
                            var f = e[u], g = p[u], m = l[f], y = i[f];
                            y && (y[h] = g), g < m[0] && (m[0] = g), g > m[1] && (m[1] = g)
                        }
                    }
                }
            }, t.prototype.lttbDownSample = function (t, e) {
                var n, i, r, o = this.clone([t], !0), a = o._chunks[t], s = this.count(), l = 0, u = Math.floor(1 / e),
                    c = this.getRawIndex(0), h = new ($p(this._rawCount))(Math.min(2 * (Math.ceil(s / u) + 2), s));
                h[l++] = c;
                for (var d = 1; d < s - 1; d += u) {
                    for (var p = Math.min(d + u, s - 1), f = Math.min(d + 2 * u, s), g = (f + p) / 2, m = 0, y = p; y < f; y++) {
                        var v = a[I = this.getRawIndex(y)];
                        isNaN(v) || (m += v)
                    }
                    m /= f - p;
                    var _ = d, T = Math.min(d + u, s), x = d - 1, S = a[c];
                    n = -1, r = _;
                    var A = -1, b = 0;
                    for (y = _; y < T; y++) {
                        var I;
                        v = a[I = this.getRawIndex(y)];
                        isNaN(v) ? (b++, A < 0 && (A = I)) : (i = Math.abs((x - g) * (v - S) - (x - y) * (m - S))) > n && (n = i, r = I)
                    }
                    b > 0 && b < T - _ && (h[l++] = Math.min(A, r), r = Math.max(A, r)), h[l++] = r, c = r
                }
                return h[l++] = this.getRawIndex(s - 1), o._count = l, o._indices = h, o.getRawIndex = this._getRawIdx, o
            }, t.prototype.downSample = function (t, e, n, i) {
                for (var r = this.clone([t], !0), o = r._chunks, a = [], s = Math.floor(1 / e), l = o[t], u = this.count(), c = r._rawExtent[t] = [1 / 0, -1 / 0], h = new ($p(this._rawCount))(Math.ceil(u / s)), d = 0, p = 0; p < u; p += s) {
                    s > u - p && (s = u - p, a.length = s);
                    for (var f = 0; f < s; f++) {
                        var g = this.getRawIndex(p + f);
                        a[f] = l[g]
                    }
                    var m = n(a), y = this.getRawIndex(Math.min(p + i(a, m) || 0, u - 1));
                    l[y] = m, m < c[0] && (c[0] = m), m > c[1] && (c[1] = m), h[d++] = y
                }
                return r._count = d, r._indices = h, r._updateGetRawIdx(), r
            }, t.prototype.each = function (t, e) {
                if (this._count) for (var n = t.length, i = this._chunks, r = 0, o = this.count(); r < o; r++) {
                    var a = this.getRawIndex(r);
                    switch (n) {
                        case 0:
                            e(r);
                            break;
                        case 1:
                            e(i[t[0]][a], r);
                            break;
                        case 2:
                            e(i[t[0]][a], i[t[1]][a], r);
                            break;
                        default:
                            for (var s = 0, l = []; s < n; s++) l[s] = i[t[s]][a];
                            l[s] = r, e.apply(null, l)
                    }
                }
            }, t.prototype.getDataExtent = function (t) {
                var e = this._chunks[t], n = [1 / 0, -1 / 0];
                if (!e) return n;
                var i, r = this.count();
                if (!this._indices) return this._rawExtent[t].slice();
                if (i = this._extent[t]) return i.slice();
                for (var o = (i = n)[0], a = i[1], s = 0; s < r; s++) {
                    var l = e[this.getRawIndex(s)];
                    l < o && (o = l), l > a && (a = l)
                }
                return i = [o, a], this._extent[t] = i, i
            }, t.prototype.getRawDataItem = function (t) {
                var e = this.getRawIndex(t);
                if (this._provider.persistent) return this._provider.getItem(e);
                for (var n = [], i = this._chunks, r = 0; r < i.length; r++) n.push(i[r][e]);
                return n
            }, t.prototype.clone = function (e, n) {
                var i, r, o = new t, a = this._chunks, s = e && vt(e, (function (t, e) {
                    return t[e] = !0, t
                }), {});
                if (s) for (var l = 0; l < a.length; l++) o._chunks[l] = s[l] ? (i = a[l], r = void 0, (r = i.constructor) === Array ? i.slice() : new r(i)) : a[l]; else o._chunks = a;
                return this._copyCommonProps(o), n || (o._indices = this._cloneIndices()), o._updateGetRawIdx(), o
            }, t.prototype._copyCommonProps = function (t) {
                t._count = this._count, t._rawCount = this._rawCount, t._provider = this._provider, t._dimensions = this._dimensions, t._extent = lt(this._extent), t._rawExtent = lt(this._rawExtent)
            }, t.prototype._cloneIndices = function () {
                if (this._indices) {
                    var t = this._indices.constructor, e = void 0;
                    if (t === Array) {
                        var n = this._indices.length;
                        e = new t(n);
                        for (var i = 0; i < n; i++) e[i] = this._indices[i]
                    } else e = new t(this._indices);
                    return e
                }
                return null
            }, t.prototype._getRawIdxIdentity = function (t) {
                return t
            }, t.prototype._getRawIdx = function (t) {
                return t < this._count && t >= 0 ? this._indices[t] : -1
            }, t.prototype._updateGetRawIdx = function () {
                this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity
            }, t.internalField = function () {
                function t(t, e, n, i) {
                    return wp(t[i], this._dimensions[i])
                }

                Yp = {
                    arrayRows: t, objectRows: function (t, e, n, i) {
                        return wp(t[e], this._dimensions[i])
                    }, keyedColumns: t, original: function (t, e, n, i) {
                        var r = t && (null == t.value ? t : t.value);
                        return wp(r instanceof Array ? r[i] : r, this._dimensions[i])
                    }, typedArray: function (t, e, n, i) {
                        return t[i]
                    }
                }
            }(), t
        }();
        const ef = tf;
        var nf = function () {
            function t(t) {
                this._sourceList = [], this._storeList = [], this._upstreamSignList = [], this._versionSignBase = 0, this._dirty = !0, this._sourceHost = t
            }

            return t.prototype.dirty = function () {
                this._setLocalSource([], []), this._storeList = [], this._dirty = !0
            }, t.prototype._setLocalSource = function (t, e) {
                this._sourceList = t, this._upstreamSignList = e, this._versionSignBase++, this._versionSignBase > 9e10 && (this._versionSignBase = 0)
            }, t.prototype._getVersionSign = function () {
                return this._sourceHost.uid + "_" + this._versionSignBase
            }, t.prototype.prepareSource = function () {
                this._isDirty() && (this._createSource(), this._dirty = !1)
            }, t.prototype._createSource = function () {
                this._setLocalSource([], []);
                var t, e, n = this._sourceHost, i = this._getUpstreamSourceManagers(), r = !!i.length;
                if (of(n)) {
                    var o = n, a = void 0, s = void 0, l = void 0;
                    if (r) {
                        var u = i[0];
                        u.prepareSource(), a = (l = u.getSource()).data, s = l.sourceFormat, e = [u._getVersionSign()]
                    } else s = Mt(a = o.get("data", !0)) ? Xh : Wh, e = [];
                    var c = this._getSourceMetaRawOption() || {}, h = l && l.metaRawOption || {},
                        d = kt(c.seriesLayoutBy, h.seriesLayoutBy) || null, p = kt(c.sourceHeader, h.sourceHeader),
                        f = kt(c.dimensions, h.dimensions);
                    t = d !== h.seriesLayoutBy || !!p != !!h.sourceHeader || f ? [ip(a, {
                        seriesLayoutBy: d,
                        sourceHeader: p,
                        dimensions: f
                    }, s)] : []
                } else {
                    var g = n;
                    if (r) {
                        var m = this._applyTransform(i);
                        t = m.sourceList, e = m.upstreamSignList
                    } else {
                        t = [ip(g.get("source", !0), this._getSourceMetaRawOption(), null)], e = []
                    }
                }
                this._setLocalSource(t, e)
            }, t.prototype._applyTransform = function (t) {
                var e, n = this._sourceHost, i = n.get("transform", !0), r = n.get("fromTransformResult", !0);
                if (null != r) {
                    1 !== t.length && af("")
                }
                var o, a = [], s = [];
                return mt(t, (function (t) {
                    t.prepareSource();
                    var e = t.getSource(r || 0);
                    null == r || e || af(""), a.push(e), s.push(t._getVersionSign())
                })), i ? e = function (t, e, n) {
                    var i = Jo(t), r = i.length;
                    r || Dp("");
                    for (var o = 0, a = r; o < a; o++) e = zp(i[o], e), o !== a - 1 && (e.length = Math.max(e.length, 1));
                    return e
                }(i, a, n.componentIndex) : null != r && (e = [(o = a[0], new ep({
                    data: o.data,
                    sourceFormat: o.sourceFormat,
                    seriesLayoutBy: o.seriesLayoutBy,
                    dimensionsDefine: lt(o.dimensionsDefine),
                    startIndex: o.startIndex,
                    dimensionsDetectedCount: o.dimensionsDetectedCount
                }))]), {sourceList: e, upstreamSignList: s}
            }, t.prototype._isDirty = function () {
                if (this._dirty) return !0;
                for (var t = this._getUpstreamSourceManagers(), e = 0; e < t.length; e++) {
                    var n = t[e];
                    if (n._isDirty() || this._upstreamSignList[e] !== n._getVersionSign()) return !0
                }
            }, t.prototype.getSource = function (t) {
                t = t || 0;
                var e = this._sourceList[t];
                if (!e) {
                    var n = this._getUpstreamSourceManagers();
                    return n[0] && n[0].getSource(t)
                }
                return e
            }, t.prototype.getSharedDataStore = function (t) {
                var e = t.makeStoreSchema();
                return this._innerGetDataStore(e.dimensions, t.source, e.hash)
            }, t.prototype._innerGetDataStore = function (t, e, n) {
                var i = this._storeList, r = i[0];
                r || (r = i[0] = {});
                var o = r[n];
                if (!o) {
                    var a = this._getUpstreamSourceManagers()[0];
                    of(this._sourceHost) && a ? o = a._innerGetDataStore(t, e, n) : (o = new ef).initData(new up(e, t.length), t), r[n] = o
                }
                return o
            }, t.prototype._getUpstreamSourceManagers = function () {
                var t = this._sourceHost;
                if (of(t)) {
                    var e = nd(t);
                    return e ? [e.getSourceManager()] : []
                }
                return yt(function (t) {
                    return t.get("transform", !0) || t.get("fromTransformResult", !0) ? ya(t.ecModel, "dataset", {
                        index: t.get("fromDatasetIndex", !0),
                        id: t.get("fromDatasetId", !0)
                    }, ga).models : []
                }(t), (function (t) {
                    return t.getSourceManager()
                }))
            }, t.prototype._getSourceMetaRawOption = function () {
                var t, e, n, i = this._sourceHost;
                if (of(i)) t = i.get("seriesLayoutBy", !0), e = i.get("sourceHeader", !0), n = i.get("dimensions", !0); else if (!this._getUpstreamSourceManagers().length) {
                    var r = i;
                    t = r.get("seriesLayoutBy", !0), e = r.get("sourceHeader", !0), n = r.get("dimensions", !0)
                }
                return {seriesLayoutBy: t, sourceHeader: e, dimensions: n}
            }, t
        }();

        function rf(t) {
            t.option.transform && Vt(t.option.transform)
        }

        function of(t) {
            return "series" === t.mainType
        }

        function af(t) {
            throw new Error(t)
        }

        var sf = "line-height:1";

        function lf(t, e) {
            var n = t.color || "#6e7079", i = t.fontSize || 12, r = t.fontWeight || "400", o = t.color || "#464646",
                a = t.fontSize || 14, s = t.fontWeight || "900";
            return "html" === e ? {
                nameStyle: "font-size:" + Oe(i + "") + "px;color:" + Oe(n) + ";font-weight:" + Oe(r + ""),
                valueStyle: "font-size:" + Oe(a + "") + "px;color:" + Oe(o) + ";font-weight:" + Oe(s + "")
            } : {nameStyle: {fontSize: i, fill: n, fontWeight: r}, valueStyle: {fontSize: a, fill: o, fontWeight: s}}
        }

        var uf = [0, 10, 20, 30], cf = ["", "\n", "\n\n", "\n\n\n"];

        function hf(t, e) {
            return e.type = t, e
        }

        function df(t) {
            return "section" === t.type
        }

        function pf(t) {
            return df(t) ? gf : mf
        }

        function ff(t) {
            if (df(t)) {
                var e = 0, n = t.blocks.length, i = n > 1 || n > 0 && !t.noHeader;
                return mt(t.blocks, (function (t) {
                    var n = ff(t);
                    n >= e && (e = n + +(i && (!n || df(t) && !t.noHeader)))
                })), e
            }
            return 0
        }

        function gf(t, e, n, i) {
            var r, o = e.noHeader, a = (r = ff(e), {html: uf[r], richText: cf[r]}), s = [], l = e.blocks || [];
            Ft(!l || At(l)), l = l || [];
            var u = t.orderMode;
            if (e.sortBlocks && u) {
                l = l.slice();
                var c = {valueAsc: "asc", valueDesc: "desc"};
                if (Qt(c, u)) {
                    var h = new Rp(c[u], null);
                    l.sort((function (t, e) {
                        return h.evaluate(t.sortParam, e.sortParam)
                    }))
                } else "seriesDesc" === u && l.reverse()
            }
            mt(l, (function (n, r) {
                var o = e.valueFormatter,
                    l = pf(n)(o ? ht(ht({}, t), {valueFormatter: o}) : t, n, r > 0 ? a.html : 0, i);
                null != l && s.push(l)
            }));
            var d = "richText" === t.renderMode ? s.join(a.richText) : vf(s.join(""), o ? n : a.html);
            if (o) return d;
            var p = Th(e.header, "ordinal", t.useUTC), f = lf(i, t.renderMode).nameStyle;
            return "richText" === t.renderMode ? _f(t, p, f) + a.richText + d : vf('<div style="' + f + ";" + sf + ';">' + Oe(p) + "</div>" + d, n)
        }

        function mf(t, e, n, i) {
            var r = t.renderMode, o = e.noName, a = e.noValue, s = !e.markerType, l = e.name, u = t.useUTC,
                c = e.valueFormatter || t.valueFormatter || function (t) {
                    return yt(t = At(t) ? t : [t], (function (t, e) {
                        return Th(t, At(p) ? p[e] : p, u)
                    }))
                };
            if (!o || !a) {
                var h = s ? "" : t.markupStyleCreator.makeTooltipMarker(e.markerType, e.markerColor || "#333", r),
                    d = o ? "" : Th(l, "ordinal", u), p = e.valueType, f = a ? [] : c(e.value), g = !s || !o,
                    m = !s && o, y = lf(i, r), v = y.nameStyle, _ = y.valueStyle;
                return "richText" === r ? (s ? "" : h) + (o ? "" : _f(t, d, v)) + (a ? "" : function (t, e, n, i, r) {
                    var o = [r], a = i ? 10 : 20;
                    return n && o.push({
                        padding: [0, 0, 0, a],
                        align: "right"
                    }), t.markupStyleCreator.wrapRichTextStyle(At(e) ? e.join("  ") : e, o)
                }(t, f, g, m, _)) : vf((s ? "" : h) + (o ? "" : function (t, e, n) {
                    return '<span style="' + n + ";" + (e ? "margin-left:2px" : "") + '">' + Oe(t) + "</span>"
                }(d, !s, v)) + (a ? "" : function (t, e, n, i) {
                    var r = n ? "10px" : "20px", o = e ? "float:right;margin-left:" + r : "";
                    return t = At(t) ? t : [t], '<span style="' + o + ";" + i + '">' + yt(t, (function (t) {
                        return Oe(t)
                    })).join("&nbsp;&nbsp;") + "</span>"
                }(f, g, m, _)), n)
            }
        }

        function yf(t, e, n, i, r, o) {
            if (t) return pf(t)({
                useUTC: r,
                renderMode: n,
                orderMode: i,
                markupStyleCreator: e,
                valueFormatter: t.valueFormatter
            }, t, 0, o)
        }

        function vf(t, e) {
            return '<div style="' + ("margin: " + e + "px 0 0") + ";" + sf + ';">' + t + '<div style="clear:both"></div></div>'
        }

        function _f(t, e, n) {
            return t.markupStyleCreator.wrapRichTextStyle(e, n)
        }

        function Tf(t, e) {
            return bh(t.getData().getItemVisual(e, "style")[t.visualDrawType])
        }

        function xf(t, e) {
            var n = t.get("padding");
            return null != n ? n : "richText" === e ? [8, 10] : 10
        }

        var Sf = function () {
            function t() {
                this.richTextStyles = {}, this._nextStyleNameId = jo()
            }

            return t.prototype._generateStyleName = function () {
                return "__EC_aUTo_" + this._nextStyleNameId++
            }, t.prototype.makeTooltipMarker = function (t, e, n) {
                var i = "richText" === n ? this._generateStyleName() : null, r = function (t, e) {
                    var n = It(t) ? {color: t, extraCssText: e} : t || {}, i = n.color, r = n.type;
                    e = n.extraCssText;
                    var o = n.renderMode || "html";
                    return i ? "html" === o ? "subItem" === r ? '<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:' + Oe(i) + ";" + (e || "") + '"></span>' : '<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:' + Oe(i) + ";" + (e || "") + '"></span>' : {
                        renderMode: o,
                        content: "{" + (n.markerId || "markerX") + "|}  ",
                        style: "subItem" === r ? {
                            width: 4,
                            height: 4,
                            borderRadius: 2,
                            backgroundColor: i
                        } : {width: 10, height: 10, borderRadius: 5, backgroundColor: i}
                    } : ""
                }({color: e, type: t, renderMode: n, markerId: i});
                return It(r) ? r : (this.richTextStyles[i] = r.style, r.content)
            }, t.prototype.wrapRichTextStyle = function (t, e) {
                var n = {};
                At(e) ? mt(e, (function (t) {
                    return ht(n, t)
                })) : ht(n, e);
                var i = this._generateStyleName();
                return this.richTextStyles[i] = n, "{" + i + "|" + t + "}"
            }, t
        }();

        function Af(t) {
            var e, n, i, r, o = t.series, a = t.dataIndex, s = t.multipleSeries, l = o.getData(),
                u = l.mapDimensionsAll("defaultedTooltip"), c = u.length, h = o.getRawValue(a), d = At(h), p = Tf(o, a);
            if (c > 1 || d && !c) {
                var f = function (t, e, n, i, r) {
                    var o = e.getData(), a = vt(t, (function (t, e, n) {
                        var i = o.getDimensionInfo(n);
                        return t || i && !1 !== i.tooltip && null != i.displayName
                    }), !1), s = [], l = [], u = [];

                    function c(t, e) {
                        var n = o.getDimensionInfo(e);
                        n && !1 !== n.otherDims.tooltip && (a ? u.push(hf("nameValue", {
                            markerType: "subItem",
                            markerColor: r,
                            name: n.displayName,
                            value: t,
                            valueType: n.type
                        })) : (s.push(t), l.push(n.type)))
                    }

                    return i.length ? mt(i, (function (t) {
                        c(Tp(o, n, t), t)
                    })) : mt(t, c), {inlineValues: s, inlineValueTypes: l, blocks: u}
                }(h, o, a, u, p);
                e = f.inlineValues, n = f.inlineValueTypes, i = f.blocks, r = f.inlineValues[0]
            } else if (c) {
                var g = l.getDimensionInfo(u[0]);
                r = e = Tp(l, a, u[0]), n = g.type
            } else r = e = d ? h[0] : h;
            var m = la(o), y = m && o.name || "", v = l.getName(a), _ = s ? y : v;
            return hf("section", {
                header: y,
                noHeader: s || !m,
                sortParam: r,
                blocks: [hf("nameValue", {
                    markerType: "item",
                    markerColor: p,
                    name: _,
                    noName: !Ht(_),
                    value: e,
                    valueType: n
                })].concat(i || [])
            })
        }

        var bf = ha();

        function If(t, e) {
            return t.getName(e) || t.getId(e)
        }

        var Ef = "__universalTransitionEnabled", Cf = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e._selectedDataIndicesMap = {}, e
            }

            return G(e, t), e.prototype.init = function (t, e, n) {
                this.seriesIndex = this.componentIndex, this.dataTask = bp({
                    count: wf,
                    reset: Mf
                }), this.dataTask.context = {model: this}, this.mergeDefaultAndTheme(t, n), (bf(this).sourceManager = new nf(this)).prepareSource();
                var i = this.getInitialData(t, n);
                Of(i, this), this.dataTask.context.data = i, bf(this).dataBeforeProcessed = i, Df(this), this._initSelectedMapFromData(i)
            }, e.prototype.mergeDefaultAndTheme = function (t, e) {
                var n = Lh(this), i = n ? kh(t) : {}, r = this.subType;
                Fh.hasClass(r) && (r += "Series"), ut(t, e.getTheme().get(this.subType)), ut(t, this.getDefaultOption()), ta(t, "label", ["show"]), this.fillDataTextStyle(t.data), n && Rh(t, i, n)
            }, e.prototype.mergeOption = function (t, e) {
                t = ut(this.option, t, !0), this.fillDataTextStyle(t.data);
                var n = Lh(this);
                n && Rh(this.option, t, n);
                var i = bf(this).sourceManager;
                i.dirty(), i.prepareSource();
                var r = this.getInitialData(t, e);
                Of(r, this), this.dataTask.dirty(), this.dataTask.context.data = r, bf(this).dataBeforeProcessed = r, Df(this), this._initSelectedMapFromData(r)
            }, e.prototype.fillDataTextStyle = function (t) {
                if (t && !Mt(t)) for (var e = ["show"], n = 0; n < t.length; n++) t[n] && t[n].label && ta(t[n], "label", e)
            }, e.prototype.getInitialData = function (t, e) {
            }, e.prototype.appendData = function (t) {
                this.getRawData().appendData(t.data)
            }, e.prototype.getData = function (t) {
                var e = Rf(this);
                if (e) {
                    var n = e.context.data;
                    return null == t ? n : n.getLinkedData(t)
                }
                return bf(this).data
            }, e.prototype.getAllData = function () {
                var t = this.getData();
                return t && t.getLinkedDataAll ? t.getLinkedDataAll() : [{data: t}]
            }, e.prototype.setData = function (t) {
                var e = Rf(this);
                if (e) {
                    var n = e.context;
                    n.outputData = t, e !== this.dataTask && (n.data = t)
                }
                bf(this).data = t
            }, e.prototype.getEncode = function () {
                var t = this.get("encode", !0);
                if (t) return jt(t)
            }, e.prototype.getSourceManager = function () {
                return bf(this).sourceManager
            }, e.prototype.getSource = function () {
                return this.getSourceManager().getSource()
            }, e.prototype.getRawData = function () {
                return bf(this).dataBeforeProcessed
            }, e.prototype.getColorBy = function () {
                return this.get("colorBy") || "series"
            }, e.prototype.isColorBySeries = function () {
                return "series" === this.getColorBy()
            }, e.prototype.getBaseAxis = function () {
                var t = this.coordinateSystem;
                return t && t.getBaseAxis && t.getBaseAxis()
            }, e.prototype.formatTooltip = function (t, e, n) {
                return Af({series: this, dataIndex: t, multipleSeries: e})
            }, e.prototype.isAnimationEnabled = function () {
                var t = this.ecModel;
                if (H.node && (!t || !t.ssr)) return !1;
                var e = this.getShallow("animation");
                return e && this.getData().count() > this.getShallow("animationThreshold") && (e = !1), !!e
            }, e.prototype.restoreData = function () {
                this.dataTask.dirty()
            }, e.prototype.getColorFromPalette = function (t, e, n) {
                var i = this.ecModel, r = hd.prototype.getColorFromPalette.call(this, t, e, n);
                return r || (r = i.getColorFromPalette(t, e, n)), r
            }, e.prototype.coordDimToDataDim = function (t) {
                return this.getRawData().mapDimensionsAll(t)
            }, e.prototype.getProgressive = function () {
                return this.get("progressive")
            }, e.prototype.getProgressiveThreshold = function () {
                return this.get("progressiveThreshold")
            }, e.prototype.select = function (t, e) {
                this._innerSelect(this.getData(e), t)
            }, e.prototype.unselect = function (t, e) {
                var n = this.option.selectedMap;
                if (n) {
                    var i = this.option.selectedMode, r = this.getData(e);
                    if ("series" === i || "all" === n) return this.option.selectedMap = {}, void (this._selectedDataIndicesMap = {});
                    for (var o = 0; o < t.length; o++) {
                        var a = If(r, t[o]);
                        n[a] = !1, this._selectedDataIndicesMap[a] = -1
                    }
                }
            }, e.prototype.toggleSelect = function (t, e) {
                for (var n = [], i = 0; i < t.length; i++) n[0] = t[i], this.isSelected(t[i], e) ? this.unselect(n, e) : this.select(n, e)
            }, e.prototype.getSelectedDataIndices = function () {
                if ("all" === this.option.selectedMap) return [].slice.call(this.getData().getIndices());
                for (var t = this._selectedDataIndicesMap, e = Tt(t), n = [], i = 0; i < e.length; i++) {
                    var r = t[e[i]];
                    r >= 0 && n.push(r)
                }
                return n
            }, e.prototype.isSelected = function (t, e) {
                var n = this.option.selectedMap;
                if (!n) return !1;
                var i = this.getData(e);
                return ("all" === n || n[If(i, t)]) && !i.getItemModel(t).get(["select", "disabled"])
            }, e.prototype.isUniversalTransitionEnabled = function () {
                if (this[Ef]) return !0;
                var t = this.option.universalTransition;
                return !!t && (!0 === t || t && t.enabled)
            }, e.prototype._innerSelect = function (t, e) {
                var n, i, r = this.option, o = r.selectedMode, a = e.length;
                if (o && a) if ("series" === o) r.selectedMap = "all"; else if ("multiple" === o) {
                    Dt(r.selectedMap) || (r.selectedMap = {});
                    for (var s = r.selectedMap, l = 0; l < a; l++) {
                        var u = e[l];
                        s[h = If(t, u)] = !0, this._selectedDataIndicesMap[h] = t.getRawIndex(u)
                    }
                } else if ("single" === o || !0 === o) {
                    var c = e[a - 1], h = If(t, c);
                    r.selectedMap = ((n = {})[h] = !0, n), this._selectedDataIndicesMap = ((i = {})[h] = t.getRawIndex(c), i)
                }
            }, e.prototype._initSelectedMapFromData = function (t) {
                if (!this.option.selectedMap) {
                    var e = [];
                    t.hasItemOption && t.each((function (n) {
                        var i = t.getRawDataItem(n);
                        i && i.selected && e.push(n)
                    })), e.length > 0 && this._innerSelect(t, e)
                }
            }, e.registerClass = function (t) {
                return Fh.registerClass(t)
            }, e.protoInitialize = function () {
                var t = e.prototype;
                t.type = "series.__base__", t.seriesIndex = 0, t.ignoreStyleOnData = !1, t.hasSymbolVisual = !1, t.defaultSymbol = "circle", t.visualStyleAccessPath = "itemStyle", t.visualDrawType = "fill"
            }(), e
        }(Fh);

        function Df(t) {
            var e = t.name;
            la(t) || (t.name = function (t) {
                var e = t.getRawData(), n = e.mapDimensionsAll("seriesName"), i = [];
                return mt(n, (function (t) {
                    var n = e.getDimensionInfo(t);
                    n.displayName && i.push(n.displayName)
                })), i.join(" ")
            }(t) || e)
        }

        function wf(t) {
            return t.model.getRawData().count()
        }

        function Mf(t) {
            var e = t.model;
            return e.setData(e.getRawData().cloneShallow()), Nf
        }

        function Nf(t, e) {
            e.outputData && t.end > e.outputData.count() && e.model.getRawData().cloneShallow(e.outputData)
        }

        function Of(t, e) {
            mt(Xt(t.CHANGABLE_METHODS, t.DOWNSAMPLE_METHODS), (function (n) {
                t.wrapMethod(n, St(Lf, e))
            }))
        }

        function Lf(t, e) {
            var n = Rf(t);
            return n && n.setOutputEnd((e || this).count()), e
        }

        function Rf(t) {
            var e = (t.ecModel || {}).scheduler, n = e && e.getPipeline(t.uid);
            if (n) {
                var i = n.currentTask;
                if (i) {
                    var r = i.agentStubMap;
                    r && (i = r.get(t.uid))
                }
                return i
            }
        }

        ft(Cf, Sp), ft(Cf, hd), Ea(Cf, Fh);
        const kf = Cf;
        var Pf = function () {
            function t() {
                this.group = new xo, this.uid = Nc("viewComponent")
            }

            return t.prototype.init = function (t, e) {
            }, t.prototype.render = function (t, e, n, i) {
            }, t.prototype.dispose = function (t, e) {
            }, t.prototype.updateView = function (t, e, n, i) {
            }, t.prototype.updateLayout = function (t, e, n, i) {
            }, t.prototype.updateVisual = function (t, e, n, i) {
            }, t.prototype.toggleBlurSeries = function (t, e, n) {
            }, t.prototype.eachRendered = function (t) {
                var e = this.group;
                e && e.traverse(t)
            }, t
        }();
        Ia(Pf), Ma(Pf);
        const Gf = Pf;

        function Bf() {
            var t = ha();
            return function (e) {
                var n = t(e), i = e.pipelineContext, r = !!n.large, o = !!n.progressiveRender,
                    a = n.large = !(!i || !i.large), s = n.progressiveRender = !(!i || !i.progressiveRender);
                return !(r === a && o === s) && "reset"
            }
        }

        var Ff = Hs.CMD, Hf = [[], [], []], Uf = Math.sqrt, Vf = Math.atan2;

        function zf(t, e) {
            if (e) {
                var n, i, r, o, a, s, l = t.data, u = t.len(), c = Ff.M, h = Ff.C, d = Ff.L, p = Ff.R, f = Ff.A,
                    g = Ff.Q;
                for (r = 0, o = 0; r < u;) {
                    switch (n = l[r++], o = r, i = 0, n) {
                        case c:
                        case d:
                            i = 1;
                            break;
                        case h:
                            i = 3;
                            break;
                        case g:
                            i = 2;
                            break;
                        case f:
                            var m = e[4], y = e[5], v = Uf(e[0] * e[0] + e[1] * e[1]),
                                _ = Uf(e[2] * e[2] + e[3] * e[3]), T = Vf(-e[1] / _, e[0] / v);
                            l[r] *= v, l[r++] += m, l[r] *= _, l[r++] += y, l[r++] *= v, l[r++] *= _, l[r++] += T, l[r++] += T, o = r += 2;
                            break;
                        case p:
                            s[0] = l[r++], s[1] = l[r++], ge(s, s, e), l[o++] = s[0], l[o++] = s[1], s[0] += l[r++], s[1] += l[r++], ge(s, s, e), l[o++] = s[0], l[o++] = s[1]
                    }
                    for (a = 0; a < i; a++) {
                        var x = Hf[a];
                        x[0] = l[r++], x[1] = l[r++], ge(x, x, e), l[o++] = x[0], l[o++] = x[1]
                    }
                }
                t.increaseVersion()
            }
        }

        var Wf = Math.sqrt, Yf = Math.sin, qf = Math.cos, jf = Math.PI;

        function Xf(t) {
            return Math.sqrt(t[0] * t[0] + t[1] * t[1])
        }

        function Zf(t, e) {
            return (t[0] * e[0] + t[1] * e[1]) / (Xf(t) * Xf(e))
        }

        function Kf(t, e) {
            return (t[0] * e[1] < t[1] * e[0] ? -1 : 1) * Math.acos(Zf(t, e))
        }

        function Qf(t, e, n, i, r, o, a, s, l, u, c) {
            var h = l * (jf / 180), d = qf(h) * (t - n) / 2 + Yf(h) * (e - i) / 2,
                p = -1 * Yf(h) * (t - n) / 2 + qf(h) * (e - i) / 2, f = d * d / (a * a) + p * p / (s * s);
            f > 1 && (a *= Wf(f), s *= Wf(f));
            var g = (r === o ? -1 : 1) * Wf((a * a * (s * s) - a * a * (p * p) - s * s * (d * d)) / (a * a * (p * p) + s * s * (d * d))) || 0,
                m = g * a * p / s, y = g * -s * d / a, v = (t + n) / 2 + qf(h) * m - Yf(h) * y,
                _ = (e + i) / 2 + Yf(h) * m + qf(h) * y, T = Kf([1, 0], [(d - m) / a, (p - y) / s]),
                x = [(d - m) / a, (p - y) / s], S = [(-1 * d - m) / a, (-1 * p - y) / s], A = Kf(x, S);
            if (Zf(x, S) <= -1 && (A = jf), Zf(x, S) >= 1 && (A = 0), A < 0) {
                var b = Math.round(A / jf * 1e6) / 1e6;
                A = 2 * jf + b % 2 * jf
            }
            c.addData(u, v, _, a, s, T, A, h, o)
        }

        var $f = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi, Jf = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
        var tg = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.applyTransform = function (t) {
            }, e
        }(ll);

        function eg(t) {
            return null != t.setData
        }

        function ng(t, e) {
            var n = function (t) {
                var e = new Hs;
                if (!t) return e;
                var n, i = 0, r = 0, o = i, a = r, s = Hs.CMD, l = t.match($f);
                if (!l) return e;
                for (var u = 0; u < l.length; u++) {
                    for (var c = l[u], h = c.charAt(0), d = void 0, p = c.match(Jf) || [], f = p.length, g = 0; g < f; g++) p[g] = parseFloat(p[g]);
                    for (var m = 0; m < f;) {
                        var y = void 0, v = void 0, _ = void 0, T = void 0, x = void 0, S = void 0, A = void 0, b = i,
                            I = r, E = void 0, C = void 0;
                        switch (h) {
                            case"l":
                                i += p[m++], r += p[m++], d = s.L, e.addData(d, i, r);
                                break;
                            case"L":
                                i = p[m++], r = p[m++], d = s.L, e.addData(d, i, r);
                                break;
                            case"m":
                                i += p[m++], r += p[m++], d = s.M, e.addData(d, i, r), o = i, a = r, h = "l";
                                break;
                            case"M":
                                i = p[m++], r = p[m++], d = s.M, e.addData(d, i, r), o = i, a = r, h = "L";
                                break;
                            case"h":
                                i += p[m++], d = s.L, e.addData(d, i, r);
                                break;
                            case"H":
                                i = p[m++], d = s.L, e.addData(d, i, r);
                                break;
                            case"v":
                                r += p[m++], d = s.L, e.addData(d, i, r);
                                break;
                            case"V":
                                r = p[m++], d = s.L, e.addData(d, i, r);
                                break;
                            case"C":
                                d = s.C, e.addData(d, p[m++], p[m++], p[m++], p[m++], p[m++], p[m++]), i = p[m - 2], r = p[m - 1];
                                break;
                            case"c":
                                d = s.C, e.addData(d, p[m++] + i, p[m++] + r, p[m++] + i, p[m++] + r, p[m++] + i, p[m++] + r), i += p[m - 2], r += p[m - 1];
                                break;
                            case"S":
                                y = i, v = r, E = e.len(), C = e.data, n === s.C && (y += i - C[E - 4], v += r - C[E - 3]), d = s.C, b = p[m++], I = p[m++], i = p[m++], r = p[m++], e.addData(d, y, v, b, I, i, r);
                                break;
                            case"s":
                                y = i, v = r, E = e.len(), C = e.data, n === s.C && (y += i - C[E - 4], v += r - C[E - 3]), d = s.C, b = i + p[m++], I = r + p[m++], i += p[m++], r += p[m++], e.addData(d, y, v, b, I, i, r);
                                break;
                            case"Q":
                                b = p[m++], I = p[m++], i = p[m++], r = p[m++], d = s.Q, e.addData(d, b, I, i, r);
                                break;
                            case"q":
                                b = p[m++] + i, I = p[m++] + r, i += p[m++], r += p[m++], d = s.Q, e.addData(d, b, I, i, r);
                                break;
                            case"T":
                                y = i, v = r, E = e.len(), C = e.data, n === s.Q && (y += i - C[E - 4], v += r - C[E - 3]), i = p[m++], r = p[m++], d = s.Q, e.addData(d, y, v, i, r);
                                break;
                            case"t":
                                y = i, v = r, E = e.len(), C = e.data, n === s.Q && (y += i - C[E - 4], v += r - C[E - 3]), i += p[m++], r += p[m++], d = s.Q, e.addData(d, y, v, i, r);
                                break;
                            case"A":
                                _ = p[m++], T = p[m++], x = p[m++], S = p[m++], A = p[m++], Qf(b = i, I = r, i = p[m++], r = p[m++], S, A, _, T, x, d = s.A, e);
                                break;
                            case"a":
                                _ = p[m++], T = p[m++], x = p[m++], S = p[m++], A = p[m++], Qf(b = i, I = r, i += p[m++], r += p[m++], S, A, _, T, x, d = s.A, e)
                        }
                    }
                    "z" !== h && "Z" !== h || (d = s.Z, e.addData(d), i = o, r = a), n = d
                }
                return e.toStatic(), e
            }(t), i = ht({}, e);
            return i.buildPath = function (t) {
                if (eg(t)) {
                    t.setData(n.data), (e = t.getContext()) && t.rebuildPath(e, 1)
                } else {
                    var e = t;
                    n.rebuildPath(e, 1)
                }
            }, i.applyTransform = function (t) {
                zf(n, t), this.dirtyShape()
            }, i
        }

        function ig(t, e) {
            return new tg(ng(t, e))
        }

        function rg(t, e) {
            e = e || {};
            var n = new ll;
            return t.shape && n.setShape(t.shape), n.setStyle(t.style), e.bakeTransform ? zf(n.path, t.getComputedTransform()) : e.toLocal ? n.setLocalTransform(t.getComputedTransform()) : n.copyTransform(t), n.buildPath = t.buildPath, n.applyTransform = n.applyTransform, n.z = t.z, n.z2 = t.z2, n.zlevel = t.zlevel, n
        }

        var og = function () {
            this.cx = 0, this.cy = 0, this.r = 0
        }, ag = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new og
            }, e.prototype.buildPath = function (t, e) {
                t.moveTo(e.cx + e.r, e.cy), t.arc(e.cx, e.cy, e.r, 0, 2 * Math.PI)
            }, e
        }(ll);
        ag.prototype.type = "circle";
        const sg = ag;
        var lg = function () {
            this.cx = 0, this.cy = 0, this.rx = 0, this.ry = 0
        }, ug = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new lg
            }, e.prototype.buildPath = function (t, e) {
                var n = .5522848, i = e.cx, r = e.cy, o = e.rx, a = e.ry, s = o * n, l = a * n;
                t.moveTo(i - o, r), t.bezierCurveTo(i - o, r - l, i - s, r - a, i, r - a), t.bezierCurveTo(i + s, r - a, i + o, r - l, i + o, r), t.bezierCurveTo(i + o, r + l, i + s, r + a, i, r + a), t.bezierCurveTo(i - s, r + a, i - o, r + l, i - o, r), t.closePath()
            }, e
        }(ll);
        ug.prototype.type = "ellipse";
        const cg = ug;
        var hg = Math.PI, dg = 2 * hg, pg = Math.sin, fg = Math.cos, gg = Math.acos, mg = Math.atan2, yg = Math.abs,
            vg = Math.sqrt, _g = Math.max, Tg = Math.min, xg = 1e-4;

        function Sg(t, e, n, i, r, o, a) {
            var s = t - n, l = e - i, u = (a ? o : -o) / vg(s * s + l * l), c = u * l, h = -u * s, d = t + c, p = e + h,
                f = n + c, g = i + h, m = (d + f) / 2, y = (p + g) / 2, v = f - d, _ = g - p, T = v * v + _ * _,
                x = r - o, S = d * g - f * p, A = (_ < 0 ? -1 : 1) * vg(_g(0, x * x * T - S * S)),
                b = (S * _ - v * A) / T, I = (-S * v - _ * A) / T, E = (S * _ + v * A) / T, C = (-S * v + _ * A) / T,
                D = b - m, w = I - y, M = E - m, N = C - y;
            return D * D + w * w > M * M + N * N && (b = E, I = C), {
                cx: b,
                cy: I,
                x0: -c,
                y0: -h,
                x1: b * (r / x - 1),
                y1: I * (r / x - 1)
            }
        }

        function Ag(t, e) {
            var n, i = _g(e.r, 0), r = _g(e.r0 || 0, 0), o = i > 0;
            if (o || r > 0) {
                if (o || (i = r, r = 0), r > i) {
                    var a = i;
                    i = r, r = a
                }
                var s = e.startAngle, l = e.endAngle;
                if (!isNaN(s) && !isNaN(l)) {
                    var u = e.cx, c = e.cy, h = !!e.clockwise, d = yg(l - s), p = d > dg && d % dg;
                    if (p > xg && (d = p), i > xg) if (d > dg - xg) t.moveTo(u + i * fg(s), c + i * pg(s)), t.arc(u, c, i, s, l, !h), r > xg && (t.moveTo(u + r * fg(l), c + r * pg(l)), t.arc(u, c, r, l, s, h)); else {
                        var f = void 0, g = void 0, m = void 0, y = void 0, v = void 0, _ = void 0, T = void 0,
                            x = void 0, S = void 0, A = void 0, b = void 0, I = void 0, E = void 0, C = void 0,
                            D = void 0, w = void 0, M = i * fg(s), N = i * pg(s), O = r * fg(l), L = r * pg(l),
                            R = d > xg;
                        if (R) {
                            var k = e.cornerRadius;
                            k && (n = function (t) {
                                var e;
                                if (At(t)) {
                                    var n = t.length;
                                    if (!n) return t;
                                    e = 1 === n ? [t[0], t[0], 0, 0] : 2 === n ? [t[0], t[0], t[1], t[1]] : 3 === n ? t.concat(t[2]) : t
                                } else e = [t, t, t, t];
                                return e
                            }(k), f = n[0], g = n[1], m = n[2], y = n[3]);
                            var P = yg(i - r) / 2;
                            if (v = Tg(P, m), _ = Tg(P, y), T = Tg(P, f), x = Tg(P, g), b = S = _g(v, _), I = A = _g(T, x), (S > xg || A > xg) && (E = i * fg(l), C = i * pg(l), D = r * fg(s), w = r * pg(s), d < hg)) {
                                var G = function (t, e, n, i, r, o, a, s) {
                                    var l = n - t, u = i - e, c = a - r, h = s - o, d = h * l - c * u;
                                    if (!(d * d < xg)) return [t + (d = (c * (e - o) - h * (t - r)) / d) * l, e + d * u]
                                }(M, N, D, w, E, C, O, L);
                                if (G) {
                                    var B = M - G[0], F = N - G[1], H = E - G[0], U = C - G[1],
                                        V = 1 / pg(gg((B * H + F * U) / (vg(B * B + F * F) * vg(H * H + U * U))) / 2),
                                        z = vg(G[0] * G[0] + G[1] * G[1]);
                                    b = Tg(S, (i - z) / (V + 1)), I = Tg(A, (r - z) / (V - 1))
                                }
                            }
                        }
                        if (R) if (b > xg) {
                            var W = Tg(m, b), Y = Tg(y, b), q = Sg(D, w, M, N, i, W, h), j = Sg(E, C, O, L, i, Y, h);
                            t.moveTo(u + q.cx + q.x0, c + q.cy + q.y0), b < S && W === Y ? t.arc(u + q.cx, c + q.cy, b, mg(q.y0, q.x0), mg(j.y0, j.x0), !h) : (W > 0 && t.arc(u + q.cx, c + q.cy, W, mg(q.y0, q.x0), mg(q.y1, q.x1), !h), t.arc(u, c, i, mg(q.cy + q.y1, q.cx + q.x1), mg(j.cy + j.y1, j.cx + j.x1), !h), Y > 0 && t.arc(u + j.cx, c + j.cy, Y, mg(j.y1, j.x1), mg(j.y0, j.x0), !h))
                        } else t.moveTo(u + M, c + N), t.arc(u, c, i, s, l, !h); else t.moveTo(u + M, c + N);
                        if (r > xg && R) if (I > xg) {
                            W = Tg(f, I), q = Sg(O, L, E, C, r, -(Y = Tg(g, I)), h), j = Sg(M, N, D, w, r, -W, h);
                            t.lineTo(u + q.cx + q.x0, c + q.cy + q.y0), I < A && W === Y ? t.arc(u + q.cx, c + q.cy, I, mg(q.y0, q.x0), mg(j.y0, j.x0), !h) : (Y > 0 && t.arc(u + q.cx, c + q.cy, Y, mg(q.y0, q.x0), mg(q.y1, q.x1), !h), t.arc(u, c, r, mg(q.cy + q.y1, q.cx + q.x1), mg(j.cy + j.y1, j.cx + j.x1), h), W > 0 && t.arc(u + j.cx, c + j.cy, W, mg(j.y1, j.x1), mg(j.y0, j.x0), !h))
                        } else t.lineTo(u + O, c + L), t.arc(u, c, r, l, s, h); else t.lineTo(u + O, c + L)
                    } else t.moveTo(u, c);
                    t.closePath()
                }
            }
        }

        var bg = function () {
            this.cx = 0, this.cy = 0, this.r0 = 0, this.r = 0, this.startAngle = 0, this.endAngle = 2 * Math.PI, this.clockwise = !0, this.cornerRadius = 0
        }, Ig = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new bg
            }, e.prototype.buildPath = function (t, e) {
                Ag(t, e)
            }, e.prototype.isZeroArea = function () {
                return this.shape.startAngle === this.shape.endAngle || this.shape.r === this.shape.r0
            }, e
        }(ll);
        Ig.prototype.type = "sector";
        const Eg = Ig;
        var Cg = function () {
            this.cx = 0, this.cy = 0, this.r = 0, this.r0 = 0
        }, Dg = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new Cg
            }, e.prototype.buildPath = function (t, e) {
                var n = e.cx, i = e.cy, r = 2 * Math.PI;
                t.moveTo(n + e.r, i), t.arc(n, i, e.r, 0, r, !1), t.moveTo(n + e.r0, i), t.arc(n, i, e.r0, 0, r, !0)
            }, e
        }(ll);
        Dg.prototype.type = "ring";
        const wg = Dg;

        function Mg(t, e, n) {
            var i = e.smooth, r = e.points;
            if (r && r.length >= 2) {
                if (i) {
                    var o = function (t, e, n, i) {
                        var r, o, a, s, l = [], u = [], c = [], h = [];
                        if (i) {
                            a = [1 / 0, 1 / 0], s = [-1 / 0, -1 / 0];
                            for (var d = 0, p = t.length; d < p; d++) me(a, a, t[d]), ye(s, s, t[d]);
                            me(a, a, i[0]), ye(s, s, i[1])
                        }
                        for (d = 0, p = t.length; d < p; d++) {
                            var f = t[d];
                            if (n) r = t[d ? d - 1 : p - 1], o = t[(d + 1) % p]; else {
                                if (0 === d || d === p - 1) {
                                    l.push(ne(t[d]));
                                    continue
                                }
                                r = t[d - 1], o = t[d + 1]
                            }
                            ae(u, o, r), ue(u, u, e);
                            var g = he(f, r), m = he(f, o), y = g + m;
                            0 !== y && (g /= y, m /= y), ue(c, u, -g), ue(h, u, m);
                            var v = re([], f, c), _ = re([], f, h);
                            i && (ye(v, v, a), me(v, v, s), ye(_, _, a), me(_, _, s)), l.push(v), l.push(_)
                        }
                        return n && l.push(l.shift()), l
                    }(r, i, n, e.smoothConstraint);
                    t.moveTo(r[0][0], r[0][1]);
                    for (var a = r.length, s = 0; s < (n ? a : a - 1); s++) {
                        var l = o[2 * s], u = o[2 * s + 1], c = r[(s + 1) % a];
                        t.bezierCurveTo(l[0], l[1], u[0], u[1], c[0], c[1])
                    }
                } else {
                    t.moveTo(r[0][0], r[0][1]);
                    s = 1;
                    for (var h = r.length; s < h; s++) t.lineTo(r[s][0], r[s][1])
                }
                n && t.closePath()
            }
        }

        var Ng = function () {
            this.points = null, this.smooth = 0, this.smoothConstraint = null
        }, Og = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new Ng
            }, e.prototype.buildPath = function (t, e) {
                Mg(t, e, !0)
            }, e
        }(ll);
        Og.prototype.type = "polygon";
        const Lg = Og;
        var Rg = function () {
            this.points = null, this.percent = 1, this.smooth = 0, this.smoothConstraint = null
        }, kg = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultStyle = function () {
                return {stroke: "#000", fill: null}
            }, e.prototype.getDefaultShape = function () {
                return new Rg
            }, e.prototype.buildPath = function (t, e) {
                Mg(t, e, !1)
            }, e
        }(ll);
        kg.prototype.type = "polyline";
        const Pg = kg;
        var Gg = {}, Bg = function () {
            this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1
        }, Fg = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultStyle = function () {
                return {stroke: "#000", fill: null}
            }, e.prototype.getDefaultShape = function () {
                return new Bg
            }, e.prototype.buildPath = function (t, e) {
                var n, i, r, o;
                if (this.subPixelOptimize) {
                    var a = yl(Gg, e, this.style);
                    n = a.x1, i = a.y1, r = a.x2, o = a.y2
                } else n = e.x1, i = e.y1, r = e.x2, o = e.y2;
                var s = e.percent;
                0 !== s && (t.moveTo(n, i), s < 1 && (r = n * (1 - s) + r * s, o = i * (1 - s) + o * s), t.lineTo(r, o))
            }, e.prototype.pointAt = function (t) {
                var e = this.shape;
                return [e.x1 * (1 - t) + e.x2 * t, e.y1 * (1 - t) + e.y2 * t]
            }, e
        }(ll);
        Fg.prototype.type = "line";
        const Hg = Fg;
        var Ug = [], Vg = function () {
            this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.cpx1 = 0, this.cpy1 = 0, this.percent = 1
        };

        function zg(t, e, n) {
            var i = t.cpx2, r = t.cpy2;
            return null != i || null != r ? [(n ? Jn : $n)(t.x1, t.cpx1, t.cpx2, t.x2, e), (n ? Jn : $n)(t.y1, t.cpy1, t.cpy2, t.y2, e)] : [(n ? ai : oi)(t.x1, t.cpx1, t.x2, e), (n ? ai : oi)(t.y1, t.cpy1, t.y2, e)]
        }

        var Wg = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultStyle = function () {
                return {stroke: "#000", fill: null}
            }, e.prototype.getDefaultShape = function () {
                return new Vg
            }, e.prototype.buildPath = function (t, e) {
                var n = e.x1, i = e.y1, r = e.x2, o = e.y2, a = e.cpx1, s = e.cpy1, l = e.cpx2, u = e.cpy2,
                    c = e.percent;
                0 !== c && (t.moveTo(n, i), null == l || null == u ? (c < 1 && (li(n, a, r, c, Ug), a = Ug[1], r = Ug[2], li(i, s, o, c, Ug), s = Ug[1], o = Ug[2]), t.quadraticCurveTo(a, s, r, o)) : (c < 1 && (ni(n, a, l, r, c, Ug), a = Ug[1], l = Ug[2], r = Ug[3], ni(i, s, u, o, c, Ug), s = Ug[1], u = Ug[2], o = Ug[3]), t.bezierCurveTo(a, s, l, u, r, o)))
            }, e.prototype.pointAt = function (t) {
                return zg(this.shape, t, !1)
            }, e.prototype.tangentAt = function (t) {
                var e = zg(this.shape, t, !0);
                return ce(e, e)
            }, e
        }(ll);
        Wg.prototype.type = "bezier-curve";
        const Yg = Wg;
        var qg = function () {
            this.cx = 0, this.cy = 0, this.r = 0, this.startAngle = 0, this.endAngle = 2 * Math.PI, this.clockwise = !0
        }, jg = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultStyle = function () {
                return {stroke: "#000", fill: null}
            }, e.prototype.getDefaultShape = function () {
                return new qg
            }, e.prototype.buildPath = function (t, e) {
                var n = e.cx, i = e.cy, r = Math.max(e.r, 0), o = e.startAngle, a = e.endAngle, s = e.clockwise,
                    l = Math.cos(o), u = Math.sin(o);
                t.moveTo(l * r + n, u * r + i), t.arc(n, i, r, o, a, !s)
            }, e
        }(ll);
        jg.prototype.type = "arc";
        const Xg = jg;
        var Zg = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.type = "compound", e
            }

            return G(e, t), e.prototype._updatePathDirty = function () {
                for (var t = this.shape.paths, e = this.shapeChanged(), n = 0; n < t.length; n++) e = e || t[n].shapeChanged();
                e && this.dirtyShape()
            }, e.prototype.beforeBrush = function () {
                this._updatePathDirty();
                for (var t = this.shape.paths || [], e = this.getGlobalScale(), n = 0; n < t.length; n++) t[n].path || t[n].createPathProxy(), t[n].path.setScale(e[0], e[1], t[n].segmentIgnoreThreshold)
            }, e.prototype.buildPath = function (t, e) {
                for (var n = e.paths || [], i = 0; i < n.length; i++) n[i].buildPath(t, n[i].shape, !0)
            }, e.prototype.afterBrush = function () {
                for (var t = this.shape.paths || [], e = 0; e < t.length; e++) t[e].pathUpdated()
            }, e.prototype.getBoundingRect = function () {
                return this._updatePathDirty.call(this), ll.prototype.getBoundingRect.call(this)
            }, e
        }(ll);
        const Kg = Zg;
        const Qg = function () {
            function t(t) {
                this.colorStops = t || []
            }

            return t.prototype.addColorStop = function (t, e) {
                this.colorStops.push({offset: t, color: e})
            }, t
        }();
        const $g = function (t) {
            function e(e, n, i, r, o, a) {
                var s = t.call(this, o) || this;
                return s.x = null == e ? 0 : e, s.y = null == n ? 0 : n, s.x2 = null == i ? 1 : i, s.y2 = null == r ? 0 : r, s.type = "linear", s.global = a || !1, s
            }

            return G(e, t), e
        }(Qg);
        const Jg = function (t) {
            function e(e, n, i, r, o) {
                var a = t.call(this, r) || this;
                return a.x = null == e ? .5 : e, a.y = null == n ? .5 : n, a.r = null == i ? .5 : i, a.type = "radial", a.global = o || !1, a
            }

            return G(e, t), e
        }(Qg);
        var tm = [0, 0], em = [0, 0], nm = new tn, im = new tn, rm = function () {
            function t(t, e) {
                this._corners = [], this._axes = [], this._origin = [0, 0];
                for (var n = 0; n < 4; n++) this._corners[n] = new tn;
                for (n = 0; n < 2; n++) this._axes[n] = new tn;
                t && this.fromBoundingRect(t, e)
            }

            return t.prototype.fromBoundingRect = function (t, e) {
                var n = this._corners, i = this._axes, r = t.x, o = t.y, a = r + t.width, s = o + t.height;
                if (n[0].set(r, o), n[1].set(a, o), n[2].set(a, s), n[3].set(r, s), e) for (var l = 0; l < 4; l++) n[l].transform(e);
                tn.sub(i[0], n[1], n[0]), tn.sub(i[1], n[3], n[0]), i[0].normalize(), i[1].normalize();
                for (l = 0; l < 2; l++) this._origin[l] = i[l].dot(n[0])
            }, t.prototype.intersect = function (t, e) {
                var n = !0, i = !e;
                return nm.set(1 / 0, 1 / 0), im.set(0, 0), !this._intersectCheckOneSide(this, t, nm, im, i, 1) && (n = !1, i) || !this._intersectCheckOneSide(t, this, nm, im, i, -1) && (n = !1, i) || i || tn.copy(e, n ? nm : im), n
            }, t.prototype._intersectCheckOneSide = function (t, e, n, i, r, o) {
                for (var a = !0, s = 0; s < 2; s++) {
                    var l = this._axes[s];
                    if (this._getProjMinMaxOnAxis(s, t._corners, tm), this._getProjMinMaxOnAxis(s, e._corners, em), tm[1] < em[0] || tm[0] > em[1]) {
                        if (a = !1, r) return a;
                        var u = Math.abs(em[0] - tm[1]), c = Math.abs(tm[0] - em[1]);
                        Math.min(u, c) > i.len() && (u < c ? tn.scale(i, l, -u * o) : tn.scale(i, l, c * o))
                    } else if (n) {
                        u = Math.abs(em[0] - tm[1]), c = Math.abs(tm[0] - em[1]);
                        Math.min(u, c) < n.len() && (u < c ? tn.scale(n, l, u * o) : tn.scale(n, l, -c * o))
                    }
                }
                return a
            }, t.prototype._getProjMinMaxOnAxis = function (t, e, n) {
                for (var i = this._axes[t], r = this._origin, o = e[0].dot(i) + r[t], a = o, s = o, l = 1; l < e.length; l++) {
                    var u = e[l].dot(i) + r[t];
                    a = Math.min(u, a), s = Math.max(u, s)
                }
                n[0] = a, n[1] = s
            }, t
        }();
        const om = rm;
        var am = [], sm = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.notClear = !0, e.incremental = !0, e._displayables = [], e._temporaryDisplayables = [], e._cursor = 0, e
            }

            return G(e, t), e.prototype.traverse = function (t, e) {
                t.call(e, this)
            }, e.prototype.useStyle = function () {
                this.style = {}
            }, e.prototype.getCursor = function () {
                return this._cursor
            }, e.prototype.innerAfterBrush = function () {
                this._cursor = this._displayables.length
            }, e.prototype.clearDisplaybles = function () {
                this._displayables = [], this._temporaryDisplayables = [], this._cursor = 0, this.markRedraw(), this.notClear = !1
            }, e.prototype.clearTemporalDisplayables = function () {
                this._temporaryDisplayables = []
            }, e.prototype.addDisplayable = function (t, e) {
                e ? this._temporaryDisplayables.push(t) : this._displayables.push(t), this.markRedraw()
            }, e.prototype.addDisplayables = function (t, e) {
                e = e || !1;
                for (var n = 0; n < t.length; n++) this.addDisplayable(t[n], e)
            }, e.prototype.getDisplayables = function () {
                return this._displayables
            }, e.prototype.getTemporalDisplayables = function () {
                return this._temporaryDisplayables
            }, e.prototype.eachPendingDisplayable = function (t) {
                for (var e = this._cursor; e < this._displayables.length; e++) t && t(this._displayables[e]);
                for (e = 0; e < this._temporaryDisplayables.length; e++) t && t(this._temporaryDisplayables[e])
            }, e.prototype.update = function () {
                this.updateTransform();
                for (var t = this._cursor; t < this._displayables.length; t++) {
                    (e = this._displayables[t]).parent = this, e.update(), e.parent = null
                }
                for (t = 0; t < this._temporaryDisplayables.length; t++) {
                    var e;
                    (e = this._temporaryDisplayables[t]).parent = this, e.update(), e.parent = null
                }
            }, e.prototype.getBoundingRect = function () {
                if (!this._rect) {
                    for (var t = new hn(1 / 0, 1 / 0, -1 / 0, -1 / 0), e = 0; e < this._displayables.length; e++) {
                        var n = this._displayables[e], i = n.getBoundingRect().clone();
                        n.needLocalTransform() && i.applyTransform(n.getLocalTransform(am)), t.union(i)
                    }
                    this._rect = t
                }
                return this._rect
            }, e.prototype.contain = function (t, e) {
                var n = this.transformCoordToLocal(t, e);
                if (this.getBoundingRect().contain(n[0], n[1])) for (var i = 0; i < this._displayables.length; i++) {
                    if (this._displayables[i].contain(t, e)) return !0
                }
                return !1
            }, e
        }(os);
        const lm = sm;
        var um = Math.max, cm = Math.min, hm = {};

        function dm(t) {
            return ll.extend(t)
        }

        var pm = function (t, e) {
            var n = ng(t, e);
            return function (t) {
                function e(e) {
                    var i = t.call(this, e) || this;
                    return i.applyTransform = n.applyTransform, i.buildPath = n.buildPath, i
                }

                return G(e, t), e
            }(tg)
        };

        function fm(t, e) {
            return pm(t, e)
        }

        function gm(t, e) {
            hm[t] = e
        }

        function mm(t) {
            if (hm.hasOwnProperty(t)) return hm[t]
        }

        function ym(t, e, n, i) {
            var r = ig(t, e);
            return n && ("center" === i && (n = _m(n, r.getBoundingRect())), xm(r, n)), r
        }

        function vm(t, e, n) {
            var i = new gl({
                style: {image: t, x: e.x, y: e.y, width: e.width, height: e.height}, onload: function (t) {
                    if ("center" === n) {
                        var r = {width: t.width, height: t.height};
                        i.setStyle(_m(e, r))
                    }
                }
            });
            return i
        }

        function _m(t, e) {
            var n, i = e.width / e.height, r = t.height * i;
            return n = r <= t.width ? t.height : (r = t.width) / i, {
                x: t.x + t.width / 2 - r / 2,
                y: t.y + t.height / 2 - n / 2,
                width: r,
                height: n
            }
        }

        var Tm = function (t, e) {
            for (var n = [], i = t.length, r = 0; r < i; r++) {
                var o = t[r];
                n.push(o.getUpdatedPathProxy(!0))
            }
            var a = new ll(e);
            return a.createPathProxy(), a.buildPath = function (t) {
                if (eg(t)) {
                    t.appendPath(n);
                    var e = t.getContext();
                    e && t.rebuildPath(e, 1)
                }
            }, a
        };

        function xm(t, e) {
            if (t.applyTransform) {
                var n = t.getBoundingRect().calculateTransform(e);
                t.applyTransform(n)
            }
        }

        function Sm(t, e) {
            return yl(t, t, {lineWidth: e}), t
        }

        function Am(t) {
            return vl(t.shape, t.shape, t.style), t
        }

        var bm = _l;

        function Im(t, e) {
            for (var n = qe([]); t && t !== e;) Xe(n, t.getLocalTransform(), n), t = t.parent;
            return n
        }

        function Em(t, e, n) {
            return e && !gt(e) && (e = $r.getLocalTransform(e)), n && (e = $e([], e)), ge([], t, e)
        }

        function Cm(t, e, n) {
            var i = 0 === e[4] || 0 === e[5] || 0 === e[0] ? 1 : Math.abs(2 * e[4] / e[0]),
                r = 0 === e[4] || 0 === e[5] || 0 === e[2] ? 1 : Math.abs(2 * e[4] / e[2]),
                o = ["left" === t ? -i : "right" === t ? i : 0, "top" === t ? -r : "bottom" === t ? r : 0];
            return o = Em(o, e, n), Math.abs(o[0]) > Math.abs(o[1]) ? o[0] > 0 ? "right" : "left" : o[1] > 0 ? "bottom" : "top"
        }

        function Dm(t) {
            return !t.isGroup
        }

        function wm(t, e, n) {
            if (t && e) {
                var i, r = (i = {}, t.traverse((function (t) {
                    Dm(t) && t.anid && (i[t.anid] = t)
                })), i);
                e.traverse((function (t) {
                    if (Dm(t) && t.anid) {
                        var e = r[t.anid];
                        if (e) {
                            var i = o(t);
                            t.attr(o(e)), ju(t, i, n, Hl(t).dataIndex)
                        }
                    }
                }))
            }

            function o(t) {
                var e = {x: t.x, y: t.y, rotation: t.rotation};
                return function (t) {
                    return null != t.shape
                }(t) && (e.shape = ht({}, t.shape)), e
            }
        }

        function Mm(t, e) {
            return yt(t, (function (t) {
                var n = t[0];
                n = um(n, e.x), n = cm(n, e.x + e.width);
                var i = t[1];
                return i = um(i, e.y), [n, i = cm(i, e.y + e.height)]
            }))
        }

        function Nm(t, e) {
            var n = um(t.x, e.x), i = cm(t.x + t.width, e.x + e.width), r = um(t.y, e.y),
                o = cm(t.y + t.height, e.y + e.height);
            if (i >= n && o >= r) return {x: n, y: r, width: i - n, height: o - r}
        }

        function Om(t, e, n) {
            var i = ht({rectHover: !0}, e), r = i.style = {strokeNoScale: !0};
            if (n = n || {
                x: -1,
                y: -1,
                width: 2,
                height: 2
            }, t) return 0 === t.indexOf("image://") ? (r.image = t.slice(8), dt(r, n), new gl(i)) : ym(t.replace("path://", ""), i, n, "center")
        }

        function Lm(t, e, n, i, r) {
            for (var o = 0, a = r[r.length - 1]; o < r.length; o++) {
                var s = r[o];
                if (Rm(t, e, n, i, s[0], s[1], a[0], a[1])) return !0;
                a = s
            }
        }

        function Rm(t, e, n, i, r, o, a, s) {
            var l, u = n - t, c = i - e, h = a - r, d = s - o, p = km(h, d, u, c);
            if ((l = p) <= 1e-6 && l >= -1e-6) return !1;
            var f = t - r, g = e - o, m = km(f, g, u, c) / p;
            if (m < 0 || m > 1) return !1;
            var y = km(f, g, h, d) / p;
            return !(y < 0 || y > 1)
        }

        function km(t, e, n, i) {
            return t * i - n * e
        }

        function Pm(t) {
            var e = t.itemTooltipOption, n = t.componentModel, i = t.itemName, r = It(e) ? {formatter: e} : e,
                o = n.mainType, a = n.componentIndex, s = {componentType: o, name: i, $vars: ["name"]};
            s[o + "Index"] = a;
            var l = t.formatterParamsExtra;
            l && mt(Tt(l), (function (t) {
                Qt(s, t) || (s[t] = l[t], s.$vars.push(t))
            }));
            var u = Hl(t.el);
            u.componentMainType = o, u.componentIndex = a, u.tooltipConfig = {
                name: i,
                option: dt({content: i, formatterParams: s}, r)
            }
        }

        function Gm(t, e) {
            var n;
            t.isGroup && (n = e(t)), n || t.traverse(e)
        }

        function Bm(t, e) {
            if (t) if (At(t)) for (var n = 0; n < t.length; n++) Gm(t[n], e); else Gm(t, e)
        }

        gm("circle", sg), gm("ellipse", cg), gm("sector", Eg), gm("ring", wg), gm("polygon", Lg), gm("polyline", Pg), gm("rect", Al), gm("line", Hg), gm("bezierCurve", Yg), gm("arc", Xg);
        var Fm = ha(), Hm = Bf(), Um = function () {
            function t() {
                this.group = new xo, this.uid = Nc("viewChart"), this.renderTask = bp({
                    plan: Wm,
                    reset: Ym
                }), this.renderTask.context = {view: this}
            }

            return t.prototype.init = function (t, e) {
            }, t.prototype.render = function (t, e, n, i) {
                0
            }, t.prototype.highlight = function (t, e, n, i) {
                var r = t.getData(i && i.dataType);
                r && zm(r, i, "emphasis")
            }, t.prototype.downplay = function (t, e, n, i) {
                var r = t.getData(i && i.dataType);
                r && zm(r, i, "normal")
            }, t.prototype.remove = function (t, e) {
                this.group.removeAll()
            }, t.prototype.dispose = function (t, e) {
            }, t.prototype.updateView = function (t, e, n, i) {
                this.render(t, e, n, i)
            }, t.prototype.updateLayout = function (t, e, n, i) {
                this.render(t, e, n, i)
            }, t.prototype.updateVisual = function (t, e, n, i) {
                this.render(t, e, n, i)
            }, t.prototype.eachRendered = function (t) {
                Bm(this.group, t)
            }, t.markUpdateMethod = function (t, e) {
                Fm(t).updateMethod = e
            }, t.protoInitialize = void (t.prototype.type = "chart"), t
        }();

        function Vm(t, e, n) {
            t && Uu(t) && ("emphasis" === e ? xu : Su)(t, n)
        }

        function zm(t, e, n) {
            var i = ca(t, e), r = e && null != e.highlightKey ? function (t) {
                var e = zl[t];
                return null == e && Vl <= 32 && (e = zl[t] = Vl++), e
            }(e.highlightKey) : null;
            null != i ? mt(Jo(i), (function (e) {
                Vm(t.getItemGraphicEl(e), n, r)
            })) : t.eachItemGraphicEl((function (t) {
                Vm(t, n, r)
            }))
        }

        function Wm(t) {
            return Hm(t.model)
        }

        function Ym(t) {
            var e = t.model, n = t.ecModel, i = t.api, r = t.payload, o = e.pipelineContext.progressiveRender,
                a = t.view, s = r && Fm(r).updateMethod, l = o ? "incrementalPrepareRender" : s && a[s] ? s : "render";
            return "render" !== l && a[l](e, n, i, r), qm[l]
        }

        Ia(Um), Ma(Um);
        var qm = {
            incrementalPrepareRender: {
                progress: function (t, e) {
                    e.view.incrementalRender(t, e.model, e.ecModel, e.api, e.payload)
                }
            }, render: {
                forceFirstProgress: !0, progress: function (t, e) {
                    e.view.render(e.model, e.ecModel, e.api, e.payload)
                }
            }
        };
        const jm = Um;
        var Xm = "\0__throttleOriginMethod", Zm = "\0__throttleRate", Km = "\0__throttleType";

        function Qm(t, e, n) {
            var i, r, o, a, s, l = 0, u = 0, c = null;

            function h() {
                u = (new Date).getTime(), c = null, t.apply(o, a || [])
            }

            e = e || 0;
            var d = function () {
                for (var t = [], d = 0; d < arguments.length; d++) t[d] = arguments[d];
                i = (new Date).getTime(), o = this, a = t;
                var p = s || e, f = s || n;
                s = null, r = i - (f ? l : u) - p, clearTimeout(c), f ? c = setTimeout(h, p) : r >= 0 ? h() : c = setTimeout(h, -r), l = i
            };
            return d.clear = function () {
                c && (clearTimeout(c), c = null)
            }, d.debounceNextCall = function (t) {
                s = t
            }, d
        }

        function $m(t, e, n, i) {
            var r = t[e];
            if (r) {
                var o = r[Xm] || r, a = r[Km];
                if (r[Zm] !== n || a !== i) {
                    if (null == n || !i) return t[e] = o;
                    (r = t[e] = Qm(o, n, "debounce" === i))[Xm] = o, r[Km] = i, r[Zm] = n
                }
                return r
            }
        }

        function Jm(t, e) {
            var n = t[e];
            n && n[Xm] && (n.clear && n.clear(), t[e] = n[Xm])
        }

        var ty = ha(), ey = {itemStyle: Na(Ic, !0), lineStyle: Na(Sc, !0)},
            ny = {lineStyle: "stroke", itemStyle: "fill"};

        function iy(t, e) {
            var n = t.visualStyleMapper || ey[e];
            return n || (console.warn("Unknown style type '" + e + "'."), ey.itemStyle)
        }

        function ry(t, e) {
            var n = t.visualDrawType || ny[e];
            return n || (console.warn("Unknown style type '" + e + "'."), "fill")
        }

        var oy = {
            createOnAllSeries: !0, performRawSeries: !0, reset: function (t, e) {
                var n = t.getData(), i = t.visualStyleAccessPath || "itemStyle", r = t.getModel(i), o = iy(t, i)(r),
                    a = r.getShallow("decal");
                a && (n.setVisual("decal", a), a.dirty = !0);
                var s = ry(t, i), l = o[s], u = bt(l) ? l : null, c = "auto" === o.fill || "auto" === o.stroke;
                if (!o[s] || u || c) {
                    var h = t.getColorFromPalette(t.name, null, e.getSeriesCount());
                    o[s] || (o[s] = h, n.setVisual("colorFromPalette", !0)), o.fill = "auto" === o.fill || bt(o.fill) ? h : o.fill, o.stroke = "auto" === o.stroke || bt(o.stroke) ? h : o.stroke
                }
                if (n.setVisual("style", o), n.setVisual("drawType", s), !e.isSeriesFiltered(t) && u) return n.setVisual("colorFromPalette", !1), {
                    dataEach: function (e, n) {
                        var i = t.getDataParams(n), r = ht({}, o);
                        r[s] = u(i), e.setItemVisual(n, "style", r)
                    }
                }
            }
        }, ay = new wc, sy = {
            createOnAllSeries: !0, performRawSeries: !0, reset: function (t, e) {
                if (!t.ignoreStyleOnData && !e.isSeriesFiltered(t)) {
                    var n = t.getData(), i = t.visualStyleAccessPath || "itemStyle", r = iy(t, i),
                        o = n.getVisual("drawType");
                    return {
                        dataEach: n.hasItemOption ? function (t, e) {
                            var n = t.getRawDataItem(e);
                            if (n && n[i]) {
                                ay.option = n[i];
                                var a = r(ay);
                                ht(t.ensureUniqueItemVisual(e, "style"), a), ay.option.decal && (t.setItemVisual(e, "decal", ay.option.decal), ay.option.decal.dirty = !0), o in a && t.setItemVisual(e, "colorFromPalette", !1)
                            }
                        } : null
                    }
                }
            }
        }, ly = {
            performRawSeries: !0, overallReset: function (t) {
                var e = jt();
                t.eachSeries((function (t) {
                    var n = t.getColorBy();
                    if (!t.isColorBySeries()) {
                        var i = t.type + "-" + n, r = e.get(i);
                        r || (r = {}, e.set(i, r)), ty(t).scope = r
                    }
                })), t.eachSeries((function (e) {
                    if (!e.isColorBySeries() && !t.isSeriesFiltered(e)) {
                        var n = e.getRawData(), i = {}, r = e.getData(), o = ty(e).scope,
                            a = e.visualStyleAccessPath || "itemStyle", s = ry(e, a);
                        r.each((function (t) {
                            var e = r.getRawIndex(t);
                            i[e] = t
                        })), n.each((function (t) {
                            var a = i[t];
                            if (r.getItemVisual(a, "colorFromPalette")) {
                                var l = r.ensureUniqueItemVisual(a, "style"), u = n.getName(t) || t + "", c = n.count();
                                l[s] = e.getColorFromPalette(u, o, c)
                            }
                        }))
                    }
                }))
            }
        }, uy = Math.PI;
        var cy = function () {
            function t(t, e, n, i) {
                this._stageTaskMap = jt(), this.ecInstance = t, this.api = e, n = this._dataProcessorHandlers = n.slice(), i = this._visualHandlers = i.slice(), this._allHandlers = n.concat(i)
            }

            return t.prototype.restoreData = function (t, e) {
                t.restoreData(e), this._stageTaskMap.each((function (t) {
                    var e = t.overallTask;
                    e && e.dirty()
                }))
            }, t.prototype.getPerformArgs = function (t, e) {
                if (t.__pipeline) {
                    var n = this._pipelineMap.get(t.__pipeline.id), i = n.context,
                        r = !e && n.progressiveEnabled && (!i || i.progressiveRender) && t.__idxInPipeline > n.blockIndex ? n.step : null,
                        o = i && i.modDataCount;
                    return {step: r, modBy: null != o ? Math.ceil(o / r) : null, modDataCount: o}
                }
            }, t.prototype.getPipeline = function (t) {
                return this._pipelineMap.get(t)
            }, t.prototype.updateStreamModes = function (t, e) {
                var n = this._pipelineMap.get(t.uid), i = t.getData().count(),
                    r = n.progressiveEnabled && e.incrementalPrepareRender && i >= n.threshold,
                    o = t.get("large") && i >= t.get("largeThreshold"),
                    a = "mod" === t.get("progressiveChunkMode") ? i : null;
                t.pipelineContext = n.context = {progressiveRender: r, modDataCount: a, large: o}
            }, t.prototype.restorePipelines = function (t) {
                var e = this, n = e._pipelineMap = jt();
                t.eachSeries((function (t) {
                    var i = t.getProgressive(), r = t.uid;
                    n.set(r, {
                        id: r,
                        head: null,
                        tail: null,
                        threshold: t.getProgressiveThreshold(),
                        progressiveEnabled: i && !(t.preventIncremental && t.preventIncremental()),
                        blockIndex: -1,
                        step: Math.round(i || 700),
                        count: 0
                    }), e._pipe(t, t.dataTask)
                }))
            }, t.prototype.prepareStageTasks = function () {
                var t = this._stageTaskMap, e = this.api.getModel(), n = this.api;
                mt(this._allHandlers, (function (i) {
                    var r = t.get(i.uid) || t.set(i.uid, {});
                    Ft(!(i.reset && i.overallReset), ""), i.reset && this._createSeriesStageTask(i, r, e, n), i.overallReset && this._createOverallStageTask(i, r, e, n)
                }), this)
            }, t.prototype.prepareView = function (t, e, n, i) {
                var r = t.renderTask, o = r.context;
                o.model = e, o.ecModel = n, o.api = i, r.__block = !t.incrementalPrepareRender, this._pipe(e, r)
            }, t.prototype.performDataProcessorTasks = function (t, e) {
                this._performStageTasks(this._dataProcessorHandlers, t, e, {block: !0})
            }, t.prototype.performVisualTasks = function (t, e, n) {
                this._performStageTasks(this._visualHandlers, t, e, n)
            }, t.prototype._performStageTasks = function (t, e, n, i) {
                i = i || {};
                var r = !1, o = this;

                function a(t, e) {
                    return t.setDirty && (!t.dirtyMap || t.dirtyMap.get(e.__pipeline.id))
                }

                mt(t, (function (t, s) {
                    if (!i.visualType || i.visualType === t.visualType) {
                        var l = o._stageTaskMap.get(t.uid), u = l.seriesTaskMap, c = l.overallTask;
                        if (c) {
                            var h, d = c.agentStubMap;
                            d.each((function (t) {
                                a(i, t) && (t.dirty(), h = !0)
                            })), h && c.dirty(), o.updatePayload(c, n);
                            var p = o.getPerformArgs(c, i.block);
                            d.each((function (t) {
                                t.perform(p)
                            })), c.perform(p) && (r = !0)
                        } else u && u.each((function (s, l) {
                            a(i, s) && s.dirty();
                            var u = o.getPerformArgs(s, i.block);
                            u.skip = !t.performRawSeries && e.isSeriesFiltered(s.context.model), o.updatePayload(s, n), s.perform(u) && (r = !0)
                        }))
                    }
                })), this.unfinished = r || this.unfinished
            }, t.prototype.performSeriesTasks = function (t) {
                var e;
                t.eachSeries((function (t) {
                    e = t.dataTask.perform() || e
                })), this.unfinished = e || this.unfinished
            }, t.prototype.plan = function () {
                this._pipelineMap.each((function (t) {
                    var e = t.tail;
                    do {
                        if (e.__block) {
                            t.blockIndex = e.__idxInPipeline;
                            break
                        }
                        e = e.getUpstream()
                    } while (e)
                }))
            }, t.prototype.updatePayload = function (t, e) {
                "remain" !== e && (t.context.payload = e)
            }, t.prototype._createSeriesStageTask = function (t, e, n, i) {
                var r = this, o = e.seriesTaskMap, a = e.seriesTaskMap = jt(), s = t.seriesType, l = t.getTargetSeries;

                function u(e) {
                    var s = e.uid, l = a.set(s, o && o.get(s) || bp({plan: gy, reset: my, count: _y}));
                    l.context = {
                        model: e,
                        ecModel: n,
                        api: i,
                        useClearVisual: t.isVisual && !t.isLayout,
                        plan: t.plan,
                        reset: t.reset,
                        scheduler: r
                    }, r._pipe(e, l)
                }

                t.createOnAllSeries ? n.eachRawSeries(u) : s ? n.eachRawSeriesByType(s, u) : l && l(n, i).each(u)
            }, t.prototype._createOverallStageTask = function (t, e, n, i) {
                var r = this, o = e.overallTask = e.overallTask || bp({reset: hy});
                o.context = {ecModel: n, api: i, overallReset: t.overallReset, scheduler: r};
                var a = o.agentStubMap, s = o.agentStubMap = jt(), l = t.seriesType, u = t.getTargetSeries, c = !0,
                    h = !1;

                function d(t) {
                    var e = t.uid, n = s.set(e, a && a.get(e) || (h = !0, bp({reset: dy, onDirty: fy})));
                    n.context = {model: t, overallProgress: c}, n.agent = o, n.__block = c, r._pipe(t, n)
                }

                Ft(!t.createOnAllSeries, ""), l ? n.eachRawSeriesByType(l, d) : u ? u(n, i).each(d) : (c = !1, mt(n.getSeries(), d)), h && o.dirty()
            }, t.prototype._pipe = function (t, e) {
                var n = t.uid, i = this._pipelineMap.get(n);
                !i.head && (i.head = e), i.tail && i.tail.pipe(e), i.tail = e, e.__idxInPipeline = i.count++, e.__pipeline = i
            }, t.wrapStageHandler = function (t, e) {
                return bt(t) && (t = {
                    overallReset: t,
                    seriesType: Ty(t)
                }), t.uid = Nc("stageHandler"), e && (t.visualType = e), t
            }, t
        }();

        function hy(t) {
            t.overallReset(t.ecModel, t.api, t.payload)
        }

        function dy(t) {
            return t.overallProgress && py
        }

        function py() {
            this.agent.dirty(), this.getDownstream().dirty()
        }

        function fy() {
            this.agent && this.agent.dirty()
        }

        function gy(t) {
            return t.plan ? t.plan(t.model, t.ecModel, t.api, t.payload) : null
        }

        function my(t) {
            t.useClearVisual && t.data.clearAllVisual();
            var e = t.resetDefines = Jo(t.reset(t.model, t.ecModel, t.api, t.payload));
            return e.length > 1 ? yt(e, (function (t, e) {
                return vy(e)
            })) : yy
        }

        var yy = vy(0);

        function vy(t) {
            return function (e, n) {
                var i = n.data, r = n.resetDefines[t];
                if (r && r.dataEach) for (var o = e.start; o < e.end; o++) r.dataEach(i, o); else r && r.progress && r.progress(e, i)
            }
        }

        function _y(t) {
            return t.data.count()
        }

        function Ty(t) {
            xy = null;
            try {
                t(Sy, Ay)
            } catch (t) {
            }
            return xy
        }

        var xy, Sy = {}, Ay = {};

        function by(t, e) {
            for (var n in e.prototype) t[n] = $t
        }

        by(Sy, _d), by(Ay, xd), Sy.eachSeriesByType = Sy.eachRawSeriesByType = function (t) {
            xy = t
        }, Sy.eachComponent = function (t) {
            "series" === t.mainType && t.subType && (xy = t.subType)
        };
        const Iy = cy;
        var Ey = ["#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#E062AE", "#E690D1", "#e7bcf3", "#9d96f5", "#8378EA", "#96BFFF"];
        const Cy = {
            color: Ey,
            colorLayer: [["#37A2DA", "#ffd85c", "#fd7b5f"], ["#37A2DA", "#67E0E3", "#FFDB5C", "#ff9f7f", "#E062AE", "#9d96f5"], ["#37A2DA", "#32C5E9", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#e7bcf3", "#8378EA", "#96BFFF"], Ey]
        };
        var Dy = "#B9B8CE", wy = "#100C2A", My = function () {
                return {
                    axisLine: {lineStyle: {color: Dy}},
                    splitLine: {lineStyle: {color: "#484753"}},
                    splitArea: {areaStyle: {color: ["rgba(255,255,255,0.02)", "rgba(255,255,255,0.05)"]}},
                    minorSplitLine: {lineStyle: {color: "#20203B"}}
                }
            }, Ny = ["#4992ff", "#7cffb2", "#fddd60", "#ff6e76", "#58d9f9", "#05c091", "#ff8a45", "#8d48e3", "#dd79ff"],
            Oy = {
                darkMode: !0,
                color: Ny,
                backgroundColor: wy,
                axisPointer: {lineStyle: {color: "#817f91"}, crossStyle: {color: "#817f91"}, label: {color: "#fff"}},
                legend: {textStyle: {color: Dy}},
                textStyle: {color: Dy},
                title: {textStyle: {color: "#EEF1FA"}, subtextStyle: {color: "#B9B8CE"}},
                toolbox: {iconStyle: {borderColor: Dy}},
                dataZoom: {
                    borderColor: "#71708A",
                    textStyle: {color: Dy},
                    brushStyle: {color: "rgba(135,163,206,0.3)"},
                    handleStyle: {color: "#353450", borderColor: "#C5CBE3"},
                    moveHandleStyle: {color: "#B0B6C3", opacity: .3},
                    fillerColor: "rgba(135,163,206,0.2)",
                    emphasis: {
                        handleStyle: {borderColor: "#91B7F2", color: "#4D587D"},
                        moveHandleStyle: {color: "#636D9A", opacity: .7}
                    },
                    dataBackground: {lineStyle: {color: "#71708A", width: 1}, areaStyle: {color: "#71708A"}},
                    selectedDataBackground: {lineStyle: {color: "#87A3CE"}, areaStyle: {color: "#87A3CE"}}
                },
                visualMap: {textStyle: {color: Dy}},
                timeline: {lineStyle: {color: Dy}, label: {color: Dy}, controlStyle: {color: Dy, borderColor: Dy}},
                calendar: {
                    itemStyle: {color: wy},
                    dayLabel: {color: Dy},
                    monthLabel: {color: Dy},
                    yearLabel: {color: Dy}
                },
                timeAxis: My(),
                logAxis: My(),
                valueAxis: My(),
                categoryAxis: My(),
                line: {symbol: "circle"},
                graph: {color: Ny},
                gauge: {
                    title: {color: Dy},
                    axisLine: {lineStyle: {color: [[1, "rgba(207,212,219,0.2)"]]}},
                    axisLabel: {color: Dy},
                    detail: {color: "#EEF1FA"}
                },
                candlestick: {
                    itemStyle: {
                        color: "#f64e56",
                        color0: "#54ea92",
                        borderColor: "#f64e56",
                        borderColor0: "#54ea92"
                    }
                }
            };
        Oy.categoryAxis.splitLine.show = !1;
        const Ly = Oy;
        var Ry = function () {
            function t() {
            }

            return t.prototype.normalizeQuery = function (t) {
                var e = {}, n = {}, i = {};
                if (It(t)) {
                    var r = ba(t);
                    e.mainType = r.main || null, e.subType = r.sub || null
                } else {
                    var o = ["Index", "Name", "Id"], a = {name: 1, dataIndex: 1, dataType: 1};
                    mt(t, (function (t, r) {
                        for (var s = !1, l = 0; l < o.length; l++) {
                            var u = o[l], c = r.lastIndexOf(u);
                            if (c > 0 && c === r.length - u.length) {
                                var h = r.slice(0, c);
                                "data" !== h && (e.mainType = h, e[u.toLowerCase()] = t, s = !0)
                            }
                        }
                        a.hasOwnProperty(r) && (n[r] = t, s = !0), s || (i[r] = t)
                    }))
                }
                return {cptQuery: e, dataQuery: n, otherQuery: i}
            }, t.prototype.filter = function (t, e) {
                var n = this.eventInfo;
                if (!n) return !0;
                var i = n.targetEl, r = n.packedEvent, o = n.model, a = n.view;
                if (!o || !a) return !0;
                var s = e.cptQuery, l = e.dataQuery;
                return u(s, o, "mainType") && u(s, o, "subType") && u(s, o, "index", "componentIndex") && u(s, o, "name") && u(s, o, "id") && u(l, r, "name") && u(l, r, "dataIndex") && u(l, r, "dataType") && (!a.filterForExposedEvent || a.filterForExposedEvent(t, e.otherQuery, i, r));

                function u(t, e, n, i) {
                    return null == t[n] || e[i || n] === t[n]
                }
            }, t.prototype.afterTrigger = function () {
                this.eventInfo = null
            }, t
        }(), ky = ["symbol", "symbolSize", "symbolRotate", "symbolOffset"], Py = ky.concat(["symbolKeepAspect"]), Gy = {
            createOnAllSeries: !0, performRawSeries: !0, reset: function (t, e) {
                var n = t.getData();
                if (t.legendIcon && n.setVisual("legendIcon", t.legendIcon), t.hasSymbolVisual) {
                    for (var i = {}, r = {}, o = !1, a = 0; a < ky.length; a++) {
                        var s = ky[a], l = t.get(s);
                        bt(l) ? (o = !0, r[s] = l) : i[s] = l
                    }
                    if (i.symbol = i.symbol || t.defaultSymbol, n.setVisual(ht({
                        legendIcon: t.legendIcon || i.symbol,
                        symbolKeepAspect: t.get("symbolKeepAspect")
                    }, i)), !e.isSeriesFiltered(t)) {
                        var u = Tt(r);
                        return {
                            dataEach: o ? function (e, n) {
                                for (var i = t.getRawValue(n), o = t.getDataParams(n), a = 0; a < u.length; a++) {
                                    var s = u[a];
                                    e.setItemVisual(n, s, r[s](i, o))
                                }
                            } : null
                        }
                    }
                }
            }
        }, By = {
            createOnAllSeries: !0, performRawSeries: !0, reset: function (t, e) {
                if (t.hasSymbolVisual && !e.isSeriesFiltered(t)) return {
                    dataEach: t.getData().hasItemOption ? function (t, e) {
                        for (var n = t.getItemModel(e), i = 0; i < Py.length; i++) {
                            var r = Py[i], o = n.getShallow(r, !0);
                            null != o && t.setItemVisual(e, r, o)
                        }
                    } : null
                }
            }
        };

        function Fy(t, e, n) {
            switch (n) {
                case"color":
                    return t.getItemVisual(e, "style")[t.getVisual("drawType")];
                case"opacity":
                    return t.getItemVisual(e, "style").opacity;
                case"symbol":
                case"symbolSize":
                case"liftZ":
                    return t.getItemVisual(e, n)
            }
        }

        function Hy(t, e) {
            switch (e) {
                case"color":
                    return t.getVisual("style")[t.getVisual("drawType")];
                case"opacity":
                    return t.getVisual("style").opacity;
                case"symbol":
                case"symbolSize":
                case"liftZ":
                    return t.getVisual(e)
            }
        }

        function Uy(t, e, n, i) {
            switch (n) {
                case"color":
                    t.ensureUniqueItemVisual(e, "style")[t.getVisual("drawType")] = i, t.setItemVisual(e, "colorFromPalette", !1);
                    break;
                case"opacity":
                    t.ensureUniqueItemVisual(e, "style").opacity = i;
                    break;
                case"symbol":
                case"symbolSize":
                case"liftZ":
                    t.setItemVisual(e, n, i)
            }
        }

        function Vy(t, e) {
            function n(e, n) {
                var i = [];
                return e.eachComponent({mainType: "series", subType: t, query: n}, (function (t) {
                    i.push(t.seriesIndex)
                })), i
            }

            mt([[t + "ToggleSelect", "toggleSelect"], [t + "Select", "select"], [t + "UnSelect", "unselect"]], (function (t) {
                e(t[0], (function (e, i, r) {
                    e = ht({}, e), r.dispatchAction(ht(e, {type: t[1], seriesIndex: n(i, e)}))
                }))
            }))
        }

        function zy(t, e, n, i, r) {
            var o = t + e;
            n.isSilent(o) || i.eachComponent({mainType: "series", subType: "pie"}, (function (t) {
                for (var e = t.seriesIndex, i = t.option.selectedMap, a = r.selected, s = 0; s < a.length; s++) if (a[s].seriesIndex === e) {
                    var l = t.getData(), u = ca(l, r.fromActionPayload);
                    n.trigger(o, {
                        type: o,
                        seriesId: t.id,
                        name: At(u) ? l.getName(u[0]) : l.getName(u),
                        selected: It(i) ? i : ht({}, i)
                    })
                }
            }))
        }

        function Wy(t, e, n) {
            for (var i; t && (!e(t) || (i = t, !n));) t = t.__hostTarget || t.parent;
            return i
        }

        var Yy = Math.round(9 * Math.random()), qy = "function" == typeof Object.defineProperty, jy = function () {
            function t() {
                this._id = "__ec_inner_" + Yy++
            }

            return t.prototype.get = function (t) {
                return this._guard(t)[this._id]
            }, t.prototype.set = function (t, e) {
                var n = this._guard(t);
                return qy ? Object.defineProperty(n, this._id, {
                    value: e,
                    enumerable: !1,
                    configurable: !0
                }) : n[this._id] = e, this
            }, t.prototype.delete = function (t) {
                return !!this.has(t) && (delete this._guard(t)[this._id], !0)
            }, t.prototype.has = function (t) {
                return !!this._guard(t)[this._id]
            }, t.prototype._guard = function (t) {
                if (t !== Object(t)) throw TypeError("Value of WeakMap is not a non-null object.");
                return t
            }, t
        }();
        const Xy = jy;
        var Zy = ll.extend({
            type: "triangle", shape: {cx: 0, cy: 0, width: 0, height: 0}, buildPath: function (t, e) {
                var n = e.cx, i = e.cy, r = e.width / 2, o = e.height / 2;
                t.moveTo(n, i - o), t.lineTo(n + r, i + o), t.lineTo(n - r, i + o), t.closePath()
            }
        }), Ky = ll.extend({
            type: "diamond", shape: {cx: 0, cy: 0, width: 0, height: 0}, buildPath: function (t, e) {
                var n = e.cx, i = e.cy, r = e.width / 2, o = e.height / 2;
                t.moveTo(n, i - o), t.lineTo(n + r, i), t.lineTo(n, i + o), t.lineTo(n - r, i), t.closePath()
            }
        }), Qy = ll.extend({
            type: "pin", shape: {x: 0, y: 0, width: 0, height: 0}, buildPath: function (t, e) {
                var n = e.x, i = e.y, r = e.width / 5 * 3, o = Math.max(r, e.height), a = r / 2, s = a * a / (o - a),
                    l = i - o + a + s, u = Math.asin(s / a), c = Math.cos(u) * a, h = Math.sin(u), d = Math.cos(u),
                    p = .6 * a, f = .7 * a;
                t.moveTo(n - c, l + s), t.arc(n, l, a, Math.PI - u, 2 * Math.PI + u), t.bezierCurveTo(n + c - h * p, l + s + d * p, n, i - f, n, i), t.bezierCurveTo(n, i - f, n - c + h * p, l + s + d * p, n - c, l + s), t.closePath()
            }
        }), $y = ll.extend({
            type: "arrow", shape: {x: 0, y: 0, width: 0, height: 0}, buildPath: function (t, e) {
                var n = e.height, i = e.width, r = e.x, o = e.y, a = i / 3 * 2;
                t.moveTo(r, o), t.lineTo(r + a, o + n), t.lineTo(r, o + n / 4 * 3), t.lineTo(r - a, o + n), t.lineTo(r, o), t.closePath()
            }
        }), Jy = {
            line: function (t, e, n, i, r) {
                r.x1 = t, r.y1 = e + i / 2, r.x2 = t + n, r.y2 = e + i / 2
            }, rect: function (t, e, n, i, r) {
                r.x = t, r.y = e, r.width = n, r.height = i
            }, roundRect: function (t, e, n, i, r) {
                r.x = t, r.y = e, r.width = n, r.height = i, r.r = Math.min(n, i) / 4
            }, square: function (t, e, n, i, r) {
                var o = Math.min(n, i);
                r.x = t, r.y = e, r.width = o, r.height = o
            }, circle: function (t, e, n, i, r) {
                r.cx = t + n / 2, r.cy = e + i / 2, r.r = Math.min(n, i) / 2
            }, diamond: function (t, e, n, i, r) {
                r.cx = t + n / 2, r.cy = e + i / 2, r.width = n, r.height = i
            }, pin: function (t, e, n, i, r) {
                r.x = t + n / 2, r.y = e + i / 2, r.width = n, r.height = i
            }, arrow: function (t, e, n, i, r) {
                r.x = t + n / 2, r.y = e + i / 2, r.width = n, r.height = i
            }, triangle: function (t, e, n, i, r) {
                r.cx = t + n / 2, r.cy = e + i / 2, r.width = n, r.height = i
            }
        }, tv = {};
        mt({
            line: Hg,
            rect: Al,
            roundRect: Al,
            square: Al,
            circle: sg,
            diamond: Ky,
            pin: Qy,
            arrow: $y,
            triangle: Zy
        }, (function (t, e) {
            tv[e] = new t
        }));
        var ev = ll.extend({
            type: "symbol",
            shape: {symbolType: "", x: 0, y: 0, width: 0, height: 0},
            calculateTextPosition: function (t, e, n) {
                var i = so(t, e, n), r = this.shape;
                return r && "pin" === r.symbolType && "inside" === e.position && (i.y = n.y + .4 * n.height), i
            },
            buildPath: function (t, e, n) {
                var i = e.symbolType;
                if ("none" !== i) {
                    var r = tv[i];
                    r || (r = tv[i = "rect"]), Jy[i](e.x, e.y, e.width, e.height, r.shape), r.buildPath(t, r.shape, n)
                }
            }
        });

        function nv(t, e) {
            if ("image" !== this.type) {
                var n = this.style;
                this.__isEmptyBrush ? (n.stroke = t, n.fill = e || "#fff", n.lineWidth = 2) : "line" === this.shape.symbolType ? n.stroke = t : n.fill = t, this.markRedraw()
            }
        }

        function iv(t, e, n, i, r, o, a) {
            var s, l = 0 === t.indexOf("empty");
            return l && (t = t.substr(5, 1).toLowerCase() + t.substr(6)), (s = 0 === t.indexOf("image://") ? vm(t.slice(8), new hn(e, n, i, r), a ? "center" : "cover") : 0 === t.indexOf("path://") ? ym(t.slice(7), {}, new hn(e, n, i, r), a ? "center" : "cover") : new ev({
                shape: {
                    symbolType: t,
                    x: e,
                    y: n,
                    width: i,
                    height: r
                }
            })).__isEmptyBrush = l, s.setColor = nv, o && s.setColor(o), s
        }

        function rv(t) {
            return At(t) || (t = [+t, +t]), [t[0] || 0, t[1] || 0]
        }

        function ov(t, e) {
            if (null != t) return At(t) || (t = [t, t]), [wo(t[0], e[0]) || 0, wo(kt(t[1], t[0]), e[1]) || 0]
        }

        function av(t) {
            return isFinite(t)
        }

        function sv(t, e, n) {
            for (var i = "radial" === e.type ? function (t, e, n) {
                var i = n.width, r = n.height, o = Math.min(i, r), a = null == e.x ? .5 : e.x,
                    s = null == e.y ? .5 : e.y, l = null == e.r ? .5 : e.r;
                return e.global || (a = a * i + n.x, s = s * r + n.y, l *= o), a = av(a) ? a : .5, s = av(s) ? s : .5, l = l >= 0 && av(l) ? l : .5, t.createRadialGradient(a, s, 0, a, s, l)
            }(t, e, n) : function (t, e, n) {
                var i = null == e.x ? 0 : e.x, r = null == e.x2 ? 1 : e.x2, o = null == e.y ? 0 : e.y,
                    a = null == e.y2 ? 0 : e.y2;
                return e.global || (i = i * n.width + n.x, r = r * n.width + n.x, o = o * n.height + n.y, a = a * n.height + n.y), i = av(i) ? i : 0, r = av(r) ? r : 1, o = av(o) ? o : 0, a = av(a) ? a : 0, t.createLinearGradient(i, o, r, a)
            }(t, e, n), r = e.colorStops, o = 0; o < r.length; o++) i.addColorStop(r[o].offset, r[o].color);
            return i
        }

        function lv(t) {
            return parseInt(t, 10)
        }

        function uv(t, e, n) {
            var i = ["width", "height"][e], r = ["clientWidth", "clientHeight"][e],
                o = ["paddingLeft", "paddingTop"][e], a = ["paddingRight", "paddingBottom"][e];
            if (null != n[i] && "auto" !== n[i]) return parseFloat(n[i]);
            var s = document.defaultView.getComputedStyle(t);
            return (t[r] || lv(s[i]) || lv(t.style[i])) - (lv(s[o]) || 0) - (lv(s[a]) || 0) | 0
        }

        function cv(t) {
            var e, n, i = t.style,
                r = i.lineDash && i.lineWidth > 0 && (e = i.lineDash, n = i.lineWidth, e && "solid" !== e && n > 0 ? "dashed" === e ? [4 * n, 2 * n] : "dotted" === e ? [n] : Ct(e) ? [e] : At(e) ? e : null : null),
                o = i.lineDashOffset;
            if (r) {
                var a = i.strokeNoScale && t.getLineScale ? t.getLineScale() : 1;
                a && 1 !== a && (r = yt(r, (function (t) {
                    return t / a
                })), o /= a)
            }
            return [r, o]
        }

        var hv = new Hs(!0);

        function dv(t) {
            var e = t.stroke;
            return !(null == e || "none" === e || !(t.lineWidth > 0))
        }

        function pv(t) {
            return "string" == typeof t && "none" !== t
        }

        function fv(t) {
            var e = t.fill;
            return null != e && "none" !== e
        }

        function gv(t, e) {
            if (null != e.fillOpacity && 1 !== e.fillOpacity) {
                var n = t.globalAlpha;
                t.globalAlpha = e.fillOpacity * e.opacity, t.fill(), t.globalAlpha = n
            } else t.fill()
        }

        function mv(t, e) {
            if (null != e.strokeOpacity && 1 !== e.strokeOpacity) {
                var n = t.globalAlpha;
                t.globalAlpha = e.strokeOpacity * e.opacity, t.stroke(), t.globalAlpha = n
            } else t.stroke()
        }

        function yv(t, e, n) {
            var i = Pa(e.image, e.__image, n);
            if (Ba(i)) {
                var r = t.createPattern(i, e.repeat || "repeat");
                if ("function" == typeof DOMMatrix && r && r.setTransform) {
                    var o = new DOMMatrix;
                    o.translateSelf(e.x || 0, e.y || 0), o.rotateSelf(0, 0, (e.rotation || 0) * Jt), o.scaleSelf(e.scaleX || 1, e.scaleY || 1), r.setTransform(o)
                }
                return r
            }
        }

        var vv = ["shadowBlur", "shadowOffsetX", "shadowOffsetY"],
            _v = [["lineCap", "butt"], ["lineJoin", "miter"], ["miterLimit", 10]];

        function Tv(t, e, n, i, r) {
            var o = !1;
            if (!i && e === (n = n || {})) return !1;
            if (i || e.opacity !== n.opacity) {
                Cv(t, r), o = !0;
                var a = Math.max(Math.min(e.opacity, 1), 0);
                t.globalAlpha = isNaN(a) ? $a.opacity : a
            }
            (i || e.blend !== n.blend) && (o || (Cv(t, r), o = !0), t.globalCompositeOperation = e.blend || $a.blend);
            for (var s = 0; s < vv.length; s++) {
                var l = vv[s];
                (i || e[l] !== n[l]) && (o || (Cv(t, r), o = !0), t[l] = t.dpr * (e[l] || 0))
            }
            return (i || e.shadowColor !== n.shadowColor) && (o || (Cv(t, r), o = !0), t.shadowColor = e.shadowColor || $a.shadowColor), o
        }

        function xv(t, e, n, i, r) {
            var o = Dv(e, r.inHover), a = i ? null : n && Dv(n, r.inHover) || {};
            if (o === a) return !1;
            var s = Tv(t, o, a, i, r);
            if ((i || o.fill !== a.fill) && (s || (Cv(t, r), s = !0), pv(o.fill) && (t.fillStyle = o.fill)), (i || o.stroke !== a.stroke) && (s || (Cv(t, r), s = !0), pv(o.stroke) && (t.strokeStyle = o.stroke)), (i || o.opacity !== a.opacity) && (s || (Cv(t, r), s = !0), t.globalAlpha = null == o.opacity ? 1 : o.opacity), e.hasStroke()) {
                var l = o.lineWidth / (o.strokeNoScale && e.getLineScale ? e.getLineScale() : 1);
                t.lineWidth !== l && (s || (Cv(t, r), s = !0), t.lineWidth = l)
            }
            for (var u = 0; u < _v.length; u++) {
                var c = _v[u], h = c[0];
                (i || o[h] !== a[h]) && (s || (Cv(t, r), s = !0), t[h] = o[h] || c[1])
            }
            return s
        }

        function Sv(t, e) {
            var n = e.transform, i = t.dpr || 1;
            n ? t.setTransform(i * n[0], i * n[1], i * n[2], i * n[3], i * n[4], i * n[5]) : t.setTransform(i, 0, 0, i, 0, 0)
        }

        var Av = 1, bv = 2, Iv = 3, Ev = 4;

        function Cv(t, e) {
            e.batchFill && t.fill(), e.batchStroke && t.stroke(), e.batchFill = "", e.batchStroke = ""
        }

        function Dv(t, e) {
            return e && t.__hoverStyle || t.style
        }

        function wv(t, e) {
            Mv(t, e, {inHover: !1, viewWidth: 0, viewHeight: 0}, !0)
        }

        function Mv(t, e, n, i) {
            var r = e.transform;
            if (!e.shouldBePainted(n.viewWidth, n.viewHeight, !1, !1)) return e.__dirty &= ~Nn, void (e.__isRendered = !1);
            var o = e.__clipPaths, a = n.prevElClipPaths, s = !1, l = !1;
            if (a && !function (t, e) {
                if (t === e || !t && !e) return !1;
                if (!t || !e || t.length !== e.length) return !0;
                for (var n = 0; n < t.length; n++) if (t[n] !== e[n]) return !0;
                return !1
            }(o, a) || (a && a.length && (Cv(t, n), t.restore(), l = s = !0, n.prevElClipPaths = null, n.allClipped = !1, n.prevEl = null), o && o.length && (Cv(t, n), t.save(), function (t, e, n) {
                for (var i = !1, r = 0; r < t.length; r++) {
                    var o = t[r];
                    i = i || o.isZeroArea(), Sv(e, o), e.beginPath(), o.buildPath(e, o.shape), e.clip()
                }
                n.allClipped = i
            }(o, t, n), s = !0), n.prevElClipPaths = o), n.allClipped) e.__isRendered = !1; else {
                e.beforeBrush && e.beforeBrush(), e.innerBeforeBrush();
                var u = n.prevEl;
                u || (l = s = !0);
                var c, h, d = e instanceof ll && e.autoBatch && function (t) {
                    var e = fv(t), n = dv(t);
                    return !(t.lineDash || !(+e ^ +n) || e && "string" != typeof t.fill || n && "string" != typeof t.stroke || t.strokePercent < 1 || t.strokeOpacity < 1 || t.fillOpacity < 1)
                }(e.style);
                s || (c = r, h = u.transform, c && h ? c[0] !== h[0] || c[1] !== h[1] || c[2] !== h[2] || c[3] !== h[3] || c[4] !== h[4] || c[5] !== h[5] : c || h) ? (Cv(t, n), Sv(t, e)) : d || Cv(t, n);
                var p = Dv(e, n.inHover);
                e instanceof ll ? (n.lastDrawType !== Av && (l = !0, n.lastDrawType = Av), xv(t, e, u, l, n), d && (n.batchFill || n.batchStroke) || t.beginPath(), function (t, e, n, i) {
                    var r, o = dv(n), a = fv(n), s = n.strokePercent, l = s < 1, u = !e.path;
                    e.silent && !l || !u || e.createPathProxy();
                    var c = e.path || hv, h = e.__dirty;
                    if (!i) {
                        var d = n.fill, p = n.stroke, f = a && !!d.colorStops, g = o && !!p.colorStops,
                            m = a && !!d.image, y = o && !!p.image, v = void 0, _ = void 0, T = void 0, x = void 0,
                            S = void 0;
                        (f || g) && (S = e.getBoundingRect()), f && (v = h ? sv(t, d, S) : e.__canvasFillGradient, e.__canvasFillGradient = v), g && (_ = h ? sv(t, p, S) : e.__canvasStrokeGradient, e.__canvasStrokeGradient = _), m && (T = h || !e.__canvasFillPattern ? yv(t, d, e) : e.__canvasFillPattern, e.__canvasFillPattern = T), y && (x = h || !e.__canvasStrokePattern ? yv(t, p, e) : e.__canvasStrokePattern, e.__canvasStrokePattern = T), f ? t.fillStyle = v : m && (T ? t.fillStyle = T : a = !1), g ? t.strokeStyle = _ : y && (x ? t.strokeStyle = x : o = !1)
                    }
                    var A, b, I = e.getGlobalScale();
                    c.setScale(I[0], I[1], e.segmentIgnoreThreshold), t.setLineDash && n.lineDash && (A = (r = cv(e))[0], b = r[1]);
                    var E = !0;
                    (u || h & On) && (c.setDPR(t.dpr), l ? c.setContext(null) : (c.setContext(t), E = !1), c.reset(), e.buildPath(c, e.shape, i), c.toStatic(), e.pathUpdated()), E && c.rebuildPath(t, l ? s : 1), A && (t.setLineDash(A), t.lineDashOffset = b), i || (n.strokeFirst ? (o && mv(t, n), a && gv(t, n)) : (a && gv(t, n), o && mv(t, n))), A && t.setLineDash([])
                }(t, e, p, d), d && (n.batchFill = p.fill || "", n.batchStroke = p.stroke || "")) : e instanceof hl ? (n.lastDrawType !== Iv && (l = !0, n.lastDrawType = Iv), xv(t, e, u, l, n), function (t, e, n) {
                    var i, r = n.text;
                    if (null != r && (r += ""), r) {
                        t.font = n.font || z, t.textAlign = n.textAlign, t.textBaseline = n.textBaseline;
                        var o = void 0, a = void 0;
                        t.setLineDash && n.lineDash && (o = (i = cv(e))[0], a = i[1]), o && (t.setLineDash(o), t.lineDashOffset = a), n.strokeFirst ? (dv(n) && t.strokeText(r, n.x, n.y), fv(n) && t.fillText(r, n.x, n.y)) : (fv(n) && t.fillText(r, n.x, n.y), dv(n) && t.strokeText(r, n.x, n.y)), o && t.setLineDash([])
                    }
                }(t, e, p)) : e instanceof gl ? (n.lastDrawType !== bv && (l = !0, n.lastDrawType = bv), function (t, e, n, i, r) {
                    Tv(t, Dv(e, r.inHover), n && Dv(n, r.inHover), i, r)
                }(t, e, u, l, n), function (t, e, n) {
                    var i = e.__image = Pa(n.image, e.__image, e, e.onload);
                    if (i && Ba(i)) {
                        var r = n.x || 0, o = n.y || 0, a = e.getWidth(), s = e.getHeight(), l = i.width / i.height;
                        if (null == a && null != s ? a = s * l : null == s && null != a ? s = a / l : null == a && null == s && (a = i.width, s = i.height), n.sWidth && n.sHeight) {
                            var u = n.sx || 0, c = n.sy || 0;
                            t.drawImage(i, u, c, n.sWidth, n.sHeight, r, o, a, s)
                        } else if (n.sx && n.sy) {
                            var h = a - (u = n.sx), d = s - (c = n.sy);
                            t.drawImage(i, u, c, h, d, r, o, a, s)
                        } else t.drawImage(i, r, o, a, s)
                    }
                }(t, e, p)) : e.getTemporalDisplayables && (n.lastDrawType !== Ev && (l = !0, n.lastDrawType = Ev), function (t, e, n) {
                    var i = e.getDisplayables(), r = e.getTemporalDisplayables();
                    t.save();
                    var o, a, s = {
                        prevElClipPaths: null,
                        prevEl: null,
                        allClipped: !1,
                        viewWidth: n.viewWidth,
                        viewHeight: n.viewHeight,
                        inHover: n.inHover
                    };
                    for (o = e.getCursor(), a = i.length; o < a; o++) {
                        (c = i[o]).beforeBrush && c.beforeBrush(), c.innerBeforeBrush(), Mv(t, c, s, o === a - 1), c.innerAfterBrush(), c.afterBrush && c.afterBrush(), s.prevEl = c
                    }
                    for (var l = 0, u = r.length; l < u; l++) {
                        var c;
                        (c = r[l]).beforeBrush && c.beforeBrush(), c.innerBeforeBrush(), Mv(t, c, s, l === u - 1), c.innerAfterBrush(), c.afterBrush && c.afterBrush(), s.prevEl = c
                    }
                    e.clearTemporalDisplayables(), e.notClear = !0, t.restore()
                }(t, e, n)), d && i && Cv(t, n), e.innerAfterBrush(), e.afterBrush && e.afterBrush(), n.prevEl = e, e.__dirty = 0, e.__isRendered = !0
            }
        }

        var Nv = new Xy, Ov = new yi(100),
            Lv = ["symbol", "symbolSize", "symbolKeepAspect", "color", "backgroundColor", "dashArrayX", "dashArrayY", "maxTileWidth", "maxTileHeight"];

        function Rv(t, e) {
            if ("none" === t) return null;
            var n = e.getDevicePixelRatio(), i = e.getZr(), r = "svg" === i.painter.type;
            t.dirty && Nv.delete(t);
            var o = Nv.get(t);
            if (o) return o;
            var a = dt(t, {
                symbol: "rect",
                symbolSize: 1,
                symbolKeepAspect: !0,
                color: "rgba(0, 0, 0, 0.2)",
                backgroundColor: null,
                dashArrayX: 5,
                dashArrayY: 5,
                rotation: 0,
                maxTileWidth: 512,
                maxTileHeight: 512
            });
            "none" === a.backgroundColor && (a.backgroundColor = null);
            var s = {repeat: "repeat"};
            return function (t) {
                for (var e, o = [n], s = !0, l = 0; l < Lv.length; ++l) {
                    var u = a[Lv[l]];
                    if (null != u && !At(u) && !It(u) && !Ct(u) && "boolean" != typeof u) {
                        s = !1;
                        break
                    }
                    o.push(u)
                }
                if (s) {
                    e = o.join(",") + (r ? "-svg" : "");
                    var c = Ov.get(e);
                    c && (r ? t.svgElement = c : t.image = c)
                }
                var h, d = Pv(a.dashArrayX), p = function (t) {
                        if (!t || "object" == typeof t && 0 === t.length) return [0, 0];
                        if (Ct(t)) {
                            var e = Math.ceil(t);
                            return [e, e]
                        }
                        var n = yt(t, (function (t) {
                            return Math.ceil(t)
                        }));
                        return t.length % 2 ? n.concat(n) : n
                    }(a.dashArrayY), f = kv(a.symbol), g = (T = d, yt(T, (function (t) {
                        return Gv(t)
                    }))), m = Gv(p), y = !r && j.createCanvas(), v = r && {tag: "g", attrs: {}, key: "dcl", children: []},
                    _ = function () {
                        for (var t = 1, e = 0, n = g.length; e < n; ++e) t = Zo(t, g[e]);
                        var i = 1;
                        for (e = 0, n = f.length; e < n; ++e) i = Zo(i, f[e].length);
                        t *= i;
                        var r = m * g.length * f.length;
                        0;
                        return {
                            width: Math.max(1, Math.min(t, a.maxTileWidth)),
                            height: Math.max(1, Math.min(r, a.maxTileHeight))
                        }
                    }();
                var T;
                y && (y.width = _.width * n, y.height = _.height * n, h = y.getContext("2d"));
                (function () {
                    h && (h.clearRect(0, 0, y.width, y.height), a.backgroundColor && (h.fillStyle = a.backgroundColor, h.fillRect(0, 0, y.width, y.height)));
                    for (var t = 0, e = 0; e < p.length; ++e) t += p[e];
                    if (t <= 0) return;
                    var o = -m, s = 0, l = 0, u = 0;
                    for (; o < _.height;) {
                        if (s % 2 == 0) {
                            for (var c = l / 2 % f.length, g = 0, T = 0, x = 0; g < 2 * _.width;) {
                                var S = 0;
                                for (e = 0; e < d[u].length; ++e) S += d[u][e];
                                if (S <= 0) break;
                                if (T % 2 == 0) {
                                    var A = .5 * (1 - a.symbolSize), b = g + d[u][T] * A, I = o + p[s] * A,
                                        E = d[u][T] * a.symbolSize, C = p[s] * a.symbolSize, D = x / 2 % f[c].length;
                                    w(b, I, E, C, f[c][D])
                                }
                                g += d[u][T], ++x, ++T === d[u].length && (T = 0)
                            }
                            ++u === d.length && (u = 0)
                        }
                        o += p[s], ++l, ++s === p.length && (s = 0)
                    }

                    function w(t, e, o, s, l) {
                        var u = r ? 1 : n, c = iv(l, t * u, e * u, o * u, s * u, a.color, a.symbolKeepAspect);
                        if (r) {
                            var d = i.painter.renderOneToVNode(c);
                            d && v.children.push(d)
                        } else wv(h, c)
                    }
                })(), s && Ov.put(e, y || v);
                t.image = y, t.svgElement = v, t.svgWidth = _.width, t.svgHeight = _.height
            }(s), s.rotation = a.rotation, s.scaleX = s.scaleY = r ? 1 : 1 / n, Nv.set(t, s), t.dirty = !1, s
        }

        function kv(t) {
            if (!t || 0 === t.length) return [["rect"]];
            if (It(t)) return [[t]];
            for (var e = !0, n = 0; n < t.length; ++n) if (!It(t[n])) {
                e = !1;
                break
            }
            if (e) return kv([t]);
            var i = [];
            for (n = 0; n < t.length; ++n) It(t[n]) ? i.push([t[n]]) : i.push(t[n]);
            return i
        }

        function Pv(t) {
            if (!t || 0 === t.length) return [[0, 0]];
            if (Ct(t)) return [[r = Math.ceil(t), r]];
            for (var e = !0, n = 0; n < t.length; ++n) if (!Ct(t[n])) {
                e = !1;
                break
            }
            if (e) return Pv([t]);
            var i = [];
            for (n = 0; n < t.length; ++n) if (Ct(t[n])) {
                var r = Math.ceil(t[n]);
                i.push([r, r])
            } else {
                (r = yt(t[n], (function (t) {
                    return Math.ceil(t)
                }))).length % 2 == 1 ? i.push(r.concat(r)) : i.push(r)
            }
            return i
        }

        function Gv(t) {
            for (var e = 0, n = 0; n < t.length; ++n) e += t[n];
            return t.length % 2 == 1 ? 2 * e : e
        }

        const Bv = new Se;
        var Fv = {};
        var Hv = 2e3, Uv = 4500, Vv = {
                PROCESSOR: {FILTER: 1e3, SERIES_FILTER: 800, STATISTIC: 5e3},
                VISUAL: {
                    LAYOUT: 1e3,
                    PROGRESSIVE_LAYOUT: 1100,
                    GLOBAL: Hv,
                    CHART: 3e3,
                    POST_CHART_LAYOUT: 4600,
                    COMPONENT: 4e3,
                    BRUSH: 5e3,
                    CHART_ITEM: Uv,
                    ARIA: 6e3,
                    DECAL: 7e3
                }
            }, zv = "__flagInMainProcess", Wv = "__pendingUpdate", Yv = "__needsUpdateStatus", qv = /^[a-zA-Z0-9_]+$/,
            jv = "__connectUpdateStatus";

        function Xv(t) {
            return function () {
                for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
                if (!this.isDisposed()) return Kv(this, t, e);
                T_(this.id)
            }
        }

        function Zv(t) {
            return function () {
                for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
                return Kv(this, t, e)
            }
        }

        function Kv(t, e, n) {
            return n[0] = n[0] && n[0].toLowerCase(), Se.prototype[e].apply(t, n)
        }

        var Qv, $v, Jv, t_, e_, n_, i_, r_, o_, a_, s_, l_, u_, c_, h_, d_, p_, f_, g_ = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e
        }(Se), m_ = g_.prototype;
        m_.on = Zv("on"), m_.off = Zv("off");
        var y_ = function (t) {
            function e(e, n, i) {
                var r = t.call(this, new Ry) || this;
                r._chartsViews = [], r._chartsMap = {}, r._componentsViews = [], r._componentsMap = {}, r._pendingActions = [], i = i || {}, It(n) && (n = E_[n]), r._dom = e;
                var o = r._zr = Io(e, {
                    renderer: i.renderer || "canvas",
                    devicePixelRatio: i.devicePixelRatio,
                    width: i.width,
                    height: i.height,
                    ssr: i.ssr,
                    useDirtyRect: kt(i.useDirtyRect, !1),
                    useCoarsePointer: kt(i.useCoarsePointer, "auto"),
                    pointerSize: i.pointerSize
                });
                r._ssr = i.ssr, r._throttledZrFlush = Qm(xt(o.flush, o), 17), (n = lt(n)) && Xd(n, !0), r._theme = n, r._locale = function (t) {
                    if (It(t)) {
                        var e = Pc[t.toUpperCase()] || {};
                        return t === Lc || t === Rc ? lt(e) : ut(lt(e), lt(Pc[kc]), !1)
                    }
                    return ut(lt(t), lt(Pc[kc]), !1)
                }(i.locale || Bc), r._coordSysMgr = new bd;
                var a = r._api = h_(r);

                function s(t, e) {
                    return t.__prio - e.__prio
                }

                return Mn(I_, s), Mn(A_, s), r._scheduler = new Iy(r, a, A_, I_), r._messageCenter = new g_, r._initEvents(), r.resize = xt(r.resize, r), o.animation.on("frame", r._onframe, r), a_(o, r), s_(o, r), Vt(r), r
            }

            return G(e, t), e.prototype._onframe = function () {
                if (!this._disposed) {
                    f_(this);
                    var t = this._scheduler;
                    if (this[Wv]) {
                        var e = this[Wv].silent;
                        this[zv] = !0;
                        try {
                            Qv(this), t_.update.call(this, null, this[Wv].updateParams)
                        } catch (t) {
                            throw this[zv] = !1, this[Wv] = null, t
                        }
                        this._zr.flush(), this[zv] = !1, this[Wv] = null, r_.call(this, e), o_.call(this, e)
                    } else if (t.unfinished) {
                        var n = 1, i = this._model, r = this._api;
                        t.unfinished = !1;
                        do {
                            var o = +new Date;
                            t.performSeriesTasks(i), t.performDataProcessorTasks(i), n_(this, i), t.performVisualTasks(i), c_(this, this._model, r, "remain", {}), n -= +new Date - o
                        } while (n > 0 && t.unfinished);
                        t.unfinished || this._zr.flush()
                    }
                }
            }, e.prototype.getDom = function () {
                return this._dom
            }, e.prototype.getId = function () {
                return this.id
            }, e.prototype.getZr = function () {
                return this._zr
            }, e.prototype.isSSR = function () {
                return this._ssr
            }, e.prototype.setOption = function (t, e, n) {
                if (!this[zv]) if (this._disposed) T_(this.id); else {
                    var i, r, o;
                    if (Dt(e) && (n = e.lazyUpdate, i = e.silent, r = e.replaceMerge, o = e.transition, e = e.notMerge), this[zv] = !0, !this._model || e) {
                        var a = new Dd(this._api), s = this._theme, l = this._model = new _d;
                        l.scheduler = this._scheduler, l.ssr = this._ssr, l.init(null, null, null, s, this._locale, a)
                    }
                    this._model.setOption(t, {replaceMerge: r}, b_);
                    var u = {seriesTransition: o, optionChanged: !0};
                    if (n) this[Wv] = {silent: i, updateParams: u}, this[zv] = !1, this.getZr().wakeUp(); else {
                        try {
                            Qv(this), t_.update.call(this, null, u)
                        } catch (t) {
                            throw this[Wv] = null, this[zv] = !1, t
                        }
                        this._ssr || this._zr.flush(), this[Wv] = null, this[zv] = !1, r_.call(this, i), o_.call(this, i)
                    }
                }
            }, e.prototype.setTheme = function () {
                Cp()
            }, e.prototype.getModel = function () {
                return this._model
            }, e.prototype.getOption = function () {
                return this._model && this._model.getOption()
            }, e.prototype.getWidth = function () {
                return this._zr.getWidth()
            }, e.prototype.getHeight = function () {
                return this._zr.getHeight()
            }, e.prototype.getDevicePixelRatio = function () {
                return this._zr.painter.dpr || H.hasGlobalWindow && window.devicePixelRatio || 1
            }, e.prototype.getRenderedCanvas = function (t) {
                return this.renderToCanvas(t)
            }, e.prototype.renderToCanvas = function (t) {
                return t = t || {}, this._zr.painter.getRenderedCanvas({
                    backgroundColor: t.backgroundColor || this._model.get("backgroundColor"),
                    pixelRatio: t.pixelRatio || this.getDevicePixelRatio()
                })
            }, e.prototype.renderToSVGString = function (t) {
                return t = t || {}, this._zr.painter.renderToString({useViewBox: t.useViewBox})
            }, e.prototype.getSvgDataURL = function () {
                if (H.svgSupported) {
                    var t = this._zr;
                    return mt(t.storage.getDisplayList(), (function (t) {
                        t.stopAnimation(null, !0)
                    })), t.painter.toDataURL()
                }
            }, e.prototype.getDataURL = function (t) {
                if (!this._disposed) {
                    var e = (t = t || {}).excludeComponents, n = this._model, i = [], r = this;
                    mt(e, (function (t) {
                        n.eachComponent({mainType: t}, (function (t) {
                            var e = r._componentsMap[t.__viewId];
                            e.group.ignore || (i.push(e), e.group.ignore = !0)
                        }))
                    }));
                    var o = "svg" === this._zr.painter.getType() ? this.getSvgDataURL() : this.renderToCanvas(t).toDataURL("image/" + (t && t.type || "png"));
                    return mt(i, (function (t) {
                        t.group.ignore = !1
                    })), o
                }
                T_(this.id)
            }, e.prototype.getConnectedDataURL = function (t) {
                if (!this._disposed) {
                    var e = "svg" === t.type, n = this.group, i = Math.min, r = Math.max, o = 1 / 0;
                    if (w_[n]) {
                        var a = o, s = o, l = -1 / 0, u = -1 / 0, c = [],
                            h = t && t.pixelRatio || this.getDevicePixelRatio();
                        mt(D_, (function (o, h) {
                            if (o.group === n) {
                                var d = e ? o.getZr().painter.getSvgDom().innerHTML : o.renderToCanvas(lt(t)),
                                    p = o.getDom().getBoundingClientRect();
                                a = i(p.left, a), s = i(p.top, s), l = r(p.right, l), u = r(p.bottom, u), c.push({
                                    dom: d,
                                    left: p.left,
                                    top: p.top
                                })
                            }
                        }));
                        var d = (l *= h) - (a *= h), p = (u *= h) - (s *= h), f = j.createCanvas(),
                            g = Io(f, {renderer: e ? "svg" : "canvas"});
                        if (g.resize({width: d, height: p}), e) {
                            var m = "";
                            return mt(c, (function (t) {
                                var e = t.left - a, n = t.top - s;
                                m += '<g transform="translate(' + e + "," + n + ')">' + t.dom + "</g>"
                            })), g.painter.getSvgRoot().innerHTML = m, t.connectedBackgroundColor && g.painter.setBackgroundColor(t.connectedBackgroundColor), g.refreshImmediately(), g.painter.toDataURL()
                        }
                        return t.connectedBackgroundColor && g.add(new Al({
                            shape: {x: 0, y: 0, width: d, height: p},
                            style: {fill: t.connectedBackgroundColor}
                        })), mt(c, (function (t) {
                            var e = new gl({style: {x: t.left * h - a, y: t.top * h - s, image: t.dom}});
                            g.add(e)
                        })), g.refreshImmediately(), f.toDataURL("image/" + (t && t.type || "png"))
                    }
                    return this.getDataURL(t)
                }
                T_(this.id)
            }, e.prototype.convertToPixel = function (t, e) {
                return e_(this, "convertToPixel", t, e)
            }, e.prototype.convertFromPixel = function (t, e) {
                return e_(this, "convertFromPixel", t, e)
            }, e.prototype.containPixel = function (t, e) {
                var n;
                if (!this._disposed) return mt(pa(this._model, t), (function (t, i) {
                    i.indexOf("Models") >= 0 && mt(t, (function (t) {
                        var r = t.coordinateSystem;
                        if (r && r.containPoint) n = n || !!r.containPoint(e); else if ("seriesModels" === i) {
                            var o = this._chartsMap[t.__viewId];
                            o && o.containPoint && (n = n || o.containPoint(e, t))
                        } else 0
                    }), this)
                }), this), !!n;
                T_(this.id)
            }, e.prototype.getVisual = function (t, e) {
                var n = pa(this._model, t, {defaultMainType: "series"});
                var i = n.seriesModel.getData(),
                    r = n.hasOwnProperty("dataIndexInside") ? n.dataIndexInside : n.hasOwnProperty("dataIndex") ? i.indexOfRawIndex(n.dataIndex) : null;
                return null != r ? Fy(i, r, e) : Hy(i, e)
            }, e.prototype.getViewOfComponentModel = function (t) {
                return this._componentsMap[t.__viewId]
            }, e.prototype.getViewOfSeriesModel = function (t) {
                return this._chartsMap[t.__viewId]
            }, e.prototype._initEvents = function () {
                var t, e, n, i = this;
                mt(__, (function (t) {
                    var e = function (e) {
                        var n, r = i.getModel(), o = e.target;
                        if ("globalout" === t ? n = {} : o && Wy(o, (function (t) {
                            var e = Hl(t);
                            if (e && null != e.dataIndex) {
                                var i = e.dataModel || r.getSeriesByIndex(e.seriesIndex);
                                return n = i && i.getDataParams(e.dataIndex, e.dataType, o) || {}, !0
                            }
                            if (e.eventData) return n = ht({}, e.eventData), !0
                        }), !0), n) {
                            var a = n.componentType, s = n.componentIndex;
                            "markLine" !== a && "markPoint" !== a && "markArea" !== a || (a = "series", s = n.seriesIndex);
                            var l = a && null != s && r.getComponent(a, s),
                                u = l && i["series" === l.mainType ? "_chartsMap" : "_componentsMap"][l.__viewId];
                            0, n.event = e, n.type = t, i._$eventProcessor.eventInfo = {
                                targetEl: o,
                                packedEvent: n,
                                model: l,
                                view: u
                            }, i.trigger(t, n)
                        }
                    };
                    e.zrEventfulCallAtLast = !0, i._zr.on(t, e, i)
                })), mt(S_, (function (t, e) {
                    i._messageCenter.on(e, (function (t) {
                        this.trigger(e, t)
                    }), i)
                })), mt(["selectchanged"], (function (t) {
                    i._messageCenter.on(t, (function (e) {
                        this.trigger(t, e)
                    }), i)
                })), t = this._messageCenter, e = this, n = this._api, t.on("selectchanged", (function (t) {
                    var i = n.getModel();
                    t.isFromClick ? (zy("map", "selectchanged", e, i, t), zy("pie", "selectchanged", e, i, t)) : "select" === t.fromAction ? (zy("map", "selected", e, i, t), zy("pie", "selected", e, i, t)) : "unselect" === t.fromAction && (zy("map", "unselected", e, i, t), zy("pie", "unselected", e, i, t))
                }))
            }, e.prototype.isDisposed = function () {
                return this._disposed
            }, e.prototype.clear = function () {
                this._disposed ? T_(this.id) : this.setOption({series: []}, !0)
            }, e.prototype.dispose = function () {
                if (this._disposed) T_(this.id); else {
                    this._disposed = !0, this.getDom() && va(this.getDom(), N_, "");
                    var t = this, e = t._api, n = t._model;
                    mt(t._componentsViews, (function (t) {
                        t.dispose(n, e)
                    })), mt(t._chartsViews, (function (t) {
                        t.dispose(n, e)
                    })), t._zr.dispose(), t._dom = t._model = t._chartsMap = t._componentsMap = t._chartsViews = t._componentsViews = t._scheduler = t._api = t._zr = t._throttledZrFlush = t._theme = t._coordSysMgr = t._messageCenter = null, delete D_[t.id]
                }
            }, e.prototype.resize = function (t) {
                if (!this[zv]) if (this._disposed) T_(this.id); else {
                    this._zr.resize(t);
                    var e = this._model;
                    if (this._loadingFX && this._loadingFX.resize(), e) {
                        var n = e.resetOption("media"), i = t && t.silent;
                        this[Wv] && (null == i && (i = this[Wv].silent), n = !0, this[Wv] = null), this[zv] = !0;
                        try {
                            n && Qv(this), t_.update.call(this, {
                                type: "resize",
                                animation: ht({duration: 0}, t && t.animation)
                            })
                        } catch (t) {
                            throw this[zv] = !1, t
                        }
                        this[zv] = !1, r_.call(this, i), o_.call(this, i)
                    }
                }
            }, e.prototype.showLoading = function (t, e) {
                if (this._disposed) T_(this.id); else if (Dt(t) && (e = t, t = ""), t = t || "default", this.hideLoading(), C_[t]) {
                    var n = C_[t](this._api, e), i = this._zr;
                    this._loadingFX = n, i.add(n)
                }
            }, e.prototype.hideLoading = function () {
                this._disposed ? T_(this.id) : (this._loadingFX && this._zr.remove(this._loadingFX), this._loadingFX = null)
            }, e.prototype.makeActionFromEvent = function (t) {
                var e = ht({}, t);
                return e.type = S_[t.type], e
            }, e.prototype.dispatchAction = function (t, e) {
                if (this._disposed) T_(this.id); else if (Dt(e) || (e = {silent: !!e}), x_[t.type] && this._model) if (this[zv]) this._pendingActions.push(t); else {
                    var n = e.silent;
                    i_.call(this, t, n);
                    var i = e.flush;
                    i ? this._zr.flush() : !1 !== i && H.browser.weChat && this._throttledZrFlush(), r_.call(this, n), o_.call(this, n)
                }
            }, e.prototype.updateLabelLayout = function () {
                Bv.trigger("series:layoutlabels", this._model, this._api, {updatedSeries: []})
            }, e.prototype.appendData = function (t) {
                if (this._disposed) T_(this.id); else {
                    var e = t.seriesIndex;
                    0, this.getModel().getSeriesByIndex(e).appendData(t), this._scheduler.unfinished = !0, this.getZr().wakeUp()
                }
            }, e.internalField = function () {
                function t(t) {
                    t.clearColorPalette(), t.eachSeries((function (t) {
                        t.clearColorPalette()
                    }))
                }

                function e(t) {
                    for (var e = [], n = t.currentStates, i = 0; i < n.length; i++) {
                        var r = n[i];
                        "emphasis" !== r && "blur" !== r && "select" !== r && e.push(r)
                    }
                    t.selected && t.states.select && e.push("select"), t.hoverState === Xl && t.states.emphasis ? e.push("emphasis") : t.hoverState === jl && t.states.blur && e.push("blur"), t.useStates(e)
                }

                function n(t, e) {
                    if (!t.preventAutoZ) {
                        var n = t.get("z") || 0, r = t.get("zlevel") || 0;
                        e.eachRendered((function (t) {
                            return i(t, n, r, -1 / 0), !0
                        }))
                    }
                }

                function i(t, e, n, r) {
                    var o = t.getTextContent(), a = t.getTextGuideLine();
                    if (t.isGroup) for (var s = t.childrenRef(), l = 0; l < s.length; l++) r = Math.max(i(s[l], e, n, r), r); else t.z = e, t.zlevel = n, r = Math.max(t.z2, r);
                    if (o && (o.z = e, o.zlevel = n, isFinite(r) && (o.z2 = r + 2)), a) {
                        var u = t.textGuideLineConfig;
                        a.z = e, a.zlevel = n, isFinite(r) && (a.z2 = r + (u && u.showAbove ? 1 : -1))
                    }
                    return r
                }

                function r(t, e) {
                    e.eachRendered((function (t) {
                        if (!Zu(t)) {
                            var e = t.getTextContent(), n = t.getTextGuideLine();
                            t.stateTransition && (t.stateTransition = null), e && e.stateTransition && (e.stateTransition = null), n && n.stateTransition && (n.stateTransition = null), t.hasState() ? (t.prevStates = t.currentStates, t.clearStates()) : t.prevStates && (t.prevStates = null)
                        }
                    }))
                }

                function o(t, n) {
                    var i = t.getModel("stateAnimation"), r = t.isAnimationEnabled(), o = i.get("duration"),
                        a = o > 0 ? {duration: o, delay: i.get("delay"), easing: i.get("easing")} : null;
                    n.eachRendered((function (t) {
                        if (t.states && t.states.emphasis) {
                            if (Zu(t)) return;
                            if (t instanceof ll && function (t) {
                                var e = Wl(t);
                                e.normalFill = t.style.fill, e.normalStroke = t.style.stroke;
                                var n = t.states.select || {};
                                e.selectFill = n.style && n.style.fill || null, e.selectStroke = n.style && n.style.stroke || null
                            }(t), t.__dirty) {
                                var n = t.prevStates;
                                n && t.useStates(n)
                            }
                            if (r) {
                                t.stateTransition = a;
                                var i = t.getTextContent(), o = t.getTextGuideLine();
                                i && (i.stateTransition = a), o && (o.stateTransition = a)
                            }
                            t.__dirty && e(t)
                        }
                    }))
                }

                Qv = function (t) {
                    var e = t._scheduler;
                    e.restorePipelines(t._model), e.prepareStageTasks(), $v(t, !0), $v(t, !1), e.plan()
                }, $v = function (t, e) {
                    for (var n = t._model, i = t._scheduler, r = e ? t._componentsViews : t._chartsViews, o = e ? t._componentsMap : t._chartsMap, a = t._zr, s = t._api, l = 0; l < r.length; l++) r[l].__alive = !1;

                    function u(t) {
                        var l = t.__requireNewView;
                        t.__requireNewView = !1;
                        var u = "_ec_" + t.id + "_" + t.type, c = !l && o[u];
                        if (!c) {
                            var h = ba(t.type);
                            0, (c = new (e ? Gf.getClass(h.main, h.sub) : jm.getClass(h.sub))).init(n, s), o[u] = c, r.push(c), a.add(c.group)
                        }
                        t.__viewId = c.__id = u, c.__alive = !0, c.__model = t, c.group.__ecComponentInfo = {
                            mainType: t.mainType,
                            index: t.componentIndex
                        }, !e && i.prepareView(c, t, n, s)
                    }

                    e ? n.eachComponent((function (t, e) {
                        "series" !== t && u(e)
                    })) : n.eachSeries(u);
                    for (l = 0; l < r.length;) {
                        var c = r[l];
                        c.__alive ? l++ : (!e && c.renderTask.dispose(), a.remove(c.group), c.dispose(n, s), r.splice(l, 1), o[c.__id] === c && delete o[c.__id], c.__id = c.group.__ecComponentInfo = null)
                    }
                }, Jv = function (t, e, n, i, r) {
                    var o = t._model;
                    if (o.setUpdatePayload(n), i) {
                        var a = {};
                        a[i + "Id"] = n[i + "Id"], a[i + "Index"] = n[i + "Index"], a[i + "Name"] = n[i + "Name"];
                        var s = {mainType: i, query: a};
                        r && (s.subType = r);
                        var l, u = n.excludeSeriesId;
                        null != u && (l = jt(), mt(Jo(u), (function (t) {
                            var e = sa(t, null);
                            null != e && l.set(e, !0)
                        }))), o && o.eachComponent(s, (function (e) {
                            if (!(l && null != l.get(e.id))) if (zu(n)) if (e instanceof kf) n.type !== Jl || n.notBlur || e.get(["emphasis", "disabled"]) || function (t, e, n) {
                                var i = t.seriesIndex, r = t.getData(e.dataType);
                                if (r) {
                                    var o = ca(r, e);
                                    o = (At(o) ? o[0] : o) || 0;
                                    var a = r.getItemGraphicEl(o);
                                    if (!a) for (var s = r.count(), l = 0; !a && l < s;) a = r.getItemGraphicEl(l++);
                                    if (a) {
                                        var u = Hl(a);
                                        wu(i, u.focus, u.blurScope, n)
                                    } else {
                                        var c = t.get(["emphasis", "focus"]), h = t.get(["emphasis", "blurScope"]);
                                        null != c && wu(i, c, h, n)
                                    }
                                }
                            }(e, n, t._api); else {
                                var i = Nu(e.mainType, e.componentIndex, n.name, t._api), r = i.focusSelf,
                                    o = i.dispatchers;
                                n.type === Jl && r && !n.notBlur && Mu(e.mainType, e.componentIndex, t._api), o && mt(o, (function (t) {
                                    n.type === Jl ? xu(t) : Su(t)
                                }))
                            } else Vu(n) && e instanceof kf && (!function (t, e, n) {
                                if (Vu(e)) {
                                    var i = e.dataType, r = ca(t.getData(i), e);
                                    At(r) || (r = [r]), t[e.type === iu ? "toggleSelect" : e.type === eu ? "select" : "unselect"](r, i)
                                }
                            }(e, n, t._api), Ou(e), p_(t))
                        }), t), o && o.eachComponent(s, (function (e) {
                            l && null != l.get(e.id) || c(t["series" === i ? "_chartsMap" : "_componentsMap"][e.__viewId])
                        }), t)
                    } else mt([].concat(t._componentsViews).concat(t._chartsViews), c);

                    function c(i) {
                        i && i.__alive && i[e] && i[e](i.__model, o, t._api, n)
                    }
                }, t_ = {
                    prepareAndUpdate: function (t) {
                        Qv(this), t_.update.call(this, t, {optionChanged: null != t.newOption})
                    }, update: function (e, n) {
                        var i = this._model, r = this._api, o = this._zr, a = this._coordSysMgr, s = this._scheduler;
                        if (i) {
                            i.setUpdatePayload(e), s.restoreData(i, e), s.performSeriesTasks(i), a.create(i, r), s.performDataProcessorTasks(i, e), n_(this, i), a.update(i, r), t(i), s.performVisualTasks(i, e), l_(this, i, r, e, n);
                            var l = i.get("backgroundColor") || "transparent", u = i.get("darkMode");
                            o.setBackgroundColor(l), null != u && "auto" !== u && o.setDarkMode(u), Bv.trigger("afterupdate", i, r)
                        }
                    }, updateTransform: function (e) {
                        var n = this, i = this._model, r = this._api;
                        if (i) {
                            i.setUpdatePayload(e);
                            var o = [];
                            i.eachComponent((function (t, a) {
                                if ("series" !== t) {
                                    var s = n.getViewOfComponentModel(a);
                                    if (s && s.__alive) if (s.updateTransform) {
                                        var l = s.updateTransform(a, i, r, e);
                                        l && l.update && o.push(s)
                                    } else o.push(s)
                                }
                            }));
                            var a = jt();
                            i.eachSeries((function (t) {
                                var o = n._chartsMap[t.__viewId];
                                if (o.updateTransform) {
                                    var s = o.updateTransform(t, i, r, e);
                                    s && s.update && a.set(t.uid, 1)
                                } else a.set(t.uid, 1)
                            })), t(i), this._scheduler.performVisualTasks(i, e, {
                                setDirty: !0,
                                dirtyMap: a
                            }), c_(this, i, r, e, {}, a), Bv.trigger("afterupdate", i, r)
                        }
                    }, updateView: function (e) {
                        var n = this._model;
                        n && (n.setUpdatePayload(e), jm.markUpdateMethod(e, "updateView"), t(n), this._scheduler.performVisualTasks(n, e, {setDirty: !0}), l_(this, n, this._api, e, {}), Bv.trigger("afterupdate", n, this._api))
                    }, updateVisual: function (e) {
                        var n = this, i = this._model;
                        i && (i.setUpdatePayload(e), i.eachSeries((function (t) {
                            t.getData().clearAllVisual()
                        })), jm.markUpdateMethod(e, "updateVisual"), t(i), this._scheduler.performVisualTasks(i, e, {
                            visualType: "visual",
                            setDirty: !0
                        }), i.eachComponent((function (t, r) {
                            if ("series" !== t) {
                                var o = n.getViewOfComponentModel(r);
                                o && o.__alive && o.updateVisual(r, i, n._api, e)
                            }
                        })), i.eachSeries((function (t) {
                            n._chartsMap[t.__viewId].updateVisual(t, i, n._api, e)
                        })), Bv.trigger("afterupdate", i, this._api))
                    }, updateLayout: function (t) {
                        t_.update.call(this, t)
                    }
                }, e_ = function (t, e, n, i) {
                    if (t._disposed) T_(t.id); else {
                        for (var r, o = t._model, a = t._coordSysMgr.getCoordinateSystems(), s = pa(o, n), l = 0; l < a.length; l++) {
                            var u = a[l];
                            if (u[e] && null != (r = u[e](o, s, i))) return r
                        }
                        0
                    }
                }, n_ = function (t, e) {
                    var n = t._chartsMap, i = t._scheduler;
                    e.eachSeries((function (t) {
                        i.updateStreamModes(t, n[t.__viewId])
                    }))
                }, i_ = function (t, e) {
                    var n = this, i = this.getModel(), r = t.type, o = t.escapeConnect, a = x_[r], s = a.actionInfo,
                        l = (s.update || "update").split(":"), u = l.pop(), c = null != l[0] && ba(l[0]);
                    this[zv] = !0;
                    var h = [t], d = !1;
                    t.batch && (d = !0, h = yt(t.batch, (function (e) {
                        return (e = dt(ht({}, e), t)).batch = null, e
                    })));
                    var p, f = [], g = Vu(t), m = zu(t);
                    if (m && Du(this._api), mt(h, (function (e) {
                        if ((p = (p = a.action(e, n._model, n._api)) || ht({}, e)).type = s.event || p.type, f.push(p), m) {
                            var i = fa(t), r = i.queryOptionMap, o = i.mainTypeSpecified ? r.keys()[0] : "series";
                            Jv(n, u, e, o), p_(n)
                        } else g ? (Jv(n, u, e, "series"), p_(n)) : c && Jv(n, u, e, c.main, c.sub)
                    })), "none" !== u && !m && !g && !c) try {
                        this[Wv] ? (Qv(this), t_.update.call(this, t), this[Wv] = null) : t_[u].call(this, t)
                    } catch (t) {
                        throw this[zv] = !1, t
                    }
                    if (p = d ? {type: s.event || r, escapeConnect: o, batch: f} : f[0], this[zv] = !1, !e) {
                        var y = this._messageCenter;
                        if (y.trigger(p.type, p), g) {
                            var v = {
                                type: "selectchanged",
                                escapeConnect: o,
                                selected: Lu(i),
                                isFromClick: t.isFromClick || !1,
                                fromAction: t.type,
                                fromActionPayload: t
                            };
                            y.trigger(v.type, v)
                        }
                    }
                }, r_ = function (t) {
                    for (var e = this._pendingActions; e.length;) {
                        var n = e.shift();
                        i_.call(this, n, t)
                    }
                }, o_ = function (t) {
                    !t && this.trigger("updated")
                }, a_ = function (t, e) {
                    t.on("rendered", (function (n) {
                        e.trigger("rendered", n), !t.animation.isFinished() || e[Wv] || e._scheduler.unfinished || e._pendingActions.length || e.trigger("finished")
                    }))
                }, s_ = function (t, e) {
                    t.on("mouseover", (function (t) {
                        var n = Wy(t.target, Uu);
                        n && (!function (t, e, n) {
                            var i = Hl(t), r = Nu(i.componentMainType, i.componentIndex, i.componentHighDownName, n),
                                o = r.dispatchers, a = r.focusSelf;
                            o ? (a && Mu(i.componentMainType, i.componentIndex, n), mt(o, (function (t) {
                                return _u(t, e)
                            }))) : (wu(i.seriesIndex, i.focus, i.blurScope, n), "self" === i.focus && Mu(i.componentMainType, i.componentIndex, n), _u(t, e))
                        }(n, t, e._api), p_(e))
                    })).on("mouseout", (function (t) {
                        var n = Wy(t.target, Uu);
                        n && (!function (t, e, n) {
                            Du(n);
                            var i = Hl(t),
                                r = Nu(i.componentMainType, i.componentIndex, i.componentHighDownName, n).dispatchers;
                            r ? mt(r, (function (t) {
                                return Tu(t, e)
                            })) : Tu(t, e)
                        }(n, t, e._api), p_(e))
                    })).on("click", (function (t) {
                        var n = Wy(t.target, (function (t) {
                            return null != Hl(t).dataIndex
                        }), !0);
                        if (n) {
                            var i = n.selected ? "unselect" : "select", r = Hl(n);
                            e._api.dispatchAction({
                                type: i,
                                dataType: r.dataType,
                                dataIndexInside: r.dataIndex,
                                seriesIndex: r.seriesIndex,
                                isFromClick: !0
                            })
                        }
                    }))
                }, l_ = function (t, e, n, i, r) {
                    !function (t) {
                        var e = [], n = [], i = !1;
                        if (t.eachComponent((function (t, r) {
                            var o = r.get("zlevel") || 0, a = r.get("z") || 0, s = r.getZLevelKey();
                            i = i || !!s, ("series" === t ? n : e).push({
                                zlevel: o,
                                z: a,
                                idx: r.componentIndex,
                                type: t,
                                key: s
                            })
                        })), i) {
                            var r, o, a = e.concat(n);
                            Mn(a, (function (t, e) {
                                return t.zlevel === e.zlevel ? t.z - e.z : t.zlevel - e.zlevel
                            })), mt(a, (function (e) {
                                var n = t.getComponent(e.type, e.idx), i = e.zlevel, a = e.key;
                                null != r && (i = Math.max(r, i)), a ? (i === r && a !== o && i++, o = a) : o && (i === r && i++, o = ""), r = i, n.setZLevel(i)
                            }))
                        }
                    }(e), u_(t, e, n, i, r), mt(t._chartsViews, (function (t) {
                        t.__alive = !1
                    })), c_(t, e, n, i, r), mt(t._chartsViews, (function (t) {
                        t.__alive || t.remove(e, n)
                    }))
                }, u_ = function (t, e, i, a, s, l) {
                    mt(l || t._componentsViews, (function (t) {
                        var s = t.__model;
                        r(s, t), t.render(s, e, i, a), n(s, t), o(s, t)
                    }))
                }, c_ = function (t, e, i, a, s, l) {
                    var u = t._scheduler;
                    s = ht(s || {}, {updatedSeries: e.getSeries()}), Bv.trigger("series:beforeupdate", e, i, s);
                    var c = !1;
                    e.eachSeries((function (e) {
                        var n = t._chartsMap[e.__viewId];
                        n.__alive = !0;
                        var i = n.renderTask;
                        u.updatePayload(i, a), r(e, n), l && l.get(e.uid) && i.dirty(), i.perform(u.getPerformArgs(i)) && (c = !0), n.group.silent = !!e.get("silent"), function (t, e) {
                            var n = t.get("blendMode") || null;
                            e.eachRendered((function (t) {
                                t.isGroup || (t.style.blend = n)
                            }))
                        }(e, n), Ou(e)
                    })), u.unfinished = c || u.unfinished, Bv.trigger("series:layoutlabels", e, i, s), Bv.trigger("series:transition", e, i, s), e.eachSeries((function (e) {
                        var i = t._chartsMap[e.__viewId];
                        n(e, i), o(e, i)
                    })), function (t, e) {
                        var n = t._zr, i = n.storage, r = 0;
                        i.traverse((function (t) {
                            t.isGroup || r++
                        })), r > e.get("hoverLayerThreshold") && !H.node && !H.worker && e.eachSeries((function (e) {
                            if (!e.preventUsingHoverLayer) {
                                var n = t._chartsMap[e.__viewId];
                                n.__alive && n.eachRendered((function (t) {
                                    t.states.emphasis && (t.states.emphasis.hoverLayer = !0)
                                }))
                            }
                        }))
                    }(t, e), Bv.trigger("series:afterupdate", e, i, s)
                }, p_ = function (t) {
                    t[Yv] = !0, t.getZr().wakeUp()
                }, f_ = function (t) {
                    t[Yv] && (t.getZr().storage.traverse((function (t) {
                        Zu(t) || e(t)
                    })), t[Yv] = !1)
                }, h_ = function (t) {
                    return new (function (e) {
                        function n() {
                            return null !== e && e.apply(this, arguments) || this
                        }

                        return G(n, e), n.prototype.getCoordinateSystems = function () {
                            return t._coordSysMgr.getCoordinateSystems()
                        }, n.prototype.getComponentByElement = function (e) {
                            for (; e;) {
                                var n = e.__ecComponentInfo;
                                if (null != n) return t._model.getComponent(n.mainType, n.index);
                                e = e.parent
                            }
                        }, n.prototype.enterEmphasis = function (e, n) {
                            xu(e, n), p_(t)
                        }, n.prototype.leaveEmphasis = function (e, n) {
                            Su(e, n), p_(t)
                        }, n.prototype.enterBlur = function (e) {
                            Au(e), p_(t)
                        }, n.prototype.leaveBlur = function (e) {
                            bu(e), p_(t)
                        }, n.prototype.enterSelect = function (e) {
                            Iu(e), p_(t)
                        }, n.prototype.leaveSelect = function (e) {
                            Eu(e), p_(t)
                        }, n.prototype.getModel = function () {
                            return t.getModel()
                        }, n.prototype.getViewOfComponentModel = function (e) {
                            return t.getViewOfComponentModel(e)
                        }, n.prototype.getViewOfSeriesModel = function (e) {
                            return t.getViewOfSeriesModel(e)
                        }, n
                    }(xd))(t)
                }, d_ = function (t) {
                    function e(t, e) {
                        for (var n = 0; n < t.length; n++) {
                            t[n][jv] = e
                        }
                    }

                    mt(S_, (function (n, i) {
                        t._messageCenter.on(i, (function (n) {
                            if (w_[t.group] && 0 !== t[jv]) {
                                if (n && n.escapeConnect) return;
                                var i = t.makeActionFromEvent(n), r = [];
                                mt(D_, (function (e) {
                                    e !== t && e.group === t.group && r.push(e)
                                })), e(r, 0), mt(r, (function (t) {
                                    1 !== t[jv] && t.dispatchAction(i)
                                })), e(r, 2)
                            }
                        }))
                    }))
                }
            }(), e
        }(Se), v_ = y_.prototype;
        v_.on = Xv("on"), v_.off = Xv("off"), v_.one = function (t, e, n) {
            var i = this;
            Cp(), this.on.call(this, t, (function n() {
                for (var r = [], o = 0; o < arguments.length; o++) r[o] = arguments[o];
                e && e.apply && e.apply(this, r), i.off(t, n)
            }), n)
        };
        var __ = ["click", "dblclick", "mouseover", "mouseout", "mousemove", "mousedown", "mouseup", "globalout", "contextmenu"];

        function T_(t) {
            0
        }

        var x_ = {}, S_ = {}, A_ = [], b_ = [], I_ = [], E_ = {}, C_ = {}, D_ = {}, w_ = {}, M_ = +new Date - 0,
            N_ = (new Date, "_echarts_instance_");

        function O_(t) {
            return D_[function (t, e) {
                return t.getAttribute ? t.getAttribute(e) : t[e]
            }(t, N_)]
        }

        function L_(t, e) {
            E_[t] = e
        }

        function R_(t) {
            pt(b_, t) < 0 && b_.push(t)
        }

        function k_(t, e) {
            H_(A_, t, e, 2e3)
        }

        function P_(t, e) {
            Bv.on(t, e)
        }

        function G_(t, e, n) {
            bt(e) && (n = e, e = "");
            var i = Dt(t) ? t.type : [t, t = {event: e}][0];
            t.event = (t.event || i).toLowerCase(), e = t.event, S_[e] || (Ft(qv.test(i) && qv.test(e)), x_[i] || (x_[i] = {
                action: n,
                actionInfo: t
            }), S_[e] = i)
        }

        function B_(t, e) {
            H_(I_, t, e, 3e3, "visual")
        }

        var F_ = [];

        function H_(t, e, n, i, r) {
            if ((bt(e) || Dt(e)) && (n = e, e = i), !(pt(F_, n) >= 0)) {
                F_.push(n);
                var o = Iy.wrapStageHandler(n, r);
                o.__prio = e, o.__raw = n, t.push(o)
            }
        }

        function U_(t, e) {
            C_[t] = e
        }

        var V_ = function (t) {
            var e = (t = lt(t)).type;
            e || Dp("");
            var n = e.split(":");
            2 !== n.length && Dp("");
            var i = !1;
            "echarts" === n[0] && (e = n[1], i = !0), t.__isBuiltIn = i, Vp.set(e, t)
        };
        B_(Hv, oy), B_(Uv, sy), B_(Uv, ly), B_(Hv, Gy), B_(Uv, By), B_(7e3, (function (t, e) {
            t.eachRawSeries((function (n) {
                if (!t.isSeriesFiltered(n)) {
                    var i = n.getData();
                    i.hasItemVisual() && i.each((function (t) {
                        var n = i.getItemVisual(t, "decal");
                        n && (i.ensureUniqueItemVisual(t, "style").decal = Rv(n, e))
                    }));
                    var r = i.getVisual("decal");
                    if (r) i.getVisual("style").decal = Rv(r, e)
                }
            }))
        })), R_(Xd), k_(900, (function (t) {
            var e = jt();
            t.eachSeries((function (t) {
                var n = t.get("stack");
                if (n) {
                    var i = e.get(n) || e.set(n, []), r = t.getData(), o = {
                        stackResultDimension: r.getCalculationInfo("stackResultDimension"),
                        stackedOverDimension: r.getCalculationInfo("stackedOverDimension"),
                        stackedDimension: r.getCalculationInfo("stackedDimension"),
                        stackedByDimension: r.getCalculationInfo("stackedByDimension"),
                        isStackedByIndex: r.getCalculationInfo("isStackedByIndex"),
                        data: r,
                        seriesModel: t
                    };
                    if (!o.stackedDimension || !o.isStackedByIndex && !o.stackedByDimension) return;
                    i.length && r.setCalculationInfo("stackedOnSeries", i[i.length - 1].seriesModel), i.push(o)
                }
            })), e.each(Zd)
        })), U_("default", (function (t, e) {
            dt(e = e || {}, {
                text: "loading",
                textColor: "#000",
                fontSize: 12,
                fontWeight: "normal",
                fontStyle: "normal",
                fontFamily: "sans-serif",
                maskColor: "rgba(255, 255, 255, 0.8)",
                showSpinner: !0,
                color: "#5470c6",
                spinnerRadius: 10,
                lineWidth: 5,
                zlevel: 0
            });
            var n = new xo, i = new Al({style: {fill: e.maskColor}, zlevel: e.zlevel, z: 1e4});
            n.add(i);
            var r, o = new Fl({
                style: {
                    text: e.text,
                    fill: e.textColor,
                    fontSize: e.fontSize,
                    fontWeight: e.fontWeight,
                    fontStyle: e.fontStyle,
                    fontFamily: e.fontFamily
                }, zlevel: e.zlevel, z: 10001
            }), a = new Al({
                style: {fill: "none"},
                textContent: o,
                textConfig: {position: "right", distance: 10},
                zlevel: e.zlevel,
                z: 10001
            });
            return n.add(a), e.showSpinner && ((r = new Xg({
                shape: {
                    startAngle: -uy / 2,
                    endAngle: -uy / 2 + .1,
                    r: e.spinnerRadius
                }, style: {stroke: e.color, lineCap: "round", lineWidth: e.lineWidth}, zlevel: e.zlevel, z: 10001
            })).animateShape(!0).when(1e3, {endAngle: 3 * uy / 2}).start("circularInOut"), r.animateShape(!0).when(1e3, {startAngle: 3 * uy / 2}).delay(300).start("circularInOut"), n.add(r)), n.resize = function () {
                var n = o.getBoundingRect().width, s = e.showSpinner ? e.spinnerRadius : 0,
                    l = (t.getWidth() - 2 * s - (e.showSpinner && n ? 10 : 0) - n) / 2 - (e.showSpinner && n ? 0 : 5 + n / 2) + (e.showSpinner ? 0 : n / 2) + (n ? 0 : s),
                    u = t.getHeight() / 2;
                e.showSpinner && r.setShape({cx: l, cy: u}), a.setShape({
                    x: l - s,
                    y: u - s,
                    width: 2 * s,
                    height: 2 * s
                }), i.setShape({x: 0, y: 0, width: t.getWidth(), height: t.getHeight()})
            }, n.resize(), n
        })), G_({type: Jl, event: Jl, update: Jl}, $t), G_({type: tu, event: tu, update: tu}, $t), G_({
            type: eu,
            event: eu,
            update: eu
        }, $t), G_({type: nu, event: nu, update: nu}, $t), G_({
            type: iu,
            event: iu,
            update: iu
        }, $t), L_("light", Cy), L_("dark", Ly);
        var z_ = [], W_ = {
            registerPreprocessor: R_,
            registerProcessor: k_,
            registerPostInit: function (t) {
                P_("afterinit", t)
            },
            registerPostUpdate: function (t) {
                P_("afterupdate", t)
            },
            registerUpdateLifecycle: P_,
            registerAction: G_,
            registerCoordinateSystem: function (t, e) {
                bd.register(t, e)
            },
            registerLayout: function (t, e) {
                H_(I_, t, e, 1e3, "layout")
            },
            registerVisual: B_,
            registerTransform: V_,
            registerLoading: U_,
            registerMap: function (t, e, n) {
                var i = Fv["registerMap"];
                i && i(t, e, n)
            },
            registerImpl: function (t, e) {
                Fv[t] = e
            },
            PRIORITY: Vv,
            ComponentModel: Fh,
            ComponentView: Gf,
            SeriesModel: kf,
            ChartView: jm,
            registerComponentModel: function (t) {
                Fh.registerClass(t)
            },
            registerComponentView: function (t) {
                Gf.registerClass(t)
            },
            registerSeriesModel: function (t) {
                kf.registerClass(t)
            },
            registerChartView: function (t) {
                jm.registerClass(t)
            },
            registerSubTypeDefaulter: function (t, e) {
                Fh.registerSubTypeDefaulter(t, e)
            },
            registerPainter: function (t, e) {
                var n;
                n = e, So[t] = n
            }
        };

        function Y_(t) {
            At(t) ? mt(t, (function (t) {
                Y_(t)
            })) : pt(z_, t) >= 0 || (z_.push(t), bt(t) && (t = {install: t}), t.install(W_))
        }

        var q_ = 2 * Math.PI, j_ = Hs.CMD, X_ = ["top", "right", "bottom", "left"];

        function Z_(t, e, n, i, r) {
            var o = n.width, a = n.height;
            switch (t) {
                case"top":
                    i.set(n.x + o / 2, n.y - e), r.set(0, -1);
                    break;
                case"bottom":
                    i.set(n.x + o / 2, n.y + a + e), r.set(0, 1);
                    break;
                case"left":
                    i.set(n.x - e, n.y + a / 2), r.set(-1, 0);
                    break;
                case"right":
                    i.set(n.x + o + e, n.y + a / 2), r.set(1, 0)
            }
        }

        function K_(t, e, n, i, r, o, a, s, l) {
            a -= t, s -= e;
            var u = Math.sqrt(a * a + s * s), c = (a /= u) * n + t, h = (s /= u) * n + e;
            if (Math.abs(i - r) % q_ < 1e-4) return l[0] = c, l[1] = h, u - n;
            if (o) {
                var d = i;
                i = Ys(r), r = Ys(d)
            } else i = Ys(i), r = Ys(r);
            i > r && (r += q_);
            var p = Math.atan2(s, a);
            if (p < 0 && (p += q_), p >= i && p <= r || p + q_ >= i && p + q_ <= r) return l[0] = c, l[1] = h, u - n;
            var f = n * Math.cos(i) + t, g = n * Math.sin(i) + e, m = n * Math.cos(r) + t, y = n * Math.sin(r) + e,
                v = (f - a) * (f - a) + (g - s) * (g - s), _ = (m - a) * (m - a) + (y - s) * (y - s);
            return v < _ ? (l[0] = f, l[1] = g, Math.sqrt(v)) : (l[0] = m, l[1] = y, Math.sqrt(_))
        }

        function Q_(t, e, n, i, r, o, a, s) {
            var l = r - t, u = o - e, c = n - t, h = i - e, d = Math.sqrt(c * c + h * h),
                p = (l * (c /= d) + u * (h /= d)) / d;
            s && (p = Math.min(Math.max(p, 0), 1)), p *= d;
            var f = a[0] = t + p * c, g = a[1] = e + p * h;
            return Math.sqrt((f - r) * (f - r) + (g - o) * (g - o))
        }

        function $_(t, e, n, i, r, o, a) {
            n < 0 && (t += n, n = -n), i < 0 && (e += i, i = -i);
            var s = t + n, l = e + i, u = a[0] = Math.min(Math.max(r, t), s), c = a[1] = Math.min(Math.max(o, e), l);
            return Math.sqrt((u - r) * (u - r) + (c - o) * (c - o))
        }

        var J_ = [];

        function tT(t, e, n) {
            var i = $_(e.x, e.y, e.width, e.height, t.x, t.y, J_);
            return n.set(J_[0], J_[1]), i
        }

        function eT(t, e, n) {
            for (var i, r, o = 0, a = 0, s = 0, l = 0, u = 1 / 0, c = e.data, h = t.x, d = t.y, p = 0; p < c.length;) {
                var f = c[p++];
                1 === p && (s = o = c[p], l = a = c[p + 1]);
                var g = u;
                switch (f) {
                    case j_.M:
                        o = s = c[p++], a = l = c[p++];
                        break;
                    case j_.L:
                        g = Q_(o, a, c[p], c[p + 1], h, d, J_, !0), o = c[p++], a = c[p++];
                        break;
                    case j_.C:
                        g = ii(o, a, c[p++], c[p++], c[p++], c[p++], c[p], c[p + 1], h, d, J_), o = c[p++], a = c[p++];
                        break;
                    case j_.Q:
                        g = ui(o, a, c[p++], c[p++], c[p], c[p + 1], h, d, J_), o = c[p++], a = c[p++];
                        break;
                    case j_.A:
                        var m = c[p++], y = c[p++], v = c[p++], _ = c[p++], T = c[p++], x = c[p++];
                        p += 1;
                        var S = !!(1 - c[p++]);
                        i = Math.cos(T) * v + m, r = Math.sin(T) * _ + y, p <= 1 && (s = i, l = r), g = K_(m, y, _, T, T + x, S, (h - m) * _ / v + m, d, J_), o = Math.cos(T + x) * v + m, a = Math.sin(T + x) * _ + y;
                        break;
                    case j_.R:
                        g = $_(s = o = c[p++], l = a = c[p++], c[p++], c[p++], h, d, J_);
                        break;
                    case j_.Z:
                        g = Q_(o, a, s, l, h, d, J_, !0), o = s, a = l
                }
                g < u && (u = g, n.set(J_[0], J_[1]))
            }
            return u
        }

        var nT = new tn, iT = new tn, rT = new tn, oT = new tn, aT = new tn;

        function sT(t, e) {
            if (t) {
                var n = t.getTextGuideLine(), i = t.getTextContent();
                if (i && n) {
                    var r = t.textGuideLineConfig || {}, o = [[0, 0], [0, 0], [0, 0]], a = r.candidates || X_,
                        s = i.getBoundingRect().clone();
                    s.applyTransform(i.getComputedTransform());
                    var l = 1 / 0, u = r.anchor, c = t.getComputedTransform(), h = c && $e([], c),
                        d = e.get("length2") || 0;
                    u && rT.copy(u);
                    for (var p = 0; p < a.length; p++) {
                        Z_(a[p], 0, s, nT, oT), tn.scaleAndAdd(iT, nT, oT, d), iT.transform(h);
                        var f = t.getBoundingRect(),
                            g = u ? u.distance(iT) : t instanceof ll ? eT(iT, t.path, rT) : tT(iT, f, rT);
                        g < l && (l = g, iT.transform(c), rT.transform(c), rT.toArray(o[0]), iT.toArray(o[1]), nT.toArray(o[2]))
                    }
                    cT(o, e.get("minTurnAngle")), n.setShape({points: o})
                }
            }
        }

        var lT = [], uT = new tn;

        function cT(t, e) {
            if (e <= 180 && e > 0) {
                e = e / 180 * Math.PI, nT.fromArray(t[0]), iT.fromArray(t[1]), rT.fromArray(t[2]), tn.sub(oT, nT, iT), tn.sub(aT, rT, iT);
                var n = oT.len(), i = aT.len();
                if (!(n < .001 || i < .001)) {
                    oT.scale(1 / n), aT.scale(1 / i);
                    var r = oT.dot(aT);
                    if (Math.cos(e) < r) {
                        var o = Q_(iT.x, iT.y, rT.x, rT.y, nT.x, nT.y, lT, !1);
                        uT.fromArray(lT), uT.scaleAndAdd(aT, o / Math.tan(Math.PI - e));
                        var a = rT.x !== iT.x ? (uT.x - iT.x) / (rT.x - iT.x) : (uT.y - iT.y) / (rT.y - iT.y);
                        if (isNaN(a)) return;
                        a < 0 ? tn.copy(uT, iT) : a > 1 && tn.copy(uT, rT), uT.toArray(t[1])
                    }
                }
            }
        }

        function hT(t, e, n) {
            if (n <= 180 && n > 0) {
                n = n / 180 * Math.PI, nT.fromArray(t[0]), iT.fromArray(t[1]), rT.fromArray(t[2]), tn.sub(oT, iT, nT), tn.sub(aT, rT, iT);
                var i = oT.len(), r = aT.len();
                if (!(i < .001 || r < .001)) if (oT.scale(1 / i), aT.scale(1 / r), oT.dot(e) < Math.cos(n)) {
                    var o = Q_(iT.x, iT.y, rT.x, rT.y, nT.x, nT.y, lT, !1);
                    uT.fromArray(lT);
                    var a = Math.PI / 2, s = a + Math.acos(aT.dot(e)) - n;
                    if (s >= a) tn.copy(uT, rT); else {
                        uT.scaleAndAdd(aT, o / Math.tan(Math.PI / 2 - s));
                        var l = rT.x !== iT.x ? (uT.x - iT.x) / (rT.x - iT.x) : (uT.y - iT.y) / (rT.y - iT.y);
                        if (isNaN(l)) return;
                        l < 0 ? tn.copy(uT, iT) : l > 1 && tn.copy(uT, rT)
                    }
                    uT.toArray(t[1])
                }
            }
        }

        function dT(t, e, n, i) {
            var r = "normal" === n, o = r ? t : t.ensureState(n);
            o.ignore = e;
            var a = i.get("smooth");
            a && !0 === a && (a = .3), o.shape = o.shape || {}, a > 0 && (o.shape.smooth = a);
            var s = i.getModel("lineStyle").getLineStyle();
            r ? t.useStyle(s) : o.style = s
        }

        function pT(t, e) {
            var n = e.smooth, i = e.points;
            if (i) if (t.moveTo(i[0][0], i[0][1]), n > 0 && i.length >= 3) {
                var r = de(i[0], i[1]), o = de(i[1], i[2]);
                if (!r || !o) return t.lineTo(i[1][0], i[1][1]), void t.lineTo(i[2][0], i[2][1]);
                var a = Math.min(r, o) * n, s = fe([], i[1], i[0], a / r), l = fe([], i[1], i[2], a / o),
                    u = fe([], s, l, .5);
                t.bezierCurveTo(s[0], s[1], s[0], s[1], u[0], u[1]), t.bezierCurveTo(l[0], l[1], l[0], l[1], i[2][0], i[2][1])
            } else for (var c = 1; c < i.length; c++) t.lineTo(i[c][0], i[c][1])
        }

        function fT(t, e, n) {
            var i = t.getTextGuideLine(), r = t.getTextContent();
            if (r) {
                for (var o = e.normal, a = o.get("show"), s = r.ignore, l = 0; l < Kl.length; l++) {
                    var u = Kl[l], c = e[u], h = "normal" === u;
                    if (c) {
                        var d = c.get("show");
                        if ((h ? s : kt(r.states[u] && r.states[u].ignore, s)) || !kt(d, a)) {
                            var p = h ? i : i && i.states[u];
                            p && (p.ignore = !0);
                            continue
                        }
                        i || (i = new Pg, t.setTextGuideLine(i), h || !s && a || dT(i, !0, "normal", e.normal), t.stateProxy && (i.stateProxy = t.stateProxy)), dT(i, !1, u, c)
                    }
                }
                if (i) {
                    dt(i.style, n), i.style.fill = null;
                    var f = o.get("showAbove");
                    (t.textGuideLineConfig = t.textGuideLineConfig || {}).showAbove = f || !1, i.buildPath = pT
                }
            } else i && t.removeTextGuideLine()
        }

        function gT(t, e) {
            e = e || "labelLine";
            for (var n = {normal: t.getModel(e)}, i = 0; i < Zl.length; i++) {
                var r = Zl[i];
                n[r] = t.getModel([r, e])
            }
            return n
        }

        function mT(t) {
            for (var e = [], n = 0; n < t.length; n++) {
                var i = t[n];
                if (!i.defaultAttr.ignore) {
                    var r = i.label, o = r.getComputedTransform(), a = r.getBoundingRect(),
                        s = !o || o[1] < 1e-5 && o[2] < 1e-5, l = r.style.margin || 0, u = a.clone();
                    u.applyTransform(o), u.x -= l / 2, u.y -= l / 2, u.width += l, u.height += l;
                    var c = s ? new om(a, o) : null;
                    e.push({
                        label: r,
                        labelLine: i.labelLine,
                        rect: u,
                        localRect: a,
                        obb: c,
                        priority: i.priority,
                        defaultAttr: i.defaultAttr,
                        layoutOption: i.computedLayoutOption,
                        axisAligned: s,
                        transform: o
                    })
                }
            }
            return e
        }

        function yT(t, e, n, i, r, o) {
            var a = t.length;
            if (!(a < 2)) {
                t.sort((function (t, n) {
                    return t.rect[e] - n.rect[e]
                }));
                for (var s, l = 0, u = !1, c = [], h = 0, d = 0; d < a; d++) {
                    var p = t[d], f = p.rect;
                    (s = f[e] - l) < 0 && (f[e] -= s, p.label[e] -= s, u = !0);
                    var g = Math.max(-s, 0);
                    c.push(g), h += g, l = f[e] + f[n]
                }
                h > 0 && o && S(-h / a, 0, a);
                var m, y, v = t[0], _ = t[a - 1];
                return T(), m < 0 && A(-m, .8), y < 0 && A(y, .8), T(), x(m, y, 1), x(y, m, -1), T(), m < 0 && b(-m), y < 0 && b(y), u
            }

            function T() {
                m = v.rect[e] - i, y = r - _.rect[e] - _.rect[n]
            }

            function x(t, e, n) {
                if (t < 0) {
                    var i = Math.min(e, -t);
                    if (i > 0) {
                        S(i * n, 0, a);
                        var r = i + t;
                        r < 0 && A(-r * n, 1)
                    } else A(-t * n, 1)
                }
            }

            function S(n, i, r) {
                0 !== n && (u = !0);
                for (var o = i; o < r; o++) {
                    var a = t[o];
                    a.rect[e] += n, a.label[e] += n
                }
            }

            function A(i, r) {
                for (var o = [], s = 0, l = 1; l < a; l++) {
                    var u = t[l - 1].rect, c = Math.max(t[l].rect[e] - u[e] - u[n], 0);
                    o.push(c), s += c
                }
                if (s) {
                    var h = Math.min(Math.abs(i) / s, r);
                    if (i > 0) for (l = 0; l < a - 1; l++) {
                        S(o[l] * h, 0, l + 1)
                    } else for (l = a - 1; l > 0; l--) {
                        S(-(o[l - 1] * h), l, a)
                    }
                }
            }

            function b(t) {
                var e = t < 0 ? -1 : 1;
                t = Math.abs(t);
                for (var n = Math.ceil(t / (a - 1)), i = 0; i < a - 1; i++) if (e > 0 ? S(n, 0, i + 1) : S(-n, a - i - 1, a), (t -= n) <= 0) return
            }
        }

        function vT(t, e, n, i) {
            return yT(t, "y", "height", e, n, i)
        }

        function _T(t) {
            var e = [];
            t.sort((function (t, e) {
                return e.priority - t.priority
            }));
            var n = new hn(0, 0, 0, 0);

            function i(t) {
                if (!t.ignore) {
                    var e = t.ensureState("emphasis");
                    null == e.ignore && (e.ignore = !1)
                }
                t.ignore = !0
            }

            for (var r = 0; r < t.length; r++) {
                var o = t[r], a = o.axisAligned, s = o.localRect, l = o.transform, u = o.label, c = o.labelLine;
                n.copy(o.rect), n.width -= .1, n.height -= .1, n.x += .05, n.y += .05;
                for (var h = o.obb, d = !1, p = 0; p < e.length; p++) {
                    var f = e[p];
                    if (n.intersect(f.rect)) {
                        if (a && f.axisAligned) {
                            d = !0;
                            break
                        }
                        if (f.obb || (f.obb = new om(f.localRect, f.transform)), h || (h = new om(s, l)), h.intersect(f.obb)) {
                            d = !0;
                            break
                        }
                    }
                }
                d ? (i(u), c && i(c)) : (u.attr("ignore", o.defaultAttr.ignore), c && c.attr("ignore", o.defaultAttr.labelGuideIgnore), e.push(o))
            }
        }

        function TT(t) {
            if (t) {
                for (var e = [], n = 0; n < t.length; n++) e.push(t[n].slice());
                return e
            }
        }

        function xT(t, e) {
            var n = t.label, i = e && e.getTextGuideLine();
            return {
                dataIndex: t.dataIndex,
                dataType: t.dataType,
                seriesIndex: t.seriesModel.seriesIndex,
                text: t.label.style.text,
                rect: t.hostRect,
                labelRect: t.rect,
                align: n.style.align,
                verticalAlign: n.style.verticalAlign,
                labelLinePoints: TT(i && i.shape.points)
            }
        }

        var ST = ["align", "verticalAlign", "width", "height", "fontSize"], AT = new $r, bT = ha(), IT = ha();

        function ET(t, e, n) {
            for (var i = 0; i < n.length; i++) {
                var r = n[i];
                null != e[r] && (t[r] = e[r])
            }
        }

        var CT = ["x", "y", "rotation"], DT = function () {
            function t() {
                this._labelList = [], this._chartViewList = []
            }

            return t.prototype.clearLabels = function () {
                this._labelList = [], this._chartViewList = []
            }, t.prototype._addLabel = function (t, e, n, i, r) {
                var o = i.style, a = i.__hostTarget.textConfig || {}, s = i.getComputedTransform(),
                    l = i.getBoundingRect().plain();
                hn.applyTransform(l, l, s), s ? AT.setLocalTransform(s) : (AT.x = AT.y = AT.rotation = AT.originX = AT.originY = 0, AT.scaleX = AT.scaleY = 1), AT.rotation = Ys(AT.rotation);
                var u, c = i.__hostTarget;
                if (c) {
                    u = c.getBoundingRect().plain();
                    var h = c.getComputedTransform();
                    hn.applyTransform(u, u, h)
                }
                var d = u && c.getTextGuideLine();
                this._labelList.push({
                    label: i,
                    labelLine: d,
                    seriesModel: n,
                    dataIndex: t,
                    dataType: e,
                    layoutOption: r,
                    computedLayoutOption: null,
                    rect: l,
                    hostRect: u,
                    priority: u ? u.width * u.height : 0,
                    defaultAttr: {
                        ignore: i.ignore,
                        labelGuideIgnore: d && d.ignore,
                        x: AT.x,
                        y: AT.y,
                        scaleX: AT.scaleX,
                        scaleY: AT.scaleY,
                        rotation: AT.rotation,
                        style: {
                            x: o.x,
                            y: o.y,
                            align: o.align,
                            verticalAlign: o.verticalAlign,
                            width: o.width,
                            height: o.height,
                            fontSize: o.fontSize
                        },
                        cursor: i.cursor,
                        attachedPos: a.position,
                        attachedRot: a.rotation
                    }
                })
            }, t.prototype.addLabelsOfSeries = function (t) {
                var e = this;
                this._chartViewList.push(t);
                var n = t.__model, i = n.get("labelLayout");
                (bt(i) || Tt(i).length) && t.group.traverse((function (t) {
                    if (t.ignore) return !0;
                    var r = t.getTextContent(), o = Hl(t);
                    r && !r.disableLabelLayout && e._addLabel(o.dataIndex, o.dataType, n, r, i)
                }))
            }, t.prototype.updateLayoutConfig = function (t) {
                var e = t.getWidth(), n = t.getHeight();

                function i(t, e) {
                    return function () {
                        sT(t, e)
                    }
                }

                for (var r = 0; r < this._labelList.length; r++) {
                    var o = this._labelList[r], a = o.label, s = a.__hostTarget, l = o.defaultAttr, u = void 0;
                    u = (u = bt(o.layoutOption) ? o.layoutOption(xT(o, s)) : o.layoutOption) || {}, o.computedLayoutOption = u;
                    var c = Math.PI / 180;
                    s && s.setTextConfig({
                        local: !1,
                        position: null != u.x || null != u.y ? null : l.attachedPos,
                        rotation: null != u.rotate ? u.rotate * c : l.attachedRot,
                        offset: [u.dx || 0, u.dy || 0]
                    });
                    var h = !1;
                    if (null != u.x ? (a.x = wo(u.x, e), a.setStyle("x", 0), h = !0) : (a.x = l.x, a.setStyle("x", l.style.x)), null != u.y ? (a.y = wo(u.y, n), a.setStyle("y", 0), h = !0) : (a.y = l.y, a.setStyle("y", l.style.y)), u.labelLinePoints) {
                        var d = s.getTextGuideLine();
                        d && (d.setShape({points: u.labelLinePoints}), h = !1)
                    }
                    bT(a).needsUpdateLabelLine = h, a.rotation = null != u.rotate ? u.rotate * c : l.rotation, a.scaleX = l.scaleX, a.scaleY = l.scaleY;
                    for (var p = 0; p < ST.length; p++) {
                        var f = ST[p];
                        a.setStyle(f, null != u[f] ? u[f] : l.style[f])
                    }
                    if (u.draggable) {
                        if (a.draggable = !0, a.cursor = "move", s) {
                            var g = o.seriesModel;
                            if (null != o.dataIndex) g = o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);
                            a.on("drag", i(s, g.getModel("labelLine")))
                        }
                    } else a.off("drag"), a.cursor = l.cursor
                }
            }, t.prototype.layout = function (t) {
                var e, n = t.getWidth(), i = t.getHeight(), r = mT(this._labelList), o = _t(r, (function (t) {
                    return "shiftX" === t.layoutOption.moveOverlap
                })), a = _t(r, (function (t) {
                    return "shiftY" === t.layoutOption.moveOverlap
                }));
                yT(o, "x", "width", 0, n, e), vT(a, 0, i), _T(_t(r, (function (t) {
                    return t.layoutOption.hideOverlap
                })))
            }, t.prototype.processLabelsOverall = function () {
                var t = this;
                mt(this._chartViewList, (function (e) {
                    var n = e.__model, i = e.ignoreLabelLineUpdate, r = n.isAnimationEnabled();
                    e.group.traverse((function (e) {
                        if (e.ignore && !e.forceLabelAnimation) return !0;
                        var o = !i, a = e.getTextContent();
                        !o && a && (o = bT(a).needsUpdateLabelLine), o && t._updateLabelLine(e, n), r && t._animateLabels(e, n)
                    }))
                }))
            }, t.prototype._updateLabelLine = function (t, e) {
                var n = t.getTextContent(), i = Hl(t), r = i.dataIndex;
                if (n && null != r) {
                    var o = e.getData(i.dataType), a = o.getItemModel(r), s = {}, l = o.getItemVisual(r, "style");
                    if (l) {
                        var u = o.getVisual("drawType");
                        s.stroke = l[u]
                    }
                    var c = a.getModel("labelLine");
                    fT(t, gT(a), s), sT(t, c)
                }
            }, t.prototype._animateLabels = function (t, e) {
                var n = t.getTextContent(), i = t.getTextGuideLine();
                if (n && (t.forceLabelAnimation || !n.ignore && !n.invisible && !t.disableLabelAnimation && !Zu(t))) {
                    var r = (p = bT(n)).oldLayout, o = Hl(t), a = o.dataIndex,
                        s = {x: n.x, y: n.y, rotation: n.rotation}, l = e.getData(o.dataType);
                    if (r) {
                        n.attr(r);
                        var u = t.prevStates;
                        u && (pt(u, "select") >= 0 && n.attr(p.oldLayoutSelect), pt(u, "emphasis") >= 0 && n.attr(p.oldLayoutEmphasis)), ju(n, s, e, a)
                    } else if (n.attr(s), !dc(n).valueAnimation) {
                        var c = kt(n.style.opacity, 1);
                        n.style.opacity = 0, Xu(n, {style: {opacity: c}}, e, a)
                    }
                    if (p.oldLayout = s, n.states.select) {
                        var h = p.oldLayoutSelect = {};
                        ET(h, s, CT), ET(h, n.states.select, CT)
                    }
                    if (n.states.emphasis) {
                        var d = p.oldLayoutEmphasis = {};
                        ET(d, s, CT), ET(d, n.states.emphasis, CT)
                    }
                    fc(n, a, l, e, e)
                }
                if (i && !i.ignore && !i.invisible) {
                    r = (p = IT(i)).oldLayout;
                    var p, f = {points: i.shape.points};
                    r ? (i.attr({shape: r}), ju(i, {shape: f}, e)) : (i.setShape(f), i.style.strokePercent = 0, Xu(i, {style: {strokePercent: 1}}, e)), p.oldLayout = f
                }
            }, t
        }();
        const wT = DT;
        var MT = ha();

        function NT(t) {
            t.registerUpdateLifecycle("series:beforeupdate", (function (t, e, n) {
                var i = MT(e).labelManager;
                i || (i = MT(e).labelManager = new wT), i.clearLabels()
            })), t.registerUpdateLifecycle("series:layoutlabels", (function (t, e, n) {
                var i = MT(e).labelManager;
                n.updatedSeries.forEach((function (t) {
                    i.addLabelsOfSeries(e.getViewOfSeriesModel(t))
                })), i.updateLayoutConfig(e), i.layout(e), i.processLabelsOverall()
            }))
        }

        function OT(t, e, n) {
            var i = j.createCanvas(), r = e.getWidth(), o = e.getHeight(), a = i.style;
            return a && (a.position = "absolute", a.left = "0", a.top = "0", a.width = r + "px", a.height = o + "px", i.setAttribute("data-zr-dom-id", t)), i.width = r * n, i.height = o * n, i
        }

        Y_(NT);
        var LT = function (t) {
            function e(e, n, i) {
                var r, o = t.call(this) || this;
                o.motionBlur = !1, o.lastFrameAlpha = .7, o.dpr = 1, o.virtual = !1, o.config = {}, o.incremental = !1, o.zlevel = 0, o.maxRepaintRectCount = 5, o.__dirty = !0, o.__firstTimePaint = !0, o.__used = !1, o.__drawIndex = 0, o.__startIndex = 0, o.__endIndex = 0, o.__prevStartIndex = null, o.__prevEndIndex = null, i = i || Fr, "string" == typeof e ? r = OT(e, n, i) : Dt(e) && (e = (r = e).id), o.id = e, o.dom = r;
                var a = r.style;
                return a && (Kt(r), r.onselectstart = function () {
                    return !1
                }, a.padding = "0", a.margin = "0", a.borderWidth = "0"), o.painter = n, o.dpr = i, o
            }

            return G(e, t), e.prototype.getElementCount = function () {
                return this.__endIndex - this.__startIndex
            }, e.prototype.afterBrush = function () {
                this.__prevStartIndex = this.__startIndex, this.__prevEndIndex = this.__endIndex
            }, e.prototype.initContext = function () {
                this.ctx = this.dom.getContext("2d"), this.ctx.dpr = this.dpr
            }, e.prototype.setUnpainted = function () {
                this.__firstTimePaint = !0
            }, e.prototype.createBackBuffer = function () {
                var t = this.dpr;
                this.domBack = OT("back-" + this.id, this.painter, t), this.ctxBack = this.domBack.getContext("2d"), 1 !== t && this.ctxBack.scale(t, t)
            }, e.prototype.createRepaintRects = function (t, e, n, i) {
                if (this.__firstTimePaint) return this.__firstTimePaint = !1, null;
                var r, o = [], a = this.maxRepaintRectCount, s = !1, l = new hn(0, 0, 0, 0);

                function u(t) {
                    if (t.isFinite() && !t.isZero()) if (0 === o.length) {
                        (e = new hn(0, 0, 0, 0)).copy(t), o.push(e)
                    } else {
                        for (var e, n = !1, i = 1 / 0, r = 0, u = 0; u < o.length; ++u) {
                            var c = o[u];
                            if (c.intersect(t)) {
                                var h = new hn(0, 0, 0, 0);
                                h.copy(c), h.union(t), o[u] = h, n = !0;
                                break
                            }
                            if (s) {
                                l.copy(t), l.union(c);
                                var d = t.width * t.height, p = c.width * c.height, f = l.width * l.height - d - p;
                                f < i && (i = f, r = u)
                            }
                        }
                        if (s && (o[r].union(t), n = !0), !n) (e = new hn(0, 0, 0, 0)).copy(t), o.push(e);
                        s || (s = o.length >= a)
                    }
                }

                for (var c = this.__startIndex; c < this.__endIndex; ++c) {
                    if (p = t[c]) {
                        var h = p.shouldBePainted(n, i, !0, !0);
                        (f = p.__isRendered && (p.__dirty & Nn || !h) ? p.getPrevPaintRect() : null) && u(f);
                        var d = h && (p.__dirty & Nn || !p.__isRendered) ? p.getPaintRect() : null;
                        d && u(d)
                    }
                }
                for (c = this.__prevStartIndex; c < this.__prevEndIndex; ++c) {
                    var p, f;
                    h = (p = e[c]).shouldBePainted(n, i, !0, !0);
                    if (p && (!h || !p.__zr) && p.__isRendered) (f = p.getPrevPaintRect()) && u(f)
                }
                do {
                    r = !1;
                    for (c = 0; c < o.length;) if (o[c].isZero()) o.splice(c, 1); else {
                        for (var g = c + 1; g < o.length;) o[c].intersect(o[g]) ? (r = !0, o[c].union(o[g]), o.splice(g, 1)) : g++;
                        c++
                    }
                } while (r);
                return this._paintRects = o, o
            }, e.prototype.debugGetPaintRects = function () {
                return (this._paintRects || []).slice()
            }, e.prototype.resize = function (t, e) {
                var n = this.dpr, i = this.dom, r = i.style, o = this.domBack;
                r && (r.width = t + "px", r.height = e + "px"), i.width = t * n, i.height = e * n, o && (o.width = t * n, o.height = e * n, 1 !== n && this.ctxBack.scale(n, n))
            }, e.prototype.clear = function (t, e, n) {
                var i = this.dom, r = this.ctx, o = i.width, a = i.height;
                e = e || this.clearColor;
                var s = this.motionBlur && !t, l = this.lastFrameAlpha, u = this.dpr, c = this;
                s && (this.domBack || this.createBackBuffer(), this.ctxBack.globalCompositeOperation = "copy", this.ctxBack.drawImage(i, 0, 0, o / u, a / u));
                var h = this.domBack;

                function d(t, n, i, o) {
                    if (r.clearRect(t, n, i, o), e && "transparent" !== e) {
                        var a = void 0;
                        if (Ot(e)) a = (e.global || e.__width === i && e.__height === o) && e.__canvasGradient || sv(r, e, {
                            x: 0,
                            y: 0,
                            width: i,
                            height: o
                        }), e.__canvasGradient = a, e.__width = i, e.__height = o; else null != e.image && (e.scaleX = e.scaleX || u, e.scaleY = e.scaleY || u, a = yv(r, e, {
                            dirty: function () {
                                c.setUnpainted(), c.__painter.refresh()
                            }
                        }));
                        r.save(), r.fillStyle = a || e, r.fillRect(t, n, i, o), r.restore()
                    }
                    s && (r.save(), r.globalAlpha = l, r.drawImage(h, t, n, i, o), r.restore())
                }

                !n || s ? d(0, 0, o, a) : n.length && mt(n, (function (t) {
                    d(t.x * u, t.y * u, t.width * u, t.height * u)
                }))
            }, e
        }(Se);
        const RT = LT;
        var kT = 1e5, PT = 314159, GT = .01;
        var BT = function () {
            function t(t, e, n, i) {
                this.type = "canvas", this._zlevelList = [], this._prevDisplayList = [], this._layers = {}, this._layerConfig = {}, this._needsManuallyCompositing = !1, this.type = "canvas";
                var r = !t.nodeName || "CANVAS" === t.nodeName.toUpperCase();
                this._opts = n = ht({}, n || {}), this.dpr = n.devicePixelRatio || Fr, this._singleCanvas = r, this.root = t, t.style && (Kt(t), t.innerHTML = ""), this.storage = e;
                var o = this._zlevelList;
                this._prevDisplayList = [];
                var a = this._layers;
                if (r) {
                    var s = t, l = s.width, u = s.height;
                    null != n.width && (l = n.width), null != n.height && (u = n.height), this.dpr = n.devicePixelRatio || 1, s.width = l * this.dpr, s.height = u * this.dpr, this._width = l, this._height = u;
                    var c = new RT(s, this, this.dpr);
                    c.__builtin__ = !0, c.initContext(), a[314159] = c, c.zlevel = PT, o.push(PT), this._domRoot = t
                } else {
                    this._width = uv(t, 0, n), this._height = uv(t, 1, n);
                    var h = this._domRoot = function (t, e) {
                        var n = document.createElement("div");
                        return n.style.cssText = ["position:relative", "width:" + t + "px", "height:" + e + "px", "padding:0", "margin:0", "border-width:0"].join(";") + ";", n
                    }(this._width, this._height);
                    t.appendChild(h)
                }
            }

            return t.prototype.getType = function () {
                return "canvas"
            }, t.prototype.isSingleCanvas = function () {
                return this._singleCanvas
            }, t.prototype.getViewportRoot = function () {
                return this._domRoot
            }, t.prototype.getViewportRootOffset = function () {
                var t = this.getViewportRoot();
                if (t) return {offsetLeft: t.offsetLeft || 0, offsetTop: t.offsetTop || 0}
            }, t.prototype.refresh = function (t) {
                var e = this.storage.getDisplayList(!0), n = this._prevDisplayList, i = this._zlevelList;
                this._redrawId = Math.random(), this._paintList(e, n, t, this._redrawId);
                for (var r = 0; r < i.length; r++) {
                    var o = i[r], a = this._layers[o];
                    if (!a.__builtin__ && a.refresh) {
                        var s = 0 === r ? this._backgroundColor : null;
                        a.refresh(s)
                    }
                }
                return this._opts.useDirtyRect && (this._prevDisplayList = e.slice()), this
            }, t.prototype.refreshHover = function () {
                this._paintHoverList(this.storage.getDisplayList(!1))
            }, t.prototype._paintHoverList = function (t) {
                var e = t.length, n = this._hoverlayer;
                if (n && n.clear(), e) {
                    for (var i, r = {
                        inHover: !0,
                        viewWidth: this._width,
                        viewHeight: this._height
                    }, o = 0; o < e; o++) {
                        var a = t[o];
                        a.__inHover && (n || (n = this._hoverlayer = this.getLayer(kT)), i || (i = n.ctx).save(), Mv(i, a, r, o === e - 1))
                    }
                    i && i.restore()
                }
            }, t.prototype.getHoverLayer = function () {
                return this.getLayer(kT)
            }, t.prototype.paintOne = function (t, e) {
                wv(t, e)
            }, t.prototype._paintList = function (t, e, n, i) {
                if (this._redrawId === i) {
                    n = n || !1, this._updateLayerStatus(t);
                    var r = this._doPaintList(t, e, n), o = r.finished, a = r.needsRefreshHover;
                    if (this._needsManuallyCompositing && this._compositeManually(), a && this._paintHoverList(t), o) this.eachLayer((function (t) {
                        t.afterBrush && t.afterBrush()
                    })); else {
                        var s = this;
                        Bn((function () {
                            s._paintList(t, e, n, i)
                        }))
                    }
                }
            }, t.prototype._compositeManually = function () {
                var t = this.getLayer(PT).ctx, e = this._domRoot.width, n = this._domRoot.height;
                t.clearRect(0, 0, e, n), this.eachBuiltinLayer((function (i) {
                    i.virtual && t.drawImage(i.dom, 0, 0, e, n)
                }))
            }, t.prototype._doPaintList = function (t, e, n) {
                for (var i = this, r = [], o = this._opts.useDirtyRect, a = 0; a < this._zlevelList.length; a++) {
                    var s = this._zlevelList[a], l = this._layers[s];
                    l.__builtin__ && l !== this._hoverlayer && (l.__dirty || n) && r.push(l)
                }
                for (var u = !0, c = !1, h = function (a) {
                    var s, l = r[a], h = l.ctx, p = o && l.createRepaintRects(t, e, d._width, d._height),
                        f = n ? l.__startIndex : l.__drawIndex, g = !n && l.incremental && Date.now,
                        m = g && Date.now(), y = l.zlevel === d._zlevelList[0] ? d._backgroundColor : null;
                    if (l.__startIndex === l.__endIndex) l.clear(!1, y, p); else if (f === l.__startIndex) {
                        var v = t[f];
                        v.incremental && v.notClear && !n || l.clear(!1, y, p)
                    }
                    -1 === f && (console.error("For some unknown reason. drawIndex is -1"), f = l.__startIndex);
                    var _ = function (e) {
                        var n = {inHover: !1, allClipped: !1, prevEl: null, viewWidth: i._width, viewHeight: i._height};
                        for (s = f; s < l.__endIndex; s++) {
                            var r = t[s];
                            if (r.__inHover && (c = !0), i._doPaintEl(r, l, o, e, n, s === l.__endIndex - 1), g) if (Date.now() - m > 15) break
                        }
                        n.prevElClipPaths && h.restore()
                    };
                    if (p) if (0 === p.length) s = l.__endIndex; else for (var T = d.dpr, x = 0; x < p.length; ++x) {
                        var S = p[x];
                        h.save(), h.beginPath(), h.rect(S.x * T, S.y * T, S.width * T, S.height * T), h.clip(), _(S), h.restore()
                    } else h.save(), _(), h.restore();
                    l.__drawIndex = s, l.__drawIndex < l.__endIndex && (u = !1)
                }, d = this, p = 0; p < r.length; p++) h(p);
                return H.wxa && mt(this._layers, (function (t) {
                    t && t.ctx && t.ctx.draw && t.ctx.draw()
                })), {finished: u, needsRefreshHover: c}
            }, t.prototype._doPaintEl = function (t, e, n, i, r, o) {
                var a = e.ctx;
                if (n) {
                    var s = t.getPaintRect();
                    (!i || s && s.intersect(i)) && (Mv(a, t, r, o), t.setPrevPaintRect(s))
                } else Mv(a, t, r, o)
            }, t.prototype.getLayer = function (t, e) {
                this._singleCanvas && !this._needsManuallyCompositing && (t = PT);
                var n = this._layers[t];
                return n || ((n = new RT("zr_" + t, this, this.dpr)).zlevel = t, n.__builtin__ = !0, this._layerConfig[t] ? ut(n, this._layerConfig[t], !0) : this._layerConfig[t - GT] && ut(n, this._layerConfig[t - GT], !0), e && (n.virtual = e), this.insertLayer(t, n), n.initContext()), n
            }, t.prototype.insertLayer = function (t, e) {
                var n = this._layers, i = this._zlevelList, r = i.length, o = this._domRoot, a = null, s = -1;
                if (!n[t] && function (t) {
                    return !!t && (!!t.__builtin__ || "function" == typeof t.resize && "function" == typeof t.refresh)
                }(e)) {
                    if (r > 0 && t > i[0]) {
                        for (s = 0; s < r - 1 && !(i[s] < t && i[s + 1] > t); s++) ;
                        a = n[i[s]]
                    }
                    if (i.splice(s + 1, 0, t), n[t] = e, !e.virtual) if (a) {
                        var l = a.dom;
                        l.nextSibling ? o.insertBefore(e.dom, l.nextSibling) : o.appendChild(e.dom)
                    } else o.firstChild ? o.insertBefore(e.dom, o.firstChild) : o.appendChild(e.dom);
                    e.__painter = this
                }
            }, t.prototype.eachLayer = function (t, e) {
                for (var n = this._zlevelList, i = 0; i < n.length; i++) {
                    var r = n[i];
                    t.call(e, this._layers[r], r)
                }
            }, t.prototype.eachBuiltinLayer = function (t, e) {
                for (var n = this._zlevelList, i = 0; i < n.length; i++) {
                    var r = n[i], o = this._layers[r];
                    o.__builtin__ && t.call(e, o, r)
                }
            }, t.prototype.eachOtherLayer = function (t, e) {
                for (var n = this._zlevelList, i = 0; i < n.length; i++) {
                    var r = n[i], o = this._layers[r];
                    o.__builtin__ || t.call(e, o, r)
                }
            }, t.prototype.getLayers = function () {
                return this._layers
            }, t.prototype._updateLayerStatus = function (t) {
                function e(t) {
                    o && (o.__endIndex !== t && (o.__dirty = !0), o.__endIndex = t)
                }

                if (this.eachBuiltinLayer((function (t, e) {
                    t.__dirty = t.__used = !1
                })), this._singleCanvas) for (var n = 1; n < t.length; n++) {
                    if ((s = t[n]).zlevel !== t[n - 1].zlevel || s.incremental) {
                        this._needsManuallyCompositing = !0;
                        break
                    }
                }
                var i, r, o = null, a = 0;
                for (r = 0; r < t.length; r++) {
                    var s, l = (s = t[r]).zlevel, u = void 0;
                    i !== l && (i = l, a = 0), s.incremental ? ((u = this.getLayer(l + .001, this._needsManuallyCompositing)).incremental = !0, a = 1) : u = this.getLayer(l + (a > 0 ? GT : 0), this._needsManuallyCompositing), u.__builtin__ || st("ZLevel " + l + " has been used by unkown layer " + u.id), u !== o && (u.__used = !0, u.__startIndex !== r && (u.__dirty = !0), u.__startIndex = r, u.incremental ? u.__drawIndex = -1 : u.__drawIndex = r, e(r), o = u), s.__dirty & Nn && !s.__inHover && (u.__dirty = !0, u.incremental && u.__drawIndex < 0 && (u.__drawIndex = r))
                }
                e(r), this.eachBuiltinLayer((function (t, e) {
                    !t.__used && t.getElementCount() > 0 && (t.__dirty = !0, t.__startIndex = t.__endIndex = t.__drawIndex = 0), t.__dirty && t.__drawIndex < 0 && (t.__drawIndex = t.__startIndex)
                }))
            }, t.prototype.clear = function () {
                return this.eachBuiltinLayer(this._clearLayer), this
            }, t.prototype._clearLayer = function (t) {
                t.clear()
            }, t.prototype.setBackgroundColor = function (t) {
                this._backgroundColor = t, mt(this._layers, (function (t) {
                    t.setUnpainted()
                }))
            }, t.prototype.configLayer = function (t, e) {
                if (e) {
                    var n = this._layerConfig;
                    n[t] ? ut(n[t], e, !0) : n[t] = e;
                    for (var i = 0; i < this._zlevelList.length; i++) {
                        var r = this._zlevelList[i];
                        if (r === t || r === t + GT) ut(this._layers[r], n[t], !0)
                    }
                }
            }, t.prototype.delLayer = function (t) {
                var e = this._layers, n = this._zlevelList, i = e[t];
                i && (i.dom.parentNode.removeChild(i.dom), delete e[t], n.splice(pt(n, t), 1))
            }, t.prototype.resize = function (t, e) {
                if (this._domRoot.style) {
                    var n = this._domRoot;
                    n.style.display = "none";
                    var i = this._opts, r = this.root;
                    if (null != t && (i.width = t), null != e && (i.height = e), t = uv(r, 0, i), e = uv(r, 1, i), n.style.display = "", this._width !== t || e !== this._height) {
                        for (var o in n.style.width = t + "px", n.style.height = e + "px", this._layers) this._layers.hasOwnProperty(o) && this._layers[o].resize(t, e);
                        this.refresh(!0)
                    }
                    this._width = t, this._height = e
                } else {
                    if (null == t || null == e) return;
                    this._width = t, this._height = e, this.getLayer(PT).resize(t, e)
                }
                return this
            }, t.prototype.clearLayer = function (t) {
                var e = this._layers[t];
                e && e.clear()
            }, t.prototype.dispose = function () {
                this.root.innerHTML = "", this.root = this.storage = this._domRoot = this._layers = null
            }, t.prototype.getRenderedCanvas = function (t) {
                if (t = t || {}, this._singleCanvas && !this._compositeManually) return this._layers[314159].dom;
                var e = new RT("image", this, t.pixelRatio || this.dpr);
                e.initContext(), e.clear(!1, t.backgroundColor || this._backgroundColor);
                var n = e.ctx;
                if (t.pixelRatio <= this.dpr) {
                    this.refresh();
                    var i = e.dom.width, r = e.dom.height;
                    this.eachLayer((function (t) {
                        t.__builtin__ ? n.drawImage(t.dom, 0, 0, i, r) : t.renderToCanvas && (n.save(), t.renderToCanvas(n), n.restore())
                    }))
                } else for (var o = {
                    inHover: !1,
                    viewWidth: this._width,
                    viewHeight: this._height
                }, a = this.storage.getDisplayList(!0), s = 0, l = a.length; s < l; s++) {
                    var u = a[s];
                    Mv(n, u, o, s === l - 1)
                }
                return e.dom
            }, t.prototype.getWidth = function () {
                return this._width
            }, t.prototype.getHeight = function () {
                return this._height
            }, t
        }();
        const FT = BT;
        var HT = Math.sin, UT = Math.cos, VT = Math.PI, zT = 2 * Math.PI, WT = 180 / VT, YT = function () {
            function t() {
            }

            return t.prototype.reset = function (t) {
                this._start = !0, this._d = [], this._str = "", this._p = Math.pow(10, t || 4)
            }, t.prototype.moveTo = function (t, e) {
                this._add("M", t, e)
            }, t.prototype.lineTo = function (t, e) {
                this._add("L", t, e)
            }, t.prototype.bezierCurveTo = function (t, e, n, i, r, o) {
                this._add("C", t, e, n, i, r, o)
            }, t.prototype.quadraticCurveTo = function (t, e, n, i) {
                this._add("Q", t, e, n, i)
            }, t.prototype.arc = function (t, e, n, i, r, o) {
                this.ellipse(t, e, n, n, 0, i, r, o)
            }, t.prototype.ellipse = function (t, e, n, i, r, o, a, s) {
                var l = a - o, u = !s, c = Math.abs(l), h = Vi(c - zT) || (u ? l >= zT : -l >= zT),
                    d = l > 0 ? l % zT : l % zT + zT, p = !1;
                p = !!h || !Vi(c) && d >= VT == !!u;
                var f = t + n * UT(o), g = e + i * HT(o);
                this._start && this._add("M", f, g);
                var m = Math.round(r * WT);
                if (h) {
                    var y = 1 / this._p, v = (u ? 1 : -1) * (zT - y);
                    this._add("A", n, i, m, 1, +u, t + n * UT(o + v), e + i * HT(o + v)), y > .01 && this._add("A", n, i, m, 0, +u, f, g)
                } else {
                    var _ = t + n * UT(a), T = e + i * HT(a);
                    this._add("A", n, i, m, +p, +u, _, T)
                }
            }, t.prototype.rect = function (t, e, n, i) {
                this._add("M", t, e), this._add("l", n, 0), this._add("l", 0, i), this._add("l", -n, 0), this._add("Z")
            }, t.prototype.closePath = function () {
                this._d.length > 0 && this._add("Z")
            }, t.prototype._add = function (t, e, n, i, r, o, a, s, l) {
                for (var u = [], c = this._p, h = 1; h < arguments.length; h++) {
                    var d = arguments[h];
                    if (isNaN(d)) return void (this._invalid = !0);
                    u.push(Math.round(d * c) / c)
                }
                this._d.push(t + u.join(" ")), this._start = "Z" === t
            }, t.prototype.generateStr = function () {
                this._str = this._invalid ? "" : this._d.join(""), this._d = []
            }, t.prototype.getStr = function () {
                return this._str
            }, t
        }();
        const qT = YT;
        var jT = "none", XT = Math.round;
        var ZT = ["lineCap", "miterLimit", "lineJoin"], KT = yt(ZT, (function (t) {
            return "stroke-" + t.toLowerCase()
        }));

        function QT(t, e, n, i) {
            var r = null == e.opacity ? 1 : e.opacity;
            if (n instanceof gl) t("opacity", r); else {
                if (function (t) {
                    var e = t.fill;
                    return null != e && e !== jT
                }(e)) {
                    var o = Hi(e.fill);
                    t("fill", o.color);
                    var a = null != e.fillOpacity ? e.fillOpacity * o.opacity * r : o.opacity * r;
                    (i || a < 1) && t("fill-opacity", a)
                } else t("fill", jT);
                if (function (t) {
                    var e = t.stroke;
                    return null != e && e !== jT
                }(e)) {
                    var s = Hi(e.stroke);
                    t("stroke", s.color);
                    var l = e.strokeNoScale ? n.getLineScale() : 1, u = l ? (e.lineWidth || 0) / l : 0,
                        c = null != e.strokeOpacity ? e.strokeOpacity * s.opacity * r : s.opacity * r,
                        h = e.strokeFirst;
                    if ((i || 1 !== u) && t("stroke-width", u), (i || h) && t("paint-order", h ? "stroke" : "fill"), (i || c < 1) && t("stroke-opacity", c), e.lineDash) {
                        var d = cv(n), p = d[0], f = d[1];
                        p && (f = XT(f || 0), t("stroke-dasharray", p.join(",")), (f || i) && t("stroke-dashoffset", f))
                    } else i && t("stroke-dasharray", jT);
                    for (var g = 0; g < ZT.length; g++) {
                        var m = ZT[g];
                        if (i || e[m] !== rl[m]) {
                            var y = e[m] || rl[m];
                            y && t(KT[g], y)
                        }
                    }
                } else i && t("stroke", jT)
            }
        }

        var $T = "http://www.w3.org/2000/svg", JT = "http://www.w3.org/1999/xlink",
            tx = "http://www.w3.org/2000/xmlns/", ex = "http://www.w3.org/XML/1998/namespace";

        function nx(t) {
            return document.createElementNS($T, t)
        }

        function ix(t, e, n, i, r) {
            return {tag: t, attrs: n || {}, children: i, text: r, key: e}
        }

        function rx(t, e) {
            var n = (e = e || {}).newline ? "\n" : "";
            return function t(e) {
                var i = e.children, r = e.tag, o = e.attrs, a = e.text;
                return function (t, e) {
                    var n = [];
                    if (e) for (var i in e) {
                        var r = e[i], o = i;
                        !1 !== r && (!0 !== r && null != r && (o += '="' + r + '"'), n.push(o))
                    }
                    return "<" + t + " " + n.join(" ") + ">"
                }(r, o) + ("style" !== r ? Oe(a) : a || "") + (i ? "" + n + yt(i, (function (e) {
                    return t(e)
                })).join(n) + n : "") + ("</" + r + ">")
            }(t)
        }

        function ox(t) {
            return {
                zrId: t,
                shadowCache: {},
                patternCache: {},
                gradientCache: {},
                clipPathCache: {},
                defs: {},
                cssNodes: {},
                cssAnims: {},
                cssClassIdx: 0,
                cssAnimIdx: 0,
                shadowIdx: 0,
                gradientIdx: 0,
                patternIdx: 0,
                clipPathIdx: 0
            }
        }

        function ax(t, e, n, i) {
            return ix("svg", "root", {
                width: t,
                height: e,
                xmlns: $T,
                "xmlns:xlink": JT,
                version: "1.1",
                baseProfile: "full",
                viewBox: !!i && "0 0 " + t + " " + e
            }, n)
        }

        var sx = {
            cubicIn: "0.32,0,0.67,0",
            cubicOut: "0.33,1,0.68,1",
            cubicInOut: "0.65,0,0.35,1",
            quadraticIn: "0.11,0,0.5,0",
            quadraticOut: "0.5,1,0.89,1",
            quadraticInOut: "0.45,0,0.55,1",
            quarticIn: "0.5,0,0.75,0",
            quarticOut: "0.25,1,0.5,1",
            quarticInOut: "0.76,0,0.24,1",
            quinticIn: "0.64,0,0.78,0",
            quinticOut: "0.22,1,0.36,1",
            quinticInOut: "0.83,0,0.17,1",
            sinusoidalIn: "0.12,0,0.39,0",
            sinusoidalOut: "0.61,1,0.88,1",
            sinusoidalInOut: "0.37,0,0.63,1",
            exponentialIn: "0.7,0,0.84,0",
            exponentialOut: "0.16,1,0.3,1",
            exponentialInOut: "0.87,0,0.13,1",
            circularIn: "0.55,0,1,0.45",
            circularOut: "0,0.55,0.45,1",
            circularInOut: "0.85,0,0.15,1"
        }, lx = "transform-origin";

        function ux(t, e, n) {
            var i = ht({}, t.shape);
            ht(i, e), t.buildPath(n, i);
            var r = new qT;
            return r.reset($i(t)), n.rebuildPath(r, 1), r.generateStr(), r.getStr()
        }

        function cx(t, e) {
            var n = e.originX, i = e.originY;
            (n || i) && (t[lx] = n + "px " + i + "px")
        }

        var hx = {fill: "fill", opacity: "opacity", lineWidth: "stroke-width", lineDashOffset: "stroke-dashoffset"};

        function dx(t, e) {
            var n = e.zrId + "-ani-" + e.cssAnimIdx++;
            return e.cssAnims[n] = t, n
        }

        function px(t) {
            return It(t) ? sx[t] ? "cubic-bezier(" + sx[t] + ")" : di(t) ? t : "" : ""
        }

        function fx(t, e, n, i) {
            var r = t.animators, o = r.length, a = [];
            if (t instanceof Kg) {
                var s = function (t, e, n) {
                    var i, r, o = t.shape.paths, a = {};
                    if (mt(o, (function (t) {
                        var e = ox(n.zrId);
                        e.animation = !0, fx(t, {}, e, !0);
                        var o = e.cssAnims, s = e.cssNodes, l = Tt(o), u = l.length;
                        if (u) {
                            var c = o[r = l[u - 1]];
                            for (var h in c) {
                                var d = c[h];
                                a[h] = a[h] || {d: ""}, a[h].d += d.d || ""
                            }
                            for (var p in s) {
                                var f = s[p].animation;
                                f.indexOf(r) >= 0 && (i = f)
                            }
                        }
                    })), i) {
                        e.d = !1;
                        var s = dx(a, n);
                        return i.replace(r, s)
                    }
                }(t, e, n);
                if (s) a.push(s); else if (!o) return
            } else if (!o) return;
            for (var l = {}, u = 0; u < o; u++) {
                var c = r[u], h = [c.getMaxTime() / 1e3 + "s"], d = px(c.getClip().easing), p = c.getDelay();
                d ? h.push(d) : h.push("linear"), p && h.push(p / 1e3 + "s"), c.getLoop() && h.push("infinite");
                var f = h.join(" ");
                l[f] = l[f] || [f, []], l[f][1].push(c)
            }

            function g(r) {
                var o, a = r[1], s = a.length, l = {}, u = {}, c = {}, h = "animation-timing-function";

                function d(t, e, n) {
                    for (var i = t.getTracks(), r = t.getMaxTime(), o = 0; o < i.length; o++) {
                        var a = i[o];
                        if (a.needsAnimate()) {
                            var s = a.keyframes, l = a.propName;
                            if (n && (l = n(l)), l) for (var u = 0; u < s.length; u++) {
                                var c = s[u], d = Math.round(c.time / r * 100) + "%", p = px(c.easing), f = c.rawValue;
                                (It(f) || Ct(f)) && (e[d] = e[d] || {}, e[d][l] = c.rawValue, p && (e[d][h] = p))
                            }
                        }
                    }
                }

                for (var p = 0; p < s; p++) {
                    (A = (S = a[p]).targetName) ? "shape" === A && d(S, u) : !i && d(S, l)
                }
                for (var f in l) {
                    var g = {};
                    Qr(g, t), ht(g, l[f]);
                    var m = Ji(g), y = l[f][h];
                    c[f] = m ? {transform: m} : {}, cx(c[f], g), y && (c[f][h] = y)
                }
                var v = !0;
                for (var f in u) {
                    c[f] = c[f] || {};
                    var _ = !o;
                    y = u[f][h];
                    _ && (o = new Hs);
                    var T = o.len();
                    o.reset(), c[f].d = ux(t, u[f], o);
                    var x = o.len();
                    if (!_ && T !== x) {
                        v = !1;
                        break
                    }
                    y && (c[f][h] = y)
                }
                if (!v) for (var f in c) delete c[f].d;
                if (!i) for (p = 0; p < s; p++) {
                    var S, A;
                    "style" === (A = (S = a[p]).targetName) && d(S, c, (function (t) {
                        return hx[t]
                    }))
                }
                var b, I = Tt(c), E = !0;
                for (p = 1; p < I.length; p++) {
                    var C = I[p - 1], D = I[p];
                    if (c[C][lx] !== c[D][lx]) {
                        E = !1;
                        break
                    }
                    b = c[C][lx]
                }
                if (E && b) {
                    for (var f in c) c[f][lx] && delete c[f][lx];
                    e[lx] = b
                }
                if (_t(I, (function (t) {
                    return Tt(c[t]).length > 0
                })).length) return dx(c, n) + " " + r[0] + " both"
            }

            for (var m in l) {
                (s = g(l[m])) && a.push(s)
            }
            if (a.length) {
                var y = n.zrId + "-cls-" + n.cssClassIdx++;
                n.cssNodes["." + y] = {animation: a.join(",")}, e.class = y
            }
        }

        var gx = Math.round;

        function mx(t) {
            return t && It(t.src)
        }

        function yx(t) {
            return t && bt(t.toDataURL)
        }

        function vx(t, e, n, i) {
            QT((function (r, o) {
                var a = "fill" === r || "stroke" === r;
                a && Ki(o) ? Dx(e, t, r, i) : a && ji(o) ? Mx(n, t, r, i) : t[r] = o
            }), e, n, !1), function (t, e, n) {
                var i = t.style;
                if (function (t) {
                    return t && (t.shadowBlur || t.shadowOffsetX || t.shadowOffsetY)
                }(i)) {
                    var r = function (t) {
                        var e = t.style, n = t.getGlobalScale();
                        return [e.shadowColor, (e.shadowBlur || 0).toFixed(2), (e.shadowOffsetX || 0).toFixed(2), (e.shadowOffsetY || 0).toFixed(2), n[0], n[1]].join(",")
                    }(t), o = n.shadowCache, a = o[r];
                    if (!a) {
                        var s = t.getGlobalScale(), l = s[0], u = s[1];
                        if (!l || !u) return;
                        var c = i.shadowOffsetX || 0, h = i.shadowOffsetY || 0, d = i.shadowBlur, p = Hi(i.shadowColor),
                            f = p.opacity, g = p.color, m = d / 2 / l + " " + d / 2 / u;
                        a = n.zrId + "-s" + n.shadowIdx++, n.defs[a] = ix("filter", a, {
                            id: a,
                            x: "-100%",
                            y: "-100%",
                            width: "300%",
                            height: "300%"
                        }, [ix("feDropShadow", "", {
                            dx: c / l,
                            dy: h / u,
                            stdDeviation: m,
                            "flood-color": g,
                            "flood-opacity": f
                        })]), o[r] = a
                    }
                    e.filter = Qi(a)
                }
            }(n, t, i)
        }

        function _x(t) {
            return Vi(t[0] - 1) && Vi(t[1]) && Vi(t[2]) && Vi(t[3] - 1)
        }

        function Tx(t, e, n) {
            if (e && (!function (t) {
                return Vi(t[4]) && Vi(t[5])
            }(e) || !_x(e))) {
                var i = n ? 10 : 1e4;
                t.transform = _x(e) ? "translate(" + gx(e[4] * i) / i + " " + gx(e[5] * i) / i + ")" : function (t) {
                    return "matrix(" + zi(t[0]) + "," + zi(t[1]) + "," + zi(t[2]) + "," + zi(t[3]) + "," + Wi(t[4]) + "," + Wi(t[5]) + ")"
                }(e)
            }
        }

        function xx(t, e, n) {
            for (var i = t.points, r = [], o = 0; o < i.length; o++) r.push(gx(i[o][0] * n) / n), r.push(gx(i[o][1] * n) / n);
            e.points = r.join(" ")
        }

        function Sx(t) {
            return !t.smooth
        }

        var Ax, bx, Ix = {
            circle: [(Ax = ["cx", "cy", "r"], bx = yt(Ax, (function (t) {
                return "string" == typeof t ? [t, t] : t
            })), function (t, e, n) {
                for (var i = 0; i < bx.length; i++) {
                    var r = bx[i], o = t[r[0]];
                    null != o && (e[r[1]] = gx(o * n) / n)
                }
            })], polyline: [xx, Sx], polygon: [xx, Sx]
        };

        function Ex(t, e) {
            var n = t.style, i = t.shape, r = Ix[t.type], o = {}, a = e.animation, s = "path",
                l = t.style.strokePercent, u = e.compress && $i(t) || 4;
            if (!r || e.willUpdate || r[1] && !r[1](i) || a && function (t) {
                for (var e = t.animators, n = 0; n < e.length; n++) if ("shape" === e[n].targetName) return !0;
                return !1
            }(t) || l < 1) {
                var c = !t.path || t.shapeChanged();
                t.path || t.createPathProxy();
                var h = t.path;
                c && (h.beginPath(), t.buildPath(h, t.shape), t.pathUpdated());
                var d = h.getVersion(), p = t, f = p.__svgPathBuilder;
                p.__svgPathVersion === d && f && l === p.__svgPathStrokePercent || (f || (f = p.__svgPathBuilder = new qT), f.reset(u), h.rebuildPath(f, l), f.generateStr(), p.__svgPathVersion = d, p.__svgPathStrokePercent = l), o.d = f.getStr()
            } else {
                s = t.type;
                var g = Math.pow(10, u);
                r[0](i, o, g)
            }
            return Tx(o, t.transform), vx(o, n, t, e), e.animation && fx(t, o, e), ix(s, t.id + "", o)
        }

        function Cx(t, e) {
            return t instanceof ll ? Ex(t, e) : t instanceof gl ? function (t, e) {
                var n = t.style, i = n.image;
                if (i && !It(i) && (mx(i) ? i = i.src : yx(i) && (i = i.toDataURL())), i) {
                    var r = n.x || 0, o = n.y || 0, a = {href: i, width: n.width, height: n.height};
                    return r && (a.x = r), o && (a.y = o), Tx(a, t.transform), vx(a, n, t, e), e.animation && fx(t, a, e), ix("image", t.id + "", a)
                }
            }(t, e) : t instanceof hl ? function (t, e) {
                var n = t.style, i = n.text;
                if (null != i && (i += ""), i && !isNaN(n.x) && !isNaN(n.y)) {
                    var r = n.font || z, o = n.x || 0, a = function (t, e, n) {
                            return "top" === n ? t += e / 2 : "bottom" === n && (t -= e / 2), t
                        }(n.y || 0, oo(r), n.textBaseline),
                        s = {"dominant-baseline": "central", "text-anchor": Yi[n.textAlign] || n.textAlign};
                    if (Ol(n)) {
                        var l = "", u = n.fontStyle, c = Ml(n.fontSize);
                        if (!parseFloat(c)) return;
                        var h = n.fontFamily || V, d = n.fontWeight;
                        l += "font-size:" + c + ";font-family:" + h + ";", u && "normal" !== u && (l += "font-style:" + u + ";"), d && "normal" !== d && (l += "font-weight:" + d + ";"), s.style = l
                    } else s.style = "font: " + r;
                    return i.match(/\s/) && (s["xml:space"] = "preserve"), o && (s.x = o), a && (s.y = a), Tx(s, t.transform), vx(s, n, t, e), e.animation && fx(t, s, e), ix("text", t.id + "", s, void 0, i)
                }
            }(t, e) : void 0
        }

        function Dx(t, e, n, i) {
            var r, o = t[n], a = {gradientUnits: o.global ? "userSpaceOnUse" : "objectBoundingBox"};
            if (Xi(o)) r = "linearGradient", a.x1 = o.x, a.y1 = o.y, a.x2 = o.x2, a.y2 = o.y2; else {
                if (!Zi(o)) return void 0;
                r = "radialGradient", a.cx = kt(o.x, .5), a.cy = kt(o.y, .5), a.r = kt(o.r, .5)
            }
            for (var s = o.colorStops, l = [], u = 0, c = s.length; u < c; ++u) {
                var h = 100 * Wi(s[u].offset) + "%", d = Hi(s[u].color), p = d.color, f = d.opacity, g = {offset: h};
                g["stop-color"] = p, f < 1 && (g["stop-opacity"] = f), l.push(ix("stop", u + "", g))
            }
            var m = rx(ix(r, "", a, l)), y = i.gradientCache, v = y[m];
            v || (v = i.zrId + "-g" + i.gradientIdx++, y[m] = v, a.id = v, i.defs[v] = ix(r, v, a, l)), e[n] = Qi(v)
        }

        function Mx(t, e, n, i) {
            var r, o = t.style[n], a = t.getBoundingRect(), s = {}, l = o.repeat, u = "no-repeat" === l,
                c = "repeat-x" === l, h = "repeat-y" === l;
            if (qi(o)) {
                var d = o.imageWidth, p = o.imageHeight, f = void 0, g = o.image;
                if (It(g) ? f = g : mx(g) ? f = g.src : yx(g) && (f = g.toDataURL()), "undefined" == typeof Image) {
                    var m = "Image width/height must been given explictly in svg-ssr renderer.";
                    Ft(d, m), Ft(p, m)
                } else if (null == d || null == p) {
                    var y = function (t, e) {
                        if (t) {
                            var n = t.elm, i = d || e.width, r = p || e.height;
                            "pattern" === t.tag && (c ? (r = 1, i /= a.width) : h && (i = 1, r /= a.height)), t.attrs.width = i, t.attrs.height = r, n && (n.setAttribute("width", i), n.setAttribute("height", r))
                        }
                    }, v = Pa(f, null, t, (function (t) {
                        u || y(S, t), y(r, t)
                    }));
                    v && v.width && v.height && (d = d || v.width, p = p || v.height)
                }
                r = ix("image", "img", {href: f, width: d, height: p}), s.width = d, s.height = p
            } else o.svgElement && (r = lt(o.svgElement), s.width = o.svgWidth, s.height = o.svgHeight);
            if (r) {
                var _, T;
                u ? _ = T = 1 : c ? (T = 1, _ = s.width / a.width) : h ? (_ = 1, T = s.height / a.height) : s.patternUnits = "userSpaceOnUse", null == _ || isNaN(_) || (s.width = _), null == T || isNaN(T) || (s.height = T);
                var x = Ji(o);
                x && (s.patternTransform = x);
                var S = ix("pattern", "", s, [r]), A = rx(S), b = i.patternCache, I = b[A];
                I || (I = i.zrId + "-p" + i.patternIdx++, b[A] = I, s.id = I, S = i.defs[I] = ix("pattern", I, s, [r])), e[n] = Qi(I)
            }
        }

        function Nx(t, e, n) {
            var i = n.clipPathCache, r = n.defs, o = i[t.id];
            if (!o) {
                var a = {id: o = n.zrId + "-c" + n.clipPathIdx++};
                i[t.id] = o, r[o] = ix("clipPath", o, a, [Ex(t, n)])
            }
            e["clip-path"] = Qi(o)
        }

        function Ox(t) {
            return document.createTextNode(t)
        }

        function Lx(t, e, n) {
            t.insertBefore(e, n)
        }

        function Rx(t, e) {
            t.removeChild(e)
        }

        function kx(t, e) {
            t.appendChild(e)
        }

        function Px(t) {
            return t.parentNode
        }

        function Gx(t) {
            return t.nextSibling
        }

        function Bx(t, e) {
            t.textContent = e
        }

        var Fx = 58, Hx = 120, Ux = ix("", "");

        function Vx(t) {
            return void 0 === t
        }

        function zx(t) {
            return void 0 !== t
        }

        function Wx(t, e, n) {
            for (var i = {}, r = e; r <= n; ++r) {
                var o = t[r].key;
                void 0 !== o && (i[o] = r)
            }
            return i
        }

        function Yx(t, e) {
            var n = t.key === e.key;
            return t.tag === e.tag && n
        }

        function qx(t) {
            var e, n = t.children, i = t.tag;
            if (zx(i)) {
                var r = t.elm = nx(i);
                if (Zx(Ux, t), At(n)) for (e = 0; e < n.length; ++e) {
                    var o = n[e];
                    null != o && kx(r, qx(o))
                } else zx(t.text) && !Dt(t.text) && kx(r, Ox(t.text))
            } else t.elm = Ox(t.text);
            return t.elm
        }

        function jx(t, e, n, i, r) {
            for (; i <= r; ++i) {
                var o = n[i];
                null != o && Lx(t, qx(o), e)
            }
        }

        function Xx(t, e, n, i) {
            for (; n <= i; ++n) {
                var r = e[n];
                if (null != r) if (zx(r.tag)) Rx(Px(r.elm), r.elm); else Rx(t, r.elm)
            }
        }

        function Zx(t, e) {
            var n, i = e.elm, r = t && t.attrs || {}, o = e.attrs || {};
            if (r !== o) {
                for (n in o) {
                    var a = o[n];
                    r[n] !== a && (!0 === a ? i.setAttribute(n, "") : !1 === a ? i.removeAttribute(n) : n.charCodeAt(0) !== Hx ? i.setAttribute(n, a) : "xmlns:xlink" === n || "xmlns" === n ? i.setAttributeNS(tx, n, a) : n.charCodeAt(3) === Fx ? i.setAttributeNS(ex, n, a) : n.charCodeAt(5) === Fx ? i.setAttributeNS(JT, n, a) : i.setAttribute(n, a))
                }
                for (n in r) n in o || i.removeAttribute(n)
            }
        }

        function Kx(t, e) {
            var n = e.elm = t.elm, i = t.children, r = e.children;
            t !== e && (Zx(t, e), Vx(e.text) ? zx(i) && zx(r) ? i !== r && function (t, e, n) {
                for (var i, r, o, a = 0, s = 0, l = e.length - 1, u = e[0], c = e[l], h = n.length - 1, d = n[0], p = n[h]; a <= l && s <= h;) null == u ? u = e[++a] : null == c ? c = e[--l] : null == d ? d = n[++s] : null == p ? p = n[--h] : Yx(u, d) ? (Kx(u, d), u = e[++a], d = n[++s]) : Yx(c, p) ? (Kx(c, p), c = e[--l], p = n[--h]) : Yx(u, p) ? (Kx(u, p), Lx(t, u.elm, Gx(c.elm)), u = e[++a], p = n[--h]) : Yx(c, d) ? (Kx(c, d), Lx(t, c.elm, u.elm), c = e[--l], d = n[++s]) : (Vx(i) && (i = Wx(e, a, l)), Vx(r = i[d.key]) || (o = e[r]).tag !== d.tag ? Lx(t, qx(d), u.elm) : (Kx(o, d), e[r] = void 0, Lx(t, o.elm, u.elm)), d = n[++s]);
                (a <= l || s <= h) && (a > l ? jx(t, null == n[h + 1] ? null : n[h + 1].elm, n, s, h) : Xx(t, e, a, l))
            }(n, i, r) : zx(r) ? (zx(t.text) && Bx(n, ""), jx(n, null, r, 0, r.length - 1)) : zx(i) ? Xx(n, i, 0, i.length - 1) : zx(t.text) && Bx(n, "") : t.text !== e.text && (zx(i) && Xx(n, i, 0, i.length - 1), Bx(n, e.text)))
        }

        var Qx = 0, $x = function () {
            function t(t, e, n) {
                if (this.type = "svg", this.refreshHover = function () {
                    0
                }, this.configLayer = function () {
                    0
                }, this.storage = e, this._opts = n = ht({}, n), this.root = t, this._id = "zr" + Qx++, this._oldVNode = ax(n.width, n.height), t && !n.ssr) {
                    var i = this._viewport = document.createElement("div");
                    i.style.cssText = "position:relative;overflow:hidden";
                    var r = this._svgDom = this._oldVNode.elm = nx("svg");
                    Zx(null, this._oldVNode), i.appendChild(r), t.appendChild(i)
                }
                this.resize(n.width, n.height)
            }

            return t.prototype.getType = function () {
                return this.type
            }, t.prototype.getViewportRoot = function () {
                return this._viewport
            }, t.prototype.getViewportRootOffset = function () {
                var t = this.getViewportRoot();
                if (t) return {offsetLeft: t.offsetLeft || 0, offsetTop: t.offsetTop || 0}
            }, t.prototype.getSvgDom = function () {
                return this._svgDom
            }, t.prototype.refresh = function () {
                if (this.root) {
                    var t = this.renderToVNode({willUpdate: !0});
                    t.attrs.style = "position:absolute;left:0;top:0;user-select:none", function (t, e) {
                        if (Yx(t, e)) Kx(t, e); else {
                            var n = t.elm, i = Px(n);
                            qx(e), null !== i && (Lx(i, e.elm, Gx(n)), Xx(i, [t], 0, 0))
                        }
                    }(this._oldVNode, t), this._oldVNode = t
                }
            }, t.prototype.renderOneToVNode = function (t) {
                return Cx(t, ox(this._id))
            }, t.prototype.renderToVNode = function (t) {
                t = t || {};
                var e = this.storage.getDisplayList(!0), n = this._width, i = this._height, r = ox(this._id);
                r.animation = t.animation, r.willUpdate = t.willUpdate, r.compress = t.compress;
                var o = [], a = this._bgVNode = function (t, e, n, i) {
                    var r;
                    if (n && "none" !== n) if (r = ix("rect", "bg", {
                        width: t,
                        height: e,
                        x: "0",
                        y: "0",
                        id: "0"
                    }), Ki(n)) Dx({fill: n}, r.attrs, "fill", i); else if (ji(n)) Mx({
                        style: {fill: n},
                        dirty: $t,
                        getBoundingRect: function () {
                            return {width: t, height: e}
                        }
                    }, r.attrs, "fill", i); else {
                        var o = Hi(n), a = o.color, s = o.opacity;
                        r.attrs.fill = a, s < 1 && (r.attrs["fill-opacity"] = s)
                    }
                    return r
                }(n, i, this._backgroundColor, r);
                a && o.push(a);
                var s = t.compress ? null : this._mainVNode = ix("g", "main", {}, []);
                this._paintList(e, r, s ? s.children : o), s && o.push(s);
                var l = yt(Tt(r.defs), (function (t) {
                    return r.defs[t]
                }));
                if (l.length && o.push(ix("defs", "defs", {}, l)), t.animation) {
                    var u = function (t, e, n) {
                        var i = (n = n || {}).newline ? "\n" : "", r = " {" + i, o = i + "}",
                            a = yt(Tt(t), (function (e) {
                                return e + r + yt(Tt(t[e]), (function (n) {
                                    return n + ":" + t[e][n] + ";"
                                })).join(i) + o
                            })).join(i), s = yt(Tt(e), (function (t) {
                                return "@keyframes " + t + r + yt(Tt(e[t]), (function (n) {
                                    return n + r + yt(Tt(e[t][n]), (function (i) {
                                        var r = e[t][n][i];
                                        return "d" === i && (r = 'path("' + r + '")'), i + ":" + r + ";"
                                    })).join(i) + o
                                })).join(i) + o
                            })).join(i);
                        return a || s ? ["<![CDATA[", a, s, "]]>"].join(i) : ""
                    }(r.cssNodes, r.cssAnims, {newline: !0});
                    if (u) {
                        var c = ix("style", "stl", {}, [], u);
                        o.push(c)
                    }
                }
                return ax(n, i, o, t.useViewBox)
            }, t.prototype.renderToString = function (t) {
                return t = t || {}, rx(this.renderToVNode({
                    animation: kt(t.cssAnimation, !0),
                    willUpdate: !1,
                    compress: !0,
                    useViewBox: kt(t.useViewBox, !0)
                }), {newline: !0})
            }, t.prototype.setBackgroundColor = function (t) {
                this._backgroundColor = t
            }, t.prototype.getSvgRoot = function () {
                return this._mainVNode && this._mainVNode.elm
            }, t.prototype._paintList = function (t, e, n) {
                for (var i, r, o = t.length, a = [], s = 0, l = 0, u = 0; u < o; u++) {
                    var c = t[u];
                    if (!c.invisible) {
                        var h = c.__clipPaths, d = h && h.length || 0, p = r && r.length || 0, f = void 0;
                        for (f = Math.max(d - 1, p - 1); f >= 0 && (!h || !r || h[f] !== r[f]); f--) ;
                        for (var g = p - 1; g > f; g--) i = a[--s - 1];
                        for (var m = f + 1; m < d; m++) {
                            var y = {};
                            Nx(h[m], y, e);
                            var v = ix("g", "clip-g-" + l++, y, []);
                            (i ? i.children : n).push(v), a[s++] = v, i = v
                        }
                        r = h;
                        var _ = Cx(c, e);
                        _ && (i ? i.children : n).push(_)
                    }
                }
            }, t.prototype.resize = function (t, e) {
                var n = this._opts, i = this.root, r = this._viewport;
                if (null != t && (n.width = t), null != e && (n.height = e), i && r && (r.style.display = "none", t = uv(i, 0, n), e = uv(i, 1, n), r.style.display = ""), this._width !== t || this._height !== e) {
                    if (this._width = t, this._height = e, r) {
                        var o = r.style;
                        o.width = t + "px", o.height = e + "px"
                    }
                    if (ji(this._backgroundColor)) this.refresh(); else {
                        var a = this._svgDom;
                        a && (a.setAttribute("width", t), a.setAttribute("height", e));
                        var s = this._bgVNode && this._bgVNode.elm;
                        s && (s.setAttribute("width", t), s.setAttribute("height", e))
                    }
                }
            }, t.prototype.getWidth = function () {
                return this._width
            }, t.prototype.getHeight = function () {
                return this._height
            }, t.prototype.dispose = function () {
                this.root && (this.root.innerHTML = ""), this._svgDom = this._viewport = this.storage = this._oldVNode = this._bgVNode = this._mainVNode = null
            }, t.prototype.clear = function () {
                this._svgDom && (this._svgDom.innerHTML = null), this._oldVNode = null
            }, t.prototype.toDataURL = function (t) {
                var e = this.renderToString(), n = "data:image/svg+xml;";
                return t ? (e = tr(e)) && n + "base64," + e : n + "charset=UTF-8," + encodeURIComponent(e)
            }, t
        }();
        const Jx = $x;

        function tS(t) {
            return null == t ? 0 : t.length || 1
        }

        function eS(t) {
            return t
        }

        var nS = function () {
            function t(t, e, n, i, r, o) {
                this._old = t, this._new = e, this._oldKeyGetter = n || eS, this._newKeyGetter = i || eS, this.context = r, this._diffModeMultiple = "multiple" === o
            }

            return t.prototype.add = function (t) {
                return this._add = t, this
            }, t.prototype.update = function (t) {
                return this._update = t, this
            }, t.prototype.updateManyToOne = function (t) {
                return this._updateManyToOne = t, this
            }, t.prototype.updateOneToMany = function (t) {
                return this._updateOneToMany = t, this
            }, t.prototype.updateManyToMany = function (t) {
                return this._updateManyToMany = t, this
            }, t.prototype.remove = function (t) {
                return this._remove = t, this
            }, t.prototype.execute = function () {
                this[this._diffModeMultiple ? "_executeMultiple" : "_executeOneToOne"]()
            }, t.prototype._executeOneToOne = function () {
                var t = this._old, e = this._new, n = {}, i = new Array(t.length), r = new Array(e.length);
                this._initIndexMap(t, null, i, "_oldKeyGetter"), this._initIndexMap(e, n, r, "_newKeyGetter");
                for (var o = 0; o < t.length; o++) {
                    var a = i[o], s = n[a], l = tS(s);
                    if (l > 1) {
                        var u = s.shift();
                        1 === s.length && (n[a] = s[0]), this._update && this._update(u, o)
                    } else 1 === l ? (n[a] = null, this._update && this._update(s, o)) : this._remove && this._remove(o)
                }
                this._performRestAdd(r, n)
            }, t.prototype._executeMultiple = function () {
                var t = this._old, e = this._new, n = {}, i = {}, r = [], o = [];
                this._initIndexMap(t, n, r, "_oldKeyGetter"), this._initIndexMap(e, i, o, "_newKeyGetter");
                for (var a = 0; a < r.length; a++) {
                    var s = r[a], l = n[s], u = i[s], c = tS(l), h = tS(u);
                    if (c > 1 && 1 === h) this._updateManyToOne && this._updateManyToOne(u, l), i[s] = null; else if (1 === c && h > 1) this._updateOneToMany && this._updateOneToMany(u, l), i[s] = null; else if (1 === c && 1 === h) this._update && this._update(u, l), i[s] = null; else if (c > 1 && h > 1) this._updateManyToMany && this._updateManyToMany(u, l), i[s] = null; else if (c > 1) for (var d = 0; d < c; d++) this._remove && this._remove(l[d]); else this._remove && this._remove(l)
                }
                this._performRestAdd(o, i)
            }, t.prototype._performRestAdd = function (t, e) {
                for (var n = 0; n < t.length; n++) {
                    var i = t[n], r = e[i], o = tS(r);
                    if (o > 1) for (var a = 0; a < o; a++) this._add && this._add(r[a]); else 1 === o && this._add && this._add(r);
                    e[i] = null
                }
            }, t.prototype._initIndexMap = function (t, e, n, i) {
                for (var r = this._diffModeMultiple, o = 0; o < t.length; o++) {
                    var a = "_ec_" + this[i](t[o], o);
                    if (r || (n[o] = a), e) {
                        var s = e[a], l = tS(s);
                        0 === l ? (e[a] = o, r && n.push(a)) : 1 === l ? e[a] = [s, o] : s.push(o)
                    }
                }
            }, t
        }();
        const iS = nS;
        var rS = function () {
            function t(t, e) {
                this._encode = t, this._schema = e
            }

            return t.prototype.get = function () {
                return {fullDimensions: this._getFullDimensionNames(), encode: this._encode}
            }, t.prototype._getFullDimensionNames = function () {
                return this._cachedDimNames || (this._cachedDimNames = this._schema ? this._schema.makeOutputDimensionNames() : []), this._cachedDimNames
            }, t
        }();

        function oS(t, e) {
            return t.hasOwnProperty(e) || (t[e] = []), t[e]
        }

        function aS(t) {
            return "category" === t ? "ordinal" : "time" === t ? "time" : "float"
        }

        const sS = function (t) {
            this.otherDims = {}, null != t && ht(this, t)
        };
        var lS = ha(), uS = {float: "f", int: "i", ordinal: "o", number: "n", time: "t"}, cS = function () {
            function t(t) {
                this.dimensions = t.dimensions, this._dimOmitted = t.dimensionOmitted, this.source = t.source, this._fullDimCount = t.fullDimensionCount, this._updateDimOmitted(t.dimensionOmitted)
            }

            return t.prototype.isDimensionOmitted = function () {
                return this._dimOmitted
            }, t.prototype._updateDimOmitted = function (t) {
                this._dimOmitted = t, t && (this._dimNameMap || (this._dimNameMap = pS(this.source)))
            }, t.prototype.getSourceDimensionIndex = function (t) {
                return kt(this._dimNameMap.get(t), -1)
            }, t.prototype.getSourceDimension = function (t) {
                var e = this.source.dimensionsDefine;
                if (e) return e[t]
            }, t.prototype.makeStoreSchema = function () {
                for (var t = this._fullDimCount, e = lp(this.source), n = !fS(t), i = "", r = [], o = 0, a = 0; o < t; o++) {
                    var s = void 0, l = void 0, u = void 0, c = this.dimensions[a];
                    if (c && c.storeDimIndex === o) s = e ? c.name : null, l = c.type, u = c.ordinalMeta, a++; else {
                        var h = this.getSourceDimension(o);
                        h && (s = e ? h.name : null, l = h.type)
                    }
                    r.push({
                        property: s,
                        type: l,
                        ordinalMeta: u
                    }), !e || null == s || c && c.isCalculationCoord || (i += n ? s.replace(/\`/g, "`1").replace(/\$/g, "`2") : s), i += "$", i += uS[l] || "f", u && (i += u.uid), i += "$"
                }
                var d = this.source;
                return {dimensions: r, hash: [d.seriesLayoutBy, d.startIndex, i].join("$$")}
            }, t.prototype.makeOutputDimensionNames = function () {
                for (var t = [], e = 0, n = 0; e < this._fullDimCount; e++) {
                    var i = void 0, r = this.dimensions[n];
                    if (r && r.storeDimIndex === e) r.isCalculationCoord || (i = r.name), n++; else {
                        var o = this.getSourceDimension(e);
                        o && (i = o.name)
                    }
                    t.push(i)
                }
                return t
            }, t.prototype.appendCalculationDimension = function (t) {
                this.dimensions.push(t), t.isCalculationCoord = !0, this._fullDimCount++, this._updateDimOmitted(!0)
            }, t
        }();

        function hS(t) {
            return t instanceof cS
        }

        function dS(t) {
            for (var e = jt(), n = 0; n < (t || []).length; n++) {
                var i = t[n], r = Dt(i) ? i.name : i;
                null != r && null == e.get(r) && e.set(r, n)
            }
            return e
        }

        function pS(t) {
            var e = lS(t);
            return e.dimNameMap || (e.dimNameMap = dS(t.dimensionsDefine))
        }

        function fS(t) {
            return t > 30
        }

        var gS, mS, yS, vS, _S, TS, xS, SS = Dt, AS = yt, bS = "undefined" == typeof Int32Array ? Array : Int32Array,
            IS = ["hasItemOption", "_nameList", "_idList", "_invertedIndicesMap", "_dimSummary", "userOutput", "_rawData", "_dimValueGetter", "_nameDimIdx", "_idDimIdx", "_nameRepeatCount"],
            ES = ["_approximateExtent"], CS = function () {
                function t(t, e) {
                    var n;
                    this.type = "list", this._dimOmitted = !1, this._nameList = [], this._idList = [], this._visual = {}, this._layout = {}, this._itemVisuals = [], this._itemLayouts = [], this._graphicEls = [], this._approximateExtent = {}, this._calculationInfo = {}, this.hasItemOption = !1, this.TRANSFERABLE_METHODS = ["cloneShallow", "downSample", "lttbDownSample", "map"], this.CHANGABLE_METHODS = ["filterSelf", "selectRange"], this.DOWNSAMPLE_METHODS = ["downSample", "lttbDownSample"];
                    var i = !1;
                    hS(t) ? (n = t.dimensions, this._dimOmitted = t.isDimensionOmitted(), this._schema = t) : (i = !0, n = t), n = n || ["x", "y"];
                    for (var r = {}, o = [], a = {}, s = !1, l = {}, u = 0; u < n.length; u++) {
                        var c = n[u], h = It(c) ? new sS({name: c}) : c instanceof sS ? c : new sS(c), d = h.name;
                        h.type = h.type || "float", h.coordDim || (h.coordDim = d, h.coordDimIndex = 0);
                        var p = h.otherDims = h.otherDims || {};
                        o.push(d), r[d] = h, null != l[d] && (s = !0), h.createInvertedIndices && (a[d] = []), 0 === p.itemName && (this._nameDimIdx = u), 0 === p.itemId && (this._idDimIdx = u), i && (h.storeDimIndex = u)
                    }
                    if (this.dimensions = o, this._dimInfos = r, this._initGetDimensionInfo(s), this.hostModel = e, this._invertedIndicesMap = a, this._dimOmitted) {
                        var f = this._dimIdxToName = jt();
                        mt(o, (function (t) {
                            f.set(r[t].storeDimIndex, t)
                        }))
                    }
                }

                return t.prototype.getDimension = function (t) {
                    var e = this._recognizeDimIndex(t);
                    if (null == e) return t;
                    if (e = t, !this._dimOmitted) return this.dimensions[e];
                    var n = this._dimIdxToName.get(e);
                    if (null != n) return n;
                    var i = this._schema.getSourceDimension(e);
                    return i ? i.name : void 0
                }, t.prototype.getDimensionIndex = function (t) {
                    var e = this._recognizeDimIndex(t);
                    if (null != e) return e;
                    if (null == t) return -1;
                    var n = this._getDimInfo(t);
                    return n ? n.storeDimIndex : this._dimOmitted ? this._schema.getSourceDimensionIndex(t) : -1
                }, t.prototype._recognizeDimIndex = function (t) {
                    if (Ct(t) || null != t && !isNaN(t) && !this._getDimInfo(t) && (!this._dimOmitted || this._schema.getSourceDimensionIndex(t) < 0)) return +t
                }, t.prototype._getStoreDimIndex = function (t) {
                    return this.getDimensionIndex(t)
                }, t.prototype.getDimensionInfo = function (t) {
                    return this._getDimInfo(this.getDimension(t))
                }, t.prototype._initGetDimensionInfo = function (t) {
                    var e = this._dimInfos;
                    this._getDimInfo = t ? function (t) {
                        return e.hasOwnProperty(t) ? e[t] : void 0
                    } : function (t) {
                        return e[t]
                    }
                }, t.prototype.getDimensionsOnCoord = function () {
                    return this._dimSummary.dataDimsOnCoord.slice()
                }, t.prototype.mapDimension = function (t, e) {
                    var n = this._dimSummary;
                    if (null == e) return n.encodeFirstDimNotExtra[t];
                    var i = n.encode[t];
                    return i ? i[e] : null
                }, t.prototype.mapDimensionsAll = function (t) {
                    return (this._dimSummary.encode[t] || []).slice()
                }, t.prototype.getStore = function () {
                    return this._store
                }, t.prototype.initData = function (t, e, n) {
                    var i, r = this;
                    if (t instanceof ef && (i = t), !i) {
                        var o = this.dimensions, a = np(t) || gt(t) ? new up(t, o.length) : t;
                        i = new ef;
                        var s = AS(o, (function (t) {
                            return {type: r._dimInfos[t].type, property: t}
                        }));
                        i.initData(a, s, n)
                    }
                    this._store = i, this._nameList = (e || []).slice(), this._idList = [], this._nameRepeatCount = {}, this._doInit(0, i.count()), this._dimSummary = function (t, e) {
                        var n = {}, i = n.encode = {}, r = jt(), o = [], a = [], s = {};
                        mt(t.dimensions, (function (e) {
                            var n, l = t.getDimensionInfo(e), u = l.coordDim;
                            if (u) {
                                var c = l.coordDimIndex;
                                oS(i, u)[c] = e, l.isExtraCoord || (r.set(u, 1), "ordinal" !== (n = l.type) && "time" !== n && (o[0] = e), oS(s, u)[c] = t.getDimensionIndex(l.name)), l.defaultTooltip && a.push(e)
                            }
                            zh.each((function (t, e) {
                                var n = oS(i, e), r = l.otherDims[e];
                                null != r && !1 !== r && (n[r] = l.name)
                            }))
                        }));
                        var l = [], u = {};
                        r.each((function (t, e) {
                            var n = i[e];
                            u[e] = n[0], l = l.concat(n)
                        })), n.dataDimsOnCoord = l, n.dataDimIndicesOnCoord = yt(l, (function (e) {
                            return t.getDimensionInfo(e).storeDimIndex
                        })), n.encodeFirstDimNotExtra = u;
                        var c = i.label;
                        c && c.length && (o = c.slice());
                        var h = i.tooltip;
                        return h && h.length ? a = h.slice() : a.length || (a = o.slice()), i.defaultedLabel = o, i.defaultedTooltip = a, n.userOutput = new rS(s, e), n
                    }(this, this._schema), this.userOutput = this._dimSummary.userOutput
                }, t.prototype.appendData = function (t) {
                    var e = this._store.appendData(t);
                    this._doInit(e[0], e[1])
                }, t.prototype.appendValues = function (t, e) {
                    var n = this._store.appendValues(t, e.length), i = n.start, r = n.end, o = this._shouldMakeIdFromName();
                    if (this._updateOrdinalMeta(), e) for (var a = i; a < r; a++) {
                        var s = a - i;
                        this._nameList[a] = e[s], o && xS(this, a)
                    }
                }, t.prototype._updateOrdinalMeta = function () {
                    for (var t = this._store, e = this.dimensions, n = 0; n < e.length; n++) {
                        var i = this._dimInfos[e[n]];
                        i.ordinalMeta && t.collectOrdinalMeta(i.storeDimIndex, i.ordinalMeta)
                    }
                }, t.prototype._shouldMakeIdFromName = function () {
                    var t = this._store.getProvider();
                    return null == this._idDimIdx && t.getSource().sourceFormat !== Xh && !t.fillStorage
                }, t.prototype._doInit = function (t, e) {
                    if (!(t >= e)) {
                        var n = this._store.getProvider();
                        this._updateOrdinalMeta();
                        var i = this._nameList, r = this._idList;
                        if (n.getSource().sourceFormat === Wh && !n.pure) for (var o = [], a = t; a < e; a++) {
                            var s = n.getItem(a, o);
                            if (!this.hasItemOption && ia(s) && (this.hasItemOption = !0), s) {
                                var l = s.name;
                                null == i[a] && null != l && (i[a] = sa(l, null));
                                var u = s.id;
                                null == r[a] && null != u && (r[a] = sa(u, null))
                            }
                        }
                        if (this._shouldMakeIdFromName()) for (a = t; a < e; a++) xS(this, a);
                        gS(this)
                    }
                }, t.prototype.getApproximateExtent = function (t) {
                    return this._approximateExtent[t] || this._store.getDataExtent(this._getStoreDimIndex(t))
                }, t.prototype.setApproximateExtent = function (t, e) {
                    e = this.getDimension(e), this._approximateExtent[e] = t.slice()
                }, t.prototype.getCalculationInfo = function (t) {
                    return this._calculationInfo[t]
                }, t.prototype.setCalculationInfo = function (t, e) {
                    SS(t) ? ht(this._calculationInfo, t) : this._calculationInfo[t] = e
                }, t.prototype.getName = function (t) {
                    var e = this.getRawIndex(t), n = this._nameList[e];
                    return null == n && null != this._nameDimIdx && (n = yS(this, this._nameDimIdx, e)), null == n && (n = ""), n
                }, t.prototype._getCategory = function (t, e) {
                    var n = this._store.get(t, e), i = this._store.getOrdinalMeta(t);
                    return i ? i.categories[n] : n
                }, t.prototype.getId = function (t) {
                    return mS(this, this.getRawIndex(t))
                }, t.prototype.count = function () {
                    return this._store.count()
                }, t.prototype.get = function (t, e) {
                    var n = this._store, i = this._dimInfos[t];
                    if (i) return n.get(i.storeDimIndex, e)
                }, t.prototype.getByRawIndex = function (t, e) {
                    var n = this._store, i = this._dimInfos[t];
                    if (i) return n.getByRawIndex(i.storeDimIndex, e)
                }, t.prototype.getIndices = function () {
                    return this._store.getIndices()
                }, t.prototype.getDataExtent = function (t) {
                    return this._store.getDataExtent(this._getStoreDimIndex(t))
                }, t.prototype.getSum = function (t) {
                    return this._store.getSum(this._getStoreDimIndex(t))
                }, t.prototype.getMedian = function (t) {
                    return this._store.getMedian(this._getStoreDimIndex(t))
                }, t.prototype.getValues = function (t, e) {
                    var n = this, i = this._store;
                    return At(t) ? i.getValues(AS(t, (function (t) {
                        return n._getStoreDimIndex(t)
                    })), e) : i.getValues(t)
                }, t.prototype.hasValue = function (t) {
                    for (var e = this._dimSummary.dataDimIndicesOnCoord, n = 0, i = e.length; n < i; n++) if (isNaN(this._store.get(e[n], t))) return !1;
                    return !0
                }, t.prototype.indexOfName = function (t) {
                    for (var e = 0, n = this._store.count(); e < n; e++) if (this.getName(e) === t) return e;
                    return -1
                }, t.prototype.getRawIndex = function (t) {
                    return this._store.getRawIndex(t)
                }, t.prototype.indexOfRawIndex = function (t) {
                    return this._store.indexOfRawIndex(t)
                }, t.prototype.rawIndexOf = function (t, e) {
                    var n = (t && this._invertedIndicesMap[t])[e];
                    return null == n || isNaN(n) ? -1 : n
                }, t.prototype.indicesOfNearest = function (t, e, n) {
                    return this._store.indicesOfNearest(this._getStoreDimIndex(t), e, n)
                }, t.prototype.each = function (t, e, n) {
                    bt(t) && (n = e, e = t, t = []);
                    var i = n || this, r = AS(vS(t), this._getStoreDimIndex, this);
                    this._store.each(r, i ? xt(e, i) : e)
                }, t.prototype.filterSelf = function (t, e, n) {
                    bt(t) && (n = e, e = t, t = []);
                    var i = n || this, r = AS(vS(t), this._getStoreDimIndex, this);
                    return this._store = this._store.filter(r, i ? xt(e, i) : e), this
                }, t.prototype.selectRange = function (t) {
                    var e = this, n = {}, i = Tt(t), r = [];
                    return mt(i, (function (i) {
                        var o = e._getStoreDimIndex(i);
                        n[o] = t[i], r.push(o)
                    })), this._store = this._store.selectRange(n), this
                }, t.prototype.mapArray = function (t, e, n) {
                    bt(t) && (n = e, e = t, t = []), n = n || this;
                    var i = [];
                    return this.each(t, (function () {
                        i.push(e && e.apply(this, arguments))
                    }), n), i
                }, t.prototype.map = function (t, e, n, i) {
                    var r = n || i || this, o = AS(vS(t), this._getStoreDimIndex, this), a = TS(this);
                    return a._store = this._store.map(o, r ? xt(e, r) : e), a
                }, t.prototype.modify = function (t, e, n, i) {
                    var r = n || i || this;
                    var o = AS(vS(t), this._getStoreDimIndex, this);
                    this._store.modify(o, r ? xt(e, r) : e)
                }, t.prototype.downSample = function (t, e, n, i) {
                    var r = TS(this);
                    return r._store = this._store.downSample(this._getStoreDimIndex(t), e, n, i), r
                }, t.prototype.lttbDownSample = function (t, e) {
                    var n = TS(this);
                    return n._store = this._store.lttbDownSample(this._getStoreDimIndex(t), e), n
                }, t.prototype.getRawDataItem = function (t) {
                    return this._store.getRawDataItem(t)
                }, t.prototype.getItemModel = function (t) {
                    var e = this.hostModel, n = this.getRawDataItem(t);
                    return new wc(n, e, e && e.ecModel)
                }, t.prototype.diff = function (t) {
                    var e = this;
                    return new iS(t ? t.getStore().getIndices() : [], this.getStore().getIndices(), (function (e) {
                        return mS(t, e)
                    }), (function (t) {
                        return mS(e, t)
                    }))
                }, t.prototype.getVisual = function (t) {
                    var e = this._visual;
                    return e && e[t]
                }, t.prototype.setVisual = function (t, e) {
                    this._visual = this._visual || {}, SS(t) ? ht(this._visual, t) : this._visual[t] = e
                }, t.prototype.getItemVisual = function (t, e) {
                    var n = this._itemVisuals[t], i = n && n[e];
                    return null == i ? this.getVisual(e) : i
                }, t.prototype.hasItemVisual = function () {
                    return this._itemVisuals.length > 0
                }, t.prototype.ensureUniqueItemVisual = function (t, e) {
                    var n = this._itemVisuals, i = n[t];
                    i || (i = n[t] = {});
                    var r = i[e];
                    return null == r && (At(r = this.getVisual(e)) ? r = r.slice() : SS(r) && (r = ht({}, r)), i[e] = r), r
                }, t.prototype.setItemVisual = function (t, e, n) {
                    var i = this._itemVisuals[t] || {};
                    this._itemVisuals[t] = i, SS(e) ? ht(i, e) : i[e] = n
                }, t.prototype.clearAllVisual = function () {
                    this._visual = {}, this._itemVisuals = []
                }, t.prototype.setLayout = function (t, e) {
                    SS(t) ? ht(this._layout, t) : this._layout[t] = e
                }, t.prototype.getLayout = function (t) {
                    return this._layout[t]
                }, t.prototype.getItemLayout = function (t) {
                    return this._itemLayouts[t]
                }, t.prototype.setItemLayout = function (t, e, n) {
                    this._itemLayouts[t] = n ? ht(this._itemLayouts[t] || {}, e) : e
                }, t.prototype.clearItemLayouts = function () {
                    this._itemLayouts.length = 0
                }, t.prototype.setItemGraphicEl = function (t, e) {
                    var n = this.hostModel && this.hostModel.seriesIndex;
                    Ul(n, this.dataType, t, e), this._graphicEls[t] = e
                }, t.prototype.getItemGraphicEl = function (t) {
                    return this._graphicEls[t]
                }, t.prototype.eachItemGraphicEl = function (t, e) {
                    mt(this._graphicEls, (function (n, i) {
                        n && t && t.call(e, n, i)
                    }))
                }, t.prototype.cloneShallow = function (e) {
                    return e || (e = new t(this._schema ? this._schema : AS(this.dimensions, this._getDimInfo, this), this.hostModel)), _S(e, this), e._store = this._store, e
                }, t.prototype.wrapMethod = function (t, e) {
                    var n = this[t];
                    bt(n) && (this.__wrappedMethods = this.__wrappedMethods || [], this.__wrappedMethods.push(t), this[t] = function () {
                        var t = n.apply(this, arguments);
                        return e.apply(this, [t].concat(Gt(arguments)))
                    })
                }, t.internalField = (gS = function (t) {
                    var e = t._invertedIndicesMap;
                    mt(e, (function (n, i) {
                        var r = t._dimInfos[i], o = r.ordinalMeta, a = t._store;
                        if (o) {
                            n = e[i] = new bS(o.categories.length);
                            for (var s = 0; s < n.length; s++) n[s] = -1;
                            for (s = 0; s < a.count(); s++) n[a.get(r.storeDimIndex, s)] = s
                        }
                    }))
                }, yS = function (t, e, n) {
                    return sa(t._getCategory(e, n), null)
                }, mS = function (t, e) {
                    var n = t._idList[e];
                    return null == n && null != t._idDimIdx && (n = yS(t, t._idDimIdx, e)), null == n && (n = "e\0\0" + e), n
                }, vS = function (t) {
                    return At(t) || (t = null != t ? [t] : []), t
                }, TS = function (e) {
                    var n = new t(e._schema ? e._schema : AS(e.dimensions, e._getDimInfo, e), e.hostModel);
                    return _S(n, e), n
                }, _S = function (t, e) {
                    mt(IS.concat(e.__wrappedMethods || []), (function (n) {
                        e.hasOwnProperty(n) && (t[n] = e[n])
                    })), t.__wrappedMethods = e.__wrappedMethods, mt(ES, (function (n) {
                        t[n] = lt(e[n])
                    })), t._calculationInfo = ht({}, e._calculationInfo)
                }, void (xS = function (t, e) {
                    var n = t._nameList, i = t._idList, r = t._nameDimIdx, o = t._idDimIdx, a = n[e], s = i[e];
                    if (null == a && null != r && (n[e] = a = yS(t, r, e)), null == s && null != o && (i[e] = s = yS(t, o, e)), null == s && null != a) {
                        var l = t._nameRepeatCount, u = l[a] = (l[a] || 0) + 1;
                        s = a, u > 1 && (s += "__ec__" + u), i[e] = s
                    }
                })), t
            }();
        const DS = CS;

        function wS(t, e) {
            np(t) || (t = rp(t));
            var n = (e = e || {}).coordDimensions || [], i = e.dimensionsDefine || t.dimensionsDefine || [], r = jt(),
                o = [], a = function (t, e, n, i) {
                    var r = Math.max(t.dimensionsDetectedCount || 1, e.length, n.length, i || 0);
                    return mt(e, (function (t) {
                        var e;
                        Dt(t) && (e = t.dimsDef) && (r = Math.max(r, e.length))
                    })), r
                }(t, n, i, e.dimensionsCount), s = e.canOmitUnusedDimensions && fS(a), l = i === t.dimensionsDefine,
                u = l ? pS(t) : dS(i), c = e.encodeDefine;
            !c && e.encodeDefaulter && (c = e.encodeDefaulter(t, a));
            for (var h = jt(c), d = new Zp(a), p = 0; p < d.length; p++) d[p] = -1;

            function f(t) {
                var e = d[t];
                if (e < 0) {
                    var n = i[t], r = Dt(n) ? n : {name: n}, a = new sS, s = r.name;
                    null != s && null != u.get(s) && (a.name = a.displayName = s), null != r.type && (a.type = r.type), null != r.displayName && (a.displayName = r.displayName);
                    var l = o.length;
                    return d[t] = l, a.storeDimIndex = t, o.push(a), a
                }
                return o[e]
            }

            if (!s) for (p = 0; p < a; p++) f(p);
            h.each((function (t, e) {
                var n = Jo(t).slice();
                if (1 === n.length && !It(n[0]) && n[0] < 0) h.set(e, !1); else {
                    var i = h.set(e, []);
                    mt(n, (function (t, n) {
                        var r = It(t) ? u.get(t) : t;
                        null != r && r < a && (i[n] = r, m(f(r), e, n))
                    }))
                }
            }));
            var g = 0;

            function m(t, e, n) {
                null != zh.get(e) ? t.otherDims[e] = n : (t.coordDim = e, t.coordDimIndex = n, r.set(e, !0))
            }

            mt(n, (function (t) {
                var e, n, i, r;
                if (It(t)) e = t, r = {}; else {
                    e = (r = t).name;
                    var o = r.ordinalMeta;
                    r.ordinalMeta = null, (r = ht({}, r)).ordinalMeta = o, n = r.dimsDef, i = r.otherDims, r.name = r.coordDim = r.coordDimIndex = r.dimsDef = r.otherDims = null
                }
                var s = h.get(e);
                if (!1 !== s) {
                    if (!(s = Jo(s)).length) for (var u = 0; u < (n && n.length || 1); u++) {
                        for (; g < a && null != f(g).coordDim;) g++;
                        g < a && s.push(g++)
                    }
                    mt(s, (function (t, o) {
                        var a = f(t);
                        if (l && null != r.type && (a.type = r.type), m(dt(a, r), e, o), null == a.name && n) {
                            var s = n[o];
                            !Dt(s) && (s = {name: s}), a.name = a.displayName = s.name, a.defaultTooltip = s.defaultTooltip
                        }
                        i && dt(a.otherDims, i)
                    }))
                }
            }));
            var y = e.generateCoord, v = e.generateCoordCount, _ = null != v;
            v = y ? v || 1 : 0;
            var T = y || "value";

            function x(t) {
                null == t.name && (t.name = t.coordDim)
            }

            if (s) mt(o, (function (t) {
                x(t)
            })), o.sort((function (t, e) {
                return t.storeDimIndex - e.storeDimIndex
            })); else for (var S = 0; S < a; S++) {
                var A = f(S);
                null == A.coordDim && (A.coordDim = MS(T, r, _), A.coordDimIndex = 0, (!y || v <= 0) && (A.isExtraCoord = !0), v--), x(A), null != A.type || id(t, S) !== $h.Must && (!A.isExtraCoord || null == A.otherDims.itemName && null == A.otherDims.seriesName) || (A.type = "ordinal")
            }
            return function (t) {
                for (var e = jt(), n = 0; n < t.length; n++) {
                    var i = t[n], r = i.name, o = e.get(r) || 0;
                    o > 0 && (i.name = r + (o - 1)), o++, e.set(r, o)
                }
            }(o), new cS({source: t, dimensions: o, fullDimensionCount: a, dimensionOmitted: s})
        }

        function MS(t, e, n) {
            if (n || e.hasKey(t)) {
                for (var i = 0; e.hasKey(t + i);) i++;
                t += i
            }
            return e.set(t, !0), t
        }

        var NS = function (t) {
            this.coordSysDims = [], this.axisMap = jt(), this.categoryAxisMap = jt(), this.coordSysName = t
        };
        var OS = {
            cartesian2d: function (t, e, n, i) {
                var r = t.getReferringComponents("xAxis", ga).models[0],
                    o = t.getReferringComponents("yAxis", ga).models[0];
                e.coordSysDims = ["x", "y"], n.set("x", r), n.set("y", o), LS(r) && (i.set("x", r), e.firstCategoryDimIndex = 0), LS(o) && (i.set("y", o), null == e.firstCategoryDimIndex && (e.firstCategoryDimIndex = 1))
            }, singleAxis: function (t, e, n, i) {
                var r = t.getReferringComponents("singleAxis", ga).models[0];
                e.coordSysDims = ["single"], n.set("single", r), LS(r) && (i.set("single", r), e.firstCategoryDimIndex = 0)
            }, polar: function (t, e, n, i) {
                var r = t.getReferringComponents("polar", ga).models[0], o = r.findAxisModel("radiusAxis"),
                    a = r.findAxisModel("angleAxis");
                e.coordSysDims = ["radius", "angle"], n.set("radius", o), n.set("angle", a), LS(o) && (i.set("radius", o), e.firstCategoryDimIndex = 0), LS(a) && (i.set("angle", a), null == e.firstCategoryDimIndex && (e.firstCategoryDimIndex = 1))
            }, geo: function (t, e, n, i) {
                e.coordSysDims = ["lng", "lat"]
            }, parallel: function (t, e, n, i) {
                var r = t.ecModel, o = r.getComponent("parallel", t.get("parallelIndex")),
                    a = e.coordSysDims = o.dimensions.slice();
                mt(o.parallelAxisIndex, (function (t, o) {
                    var s = r.getComponent("parallelAxis", t), l = a[o];
                    n.set(l, s), LS(s) && (i.set(l, s), null == e.firstCategoryDimIndex && (e.firstCategoryDimIndex = o))
                }))
            }
        };

        function LS(t) {
            return "category" === t.get("type")
        }

        function RS(t, e, n) {
            var i, r, o, a = (n = n || {}).byIndex, s = n.stackedCoordDimension;
            !function (t) {
                return !hS(t.schema)
            }(e) ? (r = e.schema, i = r.dimensions, o = e.store) : i = e;
            var l, u, c, h, d = !(!t || !t.get("stack"));
            if (mt(i, (function (t, e) {
                It(t) && (i[e] = t = {name: t}), d && !t.isExtraCoord && (a || l || !t.ordinalMeta || (l = t), u || "ordinal" === t.type || "time" === t.type || s && s !== t.coordDim || (u = t))
            })), !u || a || l || (a = !0), u) {
                c = "__\0ecstackresult_" + t.id, h = "__\0ecstackedover_" + t.id, l && (l.createInvertedIndices = !0);
                var p = u.coordDim, f = u.type, g = 0;
                mt(i, (function (t) {
                    t.coordDim === p && g++
                }));
                var m = {
                    name: c,
                    coordDim: p,
                    coordDimIndex: g,
                    type: f,
                    isExtraCoord: !0,
                    isCalculationCoord: !0,
                    storeDimIndex: i.length
                }, y = {
                    name: h,
                    coordDim: h,
                    coordDimIndex: g + 1,
                    type: f,
                    isExtraCoord: !0,
                    isCalculationCoord: !0,
                    storeDimIndex: i.length + 1
                };
                r ? (o && (m.storeDimIndex = o.ensureCalculationDimension(h, f), y.storeDimIndex = o.ensureCalculationDimension(c, f)), r.appendCalculationDimension(m), r.appendCalculationDimension(y)) : (i.push(m), i.push(y))
            }
            return {
                stackedDimension: u && u.name,
                stackedByDimension: l && l.name,
                isStackedByIndex: a,
                stackedOverDimension: h,
                stackResultDimension: c
            }
        }

        function kS(t, e) {
            return !!e && e === t.getCalculationInfo("stackedDimension")
        }

        function PS(t, e) {
            return kS(t, e) ? t.getCalculationInfo("stackResultDimension") : e
        }

        const GS = function (t, e, n) {
            n = n || {};
            var i, r = e.getSourceManager(), o = !1;
            t ? (o = !0, i = rp(t)) : o = (i = r.getSource()).sourceFormat === Wh;
            var a = function (t) {
                    var e = t.get("coordinateSystem"), n = new NS(e), i = OS[e];
                    if (i) return i(t, n, n.axisMap, n.categoryAxisMap), n
                }(e), s = function (t, e) {
                    var n, i = t.get("coordinateSystem"), r = bd.get(i);
                    return e && e.coordSysDims && (n = yt(e.coordSysDims, (function (t) {
                        var n = {name: t}, i = e.axisMap.get(t);
                        if (i) {
                            var r = i.get("type");
                            n.type = aS(r)
                        }
                        return n
                    }))), n || (n = r && (r.getDimensionsInfo ? r.getDimensionsInfo() : r.dimensions.slice()) || ["x", "y"]), n
                }(e, a), l = n.useEncodeDefaulter, u = bt(l) ? l : l ? St(td, s, e) : null, c = wS(i, {
                    coordDimensions: s,
                    generateCoord: n.generateCoord,
                    encodeDefine: e.getEncode(),
                    encodeDefaulter: u,
                    canOmitUnusedDimensions: !o
                }), h = function (t, e, n) {
                    var i, r;
                    return n && mt(t, (function (t, o) {
                        var a = t.coordDim, s = n.categoryAxisMap.get(a);
                        s && (null == i && (i = o), t.ordinalMeta = s.getOrdinalMeta(), e && (t.createInvertedIndices = !0)), null != t.otherDims.itemName && (r = !0)
                    })), r || null == i || (t[i].otherDims.itemName = 0), i
                }(c.dimensions, n.createInvertedIndices, a), d = o ? null : r.getSharedDataStore(c),
                p = RS(e, {schema: c, store: d}), f = new DS(c, e);
            f.setCalculationInfo(p);
            var g = null != h && function (t) {
                if (t.sourceFormat === Wh) {
                    var e = function (t) {
                        var e = 0;
                        for (; e < t.length && null == t[e];) e++;
                        return t[e]
                    }(t.data || []);
                    return !At(na(e))
                }
            }(i) ? function (t, e, n, i) {
                return i === h ? n : this.defaultDimValueGetter(t, e, n, i)
            } : null;
            return f.hasItemOption = !1, f.initData(o ? i : d, null, g), f
        };
        const BS = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.hasSymbolVisual = !0, n
            }

            return G(e, t), e.prototype.getInitialData = function (t) {
                return GS(null, this, {useEncodeDefaulter: !0})
            }, e.prototype.getLegendIcon = function (t) {
                var e = new xo, n = iv("line", 0, t.itemHeight / 2, t.itemWidth, 0, t.lineStyle.stroke, !1);
                e.add(n), n.setStyle(t.lineStyle);
                var i = this.getData().getVisual("symbol"), r = this.getData().getVisual("symbolRotate"),
                    o = "none" === i ? "circle" : i, a = .8 * t.itemHeight,
                    s = iv(o, (t.itemWidth - a) / 2, (t.itemHeight - a) / 2, a, a, t.itemStyle.fill);
                e.add(s), s.setStyle(t.itemStyle);
                var l = "inherit" === t.iconRotate ? r : t.iconRotate || 0;
                return s.rotation = l * Math.PI / 180, s.setOrigin([t.itemWidth / 2, t.itemHeight / 2]), o.indexOf("empty") > -1 && (s.style.stroke = s.style.fill, s.style.fill = "#fff", s.style.lineWidth = 2), e
            }, e.type = "series.line", e.dependencies = ["grid", "polar"], e.defaultOption = {
                z: 3,
                coordinateSystem: "cartesian2d",
                legendHoverLink: !0,
                clip: !0,
                label: {position: "top"},
                endLabel: {show: !1, valueAnimation: !0, distance: 8},
                lineStyle: {width: 2, type: "solid"},
                emphasis: {scale: !0},
                step: !1,
                smooth: !1,
                smoothMonotone: null,
                symbol: "emptyCircle",
                symbolSize: 4,
                symbolRotate: null,
                showSymbol: !0,
                showAllSymbol: "auto",
                connectNulls: !1,
                sampling: "none",
                animationEasing: "linear",
                progressive: 0,
                hoverLayerThreshold: 1 / 0,
                universalTransition: {divideShape: "clone"},
                triggerLineEvent: !1
            }, e
        }(kf);

        function FS(t, e) {
            var n = t.mapDimensionsAll("defaultedLabel"), i = n.length;
            if (1 === i) {
                var r = Tp(t, e, n[0]);
                return null != r ? r + "" : null
            }
            if (i) {
                for (var o = [], a = 0; a < n.length; a++) o.push(Tp(t, e, n[a]));
                return o.join(" ")
            }
        }

        function HS(t, e) {
            var n = t.mapDimensionsAll("defaultedLabel");
            if (!At(e)) return e + "";
            for (var i = [], r = 0; r < n.length; r++) {
                var o = t.getDimensionIndex(n[r]);
                o >= 0 && i.push(e[o])
            }
            return i.join(" ")
        }

        var US = function (t) {
            function e(e, n, i, r) {
                var o = t.call(this) || this;
                return o.updateData(e, n, i, r), o
            }

            return G(e, t), e.prototype._createSymbol = function (t, e, n, i, r) {
                this.removeAll();
                var o = iv(t, -1, -1, 2, 2, null, r);
                o.attr({
                    z2: 100,
                    culling: !0,
                    scaleX: i[0] / 2,
                    scaleY: i[1] / 2
                }), o.drift = VS, this._symbolType = t, this.add(o)
            }, e.prototype.stopSymbolAnimation = function (t) {
                this.childAt(0).stopAnimation(null, t)
            }, e.prototype.getSymbolType = function () {
                return this._symbolType
            }, e.prototype.getSymbolPath = function () {
                return this.childAt(0)
            }, e.prototype.highlight = function () {
                xu(this.childAt(0))
            }, e.prototype.downplay = function () {
                Su(this.childAt(0))
            }, e.prototype.setZ = function (t, e) {
                var n = this.childAt(0);
                n.zlevel = t, n.z = e
            }, e.prototype.setDraggable = function (t, e) {
                var n = this.childAt(0);
                n.draggable = t, n.cursor = !e && t ? "move" : n.cursor
            }, e.prototype.updateData = function (t, n, i, r) {
                this.silent = !1;
                var o = t.getItemVisual(n, "symbol") || "circle", a = t.hostModel, s = e.getSymbolSize(t, n),
                    l = o !== this._symbolType, u = r && r.disableAnimation;
                if (l) {
                    var c = t.getItemVisual(n, "symbolKeepAspect");
                    this._createSymbol(o, t, n, s, c)
                } else {
                    (d = this.childAt(0)).silent = !1;
                    var h = {scaleX: s[0] / 2, scaleY: s[1] / 2};
                    u ? d.attr(h) : ju(d, h, a, n), Ju(d)
                }
                if (this._updateCommon(t, n, s, i, r), l) {
                    var d = this.childAt(0);
                    if (!u) {
                        h = {scaleX: this._sizeX, scaleY: this._sizeY, style: {opacity: d.style.opacity}};
                        d.scaleX = d.scaleY = 0, d.style.opacity = 0, Xu(d, h, a, n)
                    }
                }
                u && this.childAt(0).stopAnimation("leave")
            }, e.prototype._updateCommon = function (t, e, n, i, r) {
                var o, a, s, l, u, c, h, d, p, f = this.childAt(0), g = t.hostModel;
                if (i && (o = i.emphasisItemStyle, a = i.blurItemStyle, s = i.selectItemStyle, l = i.focus, u = i.blurScope, h = i.labelStatesModels, d = i.hoverScale, p = i.cursorStyle, c = i.emphasisDisabled), !i || t.hasItemOption) {
                    var m = i && i.itemModel ? i.itemModel : t.getItemModel(e), y = m.getModel("emphasis");
                    o = y.getModel("itemStyle").getItemStyle(), s = m.getModel(["select", "itemStyle"]).getItemStyle(), a = m.getModel(["blur", "itemStyle"]).getItemStyle(), l = y.get("focus"), u = y.get("blurScope"), c = y.get("disabled"), h = rc(m), d = y.getShallow("scale"), p = m.getShallow("cursor")
                }
                var v = t.getItemVisual(e, "symbolRotate");
                f.attr("rotation", (v || 0) * Math.PI / 180 || 0);
                var _ = ov(t.getItemVisual(e, "symbolOffset"), n);
                _ && (f.x = _[0], f.y = _[1]), p && f.attr("cursor", p);
                var T = t.getItemVisual(e, "style"), x = T.fill;
                if (f instanceof gl) {
                    var S = f.style;
                    f.useStyle(ht({image: S.image, x: S.x, y: S.y, width: S.width, height: S.height}, T))
                } else f.__isEmptyBrush ? f.useStyle(ht({}, T)) : f.useStyle(T), f.style.decal = null, f.setColor(x, r && r.symbolInnerColor), f.style.strokeNoScale = !0;
                var A = t.getItemVisual(e, "liftZ"), b = this._z2;
                null != A ? null == b && (this._z2 = f.z2, f.z2 += A) : null != b && (f.z2 = b, this._z2 = null);
                var I = r && r.useNameLabel;
                ic(f, h, {
                    labelFetcher: g, labelDataIndex: e, defaultText: function (e) {
                        return I ? t.getName(e) : FS(t, e)
                    }, inheritColor: x, defaultOpacity: T.opacity
                }), this._sizeX = n[0] / 2, this._sizeY = n[1] / 2;
                var E = f.ensureState("emphasis");
                E.style = o, f.ensureState("select").style = s, f.ensureState("blur").style = a;
                var C = null == d || !0 === d ? Math.max(1.1, 3 / this._sizeY) : isFinite(d) && d > 0 ? +d : 1;
                E.scaleX = this._sizeX * C, E.scaleY = this._sizeY * C, this.setSymbolScale(1), ku(this, l, u, c)
            }, e.prototype.setSymbolScale = function (t) {
                this.scaleX = this.scaleY = t
            }, e.prototype.fadeOut = function (t, e, n) {
                var i = this.childAt(0), r = Hl(this).dataIndex, o = n && n.animation;
                if (this.silent = i.silent = !0, n && n.fadeLabel) {
                    var a = i.getTextContent();
                    a && Ku(a, {style: {opacity: 0}}, e, {
                        dataIndex: r, removeOpt: o, cb: function () {
                            i.removeTextContent()
                        }
                    })
                } else i.removeTextContent();
                Ku(i, {style: {opacity: 0}, scaleX: 0, scaleY: 0}, e, {dataIndex: r, cb: t, removeOpt: o})
            }, e.getSymbolSize = function (t, e) {
                return rv(t.getItemVisual(e, "symbolSize"))
            }, e
        }(xo);

        function VS(t, e) {
            this.parent.drift(t, e)
        }

        const zS = US;

        function WS(t, e, n, i) {
            return e && !isNaN(e[0]) && !isNaN(e[1]) && !(i.isIgnore && i.isIgnore(n)) && !(i.clipShape && !i.clipShape.contain(e[0], e[1])) && "none" !== t.getItemVisual(n, "symbol")
        }

        function YS(t) {
            return null == t || Dt(t) || (t = {isIgnore: t}), t || {}
        }

        function qS(t) {
            var e = t.hostModel, n = e.getModel("emphasis");
            return {
                emphasisItemStyle: n.getModel("itemStyle").getItemStyle(),
                blurItemStyle: e.getModel(["blur", "itemStyle"]).getItemStyle(),
                selectItemStyle: e.getModel(["select", "itemStyle"]).getItemStyle(),
                focus: n.get("focus"),
                blurScope: n.get("blurScope"),
                emphasisDisabled: n.get("disabled"),
                hoverScale: n.get("scale"),
                labelStatesModels: rc(e),
                cursorStyle: e.get("cursor")
            }
        }

        var jS = function () {
            function t(t) {
                this.group = new xo, this._SymbolCtor = t || zS
            }

            return t.prototype.updateData = function (t, e) {
                this._progressiveEls = null, e = YS(e);
                var n = this.group, i = t.hostModel, r = this._data, o = this._SymbolCtor, a = e.disableAnimation,
                    s = qS(t), l = {disableAnimation: a}, u = e.getSymbolPoint || function (e) {
                        return t.getItemLayout(e)
                    };
                r || n.removeAll(), t.diff(r).add((function (i) {
                    var r = u(i);
                    if (WS(t, r, i, e)) {
                        var a = new o(t, i, s, l);
                        a.setPosition(r), t.setItemGraphicEl(i, a), n.add(a)
                    }
                })).update((function (c, h) {
                    var d = r.getItemGraphicEl(h), p = u(c);
                    if (WS(t, p, c, e)) {
                        var f = t.getItemVisual(c, "symbol") || "circle", g = d && d.getSymbolType && d.getSymbolType();
                        if (!d || g && g !== f) n.remove(d), (d = new o(t, c, s, l)).setPosition(p); else {
                            d.updateData(t, c, s, l);
                            var m = {x: p[0], y: p[1]};
                            a ? d.attr(m) : ju(d, m, i)
                        }
                        n.add(d), t.setItemGraphicEl(c, d)
                    } else n.remove(d)
                })).remove((function (t) {
                    var e = r.getItemGraphicEl(t);
                    e && e.fadeOut((function () {
                        n.remove(e)
                    }), i)
                })).execute(), this._getSymbolPoint = u, this._data = t
            }, t.prototype.updateLayout = function () {
                var t = this, e = this._data;
                e && e.eachItemGraphicEl((function (e, n) {
                    var i = t._getSymbolPoint(n);
                    e.setPosition(i), e.markRedraw()
                }))
            }, t.prototype.incrementalPrepareUpdate = function (t) {
                this._seriesScope = qS(t), this._data = null, this.group.removeAll()
            }, t.prototype.incrementalUpdate = function (t, e, n) {
                function i(t) {
                    t.isGroup || (t.incremental = !0, t.ensureState("emphasis").hoverLayer = !0)
                }

                this._progressiveEls = [], n = YS(n);
                for (var r = t.start; r < t.end; r++) {
                    var o = e.getItemLayout(r);
                    if (WS(e, o, r, n)) {
                        var a = new this._SymbolCtor(e, r, this._seriesScope);
                        a.traverse(i), a.setPosition(o), this.group.add(a), e.setItemGraphicEl(r, a), this._progressiveEls.push(a)
                    }
                }
            }, t.prototype.eachRendered = function (t) {
                Bm(this._progressiveEls || this.group, t)
            }, t.prototype.remove = function (t) {
                var e = this.group, n = this._data;
                n && t ? n.eachItemGraphicEl((function (t) {
                    t.fadeOut((function () {
                        e.remove(t)
                    }), n.hostModel)
                })) : e.removeAll()
            }, t
        }();
        const XS = jS;

        function ZS(t, e, n) {
            var i = t.getBaseAxis(), r = t.getOtherAxis(i), o = function (t, e) {
                    var n = 0, i = t.scale.getExtent();
                    "start" === e ? n = i[0] : "end" === e ? n = i[1] : Ct(e) && !isNaN(e) ? n = e : i[0] > 0 ? n = i[0] : i[1] < 0 && (n = i[1]);
                    return n
                }(r, n), a = i.dim, s = r.dim, l = e.mapDimension(s), u = e.mapDimension(a),
                c = "x" === s || "radius" === s ? 1 : 0, h = yt(t.dimensions, (function (t) {
                    return e.mapDimension(t)
                })), d = !1, p = e.getCalculationInfo("stackResultDimension");
            return kS(e, h[0]) && (d = !0, h[0] = p), kS(e, h[1]) && (d = !0, h[1] = p), {
                dataDimsForPoint: h,
                valueStart: o,
                valueAxisDim: s,
                baseAxisDim: a,
                stacked: !!d,
                valueDim: l,
                baseDim: u,
                baseDataOffset: c,
                stackedOverDimension: e.getCalculationInfo("stackedOverDimension")
            }
        }

        function KS(t, e, n, i) {
            var r = NaN;
            t.stacked && (r = n.get(n.getCalculationInfo("stackedOverDimension"), i)), isNaN(r) && (r = t.valueStart);
            var o = t.baseDataOffset, a = [];
            return a[o] = n.get(t.baseDim, i), a[1 - o] = r, e.dataToPoint(a)
        }

        var QS = "undefined" != typeof Float32Array, $S = QS ? Float32Array : Array;

        function JS(t) {
            return At(t) ? QS ? new Float32Array(t) : t : new $S(t)
        }

        var tA = Math.min, eA = Math.max;

        function nA(t, e) {
            return isNaN(t) || isNaN(e)
        }

        function iA(t, e, n, i, r, o, a, s, l) {
            for (var u, c, h, d, p, f, g = n, m = 0; m < i; m++) {
                var y = e[2 * g], v = e[2 * g + 1];
                if (g >= r || g < 0) break;
                if (nA(y, v)) {
                    if (l) {
                        g += o;
                        continue
                    }
                    break
                }
                if (g === n) t[o > 0 ? "moveTo" : "lineTo"](y, v), h = y, d = v; else {
                    var _ = y - u, T = v - c;
                    if (_ * _ + T * T < .5) {
                        g += o;
                        continue
                    }
                    if (a > 0) {
                        for (var x = g + o, S = e[2 * x], A = e[2 * x + 1]; S === y && A === v && m < i;) m++, g += o, S = e[2 * (x += o)], A = e[2 * x + 1], _ = (y = e[2 * g]) - u, T = (v = e[2 * g + 1]) - c;
                        var b = m + 1;
                        if (l) for (; nA(S, A) && b < i;) b++, S = e[2 * (x += o)], A = e[2 * x + 1];
                        var I = .5, E = 0, C = 0, D = void 0, w = void 0;
                        if (b >= i || nA(S, A)) p = y, f = v; else {
                            E = S - u, C = A - c;
                            var M = y - u, N = S - y, O = v - c, L = A - v, R = void 0, k = void 0;
                            if ("x" === s) {
                                var P = E > 0 ? 1 : -1;
                                p = y - P * (R = Math.abs(M)) * a, f = v, D = y + P * (k = Math.abs(N)) * a, w = v
                            } else if ("y" === s) {
                                var G = C > 0 ? 1 : -1;
                                p = y, f = v - G * (R = Math.abs(O)) * a, D = y, w = v + G * (k = Math.abs(L)) * a
                            } else R = Math.sqrt(M * M + O * O), p = y - E * a * (1 - (I = (k = Math.sqrt(N * N + L * L)) / (k + R))), f = v - C * a * (1 - I), w = v + C * a * I, D = tA(D = y + E * a * I, eA(S, y)), w = tA(w, eA(A, v)), D = eA(D, tA(S, y)), f = v - (C = (w = eA(w, tA(A, v))) - v) * R / k, p = tA(p = y - (E = D - y) * R / k, eA(u, y)), f = tA(f, eA(c, v)), D = y + (E = y - (p = eA(p, tA(u, y)))) * k / R, w = v + (C = v - (f = eA(f, tA(c, v)))) * k / R
                        }
                        t.bezierCurveTo(h, d, p, f, y, v), h = D, d = w
                    } else t.lineTo(y, v)
                }
                u = y, c = v, g += o
            }
            return m
        }

        var rA = function () {
            this.smooth = 0, this.smoothConstraint = !0
        }, oA = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n.type = "ec-polyline", n
            }

            return G(e, t), e.prototype.getDefaultStyle = function () {
                return {stroke: "#000", fill: null}
            }, e.prototype.getDefaultShape = function () {
                return new rA
            }, e.prototype.buildPath = function (t, e) {
                var n = e.points, i = 0, r = n.length / 2;
                if (e.connectNulls) {
                    for (; r > 0 && nA(n[2 * r - 2], n[2 * r - 1]); r--) ;
                    for (; i < r && nA(n[2 * i], n[2 * i + 1]); i++) ;
                }
                for (; i < r;) i += iA(t, n, i, r, r, 1, e.smooth, e.smoothMonotone, e.connectNulls) + 1
            }, e.prototype.getPointOn = function (t, e) {
                this.path || (this.createPathProxy(), this.buildPath(this.path, this.shape));
                for (var n, i, r = this.path.data, o = Hs.CMD, a = "x" === e, s = [], l = 0; l < r.length;) {
                    var u = void 0, c = void 0, h = void 0, d = void 0, p = void 0, f = void 0, g = void 0;
                    switch (r[l++]) {
                        case o.M:
                            n = r[l++], i = r[l++];
                            break;
                        case o.L:
                            if (u = r[l++], c = r[l++], (g = a ? (t - n) / (u - n) : (t - i) / (c - i)) <= 1 && g >= 0) {
                                var m = a ? (c - i) * g + i : (u - n) * g + n;
                                return a ? [t, m] : [m, t]
                            }
                            n = u, i = c;
                            break;
                        case o.C:
                            u = r[l++], c = r[l++], h = r[l++], d = r[l++], p = r[l++], f = r[l++];
                            var y = a ? ti(n, u, h, p, t, s) : ti(i, c, d, f, t, s);
                            if (y > 0) for (var v = 0; v < y; v++) {
                                var _ = s[v];
                                if (_ <= 1 && _ >= 0) {
                                    m = a ? $n(i, c, d, f, _) : $n(n, u, h, p, _);
                                    return a ? [t, m] : [m, t]
                                }
                            }
                            n = p, i = f
                    }
                }
            }, e
        }(ll), aA = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e
        }(rA), sA = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n.type = "ec-polygon", n
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new aA
            }, e.prototype.buildPath = function (t, e) {
                var n = e.points, i = e.stackedOnPoints, r = 0, o = n.length / 2, a = e.smoothMonotone;
                if (e.connectNulls) {
                    for (; o > 0 && nA(n[2 * o - 2], n[2 * o - 1]); o--) ;
                    for (; r < o && nA(n[2 * r], n[2 * r + 1]); r++) ;
                }
                for (; r < o;) {
                    var s = iA(t, n, r, o, o, 1, e.smooth, a, e.connectNulls);
                    iA(t, i, r + s - 1, s, o, -1, e.stackedOnSmooth, a, e.connectNulls), r += s + 1, t.closePath()
                }
            }, e
        }(ll);

        function lA(t, e, n, i, r) {
            var o = t.getArea(), a = o.x, s = o.y, l = o.width, u = o.height, c = n.get(["lineStyle", "width"]) || 2;
            a -= c / 2, s -= c / 2, l += c, u += c, a = Math.floor(a), l = Math.round(l);
            var h = new Al({shape: {x: a, y: s, width: l, height: u}});
            if (e) {
                var d = t.getBaseAxis(), p = d.isHorizontal(), f = d.inverse;
                p ? (f && (h.shape.x += l), h.shape.width = 0) : (f || (h.shape.y += u), h.shape.height = 0);
                var g = bt(r) ? function (t) {
                    r(t, h)
                } : null;
                Xu(h, {shape: {width: l, height: u, x: a, y: s}}, n, null, i, g)
            }
            return h
        }

        function uA(t, e, n) {
            var i = t.getArea(), r = Mo(i.r0, 1), o = Mo(i.r, 1), a = new Eg({
                shape: {
                    cx: Mo(t.cx, 1),
                    cy: Mo(t.cy, 1),
                    r0: r,
                    r: o,
                    startAngle: i.startAngle,
                    endAngle: i.endAngle,
                    clockwise: i.clockwise
                }
            });
            e && ("angle" === t.getBaseAxis().dim ? a.shape.endAngle = i.startAngle : a.shape.r = r, Xu(a, {
                shape: {
                    endAngle: i.endAngle,
                    r: o
                }
            }, n));
            return a
        }

        function cA(t, e, n, i, r) {
            return t ? "polar" === t.type ? uA(t, e, n) : "cartesian2d" === t.type ? lA(t, e, n, i, r) : null : null
        }

        function hA(t, e) {
            return t.type === e
        }

        function dA(t, e) {
            if (t.length === e.length) {
                for (var n = 0; n < t.length; n++) if (t[n] !== e[n]) return;
                return !0
            }
        }

        function pA(t) {
            for (var e = 1 / 0, n = 1 / 0, i = -1 / 0, r = -1 / 0, o = 0; o < t.length;) {
                var a = t[o++], s = t[o++];
                isNaN(a) || (e = Math.min(a, e), i = Math.max(a, i)), isNaN(s) || (n = Math.min(s, n), r = Math.max(s, r))
            }
            return [[e, n], [i, r]]
        }

        function fA(t, e) {
            var n = pA(t), i = n[0], r = n[1], o = pA(e), a = o[0], s = o[1];
            return Math.max(Math.abs(i[0] - a[0]), Math.abs(i[1] - a[1]), Math.abs(r[0] - s[0]), Math.abs(r[1] - s[1]))
        }

        function gA(t) {
            return Ct(t) ? t : t ? .5 : 0
        }

        function mA(t, e, n, i) {
            var r = e.getBaseAxis(), o = "x" === r.dim || "radius" === r.dim ? 0 : 1, a = [], s = 0, l = [], u = [],
                c = [], h = [];
            if (i) {
                for (s = 0; s < t.length; s += 2) isNaN(t[s]) || isNaN(t[s + 1]) || h.push(t[s], t[s + 1]);
                t = h
            }
            for (s = 0; s < t.length - 2; s += 2) switch (c[0] = t[s + 2], c[1] = t[s + 3], u[0] = t[s], u[1] = t[s + 1], a.push(u[0], u[1]), n) {
                case"end":
                    l[o] = c[o], l[1 - o] = u[1 - o], a.push(l[0], l[1]);
                    break;
                case"middle":
                    var d = (u[o] + c[o]) / 2, p = [];
                    l[o] = p[o] = d, l[1 - o] = u[1 - o], p[1 - o] = c[1 - o], a.push(l[0], l[1]), a.push(p[0], p[1]);
                    break;
                default:
                    l[o] = u[o], l[1 - o] = c[1 - o], a.push(l[0], l[1])
            }
            return a.push(t[s++], t[s++]), a
        }

        function yA(t, e, n) {
            var i = t.getVisual("visualMeta");
            if (i && i.length && t.count() && "cartesian2d" === e.type) {
                for (var r, o, a = i.length - 1; a >= 0; a--) {
                    var s = t.getDimensionInfo(i[a].dimension);
                    if ("x" === (r = s && s.coordDim) || "y" === r) {
                        o = i[a];
                        break
                    }
                }
                if (o) {
                    var l = e.getAxis(r), u = yt(o.stops, (function (t) {
                        return {coord: l.toGlobalCoord(l.dataToCoord(t.value)), color: t.color}
                    })), c = u.length, h = o.outerColors.slice();
                    c && u[0].coord > u[c - 1].coord && (u.reverse(), h.reverse());
                    var d = function (t, e) {
                        var n, i, r = [], o = t.length;

                        function a(t, e, n) {
                            var i = t.coord;
                            return {coord: n, color: Ri((n - i) / (e.coord - i), [t.color, e.color])}
                        }

                        for (var s = 0; s < o; s++) {
                            var l = t[s], u = l.coord;
                            if (u < 0) n = l; else {
                                if (u > e) {
                                    i ? r.push(a(i, l, e)) : n && r.push(a(n, l, 0), a(n, l, e));
                                    break
                                }
                                n && (r.push(a(n, l, 0)), n = null), r.push(l), i = l
                            }
                        }
                        return r
                    }(u, "x" === r ? n.getWidth() : n.getHeight()), p = d.length;
                    if (!p && c) return u[0].coord < 0 ? h[1] ? h[1] : u[c - 1].color : h[0] ? h[0] : u[0].color;
                    var f = d[0].coord - 10, g = d[p - 1].coord + 10, m = g - f;
                    if (m < .001) return "transparent";
                    mt(d, (function (t) {
                        t.offset = (t.coord - f) / m
                    })), d.push({
                        offset: p ? d[p - 1].offset : .5,
                        color: h[1] || "transparent"
                    }), d.unshift({offset: p ? d[0].offset : .5, color: h[0] || "transparent"});
                    var y = new $g(0, 0, 0, 0, d, !0);
                    return y[r] = f, y[r + "2"] = g, y
                }
            }
        }

        function vA(t, e, n) {
            var i = t.get("showAllSymbol"), r = "auto" === i;
            if (!i || r) {
                var o = n.getAxesByScale("ordinal")[0];
                if (o && (!r || !function (t, e) {
                    var n = t.getExtent(), i = Math.abs(n[1] - n[0]) / t.scale.count();
                    isNaN(i) && (i = 0);
                    for (var r = e.count(), o = Math.max(1, Math.round(r / 5)), a = 0; a < r; a += o) if (1.5 * zS.getSymbolSize(e, a)[t.isHorizontal() ? 1 : 0] > i) return !1;
                    return !0
                }(o, e))) {
                    var a = e.mapDimension(o.dim), s = {};
                    return mt(o.getViewLabels(), (function (t) {
                        var e = o.scale.getRawOrdinalNumber(t.tickValue);
                        s[e] = 1
                    })), function (t) {
                        return !s.hasOwnProperty(e.get(a, t))
                    }
                }
            }
        }

        function _A(t, e) {
            return [t[2 * e], t[2 * e + 1]]
        }

        function TA(t) {
            if (t.get(["endLabel", "show"])) return !0;
            for (var e = 0; e < Zl.length; e++) if (t.get([Zl[e], "endLabel", "show"])) return !0;
            return !1
        }

        function xA(t, e, n, i) {
            if (hA(e, "cartesian2d")) {
                var r = i.getModel("endLabel"), o = r.get("valueAnimation"), a = i.getData(), s = {lastFrameIndex: 0},
                    l = TA(i) ? function (n, i) {
                        t._endLabelOnDuring(n, i, a, s, o, r, e)
                    } : null, u = e.getBaseAxis().isHorizontal(), c = lA(e, n, i, (function () {
                        var e = t._endLabel;
                        e && n && null != s.originalX && e.attr({x: s.originalX, y: s.originalY})
                    }), l);
                if (!i.get("clip", !0)) {
                    var h = c.shape, d = Math.max(h.width, h.height);
                    u ? (h.y -= d, h.height += 2 * d) : (h.x -= d, h.width += 2 * d)
                }
                return l && l(1, c), c
            }
            return uA(e, n, i)
        }

        var SA = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.init = function () {
                var t = new xo, e = new XS;
                this.group.add(e.group), this._symbolDraw = e, this._lineGroup = t
            }, e.prototype.render = function (t, e, n) {
                var i = this, r = t.coordinateSystem, o = this.group, a = t.getData(), s = t.getModel("lineStyle"),
                    l = t.getModel("areaStyle"), u = a.getLayout("points") || [], c = "polar" === r.type,
                    h = this._coordSys, d = this._symbolDraw, p = this._polyline, f = this._polygon,
                    g = this._lineGroup, m = !e.ssr && t.isAnimationEnabled(), y = !l.isEmpty(), v = l.get("origin"),
                    _ = ZS(r, a, v), T = y && function (t, e, n) {
                        if (!n.valueDim) return [];
                        for (var i = e.count(), r = JS(2 * i), o = 0; o < i; o++) {
                            var a = KS(n, t, e, o);
                            r[2 * o] = a[0], r[2 * o + 1] = a[1]
                        }
                        return r
                    }(r, a, _), x = t.get("showSymbol"), S = t.get("connectNulls"), A = x && !c && vA(t, a, r),
                    b = this._data;
                b && b.eachItemGraphicEl((function (t, e) {
                    t.__temp && (o.remove(t), b.setItemGraphicEl(e, null))
                })), x || d.remove(), o.add(g);
                var I, E = !c && t.get("step");
                r && r.getArea && t.get("clip", !0) && (null != (I = r.getArea()).width ? (I.x -= .1, I.y -= .1, I.width += .2, I.height += .2) : I.r0 && (I.r0 -= .5, I.r += .5)), this._clipShapeForSymbol = I;
                var C = yA(a, r, n) || a.getVisual("style")[a.getVisual("drawType")];
                if (p && h.type === r.type && E === this._step) {
                    y && !f ? f = this._newPolygon(u, T) : f && !y && (g.remove(f), f = this._polygon = null), c || this._initOrUpdateEndLabel(t, r, bh(C));
                    var D = g.getClipPath();
                    if (D) Xu(D, {shape: xA(this, r, !1, t).shape}, t); else g.setClipPath(xA(this, r, !0, t));
                    x && d.updateData(a, {
                        isIgnore: A,
                        clipShape: I,
                        disableAnimation: !0,
                        getSymbolPoint: function (t) {
                            return [u[2 * t], u[2 * t + 1]]
                        }
                    }), dA(this._stackedOnPoints, T) && dA(this._points, u) || (m ? this._doUpdateAnimation(a, T, r, n, E, v, S) : (E && (u = mA(u, r, E, S), T && (T = mA(T, r, E, S))), p.setShape({points: u}), f && f.setShape({
                        points: u,
                        stackedOnPoints: T
                    })))
                } else x && d.updateData(a, {
                    isIgnore: A,
                    clipShape: I,
                    disableAnimation: !0,
                    getSymbolPoint: function (t) {
                        return [u[2 * t], u[2 * t + 1]]
                    }
                }), m && this._initSymbolLabelAnimation(a, r, I), E && (u = mA(u, r, E, S), T && (T = mA(T, r, E, S))), p = this._newPolyline(u), y ? f = this._newPolygon(u, T) : f && (g.remove(f), f = this._polygon = null), c || this._initOrUpdateEndLabel(t, r, bh(C)), g.setClipPath(xA(this, r, !0, t));
                var w = t.getModel("emphasis"), M = w.get("focus"), N = w.get("blurScope"), O = w.get("disabled");
                (p.useStyle(dt(s.getLineStyle(), {
                    fill: "none",
                    stroke: C,
                    lineJoin: "bevel"
                })), Fu(p, t, "lineStyle"), p.style.lineWidth > 0 && "bolder" === t.get(["emphasis", "lineStyle", "width"])) && (p.getState("emphasis").style.lineWidth = +p.style.lineWidth + 1);
                Hl(p).seriesIndex = t.seriesIndex, ku(p, M, N, O);
                var L = gA(t.get("smooth")), R = t.get("smoothMonotone");
                if (p.setShape({smooth: L, smoothMonotone: R, connectNulls: S}), f) {
                    var k = a.getCalculationInfo("stackedOnSeries"), P = 0;
                    f.useStyle(dt(l.getAreaStyle(), {
                        fill: C,
                        opacity: .7,
                        lineJoin: "bevel",
                        decal: a.getVisual("style").decal
                    })), k && (P = gA(k.get("smooth"))), f.setShape({
                        smooth: L,
                        stackedOnSmooth: P,
                        smoothMonotone: R,
                        connectNulls: S
                    }), Fu(f, t, "areaStyle"), Hl(f).seriesIndex = t.seriesIndex, ku(f, M, N, O)
                }
                var G = function (t) {
                    i._changePolyState(t)
                };
                a.eachItemGraphicEl((function (t) {
                    t && (t.onHoverStateChange = G)
                })), this._polyline.onHoverStateChange = G, this._data = a, this._coordSys = r, this._stackedOnPoints = T, this._points = u, this._step = E, this._valueOrigin = v, t.get("triggerLineEvent") && (this.packEventData(t, p), f && this.packEventData(t, f))
            }, e.prototype.packEventData = function (t, e) {
                Hl(e).eventData = {
                    componentType: "series",
                    componentSubType: "line",
                    componentIndex: t.componentIndex,
                    seriesIndex: t.seriesIndex,
                    seriesName: t.name,
                    seriesType: "line"
                }
            }, e.prototype.highlight = function (t, e, n, i) {
                var r = t.getData(), o = ca(r, i);
                if (this._changePolyState("emphasis"), !(o instanceof Array) && null != o && o >= 0) {
                    var a = r.getLayout("points"), s = r.getItemGraphicEl(o);
                    if (!s) {
                        var l = a[2 * o], u = a[2 * o + 1];
                        if (isNaN(l) || isNaN(u)) return;
                        if (this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(l, u)) return;
                        var c = t.get("zlevel") || 0, h = t.get("z") || 0;
                        (s = new zS(r, o)).x = l, s.y = u, s.setZ(c, h);
                        var d = s.getSymbolPath().getTextContent();
                        d && (d.zlevel = c, d.z = h, d.z2 = this._polyline.z2 + 1), s.__temp = !0, r.setItemGraphicEl(o, s), s.stopSymbolAnimation(!0), this.group.add(s)
                    }
                    s.highlight()
                } else jm.prototype.highlight.call(this, t, e, n, i)
            }, e.prototype.downplay = function (t, e, n, i) {
                var r = t.getData(), o = ca(r, i);
                if (this._changePolyState("normal"), null != o && o >= 0) {
                    var a = r.getItemGraphicEl(o);
                    a && (a.__temp ? (r.setItemGraphicEl(o, null), this.group.remove(a)) : a.downplay())
                } else jm.prototype.downplay.call(this, t, e, n, i)
            }, e.prototype._changePolyState = function (t) {
                var e = this._polygon;
                mu(this._polyline, t), e && mu(e, t)
            }, e.prototype._newPolyline = function (t) {
                var e = this._polyline;
                return e && this._lineGroup.remove(e), e = new oA({
                    shape: {points: t},
                    segmentIgnoreThreshold: 2,
                    z2: 10
                }), this._lineGroup.add(e), this._polyline = e, e
            }, e.prototype._newPolygon = function (t, e) {
                var n = this._polygon;
                return n && this._lineGroup.remove(n), n = new sA({
                    shape: {points: t, stackedOnPoints: e},
                    segmentIgnoreThreshold: 2
                }), this._lineGroup.add(n), this._polygon = n, n
            }, e.prototype._initSymbolLabelAnimation = function (t, e, n) {
                var i, r, o = e.getBaseAxis(), a = o.inverse;
                "cartesian2d" === e.type ? (i = o.isHorizontal(), r = !1) : "polar" === e.type && (i = "angle" === o.dim, r = !0);
                var s = t.hostModel, l = s.get("animationDuration");
                bt(l) && (l = l(null));
                var u = s.get("animationDelay") || 0, c = bt(u) ? u(null) : u;
                t.eachItemGraphicEl((function (t, o) {
                    var s = t;
                    if (s) {
                        var h = [t.x, t.y], d = void 0, p = void 0, f = void 0;
                        if (n) if (r) {
                            var g = n, m = e.pointToCoord(h);
                            i ? (d = g.startAngle, p = g.endAngle, f = -m[1] / 180 * Math.PI) : (d = g.r0, p = g.r, f = m[0])
                        } else {
                            var y = n;
                            i ? (d = y.x, p = y.x + y.width, f = t.x) : (d = y.y + y.height, p = y.y, f = t.y)
                        }
                        var v = p === d ? 0 : (f - d) / (p - d);
                        a && (v = 1 - v);
                        var _ = bt(u) ? u(o) : l * v + c, T = s.getSymbolPath(), x = T.getTextContent();
                        s.attr({scaleX: 0, scaleY: 0}), s.animateTo({scaleX: 1, scaleY: 1}, {
                            duration: 200,
                            setToFinal: !0,
                            delay: _
                        }), x && x.animateFrom({style: {opacity: 0}}, {
                            duration: 300,
                            delay: _
                        }), T.disableLabelAnimation = !0
                    }
                }))
            }, e.prototype._initOrUpdateEndLabel = function (t, e, n) {
                var i = t.getModel("endLabel");
                if (TA(t)) {
                    var r = t.getData(), o = this._polyline, a = r.getLayout("points");
                    if (!a) return o.removeTextContent(), void (this._endLabel = null);
                    var s = this._endLabel;
                    s || ((s = this._endLabel = new Fl({z2: 200})).ignoreClip = !0, o.setTextContent(this._endLabel), o.disableLabelAnimation = !0);
                    var l = function (t) {
                        for (var e, n, i = t.length / 2; i > 0 && (e = t[2 * i - 2], n = t[2 * i - 1], isNaN(e) || isNaN(n)); i--) ;
                        return i - 1
                    }(a);
                    l >= 0 && (ic(o, rc(t, "endLabel"), {
                        inheritColor: n,
                        labelFetcher: t,
                        labelDataIndex: l,
                        defaultText: function (t, e, n) {
                            return null != n ? HS(r, n) : FS(r, t)
                        },
                        enableTextSetter: !0
                    }, function (t, e) {
                        var n = e.getBaseAxis(), i = n.isHorizontal(), r = n.inverse,
                            o = i ? r ? "right" : "left" : "center", a = i ? "middle" : r ? "top" : "bottom";
                        return {normal: {align: t.get("align") || o, verticalAlign: t.get("verticalAlign") || a}}
                    }(i, e)), o.textConfig.position = null)
                } else this._endLabel && (this._polyline.removeTextContent(), this._endLabel = null)
            }, e.prototype._endLabelOnDuring = function (t, e, n, i, r, o, a) {
                var s = this._endLabel, l = this._polyline;
                if (s) {
                    t < 1 && null == i.originalX && (i.originalX = s.x, i.originalY = s.y);
                    var u = n.getLayout("points"), c = n.hostModel, h = c.get("connectNulls"), d = o.get("precision"),
                        p = o.get("distance") || 0, f = a.getBaseAxis(), g = f.isHorizontal(), m = f.inverse,
                        y = e.shape, v = m ? g ? y.x : y.y + y.height : g ? y.x + y.width : y.y,
                        _ = (g ? p : 0) * (m ? -1 : 1), T = (g ? 0 : -p) * (m ? -1 : 1), x = g ? "x" : "y",
                        S = function (t, e, n) {
                            for (var i, r, o = t.length / 2, a = "x" === n ? 0 : 1, s = 0, l = -1, u = 0; u < o; u++) if (r = t[2 * u + a], !isNaN(r) && !isNaN(t[2 * u + 1 - a])) if (0 !== u) {
                                if (i <= e && r >= e || i >= e && r <= e) {
                                    l = u;
                                    break
                                }
                                s = u, i = r
                            } else i = r;
                            return {range: [s, l], t: (e - i) / (r - i)}
                        }(u, v, x), A = S.range, b = A[1] - A[0], I = void 0;
                    if (b >= 1) {
                        if (b > 1 && !h) {
                            var E = _A(u, A[0]);
                            s.attr({x: E[0] + _, y: E[1] + T}), r && (I = c.getRawValue(A[0]))
                        } else {
                            (E = l.getPointOn(v, x)) && s.attr({x: E[0] + _, y: E[1] + T});
                            var C = c.getRawValue(A[0]), D = c.getRawValue(A[1]);
                            r && (I = Ta(n, d, C, D, S.t))
                        }
                        i.lastFrameIndex = A[0]
                    } else {
                        var w = 1 === t || i.lastFrameIndex > 0 ? A[0] : 0;
                        E = _A(u, w);
                        r && (I = c.getRawValue(w)), s.attr({x: E[0] + _, y: E[1] + T})
                    }
                    if (r) {
                        var M = dc(s);
                        "function" == typeof M.setLabelText && M.setLabelText(I)
                    }
                }
            }, e.prototype._doUpdateAnimation = function (t, e, n, i, r, o, a) {
                var s = this._polyline, l = this._polygon, u = t.hostModel, c = function (t, e, n, i, r, o, a, s) {
                        for (var l = function (t, e) {
                            var n = [];
                            return e.diff(t).add((function (t) {
                                n.push({cmd: "+", idx: t})
                            })).update((function (t, e) {
                                n.push({cmd: "=", idx: e, idx1: t})
                            })).remove((function (t) {
                                n.push({cmd: "-", idx: t})
                            })).execute(), n
                        }(t, e), u = [], c = [], h = [], d = [], p = [], f = [], g = [], m = ZS(r, e, a), y = t.getLayout("points") || [], v = e.getLayout("points") || [], _ = 0; _ < l.length; _++) {
                            var T = l[_], x = !0, S = void 0, A = void 0;
                            switch (T.cmd) {
                                case"=":
                                    S = 2 * T.idx, A = 2 * T.idx1;
                                    var b = y[S], I = y[S + 1], E = v[A], C = v[A + 1];
                                    (isNaN(b) || isNaN(I)) && (b = E, I = C), u.push(b, I), c.push(E, C), h.push(n[S], n[S + 1]), d.push(i[A], i[A + 1]), g.push(e.getRawIndex(T.idx1));
                                    break;
                                case"+":
                                    var D = T.idx, w = m.dataDimsForPoint,
                                        M = r.dataToPoint([e.get(w[0], D), e.get(w[1], D)]);
                                    A = 2 * D, u.push(M[0], M[1]), c.push(v[A], v[A + 1]);
                                    var N = KS(m, r, e, D);
                                    h.push(N[0], N[1]), d.push(i[A], i[A + 1]), g.push(e.getRawIndex(D));
                                    break;
                                case"-":
                                    x = !1
                            }
                            x && (p.push(T), f.push(f.length))
                        }
                        f.sort((function (t, e) {
                            return g[t] - g[e]
                        }));
                        var O = u.length, L = JS(O), R = JS(O), k = JS(O), P = JS(O), G = [];
                        for (_ = 0; _ < f.length; _++) {
                            var B = f[_], F = 2 * _, H = 2 * B;
                            L[F] = u[H], L[F + 1] = u[H + 1], R[F] = c[H], R[F + 1] = c[H + 1], k[F] = h[H], k[F + 1] = h[H + 1], P[F] = d[H], P[F + 1] = d[H + 1], G[_] = p[B]
                        }
                        return {current: L, next: R, stackedOnCurrent: k, stackedOnNext: P, status: G}
                    }(this._data, t, this._stackedOnPoints, e, this._coordSys, 0, this._valueOrigin), h = c.current,
                    d = c.stackedOnCurrent, p = c.next, f = c.stackedOnNext;
                if (r && (h = mA(c.current, n, r, a), d = mA(c.stackedOnCurrent, n, r, a), p = mA(c.next, n, r, a), f = mA(c.stackedOnNext, n, r, a)), fA(h, p) > 3e3 || l && fA(d, f) > 3e3) return s.stopAnimation(), s.setShape({points: p}), void (l && (l.stopAnimation(), l.setShape({
                    points: p,
                    stackedOnPoints: f
                })));
                s.shape.__points = c.current, s.shape.points = h;
                var g = {shape: {points: p}};
                c.current !== h && (g.shape.__points = c.next), s.stopAnimation(), ju(s, g, u), l && (l.setShape({
                    points: h,
                    stackedOnPoints: d
                }), l.stopAnimation(), ju(l, {shape: {stackedOnPoints: f}}, u), s.shape.points !== l.shape.points && (l.shape.points = s.shape.points));
                for (var m = [], y = c.status, v = 0; v < y.length; v++) {
                    if ("=" === y[v].cmd) {
                        var _ = t.getItemGraphicEl(y[v].idx1);
                        _ && m.push({el: _, ptIdx: v})
                    }
                }
                s.animators && s.animators.length && s.animators[0].during((function () {
                    l && l.dirtyShape();
                    for (var t = s.shape.__points, e = 0; e < m.length; e++) {
                        var n = m[e].el, i = 2 * m[e].ptIdx;
                        n.x = t[i], n.y = t[i + 1], n.markRedraw()
                    }
                }))
            }, e.prototype.remove = function (t) {
                var e = this.group, n = this._data;
                this._lineGroup.removeAll(), this._symbolDraw.remove(!0), n && n.eachItemGraphicEl((function (t, i) {
                    t.__temp && (e.remove(t), n.setItemGraphicEl(i, null))
                })), this._polyline = this._polygon = this._coordSys = this._points = this._stackedOnPoints = this._endLabel = this._data = null
            }, e.type = "line", e
        }(jm);
        const AA = SA;

        function bA(t, e) {
            return {
                seriesType: t, plan: Bf(), reset: function (t) {
                    var n = t.getData(), i = t.coordinateSystem, r = t.pipelineContext, o = e || r.large;
                    if (i) {
                        var a = yt(i.dimensions, (function (t) {
                            return n.mapDimension(t)
                        })).slice(0, 2), s = a.length, l = n.getCalculationInfo("stackResultDimension");
                        kS(n, a[0]) && (a[0] = l), kS(n, a[1]) && (a[1] = l);
                        var u = n.getStore(), c = n.getDimensionIndex(a[0]), h = n.getDimensionIndex(a[1]);
                        return s && {
                            progress: function (t, e) {
                                for (var n = t.end - t.start, r = o && JS(n * s), a = [], l = [], d = t.start, p = 0; d < t.end; d++) {
                                    var f = void 0;
                                    if (1 === s) {
                                        var g = u.get(c, d);
                                        f = i.dataToPoint(g, null, l)
                                    } else a[0] = u.get(c, d), a[1] = u.get(h, d), f = i.dataToPoint(a, null, l);
                                    o ? (r[p++] = f[0], r[p++] = f[1]) : e.setItemLayout(d, f.slice())
                                }
                                o && e.setLayout("points", r)
                            }
                        }
                    }
                }
            }
        }

        var IA = {
            average: function (t) {
                for (var e = 0, n = 0, i = 0; i < t.length; i++) isNaN(t[i]) || (e += t[i], n++);
                return 0 === n ? NaN : e / n
            }, sum: function (t) {
                for (var e = 0, n = 0; n < t.length; n++) e += t[n] || 0;
                return e
            }, max: function (t) {
                for (var e = -1 / 0, n = 0; n < t.length; n++) t[n] > e && (e = t[n]);
                return isFinite(e) ? e : NaN
            }, min: function (t) {
                for (var e = 1 / 0, n = 0; n < t.length; n++) t[n] < e && (e = t[n]);
                return isFinite(e) ? e : NaN
            }, nearest: function (t) {
                return t[0]
            }
        }, EA = function (t) {
            return Math.round(t.length / 2)
        };

        function CA(t) {
            return {
                seriesType: t, reset: function (t, e, n) {
                    var i = t.getData(), r = t.get("sampling"), o = t.coordinateSystem, a = i.count();
                    if (a > 10 && "cartesian2d" === o.type && r) {
                        var s = o.getBaseAxis(), l = o.getOtherAxis(s), u = s.getExtent(), c = n.getDevicePixelRatio(),
                            h = Math.abs(u[1] - u[0]) * (c || 1), d = Math.round(a / h);
                        if (isFinite(d) && d > 1) {
                            "lttb" === r && t.setData(i.lttbDownSample(i.mapDimension(l.dim), 1 / d));
                            var p = void 0;
                            It(r) ? p = IA[r] : bt(r) && (p = r), p && t.setData(i.downSample(i.mapDimension(l.dim), 1 / d, p, EA))
                        }
                    }
                }
            }
        }

        var DA = "__ec_stack_";

        function wA(t) {
            return t.get("stack") || DA + t.seriesIndex
        }

        function MA(t) {
            return t.dim + t.index
        }

        function NA(t, e) {
            var n = [];
            return e.eachSeriesByType(t, (function (t) {
                PA(t) && n.push(t)
            })), n
        }

        function OA(t) {
            var e = function (t) {
                var e = {};
                mt(t, (function (t) {
                    var n = t.coordinateSystem.getBaseAxis();
                    if ("time" === n.type || "value" === n.type) for (var i = t.getData(), r = n.dim + "_" + n.index, o = i.getDimensionIndex(i.mapDimension(n.dim)), a = i.getStore(), s = 0, l = a.count(); s < l; ++s) {
                        var u = a.get(o, s);
                        e[r] ? e[r].push(u) : e[r] = [u]
                    }
                }));
                var n = {};
                for (var i in e) if (e.hasOwnProperty(i)) {
                    var r = e[i];
                    if (r) {
                        r.sort((function (t, e) {
                            return t - e
                        }));
                        for (var o = null, a = 1; a < r.length; ++a) {
                            var s = r[a] - r[a - 1];
                            s > 0 && (o = null === o ? s : Math.min(o, s))
                        }
                        n[i] = o
                    }
                }
                return n
            }(t), n = [];
            return mt(t, (function (t) {
                var i, r = t.coordinateSystem.getBaseAxis(), o = r.getExtent();
                if ("category" === r.type) i = r.getBandWidth(); else if ("value" === r.type || "time" === r.type) {
                    var a = r.dim + "_" + r.index, s = e[a], l = Math.abs(o[1] - o[0]), u = r.scale.getExtent(),
                        c = Math.abs(u[1] - u[0]);
                    i = s ? l / c * s : l
                } else {
                    var h = t.getData();
                    i = Math.abs(o[1] - o[0]) / h.count()
                }
                var d = wo(t.get("barWidth"), i), p = wo(t.get("barMaxWidth"), i),
                    f = wo(t.get("barMinWidth") || (GA(t) ? .5 : 1), i), g = t.get("barGap"),
                    m = t.get("barCategoryGap");
                n.push({
                    bandWidth: i,
                    barWidth: d,
                    barMaxWidth: p,
                    barMinWidth: f,
                    barGap: g,
                    barCategoryGap: m,
                    axisKey: MA(r),
                    stackId: wA(t)
                })
            })), LA(n)
        }

        function LA(t) {
            var e = {};
            mt(t, (function (t, n) {
                var i = t.axisKey, r = t.bandWidth, o = e[i] || {
                    bandWidth: r,
                    remainedWidth: r,
                    autoWidthCount: 0,
                    categoryGap: null,
                    gap: "20%",
                    stacks: {}
                }, a = o.stacks;
                e[i] = o;
                var s = t.stackId;
                a[s] || o.autoWidthCount++, a[s] = a[s] || {width: 0, maxWidth: 0};
                var l = t.barWidth;
                l && !a[s].width && (a[s].width = l, l = Math.min(o.remainedWidth, l), o.remainedWidth -= l);
                var u = t.barMaxWidth;
                u && (a[s].maxWidth = u);
                var c = t.barMinWidth;
                c && (a[s].minWidth = c);
                var h = t.barGap;
                null != h && (o.gap = h);
                var d = t.barCategoryGap;
                null != d && (o.categoryGap = d)
            }));
            var n = {};
            return mt(e, (function (t, e) {
                n[e] = {};
                var i = t.stacks, r = t.bandWidth, o = t.categoryGap;
                if (null == o) {
                    var a = Tt(i).length;
                    o = Math.max(35 - 4 * a, 15) + "%"
                }
                var s = wo(o, r), l = wo(t.gap, 1), u = t.remainedWidth, c = t.autoWidthCount,
                    h = (u - s) / (c + (c - 1) * l);
                h = Math.max(h, 0), mt(i, (function (t) {
                    var e = t.maxWidth, n = t.minWidth;
                    if (t.width) {
                        i = t.width;
                        e && (i = Math.min(i, e)), n && (i = Math.max(i, n)), t.width = i, u -= i + l * i, c--
                    } else {
                        var i = h;
                        e && e < i && (i = Math.min(e, u)), n && n > i && (i = n), i !== h && (t.width = i, u -= i + l * i, c--)
                    }
                })), h = (u - s) / (c + (c - 1) * l), h = Math.max(h, 0);
                var d, p = 0;
                mt(i, (function (t, e) {
                    t.width || (t.width = h), d = t, p += t.width * (1 + l)
                })), d && (p -= d.width * l);
                var f = -p / 2;
                mt(i, (function (t, i) {
                    n[e][i] = n[e][i] || {bandWidth: r, offset: f, width: t.width}, f += t.width * (1 + l)
                }))
            })), n
        }

        function RA(t, e) {
            var n = NA(t, e), i = OA(n);
            mt(n, (function (t) {
                var e = t.getData(), n = t.coordinateSystem.getBaseAxis(), r = wA(t), o = i[MA(n)][r], a = o.offset,
                    s = o.width;
                e.setLayout({bandWidth: o.bandWidth, offset: a, size: s})
            }))
        }

        function kA(t) {
            return {
                seriesType: t, plan: Bf(), reset: function (t) {
                    if (PA(t)) {
                        var e = t.getData(), n = t.coordinateSystem, i = n.getBaseAxis(), r = n.getOtherAxis(i),
                            o = e.getDimensionIndex(e.mapDimension(r.dim)),
                            a = e.getDimensionIndex(e.mapDimension(i.dim)), s = t.get("showBackground", !0),
                            l = e.mapDimension(r.dim), u = e.getCalculationInfo("stackResultDimension"),
                            c = kS(e, l) && !!e.getCalculationInfo("stackedOnSeries"), h = r.isHorizontal(),
                            d = function (t, e) {
                                return e.toGlobalCoord(e.dataToCoord("log" === e.type ? 1 : 0))
                            }(0, r), p = GA(t), f = t.get("barMinHeight") || 0, g = u && e.getDimensionIndex(u),
                            m = e.getLayout("size"), y = e.getLayout("offset");
                        return {
                            progress: function (t, e) {
                                for (var i, r = t.count, l = p && JS(3 * r), u = p && s && JS(3 * r), v = p && JS(r), _ = n.master.getRect(), T = h ? _.width : _.height, x = e.getStore(), S = 0; null != (i = t.next());) {
                                    var A = x.get(c ? g : o, i), b = x.get(a, i), I = d, E = void 0;
                                    c && (E = +A - x.get(o, i));
                                    var C = void 0, D = void 0, w = void 0, M = void 0;
                                    if (h) {
                                        var N = n.dataToPoint([A, b]);
                                        if (c) I = n.dataToPoint([E, b])[0];
                                        C = I, D = N[1] + y, w = N[0] - I, M = m, Math.abs(w) < f && (w = (w < 0 ? -1 : 1) * f)
                                    } else {
                                        N = n.dataToPoint([b, A]);
                                        if (c) I = n.dataToPoint([b, E])[1];
                                        C = N[0] + y, D = I, w = m, M = N[1] - I, Math.abs(M) < f && (M = (M <= 0 ? -1 : 1) * f)
                                    }
                                    p ? (l[S] = C, l[S + 1] = D, l[S + 2] = h ? w : M, u && (u[S] = h ? _.x : C, u[S + 1] = h ? D : _.y, u[S + 2] = T), v[i] = i) : e.setItemLayout(i, {
                                        x: C,
                                        y: D,
                                        width: w,
                                        height: M
                                    }), S += 3
                                }
                                p && e.setLayout({
                                    largePoints: l,
                                    largeDataIndices: v,
                                    largeBackgroundPoints: u,
                                    valueAxisHorizontal: h
                                })
                            }
                        }
                    }
                }
            }
        }

        function PA(t) {
            return t.coordinateSystem && "cartesian2d" === t.coordinateSystem.type
        }

        function GA(t) {
            return t.pipelineContext && t.pipelineContext.large
        }

        var BA = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.getInitialData = function (t, e) {
                return GS(null, this, {useEncodeDefaulter: !0})
            }, e.prototype.getMarkerPosition = function (t, e, n) {
                var i = this.coordinateSystem;
                if (i && i.clampData) {
                    var r = i.clampData(t), o = i.dataToPoint(r);
                    if (n) mt(i.getAxes(), (function (t, n) {
                        if ("category" === t.type && null != e) {
                            var i = t.getTicksCoords(), a = r[n], s = "x1" === e[n] || "y1" === e[n];
                            if (s && (a += 1), i.length < 2) return;
                            if (2 === i.length) return void (o[n] = t.toGlobalCoord(t.getExtent()[s ? 1 : 0]));
                            for (var l = void 0, u = void 0, c = 1, h = 0; h < i.length; h++) {
                                var d = i[h].coord, p = h === i.length - 1 ? i[h - 1].tickValue + c : i[h].tickValue;
                                if (p === a) {
                                    u = d;
                                    break
                                }
                                if (p < a) l = d; else if (null != l && p > a) {
                                    u = (d + l) / 2;
                                    break
                                }
                                1 === h && (c = p - i[0].tickValue)
                            }
                            null == u && (l ? l && (u = i[i.length - 1].coord) : u = i[0].coord), o[n] = t.toGlobalCoord(u)
                        }
                    })); else {
                        var a = this.getData(), s = a.getLayout("offset"), l = a.getLayout("size"),
                            u = i.getBaseAxis().isHorizontal() ? 0 : 1;
                        o[u] += s + l / 2
                    }
                    return o
                }
                return [NaN, NaN]
            }, e.type = "series.__base_bar__", e.defaultOption = {
                z: 2,
                coordinateSystem: "cartesian2d",
                legendHoverLink: !0,
                barMinHeight: 0,
                barMinAngle: 0,
                large: !1,
                largeThreshold: 400,
                progressive: 3e3,
                progressiveChunkMode: "mod"
            }, e
        }(kf);
        kf.registerClass(BA);
        const FA = BA;
        const HA = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.getInitialData = function () {
                return GS(null, this, {
                    useEncodeDefaulter: !0,
                    createInvertedIndices: !!this.get("realtimeSort", !0) || null
                })
            }, e.prototype.getProgressive = function () {
                return !!this.get("large") && this.get("progressive")
            }, e.prototype.getProgressiveThreshold = function () {
                var t = this.get("progressiveThreshold"), e = this.get("largeThreshold");
                return e > t && (t = e), t
            }, e.prototype.brushSelector = function (t, e, n) {
                return n.rect(e.getItemLayout(t))
            }, e.type = "series.bar", e.dependencies = ["grid", "polar"], e.defaultOption = Oc(FA.defaultOption, {
                clip: !0,
                roundCap: !1,
                showBackground: !1,
                backgroundStyle: {
                    color: "rgba(180, 180, 180, 0.2)",
                    borderColor: null,
                    borderWidth: 0,
                    borderType: "solid",
                    borderRadius: 0,
                    shadowBlur: 0,
                    shadowColor: null,
                    shadowOffsetX: 0,
                    shadowOffsetY: 0,
                    opacity: 1
                },
                select: {itemStyle: {borderColor: "#212121"}},
                realtimeSort: !1
            }), e
        }(FA);
        var UA = function () {
            this.cx = 0, this.cy = 0, this.r0 = 0, this.r = 0, this.startAngle = 0, this.endAngle = 2 * Math.PI, this.clockwise = !0
        }, VA = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n.type = "sausage", n
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new UA
            }, e.prototype.buildPath = function (t, e) {
                var n = e.cx, i = e.cy, r = Math.max(e.r0 || 0, 0), o = Math.max(e.r, 0), a = .5 * (o - r), s = r + a,
                    l = e.startAngle, u = e.endAngle, c = e.clockwise, h = 2 * Math.PI, d = c ? u - l < h : l - u < h;
                d || (l = u - (c ? h : -h));
                var p = Math.cos(l), f = Math.sin(l), g = Math.cos(u), m = Math.sin(u);
                d ? (t.moveTo(p * r + n, f * r + i), t.arc(p * s + n, f * s + i, a, -Math.PI + l, l, !c)) : t.moveTo(p * o + n, f * o + i), t.arc(n, i, o, l, u, !c), t.arc(g * s + n, m * s + i, a, u - 2 * Math.PI, u - Math.PI, !c), 0 !== r && t.arc(n, i, r, u, l, c)
            }, e
        }(ll);
        const zA = VA;

        function WA(t, e, n) {
            return e * Math.sin(t) * (n ? -1 : 1)
        }

        function YA(t, e, n) {
            return e * Math.cos(t) * (n ? 1 : -1)
        }

        function qA(t, e, n) {
            var i = t.get("borderRadius");
            if (null == i) return n ? {cornerRadius: 0} : null;
            At(i) || (i = [i, i, i, i]);
            var r = Math.abs(e.r || 0 - e.r0 || 0);
            return {
                cornerRadius: yt(i, (function (t) {
                    return ao(t, r)
                }))
            }
        }

        var jA = Math.max, XA = Math.min;
        var ZA = function (t) {
            function e() {
                var n = t.call(this) || this;
                return n.type = e.type, n._isFirstFrame = !0, n
            }

            return G(e, t), e.prototype.render = function (t, e, n, i) {
                this._model = t, this._removeOnRenderedListener(n), this._updateDrawMode(t);
                var r = t.get("coordinateSystem");
                ("cartesian2d" === r || "polar" === r) && (this._progressiveEls = null, this._isLargeDraw ? this._renderLarge(t, e, n) : this._renderNormal(t, e, n, i))
            }, e.prototype.incrementalPrepareRender = function (t) {
                this._clear(), this._updateDrawMode(t), this._updateLargeClip(t)
            }, e.prototype.incrementalRender = function (t, e) {
                this._progressiveEls = [], this._incrementalRenderLarge(t, e)
            }, e.prototype.eachRendered = function (t) {
                Bm(this._progressiveEls || this.group, t)
            }, e.prototype._updateDrawMode = function (t) {
                var e = t.pipelineContext.large;
                null != this._isLargeDraw && e === this._isLargeDraw || (this._isLargeDraw = e, this._clear())
            }, e.prototype._renderNormal = function (t, e, n, i) {
                var r, o = this.group, a = t.getData(), s = this._data, l = t.coordinateSystem, u = l.getBaseAxis();
                "cartesian2d" === l.type ? r = u.isHorizontal() : "polar" === l.type && (r = "angle" === u.dim);
                var c = t.isAnimationEnabled() ? t : null, h = function (t, e) {
                    var n = t.get("realtimeSort", !0), i = e.getBaseAxis();
                    0;
                    if (n && "category" === i.type && "cartesian2d" === e.type) return {
                        baseAxis: i,
                        otherAxis: e.getOtherAxis(i)
                    }
                }(t, l);
                h && this._enableRealtimeSort(h, a, n);
                var d = t.get("clip", !0) || h, p = function (t, e) {
                    var n = t.getArea && t.getArea();
                    if (hA(t, "cartesian2d")) {
                        var i = t.getBaseAxis();
                        if ("category" !== i.type || !i.onBand) {
                            var r = e.getLayout("bandWidth");
                            i.isHorizontal() ? (n.x -= r, n.width += 2 * r) : (n.y -= r, n.height += 2 * r)
                        }
                    }
                    return n
                }(l, a);
                o.removeClipPath();
                var f = t.get("roundCap", !0), g = t.get("showBackground", !0), m = t.getModel("backgroundStyle"),
                    y = m.get("borderRadius") || 0, v = [], _ = this._backgroundEls, T = i && i.isInitSort,
                    x = i && "changeAxisOrder" === i.type;

                function S(t) {
                    var e = ib[l.type](a, t), n = function (t, e, n) {
                        var i = "polar" === t.type ? Eg : Al;
                        return new i({shape: cb(e, n, t), silent: !0, z2: 0})
                    }(l, r, e);
                    return n.useStyle(m.getItemStyle()), "cartesian2d" === l.type ? n.setShape("r", y) : n.setShape("cornerRadius", y), v[t] = n, n
                }

                a.diff(s).add((function (e) {
                    var n = a.getItemModel(e), i = ib[l.type](a, e, n);
                    if (g && S(e), a.hasValue(e) && nb[l.type](i)) {
                        var s = !1;
                        d && (s = KA[l.type](p, i));
                        var m = QA[l.type](t, a, e, i, r, c, u.model, !1, f);
                        h && (m.forceLabelAnimation = !0), ob(m, a, e, n, i, t, r, "polar" === l.type), T ? m.attr({shape: i}) : h ? $A(h, c, m, i, e, r, !1, !1) : Xu(m, {shape: i}, t, e), a.setItemGraphicEl(e, m), o.add(m), m.ignore = s
                    }
                })).update((function (e, n) {
                    var i = a.getItemModel(e), A = ib[l.type](a, e, i);
                    if (g) {
                        var b = void 0;
                        0 === _.length ? b = S(n) : ((b = _[n]).useStyle(m.getItemStyle()), "cartesian2d" === l.type ? b.setShape("r", y) : b.setShape("cornerRadius", y), v[e] = b);
                        var I = ib[l.type](a, e);
                        ju(b, {shape: cb(r, I, l)}, c, e)
                    }
                    var E = s.getItemGraphicEl(n);
                    if (a.hasValue(e) && nb[l.type](A)) {
                        var C = !1;
                        if (d && (C = KA[l.type](p, A)) && o.remove(E), E ? Ju(E) : E = QA[l.type](t, a, e, A, r, c, u.model, !!E, f), h && (E.forceLabelAnimation = !0), x) {
                            var D = E.getTextContent();
                            if (D) {
                                var w = dc(D);
                                null != w.prevValue && (w.prevValue = w.value)
                            }
                        } else ob(E, a, e, i, A, t, r, "polar" === l.type);
                        T ? E.attr({shape: A}) : h ? $A(h, c, E, A, e, r, !0, x) : ju(E, {shape: A}, t, e, null), a.setItemGraphicEl(e, E), E.ignore = C, o.add(E)
                    } else o.remove(E)
                })).remove((function (e) {
                    var n = s.getItemGraphicEl(e);
                    n && $u(n, t, e)
                })).execute();
                var A = this._backgroundGroup || (this._backgroundGroup = new xo);
                A.removeAll();
                for (var b = 0; b < v.length; ++b) A.add(v[b]);
                o.add(A), this._backgroundEls = v, this._data = a
            }, e.prototype._renderLarge = function (t, e, n) {
                this._clear(), lb(t, this.group), this._updateLargeClip(t)
            }, e.prototype._incrementalRenderLarge = function (t, e) {
                this._removeBackground(), lb(e, this.group, this._progressiveEls, !0)
            }, e.prototype._updateLargeClip = function (t) {
                var e = t.get("clip", !0) && cA(t.coordinateSystem, !1, t), n = this.group;
                e ? n.setClipPath(e) : n.removeClipPath()
            }, e.prototype._enableRealtimeSort = function (t, e, n) {
                var i = this;
                if (e.count()) {
                    var r = t.baseAxis;
                    if (this._isFirstFrame) this._dispatchInitSort(e, t, n), this._isFirstFrame = !1; else {
                        var o = function (t) {
                            var n = e.getItemGraphicEl(t), i = n && n.shape;
                            return i && Math.abs(r.isHorizontal() ? i.height : i.width) || 0
                        };
                        this._onRendered = function () {
                            i._updateSortWithinSameData(e, o, r, n)
                        }, n.getZr().on("rendered", this._onRendered)
                    }
                }
            }, e.prototype._dataSort = function (t, e, n) {
                var i = [];
                return t.each(t.mapDimension(e.dim), (function (t, e) {
                    var r = n(e);
                    r = null == r ? NaN : r, i.push({dataIndex: e, mappedValue: r, ordinalNumber: t})
                })), i.sort((function (t, e) {
                    return e.mappedValue - t.mappedValue
                })), {
                    ordinalNumbers: yt(i, (function (t) {
                        return t.ordinalNumber
                    }))
                }
            }, e.prototype._isOrderChangedWithinSameData = function (t, e, n) {
                for (var i = n.scale, r = t.mapDimension(n.dim), o = Number.MAX_VALUE, a = 0, s = i.getOrdinalMeta().categories.length; a < s; ++a) {
                    var l = t.rawIndexOf(r, i.getRawOrdinalNumber(a)),
                        u = l < 0 ? Number.MIN_VALUE : e(t.indexOfRawIndex(l));
                    if (u > o) return !0;
                    o = u
                }
                return !1
            }, e.prototype._isOrderDifferentInView = function (t, e) {
                for (var n = e.scale, i = n.getExtent(), r = Math.max(0, i[0]), o = Math.min(i[1], n.getOrdinalMeta().categories.length - 1); r <= o; ++r) if (t.ordinalNumbers[r] !== n.getRawOrdinalNumber(r)) return !0
            }, e.prototype._updateSortWithinSameData = function (t, e, n, i) {
                if (this._isOrderChangedWithinSameData(t, e, n)) {
                    var r = this._dataSort(t, n, e);
                    this._isOrderDifferentInView(r, n) && (this._removeOnRenderedListener(i), i.dispatchAction({
                        type: "changeAxisOrder",
                        componentType: n.dim + "Axis",
                        axisId: n.index,
                        sortInfo: r
                    }))
                }
            }, e.prototype._dispatchInitSort = function (t, e, n) {
                var i = e.baseAxis, r = this._dataSort(t, i, (function (n) {
                    return t.get(t.mapDimension(e.otherAxis.dim), n)
                }));
                n.dispatchAction({
                    type: "changeAxisOrder",
                    componentType: i.dim + "Axis",
                    isInitSort: !0,
                    axisId: i.index,
                    sortInfo: r
                })
            }, e.prototype.remove = function (t, e) {
                this._clear(this._model), this._removeOnRenderedListener(e)
            }, e.prototype.dispose = function (t, e) {
                this._removeOnRenderedListener(e)
            }, e.prototype._removeOnRenderedListener = function (t) {
                this._onRendered && (t.getZr().off("rendered", this._onRendered), this._onRendered = null)
            }, e.prototype._clear = function (t) {
                var e = this.group, n = this._data;
                t && t.isAnimationEnabled() && n && !this._isLargeDraw ? (this._removeBackground(), this._backgroundEls = [], n.eachItemGraphicEl((function (e) {
                    $u(e, t, Hl(e).dataIndex)
                }))) : e.removeAll(), this._data = null, this._isFirstFrame = !0
            }, e.prototype._removeBackground = function () {
                this.group.remove(this._backgroundGroup), this._backgroundGroup = null
            }, e.type = "bar", e
        }(jm), KA = {
            cartesian2d: function (t, e) {
                var n = e.width < 0 ? -1 : 1, i = e.height < 0 ? -1 : 1;
                n < 0 && (e.x += e.width, e.width = -e.width), i < 0 && (e.y += e.height, e.height = -e.height);
                var r = t.x + t.width, o = t.y + t.height, a = jA(e.x, t.x), s = XA(e.x + e.width, r), l = jA(e.y, t.y),
                    u = XA(e.y + e.height, o), c = s < a, h = u < l;
                return e.x = c && a > r ? s : a, e.y = h && l > o ? u : l, e.width = c ? 0 : s - a, e.height = h ? 0 : u - l, n < 0 && (e.x += e.width, e.width = -e.width), i < 0 && (e.y += e.height, e.height = -e.height), c || h
            }, polar: function (t, e) {
                var n = e.r0 <= e.r ? 1 : -1;
                if (n < 0) {
                    var i = e.r;
                    e.r = e.r0, e.r0 = i
                }
                var r = XA(e.r, t.r), o = jA(e.r0, t.r0);
                e.r = r, e.r0 = o;
                var a = r - o < 0;
                if (n < 0) {
                    i = e.r;
                    e.r = e.r0, e.r0 = i
                }
                return a
            }
        }, QA = {
            cartesian2d: function (t, e, n, i, r, o, a, s, l) {
                var u = new Al({shape: ht({}, i), z2: 1});
                (u.__dataIndex = n, u.name = "item", o) && (u.shape[r ? "height" : "width"] = 0);
                return u
            }, polar: function (t, e, n, i, r, o, a, s, l) {
                var u = !r && l ? zA : Eg, c = new u({shape: i, z2: 1});
                c.name = "item";
                var h, d, p = rb(r);
                if (c.calculateTextPosition = (h = p, d = ({isRoundCap: u === zA} || {}).isRoundCap, function (t, e, n) {
                    var i = e.position;
                    if (!i || i instanceof Array) return so(t, e, n);
                    var r = h(i), o = null != e.distance ? e.distance : 5, a = this.shape, s = a.cx, l = a.cy, u = a.r,
                        c = a.r0, p = (u + c) / 2, f = a.startAngle, g = a.endAngle, m = (f + g) / 2,
                        y = d ? Math.abs(u - c) / 2 : 0, v = Math.cos, _ = Math.sin, T = s + u * v(f), x = l + u * _(f),
                        S = "left", A = "top";
                    switch (r) {
                        case"startArc":
                            T = s + (c - o) * v(m), x = l + (c - o) * _(m), S = "center", A = "top";
                            break;
                        case"insideStartArc":
                            T = s + (c + o) * v(m), x = l + (c + o) * _(m), S = "center", A = "bottom";
                            break;
                        case"startAngle":
                            T = s + p * v(f) + WA(f, o + y, !1), x = l + p * _(f) + YA(f, o + y, !1), S = "right", A = "middle";
                            break;
                        case"insideStartAngle":
                            T = s + p * v(f) + WA(f, -o + y, !1), x = l + p * _(f) + YA(f, -o + y, !1), S = "left", A = "middle";
                            break;
                        case"middle":
                            T = s + p * v(m), x = l + p * _(m), S = "center", A = "middle";
                            break;
                        case"endArc":
                            T = s + (u + o) * v(m), x = l + (u + o) * _(m), S = "center", A = "bottom";
                            break;
                        case"insideEndArc":
                            T = s + (u - o) * v(m), x = l + (u - o) * _(m), S = "center", A = "top";
                            break;
                        case"endAngle":
                            T = s + p * v(g) + WA(g, o + y, !0), x = l + p * _(g) + YA(g, o + y, !0), S = "left", A = "middle";
                            break;
                        case"insideEndAngle":
                            T = s + p * v(g) + WA(g, -o + y, !0), x = l + p * _(g) + YA(g, -o + y, !0), S = "right", A = "middle";
                            break;
                        default:
                            return so(t, e, n)
                    }
                    return (t = t || {}).x = T, t.y = x, t.align = S, t.verticalAlign = A, t
                }), o) {
                    var f = r ? "r" : "endAngle", g = {};
                    c.shape[f] = r ? i.r0 : i.startAngle, g[f] = i[f], (s ? ju : Xu)(c, {shape: g}, o)
                }
                return c
            }
        };

        function $A(t, e, n, i, r, o, a, s) {
            var l, u;
            o ? (u = {x: i.x, width: i.width}, l = {y: i.y, height: i.height}) : (u = {
                y: i.y,
                height: i.height
            }, l = {
                x: i.x,
                width: i.width
            }), s || (a ? ju : Xu)(n, {shape: l}, e, r, null), (a ? ju : Xu)(n, {shape: u}, e ? t.baseAxis.model : null, r)
        }

        function JA(t, e) {
            for (var n = 0; n < e.length; n++) if (!isFinite(t[e[n]])) return !0;
            return !1
        }

        var tb = ["x", "y", "width", "height"], eb = ["cx", "cy", "r", "startAngle", "endAngle"], nb = {
            cartesian2d: function (t) {
                return !JA(t, tb)
            }, polar: function (t) {
                return !JA(t, eb)
            }
        }, ib = {
            cartesian2d: function (t, e, n) {
                var i = t.getItemLayout(e), r = n ? function (t, e) {
                    var n = t.get(["itemStyle", "borderColor"]);
                    if (!n || "none" === n) return 0;
                    var i = t.get(["itemStyle", "borderWidth"]) || 0,
                        r = isNaN(e.width) ? Number.MAX_VALUE : Math.abs(e.width),
                        o = isNaN(e.height) ? Number.MAX_VALUE : Math.abs(e.height);
                    return Math.min(i, r, o)
                }(n, i) : 0, o = i.width > 0 ? 1 : -1, a = i.height > 0 ? 1 : -1;
                return {x: i.x + o * r / 2, y: i.y + a * r / 2, width: i.width - o * r, height: i.height - a * r}
            }, polar: function (t, e, n) {
                var i = t.getItemLayout(e);
                return {
                    cx: i.cx,
                    cy: i.cy,
                    r0: i.r0,
                    r: i.r,
                    startAngle: i.startAngle,
                    endAngle: i.endAngle,
                    clockwise: i.clockwise
                }
            }
        };

        function rb(t) {
            return function (t) {
                var e = t ? "Arc" : "Angle";
                return function (t) {
                    switch (t) {
                        case"start":
                        case"insideStart":
                        case"end":
                        case"insideEnd":
                            return t + e;
                        default:
                            return t
                    }
                }
            }(t)
        }

        function ob(t, e, n, i, r, o, a, s) {
            var l = e.getItemVisual(n, "style");
            if (s) {
                if (!o.get("roundCap")) {
                    var u = t.shape;
                    ht(u, qA(i.getModel("itemStyle"), u, !0)), t.setShape(u)
                }
            } else {
                var c = i.get(["itemStyle", "borderRadius"]) || 0;
                t.setShape("r", c)
            }
            t.useStyle(l);
            var h = i.getShallow("cursor");
            h && t.attr("cursor", h);
            var d = s ? a ? r.r >= r.r0 ? "endArc" : "startArc" : r.endAngle >= r.startAngle ? "endAngle" : "startAngle" : a ? r.height >= 0 ? "bottom" : "top" : r.width >= 0 ? "right" : "left",
                p = rc(i);
            ic(t, p, {
                labelFetcher: o,
                labelDataIndex: n,
                defaultText: FS(o.getData(), n),
                inheritColor: l.fill,
                defaultOpacity: l.opacity,
                defaultOutsidePosition: d
            });
            var f = t.getTextContent();
            if (s && f) {
                var g = i.get(["label", "position"]);
                t.textConfig.inside = "middle" === g || null, function (t, e, n, i) {
                    if (Ct(i)) t.setTextConfig({rotation: i}); else if (At(e)) t.setTextConfig({rotation: 0}); else {
                        var r, o = t.shape, a = o.clockwise ? o.startAngle : o.endAngle,
                            s = o.clockwise ? o.endAngle : o.startAngle, l = (a + s) / 2, u = n(e);
                        switch (u) {
                            case"startArc":
                            case"insideStartArc":
                            case"middle":
                            case"insideEndArc":
                            case"endArc":
                                r = l;
                                break;
                            case"startAngle":
                            case"insideStartAngle":
                                r = a;
                                break;
                            case"endAngle":
                            case"insideEndAngle":
                                r = s;
                                break;
                            default:
                                return void t.setTextConfig({rotation: 0})
                        }
                        var c = 1.5 * Math.PI - r;
                        "middle" === u && c > Math.PI / 2 && c < 1.5 * Math.PI && (c -= Math.PI), t.setTextConfig({rotation: c})
                    }
                }(t, "outside" === g ? d : g, rb(a), i.get(["label", "rotate"]))
            }
            pc(f, p, o.getRawValue(n), (function (t) {
                return HS(e, t)
            }));
            var m = i.getModel(["emphasis"]);
            ku(t, m.get("focus"), m.get("blurScope"), m.get("disabled")), Fu(t, i), function (t) {
                return null != t.startAngle && null != t.endAngle && t.startAngle === t.endAngle
            }(r) && (t.style.fill = "none", t.style.stroke = "none", mt(t.states, (function (t) {
                t.style && (t.style.fill = t.style.stroke = "none")
            })))
        }

        var ab = function () {
        }, sb = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n.type = "largeBar", n
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new ab
            }, e.prototype.buildPath = function (t, e) {
                for (var n = e.points, i = this.baseDimIdx, r = 1 - this.baseDimIdx, o = [], a = [], s = this.barWidth, l = 0; l < n.length; l += 3) a[i] = s, a[r] = n[l + 2], o[i] = n[l + i], o[r] = n[l + r], t.rect(o[0], o[1], a[0], a[1])
            }, e
        }(ll);

        function lb(t, e, n, i) {
            var r = t.getData(), o = r.getLayout("valueAxisHorizontal") ? 1 : 0, a = r.getLayout("largeDataIndices"),
                s = r.getLayout("size"), l = t.getModel("backgroundStyle"), u = r.getLayout("largeBackgroundPoints");
            if (u) {
                var c = new sb({shape: {points: u}, incremental: !!i, silent: !0, z2: 0});
                c.baseDimIdx = o, c.largeDataIndices = a, c.barWidth = s, c.useStyle(l.getItemStyle()), e.add(c), n && n.push(c)
            }
            var h = new sb({
                shape: {points: r.getLayout("largePoints")},
                incremental: !!i,
                ignoreCoarsePointer: !0,
                z2: 1
            });
            h.baseDimIdx = o, h.largeDataIndices = a, h.barWidth = s, e.add(h), h.useStyle(r.getVisual("style")), Hl(h).seriesIndex = t.seriesIndex, t.get("silent") || (h.on("mousedown", ub), h.on("mousemove", ub)), n && n.push(h)
        }

        var ub = Qm((function (t) {
            var e = function (t, e, n) {
                for (var i = t.baseDimIdx, r = 1 - i, o = t.shape.points, a = t.largeDataIndices, s = [], l = [], u = t.barWidth, c = 0, h = o.length / 3; c < h; c++) {
                    var d = 3 * c;
                    if (l[i] = u, l[r] = o[d + 2], s[i] = o[d + i], s[r] = o[d + r], l[r] < 0 && (s[r] += l[r], l[r] = -l[r]), e >= s[0] && e <= s[0] + l[0] && n >= s[1] && n <= s[1] + l[1]) return a[c]
                }
                return -1
            }(this, t.offsetX, t.offsetY);
            Hl(this).dataIndex = e >= 0 ? e : null
        }), 30, !1);

        function cb(t, e, n) {
            if (hA(n, "cartesian2d")) {
                var i = e, r = n.getArea();
                return {
                    x: t ? i.x : r.x,
                    y: t ? r.y : i.y,
                    width: t ? i.width : r.width,
                    height: t ? r.height : i.height
                }
            }
            var o = e;
            return {
                cx: (r = n.getArea()).cx,
                cy: r.cy,
                r0: t ? r.r0 : o.r0,
                r: t ? r.r : o.r,
                startAngle: t ? o.startAngle : 0,
                endAngle: t ? o.endAngle : 2 * Math.PI
            }
        }

        const hb = ZA;
        var db = 2 * Math.PI, pb = Math.PI / 180;

        function fb(t, e) {
            return Nh(t.getBoxLayoutParams(), {width: e.getWidth(), height: e.getHeight()})
        }

        function gb(t, e) {
            var n = fb(t, e), i = t.get("center"), r = t.get("radius");
            At(r) || (r = [0, r]);
            var o, a, s = wo(n.width, e.getWidth()), l = wo(n.height, e.getHeight()), u = Math.min(s, l),
                c = wo(r[0], u / 2), h = wo(r[1], u / 2), d = t.coordinateSystem;
            if (d) {
                var p = d.dataToPoint(i);
                o = p[0] || 0, a = p[1] || 0
            } else At(i) || (i = [i, i]), o = wo(i[0], s) + n.x, a = wo(i[1], l) + n.y;
            return {cx: o, cy: a, r0: c, r: h}
        }

        function mb(t, e, n) {
            e.eachSeriesByType(t, (function (t) {
                var e = t.getData(), i = e.mapDimension("value"), r = fb(t, n), o = gb(t, n), a = o.cx, s = o.cy,
                    l = o.r, u = o.r0, c = -t.get("startAngle") * pb, h = t.get("minAngle") * pb, d = 0;
                e.each(i, (function (t) {
                    !isNaN(t) && d++
                }));
                var p = e.getSum(i), f = Math.PI / (p || d) * 2, g = t.get("clockwise"), m = t.get("roseType"),
                    y = t.get("stillShowZeroSum"), v = e.getDataExtent(i);
                v[0] = 0;
                var _ = db, T = 0, x = c, S = g ? 1 : -1;
                if (e.setLayout({viewRect: r, r: l}), e.each(i, (function (t, n) {
                    var i;
                    if (isNaN(t)) e.setItemLayout(n, {
                        angle: NaN,
                        startAngle: NaN,
                        endAngle: NaN,
                        clockwise: g,
                        cx: a,
                        cy: s,
                        r0: u,
                        r: m ? NaN : l
                    }); else {
                        (i = "area" !== m ? 0 === p && y ? f : t * f : db / d) < h ? (i = h, _ -= h) : T += t;
                        var r = x + S * i;
                        e.setItemLayout(n, {
                            angle: i,
                            startAngle: x,
                            endAngle: r,
                            clockwise: g,
                            cx: a,
                            cy: s,
                            r0: u,
                            r: m ? Do(t, v, [u, l]) : l
                        }), x = r
                    }
                })), _ < db && d) if (_ <= .001) {
                    var A = db / d;
                    e.each(i, (function (t, n) {
                        if (!isNaN(t)) {
                            var i = e.getItemLayout(n);
                            i.angle = A, i.startAngle = c + S * n * A, i.endAngle = c + S * (n + 1) * A
                        }
                    }))
                } else f = _ / T, x = c, e.each(i, (function (t, n) {
                    if (!isNaN(t)) {
                        var i = e.getItemLayout(n), r = i.angle === h ? h : t * f;
                        i.startAngle = x, i.endAngle = x + S * r, x += S * r
                    }
                }))
            }))
        }

        function yb(t) {
            return {
                seriesType: t, reset: function (t, e) {
                    var n = e.findComponents({mainType: "legend"});
                    if (n && n.length) {
                        var i = t.getData();
                        i.filterSelf((function (t) {
                            for (var e = i.getName(t), r = 0; r < n.length; r++) if (!n[r].isSelected(e)) return !1;
                            return !0
                        }))
                    }
                }
            }
        }

        var vb = Math.PI / 180;

        function _b(t, e, n, i, r, o, a, s, l, u) {
            if (!(t.length < 2)) {
                for (var c = t.length, h = 0; h < c; h++) if ("outer" === t[h].position && "labelLine" === t[h].labelAlignTo) {
                    var d = t[h].label.x - u;
                    t[h].linePoints[1][0] += d, t[h].label.x = u
                }
                vT(t, l, l + a) && function (t) {
                    for (var o = {list: [], maxY: 0}, a = {
                        list: [],
                        maxY: 0
                    }, s = 0; s < t.length; s++) if ("none" === t[s].labelAlignTo) {
                        var l = t[s], u = l.label.y > n ? a : o, c = Math.abs(l.label.y - n);
                        if (c >= u.maxY) {
                            var h = l.label.x - e - l.len2 * r, d = i + l.len,
                                f = Math.abs(h) < d ? Math.sqrt(c * c / (1 - h * h / d / d)) : d;
                            u.rB = f, u.maxY = c
                        }
                        u.list.push(l)
                    }
                    p(o), p(a)
                }(t)
            }

            function p(t) {
                for (var o = t.rB, a = o * o, s = 0; s < t.list.length; s++) {
                    var l = t.list[s], u = Math.abs(l.label.y - n), c = i + l.len, h = c * c,
                        d = Math.sqrt((1 - Math.abs(u * u / a)) * h), p = e + (d + l.len2) * r, f = p - l.label.x;
                    Tb(l, l.targetTextWidth - f * r, !0), l.label.x = p
                }
            }
        }

        function Tb(t, e, n) {
            if (void 0 === n && (n = !1), null == t.labelStyleWidth) {
                var i = t.label, r = i.style, o = t.rect, a = r.backgroundColor, s = r.padding, l = s ? s[1] + s[3] : 0,
                    u = r.overflow, c = o.width + (a ? 0 : l);
                if (e < c || n) {
                    var h = o.height;
                    if (u && u.match("break")) {
                        i.setStyle("backgroundColor", null), i.setStyle("width", e - l);
                        var d = i.getBoundingRect();
                        i.setStyle("width", Math.ceil(d.width)), i.setStyle("backgroundColor", a)
                    } else {
                        var p = e - l, f = e < c ? p : n ? p > t.unconstrainedWidth ? null : p : null;
                        i.setStyle("width", f)
                    }
                    var g = i.getBoundingRect();
                    o.width = g.width;
                    var m = (i.style.margin || 0) + 2.1;
                    o.height = g.height + m, o.y -= (o.height - h) / 2
                }
            }
        }

        function xb(t) {
            return "center" === t.position
        }

        function Sb(t) {
            var e, n, i = t.getData(), r = [], o = !1, a = (t.get("minShowLabelAngle") || 0) * vb,
                s = i.getLayout("viewRect"), l = i.getLayout("r"), u = s.width, c = s.x, h = s.y, d = s.height;

            function p(t) {
                t.ignore = !0
            }

            i.each((function (t) {
                var s = i.getItemGraphicEl(t), h = s.shape, d = s.getTextContent(), f = s.getTextGuideLine(),
                    g = i.getItemModel(t), m = g.getModel("label"),
                    y = m.get("position") || g.get(["emphasis", "label", "position"]), v = m.get("distanceToLabelLine"),
                    _ = m.get("alignTo"), T = wo(m.get("edgeDistance"), u), x = m.get("bleedMargin"),
                    S = g.getModel("labelLine"), A = S.get("length");
                A = wo(A, u);
                var b = S.get("length2");
                if (b = wo(b, u), Math.abs(h.endAngle - h.startAngle) < a) return mt(d.states, p), d.ignore = !0, void (f && (mt(f.states, p), f.ignore = !0));
                if (function (t) {
                    if (!t.ignore) return !0;
                    for (var e in t.states) if (!1 === t.states[e].ignore) return !0;
                    return !1
                }(d)) {
                    var I, E, C, D, w = (h.startAngle + h.endAngle) / 2, M = Math.cos(w), N = Math.sin(w);
                    e = h.cx, n = h.cy;
                    var O = "inside" === y || "inner" === y;
                    if ("center" === y) I = h.cx, E = h.cy, D = "center"; else {
                        var L = (O ? (h.r + h.r0) / 2 * M : h.r * M) + e, R = (O ? (h.r + h.r0) / 2 * N : h.r * N) + n;
                        if (I = L + 3 * M, E = R + 3 * N, !O) {
                            var k = L + M * (A + l - h.r), P = R + N * (A + l - h.r), G = k + (M < 0 ? -1 : 1) * b;
                            I = "edge" === _ ? M < 0 ? c + T : c + u - T : G + (M < 0 ? -v : v), E = P, C = [[L, R], [k, P], [G, P]]
                        }
                        D = O ? "center" : "edge" === _ ? M > 0 ? "right" : "left" : M > 0 ? "left" : "right"
                    }
                    var B = Math.PI, F = 0, H = m.get("rotate");
                    if (Ct(H)) F = H * (B / 180); else if ("center" === y) F = 0; else if ("radial" === H || !0 === H) {
                        F = M < 0 ? -w + B : -w
                    } else if ("tangential" === H && "outside" !== y && "outer" !== y) {
                        var U = Math.atan2(M, N);
                        U < 0 && (U = 2 * B + U), N > 0 && (U = B + U), F = U - B
                    }
                    if (o = !!F, d.x = I, d.y = E, d.rotation = F, d.setStyle({verticalAlign: "middle"}), O) {
                        d.setStyle({align: D});
                        var V = d.states.select;
                        V && (V.x += d.x, V.y += d.y)
                    } else {
                        var z = d.getBoundingRect().clone();
                        z.applyTransform(d.getComputedTransform());
                        var W = (d.style.margin || 0) + 2.1;
                        z.y -= W / 2, z.height += W, r.push({
                            label: d,
                            labelLine: f,
                            position: y,
                            len: A,
                            len2: b,
                            minTurnAngle: S.get("minTurnAngle"),
                            maxSurfaceAngle: S.get("maxSurfaceAngle"),
                            surfaceNormal: new tn(M, N),
                            linePoints: C,
                            textAlign: D,
                            labelDistance: v,
                            labelAlignTo: _,
                            edgeDistance: T,
                            bleedMargin: x,
                            rect: z,
                            unconstrainedWidth: z.width,
                            labelStyleWidth: d.style.width
                        })
                    }
                    s.setTextConfig({inside: O})
                }
            })), !o && t.get("avoidLabelOverlap") && function (t, e, n, i, r, o, a, s) {
                for (var l = [], u = [], c = Number.MAX_VALUE, h = -Number.MAX_VALUE, d = 0; d < t.length; d++) {
                    var p = t[d].label;
                    xb(t[d]) || (p.x < e ? (c = Math.min(c, p.x), l.push(t[d])) : (h = Math.max(h, p.x), u.push(t[d])))
                }
                for (d = 0; d < t.length; d++) if (!xb(m = t[d]) && m.linePoints) {
                    if (null != m.labelStyleWidth) continue;
                    p = m.label;
                    var f = m.linePoints, g = void 0;
                    g = "edge" === m.labelAlignTo ? p.x < e ? f[2][0] - m.labelDistance - a - m.edgeDistance : a + r - m.edgeDistance - f[2][0] - m.labelDistance : "labelLine" === m.labelAlignTo ? p.x < e ? c - a - m.bleedMargin : a + r - h - m.bleedMargin : p.x < e ? p.x - a - m.bleedMargin : a + r - p.x - m.bleedMargin, m.targetTextWidth = g, Tb(m, g)
                }
                for (_b(u, e, n, i, 1, 0, o, 0, s, h), _b(l, e, n, i, -1, 0, o, 0, s, c), d = 0; d < t.length; d++) {
                    var m;
                    if (!xb(m = t[d]) && m.linePoints) {
                        p = m.label, f = m.linePoints;
                        var y = "edge" === m.labelAlignTo, v = p.style.padding, _ = v ? v[1] + v[3] : 0,
                            T = p.style.backgroundColor ? 0 : _, x = m.rect.width + T, S = f[1][0] - f[2][0];
                        y ? p.x < e ? f[2][0] = a + m.edgeDistance + x + m.labelDistance : f[2][0] = a + r - m.edgeDistance - x - m.labelDistance : (p.x < e ? f[2][0] = p.x + m.labelDistance : f[2][0] = p.x - m.labelDistance, f[1][0] = f[2][0] + S), f[1][1] = f[2][1] = p.y
                    }
                }
            }(r, e, n, l, u, d, c, h);
            for (var f = 0; f < r.length; f++) {
                var g = r[f], m = g.label, y = g.labelLine, v = isNaN(m.x) || isNaN(m.y);
                if (m) {
                    m.setStyle({align: g.textAlign}), v && (mt(m.states, p), m.ignore = !0);
                    var _ = m.states.select;
                    _ && (_.x += m.x, _.y += m.y)
                }
                if (y) {
                    var T = g.linePoints;
                    v || !T ? (mt(y.states, p), y.ignore = !0) : (cT(T, g.minTurnAngle), hT(T, g.surfaceNormal, g.maxSurfaceAngle), y.setShape({points: T}), m.__hostTarget.textGuideLineConfig = {anchor: new tn(T[0][0], T[0][1])})
                }
            }
        }

        var Ab = function (t) {
            function e(e, n, i) {
                var r = t.call(this) || this;
                r.z2 = 2;
                var o = new Fl;
                return r.setTextContent(o), r.updateData(e, n, i, !0), r
            }

            return G(e, t), e.prototype.updateData = function (t, e, n, i) {
                var r = this, o = t.hostModel, a = t.getItemModel(e), s = a.getModel("emphasis"),
                    l = t.getItemLayout(e), u = ht(qA(a.getModel("itemStyle"), l, !0), l);
                if (isNaN(u.startAngle)) r.setShape(u); else {
                    if (i) {
                        r.setShape(u);
                        var c = o.getShallow("animationType");
                        o.ecModel.ssr ? (Xu(r, {scaleX: 0, scaleY: 0}, o, {
                            dataIndex: e,
                            isFrom: !0
                        }), r.originX = u.cx, r.originY = u.cy) : "scale" === c ? (r.shape.r = l.r0, Xu(r, {shape: {r: l.r}}, o, e)) : null != n ? (r.setShape({
                            startAngle: n,
                            endAngle: n
                        }), Xu(r, {
                            shape: {
                                startAngle: l.startAngle,
                                endAngle: l.endAngle
                            }
                        }, o, e)) : (r.shape.endAngle = l.startAngle, ju(r, {shape: {endAngle: l.endAngle}}, o, e))
                    } else Ju(r), ju(r, {shape: u}, o, e);
                    r.useStyle(t.getItemVisual(e, "style")), Fu(r, a);
                    var h = (l.startAngle + l.endAngle) / 2, d = o.get("selectedOffset"), p = Math.cos(h) * d,
                        f = Math.sin(h) * d, g = a.getShallow("cursor");
                    g && r.attr("cursor", g), this._updateLabel(o, t, e), r.ensureState("emphasis").shape = ht({r: l.r + (s.get("scale") && s.get("scaleSize") || 0)}, qA(s.getModel("itemStyle"), l)), ht(r.ensureState("select"), {
                        x: p,
                        y: f,
                        shape: qA(a.getModel(["select", "itemStyle"]), l)
                    }), ht(r.ensureState("blur"), {shape: qA(a.getModel(["blur", "itemStyle"]), l)});
                    var m = r.getTextGuideLine(), y = r.getTextContent();
                    m && ht(m.ensureState("select"), {x: p, y: f}), ht(y.ensureState("select"), {
                        x: p,
                        y: f
                    }), ku(this, s.get("focus"), s.get("blurScope"), s.get("disabled"))
                }
            }, e.prototype._updateLabel = function (t, e, n) {
                var i = this, r = e.getItemModel(n), o = r.getModel("labelLine"), a = e.getItemVisual(n, "style"),
                    s = a && a.fill, l = a && a.opacity;
                ic(i, rc(r), {
                    labelFetcher: e.hostModel,
                    labelDataIndex: n,
                    inheritColor: s,
                    defaultOpacity: l,
                    defaultText: t.getFormattedLabel(n, "normal") || e.getName(n)
                });
                var u = i.getTextContent();
                i.setTextConfig({position: null, rotation: null}), u.attr({z2: 10});
                var c = t.get(["label", "position"]);
                if ("outside" !== c && "outer" !== c) i.removeTextGuideLine(); else {
                    var h = this.getTextGuideLine();
                    h || (h = new Pg, this.setTextGuideLine(h)), fT(this, gT(r), {
                        stroke: s,
                        opacity: Pt(o.get(["lineStyle", "opacity"]), l, 1)
                    })
                }
            }, e
        }(Eg);
        const bb = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.ignoreLabelLineUpdate = !0, e
            }

            return G(e, t), e.prototype.render = function (t, e, n, i) {
                var r, o = t.getData(), a = this._data, s = this.group;
                if (!a && o.count() > 0) {
                    for (var l = o.getItemLayout(0), u = 1; isNaN(l && l.startAngle) && u < o.count(); ++u) l = o.getItemLayout(u);
                    l && (r = l.startAngle)
                }
                if (this._emptyCircleSector && s.remove(this._emptyCircleSector), 0 === o.count() && t.get("showEmptyCircle")) {
                    var c = new Eg({shape: gb(t, n)});
                    c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()), this._emptyCircleSector = c, s.add(c)
                }
                o.diff(a).add((function (t) {
                    var e = new Ab(o, t, r);
                    o.setItemGraphicEl(t, e), s.add(e)
                })).update((function (t, e) {
                    var n = a.getItemGraphicEl(e);
                    n.updateData(o, t, r), n.off("click"), s.add(n), o.setItemGraphicEl(t, n)
                })).remove((function (e) {
                    $u(a.getItemGraphicEl(e), t, e)
                })).execute(), Sb(t), "expansion" !== t.get("animationTypeUpdate") && (this._data = o)
            }, e.prototype.dispose = function () {
            }, e.prototype.containPoint = function (t, e) {
                var n = e.getData().getItemLayout(0);
                if (n) {
                    var i = t[0] - n.cx, r = t[1] - n.cy, o = Math.sqrt(i * i + r * r);
                    return o <= n.r && o >= n.r0
                }
            }, e.type = "pie", e
        }(jm);

        function Ib(t, e, n) {
            e = At(e) && {coordDimensions: e} || ht({encodeDefine: t.getEncode()}, e);
            var i = t.getSource(), r = wS(i, e).dimensions, o = new DS(r, t);
            return o.initData(i, n), o
        }

        var Eb = function () {
            function t(t, e) {
                this._getDataWithEncodedVisual = t, this._getRawData = e
            }

            return t.prototype.getAllNames = function () {
                var t = this._getRawData();
                return t.mapArray(t.getName)
            }, t.prototype.containName = function (t) {
                return this._getRawData().indexOfName(t) >= 0
            }, t.prototype.indexOfName = function (t) {
                return this._getDataWithEncodedVisual().indexOfName(t)
            }, t.prototype.getItemVisual = function (t, e) {
                return this._getDataWithEncodedVisual().getItemVisual(t, e)
            }, t
        }();
        const Cb = Eb;
        var Db = ha();
        const wb = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.init = function (e) {
                t.prototype.init.apply(this, arguments), this.legendVisualProvider = new Cb(xt(this.getData, this), xt(this.getRawData, this)), this._defaultLabelLine(e)
            }, e.prototype.mergeOption = function () {
                t.prototype.mergeOption.apply(this, arguments)
            }, e.prototype.getInitialData = function () {
                return Ib(this, {coordDimensions: ["value"], encodeDefaulter: St(ed, this)})
            }, e.prototype.getDataParams = function (e) {
                var n = this.getData(), i = Db(n), r = i.seats;
                if (!r) {
                    var o = [];
                    n.each(n.mapDimension("value"), (function (t) {
                        o.push(t)
                    })), r = i.seats = Ro(o, n.hostModel.get("percentPrecision"))
                }
                var a = t.prototype.getDataParams.call(this, e);
                return a.percent = r[e] || 0, a.$vars.push("percent"), a
            }, e.prototype._defaultLabelLine = function (t) {
                ta(t, "labelLine", ["show"]);
                var e = t.labelLine, n = t.emphasis.labelLine;
                e.show = e.show && t.label.show, n.show = n.show && t.emphasis.label.show
            }, e.type = "series.pie", e.defaultOption = {
                z: 2,
                legendHoverLink: !0,
                colorBy: "data",
                center: ["50%", "50%"],
                radius: [0, "75%"],
                clockwise: !0,
                startAngle: 90,
                minAngle: 0,
                minShowLabelAngle: 0,
                selectedOffset: 10,
                percentPrecision: 2,
                stillShowZeroSum: !0,
                left: 0,
                top: 0,
                right: 0,
                bottom: 0,
                width: null,
                height: null,
                label: {
                    rotate: 0,
                    show: !0,
                    overflow: "truncate",
                    position: "outer",
                    alignTo: "none",
                    edgeDistance: "25%",
                    bleedMargin: 10,
                    distanceToLabelLine: 5
                },
                labelLine: {
                    show: !0,
                    length: 15,
                    length2: 15,
                    smooth: !1,
                    minTurnAngle: 90,
                    maxSurfaceAngle: 90,
                    lineStyle: {width: 1, type: "solid"}
                },
                itemStyle: {borderWidth: 1, borderJoin: "round"},
                showEmptyCircle: !0,
                emptyCircleStyle: {color: "lightgray", opacity: 1},
                labelLayout: {hideOverlap: !0},
                emphasis: {scale: !0, scaleSize: 5},
                avoidLabelOverlap: !0,
                animationType: "expansion",
                animationDuration: 1e3,
                animationTypeUpdate: "transition",
                animationEasingUpdate: "cubicInOut",
                animationDurationUpdate: 500,
                animationEasing: "cubicInOut"
            }, e
        }(kf);
        const Mb = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.hasSymbolVisual = !0, n
            }

            return G(e, t), e.prototype.getInitialData = function (t, e) {
                return GS(null, this, {useEncodeDefaulter: !0})
            }, e.prototype.getProgressive = function () {
                var t = this.option.progressive;
                return null == t ? this.option.large ? 5e3 : this.get("progressive") : t
            }, e.prototype.getProgressiveThreshold = function () {
                var t = this.option.progressiveThreshold;
                return null == t ? this.option.large ? 1e4 : this.get("progressiveThreshold") : t
            }, e.prototype.brushSelector = function (t, e, n) {
                return n.point(e.getItemLayout(t))
            }, e.prototype.getZLevelKey = function () {
                return this.getData().count() > this.getProgressiveThreshold() ? this.id : ""
            }, e.type = "series.scatter", e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], e.defaultOption = {
                coordinateSystem: "cartesian2d",
                z: 2,
                legendHoverLink: !0,
                symbolSize: 10,
                large: !1,
                largeThreshold: 2e3,
                itemStyle: {opacity: .8},
                emphasis: {scale: !0},
                clip: !0,
                select: {itemStyle: {borderColor: "#212121"}},
                universalTransition: {divideShape: "clone"}
            }, e
        }(kf);
        var Nb = function () {
        }, Ob = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n._off = 0, n.hoverDataIdx = -1, n
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new Nb
            }, e.prototype.reset = function () {
                this.notClear = !1, this._off = 0
            }, e.prototype.buildPath = function (t, e) {
                var n, i = e.points, r = e.size, o = this.symbolProxy, a = o.shape,
                    s = t.getContext ? t.getContext() : t, l = s && r[0] < 4, u = this.softClipShape;
                if (l) this._ctx = s; else {
                    for (this._ctx = null, n = this._off; n < i.length;) {
                        var c = i[n++], h = i[n++];
                        isNaN(c) || isNaN(h) || (u && !u.contain(c, h) || (a.x = c - r[0] / 2, a.y = h - r[1] / 2, a.width = r[0], a.height = r[1], o.buildPath(t, a, !0)))
                    }
                    this.incremental && (this._off = n, this.notClear = !0)
                }
            }, e.prototype.afterBrush = function () {
                var t, e = this.shape, n = e.points, i = e.size, r = this._ctx, o = this.softClipShape;
                if (r) {
                    for (t = this._off; t < n.length;) {
                        var a = n[t++], s = n[t++];
                        isNaN(a) || isNaN(s) || (o && !o.contain(a, s) || r.fillRect(a - i[0] / 2, s - i[1] / 2, i[0], i[1]))
                    }
                    this.incremental && (this._off = t, this.notClear = !0)
                }
            }, e.prototype.findDataIndex = function (t, e) {
                for (var n = this.shape, i = n.points, r = n.size, o = Math.max(r[0], 4), a = Math.max(r[1], 4), s = i.length / 2 - 1; s >= 0; s--) {
                    var l = 2 * s, u = i[l] - o / 2, c = i[l + 1] - a / 2;
                    if (t >= u && e >= c && t <= u + o && e <= c + a) return s
                }
                return -1
            }, e.prototype.contain = function (t, e) {
                var n = this.transformCoordToLocal(t, e), i = this.getBoundingRect();
                return t = n[0], e = n[1], i.contain(t, e) ? (this.hoverDataIdx = this.findDataIndex(t, e)) >= 0 : (this.hoverDataIdx = -1, !1)
            }, e.prototype.getBoundingRect = function () {
                var t = this._rect;
                if (!t) {
                    for (var e = this.shape, n = e.points, i = e.size, r = i[0], o = i[1], a = 1 / 0, s = 1 / 0, l = -1 / 0, u = -1 / 0, c = 0; c < n.length;) {
                        var h = n[c++], d = n[c++];
                        a = Math.min(h, a), l = Math.max(h, l), s = Math.min(d, s), u = Math.max(d, u)
                    }
                    t = this._rect = new hn(a - r / 2, s - o / 2, l - a + r, u - s + o)
                }
                return t
            }, e
        }(ll), Lb = function () {
            function t() {
                this.group = new xo
            }

            return t.prototype.updateData = function (t, e) {
                this._clear();
                var n = this._create();
                n.setShape({points: t.getLayout("points")}), this._setCommon(n, t, e)
            }, t.prototype.updateLayout = function (t) {
                var e = t.getLayout("points");
                this.group.eachChild((function (t) {
                    if (null != t.startIndex) {
                        var n = 2 * (t.endIndex - t.startIndex), i = 4 * t.startIndex * 2;
                        e = new Float32Array(e.buffer, i, n)
                    }
                    t.setShape("points", e), t.reset()
                }))
            }, t.prototype.incrementalPrepareUpdate = function (t) {
                this._clear()
            }, t.prototype.incrementalUpdate = function (t, e, n) {
                var i = this._newAdded[0], r = e.getLayout("points"), o = i && i.shape.points;
                if (o && o.length < 2e4) {
                    var a = o.length, s = new Float32Array(a + r.length);
                    s.set(o), s.set(r, a), i.endIndex = t.end, i.setShape({points: s})
                } else {
                    this._newAdded = [];
                    var l = this._create();
                    l.startIndex = t.start, l.endIndex = t.end, l.incremental = !0, l.setShape({points: r}), this._setCommon(l, e, n)
                }
            }, t.prototype.eachRendered = function (t) {
                this._newAdded[0] && t(this._newAdded[0])
            }, t.prototype._create = function () {
                var t = new Ob({cursor: "default"});
                return t.ignoreCoarsePointer = !0, this.group.add(t), this._newAdded.push(t), t
            }, t.prototype._setCommon = function (t, e, n) {
                var i = e.hostModel;
                n = n || {};
                var r = e.getVisual("symbolSize");
                t.setShape("size", r instanceof Array ? r : [r, r]), t.softClipShape = n.clipShape || null, t.symbolProxy = iv(e.getVisual("symbol"), 0, 0, 0, 0), t.setColor = t.symbolProxy.setColor;
                var o = t.shape.size[0] < 4;
                t.useStyle(i.getModel("itemStyle").getItemStyle(o ? ["color", "shadowBlur", "shadowColor"] : ["color"]));
                var a = e.getVisual("style"), s = a && a.fill;
                s && t.setColor(s);
                var l = Hl(t);
                l.seriesIndex = i.seriesIndex, t.on("mousemove", (function (e) {
                    l.dataIndex = null;
                    var n = t.hoverDataIdx;
                    n >= 0 && (l.dataIndex = n + (t.startIndex || 0))
                }))
            }, t.prototype.remove = function () {
                this._clear()
            }, t.prototype._clear = function () {
                this._newAdded = [], this.group.removeAll()
            }, t
        }();
        const Rb = Lb;
        const kb = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i = t.getData();
                this._updateSymbolDraw(i, t).updateData(i, {clipShape: this._getClipShape(t)}), this._finished = !0
            }, e.prototype.incrementalPrepareRender = function (t, e, n) {
                var i = t.getData();
                this._updateSymbolDraw(i, t).incrementalPrepareUpdate(i), this._finished = !1
            }, e.prototype.incrementalRender = function (t, e, n) {
                this._symbolDraw.incrementalUpdate(t, e.getData(), {clipShape: this._getClipShape(e)}), this._finished = t.end === e.getData().count()
            }, e.prototype.updateTransform = function (t, e, n) {
                var i = t.getData();
                if (this.group.dirty(), !this._finished || i.count() > 1e4) return {update: !0};
                var r = bA("").reset(t, e, n);
                r.progress && r.progress({
                    start: 0,
                    end: i.count(),
                    count: i.count()
                }, i), this._symbolDraw.updateLayout(i)
            }, e.prototype.eachRendered = function (t) {
                this._symbolDraw && this._symbolDraw.eachRendered(t)
            }, e.prototype._getClipShape = function (t) {
                var e = t.coordinateSystem, n = e && e.getArea && e.getArea();
                return t.get("clip", !0) ? n : null
            }, e.prototype._updateSymbolDraw = function (t, e) {
                var n = this._symbolDraw, i = e.pipelineContext.large;
                return n && i === this._isLargeDraw || (n && n.remove(), n = this._symbolDraw = i ? new Rb : new XS, this._isLargeDraw = i, this.group.removeAll()), this.group.add(n.group), n
            }, e.prototype.remove = function (t, e) {
                this._symbolDraw && this._symbolDraw.remove(!0), this._symbolDraw = null
            }, e.prototype.dispose = function () {
            }, e.type = "scatter", e
        }(jm);
        const Pb = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.type = "grid", e.dependencies = ["xAxis", "yAxis"], e.layoutMode = "box", e.defaultOption = {
                show: !1,
                z: 0,
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 70,
                containLabel: !1,
                backgroundColor: "rgba(0,0,0,0)",
                borderWidth: 1,
                borderColor: "#ccc"
            }, e
        }(Fh);
        var Gb = function () {
            function t() {
            }

            return t.prototype.getNeedCrossZero = function () {
                return !this.option.scale
            }, t.prototype.getCoordSysModel = function () {
            }, t
        }(), Bb = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.getCoordSysModel = function () {
                return this.getReferringComponents("grid", ga).models[0]
            }, e.type = "cartesian2dAxis", e
        }(Fh);
        ft(Bb, Gb);
        var Fb = {
            show: !0,
            z: 0,
            inverse: !1,
            name: "",
            nameLocation: "end",
            nameRotate: null,
            nameTruncate: {maxWidth: null, ellipsis: "...", placeholder: "."},
            nameTextStyle: {},
            nameGap: 15,
            silent: !1,
            triggerEvent: !1,
            tooltip: {show: !1},
            axisPointer: {},
            axisLine: {
                show: !0,
                onZero: !0,
                onZeroAxisIndex: null,
                lineStyle: {color: "#6E7079", width: 1, type: "solid"},
                symbol: ["none", "none"],
                symbolSize: [10, 15]
            },
            axisTick: {show: !0, inside: !1, length: 5, lineStyle: {width: 1}},
            axisLabel: {
                show: !0,
                inside: !1,
                rotate: 0,
                showMinLabel: null,
                showMaxLabel: null,
                margin: 8,
                fontSize: 12
            },
            splitLine: {show: !0, lineStyle: {color: ["#E0E6F1"], width: 1, type: "solid"}},
            splitArea: {show: !1, areaStyle: {color: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]}}
        }, Hb = ut({
            boundaryGap: !0,
            deduplication: null,
            splitLine: {show: !1},
            axisTick: {alignWithLabel: !1, interval: "auto"},
            axisLabel: {interval: "auto"}
        }, Fb), Ub = ut({
            boundaryGap: [0, 0],
            axisLine: {show: "auto"},
            axisTick: {show: "auto"},
            splitNumber: 5,
            minorTick: {show: !1, splitNumber: 5, length: 3, lineStyle: {}},
            minorSplitLine: {show: !1, lineStyle: {color: "#F4F7FD", width: 1}}
        }, Fb);
        const Vb = {
            category: Hb,
            value: Ub,
            time: ut({
                splitNumber: 6,
                axisLabel: {showMinLabel: !1, showMaxLabel: !1, rich: {primary: {fontWeight: "bold"}}},
                splitLine: {show: !1}
            }, Ub),
            log: dt({logBase: 10}, Ub)
        };
        var zb = 0;

        function Wb(t) {
            return Dt(t) && null != t.value ? t.value : t + ""
        }

        const Yb = function () {
            function t(t) {
                this.categories = t.categories || [], this._needCollect = t.needCollect, this._deduplication = t.deduplication, this.uid = ++zb
            }

            return t.createByAxisModel = function (e) {
                var n = e.option, i = n.data, r = i && yt(i, Wb);
                return new t({categories: r, needCollect: !r, deduplication: !1 !== n.dedplication})
            }, t.prototype.getOrdinal = function (t) {
                return this._getOrCreateMap().get(t)
            }, t.prototype.parseAndCollect = function (t) {
                var e, n = this._needCollect;
                if (!It(t) && !n) return t;
                if (n && !this._deduplication) return e = this.categories.length, this.categories[e] = t, e;
                var i = this._getOrCreateMap();
                return null == (e = i.get(t)) && (n ? (e = this.categories.length, this.categories[e] = t, i.set(t, e)) : e = NaN), e
            }, t.prototype._getOrCreateMap = function () {
                return this._map || (this._map = jt(this.categories))
            }, t
        }();
        var qb = {value: 1, category: 1, time: 1, log: 1};

        function jb(t, e, n, i) {
            mt(qb, (function (r, o) {
                var a = ut(ut({}, Vb[o], !0), i, !0), s = function (t) {
                    function n() {
                        var n = null !== t && t.apply(this, arguments) || this;
                        return n.type = e + "Axis." + o, n
                    }

                    return G(n, t), n.prototype.mergeDefaultAndTheme = function (t, e) {
                        var n = Lh(this), i = n ? kh(t) : {};
                        ut(t, e.getTheme().get(o + "Axis")), ut(t, this.getDefaultOption()), t.type = Xb(t), n && Rh(t, i, n)
                    }, n.prototype.optionUpdated = function () {
                        "category" === this.option.type && (this.__ordinalMeta = Yb.createByAxisModel(this))
                    }, n.prototype.getCategories = function (t) {
                        var e = this.option;
                        if ("category" === e.type) return t ? e.data : this.__ordinalMeta.categories
                    }, n.prototype.getOrdinalMeta = function () {
                        return this.__ordinalMeta
                    }, n.type = e + "Axis." + o, n.defaultOption = a, n
                }(n);
                t.registerComponentModel(s)
            })), t.registerSubTypeDefaulter(e + "Axis", Xb)
        }

        function Xb(t) {
            return t.type || (t.data ? "category" : "value")
        }

        var Zb = function () {
            function t(t) {
                this._setting = t || {}, this._extent = [1 / 0, -1 / 0]
            }

            return t.prototype.getSetting = function (t) {
                return this._setting[t]
            }, t.prototype.unionExtent = function (t) {
                var e = this._extent;
                t[0] < e[0] && (e[0] = t[0]), t[1] > e[1] && (e[1] = t[1])
            }, t.prototype.unionExtentFromData = function (t, e) {
                this.unionExtent(t.getApproximateExtent(e))
            }, t.prototype.getExtent = function () {
                return this._extent.slice()
            }, t.prototype.setExtent = function (t, e) {
                var n = this._extent;
                isNaN(t) || (n[0] = t), isNaN(e) || (n[1] = e)
            }, t.prototype.isInExtentRange = function (t) {
                return this._extent[0] <= t && this._extent[1] >= t
            }, t.prototype.isBlank = function () {
                return this._isBlank
            }, t.prototype.setBlank = function (t) {
                this._isBlank = t
            }, t
        }();
        Ma(Zb);
        const Kb = Zb;

        function Qb(t) {
            return "interval" === t.type || "log" === t.type
        }

        function $b(t, e, n, i) {
            var r = {}, o = t[1] - t[0], a = r.interval = Vo(o / e, !0);
            null != n && a < n && (a = r.interval = n), null != i && a > i && (a = r.interval = i);
            var s = r.intervalPrecision = tI(a);
            return function (t, e) {
                !isFinite(t[0]) && (t[0] = e[0]), !isFinite(t[1]) && (t[1] = e[1]), eI(t, 0, e), eI(t, 1, e), t[0] > t[1] && (t[0] = t[1])
            }(r.niceTickExtent = [Mo(Math.ceil(t[0] / a) * a, s), Mo(Math.floor(t[1] / a) * a, s)], t), r
        }

        function Jb(t) {
            var e = Math.pow(10, Uo(t)), n = t / e;
            return n ? 2 === n ? n = 3 : 3 === n ? n = 5 : n *= 2 : n = 1, Mo(n * e)
        }

        function tI(t) {
            return Oo(t) + 2
        }

        function eI(t, e, n) {
            t[e] = Math.max(Math.min(t[e], n[1]), n[0])
        }

        function nI(t, e) {
            return t >= e[0] && t <= e[1]
        }

        function iI(t, e) {
            return e[1] === e[0] ? .5 : (t - e[0]) / (e[1] - e[0])
        }

        function rI(t, e) {
            return t * (e[1] - e[0]) + e[0]
        }

        var oI = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                n.type = "ordinal";
                var i = n.getSetting("ordinalMeta");
                return i || (i = new Yb({})), At(i) && (i = new Yb({
                    categories: yt(i, (function (t) {
                        return Dt(t) ? t.value : t
                    }))
                })), n._ordinalMeta = i, n._extent = n.getSetting("extent") || [0, i.categories.length - 1], n
            }

            return G(e, t), e.prototype.parse = function (t) {
                return null == t ? NaN : It(t) ? this._ordinalMeta.getOrdinal(t) : Math.round(t)
            }, e.prototype.contain = function (t) {
                return nI(t = this.parse(t), this._extent) && null != this._ordinalMeta.categories[t]
            }, e.prototype.normalize = function (t) {
                return iI(t = this._getTickNumber(this.parse(t)), this._extent)
            }, e.prototype.scale = function (t) {
                return t = Math.round(rI(t, this._extent)), this.getRawOrdinalNumber(t)
            }, e.prototype.getTicks = function () {
                for (var t = [], e = this._extent, n = e[0]; n <= e[1];) t.push({value: n}), n++;
                return t
            }, e.prototype.getMinorTicks = function (t) {
            }, e.prototype.setSortInfo = function (t) {
                if (null != t) {
                    for (var e = t.ordinalNumbers, n = this._ordinalNumbersByTick = [], i = this._ticksByOrdinalNumber = [], r = 0, o = this._ordinalMeta.categories.length, a = Math.min(o, e.length); r < a; ++r) {
                        var s = e[r];
                        n[r] = s, i[s] = r
                    }
                    for (var l = 0; r < o; ++r) {
                        for (; null != i[l];) l++;
                        n.push(l), i[l] = r
                    }
                } else this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null
            }, e.prototype._getTickNumber = function (t) {
                var e = this._ticksByOrdinalNumber;
                return e && t >= 0 && t < e.length ? e[t] : t
            }, e.prototype.getRawOrdinalNumber = function (t) {
                var e = this._ordinalNumbersByTick;
                return e && t >= 0 && t < e.length ? e[t] : t
            }, e.prototype.getLabel = function (t) {
                if (!this.isBlank()) {
                    var e = this.getRawOrdinalNumber(t.value), n = this._ordinalMeta.categories[e];
                    return null == n ? "" : n + ""
                }
            }, e.prototype.count = function () {
                return this._extent[1] - this._extent[0] + 1
            }, e.prototype.unionExtentFromData = function (t, e) {
                this.unionExtent(t.getApproximateExtent(e))
            }, e.prototype.isInExtentRange = function (t) {
                return t = this._getTickNumber(t), this._extent[0] <= t && this._extent[1] >= t
            }, e.prototype.getOrdinalMeta = function () {
                return this._ordinalMeta
            }, e.prototype.calcNiceTicks = function () {
            }, e.prototype.calcNiceExtent = function () {
            }, e.type = "ordinal", e
        }(Kb);
        Kb.registerClass(oI);
        const aI = oI;
        var sI = Mo, lI = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.type = "interval", e._interval = 0, e._intervalPrecision = 2, e
            }

            return G(e, t), e.prototype.parse = function (t) {
                return t
            }, e.prototype.contain = function (t) {
                return nI(t, this._extent)
            }, e.prototype.normalize = function (t) {
                return iI(t, this._extent)
            }, e.prototype.scale = function (t) {
                return rI(t, this._extent)
            }, e.prototype.setExtent = function (t, e) {
                var n = this._extent;
                isNaN(t) || (n[0] = parseFloat(t)), isNaN(e) || (n[1] = parseFloat(e))
            }, e.prototype.unionExtent = function (t) {
                var e = this._extent;
                t[0] < e[0] && (e[0] = t[0]), t[1] > e[1] && (e[1] = t[1]), this.setExtent(e[0], e[1])
            }, e.prototype.getInterval = function () {
                return this._interval
            }, e.prototype.setInterval = function (t) {
                this._interval = t, this._niceExtent = this._extent.slice(), this._intervalPrecision = tI(t)
            }, e.prototype.getTicks = function (t) {
                var e = this._interval, n = this._extent, i = this._niceExtent, r = this._intervalPrecision, o = [];
                if (!e) return o;
                n[0] < i[0] && (t ? o.push({value: sI(i[0] - e, r)}) : o.push({value: n[0]}));
                for (var a = i[0]; a <= i[1] && (o.push({value: a}), (a = sI(a + e, r)) !== o[o.length - 1].value);) if (o.length > 1e4) return [];
                var s = o.length ? o[o.length - 1].value : i[1];
                return n[1] > s && (t ? o.push({value: sI(s + e, r)}) : o.push({value: n[1]})), o
            }, e.prototype.getMinorTicks = function (t) {
                for (var e = this.getTicks(!0), n = [], i = this.getExtent(), r = 1; r < e.length; r++) {
                    for (var o = e[r], a = e[r - 1], s = 0, l = [], u = (o.value - a.value) / t; s < t - 1;) {
                        var c = sI(a.value + (s + 1) * u);
                        c > i[0] && c < i[1] && l.push(c), s++
                    }
                    n.push(l)
                }
                return n
            }, e.prototype.getLabel = function (t, e) {
                if (null == t) return "";
                var n = e && e.precision;
                return null == n ? n = Oo(t.value) || 0 : "auto" === n && (n = this._intervalPrecision), yh(sI(t.value, n, !0))
            }, e.prototype.calcNiceTicks = function (t, e, n) {
                t = t || 5;
                var i = this._extent, r = i[1] - i[0];
                if (isFinite(r)) {
                    r < 0 && (r = -r, i.reverse());
                    var o = $b(i, t, e, n);
                    this._intervalPrecision = o.intervalPrecision, this._interval = o.interval, this._niceExtent = o.niceTickExtent
                }
            }, e.prototype.calcNiceExtent = function (t) {
                var e = this._extent;
                if (e[0] === e[1]) if (0 !== e[0]) {
                    var n = Math.abs(e[0]);
                    t.fixMax || (e[1] += n / 2), e[0] -= n / 2
                } else e[1] = 1;
                var i = e[1] - e[0];
                isFinite(i) || (e[0] = 0, e[1] = 1), this.calcNiceTicks(t.splitNumber, t.minInterval, t.maxInterval);
                var r = this._interval;
                t.fixMin || (e[0] = sI(Math.floor(e[0] / r) * r)), t.fixMax || (e[1] = sI(Math.ceil(e[1] / r) * r))
            }, e.prototype.setNiceExtent = function (t, e) {
                this._niceExtent = [t, e]
            }, e.type = "interval", e
        }(Kb);
        Kb.registerClass(lI);
        const uI = lI;
        var cI = function (t) {
                function e(e) {
                    var n = t.call(this, e) || this;
                    return n.type = "time", n
                }

                return G(e, t), e.prototype.getLabel = function (t) {
                    var e = this.getSetting("useUTC");
                    return th(t.value, Xc[function (t) {
                        switch (t) {
                            case"year":
                            case"month":
                                return "day";
                            case"millisecond":
                                return "millisecond";
                            default:
                                return "second"
                        }
                    }($c(this._minLevelUnit))] || Xc.second, e, this.getSetting("locale"))
                }, e.prototype.getFormattedLabel = function (t, e, n) {
                    var i = this.getSetting("useUTC");
                    return function (t, e, n, i, r) {
                        var o = null;
                        if (It(n)) o = n; else if (bt(n)) o = n(t.value, e, {level: t.level}); else {
                            var a = ht({}, qc);
                            if (t.level > 0) for (var s = 0; s < Zc.length; ++s) a[Zc[s]] = "{primary|" + a[Zc[s]] + "}";
                            var l = n ? !1 === n.inherit ? n : dt(n, a) : a, u = eh(t.value, r);
                            if (l[u]) o = l[u]; else if (l.inherit) {
                                for (s = Kc.indexOf(u) - 1; s >= 0; --s) if (l[u]) {
                                    o = l[u];
                                    break
                                }
                                o = o || a.none
                            }
                            if (At(o)) {
                                var c = null == t.level ? 0 : t.level >= 0 ? t.level : o.length + t.level;
                                o = o[c = Math.min(c, o.length - 1)]
                            }
                        }
                        return th(new Date(t.value), o, r, i)
                    }(t, e, n, this.getSetting("locale"), i)
                }, e.prototype.getTicks = function () {
                    var t = this._interval, e = this._extent, n = [];
                    if (!t) return n;
                    n.push({value: e[0], level: 0});
                    var i = this.getSetting("useUTC"), r = function (t, e, n, i) {
                        var r = 1e4, o = Kc, a = 0;

                        function s(t, e, n, r, o, a, s) {
                            for (var l = new Date(e), u = e, c = l[r](); u < n && u <= i[1];) s.push({value: u}), c += t, l[o](c), u = l.getTime();
                            s.push({value: u, notAdd: !0})
                        }

                        function l(t, r, o) {
                            var a = [], l = !r.length;
                            if (!function (t, e, n, i) {
                                var r = Ho(e), o = Ho(n), a = function (t) {
                                    return nh(r, t, i) === nh(o, t, i)
                                }, s = function () {
                                    return a("year")
                                }, l = function () {
                                    return s() && a("month")
                                }, u = function () {
                                    return l() && a("day")
                                }, c = function () {
                                    return u() && a("hour")
                                }, h = function () {
                                    return c() && a("minute")
                                }, d = function () {
                                    return h() && a("second")
                                }, p = function () {
                                    return d() && a("millisecond")
                                };
                                switch (t) {
                                    case"year":
                                        return s();
                                    case"month":
                                        return l();
                                    case"day":
                                        return u();
                                    case"hour":
                                        return c();
                                    case"minute":
                                        return h();
                                    case"second":
                                        return d();
                                    case"millisecond":
                                        return p()
                                }
                            }($c(t), i[0], i[1], n)) {
                                l && (r = [{value: yI(new Date(i[0]), t, n)}, {value: i[1]}]);
                                for (var u = 0; u < r.length - 1; u++) {
                                    var c = r[u].value, h = r[u + 1].value;
                                    if (c !== h) {
                                        var d = void 0, p = void 0, f = void 0, g = !1;
                                        switch (t) {
                                            case"year":
                                                d = Math.max(1, Math.round(e / Wc / 365)), p = ih(n), f = ch(n);
                                                break;
                                            case"half-year":
                                            case"quarter":
                                            case"month":
                                                d = pI(e), p = rh(n), f = hh(n);
                                                break;
                                            case"week":
                                            case"half-week":
                                            case"day":
                                                d = dI(e, 31), p = oh(n), f = dh(n), g = !0;
                                                break;
                                            case"half-day":
                                            case"quarter-day":
                                            case"hour":
                                                d = fI(e), p = ah(n), f = ph(n);
                                                break;
                                            case"minute":
                                                d = gI(e, !0), p = sh(n), f = fh(n);
                                                break;
                                            case"second":
                                                d = gI(e, !1), p = lh(n), f = gh(n);
                                                break;
                                            case"millisecond":
                                                d = mI(e), p = uh(n), f = mh(n)
                                        }
                                        s(d, c, h, p, f, g, a), "year" === t && o.length > 1 && 0 === u && o.unshift({value: o[0].value - d})
                                    }
                                }
                                for (u = 0; u < a.length; u++) o.push(a[u]);
                                return a
                            }
                        }

                        for (var u = [], c = [], h = 0, d = 0, p = 0; p < o.length && a++ < r; ++p) {
                            var f = $c(o[p]);
                            if (Jc(o[p])) if (l(o[p], u[u.length - 1] || [], c), f !== (o[p + 1] ? $c(o[p + 1]) : null)) {
                                if (c.length) {
                                    d = h, c.sort((function (t, e) {
                                        return t.value - e.value
                                    }));
                                    for (var g = [], m = 0; m < c.length; ++m) {
                                        var y = c[m].value;
                                        0 !== m && c[m - 1].value === y || (g.push(c[m]), y >= i[0] && y <= i[1] && h++)
                                    }
                                    var v = (i[1] - i[0]) / e;
                                    if (h > 1.5 * v && d > v / 1.5) break;
                                    if (u.push(g), h > v || t === o[p]) break
                                }
                                c = []
                            }
                        }
                        0;
                        var _ = _t(yt(u, (function (t) {
                            return _t(t, (function (t) {
                                return t.value >= i[0] && t.value <= i[1] && !t.notAdd
                            }))
                        })), (function (t) {
                            return t.length > 0
                        })), T = [], x = _.length - 1;
                        for (p = 0; p < _.length; ++p) for (var S = _[p], A = 0; A < S.length; ++A) T.push({
                            value: S[A].value,
                            level: x - p
                        });
                        T.sort((function (t, e) {
                            return t.value - e.value
                        }));
                        var b = [];
                        for (p = 0; p < T.length; ++p) 0 !== p && T[p].value === T[p - 1].value || b.push(T[p]);
                        return b
                    }(this._minLevelUnit, this._approxInterval, i, e);
                    return (n = n.concat(r)).push({value: e[1], level: 0}), n
                }, e.prototype.calcNiceExtent = function (t) {
                    var e = this._extent;
                    if (e[0] === e[1] && (e[0] -= Wc, e[1] += Wc), e[1] === -1 / 0 && e[0] === 1 / 0) {
                        var n = new Date;
                        e[1] = +new Date(n.getFullYear(), n.getMonth(), n.getDate()), e[0] = e[1] - Wc
                    }
                    this.calcNiceTicks(t.splitNumber, t.minInterval, t.maxInterval)
                }, e.prototype.calcNiceTicks = function (t, e, n) {
                    t = t || 10;
                    var i = this._extent, r = i[1] - i[0];
                    this._approxInterval = r / t, null != e && this._approxInterval < e && (this._approxInterval = e), null != n && this._approxInterval > n && (this._approxInterval = n);
                    var o = hI.length, a = Math.min(function (t, e, n, i) {
                        for (; n < i;) {
                            var r = n + i >>> 1;
                            t[r][1] < e ? n = r + 1 : i = r
                        }
                        return n
                    }(hI, this._approxInterval, 0, o), o - 1);
                    this._interval = hI[a][1], this._minLevelUnit = hI[Math.max(a - 1, 0)][0]
                }, e.prototype.parse = function (t) {
                    return Ct(t) ? t : +Ho(t)
                }, e.prototype.contain = function (t) {
                    return nI(this.parse(t), this._extent)
                }, e.prototype.normalize = function (t) {
                    return iI(this.parse(t), this._extent)
                }, e.prototype.scale = function (t) {
                    return rI(t, this._extent)
                }, e.type = "time", e
            }(uI),
            hI = [["second", Uc], ["minute", Vc], ["hour", zc], ["quarter-day", 6 * zc], ["half-day", 12 * zc], ["day", 1.2 * Wc], ["half-week", 3.5 * Wc], ["week", 7 * Wc], ["month", 31 * Wc], ["quarter", 95 * Wc], ["half-year", Yc / 2], ["year", Yc]];

        function dI(t, e) {
            return (t /= Wc) > 16 ? 16 : t > 7.5 ? 7 : t > 3.5 ? 4 : t > 1.5 ? 2 : 1
        }

        function pI(t) {
            return (t /= 30 * Wc) > 6 ? 6 : t > 3 ? 3 : t > 2 ? 2 : 1
        }

        function fI(t) {
            return (t /= zc) > 12 ? 12 : t > 6 ? 6 : t > 3.5 ? 4 : t > 2 ? 2 : 1
        }

        function gI(t, e) {
            return (t /= e ? Vc : Uc) > 30 ? 30 : t > 20 ? 20 : t > 15 ? 15 : t > 10 ? 10 : t > 5 ? 5 : t > 2 ? 2 : 1
        }

        function mI(t) {
            return Vo(t, !0)
        }

        function yI(t, e, n) {
            var i = new Date(t);
            switch ($c(e)) {
                case"year":
                case"month":
                    i[hh(n)](0);
                case"day":
                    i[dh(n)](1);
                case"hour":
                    i[ph(n)](0);
                case"minute":
                    i[fh(n)](0);
                case"second":
                    i[gh(n)](0), i[mh(n)](0)
            }
            return i.getTime()
        }

        Kb.registerClass(cI);
        const vI = cI;
        var _I = Kb.prototype, TI = uI.prototype, xI = Mo, SI = Math.floor, AI = Math.ceil, bI = Math.pow,
            II = Math.log, EI = function (t) {
                function e() {
                    var e = null !== t && t.apply(this, arguments) || this;
                    return e.type = "log", e.base = 10, e._originalScale = new uI, e._interval = 0, e
                }

                return G(e, t), e.prototype.getTicks = function (t) {
                    var e = this._originalScale, n = this._extent, i = e.getExtent();
                    return yt(TI.getTicks.call(this, t), (function (t) {
                        var e = t.value, r = Mo(bI(this.base, e));
                        return r = e === n[0] && this._fixMin ? DI(r, i[0]) : r, {value: r = e === n[1] && this._fixMax ? DI(r, i[1]) : r}
                    }), this)
                }, e.prototype.setExtent = function (t, e) {
                    var n = II(this.base);
                    t = II(Math.max(0, t)) / n, e = II(Math.max(0, e)) / n, TI.setExtent.call(this, t, e)
                }, e.prototype.getExtent = function () {
                    var t = this.base, e = _I.getExtent.call(this);
                    e[0] = bI(t, e[0]), e[1] = bI(t, e[1]);
                    var n = this._originalScale.getExtent();
                    return this._fixMin && (e[0] = DI(e[0], n[0])), this._fixMax && (e[1] = DI(e[1], n[1])), e
                }, e.prototype.unionExtent = function (t) {
                    this._originalScale.unionExtent(t);
                    var e = this.base;
                    t[0] = II(t[0]) / II(e), t[1] = II(t[1]) / II(e), _I.unionExtent.call(this, t)
                }, e.prototype.unionExtentFromData = function (t, e) {
                    this.unionExtent(t.getApproximateExtent(e))
                }, e.prototype.calcNiceTicks = function (t) {
                    t = t || 10;
                    var e = this._extent, n = e[1] - e[0];
                    if (!(n === 1 / 0 || n <= 0)) {
                        var i, r = (i = n, Math.pow(10, Uo(i)));
                        for (t / n * r <= .5 && (r *= 10); !isNaN(r) && Math.abs(r) < 1 && Math.abs(r) > 0;) r *= 10;
                        var o = [Mo(AI(e[0] / r) * r), Mo(SI(e[1] / r) * r)];
                        this._interval = r, this._niceExtent = o
                    }
                }, e.prototype.calcNiceExtent = function (t) {
                    TI.calcNiceExtent.call(this, t), this._fixMin = t.fixMin, this._fixMax = t.fixMax
                }, e.prototype.parse = function (t) {
                    return t
                }, e.prototype.contain = function (t) {
                    return nI(t = II(t) / II(this.base), this._extent)
                }, e.prototype.normalize = function (t) {
                    return iI(t = II(t) / II(this.base), this._extent)
                }, e.prototype.scale = function (t) {
                    return t = rI(t, this._extent), bI(this.base, t)
                }, e.type = "log", e
            }(Kb), CI = EI.prototype;

        function DI(t, e) {
            return xI(t, Oo(e))
        }

        CI.getMinorTicks = TI.getMinorTicks, CI.getLabel = TI.getLabel, Kb.registerClass(EI);
        const wI = EI;
        var MI = function () {
            function t(t, e, n) {
                this._prepareParams(t, e, n)
            }

            return t.prototype._prepareParams = function (t, e, n) {
                n[1] < n[0] && (n = [NaN, NaN]), this._dataMin = n[0], this._dataMax = n[1];
                var i = this._isOrdinal = "ordinal" === t.type;
                this._needCrossZero = "interval" === t.type && e.getNeedCrossZero && e.getNeedCrossZero();
                var r = this._modelMinRaw = e.get("min", !0);
                bt(r) ? this._modelMinNum = RI(t, r({
                    min: n[0],
                    max: n[1]
                })) : "dataMin" !== r && (this._modelMinNum = RI(t, r));
                var o = this._modelMaxRaw = e.get("max", !0);
                if (bt(o) ? this._modelMaxNum = RI(t, o({
                    min: n[0],
                    max: n[1]
                })) : "dataMax" !== o && (this._modelMaxNum = RI(t, o)), i) this._axisDataLen = e.getCategories().length; else {
                    var a = e.get("boundaryGap"), s = At(a) ? a : [a || 0, a || 0];
                    "boolean" == typeof s[0] || "boolean" == typeof s[1] ? this._boundaryGapInner = [0, 0] : this._boundaryGapInner = [ao(s[0], 1), ao(s[1], 1)]
                }
            }, t.prototype.calculate = function () {
                var t = this._isOrdinal, e = this._dataMin, n = this._dataMax, i = this._axisDataLen,
                    r = this._boundaryGapInner, o = t ? null : n - e || Math.abs(e),
                    a = "dataMin" === this._modelMinRaw ? e : this._modelMinNum,
                    s = "dataMax" === this._modelMaxRaw ? n : this._modelMaxNum, l = null != a, u = null != s;
                null == a && (a = t ? i ? 0 : NaN : e - r[0] * o), null == s && (s = t ? i ? i - 1 : NaN : n + r[1] * o), (null == a || !isFinite(a)) && (a = NaN), (null == s || !isFinite(s)) && (s = NaN);
                var c = Lt(a) || Lt(s) || t && !i;
                this._needCrossZero && (a > 0 && s > 0 && !l && (a = 0), a < 0 && s < 0 && !u && (s = 0));
                var h = this._determinedMin, d = this._determinedMax;
                return null != h && (a = h, l = !0), null != d && (s = d, u = !0), {
                    min: a,
                    max: s,
                    minFixed: l,
                    maxFixed: u,
                    isBlank: c
                }
            }, t.prototype.modifyDataMinMax = function (t, e) {
                this[OI[t]] = e
            }, t.prototype.setDeterminedMinMax = function (t, e) {
                this[NI[t]] = e
            }, t.prototype.freeze = function () {
                this.frozen = !0
            }, t
        }(), NI = {min: "_determinedMin", max: "_determinedMax"}, OI = {min: "_dataMin", max: "_dataMax"};

        function LI(t, e, n) {
            var i = t.rawExtentInfo;
            return i || (i = new MI(t, e, n), t.rawExtentInfo = i, i)
        }

        function RI(t, e) {
            return null == e ? null : Lt(e) ? NaN : t.parse(e)
        }

        function kI(t, e) {
            var n = t.type, i = LI(t, e, t.getExtent()).calculate();
            t.setBlank(i.isBlank);
            var r = i.min, o = i.max, a = e.ecModel;
            if (a && "time" === n) {
                var s = NA("bar", a), l = !1;
                if (mt(s, (function (t) {
                    l = l || t.getBaseAxis() === e.axis
                })), l) {
                    var u = OA(s), c = function (t, e, n, i) {
                        var r = n.axis.getExtent(), o = r[1] - r[0], a = function (t, e, n) {
                            if (t && e) {
                                var i = t[MA(e)];
                                return null != i && null != n ? i[wA(n)] : i
                            }
                        }(i, n.axis);
                        if (void 0 === a) return {min: t, max: e};
                        var s = 1 / 0;
                        mt(a, (function (t) {
                            s = Math.min(t.offset, s)
                        }));
                        var l = -1 / 0;
                        mt(a, (function (t) {
                            l = Math.max(t.offset + t.width, l)
                        })), s = Math.abs(s), l = Math.abs(l);
                        var u = s + l, c = e - t, h = c / (1 - (s + l) / o) - c;
                        return e += h * (l / u), t -= h * (s / u), {min: t, max: e}
                    }(r, o, e, u);
                    r = c.min, o = c.max
                }
            }
            return {extent: [r, o], fixMin: i.minFixed, fixMax: i.maxFixed}
        }

        function PI(t, e) {
            var n = e, i = kI(t, n), r = i.extent, o = n.get("splitNumber");
            t instanceof wI && (t.base = n.get("logBase"));
            var a = t.type, s = n.get("interval"), l = "interval" === a || "time" === a;
            t.setExtent(r[0], r[1]), t.calcNiceExtent({
                splitNumber: o,
                fixMin: i.fixMin,
                fixMax: i.fixMax,
                minInterval: l ? n.get("minInterval") : null,
                maxInterval: l ? n.get("maxInterval") : null
            }), null != s && t.setInterval && t.setInterval(s)
        }

        function GI(t, e) {
            if (e = e || t.get("type")) switch (e) {
                case"category":
                    return new aI({
                        ordinalMeta: t.getOrdinalMeta ? t.getOrdinalMeta() : t.getCategories(),
                        extent: [1 / 0, -1 / 0]
                    });
                case"time":
                    return new vI({locale: t.ecModel.getLocaleModel(), useUTC: t.ecModel.get("useUTC")});
                default:
                    return new (Kb.getClass(e) || uI)
            }
        }

        function BI(t) {
            var e, n, i = t.getLabelModel().get("formatter"), r = "category" === t.type ? t.scale.getExtent()[0] : null;
            return "time" === t.scale.type ? (n = i, function (e, i) {
                return t.scale.getFormattedLabel(e, i, n)
            }) : It(i) ? function (e) {
                return function (n) {
                    var i = t.scale.getLabel(n);
                    return e.replace("{value}", null != i ? i : "")
                }
            }(i) : bt(i) ? (e = i, function (n, i) {
                return null != r && (i = n.value - r), e(FI(t, n), i, null != n.level ? {level: n.level} : null)
            }) : function (e) {
                return t.scale.getLabel(e)
            }
        }

        function FI(t, e) {
            return "category" === t.type ? t.scale.getLabel(e) : e.value
        }

        function HI(t, e) {
            var n = e * Math.PI / 180, i = t.width, r = t.height,
                o = i * Math.abs(Math.cos(n)) + Math.abs(r * Math.sin(n)),
                a = i * Math.abs(Math.sin(n)) + Math.abs(r * Math.cos(n));
            return new hn(t.x, t.y, o, a)
        }

        function UI(t) {
            var e = t.get("interval");
            return null == e ? "auto" : e
        }

        function VI(t) {
            return "category" === t.type && 0 === UI(t.getLabelModel())
        }

        function zI(t, e) {
            var n = {};
            return mt(t.mapDimensionsAll(e), (function (e) {
                n[PS(t, e)] = !0
            })), Tt(n)
        }

        var WI = function () {
            function t(t) {
                this.type = "cartesian", this._dimList = [], this._axes = {}, this.name = t || ""
            }

            return t.prototype.getAxis = function (t) {
                return this._axes[t]
            }, t.prototype.getAxes = function () {
                return yt(this._dimList, (function (t) {
                    return this._axes[t]
                }), this)
            }, t.prototype.getAxesByScale = function (t) {
                return t = t.toLowerCase(), _t(this.getAxes(), (function (e) {
                    return e.scale.type === t
                }))
            }, t.prototype.addAxis = function (t) {
                var e = t.dim;
                this._axes[e] = t, this._dimList.push(e)
            }, t
        }();
        var YI = ["x", "y"];

        function qI(t) {
            return "interval" === t.type || "time" === t.type
        }

        var jI = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.type = "cartesian2d", e.dimensions = YI, e
            }

            return G(e, t), e.prototype.calcAffineTransform = function () {
                this._transform = this._invTransform = null;
                var t = this.getAxis("x").scale, e = this.getAxis("y").scale;
                if (qI(t) && qI(e)) {
                    var n = t.getExtent(), i = e.getExtent(), r = this.dataToPoint([n[0], i[0]]),
                        o = this.dataToPoint([n[1], i[1]]), a = n[1] - n[0], s = i[1] - i[0];
                    if (a && s) {
                        var l = (o[0] - r[0]) / a, u = (o[1] - r[1]) / s, c = r[0] - n[0] * l, h = r[1] - i[0] * u,
                            d = this._transform = [l, 0, 0, u, c, h];
                        this._invTransform = $e([], d)
                    }
                }
            }, e.prototype.getBaseAxis = function () {
                return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAxis("x")
            }, e.prototype.containPoint = function (t) {
                var e = this.getAxis("x"), n = this.getAxis("y");
                return e.contain(e.toLocalCoord(t[0])) && n.contain(n.toLocalCoord(t[1]))
            }, e.prototype.containData = function (t) {
                return this.getAxis("x").containData(t[0]) && this.getAxis("y").containData(t[1])
            }, e.prototype.containZone = function (t, e) {
                var n = this.dataToPoint(t), i = this.dataToPoint(e), r = this.getArea(),
                    o = new hn(n[0], n[1], i[0] - n[0], i[1] - n[1]);
                return r.intersect(o)
            }, e.prototype.dataToPoint = function (t, e, n) {
                n = n || [];
                var i = t[0], r = t[1];
                if (this._transform && null != i && isFinite(i) && null != r && isFinite(r)) return ge(n, t, this._transform);
                var o = this.getAxis("x"), a = this.getAxis("y");
                return n[0] = o.toGlobalCoord(o.dataToCoord(i, e)), n[1] = a.toGlobalCoord(a.dataToCoord(r, e)), n
            }, e.prototype.clampData = function (t, e) {
                var n = this.getAxis("x").scale, i = this.getAxis("y").scale, r = n.getExtent(), o = i.getExtent(),
                    a = n.parse(t[0]), s = i.parse(t[1]);
                return (e = e || [])[0] = Math.min(Math.max(Math.min(r[0], r[1]), a), Math.max(r[0], r[1])), e[1] = Math.min(Math.max(Math.min(o[0], o[1]), s), Math.max(o[0], o[1])), e
            }, e.prototype.pointToData = function (t, e) {
                var n = [];
                if (this._invTransform) return ge(n, t, this._invTransform);
                var i = this.getAxis("x"), r = this.getAxis("y");
                return n[0] = i.coordToData(i.toLocalCoord(t[0]), e), n[1] = r.coordToData(r.toLocalCoord(t[1]), e), n
            }, e.prototype.getOtherAxis = function (t) {
                return this.getAxis("x" === t.dim ? "y" : "x")
            }, e.prototype.getArea = function () {
                var t = this.getAxis("x").getGlobalExtent(), e = this.getAxis("y").getGlobalExtent(),
                    n = Math.min(t[0], t[1]), i = Math.min(e[0], e[1]), r = Math.max(t[0], t[1]) - n,
                    o = Math.max(e[0], e[1]) - i;
                return new hn(n, i, r, o)
            }, e
        }(WI);
        const XI = jI;
        var ZI = ha();

        function KI(t) {
            return "category" === t.type ? function (t) {
                var e = t.getLabelModel(), n = $I(t, e);
                return !e.get("show") || t.scale.isBlank() ? {
                    labels: [],
                    labelCategoryInterval: n.labelCategoryInterval
                } : n
            }(t) : function (t) {
                var e = t.scale.getTicks(), n = BI(t);
                return {
                    labels: yt(e, (function (e, i) {
                        return {
                            level: e.level,
                            formattedLabel: n(e, i),
                            rawLabel: t.scale.getLabel(e),
                            tickValue: e.value
                        }
                    }))
                }
            }(t)
        }

        function QI(t, e) {
            return "category" === t.type ? function (t, e) {
                var n, i, r = JI(t, "ticks"), o = UI(e), a = tE(r, o);
                if (a) return a;
                e.get("show") && !t.scale.isBlank() || (n = []);
                if (bt(o)) n = iE(t, o, !0); else if ("auto" === o) {
                    var s = $I(t, t.getLabelModel());
                    i = s.labelCategoryInterval, n = yt(s.labels, (function (t) {
                        return t.tickValue
                    }))
                } else n = nE(t, i = o, !0);
                return eE(r, o, {ticks: n, tickCategoryInterval: i})
            }(t, e) : {
                ticks: yt(t.scale.getTicks(), (function (t) {
                    return t.value
                }))
            }
        }

        function $I(t, e) {
            var n, i, r = JI(t, "labels"), o = UI(e), a = tE(r, o);
            return a || (bt(o) ? n = iE(t, o) : (i = "auto" === o ? function (t) {
                var e = ZI(t).autoInterval;
                return null != e ? e : ZI(t).autoInterval = t.calculateCategoryInterval()
            }(t) : o, n = nE(t, i)), eE(r, o, {labels: n, labelCategoryInterval: i}))
        }

        function JI(t, e) {
            return ZI(t)[e] || (ZI(t)[e] = [])
        }

        function tE(t, e) {
            for (var n = 0; n < t.length; n++) if (t[n].key === e) return t[n].value
        }

        function eE(t, e, n) {
            return t.push({key: e, value: n}), n
        }

        function nE(t, e, n) {
            var i = BI(t), r = t.scale, o = r.getExtent(), a = t.getLabelModel(), s = [], l = Math.max((e || 0) + 1, 1),
                u = o[0], c = r.count();
            0 !== u && l > 1 && c / l > 2 && (u = Math.round(Math.ceil(u / l) * l));
            var h = VI(t), d = a.get("showMinLabel") || h, p = a.get("showMaxLabel") || h;
            d && u !== o[0] && g(o[0]);
            for (var f = u; f <= o[1]; f += l) g(f);

            function g(t) {
                var e = {value: t};
                s.push(n ? t : {formattedLabel: i(e), rawLabel: r.getLabel(e), tickValue: t})
            }

            return p && f - l !== o[1] && g(o[1]), s
        }

        function iE(t, e, n) {
            var i = t.scale, r = BI(t), o = [];
            return mt(i.getTicks(), (function (t) {
                var a = i.getLabel(t), s = t.value;
                e(t.value, a) && o.push(n ? s : {formattedLabel: r(t), rawLabel: a, tickValue: s})
            })), o
        }

        var rE = [0, 1], oE = function () {
            function t(t, e, n) {
                this.onBand = !1, this.inverse = !1, this.dim = t, this.scale = e, this._extent = n || [0, 0]
            }

            return t.prototype.contain = function (t) {
                var e = this._extent, n = Math.min(e[0], e[1]), i = Math.max(e[0], e[1]);
                return t >= n && t <= i
            }, t.prototype.containData = function (t) {
                return this.scale.contain(t)
            }, t.prototype.getExtent = function () {
                return this._extent.slice()
            }, t.prototype.getPixelPrecision = function (t) {
                return Lo(t || this.scale.getExtent(), this._extent)
            }, t.prototype.setExtent = function (t, e) {
                var n = this._extent;
                n[0] = t, n[1] = e
            }, t.prototype.dataToCoord = function (t, e) {
                var n = this._extent, i = this.scale;
                return t = i.normalize(t), this.onBand && "ordinal" === i.type && aE(n = n.slice(), i.count()), Do(t, rE, n, e)
            }, t.prototype.coordToData = function (t, e) {
                var n = this._extent, i = this.scale;
                this.onBand && "ordinal" === i.type && aE(n = n.slice(), i.count());
                var r = Do(t, n, rE, e);
                return this.scale.scale(r)
            }, t.prototype.pointToData = function (t, e) {
            }, t.prototype.getTicksCoords = function (t) {
                var e = (t = t || {}).tickModel || this.getTickModel(), n = yt(QI(this, e).ticks, (function (t) {
                    return {
                        coord: this.dataToCoord("ordinal" === this.scale.type ? this.scale.getRawOrdinalNumber(t) : t),
                        tickValue: t
                    }
                }), this);
                return function (t, e, n, i) {
                    var r = e.length;
                    if (!t.onBand || n || !r) return;
                    var o, a, s = t.getExtent();
                    if (1 === r) e[0].coord = s[0], o = e[1] = {coord: s[1]}; else {
                        var l = e[r - 1].tickValue - e[0].tickValue, u = (e[r - 1].coord - e[0].coord) / l;
                        mt(e, (function (t) {
                            t.coord -= u / 2
                        })), a = 1 + t.scale.getExtent()[1] - e[r - 1].tickValue, o = {coord: e[r - 1].coord + u * a}, e.push(o)
                    }
                    var c = s[0] > s[1];
                    h(e[0].coord, s[0]) && (i ? e[0].coord = s[0] : e.shift());
                    i && h(s[0], e[0].coord) && e.unshift({coord: s[0]});
                    h(s[1], o.coord) && (i ? o.coord = s[1] : e.pop());
                    i && h(o.coord, s[1]) && e.push({coord: s[1]});

                    function h(t, e) {
                        return t = Mo(t), e = Mo(e), c ? t > e : t < e
                    }
                }(this, n, e.get("alignWithLabel"), t.clamp), n
            }, t.prototype.getMinorTicksCoords = function () {
                if ("ordinal" === this.scale.type) return [];
                var t = this.model.getModel("minorTick").get("splitNumber");
                return t > 0 && t < 100 || (t = 5), yt(this.scale.getMinorTicks(t), (function (t) {
                    return yt(t, (function (t) {
                        return {coord: this.dataToCoord(t), tickValue: t}
                    }), this)
                }), this)
            }, t.prototype.getViewLabels = function () {
                return KI(this).labels
            }, t.prototype.getLabelModel = function () {
                return this.model.getModel("axisLabel")
            }, t.prototype.getTickModel = function () {
                return this.model.getModel("axisTick")
            }, t.prototype.getBandWidth = function () {
                var t = this._extent, e = this.scale.getExtent(), n = e[1] - e[0] + (this.onBand ? 1 : 0);
                0 === n && (n = 1);
                var i = Math.abs(t[1] - t[0]);
                return Math.abs(i) / n
            }, t.prototype.calculateCategoryInterval = function () {
                return function (t) {
                    var e = function (t) {
                            var e = t.getLabelModel();
                            return {
                                axisRotate: t.getRotate ? t.getRotate() : t.isHorizontal && !t.isHorizontal() ? 90 : 0,
                                labelRotate: e.get("rotate") || 0,
                                font: e.getFont()
                            }
                        }(t), n = BI(t), i = (e.axisRotate - e.labelRotate) / 180 * Math.PI, r = t.scale, o = r.getExtent(),
                        a = r.count();
                    if (o[1] - o[0] < 1) return 0;
                    var s = 1;
                    a > 40 && (s = Math.max(1, Math.floor(a / 40)));
                    for (var l = o[0], u = t.dataToCoord(l + 1) - t.dataToCoord(l), c = Math.abs(u * Math.cos(i)), h = Math.abs(u * Math.sin(i)), d = 0, p = 0; l <= o[1]; l += s) {
                        var f, g, m = no(n({value: l}), e.font, "center", "top");
                        f = 1.3 * m.width, g = 1.3 * m.height, d = Math.max(d, f, 7), p = Math.max(p, g, 7)
                    }
                    var y = d / c, v = p / h;
                    isNaN(y) && (y = 1 / 0), isNaN(v) && (v = 1 / 0);
                    var _ = Math.max(0, Math.floor(Math.min(y, v))), T = ZI(t.model), x = t.getExtent(),
                        S = T.lastAutoInterval, A = T.lastTickCount;
                    return null != S && null != A && Math.abs(S - _) <= 1 && Math.abs(A - a) <= 1 && S > _ && T.axisExtent0 === x[0] && T.axisExtent1 === x[1] ? _ = S : (T.lastTickCount = a, T.lastAutoInterval = _, T.axisExtent0 = x[0], T.axisExtent1 = x[1]), _
                }(this)
            }, t
        }();

        function aE(t, e) {
            var n = (t[1] - t[0]) / e / 2;
            t[0] += n, t[1] -= n
        }

        const sE = oE;
        var lE = function (t) {
            function e(e, n, i, r, o) {
                var a = t.call(this, e, n, i) || this;
                return a.index = 0, a.type = r || "value", a.position = o || "bottom", a
            }

            return G(e, t), e.prototype.isHorizontal = function () {
                var t = this.position;
                return "top" === t || "bottom" === t
            }, e.prototype.getGlobalExtent = function (t) {
                var e = this.getExtent();
                return e[0] = this.toGlobalCoord(e[0]), e[1] = this.toGlobalCoord(e[1]), t && e[0] > e[1] && e.reverse(), e
            }, e.prototype.pointToData = function (t, e) {
                return this.coordToData(this.toLocalCoord(t["x" === this.dim ? 0 : 1]), e)
            }, e.prototype.setCategorySortInfo = function (t) {
                if ("category" !== this.type) return !1;
                this.model.option.categorySortInfo = t, this.scale.setSortInfo(t)
            }, e
        }(sE);
        const uE = lE;

        function cE(t, e, n) {
            n = n || {};
            var i = t.coordinateSystem, r = e.axis, o = {}, a = r.getAxesOnZeroOf()[0], s = r.position,
                l = a ? "onZero" : s, u = r.dim, c = i.getRect(), h = [c.x, c.x + c.width, c.y, c.y + c.height],
                d = {left: 0, right: 1, top: 0, bottom: 1, onZero: 2}, p = e.get("offset") || 0,
                f = "x" === u ? [h[2] - p, h[3] + p] : [h[0] - p, h[1] + p];
            if (a) {
                var g = a.toGlobalCoord(a.dataToCoord(0));
                f[d.onZero] = Math.max(Math.min(g, f[1]), f[0])
            }
            o.position = ["y" === u ? f[d[l]] : h[0], "x" === u ? f[d[l]] : h[3]], o.rotation = Math.PI / 2 * ("x" === u ? 0 : 1);
            o.labelDirection = o.tickDirection = o.nameDirection = {
                top: -1,
                bottom: 1,
                left: -1,
                right: 1
            }[s], o.labelOffset = a ? f[d[s]] - f[d.onZero] : 0, e.get(["axisTick", "inside"]) && (o.tickDirection = -o.tickDirection), Rt(n.labelInside, e.get(["axisLabel", "inside"])) && (o.labelDirection = -o.labelDirection);
            var m = e.get(["axisLabel", "rotate"]);
            return o.labelRotate = "top" === l ? -m : m, o.z2 = 1, o
        }

        function hE(t) {
            return "cartesian2d" === t.get("coordinateSystem")
        }

        function dE(t) {
            var e = {xAxisModel: null, yAxisModel: null};
            return mt(e, (function (n, i) {
                var r = i.replace(/Model$/, ""), o = t.getReferringComponents(r, ga).models[0];
                e[i] = o
            })), e
        }

        var pE = Math.log;

        function fE(t, e, n) {
            var i = uI.prototype, r = i.getTicks.call(n), o = i.getTicks.call(n, !0), a = r.length - 1,
                s = i.getInterval.call(n), l = kI(t, e), u = l.extent, c = l.fixMin, h = l.fixMax;
            if ("log" === t.type) {
                var d = pE(t.base);
                u = [pE(u[0]) / d, pE(u[1]) / d]
            }
            t.setExtent(u[0], u[1]), t.calcNiceExtent({splitNumber: a, fixMin: c, fixMax: h});
            var p = i.getExtent.call(t);
            c && (u[0] = p[0]), h && (u[1] = p[1]);
            var f = i.getInterval.call(t), g = u[0], m = u[1];
            if (c && h) f = (m - g) / a; else if (c) for (m = u[0] + f * a; m < u[1] && isFinite(m) && isFinite(u[1]);) f = Jb(f), m = u[0] + f * a; else if (h) for (g = u[1] - f * a; g > u[0] && isFinite(g) && isFinite(u[0]);) f = Jb(f), g = u[1] - f * a; else {
                t.getTicks().length - 1 > a && (f = Jb(f));
                var y = f * a;
                (g = Mo((m = Math.ceil(u[1] / f) * f) - y)) < 0 && u[0] >= 0 ? (g = 0, m = Mo(y)) : m > 0 && u[1] <= 0 && (m = 0, g = -Mo(y))
            }
            var v = (r[0].value - o[0].value) / s, _ = (r[a].value - o[a].value) / s;
            i.setExtent.call(t, g + f * v, m + f * _), i.setInterval.call(t, f), (v || _) && i.setNiceExtent.call(t, g + f, m - f)
        }

        var gE = function () {
            function t(t, e, n) {
                this.type = "grid", this._coordsMap = {}, this._coordsList = [], this._axesMap = {}, this._axesList = [], this.axisPointerEnabled = !0, this.dimensions = YI, this._initCartesian(t, e, n), this.model = t
            }

            return t.prototype.getRect = function () {
                return this._rect
            }, t.prototype.update = function (t, e) {
                var n = this._axesMap;

                function i(t) {
                    var e, n = Tt(t), i = n.length;
                    if (i) {
                        for (var r = [], o = i - 1; o >= 0; o--) {
                            var a = t[+n[o]], s = a.model, l = a.scale;
                            Qb(l) && s.get("alignTicks") && null == s.get("interval") ? r.push(a) : (PI(l, s), Qb(l) && (e = a))
                        }
                        r.length && (e || PI((e = r.pop()).scale, e.model), mt(r, (function (t) {
                            fE(t.scale, t.model, e.scale)
                        })))
                    }
                }

                this._updateScale(t, this.model), i(n.x), i(n.y);
                var r = {};
                mt(n.x, (function (t) {
                    yE(n, "y", t, r)
                })), mt(n.y, (function (t) {
                    yE(n, "x", t, r)
                })), this.resize(this.model, e)
            }, t.prototype.resize = function (t, e, n) {
                var i = t.getBoxLayoutParams(), r = !n && t.get("containLabel"),
                    o = Nh(i, {width: e.getWidth(), height: e.getHeight()});
                this._rect = o;
                var a = this._axesList;

                function s() {
                    mt(a, (function (t) {
                        var e = t.isHorizontal(), n = e ? [0, o.width] : [0, o.height], i = t.inverse ? 1 : 0;
                        t.setExtent(n[i], n[1 - i]), function (t, e) {
                            var n = t.getExtent(), i = n[0] + n[1];
                            t.toGlobalCoord = "x" === t.dim ? function (t) {
                                return t + e
                            } : function (t) {
                                return i - t + e
                            }, t.toLocalCoord = "x" === t.dim ? function (t) {
                                return t - e
                            } : function (t) {
                                return i - t + e
                            }
                        }(t, e ? o.x : o.y)
                    }))
                }

                s(), r && (mt(a, (function (t) {
                    if (!t.model.get(["axisLabel", "inside"])) {
                        var e = function (t) {
                            var e = t.model, n = t.scale;
                            if (e.get(["axisLabel", "show"]) && !n.isBlank()) {
                                var i, r, o = n.getExtent();
                                r = n instanceof aI ? n.count() : (i = n.getTicks()).length;
                                var a, s = t.getLabelModel(), l = BI(t), u = 1;
                                r > 40 && (u = Math.ceil(r / 40));
                                for (var c = 0; c < r; c += u) {
                                    var h = l(i ? i[c] : {value: o[0] + c}, c),
                                        d = HI(s.getTextRect(h), s.get("rotate") || 0);
                                    a ? a.union(d) : a = d
                                }
                                return a
                            }
                        }(t);
                        if (e) {
                            var n = t.isHorizontal() ? "height" : "width", i = t.model.get(["axisLabel", "margin"]);
                            o[n] -= e[n] + i, "top" === t.position ? o.y += e.height + i : "left" === t.position && (o.x += e.width + i)
                        }
                    }
                })), s()), mt(this._coordsList, (function (t) {
                    t.calcAffineTransform()
                }))
            }, t.prototype.getAxis = function (t, e) {
                var n = this._axesMap[t];
                if (null != n) return n[e || 0]
            }, t.prototype.getAxes = function () {
                return this._axesList.slice()
            }, t.prototype.getCartesian = function (t, e) {
                if (null != t && null != e) {
                    var n = "x" + t + "y" + e;
                    return this._coordsMap[n]
                }
                Dt(t) && (e = t.yAxisIndex, t = t.xAxisIndex);
                for (var i = 0, r = this._coordsList; i < r.length; i++) if (r[i].getAxis("x").index === t || r[i].getAxis("y").index === e) return r[i]
            }, t.prototype.getCartesians = function () {
                return this._coordsList.slice()
            }, t.prototype.convertToPixel = function (t, e, n) {
                var i = this._findConvertTarget(e);
                return i.cartesian ? i.cartesian.dataToPoint(n) : i.axis ? i.axis.toGlobalCoord(i.axis.dataToCoord(n)) : null
            }, t.prototype.convertFromPixel = function (t, e, n) {
                var i = this._findConvertTarget(e);
                return i.cartesian ? i.cartesian.pointToData(n) : i.axis ? i.axis.coordToData(i.axis.toLocalCoord(n)) : null
            }, t.prototype._findConvertTarget = function (t) {
                var e, n, i = t.seriesModel, r = t.xAxisModel || i && i.getReferringComponents("xAxis", ga).models[0],
                    o = t.yAxisModel || i && i.getReferringComponents("yAxis", ga).models[0], a = t.gridModel,
                    s = this._coordsList;
                if (i) pt(s, e = i.coordinateSystem) < 0 && (e = null); else if (r && o) e = this.getCartesian(r.componentIndex, o.componentIndex); else if (r) n = this.getAxis("x", r.componentIndex); else if (o) n = this.getAxis("y", o.componentIndex); else if (a) {
                    a.coordinateSystem === this && (e = this._coordsList[0])
                }
                return {cartesian: e, axis: n}
            }, t.prototype.containPoint = function (t) {
                var e = this._coordsList[0];
                if (e) return e.containPoint(t)
            }, t.prototype._initCartesian = function (t, e, n) {
                var i = this, r = this, o = {left: !1, right: !1, top: !1, bottom: !1}, a = {x: {}, y: {}},
                    s = {x: 0, y: 0};
                if (e.eachComponent("xAxis", l("x"), this), e.eachComponent("yAxis", l("y"), this), !s.x || !s.y) return this._axesMap = {}, void (this._axesList = []);

                function l(e) {
                    return function (n, i) {
                        if (mE(n, t)) {
                            var l = n.get("position");
                            "x" === e ? "top" !== l && "bottom" !== l && (l = o.bottom ? "top" : "bottom") : "left" !== l && "right" !== l && (l = o.left ? "right" : "left"), o[l] = !0;
                            var u = new uE(e, GI(n), [0, 0], n.get("type"), l), c = "category" === u.type;
                            u.onBand = c && n.get("boundaryGap"), u.inverse = n.get("inverse"), n.axis = u, u.model = n, u.grid = r, u.index = i, r._axesList.push(u), a[e][i] = u, s[e]++
                        }
                    }
                }

                this._axesMap = a, mt(a.x, (function (e, n) {
                    mt(a.y, (function (r, o) {
                        var a = "x" + n + "y" + o, s = new XI(a);
                        s.master = i, s.model = t, i._coordsMap[a] = s, i._coordsList.push(s), s.addAxis(e), s.addAxis(r)
                    }))
                }))
            }, t.prototype._updateScale = function (t, e) {
                function n(t, e) {
                    mt(zI(t, e.dim), (function (n) {
                        e.scale.unionExtentFromData(t, n)
                    }))
                }

                mt(this._axesList, (function (t) {
                    if (t.scale.setExtent(1 / 0, -1 / 0), "category" === t.type) {
                        var e = t.model.get("categorySortInfo");
                        t.scale.setSortInfo(e)
                    }
                })), t.eachSeries((function (t) {
                    if (hE(t)) {
                        var i = dE(t), r = i.xAxisModel, o = i.yAxisModel;
                        if (!mE(r, e) || !mE(o, e)) return;
                        var a = this.getCartesian(r.componentIndex, o.componentIndex), s = t.getData(),
                            l = a.getAxis("x"), u = a.getAxis("y");
                        n(s, l), n(s, u)
                    }
                }), this)
            }, t.prototype.getTooltipAxes = function (t) {
                var e = [], n = [];
                return mt(this.getCartesians(), (function (i) {
                    var r = null != t && "auto" !== t ? i.getAxis(t) : i.getBaseAxis(), o = i.getOtherAxis(r);
                    pt(e, r) < 0 && e.push(r), pt(n, o) < 0 && n.push(o)
                })), {baseAxes: e, otherAxes: n}
            }, t.create = function (e, n) {
                var i = [];
                return e.eachComponent("grid", (function (r, o) {
                    var a = new t(r, e, n);
                    a.name = "grid_" + o, a.resize(r, n, !0), r.coordinateSystem = a, i.push(a)
                })), e.eachSeries((function (t) {
                    if (hE(t)) {
                        var e = dE(t), n = e.xAxisModel, i = e.yAxisModel;
                        0;
                        var r = n.getCoordSysModel().coordinateSystem;
                        t.coordinateSystem = r.getCartesian(n.componentIndex, i.componentIndex)
                    }
                })), i
            }, t.dimensions = YI, t
        }();

        function mE(t, e) {
            return t.getCoordSysModel() === e
        }

        function yE(t, e, n, i) {
            n.getAxesOnZeroOf = function () {
                return r ? [r] : []
            };
            var r, o = t[e], a = n.model, s = a.get(["axisLine", "onZero"]), l = a.get(["axisLine", "onZeroAxisIndex"]);
            if (s) {
                if (null != l) vE(o[l]) && (r = o[l]); else for (var u in o) if (o.hasOwnProperty(u) && vE(o[u]) && !i[c(o[u])]) {
                    r = o[u];
                    break
                }
                r && (i[c(r)] = !0)
            }

            function c(t) {
                return t.dim + "_" + t.index
            }
        }

        function vE(t) {
            return t && "category" !== t.type && "time" !== t.type && function (t) {
                var e = t.scale.getExtent(), n = e[0], i = e[1];
                return !(n > 0 && i > 0 || n < 0 && i < 0)
            }(t)
        }

        const _E = gE;
        var TE = Math.PI, xE = function () {
            function t(t, e) {
                this.group = new xo, this.opt = e, this.axisModel = t, dt(e, {
                    labelOffset: 0,
                    nameDirection: 1,
                    tickDirection: 1,
                    labelDirection: 1,
                    silent: !0,
                    handleAutoShown: function () {
                        return !0
                    }
                });
                var n = new xo({x: e.position[0], y: e.position[1], rotation: e.rotation});
                n.updateTransform(), this._transformGroup = n
            }

            return t.prototype.hasBuilder = function (t) {
                return !!SE[t]
            }, t.prototype.add = function (t) {
                SE[t](this.opt, this.axisModel, this.group, this._transformGroup)
            }, t.prototype.getGroup = function () {
                return this.group
            }, t.innerTextLayout = function (t, e, n) {
                var i, r, o = Go(e - t);
                return Bo(o) ? (r = n > 0 ? "top" : "bottom", i = "center") : Bo(o - TE) ? (r = n > 0 ? "bottom" : "top", i = "center") : (r = "middle", i = o > 0 && o < TE ? n > 0 ? "right" : "left" : n > 0 ? "left" : "right"), {
                    rotation: o,
                    textAlign: i,
                    textVerticalAlign: r
                }
            }, t.makeAxisEventDataBase = function (t) {
                var e = {componentType: t.mainType, componentIndex: t.componentIndex};
                return e[t.mainType + "Index"] = t.componentIndex, e
            }, t.isLabelSilent = function (t) {
                var e = t.get("tooltip");
                return t.get("silent") || !(t.get("triggerEvent") || e && e.show)
            }, t
        }(), SE = {
            axisLine: function (t, e, n, i) {
                var r = e.get(["axisLine", "show"]);
                if ("auto" === r && t.handleAutoShown && (r = t.handleAutoShown("axisLine")), r) {
                    var o = e.axis.getExtent(), a = i.transform, s = [o[0], 0], l = [o[1], 0], u = s[0] > l[0];
                    a && (ge(s, s, a), ge(l, l, a));
                    var c = ht({lineCap: "round"}, e.getModel(["axisLine", "lineStyle"]).getLineStyle()), h = new Hg({
                        shape: {x1: s[0], y1: s[1], x2: l[0], y2: l[1]},
                        style: c,
                        strokeContainThreshold: t.strokeContainThreshold || 5,
                        silent: !0,
                        z2: 1
                    });
                    Sm(h.shape, h.style.lineWidth), h.anid = "line", n.add(h);
                    var d = e.get(["axisLine", "symbol"]);
                    if (null != d) {
                        var p = e.get(["axisLine", "symbolSize"]);
                        It(d) && (d = [d, d]), (It(p) || Ct(p)) && (p = [p, p]);
                        var f = ov(e.get(["axisLine", "symbolOffset"]) || 0, p), g = p[0], m = p[1];
                        mt([{rotate: t.rotation + Math.PI / 2, offset: f[0], r: 0}, {
                            rotate: t.rotation - Math.PI / 2,
                            offset: f[1],
                            r: Math.sqrt((s[0] - l[0]) * (s[0] - l[0]) + (s[1] - l[1]) * (s[1] - l[1]))
                        }], (function (e, i) {
                            if ("none" !== d[i] && null != d[i]) {
                                var r = iv(d[i], -g / 2, -m / 2, g, m, c.stroke, !0), o = e.r + e.offset, a = u ? l : s;
                                r.attr({
                                    rotation: e.rotate,
                                    x: a[0] + o * Math.cos(t.rotation),
                                    y: a[1] - o * Math.sin(t.rotation),
                                    silent: !0,
                                    z2: 11
                                }), n.add(r)
                            }
                        }))
                    }
                }
            }, axisTickLabel: function (t, e, n, i) {
                var r = function (t, e, n, i) {
                    var r = n.axis, o = n.getModel("axisTick"), a = o.get("show");
                    "auto" === a && i.handleAutoShown && (a = i.handleAutoShown("axisTick"));
                    if (!a || r.scale.isBlank()) return;
                    for (var s = o.getModel("lineStyle"), l = i.tickDirection * o.get("length"), u = EE(r.getTicksCoords(), e.transform, l, dt(s.getLineStyle(), {stroke: n.get(["axisLine", "lineStyle", "color"])}), "ticks"), c = 0; c < u.length; c++) t.add(u[c]);
                    return u
                }(n, i, e, t), o = function (t, e, n, i) {
                    var r = n.axis, o = Rt(i.axisLabelShow, n.get(["axisLabel", "show"]));
                    if (!o || r.scale.isBlank()) return;
                    var a = n.getModel("axisLabel"), s = a.get("margin"), l = r.getViewLabels(),
                        u = (Rt(i.labelRotate, a.get("rotate")) || 0) * TE / 180,
                        c = xE.innerTextLayout(i.rotation, u, i.labelDirection),
                        h = n.getCategories && n.getCategories(!0), d = [], p = xE.isLabelSilent(n),
                        f = n.get("triggerEvent");
                    return mt(l, (function (o, l) {
                        var u = "ordinal" === r.scale.type ? r.scale.getRawOrdinalNumber(o.tickValue) : o.tickValue,
                            g = o.formattedLabel, m = o.rawLabel, y = a;
                        if (h && h[u]) {
                            var v = h[u];
                            Dt(v) && v.textStyle && (y = new wc(v.textStyle, a, n.ecModel))
                        }
                        var _ = y.getTextColor() || n.get(["axisLine", "lineStyle", "color"]), T = r.dataToCoord(u),
                            x = new Fl({
                                x: T,
                                y: i.labelOffset + i.labelDirection * s,
                                rotation: c.rotation,
                                silent: p,
                                z2: 10 + (o.level || 0),
                                style: oc(y, {
                                    text: g,
                                    align: y.getShallow("align", !0) || c.textAlign,
                                    verticalAlign: y.getShallow("verticalAlign", !0) || y.getShallow("baseline", !0) || c.textVerticalAlign,
                                    fill: bt(_) ? _("category" === r.type ? m : "value" === r.type ? u + "" : u, l) : _
                                })
                            });
                        if (x.anid = "label_" + u, f) {
                            var S = xE.makeAxisEventDataBase(n);
                            S.targetType = "axisLabel", S.value = m, S.tickIndex = l, "category" === r.type && (S.dataIndex = u), Hl(x).eventData = S
                        }
                        e.add(x), x.updateTransform(), d.push(x), t.add(x), x.decomposeTransform()
                    })), d
                }(n, i, e, t);
                (function (t, e, n) {
                    if (VI(t.axis)) return;
                    var i = t.get(["axisLabel", "showMinLabel"]), r = t.get(["axisLabel", "showMaxLabel"]);
                    e = e || [], n = n || [];
                    var o = e[0], a = e[1], s = e[e.length - 1], l = e[e.length - 2], u = n[0], c = n[1],
                        h = n[n.length - 1], d = n[n.length - 2];
                    !1 === i ? (AE(o), AE(u)) : bE(o, a) && (i ? (AE(a), AE(c)) : (AE(o), AE(u)));
                    !1 === r ? (AE(s), AE(h)) : bE(l, s) && (r ? (AE(l), AE(d)) : (AE(s), AE(h)))
                }(e, o, r), function (t, e, n, i) {
                    var r = n.axis, o = n.getModel("minorTick");
                    if (!o.get("show") || r.scale.isBlank()) return;
                    var a = r.getMinorTicksCoords();
                    if (!a.length) return;
                    for (var s = o.getModel("lineStyle"), l = i * o.get("length"), u = dt(s.getLineStyle(), dt(n.getModel("axisTick").getLineStyle(), {stroke: n.get(["axisLine", "lineStyle", "color"])})), c = 0; c < a.length; c++) for (var h = EE(a[c], e.transform, l, u, "minorticks_" + c), d = 0; d < h.length; d++) t.add(h[d])
                }(n, i, e, t.tickDirection), e.get(["axisLabel", "hideOverlap"])) && _T(mT(yt(o, (function (t) {
                    return {label: t, priority: t.z2, defaultAttr: {ignore: t.ignore}}
                }))))
            }, axisName: function (t, e, n, i) {
                var r = Rt(t.axisName, e.get("name"));
                if (r) {
                    var o, a, s = e.get("nameLocation"), l = t.nameDirection, u = e.getModel("nameTextStyle"),
                        c = e.get("nameGap") || 0, h = e.axis.getExtent(), d = h[0] > h[1] ? -1 : 1,
                        p = ["start" === s ? h[0] - d * c : "end" === s ? h[1] + d * c : (h[0] + h[1]) / 2, IE(s) ? t.labelOffset + l * c : 0],
                        f = e.get("nameRotate");
                    null != f && (f = f * TE / 180), IE(s) ? o = xE.innerTextLayout(t.rotation, null != f ? f : t.rotation, l) : (o = function (t, e, n, i) {
                        var r, o, a = Go(n - t), s = i[0] > i[1], l = "start" === e && !s || "start" !== e && s;
                        Bo(a - TE / 2) ? (o = l ? "bottom" : "top", r = "center") : Bo(a - 1.5 * TE) ? (o = l ? "top" : "bottom", r = "center") : (o = "middle", r = a < 1.5 * TE && a > TE / 2 ? l ? "left" : "right" : l ? "right" : "left");
                        return {rotation: a, textAlign: r, textVerticalAlign: o}
                    }(t.rotation, s, f || 0, h), null != (a = t.axisNameAvailableWidth) && (a = Math.abs(a / Math.sin(o.rotation)), !isFinite(a) && (a = null)));
                    var g = u.getFont(), m = e.get("nameTruncate", !0) || {}, y = m.ellipsis,
                        v = Rt(t.nameTruncateMaxWidth, m.maxWidth, a), _ = new Fl({
                            x: p[0],
                            y: p[1],
                            rotation: o.rotation,
                            silent: xE.isLabelSilent(e),
                            style: oc(u, {
                                text: r,
                                font: g,
                                overflow: "truncate",
                                width: v,
                                ellipsis: y,
                                fill: u.getTextColor() || e.get(["axisLine", "lineStyle", "color"]),
                                align: u.get("align") || o.textAlign,
                                verticalAlign: u.get("verticalAlign") || o.textVerticalAlign
                            }),
                            z2: 1
                        });
                    if (Pm({
                        el: _,
                        componentModel: e,
                        itemName: r
                    }), _.__fullText = r, _.anid = "name", e.get("triggerEvent")) {
                        var T = xE.makeAxisEventDataBase(e);
                        T.targetType = "axisName", T.name = r, Hl(_).eventData = T
                    }
                    i.add(_), _.updateTransform(), n.add(_), _.decomposeTransform()
                }
            }
        };

        function AE(t) {
            t && (t.ignore = !0)
        }

        function bE(t, e) {
            var n = t && t.getBoundingRect().clone(), i = e && e.getBoundingRect().clone();
            if (n && i) {
                var r = qe([]);
                return Ke(r, r, -t.rotation), n.applyTransform(Xe([], r, t.getLocalTransform())), i.applyTransform(Xe([], r, e.getLocalTransform())), n.intersect(i)
            }
        }

        function IE(t) {
            return "middle" === t || "center" === t
        }

        function EE(t, e, n, i, r) {
            for (var o = [], a = [], s = [], l = 0; l < t.length; l++) {
                var u = t[l].coord;
                a[0] = u, a[1] = 0, s[0] = u, s[1] = n, e && (ge(a, a, e), ge(s, s, e));
                var c = new Hg({
                    shape: {x1: a[0], y1: a[1], x2: s[0], y2: s[1]},
                    style: i,
                    z2: 2,
                    autoBatch: !0,
                    silent: !0
                });
                Sm(c.shape, c.style.lineWidth), c.anid = r + "_" + t[l].tickValue, o.push(c)
            }
            return o
        }

        const CE = xE;

        function DE(t, e) {
            var n = {axesInfo: {}, seriesInvolved: !1, coordSysAxesInfo: {}, coordSysMap: {}};
            return function (t, e, n) {
                var i = e.getComponent("tooltip"), r = e.getComponent("axisPointer"), o = r.get("link", !0) || [],
                    a = [];
                mt(n.getCoordinateSystems(), (function (n) {
                    if (n.axisPointerEnabled) {
                        var s = OE(n.model), l = t.coordSysAxesInfo[s] = {};
                        t.coordSysMap[s] = n;
                        var u = n.model.getModel("tooltip", i);
                        if (mt(n.getAxes(), St(p, !1, null)), n.getTooltipAxes && i && u.get("show")) {
                            var c = "axis" === u.get("trigger"), h = "cross" === u.get(["axisPointer", "type"]),
                                d = n.getTooltipAxes(u.get(["axisPointer", "axis"]));
                            (c || h) && mt(d.baseAxes, St(p, !h || "cross", c)), h && mt(d.otherAxes, St(p, "cross", !1))
                        }
                    }

                    function p(i, s, c) {
                        var h = c.model.getModel("axisPointer", r), d = h.get("show");
                        if (d && ("auto" !== d || i || NE(h))) {
                            null == s && (s = h.get("triggerTooltip")), h = i ? function (t, e, n, i, r, o) {
                                var a = e.getModel("axisPointer"), s = {};
                                mt(["type", "snap", "lineStyle", "shadowStyle", "label", "animation", "animationDurationUpdate", "animationEasingUpdate", "z"], (function (t) {
                                    s[t] = lt(a.get(t))
                                })), s.snap = "category" !== t.type && !!o, "cross" === a.get("type") && (s.type = "line");
                                var l = s.label || (s.label = {});
                                if (null == l.show && (l.show = !1), "cross" === r) {
                                    var u = a.get(["label", "show"]);
                                    if (l.show = null == u || u, !o) {
                                        var c = s.lineStyle = a.get("crossStyle");
                                        c && dt(l, c.textStyle)
                                    }
                                }
                                return t.model.getModel("axisPointer", new wc(s, n, i))
                            }(c, u, r, e, i, s) : h;
                            var p = h.get("snap"), f = h.get("triggerEmphasis"), g = OE(c.model),
                                m = s || p || "category" === c.type, y = t.axesInfo[g] = {
                                    key: g,
                                    axis: c,
                                    coordSys: n,
                                    axisPointerModel: h,
                                    triggerTooltip: s,
                                    triggerEmphasis: f,
                                    involveSeries: m,
                                    snap: p,
                                    useHandle: NE(h),
                                    seriesModels: [],
                                    linkGroup: null
                                };
                            l[g] = y, t.seriesInvolved = t.seriesInvolved || m;
                            var v = function (t, e) {
                                for (var n = e.model, i = e.dim, r = 0; r < t.length; r++) {
                                    var o = t[r] || {};
                                    if (wE(o[i + "AxisId"], n.id) || wE(o[i + "AxisIndex"], n.componentIndex) || wE(o[i + "AxisName"], n.name)) return r
                                }
                            }(o, c);
                            if (null != v) {
                                var _ = a[v] || (a[v] = {axesInfo: {}});
                                _.axesInfo[g] = y, _.mapper = o[v].mapper, y.linkGroup = _
                            }
                        }
                    }
                }))
            }(n, t, e), n.seriesInvolved && function (t, e) {
                e.eachSeries((function (e) {
                    var n = e.coordinateSystem, i = e.get(["tooltip", "trigger"], !0),
                        r = e.get(["tooltip", "show"], !0);
                    n && "none" !== i && !1 !== i && "item" !== i && !1 !== r && !1 !== e.get(["axisPointer", "show"], !0) && mt(t.coordSysAxesInfo[OE(n.model)], (function (t) {
                        var i = t.axis;
                        n.getAxis(i.dim) === i && (t.seriesModels.push(e), null == t.seriesDataCount && (t.seriesDataCount = 0), t.seriesDataCount += e.getData().count())
                    }))
                }))
            }(n, t), n
        }

        function wE(t, e) {
            return "all" === t || At(t) && pt(t, e) >= 0 || t === e
        }

        function ME(t) {
            var e = (t.ecModel.getComponent("axisPointer") || {}).coordSysAxesInfo;
            return e && e.axesInfo[OE(t)]
        }

        function NE(t) {
            return !!t.get(["handle", "show"])
        }

        function OE(t) {
            return t.type + "||" + t.id
        }

        var LE = {}, RE = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (e, n, i, r) {
                this.axisPointerClass && function (t) {
                    var e = ME(t);
                    if (e) {
                        var n = e.axisPointerModel, i = e.axis.scale, r = n.option, o = n.get("status"),
                            a = n.get("value");
                        null != a && (a = i.parse(a));
                        var s = NE(n);
                        null == o && (r.status = s ? "show" : "hide");
                        var l = i.getExtent().slice();
                        l[0] > l[1] && l.reverse(), (null == a || a > l[1]) && (a = l[1]), a < l[0] && (a = l[0]), r.value = a, s && (r.status = e.axis.scale.isBlank() ? "hide" : "show")
                    }
                }(e), t.prototype.render.apply(this, arguments), this._doUpdateAxisPointerClass(e, i, !0)
            }, e.prototype.updateAxisPointer = function (t, e, n, i) {
                this._doUpdateAxisPointerClass(t, n, !1)
            }, e.prototype.remove = function (t, e) {
                var n = this._axisPointer;
                n && n.remove(e)
            }, e.prototype.dispose = function (e, n) {
                this._disposeAxisPointer(n), t.prototype.dispose.apply(this, arguments)
            }, e.prototype._doUpdateAxisPointerClass = function (t, n, i) {
                var r = e.getAxisPointerClass(this.axisPointerClass);
                if (r) {
                    var o = function (t) {
                        var e = ME(t);
                        return e && e.axisPointerModel
                    }(t);
                    o ? (this._axisPointer || (this._axisPointer = new r)).render(t, o, n, i) : this._disposeAxisPointer(n)
                }
            }, e.prototype._disposeAxisPointer = function (t) {
                this._axisPointer && this._axisPointer.dispose(t), this._axisPointer = null
            }, e.registerAxisPointerClass = function (t, e) {
                LE[t] = e
            }, e.getAxisPointerClass = function (t) {
                return t && LE[t]
            }, e.type = "axis", e
        }(Gf);
        const kE = RE;
        var PE = ha();

        function GE(t, e, n, i) {
            var r = n.axis;
            if (!r.scale.isBlank()) {
                var o = n.getModel("splitArea"), a = o.getModel("areaStyle"), s = a.get("color"),
                    l = i.coordinateSystem.getRect(), u = r.getTicksCoords({tickModel: o, clamp: !0});
                if (u.length) {
                    var c = s.length, h = PE(t).splitAreaColors, d = jt(), p = 0;
                    if (h) for (var f = 0; f < u.length; f++) {
                        var g = h.get(u[f].tickValue);
                        if (null != g) {
                            p = (g + (c - 1) * f) % c;
                            break
                        }
                    }
                    var m = r.toGlobalCoord(u[0].coord), y = a.getAreaStyle();
                    s = At(s) ? s : [s];
                    for (f = 1; f < u.length; f++) {
                        var v = r.toGlobalCoord(u[f].coord), _ = void 0, T = void 0, x = void 0, S = void 0;
                        r.isHorizontal() ? (_ = m, T = l.y, x = v - _, S = l.height, m = _ + x) : (_ = l.x, T = m, x = l.width, m = T + (S = v - T));
                        var A = u[f - 1].tickValue;
                        null != A && d.set(A, p), e.add(new Al({
                            anid: null != A ? "area_" + A : null,
                            shape: {x: _, y: T, width: x, height: S},
                            style: dt({fill: s[p]}, y),
                            autoBatch: !0,
                            silent: !0
                        })), p = (p + 1) % c
                    }
                    PE(t).splitAreaColors = d
                }
            }
        }

        function BE(t) {
            PE(t).splitAreaColors = null
        }

        var FE = ["axisLine", "axisTickLabel", "axisName"], HE = ["splitArea", "splitLine", "minorSplitLine"],
            UE = function (t) {
                function e() {
                    var n = null !== t && t.apply(this, arguments) || this;
                    return n.type = e.type, n.axisPointerClass = "CartesianAxisPointer", n
                }

                return G(e, t), e.prototype.render = function (e, n, i, r) {
                    this.group.removeAll();
                    var o = this._axisGroup;
                    if (this._axisGroup = new xo, this.group.add(this._axisGroup), e.get("show")) {
                        var a = e.getCoordSysModel(), s = cE(a, e), l = new CE(e, ht({
                            handleAutoShown: function (t) {
                                for (var n = a.coordinateSystem.getCartesians(), i = 0; i < n.length; i++) if (Qb(n[i].getOtherAxis(e.axis).scale)) return !0;
                                return !1
                            }
                        }, s));
                        mt(FE, l.add, l), this._axisGroup.add(l.getGroup()), mt(HE, (function (t) {
                            e.get([t, "show"]) && VE[t](this, this._axisGroup, e, a)
                        }), this), r && "changeAxisOrder" === r.type && r.isInitSort || wm(o, this._axisGroup, e), t.prototype.render.call(this, e, n, i, r)
                    }
                }, e.prototype.remove = function () {
                    BE(this)
                }, e.type = "cartesianAxis", e
            }(kE), VE = {
                splitLine: function (t, e, n, i) {
                    var r = n.axis;
                    if (!r.scale.isBlank()) {
                        var o = n.getModel("splitLine"), a = o.getModel("lineStyle"), s = a.get("color");
                        s = At(s) ? s : [s];
                        for (var l = i.coordinateSystem.getRect(), u = r.isHorizontal(), c = 0, h = r.getTicksCoords({tickModel: o}), d = [], p = [], f = a.getLineStyle(), g = 0; g < h.length; g++) {
                            var m = r.toGlobalCoord(h[g].coord);
                            u ? (d[0] = m, d[1] = l.y, p[0] = m, p[1] = l.y + l.height) : (d[0] = l.x, d[1] = m, p[0] = l.x + l.width, p[1] = m);
                            var y = c++ % s.length, v = h[g].tickValue, _ = new Hg({
                                anid: null != v ? "line_" + h[g].tickValue : null,
                                autoBatch: !0,
                                shape: {x1: d[0], y1: d[1], x2: p[0], y2: p[1]},
                                style: dt({stroke: s[y]}, f),
                                silent: !0
                            });
                            Sm(_.shape, f.lineWidth), e.add(_)
                        }
                    }
                }, minorSplitLine: function (t, e, n, i) {
                    var r = n.axis, o = n.getModel("minorSplitLine").getModel("lineStyle"),
                        a = i.coordinateSystem.getRect(), s = r.isHorizontal(), l = r.getMinorTicksCoords();
                    if (l.length) for (var u = [], c = [], h = o.getLineStyle(), d = 0; d < l.length; d++) for (var p = 0; p < l[d].length; p++) {
                        var f = r.toGlobalCoord(l[d][p].coord);
                        s ? (u[0] = f, u[1] = a.y, c[0] = f, c[1] = a.y + a.height) : (u[0] = a.x, u[1] = f, c[0] = a.x + a.width, c[1] = f);
                        var g = new Hg({
                            anid: "minor_line_" + l[d][p].tickValue,
                            autoBatch: !0,
                            shape: {x1: u[0], y1: u[1], x2: c[0], y2: c[1]},
                            style: h,
                            silent: !0
                        });
                        Sm(g.shape, h.lineWidth), e.add(g)
                    }
                }, splitArea: function (t, e, n, i) {
                    GE(t, e, n, i)
                }
            }, zE = function (t) {
                function e() {
                    var n = null !== t && t.apply(this, arguments) || this;
                    return n.type = e.type, n
                }

                return G(e, t), e.type = "xAxis", e
            }(UE), WE = function (t) {
                function e() {
                    var e = null !== t && t.apply(this, arguments) || this;
                    return e.type = zE.type, e
                }

                return G(e, t), e.type = "yAxis", e
            }(UE);
        var YE = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.type = "grid", e
            }

            return G(e, t), e.prototype.render = function (t, e) {
                this.group.removeAll(), t.get("show") && this.group.add(new Al({
                    shape: t.coordinateSystem.getRect(),
                    style: dt({fill: t.get("backgroundColor")}, t.getItemStyle()),
                    silent: !0,
                    z2: -1
                }))
            }, e.type = "grid", e
        }(Gf), qE = {offset: 0};

        function jE(t) {
            t.registerComponentView(YE), t.registerComponentModel(Pb), t.registerCoordinateSystem("cartesian2d", _E), jb(t, "x", Bb, qE), jb(t, "y", Bb, qE), t.registerComponentView(zE), t.registerComponentView(WE), t.registerPreprocessor((function (t) {
                t.xAxis && t.yAxis && !t.grid && (t.grid = {})
            }))
        }

        function XE(t) {
            t.eachSeriesByType("radar", (function (t) {
                var e = t.getData(), n = [], i = t.coordinateSystem;
                if (i) {
                    var r = i.getIndicatorAxes();
                    mt(r, (function (t, o) {
                        e.each(e.mapDimension(r[o].dim), (function (t, e) {
                            n[e] = n[e] || [];
                            var r = i.dataToPoint(t, o);
                            n[e][o] = ZE(r) ? r : KE(i)
                        }))
                    })), e.each((function (t) {
                        var r = function (t, e, n) {
                            if (t && e) for (var i = 0, r = t.length; i < r; i++) if (e.call(n, t[i], i, t)) return t[i]
                        }(n[t], (function (t) {
                            return ZE(t)
                        })) || KE(i);
                        n[t].push(r.slice()), e.setItemLayout(t, n[t])
                    }))
                }
            }))
        }

        function ZE(t) {
            return !isNaN(t[0]) && !isNaN(t[1])
        }

        function KE(t) {
            return [t.cx, t.cy]
        }

        function QE(t) {
            var e = t.polar;
            if (e) {
                At(e) || (e = [e]);
                var n = [];
                mt(e, (function (e, i) {
                    e.indicator ? (e.type && !e.shape && (e.shape = e.type), t.radar = t.radar || [], At(t.radar) || (t.radar = [t.radar]), t.radar.push(e)) : n.push(e)
                })), t.polar = n
            }
            mt(t.series, (function (t) {
                t && "radar" === t.type && t.polarIndex && (t.radarIndex = t.polarIndex)
            }))
        }

        var $E = function (e) {
            function n() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.type = n.type, t
            }

            return G(n, e), n.prototype.render = function (e, n, i) {
                var r = e.coordinateSystem, o = this.group, a = e.getData(), s = this._data;

                function l(t, e) {
                    var n = t.getItemVisual(e, "symbol") || "circle";
                    if ("none" !== n) {
                        var i = rv(t.getItemVisual(e, "symbolSize")), r = iv(n, -1, -1, 2, 2),
                            o = t.getItemVisual(e, "symbolRotate") || 0;
                        return r.attr({
                            style: {strokeNoScale: !0},
                            z2: 100,
                            scaleX: i[0] / 2,
                            scaleY: i[1] / 2,
                            rotation: o * Math.PI / 180 || 0
                        }), r
                    }
                }

                function u(n, i, r, o, a, s) {
                    r.removeAll();
                    for (var u = 0; u < i.length - 1; u++) {
                        var c = l(o, a);
                        c && (c.__dimIdx = u, n[u] ? (c.setPosition(n[u]), t[s ? "initProps" : "updateProps"](c, {
                            x: i[u][0],
                            y: i[u][1]
                        }, e, a)) : c.setPosition(i[u]), r.add(c))
                    }
                }

                function c(t) {
                    return yt(t, (function (t) {
                        return [r.cx, r.cy]
                    }))
                }

                a.diff(s).add((function (t) {
                    var n = a.getItemLayout(t);
                    if (n) {
                        var i = new Lg, r = new Pg, o = {shape: {points: n}};
                        i.shape.points = c(n), r.shape.points = c(n), Xu(i, o, e, t), Xu(r, o, e, t);
                        var s = new xo, l = new xo;
                        s.add(r), s.add(i), s.add(l), u(r.shape.points, n, l, a, t, !0), a.setItemGraphicEl(t, s)
                    }
                })).update((function (t, n) {
                    var i = s.getItemGraphicEl(n), r = i.childAt(0), o = i.childAt(1), l = i.childAt(2),
                        c = {shape: {points: a.getItemLayout(t)}};
                    c.shape.points && (u(r.shape.points, c.shape.points, l, a, t, !1), Ju(o), Ju(r), ju(r, c, e), ju(o, c, e), a.setItemGraphicEl(t, i))
                })).remove((function (t) {
                    o.remove(s.getItemGraphicEl(t))
                })).execute(), a.eachItemGraphicEl((function (t, e) {
                    var n = a.getItemModel(e), i = t.childAt(0), r = t.childAt(1), s = t.childAt(2),
                        l = a.getItemVisual(e, "style"), u = l.fill;
                    o.add(t), i.useStyle(dt(n.getModel("lineStyle").getLineStyle(), {
                        fill: "none",
                        stroke: u
                    })), Fu(i, n, "lineStyle"), Fu(r, n, "areaStyle");
                    var c = n.getModel("areaStyle"), h = c.isEmpty() && c.parentModel.isEmpty();
                    r.ignore = h, mt(["emphasis", "select", "blur"], (function (t) {
                        var e = n.getModel([t, "areaStyle"]), i = e.isEmpty() && e.parentModel.isEmpty();
                        r.ensureState(t).ignore = i && h
                    })), r.useStyle(dt(c.getAreaStyle(), {fill: u, opacity: .7, decal: l.decal}));
                    var d = n.getModel("emphasis"), p = d.getModel("itemStyle").getItemStyle();
                    s.eachChild((function (t) {
                        if (t instanceof gl) {
                            var i = t.style;
                            t.useStyle(ht({image: i.image, x: i.x, y: i.y, width: i.width, height: i.height}, l))
                        } else t.useStyle(l), t.setColor(u), t.style.strokeNoScale = !0;
                        t.ensureState("emphasis").style = lt(p);
                        var r = a.getStore().get(a.getDimensionIndex(t.__dimIdx), e);
                        (null == r || isNaN(r)) && (r = ""), ic(t, rc(n), {
                            labelFetcher: a.hostModel,
                            labelDataIndex: e,
                            labelDimIndex: t.__dimIdx,
                            defaultText: r,
                            inheritColor: u,
                            defaultOpacity: l.opacity
                        })
                    })), ku(t, d.get("focus"), d.get("blurScope"), d.get("disabled"))
                })), this._data = a
            }, n.prototype.remove = function () {
                this.group.removeAll(), this._data = null
            }, n.type = "radar", n
        }(jm);
        const JE = $E;
        var tC = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.hasSymbolVisual = !0, n
            }

            return G(e, t), e.prototype.init = function (e) {
                t.prototype.init.apply(this, arguments), this.legendVisualProvider = new Cb(xt(this.getData, this), xt(this.getRawData, this))
            }, e.prototype.getInitialData = function (t, e) {
                return Ib(this, {generateCoord: "indicator_", generateCoordCount: 1 / 0})
            }, e.prototype.formatTooltip = function (t, e, n) {
                var i = this.getData(), r = this.coordinateSystem.getIndicatorAxes(), o = this.getData().getName(t),
                    a = "" === o ? this.name : o, s = Tf(this, t);
                return hf("section", {
                    header: a, sortBlocks: !0, blocks: yt(r, (function (e) {
                        var n = i.get(i.mapDimension(e.dim), t);
                        return hf("nameValue", {
                            markerType: "subItem",
                            markerColor: s,
                            name: e.name,
                            value: n,
                            sortParam: n
                        })
                    }))
                })
            }, e.prototype.getTooltipPosition = function (t) {
                if (null != t) for (var e = this.getData(), n = this.coordinateSystem, i = e.getValues(yt(n.dimensions, (function (t) {
                    return e.mapDimension(t)
                })), t), r = 0, o = i.length; r < o; r++) if (!isNaN(i[r])) {
                    var a = n.getIndicatorAxes();
                    return n.coordToPoint(a[r].dataToCoord(i[r]), r)
                }
            }, e.type = "series.radar", e.dependencies = ["radar"], e.defaultOption = {
                z: 2,
                colorBy: "data",
                coordinateSystem: "radar",
                legendHoverLink: !0,
                radarIndex: 0,
                lineStyle: {width: 2, type: "solid", join: "round"},
                label: {position: "top"},
                symbolSize: 8
            }, e
        }(kf);
        const eC = tC;
        var nC = Vb.value;

        function iC(t, e) {
            return dt({show: e}, t)
        }

        var rC = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.optionUpdated = function () {
                var t = this.get("boundaryGap"), e = this.get("splitNumber"), n = this.get("scale"),
                    i = this.get("axisLine"), r = this.get("axisTick"), o = this.get("axisLabel"),
                    a = this.get("axisName"), s = this.get(["axisName", "show"]),
                    l = this.get(["axisName", "formatter"]), u = this.get("axisNameGap"), c = this.get("triggerEvent"),
                    h = yt(this.get("indicator") || [], (function (h) {
                        null != h.max && h.max > 0 && !h.min ? h.min = 0 : null != h.min && h.min < 0 && !h.max && (h.max = 0);
                        var d = a;
                        null != h.color && (d = dt({color: h.color}, a));
                        var p = ut(lt(h), {
                            boundaryGap: t,
                            splitNumber: e,
                            scale: n,
                            axisLine: i,
                            axisTick: r,
                            axisLabel: o,
                            name: h.text,
                            showName: s,
                            nameLocation: "end",
                            nameGap: u,
                            nameTextStyle: d,
                            triggerEvent: c
                        }, !1);
                        if (It(l)) {
                            var f = p.name;
                            p.name = l.replace("{value}", null != f ? f : "")
                        } else bt(l) && (p.name = l(p.name, p));
                        var g = new wc(p, null, this.ecModel);
                        return ft(g, Gb.prototype), g.mainType = "radar", g.componentIndex = this.componentIndex, g
                    }), this);
                this._indicatorModels = h
            }, e.prototype.getIndicatorModels = function () {
                return this._indicatorModels
            }, e.type = "radar", e.defaultOption = {
                z: 0,
                center: ["50%", "50%"],
                radius: "75%",
                startAngle: 90,
                axisName: {show: !0},
                boundaryGap: [0, 0],
                splitNumber: 5,
                axisNameGap: 15,
                scale: !1,
                shape: "polygon",
                axisLine: ut({lineStyle: {color: "#bbb"}}, nC.axisLine),
                axisLabel: iC(nC.axisLabel, !1),
                axisTick: iC(nC.axisTick, !1),
                splitLine: iC(nC.splitLine, !0),
                splitArea: iC(nC.splitArea, !0),
                indicator: []
            }, e
        }(Fh);
        const oC = rC;
        var aC = ["axisLine", "axisTickLabel", "axisName"], sC = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                this.group.removeAll(), this._buildAxes(t), this._buildSplitLineAndArea(t)
            }, e.prototype._buildAxes = function (t) {
                var e = t.coordinateSystem;
                mt(yt(e.getIndicatorAxes(), (function (t) {
                    var n = t.model.get("showName") ? t.name : "";
                    return new CE(t.model, {
                        axisName: n,
                        position: [e.cx, e.cy],
                        rotation: t.angle,
                        labelDirection: -1,
                        tickDirection: -1,
                        nameDirection: 1
                    })
                })), (function (t) {
                    mt(aC, t.add, t), this.group.add(t.getGroup())
                }), this)
            }, e.prototype._buildSplitLineAndArea = function (t) {
                var e = t.coordinateSystem, n = e.getIndicatorAxes();
                if (n.length) {
                    var i = t.get("shape"), r = t.getModel("splitLine"), o = t.getModel("splitArea"),
                        a = r.getModel("lineStyle"), s = o.getModel("areaStyle"), l = r.get("show"), u = o.get("show"),
                        c = a.get("color"), h = s.get("color"), d = At(c) ? c : [c], p = At(h) ? h : [h], f = [],
                        g = [];
                    if ("circle" === i) for (var m = n[0].getTicksCoords(), y = e.cx, v = e.cy, _ = 0; _ < m.length; _++) {
                        if (l) f[C(f, d, _)].push(new sg({shape: {cx: y, cy: v, r: m[_].coord}}));
                        if (u && _ < m.length - 1) g[C(g, p, _)].push(new wg({
                            shape: {
                                cx: y,
                                cy: v,
                                r0: m[_].coord,
                                r: m[_ + 1].coord
                            }
                        }))
                    } else {
                        var T, x = yt(n, (function (t, n) {
                            var i = t.getTicksCoords();
                            return T = null == T ? i.length - 1 : Math.min(i.length - 1, T), yt(i, (function (t) {
                                return e.coordToPoint(t.coord, n)
                            }))
                        })), S = [];
                        for (_ = 0; _ <= T; _++) {
                            for (var A = [], b = 0; b < n.length; b++) A.push(x[b][_]);
                            if (A[0] && A.push(A[0].slice()), l) f[C(f, d, _)].push(new Pg({shape: {points: A}}));
                            if (u && S) g[C(g, p, _ - 1)].push(new Lg({shape: {points: A.concat(S)}}));
                            S = A.slice().reverse()
                        }
                    }
                    var I = a.getLineStyle(), E = s.getAreaStyle();
                    mt(g, (function (t, e) {
                        this.group.add(Tm(t, {style: dt({stroke: "none", fill: p[e % p.length]}, E), silent: !0}))
                    }), this), mt(f, (function (t, e) {
                        this.group.add(Tm(t, {style: dt({fill: "none", stroke: d[e % d.length]}, I), silent: !0}))
                    }), this)
                }

                function C(t, e, n) {
                    var i = n % e.length;
                    return t[i] = t[i] || [], i
                }
            }, e.type = "radar", e
        }(Gf);
        const lC = sC;
        var uC = function (t) {
            function e(e, n, i) {
                var r = t.call(this, e, n, i) || this;
                return r.type = "value", r.angle = 0, r.name = "", r
            }

            return G(e, t), e
        }(sE);
        const cC = uC;
        var hC = function () {
            function t(t, e, n) {
                this.dimensions = [], this._model = t, this._indicatorAxes = yt(t.getIndicatorModels(), (function (t, e) {
                    var n = "indicator_" + e, i = new cC(n, new uI);
                    return i.name = t.get("name"), i.model = t, t.axis = i, this.dimensions.push(n), i
                }), this), this.resize(t, n)
            }

            return t.prototype.getIndicatorAxes = function () {
                return this._indicatorAxes
            }, t.prototype.dataToPoint = function (t, e) {
                var n = this._indicatorAxes[e];
                return this.coordToPoint(n.dataToCoord(t), e)
            }, t.prototype.coordToPoint = function (t, e) {
                var n = this._indicatorAxes[e].angle;
                return [this.cx + t * Math.cos(n), this.cy - t * Math.sin(n)]
            }, t.prototype.pointToData = function (t) {
                var e = t[0] - this.cx, n = t[1] - this.cy, i = Math.sqrt(e * e + n * n);
                e /= i, n /= i;
                for (var r, o = Math.atan2(-n, e), a = 1 / 0, s = -1, l = 0; l < this._indicatorAxes.length; l++) {
                    var u = this._indicatorAxes[l], c = Math.abs(o - u.angle);
                    c < a && (r = u, s = l, a = c)
                }
                return [s, +(r && r.coordToData(i))]
            }, t.prototype.resize = function (t, e) {
                var n = t.get("center"), i = e.getWidth(), r = e.getHeight(), o = Math.min(i, r) / 2;
                this.cx = wo(n[0], i), this.cy = wo(n[1], r), this.startAngle = t.get("startAngle") * Math.PI / 180;
                var a = t.get("radius");
                (It(a) || Ct(a)) && (a = [0, a]), this.r0 = wo(a[0], o), this.r = wo(a[1], o), mt(this._indicatorAxes, (function (t, e) {
                    t.setExtent(this.r0, this.r);
                    var n = this.startAngle + e * Math.PI * 2 / this._indicatorAxes.length;
                    n = Math.atan2(Math.sin(n), Math.cos(n)), t.angle = n
                }), this)
            }, t.prototype.update = function (t, e) {
                var n = this._indicatorAxes, i = this._model;
                mt(n, (function (t) {
                    t.scale.setExtent(1 / 0, -1 / 0)
                })), t.eachSeriesByType("radar", (function (e, r) {
                    if ("radar" === e.get("coordinateSystem") && t.getComponent("radar", e.get("radarIndex")) === i) {
                        var o = e.getData();
                        mt(n, (function (t) {
                            t.scale.unionExtentFromData(o, o.mapDimension(t.dim))
                        }))
                    }
                }), this);
                var r = i.get("splitNumber"), o = new uI;
                o.setExtent(0, r), o.setInterval(1), mt(n, (function (t, e) {
                    fE(t.scale, t.model, o)
                }))
            }, t.prototype.convertToPixel = function (t, e, n) {
                return console.warn("Not implemented."), null
            }, t.prototype.convertFromPixel = function (t, e, n) {
                return console.warn("Not implemented."), null
            }, t.prototype.containPoint = function (t) {
                return console.warn("Not implemented."), !1
            }, t.create = function (e, n) {
                var i = [];
                return e.eachComponent("radar", (function (r) {
                    var o = new t(r, e, n);
                    i.push(o), r.coordinateSystem = o
                })), e.eachSeriesByType("radar", (function (t) {
                    "radar" === t.get("coordinateSystem") && (t.coordinateSystem = i[t.get("radarIndex") || 0])
                })), i
            }, t.dimensions = [], t
        }();
        const dC = hC;

        function pC(t) {
            t.registerCoordinateSystem("radar", dC), t.registerComponentModel(oC), t.registerComponentView(lC), t.registerVisual({
                seriesType: "radar",
                reset: function (t) {
                    var e = t.getData();
                    e.each((function (t) {
                        e.setItemVisual(t, "legendIcon", "roundRect")
                    })), e.setVisual("legendIcon", "roundRect")
                }
            })
        }

        var fC = "\0_ec_interaction_mutex";

        function gC(t, e) {
            return !!mC(t)[e]
        }

        function mC(t) {
            return t[fC] || (t[fC] = {})
        }

        G_({type: "takeGlobalCursor", event: "globalCursorTaken", update: "update"}, $t);
        var yC = function (t) {
            function e(e) {
                var n = t.call(this) || this;
                n._zr = e;
                var i = xt(n._mousedownHandler, n), r = xt(n._mousemoveHandler, n), o = xt(n._mouseupHandler, n),
                    a = xt(n._mousewheelHandler, n), s = xt(n._pinchHandler, n);
                return n.enable = function (t, n) {
                    this.disable(), this._opt = dt(lt(n) || {}, {
                        zoomOnMouseWheel: !0,
                        moveOnMouseMove: !0,
                        moveOnMouseWheel: !1,
                        preventDefaultMouseMove: !0
                    }), null == t && (t = !0), !0 !== t && "move" !== t && "pan" !== t || (e.on("mousedown", i), e.on("mousemove", r), e.on("mouseup", o)), !0 !== t && "scale" !== t && "zoom" !== t || (e.on("mousewheel", a), e.on("pinch", s))
                }, n.disable = function () {
                    e.off("mousedown", i), e.off("mousemove", r), e.off("mouseup", o), e.off("mousewheel", a), e.off("pinch", s)
                }, n
            }

            return G(e, t), e.prototype.isDragging = function () {
                return this._dragging
            }, e.prototype.isPinching = function () {
                return this._pinching
            }, e.prototype.setPointerChecker = function (t) {
                this.pointerChecker = t
            }, e.prototype.dispose = function () {
                this.disable()
            }, e.prototype._mousedownHandler = function (t) {
                if (!Ve(t)) {
                    for (var e = t.target; e;) {
                        if (e.draggable) return;
                        e = e.__hostTarget || e.parent
                    }
                    var n = t.offsetX, i = t.offsetY;
                    this.pointerChecker && this.pointerChecker(t, n, i) && (this._x = n, this._y = i, this._dragging = !0)
                }
            }, e.prototype._mousemoveHandler = function (t) {
                if (this._dragging && TC("moveOnMouseMove", t, this._opt) && "pinch" !== t.gestureEvent && !gC(this._zr, "globalPan")) {
                    var e = t.offsetX, n = t.offsetY, i = this._x, r = this._y, o = e - i, a = n - r;
                    this._x = e, this._y = n, this._opt.preventDefaultMouseMove && Ue(t.event), _C(this, "pan", "moveOnMouseMove", t, {
                        dx: o,
                        dy: a,
                        oldX: i,
                        oldY: r,
                        newX: e,
                        newY: n,
                        isAvailableBehavior: null
                    })
                }
            }, e.prototype._mouseupHandler = function (t) {
                Ve(t) || (this._dragging = !1)
            }, e.prototype._mousewheelHandler = function (t) {
                var e = TC("zoomOnMouseWheel", t, this._opt), n = TC("moveOnMouseWheel", t, this._opt),
                    i = t.wheelDelta, r = Math.abs(i), o = t.offsetX, a = t.offsetY;
                if (0 !== i && (e || n)) {
                    if (e) {
                        var s = r > 3 ? 1.4 : r > 1 ? 1.2 : 1.1;
                        vC(this, "zoom", "zoomOnMouseWheel", t, {
                            scale: i > 0 ? s : 1 / s,
                            originX: o,
                            originY: a,
                            isAvailableBehavior: null
                        })
                    }
                    if (n) {
                        var l = Math.abs(i);
                        vC(this, "scrollMove", "moveOnMouseWheel", t, {
                            scrollDelta: (i > 0 ? 1 : -1) * (l > 3 ? .4 : l > 1 ? .15 : .05),
                            originX: o,
                            originY: a,
                            isAvailableBehavior: null
                        })
                    }
                }
            }, e.prototype._pinchHandler = function (t) {
                gC(this._zr, "globalPan") || vC(this, "zoom", null, t, {
                    scale: t.pinchScale > 1 ? 1.1 : 1 / 1.1,
                    originX: t.pinchX,
                    originY: t.pinchY,
                    isAvailableBehavior: null
                })
            }, e
        }(Se);

        function vC(t, e, n, i, r) {
            t.pointerChecker && t.pointerChecker(i, r.originX, r.originY) && (Ue(i.event), _C(t, e, n, i, r))
        }

        function _C(t, e, n, i, r) {
            r.isAvailableBehavior = xt(TC, null, n, i), t.trigger(e, r)
        }

        function TC(t, e, n) {
            var i = n[t];
            return !t || i && (!It(i) || e.event[i + "Key"])
        }

        const xC = yC;

        function SC(t, e, n) {
            var i = t.target;
            i.x += e, i.y += n, i.dirty()
        }

        function AC(t, e, n, i) {
            var r = t.target, o = t.zoomLimit, a = t.zoom = t.zoom || 1;
            if (a *= e, o) {
                var s = o.min || 0, l = o.max || 1 / 0;
                a = Math.max(Math.min(l, a), s)
            }
            var u = a / t.zoom;
            t.zoom = a, r.x -= (n - r.x) * (u - 1), r.y -= (i - r.y) * (u - 1), r.scaleX *= u, r.scaleY *= u, r.dirty()
        }

        var bC, IC = {axisPointer: 1, tooltip: 1, brush: 1};

        function EC(t, e, n) {
            var i = e.getComponentByElement(t.topTarget), r = i && i.coordinateSystem;
            return i && i !== n && !IC.hasOwnProperty(i.mainType) && r && r.model !== n
        }

        function CC(t) {
            It(t) && (t = (new DOMParser).parseFromString(t, "text/xml"));
            var e = t;
            for (9 === e.nodeType && (e = e.firstChild); "svg" !== e.nodeName.toLowerCase() || 1 !== e.nodeType;) e = e.nextSibling;
            return e
        }

        var DC = {
                fill: "fill",
                stroke: "stroke",
                "stroke-width": "lineWidth",
                opacity: "opacity",
                "fill-opacity": "fillOpacity",
                "stroke-opacity": "strokeOpacity",
                "stroke-dasharray": "lineDash",
                "stroke-dashoffset": "lineDashOffset",
                "stroke-linecap": "lineCap",
                "stroke-linejoin": "lineJoin",
                "stroke-miterlimit": "miterLimit",
                "font-family": "fontFamily",
                "font-size": "fontSize",
                "font-style": "fontStyle",
                "font-weight": "fontWeight",
                "text-anchor": "textAlign",
                visibility: "visibility",
                display: "display"
            }, wC = Tt(DC), MC = {"alignment-baseline": "textBaseline", "stop-color": "stopColor"}, NC = Tt(MC),
            OC = function () {
                function t() {
                    this._defs = {}, this._root = null
                }

                return t.prototype.parse = function (t, e) {
                    e = e || {};
                    var n = CC(t);
                    this._defsUsePending = [];
                    var i = new xo;
                    this._root = i;
                    var r = [], o = n.getAttribute("viewBox") || "", a = parseFloat(n.getAttribute("width") || e.width),
                        s = parseFloat(n.getAttribute("height") || e.height);
                    isNaN(a) && (a = null), isNaN(s) && (s = null), BC(n, i, null, !0, !1);
                    for (var l, u, c = n.firstChild; c;) this._parseNode(c, i, r, null, !1, !1), c = c.nextSibling;
                    if (function (t, e) {
                        for (var n = 0; n < e.length; n++) {
                            var i = e[n];
                            i[0].style[i[1]] = t[i[2]]
                        }
                    }(this._defs, this._defsUsePending), this._defsUsePending = [], o) {
                        var h = VC(o);
                        h.length >= 4 && (l = {
                            x: parseFloat(h[0] || 0),
                            y: parseFloat(h[1] || 0),
                            width: parseFloat(h[2]),
                            height: parseFloat(h[3])
                        })
                    }
                    if (l && null != a && null != s && (u = jC(l, {
                        x: 0,
                        y: 0,
                        width: a,
                        height: s
                    }), !e.ignoreViewBox)) {
                        var d = i;
                        (i = new xo).add(d), d.scaleX = d.scaleY = u.scale, d.x = u.x, d.y = u.y
                    }
                    return e.ignoreRootClip || null == a || null == s || i.setClipPath(new Al({
                        shape: {
                            x: 0,
                            y: 0,
                            width: a,
                            height: s
                        }
                    })), {root: i, width: a, height: s, viewBoxRect: l, viewBoxTransform: u, named: r}
                }, t.prototype._parseNode = function (t, e, n, i, r, o) {
                    var a, s = t.nodeName.toLowerCase(), l = i;
                    if ("defs" === s && (r = !0), "text" === s && (o = !0), "defs" === s || "switch" === s) a = e; else {
                        if (!r) {
                            var u = bC[s];
                            if (u && Qt(bC, s)) {
                                a = u.call(this, t, e);
                                var c = t.getAttribute("name");
                                if (c) {
                                    var h = {name: c, namedFrom: null, svgNodeTagLower: s, el: a};
                                    n.push(h), "g" === s && (l = h)
                                } else i && n.push({name: i.name, namedFrom: i, svgNodeTagLower: s, el: a});
                                e.add(a)
                            }
                        }
                        var d = LC[s];
                        if (d && Qt(LC, s)) {
                            var p = d.call(this, t), f = t.getAttribute("id");
                            f && (this._defs[f] = p)
                        }
                    }
                    if (a && a.isGroup) for (var g = t.firstChild; g;) 1 === g.nodeType ? this._parseNode(g, a, n, l, r, o) : 3 === g.nodeType && o && this._parseText(g, a), g = g.nextSibling
                }, t.prototype._parseText = function (t, e) {
                    var n = new hl({
                        style: {text: t.textContent},
                        silent: !0,
                        x: this._textX || 0,
                        y: this._textY || 0
                    });
                    PC(e, n), BC(t, n, this._defsUsePending, !1, !1), function (t, e) {
                        var n = e.__selfStyle;
                        if (n) {
                            var i = n.textBaseline, r = i;
                            i && "auto" !== i ? "baseline" === i ? r = "alphabetic" : "before-edge" === i || "text-before-edge" === i ? r = "top" : "after-edge" === i || "text-after-edge" === i ? r = "bottom" : "central" !== i && "mathematical" !== i || (r = "middle") : r = "alphabetic", t.style.textBaseline = r
                        }
                        var o = e.__inheritedStyle;
                        if (o) {
                            var a = o.textAlign, s = a;
                            a && ("middle" === a && (s = "center"), t.style.textAlign = s)
                        }
                    }(n, e);
                    var i = n.style, r = i.fontSize;
                    r && r < 9 && (i.fontSize = 9, n.scaleX *= r / 9, n.scaleY *= r / 9);
                    var o = (i.fontSize || i.fontFamily) && [i.fontStyle, i.fontWeight, (i.fontSize || 12) + "px", i.fontFamily || "sans-serif"].join(" ");
                    i.font = o;
                    var a = n.getBoundingRect();
                    return this._textX += a.width, e.add(n), n
                }, t.internalField = void (bC = {
                    g: function (t, e) {
                        var n = new xo;
                        return PC(e, n), BC(t, n, this._defsUsePending, !1, !1), n
                    }, rect: function (t, e) {
                        var n = new Al;
                        return PC(e, n), BC(t, n, this._defsUsePending, !1, !1), n.setShape({
                            x: parseFloat(t.getAttribute("x") || "0"),
                            y: parseFloat(t.getAttribute("y") || "0"),
                            width: parseFloat(t.getAttribute("width") || "0"),
                            height: parseFloat(t.getAttribute("height") || "0")
                        }), n.silent = !0, n
                    }, circle: function (t, e) {
                        var n = new sg;
                        return PC(e, n), BC(t, n, this._defsUsePending, !1, !1), n.setShape({
                            cx: parseFloat(t.getAttribute("cx") || "0"),
                            cy: parseFloat(t.getAttribute("cy") || "0"),
                            r: parseFloat(t.getAttribute("r") || "0")
                        }), n.silent = !0, n
                    }, line: function (t, e) {
                        var n = new Hg;
                        return PC(e, n), BC(t, n, this._defsUsePending, !1, !1), n.setShape({
                            x1: parseFloat(t.getAttribute("x1") || "0"),
                            y1: parseFloat(t.getAttribute("y1") || "0"),
                            x2: parseFloat(t.getAttribute("x2") || "0"),
                            y2: parseFloat(t.getAttribute("y2") || "0")
                        }), n.silent = !0, n
                    }, ellipse: function (t, e) {
                        var n = new cg;
                        return PC(e, n), BC(t, n, this._defsUsePending, !1, !1), n.setShape({
                            cx: parseFloat(t.getAttribute("cx") || "0"),
                            cy: parseFloat(t.getAttribute("cy") || "0"),
                            rx: parseFloat(t.getAttribute("rx") || "0"),
                            ry: parseFloat(t.getAttribute("ry") || "0")
                        }), n.silent = !0, n
                    }, polygon: function (t, e) {
                        var n, i = t.getAttribute("points");
                        i && (n = GC(i));
                        var r = new Lg({shape: {points: n || []}, silent: !0});
                        return PC(e, r), BC(t, r, this._defsUsePending, !1, !1), r
                    }, polyline: function (t, e) {
                        var n, i = t.getAttribute("points");
                        i && (n = GC(i));
                        var r = new Pg({shape: {points: n || []}, silent: !0});
                        return PC(e, r), BC(t, r, this._defsUsePending, !1, !1), r
                    }, image: function (t, e) {
                        var n = new gl;
                        return PC(e, n), BC(t, n, this._defsUsePending, !1, !1), n.setStyle({
                            image: t.getAttribute("xlink:href") || t.getAttribute("href"),
                            x: +t.getAttribute("x"),
                            y: +t.getAttribute("y"),
                            width: +t.getAttribute("width"),
                            height: +t.getAttribute("height")
                        }), n.silent = !0, n
                    }, text: function (t, e) {
                        var n = t.getAttribute("x") || "0", i = t.getAttribute("y") || "0",
                            r = t.getAttribute("dx") || "0", o = t.getAttribute("dy") || "0";
                        this._textX = parseFloat(n) + parseFloat(r), this._textY = parseFloat(i) + parseFloat(o);
                        var a = new xo;
                        return PC(e, a), BC(t, a, this._defsUsePending, !1, !0), a
                    }, tspan: function (t, e) {
                        var n = t.getAttribute("x"), i = t.getAttribute("y");
                        null != n && (this._textX = parseFloat(n)), null != i && (this._textY = parseFloat(i));
                        var r = t.getAttribute("dx") || "0", o = t.getAttribute("dy") || "0", a = new xo;
                        return PC(e, a), BC(t, a, this._defsUsePending, !1, !0), this._textX += parseFloat(r), this._textY += parseFloat(o), a
                    }, path: function (t, e) {
                        var n = ig(t.getAttribute("d") || "");
                        return PC(e, n), BC(t, n, this._defsUsePending, !1, !1), n.silent = !0, n
                    }
                }), t
            }(), LC = {
                lineargradient: function (t) {
                    var e = parseInt(t.getAttribute("x1") || "0", 10), n = parseInt(t.getAttribute("y1") || "0", 10),
                        i = parseInt(t.getAttribute("x2") || "10", 10), r = parseInt(t.getAttribute("y2") || "0", 10),
                        o = new $g(e, n, i, r);
                    return RC(t, o), kC(t, o), o
                }, radialgradient: function (t) {
                    var e = parseInt(t.getAttribute("cx") || "0", 10), n = parseInt(t.getAttribute("cy") || "0", 10),
                        i = parseInt(t.getAttribute("r") || "0", 10), r = new Jg(e, n, i);
                    return RC(t, r), kC(t, r), r
                }
            };

        function RC(t, e) {
            "userSpaceOnUse" === t.getAttribute("gradientUnits") && (e.global = !0)
        }

        function kC(t, e) {
            for (var n = t.firstChild; n;) {
                if (1 === n.nodeType && "stop" === n.nodeName.toLocaleLowerCase()) {
                    var i = n.getAttribute("offset"), r = void 0;
                    r = i && i.indexOf("%") > 0 ? parseInt(i, 10) / 100 : i ? parseFloat(i) : 0;
                    var o = {};
                    qC(n, o, o);
                    var a = o.stopColor || n.getAttribute("stop-color") || "#000000";
                    e.colorStops.push({offset: r, color: a})
                }
                n = n.nextSibling
            }
        }

        function PC(t, e) {
            t && t.__inheritedStyle && (e.__inheritedStyle || (e.__inheritedStyle = {}), dt(e.__inheritedStyle, t.__inheritedStyle))
        }

        function GC(t) {
            for (var e = VC(t), n = [], i = 0; i < e.length; i += 2) {
                var r = parseFloat(e[i]), o = parseFloat(e[i + 1]);
                n.push([r, o])
            }
            return n
        }

        function BC(t, e, n, i, r) {
            var o = e, a = o.__inheritedStyle = o.__inheritedStyle || {}, s = {};
            1 === t.nodeType && (function (t, e) {
                var n = t.getAttribute("transform");
                if (n) {
                    n = n.replace(/,/g, " ");
                    var i = [], r = null;
                    n.replace(zC, (function (t, e, n) {
                        return i.push(e, n), ""
                    }));
                    for (var o = i.length - 1; o > 0; o -= 2) {
                        var a = i[o], s = i[o - 1], l = VC(a);
                        switch (r = r || [1, 0, 0, 1, 0, 0], s) {
                            case"translate":
                                Ze(r, r, [parseFloat(l[0]), parseFloat(l[1] || "0")]);
                                break;
                            case"scale":
                                Qe(r, r, [parseFloat(l[0]), parseFloat(l[1] || l[0])]);
                                break;
                            case"rotate":
                                Ke(r, r, -parseFloat(l[0]) * WC);
                                break;
                            case"skewX":
                                Xe(r, [1, 0, Math.tan(parseFloat(l[0]) * WC), 1, 0, 0], r);
                                break;
                            case"skewY":
                                Xe(r, [1, Math.tan(parseFloat(l[0]) * WC), 0, 1, 0, 0], r);
                                break;
                            case"matrix":
                                r[0] = parseFloat(l[0]), r[1] = parseFloat(l[1]), r[2] = parseFloat(l[2]), r[3] = parseFloat(l[3]), r[4] = parseFloat(l[4]), r[5] = parseFloat(l[5])
                        }
                    }
                    e.setLocalTransform(r)
                }
            }(t, e), qC(t, a, s), i || function (t, e, n) {
                for (var i = 0; i < wC.length; i++) {
                    var r = wC[i];
                    null != (o = t.getAttribute(r)) && (e[DC[r]] = o)
                }
                for (i = 0; i < NC.length; i++) {
                    var o;
                    r = NC[i];
                    null != (o = t.getAttribute(r)) && (n[MC[r]] = o)
                }
            }(t, a, s)), o.style = o.style || {}, null != a.fill && (o.style.fill = HC(o, "fill", a.fill, n)), null != a.stroke && (o.style.stroke = HC(o, "stroke", a.stroke, n)), mt(["lineWidth", "opacity", "fillOpacity", "strokeOpacity", "miterLimit", "fontSize"], (function (t) {
                null != a[t] && (o.style[t] = parseFloat(a[t]))
            })), mt(["lineDashOffset", "lineCap", "lineJoin", "fontWeight", "fontFamily", "fontStyle", "textAlign"], (function (t) {
                null != a[t] && (o.style[t] = a[t])
            })), r && (o.__selfStyle = s), a.lineDash && (o.style.lineDash = yt(VC(a.lineDash), (function (t) {
                return parseFloat(t)
            }))), "hidden" !== a.visibility && "collapse" !== a.visibility || (o.invisible = !0), "none" === a.display && (o.ignore = !0)
        }

        var FC = /^url\(\s*#(.*?)\)/;

        function HC(t, e, n, i) {
            var r = n && n.match(FC);
            if (!r) return "none" === n && (n = null), n;
            var o = Ht(r[1]);
            i.push([t, e, o])
        }

        var UC = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;

        function VC(t) {
            return t.match(UC) || []
        }

        var zC = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g, WC = Math.PI / 180;
        var YC = /([^\s:;]+)\s*:\s*([^:;]+)/g;

        function qC(t, e, n) {
            var i, r = t.getAttribute("style");
            if (r) for (YC.lastIndex = 0; null != (i = YC.exec(r));) {
                var o = i[1], a = Qt(DC, o) ? DC[o] : null;
                a && (e[a] = i[2]);
                var s = Qt(MC, o) ? MC[o] : null;
                s && (n[s] = i[2])
            }
        }

        function jC(t, e) {
            var n = e.width / t.width, i = e.height / t.height, r = Math.min(n, i);
            return {
                scale: r,
                x: -(t.x + t.width / 2) * r + (e.x + e.width / 2),
                y: -(t.y + t.height / 2) * r + (e.y + e.height / 2)
            }
        }

        var XC = 1e-8;

        function ZC(t, e) {
            return Math.abs(t - e) < XC
        }

        function KC(t, e, n) {
            var i = 0, r = t[0];
            if (!r) return !1;
            for (var o = 1; o < t.length; o++) {
                var a = t[o];
                i += Xs(r[0], r[1], a[0], a[1], e, n), r = a
            }
            var s = t[0];
            return ZC(r[0], s[0]) && ZC(r[1], s[1]) || (i += Xs(r[0], r[1], s[0], s[1], e, n)), 0 !== i
        }

        var QC = [];

        function $C(t, e) {
            for (var n = 0; n < t.length; n++) ge(t[n], t[n], e)
        }

        function JC(t, e, n, i) {
            for (var r = 0; r < t.length; r++) {
                var o = t[r];
                i && (o = i.project(o)), o && isFinite(o[0]) && isFinite(o[1]) && (me(e, e, o), ye(n, n, o))
            }
        }

        var tD = function () {
                function t(t) {
                    this.name = t
                }

                return t.prototype.setCenter = function (t) {
                    this._center = t
                }, t.prototype.getCenter = function () {
                    var t = this._center;
                    return t || (t = this._center = this.calcCenter()), t
                }, t
            }(), eD = function (t, e) {
                this.type = "polygon", this.exterior = t, this.interiors = e
            }, nD = function (t) {
                this.type = "linestring", this.points = t
            }, iD = function (t) {
                function e(e, n, i) {
                    var r = t.call(this, e) || this;
                    return r.type = "geoJSON", r.geometries = n, r._center = i && [i[0], i[1]], r
                }

                return G(e, t), e.prototype.calcCenter = function () {
                    for (var t, e = this.geometries, n = 0, i = 0; i < e.length; i++) {
                        var r = e[i], o = r.exterior, a = o && o.length;
                        a > n && (t = r, n = a)
                    }
                    if (t) return function (t) {
                        for (var e = 0, n = 0, i = 0, r = t.length, o = t[r - 1][0], a = t[r - 1][1], s = 0; s < r; s++) {
                            var l = t[s][0], u = t[s][1], c = o * u - l * a;
                            e += c, n += (o + l) * c, i += (a + u) * c, o = l, a = u
                        }
                        return e ? [n / e / 3, i / e / 3, e] : [t[0][0] || 0, t[0][1] || 0]
                    }(t.exterior);
                    var s = this.getBoundingRect();
                    return [s.x + s.width / 2, s.y + s.height / 2]
                }, e.prototype.getBoundingRect = function (t) {
                    var e = this._rect;
                    if (e && !t) return e;
                    var n = [1 / 0, 1 / 0], i = [-1 / 0, -1 / 0];
                    return mt(this.geometries, (function (e) {
                        "polygon" === e.type ? JC(e.exterior, n, i, t) : mt(e.points, (function (e) {
                            JC(e, n, i, t)
                        }))
                    })), isFinite(n[0]) && isFinite(n[1]) && isFinite(i[0]) && isFinite(i[1]) || (n[0] = n[1] = i[0] = i[1] = 0), e = new hn(n[0], n[1], i[0] - n[0], i[1] - n[1]), t || (this._rect = e), e
                }, e.prototype.contain = function (t) {
                    var e = this.getBoundingRect(), n = this.geometries;
                    if (!e.contain(t[0], t[1])) return !1;
                    t:for (var i = 0, r = n.length; i < r; i++) {
                        var o = n[i];
                        if ("polygon" === o.type) {
                            var a = o.exterior, s = o.interiors;
                            if (KC(a, t[0], t[1])) {
                                for (var l = 0; l < (s ? s.length : 0); l++) if (KC(s[l], t[0], t[1])) continue t;
                                return !0
                            }
                        }
                    }
                    return !1
                }, e.prototype.transformTo = function (t, e, n, i) {
                    var r = this.getBoundingRect(), o = r.width / r.height;
                    n ? i || (i = n / o) : n = o * i;
                    for (var a = new hn(t, e, n, i), s = r.calculateTransform(a), l = this.geometries, u = 0; u < l.length; u++) {
                        var c = l[u];
                        "polygon" === c.type ? ($C(c.exterior, s), mt(c.interiors, (function (t) {
                            $C(t, s)
                        }))) : mt(c.points, (function (t) {
                            $C(t, s)
                        }))
                    }
                    (r = this._rect).copy(a), this._center = [r.x + r.width / 2, r.y + r.height / 2]
                }, e.prototype.cloneShallow = function (t) {
                    null == t && (t = this.name);
                    var n = new e(t, this.geometries, this._center);
                    return n._rect = this._rect, n.transformTo = null, n
                }, e
            }(tD), rD = function (t) {
                function e(e, n) {
                    var i = t.call(this, e) || this;
                    return i.type = "geoSVG", i._elOnlyForCalculate = n, i
                }

                return G(e, t), e.prototype.calcCenter = function () {
                    for (var t = this._elOnlyForCalculate, e = t.getBoundingRect(), n = [e.x + e.width / 2, e.y + e.height / 2], i = qe(QC), r = t; r && !r.isGeoSVGGraphicRoot;) Xe(i, r.getLocalTransform(), i), r = r.parent;
                    return $e(i, i), ge(n, n, i), n
                }, e
            }(tD), oD = jt(["rect", "circle", "line", "ellipse", "polygon", "polyline", "path", "text", "tspan", "g"]),
            aD = function () {
                function t(t, e) {
                    this.type = "geoSVG", this._usedGraphicMap = jt(), this._freedGraphics = [], this._mapName = t, this._parsedXML = CC(e)
                }

                return t.prototype.load = function () {
                    var t = this._firstGraphic;
                    if (!t) {
                        t = this._firstGraphic = this._buildGraphic(this._parsedXML), this._freedGraphics.push(t), this._boundingRect = this._firstGraphic.boundingRect.clone();
                        var e = function (t) {
                            var e = [], n = jt();
                            return mt(t, (function (t) {
                                if (null == t.namedFrom) {
                                    var i = new rD(t.name, t.el);
                                    e.push(i), n.set(t.name, i)
                                }
                            })), {regions: e, regionsMap: n}
                        }(t.named), n = e.regions, i = e.regionsMap;
                        this._regions = n, this._regionsMap = i
                    }
                    return {boundingRect: this._boundingRect, regions: this._regions, regionsMap: this._regionsMap}
                }, t.prototype._buildGraphic = function (t) {
                    var e, n, i, r;
                    try {
                        Ft(null != (n = (e = t && (i = t, r = {
                            ignoreViewBox: !0,
                            ignoreRootClip: !0
                        }, (new OC).parse(i, r)) || {}).root))
                    } catch (t) {
                        throw new Error("Invalid svg format\n" + t.message)
                    }
                    var o = new xo;
                    o.add(n), o.isGeoSVGGraphicRoot = !0;
                    var a = e.width, s = e.height, l = e.viewBoxRect, u = this._boundingRect;
                    if (!u) {
                        var c = void 0, h = void 0, d = void 0, p = void 0;
                        if (null != a ? (c = 0, d = a) : l && (c = l.x, d = l.width), null != s ? (h = 0, p = s) : l && (h = l.y, p = l.height), null == c || null == h) {
                            var f = n.getBoundingRect();
                            null == c && (c = f.x, d = f.width), null == h && (h = f.y, p = f.height)
                        }
                        u = this._boundingRect = new hn(c, h, d, p)
                    }
                    if (l) {
                        var g = jC(l, u);
                        n.scaleX = n.scaleY = g.scale, n.x = g.x, n.y = g.y
                    }
                    o.setClipPath(new Al({shape: u.plain()}));
                    var m = [];
                    return mt(e.named, (function (t) {
                        var e;
                        null != oD.get(t.svgNodeTagLower) && (m.push(t), (e = t.el).silent = !1, e.isGroup && e.traverse((function (t) {
                            t.silent = !1
                        })))
                    })), {root: o, boundingRect: u, named: m}
                }, t.prototype.useGraphic = function (t) {
                    var e = this._usedGraphicMap, n = e.get(t);
                    return n || (n = this._freedGraphics.pop() || this._buildGraphic(this._parsedXML), e.set(t, n), n)
                }, t.prototype.freeGraphic = function (t) {
                    var e = this._usedGraphicMap, n = e.get(t);
                    n && (e.removeKey(t), this._freedGraphics.push(n))
                }, t
            }();

        function sD(t, e, n) {
            for (var i = 0; i < t.length; i++) t[i] = lD(t[i], e[i], n)
        }

        function lD(t, e, n) {
            for (var i = [], r = e[0], o = e[1], a = 0; a < t.length; a += 2) {
                var s = t.charCodeAt(a) - 64, l = t.charCodeAt(a + 1) - 64;
                s = s >> 1 ^ -(1 & s), l = l >> 1 ^ -(1 & l), r = s += r, o = l += o, i.push([s / n, l / n])
            }
            return i
        }

        function uD(t, e) {
            return yt(_t((t = function (t) {
                if (!t.UTF8Encoding) return t;
                var e = t, n = e.UTF8Scale;
                return null == n && (n = 1024), mt(e.features, (function (t) {
                    var e = t.geometry, i = e.encodeOffsets, r = e.coordinates;
                    if (i) switch (e.type) {
                        case"LineString":
                            e.coordinates = lD(r, i, n);
                            break;
                        case"Polygon":
                        case"MultiLineString":
                            sD(r, i, n);
                            break;
                        case"MultiPolygon":
                            mt(r, (function (t, e) {
                                return sD(t, i[e], n)
                            }))
                    }
                })), e.UTF8Encoding = !1, e
            }(t)).features, (function (t) {
                return t.geometry && t.properties && t.geometry.coordinates.length > 0
            })), (function (t) {
                var n = t.properties, i = t.geometry, r = [];
                switch (i.type) {
                    case"Polygon":
                        var o = i.coordinates;
                        r.push(new eD(o[0], o.slice(1)));
                        break;
                    case"MultiPolygon":
                        mt(i.coordinates, (function (t) {
                            t[0] && r.push(new eD(t[0], t.slice(1)))
                        }));
                        break;
                    case"LineString":
                        r.push(new nD([i.coordinates]));
                        break;
                    case"MultiLineString":
                        r.push(new nD(i.coordinates))
                }
                var a = new iD(n[e || "name"], r, n.cp);
                return a.properties = n, a
            }))
        }

        for (var cD = [126, 25], hD = "南海诸岛", dD = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, .7], [52, .7], [56, 7.7], [59, .7], [64, .7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]], pD = 0; pD < dD.length; pD++) for (var fD = 0; fD < dD[pD].length; fD++) dD[pD][fD][0] /= 10.5, dD[pD][fD][1] /= -14, dD[pD][fD][0] += cD[0], dD[pD][fD][1] += cD[1];
        var gD = {南海诸岛: [32, 80], 广东: [0, -10], 香港: [10, 5], 澳门: [-10, 10], 天津: [5, 5]};
        var mD = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];
        var yD = function () {
            function t(t, e, n) {
                var i;
                this.type = "geoJSON", this._parsedMap = jt(), this._mapName = t, this._specialAreas = n, this._geoJSON = It(i = e) ? "undefined" != typeof JSON && JSON.parse ? JSON.parse(i) : new Function("return (" + i + ");")() : i
            }

            return t.prototype.load = function (t, e) {
                e = e || "name";
                var n = this._parsedMap.get(e);
                if (!n) {
                    var i = this._parseToRegions(e);
                    n = this._parsedMap.set(e, {regions: i, boundingRect: vD(i)})
                }
                var r = jt(), o = [];
                return mt(n.regions, (function (e) {
                    var n = e.name;
                    t && Qt(t, n) && (e = e.cloneShallow(n = t[n])), o.push(e), r.set(n, e)
                })), {regions: o, boundingRect: n.boundingRect || new hn(0, 0, 0, 0), regionsMap: r}
            }, t.prototype._parseToRegions = function (t) {
                var e, n = this._mapName, i = this._geoJSON;
                try {
                    e = i ? uD(i, t) : []
                } catch (t) {
                    throw new Error("Invalid geoJson format\n" + t.message)
                }
                return function (t, e) {
                    if ("china" === t) {
                        for (var n = 0; n < e.length; n++) if (e[n].name === hD) return;
                        e.push(new iD(hD, yt(dD, (function (t) {
                            return {type: "polygon", exterior: t}
                        })), cD))
                    }
                }(n, e), mt(e, (function (t) {
                    var e = t.name;
                    !function (t, e) {
                        if ("china" === t) {
                            var n = gD[e.name];
                            if (n) {
                                var i = e.getCenter();
                                i[0] += n[0] / 10.5, i[1] += -n[1] / 14, e.setCenter(i)
                            }
                        }
                    }(n, t), function (t, e) {
                        "china" === t && "台湾" === e.name && e.geometries.push({type: "polygon", exterior: mD[0]})
                    }(n, t);
                    var i = this._specialAreas && this._specialAreas[e];
                    i && t.transformTo(i.left, i.top, i.width, i.height)
                }), this), e
            }, t.prototype.getMapForUser = function () {
                return {geoJson: this._geoJSON, geoJSON: this._geoJSON, specialAreas: this._specialAreas}
            }, t
        }();

        function vD(t) {
            for (var e, n = 0; n < t.length; n++) {
                var i = t[n].getBoundingRect();
                (e = e || i.clone()).union(i)
            }
            return e
        }

        var _D = jt();
        const TD = {
            registerMap: function (t, e, n) {
                if (e.svg) {
                    var i = new aD(t, e.svg);
                    _D.set(t, i)
                } else {
                    var r = e.geoJson || e.geoJSON;
                    r && !e.features ? n = e.specialAreas : r = e;
                    i = new yD(t, r, n);
                    _D.set(t, i)
                }
            }, getGeoResource: function (t) {
                return _D.get(t)
            }, getMapForUser: function (t) {
                var e = _D.get(t);
                return e && "geoJSON" === e.type && e.getMapForUser()
            }, load: function (t, e, n) {
                var i = _D.get(t);
                if (i) return i.load(e, n)
            }
        };
        var xD = ["rect", "circle", "line", "ellipse", "polygon", "polyline", "path"], SD = jt(xD),
            AD = jt(xD.concat(["g"])), bD = jt(xD.concat(["g"])), ID = ha();

        function ED(t) {
            var e = t.getItemStyle(), n = t.get("areaColor");
            return null != n && (e.fill = n), e
        }

        function CD(t) {
            var e = t.style;
            e && (e.stroke = e.stroke || e.fill, e.fill = null)
        }

        var DD = function () {
            function t(t) {
                var e = new xo;
                this.uid = Nc("ec_map_draw"), this._controller = new xC(t.getZr()), this._controllerHost = {target: e}, this.group = e, e.add(this._regionsGroup = new xo), e.add(this._svgGroup = new xo)
            }

            return t.prototype.draw = function (t, e, n, i, r) {
                var o = "geo" === t.mainType, a = t.getData && t.getData();
                o && e.eachComponent({mainType: "series", subType: "map"}, (function (e) {
                    a || e.getHostGeoModel() !== t || (a = e.getData())
                }));
                var s = t.coordinateSystem, l = this._regionsGroup, u = this.group, c = s.getTransformInfo(), h = c.raw,
                    d = c.roam;
                !l.childAt(0) || r ? (u.x = d.x, u.y = d.y, u.scaleX = d.scaleX, u.scaleY = d.scaleY, u.dirty()) : ju(u, d, t);
                var p = a && a.getVisual("visualMeta") && a.getVisual("visualMeta").length > 0, f = {
                    api: n,
                    geo: s,
                    mapOrGeoModel: t,
                    data: a,
                    isVisualEncodedByVisualMap: p,
                    isGeo: o,
                    transformInfoRaw: h
                };
                "geoJSON" === s.resourceType ? this._buildGeoJSON(f) : "geoSVG" === s.resourceType && this._buildSVG(f), this._updateController(t, e, n), this._updateMapSelectHandler(t, l, n, i)
            }, t.prototype._buildGeoJSON = function (t) {
                var e = this._regionsGroupByName = jt(), n = jt(), i = this._regionsGroup, r = t.transformInfoRaw,
                    o = t.mapOrGeoModel, a = t.data, s = t.geo.projection, l = s && s.stream;

                function u(t, e) {
                    return e && (t = e(t)), t && [t[0] * r.scaleX + r.x, t[1] * r.scaleY + r.y]
                }

                function c(t) {
                    for (var e = [], n = !l && s && s.project, i = 0; i < t.length; ++i) {
                        var r = u(t[i], n);
                        r && e.push(r)
                    }
                    return e
                }

                function h(t) {
                    return {shape: {points: c(t)}}
                }

                i.removeAll(), mt(t.geo.regions, (function (r) {
                    var c = r.name, d = e.get(c), p = n.get(c) || {}, f = p.dataIdx, g = p.regionModel;
                    d || (d = e.set(c, new xo), i.add(d), f = a ? a.indexOfName(c) : null, g = t.isGeo ? o.getRegionModel(c) : a ? a.getItemModel(f) : null, n.set(c, {
                        dataIdx: f,
                        regionModel: g
                    }));
                    var m = [], y = [];
                    mt(r.geometries, (function (t) {
                        if ("polygon" === t.type) {
                            var e = [t.exterior].concat(t.interiors || []);
                            l && (e = RD(e, l)), mt(e, (function (t) {
                                m.push(new Lg(h(t)))
                            }))
                        } else {
                            var n = t.points;
                            l && (n = RD(n, l, !0)), mt(n, (function (t) {
                                y.push(new Pg(h(t)))
                            }))
                        }
                    }));
                    var v = u(r.getCenter(), s && s.project);

                    function _(e, n) {
                        if (e.length) {
                            var i = new Kg({culling: !0, segmentIgnoreThreshold: 1, shape: {paths: e}});
                            d.add(i), wD(t, i, f, g), MD(t, i, c, g, o, f, v), n && (CD(i), mt(i.states, CD))
                        }
                    }

                    _(m), _(y, !0)
                })), e.each((function (e, i) {
                    var r = n.get(i), a = r.dataIdx, s = r.regionModel;
                    ND(t, e, i, s, o, a), OD(t, e, i, s, o), LD(t, e, i, s, o)
                }), this)
            }, t.prototype._buildSVG = function (t) {
                var e = t.geo.map, n = t.transformInfoRaw;
                this._svgGroup.x = n.x, this._svgGroup.y = n.y, this._svgGroup.scaleX = n.scaleX, this._svgGroup.scaleY = n.scaleY, this._svgResourceChanged(e) && (this._freeSVG(), this._useSVG(e));
                var i = this._svgDispatcherMap = jt(), r = !1;
                mt(this._svgGraphicRecord.named, (function (e) {
                    var n = e.name, o = t.mapOrGeoModel, a = t.data, s = e.svgNodeTagLower, l = e.el,
                        u = a ? a.indexOfName(n) : null, c = o.getRegionModel(n);
                    (null != SD.get(s) && l instanceof os && wD(t, l, u, c), l instanceof os && (l.culling = !0), l.z2EmphasisLift = 0, e.namedFrom) || (null != bD.get(s) && MD(t, l, n, c, o, u, null), ND(t, l, n, c, o, u), OD(t, l, n, c, o), null != AD.get(s) && ("self" === LD(t, l, n, c, o) && (r = !0), (i.get(n) || i.set(n, [])).push(l)))
                }), this), this._enableBlurEntireSVG(r, t)
            }, t.prototype._enableBlurEntireSVG = function (t, e) {
                if (t && e.isGeo) {
                    var n = e.mapOrGeoModel.getModel(["blur", "itemStyle"]).getItemStyle().opacity;
                    this._svgGraphicRecord.root.traverse((function (t) {
                        if (!t.isGroup) {
                            vu(t);
                            var e = t.ensureState("blur").style || {};
                            null == e.opacity && null != n && (e.opacity = n), t.ensureState("emphasis")
                        }
                    }))
                }
            }, t.prototype.remove = function () {
                this._regionsGroup.removeAll(), this._regionsGroupByName = null, this._svgGroup.removeAll(), this._freeSVG(), this._controller.dispose(), this._controllerHost = null
            }, t.prototype.findHighDownDispatchers = function (t, e) {
                if (null == t) return [];
                var n = e.coordinateSystem;
                if ("geoJSON" === n.resourceType) {
                    var i = this._regionsGroupByName;
                    if (i) {
                        var r = i.get(t);
                        return r ? [r] : []
                    }
                } else if ("geoSVG" === n.resourceType) return this._svgDispatcherMap && this._svgDispatcherMap.get(t) || []
            }, t.prototype._svgResourceChanged = function (t) {
                return this._svgMapName !== t
            }, t.prototype._useSVG = function (t) {
                var e = TD.getGeoResource(t);
                if (e && "geoSVG" === e.type) {
                    var n = e.useGraphic(this.uid);
                    this._svgGroup.add(n.root), this._svgGraphicRecord = n, this._svgMapName = t
                }
            }, t.prototype._freeSVG = function () {
                var t = this._svgMapName;
                if (null != t) {
                    var e = TD.getGeoResource(t);
                    e && "geoSVG" === e.type && e.freeGraphic(this.uid), this._svgGraphicRecord = null, this._svgDispatcherMap = null, this._svgGroup.removeAll(), this._svgMapName = null
                }
            }, t.prototype._updateController = function (t, e, n) {
                var i = t.coordinateSystem, r = this._controller, o = this._controllerHost;
                o.zoomLimit = t.get("scaleLimit"), o.zoom = i.getZoom(), r.enable(t.get("roam") || !1);
                var a = t.mainType;

                function s() {
                    var e = {type: "geoRoam", componentType: a};
                    return e[a + "Id"] = t.id, e
                }

                r.off("pan").on("pan", (function (t) {
                    this._mouseDownFlag = !1, SC(o, t.dx, t.dy), n.dispatchAction(ht(s(), {
                        dx: t.dx,
                        dy: t.dy,
                        animation: {duration: 0}
                    }))
                }), this), r.off("zoom").on("zoom", (function (t) {
                    this._mouseDownFlag = !1, AC(o, t.scale, t.originX, t.originY), n.dispatchAction(ht(s(), {
                        zoom: t.scale,
                        originX: t.originX,
                        originY: t.originY,
                        animation: {duration: 0}
                    }))
                }), this), r.setPointerChecker((function (e, r, o) {
                    return i.containPoint([r, o]) && !EC(e, n, t)
                }))
            }, t.prototype.resetForLabelLayout = function () {
                this.group.traverse((function (t) {
                    var e = t.getTextContent();
                    e && (e.ignore = ID(e).ignore)
                }))
            }, t.prototype._updateMapSelectHandler = function (t, e, n, i) {
                var r = this;
                e.off("mousedown"), e.off("click"), t.get("selectedMode") && (e.on("mousedown", (function () {
                    r._mouseDownFlag = !0
                })), e.on("click", (function (t) {
                    r._mouseDownFlag && (r._mouseDownFlag = !1)
                })))
            }, t
        }();

        function wD(t, e, n, i) {
            var r = i.getModel("itemStyle"), o = i.getModel(["emphasis", "itemStyle"]),
                a = i.getModel(["blur", "itemStyle"]), s = i.getModel(["select", "itemStyle"]), l = ED(r), u = ED(o),
                c = ED(s), h = ED(a), d = t.data;
            if (d) {
                var p = d.getItemVisual(n, "style"), f = d.getItemVisual(n, "decal");
                t.isVisualEncodedByVisualMap && p.fill && (l.fill = p.fill), f && (l.decal = Rv(f, t.api))
            }
            e.setStyle(l), e.style.strokeNoScale = !0, e.ensureState("emphasis").style = u, e.ensureState("select").style = c, e.ensureState("blur").style = h, vu(e)
        }

        function MD(t, e, n, i, r, o, a) {
            var s = t.data, l = t.isGeo, u = s && isNaN(s.get(s.mapDimension("value"), o)), c = s && s.getItemLayout(o);
            if (l || u || c && c.showLabel) {
                var h = l ? n : o, d = void 0;
                (!s || o >= 0) && (d = r);
                var p = a ? {normal: {align: "center", verticalAlign: "middle"}} : null;
                ic(e, rc(i), {labelFetcher: d, labelDataIndex: h, defaultText: n}, p);
                var f = e.getTextContent();
                if (f && (ID(f).ignore = f.ignore, e.textConfig && a)) {
                    var g = e.getBoundingRect().clone();
                    e.textConfig.layoutRect = g, e.textConfig.position = [(a[0] - g.x) / g.width * 100 + "%", (a[1] - g.y) / g.height * 100 + "%"]
                }
                e.disableLabelAnimation = !0
            } else e.removeTextContent(), e.removeTextConfig(), e.disableLabelAnimation = null
        }

        function ND(t, e, n, i, r, o) {
            t.data ? t.data.setItemGraphicEl(o, e) : Hl(e).eventData = {
                componentType: "geo",
                componentIndex: r.componentIndex,
                geoIndex: r.componentIndex,
                name: n,
                region: i && i.option || {}
            }
        }

        function OD(t, e, n, i, r) {
            t.data || Pm({el: e, componentModel: r, itemName: n, itemTooltipOption: i.get("tooltip")})
        }

        function LD(t, e, n, i, r) {
            e.highDownSilentOnTouch = !!r.get("selectedMode");
            var o = i.getModel("emphasis"), a = o.get("focus");
            return ku(e, a, o.get("blurScope"), o.get("disabled")), t.isGeo && function (t, e, n) {
                var i = Hl(t);
                i.componentMainType = e.mainType, i.componentIndex = e.componentIndex, i.componentHighDownName = n
            }(e, r, n), a
        }

        function RD(t, e, n) {
            var i, r = [];

            function o() {
                i = []
            }

            function a() {
                i.length && (r.push(i), i = [])
            }

            var s = e({
                polygonStart: o, polygonEnd: a, lineStart: o, lineEnd: a, point: function (t, e) {
                    isFinite(t) && isFinite(e) && i.push([t, e])
                }, sphere: function () {
                }
            });
            return !n && s.polygonStart(), mt(t, (function (t) {
                s.lineStart();
                for (var e = 0; e < t.length; e++) s.point(t[e][0], t[e][1]);
                s.lineEnd()
            })), !n && s.polygonEnd(), r
        }

        const kD = DD;
        var PD = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n, i) {
                if (!i || "mapToggleSelect" !== i.type || i.from !== this.uid) {
                    var r = this.group;
                    if (r.removeAll(), !t.getHostGeoModel()) {
                        if (this._mapDraw && i && "geoRoam" === i.type && this._mapDraw.resetForLabelLayout(), i && "geoRoam" === i.type && "series" === i.componentType && i.seriesId === t.id) (o = this._mapDraw) && r.add(o.group); else if (t.needsDrawMap) {
                            var o = this._mapDraw || new kD(n);
                            r.add(o.group), o.draw(t, e, n, this, i), this._mapDraw = o
                        } else this._mapDraw && this._mapDraw.remove(), this._mapDraw = null;
                        t.get("showLegendSymbol") && e.getComponent("legend") && this._renderSymbols(t, e, n)
                    }
                }
            }, e.prototype.remove = function () {
                this._mapDraw && this._mapDraw.remove(), this._mapDraw = null, this.group.removeAll()
            }, e.prototype.dispose = function () {
                this._mapDraw && this._mapDraw.remove(), this._mapDraw = null
            }, e.prototype._renderSymbols = function (t, e, n) {
                var i = t.originalData, r = this.group;
                i.each(i.mapDimension("value"), (function (e, n) {
                    if (!isNaN(e)) {
                        var o = i.getItemLayout(n);
                        if (o && o.point) {
                            var a = o.point, s = o.offset, l = new sg({
                                style: {fill: t.getData().getVisual("style").fill},
                                shape: {cx: a[0] + 9 * s, cy: a[1], r: 3},
                                silent: !0,
                                z2: 8 + (s ? 0 : Ql + 1)
                            });
                            if (!s) {
                                var u = t.mainSeries.getData(), c = i.getName(n), h = u.indexOfName(c),
                                    d = i.getItemModel(n), p = d.getModel("label"), f = u.getItemGraphicEl(h);
                                ic(l, rc(d), {
                                    labelFetcher: {
                                        getFormattedLabel: function (e, n) {
                                            return t.getFormattedLabel(h, n)
                                        }
                                    }, defaultText: c
                                }), l.disableLabelAnimation = !0, p.get("position") || l.setTextConfig({position: "bottom"}), f.onHoverStateChange = function (t) {
                                    mu(l, t)
                                }
                            }
                            r.add(l)
                        }
                    }
                }))
            }, e.type = "map", e
        }(jm);
        const GD = PD;
        var BD = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.needsDrawMap = !1, n.seriesGroup = [], n.getTooltipPosition = function (t) {
                    if (null != t) {
                        var e = this.getData().getName(t), n = this.coordinateSystem, i = n.getRegion(e);
                        return i && n.dataToPoint(i.getCenter())
                    }
                }, n
            }

            return G(e, t), e.prototype.getInitialData = function (t) {
                for (var e = Ib(this, {
                    coordDimensions: ["value"],
                    encodeDefaulter: St(ed, this)
                }), n = jt(), i = [], r = 0, o = e.count(); r < o; r++) {
                    var a = e.getName(r);
                    n.set(a, !0)
                }
                return mt(TD.load(this.getMapType(), this.option.nameMap, this.option.nameProperty).regions, (function (t) {
                    var e = t.name;
                    n.get(e) || i.push(e)
                })), e.appendValues([], i), e
            }, e.prototype.getHostGeoModel = function () {
                var t = this.option.geoIndex;
                return null != t ? this.ecModel.getComponent("geo", t) : null
            }, e.prototype.getMapType = function () {
                return (this.getHostGeoModel() || this).option.map
            }, e.prototype.getRawValue = function (t) {
                var e = this.getData();
                return e.get(e.mapDimension("value"), t)
            }, e.prototype.getRegionModel = function (t) {
                var e = this.getData();
                return e.getItemModel(e.indexOfName(t))
            }, e.prototype.formatTooltip = function (t, e, n) {
                for (var i = this.getData(), r = this.getRawValue(t), o = i.getName(t), a = this.seriesGroup, s = [], l = 0; l < a.length; l++) {
                    var u = a[l].originalData.indexOfName(o), c = i.mapDimension("value");
                    isNaN(a[l].originalData.get(c, u)) || s.push(a[l].name)
                }
                return hf("section", {
                    header: s.join(", "),
                    noHeader: !s.length,
                    blocks: [hf("nameValue", {name: o, value: r})]
                })
            }, e.prototype.setZoom = function (t) {
                this.option.zoom = t
            }, e.prototype.setCenter = function (t) {
                this.option.center = t
            }, e.prototype.getLegendIcon = function (t) {
                var e = t.icon || "roundRect", n = iv(e, 0, 0, t.itemWidth, t.itemHeight, t.itemStyle.fill);
                return n.setStyle(t.itemStyle), n.style.stroke = "none", e.indexOf("empty") > -1 && (n.style.stroke = n.style.fill, n.style.fill = "#fff", n.style.lineWidth = 2), n
            }, e.type = "series.map", e.dependencies = ["geo"], e.layoutMode = "box", e.defaultOption = {
                z: 2,
                coordinateSystem: "geo",
                map: "",
                left: "center",
                top: "center",
                aspectScale: null,
                showLegendSymbol: !0,
                boundingCoords: null,
                center: null,
                zoom: 1,
                scaleLimit: null,
                selectedMode: !0,
                label: {show: !1, color: "#000"},
                itemStyle: {borderWidth: .5, borderColor: "#444", areaColor: "#eee"},
                emphasis: {label: {show: !0, color: "rgb(100,0,0)"}, itemStyle: {areaColor: "rgba(255,215,0,0.8)"}},
                select: {label: {show: !0, color: "rgb(100,0,0)"}, itemStyle: {color: "rgba(255,215,0,0.8)"}},
                nameProperty: "name"
            }, e
        }(kf);
        const FD = BD;

        function HD(t) {
            var e = {};
            t.eachSeriesByType("map", (function (t) {
                var n = t.getHostGeoModel(), i = n ? "o" + n.id : "i" + t.getMapType();
                (e[i] = e[i] || []).push(t)
            })), mt(e, (function (t, e) {
                for (var n, i, r, o = (n = yt(t, (function (t) {
                    return t.getData()
                })), i = t[0].get("mapValueCalculation"), r = {}, mt(n, (function (t) {
                    t.each(t.mapDimension("value"), (function (e, n) {
                        var i = "ec-" + t.getName(n);
                        r[i] = r[i] || [], isNaN(e) || r[i].push(e)
                    }))
                })), n[0].map(n[0].mapDimension("value"), (function (t, e) {
                    for (var o = "ec-" + n[0].getName(e), a = 0, s = 1 / 0, l = -1 / 0, u = r[o].length, c = 0; c < u; c++) s = Math.min(s, r[o][c]), l = Math.max(l, r[o][c]), a += r[o][c];
                    return 0 === u ? NaN : "min" === i ? s : "max" === i ? l : "average" === i ? a / u : a
                }))), a = 0; a < t.length; a++) t[a].originalData = t[a].getData();
                for (a = 0; a < t.length; a++) t[a].seriesGroup = t, t[a].needsDrawMap = 0 === a && !t[a].getHostGeoModel(), t[a].setData(o.cloneShallow()), t[a].mainSeries = t[0]
            }))
        }

        function UD(t) {
            var e = {};
            t.eachSeriesByType("map", (function (n) {
                var i = n.getMapType();
                if (!n.getHostGeoModel() && !e[i]) {
                    var r = {};
                    mt(n.seriesGroup, (function (e) {
                        var n = e.coordinateSystem, i = e.originalData;
                        e.get("showLegendSymbol") && t.getComponent("legend") && i.each(i.mapDimension("value"), (function (t, e) {
                            var o = i.getName(e), a = n.getRegion(o);
                            if (a && !isNaN(t)) {
                                var s = r[o] || 0, l = n.dataToPoint(a.getCenter());
                                r[o] = s + 1, i.setItemLayout(e, {point: l, offset: s})
                            }
                        }))
                    }));
                    var o = n.getData();
                    o.each((function (t) {
                        var e = o.getName(t), n = o.getItemLayout(t) || {};
                        n.showLabel = !r[e], o.setItemLayout(t, n)
                    })), e[i] = !0
                }
            }))
        }

        var VD = ge, zD = function (t) {
            function e(e) {
                var n = t.call(this) || this;
                return n.type = "view", n.dimensions = ["x", "y"], n._roamTransformable = new $r, n._rawTransformable = new $r, n.name = e, n
            }

            return G(e, t), e.prototype.setBoundingRect = function (t, e, n, i) {
                return this._rect = new hn(t, e, n, i), this._rect
            }, e.prototype.getBoundingRect = function () {
                return this._rect
            }, e.prototype.setViewRect = function (t, e, n, i) {
                this._transformTo(t, e, n, i), this._viewRect = new hn(t, e, n, i)
            }, e.prototype._transformTo = function (t, e, n, i) {
                var r = this.getBoundingRect(), o = this._rawTransformable;
                o.transform = r.calculateTransform(new hn(t, e, n, i));
                var a = o.parent;
                o.parent = null, o.decomposeTransform(), o.parent = a, this._updateTransform()
            }, e.prototype.setCenter = function (t, e) {
                t && (this._center = [wo(t[0], e.getWidth()), wo(t[1], e.getHeight())], this._updateCenterAndZoom())
            }, e.prototype.setZoom = function (t) {
                t = t || 1;
                var e = this.zoomLimit;
                e && (null != e.max && (t = Math.min(e.max, t)), null != e.min && (t = Math.max(e.min, t))), this._zoom = t, this._updateCenterAndZoom()
            }, e.prototype.getDefaultCenter = function () {
                var t = this.getBoundingRect();
                return [t.x + t.width / 2, t.y + t.height / 2]
            }, e.prototype.getCenter = function () {
                return this._center || this.getDefaultCenter()
            }, e.prototype.getZoom = function () {
                return this._zoom || 1
            }, e.prototype.getRoamTransform = function () {
                return this._roamTransformable.getLocalTransform()
            }, e.prototype._updateCenterAndZoom = function () {
                var t = this._rawTransformable.getLocalTransform(), e = this._roamTransformable,
                    n = this.getDefaultCenter(), i = this.getCenter(), r = this.getZoom();
                i = ge([], i, t), n = ge([], n, t), e.originX = i[0], e.originY = i[1], e.x = n[0] - i[0], e.y = n[1] - i[1], e.scaleX = e.scaleY = r, this._updateTransform()
            }, e.prototype._updateTransform = function () {
                var t = this._roamTransformable, e = this._rawTransformable;
                e.parent = t, t.updateTransform(), e.updateTransform(), je(this.transform || (this.transform = []), e.transform || [1, 0, 0, 1, 0, 0]), this._rawTransform = e.getLocalTransform(), this.invTransform = this.invTransform || [], $e(this.invTransform, this.transform), this.decomposeTransform()
            }, e.prototype.getTransformInfo = function () {
                var t = this._rawTransformable, e = this._roamTransformable, n = new $r;
                return n.transform = e.transform, n.decomposeTransform(), {
                    roam: {
                        x: n.x,
                        y: n.y,
                        scaleX: n.scaleX,
                        scaleY: n.scaleY
                    }, raw: {x: t.x, y: t.y, scaleX: t.scaleX, scaleY: t.scaleY}
                }
            }, e.prototype.getViewRect = function () {
                return this._viewRect
            }, e.prototype.getViewRectAfterRoam = function () {
                var t = this.getBoundingRect().clone();
                return t.applyTransform(this.transform), t
            }, e.prototype.dataToPoint = function (t, e, n) {
                var i = e ? this._rawTransform : this.transform;
                return n = n || [], i ? VD(n, t, i) : ee(n, t)
            }, e.prototype.pointToData = function (t) {
                var e = this.invTransform;
                return e ? VD([], t, e) : [t[0], t[1]]
            }, e.prototype.convertToPixel = function (t, e, n) {
                var i = WD(e);
                return i === this ? i.dataToPoint(n) : null
            }, e.prototype.convertFromPixel = function (t, e, n) {
                var i = WD(e);
                return i === this ? i.pointToData(n) : null
            }, e.prototype.containPoint = function (t) {
                return this.getViewRectAfterRoam().contain(t[0], t[1])
            }, e.dimensions = ["x", "y"], e
        }($r);

        function WD(t) {
            var e = t.seriesModel;
            return e ? e.coordinateSystem : null
        }

        const YD = zD;
        var qD = {geoJSON: {aspectScale: .75, invertLongitute: !0}, geoSVG: {aspectScale: 1, invertLongitute: !1}},
            jD = ["lng", "lat"], XD = function (t) {
                function e(e, n, i) {
                    var r = t.call(this, e) || this;
                    r.dimensions = jD, r.type = "geo", r._nameCoordMap = jt(), r.map = n;
                    var o, a = i.projection, s = TD.load(n, i.nameMap, i.nameProperty), l = TD.getGeoResource(n),
                        u = (r.resourceType = l ? l.type : null, r.regions = s.regions), c = qD[l.type];
                    if (r._regionsMap = s.regionsMap, r.regions = s.regions, r.projection = a, a) for (var h = 0; h < u.length; h++) {
                        var d = u[h].getBoundingRect(a);
                        (o = o || d.clone()).union(d)
                    } else o = s.boundingRect;
                    return r.setBoundingRect(o.x, o.y, o.width, o.height), r.aspectScale = a ? 1 : kt(i.aspectScale, c.aspectScale), r._invertLongitute = !a && c.invertLongitute, r
                }

                return G(e, t), e.prototype._transformTo = function (t, e, n, i) {
                    var r = this.getBoundingRect(), o = this._invertLongitute;
                    r = r.clone(), o && (r.y = -r.y - r.height);
                    var a = this._rawTransformable;
                    a.transform = r.calculateTransform(new hn(t, e, n, i));
                    var s = a.parent;
                    a.parent = null, a.decomposeTransform(), a.parent = s, o && (a.scaleY = -a.scaleY), this._updateTransform()
                }, e.prototype.getRegion = function (t) {
                    return this._regionsMap.get(t)
                }, e.prototype.getRegionByCoord = function (t) {
                    for (var e = this.regions, n = 0; n < e.length; n++) {
                        var i = e[n];
                        if ("geoJSON" === i.type && i.contain(t)) return e[n]
                    }
                }, e.prototype.addGeoCoord = function (t, e) {
                    this._nameCoordMap.set(t, e)
                }, e.prototype.getGeoCoord = function (t) {
                    var e = this._regionsMap.get(t);
                    return this._nameCoordMap.get(t) || e && e.getCenter()
                }, e.prototype.dataToPoint = function (t, e, n) {
                    if (It(t) && (t = this.getGeoCoord(t)), t) {
                        var i = this.projection;
                        return i && (t = i.project(t)), t && this.projectedToPoint(t, e, n)
                    }
                }, e.prototype.pointToData = function (t) {
                    var e = this.projection;
                    return e && (t = e.unproject(t)), t && this.pointToProjected(t)
                }, e.prototype.pointToProjected = function (e) {
                    return t.prototype.pointToData.call(this, e)
                }, e.prototype.projectedToPoint = function (e, n, i) {
                    return t.prototype.dataToPoint.call(this, e, n, i)
                }, e.prototype.convertToPixel = function (t, e, n) {
                    var i = ZD(e);
                    return i === this ? i.dataToPoint(n) : null
                }, e.prototype.convertFromPixel = function (t, e, n) {
                    var i = ZD(e);
                    return i === this ? i.pointToData(n) : null
                }, e
            }(YD);

        function ZD(t) {
            var e = t.geoModel, n = t.seriesModel;
            return e ? e.coordinateSystem : n ? n.coordinateSystem || (n.getReferringComponents("geo", ga).models[0] || {}).coordinateSystem : null
        }

        ft(XD, YD);
        const KD = XD;

        function QD(t, e) {
            var n = t.get("boundingCoords");
            if (null != n) {
                var i = n[0], r = n[1];
                if (isFinite(i[0]) && isFinite(i[1]) && isFinite(r[0]) && isFinite(r[1])) {
                    var o = this.projection;
                    if (o) {
                        var a = i[0], s = i[1], l = r[0], u = r[1];
                        i = [1 / 0, 1 / 0], r = [-1 / 0, -1 / 0];
                        var c = function (t, e, n, a) {
                            for (var s = n - t, l = a - e, u = 0; u <= 100; u++) {
                                var c = u / 100, h = o.project([t + s * c, e + l * c]);
                                me(i, i, h), ye(r, r, h)
                            }
                        };
                        c(a, s, l, s), c(l, s, l, u), c(l, u, a, u), c(a, u, l, s)
                    }
                    this.setBoundingRect(i[0], i[1], r[0] - i[0], r[1] - i[1])
                } else 0
            }
            var h, d, p, f = this.getBoundingRect(), g = t.get("layoutCenter"), m = t.get("layoutSize"),
                y = e.getWidth(), v = e.getHeight(), _ = f.width / f.height * this.aspectScale, T = !1;
            if (g && m && (h = [wo(g[0], y), wo(g[1], v)], d = wo(m, Math.min(y, v)), isNaN(h[0]) || isNaN(h[1]) || isNaN(d) || (T = !0)), T) p = {}, _ > 1 ? (p.width = d, p.height = d / _) : (p.height = d, p.width = d * _), p.y = h[1] - p.height / 2, p.x = h[0] - p.width / 2; else {
                var x = t.getBoxLayoutParams();
                x.aspect = _, p = Nh(x, {width: y, height: v})
            }
            this.setViewRect(p.x, p.y, p.width, p.height), this.setCenter(t.get("center"), e), this.setZoom(t.get("zoom"))
        }

        var $D = function () {
            function t() {
                this.dimensions = jD
            }

            return t.prototype.create = function (t, e) {
                var n = [];

                function i(t) {
                    return {
                        nameProperty: t.get("nameProperty"),
                        aspectScale: t.get("aspectScale"),
                        projection: t.get("projection")
                    }
                }

                t.eachComponent("geo", (function (t, r) {
                    var o = t.get("map"), a = new KD(o + r, o, ht({nameMap: t.get("nameMap")}, i(t)));
                    a.zoomLimit = t.get("scaleLimit"), n.push(a), t.coordinateSystem = a, a.model = t, a.resize = QD, a.resize(t, e)
                })), t.eachSeries((function (t) {
                    if ("geo" === t.get("coordinateSystem")) {
                        var e = t.get("geoIndex") || 0;
                        t.coordinateSystem = n[e]
                    }
                }));
                var r = {};
                return t.eachSeriesByType("map", (function (t) {
                    if (!t.getHostGeoModel()) {
                        var e = t.getMapType();
                        r[e] = r[e] || [], r[e].push(t)
                    }
                })), mt(r, (function (t, r) {
                    var o = yt(t, (function (t) {
                        return t.get("nameMap")
                    })), a = new KD(r, r, ht({nameMap: ct(o)}, i(t[0])));
                    a.zoomLimit = Rt.apply(null, yt(t, (function (t) {
                        return t.get("scaleLimit")
                    }))), n.push(a), a.resize = QD, a.resize(t[0], e), mt(t, (function (t) {
                        t.coordinateSystem = a, function (t, e) {
                            mt(e.get("geoCoord"), (function (e, n) {
                                t.addGeoCoord(n, e)
                            }))
                        }(a, t)
                    }))
                })), n
            }, t.prototype.getFilledRegions = function (t, e, n, i) {
                for (var r = (t || []).slice(), o = jt(), a = 0; a < r.length; a++) o.set(r[a].name, r[a]);
                return mt(TD.load(e, n, i).regions, (function (t) {
                    var e = t.name;
                    !o.get(e) && r.push({name: e})
                })), r
            }, t
        }();
        const JD = new $D;
        var tw = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function (t, e, n) {
                var i = TD.getGeoResource(t.map);
                if (i && "geoJSON" === i.type) {
                    var r = t.itemStyle = t.itemStyle || {};
                    "color" in r || (r.color = "#eee")
                }
                this.mergeDefaultAndTheme(t, n), ta(t, "label", ["show"])
            }, e.prototype.optionUpdated = function () {
                var t = this, e = this.option;
                e.regions = JD.getFilledRegions(e.regions, e.map, e.nameMap, e.nameProperty);
                var n = {};
                this._optionModelMap = vt(e.regions || [], (function (e, i) {
                    var r = i.name;
                    return r && (e.set(r, new wc(i, t, t.ecModel)), i.selected && (n[r] = !0)), e
                }), jt()), e.selectedMap || (e.selectedMap = n)
            }, e.prototype.getRegionModel = function (t) {
                return this._optionModelMap.get(t) || new wc(null, this, this.ecModel)
            }, e.prototype.getFormattedLabel = function (t, e) {
                var n = this.getRegionModel(t),
                    i = "normal" === e ? n.get(["label", "formatter"]) : n.get(["emphasis", "label", "formatter"]),
                    r = {name: t};
                return bt(i) ? (r.status = e, i(r)) : It(i) ? i.replace("{a}", null != t ? t : "") : void 0
            }, e.prototype.setZoom = function (t) {
                this.option.zoom = t
            }, e.prototype.setCenter = function (t) {
                this.option.center = t
            }, e.prototype.select = function (t) {
                var e = this.option, n = e.selectedMode;
                n && ("multiple" !== n && (e.selectedMap = null), (e.selectedMap || (e.selectedMap = {}))[t] = !0)
            }, e.prototype.unSelect = function (t) {
                var e = this.option.selectedMap;
                e && (e[t] = !1)
            }, e.prototype.toggleSelected = function (t) {
                this[this.isSelected(t) ? "unSelect" : "select"](t)
            }, e.prototype.isSelected = function (t) {
                var e = this.option.selectedMap;
                return !(!e || !e[t])
            }, e.type = "geo", e.layoutMode = "box", e.defaultOption = {
                z: 0,
                show: !0,
                left: "center",
                top: "center",
                aspectScale: null,
                silent: !1,
                map: "",
                boundingCoords: null,
                center: null,
                zoom: 1,
                scaleLimit: null,
                label: {show: !1, color: "#000"},
                itemStyle: {borderWidth: .5, borderColor: "#444"},
                emphasis: {label: {show: !0, color: "rgb(100,0,0)"}, itemStyle: {color: "rgba(255,215,0,0.8)"}},
                select: {label: {show: !0, color: "rgb(100,0,0)"}, itemStyle: {color: "rgba(255,215,0,0.8)"}},
                regions: []
            }, e
        }(Fh);
        const ew = tw;

        function nw(t, e) {
            return t.pointToProjected ? t.pointToProjected(e) : t.pointToData(e)
        }

        function iw(t, e, n, i) {
            var r = t.getZoom(), o = t.getCenter(), a = e.zoom,
                s = t.projectedToPoint ? t.projectedToPoint(o) : t.dataToPoint(o);
            if (null != e.dx && null != e.dy && (s[0] -= e.dx, s[1] -= e.dy, t.setCenter(nw(t, s), i)), null != a) {
                if (n) {
                    var l = n.min || 0, u = n.max || 1 / 0;
                    a = Math.max(Math.min(r * a, u), l) / r
                }
                t.scaleX *= a, t.scaleY *= a;
                var c = (e.originX - t.x) * (a - 1), h = (e.originY - t.y) * (a - 1);
                t.x -= c, t.y -= h, t.updateTransform(), t.setCenter(nw(t, s), i), t.setZoom(a * r)
            }
            return {center: t.getCenter(), zoom: t.getZoom()}
        }

        var rw = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.focusBlurEnabled = !0, n
            }

            return G(e, t), e.prototype.init = function (t, e) {
                this._api = e
            }, e.prototype.render = function (t, e, n, i) {
                if (this._model = t, !t.get("show")) return this._mapDraw && this._mapDraw.remove(), void (this._mapDraw = null);
                this._mapDraw || (this._mapDraw = new kD(n));
                var r = this._mapDraw;
                r.draw(t, e, n, this, i), r.group.on("click", this._handleRegionClick, this), r.group.silent = t.get("silent"), this.group.add(r.group), this.updateSelectStatus(t, e, n)
            }, e.prototype._handleRegionClick = function (t) {
                var e;
                Wy(t.target, (function (t) {
                    return null != (e = Hl(t).eventData)
                }), !0), e && this._api.dispatchAction({type: "geoToggleSelect", geoId: this._model.id, name: e.name})
            }, e.prototype.updateSelectStatus = function (t, e, n) {
                var i = this;
                this._mapDraw.group.traverse((function (t) {
                    var e = Hl(t).eventData;
                    if (e) return i._model.isSelected(e.name) ? n.enterSelect(t) : n.leaveSelect(t), !0
                }))
            }, e.prototype.findHighDownDispatchers = function (t) {
                return this._mapDraw && this._mapDraw.findHighDownDispatchers(t, this._model)
            }, e.prototype.dispose = function () {
                this._mapDraw && this._mapDraw.remove()
            }, e.type = "geo", e
        }(Gf);
        const ow = rw;

        function aw(t, e, n) {
            TD.registerMap(t, e, n)
        }

        function sw(t) {
            function e(e, n) {
                n.update = "geo:updateSelectStatus", t.registerAction(n, (function (t, n) {
                    var i = {}, r = [];
                    return n.eachComponent({mainType: "geo", query: t}, (function (n) {
                        n[e](t.name), mt(n.coordinateSystem.regions, (function (t) {
                            i[t.name] = n.isSelected(t.name) || !1
                        }));
                        var o = [];
                        mt(i, (function (t, e) {
                            i[e] && o.push(e)
                        })), r.push({geoIndex: n.componentIndex, name: o})
                    })), {selected: i, allSelected: r, name: t.name}
                }))
            }

            t.registerCoordinateSystem("geo", JD), t.registerComponentModel(ew), t.registerComponentView(ow), t.registerImpl("registerMap", aw), t.registerImpl("getMap", (function (t) {
                return TD.getMapForUser(t)
            })), e("toggleSelected", {
                type: "geoToggleSelect",
                event: "geoselectchanged"
            }), e("select", {type: "geoSelect", event: "geoselected"}), e("unSelect", {
                type: "geoUnSelect",
                event: "geounselected"
            }), t.registerAction({type: "geoRoam", event: "geoRoam", update: "updateTransform"}, (function (t, e, n) {
                var i = t.componentType || "series";
                e.eachComponent({mainType: i, query: t}, (function (e) {
                    var r = e.coordinateSystem;
                    if ("geo" === r.type) {
                        var o = iw(r, t, e.get("scaleLimit"), n);
                        e.setCenter && e.setCenter(o.center), e.setZoom && e.setZoom(o.zoom), "series" === i && mt(e.seriesGroup, (function (t) {
                            t.setCenter(o.center), t.setZoom(o.zoom)
                        }))
                    }
                }))
            }))
        }

        function lw(t, e) {
            var n = t.isExpand ? t.children : [], i = t.parentNode.children,
                r = t.hierNode.i ? i[t.hierNode.i - 1] : null;
            if (n.length) {
                !function (t) {
                    var e = t.children, n = e.length, i = 0, r = 0;
                    for (; --n >= 0;) {
                        var o = e[n];
                        o.hierNode.prelim += i, o.hierNode.modifier += i, r += o.hierNode.change, i += o.hierNode.shift + r
                    }
                }(t);
                var o = (n[0].hierNode.prelim + n[n.length - 1].hierNode.prelim) / 2;
                r ? (t.hierNode.prelim = r.hierNode.prelim + e(t, r), t.hierNode.modifier = t.hierNode.prelim - o) : t.hierNode.prelim = o
            } else r && (t.hierNode.prelim = r.hierNode.prelim + e(t, r));
            t.parentNode.hierNode.defaultAncestor = function (t, e, n, i) {
                if (e) {
                    for (var r = t, o = t, a = o.parentNode.children[0], s = e, l = r.hierNode.modifier, u = o.hierNode.modifier, c = a.hierNode.modifier, h = s.hierNode.modifier; s = dw(s), o = pw(o), s && o;) {
                        r = dw(r), a = pw(a), r.hierNode.ancestor = t;
                        var d = s.hierNode.prelim + h - o.hierNode.prelim - u + i(s, o);
                        d > 0 && (gw(fw(s, t, n), t, d), u += d, l += d), h += s.hierNode.modifier, u += o.hierNode.modifier, l += r.hierNode.modifier, c += a.hierNode.modifier
                    }
                    s && !dw(r) && (r.hierNode.thread = s, r.hierNode.modifier += h - l), o && !pw(a) && (a.hierNode.thread = o, a.hierNode.modifier += u - c, n = t)
                }
                return n
            }(t, r, t.parentNode.hierNode.defaultAncestor || i[0], e)
        }

        function uw(t) {
            var e = t.hierNode.prelim + t.parentNode.hierNode.modifier;
            t.setLayout({x: e}, !0), t.hierNode.modifier += t.parentNode.hierNode.modifier
        }

        function cw(t) {
            return arguments.length ? t : mw
        }

        function hw(t, e) {
            return t -= Math.PI / 2, {x: e * Math.cos(t), y: e * Math.sin(t)}
        }

        function dw(t) {
            var e = t.children;
            return e.length && t.isExpand ? e[e.length - 1] : t.hierNode.thread
        }

        function pw(t) {
            var e = t.children;
            return e.length && t.isExpand ? e[0] : t.hierNode.thread
        }

        function fw(t, e, n) {
            return t.hierNode.ancestor.parentNode === e.parentNode ? t.hierNode.ancestor : n
        }

        function gw(t, e, n) {
            var i = n / (e.hierNode.i - t.hierNode.i);
            e.hierNode.change -= i, e.hierNode.shift += n, e.hierNode.modifier += n, e.hierNode.prelim += n, t.hierNode.change += i
        }

        function mw(t, e) {
            return t.parentNode === e.parentNode ? 1 : 2
        }

        var yw = function () {
            this.parentPoint = [], this.childPoints = []
        }, vw = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultStyle = function () {
                return {stroke: "#000", fill: null}
            }, e.prototype.getDefaultShape = function () {
                return new yw
            }, e.prototype.buildPath = function (t, e) {
                var n = e.childPoints, i = n.length, r = e.parentPoint, o = n[0], a = n[i - 1];
                if (1 === i) return t.moveTo(r[0], r[1]), void t.lineTo(o[0], o[1]);
                var s = e.orient, l = "TB" === s || "BT" === s ? 0 : 1, u = 1 - l, c = wo(e.forkPosition, 1), h = [];
                h[l] = r[l], h[u] = r[u] + (a[u] - r[u]) * c, t.moveTo(r[0], r[1]), t.lineTo(h[0], h[1]), t.moveTo(o[0], o[1]), h[l] = o[l], t.lineTo(h[0], h[1]), h[l] = a[l], t.lineTo(h[0], h[1]), t.lineTo(a[0], a[1]);
                for (var d = 1; d < i - 1; d++) {
                    var p = n[d];
                    t.moveTo(p[0], p[1]), h[l] = p[l], t.lineTo(h[0], h[1])
                }
            }, e
        }(ll), _w = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n._mainGroup = new xo, n
            }

            return G(e, t), e.prototype.init = function (t, e) {
                this._controller = new xC(e.getZr()), this._controllerHost = {target: this.group}, this.group.add(this._mainGroup)
            }, e.prototype.render = function (t, e, n) {
                var i = t.getData(), r = t.layoutInfo, o = this._mainGroup;
                "radial" === t.get("layout") ? (o.x = r.x + r.width / 2, o.y = r.y + r.height / 2) : (o.x = r.x, o.y = r.y), this._updateViewCoordSys(t, n), this._updateController(t, e, n);
                var a = this._data;
                i.diff(a).add((function (e) {
                    Tw(i, e) && xw(i, e, null, o, t)
                })).update((function (e, n) {
                    var r = a.getItemGraphicEl(n);
                    Tw(i, e) ? xw(i, e, r, o, t) : r && bw(a, n, r, o, t)
                })).remove((function (e) {
                    var n = a.getItemGraphicEl(e);
                    n && bw(a, e, n, o, t)
                })).execute(), this._nodeScaleRatio = t.get("nodeScaleRatio"), this._updateNodeAndLinkScale(t), !0 === t.get("expandAndCollapse") && i.eachItemGraphicEl((function (e, i) {
                    e.off("click").on("click", (function () {
                        n.dispatchAction({type: "treeExpandAndCollapse", seriesId: t.id, dataIndex: i})
                    }))
                })), this._data = i
            }, e.prototype._updateViewCoordSys = function (t, e) {
                var n = t.getData(), i = [];
                n.each((function (t) {
                    var e = n.getItemLayout(t);
                    !e || isNaN(e.x) || isNaN(e.y) || i.push([+e.x, +e.y])
                }));
                var r = [], o = [];
                fs(i, r, o);
                var a = this._min, s = this._max;
                o[0] - r[0] == 0 && (r[0] = a ? a[0] : r[0] - 1, o[0] = s ? s[0] : o[0] + 1), o[1] - r[1] == 0 && (r[1] = a ? a[1] : r[1] - 1, o[1] = s ? s[1] : o[1] + 1);
                var l = t.coordinateSystem = new YD;
                l.zoomLimit = t.get("scaleLimit"), l.setBoundingRect(r[0], r[1], o[0] - r[0], o[1] - r[1]), l.setCenter(t.get("center"), e), l.setZoom(t.get("zoom")), this.group.attr({
                    x: l.x,
                    y: l.y,
                    scaleX: l.scaleX,
                    scaleY: l.scaleY
                }), this._min = r, this._max = o
            }, e.prototype._updateController = function (t, e, n) {
                var i = this, r = this._controller, o = this._controllerHost, a = this.group;
                r.setPointerChecker((function (e, i, r) {
                    var o = a.getBoundingRect();
                    return o.applyTransform(a.transform), o.contain(i, r) && !EC(e, n, t)
                })), r.enable(t.get("roam")), o.zoomLimit = t.get("scaleLimit"), o.zoom = t.coordinateSystem.getZoom(), r.off("pan").off("zoom").on("pan", (function (e) {
                    SC(o, e.dx, e.dy), n.dispatchAction({seriesId: t.id, type: "treeRoam", dx: e.dx, dy: e.dy})
                })).on("zoom", (function (e) {
                    AC(o, e.scale, e.originX, e.originY), n.dispatchAction({
                        seriesId: t.id,
                        type: "treeRoam",
                        zoom: e.scale,
                        originX: e.originX,
                        originY: e.originY
                    }), i._updateNodeAndLinkScale(t), n.updateLabelLayout()
                }))
            }, e.prototype._updateNodeAndLinkScale = function (t) {
                var e = t.getData(), n = this._getNodeGlobalScale(t);
                e.eachItemGraphicEl((function (t, e) {
                    t.setSymbolScale(n)
                }))
            }, e.prototype._getNodeGlobalScale = function (t) {
                var e = t.coordinateSystem;
                if ("view" !== e.type) return 1;
                var n = this._nodeScaleRatio, i = e.scaleX || 1;
                return ((e.getZoom() - 1) * n + 1) / i
            }, e.prototype.dispose = function () {
                this._controller && this._controller.dispose(), this._controllerHost = null
            }, e.prototype.remove = function () {
                this._mainGroup.removeAll(), this._data = null
            }, e.type = "tree", e
        }(jm);

        function Tw(t, e) {
            var n = t.getItemLayout(e);
            return n && !isNaN(n.x) && !isNaN(n.y)
        }

        function xw(t, e, n, i, r) {
            var o = !n, a = t.tree.getNodeByDataIndex(e), s = a.getModel(), l = a.getVisual("style").fill,
                u = !1 === a.isExpand && 0 !== a.children.length ? l : "#fff", c = t.tree.root,
                h = a.parentNode === c ? a : a.parentNode || a, d = t.getItemGraphicEl(h.dataIndex), p = h.getLayout(),
                f = d ? {x: d.__oldX, y: d.__oldY, rawX: d.__radialOldRawX, rawY: d.__radialOldRawY} : p,
                g = a.getLayout();
            o ? ((n = new zS(t, e, null, {
                symbolInnerColor: u,
                useNameLabel: !0
            })).x = f.x, n.y = f.y) : n.updateData(t, e, null, {
                symbolInnerColor: u,
                useNameLabel: !0
            }), n.__radialOldRawX = n.__radialRawX, n.__radialOldRawY = n.__radialRawY, n.__radialRawX = g.rawX, n.__radialRawY = g.rawY, i.add(n), t.setItemGraphicEl(e, n), n.__oldX = n.x, n.__oldY = n.y, ju(n, {
                x: g.x,
                y: g.y
            }, r);
            var m = n.getSymbolPath();
            if ("radial" === r.get("layout")) {
                var y = c.children[0], v = y.getLayout(), _ = y.children.length, T = void 0, x = void 0;
                if (g.x === v.x && !0 === a.isExpand && y.children.length) {
                    var S = {
                        x: (y.children[0].getLayout().x + y.children[_ - 1].getLayout().x) / 2,
                        y: (y.children[0].getLayout().y + y.children[_ - 1].getLayout().y) / 2
                    };
                    (T = Math.atan2(S.y - v.y, S.x - v.x)) < 0 && (T = 2 * Math.PI + T), (x = S.x < v.x) && (T -= Math.PI)
                } else (T = Math.atan2(g.y - v.y, g.x - v.x)) < 0 && (T = 2 * Math.PI + T), 0 === a.children.length || 0 !== a.children.length && !1 === a.isExpand ? (x = g.x < v.x) && (T -= Math.PI) : (x = g.x > v.x) || (T -= Math.PI);
                var A = x ? "left" : "right", b = s.getModel("label"), I = b.get("rotate"), E = I * (Math.PI / 180),
                    C = m.getTextContent();
                C && (m.setTextConfig({
                    position: b.get("position") || A,
                    rotation: null == I ? -T : E,
                    origin: "center"
                }), C.setStyle("verticalAlign", "middle"))
            }
            var D = s.get(["emphasis", "focus"]),
                w = "relative" === D ? Xt(a.getAncestorsIndices(), a.getDescendantIndices()) : "ancestor" === D ? a.getAncestorsIndices() : "descendant" === D ? a.getDescendantIndices() : null;
            w && (Hl(n).focus = w), function (t, e, n, i, r, o, a, s) {
                var l = e.getModel(), u = t.get("edgeShape"), c = t.get("layout"), h = t.getOrient(),
                    d = t.get(["lineStyle", "curveness"]), p = t.get("edgeForkPosition"),
                    f = l.getModel("lineStyle").getLineStyle(), g = i.__edge;
                if ("curve" === u) e.parentNode && e.parentNode !== n && (g || (g = i.__edge = new Yg({shape: Iw(c, h, d, r, r)})), ju(g, {shape: Iw(c, h, d, o, a)}, t)); else if ("polyline" === u) if ("orthogonal" === c) {
                    if (e !== n && e.children && 0 !== e.children.length && !0 === e.isExpand) {
                        for (var m = e.children, y = [], v = 0; v < m.length; v++) {
                            var _ = m[v].getLayout();
                            y.push([_.x, _.y])
                        }
                        g || (g = i.__edge = new vw({
                            shape: {
                                parentPoint: [a.x, a.y],
                                childPoints: [[a.x, a.y]],
                                orient: h,
                                forkPosition: p
                            }
                        })), ju(g, {shape: {parentPoint: [a.x, a.y], childPoints: y}}, t)
                    }
                } else 0;
                g && ("polyline" !== u || e.isExpand) && (g.useStyle(dt({
                    strokeNoScale: !0,
                    fill: null
                }, f)), Fu(g, l, "lineStyle"), vu(g), s.add(g))
            }(r, a, c, n, f, p, g, i), n.__edge && (n.onHoverStateChange = function (e) {
                if ("blur" !== e) {
                    var i = a.parentNode && t.getItemGraphicEl(a.parentNode.dataIndex);
                    i && i.hoverState === jl || mu(n.__edge, e)
                }
            })
        }

        function Sw(t, e, n, i, r) {
            var o = Aw(e.tree.root, t), a = o.source, s = o.sourceLayout, l = e.getItemGraphicEl(t.dataIndex);
            if (l) {
                var u = e.getItemGraphicEl(a.dataIndex).__edge,
                    c = l.__edge || (!1 === a.isExpand || 1 === a.children.length ? u : void 0), h = i.get("edgeShape"),
                    d = i.get("layout"), p = i.get("orient"), f = i.get(["lineStyle", "curveness"]);
                c && ("curve" === h ? Ku(c, {shape: Iw(d, p, f, s, s), style: {opacity: 0}}, i, {
                    cb: function () {
                        n.remove(c)
                    }, removeOpt: r
                }) : "polyline" === h && "orthogonal" === i.get("layout") && Ku(c, {
                    shape: {
                        parentPoint: [s.x, s.y],
                        childPoints: [[s.x, s.y]]
                    }, style: {opacity: 0}
                }, i, {
                    cb: function () {
                        n.remove(c)
                    }, removeOpt: r
                }))
            }
        }

        function Aw(t, e) {
            for (var n, i = e.parentNode === t ? e : e.parentNode || e; null == (n = i.getLayout());) i = i.parentNode === t ? i : i.parentNode || i;
            return {source: i, sourceLayout: n}
        }

        function bw(t, e, n, i, r) {
            var o = t.tree.getNodeByDataIndex(e), a = Aw(t.tree.root, o).sourceLayout,
                s = {duration: r.get("animationDurationUpdate"), easing: r.get("animationEasingUpdate")};
            Ku(n, {x: a.x + 1, y: a.y + 1}, r, {
                cb: function () {
                    i.remove(n), t.setItemGraphicEl(e, null)
                }, removeOpt: s
            }), n.fadeOut(null, t.hostModel, {fadeLabel: !0, animation: s}), o.children.forEach((function (e) {
                Sw(e, t, i, r, s)
            })), Sw(o, t, i, r, s)
        }

        function Iw(t, e, n, i, r) {
            var o, a, s, l, u, c, h, d;
            if ("radial" === t) {
                u = i.rawX, h = i.rawY, c = r.rawX, d = r.rawY;
                var p = hw(u, h), f = hw(u, h + (d - h) * n), g = hw(c, d + (h - d) * n), m = hw(c, d);
                return {
                    x1: p.x || 0,
                    y1: p.y || 0,
                    x2: m.x || 0,
                    y2: m.y || 0,
                    cpx1: f.x || 0,
                    cpy1: f.y || 0,
                    cpx2: g.x || 0,
                    cpy2: g.y || 0
                }
            }
            return u = i.x, h = i.y, c = r.x, d = r.y, "LR" !== e && "RL" !== e || (o = u + (c - u) * n, a = h, s = c + (u - c) * n, l = d), "TB" !== e && "BT" !== e || (o = u, a = h + (d - h) * n, s = c, l = d + (h - d) * n), {
                x1: u,
                y1: h,
                x2: c,
                y2: d,
                cpx1: o,
                cpy1: a,
                cpx2: s,
                cpy2: l
            }
        }

        const Ew = _w;
        var Cw = ha();

        function Dw(t, e) {
            if (Cw(i = this).mainData === i) {
                var n = ht({}, Cw(this).datas);
                n[this.dataType] = e, Lw(e, n, t)
            } else Rw(e, this.dataType, Cw(this).mainData, t);
            var i;
            return e
        }

        function ww(t, e) {
            return t.struct && t.struct.update(), e
        }

        function Mw(t, e) {
            return mt(Cw(e).datas, (function (n, i) {
                n !== e && Rw(n.cloneShallow(), i, e, t)
            })), e
        }

        function Nw(t) {
            var e = Cw(this).mainData;
            return null == t || null == e ? e : Cw(e).datas[t]
        }

        function Ow() {
            var t = Cw(this).mainData;
            return null == t ? [{data: t}] : yt(Tt(Cw(t).datas), (function (e) {
                return {type: e, data: Cw(t).datas[e]}
            }))
        }

        function Lw(t, e, n) {
            Cw(t).datas = {}, mt(e, (function (e, i) {
                Rw(e, i, t, n)
            }))
        }

        function Rw(t, e, n, i) {
            Cw(n).datas[e] = t, Cw(t).mainData = n, t.dataType = e, i.struct && (t[i.structAttr] = i.struct, i.struct[i.datasAttr[e]] = t), t.getLinkedData = Nw, t.getLinkedDataAll = Ow
        }

        const kw = function (t) {
            var e = t.mainData, n = t.datas;
            n || (n = {main: e}, t.datasAttr = {main: "data"}), t.datas = t.mainData = null, Lw(e, n, t), mt(n, (function (n) {
                mt(e.TRANSFERABLE_METHODS, (function (e) {
                    n.wrapMethod(e, St(Dw, t))
                }))
            })), e.wrapMethod("cloneShallow", St(Mw, t)), mt(e.CHANGABLE_METHODS, (function (n) {
                e.wrapMethod(n, St(ww, t))
            })), Ft(n[e.dataType] === e)
        };
        var Pw = function () {
            function t(t, e) {
                this.depth = 0, this.height = 0, this.dataIndex = -1, this.children = [], this.viewChildren = [], this.isExpand = !1, this.name = t || "", this.hostTree = e
            }

            return t.prototype.isRemoved = function () {
                return this.dataIndex < 0
            }, t.prototype.eachNode = function (t, e, n) {
                bt(t) && (n = e, e = t, t = null), It(t = t || {}) && (t = {order: t});
                var i, r = t.order || "preorder", o = this[t.attr || "children"];
                "preorder" === r && (i = e.call(n, this));
                for (var a = 0; !i && a < o.length; a++) o[a].eachNode(t, e, n);
                "postorder" === r && e.call(n, this)
            }, t.prototype.updateDepthAndHeight = function (t) {
                var e = 0;
                this.depth = t;
                for (var n = 0; n < this.children.length; n++) {
                    var i = this.children[n];
                    i.updateDepthAndHeight(t + 1), i.height > e && (e = i.height)
                }
                this.height = e + 1
            }, t.prototype.getNodeById = function (t) {
                if (this.getId() === t) return this;
                for (var e = 0, n = this.children, i = n.length; e < i; e++) {
                    var r = n[e].getNodeById(t);
                    if (r) return r
                }
            }, t.prototype.contains = function (t) {
                if (t === this) return !0;
                for (var e = 0, n = this.children, i = n.length; e < i; e++) {
                    var r = n[e].contains(t);
                    if (r) return r
                }
            }, t.prototype.getAncestors = function (t) {
                for (var e = [], n = t ? this : this.parentNode; n;) e.push(n), n = n.parentNode;
                return e.reverse(), e
            }, t.prototype.getAncestorsIndices = function () {
                for (var t = [], e = this; e;) t.push(e.dataIndex), e = e.parentNode;
                return t.reverse(), t
            }, t.prototype.getDescendantIndices = function () {
                var t = [];
                return this.eachNode((function (e) {
                    t.push(e.dataIndex)
                })), t
            }, t.prototype.getValue = function (t) {
                var e = this.hostTree.data;
                return e.getStore().get(e.getDimensionIndex(t || "value"), this.dataIndex)
            }, t.prototype.setLayout = function (t, e) {
                this.dataIndex >= 0 && this.hostTree.data.setItemLayout(this.dataIndex, t, e)
            }, t.prototype.getLayout = function () {
                return this.hostTree.data.getItemLayout(this.dataIndex)
            }, t.prototype.getModel = function (t) {
                if (!(this.dataIndex < 0)) return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)
            }, t.prototype.getLevelModel = function () {
                return (this.hostTree.levelModels || [])[this.depth]
            }, t.prototype.setVisual = function (t, e) {
                this.dataIndex >= 0 && this.hostTree.data.setItemVisual(this.dataIndex, t, e)
            }, t.prototype.getVisual = function (t) {
                return this.hostTree.data.getItemVisual(this.dataIndex, t)
            }, t.prototype.getRawIndex = function () {
                return this.hostTree.data.getRawIndex(this.dataIndex)
            }, t.prototype.getId = function () {
                return this.hostTree.data.getId(this.dataIndex)
            }, t.prototype.getChildIndex = function () {
                if (this.parentNode) {
                    for (var t = this.parentNode.children, e = 0; e < t.length; ++e) if (t[e] === this) return e;
                    return -1
                }
                return -1
            }, t.prototype.isAncestorOf = function (t) {
                for (var e = t.parentNode; e;) {
                    if (e === this) return !0;
                    e = e.parentNode
                }
                return !1
            }, t.prototype.isDescendantOf = function (t) {
                return t !== this && t.isAncestorOf(this)
            }, t
        }(), Gw = function () {
            function t(t) {
                this.type = "tree", this._nodes = [], this.hostModel = t
            }

            return t.prototype.eachNode = function (t, e, n) {
                this.root.eachNode(t, e, n)
            }, t.prototype.getNodeByDataIndex = function (t) {
                var e = this.data.getRawIndex(t);
                return this._nodes[e]
            }, t.prototype.getNodeById = function (t) {
                return this.root.getNodeById(t)
            }, t.prototype.update = function () {
                for (var t = this.data, e = this._nodes, n = 0, i = e.length; n < i; n++) e[n].dataIndex = -1;
                for (n = 0, i = t.count(); n < i; n++) e[t.getRawIndex(n)].dataIndex = n
            }, t.prototype.clearLayouts = function () {
                this.data.clearItemLayouts()
            }, t.createTree = function (e, n, i) {
                var r = new t(n), o = [], a = 1;
                !function t(e, n) {
                    var i = e.value;
                    a = Math.max(a, At(i) ? i.length : 1), o.push(e);
                    var s = new Pw(sa(e.name, ""), r);
                    n ? function (t, e) {
                        var n = e.children;
                        if (t.parentNode === e) return;
                        n.push(t), t.parentNode = e
                    }(s, n) : r.root = s, r._nodes.push(s);
                    var l = e.children;
                    if (l) for (var u = 0; u < l.length; u++) t(l[u], s)
                }(e), r.root.updateDepthAndHeight(0);
                var s = wS(o, {coordDimensions: ["value"], dimensionsCount: a}).dimensions, l = new DS(s, n);
                return l.initData(o), i && i(l), kw({mainData: l, struct: r, structAttr: "tree"}), r.update(), r
            }, t
        }();
        const Bw = Gw;

        function Fw(t, e, n) {
            if (t && pt(e, t.type) >= 0) {
                var i = n.getData().tree.root, r = t.targetNode;
                if (It(r) && (r = i.getNodeById(r)), r && i.contains(r)) return {node: r};
                var o = t.targetNodeId;
                if (null != o && (r = i.getNodeById(o))) return {node: r}
            }
        }

        function Hw(t) {
            for (var e = []; t;) (t = t.parentNode) && e.push(t);
            return e.reverse()
        }

        function Uw(t, e) {
            return pt(Hw(t), e) >= 0
        }

        function Vw(t, e) {
            for (var n = []; t;) {
                var i = t.dataIndex;
                n.push({name: t.name, dataIndex: i, value: e.getRawValue(i)}), t = t.parentNode
            }
            return n.reverse(), n
        }

        var zw = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.hasSymbolVisual = !0, e.ignoreStyleOnData = !0, e
            }

            return G(e, t), e.prototype.getInitialData = function (t) {
                var e = {name: t.name, children: t.data}, n = t.leaves || {}, i = new wc(n, this, this.ecModel),
                    r = Bw.createTree(e, this, (function (t) {
                        t.wrapMethod("getItemModel", (function (t, e) {
                            var n = r.getNodeByDataIndex(e);
                            return n && n.children.length && n.isExpand || (t.parentModel = i), t
                        }))
                    }));
                var o = 0;
                r.eachNode("preorder", (function (t) {
                    t.depth > o && (o = t.depth)
                }));
                var a = t.expandAndCollapse && t.initialTreeDepth >= 0 ? t.initialTreeDepth : o;
                return r.root.eachNode("preorder", (function (t) {
                    var e = t.hostTree.data.getRawDataItem(t.dataIndex);
                    t.isExpand = e && null != e.collapsed ? !e.collapsed : t.depth <= a
                })), r.data
            }, e.prototype.getOrient = function () {
                var t = this.get("orient");
                return "horizontal" === t ? t = "LR" : "vertical" === t && (t = "TB"), t
            }, e.prototype.setZoom = function (t) {
                this.option.zoom = t
            }, e.prototype.setCenter = function (t) {
                this.option.center = t
            }, e.prototype.formatTooltip = function (t, e, n) {
                for (var i = this.getData().tree, r = i.root.children[0], o = i.getNodeByDataIndex(t), a = o.getValue(), s = o.name; o && o !== r;) s = o.parentNode.name + "." + s, o = o.parentNode;
                return hf("nameValue", {name: s, value: a, noValue: isNaN(a) || null == a})
            }, e.prototype.getDataParams = function (e) {
                var n = t.prototype.getDataParams.apply(this, arguments), i = this.getData().tree.getNodeByDataIndex(e);
                return n.treeAncestors = Vw(i, this), n.collapsed = !i.isExpand, n
            }, e.type = "series.tree", e.layoutMode = "box", e.defaultOption = {
                z: 2,
                coordinateSystem: "view",
                left: "12%",
                top: "12%",
                right: "12%",
                bottom: "12%",
                layout: "orthogonal",
                edgeShape: "curve",
                edgeForkPosition: "50%",
                roam: !1,
                nodeScaleRatio: .4,
                center: null,
                zoom: 1,
                orient: "LR",
                symbol: "emptyCircle",
                symbolSize: 7,
                expandAndCollapse: !0,
                initialTreeDepth: 2,
                lineStyle: {color: "#ccc", width: 1.5, curveness: .5},
                itemStyle: {color: "lightsteelblue", borderWidth: 1.5},
                label: {show: !0},
                animationEasing: "linear",
                animationDuration: 700,
                animationDurationUpdate: 500
            }, e
        }(kf);
        const Ww = zw;

        function Yw(t, e) {
            for (var n, i = [t]; n = i.pop();) if (e(n), n.isExpand) {
                var r = n.children;
                if (r.length) for (var o = r.length - 1; o >= 0; o--) i.push(r[o])
            }
        }

        function qw(t, e) {
            t.eachSeriesByType("tree", (function (t) {
                !function (t, e) {
                    var n = function (t, e) {
                        return Nh(t.getBoxLayoutParams(), {width: e.getWidth(), height: e.getHeight()})
                    }(t, e);
                    t.layoutInfo = n;
                    var i = t.get("layout"), r = 0, o = 0, a = null;
                    "radial" === i ? (r = 2 * Math.PI, o = Math.min(n.height, n.width) / 2, a = cw((function (t, e) {
                        return (t.parentNode === e.parentNode ? 1 : 2) / t.depth
                    }))) : (r = n.width, o = n.height, a = cw());
                    var s = t.getData().tree.root, l = s.children[0];
                    if (l) {
                        !function (t) {
                            var e = t;
                            e.hierNode = {
                                defaultAncestor: null,
                                ancestor: e,
                                prelim: 0,
                                modifier: 0,
                                change: 0,
                                shift: 0,
                                i: 0,
                                thread: null
                            };
                            for (var n, i, r = [e]; n = r.pop();) if (i = n.children, n.isExpand && i.length) for (var o = i.length - 1; o >= 0; o--) {
                                var a = i[o];
                                a.hierNode = {
                                    defaultAncestor: null,
                                    ancestor: a,
                                    prelim: 0,
                                    modifier: 0,
                                    change: 0,
                                    shift: 0,
                                    i: o,
                                    thread: null
                                }, r.push(a)
                            }
                        }(s), function (t, e, n) {
                            for (var i, r = [t], o = []; i = r.pop();) if (o.push(i), i.isExpand) {
                                var a = i.children;
                                if (a.length) for (var s = 0; s < a.length; s++) r.push(a[s])
                            }
                            for (; i = o.pop();) e(i, n)
                        }(l, lw, a), s.hierNode.modifier = -l.hierNode.prelim, Yw(l, uw);
                        var u = l, c = l, h = l;
                        Yw(l, (function (t) {
                            var e = t.getLayout().x;
                            e < u.getLayout().x && (u = t), e > c.getLayout().x && (c = t), t.depth > h.depth && (h = t)
                        }));
                        var d = u === c ? 1 : a(u, c) / 2, p = d - u.getLayout().x, f = 0, g = 0, m = 0, y = 0;
                        if ("radial" === i) f = r / (c.getLayout().x + d + p), g = o / (h.depth - 1 || 1), Yw(l, (function (t) {
                            m = (t.getLayout().x + p) * f, y = (t.depth - 1) * g;
                            var e = hw(m, y);
                            t.setLayout({x: e.x, y: e.y, rawX: m, rawY: y}, !0)
                        })); else {
                            var v = t.getOrient();
                            "RL" === v || "LR" === v ? (g = o / (c.getLayout().x + d + p), f = r / (h.depth - 1 || 1), Yw(l, (function (t) {
                                y = (t.getLayout().x + p) * g, m = "LR" === v ? (t.depth - 1) * f : r - (t.depth - 1) * f, t.setLayout({
                                    x: m,
                                    y
                                }, !0)
                            }))) : "TB" !== v && "BT" !== v || (f = r / (c.getLayout().x + d + p), g = o / (h.depth - 1 || 1), Yw(l, (function (t) {
                                m = (t.getLayout().x + p) * f, y = "TB" === v ? (t.depth - 1) * g : o - (t.depth - 1) * g, t.setLayout({
                                    x: m,
                                    y
                                }, !0)
                            })))
                        }
                    }
                }(t, e)
            }))
        }

        function jw(t) {
            t.eachSeriesByType("tree", (function (t) {
                var e = t.getData();
                e.tree.eachNode((function (t) {
                    var n = t.getModel().getModel("itemStyle").getItemStyle();
                    ht(e.ensureUniqueItemVisual(t.dataIndex, "style"), n)
                }))
            }))
        }

        var Xw = ["treemapZoomToNode", "treemapRender", "treemapMove"];

        function Zw(t) {
            var e = t.getData().tree, n = {};
            e.eachNode((function (e) {
                for (var i = e; i && i.depth > 1;) i = i.parentNode;
                var r = dd(t.ecModel, i.name || i.dataIndex + "", n);
                e.setVisual("decal", r)
            }))
        }

        function Kw(t) {
            var e = 0;
            mt(t.children, (function (t) {
                Kw(t);
                var n = t.value;
                At(n) && (n = n[0]), e += n
            }));
            var n = t.value;
            At(n) && (n = n[0]), (null == n || isNaN(n)) && (n = e), n < 0 && (n = 0), At(t.value) ? t.value[0] = n : t.value = n
        }

        const Qw = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.preventUsingHoverLayer = !0, n
            }

            return G(e, t), e.prototype.getInitialData = function (t, e) {
                var n = {name: t.name, children: t.data};
                Kw(n);
                var i = t.levels || [], r = this.designatedVisualItemStyle = {}, o = new wc({itemStyle: r}, this, e);
                i = t.levels = function (t, e) {
                    var n, i, r = Jo(e.get("color")), o = Jo(e.get(["aria", "decal", "decals"]));
                    if (!r) return;
                    t = t || [], mt(t, (function (t) {
                        var e = new wc(t), r = e.get("color"), o = e.get("decal");
                        (e.get(["itemStyle", "color"]) || r && "none" !== r) && (n = !0), (e.get(["itemStyle", "decal"]) || o && "none" !== o) && (i = !0)
                    }));
                    var a = t[0] || (t[0] = {});
                    n || (a.color = r.slice());
                    !i && o && (a.decal = o.slice());
                    return t
                }(i, e);
                var a = yt(i || [], (function (t) {
                    return new wc(t, o, e)
                }), this), s = Bw.createTree(n, this, (function (t) {
                    t.wrapMethod("getItemModel", (function (t, e) {
                        var n = s.getNodeByDataIndex(e), i = n ? a[n.depth] : null;
                        return t.parentModel = i || o, t
                    }))
                }));
                return s.data
            }, e.prototype.optionUpdated = function () {
                this.resetViewRoot()
            }, e.prototype.formatTooltip = function (t, e, n) {
                var i = this.getData(), r = this.getRawValue(t);
                return hf("nameValue", {name: i.getName(t), value: r})
            }, e.prototype.getDataParams = function (e) {
                var n = t.prototype.getDataParams.apply(this, arguments), i = this.getData().tree.getNodeByDataIndex(e);
                return n.treeAncestors = Vw(i, this), n.treePathInfo = n.treeAncestors, n
            }, e.prototype.setLayoutInfo = function (t) {
                this.layoutInfo = this.layoutInfo || {}, ht(this.layoutInfo, t)
            }, e.prototype.mapIdToIndex = function (t) {
                var e = this._idIndexMap;
                e || (e = this._idIndexMap = jt(), this._idIndexMapCount = 0);
                var n = e.get(t);
                return null == n && e.set(t, n = this._idIndexMapCount++), n
            }, e.prototype.getViewRoot = function () {
                return this._viewRoot
            }, e.prototype.resetViewRoot = function (t) {
                t ? this._viewRoot = t : t = this._viewRoot;
                var e = this.getRawData().tree.root;
                t && (t === e || e.contains(t)) || (this._viewRoot = e)
            }, e.prototype.enableAriaDecal = function () {
                Zw(this)
            }, e.type = "series.treemap", e.layoutMode = "box", e.defaultOption = {
                progressive: 0,
                left: "center",
                top: "middle",
                width: "80%",
                height: "80%",
                sort: !0,
                clipWindow: "origin",
                squareRatio: .5 * (1 + Math.sqrt(5)),
                leafDepth: null,
                drillDownIcon: "▶",
                zoomToNodeRatio: .1024,
                roam: !0,
                nodeClick: "zoomToNode",
                animation: !0,
                animationDurationUpdate: 900,
                animationEasing: "quinticInOut",
                breadcrumb: {
                    show: !0,
                    height: 22,
                    left: "center",
                    top: "bottom",
                    emptyItemWidth: 25,
                    itemStyle: {color: "rgba(0,0,0,0.7)", textStyle: {color: "#fff"}},
                    emphasis: {itemStyle: {color: "rgba(0,0,0,0.9)"}}
                },
                label: {show: !0, distance: 0, padding: 5, position: "inside", color: "#fff", overflow: "truncate"},
                upperLabel: {show: !1, position: [0, "50%"], height: 20, overflow: "truncate", verticalAlign: "middle"},
                itemStyle: {
                    color: null,
                    colorAlpha: null,
                    colorSaturation: null,
                    borderWidth: 0,
                    gapWidth: 0,
                    borderColor: "#fff",
                    borderColorSaturation: null
                },
                emphasis: {upperLabel: {show: !0, position: [0, "50%"], overflow: "truncate", verticalAlign: "middle"}},
                visualDimension: 0,
                visualMin: null,
                visualMax: null,
                color: [],
                colorAlpha: null,
                colorSaturation: null,
                colorMappingBy: "index",
                visibleMin: 10,
                childrenVisibleMin: null,
                levels: []
            }, e
        }(kf);
        var $w = function () {
            function t(t) {
                this.group = new xo, t.add(this.group)
            }

            return t.prototype.render = function (t, e, n, i) {
                var r = t.getModel("breadcrumb"), o = this.group;
                if (o.removeAll(), r.get("show") && n) {
                    var a = r.getModel("itemStyle"), s = r.getModel("emphasis"), l = a.getModel("textStyle"),
                        u = s.getModel(["itemStyle", "textStyle"]), c = {
                            pos: {
                                left: r.get("left"),
                                right: r.get("right"),
                                top: r.get("top"),
                                bottom: r.get("bottom")
                            },
                            box: {width: e.getWidth(), height: e.getHeight()},
                            emptyItemWidth: r.get("emptyItemWidth"),
                            totalWidth: 0,
                            renderList: []
                        };
                    this._prepare(n, c, l), this._renderContent(t, c, a, s, l, u, i), Oh(o, c.pos, c.box)
                }
            }, t.prototype._prepare = function (t, e, n) {
                for (var i = t; i; i = i.parentNode) {
                    var r = sa(i.getModel().get("name"), ""), o = n.getTextRect(r),
                        a = Math.max(o.width + 16, e.emptyItemWidth);
                    e.totalWidth += a + 8, e.renderList.push({node: i, text: r, width: a})
                }
            }, t.prototype._renderContent = function (t, e, n, i, r, o, a) {
                for (var s, l, u, c, h, d, p, f, g, m = 0, y = e.emptyItemWidth, v = t.get(["breadcrumb", "height"]), _ = (s = e.pos, l = e.box, c = l.width, h = l.height, d = wo(s.left, c), p = wo(s.top, h), f = wo(s.right, c), g = wo(s.bottom, h), (isNaN(d) || isNaN(parseFloat(s.left))) && (d = 0), (isNaN(f) || isNaN(parseFloat(s.right))) && (f = c), (isNaN(p) || isNaN(parseFloat(s.top))) && (p = 0), (isNaN(g) || isNaN(parseFloat(s.bottom))) && (g = h), u = _h(u || 0), {
                    width: Math.max(f - d - u[1] - u[3], 0),
                    height: Math.max(g - p - u[0] - u[2], 0)
                }), T = e.totalWidth, x = e.renderList, S = i.getModel("itemStyle").getItemStyle(), A = x.length - 1; A >= 0; A--) {
                    var b = x[A], I = b.node, E = b.width, C = b.text;
                    T > _.width && (T -= E - y, E = y, C = null);
                    var D = new Lg({
                        shape: {points: Jw(m, 0, E, v, A === x.length - 1, 0 === A)},
                        style: dt(n.getItemStyle(), {lineJoin: "bevel"}),
                        textContent: new Fl({style: oc(r, {text: C})}),
                        textConfig: {position: "inside"},
                        z2: 1e4 * Ql,
                        onclick: St(a, I)
                    });
                    D.disableLabelAnimation = !0, D.getTextContent().ensureState("emphasis").style = oc(o, {text: C}), D.ensureState("emphasis").style = S, ku(D, i.get("focus"), i.get("blurScope"), i.get("disabled")), this.group.add(D), tM(D, t, I), m += E + 8
                }
            }, t.prototype.remove = function () {
                this.group.removeAll()
            }, t
        }();

        function Jw(t, e, n, i, r, o) {
            var a = [[r ? t : t - 5, e], [t + n, e], [t + n, e + i], [r ? t : t - 5, e + i]];
            return !o && a.splice(2, 0, [t + n + 5, e + i / 2]), !r && a.push([t, e + i / 2]), a
        }

        function tM(t, e, n) {
            Hl(t).eventData = {
                componentType: "series",
                componentSubType: "treemap",
                componentIndex: e.componentIndex,
                seriesIndex: e.seriesIndex,
                seriesName: e.name,
                seriesType: "treemap",
                selfType: "breadcrumb",
                nodeData: {dataIndex: n && n.dataIndex, name: n && n.name},
                treePathInfo: n && Vw(n, e)
            }
        }

        const eM = $w;
        var nM = function () {
            function t() {
                this._storage = [], this._elExistsMap = {}
            }

            return t.prototype.add = function (t, e, n, i, r) {
                return !this._elExistsMap[t.id] && (this._elExistsMap[t.id] = !0, this._storage.push({
                    el: t,
                    target: e,
                    duration: n,
                    delay: i,
                    easing: r
                }), !0)
            }, t.prototype.finished = function (t) {
                return this._finishedCallback = t, this
            }, t.prototype.start = function () {
                for (var t = this, e = this._storage.length, n = function () {
                    --e <= 0 && (t._storage.length = 0, t._elExistsMap = {}, t._finishedCallback && t._finishedCallback())
                }, i = 0, r = this._storage.length; i < r; i++) {
                    var o = this._storage[i];
                    o.el.animateTo(o.target, {
                        duration: o.duration,
                        delay: o.delay,
                        easing: o.easing,
                        setToFinal: !0,
                        done: n,
                        aborted: n
                    })
                }
                return this
            }, t
        }();
        var iM = xo, rM = Al, oM = "label", aM = "upperLabel", sM = 10 * Ql, lM = 2 * Ql, uM = 3 * Ql,
            cM = Na([["fill", "color"], ["stroke", "strokeColor"], ["lineWidth", "strokeWidth"], ["shadowBlur"], ["shadowOffsetX"], ["shadowOffsetY"], ["shadowColor"]]),
            hM = function (t) {
                var e = cM(t);
                return e.stroke = e.fill = e.lineWidth = null, e
            }, dM = ha(), pM = function (t) {
                function e() {
                    var n = null !== t && t.apply(this, arguments) || this;
                    return n.type = e.type, n._state = "ready", n._storage = {nodeGroup: [], background: [], content: []}, n
                }

                return G(e, t), e.prototype.render = function (t, e, n, i) {
                    if (!(pt(e.findComponents({mainType: "series", subType: "treemap", query: i}), t) < 0)) {
                        this.seriesModel = t, this.api = n, this.ecModel = e;
                        var r = Fw(i, ["treemapZoomToNode", "treemapRootToNode"], t), o = i && i.type, a = t.layoutInfo,
                            s = !this._oldTree, l = this._storage, u = "treemapRootToNode" === o && r && l ? {
                                rootNodeGroup: l.nodeGroup[r.node.getRawIndex()],
                                direction: i.direction
                            } : null, c = this._giveContainerGroup(a), h = t.get("animation"), d = this._doRender(c, t, u);
                        !h || s || o && "treemapZoomToNode" !== o && "treemapRootToNode" !== o ? d.renderFinally() : this._doAnimation(c, d, t, u), this._resetController(n), this._renderBreadcrumb(t, n, r)
                    }
                }, e.prototype._giveContainerGroup = function (t) {
                    var e = this._containerGroup;
                    return e || (e = this._containerGroup = new iM, this._initEvents(e), this.group.add(e)), e.x = t.x, e.y = t.y, e
                }, e.prototype._doRender = function (t, e, n) {
                    var i = e.getData().tree, r = this._oldTree, o = {nodeGroup: [], background: [], content: []},
                        a = {nodeGroup: [], background: [], content: []}, s = this._storage, l = [];

                    function u(t, i, r, u) {
                        return function (t, e, n, i, r, o, a, s, l, u) {
                            if (!a) return;
                            var c = a.getLayout(), h = t.getData(), d = a.getModel();
                            if (h.setItemGraphicEl(a.dataIndex, null), !c || !c.isInView) return;
                            var p = c.width, f = c.height, g = c.borderWidth, m = c.invisible, y = a.getRawIndex(),
                                v = s && s.getRawIndex(), _ = a.viewChildren, T = c.upperHeight, x = _ && _.length,
                                S = d.getModel("itemStyle"), A = d.getModel(["emphasis", "itemStyle"]),
                                b = d.getModel(["blur", "itemStyle"]), I = d.getModel(["select", "itemStyle"]),
                                E = S.get("borderRadius") || 0, C = H("nodeGroup", iM);
                            if (!C) return;
                            if (l.add(C), C.x = c.x || 0, C.y = c.y || 0, C.markRedraw(), dM(C).nodeWidth = p, dM(C).nodeHeight = f, c.isAboveViewRoot) return C;
                            var D = H("background", rM, u, lM);
                            D && k(C, D, x && c.upperLabelHeight);
                            var w = d.getModel("emphasis"), M = w.get("focus"), N = w.get("blurScope"),
                                O = w.get("disabled"),
                                L = "ancestor" === M ? a.getAncestorsIndices() : "descendant" === M ? a.getDescendantIndices() : M;
                            if (x) Uu(C) && Hu(C, !1), D && (Hu(D, !O), h.setItemGraphicEl(a.dataIndex, D), Pu(D, L, N)); else {
                                var R = H("content", rM, u, uM);
                                R && P(C, R), D.disableMorphing = !0, D && Uu(D) && Hu(D, !1), Hu(C, !O), h.setItemGraphicEl(a.dataIndex, C), Pu(C, L, N)
                            }
                            return C;

                            function k(e, n, i) {
                                var r = Hl(n);
                                if (r.dataIndex = a.dataIndex, r.seriesIndex = t.seriesIndex, n.setShape({
                                    x: 0,
                                    y: 0,
                                    width: p,
                                    height: f,
                                    r: E
                                }), m) G(n); else {
                                    n.invisible = !1;
                                    var o = a.getVisual("style"), s = o.stroke, l = hM(S);
                                    l.fill = s;
                                    var u = cM(A);
                                    u.fill = A.get("borderColor");
                                    var c = cM(b);
                                    c.fill = b.get("borderColor");
                                    var h = cM(I);
                                    if (h.fill = I.get("borderColor"), i) {
                                        var d = p - 2 * g;
                                        B(n, s, o.opacity, {x: g, y: 0, width: d, height: T})
                                    } else n.removeTextContent();
                                    n.setStyle(l), n.ensureState("emphasis").style = u, n.ensureState("blur").style = c, n.ensureState("select").style = h, vu(n)
                                }
                                e.add(n)
                            }

                            function P(e, n) {
                                var i = Hl(n);
                                i.dataIndex = a.dataIndex, i.seriesIndex = t.seriesIndex;
                                var r = Math.max(p - 2 * g, 0), o = Math.max(f - 2 * g, 0);
                                if (n.culling = !0, n.setShape({x: g, y: g, width: r, height: o, r: E}), m) G(n); else {
                                    n.invisible = !1;
                                    var s = a.getVisual("style"), l = s.fill, u = hM(S);
                                    u.fill = l, u.decal = s.decal;
                                    var c = cM(A), h = cM(b), d = cM(I);
                                    B(n, l, s.opacity, null), n.setStyle(u), n.ensureState("emphasis").style = c, n.ensureState("blur").style = h, n.ensureState("select").style = d, vu(n)
                                }
                                e.add(n)
                            }

                            function G(t) {
                                !t.invisible && o.push(t)
                            }

                            function B(e, n, i, r) {
                                var o = d.getModel(r ? aM : oM), s = sa(d.get("name"), null), l = o.getShallow("show");
                                ic(e, rc(d, r ? aM : oM), {
                                    defaultText: l ? s : null,
                                    inheritColor: n,
                                    defaultOpacity: i,
                                    labelFetcher: t,
                                    labelDataIndex: a.dataIndex
                                });
                                var u = e.getTextContent();
                                if (u) {
                                    var h = u.style, p = Bt(h.padding || 0);
                                    r && (e.setTextConfig({layoutRect: r}), u.disableLabelLayout = !0), u.beforeUpdate = function () {
                                        var t = Math.max((r ? r.width : e.shape.width) - p[1] - p[3], 0),
                                            n = Math.max((r ? r.height : e.shape.height) - p[0] - p[2], 0);
                                        h.width === t && h.height === n || u.setStyle({width: t, height: n})
                                    }, h.truncateMinChar = 2, h.lineOverflow = "truncate", F(h, r, c);
                                    var f = u.getState("emphasis");
                                    F(f ? f.style : null, r, c)
                                }
                            }

                            function F(e, n, i) {
                                var r = e ? e.text : null;
                                if (!n && i.isLeafRoot && null != r) {
                                    var o = t.get("drillDownIcon", !0);
                                    e.text = o ? o + " " + r : r
                                }
                            }

                            function H(t, i, o, a) {
                                var s = null != v && n[t][v], l = r[t];
                                return s ? (n[t][v] = null, U(l, s)) : m || ((s = new i) instanceof os && (s.z2 = function (t, e) {
                                    return t * sM + e
                                }(o, a)), V(l, s)), e[t][y] = s
                            }

                            function U(t, e) {
                                var n = t[y] = {};
                                e instanceof iM ? (n.oldX = e.x, n.oldY = e.y) : n.oldShape = ht({}, e.shape)
                            }

                            function V(t, e) {
                                var n = t[y] = {}, o = a.parentNode, s = e instanceof xo;
                                if (o && (!i || "drillDown" === i.direction)) {
                                    var l = 0, u = 0, c = r.background[o.getRawIndex()];
                                    !i && c && c.oldShape && (l = c.oldShape.width, u = c.oldShape.height), s ? (n.oldX = 0, n.oldY = u) : n.oldShape = {
                                        x: l,
                                        y: u,
                                        width: 0,
                                        height: 0
                                    }
                                }
                                n.fadein = !s
                            }
                        }(e, a, s, n, o, l, t, i, r, u)
                    }

                    !function t(e, n, i, r, o) {
                        r ? (n = e, mt(e, (function (t, e) {
                            !t.isRemoved() && s(e, e)
                        }))) : new iS(n, e, a, a).add(s).update(s).remove(St(s, null)).execute();

                        function a(t) {
                            return t.getId()
                        }

                        function s(a, s) {
                            var l = null != a ? e[a] : null, c = null != s ? n[s] : null, h = u(l, c, i, o);
                            h && t(l && l.viewChildren || [], c && c.viewChildren || [], h, r, o + 1)
                        }
                    }(i.root ? [i.root] : [], r && r.root ? [r.root] : [], t, i === r || !r, 0);
                    var c = function (t) {
                        var e = {nodeGroup: [], background: [], content: []};
                        return t && mt(t, (function (t, n) {
                            var i = e[n];
                            mt(t, (function (t) {
                                t && (i.push(t), dM(t).willDelete = !0)
                            }))
                        })), e
                    }(s);
                    return this._oldTree = i, this._storage = a, {
                        lastsForAnimation: o,
                        willDeleteEls: c,
                        renderFinally: function () {
                            mt(c, (function (t) {
                                mt(t, (function (t) {
                                    t.parent && t.parent.remove(t)
                                }))
                            })), mt(l, (function (t) {
                                t.invisible = !0, t.dirty()
                            }))
                        }
                    }
                }, e.prototype._doAnimation = function (t, e, n, i) {
                    var r = n.get("animationDurationUpdate"), o = n.get("animationEasing"), a = (bt(r) ? 0 : r) || 0,
                        s = (bt(o) ? null : o) || "cubicOut", l = new nM;
                    mt(e.willDeleteEls, (function (t, e) {
                        mt(t, (function (t, n) {
                            if (!t.invisible) {
                                var r, o = t.parent, u = dM(o);
                                if (i && "drillDown" === i.direction) r = o === i.rootNodeGroup ? {
                                    shape: {
                                        x: 0,
                                        y: 0,
                                        width: u.nodeWidth,
                                        height: u.nodeHeight
                                    }, style: {opacity: 0}
                                } : {style: {opacity: 0}}; else {
                                    var c = 0, h = 0;
                                    u.willDelete || (c = u.nodeWidth / 2, h = u.nodeHeight / 2), r = "nodeGroup" === e ? {
                                        x: c,
                                        y: h,
                                        style: {opacity: 0}
                                    } : {shape: {x: c, y: h, width: 0, height: 0}, style: {opacity: 0}}
                                }
                                r && l.add(t, r, a, 0, s)
                            }
                        }))
                    })), mt(this._storage, (function (t, n) {
                        mt(t, (function (t, i) {
                            var r = e.lastsForAnimation[n][i], o = {};
                            r && (t instanceof xo ? null != r.oldX && (o.x = t.x, o.y = t.y, t.x = r.oldX, t.y = r.oldY) : (r.oldShape && (o.shape = ht({}, t.shape), t.setShape(r.oldShape)), r.fadein ? (t.setStyle("opacity", 0), o.style = {opacity: 1}) : 1 !== t.style.opacity && (o.style = {opacity: 1})), l.add(t, o, a, 0, s))
                        }))
                    }), this), this._state = "animating", l.finished(xt((function () {
                        this._state = "ready", e.renderFinally()
                    }), this)).start()
                }, e.prototype._resetController = function (t) {
                    var e = this._controller;
                    e || ((e = this._controller = new xC(t.getZr())).enable(this.seriesModel.get("roam")), e.on("pan", xt(this._onPan, this)), e.on("zoom", xt(this._onZoom, this)));
                    var n = new hn(0, 0, t.getWidth(), t.getHeight());
                    e.setPointerChecker((function (t, e, i) {
                        return n.contain(e, i)
                    }))
                }, e.prototype._clearController = function () {
                    var t = this._controller;
                    t && (t.dispose(), t = null)
                }, e.prototype._onPan = function (t) {
                    if ("animating" !== this._state && (Math.abs(t.dx) > 3 || Math.abs(t.dy) > 3)) {
                        var e = this.seriesModel.getData().tree.root;
                        if (!e) return;
                        var n = e.getLayout();
                        if (!n) return;
                        this.api.dispatchAction({
                            type: "treemapMove",
                            from: this.uid,
                            seriesId: this.seriesModel.id,
                            rootRect: {x: n.x + t.dx, y: n.y + t.dy, width: n.width, height: n.height}
                        })
                    }
                }, e.prototype._onZoom = function (t) {
                    var e = t.originX, n = t.originY;
                    if ("animating" !== this._state) {
                        var i = this.seriesModel.getData().tree.root;
                        if (!i) return;
                        var r = i.getLayout();
                        if (!r) return;
                        var o = new hn(r.x, r.y, r.width, r.height), a = this.seriesModel.layoutInfo,
                            s = [1, 0, 0, 1, 0, 0];
                        Ze(s, s, [-(e -= a.x), -(n -= a.y)]), Qe(s, s, [t.scale, t.scale]), Ze(s, s, [e, n]), o.applyTransform(s), this.api.dispatchAction({
                            type: "treemapRender",
                            from: this.uid,
                            seriesId: this.seriesModel.id,
                            rootRect: {x: o.x, y: o.y, width: o.width, height: o.height}
                        })
                    }
                }, e.prototype._initEvents = function (t) {
                    var e = this;
                    t.on("click", (function (t) {
                        if ("ready" === e._state) {
                            var n = e.seriesModel.get("nodeClick", !0);
                            if (n) {
                                var i = e.findTarget(t.offsetX, t.offsetY);
                                if (i) {
                                    var r = i.node;
                                    if (r.getLayout().isLeafRoot) e._rootToNode(i); else if ("zoomToNode" === n) e._zoomToNode(i); else if ("link" === n) {
                                        var o = r.hostTree.data.getItemModel(r.dataIndex), a = o.get("link", !0),
                                            s = o.get("target", !0) || "blank";
                                        a && Ih(a, s)
                                    }
                                }
                            }
                        }
                    }), this)
                }, e.prototype._renderBreadcrumb = function (t, e, n) {
                    var i = this;
                    n || (n = null != t.get("leafDepth", !0) ? {node: t.getViewRoot()} : this.findTarget(e.getWidth() / 2, e.getHeight() / 2)) || (n = {node: t.getData().tree.root}), (this._breadcrumb || (this._breadcrumb = new eM(this.group))).render(t, e, n.node, (function (e) {
                        "animating" !== i._state && (Uw(t.getViewRoot(), e) ? i._rootToNode({node: e}) : i._zoomToNode({node: e}))
                    }))
                }, e.prototype.remove = function () {
                    this._clearController(), this._containerGroup && this._containerGroup.removeAll(), this._storage = {
                        nodeGroup: [],
                        background: [],
                        content: []
                    }, this._state = "ready", this._breadcrumb && this._breadcrumb.remove()
                }, e.prototype.dispose = function () {
                    this._clearController()
                }, e.prototype._zoomToNode = function (t) {
                    this.api.dispatchAction({
                        type: "treemapZoomToNode",
                        from: this.uid,
                        seriesId: this.seriesModel.id,
                        targetNode: t.node
                    })
                }, e.prototype._rootToNode = function (t) {
                    this.api.dispatchAction({
                        type: "treemapRootToNode",
                        from: this.uid,
                        seriesId: this.seriesModel.id,
                        targetNode: t.node
                    })
                }, e.prototype.findTarget = function (t, e) {
                    var n;
                    return this.seriesModel.getViewRoot().eachNode({
                        attr: "viewChildren",
                        order: "preorder"
                    }, (function (i) {
                        var r = this._storage.background[i.getRawIndex()];
                        if (r) {
                            var o = r.transformCoordToLocal(t, e), a = r.shape;
                            if (!(a.x <= o[0] && o[0] <= a.x + a.width && a.y <= o[1] && o[1] <= a.y + a.height)) return !1;
                            n = {node: i, offsetX: o[0], offsetY: o[1]}
                        }
                    }), this), n
                }, e.type = "treemap", e
            }(jm);
        const fM = pM;
        var gM = mt, mM = Dt, yM = -1, vM = function () {
            function t(e) {
                var n = e.mappingMethod, i = e.type, r = this.option = lt(e);
                this.type = i, this.mappingMethod = n, this._normalizeData = DM[n];
                var o = t.visualHandlers[i];
                this.applyVisual = o.applyVisual, this.getColorMapper = o.getColorMapper, this._normalizedToVisual = o._normalizedToVisual[n], "piecewise" === n ? (_M(r), function (t) {
                    var e = t.pieceList;
                    t.hasSpecialVisual = !1, mt(e, (function (e, n) {
                        e.originIndex = n, null != e.visual && (t.hasSpecialVisual = !0)
                    }))
                }(r)) : "category" === n ? r.categories ? function (t) {
                    var e = t.categories, n = t.categoryMap = {}, i = t.visual;
                    if (gM(e, (function (t, e) {
                        n[t] = e
                    })), !At(i)) {
                        var r = [];
                        Dt(i) ? gM(i, (function (t, e) {
                            var i = n[e];
                            r[null != i ? i : yM] = t
                        })) : r[yM] = i, i = CM(t, r)
                    }
                    for (var o = e.length - 1; o >= 0; o--) null == i[o] && (delete n[e[o]], e.pop())
                }(r) : _M(r, !0) : (Ft("linear" !== n || r.dataExtent), _M(r))
            }

            return t.prototype.mapValueToVisual = function (t) {
                var e = this._normalizeData(t);
                return this._normalizedToVisual(e, t)
            }, t.prototype.getNormalizer = function () {
                return xt(this._normalizeData, this)
            }, t.listVisualTypes = function () {
                return Tt(t.visualHandlers)
            }, t.isValidType = function (e) {
                return t.visualHandlers.hasOwnProperty(e)
            }, t.eachVisual = function (t, e, n) {
                Dt(t) ? mt(t, e, n) : e.call(n, t)
            }, t.mapVisual = function (e, n, i) {
                var r, o = At(e) ? [] : Dt(e) ? {} : (r = !0, null);
                return t.eachVisual(e, (function (t, e) {
                    var a = n.call(i, t, e);
                    r ? o = a : o[e] = a
                })), o
            }, t.retrieveVisuals = function (e) {
                var n, i = {};
                return e && gM(t.visualHandlers, (function (t, r) {
                    e.hasOwnProperty(r) && (i[r] = e[r], n = !0)
                })), n ? i : null
            }, t.prepareVisualTypes = function (t) {
                if (At(t)) t = t.slice(); else {
                    if (!mM(t)) return [];
                    var e = [];
                    gM(t, (function (t, n) {
                        e.push(n)
                    })), t = e
                }
                return t.sort((function (t, e) {
                    return "color" === e && "color" !== t && 0 === t.indexOf("color") ? 1 : -1
                })), t
            }, t.dependsOn = function (t, e) {
                return "color" === e ? !(!t || 0 !== t.indexOf(e)) : t === e
            }, t.findPieceIndex = function (t, e, n) {
                for (var i, r = 1 / 0, o = 0, a = e.length; o < a; o++) {
                    var s = e[o].value;
                    if (null != s) {
                        if (s === t || It(s) && s === t + "") return o;
                        n && h(s, o)
                    }
                }
                for (o = 0, a = e.length; o < a; o++) {
                    var l = e[o], u = l.interval, c = l.close;
                    if (u) {
                        if (u[0] === -1 / 0) {
                            if (wM(c[1], t, u[1])) return o
                        } else if (u[1] === 1 / 0) {
                            if (wM(c[0], u[0], t)) return o
                        } else if (wM(c[0], u[0], t) && wM(c[1], t, u[1])) return o;
                        n && h(u[0], o), n && h(u[1], o)
                    }
                }
                if (n) return t === 1 / 0 ? e.length - 1 : t === -1 / 0 ? 0 : i;

                function h(e, n) {
                    var o = Math.abs(e - t);
                    o < r && (r = o, i = n)
                }
            }, t.visualHandlers = {
                color: {
                    applyVisual: SM("color"), getColorMapper: function () {
                        var t = this.option;
                        return xt("category" === t.mappingMethod ? function (t, e) {
                            return !e && (t = this._normalizeData(t)), AM.call(this, t)
                        } : function (e, n, i) {
                            var r = !!i;
                            return !n && (e = this._normalizeData(e)), i = Li(e, t.parsedVisual, i), r ? i : Gi(i, "rgba")
                        }, this)
                    }, _normalizedToVisual: {
                        linear: function (t) {
                            return Gi(Li(t, this.option.parsedVisual), "rgba")
                        }, category: AM, piecewise: function (t, e) {
                            var n = EM.call(this, e);
                            return null == n && (n = Gi(Li(t, this.option.parsedVisual), "rgba")), n
                        }, fixed: bM
                    }
                },
                colorHue: TM((function (t, e) {
                    return ki(t, e)
                })),
                colorSaturation: TM((function (t, e) {
                    return ki(t, null, e)
                })),
                colorLightness: TM((function (t, e) {
                    return ki(t, null, null, e)
                })),
                colorAlpha: TM((function (t, e) {
                    return Pi(t, e)
                })),
                decal: {
                    applyVisual: SM("decal"),
                    _normalizedToVisual: {linear: null, category: AM, piecewise: null, fixed: null}
                },
                opacity: {applyVisual: SM("opacity"), _normalizedToVisual: IM([0, 1])},
                liftZ: {
                    applyVisual: SM("liftZ"),
                    _normalizedToVisual: {linear: bM, category: bM, piecewise: bM, fixed: bM}
                },
                symbol: {
                    applyVisual: function (t, e, n) {
                        n("symbol", this.mapValueToVisual(t))
                    }, _normalizedToVisual: {
                        linear: xM, category: AM, piecewise: function (t, e) {
                            var n = EM.call(this, e);
                            return null == n && (n = xM.call(this, t)), n
                        }, fixed: bM
                    }
                },
                symbolSize: {applyVisual: SM("symbolSize"), _normalizedToVisual: IM([0, 1])}
            }, t
        }();

        function _M(t, e) {
            var n = t.visual, i = [];
            Dt(n) ? gM(n, (function (t) {
                i.push(t)
            })) : null != n && i.push(n);
            e || 1 !== i.length || {color: 1, symbol: 1}.hasOwnProperty(t.type) || (i[1] = i[0]), CM(t, i)
        }

        function TM(t) {
            return {
                applyVisual: function (e, n, i) {
                    var r = this.mapValueToVisual(e);
                    i("color", t(n("color"), r))
                }, _normalizedToVisual: IM([0, 1])
            }
        }

        function xM(t) {
            var e = this.option.visual;
            return e[Math.round(Do(t, [0, 1], [0, e.length - 1], !0))] || {}
        }

        function SM(t) {
            return function (e, n, i) {
                i(t, this.mapValueToVisual(e))
            }
        }

        function AM(t) {
            var e = this.option.visual;
            return e[this.option.loop && t !== yM ? t % e.length : t]
        }

        function bM() {
            return this.option.visual[0]
        }

        function IM(t) {
            return {
                linear: function (e) {
                    return Do(e, t, this.option.visual, !0)
                }, category: AM, piecewise: function (e, n) {
                    var i = EM.call(this, n);
                    return null == i && (i = Do(e, t, this.option.visual, !0)), i
                }, fixed: bM
            }
        }

        function EM(t) {
            var e = this.option, n = e.pieceList;
            if (e.hasSpecialVisual) {
                var i = n[vM.findPieceIndex(t, n)];
                if (i && i.visual) return i.visual[this.type]
            }
        }

        function CM(t, e) {
            return t.visual = e, "color" === t.type && (t.parsedVisual = yt(e, (function (t) {
                var e = Mi(t);
                return e || [0, 0, 0, 1]
            }))), e
        }

        var DM = {
            linear: function (t) {
                return Do(t, this.option.dataExtent, [0, 1], !0)
            }, piecewise: function (t) {
                var e = this.option.pieceList, n = vM.findPieceIndex(t, e, !0);
                if (null != n) return Do(n, [0, e.length - 1], [0, 1], !0)
            }, category: function (t) {
                var e = this.option.categories ? this.option.categoryMap[t] : t;
                return null == e ? yM : e
            }, fixed: $t
        };

        function wM(t, e, n) {
            return t ? e <= n : e < n
        }

        const MM = vM;
        var NM = ha();
        const OM = {
            seriesType: "treemap", reset: function (t) {
                var e = t.getData().tree.root;
                e.isRemoved() || LM(e, {}, t.getViewRoot().getAncestors(), t)
            }
        };

        function LM(t, e, n, i) {
            var r = t.getModel(), o = t.getLayout(), a = t.hostTree.data;
            if (o && !o.invisible && o.isInView) {
                var s, l = r.getModel("itemStyle"), u = function (t, e, n) {
                        var i = ht({}, e), r = n.designatedVisualItemStyle;
                        return mt(["color", "colorAlpha", "colorSaturation"], (function (n) {
                            r[n] = e[n];
                            var o = t.get(n);
                            r[n] = null, null != o && (i[n] = o)
                        })), i
                    }(l, e, i), c = a.ensureUniqueItemVisual(t.dataIndex, "style"), h = l.get("borderColor"),
                    d = l.get("borderColorSaturation");
                null != d && (h = function (t, e) {
                    return null != e ? ki(e, null, null, t) : null
                }(d, s = RM(u))), c.stroke = h;
                var p = t.viewChildren;
                if (p && p.length) {
                    var f = function (t, e, n, i, r, o) {
                        if (!o || !o.length) return;
                        var a = PM(e, "color") || null != r.color && "none" !== r.color && (PM(e, "colorAlpha") || PM(e, "colorSaturation"));
                        if (!a) return;
                        var s = e.get("visualMin"), l = e.get("visualMax"), u = n.dataExtent.slice();
                        null != s && s < u[0] && (u[0] = s), null != l && l > u[1] && (u[1] = l);
                        var c = e.get("colorMappingBy"), h = {type: a.name, dataExtent: u, visual: a.range};
                        "color" !== h.type || "index" !== c && "id" !== c ? h.mappingMethod = "linear" : (h.mappingMethod = "category", h.loop = !0);
                        var d = new MM(h);
                        return NM(d).drColorMappingBy = c, d
                    }(0, r, o, 0, u, p);
                    mt(p, (function (t, e) {
                        if (t.depth >= n.length || t === n[t.depth]) {
                            var o = function (t, e, n, i, r, o) {
                                var a = ht({}, e);
                                if (r) {
                                    var s = r.type, l = "color" === s && NM(r).drColorMappingBy,
                                        u = "index" === l ? i : "id" === l ? o.mapIdToIndex(n.getId()) : n.getValue(t.get("visualDimension"));
                                    a[s] = r.mapValueToVisual(u)
                                }
                                return a
                            }(r, u, t, e, f, i);
                            LM(t, o, n, i)
                        }
                    }))
                } else s = RM(u), c.fill = s
            }
        }

        function RM(t) {
            var e = kM(t, "color");
            if (e) {
                var n = kM(t, "colorAlpha"), i = kM(t, "colorSaturation");
                return i && (e = ki(e, null, null, i)), n && (e = Pi(e, n)), e
            }
        }

        function kM(t, e) {
            var n = t[e];
            if (null != n && "none" !== n) return n
        }

        function PM(t, e) {
            var n = t.get(e);
            return At(n) && n.length ? {name: e, range: n} : null
        }

        var GM = Math.max, BM = Math.min, FM = Rt, HM = mt, UM = ["itemStyle", "borderWidth"],
            VM = ["itemStyle", "gapWidth"], zM = ["upperLabel", "show"], WM = ["upperLabel", "height"];
        const YM = {
            seriesType: "treemap", reset: function (t, e, n, i) {
                var r = n.getWidth(), o = n.getHeight(), a = t.option,
                    s = Nh(t.getBoxLayoutParams(), {width: n.getWidth(), height: n.getHeight()}), l = a.size || [],
                    u = wo(FM(s.width, l[0]), r), c = wo(FM(s.height, l[1]), o), h = i && i.type,
                    d = Fw(i, ["treemapZoomToNode", "treemapRootToNode"], t),
                    p = "treemapRender" === h || "treemapMove" === h ? i.rootRect : null, f = t.getViewRoot(),
                    g = Hw(f);
                if ("treemapMove" !== h) {
                    var m = "treemapZoomToNode" === h ? function (t, e, n, i, r) {
                        var o, a = (e || {}).node, s = [i, r];
                        if (!a || a === n) return s;
                        var l = i * r, u = l * t.option.zoomToNodeRatio;
                        for (; o = a.parentNode;) {
                            for (var c = 0, h = o.children, d = 0, p = h.length; d < p; d++) c += h[d].getValue();
                            var f = a.getValue();
                            if (0 === f) return s;
                            u *= c / f;
                            var g = o.getModel(), m = g.get(UM);
                            (u += 4 * m * m + (3 * m + Math.max(m, KM(g))) * Math.pow(u, .5)) > Po && (u = Po), a = o
                        }
                        u < l && (u = l);
                        var y = Math.pow(u / l, .5);
                        return [i * y, r * y]
                    }(t, d, f, u, c) : p ? [p.width, p.height] : [u, c], y = a.sort;
                    y && "asc" !== y && "desc" !== y && (y = "desc");
                    var v = {squareRatio: a.squareRatio, sort: y, leafDepth: a.leafDepth};
                    f.hostTree.clearLayouts();
                    var _ = {x: 0, y: 0, width: m[0], height: m[1], area: m[0] * m[1]};
                    f.setLayout(_), qM(f, v, !1, 0), _ = f.getLayout(), HM(g, (function (t, e) {
                        var n = (g[e + 1] || f).getValue();
                        t.setLayout(ht({dataExtent: [n, n], borderWidth: 0, upperHeight: 0}, _))
                    }))
                }
                var T = t.getData().tree.root;
                T.setLayout(function (t, e, n) {
                    if (e) return {x: e.x, y: e.y};
                    var i = {x: 0, y: 0};
                    if (!n) return i;
                    var r = n.node, o = r.getLayout();
                    if (!o) return i;
                    var a = [o.width / 2, o.height / 2], s = r;
                    for (; s;) {
                        var l = s.getLayout();
                        a[0] += l.x, a[1] += l.y, s = s.parentNode
                    }
                    return {x: t.width / 2 - a[0], y: t.height / 2 - a[1]}
                }(s, p, d), !0), t.setLayoutInfo(s), ZM(T, new hn(-s.x, -s.y, r, o), g, f, 0)
            }
        };

        function qM(t, e, n, i) {
            var r, o;
            if (!t.isRemoved()) {
                var a = t.getLayout();
                r = a.width, o = a.height;
                var s = t.getModel(), l = s.get(UM), u = s.get(VM) / 2, c = KM(s), h = Math.max(l, c), d = l - u,
                    p = h - u;
                t.setLayout({borderWidth: l, upperHeight: h, upperLabelHeight: c}, !0);
                var f = (r = GM(r - 2 * d, 0)) * (o = GM(o - d - p, 0)), g = function (t, e, n, i, r, o) {
                    var a = t.children || [], s = i.sort;
                    "asc" !== s && "desc" !== s && (s = null);
                    var l = null != i.leafDepth && i.leafDepth <= o;
                    if (r && !l) return t.viewChildren = [];
                    a = _t(a, (function (t) {
                        return !t.isRemoved()
                    })), function (t, e) {
                        e && t.sort((function (t, n) {
                            var i = "asc" === e ? t.getValue() - n.getValue() : n.getValue() - t.getValue();
                            return 0 === i ? "asc" === e ? t.dataIndex - n.dataIndex : n.dataIndex - t.dataIndex : i
                        }))
                    }(a, s);
                    var u = function (t, e, n) {
                        for (var i = 0, r = 0, o = e.length; r < o; r++) i += e[r].getValue();
                        var a, s = t.get("visualDimension");
                        e && e.length ? "value" === s && n ? (a = [e[e.length - 1].getValue(), e[0].getValue()], "asc" === n && a.reverse()) : (a = [1 / 0, -1 / 0], HM(e, (function (t) {
                            var e = t.getValue(s);
                            e < a[0] && (a[0] = e), e > a[1] && (a[1] = e)
                        }))) : a = [NaN, NaN];
                        return {sum: i, dataExtent: a}
                    }(e, a, s);
                    if (0 === u.sum) return t.viewChildren = [];
                    if (u.sum = function (t, e, n, i, r) {
                        if (!i) return n;
                        for (var o = t.get("visibleMin"), a = r.length, s = a, l = a - 1; l >= 0; l--) {
                            var u = r["asc" === i ? a - l - 1 : l].getValue();
                            u / n * e < o && (s = l, n -= u)
                        }
                        return "asc" === i ? r.splice(0, a - s) : r.splice(s, a - s), n
                    }(e, n, u.sum, s, a), 0 === u.sum) return t.viewChildren = [];
                    for (var c = 0, h = a.length; c < h; c++) {
                        var d = a[c].getValue() / u.sum * n;
                        a[c].setLayout({area: d})
                    }
                    l && (a.length && t.setLayout({isLeafRoot: !0}, !0), a.length = 0);
                    return t.viewChildren = a, t.setLayout({dataExtent: u.dataExtent}, !0), a
                }(t, s, f, e, n, i);
                if (g.length) {
                    var m = {x: d, y: p, width: r, height: o}, y = BM(r, o), v = 1 / 0, _ = [];
                    _.area = 0;
                    for (var T = 0, x = g.length; T < x;) {
                        var S = g[T];
                        _.push(S), _.area += S.getLayout().area;
                        var A = jM(_, y, e.squareRatio);
                        A <= v ? (T++, v = A) : (_.area -= _.pop().getLayout().area, XM(_, y, m, u, !1), y = BM(m.width, m.height), _.length = _.area = 0, v = 1 / 0)
                    }
                    if (_.length && XM(_, y, m, u, !0), !n) {
                        var b = s.get("childrenVisibleMin");
                        null != b && f < b && (n = !0)
                    }
                    for (T = 0, x = g.length; T < x; T++) qM(g[T], e, n, i + 1)
                }
            }
        }

        function jM(t, e, n) {
            for (var i = 0, r = 1 / 0, o = 0, a = void 0, s = t.length; o < s; o++) (a = t[o].getLayout().area) && (a < r && (r = a), a > i && (i = a));
            var l = t.area * t.area, u = e * e * n;
            return l ? GM(u * i / l, l / (u * r)) : 1 / 0
        }

        function XM(t, e, n, i, r) {
            var o = e === n.width ? 0 : 1, a = 1 - o, s = ["x", "y"], l = ["width", "height"], u = n[s[o]],
                c = e ? t.area / e : 0;
            (r || c > n[l[a]]) && (c = n[l[a]]);
            for (var h = 0, d = t.length; h < d; h++) {
                var p = t[h], f = {}, g = c ? p.getLayout().area / c : 0, m = f[l[a]] = GM(c - 2 * i, 0),
                    y = n[s[o]] + n[l[o]] - u, v = h === d - 1 || y < g ? y : g, _ = f[l[o]] = GM(v - 2 * i, 0);
                f[s[a]] = n[s[a]] + BM(i, m / 2), f[s[o]] = u + BM(i, _ / 2), u += v, p.setLayout(f, !0)
            }
            n[s[a]] += c, n[l[a]] -= c
        }

        function ZM(t, e, n, i, r) {
            var o = t.getLayout(), a = n[r], s = a && a === t;
            if (!(a && !s || r === n.length && t !== i)) {
                t.setLayout({isInView: !0, invisible: !s && !e.intersect(o), isAboveViewRoot: s}, !0);
                var l = new hn(e.x - o.x, e.y - o.y, e.width, e.height);
                HM(t.viewChildren || [], (function (t) {
                    ZM(t, l, n, i, r + 1)
                }))
            }
        }

        function KM(t) {
            return t.get(zM) ? t.get(WM) : 0
        }

        function QM(t) {
            var e = t.findComponents({mainType: "legend"});
            e && e.length && t.eachSeriesByType("graph", (function (t) {
                var n = t.getCategoriesData(), i = t.getGraph().data, r = n.mapArray(n.getName);
                i.filterSelf((function (t) {
                    var n = i.getItemModel(t).getShallow("category");
                    if (null != n) {
                        Ct(n) && (n = r[n]);
                        for (var o = 0; o < e.length; o++) if (!e[o].isSelected(n)) return !1
                    }
                    return !0
                }))
            }))
        }

        function $M(t) {
            var e = {};
            t.eachSeriesByType("graph", (function (t) {
                var n = t.getCategoriesData(), i = t.getData(), r = {};
                n.each((function (i) {
                    var o = n.getName(i);
                    r["ec-" + o] = i;
                    var a = n.getItemModel(i), s = a.getModel("itemStyle").getItemStyle();
                    s.fill || (s.fill = t.getColorFromPalette(o, e)), n.setItemVisual(i, "style", s);
                    for (var l = ["symbol", "symbolSize", "symbolKeepAspect"], u = 0; u < l.length; u++) {
                        var c = a.getShallow(l[u], !0);
                        null != c && n.setItemVisual(i, l[u], c)
                    }
                })), n.count() && i.each((function (t) {
                    var e = i.getItemModel(t).getShallow("category");
                    if (null != e) {
                        It(e) && (e = r["ec-" + e]);
                        var o = n.getItemVisual(e, "style");
                        ht(i.ensureUniqueItemVisual(t, "style"), o);
                        for (var a = ["symbol", "symbolSize", "symbolKeepAspect"], s = 0; s < a.length; s++) i.setItemVisual(t, a[s], n.getItemVisual(e, a[s]))
                    }
                }))
            }))
        }

        function JM(t) {
            return t instanceof Array || (t = [t, t]), t
        }

        function tN(t) {
            t.eachSeriesByType("graph", (function (t) {
                var e = t.getGraph(), n = t.getEdgeData(), i = JM(t.get("edgeSymbol")), r = JM(t.get("edgeSymbolSize"));
                n.setVisual("fromSymbol", i && i[0]), n.setVisual("toSymbol", i && i[1]), n.setVisual("fromSymbolSize", r && r[0]), n.setVisual("toSymbolSize", r && r[1]), n.setVisual("style", t.getModel("lineStyle").getLineStyle()), n.each((function (t) {
                    var i = n.getItemModel(t), r = e.getEdgeByIndex(t), o = JM(i.getShallow("symbol", !0)),
                        a = JM(i.getShallow("symbolSize", !0)), s = i.getModel("lineStyle").getLineStyle(),
                        l = n.ensureUniqueItemVisual(t, "style");
                    switch (ht(l, s), l.stroke) {
                        case"source":
                            var u = r.node1.getVisual("style");
                            l.stroke = u && u.fill;
                            break;
                        case"target":
                            u = r.node2.getVisual("style");
                            l.stroke = u && u.fill
                    }
                    o[0] && r.setVisual("fromSymbol", o[0]), o[1] && r.setVisual("toSymbol", o[1]), a[0] && r.setVisual("fromSymbolSize", a[0]), a[1] && r.setVisual("toSymbolSize", a[1])
                }))
            }))
        }

        var eN = "--\x3e", nN = function (t) {
            return t.get("autoCurveness") || null
        }, iN = function (t, e) {
            var n = nN(t), i = 20, r = [];
            if (Ct(n)) i = n; else if (At(n)) return void (t.__curvenessList = n);
            e > i && (i = e);
            var o = i % 2 ? i + 2 : i + 3;
            r = [];
            for (var a = 0; a < o; a++) r.push((a % 2 ? a + 1 : a) / 10 * (a % 2 ? -1 : 1));
            t.__curvenessList = r
        }, rN = function (t, e, n) {
            var i = [t.id, t.dataIndex].join("."), r = [e.id, e.dataIndex].join(".");
            return [n.uid, i, r].join(eN)
        }, oN = function (t) {
            var e = t.split(eN);
            return [e[0], e[2], e[1]].join(eN)
        }, aN = function (t, e) {
            var n = rN(t.node1, t.node2, e);
            return e.__edgeMap[n]
        }, sN = function (t, e) {
            return lN(rN(t.node1, t.node2, e), e) + lN(rN(t.node2, t.node1, e), e)
        }, lN = function (t, e) {
            var n = e.__edgeMap;
            return n[t] ? n[t].length : 0
        };

        function uN(t, e, n, i) {
            var r = nN(e), o = At(r);
            if (!r) return null;
            var a = aN(t, e);
            if (!a) return null;
            for (var s = -1, l = 0; l < a.length; l++) if (a[l] === n) {
                s = l;
                break
            }
            var u = sN(t, e);
            iN(e, u), t.lineStyle = t.lineStyle || {};
            var c = rN(t.node1, t.node2, e), h = e.__curvenessList, d = o || u % 2 ? 0 : 1;
            if (a.isForward) return h[d + s];
            var p = oN(c), f = lN(p, e), g = h[s + f + d];
            return i ? o ? r && 0 === r[0] ? (f + d) % 2 ? g : -g : ((f % 2 ? 0 : 1) + d) % 2 ? g : -g : (f + d) % 2 ? g : -g : h[s + f + d]
        }

        function cN(t) {
            var e = t.coordinateSystem;
            if (!e || "view" === e.type) {
                var n = t.getGraph();
                n.eachNode((function (t) {
                    var e = t.getModel();
                    t.setLayout([+e.get("x"), +e.get("y")])
                })), hN(n, t)
            }
        }

        function hN(t, e) {
            t.eachEdge((function (t, n) {
                var i = Pt(t.getModel().get(["lineStyle", "curveness"]), -uN(t, e, n, !0), 0),
                    r = ne(t.node1.getLayout()), o = ne(t.node2.getLayout()), a = [r, o];
                +i && a.push([(r[0] + o[0]) / 2 - (r[1] - o[1]) * i, (r[1] + o[1]) / 2 - (o[0] - r[0]) * i]), t.setLayout(a)
            }))
        }

        function dN(t, e) {
            t.eachSeriesByType("graph", (function (t) {
                var e = t.get("layout"), n = t.coordinateSystem;
                if (n && "view" !== n.type) {
                    var i = t.getData(), r = [];
                    mt(n.dimensions, (function (t) {
                        r = r.concat(i.mapDimensionsAll(t))
                    }));
                    for (var o = 0; o < i.count(); o++) {
                        for (var a = [], s = !1, l = 0; l < r.length; l++) {
                            var u = i.get(r[l], o);
                            isNaN(u) || (s = !0), a.push(u)
                        }
                        s ? i.setItemLayout(o, n.dataToPoint(a)) : i.setItemLayout(o, [NaN, NaN])
                    }
                    hN(i.graph, t)
                } else e && "none" !== e || cN(t)
            }))
        }

        function pN(t) {
            var e = t.coordinateSystem;
            if ("view" !== e.type) return 1;
            var n = t.option.nodeScaleRatio, i = e.scaleX;
            return ((e.getZoom() - 1) * n + 1) / i
        }

        function fN(t) {
            var e = t.getVisual("symbolSize");
            return e instanceof Array && (e = (e[0] + e[1]) / 2), +e
        }

        var gN = Math.PI, mN = [];

        function yN(t, e, n, i) {
            var r = t.coordinateSystem;
            if (!r || "view" === r.type) {
                var o = r.getBoundingRect(), a = t.getData(), s = a.graph, l = o.width / 2 + o.x,
                    u = o.height / 2 + o.y, c = Math.min(o.width, o.height) / 2, h = a.count();
                if (a.setLayout({cx: l, cy: u}), h) {
                    if (n) {
                        var d = r.pointToData(i), p = d[0], f = d[1], g = [p - l, f - u];
                        ce(g, g), ue(g, g, c), n.setLayout([l + g[0], u + g[1]], !0), _N(n, t.get(["circular", "rotateLabel"]), l, u)
                    }
                    vN[e](t, s, a, c, l, u, h), s.eachEdge((function (e, n) {
                        var i, r = Pt(e.getModel().get(["lineStyle", "curveness"]), uN(e, t, n), 0),
                            o = ne(e.node1.getLayout()), a = ne(e.node2.getLayout()), s = (o[0] + a[0]) / 2,
                            c = (o[1] + a[1]) / 2;
                        +r && (i = [l * (r *= 3) + s * (1 - r), u * r + c * (1 - r)]), e.setLayout([o, a, i])
                    }))
                }
            }
        }

        var vN = {
            value: function (t, e, n, i, r, o, a) {
                var s = 0, l = n.getSum("value"), u = 2 * Math.PI / (l || a);
                e.eachNode((function (t) {
                    var e = t.getValue("value"), n = u * (l ? e : 1) / 2;
                    s += n, t.setLayout([i * Math.cos(s) + r, i * Math.sin(s) + o]), s += n
                }))
            }, symbolSize: function (t, e, n, i, r, o, a) {
                var s = 0;
                mN.length = a;
                var l = pN(t);
                e.eachNode((function (t) {
                    var e = fN(t);
                    isNaN(e) && (e = 2), e < 0 && (e = 0), e *= l;
                    var n = Math.asin(e / 2 / i);
                    isNaN(n) && (n = gN / 2), mN[t.dataIndex] = n, s += 2 * n
                }));
                var u = (2 * gN - s) / a / 2, c = 0;
                e.eachNode((function (t) {
                    var e = u + mN[t.dataIndex];
                    c += e, (!t.getLayout() || !t.getLayout().fixed) && t.setLayout([i * Math.cos(c) + r, i * Math.sin(c) + o]), c += e
                }))
            }
        };

        function _N(t, e, n, i) {
            var r = t.getGraphicEl();
            if (r) {
                var o = t.getModel().get(["label", "rotate"]) || 0, a = r.getSymbolPath();
                if (e) {
                    var s = t.getLayout(), l = Math.atan2(s[1] - i, s[0] - n);
                    l < 0 && (l = 2 * Math.PI + l);
                    var u = s[0] < n;
                    u && (l -= Math.PI);
                    var c = u ? "left" : "right";
                    a.setTextConfig({rotation: -l, position: c, origin: "center"});
                    var h = a.ensureState("emphasis");
                    ht(h.textConfig || (h.textConfig = {}), {position: c})
                } else a.setTextConfig({rotation: o *= Math.PI / 180})
            }
        }

        function TN(t) {
            t.eachSeriesByType("graph", (function (t) {
                "circular" === t.get("layout") && yN(t, "symbolSize")
            }))
        }

        var xN = oe;

        function SN(t) {
            t.eachSeriesByType("graph", (function (t) {
                var e = t.coordinateSystem;
                if (!e || "view" === e.type) if ("force" === t.get("layout")) {
                    var n = t.preservedPoints || {}, i = t.getGraph(), r = i.data, o = i.edgeData,
                        a = t.getModel("force"), s = a.get("initLayout");
                    t.preservedPoints ? r.each((function (t) {
                        var e = r.getId(t);
                        r.setItemLayout(t, n[e] || [NaN, NaN])
                    })) : s && "none" !== s ? "circular" === s && yN(t, "value") : cN(t);
                    var l = r.getDataExtent("value"), u = o.getDataExtent("value"), c = a.get("repulsion"),
                        h = a.get("edgeLength"), d = At(c) ? c : [c, c], p = At(h) ? h : [h, h];
                    p = [p[1], p[0]];
                    var f = r.mapArray("value", (function (t, e) {
                        var n = r.getItemLayout(e), i = Do(t, l, d);
                        return isNaN(i) && (i = (d[0] + d[1]) / 2), {
                            w: i,
                            rep: i,
                            fixed: r.getItemModel(e).get("fixed"),
                            p: !n || isNaN(n[0]) || isNaN(n[1]) ? null : n
                        }
                    })), g = o.mapArray("value", (function (e, n) {
                        var r = i.getEdgeByIndex(n), o = Do(e, u, p);
                        isNaN(o) && (o = (p[0] + p[1]) / 2);
                        var a = r.getModel(), s = Pt(r.getModel().get(["lineStyle", "curveness"]), -uN(r, t, n, !0), 0);
                        return {
                            n1: f[r.node1.dataIndex],
                            n2: f[r.node2.dataIndex],
                            d: o,
                            curveness: s,
                            ignoreForceLayout: a.get("ignoreForceLayout")
                        }
                    })), m = e.getBoundingRect(), y = function (t, e, n) {
                        for (var i = t, r = e, o = n.rect, a = o.width, s = o.height, l = [o.x + a / 2, o.y + s / 2], u = null == n.gravity ? .1 : n.gravity, c = 0; c < i.length; c++) {
                            var h = i[c];
                            h.p || (h.p = te(a * (Math.random() - .5) + l[0], s * (Math.random() - .5) + l[1])), h.pp = ne(h.p), h.edges = null
                        }
                        var d, p, f = null == n.friction ? .6 : n.friction, g = f;
                        return {
                            warmUp: function () {
                                g = .8 * f
                            }, setFixed: function (t) {
                                i[t].fixed = !0
                            }, setUnfixed: function (t) {
                                i[t].fixed = !1
                            }, beforeStep: function (t) {
                                d = t
                            }, afterStep: function (t) {
                                p = t
                            }, step: function (t) {
                                d && d(i, r);
                                for (var e = [], n = i.length, o = 0; o < r.length; o++) {
                                    var a = r[o];
                                    if (!a.ignoreForceLayout) {
                                        var s = a.n1;
                                        ae(e, (m = a.n2).p, s.p);
                                        var c = se(e) - a.d, h = m.w / (s.w + m.w);
                                        isNaN(h) && (h = 0), ce(e, e), !s.fixed && xN(s.p, s.p, e, h * c * g), !m.fixed && xN(m.p, m.p, e, -(1 - h) * c * g)
                                    }
                                }
                                for (o = 0; o < n; o++) (_ = i[o]).fixed || (ae(e, l, _.p), xN(_.p, _.p, e, u * g));
                                for (o = 0; o < n; o++) {
                                    s = i[o];
                                    for (var f = o + 1; f < n; f++) {
                                        var m;
                                        ae(e, (m = i[f]).p, s.p), 0 === (c = se(e)) && (ie(e, Math.random() - .5, Math.random() - .5), c = 1);
                                        var y = (s.rep + m.rep) / c / c;
                                        !s.fixed && xN(s.pp, s.pp, e, y), !m.fixed && xN(m.pp, m.pp, e, -y)
                                    }
                                }
                                var v = [];
                                for (o = 0; o < n; o++) {
                                    var _;
                                    (_ = i[o]).fixed || (ae(v, _.p, _.pp), xN(_.p, _.p, v, g), ee(_.pp, _.p))
                                }
                                var T = (g *= .992) < .01;
                                p && p(i, r, T), t && t(T)
                            }
                        }
                    }(f, g, {rect: m, gravity: a.get("gravity"), friction: a.get("friction")});
                    y.beforeStep((function (t, e) {
                        for (var n = 0, r = t.length; n < r; n++) t[n].fixed && ee(t[n].p, i.getNodeByIndex(n).getLayout())
                    })), y.afterStep((function (t, e, o) {
                        for (var a = 0, s = t.length; a < s; a++) t[a].fixed || i.getNodeByIndex(a).setLayout(t[a].p), n[r.getId(a)] = t[a].p;
                        for (a = 0, s = e.length; a < s; a++) {
                            var l = e[a], u = i.getEdgeByIndex(a), c = l.n1.p, h = l.n2.p, d = u.getLayout();
                            (d = d ? d.slice() : [])[0] = d[0] || [], d[1] = d[1] || [], ee(d[0], c), ee(d[1], h), +l.curveness && (d[2] = [(c[0] + h[0]) / 2 - (c[1] - h[1]) * l.curveness, (c[1] + h[1]) / 2 - (h[0] - c[0]) * l.curveness]), u.setLayout(d)
                        }
                    })), t.forceLayout = y, t.preservedPoints = n, y.step()
                } else t.forceLayout = null
            }))
        }

        function AN(t, e) {
            var n = [];
            return t.eachSeriesByType("graph", (function (t) {
                var i = t.get("coordinateSystem");
                if (!i || "view" === i) {
                    var r = t.getData(), o = [], a = [];
                    fs(r.mapArray((function (t) {
                        var e = r.getItemModel(t);
                        return [+e.get("x"), +e.get("y")]
                    })), o, a), a[0] - o[0] == 0 && (a[0] += 1, o[0] -= 1), a[1] - o[1] == 0 && (a[1] += 1, o[1] -= 1);
                    var s = (a[0] - o[0]) / (a[1] - o[1]), l = function (t, e, n) {
                        return Nh(ht(t.getBoxLayoutParams(), {aspect: n}), {width: e.getWidth(), height: e.getHeight()})
                    }(t, e, s);
                    isNaN(s) && (o = [l.x, l.y], a = [l.x + l.width, l.y + l.height]);
                    var u = a[0] - o[0], c = a[1] - o[1], h = l.width, d = l.height, p = t.coordinateSystem = new YD;
                    p.zoomLimit = t.get("scaleLimit"), p.setBoundingRect(o[0], o[1], u, c), p.setViewRect(l.x, l.y, h, d), p.setCenter(t.get("center"), e), p.setZoom(t.get("zoom")), n.push(p)
                }
            })), n
        }

        var bN = Hg.prototype, IN = Yg.prototype, EN = function () {
            this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1
        };
        !function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            G(e, t)
        }(EN);

        function CN(t) {
            return isNaN(+t.cpx1) || isNaN(+t.cpy1)
        }

        const DN = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n.type = "ec-line", n
            }

            return G(e, t), e.prototype.getDefaultStyle = function () {
                return {stroke: "#000", fill: null}
            }, e.prototype.getDefaultShape = function () {
                return new EN
            }, e.prototype.buildPath = function (t, e) {
                CN(e) ? bN.buildPath.call(this, t, e) : IN.buildPath.call(this, t, e)
            }, e.prototype.pointAt = function (t) {
                return CN(this.shape) ? bN.pointAt.call(this, t) : IN.pointAt.call(this, t)
            }, e.prototype.tangentAt = function (t) {
                var e = this.shape, n = CN(e) ? [e.x2 - e.x1, e.y2 - e.y1] : IN.tangentAt.call(this, t);
                return ce(n, n)
            }, e
        }(ll);
        var wN = ["fromSymbol", "toSymbol"];

        function MN(t) {
            return "_" + t + "Type"
        }

        function NN(t, e, n) {
            var i = e.getItemVisual(n, t);
            if (!i || "none" === i) return i;
            var r = e.getItemVisual(n, t + "Size"), o = e.getItemVisual(n, t + "Rotate"),
                a = e.getItemVisual(n, t + "Offset"), s = e.getItemVisual(n, t + "KeepAspect"), l = rv(r);
            return i + l + ov(a || 0, l) + (o || "") + (s || "")
        }

        function ON(t, e, n) {
            var i = e.getItemVisual(n, t);
            if (i && "none" !== i) {
                var r = e.getItemVisual(n, t + "Size"), o = e.getItemVisual(n, t + "Rotate"),
                    a = e.getItemVisual(n, t + "Offset"), s = e.getItemVisual(n, t + "KeepAspect"), l = rv(r),
                    u = ov(a || 0, l), c = iv(i, -l[0] / 2 + u[0], -l[1] / 2 + u[1], l[0], l[1], null, s);
                return c.__specifiedRotation = null == o || isNaN(o) ? void 0 : +o * Math.PI / 180 || 0, c.name = t, c
            }
        }

        function LN(t, e) {
            t.x1 = e[0][0], t.y1 = e[0][1], t.x2 = e[1][0], t.y2 = e[1][1], t.percent = 1;
            var n = e[2];
            n ? (t.cpx1 = n[0], t.cpy1 = n[1]) : (t.cpx1 = NaN, t.cpy1 = NaN)
        }

        var RN = function (t) {
            function e(e, n, i) {
                var r = t.call(this) || this;
                return r._createLine(e, n, i), r
            }

            return G(e, t), e.prototype._createLine = function (t, e, n) {
                var i = t.hostModel, r = function (t) {
                    var e = new DN({name: "line", subPixelOptimize: !0});
                    return LN(e.shape, t), e
                }(t.getItemLayout(e));
                r.shape.percent = 0, Xu(r, {shape: {percent: 1}}, i, e), this.add(r), mt(wN, (function (n) {
                    var i = ON(n, t, e);
                    this.add(i), this[MN(n)] = NN(n, t, e)
                }), this), this._updateCommonStl(t, e, n)
            }, e.prototype.updateData = function (t, e, n) {
                var i = t.hostModel, r = this.childOfName("line"), o = t.getItemLayout(e), a = {shape: {}};
                LN(a.shape, o), ju(r, a, i, e), mt(wN, (function (n) {
                    var i = NN(n, t, e), r = MN(n);
                    if (this[r] !== i) {
                        this.remove(this.childOfName(n));
                        var o = ON(n, t, e);
                        this.add(o)
                    }
                    this[r] = i
                }), this), this._updateCommonStl(t, e, n)
            }, e.prototype.getLinePath = function () {
                return this.childAt(0)
            }, e.prototype._updateCommonStl = function (t, e, n) {
                var i = t.hostModel, r = this.childOfName("line"), o = n && n.emphasisLineStyle,
                    a = n && n.blurLineStyle, s = n && n.selectLineStyle, l = n && n.labelStatesModels,
                    u = n && n.emphasisDisabled, c = n && n.focus, h = n && n.blurScope;
                if (!n || t.hasItemOption) {
                    var d = t.getItemModel(e), p = d.getModel("emphasis");
                    o = p.getModel("lineStyle").getLineStyle(), a = d.getModel(["blur", "lineStyle"]).getLineStyle(), s = d.getModel(["select", "lineStyle"]).getLineStyle(), u = p.get("disabled"), c = p.get("focus"), h = p.get("blurScope"), l = rc(d)
                }
                var f = t.getItemVisual(e, "style"), g = f.stroke;
                r.useStyle(f), r.style.fill = null, r.style.strokeNoScale = !0, r.ensureState("emphasis").style = o, r.ensureState("blur").style = a, r.ensureState("select").style = s, mt(wN, (function (t) {
                    var e = this.childOfName(t);
                    if (e) {
                        e.setColor(g), e.style.opacity = f.opacity;
                        for (var n = 0; n < Zl.length; n++) {
                            var i = Zl[n], o = r.getState(i);
                            if (o) {
                                var a = o.style || {}, s = e.ensureState(i), l = s.style || (s.style = {});
                                null != a.stroke && (l[e.__isEmptyBrush ? "stroke" : "fill"] = a.stroke), null != a.opacity && (l.opacity = a.opacity)
                            }
                        }
                        e.markRedraw()
                    }
                }), this);
                var m = i.getRawValue(e);
                ic(this, l, {
                    labelDataIndex: e,
                    labelFetcher: {
                        getFormattedLabel: function (e, n) {
                            return i.getFormattedLabel(e, n, t.dataType)
                        }
                    },
                    inheritColor: g || "#000",
                    defaultOpacity: f.opacity,
                    defaultText: (null == m ? t.getName(e) : isFinite(m) ? Mo(m) : m) + ""
                });
                var y = this.getTextContent();
                if (y) {
                    var v = l.normal;
                    y.__align = y.style.align, y.__verticalAlign = y.style.verticalAlign, y.__position = v.get("position") || "middle";
                    var _ = v.get("distance");
                    At(_) || (_ = [_, _]), y.__labelDistance = _
                }
                this.setTextConfig({position: null, local: !0, inside: !1}), ku(this, c, h, u)
            }, e.prototype.highlight = function () {
                xu(this)
            }, e.prototype.downplay = function () {
                Su(this)
            }, e.prototype.updateLayout = function (t, e) {
                this.setLinePoints(t.getItemLayout(e))
            }, e.prototype.setLinePoints = function (t) {
                var e = this.childOfName("line");
                LN(e.shape, t), e.dirty()
            }, e.prototype.beforeUpdate = function () {
                var t = this, e = t.childOfName("fromSymbol"), n = t.childOfName("toSymbol"), i = t.getTextContent();
                if (e || n || i && !i.ignore) {
                    for (var r = 1, o = this.parent; o;) o.scaleX && (r /= o.scaleX), o = o.parent;
                    var a = t.childOfName("line");
                    if (this.__dirty || a.__dirty) {
                        var s = a.shape.percent, l = a.pointAt(0), u = a.pointAt(s), c = ae([], u, l);
                        if (ce(c, c), e && (e.setPosition(l), A(e, 0), e.scaleX = e.scaleY = r * s, e.markRedraw()), n && (n.setPosition(u), A(n, 1), n.scaleX = n.scaleY = r * s, n.markRedraw()), i && !i.ignore) {
                            i.x = i.y = 0, i.originX = i.originY = 0;
                            var h = void 0, d = void 0, p = i.__labelDistance, f = p[0] * r, g = p[1] * r, m = s / 2,
                                y = a.tangentAt(m), v = [y[1], -y[0]], _ = a.pointAt(m);
                            v[1] > 0 && (v[0] = -v[0], v[1] = -v[1]);
                            var T = y[0] < 0 ? -1 : 1;
                            if ("start" !== i.__position && "end" !== i.__position) {
                                var x = -Math.atan2(y[1], y[0]);
                                u[0] < l[0] && (x = Math.PI + x), i.rotation = x
                            }
                            var S = void 0;
                            switch (i.__position) {
                                case"insideStartTop":
                                case"insideMiddleTop":
                                case"insideEndTop":
                                case"middle":
                                    S = -g, d = "bottom";
                                    break;
                                case"insideStartBottom":
                                case"insideMiddleBottom":
                                case"insideEndBottom":
                                    S = g, d = "top";
                                    break;
                                default:
                                    S = 0, d = "middle"
                            }
                            switch (i.__position) {
                                case"end":
                                    i.x = c[0] * f + u[0], i.y = c[1] * g + u[1], h = c[0] > .8 ? "left" : c[0] < -.8 ? "right" : "center", d = c[1] > .8 ? "top" : c[1] < -.8 ? "bottom" : "middle";
                                    break;
                                case"start":
                                    i.x = -c[0] * f + l[0], i.y = -c[1] * g + l[1], h = c[0] > .8 ? "right" : c[0] < -.8 ? "left" : "center", d = c[1] > .8 ? "bottom" : c[1] < -.8 ? "top" : "middle";
                                    break;
                                case"insideStartTop":
                                case"insideStart":
                                case"insideStartBottom":
                                    i.x = f * T + l[0], i.y = l[1] + S, h = y[0] < 0 ? "right" : "left", i.originX = -f * T, i.originY = -S;
                                    break;
                                case"insideMiddleTop":
                                case"insideMiddle":
                                case"insideMiddleBottom":
                                case"middle":
                                    i.x = _[0], i.y = _[1] + S, h = "center", i.originY = -S;
                                    break;
                                case"insideEndTop":
                                case"insideEnd":
                                case"insideEndBottom":
                                    i.x = -f * T + u[0], i.y = u[1] + S, h = y[0] >= 0 ? "right" : "left", i.originX = f * T, i.originY = -S
                            }
                            i.scaleX = i.scaleY = r, i.setStyle({
                                verticalAlign: i.__verticalAlign || d,
                                align: i.__align || h
                            })
                        }
                    }
                }

                function A(t, e) {
                    var n = t.__specifiedRotation;
                    if (null == n) {
                        var i = a.tangentAt(e);
                        t.attr("rotation", (1 === e ? -1 : 1) * Math.PI / 2 - Math.atan2(i[1], i[0]))
                    } else t.attr("rotation", n)
                }
            }, e
        }(xo);
        const kN = RN;

        function PN(t) {
            var e = t.hostModel, n = e.getModel("emphasis");
            return {
                lineStyle: e.getModel("lineStyle").getLineStyle(),
                emphasisLineStyle: n.getModel(["lineStyle"]).getLineStyle(),
                blurLineStyle: e.getModel(["blur", "lineStyle"]).getLineStyle(),
                selectLineStyle: e.getModel(["select", "lineStyle"]).getLineStyle(),
                emphasisDisabled: n.get("disabled"),
                blurScope: n.get("blurScope"),
                focus: n.get("focus"),
                labelStatesModels: rc(e)
            }
        }

        function GN(t) {
            return isNaN(t[0]) || isNaN(t[1])
        }

        function BN(t) {
            return t && !GN(t[0]) && !GN(t[1])
        }

        const FN = function () {
            function t(t) {
                this.group = new xo, this._LineCtor = t || kN
            }

            return t.prototype.updateData = function (t) {
                var e = this;
                this._progressiveEls = null;
                var n = this, i = n.group, r = n._lineData;
                n._lineData = t, r || i.removeAll();
                var o = PN(t);
                t.diff(r).add((function (n) {
                    e._doAdd(t, n, o)
                })).update((function (n, i) {
                    e._doUpdate(r, t, i, n, o)
                })).remove((function (t) {
                    i.remove(r.getItemGraphicEl(t))
                })).execute()
            }, t.prototype.updateLayout = function () {
                var t = this._lineData;
                t && t.eachItemGraphicEl((function (e, n) {
                    e.updateLayout(t, n)
                }), this)
            }, t.prototype.incrementalPrepareUpdate = function (t) {
                this._seriesScope = PN(t), this._lineData = null, this.group.removeAll()
            }, t.prototype.incrementalUpdate = function (t, e) {
                function n(t) {
                    t.isGroup || function (t) {
                        return t.animators && t.animators.length > 0
                    }(t) || (t.incremental = !0, t.ensureState("emphasis").hoverLayer = !0)
                }

                this._progressiveEls = [];
                for (var i = t.start; i < t.end; i++) {
                    if (BN(e.getItemLayout(i))) {
                        var r = new this._LineCtor(e, i, this._seriesScope);
                        r.traverse(n), this.group.add(r), e.setItemGraphicEl(i, r), this._progressiveEls.push(r)
                    }
                }
            }, t.prototype.remove = function () {
                this.group.removeAll()
            }, t.prototype.eachRendered = function (t) {
                Bm(this._progressiveEls || this.group, t)
            }, t.prototype._doAdd = function (t, e, n) {
                if (BN(t.getItemLayout(e))) {
                    var i = new this._LineCtor(t, e, n);
                    t.setItemGraphicEl(e, i), this.group.add(i)
                }
            }, t.prototype._doUpdate = function (t, e, n, i, r) {
                var o = t.getItemGraphicEl(n);
                BN(e.getItemLayout(i)) ? (o ? o.updateData(e, i, r) : o = new this._LineCtor(e, i, r), e.setItemGraphicEl(i, o), this.group.add(o)) : this.group.remove(o)
            }, t
        }();
        var HN = [], UN = [], VN = [], zN = oi, WN = pe, YN = Math.abs;

        function qN(t, e, n) {
            for (var i, r = t[0], o = t[1], a = t[2], s = 1 / 0, l = n * n, u = .1, c = .1; c <= .9; c += .1) {
                HN[0] = zN(r[0], o[0], a[0], c), HN[1] = zN(r[1], o[1], a[1], c), (p = YN(WN(HN, e) - l)) < s && (s = p, i = c)
            }
            for (var h = 0; h < 32; h++) {
                var d = i + u;
                UN[0] = zN(r[0], o[0], a[0], i), UN[1] = zN(r[1], o[1], a[1], i), VN[0] = zN(r[0], o[0], a[0], d), VN[1] = zN(r[1], o[1], a[1], d);
                var p = WN(UN, e) - l;
                if (YN(p) < .01) break;
                var f = WN(VN, e) - l;
                u /= 2, p < 0 ? f >= 0 ? i += u : i -= u : f >= 0 ? i -= u : i += u
            }
            return i
        }

        function jN(t, e) {
            var n = [], i = li, r = [[], [], []], o = [[], []], a = [];
            e /= 2, t.eachEdge((function (t, s) {
                var l = t.getLayout(), u = t.getVisual("fromSymbol"), c = t.getVisual("toSymbol");
                l.__original || (l.__original = [ne(l[0]), ne(l[1])], l[2] && l.__original.push(ne(l[2])));
                var h = l.__original;
                if (null != l[2]) {
                    if (ee(r[0], h[0]), ee(r[1], h[2]), ee(r[2], h[1]), u && "none" !== u) {
                        var d = fN(t.node1), p = qN(r, h[0], d * e);
                        i(r[0][0], r[1][0], r[2][0], p, n), r[0][0] = n[3], r[1][0] = n[4], i(r[0][1], r[1][1], r[2][1], p, n), r[0][1] = n[3], r[1][1] = n[4]
                    }
                    if (c && "none" !== c) {
                        d = fN(t.node2), p = qN(r, h[1], d * e);
                        i(r[0][0], r[1][0], r[2][0], p, n), r[1][0] = n[1], r[2][0] = n[2], i(r[0][1], r[1][1], r[2][1], p, n), r[1][1] = n[1], r[2][1] = n[2]
                    }
                    ee(l[0], r[0]), ee(l[1], r[2]), ee(l[2], r[1])
                } else {
                    if (ee(o[0], h[0]), ee(o[1], h[1]), ae(a, o[1], o[0]), ce(a, a), u && "none" !== u) {
                        d = fN(t.node1);
                        oe(o[0], o[0], a, d * e)
                    }
                    if (c && "none" !== c) {
                        d = fN(t.node2);
                        oe(o[1], o[1], a, -d * e)
                    }
                    ee(l[0], o[0]), ee(l[1], o[1])
                }
            }))
        }

        function XN(t) {
            return "view" === t.type
        }

        var ZN = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function (t, e) {
                var n = new XS, i = new FN, r = this.group;
                this._controller = new xC(e.getZr()), this._controllerHost = {target: r}, r.add(n.group), r.add(i.group), this._symbolDraw = n, this._lineDraw = i, this._firstRender = !0
            }, e.prototype.render = function (t, e, n) {
                var i = this, r = t.coordinateSystem;
                this._model = t;
                var o = this._symbolDraw, a = this._lineDraw, s = this.group;
                if (XN(r)) {
                    var l = {x: r.x, y: r.y, scaleX: r.scaleX, scaleY: r.scaleY};
                    this._firstRender ? s.attr(l) : ju(s, l, t)
                }
                jN(t.getGraph(), pN(t));
                var u = t.getData();
                o.updateData(u);
                var c = t.getEdgeData();
                a.updateData(c), this._updateNodeAndLinkScale(), this._updateController(t, e, n), clearTimeout(this._layoutTimeout);
                var h = t.forceLayout, d = t.get(["force", "layoutAnimation"]);
                h && this._startForceLayoutIteration(h, d);
                var p = t.get("layout");
                u.graph.eachNode((function (e) {
                    var n = e.dataIndex, r = e.getGraphicEl(), o = e.getModel();
                    if (r) {
                        r.off("drag").off("dragend");
                        var a = o.get("draggable");
                        a && r.on("drag", (function (o) {
                            switch (p) {
                                case"force":
                                    h.warmUp(), !i._layouting && i._startForceLayoutIteration(h, d), h.setFixed(n), u.setItemLayout(n, [r.x, r.y]);
                                    break;
                                case"circular":
                                    u.setItemLayout(n, [r.x, r.y]), e.setLayout({fixed: !0}, !0), yN(t, "symbolSize", e, [o.offsetX, o.offsetY]), i.updateLayout(t);
                                    break;
                                default:
                                    u.setItemLayout(n, [r.x, r.y]), hN(t.getGraph(), t), i.updateLayout(t)
                            }
                        })).on("dragend", (function () {
                            h && h.setUnfixed(n)
                        })), r.setDraggable(a, !!o.get("cursor")), "adjacency" === o.get(["emphasis", "focus"]) && (Hl(r).focus = e.getAdjacentDataIndices())
                    }
                })), u.graph.eachEdge((function (t) {
                    var e = t.getGraphicEl(), n = t.getModel().get(["emphasis", "focus"]);
                    e && "adjacency" === n && (Hl(e).focus = {
                        edge: [t.dataIndex],
                        node: [t.node1.dataIndex, t.node2.dataIndex]
                    })
                }));
                var f = "circular" === t.get("layout") && t.get(["circular", "rotateLabel"]), g = u.getLayout("cx"),
                    m = u.getLayout("cy");
                u.graph.eachNode((function (t) {
                    _N(t, f, g, m)
                })), this._firstRender = !1
            }, e.prototype.dispose = function () {
                this._controller && this._controller.dispose(), this._controllerHost = null
            }, e.prototype._startForceLayoutIteration = function (t, e) {
                var n = this;
                !function i() {
                    t.step((function (t) {
                        n.updateLayout(n._model), (n._layouting = !t) && (e ? n._layoutTimeout = setTimeout(i, 16) : i())
                    }))
                }()
            }, e.prototype._updateController = function (t, e, n) {
                var i = this, r = this._controller, o = this._controllerHost, a = this.group;
                r.setPointerChecker((function (e, i, r) {
                    var o = a.getBoundingRect();
                    return o.applyTransform(a.transform), o.contain(i, r) && !EC(e, n, t)
                })), XN(t.coordinateSystem) ? (r.enable(t.get("roam")), o.zoomLimit = t.get("scaleLimit"), o.zoom = t.coordinateSystem.getZoom(), r.off("pan").off("zoom").on("pan", (function (e) {
                    SC(o, e.dx, e.dy), n.dispatchAction({seriesId: t.id, type: "graphRoam", dx: e.dx, dy: e.dy})
                })).on("zoom", (function (e) {
                    AC(o, e.scale, e.originX, e.originY), n.dispatchAction({
                        seriesId: t.id,
                        type: "graphRoam",
                        zoom: e.scale,
                        originX: e.originX,
                        originY: e.originY
                    }), i._updateNodeAndLinkScale(), jN(t.getGraph(), pN(t)), i._lineDraw.updateLayout(), n.updateLabelLayout()
                }))) : r.disable()
            }, e.prototype._updateNodeAndLinkScale = function () {
                var t = this._model, e = t.getData(), n = pN(t);
                e.eachItemGraphicEl((function (t, e) {
                    t && t.setSymbolScale(n)
                }))
            }, e.prototype.updateLayout = function (t) {
                jN(t.getGraph(), pN(t)), this._symbolDraw.updateLayout(), this._lineDraw.updateLayout()
            }, e.prototype.remove = function (t, e) {
                this._symbolDraw && this._symbolDraw.remove(), this._lineDraw && this._lineDraw.remove()
            }, e.type = "graph", e
        }(jm);
        const KN = ZN;

        function QN(t) {
            return "_EC_" + t
        }

        var $N = function () {
            function t(t) {
                this.type = "graph", this.nodes = [], this.edges = [], this._nodesMap = {}, this._edgesMap = {}, this._directed = t || !1
            }

            return t.prototype.isDirected = function () {
                return this._directed
            }, t.prototype.addNode = function (t, e) {
                t = null == t ? "" + e : "" + t;
                var n = this._nodesMap;
                if (!n[QN(t)]) {
                    var i = new JN(t, e);
                    return i.hostGraph = this, this.nodes.push(i), n[QN(t)] = i, i
                }
            }, t.prototype.getNodeByIndex = function (t) {
                var e = this.data.getRawIndex(t);
                return this.nodes[e]
            }, t.prototype.getNodeById = function (t) {
                return this._nodesMap[QN(t)]
            }, t.prototype.addEdge = function (t, e, n) {
                var i = this._nodesMap, r = this._edgesMap;
                if (Ct(t) && (t = this.nodes[t]), Ct(e) && (e = this.nodes[e]), t instanceof JN || (t = i[QN(t)]), e instanceof JN || (e = i[QN(e)]), t && e) {
                    var o = t.id + "-" + e.id, a = new tO(t, e, n);
                    return a.hostGraph = this, this._directed && (t.outEdges.push(a), e.inEdges.push(a)), t.edges.push(a), t !== e && e.edges.push(a), this.edges.push(a), r[o] = a, a
                }
            }, t.prototype.getEdgeByIndex = function (t) {
                var e = this.edgeData.getRawIndex(t);
                return this.edges[e]
            }, t.prototype.getEdge = function (t, e) {
                t instanceof JN && (t = t.id), e instanceof JN && (e = e.id);
                var n = this._edgesMap;
                return this._directed ? n[t + "-" + e] : n[t + "-" + e] || n[e + "-" + t]
            }, t.prototype.eachNode = function (t, e) {
                for (var n = this.nodes, i = n.length, r = 0; r < i; r++) n[r].dataIndex >= 0 && t.call(e, n[r], r)
            }, t.prototype.eachEdge = function (t, e) {
                for (var n = this.edges, i = n.length, r = 0; r < i; r++) n[r].dataIndex >= 0 && n[r].node1.dataIndex >= 0 && n[r].node2.dataIndex >= 0 && t.call(e, n[r], r)
            }, t.prototype.breadthFirstTraverse = function (t, e, n, i) {
                if (e instanceof JN || (e = this._nodesMap[QN(e)]), e) {
                    for (var r = "out" === n ? "outEdges" : "in" === n ? "inEdges" : "edges", o = 0; o < this.nodes.length; o++) this.nodes[o].__visited = !1;
                    if (!t.call(i, e, null)) for (var a = [e]; a.length;) {
                        var s = a.shift(), l = s[r];
                        for (o = 0; o < l.length; o++) {
                            var u = l[o], c = u.node1 === s ? u.node2 : u.node1;
                            if (!c.__visited) {
                                if (t.call(i, c, s)) return;
                                a.push(c), c.__visited = !0
                            }
                        }
                    }
                }
            }, t.prototype.update = function () {
                for (var t = this.data, e = this.edgeData, n = this.nodes, i = this.edges, r = 0, o = n.length; r < o; r++) n[r].dataIndex = -1;
                for (r = 0, o = t.count(); r < o; r++) n[t.getRawIndex(r)].dataIndex = r;
                e.filterSelf((function (t) {
                    var n = i[e.getRawIndex(t)];
                    return n.node1.dataIndex >= 0 && n.node2.dataIndex >= 0
                }));
                for (r = 0, o = i.length; r < o; r++) i[r].dataIndex = -1;
                for (r = 0, o = e.count(); r < o; r++) i[e.getRawIndex(r)].dataIndex = r
            }, t.prototype.clone = function () {
                for (var e = new t(this._directed), n = this.nodes, i = this.edges, r = 0; r < n.length; r++) e.addNode(n[r].id, n[r].dataIndex);
                for (r = 0; r < i.length; r++) {
                    var o = i[r];
                    e.addEdge(o.node1.id, o.node2.id, o.dataIndex)
                }
                return e
            }, t
        }(), JN = function () {
            function t(t, e) {
                this.inEdges = [], this.outEdges = [], this.edges = [], this.dataIndex = -1, this.id = null == t ? "" : t, this.dataIndex = null == e ? -1 : e
            }

            return t.prototype.degree = function () {
                return this.edges.length
            }, t.prototype.inDegree = function () {
                return this.inEdges.length
            }, t.prototype.outDegree = function () {
                return this.outEdges.length
            }, t.prototype.getModel = function (t) {
                if (!(this.dataIndex < 0)) return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)
            }, t.prototype.getAdjacentDataIndices = function () {
                for (var t = {edge: [], node: []}, e = 0; e < this.edges.length; e++) {
                    var n = this.edges[e];
                    n.dataIndex < 0 || (t.edge.push(n.dataIndex), t.node.push(n.node1.dataIndex, n.node2.dataIndex))
                }
                return t
            }, t.prototype.getTrajectoryDataIndices = function () {
                for (var t = jt(), e = jt(), n = 0; n < this.edges.length; n++) {
                    var i = this.edges[n];
                    if (!(i.dataIndex < 0)) {
                        t.set(i.dataIndex, !0);
                        for (var r = [i.node1], o = [i.node2], a = 0; a < r.length;) {
                            var s = r[a];
                            a++, e.set(s.dataIndex, !0);
                            for (var l = 0; l < s.inEdges.length; l++) t.set(s.inEdges[l].dataIndex, !0), r.push(s.inEdges[l].node1)
                        }
                        for (a = 0; a < o.length;) {
                            var u = o[a];
                            a++, e.set(u.dataIndex, !0);
                            for (l = 0; l < u.outEdges.length; l++) t.set(u.outEdges[l].dataIndex, !0), o.push(u.outEdges[l].node2)
                        }
                    }
                }
                return {edge: t.keys(), node: e.keys()}
            }, t
        }(), tO = function () {
            function t(t, e, n) {
                this.dataIndex = -1, this.node1 = t, this.node2 = e, this.dataIndex = null == n ? -1 : n
            }

            return t.prototype.getModel = function (t) {
                if (!(this.dataIndex < 0)) return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)
            }, t.prototype.getAdjacentDataIndices = function () {
                return {edge: [this.dataIndex], node: [this.node1.dataIndex, this.node2.dataIndex]}
            }, t.prototype.getTrajectoryDataIndices = function () {
                var t = jt(), e = jt();
                t.set(this.dataIndex, !0);
                for (var n = [this.node1], i = [this.node2], r = 0; r < n.length;) {
                    var o = n[r];
                    r++, e.set(o.dataIndex, !0);
                    for (var a = 0; a < o.inEdges.length; a++) t.set(o.inEdges[a].dataIndex, !0), n.push(o.inEdges[a].node1)
                }
                for (r = 0; r < i.length;) {
                    var s = i[r];
                    r++, e.set(s.dataIndex, !0);
                    for (a = 0; a < s.outEdges.length; a++) t.set(s.outEdges[a].dataIndex, !0), i.push(s.outEdges[a].node2)
                }
                return {edge: t.keys(), node: e.keys()}
            }, t
        }();

        function eO(t, e) {
            return {
                getValue: function (n) {
                    var i = this[t][e];
                    return i.getStore().get(i.getDimensionIndex(n || "value"), this.dataIndex)
                }, setVisual: function (n, i) {
                    this.dataIndex >= 0 && this[t][e].setItemVisual(this.dataIndex, n, i)
                }, getVisual: function (n) {
                    return this[t][e].getItemVisual(this.dataIndex, n)
                }, setLayout: function (n, i) {
                    this.dataIndex >= 0 && this[t][e].setItemLayout(this.dataIndex, n, i)
                }, getLayout: function () {
                    return this[t][e].getItemLayout(this.dataIndex)
                }, getGraphicEl: function () {
                    return this[t][e].getItemGraphicEl(this.dataIndex)
                }, getRawIndex: function () {
                    return this[t][e].getRawIndex(this.dataIndex)
                }
            }
        }

        ft(JN, eO("hostGraph", "data")), ft(tO, eO("hostGraph", "edgeData"));
        const nO = $N;

        function iO(t, e, n, i, r) {
            for (var o = new nO(i), a = 0; a < t.length; a++) o.addNode(Rt(t[a].id, t[a].name, a), a);
            var s = [], l = [], u = 0;
            for (a = 0; a < e.length; a++) {
                var c = e[a], h = c.source, d = c.target;
                o.addEdge(h, d, u) && (l.push(c), s.push(Rt(sa(c.id, null), h + " > " + d)), u++)
            }
            var p, f = n.get("coordinateSystem");
            if ("cartesian2d" === f || "polar" === f) p = GS(t, n); else {
                var g = bd.get(f), m = g && g.dimensions || [];
                pt(m, "value") < 0 && m.concat(["value"]);
                var y = wS(t, {coordDimensions: m, encodeDefine: n.getEncode()}).dimensions;
                (p = new DS(y, n)).initData(t)
            }
            var v = new DS(["value"], n);
            return v.initData(l, s), r && r(p, v), kw({
                mainData: p,
                struct: o,
                structAttr: "graph",
                datas: {node: p, edge: v},
                datasAttr: {node: "data", edge: "edgeData"}
            }), o.update(), o
        }

        var rO = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.hasSymbolVisual = !0, n
            }

            return G(e, t), e.prototype.init = function (e) {
                t.prototype.init.apply(this, arguments);
                var n = this;

                function i() {
                    return n._categoriesData
                }

                this.legendVisualProvider = new Cb(i, i), this.fillDataTextStyle(e.edges || e.links), this._updateCategoriesData()
            }, e.prototype.mergeOption = function (e) {
                t.prototype.mergeOption.apply(this, arguments), this.fillDataTextStyle(e.edges || e.links), this._updateCategoriesData()
            }, e.prototype.mergeDefaultAndTheme = function (e) {
                t.prototype.mergeDefaultAndTheme.apply(this, arguments), ta(e, "edgeLabel", ["show"])
            }, e.prototype.getInitialData = function (t, e) {
                var n, i = t.edges || t.links || [], r = t.data || t.nodes || [], o = this;
                if (r && i) {
                    nN(n = this) && (n.__curvenessList = [], n.__edgeMap = {}, iN(n));
                    var a = iO(r, i, this, !0, (function (t, e) {
                        t.wrapMethod("getItemModel", (function (t) {
                            var e = o._categoriesModels[t.getShallow("category")];
                            return e && (e.parentModel = t.parentModel, t.parentModel = e), t
                        }));
                        var n = wc.prototype.getModel;

                        function i(t, e) {
                            var i = n.call(this, t, e);
                            return i.resolveParentPath = r, i
                        }

                        function r(t) {
                            if (t && ("label" === t[0] || "label" === t[1])) {
                                var e = t.slice();
                                return "label" === t[0] ? e[0] = "edgeLabel" : "label" === t[1] && (e[1] = "edgeLabel"), e
                            }
                            return t
                        }

                        e.wrapMethod("getItemModel", (function (t) {
                            return t.resolveParentPath = r, t.getModel = i, t
                        }))
                    }));
                    return mt(a.edges, (function (t) {
                        !function (t, e, n, i) {
                            if (nN(n)) {
                                var r = rN(t, e, n), o = n.__edgeMap, a = o[oN(r)];
                                o[r] && !a ? o[r].isForward = !0 : a && o[r] && (a.isForward = !0, o[r].isForward = !1), o[r] = o[r] || [], o[r].push(i)
                            }
                        }(t.node1, t.node2, this, t.dataIndex)
                    }), this), a.data
                }
            }, e.prototype.getGraph = function () {
                return this.getData().graph
            }, e.prototype.getEdgeData = function () {
                return this.getGraph().edgeData
            }, e.prototype.getCategoriesData = function () {
                return this._categoriesData
            }, e.prototype.formatTooltip = function (t, e, n) {
                if ("edge" === n) {
                    var i = this.getData(), r = this.getDataParams(t, n), o = i.graph.getEdgeByIndex(t),
                        a = i.getName(o.node1.dataIndex), s = i.getName(o.node2.dataIndex), l = [];
                    return null != a && l.push(a), null != s && l.push(s), hf("nameValue", {
                        name: l.join(" > "),
                        value: r.value,
                        noValue: null == r.value
                    })
                }
                return Af({series: this, dataIndex: t, multipleSeries: e})
            }, e.prototype._updateCategoriesData = function () {
                var t = yt(this.option.categories || [], (function (t) {
                    return null != t.value ? t : ht({value: 0}, t)
                })), e = new DS(["value"], this);
                e.initData(t), this._categoriesData = e, this._categoriesModels = e.mapArray((function (t) {
                    return e.getItemModel(t)
                }))
            }, e.prototype.setZoom = function (t) {
                this.option.zoom = t
            }, e.prototype.setCenter = function (t) {
                this.option.center = t
            }, e.prototype.isAnimationEnabled = function () {
                return t.prototype.isAnimationEnabled.call(this) && !("force" === this.get("layout") && this.get(["force", "layoutAnimation"]))
            }, e.type = "series.graph", e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], e.defaultOption = {
                z: 2,
                coordinateSystem: "view",
                legendHoverLink: !0,
                layout: null,
                circular: {rotateLabel: !1},
                force: {
                    initLayout: null,
                    repulsion: [0, 50],
                    gravity: .1,
                    friction: .6,
                    edgeLength: 30,
                    layoutAnimation: !0
                },
                left: "center",
                top: "center",
                symbol: "circle",
                symbolSize: 10,
                edgeSymbol: ["none", "none"],
                edgeSymbolSize: 10,
                edgeLabel: {position: "middle", distance: 5},
                draggable: !1,
                roam: !1,
                center: null,
                zoom: 1,
                nodeScaleRatio: .6,
                label: {show: !1, formatter: "{b}"},
                itemStyle: {},
                lineStyle: {color: "#aaa", width: 1, opacity: .5},
                emphasis: {scale: !0, label: {show: !0}},
                select: {itemStyle: {borderColor: "#212121"}}
            }, e
        }(kf);
        const oO = rO;
        var aO = {type: "graphRoam", event: "graphRoam", update: "none"};
        var sO = function () {
            this.angle = 0, this.width = 10, this.r = 10, this.x = 0, this.y = 0
        }, lO = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n.type = "pointer", n
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new sO
            }, e.prototype.buildPath = function (t, e) {
                var n = Math.cos, i = Math.sin, r = e.r, o = e.width, a = e.angle,
                    s = e.x - n(a) * o * (o >= r / 3 ? 1 : 2), l = e.y - i(a) * o * (o >= r / 3 ? 1 : 2);
                a = e.angle - Math.PI / 2, t.moveTo(s, l), t.lineTo(e.x + n(a) * o, e.y + i(a) * o), t.lineTo(e.x + n(e.angle) * r, e.y + i(e.angle) * r), t.lineTo(e.x - n(a) * o, e.y - i(a) * o), t.lineTo(s, l)
            }, e
        }(ll);
        const uO = lO;

        function cO(t, e) {
            var n = null == t ? "" : t + "";
            return e && (It(e) ? n = e.replace("{value}", n) : bt(e) && (n = e(t))), n
        }

        var hO = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                this.group.removeAll();
                var i = t.get(["axisLine", "lineStyle", "color"]), r = function (t, e) {
                    var n = t.get("center"), i = e.getWidth(), r = e.getHeight(), o = Math.min(i, r);
                    return {cx: wo(n[0], e.getWidth()), cy: wo(n[1], e.getHeight()), r: wo(t.get("radius"), o / 2)}
                }(t, n);
                this._renderMain(t, e, n, i, r), this._data = t.getData()
            }, e.prototype.dispose = function () {
            }, e.prototype._renderMain = function (t, e, n, i, r) {
                var o = this.group, a = t.get("clockwise"), s = -t.get("startAngle") / 180 * Math.PI,
                    l = -t.get("endAngle") / 180 * Math.PI, u = t.getModel("axisLine"), c = u.get("roundCap") ? zA : Eg,
                    h = u.get("show"), d = u.getModel("lineStyle"), p = d.get("width"), f = [s, l];
                Bs(f, !a);
                for (var g = (l = f[1]) - (s = f[0]), m = s, y = [], v = 0; h && v < i.length; v++) {
                    var _ = new c({
                        shape: {
                            startAngle: m,
                            endAngle: l = s + g * Math.min(Math.max(i[v][0], 0), 1),
                            cx: r.cx,
                            cy: r.cy,
                            clockwise: a,
                            r0: r.r - p,
                            r: r.r
                        }, silent: !0
                    });
                    _.setStyle({fill: i[v][1]}), _.setStyle(d.getLineStyle(["color", "width"])), y.push(_), m = l
                }
                y.reverse(), mt(y, (function (t) {
                    return o.add(t)
                }));
                var T = function (t) {
                    if (t <= 0) return i[0][1];
                    var e;
                    for (e = 0; e < i.length; e++) if (i[e][0] >= t && (0 === e ? 0 : i[e - 1][0]) < t) return i[e][1];
                    return i[e - 1][1]
                };
                this._renderTicks(t, e, n, T, r, s, l, a, p), this._renderTitleAndDetail(t, e, n, T, r), this._renderAnchor(t, r), this._renderPointer(t, e, n, T, r, s, l, a, p)
            }, e.prototype._renderTicks = function (t, e, n, i, r, o, a, s, l) {
                for (var u, c, h = this.group, d = r.cx, p = r.cy, f = r.r, g = +t.get("min"), m = +t.get("max"), y = t.getModel("splitLine"), v = t.getModel("axisTick"), _ = t.getModel("axisLabel"), T = t.get("splitNumber"), x = v.get("splitNumber"), S = wo(y.get("length"), f), A = wo(v.get("length"), f), b = o, I = (a - o) / T, E = I / x, C = y.getModel("lineStyle").getLineStyle(), D = v.getModel("lineStyle").getLineStyle(), w = y.get("distance"), M = 0; M <= T; M++) {
                    if (u = Math.cos(b), c = Math.sin(b), y.get("show")) {
                        var N = new Hg({
                            shape: {
                                x1: u * (f - (O = w ? w + l : l)) + d,
                                y1: c * (f - O) + p,
                                x2: u * (f - S - O) + d,
                                y2: c * (f - S - O) + p
                            }, style: C, silent: !0
                        });
                        "auto" === C.stroke && N.setStyle({stroke: i(M / T)}), h.add(N)
                    }
                    if (_.get("show")) {
                        var O = _.get("distance") + w, L = cO(Mo(M / T * (m - g) + g), _.get("formatter")),
                            R = i(M / T), k = u * (f - S - O) + d, P = c * (f - S - O) + p, G = _.get("rotate"), B = 0;
                        "radial" === G ? (B = -b + 2 * Math.PI) > Math.PI / 2 && (B += Math.PI) : "tangential" === G ? B = -b - Math.PI / 2 : Ct(G) && (B = G * Math.PI / 180), 0 === B ? h.add(new Fl({
                            style: oc(_, {
                                text: L,
                                x: k,
                                y: P,
                                verticalAlign: c < -.8 ? "top" : c > .8 ? "bottom" : "middle",
                                align: u < -.4 ? "left" : u > .4 ? "right" : "center"
                            }, {inheritColor: R}), silent: !0
                        })) : h.add(new Fl({
                            style: oc(_, {
                                text: L,
                                x: k,
                                y: P,
                                verticalAlign: "middle",
                                align: "center"
                            }, {inheritColor: R}), silent: !0, originX: k, originY: P, rotation: B
                        }))
                    }
                    if (v.get("show") && M !== T) {
                        O = (O = v.get("distance")) ? O + l : l;
                        for (var F = 0; F <= x; F++) {
                            u = Math.cos(b), c = Math.sin(b);
                            var H = new Hg({
                                shape: {
                                    x1: u * (f - O) + d,
                                    y1: c * (f - O) + p,
                                    x2: u * (f - A - O) + d,
                                    y2: c * (f - A - O) + p
                                }, silent: !0, style: D
                            });
                            "auto" === D.stroke && H.setStyle({stroke: i((M + F / x) / T)}), h.add(H), b += E
                        }
                        b -= E
                    } else b += I
                }
            }, e.prototype._renderPointer = function (t, e, n, i, r, o, a, s, l) {
                var u = this.group, c = this._data, h = this._progressEls, d = [], p = t.get(["pointer", "show"]),
                    f = t.getModel("progress"), g = f.get("show"), m = t.getData(), y = m.mapDimension("value"),
                    v = +t.get("min"), _ = +t.get("max"), T = [v, _], x = [o, a];

                function S(e, n) {
                    var i, o = m.getItemModel(e).getModel("pointer"), a = wo(o.get("width"), r.r),
                        s = wo(o.get("length"), r.r), l = t.get(["pointer", "icon"]), u = o.get("offsetCenter"),
                        c = wo(u[0], r.r), h = wo(u[1], r.r), d = o.get("keepAspect");
                    return (i = l ? iv(l, c - a / 2, h - s, a, s, null, d) : new uO({
                        shape: {
                            angle: -Math.PI / 2,
                            width: a,
                            r: s,
                            x: c,
                            y: h
                        }
                    })).rotation = -(n + Math.PI / 2), i.x = r.cx, i.y = r.cy, i
                }

                function A(t, e) {
                    var n = f.get("roundCap") ? zA : Eg, i = f.get("overlap"), a = i ? f.get("width") : l / m.count(),
                        u = i ? r.r - a : r.r - (t + 1) * a, c = i ? r.r : r.r - t * a,
                        h = new n({shape: {startAngle: o, endAngle: e, cx: r.cx, cy: r.cy, clockwise: s, r0: u, r: c}});
                    return i && (h.z2 = _ - m.get(y, t) % _), h
                }

                (g || p) && (m.diff(c).add((function (e) {
                    var n = m.get(y, e);
                    if (p) {
                        var i = S(e, o);
                        Xu(i, {rotation: -((isNaN(+n) ? x[0] : Do(n, T, x, !0)) + Math.PI / 2)}, t), u.add(i), m.setItemGraphicEl(e, i)
                    }
                    if (g) {
                        var r = A(e, o), a = f.get("clip");
                        Xu(r, {shape: {endAngle: Do(n, T, x, a)}}, t), u.add(r), Ul(t.seriesIndex, m.dataType, e, r), d[e] = r
                    }
                })).update((function (e, n) {
                    var i = m.get(y, e);
                    if (p) {
                        var r = c.getItemGraphicEl(n), a = r ? r.rotation : o, s = S(e, a);
                        s.rotation = a, ju(s, {rotation: -((isNaN(+i) ? x[0] : Do(i, T, x, !0)) + Math.PI / 2)}, t), u.add(s), m.setItemGraphicEl(e, s)
                    }
                    if (g) {
                        var l = h[n], v = A(e, l ? l.shape.endAngle : o), _ = f.get("clip");
                        ju(v, {shape: {endAngle: Do(i, T, x, _)}}, t), u.add(v), Ul(t.seriesIndex, m.dataType, e, v), d[e] = v
                    }
                })).execute(), m.each((function (t) {
                    var e = m.getItemModel(t), n = e.getModel("emphasis"), r = n.get("focus"), o = n.get("blurScope"),
                        a = n.get("disabled");
                    if (p) {
                        var s = m.getItemGraphicEl(t), l = m.getItemVisual(t, "style"), u = l.fill;
                        if (s instanceof gl) {
                            var c = s.style;
                            s.useStyle(ht({image: c.image, x: c.x, y: c.y, width: c.width, height: c.height}, l))
                        } else s.useStyle(l), "pointer" !== s.type && s.setColor(u);
                        s.setStyle(e.getModel(["pointer", "itemStyle"]).getItemStyle()), "auto" === s.style.fill && s.setStyle("fill", i(Do(m.get(y, t), T, [0, 1], !0))), s.z2EmphasisLift = 0, Fu(s, e), ku(s, r, o, a)
                    }
                    if (g) {
                        var h = d[t];
                        h.useStyle(m.getItemVisual(t, "style")), h.setStyle(e.getModel(["progress", "itemStyle"]).getItemStyle()), h.z2EmphasisLift = 0, Fu(h, e), ku(h, r, o, a)
                    }
                })), this._progressEls = d)
            }, e.prototype._renderAnchor = function (t, e) {
                var n = t.getModel("anchor");
                if (n.get("show")) {
                    var i = n.get("size"), r = n.get("icon"), o = n.get("offsetCenter"), a = n.get("keepAspect"),
                        s = iv(r, e.cx - i / 2 + wo(o[0], e.r), e.cy - i / 2 + wo(o[1], e.r), i, i, null, a);
                    s.z2 = n.get("showAbove") ? 1 : 0, s.setStyle(n.getModel("itemStyle").getItemStyle()), this.group.add(s)
                }
            }, e.prototype._renderTitleAndDetail = function (t, e, n, i, r) {
                var o = this, a = t.getData(), s = a.mapDimension("value"), l = +t.get("min"), u = +t.get("max"),
                    c = new xo, h = [], d = [], p = t.isAnimationEnabled(), f = t.get(["pointer", "showAbove"]);
                a.diff(this._data).add((function (t) {
                    h[t] = new Fl({silent: !0}), d[t] = new Fl({silent: !0})
                })).update((function (t, e) {
                    h[t] = o._titleEls[e], d[t] = o._detailEls[e]
                })).execute(), a.each((function (e) {
                    var n = a.getItemModel(e), o = a.get(s, e), g = new xo, m = i(Do(o, [l, u], [0, 1], !0)),
                        y = n.getModel("title");
                    if (y.get("show")) {
                        var v = y.get("offsetCenter"), _ = r.cx + wo(v[0], r.r), T = r.cy + wo(v[1], r.r);
                        (D = h[e]).attr({
                            z2: f ? 0 : 2,
                            style: oc(y, {
                                x: _,
                                y: T,
                                text: a.getName(e),
                                align: "center",
                                verticalAlign: "middle"
                            }, {inheritColor: m})
                        }), g.add(D)
                    }
                    var x = n.getModel("detail");
                    if (x.get("show")) {
                        var S = x.get("offsetCenter"), A = r.cx + wo(S[0], r.r), b = r.cy + wo(S[1], r.r),
                            I = wo(x.get("width"), r.r), E = wo(x.get("height"), r.r),
                            C = t.get(["progress", "show"]) ? a.getItemVisual(e, "style").fill : m, D = d[e],
                            w = x.get("formatter");
                        D.attr({
                            z2: f ? 0 : 2,
                            style: oc(x, {
                                x: A,
                                y: b,
                                text: cO(o, w),
                                width: isNaN(I) ? null : I,
                                height: isNaN(E) ? null : E,
                                align: "center",
                                verticalAlign: "middle"
                            }, {inheritColor: C})
                        }), pc(D, {normal: x}, o, (function (t) {
                            return cO(t, w)
                        })), p && fc(D, e, a, t, {
                            getFormattedLabel: function (t, e, n, i, r, a) {
                                return cO(a ? a.interpolatedValue : o, w)
                            }
                        }), g.add(D)
                    }
                    c.add(g)
                })), this.group.add(c), this._titleEls = h, this._detailEls = d
            }, e.type = "gauge", e
        }(jm);
        const dO = hO;
        const pO = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.visualStyleAccessPath = "itemStyle", n
            }

            return G(e, t), e.prototype.getInitialData = function (t, e) {
                return Ib(this, ["value"])
            }, e.type = "series.gauge", e.defaultOption = {
                z: 2,
                colorBy: "data",
                center: ["50%", "50%"],
                legendHoverLink: !0,
                radius: "75%",
                startAngle: 225,
                endAngle: -45,
                clockwise: !0,
                min: 0,
                max: 100,
                splitNumber: 10,
                axisLine: {show: !0, roundCap: !1, lineStyle: {color: [[1, "#E6EBF8"]], width: 10}},
                progress: {show: !1, overlap: !0, width: 10, roundCap: !1, clip: !0},
                splitLine: {show: !0, length: 10, distance: 10, lineStyle: {color: "#63677A", width: 3, type: "solid"}},
                axisTick: {
                    show: !0,
                    splitNumber: 5,
                    length: 6,
                    distance: 10,
                    lineStyle: {color: "#63677A", width: 1, type: "solid"}
                },
                axisLabel: {show: !0, distance: 15, color: "#464646", fontSize: 12, rotate: 0},
                pointer: {
                    icon: null,
                    offsetCenter: [0, 0],
                    show: !0,
                    showAbove: !0,
                    length: "60%",
                    width: 6,
                    keepAspect: !1
                },
                anchor: {
                    show: !1,
                    showAbove: !1,
                    size: 6,
                    icon: "circle",
                    offsetCenter: [0, 0],
                    keepAspect: !1,
                    itemStyle: {color: "#fff", borderWidth: 0, borderColor: "#5470c6"}
                },
                title: {show: !0, offsetCenter: [0, "20%"], color: "#464646", fontSize: 16, valueAnimation: !1},
                detail: {
                    show: !0,
                    backgroundColor: "rgba(0,0,0,0)",
                    borderWidth: 0,
                    borderColor: "#ccc",
                    width: 100,
                    height: null,
                    padding: [5, 10],
                    offsetCenter: [0, "40%"],
                    color: "#464646",
                    fontSize: 30,
                    fontWeight: "bold",
                    lineHeight: 30,
                    valueAnimation: !1
                }
            }, e
        }(kf);
        var fO = ["itemStyle", "opacity"], gO = function (t) {
            function e(e, n) {
                var i = t.call(this) || this, r = i, o = new Pg, a = new Fl;
                return r.setTextContent(a), i.setTextGuideLine(o), i.updateData(e, n, !0), i
            }

            return G(e, t), e.prototype.updateData = function (t, e, n) {
                var i = this, r = t.hostModel, o = t.getItemModel(e), a = t.getItemLayout(e),
                    s = o.getModel("emphasis"), l = o.get(fO);
                l = null == l ? 1 : l, n || Ju(i), i.useStyle(t.getItemVisual(e, "style")), i.style.lineJoin = "round", n ? (i.setShape({points: a.points}), i.style.opacity = 0, Xu(i, {style: {opacity: l}}, r, e)) : ju(i, {
                    style: {opacity: l},
                    shape: {points: a.points}
                }, r, e), Fu(i, o), this._updateLabel(t, e), ku(this, s.get("focus"), s.get("blurScope"), s.get("disabled"))
            }, e.prototype._updateLabel = function (t, e) {
                var n = this, i = this.getTextGuideLine(), r = n.getTextContent(), o = t.hostModel,
                    a = t.getItemModel(e), s = t.getItemLayout(e).label, l = t.getItemVisual(e, "style"), u = l.fill;
                ic(r, rc(a), {
                    labelFetcher: t.hostModel,
                    labelDataIndex: e,
                    defaultOpacity: l.opacity,
                    defaultText: t.getName(e)
                }, {normal: {align: s.textAlign, verticalAlign: s.verticalAlign}}), n.setTextConfig({
                    local: !0,
                    inside: !!s.inside,
                    insideStroke: u,
                    outsideFill: u
                });
                var c = s.linePoints;
                i.setShape({points: c}), n.textGuideLineConfig = {anchor: c ? new tn(c[0][0], c[0][1]) : null}, ju(r, {
                    style: {
                        x: s.x,
                        y: s.y
                    }
                }, o, e), r.attr({rotation: s.rotation, originX: s.x, originY: s.y, z2: 10}), fT(n, gT(a), {stroke: u})
            }, e
        }(Lg);
        const mO = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.ignoreLabelLineUpdate = !0, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i = t.getData(), r = this._data, o = this.group;
                i.diff(r).add((function (t) {
                    var e = new gO(i, t);
                    i.setItemGraphicEl(t, e), o.add(e)
                })).update((function (t, e) {
                    var n = r.getItemGraphicEl(e);
                    n.updateData(i, t), o.add(n), i.setItemGraphicEl(t, n)
                })).remove((function (e) {
                    $u(r.getItemGraphicEl(e), t, e)
                })).execute(), this._data = i
            }, e.prototype.remove = function () {
                this.group.removeAll(), this._data = null
            }, e.prototype.dispose = function () {
            }, e.type = "funnel", e
        }(jm);
        var yO = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function (e) {
                t.prototype.init.apply(this, arguments), this.legendVisualProvider = new Cb(xt(this.getData, this), xt(this.getRawData, this)), this._defaultLabelLine(e)
            }, e.prototype.getInitialData = function (t, e) {
                return Ib(this, {coordDimensions: ["value"], encodeDefaulter: St(ed, this)})
            }, e.prototype._defaultLabelLine = function (t) {
                ta(t, "labelLine", ["show"]);
                var e = t.labelLine, n = t.emphasis.labelLine;
                e.show = e.show && t.label.show, n.show = n.show && t.emphasis.label.show
            }, e.prototype.getDataParams = function (e) {
                var n = this.getData(), i = t.prototype.getDataParams.call(this, e), r = n.mapDimension("value"),
                    o = n.getSum(r);
                return i.percent = o ? +(n.get(r, e) / o * 100).toFixed(2) : 0, i.$vars.push("percent"), i
            }, e.type = "series.funnel", e.defaultOption = {
                z: 2,
                legendHoverLink: !0,
                colorBy: "data",
                left: 80,
                top: 60,
                right: 80,
                bottom: 60,
                minSize: "0%",
                maxSize: "100%",
                sort: "descending",
                orient: "vertical",
                gap: 0,
                funnelAlign: "center",
                label: {show: !0, position: "outer"},
                labelLine: {show: !0, length: 20, lineStyle: {width: 1}},
                itemStyle: {borderColor: "#fff", borderWidth: 1},
                emphasis: {label: {show: !0}},
                select: {itemStyle: {borderColor: "#212121"}}
            }, e
        }(kf);
        const vO = yO;

        function _O(t, e) {
            t.eachSeriesByType("funnel", (function (t) {
                var n = t.getData(), i = n.mapDimension("value"), r = t.get("sort"), o = function (t, e) {
                        return Nh(t.getBoxLayoutParams(), {width: e.getWidth(), height: e.getHeight()})
                    }(t, e), a = t.get("orient"), s = o.width, l = o.height, u = function (t, e) {
                        for (var n = t.mapDimension("value"), i = t.mapArray(n, (function (t) {
                            return t
                        })), r = [], o = "ascending" === e, a = 0, s = t.count(); a < s; a++) r[a] = a;
                        return bt(e) ? r.sort(e) : "none" !== e && r.sort((function (t, e) {
                            return o ? i[t] - i[e] : i[e] - i[t]
                        })), r
                    }(n, r), c = o.x, h = o.y,
                    d = "horizontal" === a ? [wo(t.get("minSize"), l), wo(t.get("maxSize"), l)] : [wo(t.get("minSize"), s), wo(t.get("maxSize"), s)],
                    p = n.getDataExtent(i), f = t.get("min"), g = t.get("max");
                null == f && (f = Math.min(p[0], 0)), null == g && (g = p[1]);
                var m = t.get("funnelAlign"), y = t.get("gap"),
                    v = (("horizontal" === a ? s : l) - y * (n.count() - 1)) / n.count(), _ = function (t, e) {
                        if ("horizontal" === a) {
                            var r = Do(n.get(i, t) || 0, [f, g], d, !0), o = void 0;
                            switch (m) {
                                case"top":
                                    o = h;
                                    break;
                                case"center":
                                    o = h + (l - r) / 2;
                                    break;
                                case"bottom":
                                    o = h + (l - r)
                            }
                            return [[e, o], [e, o + r]]
                        }
                        var u, p = Do(n.get(i, t) || 0, [f, g], d, !0);
                        switch (m) {
                            case"left":
                                u = c;
                                break;
                            case"center":
                                u = c + (s - p) / 2;
                                break;
                            case"right":
                                u = c + s - p
                        }
                        return [[u, e], [u + p, e]]
                    };
                "ascending" === r && (v = -v, y = -y, "horizontal" === a ? c += s : h += l, u = u.reverse());
                for (var T = 0; T < u.length; T++) {
                    var x = u[T], S = u[T + 1], A = n.getItemModel(x);
                    if ("horizontal" === a) {
                        var b = A.get(["itemStyle", "width"]);
                        null == b ? b = v : (b = wo(b, s), "ascending" === r && (b = -b));
                        var I = _(x, c), E = _(S, c + b);
                        c += b + y, n.setItemLayout(x, {points: I.concat(E.slice().reverse())})
                    } else {
                        var C = A.get(["itemStyle", "height"]);
                        null == C ? C = v : (C = wo(C, l), "ascending" === r && (C = -C));
                        I = _(x, h), E = _(S, h + C);
                        h += C + y, n.setItemLayout(x, {points: I.concat(E.slice().reverse())})
                    }
                }
                !function (t) {
                    var e = t.hostModel.get("orient");
                    t.each((function (n) {
                        var i, r, o, a, s = t.getItemModel(n), l = s.getModel("label").get("position"),
                            u = s.getModel("labelLine"), c = t.getItemLayout(n), h = c.points,
                            d = "inner" === l || "inside" === l || "center" === l || "insideLeft" === l || "insideRight" === l;
                        if (d) "insideLeft" === l ? (r = (h[0][0] + h[3][0]) / 2 + 5, o = (h[0][1] + h[3][1]) / 2, i = "left") : "insideRight" === l ? (r = (h[1][0] + h[2][0]) / 2 - 5, o = (h[1][1] + h[2][1]) / 2, i = "right") : (r = (h[0][0] + h[1][0] + h[2][0] + h[3][0]) / 4, o = (h[0][1] + h[1][1] + h[2][1] + h[3][1]) / 4, i = "center"), a = [[r, o], [r, o]]; else {
                            var p = void 0, f = void 0, g = void 0, m = void 0, y = u.get("length");
                            "left" === l ? (p = (h[3][0] + h[0][0]) / 2, f = (h[3][1] + h[0][1]) / 2, r = (g = p - y) - 5, i = "right") : "right" === l ? (p = (h[1][0] + h[2][0]) / 2, f = (h[1][1] + h[2][1]) / 2, r = (g = p + y) + 5, i = "left") : "top" === l ? (p = (h[3][0] + h[0][0]) / 2, o = (m = (f = (h[3][1] + h[0][1]) / 2) - y) - 5, i = "center") : "bottom" === l ? (p = (h[1][0] + h[2][0]) / 2, o = (m = (f = (h[1][1] + h[2][1]) / 2) + y) + 5, i = "center") : "rightTop" === l ? (p = "horizontal" === e ? h[3][0] : h[1][0], f = "horizontal" === e ? h[3][1] : h[1][1], "horizontal" === e ? (o = (m = f - y) - 5, i = "center") : (r = (g = p + y) + 5, i = "top")) : "rightBottom" === l ? (p = h[2][0], f = h[2][1], "horizontal" === e ? (o = (m = f + y) + 5, i = "center") : (r = (g = p + y) + 5, i = "bottom")) : "leftTop" === l ? (p = h[0][0], f = "horizontal" === e ? h[0][1] : h[1][1], "horizontal" === e ? (o = (m = f - y) - 5, i = "center") : (r = (g = p - y) - 5, i = "right")) : "leftBottom" === l ? (p = "horizontal" === e ? h[1][0] : h[3][0], f = "horizontal" === e ? h[1][1] : h[2][1], "horizontal" === e ? (o = (m = f + y) + 5, i = "center") : (r = (g = p - y) - 5, i = "right")) : (p = (h[1][0] + h[2][0]) / 2, f = (h[1][1] + h[2][1]) / 2, "horizontal" === e ? (o = (m = f + y) + 5, i = "center") : (r = (g = p + y) + 5, i = "left")), "horizontal" === e ? r = g = p : o = m = f, a = [[p, f], [g, m]]
                        }
                        c.label = {linePoints: a, x: r, y: o, verticalAlign: "middle", textAlign: i, inside: d}
                    }))
                }(n)
            }))
        }

        var TO = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n._dataGroup = new xo, n._initialized = !1, n
            }

            return G(e, t), e.prototype.init = function () {
                this.group.add(this._dataGroup)
            }, e.prototype.render = function (t, e, n, i) {
                this._progressiveEls = null;
                var r = this._dataGroup, o = t.getData(), a = this._data, s = t.coordinateSystem, l = s.dimensions,
                    u = AO(t);
                if (o.diff(a).add((function (t) {
                    bO(SO(o, r, t, l, s), o, t, u)
                })).update((function (e, n) {
                    var i = a.getItemGraphicEl(n), r = xO(o, e, l, s);
                    o.setItemGraphicEl(e, i), ju(i, {shape: {points: r}}, t, e), Ju(i), bO(i, o, e, u)
                })).remove((function (t) {
                    var e = a.getItemGraphicEl(t);
                    r.remove(e)
                })).execute(), !this._initialized) {
                    this._initialized = !0;
                    var c = function (t, e, n) {
                        var i = t.model, r = t.getRect(),
                            o = new Al({shape: {x: r.x, y: r.y, width: r.width, height: r.height}}),
                            a = "horizontal" === i.get("layout") ? "width" : "height";
                        return o.setShape(a, 0), Xu(o, {shape: {width: r.width, height: r.height}}, e, n), o
                    }(s, t, (function () {
                        setTimeout((function () {
                            r.removeClipPath()
                        }))
                    }));
                    r.setClipPath(c)
                }
                this._data = o
            }, e.prototype.incrementalPrepareRender = function (t, e, n) {
                this._initialized = !0, this._data = null, this._dataGroup.removeAll()
            }, e.prototype.incrementalRender = function (t, e, n) {
                for (var i = e.getData(), r = e.coordinateSystem, o = r.dimensions, a = AO(e), s = this._progressiveEls = [], l = t.start; l < t.end; l++) {
                    var u = SO(i, this._dataGroup, l, o, r);
                    u.incremental = !0, bO(u, i, l, a), s.push(u)
                }
            }, e.prototype.remove = function () {
                this._dataGroup && this._dataGroup.removeAll(), this._data = null
            }, e.type = "parallel", e
        }(jm);

        function xO(t, e, n, i) {
            for (var r, o = [], a = 0; a < n.length; a++) {
                var s = n[a], l = t.get(t.mapDimension(s), e);
                r = l, ("category" === i.getAxis(s).type ? null == r : null == r || isNaN(r)) || o.push(i.dataToPoint(l, s))
            }
            return o
        }

        function SO(t, e, n, i, r) {
            var o = xO(t, n, i, r), a = new Pg({shape: {points: o}, z2: 10});
            return e.add(a), t.setItemGraphicEl(n, a), a
        }

        function AO(t) {
            var e = t.get("smooth", !0);
            return !0 === e && (e = .3), Lt(e = Yo(e)) && (e = 0), {smooth: e}
        }

        function bO(t, e, n, i) {
            t.useStyle(e.getItemVisual(n, "style")), t.style.fill = null, t.setShape("smooth", i.smooth);
            var r = e.getItemModel(n), o = r.getModel("emphasis");
            Fu(t, r, "lineStyle"), ku(t, o.get("focus"), o.get("blurScope"), o.get("disabled"))
        }

        const IO = TO;

        function EO(t) {
            var e = t.ecModel.getComponent("parallel", t.get("parallelIndex"));
            if (e) {
                var n = {};
                return mt(e.dimensions, (function (t) {
                    var e = +t.replace("dim", "");
                    n[t] = e
                })), n
            }
        }

        const CO = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.visualStyleAccessPath = "lineStyle", n.visualDrawType = "stroke", n
            }

            return G(e, t), e.prototype.getInitialData = function (t, e) {
                return GS(null, this, {useEncodeDefaulter: xt(EO, null, this)})
            }, e.prototype.getRawIndicesByActiveState = function (t) {
                var e = this.coordinateSystem, n = this.getData(), i = [];
                return e.eachActiveState(n, (function (e, r) {
                    t === e && i.push(n.getRawIndex(r))
                })), i
            }, e.type = "series.parallel", e.dependencies = ["parallel"], e.defaultOption = {
                z: 2,
                coordinateSystem: "parallel",
                parallelIndex: 0,
                label: {show: !1},
                inactiveOpacity: .05,
                activeOpacity: 1,
                lineStyle: {width: 1, opacity: .45, type: "solid"},
                emphasis: {label: {show: !1}},
                progressive: 500,
                smooth: !1,
                animationEasing: "linear"
            }, e
        }(kf);
        var DO = ["lineStyle", "opacity"];
        const wO = {
            seriesType: "parallel", reset: function (t, e) {
                var n = t.coordinateSystem, i = {
                    normal: t.get(["lineStyle", "opacity"]),
                    active: t.get("activeOpacity"),
                    inactive: t.get("inactiveOpacity")
                };
                return {
                    progress: function (t, e) {
                        n.eachActiveState(e, (function (t, n) {
                            var r = i[t];
                            if ("normal" === t && e.hasItemOption) {
                                var o = e.getItemModel(n).get(DO, !0);
                                null != o && (r = o)
                            }
                            e.ensureUniqueItemVisual(n, "style").opacity = r
                        }), t.start, t.end)
                    }
                }
            }
        };

        function MO(t) {
            !function (t) {
                if (t.parallel) return;
                var e = !1;
                mt(t.series, (function (t) {
                    t && "parallel" === t.type && (e = !0)
                })), e && (t.parallel = [{}])
            }(t), function (t) {
                var e = Jo(t.parallelAxis);
                mt(e, (function (e) {
                    if (Dt(e)) {
                        var n = e.parallelIndex || 0, i = Jo(t.parallel)[n];
                        i && i.parallelAxisDefault && ut(e, i.parallelAxisDefault, !1)
                    }
                }))
            }(t)
        }

        var NO = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                this._model = t, this._api = n, this._handlers || (this._handlers = {}, mt(OO, (function (t, e) {
                    n.getZr().on(e, this._handlers[e] = xt(t, this))
                }), this)), $m(this, "_throttledDispatchExpand", t.get("axisExpandRate"), "fixRate")
            }, e.prototype.dispose = function (t, e) {
                Jm(this, "_throttledDispatchExpand"), mt(this._handlers, (function (t, n) {
                    e.getZr().off(n, t)
                })), this._handlers = null
            }, e.prototype._throttledDispatchExpand = function (t) {
                this._dispatchExpand(t)
            }, e.prototype._dispatchExpand = function (t) {
                t && this._api.dispatchAction(ht({type: "parallelAxisExpand"}, t))
            }, e.type = "parallel", e
        }(Gf), OO = {
            mousedown: function (t) {
                LO(this, "click") && (this._mouseDownPoint = [t.offsetX, t.offsetY])
            }, mouseup: function (t) {
                var e = this._mouseDownPoint;
                if (LO(this, "click") && e) {
                    var n = [t.offsetX, t.offsetY];
                    if (Math.pow(e[0] - n[0], 2) + Math.pow(e[1] - n[1], 2) > 5) return;
                    var i = this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX, t.offsetY]);
                    "none" !== i.behavior && this._dispatchExpand({axisExpandWindow: i.axisExpandWindow})
                }
                this._mouseDownPoint = null
            }, mousemove: function (t) {
                if (!this._mouseDownPoint && LO(this, "mousemove")) {
                    var e = this._model, n = e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX, t.offsetY]),
                        i = n.behavior;
                    "jump" === i && this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")), this._throttledDispatchExpand("none" === i ? null : {
                        axisExpandWindow: n.axisExpandWindow,
                        animation: "jump" === i ? null : {duration: 0}
                    })
                }
            }
        };

        function LO(t, e) {
            var n = t._model;
            return n.get("axisExpandable") && n.get("axisExpandTriggerOn") === e
        }

        const RO = NO;
        const kO = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function () {
                t.prototype.init.apply(this, arguments), this.mergeOption({})
            }, e.prototype.mergeOption = function (t) {
                var e = this.option;
                t && ut(e, t, !0), this._initDimensions()
            }, e.prototype.contains = function (t, e) {
                var n = t.get("parallelIndex");
                return null != n && e.getComponent("parallel", n) === this
            }, e.prototype.setAxisExpand = function (t) {
                mt(["axisExpandable", "axisExpandCenter", "axisExpandCount", "axisExpandWidth", "axisExpandWindow"], (function (e) {
                    t.hasOwnProperty(e) && (this.option[e] = t[e])
                }), this)
            }, e.prototype._initDimensions = function () {
                var t = this.dimensions = [], e = this.parallelAxisIndex = [];
                mt(_t(this.ecModel.queryComponents({mainType: "parallelAxis"}), (function (t) {
                    return (t.get("parallelIndex") || 0) === this.componentIndex
                }), this), (function (n) {
                    t.push("dim" + n.get("dim")), e.push(n.componentIndex)
                }))
            }, e.type = "parallel", e.dependencies = ["parallelAxis"], e.layoutMode = "box", e.defaultOption = {
                z: 0,
                left: 80,
                top: 60,
                right: 80,
                bottom: 60,
                layout: "horizontal",
                axisExpandable: !1,
                axisExpandCenter: null,
                axisExpandCount: 0,
                axisExpandWidth: 50,
                axisExpandRate: 17,
                axisExpandDebounce: 50,
                axisExpandSlideTriggerArea: [-.15, .05, .4],
                axisExpandTriggerOn: "click",
                parallelAxisDefault: null
            }, e
        }(Fh);
        var PO = function (t) {
            function e(e, n, i, r, o) {
                var a = t.call(this, e, n, i) || this;
                return a.type = r || "value", a.axisIndex = o, a
            }

            return G(e, t), e.prototype.isHorizontal = function () {
                return "horizontal" !== this.coordinateSystem.getModel().get("layout")
            }, e
        }(sE);
        const GO = PO;

        function BO(t, e, n, i, r, o) {
            t = t || 0;
            var a = n[1] - n[0];
            if (null != r && (r = HO(r, [0, a])), null != o && (o = Math.max(o, null != r ? r : 0)), "all" === i) {
                var s = Math.abs(e[1] - e[0]);
                s = HO(s, [0, a]), r = o = HO(s, [r, o]), i = 0
            }
            e[0] = HO(e[0], n), e[1] = HO(e[1], n);
            var l = FO(e, i);
            e[i] += t;
            var u, c = r || 0, h = n.slice();
            return l.sign < 0 ? h[0] += c : h[1] -= c, e[i] = HO(e[i], h), u = FO(e, i), null != r && (u.sign !== l.sign || u.span < r) && (e[1 - i] = e[i] + l.sign * r), u = FO(e, i), null != o && u.span > o && (e[1 - i] = e[i] + u.sign * o), e
        }

        function FO(t, e) {
            var n = t[e] - t[1 - e];
            return {span: Math.abs(n), sign: n > 0 ? -1 : n < 0 ? 1 : e ? -1 : 1}
        }

        function HO(t, e) {
            return Math.min(null != e[1] ? e[1] : 1 / 0, Math.max(null != e[0] ? e[0] : -1 / 0, t))
        }

        var UO = mt, VO = Math.min, zO = Math.max, WO = Math.floor, YO = Math.ceil, qO = Mo, jO = Math.PI,
            XO = function () {
                function t(t, e, n) {
                    this.type = "parallel", this._axesMap = jt(), this._axesLayout = {}, this.dimensions = t.dimensions, this._model = t, this._init(t, e, n)
                }

                return t.prototype._init = function (t, e, n) {
                    var i = t.dimensions, r = t.parallelAxisIndex;
                    UO(i, (function (t, n) {
                        var i = r[n], o = e.getComponent("parallelAxis", i),
                            a = this._axesMap.set(t, new GO(t, GI(o), [0, 0], o.get("type"), i)),
                            s = "category" === a.type;
                        a.onBand = s && o.get("boundaryGap"), a.inverse = o.get("inverse"), o.axis = a, a.model = o, a.coordinateSystem = o.coordinateSystem = this
                    }), this)
                }, t.prototype.update = function (t, e) {
                    this._updateAxesFromSeries(this._model, t)
                }, t.prototype.containPoint = function (t) {
                    var e = this._makeLayoutInfo(), n = e.axisBase, i = e.layoutBase, r = e.pixelDimIndex, o = t[1 - r],
                        a = t[r];
                    return o >= n && o <= n + e.axisLength && a >= i && a <= i + e.layoutLength
                }, t.prototype.getModel = function () {
                    return this._model
                }, t.prototype._updateAxesFromSeries = function (t, e) {
                    e.eachSeries((function (n) {
                        if (t.contains(n, e)) {
                            var i = n.getData();
                            UO(this.dimensions, (function (t) {
                                var e = this._axesMap.get(t);
                                e.scale.unionExtentFromData(i, i.mapDimension(t)), PI(e.scale, e.model)
                            }), this)
                        }
                    }), this)
                }, t.prototype.resize = function (t, e) {
                    this._rect = Nh(t.getBoxLayoutParams(), {
                        width: e.getWidth(),
                        height: e.getHeight()
                    }), this._layoutAxes()
                }, t.prototype.getRect = function () {
                    return this._rect
                }, t.prototype._makeLayoutInfo = function () {
                    var t, e = this._model, n = this._rect, i = ["x", "y"], r = ["width", "height"],
                        o = e.get("layout"), a = "horizontal" === o ? 0 : 1, s = n[r[a]], l = [0, s],
                        u = this.dimensions.length, c = ZO(e.get("axisExpandWidth"), l),
                        h = ZO(e.get("axisExpandCount") || 0, [0, u]),
                        d = e.get("axisExpandable") && u > 3 && u > h && h > 1 && c > 0 && s > 0,
                        p = e.get("axisExpandWindow");
                    p ? (t = ZO(p[1] - p[0], l), p[1] = p[0] + t) : (t = ZO(c * (h - 1), l), (p = [c * (e.get("axisExpandCenter") || WO(u / 2)) - t / 2])[1] = p[0] + t);
                    var f = (s - t) / (u - h);
                    f < 3 && (f = 0);
                    var g = [WO(qO(p[0] / c, 1)) + 1, YO(qO(p[1] / c, 1)) - 1], m = f / c * p[0];
                    return {
                        layout: o,
                        pixelDimIndex: a,
                        layoutBase: n[i[a]],
                        layoutLength: s,
                        axisBase: n[i[1 - a]],
                        axisLength: n[r[1 - a]],
                        axisExpandable: d,
                        axisExpandWidth: c,
                        axisCollapseWidth: f,
                        axisExpandWindow: p,
                        axisCount: u,
                        winInnerIndices: g,
                        axisExpandWindow0Pos: m
                    }
                }, t.prototype._layoutAxes = function () {
                    var t = this._rect, e = this._axesMap, n = this.dimensions, i = this._makeLayoutInfo(),
                        r = i.layout;
                    e.each((function (t) {
                        var e = [0, i.axisLength], n = t.inverse ? 1 : 0;
                        t.setExtent(e[n], e[1 - n])
                    })), UO(n, (function (e, n) {
                        var o = (i.axisExpandable ? QO : KO)(n, i),
                            a = {horizontal: {x: o.position, y: i.axisLength}, vertical: {x: 0, y: o.position}},
                            s = {horizontal: jO / 2, vertical: 0}, l = [a[r].x + t.x, a[r].y + t.y], u = s[r],
                            c = [1, 0, 0, 1, 0, 0];
                        Ke(c, c, u), Ze(c, c, l), this._axesLayout[e] = {
                            position: l,
                            rotation: u,
                            transform: c,
                            axisNameAvailableWidth: o.axisNameAvailableWidth,
                            axisLabelShow: o.axisLabelShow,
                            nameTruncateMaxWidth: o.nameTruncateMaxWidth,
                            tickDirection: 1,
                            labelDirection: 1
                        }
                    }), this)
                }, t.prototype.getAxis = function (t) {
                    return this._axesMap.get(t)
                }, t.prototype.dataToPoint = function (t, e) {
                    return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t), e)
                }, t.prototype.eachActiveState = function (t, e, n, i) {
                    null == n && (n = 0), null == i && (i = t.count());
                    var r = this._axesMap, o = this.dimensions, a = [], s = [];
                    mt(o, (function (e) {
                        a.push(t.mapDimension(e)), s.push(r.get(e).model)
                    }));
                    for (var l = this.hasAxisBrushed(), u = n; u < i; u++) {
                        var c = void 0;
                        if (l) {
                            c = "active";
                            for (var h = t.getValues(a, u), d = 0, p = o.length; d < p; d++) {
                                if ("inactive" === s[d].getActiveState(h[d])) {
                                    c = "inactive";
                                    break
                                }
                            }
                        } else c = "normal";
                        e(c, u)
                    }
                }, t.prototype.hasAxisBrushed = function () {
                    for (var t = this.dimensions, e = this._axesMap, n = !1, i = 0, r = t.length; i < r; i++) "normal" !== e.get(t[i]).model.getActiveState() && (n = !0);
                    return n
                }, t.prototype.axisCoordToPoint = function (t, e) {
                    return Em([t, 0], this._axesLayout[e].transform)
                }, t.prototype.getAxisLayout = function (t) {
                    return lt(this._axesLayout[t])
                }, t.prototype.getSlidedAxisExpandWindow = function (t) {
                    var e = this._makeLayoutInfo(), n = e.pixelDimIndex, i = e.axisExpandWindow.slice(),
                        r = i[1] - i[0], o = [0, e.axisExpandWidth * (e.axisCount - 1)];
                    if (!this.containPoint(t)) return {behavior: "none", axisExpandWindow: i};
                    var a, s = t[n] - e.layoutBase - e.axisExpandWindow0Pos, l = "slide", u = e.axisCollapseWidth,
                        c = this._model.get("axisExpandSlideTriggerArea"), h = null != c[0];
                    if (u) h && u && s < r * c[0] ? (l = "jump", a = s - r * c[2]) : h && u && s > r * (1 - c[0]) ? (l = "jump", a = s - r * (1 - c[2])) : (a = s - r * c[1]) >= 0 && (a = s - r * (1 - c[1])) <= 0 && (a = 0), (a *= e.axisExpandWidth / u) ? BO(a, i, o, "all") : l = "none"; else {
                        var d = i[1] - i[0];
                        (i = [zO(0, o[1] * s / d - d / 2)])[1] = VO(o[1], i[0] + d), i[0] = i[1] - d
                    }
                    return {axisExpandWindow: i, behavior: l}
                }, t
            }();

        function ZO(t, e) {
            return VO(zO(t, e[0]), e[1])
        }

        function KO(t, e) {
            var n = e.layoutLength / (e.axisCount - 1);
            return {position: n * t, axisNameAvailableWidth: n, axisLabelShow: !0}
        }

        function QO(t, e) {
            var n, i, r = e.layoutLength, o = e.axisExpandWidth, a = e.axisCount, s = e.axisCollapseWidth,
                l = e.winInnerIndices, u = s, c = !1;
            return t < l[0] ? (n = t * s, i = s) : t <= l[1] ? (n = e.axisExpandWindow0Pos + t * o - e.axisExpandWindow[0], u = o, c = !0) : (n = r - (a - 1 - t) * s, i = s), {
                position: n,
                axisNameAvailableWidth: u,
                axisLabelShow: c,
                nameTruncateMaxWidth: i
            }
        }

        const $O = XO;
        const JO = {
            create: function (t, e) {
                var n = [];
                return t.eachComponent("parallel", (function (i, r) {
                    var o = new $O(i, t, e);
                    o.name = "parallel_" + r, o.resize(i, e), i.coordinateSystem = o, o.model = i, n.push(o)
                })), t.eachSeries((function (t) {
                    if ("parallel" === t.get("coordinateSystem")) {
                        var e = t.getReferringComponents("parallel", ga).models[0];
                        t.coordinateSystem = e.coordinateSystem
                    }
                })), n
            }
        };
        var tL = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.activeIntervals = [], n
            }

            return G(e, t), e.prototype.getAreaSelectStyle = function () {
                return Na([["fill", "color"], ["lineWidth", "borderWidth"], ["stroke", "borderColor"], ["width", "width"], ["opacity", "opacity"]])(this.getModel("areaSelectStyle"))
            }, e.prototype.setActiveIntervals = function (t) {
                var e = this.activeIntervals = lt(t);
                if (e) for (var n = e.length - 1; n >= 0; n--) No(e[n])
            }, e.prototype.getActiveState = function (t) {
                var e = this.activeIntervals;
                if (!e.length) return "normal";
                if (null == t || isNaN(+t)) return "inactive";
                if (1 === e.length) {
                    var n = e[0];
                    if (n[0] <= t && t <= n[1]) return "active"
                } else for (var i = 0, r = e.length; i < r; i++) if (e[i][0] <= t && t <= e[i][1]) return "active";
                return "inactive"
            }, e
        }(Fh);
        ft(tL, Gb);
        const eL = tL;
        var nL = !0, iL = Math.min, rL = Math.max, oL = Math.pow, aL = 1e4, sL = 6, lL = 6, uL = "globalPan",
            cL = {w: [0, 0], e: [0, 1], n: [1, 0], s: [1, 1]},
            hL = {w: "ew", e: "ew", n: "ns", s: "ns", ne: "nesw", sw: "nesw", nw: "nwse", se: "nwse"}, dL = {
                brushStyle: {lineWidth: 2, stroke: "rgba(210,219,238,0.3)", fill: "#D2DBEE"},
                transformable: !0,
                brushMode: "single",
                removeOnClick: !1
            }, pL = 0, fL = function (t) {
                function e(e) {
                    var n = t.call(this) || this;
                    return n._track = [], n._covers = [], n._handlers = {}, n._zr = e, n.group = new xo, n._uid = "brushController_" + pL++, mt(UL, (function (t, e) {
                        this._handlers[e] = xt(t, this)
                    }), n), n
                }

                return G(e, t), e.prototype.enableBrush = function (t) {
                    return this._brushType && this._doDisableBrush(), t.brushType && this._doEnableBrush(t), this
                }, e.prototype._doEnableBrush = function (t) {
                    var e = this._zr;
                    this._enableGlobalPan || function (t, e, n) {
                        mC(t)[e] = n
                    }(e, uL, this._uid), mt(this._handlers, (function (t, n) {
                        e.on(n, t)
                    })), this._brushType = t.brushType, this._brushOption = ut(lt(dL), t, !0)
                }, e.prototype._doDisableBrush = function () {
                    var t = this._zr;
                    !function (t, e, n) {
                        var i = mC(t);
                        i[e] === n && (i[e] = null)
                    }(t, uL, this._uid), mt(this._handlers, (function (e, n) {
                        t.off(n, e)
                    })), this._brushType = this._brushOption = null
                }, e.prototype.setPanels = function (t) {
                    if (t && t.length) {
                        var e = this._panels = {};
                        mt(t, (function (t) {
                            e[t.panelId] = lt(t)
                        }))
                    } else this._panels = null;
                    return this
                }, e.prototype.mount = function (t) {
                    t = t || {}, this._enableGlobalPan = t.enableGlobalPan;
                    var e = this.group;
                    return this._zr.add(e), e.attr({
                        x: t.x || 0,
                        y: t.y || 0,
                        rotation: t.rotation || 0,
                        scaleX: t.scaleX || 1,
                        scaleY: t.scaleY || 1
                    }), this._transform = e.getLocalTransform(), this
                }, e.prototype.updateCovers = function (t) {
                    t = yt(t, (function (t) {
                        return ut(lt(dL), t, !0)
                    }));
                    var e = "\0-brush-index-", n = this._covers, i = this._covers = [], r = this, o = this._creatingCover;
                    return new iS(n, t, (function (t, e) {
                        return a(t.__brushOption, e)
                    }), a).add(s).update(s).remove((function (t) {
                        n[t] !== o && r.group.remove(n[t])
                    })).execute(), this;

                    function a(t, n) {
                        return (null != t.id ? t.id : e + n) + "-" + t.brushType
                    }

                    function s(e, a) {
                        var s = t[e];
                        if (null != a && n[a] === o) i[e] = n[a]; else {
                            var l = i[e] = null != a ? (n[a].__brushOption = s, n[a]) : mL(r, gL(r, s));
                            _L(r, l)
                        }
                    }
                }, e.prototype.unmount = function () {
                    return this.enableBrush(!1), AL(this), this._zr.remove(this.group), this
                }, e.prototype.dispose = function () {
                    this.unmount(), this.off()
                }, e
            }(Se);

        function gL(t, e) {
            var n = zL[e.brushType].createCover(t, e);
            return n.__brushOption = e, vL(n, e), t.group.add(n), n
        }

        function mL(t, e) {
            var n = TL(e);
            return n.endCreating && (n.endCreating(t, e), vL(e, e.__brushOption)), e
        }

        function yL(t, e) {
            var n = e.__brushOption;
            TL(e).updateCoverShape(t, e, n.range, n)
        }

        function vL(t, e) {
            var n = e.z;
            null == n && (n = aL), t.traverse((function (t) {
                t.z = n, t.z2 = n
            }))
        }

        function _L(t, e) {
            TL(e).updateCommon(t, e), yL(t, e)
        }

        function TL(t) {
            return zL[t.__brushOption.brushType]
        }

        function xL(t, e, n) {
            var i, r = t._panels;
            if (!r) return nL;
            var o = t._transform;
            return mt(r, (function (t) {
                t.isTargetByCursor(e, n, o) && (i = t)
            })), i
        }

        function SL(t, e) {
            var n = t._panels;
            if (!n) return nL;
            var i = e.__brushOption.panelId;
            return null != i ? n[i] : nL
        }

        function AL(t) {
            var e = t._covers, n = e.length;
            return mt(e, (function (e) {
                t.group.remove(e)
            }), t), e.length = 0, !!n
        }

        function bL(t, e) {
            var n = yt(t._covers, (function (t) {
                var e = t.__brushOption, n = lt(e.range);
                return {brushType: e.brushType, panelId: e.panelId, range: n}
            }));
            t.trigger("brush", {areas: n, isEnd: !!e.isEnd, removeOnClick: !!e.removeOnClick})
        }

        function IL(t) {
            var e = t.length - 1;
            return e < 0 && (e = 0), [t[0], t[e]]
        }

        function EL(t, e, n, i) {
            var r = new xo;
            return r.add(new Al({
                name: "main",
                style: ML(n),
                silent: !0,
                draggable: !0,
                cursor: "move",
                drift: St(LL, t, e, r, ["n", "s", "w", "e"]),
                ondragend: St(bL, e, {isEnd: !0})
            })), mt(i, (function (n) {
                r.add(new Al({
                    name: n.join(""),
                    style: {opacity: 0},
                    draggable: !0,
                    silent: !0,
                    invisible: !0,
                    drift: St(LL, t, e, r, n),
                    ondragend: St(bL, e, {isEnd: !0})
                }))
            })), r
        }

        function CL(t, e, n, i) {
            var r = i.brushStyle.lineWidth || 0, o = rL(r, lL), a = n[0][0], s = n[1][0], l = a - r / 2, u = s - r / 2,
                c = n[0][1], h = n[1][1], d = c - o + r / 2, p = h - o + r / 2, f = c - a, g = h - s, m = f + r,
                y = g + r;
            wL(t, e, "main", a, s, f, g), i.transformable && (wL(t, e, "w", l, u, o, y), wL(t, e, "e", d, u, o, y), wL(t, e, "n", l, u, m, o), wL(t, e, "s", l, p, m, o), wL(t, e, "nw", l, u, o, o), wL(t, e, "ne", d, u, o, o), wL(t, e, "sw", l, p, o, o), wL(t, e, "se", d, p, o, o))
        }

        function DL(t, e) {
            var n = e.__brushOption, i = n.transformable, r = e.childAt(0);
            r.useStyle(ML(n)), r.attr({
                silent: !i,
                cursor: i ? "move" : "default"
            }), mt([["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]], (function (n) {
                var r = e.childOfName(n.join("")), o = 1 === n.length ? OL(t, n[0]) : function (t, e) {
                    var n = [OL(t, e[0]), OL(t, e[1])];
                    return ("e" === n[0] || "w" === n[0]) && n.reverse(), n.join("")
                }(t, n);
                r && r.attr({silent: !i, invisible: !i, cursor: i ? hL[o] + "-resize" : null})
            }))
        }

        function wL(t, e, n, i, r, o, a) {
            var s = e.childOfName(n);
            s && s.setShape(function (t) {
                var e = iL(t[0][0], t[1][0]), n = iL(t[0][1], t[1][1]), i = rL(t[0][0], t[1][0]),
                    r = rL(t[0][1], t[1][1]);
                return {x: e, y: n, width: i - e, height: r - n}
            }(PL(t, e, [[i, r], [i + o, r + a]])))
        }

        function ML(t) {
            return dt({strokeNoScale: !0}, t.brushStyle)
        }

        function NL(t, e, n, i) {
            var r = [iL(t, n), iL(e, i)], o = [rL(t, n), rL(e, i)];
            return [[r[0], o[0]], [r[1], o[1]]]
        }

        function OL(t, e) {
            var n = Cm({w: "left", e: "right", n: "top", s: "bottom"}[e], function (t) {
                return Im(t.group)
            }(t));
            return {left: "w", right: "e", top: "n", bottom: "s"}[n]
        }

        function LL(t, e, n, i, r, o) {
            var a = n.__brushOption, s = t.toRectRange(a.range), l = kL(e, r, o);
            mt(i, (function (t) {
                var e = cL[t];
                s[e[0]][e[1]] += l[e[0]]
            })), a.range = t.fromRectRange(NL(s[0][0], s[1][0], s[0][1], s[1][1])), _L(e, n), bL(e, {isEnd: !1})
        }

        function RL(t, e, n, i) {
            var r = e.__brushOption.range, o = kL(t, n, i);
            mt(r, (function (t) {
                t[0] += o[0], t[1] += o[1]
            })), _L(t, e), bL(t, {isEnd: !1})
        }

        function kL(t, e, n) {
            var i = t.group, r = i.transformCoordToLocal(e, n), o = i.transformCoordToLocal(0, 0);
            return [r[0] - o[0], r[1] - o[1]]
        }

        function PL(t, e, n) {
            var i = SL(t, e);
            return i && i !== nL ? i.clipPath(n, t._transform) : lt(n)
        }

        function GL(t) {
            var e = t.event;
            e.preventDefault && e.preventDefault()
        }

        function BL(t, e, n) {
            return t.childOfName("main").contain(e, n)
        }

        function FL(t, e, n, i) {
            var r, o = t._creatingCover, a = t._creatingPanel, s = t._brushOption;
            if (t._track.push(n.slice()), function (t) {
                var e = t._track;
                if (!e.length) return !1;
                var n = e[e.length - 1], i = e[0], r = n[0] - i[0], o = n[1] - i[1];
                return oL(r * r + o * o, .5) > sL
            }(t) || o) {
                if (a && !o) {
                    "single" === s.brushMode && AL(t);
                    var l = lt(s);
                    l.brushType = HL(l.brushType, a), l.panelId = a === nL ? null : a.panelId, o = t._creatingCover = gL(t, l), t._covers.push(o)
                }
                if (o) {
                    var u = zL[HL(t._brushType, a)];
                    o.__brushOption.range = u.getCreatingRange(PL(t, o, t._track)), i && (mL(t, o), u.updateCommon(t, o)), yL(t, o), r = {isEnd: i}
                }
            } else i && "single" === s.brushMode && s.removeOnClick && xL(t, e, n) && AL(t) && (r = {
                isEnd: i,
                removeOnClick: !0
            });
            return r
        }

        function HL(t, e) {
            return "auto" === t ? e.defaultBrushType : t
        }

        var UL = {
            mousedown: function (t) {
                if (this._dragging) VL(this, t); else if (!t.target || !t.target.draggable) {
                    GL(t);
                    var e = this.group.transformCoordToLocal(t.offsetX, t.offsetY);
                    this._creatingCover = null, (this._creatingPanel = xL(this, t, e)) && (this._dragging = !0, this._track = [e.slice()])
                }
            }, mousemove: function (t) {
                var e = t.offsetX, n = t.offsetY, i = this.group.transformCoordToLocal(e, n);
                if (function (t, e, n) {
                    if (t._brushType && !function (t, e, n) {
                        var i = t._zr;
                        return e < 0 || e > i.getWidth() || n < 0 || n > i.getHeight()
                    }(t, e.offsetX, e.offsetY)) {
                        var i = t._zr, r = t._covers, o = xL(t, e, n);
                        if (!t._dragging) for (var a = 0; a < r.length; a++) {
                            var s = r[a].__brushOption;
                            if (o && (o === nL || s.panelId === o.panelId) && zL[s.brushType].contain(r[a], n[0], n[1])) return
                        }
                        o && i.setCursorStyle("crosshair")
                    }
                }(this, t, i), this._dragging) {
                    GL(t);
                    var r = FL(this, t, i, !1);
                    r && bL(this, r)
                }
            }, mouseup: function (t) {
                VL(this, t)
            }
        };

        function VL(t, e) {
            if (t._dragging) {
                GL(e);
                var n = e.offsetX, i = e.offsetY, r = t.group.transformCoordToLocal(n, i), o = FL(t, e, r, !0);
                t._dragging = !1, t._track = [], t._creatingCover = null, o && bL(t, o)
            }
        }

        var zL = {
            lineX: WL(0), lineY: WL(1), rect: {
                createCover: function (t, e) {
                    function n(t) {
                        return t
                    }

                    return EL({
                        toRectRange: n,
                        fromRectRange: n
                    }, t, e, [["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]])
                }, getCreatingRange: function (t) {
                    var e = IL(t);
                    return NL(e[1][0], e[1][1], e[0][0], e[0][1])
                }, updateCoverShape: function (t, e, n, i) {
                    CL(t, e, n, i)
                }, updateCommon: DL, contain: BL
            }, polygon: {
                createCover: function (t, e) {
                    var n = new xo;
                    return n.add(new Pg({name: "main", style: ML(e), silent: !0})), n
                }, getCreatingRange: function (t) {
                    return t
                }, endCreating: function (t, e) {
                    e.remove(e.childAt(0)), e.add(new Lg({
                        name: "main",
                        draggable: !0,
                        drift: St(RL, t, e),
                        ondragend: St(bL, t, {isEnd: !0})
                    }))
                }, updateCoverShape: function (t, e, n, i) {
                    e.childAt(0).setShape({points: PL(t, e, n)})
                }, updateCommon: DL, contain: BL
            }
        };

        function WL(t) {
            return {
                createCover: function (e, n) {
                    return EL({
                        toRectRange: function (e) {
                            var n = [e, [0, 100]];
                            return t && n.reverse(), n
                        }, fromRectRange: function (e) {
                            return e[t]
                        }
                    }, e, n, [[["w"], ["e"]], [["n"], ["s"]]][t])
                }, getCreatingRange: function (e) {
                    var n = IL(e);
                    return [iL(n[0][t], n[1][t]), rL(n[0][t], n[1][t])]
                }, updateCoverShape: function (e, n, i, r) {
                    var o, a = SL(e, n);
                    if (a !== nL && a.getLinearBrushOtherExtent) o = a.getLinearBrushOtherExtent(t); else {
                        var s = e._zr;
                        o = [0, [s.getWidth(), s.getHeight()][1 - t]]
                    }
                    var l = [i, o];
                    t && l.reverse(), CL(e, n, l, r)
                }, updateCommon: DL, contain: BL
            }
        }

        const YL = fL;

        function qL(t) {
            return t = ZL(t), function (e) {
                return Mm(e, t)
            }
        }

        function jL(t, e) {
            return t = ZL(t), function (n) {
                var i = null != e ? e : n, r = i ? t.width : t.height, o = i ? t.x : t.y;
                return [o, o + (r || 0)]
            }
        }

        function XL(t, e, n) {
            var i = ZL(t);
            return function (t, r) {
                return i.contain(r[0], r[1]) && !EC(t, e, n)
            }
        }

        function ZL(t) {
            return hn.create(t)
        }

        var KL = ["axisLine", "axisTickLabel", "axisName"], QL = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function (e, n) {
                t.prototype.init.apply(this, arguments), (this._brushController = new YL(n.getZr())).on("brush", xt(this._onBrush, this))
            }, e.prototype.render = function (t, e, n, i) {
                if (!function (t, e, n) {
                    return n && "axisAreaSelect" === n.type && e.findComponents({
                        mainType: "parallelAxis",
                        query: n
                    })[0] === t
                }(t, e, i)) {
                    this.axisModel = t, this.api = n, this.group.removeAll();
                    var r = this._axisGroup;
                    if (this._axisGroup = new xo, this.group.add(this._axisGroup), t.get("show")) {
                        var o = function (t, e) {
                                return e.getComponent("parallel", t.get("parallelIndex"))
                            }(t, e), a = o.coordinateSystem, s = t.getAreaSelectStyle(), l = s.width, u = t.axis.dim,
                            c = ht({strokeContainThreshold: l}, a.getAxisLayout(u)), h = new CE(t, c);
                        mt(KL, h.add, h), this._axisGroup.add(h.getGroup()), this._refreshBrushController(c, s, t, o, l, n), wm(r, this._axisGroup, t)
                    }
                }
            }, e.prototype._refreshBrushController = function (t, e, n, i, r, o) {
                var a = n.axis.getExtent(), s = a[1] - a[0], l = Math.min(30, .1 * Math.abs(s)),
                    u = hn.create({x: a[0], y: -r / 2, width: s, height: r});
                u.x -= l, u.width += 2 * l, this._brushController.mount({
                    enableGlobalPan: !0,
                    rotation: t.rotation,
                    x: t.position[0],
                    y: t.position[1]
                }).setPanels([{
                    panelId: "pl",
                    clipPath: qL(u),
                    isTargetByCursor: XL(u, o, i),
                    getLinearBrushOtherExtent: jL(u, 0)
                }]).enableBrush({brushType: "lineX", brushStyle: e, removeOnClick: !0}).updateCovers(function (t) {
                    var e = t.axis;
                    return yt(t.activeIntervals, (function (t) {
                        return {
                            brushType: "lineX",
                            panelId: "pl",
                            range: [e.dataToCoord(t[0], !0), e.dataToCoord(t[1], !0)]
                        }
                    }))
                }(n))
            }, e.prototype._onBrush = function (t) {
                var e = t.areas, n = this.axisModel, i = n.axis, r = yt(e, (function (t) {
                    return [i.coordToData(t.range[0], !0), i.coordToData(t.range[1], !0)]
                }));
                (!n.option.realtime === t.isEnd || t.removeOnClick) && this.api.dispatchAction({
                    type: "axisAreaSelect",
                    parallelAxisId: n.id,
                    intervals: r
                })
            }, e.prototype.dispose = function () {
                this._brushController.dispose()
            }, e.type = "parallelAxis", e
        }(Gf);
        const $L = QL;
        var JL = {type: "axisAreaSelect", event: "axisAreaSelected"};
        var tR = {
            type: "value",
            areaSelectStyle: {
                width: 20,
                borderWidth: 1,
                borderColor: "rgba(160,197,232)",
                color: "rgba(160,197,232)",
                opacity: .3
            },
            realtime: !0,
            z: 10
        };

        function eR(t) {
            t.registerComponentView(RO), t.registerComponentModel(kO), t.registerCoordinateSystem("parallel", JO), t.registerPreprocessor(MO), t.registerComponentModel(eL), t.registerComponentView($L), jb(t, "parallel", eL, tR), function (t) {
                t.registerAction(JL, (function (t, e) {
                    e.eachComponent({mainType: "parallelAxis", query: t}, (function (e) {
                        e.axis.model.setActiveIntervals(t.intervals)
                    }))
                })), t.registerAction("parallelAxisExpand", (function (t, e) {
                    e.eachComponent({mainType: "parallel", query: t}, (function (e) {
                        e.setAxisExpand(t)
                    }))
                }))
            }(t)
        }

        var nR = function () {
            this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.cpx1 = 0, this.cpy1 = 0, this.cpx2 = 0, this.cpy2 = 0, this.extent = 0
        }, iR = function (t) {
            function e(e) {
                return t.call(this, e) || this
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new nR
            }, e.prototype.buildPath = function (t, e) {
                var n = e.extent;
                t.moveTo(e.x1, e.y1), t.bezierCurveTo(e.cpx1, e.cpy1, e.cpx2, e.cpy2, e.x2, e.y2), "vertical" === e.orient ? (t.lineTo(e.x2 + n, e.y2), t.bezierCurveTo(e.cpx2 + n, e.cpy2, e.cpx1 + n, e.cpy1, e.x1 + n, e.y1)) : (t.lineTo(e.x2, e.y2 + n), t.bezierCurveTo(e.cpx2, e.cpy2 + n, e.cpx1, e.cpy1 + n, e.x1, e.y1 + n)), t.closePath()
            }, e.prototype.highlight = function () {
                xu(this)
            }, e.prototype.downplay = function () {
                Su(this)
            }, e
        }(ll), rR = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n._focusAdjacencyDisabled = !1, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i = this, r = t.getGraph(), o = this.group, a = t.layoutInfo, s = a.width, l = a.height,
                    u = t.getData(), c = t.getData("edge"), h = t.get("orient");
                this._model = t, o.removeAll(), o.x = a.x, o.y = a.y, r.eachEdge((function (e) {
                    var n = new iR, i = Hl(n);
                    i.dataIndex = e.dataIndex, i.seriesIndex = t.seriesIndex, i.dataType = "edge";
                    var r, a, u, d, p, f, g, m, y = e.getModel(), v = y.getModel("lineStyle"), _ = v.get("curveness"),
                        T = e.node1.getLayout(), x = e.node1.getModel(), S = x.get("localX"), A = x.get("localY"),
                        b = e.node2.getLayout(), I = e.node2.getModel(), E = I.get("localX"), C = I.get("localY"),
                        D = e.getLayout();
                    n.shape.extent = Math.max(1, D.dy), n.shape.orient = h, "vertical" === h ? (r = (null != S ? S * s : T.x) + D.sy, a = (null != A ? A * l : T.y) + T.dy, u = (null != E ? E * s : b.x) + D.ty, p = r, f = a * (1 - _) + (d = null != C ? C * l : b.y) * _, g = u, m = a * _ + d * (1 - _)) : (r = (null != S ? S * s : T.x) + T.dx, a = (null != A ? A * l : T.y) + D.sy, p = r * (1 - _) + (u = null != E ? E * s : b.x) * _, f = a, g = r * _ + u * (1 - _), m = d = (null != C ? C * l : b.y) + D.ty), n.setShape({
                        x1: r,
                        y1: a,
                        x2: u,
                        y2: d,
                        cpx1: p,
                        cpy1: f,
                        cpx2: g,
                        cpy2: m
                    }), n.useStyle(v.getItemStyle()), oR(n.style, h, e);
                    var w = "" + y.get("value"), M = rc(y, "edgeLabel");
                    ic(n, M, {
                        labelFetcher: {
                            getFormattedLabel: function (e, n, i, r, o, a) {
                                return t.getFormattedLabel(e, n, "edge", r, Pt(o, M.normal && M.normal.get("formatter"), w), a)
                            }
                        }, labelDataIndex: e.dataIndex, defaultText: w
                    }), n.setTextConfig({position: "inside"});
                    var N = y.getModel("emphasis");
                    Fu(n, y, "lineStyle", (function (t) {
                        var n = t.getItemStyle();
                        return oR(n, h, e), n
                    })), o.add(n), c.setItemGraphicEl(e.dataIndex, n);
                    var O = N.get("focus");
                    ku(n, "adjacency" === O ? e.getAdjacentDataIndices() : "trajectory" === O ? e.getTrajectoryDataIndices() : O, N.get("blurScope"), N.get("disabled"))
                })), r.eachNode((function (e) {
                    var n = e.getLayout(), i = e.getModel(), r = i.get("localX"), a = i.get("localY"),
                        c = i.getModel("emphasis"), h = new Al({
                            shape: {
                                x: null != r ? r * s : n.x,
                                y: null != a ? a * l : n.y,
                                width: n.dx,
                                height: n.dy
                            }, style: i.getModel("itemStyle").getItemStyle(), z2: 10
                        });
                    ic(h, rc(i), {
                        labelFetcher: {
                            getFormattedLabel: function (e, n) {
                                return t.getFormattedLabel(e, n, "node")
                            }
                        }, labelDataIndex: e.dataIndex, defaultText: e.id
                    }), h.disableLabelAnimation = !0, h.setStyle("fill", e.getVisual("color")), h.setStyle("decal", e.getVisual("style").decal), Fu(h, i), o.add(h), u.setItemGraphicEl(e.dataIndex, h), Hl(h).dataType = "node";
                    var d = c.get("focus");
                    ku(h, "adjacency" === d ? e.getAdjacentDataIndices() : "trajectory" === d ? e.getTrajectoryDataIndices() : d, c.get("blurScope"), c.get("disabled"))
                })), u.eachItemGraphicEl((function (e, r) {
                    u.getItemModel(r).get("draggable") && (e.drift = function (e, o) {
                        i._focusAdjacencyDisabled = !0, this.shape.x += e, this.shape.y += o, this.dirty(), n.dispatchAction({
                            type: "dragNode",
                            seriesId: t.id,
                            dataIndex: u.getRawIndex(r),
                            localX: this.shape.x / s,
                            localY: this.shape.y / l
                        })
                    }, e.ondragend = function () {
                        i._focusAdjacencyDisabled = !1
                    }, e.draggable = !0, e.cursor = "move")
                })), !this._data && t.isAnimationEnabled() && o.setClipPath(function (t, e, n) {
                    var i = new Al({shape: {x: t.x - 10, y: t.y - 10, width: 0, height: t.height + 20}});
                    return Xu(i, {shape: {width: t.width + 20}}, e, n), i
                }(o.getBoundingRect(), t, (function () {
                    o.removeClipPath()
                }))), this._data = t.getData()
            }, e.prototype.dispose = function () {
            }, e.type = "sankey", e
        }(jm);

        function oR(t, e, n) {
            switch (t.fill) {
                case"source":
                    t.fill = n.node1.getVisual("color"), t.decal = n.node1.getVisual("style").decal;
                    break;
                case"target":
                    t.fill = n.node2.getVisual("color"), t.decal = n.node2.getVisual("style").decal;
                    break;
                case"gradient":
                    var i = n.node1.getVisual("color"), r = n.node2.getVisual("color");
                    It(i) && It(r) && (t.fill = new $g(0, 0, +("horizontal" === e), +("vertical" === e), [{
                        color: i,
                        offset: 0
                    }, {color: r, offset: 1}]))
            }
        }

        const aR = rR;
        var sR = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.getInitialData = function (t, e) {
                var n = t.edges || t.links, i = t.data || t.nodes, r = t.levels;
                this.levelModels = [];
                for (var o = this.levelModels, a = 0; a < r.length; a++) null != r[a].depth && r[a].depth >= 0 && (o[r[a].depth] = new wc(r[a], this, e));
                if (i && n) {
                    var s = iO(i, n, this, !0, (function (t, e) {
                        t.wrapMethod("getItemModel", (function (t, e) {
                            var n = t.parentModel, i = n.getData().getItemLayout(e);
                            if (i) {
                                var r = i.depth, o = n.levelModels[r];
                                o && (t.parentModel = o)
                            }
                            return t
                        })), e.wrapMethod("getItemModel", (function (t, e) {
                            var n = t.parentModel, i = n.getGraph().getEdgeByIndex(e).node1.getLayout();
                            if (i) {
                                var r = i.depth, o = n.levelModels[r];
                                o && (t.parentModel = o)
                            }
                            return t
                        }))
                    }));
                    return s.data
                }
            }, e.prototype.setNodePosition = function (t, e) {
                var n = (this.option.data || this.option.nodes)[t];
                n.localX = e[0], n.localY = e[1]
            }, e.prototype.getGraph = function () {
                return this.getData().graph
            }, e.prototype.getEdgeData = function () {
                return this.getGraph().edgeData
            }, e.prototype.formatTooltip = function (t, e, n) {
                function i(t) {
                    return isNaN(t) || null == t
                }

                if ("edge" === n) {
                    var r = this.getDataParams(t, n), o = r.data, a = r.value;
                    return hf("nameValue", {name: o.source + " -- " + o.target, value: a, noValue: i(a)})
                }
                var s = this.getGraph().getNodeByIndex(t).getLayout().value, l = this.getDataParams(t, n).data.name;
                return hf("nameValue", {name: null != l ? l + "" : null, value: s, noValue: i(s)})
            }, e.prototype.optionUpdated = function () {
            }, e.prototype.getDataParams = function (e, n) {
                var i = t.prototype.getDataParams.call(this, e, n);
                if (null == i.value && "node" === n) {
                    var r = this.getGraph().getNodeByIndex(e).getLayout().value;
                    i.value = r
                }
                return i
            }, e.type = "series.sankey", e.defaultOption = {
                z: 2,
                coordinateSystem: "view",
                left: "5%",
                top: "5%",
                right: "20%",
                bottom: "5%",
                orient: "horizontal",
                nodeWidth: 20,
                nodeGap: 8,
                draggable: !0,
                layoutIterations: 32,
                label: {show: !0, position: "right", fontSize: 12},
                edgeLabel: {show: !1, fontSize: 12},
                levels: [],
                nodeAlign: "justify",
                lineStyle: {color: "#314656", opacity: .2, curveness: .5},
                emphasis: {label: {show: !0}, lineStyle: {opacity: .5}},
                select: {itemStyle: {borderColor: "#212121"}},
                animationEasing: "linear",
                animationDuration: 1e3
            }, e
        }(kf);
        const lR = sR;

        function uR(t, e) {
            t.eachSeriesByType("sankey", (function (t) {
                var n = t.get("nodeWidth"), i = t.get("nodeGap"), r = function (t, e) {
                    return Nh(t.getBoxLayoutParams(), {width: e.getWidth(), height: e.getHeight()})
                }(t, e);
                t.layoutInfo = r;
                var o = r.width, a = r.height, s = t.getGraph(), l = s.nodes, u = s.edges;
                !function (t) {
                    mt(t, (function (t) {
                        var e = _R(t.outEdges, vR), n = _R(t.inEdges, vR), i = t.getValue() || 0, r = Math.max(e, n, i);
                        t.setLayout({value: r}, !0)
                    }))
                }(l), function (t, e, n, i, r, o, a, s, l) {
                    (function (t, e, n, i, r, o, a) {
                        for (var s = [], l = [], u = [], c = [], h = 0, d = 0; d < e.length; d++) s[d] = 1;
                        for (d = 0; d < t.length; d++) l[d] = t[d].inEdges.length, 0 === l[d] && u.push(t[d]);
                        var p = -1;
                        for (; u.length;) {
                            for (var f = 0; f < u.length; f++) {
                                var g = u[f], m = g.hostGraph.data.getRawDataItem(g.dataIndex),
                                    y = null != m.depth && m.depth >= 0;
                                y && m.depth > p && (p = m.depth), g.setLayout({depth: y ? m.depth : h}, !0), "vertical" === o ? g.setLayout({dy: n}, !0) : g.setLayout({dx: n}, !0);
                                for (var v = 0; v < g.outEdges.length; v++) {
                                    var _ = g.outEdges[v];
                                    s[e.indexOf(_)] = 0;
                                    var T = _.node2;
                                    0 == --l[t.indexOf(T)] && c.indexOf(T) < 0 && c.push(T)
                                }
                            }
                            ++h, u = c, c = []
                        }
                        for (d = 0; d < s.length; d++) if (1 === s[d]) throw new Error("Sankey is a DAG, the original data has cycle!");
                        var x = p > h - 1 ? p : h - 1;
                        a && "left" !== a && function (t, e, n, i) {
                            if ("right" === e) {
                                for (var r = [], o = t, a = 0; o.length;) {
                                    for (var s = 0; s < o.length; s++) {
                                        var l = o[s];
                                        l.setLayout({skNodeHeight: a}, !0);
                                        for (var u = 0; u < l.inEdges.length; u++) {
                                            var c = l.inEdges[u];
                                            r.indexOf(c.node1) < 0 && r.push(c.node1)
                                        }
                                    }
                                    o = r, r = [], ++a
                                }
                                mt(t, (function (t) {
                                    cR(t) || t.setLayout({depth: Math.max(0, i - t.getLayout().skNodeHeight)}, !0)
                                }))
                            } else "justify" === e && function (t, e) {
                                mt(t, (function (t) {
                                    cR(t) || t.outEdges.length || t.setLayout({depth: e}, !0)
                                }))
                            }(t, i)
                        }(t, a, 0, x);
                        var S = "vertical" === o ? (r - n) / x : (i - n) / x;
                        !function (t, e, n) {
                            mt(t, (function (t) {
                                var i = t.getLayout().depth * e;
                                "vertical" === n ? t.setLayout({y: i}, !0) : t.setLayout({x: i}, !0)
                            }))
                        }(t, S, o)
                    })(t, e, n, r, o, s, l), function (t, e, n, i, r, o, a) {
                        var s = function (t, e) {
                            var n = [], i = "vertical" === e ? "y" : "x", r = _a(t, (function (t) {
                                return t.getLayout()[i]
                            }));
                            return r.keys.sort((function (t, e) {
                                return t - e
                            })), mt(r.keys, (function (t) {
                                n.push(r.buckets.get(t))
                            })), n
                        }(t, a);
                        (function (t, e, n, i, r, o) {
                            var a = 1 / 0;
                            mt(t, (function (t) {
                                var e = t.length, s = 0;
                                mt(t, (function (t) {
                                    s += t.getLayout().value
                                }));
                                var l = "vertical" === o ? (i - (e - 1) * r) / s : (n - (e - 1) * r) / s;
                                l < a && (a = l)
                            })), mt(t, (function (t) {
                                mt(t, (function (t, e) {
                                    var n = t.getLayout().value * a;
                                    "vertical" === o ? (t.setLayout({x: e}, !0), t.setLayout({dx: n}, !0)) : (t.setLayout({y: e}, !0), t.setLayout({dy: n}, !0))
                                }))
                            })), mt(e, (function (t) {
                                var e = +t.getValue() * a;
                                t.setLayout({dy: e}, !0)
                            }))
                        })(s, e, n, i, r, a), hR(s, r, n, i, a);
                        for (var l = 1; o > 0; o--) dR(s, l *= .99, a), hR(s, r, n, i, a), TR(s, l, a), hR(s, r, n, i, a)
                    }(t, e, o, r, i, a, s), function (t, e) {
                        var n = "vertical" === e ? "x" : "y";
                        mt(t, (function (t) {
                            t.outEdges.sort((function (t, e) {
                                return t.node2.getLayout()[n] - e.node2.getLayout()[n]
                            })), t.inEdges.sort((function (t, e) {
                                return t.node1.getLayout()[n] - e.node1.getLayout()[n]
                            }))
                        })), mt(t, (function (t) {
                            var e = 0, n = 0;
                            mt(t.outEdges, (function (t) {
                                t.setLayout({sy: e}, !0), e += t.getLayout().dy
                            })), mt(t.inEdges, (function (t) {
                                t.setLayout({ty: n}, !0), n += t.getLayout().dy
                            }))
                        }))
                    }(t, s)
                }(l, u, n, i, o, a, 0 !== _t(l, (function (t) {
                    return 0 === t.getLayout().value
                })).length ? 0 : t.get("layoutIterations"), t.get("orient"), t.get("nodeAlign"))
            }))
        }

        function cR(t) {
            var e = t.hostGraph.data.getRawDataItem(t.dataIndex);
            return null != e.depth && e.depth >= 0
        }

        function hR(t, e, n, i, r) {
            var o = "vertical" === r ? "x" : "y";
            mt(t, (function (t) {
                var a, s, l;
                t.sort((function (t, e) {
                    return t.getLayout()[o] - e.getLayout()[o]
                }));
                for (var u = 0, c = t.length, h = "vertical" === r ? "dx" : "dy", d = 0; d < c; d++) (l = u - (s = t[d]).getLayout()[o]) > 0 && (a = s.getLayout()[o] + l, "vertical" === r ? s.setLayout({x: a}, !0) : s.setLayout({y: a}, !0)), u = s.getLayout()[o] + s.getLayout()[h] + e;
                if ((l = u - e - ("vertical" === r ? i : n)) > 0) {
                    a = s.getLayout()[o] - l, "vertical" === r ? s.setLayout({x: a}, !0) : s.setLayout({y: a}, !0), u = a;
                    for (d = c - 2; d >= 0; --d) (l = (s = t[d]).getLayout()[o] + s.getLayout()[h] + e - u) > 0 && (a = s.getLayout()[o] - l, "vertical" === r ? s.setLayout({x: a}, !0) : s.setLayout({y: a}, !0)), u = s.getLayout()[o]
                }
            }))
        }

        function dR(t, e, n) {
            mt(t.slice().reverse(), (function (t) {
                mt(t, (function (t) {
                    if (t.outEdges.length) {
                        var i = _R(t.outEdges, pR, n) / _R(t.outEdges, vR);
                        if (isNaN(i)) {
                            var r = t.outEdges.length;
                            i = r ? _R(t.outEdges, fR, n) / r : 0
                        }
                        if ("vertical" === n) {
                            var o = t.getLayout().x + (i - yR(t, n)) * e;
                            t.setLayout({x: o}, !0)
                        } else {
                            var a = t.getLayout().y + (i - yR(t, n)) * e;
                            t.setLayout({y: a}, !0)
                        }
                    }
                }))
            }))
        }

        function pR(t, e) {
            return yR(t.node2, e) * t.getValue()
        }

        function fR(t, e) {
            return yR(t.node2, e)
        }

        function gR(t, e) {
            return yR(t.node1, e) * t.getValue()
        }

        function mR(t, e) {
            return yR(t.node1, e)
        }

        function yR(t, e) {
            return "vertical" === e ? t.getLayout().x + t.getLayout().dx / 2 : t.getLayout().y + t.getLayout().dy / 2
        }

        function vR(t) {
            return t.getValue()
        }

        function _R(t, e, n) {
            for (var i = 0, r = t.length, o = -1; ++o < r;) {
                var a = +e(t[o], n);
                isNaN(a) || (i += a)
            }
            return i
        }

        function TR(t, e, n) {
            mt(t, (function (t) {
                mt(t, (function (t) {
                    if (t.inEdges.length) {
                        var i = _R(t.inEdges, gR, n) / _R(t.inEdges, vR);
                        if (isNaN(i)) {
                            var r = t.inEdges.length;
                            i = r ? _R(t.inEdges, mR, n) / r : 0
                        }
                        if ("vertical" === n) {
                            var o = t.getLayout().x + (i - yR(t, n)) * e;
                            t.setLayout({x: o}, !0)
                        } else {
                            var a = t.getLayout().y + (i - yR(t, n)) * e;
                            t.setLayout({y: a}, !0)
                        }
                    }
                }))
            }))
        }

        function xR(t) {
            t.eachSeriesByType("sankey", (function (t) {
                var e = t.getGraph(), n = e.nodes, i = e.edges;
                if (n.length) {
                    var r = 1 / 0, o = -1 / 0;
                    mt(n, (function (t) {
                        var e = t.getLayout().value;
                        e < r && (r = e), e > o && (o = e)
                    })), mt(n, (function (e) {
                        var n = new MM({
                            type: "color",
                            mappingMethod: "linear",
                            dataExtent: [r, o],
                            visual: t.get("color")
                        }).mapValueToVisual(e.getLayout().value), i = e.getModel().get(["itemStyle", "color"]);
                        null != i ? (e.setVisual("color", i), e.setVisual("style", {fill: i})) : (e.setVisual("color", n), e.setVisual("style", {fill: n}))
                    }))
                }
                i.length && mt(i, (function (t) {
                    var e = t.getModel().get("lineStyle");
                    t.setVisual("style", e)
                }))
            }))
        }

        var SR = function () {
            function t() {
            }

            return t.prototype.getInitialData = function (t, e) {
                var n, i, r = e.getComponent("xAxis", this.get("xAxisIndex")),
                    o = e.getComponent("yAxis", this.get("yAxisIndex")), a = r.get("type"), s = o.get("type");
                "category" === a ? (t.layout = "horizontal", n = r.getOrdinalMeta(), i = !0) : "category" === s ? (t.layout = "vertical", n = o.getOrdinalMeta(), i = !0) : t.layout = t.layout || "horizontal";
                var l = ["x", "y"], u = "horizontal" === t.layout ? 0 : 1, c = this._baseAxisDim = l[u], h = l[1 - u],
                    d = [r, o], p = d[u].get("type"), f = d[1 - u].get("type"), g = t.data;
                if (g && i) {
                    var m = [];
                    mt(g, (function (t, e) {
                        var n;
                        At(t) ? (n = t.slice(), t.unshift(e)) : At(t.value) ? ((n = ht({}, t)).value = n.value.slice(), t.value.unshift(e)) : n = t, m.push(n)
                    })), t.data = m
                }
                var y = this.defaultValueDimensions, v = [{
                    name: c,
                    type: aS(p),
                    ordinalMeta: n,
                    otherDims: {tooltip: !1, itemName: 0},
                    dimsDef: ["base"]
                }, {name: h, type: aS(f), dimsDef: y.slice()}];
                return Ib(this, {coordDimensions: v, dimensionsCount: y.length + 1, encodeDefaulter: St(td, v, this)})
            }, t.prototype.getBaseAxis = function () {
                var t = this._baseAxisDim;
                return this.ecModel.getComponent(t + "Axis", this.get(t + "AxisIndex")).axis
            }, t
        }(), AR = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.defaultValueDimensions = [{name: "min", defaultTooltip: !0}, {
                    name: "Q1",
                    defaultTooltip: !0
                }, {name: "median", defaultTooltip: !0}, {name: "Q3", defaultTooltip: !0}, {
                    name: "max",
                    defaultTooltip: !0
                }], n.visualDrawType = "stroke", n
            }

            return G(e, t), e.type = "series.boxplot", e.dependencies = ["xAxis", "yAxis", "grid"], e.defaultOption = {
                z: 2,
                coordinateSystem: "cartesian2d",
                legendHoverLink: !0,
                layout: null,
                boxWidth: [7, 50],
                itemStyle: {color: "#fff", borderWidth: 1},
                emphasis: {
                    scale: !0,
                    itemStyle: {
                        borderWidth: 2,
                        shadowBlur: 5,
                        shadowOffsetX: 1,
                        shadowOffsetY: 1,
                        shadowColor: "rgba(0,0,0,0.2)"
                    }
                },
                animationDuration: 800
            }, e
        }(kf);
        ft(AR, SR, !0);
        const bR = AR;
        var IR = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i = t.getData(), r = this.group, o = this._data;
                this._data || r.removeAll();
                var a = "horizontal" === t.get("layout") ? 1 : 0;
                i.diff(o).add((function (t) {
                    if (i.hasValue(t)) {
                        var e = DR(i.getItemLayout(t), i, t, a, !0);
                        i.setItemGraphicEl(t, e), r.add(e)
                    }
                })).update((function (t, e) {
                    var n = o.getItemGraphicEl(e);
                    if (i.hasValue(t)) {
                        var s = i.getItemLayout(t);
                        n ? (Ju(n), wR(s, n, i, t)) : n = DR(s, i, t, a), r.add(n), i.setItemGraphicEl(t, n)
                    } else r.remove(n)
                })).remove((function (t) {
                    var e = o.getItemGraphicEl(t);
                    e && r.remove(e)
                })).execute(), this._data = i
            }, e.prototype.remove = function (t) {
                var e = this.group, n = this._data;
                this._data = null, n && n.eachItemGraphicEl((function (t) {
                    t && e.remove(t)
                }))
            }, e.type = "boxplot", e
        }(jm), ER = function () {
        }, CR = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n.type = "boxplotBoxPath", n
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new ER
            }, e.prototype.buildPath = function (t, e) {
                var n = e.points, i = 0;
                for (t.moveTo(n[i][0], n[i][1]), i++; i < 4; i++) t.lineTo(n[i][0], n[i][1]);
                for (t.closePath(); i < n.length; i++) t.moveTo(n[i][0], n[i][1]), i++, t.lineTo(n[i][0], n[i][1])
            }, e
        }(ll);

        function DR(t, e, n, i, r) {
            var o = t.ends, a = new CR({shape: {points: r ? MR(o, i, t) : o}});
            return wR(t, a, e, n, r), a
        }

        function wR(e, n, i, r, o) {
            var a = i.hostModel;
            (0, t[o ? "initProps" : "updateProps"])(n, {shape: {points: e.ends}}, a, r), n.useStyle(i.getItemVisual(r, "style")), n.style.strokeNoScale = !0, n.z2 = 100;
            var s = i.getItemModel(r), l = s.getModel("emphasis");
            Fu(n, s), ku(n, l.get("focus"), l.get("blurScope"), l.get("disabled"))
        }

        function MR(t, e, n) {
            return yt(t, (function (t) {
                return (t = t.slice())[e] = n.initBaseline, t
            }))
        }

        const NR = IR;
        var OR = mt;

        function LR(t) {
            var e = function (t) {
                var e = [], n = [];
                return t.eachSeriesByType("boxplot", (function (t) {
                    var i = t.getBaseAxis(), r = pt(n, i);
                    r < 0 && (r = n.length, n[r] = i, e[r] = {axis: i, seriesModels: []}), e[r].seriesModels.push(t)
                })), e
            }(t);
            OR(e, (function (t) {
                var e = t.seriesModels;
                e.length && (!function (t) {
                    var e, n = t.axis, i = t.seriesModels, r = i.length, o = t.boxWidthList = [],
                        a = t.boxOffsetList = [], s = [];
                    if ("category" === n.type) e = n.getBandWidth(); else {
                        var l = 0;
                        OR(i, (function (t) {
                            l = Math.max(l, t.getData().count())
                        }));
                        var u = n.getExtent();
                        e = Math.abs(u[1] - u[0]) / l
                    }
                    OR(i, (function (t) {
                        var n = t.get("boxWidth");
                        At(n) || (n = [n, n]), s.push([wo(n[0], e) || 0, wo(n[1], e) || 0])
                    }));
                    var c = .8 * e - 2, h = c / r * .3, d = (c - h * (r - 1)) / r, p = d / 2 - c / 2;
                    OR(i, (function (t, e) {
                        a.push(p), p += h + d, o.push(Math.min(Math.max(d, s[e][0]), s[e][1]))
                    }))
                }(t), OR(e, (function (e, n) {
                    !function (t, e, n) {
                        var i = t.coordinateSystem, r = t.getData(), o = n / 2,
                            a = "horizontal" === t.get("layout") ? 0 : 1, s = 1 - a, l = ["x", "y"],
                            u = r.mapDimension(l[a]), c = r.mapDimensionsAll(l[s]);
                        if (null == u || c.length < 5) return;
                        for (var h = 0; h < r.count(); h++) {
                            var d = r.get(u, h), p = _(d, c[2], h), f = _(d, c[0], h), g = _(d, c[1], h),
                                m = _(d, c[3], h), y = _(d, c[4], h), v = [];
                            T(v, g, !1), T(v, m, !0), v.push(f, g, y, m), x(v, f), x(v, y), x(v, p), r.setItemLayout(h, {
                                initBaseline: p[s],
                                ends: v
                            })
                        }

                        function _(t, n, o) {
                            var l, u = r.get(n, o), c = [];
                            return c[a] = t, c[s] = u, isNaN(t) || isNaN(u) ? l = [NaN, NaN] : (l = i.dataToPoint(c))[a] += e, l
                        }

                        function T(t, e, n) {
                            var i = e.slice(), r = e.slice();
                            i[a] += o, r[a] -= o, n ? t.push(i, r) : t.push(r, i)
                        }

                        function x(t, e) {
                            var n = e.slice(), i = e.slice();
                            n[a] -= o, i[a] += o, t.push(n, i)
                        }
                    }(e, t.boxOffsetList[n], t.boxWidthList[n])
                })))
            }))
        }

        var RR = {
            type: "echarts:boxplot", transform: function (t) {
                var e = t.upstream;
                if (e.sourceFormat !== Yh) {
                    0, Dp("")
                }
                var n = function (t, e) {
                    for (var n = [], i = [], r = (e = e || {}).boundIQR, o = "none" === r || 0 === r, a = 0; a < t.length; a++) {
                        var s = No(t[a].slice()), l = zo(s, .25), u = zo(s, .5), c = zo(s, .75), h = s[0],
                            d = s[s.length - 1], p = (null == r ? 1.5 : r) * (c - l), f = o ? h : Math.max(h, l - p),
                            g = o ? d : Math.min(d, c + p), m = e.itemNameFormatter,
                            y = bt(m) ? m({value: a}) : It(m) ? m.replace("{value}", a + "") : a + "";
                        n.push([y, f, l, u, c, g]);
                        for (var v = 0; v < s.length; v++) {
                            var _ = s[v];
                            if (_ < f || _ > g) {
                                var T = [y, _];
                                i.push(T)
                            }
                        }
                    }
                    return {boxData: n, outliers: i}
                }(e.getRawData(), t.config);
                return [{
                    dimensions: ["ItemName", "Low", "Q1", "Q2", "Q3", "High"],
                    data: n.boxData
                }, {data: n.outliers}]
            }
        };
        var kR = ["color", "borderColor"], PR = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                this.group.removeClipPath(), this._progressiveEls = null, this._updateDrawMode(t), this._isLargeDraw ? this._renderLarge(t) : this._renderNormal(t)
            }, e.prototype.incrementalPrepareRender = function (t, e, n) {
                this._clear(), this._updateDrawMode(t)
            }, e.prototype.incrementalRender = function (t, e, n, i) {
                this._progressiveEls = [], this._isLargeDraw ? this._incrementalRenderLarge(t, e) : this._incrementalRenderNormal(t, e)
            }, e.prototype.eachRendered = function (t) {
                Bm(this._progressiveEls || this.group, t)
            }, e.prototype._updateDrawMode = function (t) {
                var e = t.pipelineContext.large;
                null != this._isLargeDraw && e === this._isLargeDraw || (this._isLargeDraw = e, this._clear())
            }, e.prototype._renderNormal = function (t) {
                var e = t.getData(), n = this._data, i = this.group, r = e.getLayout("isSimpleBox"),
                    o = t.get("clip", !0), a = t.coordinateSystem, s = a.getArea && a.getArea();
                this._data || i.removeAll(), e.diff(n).add((function (n) {
                    if (e.hasValue(n)) {
                        var a = e.getItemLayout(n);
                        if (o && HR(s, a)) return;
                        var l = FR(a, n, !0);
                        Xu(l, {shape: {points: a.ends}}, t, n), UR(l, e, n, r), i.add(l), e.setItemGraphicEl(n, l)
                    }
                })).update((function (a, l) {
                    var u = n.getItemGraphicEl(l);
                    if (e.hasValue(a)) {
                        var c = e.getItemLayout(a);
                        o && HR(s, c) ? i.remove(u) : (u ? (ju(u, {shape: {points: c.ends}}, t, a), Ju(u)) : u = FR(c, a), UR(u, e, a, r), i.add(u), e.setItemGraphicEl(a, u))
                    } else i.remove(u)
                })).remove((function (t) {
                    var e = n.getItemGraphicEl(t);
                    e && i.remove(e)
                })).execute(), this._data = e
            }, e.prototype._renderLarge = function (t) {
                this._clear(), YR(t, this.group);
                var e = t.get("clip", !0) ? cA(t.coordinateSystem, !1, t) : null;
                e ? this.group.setClipPath(e) : this.group.removeClipPath()
            }, e.prototype._incrementalRenderNormal = function (t, e) {
                for (var n, i = e.getData(), r = i.getLayout("isSimpleBox"); null != (n = t.next());) {
                    var o = FR(i.getItemLayout(n), n);
                    UR(o, i, n, r), o.incremental = !0, this.group.add(o), this._progressiveEls.push(o)
                }
            }, e.prototype._incrementalRenderLarge = function (t, e) {
                YR(e, this.group, this._progressiveEls, !0)
            }, e.prototype.remove = function (t) {
                this._clear()
            }, e.prototype._clear = function () {
                this.group.removeAll(), this._data = null
            }, e.type = "candlestick", e
        }(jm), GR = function () {
        }, BR = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n.type = "normalCandlestickBox", n
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new GR
            }, e.prototype.buildPath = function (t, e) {
                var n = e.points;
                this.__simpleBox ? (t.moveTo(n[4][0], n[4][1]), t.lineTo(n[6][0], n[6][1])) : (t.moveTo(n[0][0], n[0][1]), t.lineTo(n[1][0], n[1][1]), t.lineTo(n[2][0], n[2][1]), t.lineTo(n[3][0], n[3][1]), t.closePath(), t.moveTo(n[4][0], n[4][1]), t.lineTo(n[5][0], n[5][1]), t.moveTo(n[6][0], n[6][1]), t.lineTo(n[7][0], n[7][1]))
            }, e
        }(ll);

        function FR(t, e, n) {
            var i = t.ends;
            return new BR({shape: {points: n ? VR(i, t) : i}, z2: 100})
        }

        function HR(t, e) {
            for (var n = !0, i = 0; i < e.ends.length; i++) if (t.contain(e.ends[i][0], e.ends[i][1])) {
                n = !1;
                break
            }
            return n
        }

        function UR(t, e, n, i) {
            var r = e.getItemModel(n);
            t.useStyle(e.getItemVisual(n, "style")), t.style.strokeNoScale = !0, t.__simpleBox = i, Fu(t, r)
        }

        function VR(t, e) {
            return yt(t, (function (t) {
                return (t = t.slice())[1] = e.initBaseline, t
            }))
        }

        var zR = function () {
        }, WR = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n.type = "largeCandlestickBox", n
            }

            return G(e, t), e.prototype.getDefaultShape = function () {
                return new zR
            }, e.prototype.buildPath = function (t, e) {
                for (var n = e.points, i = 0; i < n.length;) if (this.__sign === n[i++]) {
                    var r = n[i++];
                    t.moveTo(r, n[i++]), t.lineTo(r, n[i++])
                } else i += 3
            }, e
        }(ll);

        function YR(t, e, n, i) {
            var r = t.getData(), o = r.getLayout("largePoints"),
                a = new WR({shape: {points: o}, __sign: 1, ignoreCoarsePointer: !0});
            e.add(a);
            var s = new WR({shape: {points: o}, __sign: -1, ignoreCoarsePointer: !0});
            e.add(s);
            var l = new WR({shape: {points: o}, __sign: 0, ignoreCoarsePointer: !0});
            e.add(l), qR(1, a, t, r), qR(-1, s, t, r), qR(0, l, t, r), i && (a.incremental = !0, s.incremental = !0), n && n.push(a, s)
        }

        function qR(t, e, n, i) {
            var r = n.get(["itemStyle", t > 0 ? "borderColor" : "borderColor0"]) || n.get(["itemStyle", t > 0 ? "color" : "color0"]);
            0 === t && (r = n.get(["itemStyle", "borderColorDoji"]));
            var o = n.getModel("itemStyle").getItemStyle(kR);
            e.useStyle(o), e.style.fill = null, e.style.stroke = r
        }

        const jR = PR;
        var XR = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.defaultValueDimensions = [{name: "open", defaultTooltip: !0}, {
                    name: "close",
                    defaultTooltip: !0
                }, {name: "lowest", defaultTooltip: !0}, {name: "highest", defaultTooltip: !0}], n
            }

            return G(e, t), e.prototype.getShadowDim = function () {
                return "open"
            }, e.prototype.brushSelector = function (t, e, n) {
                var i = e.getItemLayout(t);
                return i && n.rect(i.brushRect)
            }, e.type = "series.candlestick", e.dependencies = ["xAxis", "yAxis", "grid"], e.defaultOption = {
                z: 2,
                coordinateSystem: "cartesian2d",
                legendHoverLink: !0,
                layout: null,
                clip: !0,
                itemStyle: {
                    color: "#eb5454",
                    color0: "#47b262",
                    borderColor: "#eb5454",
                    borderColor0: "#47b262",
                    borderColorDoji: null,
                    borderWidth: 1
                },
                emphasis: {scale: !0, itemStyle: {borderWidth: 2}},
                barMaxWidth: null,
                barMinWidth: null,
                barWidth: null,
                large: !0,
                largeThreshold: 600,
                progressive: 3e3,
                progressiveThreshold: 1e4,
                progressiveChunkMode: "mod",
                animationEasing: "linear",
                animationDuration: 300
            }, e
        }(kf);
        ft(XR, SR, !0);
        const ZR = XR;

        function KR(t) {
            t && At(t.series) && mt(t.series, (function (t) {
                Dt(t) && "k" === t.type && (t.type = "candlestick")
            }))
        }

        var QR = ["itemStyle", "borderColor"], $R = ["itemStyle", "borderColor0"],
            JR = ["itemStyle", "borderColorDoji"], tk = ["itemStyle", "color"], ek = ["itemStyle", "color0"];
        const nk = {
            seriesType: "candlestick", plan: Bf(), performRawSeries: !0, reset: function (t, e) {
                function n(t, e) {
                    return e.get(t > 0 ? tk : ek)
                }

                function i(t, e) {
                    return e.get(0 === t ? JR : t > 0 ? QR : $R)
                }

                if (!e.isSeriesFiltered(t)) return !t.pipelineContext.large && {
                    progress: function (t, e) {
                        for (var r; null != (r = t.next());) {
                            var o = e.getItemModel(r), a = e.getItemLayout(r).sign, s = o.getItemStyle();
                            s.fill = n(a, o), s.stroke = i(a, o) || s.fill, ht(e.ensureUniqueItemVisual(r, "style"), s)
                        }
                    }
                }
            }
        };
        var ik = {
            seriesType: "candlestick", plan: Bf(), reset: function (t) {
                var e = t.coordinateSystem, n = t.getData(), i = function (t, e) {
                        var n, i = t.getBaseAxis(),
                            r = "category" === i.type ? i.getBandWidth() : (n = i.getExtent(), Math.abs(n[1] - n[0]) / e.count()),
                            o = wo(kt(t.get("barMaxWidth"), r), r), a = wo(kt(t.get("barMinWidth"), 1), r),
                            s = t.get("barWidth");
                        return null != s ? wo(s, r) : Math.max(Math.min(r / 2, o), a)
                    }(t, n), r = ["x", "y"], o = n.getDimensionIndex(n.mapDimension(r[0])),
                    a = yt(n.mapDimensionsAll(r[1]), n.getDimensionIndex, n), s = a[0], l = a[1], u = a[2], c = a[3];
                if (n.setLayout({candleWidth: i, isSimpleBox: i <= 1.3}), !(o < 0 || a.length < 4)) return {
                    progress: t.pipelineContext.large ? function (n, i) {
                        var r, a, h = JS(4 * n.count), d = 0, p = [], f = [], g = i.getStore(),
                            m = !!t.get(["itemStyle", "borderColorDoji"]);
                        for (; null != (a = n.next());) {
                            var y = g.get(o, a), v = g.get(s, a), _ = g.get(l, a), T = g.get(u, a), x = g.get(c, a);
                            isNaN(y) || isNaN(T) || isNaN(x) ? (h[d++] = NaN, d += 3) : (h[d++] = rk(g, a, v, _, l, m), p[0] = y, p[1] = T, r = e.dataToPoint(p, null, f), h[d++] = r ? r[0] : NaN, h[d++] = r ? r[1] : NaN, p[1] = x, r = e.dataToPoint(p, null, f), h[d++] = r ? r[1] : NaN)
                        }
                        i.setLayout("largePoints", h)
                    } : function (t, n) {
                        var r, a = n.getStore();
                        for (; null != (r = t.next());) {
                            var h = a.get(o, r), d = a.get(s, r), p = a.get(l, r), f = a.get(u, r), g = a.get(c, r),
                                m = Math.min(d, p), y = Math.max(d, p), v = b(m, h), _ = b(y, h), T = b(f, h),
                                x = b(g, h), S = [];
                            I(S, _, 0), I(S, v, 1), S.push(C(x), C(_), C(T), C(v));
                            var A = !!n.getItemModel(r).get(["itemStyle", "borderColorDoji"]);
                            n.setItemLayout(r, {
                                sign: rk(a, r, d, p, l, A),
                                initBaseline: d > p ? _[1] : v[1],
                                ends: S,
                                brushRect: E(f, g, h)
                            })
                        }

                        function b(t, n) {
                            var i = [];
                            return i[0] = n, i[1] = t, isNaN(n) || isNaN(t) ? [NaN, NaN] : e.dataToPoint(i)
                        }

                        function I(t, e, n) {
                            var r = e.slice(), o = e.slice();
                            r[0] = bm(r[0] + i / 2, 1, !1), o[0] = bm(o[0] - i / 2, 1, !0), n ? t.push(r, o) : t.push(o, r)
                        }

                        function E(t, e, n) {
                            var r = b(t, n), o = b(e, n);
                            return r[0] -= i / 2, o[0] -= i / 2, {x: r[0], y: r[1], width: i, height: o[1] - r[1]}
                        }

                        function C(t) {
                            return t[0] = bm(t[0], 1), t
                        }
                    }
                }
            }
        };

        function rk(t, e, n, i, r, o) {
            return n > i ? -1 : n < i ? 1 : o ? 0 : e > 0 ? t.get(r, e - 1) <= i ? 1 : -1 : 1
        }

        const ok = ik;

        function ak(t, e) {
            var n = e.rippleEffectColor || e.color;
            t.eachChild((function (t) {
                t.attr({
                    z: e.z,
                    zlevel: e.zlevel,
                    style: {stroke: "stroke" === e.brushType ? n : null, fill: "fill" === e.brushType ? n : null}
                })
            }))
        }

        var sk = function (t) {
            function e(e, n) {
                var i = t.call(this) || this, r = new zS(e, n), o = new xo;
                return i.add(r), i.add(o), i.updateData(e, n), i
            }

            return G(e, t), e.prototype.stopEffectAnimation = function () {
                this.childAt(1).removeAll()
            }, e.prototype.startEffectAnimation = function (t) {
                for (var e = t.symbolType, n = t.color, i = t.rippleNumber, r = this.childAt(1), o = 0; o < i; o++) {
                    var a = iv(e, -1, -1, 2, 2, n);
                    a.attr({style: {strokeNoScale: !0}, z2: 99, silent: !0, scaleX: .5, scaleY: .5});
                    var s = -o / i * t.period + t.effectOffset;
                    a.animate("", !0).when(t.period, {
                        scaleX: t.rippleScale / 2,
                        scaleY: t.rippleScale / 2
                    }).delay(s).start(), a.animateStyle(!0).when(t.period, {opacity: 0}).delay(s).start(), r.add(a)
                }
                ak(r, t)
            }, e.prototype.updateEffectAnimation = function (t) {
                for (var e = this._effectCfg, n = this.childAt(1), i = ["symbolType", "period", "rippleScale", "rippleNumber"], r = 0; r < i.length; r++) {
                    var o = i[r];
                    if (e[o] !== t[o]) return this.stopEffectAnimation(), void this.startEffectAnimation(t)
                }
                ak(n, t)
            }, e.prototype.highlight = function () {
                xu(this)
            }, e.prototype.downplay = function () {
                Su(this)
            }, e.prototype.getSymbolType = function () {
                var t = this.childAt(0);
                return t && t.getSymbolType()
            }, e.prototype.updateData = function (t, e) {
                var n = this, i = t.hostModel;
                this.childAt(0).updateData(t, e);
                var r = this.childAt(1), o = t.getItemModel(e), a = t.getItemVisual(e, "symbol"),
                    s = rv(t.getItemVisual(e, "symbolSize")), l = t.getItemVisual(e, "style"), u = l && l.fill,
                    c = o.getModel("emphasis");
                r.setScale(s), r.traverse((function (t) {
                    t.setStyle("fill", u)
                }));
                var h = ov(t.getItemVisual(e, "symbolOffset"), s);
                h && (r.x = h[0], r.y = h[1]);
                var d = t.getItemVisual(e, "symbolRotate");
                r.rotation = (d || 0) * Math.PI / 180 || 0;
                var p = {};
                p.showEffectOn = i.get("showEffectOn"), p.rippleScale = o.get(["rippleEffect", "scale"]), p.brushType = o.get(["rippleEffect", "brushType"]), p.period = 1e3 * o.get(["rippleEffect", "period"]), p.effectOffset = e / t.count(), p.z = i.getShallow("z") || 0, p.zlevel = i.getShallow("zlevel") || 0, p.symbolType = a, p.color = u, p.rippleEffectColor = o.get(["rippleEffect", "color"]), p.rippleNumber = o.get(["rippleEffect", "number"]), "render" === p.showEffectOn ? (this._effectCfg ? this.updateEffectAnimation(p) : this.startEffectAnimation(p), this._effectCfg = p) : (this._effectCfg = null, this.stopEffectAnimation(), this.onHoverStateChange = function (t) {
                    "emphasis" === t ? "render" !== p.showEffectOn && n.startEffectAnimation(p) : "normal" === t && "render" !== p.showEffectOn && n.stopEffectAnimation()
                }), this._effectCfg = p, ku(this, c.get("focus"), c.get("blurScope"), c.get("disabled"))
            }, e.prototype.fadeOut = function (t) {
                t && t()
            }, e
        }(xo);
        const lk = sk;
        const uk = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function () {
                this._symbolDraw = new XS(lk)
            }, e.prototype.render = function (t, e, n) {
                var i = t.getData(), r = this._symbolDraw;
                r.updateData(i, {clipShape: this._getClipShape(t)}), this.group.add(r.group)
            }, e.prototype._getClipShape = function (t) {
                var e = t.coordinateSystem, n = e && e.getArea && e.getArea();
                return t.get("clip", !0) ? n : null
            }, e.prototype.updateTransform = function (t, e, n) {
                var i = t.getData();
                this.group.dirty();
                var r = bA("").reset(t, e, n);
                r.progress && r.progress({
                    start: 0,
                    end: i.count(),
                    count: i.count()
                }, i), this._symbolDraw.updateLayout()
            }, e.prototype._updateGroupTransform = function (t) {
                var e, n, i = t.coordinateSystem;
                i && i.getRoamTransform && (this.group.transform = (e = i.getRoamTransform(), je(n = [1, 0, 0, 1, 0, 0], e), n), this.group.decomposeTransform())
            }, e.prototype.remove = function (t, e) {
                this._symbolDraw && this._symbolDraw.remove(!0)
            }, e.type = "effectScatter", e
        }(jm);
        const ck = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.hasSymbolVisual = !0, n
            }

            return G(e, t), e.prototype.getInitialData = function (t, e) {
                return GS(null, this, {useEncodeDefaulter: !0})
            }, e.prototype.brushSelector = function (t, e, n) {
                return n.point(e.getItemLayout(t))
            }, e.type = "series.effectScatter", e.dependencies = ["grid", "polar"], e.defaultOption = {
                coordinateSystem: "cartesian2d",
                z: 2,
                legendHoverLink: !0,
                effectType: "ripple",
                progressive: 0,
                showEffectOn: "render",
                clip: !0,
                rippleEffect: {period: 4, scale: 2.5, brushType: "fill", number: 3},
                universalTransition: {divideShape: "clone"},
                symbolSize: 10
            }, e
        }(kf);
        var hk = function (t) {
            function e(e, n, i) {
                var r = t.call(this) || this;
                return r.add(r.createLine(e, n, i)), r._updateEffectSymbol(e, n), r
            }

            return G(e, t), e.prototype.createLine = function (t, e, n) {
                return new kN(t, e, n)
            }, e.prototype._updateEffectSymbol = function (t, e) {
                var n = t.getItemModel(e).getModel("effect"), i = n.get("symbolSize"), r = n.get("symbol");
                At(i) || (i = [i, i]);
                var o = t.getItemVisual(e, "style"), a = n.get("color") || o && o.stroke, s = this.childAt(1);
                this._symbolType !== r && (this.remove(s), (s = iv(r, -.5, -.5, 1, 1, a)).z2 = 100, s.culling = !0, this.add(s)), s && (s.setStyle("shadowColor", a), s.setStyle(n.getItemStyle(["color"])), s.scaleX = i[0], s.scaleY = i[1], s.setColor(a), this._symbolType = r, this._symbolScale = i, this._updateEffectAnimation(t, n, e))
            }, e.prototype._updateEffectAnimation = function (t, e, n) {
                var i = this.childAt(1);
                if (i) {
                    var r = t.getItemLayout(n), o = 1e3 * e.get("period"), a = e.get("loop"), s = e.get("roundTrip"),
                        l = e.get("constantSpeed"), u = Rt(e.get("delay"), (function (e) {
                            return e / t.count() * o / 3
                        }));
                    if (i.ignore = !0, this._updateAnimationPoints(i, r), l > 0 && (o = this._getLineLength(i) / l * 1e3), o !== this._period || a !== this._loop || s !== this._roundTrip) {
                        i.stopAnimation();
                        var c = void 0;
                        c = bt(u) ? u(n) : u, i.__t > 0 && (c = -o * i.__t), this._animateSymbol(i, o, c, a, s)
                    }
                    this._period = o, this._loop = a, this._roundTrip = s
                }
            }, e.prototype._animateSymbol = function (t, e, n, i, r) {
                if (e > 0) {
                    t.__t = 0;
                    var o = this,
                        a = t.animate("", i).when(r ? 2 * e : e, {__t: r ? 2 : 1}).delay(n).during((function () {
                            o._updateSymbolPosition(t)
                        }));
                    i || a.done((function () {
                        o.remove(t)
                    })), a.start()
                }
            }, e.prototype._getLineLength = function (t) {
                return de(t.__p1, t.__cp1) + de(t.__cp1, t.__p2)
            }, e.prototype._updateAnimationPoints = function (t, e) {
                t.__p1 = e[0], t.__p2 = e[1], t.__cp1 = e[2] || [(e[0][0] + e[1][0]) / 2, (e[0][1] + e[1][1]) / 2]
            }, e.prototype.updateData = function (t, e, n) {
                this.childAt(0).updateData(t, e, n), this._updateEffectSymbol(t, e)
            }, e.prototype._updateSymbolPosition = function (t) {
                var e = t.__p1, n = t.__p2, i = t.__cp1, r = t.__t < 1 ? t.__t : 2 - t.__t, o = [t.x, t.y],
                    a = o.slice(), s = oi, l = ai;
                o[0] = s(e[0], i[0], n[0], r), o[1] = s(e[1], i[1], n[1], r);
                var u = t.__t < 1 ? l(e[0], i[0], n[0], r) : l(n[0], i[0], e[0], 1 - r),
                    c = t.__t < 1 ? l(e[1], i[1], n[1], r) : l(n[1], i[1], e[1], 1 - r);
                t.rotation = -Math.atan2(c, u) - Math.PI / 2, "line" !== this._symbolType && "rect" !== this._symbolType && "roundRect" !== this._symbolType || (void 0 !== t.__lastT && t.__lastT < t.__t ? (t.scaleY = 1.05 * de(a, o), 1 === r && (o[0] = a[0] + (o[0] - a[0]) / 2, o[1] = a[1] + (o[1] - a[1]) / 2)) : 1 === t.__lastT ? t.scaleY = 2 * de(e, o) : t.scaleY = this._symbolScale[1]), t.__lastT = t.__t, t.ignore = !1, t.x = o[0], t.y = o[1]
            }, e.prototype.updateLayout = function (t, e) {
                this.childAt(0).updateLayout(t, e);
                var n = t.getItemModel(e).getModel("effect");
                this._updateEffectAnimation(t, n, e)
            }, e
        }(xo);
        const dk = hk;
        var pk = function (t) {
            function e(e, n, i) {
                var r = t.call(this) || this;
                return r._createPolyline(e, n, i), r
            }

            return G(e, t), e.prototype._createPolyline = function (t, e, n) {
                var i = t.getItemLayout(e), r = new Pg({shape: {points: i}});
                this.add(r), this._updateCommonStl(t, e, n)
            }, e.prototype.updateData = function (t, e, n) {
                var i = t.hostModel;
                ju(this.childAt(0), {shape: {points: t.getItemLayout(e)}}, i, e), this._updateCommonStl(t, e, n)
            }, e.prototype._updateCommonStl = function (t, e, n) {
                var i = this.childAt(0), r = t.getItemModel(e), o = n && n.emphasisLineStyle, a = n && n.focus,
                    s = n && n.blurScope, l = n && n.emphasisDisabled;
                if (!n || t.hasItemOption) {
                    var u = r.getModel("emphasis");
                    o = u.getModel("lineStyle").getLineStyle(), l = u.get("disabled"), a = u.get("focus"), s = u.get("blurScope")
                }
                i.useStyle(t.getItemVisual(e, "style")), i.style.fill = null, i.style.strokeNoScale = !0, i.ensureState("emphasis").style = o, ku(this, a, s, l)
            }, e.prototype.updateLayout = function (t, e) {
                this.childAt(0).setShape("points", t.getItemLayout(e))
            }, e
        }(xo);
        const fk = pk;
        var gk = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e._lastFrame = 0, e._lastFramePercent = 0, e
            }

            return G(e, t), e.prototype.createLine = function (t, e, n) {
                return new fk(t, e, n)
            }, e.prototype._updateAnimationPoints = function (t, e) {
                this._points = e;
                for (var n = [0], i = 0, r = 1; r < e.length; r++) {
                    var o = e[r - 1], a = e[r];
                    i += de(o, a), n.push(i)
                }
                if (0 !== i) {
                    for (r = 0; r < n.length; r++) n[r] /= i;
                    this._offsets = n, this._length = i
                } else this._length = 0
            }, e.prototype._getLineLength = function () {
                return this._length
            }, e.prototype._updateSymbolPosition = function (t) {
                var e = t.__t < 1 ? t.__t : 2 - t.__t, n = this._points, i = this._offsets, r = n.length;
                if (i) {
                    var o, a = this._lastFrame;
                    if (e < this._lastFramePercent) {
                        for (o = Math.min(a + 1, r - 1); o >= 0 && !(i[o] <= e); o--) ;
                        o = Math.min(o, r - 2)
                    } else {
                        for (o = a; o < r && !(i[o] > e); o++) ;
                        o = Math.min(o - 1, r - 2)
                    }
                    var s = (e - i[o]) / (i[o + 1] - i[o]), l = n[o], u = n[o + 1];
                    t.x = l[0] * (1 - s) + s * u[0], t.y = l[1] * (1 - s) + s * u[1];
                    var c = t.__t < 1 ? u[0] - l[0] : l[0] - u[0], h = t.__t < 1 ? u[1] - l[1] : l[1] - u[1];
                    t.rotation = -Math.atan2(h, c) - Math.PI / 2, this._lastFrame = o, this._lastFramePercent = e, t.ignore = !1
                }
            }, e
        }(dk);
        const mk = gk;
        var yk = function () {
            this.polyline = !1, this.curveness = 0, this.segs = []
        }, vk = function (t) {
            function e(e) {
                var n = t.call(this, e) || this;
                return n._off = 0, n.hoverDataIdx = -1, n
            }

            return G(e, t), e.prototype.reset = function () {
                this.notClear = !1, this._off = 0
            }, e.prototype.getDefaultStyle = function () {
                return {stroke: "#000", fill: null}
            }, e.prototype.getDefaultShape = function () {
                return new yk
            }, e.prototype.buildPath = function (t, e) {
                var n, i = e.segs, r = e.curveness;
                if (e.polyline) for (n = this._off; n < i.length;) {
                    var o = i[n++];
                    if (o > 0) {
                        t.moveTo(i[n++], i[n++]);
                        for (var a = 1; a < o; a++) t.lineTo(i[n++], i[n++])
                    }
                } else for (n = this._off; n < i.length;) {
                    var s = i[n++], l = i[n++], u = i[n++], c = i[n++];
                    if (t.moveTo(s, l), r > 0) {
                        var h = (s + u) / 2 - (l - c) * r, d = (l + c) / 2 - (u - s) * r;
                        t.quadraticCurveTo(h, d, u, c)
                    } else t.lineTo(u, c)
                }
                this.incremental && (this._off = n, this.notClear = !0)
            }, e.prototype.findDataIndex = function (t, e) {
                var n = this.shape, i = n.segs, r = n.curveness, o = this.style.lineWidth;
                if (n.polyline) for (var a = 0, s = 0; s < i.length;) {
                    var l = i[s++];
                    if (l > 0) for (var u = i[s++], c = i[s++], h = 1; h < l; h++) {
                        if (Us(u, c, d = i[s++], p = i[s++], o, t, e)) return a
                    }
                    a++
                } else for (a = 0, s = 0; s < i.length;) {
                    u = i[s++], c = i[s++];
                    var d = i[s++], p = i[s++];
                    if (r > 0) {
                        if (zs(u, c, (u + d) / 2 - (c - p) * r, (c + p) / 2 - (d - u) * r, d, p, o, t, e)) return a
                    } else if (Us(u, c, d, p, o, t, e)) return a;
                    a++
                }
                return -1
            }, e.prototype.contain = function (t, e) {
                var n = this.transformCoordToLocal(t, e), i = this.getBoundingRect();
                return t = n[0], e = n[1], i.contain(t, e) ? (this.hoverDataIdx = this.findDataIndex(t, e)) >= 0 : (this.hoverDataIdx = -1, !1)
            }, e.prototype.getBoundingRect = function () {
                var t = this._rect;
                if (!t) {
                    for (var e = this.shape.segs, n = 1 / 0, i = 1 / 0, r = -1 / 0, o = -1 / 0, a = 0; a < e.length;) {
                        var s = e[a++], l = e[a++];
                        n = Math.min(s, n), r = Math.max(s, r), i = Math.min(l, i), o = Math.max(l, o)
                    }
                    t = this._rect = new hn(n, i, r, o)
                }
                return t
            }, e
        }(ll);
        const _k = function () {
            function t() {
                this.group = new xo
            }

            return t.prototype.updateData = function (t) {
                this._clear();
                var e = this._create();
                e.setShape({segs: t.getLayout("linesPoints")}), this._setCommon(e, t)
            }, t.prototype.incrementalPrepareUpdate = function (t) {
                this.group.removeAll(), this._clear()
            }, t.prototype.incrementalUpdate = function (t, e) {
                var n = this._newAdded[0], i = e.getLayout("linesPoints"), r = n && n.shape.segs;
                if (r && r.length < 2e4) {
                    var o = r.length, a = new Float32Array(o + i.length);
                    a.set(r), a.set(i, o), n.setShape({segs: a})
                } else {
                    this._newAdded = [];
                    var s = this._create();
                    s.incremental = !0, s.setShape({segs: i}), this._setCommon(s, e), s.__startIndex = t.start
                }
            }, t.prototype.remove = function () {
                this._clear()
            }, t.prototype.eachRendered = function (t) {
                this._newAdded[0] && t(this._newAdded[0])
            }, t.prototype._create = function () {
                var t = new vk({cursor: "default", ignoreCoarsePointer: !0});
                return this._newAdded.push(t), this.group.add(t), t
            }, t.prototype._setCommon = function (t, e, n) {
                var i = e.hostModel;
                t.setShape({
                    polyline: i.get("polyline"),
                    curveness: i.get(["lineStyle", "curveness"])
                }), t.useStyle(i.getModel("lineStyle").getLineStyle()), t.style.strokeNoScale = !0;
                var r = e.getVisual("style");
                r && r.stroke && t.setStyle("stroke", r.stroke), t.setStyle("fill", null);
                var o = Hl(t);
                o.seriesIndex = i.seriesIndex, t.on("mousemove", (function (e) {
                    o.dataIndex = null;
                    var n = t.hoverDataIdx;
                    n > 0 && (o.dataIndex = n + t.__startIndex)
                }))
            }, t.prototype._clear = function () {
                this._newAdded = [], this.group.removeAll()
            }, t
        }();
        var Tk = {
            seriesType: "lines", plan: Bf(), reset: function (t) {
                var e = t.coordinateSystem;
                if (e) {
                    var n = t.get("polyline"), i = t.pipelineContext.large;
                    return {
                        progress: function (r, o) {
                            var a = [];
                            if (i) {
                                var s = void 0, l = r.end - r.start;
                                if (n) {
                                    for (var u = 0, c = r.start; c < r.end; c++) u += t.getLineCoordsCount(c);
                                    s = new Float32Array(l + 2 * u)
                                } else s = new Float32Array(4 * l);
                                var h = 0, d = [];
                                for (c = r.start; c < r.end; c++) {
                                    var p = t.getLineCoords(c, a);
                                    n && (s[h++] = p);
                                    for (var f = 0; f < p; f++) d = e.dataToPoint(a[f], !1, d), s[h++] = d[0], s[h++] = d[1]
                                }
                                o.setLayout("linesPoints", s)
                            } else for (c = r.start; c < r.end; c++) {
                                var g = o.getItemModel(c), m = (p = t.getLineCoords(c, a), []);
                                if (n) for (var y = 0; y < p; y++) m.push(e.dataToPoint(a[y])); else {
                                    m[0] = e.dataToPoint(a[0]), m[1] = e.dataToPoint(a[1]);
                                    var v = g.get(["lineStyle", "curveness"]);
                                    +v && (m[2] = [(m[0][0] + m[1][0]) / 2 - (m[0][1] - m[1][1]) * v, (m[0][1] + m[1][1]) / 2 - (m[1][0] - m[0][0]) * v])
                                }
                                o.setItemLayout(c, m)
                            }
                        }
                    }
                }
            }
        };
        const xk = Tk;
        const Sk = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i = t.getData(), r = this._updateLineDraw(i, t), o = t.get("zlevel"),
                    a = t.get(["effect", "trailLength"]), s = n.getZr(), l = "svg" === s.painter.getType();
                l || s.painter.getLayer(o).clear(!0), null == this._lastZlevel || l || s.configLayer(this._lastZlevel, {motionBlur: !1}), this._showEffect(t) && a > 0 && (l || s.configLayer(o, {
                    motionBlur: !0,
                    lastFrameAlpha: Math.max(Math.min(a / 10 + .9, 1), 0)
                })), r.updateData(i);
                var u = t.get("clip", !0) && cA(t.coordinateSystem, !1, t);
                u ? this.group.setClipPath(u) : this.group.removeClipPath(), this._lastZlevel = o, this._finished = !0
            }, e.prototype.incrementalPrepareRender = function (t, e, n) {
                var i = t.getData();
                this._updateLineDraw(i, t).incrementalPrepareUpdate(i), this._clearLayer(n), this._finished = !1
            }, e.prototype.incrementalRender = function (t, e, n) {
                this._lineDraw.incrementalUpdate(t, e.getData()), this._finished = t.end === e.getData().count()
            }, e.prototype.eachRendered = function (t) {
                this._lineDraw && this._lineDraw.eachRendered(t)
            }, e.prototype.updateTransform = function (t, e, n) {
                var i = t.getData(), r = t.pipelineContext;
                if (!this._finished || r.large || r.progressiveRender) return {update: !0};
                var o = xk.reset(t, e, n);
                o.progress && o.progress({
                    start: 0,
                    end: i.count(),
                    count: i.count()
                }, i), this._lineDraw.updateLayout(), this._clearLayer(n)
            }, e.prototype._updateLineDraw = function (t, e) {
                var n = this._lineDraw, i = this._showEffect(e), r = !!e.get("polyline"), o = e.pipelineContext.large;
                return n && i === this._hasEffet && r === this._isPolyline && o === this._isLargeDraw || (n && n.remove(), n = this._lineDraw = o ? new _k : new FN(r ? i ? mk : fk : i ? dk : kN), this._hasEffet = i, this._isPolyline = r, this._isLargeDraw = o), this.group.add(n.group), n
            }, e.prototype._showEffect = function (t) {
                return !!t.get(["effect", "show"])
            }, e.prototype._clearLayer = function (t) {
                var e = t.getZr();
                "svg" === e.painter.getType() || null == this._lastZlevel || e.painter.getLayer(this._lastZlevel).clear(!0)
            }, e.prototype.remove = function (t, e) {
                this._lineDraw && this._lineDraw.remove(), this._lineDraw = null, this._clearLayer(e)
            }, e.prototype.dispose = function (t, e) {
                this.remove(t, e)
            }, e.type = "lines", e
        }(jm);
        var Ak = "undefined" == typeof Uint32Array ? Array : Uint32Array,
            bk = "undefined" == typeof Float64Array ? Array : Float64Array;

        function Ik(t) {
            var e = t.data;
            e && e[0] && e[0][0] && e[0][0].coord && (t.data = yt(e, (function (t) {
                var e = {coords: [t[0].coord, t[1].coord]};
                return t[0].name && (e.fromName = t[0].name), t[1].name && (e.toName = t[1].name), ct([e, t[0], t[1]])
            })))
        }

        var Ek = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.visualStyleAccessPath = "lineStyle", n.visualDrawType = "stroke", n
            }

            return G(e, t), e.prototype.init = function (e) {
                e.data = e.data || [], Ik(e);
                var n = this._processFlatCoordsArray(e.data);
                this._flatCoords = n.flatCoords, this._flatCoordsOffset = n.flatCoordsOffset, n.flatCoords && (e.data = new Float32Array(n.count)), t.prototype.init.apply(this, arguments)
            }, e.prototype.mergeOption = function (e) {
                if (Ik(e), e.data) {
                    var n = this._processFlatCoordsArray(e.data);
                    this._flatCoords = n.flatCoords, this._flatCoordsOffset = n.flatCoordsOffset, n.flatCoords && (e.data = new Float32Array(n.count))
                }
                t.prototype.mergeOption.apply(this, arguments)
            }, e.prototype.appendData = function (t) {
                var e = this._processFlatCoordsArray(t.data);
                e.flatCoords && (this._flatCoords ? (this._flatCoords = Xt(this._flatCoords, e.flatCoords), this._flatCoordsOffset = Xt(this._flatCoordsOffset, e.flatCoordsOffset)) : (this._flatCoords = e.flatCoords, this._flatCoordsOffset = e.flatCoordsOffset), t.data = new Float32Array(e.count)), this.getRawData().appendData(t.data)
            }, e.prototype._getCoordsFromItemModel = function (t) {
                var e = this.getData().getItemModel(t);
                return e.option instanceof Array ? e.option : e.getShallow("coords")
            }, e.prototype.getLineCoordsCount = function (t) {
                return this._flatCoordsOffset ? this._flatCoordsOffset[2 * t + 1] : this._getCoordsFromItemModel(t).length
            }, e.prototype.getLineCoords = function (t, e) {
                if (this._flatCoordsOffset) {
                    for (var n = this._flatCoordsOffset[2 * t], i = this._flatCoordsOffset[2 * t + 1], r = 0; r < i; r++) e[r] = e[r] || [], e[r][0] = this._flatCoords[n + 2 * r], e[r][1] = this._flatCoords[n + 2 * r + 1];
                    return i
                }
                var o = this._getCoordsFromItemModel(t);
                for (r = 0; r < o.length; r++) e[r] = e[r] || [], e[r][0] = o[r][0], e[r][1] = o[r][1];
                return o.length
            }, e.prototype._processFlatCoordsArray = function (t) {
                var e = 0;
                if (this._flatCoords && (e = this._flatCoords.length), Ct(t[0])) {
                    for (var n = t.length, i = new Ak(n), r = new bk(n), o = 0, a = 0, s = 0, l = 0; l < n;) {
                        s++;
                        var u = t[l++];
                        i[a++] = o + e, i[a++] = u;
                        for (var c = 0; c < u; c++) {
                            var h = t[l++], d = t[l++];
                            r[o++] = h, r[o++] = d
                        }
                    }
                    return {flatCoordsOffset: new Uint32Array(i.buffer, 0, a), flatCoords: r, count: s}
                }
                return {flatCoordsOffset: null, flatCoords: null, count: t.length}
            }, e.prototype.getInitialData = function (t, e) {
                var n = new DS(["value"], this);
                return n.hasItemOption = !1, n.initData(t.data, [], (function (t, e, i, r) {
                    if (t instanceof Array) return NaN;
                    n.hasItemOption = !0;
                    var o = t.value;
                    return null != o ? o instanceof Array ? o[r] : o : void 0
                })), n
            }, e.prototype.formatTooltip = function (t, e, n) {
                var i = this.getData().getItemModel(t), r = i.get("name");
                if (r) return r;
                var o = i.get("fromName"), a = i.get("toName"), s = [];
                return null != o && s.push(o), null != a && s.push(a), hf("nameValue", {name: s.join(" > ")})
            }, e.prototype.preventIncremental = function () {
                return !!this.get(["effect", "show"])
            }, e.prototype.getProgressive = function () {
                var t = this.option.progressive;
                return null == t ? this.option.large ? 1e4 : this.get("progressive") : t
            }, e.prototype.getProgressiveThreshold = function () {
                var t = this.option.progressiveThreshold;
                return null == t ? this.option.large ? 2e4 : this.get("progressiveThreshold") : t
            }, e.prototype.getZLevelKey = function () {
                var t = this.getModel("effect"), e = t.get("trailLength");
                return this.getData().count() > this.getProgressiveThreshold() ? this.id : t.get("show") && e > 0 ? e + "" : ""
            }, e.type = "series.lines", e.dependencies = ["grid", "polar", "geo", "calendar"], e.defaultOption = {
                coordinateSystem: "geo",
                z: 2,
                legendHoverLink: !0,
                xAxisIndex: 0,
                yAxisIndex: 0,
                symbol: ["none", "none"],
                symbolSize: [10, 10],
                geoIndex: 0,
                effect: {
                    show: !1,
                    period: 4,
                    constantSpeed: 0,
                    symbol: "circle",
                    symbolSize: 3,
                    loop: !0,
                    trailLength: .2
                },
                large: !1,
                largeThreshold: 2e3,
                polyline: !1,
                clip: !0,
                label: {show: !1, position: "end"},
                lineStyle: {opacity: .5}
            }, e
        }(kf);
        const Ck = Ek;

        function Dk(t) {
            return t instanceof Array || (t = [t, t]), t
        }

        const wk = {
            seriesType: "lines", reset: function (t) {
                var e = Dk(t.get("symbol")), n = Dk(t.get("symbolSize")), i = t.getData();
                return i.setVisual("fromSymbol", e && e[0]), i.setVisual("toSymbol", e && e[1]), i.setVisual("fromSymbolSize", n && n[0]), i.setVisual("toSymbolSize", n && n[1]), {
                    dataEach: i.hasItemOption ? function (t, e) {
                        var n = t.getItemModel(e), i = Dk(n.getShallow("symbol", !0)),
                            r = Dk(n.getShallow("symbolSize", !0));
                        i[0] && t.setItemVisual(e, "fromSymbol", i[0]), i[1] && t.setItemVisual(e, "toSymbol", i[1]), r[0] && t.setItemVisual(e, "fromSymbolSize", r[0]), r[1] && t.setItemVisual(e, "toSymbolSize", r[1])
                    } : null
                }
            }
        };
        var Mk = function () {
            function t() {
                this.blurSize = 30, this.pointSize = 20, this.maxOpacity = 1, this.minOpacity = 0, this._gradientPixels = {
                    inRange: null,
                    outOfRange: null
                };
                var t = j.createCanvas();
                this.canvas = t
            }

            return t.prototype.update = function (t, e, n, i, r, o) {
                var a = this._getBrush(), s = this._getGradient(r, "inRange"), l = this._getGradient(r, "outOfRange"),
                    u = this.pointSize + this.blurSize, c = this.canvas, h = c.getContext("2d"), d = t.length;
                c.width = e, c.height = n;
                for (var p = 0; p < d; ++p) {
                    var f = t[p], g = f[0], m = f[1], y = i(f[2]);
                    h.globalAlpha = y, h.drawImage(a, g - u, m - u)
                }
                if (!c.width || !c.height) return c;
                for (var v = h.getImageData(0, 0, c.width, c.height), _ = v.data, T = 0, x = _.length, S = this.minOpacity, A = this.maxOpacity - S; T < x;) {
                    y = _[T + 3] / 256;
                    var b = 4 * Math.floor(255 * y);
                    if (y > 0) {
                        var I = o(y) ? s : l;
                        y > 0 && (y = y * A + S), _[T++] = I[b], _[T++] = I[b + 1], _[T++] = I[b + 2], _[T++] = I[b + 3] * y * 256
                    } else T += 4
                }
                return h.putImageData(v, 0, 0), c
            }, t.prototype._getBrush = function () {
                var t = this._brushCanvas || (this._brushCanvas = j.createCanvas()), e = this.pointSize + this.blurSize,
                    n = 2 * e;
                t.width = n, t.height = n;
                var i = t.getContext("2d");
                return i.clearRect(0, 0, n, n), i.shadowOffsetX = n, i.shadowBlur = this.blurSize, i.shadowColor = "#000", i.beginPath(), i.arc(-e, e, this.pointSize, 0, 2 * Math.PI, !0), i.closePath(), i.fill(), t
            }, t.prototype._getGradient = function (t, e) {
                for (var n = this._gradientPixels, i = n[e] || (n[e] = new Uint8ClampedArray(1024)), r = [0, 0, 0, 0], o = 0, a = 0; a < 256; a++) t[e](a / 255, !0, r), i[o++] = r[0], i[o++] = r[1], i[o++] = r[2], i[o++] = r[3];
                return i
            }, t
        }();
        const Nk = Mk;

        function Ok(t) {
            var e = t.dimensions;
            return "lng" === e[0] && "lat" === e[1]
        }

        var Lk = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i;
                e.eachComponent("visualMap", (function (e) {
                    e.eachTargetSeries((function (n) {
                        n === t && (i = e)
                    }))
                })), this._progressiveEls = null, this.group.removeAll();
                var r = t.coordinateSystem;
                "cartesian2d" === r.type || "calendar" === r.type ? this._renderOnCartesianAndCalendar(t, n, 0, t.getData().count()) : Ok(r) && this._renderOnGeo(r, t, i, n)
            }, e.prototype.incrementalPrepareRender = function (t, e, n) {
                this.group.removeAll()
            }, e.prototype.incrementalRender = function (t, e, n, i) {
                var r = e.coordinateSystem;
                r && (Ok(r) ? this.render(e, n, i) : (this._progressiveEls = [], this._renderOnCartesianAndCalendar(e, i, t.start, t.end, !0)))
            }, e.prototype.eachRendered = function (t) {
                Bm(this._progressiveEls || this.group, t)
            }, e.prototype._renderOnCartesianAndCalendar = function (t, e, n, i, r) {
                var o, a, s, l, u = t.coordinateSystem, c = hA(u, "cartesian2d");
                if (c) {
                    var h = u.getAxis("x"), d = u.getAxis("y");
                    0, o = h.getBandWidth() + .5, a = d.getBandWidth() + .5, s = h.scale.getExtent(), l = d.scale.getExtent()
                }
                for (var p = this.group, f = t.getData(), g = t.getModel(["emphasis", "itemStyle"]).getItemStyle(), m = t.getModel(["blur", "itemStyle"]).getItemStyle(), y = t.getModel(["select", "itemStyle"]).getItemStyle(), v = t.get(["itemStyle", "borderRadius"]), _ = rc(t), T = t.getModel("emphasis"), x = T.get("focus"), S = T.get("blurScope"), A = T.get("disabled"), b = c ? [f.mapDimension("x"), f.mapDimension("y"), f.mapDimension("value")] : [f.mapDimension("time"), f.mapDimension("value")], I = n; I < i; I++) {
                    var E = void 0, C = f.getItemVisual(I, "style");
                    if (c) {
                        var D = f.get(b[0], I), w = f.get(b[1], I);
                        if (isNaN(f.get(b[2], I)) || isNaN(D) || isNaN(w) || D < s[0] || D > s[1] || w < l[0] || w > l[1]) continue;
                        var M = u.dataToPoint([D, w]);
                        E = new Al({shape: {x: M[0] - o / 2, y: M[1] - a / 2, width: o, height: a}, style: C})
                    } else {
                        if (isNaN(f.get(b[1], I))) continue;
                        E = new Al({z2: 1, shape: u.dataToRect([f.get(b[0], I)]).contentShape, style: C})
                    }
                    if (f.hasItemOption) {
                        var N = f.getItemModel(I), O = N.getModel("emphasis");
                        g = O.getModel("itemStyle").getItemStyle(), m = N.getModel(["blur", "itemStyle"]).getItemStyle(), y = N.getModel(["select", "itemStyle"]).getItemStyle(), v = N.get(["itemStyle", "borderRadius"]), x = O.get("focus"), S = O.get("blurScope"), A = O.get("disabled"), _ = rc(N)
                    }
                    E.shape.r = v;
                    var L = t.getRawValue(I), R = "-";
                    L && null != L[2] && (R = L[2] + ""), ic(E, _, {
                        labelFetcher: t,
                        labelDataIndex: I,
                        defaultOpacity: C.opacity,
                        defaultText: R
                    }), E.ensureState("emphasis").style = g, E.ensureState("blur").style = m, E.ensureState("select").style = y, ku(E, x, S, A), E.incremental = r, r && (E.states.emphasis.hoverLayer = !0), p.add(E), f.setItemGraphicEl(I, E), this._progressiveEls && this._progressiveEls.push(E)
                }
            }, e.prototype._renderOnGeo = function (t, e, n, i) {
                var r = n.targetVisuals.inRange, o = n.targetVisuals.outOfRange, a = e.getData(),
                    s = this._hmLayer || this._hmLayer || new Nk;
                s.blurSize = e.get("blurSize"), s.pointSize = e.get("pointSize"), s.minOpacity = e.get("minOpacity"), s.maxOpacity = e.get("maxOpacity");
                var l = t.getViewRect().clone(), u = t.getRoamTransform();
                l.applyTransform(u);
                var c = Math.max(l.x, 0), h = Math.max(l.y, 0), d = Math.min(l.width + l.x, i.getWidth()),
                    p = Math.min(l.height + l.y, i.getHeight()), f = d - c, g = p - h,
                    m = [a.mapDimension("lng"), a.mapDimension("lat"), a.mapDimension("value")],
                    y = a.mapArray(m, (function (e, n, i) {
                        var r = t.dataToPoint([e, n]);
                        return r[0] -= c, r[1] -= h, r.push(i), r
                    })), v = n.getExtent(), _ = "visualMap.continuous" === n.type ? function (t, e) {
                        var n = t[1] - t[0];
                        return e = [(e[0] - t[0]) / n, (e[1] - t[0]) / n], function (t) {
                            return t >= e[0] && t <= e[1]
                        }
                    }(v, n.option.range) : function (t, e, n) {
                        var i = t[1] - t[0], r = (e = yt(e, (function (e) {
                            return {interval: [(e.interval[0] - t[0]) / i, (e.interval[1] - t[0]) / i]}
                        }))).length, o = 0;
                        return function (t) {
                            var i;
                            for (i = o; i < r; i++) if ((a = e[i].interval)[0] <= t && t <= a[1]) {
                                o = i;
                                break
                            }
                            if (i === r) for (i = o - 1; i >= 0; i--) {
                                var a;
                                if ((a = e[i].interval)[0] <= t && t <= a[1]) {
                                    o = i;
                                    break
                                }
                            }
                            return i >= 0 && i < r && n[i]
                        }
                    }(v, n.getPieceList(), n.option.selected);
                s.update(y, f, g, r.color.getNormalizer(), {
                    inRange: r.color.getColorMapper(),
                    outOfRange: o.color.getColorMapper()
                }, _);
                var T = new gl({style: {width: f, height: g, x: c, y: h, image: s.canvas}, silent: !0});
                this.group.add(T)
            }, e.type = "heatmap", e
        }(jm);
        const Rk = Lk;
        const kk = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.getInitialData = function (t, e) {
                return GS(null, this, {generateCoord: "value"})
            }, e.prototype.preventIncremental = function () {
                var t = bd.get(this.get("coordinateSystem"));
                if (t && t.dimensions) return "lng" === t.dimensions[0] && "lat" === t.dimensions[1]
            }, e.type = "series.heatmap", e.dependencies = ["grid", "geo", "calendar"], e.defaultOption = {
                coordinateSystem: "cartesian2d",
                z: 2,
                geoIndex: 0,
                blurSize: 30,
                pointSize: 20,
                maxOpacity: 1,
                minOpacity: 0,
                select: {itemStyle: {borderColor: "#212121"}}
            }, e
        }(kf);
        var Pk = ["itemStyle", "borderWidth"], Gk = [{xy: "x", wh: "width", index: 0, posDesc: ["left", "right"]}, {
            xy: "y",
            wh: "height",
            index: 1,
            posDesc: ["top", "bottom"]
        }], Bk = new sg;

        function Fk(t, e, n, i) {
            var r = t.getItemLayout(e), o = n.get("symbolRepeat"), a = n.get("symbolClip"),
                s = n.get("symbolPosition") || "start", l = (n.get("symbolRotate") || 0) * Math.PI / 180 || 0,
                u = n.get("symbolPatternSize") || 2, c = n.isAnimationEnabled(), h = {
                    dataIndex: e,
                    layout: r,
                    itemModel: n,
                    symbolType: t.getItemVisual(e, "symbol") || "circle",
                    style: t.getItemVisual(e, "style"),
                    symbolClip: a,
                    symbolRepeat: o,
                    symbolRepeatDirection: n.get("symbolRepeatDirection"),
                    symbolPatternSize: u,
                    rotation: l,
                    animationModel: c ? n : null,
                    hoverScale: c && n.get(["emphasis", "scale"]),
                    z2: n.getShallow("z", !0) || 0
                };
            !function (t, e, n, i, r) {
                var o, a = i.valueDim, s = t.get("symbolBoundingData"),
                    l = i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()), u = l.toGlobalCoord(l.dataToCoord(0)),
                    c = 1 - +(n[a.wh] <= 0);
                if (At(s)) {
                    var h = [Hk(l, s[0]) - u, Hk(l, s[1]) - u];
                    h[1] < h[0] && h.reverse(), o = h[c]
                } else o = null != s ? Hk(l, s) - u : e ? i.coordSysExtent[a.index][c] - u : n[a.wh];
                r.boundingLength = o, e && (r.repeatCutLength = n[a.wh]);
                r.pxSign = o > 0 ? 1 : -1
            }(n, o, r, i, h), function (t, e, n, i, r, o, a, s, l, u) {
                var c, h = l.valueDim, d = l.categoryDim, p = Math.abs(n[d.wh]), f = t.getItemVisual(e, "symbolSize");
                c = At(f) ? f.slice() : null == f ? ["100%", "100%"] : [f, f];
                c[d.index] = wo(c[d.index], p), c[h.index] = wo(c[h.index], i ? p : Math.abs(o)), u.symbolSize = c;
                var g = u.symbolScale = [c[0] / s, c[1] / s];
                g[h.index] *= (l.isHorizontal ? -1 : 1) * a
            }(t, e, r, o, 0, h.boundingLength, h.pxSign, u, i, h), function (t, e, n, i, r) {
                var o = t.get(Pk) || 0;
                o && (Bk.attr({
                    scaleX: e[0],
                    scaleY: e[1],
                    rotation: n
                }), Bk.updateTransform(), o /= Bk.getLineScale(), o *= e[i.valueDim.index]);
                r.valueLineWidth = o || 0
            }(n, h.symbolScale, l, i, h);
            var d = h.symbolSize, p = ov(n.get("symbolOffset"), d);
            return function (t, e, n, i, r, o, a, s, l, u, c, h) {
                var d = c.categoryDim, p = c.valueDim, f = h.pxSign, g = Math.max(e[p.index] + s, 0), m = g;
                if (i) {
                    var y = Math.abs(l), v = Rt(t.get("symbolMargin"), "15%") + "", _ = !1;
                    v.lastIndexOf("!") === v.length - 1 && (_ = !0, v = v.slice(0, v.length - 1));
                    var T = wo(v, e[p.index]), x = Math.max(g + 2 * T, 0), S = _ ? 0 : 2 * T, A = qo(i),
                        b = A ? i : eP((y + S) / x);
                    x = g + 2 * (T = (y - b * g) / 2 / (_ ? b : Math.max(b - 1, 1))), S = _ ? 0 : 2 * T, A || "fixed" === i || (b = u ? eP((Math.abs(u) + S) / x) : 0), m = b * x - S, h.repeatTimes = b, h.symbolMargin = T
                }
                var I = f * (m / 2), E = h.pathPosition = [];
                E[d.index] = n[d.wh] / 2, E[p.index] = "start" === a ? I : "end" === a ? l - I : l / 2, o && (E[0] += o[0], E[1] += o[1]);
                var C = h.bundlePosition = [];
                C[d.index] = n[d.xy], C[p.index] = n[p.xy];
                var D = h.barRectShape = ht({}, n);
                D[p.wh] = f * Math.max(Math.abs(n[p.wh]), Math.abs(E[p.index] + I)), D[d.wh] = n[d.wh];
                var w = h.clipShape = {};
                w[d.xy] = -n[d.xy], w[d.wh] = c.ecSize[d.wh], w[p.xy] = 0, w[p.wh] = n[p.wh]
            }(n, d, r, o, 0, p, s, h.valueLineWidth, h.boundingLength, h.repeatCutLength, i, h), h
        }

        function Hk(t, e) {
            return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))
        }

        function Uk(t) {
            var e = t.symbolPatternSize, n = iv(t.symbolType, -e / 2, -e / 2, e, e);
            return n.attr({culling: !0}), "image" !== n.type && n.setStyle({strokeNoScale: !0}), n
        }

        function Vk(t, e, n, i) {
            var r = t.__pictorialBundle, o = n.symbolSize, a = n.valueLineWidth, s = n.pathPosition, l = e.valueDim,
                u = n.repeatTimes || 0, c = 0, h = o[e.valueDim.index] + a + 2 * n.symbolMargin;
            for ($k(t, (function (t) {
                t.__pictorialAnimationIndex = c, t.__pictorialRepeatTimes = u, c < u ? Jk(t, null, f(c), n, i) : Jk(t, null, {
                    scaleX: 0,
                    scaleY: 0
                }, n, i, (function () {
                    r.remove(t)
                })), c++
            })); c < u; c++) {
                var d = Uk(n);
                d.__pictorialAnimationIndex = c, d.__pictorialRepeatTimes = u, r.add(d);
                var p = f(c);
                Jk(d, {x: p.x, y: p.y, scaleX: 0, scaleY: 0}, {
                    scaleX: p.scaleX,
                    scaleY: p.scaleY,
                    rotation: p.rotation
                }, n, i)
            }

            function f(t) {
                var e = s.slice(), i = n.pxSign, r = t;
                return ("start" === n.symbolRepeatDirection ? i > 0 : i < 0) && (r = u - 1 - t), e[l.index] = h * (r - u / 2 + .5) + s[l.index], {
                    x: e[0],
                    y: e[1],
                    scaleX: n.symbolScale[0],
                    scaleY: n.symbolScale[1],
                    rotation: n.rotation
                }
            }
        }

        function zk(t, e, n, i) {
            var r = t.__pictorialBundle, o = t.__pictorialMainPath;
            o ? Jk(o, null, {
                x: n.pathPosition[0],
                y: n.pathPosition[1],
                scaleX: n.symbolScale[0],
                scaleY: n.symbolScale[1],
                rotation: n.rotation
            }, n, i) : (o = t.__pictorialMainPath = Uk(n), r.add(o), Jk(o, {
                x: n.pathPosition[0],
                y: n.pathPosition[1],
                scaleX: 0,
                scaleY: 0,
                rotation: n.rotation
            }, {scaleX: n.symbolScale[0], scaleY: n.symbolScale[1]}, n, i))
        }

        function Wk(t, e, n) {
            var i = ht({}, e.barRectShape), r = t.__pictorialBarRect;
            r ? Jk(r, null, {shape: i}, e, n) : ((r = t.__pictorialBarRect = new Al({
                z2: 2,
                shape: i,
                silent: !0,
                style: {stroke: "transparent", fill: "transparent", lineWidth: 0}
            })).disableMorphing = !0, t.add(r))
        }

        function Yk(e, n, i, r) {
            if (i.symbolClip) {
                var o = e.__pictorialClipPath, a = ht({}, i.clipShape), s = n.valueDim, l = i.animationModel,
                    u = i.dataIndex;
                if (o) ju(o, {shape: a}, l, u); else {
                    a[s.wh] = 0, o = new Al({shape: a}), e.__pictorialBundle.setClipPath(o), e.__pictorialClipPath = o;
                    var c = {};
                    c[s.wh] = i.clipShape[s.wh], t[r ? "updateProps" : "initProps"](o, {shape: c}, l, u)
                }
            }
        }

        function qk(t, e) {
            var n = t.getItemModel(e);
            return n.getAnimationDelayParams = jk, n.isAnimationEnabled = Xk, n
        }

        function jk(t) {
            return {index: t.__pictorialAnimationIndex, count: t.__pictorialRepeatTimes}
        }

        function Xk() {
            return this.parentModel.isAnimationEnabled() && !!this.getShallow("animation")
        }

        function Zk(t, e, n, i) {
            var r = new xo, o = new xo;
            return r.add(o), r.__pictorialBundle = o, o.x = n.bundlePosition[0], o.y = n.bundlePosition[1], n.symbolRepeat ? Vk(r, e, n) : zk(r, 0, n), Wk(r, n, i), Yk(r, e, n, i), r.__pictorialShapeStr = Qk(t, n), r.__pictorialSymbolMeta = n, r
        }

        function Kk(t, e, n, i) {
            var r = i.__pictorialBarRect;
            r && r.removeTextContent();
            var o = [];
            $k(i, (function (t) {
                o.push(t)
            })), i.__pictorialMainPath && o.push(i.__pictorialMainPath), i.__pictorialClipPath && (n = null), mt(o, (function (t) {
                Ku(t, {scaleX: 0, scaleY: 0}, n, e, (function () {
                    i.parent && i.parent.remove(i)
                }))
            })), t.setItemGraphicEl(e, null)
        }

        function Qk(t, e) {
            return [t.getItemVisual(e.dataIndex, "symbol") || "none", !!e.symbolRepeat, !!e.symbolClip].join(":")
        }

        function $k(t, e, n) {
            mt(t.__pictorialBundle.children(), (function (i) {
                i !== t.__pictorialBarRect && e.call(n, i)
            }))
        }

        function Jk(e, n, i, r, o, a) {
            n && e.attr(n), r.symbolClip && !o ? i && e.attr(i) : i && t[o ? "updateProps" : "initProps"](e, i, r.animationModel, r.dataIndex, a)
        }

        function tP(t, e, n) {
            var i = n.dataIndex, r = n.itemModel, o = r.getModel("emphasis"),
                a = o.getModel("itemStyle").getItemStyle(), s = r.getModel(["blur", "itemStyle"]).getItemStyle(),
                l = r.getModel(["select", "itemStyle"]).getItemStyle(), u = r.getShallow("cursor"), c = o.get("focus"),
                h = o.get("blurScope"), d = o.get("scale");
            $k(t, (function (t) {
                if (t instanceof gl) {
                    var e = t.style;
                    t.useStyle(ht({image: e.image, x: e.x, y: e.y, width: e.width, height: e.height}, n.style))
                } else t.useStyle(n.style);
                var i = t.ensureState("emphasis");
                i.style = a, d && (i.scaleX = 1.1 * t.scaleX, i.scaleY = 1.1 * t.scaleY), t.ensureState("blur").style = s, t.ensureState("select").style = l, u && (t.cursor = u), t.z2 = n.z2
            }));
            var p = e.valueDim.posDesc[+(n.boundingLength > 0)];
            ic(t.__pictorialBarRect, rc(r), {
                labelFetcher: e.seriesModel,
                labelDataIndex: i,
                defaultText: FS(e.seriesModel.getData(), i),
                inheritColor: n.style.fill,
                defaultOpacity: n.style.opacity,
                defaultOutsidePosition: p
            }), ku(t, c, h, o.get("disabled"))
        }

        function eP(t) {
            var e = Math.round(t);
            return Math.abs(t - e) < 1e-4 ? e : Math.ceil(t)
        }

        const nP = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i = this.group, r = t.getData(), o = this._data, a = t.coordinateSystem,
                    s = a.getBaseAxis().isHorizontal(), l = a.master.getRect(), u = {
                        ecSize: {width: n.getWidth(), height: n.getHeight()},
                        seriesModel: t,
                        coordSys: a,
                        coordSysExtent: [[l.x, l.x + l.width], [l.y, l.y + l.height]],
                        isHorizontal: s,
                        valueDim: Gk[+s],
                        categoryDim: Gk[1 - +s]
                    };
                return r.diff(o).add((function (t) {
                    if (r.hasValue(t)) {
                        var e = qk(r, t), n = Fk(r, t, e, u), o = Zk(r, u, n);
                        r.setItemGraphicEl(t, o), i.add(o), tP(o, u, n)
                    }
                })).update((function (t, e) {
                    var n = o.getItemGraphicEl(e);
                    if (r.hasValue(t)) {
                        var a = qk(r, t), s = Fk(r, t, a, u), l = Qk(r, s);
                        n && l !== n.__pictorialShapeStr && (i.remove(n), r.setItemGraphicEl(t, null), n = null), n ? function (t, e, n) {
                            var i = n.animationModel, r = n.dataIndex, o = t.__pictorialBundle;
                            ju(o, {
                                x: n.bundlePosition[0],
                                y: n.bundlePosition[1]
                            }, i, r), n.symbolRepeat ? Vk(t, e, n, !0) : zk(t, e, n, !0);
                            Wk(t, n, !0), Yk(t, e, n, !0)
                        }(n, u, s) : n = Zk(r, u, s, !0), r.setItemGraphicEl(t, n), n.__pictorialSymbolMeta = s, i.add(n), tP(n, u, s)
                    } else i.remove(n)
                })).remove((function (t) {
                    var e = o.getItemGraphicEl(t);
                    e && Kk(o, t, e.__pictorialSymbolMeta.animationModel, e)
                })).execute(), this._data = r, this.group
            }, e.prototype.remove = function (t, e) {
                var n = this.group, i = this._data;
                t.get("animation") ? i && i.eachItemGraphicEl((function (e) {
                    Kk(i, Hl(e).dataIndex, t, e)
                })) : n.removeAll()
            }, e.type = "pictorialBar", e
        }(jm);
        const iP = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.hasSymbolVisual = !0, n.defaultSymbol = "roundRect", n
            }

            return G(e, t), e.prototype.getInitialData = function (e) {
                return e.stack = null, t.prototype.getInitialData.apply(this, arguments)
            }, e.type = "series.pictorialBar", e.dependencies = ["grid"], e.defaultOption = Oc(FA.defaultOption, {
                symbol: "circle",
                symbolSize: null,
                symbolRotate: null,
                symbolPosition: null,
                symbolOffset: null,
                symbolMargin: null,
                symbolRepeat: !1,
                symbolRepeatDirection: "end",
                symbolClip: !1,
                symbolBoundingData: null,
                symbolPatternSize: 400,
                barGap: "-100%",
                progressive: 0,
                emphasis: {scale: !1},
                select: {itemStyle: {borderColor: "#212121"}}
            }), e
        }(FA);
        var rP = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n._layers = [], n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i = t.getData(), r = this, o = this.group, a = t.getLayerSeries(), s = i.getLayout("layoutInfo"),
                    l = s.rect, u = s.boundaryGap;

                function c(t) {
                    return t.name
                }

                o.x = 0, o.y = l.y + u[0];
                var h = new iS(this._layersSeries || [], a, c, c), d = [];

                function p(e, n, s) {
                    var l = r._layers;
                    if ("remove" !== e) {
                        for (var u, c, h = [], p = [], f = a[n].indices, g = 0; g < f.length; g++) {
                            var m = i.getItemLayout(f[g]), y = m.x, v = m.y0, _ = m.y;
                            h.push(y, v), p.push(y, v + _), u = i.getItemVisual(f[g], "style")
                        }
                        var T = i.getItemLayout(f[0]), x = t.getModel("label").get("margin"),
                            S = t.getModel("emphasis");
                        if ("add" === e) {
                            var A = d[n] = new xo;
                            c = new sA({
                                shape: {
                                    points: h,
                                    stackedOnPoints: p,
                                    smooth: .4,
                                    stackedOnSmooth: .4,
                                    smoothConstraint: !1
                                }, z2: 0
                            }), A.add(c), o.add(A), t.isAnimationEnabled() && c.setClipPath(function (t, e, n) {
                                var i = new Al({shape: {x: t.x - 10, y: t.y - 10, width: 0, height: t.height + 20}});
                                return Xu(i, {
                                    shape: {
                                        x: t.x - 50,
                                        width: t.width + 100,
                                        height: t.height + 20
                                    }
                                }, e, n), i
                            }(c.getBoundingRect(), t, (function () {
                                c.removeClipPath()
                            })))
                        } else {
                            A = l[s];
                            c = A.childAt(0), o.add(A), d[n] = A, ju(c, {
                                shape: {
                                    points: h,
                                    stackedOnPoints: p
                                }
                            }, t), Ju(c)
                        }
                        ic(c, rc(t), {
                            labelDataIndex: f[g - 1],
                            defaultText: i.getName(f[g - 1]),
                            inheritColor: u.fill
                        }, {normal: {verticalAlign: "middle"}}), c.setTextConfig({position: null, local: !0});
                        var b = c.getTextContent();
                        b && (b.x = T.x - x, b.y = T.y0 + T.y / 2), c.useStyle(u), i.setItemGraphicEl(n, c), Fu(c, t), ku(c, S.get("focus"), S.get("blurScope"), S.get("disabled"))
                    } else o.remove(l[n])
                }

                h.add(xt(p, this, "add")).update(xt(p, this, "update")).remove(xt(p, this, "remove")).execute(), this._layersSeries = a, this._layers = d
            }, e.type = "themeRiver", e
        }(jm);
        const oP = rP;
        var aP = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function (e) {
                t.prototype.init.apply(this, arguments), this.legendVisualProvider = new Cb(xt(this.getData, this), xt(this.getRawData, this))
            }, e.prototype.fixData = function (t) {
                var e = t.length, n = {}, i = _a(t, (function (t) {
                    return n.hasOwnProperty(t[0] + "") || (n[t[0] + ""] = -1), t[2]
                })), r = [];
                i.buckets.each((function (t, e) {
                    r.push({name: e, dataList: t})
                }));
                for (var o = r.length, a = 0; a < o; ++a) {
                    for (var s = r[a].name, l = 0; l < r[a].dataList.length; ++l) {
                        var u = r[a].dataList[l][0] + "";
                        n[u] = a
                    }
                    for (var u in n) n.hasOwnProperty(u) && n[u] !== a && (n[u] = a, t[e] = [u, 0, s], e++)
                }
                return t
            }, e.prototype.getInitialData = function (t, e) {
                for (var n = this.getReferringComponents("singleAxis", ga).models[0].get("type"), i = _t(t.data, (function (t) {
                    return void 0 !== t[2]
                })), r = this.fixData(i || []), o = [], a = this.nameMap = jt(), s = 0, l = 0; l < r.length; ++l) o.push(r[l][2]), a.get(r[l][2]) || (a.set(r[l][2], s), s++);
                var u = wS(r, {
                    coordDimensions: ["single"],
                    dimensionsDefine: [{name: "time", type: aS(n)}, {name: "value", type: "float"}, {
                        name: "name",
                        type: "ordinal"
                    }],
                    encodeDefine: {single: 0, value: 1, itemName: 2}
                }).dimensions, c = new DS(u, this);
                return c.initData(r), c
            }, e.prototype.getLayerSeries = function () {
                for (var t = this.getData(), e = t.count(), n = [], i = 0; i < e; ++i) n[i] = i;
                var r = t.mapDimension("single"), o = _a(n, (function (e) {
                    return t.get("name", e)
                })), a = [];
                return o.buckets.each((function (e, n) {
                    e.sort((function (e, n) {
                        return t.get(r, e) - t.get(r, n)
                    })), a.push({name: n, indices: e})
                })), a
            }, e.prototype.getAxisTooltipData = function (t, e, n) {
                At(t) || (t = t ? [t] : []);
                for (var i, r = this.getData(), o = this.getLayerSeries(), a = [], s = o.length, l = 0; l < s; ++l) {
                    for (var u = Number.MAX_VALUE, c = -1, h = o[l].indices.length, d = 0; d < h; ++d) {
                        var p = r.get(t[0], o[l].indices[d]), f = Math.abs(p - e);
                        f <= u && (i = p, u = f, c = o[l].indices[d])
                    }
                    a.push(c)
                }
                return {dataIndices: a, nestestValue: i}
            }, e.prototype.formatTooltip = function (t, e, n) {
                var i = this.getData();
                return hf("nameValue", {name: i.getName(t), value: i.get(i.mapDimension("value"), t)})
            }, e.type = "series.themeRiver", e.dependencies = ["singleAxis"], e.defaultOption = {
                z: 2,
                colorBy: "data",
                coordinateSystem: "singleAxis",
                boundaryGap: ["10%", "10%"],
                singleAxisIndex: 0,
                animationEasing: "linear",
                label: {margin: 4, show: !0, position: "left", fontSize: 11},
                emphasis: {label: {show: !0}}
            }, e
        }(kf);
        const sP = aP;

        function lP(t, e) {
            t.eachSeriesByType("themeRiver", (function (t) {
                var e = t.getData(), n = t.coordinateSystem, i = {}, r = n.getRect();
                i.rect = r;
                var o = t.get("boundaryGap"), a = n.getAxis();
                (i.boundaryGap = o, "horizontal" === a.orient) ? (o[0] = wo(o[0], r.height), o[1] = wo(o[1], r.height), uP(e, t, r.height - o[0] - o[1])) : (o[0] = wo(o[0], r.width), o[1] = wo(o[1], r.width), uP(e, t, r.width - o[0] - o[1]));
                e.setLayout("layoutInfo", i)
            }))
        }

        function uP(t, e, n) {
            if (t.count()) for (var i, r = e.coordinateSystem, o = e.getLayerSeries(), a = t.mapDimension("single"), s = t.mapDimension("value"), l = yt(o, (function (e) {
                return yt(e.indices, (function (e) {
                    var n = r.dataToPoint(t.get(a, e));
                    return n[1] = t.get(s, e), n
                }))
            })), u = function (t) {
                for (var e = t.length, n = t[0].length, i = [], r = [], o = 0, a = 0; a < n; ++a) {
                    for (var s = 0, l = 0; l < e; ++l) s += t[l][a][1];
                    s > o && (o = s), i.push(s)
                }
                for (var u = 0; u < n; ++u) r[u] = (o - i[u]) / 2;
                o = 0;
                for (var c = 0; c < n; ++c) {
                    var h = i[c] + r[c];
                    h > o && (o = h)
                }
                return {y0: r, max: o}
            }(l), c = u.y0, h = n / u.max, d = o.length, p = o[0].indices.length, f = 0; f < p; ++f) {
                i = c[f] * h, t.setItemLayout(o[0].indices[f], {
                    layerIndex: 0,
                    x: l[0][f][0],
                    y0: i,
                    y: l[0][f][1] * h
                });
                for (var g = 1; g < d; ++g) i += l[g - 1][f][1] * h, t.setItemLayout(o[g].indices[f], {
                    layerIndex: g,
                    x: l[g][f][0],
                    y0: i,
                    y: l[g][f][1] * h
                })
            }
        }

        var cP = function (t) {
            function e(e, n, i, r) {
                var o = t.call(this) || this;
                o.z2 = 2, o.textConfig = {inside: !0}, Hl(o).seriesIndex = n.seriesIndex;
                var a = new Fl({z2: 4, silent: e.getModel().get(["label", "silent"])});
                return o.setTextContent(a), o.updateData(!0, e, n, i, r), o
            }

            return G(e, t), e.prototype.updateData = function (t, e, n, i, r) {
                this.node = e, e.piece = this, n = n || this._seriesModel, i = i || this._ecModel;
                var o = this;
                Hl(o).dataIndex = e.dataIndex;
                var a = e.getModel(), s = a.getModel("emphasis"), l = e.getLayout(), u = ht({}, l);
                u.label = null;
                var c = e.getVisual("style");
                c.lineJoin = "bevel";
                var h = e.getVisual("decal");
                h && (c.decal = Rv(h, r));
                var d = qA(a.getModel("itemStyle"), u, !0);
                ht(u, d), mt(Zl, (function (t) {
                    var e = o.ensureState(t), n = a.getModel([t, "itemStyle"]);
                    e.style = n.getItemStyle();
                    var i = qA(n, u);
                    i && (e.shape = i)
                })), t ? (o.setShape(u), o.shape.r = l.r0, Xu(o, {shape: {r: l.r}}, n, e.dataIndex)) : (ju(o, {shape: u}, n), Ju(o)), o.useStyle(c), this._updateLabel(n);
                var p = a.getShallow("cursor");
                p && o.attr("cursor", p), this._seriesModel = n || this._seriesModel, this._ecModel = i || this._ecModel;
                var f = s.get("focus");
                ku(this, "ancestor" === f ? e.getAncestorsIndices() : "descendant" === f ? e.getDescendantIndices() : f, s.get("blurScope"), s.get("disabled"))
            }, e.prototype._updateLabel = function (t) {
                var e = this, n = this.node.getModel(), i = n.getModel("label"), r = this.node.getLayout(),
                    o = r.endAngle - r.startAngle, a = (r.startAngle + r.endAngle) / 2, s = Math.cos(a),
                    l = Math.sin(a), u = this, c = u.getTextContent(), h = this.node.dataIndex,
                    d = i.get("minAngle") / 180 * Math.PI, p = i.get("show") && !(null != d && Math.abs(o) < d);

                function f(t, e) {
                    var n = t.get(e);
                    return null == n ? i.get(e) : n
                }

                c.ignore = !p, mt(Kl, (function (i) {
                    var d = "normal" === i ? n.getModel("label") : n.getModel([i, "label"]), p = "normal" === i,
                        g = p ? c : c.ensureState(i), m = t.getFormattedLabel(h, i);
                    p && (m = m || e.node.name), g.style = oc(d, {}, null, "normal" !== i, !0), m && (g.style.text = m);
                    var y = d.get("show");
                    null == y || p || (g.ignore = !y);
                    var v, _ = f(d, "position"), T = p ? u : u.states[i], x = T.style.fill;
                    T.textConfig = {outsideFill: "inherit" === d.get("color") ? x : null, inside: "outside" !== _};
                    var S = f(d, "distance") || 0, A = f(d, "align");
                    "outside" === _ ? (v = r.r + S, A = a > Math.PI / 2 ? "right" : "left") : A && "center" !== A ? "left" === A ? (v = r.r0 + S, a > Math.PI / 2 && (A = "right")) : "right" === A && (v = r.r - S, a > Math.PI / 2 && (A = "left")) : (v = o === 2 * Math.PI && 0 === r.r0 ? 0 : (r.r + r.r0) / 2, A = "center"), g.style.align = A, g.style.verticalAlign = f(d, "verticalAlign") || "middle", g.x = v * s + r.cx, g.y = v * l + r.cy;
                    var b = f(d, "rotate"), I = 0;
                    "radial" === b ? (I = Ys(-a)) > Math.PI / 2 && I < 1.5 * Math.PI && (I += Math.PI) : "tangential" === b ? (I = Math.PI / 2 - a) > Math.PI / 2 ? I -= Math.PI : I < -Math.PI / 2 && (I += Math.PI) : Ct(b) && (I = b * Math.PI / 180), g.rotation = Ys(I)
                })), c.dirtyStyle()
            }, e
        }(Eg);
        const hP = cP;
        var dP = "sunburstRootToNode", pP = "sunburstHighlight", fP = "sunburstUnhighlight";
        var gP = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n, i) {
                var r = this;
                this.seriesModel = t, this.api = n, this.ecModel = e;
                var o = t.getData(), a = o.tree.root, s = t.getViewRoot(), l = this.group,
                    u = t.get("renderLabelForZeroData"), c = [];
                s.eachNode((function (t) {
                    c.push(t)
                }));
                var h = this._oldChildren || [];
                !function (i, r) {
                    if (0 === i.length && 0 === r.length) return;

                    function s(t) {
                        return t.getId()
                    }

                    function c(s, c) {
                        !function (i, r) {
                            u || !i || i.getValue() || (i = null);
                            if (i !== a && r !== a) if (r && r.piece) i ? (r.piece.updateData(!1, i, t, e, n), o.setItemGraphicEl(i.dataIndex, r.piece)) : function (t) {
                                if (!t) return;
                                t.piece && (l.remove(t.piece), t.piece = null)
                            }(r); else if (i) {
                                var s = new hP(i, t, e, n);
                                l.add(s), o.setItemGraphicEl(i.dataIndex, s)
                            }
                        }(null == s ? null : i[s], null == c ? null : r[c])
                    }

                    new iS(r, i, s, s).add(c).update(c).remove(St(c, null)).execute()
                }(c, h), function (i, o) {
                    o.depth > 0 ? (r.virtualPiece ? r.virtualPiece.updateData(!1, i, t, e, n) : (r.virtualPiece = new hP(i, t, e, n), l.add(r.virtualPiece)), o.piece.off("click"), r.virtualPiece.on("click", (function (t) {
                        r._rootToNode(o.parentNode)
                    }))) : r.virtualPiece && (l.remove(r.virtualPiece), r.virtualPiece = null)
                }(a, s), this._initEvents(), this._oldChildren = c
            }, e.prototype._initEvents = function () {
                var t = this;
                this.group.off("click"), this.group.on("click", (function (e) {
                    var n = !1;
                    t.seriesModel.getViewRoot().eachNode((function (i) {
                        if (!n && i.piece && i.piece === e.target) {
                            var r = i.getModel().get("nodeClick");
                            if ("rootToNode" === r) t._rootToNode(i); else if ("link" === r) {
                                var o = i.getModel(), a = o.get("link");
                                if (a) Ih(a, o.get("target", !0) || "_blank")
                            }
                            n = !0
                        }
                    }))
                }))
            }, e.prototype._rootToNode = function (t) {
                t !== this.seriesModel.getViewRoot() && this.api.dispatchAction({
                    type: dP,
                    from: this.uid,
                    seriesId: this.seriesModel.id,
                    targetNode: t
                })
            }, e.prototype.containPoint = function (t, e) {
                var n = e.getData().getItemLayout(0);
                if (n) {
                    var i = t[0] - n.cx, r = t[1] - n.cy, o = Math.sqrt(i * i + r * r);
                    return o <= n.r && o >= n.r0
                }
            }, e.type = "sunburst", e
        }(jm);
        const mP = gP;

        function yP(t) {
            var e = 0;
            mt(t.children, (function (t) {
                yP(t);
                var n = t.value;
                At(n) && (n = n[0]), e += n
            }));
            var n = t.value;
            At(n) && (n = n[0]), (null == n || isNaN(n)) && (n = e), n < 0 && (n = 0), At(t.value) ? t.value[0] = n : t.value = n
        }

        const vP = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.ignoreStyleOnData = !0, n
            }

            return G(e, t), e.prototype.getInitialData = function (t, e) {
                var n = {name: t.name, children: t.data};
                yP(n);
                var i = this._levelModels = yt(t.levels || [], (function (t) {
                    return new wc(t, this, e)
                }), this), r = Bw.createTree(n, this, (function (t) {
                    t.wrapMethod("getItemModel", (function (t, e) {
                        var n = r.getNodeByDataIndex(e), o = i[n.depth];
                        return o && (t.parentModel = o), t
                    }))
                }));
                return r.data
            }, e.prototype.optionUpdated = function () {
                this.resetViewRoot()
            }, e.prototype.getDataParams = function (e) {
                var n = t.prototype.getDataParams.apply(this, arguments), i = this.getData().tree.getNodeByDataIndex(e);
                return n.treePathInfo = Vw(i, this), n
            }, e.prototype.getLevelModel = function (t) {
                return this._levelModels && this._levelModels[t.depth]
            }, e.prototype.getViewRoot = function () {
                return this._viewRoot
            }, e.prototype.resetViewRoot = function (t) {
                t ? this._viewRoot = t : t = this._viewRoot;
                var e = this.getRawData().tree.root;
                t && (t === e || e.contains(t)) || (this._viewRoot = e)
            }, e.prototype.enableAriaDecal = function () {
                Zw(this)
            }, e.type = "series.sunburst", e.defaultOption = {
                z: 2,
                center: ["50%", "50%"],
                radius: [0, "75%"],
                clockwise: !0,
                startAngle: 90,
                minAngle: 0,
                stillShowZeroSum: !0,
                nodeClick: "rootToNode",
                renderLabelForZeroData: !1,
                label: {
                    rotate: "radial",
                    show: !0,
                    opacity: 1,
                    align: "center",
                    position: "inside",
                    distance: 5,
                    silent: !0
                },
                itemStyle: {
                    borderWidth: 1,
                    borderColor: "white",
                    borderType: "solid",
                    shadowBlur: 0,
                    shadowColor: "rgba(0, 0, 0, 0.2)",
                    shadowOffsetX: 0,
                    shadowOffsetY: 0,
                    opacity: 1
                },
                emphasis: {focus: "descendant"},
                blur: {itemStyle: {opacity: .2}, label: {opacity: .1}},
                animationType: "expansion",
                animationDuration: 1e3,
                animationDurationUpdate: 500,
                data: [],
                sort: "desc"
            }, e
        }(kf);
        var _P = Math.PI / 180;

        function TP(t, e, n) {
            e.eachSeriesByType(t, (function (t) {
                var e = t.get("center"), i = t.get("radius");
                At(i) || (i = [0, i]), At(e) || (e = [e, e]);
                var r = n.getWidth(), o = n.getHeight(), a = Math.min(r, o), s = wo(e[0], r), l = wo(e[1], o),
                    u = wo(i[0], a / 2), c = wo(i[1], a / 2), h = -t.get("startAngle") * _P, d = t.get("minAngle") * _P,
                    p = t.getData().tree.root, f = t.getViewRoot(), g = f.depth, m = t.get("sort");
                null != m && xP(f, m);
                var y = 0;
                mt(f.children, (function (t) {
                    !isNaN(t.getValue()) && y++
                }));
                var v = f.getValue(), _ = Math.PI / (v || y) * 2, T = f.depth > 0, x = f.height - (T ? -1 : 1),
                    S = (c - u) / (x || 1), A = t.get("clockwise"), b = t.get("stillShowZeroSum"), I = A ? 1 : -1,
                    E = function (e, n) {
                        if (e) {
                            var i = n;
                            if (e !== p) {
                                var r = e.getValue(), o = 0 === v && b ? _ : r * _;
                                o < d && (o = d), i = n + I * o;
                                var c = e.depth - g - (T ? -1 : 1), h = u + S * c, f = u + S * (c + 1),
                                    m = t.getLevelModel(e);
                                if (m) {
                                    var y = m.get("r0", !0), x = m.get("r", !0), C = m.get("radius", !0);
                                    null != C && (y = C[0], x = C[1]), null != y && (h = wo(y, a / 2)), null != x && (f = wo(x, a / 2))
                                }
                                e.setLayout({
                                    angle: o,
                                    startAngle: n,
                                    endAngle: i,
                                    clockwise: A,
                                    cx: s,
                                    cy: l,
                                    r0: h,
                                    r: f
                                })
                            }
                            if (e.children && e.children.length) {
                                var D = 0;
                                mt(e.children, (function (t) {
                                    D += E(t, n + D)
                                }))
                            }
                            return i - n
                        }
                    };
                if (T) {
                    var C = u, D = u + S, w = 2 * Math.PI;
                    p.setLayout({angle: w, startAngle: h, endAngle: h + w, clockwise: A, cx: s, cy: l, r0: C, r: D})
                }
                E(f, h)
            }))
        }

        function xP(t, e) {
            var n = t.children || [];
            t.children = function (t, e) {
                if (bt(e)) {
                    var n = yt(t, (function (t, e) {
                        var n = t.getValue();
                        return {
                            params: {
                                depth: t.depth,
                                height: t.height,
                                dataIndex: t.dataIndex,
                                getValue: function () {
                                    return n
                                }
                            }, index: e
                        }
                    }));
                    return n.sort((function (t, n) {
                        return e(t.params, n.params)
                    })), yt(n, (function (e) {
                        return t[e.index]
                    }))
                }
                var i = "asc" === e;
                return t.sort((function (t, e) {
                    var n = (t.getValue() - e.getValue()) * (i ? 1 : -1);
                    return 0 === n ? (t.dataIndex - e.dataIndex) * (i ? -1 : 1) : n
                }))
            }(n, e), n.length && mt(t.children, (function (t) {
                xP(t, e)
            }))
        }

        function SP(t) {
            var e = {};
            t.eachSeriesByType("sunburst", (function (t) {
                var n = t.getData(), i = n.tree;
                i.eachNode((function (r) {
                    var o = r.getModel().getModel("itemStyle").getItemStyle();
                    o.fill || (o.fill = function (t, n, i) {
                        for (var r = t; r && r.depth > 1;) r = r.parentNode;
                        var o = n.getColorFromPalette(r.name || r.dataIndex + "", e);
                        return t.depth > 1 && It(o) && (o = Oi(o, (t.depth - 1) / (i - 1) * .5)), o
                    }(r, t, i.root.height)), ht(n.ensureUniqueItemVisual(r.dataIndex, "style"), o)
                }))
            }))
        }

        var AP = {color: "fill", borderColor: "stroke"},
            bP = {symbol: 1, symbolSize: 1, symbolKeepAspect: 1, legendIcon: 1, visualMeta: 1, liftZ: 1, decal: 1},
            IP = ha();
        const EP = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.optionUpdated = function () {
                this.currentZLevel = this.get("zlevel", !0), this.currentZ = this.get("z", !0)
            }, e.prototype.getInitialData = function (t, e) {
                return GS(null, this)
            }, e.prototype.getDataParams = function (e, n, i) {
                var r = t.prototype.getDataParams.call(this, e, n);
                return i && (r.info = IP(i).info), r
            }, e.type = "series.custom", e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], e.defaultOption = {
                coordinateSystem: "cartesian2d",
                z: 2,
                legendHoverLink: !0,
                clip: !1
            }, e
        }(kf);

        function CP(t, e) {
            return e = e || [0, 0], yt(["x", "y"], (function (n, i) {
                var r = this.getAxis(n), o = e[i], a = t[i] / 2;
                return "category" === r.type ? r.getBandWidth() : Math.abs(r.dataToCoord(o - a) - r.dataToCoord(o + a))
            }), this)
        }

        function DP(t, e) {
            return e = e || [0, 0], yt([0, 1], (function (n) {
                var i = e[n], r = t[n] / 2, o = [], a = [];
                return o[n] = i - r, a[n] = i + r, o[1 - n] = a[1 - n] = e[1 - n], Math.abs(this.dataToPoint(o)[n] - this.dataToPoint(a)[n])
            }), this)
        }

        function wP(t, e) {
            var n = this.getAxis(), i = e instanceof Array ? e[0] : e, r = (t instanceof Array ? t[0] : t) / 2;
            return "category" === n.type ? n.getBandWidth() : Math.abs(n.dataToCoord(i - r) - n.dataToCoord(i + r))
        }

        function MP(t, e) {
            return e = e || [0, 0], yt(["Radius", "Angle"], (function (n, i) {
                var r = this["get" + n + "Axis"](), o = e[i], a = t[i] / 2,
                    s = "category" === r.type ? r.getBandWidth() : Math.abs(r.dataToCoord(o - a) - r.dataToCoord(o + a));
                return "Angle" === n && (s = s * Math.PI / 180), s
            }), this)
        }

        function NP(t, e, n, i) {
            return t && (t.legacy || !1 !== t.legacy && !n && !i && "tspan" !== e && ("text" === e || Qt(t, "text")))
        }

        function OP(t, e, n) {
            var i, r, o, a = t;
            if ("text" === e) o = a; else {
                o = {}, Qt(a, "text") && (o.text = a.text), Qt(a, "rich") && (o.rich = a.rich), Qt(a, "textFill") && (o.fill = a.textFill), Qt(a, "textStroke") && (o.stroke = a.textStroke), Qt(a, "fontFamily") && (o.fontFamily = a.fontFamily), Qt(a, "fontSize") && (o.fontSize = a.fontSize), Qt(a, "fontStyle") && (o.fontStyle = a.fontStyle), Qt(a, "fontWeight") && (o.fontWeight = a.fontWeight), r = {
                    type: "text",
                    style: o,
                    silent: !0
                }, i = {};
                var s = Qt(a, "textPosition");
                n ? i.position = s ? a.textPosition : "inside" : s && (i.position = a.textPosition), Qt(a, "textPosition") && (i.position = a.textPosition), Qt(a, "textOffset") && (i.offset = a.textOffset), Qt(a, "textRotation") && (i.rotation = a.textRotation), Qt(a, "textDistance") && (i.distance = a.textDistance)
            }
            return LP(o, t), mt(o.rich, (function (t) {
                LP(t, t)
            })), {textConfig: i, textContent: r}
        }

        function LP(t, e) {
            e && (e.font = e.textFont || e.font, Qt(e, "textStrokeWidth") && (t.lineWidth = e.textStrokeWidth), Qt(e, "textAlign") && (t.align = e.textAlign), Qt(e, "textVerticalAlign") && (t.verticalAlign = e.textVerticalAlign), Qt(e, "textLineHeight") && (t.lineHeight = e.textLineHeight), Qt(e, "textWidth") && (t.width = e.textWidth), Qt(e, "textHeight") && (t.height = e.textHeight), Qt(e, "textBackgroundColor") && (t.backgroundColor = e.textBackgroundColor), Qt(e, "textPadding") && (t.padding = e.textPadding), Qt(e, "textBorderColor") && (t.borderColor = e.textBorderColor), Qt(e, "textBorderWidth") && (t.borderWidth = e.textBorderWidth), Qt(e, "textBorderRadius") && (t.borderRadius = e.textBorderRadius), Qt(e, "textBoxShadowColor") && (t.shadowColor = e.textBoxShadowColor), Qt(e, "textBoxShadowBlur") && (t.shadowBlur = e.textBoxShadowBlur), Qt(e, "textBoxShadowOffsetX") && (t.shadowOffsetX = e.textBoxShadowOffsetX), Qt(e, "textBoxShadowOffsetY") && (t.shadowOffsetY = e.textBoxShadowOffsetY))
        }

        function RP(t, e, n) {
            var i = t;
            i.textPosition = i.textPosition || n.position || "inside", null != n.offset && (i.textOffset = n.offset), null != n.rotation && (i.textRotation = n.rotation), null != n.distance && (i.textDistance = n.distance);
            var r = i.textPosition.indexOf("inside") >= 0, o = t.fill || "#000";
            kP(i, e);
            var a = null == i.textFill;
            return r ? a && (i.textFill = n.insideFill || "#fff", !i.textStroke && n.insideStroke && (i.textStroke = n.insideStroke), !i.textStroke && (i.textStroke = o), null == i.textStrokeWidth && (i.textStrokeWidth = 2)) : (a && (i.textFill = t.fill || n.outsideFill || "#000"), !i.textStroke && n.outsideStroke && (i.textStroke = n.outsideStroke)), i.text = e.text, i.rich = e.rich, mt(e.rich, (function (t) {
                kP(t, t)
            })), i
        }

        function kP(t, e) {
            e && (Qt(e, "fill") && (t.textFill = e.fill), Qt(e, "stroke") && (t.textStroke = e.fill), Qt(e, "lineWidth") && (t.textStrokeWidth = e.lineWidth), Qt(e, "font") && (t.font = e.font), Qt(e, "fontStyle") && (t.fontStyle = e.fontStyle), Qt(e, "fontWeight") && (t.fontWeight = e.fontWeight), Qt(e, "fontSize") && (t.fontSize = e.fontSize), Qt(e, "fontFamily") && (t.fontFamily = e.fontFamily), Qt(e, "align") && (t.textAlign = e.align), Qt(e, "verticalAlign") && (t.textVerticalAlign = e.verticalAlign), Qt(e, "lineHeight") && (t.textLineHeight = e.lineHeight), Qt(e, "width") && (t.textWidth = e.width), Qt(e, "height") && (t.textHeight = e.height), Qt(e, "backgroundColor") && (t.textBackgroundColor = e.backgroundColor), Qt(e, "padding") && (t.textPadding = e.padding), Qt(e, "borderColor") && (t.textBorderColor = e.borderColor), Qt(e, "borderWidth") && (t.textBorderWidth = e.borderWidth), Qt(e, "borderRadius") && (t.textBorderRadius = e.borderRadius), Qt(e, "shadowColor") && (t.textBoxShadowColor = e.shadowColor), Qt(e, "shadowBlur") && (t.textBoxShadowBlur = e.shadowBlur), Qt(e, "shadowOffsetX") && (t.textBoxShadowOffsetX = e.shadowOffsetX), Qt(e, "shadowOffsetY") && (t.textBoxShadowOffsetY = e.shadowOffsetY), Qt(e, "textShadowColor") && (t.textShadowColor = e.textShadowColor), Qt(e, "textShadowBlur") && (t.textShadowBlur = e.textShadowBlur), Qt(e, "textShadowOffsetX") && (t.textShadowOffsetX = e.textShadowOffsetX), Qt(e, "textShadowOffsetY") && (t.textShadowOffsetY = e.textShadowOffsetY))
        }

        var PP = {position: ["x", "y"], scale: ["scaleX", "scaleY"], origin: ["originX", "originY"]}, GP = Tt(PP),
            BP = (vt(Kr, (function (t, e) {
                return t[e] = 1, t
            }), {}), Kr.join(", "), ["", "style", "shape", "extra"]), FP = ha();

        function HP(t, e, n, i, r) {
            var o = t + "Animation", a = Yu(t, i, r) || {}, s = FP(e).userDuring;
            return a.duration > 0 && (a.during = s ? xt(jP, {
                el: e,
                userDuring: s
            }) : null, a.setToFinal = !0, a.scope = t), ht(a, n[o]), a
        }

        function UP(t, e, n, i) {
            var r = (i = i || {}).dataIndex, o = i.isInit, a = i.clearStyle, s = n.isAnimationEnabled(), l = FP(t),
                u = e.style;
            l.userDuring = e.during;
            var c = {}, h = {};
            if (function (t, e, n) {
                for (var i = 0; i < GP.length; i++) {
                    var r = GP[i], o = PP[r], a = e[r];
                    a && (n[o[0]] = a[0], n[o[1]] = a[1])
                }
                for (i = 0; i < Kr.length; i++) {
                    var s = Kr[i];
                    null != e[s] && (n[s] = e[s])
                }
            }(0, e, h), ZP("shape", e, h), ZP("extra", e, h), !o && s && (function (t, e, n) {
                for (var i = e.transition, r = WP(i) ? Kr : Jo(i || []), o = 0; o < r.length; o++) {
                    var a = r[o];
                    if ("style" !== a && "shape" !== a && "extra" !== a) {
                        var s = t[a];
                        0, n[a] = s
                    }
                }
            }(t, e, c), XP("shape", t, e, c), XP("extra", t, e, c), function (t, e, n, i) {
                if (!n) return;
                var r, o = t.style;
                if (o) {
                    var a = n.transition, s = e.transition;
                    if (a && !WP(a)) {
                        var l = Jo(a);
                        !r && (r = i.style = {});
                        for (var u = 0; u < l.length; u++) {
                            var c = o[f = l[u]];
                            r[f] = c
                        }
                    } else if (t.getAnimationStyleProps && (WP(s) || WP(a) || pt(s, "style") >= 0)) {
                        var h = t.getAnimationStyleProps(), d = h ? h.style : null;
                        if (d) {
                            !r && (r = i.style = {});
                            var p = Tt(n);
                            for (u = 0; u < p.length; u++) {
                                var f;
                                if (d[f = p[u]]) {
                                    c = o[f];
                                    r[f] = c
                                }
                            }
                        }
                    }
                }
            }(t, e, u, c)), h.style = u, function (t, e, n) {
                var i = e.style;
                if (!t.isGroup && i) {
                    if (n) {
                        t.useStyle({});
                        for (var r = t.animators, o = 0; o < r.length; o++) {
                            var a = r[o];
                            "style" === a.targetName && a.changeTarget(t.style)
                        }
                    }
                    t.setStyle(i)
                }
                e && (e.style = null, e && t.attr(e), e.style = i)
            }(t, h, a), function (t, e) {
                Qt(e, "silent") && (t.silent = e.silent), Qt(e, "ignore") && (t.ignore = e.ignore), t instanceof os && Qt(e, "invisible") && (t.invisible = e.invisible);
                t instanceof ll && Qt(e, "autoBatch") && (t.autoBatch = e.autoBatch)
            }(t, e), s) if (o) {
                var d = {};
                mt(BP, (function (t) {
                    var n = t ? e[t] : e;
                    n && n.enterFrom && (t && (d[t] = d[t] || {}), ht(t ? d[t] : d, n.enterFrom))
                }));
                var p = HP("enter", t, e, n, r);
                p.duration > 0 && t.animateFrom(d, p)
            } else !function (t, e, n, i, r) {
                if (r) {
                    var o = HP("update", t, e, i, n);
                    o.duration > 0 && t.animateFrom(r, o)
                }
            }(t, e, r || 0, n, c);
            VP(t, e), u ? t.dirty() : t.markRedraw()
        }

        function VP(t, e) {
            for (var n = FP(t).leaveToProps, i = 0; i < BP.length; i++) {
                var r = BP[i], o = r ? e[r] : e;
                o && o.leaveTo && (n || (n = FP(t).leaveToProps = {}), r && (n[r] = n[r] || {}), ht(r ? n[r] : n, o.leaveTo))
            }
        }

        function zP(t, e, n, i) {
            if (t) {
                var r = t.parent, o = FP(t).leaveToProps;
                if (o) {
                    var a = HP("update", t, e, n, 0);
                    a.done = function () {
                        r.remove(t), i && i()
                    }, t.animateTo(o, a)
                } else r.remove(t), i && i()
            }
        }

        function WP(t) {
            return "all" === t
        }

        var YP = {}, qP = {
            setTransform: function (t, e) {
                return YP.el[t] = e, this
            }, getTransform: function (t) {
                return YP.el[t]
            }, setShape: function (t, e) {
                var n = YP.el;
                return (n.shape || (n.shape = {}))[t] = e, n.dirtyShape && n.dirtyShape(), this
            }, getShape: function (t) {
                var e = YP.el.shape;
                if (e) return e[t]
            }, setStyle: function (t, e) {
                var n = YP.el, i = n.style;
                return i && (i[t] = e, n.dirtyStyle && n.dirtyStyle()), this
            }, getStyle: function (t) {
                var e = YP.el.style;
                if (e) return e[t]
            }, setExtra: function (t, e) {
                return (YP.el.extra || (YP.el.extra = {}))[t] = e, this
            }, getExtra: function (t) {
                var e = YP.el.extra;
                if (e) return e[t]
            }
        };

        function jP() {
            var t = this, e = t.el;
            if (e) {
                var n = FP(e).userDuring, i = t.userDuring;
                n === i ? (YP.el = e, i(qP)) : t.el = t.userDuring = null
            }
        }

        function XP(t, e, n, i) {
            var r = n[t];
            if (r) {
                var o, a = e[t];
                if (a) {
                    var s = n.transition, l = r.transition;
                    if (l) if (!o && (o = i[t] = {}), WP(l)) ht(o, a); else for (var u = Jo(l), c = 0; c < u.length; c++) {
                        var h = a[p = u[c]];
                        o[p] = h
                    } else if (WP(s) || pt(s, t) >= 0) {
                        !o && (o = i[t] = {});
                        var d = Tt(a);
                        for (c = 0; c < d.length; c++) {
                            var p;
                            h = a[p = d[c]];
                            KP(r[p], h) && (o[p] = h)
                        }
                    }
                }
            }
        }

        function ZP(t, e, n) {
            var i = e[t];
            if (i) for (var r = n[t] = {}, o = Tt(i), a = 0; a < o.length; a++) {
                var s = o[a];
                r[s] = lr(i[s])
            }
        }

        function KP(t, e) {
            return gt(t) ? t !== e : null != t && isFinite(t)
        }

        var QP = ha(), $P = ["percent", "easing", "shape", "style", "extra"];

        function JP(t) {
            t.stopAnimation("keyframe"), t.attr(QP(t))
        }

        function tG(t, e, n) {
            if (n.isAnimationEnabled() && e) if (At(e)) mt(e, (function (e) {
                tG(t, e, n)
            })); else {
                var i = e.keyframes, r = e.duration;
                if (n && null == r) {
                    var o = Yu("enter", n, 0);
                    r = o && o.duration
                }
                if (i && r) {
                    var a = QP(t);
                    mt(BP, (function (n) {
                        if (!n || t[n]) {
                            var o;
                            i.sort((function (t, e) {
                                return t.percent - e.percent
                            })), mt(i, (function (i) {
                                var s = t.animators, l = n ? i[n] : i;
                                if (l) {
                                    var u = Tt(l);
                                    if (n || (u = _t(u, (function (t) {
                                        return pt($P, t) < 0
                                    }))), u.length) {
                                        o || ((o = t.animate(n, e.loop, !0)).scope = "keyframe");
                                        for (var c = 0; c < s.length; c++) s[c] !== o && s[c].targetName === o.targetName && s[c].stopTracks(u);
                                        n && (a[n] = a[n] || {});
                                        var h = n ? a[n] : a;
                                        mt(u, (function (e) {
                                            h[e] = ((n ? t[n] : t) || {})[e]
                                        })), o.whenWithKeys(r * i.percent, l, u, i.easing)
                                    }
                                }
                            })), o && o.delay(e.delay || 0).duration(r).start(e.easing)
                        }
                    }))
                }
            }
        }

        var eG = "emphasis", nG = "normal", iG = "blur", rG = "select", oG = [nG, eG, iG, rG], aG = {
                normal: ["itemStyle"],
                emphasis: [eG, "itemStyle"],
                blur: [iG, "itemStyle"],
                select: [rG, "itemStyle"]
            }, sG = {normal: ["label"], emphasis: [eG, "label"], blur: [iG, "label"], select: [rG, "label"]},
            lG = ["x", "y"], uG = "e\0\0", cG = {normal: {}, emphasis: {}, blur: {}, select: {}}, hG = {
                cartesian2d: function (t) {
                    var e = t.master.getRect();
                    return {
                        coordSys: {type: "cartesian2d", x: e.x, y: e.y, width: e.width, height: e.height},
                        api: {
                            coord: function (e) {
                                return t.dataToPoint(e)
                            }, size: xt(CP, t)
                        }
                    }
                }, geo: function (t) {
                    var e = t.getBoundingRect();
                    return {
                        coordSys: {type: "geo", x: e.x, y: e.y, width: e.width, height: e.height, zoom: t.getZoom()},
                        api: {
                            coord: function (e) {
                                return t.dataToPoint(e)
                            }, size: xt(DP, t)
                        }
                    }
                }, single: function (t) {
                    var e = t.getRect();
                    return {
                        coordSys: {type: "singleAxis", x: e.x, y: e.y, width: e.width, height: e.height},
                        api: {
                            coord: function (e) {
                                return t.dataToPoint(e)
                            }, size: xt(wP, t)
                        }
                    }
                }, polar: function (t) {
                    var e = t.getRadiusAxis(), n = t.getAngleAxis(), i = e.getExtent();
                    return i[0] > i[1] && i.reverse(), {
                        coordSys: {type: "polar", cx: t.cx, cy: t.cy, r: i[1], r0: i[0]},
                        api: {
                            coord: function (i) {
                                var r = e.dataToRadius(i[0]), o = n.dataToAngle(i[1]), a = t.coordToPoint([r, o]);
                                return a.push(r, o * Math.PI / 180), a
                            }, size: xt(MP, t)
                        }
                    }
                }, calendar: function (t) {
                    var e = t.getRect(), n = t.getRangeInfo();
                    return {
                        coordSys: {
                            type: "calendar",
                            x: e.x,
                            y: e.y,
                            width: e.width,
                            height: e.height,
                            cellWidth: t.getCellWidth(),
                            cellHeight: t.getCellHeight(),
                            rangeInfo: {start: n.start, end: n.end, weeks: n.weeks, dayCount: n.allDay}
                        }, api: {
                            coord: function (e, n) {
                                return t.dataToPoint(e, n)
                            }
                        }
                    }
                }
            };

        function dG(t) {
            return t instanceof ll
        }

        function pG(t) {
            return t instanceof os
        }

        const fG = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n, i) {
                this._progressiveEls = null;
                var r = this._data, o = t.getData(), a = this.group, s = _G(t, o, e, n);
                r || a.removeAll(), o.diff(r).add((function (e) {
                    xG(n, null, e, s(e, i), t, a, o)
                })).remove((function (e) {
                    var n = r.getItemGraphicEl(e);
                    n && zP(n, IP(n).option, t)
                })).update((function (e, l) {
                    var u = r.getItemGraphicEl(l);
                    xG(n, u, e, s(e, i), t, a, o)
                })).execute();
                var l = t.get("clip", !0) ? cA(t.coordinateSystem, !1, t) : null;
                l ? a.setClipPath(l) : a.removeClipPath(), this._data = o
            }, e.prototype.incrementalPrepareRender = function (t, e, n) {
                this.group.removeAll(), this._data = null
            }, e.prototype.incrementalRender = function (t, e, n, i, r) {
                var o = e.getData(), a = _G(e, o, n, i), s = this._progressiveEls = [];

                function l(t) {
                    t.isGroup || (t.incremental = !0, t.ensureState("emphasis").hoverLayer = !0)
                }

                for (var u = t.start; u < t.end; u++) {
                    var c = xG(null, null, u, a(u, r), e, this.group, o);
                    c && (c.traverse(l), s.push(c))
                }
            }, e.prototype.eachRendered = function (t) {
                Bm(this._progressiveEls || this.group, t)
            }, e.prototype.filterForExposedEvent = function (t, e, n, i) {
                var r = e.element;
                if (null == r || n.name === r) return !0;
                for (; (n = n.__hostTarget || n.parent) && n !== this.group;) if (n.name === r) return !0;
                return !1
            }, e.type = "custom", e
        }(jm);

        function gG(t) {
            var e, n = t.type;
            if ("path" === n) {
                var i = t.shape, r = null != i.width && null != i.height ? {
                    x: i.x || 0,
                    y: i.y || 0,
                    width: i.width,
                    height: i.height
                } : null, o = NG(i);
                e = ym(o, null, r, i.layout || "center"), IP(e).customPathData = o
            } else if ("image" === n) e = new gl({}), IP(e).customImagePath = t.style.image; else if ("text" === n) e = new Fl({}); else if ("group" === n) e = new xo; else {
                if ("compoundPath" === n) throw new Error('"compoundPath" is not supported yet.');
                var a = mm(n);
                if (!a) {
                    0, Dp("")
                }
                e = new a
            }
            return IP(e).customGraphicType = n, e.name = t.name, e.z2EmphasisLift = 1, e.z2SelectLift = 1, e
        }

        function mG(t, e, n, i, r, o, a) {
            JP(e);
            var s = r && r.normal.cfg;
            s && e.setTextConfig(s), i && null == i.transition && (i.transition = lG);
            var l = i && i.style;
            if (l) {
                if ("text" === e.type) {
                    var u = l;
                    Qt(u, "textFill") && (u.fill = u.textFill), Qt(u, "textStroke") && (u.stroke = u.textStroke)
                }
                var c = void 0, h = dG(e) ? l.decal : null;
                t && h && (h.dirty = !0, c = Rv(h, t)), l.__decalPattern = c
            }
            pG(e) && (l && (c = l.__decalPattern) && (l.decal = c));
            UP(e, i, o, {dataIndex: n, isInit: a, clearStyle: !0}), tG(e, i.keyframeAnimation, o)
        }

        function yG(t, e, n, i, r) {
            var o = e.isGroup ? null : e, a = r && r[t].cfg;
            if (o) {
                var s = o.ensureState(t);
                if (!1 === i) {
                    var l = o.getState(t);
                    l && (l.style = null)
                } else s.style = i || null;
                a && (s.textConfig = a), vu(o)
            }
        }

        function vG(t, e, n) {
            var i = n === nG, r = i ? e : IG(e, n), o = r ? r.z2 : null;
            null != o && ((i ? t : t.ensureState(n)).z2 = o || 0)
        }

        function _G(t, e, n, i) {
            var r = t.get("renderItem"), o = t.coordinateSystem, a = {};
            o && (a = o.prepareCustoms ? o.prepareCustoms(o) : hG[o.type](o));
            for (var s, l, u = dt({
                getWidth: i.getWidth,
                getHeight: i.getHeight,
                getZr: i.getZr,
                getDevicePixelRatio: i.getDevicePixelRatio,
                value: function (t, n) {
                    return null == n && (n = s), e.getStore().get(e.getDimensionIndex(t || 0), n)
                },
                style: function (n, i) {
                    0;
                    null == i && (i = s);
                    var r = e.getItemVisual(i, "style"), o = r && r.fill, a = r && r.opacity,
                        l = v(i, nG).getItemStyle();
                    null != o && (l.fill = o), null != a && (l.opacity = a);
                    var u = {inheritColor: It(o) ? o : "#000"}, c = _(i, nG), h = oc(c, null, u, !1, !0);
                    h.text = c.getShallow("show") ? kt(t.getFormattedLabel(i, nG), FS(e, i)) : null;
                    var d = ac(c, u, !1);
                    return x(n, l), l = RP(l, h, d), n && T(l, n), l.legacy = !0, l
                },
                ordinalRawValue: function (t, n) {
                    null == n && (n = s), t = t || 0;
                    var i = e.getDimensionInfo(t);
                    if (!i) {
                        var r = e.getDimensionIndex(t);
                        return r >= 0 ? e.getStore().get(r, n) : void 0
                    }
                    var o = e.get(i.name, n), a = i && i.ordinalMeta;
                    return a ? a.categories[o] : o
                },
                styleEmphasis: function (n, i) {
                    0;
                    null == i && (i = s);
                    var r = v(i, eG).getItemStyle(), o = _(i, eG), a = oc(o, null, null, !0, !0);
                    a.text = o.getShallow("show") ? Pt(t.getFormattedLabel(i, eG), t.getFormattedLabel(i, nG), FS(e, i)) : null;
                    var l = ac(o, null, !0);
                    return x(n, r), r = RP(r, a, l), n && T(r, n), r.legacy = !0, r
                },
                visual: function (t, n) {
                    if (null == n && (n = s), Qt(AP, t)) {
                        var i = e.getItemVisual(n, "style");
                        return i ? i[AP[t]] : null
                    }
                    if (Qt(bP, t)) return e.getItemVisual(n, t)
                },
                barLayout: function (t) {
                    if ("cartesian2d" === o.type) {
                        return function (t) {
                            var e = [], n = t.axis, i = "axis0";
                            if ("category" === n.type) {
                                for (var r = n.getBandWidth(), o = 0; o < t.count; o++) e.push(dt({
                                    bandWidth: r,
                                    axisKey: i,
                                    stackId: DA + o
                                }, t));
                                var a = LA(e), s = [];
                                for (o = 0; o < t.count; o++) {
                                    var l = a[i][DA + o];
                                    l.offsetCenter = l.offset + l.width / 2, s.push(l)
                                }
                                return s
                            }
                        }(dt({axis: o.getBaseAxis()}, t))
                    }
                },
                currentSeriesIndices: function () {
                    return n.getCurrentSeriesIndices()
                },
                font: function (t) {
                    return hc(t, n)
                }
            }, a.api || {}), c = {
                context: {},
                seriesId: t.id,
                seriesName: t.name,
                seriesIndex: t.seriesIndex,
                coordSys: a.coordSys,
                dataInsideLength: e.count(),
                encode: TG(t.getData())
            }, h = {}, d = {}, p = {}, f = {}, g = 0; g < oG.length; g++) {
                var m = oG[g];
                p[m] = t.getModel(aG[m]), f[m] = t.getModel(sG[m])
            }

            function y(t) {
                return t === s ? l || (l = e.getItemModel(t)) : e.getItemModel(t)
            }

            function v(t, n) {
                return e.hasItemOption ? t === s ? h[n] || (h[n] = y(t).getModel(aG[n])) : y(t).getModel(aG[n]) : p[n]
            }

            function _(t, n) {
                return e.hasItemOption ? t === s ? d[n] || (d[n] = y(t).getModel(sG[n])) : y(t).getModel(sG[n]) : f[n]
            }

            return function (t, n) {
                return s = t, l = null, h = {}, d = {}, r && r(dt({
                    dataIndexInside: t,
                    dataIndex: e.getRawIndex(t),
                    actionType: n ? n.type : null
                }, c), u)
            };

            function T(t, e) {
                for (var n in e) Qt(e, n) && (t[n] = e[n])
            }

            function x(t, e) {
                t && (t.textFill && (e.textFill = t.textFill), t.textPosition && (e.textPosition = t.textPosition))
            }
        }

        function TG(t) {
            var e = {};
            return mt(t.dimensions, (function (n) {
                var i = t.getDimensionInfo(n);
                if (!i.isExtraCoord) {
                    var r = i.coordDim;
                    (e[r] = e[r] || [])[i.coordDimIndex] = t.getDimensionIndex(n)
                }
            })), e
        }

        function xG(t, e, n, i, r, o, a) {
            if (i) {
                var s = SG(t, e, n, i, r, o);
                return s && a.setItemGraphicEl(n, s), s && ku(s, i.focus, i.blurScope, i.emphasisDisabled), s
            }
            o.remove(e)
        }

        function SG(t, e, n, i, r, o) {
            var a = -1, s = e;
            e && AG(e, i, r) && (a = pt(o.childrenRef(), e), e = null);
            var l, u, c = !e, h = e;
            h ? h.clearStates() : (h = gG(i), s && (l = s, (u = h).copyTransform(l), pG(u) && pG(l) && (u.setStyle(l.style), u.z = l.z, u.z2 = l.z2, u.zlevel = l.zlevel, u.invisible = l.invisible, u.ignore = l.ignore, dG(u) && dG(l) && u.setShape(l.shape)))), !1 === i.morph ? h.disableMorphing = !0 : h.disableMorphing && (h.disableMorphing = !1), cG.normal.cfg = cG.normal.conOpt = cG.emphasis.cfg = cG.emphasis.conOpt = cG.blur.cfg = cG.blur.conOpt = cG.select.cfg = cG.select.conOpt = null, cG.isLegacy = !1, function (t, e, n, i, r, o) {
                if (t.isGroup) return;
                bG(n, null, o), bG(n, eG, o);
                var a = o.normal.conOpt, s = o.emphasis.conOpt, l = o.blur.conOpt, u = o.select.conOpt;
                if (null != a || null != s || null != u || null != l) {
                    var c = t.getTextContent();
                    if (!1 === a) c && t.removeTextContent(); else {
                        a = o.normal.conOpt = a || {type: "text"}, c ? c.clearStates() : (c = gG(a), t.setTextContent(c)), mG(null, c, e, a, null, i, r);
                        for (var h = a && a.style, d = 0; d < oG.length; d++) {
                            var p = oG[d];
                            if (p !== nG) {
                                var f = o[p].conOpt;
                                yG(p, c, 0, EG(a, f, p), null)
                            }
                        }
                        h ? c.dirty() : c.markRedraw()
                    }
                }
            }(h, n, i, r, c, cG), function (t, e, n, i, r) {
                var o = n.clipPath;
                if (!1 === o) t && t.getClipPath() && t.removeClipPath(); else if (o) {
                    var a = t.getClipPath();
                    a && AG(a, o, i) && (a = null), a || (a = gG(o), t.setClipPath(a)), mG(null, a, e, o, null, i, r)
                }
            }(h, n, i, r, c), mG(t, h, n, i, cG, r, c), Qt(i, "info") && (IP(h).info = i.info);
            for (var d = 0; d < oG.length; d++) {
                var p = oG[d];
                if (p !== nG) {
                    var f = IG(i, p);
                    yG(p, h, 0, EG(i, f, p), cG)
                }
            }
            return function (t, e, n) {
                if (!t.isGroup) {
                    var i = t, r = n.currentZ, o = n.currentZLevel;
                    i.z = r, i.zlevel = o;
                    var a = e.z2;
                    null != a && (i.z2 = a || 0);
                    for (var s = 0; s < oG.length; s++) vG(i, e, oG[s])
                }
            }(h, i, r), "group" === i.type && function (t, e, n, i, r) {
                var o = i.children, a = o ? o.length : 0, s = i.$mergeChildren,
                    l = "byName" === s || i.diffChildrenByName, u = !1 === s;
                if (!a && !l && !u) return;
                if (l) return c = {
                    api: t,
                    oldChildren: e.children() || [],
                    newChildren: o || [],
                    dataIndex: n,
                    seriesModel: r,
                    group: e
                }, void new iS(c.oldChildren, c.newChildren, DG, DG, c).add(wG).update(wG).remove(MG).execute();
                var c;
                u && e.removeAll();
                for (var h = 0; h < a; h++) {
                    var d = o[h], p = e.childAt(h);
                    d ? (null == d.ignore && (d.ignore = !1), SG(t, p, n, d, r, e)) : p.ignore = !0
                }
                for (var f = e.childCount() - 1; f >= h; f--) {
                    var g = e.childAt(f);
                    CG(e, g, r)
                }
            }(t, h, n, i, r), a >= 0 ? o.replaceAt(h, a) : o.add(h), h
        }

        function AG(t, e, n) {
            var i, r = IP(t), o = e.type, a = e.shape, s = e.style;
            return n.isUniversalTransitionEnabled() || null != o && o !== r.customGraphicType || "path" === o && ((i = a) && (Qt(i, "pathData") || Qt(i, "d"))) && NG(a) !== r.customPathData || "image" === o && Qt(s, "image") && s.image !== r.customImagePath
        }

        function bG(t, e, n) {
            var i = e ? IG(t, e) : t, r = e ? EG(t, i, eG) : t.style, o = t.type, a = i ? i.textConfig : null,
                s = t.textContent, l = s ? e ? IG(s, e) : s : null;
            if (r && (n.isLegacy || NP(r, o, !!a, !!l))) {
                n.isLegacy = !0;
                var u = OP(r, o, !e);
                !a && u.textConfig && (a = u.textConfig), !l && u.textContent && (l = u.textContent)
            }
            if (!e && l) {
                var c = l;
                !c.type && (c.type = "text")
            }
            var h = e ? n[e] : n.normal;
            h.cfg = a, h.conOpt = l
        }

        function IG(t, e) {
            return e ? t ? t[e] : null : t
        }

        function EG(t, e, n) {
            var i = e && e.style;
            return null == i && n === eG && t && (i = t.styleEmphasis), i
        }

        function CG(t, e, n) {
            e && zP(e, IP(t).option, n)
        }

        function DG(t, e) {
            var n = t && t.name;
            return null != n ? n : uG + e
        }

        function wG(t, e) {
            var n = this.context, i = null != t ? n.newChildren[t] : null, r = null != e ? n.oldChildren[e] : null;
            SG(n.api, r, n.dataIndex, i, n.seriesModel, n.group)
        }

        function MG(t) {
            var e = this.context, n = e.oldChildren[t];
            n && zP(n, IP(n).option, e.seriesModel)
        }

        function NG(t) {
            return t && (t.pathData || t.d)
        }

        var OG = ha(), LG = lt, RG = xt, kG = function () {
            function e() {
                this._dragging = !1, this.animationThreshold = 15
            }

            return e.prototype.render = function (t, e, n, i) {
                var r = e.get("value"), o = e.get("status");
                if (this._axisModel = t, this._axisPointerModel = e, this._api = n, i || this._lastValue !== r || this._lastStatus !== o) {
                    this._lastValue = r, this._lastStatus = o;
                    var a = this._group, s = this._handle;
                    if (!o || "hide" === o) return a && a.hide(), void (s && s.hide());
                    a && a.show(), s && s.show();
                    var l = {};
                    this.makeElOption(l, r, t, e, n);
                    var u = l.graphicKey;
                    u !== this._lastGraphicKey && this.clear(n), this._lastGraphicKey = u;
                    var c = this._moveAnimation = this.determineAnimation(t, e);
                    if (a) {
                        var h = St(PG, e, c);
                        this.updatePointerEl(a, l, h), this.updateLabelEl(a, l, h, e)
                    } else a = this._group = new xo, this.createPointerEl(a, l, t, e), this.createLabelEl(a, l, t, e), n.getZr().add(a);
                    HG(a, e, !0), this._renderHandle(r)
                }
            }, e.prototype.remove = function (t) {
                this.clear(t)
            }, e.prototype.dispose = function (t) {
                this.clear(t)
            }, e.prototype.determineAnimation = function (t, e) {
                var n = e.get("animation"), i = t.axis, r = "category" === i.type, o = e.get("snap");
                if (!o && !r) return !1;
                if ("auto" === n || null == n) {
                    var a = this.animationThreshold;
                    if (r && i.getBandWidth() > a) return !0;
                    if (o) {
                        var s = ME(t).seriesDataCount, l = i.getExtent();
                        return Math.abs(l[0] - l[1]) / s > a
                    }
                    return !1
                }
                return !0 === n
            }, e.prototype.makeElOption = function (t, e, n, i, r) {
            }, e.prototype.createPointerEl = function (e, n, i, r) {
                var o = n.pointer;
                if (o) {
                    var a = OG(e).pointerEl = new t[o.type](LG(n.pointer));
                    e.add(a)
                }
            }, e.prototype.createLabelEl = function (t, e, n, i) {
                if (e.label) {
                    var r = OG(t).labelEl = new Fl(LG(e.label));
                    t.add(r), BG(r, i)
                }
            }, e.prototype.updatePointerEl = function (t, e, n) {
                var i = OG(t).pointerEl;
                i && e.pointer && (i.setStyle(e.pointer.style), n(i, {shape: e.pointer.shape}))
            }, e.prototype.updateLabelEl = function (t, e, n, i) {
                var r = OG(t).labelEl;
                r && (r.setStyle(e.label.style), n(r, {x: e.label.x, y: e.label.y}), BG(r, i))
            }, e.prototype._renderHandle = function (t) {
                if (!this._dragging && this.updateHandleTransform) {
                    var e, n = this._axisPointerModel, i = this._api.getZr(), r = this._handle,
                        o = n.getModel("handle"), a = n.get("status");
                    if (!o.get("show") || !a || "hide" === a) return r && i.remove(r), void (this._handle = null);
                    this._handle || (e = !0, r = this._handle = Om(o.get("icon"), {
                        cursor: "move",
                        draggable: !0,
                        onmousemove: function (t) {
                            Ue(t.event)
                        },
                        onmousedown: RG(this._onHandleDragMove, this, 0, 0),
                        drift: RG(this._onHandleDragMove, this),
                        ondragend: RG(this._onHandleDragEnd, this)
                    }), i.add(r)), HG(r, n, !1), r.setStyle(o.getItemStyle(null, ["color", "borderColor", "borderWidth", "opacity", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"]));
                    var s = o.get("size");
                    At(s) || (s = [s, s]), r.scaleX = s[0] / 2, r.scaleY = s[1] / 2, $m(this, "_doDispatchAxisPointer", o.get("throttle") || 0, "fixRate"), this._moveHandleToValue(t, e)
                }
            }, e.prototype._moveHandleToValue = function (t, e) {
                PG(this._axisPointerModel, !e && this._moveAnimation, this._handle, FG(this.getHandleTransform(t, this._axisModel, this._axisPointerModel)))
            }, e.prototype._onHandleDragMove = function (t, e) {
                var n = this._handle;
                if (n) {
                    this._dragging = !0;
                    var i = this.updateHandleTransform(FG(n), [t, e], this._axisModel, this._axisPointerModel);
                    this._payloadInfo = i, n.stopAnimation(), n.attr(FG(i)), OG(n).lastProp = null, this._doDispatchAxisPointer()
                }
            }, e.prototype._doDispatchAxisPointer = function () {
                if (this._handle) {
                    var t = this._payloadInfo, e = this._axisModel;
                    this._api.dispatchAction({
                        type: "updateAxisPointer",
                        x: t.cursorPoint[0],
                        y: t.cursorPoint[1],
                        tooltipOption: t.tooltipOption,
                        axesInfo: [{axisDim: e.axis.dim, axisIndex: e.componentIndex}]
                    })
                }
            }, e.prototype._onHandleDragEnd = function () {
                if (this._dragging = !1, this._handle) {
                    var t = this._axisPointerModel.get("value");
                    this._moveHandleToValue(t), this._api.dispatchAction({type: "hideTip"})
                }
            }, e.prototype.clear = function (t) {
                this._lastValue = null, this._lastStatus = null;
                var e = t.getZr(), n = this._group, i = this._handle;
                e && n && (this._lastGraphicKey = null, n && e.remove(n), i && e.remove(i), this._group = null, this._handle = null, this._payloadInfo = null), Jm(this, "_doDispatchAxisPointer")
            }, e.prototype.doClear = function () {
            }, e.prototype.buildLabel = function (t, e, n) {
                return {x: t[n = n || 0], y: t[1 - n], width: e[n], height: e[1 - n]}
            }, e
        }();

        function PG(t, e, n, i) {
            GG(OG(n).lastProp, i) || (OG(n).lastProp = i, e ? ju(n, i, t) : (n.stopAnimation(), n.attr(i)))
        }

        function GG(t, e) {
            if (Dt(t) && Dt(e)) {
                var n = !0;
                return mt(e, (function (e, i) {
                    n = n && GG(t[i], e)
                })), !!n
            }
            return t === e
        }

        function BG(t, e) {
            t[e.get(["label", "show"]) ? "show" : "hide"]()
        }

        function FG(t) {
            return {x: t.x || 0, y: t.y || 0, rotation: t.rotation || 0}
        }

        function HG(t, e, n) {
            var i = e.get("z"), r = e.get("zlevel");
            t && t.traverse((function (t) {
                "group" !== t.type && (null != i && (t.z = i), null != r && (t.zlevel = r), t.silent = n)
            }))
        }

        const UG = kG;

        function VG(t) {
            var e, n = t.get("type"), i = t.getModel(n + "Style");
            return "line" === n ? (e = i.getLineStyle()).fill = null : "shadow" === n && ((e = i.getAreaStyle()).stroke = null), e
        }

        function zG(t, e, n, i, r) {
            var o = WG(n.get("value"), e.axis, e.ecModel, n.get("seriesDataIndices"), {
                    precision: n.get(["label", "precision"]),
                    formatter: n.get(["label", "formatter"])
                }), a = n.getModel("label"), s = _h(a.get("padding") || 0), l = a.getFont(), u = no(o, l), c = r.position,
                h = u.width + s[1] + s[3], d = u.height + s[0] + s[2], p = r.align;
            "right" === p && (c[0] -= h), "center" === p && (c[0] -= h / 2);
            var f = r.verticalAlign;
            "bottom" === f && (c[1] -= d), "middle" === f && (c[1] -= d / 2), function (t, e, n, i) {
                var r = i.getWidth(), o = i.getHeight();
                t[0] = Math.min(t[0] + e, r) - e, t[1] = Math.min(t[1] + n, o) - n, t[0] = Math.max(t[0], 0), t[1] = Math.max(t[1], 0)
            }(c, h, d, i);
            var g = a.get("backgroundColor");
            g && "auto" !== g || (g = e.get(["axisLine", "lineStyle", "color"])), t.label = {
                x: c[0],
                y: c[1],
                style: oc(a, {text: o, font: l, fill: a.getTextColor(), padding: s, backgroundColor: g}),
                z2: 10
            }
        }

        function WG(t, e, n, i, r) {
            t = e.scale.parse(t);
            var o = e.scale.getLabel({value: t}, {precision: r.precision}), a = r.formatter;
            if (a) {
                var s = {value: FI(e, {value: t}), axisDimension: e.dim, axisIndex: e.index, seriesData: []};
                mt(i, (function (t) {
                    var e = n.getSeriesByIndex(t.seriesIndex), i = t.dataIndexInside, r = e && e.getDataParams(i);
                    r && s.seriesData.push(r)
                })), It(a) ? o = a.replace("{value}", o) : bt(a) && (o = a(s))
            }
            return o
        }

        function YG(t, e, n) {
            var i = [1, 0, 0, 1, 0, 0];
            return Ke(i, i, n.rotation), Ze(i, i, n.position), Em([t.dataToCoord(e), (n.labelOffset || 0) + (n.labelDirection || 1) * (n.labelMargin || 0)], i)
        }

        function qG(t, e, n, i, r, o) {
            var a = CE.innerTextLayout(n.rotation, 0, n.labelDirection);
            n.labelMargin = r.get(["label", "margin"]), zG(e, i, r, o, {
                position: YG(i.axis, t, n),
                align: a.textAlign,
                verticalAlign: a.textVerticalAlign
            })
        }

        function jG(t, e, n) {
            return {x1: t[n = n || 0], y1: t[1 - n], x2: e[n], y2: e[1 - n]}
        }

        function XG(t, e, n) {
            return {x: t[n = n || 0], y: t[1 - n], width: e[n], height: e[1 - n]}
        }

        function ZG(t, e, n, i, r, o) {
            return {cx: t, cy: e, r0: n, r: i, startAngle: r, endAngle: o, clockwise: !0}
        }

        var KG = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.makeElOption = function (t, e, n, i, r) {
                var o = n.axis, a = o.grid, s = i.get("type"), l = QG(a, o).getOtherAxis(o).getGlobalExtent(),
                    u = o.toGlobalCoord(o.dataToCoord(e, !0));
                if (s && "none" !== s) {
                    var c = VG(i), h = $G[s](o, u, l);
                    h.style = c, t.graphicKey = h.type, t.pointer = h
                }
                qG(e, t, cE(a.model, n), n, i, r)
            }, e.prototype.getHandleTransform = function (t, e, n) {
                var i = cE(e.axis.grid.model, e, {labelInside: !1});
                i.labelMargin = n.get(["handle", "margin"]);
                var r = YG(e.axis, t, i);
                return {x: r[0], y: r[1], rotation: i.rotation + (i.labelDirection < 0 ? Math.PI : 0)}
            }, e.prototype.updateHandleTransform = function (t, e, n, i) {
                var r = n.axis, o = r.grid, a = r.getGlobalExtent(!0), s = QG(o, r).getOtherAxis(r).getGlobalExtent(),
                    l = "x" === r.dim ? 0 : 1, u = [t.x, t.y];
                u[l] += e[l], u[l] = Math.min(a[1], u[l]), u[l] = Math.max(a[0], u[l]);
                var c = (s[1] + s[0]) / 2, h = [c, c];
                h[l] = u[l];
                return {
                    x: u[0],
                    y: u[1],
                    rotation: t.rotation,
                    cursorPoint: h,
                    tooltipOption: [{verticalAlign: "middle"}, {align: "center"}][l]
                }
            }, e
        }(UG);

        function QG(t, e) {
            var n = {};
            return n[e.dim + "AxisIndex"] = e.index, t.getCartesian(n)
        }

        var $G = {
            line: function (t, e, n) {
                return {type: "Line", subPixelOptimize: !0, shape: jG([e, n[0]], [e, n[1]], JG(t))}
            }, shadow: function (t, e, n) {
                var i = Math.max(1, t.getBandWidth()), r = n[1] - n[0];
                return {type: "Rect", shape: XG([e - i / 2, n[0]], [i, r], JG(t))}
            }
        };

        function JG(t) {
            return "x" === t.dim ? 0 : 1
        }

        const tB = KG;
        const eB = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "axisPointer", e.defaultOption = {
                show: "auto",
                z: 50,
                type: "line",
                snap: !1,
                triggerTooltip: !0,
                triggerEmphasis: !0,
                value: null,
                status: null,
                link: [],
                animation: null,
                animationDurationUpdate: 200,
                lineStyle: {color: "#B9BEC9", width: 1, type: "dashed"},
                shadowStyle: {color: "rgba(210,219,238,0.2)"},
                label: {
                    show: !0,
                    formatter: null,
                    precision: "auto",
                    margin: 3,
                    color: "#fff",
                    padding: [5, 7, 5, 7],
                    backgroundColor: "auto",
                    borderColor: null,
                    borderWidth: 0,
                    borderRadius: 3
                },
                handle: {
                    show: !1,
                    icon: "M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",
                    size: 45,
                    margin: 50,
                    color: "#333",
                    shadowBlur: 3,
                    shadowColor: "#aaa",
                    shadowOffsetX: 0,
                    shadowOffsetY: 2,
                    throttle: 40
                }
            }, e
        }(Fh);
        var nB = ha(), iB = mt;

        function rB(t, e, n) {
            if (!H.node) {
                var i = e.getZr();
                nB(i).records || (nB(i).records = {}), function (t, e) {
                    if (nB(t).initialized) return;

                    function n(n, i) {
                        t.on(n, (function (n) {
                            var r = function (t) {
                                var e = {showTip: [], hideTip: []}, n = function (i) {
                                    var r = e[i.type];
                                    r ? r.push(i) : (i.dispatchAction = n, t.dispatchAction(i))
                                };
                                return {dispatchAction: n, pendings: e}
                            }(e);
                            iB(nB(t).records, (function (t) {
                                t && i(t, n, r.dispatchAction)
                            })), function (t, e) {
                                var n, i = t.showTip.length, r = t.hideTip.length;
                                i ? n = t.showTip[i - 1] : r && (n = t.hideTip[r - 1]);
                                n && (n.dispatchAction = null, e.dispatchAction(n))
                            }(r.pendings, e)
                        }))
                    }

                    nB(t).initialized = !0, n("click", St(aB, "click")), n("mousemove", St(aB, "mousemove")), n("globalout", oB)
                }(i, e), (nB(i).records[t] || (nB(i).records[t] = {})).handler = n
            }
        }

        function oB(t, e, n) {
            t.handler("leave", null, n)
        }

        function aB(t, e, n, i) {
            e.handler(t, n, i)
        }

        function sB(t, e) {
            if (!H.node) {
                var n = e.getZr();
                (nB(n).records || {})[t] && (nB(n).records[t] = null)
            }
        }

        var lB = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i = e.getComponent("tooltip"),
                    r = t.get("triggerOn") || i && i.get("triggerOn") || "mousemove|click";
                rB("axisPointer", n, (function (t, e, n) {
                    "none" !== r && ("leave" === t || r.indexOf(t) >= 0) && n({
                        type: "updateAxisPointer",
                        currTrigger: t,
                        x: e && e.offsetX,
                        y: e && e.offsetY
                    })
                }))
            }, e.prototype.remove = function (t, e) {
                sB("axisPointer", e)
            }, e.prototype.dispose = function (t, e) {
                sB("axisPointer", e)
            }, e.type = "axisPointer", e
        }(Gf);
        const uB = lB;

        function cB(t, e) {
            var n, i = [], r = t.seriesIndex;
            if (null == r || !(n = e.getSeriesByIndex(r))) return {point: []};
            var o = n.getData(), a = ca(o, t);
            if (null == a || a < 0 || At(a)) return {point: []};
            var s = o.getItemGraphicEl(a), l = n.coordinateSystem;
            if (n.getTooltipPosition) i = n.getTooltipPosition(a) || []; else if (l && l.dataToPoint) if (t.isStacked) {
                var u = l.getBaseAxis(), c = l.getOtherAxis(u).dim, h = u.dim, d = "x" === c || "radius" === c ? 1 : 0,
                    p = o.mapDimension(h), f = [];
                f[d] = o.get(p, a), f[1 - d] = o.get(o.getCalculationInfo("stackResultDimension"), a), i = l.dataToPoint(f) || []
            } else i = l.dataToPoint(o.getValues(yt(l.dimensions, (function (t) {
                return o.mapDimension(t)
            })), a)) || []; else if (s) {
                var g = s.getBoundingRect().clone();
                g.applyTransform(s.transform), i = [g.x + g.width / 2, g.y + g.height / 2]
            }
            return {point: i, el: s}
        }

        var hB = ha();

        function dB(t, e, n) {
            var i = t.currTrigger, r = [t.x, t.y], o = t, a = t.dispatchAction || xt(n.dispatchAction, n),
                s = e.getComponent("axisPointer").coordSysAxesInfo;
            if (s) {
                yB(r) && (r = cB({seriesIndex: o.seriesIndex, dataIndex: o.dataIndex}, e).point);
                var l = yB(r), u = o.axesInfo, c = s.axesInfo, h = "leave" === i || yB(r), d = {}, p = {},
                    f = {list: [], map: {}}, g = {showPointer: St(fB, p), showTooltip: St(gB, f)};
                mt(s.coordSysMap, (function (t, e) {
                    var n = l || t.containPoint(r);
                    mt(s.coordSysAxesInfo[e], (function (t, e) {
                        var i = t.axis, o = function (t, e) {
                            for (var n = 0; n < (t || []).length; n++) {
                                var i = t[n];
                                if (e.axis.dim === i.axisDim && e.axis.model.componentIndex === i.axisIndex) return i
                            }
                        }(u, t);
                        if (!h && n && (!u || o)) {
                            var a = o && o.value;
                            null != a || l || (a = i.pointToData(r)), null != a && pB(t, a, g, !1, d)
                        }
                    }))
                }));
                var m = {};
                return mt(c, (function (t, e) {
                    var n = t.linkGroup;
                    n && !p[e] && mt(n.axesInfo, (function (e, i) {
                        var r = p[i];
                        if (e !== t && r) {
                            var o = r.value;
                            n.mapper && (o = t.axis.scale.parse(n.mapper(o, mB(e), mB(t)))), m[t.key] = o
                        }
                    }))
                })), mt(m, (function (t, e) {
                    pB(c[e], t, g, !0, d)
                })), function (t, e, n) {
                    var i = n.axesInfo = [];
                    mt(e, (function (e, n) {
                        var r = e.axisPointerModel.option, o = t[n];
                        o ? (!e.useHandle && (r.status = "show"), r.value = o.value, r.seriesDataIndices = (o.payloadBatch || []).slice()) : !e.useHandle && (r.status = "hide"), "show" === r.status && i.push({
                            axisDim: e.axis.dim,
                            axisIndex: e.axis.model.componentIndex,
                            value: r.value
                        })
                    }))
                }(p, c, d), function (t, e, n, i) {
                    if (yB(e) || !t.list.length) return void i({type: "hideTip"});
                    var r = ((t.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {};
                    i({
                        type: "showTip",
                        escapeConnect: !0,
                        x: e[0],
                        y: e[1],
                        tooltipOption: n.tooltipOption,
                        position: n.position,
                        dataIndexInside: r.dataIndexInside,
                        dataIndex: r.dataIndex,
                        seriesIndex: r.seriesIndex,
                        dataByCoordSys: t.list
                    })
                }(f, r, t, a), function (t, e, n) {
                    var i = n.getZr(), r = "axisPointerLastHighlights", o = hB(i)[r] || {}, a = hB(i)[r] = {};
                    mt(t, (function (t, e) {
                        var n = t.axisPointerModel.option;
                        "show" === n.status && t.triggerEmphasis && mt(n.seriesDataIndices, (function (t) {
                            var e = t.seriesIndex + " | " + t.dataIndex;
                            a[e] = t
                        }))
                    }));
                    var s = [], l = [];
                    mt(o, (function (t, e) {
                        !a[e] && l.push(t)
                    })), mt(a, (function (t, e) {
                        !o[e] && s.push(t)
                    })), l.length && n.dispatchAction({
                        type: "downplay",
                        escapeConnect: !0,
                        notBlur: !0,
                        batch: l
                    }), s.length && n.dispatchAction({type: "highlight", escapeConnect: !0, notBlur: !0, batch: s})
                }(c, 0, n), d
            }
        }

        function pB(t, e, n, i, r) {
            var o = t.axis;
            if (!o.scale.isBlank() && o.containData(e)) if (t.involveSeries) {
                var a = function (t, e) {
                    var n = e.axis, i = n.dim, r = t, o = [], a = Number.MAX_VALUE, s = -1;
                    return mt(e.seriesModels, (function (e, l) {
                        var u, c, h = e.getData().mapDimensionsAll(i);
                        if (e.getAxisTooltipData) {
                            var d = e.getAxisTooltipData(h, t, n);
                            c = d.dataIndices, u = d.nestestValue
                        } else {
                            if (!(c = e.getData().indicesOfNearest(h[0], t, "category" === n.type ? .5 : null)).length) return;
                            u = e.getData().get(h[0], c[0])
                        }
                        if (null != u && isFinite(u)) {
                            var p = t - u, f = Math.abs(p);
                            f <= a && ((f < a || p >= 0 && s < 0) && (a = f, s = p, r = u, o.length = 0), mt(c, (function (t) {
                                o.push({
                                    seriesIndex: e.seriesIndex,
                                    dataIndexInside: t,
                                    dataIndex: e.getData().getRawIndex(t)
                                })
                            })))
                        }
                    })), {payloadBatch: o, snapToValue: r}
                }(e, t), s = a.payloadBatch, l = a.snapToValue;
                s[0] && null == r.seriesIndex && ht(r, s[0]), !i && t.snap && o.containData(l) && null != l && (e = l), n.showPointer(t, e, s), n.showTooltip(t, a, l)
            } else n.showPointer(t, e)
        }

        function fB(t, e, n, i) {
            t[e.key] = {value: n, payloadBatch: i}
        }

        function gB(t, e, n, i) {
            var r = n.payloadBatch, o = e.axis, a = o.model, s = e.axisPointerModel;
            if (e.triggerTooltip && r.length) {
                var l = e.coordSys.model, u = OE(l), c = t.map[u];
                c || (c = t.map[u] = {
                    coordSysId: l.id,
                    coordSysIndex: l.componentIndex,
                    coordSysType: l.type,
                    coordSysMainType: l.mainType,
                    dataByAxis: []
                }, t.list.push(c)), c.dataByAxis.push({
                    axisDim: o.dim,
                    axisIndex: a.componentIndex,
                    axisType: a.type,
                    axisId: a.id,
                    value: i,
                    valueLabelOpt: {precision: s.get(["label", "precision"]), formatter: s.get(["label", "formatter"])},
                    seriesDataIndices: r.slice()
                })
            }
        }

        function mB(t) {
            var e = t.axis.model, n = {}, i = n.axisDim = t.axis.dim;
            return n.axisIndex = n[i + "AxisIndex"] = e.componentIndex, n.axisName = n[i + "AxisName"] = e.name, n.axisId = n[i + "AxisId"] = e.id, n
        }

        function yB(t) {
            return !t || null == t[0] || isNaN(t[0]) || null == t[1] || isNaN(t[1])
        }

        function vB(t) {
            kE.registerAxisPointerClass("CartesianAxisPointer", tB), t.registerComponentModel(eB), t.registerComponentView(uB), t.registerPreprocessor((function (t) {
                if (t) {
                    (!t.axisPointer || 0 === t.axisPointer.length) && (t.axisPointer = {});
                    var e = t.axisPointer.link;
                    e && !At(e) && (t.axisPointer.link = [e])
                }
            })), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, (function (t, e) {
                t.getComponent("axisPointer").coordSysAxesInfo = DE(t, e)
            })), t.registerAction({
                type: "updateAxisPointer",
                event: "updateAxisPointer",
                update: ":updateAxisPointer"
            }, dB)
        }

        var _B = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.makeElOption = function (t, e, n, i, r) {
                var o = n.axis;
                "angle" === o.dim && (this.animationThreshold = Math.PI / 18);
                var a = o.polar, s = a.getOtherAxis(o).getExtent(), l = o.dataToCoord(e), u = i.get("type");
                if (u && "none" !== u) {
                    var c = VG(i), h = TB[u](o, a, l, s);
                    h.style = c, t.graphicKey = h.type, t.pointer = h
                }
                var d = function (t, e, n, i, r) {
                    var o = e.axis, a = o.dataToCoord(t), s = i.getAngleAxis().getExtent()[0];
                    s = s / 180 * Math.PI;
                    var l, u, c, h = i.getRadiusAxis().getExtent();
                    if ("radius" === o.dim) {
                        var d = [1, 0, 0, 1, 0, 0];
                        Ke(d, d, s), Ze(d, d, [i.cx, i.cy]), l = Em([a, -r], d);
                        var p = e.getModel("axisLabel").get("rotate") || 0,
                            f = CE.innerTextLayout(s, p * Math.PI / 180, -1);
                        u = f.textAlign, c = f.textVerticalAlign
                    } else {
                        var g = h[1];
                        l = i.coordToPoint([g + r, a]);
                        var m = i.cx, y = i.cy;
                        u = Math.abs(l[0] - m) / g < .3 ? "center" : l[0] > m ? "left" : "right", c = Math.abs(l[1] - y) / g < .3 ? "middle" : l[1] > y ? "top" : "bottom"
                    }
                    return {position: l, align: u, verticalAlign: c}
                }(e, n, 0, a, i.get(["label", "margin"]));
                zG(t, n, i, r, d)
            }, e
        }(UG);
        var TB = {
            line: function (t, e, n, i) {
                return "angle" === t.dim ? {
                    type: "Line",
                    shape: jG(e.coordToPoint([i[0], n]), e.coordToPoint([i[1], n]))
                } : {type: "Circle", shape: {cx: e.cx, cy: e.cy, r: n}}
            }, shadow: function (t, e, n, i) {
                var r = Math.max(1, t.getBandWidth()), o = Math.PI / 180;
                return "angle" === t.dim ? {
                    type: "Sector",
                    shape: ZG(e.cx, e.cy, i[0], i[1], (-n - r / 2) * o, (r / 2 - n) * o)
                } : {type: "Sector", shape: ZG(e.cx, e.cy, n - r / 2, n + r / 2, 0, 2 * Math.PI)}
            }
        };
        const xB = _B;
        const SB = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.findAxisModel = function (t) {
                var e;
                return this.ecModel.eachComponent(t, (function (t) {
                    t.getCoordSysModel() === this && (e = t)
                }), this), e
            }, e.type = "polar", e.dependencies = ["radiusAxis", "angleAxis"], e.defaultOption = {
                z: 0,
                center: ["50%", "50%"],
                radius: "80%"
            }, e
        }(Fh);
        var AB = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.getCoordSysModel = function () {
                return this.getReferringComponents("polar", ga).models[0]
            }, e.type = "polarAxis", e
        }(Fh);
        ft(AB, Gb);
        var bB = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "angleAxis", e
        }(AB), IB = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "radiusAxis", e
        }(AB), EB = function (t) {
            function e(e, n) {
                return t.call(this, "radius", e, n) || this
            }

            return G(e, t), e.prototype.pointToData = function (t, e) {
                return this.polar.pointToData(t, e)["radius" === this.dim ? 0 : 1]
            }, e
        }(sE);
        EB.prototype.dataToRadius = sE.prototype.dataToCoord, EB.prototype.radiusToData = sE.prototype.coordToData;
        const CB = EB;
        var DB = ha(), wB = function (t) {
            function e(e, n) {
                return t.call(this, "angle", e, n || [0, 360]) || this
            }

            return G(e, t), e.prototype.pointToData = function (t, e) {
                return this.polar.pointToData(t, e)["radius" === this.dim ? 0 : 1]
            }, e.prototype.calculateCategoryInterval = function () {
                var t = this, e = t.getLabelModel(), n = t.scale, i = n.getExtent(), r = n.count();
                if (i[1] - i[0] < 1) return 0;
                var o = i[0], a = t.dataToCoord(o + 1) - t.dataToCoord(o), s = Math.abs(a),
                    l = no(null == o ? "" : o + "", e.getFont(), "center", "top"), u = Math.max(l.height, 7) / s;
                isNaN(u) && (u = 1 / 0);
                var c = Math.max(0, Math.floor(u)), h = DB(t.model), d = h.lastAutoInterval, p = h.lastTickCount;
                return null != d && null != p && Math.abs(d - c) <= 1 && Math.abs(p - r) <= 1 && d > c ? c = d : (h.lastTickCount = r, h.lastAutoInterval = c), c
            }, e
        }(sE);
        wB.prototype.dataToAngle = sE.prototype.dataToCoord, wB.prototype.angleToData = sE.prototype.coordToData;
        const MB = wB;
        var NB = ["radius", "angle"], OB = function () {
            function t(t) {
                this.dimensions = NB, this.type = "polar", this.cx = 0, this.cy = 0, this._radiusAxis = new CB, this._angleAxis = new MB, this.axisPointerEnabled = !0, this.name = t || "", this._radiusAxis.polar = this._angleAxis.polar = this
            }

            return t.prototype.containPoint = function (t) {
                var e = this.pointToCoord(t);
                return this._radiusAxis.contain(e[0]) && this._angleAxis.contain(e[1])
            }, t.prototype.containData = function (t) {
                return this._radiusAxis.containData(t[0]) && this._angleAxis.containData(t[1])
            }, t.prototype.getAxis = function (t) {
                return this["_" + t + "Axis"]
            }, t.prototype.getAxes = function () {
                return [this._radiusAxis, this._angleAxis]
            }, t.prototype.getAxesByScale = function (t) {
                var e = [], n = this._angleAxis, i = this._radiusAxis;
                return n.scale.type === t && e.push(n), i.scale.type === t && e.push(i), e
            }, t.prototype.getAngleAxis = function () {
                return this._angleAxis
            }, t.prototype.getRadiusAxis = function () {
                return this._radiusAxis
            }, t.prototype.getOtherAxis = function (t) {
                var e = this._angleAxis;
                return t === e ? this._radiusAxis : e
            }, t.prototype.getBaseAxis = function () {
                return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAngleAxis()
            }, t.prototype.getTooltipAxes = function (t) {
                var e = null != t && "auto" !== t ? this.getAxis(t) : this.getBaseAxis();
                return {baseAxes: [e], otherAxes: [this.getOtherAxis(e)]}
            }, t.prototype.dataToPoint = function (t, e) {
                return this.coordToPoint([this._radiusAxis.dataToRadius(t[0], e), this._angleAxis.dataToAngle(t[1], e)])
            }, t.prototype.pointToData = function (t, e) {
                var n = this.pointToCoord(t);
                return [this._radiusAxis.radiusToData(n[0], e), this._angleAxis.angleToData(n[1], e)]
            }, t.prototype.pointToCoord = function (t) {
                var e = t[0] - this.cx, n = t[1] - this.cy, i = this.getAngleAxis(), r = i.getExtent(),
                    o = Math.min(r[0], r[1]), a = Math.max(r[0], r[1]);
                i.inverse ? o = a - 360 : a = o + 360;
                var s = Math.sqrt(e * e + n * n);
                e /= s, n /= s;
                for (var l = Math.atan2(-n, e) / Math.PI * 180, u = l < o ? 1 : -1; l < o || l > a;) l += 360 * u;
                return [s, l]
            }, t.prototype.coordToPoint = function (t) {
                var e = t[0], n = t[1] / 180 * Math.PI;
                return [Math.cos(n) * e + this.cx, -Math.sin(n) * e + this.cy]
            }, t.prototype.getArea = function () {
                var t = this.getAngleAxis(), e = this.getRadiusAxis().getExtent().slice();
                e[0] > e[1] && e.reverse();
                var n = t.getExtent(), i = Math.PI / 180;
                return {
                    cx: this.cx,
                    cy: this.cy,
                    r0: e[0],
                    r: e[1],
                    startAngle: -n[0] * i,
                    endAngle: -n[1] * i,
                    clockwise: t.inverse,
                    contain: function (t, e) {
                        var n = t - this.cx, i = e - this.cy, r = n * n + i * i - 1e-4, o = this.r, a = this.r0;
                        return r <= o * o && r >= a * a
                    }
                }
            }, t.prototype.convertToPixel = function (t, e, n) {
                return LB(e) === this ? this.dataToPoint(n) : null
            }, t.prototype.convertFromPixel = function (t, e, n) {
                return LB(e) === this ? this.pointToData(n) : null
            }, t
        }();

        function LB(t) {
            var e = t.seriesModel, n = t.polarModel;
            return n && n.coordinateSystem || e && e.coordinateSystem
        }

        const RB = OB;

        function kB(t, e) {
            var n = this, i = n.getAngleAxis(), r = n.getRadiusAxis();
            if (i.scale.setExtent(1 / 0, -1 / 0), r.scale.setExtent(1 / 0, -1 / 0), t.eachSeries((function (t) {
                if (t.coordinateSystem === n) {
                    var e = t.getData();
                    mt(zI(e, "radius"), (function (t) {
                        r.scale.unionExtentFromData(e, t)
                    })), mt(zI(e, "angle"), (function (t) {
                        i.scale.unionExtentFromData(e, t)
                    }))
                }
            })), PI(i.scale, i.model), PI(r.scale, r.model), "category" === i.type && !i.onBand) {
                var o = i.getExtent(), a = 360 / i.scale.count();
                i.inverse ? o[1] += a : o[1] -= a, i.setExtent(o[0], o[1])
            }
        }

        function PB(t, e) {
            if (t.type = e.get("type"), t.scale = GI(e), t.onBand = e.get("boundaryGap") && "category" === t.type, t.inverse = e.get("inverse"), function (t) {
                return "angleAxis" === t.mainType
            }(e)) {
                t.inverse = t.inverse !== e.get("clockwise");
                var n = e.get("startAngle");
                t.setExtent(n, n + (t.inverse ? -360 : 360))
            }
            e.axis = t, t.model = e
        }

        var GB = {
            dimensions: NB, create: function (t, e) {
                var n = [];
                return t.eachComponent("polar", (function (t, i) {
                    var r = new RB(i + "");
                    r.update = kB;
                    var o = r.getRadiusAxis(), a = r.getAngleAxis(), s = t.findAxisModel("radiusAxis"),
                        l = t.findAxisModel("angleAxis");
                    PB(o, s), PB(a, l), function (t, e, n) {
                        var i = e.get("center"), r = n.getWidth(), o = n.getHeight();
                        t.cx = wo(i[0], r), t.cy = wo(i[1], o);
                        var a = t.getRadiusAxis(), s = Math.min(r, o) / 2, l = e.get("radius");
                        null == l ? l = [0, "100%"] : At(l) || (l = [0, l]);
                        var u = [wo(l[0], s), wo(l[1], s)];
                        a.inverse ? a.setExtent(u[1], u[0]) : a.setExtent(u[0], u[1])
                    }(r, t, e), n.push(r), t.coordinateSystem = r, r.model = t
                })), t.eachSeries((function (t) {
                    if ("polar" === t.get("coordinateSystem")) {
                        var e = t.getReferringComponents("polar", ga).models[0];
                        0, t.coordinateSystem = e.coordinateSystem
                    }
                })), n
            }
        };
        const BB = GB;
        var FB = ["axisLine", "axisLabel", "axisTick", "minorTick", "splitLine", "minorSplitLine", "splitArea"];

        function HB(t, e, n) {
            e[1] > e[0] && (e = e.slice().reverse());
            var i = t.coordToPoint([e[0], n]), r = t.coordToPoint([e[1], n]);
            return {x1: i[0], y1: i[1], x2: r[0], y2: r[1]}
        }

        function UB(t) {
            return t.getRadiusAxis().inverse ? 0 : 1
        }

        function VB(t) {
            var e = t[0], n = t[t.length - 1];
            e && n && Math.abs(Math.abs(e.coord - n.coord) - 360) < 1e-4 && t.pop()
        }

        var zB = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.axisPointerClass = "PolarAxisPointer", n
            }

            return G(e, t), e.prototype.render = function (t, e) {
                if (this.group.removeAll(), t.get("show")) {
                    var n = t.axis, i = n.polar, r = i.getRadiusAxis().getExtent(), o = n.getTicksCoords(),
                        a = n.getMinorTicksCoords(), s = yt(n.getViewLabels(), (function (t) {
                            t = lt(t);
                            var e = n.scale, i = "ordinal" === e.type ? e.getRawOrdinalNumber(t.tickValue) : t.tickValue;
                            return t.coord = n.dataToCoord(i), t
                        }));
                    VB(s), VB(o), mt(FB, (function (e) {
                        !t.get([e, "show"]) || n.scale.isBlank() && "axisLine" !== e || WB[e](this.group, t, i, o, a, r, s)
                    }), this)
                }
            }, e.type = "angleAxis", e
        }(kE), WB = {
            axisLine: function (t, e, n, i, r, o) {
                var a, s = e.getModel(["axisLine", "lineStyle"]), l = UB(n), u = l ? 0 : 1;
                (a = 0 === o[u] ? new sg({
                    shape: {cx: n.cx, cy: n.cy, r: o[l]},
                    style: s.getLineStyle(),
                    z2: 1,
                    silent: !0
                }) : new wg({
                    shape: {cx: n.cx, cy: n.cy, r: o[l], r0: o[u]},
                    style: s.getLineStyle(),
                    z2: 1,
                    silent: !0
                })).style.fill = null, t.add(a)
            }, axisTick: function (t, e, n, i, r, o) {
                var a = e.getModel("axisTick"), s = (a.get("inside") ? -1 : 1) * a.get("length"), l = o[UB(n)],
                    u = yt(i, (function (t) {
                        return new Hg({shape: HB(n, [l, l + s], t.coord)})
                    }));
                t.add(Tm(u, {style: dt(a.getModel("lineStyle").getLineStyle(), {stroke: e.get(["axisLine", "lineStyle", "color"])})}))
            }, minorTick: function (t, e, n, i, r, o) {
                if (r.length) {
                    for (var a = e.getModel("axisTick"), s = e.getModel("minorTick"), l = (a.get("inside") ? -1 : 1) * s.get("length"), u = o[UB(n)], c = [], h = 0; h < r.length; h++) for (var d = 0; d < r[h].length; d++) c.push(new Hg({shape: HB(n, [u, u + l], r[h][d].coord)}));
                    t.add(Tm(c, {style: dt(s.getModel("lineStyle").getLineStyle(), dt(a.getLineStyle(), {stroke: e.get(["axisLine", "lineStyle", "color"])}))}))
                }
            }, axisLabel: function (t, e, n, i, r, o, a) {
                var s = e.getCategories(!0), l = e.getModel("axisLabel"), u = l.get("margin"),
                    c = e.get("triggerEvent");
                mt(a, (function (i, r) {
                    var a = l, h = i.tickValue, d = o[UB(n)], p = n.coordToPoint([d + u, i.coord]), f = n.cx, g = n.cy,
                        m = Math.abs(p[0] - f) / d < .3 ? "center" : p[0] > f ? "left" : "right",
                        y = Math.abs(p[1] - g) / d < .3 ? "middle" : p[1] > g ? "top" : "bottom";
                    if (s && s[h]) {
                        var v = s[h];
                        Dt(v) && v.textStyle && (a = new wc(v.textStyle, l, l.ecModel))
                    }
                    var _ = new Fl({
                        silent: CE.isLabelSilent(e),
                        style: oc(a, {
                            x: p[0],
                            y: p[1],
                            fill: a.getTextColor() || e.get(["axisLine", "lineStyle", "color"]),
                            text: i.formattedLabel,
                            align: m,
                            verticalAlign: y
                        })
                    });
                    if (t.add(_), c) {
                        var T = CE.makeAxisEventDataBase(e);
                        T.targetType = "axisLabel", T.value = i.rawLabel, Hl(_).eventData = T
                    }
                }), this)
            }, splitLine: function (t, e, n, i, r, o) {
                var a = e.getModel("splitLine").getModel("lineStyle"), s = a.get("color"), l = 0;
                s = s instanceof Array ? s : [s];
                for (var u = [], c = 0; c < i.length; c++) {
                    var h = l++ % s.length;
                    u[h] = u[h] || [], u[h].push(new Hg({shape: HB(n, o, i[c].coord)}))
                }
                for (c = 0; c < u.length; c++) t.add(Tm(u[c], {
                    style: dt({stroke: s[c % s.length]}, a.getLineStyle()),
                    silent: !0,
                    z: e.get("z")
                }))
            }, minorSplitLine: function (t, e, n, i, r, o) {
                if (r.length) {
                    for (var a = e.getModel("minorSplitLine").getModel("lineStyle"), s = [], l = 0; l < r.length; l++) for (var u = 0; u < r[l].length; u++) s.push(new Hg({shape: HB(n, o, r[l][u].coord)}));
                    t.add(Tm(s, {style: a.getLineStyle(), silent: !0, z: e.get("z")}))
                }
            }, splitArea: function (t, e, n, i, r, o) {
                if (i.length) {
                    var a = e.getModel("splitArea").getModel("areaStyle"), s = a.get("color"), l = 0;
                    s = s instanceof Array ? s : [s];
                    for (var u = [], c = Math.PI / 180, h = -i[0].coord * c, d = Math.min(o[0], o[1]), p = Math.max(o[0], o[1]), f = e.get("clockwise"), g = 1, m = i.length; g <= m; g++) {
                        var y = g === m ? i[0].coord : i[g].coord, v = l++ % s.length;
                        u[v] = u[v] || [], u[v].push(new Eg({
                            shape: {
                                cx: n.cx,
                                cy: n.cy,
                                r0: d,
                                r: p,
                                startAngle: h,
                                endAngle: -y * c,
                                clockwise: f
                            }, silent: !0
                        })), h = -y * c
                    }
                    for (g = 0; g < u.length; g++) t.add(Tm(u[g], {
                        style: dt({fill: s[g % s.length]}, a.getAreaStyle()),
                        silent: !0
                    }))
                }
            }
        };
        const YB = zB;
        var qB = ["axisLine", "axisTickLabel", "axisName"], jB = ["splitLine", "splitArea", "minorSplitLine"],
            XB = function (t) {
                function e() {
                    var n = null !== t && t.apply(this, arguments) || this;
                    return n.type = e.type, n.axisPointerClass = "PolarAxisPointer", n
                }

                return G(e, t), e.prototype.render = function (t, e) {
                    if (this.group.removeAll(), t.get("show")) {
                        var n = this._axisGroup, i = this._axisGroup = new xo;
                        this.group.add(i);
                        var r = t.axis, o = r.polar, a = o.getAngleAxis(), s = r.getTicksCoords(),
                            l = r.getMinorTicksCoords(), u = a.getExtent()[0], c = r.getExtent(),
                            h = function (t, e, n) {
                                return {
                                    position: [t.cx, t.cy],
                                    rotation: n / 180 * Math.PI,
                                    labelDirection: -1,
                                    tickDirection: -1,
                                    nameDirection: 1,
                                    labelRotate: e.getModel("axisLabel").get("rotate"),
                                    z2: 1
                                }
                            }(o, t, u), d = new CE(t, h);
                        mt(qB, d.add, d), i.add(d.getGroup()), wm(n, i, t), mt(jB, (function (e) {
                            t.get([e, "show"]) && !r.scale.isBlank() && ZB[e](this.group, t, o, u, c, s, l)
                        }), this)
                    }
                }, e.type = "radiusAxis", e
            }(kE), ZB = {
                splitLine: function (t, e, n, i, r, o) {
                    var a = e.getModel("splitLine").getModel("lineStyle"), s = a.get("color"), l = 0;
                    s = s instanceof Array ? s : [s];
                    for (var u = [], c = 0; c < o.length; c++) {
                        var h = l++ % s.length;
                        u[h] = u[h] || [], u[h].push(new sg({shape: {cx: n.cx, cy: n.cy, r: Math.max(o[c].coord, 0)}}))
                    }
                    for (c = 0; c < u.length; c++) t.add(Tm(u[c], {
                        style: dt({
                            stroke: s[c % s.length],
                            fill: null
                        }, a.getLineStyle()), silent: !0
                    }))
                }, minorSplitLine: function (t, e, n, i, r, o, a) {
                    if (a.length) {
                        for (var s = e.getModel("minorSplitLine").getModel("lineStyle"), l = [], u = 0; u < a.length; u++) for (var c = 0; c < a[u].length; c++) l.push(new sg({
                            shape: {
                                cx: n.cx,
                                cy: n.cy,
                                r: a[u][c].coord
                            }
                        }));
                        t.add(Tm(l, {style: dt({fill: null}, s.getLineStyle()), silent: !0}))
                    }
                }, splitArea: function (t, e, n, i, r, o) {
                    if (o.length) {
                        var a = e.getModel("splitArea").getModel("areaStyle"), s = a.get("color"), l = 0;
                        s = s instanceof Array ? s : [s];
                        for (var u = [], c = o[0].coord, h = 1; h < o.length; h++) {
                            var d = l++ % s.length;
                            u[d] = u[d] || [], u[d].push(new Eg({
                                shape: {
                                    cx: n.cx,
                                    cy: n.cy,
                                    r0: c,
                                    r: o[h].coord,
                                    startAngle: 0,
                                    endAngle: 2 * Math.PI
                                }, silent: !0
                            })), c = o[h].coord
                        }
                        for (h = 0; h < u.length; h++) t.add(Tm(u[h], {
                            style: dt({fill: s[h % s.length]}, a.getAreaStyle()),
                            silent: !0
                        }))
                    }
                }
            };
        const KB = XB;

        function QB(t) {
            return t.get("stack") || "__ec_stack_" + t.seriesIndex
        }

        function $B(t, e) {
            return e.dim + t.model.componentIndex
        }

        const JB = function (t, e, n) {
            var i = {}, r = function (t) {
                var e = {};
                mt(t, (function (t, n) {
                    var i = t.getData(), r = t.coordinateSystem, o = r.getBaseAxis(), a = $B(r, o), s = o.getExtent(),
                        l = "category" === o.type ? o.getBandWidth() : Math.abs(s[1] - s[0]) / i.count(), u = e[a] || {
                            bandWidth: l,
                            remainedWidth: l,
                            autoWidthCount: 0,
                            categoryGap: "20%",
                            gap: "30%",
                            stacks: {}
                        }, c = u.stacks;
                    e[a] = u;
                    var h = QB(t);
                    c[h] || u.autoWidthCount++, c[h] = c[h] || {width: 0, maxWidth: 0};
                    var d = wo(t.get("barWidth"), l), p = wo(t.get("barMaxWidth"), l), f = t.get("barGap"),
                        g = t.get("barCategoryGap");
                    d && !c[h].width && (d = Math.min(u.remainedWidth, d), c[h].width = d, u.remainedWidth -= d), p && (c[h].maxWidth = p), null != f && (u.gap = f), null != g && (u.categoryGap = g)
                }));
                var n = {};
                return mt(e, (function (t, e) {
                    n[e] = {};
                    var i = t.stacks, r = t.bandWidth, o = wo(t.categoryGap, r), a = wo(t.gap, 1), s = t.remainedWidth,
                        l = t.autoWidthCount, u = (s - o) / (l + (l - 1) * a);
                    u = Math.max(u, 0), mt(i, (function (t, e) {
                        var n = t.maxWidth;
                        n && n < u && (n = Math.min(n, s), t.width && (n = Math.min(n, t.width)), s -= n, t.width = n, l--)
                    })), u = (s - o) / (l + (l - 1) * a), u = Math.max(u, 0);
                    var c, h = 0;
                    mt(i, (function (t, e) {
                        t.width || (t.width = u), c = t, h += t.width * (1 + a)
                    })), c && (h -= c.width * a);
                    var d = -h / 2;
                    mt(i, (function (t, i) {
                        n[e][i] = n[e][i] || {offset: d, width: t.width}, d += t.width * (1 + a)
                    }))
                })), n
            }(_t(e.getSeriesByType(t), (function (t) {
                return !e.isSeriesFiltered(t) && t.coordinateSystem && "polar" === t.coordinateSystem.type
            })));
            e.eachSeriesByType(t, (function (t) {
                if ("polar" === t.coordinateSystem.type) {
                    var e = t.getData(), n = t.coordinateSystem, o = n.getBaseAxis(), a = $B(n, o), s = QB(t),
                        l = r[a][s], u = l.offset, c = l.width, h = n.getOtherAxis(o), d = t.coordinateSystem.cx,
                        p = t.coordinateSystem.cy, f = t.get("barMinHeight") || 0, g = t.get("barMinAngle") || 0;
                    i[s] = i[s] || [];
                    for (var m = e.mapDimension(h.dim), y = e.mapDimension(o.dim), v = kS(e, m), _ = "radius" !== o.dim || !t.get("roundCap", !0), T = h.dataToCoord(0), x = 0, S = e.count(); x < S; x++) {
                        var A = e.get(m, x), b = e.get(y, x), I = A >= 0 ? "p" : "n", E = T;
                        v && (i[s][b] || (i[s][b] = {p: T, n: T}), E = i[s][b][I]);
                        var C = void 0, D = void 0, w = void 0, M = void 0;
                        if ("radius" === h.dim) {
                            var N = h.dataToCoord(A) - T, O = o.dataToCoord(b);
                            Math.abs(N) < f && (N = (N < 0 ? -1 : 1) * f), C = E, D = E + N, M = (w = O - u) - c, v && (i[s][b][I] = D)
                        } else {
                            var L = h.dataToCoord(A, _) - T, R = o.dataToCoord(b);
                            Math.abs(L) < g && (L = (L < 0 ? -1 : 1) * g), D = (C = R + u) + c, w = E, M = E + L, v && (i[s][b][I] = M)
                        }
                        e.setItemLayout(x, {
                            cx: d,
                            cy: p,
                            r0: C,
                            r: D,
                            startAngle: -w * Math.PI / 180,
                            endAngle: -M * Math.PI / 180,
                            clockwise: w >= M
                        })
                    }
                }
            }))
        };
        var tF = {startAngle: 90, clockwise: !0, splitNumber: 12, axisLabel: {rotate: 0}}, eF = {splitNumber: 5},
            nF = function (t) {
                function e() {
                    var n = null !== t && t.apply(this, arguments) || this;
                    return n.type = e.type, n
                }

                return G(e, t), e.type = "polar", e
            }(Gf);

        function iF(t, e) {
            e = e || {};
            var n = t.coordinateSystem, i = t.axis, r = {}, o = i.position, a = i.orient, s = n.getRect(),
                l = [s.x, s.x + s.width, s.y, s.y + s.height],
                u = {horizontal: {top: l[2], bottom: l[3]}, vertical: {left: l[0], right: l[1]}};
            r.position = ["vertical" === a ? u.vertical[o] : l[0], "horizontal" === a ? u.horizontal[o] : l[3]];
            r.rotation = Math.PI / 2 * {horizontal: 0, vertical: 1}[a];
            r.labelDirection = r.tickDirection = r.nameDirection = {
                top: -1,
                bottom: 1,
                right: 1,
                left: -1
            }[o], t.get(["axisTick", "inside"]) && (r.tickDirection = -r.tickDirection), Rt(e.labelInside, t.get(["axisLabel", "inside"])) && (r.labelDirection = -r.labelDirection);
            var c = e.rotate;
            return null == c && (c = t.get(["axisLabel", "rotate"])), r.labelRotation = "top" === o ? -c : c, r.z2 = 1, r
        }

        var rF = ["axisLine", "axisTickLabel", "axisName"], oF = ["splitArea", "splitLine"], aF = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.axisPointerClass = "SingleAxisPointer", n
            }

            return G(e, t), e.prototype.render = function (e, n, i, r) {
                var o = this.group;
                o.removeAll();
                var a = this._axisGroup;
                this._axisGroup = new xo;
                var s = iF(e), l = new CE(e, s);
                mt(rF, l.add, l), o.add(this._axisGroup), o.add(l.getGroup()), mt(oF, (function (t) {
                    e.get([t, "show"]) && sF[t](this, this.group, this._axisGroup, e)
                }), this), wm(a, this._axisGroup, e), t.prototype.render.call(this, e, n, i, r)
            }, e.prototype.remove = function () {
                BE(this)
            }, e.type = "singleAxis", e
        }(kE), sF = {
            splitLine: function (t, e, n, i) {
                var r = i.axis;
                if (!r.scale.isBlank()) {
                    var o = i.getModel("splitLine"), a = o.getModel("lineStyle"), s = a.get("color");
                    s = s instanceof Array ? s : [s];
                    for (var l = a.get("width"), u = i.coordinateSystem.getRect(), c = r.isHorizontal(), h = [], d = 0, p = r.getTicksCoords({tickModel: o}), f = [], g = [], m = 0; m < p.length; ++m) {
                        var y = r.toGlobalCoord(p[m].coord);
                        c ? (f[0] = y, f[1] = u.y, g[0] = y, g[1] = u.y + u.height) : (f[0] = u.x, f[1] = y, g[0] = u.x + u.width, g[1] = y);
                        var v = new Hg({shape: {x1: f[0], y1: f[1], x2: g[0], y2: g[1]}, silent: !0});
                        Sm(v.shape, l);
                        var _ = d++ % s.length;
                        h[_] = h[_] || [], h[_].push(v)
                    }
                    var T = a.getLineStyle(["color"]);
                    for (m = 0; m < h.length; ++m) e.add(Tm(h[m], {
                        style: dt({stroke: s[m % s.length]}, T),
                        silent: !0
                    }))
                }
            }, splitArea: function (t, e, n, i) {
                GE(t, n, i, i)
            }
        };
        const lF = aF;
        var uF = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.getCoordSysModel = function () {
                return this
            }, e.type = "singleAxis", e.layoutMode = "box", e.defaultOption = {
                left: "5%",
                top: "5%",
                right: "5%",
                bottom: "5%",
                type: "value",
                position: "bottom",
                orient: "horizontal",
                axisLine: {show: !0, lineStyle: {width: 1, type: "solid"}},
                tooltip: {show: !0},
                axisTick: {show: !0, length: 6, lineStyle: {width: 1}},
                axisLabel: {show: !0, interval: "auto"},
                splitLine: {show: !0, lineStyle: {type: "dashed", opacity: .2}}
            }, e
        }(Fh);
        ft(uF, Gb.prototype);
        const cF = uF;
        var hF = function (t) {
            function e(e, n, i, r, o) {
                var a = t.call(this, e, n, i) || this;
                return a.type = r || "value", a.position = o || "bottom", a
            }

            return G(e, t), e.prototype.isHorizontal = function () {
                var t = this.position;
                return "top" === t || "bottom" === t
            }, e.prototype.pointToData = function (t, e) {
                return this.coordinateSystem.pointToData(t)[0]
            }, e
        }(sE);
        const dF = hF;
        var pF = ["single"], fF = function () {
            function t(t, e, n) {
                this.type = "single", this.dimension = "single", this.dimensions = pF, this.axisPointerEnabled = !0, this.model = t, this._init(t, e, n)
            }

            return t.prototype._init = function (t, e, n) {
                var i = this.dimension, r = new dF(i, GI(t), [0, 0], t.get("type"), t.get("position")),
                    o = "category" === r.type;
                r.onBand = o && t.get("boundaryGap"), r.inverse = t.get("inverse"), r.orient = t.get("orient"), t.axis = r, r.model = t, r.coordinateSystem = this, this._axis = r
            }, t.prototype.update = function (t, e) {
                t.eachSeries((function (t) {
                    if (t.coordinateSystem === this) {
                        var e = t.getData();
                        mt(e.mapDimensionsAll(this.dimension), (function (t) {
                            this._axis.scale.unionExtentFromData(e, t)
                        }), this), PI(this._axis.scale, this._axis.model)
                    }
                }), this)
            }, t.prototype.resize = function (t, e) {
                this._rect = Nh({
                    left: t.get("left"),
                    top: t.get("top"),
                    right: t.get("right"),
                    bottom: t.get("bottom"),
                    width: t.get("width"),
                    height: t.get("height")
                }, {width: e.getWidth(), height: e.getHeight()}), this._adjustAxis()
            }, t.prototype.getRect = function () {
                return this._rect
            }, t.prototype._adjustAxis = function () {
                var t = this._rect, e = this._axis, n = e.isHorizontal(), i = n ? [0, t.width] : [0, t.height],
                    r = e.inverse ? 1 : 0;
                e.setExtent(i[r], i[1 - r]), this._updateAxisTransform(e, n ? t.x : t.y)
            }, t.prototype._updateAxisTransform = function (t, e) {
                var n = t.getExtent(), i = n[0] + n[1], r = t.isHorizontal();
                t.toGlobalCoord = r ? function (t) {
                    return t + e
                } : function (t) {
                    return i - t + e
                }, t.toLocalCoord = r ? function (t) {
                    return t - e
                } : function (t) {
                    return i - t + e
                }
            }, t.prototype.getAxis = function () {
                return this._axis
            }, t.prototype.getBaseAxis = function () {
                return this._axis
            }, t.prototype.getAxes = function () {
                return [this._axis]
            }, t.prototype.getTooltipAxes = function () {
                return {baseAxes: [this.getAxis()], otherAxes: []}
            }, t.prototype.containPoint = function (t) {
                var e = this.getRect(), n = this.getAxis();
                return "horizontal" === n.orient ? n.contain(n.toLocalCoord(t[0])) && t[1] >= e.y && t[1] <= e.y + e.height : n.contain(n.toLocalCoord(t[1])) && t[0] >= e.y && t[0] <= e.y + e.height
            }, t.prototype.pointToData = function (t) {
                var e = this.getAxis();
                return [e.coordToData(e.toLocalCoord(t["horizontal" === e.orient ? 0 : 1]))]
            }, t.prototype.dataToPoint = function (t) {
                var e = this.getAxis(), n = this.getRect(), i = [], r = "horizontal" === e.orient ? 0 : 1;
                return t instanceof Array && (t = t[0]), i[r] = e.toGlobalCoord(e.dataToCoord(+t)), i[1 - r] = 0 === r ? n.y + n.height / 2 : n.x + n.width / 2, i
            }, t.prototype.convertToPixel = function (t, e, n) {
                return gF(e) === this ? this.dataToPoint(n) : null
            }, t.prototype.convertFromPixel = function (t, e, n) {
                return gF(e) === this ? this.pointToData(n) : null
            }, t
        }();

        function gF(t) {
            var e = t.seriesModel, n = t.singleAxisModel;
            return n && n.coordinateSystem || e && e.coordinateSystem
        }

        const mF = fF;
        const yF = {
            create: function (t, e) {
                var n = [];
                return t.eachComponent("singleAxis", (function (i, r) {
                    var o = new mF(i, t, e);
                    o.name = "single_" + r, o.resize(i, e), i.coordinateSystem = o, n.push(o)
                })), t.eachSeries((function (t) {
                    if ("singleAxis" === t.get("coordinateSystem")) {
                        var e = t.getReferringComponents("singleAxis", ga).models[0];
                        t.coordinateSystem = e && e.coordinateSystem
                    }
                })), n
            }, dimensions: pF
        };
        var vF = ["x", "y"], _F = ["width", "height"], TF = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.makeElOption = function (t, e, n, i, r) {
                var o = n.axis, a = o.coordinateSystem, s = AF(a, 1 - SF(o)), l = a.dataToPoint(e)[0],
                    u = i.get("type");
                if (u && "none" !== u) {
                    var c = VG(i), h = xF[u](o, l, s);
                    h.style = c, t.graphicKey = h.type, t.pointer = h
                }
                qG(e, t, iF(n), n, i, r)
            }, e.prototype.getHandleTransform = function (t, e, n) {
                var i = iF(e, {labelInside: !1});
                i.labelMargin = n.get(["handle", "margin"]);
                var r = YG(e.axis, t, i);
                return {x: r[0], y: r[1], rotation: i.rotation + (i.labelDirection < 0 ? Math.PI : 0)}
            }, e.prototype.updateHandleTransform = function (t, e, n, i) {
                var r = n.axis, o = r.coordinateSystem, a = SF(r), s = AF(o, a), l = [t.x, t.y];
                l[a] += e[a], l[a] = Math.min(s[1], l[a]), l[a] = Math.max(s[0], l[a]);
                var u = AF(o, 1 - a), c = (u[1] + u[0]) / 2, h = [c, c];
                return h[a] = l[a], {
                    x: l[0],
                    y: l[1],
                    rotation: t.rotation,
                    cursorPoint: h,
                    tooltipOption: {verticalAlign: "middle"}
                }
            }, e
        }(UG), xF = {
            line: function (t, e, n) {
                return {type: "Line", subPixelOptimize: !0, shape: jG([e, n[0]], [e, n[1]], SF(t))}
            }, shadow: function (t, e, n) {
                var i = t.getBandWidth(), r = n[1] - n[0];
                return {type: "Rect", shape: XG([e - i / 2, n[0]], [i, r], SF(t))}
            }
        };

        function SF(t) {
            return t.isHorizontal() ? 0 : 1
        }

        function AF(t, e) {
            var n = t.getRect();
            return [n[vF[e]], n[vF[e]] + n[_F[e]]]
        }

        const bF = TF;
        var IF = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "single", e
        }(Gf);

        function EF(t, e) {
            var n, i = t.cellSize;
            1 === (n = At(i) ? i : t.cellSize = [i, i]).length && (n[1] = n[0]);
            var r = yt([0, 1], (function (t) {
                return function (t, e) {
                    return null != t[Dh[e][0]] || null != t[Dh[e][1]] && null != t[Dh[e][2]]
                }(e, t) && (n[t] = "auto"), null != n[t] && "auto" !== n[t]
            }));
            Rh(t, e, {type: "box", ignoreSize: r})
        }

        const CF = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function (e, n, i) {
                var r = kh(e);
                t.prototype.init.apply(this, arguments), EF(e, r)
            }, e.prototype.mergeOption = function (e) {
                t.prototype.mergeOption.apply(this, arguments), EF(this.option, e)
            }, e.prototype.getCellSize = function () {
                return this.option.cellSize
            }, e.type = "calendar", e.defaultOption = {
                z: 2,
                left: 80,
                top: 60,
                cellSize: 20,
                orient: "horizontal",
                splitLine: {show: !0, lineStyle: {color: "#000", width: 1, type: "solid"}},
                itemStyle: {color: "#fff", borderWidth: 1, borderColor: "#ccc"},
                dayLabel: {show: !0, firstDay: 0, position: "start", margin: "50%", color: "#000"},
                monthLabel: {show: !0, position: "start", margin: 5, align: "center", formatter: null, color: "#000"},
                yearLabel: {
                    show: !0,
                    position: null,
                    margin: 30,
                    formatter: null,
                    color: "#ccc",
                    fontFamily: "sans-serif",
                    fontWeight: "bolder",
                    fontSize: 20
                }
            }, e
        }(Fh);
        var DF = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i = this.group;
                i.removeAll();
                var r = t.coordinateSystem, o = r.getRangeInfo(), a = r.getOrient(), s = e.getLocaleModel();
                this._renderDayRect(t, o, i), this._renderLines(t, o, a, i), this._renderYearText(t, o, a, i), this._renderMonthText(t, s, a, i), this._renderWeekText(t, s, o, a, i)
            }, e.prototype._renderDayRect = function (t, e, n) {
                for (var i = t.coordinateSystem, r = t.getModel("itemStyle").getItemStyle(), o = i.getCellWidth(), a = i.getCellHeight(), s = e.start.time; s <= e.end.time; s = i.getNextNDay(s, 1).time) {
                    var l = i.dataToRect([s], !1).tl,
                        u = new Al({shape: {x: l[0], y: l[1], width: o, height: a}, cursor: "default", style: r});
                    n.add(u)
                }
            }, e.prototype._renderLines = function (t, e, n, i) {
                var r = this, o = t.coordinateSystem, a = t.getModel(["splitLine", "lineStyle"]).getLineStyle(),
                    s = t.get(["splitLine", "show"]), l = a.lineWidth;
                this._tlpoints = [], this._blpoints = [], this._firstDayOfMonth = [], this._firstDayPoints = [];
                for (var u = e.start, c = 0; u.time <= e.end.time; c++) {
                    d(u.formatedDate), 0 === c && (u = o.getDateInfo(e.start.y + "-" + e.start.m));
                    var h = u.date;
                    h.setMonth(h.getMonth() + 1), u = o.getDateInfo(h)
                }

                function d(e) {
                    r._firstDayOfMonth.push(o.getDateInfo(e)), r._firstDayPoints.push(o.dataToRect([e], !1).tl);
                    var l = r._getLinePointsOfOneWeek(t, e, n);
                    r._tlpoints.push(l[0]), r._blpoints.push(l[l.length - 1]), s && r._drawSplitline(l, a, i)
                }

                d(o.getNextNDay(e.end.time, 1).formatedDate), s && this._drawSplitline(r._getEdgesPoints(r._tlpoints, l, n), a, i), s && this._drawSplitline(r._getEdgesPoints(r._blpoints, l, n), a, i)
            }, e.prototype._getEdgesPoints = function (t, e, n) {
                var i = [t[0].slice(), t[t.length - 1].slice()], r = "horizontal" === n ? 0 : 1;
                return i[0][r] = i[0][r] - e / 2, i[1][r] = i[1][r] + e / 2, i
            }, e.prototype._drawSplitline = function (t, e, n) {
                var i = new Pg({z2: 20, shape: {points: t}, style: e});
                n.add(i)
            }, e.prototype._getLinePointsOfOneWeek = function (t, e, n) {
                for (var i = t.coordinateSystem, r = i.getDateInfo(e), o = [], a = 0; a < 7; a++) {
                    var s = i.getNextNDay(r.time, a), l = i.dataToRect([s.time], !1);
                    o[2 * s.day] = l.tl, o[2 * s.day + 1] = l["horizontal" === n ? "bl" : "tr"]
                }
                return o
            }, e.prototype._formatterLabel = function (t, e) {
                return It(t) && t ? (n = t, mt(e, (function (t, e) {
                    n = n.replace("{" + e + "}", i ? Oe(t) : t)
                })), n) : bt(t) ? t(e) : e.nameMap;
                var n, i
            }, e.prototype._yearTextPositionControl = function (t, e, n, i, r) {
                var o = e[0], a = e[1], s = ["center", "bottom"];
                "bottom" === i ? (a += r, s = ["center", "top"]) : "left" === i ? o -= r : "right" === i ? (o += r, s = ["center", "top"]) : a -= r;
                var l = 0;
                return "left" !== i && "right" !== i || (l = Math.PI / 2), {
                    rotation: l,
                    x: o,
                    y: a,
                    style: {align: s[0], verticalAlign: s[1]}
                }
            }, e.prototype._renderYearText = function (t, e, n, i) {
                var r = t.getModel("yearLabel");
                if (r.get("show")) {
                    var o = r.get("margin"), a = r.get("position");
                    a || (a = "horizontal" !== n ? "top" : "left");
                    var s = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]], l = (s[0][0] + s[1][0]) / 2,
                        u = (s[0][1] + s[1][1]) / 2, c = "horizontal" === n ? 0 : 1,
                        h = {top: [l, s[c][1]], bottom: [l, s[1 - c][1]], left: [s[1 - c][0], u], right: [s[c][0], u]},
                        d = e.start.y;
                    +e.end.y > +e.start.y && (d = d + "-" + e.end.y);
                    var p = r.get("formatter"), f = {start: e.start.y, end: e.end.y, nameMap: d},
                        g = this._formatterLabel(p, f), m = new Fl({z2: 30, style: oc(r, {text: g})});
                    m.attr(this._yearTextPositionControl(m, h[a], n, a, o)), i.add(m)
                }
            }, e.prototype._monthTextPositionControl = function (t, e, n, i, r) {
                var o = "left", a = "top", s = t[0], l = t[1];
                return "horizontal" === n ? (l += r, e && (o = "center"), "start" === i && (a = "bottom")) : (s += r, e && (a = "middle"), "start" === i && (o = "right")), {
                    x: s,
                    y: l,
                    align: o,
                    verticalAlign: a
                }
            }, e.prototype._renderMonthText = function (t, e, n, i) {
                var r = t.getModel("monthLabel");
                if (r.get("show")) {
                    var o = r.get("nameMap"), a = r.get("margin"), s = r.get("position"), l = r.get("align"),
                        u = [this._tlpoints, this._blpoints];
                    o && !It(o) || (o && (e = Hc(o) || e), o = e.get(["time", "monthAbbr"]) || []);
                    var c = "start" === s ? 0 : 1, h = "horizontal" === n ? 0 : 1;
                    a = "start" === s ? -a : a;
                    for (var d = "center" === l, p = 0; p < u[c].length - 1; p++) {
                        var f = u[c][p].slice(), g = this._firstDayOfMonth[p];
                        if (d) {
                            var m = this._firstDayPoints[p];
                            f[h] = (m[h] + u[0][p + 1][h]) / 2
                        }
                        var y = r.get("formatter"), v = o[+g.m - 1],
                            _ = {yyyy: g.y, yy: (g.y + "").slice(2), MM: g.m, M: +g.m, nameMap: v},
                            T = this._formatterLabel(y, _), x = new Fl({
                                z2: 30,
                                style: ht(oc(r, {text: T}), this._monthTextPositionControl(f, d, n, s, a))
                            });
                        i.add(x)
                    }
                }
            }, e.prototype._weekTextPositionControl = function (t, e, n, i, r) {
                var o = "center", a = "middle", s = t[0], l = t[1], u = "start" === n;
                return "horizontal" === e ? (s = s + i + (u ? 1 : -1) * r[0] / 2, o = u ? "right" : "left") : (l = l + i + (u ? 1 : -1) * r[1] / 2, a = u ? "bottom" : "top"), {
                    x: s,
                    y: l,
                    align: o,
                    verticalAlign: a
                }
            }, e.prototype._renderWeekText = function (t, e, n, i, r) {
                var o = t.getModel("dayLabel");
                if (o.get("show")) {
                    var a = t.coordinateSystem, s = o.get("position"), l = o.get("nameMap"), u = o.get("margin"),
                        c = a.getFirstDayOfWeek();
                    if (!l || It(l)) l && (e = Hc(l) || e), l = e.get(["time", "dayOfWeekShort"]) || yt(e.get(["time", "dayOfWeekAbbr"]), (function (t) {
                        return t[0]
                    }));
                    var h = a.getNextNDay(n.end.time, 7 - n.lweek).time, d = [a.getCellWidth(), a.getCellHeight()];
                    u = wo(u, Math.min(d[1], d[0])), "start" === s && (h = a.getNextNDay(n.start.time, -(7 + n.fweek)).time, u = -u);
                    for (var p = 0; p < 7; p++) {
                        var f, g = a.getNextNDay(h, p), m = a.dataToRect([g.time], !1).center;
                        f = Math.abs((p + c) % 7);
                        var y = new Fl({
                            z2: 30,
                            style: ht(oc(o, {text: l[f]}), this._weekTextPositionControl(m, i, s, u, d))
                        });
                        r.add(y)
                    }
                }
            }, e.type = "calendar", e
        }(Gf);
        const wF = DF;
        var MF = 864e5, NF = function () {
            function t(e, n, i) {
                this.type = "calendar", this.dimensions = t.dimensions, this.getDimensionsInfo = t.getDimensionsInfo, this._model = e
            }

            return t.getDimensionsInfo = function () {
                return [{name: "time", type: "time"}, "value"]
            }, t.prototype.getRangeInfo = function () {
                return this._rangeInfo
            }, t.prototype.getModel = function () {
                return this._model
            }, t.prototype.getRect = function () {
                return this._rect
            }, t.prototype.getCellWidth = function () {
                return this._sw
            }, t.prototype.getCellHeight = function () {
                return this._sh
            }, t.prototype.getOrient = function () {
                return this._orient
            }, t.prototype.getFirstDayOfWeek = function () {
                return this._firstDayOfWeek
            }, t.prototype.getDateInfo = function (t) {
                var e = (t = Ho(t)).getFullYear(), n = t.getMonth() + 1, i = n < 10 ? "0" + n : "" + n, r = t.getDate(),
                    o = r < 10 ? "0" + r : "" + r, a = t.getDay();
                return {
                    y: e + "",
                    m: i,
                    d: o,
                    day: a = Math.abs((a + 7 - this.getFirstDayOfWeek()) % 7),
                    time: t.getTime(),
                    formatedDate: e + "-" + i + "-" + o,
                    date: t
                }
            }, t.prototype.getNextNDay = function (t, e) {
                return 0 === (e = e || 0) || (t = new Date(this.getDateInfo(t).time)).setDate(t.getDate() + e), this.getDateInfo(t)
            }, t.prototype.update = function (t, e) {
                this._firstDayOfWeek = +this._model.getModel("dayLabel").get("firstDay"), this._orient = this._model.get("orient"), this._lineWidth = this._model.getModel("itemStyle").getItemStyle().lineWidth || 0, this._rangeInfo = this._getRangeInfo(this._initRangeOption());
                var n = this._rangeInfo.weeks || 1, i = ["width", "height"], r = this._model.getCellSize().slice(),
                    o = this._model.getBoxLayoutParams(), a = "horizontal" === this._orient ? [n, 7] : [7, n];
                mt([0, 1], (function (t) {
                    u(r, t) && (o[i[t]] = r[t] * a[t])
                }));
                var s = {width: e.getWidth(), height: e.getHeight()}, l = this._rect = Nh(o, s);

                function u(t, e) {
                    return null != t[e] && "auto" !== t[e]
                }

                mt([0, 1], (function (t) {
                    u(r, t) || (r[t] = l[i[t]] / a[t])
                })), this._sw = r[0], this._sh = r[1]
            }, t.prototype.dataToPoint = function (t, e) {
                At(t) && (t = t[0]), null == e && (e = !0);
                var n = this.getDateInfo(t), i = this._rangeInfo, r = n.formatedDate;
                if (e && !(n.time >= i.start.time && n.time < i.end.time + MF)) return [NaN, NaN];
                var o = n.day, a = this._getRangeInfo([i.start.time, r]).nthWeek;
                return "vertical" === this._orient ? [this._rect.x + o * this._sw + this._sw / 2, this._rect.y + a * this._sh + this._sh / 2] : [this._rect.x + a * this._sw + this._sw / 2, this._rect.y + o * this._sh + this._sh / 2]
            }, t.prototype.pointToData = function (t) {
                var e = this.pointToDate(t);
                return e && e.time
            }, t.prototype.dataToRect = function (t, e) {
                var n = this.dataToPoint(t, e);
                return {
                    contentShape: {
                        x: n[0] - (this._sw - this._lineWidth) / 2,
                        y: n[1] - (this._sh - this._lineWidth) / 2,
                        width: this._sw - this._lineWidth,
                        height: this._sh - this._lineWidth
                    },
                    center: n,
                    tl: [n[0] - this._sw / 2, n[1] - this._sh / 2],
                    tr: [n[0] + this._sw / 2, n[1] - this._sh / 2],
                    br: [n[0] + this._sw / 2, n[1] + this._sh / 2],
                    bl: [n[0] - this._sw / 2, n[1] + this._sh / 2]
                }
            }, t.prototype.pointToDate = function (t) {
                var e = Math.floor((t[0] - this._rect.x) / this._sw) + 1,
                    n = Math.floor((t[1] - this._rect.y) / this._sh) + 1, i = this._rangeInfo.range;
                return "vertical" === this._orient ? this._getDateByWeeksAndDay(n, e - 1, i) : this._getDateByWeeksAndDay(e, n - 1, i)
            }, t.prototype.convertToPixel = function (t, e, n) {
                var i = OF(e);
                return i === this ? i.dataToPoint(n) : null
            }, t.prototype.convertFromPixel = function (t, e, n) {
                var i = OF(e);
                return i === this ? i.pointToData(n) : null
            }, t.prototype.containPoint = function (t) {
                return console.warn("Not implemented."), !1
            }, t.prototype._initRangeOption = function () {
                var t, e = this._model.get("range");
                if (At(e) && 1 === e.length && (e = e[0]), At(e)) t = e; else {
                    var n = e.toString();
                    if (/^\d{4}$/.test(n) && (t = [n + "-01-01", n + "-12-31"]), /^\d{4}[\/|-]\d{1,2}$/.test(n)) {
                        var i = this.getDateInfo(n), r = i.date;
                        r.setMonth(r.getMonth() + 1);
                        var o = this.getNextNDay(r, -1);
                        t = [i.formatedDate, o.formatedDate]
                    }
                    /^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n) && (t = [n, n])
                }
                if (!t) return e;
                var a = this._getRangeInfo(t);
                return a.start.time > a.end.time && t.reverse(), t
            }, t.prototype._getRangeInfo = function (t) {
                var e, n = [this.getDateInfo(t[0]), this.getDateInfo(t[1])];
                n[0].time > n[1].time && (e = !0, n.reverse());
                var i = Math.floor(n[1].time / MF) - Math.floor(n[0].time / MF) + 1, r = new Date(n[0].time),
                    o = r.getDate(), a = n[1].date.getDate();
                r.setDate(o + i - 1);
                var s = r.getDate();
                if (s !== a) for (var l = r.getTime() - n[1].time > 0 ? 1 : -1; (s = r.getDate()) !== a && (r.getTime() - n[1].time) * l > 0;) i -= l, r.setDate(s - l);
                var u = Math.floor((i + n[0].day + 6) / 7), c = e ? 1 - u : u - 1;
                return e && n.reverse(), {
                    range: [n[0].formatedDate, n[1].formatedDate],
                    start: n[0],
                    end: n[1],
                    allDay: i,
                    weeks: u,
                    nthWeek: c,
                    fweek: n[0].day,
                    lweek: n[1].day
                }
            }, t.prototype._getDateByWeeksAndDay = function (t, e, n) {
                var i = this._getRangeInfo(n);
                if (t > i.weeks || 0 === t && e < i.fweek || t === i.weeks && e > i.lweek) return null;
                var r = 7 * (t - 1) - i.fweek + e, o = new Date(i.start.time);
                return o.setDate(+i.start.d + r), this.getDateInfo(o)
            }, t.create = function (e, n) {
                var i = [];
                return e.eachComponent("calendar", (function (r) {
                    var o = new t(r, e, n);
                    i.push(o), r.coordinateSystem = o
                })), e.eachSeries((function (t) {
                    "calendar" === t.get("coordinateSystem") && (t.coordinateSystem = i[t.get("calendarIndex") || 0])
                })), i
            }, t.dimensions = ["time", "value"], t
        }();

        function OF(t) {
            var e = t.calendarModel, n = t.seriesModel;
            return e ? e.coordinateSystem : n ? n.coordinateSystem : null
        }

        const LF = NF;

        function RF(t, e) {
            var n;
            return mt(e, (function (e) {
                null != t[e] && "auto" !== t[e] && (n = !0)
            })), n
        }

        var kF = ["transition", "enterFrom", "leaveTo"],
            PF = kF.concat(["enterAnimation", "updateAnimation", "leaveAnimation"]);

        function GF(t, e, n) {
            if (n && (!t[n] && e[n] && (t[n] = {}), t = t[n], e = e[n]), t && e) for (var i = n ? kF : PF, r = 0; r < i.length; r++) {
                var o = i[r];
                null == t[o] && null != e[o] && (t[o] = e[o])
            }
        }

        var BF = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.preventAutoZ = !0, n
            }

            return G(e, t), e.prototype.mergeOption = function (e, n) {
                var i = this.option.elements;
                this.option.elements = null, t.prototype.mergeOption.call(this, e, n), this.option.elements = i
            }, e.prototype.optionUpdated = function (t, e) {
                var n = this.option, i = (e ? n : t).elements, r = n.elements = e ? [] : n.elements, o = [];
                this._flatten(i, o, null);
                var a = ra(r, o, "normalMerge"), s = this._elOptionsToUpdate = [];
                mt(a, (function (t, e) {
                    var n = t.newOption;
                    n && (s.push(n), function (t, e) {
                        var n = t.existing;
                        if (e.id = t.keyInfo.id, !e.type && n && (e.type = n.type), null == e.parentId) {
                            var i = e.parentOption;
                            i ? e.parentId = i.id : n && (e.parentId = n.parentId)
                        }
                        e.parentOption = null
                    }(t, n), function (t, e, n) {
                        var i = ht({}, n), r = t[e], o = n.$action || "merge";
                        "merge" === o ? r ? (ut(r, i, !0), Rh(r, i, {ignoreSize: !0}), Ph(n, r), GF(n, r), GF(n, r, "shape"), GF(n, r, "style"), GF(n, r, "extra"), n.clipPath = r.clipPath) : t[e] = i : "replace" === o ? t[e] = i : "remove" === o && r && (t[e] = null)
                    }(r, e, n), function (t, e) {
                        if (t && (t.hv = e.hv = [RF(e, ["left", "right"]), RF(e, ["top", "bottom"])], "group" === t.type)) {
                            var n = t, i = e;
                            null == n.width && (n.width = i.width = 0), null == n.height && (n.height = i.height = 0)
                        }
                    }(r[e], n))
                }), this), n.elements = _t(r, (function (t) {
                    return t && delete t.$action, null != t
                }))
            }, e.prototype._flatten = function (t, e, n) {
                mt(t, (function (t) {
                    if (t) {
                        n && (t.parentOption = n), e.push(t);
                        var i = t.children;
                        i && i.length && this._flatten(i, e, t), delete t.children
                    }
                }), this)
            }, e.prototype.useElOptionsToUpdate = function () {
                var t = this._elOptionsToUpdate;
                return this._elOptionsToUpdate = null, t
            }, e.type = "graphic", e.defaultOption = {elements: []}, e
        }(Fh), FF = {path: null, compoundPath: null, group: xo, image: gl, text: Fl}, HF = ha(), UF = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function () {
                this._elMap = jt()
            }, e.prototype.render = function (t, e, n) {
                t !== this._lastGraphicModel && this._clear(), this._lastGraphicModel = t, this._updateElements(t), this._relocate(t, n)
            }, e.prototype._updateElements = function (t) {
                var e = t.useElOptionsToUpdate();
                if (e) {
                    var n = this._elMap, i = this.group, r = t.get("z"), o = t.get("zlevel");
                    mt(e, (function (e) {
                        var a = sa(e.id, null), s = null != a ? n.get(a) : null, l = sa(e.parentId, null),
                            u = null != l ? n.get(l) : i, c = e.type, h = e.style;
                        "text" === c && h && e.hv && e.hv[1] && (h.textVerticalAlign = h.textBaseline = h.verticalAlign = h.align = null);
                        var d = e.textContent, p = e.textConfig;
                        if (h && NP(h, c, !!p, !!d)) {
                            var f = OP(h, c, !0);
                            !p && f.textConfig && (p = e.textConfig = f.textConfig), !d && f.textContent && (d = f.textContent)
                        }
                        var g = function (t) {
                            return t = ht({}, t), mt(["id", "parentId", "$action", "hv", "bounding", "textContent", "clipPath"].concat(Ch), (function (e) {
                                delete t[e]
                            })), t
                        }(e);
                        var m = e.$action || "merge", y = "merge" === m, v = "replace" === m;
                        if (y) {
                            var _ = s;
                            (E = !s) ? _ = zF(a, u, e.type, n) : (_ && (HF(_).isNew = !1), JP(_)), _ && (UP(_, g, t, {isInit: E}), YF(_, e, r, o))
                        } else if (v) {
                            WF(s, e, n, t);
                            var T = zF(a, u, e.type, n);
                            T && (UP(T, g, t, {isInit: !0}), YF(T, e, r, o))
                        } else "remove" === m && (VP(s, e), WF(s, e, n, t));
                        var x = n.get(a);
                        if (x && d) if (y) {
                            var S = x.getTextContent();
                            S ? S.attr(d) : x.setTextContent(new Fl(d))
                        } else v && x.setTextContent(new Fl(d));
                        if (x) {
                            var A = e.clipPath;
                            if (A) {
                                var b = A.type, I = void 0, E = !1;
                                if (y) {
                                    var C = x.getClipPath();
                                    I = (E = !C || HF(C).type !== b) ? VF(b) : C
                                } else v && (E = !0, I = VF(b));
                                x.setClipPath(I), UP(I, A, t, {isInit: E}), tG(I, A.keyframeAnimation, t)
                            }
                            var D = HF(x);
                            x.setTextConfig(p), D.option = e, function (t, e, n) {
                                var i = Hl(t).eventData;
                                t.silent || t.ignore || i || (i = Hl(t).eventData = {
                                    componentType: "graphic",
                                    componentIndex: e.componentIndex,
                                    name: t.name
                                });
                                i && (i.info = n.info)
                            }(x, t, e), Pm({
                                el: x,
                                componentModel: t,
                                itemName: x.name,
                                itemTooltipOption: e.tooltip
                            }), tG(x, e.keyframeAnimation, t)
                        }
                    }))
                }
            }, e.prototype._relocate = function (t, e) {
                for (var n = t.option.elements, i = this.group, r = this._elMap, o = e.getWidth(), a = e.getHeight(), s = ["x", "y"], l = 0; l < n.length; l++) {
                    if ((f = null != (p = sa((d = n[l]).id, null)) ? r.get(p) : null) && f.isGroup) {
                        var u = (g = f.parent) === i, c = HF(f), h = HF(g);
                        c.width = wo(c.option.width, u ? o : h.width) || 0, c.height = wo(c.option.height, u ? a : h.height) || 0
                    }
                }
                for (l = n.length - 1; l >= 0; l--) {
                    var d, p, f;
                    if (f = null != (p = sa((d = n[l]).id, null)) ? r.get(p) : null) {
                        var g = f.parent, m = (h = HF(g), {}), y = Oh(f, d, g === i ? {width: o, height: a} : {
                            width: h.width,
                            height: h.height
                        }, null, {hv: d.hv, boundingMode: d.bounding}, m);
                        if (!HF(f).isNew && y) {
                            for (var v = d.transition, _ = {}, T = 0; T < s.length; T++) {
                                var x = s[T], S = m[x];
                                v && (WP(v) || pt(v, x) >= 0) ? _[x] = S : f[x] = S
                            }
                            ju(f, _, t, 0)
                        } else f.attr(m)
                    }
                }
            }, e.prototype._clear = function () {
                var t = this, e = this._elMap;
                e.each((function (n) {
                    WF(n, HF(n).option, e, t._lastGraphicModel)
                })), this._elMap = jt()
            }, e.prototype.dispose = function () {
                this._clear()
            }, e.type = "graphic", e
        }(Gf);

        function VF(t) {
            var e = new (Qt(FF, t) ? FF[t] : mm(t))({});
            return HF(e).type = t, e
        }

        function zF(t, e, n, i) {
            var r = VF(n);
            return e.add(r), i.set(t, r), HF(r).id = t, HF(r).isNew = !0, r
        }

        function WF(t, e, n, i) {
            t && t.parent && ("group" === t.type && t.traverse((function (t) {
                WF(t, e, n, i)
            })), zP(t, e, i), n.removeKey(HF(t).id))
        }

        function YF(t, e, n, i) {
            t.isGroup || mt([["cursor", os.prototype.cursor], ["zlevel", i || 0], ["z", n || 0], ["z2", 0]], (function (n) {
                var i = n[0];
                Qt(e, i) ? t[i] = kt(e[i], n[1]) : null == t[i] && (t[i] = n[1])
            })), mt(Tt(e), (function (n) {
                if (0 === n.indexOf("on")) {
                    var i = e[n];
                    t[n] = bt(i) ? i : null
                }
            })), Qt(e, "draggable") && (t.draggable = e.draggable), null != e.name && (t.name = e.name), null != e.id && (t.id = e.id)
        }

        var qF = ["x", "y", "radius", "angle", "single"], jF = ["cartesian2d", "polar", "singleAxis"];

        function XF(t) {
            return t + "Axis"
        }

        function ZF(t, e) {
            var n, i = jt(), r = [], o = jt();
            t.eachComponent({mainType: "dataZoom", query: e}, (function (t) {
                o.get(t.uid) || s(t)
            }));
            do {
                n = !1, t.eachComponent("dataZoom", a)
            } while (n);

            function a(t) {
                !o.get(t.uid) && function (t) {
                    var e = !1;
                    return t.eachTargetAxis((function (t, n) {
                        var r = i.get(t);
                        r && r[n] && (e = !0)
                    })), e
                }(t) && (s(t), n = !0)
            }

            function s(t) {
                o.set(t.uid, !0), r.push(t), t.eachTargetAxis((function (t, e) {
                    (i.get(t) || i.set(t, []))[e] = !0
                }))
            }

            return r
        }

        function KF(t) {
            var e = t.ecModel, n = {infoList: [], infoMap: jt()};
            return t.eachTargetAxis((function (t, i) {
                var r = e.getComponent(XF(t), i);
                if (r) {
                    var o = r.getCoordSysModel();
                    if (o) {
                        var a = o.uid, s = n.infoMap.get(a);
                        s || (s = {
                            model: o,
                            axisModels: []
                        }, n.infoList.push(s), n.infoMap.set(a, s)), s.axisModels.push(r)
                    }
                }
            })), n
        }

        var QF = function () {
            function t() {
                this.indexList = [], this.indexMap = []
            }

            return t.prototype.add = function (t) {
                this.indexMap[t] || (this.indexList.push(t), this.indexMap[t] = !0)
            }, t
        }(), $F = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n._autoThrottle = !0, n._noTarget = !0, n._rangePropMode = ["percent", "percent"], n
            }

            return G(e, t), e.prototype.init = function (t, e, n) {
                var i = JF(t);
                this.settledOption = i, this.mergeDefaultAndTheme(t, n), this._doInit(i)
            }, e.prototype.mergeOption = function (t) {
                var e = JF(t);
                ut(this.option, t, !0), ut(this.settledOption, e, !0), this._doInit(e)
            }, e.prototype._doInit = function (t) {
                var e = this.option;
                this._setDefaultThrottle(t), this._updateRangeUse(t);
                var n = this.settledOption;
                mt([["start", "startValue"], ["end", "endValue"]], (function (t, i) {
                    "value" === this._rangePropMode[i] && (e[t[0]] = n[t[0]] = null)
                }), this), this._resetTarget()
            }, e.prototype._resetTarget = function () {
                var t = this.get("orient", !0), e = this._targetAxisInfoMap = jt();
                this._fillSpecifiedTargetAxis(e) ? this._orient = t || this._makeAutoOrientByTargetAxis() : (this._orient = t || "horizontal", this._fillAutoTargetAxisByOrient(e, this._orient)), this._noTarget = !0, e.each((function (t) {
                    t.indexList.length && (this._noTarget = !1)
                }), this)
            }, e.prototype._fillSpecifiedTargetAxis = function (t) {
                var e = !1;
                return mt(qF, (function (n) {
                    var i = this.getReferringComponents(XF(n), ma);
                    if (i.specified) {
                        e = !0;
                        var r = new QF;
                        mt(i.models, (function (t) {
                            r.add(t.componentIndex)
                        })), t.set(n, r)
                    }
                }), this), e
            }, e.prototype._fillAutoTargetAxisByOrient = function (t, e) {
                var n = this.ecModel, i = !0;
                if (i) {
                    var r = "vertical" === e ? "y" : "x";
                    o(n.findComponents({mainType: r + "Axis"}), r)
                }
                i && o(n.findComponents({
                    mainType: "singleAxis", filter: function (t) {
                        return t.get("orient", !0) === e
                    }
                }), "single");

                function o(e, n) {
                    var r = e[0];
                    if (r) {
                        var o = new QF;
                        if (o.add(r.componentIndex), t.set(n, o), i = !1, "x" === n || "y" === n) {
                            var a = r.getReferringComponents("grid", ga).models[0];
                            a && mt(e, (function (t) {
                                r.componentIndex !== t.componentIndex && a === t.getReferringComponents("grid", ga).models[0] && o.add(t.componentIndex)
                            }))
                        }
                    }
                }

                i && mt(qF, (function (e) {
                    if (i) {
                        var r = n.findComponents({
                            mainType: XF(e), filter: function (t) {
                                return "category" === t.get("type", !0)
                            }
                        });
                        if (r[0]) {
                            var o = new QF;
                            o.add(r[0].componentIndex), t.set(e, o), i = !1
                        }
                    }
                }), this)
            }, e.prototype._makeAutoOrientByTargetAxis = function () {
                var t;
                return this.eachTargetAxis((function (e) {
                    !t && (t = e)
                }), this), "y" === t ? "vertical" : "horizontal"
            }, e.prototype._setDefaultThrottle = function (t) {
                if (t.hasOwnProperty("throttle") && (this._autoThrottle = !1), this._autoThrottle) {
                    var e = this.ecModel.option;
                    this.option.throttle = e.animation && e.animationDurationUpdate > 0 ? 100 : 20
                }
            }, e.prototype._updateRangeUse = function (t) {
                var e = this._rangePropMode, n = this.get("rangeMode");
                mt([["start", "startValue"], ["end", "endValue"]], (function (i, r) {
                    var o = null != t[i[0]], a = null != t[i[1]];
                    o && !a ? e[r] = "percent" : !o && a ? e[r] = "value" : n ? e[r] = n[r] : o && (e[r] = "percent")
                }))
            }, e.prototype.noTarget = function () {
                return this._noTarget
            }, e.prototype.getFirstTargetAxisModel = function () {
                var t;
                return this.eachTargetAxis((function (e, n) {
                    null == t && (t = this.ecModel.getComponent(XF(e), n))
                }), this), t
            }, e.prototype.eachTargetAxis = function (t, e) {
                this._targetAxisInfoMap.each((function (n, i) {
                    mt(n.indexList, (function (n) {
                        t.call(e, i, n)
                    }))
                }))
            }, e.prototype.getAxisProxy = function (t, e) {
                var n = this.getAxisModel(t, e);
                if (n) return n.__dzAxisProxy
            }, e.prototype.getAxisModel = function (t, e) {
                var n = this._targetAxisInfoMap.get(t);
                if (n && n.indexMap[e]) return this.ecModel.getComponent(XF(t), e)
            }, e.prototype.setRawRange = function (t) {
                var e = this.option, n = this.settledOption;
                mt([["start", "startValue"], ["end", "endValue"]], (function (i) {
                    null == t[i[0]] && null == t[i[1]] || (e[i[0]] = n[i[0]] = t[i[0]], e[i[1]] = n[i[1]] = t[i[1]])
                }), this), this._updateRangeUse(t)
            }, e.prototype.setCalculatedRange = function (t) {
                var e = this.option;
                mt(["start", "startValue", "end", "endValue"], (function (n) {
                    e[n] = t[n]
                }))
            }, e.prototype.getPercentRange = function () {
                var t = this.findRepresentativeAxisProxy();
                if (t) return t.getDataPercentWindow()
            }, e.prototype.getValueRange = function (t, e) {
                if (null != t || null != e) return this.getAxisProxy(t, e).getDataValueWindow();
                var n = this.findRepresentativeAxisProxy();
                return n ? n.getDataValueWindow() : void 0
            }, e.prototype.findRepresentativeAxisProxy = function (t) {
                if (t) return t.__dzAxisProxy;
                for (var e, n = this._targetAxisInfoMap.keys(), i = 0; i < n.length; i++) for (var r = n[i], o = this._targetAxisInfoMap.get(r), a = 0; a < o.indexList.length; a++) {
                    var s = this.getAxisProxy(r, o.indexList[a]);
                    if (s.hostedBy(this)) return s;
                    e || (e = s)
                }
                return e
            }, e.prototype.getRangePropMode = function () {
                return this._rangePropMode.slice()
            }, e.prototype.getOrient = function () {
                return this._orient
            }, e.type = "dataZoom", e.dependencies = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "series", "toolbox"], e.defaultOption = {
                z: 4,
                filterMode: "filter",
                start: 0,
                end: 100
            }, e
        }(Fh);

        function JF(t) {
            var e = {};
            return mt(["start", "end", "startValue", "endValue", "throttle"], (function (n) {
                t.hasOwnProperty(n) && (e[n] = t[n])
            })), e
        }

        const tH = $F;
        const eH = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "dataZoom.select", e
        }(tH);
        const nH = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n, i) {
                this.dataZoomModel = t, this.ecModel = e, this.api = n
            }, e.type = "dataZoom", e
        }(Gf);
        const iH = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "dataZoom.select", e
        }(nH);
        var rH = mt, oH = No, aH = function () {
            function t(t, e, n, i) {
                this._dimName = t, this._axisIndex = e, this.ecModel = i, this._dataZoomModel = n
            }

            return t.prototype.hostedBy = function (t) {
                return this._dataZoomModel === t
            }, t.prototype.getDataValueWindow = function () {
                return this._valueWindow.slice()
            }, t.prototype.getDataPercentWindow = function () {
                return this._percentWindow.slice()
            }, t.prototype.getTargetSeriesModels = function () {
                var t = [];
                return this.ecModel.eachSeries((function (e) {
                    if (function (t) {
                        var e = t.get("coordinateSystem");
                        return pt(jF, e) >= 0
                    }(e)) {
                        var n = XF(this._dimName), i = e.getReferringComponents(n, ga).models[0];
                        i && this._axisIndex === i.componentIndex && t.push(e)
                    }
                }), this), t
            }, t.prototype.getAxisModel = function () {
                return this.ecModel.getComponent(this._dimName + "Axis", this._axisIndex)
            }, t.prototype.getMinMaxSpan = function () {
                return lt(this._minMaxSpan)
            }, t.prototype.calculateDataWindow = function (t) {
                var e, n = this._dataExtent, i = this.getAxisModel().axis.scale,
                    r = this._dataZoomModel.getRangePropMode(), o = [0, 100], a = [], s = [];
                rH(["start", "end"], (function (l, u) {
                    var c = t[l], h = t[l + "Value"];
                    "percent" === r[u] ? (null == c && (c = o[u]), h = i.parse(Do(c, o, n))) : (e = !0, c = Do(h = null == h ? n[u] : i.parse(h), n, o)), s[u] = null == h || isNaN(h) ? n[u] : h, a[u] = null == c || isNaN(c) ? o[u] : c
                })), oH(s), oH(a);
                var l = this._minMaxSpan;

                function u(t, e, n, r, o) {
                    var a = o ? "Span" : "ValueSpan";
                    BO(0, t, n, "all", l["min" + a], l["max" + a]);
                    for (var s = 0; s < 2; s++) e[s] = Do(t[s], n, r, !0), o && (e[s] = i.parse(e[s]))
                }

                return e ? u(s, a, n, o, !1) : u(a, s, o, n, !0), {valueWindow: s, percentWindow: a}
            }, t.prototype.reset = function (t) {
                if (t === this._dataZoomModel) {
                    var e = this.getTargetSeriesModels();
                    this._dataExtent = function (t, e, n) {
                        var i = [1 / 0, -1 / 0];
                        rH(n, (function (t) {
                            !function (t, e, n) {
                                e && mt(zI(e, n), (function (n) {
                                    var i = e.getApproximateExtent(n);
                                    i[0] < t[0] && (t[0] = i[0]), i[1] > t[1] && (t[1] = i[1])
                                }))
                            }(i, t.getData(), e)
                        }));
                        var r = t.getAxisModel(), o = LI(r.axis.scale, r, i).calculate();
                        return [o.min, o.max]
                    }(this, this._dimName, e), this._updateMinMaxSpan();
                    var n = this.calculateDataWindow(t.settledOption);
                    this._valueWindow = n.valueWindow, this._percentWindow = n.percentWindow, this._setAxisModel()
                }
            }, t.prototype.filterData = function (t, e) {
                if (t === this._dataZoomModel) {
                    var n = this._dimName, i = this.getTargetSeriesModels(), r = t.get("filterMode"),
                        o = this._valueWindow;
                    "none" !== r && rH(i, (function (t) {
                        var e = t.getData(), i = e.mapDimensionsAll(n);
                        if (i.length) {
                            if ("weakFilter" === r) {
                                var a = e.getStore(), s = yt(i, (function (t) {
                                    return e.getDimensionIndex(t)
                                }), e);
                                e.filterSelf((function (t) {
                                    for (var e, n, r, l = 0; l < i.length; l++) {
                                        var u = a.get(s[l], t), c = !isNaN(u), h = u < o[0], d = u > o[1];
                                        if (c && !h && !d) return !0;
                                        c && (r = !0), h && (e = !0), d && (n = !0)
                                    }
                                    return r && e && n
                                }))
                            } else rH(i, (function (n) {
                                if ("empty" === r) t.setData(e = e.map(n, (function (t) {
                                    return function (t) {
                                        return t >= o[0] && t <= o[1]
                                    }(t) ? t : NaN
                                }))); else {
                                    var i = {};
                                    i[n] = o, e.selectRange(i)
                                }
                            }));
                            rH(i, (function (t) {
                                e.setApproximateExtent(o, t)
                            }))
                        }
                    }))
                }
            }, t.prototype._updateMinMaxSpan = function () {
                var t = this._minMaxSpan = {}, e = this._dataZoomModel, n = this._dataExtent;
                rH(["min", "max"], (function (i) {
                    var r = e.get(i + "Span"), o = e.get(i + "ValueSpan");
                    null != o && (o = this.getAxisModel().axis.scale.parse(o)), null != o ? r = Do(n[0] + o, n, [0, 100], !0) : null != r && (o = Do(r, [0, 100], n, !0) - n[0]), t[i + "Span"] = r, t[i + "ValueSpan"] = o
                }), this)
            }, t.prototype._setAxisModel = function () {
                var t = this.getAxisModel(), e = this._percentWindow, n = this._valueWindow;
                if (e) {
                    var i = Lo(n, [0, 500]);
                    i = Math.min(i, 20);
                    var r = t.axis.scale.rawExtentInfo;
                    0 !== e[0] && r.setDeterminedMinMax("min", +n[0].toFixed(i)), 100 !== e[1] && r.setDeterminedMinMax("max", +n[1].toFixed(i)), r.freeze()
                }
            }, t
        }();
        const sH = aH;
        const lH = {
            getTargetSeries: function (t) {
                function e(e) {
                    t.eachComponent("dataZoom", (function (n) {
                        n.eachTargetAxis((function (i, r) {
                            var o = t.getComponent(XF(i), r);
                            e(i, r, o, n)
                        }))
                    }))
                }

                e((function (t, e, n, i) {
                    n.__dzAxisProxy = null
                }));
                var n = [];
                e((function (e, i, r, o) {
                    r.__dzAxisProxy || (r.__dzAxisProxy = new sH(e, i, o, t), n.push(r.__dzAxisProxy))
                }));
                var i = jt();
                return mt(n, (function (t) {
                    mt(t.getTargetSeriesModels(), (function (t) {
                        i.set(t.uid, t)
                    }))
                })), i
            }, overallReset: function (t, e) {
                t.eachComponent("dataZoom", (function (t) {
                    t.eachTargetAxis((function (e, n) {
                        t.getAxisProxy(e, n).reset(t)
                    })), t.eachTargetAxis((function (n, i) {
                        t.getAxisProxy(n, i).filterData(t, e)
                    }))
                })), t.eachComponent("dataZoom", (function (t) {
                    var e = t.findRepresentativeAxisProxy();
                    if (e) {
                        var n = e.getDataPercentWindow(), i = e.getDataValueWindow();
                        t.setCalculatedRange({start: n[0], end: n[1], startValue: i[0], endValue: i[1]})
                    }
                }))
            }
        };
        var uH = !1;

        function cH(t) {
            uH || (uH = !0, t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER, lH), function (t) {
                t.registerAction("dataZoom", (function (t, e) {
                    mt(ZF(e, t), (function (e) {
                        e.setRawRange({start: t.start, end: t.end, startValue: t.startValue, endValue: t.endValue})
                    }))
                }))
            }(t), t.registerSubTypeDefaulter("dataZoom", (function () {
                return "slider"
            })))
        }

        function hH(t) {
            t.registerComponentModel(eH), t.registerComponentView(iH), cH(t)
        }

        var dH = function () {
        }, pH = {};

        function fH(t, e) {
            pH[t] = e
        }

        function gH(t) {
            return pH[t]
        }

        const mH = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.optionUpdated = function () {
                t.prototype.optionUpdated.apply(this, arguments);
                var e = this.ecModel;
                mt(this.option.feature, (function (t, n) {
                    var i = gH(n);
                    i && (i.getDefaultOption && (i.defaultOption = i.getDefaultOption(e)), ut(t, i.defaultOption))
                }))
            }, e.type = "toolbox", e.layoutMode = {type: "box", ignoreSize: !0}, e.defaultOption = {
                show: !0,
                z: 6,
                orient: "horizontal",
                left: "right",
                top: "top",
                backgroundColor: "transparent",
                borderColor: "#ccc",
                borderRadius: 0,
                borderWidth: 0,
                padding: 5,
                itemSize: 15,
                itemGap: 8,
                showTitle: !0,
                iconStyle: {borderColor: "#666", color: "none"},
                emphasis: {iconStyle: {borderColor: "#3E98C5"}},
                tooltip: {show: !1, position: "bottom"}
            }, e
        }(Fh);

        function yH(t, e) {
            var n = _h(e.get("padding")), i = e.getItemStyle(["color", "opacity"]);
            return i.fill = e.get("backgroundColor"), t = new Al({
                shape: {
                    x: t.x - n[3],
                    y: t.y - n[0],
                    width: t.width + n[1] + n[3],
                    height: t.height + n[0] + n[2],
                    r: e.get("borderRadius")
                }, style: i, silent: !0, z2: -1
            })
        }

        var vH = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.render = function (t, e, n, i) {
                var r = this.group;
                if (r.removeAll(), t.get("show")) {
                    var o = +t.get("itemSize"), a = "vertical" === t.get("orient"), s = t.get("feature") || {},
                        l = this._features || (this._features = {}), u = [];
                    mt(s, (function (t, e) {
                        u.push(e)
                    })), new iS(this._featureNames || [], u).add(c).update(c).remove(St(c, null)).execute(), this._featureNames = u, function (t, e, n) {
                        var i = e.getBoxLayoutParams(), r = e.get("padding"),
                            o = {width: n.getWidth(), height: n.getHeight()}, a = Nh(i, o, r);
                        Mh(e.get("orient"), t, e.get("itemGap"), a.width, a.height), Oh(t, i, o, r)
                    }(r, t, n), r.add(yH(r.getBoundingRect(), t)), a || r.eachChild((function (t) {
                        var e = t.__title, i = t.ensureState("emphasis"), a = i.textConfig || (i.textConfig = {}),
                            s = t.getTextContent(), l = s && s.ensureState("emphasis");
                        if (l && !bt(l) && e) {
                            var u = l.style || (l.style = {}), c = no(e, Fl.makeFont(u)), h = t.x + r.x, d = !1;
                            t.y + r.y + o + c.height > n.getHeight() && (a.position = "top", d = !0);
                            var p = d ? -5 - c.height : o + 10;
                            h + c.width / 2 > n.getWidth() ? (a.position = ["100%", p], u.align = "right") : h - c.width / 2 < 0 && (a.position = [0, p], u.align = "left")
                        }
                    }))
                }

                function c(c, h) {
                    var d, p = u[c], f = u[h], g = s[p], m = new wc(g, t, t.ecModel);
                    if (i && null != i.newTitle && i.featureName === p && (g.title = i.newTitle), p && !f) {
                        if (function (t) {
                            return 0 === t.indexOf("my")
                        }(p)) d = {onclick: m.option.onclick, featureName: p}; else {
                            var y = gH(p);
                            if (!y) return;
                            d = new y
                        }
                        l[p] = d
                    } else if (!(d = l[f])) return;
                    d.uid = Nc("toolbox-feature"), d.model = m, d.ecModel = e, d.api = n;
                    var v = d instanceof dH;
                    p || !f ? !m.get("show") || v && d.unusable ? v && d.remove && d.remove(e, n) : (!function (i, s, l) {
                        var u, c, h = i.getModel("iconStyle"), d = i.getModel(["emphasis", "iconStyle"]),
                            p = s instanceof dH && s.getIcons ? s.getIcons() : i.get("icon"), f = i.get("title") || {};
                        It(p) ? (u = {})[l] = p : u = p;
                        It(f) ? (c = {})[l] = f : c = f;
                        var g = i.iconPaths = {};
                        mt(u, (function (l, u) {
                            var p = Om(l, {}, {x: -o / 2, y: -o / 2, width: o, height: o});
                            p.setStyle(h.getItemStyle()), p.ensureState("emphasis").style = d.getItemStyle();
                            var f = new Fl({
                                style: {
                                    text: c[u],
                                    align: d.get("textAlign"),
                                    borderRadius: d.get("textBorderRadius"),
                                    padding: d.get("textPadding"),
                                    fill: null
                                }, ignore: !0
                            });
                            p.setTextContent(f), Pm({
                                el: p,
                                componentModel: t,
                                itemName: u,
                                formatterParamsExtra: {title: c[u]}
                            }), p.__title = c[u], p.on("mouseover", (function () {
                                var e = d.getItemStyle(),
                                    i = a ? null == t.get("right") && "right" !== t.get("left") ? "right" : "left" : null == t.get("bottom") && "bottom" !== t.get("top") ? "bottom" : "top";
                                f.setStyle({
                                    fill: d.get("textFill") || e.fill || e.stroke || "#000",
                                    backgroundColor: d.get("textBackgroundColor")
                                }), p.setTextConfig({position: d.get("textPosition") || i}), f.ignore = !t.get("showTitle"), n.enterEmphasis(this)
                            })).on("mouseout", (function () {
                                "emphasis" !== i.get(["iconStatus", u]) && n.leaveEmphasis(this), f.hide()
                            })), ("emphasis" === i.get(["iconStatus", u]) ? xu : Su)(p), r.add(p), p.on("click", xt(s.onclick, s, e, n, u)), g[u] = p
                        }))
                    }(m, d, p), m.setIconStatus = function (t, e) {
                        var n = this.option, i = this.iconPaths;
                        n.iconStatus = n.iconStatus || {}, n.iconStatus[t] = e, i[t] && ("emphasis" === e ? xu : Su)(i[t])
                    }, d instanceof dH && d.render && d.render(m, e, n, i)) : v && d.dispose && d.dispose(e, n)
                }
            }, e.prototype.updateView = function (t, e, n, i) {
                mt(this._features, (function (t) {
                    t instanceof dH && t.updateView && t.updateView(t.model, e, n, i)
                }))
            }, e.prototype.remove = function (t, e) {
                mt(this._features, (function (n) {
                    n instanceof dH && n.remove && n.remove(t, e)
                })), this.group.removeAll()
            }, e.prototype.dispose = function (t, e) {
                mt(this._features, (function (n) {
                    n instanceof dH && n.dispose && n.dispose(t, e)
                }))
            }, e.type = "toolbox", e
        }(Gf);
        const _H = vH;
        const TH = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.onclick = function (t, e) {
                var n = this.model, i = n.get("name") || t.get("title.0.text") || "echarts",
                    r = "svg" === e.getZr().painter.getType(), o = r ? "svg" : n.get("type", !0) || "png",
                    a = e.getConnectedDataURL({
                        type: o,
                        backgroundColor: n.get("backgroundColor", !0) || t.get("backgroundColor") || "#fff",
                        connectedBackgroundColor: n.get("connectedBackgroundColor"),
                        excludeComponents: n.get("excludeComponents"),
                        pixelRatio: n.get("pixelRatio")
                    }), s = H.browser;
                if (bt(MouseEvent) && (s.newEdge || !s.ie && !s.edge)) {
                    var l = document.createElement("a");
                    l.download = i + "." + o, l.target = "_blank", l.href = a;
                    var u = new MouseEvent("click", {view: document.defaultView, bubbles: !0, cancelable: !1});
                    l.dispatchEvent(u)
                } else if (window.navigator.msSaveOrOpenBlob || r) {
                    var c = a.split(","), h = c[0].indexOf("base64") > -1, d = r ? decodeURIComponent(c[1]) : c[1];
                    h && (d = window.atob(d));
                    var p = i + "." + o;
                    if (window.navigator.msSaveOrOpenBlob) {
                        for (var f = d.length, g = new Uint8Array(f); f--;) g[f] = d.charCodeAt(f);
                        var m = new Blob([g]);
                        window.navigator.msSaveOrOpenBlob(m, p)
                    } else {
                        var y = document.createElement("iframe");
                        document.body.appendChild(y);
                        var v = y.contentWindow, _ = v.document;
                        _.open("image/svg+xml", "replace"), _.write(d), _.close(), v.focus(), _.execCommand("SaveAs", !0, p), document.body.removeChild(y)
                    }
                } else {
                    var T = n.get("lang"),
                        x = '<body style="margin:0;"><img src="' + a + '" style="max-width:100%;" title="' + (T && T[0] || "") + '" /></body>',
                        S = window.open();
                    S.document.write(x), S.document.title = i
                }
            }, e.getDefaultOption = function (t) {
                return {
                    show: !0,
                    icon: "M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",
                    title: t.getLocaleModel().get(["toolbox", "saveAsImage", "title"]),
                    type: "png",
                    connectedBackgroundColor: "#fff",
                    name: "",
                    excludeComponents: ["toolbox"],
                    lang: t.getLocaleModel().get(["toolbox", "saveAsImage", "lang"])
                }
            }, e
        }(dH);
        var xH = "__ec_magicType_stack__", SH = [["line", "bar"], ["stack"]], AH = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.getIcons = function () {
                var t = this.model, e = t.get("icon"), n = {};
                return mt(t.get("type"), (function (t) {
                    e[t] && (n[t] = e[t])
                })), n
            }, e.getDefaultOption = function (t) {
                return {
                    show: !0,
                    type: [],
                    icon: {
                        line: "M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",
                        bar: "M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",
                        stack: "M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"
                    },
                    title: t.getLocaleModel().get(["toolbox", "magicType", "title"]),
                    option: {},
                    seriesIndex: {}
                }
            }, e.prototype.onclick = function (t, e, n) {
                var i = this.model, r = i.get(["seriesIndex", n]);
                if (bH[n]) {
                    var o, a = {series: []};
                    mt(SH, (function (t) {
                        pt(t, n) >= 0 && mt(t, (function (t) {
                            i.setIconStatus(t, "normal")
                        }))
                    })), i.setIconStatus(n, "emphasis"), t.eachComponent({
                        mainType: "series",
                        query: null == r ? null : {seriesIndex: r}
                    }, (function (t) {
                        var e = t.subType, r = t.id, o = bH[n](e, r, t, i);
                        o && (dt(o, t.option), a.series.push(o));
                        var s = t.coordinateSystem;
                        if (s && "cartesian2d" === s.type && ("line" === n || "bar" === n)) {
                            var l = s.getAxesByScale("ordinal")[0];
                            if (l) {
                                var u = l.dim + "Axis", c = t.getReferringComponents(u, ga).models[0].componentIndex;
                                a[u] = a[u] || [];
                                for (var h = 0; h <= c; h++) a[u][c] = a[u][c] || {};
                                a[u][c].boundaryGap = "bar" === n
                            }
                        }
                    }));
                    var s = n;
                    "stack" === n && (o = ut({
                        stack: i.option.title.tiled,
                        tiled: i.option.title.stack
                    }, i.option.title), "emphasis" !== i.get(["iconStatus", n]) && (s = "tiled")), e.dispatchAction({
                        type: "changeMagicType",
                        currentType: s,
                        newOption: a,
                        newTitle: o,
                        featureName: "magicType"
                    })
                }
            }, e
        }(dH), bH = {
            line: function (t, e, n, i) {
                if ("bar" === t) return ut({
                    id: e,
                    type: "line",
                    data: n.get("data"),
                    stack: n.get("stack"),
                    markPoint: n.get("markPoint"),
                    markLine: n.get("markLine")
                }, i.get(["option", "line"]) || {}, !0)
            }, bar: function (t, e, n, i) {
                if ("line" === t) return ut({
                    id: e,
                    type: "bar",
                    data: n.get("data"),
                    stack: n.get("stack"),
                    markPoint: n.get("markPoint"),
                    markLine: n.get("markLine")
                }, i.get(["option", "bar"]) || {}, !0)
            }, stack: function (t, e, n, i) {
                var r = n.get("stack") === xH;
                if ("line" === t || "bar" === t) return i.setIconStatus("stack", r ? "normal" : "emphasis"), ut({
                    id: e,
                    stack: r ? "" : xH
                }, i.get(["option", "stack"]) || {}, !0)
            }
        };
        G_({type: "changeMagicType", event: "magicTypeChanged", update: "prepareAndUpdate"}, (function (t, e) {
            e.mergeOption(t.newOption)
        }));
        const IH = AH;
        var EH = new Array(60).join("-"), CH = "\t";

        function DH(t) {
            return t.replace(/^\s\s*/, "").replace(/\s\s*$/, "")
        }

        var wH = new RegExp("[" + CH + "]+", "g");

        function MH(t, e) {
            var n = t.split(new RegExp("\n*" + EH + "\n*", "g")), i = {series: []};
            return mt(n, (function (t, n) {
                if (function (t) {
                    if (t.slice(0, t.indexOf("\n")).indexOf(CH) >= 0) return !0
                }(t)) {
                    var r = function (t) {
                        for (var e = t.split(/\n+/g), n = [], i = yt(DH(e.shift()).split(wH), (function (t) {
                            return {name: t, data: []}
                        })), r = 0; r < e.length; r++) {
                            var o = DH(e[r]).split(wH);
                            n.push(o.shift());
                            for (var a = 0; a < o.length; a++) i[a] && (i[a].data[r] = o[a])
                        }
                        return {series: i, categories: n}
                    }(t), o = e[n], a = o.axisDim + "Axis";
                    o && (i[a] = i[a] || [], i[a][o.axisIndex] = {data: r.categories}, i.series = i.series.concat(r.series))
                } else {
                    r = function (t) {
                        for (var e = t.split(/\n+/g), n = DH(e.shift()), i = [], r = 0; r < e.length; r++) {
                            var o = DH(e[r]);
                            if (o) {
                                var a = o.split(wH), s = "", l = void 0, u = !1;
                                isNaN(a[0]) ? (u = !0, s = a[0], a = a.slice(1), i[r] = {
                                    name: s,
                                    value: []
                                }, l = i[r].value) : l = i[r] = [];
                                for (var c = 0; c < a.length; c++) l.push(+a[c]);
                                1 === l.length && (u ? i[r].value = l[0] : i[r] = l[0])
                            }
                        }
                        return {name: n, data: i}
                    }(t);
                    i.series.push(r)
                }
            })), i
        }

        var NH = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.onclick = function (t, e) {
                setTimeout((function () {
                    e.dispatchAction({type: "hideTip"})
                }));
                var n = e.getDom(), i = this.model;
                this._dom && n.removeChild(this._dom);
                var r = document.createElement("div");
                r.style.cssText = "position:absolute;top:0;bottom:0;left:0;right:0;padding:5px", r.style.backgroundColor = i.get("backgroundColor") || "#fff";
                var o = document.createElement("h4"), a = i.get("lang") || [];
                o.innerHTML = a[0] || i.get("title"), o.style.cssText = "margin:10px 20px", o.style.color = i.get("textColor");
                var s = document.createElement("div"), l = document.createElement("textarea");
                s.style.cssText = "overflow:auto";
                var u = i.get("optionToContent"), c = i.get("contentToOption"), h = function (t) {
                    var e, n, i, r = function (t) {
                        var e = {}, n = [], i = [];
                        return t.eachRawSeries((function (t) {
                            var r = t.coordinateSystem;
                            if (!r || "cartesian2d" !== r.type && "polar" !== r.type) n.push(t); else {
                                var o = r.getBaseAxis();
                                if ("category" === o.type) {
                                    var a = o.dim + "_" + o.index;
                                    e[a] || (e[a] = {
                                        categoryAxis: o,
                                        valueAxis: r.getOtherAxis(o),
                                        series: []
                                    }, i.push({axisDim: o.dim, axisIndex: o.index})), e[a].series.push(t)
                                } else n.push(t)
                            }
                        })), {seriesGroupByCategoryAxis: e, other: n, meta: i}
                    }(t);
                    return {
                        value: _t([(n = r.seriesGroupByCategoryAxis, i = [], mt(n, (function (t, e) {
                            var n = t.categoryAxis, r = t.valueAxis.dim, o = [" "].concat(yt(t.series, (function (t) {
                                return t.name
                            }))), a = [n.model.getCategories()];
                            mt(t.series, (function (t) {
                                var e = t.getRawData();
                                a.push(t.getRawData().mapArray(e.mapDimension(r), (function (t) {
                                    return t
                                })))
                            }));
                            for (var s = [o.join(CH)], l = 0; l < a[0].length; l++) {
                                for (var u = [], c = 0; c < a.length; c++) u.push(a[c][l]);
                                s.push(u.join(CH))
                            }
                            i.push(s.join("\n"))
                        })), i.join("\n\n" + EH + "\n\n")), (e = r.other, yt(e, (function (t) {
                            var e = t.getRawData(), n = [t.name], i = [];
                            return e.each(e.dimensions, (function () {
                                for (var t = arguments.length, r = arguments[t - 1], o = e.getName(r), a = 0; a < t - 1; a++) i[a] = arguments[a];
                                n.push((o ? o + CH : "") + i.join(CH))
                            })), n.join("\n")
                        })).join("\n\n" + EH + "\n\n"))], (function (t) {
                            return !!t.replace(/[\n\t\s]/g, "")
                        })).join("\n\n" + EH + "\n\n"), meta: r.meta
                    }
                }(t);
                if (bt(u)) {
                    var d = u(e.getOption());
                    It(d) ? s.innerHTML = d : Nt(d) && s.appendChild(d)
                } else {
                    l.readOnly = i.get("readOnly");
                    var p = l.style;
                    p.cssText = "display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none", p.color = i.get("textColor"), p.borderColor = i.get("textareaBorderColor"), p.backgroundColor = i.get("textareaColor"), l.value = h.value, s.appendChild(l)
                }
                var f = h.meta, g = document.createElement("div");
                g.style.cssText = "position:absolute;bottom:5px;left:0;right:0";
                var m = "float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",
                    y = document.createElement("div"), v = document.createElement("div");
                m += ";background-color:" + i.get("buttonColor"), m += ";color:" + i.get("buttonTextColor");
                var _ = this;

                function T() {
                    n.removeChild(r), _._dom = null
                }

                He(y, "click", T), He(v, "click", (function () {
                    if (null == c && null != u || null != c && null == u) T(); else {
                        var t;
                        try {
                            t = bt(c) ? c(s, e.getOption()) : MH(l.value, f)
                        } catch (t) {
                            throw T(), new Error("Data view format error " + t)
                        }
                        t && e.dispatchAction({type: "changeDataView", newOption: t}), T()
                    }
                })), y.innerHTML = a[1], v.innerHTML = a[2], v.style.cssText = y.style.cssText = m, !i.get("readOnly") && g.appendChild(v), g.appendChild(y), r.appendChild(o), r.appendChild(s), r.appendChild(g), s.style.height = n.clientHeight - 80 + "px", n.appendChild(r), this._dom = r
            }, e.prototype.remove = function (t, e) {
                this._dom && e.getDom().removeChild(this._dom)
            }, e.prototype.dispose = function (t, e) {
                this.remove(t, e)
            }, e.getDefaultOption = function (t) {
                return {
                    show: !0,
                    readOnly: !1,
                    optionToContent: null,
                    contentToOption: null,
                    icon: "M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",
                    title: t.getLocaleModel().get(["toolbox", "dataView", "title"]),
                    lang: t.getLocaleModel().get(["toolbox", "dataView", "lang"]),
                    backgroundColor: "#fff",
                    textColor: "#000",
                    textareaColor: "#fff",
                    textareaBorderColor: "#333",
                    buttonColor: "#c23531",
                    buttonTextColor: "#fff"
                }
            }, e
        }(dH);

        function OH(t, e) {
            return yt(t, (function (t, n) {
                var i = e && e[n];
                if (Dt(i) && !At(i)) {
                    Dt(t) && !At(t) || (t = {value: t});
                    var r = null != i.name && null == t.name;
                    return t = dt(t, i), r && delete t.name, t
                }
                return t
            }))
        }

        G_({type: "changeDataView", event: "dataViewChanged", update: "prepareAndUpdate"}, (function (t, e) {
            var n = [];
            mt(t.newOption.series, (function (t) {
                var i = e.getSeriesByName(t.name)[0];
                if (i) {
                    var r = i.get("data");
                    n.push({name: t.name, data: OH(t.data, r)})
                } else n.push(ht({type: "scatter"}, t))
            })), e.mergeOption(dt({series: n}, t.newOption))
        }));
        const LH = NH;
        var RH = mt, kH = ha();

        function PH(t) {
            var e = kH(t);
            return e.snapshots || (e.snapshots = [{}]), e.snapshots
        }

        var GH = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.onclick = function (t, e) {
                !function (t) {
                    kH(t).snapshots = null
                }(t), e.dispatchAction({type: "restore", from: this.uid})
            }, e.getDefaultOption = function (t) {
                return {
                    show: !0,
                    icon: "M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",
                    title: t.getLocaleModel().get(["toolbox", "restore", "title"])
                }
            }, e
        }(dH);
        G_({type: "restore", event: "restore", update: "prepareAndUpdate"}, (function (t, e) {
            e.resetOption("recreate")
        }));
        const BH = GH;
        var FH = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "angleAxis", "bmap"],
            HH = function () {
                function t(t, e, n) {
                    var i = this;
                    this._targetInfoList = [];
                    var r = VH(e, t);
                    mt(zH, (function (t, e) {
                        (!n || !n.include || pt(n.include, e) >= 0) && t(r, i._targetInfoList)
                    }))
                }

                return t.prototype.setOutputRanges = function (t, e) {
                    return this.matchOutputRanges(t, e, (function (t, e, n) {
                        if ((t.coordRanges || (t.coordRanges = [])).push(e), !t.coordRange) {
                            t.coordRange = e;
                            var i = qH[t.brushType](0, n, e);
                            t.__rangeOffset = {offset: XH[t.brushType](i.values, t.range, [1, 1]), xyMinMax: i.xyMinMax}
                        }
                    })), t
                }, t.prototype.matchOutputRanges = function (t, e, n) {
                    mt(t, (function (t) {
                        var i = this.findTargetInfo(t, e);
                        i && !0 !== i && mt(i.coordSyses, (function (i) {
                            var r = qH[t.brushType](1, i, t.range, !0);
                            n(t, r.values, i, e)
                        }))
                    }), this)
                }, t.prototype.setInputRanges = function (t, e) {
                    mt(t, (function (t) {
                        var n, i, r, o, a, s = this.findTargetInfo(t, e);
                        if (t.range = t.range || [], s && !0 !== s) {
                            t.panelId = s.panelId;
                            var l = qH[t.brushType](0, s.coordSys, t.coordRange), u = t.__rangeOffset;
                            t.range = u ? XH[t.brushType](l.values, u.offset, (n = l.xyMinMax, i = u.xyMinMax, r = KH(n), o = KH(i), a = [r[0] / o[0], r[1] / o[1]], isNaN(a[0]) && (a[0] = 1), isNaN(a[1]) && (a[1] = 1), a)) : l.values
                        }
                    }), this)
                }, t.prototype.makePanelOpts = function (t, e) {
                    return yt(this._targetInfoList, (function (n) {
                        var i = n.getPanelRect();
                        return {
                            panelId: n.panelId,
                            defaultBrushType: e ? e(n) : null,
                            clipPath: qL(i),
                            isTargetByCursor: XL(i, t, n.coordSysModel),
                            getLinearBrushOtherExtent: jL(i)
                        }
                    }))
                }, t.prototype.controlSeries = function (t, e, n) {
                    var i = this.findTargetInfo(t, n);
                    return !0 === i || i && pt(i.coordSyses, e.coordinateSystem) >= 0
                }, t.prototype.findTargetInfo = function (t, e) {
                    for (var n = this._targetInfoList, i = VH(e, t), r = 0; r < n.length; r++) {
                        var o = n[r], a = t.panelId;
                        if (a) {
                            if (o.panelId === a) return o
                        } else for (var s = 0; s < WH.length; s++) if (WH[s](i, o)) return o
                    }
                    return !0
                }, t
            }();

        function UH(t) {
            return t[0] > t[1] && t.reverse(), t
        }

        function VH(t, e) {
            return pa(t, e, {includeMainTypes: FH})
        }

        var zH = {
            grid: function (t, e) {
                var n = t.xAxisModels, i = t.yAxisModels, r = t.gridModels, o = jt(), a = {}, s = {};
                (n || i || r) && (mt(n, (function (t) {
                    var e = t.axis.grid.model;
                    o.set(e.id, e), a[e.id] = !0
                })), mt(i, (function (t) {
                    var e = t.axis.grid.model;
                    o.set(e.id, e), s[e.id] = !0
                })), mt(r, (function (t) {
                    o.set(t.id, t), a[t.id] = !0, s[t.id] = !0
                })), o.each((function (t) {
                    var r = t.coordinateSystem, o = [];
                    mt(r.getCartesians(), (function (t, e) {
                        (pt(n, t.getAxis("x").model) >= 0 || pt(i, t.getAxis("y").model) >= 0) && o.push(t)
                    })), e.push({
                        panelId: "grid--" + t.id,
                        gridModel: t,
                        coordSysModel: t,
                        coordSys: o[0],
                        coordSyses: o,
                        getPanelRect: YH.grid,
                        xAxisDeclared: a[t.id],
                        yAxisDeclared: s[t.id]
                    })
                })))
            }, geo: function (t, e) {
                mt(t.geoModels, (function (t) {
                    var n = t.coordinateSystem;
                    e.push({
                        panelId: "geo--" + t.id,
                        geoModel: t,
                        coordSysModel: t,
                        coordSys: n,
                        coordSyses: [n],
                        getPanelRect: YH.geo
                    })
                }))
            }
        }, WH = [function (t, e) {
            var n = t.xAxisModel, i = t.yAxisModel, r = t.gridModel;
            return !r && n && (r = n.axis.grid.model), !r && i && (r = i.axis.grid.model), r && r === e.gridModel
        }, function (t, e) {
            var n = t.geoModel;
            return n && n === e.geoModel
        }], YH = {
            grid: function () {
                return this.coordSys.master.getRect().clone()
            }, geo: function () {
                var t = this.coordSys, e = t.getBoundingRect().clone();
                return e.applyTransform(Im(t)), e
            }
        }, qH = {
            lineX: St(jH, 0), lineY: St(jH, 1), rect: function (t, e, n, i) {
                var r = t ? e.pointToData([n[0][0], n[1][0]], i) : e.dataToPoint([n[0][0], n[1][0]], i),
                    o = t ? e.pointToData([n[0][1], n[1][1]], i) : e.dataToPoint([n[0][1], n[1][1]], i),
                    a = [UH([r[0], o[0]]), UH([r[1], o[1]])];
                return {values: a, xyMinMax: a}
            }, polygon: function (t, e, n, i) {
                var r = [[1 / 0, -1 / 0], [1 / 0, -1 / 0]];
                return {
                    values: yt(n, (function (n) {
                        var o = t ? e.pointToData(n, i) : e.dataToPoint(n, i);
                        return r[0][0] = Math.min(r[0][0], o[0]), r[1][0] = Math.min(r[1][0], o[1]), r[0][1] = Math.max(r[0][1], o[0]), r[1][1] = Math.max(r[1][1], o[1]), o
                    })), xyMinMax: r
                }
            }
        };

        function jH(t, e, n, i) {
            var r = n.getAxis(["x", "y"][t]), o = UH(yt([0, 1], (function (t) {
                return e ? r.coordToData(r.toLocalCoord(i[t]), !0) : r.toGlobalCoord(r.dataToCoord(i[t]))
            }))), a = [];
            return a[t] = o, a[1 - t] = [NaN, NaN], {values: o, xyMinMax: a}
        }

        var XH = {
            lineX: St(ZH, 0), lineY: St(ZH, 1), rect: function (t, e, n) {
                return [[t[0][0] - n[0] * e[0][0], t[0][1] - n[0] * e[0][1]], [t[1][0] - n[1] * e[1][0], t[1][1] - n[1] * e[1][1]]]
            }, polygon: function (t, e, n) {
                return yt(t, (function (t, i) {
                    return [t[0] - n[0] * e[i][0], t[1] - n[1] * e[i][1]]
                }))
            }
        };

        function ZH(t, e, n, i) {
            return [e[0] - i[t] * n[0], e[1] - i[t] * n[1]]
        }

        function KH(t) {
            return t ? [t[0][1] - t[0][0], t[1][1] - t[1][0]] : [NaN, NaN]
        }

        const QH = HH;
        var $H, JH, tU = mt, eU = $o + "toolbox-dataZoom_", nU = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.render = function (t, e, n, i) {
                this._brushController || (this._brushController = new YL(n.getZr()), this._brushController.on("brush", xt(this._onBrush, this)).mount()), function (t, e, n, i, r) {
                    var o = n._isZoomActive;
                    i && "takeGlobalCursor" === i.type && (o = "dataZoomSelect" === i.key && i.dataZoomSelectActive);
                    n._isZoomActive = o, t.setIconStatus("zoom", o ? "emphasis" : "normal");
                    var a = new QH(rU(t), e, {include: ["grid"]}), s = a.makePanelOpts(r, (function (t) {
                        return t.xAxisDeclared && !t.yAxisDeclared ? "lineX" : !t.xAxisDeclared && t.yAxisDeclared ? "lineY" : "rect"
                    }));
                    n._brushController.setPanels(s).enableBrush(!(!o || !s.length) && {
                        brushType: "auto",
                        brushStyle: t.getModel("brushStyle").getItemStyle()
                    })
                }(t, e, this, i, n), function (t, e) {
                    t.setIconStatus("back", function (t) {
                        return PH(t).length
                    }(e) > 1 ? "emphasis" : "normal")
                }(t, e)
            }, e.prototype.onclick = function (t, e, n) {
                iU[n].call(this)
            }, e.prototype.remove = function (t, e) {
                this._brushController && this._brushController.unmount()
            }, e.prototype.dispose = function (t, e) {
                this._brushController && this._brushController.dispose()
            }, e.prototype._onBrush = function (t) {
                var e = t.areas;
                if (t.isEnd && e.length) {
                    var n = {}, i = this.ecModel;
                    this._brushController.updateCovers([]), new QH(rU(this.model), i, {include: ["grid"]}).matchOutputRanges(e, i, (function (t, e, n) {
                        if ("cartesian2d" === n.type) {
                            var i = t.brushType;
                            "rect" === i ? (r("x", n, e[0]), r("y", n, e[1])) : r({lineX: "x", lineY: "y"}[i], n, e)
                        }
                    })), function (t, e) {
                        var n = PH(t);
                        RH(e, (function (e, i) {
                            for (var r = n.length - 1; r >= 0 && !n[r][i]; r--) ;
                            if (r < 0) {
                                var o = t.queryComponents({mainType: "dataZoom", subType: "select", id: i})[0];
                                if (o) {
                                    var a = o.getPercentRange();
                                    n[0][i] = {dataZoomId: i, start: a[0], end: a[1]}
                                }
                            }
                        })), n.push(e)
                    }(i, n), this._dispatchZoomAction(n)
                }

                function r(t, e, r) {
                    var o = e.getAxis(t), a = o.model, s = function (t, e, n) {
                        var i;
                        return n.eachComponent({mainType: "dataZoom", subType: "select"}, (function (n) {
                            n.getAxisModel(t, e.componentIndex) && (i = n)
                        })), i
                    }(t, a, i), l = s.findRepresentativeAxisProxy(a).getMinMaxSpan();
                    null == l.minValueSpan && null == l.maxValueSpan || (r = BO(0, r.slice(), o.scale.getExtent(), 0, l.minValueSpan, l.maxValueSpan)), s && (n[s.id] = {
                        dataZoomId: s.id,
                        startValue: r[0],
                        endValue: r[1]
                    })
                }
            }, e.prototype._dispatchZoomAction = function (t) {
                var e = [];
                tU(t, (function (t, n) {
                    e.push(lt(t))
                })), e.length && this.api.dispatchAction({type: "dataZoom", from: this.uid, batch: e})
            }, e.getDefaultOption = function (t) {
                return {
                    show: !0,
                    filterMode: "filter",
                    icon: {
                        zoom: "M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",
                        back: "M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"
                    },
                    title: t.getLocaleModel().get(["toolbox", "dataZoom", "title"]),
                    brushStyle: {borderWidth: 0, color: "rgba(210,219,238,0.2)"}
                }
            }, e
        }(dH), iU = {
            zoom: function () {
                var t = !this._isZoomActive;
                this.api.dispatchAction({type: "takeGlobalCursor", key: "dataZoomSelect", dataZoomSelectActive: t})
            }, back: function () {
                this._dispatchZoomAction(function (t) {
                    var e = PH(t), n = e[e.length - 1];
                    e.length > 1 && e.pop();
                    var i = {};
                    return RH(n, (function (t, n) {
                        for (var r = e.length - 1; r >= 0; r--) if (t = e[r][n]) {
                            i[n] = t;
                            break
                        }
                    })), i
                }(this.ecModel))
            }
        };

        function rU(t) {
            var e = {
                xAxisIndex: t.get("xAxisIndex", !0),
                yAxisIndex: t.get("yAxisIndex", !0),
                xAxisId: t.get("xAxisId", !0),
                yAxisId: t.get("yAxisId", !0)
            };
            return null == e.xAxisIndex && null == e.xAxisId && (e.xAxisIndex = "all"), null == e.yAxisIndex && null == e.yAxisId && (e.yAxisIndex = "all"), e
        }

        $H = "dataZoom", JH = function (t) {
            var e = t.getComponent("toolbox", 0), n = ["feature", "dataZoom"];
            if (e && null != e.get(n)) {
                var i = e.getModel(n), r = [], o = pa(t, rU(i));
                return tU(o.xAxisModels, (function (t) {
                    return a(t, "xAxis", "xAxisIndex")
                })), tU(o.yAxisModels, (function (t) {
                    return a(t, "yAxis", "yAxisIndex")
                })), r
            }

            function a(t, e, n) {
                var o = t.componentIndex, a = {
                    type: "select",
                    $fromToolbox: !0,
                    filterMode: i.get("filterMode", !0) || "filter",
                    id: eU + e + o
                };
                a[n] = o, r.push(a)
            }
        }, Ft(null == od.get($H) && JH), od.set($H, JH);
        const oU = nU;
        const aU = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "tooltip", e.dependencies = ["axisPointer"], e.defaultOption = {
                z: 60,
                show: !0,
                showContent: !0,
                trigger: "item",
                triggerOn: "mousemove|click",
                alwaysShowContent: !1,
                displayMode: "single",
                renderMode: "auto",
                confine: null,
                showDelay: 0,
                hideDelay: 100,
                transitionDuration: .4,
                enterable: !1,
                backgroundColor: "#fff",
                shadowBlur: 10,
                shadowColor: "rgba(0, 0, 0, .2)",
                shadowOffsetX: 1,
                shadowOffsetY: 2,
                borderRadius: 4,
                borderWidth: 1,
                padding: null,
                extraCssText: "",
                axisPointer: {
                    type: "line",
                    axis: "auto",
                    animation: "auto",
                    animationDurationUpdate: 200,
                    animationEasingUpdate: "exponentialOut",
                    crossStyle: {color: "#999", width: 1, type: "dashed", textStyle: {}}
                },
                textStyle: {color: "#666", fontSize: 14}
            }, e
        }(Fh);

        function sU(t) {
            var e = t.get("confine");
            return null != e ? !!e : "richText" === t.get("renderMode")
        }

        function lU(t) {
            if (H.domSupported) for (var e = document.documentElement.style, n = 0, i = t.length; n < i; n++) if (t[n] in e) return t[n]
        }

        var uU = lU(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]);

        function cU(t, e) {
            if (!t) return e;
            e = vh(e, !0);
            var n = t.indexOf(e);
            return (t = -1 === n ? e : "-" + t.slice(0, n) + "-" + e).toLowerCase()
        }

        var hU = cU(lU(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]), "transition"),
            dU = cU(uU, "transform"),
            pU = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (H.transform3dSupported ? "will-change:transform;" : "");

        function fU(t, e, n) {
            var i = t.toFixed(0) + "px", r = e.toFixed(0) + "px";
            if (!H.transformSupported) return n ? "top:" + r + ";left:" + i + ";" : [["top", r], ["left", i]];
            var o = H.transform3dSupported,
                a = "translate" + (o ? "3d" : "") + "(" + i + "," + r + (o ? ",0" : "") + ")";
            return n ? "top:0;left:0;" + dU + ":" + a + ";" : [["top", 0], ["left", 0], [uU, a]]
        }

        function gU(t, e, n) {
            var i = [], r = t.get("transitionDuration"), o = t.get("backgroundColor"), a = t.get("shadowBlur"),
                s = t.get("shadowColor"), l = t.get("shadowOffsetX"), u = t.get("shadowOffsetY"),
                c = t.getModel("textStyle"), h = xf(t, "html"), d = l + "px " + u + "px " + a + "px " + s;
            return i.push("box-shadow:" + d), e && r && i.push(function (t, e) {
                var n = "cubic-bezier(0.23,1,0.32,1)", i = " " + t / 2 + "s " + n,
                    r = "opacity" + i + ",visibility" + i;
                return e || (i = " " + t + "s " + n, r += H.transformSupported ? "," + dU + i : ",left" + i + ",top" + i), hU + ":" + r
            }(r, n)), o && i.push("background-color:" + o), mt(["width", "color", "radius"], (function (e) {
                var n = "border-" + e, r = vh(n), o = t.get(r);
                null != o && i.push(n + ":" + o + ("color" === e ? "" : "px"))
            })), i.push(function (t) {
                var e = [], n = t.get("fontSize"), i = t.getTextColor();
                i && e.push("color:" + i), e.push("font:" + t.getFont()), n && e.push("line-height:" + Math.round(3 * n / 2) + "px");
                var r = t.get("textShadowColor"), o = t.get("textShadowBlur") || 0, a = t.get("textShadowOffsetX") || 0,
                    s = t.get("textShadowOffsetY") || 0;
                return r && o && e.push("text-shadow:" + a + "px " + s + "px " + o + "px " + r), mt(["decoration", "align"], (function (n) {
                    var i = t.get(n);
                    i && e.push("text-" + n + ":" + i)
                })), e.join(";")
            }(c)), null != h && i.push("padding:" + _h(h).join("px ") + "px"), i.join(";") + ";"
        }

        function mU(t, e, n, i, r) {
            var o = e && e.painter;
            if (n) {
                var a = o && o.getViewportRoot();
                a && function (t, e, n, i, r) {
                    De(Ce, e, i, r, !0) && De(t, n, Ce[0], Ce[1])
                }(t, a, document.body, i, r)
            } else {
                t[0] = i, t[1] = r;
                var s = o && o.getViewportRootOffset();
                s && (t[0] += s.offsetLeft, t[1] += s.offsetTop)
            }
            t[2] = t[0] / e.getWidth(), t[3] = t[1] / e.getHeight()
        }

        var yU = function () {
            function t(t, e, n) {
                if (this._show = !1, this._styleCoord = [0, 0, 0, 0], this._enterable = !0, this._alwaysShowContent = !1, this._firstShow = !0, this._longHide = !0, H.wxa) return null;
                var i = document.createElement("div");
                i.domBelongToZr = !0, this.el = i;
                var r = this._zr = e.getZr(), o = this._appendToBody = n && n.appendToBody;
                mU(this._styleCoord, r, o, e.getWidth() / 2, e.getHeight() / 2), o ? document.body.appendChild(i) : t.appendChild(i), this._container = t;
                var a = this;
                i.onmouseenter = function () {
                    a._enterable && (clearTimeout(a._hideTimeout), a._show = !0), a._inContent = !0
                }, i.onmousemove = function (t) {
                    if (t = t || window.event, !a._enterable) {
                        var e = r.handler;
                        Fe(r.painter.getViewportRoot(), t, !0), e.dispatch("mousemove", t)
                    }
                }, i.onmouseleave = function () {
                    a._inContent = !1, a._enterable && a._show && a.hideLater(a._hideDelay)
                }
            }

            return t.prototype.update = function (t) {
                var e, n, i, r = this._container,
                    o = (n = "position", (i = (e = r).currentStyle || document.defaultView && document.defaultView.getComputedStyle(e)) ? n ? i[n] : i : null),
                    a = r.style;
                "absolute" !== a.position && "absolute" !== o && (a.position = "relative");
                var s = t.get("alwaysShowContent");
                s && this._moveIfResized(), this._alwaysShowContent = s, this.el.className = t.get("className") || ""
            }, t.prototype.show = function (t, e) {
                clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout);
                var n = this.el, i = n.style, r = this._styleCoord;
                n.innerHTML ? i.cssText = pU + gU(t, !this._firstShow, this._longHide) + fU(r[0], r[1], !0) + "border-color:" + bh(e) + ";" + (t.get("extraCssText") || "") + ";pointer-events:" + (this._enterable ? "auto" : "none") : i.display = "none", this._show = !0, this._firstShow = !1, this._longHide = !1
            }, t.prototype.setContent = function (t, e, n, i, r) {
                var o = this.el;
                if (null != t) {
                    var a = "";
                    if (It(r) && "item" === n.get("trigger") && !sU(n) && (a = function (t, e, n) {
                        if (!It(n) || "inside" === n) return "";
                        var i = t.get("backgroundColor"), r = t.get("borderWidth");
                        e = bh(e);
                        var o, a,
                            s = "left" === (o = n) ? "right" : "right" === o ? "left" : "top" === o ? "bottom" : "top",
                            l = Math.max(1.5 * Math.round(r), 6), u = "", c = dU + ":";
                        pt(["left", "right"], s) > -1 ? (u += "top:50%", c += "translateY(-50%) rotate(" + (a = "left" === s ? -225 : -45) + "deg)") : (u += "left:50%", c += "translateX(-50%) rotate(" + (a = "top" === s ? 225 : 45) + "deg)");
                        var h = a * Math.PI / 180, d = l + r, p = d * Math.abs(Math.cos(h)) + d * Math.abs(Math.sin(h)),
                            f = e + " solid " + r + "px;";
                        return '<div style="' + ["position:absolute;width:" + l + "px;height:" + l + "px;z-index:-1;", (u += ";" + s + ":-" + Math.round(100 * ((p - Math.SQRT2 * r) / 2 + Math.SQRT2 * r - (p - d) / 2)) / 100 + "px") + ";" + c + ";", "border-bottom:" + f, "border-right:" + f, "background-color:" + i + ";"].join("") + '"></div>'
                    }(n, i, r)), It(t)) o.innerHTML = t + a; else if (t) {
                        o.innerHTML = "", At(t) || (t = [t]);
                        for (var s = 0; s < t.length; s++) Nt(t[s]) && t[s].parentNode !== o && o.appendChild(t[s]);
                        if (a && o.childNodes.length) {
                            var l = document.createElement("div");
                            l.innerHTML = a, o.appendChild(l)
                        }
                    }
                } else o.innerHTML = ""
            }, t.prototype.setEnterable = function (t) {
                this._enterable = t
            }, t.prototype.getSize = function () {
                var t = this.el;
                return [t.offsetWidth, t.offsetHeight]
            }, t.prototype.moveTo = function (t, e) {
                var n = this._styleCoord;
                if (mU(n, this._zr, this._appendToBody, t, e), null != n[0] && null != n[1]) {
                    var i = this.el.style;
                    mt(fU(n[0], n[1]), (function (t) {
                        i[t[0]] = t[1]
                    }))
                }
            }, t.prototype._moveIfResized = function () {
                var t = this._styleCoord[2], e = this._styleCoord[3];
                this.moveTo(t * this._zr.getWidth(), e * this._zr.getHeight())
            }, t.prototype.hide = function () {
                var t = this, e = this.el.style;
                e.visibility = "hidden", e.opacity = "0", H.transform3dSupported && (e.willChange = ""), this._show = !1, this._longHideTimeout = setTimeout((function () {
                    return t._longHide = !0
                }), 500)
            }, t.prototype.hideLater = function (t) {
                !this._show || this._inContent && this._enterable || this._alwaysShowContent || (t ? (this._hideDelay = t, this._show = !1, this._hideTimeout = setTimeout(xt(this.hide, this), t)) : this.hide())
            }, t.prototype.isShow = function () {
                return this._show
            }, t.prototype.dispose = function () {
                this.el.parentNode.removeChild(this.el)
            }, t
        }();
        const vU = yU;

        function _U(t) {
            return Math.max(0, t)
        }

        function TU(t) {
            var e = _U(t.shadowBlur || 0), n = _U(t.shadowOffsetX || 0), i = _U(t.shadowOffsetY || 0);
            return {left: _U(e - n), right: _U(e + n), top: _U(e - i), bottom: _U(e + i)}
        }

        function xU(t, e, n, i) {
            t[0] = n, t[1] = i, t[2] = t[0] / e.getWidth(), t[3] = t[1] / e.getHeight()
        }

        const SU = function () {
            function t(t) {
                this._show = !1, this._styleCoord = [0, 0, 0, 0], this._alwaysShowContent = !1, this._enterable = !0, this._zr = t.getZr(), xU(this._styleCoord, this._zr, t.getWidth() / 2, t.getHeight() / 2)
            }

            return t.prototype.update = function (t) {
                var e = t.get("alwaysShowContent");
                e && this._moveIfResized(), this._alwaysShowContent = e
            }, t.prototype.show = function () {
                this._hideTimeout && clearTimeout(this._hideTimeout), this.el.show(), this._show = !0
            }, t.prototype.setContent = function (t, e, n, i, r) {
                var o = this;
                Dt(t) && Dp(""), this.el && this._zr.remove(this.el);
                var a = n.getModel("textStyle");
                this.el = new Fl({
                    style: {
                        rich: e.richTextStyles,
                        text: t,
                        lineHeight: 22,
                        borderWidth: 1,
                        borderColor: i,
                        textShadowColor: a.get("textShadowColor"),
                        fill: n.get(["textStyle", "color"]),
                        padding: xf(n, "richText"),
                        verticalAlign: "top",
                        align: "left"
                    }, z: n.get("z")
                }), mt(["backgroundColor", "borderRadius", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"], (function (t) {
                    o.el.style[t] = n.get(t)
                })), mt(["textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], (function (t) {
                    o.el.style[t] = a.get(t) || 0
                })), this._zr.add(this.el);
                var s = this;
                this.el.on("mouseover", (function () {
                    s._enterable && (clearTimeout(s._hideTimeout), s._show = !0), s._inContent = !0
                })), this.el.on("mouseout", (function () {
                    s._enterable && s._show && s.hideLater(s._hideDelay), s._inContent = !1
                }))
            }, t.prototype.setEnterable = function (t) {
                this._enterable = t
            }, t.prototype.getSize = function () {
                var t = this.el, e = this.el.getBoundingRect(), n = TU(t.style);
                return [e.width + n.left + n.right, e.height + n.top + n.bottom]
            }, t.prototype.moveTo = function (t, e) {
                var n = this.el;
                if (n) {
                    var i = this._styleCoord;
                    xU(i, this._zr, t, e), t = i[0], e = i[1];
                    var r = n.style, o = _U(r.borderWidth || 0), a = TU(r);
                    n.x = t + o + a.left, n.y = e + o + a.top, n.markRedraw()
                }
            }, t.prototype._moveIfResized = function () {
                var t = this._styleCoord[2], e = this._styleCoord[3];
                this.moveTo(t * this._zr.getWidth(), e * this._zr.getHeight())
            }, t.prototype.hide = function () {
                this.el && this.el.hide(), this._show = !1
            }, t.prototype.hideLater = function (t) {
                !this._show || this._inContent && this._enterable || this._alwaysShowContent || (t ? (this._hideDelay = t, this._show = !1, this._hideTimeout = setTimeout(xt(this.hide, this), t)) : this.hide())
            }, t.prototype.isShow = function () {
                return this._show
            }, t.prototype.dispose = function () {
                this._zr.remove(this.el)
            }, t
        }();
        var AU = new Al({shape: {x: -1, y: -1, width: 2, height: 2}}), bU = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function (t, e) {
                if (!H.node && e.getDom()) {
                    var n, i = t.getComponent("tooltip"),
                        r = this._renderMode = "auto" === (n = i.get("renderMode")) ? H.domSupported ? "html" : "richText" : n || "html";
                    this._tooltipContent = "richText" === r ? new SU(e) : new vU(e.getDom(), e, {appendToBody: i.get("appendToBody", !0)})
                }
            }, e.prototype.render = function (t, e, n) {
                if (!H.node && n.getDom()) {
                    this.group.removeAll(), this._tooltipModel = t, this._ecModel = e, this._api = n;
                    var i = this._tooltipContent;
                    i.update(t), i.setEnterable(t.get("enterable")), this._initGlobalListener(), this._keepShow(), "richText" !== this._renderMode && t.get("transitionDuration") ? $m(this, "_updatePosition", 50, "fixRate") : Jm(this, "_updatePosition")
                }
            }, e.prototype._initGlobalListener = function () {
                var t = this._tooltipModel.get("triggerOn");
                rB("itemTooltip", this._api, xt((function (e, n, i) {
                    "none" !== t && (t.indexOf(e) >= 0 ? this._tryShow(n, i) : "leave" === e && this._hide(i))
                }), this))
            }, e.prototype._keepShow = function () {
                var t = this._tooltipModel, e = this._ecModel, n = this._api, i = t.get("triggerOn");
                if (null != this._lastX && null != this._lastY && "none" !== i && "click" !== i) {
                    var r = this;
                    clearTimeout(this._refreshUpdateTimeout), this._refreshUpdateTimeout = setTimeout((function () {
                        !n.isDisposed() && r.manuallyShowTip(t, e, n, {
                            x: r._lastX,
                            y: r._lastY,
                            dataByCoordSys: r._lastDataByCoordSys
                        })
                    }))
                }
            }, e.prototype.manuallyShowTip = function (t, e, n, i) {
                if (i.from !== this.uid && !H.node && n.getDom()) {
                    var r = EU(i, n);
                    this._ticket = "";
                    var o = i.dataByCoordSys, a = function (t, e, n) {
                        var i = fa(t).queryOptionMap, r = i.keys()[0];
                        if (!r || "series" === r) return;
                        var o = ya(e, r, i.get(r), {useDefault: !1, enableAll: !1, enableNone: !1}), a = o.models[0];
                        if (!a) return;
                        var s, l = n.getViewOfComponentModel(a);
                        if (l.group.traverse((function (e) {
                            var n = Hl(e).tooltipConfig;
                            if (n && n.name === t.name) return s = e, !0
                        })), s) return {componentMainType: r, componentIndex: a.componentIndex, el: s}
                    }(i, e, n);
                    if (a) {
                        var s = a.el.getBoundingRect().clone();
                        s.applyTransform(a.el.transform), this._tryShow({
                            offsetX: s.x + s.width / 2,
                            offsetY: s.y + s.height / 2,
                            target: a.el,
                            position: i.position,
                            positionDefault: "bottom"
                        }, r)
                    } else if (i.tooltip && null != i.x && null != i.y) {
                        var l = AU;
                        l.x = i.x, l.y = i.y, l.update(), Hl(l).tooltipConfig = {
                            name: null,
                            option: i.tooltip
                        }, this._tryShow({offsetX: i.x, offsetY: i.y, target: l}, r)
                    } else if (o) this._tryShow({
                        offsetX: i.x,
                        offsetY: i.y,
                        position: i.position,
                        dataByCoordSys: o,
                        tooltipOption: i.tooltipOption
                    }, r); else if (null != i.seriesIndex) {
                        if (this._manuallyAxisShowTip(t, e, n, i)) return;
                        var u = cB(i, e), c = u.point[0], h = u.point[1];
                        null != c && null != h && this._tryShow({
                            offsetX: c,
                            offsetY: h,
                            target: u.el,
                            position: i.position,
                            positionDefault: "bottom"
                        }, r)
                    } else null != i.x && null != i.y && (n.dispatchAction({
                        type: "updateAxisPointer",
                        x: i.x,
                        y: i.y
                    }), this._tryShow({
                        offsetX: i.x,
                        offsetY: i.y,
                        position: i.position,
                        target: n.getZr().findHover(i.x, i.y).target
                    }, r))
                }
            }, e.prototype.manuallyHideTip = function (t, e, n, i) {
                var r = this._tooltipContent;
                this._tooltipModel && r.hideLater(this._tooltipModel.get("hideDelay")), this._lastX = this._lastY = this._lastDataByCoordSys = null, i.from !== this.uid && this._hide(EU(i, n))
            }, e.prototype._manuallyAxisShowTip = function (t, e, n, i) {
                var r = i.seriesIndex, o = i.dataIndex, a = e.getComponent("axisPointer").coordSysAxesInfo;
                if (null != r && null != o && null != a) {
                    var s = e.getSeriesByIndex(r);
                    if (s) if ("axis" === IU([s.getData().getItemModel(o), s, (s.coordinateSystem || {}).model], this._tooltipModel).get("trigger")) return n.dispatchAction({
                        type: "updateAxisPointer",
                        seriesIndex: r,
                        dataIndex: o,
                        position: i.position
                    }), !0
                }
            }, e.prototype._tryShow = function (t, e) {
                var n = t.target;
                if (this._tooltipModel) {
                    this._lastX = t.offsetX, this._lastY = t.offsetY;
                    var i = t.dataByCoordSys;
                    if (i && i.length) this._showAxisTooltip(i, t); else if (n) {
                        var r, o;
                        this._lastDataByCoordSys = null, Wy(n, (function (t) {
                            return null != Hl(t).dataIndex ? (r = t, !0) : null != Hl(t).tooltipConfig ? (o = t, !0) : void 0
                        }), !0), r ? this._showSeriesItemTooltip(t, r, e) : o ? this._showComponentItemTooltip(t, o, e) : this._hide(e)
                    } else this._lastDataByCoordSys = null, this._hide(e)
                }
            }, e.prototype._showOrMove = function (t, e) {
                var n = t.get("showDelay");
                e = xt(e, this), clearTimeout(this._showTimout), n > 0 ? this._showTimout = setTimeout(e, n) : e()
            }, e.prototype._showAxisTooltip = function (t, e) {
                var n = this._ecModel, i = this._tooltipModel, r = [e.offsetX, e.offsetY], o = IU([e.tooltipOption], i),
                    a = this._renderMode, s = [], l = hf("section", {blocks: [], noHeader: !0}), u = [], c = new Sf;
                mt(t, (function (t) {
                    mt(t.dataByAxis, (function (t) {
                        var e = n.getComponent(t.axisDim + "Axis", t.axisIndex), r = t.value;
                        if (e && null != r) {
                            var o = WG(r, e.axis, n, t.seriesDataIndices, t.valueLabelOpt),
                                h = hf("section", {header: o, noHeader: !Ht(o), sortBlocks: !0, blocks: []});
                            l.blocks.push(h), mt(t.seriesDataIndices, (function (l) {
                                var d = n.getSeriesByIndex(l.seriesIndex), p = l.dataIndexInside,
                                    f = d.getDataParams(p);
                                if (!(f.dataIndex < 0)) {
                                    f.axisDim = t.axisDim, f.axisIndex = t.axisIndex, f.axisType = t.axisType, f.axisId = t.axisId, f.axisValue = FI(e.axis, {value: r}), f.axisValueLabel = o, f.marker = c.makeTooltipMarker("item", bh(f.color), a);
                                    var g = Ap(d.formatTooltip(p, !0, null)), m = g.frag;
                                    if (m) {
                                        var y = IU([d], i).get("valueFormatter");
                                        h.blocks.push(y ? ht({valueFormatter: y}, m) : m)
                                    }
                                    g.text && u.push(g.text), s.push(f)
                                }
                            }))
                        }
                    }))
                })), l.blocks.reverse(), u.reverse();
                var h = e.position, d = o.get("order"), p = yf(l, c, a, d, n.get("useUTC"), o.get("textStyle"));
                p && u.unshift(p);
                var f = "richText" === a ? "\n\n" : "<br/>", g = u.join(f);
                this._showOrMove(o, (function () {
                    this._updateContentNotChangedOnAxis(t, s) ? this._updatePosition(o, h, r[0], r[1], this._tooltipContent, s) : this._showTooltipContent(o, g, s, Math.random() + "", r[0], r[1], h, null, c)
                }))
            }, e.prototype._showSeriesItemTooltip = function (t, e, n) {
                var i = this._ecModel, r = Hl(e), o = r.seriesIndex, a = i.getSeriesByIndex(o), s = r.dataModel || a,
                    l = r.dataIndex, u = r.dataType, c = s.getData(u), h = this._renderMode, d = t.positionDefault,
                    p = IU([c.getItemModel(l), s, a && (a.coordinateSystem || {}).model], this._tooltipModel, d ? {position: d} : null),
                    f = p.get("trigger");
                if (null == f || "item" === f) {
                    var g = s.getDataParams(l, u), m = new Sf;
                    g.marker = m.makeTooltipMarker("item", bh(g.color), h);
                    var y = Ap(s.formatTooltip(l, !1, u)), v = p.get("order"), _ = p.get("valueFormatter"), T = y.frag,
                        x = T ? yf(_ ? ht({valueFormatter: _}, T) : T, m, h, v, i.get("useUTC"), p.get("textStyle")) : y.text,
                        S = "item_" + s.name + "_" + l;
                    this._showOrMove(p, (function () {
                        this._showTooltipContent(p, x, g, S, t.offsetX, t.offsetY, t.position, t.target, m)
                    })), n({
                        type: "showTip",
                        dataIndexInside: l,
                        dataIndex: c.getRawIndex(l),
                        seriesIndex: o,
                        from: this.uid
                    })
                }
            }, e.prototype._showComponentItemTooltip = function (t, e, n) {
                var i = Hl(e), r = i.tooltipConfig.option || {};
                if (It(r)) {
                    r = {content: r, formatter: r}
                }
                var o = [r], a = this._ecModel.getComponent(i.componentMainType, i.componentIndex);
                a && o.push(a), o.push({formatter: r.content});
                var s = t.positionDefault, l = IU(o, this._tooltipModel, s ? {position: s} : null),
                    u = l.get("content"), c = Math.random() + "", h = new Sf;
                this._showOrMove(l, (function () {
                    var n = lt(l.get("formatterParams") || {});
                    this._showTooltipContent(l, u, n, c, t.offsetX, t.offsetY, t.position, e, h)
                })), n({type: "showTip", from: this.uid})
            }, e.prototype._showTooltipContent = function (t, e, n, i, r, o, a, s, l) {
                if (this._ticket = "", t.get("showContent") && t.get("show")) {
                    var u = this._tooltipContent;
                    u.setEnterable(t.get("enterable"));
                    var c = t.get("formatter");
                    a = a || t.get("position");
                    var h = e, d = this._getNearestPoint([r, o], n, t.get("trigger"), t.get("borderColor")).color;
                    if (c) if (It(c)) {
                        var p = t.ecModel.get("useUTC"), f = At(n) ? n[0] : n;
                        h = c, f && f.axisType && f.axisType.indexOf("time") >= 0 && (h = th(f.axisValue, h, p)), h = Ah(h, n, !0)
                    } else if (bt(c)) {
                        var g = xt((function (e, i) {
                            e === this._ticket && (u.setContent(i, l, t, d, a), this._updatePosition(t, a, r, o, u, n, s))
                        }), this);
                        this._ticket = i, h = c(n, i, g)
                    } else h = c;
                    u.setContent(h, l, t, d, a), u.show(t, d), this._updatePosition(t, a, r, o, u, n, s)
                }
            }, e.prototype._getNearestPoint = function (t, e, n, i) {
                return "axis" === n || At(e) ? {color: i || ("html" === this._renderMode ? "#fff" : "none")} : At(e) ? void 0 : {color: i || e.color || e.borderColor}
            }, e.prototype._updatePosition = function (t, e, n, i, r, o, a) {
                var s = this._api.getWidth(), l = this._api.getHeight();
                e = e || t.get("position");
                var u = r.getSize(), c = t.get("align"), h = t.get("verticalAlign"),
                    d = a && a.getBoundingRect().clone();
                if (a && d.applyTransform(a.transform), bt(e) && (e = e([n, i], o, r.el, d, {
                    viewSize: [s, l],
                    contentSize: u.slice()
                })), At(e)) n = wo(e[0], s), i = wo(e[1], l); else if (Dt(e)) {
                    var p = e;
                    p.width = u[0], p.height = u[1];
                    var f = Nh(p, {width: s, height: l});
                    n = f.x, i = f.y, c = null, h = null
                } else if (It(e) && a) {
                    var g = function (t, e, n, i) {
                        var r = n[0], o = n[1], a = Math.ceil(Math.SQRT2 * i) + 8, s = 0, l = 0, u = e.width,
                            c = e.height;
                        switch (t) {
                            case"inside":
                                s = e.x + u / 2 - r / 2, l = e.y + c / 2 - o / 2;
                                break;
                            case"top":
                                s = e.x + u / 2 - r / 2, l = e.y - o - a;
                                break;
                            case"bottom":
                                s = e.x + u / 2 - r / 2, l = e.y + c + a;
                                break;
                            case"left":
                                s = e.x - r - a, l = e.y + c / 2 - o / 2;
                                break;
                            case"right":
                                s = e.x + u + a, l = e.y + c / 2 - o / 2
                        }
                        return [s, l]
                    }(e, d, u, t.get("borderWidth"));
                    n = g[0], i = g[1]
                } else {
                    g = function (t, e, n, i, r, o, a) {
                        var s = n.getSize(), l = s[0], u = s[1];
                        null != o && (t + l + o + 2 > i ? t -= l + o : t += o);
                        null != a && (e + u + a > r ? e -= u + a : e += a);
                        return [t, e]
                    }(n, i, r, s, l, c ? null : 20, h ? null : 20);
                    n = g[0], i = g[1]
                }
                if (c && (n -= CU(c) ? u[0] / 2 : "right" === c ? u[0] : 0), h && (i -= CU(h) ? u[1] / 2 : "bottom" === h ? u[1] : 0), sU(t)) {
                    g = function (t, e, n, i, r) {
                        var o = n.getSize(), a = o[0], s = o[1];
                        return t = Math.min(t + a, i) - a, e = Math.min(e + s, r) - s, t = Math.max(t, 0), e = Math.max(e, 0), [t, e]
                    }(n, i, r, s, l);
                    n = g[0], i = g[1]
                }
                r.moveTo(n, i)
            }, e.prototype._updateContentNotChangedOnAxis = function (t, e) {
                var n = this._lastDataByCoordSys, i = this._cbParamsList, r = !!n && n.length === t.length;
                return r && mt(n, (function (n, o) {
                    var a = n.dataByAxis || [], s = (t[o] || {}).dataByAxis || [];
                    (r = r && a.length === s.length) && mt(a, (function (t, n) {
                        var o = s[n] || {}, a = t.seriesDataIndices || [], l = o.seriesDataIndices || [];
                        (r = r && t.value === o.value && t.axisType === o.axisType && t.axisId === o.axisId && a.length === l.length) && mt(a, (function (t, e) {
                            var n = l[e];
                            r = r && t.seriesIndex === n.seriesIndex && t.dataIndex === n.dataIndex
                        })), i && mt(t.seriesDataIndices, (function (t) {
                            var n = t.seriesIndex, o = e[n], a = i[n];
                            o && a && a.data !== o.data && (r = !1)
                        }))
                    }))
                })), this._lastDataByCoordSys = t, this._cbParamsList = e, !!r
            }, e.prototype._hide = function (t) {
                this._lastDataByCoordSys = null, t({type: "hideTip", from: this.uid})
            }, e.prototype.dispose = function (t, e) {
                !H.node && e.getDom() && (Jm(this, "_updatePosition"), this._tooltipContent.dispose(), sB("itemTooltip", e))
            }, e.type = "tooltip", e
        }(Gf);

        function IU(t, e, n) {
            var i, r = e.ecModel;
            n ? (i = new wc(n, r, r), i = new wc(e.option, i, r)) : i = e;
            for (var o = t.length - 1; o >= 0; o--) {
                var a = t[o];
                a && (a instanceof wc && (a = a.get("tooltip", !0)), It(a) && (a = {formatter: a}), a && (i = new wc(a, i, r)))
            }
            return i
        }

        function EU(t, e) {
            return t.dispatchAction || xt(e.dispatchAction, e)
        }

        function CU(t) {
            return "center" === t || "middle" === t
        }

        const DU = bU;
        var wU = ["rect", "polygon", "keep", "clear"];

        function MU(t, e) {
            var n = Jo(t ? t.brush : []);
            if (n.length) {
                var i = [];
                mt(n, (function (t) {
                    var e = t.hasOwnProperty("toolbox") ? t.toolbox : [];
                    e instanceof Array && (i = i.concat(e))
                }));
                var r = t && t.toolbox;
                At(r) && (r = r[0]), r || (r = {feature: {}}, t.toolbox = [r]);
                var o = r.feature || (r.feature = {}), a = o.brush || (o.brush = {}), s = a.type || (a.type = []);
                s.push.apply(s, i), function (t) {
                    var e = {};
                    mt(t, (function (t) {
                        e[t] = 1
                    })), t.length = 0, mt(e, (function (e, n) {
                        t.push(n)
                    }))
                }(s), e && !s.length && s.push.apply(s, wU)
            }
        }

        var NU = mt;

        function OU(t) {
            if (t) for (var e in t) if (t.hasOwnProperty(e)) return !0
        }

        function LU(t, e, n) {
            var i = {};
            return NU(e, (function (e) {
                var r, o = i[e] = ((r = function () {
                }).prototype.__hidden = r.prototype, new r);
                NU(t[e], (function (t, i) {
                    if (MM.isValidType(i)) {
                        var r = {type: i, visual: t};
                        n && n(r, e), o[i] = new MM(r), "opacity" === i && ((r = lt(r)).type = "colorAlpha", o.__hidden.__alphaForOpacity = new MM(r))
                    }
                }))
            })), i
        }

        function RU(t, e, n) {
            var i;
            mt(n, (function (t) {
                e.hasOwnProperty(t) && OU(e[t]) && (i = !0)
            })), i && mt(n, (function (n) {
                e.hasOwnProperty(n) && OU(e[n]) ? t[n] = lt(e[n]) : delete t[n]
            }))
        }

        var kU = {
            lineX: PU(0), lineY: PU(1), rect: {
                point: function (t, e, n) {
                    return t && n.boundingRect.contain(t[0], t[1])
                }, rect: function (t, e, n) {
                    return t && n.boundingRect.intersect(t)
                }
            }, polygon: {
                point: function (t, e, n) {
                    return t && n.boundingRect.contain(t[0], t[1]) && KC(n.range, t[0], t[1])
                }, rect: function (t, e, n) {
                    var i = n.range;
                    if (!t || i.length <= 1) return !1;
                    var r = t.x, o = t.y, a = t.width, s = t.height, l = i[0];
                    return !!(KC(i, r, o) || KC(i, r + a, o) || KC(i, r, o + s) || KC(i, r + a, o + s) || hn.create(t).contain(l[0], l[1]) || Lm(r, o, r + a, o, i) || Lm(r, o, r, o + s, i) || Lm(r + a, o, r + a, o + s, i) || Lm(r, o + s, r + a, o + s, i)) || void 0
                }
            }
        };

        function PU(t) {
            var e = ["x", "y"], n = ["width", "height"];
            return {
                point: function (e, n, i) {
                    if (e) {
                        var r = i.range;
                        return GU(e[t], r)
                    }
                }, rect: function (i, r, o) {
                    if (i) {
                        var a = o.range, s = [i[e[t]], i[e[t]] + i[n[t]]];
                        return s[1] < s[0] && s.reverse(), GU(s[0], a) || GU(s[1], a) || GU(a[0], s) || GU(a[1], s)
                    }
                }
            }
        }

        function GU(t, e) {
            return e[0] <= t && t <= e[1]
        }

        var BU = ["inBrush", "outOfBrush"], FU = "__ecBrushSelect", HU = "__ecInBrushSelectEvent";

        function UU(t) {
            t.eachComponent({mainType: "brush"}, (function (e) {
                (e.brushTargetManager = new QH(e.option, t)).setInputRanges(e.areas, t)
            }))
        }

        function VU(t, e, n) {
            var i, r, o = [];
            t.eachComponent({mainType: "brush"}, (function (t) {
                n && "takeGlobalCursor" === n.type && t.setBrushOption("brush" === n.key ? n.brushOption : {brushType: !1})
            })), UU(t), t.eachComponent({mainType: "brush"}, (function (e, n) {
                var a = {brushId: e.id, brushIndex: n, brushName: e.name, areas: lt(e.areas), selected: []};
                o.push(a);
                var s = e.option, l = s.brushLink, u = [], c = [], h = [], d = !1;
                n || (i = s.throttleType, r = s.throttleDelay);
                var p = yt(e.areas, (function (t) {
                    var e = YU[t.brushType], n = dt({boundingRect: e ? e(t) : void 0}, t);
                    return n.selectors = function (t) {
                        var e = t.brushType, n = {
                            point: function (i) {
                                return kU[e].point(i, n, t)
                            }, rect: function (i) {
                                return kU[e].rect(i, n, t)
                            }
                        };
                        return n
                    }(n), n
                })), f = LU(e.option, BU, (function (t) {
                    t.mappingMethod = "fixed"
                }));

                function g(t) {
                    return "all" === l || !!u[t]
                }

                function m(t) {
                    return !!t.length
                }

                At(l) && mt(l, (function (t) {
                    u[t] = 1
                })), t.eachSeries((function (n, i) {
                    var r = h[i] = [];
                    "parallel" === n.subType ? function (t, e) {
                        var n = t.coordinateSystem;
                        d = d || n.hasAxisBrushed(), g(e) && n.eachActiveState(t.getData(), (function (t, e) {
                            "active" === t && (c[e] = 1)
                        }))
                    }(n, i) : function (n, i, r) {
                        if (!n.brushSelector || function (t, e) {
                            var n = t.option.seriesIndex;
                            return null != n && "all" !== n && (At(n) ? pt(n, e) < 0 : e !== n)
                        }(e, i)) return;
                        if (mt(p, (function (i) {
                            e.brushTargetManager.controlSeries(i, n, t) && r.push(i), d = d || m(r)
                        })), g(i) && m(r)) {
                            var o = n.getData();
                            o.each((function (t) {
                                WU(n, r, o, t) && (c[t] = 1)
                            }))
                        }
                    }(n, i, r)
                })), t.eachSeries((function (t, e) {
                    var n = {seriesId: t.id, seriesIndex: e, seriesName: t.name, dataIndex: []};
                    a.selected.push(n);
                    var i = h[e], r = t.getData(), o = g(e) ? function (t) {
                        return c[t] ? (n.dataIndex.push(r.getRawIndex(t)), "inBrush") : "outOfBrush"
                    } : function (e) {
                        return WU(t, i, r, e) ? (n.dataIndex.push(r.getRawIndex(e)), "inBrush") : "outOfBrush"
                    };
                    (g(e) ? d : m(i)) && function (t, e, n, i, r, o) {
                        var a, s = {};

                        function l(t) {
                            return Fy(n, a, t)
                        }

                        function u(t, e) {
                            Uy(n, a, t, e)
                        }

                        function c(t, c) {
                            a = null == o ? t : c;
                            var h = n.getRawDataItem(a);
                            if (!h || !1 !== h.visualMap) for (var d = i.call(r, t), p = e[d], f = s[d], g = 0, m = f.length; g < m; g++) {
                                var y = f[g];
                                p[y] && p[y].applyVisual(t, l, u)
                            }
                        }

                        mt(t, (function (t) {
                            var n = MM.prepareVisualTypes(e[t]);
                            s[t] = n
                        })), null == o ? n.each(c) : n.each([o], c)
                    }(BU, f, r, o)
                }))
            })), function (t, e, n, i, r) {
                if (!r) return;
                var o = t.getZr();
                if (o[HU]) return;
                o[FU] || (o[FU] = zU);
                var a = $m(o, FU, n, e);
                a(t, i)
            }(e, i, r, o, n)
        }

        function zU(t, e) {
            if (!t.isDisposed()) {
                var n = t.getZr();
                n[HU] = !0, t.dispatchAction({type: "brushSelect", batch: e}), n[HU] = !1
            }
        }

        function WU(t, e, n, i) {
            for (var r = 0, o = e.length; r < o; r++) {
                var a = e[r];
                if (t.brushSelector(i, n, a.selectors, a)) return !0
            }
        }

        var YU = {
            rect: function (t) {
                return qU(t.range)
            }, polygon: function (t) {
                for (var e, n = t.range, i = 0, r = n.length; i < r; i++) {
                    e = e || [[1 / 0, -1 / 0], [1 / 0, -1 / 0]];
                    var o = n[i];
                    o[0] < e[0][0] && (e[0][0] = o[0]), o[0] > e[0][1] && (e[0][1] = o[0]), o[1] < e[1][0] && (e[1][0] = o[1]), o[1] > e[1][1] && (e[1][1] = o[1])
                }
                return e && qU(e)
            }
        };

        function qU(t) {
            return new hn(t[0][0], t[1][0], t[0][1] - t[0][0], t[1][1] - t[1][0])
        }

        const jU = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function (t, e) {
                this.ecModel = t, this.api = e, this.model, (this._brushController = new YL(e.getZr())).on("brush", xt(this._onBrush, this)).mount()
            }, e.prototype.render = function (t, e, n, i) {
                this.model = t, this._updateController(t, e, n, i)
            }, e.prototype.updateTransform = function (t, e, n, i) {
                UU(e), this._updateController(t, e, n, i)
            }, e.prototype.updateVisual = function (t, e, n, i) {
                this.updateTransform(t, e, n, i)
            }, e.prototype.updateView = function (t, e, n, i) {
                this._updateController(t, e, n, i)
            }, e.prototype._updateController = function (t, e, n, i) {
                (!i || i.$from !== t.id) && this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())
            }, e.prototype.dispose = function () {
                this._brushController.dispose()
            }, e.prototype._onBrush = function (t) {
                var e = this.model.id, n = this.model.brushTargetManager.setOutputRanges(t.areas, this.ecModel);
                (!t.isEnd || t.removeOnClick) && this.api.dispatchAction({
                    type: "brush",
                    brushId: e,
                    areas: lt(n),
                    $from: e
                }), t.isEnd && this.api.dispatchAction({type: "brushEnd", brushId: e, areas: lt(n), $from: e})
            }, e.type = "brush", e
        }(Gf);

        function XU(t, e) {
            return ut({
                brushType: t.brushType,
                brushMode: t.brushMode,
                transformable: t.transformable,
                brushStyle: new wc(t.brushStyle).getItemStyle(),
                removeOnClick: t.removeOnClick,
                z: t.z
            }, e, !0)
        }

        const ZU = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.areas = [], n.brushOption = {}, n
            }

            return G(e, t), e.prototype.optionUpdated = function (t, e) {
                var n = this.option;
                !e && RU(n, t, ["inBrush", "outOfBrush"]);
                var i = n.inBrush = n.inBrush || {};
                n.outOfBrush = n.outOfBrush || {color: "#ddd"}, i.hasOwnProperty("liftZ") || (i.liftZ = 5)
            }, e.prototype.setAreas = function (t) {
                t && (this.areas = yt(t, (function (t) {
                    return XU(this.option, t)
                }), this))
            }, e.prototype.setBrushOption = function (t) {
                this.brushOption = XU(this.option, t), this.brushType = this.brushOption.brushType
            }, e.type = "brush", e.dependencies = ["geo", "grid", "xAxis", "yAxis", "parallel", "series"], e.defaultOption = {
                seriesIndex: "all",
                brushType: "rect",
                brushMode: "single",
                transformable: !0,
                brushStyle: {borderWidth: 1, color: "rgba(210,219,238,0.3)", borderColor: "#D2DBEE"},
                throttleType: "fixRate",
                throttleDelay: 0,
                removeOnClick: !0,
                z: 1e4
            }, e
        }(Fh);
        var KU = ["rect", "polygon", "lineX", "lineY", "keep", "clear"];
        const QU = function (t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                var i, r, o;
                e.eachComponent({mainType: "brush"}, (function (t) {
                    i = t.brushType, r = t.brushOption.brushMode || "single", o = o || !!t.areas.length
                })), this._brushType = i, this._brushMode = r, mt(t.get("type", !0), (function (e) {
                    t.setIconStatus(e, ("keep" === e ? "multiple" === r : "clear" === e ? o : e === i) ? "emphasis" : "normal")
                }))
            }, e.prototype.updateView = function (t, e, n) {
                this.render(t, e, n)
            }, e.prototype.getIcons = function () {
                var t = this.model, e = t.get("icon", !0), n = {};
                return mt(t.get("type", !0), (function (t) {
                    e[t] && (n[t] = e[t])
                })), n
            }, e.prototype.onclick = function (t, e, n) {
                var i = this._brushType, r = this._brushMode;
                "clear" === n ? (e.dispatchAction({
                    type: "axisAreaSelect",
                    intervals: []
                }), e.dispatchAction({
                    type: "brush",
                    command: "clear",
                    areas: []
                })) : e.dispatchAction({
                    type: "takeGlobalCursor",
                    key: "brush",
                    brushOption: {
                        brushType: "keep" === n ? i : i !== n && n,
                        brushMode: "keep" === n ? "multiple" === r ? "single" : "multiple" : r
                    }
                })
            }, e.getDefaultOption = function (t) {
                return {
                    show: !0, type: KU.slice(), icon: {
                        rect: "M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",
                        polygon: "M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",
                        lineX: "M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",
                        lineY: "M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",
                        keep: "M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",
                        clear: "M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"
                    }, title: t.getLocaleModel().get(["toolbox", "brush", "title"])
                }
            }, e
        }(dH);
        var $U = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.layoutMode = {type: "box", ignoreSize: !0}, n
            }

            return G(e, t), e.type = "title", e.defaultOption = {
                z: 6,
                show: !0,
                text: "",
                target: "blank",
                subtext: "",
                subtarget: "blank",
                left: 0,
                top: 0,
                backgroundColor: "rgba(0,0,0,0)",
                borderColor: "#ccc",
                borderWidth: 0,
                padding: 5,
                itemGap: 10,
                textStyle: {fontSize: 18, fontWeight: "bold", color: "#464646"},
                subtextStyle: {fontSize: 12, color: "#6E7079"}
            }, e
        }(Fh), JU = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.render = function (t, e, n) {
                if (this.group.removeAll(), t.get("show")) {
                    var i = this.group, r = t.getModel("textStyle"), o = t.getModel("subtextStyle"),
                        a = t.get("textAlign"), s = kt(t.get("textBaseline"), t.get("textVerticalAlign")), l = new Fl({
                            style: oc(r, {text: t.get("text"), fill: r.getTextColor()}, {disableBox: !0}),
                            z2: 10
                        }), u = l.getBoundingRect(), c = t.get("subtext"), h = new Fl({
                            style: oc(o, {
                                text: c,
                                fill: o.getTextColor(),
                                y: u.height + t.get("itemGap"),
                                verticalAlign: "top"
                            }, {disableBox: !0}), z2: 10
                        }), d = t.get("link"), p = t.get("sublink"), f = t.get("triggerEvent", !0);
                    l.silent = !d && !f, h.silent = !p && !f, d && l.on("click", (function () {
                        Ih(d, "_" + t.get("target"))
                    })), p && h.on("click", (function () {
                        Ih(p, "_" + t.get("subtarget"))
                    })), Hl(l).eventData = Hl(h).eventData = f ? {
                        componentType: "title",
                        componentIndex: t.componentIndex
                    } : null, i.add(l), c && i.add(h);
                    var g = i.getBoundingRect(), m = t.getBoxLayoutParams();
                    m.width = g.width, m.height = g.height;
                    var y = Nh(m, {width: n.getWidth(), height: n.getHeight()}, t.get("padding"));
                    a || ("middle" === (a = t.get("left") || t.get("right")) && (a = "center"), "right" === a ? y.x += y.width : "center" === a && (y.x += y.width / 2)), s || ("center" === (s = t.get("top") || t.get("bottom")) && (s = "middle"), "bottom" === s ? y.y += y.height : "middle" === s && (y.y += y.height / 2), s = s || "top"), i.x = y.x, i.y = y.y, i.markRedraw();
                    var v = {align: a, verticalAlign: s};
                    l.setStyle(v), h.setStyle(v), g = i.getBoundingRect();
                    var _ = y.margin, T = t.getItemStyle(["color", "opacity"]);
                    T.fill = t.get("backgroundColor");
                    var x = new Al({
                        shape: {
                            x: g.x - _[3],
                            y: g.y - _[0],
                            width: g.width + _[1] + _[3],
                            height: g.height + _[0] + _[2],
                            r: t.get("borderRadius")
                        }, style: T, subPixelOptimize: !0, silent: !0
                    });
                    i.add(x)
                }
            }, e.type = "title", e
        }(Gf);
        var tV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.layoutMode = "box", n
            }

            return G(e, t), e.prototype.init = function (t, e, n) {
                this.mergeDefaultAndTheme(t, n), this._initData()
            }, e.prototype.mergeOption = function (e) {
                t.prototype.mergeOption.apply(this, arguments), this._initData()
            }, e.prototype.setCurrentIndex = function (t) {
                null == t && (t = this.option.currentIndex);
                var e = this._data.count();
                this.option.loop ? t = (t % e + e) % e : (t >= e && (t = e - 1), t < 0 && (t = 0)), this.option.currentIndex = t
            }, e.prototype.getCurrentIndex = function () {
                return this.option.currentIndex
            }, e.prototype.isIndexMax = function () {
                return this.getCurrentIndex() >= this._data.count() - 1
            }, e.prototype.setPlayState = function (t) {
                this.option.autoPlay = !!t
            }, e.prototype.getPlayState = function () {
                return !!this.option.autoPlay
            }, e.prototype._initData = function () {
                var t, e = this.option, n = e.data || [], i = e.axisType, r = this._names = [];
                "category" === i ? (t = [], mt(n, (function (e, n) {
                    var i, o = sa(na(e), "");
                    Dt(e) ? (i = lt(e)).value = n : i = n, t.push(i), r.push(o)
                }))) : t = n;
                var o = {category: "ordinal", time: "time", value: "number"}[i] || "number";
                (this._data = new DS([{name: "value", type: o}], this)).initData(t, r)
            }, e.prototype.getData = function () {
                return this._data
            }, e.prototype.getCategories = function () {
                if ("category" === this.get("axisType")) return this._names.slice()
            }, e.type = "timeline", e.defaultOption = {
                z: 4,
                show: !0,
                axisType: "time",
                realtime: !0,
                left: "20%",
                top: null,
                right: "20%",
                bottom: 0,
                width: null,
                height: 40,
                padding: 5,
                controlPosition: "left",
                autoPlay: !1,
                rewind: !1,
                loop: !0,
                playInterval: 2e3,
                currentIndex: 0,
                itemStyle: {},
                label: {color: "#000"},
                data: []
            }, e
        }(Fh);
        const eV = tV;
        var nV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "timeline.slider", e.defaultOption = Oc(eV.defaultOption, {
                backgroundColor: "rgba(0,0,0,0)",
                borderColor: "#ccc",
                borderWidth: 0,
                orient: "horizontal",
                inverse: !1,
                tooltip: {trigger: "item"},
                symbol: "circle",
                symbolSize: 12,
                lineStyle: {show: !0, width: 2, color: "#DAE1F5"},
                label: {position: "auto", show: !0, interval: "auto", rotate: 0, color: "#A4B1D7"},
                itemStyle: {color: "#A4B1D7", borderWidth: 1},
                checkpointStyle: {
                    symbol: "circle",
                    symbolSize: 15,
                    color: "#316bf3",
                    borderColor: "#fff",
                    borderWidth: 2,
                    shadowBlur: 2,
                    shadowOffsetX: 1,
                    shadowOffsetY: 1,
                    shadowColor: "rgba(0, 0, 0, 0.3)",
                    animation: !0,
                    animationDuration: 300,
                    animationEasing: "quinticInOut"
                },
                controlStyle: {
                    show: !0,
                    showPlayBtn: !0,
                    showPrevBtn: !0,
                    showNextBtn: !0,
                    itemSize: 24,
                    itemGap: 12,
                    position: "left",
                    playIcon: "path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",
                    stopIcon: "path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",
                    nextIcon: "M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",
                    prevIcon: "M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",
                    prevBtnSize: 18,
                    nextBtnSize: 18,
                    color: "#A4B1D7",
                    borderColor: "#A4B1D7",
                    borderWidth: 1
                },
                emphasis: {
                    label: {show: !0, color: "#6f778d"},
                    itemStyle: {color: "#316BF3"},
                    controlStyle: {color: "#316BF3", borderColor: "#316BF3", borderWidth: 2}
                },
                progress: {lineStyle: {color: "#316BF3"}, itemStyle: {color: "#316BF3"}, label: {color: "#6f778d"}},
                data: []
            }), e
        }(eV);
        ft(nV, Sp.prototype);
        const iV = nV;
        const rV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "timeline", e
        }(Gf);
        var oV = function (t) {
            function e(e, n, i, r) {
                var o = t.call(this, e, n, i) || this;
                return o.type = r || "value", o
            }

            return G(e, t), e.prototype.getLabelModel = function () {
                return this.model.getModel("label")
            }, e.prototype.isHorizontal = function () {
                return "horizontal" === this.model.get("orient")
            }, e
        }(sE);
        const aV = oV;
        var sV = Math.PI, lV = ha(), uV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function (t, e) {
                this.api = e
            }, e.prototype.render = function (t, e, n) {
                if (this.model = t, this.api = n, this.ecModel = e, this.group.removeAll(), t.get("show", !0)) {
                    var i = this._layout(t, n), r = this._createGroup("_mainGroup"),
                        o = this._createGroup("_labelGroup"), a = this._axis = this._createAxis(i, t);
                    t.formatTooltip = function (t) {
                        return hf("nameValue", {noName: !0, value: a.scale.getLabel({value: t})})
                    }, mt(["AxisLine", "AxisTick", "Control", "CurrentPointer"], (function (e) {
                        this["_render" + e](i, r, a, t)
                    }), this), this._renderAxisLabel(i, o, a, t), this._position(i, t)
                }
                this._doPlayStop(), this._updateTicksStatus()
            }, e.prototype.remove = function () {
                this._clearTimer(), this.group.removeAll()
            }, e.prototype.dispose = function () {
                this._clearTimer()
            }, e.prototype._layout = function (t, e) {
                var n, i, r, o, a = t.get(["label", "position"]), s = t.get("orient"), l = function (t, e) {
                        return Nh(t.getBoxLayoutParams(), {width: e.getWidth(), height: e.getHeight()}, t.get("padding"))
                    }(t, e), u = {
                        horizontal: "center",
                        vertical: (n = null == a || "auto" === a ? "horizontal" === s ? l.y + l.height / 2 < e.getHeight() / 2 ? "-" : "+" : l.x + l.width / 2 < e.getWidth() / 2 ? "+" : "-" : It(a) ? {
                            horizontal: {
                                top: "-",
                                bottom: "+"
                            }, vertical: {left: "-", right: "+"}
                        }[s][a] : a) >= 0 || "+" === n ? "left" : "right"
                    }, c = {horizontal: n >= 0 || "+" === n ? "top" : "bottom", vertical: "middle"},
                    h = {horizontal: 0, vertical: sV / 2}, d = "vertical" === s ? l.height : l.width,
                    p = t.getModel("controlStyle"), f = p.get("show", !0), g = f ? p.get("itemSize") : 0,
                    m = f ? p.get("itemGap") : 0, y = g + m, v = t.get(["label", "rotate"]) || 0;
                v = v * sV / 180;
                var _ = p.get("position", !0), T = f && p.get("showPlayBtn", !0), x = f && p.get("showPrevBtn", !0),
                    S = f && p.get("showNextBtn", !0), A = 0, b = d;
                "left" === _ || "bottom" === _ ? (T && (i = [0, 0], A += y), x && (r = [A, 0], A += y), S && (o = [b - g, 0], b -= y)) : (T && (i = [b - g, 0], b -= y), x && (r = [0, 0], A += y), S && (o = [b - g, 0], b -= y));
                var I = [A, b];
                return t.get("inverse") && I.reverse(), {
                    viewRect: l,
                    mainLength: d,
                    orient: s,
                    rotation: h[s],
                    labelRotation: v,
                    labelPosOpt: n,
                    labelAlign: t.get(["label", "align"]) || u[s],
                    labelBaseline: t.get(["label", "verticalAlign"]) || t.get(["label", "baseline"]) || c[s],
                    playPosition: i,
                    prevBtnPosition: r,
                    nextBtnPosition: o,
                    axisExtent: I,
                    controlSize: g,
                    controlGap: m
                }
            }, e.prototype._position = function (t, e) {
                var n = this._mainGroup, i = this._labelGroup, r = t.viewRect;
                if ("vertical" === t.orient) {
                    var o = [1, 0, 0, 1, 0, 0], a = r.x, s = r.y + r.height;
                    Ze(o, o, [-a, -s]), Ke(o, o, -sV / 2), Ze(o, o, [a, s]), (r = r.clone()).applyTransform(o)
                }
                var l = m(r), u = m(n.getBoundingRect()), c = m(i.getBoundingRect()), h = [n.x, n.y], d = [i.x, i.y];
                d[0] = h[0] = l[0][0];
                var p, f = t.labelPosOpt;
                null == f || It(f) ? (y(h, u, l, 1, p = "+" === f ? 0 : 1), y(d, c, l, 1, 1 - p)) : (y(h, u, l, 1, p = f >= 0 ? 0 : 1), d[1] = h[1] + f);

                function g(t) {
                    t.originX = l[0][0] - t.x, t.originY = l[1][0] - t.y
                }

                function m(t) {
                    return [[t.x, t.x + t.width], [t.y, t.y + t.height]]
                }

                function y(t, e, n, i, r) {
                    t[i] += n[i][r] - e[i][r]
                }

                n.setPosition(h), i.setPosition(d), n.rotation = i.rotation = t.rotation, g(n), g(i)
            }, e.prototype._createAxis = function (t, e) {
                var n = e.getData(), i = e.get("axisType"), r = function (t, e) {
                    if (e = e || t.get("type"), e) switch (e) {
                        case"category":
                            return new aI({ordinalMeta: t.getCategories(), extent: [1 / 0, -1 / 0]});
                        case"time":
                            return new vI({locale: t.ecModel.getLocaleModel(), useUTC: t.ecModel.get("useUTC")});
                        default:
                            return new uI
                    }
                }(e, i);
                r.getTicks = function () {
                    return n.mapArray(["value"], (function (t) {
                        return {value: t}
                    }))
                };
                var o = n.getDataExtent("value");
                r.setExtent(o[0], o[1]), r.calcNiceTicks();
                var a = new aV("value", r, t.axisExtent, i);
                return a.model = e, a
            }, e.prototype._createGroup = function (t) {
                var e = this[t] = new xo;
                return this.group.add(e), e
            }, e.prototype._renderAxisLine = function (t, e, n, i) {
                var r = n.getExtent();
                if (i.get(["lineStyle", "show"])) {
                    var o = new Hg({
                        shape: {x1: r[0], y1: 0, x2: r[1], y2: 0},
                        style: ht({lineCap: "round"}, i.getModel("lineStyle").getLineStyle()),
                        silent: !0,
                        z2: 1
                    });
                    e.add(o);
                    var a = this._progressLine = new Hg({
                        shape: {
                            x1: r[0],
                            x2: this._currentPointer ? this._currentPointer.x : r[0],
                            y1: 0,
                            y2: 0
                        },
                        style: dt({
                            lineCap: "round",
                            lineWidth: o.style.lineWidth
                        }, i.getModel(["progress", "lineStyle"]).getLineStyle()),
                        silent: !0,
                        z2: 1
                    });
                    e.add(a)
                }
            }, e.prototype._renderAxisTick = function (t, e, n, i) {
                var r = this, o = i.getData(), a = n.scale.getTicks();
                this._tickSymbols = [], mt(a, (function (t) {
                    var a = n.dataToCoord(t.value), s = o.getItemModel(t.value), l = s.getModel("itemStyle"),
                        u = s.getModel(["emphasis", "itemStyle"]), c = s.getModel(["progress", "itemStyle"]),
                        h = {x: a, y: 0, onclick: xt(r._changeTimeline, r, t.value)}, d = cV(s, l, e, h);
                    d.ensureState("emphasis").style = u.getItemStyle(), d.ensureState("progress").style = c.getItemStyle(), Ru(d);
                    var p = Hl(d);
                    s.get("tooltip") ? (p.dataIndex = t.value, p.dataModel = i) : p.dataIndex = p.dataModel = null, r._tickSymbols.push(d)
                }))
            }, e.prototype._renderAxisLabel = function (t, e, n, i) {
                var r = this;
                if (n.getLabelModel().get("show")) {
                    var o = i.getData(), a = n.getViewLabels();
                    this._tickLabels = [], mt(a, (function (i) {
                        var a = i.tickValue, s = o.getItemModel(a), l = s.getModel("label"),
                            u = s.getModel(["emphasis", "label"]), c = s.getModel(["progress", "label"]),
                            h = n.dataToCoord(i.tickValue), d = new Fl({
                                x: h,
                                y: 0,
                                rotation: t.labelRotation - t.rotation,
                                onclick: xt(r._changeTimeline, r, a),
                                silent: !1,
                                style: oc(l, {text: i.formattedLabel, align: t.labelAlign, verticalAlign: t.labelBaseline})
                            });
                        d.ensureState("emphasis").style = oc(u), d.ensureState("progress").style = oc(c), e.add(d), Ru(d), lV(d).dataIndex = a, r._tickLabels.push(d)
                    }))
                }
            }, e.prototype._renderControl = function (t, e, n, i) {
                var r = t.controlSize, o = t.rotation, a = i.getModel("controlStyle").getItemStyle(),
                    s = i.getModel(["emphasis", "controlStyle"]).getItemStyle(), l = i.getPlayState(),
                    u = i.get("inverse", !0);

                function c(t, n, l, u) {
                    if (t) {
                        var c = ao(kt(i.get(["controlStyle", n + "BtnSize"]), r), r), h = function (t, e, n, i) {
                            var r = i.style,
                                o = Om(t.get(["controlStyle", e]), i || {}, new hn(n[0], n[1], n[2], n[3]));
                            r && o.setStyle(r);
                            return o
                        }(i, n + "Icon", [0, -c / 2, c, c], {
                            x: t[0],
                            y: t[1],
                            originX: r / 2,
                            originY: 0,
                            rotation: u ? -o : 0,
                            rectHover: !0,
                            style: a,
                            onclick: l
                        });
                        h.ensureState("emphasis").style = s, e.add(h), Ru(h)
                    }
                }

                c(t.nextBtnPosition, "next", xt(this._changeTimeline, this, u ? "-" : "+")), c(t.prevBtnPosition, "prev", xt(this._changeTimeline, this, u ? "+" : "-")), c(t.playPosition, l ? "stop" : "play", xt(this._handlePlayClick, this, !l), !0)
            }, e.prototype._renderCurrentPointer = function (t, e, n, i) {
                var r = i.getData(), o = i.getCurrentIndex(), a = r.getItemModel(o).getModel("checkpointStyle"),
                    s = this, l = {
                        onCreate: function (t) {
                            t.draggable = !0, t.drift = xt(s._handlePointerDrag, s), t.ondragend = xt(s._handlePointerDragend, s), hV(t, s._progressLine, o, n, i, !0)
                        }, onUpdate: function (t) {
                            hV(t, s._progressLine, o, n, i)
                        }
                    };
                this._currentPointer = cV(a, a, this._mainGroup, {}, this._currentPointer, l)
            }, e.prototype._handlePlayClick = function (t) {
                this._clearTimer(), this.api.dispatchAction({type: "timelinePlayChange", playState: t, from: this.uid})
            }, e.prototype._handlePointerDrag = function (t, e, n) {
                this._clearTimer(), this._pointerChangeTimeline([n.offsetX, n.offsetY])
            }, e.prototype._handlePointerDragend = function (t) {
                this._pointerChangeTimeline([t.offsetX, t.offsetY], !0)
            }, e.prototype._pointerChangeTimeline = function (t, e) {
                var n = this._toAxisCoord(t)[0], i = No(this._axis.getExtent().slice());
                n > i[1] && (n = i[1]), n < i[0] && (n = i[0]), this._currentPointer.x = n, this._currentPointer.markRedraw();
                var r = this._progressLine;
                r && (r.shape.x2 = n, r.dirty());
                var o = this._findNearestTick(n), a = this.model;
                (e || o !== a.getCurrentIndex() && a.get("realtime")) && this._changeTimeline(o)
            }, e.prototype._doPlayStop = function () {
                var t = this;
                this._clearTimer(), this.model.getPlayState() && (this._timer = setTimeout((function () {
                    var e = t.model;
                    t._changeTimeline(e.getCurrentIndex() + (e.get("rewind", !0) ? -1 : 1))
                }), this.model.get("playInterval")))
            }, e.prototype._toAxisCoord = function (t) {
                return Em(t, this._mainGroup.getLocalTransform(), !0)
            }, e.prototype._findNearestTick = function (t) {
                var e, n = this.model.getData(), i = 1 / 0, r = this._axis;
                return n.each(["value"], (function (n, o) {
                    var a = r.dataToCoord(n), s = Math.abs(a - t);
                    s < i && (i = s, e = o)
                })), e
            }, e.prototype._clearTimer = function () {
                this._timer && (clearTimeout(this._timer), this._timer = null)
            }, e.prototype._changeTimeline = function (t) {
                var e = this.model.getCurrentIndex();
                "+" === t ? t = e + 1 : "-" === t && (t = e - 1), this.api.dispatchAction({
                    type: "timelineChange",
                    currentIndex: t,
                    from: this.uid
                })
            }, e.prototype._updateTicksStatus = function () {
                var t = this.model.getCurrentIndex(), e = this._tickSymbols, n = this._tickLabels;
                if (e) for (var i = 0; i < e.length; i++) e && e[i] && e[i].toggleState("progress", i < t);
                if (n) for (i = 0; i < n.length; i++) n && n[i] && n[i].toggleState("progress", lV(n[i]).dataIndex <= t)
            }, e.type = "timeline.slider", e
        }(rV);

        function cV(t, e, n, i, r, o) {
            var a = e.get("color");
            r ? (r.setColor(a), n.add(r), o && o.onUpdate(r)) : ((r = iv(t.get("symbol"), -1, -1, 2, 2, a)).setStyle("strokeNoScale", !0), n.add(r), o && o.onCreate(r));
            var s = e.getItemStyle(["color"]);
            r.setStyle(s), i = ut({rectHover: !0, z2: 100}, i, !0);
            var l = rv(t.get("symbolSize"));
            i.scaleX = l[0] / 2, i.scaleY = l[1] / 2;
            var u = ov(t.get("symbolOffset"), l);
            u && (i.x = (i.x || 0) + u[0], i.y = (i.y || 0) + u[1]);
            var c = t.get("symbolRotate");
            return i.rotation = (c || 0) * Math.PI / 180 || 0, r.attr(i), r.updateTransform(), r
        }

        function hV(t, e, n, i, r, o) {
            if (!t.dragging) {
                var a = r.getModel("checkpointStyle"), s = i.dataToCoord(r.getData().get("value", n));
                if (o || !a.get("animation", !0)) t.attr({x: s, y: 0}), e && e.attr({shape: {x2: s}}); else {
                    var l = {duration: a.get("animationDuration", !0), easing: a.get("animationEasing", !0)};
                    t.stopAnimation(null, !0), t.animateTo({x: s, y: 0}, l), e && e.animateTo({shape: {x2: s}}, l)
                }
            }
        }

        const dV = uV;

        function pV(t) {
            var e = t && t.timeline;
            At(e) || (e = e ? [e] : []), mt(e, (function (t) {
                t && function (t) {
                    var e = t.type, n = {number: "value", time: "time"};
                    n[e] && (t.axisType = n[e], delete t.type);
                    if (fV(t), gV(t, "controlPosition")) {
                        var i = t.controlStyle || (t.controlStyle = {});
                        gV(i, "position") || (i.position = t.controlPosition), "none" !== i.position || gV(i, "show") || (i.show = !1, delete i.position), delete t.controlPosition
                    }
                    mt(t.data || [], (function (t) {
                        Dt(t) && !At(t) && (!gV(t, "value") && gV(t, "name") && (t.value = t.name), fV(t))
                    }))
                }(t)
            }))
        }

        function fV(t) {
            var e = t.itemStyle || (t.itemStyle = {}), n = e.emphasis || (e.emphasis = {}),
                i = t.label || t.label || {}, r = i.normal || (i.normal = {}), o = {normal: 1, emphasis: 1};
            mt(i, (function (t, e) {
                o[e] || gV(r, e) || (r[e] = t)
            })), n.label && !gV(i, "emphasis") && (i.emphasis = n.label, delete n.label)
        }

        function gV(t, e) {
            return t.hasOwnProperty(e)
        }

        function mV(t, e) {
            if (!t) return !1;
            for (var n = At(t) ? t : [t], i = 0; i < n.length; i++) if (n[i] && n[i][e]) return !0;
            return !1
        }

        function yV(t) {
            ta(t, "label", ["show"])
        }

        var vV = ha(), _V = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.createdBySelf = !1, n
            }

            return G(e, t), e.prototype.init = function (t, e, n) {
                this.mergeDefaultAndTheme(t, n), this._mergeOption(t, n, !1, !0)
            }, e.prototype.isAnimationEnabled = function () {
                if (H.node) return !1;
                var t = this.__hostSeries;
                return this.getShallow("animation") && t && t.isAnimationEnabled()
            }, e.prototype.mergeOption = function (t, e) {
                this._mergeOption(t, e, !1, !1)
            }, e.prototype._mergeOption = function (t, e, n, i) {
                var r = this.mainType;
                n || e.eachSeries((function (t) {
                    var n = t.get(this.mainType, !0), o = vV(t)[r];
                    n && n.data ? (o ? o._mergeOption(n, e, !0) : (i && yV(n), mt(n.data, (function (t) {
                        t instanceof Array ? (yV(t[0]), yV(t[1])) : yV(t)
                    })), ht(o = this.createMarkerModelFromSeries(n, this, e), {
                        mainType: this.mainType,
                        seriesIndex: t.seriesIndex,
                        name: t.name,
                        createdBySelf: !0
                    }), o.__hostSeries = t), vV(t)[r] = o) : vV(t)[r] = null
                }), this)
            }, e.prototype.formatTooltip = function (t, e, n) {
                var i = this.getData(), r = this.getRawValue(t), o = i.getName(t);
                return hf("section", {
                    header: this.name,
                    blocks: [hf("nameValue", {name: o, value: r, noName: !o, noValue: null == r})]
                })
            }, e.prototype.getData = function () {
                return this._data
            }, e.prototype.setData = function (t) {
                this._data = t
            }, e.getMarkerModelFromSeries = function (t, e) {
                return vV(t)[e]
            }, e.type = "marker", e.dependencies = ["series", "grid", "polar", "geo"], e
        }(Fh);
        ft(_V, Sp.prototype);
        const TV = _V;
        const xV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.createMarkerModelFromSeries = function (t, n, i) {
                return new e(t, n, i)
            }, e.type = "markPoint", e.defaultOption = {
                z: 5,
                symbol: "pin",
                symbolSize: 50,
                tooltip: {trigger: "item"},
                label: {show: !0, position: "inside"},
                itemStyle: {borderWidth: 2},
                emphasis: {label: {show: !0}}
            }, e
        }(TV);

        function SV(t) {
            return !(isNaN(parseFloat(t.x)) && isNaN(parseFloat(t.y)))
        }

        function AV(t, e, n, i, r, o) {
            var a = [], s = kS(e, i) ? e.getCalculationInfo("stackResultDimension") : i, l = wV(e, s, t),
                u = e.indicesOfNearest(s, l)[0];
            a[r] = e.get(n, u), a[o] = e.get(s, u);
            var c = e.get(i, u), h = Oo(e.get(i, u));
            return (h = Math.min(h, 20)) >= 0 && (a[o] = +a[o].toFixed(h)), [a, c]
        }

        var bV = {min: St(AV, "min"), max: St(AV, "max"), average: St(AV, "average"), median: St(AV, "median")};

        function IV(t, e) {
            if (e) {
                var n = t.getData(), i = t.coordinateSystem, r = i && i.dimensions;
                if (!function (t) {
                    return !isNaN(parseFloat(t.x)) && !isNaN(parseFloat(t.y))
                }(e) && !At(e.coord) && At(r)) {
                    var o = EV(e, n, i, t);
                    if ((e = lt(e)).type && bV[e.type] && o.baseAxis && o.valueAxis) {
                        var a = pt(r, o.baseAxis.dim), s = pt(r, o.valueAxis.dim),
                            l = bV[e.type](n, o.baseDataDim, o.valueDataDim, a, s);
                        e.coord = l[0], e.value = l[1]
                    } else e.coord = [null != e.xAxis ? e.xAxis : e.radiusAxis, null != e.yAxis ? e.yAxis : e.angleAxis]
                }
                if (null != e.coord && At(r)) for (var u = e.coord, c = 0; c < 2; c++) bV[u[c]] && (u[c] = wV(n, n.mapDimension(r[c]), u[c])); else e.coord = [];
                return e
            }
        }

        function EV(t, e, n, i) {
            var r = {};
            return null != t.valueIndex || null != t.valueDim ? (r.valueDataDim = null != t.valueIndex ? e.getDimension(t.valueIndex) : t.valueDim, r.valueAxis = n.getAxis(function (t, e) {
                var n = t.getData().getDimensionInfo(e);
                return n && n.coordDim
            }(i, r.valueDataDim)), r.baseAxis = n.getOtherAxis(r.valueAxis), r.baseDataDim = e.mapDimension(r.baseAxis.dim)) : (r.baseAxis = i.getBaseAxis(), r.valueAxis = n.getOtherAxis(r.baseAxis), r.baseDataDim = e.mapDimension(r.baseAxis.dim), r.valueDataDim = e.mapDimension(r.valueAxis.dim)), r
        }

        function CV(t, e) {
            return !(t && t.containData && e.coord && !SV(e)) || t.containData(e.coord)
        }

        function DV(t, e) {
            return t ? function (t, n, i, r) {
                return wp(r < 2 ? t.coord && t.coord[r] : t.value, e[r])
            } : function (t, n, i, r) {
                return wp(t.value, e[r])
            }
        }

        function wV(t, e, n) {
            if ("average" === n) {
                var i = 0, r = 0;
                return t.each(e, (function (t, e) {
                    isNaN(t) || (i += t, r++)
                })), i / r
            }
            return "median" === n ? t.getMedian(e) : t.getDataExtent(e)["max" === n ? 1 : 0]
        }

        var MV = ha();
        const NV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.init = function () {
                this.markerGroupMap = jt()
            }, e.prototype.render = function (t, e, n) {
                var i = this, r = this.markerGroupMap;
                r.each((function (t) {
                    MV(t).keep = !1
                })), e.eachSeries((function (t) {
                    var r = TV.getMarkerModelFromSeries(t, i.type);
                    r && i.renderSeries(t, r, e, n)
                })), r.each((function (t) {
                    !MV(t).keep && i.group.remove(t.group)
                }))
            }, e.prototype.markKeep = function (t) {
                MV(t).keep = !0
            }, e.prototype.toggleBlurSeries = function (t, e) {
                var n = this;
                mt(t, (function (t) {
                    var i = TV.getMarkerModelFromSeries(t, n.type);
                    i && i.getData().eachItemGraphicEl((function (t) {
                        t && (e ? Au(t) : bu(t))
                    }))
                }))
            }, e.type = "marker", e
        }(Gf);

        function OV(t, e, n) {
            var i = e.coordinateSystem;
            t.each((function (r) {
                var o, a = t.getItemModel(r), s = wo(a.get("x"), n.getWidth()), l = wo(a.get("y"), n.getHeight());
                if (isNaN(s) || isNaN(l)) {
                    if (e.getMarkerPosition) o = e.getMarkerPosition(t.getValues(t.dimensions, r)); else if (i) {
                        var u = t.get(i.dimensions[0], r), c = t.get(i.dimensions[1], r);
                        o = i.dataToPoint([u, c])
                    }
                } else o = [s, l];
                isNaN(s) || (o[0] = s), isNaN(l) || (o[1] = l), t.setItemLayout(r, o)
            }))
        }

        const LV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.updateTransform = function (t, e, n) {
                e.eachSeries((function (t) {
                    var e = TV.getMarkerModelFromSeries(t, "markPoint");
                    e && (OV(e.getData(), t, n), this.markerGroupMap.get(t.id).updateLayout())
                }), this)
            }, e.prototype.renderSeries = function (t, e, n, i) {
                var r = t.coordinateSystem, o = t.id, a = t.getData(), s = this.markerGroupMap,
                    l = s.get(o) || s.set(o, new XS), u = function (t, e, n) {
                        var i;
                        i = t ? yt(t && t.dimensions, (function (t) {
                            return ht(ht({}, e.getData().getDimensionInfo(e.getData().mapDimension(t)) || {}), {
                                name: t,
                                ordinalMeta: null
                            })
                        })) : [{name: "value", type: "float"}];
                        var r = new DS(i, n), o = yt(n.get("data"), St(IV, e));
                        t && (o = _t(o, St(CV, t)));
                        var a = DV(!!t, i);
                        return r.initData(o, null, a), r
                    }(r, t, e);
                e.setData(u), OV(e.getData(), t, i), u.each((function (t) {
                    var n = u.getItemModel(t), i = n.getShallow("symbol"), r = n.getShallow("symbolSize"),
                        o = n.getShallow("symbolRotate"), s = n.getShallow("symbolOffset"),
                        l = n.getShallow("symbolKeepAspect");
                    if (bt(i) || bt(r) || bt(o) || bt(s)) {
                        var c = e.getRawValue(t), h = e.getDataParams(t);
                        bt(i) && (i = i(c, h)), bt(r) && (r = r(c, h)), bt(o) && (o = o(c, h)), bt(s) && (s = s(c, h))
                    }
                    var d = n.getModel("itemStyle").getItemStyle(), p = Hy(a, "color");
                    d.fill || (d.fill = p), u.setItemVisual(t, {
                        symbol: i,
                        symbolSize: r,
                        symbolRotate: o,
                        symbolOffset: s,
                        symbolKeepAspect: l,
                        style: d
                    })
                })), l.updateData(u), this.group.add(l.group), u.eachItemGraphicEl((function (t) {
                    t.traverse((function (t) {
                        Hl(t).dataModel = e
                    }))
                })), this.markKeep(l), l.group.silent = e.get("silent") || t.get("silent")
            }, e.type = "markPoint", e
        }(NV);
        const RV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.createMarkerModelFromSeries = function (t, n, i) {
                return new e(t, n, i)
            }, e.type = "markLine", e.defaultOption = {
                z: 5,
                symbol: ["circle", "arrow"],
                symbolSize: [8, 16],
                symbolOffset: 0,
                precision: 2,
                tooltip: {trigger: "item"},
                label: {show: !0, position: "end", distance: 5},
                lineStyle: {type: "dashed"},
                emphasis: {label: {show: !0}, lineStyle: {width: 3}},
                animationEasing: "linear"
            }, e
        }(TV);
        var kV = ha(), PV = function (t, e, n, i) {
            var r, o = t.getData();
            if (At(i)) r = i; else {
                var a = i.type;
                if ("min" === a || "max" === a || "average" === a || "median" === a || null != i.xAxis || null != i.yAxis) {
                    var s = void 0, l = void 0;
                    if (null != i.yAxis || null != i.xAxis) s = e.getAxis(null != i.yAxis ? "y" : "x"), l = Rt(i.yAxis, i.xAxis); else {
                        var u = EV(i, o, e, t);
                        s = u.valueAxis, l = wV(o, PS(o, u.valueDataDim), a)
                    }
                    var c = "x" === s.dim ? 0 : 1, h = 1 - c, d = lt(i), p = {coord: []};
                    d.type = null, d.coord = [], d.coord[h] = -1 / 0, p.coord[h] = 1 / 0;
                    var f = n.get("precision");
                    f >= 0 && Ct(l) && (l = +l.toFixed(Math.min(f, 20))), d.coord[c] = p.coord[c] = l, r = [d, p, {
                        type: a,
                        valueIndex: i.valueIndex,
                        value: l
                    }]
                } else r = []
            }
            var g = [IV(t, r[0]), IV(t, r[1]), ht({}, r[2])];
            return g[2].type = g[2].type || null, ut(g[2], g[0]), ut(g[2], g[1]), g
        };

        function GV(t) {
            return !isNaN(t) && !isFinite(t)
        }

        function BV(t, e, n, i) {
            var r = 1 - t, o = i.dimensions[t];
            return GV(e[r]) && GV(n[r]) && e[t] === n[t] && i.getAxis(o).containData(e[t])
        }

        function FV(t, e) {
            if ("cartesian2d" === t.type) {
                var n = e[0].coord, i = e[1].coord;
                if (n && i && (BV(1, n, i, t) || BV(0, n, i, t))) return !0
            }
            return CV(t, e[0]) && CV(t, e[1])
        }

        function HV(t, e, n, i, r) {
            var o, a = i.coordinateSystem, s = t.getItemModel(e), l = wo(s.get("x"), r.getWidth()),
                u = wo(s.get("y"), r.getHeight());
            if (isNaN(l) || isNaN(u)) {
                if (i.getMarkerPosition) o = i.getMarkerPosition(t.getValues(t.dimensions, e)); else {
                    var c = a.dimensions, h = t.get(c[0], e), d = t.get(c[1], e);
                    o = a.dataToPoint([h, d])
                }
                if (hA(a, "cartesian2d")) {
                    var p = a.getAxis("x"), f = a.getAxis("y");
                    c = a.dimensions;
                    GV(t.get(c[0], e)) ? o[0] = p.toGlobalCoord(p.getExtent()[n ? 0 : 1]) : GV(t.get(c[1], e)) && (o[1] = f.toGlobalCoord(f.getExtent()[n ? 0 : 1]))
                }
                isNaN(l) || (o[0] = l), isNaN(u) || (o[1] = u)
            } else o = [l, u];
            t.setItemLayout(e, o)
        }

        const UV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.updateTransform = function (t, e, n) {
                e.eachSeries((function (t) {
                    var e = TV.getMarkerModelFromSeries(t, "markLine");
                    if (e) {
                        var i = e.getData(), r = kV(e).from, o = kV(e).to;
                        r.each((function (e) {
                            HV(r, e, !0, t, n), HV(o, e, !1, t, n)
                        })), i.each((function (t) {
                            i.setItemLayout(t, [r.getItemLayout(t), o.getItemLayout(t)])
                        })), this.markerGroupMap.get(t.id).updateLayout()
                    }
                }), this)
            }, e.prototype.renderSeries = function (t, e, n, i) {
                var r = t.coordinateSystem, o = t.id, a = t.getData(), s = this.markerGroupMap,
                    l = s.get(o) || s.set(o, new FN);
                this.group.add(l.group);
                var u = function (t, e, n) {
                    var i;
                    i = t ? yt(t && t.dimensions, (function (t) {
                        return ht(ht({}, e.getData().getDimensionInfo(e.getData().mapDimension(t)) || {}), {
                            name: t,
                            ordinalMeta: null
                        })
                    })) : [{name: "value", type: "float"}];
                    var r = new DS(i, n), o = new DS(i, n), a = new DS([], n), s = yt(n.get("data"), St(PV, e, t, n));
                    t && (s = _t(s, St(FV, t)));
                    var l = DV(!!t, i);
                    return r.initData(yt(s, (function (t) {
                        return t[0]
                    })), null, l), o.initData(yt(s, (function (t) {
                        return t[1]
                    })), null, l), a.initData(yt(s, (function (t) {
                        return t[2]
                    }))), a.hasItemOption = !0, {from: r, to: o, line: a}
                }(r, t, e), c = u.from, h = u.to, d = u.line;
                kV(e).from = c, kV(e).to = h, e.setData(d);
                var p = e.get("symbol"), f = e.get("symbolSize"), g = e.get("symbolRotate"), m = e.get("symbolOffset");

                function y(e, n, r) {
                    var o = e.getItemModel(n);
                    HV(e, n, r, t, i);
                    var s = o.getModel("itemStyle").getItemStyle();
                    null == s.fill && (s.fill = Hy(a, "color")), e.setItemVisual(n, {
                        symbolKeepAspect: o.get("symbolKeepAspect"),
                        symbolOffset: kt(o.get("symbolOffset", !0), m[r ? 0 : 1]),
                        symbolRotate: kt(o.get("symbolRotate", !0), g[r ? 0 : 1]),
                        symbolSize: kt(o.get("symbolSize"), f[r ? 0 : 1]),
                        symbol: kt(o.get("symbol", !0), p[r ? 0 : 1]),
                        style: s
                    })
                }

                At(p) || (p = [p, p]), At(f) || (f = [f, f]), At(g) || (g = [g, g]), At(m) || (m = [m, m]), u.from.each((function (t) {
                    y(c, t, !0), y(h, t, !1)
                })), d.each((function (t) {
                    var e = d.getItemModel(t).getModel("lineStyle").getLineStyle();
                    d.setItemLayout(t, [c.getItemLayout(t), h.getItemLayout(t)]), null == e.stroke && (e.stroke = c.getItemVisual(t, "style").fill), d.setItemVisual(t, {
                        fromSymbolKeepAspect: c.getItemVisual(t, "symbolKeepAspect"),
                        fromSymbolOffset: c.getItemVisual(t, "symbolOffset"),
                        fromSymbolRotate: c.getItemVisual(t, "symbolRotate"),
                        fromSymbolSize: c.getItemVisual(t, "symbolSize"),
                        fromSymbol: c.getItemVisual(t, "symbol"),
                        toSymbolKeepAspect: h.getItemVisual(t, "symbolKeepAspect"),
                        toSymbolOffset: h.getItemVisual(t, "symbolOffset"),
                        toSymbolRotate: h.getItemVisual(t, "symbolRotate"),
                        toSymbolSize: h.getItemVisual(t, "symbolSize"),
                        toSymbol: h.getItemVisual(t, "symbol"),
                        style: e
                    })
                })), l.updateData(d), u.line.eachItemGraphicEl((function (t) {
                    Hl(t).dataModel = e, t.traverse((function (t) {
                        Hl(t).dataModel = e
                    }))
                })), this.markKeep(l), l.group.silent = e.get("silent") || t.get("silent")
            }, e.type = "markLine", e
        }(NV);
        const VV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.createMarkerModelFromSeries = function (t, n, i) {
                return new e(t, n, i)
            }, e.type = "markArea", e.defaultOption = {
                z: 1,
                tooltip: {trigger: "item"},
                animation: !1,
                label: {show: !0, position: "top"},
                itemStyle: {borderWidth: 0},
                emphasis: {label: {show: !0, position: "top"}}
            }, e
        }(TV);
        var zV = ha(), WV = function (t, e, n, i) {
            var r = i[0], o = i[1];
            if (r && o) {
                var a = IV(t, r), s = IV(t, o), l = a.coord, u = s.coord;
                l[0] = Rt(l[0], -1 / 0), l[1] = Rt(l[1], -1 / 0), u[0] = Rt(u[0], 1 / 0), u[1] = Rt(u[1], 1 / 0);
                var c = ct([{}, a, s]);
                return c.coord = [a.coord, s.coord], c.x0 = a.x, c.y0 = a.y, c.x1 = s.x, c.y1 = s.y, c
            }
        };

        function YV(t) {
            return !isNaN(t) && !isFinite(t)
        }

        function qV(t, e, n, i) {
            var r = 1 - t;
            return YV(e[r]) && YV(n[r])
        }

        function jV(t, e) {
            var n = e.coord[0], i = e.coord[1], r = {coord: n, x: e.x0, y: e.y0}, o = {coord: i, x: e.x1, y: e.y1};
            return hA(t, "cartesian2d") ? !(!n || !i || !qV(1, n, i) && !qV(0, n, i)) || function (t, e, n) {
                return !(t && t.containZone && e.coord && n.coord && !SV(e) && !SV(n)) || t.containZone(e.coord, n.coord)
            }(t, r, o) : CV(t, r) || CV(t, o)
        }

        function XV(t, e, n, i, r) {
            var o, a = i.coordinateSystem, s = t.getItemModel(e), l = wo(s.get(n[0]), r.getWidth()),
                u = wo(s.get(n[1]), r.getHeight());
            if (isNaN(l) || isNaN(u)) {
                if (i.getMarkerPosition) {
                    var c = t.getValues(["x0", "y0"], e), h = t.getValues(["x1", "y1"], e), d = a.clampData(c),
                        p = a.clampData(h), f = [];
                    "x0" === n[0] ? f[0] = d[0] > p[0] ? h[0] : c[0] : f[0] = d[0] > p[0] ? c[0] : h[0], "y0" === n[1] ? f[1] = d[1] > p[1] ? h[1] : c[1] : f[1] = d[1] > p[1] ? c[1] : h[1], o = i.getMarkerPosition(f, n, !0)
                } else {
                    var g = [v = t.get(n[0], e), _ = t.get(n[1], e)];
                    a.clampData && a.clampData(g, g), o = a.dataToPoint(g, !0)
                }
                if (hA(a, "cartesian2d")) {
                    var m = a.getAxis("x"), y = a.getAxis("y"), v = t.get(n[0], e), _ = t.get(n[1], e);
                    YV(v) ? o[0] = m.toGlobalCoord(m.getExtent()["x0" === n[0] ? 0 : 1]) : YV(_) && (o[1] = y.toGlobalCoord(y.getExtent()["y0" === n[1] ? 0 : 1]))
                }
                isNaN(l) || (o[0] = l), isNaN(u) || (o[1] = u)
            } else o = [l, u];
            return o
        }

        var ZV = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], KV = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.updateTransform = function (t, e, n) {
                e.eachSeries((function (t) {
                    var e = TV.getMarkerModelFromSeries(t, "markArea");
                    if (e) {
                        var i = e.getData();
                        i.each((function (e) {
                            var r = yt(ZV, (function (r) {
                                return XV(i, e, r, t, n)
                            }));
                            i.setItemLayout(e, r), i.getItemGraphicEl(e).setShape("points", r)
                        }))
                    }
                }), this)
            }, e.prototype.renderSeries = function (t, e, n, i) {
                var r = t.coordinateSystem, o = t.id, a = t.getData(), s = this.markerGroupMap,
                    l = s.get(o) || s.set(o, {group: new xo});
                this.group.add(l.group), this.markKeep(l);
                var u = function (t, e, n) {
                    var i, r, o = ["x0", "y0", "x1", "y1"];
                    if (t) {
                        var a = yt(t && t.dimensions, (function (t) {
                            var n = e.getData();
                            return ht(ht({}, n.getDimensionInfo(n.mapDimension(t)) || {}), {name: t, ordinalMeta: null})
                        }));
                        r = yt(o, (function (t, e) {
                            return {name: t, type: a[e % 2].type}
                        })), i = new DS(r, n)
                    } else i = new DS(r = [{name: "value", type: "float"}], n);
                    var s = yt(n.get("data"), St(WV, e, t, n));
                    t && (s = _t(s, St(jV, t)));
                    var l = t ? function (t, e, n, i) {
                        return wp(t.coord[Math.floor(i / 2)][i % 2], r[i])
                    } : function (t, e, n, i) {
                        return wp(t.value, r[i])
                    };
                    return i.initData(s, null, l), i.hasItemOption = !0, i
                }(r, t, e);
                e.setData(u), u.each((function (e) {
                    var n = yt(ZV, (function (n) {
                            return XV(u, e, n, t, i)
                        })), o = r.getAxis("x").scale, s = r.getAxis("y").scale, l = o.getExtent(), c = s.getExtent(),
                        h = [o.parse(u.get("x0", e)), o.parse(u.get("x1", e))],
                        d = [s.parse(u.get("y0", e)), s.parse(u.get("y1", e))];
                    No(h), No(d);
                    var p = !!(l[0] > h[1] || l[1] < h[0] || c[0] > d[1] || c[1] < d[0]);
                    u.setItemLayout(e, {points: n, allClipped: p});
                    var f = u.getItemModel(e).getModel("itemStyle").getItemStyle(), g = Hy(a, "color");
                    f.fill || (f.fill = g, It(f.fill) && (f.fill = Pi(f.fill, .4))), f.stroke || (f.stroke = g), u.setItemVisual(e, "style", f)
                })), u.diff(zV(l).data).add((function (t) {
                    var e = u.getItemLayout(t);
                    if (!e.allClipped) {
                        var n = new Lg({shape: {points: e.points}});
                        u.setItemGraphicEl(t, n), l.group.add(n)
                    }
                })).update((function (t, n) {
                    var i = zV(l).data.getItemGraphicEl(n), r = u.getItemLayout(t);
                    r.allClipped ? i && l.group.remove(i) : (i ? ju(i, {shape: {points: r.points}}, e, t) : i = new Lg({shape: {points: r.points}}), u.setItemGraphicEl(t, i), l.group.add(i))
                })).remove((function (t) {
                    var e = zV(l).data.getItemGraphicEl(t);
                    l.group.remove(e)
                })).execute(), u.eachItemGraphicEl((function (t, n) {
                    var i = u.getItemModel(n), r = u.getItemVisual(n, "style");
                    t.useStyle(u.getItemVisual(n, "style")), ic(t, rc(i), {
                        labelFetcher: e,
                        labelDataIndex: n,
                        defaultText: u.getName(n) || "",
                        inheritColor: It(r.fill) ? Pi(r.fill, 1) : "#000"
                    }), Fu(t, i), ku(t, null, null, i.get(["emphasis", "disabled"])), Hl(t).dataModel = e
                })), zV(l).data = u, l.group.silent = e.get("silent") || t.get("silent")
            }, e.type = "markArea", e
        }(NV);
        const QV = KV;
        var $V = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.layoutMode = {type: "box", ignoreSize: !0}, n
            }

            return G(e, t), e.prototype.init = function (t, e, n) {
                this.mergeDefaultAndTheme(t, n), t.selected = t.selected || {}, this._updateSelector(t)
            }, e.prototype.mergeOption = function (e, n) {
                t.prototype.mergeOption.call(this, e, n), this._updateSelector(e)
            }, e.prototype._updateSelector = function (t) {
                var e = t.selector, n = this.ecModel;
                !0 === e && (e = t.selector = ["all", "inverse"]), At(e) && mt(e, (function (t, i) {
                    It(t) && (t = {type: t}), e[i] = ut(t, function (t, e) {
                        return "all" === e ? {
                            type: "all",
                            title: t.getLocaleModel().get(["legend", "selector", "all"])
                        } : "inverse" === e ? {
                            type: "inverse",
                            title: t.getLocaleModel().get(["legend", "selector", "inverse"])
                        } : void 0
                    }(n, t.type))
                }))
            }, e.prototype.optionUpdated = function () {
                this._updateData(this.ecModel);
                var t = this._data;
                if (t[0] && "single" === this.get("selectedMode")) {
                    for (var e = !1, n = 0; n < t.length; n++) {
                        var i = t[n].get("name");
                        if (this.isSelected(i)) {
                            this.select(i), e = !0;
                            break
                        }
                    }
                    !e && this.select(t[0].get("name"))
                }
            }, e.prototype._updateData = function (t) {
                var e = [], n = [];
                t.eachRawSeries((function (i) {
                    var r, o = i.name;
                    if (n.push(o), i.legendVisualProvider) {
                        var a = i.legendVisualProvider.getAllNames();
                        t.isSeriesFiltered(i) || (n = n.concat(a)), a.length ? e = e.concat(a) : r = !0
                    } else r = !0;
                    r && la(i) && e.push(i.name)
                })), this._availableNames = n;
                var i = this.get("data") || e, r = jt(), o = yt(i, (function (t) {
                    return (It(t) || Ct(t)) && (t = {name: t}), r.get(t.name) ? null : (r.set(t.name, !0), new wc(t, this, this.ecModel))
                }), this);
                this._data = _t(o, (function (t) {
                    return !!t
                }))
            }, e.prototype.getData = function () {
                return this._data
            }, e.prototype.select = function (t) {
                var e = this.option.selected;
                "single" === this.get("selectedMode") && mt(this._data, (function (t) {
                    e[t.get("name")] = !1
                }));
                e[t] = !0
            }, e.prototype.unSelect = function (t) {
                "single" !== this.get("selectedMode") && (this.option.selected[t] = !1)
            }, e.prototype.toggleSelected = function (t) {
                var e = this.option.selected;
                e.hasOwnProperty(t) || (e[t] = !0), this[e[t] ? "unSelect" : "select"](t)
            }, e.prototype.allSelect = function () {
                var t = this._data, e = this.option.selected;
                mt(t, (function (t) {
                    e[t.get("name", !0)] = !0
                }))
            }, e.prototype.inverseSelect = function () {
                var t = this._data, e = this.option.selected;
                mt(t, (function (t) {
                    var n = t.get("name", !0);
                    e.hasOwnProperty(n) || (e[n] = !0), e[n] = !e[n]
                }))
            }, e.prototype.isSelected = function (t) {
                var e = this.option.selected;
                return !(e.hasOwnProperty(t) && !e[t]) && pt(this._availableNames, t) >= 0
            }, e.prototype.getOrient = function () {
                return "vertical" === this.get("orient") ? {index: 1, name: "vertical"} : {index: 0, name: "horizontal"}
            }, e.type = "legend.plain", e.dependencies = ["series"], e.defaultOption = {
                z: 4,
                show: !0,
                orient: "horizontal",
                left: "center",
                top: 0,
                align: "auto",
                backgroundColor: "rgba(0,0,0,0)",
                borderColor: "#ccc",
                borderRadius: 0,
                borderWidth: 0,
                padding: 5,
                itemGap: 10,
                itemWidth: 25,
                itemHeight: 14,
                symbolRotate: "inherit",
                symbolKeepAspect: !0,
                inactiveColor: "#ccc",
                inactiveBorderColor: "#ccc",
                inactiveBorderWidth: "auto",
                itemStyle: {
                    color: "inherit",
                    opacity: "inherit",
                    borderColor: "inherit",
                    borderWidth: "auto",
                    borderCap: "inherit",
                    borderJoin: "inherit",
                    borderDashOffset: "inherit",
                    borderMiterLimit: "inherit"
                },
                lineStyle: {
                    width: "auto",
                    color: "inherit",
                    inactiveColor: "#ccc",
                    inactiveWidth: 2,
                    opacity: "inherit",
                    type: "inherit",
                    cap: "inherit",
                    join: "inherit",
                    dashOffset: "inherit",
                    miterLimit: "inherit"
                },
                textStyle: {color: "#333"},
                selectedMode: !0,
                selector: !1,
                selectorLabel: {
                    show: !0,
                    borderRadius: 10,
                    padding: [3, 5, 3, 5],
                    fontSize: 12,
                    fontFamily: "sans-serif",
                    color: "#666",
                    borderWidth: 1,
                    borderColor: "#666"
                },
                emphasis: {selectorLabel: {show: !0, color: "#eee", backgroundColor: "#666"}},
                selectorPosition: "auto",
                selectorItemGap: 7,
                selectorButtonGap: 10,
                tooltip: {show: !1}
            }, e
        }(Fh);
        const JV = $V;
        var tz = St, ez = mt, nz = xo, iz = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.newlineDisabled = !1, n
            }

            return G(e, t), e.prototype.init = function () {
                this.group.add(this._contentGroup = new nz), this.group.add(this._selectorGroup = new nz), this._isFirstRender = !0
            }, e.prototype.getContentGroup = function () {
                return this._contentGroup
            }, e.prototype.getSelectorGroup = function () {
                return this._selectorGroup
            }, e.prototype.render = function (t, e, n) {
                var i = this._isFirstRender;
                if (this._isFirstRender = !1, this.resetInner(), t.get("show", !0)) {
                    var r = t.get("align"), o = t.get("orient");
                    r && "auto" !== r || (r = "right" === t.get("left") && "vertical" === o ? "right" : "left");
                    var a = t.get("selector", !0), s = t.get("selectorPosition", !0);
                    !a || s && "auto" !== s || (s = "horizontal" === o ? "end" : "start"), this.renderInner(r, t, e, n, a, o, s);
                    var l = t.getBoxLayoutParams(), u = {width: n.getWidth(), height: n.getHeight()},
                        c = t.get("padding"), h = Nh(l, u, c), d = this.layoutInner(t, r, h, i, a, s),
                        p = Nh(dt({width: d.width, height: d.height}, l), u, c);
                    this.group.x = p.x - d.x, this.group.y = p.y - d.y, this.group.markRedraw(), this.group.add(this._backgroundEl = yH(d, t))
                }
            }, e.prototype.resetInner = function () {
                this.getContentGroup().removeAll(), this._backgroundEl && this.group.remove(this._backgroundEl), this.getSelectorGroup().removeAll()
            }, e.prototype.renderInner = function (t, e, n, i, r, o, a) {
                var s = this.getContentGroup(), l = jt(), u = e.get("selectedMode"), c = [];
                n.eachRawSeries((function (t) {
                    !t.get("legendHoverLink") && c.push(t.id)
                })), ez(e.getData(), (function (r, o) {
                    var a = r.get("name");
                    if (!this.newlineDisabled && ("" === a || "\n" === a)) {
                        var h = new nz;
                        return h.newline = !0, void s.add(h)
                    }
                    var d = n.getSeriesByName(a)[0];
                    if (!l.get(a)) {
                        if (d) {
                            var p = d.getData(), f = p.getVisual("legendLineStyle") || {},
                                g = p.getVisual("legendIcon"), m = p.getVisual("style");
                            this._createItem(d, a, o, r, e, t, f, m, g, u, i).on("click", tz(rz, a, null, i, c)).on("mouseover", tz(az, d.name, null, i, c)).on("mouseout", tz(sz, d.name, null, i, c)), l.set(a, !0)
                        } else n.eachRawSeries((function (n) {
                            if (!l.get(a) && n.legendVisualProvider) {
                                var s = n.legendVisualProvider;
                                if (!s.containName(a)) return;
                                var h = s.indexOfName(a), d = s.getItemVisual(h, "style"),
                                    p = s.getItemVisual(h, "legendIcon"), f = Mi(d.fill);
                                f && 0 === f[3] && (f[3] = .2, d = ht(ht({}, d), {fill: Gi(f, "rgba")})), this._createItem(n, a, o, r, e, t, {}, d, p, u, i).on("click", tz(rz, null, a, i, c)).on("mouseover", tz(az, null, a, i, c)).on("mouseout", tz(sz, null, a, i, c)), l.set(a, !0)
                            }
                        }), this);
                        0
                    }
                }), this), r && this._createSelector(r, e, i, o, a)
            }, e.prototype._createSelector = function (t, e, n, i, r) {
                var o = this.getSelectorGroup();
                ez(t, (function (t) {
                    var i = t.type, r = new Fl({
                        style: {x: 0, y: 0, align: "center", verticalAlign: "middle"},
                        onclick: function () {
                            n.dispatchAction({type: "all" === i ? "legendAllSelect" : "legendInverseSelect"})
                        }
                    });
                    o.add(r), ic(r, {
                        normal: e.getModel("selectorLabel"),
                        emphasis: e.getModel(["emphasis", "selectorLabel"])
                    }, {defaultText: t.title}), Ru(r)
                }))
            }, e.prototype._createItem = function (t, e, n, i, r, o, a, s, l, u, c) {
                var h = t.visualDrawType, d = r.get("itemWidth"), p = r.get("itemHeight"), f = r.isSelected(e),
                    g = i.get("symbolRotate"), m = i.get("symbolKeepAspect"), y = i.get("icon"),
                    v = function (t, e, n, i, r, o, a) {
                        function s(t, e) {
                            "auto" === t.lineWidth && (t.lineWidth = e.lineWidth > 0 ? 2 : 0), ez(t, (function (n, i) {
                                "inherit" === t[i] && (t[i] = e[i])
                            }))
                        }

                        var l = e.getModel("itemStyle"), u = l.getItemStyle(),
                            c = 0 === t.lastIndexOf("empty", 0) ? "fill" : "stroke", h = l.getShallow("decal");
                        u.decal = h && "inherit" !== h ? Rv(h, a) : i.decal, "inherit" === u.fill && (u.fill = i[r]);
                        "inherit" === u.stroke && (u.stroke = i[c]);
                        "inherit" === u.opacity && (u.opacity = ("fill" === r ? i : n).opacity);
                        s(u, i);
                        var d = e.getModel("lineStyle"), p = d.getLineStyle();
                        if (s(p, n), "auto" === u.fill && (u.fill = i.fill), "auto" === u.stroke && (u.stroke = i.fill), "auto" === p.stroke && (p.stroke = i.fill), !o) {
                            var f = e.get("inactiveBorderWidth"), g = u[c];
                            u.lineWidth = "auto" === f ? i.lineWidth > 0 && g ? 2 : 0 : u.lineWidth, u.fill = e.get("inactiveColor"), u.stroke = e.get("inactiveBorderColor"), p.stroke = d.get("inactiveColor"), p.lineWidth = d.get("inactiveWidth")
                        }
                        return {itemStyle: u, lineStyle: p}
                    }(l = y || l || "roundRect", i, a, s, h, f, c), _ = new nz, T = i.getModel("textStyle");
                if (!bt(t.getLegendIcon) || y && "inherit" !== y) {
                    var x = "inherit" === y && t.getData().getVisual("symbol") ? "inherit" === g ? t.getData().getVisual("symbolRotate") : g : 0;
                    _.add(function (t) {
                        var e = t.icon || "roundRect",
                            n = iv(e, 0, 0, t.itemWidth, t.itemHeight, t.itemStyle.fill, t.symbolKeepAspect);
                        n.setStyle(t.itemStyle), n.rotation = (t.iconRotate || 0) * Math.PI / 180, n.setOrigin([t.itemWidth / 2, t.itemHeight / 2]), e.indexOf("empty") > -1 && (n.style.stroke = n.style.fill, n.style.fill = "#fff", n.style.lineWidth = 2);
                        return n
                    }({
                        itemWidth: d,
                        itemHeight: p,
                        icon: l,
                        iconRotate: x,
                        itemStyle: v.itemStyle,
                        lineStyle: v.lineStyle,
                        symbolKeepAspect: m
                    }))
                } else _.add(t.getLegendIcon({
                    itemWidth: d,
                    itemHeight: p,
                    icon: l,
                    iconRotate: g,
                    itemStyle: v.itemStyle,
                    lineStyle: v.lineStyle,
                    symbolKeepAspect: m
                }));
                var S = "left" === o ? d + 5 : -5, A = o, b = r.get("formatter"), I = e;
                It(b) && b ? I = b.replace("{name}", null != e ? e : "") : bt(b) && (I = b(e));
                var E = f ? T.getTextColor() : i.get("inactiveColor");
                _.add(new Fl({
                    style: oc(T, {
                        text: I,
                        x: S,
                        y: p / 2,
                        fill: E,
                        align: A,
                        verticalAlign: "middle"
                    }, {inheritColor: E})
                }));
                var C = new Al({shape: _.getBoundingRect(), invisible: !0}), D = i.getModel("tooltip");
                return D.get("show") && Pm({
                    el: C,
                    componentModel: r,
                    itemName: e,
                    itemTooltipOption: D.option
                }), _.add(C), _.eachChild((function (t) {
                    t.silent = !0
                })), C.silent = !u, this.getContentGroup().add(_), Ru(_), _.__legendDataIndex = n, _
            }, e.prototype.layoutInner = function (t, e, n, i, r, o) {
                var a = this.getContentGroup(), s = this.getSelectorGroup();
                Mh(t.get("orient"), a, t.get("itemGap"), n.width, n.height);
                var l = a.getBoundingRect(), u = [-l.x, -l.y];
                if (s.markRedraw(), a.markRedraw(), r) {
                    Mh("horizontal", s, t.get("selectorItemGap", !0));
                    var c = s.getBoundingRect(), h = [-c.x, -c.y], d = t.get("selectorButtonGap", !0),
                        p = t.getOrient().index, f = 0 === p ? "width" : "height", g = 0 === p ? "height" : "width",
                        m = 0 === p ? "y" : "x";
                    "end" === o ? h[p] += l[f] + d : u[p] += c[f] + d, h[1 - p] += l[g] / 2 - c[g] / 2, s.x = h[0], s.y = h[1], a.x = u[0], a.y = u[1];
                    var y = {x: 0, y: 0};
                    return y[f] = l[f] + d + c[f], y[g] = Math.max(l[g], c[g]), y[m] = Math.min(0, c[m] + h[1 - p]), y
                }
                return a.x = u[0], a.y = u[1], this.group.getBoundingRect()
            }, e.prototype.remove = function () {
                this.getContentGroup().removeAll(), this._isFirstRender = !0
            }, e.type = "legend.plain", e
        }(Gf);

        function rz(t, e, n, i) {
            sz(t, e, n, i), n.dispatchAction({type: "legendToggleSelect", name: null != t ? t : e}), az(t, e, n, i)
        }

        function oz(t) {
            for (var e, n = t.getZr().storage.getDisplayList(), i = 0, r = n.length; i < r && !(e = n[i].states.emphasis);) i++;
            return e && e.hoverLayer
        }

        function az(t, e, n, i) {
            oz(n) || n.dispatchAction({type: "highlight", seriesName: t, name: e, excludeSeriesId: i})
        }

        function sz(t, e, n, i) {
            oz(n) || n.dispatchAction({type: "downplay", seriesName: t, name: e, excludeSeriesId: i})
        }

        const lz = iz;

        function uz(t) {
            var e = t.findComponents({mainType: "legend"});
            e && e.length && t.filterSeries((function (t) {
                for (var n = 0; n < e.length; n++) if (!e[n].isSelected(t.name)) return !1;
                return !0
            }))
        }

        function cz(t, e, n) {
            var i, r = {}, o = "toggleSelected" === t;
            return n.eachComponent("legend", (function (n) {
                o && null != i ? n[i ? "select" : "unSelect"](e.name) : "allSelect" === t || "inverseSelect" === t ? n[t]() : (n[t](e.name), i = n.isSelected(e.name)), mt(n.getData(), (function (t) {
                    var e = t.get("name");
                    if ("\n" !== e && "" !== e) {
                        var i = n.isSelected(e);
                        r.hasOwnProperty(e) ? r[e] = r[e] && i : r[e] = i
                    }
                }))
            })), "allSelect" === t || "inverseSelect" === t ? {selected: r} : {name: e.name, selected: r}
        }

        function hz(t) {
            t.registerComponentModel(JV), t.registerComponentView(lz), t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER, uz), t.registerSubTypeDefaulter("legend", (function () {
                return "plain"
            })), function (t) {
                t.registerAction("legendToggleSelect", "legendselectchanged", St(cz, "toggleSelected")), t.registerAction("legendAllSelect", "legendselectall", St(cz, "allSelect")), t.registerAction("legendInverseSelect", "legendinverseselect", St(cz, "inverseSelect")), t.registerAction("legendSelect", "legendselected", St(cz, "select")), t.registerAction("legendUnSelect", "legendunselected", St(cz, "unSelect"))
            }(t)
        }

        function dz(t, e, n) {
            var i = [1, 1];
            i[t.getOrient().index] = 0, Rh(e, n, {type: "box", ignoreSize: !!i})
        }

        const pz = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.setScrollDataIndex = function (t) {
                this.option.scrollDataIndex = t
            }, e.prototype.init = function (e, n, i) {
                var r = kh(e);
                t.prototype.init.call(this, e, n, i), dz(this, e, r)
            }, e.prototype.mergeOption = function (e, n) {
                t.prototype.mergeOption.call(this, e, n), dz(this, this.option, e)
            }, e.type = "legend.scroll", e.defaultOption = Oc(JV.defaultOption, {
                scrollDataIndex: 0,
                pageButtonItemGap: 5,
                pageButtonGap: null,
                pageButtonPosition: "end",
                pageFormatter: "{current}/{total}",
                pageIcons: {
                    horizontal: ["M0,0L12,-10L12,10z", "M0,0L-12,-10L-12,10z"],
                    vertical: ["M0,0L20,0L10,-20z", "M0,0L20,0L10,20z"]
                },
                pageIconColor: "#2f4554",
                pageIconInactiveColor: "#aaa",
                pageIconSize: 15,
                pageTextStyle: {color: "#333"},
                animationDurationUpdate: 800
            }), e
        }(JV);
        var fz = xo, gz = ["width", "height"], mz = ["x", "y"], yz = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.newlineDisabled = !0, n._currentIndex = 0, n
            }

            return G(e, t), e.prototype.init = function () {
                t.prototype.init.call(this), this.group.add(this._containerGroup = new fz), this._containerGroup.add(this.getContentGroup()), this.group.add(this._controllerGroup = new fz)
            }, e.prototype.resetInner = function () {
                t.prototype.resetInner.call(this), this._controllerGroup.removeAll(), this._containerGroup.removeClipPath(), this._containerGroup.__rectSize = null
            }, e.prototype.renderInner = function (e, n, i, r, o, a, s) {
                var l = this;
                t.prototype.renderInner.call(this, e, n, i, r, o, a, s);
                var u = this._controllerGroup, c = n.get("pageIconSize", !0), h = At(c) ? c : [c, c];
                p("pagePrev", 0);
                var d = n.getModel("pageTextStyle");

                function p(t, e) {
                    var i = t + "DataIndex",
                        o = Om(n.get("pageIcons", !0)[n.getOrient().name][e], {onclick: xt(l._pageGo, l, i, n, r)}, {
                            x: -h[0] / 2,
                            y: -h[1] / 2,
                            width: h[0],
                            height: h[1]
                        });
                    o.name = t, u.add(o)
                }

                u.add(new Fl({
                    name: "pageText",
                    style: {
                        text: "xx/xx",
                        fill: d.getTextColor(),
                        font: d.getFont(),
                        verticalAlign: "middle",
                        align: "center"
                    },
                    silent: !0
                })), p("pageNext", 1)
            }, e.prototype.layoutInner = function (t, e, n, i, r, o) {
                var a = this.getSelectorGroup(), s = t.getOrient().index, l = gz[s], u = mz[s], c = gz[1 - s],
                    h = mz[1 - s];
                r && Mh("horizontal", a, t.get("selectorItemGap", !0));
                var d = t.get("selectorButtonGap", !0), p = a.getBoundingRect(), f = [-p.x, -p.y], g = lt(n);
                r && (g[l] = n[l] - p[l] - d);
                var m = this._layoutContentAndController(t, i, g, s, l, c, h, u);
                if (r) {
                    if ("end" === o) f[s] += m[l] + d; else {
                        var y = p[l] + d;
                        f[s] -= y, m[u] -= y
                    }
                    m[l] += p[l] + d, f[1 - s] += m[h] + m[c] / 2 - p[c] / 2, m[c] = Math.max(m[c], p[c]), m[h] = Math.min(m[h], p[h] + f[1 - s]), a.x = f[0], a.y = f[1], a.markRedraw()
                }
                return m
            }, e.prototype._layoutContentAndController = function (t, e, n, i, r, o, a, s) {
                var l = this.getContentGroup(), u = this._containerGroup, c = this._controllerGroup;
                Mh(t.get("orient"), l, t.get("itemGap"), i ? n.width : null, i ? null : n.height), Mh("horizontal", c, t.get("pageButtonItemGap", !0));
                var h = l.getBoundingRect(), d = c.getBoundingRect(), p = this._showController = h[r] > n[r],
                    f = [-h.x, -h.y];
                e || (f[i] = l[s]);
                var g = [0, 0], m = [-d.x, -d.y], y = kt(t.get("pageButtonGap", !0), t.get("itemGap", !0));
                p && ("end" === t.get("pageButtonPosition", !0) ? m[i] += n[r] - d[r] : g[i] += d[r] + y);
                m[1 - i] += h[o] / 2 - d[o] / 2, l.setPosition(f), u.setPosition(g), c.setPosition(m);
                var v = {x: 0, y: 0};
                if (v[r] = p ? n[r] : h[r], v[o] = Math.max(h[o], d[o]), v[a] = Math.min(0, d[a] + m[1 - i]), u.__rectSize = n[r], p) {
                    var _ = {x: 0, y: 0};
                    _[r] = Math.max(n[r] - d[r] - y, 0), _[o] = v[o], u.setClipPath(new Al({shape: _})), u.__rectSize = _[r]
                } else c.eachChild((function (t) {
                    t.attr({invisible: !0, silent: !0})
                }));
                var T = this._getPageInfo(t);
                return null != T.pageIndex && ju(l, {
                    x: T.contentPosition[0],
                    y: T.contentPosition[1]
                }, p ? t : null), this._updatePageInfoView(t, T), v
            }, e.prototype._pageGo = function (t, e, n) {
                var i = this._getPageInfo(e)[t];
                null != i && n.dispatchAction({type: "legendScroll", scrollDataIndex: i, legendId: e.id})
            }, e.prototype._updatePageInfoView = function (t, e) {
                var n = this._controllerGroup;
                mt(["pagePrev", "pageNext"], (function (i) {
                    var r = null != e[i + "DataIndex"], o = n.childOfName(i);
                    o && (o.setStyle("fill", r ? t.get("pageIconColor", !0) : t.get("pageIconInactiveColor", !0)), o.cursor = r ? "pointer" : "default")
                }));
                var i = n.childOfName("pageText"), r = t.get("pageFormatter"), o = e.pageIndex,
                    a = null != o ? o + 1 : 0, s = e.pageCount;
                i && r && i.setStyle("text", It(r) ? r.replace("{current}", null == a ? "" : a + "").replace("{total}", null == s ? "" : s + "") : r({
                    current: a,
                    total: s
                }))
            }, e.prototype._getPageInfo = function (t) {
                var e = t.get("scrollDataIndex", !0), n = this.getContentGroup(), i = this._containerGroup.__rectSize,
                    r = t.getOrient().index, o = gz[r], a = mz[r], s = this._findTargetItemIndex(e), l = n.children(),
                    u = l[s], c = l.length, h = c ? 1 : 0, d = {
                        contentPosition: [n.x, n.y],
                        pageCount: h,
                        pageIndex: h - 1,
                        pagePrevDataIndex: null,
                        pageNextDataIndex: null
                    };
                if (!u) return d;
                var p = v(u);
                d.contentPosition[r] = -p.s;
                for (var f = s + 1, g = p, m = p, y = null; f <= c; ++f) (!(y = v(l[f])) && m.e > g.s + i || y && !_(y, g.s)) && (g = m.i > g.i ? m : y) && (null == d.pageNextDataIndex && (d.pageNextDataIndex = g.i), ++d.pageCount), m = y;
                for (f = s - 1, g = p, m = p, y = null; f >= -1; --f) (y = v(l[f])) && _(m, y.s) || !(g.i < m.i) || (m = g, null == d.pagePrevDataIndex && (d.pagePrevDataIndex = g.i), ++d.pageCount, ++d.pageIndex), g = y;
                return d;

                function v(t) {
                    if (t) {
                        var e = t.getBoundingRect(), n = e[a] + t[a];
                        return {s: n, e: n + e[o], i: t.__legendDataIndex}
                    }
                }

                function _(t, e) {
                    return t.e >= e && t.s <= e + i
                }
            }, e.prototype._findTargetItemIndex = function (t) {
                return this._showController ? (this.getContentGroup().eachChild((function (i, r) {
                    var o = i.__legendDataIndex;
                    null == n && null != o && (n = r), o === t && (e = r)
                })), null != e ? e : n) : 0;
                var e, n
            }, e.type = "legend.scroll", e
        }(lz);
        const vz = yz;

        function _z(t) {
            Y_(hz), t.registerComponentModel(pz), t.registerComponentView(vz), function (t) {
                t.registerAction("legendScroll", "legendscroll", (function (t, e) {
                    var n = t.scrollDataIndex;
                    null != n && e.eachComponent({mainType: "legend", subType: "scroll", query: t}, (function (t) {
                        t.setScrollDataIndex(n)
                    }))
                }))
            }(t)
        }

        const Tz = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "dataZoom.inside", e.defaultOption = Oc(tH.defaultOption, {
                disabled: !1,
                zoomLock: !1,
                zoomOnMouseWheel: !0,
                moveOnMouseMove: !0,
                moveOnMouseWheel: !1,
                preventDefaultMouseMove: !0
            }), e
        }(tH);
        var xz = ha();

        function Sz(t, e) {
            if (e) {
                t.removeKey(e.model.uid);
                var n = e.controller;
                n && n.dispose()
            }
        }

        function Az(t, e) {
            t.isDisposed() || t.dispatchAction({
                type: "dataZoom",
                animation: {easing: "cubicOut", duration: 100},
                batch: e
            })
        }

        function bz(t, e, n, i) {
            return t.coordinateSystem.containPoint([n, i])
        }

        function Iz(t) {
            t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER, (function (t, e) {
                var n = xz(e), i = n.coordSysRecordMap || (n.coordSysRecordMap = jt());
                i.each((function (t) {
                    t.dataZoomInfoMap = null
                })), t.eachComponent({mainType: "dataZoom", subType: "inside"}, (function (t) {
                    mt(KF(t).infoList, (function (n) {
                        var r = n.model.uid, o = i.get(r) || i.set(r, function (t, e) {
                            var n = {
                                model: e,
                                containsPoint: St(bz, e),
                                dispatchAction: St(Az, t),
                                dataZoomInfoMap: null,
                                controller: null
                            }, i = n.controller = new xC(t.getZr());
                            return mt(["pan", "zoom", "scrollMove"], (function (t) {
                                i.on(t, (function (e) {
                                    var i = [];
                                    n.dataZoomInfoMap.each((function (r) {
                                        if (e.isAvailableBehavior(r.model.option)) {
                                            var o = (r.getRange || {})[t],
                                                a = o && o(r.dzReferCoordSysInfo, n.model.mainType, n.controller, e);
                                            !r.model.get("disabled", !0) && a && i.push({
                                                dataZoomId: r.model.id,
                                                start: a[0],
                                                end: a[1]
                                            })
                                        }
                                    })), i.length && n.dispatchAction(i)
                                }))
                            })), n
                        }(e, n.model));
                        (o.dataZoomInfoMap || (o.dataZoomInfoMap = jt())).set(t.uid, {
                            dzReferCoordSysInfo: n,
                            model: t,
                            getRange: null
                        })
                    }))
                })), i.each((function (t) {
                    var e, n = t.controller, r = t.dataZoomInfoMap;
                    if (r) {
                        var o = r.keys()[0];
                        null != o && (e = r.get(o))
                    }
                    if (e) {
                        var a = function (t) {
                            var e, n = "type_", i = {type_true: 2, type_move: 1, type_false: 0, type_undefined: -1},
                                r = !0;
                            return t.each((function (t) {
                                var o = t.model, a = !o.get("disabled", !0) && (!o.get("zoomLock", !0) || "move");
                                i[n + a] > i[n + e] && (e = a), r = r && o.get("preventDefaultMouseMove", !0)
                            })), {
                                controlType: e,
                                opt: {
                                    zoomOnMouseWheel: !0,
                                    moveOnMouseMove: !0,
                                    moveOnMouseWheel: !0,
                                    preventDefaultMouseMove: !!r
                                }
                            }
                        }(r);
                        n.enable(a.controlType, a.opt), n.setPointerChecker(t.containsPoint), $m(t, "dispatchAction", e.model.get("throttle", !0), "fixRate")
                    } else Sz(i, t)
                }))
            }))
        }

        var Ez = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.type = "dataZoom.inside", e
            }

            return G(e, t), e.prototype.render = function (e, n, i) {
                t.prototype.render.apply(this, arguments), e.noTarget() ? this._clear() : (this.range = e.getPercentRange(), function (t, e, n) {
                    xz(t).coordSysRecordMap.each((function (t) {
                        var i = t.dataZoomInfoMap.get(e.uid);
                        i && (i.getRange = n)
                    }))
                }(i, e, {pan: xt(Cz.pan, this), zoom: xt(Cz.zoom, this), scrollMove: xt(Cz.scrollMove, this)}))
            }, e.prototype.dispose = function () {
                this._clear(), t.prototype.dispose.apply(this, arguments)
            }, e.prototype._clear = function () {
                !function (t, e) {
                    for (var n = xz(t).coordSysRecordMap, i = n.keys(), r = 0; r < i.length; r++) {
                        var o = i[r], a = n.get(o), s = a.dataZoomInfoMap;
                        if (s) {
                            var l = e.uid;
                            s.get(l) && (s.removeKey(l), s.keys().length || Sz(n, a))
                        }
                    }
                }(this.api, this.dataZoomModel), this.range = null
            }, e.type = "dataZoom.inside", e
        }(nH), Cz = {
            zoom: function (t, e, n, i) {
                var r = this.range, o = r.slice(), a = t.axisModels[0];
                if (a) {
                    var s = wz[e](null, [i.originX, i.originY], a, n, t),
                        l = (s.signal > 0 ? s.pixelStart + s.pixelLength - s.pixel : s.pixel - s.pixelStart) / s.pixelLength * (o[1] - o[0]) + o[0],
                        u = Math.max(1 / i.scale, 0);
                    o[0] = (o[0] - l) * u + l, o[1] = (o[1] - l) * u + l;
                    var c = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
                    return BO(0, o, [0, 100], 0, c.minSpan, c.maxSpan), this.range = o, r[0] !== o[0] || r[1] !== o[1] ? o : void 0
                }
            }, pan: Dz((function (t, e, n, i, r, o) {
                var a = wz[i]([o.oldX, o.oldY], [o.newX, o.newY], e, r, n);
                return a.signal * (t[1] - t[0]) * a.pixel / a.pixelLength
            })), scrollMove: Dz((function (t, e, n, i, r, o) {
                return wz[i]([0, 0], [o.scrollDelta, o.scrollDelta], e, r, n).signal * (t[1] - t[0]) * o.scrollDelta
            }))
        };

        function Dz(t) {
            return function (e, n, i, r) {
                var o = this.range, a = o.slice(), s = e.axisModels[0];
                if (s) return BO(t(a, s, e, n, i, r), a, [0, 100], "all"), this.range = a, o[0] !== a[0] || o[1] !== a[1] ? a : void 0
            }
        }

        var wz = {
            grid: function (t, e, n, i, r) {
                var o = n.axis, a = {}, s = r.model.coordinateSystem.getRect();
                return t = t || [0, 0], "x" === o.dim ? (a.pixel = e[0] - t[0], a.pixelLength = s.width, a.pixelStart = s.x, a.signal = o.inverse ? 1 : -1) : (a.pixel = e[1] - t[1], a.pixelLength = s.height, a.pixelStart = s.y, a.signal = o.inverse ? -1 : 1), a
            }, polar: function (t, e, n, i, r) {
                var o = n.axis, a = {}, s = r.model.coordinateSystem, l = s.getRadiusAxis().getExtent(),
                    u = s.getAngleAxis().getExtent();
                return t = t ? s.pointToCoord(t) : [0, 0], e = s.pointToCoord(e), "radiusAxis" === n.mainType ? (a.pixel = e[0] - t[0], a.pixelLength = l[1] - l[0], a.pixelStart = l[0], a.signal = o.inverse ? 1 : -1) : (a.pixel = e[1] - t[1], a.pixelLength = u[1] - u[0], a.pixelStart = u[0], a.signal = o.inverse ? -1 : 1), a
            }, singleAxis: function (t, e, n, i, r) {
                var o = n.axis, a = r.model.coordinateSystem.getRect(), s = {};
                return t = t || [0, 0], "horizontal" === o.orient ? (s.pixel = e[0] - t[0], s.pixelLength = a.width, s.pixelStart = a.x, s.signal = o.inverse ? 1 : -1) : (s.pixel = e[1] - t[1], s.pixelLength = a.height, s.pixelStart = a.y, s.signal = o.inverse ? -1 : 1), s
            }
        };
        const Mz = Ez;

        function Nz(t) {
            cH(t), t.registerComponentModel(Tz), t.registerComponentView(Mz), Iz(t)
        }

        const Oz = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.type = "dataZoom.slider", e.layoutMode = "box", e.defaultOption = Oc(tH.defaultOption, {
                show: !0,
                right: "ph",
                top: "ph",
                width: "ph",
                height: "ph",
                left: null,
                bottom: null,
                borderColor: "#d2dbee",
                borderRadius: 3,
                backgroundColor: "rgba(47,69,84,0)",
                dataBackground: {lineStyle: {color: "#d2dbee", width: .5}, areaStyle: {color: "#d2dbee", opacity: .2}},
                selectedDataBackground: {
                    lineStyle: {color: "#8fb0f7", width: .5},
                    areaStyle: {color: "#8fb0f7", opacity: .2}
                },
                fillerColor: "rgba(135,175,274,0.2)",
                handleIcon: "path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",
                handleSize: "100%",
                handleStyle: {color: "#fff", borderColor: "#ACB8D1"},
                moveHandleSize: 7,
                moveHandleIcon: "path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",
                moveHandleStyle: {color: "#D2DBEE", opacity: .7},
                showDetail: !0,
                showDataShadow: "auto",
                realtime: !0,
                zoomLock: !1,
                textStyle: {color: "#6E7079"},
                brushSelect: !0,
                brushStyle: {color: "rgba(135,175,274,0.15)"},
                emphasis: {handleStyle: {borderColor: "#8FB0F7"}, moveHandleStyle: {color: "#8FB0F7"}}
            }), e
        }(tH);
        var Lz = Al, Rz = "horizontal", kz = "vertical", Pz = ["line", "bar", "candlestick", "scatter"],
            Gz = {easing: "cubicOut", duration: 100, delay: 0}, Bz = function (t) {
                function e() {
                    var n = null !== t && t.apply(this, arguments) || this;
                    return n.type = e.type, n._displayables = {}, n
                }

                return G(e, t), e.prototype.init = function (t, e) {
                    this.api = e, this._onBrush = xt(this._onBrush, this), this._onBrushEnd = xt(this._onBrushEnd, this)
                }, e.prototype.render = function (e, n, i, r) {
                    if (t.prototype.render.apply(this, arguments), $m(this, "_dispatchZoomAction", e.get("throttle"), "fixRate"), this._orient = e.getOrient(), !1 !== e.get("show")) {
                        if (e.noTarget()) return this._clear(), void this.group.removeAll();
                        r && "dataZoom" === r.type && r.from === this.uid || this._buildView(), this._updateView()
                    } else this.group.removeAll()
                }, e.prototype.dispose = function () {
                    this._clear(), t.prototype.dispose.apply(this, arguments)
                }, e.prototype._clear = function () {
                    Jm(this, "_dispatchZoomAction");
                    var t = this.api.getZr();
                    t.off("mousemove", this._onBrush), t.off("mouseup", this._onBrushEnd)
                }, e.prototype._buildView = function () {
                    var t = this.group;
                    t.removeAll(), this._brushing = !1, this._displayables.brushRect = null, this._resetLocation(), this._resetInterval();
                    var e = this._displayables.sliderGroup = new xo;
                    this._renderBackground(), this._renderHandle(), this._renderDataShadow(), t.add(e), this._positionGroup()
                }, e.prototype._resetLocation = function () {
                    var t = this.dataZoomModel, e = this.api, n = t.get("brushSelect") ? 7 : 0, i = this._findCoordRect(),
                        r = {width: e.getWidth(), height: e.getHeight()}, o = this._orient === Rz ? {
                            right: r.width - i.x - i.width,
                            top: r.height - 30 - 7 - n,
                            width: i.width,
                            height: 30
                        } : {right: 7, top: i.y, width: 30, height: i.height}, a = kh(t.option);
                    mt(["right", "top", "width", "height"], (function (t) {
                        "ph" === a[t] && (a[t] = o[t])
                    }));
                    var s = Nh(a, r);
                    this._location = {
                        x: s.x,
                        y: s.y
                    }, this._size = [s.width, s.height], this._orient === kz && this._size.reverse()
                }, e.prototype._positionGroup = function () {
                    var t = this.group, e = this._location, n = this._orient,
                        i = this.dataZoomModel.getFirstTargetAxisModel(), r = i && i.get("inverse"),
                        o = this._displayables.sliderGroup, a = (this._dataShadowInfo || {}).otherAxisInverse;
                    o.attr(n !== Rz || r ? n === Rz && r ? {
                        scaleY: a ? 1 : -1,
                        scaleX: -1
                    } : n !== kz || r ? {scaleY: a ? -1 : 1, scaleX: -1, rotation: Math.PI / 2} : {
                        scaleY: a ? -1 : 1,
                        scaleX: 1,
                        rotation: Math.PI / 2
                    } : {scaleY: a ? 1 : -1, scaleX: 1});
                    var s = t.getBoundingRect([o]);
                    t.x = e.x - s.x, t.y = e.y - s.y, t.markRedraw()
                }, e.prototype._getViewExtent = function () {
                    return [0, this._size[0]]
                }, e.prototype._renderBackground = function () {
                    var t = this.dataZoomModel, e = this._size, n = this._displayables.sliderGroup,
                        i = t.get("brushSelect");
                    n.add(new Lz({
                        silent: !0,
                        shape: {x: 0, y: 0, width: e[0], height: e[1]},
                        style: {fill: t.get("backgroundColor")},
                        z2: -40
                    }));
                    var r = new Lz({
                        shape: {x: 0, y: 0, width: e[0], height: e[1]},
                        style: {fill: "transparent"},
                        z2: 0,
                        onclick: xt(this._onClickPanel, this)
                    }), o = this.api.getZr();
                    i ? (r.on("mousedown", this._onBrushStart, this), r.cursor = "crosshair", o.on("mousemove", this._onBrush), o.on("mouseup", this._onBrushEnd)) : (o.off("mousemove", this._onBrush), o.off("mouseup", this._onBrushEnd)), n.add(r)
                }, e.prototype._renderDataShadow = function () {
                    var t = this._dataShadowInfo = this._prepareDataShadowInfo();
                    if (this._displayables.dataShadowSegs = [], t) {
                        var e = this._size, n = this._shadowSize || [], i = t.series, r = i.getRawData(),
                            o = i.getShadowDim && i.getShadowDim(),
                            a = o && r.getDimensionInfo(o) ? i.getShadowDim() : t.otherDim;
                        if (null != a) {
                            var s = this._shadowPolygonPts, l = this._shadowPolylinePts;
                            if (r !== this._shadowData || a !== this._shadowDim || e[0] !== n[0] || e[1] !== n[1]) {
                                var u = r.getDataExtent(a), c = .3 * (u[1] - u[0]);
                                u = [u[0] - c, u[1] + c];
                                var h, d = [0, e[1]], p = [0, e[0]], f = [[e[0], 0], [0, 0]], g = [],
                                    m = p[1] / (r.count() - 1), y = 0, v = Math.round(r.count() / e[0]);
                                r.each([a], (function (t, e) {
                                    if (v > 0 && e % v) y += m; else {
                                        var n = null == t || isNaN(t) || "" === t, i = n ? 0 : Do(t, u, d, !0);
                                        n && !h && e ? (f.push([f[f.length - 1][0], 0]), g.push([g[g.length - 1][0], 0])) : !n && h && (f.push([y, 0]), g.push([y, 0])), f.push([y, i]), g.push([y, i]), y += m, h = n
                                    }
                                })), s = this._shadowPolygonPts = f, l = this._shadowPolylinePts = g
                            }
                            this._shadowData = r, this._shadowDim = a, this._shadowSize = [e[0], e[1]];
                            for (var _ = this.dataZoomModel, T = 0; T < 3; T++) {
                                var x = S(1 === T);
                                this._displayables.sliderGroup.add(x), this._displayables.dataShadowSegs.push(x)
                            }
                        }
                    }

                    function S(t) {
                        var e = _.getModel(t ? "selectedDataBackground" : "dataBackground"), n = new xo, i = new Lg({
                            shape: {points: s},
                            segmentIgnoreThreshold: 1,
                            style: e.getModel("areaStyle").getAreaStyle(),
                            silent: !0,
                            z2: -20
                        }), r = new Pg({
                            shape: {points: l},
                            segmentIgnoreThreshold: 1,
                            style: e.getModel("lineStyle").getLineStyle(),
                            silent: !0,
                            z2: -19
                        });
                        return n.add(i), n.add(r), n
                    }
                }, e.prototype._prepareDataShadowInfo = function () {
                    var t = this.dataZoomModel, e = t.get("showDataShadow");
                    if (!1 !== e) {
                        var n, i = this.ecModel;
                        return t.eachTargetAxis((function (r, o) {
                            mt(t.getAxisProxy(r, o).getTargetSeriesModels(), (function (t) {
                                if (!(n || !0 !== e && pt(Pz, t.get("type")) < 0)) {
                                    var a, s = i.getComponent(XF(r), o).axis, l = function (t) {
                                        var e = {x: "y", y: "x", radius: "angle", angle: "radius"};
                                        return e[t]
                                    }(r), u = t.coordinateSystem;
                                    null != l && u.getOtherAxis && (a = u.getOtherAxis(s).inverse), l = t.getData().mapDimension(l), n = {
                                        thisAxis: s,
                                        series: t,
                                        thisDim: r,
                                        otherDim: l,
                                        otherAxisInverse: a
                                    }
                                }
                            }), this)
                        }), this), n
                    }
                }, e.prototype._renderHandle = function () {
                    var t = this.group, e = this._displayables, n = e.handles = [null, null],
                        i = e.handleLabels = [null, null], r = this._displayables.sliderGroup, o = this._size,
                        a = this.dataZoomModel, s = this.api, l = a.get("borderRadius") || 0, u = a.get("brushSelect"),
                        c = e.filler = new Lz({
                            silent: u,
                            style: {fill: a.get("fillerColor")},
                            textConfig: {position: "inside"}
                        });
                    r.add(c), r.add(new Lz({
                        silent: !0,
                        subPixelOptimize: !0,
                        shape: {x: 0, y: 0, width: o[0], height: o[1], r: l},
                        style: {
                            stroke: a.get("dataBackgroundColor") || a.get("borderColor"),
                            lineWidth: 1,
                            fill: "rgba(0,0,0,0)"
                        }
                    })), mt([0, 1], (function (e) {
                        var o = a.get("handleIcon");
                        !tv[o] && o.indexOf("path://") < 0 && o.indexOf("image://") < 0 && (o = "path://" + o);
                        var s = iv(o, -1, 0, 2, 2, null, !0);
                        s.attr({
                            cursor: Fz(this._orient),
                            draggable: !0,
                            drift: xt(this._onDragMove, this, e),
                            ondragend: xt(this._onDragEnd, this),
                            onmouseover: xt(this._showDataInfo, this, !0),
                            onmouseout: xt(this._showDataInfo, this, !1),
                            z2: 5
                        });
                        var l = s.getBoundingRect(), u = a.get("handleSize");
                        this._handleHeight = wo(u, this._size[1]), this._handleWidth = l.width / l.height * this._handleHeight, s.setStyle(a.getModel("handleStyle").getItemStyle()), s.style.strokeNoScale = !0, s.rectHover = !0, s.ensureState("emphasis").style = a.getModel(["emphasis", "handleStyle"]).getItemStyle(), Ru(s);
                        var c = a.get("handleColor");
                        null != c && (s.style.fill = c), r.add(n[e] = s);
                        var h = a.getModel("textStyle");
                        t.add(i[e] = new Fl({
                            silent: !0,
                            invisible: !0,
                            style: oc(h, {
                                x: 0,
                                y: 0,
                                text: "",
                                verticalAlign: "middle",
                                align: "center",
                                fill: h.getTextColor(),
                                font: h.getFont()
                            }),
                            z2: 10
                        }))
                    }), this);
                    var h = c;
                    if (u) {
                        var d = wo(a.get("moveHandleSize"), o[1]), p = e.moveHandle = new Al({
                                style: a.getModel("moveHandleStyle").getItemStyle(),
                                silent: !0,
                                shape: {r: [0, 0, 2, 2], y: o[1] - .5, height: d}
                            }), f = .8 * d,
                            g = e.moveHandleIcon = iv(a.get("moveHandleIcon"), -f / 2, -f / 2, f, f, "#fff", !0);
                        g.silent = !0, g.y = o[1] + d / 2 - .5, p.ensureState("emphasis").style = a.getModel(["emphasis", "moveHandleStyle"]).getItemStyle();
                        var m = Math.min(o[1] / 2, Math.max(d, 10));
                        (h = e.moveZone = new Al({
                            invisible: !0,
                            shape: {y: o[1] - m, height: d + m}
                        })).on("mouseover", (function () {
                            s.enterEmphasis(p)
                        })).on("mouseout", (function () {
                            s.leaveEmphasis(p)
                        })), r.add(p), r.add(g), r.add(h)
                    }
                    h.attr({
                        draggable: !0,
                        cursor: Fz(this._orient),
                        drift: xt(this._onDragMove, this, "all"),
                        ondragstart: xt(this._showDataInfo, this, !0),
                        ondragend: xt(this._onDragEnd, this),
                        onmouseover: xt(this._showDataInfo, this, !0),
                        onmouseout: xt(this._showDataInfo, this, !1)
                    })
                }, e.prototype._resetInterval = function () {
                    var t = this._range = this.dataZoomModel.getPercentRange(), e = this._getViewExtent();
                    this._handleEnds = [Do(t[0], [0, 100], e, !0), Do(t[1], [0, 100], e, !0)]
                }, e.prototype._updateInterval = function (t, e) {
                    var n = this.dataZoomModel, i = this._handleEnds, r = this._getViewExtent(),
                        o = n.findRepresentativeAxisProxy().getMinMaxSpan(), a = [0, 100];
                    BO(e, i, r, n.get("zoomLock") ? "all" : t, null != o.minSpan ? Do(o.minSpan, a, r, !0) : null, null != o.maxSpan ? Do(o.maxSpan, a, r, !0) : null);
                    var s = this._range, l = this._range = No([Do(i[0], r, a, !0), Do(i[1], r, a, !0)]);
                    return !s || s[0] !== l[0] || s[1] !== l[1]
                }, e.prototype._updateView = function (t) {
                    var e = this._displayables, n = this._handleEnds, i = No(n.slice()), r = this._size;
                    mt([0, 1], (function (t) {
                        var i = e.handles[t], o = this._handleHeight;
                        i.attr({scaleX: o / 2, scaleY: o / 2, x: n[t] + (t ? -1 : 1), y: r[1] / 2 - o / 2})
                    }), this), e.filler.setShape({x: i[0], y: 0, width: i[1] - i[0], height: r[1]});
                    var o = {x: i[0], width: i[1] - i[0]};
                    e.moveHandle && (e.moveHandle.setShape(o), e.moveZone.setShape(o), e.moveZone.getBoundingRect(), e.moveHandleIcon && e.moveHandleIcon.attr("x", o.x + o.width / 2));
                    for (var a = e.dataShadowSegs, s = [0, i[0], i[1], r[0]], l = 0; l < a.length; l++) {
                        var u = a[l], c = u.getClipPath();
                        c || (c = new Al, u.setClipPath(c)), c.setShape({
                            x: s[l],
                            y: 0,
                            width: s[l + 1] - s[l],
                            height: r[1]
                        })
                    }
                    this._updateDataInfo(t)
                }, e.prototype._updateDataInfo = function (t) {
                    var e = this.dataZoomModel, n = this._displayables, i = n.handleLabels, r = this._orient, o = ["", ""];
                    if (e.get("showDetail")) {
                        var a = e.findRepresentativeAxisProxy();
                        if (a) {
                            var s = a.getAxisModel().axis, l = this._range, u = t ? a.calculateDataWindow({
                                start: l[0],
                                end: l[1]
                            }).valueWindow : a.getDataValueWindow();
                            o = [this._formatLabel(u[0], s), this._formatLabel(u[1], s)]
                        }
                    }
                    var c = No(this._handleEnds.slice());

                    function h(t) {
                        var e = Im(n.handles[t].parent, this.group), a = Cm(0 === t ? "right" : "left", e),
                            s = this._handleWidth / 2 + 5, l = Em([c[t] + (0 === t ? -s : s), this._size[1] / 2], e);
                        i[t].setStyle({
                            x: l[0],
                            y: l[1],
                            verticalAlign: r === Rz ? "middle" : a,
                            align: r === Rz ? a : "center",
                            text: o[t]
                        })
                    }

                    h.call(this, 0), h.call(this, 1)
                }, e.prototype._formatLabel = function (t, e) {
                    var n = this.dataZoomModel, i = n.get("labelFormatter"), r = n.get("labelPrecision");
                    null != r && "auto" !== r || (r = e.getPixelPrecision());
                    var o = null == t || isNaN(t) ? "" : "category" === e.type || "time" === e.type ? e.scale.getLabel({value: Math.round(t)}) : t.toFixed(Math.min(r, 20));
                    return bt(i) ? i(t, o) : It(i) ? i.replace("{value}", o) : o
                }, e.prototype._showDataInfo = function (t) {
                    t = this._dragging || t;
                    var e = this._displayables, n = e.handleLabels;
                    n[0].attr("invisible", !t), n[1].attr("invisible", !t), e.moveHandle && this.api[t ? "enterEmphasis" : "leaveEmphasis"](e.moveHandle, 1)
                }, e.prototype._onDragMove = function (t, e, n, i) {
                    this._dragging = !0, Ue(i.event);
                    var r = Em([e, n], this._displayables.sliderGroup.getLocalTransform(), !0),
                        o = this._updateInterval(t, r[0]), a = this.dataZoomModel.get("realtime");
                    this._updateView(!a), o && a && this._dispatchZoomAction(!0)
                }, e.prototype._onDragEnd = function () {
                    this._dragging = !1, this._showDataInfo(!1), !this.dataZoomModel.get("realtime") && this._dispatchZoomAction(!1)
                }, e.prototype._onClickPanel = function (t) {
                    var e = this._size, n = this._displayables.sliderGroup.transformCoordToLocal(t.offsetX, t.offsetY);
                    if (!(n[0] < 0 || n[0] > e[0] || n[1] < 0 || n[1] > e[1])) {
                        var i = this._handleEnds, r = (i[0] + i[1]) / 2, o = this._updateInterval("all", n[0] - r);
                        this._updateView(), o && this._dispatchZoomAction(!1)
                    }
                }, e.prototype._onBrushStart = function (t) {
                    var e = t.offsetX, n = t.offsetY;
                    this._brushStart = new tn(e, n), this._brushing = !0, this._brushStartTime = +new Date
                }, e.prototype._onBrushEnd = function (t) {
                    if (this._brushing) {
                        var e = this._displayables.brushRect;
                        if (this._brushing = !1, e) {
                            e.attr("ignore", !0);
                            var n = e.shape;
                            if (!(+new Date - this._brushStartTime < 200 && Math.abs(n.width) < 5)) {
                                var i = this._getViewExtent(), r = [0, 100];
                                this._range = No([Do(n.x, i, r, !0), Do(n.x + n.width, i, r, !0)]), this._handleEnds = [n.x, n.x + n.width], this._updateView(), this._dispatchZoomAction(!1)
                            }
                        }
                    }
                }, e.prototype._onBrush = function (t) {
                    this._brushing && (Ue(t.event), this._updateBrushRect(t.offsetX, t.offsetY))
                }, e.prototype._updateBrushRect = function (t, e) {
                    var n = this._displayables, i = this.dataZoomModel, r = n.brushRect;
                    r || (r = n.brushRect = new Lz({
                        silent: !0,
                        style: i.getModel("brushStyle").getItemStyle()
                    }), n.sliderGroup.add(r)), r.attr("ignore", !1);
                    var o = this._brushStart, a = this._displayables.sliderGroup, s = a.transformCoordToLocal(t, e),
                        l = a.transformCoordToLocal(o.x, o.y), u = this._size;
                    s[0] = Math.max(Math.min(u[0], s[0]), 0), r.setShape({x: l[0], y: 0, width: s[0] - l[0], height: u[1]})
                }, e.prototype._dispatchZoomAction = function (t) {
                    var e = this._range;
                    this.api.dispatchAction({
                        type: "dataZoom",
                        from: this.uid,
                        dataZoomId: this.dataZoomModel.id,
                        animation: t ? Gz : null,
                        start: e[0],
                        end: e[1]
                    })
                }, e.prototype._findCoordRect = function () {
                    var t, e = KF(this.dataZoomModel).infoList;
                    if (!t && e.length) {
                        var n = e[0].model.coordinateSystem;
                        t = n.getRect && n.getRect()
                    }
                    if (!t) {
                        var i = this.api.getWidth(), r = this.api.getHeight();
                        t = {x: .2 * i, y: .2 * r, width: .6 * i, height: .6 * r}
                    }
                    return t
                }, e.type = "dataZoom.slider", e
            }(nH);

        function Fz(t) {
            return "vertical" === t ? "ns-resize" : "ew-resize"
        }

        const Hz = Bz;

        function Uz(t) {
            t.registerComponentModel(Oz), t.registerComponentView(Hz), cH(t)
        }

        var Vz = {
            get: function (t, e, n) {
                var i = lt((zz[t] || {})[e]);
                return n && At(i) ? i[i.length - 1] : i
            }
        }, zz = {
            color: {active: ["#006edd", "#e0ffff"], inactive: ["rgba(0,0,0,0)"]},
            colorHue: {active: [0, 360], inactive: [0, 0]},
            colorSaturation: {active: [.3, 1], inactive: [0, 0]},
            colorLightness: {active: [.9, .5], inactive: [0, 0]},
            colorAlpha: {active: [.3, 1], inactive: [0, 0]},
            opacity: {active: [.3, 1], inactive: [0, 0]},
            symbol: {active: ["circle", "roundRect", "diamond"], inactive: ["none"]},
            symbolSize: {active: [10, 50], inactive: [0, 0]}
        };
        const Wz = Vz;
        var Yz = MM.mapVisual, qz = MM.eachVisual, jz = At, Xz = mt, Zz = No, Kz = Do, Qz = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.stateList = ["inRange", "outOfRange"], n.replacableOptionKeys = ["inRange", "outOfRange", "target", "controller", "color"], n.layoutMode = {
                    type: "box",
                    ignoreSize: !0
                }, n.dataBound = [-1 / 0, 1 / 0], n.targetVisuals = {}, n.controllerVisuals = {}, n
            }

            return G(e, t), e.prototype.init = function (t, e, n) {
                this.mergeDefaultAndTheme(t, n)
            }, e.prototype.optionUpdated = function (t, e) {
                var n = this.option;
                !e && RU(n, t, this.replacableOptionKeys), this.textStyleModel = this.getModel("textStyle"), this.resetItemSize(), this.completeVisualOption()
            }, e.prototype.resetVisual = function (t) {
                var e = this.stateList;
                t = xt(t, this), this.controllerVisuals = LU(this.option.controller, e, t), this.targetVisuals = LU(this.option.target, e, t)
            }, e.prototype.getItemSymbol = function () {
                return null
            }, e.prototype.getTargetSeriesIndices = function () {
                var t = this.option.seriesIndex, e = [];
                return null == t || "all" === t ? this.ecModel.eachSeries((function (t, n) {
                    e.push(n)
                })) : e = Jo(t), e
            }, e.prototype.eachTargetSeries = function (t, e) {
                mt(this.getTargetSeriesIndices(), (function (n) {
                    var i = this.ecModel.getSeriesByIndex(n);
                    i && t.call(e, i)
                }), this)
            }, e.prototype.isTargetSeries = function (t) {
                var e = !1;
                return this.eachTargetSeries((function (n) {
                    n === t && (e = !0)
                })), e
            }, e.prototype.formatValueText = function (t, e, n) {
                var i, r = this.option, o = r.precision, a = this.dataBound, s = r.formatter;
                n = n || ["<", ">"], At(t) && (t = t.slice(), i = !0);
                var l = e ? t : i ? [u(t[0]), u(t[1])] : u(t);
                return It(s) ? s.replace("{value}", i ? l[0] : l).replace("{value2}", i ? l[1] : l) : bt(s) ? i ? s(t[0], t[1]) : s(t) : i ? t[0] === a[0] ? n[0] + " " + l[1] : t[1] === a[1] ? n[1] + " " + l[0] : l[0] + " - " + l[1] : l;

                function u(t) {
                    return t === a[0] ? "min" : t === a[1] ? "max" : (+t).toFixed(Math.min(o, 20))
                }
            }, e.prototype.resetExtent = function () {
                var t = this.option, e = Zz([t.min, t.max]);
                this._dataExtent = e
            }, e.prototype.getDataDimensionIndex = function (t) {
                var e = this.option.dimension;
                if (null != e) return t.getDimensionIndex(e);
                for (var n = t.dimensions, i = n.length - 1; i >= 0; i--) {
                    var r = n[i], o = t.getDimensionInfo(r);
                    if (!o.isCalculationCoord) return o.storeDimIndex
                }
            }, e.prototype.getExtent = function () {
                return this._dataExtent.slice()
            }, e.prototype.completeVisualOption = function () {
                var t = this.ecModel, e = this.option, n = {inRange: e.inRange, outOfRange: e.outOfRange},
                    i = e.target || (e.target = {}), r = e.controller || (e.controller = {});
                ut(i, n), ut(r, n);
                var o = this.isCategory();

                function a(n) {
                    jz(e.color) && !n.inRange && (n.inRange = {color: e.color.slice().reverse()}), n.inRange = n.inRange || {color: t.get("gradientColor")}
                }

                a.call(this, i), a.call(this, r), function (t, e, n) {
                    var i = t[e], r = t[n];
                    i && !r && (r = t[n] = {}, Xz(i, (function (t, e) {
                        if (MM.isValidType(e)) {
                            var n = Wz.get(e, "inactive", o);
                            null != n && (r[e] = n, "color" !== e || r.hasOwnProperty("opacity") || r.hasOwnProperty("colorAlpha") || (r.opacity = [0, 0]))
                        }
                    })))
                }.call(this, i, "inRange", "outOfRange"), function (t) {
                    var e = (t.inRange || {}).symbol || (t.outOfRange || {}).symbol,
                        n = (t.inRange || {}).symbolSize || (t.outOfRange || {}).symbolSize,
                        i = this.get("inactiveColor"), r = this.getItemSymbol() || "roundRect";
                    Xz(this.stateList, (function (a) {
                        var s = this.itemSize, l = t[a];
                        l || (l = t[a] = {color: o ? i : [i]}), null == l.symbol && (l.symbol = e && lt(e) || (o ? r : [r])), null == l.symbolSize && (l.symbolSize = n && lt(n) || (o ? s[0] : [s[0], s[0]])), l.symbol = Yz(l.symbol, (function (t) {
                            return "none" === t ? r : t
                        }));
                        var u = l.symbolSize;
                        if (null != u) {
                            var c = -1 / 0;
                            qz(u, (function (t) {
                                t > c && (c = t)
                            })), l.symbolSize = Yz(u, (function (t) {
                                return Kz(t, [0, c], [0, s[0]], !0)
                            }))
                        }
                    }), this)
                }.call(this, r)
            }, e.prototype.resetItemSize = function () {
                this.itemSize = [parseFloat(this.get("itemWidth")), parseFloat(this.get("itemHeight"))]
            }, e.prototype.isCategory = function () {
                return !!this.option.categories
            }, e.prototype.setSelected = function (t) {
            }, e.prototype.getSelected = function () {
                return null
            }, e.prototype.getValueState = function (t) {
                return null
            }, e.prototype.getVisualMeta = function (t) {
                return null
            }, e.type = "visualMap", e.dependencies = ["series"], e.defaultOption = {
                show: !0,
                z: 4,
                seriesIndex: "all",
                min: 0,
                max: 200,
                left: 0,
                right: null,
                top: null,
                bottom: 0,
                itemWidth: null,
                itemHeight: null,
                inverse: !1,
                orient: "vertical",
                backgroundColor: "rgba(0,0,0,0)",
                borderColor: "#ccc",
                contentColor: "#5793f3",
                inactiveColor: "#aaa",
                borderWidth: 0,
                padding: 5,
                textGap: 10,
                precision: 0,
                textStyle: {color: "#333"}
            }, e
        }(Fh);
        const $z = Qz;
        var Jz = [20, 140], tW = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.optionUpdated = function (e, n) {
                t.prototype.optionUpdated.apply(this, arguments), this.resetExtent(), this.resetVisual((function (t) {
                    t.mappingMethod = "linear", t.dataExtent = this.getExtent()
                })), this._resetRange()
            }, e.prototype.resetItemSize = function () {
                t.prototype.resetItemSize.apply(this, arguments);
                var e = this.itemSize;
                (null == e[0] || isNaN(e[0])) && (e[0] = Jz[0]), (null == e[1] || isNaN(e[1])) && (e[1] = Jz[1])
            }, e.prototype._resetRange = function () {
                var t = this.getExtent(), e = this.option.range;
                !e || e.auto ? (t.auto = 1, this.option.range = t) : At(e) && (e[0] > e[1] && e.reverse(), e[0] = Math.max(e[0], t[0]), e[1] = Math.min(e[1], t[1]))
            }, e.prototype.completeVisualOption = function () {
                t.prototype.completeVisualOption.apply(this, arguments), mt(this.stateList, (function (t) {
                    var e = this.option.controller[t].symbolSize;
                    e && e[0] !== e[1] && (e[0] = e[1] / 3)
                }), this)
            }, e.prototype.setSelected = function (t) {
                this.option.range = t.slice(), this._resetRange()
            }, e.prototype.getSelected = function () {
                var t = this.getExtent(), e = No((this.get("range") || []).slice());
                return e[0] > t[1] && (e[0] = t[1]), e[1] > t[1] && (e[1] = t[1]), e[0] < t[0] && (e[0] = t[0]), e[1] < t[0] && (e[1] = t[0]), e
            }, e.prototype.getValueState = function (t) {
                var e = this.option.range, n = this.getExtent();
                return (e[0] <= n[0] || e[0] <= t) && (e[1] >= n[1] || t <= e[1]) ? "inRange" : "outOfRange"
            }, e.prototype.findTargetDataIndices = function (t) {
                var e = [];
                return this.eachTargetSeries((function (n) {
                    var i = [], r = n.getData();
                    r.each(this.getDataDimensionIndex(r), (function (e, n) {
                        t[0] <= e && e <= t[1] && i.push(n)
                    }), this), e.push({seriesId: n.id, dataIndex: i})
                }), this), e
            }, e.prototype.getVisualMeta = function (t) {
                var e = eW(this, "outOfRange", this.getExtent()), n = eW(this, "inRange", this.option.range.slice()),
                    i = [];

                function r(e, n) {
                    i.push({value: e, color: t(e, n)})
                }

                for (var o = 0, a = 0, s = n.length, l = e.length; a < l && (!n.length || e[a] <= n[0]); a++) e[a] < n[o] && r(e[a], "outOfRange");
                for (var u = 1; o < s; o++, u = 0) u && i.length && r(n[o], "outOfRange"), r(n[o], "inRange");
                for (u = 1; a < l; a++) (!n.length || n[n.length - 1] < e[a]) && (u && (i.length && r(i[i.length - 1].value, "outOfRange"), u = 0), r(e[a], "outOfRange"));
                var c = i.length;
                return {stops: i, outerColors: [c ? i[0].color : "transparent", c ? i[c - 1].color : "transparent"]}
            }, e.type = "visualMap.continuous", e.defaultOption = Oc($z.defaultOption, {
                align: "auto",
                calculable: !1,
                hoverLink: !0,
                realtime: !0,
                handleIcon: "path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",
                handleSize: "120%",
                handleStyle: {borderColor: "#fff", borderWidth: 1},
                indicatorIcon: "circle",
                indicatorSize: "50%",
                indicatorStyle: {
                    borderColor: "#fff",
                    borderWidth: 2,
                    shadowBlur: 2,
                    shadowOffsetX: 1,
                    shadowOffsetY: 1,
                    shadowColor: "rgba(0,0,0,0.2)"
                }
            }), e
        }($z);

        function eW(t, e, n) {
            if (n[0] === n[1]) return n.slice();
            for (var i = (n[1] - n[0]) / 200, r = n[0], o = [], a = 0; a <= 200 && r < n[1]; a++) o.push(r), r += i;
            return o.push(n[1]), o
        }

        const nW = tW;
        const iW = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n.autoPositionValues = {left: 1, right: 1, top: 1, bottom: 1}, n
            }

            return G(e, t), e.prototype.init = function (t, e) {
                this.ecModel = t, this.api = e
            }, e.prototype.render = function (t, e, n, i) {
                this.visualMapModel = t, !1 !== t.get("show") ? this.doRender(t, e, n, i) : this.group.removeAll()
            }, e.prototype.renderBackground = function (t) {
                var e = this.visualMapModel, n = _h(e.get("padding") || 0), i = t.getBoundingRect();
                t.add(new Al({
                    z2: -1,
                    silent: !0,
                    shape: {x: i.x - n[3], y: i.y - n[0], width: i.width + n[3] + n[1], height: i.height + n[0] + n[2]},
                    style: {
                        fill: e.get("backgroundColor"),
                        stroke: e.get("borderColor"),
                        lineWidth: e.get("borderWidth")
                    }
                }))
            }, e.prototype.getControllerVisual = function (t, e, n) {
                var i = (n = n || {}).forceState, r = this.visualMapModel, o = {};
                if ("color" === e) {
                    var a = r.get("contentColor");
                    o.color = a
                }

                function s(t) {
                    return o[t]
                }

                function l(t, e) {
                    o[t] = e
                }

                var u = r.controllerVisuals[i || r.getValueState(t)];
                return mt(MM.prepareVisualTypes(u), (function (i) {
                    var r = u[i];
                    n.convertOpacityToAlpha && "opacity" === i && (i = "colorAlpha", r = u.__alphaForOpacity), MM.dependsOn(i, e) && r && r.applyVisual(t, s, l)
                })), o[e]
            }, e.prototype.positionGroup = function (t) {
                var e = this.visualMapModel, n = this.api;
                Oh(t, e.getBoxLayoutParams(), {width: n.getWidth(), height: n.getHeight()})
            }, e.prototype.doRender = function (t, e, n, i) {
            }, e.type = "visualMap", e
        }(Gf);
        var rW = [["left", "right", "width"], ["top", "bottom", "height"]];

        function oW(t, e, n) {
            var i = t.option, r = i.align;
            if (null != r && "auto" !== r) return r;
            for (var o = {
                width: e.getWidth(),
                height: e.getHeight()
            }, a = "horizontal" === i.orient ? 1 : 0, s = rW[a], l = [0, null, 10], u = {}, c = 0; c < 3; c++) u[rW[1 - a][c]] = l[c], u[s[c]] = 2 === c ? n[0] : i[s[c]];
            var h = [["x", "width", 3], ["y", "height", 0]][a], d = Nh(u, o, i.padding);
            return s[(d.margin[h[2]] || 0) + d[h[0]] + .5 * d[h[1]] < .5 * o[h[1]] ? 0 : 1]
        }

        function aW(t, e) {
            return mt(t || [], (function (t) {
                null != t.dataIndex && (t.dataIndexInside = t.dataIndex, t.dataIndex = null), t.highlightKey = "visualMap" + (e ? e.componentIndex : "")
            })), t
        }

        var sW = Do, lW = mt, uW = Math.min, cW = Math.max, hW = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n._shapes = {}, n._dataInterval = [], n._handleEnds = [], n._hoverLinkDataIndices = [], n
            }

            return G(e, t), e.prototype.doRender = function (t, e, n, i) {
                this._api = n, i && "selectDataRange" === i.type && i.from === this.uid || this._buildView()
            }, e.prototype._buildView = function () {
                this.group.removeAll();
                var t = this.visualMapModel, e = this.group;
                this._orient = t.get("orient"), this._useHandle = t.get("calculable"), this._resetInterval(), this._renderBar(e);
                var n = t.get("text");
                this._renderEndsText(e, n, 0), this._renderEndsText(e, n, 1), this._updateView(!0), this.renderBackground(e), this._updateView(), this._enableHoverLinkToSeries(), this._enableHoverLinkFromSeries(), this.positionGroup(e)
            }, e.prototype._renderEndsText = function (t, e, n) {
                if (e) {
                    var i = e[1 - n];
                    i = null != i ? i + "" : "";
                    var r = this.visualMapModel, o = r.get("textGap"), a = r.itemSize, s = this._shapes.mainGroup,
                        l = this._applyTransform([a[0] / 2, 0 === n ? -o : a[1] + o], s),
                        u = this._applyTransform(0 === n ? "bottom" : "top", s), c = this._orient,
                        h = this.visualMapModel.textStyleModel;
                    this.group.add(new Fl({
                        style: oc(h, {
                            x: l[0],
                            y: l[1],
                            verticalAlign: "horizontal" === c ? "middle" : u,
                            align: "horizontal" === c ? u : "center",
                            text: i
                        })
                    }))
                }
            }, e.prototype._renderBar = function (t) {
                var e = this.visualMapModel, n = this._shapes, i = e.itemSize, r = this._orient, o = this._useHandle,
                    a = oW(e, this.api, i), s = n.mainGroup = this._createBarGroup(a), l = new xo;
                s.add(l), l.add(n.outOfRange = dW()), l.add(n.inRange = dW(null, o ? fW(this._orient) : null, xt(this._dragHandle, this, "all", !1), xt(this._dragHandle, this, "all", !0))), l.setClipPath(new Al({
                    shape: {
                        x: 0,
                        y: 0,
                        width: i[0],
                        height: i[1],
                        r: 3
                    }
                }));
                var u = e.textStyleModel.getTextRect("国"), c = cW(u.width, u.height);
                o && (n.handleThumbs = [], n.handleLabels = [], n.handleLabelPoints = [], this._createHandle(e, s, 0, i, c, r), this._createHandle(e, s, 1, i, c, r)), this._createIndicator(e, s, i, c, r), t.add(s)
            }, e.prototype._createHandle = function (t, e, n, i, r, o) {
                var a = xt(this._dragHandle, this, n, !1), s = xt(this._dragHandle, this, n, !0),
                    l = ao(t.get("handleSize"), i[0]), u = iv(t.get("handleIcon"), -l / 2, -l / 2, l, l, null, !0),
                    c = fW(this._orient);
                u.attr({
                    cursor: c, draggable: !0, drift: a, ondragend: s, onmousemove: function (t) {
                        Ue(t.event)
                    }
                }), u.x = i[0] / 2, u.useStyle(t.getModel("handleStyle").getItemStyle()), u.setStyle({
                    strokeNoScale: !0,
                    strokeFirst: !0
                }), u.style.lineWidth *= 2, u.ensureState("emphasis").style = t.getModel(["emphasis", "handleStyle"]).getItemStyle(), Hu(u, !0), e.add(u);
                var h = this.visualMapModel.textStyleModel, d = new Fl({
                    cursor: c, draggable: !0, drift: a, onmousemove: function (t) {
                        Ue(t.event)
                    }, ondragend: s, style: oc(h, {x: 0, y: 0, text: ""})
                });
                d.ensureState("blur").style = {opacity: .1}, d.stateTransition = {duration: 200}, this.group.add(d);
                var p = [l, 0], f = this._shapes;
                f.handleThumbs[n] = u, f.handleLabelPoints[n] = p, f.handleLabels[n] = d
            }, e.prototype._createIndicator = function (t, e, n, i, r) {
                var o = ao(t.get("indicatorSize"), n[0]),
                    a = iv(t.get("indicatorIcon"), -o / 2, -o / 2, o, o, null, !0);
                a.attr({cursor: "move", invisible: !0, silent: !0, x: n[0] / 2});
                var s = t.getModel("indicatorStyle").getItemStyle();
                if (a instanceof gl) {
                    var l = a.style;
                    a.useStyle(ht({image: l.image, x: l.x, y: l.y, width: l.width, height: l.height}, s))
                } else a.useStyle(s);
                e.add(a);
                var u = this.visualMapModel.textStyleModel,
                    c = new Fl({silent: !0, invisible: !0, style: oc(u, {x: 0, y: 0, text: ""})});
                this.group.add(c);
                var h = [("horizontal" === r ? i / 2 : 6) + n[0] / 2, 0], d = this._shapes;
                d.indicator = a, d.indicatorLabel = c, d.indicatorLabelPoint = h, this._firstShowIndicator = !0
            }, e.prototype._dragHandle = function (t, e, n, i) {
                if (this._useHandle) {
                    if (this._dragging = !e, !e) {
                        var r = this._applyTransform([n, i], this._shapes.mainGroup, !0);
                        this._updateInterval(t, r[1]), this._hideIndicator(), this._updateView()
                    }
                    e === !this.visualMapModel.get("realtime") && this.api.dispatchAction({
                        type: "selectDataRange",
                        from: this.uid,
                        visualMapId: this.visualMapModel.id,
                        selected: this._dataInterval.slice()
                    }), e ? !this._hovering && this._clearHoverLinkToSeries() : pW(this.visualMapModel) && this._doHoverLinkToSeries(this._handleEnds[t], !1)
                }
            }, e.prototype._resetInterval = function () {
                var t = this.visualMapModel, e = this._dataInterval = t.getSelected(), n = t.getExtent(),
                    i = [0, t.itemSize[1]];
                this._handleEnds = [sW(e[0], n, i, !0), sW(e[1], n, i, !0)]
            }, e.prototype._updateInterval = function (t, e) {
                e = e || 0;
                var n = this.visualMapModel, i = this._handleEnds, r = [0, n.itemSize[1]];
                BO(e, i, r, t, 0);
                var o = n.getExtent();
                this._dataInterval = [sW(i[0], r, o, !0), sW(i[1], r, o, !0)]
            }, e.prototype._updateView = function (t) {
                var e = this.visualMapModel, n = e.getExtent(), i = this._shapes, r = [0, e.itemSize[1]],
                    o = t ? r : this._handleEnds, a = this._createBarVisual(this._dataInterval, n, o, "inRange"),
                    s = this._createBarVisual(n, n, r, "outOfRange");
                i.inRange.setStyle({fill: a.barColor}).setShape("points", a.barPoints), i.outOfRange.setStyle({fill: s.barColor}).setShape("points", s.barPoints), this._updateHandle(o, a)
            }, e.prototype._createBarVisual = function (t, e, n, i) {
                var r = {forceState: i, convertOpacityToAlpha: !0}, o = this._makeColorGradient(t, r),
                    a = [this.getControllerVisual(t[0], "symbolSize", r), this.getControllerVisual(t[1], "symbolSize", r)],
                    s = this._createBarPoints(n, a);
                return {
                    barColor: new $g(0, 0, 0, 1, o),
                    barPoints: s,
                    handlesColor: [o[0].color, o[o.length - 1].color]
                }
            }, e.prototype._makeColorGradient = function (t, e) {
                var n = [], i = (t[1] - t[0]) / 100;
                n.push({color: this.getControllerVisual(t[0], "color", e), offset: 0});
                for (var r = 1; r < 100; r++) {
                    var o = t[0] + i * r;
                    if (o > t[1]) break;
                    n.push({color: this.getControllerVisual(o, "color", e), offset: r / 100})
                }
                return n.push({color: this.getControllerVisual(t[1], "color", e), offset: 1}), n
            }, e.prototype._createBarPoints = function (t, e) {
                var n = this.visualMapModel.itemSize;
                return [[n[0] - e[0], t[0]], [n[0], t[0]], [n[0], t[1]], [n[0] - e[1], t[1]]]
            }, e.prototype._createBarGroup = function (t) {
                var e = this._orient, n = this.visualMapModel.get("inverse");
                return new xo("horizontal" !== e || n ? "horizontal" === e && n ? {
                    scaleX: "bottom" === t ? -1 : 1,
                    rotation: -Math.PI / 2
                } : "vertical" !== e || n ? {scaleX: "left" === t ? 1 : -1} : {
                    scaleX: "left" === t ? 1 : -1,
                    scaleY: -1
                } : {scaleX: "bottom" === t ? 1 : -1, rotation: Math.PI / 2})
            }, e.prototype._updateHandle = function (t, e) {
                if (this._useHandle) {
                    var n = this._shapes, i = this.visualMapModel, r = n.handleThumbs, o = n.handleLabels,
                        a = i.itemSize, s = i.getExtent();
                    lW([0, 1], (function (l) {
                        var u = r[l];
                        u.setStyle("fill", e.handlesColor[l]), u.y = t[l];
                        var c = sW(t[l], [0, a[1]], s, !0), h = this.getControllerVisual(c, "symbolSize");
                        u.scaleX = u.scaleY = h / a[0], u.x = a[0] - h / 2;
                        var d = Em(n.handleLabelPoints[l], Im(u, this.group));
                        o[l].setStyle({
                            x: d[0],
                            y: d[1],
                            text: i.formatValueText(this._dataInterval[l]),
                            verticalAlign: "middle",
                            align: "vertical" === this._orient ? this._applyTransform("left", n.mainGroup) : "center"
                        })
                    }), this)
                }
            }, e.prototype._showIndicator = function (t, e, n, i) {
                var r = this.visualMapModel, o = r.getExtent(), a = r.itemSize, s = [0, a[1]], l = this._shapes,
                    u = l.indicator;
                if (u) {
                    u.attr("invisible", !1);
                    var c = this.getControllerVisual(t, "color", {convertOpacityToAlpha: !0}),
                        h = this.getControllerVisual(t, "symbolSize"), d = sW(t, o, s, !0), p = a[0] - h / 2,
                        f = {x: u.x, y: u.y};
                    u.y = d, u.x = p;
                    var g = Em(l.indicatorLabelPoint, Im(u, this.group)), m = l.indicatorLabel;
                    m.attr("invisible", !1);
                    var y = this._applyTransform("left", l.mainGroup), v = "horizontal" === this._orient;
                    m.setStyle({
                        text: (n || "") + r.formatValueText(e),
                        verticalAlign: v ? y : "middle",
                        align: v ? "center" : y
                    });
                    var _ = {x: p, y: d, style: {fill: c}}, T = {style: {x: g[0], y: g[1]}};
                    if (r.ecModel.isAnimationEnabled() && !this._firstShowIndicator) {
                        var x = {duration: 100, easing: "cubicInOut", additive: !0};
                        u.x = f.x, u.y = f.y, u.animateTo(_, x), m.animateTo(T, x)
                    } else u.attr(_), m.attr(T);
                    this._firstShowIndicator = !1;
                    var S = this._shapes.handleLabels;
                    if (S) for (var A = 0; A < S.length; A++) this._api.enterBlur(S[A])
                }
            }, e.prototype._enableHoverLinkToSeries = function () {
                var t = this;
                this._shapes.mainGroup.on("mousemove", (function (e) {
                    if (t._hovering = !0, !t._dragging) {
                        var n = t.visualMapModel.itemSize,
                            i = t._applyTransform([e.offsetX, e.offsetY], t._shapes.mainGroup, !0, !0);
                        i[1] = uW(cW(0, i[1]), n[1]), t._doHoverLinkToSeries(i[1], 0 <= i[0] && i[0] <= n[0])
                    }
                })).on("mouseout", (function () {
                    t._hovering = !1, !t._dragging && t._clearHoverLinkToSeries()
                }))
            }, e.prototype._enableHoverLinkFromSeries = function () {
                var t = this.api.getZr();
                this.visualMapModel.option.hoverLink ? (t.on("mouseover", this._hoverLinkFromSeriesMouseOver, this), t.on("mouseout", this._hideIndicator, this)) : this._clearHoverLinkFromSeries()
            }, e.prototype._doHoverLinkToSeries = function (t, e) {
                var n = this.visualMapModel, i = n.itemSize;
                if (n.option.hoverLink) {
                    var r = [0, i[1]], o = n.getExtent();
                    t = uW(cW(r[0], t), r[1]);
                    var a = function (t, e, n) {
                        var i = 6, r = t.get("hoverLinkDataSize");
                        r && (i = sW(r, e, n, !0) / 2);
                        return i
                    }(n, o, r), s = [t - a, t + a], l = sW(t, r, o, !0), u = [sW(s[0], r, o, !0), sW(s[1], r, o, !0)];
                    s[0] < r[0] && (u[0] = -1 / 0), s[1] > r[1] && (u[1] = 1 / 0), e && (u[0] === -1 / 0 ? this._showIndicator(l, u[1], "< ", a) : u[1] === 1 / 0 ? this._showIndicator(l, u[0], "> ", a) : this._showIndicator(l, l, "≈ ", a));
                    var c = this._hoverLinkDataIndices, h = [];
                    (e || pW(n)) && (h = this._hoverLinkDataIndices = n.findTargetDataIndices(u));
                    var d = function (t, e) {
                        var n = {}, i = {};
                        return r(t || [], n), r(e || [], i, n), [o(n), o(i)];

                        function r(t, e, n) {
                            for (var i = 0, r = t.length; i < r; i++) {
                                var o = sa(t[i].seriesId, null);
                                if (null == o) return;
                                for (var a = Jo(t[i].dataIndex), s = n && n[o], l = 0, u = a.length; l < u; l++) {
                                    var c = a[l];
                                    s && s[c] ? s[c] = null : (e[o] || (e[o] = {}))[c] = 1
                                }
                            }
                        }

                        function o(t, e) {
                            var n = [];
                            for (var i in t) if (t.hasOwnProperty(i) && null != t[i]) if (e) n.push(+i); else {
                                var r = o(t[i], !0);
                                r.length && n.push({seriesId: i, dataIndex: r})
                            }
                            return n
                        }
                    }(c, h);
                    this._dispatchHighDown("downplay", aW(d[0], n)), this._dispatchHighDown("highlight", aW(d[1], n))
                }
            }, e.prototype._hoverLinkFromSeriesMouseOver = function (t) {
                var e;
                if (Wy(t.target, (function (t) {
                    var n = Hl(t);
                    if (null != n.dataIndex) return e = n, !0
                }), !0), e) {
                    var n = this.ecModel.getSeriesByIndex(e.seriesIndex), i = this.visualMapModel;
                    if (i.isTargetSeries(n)) {
                        var r = n.getData(e.dataType), o = r.getStore().get(i.getDataDimensionIndex(r), e.dataIndex);
                        isNaN(o) || this._showIndicator(o, o)
                    }
                }
            }, e.prototype._hideIndicator = function () {
                var t = this._shapes;
                t.indicator && t.indicator.attr("invisible", !0), t.indicatorLabel && t.indicatorLabel.attr("invisible", !0);
                var e = this._shapes.handleLabels;
                if (e) for (var n = 0; n < e.length; n++) this._api.leaveBlur(e[n])
            }, e.prototype._clearHoverLinkToSeries = function () {
                this._hideIndicator();
                var t = this._hoverLinkDataIndices;
                this._dispatchHighDown("downplay", aW(t, this.visualMapModel)), t.length = 0
            }, e.prototype._clearHoverLinkFromSeries = function () {
                this._hideIndicator();
                var t = this.api.getZr();
                t.off("mouseover", this._hoverLinkFromSeriesMouseOver), t.off("mouseout", this._hideIndicator)
            }, e.prototype._applyTransform = function (t, e, n, i) {
                var r = Im(e, i ? null : this.group);
                return At(t) ? Em(t, r, n) : Cm(t, r, n)
            }, e.prototype._dispatchHighDown = function (t, e) {
                e && e.length && this.api.dispatchAction({type: t, batch: e})
            }, e.prototype.dispose = function () {
                this._clearHoverLinkFromSeries(), this._clearHoverLinkToSeries()
            }, e.prototype.remove = function () {
                this._clearHoverLinkFromSeries(), this._clearHoverLinkToSeries()
            }, e.type = "visualMap.continuous", e
        }(iW);

        function dW(t, e, n, i) {
            return new Lg({
                shape: {points: t}, draggable: !!n, cursor: e, drift: n, onmousemove: function (t) {
                    Ue(t.event)
                }, ondragend: i
            })
        }

        function pW(t) {
            var e = t.get("hoverLinkOnHandle");
            return !!(null == e ? t.get("realtime") : e)
        }

        function fW(t) {
            return "vertical" === t ? "ns-resize" : "ew-resize"
        }

        const gW = hW;
        var mW = {type: "selectDataRange", event: "dataRangeSelected", update: "update"}, yW = function (t, e) {
            e.eachComponent({mainType: "visualMap", query: t}, (function (e) {
                e.setSelected(t.selected)
            }))
        }, vW = [{
            createOnAllSeries: !0, reset: function (t, e) {
                var n = [];
                return e.eachComponent("visualMap", (function (e) {
                    var i, r, o, a, s, l = t.pipelineContext;
                    !e.isTargetSeries(t) || l && l.large || n.push((i = e.stateList, r = e.targetVisuals, o = xt(e.getValueState, e), a = e.getDataDimensionIndex(t.getData()), s = {}, mt(i, (function (t) {
                        var e = MM.prepareVisualTypes(r[t]);
                        s[t] = e
                    })), {
                        progress: function (t, e) {
                            var n, i;

                            function l(t) {
                                return Fy(e, i, t)
                            }

                            function u(t, n) {
                                Uy(e, i, t, n)
                            }

                            null != a && (n = e.getDimensionIndex(a));
                            for (var c = e.getStore(); null != (i = t.next());) {
                                var h = e.getRawDataItem(i);
                                if (!h || !1 !== h.visualMap) for (var d = null != a ? c.get(n, i) : i, p = o(d), f = r[p], g = s[p], m = 0, y = g.length; m < y; m++) {
                                    var v = g[m];
                                    f[v] && f[v].applyVisual(d, l, u)
                                }
                            }
                        }
                    }))
                })), n
            }
        }, {
            createOnAllSeries: !0, reset: function (t, e) {
                var n = t.getData(), i = [];
                e.eachComponent("visualMap", (function (e) {
                    if (e.isTargetSeries(t)) {
                        var r = e.getVisualMeta(xt(_W, null, t, e)) || {stops: [], outerColors: []},
                            o = e.getDataDimensionIndex(n);
                        o >= 0 && (r.dimension = o, i.push(r))
                    }
                })), t.getData().setVisual("visualMeta", i)
            }
        }];

        function _W(t, e, n, i) {
            for (var r = e.targetVisuals[i], o = MM.prepareVisualTypes(r), a = {color: Hy(t.getData(), "color")}, s = 0, l = o.length; s < l; s++) {
                var u = o[s], c = r["opacity" === u ? "__alphaForOpacity" : u];
                c && c.applyVisual(n, h, d)
            }
            return a.color;

            function h(t) {
                return a[t]
            }

            function d(t, e) {
                a[t] = e
            }
        }

        var TW = mt;

        function xW(t) {
            var e = t && t.visualMap;
            At(e) || (e = e ? [e] : []), TW(e, (function (t) {
                if (t) {
                    SW(t, "splitList") && !SW(t, "pieces") && (t.pieces = t.splitList, delete t.splitList);
                    var e = t.pieces;
                    e && At(e) && TW(e, (function (t) {
                        Dt(t) && (SW(t, "start") && !SW(t, "min") && (t.min = t.start), SW(t, "end") && !SW(t, "max") && (t.max = t.end))
                    }))
                }
            }))
        }

        function SW(t, e) {
            return t && t.hasOwnProperty && t.hasOwnProperty(e)
        }

        var AW = !1;

        function bW(t) {
            AW || (AW = !0, t.registerSubTypeDefaulter("visualMap", (function (t) {
                return t.categories || (t.pieces ? t.pieces.length > 0 : t.splitNumber > 0) && !t.calculable ? "piecewise" : "continuous"
            })), t.registerAction(mW, yW), mt(vW, (function (e) {
                t.registerVisual(t.PRIORITY.VISUAL.COMPONENT, e)
            })), t.registerPreprocessor(xW))
        }

        function IW(t) {
            t.registerComponentModel(nW), t.registerComponentView(gW), bW(t)
        }

        var EW = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n._pieceList = [], n
            }

            return G(e, t), e.prototype.optionUpdated = function (e, n) {
                t.prototype.optionUpdated.apply(this, arguments), this.resetExtent();
                var i = this._mode = this._determineMode();
                this._pieceList = [], CW[this._mode].call(this, this._pieceList), this._resetSelected(e, n);
                var r = this.option.categories;
                this.resetVisual((function (t, e) {
                    "categories" === i ? (t.mappingMethod = "category", t.categories = lt(r)) : (t.dataExtent = this.getExtent(), t.mappingMethod = "piecewise", t.pieceList = yt(this._pieceList, (function (t) {
                        return t = lt(t), "inRange" !== e && (t.visual = null), t
                    })))
                }))
            }, e.prototype.completeVisualOption = function () {
                var e = this.option, n = {}, i = MM.listVisualTypes(), r = this.isCategory();

                function o(t, e, n) {
                    return t && t[e] && t[e].hasOwnProperty(n)
                }

                mt(e.pieces, (function (t) {
                    mt(i, (function (e) {
                        t.hasOwnProperty(e) && (n[e] = 1)
                    }))
                })), mt(n, (function (t, n) {
                    var i = !1;
                    mt(this.stateList, (function (t) {
                        i = i || o(e, t, n) || o(e.target, t, n)
                    }), this), !i && mt(this.stateList, (function (t) {
                        (e[t] || (e[t] = {}))[n] = Wz.get(n, "inRange" === t ? "active" : "inactive", r)
                    }))
                }), this), t.prototype.completeVisualOption.apply(this, arguments)
            }, e.prototype._resetSelected = function (t, e) {
                var n = this.option, i = this._pieceList, r = (e ? n : t).selected || {};
                if (n.selected = r, mt(i, (function (t, e) {
                    var n = this.getSelectedMapKey(t);
                    r.hasOwnProperty(n) || (r[n] = !0)
                }), this), "single" === n.selectedMode) {
                    var o = !1;
                    mt(i, (function (t, e) {
                        var n = this.getSelectedMapKey(t);
                        r[n] && (o ? r[n] = !1 : o = !0)
                    }), this)
                }
            }, e.prototype.getItemSymbol = function () {
                return this.get("itemSymbol")
            }, e.prototype.getSelectedMapKey = function (t) {
                return "categories" === this._mode ? t.value + "" : t.index + ""
            }, e.prototype.getPieceList = function () {
                return this._pieceList
            }, e.prototype._determineMode = function () {
                var t = this.option;
                return t.pieces && t.pieces.length > 0 ? "pieces" : this.option.categories ? "categories" : "splitNumber"
            }, e.prototype.setSelected = function (t) {
                this.option.selected = lt(t)
            }, e.prototype.getValueState = function (t) {
                var e = MM.findPieceIndex(t, this._pieceList);
                return null != e && this.option.selected[this.getSelectedMapKey(this._pieceList[e])] ? "inRange" : "outOfRange"
            }, e.prototype.findTargetDataIndices = function (t) {
                var e = [], n = this._pieceList;
                return this.eachTargetSeries((function (i) {
                    var r = [], o = i.getData();
                    o.each(this.getDataDimensionIndex(o), (function (e, i) {
                        MM.findPieceIndex(e, n) === t && r.push(i)
                    }), this), e.push({seriesId: i.id, dataIndex: r})
                }), this), e
            }, e.prototype.getRepresentValue = function (t) {
                var e;
                if (this.isCategory()) e = t.value; else if (null != t.value) e = t.value; else {
                    var n = t.interval || [];
                    e = n[0] === -1 / 0 && n[1] === 1 / 0 ? 0 : (n[0] + n[1]) / 2
                }
                return e
            }, e.prototype.getVisualMeta = function (t) {
                if (!this.isCategory()) {
                    var e = [], n = ["", ""], i = this, r = this._pieceList.slice();
                    if (r.length) {
                        var o = r[0].interval[0];
                        o !== -1 / 0 && r.unshift({interval: [-1 / 0, o]}), (o = r[r.length - 1].interval[1]) !== 1 / 0 && r.push({interval: [o, 1 / 0]})
                    } else r.push({interval: [-1 / 0, 1 / 0]});
                    var a = -1 / 0;
                    return mt(r, (function (t) {
                        var e = t.interval;
                        e && (e[0] > a && s([a, e[0]], "outOfRange"), s(e.slice()), a = e[1])
                    }), this), {stops: e, outerColors: n}
                }

                function s(r, o) {
                    var a = i.getRepresentValue({interval: r});
                    o || (o = i.getValueState(a));
                    var s = t(a, o);
                    r[0] === -1 / 0 ? n[0] = s : r[1] === 1 / 0 ? n[1] = s : e.push({
                        value: r[0],
                        color: s
                    }, {value: r[1], color: s})
                }
            }, e.type = "visualMap.piecewise", e.defaultOption = Oc($z.defaultOption, {
                selected: null,
                minOpen: !1,
                maxOpen: !1,
                align: "auto",
                itemWidth: 20,
                itemHeight: 14,
                itemSymbol: "roundRect",
                pieces: null,
                categories: null,
                splitNumber: 5,
                selectedMode: "multiple",
                itemGap: 10,
                hoverLink: !0
            }), e
        }($z), CW = {
            splitNumber: function (t) {
                var e = this.option, n = Math.min(e.precision, 20), i = this.getExtent(), r = e.splitNumber;
                r = Math.max(parseInt(r, 10), 1), e.splitNumber = r;
                for (var o = (i[1] - i[0]) / r; +o.toFixed(n) !== o && n < 5;) n++;
                e.precision = n, o = +o.toFixed(n), e.minOpen && t.push({interval: [-1 / 0, i[0]], close: [0, 0]});
                for (var a = 0, s = i[0]; a < r; s += o, a++) {
                    var l = a === r - 1 ? i[1] : s + o;
                    t.push({interval: [s, l], close: [1, 1]})
                }
                e.maxOpen && t.push({interval: [i[1], 1 / 0], close: [0, 0]}), Wo(t), mt(t, (function (t, e) {
                    t.index = e, t.text = this.formatValueText(t.interval)
                }), this)
            }, categories: function (t) {
                var e = this.option;
                mt(e.categories, (function (e) {
                    t.push({text: this.formatValueText(e, !0), value: e})
                }), this), DW(e, t)
            }, pieces: function (t) {
                var e = this.option;
                mt(e.pieces, (function (e, n) {
                    Dt(e) || (e = {value: e});
                    var i = {text: "", index: n};
                    if (null != e.label && (i.text = e.label), e.hasOwnProperty("value")) {
                        var r = i.value = e.value;
                        i.interval = [r, r], i.close = [1, 1]
                    } else {
                        for (var o = i.interval = [], a = i.close = [0, 0], s = [1, 0, 1], l = [-1 / 0, 1 / 0], u = [], c = 0; c < 2; c++) {
                            for (var h = [["gte", "gt", "min"], ["lte", "lt", "max"]][c], d = 0; d < 3 && null == o[c]; d++) o[c] = e[h[d]], a[c] = s[d], u[c] = 2 === d;
                            null == o[c] && (o[c] = l[c])
                        }
                        u[0] && o[1] === 1 / 0 && (a[0] = 0), u[1] && o[0] === -1 / 0 && (a[1] = 0), o[0] === o[1] && a[0] && a[1] && (i.value = o[0])
                    }
                    i.visual = MM.retrieveVisuals(e), t.push(i)
                }), this), DW(e, t), Wo(t), mt(t, (function (t) {
                    var e = t.close, n = [["<", "≤"][e[1]], [">", "≥"][e[0]]];
                    t.text = t.text || this.formatValueText(null != t.value ? t.value : t.interval, !1, n)
                }), this)
            }
        };

        function DW(t, e) {
            var n = t.inverse;
            ("vertical" === t.orient ? !n : n) && e.reverse()
        }

        const wW = EW;
        const MW = function (t) {
            function e() {
                var n = null !== t && t.apply(this, arguments) || this;
                return n.type = e.type, n
            }

            return G(e, t), e.prototype.doRender = function () {
                var t = this.group;
                t.removeAll();
                var e = this.visualMapModel, n = e.get("textGap"), i = e.textStyleModel, r = i.getFont(),
                    o = i.getTextColor(), a = this._getItemAlign(), s = e.itemSize, l = this._getViewData(),
                    u = l.endsText, c = Rt(e.get("showLabel", !0), !u);
                u && this._renderEndsText(t, u[0], s, c, a), mt(l.viewPieceList, (function (i) {
                    var l = i.piece, u = new xo;
                    u.onclick = xt(this._onItemClick, this, l), this._enableHoverLink(u, i.indexInModelPieceList);
                    var h = e.getRepresentValue(l);
                    if (this._createItemSymbol(u, h, [0, 0, s[0], s[1]]), c) {
                        var d = this.visualMapModel.getValueState(h);
                        u.add(new Fl({
                            style: {
                                x: "right" === a ? -n : s[0] + n,
                                y: s[1] / 2,
                                text: l.text,
                                verticalAlign: "middle",
                                align: a,
                                font: r,
                                fill: o,
                                opacity: "outOfRange" === d ? .5 : 1
                            }
                        }))
                    }
                    t.add(u)
                }), this), u && this._renderEndsText(t, u[1], s, c, a), Mh(e.get("orient"), t, e.get("itemGap")), this.renderBackground(t), this.positionGroup(t)
            }, e.prototype._enableHoverLink = function (t, e) {
                var n = this;
                t.on("mouseover", (function () {
                    return i("highlight")
                })).on("mouseout", (function () {
                    return i("downplay")
                }));
                var i = function (t) {
                    var i = n.visualMapModel;
                    i.option.hoverLink && n.api.dispatchAction({type: t, batch: aW(i.findTargetDataIndices(e), i)})
                }
            }, e.prototype._getItemAlign = function () {
                var t = this.visualMapModel, e = t.option;
                if ("vertical" === e.orient) return oW(t, this.api, t.itemSize);
                var n = e.align;
                return n && "auto" !== n || (n = "left"), n
            }, e.prototype._renderEndsText = function (t, e, n, i, r) {
                if (e) {
                    var o = new xo, a = this.visualMapModel.textStyleModel;
                    o.add(new Fl({
                        style: oc(a, {
                            x: i ? "right" === r ? n[0] : 0 : n[0] / 2,
                            y: n[1] / 2,
                            verticalAlign: "middle",
                            align: i ? r : "center",
                            text: e
                        })
                    })), t.add(o)
                }
            }, e.prototype._getViewData = function () {
                var t = this.visualMapModel, e = yt(t.getPieceList(), (function (t, e) {
                    return {piece: t, indexInModelPieceList: e}
                })), n = t.get("text"), i = t.get("orient"), r = t.get("inverse");
                return ("horizontal" === i ? r : !r) ? e.reverse() : n && (n = n.slice().reverse()), {
                    viewPieceList: e,
                    endsText: n
                }
            }, e.prototype._createItemSymbol = function (t, e, n) {
                t.add(iv(this.getControllerVisual(e, "symbol"), n[0], n[1], n[2], n[3], this.getControllerVisual(e, "color")))
            }, e.prototype._onItemClick = function (t) {
                var e = this.visualMapModel, n = e.option, i = n.selectedMode;
                if (i) {
                    var r = lt(n.selected), o = e.getSelectedMapKey(t);
                    "single" === i || !0 === i ? (r[o] = !0, mt(r, (function (t, e) {
                        r[e] = e === o
                    }))) : r[o] = !r[o], this.api.dispatchAction({
                        type: "selectDataRange",
                        from: this.uid,
                        visualMapId: this.visualMapModel.id,
                        selected: r
                    })
                }
            }, e.type = "visualMap.piecewise", e
        }(iW);

        function NW(t) {
            t.registerComponentModel(wW), t.registerComponentView(MW), bW(t)
        }

        var OW = {label: {enabled: !0}, decal: {show: !1}}, LW = ha(), RW = {};

        function kW(t, e) {
            var n = t.getModel("aria");
            if (n.get("enabled")) {
                var i = lt(OW);
                ut(i.label, t.getLocaleModel().get("aria"), !1), ut(n.option, i, !1), function () {
                    if (n.getModel("decal").get("show")) {
                        var e = jt();
                        t.eachSeries((function (t) {
                            if (!t.isColorBySeries()) {
                                var n = e.get(t.type);
                                n || (n = {}, e.set(t.type, n)), LW(t).scope = n
                            }
                        })), t.eachRawSeries((function (e) {
                            if (!t.isSeriesFiltered(e)) if (bt(e.enableAriaDecal)) e.enableAriaDecal(); else {
                                var n = e.getData();
                                if (e.isColorBySeries()) {
                                    var i = dd(e.ecModel, e.name, RW, t.getSeriesCount()), r = n.getVisual("decal");
                                    n.setVisual("decal", u(r, i))
                                } else {
                                    var o = e.getRawData(), a = {}, s = LW(e).scope;
                                    n.each((function (t) {
                                        var e = n.getRawIndex(t);
                                        a[e] = t
                                    }));
                                    var l = o.count();
                                    o.each((function (t) {
                                        var i = a[t], r = o.getName(t) || t + "", c = dd(e.ecModel, r, s, l),
                                            h = n.getItemVisual(i, "decal");
                                        n.setItemVisual(i, "decal", u(h, c))
                                    }))
                                }
                            }

                            function u(t, e) {
                                var n = t ? ht(ht({}, e), t) : e;
                                return n.dirty = !0, n
                            }
                        }))
                    }
                }(), function () {
                    var i = t.getLocaleModel().get("aria"), o = n.getModel("label");
                    if (o.option = dt(o.option, i), !o.get("enabled")) return;
                    var a = e.getZr().dom;
                    if (o.get("description")) return void a.setAttribute("aria-label", o.get("description"));
                    var s, l = t.getSeriesCount(), u = o.get(["data", "maxCount"]) || 10,
                        c = o.get(["series", "maxCount"]) || 10, h = Math.min(l, c);
                    if (l < 1) return;
                    var d = function () {
                        var e = t.get("title");
                        e && e.length && (e = e[0]);
                        return e && e.text
                    }();
                    s = d ? r(o.get(["general", "withTitle"]), {title: d}) : o.get(["general", "withoutTitle"]);
                    var p = [];
                    s += r(l > 1 ? o.get(["series", "multiple", "prefix"]) : o.get(["series", "single", "prefix"]), {seriesCount: l}), t.eachSeries((function (e, n) {
                        if (n < h) {
                            var i = void 0, a = e.get("name") ? "withName" : "withoutName";
                            i = r(i = l > 1 ? o.get(["series", "multiple", a]) : o.get(["series", "single", a]), {
                                seriesId: e.seriesIndex,
                                seriesName: e.get("name"),
                                seriesType: (_ = e.subType, t.getLocaleModel().get(["series", "typeNames"])[_] || "自定义图")
                            });
                            var s = e.getData();
                            if (s.count() > u) i += r(o.get(["data", "partialData"]), {displayCnt: u}); else i += o.get(["data", "allData"]);
                            for (var c = o.get(["data", "separator", "middle"]), d = o.get(["data", "separator", "end"]), f = [], g = 0; g < s.count(); g++) if (g < u) {
                                var m = s.getName(g), y = s.getValues(g),
                                    v = o.get(["data", m ? "withName" : "withoutName"]);
                                f.push(r(v, {name: m, value: y.join(c)}))
                            }
                            i += f.join(c) + d, p.push(i)
                        }
                        var _
                    }));
                    var f = o.getModel(["series", "multiple", "separator"]), g = f.get("middle"), m = f.get("end");
                    s += p.join(g) + m, a.setAttribute("aria-label", s)
                }()
            }

            function r(t, e) {
                if (!It(t)) return t;
                var n = t;
                return mt(e, (function (t, e) {
                    n = n.replace(new RegExp("\\{\\s*" + e + "\\s*\\}", "g"), t)
                })), n
            }
        }

        function PW(t) {
            if (t && t.aria) {
                var e = t.aria;
                null != e.show && (e.enabled = e.show), e.label = e.label || {}, mt(["description", "general", "series", "data"], (function (t) {
                    null != e[t] && (e.label[t] = e[t])
                }))
            }
        }

        var GW = {value: "eq", "<": "lt", "<=": "lte", ">": "gt", ">=": "gte", "=": "eq", "!=": "ne", "<>": "ne"},
            BW = function () {
                function t(t) {
                    var e;
                    if (null == (this._condVal = It(t) ? new RegExp(t) : (e = t, "[object RegExp]" === K.call(e) ? t : null))) {
                        0, Dp("")
                    }
                }

                return t.prototype.evaluate = function (t) {
                    var e = typeof t;
                    return It(e) ? this._condVal.test(t) : !!Ct(e) && this._condVal.test(t + "")
                }, t
            }(), FW = function () {
                function t() {
                }

                return t.prototype.evaluate = function () {
                    return this.value
                }, t
            }(), HW = function () {
                function t() {
                }

                return t.prototype.evaluate = function () {
                    for (var t = this.children, e = 0; e < t.length; e++) if (!t[e].evaluate()) return !1;
                    return !0
                }, t
            }(), UW = function () {
                function t() {
                }

                return t.prototype.evaluate = function () {
                    for (var t = this.children, e = 0; e < t.length; e++) if (t[e].evaluate()) return !0;
                    return !1
                }, t
            }(), VW = function () {
                function t() {
                }

                return t.prototype.evaluate = function () {
                    return !this.child.evaluate()
                }, t
            }(), zW = function () {
                function t() {
                }

                return t.prototype.evaluate = function () {
                    for (var t = !!this.valueParser, e = (0, this.getValue)(this.valueGetterParam), n = t ? this.valueParser(e) : null, i = 0; i < this.subCondList.length; i++) if (!this.subCondList[i].evaluate(t ? n : e)) return !1;
                    return !0
                }, t
            }();

        function WW(t, e) {
            if (!0 === t || !1 === t) {
                var n = new FW;
                return n.value = t, n
            }
            return qW(t) || Dp(""), t.and ? YW("and", t, e) : t.or ? YW("or", t, e) : t.not ? function (t, e) {
                var n = t.not, i = "";
                0;
                qW(n) || Dp(i);
                var r = new VW;
                r.child = WW(n, e), r.child || Dp(i);
                return r
            }(t, e) : function (t, e) {
                for (var n = "", i = e.prepareGetValue(t), r = [], o = Tt(t), a = t.parser, s = a ? Np(a) : null, l = 0; l < o.length; l++) {
                    var u = o[l];
                    if ("parser" !== u && !e.valueGetterAttrMap.get(u)) {
                        var c = Qt(GW, u) ? GW[u] : u, h = t[u], d = s ? s(h) : h,
                            p = Pp(c, d) || "reg" === c && new BW(d);
                        p || Dp(n), r.push(p)
                    }
                }
                r.length || Dp(n);
                var f = new zW;
                return f.valueGetterParam = i, f.valueParser = s, f.getValue = e.getValue, f.subCondList = r, f
            }(t, e)
        }

        function YW(t, e, n) {
            var i = e[t];
            At(i) || Dp(""), i.length || Dp("");
            var r = "and" === t ? new HW : new UW;
            return r.children = yt(i, (function (t) {
                return WW(t, n)
            })), r.children.length || Dp(""), r
        }

        function qW(t) {
            return Dt(t) && !gt(t)
        }

        var jW = function () {
            function t(t, e) {
                this._cond = WW(t, e)
            }

            return t.prototype.evaluate = function () {
                return this._cond.evaluate()
            }, t
        }();
        var XW = {
            type: "echarts:filter", transform: function (t) {
                for (var e, n, i, r = t.upstream, o = (n = t.config, i = {
                    valueGetterAttrMap: jt({dimension: !0}),
                    prepareGetValue: function (t) {
                        var e = t.dimension;
                        Qt(t, "dimension") || Dp("");
                        var n = r.getDimensionInfo(e);
                        return n || Dp(""), {dimIdx: n.index}
                    },
                    getValue: function (t) {
                        return r.retrieveValueFromItem(e, t.dimIdx)
                    }
                }, new jW(n, i)), a = [], s = 0, l = r.count(); s < l; s++) e = r.getRawDataItem(s), o.evaluate() && a.push(e);
                return {data: a}
            }
        };
        var ZW = {
            type: "echarts:sort", transform: function (t) {
                var e = t.upstream, n = t.config, i = "", r = Jo(n);
                r.length || Dp(i);
                var o = [];
                mt(r, (function (t) {
                    var n = t.dimension, r = t.order, a = t.parser, s = t.incomparable;
                    if (null == n && Dp(i), "asc" !== r && "desc" !== r && Dp(i), s && "min" !== s && "max" !== s) {
                        0, Dp("")
                    }
                    if ("asc" !== r && "desc" !== r) {
                        0, Dp("")
                    }
                    var l = e.getDimensionInfo(n);
                    l || Dp(i);
                    var u = a ? Np(a) : null;
                    a && !u && Dp(i), o.push({dimIdx: l.index, parser: u, comparator: new Rp(r, s)})
                }));
                var a = e.sourceFormat;
                a !== Yh && a !== qh && Dp(i);
                for (var s = [], l = 0, u = e.count(); l < u; l++) s.push(e.getRawDataItem(l));
                return s.sort((function (t, n) {
                    for (var i = 0; i < o.length; i++) {
                        var r = o[i], a = e.retrieveValueFromItem(t, r.dimIdx),
                            s = e.retrieveValueFromItem(n, r.dimIdx);
                        r.parser && (a = r.parser(a), s = r.parser(s));
                        var l = r.comparator.evaluate(a, s);
                        if (0 !== l) return l
                    }
                    return 0
                })), {data: s}
            }
        };
        var KW = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.type = "dataset", e
            }

            return G(e, t), e.prototype.init = function (e, n, i) {
                t.prototype.init.call(this, e, n, i), this._sourceManager = new nf(this), rf(this)
            }, e.prototype.mergeOption = function (e, n) {
                t.prototype.mergeOption.call(this, e, n), rf(this)
            }, e.prototype.optionUpdated = function () {
                this._sourceManager.dirty()
            }, e.prototype.getSourceManager = function () {
                return this._sourceManager
            }, e.type = "dataset", e.defaultOption = {seriesLayoutBy: Kh}, e
        }(Fh), QW = function (t) {
            function e() {
                var e = null !== t && t.apply(this, arguments) || this;
                return e.type = "dataset", e
            }

            return G(e, t), e.type = "dataset", e
        }(Gf);
        var $W = Hs.CMD;

        function JW(t, e) {
            return Math.abs(t - e) < 1e-5
        }

        function tY(t) {
            var e, n, i, r, o, a = t.data, s = t.len(), l = [], u = 0, c = 0, h = 0, d = 0;

            function p(t, n) {
                e && e.length > 2 && l.push(e), e = [t, n]
            }

            function f(t, n, i, r) {
                JW(t, i) && JW(n, r) || e.push(t, n, i, r, i, r)
            }

            function g(t, n, i, r, o, a) {
                var s = Math.abs(n - t), l = 4 * Math.tan(s / 4) / 3, u = n < t ? -1 : 1, c = Math.cos(t),
                    h = Math.sin(t), d = Math.cos(n), p = Math.sin(n), f = c * o + i, g = h * a + r, m = d * o + i,
                    y = p * a + r, v = o * l * u, _ = a * l * u;
                e.push(f - v * h, g + _ * c, m + v * p, y - _ * d, m, y)
            }

            for (var m = 0; m < s;) {
                var y = a[m++], v = 1 === m;
                switch (v && (h = u = a[m], d = c = a[m + 1], y !== $W.L && y !== $W.C && y !== $W.Q || (e = [h, d])), y) {
                    case $W.M:
                        u = h = a[m++], c = d = a[m++], p(h, d);
                        break;
                    case $W.L:
                        f(u, c, n = a[m++], i = a[m++]), u = n, c = i;
                        break;
                    case $W.C:
                        e.push(a[m++], a[m++], a[m++], a[m++], u = a[m++], c = a[m++]);
                        break;
                    case $W.Q:
                        n = a[m++], i = a[m++], r = a[m++], o = a[m++], e.push(u + 2 / 3 * (n - u), c + 2 / 3 * (i - c), r + 2 / 3 * (n - r), o + 2 / 3 * (i - o), r, o), u = r, c = o;
                        break;
                    case $W.A:
                        var _ = a[m++], T = a[m++], x = a[m++], S = a[m++], A = a[m++], b = a[m++] + A;
                        m += 1;
                        var I = !a[m++];
                        n = Math.cos(A) * x + _, i = Math.sin(A) * S + T, v ? p(h = n, d = i) : f(u, c, n, i), u = Math.cos(b) * x + _, c = Math.sin(b) * S + T;
                        for (var E = (I ? -1 : 1) * Math.PI / 2, C = A; I ? C > b : C < b; C += E) {
                            g(C, I ? Math.max(C + E, b) : Math.min(C + E, b), _, T, x, S)
                        }
                        break;
                    case $W.R:
                        h = u = a[m++], d = c = a[m++], n = h + a[m++], i = d + a[m++], p(n, d), f(n, d, n, i), f(n, i, h, i), f(h, i, h, d), f(h, d, n, d);
                        break;
                    case $W.Z:
                        e && f(u, c, h, d), u = h, c = d
                }
            }
            return e && e.length > 2 && l.push(e), l
        }

        function eY(t, e, n, i, r, o, a, s, l, u) {
            if (JW(t, n) && JW(e, i) && JW(r, a) && JW(o, s)) l.push(a, s); else {
                var c = 2 / u, h = c * c, d = a - t, p = s - e, f = Math.sqrt(d * d + p * p);
                d /= f, p /= f;
                var g = n - t, m = i - e, y = r - a, v = o - s, _ = g * g + m * m, T = y * y + v * v;
                if (_ < h && T < h) l.push(a, s); else {
                    var x = d * g + p * m, S = -d * y - p * v;
                    if (_ - x * x < h && x >= 0 && T - S * S < h && S >= 0) l.push(a, s); else {
                        var A = [], b = [];
                        ni(t, n, r, a, .5, A), ni(e, i, o, s, .5, b), eY(A[0], b[0], A[1], b[1], A[2], b[2], A[3], b[3], l, u), eY(A[4], b[4], A[5], b[5], A[6], b[6], A[7], b[7], l, u)
                    }
                }
            }
        }

        function nY(t, e, n) {
            var i = t[e], r = t[1 - e], o = Math.abs(i / r), a = Math.ceil(Math.sqrt(o * n)), s = Math.floor(n / a);
            0 === s && (s = 1, a = n);
            for (var l = [], u = 0; u < a; u++) l.push(s);
            var c = n - a * s;
            if (c > 0) for (u = 0; u < c; u++) l[u % a] += 1;
            return l
        }

        function iY(t, e, n) {
            for (var i = t.r0, r = t.r, o = t.startAngle, a = t.endAngle, s = Math.abs(a - o), l = s * r, u = r - i, c = l > Math.abs(u), h = nY([l, u], c ? 0 : 1, e), d = (c ? s : u) / h.length, p = 0; p < h.length; p++) for (var f = (c ? u : s) / h[p], g = 0; g < h[p]; g++) {
                var m = {};
                c ? (m.startAngle = o + d * p, m.endAngle = o + d * (p + 1), m.r0 = i + f * g, m.r = i + f * (g + 1)) : (m.startAngle = o + f * g, m.endAngle = o + f * (g + 1), m.r0 = i + d * p, m.r = i + d * (p + 1)), m.clockwise = t.clockwise, m.cx = t.cx, m.cy = t.cy, n.push(m)
            }
        }

        function rY(t, e, n, i) {
            return t * i - n * e
        }

        function oY(t, e, n, i, r, o, a, s) {
            var l = n - t, u = i - e, c = a - r, h = s - o, d = rY(c, h, l, u);
            if (Math.abs(d) < 1e-6) return null;
            var p = rY(t - r, e - o, c, h) / d;
            return p < 0 || p > 1 ? null : new tn(p * l + t, p * u + e)
        }

        function aY(t, e, n) {
            var i = new tn;
            tn.sub(i, n, e), i.normalize();
            var r = new tn;
            return tn.sub(r, t, e), r.dot(i)
        }

        function sY(t, e) {
            var n = t[t.length - 1];
            n && n[0] === e[0] && n[1] === e[1] || t.push(e)
        }

        function lY(t) {
            var e = t.points, n = [], i = [];
            fs(e, n, i);
            var r = new hn(n[0], n[1], i[0] - n[0], i[1] - n[1]), o = r.width, a = r.height, s = r.x, l = r.y,
                u = new tn, c = new tn;
            return o > a ? (u.x = c.x = s + o / 2, u.y = l, c.y = l + a) : (u.y = c.y = l + a / 2, u.x = s, c.x = s + o), function (t, e, n) {
                for (var i = t.length, r = [], o = 0; o < i; o++) {
                    var a = t[o], s = t[(o + 1) % i], l = oY(a[0], a[1], s[0], s[1], e.x, e.y, n.x, n.y);
                    l && r.push({projPt: aY(l, e, n), pt: l, idx: o})
                }
                if (r.length < 2) return [{points: t}, {points: t}];
                r.sort((function (t, e) {
                    return t.projPt - e.projPt
                }));
                var u = r[0], c = r[r.length - 1];
                if (c.idx < u.idx) {
                    var h = u;
                    u = c, c = h
                }
                var d = [u.pt.x, u.pt.y], p = [c.pt.x, c.pt.y], f = [d], g = [p];
                for (o = u.idx + 1; o <= c.idx; o++) sY(f, t[o].slice());
                for (sY(f, p), sY(f, d), o = c.idx + 1; o <= u.idx + i; o++) sY(g, t[o % i].slice());
                return sY(g, d), sY(g, p), [{points: f}, {points: g}]
            }(e, u, c)
        }

        function uY(t, e, n, i) {
            if (1 === n) i.push(e); else {
                var r = Math.floor(n / 2), o = t(e);
                uY(t, o[0], r, i), uY(t, o[1], n - r, i)
            }
            return i
        }

        function cY(t, e) {
            e.setStyle(t.style), e.z = t.z, e.z2 = t.z2, e.zlevel = t.zlevel
        }

        function hY(t, e) {
            var n, i = [], r = t.shape;
            switch (t.type) {
                case"rect":
                    !function (t, e, n) {
                        for (var i = t.width, r = t.height, o = i > r, a = nY([i, r], o ? 0 : 1, e), s = o ? "width" : "height", l = o ? "height" : "width", u = o ? "x" : "y", c = o ? "y" : "x", h = t[s] / a.length, d = 0; d < a.length; d++) for (var p = t[l] / a[d], f = 0; f < a[d]; f++) {
                            var g = {};
                            g[u] = d * h, g[c] = f * p, g[s] = h, g[l] = p, g.x += t.x, g.y += t.y, n.push(g)
                        }
                    }(r, e, i), n = Al;
                    break;
                case"sector":
                    iY(r, e, i), n = Eg;
                    break;
                case"circle":
                    iY({r0: 0, r: r.r, startAngle: 0, endAngle: 2 * Math.PI, cx: r.cx, cy: r.cy}, e, i), n = Eg;
                    break;
                default:
                    var o = t.getComputedTransform(),
                        a = o ? Math.sqrt(Math.max(o[0] * o[0] + o[1] * o[1], o[2] * o[2] + o[3] * o[3])) : 1,
                        s = yt(function (t, e) {
                            var n = tY(t), i = [];
                            e = e || 1;
                            for (var r = 0; r < n.length; r++) {
                                var o = n[r], a = [], s = o[0], l = o[1];
                                a.push(s, l);
                                for (var u = 2; u < o.length;) {
                                    var c = o[u++], h = o[u++], d = o[u++], p = o[u++], f = o[u++], g = o[u++];
                                    eY(s, l, c, h, d, p, f, g, a, e), s = f, l = g
                                }
                                i.push(a)
                            }
                            return i
                        }(t.getUpdatedPathProxy(), a), (function (t) {
                            return function (t) {
                                for (var e = [], n = 0; n < t.length;) e.push([t[n++], t[n++]]);
                                return e
                            }(t)
                        })), l = s.length;
                    if (0 === l) uY(lY, {points: s[0]}, e, i); else if (l === e) for (var u = 0; u < l; u++) i.push({points: s[u]}); else {
                        var c = 0, h = yt(s, (function (t) {
                            var e = [], n = [];
                            fs(t, e, n);
                            var i = (n[1] - e[1]) * (n[0] - e[0]);
                            return c += i, {poly: t, area: i}
                        }));
                        h.sort((function (t, e) {
                            return e.area - t.area
                        }));
                        var d = e;
                        for (u = 0; u < l; u++) {
                            var p = h[u];
                            if (d <= 0) break;
                            var f = u === l - 1 ? d : Math.ceil(p.area / c * e);
                            f < 0 || (uY(lY, {points: p.poly}, f, i), d -= f)
                        }
                    }
                    n = Lg
            }
            if (!n) return function (t, e) {
                for (var n = [], i = 0; i < e; i++) n.push(rg(t));
                return n
            }(t, e);
            var g = [];
            for (u = 0; u < i.length; u++) {
                var m = new n;
                m.setShape(i[u]), cY(t, m), g.push(m)
            }
            return g
        }

        function dY(t, e) {
            var n = t.length, i = e.length;
            if (n === i) return [t, e];
            for (var r = [], o = [], a = n < i ? t : e, s = Math.min(n, i), l = Math.abs(i - n) / 6, u = (s - 2) / 6, c = Math.ceil(l / u) + 1, h = [a[0], a[1]], d = l, p = 2; p < s;) {
                var f = a[p - 2], g = a[p - 1], m = a[p++], y = a[p++], v = a[p++], _ = a[p++], T = a[p++], x = a[p++];
                if (d <= 0) h.push(m, y, v, _, T, x); else {
                    for (var S = Math.min(d, c - 1) + 1, A = 1; A <= S; A++) {
                        var b = A / S;
                        ni(f, m, v, T, b, r), ni(g, y, _, x, b, o), f = r[3], g = o[3], h.push(r[1], o[1], r[2], o[2], f, g), m = r[5], y = o[5], v = r[6], _ = o[6]
                    }
                    d -= S - 1
                }
            }
            return a === t ? [h, e] : [t, h]
        }

        function pY(t, e) {
            for (var n = t.length, i = t[n - 2], r = t[n - 1], o = [], a = 0; a < e.length;) o[a++] = i, o[a++] = r;
            return o
        }

        function fY(t) {
            for (var e = 0, n = 0, i = 0, r = t.length, o = 0, a = r - 2; o < r; a = o, o += 2) {
                var s = t[a], l = t[a + 1], u = t[o], c = t[o + 1], h = s * c - u * l;
                e += h, n += (s + u) * h, i += (l + c) * h
            }
            return 0 === e ? [t[0] || 0, t[1] || 0] : [n / e / 3, i / e / 3, e]
        }

        function gY(t, e, n, i) {
            for (var r = (t.length - 2) / 6, o = 1 / 0, a = 0, s = t.length, l = s - 2, u = 0; u < r; u++) {
                for (var c = 6 * u, h = 0, d = 0; d < s; d += 2) {
                    var p = 0 === d ? c : (c + d - 2) % l + 2, f = t[p] - n[0], g = t[p + 1] - n[1],
                        m = e[d] - i[0] - f, y = e[d + 1] - i[1] - g;
                    h += m * m + y * y
                }
                h < o && (o = h, a = u)
            }
            return a
        }

        function mY(t) {
            for (var e = [], n = t.length, i = 0; i < n; i += 2) e[i] = t[n - i - 2], e[i + 1] = t[n - i - 1];
            return e
        }

        function yY(t) {
            return t.__isCombineMorphing
        }

        var vY = "__mOriginal_";

        function _Y(t, e, n) {
            var i = vY + e, r = t[i] || t[e];
            t[i] || (t[i] = t[e]);
            var o = n.replace, a = n.after, s = n.before;
            t[e] = function () {
                var t, e = arguments;
                return s && s.apply(this, e), t = o ? o.apply(this, e) : r.apply(this, e), a && a.apply(this, e), t
            }
        }

        function TY(t, e) {
            var n = vY + e;
            t[n] && (t[e] = t[n], t[n] = null)
        }

        function xY(t, e) {
            for (var n = 0; n < t.length; n++) for (var i = t[n], r = 0; r < i.length;) {
                var o = i[r], a = i[r + 1];
                i[r++] = e[0] * o + e[2] * a + e[4], i[r++] = e[1] * o + e[3] * a + e[5]
            }
        }

        function SY(t, e) {
            var n = t.getUpdatedPathProxy(), i = e.getUpdatedPathProxy(), r = function (t, e) {
                for (var n, i, r, o = [], a = [], s = 0; s < Math.max(t.length, e.length); s++) {
                    var l = t[s], u = e[s], c = void 0, h = void 0;
                    l ? u ? (i = c = (n = dY(l, u))[0], r = h = n[1]) : (h = pY(r || l, l), c = l) : (c = pY(i || u, u), h = u), o.push(c), a.push(h)
                }
                return [o, a]
            }(tY(n), tY(i)), o = r[0], a = r[1], s = t.getComputedTransform(), l = e.getComputedTransform();
            s && xY(o, s), l && xY(a, l), _Y(e, "updateTransform", {
                replace: function () {
                    this.transform = null
                }
            }), e.transform = null;
            var u = function (t, e, n, i) {
                for (var r, o = [], a = 0; a < t.length; a++) {
                    var s = t[a], l = e[a], u = fY(s), c = fY(l);
                    null == r && (r = u[2] < 0 != c[2] < 0);
                    var h = [], d = [], p = 0, f = 1 / 0, g = [], m = s.length;
                    r && (s = mY(s));
                    for (var y = 6 * gY(s, l, u, c), v = m - 2, _ = 0; _ < v; _ += 2) {
                        var T = (y + _) % v + 2;
                        h[_ + 2] = s[T] - u[0], h[_ + 3] = s[T + 1] - u[1]
                    }
                    if (h[0] = s[y] - u[0], h[1] = s[y + 1] - u[1], n > 0) for (var x = i / n, S = -i / 2; S <= i / 2; S += x) {
                        var A = Math.sin(S), b = Math.cos(S), I = 0;
                        for (_ = 0; _ < s.length; _ += 2) {
                            var E = h[_], C = h[_ + 1], D = l[_] - c[0], w = l[_ + 1] - c[1], M = D * b - w * A,
                                N = D * A + w * b;
                            g[_] = M, g[_ + 1] = N;
                            var O = M - E, L = N - C;
                            I += O * O + L * L
                        }
                        if (I < f) {
                            f = I, p = S;
                            for (var R = 0; R < g.length; R++) d[R] = g[R]
                        }
                    } else for (var k = 0; k < m; k += 2) d[k] = l[k] - c[0], d[k + 1] = l[k + 1] - c[1];
                    o.push({from: h, to: d, fromCp: u, toCp: c, rotation: -p})
                }
                return o
            }(o, a, 10, Math.PI), c = [];
            _Y(e, "buildPath", {
                replace: function (t) {
                    for (var n = e.__morphT, i = 1 - n, r = [], o = 0; o < u.length; o++) {
                        var a = u[o], s = a.from, l = a.to, h = a.rotation * n, d = a.fromCp, p = a.toCp,
                            f = Math.sin(h), g = Math.cos(h);
                        fe(r, d, p, n);
                        for (var m = 0; m < s.length; m += 2) {
                            var y = s[m], v = s[m + 1], _ = y * i + (A = l[m]) * n, T = v * i + (b = l[m + 1]) * n;
                            c[m] = _ * g - T * f + r[0], c[m + 1] = _ * f + T * g + r[1]
                        }
                        var x = c[0], S = c[1];
                        t.moveTo(x, S);
                        for (m = 2; m < s.length;) {
                            var A = c[m++], b = c[m++], I = c[m++], E = c[m++], C = c[m++], D = c[m++];
                            x === A && S === b && I === C && E === D ? t.lineTo(C, D) : t.bezierCurveTo(A, b, I, E, C, D), x = C, S = D
                        }
                    }
                }
            })
        }

        function AY(t, e, n) {
            if (!t || !e) return e;
            var i = n.done, r = n.during;
            return SY(t, e), e.__morphT = 0, e.animateTo({__morphT: 1}, dt({
                during: function (t) {
                    e.dirtyShape(), r && r(t)
                }, done: function () {
                    TY(e, "buildPath"), TY(e, "updateTransform"), e.__morphT = -1, e.createPathProxy(), e.dirtyShape(), i && i()
                }
            }, n)), e
        }

        function bY(t, e, n, i, r, o) {
            t = r === n ? 0 : Math.round(32767 * (t - n) / (r - n)), e = o === i ? 0 : Math.round(32767 * (e - i) / (o - i));
            for (var a, s = 0, l = 32768; l > 0; l /= 2) {
                var u = 0, c = 0;
                (t & l) > 0 && (u = 1), (e & l) > 0 && (c = 1), s += l * l * (3 * u ^ c), 0 === c && (1 === u && (t = l - 1 - t, e = l - 1 - e), a = t, t = e, e = a)
            }
            return s
        }

        function IY(t) {
            var e = 1 / 0, n = 1 / 0, i = -1 / 0, r = -1 / 0, o = yt(t, (function (t) {
                var o = t.getBoundingRect(), a = t.getComputedTransform(), s = o.x + o.width / 2 + (a ? a[4] : 0),
                    l = o.y + o.height / 2 + (a ? a[5] : 0);
                return e = Math.min(s, e), n = Math.min(l, n), i = Math.max(s, i), r = Math.max(l, r), [s, l]
            }));
            return yt(o, (function (o, a) {
                return {cp: o, z: bY(o[0], o[1], e, n, i, r), path: t[a]}
            })).sort((function (t, e) {
                return t.z - e.z
            })).map((function (t) {
                return t.path
            }))
        }

        function EY(t) {
            return hY(t.path, t.count)
        }

        function CY(t) {
            return At(t[0])
        }

        function DY(t, e) {
            for (var n = [], i = t.length, r = 0; r < i; r++) n.push({one: t[r], many: []});
            for (r = 0; r < e.length; r++) {
                var o = e[r].length, a = void 0;
                for (a = 0; a < o; a++) n[a % i].many.push(e[r][a])
            }
            var s = 0;
            for (r = i - 1; r >= 0; r--) if (!n[r].many.length) {
                var l = n[s].many;
                if (l.length <= 1) {
                    if (!s) return n;
                    s = 0
                }
                o = l.length;
                var u = Math.ceil(o / 2);
                n[r].many = l.slice(u, o), n[s].many = l.slice(0, u), s++
            }
            return n
        }

        var wY = {
            clone: function (t) {
                for (var e = [], n = 1 - Math.pow(1 - t.path.style.opacity, 1 / t.count), i = 0; i < t.count; i++) {
                    var r = rg(t.path);
                    r.setStyle("opacity", n), e.push(r)
                }
                return e
            }, split: null
        };

        function MY(t, e, n, i, r, o) {
            if (t.length && e.length) {
                var a = Yu("update", i, r);
                if (a && a.duration > 0) {
                    var s, l, u = i.getModel("universalTransition").get("delay"),
                        c = Object.assign({setToFinal: !0}, a);
                    CY(t) && (s = t, l = e), CY(e) && (s = e, l = t);
                    for (var h = s ? s === t : t.length > e.length, d = s ? DY(l, s) : DY(h ? e : t, [h ? t : e]), p = 0, f = 0; f < d.length; f++) p += d[f].many.length;
                    var g = 0;
                    for (f = 0; f < d.length; f++) m(d[f], h, g, p), g += d[f].many.length
                }
            }

            function m(t, e, i, r, a) {
                var s = t.many, l = t.one;
                if (1 !== s.length || a) for (var h = dt({
                    dividePath: wY[n],
                    individualDelay: u && function (t, e, n, o) {
                        return u(t + i, r)
                    }
                }, c), d = e ? function (t, e, n) {
                    var i = [];
                    !function t(e) {
                        for (var n = 0; n < e.length; n++) {
                            var r = e[n];
                            yY(r) ? t(r.childrenRef()) : r instanceof ll && i.push(r)
                        }
                    }(t);
                    var r = i.length;
                    if (!r) return {fromIndividuals: [], toIndividuals: [], count: 0};
                    var o = (n.dividePath || EY)({path: e, count: r});
                    if (o.length !== r) return console.error("Invalid morphing: unmatched splitted path"), {
                        fromIndividuals: [],
                        toIndividuals: [],
                        count: 0
                    };
                    i = IY(i), o = IY(o);
                    for (var a = n.done, s = n.during, l = n.individualDelay, u = new $r, c = 0; c < r; c++) {
                        var h = i[c], d = o[c];
                        d.parent = e, d.copyTransform(u), l || SY(h, d)
                    }

                    function p(t) {
                        for (var e = 0; e < o.length; e++) o[e].addSelfToZr(t)
                    }

                    function f() {
                        e.__isCombineMorphing = !1, e.__morphT = -1, e.childrenRef = null, TY(e, "addSelfToZr"), TY(e, "removeSelfFromZr")
                    }

                    e.__isCombineMorphing = !0, e.childrenRef = function () {
                        return o
                    }, _Y(e, "addSelfToZr", {
                        after: function (t) {
                            p(t)
                        }
                    }), _Y(e, "removeSelfFromZr", {
                        after: function (t) {
                            for (var e = 0; e < o.length; e++) o[e].removeSelfFromZr(t)
                        }
                    });
                    var g = o.length;
                    if (l) {
                        var m = g, y = function () {
                            0 == --m && (f(), a && a())
                        };
                        for (c = 0; c < g; c++) {
                            var v = l ? dt({delay: (n.delay || 0) + l(c, g, i[c], o[c]), done: y}, n) : n;
                            AY(i[c], o[c], v)
                        }
                    } else e.__morphT = 0, e.animateTo({__morphT: 1}, dt({
                        during: function (t) {
                            for (var n = 0; n < g; n++) {
                                var i = o[n];
                                i.__morphT = e.__morphT, i.dirtyShape()
                            }
                            s && s(t)
                        }, done: function () {
                            f();
                            for (var e = 0; e < t.length; e++) TY(t[e], "updateTransform");
                            a && a()
                        }
                    }, n));
                    return e.__zr && p(e.__zr), {fromIndividuals: i, toIndividuals: o, count: g}
                }(s, l, h) : function (t, e, n) {
                    var i = e.length, r = [], o = n.dividePath || EY;
                    if (yY(t)) {
                        !function t(e) {
                            for (var n = 0; n < e.length; n++) {
                                var i = e[n];
                                yY(i) ? t(i.childrenRef()) : i instanceof ll && r.push(i)
                            }
                        }(t.childrenRef());
                        var a = r.length;
                        if (a < i) for (var s = 0, l = a; l < i; l++) r.push(rg(r[s++ % a]));
                        r.length = i
                    } else {
                        r = o({path: t, count: i});
                        var u = t.getComputedTransform();
                        for (l = 0; l < r.length; l++) r[l].setLocalTransform(u);
                        if (r.length !== i) return console.error("Invalid morphing: unmatched splitted path"), {
                            fromIndividuals: [],
                            toIndividuals: [],
                            count: 0
                        }
                    }
                    r = IY(r), e = IY(e);
                    var c = n.individualDelay;
                    for (l = 0; l < i; l++) {
                        var h = c ? dt({delay: (n.delay || 0) + c(l, i, r[l], e[l])}, n) : n;
                        AY(r[l], e[l], h)
                    }
                    return {fromIndividuals: r, toIndividuals: e, count: e.length}
                }(l, s, h), p = d.fromIndividuals, f = d.toIndividuals, g = p.length, y = 0; y < g; y++) {
                    v = u ? dt({delay: u(y, g)}, c) : c;
                    o(p[y], f[y], e ? s[y] : t.one, e ? t.one : s[y], v)
                } else {
                    var v, _ = e ? s[0] : l, T = e ? l : s[0];
                    if (yY(_)) m({
                        many: [_],
                        one: T
                    }, !0, i, r, !0); else AY(_, T, v = u ? dt({delay: u(i, r)}, c) : c), o(_, T, _, T, v)
                }
            }
        }

        function NY(t) {
            if (!t) return [];
            if (At(t)) {
                for (var e = [], n = 0; n < t.length; n++) e.push(NY(t[n]));
                return e
            }
            var i = [];
            return t.traverse((function (t) {
                t instanceof ll && !t.disableMorphing && !t.invisible && !t.ignore && i.push(t)
            })), i
        }

        var OY = 1e4, LY = ha();

        function RY(t) {
            var e = [];
            return mt(t, (function (t) {
                var n = t.data;
                if (!(n.count() > OY)) for (var i = n.getIndices(), r = function (t) {
                    for (var e = t.dimensions, n = 0; n < e.length; n++) {
                        var i = t.getDimensionInfo(e[n]);
                        if (i && 0 === i.otherDims.itemGroupId) return e[n]
                    }
                }(n), o = 0; o < i.length; o++) e.push({
                    dataGroupId: t.dataGroupId,
                    data: n,
                    dim: t.dim || r,
                    divide: t.divide,
                    dataIndex: o
                })
            })), e
        }

        function kY(t, e, n) {
            t.traverse((function (t) {
                t instanceof ll && Xu(t, {style: {opacity: 0}}, e, {dataIndex: n, isFrom: !0})
            }))
        }

        function PY(t) {
            if (t.parent) {
                var e = t.getComputedTransform();
                t.setLocalTransform(e), t.parent.remove(t)
            }
        }

        function GY(t) {
            t.stopAnimation(), t.isGroup && t.traverse((function (t) {
                t.stopAnimation()
            }))
        }

        function BY(t, e, n) {
            var i = Yu("update", n, e);
            i && t.traverse((function (t) {
                if (t instanceof os) {
                    var e = function (t) {
                        return Wu(t).oldStyle
                    }(t);
                    e && t.animateFrom({style: e}, i)
                }
            }))
        }

        function FY(t, e, n) {
            var i = RY(t), r = RY(e);

            function o(t, e, n, i, r) {
                (n || t) && e.animateFrom({style: n && n !== t ? ht(ht({}, n.style), t.style) : t.style}, r)
            }

            function a(t) {
                for (var e = 0; e < t.length; e++) if (t[e].dim) return t[e].dim
            }

            var s = a(i), l = a(r), u = !1;

            function c(t, e) {
                return function (n) {
                    var i = n.data, r = n.dataIndex;
                    if (e) return i.getId(r);
                    var o = n.dataGroupId, a = t ? s || l : l || s, u = a && i.getDimensionInfo(a),
                        c = u && u.ordinalMeta;
                    if (u) {
                        var h = i.get(u.name, r);
                        return c && c.categories[h] || h + ""
                    }
                    var d = i.getRawDataItem(r);
                    return d && d.groupId ? d.groupId + "" : o || i.getId(r)
                }
            }

            var h = function (t, e) {
                var n = t.length;
                if (n !== e.length) return !1;
                for (var i = 0; i < n; i++) {
                    var r = t[i], o = e[i];
                    if (r.data.getId(r.dataIndex) !== o.data.getId(o.dataIndex)) return !1
                }
                return !0
            }(i, r), d = {};
            if (!h) for (var p = 0; p < r.length; p++) {
                var f = r[p], g = f.data.getItemGraphicEl(f.dataIndex);
                g && (d[g.id] = !0)
            }

            function m(t, e) {
                var n = i[e], a = r[t], s = a.data.hostModel, l = n.data.getItemGraphicEl(n.dataIndex),
                    c = a.data.getItemGraphicEl(a.dataIndex);
                l !== c ? l && d[l.id] || c && (GY(c), l ? (GY(l), PY(l), u = !0, MY(NY(l), NY(c), a.divide, s, t, o)) : kY(c, s, t)) : c && BY(c, a.dataIndex, s)
            }

            new iS(i, r, c(!0, h), c(!1, h), null, "multiple").update(m).updateManyToOne((function (t, e) {
                var n = r[t], a = n.data, s = a.hostModel, l = a.getItemGraphicEl(n.dataIndex),
                    c = _t(yt(e, (function (t) {
                        return i[t].data.getItemGraphicEl(i[t].dataIndex)
                    })), (function (t) {
                        return t && t !== l && !d[t.id]
                    }));
                l && (GY(l), c.length ? (mt(c, (function (t) {
                    GY(t), PY(t)
                })), u = !0, MY(NY(c), NY(l), n.divide, s, t, o)) : kY(l, s, n.dataIndex))
            })).updateOneToMany((function (t, e) {
                var n = i[e], a = n.data.getItemGraphicEl(n.dataIndex);
                if (!a || !d[a.id]) {
                    var s = _t(yt(t, (function (t) {
                        return r[t].data.getItemGraphicEl(r[t].dataIndex)
                    })), (function (t) {
                        return t && t !== a
                    })), l = r[t[0]].data.hostModel;
                    s.length && (mt(s, (function (t) {
                        return GY(t)
                    })), a ? (GY(a), PY(a), u = !0, MY(NY(a), NY(s), n.divide, l, t[0], o)) : mt(s, (function (e) {
                        return kY(e, l, t[0])
                    })))
                }
            })).updateManyToMany((function (t, e) {
                new iS(e, t, (function (t) {
                    return i[t].data.getId(i[t].dataIndex)
                }), (function (t) {
                    return r[t].data.getId(r[t].dataIndex)
                })).update((function (n, i) {
                    m(t[n], e[i])
                })).execute()
            })).execute(), u && mt(e, (function (t) {
                var e = t.data.hostModel, i = e && n.getViewOfSeriesModel(e), r = Yu("update", e, 0);
                i && e.isAnimationEnabled() && r && r.duration > 0 && i.group.traverse((function (t) {
                    t instanceof ll && !t.animators.length && t.animateFrom({style: {opacity: 0}}, r)
                }))
            }))
        }

        function HY(t) {
            var e = t.getModel("universalTransition").get("seriesKey");
            return e || t.id
        }

        function UY(t) {
            return At(t) ? t.sort().join(",") : t
        }

        function VY(t) {
            if (t.hostModel) return t.hostModel.getModel("universalTransition").get("divideShape")
        }

        function zY(t, e) {
            var n = jt(), i = jt(), r = jt();
            return mt(t.oldSeries, (function (e, n) {
                var o = t.oldDataGroupIds[n], a = t.oldData[n], s = HY(e), l = UY(s);
                i.set(l, {dataGroupId: o, data: a}), At(s) && mt(s, (function (t) {
                    r.set(t, {key: l, dataGroupId: o, data: a})
                }))
            })), mt(e.updatedSeries, (function (t) {
                if (t.isUniversalTransitionEnabled() && t.isAnimationEnabled()) {
                    var e = t.get("dataGroupId"), o = t.getData(), a = HY(t), s = UY(a), l = i.get(s);
                    if (l) n.set(s, {
                        oldSeries: [{dataGroupId: l.dataGroupId, divide: VY(l.data), data: l.data}],
                        newSeries: [{dataGroupId: e, divide: VY(o), data: o}]
                    }); else if (At(a)) {
                        0;
                        var u = [];
                        mt(a, (function (t) {
                            var e = i.get(t);
                            e.data && u.push({dataGroupId: e.dataGroupId, divide: VY(e.data), data: e.data})
                        })), u.length && n.set(s, {oldSeries: u, newSeries: [{dataGroupId: e, data: o, divide: VY(o)}]})
                    } else {
                        var c = r.get(a);
                        if (c) {
                            var h = n.get(c.key);
                            h || (h = {
                                oldSeries: [{dataGroupId: c.dataGroupId, data: c.data, divide: VY(c.data)}],
                                newSeries: []
                            }, n.set(c.key, h)), h.newSeries.push({dataGroupId: e, data: o, divide: VY(o)})
                        }
                    }
                }
            })), n
        }

        function WY(t, e) {
            for (var n = 0; n < t.length; n++) {
                if (null != e.seriesIndex && e.seriesIndex === t[n].seriesIndex || null != e.seriesId && e.seriesId === t[n].id) return n
            }
        }

        Y_([function (t) {
            t.registerPainter("canvas", FT)
        }]), Y_([function (t) {
            t.registerPainter("svg", Jx)
        }]), Y_([function (t) {
            t.registerChartView(AA), t.registerSeriesModel(BS), t.registerLayout(bA("line", !0)), t.registerVisual({
                seriesType: "line",
                reset: function (t) {
                    var e = t.getData(), n = t.getModel("lineStyle").getLineStyle();
                    n && !n.stroke && (n.stroke = e.getVisual("style").fill), e.setVisual("legendLineStyle", n)
                }
            }), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, CA("line"))
        }, function (t) {
            t.registerChartView(hb), t.registerSeriesModel(HA), t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, St(RA, "bar")), t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, kA("bar")), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, CA("bar")), t.registerAction({
                type: "changeAxisOrder",
                event: "changeAxisOrder",
                update: "update"
            }, (function (t, e) {
                var n = t.componentType || "series";
                e.eachComponent({mainType: n, query: t}, (function (e) {
                    t.sortInfo && e.axis.setCategorySortInfo(t.sortInfo)
                }))
            }))
        }, function (t) {
            t.registerChartView(bb), t.registerSeriesModel(wb), Vy("pie", t.registerAction), t.registerLayout(St(mb, "pie")), t.registerProcessor(yb("pie")), t.registerProcessor(function (t) {
                return {
                    seriesType: t, reset: function (t, e) {
                        var n = t.getData();
                        n.filterSelf((function (t) {
                            var e = n.mapDimension("value"), i = n.get(e, t);
                            return !(Ct(i) && !isNaN(i) && i < 0)
                        }))
                    }
                }
            }("pie"))
        }, function (t) {
            Y_(jE), t.registerSeriesModel(Mb), t.registerChartView(kb), t.registerLayout(bA("scatter"))
        }, function (t) {
            Y_(pC), t.registerChartView(JE), t.registerSeriesModel(eC), t.registerLayout(XE), t.registerProcessor(yb("radar")), t.registerPreprocessor(QE)
        }, function (t) {
            Y_(sw), t.registerChartView(GD), t.registerSeriesModel(FD), t.registerLayout(UD), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, HD), Vy("map", t.registerAction)
        }, function (t) {
            t.registerChartView(Ew), t.registerSeriesModel(Ww), t.registerLayout(qw), t.registerVisual(jw), function (t) {
                t.registerAction({
                    type: "treeExpandAndCollapse",
                    event: "treeExpandAndCollapse",
                    update: "update"
                }, (function (t, e) {
                    e.eachComponent({mainType: "series", subType: "tree", query: t}, (function (e) {
                        var n = t.dataIndex, i = e.getData().tree.getNodeByDataIndex(n);
                        i.isExpand = !i.isExpand
                    }))
                })), t.registerAction({type: "treeRoam", event: "treeRoam", update: "none"}, (function (t, e, n) {
                    e.eachComponent({mainType: "series", subType: "tree", query: t}, (function (e) {
                        var i = iw(e.coordinateSystem, t, void 0, n);
                        e.setCenter && e.setCenter(i.center), e.setZoom && e.setZoom(i.zoom)
                    }))
                }))
            }(t)
        }, function (t) {
            t.registerSeriesModel(Qw), t.registerChartView(fM), t.registerVisual(OM), t.registerLayout(YM), function (t) {
                for (var e = 0; e < Xw.length; e++) t.registerAction({type: Xw[e], update: "updateView"}, $t);
                t.registerAction({type: "treemapRootToNode", update: "updateView"}, (function (t, e) {
                    e.eachComponent({mainType: "series", subType: "treemap", query: t}, (function (e, n) {
                        var i = Fw(t, ["treemapZoomToNode", "treemapRootToNode"], e);
                        if (i) {
                            var r = e.getViewRoot();
                            r && (t.direction = Uw(r, i.node) ? "rollUp" : "drillDown"), e.resetViewRoot(i.node)
                        }
                    }))
                }))
            }(t)
        }, function (t) {
            t.registerChartView(KN), t.registerSeriesModel(oO), t.registerProcessor(QM), t.registerVisual($M), t.registerVisual(tN), t.registerLayout(dN), t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT, TN), t.registerLayout(SN), t.registerCoordinateSystem("graphView", {
                dimensions: YD.dimensions,
                create: AN
            }), t.registerAction({
                type: "focusNodeAdjacency",
                event: "focusNodeAdjacency",
                update: "series:focusNodeAdjacency"
            }, $t), t.registerAction({
                type: "unfocusNodeAdjacency",
                event: "unfocusNodeAdjacency",
                update: "series:unfocusNodeAdjacency"
            }, $t), t.registerAction(aO, (function (t, e, n) {
                e.eachComponent({mainType: "series", query: t}, (function (e) {
                    var i = iw(e.coordinateSystem, t, void 0, n);
                    e.setCenter && e.setCenter(i.center), e.setZoom && e.setZoom(i.zoom)
                }))
            }))
        }, function (t) {
            t.registerChartView(dO), t.registerSeriesModel(pO)
        }, function (t) {
            t.registerChartView(mO), t.registerSeriesModel(vO), t.registerLayout(_O), t.registerProcessor(yb("funnel"))
        }, function (t) {
            Y_(eR), t.registerChartView(IO), t.registerSeriesModel(CO), t.registerVisual(t.PRIORITY.VISUAL.BRUSH, wO)
        }, function (t) {
            t.registerChartView(aR), t.registerSeriesModel(lR), t.registerLayout(uR), t.registerVisual(xR), t.registerAction({
                type: "dragNode",
                event: "dragnode",
                update: "update"
            }, (function (t, e) {
                e.eachComponent({mainType: "series", subType: "sankey", query: t}, (function (e) {
                    e.setNodePosition(t.dataIndex, [t.localX, t.localY])
                }))
            }))
        }, function (t) {
            t.registerSeriesModel(bR), t.registerChartView(NR), t.registerLayout(LR), t.registerTransform(RR)
        }, function (t) {
            t.registerChartView(jR), t.registerSeriesModel(ZR), t.registerPreprocessor(KR), t.registerVisual(nk), t.registerLayout(ok)
        }, function (t) {
            t.registerChartView(uk), t.registerSeriesModel(ck), t.registerLayout(bA("effectScatter"))
        }, function (t) {
            t.registerChartView(Sk), t.registerSeriesModel(Ck), t.registerLayout(xk), t.registerVisual(wk)
        }, function (t) {
            t.registerChartView(Rk), t.registerSeriesModel(kk)
        }, function (t) {
            t.registerChartView(nP), t.registerSeriesModel(iP), t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, St(RA, "pictorialBar")), t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, kA("pictorialBar"))
        }, function (t) {
            t.registerChartView(oP), t.registerSeriesModel(sP), t.registerLayout(lP), t.registerProcessor(yb("themeRiver"))
        }, function (t) {
            t.registerChartView(mP), t.registerSeriesModel(vP), t.registerLayout(St(TP, "sunburst")), t.registerProcessor(St(yb, "sunburst")), t.registerVisual(SP), function (t) {
                t.registerAction({type: dP, update: "updateView"}, (function (t, e) {
                    e.eachComponent({mainType: "series", subType: "sunburst", query: t}, (function (e, n) {
                        var i = Fw(t, [dP], e);
                        if (i) {
                            var r = e.getViewRoot();
                            r && (t.direction = Uw(r, i.node) ? "rollUp" : "drillDown"), e.resetViewRoot(i.node)
                        }
                    }))
                })), t.registerAction({type: pP, update: "none"}, (function (t, e, n) {
                    t = ht({}, t), e.eachComponent({mainType: "series", subType: "sunburst", query: t}, (function (e) {
                        var n = Fw(t, [pP], e);
                        n && (t.dataIndex = n.node.dataIndex)
                    })), n.dispatchAction(ht(t, {type: "highlight"}))
                })), t.registerAction({type: fP, update: "updateView"}, (function (t, e, n) {
                    t = ht({}, t), n.dispatchAction(ht(t, {type: "downplay"}))
                }))
            }(t)
        }, function (t) {
            t.registerChartView(fG), t.registerSeriesModel(EP)
        }]), Y_((function (t) {
            Y_(jE), Y_(vB)
        })), Y_((function (t) {
            Y_(vB), kE.registerAxisPointerClass("PolarAxisPointer", xB), t.registerCoordinateSystem("polar", BB), t.registerComponentModel(SB), t.registerComponentView(nF), jb(t, "angle", bB, tF), jb(t, "radius", IB, eF), t.registerComponentView(YB), t.registerComponentView(KB), t.registerLayout(St(JB, "bar"))
        })), Y_(sw), Y_((function (t) {
            Y_(vB), kE.registerAxisPointerClass("SingleAxisPointer", bF), t.registerComponentView(IF), t.registerComponentView(lF), t.registerComponentModel(cF), jb(t, "single", cF, cF.defaultOption), t.registerCoordinateSystem("single", yF)
        })), Y_(eR), Y_((function (t) {
            t.registerComponentModel(CF), t.registerComponentView(wF), t.registerCoordinateSystem("calendar", LF)
        })), Y_((function (t) {
            t.registerComponentModel(BF), t.registerComponentView(UF), t.registerPreprocessor((function (t) {
                var e = t.graphic;
                At(e) ? e[0] && e[0].elements ? t.graphic = [t.graphic[0]] : t.graphic = [{elements: e}] : e && !e.elements && (t.graphic = [{elements: [e]}])
            }))
        })), Y_((function (t) {
            t.registerComponentModel(mH), t.registerComponentView(_H), fH("saveAsImage", TH), fH("magicType", IH), fH("dataView", LH), fH("dataZoom", oU), fH("restore", BH), Y_(hH)
        })), Y_((function (t) {
            Y_(vB), t.registerComponentModel(aU), t.registerComponentView(DU), t.registerAction({
                type: "showTip",
                event: "showTip",
                update: "tooltip:manuallyShowTip"
            }, $t), t.registerAction({type: "hideTip", event: "hideTip", update: "tooltip:manuallyHideTip"}, $t)
        })), Y_(vB), Y_((function (t) {
            t.registerComponentView(jU), t.registerComponentModel(ZU), t.registerPreprocessor(MU), t.registerVisual(t.PRIORITY.VISUAL.BRUSH, VU), t.registerAction({
                type: "brush",
                event: "brush",
                update: "updateVisual"
            }, (function (t, e) {
                e.eachComponent({mainType: "brush", query: t}, (function (e) {
                    e.setAreas(t.areas)
                }))
            })), t.registerAction({
                type: "brushSelect",
                event: "brushSelected",
                update: "none"
            }, $t), t.registerAction({type: "brushEnd", event: "brushEnd", update: "none"}, $t), fH("brush", QU)
        })), Y_((function (t) {
            t.registerComponentModel($U), t.registerComponentView(JU)
        })), Y_((function (t) {
            t.registerComponentModel(iV), t.registerComponentView(dV), t.registerSubTypeDefaulter("timeline", (function () {
                return "slider"
            })), function (t) {
                t.registerAction({
                    type: "timelineChange",
                    event: "timelineChanged",
                    update: "prepareAndUpdate"
                }, (function (t, e, n) {
                    var i = e.getComponent("timeline");
                    return i && null != t.currentIndex && (i.setCurrentIndex(t.currentIndex), !i.get("loop", !0) && i.isIndexMax() && i.getPlayState() && (i.setPlayState(!1), n.dispatchAction({
                        type: "timelinePlayChange",
                        playState: !1,
                        from: t.from
                    }))), e.resetOption("timeline", {replaceMerge: i.get("replaceMerge", !0)}), dt({currentIndex: i.option.currentIndex}, t)
                })), t.registerAction({
                    type: "timelinePlayChange",
                    event: "timelinePlayChanged",
                    update: "update"
                }, (function (t, e) {
                    var n = e.getComponent("timeline");
                    n && null != t.playState && n.setPlayState(t.playState)
                }))
            }(t), t.registerPreprocessor(pV)
        })), Y_((function (t) {
            t.registerComponentModel(xV), t.registerComponentView(LV), t.registerPreprocessor((function (t) {
                mV(t.series, "markPoint") && (t.markPoint = t.markPoint || {})
            }))
        })), Y_((function (t) {
            t.registerComponentModel(RV), t.registerComponentView(UV), t.registerPreprocessor((function (t) {
                mV(t.series, "markLine") && (t.markLine = t.markLine || {})
            }))
        })), Y_((function (t) {
            t.registerComponentModel(VV), t.registerComponentView(QV), t.registerPreprocessor((function (t) {
                mV(t.series, "markArea") && (t.markArea = t.markArea || {})
            }))
        })), Y_((function (t) {
            Y_(hz), Y_(_z)
        })), Y_((function (t) {
            Y_(Nz), Y_(Uz)
        })), Y_(Nz), Y_(Uz), Y_((function (t) {
            Y_(IW), Y_(NW)
        })), Y_(IW), Y_(NW), Y_((function (t) {
            t.registerPreprocessor(PW), t.registerVisual(t.PRIORITY.VISUAL.ARIA, kW)
        })), Y_((function (t) {
            t.registerTransform(XW), t.registerTransform(ZW)
        })), Y_((function (t) {
            t.registerComponentModel(KW), t.registerComponentView(QW)
        })), Y_((function (t) {
            t.registerUpdateLifecycle("series:beforeupdate", (function (t, e, n) {
                mt(Jo(n.seriesTransition), (function (t) {
                    mt(Jo(t.to), (function (t) {
                        for (var e = n.updatedSeries, i = 0; i < e.length; i++) (null != t.seriesIndex && t.seriesIndex === e[i].seriesIndex || null != t.seriesId && t.seriesId === e[i].id) && (e[i][Ef] = !0)
                    }))
                }))
            })), t.registerUpdateLifecycle("series:transition", (function (t, e, n) {
                var i = LY(e);
                if (i.oldSeries && n.updatedSeries && n.optionChanged) {
                    var r = n.seriesTransition;
                    if (r) mt(Jo(r), (function (t) {
                        !function (t, e, n, i) {
                            var r = [], o = [];
                            mt(Jo(t.from), (function (t) {
                                var n = WY(e.oldSeries, t);
                                n >= 0 && r.push({
                                    dataGroupId: e.oldDataGroupIds[n],
                                    data: e.oldData[n],
                                    divide: VY(e.oldData[n]),
                                    dim: t.dimension
                                })
                            })), mt(Jo(t.to), (function (t) {
                                var i = WY(n.updatedSeries, t);
                                if (i >= 0) {
                                    var r = n.updatedSeries[i].getData();
                                    o.push({
                                        dataGroupId: e.oldDataGroupIds[i],
                                        data: r,
                                        divide: VY(r),
                                        dim: t.dimension
                                    })
                                }
                            })), r.length > 0 && o.length > 0 && FY(r, o, i)
                        }(t, i, n, e)
                    })); else {
                        var o = zY(i, n);
                        mt(o.keys(), (function (t) {
                            var n = o.get(t);
                            FY(n.oldSeries, n.newSeries, e)
                        }))
                    }
                    mt(n.updatedSeries, (function (t) {
                        t[Ef] && (t[Ef] = !1)
                    }))
                }
                for (var a = t.getSeries(), s = i.oldSeries = [], l = i.oldDataGroupIds = [], u = i.oldData = [], c = 0; c < a.length; c++) {
                    var h = a[c].getData();
                    h.count() < OY && (s.push(a[c]), l.push(a[c].get("dataGroupId")), u.push(h))
                }
            }))
        })), Y_(NT);
        const YY = {
            props: {asin: "", marketId: "", request: !1}, data: () => ({}), mounted() {
                if (this.asin && this.marketId) {
                    let t = setInterval((() => {
                        let e = this.$refs.echartData.getBoundingClientRect();
                        e.top >= 0 && e.bottom <= window.innerHeight && (clearInterval(t), this.request || this.getH10Data())
                    }), 500)
                }
                window.addEventListener("message", (t => {
                    let e = t?.data || {};
                    "get_seller_data" == e.origin && "get_seller_data" == e.type && e.asin == this.asin && (this.request = !0, this.getH10Data("1"))
                }))
            }, methods: {
                getH10Data(t) {
                    (function (t, e = {}) {
                        return new Promise((n => {
                            s(t = `${t}?${new URLSearchParams(e).toString()}`, {}).then((t => {
                                n(t)
                            }))
                        }))
                    })("https://gmdx.genmaijl.com/api/api/getH10New", {
                        asin: this.asin
                    }).then((e => {
                        try {
                            let t = this.getEchartData(e.results.bsrHistory, e.results.newPriceHistory);
                            this.showEchart(Object.keys(t.bsr), Object.values(t.bsr), Object.values(t.price))
                        } catch {
                            this.showEchart([], [], [])
                        }
                        t && setTimeout((() => {
                            window.postMessage({
                                type: "seller_load_finish",
                                origin: "seller_load_finish",
                                asin: this.asin
                            }, "*")
                        }), 500)
                    }))

                    // (function (t, e = {}) {
                    //     return new Promise((n => {
                    //         s(t = `${t}?${new URLSearchParams(e).toString()}`, {}).then((t => {
                    //             n(t)
                    //         }))
                    //     }))
                    // })("https://members.helium10.com/api/v1/product/bsr-chart", {
                    //     allData: 1,
                    //     asin: this.asin,
                    //     fullHistory: 0,
                    //     marketplace: this.marketId,
                    //     replace: 0
                    // }).then((e => {
                    //     try {
                    //         let t = this.getEchartData(e.results.bsrHistory, e.results.newPriceHistory);
                    //         this.showEchart(Object.keys(t.bsr), Object.values(t.bsr), Object.values(t.price))
                    //     } catch {
                    //         this.showEchart([], [], [])
                    //     }
                    //     t && setTimeout((() => {
                    //         window.postMessage({
                    //             type: "seller_load_finish",
                    //             origin: "seller_load_finish",
                    //             asin: this.asin
                    //         }, "*")
                    //     }), 500)
                    // }))
                }, getEchartData(t, e) {
                    let n = this.makeDict(t), i = this.makeArr(Object.keys(n), this.makeDict(e)),
                        r = Object.keys(i).sort(((t, e) => new Date(`${t}`).getTime() - new Date(`${e}`).getTime())),
                        o = {};
                    return r.forEach((t => {
                        o[t] = i[t]
                    })), {bsr: n, price: o}
                }, showEchart(t, e, n) {
                    this.$emit("sellerData", {
                        x: t,
                        bsr: e,
                        price: n
                    }), "detailPage" == sessionStorage.getItem("crxPage") && e.length > 0 && window.postMessage({
                        type: "seller_data",
                        origin: "seller_data",
                        payload: {data: {x: t, bsr: e, price: n}, marketId: this.marketId},
                        asin: this.asin
                    }, "*");
                    var i = function (t, e, n) {
                        var i = !(n && n.ssr);
                        if (i) {
                            var r = O_(t);
                            if (r) return r
                        }
                        var o = new y_(t, e, n);
                        return o.id = "ec_" + M_++, D_[o.id] = o, i && va(t, N_, o.id), d_(o), Bv.trigger("afterinit", o), o
                    }(this.$refs.echartData, null, {devicePixielRatio: window.devicePixelRatio});
                    let r = {
                        tooltip: {trigger: "axis"},
                        legend: {data: ["bsr", "price"]},
                        grid: {left: "4%", right: "2%", bottom: "2%", containLabel: !0},
                        xAxis: {type: "category", boundaryGap: !1, data: t},
                        yAxis: [{
                            name: "Price",
                            nameLocation: "middle",
                            nameGap: 40,
                            min: 0,
                            splitNumber: 8,
                            interval: Math.ceil(Math.ceil(Math.max(...n)) / 8),
                            max: 8 * Math.ceil(Math.ceil(Math.max(...n)) / 8),
                            axisLabel: {formatter: "{value}$"}
                        }, {
                            name: "Rank",
                            nameLocation: "middle",
                            nameGap: 40,
                            min: 0,
                            splitNumber: 8,
                            interval: Math.ceil(Math.ceil(Math.max(...e)) / 8),
                            max: 8 * Math.ceil(Math.ceil(Math.max(...e)) / 8),
                            type: "value",
                            axisLabel: {
                                formatter: function (t, e) {
                                    return t <= 1e3 ? t : t > 1e3 ? (t / 1e3).toFixed(1) + "k" : void 0
                                }
                            }
                        }],
                        series: [{
                            data: e,
                            yAxisIndex: 1,
                            type: "line",
                            step: "start",
                            name: "bsr",
                            symbolSize: 2,
                            animation: !1,
                            itemStyle: {borderWidth: 1},
                            lineStyle: {width: 1}
                        }, {
                            name: "price",
                            data: n,
                            type: "line",
                            step: "start",
                            symbolSize: 1,
                            animation: !1,
                            itemStyle: {borderWidth: 1},
                            lineStyle: {width: 1}
                        }],
                        graphic: [{
                            type: "text",
                            silent: !0,
                            z: 100,
                            left: "center",
                            top: "middle",
                            style: {fill: "#ff000021", text: ["跟卖精灵"].join(""), fontSize: 50}
                        }]
                    };
                    r && i.setOption(r)
                }, makeDict(t) {
                    let e = {};
                    return t.forEach((t => {
                        let n = new Date(1e3 * parseInt(t.start)).toLocaleDateString() + " " + new Date(1e3 * parseInt(t.start)).toLocaleTimeString();
                        e[n] = t.value
                    })), e
                }, makeArr: (t, e) => (t.reduce(((t, n) => (e[t] || (e[t] = 0), e[n] || t && (e[n] = e[t]), n))), e)
            }
        }, qY = YY;
        var jY = __webpack_require__(3597), XY = {};
        XY.styleTagTransform = b(), XY.setAttributes = T(), XY.insert = v().bind(null, "head"), XY.domAPI = m(), XY.insertStyleElement = S();
        f()(jY.Z, XY);
        jY.Z && jY.Z.locals && jY.Z.locals;
        var ZY = __webpack_require__(9793), KY = {};
        KY.styleTagTransform = b(), KY.setAttributes = T(), KY.insert = v().bind(null, "head"), KY.domAPI = m(), KY.insertStyleElement = S();
        f()(ZY.Z, KY);
        ZY.Z && ZY.Z.locals && ZY.Z.locals;
        const QY = {
            props: {asin: "", marketId: "", url: "", title: "", mainImg: ""},
            components: {GoodsInfo: R, SellerData: C(qY, k, [], !1, null, "a24f3ace", null).exports},
            data: () => ({result: null, ship: null, sellerHistory: null, brandStatus: ""}),
            mounted() {
                this.asin && this.getGoodsInfo(), window.addEventListener("message", (t => {
                    let e = t?.data || {};
                    "seller_data" == e.origin ? "seller_data" == e.type && e?.asin == this.asin && (console.log("crx receive event", e), this.seller_data = e.payload.data, this.marketId = e.payload.marketId) : "seller_load_finish" == e.origin && e.asin == this.asin && this.collectAsin()
                }))
            },
            methods: {
                getGoodsInfo() {
                    let t = `${window.location.protocol}//${window.location.host}/${this.url}`;
                    chrome.runtime.sendMessage({type: "getGoodsInfo", data: t}, (t => {
                        t.asin = this.asin, this.result = t, console.log("基本信息完成检测发送:", t), this.sendToserve()
                    }))
                }, shipFee(t) {
                    console.log("购物车完成检测发送:", t), t?.totalFee && (this.ship = t, this.sendToserve())
                }, sellerData(t) {
                    console.log("H10完成 检测发送:", t), this.sellerHistory = t, this.sendToserve()
                }, sendToserve() {
                    if (!this.ship || parseInt(this?.result?.follwer_seller || 0) <= 1) return console.log("不合适"), console.log("this", this.ship, this.sellerHistory, this.result), !1;
                    console.log("可以发送");
                    let t = {
                        asin: this.asin,
                        h10_seller: JSON.stringify(this.sellerHistory),
                        cart_price: this.ship?.totalFee,
                        title: this.title,
                        mainImg: this.mainImg,
                        brand: this.result.brand,
                        seller_number: this.result.follwer_seller,
                        seller_type: this.ship.seller_type,
                        sort: "",
                        market_id: this.marketId,
                        country: this.getCountry()
                    };
                    console.log("bsr", this.result.bsr), t.sort = JSON.stringify(this.result.bsr.map((t => t.rank + "in" + t.sort))), console.log("payload", t), t = o(t), a("/public/addData", t).then((t => {
                        console.log("res", t)
                    }))
                }, getCountry() {
                    let t = "", e = window.location.host;
                    return e = e.split(".").pop(), "ca" == e ? t = "加拿大" : "com" == e ? t = "美国" : "jp" == e ? t = "日本" : "de" == e ? t = "德国" : "fr" == e ? t = "法国" : "mx" == e ? t = "墨西哥" : "uk" == e ? t = "英国" : "au" == e && (t = "澳大利亚"), t
                }, collectAsin(t) {
                    if (t && (this.brandStatus = t), !this.sellerHistory) return window.postMessage({
                        type: "get_seller_data",
                        origin: "get_seller_data",
                        asin: this.asin
                    }, "*"), !1;
                    let e = {
                        asin: this.asin,
                        mainImg: this.mainImg,
                        brand: this.result.brand,
                        cart_price: this.ship.totalFee,
                        seller_number: this.result.follwer_seller,
                        seller_type: this.ship.seller_type,
                        sort: "",
                        market_id: this.marketId,
                        h10_seller: JSON.stringify(this.sellerHistory),
                        country: this.getCountry(),
                        timestamp: (new Date).getTime(),
                        brandStatus: this.brandStatus.status,
                        brandResult: this.brandStatus.brandResult,
                        chengben: {},
                        title: this.title
                    };
                    e.sort = JSON.stringify(this.result.bsr.map((t => t.rank + "in" + t.sort))), console.log("payload", e), chrome.storage.local.get(["collectList", "asinArr"], (t => {
                        t?.collectList || (t.collectList = []), t?.asinArr || (t.asinArr = []), t.asinArr.push(e.asin), t.collectListt = t.collectList.filter((t => t.asin != e.asin)), t.collectList.push(e), chrome.storage.local.set(t, (() => {
                            antd.message.success(`${this.asin}采集完成`)
                        }))
                    }))
                }
            }
        }, $Y = QY;
        var JY = __webpack_require__(4134), tq = {};
        tq.styleTagTransform = b(), tq.setAttributes = T(), tq.insert = v().bind(null, "head"), tq.domAPI = m(), tq.insertStyleElement = S();
        f()(JY.Z, tq);
        JY.Z && JY.Z.locals && JY.Z.locals;
        const eq = C($Y, e, [], !1, null, "ac18c8e2", null).exports;

        class nq {
            constructor() {
                this.addTimeout = ""
            }

            init() {
                const t = document.createElement("link");
                let e = setInterval((() => {
                    document.head && (clearInterval(e), document.head.appendChild(t), this.mouseFunc(), setInterval((() => {
                        this.mouseFunc()
                    }), 1e3))
                }), 200)
            }

            mouseFunc() {
                Array.from(document.querySelectorAll('#gridItemRoot [data-a-card-type="basic"] > div')).forEach((t => {
                    let e = t.dataset.asin;
                    if (!e) return !0;
                    if (!t.querySelector(".crx-tools")) {
                        var n = document.createElement("div");
                        t.appendChild(n);
                        let i = t.querySelector("a.a-link-normal").getAttribute("href"),
                            r = t.querySelectorAll("a.a-link-normal")[1].innerText,
                            o = t.querySelector("a.a-link-normal img").getAttribute("src");
                        new Vue({el: n, render: t => t(eq, {props: {asin: e, url: i, title: r, mainImg: o}})})
                    }
                }))
            }

            getParameterByName(t) {
                let e = window.location.href;
                t = t.replace(/[\[\]]/g, "\\$&");
                const n = new RegExp("[?&]" + t + "(=([^&#]*)|&|#|$)").exec(e);
                return n ? n[2] ? decodeURIComponent(n[2].replace(/\+/g, " ")) : "" : null
            }
        }

        var iq;
        (iq = "normal", new Promise((t => {
            chrome.storage.local.get("mode", (e => {
                e?.mode || (e.mode = "normal"), t(e.mode == iq)
            }))
        }))).then((t => {
            if (t) {
                let t = new nq;
                new Promise((t => {
                    chrome.storage.local.get("versionInfo", (e => {
                        t(e?.versionInfo)
                    }))
                })).then((e => {
                    if (e) t.init(); else {
                        let t = document.createElement("link"), e = setInterval((() => {
                            document.head && (clearInterval(e), document.head.appendChild(t), antd.message.warning("请更换最新版本插件"))
                        }), 200)
                    }
                }))
            }
        }))
    })()
})();