From 91f1aae9c955731e00af9bcfe8773b96846cbe75 Mon Sep 17 00:00:00 2001 From: priyanshu-09 Date: Fri, 19 Jul 2024 16:50:47 +0530 Subject: [PATCH] Adding new screen for campaign creation --- .../chatScreen/CampaignSuggestChanges.d.ts | 10 + .../chatScreen/ChatScreenAdsPreview.d.ts | 2 - package-dist/index.d.ts | 5 +- package-dist/ui-gallery.es.js | 29190 ++++++++-------- package-dist/ui-gallery.umd.js | 326 +- package.json | 2 +- .../chatScreen/CampaignSuggestChanges.tsx | 115 + .../chatScreen/ChatScreenAdsPreview.tsx | 5 +- src/components/index.ts | 51 +- src/stories/CampaignSuggestChanges.stories.ts | 77 + src/stories/ChatScreenAds.stories.ts | 7 + 11 files changed, 15074 insertions(+), 14716 deletions(-) create mode 100644 package-dist/chatScreen/CampaignSuggestChanges.d.ts create mode 100644 src/components/chatScreen/CampaignSuggestChanges.tsx create mode 100644 src/stories/CampaignSuggestChanges.stories.ts diff --git a/package-dist/chatScreen/CampaignSuggestChanges.d.ts b/package-dist/chatScreen/CampaignSuggestChanges.d.ts new file mode 100644 index 0000000..cc92112 --- /dev/null +++ b/package-dist/chatScreen/CampaignSuggestChanges.d.ts @@ -0,0 +1,10 @@ +export interface CampaignSuggestChangesProps { + campaignName: string; + suggestions: string; + countrySelected: string; + languageSelected: string; + keywordsSelected: string[]; + handleSuggestChanges: (userQuery: string) => void; + inputPlaceholder?: string; +} +export declare function CampaignSuggestChangesScreen({ campaignName, suggestions, countrySelected, languageSelected, keywordsSelected, handleSuggestChanges, inputPlaceholder, }: CampaignSuggestChangesProps): import("react/jsx-runtime").JSX.Element; diff --git a/package-dist/chatScreen/ChatScreenAdsPreview.d.ts b/package-dist/chatScreen/ChatScreenAdsPreview.d.ts index caace94..33485f6 100644 --- a/package-dist/chatScreen/ChatScreenAdsPreview.d.ts +++ b/package-dist/chatScreen/ChatScreenAdsPreview.d.ts @@ -16,8 +16,6 @@ export interface ChatScreenAdsPreviewProps { language: string; }; adGroups: AdGroup[]; - handleChangeHeadings: (headings: string[]) => void; - handleChangeDescriptions: (descriptions: string[]) => void; handleUpdateAdGroups: (adGroups: AdGroup[]) => void; isForecastLoading: boolean; areHeadingsDescriptionsLoading: Array; diff --git a/package-dist/index.d.ts b/package-dist/index.d.ts index f61e79d..70cf600 100644 --- a/package-dist/index.d.ts +++ b/package-dist/index.d.ts @@ -10,9 +10,10 @@ export { ChatScreenAdsPreview } from './chatScreen/ChatScreenAdsPreview'; export type { ChatScreenAdsPreviewProps } from './chatScreen/ChatScreenAdsPreview'; export { ChatScreenKeywords } from './chatScreen/ChatScreenKeywords'; export type { ChatScreenKeywordsProps } from './chatScreen/ChatScreenKeywords'; -export { default as AiMessageTable } from './AiMessageTable'; +export { CampaignSuggestChangesScreen } from './chatScreen/CampaignSuggestChanges'; +export type { CampaignSuggestChangesProps } from './chatScreen/CampaignSuggestChanges'; +export { default as AiMessageTable, SegmentMetricsCard, } from './AiMessageTable'; export type { AiMessageTableProps } from './AiMessageTable'; -export { SegmentMetricsCard } from './AiMessageTable'; export { HousewareBranding } from './common/HousewareBranding'; export { ThemeToggle } from './common/ThemeToggle'; export { default as AppThemeProvider } from './AppThemeProvider'; diff --git a/package-dist/ui-gallery.es.js b/package-dist/ui-gallery.es.js index 7e9dc79..733c0e6 100644 --- a/package-dist/ui-gallery.es.js +++ b/package-dist/ui-gallery.es.js @@ -1,15 +1,15 @@ -var fre = Object.defineProperty; -var pre = (e, t, r) => t in e ? fre(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r; -var Ap = (e, t, r) => pre(e, typeof t != "symbol" ? t + "" : t, r); +var vre = Object.defineProperty; +var mre = (e, t, r) => t in e ? vre(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r; +var Lp = (e, t, r) => mre(e, typeof t != "symbol" ? t + "" : t, r); import * as S from "react"; -import k, { createContext as Xs, forwardRef as qr, useContext as Jt, version as gre, isValidElement as vre, useRef as ve, useLayoutEffect as Ns, useEffect as Bt, useState as Le, useMemo as Ct, Children as PP, createRef as mre, useCallback as or, useImperativeHandle as Zs, cloneElement as yre, createElement as uz, useReducer as Cre, PureComponent as Sre, Fragment as bre, memo as xo, Component as wre } from "react"; -import * as xre from "react-dom"; -import xd, { createPortal as Db, unstable_batchedUpdates as dz, flushSync as TP } from "react-dom"; -var GC = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function qf(e) { +import k, { createContext as Xs, forwardRef as Ur, useContext as Jt, version as yre, isValidElement as Cre, useRef as ve, useLayoutEffect as Ns, useEffect as Bt, useState as Ie, useMemo as St, Children as PP, createRef as Sre, useCallback as or, useImperativeHandle as Zs, cloneElement as bre, createElement as hz, useReducer as wre, PureComponent as xre, Fragment as Ere, memo as xo, Component as Rre } from "react"; +import * as Pre from "react-dom"; +import xd, { createPortal as Ab, unstable_batchedUpdates as fz, flushSync as TP } from "react-dom"; +var UC = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function Zf(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } -var _P = { exports: {} }, Op = {}; +var _P = { exports: {} }, Fp = {}; /** * @license React * react-jsx-runtime.production.min.js @@ -20,8 +20,8 @@ var _P = { exports: {} }, Op = {}; * LICENSE file in the root directory of this source tree. */ var RL; -function Ere() { - if (RL) return Op; +function Tre() { + if (RL) return Fp; RL = 1; var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 }; function a(s, l, c) { @@ -31,9 +31,9 @@ function Ere() { if (s && s.defaultProps) for (u in l = s.defaultProps, l) d[u] === void 0 && (d[u] = l[u]); return { $$typeof: t, type: s, key: h, ref: f, props: d, _owner: i.current }; } - return Op.Fragment = r, Op.jsx = a, Op.jsxs = a, Op; + return Fp.Fragment = r, Fp.jsx = a, Fp.jsxs = a, Fp; } -var Lp = {}; +var Np = {}; /** * @license React * react-jsx-runtime.development.js @@ -44,7 +44,7 @@ var Lp = {}; * LICENSE file in the root directory of this source tree. */ var PL; -function Rre() { +function _re() { return PL || (PL = 1, process.env.NODE_ENV !== "production" && function() { var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), p = Symbol.iterator, g = "@@iterator"; function v(se) { @@ -211,13 +211,13 @@ function Rre() { ` + q + se; } } - var te = !1, Q; + var re = !1, Q; { var Y = typeof WeakMap == "function" ? WeakMap : Map; Q = new Y(); } function K(se, ge) { - if (!se || te) + if (!se || re) return ""; { var me = Q.get(se); @@ -225,7 +225,7 @@ function Rre() { return me; } var He; - te = !0; + re = !0; var ct = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var it; @@ -264,17 +264,17 @@ function Rre() { } } catch (xr) { if (xr && He && typeof xr.stack == "string") { - for (var bt = xr.stack.split(` + for (var wt = xr.stack.split(` `), qe = He.stack.split(` -`), nt = bt.length - 1, ut = qe.length - 1; nt >= 1 && ut >= 0 && bt[nt] !== qe[ut]; ) +`), nt = wt.length - 1, ut = qe.length - 1; nt >= 1 && ut >= 0 && wt[nt] !== qe[ut]; ) ut--; for (; nt >= 1 && ut >= 0; nt--, ut--) - if (bt[nt] !== qe[ut]) { + if (wt[nt] !== qe[ut]) { if (nt !== 1 || ut !== 1) do - if (nt--, ut--, ut < 0 || bt[nt] !== qe[ut]) { + if (nt--, ut--, ut < 0 || wt[nt] !== qe[ut]) { var tr = ` -` + bt[nt].replace(" at new ", " at "); +` + wt[nt].replace(" at new ", " at "); return se.displayName && tr.includes("") && (tr = tr.replace("", se.displayName)), typeof se == "function" && Q.set(se, tr), tr; } while (nt >= 1 && ut >= 0); @@ -282,7 +282,7 @@ function Rre() { } } } finally { - te = !1, X.current = it, j(), Error.prepareStackTrace = ct; + re = !1, X.current = it, j(), Error.prepareStackTrace = ct; } var Or = se ? se.displayName || se.name : "", Br = Or ? J(Or) : ""; return typeof se == "function" && Q.set(se, Br), Br; @@ -294,7 +294,7 @@ function Rre() { var ge = se.prototype; return !!(ge && ge.isReactComponent); } - function re(se, ge, me) { + function ne(se, ge, me) { if (se == null) return ""; if (typeof se == "function") @@ -312,11 +312,11 @@ function Rre() { case l: return ae(se.render); case d: - return re(se.type, ge, me); + return ne(se.type, ge, me); case h: { var He = se, ct = He._payload, it = He._init; try { - return re(it(ct), ge, me); + return ne(it(ct), ge, me); } catch { } } @@ -326,7 +326,7 @@ function Rre() { var le = Object.prototype.hasOwnProperty, ue = {}, he = m.ReactDebugCurrentFrame; function fe(se) { if (se) { - var ge = se._owner, me = re(se.type, se._source, ge ? ge.type : null); + var ge = se._owner, me = ne(se.type, se._source, ge ? ge.type : null); he.setExtraStackFrame(me); } else he.setExtraStackFrame(null); @@ -336,17 +336,17 @@ function Rre() { var it = Function.call.bind(le); for (var dt in se) if (it(se, dt)) { - var bt = void 0; + var wt = void 0; try { if (typeof se[dt] != "function") { var qe = Error((He || "React class") + ": " + me + " type `" + dt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof se[dt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw qe.name = "Invariant Violation", qe; } - bt = se[dt](ge, dt, He, me, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + wt = se[dt](ge, dt, He, me, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (nt) { - bt = nt; + wt = nt; } - bt && !(bt instanceof Error) && (fe(ct), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", He || "React class", me, dt, typeof bt), fe(null)), bt instanceof Error && !(bt.message in ue) && (ue[bt.message] = !0, fe(ct), y("Failed %s type: %s", me, bt.message), fe(null)); + wt && !(wt instanceof Error) && (fe(ct), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", He || "React class", me, dt, typeof wt), fe(null)), wt instanceof Error && !(wt.message in ue) && (ue[wt.message] = !0, fe(ct), y("Failed %s type: %s", me, wt.message), fe(null)); } } } @@ -426,7 +426,7 @@ function Rre() { } } var Ue = function(se, ge, me, He, ct, it, dt) { - var bt = { + var wt = { // This tag allows us to uniquely identify this as a React Element $$typeof: t, // Built-in properties that belong on the element @@ -437,27 +437,27 @@ function Rre() { // Record the component responsible for creating this element. _owner: it }; - return bt._store = {}, Object.defineProperty(bt._store, "validated", { + return wt._store = {}, Object.defineProperty(wt._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 - }), Object.defineProperty(bt, "_self", { + }), Object.defineProperty(wt, "_self", { configurable: !1, enumerable: !1, writable: !1, value: He - }), Object.defineProperty(bt, "_source", { + }), Object.defineProperty(wt, "_source", { configurable: !1, enumerable: !1, writable: !1, value: ct - }), Object.freeze && (Object.freeze(bt.props), Object.freeze(bt)), bt; + }), Object.freeze && (Object.freeze(wt.props), Object.freeze(wt)), wt; }; - function Ae(se, ge, me, He, ct) { + function Oe(se, ge, me, He, ct) { { - var it, dt = {}, bt = null, qe = null; - me !== void 0 && (oe(me), bt = "" + me), ze(ge) && (oe(ge.key), bt = "" + ge.key), xe(ge) && (qe = ge.ref, je(ge, ct)); + var it, dt = {}, wt = null, qe = null; + me !== void 0 && (oe(me), wt = "" + me), ze(ge) && (oe(ge.key), wt = "" + ge.key), xe(ge) && (qe = ge.ref, je(ge, ct)); for (it in ge) le.call(ge, it) && !Ne.hasOwnProperty(it) && (dt[it] = ge[it]); if (se && se.defaultProps) { @@ -465,17 +465,17 @@ function Rre() { for (it in nt) dt[it] === void 0 && (dt[it] = nt[it]); } - if (bt || qe) { + if (wt || qe) { var ut = typeof se == "function" ? se.displayName || se.name || "Unknown" : se; - bt && st(dt, ut), qe && Xe(dt, ut); + wt && st(dt, ut), qe && Xe(dt, ut); } - return Ue(se, bt, qe, ct, He, ye.current, dt); + return Ue(se, wt, qe, ct, He, ye.current, dt); } } var Ke = m.ReactCurrentOwner, ht = m.ReactDebugCurrentFrame; - function Et(se) { + function Rt(se) { if (se) { - var ge = se._owner, me = re(se.type, se._source, ge ? ge.type : null); + var ge = se._owner, me = ne(se.type, se._source, ge ? ge.type : null); ht.setExtraStackFrame(me); } else ht.setExtraStackFrame(null); @@ -501,7 +501,7 @@ Check the render method of \`` + se + "`."; return ""; } var Mt = {}; - function mt(se) { + function yt(se) { { var ge = Lt(); if (!ge) { @@ -518,15 +518,15 @@ Check the top-level render call using <` + me + ">."); if (!se._store || se._store.validated || se.key != null) return; se._store.validated = !0; - var me = mt(ge); + var me = yt(ge); if (Mt[me]) return; Mt[me] = !0; var He = ""; - se && se._owner && se._owner !== Ke.current && (He = " It was passed a child from " + A(se._owner.type) + "."), Et(se), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', me, He), Et(null); + se && se._owner && se._owner !== Ke.current && (He = " It was passed a child from " + A(se._owner.type) + "."), Rt(se), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', me, He), Rt(null); } } - function Rt(se, ge) { + function Pt(se, ge) { { if (typeof se != "object") return; @@ -545,7 +545,7 @@ Check the top-level render call using <` + me + ">."); } } } - function jt(se) { + function Ut(se) { { var ge = se.type; if (ge == null || typeof ge == "string") @@ -575,11 +575,11 @@ Check the top-level render call using <` + me + ">."); for (var ge = Object.keys(se.props), me = 0; me < ge.length; me++) { var He = ge[me]; if (He !== "children" && He !== "key") { - Et(se), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", He), Et(null); + Rt(se), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", He), Rt(null); break; } } - se.ref !== null && (Et(se), y("Invalid attribute `ref` supplied to `React.Fragment`."), Et(null)); + se.ref !== null && (Rt(se), y("Invalid attribute `ref` supplied to `React.Fragment`."), Rt(null)); } } var et = {}; @@ -587,14 +587,14 @@ Check the top-level render call using <` + me + ">."); { var dt = T(se); if (!dt) { - var bt = ""; - (se === void 0 || typeof se == "object" && se !== null && Object.keys(se).length === 0) && (bt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); + var wt = ""; + (se === void 0 || typeof se == "object" && se !== null && Object.keys(se).length === 0) && (wt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var qe = Dt(); - qe ? bt += qe : bt += Lt(); + qe ? wt += qe : wt += Lt(); var nt; - se === null ? nt = "null" : _e(se) ? nt = "array" : se !== void 0 && se.$$typeof === t ? (nt = "<" + (A(se.type) || "Unknown") + " />", bt = " Did you accidentally export a JSX literal instead of a component?") : nt = typeof se, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", nt, bt); + se === null ? nt = "null" : _e(se) ? nt = "array" : se !== void 0 && se.$$typeof === t ? (nt = "<" + (A(se.type) || "Unknown") + " />", wt = " Did you accidentally export a JSX literal instead of a component?") : nt = typeof se, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", nt, wt); } - var ut = Ae(se, ge, me, ct, it); + var ut = Oe(se, ge, me, ct, it); if (ut == null) return ut; if (dt) { @@ -603,12 +603,12 @@ Check the top-level render call using <` + me + ">."); if (He) if (_e(tr)) { for (var Or = 0; Or < tr.length; Or++) - Rt(tr[Or], se); + Pt(tr[Or], se); Object.freeze && Object.freeze(tr); } else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else - Rt(tr, se); + Pt(tr, se); } if (le.call(ge, "key")) { var Br = A(se), xr = Object.keys(ge).filter(function(ln) { @@ -624,22 +624,22 @@ React keys must be passed directly to JSX without using spread: <%s key={someKey} {...props} />`, An, Br, Qn, Br), et[Br + An] = !0; } } - return se === n ? We(ut) : jt(ut), ut; + return se === n ? We(ut) : Ut(ut), ut; } } function tt(se, ge, me) { return rt(se, ge, me, !0); } - function yt(se, ge, me) { + function Ct(se, ge, me) { return rt(se, ge, me, !1); } - var Gt = yt, Mr = tt; - Lp.Fragment = n, Lp.jsx = Gt, Lp.jsxs = Mr; - }()), Lp; + var Gt = Ct, Mr = tt; + Np.Fragment = n, Np.jsx = Gt, Np.jsxs = Mr; + }()), Np; } -process.env.NODE_ENV === "production" ? _P.exports = Ere() : _P.exports = Rre(); -var ne = _P.exports; -const Pre = /* @__PURE__ */ new Map([ +process.env.NODE_ENV === "production" ? _P.exports = Tre() : _P.exports = _re(); +var ee = _P.exports; +const Mre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z" })) @@ -664,7 +664,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z" })) ] -]), Tre = /* @__PURE__ */ new Map([ +]), Dre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" })) @@ -689,7 +689,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" })) ] -]), _re = /* @__PURE__ */ new Map([ +]), Ire = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z" })) @@ -714,7 +714,38 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" })) ] -]), Mre = /* @__PURE__ */ new Map([ +]), Are = /* @__PURE__ */ new Map([ + [ + "bold", + /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M246.15,65.46l-.07-.08L222.15,41.85a20,20,0,0,0-28.23-.05l-90,88.83L70.06,97.78a20,20,0,0,0-28.21.08l-24,24a20,20,0,0,0,0,28.26l71.62,72a20,20,0,0,0,28.29,0L246.15,93.74A20,20,0,0,0,246.15,65.46ZM103.61,202.33,37.64,136,56,117.61,95.65,156a12,12,0,0,0,16.78-.08L208,61.61l18.32,18Z" })) + ], + [ + "duotone", + /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement( + "path", + { + d: "M237.66,85.26l-128.4,128.4a8,8,0,0,1-11.32,0l-71.6-72a8,8,0,0,1,0-11.31l24-24a8,8,0,0,1,11.32,0L104,147.43l98.34-97.09a8,8,0,0,1,11.32,0l24,23.6A8,8,0,0,1,237.66,85.26Z", + opacity: "0.2" + } + ), /* @__PURE__ */ k.createElement("path", { d: "M243.28,68.24l-24-23.56a16,16,0,0,0-22.59,0L104,136.23l-36.69-35.6a16,16,0,0,0-22.58.05l-24,24a16,16,0,0,0,0,22.61l71.62,72a16,16,0,0,0,22.63,0L243.33,90.91A16,16,0,0,0,243.28,68.24ZM103.62,208,32,136l24-24a.6.6,0,0,1,.08.08l42.35,41.09a8,8,0,0,0,11.19,0L208.06,56,232,79.6Z" })) + ], + [ + "fill", + /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M243.31,90.91l-128.4,128.4a16,16,0,0,1-22.62,0l-71.62-72a16,16,0,0,1,0-22.61l20-20a16,16,0,0,1,22.58,0L104,144.22l96.76-95.57a16,16,0,0,1,22.59,0l19.95,19.54A16,16,0,0,1,243.31,90.91Z" })) + ], + [ + "light", + /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M241.87,69.66l-24-23.56a14,14,0,0,0-19.77,0L104,139,65.9,102.1a14,14,0,0,0-19.8,0l-24,24a14,14,0,0,0,0,19.79l71.62,72a14,14,0,0,0,19.8,0L241.91,89.5A14,14,0,0,0,241.87,69.66ZM233.42,81,105,209.41a2,2,0,0,1-2.81,0l-71.62-72a2,2,0,0,1,0-2.82l24-24A2,2,0,0,1,56,110a2.12,2.12,0,0,1,1.5.64l42.35,41.08a6,6,0,0,0,8.39,0l98.37-97.11a2,2,0,0,1,2.87,0l24,23.56A2,2,0,0,1,233.42,81Z" })) + ], + [ + "regular", + /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M243.28,68.24l-24-23.56a16,16,0,0,0-22.59,0L104,136.23l-36.69-35.6a16,16,0,0,0-22.58.05l-24,24a16,16,0,0,0,0,22.61l71.62,72a16,16,0,0,0,22.63,0L243.33,90.91A16,16,0,0,0,243.28,68.24ZM103.62,208,32,136l24-24a.6.6,0,0,1,.08.08l42.35,41.09a8,8,0,0,0,11.19,0L208.06,56,232,79.6Z" })) + ], + [ + "thin", + /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M240.47,71.09l-24-23.58a12,12,0,0,0-17,0L104,141.83l-39.5-38.32a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l71.61,72a12,12,0,0,0,17,0L240.49,88.08A12,12,0,0,0,240.47,71.09Zm-5.63,11.34L106.43,210.83a4,4,0,0,1-5.65,0l-71.61-72a4,4,0,0,1,0-5.66l24-24A3.94,3.94,0,0,1,56,108a4.11,4.11,0,0,1,2.89,1.21l42.35,41.08a4,4,0,0,0,5.59,0l98.37-97.1a4,4,0,0,1,5.68,0l24,23.58A4,4,0,0,1,234.84,82.43Z" })) + ] +]), Ore = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M200,28H165.47a51.88,51.88,0,0,0-74.94,0H56A20,20,0,0,0,36,48V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28ZM155.71,60H100.29a28,28,0,0,1,55.42,0ZM196,212H60V52H77.41A52.13,52.13,0,0,0,76,64v8A12,12,0,0,0,88,84h80a12,12,0,0,0,12-12V64a52.13,52.13,0,0,0-1.41-12H196Z" })) @@ -745,7 +776,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M200,36H161.92a44,44,0,0,0-67.84,0H56A12,12,0,0,0,44,48V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm-72-8a36,36,0,0,1,36,36v4H92V64A36,36,0,0,1,128,28Zm76,188a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H88.83A43.71,43.71,0,0,0,84,64v8a4,4,0,0,0,4,4h80a4,4,0,0,0,4-4V64a43.71,43.71,0,0,0-4.83-20H200a4,4,0,0,1,4,4Z" })) ] -]), Dre = /* @__PURE__ */ new Map([ +]), Lre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z" })) @@ -770,7 +801,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M66.56,91.07,22.25,128l44.31,36.93A4,4,0,0,1,64,172a3.94,3.94,0,0,1-2.56-.93l-48-40a4,4,0,0,1,0-6.14l48-40a4,4,0,0,1,5.12,6.14Zm176,33.86-48-40a4,4,0,1,0-5.12,6.14L233.75,128l-44.31,36.93a4,4,0,1,0,5.12,6.14l48-40a4,4,0,0,0,0-6.14ZM161.37,36.24a4,4,0,0,0-5.13,2.39l-64,176a4,4,0,0,0,2.39,5.13A4.12,4.12,0,0,0,96,220a4,4,0,0,0,3.76-2.63l64-176A4,4,0,0,0,161.37,36.24Z" })) ] -]), Ire = /* @__PURE__ */ new Map([ +]), Fre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z" })) @@ -795,7 +826,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z" })) ] -]), Are = /* @__PURE__ */ new Map([ +]), Nre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z" })) @@ -826,7 +857,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z" })) ] -]), Ore = /* @__PURE__ */ new Map([ +]), kre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z" })) @@ -851,7 +882,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z" })) ] -]), Lre = /* @__PURE__ */ new Map([ +]), $re = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm84,108a83.64,83.64,0,0,1-4.47,27L167,130a19.65,19.65,0,0,0-7.8-2.78l-22.82-3.08A20.14,20.14,0,0,0,117.72,132h-4.07l-2.71-5.6a19.88,19.88,0,0,0-13.8-10.84L94.46,115l4-7h14.39a20,20,0,0,0,9.66-2.49l12.25-6.76a20.57,20.57,0,0,0,3.74-2.68l26.92-24.33A20,20,0,0,0,172,56.49,84,84,0,0,1,212,128ZM140.76,45l6.2,11.1L122.75,78l-10.93,6H96.14A20.05,20.05,0,0,0,78.78,94.06l-4.49,7.85L67.68,84.28l9.91-23.42A83.91,83.91,0,0,1,140.76,45ZM44,128a83.52,83.52,0,0,1,4.4-26.77l7.74,20.65a19.89,19.89,0,0,0,14.52,12.53l19.53,4.2,3,6.1a20.11,20.11,0,0,0,13.55,10.77l-5,11.12a20,20,0,0,0,3.58,21.71l.21.22,18.16,18.7-.89,4.59A84.09,84.09,0,0,1,44,128Zm103.65,81.66a20.11,20.11,0,0,0-5-17.3l-.21-.22-17.72-18.25,11.37-25.52,19,2.56,41.43,25.48A84.2,84.2,0,0,1,147.65,209.66Z" })) @@ -882,7 +913,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm92,100a91.44,91.44,0,0,1-8.58,38.76L162.8,136.85a12.07,12.07,0,0,0-4.68-1.67l-22.82-3.07a12,12,0,0,0-12.56,7l-.4.88h-11.2a4,4,0,0,1-3.6-2.26l-3.8-7.86a11.93,11.93,0,0,0-8.28-6.5L82.07,120.5,92.67,102a4,4,0,0,1,3.47-2h16.71a12,12,0,0,0,5.8-1.5l12.24-6.76a11.79,11.79,0,0,0,2.25-1.6L160.05,65.8a12,12,0,0,0,2.43-14.75l-5.86-10.49A92.17,92.17,0,0,1,220,128ZM145.89,37.75l9.6,17.2a4,4,0,0,1-.81,4.92L127.77,84.21a4.41,4.41,0,0,1-.75.53L114.78,91.5a4,4,0,0,1-1.93.5H96.14a12,12,0,0,0-10.41,6l-11.86,20.7a4,4,0,0,1-2.75-2.47L59.63,85.6a4,4,0,0,1,.06-3L71,55.81A91.51,91.51,0,0,1,128,36,92.53,92.53,0,0,1,145.89,37.75ZM36,128A91.52,91.52,0,0,1,56,70.77l-3.71,8.75a12,12,0,0,0-.18,8.88l11.49,30.67a11.93,11.93,0,0,0,8.72,7.52l21.43,4.61a4,4,0,0,1,2.76,2.17l3.8,7.86a12.07,12.07,0,0,0,10.8,6.77h7.64L109,169.85A12,12,0,0,0,111.26,183l19.68,20.26a4,4,0,0,1,1,3.47L129.36,220,128,220A92.1,92.1,0,0,1,36,128Zm101.6,91.5,2.18-11.29a12.08,12.08,0,0,0-3-10.49l-19.68-20.26a4,4,0,0,1-.71-4.35l13.7-30.74a4,4,0,0,1,4.18-2.33l22.82,3.07a4.12,4.12,0,0,1,1.56.56l49.11,30.2A92.12,92.12,0,0,1,137.6,219.5Z" })) ] -]), Fre = /* @__PURE__ */ new Map([ +]), Bre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M216,20H40A20,20,0,0,0,20,40V216a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V40A20,20,0,0,0,216,20Zm-4,192H44V44H212ZM112,176V120a12,12,0,0,1,21.43-7.41A40,40,0,0,1,192,148v28a12,12,0,0,1-24,0V148a16,16,0,0,0-32,0v28a12,12,0,0,1-24,0ZM96,120v56a12,12,0,0,1-24,0V120a12,12,0,0,1,24,0ZM68,80A16,16,0,1,1,84,96,16,16,0,0,1,68,80Z" })) @@ -913,7 +944,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M216,28H40A12,12,0,0,0,28,40V216a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28Zm4,188a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4ZM92,112v64a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm88,28v36a4,4,0,0,1-8,0V140a24,24,0,0,0-48,0v36a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0v6.87A32,32,0,0,1,180,140ZM96,84a8,8,0,1,1-8-8A8,8,0,0,1,96,84Z" })) ] -]), Nre = /* @__PURE__ */ new Map([ +]), Vre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z" })) @@ -944,7 +975,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z" })) ] -]), kre = /* @__PURE__ */ new Map([ +]), Hre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212ZM116,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0Z" })) @@ -969,7 +1000,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM108,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0Z" })) ] -]), $re = /* @__PURE__ */ new Map([ +]), zre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M176,128a12,12,0,0,1-5.17,9.87l-52,36A12,12,0,0,1,100,164V92a12,12,0,0,1,18.83-9.87l52,36A12,12,0,0,1,176,128Zm60,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z" })) @@ -1000,7 +1031,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm46.12-95.39-64-40A4,4,0,0,0,104,88v80a4,4,0,0,0,2.06,3.5,4.06,4.06,0,0,0,1.94.5,4,4,0,0,0,2.12-.61l64-40a4,4,0,0,0,0-6.78ZM112,160.78V95.22L164.45,128Z" })) ] -]), Bre = /* @__PURE__ */ new Map([ +]), Gre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M240.49,103.52l-80-80A12,12,0,0,0,140,32V68.74c-25.76,3.12-53.66,15.89-76.75,35.47-29.16,24.74-47.32,56.69-51.14,90A16,16,0,0,0,39.67,207h0c10.46-11.14,47-45.74,100.33-50.42V192a12,12,0,0,0,20.48,8.48l80-80A12,12,0,0,0,240.49,103.52ZM164,163V144a12,12,0,0,0-12-12c-49,0-86.57,21.56-109.79,40.11,7.13-18.16,19.63-35.22,36.57-49.59C101.3,103.41,128.67,92,152,92a12,12,0,0,0,12-12V61l51,51Z" })) @@ -1031,7 +1062,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M234.83,109.17l-80-80A4,4,0,0,0,148,32V76.09c-54,2.44-120.43,53.55-127.94,119a7.87,7.87,0,0,0,4.58,8.16,8,8,0,0,0,3.41.77,7.9,7.9,0,0,0,5.79-2.55h0c11.53-12.27,53.29-51.73,114.16-53.4V192a4,4,0,0,0,6.83,2.83l80-80A4,4,0,0,0,234.83,109.17ZM156,182.33V144a4,4,0,0,0-4-4c-27.39,0-54.08,7.17-79.34,21.3A189.91,189.91,0,0,0,28,196l2.92,2.74L28,196c3.36-29.21,19.55-57.48,45.6-79.57C97.53,96.11,126.83,84,152,84a4,4,0,0,0,4-4V41.66L226.34,112Z" })) ] -]), Vre = /* @__PURE__ */ new Map([ +]), Wre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M250.73,210.63l-56-112a12,12,0,0,0-21.46,0l-20.52,41A84.2,84.2,0,0,1,114,126.22,107.48,107.48,0,0,0,139.33,68H160a12,12,0,0,0,0-24H108V32a12,12,0,0,0-24,0V44H32a12,12,0,0,0,0,24h83.13A83.69,83.69,0,0,1,96,110.35,84,84,0,0,1,83.6,91a12,12,0,1,0-21.81,10A107.55,107.55,0,0,0,78,126.24,83.54,83.54,0,0,1,32,140a12,12,0,0,0,0,24,107.47,107.47,0,0,0,64-21.07,108.4,108.4,0,0,0,45.39,19.44l-24.13,48.26a12,12,0,1,0,21.46,10.73L151.41,196h65.17l12.68,25.36a12,12,0,1,0,21.47-10.73ZM163.41,172,184,130.83,204.58,172Z" })) @@ -1062,7 +1093,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M243.58,214.21l-56-112a4,4,0,0,0-7.16,0L157.55,148A92.05,92.05,0,0,1,102,127.36,99.68,99.68,0,0,0,131.91,60H160a4,4,0,0,0,0-8H100V32a4,4,0,0,0-8,0V52H32a4,4,0,0,0,0,8h91.91A91.8,91.8,0,0,1,96,122.05,92,92,0,0,1,73.23,86.67a4,4,0,1,0-7.54,2.66,99.59,99.59,0,0,0,24.3,38A91.59,91.59,0,0,1,32,148a4,4,0,0,0,0,8,99.54,99.54,0,0,0,64-23.21,100.09,100.09,0,0,0,57.66,23l-29.22,58.43a4,4,0,1,0,7.16,3.58L146.47,188h75.06l14.89,29.79A4,4,0,0,0,240,220a4.12,4.12,0,0,0,1.79-.42A4,4,0,0,0,243.58,214.21ZM150.47,180,184,112.94,217.53,180Z" })) ] -]), Hre = /* @__PURE__ */ new Map([ +]), jre = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M218.12,209.56l-61-95.8,59.72-65.69a12,12,0,0,0-17.76-16.14L143.81,92.77,106.12,33.56A12,12,0,0,0,96,28H48A12,12,0,0,0,37.88,46.44l61,95.8L39.12,207.93a12,12,0,1,0,17.76,16.14l55.31-60.84,37.69,59.21A12,12,0,0,0,160,228h48a12,12,0,0,0,10.12-18.44ZM166.59,204,69.86,52H89.41l96.73,152Z" })) @@ -1087,7 +1118,7 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M211.37,213.85,147.13,112.9,211,42.69A4,4,0,0,0,205,37.31L142.68,105.9,99.38,37.85A4,4,0,0,0,96,36H48a4,4,0,0,0-3.37,6.15L108.87,143.1,45,213.31A4,4,0,1,0,51,218.69l62.36-68.59,43.3,68.05A4,4,0,0,0,160,220h48a4,4,0,0,0,3.37-6.15ZM162.2,212,55.29,44H93.8L200.71,212Z" })) ] -]), zre = /* @__PURE__ */ new Map([ +]), Ure = /* @__PURE__ */ new Map([ [ "bold", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M170.49,117.91l-56-36A12,12,0,0,0,96,92v72a12,12,0,0,0,18.49,10.09l56-36a12,12,0,0,0,0-20.18ZM120,142V114l21.81,14Zm118.21-73.5a28.05,28.05,0,0,0-16.93-19.14C186.4,35.91,131.29,36,128,36s-58.4-.09-93.28,13.38A28.05,28.05,0,0,0,17.79,68.52C15.15,78.72,12,97.32,12,128s3.15,49.28,5.79,59.48a28.05,28.05,0,0,0,16.93,19.14C68.21,219.55,120.36,220,127.37,220h1.26c7,0,59.16-.45,92.65-13.38a28.05,28.05,0,0,0,16.93-19.14c2.64-10.2,5.79-28.8,5.79-59.48S240.85,78.72,238.21,68.52ZM215,181.46a4,4,0,0,1-2.34,2.77C182.78,195.76,132.27,196,128.32,196h-.39c-.53,0-53.64.17-84.56-11.77A4,4,0,0,1,41,181.46c-1.88-7.24-5-23.82-5-53.46s3.15-46.22,5-53.46a4,4,0,0,1,2.34-2.77C74.29,59.83,127.39,60,127.92,60h.15c.54,0,53.64-.17,84.56,11.77A4,4,0,0,1,215,74.54c1.88,7.24,5,23.82,5,53.46S216.85,174.22,215,181.46Z" })) @@ -1118,29 +1149,29 @@ const Pre = /* @__PURE__ */ new Map([ "thin", /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("path", { d: "M162.22,124.67l-48-32A4,4,0,0,0,108,96v64a4,4,0,0,0,2.11,3.53,4,4,0,0,0,4.11-.2l48-32a4,4,0,0,0,0-6.66ZM116,152.53V103.47L152.79,128Zm114.46-82A20,20,0,0,0,218.4,56.85C184.6,43.79,130.27,44,128,44S71.4,43.79,37.6,56.85A20,20,0,0,0,25.54,70.52C23,80.27,20,98.16,20,128s3,47.73,5.54,57.48A20,20,0,0,0,37.6,199.15C71.4,212.21,125.73,212,128,212h.71c6.89,0,57.58-.43,89.72-12.85a20,20,0,0,0,12.06-13.67C233,175.72,236,157.84,236,128S233,80.27,230.46,70.52Zm-7.74,113a12,12,0,0,1-7.21,8.22C183.14,204.19,128.57,204,128,204s-55.11.19-87.48-12.31a12,12,0,0,1-7.21-8.22C30.87,174.17,28,157,28,128s2.87-46.17,5.28-55.47a12,12,0,0,1,7.21-8.22C72.86,51.81,127.43,52,128,52s55.11-.2,87.48,12.31a12,12,0,0,1,7.21,8.22C225.13,81.83,228,99,228,128S225.13,174.17,222.72,183.47Z" })) ] -]), Gre = Xs({ +]), Kre = Xs({ color: "currentColor", size: "1em", weight: "regular", mirrored: !1 }); -var Wre = Object.defineProperty, WC = Object.getOwnPropertySymbols, hz = Object.prototype.hasOwnProperty, fz = Object.prototype.propertyIsEnumerable, TL = (e, t, r) => t in e ? Wre(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _L = (e, t) => { +var Yre = Object.defineProperty, KC = Object.getOwnPropertySymbols, pz = Object.prototype.hasOwnProperty, gz = Object.prototype.propertyIsEnumerable, TL = (e, t, r) => t in e ? Yre(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _L = (e, t) => { for (var r in t || (t = {})) - hz.call(t, r) && TL(e, r, t[r]); - if (WC) - for (var r of WC(t)) - fz.call(t, r) && TL(e, r, t[r]); + pz.call(t, r) && TL(e, r, t[r]); + if (KC) + for (var r of KC(t)) + gz.call(t, r) && TL(e, r, t[r]); return e; }, ML = (e, t) => { var r = {}; for (var n in e) - hz.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); - if (e != null && WC) - for (var n of WC(e)) - t.indexOf(n) < 0 && fz.call(e, n) && (r[n] = e[n]); + pz.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); + if (e != null && KC) + for (var n of KC(e)) + t.indexOf(n) < 0 && gz.call(e, n) && (r[n] = e[n]); return r; }; -const pz = qr((e, t) => { +const vz = Ur((e, t) => { const r = e, { alt: n, color: i, @@ -1157,7 +1188,7 @@ const pz = qr((e, t) => { "mirrored", "children", "weights" - ]), d = Jt(Gre), { + ]), d = Jt(Kre), { color: h = "currentColor", size: f, weight: p = "regular", @@ -1184,179 +1215,189 @@ const pz = qr((e, t) => { c.get(a ?? p) ); }); -pz.displayName = "IconBase"; -const Pi = pz; -var jre = Object.defineProperty, Ure = Object.defineProperties, Kre = Object.getOwnPropertyDescriptors, DL = Object.getOwnPropertySymbols, Yre = Object.prototype.hasOwnProperty, qre = Object.prototype.propertyIsEnumerable, IL = (e, t, r) => t in e ? jre(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xre = (e, t) => { +vz.displayName = "IconBase"; +const mi = vz; +var qre = Object.defineProperty, Xre = Object.defineProperties, Zre = Object.getOwnPropertyDescriptors, DL = Object.getOwnPropertySymbols, Qre = Object.prototype.hasOwnProperty, Jre = Object.prototype.propertyIsEnumerable, IL = (e, t, r) => t in e ? qre(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ene = (e, t) => { for (var r in t || (t = {})) - Yre.call(t, r) && IL(e, r, t[r]); + Qre.call(t, r) && IL(e, r, t[r]); if (DL) for (var r of DL(t)) - qre.call(t, r) && IL(e, r, t[r]); + Jre.call(t, r) && IL(e, r, t[r]); return e; -}, Zre = (e, t) => Ure(e, Kre(t)); -const gz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Zre(Xre({ ref: t }, e), { weights: Pre }))); -gz.displayName = "ArrowClockwise"; -var Qre = Object.defineProperty, Jre = Object.defineProperties, ene = Object.getOwnPropertyDescriptors, AL = Object.getOwnPropertySymbols, tne = Object.prototype.hasOwnProperty, rne = Object.prototype.propertyIsEnumerable, OL = (e, t, r) => t in e ? Qre(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nne = (e, t) => { +}, tne = (e, t) => Xre(e, Zre(t)); +const mz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, tne(ene({ ref: t }, e), { weights: Mre }))); +mz.displayName = "ArrowClockwise"; +var rne = Object.defineProperty, nne = Object.defineProperties, ine = Object.getOwnPropertyDescriptors, AL = Object.getOwnPropertySymbols, one = Object.prototype.hasOwnProperty, ane = Object.prototype.propertyIsEnumerable, OL = (e, t, r) => t in e ? rne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, sne = (e, t) => { for (var r in t || (t = {})) - tne.call(t, r) && OL(e, r, t[r]); + one.call(t, r) && OL(e, r, t[r]); if (AL) for (var r of AL(t)) - rne.call(t, r) && OL(e, r, t[r]); + ane.call(t, r) && OL(e, r, t[r]); return e; -}, ine = (e, t) => Jre(e, ene(t)); -const MP = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, ine(nne({ ref: t }, e), { weights: Tre }))); +}, lne = (e, t) => nne(e, ine(t)); +const MP = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, lne(sne({ ref: t }, e), { weights: Dre }))); MP.displayName = "CaretDown"; -var one = Object.defineProperty, ane = Object.defineProperties, sne = Object.getOwnPropertyDescriptors, LL = Object.getOwnPropertySymbols, lne = Object.prototype.hasOwnProperty, cne = Object.prototype.propertyIsEnumerable, FL = (e, t, r) => t in e ? one(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, une = (e, t) => { +var cne = Object.defineProperty, une = Object.defineProperties, dne = Object.getOwnPropertyDescriptors, LL = Object.getOwnPropertySymbols, hne = Object.prototype.hasOwnProperty, fne = Object.prototype.propertyIsEnumerable, FL = (e, t, r) => t in e ? cne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pne = (e, t) => { for (var r in t || (t = {})) - lne.call(t, r) && FL(e, r, t[r]); + hne.call(t, r) && FL(e, r, t[r]); if (LL) for (var r of LL(t)) - cne.call(t, r) && FL(e, r, t[r]); + fne.call(t, r) && FL(e, r, t[r]); return e; -}, dne = (e, t) => ane(e, sne(t)); -const PD = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, dne(une({ ref: t }, e), { weights: _re }))); -PD.displayName = "CheckCircle"; -var hne = Object.defineProperty, fne = Object.defineProperties, pne = Object.getOwnPropertyDescriptors, NL = Object.getOwnPropertySymbols, gne = Object.prototype.hasOwnProperty, vne = Object.prototype.propertyIsEnumerable, kL = (e, t, r) => t in e ? hne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mne = (e, t) => { +}, gne = (e, t) => une(e, dne(t)); +const P2 = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, gne(pne({ ref: t }, e), { weights: Ire }))); +P2.displayName = "CheckCircle"; +var vne = Object.defineProperty, mne = Object.defineProperties, yne = Object.getOwnPropertyDescriptors, NL = Object.getOwnPropertySymbols, Cne = Object.prototype.hasOwnProperty, Sne = Object.prototype.propertyIsEnumerable, kL = (e, t, r) => t in e ? vne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bne = (e, t) => { for (var r in t || (t = {})) - gne.call(t, r) && kL(e, r, t[r]); + Cne.call(t, r) && kL(e, r, t[r]); if (NL) for (var r of NL(t)) - vne.call(t, r) && kL(e, r, t[r]); + Sne.call(t, r) && kL(e, r, t[r]); return e; -}, yne = (e, t) => fne(e, pne(t)); -const vz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, yne(mne({ ref: t }, e), { weights: Mre }))); -vz.displayName = "Clipboard"; -var Cne = Object.defineProperty, Sne = Object.defineProperties, bne = Object.getOwnPropertyDescriptors, $L = Object.getOwnPropertySymbols, wne = Object.prototype.hasOwnProperty, xne = Object.prototype.propertyIsEnumerable, BL = (e, t, r) => t in e ? Cne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ene = (e, t) => { +}, wne = (e, t) => mne(e, yne(t)); +const yz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, wne(bne({ ref: t }, e), { weights: Are }))); +yz.displayName = "CheckFat"; +var xne = Object.defineProperty, Ene = Object.defineProperties, Rne = Object.getOwnPropertyDescriptors, $L = Object.getOwnPropertySymbols, Pne = Object.prototype.hasOwnProperty, Tne = Object.prototype.propertyIsEnumerable, BL = (e, t, r) => t in e ? xne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _ne = (e, t) => { for (var r in t || (t = {})) - wne.call(t, r) && BL(e, r, t[r]); + Pne.call(t, r) && BL(e, r, t[r]); if ($L) for (var r of $L(t)) - xne.call(t, r) && BL(e, r, t[r]); + Tne.call(t, r) && BL(e, r, t[r]); return e; -}, Rne = (e, t) => Sne(e, bne(t)); -const mz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Rne(Ene({ ref: t }, e), { weights: Dre }))); -mz.displayName = "Code"; -var Pne = Object.defineProperty, Tne = Object.defineProperties, _ne = Object.getOwnPropertyDescriptors, VL = Object.getOwnPropertySymbols, Mne = Object.prototype.hasOwnProperty, Dne = Object.prototype.propertyIsEnumerable, HL = (e, t, r) => t in e ? Pne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ine = (e, t) => { +}, Mne = (e, t) => Ene(e, Rne(t)); +const Cz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, Mne(_ne({ ref: t }, e), { weights: Ore }))); +Cz.displayName = "Clipboard"; +var Dne = Object.defineProperty, Ine = Object.defineProperties, Ane = Object.getOwnPropertyDescriptors, VL = Object.getOwnPropertySymbols, One = Object.prototype.hasOwnProperty, Lne = Object.prototype.propertyIsEnumerable, HL = (e, t, r) => t in e ? Dne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fne = (e, t) => { for (var r in t || (t = {})) - Mne.call(t, r) && HL(e, r, t[r]); + One.call(t, r) && HL(e, r, t[r]); if (VL) for (var r of VL(t)) - Dne.call(t, r) && HL(e, r, t[r]); + Lne.call(t, r) && HL(e, r, t[r]); return e; -}, Ane = (e, t) => Tne(e, _ne(t)); -const yz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Ane(Ine({ ref: t }, e), { weights: Ire }))); -yz.displayName = "Copy"; -var One = Object.defineProperty, Lne = Object.defineProperties, Fne = Object.getOwnPropertyDescriptors, zL = Object.getOwnPropertySymbols, Nne = Object.prototype.hasOwnProperty, kne = Object.prototype.propertyIsEnumerable, GL = (e, t, r) => t in e ? One(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $ne = (e, t) => { +}, Nne = (e, t) => Ine(e, Ane(t)); +const Sz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, Nne(Fne({ ref: t }, e), { weights: Lre }))); +Sz.displayName = "Code"; +var kne = Object.defineProperty, $ne = Object.defineProperties, Bne = Object.getOwnPropertyDescriptors, zL = Object.getOwnPropertySymbols, Vne = Object.prototype.hasOwnProperty, Hne = Object.prototype.propertyIsEnumerable, GL = (e, t, r) => t in e ? kne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zne = (e, t) => { for (var r in t || (t = {})) - Nne.call(t, r) && GL(e, r, t[r]); + Vne.call(t, r) && GL(e, r, t[r]); if (zL) for (var r of zL(t)) - kne.call(t, r) && GL(e, r, t[r]); + Hne.call(t, r) && GL(e, r, t[r]); return e; -}, Bne = (e, t) => Lne(e, Fne(t)); -const Cz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Bne($ne({ ref: t }, e), { weights: Are }))); -Cz.displayName = "Download"; -var Vne = Object.defineProperty, Hne = Object.defineProperties, zne = Object.getOwnPropertyDescriptors, WL = Object.getOwnPropertySymbols, Gne = Object.prototype.hasOwnProperty, Wne = Object.prototype.propertyIsEnumerable, jL = (e, t, r) => t in e ? Vne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jne = (e, t) => { +}, Gne = (e, t) => $ne(e, Bne(t)); +const bz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, Gne(zne({ ref: t }, e), { weights: Fre }))); +bz.displayName = "Copy"; +var Wne = Object.defineProperty, jne = Object.defineProperties, Une = Object.getOwnPropertyDescriptors, WL = Object.getOwnPropertySymbols, Kne = Object.prototype.hasOwnProperty, Yne = Object.prototype.propertyIsEnumerable, jL = (e, t, r) => t in e ? Wne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qne = (e, t) => { for (var r in t || (t = {})) - Gne.call(t, r) && jL(e, r, t[r]); + Kne.call(t, r) && jL(e, r, t[r]); if (WL) for (var r of WL(t)) - Wne.call(t, r) && jL(e, r, t[r]); + Yne.call(t, r) && jL(e, r, t[r]); return e; -}, Une = (e, t) => Hne(e, zne(t)); -const Sz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Une(jne({ ref: t }, e), { weights: Ore }))); -Sz.displayName = "Globe"; -var Kne = Object.defineProperty, Yne = Object.defineProperties, qne = Object.getOwnPropertyDescriptors, UL = Object.getOwnPropertySymbols, Xne = Object.prototype.hasOwnProperty, Zne = Object.prototype.propertyIsEnumerable, KL = (e, t, r) => t in e ? Kne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qne = (e, t) => { +}, Xne = (e, t) => jne(e, Une(t)); +const wz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, Xne(qne({ ref: t }, e), { weights: Nre }))); +wz.displayName = "Download"; +var Zne = Object.defineProperty, Qne = Object.defineProperties, Jne = Object.getOwnPropertyDescriptors, UL = Object.getOwnPropertySymbols, eie = Object.prototype.hasOwnProperty, tie = Object.prototype.propertyIsEnumerable, KL = (e, t, r) => t in e ? Zne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rie = (e, t) => { for (var r in t || (t = {})) - Xne.call(t, r) && KL(e, r, t[r]); + eie.call(t, r) && KL(e, r, t[r]); if (UL) for (var r of UL(t)) - Zne.call(t, r) && KL(e, r, t[r]); + tie.call(t, r) && KL(e, r, t[r]); return e; -}, Jne = (e, t) => Yne(e, qne(t)); -const TD = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Jne(Qne({ ref: t }, e), { weights: Lre }))); -TD.displayName = "GlobeHemisphereWest"; -var eie = Object.defineProperty, tie = Object.defineProperties, rie = Object.getOwnPropertyDescriptors, YL = Object.getOwnPropertySymbols, nie = Object.prototype.hasOwnProperty, iie = Object.prototype.propertyIsEnumerable, qL = (e, t, r) => t in e ? eie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oie = (e, t) => { +}, nie = (e, t) => Qne(e, Jne(t)); +const xz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, nie(rie({ ref: t }, e), { weights: kre }))); +xz.displayName = "Globe"; +var iie = Object.defineProperty, oie = Object.defineProperties, aie = Object.getOwnPropertyDescriptors, YL = Object.getOwnPropertySymbols, sie = Object.prototype.hasOwnProperty, lie = Object.prototype.propertyIsEnumerable, qL = (e, t, r) => t in e ? iie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, cie = (e, t) => { for (var r in t || (t = {})) - nie.call(t, r) && qL(e, r, t[r]); + sie.call(t, r) && qL(e, r, t[r]); if (YL) for (var r of YL(t)) - iie.call(t, r) && qL(e, r, t[r]); + lie.call(t, r) && qL(e, r, t[r]); return e; -}, aie = (e, t) => tie(e, rie(t)); -const bz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, aie(oie({ ref: t }, e), { weights: Fre }))); -bz.displayName = "LinkedinLogo"; -var sie = Object.defineProperty, lie = Object.defineProperties, cie = Object.getOwnPropertyDescriptors, XL = Object.getOwnPropertySymbols, uie = Object.prototype.hasOwnProperty, die = Object.prototype.propertyIsEnumerable, ZL = (e, t, r) => t in e ? sie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hie = (e, t) => { +}, uie = (e, t) => oie(e, aie(t)); +const T2 = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, uie(cie({ ref: t }, e), { weights: $re }))); +T2.displayName = "GlobeHemisphereWest"; +var die = Object.defineProperty, hie = Object.defineProperties, fie = Object.getOwnPropertyDescriptors, XL = Object.getOwnPropertySymbols, pie = Object.prototype.hasOwnProperty, gie = Object.prototype.propertyIsEnumerable, ZL = (e, t, r) => t in e ? die(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vie = (e, t) => { for (var r in t || (t = {})) - uie.call(t, r) && ZL(e, r, t[r]); + pie.call(t, r) && ZL(e, r, t[r]); if (XL) for (var r of XL(t)) - die.call(t, r) && ZL(e, r, t[r]); + gie.call(t, r) && ZL(e, r, t[r]); return e; -}, fie = (e, t) => lie(e, cie(t)); -const _D = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, fie(hie({ ref: t }, e), { weights: Nre }))); -_D.displayName = "PaperPlaneTilt"; -var pie = Object.defineProperty, gie = Object.defineProperties, vie = Object.getOwnPropertyDescriptors, QL = Object.getOwnPropertySymbols, mie = Object.prototype.hasOwnProperty, yie = Object.prototype.propertyIsEnumerable, JL = (e, t, r) => t in e ? pie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Cie = (e, t) => { +}, mie = (e, t) => hie(e, fie(t)); +const Ez = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, mie(vie({ ref: t }, e), { weights: Bre }))); +Ez.displayName = "LinkedinLogo"; +var yie = Object.defineProperty, Cie = Object.defineProperties, Sie = Object.getOwnPropertyDescriptors, QL = Object.getOwnPropertySymbols, bie = Object.prototype.hasOwnProperty, wie = Object.prototype.propertyIsEnumerable, JL = (e, t, r) => t in e ? yie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xie = (e, t) => { for (var r in t || (t = {})) - mie.call(t, r) && JL(e, r, t[r]); + bie.call(t, r) && JL(e, r, t[r]); if (QL) for (var r of QL(t)) - yie.call(t, r) && JL(e, r, t[r]); + wie.call(t, r) && JL(e, r, t[r]); return e; -}, Sie = (e, t) => gie(e, vie(t)); -const wz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Sie(Cie({ ref: t }, e), { weights: kre }))); -wz.displayName = "PauseCircle"; -var bie = Object.defineProperty, wie = Object.defineProperties, xie = Object.getOwnPropertyDescriptors, eF = Object.getOwnPropertySymbols, Eie = Object.prototype.hasOwnProperty, Rie = Object.prototype.propertyIsEnumerable, tF = (e, t, r) => t in e ? bie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pie = (e, t) => { +}, Eie = (e, t) => Cie(e, Sie(t)); +const _2 = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, Eie(xie({ ref: t }, e), { weights: Vre }))); +_2.displayName = "PaperPlaneTilt"; +var Rie = Object.defineProperty, Pie = Object.defineProperties, Tie = Object.getOwnPropertyDescriptors, eF = Object.getOwnPropertySymbols, _ie = Object.prototype.hasOwnProperty, Mie = Object.prototype.propertyIsEnumerable, tF = (e, t, r) => t in e ? Rie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Die = (e, t) => { for (var r in t || (t = {})) - Eie.call(t, r) && tF(e, r, t[r]); + _ie.call(t, r) && tF(e, r, t[r]); if (eF) for (var r of eF(t)) - Rie.call(t, r) && tF(e, r, t[r]); + Mie.call(t, r) && tF(e, r, t[r]); return e; -}, Tie = (e, t) => wie(e, xie(t)); -const xz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Tie(Pie({ ref: t }, e), { weights: $re }))); -xz.displayName = "PlayCircle"; -var _ie = Object.defineProperty, Mie = Object.defineProperties, Die = Object.getOwnPropertyDescriptors, rF = Object.getOwnPropertySymbols, Iie = Object.prototype.hasOwnProperty, Aie = Object.prototype.propertyIsEnumerable, nF = (e, t, r) => t in e ? _ie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oie = (e, t) => { +}, Iie = (e, t) => Pie(e, Tie(t)); +const Rz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, Iie(Die({ ref: t }, e), { weights: Hre }))); +Rz.displayName = "PauseCircle"; +var Aie = Object.defineProperty, Oie = Object.defineProperties, Lie = Object.getOwnPropertyDescriptors, rF = Object.getOwnPropertySymbols, Fie = Object.prototype.hasOwnProperty, Nie = Object.prototype.propertyIsEnumerable, nF = (e, t, r) => t in e ? Aie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, kie = (e, t) => { for (var r in t || (t = {})) - Iie.call(t, r) && nF(e, r, t[r]); + Fie.call(t, r) && nF(e, r, t[r]); if (rF) for (var r of rF(t)) - Aie.call(t, r) && nF(e, r, t[r]); + Nie.call(t, r) && nF(e, r, t[r]); return e; -}, Lie = (e, t) => Mie(e, Die(t)); -const Ez = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Lie(Oie({ ref: t }, e), { weights: Bre }))); -Ez.displayName = "ShareFat"; -var Fie = Object.defineProperty, Nie = Object.defineProperties, kie = Object.getOwnPropertyDescriptors, iF = Object.getOwnPropertySymbols, $ie = Object.prototype.hasOwnProperty, Bie = Object.prototype.propertyIsEnumerable, oF = (e, t, r) => t in e ? Fie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vie = (e, t) => { +}, $ie = (e, t) => Oie(e, Lie(t)); +const Pz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, $ie(kie({ ref: t }, e), { weights: zre }))); +Pz.displayName = "PlayCircle"; +var Bie = Object.defineProperty, Vie = Object.defineProperties, Hie = Object.getOwnPropertyDescriptors, iF = Object.getOwnPropertySymbols, zie = Object.prototype.hasOwnProperty, Gie = Object.prototype.propertyIsEnumerable, oF = (e, t, r) => t in e ? Bie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Wie = (e, t) => { for (var r in t || (t = {})) - $ie.call(t, r) && oF(e, r, t[r]); + zie.call(t, r) && oF(e, r, t[r]); if (iF) for (var r of iF(t)) - Bie.call(t, r) && oF(e, r, t[r]); + Gie.call(t, r) && oF(e, r, t[r]); return e; -}, Hie = (e, t) => Nie(e, kie(t)); -const MD = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Hie(Vie({ ref: t }, e), { weights: Vre }))); -MD.displayName = "Translate"; -var zie = Object.defineProperty, Gie = Object.defineProperties, Wie = Object.getOwnPropertyDescriptors, aF = Object.getOwnPropertySymbols, jie = Object.prototype.hasOwnProperty, Uie = Object.prototype.propertyIsEnumerable, sF = (e, t, r) => t in e ? zie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kie = (e, t) => { +}, jie = (e, t) => Vie(e, Hie(t)); +const Tz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, jie(Wie({ ref: t }, e), { weights: Gre }))); +Tz.displayName = "ShareFat"; +var Uie = Object.defineProperty, Kie = Object.defineProperties, Yie = Object.getOwnPropertyDescriptors, aF = Object.getOwnPropertySymbols, qie = Object.prototype.hasOwnProperty, Xie = Object.prototype.propertyIsEnumerable, sF = (e, t, r) => t in e ? Uie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Zie = (e, t) => { for (var r in t || (t = {})) - jie.call(t, r) && sF(e, r, t[r]); + qie.call(t, r) && sF(e, r, t[r]); if (aF) for (var r of aF(t)) - Uie.call(t, r) && sF(e, r, t[r]); + Xie.call(t, r) && sF(e, r, t[r]); return e; -}, Yie = (e, t) => Gie(e, Wie(t)); -const Rz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, Yie(Kie({ ref: t }, e), { weights: Hre }))); -Rz.displayName = "XLogo"; -var qie = Object.defineProperty, Xie = Object.defineProperties, Zie = Object.getOwnPropertyDescriptors, lF = Object.getOwnPropertySymbols, Qie = Object.prototype.hasOwnProperty, Jie = Object.prototype.propertyIsEnumerable, cF = (e, t, r) => t in e ? qie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, eoe = (e, t) => { +}, Qie = (e, t) => Kie(e, Yie(t)); +const M2 = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, Qie(Zie({ ref: t }, e), { weights: Wre }))); +M2.displayName = "Translate"; +var Jie = Object.defineProperty, eoe = Object.defineProperties, toe = Object.getOwnPropertyDescriptors, lF = Object.getOwnPropertySymbols, roe = Object.prototype.hasOwnProperty, noe = Object.prototype.propertyIsEnumerable, cF = (e, t, r) => t in e ? Jie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ioe = (e, t) => { for (var r in t || (t = {})) - Qie.call(t, r) && cF(e, r, t[r]); + roe.call(t, r) && cF(e, r, t[r]); if (lF) for (var r of lF(t)) - Jie.call(t, r) && cF(e, r, t[r]); + noe.call(t, r) && cF(e, r, t[r]); + return e; +}, ooe = (e, t) => eoe(e, toe(t)); +const _z = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, ooe(ioe({ ref: t }, e), { weights: jre }))); +_z.displayName = "XLogo"; +var aoe = Object.defineProperty, soe = Object.defineProperties, loe = Object.getOwnPropertyDescriptors, uF = Object.getOwnPropertySymbols, coe = Object.prototype.hasOwnProperty, uoe = Object.prototype.propertyIsEnumerable, dF = (e, t, r) => t in e ? aoe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, doe = (e, t) => { + for (var r in t || (t = {})) + coe.call(t, r) && dF(e, r, t[r]); + if (uF) + for (var r of uF(t)) + uoe.call(t, r) && dF(e, r, t[r]); return e; -}, toe = (e, t) => Xie(e, Zie(t)); -const Pz = qr((e, t) => /* @__PURE__ */ k.createElement(Pi, toe(eoe({ ref: t }, e), { weights: zre }))); -Pz.displayName = "YoutubeLogo"; -var Tz = { exports: {} }; +}, hoe = (e, t) => soe(e, loe(t)); +const Mz = Ur((e, t) => /* @__PURE__ */ k.createElement(mi, hoe(doe({ ref: t }, e), { weights: Ure }))); +Mz.displayName = "YoutubeLogo"; +var Dz = { exports: {} }; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see @@ -1391,9 +1432,9 @@ var Tz = { exports: {} }; } e.exports ? (r.default = r, e.exports = r) : window.classNames = r; })(); -})(Tz); -var roe = Tz.exports; -const ie = /* @__PURE__ */ qf(roe); +})(Dz); +var foe = Dz.exports; +const ie = /* @__PURE__ */ Zf(foe); function Te() { return Te = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { @@ -1413,10 +1454,10 @@ var DP = { exports: {} }, Zr = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var uF; -function noe() { - if (uF) return Zr; - uF = 1; +var hF; +function poe() { + if (hF) return Zr; + hF = 1; var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), p; p = Symbol.for("react.module.reference"); function g(v) { @@ -1491,9 +1532,9 @@ var Qr = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var dF; -function ioe() { - return dF || (dF = 1, process.env.NODE_ENV !== "production" && function() { +var fF; +function goe() { + return fF || (fF = 1, process.env.NODE_ENV !== "production" && function() { var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), p = !1, g = !1, v = !1, m = !1, y = !1, C; C = Symbol.for("react.module.reference"); function b(G) { @@ -1505,8 +1546,8 @@ function ioe() { } function w(G) { if (typeof G == "object" && G !== null) { - var re = G.$$typeof; - switch (re) { + var ne = G.$$typeof; + switch (ne) { case e: var le = G.type; switch (le) { @@ -1527,11 +1568,11 @@ function ioe() { case o: return ue; default: - return re; + return ne; } } case t: - return re; + return ne; } } } @@ -1563,7 +1604,7 @@ function ioe() { function J(G) { return w(G) === d; } - function te(G) { + function re(G) { return w(G) === t; } function Q(G) { @@ -1578,50 +1619,50 @@ function ioe() { function ae(G) { return w(G) === u; } - Qr.ContextConsumer = x, Qr.ContextProvider = E, Qr.Element = R, Qr.ForwardRef = P, Qr.Fragment = T, Qr.Lazy = _, Qr.Memo = D, Qr.Portal = A, Qr.Profiler = M, Qr.StrictMode = O, Qr.Suspense = L, Qr.SuspenseList = N, Qr.isAsyncMode = I, Qr.isConcurrentMode = V, Qr.isContextConsumer = H, Qr.isContextProvider = B, Qr.isElement = W, Qr.isForwardRef = j, Qr.isFragment = X, Qr.isLazy = q, Qr.isMemo = J, Qr.isPortal = te, Qr.isProfiler = Q, Qr.isStrictMode = Y, Qr.isSuspense = K, Qr.isSuspenseList = ae, Qr.isValidElementType = b, Qr.typeOf = w; + Qr.ContextConsumer = x, Qr.ContextProvider = E, Qr.Element = R, Qr.ForwardRef = P, Qr.Fragment = T, Qr.Lazy = _, Qr.Memo = D, Qr.Portal = A, Qr.Profiler = M, Qr.StrictMode = O, Qr.Suspense = L, Qr.SuspenseList = N, Qr.isAsyncMode = I, Qr.isConcurrentMode = V, Qr.isContextConsumer = H, Qr.isContextProvider = B, Qr.isElement = W, Qr.isForwardRef = j, Qr.isFragment = X, Qr.isLazy = q, Qr.isMemo = J, Qr.isPortal = re, Qr.isProfiler = Q, Qr.isStrictMode = Y, Qr.isSuspense = K, Qr.isSuspenseList = ae, Qr.isValidElementType = b, Qr.typeOf = w; }()), Qr; } -process.env.NODE_ENV === "production" ? DP.exports = noe() : DP.exports = ioe(); -var Bg = DP.exports; -function bi(e) { +process.env.NODE_ENV === "production" ? DP.exports = poe() : DP.exports = goe(); +var Hg = DP.exports; +function wi(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = []; return k.Children.forEach(e, function(n) { - n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(bi(n)) : Bg.isFragment(n) && n.props ? r = r.concat(bi(n.props.children, t)) : r.push(n)); + n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(wi(n)) : Hg.isFragment(n) && n.props ? r = r.concat(wi(n.props.children, t)) : r.push(n)); }), r; } -var IP = {}, DD = [], ooe = function(t) { - DD.push(t); +var IP = {}, D2 = [], voe = function(t) { + D2.push(t); }; function Gs(e, t) { if (process.env.NODE_ENV !== "production" && !e && console !== void 0) { - var r = DD.reduce(function(n, i) { + var r = D2.reduce(function(n, i) { return i(n ?? "", "warning"); }, t); r && console.error("Warning: ".concat(r)); } } -function aoe(e, t) { +function moe(e, t) { if (process.env.NODE_ENV !== "production" && !e && console !== void 0) { - var r = DD.reduce(function(n, i) { + var r = D2.reduce(function(n, i) { return i(n ?? "", "note"); }, t); r && console.warn("Note: ".concat(r)); } } -function _z() { +function Iz() { IP = {}; } -function Mz(e, t, r) { +function Az(e, t, r) { !t && !IP[r] && (e(!1, r), IP[r] = !0); } function Tt(e, t) { - Mz(Gs, e, t); + Az(Gs, e, t); } function AP(e, t) { - Mz(aoe, e, t); + Az(moe, e, t); } -Tt.preMessage = ooe; -Tt.resetWarned = _z; +Tt.preMessage = voe; +Tt.resetWarned = Iz; Tt.noteOnce = AP; function pt(e) { "@babel/helpers - typeof"; @@ -1631,7 +1672,7 @@ function pt(e) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, pt(e); } -function soe(e, t) { +function yoe(e, t) { if (pt(e) != "object" || !e) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { @@ -1641,19 +1682,19 @@ function soe(e, t) { } return (t === "string" ? String : Number)(e); } -function Dz(e) { - var t = soe(e, "string"); +function Oz(e) { + var t = yoe(e, "string"); return pt(t) == "symbol" ? t : t + ""; } function U(e, t, r) { - return (t = Dz(t)) in e ? Object.defineProperty(e, t, { + return (t = Oz(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } -function hF(e, t) { +function pF(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); @@ -1666,22 +1707,22 @@ function hF(e, t) { function Z(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; - t % 2 ? hF(Object(r), !0).forEach(function(n) { + t % 2 ? pF(Object(r), !0).forEach(function(n) { U(e, n, r[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : hF(Object(r)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pF(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } -function yv(e) { +function Sv(e) { return e instanceof HTMLElement || e instanceof SVGElement; } -function loe(e) { - return e && pt(e) === "object" && yv(e.nativeElement) ? e.nativeElement : yv(e) ? e : null; +function Coe(e) { + return e && pt(e) === "object" && Sv(e.nativeElement) ? e.nativeElement : Sv(e) ? e : null; } -function Vg(e) { - var t = loe(e); +function zg(e) { + var t = Coe(e); if (t) return t; if (e instanceof k.Component) { @@ -1694,7 +1735,7 @@ function $d(e, t, r) { var n = S.useRef({}); return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value; } -var Cv = function(t, r) { +var bv = function(t, r) { typeof t == "function" ? t(r) : pt(t) === "object" && t && "current" in t && (t.current = r); }, Eo = function() { for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) @@ -1702,7 +1743,7 @@ var Cv = function(t, r) { var i = r.filter(Boolean); return i.length <= 1 ? i[0] : function(o) { r.forEach(function(a) { - Cv(a, o); + bv(a, o); }); }; }, Xc = function() { @@ -1716,18 +1757,18 @@ var Cv = function(t, r) { }); }); }, Ws = function(t) { - var r, n, i = Bg.isMemo(t) ? t.type.type : t.type; - return !(typeof i == "function" && !((r = i.prototype) !== null && r !== void 0 && r.render) && i.$$typeof !== Bg.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== Bg.ForwardRef); + var r, n, i = Hg.isMemo(t) ? t.type.type : t.type; + return !(typeof i == "function" && !((r = i.prototype) !== null && r !== void 0 && r.render) && i.$$typeof !== Hg.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== Hg.ForwardRef); }; function OP(e) { - return /* @__PURE__ */ vre(e) && !Bg.isFragment(e); + return /* @__PURE__ */ Cre(e) && !Hg.isFragment(e); } -var coe = function(t) { +var Soe = function(t) { return OP(t) && Ws(t); }; -Number(gre.split(".")[0]) >= 19; +Number(yre.split(".")[0]) >= 19; var LP = /* @__PURE__ */ S.createContext(null); -function uoe(e) { +function boe(e) { var t = e.children, r = e.onBatchResize, n = S.useRef(0), i = S.useRef([]), o = S.useContext(LP), a = S.useCallback(function(s, l, c) { n.current += 1; var u = n.current; @@ -1743,7 +1784,7 @@ function uoe(e) { value: a }, t); } -var Iz = function() { +var Lz = function() { if (typeof Map < "u") return Map; function e(t, r) { @@ -1789,27 +1830,27 @@ var Iz = function() { }, t; }() ); -}(), FP = typeof window < "u" && typeof document < "u" && window.document === document, jC = function() { +}(), FP = typeof window < "u" && typeof document < "u" && window.document === document, YC = function() { return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")(); -}(), doe = function() { - return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(jC) : function(e) { +}(), woe = function() { + return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(YC) : function(e) { return setTimeout(function() { return e(Date.now()); }, 1e3 / 60); }; -}(), hoe = 2; -function foe(e, t) { +}(), xoe = 2; +function Eoe(e, t) { var r = !1, n = !1, i = 0; function o() { r && (r = !1, e()), n && s(); } function a() { - doe(o); + woe(o); } function s() { var l = Date.now(); if (r) { - if (l - i < hoe) + if (l - i < xoe) return; n = !0; } else @@ -1818,11 +1859,11 @@ function foe(e, t) { } return s; } -var poe = 20, goe = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], voe = typeof MutationObserver < "u", moe = ( +var Roe = 20, Poe = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Toe = typeof MutationObserver < "u", _oe = ( /** @class */ function() { function e() { - this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = foe(this.refresh.bind(this), poe); + this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Eoe(this.refresh.bind(this), Roe); } return e.prototype.addObserver = function(t) { ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_(); @@ -1840,7 +1881,7 @@ var poe = 20, goe = ["top", "right", "bottom", "left", "width", "height", "size" return r.broadcastActive(); }), t.length > 0; }, e.prototype.connect_ = function() { - !FP || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), voe ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, { + !FP || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Toe ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, { attributes: !0, childList: !0, characterData: !0, @@ -1849,7 +1890,7 @@ var poe = 20, goe = ["top", "right", "bottom", "left", "width", "height", "size" }, e.prototype.disconnect_ = function() { !FP || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1); }, e.prototype.onTransitionEnd_ = function(t) { - var r = t.propertyName, n = r === void 0 ? "" : r, i = goe.some(function(o) { + var r = t.propertyName, n = r === void 0 ? "" : r, i = Poe.some(function(o) { return !!~n.indexOf(o); }); i && this.refresh(); @@ -1857,7 +1898,7 @@ var poe = 20, goe = ["top", "right", "bottom", "left", "width", "height", "size" return this.instance_ || (this.instance_ = new e()), this.instance_; }, e.instance_ = null, e; }() -), Az = function(e, t) { +), Fz = function(e, t) { for (var r = 0, n = Object.keys(t); r < n.length; r++) { var i = n[r]; Object.defineProperty(e, i, { @@ -1870,57 +1911,57 @@ var poe = 20, goe = ["top", "right", "bottom", "left", "width", "height", "size" return e; }, Rf = function(e) { var t = e && e.ownerDocument && e.ownerDocument.defaultView; - return t || jC; -}, Oz = Ib(0, 0, 0, 0); -function UC(e) { + return t || YC; +}, Nz = Ob(0, 0, 0, 0); +function qC(e) { return parseFloat(e) || 0; } -function fF(e) { +function gF(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; return t.reduce(function(n, i) { var o = e["border-" + i + "-width"]; - return n + UC(o); + return n + qC(o); }, 0); } -function yoe(e) { +function Moe(e) { for (var t = ["top", "right", "bottom", "left"], r = {}, n = 0, i = t; n < i.length; n++) { var o = i[n], a = e["padding-" + o]; - r[o] = UC(a); + r[o] = qC(a); } return r; } -function Coe(e) { +function Doe(e) { var t = e.getBBox(); - return Ib(0, 0, t.width, t.height); + return Ob(0, 0, t.width, t.height); } -function Soe(e) { +function Ioe(e) { var t = e.clientWidth, r = e.clientHeight; if (!t && !r) - return Oz; - var n = Rf(e).getComputedStyle(e), i = yoe(n), o = i.left + i.right, a = i.top + i.bottom, s = UC(n.width), l = UC(n.height); - if (n.boxSizing === "border-box" && (Math.round(s + o) !== t && (s -= fF(n, "left", "right") + o), Math.round(l + a) !== r && (l -= fF(n, "top", "bottom") + a)), !woe(e)) { + return Nz; + var n = Rf(e).getComputedStyle(e), i = Moe(n), o = i.left + i.right, a = i.top + i.bottom, s = qC(n.width), l = qC(n.height); + if (n.boxSizing === "border-box" && (Math.round(s + o) !== t && (s -= gF(n, "left", "right") + o), Math.round(l + a) !== r && (l -= gF(n, "top", "bottom") + a)), !Ooe(e)) { var c = Math.round(s + o) - t, u = Math.round(l + a) - r; Math.abs(c) !== 1 && (s -= c), Math.abs(u) !== 1 && (l -= u); } - return Ib(i.left, i.top, s, l); + return Ob(i.left, i.top, s, l); } -var boe = /* @__PURE__ */ function() { +var Aoe = /* @__PURE__ */ function() { return typeof SVGGraphicsElement < "u" ? function(e) { return e instanceof Rf(e).SVGGraphicsElement; } : function(e) { return e instanceof Rf(e).SVGElement && typeof e.getBBox == "function"; }; }(); -function woe(e) { +function Ooe(e) { return e === Rf(e).document.documentElement; } -function xoe(e) { - return FP ? boe(e) ? Coe(e) : Soe(e) : Oz; +function Loe(e) { + return FP ? Aoe(e) ? Doe(e) : Ioe(e) : Nz; } -function Eoe(e) { +function Foe(e) { var t = e.x, r = e.y, n = e.width, i = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, a = Object.create(o.prototype); - return Az(a, { + return Fz(a, { x: t, y: r, width: n, @@ -1931,37 +1972,37 @@ function Eoe(e) { left: t }), a; } -function Ib(e, t, r, n) { +function Ob(e, t, r, n) { return { x: e, y: t, width: r, height: n }; } -var Roe = ( +var Noe = ( /** @class */ function() { function e(t) { - this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Ib(0, 0, 0, 0), this.target = t; + this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Ob(0, 0, 0, 0), this.target = t; } return e.prototype.isActive = function() { - var t = xoe(this.target); + var t = Loe(this.target); return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight; }, e.prototype.broadcastRect = function() { var t = this.contentRect_; return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t; }, e; }() -), Poe = ( +), koe = ( /** @class */ /* @__PURE__ */ function() { function e(t, r) { - var n = Eoe(r); - Az(this, { target: t, contentRect: n }); + var n = Foe(r); + Fz(this, { target: t, contentRect: n }); } return e; }() -), Toe = ( +), $oe = ( /** @class */ function() { function e(t, r, n) { - if (this.activeObservations_ = [], this.observations_ = new Iz(), typeof t != "function") + if (this.activeObservations_ = [], this.observations_ = new Lz(), typeof t != "function") throw new TypeError("The callback provided as parameter 1 is not a function."); this.callback_ = t, this.controller_ = r, this.callbackCtx_ = n; } @@ -1972,7 +2013,7 @@ var Roe = ( if (!(t instanceof Rf(t).Element)) throw new TypeError('parameter 1 is not of type "Element".'); var r = this.observations_; - r.has(t) || (r.set(t, new Roe(t)), this.controller_.addObserver(this), this.controller_.refresh()); + r.has(t) || (r.set(t, new Noe(t)), this.controller_.addObserver(this), this.controller_.refresh()); } }, e.prototype.unobserve = function(t) { if (!arguments.length) @@ -1993,7 +2034,7 @@ var Roe = ( }, e.prototype.broadcastActive = function() { if (this.hasActive()) { var t = this.callbackCtx_, r = this.activeObservations_.map(function(n) { - return new Poe(n.target, n.broadcastRect()); + return new koe(n.target, n.broadcastRect()); }); this.callback_.call(t, r, t), this.clearActive(); } @@ -2003,7 +2044,7 @@ var Roe = ( return this.activeObservations_.length > 0; }, e; }() -), Lz = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Iz(), Fz = ( +), kz = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Lz(), $z = ( /** @class */ /* @__PURE__ */ function() { function e(t) { @@ -2011,8 +2052,8 @@ var Roe = ( throw new TypeError("Cannot call a class as a function."); if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); - var r = moe.getInstance(), n = new Toe(t, r, this); - Lz.set(this, n); + var r = _oe.getInstance(), n = new $oe(t, r, this); + kz.set(this, n); } return e; }() @@ -2022,49 +2063,49 @@ var Roe = ( "unobserve", "disconnect" ].forEach(function(e) { - Fz.prototype[e] = function() { + $z.prototype[e] = function() { var t; - return (t = Lz.get(this))[e].apply(t, arguments); + return (t = kz.get(this))[e].apply(t, arguments); }; }); -var _oe = function() { - return typeof jC.ResizeObserver < "u" ? jC.ResizeObserver : Fz; -}(), bl = /* @__PURE__ */ new Map(); -function Nz(e) { +var Boe = function() { + return typeof YC.ResizeObserver < "u" ? YC.ResizeObserver : $z; +}(), wl = /* @__PURE__ */ new Map(); +function Bz(e) { e.forEach(function(t) { var r, n = t.target; - (r = bl.get(n)) === null || r === void 0 || r.forEach(function(i) { + (r = wl.get(n)) === null || r === void 0 || r.forEach(function(i) { return i(n); }); }); } -var kz = new _oe(Nz); +var Vz = new Boe(Bz); process.env.NODE_ENV; process.env.NODE_ENV; -function Moe(e, t) { - bl.has(e) || (bl.set(e, /* @__PURE__ */ new Set()), kz.observe(e)), bl.get(e).add(t); +function Voe(e, t) { + wl.has(e) || (wl.set(e, /* @__PURE__ */ new Set()), Vz.observe(e)), wl.get(e).add(t); } -function Doe(e, t) { - bl.has(e) && (bl.get(e).delete(t), bl.get(e).size || (kz.unobserve(e), bl.delete(e))); +function Hoe(e, t) { + wl.has(e) && (wl.get(e).delete(t), wl.get(e).size || (Vz.unobserve(e), wl.delete(e))); } function Xn(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } -function pF(e, t) { +function vF(e, t) { for (var r = 0; r < t.length; r++) { var n = t[r]; - n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Dz(n.key), n); + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Oz(n.key), n); } } function Zn(e, t, r) { - return t && pF(e.prototype, t), r && pF(e, r), Object.defineProperty(e, "prototype", { + return t && vF(e.prototype, t), r && vF(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e; } -function Sv(e, t) { - return Sv = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) { +function wv(e, t) { + return wv = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) { return r.__proto__ = n, r; - }, Sv(e, t); + }, wv(e, t); } function Qs(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); @@ -2076,20 +2117,20 @@ function Qs(e, t) { } }), Object.defineProperty(e, "prototype", { writable: !1 - }), t && Sv(e, t); + }), t && wv(e, t); } -function bv(e) { - return bv = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { +function xv(e) { + return xv = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { return t.__proto__ || Object.getPrototypeOf(t); - }, bv(e); + }, xv(e); } -function ID() { +function I2() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } - return (ID = function() { + return (I2 = function() { return !!e; })(); } @@ -2097,23 +2138,23 @@ function Ge(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } -function Ioe(e, t) { +function zoe(e, t) { if (t && (pt(t) == "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return Ge(e); } function Js(e) { - var t = ID(); + var t = I2(); return function() { - var r, n = bv(e); + var r, n = xv(e); if (t) { - var i = bv(this).constructor; + var i = xv(this).constructor; r = Reflect.construct(n, arguments, i); } else r = n.apply(this, arguments); - return Ioe(this, r); + return zoe(this, r); }; } -var Aoe = /* @__PURE__ */ function(e) { +var Goe = /* @__PURE__ */ function(e) { Qs(r, e); var t = Js(r); function r() { @@ -2126,7 +2167,7 @@ var Aoe = /* @__PURE__ */ function(e) { } }]), r; }(S.Component); -function Ooe(e, t) { +function Woe(e, t) { var r = e.children, n = e.disabled, i = S.useRef(null), o = S.useRef(null), a = S.useContext(LP), s = typeof r == "function", l = s ? r(i) : r, c = S.useRef({ width: -1, height: -1, @@ -2134,8 +2175,8 @@ function Ooe(e, t) { offsetHeight: -1 }), u = !s && /* @__PURE__ */ S.isValidElement(l) && Ws(l), d = u ? l.ref : null, h = Xc(d, i), f = function() { var m; - return Vg(i.current) || // Support `nativeElement` format - (i.current && pt(i.current) === "object" ? Vg((m = i.current) === null || m === void 0 ? void 0 : m.nativeElement) : null) || Vg(o.current); + return zg(i.current) || // Support `nativeElement` format + (i.current && pt(i.current) === "object" ? zg((m = i.current) === null || m === void 0 ? void 0 : m.nativeElement) : null) || zg(o.current); }; S.useImperativeHandle(t, function() { return f(); @@ -2163,31 +2204,31 @@ function Ooe(e, t) { }, []); return S.useEffect(function() { var v = f(); - return v && !n && Moe(v, g), function() { - return Doe(v, g); + return v && !n && Voe(v, g), function() { + return Hoe(v, g); }; - }, [i.current, n]), /* @__PURE__ */ S.createElement(Aoe, { + }, [i.current, n]), /* @__PURE__ */ S.createElement(Goe, { ref: o }, u ? /* @__PURE__ */ S.cloneElement(l, { ref: h }) : l); } -var $z = /* @__PURE__ */ S.forwardRef(Ooe); -process.env.NODE_ENV !== "production" && ($z.displayName = "SingleObserver"); -var Loe = "rc-observer-key"; -function Foe(e, t) { - var r = e.children, n = typeof r == "function" ? [r] : bi(r); +var Hz = /* @__PURE__ */ S.forwardRef(Woe); +process.env.NODE_ENV !== "production" && (Hz.displayName = "SingleObserver"); +var joe = "rc-observer-key"; +function Uoe(e, t) { + var r = e.children, n = typeof r == "function" ? [r] : wi(r); return process.env.NODE_ENV !== "production" && (n.length > 1 ? Gs(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && Gs(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(i, o) { - var a = (i == null ? void 0 : i.key) || "".concat(Loe, "-").concat(o); - return /* @__PURE__ */ S.createElement($z, Te({}, e, { + var a = (i == null ? void 0 : i.key) || "".concat(joe, "-").concat(o); + return /* @__PURE__ */ S.createElement(Hz, Te({}, e, { key: a, ref: o === 0 ? t : void 0 }), i); }); } -var Li = /* @__PURE__ */ S.forwardRef(Foe); +var Li = /* @__PURE__ */ S.forwardRef(Uoe); process.env.NODE_ENV !== "production" && (Li.displayName = "ResizeObserver"); -Li.Collection = uoe; +Li.Collection = boe; function Sn(e, t) { var r = Object.assign({}, e); return Array.isArray(t) && t.forEach(function(n) { @@ -2199,67 +2240,67 @@ function NP(e, t) { for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r]; return n; } -function Noe(e) { +function Koe(e) { if (Array.isArray(e)) return NP(e); } -function Bz(e) { +function zz(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } -function AD(e, t) { +function A2(e, t) { if (e) { if (typeof e == "string") return NP(e, t); var r = {}.toString.call(e).slice(8, -1); return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? NP(e, t) : void 0; } } -function koe() { +function Yoe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function $e(e) { - return Noe(e) || Bz(e) || AD(e) || koe(); + return Koe(e) || zz(e) || A2(e) || Yoe(); } -var Vz = function(t) { +var Gz = function(t) { return +setTimeout(t, 16); -}, Hz = function(t) { +}, Wz = function(t) { return clearTimeout(t); }; -typeof window < "u" && "requestAnimationFrame" in window && (Vz = function(t) { +typeof window < "u" && "requestAnimationFrame" in window && (Gz = function(t) { return window.requestAnimationFrame(t); -}, Hz = function(t) { +}, Wz = function(t) { return window.cancelAnimationFrame(t); }); -var gF = 0, Ab = /* @__PURE__ */ new Map(); -function zz(e) { - Ab.delete(e); +var mF = 0, Lb = /* @__PURE__ */ new Map(); +function jz(e) { + Lb.delete(e); } -var Nr = function(t) { +var kr = function(t) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; - gF += 1; - var n = gF; + mF += 1; + var n = mF; function i(o) { if (o === 0) - zz(n), t(); + jz(n), t(); else { - var a = Vz(function() { + var a = Gz(function() { i(o - 1); }); - Ab.set(n, a); + Lb.set(n, a); } } return i(r), n; }; -Nr.cancel = function(e) { - var t = Ab.get(e); - return zz(e), Hz(t); +kr.cancel = function(e) { + var t = Lb.get(e); + return jz(e), Wz(t); }; -process.env.NODE_ENV !== "production" && (Nr.ids = function() { - return Ab; +process.env.NODE_ENV !== "production" && (kr.ids = function() { + return Lb; }); -function Gz(e) { +function Uz(e) { if (Array.isArray(e)) return e; } -function $oe(e, t) { +function qoe(e, t) { var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (r != null) { var n, i, o, a, s = [], l = !0, c = !1; @@ -2280,14 +2321,14 @@ function $oe(e, t) { return s; } } -function Wz() { +function Kz() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function ce(e, t) { - return Gz(e) || $oe(e, t) || AD(e, t) || Wz(); + return Uz(e) || qoe(e, t) || A2(e, t) || Kz(); } -function wv(e) { +function Ev(e) { for (var t = 0, r, n = 0, i = e.length; i >= 4; ++n, i -= 4) r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */ @@ -2321,38 +2362,38 @@ function kP(e, t) { } return !1; } -var vF = "data-rc-order", mF = "data-rc-priority", Boe = "rc-util-key", $P = /* @__PURE__ */ new Map(); -function jz() { +var yF = "data-rc-order", CF = "data-rc-priority", Xoe = "rc-util-key", $P = /* @__PURE__ */ new Map(); +function Yz() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark; - return t ? t.startsWith("data-") ? t : "data-".concat(t) : Boe; + return t ? t.startsWith("data-") ? t : "data-".concat(t) : Xoe; } -function Ob(e) { +function Fb(e) { if (e.attachTo) return e.attachTo; var t = document.querySelector("head"); return t || document.body; } -function Voe(e) { +function Zoe(e) { return e === "queue" ? "prependQueue" : e ? "prepend" : "append"; } -function OD(e) { +function O2(e) { return Array.from(($P.get(e) || e).children).filter(function(t) { return t.tagName === "STYLE"; }); } -function Uz(e) { +function qz(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; if (!ii()) return null; - var r = t.csp, n = t.prepend, i = t.priority, o = i === void 0 ? 0 : i, a = Voe(n), s = a === "prependQueue", l = document.createElement("style"); - l.setAttribute(vF, a), s && o && l.setAttribute(mF, "".concat(o)), r != null && r.nonce && (l.nonce = r == null ? void 0 : r.nonce), l.innerHTML = e; - var c = Ob(t), u = c.firstChild; + var r = t.csp, n = t.prepend, i = t.priority, o = i === void 0 ? 0 : i, a = Zoe(n), s = a === "prependQueue", l = document.createElement("style"); + l.setAttribute(yF, a), s && o && l.setAttribute(CF, "".concat(o)), r != null && r.nonce && (l.nonce = r == null ? void 0 : r.nonce), l.innerHTML = e; + var c = Fb(t), u = c.firstChild; if (n) { if (s) { - var d = (t.styles || OD(c)).filter(function(h) { - if (!["prepend", "prependQueue"].includes(h.getAttribute(vF))) + var d = (t.styles || O2(c)).filter(function(h) { + if (!["prepend", "prependQueue"].includes(h.getAttribute(yF))) return !1; - var f = Number(h.getAttribute(mF) || 0); + var f = Number(h.getAttribute(CF) || 0); return o >= f; }); if (d.length) @@ -2363,32 +2404,32 @@ function Uz(e) { c.appendChild(l); return l; } -function Kz(e) { - var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Ob(t); - return (t.styles || OD(r)).find(function(n) { - return n.getAttribute(jz(t)) === e; +function Xz(e) { + var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Fb(t); + return (t.styles || O2(r)).find(function(n) { + return n.getAttribute(Yz(t)) === e; }); } -function xv(e) { - var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Kz(e, t); +function Rv(e) { + var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Xz(e, t); if (r) { - var n = Ob(t); + var n = Fb(t); n.removeChild(r); } } -function Hoe(e, t) { +function Qoe(e, t) { var r = $P.get(e); if (!r || !kP(document, r)) { - var n = Uz("", t), i = n.parentNode; + var n = qz("", t), i = n.parentNode; $P.set(e, i), e.removeChild(n); } } -function Tl(e, t) { - var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Ob(r), i = OD(n), o = Z(Z({}, r), {}, { +function _l(e, t) { + var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Fb(r), i = O2(n), o = Z(Z({}, r), {}, { styles: i }); - Hoe(n, o); - var a = Kz(t, o); + Qoe(n, o); + var a = Xz(t, o); if (a) { var s, l; if ((s = o.csp) !== null && s !== void 0 && s.nonce && a.nonce !== ((l = o.csp) === null || l === void 0 ? void 0 : l.nonce)) { @@ -2397,10 +2438,10 @@ function Tl(e, t) { } return a.innerHTML !== e && (a.innerHTML = e), a; } - var u = Uz(e, o); - return u.setAttribute(jz(o), t), u; + var u = qz(e, o); + return u.setAttribute(Yz(o), t), u; } -function zoe(e, t) { +function Joe(e, t) { if (e == null) return {}; var r = {}; for (var n in e) if ({}.hasOwnProperty.call(e, n)) { @@ -2411,7 +2452,7 @@ function zoe(e, t) { } function Nt(e, t) { if (e == null) return {}; - var r, n, i = zoe(e, t); + var r, n, i = Joe(e, t); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (n = 0; n < o.length; n++) r = o[n], t.indexOf(r) >= 0 || {}.propertyIsEnumerable.call(e, r) && (i[r] = e[r]); @@ -2448,11 +2489,11 @@ function rs(e, t) { } return i(e, t); } -var Goe = "%"; +var eae = "%"; function BP(e) { - return e.join(Goe); + return e.join(eae); } -var Woe = /* @__PURE__ */ function() { +var tae = /* @__PURE__ */ function() { function e(t) { Xn(this, e), U(this, "instanceId", void 0), U(this, "cache", /* @__PURE__ */ new Map()), this.instanceId = t; } @@ -2480,8 +2521,8 @@ var Woe = /* @__PURE__ */ function() { o === null ? this.cache.delete(r) : this.cache.set(r, o); } }]), e; -}(), Pf = "data-token-hash", Xa = "data-css-hash", joe = "data-cache-path", mc = "__cssinjs_instance__"; -function Uoe() { +}(), Pf = "data-token-hash", Xa = "data-css-hash", rae = "data-cache-path", mc = "__cssinjs_instance__"; +function nae() { var e = Math.random().toString(12).slice(2); if (typeof document < "u" && document.head && document.body) { var t = document.body.querySelectorAll("style[".concat(Xa, "]")) || [], r = document.head.firstChild; @@ -2500,19 +2541,19 @@ function Uoe() { n[o] = !0; }); } - return new Woe(e); + return new tae(e); } -var Lb = /* @__PURE__ */ S.createContext({ +var Nb = /* @__PURE__ */ S.createContext({ hashPriority: "low", - cache: Uoe(), + cache: nae(), defaultCache: !0 -}), Yz = /* @__PURE__ */ Zn(function e() { +}), Zz = /* @__PURE__ */ Zn(function e() { Xn(this, e); -}), qz = "CALC_UNIT", Koe = new RegExp(qz, "g"); +}), Qz = "CALC_UNIT", iae = new RegExp(Qz, "g"); function x1(e) { - return typeof e == "number" ? "".concat(e).concat(qz) : e; + return typeof e == "number" ? "".concat(e).concat(Qz) : e; } -var Yoe = /* @__PURE__ */ function(e) { +var oae = /* @__PURE__ */ function(e) { Qs(r, e); var t = Js(r); function r(n, i) { @@ -2552,10 +2593,10 @@ var Yoe = /* @__PURE__ */ function(e) { var o = this, a = i || {}, s = a.unit, l = !0; return typeof s == "boolean" ? l = s : Array.from(this.unitlessCssVar).some(function(c) { return o.result.includes(c); - }) && (l = !1), this.result = this.result.replace(Koe, l ? "px" : ""), typeof this.lowPriority < "u" ? "calc(".concat(this.result, ")") : this.result; + }) && (l = !1), this.result = this.result.replace(iae, l ? "px" : ""), typeof this.lowPriority < "u" ? "calc(".concat(this.result, ")") : this.result; } }]), r; -}(Yz), qoe = /* @__PURE__ */ function(e) { +}(Zz), aae = /* @__PURE__ */ function(e) { Qs(r, e); var t = Js(r); function r(n) { @@ -2588,13 +2629,13 @@ var Yoe = /* @__PURE__ */ function(e) { return this.result; } }]), r; -}(Yz), Xoe = function(t, r) { - var n = t === "css" ? Yoe : qoe; +}(Zz), sae = function(t, r) { + var n = t === "css" ? oae : aae; return function(i) { return new n(i, r); }; }; -function Zoe(e, t) { +function lae(e, t) { if (e.length !== t.length) return !1; for (var r = 0; r < e.length; r++) @@ -2602,7 +2643,7 @@ function Zoe(e, t) { return !1; return !0; } -var LD = /* @__PURE__ */ function() { +var L2 = /* @__PURE__ */ function() { function e() { Xn(this, e), U(this, "cache", void 0), U(this, "keys", void 0), U(this, "cacheCallTimes", void 0), this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0; } @@ -2683,16 +2724,16 @@ var LD = /* @__PURE__ */ function() { value: function(r) { if (this.has(r)) return this.keys = this.keys.filter(function(n) { - return !Zoe(n, r); + return !lae(n, r); }), this.deleteByPath(this.cache, r); } }]), e; }(); -U(LD, "MAX_CACHE_SIZE", 20); -U(LD, "MAX_CACHE_OFFSET", 5); -var yF = 0, Xz = /* @__PURE__ */ function() { +U(L2, "MAX_CACHE_SIZE", 20); +U(L2, "MAX_CACHE_OFFSET", 5); +var SF = 0, Jz = /* @__PURE__ */ function() { function e(t) { - Xn(this, e), U(this, "derivatives", void 0), U(this, "id", void 0), this.derivatives = Array.isArray(t) ? t : [t], this.id = yF, t.length === 0 && Gs(t.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), yF += 1; + Xn(this, e), U(this, "derivatives", void 0), U(this, "id", void 0), this.derivatives = Array.isArray(t) ? t : [t], this.id = SF, t.length === 0 && Gs(t.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), SF += 1; } return Zn(e, [{ key: "getDerivativeToken", @@ -2702,35 +2743,35 @@ var yF = 0, Xz = /* @__PURE__ */ function() { }, void 0); } }]), e; -}(), E1 = new LD(); +}(), E1 = new L2(); function VP(e) { var t = Array.isArray(e) ? e : [e]; - return E1.has(t) || E1.set(t, new Xz(t)), E1.get(t); + return E1.has(t) || E1.set(t, new Jz(t)), E1.get(t); } -var Qoe = /* @__PURE__ */ new WeakMap(), R1 = {}; -function Joe(e, t) { - for (var r = Qoe, n = 0; n < t.length; n += 1) { +var cae = /* @__PURE__ */ new WeakMap(), R1 = {}; +function uae(e, t) { + for (var r = cae, n = 0; n < t.length; n += 1) { var i = t[n]; r.has(i) || r.set(i, /* @__PURE__ */ new WeakMap()), r = r.get(i); } return r.has(R1) || r.set(R1, e()), r.get(R1); } -var CF = /* @__PURE__ */ new WeakMap(); -function Hg(e) { - var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = CF.get(e) || ""; +var bF = /* @__PURE__ */ new WeakMap(); +function Gg(e) { + var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = bF.get(e) || ""; return r || (Object.keys(e).forEach(function(n) { var i = e[n]; - r += n, i instanceof Xz ? r += i.id : i && pt(i) === "object" ? r += Hg(i, t) : r += i; - }), t && (r = wv(r)), CF.set(e, r)), r; + r += n, i instanceof Jz ? r += i.id : i && pt(i) === "object" ? r += Gg(i, t) : r += i; + }), t && (r = Ev(r)), bF.set(e, r)), r; } -function SF(e, t) { - return wv("".concat(t, "_").concat(Hg(e, !0))); +function wF(e, t) { + return Ev("".concat(t, "_").concat(Gg(e, !0))); } var HP = ii(); -function ee(e) { +function te(e) { return typeof e == "number" ? "".concat(e, "px") : e; } -function KC(e, t, r) { +function XC(e, t, r) { var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1; if (i) return e; @@ -2742,32 +2783,32 @@ function KC(e, t, r) { }).join(" "); return ""); } -var iC = function(t) { +var sC = function(t) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; return "--".concat(r ? "".concat(r, "-") : "").concat(t).replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase(); -}, eae = function(t, r, n) { +}, dae = function(t, r, n) { return Object.keys(t).length ? ".".concat(r).concat(n != null && n.scope ? ".".concat(n.scope) : "", "{").concat(Object.entries(t).map(function(i) { var o = ce(i, 2), a = o[0], s = o[1]; return "".concat(a, ":").concat(s, ";"); }).join(""), "}") : ""; -}, Zz = function(t, r, n) { +}, eG = function(t, r, n) { var i = {}, o = {}; return Object.entries(t).forEach(function(a) { var s, l, c = ce(a, 2), u = c[0], d = c[1]; if (n != null && (s = n.preserve) !== null && s !== void 0 && s[u]) o[u] = d; else if ((typeof d == "string" || typeof d == "number") && !(n != null && (l = n.ignore) !== null && l !== void 0 && l[u])) { - var h, f = iC(u, n == null ? void 0 : n.prefix); + var h, f = sC(u, n == null ? void 0 : n.prefix); i[f] = typeof d == "number" && !(n != null && (h = n.unitless) !== null && h !== void 0 && h[u]) ? "".concat(d, "px") : String(d), o[u] = "var(".concat(f, ")"); } - }), [o, eae(i, r, { + }), [o, dae(i, r, { scope: n == null ? void 0 : n.scope })]; -}, bF = process.env.NODE_ENV !== "test" && ii() ? S.useLayoutEffect : S.useEffect, Pr = function(t, r) { +}, xF = process.env.NODE_ENV !== "test" && ii() ? S.useLayoutEffect : S.useEffect, Pr = function(t, r) { var n = S.useRef(!0); - bF(function() { + xF(function() { return t(n.current); - }, r), bF(function() { + }, r), xF(function() { return n.current = !1, function() { n.current = !0; }; @@ -2777,15 +2818,15 @@ var iC = function(t) { if (!n) return t(); }, r); -}, tae = Z({}, S), wF = tae.useInsertionEffect, rae = function(t, r, n) { +}, hae = Z({}, S), EF = hae.useInsertionEffect, fae = function(t, r, n) { S.useMemo(t, n), Pr(function() { return r(!0); }, n); -}, nae = wF ? function(e, t, r) { - return wF(function() { +}, pae = EF ? function(e, t, r) { + return EF(function() { return e(), t(); }, r); -} : rae, iae = Z({}, S), oae = iae.useInsertionEffect, aae = function(t) { +} : fae, gae = Z({}, S), vae = gae.useInsertionEffect, mae = function(t) { var r = [], n = !1; function i(o) { if (n) { @@ -2801,32 +2842,32 @@ var iC = function(t) { }); }; }, t), i; -}, sae = function() { +}, yae = function() { return function(t) { t(); }; -}, lae = typeof oae < "u" ? aae : sae; -function cae() { +}, Cae = typeof vae < "u" ? mae : yae; +function Sae() { return !1; } var GP = !1; -function uae() { +function bae() { return GP; } -const dae = process.env.NODE_ENV === "production" ? cae : uae; +const wae = process.env.NODE_ENV === "production" ? Sae : bae; if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") { var P1 = window; if (typeof P1.webpackHotUpdate == "function") { - var hae = P1.webpackHotUpdate; + var xae = P1.webpackHotUpdate; P1.webpackHotUpdate = function() { return GP = !0, setTimeout(function() { GP = !1; - }, 0), hae.apply(void 0, arguments); + }, 0), xae.apply(void 0, arguments); }; } } -function FD(e, t, r, n, i) { - var o = S.useContext(Lb), a = o.cache, s = [e].concat($e(t)), l = BP(s), c = lae([l]), u = dae(), d = function(g) { +function F2(e, t, r, n, i) { + var o = S.useContext(Nb), a = o.cache, s = [e].concat($e(t)), l = BP(s), c = Cae([l]), u = wae(), d = function(g) { a.opUpdate(l, function(v) { var m = v || [void 0, void 0], y = ce(m, 2), C = y[0], b = C === void 0 ? 0 : C, w = y[1], x = w; process.env.NODE_ENV !== "production" && w && u && (n == null || n(x, u), x = null); @@ -2845,7 +2886,7 @@ function FD(e, t, r, n, i) { var h = a.opGet(l); process.env.NODE_ENV !== "production" && !h && (d(), h = a.opGet(l)); var f = h[1]; - return nae(function() { + return pae(function() { i == null || i(f); }, function(p) { return d(function(g) { @@ -2861,11 +2902,11 @@ function FD(e, t, r, n, i) { }; }, [l]), f; } -var fae = {}, pae = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", Hu = /* @__PURE__ */ new Map(); -function gae(e) { +var Eae = {}, Rae = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", Hu = /* @__PURE__ */ new Map(); +function Pae(e) { Hu.set(e, (Hu.get(e) || 0) + 1); } -function vae(e, t) { +function Tae(e, t) { if (typeof document < "u") { var r = document.querySelectorAll("style[".concat(Pf, '="').concat(e, '"]')); r.forEach(function(n) { @@ -2876,28 +2917,28 @@ function vae(e, t) { }); } } -var mae = 0; -function yae(e, t) { +var _ae = 0; +function Mae(e, t) { Hu.set(e, (Hu.get(e) || 0) - 1); var r = Array.from(Hu.keys()), n = r.filter(function(i) { var o = Hu.get(i) || 0; return o <= 0; }); - r.length - n.length > mae && n.forEach(function(i) { - vae(i, t), Hu.delete(i); + r.length - n.length > _ae && n.forEach(function(i) { + Tae(i, t), Hu.delete(i); }); } -var Cae = function(t, r, n, i) { +var Dae = function(t, r, n, i) { var o = n.getDerivativeToken(t), a = Z(Z({}, o), r); return i && (a = i(a)), a; -}, Qz = "token"; -function Sae(e, t) { - var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Jt(Lb), i = n.cache.instanceId, o = n.container, a = r.salt, s = a === void 0 ? "" : a, l = r.override, c = l === void 0 ? fae : l, u = r.formatToken, d = r.getComputedToken, h = r.cssVar, f = Joe(function() { +}, tG = "token"; +function Iae(e, t) { + var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Jt(Nb), i = n.cache.instanceId, o = n.container, a = r.salt, s = a === void 0 ? "" : a, l = r.override, c = l === void 0 ? Eae : l, u = r.formatToken, d = r.getComputedToken, h = r.cssVar, f = uae(function() { return Object.assign.apply(Object, [{}].concat($e(t))); - }, t), p = Hg(f), g = Hg(c), v = h ? Hg(h) : "", m = FD(Qz, [s, e.id, p, g, v], function() { - var y, C = d ? d(f, c, e) : Cae(f, c, e, u), b = Z({}, C), w = ""; + }, t), p = Gg(f), g = Gg(c), v = h ? Gg(h) : "", m = F2(tG, [s, e.id, p, g, v], function() { + var y, C = d ? d(f, c, e) : Dae(f, c, e, u), b = Z({}, C), w = ""; if (h) { - var x = Zz(C, h.key, { + var x = eG(C, h.key, { prefix: h.prefix, ignore: h.ignore, unitless: h.unitless, @@ -2905,18 +2946,18 @@ function Sae(e, t) { }), E = ce(x, 2); C = E[0], w = E[1]; } - var R = SF(C, s); - C._tokenKey = R, b._tokenKey = SF(b, s); + var R = wF(C, s); + C._tokenKey = R, b._tokenKey = wF(b, s); var P = (y = h == null ? void 0 : h.key) !== null && y !== void 0 ? y : R; - C._themeKey = P, gae(P); - var T = "".concat(pae, "-").concat(wv(R)); + C._themeKey = P, Pae(P); + var T = "".concat(Rae, "-").concat(Ev(R)); return C._hashId = T, [C, T, b, w, (h == null ? void 0 : h.key) || ""]; }, function(y) { - yae(y[0]._themeKey, i); + Mae(y[0]._themeKey, i); }, function(y) { var C = ce(y, 4), b = C[0], w = C[3]; if (h && w) { - var x = Tl(w, wv("css-variables-".concat(b._themeKey)), { + var x = _l(w, Ev("css-variables-".concat(b._themeKey)), { mark: Xa, prepend: "queue", attachTo: o, @@ -2927,16 +2968,16 @@ function Sae(e, t) { }); return m; } -var bae = function(t, r, n) { +var Aae = function(t, r, n) { var i = ce(t, 5), o = i[2], a = i[3], s = i[4], l = n || {}, c = l.plain; if (!a) return null; var u = o._tokenKey, d = -999, h = { "data-rc-order": "prependQueue", "data-rc-priority": "".concat(d) - }, f = KC(a, s, u, h, c); + }, f = XC(a, s, u, h, c); return [d, u, f]; -}, wae = { +}, Oae = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, @@ -2983,52 +3024,52 @@ var bae = function(t, r, n) { strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 -}, Jz = "comm", eG = "rule", tG = "decl", xae = "@import", Eae = "@keyframes", Rae = "@layer", rG = Math.abs, ND = String.fromCharCode; -function nG(e) { +}, rG = "comm", nG = "rule", iG = "decl", Lae = "@import", Fae = "@keyframes", Nae = "@layer", oG = Math.abs, N2 = String.fromCharCode; +function aG(e) { return e.trim(); } -function oC(e, t, r) { +function lC(e, t, r) { return e.replace(t, r); } -function Pae(e, t, r) { +function kae(e, t, r) { return e.indexOf(t, r); } -function Ev(e, t) { +function Pv(e, t) { return e.charCodeAt(t) | 0; } -function Rv(e, t, r) { +function Tv(e, t, r) { return e.slice(t, r); } -function Cl(e) { +function Sl(e) { return e.length; } -function Tae(e) { +function $ae(e) { return e.length; } -function Sy(e, t) { +function xy(e, t) { return t.push(e), e; } -var Fb = 1, Tf = 1, iG = 0, wa = 0, Yn = 0, Xf = ""; -function kD(e, t, r, n, i, o, a, s) { - return { value: e, root: t, parent: r, type: n, props: i, children: o, line: Fb, column: Tf, length: a, return: "", siblings: s }; +var kb = 1, Tf = 1, sG = 0, wa = 0, Yn = 0, Qf = ""; +function k2(e, t, r, n, i, o, a, s) { + return { value: e, root: t, parent: r, type: n, props: i, children: o, line: kb, column: Tf, length: a, return: "", siblings: s }; } -function _ae() { +function Bae() { return Yn; } -function Mae() { - return Yn = wa > 0 ? Ev(Xf, --wa) : 0, Tf--, Yn === 10 && (Tf = 1, Fb--), Yn; +function Vae() { + return Yn = wa > 0 ? Pv(Qf, --wa) : 0, Tf--, Yn === 10 && (Tf = 1, kb--), Yn; } function Za() { - return Yn = wa < iG ? Ev(Xf, wa++) : 0, Tf++, Yn === 10 && (Tf = 1, Fb++), Yn; + return Yn = wa < sG ? Pv(Qf, wa++) : 0, Tf++, Yn === 10 && (Tf = 1, kb++), Yn; } function ld() { - return Ev(Xf, wa); + return Pv(Qf, wa); } -function aC() { +function cC() { return wa; } -function Nb(e, t) { - return Rv(Xf, e, t); +function $b(e, t) { + return Tv(Qf, e, t); } function WP(e) { switch (e) { @@ -3062,24 +3103,24 @@ function WP(e) { } return 0; } -function Dae(e) { - return Fb = Tf = 1, iG = Cl(Xf = e), wa = 0, []; +function Hae(e) { + return kb = Tf = 1, sG = Sl(Qf = e), wa = 0, []; } -function Iae(e) { - return Xf = "", e; +function zae(e) { + return Qf = "", e; } function T1(e) { - return nG(Nb(wa - 1, jP(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); + return aG($b(wa - 1, jP(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } -function Aae(e) { +function Gae(e) { for (; (Yn = ld()) && Yn < 33; ) Za(); return WP(e) > 2 || WP(Yn) > 3 ? "" : " "; } -function Oae(e, t) { +function Wae(e, t) { for (; --t && Za() && !(Yn < 48 || Yn > 102 || Yn > 57 && Yn < 65 || Yn > 70 && Yn < 97); ) ; - return Nb(e, aC() + (t < 6 && ld() == 32 && Za() == 32)); + return $b(e, cC() + (t < 6 && ld() == 32 && Za() == 32)); } function jP(e) { for (; Za(); ) @@ -3099,26 +3140,26 @@ function jP(e) { } return wa; } -function Lae(e, t) { +function jae(e, t) { for (; Za() && e + Yn !== 57; ) if (e + Yn === 84 && ld() === 47) break; - return "/*" + Nb(t, wa - 1) + "*" + ND(e === 47 ? e : Za()); + return "/*" + $b(t, wa - 1) + "*" + N2(e === 47 ? e : Za()); } -function Fae(e) { +function Uae(e) { for (; !WP(ld()); ) Za(); - return Nb(e, wa); + return $b(e, wa); } -function Nae(e) { - return Iae(sC("", null, null, null, [""], e = Dae(e), 0, [0], e)); +function Kae(e) { + return zae(uC("", null, null, null, [""], e = Hae(e), 0, [0], e)); } -function sC(e, t, r, n, i, o, a, s, l) { +function uC(e, t, r, n, i, o, a, s, l) { for (var c = 0, u = 0, d = a, h = 0, f = 0, p = 0, g = 1, v = 1, m = 1, y = 0, C = "", b = i, w = o, x = n, E = C; v; ) switch (p = y, y = Za()) { case 40: - if (p != 108 && Ev(E, d - 1) == 58) { - Pae(E += oC(T1(y), "&", "&\f"), "&\f", rG(c ? s[c - 1] : 0)) != -1 && (m = -1); + if (p != 108 && Pv(E, d - 1) == 58) { + kae(E += lC(T1(y), "&", "&\f"), "&\f", oG(c ? s[c - 1] : 0)) != -1 && (m = -1); break; } case 34: @@ -3130,23 +3171,23 @@ function sC(e, t, r, n, i, o, a, s, l) { case 10: case 13: case 32: - E += Aae(p); + E += Gae(p); break; case 92: - E += Oae(aC() - 1, 7); + E += Wae(cC() - 1, 7); continue; case 47: switch (ld()) { case 42: case 47: - Sy(kae(Lae(Za(), aC()), t, r, l), l); + xy(Yae(jae(Za(), cC()), t, r, l), l); break; default: E += "/"; } break; case 123 * g: - s[c++] = Cl(E) * m; + s[c++] = Sl(E) * m; case 125 * g: case 59: case 0: @@ -3155,138 +3196,138 @@ function sC(e, t, r, n, i, o, a, s, l) { case 125: v = 0; case 59 + u: - m == -1 && (E = oC(E, /\f/g, "")), f > 0 && Cl(E) - d && Sy(f > 32 ? EF(E + ";", n, r, d - 1, l) : EF(oC(E, " ", "") + ";", n, r, d - 2, l), l); + m == -1 && (E = lC(E, /\f/g, "")), f > 0 && Sl(E) - d && xy(f > 32 ? PF(E + ";", n, r, d - 1, l) : PF(lC(E, " ", "") + ";", n, r, d - 2, l), l); break; case 59: E += ";"; default: - if (Sy(x = xF(E, t, r, c, u, i, s, C, b = [], w = [], d, o), o), y === 123) + if (xy(x = RF(E, t, r, c, u, i, s, C, b = [], w = [], d, o), o), y === 123) if (u === 0) - sC(E, t, x, x, b, o, d, s, w); + uC(E, t, x, x, b, o, d, s, w); else - switch (h === 99 && Ev(E, 3) === 110 ? 100 : h) { + switch (h === 99 && Pv(E, 3) === 110 ? 100 : h) { case 100: case 108: case 109: case 115: - sC(e, x, x, n && Sy(xF(e, x, x, 0, 0, i, s, C, i, b = [], d, w), w), i, w, d, s, n ? b : w); + uC(e, x, x, n && xy(RF(e, x, x, 0, 0, i, s, C, i, b = [], d, w), w), i, w, d, s, n ? b : w); break; default: - sC(E, x, x, x, [""], w, 0, s, w); + uC(E, x, x, x, [""], w, 0, s, w); } } c = u = f = 0, g = m = 1, C = E = "", d = a; break; case 58: - d = 1 + Cl(E), f = p; + d = 1 + Sl(E), f = p; default: if (g < 1) { if (y == 123) --g; - else if (y == 125 && g++ == 0 && Mae() == 125) + else if (y == 125 && g++ == 0 && Vae() == 125) continue; } - switch (E += ND(y), y * g) { + switch (E += N2(y), y * g) { case 38: m = u > 0 ? 1 : (E += "\f", -1); break; case 44: - s[c++] = (Cl(E) - 1) * m, m = 1; + s[c++] = (Sl(E) - 1) * m, m = 1; break; case 64: - ld() === 45 && (E += T1(Za())), h = ld(), u = d = Cl(C = E += Fae(aC())), y++; + ld() === 45 && (E += T1(Za())), h = ld(), u = d = Sl(C = E += Uae(cC())), y++; break; case 45: - p === 45 && Cl(E) == 2 && (g = 0); + p === 45 && Sl(E) == 2 && (g = 0); } } return o; } -function xF(e, t, r, n, i, o, a, s, l, c, u, d) { - for (var h = i - 1, f = i === 0 ? o : [""], p = Tae(f), g = 0, v = 0, m = 0; g < n; ++g) - for (var y = 0, C = Rv(e, h + 1, h = rG(v = a[g])), b = e; y < p; ++y) - (b = nG(v > 0 ? f[y] + " " + C : oC(C, /&\f/g, f[y]))) && (l[m++] = b); - return kD(e, t, r, i === 0 ? eG : s, l, c, u, d); +function RF(e, t, r, n, i, o, a, s, l, c, u, d) { + for (var h = i - 1, f = i === 0 ? o : [""], p = $ae(f), g = 0, v = 0, m = 0; g < n; ++g) + for (var y = 0, C = Tv(e, h + 1, h = oG(v = a[g])), b = e; y < p; ++y) + (b = aG(v > 0 ? f[y] + " " + C : lC(C, /&\f/g, f[y]))) && (l[m++] = b); + return k2(e, t, r, i === 0 ? nG : s, l, c, u, d); } -function kae(e, t, r, n) { - return kD(e, t, r, Jz, ND(_ae()), Rv(e, 2, -2), 0, n); +function Yae(e, t, r, n) { + return k2(e, t, r, rG, N2(Bae()), Tv(e, 2, -2), 0, n); } -function EF(e, t, r, n, i) { - return kD(e, t, r, tG, Rv(e, 0, n), Rv(e, n + 1, -1), n, i); +function PF(e, t, r, n, i) { + return k2(e, t, r, iG, Tv(e, 0, n), Tv(e, n + 1, -1), n, i); } function UP(e, t) { for (var r = "", n = 0; n < e.length; n++) r += t(e[n], n, e, t) || ""; return r; } -function $ae(e, t, r, n) { +function qae(e, t, r, n) { switch (e.type) { - case Rae: + case Nae: if (e.children.length) break; - case xae: - case tG: + case Lae: + case iG: return e.return = e.return || e.value; - case Jz: + case rG: return ""; - case Eae: + case Fae: return e.return = e.value + "{" + UP(e.children, n) + "}"; - case eG: - if (!Cl(e.value = e.props.join(","))) return ""; + case nG: + if (!Sl(e.value = e.props.join(","))) return ""; } - return Cl(r = UP(e.children, n)) ? e.return = e.value + "{" + r + "}" : ""; + return Sl(r = UP(e.children, n)) ? e.return = e.value + "{" + r + "}" : ""; } -function oG(e, t) { +function lG(e, t) { var r = t.path, n = t.parentSelectors; Tt(!1, "[Ant Design CSS-in-JS] ".concat(r ? "Error in ".concat(r, ": ") : "").concat(e).concat(n.length ? " Selector: ".concat(n.join(" | ")) : "")); } -var Bae = function(t, r, n) { +var Xae = function(t, r, n) { if (t === "content") { var i = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, o = ["normal", "none", "initial", "inherit", "unset"]; - (typeof r != "string" || o.indexOf(r) === -1 && !i.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && oG("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r, "\"'`."), n); + (typeof r != "string" || o.indexOf(r) === -1 && !i.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && lG("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r, "\"'`."), n); } -}, Vae = function(t, r, n) { - t === "animation" && n.hashId && r !== "none" && oG("You seem to be using hashed animation '".concat(r, "', in which case 'animationName' with Keyframe as value is recommended."), n); -}, RF = "data-ant-cssinjs-cache-path", aG = "_FILE_STYLE__", cd, sG = !0; -function Hae() { +}, Zae = function(t, r, n) { + t === "animation" && n.hashId && r !== "none" && lG("You seem to be using hashed animation '".concat(r, "', in which case 'animationName' with Keyframe as value is recommended."), n); +}, TF = "data-ant-cssinjs-cache-path", cG = "_FILE_STYLE__", cd, uG = !0; +function Qae() { if (!cd && (cd = {}, ii())) { var e = document.createElement("div"); - e.className = RF, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e); + e.className = TF, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e); var t = getComputedStyle(e).content || ""; t = t.replace(/^"/, "").replace(/"$/, ""), t.split(";").forEach(function(i) { var o = i.split(":"), a = ce(o, 2), s = a[0], l = a[1]; cd[s] = l; }); - var r = document.querySelector("style[".concat(RF, "]")); + var r = document.querySelector("style[".concat(TF, "]")); if (r) { var n; - sG = !1, (n = r.parentNode) === null || n === void 0 || n.removeChild(r); + uG = !1, (n = r.parentNode) === null || n === void 0 || n.removeChild(r); } document.body.removeChild(e); } } -function zae(e) { - return Hae(), !!cd[e]; +function Jae(e) { + return Qae(), !!cd[e]; } -function Gae(e) { +function ese(e) { var t = cd[e], r = null; if (t && ii()) - if (sG) - r = aG; + if (uG) + r = cG; else { var n = document.querySelector("style[".concat(Xa, '="').concat(cd[e], '"]')); n ? r = n.innerHTML : delete cd[e]; } return [r, t]; } -var lG = "_skip_check_", cG = "_multi_value_"; -function lC(e) { - var t = UP(Nae(e), $ae); +var dG = "_skip_check_", hG = "_multi_value_"; +function dC(e) { + var t = UP(Kae(e), qae); return t.replace(/\{%%%\:[^;];}/g, ";"); } -function Wae(e) { - return pt(e) === "object" && e && (lG in e || cG in e); +function tse(e) { + return pt(e) === "object" && e && (dG in e || hG in e); } -function jae(e, t, r) { +function rse(e, t, r) { if (!t) return e; var n = ".".concat(t), i = r === "low" ? ":where(".concat(n, ")") : n, o = e.split(",").map(function(a) { @@ -3295,7 +3336,7 @@ function jae(e, t, r) { }); return o.join(","); } -var Uae = function e(t) { +var nse = function e(t) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { root: !0, parentSelectors: [] @@ -3331,9 +3372,9 @@ var Uae = function e(t) { }, w); Object.keys(x).forEach(function(E) { var R = x[E]; - if (pt(R) === "object" && R && (E !== "animationName" || !R._keyframe) && !Wae(R)) { + if (pt(R) === "object" && R && (E !== "animationName" || !R._keyframe) && !tse(R)) { var P = !1, T = E.trim(), _ = !1; - (i || o) && s ? T.startsWith("@") ? P = !0 : T = jae(E, s, u) : i && !s && (T === "&" || T === "") && (T = "", _ = !0); + (i || o) && s ? T.startsWith("@") ? P = !0 : T = rse(E, s, u) : i && !s && (T === "&" || T === "") && (T = "", _ = !0); var D = e(R, r, { root: _, injectHash: P, @@ -3342,7 +3383,7 @@ var Uae = function e(t) { v = Z(Z({}, v), O), g += "".concat(T).concat(M); } else { let F = function($, I) { - process.env.NODE_ENV !== "production" && (pt(R) !== "object" || !(R != null && R[lG])) && [Bae, Vae].concat($e(p)).forEach(function(B) { + process.env.NODE_ENV !== "production" && (pt(R) !== "object" || !(R != null && R[dG])) && [Xae, Zae].concat($e(p)).forEach(function(B) { return B($, I, { path: c, hashId: s, @@ -3352,10 +3393,10 @@ var Uae = function e(t) { var V = $.replace(/[A-Z]/g, function(B) { return "-".concat(B.toLowerCase()); }), H = I; - !wae[$] && typeof H == "number" && H !== 0 && (H = "".concat(H, "px")), $ === "animationName" && I !== null && I !== void 0 && I._keyframe && (m(I), H = I.getName(s)), g += "".concat(V, ":").concat(H, ";"); + !Oae[$] && typeof H == "number" && H !== 0 && (H = "".concat(H, "px")), $ === "animationName" && I !== null && I !== void 0 && I._keyframe && (m(I), H = I.getName(s)), g += "".concat(V, ":").concat(H, ";"); }; var L, N = (L = R == null ? void 0 : R.value) !== null && L !== void 0 ? L : R; - pt(R) === "object" && R !== null && R !== void 0 && R[cG] && Array.isArray(N) ? N.forEach(function($) { + pt(R) === "object" && R !== null && R !== void 0 && R[hG] && Array.isArray(N) ? N.forEach(function($) { F(E, $); }) : F(E, N); } @@ -3366,43 +3407,43 @@ var Uae = function e(t) { }).join(` `))) : g = "{".concat(g, "}"), [g, v]; }; -function uG(e, t) { - return wv("".concat(e.join("%")).concat(t)); +function fG(e, t) { + return Ev("".concat(e.join("%")).concat(t)); } -function Kae() { +function ise() { return null; } -var dG = "style"; +var pG = "style"; function KP(e, t) { - var r = e.token, n = e.path, i = e.hashId, o = e.layer, a = e.nonce, s = e.clientOnly, l = e.order, c = l === void 0 ? 0 : l, u = S.useContext(Lb), d = u.autoClear, h = u.mock, f = u.defaultCache, p = u.hashPriority, g = u.container, v = u.ssrInline, m = u.transformers, y = u.linters, C = u.cache, b = u.layer, w = r._tokenKey, x = [w]; + var r = e.token, n = e.path, i = e.hashId, o = e.layer, a = e.nonce, s = e.clientOnly, l = e.order, c = l === void 0 ? 0 : l, u = S.useContext(Nb), d = u.autoClear, h = u.mock, f = u.defaultCache, p = u.hashPriority, g = u.container, v = u.ssrInline, m = u.transformers, y = u.linters, C = u.cache, b = u.layer, w = r._tokenKey, x = [w]; b && x.push("layer"), x.push.apply(x, $e(n)); var E = HP; process.env.NODE_ENV !== "production" && h !== void 0 && (E = h === "client"); - var R = FD( - dG, + var R = F2( + pG, x, // Create cache if needed function() { var A = x.join("|"); - if (zae(A)) { - var M = Gae(A), O = ce(M, 2), L = O[0], N = O[1]; + if (Jae(A)) { + var M = ese(A), O = ce(M, 2), L = O[0], N = O[1]; if (L) return [L, w, N, {}, s, c]; } - var F = t(), $ = Uae(F, { + var F = t(), $ = nse(F, { hashId: i, hashPriority: p, layer: b ? o : void 0, path: n.join("-"), transformers: m, linters: y - }), I = ce($, 2), V = I[0], H = I[1], B = lC(V), W = uG(x, B); + }), I = ce($, 2), V = I[0], H = I[1], B = dC(V), W = fG(x, B); return [B, w, W, H, s, c]; }, // Remove cache if no need function(A, M) { var O = ce(A, 3), L = O[2]; - (M || d) && HP && xv(L, { + (M || d) && HP && Rv(L, { mark: Xa }); }, @@ -3411,7 +3452,7 @@ function KP(e, t) { var M = ce(A, 4), O = M[0]; M[1]; var L = M[2], N = M[3]; - if (E && O !== aG) { + if (E && O !== cG) { var F = { mark: Xa, prepend: b ? !1 : "queue", @@ -3425,27 +3466,27 @@ function KP(e, t) { Object.keys(N).forEach(function(B) { B.startsWith("@layer") ? I.push(B) : V.push(B); }), I.forEach(function(B) { - Tl(lC(N[B]), "_layer-".concat(B), Z(Z({}, F), {}, { + _l(dC(N[B]), "_layer-".concat(B), Z(Z({}, F), {}, { prepend: !0 })); }); - var H = Tl(O, L, F); - H[mc] = C.instanceId, H.setAttribute(Pf, w), process.env.NODE_ENV !== "production" && H.setAttribute(joe, x.join("|")), V.forEach(function(B) { - Tl(lC(N[B]), "_effect-".concat(B), F); + var H = _l(O, L, F); + H[mc] = C.instanceId, H.setAttribute(Pf, w), process.env.NODE_ENV !== "production" && H.setAttribute(rae, x.join("|")), V.forEach(function(B) { + _l(dC(N[B]), "_effect-".concat(B), F); }); } } ), P = ce(R, 3), T = P[0], _ = P[1], D = P[2]; return function(A) { var M; - return !v || E || !f ? M = /* @__PURE__ */ S.createElement(Kae, null) : M = /* @__PURE__ */ S.createElement("style", Te({}, U(U({}, Pf, _), Xa, D), { + return !v || E || !f ? M = /* @__PURE__ */ S.createElement(ise, null) : M = /* @__PURE__ */ S.createElement("style", Te({}, U(U({}, Pf, _), Xa, D), { dangerouslySetInnerHTML: { __html: T } })), /* @__PURE__ */ S.createElement(S.Fragment, null, M, A); }; } -var Yae = function(t, r, n) { +var ose = function(t, r, n) { var i = ce(t, 6), o = i[0], a = i[1], s = i[2], l = i[3], c = i[4], u = i[5], d = n || {}, h = d.plain; if (c) return null; @@ -3453,31 +3494,31 @@ var Yae = function(t, r, n) { "data-rc-order": "prependQueue", "data-rc-priority": "".concat(u) }; - return f = KC(o, a, s, p, h), l && Object.keys(l).forEach(function(g) { + return f = XC(o, a, s, p, h), l && Object.keys(l).forEach(function(g) { if (!r[g]) { r[g] = !0; - var v = lC(l[g]), m = KC(v, a, "_effect-".concat(g), p, h); + var v = dC(l[g]), m = XC(v, a, "_effect-".concat(g), p, h); g.startsWith("@layer") ? f = m + f : f += m; } }), [u, s, f]; -}, hG = "cssVar", qae = function(t, r) { - var n = t.key, i = t.prefix, o = t.unitless, a = t.ignore, s = t.token, l = t.scope, c = l === void 0 ? "" : l, u = Jt(Lb), d = u.cache.instanceId, h = u.container, f = s._tokenKey, p = [].concat($e(t.path), [n, c, f]), g = FD(hG, p, function() { - var v = r(), m = Zz(v, n, { +}, gG = "cssVar", ase = function(t, r) { + var n = t.key, i = t.prefix, o = t.unitless, a = t.ignore, s = t.token, l = t.scope, c = l === void 0 ? "" : l, u = Jt(Nb), d = u.cache.instanceId, h = u.container, f = s._tokenKey, p = [].concat($e(t.path), [n, c, f]), g = F2(gG, p, function() { + var v = r(), m = eG(v, n, { prefix: i, unitless: o, ignore: a, scope: c - }), y = ce(m, 2), C = y[0], b = y[1], w = uG(p, b); + }), y = ce(m, 2), C = y[0], b = y[1], w = fG(p, b); return [C, b, w, n]; }, function(v) { var m = ce(v, 3), y = m[2]; - HP && xv(y, { + HP && Rv(y, { mark: Xa }); }, function(v) { var m = ce(v, 3), y = m[1], C = m[2]; if (y) { - var b = Tl(y, C, { + var b = _l(y, C, { mark: Xa, prepend: "queue", attachTo: h, @@ -3487,17 +3528,17 @@ var Yae = function(t, r, n) { } }); return g; -}, Xae = function(t, r, n) { +}, sse = function(t, r, n) { var i = ce(t, 4), o = i[1], a = i[2], s = i[3], l = n || {}, c = l.plain; if (!o) return null; var u = -999, d = { "data-rc-order": "prependQueue", "data-rc-priority": "".concat(u) - }, h = KC(o, s, a, d, c); + }, h = XC(o, s, a, d, c); return [u, a, h]; }; -U(U(U({}, dG, Yae), Qz, bae), hG, Xae); +U(U(U({}, pG, ose), tG, Aae), gG, sse); var _r = /* @__PURE__ */ function() { function e(t, r) { Xn(this, e), U(this, "name", void 0), U(this, "style", void 0), U(this, "_keyframe", !0), this.name = t, this.style = r; @@ -3514,9 +3555,9 @@ function ah(e) { return e.notSplit = !0, e; } ah(["borderTop", "borderBottom"]), ah(["borderTop"]), ah(["borderBottom"]), ah(["borderLeft", "borderRight"]), ah(["borderLeft"]), ah(["borderRight"]); -var $D = /* @__PURE__ */ Xs({}); -function fG(e) { - return Gz(e) || Bz(e) || AD(e) || Wz(); +var $2 = /* @__PURE__ */ Xs({}); +function vG(e) { + return Uz(e) || zz(e) || A2(e) || Kz(); } function ko(e, t) { for (var r = e, n = 0; n < t.length; n += 1) { @@ -3526,35 +3567,35 @@ function ko(e, t) { } return r; } -function pG(e, t, r, n) { +function mG(e, t, r, n) { if (!t.length) return r; - var i = fG(t), o = i[0], a = i.slice(1), s; - return !e && typeof o == "number" ? s = [] : Array.isArray(e) ? s = $e(e) : s = Z({}, e), n && r === void 0 && a.length === 1 ? delete s[o][a[0]] : s[o] = pG(s[o], a, r, n), s; + var i = vG(t), o = i[0], a = i.slice(1), s; + return !e && typeof o == "number" ? s = [] : Array.isArray(e) ? s = $e(e) : s = Z({}, e), n && r === void 0 && a.length === 1 ? delete s[o][a[0]] : s[o] = mG(s[o], a, r, n), s; } function Ga(e, t, r) { var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1; - return t.length && n && r === void 0 && !ko(e, t.slice(0, -1)) ? e : pG(e, t, r, n); + return t.length && n && r === void 0 && !ko(e, t.slice(0, -1)) ? e : mG(e, t, r, n); } -function Zae(e) { +function lse(e) { return pt(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype; } -function PF(e) { +function _F(e) { return Array.isArray(e) ? [] : {}; } -var Qae = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys; +var cse = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys; function Zh() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; - var n = PF(t[0]); + var n = _F(t[0]); return t.forEach(function(i) { function o(a, s) { var l = new Set(s), c = ko(i, a), u = Array.isArray(c); - if (u || Zae(c)) { + if (u || lse(c)) { if (!l.has(c)) { l.add(c); var d = ko(n, a); - u ? n = Ga(n, a, []) : (!d || pt(d) !== "object") && (n = Ga(n, a, PF(c))), Qae(c).forEach(function(h) { + u ? n = Ga(n, a, []) : (!d || pt(d) !== "object") && (n = Ga(n, a, _F(c))), cse(c).forEach(function(h) { o([].concat($e(a), [h]), l); }); } @@ -3564,24 +3605,24 @@ function Zh() { o([]); }), n; } -function gG() { +function yG() { } -let gl = null; -function Jae() { - gl = null, _z(); +let vl = null; +function use() { + vl = null, Iz(); } -let Zc = gG; +let Zc = yG; process.env.NODE_ENV !== "production" && (Zc = (e, t, r) => { - Tt(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && Jae(); + Tt(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && use(); }); -const vG = /* @__PURE__ */ S.createContext({}), Rr = process.env.NODE_ENV !== "production" ? (e) => { +const CG = /* @__PURE__ */ S.createContext({}), Rr = process.env.NODE_ENV !== "production" ? (e) => { const { strict: t - } = S.useContext(vG), r = (n, i, o) => { + } = S.useContext(CG), r = (n, i, o) => { if (!n) if (t === !1 && i === "deprecated") { - const a = gl; - gl || (gl = {}), gl[e] = gl[e] || [], gl[e].includes(o || "") || gl[e].push(o || ""), a || console.warn("[antd] There exists deprecated usage in your code:", gl); + const a = vl; + vl || (vl = {}), vl[e] = vl[e] || [], vl[e].includes(o || "") || vl[e].push(o || ""), a || console.warn("[antd] There exists deprecated usage in your code:", vl); } else process.env.NODE_ENV !== "production" && Zc(n, e, o); }; @@ -3591,9 +3632,9 @@ const vG = /* @__PURE__ */ S.createContext({}), Rr = process.env.NODE_ENV !== "p } : () => { const e = () => { }; - return e.deprecated = gG, e; -}, ese = /* @__PURE__ */ Xs(void 0); -var mG = { + return e.deprecated = yG, e; +}, dse = /* @__PURE__ */ Xs(void 0); +var SG = { // Options items_per_page: "/ page", jump_to: "Go to", @@ -3607,7 +3648,7 @@ var mG = { prev_3: "Previous 3 Pages", next_3: "Next 3 Pages", page_size: "Page Size" -}, tse = { +}, hse = { locale: "en_US", today: "Today", now: "Now", @@ -3636,10 +3677,10 @@ var mG = { previousCentury: "Last century", nextCentury: "Next century" }; -const yG = { +const bG = { placeholder: "Select time", rangePlaceholder: ["Start time", "End time"] -}, TF = { +}, MF = { lang: Object.assign({ placeholder: "Select date", yearPlaceholder: "Select year", @@ -3651,14 +3692,14 @@ const yG = { rangeQuarterPlaceholder: ["Start quarter", "End quarter"], rangeMonthPlaceholder: ["Start month", "End month"], rangeWeekPlaceholder: ["Start week", "End week"] - }, tse), - timePickerLocale: Object.assign({}, yG) + }, hse), + timePickerLocale: Object.assign({}, bG) }, To = "${label} is not a valid ${type}", ns = { locale: "en", - Pagination: mG, - DatePicker: TF, - TimePicker: yG, - Calendar: TF, + Pagination: SG, + DatePicker: MF, + TimePicker: bG, + Calendar: MF, global: { placeholder: "Please select" }, @@ -3790,22 +3831,22 @@ const yG = { presetEmpty: "Empty" } }; -let cC = Object.assign({}, ns.Modal), uC = []; -const _F = () => uC.reduce((e, t) => Object.assign(Object.assign({}, e), t), ns.Modal); -function rse(e) { +let hC = Object.assign({}, ns.Modal), fC = []; +const DF = () => fC.reduce((e, t) => Object.assign(Object.assign({}, e), t), ns.Modal); +function fse(e) { if (e) { const t = Object.assign({}, e); - return uC.push(t), cC = _F(), () => { - uC = uC.filter((r) => r !== t), cC = _F(); + return fC.push(t), hC = DF(), () => { + fC = fC.filter((r) => r !== t), hC = DF(); }; } - cC = Object.assign({}, ns.Modal); + hC = Object.assign({}, ns.Modal); } -function CG() { - return cC; +function wG() { + return hC; } -const BD = /* @__PURE__ */ Xs(void 0), Bd = (e, t) => { - const r = S.useContext(BD), n = S.useMemo(() => { +const B2 = /* @__PURE__ */ Xs(void 0), Bd = (e, t) => { + const r = S.useContext(B2), n = S.useMemo(() => { var o; const a = t || ns[e], s = (o = r == null ? void 0 : r[e]) !== null && o !== void 0 ? o : {}; return Object.assign(Object.assign({}, typeof a == "function" ? a() : a), s || {}); @@ -3814,7 +3855,7 @@ const BD = /* @__PURE__ */ Xs(void 0), Bd = (e, t) => { return r != null && r.exist && !o ? ns.locale : o; }, [r]); return [n, i]; -}, SG = "internalMark", bG = (e) => { +}, xG = "internalMark", EG = (e) => { const { locale: t = {}, children: r, @@ -3822,49 +3863,49 @@ const BD = /* @__PURE__ */ Xs(void 0), Bd = (e, t) => { } = e; if (process.env.NODE_ENV !== "production") { const o = Rr("LocaleProvider"); - process.env.NODE_ENV !== "production" && o(n === SG, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"); + process.env.NODE_ENV !== "production" && o(n === xG, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"); } - S.useEffect(() => rse(t == null ? void 0 : t.Modal), [t]); + S.useEffect(() => fse(t == null ? void 0 : t.Modal), [t]); const i = S.useMemo(() => Object.assign(Object.assign({}, t), { exist: !0 }), [t]); - return /* @__PURE__ */ S.createElement(BD.Provider, { + return /* @__PURE__ */ S.createElement(B2.Provider, { value: i }, r); }; -process.env.NODE_ENV !== "production" && (bG.displayName = "LocaleProvider"); -function Si(e, t) { - nse(e) && (e = "100%"); - var r = ise(e); +process.env.NODE_ENV !== "production" && (EG.displayName = "LocaleProvider"); +function bi(e, t) { + pse(e) && (e = "100%"); + var r = gse(e); return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e); } -function by(e) { +function Ey(e) { return Math.min(1, Math.max(0, e)); } -function nse(e) { +function pse(e) { return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1; } -function ise(e) { +function gse(e) { return typeof e == "string" && e.indexOf("%") !== -1; } -function wG(e) { +function RG(e) { return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e; } -function wy(e) { +function Ry(e) { return e <= 1 ? "".concat(Number(e) * 100, "%") : e; } function qu(e) { return e.length === 1 ? "0" + e : String(e); } -function ose(e, t, r) { +function vse(e, t, r) { return { - r: Si(e, 255) * 255, - g: Si(t, 255) * 255, - b: Si(r, 255) * 255 + r: bi(e, 255) * 255, + g: bi(t, 255) * 255, + b: bi(r, 255) * 255 }; } -function MF(e, t, r) { - e = Si(e, 255), t = Si(t, 255), r = Si(r, 255); +function IF(e, t, r) { + e = bi(e, 255), t = bi(t, 255), r = bi(r, 255); var n = Math.max(e, t, r), i = Math.min(e, t, r), o = 0, a = 0, s = (n + i) / 2; if (n === i) a = 0, o = 0; @@ -3888,9 +3929,9 @@ function MF(e, t, r) { function _1(e, t, r) { return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * (6 * r) : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e; } -function ase(e, t, r) { +function mse(e, t, r) { var n, i, o; - if (e = Si(e, 360), t = Si(t, 100), r = Si(r, 100), t === 0) + if (e = bi(e, 360), t = bi(t, 100), r = bi(r, 100), t === 0) i = r, o = r, n = r; else { var a = r < 0.5 ? r * (1 + t) : r + t - r * t, s = 2 * r - a; @@ -3899,7 +3940,7 @@ function ase(e, t, r) { return { r: n * 255, g: i * 255, b: o * 255 }; } function YP(e, t, r) { - e = Si(e, 255), t = Si(t, 255), r = Si(r, 255); + e = bi(e, 255), t = bi(t, 255), r = bi(r, 255); var n = Math.max(e, t, r), i = Math.min(e, t, r), o = 0, a = n, s = n - i, l = n === 0 ? 0 : s / n; if (n === i) o = 0; @@ -3919,8 +3960,8 @@ function YP(e, t, r) { } return { h: o, s: l, v: a }; } -function sse(e, t, r) { - e = Si(e, 360) * 6, t = Si(t, 100), r = Si(r, 100); +function yse(e, t, r) { + e = bi(e, 360) * 6, t = bi(t, 100), r = bi(r, 100); var n = Math.floor(e), i = e - n, o = r * (1 - t), a = r * (1 - i * t), s = r * (1 - (1 - i) * t), l = n % 6, c = [r, a, o, o, s, r][l], u = [s, r, r, a, o, o][l], d = [o, o, s, r, r, a][l]; return { r: c * 255, g: u * 255, b: d * 255 }; } @@ -3932,25 +3973,25 @@ function qP(e, t, r, n) { ]; return n && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join(""); } -function lse(e, t, r, n, i) { +function Cse(e, t, r, n, i) { var o = [ qu(Math.round(e).toString(16)), qu(Math.round(t).toString(16)), qu(Math.round(r).toString(16)), - qu(cse(n)) + qu(Sse(n)) ]; return i && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) && o[3].startsWith(o[3].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) + o[3].charAt(0) : o.join(""); } -function cse(e) { +function Sse(e) { return Math.round(parseFloat(e) * 255).toString(16); } -function DF(e) { +function AF(e) { return Io(e) / 255; } function Io(e) { return parseInt(e, 16); } -function use(e) { +function bse(e) { return { r: e >> 16, g: (e & 65280) >> 8, @@ -4109,7 +4150,7 @@ var XP = { }; function Gh(e) { var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, i = null, o = null, a = !1, s = !1; - return typeof e == "string" && (e = fse(e)), typeof e == "object" && (ll(e.r) && ll(e.g) && ll(e.b) ? (t = ose(e.r, e.g, e.b), a = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : ll(e.h) && ll(e.s) && ll(e.v) ? (n = wy(e.s), i = wy(e.v), t = sse(e.h, n, i), a = !0, s = "hsv") : ll(e.h) && ll(e.s) && ll(e.l) && (n = wy(e.s), o = wy(e.l), t = ase(e.h, n, o), a = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = wG(r), { + return typeof e == "string" && (e = Ese(e)), typeof e == "object" && (cl(e.r) && cl(e.g) && cl(e.b) ? (t = vse(e.r, e.g, e.b), a = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : cl(e.h) && cl(e.s) && cl(e.v) ? (n = Ry(e.s), i = Ry(e.v), t = yse(e.h, n, i), a = !0, s = "hsv") : cl(e.h) && cl(e.s) && cl(e.l) && (n = Ry(e.s), o = Ry(e.l), t = mse(e.h, n, o), a = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = RG(r), { ok: a, format: e.format || s, r: Math.min(255, Math.max(t.r, 0)), @@ -4118,7 +4159,7 @@ function Gh(e) { a: r }; } -var dse = "[-\\+]?\\d+%?", hse = "[-\\+]?\\d*\\.\\d+%?", yc = "(?:".concat(hse, ")|(?:").concat(dse, ")"), M1 = "[\\s|\\(]+(".concat(yc, ")[,|\\s]+(").concat(yc, ")[,|\\s]+(").concat(yc, ")\\s*\\)?"), D1 = "[\\s|\\(]+(".concat(yc, ")[,|\\s]+(").concat(yc, ")[,|\\s]+(").concat(yc, ")[,|\\s]+(").concat(yc, ")\\s*\\)?"), $a = { +var wse = "[-\\+]?\\d+%?", xse = "[-\\+]?\\d*\\.\\d+%?", yc = "(?:".concat(xse, ")|(?:").concat(wse, ")"), M1 = "[\\s|\\(]+(".concat(yc, ")[,|\\s]+(").concat(yc, ")[,|\\s]+(").concat(yc, ")\\s*\\)?"), D1 = "[\\s|\\(]+(".concat(yc, ")[,|\\s]+(").concat(yc, ")[,|\\s]+(").concat(yc, ")[,|\\s]+(").concat(yc, ")\\s*\\)?"), $a = { CSS_UNIT: new RegExp(yc), rgb: new RegExp("rgb" + M1), rgba: new RegExp("rgba" + D1), @@ -4131,7 +4172,7 @@ var dse = "[-\\+]?\\d+%?", hse = "[-\\+]?\\d*\\.\\d+%?", yc = "(?:".concat(hse, hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; -function fse(e) { +function Ese(e) { if (e = e.trim().toLowerCase(), e.length === 0) return !1; var t = !1; @@ -4144,7 +4185,7 @@ function fse(e) { r: Io(r[1]), g: Io(r[2]), b: Io(r[3]), - a: DF(r[4]), + a: AF(r[4]), format: t ? "name" : "hex8" } : (r = $a.hex6.exec(e), r ? { r: Io(r[1]), @@ -4155,7 +4196,7 @@ function fse(e) { r: Io(r[1] + r[1]), g: Io(r[2] + r[2]), b: Io(r[3] + r[3]), - a: DF(r[4] + r[4]), + a: AF(r[4] + r[4]), format: t ? "name" : "hex8" } : (r = $a.hex3.exec(e), r ? { r: Io(r[1] + r[1]), @@ -4164,7 +4205,7 @@ function fse(e) { format: t ? "name" : "hex" } : !1))))))))); } -function ll(e) { +function cl(e) { return !!$a.CSS_UNIT.exec(String(e)); } var Hr = ( @@ -4175,7 +4216,7 @@ var Hr = ( var n; if (t instanceof e) return t; - typeof t == "number" && (t = use(t)), this.originalInput = t; + typeof t == "number" && (t = bse(t)), this.originalInput = t; var i = Gh(t); this.originalInput = t, this.r = i.r, this.g = i.g, this.b = i.b, this.a = i.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (n = r.format) !== null && n !== void 0 ? n : i.format, this.gradientType = r.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = i.ok; } @@ -4192,7 +4233,7 @@ var Hr = ( }, e.prototype.getAlpha = function() { return this.a; }, e.prototype.setAlpha = function(t) { - return this.a = wG(t), this.roundA = Math.round(100 * this.a) / 100, this; + return this.a = RG(t), this.roundA = Math.round(100 * this.a) / 100, this; }, e.prototype.isMonochrome = function() { var t = this.toHsl().s; return t === 0; @@ -4203,17 +4244,17 @@ var Hr = ( var t = YP(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), i = Math.round(t.v * 100); return this.a === 1 ? "hsv(".concat(r, ", ").concat(n, "%, ").concat(i, "%)") : "hsva(".concat(r, ", ").concat(n, "%, ").concat(i, "%, ").concat(this.roundA, ")"); }, e.prototype.toHsl = function() { - var t = MF(this.r, this.g, this.b); + var t = IF(this.r, this.g, this.b); return { h: t.h * 360, s: t.s, l: t.l, a: this.a }; }, e.prototype.toHslString = function() { - var t = MF(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), i = Math.round(t.l * 100); + var t = IF(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), i = Math.round(t.l * 100); return this.a === 1 ? "hsl(".concat(r, ", ").concat(n, "%, ").concat(i, "%)") : "hsla(".concat(r, ", ").concat(n, "%, ").concat(i, "%, ").concat(this.roundA, ")"); }, e.prototype.toHex = function(t) { return t === void 0 && (t = !1), qP(this.r, this.g, this.b, t); }, e.prototype.toHexString = function(t) { return t === void 0 && (t = !1), "#" + this.toHex(t); }, e.prototype.toHex8 = function(t) { - return t === void 0 && (t = !1), lse(this.r, this.g, this.b, this.a, t); + return t === void 0 && (t = !1), Cse(this.r, this.g, this.b, this.a, t); }, e.prototype.toHex8String = function(t) { return t === void 0 && (t = !1), "#" + this.toHex8(t); }, e.prototype.toHexShortString = function(t) { @@ -4230,7 +4271,7 @@ var Hr = ( return this.a === 1 ? "rgb(".concat(t, ", ").concat(r, ", ").concat(n, ")") : "rgba(".concat(t, ", ").concat(r, ", ").concat(n, ", ").concat(this.roundA, ")"); }, e.prototype.toPercentageRgb = function() { var t = function(r) { - return "".concat(Math.round(Si(r, 255) * 100), "%"); + return "".concat(Math.round(bi(r, 255) * 100), "%"); }; return { r: t(this.r), @@ -4240,7 +4281,7 @@ var Hr = ( }; }, e.prototype.toPercentageRgbString = function() { var t = function(r) { - return Math.round(Si(r, 255) * 100); + return Math.round(bi(r, 255) * 100); }; return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")"); }, e.prototype.toName = function() { @@ -4266,7 +4307,7 @@ var Hr = ( }, e.prototype.lighten = function(t) { t === void 0 && (t = 10); var r = this.toHsl(); - return r.l += t / 100, r.l = by(r.l), new e(r); + return r.l += t / 100, r.l = Ey(r.l), new e(r); }, e.prototype.brighten = function(t) { t === void 0 && (t = 10); var r = this.toRgb(); @@ -4274,7 +4315,7 @@ var Hr = ( }, e.prototype.darken = function(t) { t === void 0 && (t = 10); var r = this.toHsl(); - return r.l -= t / 100, r.l = by(r.l), new e(r); + return r.l -= t / 100, r.l = Ey(r.l), new e(r); }, e.prototype.tint = function(t) { return t === void 0 && (t = 10), this.mix("white", t); }, e.prototype.shade = function(t) { @@ -4282,11 +4323,11 @@ var Hr = ( }, e.prototype.desaturate = function(t) { t === void 0 && (t = 10); var r = this.toHsl(); - return r.s -= t / 100, r.s = by(r.s), new e(r); + return r.s -= t / 100, r.s = Ey(r.s), new e(r); }, e.prototype.saturate = function(t) { t === void 0 && (t = 10); var r = this.toHsl(); - return r.s += t / 100, r.s = by(r.s), new e(r); + return r.s += t / 100, r.s = Ey(r.s), new e(r); }, e.prototype.greyscale = function() { return this.desaturate(100); }, e.prototype.spin = function(t) { @@ -4342,7 +4383,7 @@ var Hr = ( return this.toRgbString() === new e(t).toRgbString(); }, e; }() -), xy = 2, IF = 0.16, pse = 0.05, gse = 0.05, vse = 0.15, xG = 5, EG = 4, mse = [{ +), Py = 2, OF = 0.16, Rse = 0.05, Pse = 0.05, Tse = 0.15, PG = 5, TG = 4, _se = [{ index: 7, opacity: 0.15 }, { @@ -4373,7 +4414,7 @@ var Hr = ( index: 1, opacity: 0.98 }]; -function AF(e) { +function LF(e) { var t = e.r, r = e.g, n = e.b, i = YP(t, r, n); return { h: i.h * 360, @@ -4381,11 +4422,11 @@ function AF(e) { v: i.v }; } -function Ey(e) { +function Ty(e) { var t = e.r, r = e.g, n = e.b; return "#".concat(qP(t, r, n, !1)); } -function yse(e, t, r) { +function Mse(e, t, r) { var n = r / 100, i = { r: (t.r - e.r) * n + e.r, g: (t.g - e.g) * n + e.g, @@ -4393,40 +4434,40 @@ function yse(e, t, r) { }; return i; } -function OF(e, t, r) { +function FF(e, t, r) { var n; - return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - xy * t : Math.round(e.h) + xy * t : n = r ? Math.round(e.h) + xy * t : Math.round(e.h) - xy * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n; + return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - Py * t : Math.round(e.h) + Py * t : n = r ? Math.round(e.h) + Py * t : Math.round(e.h) - Py * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n; } -function LF(e, t, r) { +function NF(e, t, r) { if (e.h === 0 && e.s === 0) return e.s; var n; - return r ? n = e.s - IF * t : t === EG ? n = e.s + IF : n = e.s + pse * t, n > 1 && (n = 1), r && t === xG && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2)); + return r ? n = e.s - OF * t : t === TG ? n = e.s + OF : n = e.s + Rse * t, n > 1 && (n = 1), r && t === PG && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2)); } -function FF(e, t, r) { +function kF(e, t, r) { var n; - return r ? n = e.v + gse * t : n = e.v - vse * t, n > 1 && (n = 1), Number(n.toFixed(2)); -} -function Pv(e) { - for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = Gh(e), i = xG; i > 0; i -= 1) { - var o = AF(n), a = Ey(Gh({ - h: OF(o, i, !0), - s: LF(o, i, !0), - v: FF(o, i, !0) + return r ? n = e.v + Pse * t : n = e.v - Tse * t, n > 1 && (n = 1), Number(n.toFixed(2)); +} +function _v(e) { + for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = Gh(e), i = PG; i > 0; i -= 1) { + var o = LF(n), a = Ty(Gh({ + h: FF(o, i, !0), + s: NF(o, i, !0), + v: kF(o, i, !0) })); r.push(a); } - r.push(Ey(n)); - for (var s = 1; s <= EG; s += 1) { - var l = AF(n), c = Ey(Gh({ - h: OF(l, s), - s: LF(l, s), - v: FF(l, s) + r.push(Ty(n)); + for (var s = 1; s <= TG; s += 1) { + var l = LF(n), c = Ty(Gh({ + h: FF(l, s), + s: NF(l, s), + v: kF(l, s) })); r.push(c); } - return t.theme === "dark" ? mse.map(function(u) { - var d = u.index, h = u.opacity, f = Ey(yse(Gh(t.backgroundColor || "#141414"), Gh(r[d]), h * 100)); + return t.theme === "dark" ? _se.map(function(u) { + var d = u.index, h = u.opacity, f = Ty(Mse(Gh(t.backgroundColor || "#141414"), Gh(r[d]), h * 100)); return f; }) : r; } @@ -4448,7 +4489,7 @@ var ZP = { QP.primary = QP[5]; var JP = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"]; JP.primary = JP[5]; -const RG = { +const _G = { blue: "#1677ff", purple: "#722ED1", cyan: "#13C2C2", @@ -4462,7 +4503,7 @@ const RG = { geekblue: "#2F54EB", gold: "#FAAD14", lime: "#A0D911" -}, Tv = Object.assign(Object.assign({}, RG), { +}, Mv = Object.assign(Object.assign({}, _G), { // Color colorPrimary: "#1677ff", colorSuccess: "#52c41a", @@ -4510,7 +4551,7 @@ const RG = { // Motion motion: !0 }); -function Cse(e, t) { +function Dse(e, t) { let { generateColorPalettes: r, generateNeutralColorPalettes: n @@ -4583,7 +4624,7 @@ function Cse(e, t) { colorWhite: "#fff" }); } -const Sse = (e) => { +const Ise = (e) => { let t = e, r = e, n = e, i = e; return e < 6 && e >= 5 ? t = e + 1 : e < 16 && e >= 6 ? t = e + 2 : e >= 16 && (t = 16), e < 7 && e >= 5 ? r = 4 : e < 8 && e >= 7 ? r = 5 : e < 14 && e >= 8 ? r = 6 : e < 16 && e >= 14 ? r = 7 : e >= 16 && (r = 8), e < 6 && e >= 2 ? n = 1 : e >= 6 && (n = 2), e > 4 && e < 8 ? i = 4 : e >= 8 && (i = 6), { borderRadius: e, @@ -4593,7 +4634,7 @@ const Sse = (e) => { borderRadiusOuter: i }; }; -function bse(e) { +function Ase(e) { const { motionUnit: t, motionBase: r, @@ -4607,9 +4648,9 @@ function bse(e) { motionDurationSlow: `${(r + t * 3).toFixed(1)}s`, // line lineWidthBold: i + 1 - }, Sse(n)); + }, Ise(n)); } -const wse = (e) => { +const Ose = (e) => { const { controlHeight: t } = e; @@ -4619,21 +4660,21 @@ const wse = (e) => { controlHeightLG: t * 1.25 }; }; -function dC(e) { +function pC(e) { return (e + 8) / e; } -function xse(e) { +function Lse(e) { const t = new Array(10).fill(null).map((r, n) => { const i = n - 1, o = e * Math.pow(Math.E, i / 5), a = n > 1 ? Math.floor(o) : Math.ceil(o); return Math.floor(a / 2) * 2; }); return t[1] = e, t.map((r) => ({ size: r, - lineHeight: dC(r) + lineHeight: pC(r) })); } -const Ese = (e) => { - const t = xse(e), r = t.map((u) => u.size), n = t.map((u) => u.lineHeight), i = r[1], o = r[0], a = r[2], s = n[1], l = n[0], c = n[2]; +const Fse = (e) => { + const t = Lse(e), r = t.map((u) => u.size), n = t.map((u) => u.lineHeight), i = r[1], o = r[0], a = r[2], s = n[1], l = n[0], c = n[2]; return { fontSizeSM: o, fontSize: i, @@ -4657,7 +4698,7 @@ const Ese = (e) => { lineHeightHeading5: n[2] }; }; -function Rse(e) { +function Nse(e) { const { sizeUnit: t, sizeStep: r @@ -4683,8 +4724,8 @@ function Rse(e) { // 4 }; } -const cl = (e, t) => new Hr(e).setAlpha(t).toRgbString(), Fp = (e, t) => new Hr(e).darken(t).toHexString(), Pse = (e) => { - const t = Pv(e); +const ul = (e, t) => new Hr(e).setAlpha(t).toRgbString(), kp = (e, t) => new Hr(e).darken(t).toHexString(), kse = (e) => { + const t = _v(e); return { 1: t[0], 2: t[1], @@ -4700,60 +4741,60 @@ const cl = (e, t) => new Hr(e).setAlpha(t).toRgbString(), Fp = (e, t) => new Hr( // 9: colors[8], // 10: colors[9], }; -}, Tse = (e, t) => { +}, $se = (e, t) => { const r = e || "#fff", n = t || "#000"; return { colorBgBase: r, colorTextBase: n, - colorText: cl(n, 0.88), - colorTextSecondary: cl(n, 0.65), - colorTextTertiary: cl(n, 0.45), - colorTextQuaternary: cl(n, 0.25), - colorFill: cl(n, 0.15), - colorFillSecondary: cl(n, 0.06), - colorFillTertiary: cl(n, 0.04), - colorFillQuaternary: cl(n, 0.02), - colorBgLayout: Fp(r, 4), - colorBgContainer: Fp(r, 0), - colorBgElevated: Fp(r, 0), - colorBgSpotlight: cl(n, 0.85), + colorText: ul(n, 0.88), + colorTextSecondary: ul(n, 0.65), + colorTextTertiary: ul(n, 0.45), + colorTextQuaternary: ul(n, 0.25), + colorFill: ul(n, 0.15), + colorFillSecondary: ul(n, 0.06), + colorFillTertiary: ul(n, 0.04), + colorFillQuaternary: ul(n, 0.02), + colorBgLayout: kp(r, 4), + colorBgContainer: kp(r, 0), + colorBgElevated: kp(r, 0), + colorBgSpotlight: ul(n, 0.85), colorBgBlur: "transparent", - colorBorder: Fp(r, 15), - colorBorderSecondary: Fp(r, 6) + colorBorder: kp(r, 15), + colorBorderSecondary: kp(r, 6) }; }; -function _se(e) { - const t = Object.keys(RG).map((r) => { - const n = Pv(e[r]); +function Bse(e) { + const t = Object.keys(_G).map((r) => { + const n = _v(e[r]); return new Array(10).fill(1).reduce((i, o, a) => (i[`${r}-${a + 1}`] = n[a], i[`${r}${a + 1}`] = n[a], i), {}); }).reduce((r, n) => (r = Object.assign(Object.assign({}, r), n), r), {}); - return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), t), Cse(e, { - generateColorPalettes: Pse, - generateNeutralColorPalettes: Tse - })), Ese(e.fontSize)), Rse(e)), wse(e)), bse(e)); + return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), t), Dse(e, { + generateColorPalettes: kse, + generateNeutralColorPalettes: $se + })), Fse(e.fontSize)), Nse(e)), Ose(e)), Ase(e)); } -const PG = VP(_se), eT = { - token: Tv, +const MG = VP(Bse), eT = { + token: Mv, override: { - override: Tv + override: Mv }, hashed: !0 -}, TG = /* @__PURE__ */ k.createContext(eT), VD = "anticon", Mse = ["outlined", "borderless", "filled"], Dse = (e, t) => t || (e ? `ant-${e}` : "ant"), gt = /* @__PURE__ */ S.createContext({ +}, DG = /* @__PURE__ */ k.createContext(eT), V2 = "anticon", Vse = ["outlined", "borderless", "filled"], Hse = (e, t) => t || (e ? `ant-${e}` : "ant"), gt = /* @__PURE__ */ S.createContext({ // We provide a default function for Context without provider - getPrefixCls: Dse, - iconPrefixCls: VD -}), Ise = `-ant-${Date.now()}-${Math.random()}`; -function Ase(e, t) { + getPrefixCls: Hse, + iconPrefixCls: V2 +}), zse = `-ant-${Date.now()}-${Math.random()}`; +function Gse(e, t) { const r = {}, n = (a, s) => { let l = a.clone(); return l = (s == null ? void 0 : s(l)) || l, l.toRgbString(); }, i = (a, s) => { - const l = new Hr(a), c = Pv(l.toRgbString()); + const l = new Hr(a), c = _v(l.toRgbString()); r[`${s}-color`] = n(l), r[`${s}-color-disabled`] = c[1], r[`${s}-color-hover`] = c[4], r[`${s}-color-active`] = c[6], r[`${s}-color-outline`] = l.clone().setAlpha(0.2).toRgbString(), r[`${s}-color-deprecated-bg`] = c[0], r[`${s}-color-deprecated-border`] = c[2]; }; if (t.primaryColor) { i(t.primaryColor, "primary"); - const a = new Hr(t.primaryColor), s = Pv(a.toRgbString()); + const a = new Hr(t.primaryColor), s = _v(a.toRgbString()); s.forEach((c, u) => { r[`primary-${u + 1}`] = c; }), r["primary-color-deprecated-l-35"] = n(a, (c) => c.lighten(35)), r["primary-color-deprecated-l-20"] = n(a, (c) => c.lighten(20)), r["primary-color-deprecated-t-20"] = n(a, (c) => c.tint(20)), r["primary-color-deprecated-t-50"] = n(a, (c) => c.tint(50)), r["primary-color-deprecated-f-12"] = n(a, (c) => c.setAlpha(c.getAlpha() * 0.12)); @@ -4767,20 +4808,20 @@ function Ase(e, t) { } `.trim(); } -function Ose(e, t) { - const r = Ase(e, t); - ii() ? Tl(r, `${Ise}-dynamic-theme`) : process.env.NODE_ENV !== "production" && Zc(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables."); +function Wse(e, t) { + const r = Gse(e, t); + ii() ? _l(r, `${zse}-dynamic-theme`) : process.env.NODE_ENV !== "production" && Zc(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables."); } -const Ll = /* @__PURE__ */ S.createContext(!1), _G = (e) => { +const Fl = /* @__PURE__ */ S.createContext(!1), IG = (e) => { let { children: t, disabled: r } = e; - const n = S.useContext(Ll); - return /* @__PURE__ */ S.createElement(Ll.Provider, { + const n = S.useContext(Fl); + return /* @__PURE__ */ S.createElement(Fl.Provider, { value: r ?? n }, t); -}, _f = /* @__PURE__ */ S.createContext(void 0), Lse = (e) => { +}, _f = /* @__PURE__ */ S.createContext(void 0), jse = (e) => { let { children: t, size: r @@ -4790,18 +4831,18 @@ const Ll = /* @__PURE__ */ S.createContext(!1), _G = (e) => { value: r || n }, t); }; -function Fse() { - const e = Jt(Ll), t = Jt(_f); +function Use() { + const e = Jt(Fl), t = Jt(_f); return { componentDisabled: e, componentSize: t }; } -const _v = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"], Nse = "5.19.0"; +const Dv = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"], Kse = "5.19.0"; function I1(e) { return e >= 0 && e <= 255; } -function Ry(e, t) { +function _y(e, t) { const { r, g: n, @@ -4832,18 +4873,18 @@ function Ry(e, t) { a: 1 }).toRgbString(); } -var kse = function(e, t) { +var Yse = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function MG(e) { +function AG(e) { const { override: t - } = e, r = kse(e, ["override"]), n = Object.assign({}, t); - Object.keys(Tv).forEach((h) => { + } = e, r = Yse(e, ["override"]), n = Object.assign({}, t); + Object.keys(Mv).forEach((h) => { delete n[h]; }); const i = Object.assign(Object.assign({}, r), n), o = 480, a = 576, s = 768, l = 992, c = 1200, u = 1600; @@ -4859,7 +4900,7 @@ function MG(e) { colorBgContainerDisabled: i.colorFillTertiary, // ============== Split ============== // colorBorderBg: i.colorBgContainer, - colorSplit: Ry(i.colorBorderSecondary, i.colorBgContainer), + colorSplit: _y(i.colorBorderSecondary, i.colorBgContainer), // ============== Text ============== // colorTextPlaceholder: i.colorTextQuaternary, colorTextDisabled: i.colorTextQuaternary, @@ -4872,8 +4913,8 @@ function MG(e) { colorBgTextActive: i.colorFill, colorIcon: i.colorTextTertiary, colorIconHover: i.colorText, - colorErrorOutline: Ry(i.colorErrorBg, i.colorBgContainer), - colorWarningOutline: Ry(i.colorWarningBg, i.colorBgContainer), + colorErrorOutline: _y(i.colorErrorBg, i.colorBgContainer), + colorWarningOutline: _y(i.colorWarningBg, i.colorBgContainer), // Font fontSizeIcon: i.fontSizeSM, // Line @@ -4888,7 +4929,7 @@ function MG(e) { controlItemBgActiveHover: i.colorPrimaryBgHover, controlItemBgActiveDisabled: i.colorFill, controlTmpOutline: i.colorFillQuaternary, - controlOutline: Ry(i.colorPrimaryBg, i.colorBgContainer), + controlOutline: _y(i.colorPrimaryBg, i.colorBgContainer), lineType: i.lineType, borderRadius: i.borderRadius, borderRadiusXS: i.borderRadiusXS, @@ -4986,14 +5027,14 @@ function MG(e) { boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)" }), n); } -var NF = function(e, t) { +var $F = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const DG = { +const OG = { lineHeight: !0, lineHeightSM: !0, lineHeightLG: !0, @@ -5006,7 +5047,7 @@ const DG = { fontWeightStrong: !0, zIndexPopupBase: !0, zIndexBase: !0 -}, IG = { +}, LG = { size: !0, sizeSM: !0, sizeLG: !0, @@ -5020,7 +5061,7 @@ const DG = { sizeStep: !0, motionBase: !0, motionUnit: !0 -}, $se = { +}, qse = { screenXS: !0, screenXSMin: !0, screenXSMax: !0, @@ -5038,20 +5079,20 @@ const DG = { screenXLMax: !0, screenXXL: !0, screenXXLMin: !0 -}, AG = (e, t, r) => { +}, FG = (e, t, r) => { const n = r.getDerivativeToken(e), { override: i - } = t, o = NF(t, ["override"]); + } = t, o = $F(t, ["override"]); let a = Object.assign(Object.assign({}, n), { override: i }); - return a = MG(a), o && Object.entries(o).forEach((s) => { + return a = AG(a), o && Object.entries(o).forEach((s) => { let [l, c] = s; const { theme: u - } = c, d = NF(c, ["theme"]); + } = c, d = $F(c, ["theme"]); let h = d; - u && (h = AG(Object.assign(Object.assign({}, a), d), { + u && (h = FG(Object.assign(Object.assign({}, a), d), { override: d }, u)), a[l] = h; }), a; @@ -5063,24 +5104,24 @@ function ai() { theme: r, override: n, cssVar: i - } = k.useContext(TG), o = `${Nse}-${t || ""}`, a = r || PG, [s, l, c] = Sae(a, [Tv, e], { + } = k.useContext(DG), o = `${Kse}-${t || ""}`, a = r || MG, [s, l, c] = Iae(a, [Mv, e], { salt: o, override: n, - getComputedToken: AG, + getComputedToken: FG, // formatToken will not be consumed after 1.15.0 with getComputedToken. // But token will break if @ant-design/cssinjs is under 1.15.0 without it - formatToken: MG, + formatToken: AG, cssVar: i && { prefix: i.prefix, key: i.key, - unitless: DG, - ignore: IG, - preserve: $se + unitless: OG, + ignore: LG, + preserve: qse } }); return [a, c, t ? l : "", s, i]; } -function Kr(e) { +function Yr(e) { var t = S.useRef(); t.current = e; var r = S.useCallback(function() { @@ -5108,20 +5149,20 @@ function A1(e) { function pn(e, t) { var r = t || {}, n = r.defaultValue, i = r.value, o = r.onChange, a = r.postState, s = Mf(function() { return A1(i) ? i : A1(n) ? typeof n == "function" ? n() : n : typeof e == "function" ? e() : e; - }), l = ce(s, 2), c = l[0], u = l[1], d = i !== void 0 ? i : c, h = a ? a(d) : d, f = Kr(o), p = Mf([d]), g = ce(p, 2), v = g[0], m = g[1]; + }), l = ce(s, 2), c = l[0], u = l[1], d = i !== void 0 ? i : c, h = a ? a(d) : d, f = Yr(o), p = Mf([d]), g = ce(p, 2), v = g[0], m = g[1]; zP(function() { var C = v[0]; c !== C && f(c, C); }, [v]), zP(function() { A1(i) || u(i); }, [i]); - var y = Kr(function(C, b) { + var y = Yr(function(C, b) { u(C, b), m([d], b); }); return [h, y]; } -const Bse = 1e3 * 60 * 10; -let Vse = /* @__PURE__ */ function() { +const Xse = 1e3 * 60 * 10; +let Zse = /* @__PURE__ */ function() { function e() { Xn(this, e), this.map = /* @__PURE__ */ new Map(), this.objectIDMap = /* @__PURE__ */ new WeakMap(), this.nextID = 0, this.lastAccessBeat = /* @__PURE__ */ new Map(), this.accessBeat = 0; } @@ -5157,23 +5198,23 @@ let Vse = /* @__PURE__ */ function() { if (this.accessBeat > 1e4) { const r = Date.now(); this.lastAccessBeat.forEach((n, i) => { - r - n > Bse && (this.map.delete(i), this.lastAccessBeat.delete(i)); + r - n > Xse && (this.map.delete(i), this.lastAccessBeat.delete(i)); }), this.accessBeat = 0; } } }]); }(); -const kF = new Vse(); -function Hse(e, t) { +const BF = new Zse(); +function Qse(e, t) { return k.useMemo(() => { - const r = kF.get(t); + const r = BF.get(t); if (r) return r; const n = e(); - return kF.set(t, n), n; + return BF.set(t, n), n; }, t); } -const HD = (e) => ({ +const H2 = (e) => ({ // FIXME: This use link but is a operation unit. Seems should be a colorPrimary. // And Typography use this to generate link style which should not do this. color: e.colorLink, @@ -5205,7 +5246,7 @@ const HD = (e) => ({ // font-feature-settings: @font-feature-settings-base; fontFamily: t ? "inherit" : e.fontFamily }; -}, kb = () => ({ +}, Bb = () => ({ display: "inline-flex", alignItems: "center", color: "inherit", @@ -5224,7 +5265,7 @@ const HD = (e) => ({ svg: { display: "inline-block" } -}), Fl = () => ({ +}), Nl = () => ({ // https://github.com/ant-design/ant-design/issues/21301#issuecomment-583955229 "&::before": { display: "table", @@ -5236,7 +5277,7 @@ const HD = (e) => ({ clear: "both", content: '""' } -}), zse = (e) => ({ +}), Jse = (e) => ({ a: { color: e.colorLink, textDecoration: e.linkDecoration, @@ -5267,7 +5308,7 @@ const HD = (e) => ({ cursor: "not-allowed" } } -}), Gse = (e, t, r, n) => { +}), ele = (e, t, r, n) => { const i = `[class^="${t}"], [class*=" ${t}"]`, o = r ? `.${r}` : i, a = { boxSizing: "border-box", "&::before, &::after": { @@ -5284,13 +5325,13 @@ const HD = (e) => ({ }) }; }, Nc = (e) => ({ - outline: `${ee(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`, + outline: `${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`, outlineOffset: 1, transition: "outline-offset 0s, outline 0s" }), Ed = (e) => ({ "&:focus-visible": Object.assign({}, Nc(e)) }); -function Wse(e) { +function tle(e) { return e === "js" ? { max: Math.max, min: Math.min @@ -5298,21 +5339,21 @@ function Wse(e) { max: function() { for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n]; - return `max(${r.map((i) => ee(i)).join(",")})`; + return `max(${r.map((i) => te(i)).join(",")})`; }, min: function() { for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n]; - return `min(${r.map((i) => ee(i)).join(",")})`; + return `min(${r.map((i) => te(i)).join(",")})`; } }; } -const OG = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u"; +const NG = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u"; let tT = !0; function fr() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; - if (!OG) + if (!NG) return Object.assign.apply(Object, [{}].concat(t)); tT = !1; const n = {}; @@ -5326,27 +5367,27 @@ function fr() { }); }), tT = !0, n; } -const $F = {}; -function jse() { +const VF = {}; +function rle() { } -const Use = (e) => { - let t, r = e, n = jse; - return OG && typeof Proxy < "u" && (t = /* @__PURE__ */ new Set(), r = new Proxy(e, { +const nle = (e) => { + let t, r = e, n = rle; + return NG && typeof Proxy < "u" && (t = /* @__PURE__ */ new Set(), r = new Proxy(e, { get(i, o) { return tT && t.add(o), i[o]; } }), n = (i, o) => { var a; - $F[i] = { + VF[i] = { global: Array.from(t), - component: Object.assign(Object.assign({}, (a = $F[i]) === null || a === void 0 ? void 0 : a.component), o) + component: Object.assign(Object.assign({}, (a = VF[i]) === null || a === void 0 ? void 0 : a.component), o) }; }), { token: r, keys: t, flush: n }; -}, LG = (e, t) => { +}, kG = (e, t) => { const [r, n] = ai(); return KP({ theme: r, @@ -5358,16 +5399,16 @@ const Use = (e) => { name: "antd" } }, () => [{ - [`.${e}`]: Object.assign(Object.assign({}, kb()), { + [`.${e}`]: Object.assign(Object.assign({}, Bb()), { [`.${e} .${e}-icon`]: { display: "block" } }) }]); -}, FG = (e, t, r) => { +}, $G = (e, t, r) => { var n; return typeof r == "function" ? r(fr(t, (n = t[e]) !== null && n !== void 0 ? n : {})) : r ?? {}; -}, NG = (e, t, r, n) => { +}, BG = (e, t, r, n) => { const i = Object.assign({}, t[e]); if (n != null && n.deprecatedTokens) { const { @@ -5383,8 +5424,8 @@ const Use = (e) => { return Object.keys(o).forEach((a) => { o[a] === t[a] && delete o[a]; }), o; -}, BF = (e, t) => `${[t, e.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2")].filter(Boolean).join("-")}`; -function zD(e, t, r) { +}, HF = (e, t) => `${[t, e.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2")].filter(Boolean).join("-")}`; +function z2(e, t, r) { let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; const i = Array.isArray(e) ? e : [e, e], [o] = i, a = i.join("-"); return function(s) { @@ -5393,15 +5434,15 @@ function zD(e, t, r) { getPrefixCls: p, iconPrefixCls: g, csp: v - } = Jt(gt), m = p(), y = f ? "css" : "js", C = Hse(() => { + } = Jt(gt), m = p(), y = f ? "css" : "js", C = Qse(() => { const R = /* @__PURE__ */ new Set(); return f && Object.keys(n.unitless || {}).forEach((P) => { - R.add(iC(P, f.prefix)), R.add(iC(P, BF(o, f.prefix))); - }), Xoe(y, R); + R.add(sC(P, f.prefix)), R.add(sC(P, HF(o, f.prefix))); + }), sae(y, R); }, [y, o, f == null ? void 0 : f.prefix]), { max: b, min: w - } = Wse(y), x = { + } = tle(y), x = { theme: c, token: h, hashId: d, @@ -5418,8 +5459,8 @@ function zD(e, t, r) { path: ["Shared", m] }), () => [{ // Link - "&": zse(h) - }]), LG(g, v), [KP(Object.assign(Object.assign({}, x), { + "&": Jse(h) + }]), kG(g, v), [KP(Object.assign(Object.assign({}, x), { path: [a, s, g] }), () => { if (n.injectStyle === !1) @@ -5427,11 +5468,11 @@ function zD(e, t, r) { const { token: R, flush: P - } = Use(h), T = FG(o, u, r), _ = `.${s}`, D = NG(o, u, T, { + } = nle(h), T = $G(o, u, r), _ = `.${s}`, D = BG(o, u, T, { deprecatedTokens: n.deprecatedTokens }); f && Object.keys(T).forEach((O) => { - T[O] = `var(${iC(O, BF(o, f.prefix))})`; + T[O] = `var(${sC(O, HF(o, f.prefix))})`; }); const A = fr(R, { componentCls: _, @@ -5449,12 +5490,12 @@ function zD(e, t, r) { rootPrefixCls: m, iconPrefixCls: g }); - return P(o, D), [n.resetStyle === !1 ? null : Gse(A, s, l, n.resetFont), M]; + return P(o, D), [n.resetStyle === !1 ? null : ele(A, s, l, n.resetFont), M]; }), d]; }; } -const ym = (e, t, r, n) => { - const i = zD(e, t, r, Object.assign({ +const Sm = (e, t, r, n) => { + const i = z2(e, t, r, Object.assign({ resetStyle: !1, // Sub Style should default after root one order: -998 @@ -5466,7 +5507,7 @@ const ym = (e, t, r, n) => { return i(s, l), null; }; return process.env.NODE_ENV !== "production" && (o.displayName = `SubStyle_${Array.isArray(e) ? e.join(".") : e}`), o; -}, Kse = (e, t, r) => { +}, ile = (e, t, r) => { const { unitless: n, injectStyle: i = !0, @@ -5477,16 +5518,16 @@ const ym = (e, t, r, n) => { cssVar: u } = l; const [, d] = ai(); - return qae({ + return ase({ path: [e], prefix: u.prefix, key: u == null ? void 0 : u.key, unitless: n, - ignore: IG, + ignore: LG, token: d, scope: c }, () => { - const h = FG(e, d, t), f = NG(e, d, h, { + const h = $G(e, d, t), f = BG(e, d, h, { deprecatedTokens: r == null ? void 0 : r.deprecatedTokens }); return Object.keys(h).forEach((p) => { @@ -5502,12 +5543,12 @@ const ym = (e, t, r, n) => { component: e }), u) : u, c == null ? void 0 : c.key]; }; -}, Ur = (e, t, r, n) => { +}, Kr = (e, t, r, n) => { const i = Array.isArray(e) ? e[0] : e; function o(d) { return `${i}${d.slice(0, 1).toUpperCase()}${d.slice(1)}`; } - const a = (n == null ? void 0 : n.unitless) || {}, s = Object.assign(Object.assign({}, DG), { + const a = (n == null ? void 0 : n.unitless) || {}, s = Object.assign(Object.assign({}, OG), { [o("zIndexPopup")]: !0 }); Object.keys(a).forEach((d) => { @@ -5516,15 +5557,15 @@ const ym = (e, t, r, n) => { const l = Object.assign(Object.assign({}, n), { unitless: s, prefixToken: o - }), c = zD(e, t, r, l), u = Kse(i, r, l); + }), c = z2(e, t, r, l), u = ile(i, r, l); return function(d) { let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d; const [, f] = c(d, h), [p, g] = u(h); return [p, f, g]; }; }; -function kG(e, t) { - return _v.reduce((r, n) => { +function VG(e, t) { + return Dv.reduce((r, n) => { const i = e[`${n}1`], o = e[`${n}3`], a = e[`${n}6`], s = e[`${n}7`]; return Object.assign(Object.assign({}, r), t(n, { lightColor: i, @@ -5534,15 +5575,15 @@ function kG(e, t) { })); }, {}); } -const Yse = Object.assign({}, S), { - useId: VF -} = Yse, qse = () => "", Xse = typeof VF > "u" ? qse : VF; -function Zse(e, t, r) { +const ole = Object.assign({}, S), { + useId: zF +} = ole, ale = () => "", sle = typeof zF > "u" ? ale : zF; +function lle(e, t, r) { var n, i; const o = Rr("ConfigProvider"), a = e || {}, s = a.inherit === !1 || !t ? Object.assign(Object.assign({}, eT), { hashed: (n = t == null ? void 0 : t.hashed) !== null && n !== void 0 ? n : eT.hashed, cssVar: t == null ? void 0 : t.cssVar - }) : t, l = Xse(); + }) : t, l = sle(); if (process.env.NODE_ENV !== "production") { const c = a.cssVar || s.cssVar, u = !!(typeof a.cssVar == "object" && (!((i = a.cssVar) === null || i === void 0) && i.key) || l); process.env.NODE_ENV !== "production" && o(!c || u, "breaking", "Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider."); @@ -5570,14 +5611,14 @@ function Zse(e, t, r) { return !rs(d, f, !0); })); } -var Qse = ["children"], $G = /* @__PURE__ */ S.createContext({}); -function Jse(e) { - var t = e.children, r = Nt(e, Qse); - return /* @__PURE__ */ S.createElement($G.Provider, { +var cle = ["children"], HG = /* @__PURE__ */ S.createContext({}); +function ule(e) { + var t = e.children, r = Nt(e, cle); + return /* @__PURE__ */ S.createElement(HG.Provider, { value: r }, t); } -var ele = /* @__PURE__ */ function(e) { +var dle = /* @__PURE__ */ function(e) { Qs(r, e); var t = Js(r); function r() { @@ -5590,48 +5631,48 @@ var ele = /* @__PURE__ */ function(e) { } }]), r; }(S.Component); -function tle(e) { +function hle(e) { var t = S.useReducer(function(s) { return s + 1; - }, 0), r = ce(t, 2), n = r[1], i = S.useRef(e), o = Kr(function() { + }, 0), r = ce(t, 2), n = r[1], i = S.useRef(e), o = Yr(function() { return i.current; - }), a = Kr(function(s) { + }), a = Yr(function(s) { i.current = typeof s == "function" ? s(i.current) : s, n(); }); return [o, a]; } -var hc = "none", Py = "appear", Ty = "enter", _y = "leave", HF = "none", Wa = "prepare", Qh = "start", Jh = "active", GD = "end", BG = "prepared"; -function zF(e, t) { +var hc = "none", My = "appear", Dy = "enter", Iy = "leave", GF = "none", Wa = "prepare", Qh = "start", Jh = "active", G2 = "end", zG = "prepared"; +function WF(e, t) { var r = {}; return r[e.toLowerCase()] = t.toLowerCase(), r["Webkit".concat(e)] = "webkit".concat(t), r["Moz".concat(e)] = "moz".concat(t), r["ms".concat(e)] = "MS".concat(t), r["O".concat(e)] = "o".concat(t.toLowerCase()), r; } -function rle(e, t) { +function fle(e, t) { var r = { - animationend: zF("Animation", "AnimationEnd"), - transitionend: zF("Transition", "TransitionEnd") + animationend: WF("Animation", "AnimationEnd"), + transitionend: WF("Transition", "TransitionEnd") }; return e && ("AnimationEvent" in t || delete r.animationend.animation, "TransitionEvent" in t || delete r.transitionend.transition), r; } -var nle = rle(ii(), typeof window < "u" ? window : {}), VG = {}; +var ple = fle(ii(), typeof window < "u" ? window : {}), GG = {}; if (ii()) { - var ile = document.createElement("div"); - VG = ile.style; -} -var My = {}; -function HG(e) { - if (My[e]) - return My[e]; - var t = nle[e]; + var gle = document.createElement("div"); + GG = gle.style; +} +var Ay = {}; +function WG(e) { + if (Ay[e]) + return Ay[e]; + var t = ple[e]; if (t) for (var r = Object.keys(t), n = r.length, i = 0; i < n; i += 1) { var o = r[i]; - if (Object.prototype.hasOwnProperty.call(t, o) && o in VG) - return My[e] = t[o], My[e]; + if (Object.prototype.hasOwnProperty.call(t, o) && o in GG) + return Ay[e] = t[o], Ay[e]; } return ""; } -var zG = HG("animationend"), GG = HG("transitionend"), WG = !!(zG && GG), GF = zG || "animationend", WF = GG || "transitionend"; -function jF(e, t) { +var jG = WG("animationend"), UG = WG("transitionend"), KG = !!(jG && UG), jF = jG || "animationend", UF = UG || "transitionend"; +function KF(e, t) { if (!e) return null; if (pt(e) === "object") { var r = t.replace(/-\w/g, function(n) { @@ -5641,13 +5682,13 @@ function jF(e, t) { } return "".concat(e, "-").concat(t); } -const ole = function(e) { +const vle = function(e) { var t = ve(); function r(i) { - i && (i.removeEventListener(WF, e), i.removeEventListener(GF, e)); + i && (i.removeEventListener(UF, e), i.removeEventListener(jF, e)); } function n(i) { - t.current && t.current !== i && r(t.current), i && i !== t.current && (i.addEventListener(WF, e), i.addEventListener(GF, e), t.current = i); + t.current && t.current !== i && r(t.current), i && i !== t.current && (i.addEventListener(UF, e), i.addEventListener(jF, e), t.current = i); } return S.useEffect(function() { return function() { @@ -5655,16 +5696,16 @@ const ole = function(e) { }; }, []), [n, r]; }; -var jG = ii() ? Ns : Bt; -const ale = function() { +var YG = ii() ? Ns : Bt; +const mle = function() { var e = S.useRef(null); function t() { - Nr.cancel(e.current); + kr.cancel(e.current); } function r(n) { var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2; t(); - var o = Nr(function() { + var o = kr(function() { i <= 1 ? n({ isCanceled: function() { return o !== e.current; @@ -5679,20 +5720,20 @@ const ale = function() { }; }, []), [r, t]; }; -var sle = [Wa, Qh, Jh, GD], lle = [Wa, BG], UG = !1, cle = !0; -function KG(e) { - return e === Jh || e === GD; +var yle = [Wa, Qh, Jh, G2], Cle = [Wa, zG], qG = !1, Sle = !0; +function XG(e) { + return e === Jh || e === G2; } -const ule = function(e, t, r) { - var n = Mf(HF), i = ce(n, 2), o = i[0], a = i[1], s = ale(), l = ce(s, 2), c = l[0], u = l[1]; +const ble = function(e, t, r) { + var n = Mf(GF), i = ce(n, 2), o = i[0], a = i[1], s = mle(), l = ce(s, 2), c = l[0], u = l[1]; function d() { a(Wa, !0); } - var h = t ? lle : sle; - return jG(function() { - if (o !== HF && o !== GD) { + var h = t ? Cle : yle; + return YG(function() { + if (o !== GF && o !== G2) { var f = h.indexOf(o), p = h[f + 1], g = r(o); - g === UG ? a(p, !0) : p && c(function(v) { + g === qG ? a(p, !0) : p && c(function(v) { function m() { v.isCanceled() || a(p, !0); } @@ -5705,8 +5746,8 @@ const ule = function(e, t, r) { }; }, []), [d, o]; }; -function dle(e, t, r, n) { - var i = n.motionEnter, o = i === void 0 ? !0 : i, a = n.motionAppear, s = a === void 0 ? !0 : a, l = n.motionLeave, c = l === void 0 ? !0 : l, u = n.motionDeadline, d = n.motionLeaveImmediately, h = n.onAppearPrepare, f = n.onEnterPrepare, p = n.onLeavePrepare, g = n.onAppearStart, v = n.onEnterStart, m = n.onLeaveStart, y = n.onAppearActive, C = n.onEnterActive, b = n.onLeaveActive, w = n.onAppearEnd, x = n.onEnterEnd, E = n.onLeaveEnd, R = n.onVisibleChanged, P = Mf(), T = ce(P, 2), _ = T[0], D = T[1], A = tle(hc), M = ce(A, 2), O = M[0], L = M[1], N = Mf(null), F = ce(N, 2), $ = F[0], I = F[1], V = O(), H = ve(!1), B = ve(null); +function wle(e, t, r, n) { + var i = n.motionEnter, o = i === void 0 ? !0 : i, a = n.motionAppear, s = a === void 0 ? !0 : a, l = n.motionLeave, c = l === void 0 ? !0 : l, u = n.motionDeadline, d = n.motionLeaveImmediately, h = n.onAppearPrepare, f = n.onEnterPrepare, p = n.onLeavePrepare, g = n.onAppearStart, v = n.onEnterStart, m = n.onLeaveStart, y = n.onAppearActive, C = n.onEnterActive, b = n.onLeaveActive, w = n.onAppearEnd, x = n.onEnterEnd, E = n.onLeaveEnd, R = n.onVisibleChanged, P = Mf(), T = ce(P, 2), _ = T[0], D = T[1], A = hle(hc), M = ce(A, 2), O = M[0], L = M[1], N = Mf(null), F = ce(N, 2), $ = F[0], I = F[1], V = O(), H = ve(!1), B = ve(null); function W() { return r(); } @@ -5714,32 +5755,32 @@ function dle(e, t, r, n) { function X() { L(hc), I(null, !0); } - var q = Kr(function(de) { + var q = Yr(function(de) { var pe = O(); if (pe !== hc) { var _e = W(); if (!(de && !de.deadline && de.target !== _e)) { var be = j.current, Me; - pe === Py && be ? Me = w == null ? void 0 : w(_e, de) : pe === Ty && be ? Me = x == null ? void 0 : x(_e, de) : pe === _y && be && (Me = E == null ? void 0 : E(_e, de)), be && Me !== !1 && X(); + pe === My && be ? Me = w == null ? void 0 : w(_e, de) : pe === Dy && be ? Me = x == null ? void 0 : x(_e, de) : pe === Iy && be && (Me = E == null ? void 0 : E(_e, de)), be && Me !== !1 && X(); } } - }), J = ole(q), te = ce(J, 1), Q = te[0], Y = function(pe) { + }), J = vle(q), re = ce(J, 1), Q = re[0], Y = function(pe) { switch (pe) { - case Py: + case My: return U(U(U({}, Wa, h), Qh, g), Jh, y); - case Ty: + case Dy: return U(U(U({}, Wa, f), Qh, v), Jh, C); - case _y: + case Iy: return U(U(U({}, Wa, p), Qh, m), Jh, b); default: return {}; } }, K = S.useMemo(function() { return Y(V); - }, [V]), ae = ule(V, !e, function(de) { + }, [V]), ae = ble(V, !e, function(de) { if (de === Wa) { var pe = K[Wa]; - return pe ? pe(W()) : UG; + return pe ? pe(W()) : qG; } if (le in K) { var _e; @@ -5749,21 +5790,21 @@ function dle(e, t, r, n) { q({ deadline: !0 }); - }, u))), le === BG && X(), cle; - }), G = ce(ae, 2), re = G[0], le = G[1], ue = KG(le); - j.current = ue, jG(function() { + }, u))), le === zG && X(), Sle; + }), G = ce(ae, 2), ne = G[0], le = G[1], ue = XG(le); + j.current = ue, YG(function() { D(t); var de = H.current; H.current = !0; var pe; - !de && t && s && (pe = Py), de && t && o && (pe = Ty), (de && !t && c || !de && d && !t && c) && (pe = _y); + !de && t && s && (pe = My), de && t && o && (pe = Dy), (de && !t && c || !de && d && !t && c) && (pe = Iy); var _e = Y(pe); - pe && (e || _e[Wa]) ? (L(pe), re()) : L(hc); + pe && (e || _e[Wa]) ? (L(pe), ne()) : L(hc); }, [t]), Bt(function() { // Cancel appear - (V === Py && !s || // Cancel enter - V === Ty && !o || // Cancel leave - V === _y && !c) && L(hc); + (V === My && !s || // Cancel enter + V === Dy && !o || // Cancel leave + V === Iy && !c) && L(hc); }, [s, o, c]), Bt(function() { return function() { H.current = !1, clearTimeout(B.current); @@ -5778,25 +5819,25 @@ function dle(e, t, r, n) { transition: "none" }, fe)), [V, le, fe, _ ?? t]; } -function hle(e) { +function xle(e) { var t = e; pt(e) === "object" && (t = e.transitionSupport); function r(i, o) { return !!(i.motionName && t && o !== !1); } var n = /* @__PURE__ */ S.forwardRef(function(i, o) { - var a = i.visible, s = a === void 0 ? !0 : a, l = i.removeOnLeave, c = l === void 0 ? !0 : l, u = i.forceRender, d = i.children, h = i.motionName, f = i.leavedClassName, p = i.eventProps, g = S.useContext($G), v = g.motion, m = r(i, v), y = ve(), C = ve(); + var a = i.visible, s = a === void 0 ? !0 : a, l = i.removeOnLeave, c = l === void 0 ? !0 : l, u = i.forceRender, d = i.children, h = i.motionName, f = i.leavedClassName, p = i.eventProps, g = S.useContext(HG), v = g.motion, m = r(i, v), y = ve(), C = ve(); function b() { try { - return y.current instanceof HTMLElement ? y.current : Vg(C.current); + return y.current instanceof HTMLElement ? y.current : zg(C.current); } catch { return null; } } - var w = dle(m, s, b, i), x = ce(w, 4), E = x[0], R = x[1], P = x[2], T = x[3], _ = S.useRef(T); + var w = wle(m, s, b, i), x = ce(w, 4), E = x[0], R = x[1], P = x[2], T = x[3], _ = S.useRef(T); T && (_.current = !0); var D = S.useCallback(function($) { - y.current = $, Cv(o, $); + y.current = $, bv(o, $); }, [o]), A, M = Z(Z({}, p), {}, { visible: s }); @@ -5812,10 +5853,10 @@ function hle(e) { }), D) : A = null; else { var O; - R === Wa ? O = "prepare" : KG(R) ? O = "active" : R === Qh && (O = "start"); - var L = jF(h, "".concat(E, "-").concat(O)); + R === Wa ? O = "prepare" : XG(R) ? O = "active" : R === Qh && (O = "start"); + var L = KF(h, "".concat(E, "-").concat(O)); A = d(Z(Z({}, M), {}, { - className: ie(jF(h, E), U(U({}, L, L && O), h, typeof h == "string")), + className: ie(KF(h, E), U(U({}, L, L && O), h, typeof h == "string")), style: P }), D); } @@ -5825,15 +5866,15 @@ function hle(e) { ref: D })); } - return /* @__PURE__ */ S.createElement(ele, { + return /* @__PURE__ */ S.createElement(dle, { ref: C }, A); }); return n.displayName = "CSSMotion", n; } -const us = hle(WG); +const us = xle(KG); var rT = "add", nT = "keep", iT = "remove", O1 = "removed"; -function fle(e) { +function Ele(e) { var t; return e && pt(e) === "object" && "key" in e ? t = e : t = { key: e @@ -5843,9 +5884,9 @@ function fle(e) { } function oT() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; - return e.map(fle); + return e.map(Ele); } -function ple() { +function Rle() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = [], n = 0, i = t.length, o = oT(e), a = oT(t); o.forEach(function(c) { for (var u = !1, d = n; d < i; d += 1) { @@ -5886,8 +5927,8 @@ function ple() { }); }), r; } -var gle = ["component", "children", "onVisibleChanged", "onAllRemoved"], vle = ["status"], mle = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"]; -function yle(e) { +var Ple = ["component", "children", "onVisibleChanged", "onAllRemoved"], Tle = ["status"], _le = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"]; +function Mle(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : us, r = /* @__PURE__ */ function(n) { Qs(o, n); var i = Js(o); @@ -5915,11 +5956,11 @@ function yle(e) { return Zn(o, [{ key: "render", value: function() { - var s = this, l = this.state.keyEntities, c = this.props, u = c.component, d = c.children, h = c.onVisibleChanged, f = c.onAllRemoved, p = Nt(c, gle), g = u || S.Fragment, v = {}; - return mle.forEach(function(m) { + var s = this, l = this.state.keyEntities, c = this.props, u = c.component, d = c.children, h = c.onVisibleChanged, f = c.onAllRemoved, p = Nt(c, Ple), g = u || S.Fragment, v = {}; + return _le.forEach(function(m) { v[m] = p[m], delete p[m]; }), delete p.keys, /* @__PURE__ */ S.createElement(g, p, l.map(function(m, y) { - var C = m.status, b = Nt(m, vle), w = C === rT || C === nT; + var C = m.status, b = Nt(m, Tle), w = C === rT || C === nT; return /* @__PURE__ */ S.createElement(t, Te({}, v, { key: b.key, visible: w, @@ -5942,7 +5983,7 @@ function yle(e) { }], [{ key: "getDerivedStateFromProps", value: function(s, l) { - var c = s.keys, u = l.keyEntities, d = oT(c), h = ple(u, d); + var c = s.keys, u = l.keyEntities, d = oT(c), h = Rle(u, d); return { keyEntities: h.filter(function(f) { var p = u.find(function(g) { @@ -5959,26 +6000,26 @@ function yle(e) { component: "div" }), r; } -const Cle = yle(WG); -function Sle(e) { +const Dle = Mle(KG); +function Ile(e) { const { children: t } = e, [, r] = ai(), { motion: n } = r, i = S.useRef(!1); - return i.current = i.current || n === !1, i.current ? /* @__PURE__ */ S.createElement(Jse, { + return i.current = i.current || n === !1, i.current ? /* @__PURE__ */ S.createElement(ule, { motion: n }, t) : t; } -const YG = /* @__PURE__ */ S.memo((e) => { +const ZG = /* @__PURE__ */ S.memo((e) => { let { dropdownMatchSelectWidth: t } = e; return Rr("ConfigProvider").deprecated(t === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), null; }); -process.env.NODE_ENV !== "production" && (YG.displayName = "PropWarning"); -const ble = process.env.NODE_ENV !== "production" ? YG : () => null; -var wle = function(e, t) { +process.env.NODE_ENV !== "production" && (ZG.displayName = "PropWarning"); +const Ale = process.env.NODE_ENV !== "production" ? ZG : () => null; +var Ole = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) @@ -5986,37 +6027,37 @@ var wle = function(e, t) { return r; }; let aT = !1; -const qG = process.env.NODE_ENV !== "production" ? (e) => { +const QG = process.env.NODE_ENV !== "production" ? (e) => { process.env.NODE_ENV !== "production" && Zc(!aT, e, "Static function can not consume context like dynamic theme. Please use 'App' component instead."); } : ( /* istanbul ignore next */ null -), xle = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"], XG = "ant"; -let YC, ZG, QG, JG; -function hC() { - return YC || XG; +), Lle = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"], JG = "ant"; +let ZC, eW, tW, rW; +function gC() { + return ZC || JG; } -function Ele() { - return ZG || VD; +function Fle() { + return eW || V2; } -function Rle(e) { +function Nle(e) { return Object.keys(e).some((t) => t.endsWith("Color")); } -const Ple = (e) => { +const kle = (e) => { const { prefixCls: t, iconPrefixCls: r, theme: n, holderRender: i } = e; - t !== void 0 && (YC = t), r !== void 0 && (ZG = r), "holderRender" in e && (JG = i), n && (Rle(n) ? (process.env.NODE_ENV !== "production" && Zc(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), Ose(hC(), n)) : QG = n); -}, WD = () => ({ - getPrefixCls: (e, t) => t || (e ? `${hC()}-${e}` : hC()), - getIconPrefixCls: Ele, - getRootPrefixCls: () => YC || hC(), - getTheme: () => QG, - holderRender: JG -}), Tle = (e) => { + t !== void 0 && (ZC = t), r !== void 0 && (eW = r), "holderRender" in e && (rW = i), n && (Nle(n) ? (process.env.NODE_ENV !== "production" && Zc(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), Wse(gC(), n)) : tW = n); +}, W2 = () => ({ + getPrefixCls: (e, t) => t || (e ? `${gC()}-${e}` : gC()), + getIconPrefixCls: Fle, + getRootPrefixCls: () => ZC || gC(), + getTheme: () => tW, + holderRender: rW +}), $le = (e) => { const { children: t, csp: r, @@ -6062,13 +6103,13 @@ const Ple = (e) => { breadcrumb: X, menu: q, pagination: J, - input: te, + input: re, textArea: Q, empty: Y, badge: K, radio: ae, rate: G, - switch: re, + switch: ne, transfer: le, avatar: ue, message: he, @@ -6091,7 +6132,7 @@ const Ple = (e) => { tour: st, floatButtonGroup: Xe, variant: Ue, - inputNumber: Ae, + inputNumber: Oe, treeSelect: Ke } = e, ht = S.useCallback((We, et) => { const { @@ -6101,9 +6142,9 @@ const Ple = (e) => { return et; const tt = rt || v.getPrefixCls(""); return We ? `${tt}-${We}` : tt; - }, [v.getPrefixCls, e.prefixCls]), Et = m || v.iconPrefixCls || VD, hr = r || v.csp; - LG(Et, hr); - const At = Zse(y, v.theme, { + }, [v.getPrefixCls, e.prefixCls]), Rt = m || v.iconPrefixCls || V2, hr = r || v.csp; + kG(Rt, hr); + const At = lle(y, v.theme, { prefixCls: ht("") }); process.env.NODE_ENV !== "production" && (aT = aT || !!At); @@ -6119,7 +6160,7 @@ const Ple = (e) => { popupMatchSelectWidth: f ?? h, popupOverflow: p, getPrefixCls: ht, - iconPrefixCls: Et, + iconPrefixCls: Rt, theme: At, segmented: b, statistic: w, @@ -6136,7 +6177,7 @@ const Ple = (e) => { skeleton: L, steps: N, image: F, - input: te, + input: re, textArea: Q, layout: $, list: I, @@ -6152,7 +6193,7 @@ const Ple = (e) => { badge: K, radio: ae, rate: G, - switch: re, + switch: ne, transfer: le, avatar: ue, message: he, @@ -6175,14 +6216,14 @@ const Ple = (e) => { tour: st, floatButtonGroup: Xe, variant: Ue, - inputNumber: Ae, + inputNumber: Oe, treeSelect: Ke }; process.env.NODE_ENV !== "production" && Rr("ConfigProvider")(!("autoInsertSpaceInButton" in e), "deprecated", "`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead."); const Dt = Object.assign({}, v); Object.keys(Lt).forEach((We) => { Lt[We] !== void 0 && (Dt[We] = Lt[We]); - }), xle.forEach((We) => { + }), Lle.forEach((We) => { const et = e[We]; et && (Dt[We] = et); }), typeof n < "u" && (Dt.button = Object.assign({ @@ -6190,41 +6231,41 @@ const Ple = (e) => { }, Dt.button)); const Mt = $d(() => Dt, Dt, (We, et) => { const rt = Object.keys(We), tt = Object.keys(et); - return rt.length !== tt.length || rt.some((yt) => We[yt] !== et[yt]); - }), mt = S.useMemo(() => ({ - prefixCls: Et, + return rt.length !== tt.length || rt.some((Ct) => We[Ct] !== et[Ct]); + }), yt = S.useMemo(() => ({ + prefixCls: Rt, csp: hr - }), [Et, hr]); - let Qe = /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(ble, { + }), [Rt, hr]); + let Qe = /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(Ale, { dropdownMatchSelectWidth: h }), t); - const Rt = S.useMemo(() => { + const Pt = S.useMemo(() => { var We, et, rt, tt; return Zh(((We = ns.Form) === null || We === void 0 ? void 0 : We.defaultValidateMessages) || {}, ((rt = (et = Mt.locale) === null || et === void 0 ? void 0 : et.Form) === null || rt === void 0 ? void 0 : rt.defaultValidateMessages) || {}, ((tt = Mt.form) === null || tt === void 0 ? void 0 : tt.validateMessages) || {}, (a == null ? void 0 : a.validateMessages) || {}); }, [Mt, a == null ? void 0 : a.validateMessages]); - Object.keys(Rt).length > 0 && (Qe = /* @__PURE__ */ S.createElement(ese.Provider, { - value: Rt - }, Qe)), s && (Qe = /* @__PURE__ */ S.createElement(bG, { + Object.keys(Pt).length > 0 && (Qe = /* @__PURE__ */ S.createElement(dse.Provider, { + value: Pt + }, Qe)), s && (Qe = /* @__PURE__ */ S.createElement(EG, { locale: s, - _ANT_MARK__: SG - }, Qe)), (Et || hr) && (Qe = /* @__PURE__ */ S.createElement($D.Provider, { - value: mt - }, Qe)), l && (Qe = /* @__PURE__ */ S.createElement(Lse, { + _ANT_MARK__: xG + }, Qe)), (Rt || hr) && (Qe = /* @__PURE__ */ S.createElement($2.Provider, { + value: yt + }, Qe)), l && (Qe = /* @__PURE__ */ S.createElement(jse, { size: l - }, Qe)), Qe = /* @__PURE__ */ S.createElement(Sle, null, Qe); - const jt = S.useMemo(() => { + }, Qe)), Qe = /* @__PURE__ */ S.createElement(Ile, null, Qe); + const Ut = S.useMemo(() => { const We = At || {}, { algorithm: et, token: rt, components: tt, - cssVar: yt - } = We, Gt = wle(We, ["algorithm", "token", "components", "cssVar"]), Mr = et && (!Array.isArray(et) || et.length > 0) ? VP(et) : PG, se = {}; + cssVar: Ct + } = We, Gt = Ole(We, ["algorithm", "token", "components", "cssVar"]), Mr = et && (!Array.isArray(et) || et.length > 0) ? VP(et) : MG, se = {}; Object.entries(tt || {}).forEach((me) => { let [He, ct] = me; const it = Object.assign({}, ct); "algorithm" in it && (it.algorithm === !0 ? it.theme = Mr : (Array.isArray(it.algorithm) || typeof it.algorithm == "function") && (it.theme = VP(it.algorithm)), delete it.algorithm), se[He] = it; }); - const ge = Object.assign(Object.assign({}, Tv), rt); + const ge = Object.assign(Object.assign({}, Mv), rt); return Object.assign(Object.assign({}, Gt), { theme: Mr, token: ge, @@ -6232,56 +6273,56 @@ const Ple = (e) => { override: Object.assign({ override: ge }, se), - cssVar: yt + cssVar: Ct }); }, [At]); - return y && (Qe = /* @__PURE__ */ S.createElement(TG.Provider, { - value: jt - }, Qe)), Mt.warning && (Qe = /* @__PURE__ */ S.createElement(vG.Provider, { + return y && (Qe = /* @__PURE__ */ S.createElement(DG.Provider, { + value: Ut + }, Qe)), Mt.warning && (Qe = /* @__PURE__ */ S.createElement(CG.Provider, { value: Mt.warning - }, Qe)), C !== void 0 && (Qe = /* @__PURE__ */ S.createElement(_G, { + }, Qe)), C !== void 0 && (Qe = /* @__PURE__ */ S.createElement(IG, { disabled: C }, Qe)), /* @__PURE__ */ S.createElement(gt.Provider, { value: Mt }, Qe); }, ds = (e) => { - const t = S.useContext(gt), r = S.useContext(BD); - return /* @__PURE__ */ S.createElement(Tle, Object.assign({ + const t = S.useContext(gt), r = S.useContext(B2); + return /* @__PURE__ */ S.createElement($le, Object.assign({ parentContext: t, legacyLocale: r }, e)); }; ds.ConfigContext = gt; ds.SizeContext = _f; -ds.config = Ple; -ds.useConfig = Fse; +ds.config = kle; +ds.useConfig = Use; Object.defineProperty(ds, "SizeContext", { get: () => (process.env.NODE_ENV !== "production" && Zc(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), _f) }); process.env.NODE_ENV !== "production" && (ds.displayName = "ConfigProvider"); -var _le = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" }; -function eW(e) { +var Ble = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" }; +function nW(e) { var t; return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e); } -function Mle(e) { - return eW(e) instanceof ShadowRoot; +function Vle(e) { + return nW(e) instanceof ShadowRoot; } -function qC(e) { - return Mle(e) ? eW(e) : null; +function QC(e) { + return Vle(e) ? nW(e) : null; } -function Dle(e) { +function Hle(e) { return e.replace(/-(.)/g, function(t, r) { return r.toUpperCase(); }); } -function Ile(e, t) { +function zle(e, t) { Tt(e, "[@ant-design/icons] ".concat(t)); } -function UF(e) { +function YF(e) { return pt(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (pt(e.icon) === "object" || typeof e.icon == "function"); } -function KF() { +function qF() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return Object.keys(e).reduce(function(t, r) { var n = e[r]; @@ -6290,7 +6331,7 @@ function KF() { t.className = n, delete t.class; break; default: - delete t[r], t[Dle(r)] = n; + delete t[r], t[Hle(r)] = n; } return t; }, {}); @@ -6298,21 +6339,21 @@ function KF() { function sT(e, t, r) { return r ? /* @__PURE__ */ k.createElement(e.tag, Z(Z({ key: t - }, KF(e.attrs)), r), (e.children || []).map(function(n, i) { + }, qF(e.attrs)), r), (e.children || []).map(function(n, i) { return sT(n, "".concat(t, "-").concat(e.tag, "-").concat(i)); })) : /* @__PURE__ */ k.createElement(e.tag, Z({ key: t - }, KF(e.attrs)), (e.children || []).map(function(n, i) { + }, qF(e.attrs)), (e.children || []).map(function(n, i) { return sT(n, "".concat(t, "-").concat(e.tag, "-").concat(i)); })); } -function tW(e) { - return Pv(e)[0]; +function iW(e) { + return _v(e)[0]; } -function rW(e) { +function oW(e) { return e ? Array.isArray(e) ? e : [e] : []; } -var Ale = ` +var Gle = ` .anticon { display: inline-flex; align-items: center; @@ -6367,34 +6408,34 @@ var Ale = ` transform: rotate(360deg); } } -`, Ole = function(t) { - var r = Jt($D), n = r.csp, i = r.prefixCls, o = Ale; +`, Wle = function(t) { + var r = Jt($2), n = r.csp, i = r.prefixCls, o = Gle; i && (o = o.replace(/anticon/g, i)), Bt(function() { - var a = t.current, s = qC(a); - Tl(o, "@ant-design-icons", { + var a = t.current, s = QC(a); + _l(o, "@ant-design-icons", { prepend: !0, csp: n, attachTo: s }); }, []); -}, Lle = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], zg = { +}, jle = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], Wg = { primaryColor: "#333", secondaryColor: "#E6E6E6", calculated: !1 }; -function Fle(e) { +function Ule(e) { var t = e.primaryColor, r = e.secondaryColor; - zg.primaryColor = t, zg.secondaryColor = r || tW(t), zg.calculated = !!r; + Wg.primaryColor = t, Wg.secondaryColor = r || iW(t), Wg.calculated = !!r; } -function Nle() { - return Z({}, zg); +function Kle() { + return Z({}, Wg); } -var Zf = function(t) { - var r = t.icon, n = t.className, i = t.onClick, o = t.style, a = t.primaryColor, s = t.secondaryColor, l = Nt(t, Lle), c = S.useRef(), u = zg; +var Jf = function(t) { + var r = t.icon, n = t.className, i = t.onClick, o = t.style, a = t.primaryColor, s = t.secondaryColor, l = Nt(t, jle), c = S.useRef(), u = Wg; if (a && (u = { primaryColor: a, - secondaryColor: s || tW(a) - }), Ole(c), Ile(UF(r), "icon should be icon definiton, but got ".concat(r)), !UF(r)) + secondaryColor: s || iW(a) + }), Wle(c), zle(YF(r), "icon should be icon definiton, but got ".concat(r)), !YF(r)) return null; var d = r; return d && typeof d.icon == "function" && (d = Z(Z({}, d), {}, { @@ -6412,29 +6453,29 @@ var Zf = function(t) { ref: c })); }; -Zf.displayName = "IconReact"; -Zf.getTwoToneColors = Nle; -Zf.setTwoToneColors = Fle; -function nW(e) { - var t = rW(e), r = ce(t, 2), n = r[0], i = r[1]; - return Zf.setTwoToneColors({ +Jf.displayName = "IconReact"; +Jf.getTwoToneColors = Kle; +Jf.setTwoToneColors = Ule; +function aW(e) { + var t = oW(e), r = ce(t, 2), n = r[0], i = r[1]; + return Jf.setTwoToneColors({ primaryColor: n, secondaryColor: i }); } -function kle() { - var e = Zf.getTwoToneColors(); +function Yle() { + var e = Jf.getTwoToneColors(); return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor; } -var $le = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"]; -nW(JP.primary); +var qle = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"]; +aW(JP.primary); var wr = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r = e.className, n = e.icon, i = e.spin, o = e.rotate, a = e.tabIndex, s = e.onClick, l = e.twoToneColor, c = Nt(e, $le), u = S.useContext($D), d = u.prefixCls, h = d === void 0 ? "anticon" : d, f = u.rootClassName, p = ie(f, h, U(U({}, "".concat(h, "-").concat(n.name), !!n.name), "".concat(h, "-spin"), !!i || n.name === "loading"), r), g = a; + var r = e.className, n = e.icon, i = e.spin, o = e.rotate, a = e.tabIndex, s = e.onClick, l = e.twoToneColor, c = Nt(e, qle), u = S.useContext($2), d = u.prefixCls, h = d === void 0 ? "anticon" : d, f = u.rootClassName, p = ie(f, h, U(U({}, "".concat(h, "-").concat(n.name), !!n.name), "".concat(h, "-spin"), !!i || n.name === "loading"), r), g = a; g === void 0 && s && (g = -1); var v = o ? { msTransform: "rotate(".concat(o, "deg)"), transform: "rotate(".concat(o, "deg)") - } : void 0, m = rW(l), y = ce(m, 2), C = y[0], b = y[1]; + } : void 0, m = oW(l), y = ce(m, 2), C = y[0], b = y[1]; return /* @__PURE__ */ S.createElement("span", Te({ role: "img", "aria-label": n.name @@ -6443,7 +6484,7 @@ var wr = /* @__PURE__ */ S.forwardRef(function(e, t) { tabIndex: g, onClick: s, className: p - }), /* @__PURE__ */ S.createElement(Zf, { + }), /* @__PURE__ */ S.createElement(Jf, { icon: n, primaryColor: C, secondaryColor: b, @@ -6451,44 +6492,44 @@ var wr = /* @__PURE__ */ S.forwardRef(function(e, t) { })); }); wr.displayName = "AntdIcon"; -wr.getTwoToneColor = kle; -wr.setTwoToneColor = nW; -var Ble = function(t, r) { +wr.getTwoToneColor = Yle; +wr.setTwoToneColor = aW; +var Xle = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: _le + icon: Ble })); -}, $b = /* @__PURE__ */ S.forwardRef(Ble); -process.env.NODE_ENV !== "production" && ($b.displayName = "CheckCircleFilled"); -var Vle = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" }, Hle = function(t, r) { +}, Vb = /* @__PURE__ */ S.forwardRef(Xle); +process.env.NODE_ENV !== "production" && (Vb.displayName = "CheckCircleFilled"); +var Zle = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" }, Qle = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Vle + icon: Zle })); -}, Qf = /* @__PURE__ */ S.forwardRef(Hle); -process.env.NODE_ENV !== "production" && (Qf.displayName = "CloseCircleFilled"); -var zle = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, Gle = function(t, r) { +}, ep = /* @__PURE__ */ S.forwardRef(Qle); +process.env.NODE_ENV !== "production" && (ep.displayName = "CloseCircleFilled"); +var Jle = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, ece = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: zle + icon: Jle })); -}, ql = /* @__PURE__ */ S.forwardRef(Gle); -process.env.NODE_ENV !== "production" && (ql.displayName = "CloseOutlined"); -var Wle = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" }, jle = function(t, r) { +}, Xl = /* @__PURE__ */ S.forwardRef(ece); +process.env.NODE_ENV !== "production" && (Xl.displayName = "CloseOutlined"); +var tce = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" }, rce = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Wle + icon: tce })); -}, Cm = /* @__PURE__ */ S.forwardRef(jle); -process.env.NODE_ENV !== "production" && (Cm.displayName = "ExclamationCircleFilled"); -var Ule = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" }, Kle = function(t, r) { +}, bm = /* @__PURE__ */ S.forwardRef(rce); +process.env.NODE_ENV !== "production" && (bm.displayName = "ExclamationCircleFilled"); +var nce = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" }, ice = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Ule + icon: nce })); -}, jD = /* @__PURE__ */ S.forwardRef(Kle); -process.env.NODE_ENV !== "production" && (jD.displayName = "InfoCircleFilled"); -var Yle = `accept acceptCharset accessKey action allowFullScreen allowTransparency +}, j2 = /* @__PURE__ */ S.forwardRef(ice); +process.env.NODE_ENV !== "production" && (j2.displayName = "InfoCircleFilled"); +var oce = `accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -6499,14 +6540,14 @@ var Yle = `accept acceptCharset accessKey action allowFullScreen allowTransparen optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`, qle = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`, ace = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, Xle = "".concat(Yle, " ").concat(qle).split(/[\s\n]+/), Zle = "aria-", Qle = "data-"; -function YF(e, t) { + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, sce = "".concat(oce, " ").concat(ace).split(/[\s\n]+/), lce = "aria-", cce = "data-"; +function XF(e, t) { return e.indexOf(t) === 0; } function Ji(e) { @@ -6521,49 +6562,49 @@ function Ji(e) { var n = {}; return Object.keys(e).forEach(function(i) { // Aria - (r.aria && (i === "role" || YF(i, Zle)) || // Data - r.data && YF(i, Qle) || // Attr - r.attr && Xle.includes(i)) && (n[i] = e[i]); + (r.aria && (i === "role" || XF(i, lce)) || // Data + r.data && XF(i, cce) || // Attr + r.attr && sce.includes(i)) && (n[i] = e[i]); }), n; } -function iW(e) { +function sW(e) { return e && /* @__PURE__ */ k.isValidElement(e) && e.type === k.Fragment; } -const oW = (e, t, r) => /* @__PURE__ */ k.isValidElement(e) ? /* @__PURE__ */ k.cloneElement(e, typeof r == "function" ? r(e.props || {}) : r) : t; +const lW = (e, t, r) => /* @__PURE__ */ k.isValidElement(e) ? /* @__PURE__ */ k.cloneElement(e, typeof r == "function" ? r(e.props || {}) : r) : t; function eo(e, t) { - return oW(e, e, t); + return lW(e, e, t); } function lT(e) { return e != null && e === e.window; } -const Jle = (e) => { +const uce = (e) => { var t, r; if (typeof window > "u") return 0; let n = 0; return lT(e) ? n = e.pageYOffset : e instanceof Document ? n = e.documentElement.scrollTop : (e instanceof HTMLElement || e) && (n = e.scrollTop), e && !lT(e) && typeof n != "number" && (n = (r = ((t = e.ownerDocument) !== null && t !== void 0 ? t : e).documentElement) === null || r === void 0 ? void 0 : r.scrollTop), n; }; -function ece(e, t, r, n) { +function dce(e, t, r, n) { const i = r - t; return e /= n / 2, e < 1 ? i / 2 * e * e * e + t : i / 2 * ((e -= 2) * e * e + 2) + t; } -function tce(e) { +function hce(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; const { getContainer: r = () => window, callback: n, duration: i = 450 - } = t, o = r(), a = Jle(o), s = Date.now(), l = () => { - const u = Date.now() - s, d = ece(u > i ? i : u, a, e, i); - lT(o) ? o.scrollTo(window.pageXOffset, d) : o instanceof Document || o.constructor.name === "HTMLDocument" ? o.documentElement.scrollTop = d : o.scrollTop = d, u < i ? Nr(l) : typeof n == "function" && n(); + } = t, o = r(), a = uce(o), s = Date.now(), l = () => { + const u = Date.now() - s, d = dce(u > i ? i : u, a, e, i); + lT(o) ? o.scrollTo(window.pageXOffset, d) : o instanceof Document || o.constructor.name === "HTMLDocument" ? o.documentElement.scrollTop = d : o.scrollTop = d, u < i ? kr(l) : typeof n == "function" && n(); }; - Nr(l); + kr(l); } -const mi = (e) => { +const yi = (e) => { const [, , , , t] = ai(); return t ? `${e}-css-var` : ""; }; -var Oe = { +var Le = { /** * MAC_ENTER */ @@ -7016,32 +7057,32 @@ var Oe = { isTextModifyingKeyEvent: function(t) { var r = t.keyCode; if (t.altKey && !t.ctrlKey || t.metaKey || // Function keys don't generate text - r >= Oe.F1 && r <= Oe.F12) + r >= Le.F1 && r <= Le.F12) return !1; switch (r) { - case Oe.ALT: - case Oe.CAPS_LOCK: - case Oe.CONTEXT_MENU: - case Oe.CTRL: - case Oe.DOWN: - case Oe.END: - case Oe.ESC: - case Oe.HOME: - case Oe.INSERT: - case Oe.LEFT: - case Oe.MAC_FF_META: - case Oe.META: - case Oe.NUMLOCK: - case Oe.NUM_CENTER: - case Oe.PAGE_DOWN: - case Oe.PAGE_UP: - case Oe.PAUSE: - case Oe.PRINT_SCREEN: - case Oe.RIGHT: - case Oe.SHIFT: - case Oe.UP: - case Oe.WIN_KEY: - case Oe.WIN_KEY_RIGHT: + case Le.ALT: + case Le.CAPS_LOCK: + case Le.CONTEXT_MENU: + case Le.CTRL: + case Le.DOWN: + case Le.END: + case Le.ESC: + case Le.HOME: + case Le.INSERT: + case Le.LEFT: + case Le.MAC_FF_META: + case Le.META: + case Le.NUMLOCK: + case Le.NUM_CENTER: + case Le.PAGE_DOWN: + case Le.PAGE_UP: + case Le.PAUSE: + case Le.PRINT_SCREEN: + case Le.RIGHT: + case Le.SHIFT: + case Le.UP: + case Le.WIN_KEY: + case Le.WIN_KEY_RIGHT: return !1; default: return !0; @@ -7051,36 +7092,36 @@ var Oe = { * whether character is entered. */ isCharacterKey: function(t) { - if (t >= Oe.ZERO && t <= Oe.NINE || t >= Oe.NUM_ZERO && t <= Oe.NUM_MULTIPLY || t >= Oe.A && t <= Oe.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && t === 0) + if (t >= Le.ZERO && t <= Le.NINE || t >= Le.NUM_ZERO && t <= Le.NUM_MULTIPLY || t >= Le.A && t <= Le.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && t === 0) return !0; switch (t) { - case Oe.SPACE: - case Oe.QUESTION_MARK: - case Oe.NUM_PLUS: - case Oe.NUM_MINUS: - case Oe.NUM_PERIOD: - case Oe.NUM_DIVISION: - case Oe.SEMICOLON: - case Oe.DASH: - case Oe.EQUALS: - case Oe.COMMA: - case Oe.PERIOD: - case Oe.SLASH: - case Oe.APOSTROPHE: - case Oe.SINGLE_QUOTE: - case Oe.OPEN_SQUARE_BRACKET: - case Oe.BACKSLASH: - case Oe.CLOSE_SQUARE_BRACKET: + case Le.SPACE: + case Le.QUESTION_MARK: + case Le.NUM_PLUS: + case Le.NUM_MINUS: + case Le.NUM_PERIOD: + case Le.NUM_DIVISION: + case Le.SEMICOLON: + case Le.DASH: + case Le.EQUALS: + case Le.COMMA: + case Le.PERIOD: + case Le.SLASH: + case Le.APOSTROPHE: + case Le.SINGLE_QUOTE: + case Le.OPEN_SQUARE_BRACKET: + case Le.BACKSLASH: + case Le.CLOSE_SQUARE_BRACKET: return !0; default: return !1; } } -}, aW = /* @__PURE__ */ S.forwardRef(function(e, t) { +}, cW = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.prefixCls, n = e.style, i = e.className, o = e.duration, a = o === void 0 ? 4.5 : o, s = e.showProgress, l = e.pauseOnHover, c = l === void 0 ? !0 : l, u = e.eventKey, d = e.content, h = e.closable, f = e.closeIcon, p = f === void 0 ? "x" : f, g = e.props, v = e.onClick, m = e.onNoticeClose, y = e.times, C = e.hovering, b = S.useState(!1), w = ce(b, 2), x = w[0], E = w[1], R = S.useState(0), P = ce(R, 2), T = P[0], _ = P[1], D = S.useState(0), A = ce(D, 2), M = A[0], O = A[1], L = C || x, N = a > 0 && s, F = function() { m(u); }, $ = function(j) { - (j.key === "Enter" || j.code === "Enter" || j.keyCode === Oe.ENTER) && F(); + (j.key === "Enter" || j.code === "Enter" || j.keyCode === Le.ENTER) && F(); }; S.useEffect(function() { if (!L && a > 0) { @@ -7095,7 +7136,7 @@ var Oe = { if (!L && N && (c || M === 0)) { var W = performance.now(), j, X = function q() { cancelAnimationFrame(j), j = requestAnimationFrame(function(J) { - var te = J + M - W, Q = Math.min(te / (a * 1e3), 1); + var re = J + M - W, Q = Math.min(re / (a * 1e3), 1); _(Q * 100), Q < 1 && q(); }); }; @@ -7138,31 +7179,31 @@ var Oe = { max: "100", value: H }, H + "%")); -}), sW = /* @__PURE__ */ k.createContext({}), rce = function(t) { +}), uW = /* @__PURE__ */ k.createContext({}), fce = function(t) { var r = t.children, n = t.classNames; - return /* @__PURE__ */ k.createElement(sW.Provider, { + return /* @__PURE__ */ k.createElement(uW.Provider, { value: { classNames: n } }, r); -}, qF = 8, XF = 3, ZF = 16, nce = function(t) { +}, ZF = 8, QF = 3, JF = 16, pce = function(t) { var r = { - offset: qF, - threshold: XF, - gap: ZF + offset: ZF, + threshold: QF, + gap: JF }; if (t && pt(t) === "object") { var n, i, o; - r.offset = (n = t.offset) !== null && n !== void 0 ? n : qF, r.threshold = (i = t.threshold) !== null && i !== void 0 ? i : XF, r.gap = (o = t.gap) !== null && o !== void 0 ? o : ZF; + r.offset = (n = t.offset) !== null && n !== void 0 ? n : ZF, r.threshold = (i = t.threshold) !== null && i !== void 0 ? i : QF, r.gap = (o = t.gap) !== null && o !== void 0 ? o : JF; } return [!!t, r]; -}, ice = ["className", "style", "classNames", "styles"], lW = function(t) { - var r = t.configList, n = t.placement, i = t.prefixCls, o = t.className, a = t.style, s = t.motion, l = t.onAllNoticeRemoved, c = t.onNoticeClose, u = t.stack, d = Jt(sW), h = d.classNames, f = ve({}), p = Le(null), g = ce(p, 2), v = g[0], m = g[1], y = Le([]), C = ce(y, 2), b = C[0], w = C[1], x = r.map(function(L) { +}, gce = ["className", "style", "classNames", "styles"], dW = function(t) { + var r = t.configList, n = t.placement, i = t.prefixCls, o = t.className, a = t.style, s = t.motion, l = t.onAllNoticeRemoved, c = t.onNoticeClose, u = t.stack, d = Jt(uW), h = d.classNames, f = ve({}), p = Ie(null), g = ce(p, 2), v = g[0], m = g[1], y = Ie([]), C = ce(y, 2), b = C[0], w = C[1], x = r.map(function(L) { return { config: L, key: String(L.key) }; - }), E = nce(u), R = ce(E, 2), P = R[0], T = R[1], _ = T.offset, D = T.threshold, A = T.gap, M = P && (b.length > 0 || x.length <= D), O = typeof s == "function" ? s(n) : s; + }), E = pce(u), R = ce(E, 2), P = R[0], T = R[1], _ = T.offset, D = T.threshold, A = T.gap, M = P && (b.length > 0 || x.length <= D), O = typeof s == "function" ? s(n) : s; return Bt(function() { P && b.length > 1 && w(function(L) { return L.filter(function(N) { @@ -7178,7 +7219,7 @@ var Oe = { var N; m(f.current[(N = x[x.length - 1]) === null || N === void 0 ? void 0 : N.key]); } - }, [x, P]), /* @__PURE__ */ k.createElement(Cle, Te({ + }, [x, P]), /* @__PURE__ */ k.createElement(Dle, Te({ key: n, className: ie(i, "".concat(i, "-").concat(n), h == null ? void 0 : h.list, o, U(U({}, "".concat(i, "-stack"), !!P), "".concat(i, "-stack-expanded"), M)), style: a, @@ -7189,11 +7230,11 @@ var Oe = { l(n); } }), function(L, N) { - var F = L.config, $ = L.className, I = L.style, V = L.index, H = F, B = H.key, W = H.times, j = String(B), X = F, q = X.className, J = X.style, te = X.classNames, Q = X.styles, Y = Nt(X, ice), K = x.findIndex(function(Me) { + var F = L.config, $ = L.className, I = L.style, V = L.index, H = F, B = H.key, W = H.times, j = String(B), X = F, q = X.className, J = X.style, re = X.classNames, Q = X.styles, Y = Nt(X, gce), K = x.findIndex(function(Me) { return Me.key === j; }), ae = {}; if (P) { - var G = x.length - 1 - (K > -1 ? K : V - 1), re = n === "top" || n === "bottom" ? "-50%" : "0"; + var G = x.length - 1 - (K > -1 ? K : V - 1), ne = n === "top" || n === "bottom" ? "-50%" : "0"; if (G > 0) { var le, ue, he; ae.height = M ? (le = f.current[j]) === null || le === void 0 ? void 0 : le.offsetHeight : v == null ? void 0 : v.offsetHeight; @@ -7202,13 +7243,13 @@ var Oe = { fe += ((pe = f.current[x[x.length - 1 - de].key]) === null || pe === void 0 ? void 0 : pe.offsetHeight) + A; } var _e = (M ? fe : G * _) * (n.startsWith("top") ? 1 : -1), be = !M && v !== null && v !== void 0 && v.offsetWidth && (ue = f.current[j]) !== null && ue !== void 0 && ue.offsetWidth ? ((v == null ? void 0 : v.offsetWidth) - _ * 2 * (G < 3 ? G : 3)) / ((he = f.current[j]) === null || he === void 0 ? void 0 : he.offsetWidth) : 1; - ae.transform = "translate3d(".concat(re, ", ").concat(_e, "px, 0) scaleX(").concat(be, ")"); + ae.transform = "translate3d(".concat(ne, ", ").concat(_e, "px, 0) scaleX(").concat(be, ")"); } else - ae.transform = "translate3d(".concat(re, ", 0, 0)"); + ae.transform = "translate3d(".concat(ne, ", 0, 0)"); } return /* @__PURE__ */ k.createElement("div", { ref: N, - className: ie("".concat(i, "-notice-wrapper"), $, te == null ? void 0 : te.wrapper), + className: ie("".concat(i, "-notice-wrapper"), $, re == null ? void 0 : re.wrapper), style: Z(Z(Z({}, I), ae), Q == null ? void 0 : Q.wrapper), onMouseEnter: function() { return w(function(Ve) { @@ -7222,12 +7263,12 @@ var Oe = { }); }); } - }, /* @__PURE__ */ k.createElement(aW, Te({}, Y, { + }, /* @__PURE__ */ k.createElement(cW, Te({}, Y, { ref: function(Ve) { K > -1 ? f.current[j] = Ve : delete f.current[j]; }, prefixCls: i, - classNames: te, + classNames: re, styles: Q, className: ie(q, h == null ? void 0 : h.notice), style: J, @@ -7239,8 +7280,8 @@ var Oe = { }))); }); }; -process.env.NODE_ENV !== "production" && (lW.displayName = "NoticeList"); -var cW = /* @__PURE__ */ S.forwardRef(function(e, t) { +process.env.NODE_ENV !== "production" && (dW.displayName = "NoticeList"); +var hW = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.prefixCls, n = r === void 0 ? "rc-notification" : r, i = e.container, o = e.motion, a = e.maxCount, s = e.className, l = e.style, c = e.onAllRemoved, u = e.stack, d = e.renderNotifications, h = S.useState([]), f = ce(h, 2), p = f[0], g = f[1], v = function(P) { var T, _ = p.find(function(D) { return D.key === P; @@ -7295,8 +7336,8 @@ var cW = /* @__PURE__ */ S.forwardRef(function(e, t) { }, [C]), !i) return null; var E = Object.keys(C); - return /* @__PURE__ */ Db(/* @__PURE__ */ S.createElement(S.Fragment, null, E.map(function(R) { - var P = C[R], T = /* @__PURE__ */ S.createElement(lW, { + return /* @__PURE__ */ Ab(/* @__PURE__ */ S.createElement(S.Fragment, null, E.map(function(R) { + var P = C[R], T = /* @__PURE__ */ S.createElement(dW, { key: R, configList: P, placement: R, @@ -7314,11 +7355,11 @@ var cW = /* @__PURE__ */ S.forwardRef(function(e, t) { }) : T; })), i); }); -process.env.NODE_ENV !== "production" && (cW.displayName = "Notifications"); -var oce = ["getContainer", "motion", "prefixCls", "maxCount", "className", "style", "onAllRemoved", "stack", "renderNotifications"], ace = function() { +process.env.NODE_ENV !== "production" && (hW.displayName = "Notifications"); +var vce = ["getContainer", "motion", "prefixCls", "maxCount", "className", "style", "onAllRemoved", "stack", "renderNotifications"], mce = function() { return document.body; -}, QF = 0; -function sce() { +}, eN = 0; +function yce() { for (var e = {}, t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n]; return r.forEach(function(i) { @@ -7328,8 +7369,8 @@ function sce() { }); }), e; } -function lce() { - var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.getContainer, r = t === void 0 ? ace : t, n = e.motion, i = e.prefixCls, o = e.maxCount, a = e.className, s = e.style, l = e.onAllRemoved, c = e.stack, u = e.renderNotifications, d = Nt(e, oce), h = S.useState(), f = ce(h, 2), p = f[0], g = f[1], v = S.useRef(), m = /* @__PURE__ */ S.createElement(cW, { +function Cce() { + var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.getContainer, r = t === void 0 ? mce : t, n = e.motion, i = e.prefixCls, o = e.maxCount, a = e.className, s = e.style, l = e.onAllRemoved, c = e.stack, u = e.renderNotifications, d = Nt(e, vce), h = S.useState(), f = ce(h, 2), p = f[0], g = f[1], v = S.useRef(), m = /* @__PURE__ */ S.createElement(hW, { container: p, ref: v, prefixCls: i, @@ -7343,8 +7384,8 @@ function lce() { }), y = S.useState([]), C = ce(y, 2), b = C[0], w = C[1], x = S.useMemo(function() { return { open: function(R) { - var P = sce(d, R); - (P.key === null || P.key === void 0) && (P.key = "rc-notification-".concat(QF), QF += 1), w(function(T) { + var P = yce(d, R); + (P.key === null || P.key === void 0) && (P.key = "rc-notification-".concat(eN), eN += 1), w(function(T) { return [].concat($e(T), [{ type: "open", config: P @@ -7390,42 +7431,42 @@ function lce() { })); }, [b]), [x, m]; } -var cce = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, uce = function(t, r) { +var Sce = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, bce = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: cce + icon: Sce })); -}, Jf = /* @__PURE__ */ S.forwardRef(uce); -process.env.NODE_ENV !== "production" && (Jf.displayName = "LoadingOutlined"); -const Sm = /* @__PURE__ */ k.createContext(void 0); -process.env.NODE_ENV !== "production" && (Sm.displayName = "zIndexContext"); -const Au = 100, dce = 10, UD = Au * dce, uW = { +}, tp = /* @__PURE__ */ S.forwardRef(bce); +process.env.NODE_ENV !== "production" && (tp.displayName = "LoadingOutlined"); +const wm = /* @__PURE__ */ k.createContext(void 0); +process.env.NODE_ENV !== "production" && (wm.displayName = "zIndexContext"); +const Au = 100, wce = 10, U2 = Au * wce, fW = { Modal: Au, Drawer: Au, Popover: Au, Popconfirm: Au, Tooltip: Au, Tour: Au -}, hce = { +}, xce = { SelectLike: 50, Dropdown: 50, DatePicker: 50, Menu: 50, ImagePreview: 1 }; -function fce(e) { - return e in uW; +function Ece(e) { + return e in fW; } function Vd(e, t) { - const [, r] = ai(), n = k.useContext(Sm), i = fce(e); + const [, r] = ai(), n = k.useContext(wm), i = Ece(e); if (t !== void 0) return [t, t]; let o = n ?? 0; return i ? (o += // Use preset token zIndex by default but not stack when has parent container (n ? 0 : r.zIndexPopupBase) + // Container offset - uW[e], o = Math.min(o, r.zIndexPopupBase + UD)) : o += hce[e], [n === void 0 ? t : o, o]; + fW[e], o = Math.min(o, r.zIndexPopupBase + U2)) : o += xce[e], [n === void 0 ? t : o, o]; } -const pce = (e) => { +const Rce = (e) => { const { componentCls: t, iconCls: r, @@ -7560,30 +7601,30 @@ const pce = (e) => { }) } ]; -}, gce = (e) => ({ - zIndexPopup: e.zIndexPopupBase + UD + 10, +}, Pce = (e) => ({ + zIndexPopup: e.zIndexPopupBase + U2 + 10, contentBg: e.colorBgElevated, contentPadding: `${(e.controlHeightLG - e.fontSize * e.lineHeight) / 2}px ${e.paddingSM}px` -}), dW = Ur("Message", (e) => { +}), pW = Kr("Message", (e) => { const t = fr(e, { height: 150 }); - return [pce(t)]; -}, gce); -var vce = function(e, t) { + return [Rce(t)]; +}, Pce); +var Tce = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const mce = { - info: /* @__PURE__ */ S.createElement(jD, null), - success: /* @__PURE__ */ S.createElement($b, null), - error: /* @__PURE__ */ S.createElement(Qf, null), - warning: /* @__PURE__ */ S.createElement(Cm, null), - loading: /* @__PURE__ */ S.createElement(Jf, null) -}, hW = (e) => { +const _ce = { + info: /* @__PURE__ */ S.createElement(j2, null), + success: /* @__PURE__ */ S.createElement(Vb, null), + error: /* @__PURE__ */ S.createElement(ep, null), + warning: /* @__PURE__ */ S.createElement(bm, null), + loading: /* @__PURE__ */ S.createElement(tp, null) +}, gW = (e) => { let { prefixCls: t, type: r, @@ -7592,35 +7633,35 @@ const mce = { } = e; return /* @__PURE__ */ S.createElement("div", { className: ie(`${t}-custom-content`, `${t}-${r}`) - }, n || mce[r], /* @__PURE__ */ S.createElement("span", null, i)); -}, yce = (e) => { + }, n || _ce[r], /* @__PURE__ */ S.createElement("span", null, i)); +}, Mce = (e) => { const { prefixCls: t, className: r, type: n, icon: i, content: o - } = e, a = vce(e, ["prefixCls", "className", "type", "icon", "content"]), { + } = e, a = Tce(e, ["prefixCls", "className", "type", "icon", "content"]), { getPrefixCls: s - } = S.useContext(gt), l = t || s("message"), c = mi(l), [u, d, h] = dW(l, c); - return u(/* @__PURE__ */ S.createElement(aW, Object.assign({}, a, { + } = S.useContext(gt), l = t || s("message"), c = yi(l), [u, d, h] = pW(l, c); + return u(/* @__PURE__ */ S.createElement(cW, Object.assign({}, a, { prefixCls: l, className: ie(r, d, `${l}-notice-pure-panel`, h, c), eventKey: "pure", duration: null, - content: /* @__PURE__ */ S.createElement(hW, { + content: /* @__PURE__ */ S.createElement(gW, { prefixCls: l, type: n, icon: i }, o) }))); }; -function Cce(e, t) { +function Dce(e, t) { return { motionName: t ?? `${e}-move-up` }; } -function KD(e) { +function K2(e) { let t; const r = new Promise((i) => { t = e(() => { @@ -7631,40 +7672,40 @@ function KD(e) { }; return n.then = (i, o) => r.then(i, o), n.promise = r, n; } -var Sce = function(e, t) { +var Ice = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const bce = 8, wce = 3, xce = (e) => { +const Ace = 8, Oce = 3, Lce = (e) => { let { children: t, prefixCls: r } = e; - const n = mi(r), [i, o, a] = dW(r, n); - return i(/* @__PURE__ */ S.createElement(rce, { + const n = yi(r), [i, o, a] = pW(r, n); + return i(/* @__PURE__ */ S.createElement(fce, { classNames: { list: ie(o, a, n) } }, t)); -}, Ece = (e, t) => { +}, Fce = (e, t) => { let { prefixCls: r, key: n } = t; - return /* @__PURE__ */ S.createElement(xce, { + return /* @__PURE__ */ S.createElement(Lce, { prefixCls: r, key: n }, e); -}, Rce = /* @__PURE__ */ S.forwardRef((e, t) => { +}, Nce = /* @__PURE__ */ S.forwardRef((e, t) => { const { top: r, prefixCls: n, getContainer: i, maxCount: o, - duration: a = wce, + duration: a = Oce, rtl: s, transitionName: l, onAllRemoved: c @@ -7676,14 +7717,14 @@ const bce = 8, wce = 3, xce = (e) => { } = S.useContext(gt), p = n || u("message"), g = () => ({ left: "50%", transform: "translateX(-50%)", - top: r ?? bce + top: r ?? Ace }), v = () => ie({ [`${p}-rtl`]: s ?? f === "rtl" - }), m = () => Cce(p, l), y = /* @__PURE__ */ S.createElement("span", { + }), m = () => Dce(p, l), y = /* @__PURE__ */ S.createElement("span", { className: `${p}-close-x` - }, /* @__PURE__ */ S.createElement(ql, { + }, /* @__PURE__ */ S.createElement(Xl, { className: `${p}-close-icon` - })), [C, b] = lce({ + })), [C, b] = Cce({ prefixCls: p, style: g, className: v, @@ -7694,15 +7735,15 @@ const bce = 8, wce = 3, xce = (e) => { getContainer: () => (i == null ? void 0 : i()) || (d == null ? void 0 : d()) || document.body, maxCount: o, onAllRemoved: c, - renderNotifications: Ece + renderNotifications: Fce }); return S.useImperativeHandle(t, () => Object.assign(Object.assign({}, C), { prefixCls: p, message: h })), b; }); -let JF = 0; -function fW(e) { +let tN = 0; +function vW(e) { const t = S.useRef(null), r = Rr("Message"); return [S.useMemo(() => { const i = (c) => { @@ -7728,11 +7769,11 @@ function fW(e) { className: y, style: C, onClose: b - } = c, w = Sce(c, ["content", "icon", "type", "key", "className", "style", "onClose"]); + } = c, w = Ice(c, ["content", "icon", "type", "key", "className", "style", "onClose"]); let x = m; - return x == null && (JF += 1, x = `antd-message-${JF}`), KD((E) => (u(Object.assign(Object.assign({}, w), { + return x == null && (tN += 1, x = `antd-message-${tN}`), K2((E) => (u(Object.assign(Object.assign({}, w), { key: x, - content: /* @__PURE__ */ S.createElement(hW, { + content: /* @__PURE__ */ S.createElement(gW, { prefixCls: d, type: v, icon: g @@ -7771,16 +7812,16 @@ function fW(e) { }; s[c] = u; }), s; - }, []), /* @__PURE__ */ S.createElement(Rce, Object.assign({ + }, []), /* @__PURE__ */ S.createElement(Nce, Object.assign({ key: "message-holder" }, e, { ref: t }))]; } -function Pce(e) { - return fW(e); +function kce(e) { + return vW(e); } -function Tce() { +function $ce() { const [e, t] = S.useState([]), r = S.useCallback((n) => (t((i) => [].concat($e(i), [n])), () => { t((i) => i.filter((o) => o !== n)); }), []); @@ -8070,7 +8111,7 @@ function to() { } }, t; } -function eN(e, t, r, n, i, o, a) { +function rN(e, t, r, n, i, o, a) { try { var s = e[o](a), l = s.value; } catch (c) { @@ -8084,42 +8125,42 @@ function Hd(e) { return new Promise(function(n, i) { var o = e.apply(t, r); function a(l) { - eN(o, n, i, a, s, "next", l); + rN(o, n, i, a, s, "next", l); } function s(l) { - eN(o, n, i, a, s, "throw", l); + rN(o, n, i, a, s, "throw", l); } a(void 0); }); }; } -var bm = Z({}, xre), _ce = bm.version, Mce = bm.render, Dce = bm.unmountComponentAtNode, Bb; +var xm = Z({}, Pre), Bce = xm.version, Vce = xm.render, Hce = xm.unmountComponentAtNode, Hb; try { - var Ice = Number((_ce || "").split(".")[0]); - Ice >= 18 && (Bb = bm.createRoot); + var zce = Number((Bce || "").split(".")[0]); + zce >= 18 && (Hb = xm.createRoot); } catch { } -function tN(e) { - var t = bm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; +function nN(e) { + var t = xm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; t && pt(t) === "object" && (t.usingClientEntryPoint = e); } -var XC = "__rc_react_root__"; -function Ace(e, t) { - tN(!0); - var r = t[XC] || Bb(t); - tN(!1), r.render(e), t[XC] = r; +var JC = "__rc_react_root__"; +function Gce(e, t) { + nN(!0); + var r = t[JC] || Hb(t); + nN(!1), r.render(e), t[JC] = r; } -function Oce(e, t) { - Mce(e, t); +function Wce(e, t) { + Vce(e, t); } -function YD(e, t) { - if (Bb) { - Ace(e, t); +function Y2(e, t) { + if (Hb) { + Gce(e, t); return; } - Oce(e, t); + Wce(e, t); } -function Lce(e) { +function jce(e) { return cT.apply(this, arguments); } function cT() { @@ -8129,7 +8170,7 @@ function cT() { case 0: return n.abrupt("return", Promise.resolve().then(function() { var i; - (i = t[XC]) === null || i === void 0 || i.unmount(), delete t[XC]; + (i = t[JC]) === null || i === void 0 || i.unmount(), delete t[JC]; })); case 1: case "end": @@ -8138,10 +8179,10 @@ function cT() { }, e); })), cT.apply(this, arguments); } -function Fce(e) { - Dce(e); +function Uce(e) { + Hce(e); } -function pW(e) { +function mW(e) { return uT.apply(this, arguments); } function uT() { @@ -8149,13 +8190,13 @@ function uT() { return to().wrap(function(n) { for (; ; ) switch (n.prev = n.next) { case 0: - if (Bb === void 0) { + if (Hb === void 0) { n.next = 2; break; } - return n.abrupt("return", Lce(t)); + return n.abrupt("return", jce(t)); case 2: - Fce(t); + Uce(t); case 3: case "end": return n.stop(); @@ -8166,7 +8207,7 @@ function uT() { const L1 = () => ({ height: 0, opacity: 0 -}), rN = (e) => { +}), iN = (e) => { const { scrollHeight: t } = e; @@ -8174,23 +8215,23 @@ const L1 = () => ({ height: t, opacity: 1 }; -}, Nce = (e) => ({ +}, Kce = (e) => ({ height: e ? e.offsetHeight : 0 -}), F1 = (e, t) => (t == null ? void 0 : t.deadline) === !0 || t.propertyName === "height", gW = function() { +}), F1 = (e, t) => (t == null ? void 0 : t.deadline) === !0 || t.propertyName === "height", yW = function() { return { motionName: `${arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant"}-motion-collapse`, onAppearStart: L1, onEnterStart: L1, - onAppearActive: rN, - onEnterActive: rN, - onLeaveStart: Nce, + onAppearActive: iN, + onEnterActive: iN, + onLeaveStart: Kce, onLeaveActive: L1, onAppearEnd: F1, onEnterEnd: F1, onLeaveEnd: F1, motionDeadline: 500 }; -}, xa = (e, t, r) => r !== void 0 ? r : `${e}-${t}`, Vb = function(e) { +}, xa = (e, t, r) => r !== void 0 ? r : `${e}-${t}`, zb = function(e) { if (!e) return !1; if (e instanceof Element) { @@ -8208,7 +8249,7 @@ const L1 = () => ({ } } return !1; -}, kce = (e) => { +}, Yce = (e) => { const { componentCls: t, colorPrimary: r @@ -8235,16 +8276,16 @@ const L1 = () => ({ } } }; -}, $ce = zD("Wave", (e) => [kce(e)]), Hb = `${XG}-wave-target`; -function Bce(e) { +}, qce = z2("Wave", (e) => [Yce(e)]), Gb = `${JG}-wave-target`; +function Xce(e) { const t = (e || "").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/); return t && t[1] && t[2] && t[3] ? !(t[1] === t[2] && t[2] === t[3]) : !0; } function N1(e) { - return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && Bce(e) && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color + return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && Xce(e) && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color e !== "transparent"; } -function Vce(e) { +function Zce(e) { const { borderTopColor: t, borderColor: r, @@ -8255,7 +8296,7 @@ function Vce(e) { function k1(e) { return Number.isNaN(e) ? 0 : e; } -const Hce = (e) => { +const Qce = (e) => { const { className: t, target: r, @@ -8270,7 +8311,7 @@ const Hce = (e) => { o && (C["--wave-color"] = o); function b() { const x = getComputedStyle(r); - a(Vce(r)); + a(Zce(r)); const E = x.position === "static", { borderLeftWidth: R, borderTopWidth: P @@ -8286,17 +8327,17 @@ const Hce = (e) => { } if (S.useEffect(() => { if (r) { - const x = Nr(() => { + const x = kr(() => { b(), y(!0); }); let E; return typeof ResizeObserver < "u" && (E = new ResizeObserver(b), E.observe(r)), () => { - Nr.cancel(x), E == null || E.disconnect(); + kr.cancel(x), E == null || E.disconnect(); }; } }, []), !m) return null; - const w = (n === "Checkbox" || n === "Radio") && (r == null ? void 0 : r.classList.contains(Hb)); + const w = (n === "Checkbox" || n === "Radio") && (r == null ? void 0 : r.classList.contains(Gb)); return /* @__PURE__ */ S.createElement(us, { visible: !0, motionAppear: !0, @@ -8306,7 +8347,7 @@ const Hce = (e) => { var R; if (E.deadline || E.propertyName === "opacity") { const P = (R = i.current) === null || R === void 0 ? void 0 : R.parentElement; - pW(P).then(() => { + mW(P).then(() => { P == null || P.remove(); }); } @@ -8324,7 +8365,7 @@ const Hce = (e) => { style: C }); }); -}, zce = (e, t) => { +}, Jce = (e, t) => { var r; const { component: n @@ -8332,20 +8373,20 @@ const Hce = (e) => { if (n === "Checkbox" && !(!((r = e.querySelector("input")) === null || r === void 0) && r.checked)) return; const i = document.createElement("div"); - i.style.position = "absolute", i.style.left = "0px", i.style.top = "0px", e == null || e.insertBefore(i, e == null ? void 0 : e.firstChild), YD(/* @__PURE__ */ S.createElement(Hce, Object.assign({}, t, { + i.style.position = "absolute", i.style.left = "0px", i.style.top = "0px", e == null || e.insertBefore(i, e == null ? void 0 : e.firstChild), Y2(/* @__PURE__ */ S.createElement(Qce, Object.assign({}, t, { target: e })), i); -}, Gce = (e, t, r) => { +}, eue = (e, t, r) => { const { wave: n - } = S.useContext(gt), [, i, o] = ai(), a = Kr((c) => { + } = S.useContext(gt), [, i, o] = ai(), a = Yr((c) => { const u = e.current; if (n != null && n.disabled || !u) return; - const d = u.querySelector(`.${Hb}`) || u, { + const d = u.querySelector(`.${Gb}`) || u, { showEffect: h } = n || {}; - (h || zce)(d, { + (h || Jce)(d, { className: t, token: i, component: r, @@ -8354,24 +8395,24 @@ const Hce = (e) => { }); }), s = S.useRef(); return (c) => { - Nr.cancel(s.current), s.current = Nr(() => { + kr.cancel(s.current), s.current = kr(() => { a(c); }); }; -}, wm = (e) => { +}, Em = (e) => { const { children: t, disabled: r, component: n } = e, { getPrefixCls: i - } = Jt(gt), o = ve(null), a = i("wave"), [, s] = $ce(a), l = Gce(o, ie(a, s), n); + } = Jt(gt), o = ve(null), a = i("wave"), [, s] = qce(a), l = eue(o, ie(a, s), n); if (k.useEffect(() => { const u = o.current; if (!u || u.nodeType !== 1 || r) return; const d = (h) => { - !Vb(h.target) || // No need wave + !zb(h.target) || // No need wave !u.getAttribute || u.getAttribute("disabled") || u.disabled || u.className.includes("disabled") || u.className.includes("-leave") || l(h); }; return u.addEventListener("click", d, !0), () => { @@ -8384,11 +8425,11 @@ const Hce = (e) => { ref: c }); }; -process.env.NODE_ENV !== "production" && (wm.displayName = "Wave"); +process.env.NODE_ENV !== "production" && (Em.displayName = "Wave"); const Ro = (e) => { const t = k.useContext(_f); return k.useMemo(() => e ? typeof e == "string" ? e ?? t : e instanceof Function ? e(t) : t : t, [e, t]); -}, Wce = (e) => { +}, tue = (e) => { const { componentCls: t } = e; @@ -8403,7 +8444,7 @@ const Ro = (e) => { } } }; -}, jce = (e) => { +}, rue = (e) => { const { componentCls: t, antCls: r @@ -8441,7 +8482,7 @@ const Ro = (e) => { } } }; -}, Uce = (e) => { +}, nue = (e) => { const { componentCls: t } = e; @@ -8467,27 +8508,27 @@ const Ro = (e) => { } } }; -}, vW = Ur("Space", (e) => { +}, CW = Kr("Space", (e) => { const t = fr(e, { spaceGapSmallSize: e.paddingXS, spaceGapMiddleSize: e.padding, spaceGapLargeSize: e.paddingLG }); - return [jce(t), Uce(t), Wce(t)]; + return [rue(t), nue(t), tue(t)]; }, () => ({}), { // Space component don't apply extra font style // https://github.com/ant-design/ant-design/issues/40315 resetStyle: !1 }); -var mW = function(e, t) { +var SW = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const zb = /* @__PURE__ */ S.createContext(null), xm = (e, t) => { - const r = S.useContext(zb), n = S.useMemo(() => { +const Wb = /* @__PURE__ */ S.createContext(null), Rm = (e, t) => { + const r = S.useContext(Wb), n = S.useMemo(() => { if (!r) return ""; const { @@ -8506,21 +8547,21 @@ const zb = /* @__PURE__ */ S.createContext(null), xm = (e, t) => { compactDirection: r == null ? void 0 : r.compactDirection, compactItemClassnames: n }; -}, Kce = (e) => { +}, iue = (e) => { let { children: t } = e; - return /* @__PURE__ */ S.createElement(zb.Provider, { + return /* @__PURE__ */ S.createElement(Wb.Provider, { value: null }, t); -}, Yce = (e) => { +}, oue = (e) => { var { children: t - } = e, r = mW(e, ["children"]); - return /* @__PURE__ */ S.createElement(zb.Provider, { + } = e, r = SW(e, ["children"]); + return /* @__PURE__ */ S.createElement(Wb.Provider, { value: r }, t); -}, qce = (e) => { +}, aue = (e) => { const { getPrefixCls: t, direction: r @@ -8532,13 +8573,13 @@ const zb = /* @__PURE__ */ S.createContext(null), xm = (e, t) => { className: s, rootClassName: l, children: c - } = e, u = mW(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), d = Ro((C) => n ?? C), h = t("space-compact", a), [f, p] = vW(h), g = ie(h, p, { + } = e, u = SW(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), d = Ro((C) => n ?? C), h = t("space-compact", a), [f, p] = CW(h), g = ie(h, p, { [`${h}-rtl`]: r === "rtl", [`${h}-block`]: o, [`${h}-vertical`]: i === "vertical" - }, s, l), v = S.useContext(zb), m = bi(c), y = S.useMemo(() => m.map((C, b) => { + }, s, l), v = S.useContext(Wb), m = wi(c), y = S.useMemo(() => m.map((C, b) => { const w = (C == null ? void 0 : C.key) || `${h}-item-${b}`; - return /* @__PURE__ */ S.createElement(Yce, { + return /* @__PURE__ */ S.createElement(oue, { key: w, compactSize: d, compactDirection: i, @@ -8549,15 +8590,15 @@ const zb = /* @__PURE__ */ S.createContext(null), xm = (e, t) => { return m.length === 0 ? null : f(/* @__PURE__ */ S.createElement("div", Object.assign({ className: g }, u), y)); -}, Xce = qce; -var Zce = function(e, t) { +}, sue = aue; +var lue = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const yW = /* @__PURE__ */ S.createContext(void 0), Qce = (e) => { +const bW = /* @__PURE__ */ S.createContext(void 0), cue = (e) => { const { getPrefixCls: t, direction: r @@ -8565,7 +8606,7 @@ const yW = /* @__PURE__ */ S.createContext(void 0), Qce = (e) => { prefixCls: n, size: i, className: o - } = e, a = Zce(e, ["prefixCls", "size", "className"]), s = t("btn-group", n), [, , l] = ai(); + } = e, a = lue(e, ["prefixCls", "size", "className"]), s = t("btn-group", n), [, , l] = ai(); let c = ""; switch (i) { case "large": @@ -8583,34 +8624,34 @@ const yW = /* @__PURE__ */ S.createContext(void 0), Qce = (e) => { [`${s}-${c}`]: c, [`${s}-rtl`]: r === "rtl" }, o, l); - return /* @__PURE__ */ S.createElement(yW.Provider, { + return /* @__PURE__ */ S.createElement(bW.Provider, { value: i }, /* @__PURE__ */ S.createElement("div", Object.assign({}, a, { className: u }))); -}, nN = /^[\u4e00-\u9fa5]{2}$/, dT = nN.test.bind(nN); -function qD(e) { +}, oN = /^[\u4e00-\u9fa5]{2}$/, dT = oN.test.bind(oN); +function q2(e) { return e === "danger" ? { danger: !0 } : { type: e }; } -function iN(e) { +function aN(e) { return typeof e == "string"; } -function Dy(e) { +function Oy(e) { return e === "text" || e === "link"; } -function Jce(e, t) { +function uue(e, t) { if (e == null) return; const r = t ? " " : ""; - return typeof e != "string" && typeof e != "number" && iN(e.type) && dT(e.props.children) ? eo(e, { + return typeof e != "string" && typeof e != "number" && aN(e.type) && dT(e.props.children) ? eo(e, { children: e.props.children.split("").join(r) - }) : iN(e) ? dT(e) ? /* @__PURE__ */ k.createElement("span", null, e.split("").join(r)) : /* @__PURE__ */ k.createElement("span", null, e) : iW(e) ? /* @__PURE__ */ k.createElement("span", null, e) : e; + }) : aN(e) ? dT(e) ? /* @__PURE__ */ k.createElement("span", null, e.split("").join(r)) : /* @__PURE__ */ k.createElement("span", null, e) : sW(e) ? /* @__PURE__ */ k.createElement("span", null, e) : e; } -function eue(e, t) { +function due(e, t) { let r = !1; const n = []; return k.Children.forEach(e, (i) => { @@ -8621,9 +8662,9 @@ function eue(e, t) { } else n.push(i); r = a; - }), k.Children.map(n, (i) => Jce(i, t)); + }), k.Children.map(n, (i) => uue(i, t)); } -const CW = /* @__PURE__ */ qr((e, t) => { +const wW = /* @__PURE__ */ Ur((e, t) => { const { className: r, style: n, @@ -8635,19 +8676,19 @@ const CW = /* @__PURE__ */ qr((e, t) => { className: a, style: n }, i); -}), oN = /* @__PURE__ */ qr((e, t) => { +}), sN = /* @__PURE__ */ Ur((e, t) => { const { prefixCls: r, className: n, style: i, iconClassName: o } = e, a = ie(`${r}-loading-icon`, n); - return /* @__PURE__ */ k.createElement(CW, { + return /* @__PURE__ */ k.createElement(wW, { prefixCls: r, className: a, style: i, ref: t - }, /* @__PURE__ */ k.createElement(Jf, { + }, /* @__PURE__ */ k.createElement(tp, { className: o })); }), $1 = () => ({ @@ -8658,7 +8699,7 @@ const CW = /* @__PURE__ */ qr((e, t) => { width: e.scrollWidth, opacity: 1, transform: "scale(1)" -}), tue = (e) => { +}), hue = (e) => { const { prefixCls: t, loading: r, @@ -8666,7 +8707,7 @@ const CW = /* @__PURE__ */ qr((e, t) => { className: i, style: o } = e, a = !!r; - return n ? /* @__PURE__ */ k.createElement(oN, { + return n ? /* @__PURE__ */ k.createElement(sN, { prefixCls: t, className: i, style: o @@ -8687,7 +8728,7 @@ const CW = /* @__PURE__ */ qr((e, t) => { className: c, style: u } = s; - return /* @__PURE__ */ k.createElement(oN, { + return /* @__PURE__ */ k.createElement(sN, { prefixCls: t, className: i, style: Object.assign(Object.assign({}, o), u), @@ -8695,7 +8736,7 @@ const CW = /* @__PURE__ */ qr((e, t) => { iconClassName: c }); }); -}, aN = (e, t) => ({ +}, lN = (e, t) => ({ // Border [`> span, > ${e}`]: { "&:not(:last-child)": { @@ -8713,7 +8754,7 @@ const CW = /* @__PURE__ */ qr((e, t) => { } } } -}), rue = (e) => { +}), fue = (e) => { const { componentCls: t, fontSize: r, @@ -8757,11 +8798,11 @@ const CW = /* @__PURE__ */ qr((e, t) => { } }, // Border Color - aN(`${t}-primary`, i), - aN(`${t}-danger`, o) + lN(`${t}-primary`, i), + lN(`${t}-danger`, o) ] }; -}, SW = (e) => { +}, xW = (e) => { const { paddingInline: t, onlyIconSize: r, @@ -8772,9 +8813,9 @@ const CW = /* @__PURE__ */ qr((e, t) => { buttonPaddingVertical: n, buttonIconOnlyFontSize: r }); -}, bW = (e) => { +}, EW = (e) => { var t, r, n, i, o, a; - const s = (t = e.contentFontSize) !== null && t !== void 0 ? t : e.fontSize, l = (r = e.contentFontSizeSM) !== null && r !== void 0 ? r : e.fontSize, c = (n = e.contentFontSizeLG) !== null && n !== void 0 ? n : e.fontSizeLG, u = (i = e.contentLineHeight) !== null && i !== void 0 ? i : dC(s), d = (o = e.contentLineHeightSM) !== null && o !== void 0 ? o : dC(l), h = (a = e.contentLineHeightLG) !== null && a !== void 0 ? a : dC(c); + const s = (t = e.contentFontSize) !== null && t !== void 0 ? t : e.fontSize, l = (r = e.contentFontSizeSM) !== null && r !== void 0 ? r : e.fontSize, c = (n = e.contentFontSizeLG) !== null && n !== void 0 ? n : e.fontSizeLG, u = (i = e.contentLineHeight) !== null && i !== void 0 ? i : pC(s), d = (o = e.contentLineHeightSM) !== null && o !== void 0 ? o : pC(l), h = (a = e.contentLineHeightLG) !== null && a !== void 0 ? a : pC(c); return { fontWeight: 400, defaultShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`, @@ -8815,7 +8856,7 @@ const CW = /* @__PURE__ */ qr((e, t) => { paddingBlockSM: Math.max((e.controlHeightSM - l * d) / 2 - e.lineWidth, 0), paddingBlockLG: Math.max((e.controlHeightLG - c * h) / 2 - e.lineWidth, 0) }; -}, nue = (e) => { +}, pue = (e) => { const { componentCls: t, iconCls: r, @@ -8834,7 +8875,7 @@ const CW = /* @__PURE__ */ qr((e, t) => { textAlign: "center", backgroundImage: "none", background: "transparent", - border: `${ee(e.lineWidth)} ${e.lineType} transparent`, + border: `${te(e.lineWidth)} ${e.lineType} transparent`, cursor: "pointer", transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`, userSelect: "none", @@ -8866,33 +8907,33 @@ const CW = /* @__PURE__ */ qr((e, t) => { } } }; -}, Nl = (e, t, r) => ({ +}, kl = (e, t, r) => ({ [`&:not(:disabled):not(${e}-disabled)`]: { "&:hover": t, "&:active": r } -}), iue = (e) => ({ +}), gue = (e) => ({ minWidth: e.controlHeight, paddingInlineStart: 0, paddingInlineEnd: 0, borderRadius: "50%" -}), oue = (e) => ({ +}), vue = (e) => ({ borderRadius: e.controlHeight, paddingInlineStart: e.calc(e.controlHeight).div(2).equal(), paddingInlineEnd: e.calc(e.controlHeight).div(2).equal() -}), aue = (e) => ({ +}), mue = (e) => ({ cursor: "not-allowed", borderColor: e.borderColorDisabled, color: e.colorTextDisabled, background: e.colorBgContainerDisabled, boxShadow: "none" -}), Mv = (e, t, r, n, i, o, a, s) => ({ +}), Iv = (e, t, r, n, i, o, a, s) => ({ [`&${e}-background-ghost`]: Object.assign(Object.assign({ color: r || void 0, background: t, borderColor: n || void 0, boxShadow: "none" - }, Nl(e, Object.assign({ + }, kl(e, Object.assign({ background: t }, a), Object.assign({ background: t @@ -8903,19 +8944,19 @@ const CW = /* @__PURE__ */ qr((e, t) => { borderColor: o || void 0 } }) -}), XD = (e) => ({ - [`&:disabled, &${e.componentCls}-disabled`]: Object.assign({}, aue(e)) -}), wW = (e) => Object.assign({}, XD(e)), ZC = (e) => ({ +}), X2 = (e) => ({ + [`&:disabled, &${e.componentCls}-disabled`]: Object.assign({}, mue(e)) +}), RW = (e) => Object.assign({}, X2(e)), eS = (e) => ({ [`&:disabled, &${e.componentCls}-disabled`]: { cursor: "not-allowed", color: e.colorTextDisabled } -}), xW = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, wW(e)), { +}), PW = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, RW(e)), { background: e.defaultBg, borderColor: e.defaultBorderColor, color: e.defaultColor, boxShadow: e.defaultShadow -}), Nl(e.componentCls, { +}), kl(e.componentCls, { color: e.defaultHoverColor, borderColor: e.defaultHoverBorderColor, background: e.defaultHoverBg @@ -8923,28 +8964,28 @@ const CW = /* @__PURE__ */ qr((e, t) => { color: e.defaultActiveColor, borderColor: e.defaultActiveBorderColor, background: e.defaultActiveBg -})), Mv(e.componentCls, e.ghostBg, e.defaultGhostColor, e.defaultGhostBorderColor, e.colorTextDisabled, e.colorBorder)), { +})), Iv(e.componentCls, e.ghostBg, e.defaultGhostColor, e.defaultGhostBorderColor, e.colorTextDisabled, e.colorBorder)), { [`&${e.componentCls}-dangerous`]: Object.assign(Object.assign(Object.assign({ color: e.colorError, borderColor: e.colorError - }, Nl(e.componentCls, { + }, kl(e.componentCls, { color: e.colorErrorHover, borderColor: e.colorErrorBorderHover }, { color: e.colorErrorActive, borderColor: e.colorErrorActive - })), Mv(e.componentCls, e.ghostBg, e.colorError, e.colorError, e.colorTextDisabled, e.colorBorder)), XD(e)) -}), sue = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, wW(e)), { + })), Iv(e.componentCls, e.ghostBg, e.colorError, e.colorError, e.colorTextDisabled, e.colorBorder)), X2(e)) +}), yue = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, RW(e)), { color: e.primaryColor, background: e.colorPrimary, boxShadow: e.primaryShadow -}), Nl(e.componentCls, { +}), kl(e.componentCls, { color: e.colorTextLightSolid, background: e.colorPrimaryHover }, { color: e.colorTextLightSolid, background: e.colorPrimaryActive -})), Mv(e.componentCls, e.ghostBg, e.colorPrimary, e.colorPrimary, e.colorTextDisabled, e.colorBorder, { +})), Iv(e.componentCls, e.ghostBg, e.colorPrimary, e.colorPrimary, e.colorTextDisabled, e.colorBorder, { color: e.colorPrimaryHover, borderColor: e.colorPrimaryHover }, { @@ -8955,63 +8996,63 @@ const CW = /* @__PURE__ */ qr((e, t) => { background: e.colorError, boxShadow: e.dangerShadow, color: e.dangerColor - }, Nl(e.componentCls, { + }, kl(e.componentCls, { background: e.colorErrorHover }, { background: e.colorErrorActive - })), Mv(e.componentCls, e.ghostBg, e.colorError, e.colorError, e.colorTextDisabled, e.colorBorder, { + })), Iv(e.componentCls, e.ghostBg, e.colorError, e.colorError, e.colorTextDisabled, e.colorBorder, { color: e.colorErrorHover, borderColor: e.colorErrorHover }, { color: e.colorErrorActive, borderColor: e.colorErrorActive - })), XD(e)) -}), lue = (e) => Object.assign(Object.assign({}, xW(e)), { + })), X2(e)) +}), Cue = (e) => Object.assign(Object.assign({}, PW(e)), { borderStyle: "dashed" -}), cue = (e) => Object.assign(Object.assign(Object.assign({ +}), Sue = (e) => Object.assign(Object.assign(Object.assign({ color: e.colorLink -}, Nl(e.componentCls, { +}, kl(e.componentCls, { color: e.colorLinkHover, background: e.linkHoverBg }, { color: e.colorLinkActive -})), ZC(e)), { +})), eS(e)), { [`&${e.componentCls}-dangerous`]: Object.assign(Object.assign({ color: e.colorError - }, Nl(e.componentCls, { + }, kl(e.componentCls, { color: e.colorErrorHover }, { color: e.colorErrorActive - })), ZC(e)) -}), uue = (e) => Object.assign(Object.assign(Object.assign({}, Nl(e.componentCls, { + })), eS(e)) +}), bue = (e) => Object.assign(Object.assign(Object.assign({}, kl(e.componentCls, { color: e.colorText, background: e.textHoverBg }, { color: e.colorText, background: e.colorBgTextActive -})), ZC(e)), { +})), eS(e)), { [`&${e.componentCls}-dangerous`]: Object.assign(Object.assign({ color: e.colorError - }, ZC(e)), Nl(e.componentCls, { + }, eS(e)), kl(e.componentCls, { color: e.colorErrorHover, background: e.colorErrorBg }, { color: e.colorErrorHover, background: e.colorErrorBgActive })) -}), due = (e) => { +}), wue = (e) => { const { componentCls: t } = e; return { - [`${t}-default`]: xW(e), - [`${t}-primary`]: sue(e), - [`${t}-dashed`]: lue(e), - [`${t}-link`]: cue(e), - [`${t}-text`]: uue(e), - [`${t}-ghost`]: Mv(e.componentCls, e.ghostBg, e.colorBgContainer, e.colorBgContainer, e.colorTextDisabled, e.colorBorder) - }; -}, ZD = function(e) { + [`${t}-default`]: PW(e), + [`${t}-primary`]: yue(e), + [`${t}-dashed`]: Cue(e), + [`${t}-link`]: Sue(e), + [`${t}-text`]: bue(e), + [`${t}-ghost`]: Iv(e.componentCls, e.ghostBg, e.colorBgContainer, e.colorBgContainer, e.colorTextDisabled, e.colorBorder) + }; +}, Z2 = function(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; const { componentCls: r, @@ -9029,7 +9070,7 @@ const CW = /* @__PURE__ */ qr((e, t) => { fontSize: i, lineHeight: o, height: n, - padding: `${ee(c)} ${ee(s)}`, + padding: `${te(c)} ${te(s)}`, borderRadius: a, [`&${u}`]: { width: n, @@ -9057,19 +9098,19 @@ const CW = /* @__PURE__ */ qr((e, t) => { }, // Shape - patch prefixCls again to override solid border radius style { - [`${r}${r}-circle${t}`]: iue(e) + [`${r}${r}-circle${t}`]: gue(e) }, { - [`${r}${r}-round${t}`]: oue(e) + [`${r}${r}-round${t}`]: vue(e) } ]; -}, hue = (e) => { +}, xue = (e) => { const t = fr(e, { fontSize: e.contentFontSize, lineHeight: e.contentLineHeight }); - return ZD(t, e.componentCls); -}, fue = (e) => { + return Z2(t, e.componentCls); +}, Eue = (e) => { const t = fr(e, { controlHeight: e.controlHeightSM, fontSize: e.contentFontSizeSM, @@ -9080,8 +9121,8 @@ const CW = /* @__PURE__ */ qr((e, t) => { borderRadius: e.borderRadiusSM, buttonIconOnlyFontSize: e.onlyIconSizeSM }); - return ZD(t, `${e.componentCls}-sm`); -}, pue = (e) => { + return Z2(t, `${e.componentCls}-sm`); +}, Rue = (e) => { const t = fr(e, { controlHeight: e.controlHeightLG, fontSize: e.contentFontSizeLG, @@ -9091,8 +9132,8 @@ const CW = /* @__PURE__ */ qr((e, t) => { borderRadius: e.borderRadiusLG, buttonIconOnlyFontSize: e.onlyIconSizeLG }); - return ZD(t, `${e.componentCls}-lg`); -}, gue = (e) => { + return Z2(t, `${e.componentCls}-lg`); +}, Pue = (e) => { const { componentCls: t } = e; @@ -9103,23 +9144,23 @@ const CW = /* @__PURE__ */ qr((e, t) => { } } }; -}, vue = Ur("Button", (e) => { - const t = SW(e); +}, Tue = Kr("Button", (e) => { + const t = xW(e); return [ // Shared - nue(t), - // Size - hue(t), - fue(t), pue(t), + // Size + xue(t), + Eue(t), + Rue(t), // Block - gue(t), + Pue(t), // Group (type, ghost, danger, loading) - due(t), + wue(t), // Button Group - rue(t) + fue(t) ]; -}, bW, { +}, EW, { unitless: { fontWeight: !0, contentLineHeight: !0, @@ -9127,7 +9168,7 @@ const CW = /* @__PURE__ */ qr((e, t) => { contentLineHeightLG: !0 } }); -function mue(e, t, r) { +function _ue(e, t, r) { const { focusElCls: n, focus: i, @@ -9152,7 +9193,7 @@ function mue(e, t, r) { }) }; } -function yue(e, t, r) { +function Mue(e, t, r) { const { borderElCls: n } = r, i = n ? `> ${n}` : ""; @@ -9174,7 +9215,7 @@ function yue(e, t, r) { } }; } -function QD(e) { +function Q2(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { focus: !0 }; @@ -9182,10 +9223,10 @@ function QD(e) { componentCls: r } = e, n = `${r}-compact`; return { - [n]: Object.assign(Object.assign({}, mue(e, n, t)), yue(r, n, t)) + [n]: Object.assign(Object.assign({}, _ue(e, n, t)), Mue(r, n, t)) }; } -function Cue(e, t) { +function Due(e, t) { return { // border collapse [`&-item:not(${t}-last-item)`]: { @@ -9201,7 +9242,7 @@ function Cue(e, t) { } }; } -function Sue(e, t) { +function Iue(e, t) { return { [`&-item:not(${t}-first-item):not(${t}-last-item)`]: { borderRadius: 0 @@ -9220,13 +9261,13 @@ function Sue(e, t) { } }; } -function bue(e) { +function Aue(e) { const t = `${e.componentCls}-compact-vertical`; return { - [t]: Object.assign(Object.assign({}, Cue(e, t)), Sue(e.componentCls, t)) + [t]: Object.assign(Object.assign({}, Due(e, t)), Iue(e.componentCls, t)) }; } -const wue = (e) => { +const Oue = (e) => { const { componentCls: t, calc: r @@ -9243,7 +9284,7 @@ const wue = (e) => { insetInlineStart: r(e.lineWidth).mul(-1).equal(), display: "inline-block", width: e.lineWidth, - height: `calc(100% + ${ee(e.lineWidth)} * 2)`, + height: `calc(100% + ${te(e.lineWidth)} * 2)`, backgroundColor: e.colorPrimaryHover, content: '""' } @@ -9259,7 +9300,7 @@ const wue = (e) => { top: r(e.lineWidth).mul(-1).equal(), insetInlineStart: r(e.lineWidth).mul(-1).equal(), display: "inline-block", - width: `calc(100% + ${ee(e.lineWidth)} * 2)`, + width: `calc(100% + ${te(e.lineWidth)} * 2)`, height: e.lineWidth, backgroundColor: e.colorPrimaryHover, content: '""' @@ -9269,23 +9310,23 @@ const wue = (e) => { } } }; -}, xue = ym(["Button", "compact"], (e) => { - const t = SW(e); +}, Lue = Sm(["Button", "compact"], (e) => { + const t = xW(e); return [ // Space Compact - QD(t), - bue(t), - wue(t) + Q2(t), + Aue(t), + Oue(t) ]; -}, bW); -var Eue = function(e, t) { +}, EW); +var Fue = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function Rue(e) { +function Nue(e) { if (typeof e == "object" && e) { let t = e == null ? void 0 : e.delay; return t = !Number.isNaN(t) && typeof t == "number" ? t : 0, { @@ -9298,7 +9339,7 @@ function Rue(e) { delay: 0 }; } -const Pue = /* @__PURE__ */ k.forwardRef((e, t) => { +const kue = /* @__PURE__ */ k.forwardRef((e, t) => { var r, n, i; const { loading: o = !1, @@ -9321,11 +9362,11 @@ const Pue = /* @__PURE__ */ k.forwardRef((e, t) => { classNames: w, style: x = {}, autoInsertSpace: E - } = e, R = Eue(e, ["loading", "prefixCls", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace"]), P = s || "default", { + } = e, R = Fue(e, ["loading", "prefixCls", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace"]), P = s || "default", { getPrefixCls: T, direction: _, button: D - } = Jt(gt), A = (r = E ?? (D == null ? void 0 : D.autoInsertSpace)) !== null && r !== void 0 ? r : !0, M = T("btn", a), [O, L, N] = vue(M), F = Jt(Ll), $ = h ?? F, I = Jt(yW), V = Ct(() => Rue(o), [o]), [H, B] = Le(V.loading), [W, j] = Le(!1), q = Eo(t, /* @__PURE__ */ mre()), J = PP.count(g) === 1 && !v && !Dy(P); + } = Jt(gt), A = (r = E ?? (D == null ? void 0 : D.autoInsertSpace)) !== null && r !== void 0 ? r : !0, M = T("btn", a), [O, L, N] = Tue(M), F = Jt(Fl), $ = h ?? F, I = Jt(bW), V = St(() => Nue(o), [o]), [H, B] = Ie(V.loading), [W, j] = Ie(!1), q = Eo(t, /* @__PURE__ */ Sre()), J = PP.count(g) === 1 && !v && !Oy(P); Bt(() => { let Me = null; V.delay > 0 ? Me = setTimeout(() => { @@ -9341,7 +9382,7 @@ const Pue = /* @__PURE__ */ k.forwardRef((e, t) => { const Me = q.current.textContent; J && dT(Me) ? W || j(!0) : W && j(!1); }, [q]); - const te = (Me) => { + const re = (Me) => { const { onClick: Ve } = e; @@ -9353,39 +9394,39 @@ const Pue = /* @__PURE__ */ k.forwardRef((e, t) => { }; if (process.env.NODE_ENV !== "production") { const Me = Rr("Button"); - process.env.NODE_ENV !== "production" && Me(!(typeof v == "string" && v.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${v}\` at https://ant.design/components/icon`), process.env.NODE_ENV !== "production" && Me(!(y && Dy(P)), "usage", "`link` or `text` button can't be a `ghost` button."); + process.env.NODE_ENV !== "production" && Me(!(typeof v == "string" && v.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${v}\` at https://ant.design/components/icon`), process.env.NODE_ENV !== "production" && Me(!(y && Oy(P)), "usage", "`link` or `text` button can't be a `ghost` button."); } const { compactSize: Q, compactItemClassnames: Y - } = xm(M, _), K = { + } = Rm(M, _), K = { large: "lg", small: "sm", middle: void 0 }, ae = Ro((Me) => { var Ve, oe; return (oe = (Ve = u ?? Q) !== null && Ve !== void 0 ? Ve : I) !== null && oe !== void 0 ? oe : Me; - }), G = ae && K[ae] || "", re = H ? "loading" : v, le = Sn(R, ["navigate"]), ue = ie(M, L, N, { + }), G = ae && K[ae] || "", ne = H ? "loading" : v, le = Sn(R, ["navigate"]), ue = ie(M, L, N, { [`${M}-${c}`]: c !== "default" && c, [`${M}-${P}`]: P, [`${M}-${G}`]: G, - [`${M}-icon-only`]: !g && g !== 0 && !!re, - [`${M}-background-ghost`]: y && !Dy(P), + [`${M}-icon-only`]: !g && g !== 0 && !!ne, + [`${M}-background-ghost`]: y && !Oy(P), [`${M}-loading`]: H, [`${M}-two-chinese-chars`]: W && A && !H, [`${M}-block`]: C, [`${M}-dangerous`]: l, [`${M}-rtl`]: _ === "rtl", [`${M}-icon-end`]: m === "end" - }, Y, f, p, D == null ? void 0 : D.className), he = Object.assign(Object.assign({}, D == null ? void 0 : D.style), x), fe = ie(w == null ? void 0 : w.icon, (n = D == null ? void 0 : D.classNames) === null || n === void 0 ? void 0 : n.icon), de = Object.assign(Object.assign({}, (d == null ? void 0 : d.icon) || {}), ((i = D == null ? void 0 : D.styles) === null || i === void 0 ? void 0 : i.icon) || {}), pe = v && !H ? /* @__PURE__ */ k.createElement(CW, { + }, Y, f, p, D == null ? void 0 : D.className), he = Object.assign(Object.assign({}, D == null ? void 0 : D.style), x), fe = ie(w == null ? void 0 : w.icon, (n = D == null ? void 0 : D.classNames) === null || n === void 0 ? void 0 : n.icon), de = Object.assign(Object.assign({}, (d == null ? void 0 : d.icon) || {}), ((i = D == null ? void 0 : D.styles) === null || i === void 0 ? void 0 : i.icon) || {}), pe = v && !H ? /* @__PURE__ */ k.createElement(wW, { prefixCls: M, className: fe, style: de - }, v) : /* @__PURE__ */ k.createElement(tue, { + }, v) : /* @__PURE__ */ k.createElement(hue, { existIcon: !!v, prefixCls: M, loading: H - }), _e = g || g === 0 ? eue(g, J && A) : null; + }), _e = g || g === 0 ? due(g, J && A) : null; if (le.href !== void 0) return O(/* @__PURE__ */ k.createElement("a", Object.assign({}, le, { className: ie(ue, { @@ -9393,7 +9434,7 @@ const Pue = /* @__PURE__ */ k.forwardRef((e, t) => { }), href: $ ? void 0 : le.href, style: he, - onClick: te, + onClick: re, ref: q, tabIndex: $ ? -1 : 0 }), pe, _e)); @@ -9401,25 +9442,25 @@ const Pue = /* @__PURE__ */ k.forwardRef((e, t) => { type: b, className: ue, style: he, - onClick: te, + onClick: re, disabled: $, ref: q - }), pe, _e, !!Y && /* @__PURE__ */ k.createElement(xue, { + }), pe, _e, !!Y && /* @__PURE__ */ k.createElement(Lue, { key: "compact", prefixCls: M })); - return Dy(P) || (be = /* @__PURE__ */ k.createElement(wm, { + return Oy(P) || (be = /* @__PURE__ */ k.createElement(Em, { component: "Button", disabled: H }, be)), O(be); -}), kr = Pue; -kr.Group = Qce; -kr.__ANT_BUTTON = !0; -process.env.NODE_ENV !== "production" && (kr.displayName = "Button"); +}), Fr = kue; +Fr.Group = cue; +Fr.__ANT_BUTTON = !0; +process.env.NODE_ENV !== "production" && (Fr.displayName = "Button"); function V1(e) { return !!(e != null && e.then); } -const JD = (e) => { +const J2 = (e) => { const { type: t, children: r, @@ -9471,16 +9512,16 @@ const JD = (e) => { } v(C); }; - return /* @__PURE__ */ S.createElement(kr, Object.assign({}, qD(t), { + return /* @__PURE__ */ S.createElement(Fr, Object.assign({}, q2(t), { onClick: m, loading: f, prefixCls: n }, i, { ref: h }), r); -}, Em = /* @__PURE__ */ k.createContext({}), { - Provider: EW -} = Em, sN = () => { +}, Pm = /* @__PURE__ */ k.createContext({}), { + Provider: TW +} = Pm, cN = () => { const { autoFocusButton: e, cancelButtonProps: t, @@ -9491,8 +9532,8 @@ const JD = (e) => { close: a, onCancel: s, onConfirm: l - } = Jt(Em); - return i ? /* @__PURE__ */ k.createElement(JD, { + } = Jt(Pm); + return i ? /* @__PURE__ */ k.createElement(J2, { isSilent: n, actionFn: s, close: function() { @@ -9502,7 +9543,7 @@ const JD = (e) => { buttonProps: t, prefixCls: `${o}-btn` }, r) : null; -}, lN = () => { +}, uN = () => { const { autoFocusButton: e, close: t, @@ -9513,8 +9554,8 @@ const JD = (e) => { okType: a, onConfirm: s, onOk: l - } = Jt(Em); - return /* @__PURE__ */ k.createElement(JD, { + } = Jt(Pm); + return /* @__PURE__ */ k.createElement(J2, { isSilent: r, type: a || "primary", actionFn: l, @@ -9526,14 +9567,14 @@ const JD = (e) => { prefixCls: `${i}-btn` }, o); }; -var RW = /* @__PURE__ */ S.createContext(null), cN = []; -function Tue(e, t) { +var _W = /* @__PURE__ */ S.createContext(null), dN = []; +function $ue(e, t) { var r = S.useState(function() { if (!ii()) return null; var p = document.createElement("div"); return process.env.NODE_ENV !== "production" && t && p.setAttribute("data-debug", t), p; - }), n = ce(r, 1), i = n[0], o = S.useRef(!1), a = S.useContext(RW), s = S.useState(cN), l = ce(s, 2), c = l[0], u = l[1], d = a || (o.current ? void 0 : function(p) { + }), n = ce(r, 1), i = n[0], o = S.useRef(!1), a = S.useContext(_W), s = S.useState(dN), l = ce(s, 2), c = l[0], u = l[1], d = a || (o.current ? void 0 : function(p) { u(function(g) { var v = [p].concat($e(g)); return v; @@ -9551,11 +9592,11 @@ function Tue(e, t) { }, [e]), Pr(function() { c.length && (c.forEach(function(p) { return p(); - }), u(cN)); + }), u(dN)); }, [c]), [i, d]; } var H1; -function PW(e) { +function MW(e) { var t = "rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)), r = document.createElement("div"); r.id = t; var n = r.style; @@ -9567,7 +9608,7 @@ function PW(e) { var s = getComputedStyle(e, "::-webkit-scrollbar"), l = parseInt(s.width, 10), c = parseInt(s.height, 10); try { var u = l ? "width: ".concat(s.width, ";") : "", d = c ? "height: ".concat(s.height, ";") : ""; - Tl(` + _l(` #`.concat(t, `::-webkit-scrollbar { `).concat(u, ` `).concat(d, ` @@ -9578,63 +9619,63 @@ function PW(e) { } document.body.appendChild(r); var h = e && i && !isNaN(i) ? i : r.offsetWidth - r.clientWidth, f = e && o && !isNaN(o) ? o : r.offsetHeight - r.clientHeight; - return document.body.removeChild(r), xv(t), { + return document.body.removeChild(r), Rv(t), { width: h, height: f }; } -function uN(e) { - return typeof document > "u" ? 0 : (H1 === void 0 && (H1 = PW()), H1.width); +function hN(e) { + return typeof document > "u" ? 0 : (H1 === void 0 && (H1 = MW()), H1.width); } function hT(e) { return typeof document > "u" || !e || !(e instanceof Element) ? { width: 0, height: 0 - } : PW(e); + } : MW(e); } -function _ue() { +function Bue() { return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth; } -var Mue = "rc-util-locker-".concat(Date.now()), dN = 0; -function Due(e) { +var Vue = "rc-util-locker-".concat(Date.now()), fN = 0; +function Hue(e) { var t = !!e, r = S.useState(function() { - return dN += 1, "".concat(Mue, "_").concat(dN); + return fN += 1, "".concat(Vue, "_").concat(fN); }), n = ce(r, 1), i = n[0]; Pr(function() { if (t) { - var o = hT(document.body).width, a = _ue(); - Tl(` + var o = hT(document.body).width, a = Bue(); + _l(` html body { overflow-y: hidden; `.concat(a ? "width: calc(100% - ".concat(o, "px);") : "", ` }`), i); } else - xv(i); + Rv(i); return function() { - xv(i); + Rv(i); }; }, [t, i]); } -var Iue = !1; -function Aue(e) { - return Iue; +var zue = !1; +function Gue(e) { + return zue; } -var hN = function(t) { +var pN = function(t) { return t === !1 ? !1 : !ii() || !t ? null : typeof t == "string" ? document.querySelector(t) : typeof t == "function" ? t() : t; -}, Rm = /* @__PURE__ */ S.forwardRef(function(e, t) { +}, Tm = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.open, n = e.autoLock, i = e.getContainer, o = e.debug, a = e.autoDestroy, s = a === void 0 ? !0 : a, l = e.children, c = S.useState(r), u = ce(c, 2), d = u[0], h = u[1], f = d || r; process.env.NODE_ENV !== "production" && Tt(ii() || !r, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."), S.useEffect(function() { (s || r) && h(r); }, [r, s]); var p = S.useState(function() { - return hN(i); + return pN(i); }), g = ce(p, 2), v = g[0], m = g[1]; S.useEffect(function() { - var D = hN(i); + var D = pN(i); m(D ?? null); }); - var y = Tue(f && !v, o), C = ce(y, 2), b = C[0], w = C[1], x = v ?? b; - Due(n && r && ii() && (x === b || x === document.body)); + var y = $ue(f && !v, o), C = ce(y, 2), b = C[0], w = C[1], x = v ?? b; + Hue(n && r && ii() && (x === b || x === document.body)); var E = null; if (l && Ws(l) && t) { var R = l; @@ -9643,24 +9684,24 @@ var hN = function(t) { var P = Xc(E, t); if (!f || !ii() || v === void 0) return null; - var T = x === !1 || Aue(), _ = l; + var T = x === !1 || Gue(), _ = l; return t && (_ = /* @__PURE__ */ S.cloneElement(l, { ref: P - })), /* @__PURE__ */ S.createElement(RW.Provider, { + })), /* @__PURE__ */ S.createElement(_W.Provider, { value: w - }, T ? _ : /* @__PURE__ */ Db(_, x)); + }, T ? _ : /* @__PURE__ */ Ab(_, x)); }); -process.env.NODE_ENV !== "production" && (Rm.displayName = "Portal"); -var TW = /* @__PURE__ */ S.createContext({}); -function Oue() { +process.env.NODE_ENV !== "production" && (Tm.displayName = "Portal"); +var DW = /* @__PURE__ */ S.createContext({}); +function Wue() { var e = Z({}, S); return e.useId; } -var fN = 0, pN = Oue(); -const _W = pN ? ( +var gN = 0, vN = Wue(); +const IW = vN ? ( // Use React `useId` function(t) { - var r = pN(); + var r = vN(); return t || (process.env.NODE_ENV === "test" ? "test-id" : r); } ) : ( @@ -9668,16 +9709,16 @@ const _W = pN ? ( function(t) { var r = S.useState("ssr-id"), n = ce(r, 2), i = n[0], o = n[1]; return S.useEffect(function() { - var a = fN; - fN += 1, o("rc_unique_".concat(a)); + var a = gN; + gN += 1, o("rc_unique_".concat(a)); }, []), t || (process.env.NODE_ENV === "test" ? "test-id" : i); } ); -function gN(e, t, r) { +function mN(e, t, r) { var n = t; return !n && r && (n = "".concat(e, "-").concat(r)), n; } -function vN(e, t) { +function yN(e, t) { var r = e["page".concat(t ? "Y" : "X", "Offset")], n = "scroll".concat(t ? "Top" : "Left"); if (typeof r != "number") { var i = e.document; @@ -9685,29 +9726,29 @@ function vN(e, t) { } return r; } -function Lue(e) { +function jue(e) { var t = e.getBoundingClientRect(), r = { left: t.left, top: t.top }, n = e.ownerDocument, i = n.defaultView || n.parentWindow; - return r.left += vN(i), r.top += vN(i, !0), r; + return r.left += yN(i), r.top += yN(i, !0), r; } -const Fue = /* @__PURE__ */ S.memo(function(e) { +const Uue = /* @__PURE__ */ S.memo(function(e) { var t = e.children; return t; }, function(e, t) { var r = t.shouldUpdate; return !r; }); -var mN = { +var CN = { width: 0, height: 0, overflow: "hidden", outline: "none" -}, Nue = { +}, Kue = { outline: "none" -}, eI = /* @__PURE__ */ k.forwardRef(function(e, t) { - var r = e.prefixCls, n = e.className, i = e.style, o = e.title, a = e.ariaId, s = e.footer, l = e.closable, c = e.closeIcon, u = e.onClose, d = e.children, h = e.bodyStyle, f = e.bodyProps, p = e.modalRender, g = e.onMouseDown, v = e.onMouseUp, m = e.holderRef, y = e.visible, C = e.forceRender, b = e.width, w = e.height, x = e.classNames, E = e.styles, R = k.useContext(TW), P = R.panel, T = Xc(m, P), _ = ve(), D = ve(), A = ve(); +}, eD = /* @__PURE__ */ k.forwardRef(function(e, t) { + var r = e.prefixCls, n = e.className, i = e.style, o = e.title, a = e.ariaId, s = e.footer, l = e.closable, c = e.closeIcon, u = e.onClose, d = e.children, h = e.bodyStyle, f = e.bodyProps, p = e.modalRender, g = e.onMouseDown, v = e.onMouseUp, m = e.holderRef, y = e.visible, C = e.forceRender, b = e.width, w = e.height, x = e.classNames, E = e.styles, R = k.useContext(DW), P = R.panel, T = Xc(m, P), _ = ve(), D = ve(), A = ve(); k.useImperativeHandle(t, function() { return { focus: function() { @@ -9737,7 +9778,7 @@ var mN = { }, /* @__PURE__ */ k.createElement("div", { className: "".concat(r, "-title"), id: a - }, o)) : null, N = Ct(function() { + }, o)) : null, N = St(function() { return pt(l) === "object" && l !== null ? l : l ? { closeIcon: c ?? /* @__PURE__ */ k.createElement("span", { className: "".concat(r, "-close-x") @@ -9770,27 +9811,27 @@ var mN = { }, /* @__PURE__ */ k.createElement("div", { tabIndex: 0, ref: _, - style: mN, + style: CN, "aria-hidden": "true" }), /* @__PURE__ */ k.createElement("div", { ref: A, tabIndex: -1, - style: Nue - }, /* @__PURE__ */ k.createElement(Fue, { + style: Kue + }, /* @__PURE__ */ k.createElement(Uue, { shouldUpdate: y || C }, p ? p(V) : V)), /* @__PURE__ */ k.createElement("div", { tabIndex: 0, ref: D, - style: mN, + style: CN, "aria-hidden": "true" })); }); -process.env.NODE_ENV !== "production" && (eI.displayName = "Panel"); -var MW = /* @__PURE__ */ S.forwardRef(function(e, t) { +process.env.NODE_ENV !== "production" && (eD.displayName = "Panel"); +var AW = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.prefixCls, n = e.title, i = e.style, o = e.className, a = e.visible, s = e.forceRender, l = e.destroyOnClose, c = e.motionName, u = e.ariaId, d = e.onVisibleChanged, h = e.mousePosition, f = ve(), p = S.useState(), g = ce(p, 2), v = g[0], m = g[1], y = {}; v && (y.transformOrigin = v); function C() { - var b = Lue(f.current); + var b = jue(f.current); m(h && (h.x || h.y) ? "".concat(h.x - b.left, "px ").concat(h.y - b.top, "px") : ""); } return /* @__PURE__ */ S.createElement(us, { @@ -9804,7 +9845,7 @@ var MW = /* @__PURE__ */ S.forwardRef(function(e, t) { ref: f }, function(b, w) { var x = b.className, E = b.style; - return /* @__PURE__ */ S.createElement(eI, Te({}, e, { + return /* @__PURE__ */ S.createElement(eD, Te({}, e, { ref: t, title: n, ariaId: u, @@ -9815,8 +9856,8 @@ var MW = /* @__PURE__ */ S.forwardRef(function(e, t) { })); }); }); -MW.displayName = "Content"; -var kue = function(t) { +AW.displayName = "Content"; +var Yue = function(t) { var r = t.prefixCls, n = t.style, i = t.visible, o = t.maskProps, a = t.motionName, s = t.className; return /* @__PURE__ */ S.createElement(us, { key: "mask", @@ -9831,23 +9872,23 @@ var kue = function(t) { className: ie("".concat(r, "-mask"), u, s) }, o)); }); -}, $ue = function(t) { +}, que = function(t) { var r = t.prefixCls, n = r === void 0 ? "rc-dialog" : r, i = t.zIndex, o = t.visible, a = o === void 0 ? !1 : o, s = t.keyboard, l = s === void 0 ? !0 : s, c = t.focusTriggerAfterClose, u = c === void 0 ? !0 : c, d = t.wrapStyle, h = t.wrapClassName, f = t.wrapProps, p = t.onClose, g = t.afterOpenChange, v = t.afterClose, m = t.transitionName, y = t.animation, C = t.closable, b = C === void 0 ? !0 : C, w = t.mask, x = w === void 0 ? !0 : w, E = t.maskTransitionName, R = t.maskAnimation, P = t.maskClosable, T = P === void 0 ? !0 : P, _ = t.maskStyle, D = t.maskProps, A = t.rootClassName, M = t.classNames, O = t.styles; - process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(re) { - Gs(!(re in t), "".concat(re, " is deprecated, please use styles instead.")); + process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(ne) { + Gs(!(ne in t), "".concat(ne, " is deprecated, please use styles instead.")); }), "wrapClassName" in t && Gs(!1, "wrapClassName is deprecated, please use classNames instead.")); - var L = ve(), N = ve(), F = ve(), $ = S.useState(a), I = ce($, 2), V = I[0], H = I[1], B = _W(); + var L = ve(), N = ve(), F = ve(), $ = S.useState(a), I = ce($, 2), V = I[0], H = I[1], B = IW(); function W() { kP(N.current, document.activeElement) || (L.current = document.activeElement); } function j() { if (!kP(N.current, document.activeElement)) { - var re; - (re = F.current) === null || re === void 0 || re.focus(); + var ne; + (ne = F.current) === null || ne === void 0 || ne.focus(); } } - function X(re) { - if (re) + function X(ne) { + if (ne) j(); else { if (H(!1), x && L.current && u) { @@ -9861,33 +9902,33 @@ var kue = function(t) { } V && (v == null || v()); } - g == null || g(re); + g == null || g(ne); } - function q(re) { - p == null || p(re); + function q(ne) { + p == null || p(ne); } - var J = ve(!1), te = ve(), Q = function() { - clearTimeout(te.current), J.current = !0; + var J = ve(!1), re = ve(), Q = function() { + clearTimeout(re.current), J.current = !0; }, Y = function() { - te.current = setTimeout(function() { + re.current = setTimeout(function() { J.current = !1; }); }, K = null; T && (K = function(le) { J.current ? J.current = !1 : N.current === le.target && q(le); }); - function ae(re) { - if (l && re.keyCode === Oe.ESC) { - re.stopPropagation(), q(re); + function ae(ne) { + if (l && ne.keyCode === Le.ESC) { + ne.stopPropagation(), q(ne); return; } - a && re.keyCode === Oe.TAB && F.current.changeActive(!re.shiftKey); + a && ne.keyCode === Le.TAB && F.current.changeActive(!ne.shiftKey); } Bt(function() { a && (H(!0), W()); }, [a]), Bt(function() { return function() { - clearTimeout(te.current); + clearTimeout(re.current); }; }, []); var G = Z(Z(Z({ @@ -9899,10 +9940,10 @@ var kue = function(t) { className: ie("".concat(n, "-root"), A) }, Ji(t, { data: !0 - })), /* @__PURE__ */ S.createElement(kue, { + })), /* @__PURE__ */ S.createElement(Yue, { prefixCls: n, visible: x && a, - motionName: gN(n, E, R), + motionName: mN(n, E, R), style: Z(Z({ zIndex: i }, _), O == null ? void 0 : O.mask), @@ -9915,7 +9956,7 @@ var kue = function(t) { ref: N, onClick: K, style: G - }, f), /* @__PURE__ */ S.createElement(MW, Te({}, t, { + }, f), /* @__PURE__ */ S.createElement(AW, Te({}, t, { onMouseDown: Q, onMouseUp: Y, ref: F, @@ -9925,9 +9966,9 @@ var kue = function(t) { visible: a && V, onClose: q, onVisibleChanged: X, - motionName: gN(n, m, y) + motionName: mN(n, m, y) })))); -}, tI = function(t) { +}, tD = function(t) { var r = t.visible, n = t.getContainer, i = t.forceRender, o = t.destroyOnClose, a = o === void 0 ? !1 : o, s = t.afterClose, l = t.panelRef, c = S.useState(r), u = ce(c, 2), d = u[0], h = u[1], f = S.useMemo(function() { return { panel: l @@ -9935,21 +9976,21 @@ var kue = function(t) { }, [l]); return S.useEffect(function() { r && h(!0); - }, [r]), !i && a && !d ? null : /* @__PURE__ */ S.createElement(TW.Provider, { + }, [r]), !i && a && !d ? null : /* @__PURE__ */ S.createElement(DW.Provider, { value: f - }, /* @__PURE__ */ S.createElement(Rm, { + }, /* @__PURE__ */ S.createElement(Tm, { open: r || i || d, autoDestroy: !1, getContainer: n, autoLock: r || d - }, /* @__PURE__ */ S.createElement($ue, Te({}, t, { + }, /* @__PURE__ */ S.createElement(que, Te({}, t, { destroyOnClose: a, afterClose: function() { s == null || s(), h(!1); } })))); }; -tI.displayName = "Dialog"; +tD.displayName = "Dialog"; var Xu = "RC_FORM_INTERNAL_HOOKS", cn = function() { Tt(!1, "Can not find FormContext. Please make sure you wrap Field under Form."); }, Df = /* @__PURE__ */ S.createContext({ @@ -9984,11 +10025,11 @@ var Xu = "RC_FORM_INTERNAL_HOOKS", cn = function() { getInitialValue: cn }; } -}), QC = /* @__PURE__ */ S.createContext(null); +}), tS = /* @__PURE__ */ S.createContext(null); function fT(e) { return e == null ? [] : Array.isArray(e) ? e : [e]; } -function Bue(e) { +function Xue(e) { return e && !!e._init; } function pT() { @@ -10045,31 +10086,31 @@ function pT() { }; } var gT = pT(); -function Vue(e) { +function Zue(e) { try { return Function.toString.call(e).indexOf("[native code]") !== -1; } catch { return typeof e == "function"; } } -function Hue(e, t, r) { - if (ID()) return Reflect.construct.apply(null, arguments); +function Que(e, t, r) { + if (I2()) return Reflect.construct.apply(null, arguments); var n = [null]; n.push.apply(n, t); var i = new (e.bind.apply(e, n))(); - return r && Sv(i, r.prototype), i; + return r && wv(i, r.prototype), i; } function vT(e) { var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0; return vT = function(n) { - if (n === null || !Vue(n)) return n; + if (n === null || !Zue(n)) return n; if (typeof n != "function") throw new TypeError("Super expression must either be null or a function"); if (t !== void 0) { if (t.has(n)) return t.get(n); t.set(n, i); } function i() { - return Hue(n, arguments, bv(this).constructor); + return Que(n, arguments, xv(this).constructor); } return i.prototype = Object.create(n.prototype, { constructor: { @@ -10078,12 +10119,12 @@ function vT(e) { writable: !0, configurable: !0 } - }), Sv(i, n); + }), wv(i, n); }, vT(e); } -var zue = /%[sdj%]/g, DW = function() { +var Jue = /%[sdj%]/g, OW = function() { }; -typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (DW = function(t, r) { +typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (OW = function(t, r) { typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && r.every(function(n) { return typeof n == "string"; }) && console.warn(t, r); @@ -10103,7 +10144,7 @@ function $o(e) { if (typeof e == "function") return e.apply(null, r); if (typeof e == "string") { - var a = e.replace(zue, function(s) { + var a = e.replace(Jue, function(s) { if (s === "%%") return "%"; if (i >= o) @@ -10128,13 +10169,13 @@ function $o(e) { } return e; } -function Gue(e) { +function ede(e) { return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern"; } function si(e, t) { - return !!(e == null || t === "array" && Array.isArray(e) && !e.length || Gue(t) && typeof e == "string" && !e); + return !!(e == null || t === "array" && Array.isArray(e) && !e.length || ede(t) && typeof e == "string" && !e); } -function Wue(e, t, r) { +function tde(e, t, r) { var n = [], i = 0, o = e.length; function a(s) { n.push.apply(n, $e(s || [])), i++, i === o && r(n); @@ -10143,7 +10184,7 @@ function Wue(e, t, r) { t(s, a); }); } -function yN(e, t, r) { +function SN(e, t, r) { var n = 0, i = e.length; function o(a) { if (a && a.length) { @@ -10155,13 +10196,13 @@ function yN(e, t, r) { } o([]); } -function jue(e) { +function rde(e) { var t = []; return Object.keys(e).forEach(function(r) { t.push.apply(t, $e(e[r] || [])); }), t; } -var CN = /* @__PURE__ */ function(e) { +var bN = /* @__PURE__ */ function(e) { Qs(r, e); var t = Js(r); function r(n, i) { @@ -10170,13 +10211,13 @@ var CN = /* @__PURE__ */ function(e) { } return Zn(r); }(/* @__PURE__ */ vT(Error)); -function Uue(e, t, r, n, i) { +function nde(e, t, r, n, i) { if (t.first) { var o = new Promise(function(h, f) { var p = function(m) { - return n(m), m.length ? f(new CN(m, mT(m))) : h(i); - }, g = jue(e); - yN(g, r, p); + return n(m), m.length ? f(new bN(m, mT(m))) : h(i); + }, g = rde(e); + SN(g, r, p); }); return o.catch(function(h) { return h; @@ -10185,21 +10226,21 @@ function Uue(e, t, r, n, i) { var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), l = s.length, c = 0, u = [], d = new Promise(function(h, f) { var p = function(v) { if (u.push.apply(u, v), c++, c === l) - return n(u), u.length ? f(new CN(u, mT(u))) : h(i); + return n(u), u.length ? f(new bN(u, mT(u))) : h(i); }; s.length || (n(u), h(i)), s.forEach(function(g) { var v = e[g]; - a.indexOf(g) !== -1 ? yN(v, r, p) : Wue(v, r, p); + a.indexOf(g) !== -1 ? SN(v, r, p) : tde(v, r, p); }); }); return d.catch(function(h) { return h; }), d; } -function Kue(e) { +function ide(e) { return !!(e && e.message !== void 0); } -function Yue(e, t) { +function ode(e, t) { for (var r = e, n = 0; n < t.length; n++) { if (r == null) return r; @@ -10207,17 +10248,17 @@ function Yue(e, t) { } return r; } -function SN(e, t) { +function wN(e, t) { return function(r) { var n; - return e.fullFields ? n = Yue(t, e.fullFields) : n = t[r.field || e.fullField], Kue(r) ? (r.field = r.field || e.fullField, r.fieldValue = n, r) : { + return e.fullFields ? n = ode(t, e.fullFields) : n = t[r.field || e.fullField], ide(r) ? (r.field = r.field || e.fullField, r.fieldValue = n, r) : { message: typeof r == "function" ? r() : r, fieldValue: n, field: r.field || e.fullField }; }; } -function bN(e, t) { +function xN(e, t) { if (t) { for (var r in t) if (t.hasOwnProperty(r)) { @@ -10227,9 +10268,9 @@ function bN(e, t) { } return e; } -var sh = "enum", que = function(t, r, n, i, o) { +var sh = "enum", ade = function(t, r, n, i, o) { t[sh] = Array.isArray(t[sh]) ? t[sh] : [], t[sh].indexOf(r) === -1 && i.push($o(o.messages[sh], t.fullField, t[sh].join(", "))); -}, Xue = function(t, r, n, i, o) { +}, sde = function(t, r, n, i, o) { if (t.pattern) { if (t.pattern instanceof RegExp) t.pattern.lastIndex = 0, t.pattern.test(r) || i.push($o(o.messages.pattern.mismatch, t.fullField, r, t.pattern)); @@ -10238,17 +10279,17 @@ var sh = "enum", que = function(t, r, n, i, o) { a.test(r) || i.push($o(o.messages.pattern.mismatch, t.fullField, r, t.pattern)); } } -}, Zue = function(t, r, n, i, o) { +}, lde = function(t, r, n, i, o) { var a = typeof t.len == "number", s = typeof t.min == "number", l = typeof t.max == "number", c = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = r, d = null, h = typeof r == "number", f = typeof r == "string", p = Array.isArray(r); if (h ? d = "number" : f ? d = "string" : p && (d = "array"), !d) return !1; p && (u = r.length), f && (u = r.replace(c, "_").length), a ? u !== t.len && i.push($o(o.messages[d].len, t.fullField, t.len)) : s && !l && u < t.min ? i.push($o(o.messages[d].min, t.fullField, t.min)) : l && !s && u > t.max ? i.push($o(o.messages[d].max, t.fullField, t.max)) : s && l && (u < t.min || u > t.max) && i.push($o(o.messages[d].range, t.fullField, t.min, t.max)); -}, IW = function(t, r, n, i, o, a) { +}, LW = function(t, r, n, i, o, a) { t.required && (!n.hasOwnProperty(t.field) || si(r, a || t.type)) && i.push($o(o.messages.required, t.fullField)); -}, Iy; -const Que = function() { - if (Iy) - return Iy; +}, Ly; +const cde = function() { + if (Ly) + return Ly; var e = "[a-fA-F\\d:]", t = function(x) { return x && x.includeBoundaries ? "(?:(?<=\\s|^)(?=".concat(e, ")|(?<=").concat(e, ")(?=\\s|$))") : ""; }, r = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", n = "[a-fA-F\\d]{1,4}", i = [ @@ -10277,9 +10318,9 @@ const Que = function() { return w && w.exact ? c : new RegExp("".concat(t(w)).concat(a).concat(t(w)), "g"); }; var d = "(?:(?:[a-z]+:)?//)", h = "(?:\\S+(?::\\S*)?@)?", f = u.v4().source, p = u.v6().source, g = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", v = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", m = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", y = "(?::\\d{2,5})?", C = '(?:[/?#][^\\s"]*)?', b = "(?:".concat(d, "|www\\.)").concat(h, "(?:localhost|").concat(f, "|").concat(p, "|").concat(g).concat(v).concat(m, ")").concat(y).concat(C); - return Iy = new RegExp("(?:^".concat(b, "$)"), "i"), Iy; + return Ly = new RegExp("(?:^".concat(b, "$)"), "i"), Ly; }; -var wN = { +var EN = { // http://emailregex.com/ email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/, // url: new RegExp( @@ -10287,12 +10328,12 @@ var wN = { // 'i', // ), hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i -}, Sg = { +}, wg = { integer: function(t) { - return Sg.number(t) && parseInt(t, 10) === t; + return wg.number(t) && parseInt(t, 10) === t; }, float: function(t) { - return Sg.number(t) && !Sg.integer(t); + return wg.number(t) && !wg.integer(t); }, array: function(t) { return Array.isArray(t); @@ -10313,39 +10354,39 @@ var wN = { return isNaN(t) ? !1 : typeof t == "number"; }, object: function(t) { - return pt(t) === "object" && !Sg.array(t); + return pt(t) === "object" && !wg.array(t); }, method: function(t) { return typeof t == "function"; }, email: function(t) { - return typeof t == "string" && t.length <= 320 && !!t.match(wN.email); + return typeof t == "string" && t.length <= 320 && !!t.match(EN.email); }, url: function(t) { - return typeof t == "string" && t.length <= 2048 && !!t.match(Que()); + return typeof t == "string" && t.length <= 2048 && !!t.match(cde()); }, hex: function(t) { - return typeof t == "string" && !!t.match(wN.hex); + return typeof t == "string" && !!t.match(EN.hex); } -}, Jue = function(t, r, n, i, o) { +}, ude = function(t, r, n, i, o) { if (t.required && r === void 0) { - IW(t, r, n, i, o); + LW(t, r, n, i, o); return; } var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = t.type; - a.indexOf(s) > -1 ? Sg[s](r) || i.push($o(o.messages.types[s], t.fullField, t.type)) : s && pt(r) !== t.type && i.push($o(o.messages.types[s], t.fullField, t.type)); -}, ede = function(t, r, n, i, o) { + a.indexOf(s) > -1 ? wg[s](r) || i.push($o(o.messages.types[s], t.fullField, t.type)) : s && pt(r) !== t.type && i.push($o(o.messages.types[s], t.fullField, t.type)); +}, dde = function(t, r, n, i, o) { (/^\s+$/.test(r) || r === "") && i.push($o(o.messages.whitespace, t.fullField)); }; const Ar = { - required: IW, - whitespace: ede, - type: Jue, - range: Zue, - enum: que, - pattern: Xue + required: LW, + whitespace: dde, + type: ude, + range: lde, + enum: ade, + pattern: sde }; -var tde = function(t, r, n, i, o) { +var hde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r) && !t.required) @@ -10353,7 +10394,7 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o); } n(a); -}, rde = function(t, r, n, i, o) { +}, fde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (r == null && !t.required) @@ -10361,7 +10402,7 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o, "array"), r != null && (Ar.type(t, r, i, a, o), Ar.range(t, r, i, a, o)); } n(a); -}, nde = function(t, r, n, i, o) { +}, pde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r) && !t.required) @@ -10369,7 +10410,7 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o), r !== void 0 && Ar.type(t, r, i, a, o); } n(a); -}, ide = function(t, r, n, i, o) { +}, gde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r, "date") && !t.required) @@ -10380,15 +10421,15 @@ var tde = function(t, r, n, i, o) { } } n(a); -}, ode = "enum", ade = function(t, r, n, i, o) { +}, vde = "enum", mde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r) && !t.required) return n(); - Ar.required(t, r, i, a, o), r !== void 0 && Ar[ode](t, r, i, a, o); + Ar.required(t, r, i, a, o), r !== void 0 && Ar[vde](t, r, i, a, o); } n(a); -}, sde = function(t, r, n, i, o) { +}, yde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r) && !t.required) @@ -10396,7 +10437,7 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o), r !== void 0 && (Ar.type(t, r, i, a, o), Ar.range(t, r, i, a, o)); } n(a); -}, lde = function(t, r, n, i, o) { +}, Cde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r) && !t.required) @@ -10404,7 +10445,7 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o), r !== void 0 && (Ar.type(t, r, i, a, o), Ar.range(t, r, i, a, o)); } n(a); -}, cde = function(t, r, n, i, o) { +}, Sde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r) && !t.required) @@ -10412,7 +10453,7 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o), r !== void 0 && Ar.type(t, r, i, a, o); } n(a); -}, ude = function(t, r, n, i, o) { +}, bde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (r === "" && (r = void 0), si(r) && !t.required) @@ -10420,7 +10461,7 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o), r !== void 0 && (Ar.type(t, r, i, a, o), Ar.range(t, r, i, a, o)); } n(a); -}, dde = function(t, r, n, i, o) { +}, wde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r) && !t.required) @@ -10428,7 +10469,7 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o), r !== void 0 && Ar.type(t, r, i, a, o); } n(a); -}, hde = function(t, r, n, i, o) { +}, xde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r, "string") && !t.required) @@ -10436,7 +10477,7 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o), si(r, "string") || Ar.pattern(t, r, i, a, o); } n(a); -}, fde = function(t, r, n, i, o) { +}, Ede = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r) && !t.required) @@ -10444,10 +10485,10 @@ var tde = function(t, r, n, i, o) { Ar.required(t, r, i, a, o), si(r) || Ar.type(t, r, i, a, o); } n(a); -}, pde = function(t, r, n, i, o) { +}, Rde = function(t, r, n, i, o) { var a = [], s = Array.isArray(r) ? "array" : pt(r); Ar.required(t, r, i, a, o, s), n(a); -}, gde = function(t, r, n, i, o) { +}, Pde = function(t, r, n, i, o) { var a = [], s = t.required || !t.required && i.hasOwnProperty(t.field); if (s) { if (si(r, "string") && !t.required) @@ -10464,26 +10505,26 @@ var tde = function(t, r, n, i, o) { } n(s); }; -const Gg = { - string: gde, - method: cde, - number: ude, - boolean: nde, - regexp: fde, - integer: lde, - float: sde, - array: rde, - object: dde, - enum: ade, - pattern: hde, - date: ide, +const jg = { + string: Pde, + method: Sde, + number: bde, + boolean: pde, + regexp: Ede, + integer: Cde, + float: yde, + array: fde, + object: wde, + enum: mde, + pattern: xde, + date: gde, url: z1, hex: z1, email: z1, - required: pde, - any: tde + required: Rde, + any: hde }; -var Pm = /* @__PURE__ */ function() { +var _m = /* @__PURE__ */ function() { function e(t) { Xn(this, e), U(this, "rules", null), U(this, "_messages", gT), this.define(t); } @@ -10503,7 +10544,7 @@ var Pm = /* @__PURE__ */ function() { }, { key: "messages", value: function(r) { - return r && (this._messages = bN(pT(), r)), this._messages; + return r && (this._messages = xN(pT(), r)), this._messages; } }, { key: "validate", @@ -10527,7 +10568,7 @@ var Pm = /* @__PURE__ */ function() { } if (s.messages) { var u = this.messages(); - u === gT && (u = pT()), bN(u, s.messages), s.messages = u; + u === gT && (u = pT()), xN(u, s.messages), s.messages = u; } else s.messages = this.messages(); var d = {}, h = s.keys || Object.keys(this.rules); @@ -10546,7 +10587,7 @@ var Pm = /* @__PURE__ */ function() { }); }); var f = {}; - return Uue(d, s, function(p, g) { + return nde(d, s, function(p, g) { var v = p.rule, m = (v.type === "object" || v.type === "array") && (pt(v.fields) === "object" || pt(v.defaultField) === "object"); m = m && (v.required || !v.required && p.value), v.field = p.field; function y(E, R) { @@ -10558,14 +10599,14 @@ var Pm = /* @__PURE__ */ function() { function C() { var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], R = Array.isArray(E) ? E : [E]; !s.suppressWarning && R.length && e.warning("async-validator:", R), R.length && v.message !== void 0 && (R = [].concat(v.message)); - var P = R.map(SN(v, a)); + var P = R.map(wN(v, a)); if (s.first && P.length) return f[v.field] = 1, g(P); if (!m) g(P); else { if (v.required && !p.value) - return v.message !== void 0 ? P = [].concat(v.message).map(SN(v, a)) : s.error && (P = [s.error(v, $o(s.messages.required, v.field))]), g(P); + return v.message !== void 0 ? P = [].concat(v.message).map(wN(v, a)) : s.error && (P = [s.error(v, $o(s.messages.required, v.field))]), g(P); var T = {}; v.defaultField && Object.keys(p.value).map(function(A) { T[A] = v.defaultField; @@ -10608,7 +10649,7 @@ var Pm = /* @__PURE__ */ function() { }, { key: "getType", value: function(r) { - if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !Gg.hasOwnProperty(r.type)) + if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !jg.hasOwnProperty(r.type)) throw new Error($o("Unknown rule type %s", r.type)); return r.type || "string"; } @@ -10618,19 +10659,19 @@ var Pm = /* @__PURE__ */ function() { if (typeof r.validator == "function") return r.validator; var n = Object.keys(r), i = n.indexOf("message"); - return i !== -1 && n.splice(i, 1), n.length === 1 && n[0] === "required" ? Gg.required : Gg[this.getType(r)] || void 0; + return i !== -1 && n.splice(i, 1), n.length === 1 && n[0] === "required" ? jg.required : jg[this.getType(r)] || void 0; } }]), e; }(); -U(Pm, "register", function(t, r) { +U(_m, "register", function(t, r) { if (typeof r != "function") throw new Error("Cannot register a validator by type, validator is not a function"); - Gg[t] = r; + jg[t] = r; }); -U(Pm, "warning", DW); -U(Pm, "messages", gT); -U(Pm, "validators", Gg); -var _o = "'${name}' is not a valid ${type}", AW = { +U(_m, "warning", OW); +U(_m, "messages", gT); +U(_m, "validators", jg); +var _o = "'${name}' is not a valid ${type}", FW = { default: "Validation error on field '${name}'", required: "'${name}' is required", enum: "'${name}' must be one of [${enum}]", @@ -10676,14 +10717,14 @@ var _o = "'${name}' is not a valid ${type}", AW = { pattern: { mismatch: "'${name}' does not match pattern ${pattern}" } -}, xN = Pm; -function vde(e, t) { +}, RN = _m; +function Tde(e, t) { return e.replace(/\$\{\w+\}/g, function(r) { var n = r.slice(2, -1); return t[n]; }); } -var EN = "CODE_LOGIC_ERROR"; +var PN = "CODE_LOGIC_ERROR"; function yT(e, t, r, n, i) { return CT.apply(this, arguments); } @@ -10693,20 +10734,20 @@ function CT() { return to().wrap(function(v) { for (; ; ) switch (v.prev = v.next) { case 0: - return a = Z({}, n), delete a.ruleIndex, xN.warning = function() { + return a = Z({}, n), delete a.ruleIndex, RN.warning = function() { }, a.validator && (s = a.validator, a.validator = function() { try { return s.apply(void 0, arguments); } catch (m) { - return console.error(m), Promise.reject(EN); + return console.error(m), Promise.reject(PN); } - }), l = null, a && a.type === "array" && a.defaultField && (l = a.defaultField, delete a.defaultField), c = new xN(U({}, t, [a])), u = Zh(AW, i.validateMessages), c.messages(u), d = [], v.prev = 10, v.next = 13, Promise.resolve(c.validate(U({}, t, r), Z({}, i))); + }), l = null, a && a.type === "array" && a.defaultField && (l = a.defaultField, delete a.defaultField), c = new RN(U({}, t, [a])), u = Zh(FW, i.validateMessages), c.messages(u), d = [], v.prev = 10, v.next = 13, Promise.resolve(c.validate(U({}, t, r), Z({}, i))); case 13: v.next = 18; break; case 15: v.prev = 15, v.t0 = v.catch(10), v.t0.errors && (d = v.t0.errors.map(function(m, y) { - var C = m.message, b = C === EN ? u.default : C; + var C = m.message, b = C === PN ? u.default : C; return /* @__PURE__ */ S.isValidElement(b) ? ( // Wrap ReactNode with `key` /* @__PURE__ */ S.cloneElement(b, { @@ -10731,7 +10772,7 @@ function CT() { name: t, enum: (n.enum || []).join(", ") }, o), p = d.map(function(m) { - return typeof m == "string" ? vde(m, f) : m; + return typeof m == "string" ? Tde(m, f) : m; }), v.abrupt("return", p); case 26: case "end": @@ -10740,7 +10781,7 @@ function CT() { }, e, null, [[10, 15]]); })), CT.apply(this, arguments); } -function mde(e, t, r, n, i, o) { +function _de(e, t, r, n, i, o) { var a = e.join("."), s = r.map(function(u, d) { var h = u.validator, f = Z(Z({}, u), {}, { ruleIndex: d @@ -10810,7 +10851,7 @@ function mde(e, t, r, n, i, o) { }; }); }); - l = (i ? Cde(c) : yde(c)).then(function(u) { + l = (i ? Dde(c) : Mde(c)).then(function(u) { return Promise.reject(u); }); } @@ -10818,7 +10859,7 @@ function mde(e, t, r, n, i, o) { return u; }), l; } -function yde(e) { +function Mde(e) { return ST.apply(this, arguments); } function ST() { @@ -10837,7 +10878,7 @@ function ST() { }, e); })), ST.apply(this, arguments); } -function Cde(e) { +function Dde(e) { return bT.apply(this, arguments); } function bT() { @@ -10863,7 +10904,7 @@ function bT() { function Hn(e) { return fT(e); } -function RN(e, t) { +function TN(e, t) { var r = {}; return t.forEach(function(n) { var i = ko(e, n); @@ -10873,16 +10914,16 @@ function RN(e, t) { function cf(e, t) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; return e && e.some(function(n) { - return OW(t, n, r); + return NW(t, n, r); }); } -function OW(e, t) { +function NW(e, t) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; return !e || !t || !r && e.length !== t.length ? !1 : t.every(function(n, i) { return e[i] === n; }); } -function Sde(e, t) { +function Ide(e, t) { if (e === t) return !0; if (!e && t || e && !t || !e || !t || pt(e) !== "object" || pt(t) !== "object") @@ -10893,24 +10934,24 @@ function Sde(e, t) { return typeof a == "function" && typeof s == "function" ? !0 : a === s; }); } -function bde(e) { +function Ade(e) { var t = arguments.length <= 1 ? void 0 : arguments[1]; return t && t.target && pt(t.target) === "object" && e in t.target ? t.target[e] : t; } -function PN(e, t, r) { +function _N(e, t, r) { var n = e.length; if (t < 0 || t >= n || r < 0 || r >= n) return e; var i = e[t], o = t - r; return o > 0 ? [].concat($e(e.slice(0, r)), [i], $e(e.slice(r, t)), $e(e.slice(t + 1, n))) : o < 0 ? [].concat($e(e.slice(0, t)), $e(e.slice(t + 1, r + 1)), [i], $e(e.slice(r + 1, n))) : e; } -var wde = ["name"], Xo = []; -function TN(e, t, r, n, i, o) { +var Ode = ["name"], Xo = []; +function MN(e, t, r, n, i, o) { return typeof e == "function" ? e(t, r, "source" in o ? { source: o.source } : {}) : n !== i; } -var rI = /* @__PURE__ */ function(e) { +var rD = /* @__PURE__ */ function(e) { Qs(r, e); var t = Js(r); function r(n) { @@ -10969,7 +11010,7 @@ var rI = /* @__PURE__ */ function(e) { i.reRender(); return; } - if (h && !m.length && TN(h, l, v, y, C, u)) { + if (h && !m.length && MN(h, l, v, y, C, u)) { i.reRender(); return; } @@ -10986,7 +11027,7 @@ var rI = /* @__PURE__ */ function(e) { break; } default: - if (b || (!p.length || m.length || h) && TN(h, l, v, y, C, u)) { + if (b || (!p.length || m.length || h) && MN(h, l, v, y, C, u)) { i.reRender(); return; } @@ -11027,7 +11068,7 @@ var rI = /* @__PURE__ */ function(e) { } return P.abrupt("return", []); case 10: - return E = mde(c, u, x, l, C, b), E.catch(function(T) { + return E = _de(c, u, x, l, C, b), E.catch(function(T) { return T; }).then(function() { var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xo; @@ -11085,7 +11126,7 @@ var rI = /* @__PURE__ */ function(e) { isFunction: !0 }); } - var u = bi(l); + var u = wi(l); return u.length !== 1 || !/* @__PURE__ */ S.isValidElement(u[0]) ? { child: u, isFunction: !1 @@ -11108,7 +11149,7 @@ var rI = /* @__PURE__ */ function(e) { i.touched = !0, i.dirty = !0, i.triggerMetaEvent(); for (var M, O = arguments.length, L = new Array(O), N = 0; N < O; N++) L[N] = arguments[N]; - f ? M = f.apply(void 0, L) : M = bde.apply(void 0, [g].concat(L)), p && (M = p(M, R, w(!0))), E({ + f ? M = f.apply(void 0, L) : M = Ade.apply(void 0, [g].concat(L)), p && (M = p(M, R, w(!0))), E({ type: "updateValue", namePath: C, value: M @@ -11163,14 +11204,14 @@ var rI = /* @__PURE__ */ function(e) { } }]), r; }(S.Component); -U(rI, "contextType", Df); -U(rI, "defaultProps", { +U(rD, "contextType", Df); +U(rD, "defaultProps", { trigger: "onChange", valuePropName: "value" }); -function LW(e) { - var t = e.name, r = Nt(e, wde), n = S.useContext(Df), i = S.useContext(QC), o = t !== void 0 ? Hn(t) : void 0, a = "keep"; - return r.isListField || (a = "_".concat((o || []).join("_"))), process.env.NODE_ENV !== "production" && r.preserve === !1 && r.isListField && o.length <= 1 && Tt(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ S.createElement(rI, Te({ +function kW(e) { + var t = e.name, r = Nt(e, Ode), n = S.useContext(Df), i = S.useContext(tS), o = t !== void 0 ? Hn(t) : void 0, a = "keep"; + return r.isListField || (a = "_".concat((o || []).join("_"))), process.env.NODE_ENV !== "production" && r.preserve === !1 && r.isListField && o.length <= 1 && Tt(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ S.createElement(rD, Te({ key: a, name: o, isListField: !!i @@ -11178,8 +11219,8 @@ function LW(e) { fieldContext: n })); } -function xde(e) { - var t = e.name, r = e.initialValue, n = e.children, i = e.rules, o = e.validateTrigger, a = e.isListField, s = S.useContext(Df), l = S.useContext(QC), c = S.useRef({ +function Lde(e) { + var t = e.name, r = e.initialValue, n = e.children, i = e.rules, o = e.validateTrigger, a = e.isListField, s = S.useContext(Df), l = S.useContext(tS), c = S.useRef({ keys: [], id: 0 }), u = c.current, d = S.useMemo(function() { @@ -11203,11 +11244,11 @@ function xde(e) { var C = y.source; return C === "internal" ? !1 : v !== m; }; - return /* @__PURE__ */ S.createElement(QC.Provider, { + return /* @__PURE__ */ S.createElement(tS.Provider, { value: f }, /* @__PURE__ */ S.createElement(Df.Provider, { value: h - }, /* @__PURE__ */ S.createElement(LW, { + }, /* @__PURE__ */ S.createElement(kW, { name: [], shouldUpdate: p, rules: i, @@ -11235,7 +11276,7 @@ function xde(e) { move: function(P, T) { if (P !== T) { var _ = w(); - P < 0 || P >= _.length || T < 0 || T >= _.length || (u.keys = PN(u.keys, P, T), C(PN(_, P, T))); + P < 0 || P >= _.length || T < 0 || T >= _.length || (u.keys = _N(u.keys, P, T), C(_N(_, P, T))); } } }, E = y || []; @@ -11249,7 +11290,7 @@ function xde(e) { }), x, v); }))); } -function Ede(e) { +function Fde(e) { var t = !1, r = e.length, n = []; return e.length ? new Promise(function(i, o) { e.forEach(function(a, s) { @@ -11261,11 +11302,11 @@ function Ede(e) { }); }) : Promise.resolve([]); } -var FW = "__@field_split__"; +var $W = "__@field_split__"; function G1(e) { return e.map(function(t) { return "".concat(pt(t), ":").concat(t); - }).join(FW); + }).join($W); } var lh = /* @__PURE__ */ function() { function e() { @@ -11297,7 +11338,7 @@ var lh = /* @__PURE__ */ function() { key: "map", value: function(r) { return $e(this.kvs.entries()).map(function(n) { - var i = ce(n, 2), o = i[0], a = i[1], s = o.split(FW); + var i = ce(n, 2), o = i[0], a = i[1], s = o.split($W); return r({ key: s.map(function(l) { var c = l.match(/^([^:]*):(.*)$/), u = ce(c, 3), d = u[1], h = u[2]; @@ -11317,7 +11358,7 @@ var lh = /* @__PURE__ */ function() { }), r; } }]), e; -}(), Rde = ["name"], Pde = /* @__PURE__ */ Zn(function e(t) { +}(), Nde = ["name"], kde = /* @__PURE__ */ Zn(function e(t) { var r = this; Xn(this, e), U(this, "formHooked", !1), U(this, "forceRootUpdate", void 0), U(this, "subscribable", !0), U(this, "store", {}), U(this, "fieldEntities", []), U(this, "initialValues", {}), U(this, "callbacks", {}), U(this, "validateMessages", null), U(this, "preserve", null), U(this, "lastValidatePromise", null), U(this, "getForm", function() { return { @@ -11443,7 +11484,7 @@ var lh = /* @__PURE__ */ function() { var v = "getMeta" in u ? u.getMeta() : null; a(v) && c.push(f); } - }), RN(r.store, c.map(Hn)); + }), TN(r.store, c.map(Hn)); }), U(this, "getFieldValue", function(n) { r.warningUnhooked(); var i = Hn(n); @@ -11581,7 +11622,7 @@ var lh = /* @__PURE__ */ function() { r.warningUnhooked(); var i = r.store, o = []; n.forEach(function(a) { - var s = a.name, l = Nt(a, Rde), c = Hn(s); + var s = a.name, l = Nt(a, Nde), c = Hn(s); o.push(c), "value" in l && r.updateStore(Ga(r.store, c, l.value)), r.notifyObservers(i, [c], { type: "setField", data: a @@ -11629,7 +11670,7 @@ var lh = /* @__PURE__ */ function() { if (i.length && r.getFieldValue(i) !== c && r.fieldEntities.every(function(d) { return ( // Only reset when no namePath exist - !OW(d.getNamePath(), i) + !NW(d.getNamePath(), i) ); })) { var u = r.store; @@ -11680,7 +11721,7 @@ var lh = /* @__PURE__ */ function() { }), r.notifyWatch([o]); var s = r.triggerDependenciesUpdate(a, o), l = r.callbacks.onValuesChange; if (l) { - var c = RN(r.store, [o]); + var c = TN(r.store, [o]); l(c, r.getFieldsValue()); } r.triggerOnFieldsChange([o].concat($e(s))); @@ -11752,7 +11793,7 @@ var lh = /* @__PURE__ */ function() { var C = y.getNamePath(); if (d.add(C.join(u)), !s || cf(l, C, f)) { var b = y.validateRules(Z({ - validateMessages: Z(Z({}, AW), r.validateMessages) + validateMessages: Z(Z({}, FW), r.validateMessages) }, a)); c.push(b.then(function() { return { @@ -11778,7 +11819,7 @@ var lh = /* @__PURE__ */ function() { } } }); - var g = Ede(c); + var g = Fde(c); r.lastValidatePromise = g, g.catch(function(y) { return y; }).then(function(y) { @@ -11824,7 +11865,7 @@ var lh = /* @__PURE__ */ function() { }); }), this.forceRootUpdate = t; }); -function NW(e) { +function BW(e) { var t = S.useRef(), r = S.useState({}), n = ce(r, 2), i = n[1]; if (!t.current) if (e) @@ -11832,7 +11873,7 @@ function NW(e) { else { var o = function() { i({}); - }, a = new Pde(o); + }, a = new kde(o); t.current = a.getForm(); } return [t.current]; @@ -11846,7 +11887,7 @@ var wT = /* @__PURE__ */ S.createContext({ }, unregisterForm: function() { } -}), Tde = function(t) { +}), $de = function(t) { var r = t.validateMessages, n = t.onFormChange, i = t.onFormFinish, o = t.children, a = S.useContext(wT), s = S.useRef({}); return /* @__PURE__ */ S.createElement(wT.Provider, { value: Z(Z({}, a), {}, { @@ -11875,8 +11916,8 @@ var wT = /* @__PURE__ */ S.createContext({ } }) }, o); -}, _de = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], Mde = function(t, r) { - var n = t.name, i = t.initialValues, o = t.fields, a = t.form, s = t.preserve, l = t.children, c = t.component, u = c === void 0 ? "form" : c, d = t.validateMessages, h = t.validateTrigger, f = h === void 0 ? "onChange" : h, p = t.onValuesChange, g = t.onFieldsChange, v = t.onFinish, m = t.onFinishFailed, y = t.clearOnDestroy, C = Nt(t, _de), b = S.useRef(null), w = S.useContext(wT), x = NW(a), E = ce(x, 1), R = E[0], P = R.getInternalHooks(Xu), T = P.useSubscribe, _ = P.setInitialValues, D = P.setCallbacks, A = P.setValidateMessages, M = P.setPreserve, O = P.destroyForm; +}, Bde = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], Vde = function(t, r) { + var n = t.name, i = t.initialValues, o = t.fields, a = t.form, s = t.preserve, l = t.children, c = t.component, u = c === void 0 ? "form" : c, d = t.validateMessages, h = t.validateTrigger, f = h === void 0 ? "onChange" : h, p = t.onValuesChange, g = t.onFieldsChange, v = t.onFinish, m = t.onFinishFailed, y = t.clearOnDestroy, C = Nt(t, Bde), b = S.useRef(null), w = S.useContext(wT), x = BW(a), E = ce(x, 1), R = E[0], P = R.getInternalHooks(Xu), T = P.useSubscribe, _ = P.setInitialValues, D = P.setCallbacks, A = P.setValidateMessages, M = P.setPreserve, O = P.destroyForm; S.useImperativeHandle(r, function() { return Z(Z({}, R), {}, { nativeElement: b.current @@ -11918,13 +11959,13 @@ var wT = /* @__PURE__ */ S.createContext({ T(!F); var I = S.useRef(); S.useEffect(function() { - Sde(I.current || [], o || []) || R.setFields(o || []), I.current = o; + Ide(I.current || [], o || []) || R.setFields(o || []), I.current = o; }, [o, R]); var V = S.useMemo(function() { return Z(Z({}, R), {}, { validateTrigger: f }); - }, [R, f]), H = /* @__PURE__ */ S.createElement(QC.Provider, { + }, [R, f]), H = /* @__PURE__ */ S.createElement(tS.Provider, { value: null }, /* @__PURE__ */ S.createElement(Df.Provider, { value: V @@ -11940,38 +11981,38 @@ var wT = /* @__PURE__ */ S.createContext({ } }), H); }; -function _N(e) { +function DN(e) { try { return JSON.stringify(e); } catch { return Math.random(); } } -var Dde = process.env.NODE_ENV !== "production" ? function(e) { +var Hde = process.env.NODE_ENV !== "production" ? function(e) { var t = e.join("__RC_FIELD_FORM_SPLIT__"), r = ve(t); Tt(r.current === t, "`useWatch` is not support dynamic `namePath`. Please provide static instead."); } : function() { }; -function Ide() { +function zde() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; - var n = t[0], i = t[1], o = i === void 0 ? {} : i, a = Bue(o) ? { + var n = t[0], i = t[1], o = i === void 0 ? {} : i, a = Xue(o) ? { form: o - } : o, s = a.form, l = Le(), c = ce(l, 2), u = c[0], d = c[1], h = Ct(function() { - return _N(u); + } : o, s = a.form, l = Ie(), c = ce(l, 2), u = c[0], d = c[1], h = St(function() { + return DN(u); }, [u]), f = ve(h); f.current = h; var p = Jt(Df), g = s || p, v = g && g._init; process.env.NODE_ENV !== "production" && Tt(t.length === 2 ? s ? v : !0 : v, "useWatch requires a form instance since it can not auto detect from context."); var m = Hn(n), y = ve(m); - return y.current = m, Dde(m), Bt( + return y.current = m, Hde(m), Bt( function() { if (v) { var C = g.getFieldsValue, b = g.getInternalHooks, w = b(Xu), x = w.registerWatch, E = function(_, D) { var A = a.preserve ? D : _; return typeof n == "function" ? n(A) : ko(A, y.current); }, R = x(function(T, _) { - var D = E(T, _), A = _N(D); + var D = E(T, _), A = DN(D); f.current !== A && (f.current = A, d(D)); }), P = E(C(), C(!0)); return u !== P && d(P), R; @@ -11982,28 +12023,28 @@ function Ide() { [v] ), u; } -var Ade = /* @__PURE__ */ S.forwardRef(Mde), Tm = Ade; -Tm.FormProvider = Tde; -Tm.Field = LW; -Tm.List = xde; -Tm.useForm = NW; -Tm.useWatch = Ide; +var Gde = /* @__PURE__ */ S.forwardRef(Vde), Mm = Gde; +Mm.FormProvider = $de; +Mm.Field = kW; +Mm.List = Lde; +Mm.useForm = BW; +Mm.useWatch = zde; const Ea = /* @__PURE__ */ S.createContext({}); process.env.NODE_ENV !== "production" && (Ea.displayName = "FormItemInputContext"); -const Ode = (e) => { +const Wde = (e) => { let { children: t, status: r, override: n } = e; - const i = Jt(Ea), o = Ct(() => { + const i = Jt(Ea), o = St(() => { const a = Object.assign({}, i); return n && delete a.isFormItemInput, r && (delete a.status, delete a.hasFeedback, delete a.feedbackIcon), a; }, [r, n, i]); return /* @__PURE__ */ S.createElement(Ea.Provider, { value: o }, t); -}, Lde = /* @__PURE__ */ Xs(void 0), Dv = (e) => { +}, jde = /* @__PURE__ */ Xs(void 0), Av = (e) => { const { space: t, form: r, @@ -12012,19 +12053,19 @@ const Ode = (e) => { if (n == null) return null; let i = n; - return r && (i = /* @__PURE__ */ k.createElement(Ode, { + return r && (i = /* @__PURE__ */ k.createElement(Wde, { override: !0, status: !0 - }, i)), t && (i = /* @__PURE__ */ k.createElement(Kce, null, i)), i; + }, i)), t && (i = /* @__PURE__ */ k.createElement(iue, null, i)), i; }; -function JC(e) { +function rS(e) { if (e) return { closable: e.closable, closeIcon: e.closeIcon }; } -function MN(e) { +function IN(e) { const { closable: t, closeIcon: r @@ -12043,7 +12084,7 @@ function MN(e) { return t && typeof t == "object" && (n = Object.assign(Object.assign({}, n), t)), n; }, [t, r]); } -function DN() { +function AN() { const e = {}; for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n]; @@ -12053,12 +12094,12 @@ function DN() { }); }), e; } -const Fde = {}; -function kW(e, t) { - let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Fde; - const n = MN(e), i = MN(t), o = k.useMemo(() => Object.assign({ - closeIcon: /* @__PURE__ */ k.createElement(ql, null) - }, r), [r]), a = k.useMemo(() => n === !1 ? !1 : n ? DN(o, i, n) : i === !1 ? !1 : i ? DN(o, i) : o.closable ? o : !1, [n, i, o]); +const Ude = {}; +function VW(e, t) { + let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ude; + const n = IN(e), i = IN(t), o = k.useMemo(() => Object.assign({ + closeIcon: /* @__PURE__ */ k.createElement(Xl, null) + }, r), [r]), a = k.useMemo(() => n === !1 ? !1 : n ? AN(o, i, n) : i === !1 ? !1 : i ? AN(o, i) : o.closable ? o : !1, [n, i, o]); return k.useMemo(() => { if (a === !1) return [!1, null]; @@ -12076,7 +12117,7 @@ function kW(e, t) { return [!0, c]; }, [a, o]); } -var $W = function(t) { +var HW = function(t) { if (ii() && window.document.documentElement) { var r = Array.isArray(t) ? t : [t], n = window.document.documentElement; return r.some(function(i) { @@ -12084,16 +12125,16 @@ var $W = function(t) { }); } return !1; -}, Nde = function(t, r) { - if (!$W(t)) +}, Kde = function(t, r) { + if (!HW(t)) return !1; var n = document.createElement("div"), i = n.style[t]; return n.style[t] = r, n.style[t] !== i; }; function xT(e, t) { - return !Array.isArray(e) && t !== void 0 ? Nde(e, t) : $W(e); + return !Array.isArray(e) && t !== void 0 ? Kde(e, t) : HW(e); } -const kde = () => ii() && window.document.documentElement, Gb = (e) => { +const Yde = () => ii() && window.document.documentElement, jb = (e) => { const { prefixCls: t, className: r, @@ -12116,29 +12157,29 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { className: ie(t, a, s, r), style: Object.assign(Object.assign({}, l), n) }); -}, $de = new _r("ant-skeleton-loading", { +}, qde = new _r("ant-skeleton-loading", { "0%": { backgroundPosition: "100% 50%" }, "100%": { backgroundPosition: "0 50%" } -}), Wb = (e) => ({ +}), Ub = (e) => ({ height: e, - lineHeight: ee(e) + lineHeight: te(e) }), uf = (e) => Object.assign({ width: e -}, Wb(e)), Bde = (e) => ({ +}, Ub(e)), Xde = (e) => ({ background: e.skeletonLoadingBackground, backgroundSize: "400% 100%", - animationName: $de, + animationName: qde, animationDuration: e.skeletonLoadingMotionDuration, animationTimingFunction: "ease", animationIterationCount: "infinite" }), W1 = (e, t) => Object.assign({ width: t(e).mul(5).equal(), minWidth: t(e).mul(5).equal() -}, Wb(e)), Vde = (e) => { +}, Ub(e)), Zde = (e) => { const { skeletonAvatarCls: t, gradientFromColor: r, @@ -12158,7 +12199,7 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { [`${t}${t}-lg`]: Object.assign({}, uf(i)), [`${t}${t}-sm`]: Object.assign({}, uf(o)) }; -}, Hde = (e) => { +}, Qde = (e) => { const { controlHeight: t, borderRadiusSM: r, @@ -12178,9 +12219,9 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { [`${n}-lg`]: Object.assign({}, W1(i, s)), [`${n}-sm`]: Object.assign({}, W1(o, s)) }; -}, IN = (e) => Object.assign({ +}, ON = (e) => Object.assign({ width: e -}, Wb(e)), zde = (e) => { +}, Ub(e)), Jde = (e) => { const { skeletonImageCls: t, imageSizeBase: r, @@ -12196,11 +12237,11 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { verticalAlign: "top", background: n, borderRadius: i - }, IN(o(r).mul(2).equal())), { + }, ON(o(r).mul(2).equal())), { [`${t}-path`]: { fill: "#bfbfbf" }, - [`${t}-svg`]: Object.assign(Object.assign({}, IN(r)), { + [`${t}-svg`]: Object.assign(Object.assign({}, ON(r)), { maxWidth: o(r).mul(4).equal(), maxHeight: o(r).mul(4).equal() }), @@ -12229,7 +12270,7 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { }, U1 = (e, t) => Object.assign({ width: t(e).mul(2).equal(), minWidth: t(e).mul(2).equal() -}, Wb(e)), Gde = (e) => { +}, Ub(e)), ehe = (e) => { const { borderRadiusSM: t, skeletonButtonCls: r, @@ -12253,7 +12294,7 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { }), j1(e, i, `${r}-lg`)), { [`${r}-sm`]: Object.assign({}, U1(o, s)) }), j1(e, o, `${r}-sm`)); -}, Wde = (e) => { +}, the = (e) => { const { componentCls: t, skeletonAvatarCls: r, @@ -12346,7 +12387,7 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { [`${t}${t}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({ display: "inline-block", width: "auto" - }, Gde(e)), Vde(e)), Hde(e)), zde(e)), + }, ehe(e)), Zde(e)), Qde(e)), Jde(e)), // Skeleton Block Button, Input [`${t}${t}-block`]: { width: "100%", @@ -12366,10 +12407,10 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { ${o}, ${a}, ${s} - `]: Object.assign({}, Bde(e)) + `]: Object.assign({}, Xde(e)) } }; -}, jde = (e) => { +}, rhe = (e) => { const { colorFillContent: t, colorFill: r @@ -12384,7 +12425,7 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { paragraphMarginTop: e.marginLG + e.marginXXS, paragraphLiHeight: e.controlHeight / 2 }; -}, ep = Ur("Skeleton", (e) => { +}, rp = Kr("Skeleton", (e) => { const { componentCls: t, calc: r @@ -12401,10 +12442,10 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { skeletonLoadingBackground: `linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`, skeletonLoadingMotionDuration: "1.4s" }); - return [Wde(n)]; -}, jde, { + return [the(n)]; +}, rhe, { deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]] -}), Ude = (e) => { +}), nhe = (e) => { const { prefixCls: t, className: r, @@ -12414,17 +12455,17 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { size: a = "default" } = e, { getPrefixCls: s - } = S.useContext(gt), l = s("skeleton", t), [c, u, d] = ep(l), h = Sn(e, ["prefixCls", "className"]), f = ie(l, `${l}-element`, { + } = S.useContext(gt), l = s("skeleton", t), [c, u, d] = rp(l), h = Sn(e, ["prefixCls", "className"]), f = ie(l, `${l}-element`, { [`${l}-active`]: i }, r, n, u, d); return c(/* @__PURE__ */ S.createElement("div", { className: f - }, /* @__PURE__ */ S.createElement(Gb, Object.assign({ + }, /* @__PURE__ */ S.createElement(jb, Object.assign({ prefixCls: `${l}-avatar`, shape: o, size: a }, h)))); -}, Kde = (e) => { +}, ihe = (e) => { const { prefixCls: t, className: r, @@ -12434,17 +12475,17 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { size: a = "default" } = e, { getPrefixCls: s - } = S.useContext(gt), l = s("skeleton", t), [c, u, d] = ep(l), h = Sn(e, ["prefixCls"]), f = ie(l, `${l}-element`, { + } = S.useContext(gt), l = s("skeleton", t), [c, u, d] = rp(l), h = Sn(e, ["prefixCls"]), f = ie(l, `${l}-element`, { [`${l}-active`]: i, [`${l}-block`]: o }, r, n, u, d); return c(/* @__PURE__ */ S.createElement("div", { className: f - }, /* @__PURE__ */ S.createElement(Gb, Object.assign({ + }, /* @__PURE__ */ S.createElement(jb, Object.assign({ prefixCls: `${l}-button`, size: a }, h)))); -}, Yde = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", qde = (e) => { +}, ohe = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", ahe = (e) => { const { prefixCls: t, className: r, @@ -12453,7 +12494,7 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { active: o } = e, { getPrefixCls: a - } = S.useContext(gt), s = a("skeleton", t), [l, c, u] = ep(s), d = ie(s, `${s}-element`, { + } = S.useContext(gt), s = a("skeleton", t), [l, c, u] = rp(s), d = ie(s, `${s}-element`, { [`${s}-active`]: o }, r, n, c, u); return l(/* @__PURE__ */ S.createElement("div", { @@ -12466,10 +12507,10 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { xmlns: "http://www.w3.org/2000/svg", className: `${s}-image-svg` }, /* @__PURE__ */ S.createElement("title", null, "Image placeholder"), /* @__PURE__ */ S.createElement("path", { - d: Yde, + d: ohe, className: `${s}-image-path` }))))); -}, Xde = (e) => { +}, she = (e) => { const { prefixCls: t, className: r, @@ -12479,25 +12520,25 @@ const kde = () => ii() && window.document.documentElement, Gb = (e) => { size: a = "default" } = e, { getPrefixCls: s - } = S.useContext(gt), l = s("skeleton", t), [c, u, d] = ep(l), h = Sn(e, ["prefixCls"]), f = ie(l, `${l}-element`, { + } = S.useContext(gt), l = s("skeleton", t), [c, u, d] = rp(l), h = Sn(e, ["prefixCls"]), f = ie(l, `${l}-element`, { [`${l}-active`]: i, [`${l}-block`]: o }, r, n, u, d); return c(/* @__PURE__ */ S.createElement("div", { className: f - }, /* @__PURE__ */ S.createElement(Gb, Object.assign({ + }, /* @__PURE__ */ S.createElement(jb, Object.assign({ prefixCls: `${l}-input`, size: a }, h)))); }; -var Zde = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "dot-chart", theme: "outlined" }, Qde = function(t, r) { +var lhe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "dot-chart", theme: "outlined" }, che = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Zde + icon: lhe })); -}, BW = /* @__PURE__ */ S.forwardRef(Qde); -process.env.NODE_ENV !== "production" && (BW.displayName = "DotChartOutlined"); -const Jde = (e) => { +}, zW = /* @__PURE__ */ S.forwardRef(che); +process.env.NODE_ENV !== "production" && (zW.displayName = "DotChartOutlined"); +const uhe = (e) => { const { prefixCls: t, className: r, @@ -12507,16 +12548,16 @@ const Jde = (e) => { children: a } = e, { getPrefixCls: s - } = S.useContext(gt), l = s("skeleton", t), [c, u, d] = ep(l), h = ie(l, `${l}-element`, { + } = S.useContext(gt), l = s("skeleton", t), [c, u, d] = rp(l), h = ie(l, `${l}-element`, { [`${l}-active`]: o - }, u, r, n, d), f = a ?? /* @__PURE__ */ S.createElement(BW, null); + }, u, r, n, d), f = a ?? /* @__PURE__ */ S.createElement(zW, null); return c(/* @__PURE__ */ S.createElement("div", { className: h }, /* @__PURE__ */ S.createElement("div", { className: ie(`${l}-image`, r), style: i }, f))); -}, ehe = (e, t) => { +}, dhe = (e, t) => { const { width: r, rows: n = 2 @@ -12525,7 +12566,7 @@ const Jde = (e) => { return r[e]; if (n - 1 === e) return r; -}, the = (e) => { +}, hhe = (e) => { const { prefixCls: t, className: r, @@ -12536,7 +12577,7 @@ const Jde = (e) => { /* @__PURE__ */ S.createElement("li", { key: s, style: { - width: ehe(s, e) + width: dhe(s, e) } }) )); @@ -12544,7 +12585,7 @@ const Jde = (e) => { className: ie(t, r), style: n }, o); -}, rhe = (e) => { +}, fhe = (e) => { let { prefixCls: t, className: r, @@ -12564,7 +12605,7 @@ const Jde = (e) => { function K1(e) { return e && typeof e == "object" ? e : {}; } -function nhe(e, t) { +function phe(e, t) { return e && !t ? { size: "large", shape: "square" @@ -12573,18 +12614,18 @@ function nhe(e, t) { shape: "circle" }; } -function ihe(e, t) { +function ghe(e, t) { return !e && t ? { width: "38%" } : e && t ? { width: "50%" } : {}; } -function ohe(e, t) { +function vhe(e, t) { const r = {}; return (!e || !t) && (r.width = "61%"), !e && t ? r.rows = 3 : r.rows = 2, r; } -const Xl = (e) => { +const el = (e) => { const { prefixCls: t, loading: r, @@ -12601,17 +12642,17 @@ const Xl = (e) => { getPrefixCls: h, direction: f, skeleton: p - } = S.useContext(gt), g = h("skeleton", t), [v, m, y] = ep(g); + } = S.useContext(gt), g = h("skeleton", t), [v, m, y] = rp(g); if (r || !("loading" in e)) { const C = !!s, b = !!l, w = !!c; let x; if (C) { const P = Object.assign(Object.assign({ prefixCls: `${g}-avatar` - }, nhe(b, w)), K1(s)); + }, phe(b, w)), K1(s)); x = /* @__PURE__ */ S.createElement("div", { className: `${g}-header` - }, /* @__PURE__ */ S.createElement(Gb, Object.assign({}, P))); + }, /* @__PURE__ */ S.createElement(jb, Object.assign({}, P))); } let E; if (b || w) { @@ -12619,15 +12660,15 @@ const Xl = (e) => { if (b) { const _ = Object.assign(Object.assign({ prefixCls: `${g}-title` - }, ihe(C, w)), K1(l)); - P = /* @__PURE__ */ S.createElement(rhe, Object.assign({}, _)); + }, ghe(C, w)), K1(l)); + P = /* @__PURE__ */ S.createElement(fhe, Object.assign({}, _)); } let T; if (w) { const _ = Object.assign(Object.assign({ prefixCls: `${g}-paragraph` - }, ohe(C, b)), K1(c)); - T = /* @__PURE__ */ S.createElement(the, Object.assign({}, _)); + }, vhe(C, b)), K1(c)); + T = /* @__PURE__ */ S.createElement(hhe, Object.assign({}, _)); } E = /* @__PURE__ */ S.createElement("div", { className: `${g}-content` @@ -12646,21 +12687,21 @@ const Xl = (e) => { } return a ?? null; }; -Xl.Button = Kde; -Xl.Avatar = Ude; -Xl.Input = Xde; -Xl.Image = qde; -Xl.Node = Jde; -process.env.NODE_ENV !== "production" && (Xl.displayName = "Skeleton"); -function AN() { -} -const ahe = /* @__PURE__ */ S.createContext({ - add: AN, - remove: AN +el.Button = ihe; +el.Avatar = nhe; +el.Input = she; +el.Image = ahe; +el.Node = uhe; +process.env.NODE_ENV !== "production" && (el.displayName = "Skeleton"); +function LN() { +} +const mhe = /* @__PURE__ */ S.createContext({ + add: LN, + remove: LN }); -function she(e) { - const t = S.useContext(ahe), r = S.useRef(); - return Kr((i) => { +function yhe(e) { + const t = S.useContext(mhe), r = S.useRef(); + return Yr((i) => { if (i) { const o = e ? i.querySelector(e) : i; t.add(o), r.current = o; @@ -12668,36 +12709,36 @@ function she(e) { t.remove(r.current); }); } -const ON = () => { +const FN = () => { const { cancelButtonProps: e, cancelTextLocale: t, onCancel: r - } = Jt(Em); - return /* @__PURE__ */ k.createElement(kr, Object.assign({ + } = Jt(Pm); + return /* @__PURE__ */ k.createElement(Fr, Object.assign({ onClick: r }, e), t); -}, LN = () => { +}, NN = () => { const { confirmLoading: e, okButtonProps: t, okType: r, okTextLocale: n, onOk: i - } = Jt(Em); - return /* @__PURE__ */ k.createElement(kr, Object.assign({}, qD(r), { + } = Jt(Pm); + return /* @__PURE__ */ k.createElement(Fr, Object.assign({}, q2(r), { loading: e, onClick: i }, t), n); }; -function VW(e, t) { +function GW(e, t) { return /* @__PURE__ */ k.createElement("span", { className: `${e}-close-x` - }, t || /* @__PURE__ */ k.createElement(ql, { + }, t || /* @__PURE__ */ k.createElement(Xl, { className: `${e}-close-icon` })); } -const HW = (e) => { +const WW = (e) => { const { okText: t, okType: r = "primary", @@ -12708,7 +12749,7 @@ const HW = (e) => { okButtonProps: s, cancelButtonProps: l, footer: c - } = e, [u] = Bd("Modal", CG()), d = t || (u == null ? void 0 : u.okText), h = n || (u == null ? void 0 : u.cancelText), f = { + } = e, [u] = Bd("Modal", wG()), d = t || (u == null ? void 0 : u.okText), h = n || (u == null ? void 0 : u.cancelText), f = { confirmLoading: i, okButtonProps: s, cancelButtonProps: l, @@ -12719,15 +12760,15 @@ const HW = (e) => { onCancel: a }, p = k.useMemo(() => f, $e(Object.values(f))); let g; - return typeof c == "function" || typeof c > "u" ? (g = /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(ON, null), /* @__PURE__ */ k.createElement(LN, null)), typeof c == "function" && (g = c(g, { - OkBtn: LN, - CancelBtn: ON - })), g = /* @__PURE__ */ k.createElement(EW, { + return typeof c == "function" || typeof c > "u" ? (g = /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(FN, null), /* @__PURE__ */ k.createElement(NN, null)), typeof c == "function" && (g = c(g, { + OkBtn: NN, + CancelBtn: FN + })), g = /* @__PURE__ */ k.createElement(TW, { value: p - }, g)) : g = c, /* @__PURE__ */ k.createElement(_G, { + }, g)) : g = c, /* @__PURE__ */ k.createElement(IG, { disabled: !1 }, g); -}, zW = (e) => ({ +}, jW = (e) => ({ [e.componentCls]: { // For common/openAnimation [`${e.antCls}-motion-collapse-legacy`]: { @@ -12743,22 +12784,22 @@ const HW = (e) => { opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important` } } -}), lhe = (e) => ({ +}), Che = (e) => ({ animationDuration: e, animationFillMode: "both" -}), che = (e) => ({ +}), She = (e) => ({ animationDuration: e, animationFillMode: "both" -}), jb = function(e, t, r, n) { +}), Kb = function(e, t, r, n) { const o = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? "&" : ""; return { [` ${o}${e}-enter, ${o}${e}-appear - `]: Object.assign(Object.assign({}, lhe(n)), { + `]: Object.assign(Object.assign({}, Che(n)), { animationPlayState: "paused" }), - [`${o}${e}-leave`]: Object.assign(Object.assign({}, che(n)), { + [`${o}${e}-leave`]: Object.assign(Object.assign({}, She(n)), { animationPlayState: "paused" }), [` @@ -12774,26 +12815,26 @@ const HW = (e) => { pointerEvents: "none" } }; -}, uhe = new _r("antFadeIn", { +}, bhe = new _r("antFadeIn", { "0%": { opacity: 0 }, "100%": { opacity: 1 } -}), dhe = new _r("antFadeOut", { +}), whe = new _r("antFadeOut", { "0%": { opacity: 1 }, "100%": { opacity: 0 } -}), GW = function(e) { +}), UW = function(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; const { antCls: r } = e, n = `${r}-fade`, i = t ? "&" : ""; - return [jb(n, uhe, dhe, e.motionDurationMid, t), { + return [Kb(n, bhe, whe, e.motionDurationMid, t), { [` ${i}${n}-enter, ${i}${n}-appear @@ -12805,7 +12846,7 @@ const HW = (e) => { animationTimingFunction: "linear" } }]; -}, hhe = new _r("antMoveDownIn", { +}, xhe = new _r("antMoveDownIn", { "0%": { transform: "translate3d(0, 100%, 0)", transformOrigin: "0 0", @@ -12816,7 +12857,7 @@ const HW = (e) => { transformOrigin: "0 0", opacity: 1 } -}), fhe = new _r("antMoveDownOut", { +}), Ehe = new _r("antMoveDownOut", { "0%": { transform: "translate3d(0, 0, 0)", transformOrigin: "0 0", @@ -12827,7 +12868,7 @@ const HW = (e) => { transformOrigin: "0 0", opacity: 0 } -}), phe = new _r("antMoveLeftIn", { +}), Rhe = new _r("antMoveLeftIn", { "0%": { transform: "translate3d(-100%, 0, 0)", transformOrigin: "0 0", @@ -12838,7 +12879,7 @@ const HW = (e) => { transformOrigin: "0 0", opacity: 1 } -}), ghe = new _r("antMoveLeftOut", { +}), Phe = new _r("antMoveLeftOut", { "0%": { transform: "translate3d(0, 0, 0)", transformOrigin: "0 0", @@ -12849,7 +12890,7 @@ const HW = (e) => { transformOrigin: "0 0", opacity: 0 } -}), vhe = new _r("antMoveRightIn", { +}), The = new _r("antMoveRightIn", { "0%": { transform: "translate3d(100%, 0, 0)", transformOrigin: "0 0", @@ -12860,7 +12901,7 @@ const HW = (e) => { transformOrigin: "0 0", opacity: 1 } -}), mhe = new _r("antMoveRightOut", { +}), _he = new _r("antMoveRightOut", { "0%": { transform: "translate3d(0, 0, 0)", transformOrigin: "0 0", @@ -12871,7 +12912,7 @@ const HW = (e) => { transformOrigin: "0 0", opacity: 0 } -}), yhe = new _r("antMoveUpIn", { +}), Mhe = new _r("antMoveUpIn", { "0%": { transform: "translate3d(0, -100%, 0)", transformOrigin: "0 0", @@ -12882,7 +12923,7 @@ const HW = (e) => { transformOrigin: "0 0", opacity: 1 } -}), Che = new _r("antMoveUpOut", { +}), Dhe = new _r("antMoveUpOut", { "0%": { transform: "translate3d(0, 0, 0)", transformOrigin: "0 0", @@ -12893,31 +12934,31 @@ const HW = (e) => { transformOrigin: "0 0", opacity: 0 } -}), She = { +}), Ihe = { "move-up": { - inKeyframes: yhe, - outKeyframes: Che + inKeyframes: Mhe, + outKeyframes: Dhe }, "move-down": { - inKeyframes: hhe, - outKeyframes: fhe + inKeyframes: xhe, + outKeyframes: Ehe }, "move-left": { - inKeyframes: phe, - outKeyframes: ghe + inKeyframes: Rhe, + outKeyframes: Phe }, "move-right": { - inKeyframes: vhe, - outKeyframes: mhe + inKeyframes: The, + outKeyframes: _he } -}, eS = (e, t) => { +}, nS = (e, t) => { const { antCls: r } = e, n = `${r}-${t}`, { inKeyframes: i, outKeyframes: o - } = She[t]; - return [jb(n, i, o, e.motionDurationMid), { + } = Ihe[t]; + return [Kb(n, i, o, e.motionDurationMid), { [` ${n}-enter, ${n}-appear @@ -12929,7 +12970,7 @@ const HW = (e) => { animationTimingFunction: e.motionEaseInOutCirc } }]; -}, nI = new _r("antSlideUpIn", { +}, nD = new _r("antSlideUpIn", { "0%": { transform: "scaleY(0.8)", transformOrigin: "0% 0%", @@ -12940,7 +12981,7 @@ const HW = (e) => { transformOrigin: "0% 0%", opacity: 1 } -}), iI = new _r("antSlideUpOut", { +}), iD = new _r("antSlideUpOut", { "0%": { transform: "scaleY(1)", transformOrigin: "0% 0%", @@ -12951,7 +12992,7 @@ const HW = (e) => { transformOrigin: "0% 0%", opacity: 0 } -}), oI = new _r("antSlideDownIn", { +}), oD = new _r("antSlideDownIn", { "0%": { transform: "scaleY(0.8)", transformOrigin: "100% 100%", @@ -12962,7 +13003,7 @@ const HW = (e) => { transformOrigin: "100% 100%", opacity: 1 } -}), aI = new _r("antSlideDownOut", { +}), aD = new _r("antSlideDownOut", { "0%": { transform: "scaleY(1)", transformOrigin: "100% 100%", @@ -12973,7 +13014,7 @@ const HW = (e) => { transformOrigin: "100% 100%", opacity: 0 } -}), bhe = new _r("antSlideLeftIn", { +}), Ahe = new _r("antSlideLeftIn", { "0%": { transform: "scaleX(0.8)", transformOrigin: "0% 0%", @@ -12984,7 +13025,7 @@ const HW = (e) => { transformOrigin: "0% 0%", opacity: 1 } -}), whe = new _r("antSlideLeftOut", { +}), Ohe = new _r("antSlideLeftOut", { "0%": { transform: "scaleX(1)", transformOrigin: "0% 0%", @@ -12995,7 +13036,7 @@ const HW = (e) => { transformOrigin: "0% 0%", opacity: 0 } -}), xhe = new _r("antSlideRightIn", { +}), Lhe = new _r("antSlideRightIn", { "0%": { transform: "scaleX(0.8)", transformOrigin: "100% 0%", @@ -13006,7 +13047,7 @@ const HW = (e) => { transformOrigin: "100% 0%", opacity: 1 } -}), Ehe = new _r("antSlideRightOut", { +}), Fhe = new _r("antSlideRightOut", { "0%": { transform: "scaleX(1)", transformOrigin: "100% 0%", @@ -13017,22 +13058,22 @@ const HW = (e) => { transformOrigin: "100% 0%", opacity: 0 } -}), Rhe = { +}), Nhe = { "slide-up": { - inKeyframes: nI, - outKeyframes: iI + inKeyframes: nD, + outKeyframes: iD }, "slide-down": { - inKeyframes: oI, - outKeyframes: aI + inKeyframes: oD, + outKeyframes: aD }, "slide-left": { - inKeyframes: bhe, - outKeyframes: whe + inKeyframes: Ahe, + outKeyframes: Ohe }, "slide-right": { - inKeyframes: xhe, - outKeyframes: Ehe + inKeyframes: Lhe, + outKeyframes: Fhe } }, kc = (e, t) => { const { @@ -13040,8 +13081,8 @@ const HW = (e) => { } = e, n = `${r}-${t}`, { inKeyframes: i, outKeyframes: o - } = Rhe[t]; - return [jb(n, i, o, e.motionDurationMid), { + } = Nhe[t]; + return [Kb(n, i, o, e.motionDurationMid), { [` ${n}-enter, ${n}-appear @@ -13058,7 +13099,7 @@ const HW = (e) => { animationTimingFunction: e.motionEaseInQuint } }]; -}, Phe = new _r("antZoomIn", { +}, khe = new _r("antZoomIn", { "0%": { transform: "scale(0.2)", opacity: 0 @@ -13067,7 +13108,7 @@ const HW = (e) => { transform: "scale(1)", opacity: 1 } -}), The = new _r("antZoomOut", { +}), $he = new _r("antZoomOut", { "0%": { transform: "scale(1)" }, @@ -13075,7 +13116,7 @@ const HW = (e) => { transform: "scale(0.2)", opacity: 0 } -}), FN = new _r("antZoomBigIn", { +}), kN = new _r("antZoomBigIn", { "0%": { transform: "scale(0.8)", opacity: 0 @@ -13084,7 +13125,7 @@ const HW = (e) => { transform: "scale(1)", opacity: 1 } -}), NN = new _r("antZoomBigOut", { +}), $N = new _r("antZoomBigOut", { "0%": { transform: "scale(1)" }, @@ -13092,7 +13133,7 @@ const HW = (e) => { transform: "scale(0.8)", opacity: 0 } -}), _he = new _r("antZoomUpIn", { +}), Bhe = new _r("antZoomUpIn", { "0%": { transform: "scale(0.8)", transformOrigin: "50% 0%", @@ -13102,7 +13143,7 @@ const HW = (e) => { transform: "scale(1)", transformOrigin: "50% 0%" } -}), Mhe = new _r("antZoomUpOut", { +}), Vhe = new _r("antZoomUpOut", { "0%": { transform: "scale(1)", transformOrigin: "50% 0%" @@ -13112,7 +13153,7 @@ const HW = (e) => { transformOrigin: "50% 0%", opacity: 0 } -}), Dhe = new _r("antZoomLeftIn", { +}), Hhe = new _r("antZoomLeftIn", { "0%": { transform: "scale(0.8)", transformOrigin: "0% 50%", @@ -13122,7 +13163,7 @@ const HW = (e) => { transform: "scale(1)", transformOrigin: "0% 50%" } -}), Ihe = new _r("antZoomLeftOut", { +}), zhe = new _r("antZoomLeftOut", { "0%": { transform: "scale(1)", transformOrigin: "0% 50%" @@ -13132,7 +13173,7 @@ const HW = (e) => { transformOrigin: "0% 50%", opacity: 0 } -}), Ahe = new _r("antZoomRightIn", { +}), Ghe = new _r("antZoomRightIn", { "0%": { transform: "scale(0.8)", transformOrigin: "100% 50%", @@ -13142,7 +13183,7 @@ const HW = (e) => { transform: "scale(1)", transformOrigin: "100% 50%" } -}), Ohe = new _r("antZoomRightOut", { +}), Whe = new _r("antZoomRightOut", { "0%": { transform: "scale(1)", transformOrigin: "100% 50%" @@ -13152,7 +13193,7 @@ const HW = (e) => { transformOrigin: "100% 50%", opacity: 0 } -}), Lhe = new _r("antZoomDownIn", { +}), jhe = new _r("antZoomDownIn", { "0%": { transform: "scale(0.8)", transformOrigin: "50% 100%", @@ -13162,7 +13203,7 @@ const HW = (e) => { transform: "scale(1)", transformOrigin: "50% 100%" } -}), Fhe = new _r("antZoomDownOut", { +}), Uhe = new _r("antZoomDownOut", { "0%": { transform: "scale(1)", transformOrigin: "50% 100%" @@ -13172,43 +13213,43 @@ const HW = (e) => { transformOrigin: "50% 100%", opacity: 0 } -}), Nhe = { +}), Khe = { zoom: { - inKeyframes: Phe, - outKeyframes: The + inKeyframes: khe, + outKeyframes: $he }, "zoom-big": { - inKeyframes: FN, - outKeyframes: NN + inKeyframes: kN, + outKeyframes: $N }, "zoom-big-fast": { - inKeyframes: FN, - outKeyframes: NN + inKeyframes: kN, + outKeyframes: $N }, "zoom-left": { - inKeyframes: Dhe, - outKeyframes: Ihe + inKeyframes: Hhe, + outKeyframes: zhe }, "zoom-right": { - inKeyframes: Ahe, - outKeyframes: Ohe + inKeyframes: Ghe, + outKeyframes: Whe }, "zoom-up": { - inKeyframes: _he, - outKeyframes: Mhe + inKeyframes: Bhe, + outKeyframes: Vhe }, "zoom-down": { - inKeyframes: Lhe, - outKeyframes: Fhe + inKeyframes: jhe, + outKeyframes: Uhe } -}, tp = (e, t) => { +}, np = (e, t) => { const { antCls: r } = e, n = `${r}-${t}`, { inKeyframes: i, outKeyframes: o - } = Nhe[t]; - return [jb(n, i, o, t === "zoom-big-fast" ? e.motionDurationFast : e.motionDurationMid), { + } = Khe[t]; + return [Kb(n, i, o, t === "zoom-big-fast" ? e.motionDurationFast : e.motionDurationMid), { [` ${n}-enter, ${n}-appear @@ -13225,13 +13266,13 @@ const HW = (e) => { } }]; }; -function kN(e) { +function BN(e) { return { position: e, inset: 0 }; } -const WW = (e) => { +const KW = (e) => { const { componentCls: t, antCls: r @@ -13251,7 +13292,7 @@ const WW = (e) => { [`${t}${r}-zoom-leave ${t}-content`]: { pointerEvents: "none" }, - [`${t}-mask`]: Object.assign(Object.assign({}, kN("fixed")), { + [`${t}-mask`]: Object.assign(Object.assign({}, BN("fixed")), { zIndex: e.zIndexPopupBase, height: "100%", backgroundColor: e.colorBgMask, @@ -13260,7 +13301,7 @@ const WW = (e) => { display: "none" } }), - [`${t}-wrap`]: Object.assign(Object.assign({}, kN("fixed")), { + [`${t}-wrap`]: Object.assign(Object.assign({}, BN("fixed")), { zIndex: e.zIndexPopupBase, overflow: "auto", outline: 0, @@ -13268,9 +13309,9 @@ const WW = (e) => { }) } }, { - [`${t}-root`]: GW(e) + [`${t}-root`]: UW(e) }]; -}, khe = (e) => { +}, Yhe = (e) => { const { componentCls: t } = e; @@ -13301,7 +13342,7 @@ const WW = (e) => { [`@media (max-width: ${e.screenSMMax}px)`]: { [t]: { maxWidth: "calc(100vw - 16px)", - margin: `${ee(e.marginXS)} auto` + margin: `${te(e.marginXS)} auto` }, [`${t}-centered`]: { [t]: { @@ -13318,7 +13359,7 @@ const WW = (e) => { position: "relative", top: 100, width: "auto", - maxWidth: `calc(100vw - ${ee(e.calc(e.margin).mul(2).equal())})`, + maxWidth: `calc(100vw - ${te(e.calc(e.margin).mul(2).equal())})`, margin: "0 auto", paddingBottom: e.paddingLG, [`${t}-title`]: { @@ -13361,7 +13402,7 @@ const WW = (e) => { display: "flex", fontSize: e.fontSizeLG, fontStyle: "normal", - lineHeight: `${ee(e.modalCloseBtnSize)}`, + lineHeight: `${te(e.modalCloseBtnSize)}`, justifyContent: "center", textTransform: "none", textRendering: "auto" @@ -13378,7 +13419,7 @@ const WW = (e) => { [`${t}-header`]: { color: e.colorText, background: e.headerBg, - borderRadius: `${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`, + borderRadius: `${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`, marginBottom: e.headerMarginBottom, padding: e.headerPadding, borderBottom: e.headerBorderBottom @@ -13394,7 +13435,7 @@ const WW = (e) => { display: "flex", justifyContent: "center", alignItems: "center", - margin: `${ee(e.margin)} auto` + margin: `${te(e.margin)} auto` } }, [`${t}-footer`]: { @@ -13433,7 +13474,7 @@ const WW = (e) => { } } ]; -}, $he = (e) => { +}, qhe = (e) => { const { componentCls: t } = e; @@ -13447,7 +13488,7 @@ const WW = (e) => { } } }; -}, jW = (e) => { +}, YW = (e) => { const t = e.padding, r = e.fontSizeHeading5, n = e.lineHeightHeading5; return fr(e, { modalHeaderHeight: e.calc(e.calc(n).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(), @@ -13460,7 +13501,7 @@ const WW = (e) => { modalConfirmIconSize: e.fontHeight, modalTitleHeight: e.calc(e.titleFontSize).mul(e.titleLineHeight).equal() }); -}, UW = (e) => ({ +}, qW = (e) => ({ footerBg: "transparent", headerBg: e.colorBgElevated, titleLineHeight: e.lineHeightHeading5, @@ -13468,27 +13509,27 @@ const WW = (e) => { contentBg: e.colorBgElevated, titleColor: e.colorTextHeading, // internal - contentPadding: e.wireframe ? 0 : `${ee(e.paddingMD)} ${ee(e.paddingContentHorizontalLG)}`, - headerPadding: e.wireframe ? `${ee(e.padding)} ${ee(e.paddingLG)}` : 0, - headerBorderBottom: e.wireframe ? `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none", + contentPadding: e.wireframe ? 0 : `${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`, + headerPadding: e.wireframe ? `${te(e.padding)} ${te(e.paddingLG)}` : 0, + headerBorderBottom: e.wireframe ? `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none", headerMarginBottom: e.wireframe ? 0 : e.marginXS, bodyPadding: e.wireframe ? e.paddingLG : 0, - footerPadding: e.wireframe ? `${ee(e.paddingXS)} ${ee(e.padding)}` : 0, - footerBorderTop: e.wireframe ? `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none", - footerBorderRadius: e.wireframe ? `0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}` : 0, + footerPadding: e.wireframe ? `${te(e.paddingXS)} ${te(e.padding)}` : 0, + footerBorderTop: e.wireframe ? `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none", + footerBorderRadius: e.wireframe ? `0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}` : 0, footerMarginTop: e.wireframe ? 0 : e.marginSM, - confirmBodyPadding: e.wireframe ? `${ee(e.padding * 2)} ${ee(e.padding * 2)} ${ee(e.paddingLG)}` : 0, + confirmBodyPadding: e.wireframe ? `${te(e.padding * 2)} ${te(e.padding * 2)} ${te(e.paddingLG)}` : 0, confirmIconMarginInlineEnd: e.wireframe ? e.margin : e.marginSM, confirmBtnsMarginTop: e.wireframe ? e.marginLG : e.marginSM -}), KW = Ur("Modal", (e) => { - const t = jW(e); - return [khe(t), $he(t), WW(t), tp(t, "zoom")]; -}, UW, { +}), XW = Kr("Modal", (e) => { + const t = YW(e); + return [Yhe(t), qhe(t), KW(t), np(t, "zoom")]; +}, qW, { unitless: { titleLineHeight: !0 } }); -var Bhe = function(e, t) { +var Xhe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) @@ -13496,7 +13537,7 @@ var Bhe = function(e, t) { return r; }; let ET; -const Vhe = (e) => { +const Zhe = (e) => { ET = { x: e.pageX, y: e.pageY @@ -13504,8 +13545,8 @@ const Vhe = (e) => { ET = null; }, 100); }; -kde() && document.documentElement.addEventListener("click", Vhe, !0); -const YW = (e) => { +Yde() && document.documentElement.addEventListener("click", Zhe, !0); +const ZW = (e) => { var t; const { getPopupContainer: r, @@ -13548,25 +13589,25 @@ const YW = (e) => { styles: w, children: x, loading: E - } = e, R = Bhe(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), P = n("modal", l), T = n(), _ = mi(P), [D, A, M] = KW(P, _), O = ie(h, { + } = e, R = Xhe(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), P = n("modal", l), T = n(), _ = yi(P), [D, A, M] = XW(P, _), O = ie(h, { [`${P}-centered`]: !!f, [`${P}-wrap-rtl`]: i === "rtl" - }), L = C !== null && !E ? /* @__PURE__ */ S.createElement(HW, Object.assign({}, e, { + }), L = C !== null && !E ? /* @__PURE__ */ S.createElement(WW, Object.assign({}, e, { onOk: s, onCancel: a - })) : null, [N, F] = kW(JC(e), JC(o), { + })) : null, [N, F] = VW(rS(e), rS(o), { closable: !0, - closeIcon: /* @__PURE__ */ S.createElement(ql, { + closeIcon: /* @__PURE__ */ S.createElement(Xl, { className: `${P}-close-icon` }), - closeIconRender: (H) => VW(P, H) - }), $ = she(`.${P}-content`), [I, V] = Vd("Modal", R.zIndex); - return D(/* @__PURE__ */ S.createElement(Dv, { + closeIconRender: (H) => GW(P, H) + }), $ = yhe(`.${P}-content`), [I, V] = Vd("Modal", R.zIndex); + return D(/* @__PURE__ */ S.createElement(Av, { form: !0, space: !0 - }, /* @__PURE__ */ S.createElement(Sm.Provider, { + }, /* @__PURE__ */ S.createElement(wm.Provider, { value: V - }, /* @__PURE__ */ S.createElement(tI, Object.assign({ + }, /* @__PURE__ */ S.createElement(tD, Object.assign({ width: y }, R, { zIndex: I, @@ -13589,7 +13630,7 @@ const YW = (e) => { }), styles: Object.assign(Object.assign({}, o == null ? void 0 : o.styles), w), panelRef: $ - }), E ? /* @__PURE__ */ S.createElement(Xl, { + }), E ? /* @__PURE__ */ S.createElement(el, { active: !0, title: !1, paragraph: { @@ -13597,7 +13638,7 @@ const YW = (e) => { }, className: `${P}-body-skeleton` }) : x)))); -}, Hhe = (e) => { +}, Qhe = (e) => { const { componentCls: t, titleFontSize: r, @@ -13617,7 +13658,7 @@ const YW = (e) => { [`${e.antCls}-modal-header`]: { display: "none" }, - [`${u}-body-wrapper`]: Object.assign({}, Fl()), + [`${u}-body-wrapper`]: Object.assign({}, Nl()), [`&${t} ${t}-body`]: { padding: c }, @@ -13644,7 +13685,7 @@ const YW = (e) => { }, // https://github.com/ant-design/ant-design/issues/48159 [`${e.iconCls} + ${u}-paragraph`]: { - maxWidth: `calc(100% - ${ee(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})` + maxWidth: `calc(100% - ${te(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})` }, [`${u}-title`]: { color: e.colorTextHeading, @@ -13681,21 +13722,21 @@ const YW = (e) => { color: e.colorSuccess } }; -}, zhe = ym(["Modal", "confirm"], (e) => { - const t = jW(e); - return [Hhe(t)]; -}, UW, { +}, Jhe = Sm(["Modal", "confirm"], (e) => { + const t = YW(e); + return [Qhe(t)]; +}, qW, { // confirm is weak than modal since no conflict here order: -1e3 }); -var Ghe = function(e, t) { +var efe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function qW(e) { +function QW(e) { const { prefixCls: t, icon: r, @@ -13707,7 +13748,7 @@ function qW(e) { footer: l, // Legacy for static function usage locale: c - } = e, u = Ghe(e, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]); + } = e, u = efe(e, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]); if (process.env.NODE_ENV !== "production") { const E = Rr("Modal"); process.env.NODE_ENV !== "production" && E(!(typeof r == "string" && r.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${r}\` at https://ant.design/components/icon`); @@ -13716,23 +13757,23 @@ function qW(e) { if (!r && r !== null) switch (a) { case "info": - d = /* @__PURE__ */ S.createElement(jD, null); + d = /* @__PURE__ */ S.createElement(j2, null); break; case "success": - d = /* @__PURE__ */ S.createElement($b, null); + d = /* @__PURE__ */ S.createElement(Vb, null); break; case "error": - d = /* @__PURE__ */ S.createElement(Qf, null); + d = /* @__PURE__ */ S.createElement(ep, null); break; default: - d = /* @__PURE__ */ S.createElement(Cm, null); + d = /* @__PURE__ */ S.createElement(bm, null); } const h = s ?? a === "confirm", f = e.autoFocusButton === null ? !1 : e.autoFocusButton || "ok", [p] = Bd("Modal"), g = c || p, v = n || (h ? g == null ? void 0 : g.okText : g == null ? void 0 : g.justOkText), m = i || (g == null ? void 0 : g.cancelText), y = Object.assign({ autoFocusButton: f, cancelTextLocale: m, okTextLocale: v, mergedOkCancel: h - }, u), C = S.useMemo(() => y, $e(Object.values(y))), b = /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(sN, null), /* @__PURE__ */ S.createElement(lN, null)), w = e.title !== void 0 && e.title !== null, x = `${o}-body`; + }, u), C = S.useMemo(() => y, $e(Object.values(y))), b = /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(cN, null), /* @__PURE__ */ S.createElement(uN, null)), w = e.title !== void 0 && e.title !== null, x = `${o}-body`; return /* @__PURE__ */ S.createElement("div", { className: `${o}-body-wrapper` }, /* @__PURE__ */ S.createElement("div", { @@ -13745,18 +13786,18 @@ function qW(e) { className: `${o}-title` }, e.title), /* @__PURE__ */ S.createElement("div", { className: `${o}-content` - }, e.content))), l === void 0 || typeof l == "function" ? /* @__PURE__ */ S.createElement(EW, { + }, e.content))), l === void 0 || typeof l == "function" ? /* @__PURE__ */ S.createElement(TW, { value: C }, /* @__PURE__ */ S.createElement("div", { className: `${o}-btns` }, typeof l == "function" ? l(b, { - OkBtn: lN, - CancelBtn: sN - }) : b)) : l, /* @__PURE__ */ S.createElement(zhe, { + OkBtn: uN, + CancelBtn: cN + }) : b)) : l, /* @__PURE__ */ S.createElement(Jhe, { prefixCls: t })); } -const XW = (e) => { +const JW = (e) => { const { close: t, zIndex: r, @@ -13787,8 +13828,8 @@ const XW = (e) => { } const b = `${u}-confirm`, w = e.width || 416, x = e.style || {}, E = e.mask === void 0 ? !0 : e.mask, R = e.maskClosable === void 0 ? !1 : e.maskClosable, P = ie(b, `${b}-${e.type}`, { [`${b}-rtl`]: c === "rtl" - }, e.className), [, T] = ai(), _ = S.useMemo(() => r !== void 0 ? r : T.zIndexPopupBase + UD, [r, T]); - return /* @__PURE__ */ S.createElement(YW, { + }, e.className), [, T] = ai(), _ = S.useMemo(() => r !== void 0 ? r : T.zIndexPopupBase + U2, [r, T]); + return /* @__PURE__ */ S.createElement(ZW, { prefixCls: u, className: P, wrapClassName: ie({ @@ -13821,10 +13862,10 @@ const XW = (e) => { closeIcon: g, modalRender: v, focusTriggerAfterClose: m - }, /* @__PURE__ */ S.createElement(qW, Object.assign({}, e, { + }, /* @__PURE__ */ S.createElement(QW, Object.assign({}, e, { confirmPrefixCls: b }))); -}, sI = (e) => { +}, sD = (e) => { const { rootPrefixCls: t, iconPrefixCls: r, @@ -13836,23 +13877,23 @@ const XW = (e) => { iconPrefixCls: r, direction: n, theme: i - }, /* @__PURE__ */ S.createElement(XW, Object.assign({}, e))); + }, /* @__PURE__ */ S.createElement(JW, Object.assign({}, e))); }; -process.env.NODE_ENV !== "production" && (XW.displayName = "ConfirmDialog", sI.displayName = "ConfirmDialogWrapper"); +process.env.NODE_ENV !== "production" && (JW.displayName = "ConfirmDialog", sD.displayName = "ConfirmDialogWrapper"); const Zu = []; -let ZW = ""; -function QW() { - return ZW; +let e9 = ""; +function t9() { + return e9; } -const Whe = (e) => { +const tfe = (e) => { var t, r; const { prefixCls: n, getContainer: i, direction: o - } = e, a = CG(), s = Jt(gt), l = QW() || s.getPrefixCls(), c = n || `${l}-modal`; + } = e, a = wG(), s = Jt(gt), l = t9() || s.getPrefixCls(), c = n || `${l}-modal`; let u = i; - return u === !1 && (u = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Zc(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ k.createElement(sI, Object.assign({}, e, { + return u === !1 && (u = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Zc(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ k.createElement(sD, Object.assign({}, e, { rootPrefixCls: l, prefixCls: c, iconPrefixCls: s.iconPrefixCls, @@ -13862,9 +13903,9 @@ const Whe = (e) => { getContainer: u })); }; -function _m(e) { - const t = WD(); - process.env.NODE_ENV !== "production" && !t.holderRender && qG("Modal"); +function Dm(e) { + const t = W2(); + process.env.NODE_ENV !== "production" && !t.holderRender && QG("Modal"); const r = document.createDocumentFragment(); let n = Object.assign(Object.assign({}, e), { close: s, @@ -13883,12 +13924,12 @@ function _m(e) { Zu.splice(g, 1); break; } - pW(r); + mW(r); } function a(c) { clearTimeout(i), i = setTimeout(() => { - const u = t.getPrefixCls(void 0, QW()), d = t.getIconPrefixCls(), h = t.getTheme(), f = /* @__PURE__ */ k.createElement(Whe, Object.assign({}, c)); - YD(/* @__PURE__ */ k.createElement(ds, { + const u = t.getPrefixCls(void 0, t9()), d = t.getIconPrefixCls(), h = t.getTheme(), f = /* @__PURE__ */ k.createElement(tfe, Object.assign({}, c)); + Y2(/* @__PURE__ */ k.createElement(ds, { prefixCls: u, iconPrefixCls: d, theme: h @@ -13913,49 +13954,49 @@ function _m(e) { update: l }; } -function JW(e) { +function r9(e) { return Object.assign(Object.assign({}, e), { type: "warning" }); } -function e9(e) { +function n9(e) { return Object.assign(Object.assign({}, e), { type: "info" }); } -function t9(e) { +function i9(e) { return Object.assign(Object.assign({}, e), { type: "success" }); } -function r9(e) { +function o9(e) { return Object.assign(Object.assign({}, e), { type: "error" }); } -function n9(e) { +function a9(e) { return Object.assign(Object.assign({}, e), { type: "confirm" }); } -function jhe(e) { +function rfe(e) { let { rootPrefixCls: t } = e; - process.env.NODE_ENV !== "production" && Zc(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."), ZW = t; + process.env.NODE_ENV !== "production" && Zc(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."), e9 = t; } -var Uhe = function(e, t) { +var nfe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const Khe = (e, t) => { +const ife = (e, t) => { var r, { afterClose: n, config: i - } = e, o = Uhe(e, ["afterClose", "config"]); + } = e, o = nfe(e, ["afterClose", "config"]); const [a, s] = S.useState(!0), [l, c] = S.useState(i), { direction: u, getPrefixCls: d @@ -13980,7 +14021,7 @@ const Khe = (e, t) => { } })); const v = (r = l.okCancel) !== null && r !== void 0 ? r : l.type === "confirm", [m] = Bd("Modal", ns.Modal); - return /* @__PURE__ */ S.createElement(sI, Object.assign({ + return /* @__PURE__ */ S.createElement(sD, Object.assign({ prefixCls: h, rootPrefixCls: f }, l, { @@ -13991,15 +14032,15 @@ const Khe = (e, t) => { direction: l.direction || u, cancelText: l.cancelText || (m == null ? void 0 : m.cancelText) }, o)); -}, Yhe = /* @__PURE__ */ S.forwardRef(Khe); -let $N = 0; -const qhe = /* @__PURE__ */ S.memo(/* @__PURE__ */ S.forwardRef((e, t) => { - const [r, n] = Tce(); +}, ofe = /* @__PURE__ */ S.forwardRef(ife); +let VN = 0; +const afe = /* @__PURE__ */ S.memo(/* @__PURE__ */ S.forwardRef((e, t) => { + const [r, n] = $ce(); return S.useImperativeHandle(t, () => ({ patchElement: n }), []), /* @__PURE__ */ S.createElement(S.Fragment, null, r); })); -function Xhe() { +function sfe() { const e = S.useRef(null), [t, r] = S.useState([]); S.useEffect(() => { t.length && ($e(t).forEach((a) => { @@ -14008,15 +14049,15 @@ function Xhe() { }, [t]); const n = S.useCallback((o) => function(s) { var l; - $N += 1; + VN += 1; const c = /* @__PURE__ */ S.createRef(); let u; const d = new Promise((v) => { u = v; }); let h = !1, f; - const p = /* @__PURE__ */ S.createElement(Yhe, { - key: `modal-${$N}`, + const p = /* @__PURE__ */ S.createElement(ofe, { + key: `modal-${VN}`, config: o(s), ref: c, afterClose: () => { @@ -14046,18 +14087,18 @@ function Xhe() { }; }, []); return [S.useMemo(() => ({ - info: n(e9), - success: n(t9), - error: n(r9), - warning: n(JW), - confirm: n(n9) - }), []), /* @__PURE__ */ S.createElement(qhe, { + info: n(n9), + success: n(i9), + error: n(o9), + warning: n(r9), + confirm: n(a9) + }), []), /* @__PURE__ */ S.createElement(afe, { key: "modal-holder", ref: e })]; } -const Zhe = /* @__PURE__ */ k.createContext({}); -function i9(e) { +const lfe = /* @__PURE__ */ k.createContext({}); +function s9(e) { return (t) => /* @__PURE__ */ S.createElement(ds, { theme: { token: { @@ -14067,7 +14108,7 @@ function i9(e) { } }, /* @__PURE__ */ S.createElement(e, Object.assign({}, t))); } -const o9 = (e, t, r, n) => i9((o) => { +const l9 = (e, t, r, n) => s9((o) => { const { prefixCls: a, style: s @@ -14109,13 +14150,13 @@ const o9 = (e, t, r, n) => i9((o) => { ref: l, style: y }, /* @__PURE__ */ S.createElement(e, Object.assign({}, m))); -}), lI = function() { +}), lD = function() { if (typeof navigator > "u" || typeof window > "u") return !1; var e = navigator.userAgent || navigator.vendor || window.opera; return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e == null ? void 0 : e.substr(0, 4)); }; -var Ub = function(t) { +var Yb = function(t) { var r = t.className, n = t.customizeIcon, i = t.customizeIconProps, o = t.children, a = t.onMouseDown, s = t.onClick, l = typeof n == "function" ? n(i) : n; return /* @__PURE__ */ S.createElement("span", { className: r, @@ -14134,7 +14175,7 @@ var Ub = function(t) { return "".concat(c, "-icon"); })) }, o)); -}, Qhe = function(t, r, n, i, o) { +}, cfe = function(t, r, n, i, o) { var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !1, s = arguments.length > 6 ? arguments[6] : void 0, l = arguments.length > 7 ? arguments[7] : void 0, c = k.useMemo(function() { if (pt(i) === "object") return i.clearIcon; @@ -14145,17 +14186,17 @@ var Ub = function(t) { }, [i, a, n.length, s, l]); return { allowClear: u, - clearIcon: /* @__PURE__ */ k.createElement(Ub, { + clearIcon: /* @__PURE__ */ k.createElement(Yb, { className: "".concat(t, "-clear"), onMouseDown: r, customizeIcon: c }, "×") }; -}, a9 = /* @__PURE__ */ S.createContext(null); -function Jhe() { - return S.useContext(a9); +}, c9 = /* @__PURE__ */ S.createContext(null); +function ufe() { + return S.useContext(c9); } -function efe() { +function dfe() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10, t = S.useState(!1), r = ce(t, 2), n = r[0], i = r[1], o = S.useRef(null), a = function() { window.clearTimeout(o.current); }; @@ -14169,7 +14210,7 @@ function efe() { }; return [n, s, a]; } -function s9() { +function u9() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250, t = S.useRef(null), r = S.useRef(null); S.useEffect(function() { return function() { @@ -14185,7 +14226,7 @@ function s9() { return t.current; }, n]; } -function tfe(e, t, r, n) { +function hfe(e, t, r, n) { var i = S.useRef(null); i.current = { open: t, @@ -14208,40 +14249,40 @@ function tfe(e, t, r, n) { }; }, []); } -function rfe(e) { +function ffe(e) { return ![ // System function button - Oe.ESC, - Oe.SHIFT, - Oe.BACKSPACE, - Oe.TAB, - Oe.WIN_KEY, - Oe.ALT, - Oe.META, - Oe.WIN_KEY_RIGHT, - Oe.CTRL, - Oe.SEMICOLON, - Oe.EQUALS, - Oe.CAPS_LOCK, - Oe.CONTEXT_MENU, + Le.ESC, + Le.SHIFT, + Le.BACKSPACE, + Le.TAB, + Le.WIN_KEY, + Le.ALT, + Le.META, + Le.WIN_KEY_RIGHT, + Le.CTRL, + Le.SEMICOLON, + Le.EQUALS, + Le.CAPS_LOCK, + Le.CONTEXT_MENU, // F1-F12 - Oe.F1, - Oe.F2, - Oe.F3, - Oe.F4, - Oe.F5, - Oe.F6, - Oe.F7, - Oe.F8, - Oe.F9, - Oe.F10, - Oe.F11, - Oe.F12 + Le.F1, + Le.F2, + Le.F3, + Le.F4, + Le.F5, + Le.F6, + Le.F7, + Le.F8, + Le.F9, + Le.F10, + Le.F11, + Le.F12 ].includes(e); } -var nfe = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], ch = void 0; -function ife(e, t) { - var r = e.prefixCls, n = e.invalidate, i = e.item, o = e.renderItem, a = e.responsive, s = e.responsiveDisabled, l = e.registerSize, c = e.itemKey, u = e.className, d = e.style, h = e.children, f = e.display, p = e.order, g = e.component, v = g === void 0 ? "div" : g, m = Nt(e, nfe), y = a && !f; +var pfe = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], ch = void 0; +function gfe(e, t) { + var r = e.prefixCls, n = e.invalidate, i = e.item, o = e.renderItem, a = e.responsive, s = e.responsiveDisabled, l = e.registerSize, c = e.itemKey, u = e.className, d = e.style, h = e.children, f = e.display, p = e.order, g = e.component, v = g === void 0 ? "div" : g, m = Nt(e, pfe), y = a && !f; function C(R) { l(c, R); } @@ -14275,11 +14316,11 @@ function ife(e, t) { disabled: s }, E)), E; } -var Wg = /* @__PURE__ */ S.forwardRef(ife); -Wg.displayName = "Item"; -function ofe(e) { +var Ug = /* @__PURE__ */ S.forwardRef(gfe); +Ug.displayName = "Item"; +function vfe(e) { if (typeof MessageChannel > "u") - Nr(e); + kr(e); else { var t = new MessageChannel(); t.port1.onmessage = function() { @@ -14287,10 +14328,10 @@ function ofe(e) { }, t.port2.postMessage(void 0); } } -function afe() { +function mfe() { var e = S.useRef(null), t = function(n) { - e.current || (e.current = [], ofe(function() { - dz(function() { + e.current || (e.current = [], vfe(function() { + fz(function() { e.current.forEach(function(i) { i(); }), e.current = null; @@ -14299,94 +14340,94 @@ function afe() { }; return t; } -function Np(e, t) { - var r = S.useState(t), n = ce(r, 2), i = n[0], o = n[1], a = Kr(function(s) { +function $p(e, t) { + var r = S.useState(t), n = ce(r, 2), i = n[0], o = n[1], a = Yr(function(s) { e(function() { o(s); }); }); return [i, a]; } -var tS = /* @__PURE__ */ k.createContext(null), sfe = ["component"], lfe = ["className"], cfe = ["className"], ufe = function(t, r) { - var n = S.useContext(tS); +var iS = /* @__PURE__ */ k.createContext(null), yfe = ["component"], Cfe = ["className"], Sfe = ["className"], bfe = function(t, r) { + var n = S.useContext(iS); if (!n) { - var i = t.component, o = i === void 0 ? "div" : i, a = Nt(t, sfe); + var i = t.component, o = i === void 0 ? "div" : i, a = Nt(t, yfe); return /* @__PURE__ */ S.createElement(o, Te({}, a, { ref: r })); } - var s = n.className, l = Nt(n, lfe), c = t.className, u = Nt(t, cfe); - return /* @__PURE__ */ S.createElement(tS.Provider, { + var s = n.className, l = Nt(n, Cfe), c = t.className, u = Nt(t, Sfe); + return /* @__PURE__ */ S.createElement(iS.Provider, { value: null - }, /* @__PURE__ */ S.createElement(Wg, Te({ + }, /* @__PURE__ */ S.createElement(Ug, Te({ ref: r, className: ie(s, c) }, l, u))); -}, l9 = /* @__PURE__ */ S.forwardRef(ufe); -l9.displayName = "RawItem"; -var dfe = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], c9 = "responsive", u9 = "invalidate"; -function hfe(e) { +}, d9 = /* @__PURE__ */ S.forwardRef(bfe); +d9.displayName = "RawItem"; +var wfe = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], h9 = "responsive", f9 = "invalidate"; +function xfe(e) { return "+ ".concat(e.length, " ..."); } -function ffe(e, t) { - var r = e.prefixCls, n = r === void 0 ? "rc-overflow" : r, i = e.data, o = i === void 0 ? [] : i, a = e.renderItem, s = e.renderRawItem, l = e.itemKey, c = e.itemWidth, u = c === void 0 ? 10 : c, d = e.ssr, h = e.style, f = e.className, p = e.maxCount, g = e.renderRest, v = e.renderRawRest, m = e.suffix, y = e.component, C = y === void 0 ? "div" : y, b = e.itemComponent, w = e.onVisibleChange, x = Nt(e, dfe), E = d === "full", R = afe(), P = Np(R, null), T = ce(P, 2), _ = T[0], D = T[1], A = _ || 0, M = Np(R, /* @__PURE__ */ new Map()), O = ce(M, 2), L = O[0], N = O[1], F = Np(R, 0), $ = ce(F, 2), I = $[0], V = $[1], H = Np(R, 0), B = ce(H, 2), W = B[0], j = B[1], X = Np(R, 0), q = ce(X, 2), J = q[0], te = q[1], Q = Le(null), Y = ce(Q, 2), K = Y[0], ae = Y[1], G = Le(null), re = ce(G, 2), le = re[0], ue = re[1], he = S.useMemo(function() { +function Efe(e, t) { + var r = e.prefixCls, n = r === void 0 ? "rc-overflow" : r, i = e.data, o = i === void 0 ? [] : i, a = e.renderItem, s = e.renderRawItem, l = e.itemKey, c = e.itemWidth, u = c === void 0 ? 10 : c, d = e.ssr, h = e.style, f = e.className, p = e.maxCount, g = e.renderRest, v = e.renderRawRest, m = e.suffix, y = e.component, C = y === void 0 ? "div" : y, b = e.itemComponent, w = e.onVisibleChange, x = Nt(e, wfe), E = d === "full", R = mfe(), P = $p(R, null), T = ce(P, 2), _ = T[0], D = T[1], A = _ || 0, M = $p(R, /* @__PURE__ */ new Map()), O = ce(M, 2), L = O[0], N = O[1], F = $p(R, 0), $ = ce(F, 2), I = $[0], V = $[1], H = $p(R, 0), B = ce(H, 2), W = B[0], j = B[1], X = $p(R, 0), q = ce(X, 2), J = q[0], re = q[1], Q = Ie(null), Y = ce(Q, 2), K = Y[0], ae = Y[1], G = Ie(null), ne = ce(G, 2), le = ne[0], ue = ne[1], he = S.useMemo(function() { return le === null && E ? Number.MAX_SAFE_INTEGER : le || 0; - }, [le, _]), fe = Le(!1), de = ce(fe, 2), pe = de[0], _e = de[1], be = "".concat(n, "-item"), Me = Math.max(I, W), Ve = p === c9, oe = o.length && Ve, ye = p === u9, Ne = oe || typeof p == "number" && o.length > p, ke = Ct(function() { - var mt = o; - return oe ? _ === null && E ? mt = o : mt = o.slice(0, Math.min(o.length, A / u)) : typeof p == "number" && (mt = o.slice(0, p)), mt; - }, [o, u, _, p, oe]), we = Ct(function() { + }, [le, _]), fe = Ie(!1), de = ce(fe, 2), pe = de[0], _e = de[1], be = "".concat(n, "-item"), Me = Math.max(I, W), Ve = p === h9, oe = o.length && Ve, ye = p === f9, Ne = oe || typeof p == "number" && o.length > p, ke = St(function() { + var yt = o; + return oe ? _ === null && E ? yt = o : yt = o.slice(0, Math.min(o.length, A / u)) : typeof p == "number" && (yt = o.slice(0, p)), yt; + }, [o, u, _, p, oe]), we = St(function() { return oe ? o.slice(he + 1) : o.slice(ke.length); - }, [o, ke, oe, he]), Ce = or(function(mt, Qe) { - var Rt; - return typeof l == "function" ? l(mt) : (Rt = l && (mt == null ? void 0 : mt[l])) !== null && Rt !== void 0 ? Rt : Qe; - }, [l]), xe = or(a || function(mt) { - return mt; + }, [o, ke, oe, he]), Ce = or(function(yt, Qe) { + var Pt; + return typeof l == "function" ? l(yt) : (Pt = l && (yt == null ? void 0 : yt[l])) !== null && Pt !== void 0 ? Pt : Qe; + }, [l]), xe = or(a || function(yt) { + return yt; }, [a]); - function ze(mt, Qe, Rt) { - le === mt && (Qe === void 0 || Qe === K) || (ue(mt), Rt || (_e(mt < o.length - 1), w == null || w(mt)), Qe !== void 0 && ae(Qe)); + function ze(yt, Qe, Pt) { + le === yt && (Qe === void 0 || Qe === K) || (ue(yt), Pt || (_e(yt < o.length - 1), w == null || w(yt)), Qe !== void 0 && ae(Qe)); } - function je(mt, Qe) { + function je(yt, Qe) { D(Qe.clientWidth); } - function st(mt, Qe) { - N(function(Rt) { - var jt = new Map(Rt); - return Qe === null ? jt.delete(mt) : jt.set(mt, Qe), jt; + function st(yt, Qe) { + N(function(Pt) { + var Ut = new Map(Pt); + return Qe === null ? Ut.delete(yt) : Ut.set(yt, Qe), Ut; }); } - function Xe(mt, Qe) { + function Xe(yt, Qe) { j(Qe), V(W); } - function Ue(mt, Qe) { - te(Qe); + function Ue(yt, Qe) { + re(Qe); } - function Ae(mt) { - return L.get(Ce(ke[mt], mt)); + function Oe(yt) { + return L.get(Ce(ke[yt], yt)); } Pr(function() { if (A && typeof Me == "number" && ke) { - var mt = J, Qe = ke.length, Rt = Qe - 1; + var yt = J, Qe = ke.length, Pt = Qe - 1; if (!Qe) { ze(0, null); return; } - for (var jt = 0; jt < Qe; jt += 1) { - var We = Ae(jt); + for (var Ut = 0; Ut < Qe; Ut += 1) { + var We = Oe(Ut); if (E && (We = We || 0), We === void 0) { - ze(jt - 1, void 0, !0); + ze(Ut - 1, void 0, !0); break; } - if (mt += We, // Only one means `totalWidth` is the final width - Rt === 0 && mt <= A || // Last two width will be the final width - jt === Rt - 1 && mt + Ae(Rt) <= A) { - ze(Rt, null); + if (yt += We, // Only one means `totalWidth` is the final width + Pt === 0 && yt <= A || // Last two width will be the final width + Ut === Pt - 1 && yt + Oe(Pt) <= A) { + ze(Pt, null); break; - } else if (mt + Me > A) { - ze(jt - 1, mt - We - J + W); + } else if (yt + Me > A) { + ze(Ut - 1, yt - We - J + W); break; } } - m && Ae(0) + J > A && ae(null); + m && Oe(0) + J > A && ae(null); } }, [A, L, W, J, Ce, ke]); var Ke = pe && !!we.length, ht = {}; @@ -14395,31 +14436,31 @@ function ffe(e, t) { left: K, top: 0 }); - var Et = { + var Rt = { prefixCls: be, responsive: oe, component: b, invalidate: ye - }, hr = s ? function(mt, Qe) { - var Rt = Ce(mt, Qe); - return /* @__PURE__ */ S.createElement(tS.Provider, { - key: Rt, - value: Z(Z({}, Et), {}, { + }, hr = s ? function(yt, Qe) { + var Pt = Ce(yt, Qe); + return /* @__PURE__ */ S.createElement(iS.Provider, { + key: Pt, + value: Z(Z({}, Rt), {}, { order: Qe, - item: mt, - itemKey: Rt, + item: yt, + itemKey: Pt, registerSize: st, display: Qe <= he }) - }, s(mt, Qe)); - } : function(mt, Qe) { - var Rt = Ce(mt, Qe); - return /* @__PURE__ */ S.createElement(Wg, Te({}, Et, { + }, s(yt, Qe)); + } : function(yt, Qe) { + var Pt = Ce(yt, Qe); + return /* @__PURE__ */ S.createElement(Ug, Te({}, Rt, { order: Qe, - key: Rt, - item: mt, + key: Pt, + item: yt, renderItem: xe, - itemKey: Rt, + itemKey: Pt, registerSize: st, display: Qe <= he })); @@ -14430,18 +14471,18 @@ function ffe(e, t) { display: Ke }; if (v) - v && (At = /* @__PURE__ */ S.createElement(tS.Provider, { - value: Z(Z({}, Et), Lt) + v && (At = /* @__PURE__ */ S.createElement(iS.Provider, { + value: Z(Z({}, Rt), Lt) }, v(we))); else { - var Dt = g || hfe; - At = /* @__PURE__ */ S.createElement(Wg, Te({}, Et, Lt), typeof Dt == "function" ? Dt(we) : Dt); + var Dt = g || xfe; + At = /* @__PURE__ */ S.createElement(Ug, Te({}, Rt, Lt), typeof Dt == "function" ? Dt(we) : Dt); } var Mt = /* @__PURE__ */ S.createElement(C, Te({ className: ie(!ye && n, f), style: h, ref: t - }, x), ke.map(hr), Ne ? At : null, m && /* @__PURE__ */ S.createElement(Wg, Te({}, Et, { + }, x), ke.map(hr), Ne ? At : null, m && /* @__PURE__ */ S.createElement(Ug, Te({}, Rt, { responsive: Ve, responsiveDisabled: !oe, order: he, @@ -14455,12 +14496,12 @@ function ffe(e, t) { disabled: !oe }, Mt)), Mt; } -var ks = /* @__PURE__ */ S.forwardRef(ffe); +var ks = /* @__PURE__ */ S.forwardRef(Efe); ks.displayName = "Overflow"; -ks.Item = l9; -ks.RESPONSIVE = c9; -ks.INVALIDATE = u9; -var pfe = function(t, r) { +ks.Item = d9; +ks.RESPONSIVE = h9; +ks.INVALIDATE = f9; +var Rfe = function(t, r) { var n, i = t.prefixCls, o = t.id, a = t.inputElement, s = t.disabled, l = t.tabIndex, c = t.autoFocus, u = t.autoComplete, d = t.editable, h = t.activeDescendantId, f = t.value, p = t.maxLength, g = t.onKeyDown, v = t.onMouseDown, m = t.onChange, y = t.onPaste, C = t.onCompositionStart, b = t.onCompositionEnd, w = t.open, x = t.attrs, E = a || /* @__PURE__ */ S.createElement("input", null), R = E, P = R.ref, T = R.props, _ = T.onKeyDown, D = T.onChange, A = T.onMouseDown, M = T.onCompositionStart, O = T.onCompositionEnd, L = T.style; return Gs(!("maxLength" in E.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."), E = /* @__PURE__ */ S.cloneElement(E, Z(Z(Z({ type: "search" @@ -14505,69 +14546,69 @@ var pfe = function(t, r) { }, onPaste: y })), E; -}, cI = /* @__PURE__ */ S.forwardRef(pfe); -process.env.NODE_ENV !== "production" && (cI.displayName = "Input"); -function uI(e) { +}, cD = /* @__PURE__ */ S.forwardRef(Rfe); +process.env.NODE_ENV !== "production" && (cD.displayName = "Input"); +function uD(e) { return Array.isArray(e) ? e : e !== void 0 ? [e] : []; } -var gfe = typeof window < "u" && window.document && window.document.documentElement, vfe = process.env.NODE_ENV !== "test" && gfe; -function mfe(e) { +var Pfe = typeof window < "u" && window.document && window.document.documentElement, Tfe = process.env.NODE_ENV !== "test" && Pfe; +function _fe(e) { return e != null; } -function yfe(e) { +function Mfe(e) { return !e && e !== 0; } -function BN(e) { +function HN(e) { return ["string", "number"].includes(pt(e)); } -function d9(e) { +function p9(e) { var t = void 0; - return e && (BN(e.title) ? t = e.title.toString() : BN(e.label) && (t = e.label.toString())), t; + return e && (HN(e.title) ? t = e.title.toString() : HN(e.label) && (t = e.label.toString())), t; } -function Cfe(e, t) { - vfe ? S.useLayoutEffect(e, t) : S.useEffect(e, t); +function Dfe(e, t) { + Tfe ? S.useLayoutEffect(e, t) : S.useEffect(e, t); } -function Sfe(e) { +function Ife(e) { var t; return (t = e.key) !== null && t !== void 0 ? t : e.value; } -var VN = function(t) { +var zN = function(t) { t.preventDefault(), t.stopPropagation(); -}, bfe = function(t) { +}, Afe = function(t) { var r = t.id, n = t.prefixCls, i = t.values, o = t.open, a = t.searchValue, s = t.autoClearSearchValue, l = t.inputRef, c = t.placeholder, u = t.disabled, d = t.mode, h = t.showSearch, f = t.autoFocus, p = t.autoComplete, g = t.activeDescendantId, v = t.tabIndex, m = t.removeIcon, y = t.maxTagCount, C = t.maxTagTextLength, b = t.maxTagPlaceholder, w = b === void 0 ? function(ae) { return "+ ".concat(ae.length, " ..."); - } : b, x = t.tagRender, E = t.onToggleOpen, R = t.onRemove, P = t.onInputChange, T = t.onInputPaste, _ = t.onInputKeyDown, D = t.onInputMouseDown, A = t.onInputCompositionStart, M = t.onInputCompositionEnd, O = S.useRef(null), L = Le(0), N = ce(L, 2), F = N[0], $ = N[1], I = Le(!1), V = ce(I, 2), H = V[0], B = V[1], W = "".concat(n, "-selection"), j = o || d === "multiple" && s === !1 || d === "tags" ? a : "", X = d === "tags" || d === "multiple" && s === !1 || h && (o || H); - Cfe(function() { + } : b, x = t.tagRender, E = t.onToggleOpen, R = t.onRemove, P = t.onInputChange, T = t.onInputPaste, _ = t.onInputKeyDown, D = t.onInputMouseDown, A = t.onInputCompositionStart, M = t.onInputCompositionEnd, O = S.useRef(null), L = Ie(0), N = ce(L, 2), F = N[0], $ = N[1], I = Ie(!1), V = ce(I, 2), H = V[0], B = V[1], W = "".concat(n, "-selection"), j = o || d === "multiple" && s === !1 || d === "tags" ? a : "", X = d === "tags" || d === "multiple" && s === !1 || h && (o || H); + Dfe(function() { $(O.current.scrollWidth); }, [j]); - var q = function(G, re, le, ue, he) { + var q = function(G, ne, le, ue, he) { return /* @__PURE__ */ S.createElement("span", { - title: d9(G), + title: p9(G), className: ie("".concat(W, "-item"), U({}, "".concat(W, "-item-disabled"), le)) }, /* @__PURE__ */ S.createElement("span", { className: "".concat(W, "-item-content") - }, re), ue && /* @__PURE__ */ S.createElement(Ub, { + }, ne), ue && /* @__PURE__ */ S.createElement(Yb, { className: "".concat(W, "-item-remove"), - onMouseDown: VN, + onMouseDown: zN, onClick: he, customizeIcon: m }, "×")); - }, J = function(G, re, le, ue, he, fe) { + }, J = function(G, ne, le, ue, he, fe) { var de = function(_e) { - VN(_e), E(!o); + zN(_e), E(!o); }; return /* @__PURE__ */ S.createElement("span", { onMouseDown: de }, x({ - label: re, + label: ne, value: G, disabled: le, closable: ue, onClose: he, isMaxTag: !!fe })); - }, te = function(G) { - var re = G.disabled, le = G.label, ue = G.value, he = !u && !re, fe = le; + }, re = function(G) { + var ne = G.disabled, le = G.label, ue = G.value, he = !u && !ne, fe = le; if (typeof C == "number" && (typeof le == "string" || typeof le == "number")) { var de = String(fe); de.length > C && (fe = "".concat(de.slice(0, C), "...")); @@ -14575,12 +14616,12 @@ var VN = function(t) { var pe = function(be) { be && be.stopPropagation(), R(G); }; - return typeof x == "function" ? J(ue, fe, re, he, pe) : q(G, fe, re, he, pe); + return typeof x == "function" ? J(ue, fe, ne, he, pe) : q(G, fe, ne, he, pe); }, Q = function(G) { - var re = typeof w == "function" ? w(G) : w; - return typeof x == "function" ? J(void 0, re, !1, !1, void 0, !0) : q({ - title: re - }, re, !1); + var ne = typeof w == "function" ? w(G) : w; + return typeof x == "function" ? J(void 0, ne, !1, !1, void 0, !0) : q({ + title: ne + }, ne, !1); }, Y = /* @__PURE__ */ S.createElement("div", { className: "".concat(W, "-search"), style: { @@ -14592,7 +14633,7 @@ var VN = function(t) { onBlur: function() { B(!1); } - }, /* @__PURE__ */ S.createElement(cI, { + }, /* @__PURE__ */ S.createElement(cD, { ref: l, open: o, prefixCls: n, @@ -14619,21 +14660,21 @@ var VN = function(t) { }, j, " ")), K = /* @__PURE__ */ S.createElement(ks, { prefixCls: "".concat(W, "-overflow"), data: i, - renderItem: te, + renderItem: re, renderRest: Q, suffix: Y, - itemKey: Sfe, + itemKey: Ife, maxCount: y }); return /* @__PURE__ */ S.createElement(S.Fragment, null, K, !i.length && !j && /* @__PURE__ */ S.createElement("span", { className: "".concat(W, "-placeholder") }, c)); -}, wfe = function(t) { +}, Ofe = function(t) { var r = t.inputElement, n = t.prefixCls, i = t.id, o = t.inputRef, a = t.disabled, s = t.autoFocus, l = t.autoComplete, c = t.activeDescendantId, u = t.mode, d = t.open, h = t.values, f = t.placeholder, p = t.tabIndex, g = t.showSearch, v = t.searchValue, m = t.activeValue, y = t.maxLength, C = t.onInputKeyDown, b = t.onInputMouseDown, w = t.onInputChange, x = t.onInputPaste, E = t.onInputCompositionStart, R = t.onInputCompositionEnd, P = t.title, T = S.useState(!1), _ = ce(T, 2), D = _[0], A = _[1], M = u === "combobox", O = M || g, L = h[0], N = v || ""; M && m && !D && (N = m), S.useEffect(function() { M && A(!1); }, [M, m]); - var F = u !== "combobox" && !d && !g ? !1 : !!N, $ = P === void 0 ? d9(L) : P, I = S.useMemo(function() { + var F = u !== "combobox" && !d && !g ? !1 : !!N, $ = P === void 0 ? p9(L) : P, I = S.useMemo(function() { return L ? null : /* @__PURE__ */ S.createElement("span", { className: "".concat(n, "-selection-placeholder"), style: F ? { @@ -14643,7 +14684,7 @@ var VN = function(t) { }, [L, F, f, n]); return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement("span", { className: "".concat(n, "-selection-search") - }, /* @__PURE__ */ S.createElement(cI, { + }, /* @__PURE__ */ S.createElement(cD, { ref: o, prefixCls: n, id: i, @@ -14673,7 +14714,7 @@ var VN = function(t) { visibility: "hidden" } : void 0 }, L.label) : null, I); -}, xfe = function(t, r) { +}, Lfe = function(t, r) { var n = ve(null), i = ve(!1), o = t.prefixCls, a = t.open, s = t.mode, l = t.showSearch, c = t.tokenWithEnter, u = t.disabled, d = t.autoClearSearchValue, h = t.onSearch, f = t.onSearchSubmit, p = t.onToggleOpen, g = t.onInputKeyDown, v = t.domRef; S.useImperativeHandle(r, function() { return { @@ -14685,9 +14726,9 @@ var VN = function(t) { } }; }); - var m = s9(0), y = ce(m, 2), C = y[0], b = y[1], w = function(F) { + var m = u9(0), y = ce(m, 2), C = y[0], b = y[1], w = function(F) { var $ = F.which; - ($ === Oe.UP || $ === Oe.DOWN) && F.preventDefault(), g && g(F), $ === Oe.ENTER && s === "tags" && !i.current && !a && (f == null || f(F.target.value)), rfe($) && p(!0); + ($ === Le.UP || $ === Le.DOWN) && F.preventDefault(), g && g(F), $ === Le.ENTER && s === "tags" && !i.current && !a && (f == null || f(F.target.value)), ffe($) && p(!0); }, x = function() { b(!0); }, E = ve(null), R = function(F) { @@ -14725,16 +14766,16 @@ var VN = function(t) { onInputPaste: D, onInputCompositionStart: P, onInputCompositionEnd: T - }, L = s === "multiple" || s === "tags" ? /* @__PURE__ */ S.createElement(bfe, Te({}, t, O)) : /* @__PURE__ */ S.createElement(wfe, Te({}, t, O)); + }, L = s === "multiple" || s === "tags" ? /* @__PURE__ */ S.createElement(Afe, Te({}, t, O)) : /* @__PURE__ */ S.createElement(Ofe, Te({}, t, O)); return /* @__PURE__ */ S.createElement("div", { ref: v, className: "".concat(o, "-selector"), onClick: A, onMouseDown: M }, L); -}, h9 = /* @__PURE__ */ S.forwardRef(xfe); -process.env.NODE_ENV !== "production" && (h9.displayName = "Selector"); -function Efe(e) { +}, g9 = /* @__PURE__ */ S.forwardRef(Lfe); +process.env.NODE_ENV !== "production" && (g9.displayName = "Selector"); +function Ffe(e) { var t = e.prefixCls, r = e.align, n = e.arrow, i = e.arrowPos, o = n || {}, a = o.className, s = o.content, l = i.x, c = l === void 0 ? 0 : l, u = i.y, d = u === void 0 ? 0 : u, h = S.useRef(); if (!r || !r.points) return null; @@ -14751,7 +14792,7 @@ function Efe(e) { style: f }, s); } -function Rfe(e) { +function Nfe(e) { var t = e.prefixCls, r = e.open, n = e.zIndex, i = e.mask, o = e.motion; return i ? /* @__PURE__ */ S.createElement(us, Te({}, o, { motionAppear: !0, @@ -14767,14 +14808,14 @@ function Rfe(e) { }); }) : null; } -var f9 = /* @__PURE__ */ S.memo(function(e) { +var v9 = /* @__PURE__ */ S.memo(function(e) { var t = e.children; return t; }, function(e, t) { return t.cache; }); -process.env.NODE_ENV !== "production" && (f9.displayName = "PopupContent"); -var p9 = /* @__PURE__ */ S.forwardRef(function(e, t) { +process.env.NODE_ENV !== "production" && (v9.displayName = "PopupContent"); +var m9 = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.popup, n = e.className, i = e.prefixCls, o = e.style, a = e.target, s = e.onVisibleChanged, l = e.open, c = e.keepDom, u = e.fresh, d = e.onClick, h = e.mask, f = e.arrow, p = e.arrowPos, g = e.align, v = e.motion, m = e.maskMotion, y = e.forceRender, C = e.getPopupContainer, b = e.autoDestroy, w = e.portal, x = e.zIndex, E = e.onMouseEnter, R = e.onMouseLeave, P = e.onPointerEnter, T = e.ready, _ = e.offsetX, D = e.offsetY, A = e.offsetR, M = e.offsetB, O = e.onAlign, L = e.onPrepare, N = e.stretch, F = e.targetWidth, $ = e.targetHeight, I = typeof r == "function" ? r() : r, V = l || c, H = (C == null ? void 0 : C.length) > 0, B = S.useState(!C || !H), W = ce(B, 2), j = W[0], X = W[1]; if (Pr(function() { !j && H && a && X(!0); @@ -14787,7 +14828,7 @@ var p9 = /* @__PURE__ */ S.forwardRef(function(e, t) { bottom: q }; if (T || !l) { - var te, Q = g.points, Y = g.dynamicInset || ((te = g._experimental) === null || te === void 0 ? void 0 : te.dynamicInset), K = Y && Q[0][1] === "r", ae = Y && Q[0][0] === "b"; + var re, Q = g.points, Y = g.dynamicInset || ((re = g._experimental) === null || re === void 0 ? void 0 : re.dynamicInset), K = Y && Q[0][1] === "r", ae = Y && Q[0][0] === "b"; K ? (J.right = A, J.left = q) : (J.left = _, J.right = q), ae ? (J.bottom = M, J.top = q) : (J.top = D, J.bottom = q); } var G = {}; @@ -14797,7 +14838,7 @@ var p9 = /* @__PURE__ */ S.forwardRef(function(e, t) { return C(a); }, autoDestroy: b - }, /* @__PURE__ */ S.createElement(Rfe, { + }, /* @__PURE__ */ S.createElement(Nfe, { prefixCls: i, open: l, zIndex: x, @@ -14806,7 +14847,7 @@ var p9 = /* @__PURE__ */ S.forwardRef(function(e, t) { }), /* @__PURE__ */ S.createElement(Li, { onResize: O, disabled: !l - }, function(re) { + }, function(ne) { return /* @__PURE__ */ S.createElement(us, Te({ motionAppear: !0, motionEnter: !0, @@ -14825,7 +14866,7 @@ var p9 = /* @__PURE__ */ S.forwardRef(function(e, t) { }), function(le, ue) { var he = le.className, fe = le.style, de = ie(i, he, n); return /* @__PURE__ */ S.createElement("div", { - ref: Eo(re, t, ue), + ref: Eo(ne, t, ue), className: de, style: Z(Z(Z(Z({ "--arrow-x": "".concat(p.x || 0, "px"), @@ -14838,82 +14879,82 @@ var p9 = /* @__PURE__ */ S.forwardRef(function(e, t) { onMouseLeave: R, onPointerEnter: P, onClick: d - }, f && /* @__PURE__ */ S.createElement(Efe, { + }, f && /* @__PURE__ */ S.createElement(Ffe, { prefixCls: i, arrow: f, arrowPos: p, align: g - }), /* @__PURE__ */ S.createElement(f9, { + }), /* @__PURE__ */ S.createElement(v9, { cache: !l && !u }, I)); }); })); }); -process.env.NODE_ENV !== "production" && (p9.displayName = "Popup"); -var g9 = /* @__PURE__ */ S.forwardRef(function(e, t) { +process.env.NODE_ENV !== "production" && (m9.displayName = "Popup"); +var y9 = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.children, n = e.getTriggerDOMNode, i = Ws(r), o = S.useCallback(function(s) { - Cv(t, n ? n(s) : s); + bv(t, n ? n(s) : s); }, [n]), a = Xc(o, r.ref); return i ? /* @__PURE__ */ S.cloneElement(r, { ref: a }) : r; }); -process.env.NODE_ENV !== "production" && (g9.displayName = "TriggerWrapper"); -var HN = /* @__PURE__ */ S.createContext(null); -function zN(e) { +process.env.NODE_ENV !== "production" && (y9.displayName = "TriggerWrapper"); +var GN = /* @__PURE__ */ S.createContext(null); +function WN(e) { return e ? Array.isArray(e) ? e : [e] : []; } -function Pfe(e, t, r, n) { +function kfe(e, t, r, n) { return S.useMemo(function() { - var i = zN(r ?? t), o = zN(n ?? t), a = new Set(i), s = new Set(o); + var i = WN(r ?? t), o = WN(n ?? t), a = new Set(i), s = new Set(o); return e && (a.has("hover") && (a.delete("hover"), a.add("click")), s.has("hover") && (s.delete("hover"), s.add("click"))), [a, s]; }, [e, t, r, n]); } -function Tfe() { +function $fe() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 ? arguments[2] : void 0; return r ? e[0] === t[0] : e[0] === t[0] && e[1] === t[1]; } -function _fe(e, t, r, n) { +function Bfe(e, t, r, n) { for (var i = r.points, o = Object.keys(e), a = 0; a < o.length; a += 1) { var s, l = o[a]; - if (Tfe((s = e[l]) === null || s === void 0 ? void 0 : s.points, i, n)) + if ($fe((s = e[l]) === null || s === void 0 ? void 0 : s.points, i, n)) return "".concat(t, "-placement-").concat(l); } return ""; } -function GN(e, t, r, n) { +function jN(e, t, r, n) { return t || (r ? { motionName: "".concat(e, "-").concat(r) } : n ? { motionName: n } : null); } -function Mm(e) { +function Im(e) { return e.ownerDocument.defaultView; } function RT(e) { for (var t = [], r = e == null ? void 0 : e.parentElement, n = ["hidden", "scroll", "clip", "auto"]; r; ) { - var i = Mm(r).getComputedStyle(r), o = i.overflowX, a = i.overflowY, s = i.overflow; + var i = Im(r).getComputedStyle(r), o = i.overflowX, a = i.overflowY, s = i.overflow; [o, a, s].some(function(l) { return n.includes(l); }) && t.push(r), r = r.parentElement; } return t; } -function Iv(e) { +function Ov(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; return Number.isNaN(e) ? t : e; } -function kp(e) { - return Iv(parseFloat(e), 0); +function Bp(e) { + return Ov(parseFloat(e), 0); } -function WN(e, t) { +function UN(e, t) { var r = Z({}, e); return (t || []).forEach(function(n) { if (!(n instanceof HTMLBodyElement || n instanceof HTMLHtmlElement)) { - var i = Mm(n).getComputedStyle(n), o = i.overflow, a = i.overflowClipMargin, s = i.borderTopWidth, l = i.borderBottomWidth, c = i.borderLeftWidth, u = i.borderRightWidth, d = n.getBoundingClientRect(), h = n.offsetHeight, f = n.clientHeight, p = n.offsetWidth, g = n.clientWidth, v = kp(s), m = kp(l), y = kp(c), C = kp(u), b = Iv(Math.round(d.width / p * 1e3) / 1e3), w = Iv(Math.round(d.height / h * 1e3) / 1e3), x = (p - g - y - C) * b, E = (h - f - v - m) * w, R = v * w, P = m * w, T = y * b, _ = C * b, D = 0, A = 0; + var i = Im(n).getComputedStyle(n), o = i.overflow, a = i.overflowClipMargin, s = i.borderTopWidth, l = i.borderBottomWidth, c = i.borderLeftWidth, u = i.borderRightWidth, d = n.getBoundingClientRect(), h = n.offsetHeight, f = n.clientHeight, p = n.offsetWidth, g = n.clientWidth, v = Bp(s), m = Bp(l), y = Bp(c), C = Bp(u), b = Ov(Math.round(d.width / p * 1e3) / 1e3), w = Ov(Math.round(d.height / h * 1e3) / 1e3), x = (p - g - y - C) * b, E = (h - f - v - m) * w, R = v * w, P = m * w, T = y * b, _ = C * b, D = 0, A = 0; if (o === "clip") { - var M = kp(a); + var M = Bp(a); D = M * b, A = M * w; } var O = d.x + T - D, L = d.y + R - A, N = O + d.width + 2 * D - T - _ - x, F = L + d.height + 2 * A - R - P - E; @@ -14921,15 +14962,15 @@ function WN(e, t) { } }), r; } -function jN(e) { +function KN(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = "".concat(t), n = r.match(/^(.*)\%$/); return n ? e * (parseFloat(n[1]) / 100) : parseFloat(r); } -function UN(e, t) { +function YN(e, t) { var r = t || [], n = ce(r, 2), i = n[0], o = n[1]; - return [jN(e.width, i), jN(e.height, o)]; + return [KN(e.width, i), KN(e.height, o)]; } -function KN() { +function qN() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; return [e[0], e[1]]; } @@ -14951,7 +14992,7 @@ function tc(e, t) { return i === t ? r[n] || "c" : n; }).join(""); } -function Mfe(e, t, r, n, i, o, a) { +function Vfe(e, t, r, n, i, o, a) { var s = S.useState({ ready: !1, offsetX: 0, @@ -14969,15 +15010,15 @@ function Mfe(e, t, r, n, i, o, a) { f.current = {}; }; e || p(); - var g = Kr(function() { + var g = Yr(function() { if (t && r && e) { - let hi = function(Ht, lr) { - var gn = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : de, Jn = I.x + Ht, _n = I.y + lr, Yo = Jn + te, qo = _n + J, Fa = Math.max(Jn, gn.left), sl = Math.max(_n, gn.top), ou = Math.min(Yo, gn.right), b1 = Math.min(qo, gn.bottom); - return Math.max(0, (ou - Fa) * (b1 - sl)); - }, al = function() { - se = I.y + Dt, ge = se + J, me = I.x + Lt, He = me + te; + let fi = function(Ht, lr) { + var gn = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : de, Jn = I.x + Ht, _n = I.y + lr, Yo = Jn + re, qo = _n + J, Fa = Math.max(Jn, gn.left), ll = Math.max(_n, gn.top), ou = Math.min(Yo, gn.right), b1 = Math.min(qo, gn.bottom); + return Math.max(0, (ou - Fa) * (b1 - ll)); + }, sl = function() { + se = I.y + Dt, ge = se + J, me = I.x + Lt, He = me + re; }; - var y, C, b = t, w = b.ownerDocument, x = Mm(b), E = x.getComputedStyle(b), R = E.width, P = E.height, T = E.position, _ = b.style.left, D = b.style.top, A = b.style.right, M = b.style.bottom, O = b.style.overflow, L = Z(Z({}, i[n]), o), N = w.createElement("div"); + var y, C, b = t, w = b.ownerDocument, x = Im(b), E = x.getComputedStyle(b), R = E.width, P = E.height, T = E.position, _ = b.style.left, D = b.style.top, A = b.style.right, M = b.style.bottom, O = b.style.overflow, L = Z(Z({}, i[n]), o), N = w.createElement("div"); (y = b.parentElement) === null || y === void 0 || y.appendChild(N), N.style.left = "".concat(b.offsetLeft, "px"), N.style.top = "".concat(b.offsetTop, "px"), N.style.position = T, N.style.height = "".concat(b.offsetHeight, "px"), N.style.width = "".concat(b.offsetWidth, "px"), b.style.left = "0", b.style.top = "0", b.style.right = "auto", b.style.bottom = "auto", b.style.overflow = "hidden"; var F; if (Array.isArray(r)) @@ -14996,7 +15037,7 @@ function Mfe(e, t, r, n, i, o, a) { height: $.height }; } - var I = b.getBoundingClientRect(), V = w.documentElement, H = V.clientWidth, B = V.clientHeight, W = V.scrollWidth, j = V.scrollHeight, X = V.scrollTop, q = V.scrollLeft, J = I.height, te = I.width, Q = F.height, Y = F.width, K = { + var I = b.getBoundingClientRect(), V = w.documentElement, H = V.clientWidth, B = V.clientHeight, W = V.scrollWidth, j = V.scrollHeight, X = V.scrollTop, q = V.scrollLeft, J = I.height, re = I.width, Q = F.height, Y = F.width, K = { left: 0, top: 0, right: H, @@ -15006,77 +15047,77 @@ function Mfe(e, t, r, n, i, o, a) { top: -X, right: W - q, bottom: j - X - }, G = L.htmlRegion, re = "visible", le = "visibleFirst"; - G !== "scroll" && G !== le && (G = re); - var ue = G === le, he = WN(ae, h), fe = WN(K, h), de = G === re ? fe : he, pe = ue ? fe : de; + }, G = L.htmlRegion, ne = "visible", le = "visibleFirst"; + G !== "scroll" && G !== le && (G = ne); + var ue = G === le, he = UN(ae, h), fe = UN(K, h), de = G === ne ? fe : he, pe = ue ? fe : de; b.style.left = "auto", b.style.top = "auto", b.style.right = "0", b.style.bottom = "0"; var _e = b.getBoundingClientRect(); b.style.left = _, b.style.top = D, b.style.right = A, b.style.bottom = M, b.style.overflow = O, (C = b.parentElement) === null || C === void 0 || C.removeChild(N); - var be = Iv(Math.round(te / parseFloat(R) * 1e3) / 1e3), Me = Iv(Math.round(J / parseFloat(P) * 1e3) / 1e3); - if (be === 0 || Me === 0 || yv(r) && !Vb(r)) + var be = Ov(Math.round(re / parseFloat(R) * 1e3) / 1e3), Me = Ov(Math.round(J / parseFloat(P) * 1e3) / 1e3); + if (be === 0 || Me === 0 || Sv(r) && !zb(r)) return; - var Ve = L.offset, oe = L.targetOffset, ye = UN(I, Ve), Ne = ce(ye, 2), ke = Ne[0], we = Ne[1], Ce = UN(F, oe), xe = ce(Ce, 2), ze = xe[0], je = xe[1]; + var Ve = L.offset, oe = L.targetOffset, ye = YN(I, Ve), Ne = ce(ye, 2), ke = Ne[0], we = Ne[1], Ce = YN(F, oe), xe = ce(Ce, 2), ze = xe[0], je = xe[1]; F.x -= ze, F.y -= je; - var st = L.points || [], Xe = ce(st, 2), Ue = Xe[0], Ae = Xe[1], Ke = KN(Ae), ht = KN(Ue), Et = uh(F, Ke), hr = uh(I, ht), At = Z({}, L), Lt = Et.x - hr.x + ke, Dt = Et.y - hr.y + we, Mt = hi(Lt, Dt), mt = hi(Lt, Dt, fe), Qe = uh(F, ["t", "l"]), Rt = uh(I, ["t", "l"]), jt = uh(F, ["b", "r"]), We = uh(I, ["b", "r"]), et = L.overflow || {}, rt = et.adjustX, tt = et.adjustY, yt = et.shiftX, Gt = et.shiftY, Mr = function(lr) { + var st = L.points || [], Xe = ce(st, 2), Ue = Xe[0], Oe = Xe[1], Ke = qN(Oe), ht = qN(Ue), Rt = uh(F, Ke), hr = uh(I, ht), At = Z({}, L), Lt = Rt.x - hr.x + ke, Dt = Rt.y - hr.y + we, Mt = fi(Lt, Dt), yt = fi(Lt, Dt, fe), Qe = uh(F, ["t", "l"]), Pt = uh(I, ["t", "l"]), Ut = uh(F, ["b", "r"]), We = uh(I, ["b", "r"]), et = L.overflow || {}, rt = et.adjustX, tt = et.adjustY, Ct = et.shiftX, Gt = et.shiftY, Mr = function(lr) { return typeof lr == "boolean" ? lr : lr >= 0; }, se, ge, me, He; - al(); + sl(); var ct = Mr(tt), it = ht[0] === Ke[0]; if (ct && ht[0] === "t" && (ge > pe.bottom || f.current.bt)) { var dt = Dt; it ? dt -= J - Q : dt = Qe.y - We.y - we; - var bt = hi(Lt, dt), qe = hi(Lt, dt, fe); + var wt = fi(Lt, dt), qe = fi(Lt, dt, fe); // Of course use larger one - bt > Mt || bt === Mt && (!ue || // Choose recommend one - qe >= mt) ? (f.current.bt = !0, Dt = dt, we = -we, At.points = [tc(ht, 0), tc(Ke, 0)]) : f.current.bt = !1; + wt > Mt || wt === Mt && (!ue || // Choose recommend one + qe >= yt) ? (f.current.bt = !0, Dt = dt, we = -we, At.points = [tc(ht, 0), tc(Ke, 0)]) : f.current.bt = !1; } if (ct && ht[0] === "b" && (se < pe.top || f.current.tb)) { var nt = Dt; - it ? nt += J - Q : nt = jt.y - Rt.y - we; - var ut = hi(Lt, nt), tr = hi(Lt, nt, fe); + it ? nt += J - Q : nt = Ut.y - Pt.y - we; + var ut = fi(Lt, nt), tr = fi(Lt, nt, fe); // Of course use larger one ut > Mt || ut === Mt && (!ue || // Choose recommend one - tr >= mt) ? (f.current.tb = !0, Dt = nt, we = -we, At.points = [tc(ht, 0), tc(Ke, 0)]) : f.current.tb = !1; + tr >= yt) ? (f.current.tb = !0, Dt = nt, we = -we, At.points = [tc(ht, 0), tc(Ke, 0)]) : f.current.tb = !1; } var Or = Mr(rt), Br = ht[1] === Ke[1]; if (Or && ht[1] === "l" && (He > pe.right || f.current.rl)) { var xr = Lt; - Br ? xr -= te - Y : xr = Qe.x - We.x - ke; - var An = hi(xr, Dt), Qn = hi(xr, Dt, fe); + Br ? xr -= re - Y : xr = Qe.x - We.x - ke; + var An = fi(xr, Dt), Qn = fi(xr, Dt, fe); // Of course use larger one An > Mt || An === Mt && (!ue || // Choose recommend one - Qn >= mt) ? (f.current.rl = !0, Lt = xr, ke = -ke, At.points = [tc(ht, 1), tc(Ke, 1)]) : f.current.rl = !1; + Qn >= yt) ? (f.current.rl = !0, Lt = xr, ke = -ke, At.points = [tc(ht, 1), tc(Ke, 1)]) : f.current.rl = !1; } if (Or && ht[1] === "r" && (me < pe.left || f.current.lr)) { var ln = Lt; - Br ? ln += te - Y : ln = jt.x - Rt.x - ke; - var Pn = hi(ln, Dt), Vi = hi(ln, Dt, fe); + Br ? ln += re - Y : ln = Ut.x - Pt.x - ke; + var Pn = fi(ln, Dt), Vi = fi(ln, Dt, fe); // Of course use larger one Pn > Mt || Pn === Mt && (!ue || // Choose recommend one - Vi >= mt) ? (f.current.lr = !0, Lt = ln, ke = -ke, At.points = [tc(ht, 1), tc(Ke, 1)]) : f.current.lr = !1; + Vi >= yt) ? (f.current.lr = !0, Lt = ln, ke = -ke, At.points = [tc(ht, 1), tc(Ke, 1)]) : f.current.lr = !1; } - al(); - var Vn = yt === !0 ? 0 : yt; + sl(); + var Vn = Ct === !0 ? 0 : Ct; typeof Vn == "number" && (me < fe.left && (Lt -= me - fe.left - ke, F.x + Y < fe.left + Vn && (Lt += F.x - fe.left + Y - Vn)), He > fe.right && (Lt -= He - fe.right - ke, F.x > fe.right - Vn && (Lt += F.x - fe.right + Vn))); var It = Gt === !0 ? 0 : Gt; typeof It == "number" && (se < fe.top && (Dt -= se - fe.top - we, F.y + Q < fe.top + It && (Dt += F.y - fe.top + Q - It)), ge > fe.bottom && (Dt -= ge - fe.bottom - we, F.y > fe.bottom - It && (Dt += F.y - fe.bottom + It))); - var ur = I.x + Lt, Dr = ur + te, bn = I.y + Dt, ui = bn + J, Ko = F.x, Hi = Ko + Y, rr = F.y, qt = rr + Q, wn = Math.max(ur, Ko), xn = Math.min(Dr, Hi), Xr = (wn + xn) / 2, dr = Xr - ur, sr = Math.max(bn, rr), Sr = Math.min(ui, qt), on = (sr + Sr) / 2, hn = on - bn; + var ur = I.x + Lt, Dr = ur + re, bn = I.y + Dt, di = bn + J, Ko = F.x, Hi = Ko + Y, rr = F.y, Xt = rr + Q, wn = Math.max(ur, Ko), xn = Math.min(Dr, Hi), Xr = (wn + xn) / 2, dr = Xr - ur, sr = Math.max(bn, rr), Sr = Math.min(di, Xt), on = (sr + Sr) / 2, hn = on - bn; a == null || a(t, At); - var Tn = _e.right - I.x - (Lt + I.width), di = _e.bottom - I.y - (Dt + I.height); - be === 1 && (Lt = Math.round(Lt), Tn = Math.round(Tn)), Me === 1 && (Dt = Math.round(Dt), di = Math.round(di)); - var ol = { + var Tn = _e.right - I.x - (Lt + I.width), hi = _e.bottom - I.y - (Dt + I.height); + be === 1 && (Lt = Math.round(Lt), Tn = Math.round(Tn)), Me === 1 && (Dt = Math.round(Dt), hi = Math.round(hi)); + var al = { ready: !0, offsetX: Lt / be, offsetY: Dt / Me, offsetR: Tn / be, - offsetB: di / Me, + offsetB: hi / Me, arrowX: dr / be, arrowY: hn / Me, scaleX: be, scaleY: Me, align: At }; - u(ol); + u(al); } }), v = function() { d.current += 1; @@ -15095,13 +15136,13 @@ function Mfe(e, t, r, n, i, o, a) { e || m(); }, [e]), [c.ready, c.offsetX, c.offsetY, c.offsetR, c.offsetB, c.arrowX, c.arrowY, c.scaleX, c.scaleY, c.align, v]; } -function Dfe(e, t, r, n, i) { +function Hfe(e, t, r, n, i) { Pr(function() { if (e && t && r) { let d = function() { n(), i(); }; - var o = t, a = r, s = RT(o), l = RT(a), c = Mm(a), u = new Set([c].concat($e(s), $e(l))); + var o = t, a = r, s = RT(o), l = RT(a), c = Im(a), u = new Set([c].concat($e(s), $e(l))); return u.forEach(function(h) { h.addEventListener("scroll", d, { passive: !0 @@ -15116,16 +15157,16 @@ function Dfe(e, t, r, n, i) { } }, [e, t, r]); } -function Ife(e, t, r, n, i, o, a, s) { +function zfe(e, t, r, n, i, o, a, s) { var l = S.useRef(e); l.current = e, S.useEffect(function() { if (t && n && (!i || o)) { var c = function(m) { var y = m.target; l.current && !a(y) && s(!1); - }, u = Mm(n); + }, u = Im(n); u.addEventListener("mousedown", c, !0), u.addEventListener("contextmenu", c, !0); - var d = qC(r); + var d = QC(r); if (d && (d.addEventListener("mousedown", c, !0), d.addEventListener("contextmenu", c, !0)), process.env.NODE_ENV !== "production") { var h, f, p = r == null || (h = r.getRootNode) === null || h === void 0 ? void 0 : h.call(r), g = (f = n.getRootNode) === null || f === void 0 ? void 0 : f.call(n); Gs(p === g, "trigger element and popup element should in same shadow root."); @@ -15136,29 +15177,29 @@ function Ife(e, t, r, n, i, o, a, s) { } }, [t, r, n, i, o]); } -var Afe = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"]; -function Ofe() { - var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Rm, t = /* @__PURE__ */ S.forwardRef(function(r, n) { - var i = r.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, a = r.children, s = r.action, l = s === void 0 ? "hover" : s, c = r.showAction, u = r.hideAction, d = r.popupVisible, h = r.defaultPopupVisible, f = r.onPopupVisibleChange, p = r.afterPopupVisibleChange, g = r.mouseEnterDelay, v = r.mouseLeaveDelay, m = v === void 0 ? 0.1 : v, y = r.focusDelay, C = r.blurDelay, b = r.mask, w = r.maskClosable, x = w === void 0 ? !0 : w, E = r.getPopupContainer, R = r.forceRender, P = r.autoDestroy, T = r.destroyPopupOnHide, _ = r.popup, D = r.popupClassName, A = r.popupStyle, M = r.popupPlacement, O = r.builtinPlacements, L = O === void 0 ? {} : O, N = r.popupAlign, F = r.zIndex, $ = r.stretch, I = r.getPopupClassNameFromAlign, V = r.fresh, H = r.alignPoint, B = r.onPopupClick, W = r.onPopupAlign, j = r.arrow, X = r.popupMotion, q = r.maskMotion, J = r.popupTransitionName, te = r.popupAnimation, Q = r.maskTransitionName, Y = r.maskAnimation, K = r.className, ae = r.getTriggerDOMNode, G = Nt(r, Afe), re = P || T || !1, le = S.useState(!1), ue = ce(le, 2), he = ue[0], fe = ue[1]; +var Gfe = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"]; +function Wfe() { + var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Tm, t = /* @__PURE__ */ S.forwardRef(function(r, n) { + var i = r.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, a = r.children, s = r.action, l = s === void 0 ? "hover" : s, c = r.showAction, u = r.hideAction, d = r.popupVisible, h = r.defaultPopupVisible, f = r.onPopupVisibleChange, p = r.afterPopupVisibleChange, g = r.mouseEnterDelay, v = r.mouseLeaveDelay, m = v === void 0 ? 0.1 : v, y = r.focusDelay, C = r.blurDelay, b = r.mask, w = r.maskClosable, x = w === void 0 ? !0 : w, E = r.getPopupContainer, R = r.forceRender, P = r.autoDestroy, T = r.destroyPopupOnHide, _ = r.popup, D = r.popupClassName, A = r.popupStyle, M = r.popupPlacement, O = r.builtinPlacements, L = O === void 0 ? {} : O, N = r.popupAlign, F = r.zIndex, $ = r.stretch, I = r.getPopupClassNameFromAlign, V = r.fresh, H = r.alignPoint, B = r.onPopupClick, W = r.onPopupAlign, j = r.arrow, X = r.popupMotion, q = r.maskMotion, J = r.popupTransitionName, re = r.popupAnimation, Q = r.maskTransitionName, Y = r.maskAnimation, K = r.className, ae = r.getTriggerDOMNode, G = Nt(r, Gfe), ne = P || T || !1, le = S.useState(!1), ue = ce(le, 2), he = ue[0], fe = ue[1]; Pr(function() { - fe(lI()); + fe(lD()); }, []); - var de = S.useRef({}), pe = S.useContext(HN), _e = S.useMemo(function() { + var de = S.useRef({}), pe = S.useContext(GN), _e = S.useMemo(function() { return { registerSubPopup: function(cr, On) { de.current[cr] = On, pe == null || pe.registerSubPopup(cr, On); } }; - }, [pe]), be = _W(), Me = S.useState(null), Ve = ce(Me, 2), oe = Ve[0], ye = Ve[1], Ne = S.useRef(null), ke = Kr(function(kt) { - Ne.current = kt, yv(kt) && oe !== kt && ye(kt), pe == null || pe.registerSubPopup(be, kt); - }), we = S.useState(null), Ce = ce(we, 2), xe = Ce[0], ze = Ce[1], je = S.useRef(null), st = Kr(function(kt) { - yv(kt) && xe !== kt && (ze(kt), je.current = kt); - }), Xe = S.Children.only(a), Ue = (Xe == null ? void 0 : Xe.props) || {}, Ae = {}, Ke = Kr(function(kt) { + }, [pe]), be = IW(), Me = S.useState(null), Ve = ce(Me, 2), oe = Ve[0], ye = Ve[1], Ne = S.useRef(null), ke = Yr(function(kt) { + Ne.current = kt, Sv(kt) && oe !== kt && ye(kt), pe == null || pe.registerSubPopup(be, kt); + }), we = S.useState(null), Ce = ce(we, 2), xe = Ce[0], ze = Ce[1], je = S.useRef(null), st = Yr(function(kt) { + Sv(kt) && xe !== kt && (ze(kt), je.current = kt); + }), Xe = S.Children.only(a), Ue = (Xe == null ? void 0 : Xe.props) || {}, Oe = {}, Ke = Yr(function(kt) { var cr, On, ei = xe; - return (ei == null ? void 0 : ei.contains(kt)) || ((cr = qC(ei)) === null || cr === void 0 ? void 0 : cr.host) === kt || kt === ei || (oe == null ? void 0 : oe.contains(kt)) || ((On = qC(oe)) === null || On === void 0 ? void 0 : On.host) === kt || kt === oe || Object.values(de.current).some(function(Ln) { + return (ei == null ? void 0 : ei.contains(kt)) || ((cr = QC(ei)) === null || cr === void 0 ? void 0 : cr.host) === kt || kt === ei || (oe == null ? void 0 : oe.contains(kt)) || ((On = QC(oe)) === null || On === void 0 ? void 0 : On.host) === kt || kt === oe || Object.values(de.current).some(function(Ln) { return (Ln == null ? void 0 : Ln.contains(kt)) || kt === Ln; }); - }), ht = GN(o, X, te, J), Et = GN(o, q, Y, Q), hr = S.useState(h || !1), At = ce(hr, 2), Lt = At[0], Dt = At[1], Mt = d ?? Lt, mt = Kr(function(kt) { + }), ht = jN(o, X, re, J), Rt = jN(o, q, Y, Q), hr = S.useState(h || !1), At = ce(hr, 2), Lt = At[0], Dt = At[1], Mt = d ?? Lt, yt = Yr(function(kt) { d === void 0 && Dt(kt); }); Pr(function() { @@ -15166,40 +15207,40 @@ function Ofe() { }, [d]); var Qe = S.useRef(Mt); Qe.current = Mt; - var Rt = S.useRef([]); - Rt.current = []; - var jt = Kr(function(kt) { + var Pt = S.useRef([]); + Pt.current = []; + var Ut = Yr(function(kt) { var cr; - mt(kt), ((cr = Rt.current[Rt.current.length - 1]) !== null && cr !== void 0 ? cr : Mt) !== kt && (Rt.current.push(kt), f == null || f(kt)); + yt(kt), ((cr = Pt.current[Pt.current.length - 1]) !== null && cr !== void 0 ? cr : Mt) !== kt && (Pt.current.push(kt), f == null || f(kt)); }), We = S.useRef(), et = function() { clearTimeout(We.current); }, rt = function(cr) { var On = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; - et(), On === 0 ? jt(cr) : We.current = setTimeout(function() { - jt(cr); + et(), On === 0 ? Ut(cr) : We.current = setTimeout(function() { + Ut(cr); }, On * 1e3); }; S.useEffect(function() { return et; }, []); - var tt = S.useState(!1), yt = ce(tt, 2), Gt = yt[0], Mr = yt[1]; + var tt = S.useState(!1), Ct = ce(tt, 2), Gt = Ct[0], Mr = Ct[1]; Pr(function(kt) { (!kt || Mt) && Mr(!0); }, [Mt]); - var se = S.useState(null), ge = ce(se, 2), me = ge[0], He = ge[1], ct = S.useState([0, 0]), it = ce(ct, 2), dt = it[0], bt = it[1], qe = function(cr) { - bt([cr.clientX, cr.clientY]); - }, nt = Mfe(Mt, oe, H ? dt : xe, M, L, N, W), ut = ce(nt, 11), tr = ut[0], Or = ut[1], Br = ut[2], xr = ut[3], An = ut[4], Qn = ut[5], ln = ut[6], Pn = ut[7], Vi = ut[8], Vn = ut[9], It = ut[10], ur = Pfe(he, l, c, u), Dr = ce(ur, 2), bn = Dr[0], ui = Dr[1], Ko = bn.has("click"), Hi = ui.has("click") || ui.has("contextMenu"), rr = Kr(function() { + var se = S.useState(null), ge = ce(se, 2), me = ge[0], He = ge[1], ct = S.useState([0, 0]), it = ce(ct, 2), dt = it[0], wt = it[1], qe = function(cr) { + wt([cr.clientX, cr.clientY]); + }, nt = Vfe(Mt, oe, H ? dt : xe, M, L, N, W), ut = ce(nt, 11), tr = ut[0], Or = ut[1], Br = ut[2], xr = ut[3], An = ut[4], Qn = ut[5], ln = ut[6], Pn = ut[7], Vi = ut[8], Vn = ut[9], It = ut[10], ur = kfe(he, l, c, u), Dr = ce(ur, 2), bn = Dr[0], di = Dr[1], Ko = bn.has("click"), Hi = di.has("click") || di.has("contextMenu"), rr = Yr(function() { Gt || It(); - }), qt = function() { + }), Xt = function() { Qe.current && H && Hi && rt(!1); }; - Dfe(Mt, xe, oe, rr, qt), Pr(function() { + Hfe(Mt, xe, oe, rr, Xt), Pr(function() { rr(); }, [dt, M]), Pr(function() { Mt && !(L != null && L[M]) && rr(); }, [JSON.stringify(N)]); var wn = S.useMemo(function() { - var kt = _fe(L, o, Vn, H); + var kt = Bfe(L, o, Vn, H); return ie(kt, I == null ? void 0 : I(Vn)); }, [Vn, I, L, o, H]); S.useImperativeHandle(n, function() { @@ -15209,18 +15250,18 @@ function Ofe() { forceAlign: rr }; }); - var xn = S.useState(0), Xr = ce(xn, 2), dr = Xr[0], sr = Xr[1], Sr = S.useState(0), on = ce(Sr, 2), hn = on[0], Tn = on[1], di = function() { + var xn = S.useState(0), Xr = ce(xn, 2), dr = Xr[0], sr = Xr[1], Sr = S.useState(0), on = ce(Sr, 2), hn = on[0], Tn = on[1], hi = function() { if ($ && xe) { var cr = xe.getBoundingClientRect(); sr(cr.width), Tn(cr.height); } - }, ol = function() { - di(), rr(); - }, hi = function(cr) { - Mr(!1), It(), p == null || p(cr); }, al = function() { + hi(), rr(); + }, fi = function(cr) { + Mr(!1), It(), p == null || p(cr); + }, sl = function() { return new Promise(function(cr) { - di(), He(function() { + hi(), He(function() { return cr; }); }); @@ -15229,41 +15270,41 @@ function Ofe() { me && (It(), me(), He(null)); }, [me]); function Ht(kt, cr, On, ei) { - Ae[kt] = function(Ln) { - var yy; + Oe[kt] = function(Ln) { + var by; ei == null || ei(Ln), rt(cr, On); - for (var w1 = arguments.length, EL = new Array(w1 > 1 ? w1 - 1 : 0), Cy = 1; Cy < w1; Cy++) - EL[Cy - 1] = arguments[Cy]; - (yy = Ue[kt]) === null || yy === void 0 || yy.call.apply(yy, [Ue, Ln].concat(EL)); + for (var w1 = arguments.length, EL = new Array(w1 > 1 ? w1 - 1 : 0), wy = 1; wy < w1; wy++) + EL[wy - 1] = arguments[wy]; + (by = Ue[kt]) === null || by === void 0 || by.call.apply(by, [Ue, Ln].concat(EL)); }; } - (Ko || Hi) && (Ae.onClick = function(kt) { + (Ko || Hi) && (Oe.onClick = function(kt) { var cr; Qe.current && Hi ? rt(!1) : !Qe.current && Ko && (qe(kt), rt(!0)); for (var On = arguments.length, ei = new Array(On > 1 ? On - 1 : 0), Ln = 1; Ln < On; Ln++) ei[Ln - 1] = arguments[Ln]; (cr = Ue.onClick) === null || cr === void 0 || cr.call.apply(cr, [Ue, kt].concat(ei)); - }), Ife(Mt, Hi, xe, oe, b, x, Ke, rt); - var lr = bn.has("hover"), gn = ui.has("hover"), Jn, _n; + }), zfe(Mt, Hi, xe, oe, b, x, Ke, rt); + var lr = bn.has("hover"), gn = di.has("hover"), Jn, _n; lr && (Ht("onMouseEnter", !0, g, function(kt) { qe(kt); }), Ht("onPointerEnter", !0, g, function(kt) { qe(kt); }), Jn = function(cr) { (Mt || Gt) && oe !== null && oe !== void 0 && oe.contains(cr.target) && rt(!0, g); - }, H && (Ae.onMouseMove = function(kt) { + }, H && (Oe.onMouseMove = function(kt) { var cr; (cr = Ue.onMouseMove) === null || cr === void 0 || cr.call(Ue, kt); })), gn && (Ht("onMouseLeave", !1, m), Ht("onPointerLeave", !1, m), _n = function() { rt(!1, m); - }), bn.has("focus") && Ht("onFocus", !0, y), ui.has("focus") && Ht("onBlur", !1, C), bn.has("contextMenu") && (Ae.onContextMenu = function(kt) { + }), bn.has("focus") && Ht("onFocus", !0, y), di.has("focus") && Ht("onBlur", !1, C), bn.has("contextMenu") && (Oe.onContextMenu = function(kt) { var cr; - Qe.current && ui.has("contextMenu") ? rt(!1) : (qe(kt), rt(!0)), kt.preventDefault(); + Qe.current && di.has("contextMenu") ? rt(!1) : (qe(kt), rt(!0)), kt.preventDefault(); for (var On = arguments.length, ei = new Array(On > 1 ? On - 1 : 0), Ln = 1; Ln < On; Ln++) ei[Ln - 1] = arguments[Ln]; (cr = Ue.onContextMenu) === null || cr === void 0 || cr.call.apply(cr, [Ue, kt].concat(ei)); - }), K && (Ae.className = ie(Ue.className, K)); - var Yo = Z(Z({}, Ue), Ae), qo = {}, Fa = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"]; + }), K && (Oe.className = ie(Ue.className, K)); + var Yo = Z(Z({}, Ue), Oe), qo = {}, Fa = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"]; Fa.forEach(function(kt) { G[kt] && (qo[kt] = function() { for (var cr, On = arguments.length, ei = new Array(On), Ln = 0; Ln < On; Ln++) @@ -15271,19 +15312,19 @@ function Ofe() { (cr = Yo[kt]) === null || cr === void 0 || cr.call.apply(cr, [Yo].concat(ei)), G[kt].apply(G, ei); }); }); - var sl = /* @__PURE__ */ S.cloneElement(Xe, Z(Z({}, Yo), qo)), ou = { + var ll = /* @__PURE__ */ S.cloneElement(Xe, Z(Z({}, Yo), qo)), ou = { x: Qn, y: ln }, b1 = j ? Z({}, j !== !0 ? j : {}) : null; return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(Li, { disabled: !Mt, ref: st, - onResize: ol - }, /* @__PURE__ */ S.createElement(g9, { + onResize: al + }, /* @__PURE__ */ S.createElement(y9, { getTriggerDOMNode: ae - }, sl)), /* @__PURE__ */ S.createElement(HN.Provider, { + }, ll)), /* @__PURE__ */ S.createElement(GN.Provider, { value: _e - }, /* @__PURE__ */ S.createElement(p9, { + }, /* @__PURE__ */ S.createElement(m9, { portal: e, ref: ke, prefixCls: o, @@ -15301,11 +15342,11 @@ function Ofe() { onClick: B, mask: b, motion: ht, - maskMotion: Et, - onVisibleChanged: hi, - onPrepare: al, + maskMotion: Rt, + onVisibleChanged: fi, + onPrepare: sl, forceRender: R, - autoDestroy: re, + autoDestroy: ne, getPopupContainer: E, align: Vn, arrow: b1, @@ -15323,8 +15364,8 @@ function Ofe() { }); return process.env.NODE_ENV !== "production" && (t.displayName = "Trigger"), t; } -const Kb = Ofe(Rm); -var Lfe = ["prefixCls", "disabled", "visible", "children", "popupElement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "builtinPlacements", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"], Ffe = function(t) { +const qb = Wfe(Tm); +var jfe = ["prefixCls", "disabled", "visible", "children", "popupElement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "builtinPlacements", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"], Ufe = function(t) { var r = t === !0 ? 0 : 1; return { bottomLeft: { @@ -15364,13 +15405,13 @@ var Lfe = ["prefixCls", "disabled", "visible", "children", "popupElement", "anim htmlRegion: "scroll" } }; -}, Nfe = function(t, r) { +}, Kfe = function(t, r) { var n = t.prefixCls; t.disabled; - var i = t.visible, o = t.children, a = t.popupElement, s = t.animation, l = t.transitionName, c = t.dropdownStyle, u = t.dropdownClassName, d = t.direction, h = d === void 0 ? "ltr" : d, f = t.placement, p = t.builtinPlacements, g = t.dropdownMatchSelectWidth, v = t.dropdownRender, m = t.dropdownAlign, y = t.getPopupContainer, C = t.empty, b = t.getTriggerDOMNode, w = t.onPopupVisibleChange, x = t.onPopupMouseEnter, E = Nt(t, Lfe), R = "".concat(n, "-dropdown"), P = a; + var i = t.visible, o = t.children, a = t.popupElement, s = t.animation, l = t.transitionName, c = t.dropdownStyle, u = t.dropdownClassName, d = t.direction, h = d === void 0 ? "ltr" : d, f = t.placement, p = t.builtinPlacements, g = t.dropdownMatchSelectWidth, v = t.dropdownRender, m = t.dropdownAlign, y = t.getPopupContainer, C = t.empty, b = t.getTriggerDOMNode, w = t.onPopupVisibleChange, x = t.onPopupMouseEnter, E = Nt(t, jfe), R = "".concat(n, "-dropdown"), P = a; v && (P = v(a)); var T = S.useMemo(function() { - return p || Ffe(g); + return p || Ufe(g); }, [p, g]), _ = s ? "".concat(R, "-").concat(s) : l, D = typeof g == "number", A = S.useMemo(function() { return D ? null : g === !1 ? "minWidth" : "width"; }, [g, D]), M = c; @@ -15385,7 +15426,7 @@ var Lfe = ["prefixCls", "disabled", "visible", "children", "popupElement", "anim return (N = O.current) === null || N === void 0 ? void 0 : N.popupElement; } }; - }), /* @__PURE__ */ S.createElement(Kb, Te({}, E, { + }), /* @__PURE__ */ S.createElement(qb, Te({}, E, { showAction: w ? ["click"] : [], hideAction: w ? ["click"] : [], popupPlacement: f || (h === "rtl" ? "bottomRight" : "bottomLeft"), @@ -15405,16 +15446,16 @@ var Lfe = ["prefixCls", "disabled", "visible", "children", "popupElement", "anim getTriggerDOMNode: b, onPopupVisibleChange: w }), o); -}, v9 = /* @__PURE__ */ S.forwardRef(Nfe); -process.env.NODE_ENV !== "production" && (v9.displayName = "SelectTrigger"); -function YN(e, t) { +}, C9 = /* @__PURE__ */ S.forwardRef(Kfe); +process.env.NODE_ENV !== "production" && (C9.displayName = "SelectTrigger"); +function XN(e, t) { var r = e.key, n; return "value" in e && (n = e.value), r ?? (n !== void 0 ? n : "rc-index-key-".concat(t)); } function PT(e) { return typeof e < "u" && !Number.isNaN(e); } -function m9(e, t) { +function S9(e, t) { var r = e || {}, n = r.label, i = r.value, o = r.options, a = r.groupLabel, s = n || (t ? "children" : "label"); return { label: s, @@ -15423,14 +15464,14 @@ function m9(e, t) { groupLabel: a || s }; } -function kfe(e) { - var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.fieldNames, n = t.childrenAsData, i = [], o = m9(r, !1), a = o.label, s = o.value, l = o.options, c = o.groupLabel; +function Yfe(e) { + var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.fieldNames, n = t.childrenAsData, i = [], o = S9(r, !1), a = o.label, s = o.value, l = o.options, c = o.groupLabel; function u(d, h) { Array.isArray(d) && d.forEach(function(f) { if (h || !(l in f)) { var p = f[s]; i.push({ - key: YN(f, i.length), + key: XN(f, i.length), groupOption: h, data: f, label: f[a], @@ -15439,7 +15480,7 @@ function kfe(e) { } else { var g = f[c]; g === void 0 && n && (g = f.label), i.push({ - key: YN(f, i.length), + key: XN(f, i.length), group: !0, data: f, label: g @@ -15457,11 +15498,11 @@ function TT(e) { } }), t; } -var $fe = function(t, r, n) { +var qfe = function(t, r, n) { if (!r || !r.length) return null; var i = !1, o = function s(l, c) { - var u = fG(c), d = u[0], h = u.slice(1); + var u = vG(c), d = u[0], h = u.slice(1); if (!d) return [l]; var f = l.split(d); @@ -15470,8 +15511,8 @@ var $fe = function(t, r, n) { }, []).filter(Boolean); }, a = o(t, r); return i ? typeof n < "u" ? a.slice(0, n) : a : null; -}, dI = /* @__PURE__ */ S.createContext(null); -function Bfe(e) { +}, dD = /* @__PURE__ */ S.createContext(null); +function Xfe(e) { var t = e.visible, r = e.values; if (!t) return null; @@ -15490,25 +15531,25 @@ function Bfe(e) { return ["number", "string"].includes(pt(o)) ? o : a; }).join(", ")), r.length > n ? ", ..." : null); } -var Vfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], Hfe = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"], rS = function(t) { +var Zfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], Qfe = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"], oS = function(t) { return t === "tags" || t === "multiple"; -}, y9 = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r, n = e.id, i = e.prefixCls, o = e.className, a = e.showSearch, s = e.tagRender, l = e.direction, c = e.omitDomProps, u = e.displayValues, d = e.onDisplayValuesChange, h = e.emptyOptions, f = e.notFoundContent, p = f === void 0 ? "Not Found" : f, g = e.onClear, v = e.mode, m = e.disabled, y = e.loading, C = e.getInputElement, b = e.getRawInputElement, w = e.open, x = e.defaultOpen, E = e.onDropdownVisibleChange, R = e.activeValue, P = e.onActiveValueChange, T = e.activeDescendantId, _ = e.searchValue, D = e.autoClearSearchValue, A = e.onSearch, M = e.onSearchSplit, O = e.tokenSeparators, L = e.allowClear, N = e.suffixIcon, F = e.clearIcon, $ = e.OptionList, I = e.animation, V = e.transitionName, H = e.dropdownStyle, B = e.dropdownClassName, W = e.dropdownMatchSelectWidth, j = e.dropdownRender, X = e.dropdownAlign, q = e.placement, J = e.builtinPlacements, te = e.getPopupContainer, Q = e.showAction, Y = Q === void 0 ? [] : Q, K = e.onFocus, ae = e.onBlur, G = e.onKeyUp, re = e.onKeyDown, le = e.onMouseDown, ue = Nt(e, Vfe), he = rS(v), fe = (a !== void 0 ? a : he) || v === "combobox", de = Z({}, ue); - Hfe.forEach(function(rr) { +}, b9 = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r, n = e.id, i = e.prefixCls, o = e.className, a = e.showSearch, s = e.tagRender, l = e.direction, c = e.omitDomProps, u = e.displayValues, d = e.onDisplayValuesChange, h = e.emptyOptions, f = e.notFoundContent, p = f === void 0 ? "Not Found" : f, g = e.onClear, v = e.mode, m = e.disabled, y = e.loading, C = e.getInputElement, b = e.getRawInputElement, w = e.open, x = e.defaultOpen, E = e.onDropdownVisibleChange, R = e.activeValue, P = e.onActiveValueChange, T = e.activeDescendantId, _ = e.searchValue, D = e.autoClearSearchValue, A = e.onSearch, M = e.onSearchSplit, O = e.tokenSeparators, L = e.allowClear, N = e.suffixIcon, F = e.clearIcon, $ = e.OptionList, I = e.animation, V = e.transitionName, H = e.dropdownStyle, B = e.dropdownClassName, W = e.dropdownMatchSelectWidth, j = e.dropdownRender, X = e.dropdownAlign, q = e.placement, J = e.builtinPlacements, re = e.getPopupContainer, Q = e.showAction, Y = Q === void 0 ? [] : Q, K = e.onFocus, ae = e.onBlur, G = e.onKeyUp, ne = e.onKeyDown, le = e.onMouseDown, ue = Nt(e, Zfe), he = oS(v), fe = (a !== void 0 ? a : he) || v === "combobox", de = Z({}, ue); + Qfe.forEach(function(rr) { delete de[rr]; }), c == null || c.forEach(function(rr) { delete de[rr]; }); var pe = S.useState(!1), _e = ce(pe, 2), be = _e[0], Me = _e[1]; S.useEffect(function() { - Me(lI()); + Me(lD()); }, []); - var Ve = S.useRef(null), oe = S.useRef(null), ye = S.useRef(null), Ne = S.useRef(null), ke = S.useRef(null), we = S.useRef(!1), Ce = efe(), xe = ce(Ce, 3), ze = xe[0], je = xe[1], st = xe[2]; + var Ve = S.useRef(null), oe = S.useRef(null), ye = S.useRef(null), Ne = S.useRef(null), ke = S.useRef(null), we = S.useRef(!1), Ce = dfe(), xe = ce(Ce, 3), ze = xe[0], je = xe[1], st = xe[2]; S.useImperativeHandle(t, function() { - var rr, qt; + var rr, Xt; return { focus: (rr = Ne.current) === null || rr === void 0 ? void 0 : rr.focus, - blur: (qt = Ne.current) === null || qt === void 0 ? void 0 : qt.blur, + blur: (Xt = Ne.current) === null || Xt === void 0 ? void 0 : Xt.blur, scrollTo: function(xn) { var Xr; return (Xr = ke.current) === null || Xr === void 0 ? void 0 : Xr.scrollTo(xn); @@ -15520,48 +15561,48 @@ var Vfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction var rr; if (v !== "combobox") return _; - var qt = (rr = u[0]) === null || rr === void 0 ? void 0 : rr.value; - return typeof qt == "string" || typeof qt == "number" ? String(qt) : ""; - }, [_, v, u]), Ue = v === "combobox" && typeof C == "function" && C() || null, Ae = typeof b == "function" && b(), Ke = Xc(oe, Ae == null || (r = Ae.props) === null || r === void 0 ? void 0 : r.ref), ht = S.useState(!1), Et = ce(ht, 2), hr = Et[0], At = Et[1]; + var Xt = (rr = u[0]) === null || rr === void 0 ? void 0 : rr.value; + return typeof Xt == "string" || typeof Xt == "number" ? String(Xt) : ""; + }, [_, v, u]), Ue = v === "combobox" && typeof C == "function" && C() || null, Oe = typeof b == "function" && b(), Ke = Xc(oe, Oe == null || (r = Oe.props) === null || r === void 0 ? void 0 : r.ref), ht = S.useState(!1), Rt = ce(ht, 2), hr = Rt[0], At = Rt[1]; Pr(function() { At(!0); }, []); var Lt = pn(!1, { defaultValue: x, value: w - }), Dt = ce(Lt, 2), Mt = Dt[0], mt = Dt[1], Qe = hr ? Mt : !1, Rt = !p && h; - (m || Rt && Qe && v === "combobox") && (Qe = !1); - var jt = Rt ? !1 : Qe, We = S.useCallback(function(rr) { - var qt = rr !== void 0 ? rr : !Qe; - m || (mt(qt), Qe !== qt && (E == null || E(qt))); - }, [m, Qe, mt, E]), et = S.useMemo(function() { + }), Dt = ce(Lt, 2), Mt = Dt[0], yt = Dt[1], Qe = hr ? Mt : !1, Pt = !p && h; + (m || Pt && Qe && v === "combobox") && (Qe = !1); + var Ut = Pt ? !1 : Qe, We = S.useCallback(function(rr) { + var Xt = rr !== void 0 ? rr : !Qe; + m || (yt(Xt), Qe !== Xt && (E == null || E(Xt))); + }, [m, Qe, yt, E]), et = S.useMemo(function() { return (O || []).some(function(rr) { return [` `, `\r `].includes(rr); }); - }, [O]), rt = S.useContext(dI) || {}, tt = rt.maxCount, yt = rt.rawValues, Gt = function(qt, wn, xn) { - if (!(he && PT(tt) && (yt == null ? void 0 : yt.size) >= tt)) { - var Xr = !0, dr = qt; + }, [O]), rt = S.useContext(dD) || {}, tt = rt.maxCount, Ct = rt.rawValues, Gt = function(Xt, wn, xn) { + if (!(he && PT(tt) && (Ct == null ? void 0 : Ct.size) >= tt)) { + var Xr = !0, dr = Xt; P == null || P(null); - var sr = $fe(qt, O, PT(tt) ? tt - yt.size : void 0), Sr = xn ? null : sr; + var sr = qfe(Xt, O, PT(tt) ? tt - Ct.size : void 0), Sr = xn ? null : sr; return v !== "combobox" && Sr && (dr = "", M == null || M(Sr), We(!1), Xr = !1), A && Xe !== dr && A(dr, { source: wn ? "typing" : "effect" }), Xr; } - }, Mr = function(qt) { - !qt || !qt.trim() || A(qt, { + }, Mr = function(Xt) { + !Xt || !Xt.trim() || A(Xt, { source: "submit" }); }; S.useEffect(function() { !Qe && !he && v !== "combobox" && Gt("", !1, !1); }, [Qe]), S.useEffect(function() { - Mt && m && mt(!1), m && !we.current && je(!1); + Mt && m && yt(!1), m && !we.current && je(!1); }, [m]); - var se = s9(), ge = ce(se, 2), me = ge[0], He = ge[1], ct = function(qt) { - var wn = me(), xn = qt.which; - if (xn === Oe.ENTER && (v !== "combobox" && qt.preventDefault(), Qe || We(!0)), He(!!Xe), xn === Oe.BACKSPACE && !wn && he && !Xe && u.length) { + var se = u9(), ge = ce(se, 2), me = ge[0], He = ge[1], ct = function(Xt) { + var wn = me(), xn = Xt.which; + if (xn === Le.ENTER && (v !== "combobox" && Xt.preventDefault(), Qe || We(!0)), He(!!Xe), xn === Le.BACKSPACE && !wn && he && !Xe && u.length) { for (var Xr = $e(u), dr = null, sr = Xr.length - 1; sr >= 0; sr -= 1) { var Sr = Xr[sr]; if (!Sr.disabled) { @@ -15577,31 +15618,31 @@ var Vfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction for (var on = arguments.length, hn = new Array(on > 1 ? on - 1 : 0), Tn = 1; Tn < on; Tn++) hn[Tn - 1] = arguments[Tn]; if (Qe) { - var di; - (di = ke.current) === null || di === void 0 || di.onKeyDown.apply(di, [qt].concat(hn)); + var hi; + (hi = ke.current) === null || hi === void 0 || hi.onKeyDown.apply(hi, [Xt].concat(hn)); } - re == null || re.apply(void 0, [qt].concat(hn)); - }, it = function(qt) { + ne == null || ne.apply(void 0, [Xt].concat(hn)); + }, it = function(Xt) { for (var wn = arguments.length, xn = new Array(wn > 1 ? wn - 1 : 0), Xr = 1; Xr < wn; Xr++) xn[Xr - 1] = arguments[Xr]; if (Qe) { var dr; - (dr = ke.current) === null || dr === void 0 || dr.onKeyUp.apply(dr, [qt].concat(xn)); + (dr = ke.current) === null || dr === void 0 || dr.onKeyUp.apply(dr, [Xt].concat(xn)); } - G == null || G.apply(void 0, [qt].concat(xn)); - }, dt = function(qt) { + G == null || G.apply(void 0, [Xt].concat(xn)); + }, dt = function(Xt) { var wn = u.filter(function(xn) { - return xn !== qt; + return xn !== Xt; }); d(wn, { type: "remove", - values: [qt] + values: [Xt] }); - }, bt = S.useRef(!1), qe = function() { - je(!0), m || (K && !bt.current && K.apply(void 0, arguments), Y.includes("focus") && We(!0)), bt.current = !0; + }, wt = S.useRef(!1), qe = function() { + je(!0), m || (K && !wt.current && K.apply(void 0, arguments), Y.includes("focus") && We(!0)), wt.current = !0; }, nt = function() { we.current = !0, je(!1, function() { - bt.current = !1, we.current = !1, We(!1); + wt.current = !1, we.current = !1, We(!1); }), !m && (Xe && (v === "tags" ? A(Xe, { source: "submit" }) : v === "multiple" && A("", { @@ -15615,8 +15656,8 @@ var Vfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction }), ut.splice(0, ut.length); }; }, []); - var tr = function(qt) { - var wn, xn = qt.target, Xr = (wn = ye.current) === null || wn === void 0 ? void 0 : wn.getPopupElement(); + var tr = function(Xt) { + var wn, xn = Xt.target, Xr = (wn = ye.current) === null || wn === void 0 ? void 0 : wn.getPopupElement(); if (Xr && Xr.contains(xn)) { var dr = setTimeout(function() { var hn = ut.indexOf(dr); @@ -15629,30 +15670,30 @@ var Vfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction } for (var sr = arguments.length, Sr = new Array(sr > 1 ? sr - 1 : 0), on = 1; on < sr; on++) Sr[on - 1] = arguments[on]; - le == null || le.apply(void 0, [qt].concat(Sr)); + le == null || le.apply(void 0, [Xt].concat(Sr)); }, Or = S.useState({}), Br = ce(Or, 2), xr = Br[1]; function An() { xr({}); } var Qn; - Ae && (Qn = function(qt) { - We(qt); - }), tfe(function() { + Oe && (Qn = function(Xt) { + We(Xt); + }), hfe(function() { var rr; return [Ve.current, (rr = ye.current) === null || rr === void 0 ? void 0 : rr.getPopupElement()]; - }, jt, We, !!Ae); + }, Ut, We, !!Oe); var ln = S.useMemo(function() { return Z(Z({}, e), {}, { notFoundContent: p, open: Qe, - triggerOpen: jt, + triggerOpen: Ut, id: n, showSearch: fe, multiple: he, toggleOpen: We }); - }, [e, p, jt, Qe, n, fe, he, We]), Pn = !!N || y, Vi; - Pn && (Vi = /* @__PURE__ */ S.createElement(Ub, { + }, [e, p, Ut, Qe, n, fe, he, We]), Pn = !!N || y, Vi; + Pn && (Vi = /* @__PURE__ */ S.createElement(Yb, { className: ie("".concat(i, "-arrow"), U({}, "".concat(i, "-arrow-loading"), y)), customizeIcon: N, customizeIconProps: { @@ -15664,18 +15705,18 @@ var Vfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction } })); var Vn = function() { - var qt; - g == null || g(), (qt = Ne.current) === null || qt === void 0 || qt.focus(), d([], { + var Xt; + g == null || g(), (Xt = Ne.current) === null || Xt === void 0 || Xt.focus(), d([], { type: "clear", values: u }), Gt("", !1, !1); - }, It = Qhe(i, Vn, u, L, F, m, Xe, v), ur = It.allowClear, Dr = It.clearIcon, bn = /* @__PURE__ */ S.createElement($, { + }, It = cfe(i, Vn, u, L, F, m, Xe, v), ur = It.allowClear, Dr = It.clearIcon, bn = /* @__PURE__ */ S.createElement($, { ref: ke - }), ui = ie(i, o, U(U(U(U(U(U(U(U(U(U({}, "".concat(i, "-focused"), ze), "".concat(i, "-multiple"), he), "".concat(i, "-single"), !he), "".concat(i, "-allow-clear"), L), "".concat(i, "-show-arrow"), Pn), "".concat(i, "-disabled"), m), "".concat(i, "-loading"), y), "".concat(i, "-open"), Qe), "".concat(i, "-customize-input"), Ue), "".concat(i, "-show-search"), fe)), Ko = /* @__PURE__ */ S.createElement(v9, { + }), di = ie(i, o, U(U(U(U(U(U(U(U(U(U({}, "".concat(i, "-focused"), ze), "".concat(i, "-multiple"), he), "".concat(i, "-single"), !he), "".concat(i, "-allow-clear"), L), "".concat(i, "-show-arrow"), Pn), "".concat(i, "-disabled"), m), "".concat(i, "-loading"), y), "".concat(i, "-open"), Qe), "".concat(i, "-customize-input"), Ue), "".concat(i, "-show-search"), fe)), Ko = /* @__PURE__ */ S.createElement(C9, { ref: ye, disabled: m, prefixCls: i, - visible: jt, + visible: Ut, popupElement: bn, animation: I, transitionName: V, @@ -15687,21 +15728,21 @@ var Vfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction dropdownAlign: X, placement: q, builtinPlacements: J, - getPopupContainer: te, + getPopupContainer: re, empty: h, - getTriggerDOMNode: function(qt) { + getTriggerDOMNode: function(Xt) { return ( // TODO: This is workaround and should be removed in `rc-select` // And use new standard `nativeElement` for ref. // But we should update `rc-resize-observer` first. - oe.current || qt + oe.current || Xt ); }, onPopupVisibleChange: Qn, onPopupMouseEnter: An - }, Ae ? /* @__PURE__ */ S.cloneElement(Ae, { + }, Oe ? /* @__PURE__ */ S.cloneElement(Oe, { ref: Ke - }) : /* @__PURE__ */ S.createElement(h9, Te({}, e, { + }) : /* @__PURE__ */ S.createElement(g9, Te({}, e, { domRef: oe, prefixCls: i, inputElement: Ue, @@ -15722,8 +15763,8 @@ var Vfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction onRemove: dt, tokenWithEnter: et }))), Hi; - return Ae ? Hi = Ko : Hi = /* @__PURE__ */ S.createElement("div", Te({ - className: ui + return Oe ? Hi = Ko : Hi = /* @__PURE__ */ S.createElement("div", Te({ + className: di }, de, { ref: Ve, onMouseDown: tr, @@ -15731,23 +15772,23 @@ var Vfe = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction onKeyUp: it, onFocus: qe, onBlur: nt - }), /* @__PURE__ */ S.createElement(Bfe, { + }), /* @__PURE__ */ S.createElement(Xfe, { visible: ze && !Qe, values: u - }), Ko, Vi, ur && Dr), /* @__PURE__ */ S.createElement(a9.Provider, { + }), Ko, Vi, ur && Dr), /* @__PURE__ */ S.createElement(c9.Provider, { value: ln }, Hi); }); -process.env.NODE_ENV !== "production" && (y9.displayName = "BaseSelect"); -var hI = function() { +process.env.NODE_ENV !== "production" && (b9.displayName = "BaseSelect"); +var hD = function() { return null; }; -hI.isSelectOptGroup = !0; -var fI = function() { +hD.isSelectOptGroup = !0; +var fD = function() { return null; }; -fI.isSelectOption = !0; -var C9 = /* @__PURE__ */ S.forwardRef(function(e, t) { +fD.isSelectOption = !0; +var w9 = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.height, n = e.offsetY, i = e.offsetX, o = e.children, a = e.prefixCls, s = e.onInnerResize, l = e.innerProps, c = e.rtl, u = e.extra, d = {}, h = { display: "flex", flexDirection: "column" @@ -15771,8 +15812,8 @@ var C9 = /* @__PURE__ */ S.forwardRef(function(e, t) { ref: t }, l), o, u))); }); -C9.displayName = "Filler"; -function zfe(e) { +w9.displayName = "Filler"; +function Jfe(e) { var t = e.children, r = e.setRef, n = S.useCallback(function(i) { r(i); }, []); @@ -15780,7 +15821,7 @@ function zfe(e) { ref: n }); } -function Gfe(e, t, r, n, i, o, a, s) { +function epe(e, t, r, n, i, o, a, s) { var l = s.getKey; return e.slice(t, r + 1).map(function(c, u) { var d = t + u, h = a(c, d, { @@ -15789,7 +15830,7 @@ function Gfe(e, t, r, n, i, o, a, s) { }, offsetX: i }), f = l(c); - return /* @__PURE__ */ S.createElement(zfe, { + return /* @__PURE__ */ S.createElement(Jfe, { key: f, setRef: function(g) { return o(c, g); @@ -15797,7 +15838,7 @@ function Gfe(e, t, r, n, i, o, a, s) { }, h); }); } -function Wfe(e, t, r) { +function tpe(e, t, r) { var n = e.length, i = t.length, o, a; if (n === 0 && i === 0) return null; @@ -15820,15 +15861,15 @@ function Wfe(e, t, r) { multiple: u }; } -function jfe(e, t, r) { +function rpe(e, t, r) { var n = S.useState(e), i = ce(n, 2), o = i[0], a = i[1], s = S.useState(null), l = ce(s, 2), c = l[0], u = l[1]; return S.useEffect(function() { - var d = Wfe(o || [], e || [], t); + var d = tpe(o || [], e || [], t); (d == null ? void 0 : d.index) !== void 0 && u(e[d.index]), a(e); }, [e]), [c]; } -var qN = (typeof navigator > "u" ? "undefined" : pt(navigator)) === "object" && /Firefox/i.test(navigator.userAgent); -const S9 = function(e, t, r, n) { +var ZN = (typeof navigator > "u" ? "undefined" : pt(navigator)) === "object" && /Firefox/i.test(navigator.userAgent); +const x9 = function(e, t, r, n) { var i = ve(!1), o = ve(null); function a() { clearTimeout(o.current), i.current = !0, o.current = setTimeout(function() { @@ -15851,21 +15892,21 @@ const S9 = function(e, t, r, n) { return u && d ? (clearTimeout(o.current), i.current = !1) : (!d || i.current) && a(), !i.current && d; }; }; -function Ufe(e, t, r, n, i, o, a) { - var s = ve(0), l = ve(null), c = ve(null), u = ve(!1), d = S9(t, r, n, i); +function npe(e, t, r, n, i, o, a) { + var s = ve(0), l = ve(null), c = ve(null), u = ve(!1), d = x9(t, r, n, i); function h(y, C) { - Nr.cancel(l.current), s.current += C, c.current = C, !d(!1, C) && (qN || y.preventDefault(), l.current = Nr(function() { + kr.cancel(l.current), s.current += C, c.current = C, !d(!1, C) && (ZN || y.preventDefault(), l.current = kr(function() { var b = u.current ? 10 : 1; a(s.current * b), s.current = 0; })); } function f(y, C) { - a(C, !0), qN || y.preventDefault(); + a(C, !0), ZN || y.preventDefault(); } var p = ve(null), g = ve(null); function v(y) { if (e) { - Nr.cancel(g.current), g.current = Nr(function() { + kr.cancel(g.current), g.current = kr(function() { p.current = null; }, 2); var C = y.deltaX, b = y.deltaY, w = y.shiftKey, x = C, E = b; @@ -15879,7 +15920,7 @@ function Ufe(e, t, r, n, i, o, a) { } return [v, m]; } -function Kfe(e, t, r, n) { +function ipe(e, t, r, n) { var i = S.useMemo(function() { return [/* @__PURE__ */ new Map(), []]; }, [e, r.id, n]), o = ce(i, 2), a = o[0], s = o[1], l = function(u) { @@ -15899,7 +15940,7 @@ function Kfe(e, t, r, n) { }; return l; } -var Yfe = /* @__PURE__ */ function() { +var ope = /* @__PURE__ */ function() { function e() { Xn(this, e), U(this, "maps", void 0), U(this, "id", 0), this.maps = /* @__PURE__ */ Object.create(null); } @@ -15915,10 +15956,10 @@ var Yfe = /* @__PURE__ */ function() { } }]), e; }(); -function qfe(e, t, r) { - var n = S.useState(0), i = ce(n, 2), o = i[0], a = i[1], s = ve(/* @__PURE__ */ new Map()), l = ve(new Yfe()), c = ve(); +function ape(e, t, r) { + var n = S.useState(0), i = ce(n, 2), o = i[0], a = i[1], s = ve(/* @__PURE__ */ new Map()), l = ve(new ope()), c = ve(); function u() { - Nr.cancel(c.current); + kr.cancel(c.current); } function d() { var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1; @@ -15926,14 +15967,14 @@ function qfe(e, t, r) { var p = function() { s.current.forEach(function(v, m) { if (v && v.offsetParent) { - var y = Vg(v), C = y.offsetHeight; + var y = zg(v), C = y.offsetHeight; l.current.get(m) !== C && l.current.set(m, y.offsetHeight); } }), a(function(v) { return v + 1; }); }; - f ? p() : c.current = Nr(p); + f ? p() : c.current = kr(p); } function h(f, p) { var g = e(f); @@ -15943,13 +15984,13 @@ function qfe(e, t, r) { return u; }, []), [h, d, l.current, o]; } -var XN = 14 / 15; -function Xfe(e, t, r) { +var QN = 14 / 15; +function spe(e, t, r) { var n = ve(!1), i = ve(0), o = ve(0), a = ve(null), s = ve(null), l, c = function(f) { if (n.current) { var p = Math.ceil(f.touches[0].pageX), g = Math.ceil(f.touches[0].pageY), v = i.current - p, m = o.current - g, y = Math.abs(v) > Math.abs(m); y ? i.current = p : o.current = g, r(y, y ? v : m) && f.preventDefault(), clearInterval(s.current), s.current = setInterval(function() { - y ? v *= XN : m *= XN; + y ? v *= QN : m *= QN; var C = Math.floor(y ? v : m); (!r(y, C, !0) || Math.abs(C) <= 0.1) && clearInterval(s.current); }, 16); @@ -15974,11 +16015,11 @@ function Xfe(e, t, r) { }; }, [e]); } -var ZN = 10; -function Zfe(e, t, r, n, i, o, a, s) { +var JN = 10; +function lpe(e, t, r, n, i, o, a, s) { var l = S.useRef(), c = S.useState(null), u = ce(c, 2), d = u[0], h = u[1]; return Pr(function() { - if (d && d.times < ZN) { + if (d && d.times < JN) { if (!e.current) { h(function($) { return Z({}, $); @@ -16022,13 +16063,13 @@ function Zfe(e, t, r, n, i, o, a, s) { targetAlign: C, lastTop: b })); - } else process.env.NODE_ENV !== "production" && (d == null ? void 0 : d.times) === ZN && Tt(!1, "Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks."); + } else process.env.NODE_ENV !== "production" && (d == null ? void 0 : d.times) === JN && Tt(!1, "Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks."); }, [d, e.current]), function(f) { if (f == null) { s(); return; } - if (Nr.cancel(l.current), typeof f == "number") + if (kr.cancel(l.current), typeof f == "number") a(f); else if (f && pt(f) === "object") { var p, g = f.align; @@ -16045,7 +16086,7 @@ function Zfe(e, t, r, n, i, o, a, s) { } }; } -function QN(e, t) { +function ek(e, t) { var r = "touches" in e ? e.touches[0] : e; return r[t ? "pageX" : "pageY"]; } @@ -16074,7 +16115,7 @@ var _T = /* @__PURE__ */ S.forwardRef(function(e, t) { startTop: R }; var W = function(Y) { - m(!0), w(QN(Y, c)), P(B.current.top), a(), Y.stopPropagation(), Y.preventDefault(); + m(!0), w(ek(Y, c)), P(B.current.top), a(), Y.stopPropagation(), Y.preventDefault(); }; S.useEffect(function() { var Q = function(G) { @@ -16094,14 +16135,14 @@ var _T = /* @__PURE__ */ S.forwardRef(function(e, t) { X.current = I, S.useEffect(function() { if (v) { var Q, Y = function(G) { - var re = B.current, le = re.dragging, ue = re.pageY, he = re.startTop; - Nr.cancel(Q); + var ne = B.current, le = ne.dragging, ue = ne.pageY, he = ne.startTop; + kr.cancel(Q); var fe = _.current.getBoundingClientRect(), de = d / (c ? fe.width : fe.height); if (le) { - var pe = (QN(G, c) - ue) * de, _e = he; + var pe = (ek(G, c) - ue) * de, _e = he; !T && c ? _e -= pe : _e += pe; var be = j.current, Me = X.current, Ve = Me ? _e / Me : 0, oe = Math.ceil(Ve * be); - oe = Math.max(oe, 0), oe = Math.min(oe, be), Q = Nr(function() { + oe = Math.max(oe, 0), oe = Math.min(oe, be), Q = kr(function() { l(oe, c); }); } @@ -16117,7 +16158,7 @@ var _T = /* @__PURE__ */ S.forwardRef(function(e, t) { }), window.addEventListener("touchend", K, { passive: !0 }), function() { - window.removeEventListener("mousemove", Y), window.removeEventListener("touchmove", Y), window.removeEventListener("mouseup", K), window.removeEventListener("touchend", K), Nr.cancel(Q); + window.removeEventListener("mousemove", Y), window.removeEventListener("touchmove", Y), window.removeEventListener("mouseup", K), window.removeEventListener("touchend", K), kr.cancel(Q); }; } }, [v]), S.useEffect(function() { @@ -16132,14 +16173,14 @@ var _T = /* @__PURE__ */ S.forwardRef(function(e, t) { var q = "".concat(r, "-scrollbar"), J = { position: "absolute", visibility: O ? null : "hidden" - }, te = { + }, re = { position: "absolute", background: "rgba(0, 0, 0, 0.5)", borderRadius: 99, cursor: "pointer", userSelect: "none" }; - return c ? (J.height = 8, J.left = 0, J.right = 0, J.bottom = 0, te.height = "100%", te.width = u, T ? te.left = V : te.right = V) : (J.width = 8, J.top = 0, J.bottom = 0, T ? J.right = 0 : J.left = 0, te.width = "100%", te.height = u, te.top = V), /* @__PURE__ */ S.createElement("div", { + return c ? (J.height = 8, J.left = 0, J.right = 0, J.bottom = 0, re.height = "100%", re.width = u, T ? re.left = V : re.right = V) : (J.width = 8, J.top = 0, J.bottom = 0, T ? J.right = 0 : J.left = 0, re.width = "100%", re.height = u, re.top = V), /* @__PURE__ */ S.createElement("div", { ref: _, className: ie(q, U(U(U({}, "".concat(q, "-horizontal"), c), "".concat(q, "-vertical"), !c), "".concat(q, "-visible"), O)), style: Z(Z({}, J), h), @@ -16148,28 +16189,28 @@ var _T = /* @__PURE__ */ S.forwardRef(function(e, t) { }, /* @__PURE__ */ S.createElement("div", { ref: D, className: ie("".concat(q, "-thumb"), U({}, "".concat(q, "-thumb-moving"), v)), - style: Z(Z({}, te), f), + style: Z(Z({}, re), f), onMouseDown: W })); }); process.env.NODE_ENV !== "production" && (_T.displayName = "ScrollBar"); -var Qfe = 20; -function JN() { +var cpe = 20; +function tk() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = e / t * e; - return isNaN(r) && (r = 0), r = Math.max(r, Qfe), Math.floor(r); + return isNaN(r) && (r = 0), r = Math.max(r, cpe), Math.floor(r); } -var Jfe = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles"], epe = [], tpe = { +var upe = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles"], dpe = [], hpe = { overflowY: "auto", overflowAnchor: "none" }; -function rpe(e, t) { - var r = e.prefixCls, n = r === void 0 ? "rc-virtual-list" : r, i = e.className, o = e.height, a = e.itemHeight, s = e.fullHeight, l = s === void 0 ? !0 : s, c = e.style, u = e.data, d = e.children, h = e.itemKey, f = e.virtual, p = e.direction, g = e.scrollWidth, v = e.component, m = v === void 0 ? "div" : v, y = e.onScroll, C = e.onVirtualScroll, b = e.onVisibleChange, w = e.innerProps, x = e.extraRender, E = e.styles, R = Nt(e, Jfe), P = S.useCallback(function(qe) { +function fpe(e, t) { + var r = e.prefixCls, n = r === void 0 ? "rc-virtual-list" : r, i = e.className, o = e.height, a = e.itemHeight, s = e.fullHeight, l = s === void 0 ? !0 : s, c = e.style, u = e.data, d = e.children, h = e.itemKey, f = e.virtual, p = e.direction, g = e.scrollWidth, v = e.component, m = v === void 0 ? "div" : v, y = e.onScroll, C = e.onVirtualScroll, b = e.onVisibleChange, w = e.innerProps, x = e.extraRender, E = e.styles, R = Nt(e, upe), P = S.useCallback(function(qe) { return typeof h == "function" ? h(qe) : qe == null ? void 0 : qe[h]; - }, [h]), T = qfe(P), _ = ce(T, 4), D = _[0], A = _[1], M = _[2], O = _[3], L = !!(f !== !1 && o && a), N = S.useMemo(function() { + }, [h]), T = ape(P), _ = ce(T, 4), D = _[0], A = _[1], M = _[2], O = _[3], L = !!(f !== !1 && o && a), N = S.useMemo(function() { return Object.values(M.maps).reduce(function(qe, nt) { return qe + nt; }, 0); - }, [M.id, M.maps]), F = L && u && (Math.max(a * u.length, N) > o || !!g), $ = p === "rtl", I = ie(n, U({}, "".concat(n, "-rtl"), $), i), V = u || epe, H = ve(), B = ve(), W = ve(), j = Le(0), X = ce(j, 2), q = X[0], J = X[1], te = Le(0), Q = ce(te, 2), Y = Q[0], K = Q[1], ae = Le(!1), G = ce(ae, 2), re = G[0], le = G[1], ue = function() { + }, [M.id, M.maps]), F = L && u && (Math.max(a * u.length, N) > o || !!g), $ = p === "rtl", I = ie(n, U({}, "".concat(n, "-rtl"), $), i), V = u || dpe, H = ve(), B = ve(), W = ve(), j = Ie(0), X = ce(j, 2), q = X[0], J = X[1], re = Ie(0), Q = ce(re, 2), Y = Q[0], K = Q[1], ae = Ie(!1), G = ce(ae, 2), ne = G[0], le = G[1], ue = function() { le(!0); }, he = function() { le(!1); @@ -16187,7 +16228,7 @@ function rpe(e, t) { var pe = ve({ start: 0, end: V.length - }), _e = ve(), be = jfe(V, P), Me = ce(be, 1), Ve = Me[0]; + }), _e = ve(), be = rpe(V, P), Me = ce(be, 1), Ve = Me[0]; _e.current = Ve; var oe = S.useMemo(function() { if (!L) @@ -16226,53 +16267,53 @@ function rpe(e, t) { width: nt.offsetWidth, height: nt.offsetHeight }); - }, Xe = ve(), Ue = ve(), Ae = S.useMemo(function() { - return JN(ze.width, g); + }, Xe = ve(), Ue = ve(), Oe = S.useMemo(function() { + return tk(ze.width, g); }, [ze.width, g]), Ke = S.useMemo(function() { - return JN(ze.height, ye); - }, [ze.height, ye]), ht = ye - o, Et = ve(ht); - Et.current = ht; + return tk(ze.height, ye); + }, [ze.height, ye]), ht = ye - o, Rt = ve(ht); + Rt.current = ht; function hr(qe) { var nt = qe; - return Number.isNaN(Et.current) || (nt = Math.min(nt, Et.current)), nt = Math.max(nt, 0), nt; + return Number.isNaN(Rt.current) || (nt = Math.min(nt, Rt.current)), nt = Math.max(nt, 0), nt; } - var At = q <= 0, Lt = q >= ht, Dt = Y <= 0, Mt = Y >= g, mt = S9(At, Lt, Dt, Mt), Qe = function() { + var At = q <= 0, Lt = q >= ht, Dt = Y <= 0, Mt = Y >= g, yt = x9(At, Lt, Dt, Mt), Qe = function() { return { x: $ ? -Y : Y, y: q }; - }, Rt = ve(Qe()), jt = Kr(function(qe) { + }, Pt = ve(Qe()), Ut = Yr(function(qe) { if (C) { var nt = Z(Z({}, Qe()), qe); - (Rt.current.x !== nt.x || Rt.current.y !== nt.y) && (C(nt), Rt.current = nt); + (Pt.current.x !== nt.x || Pt.current.y !== nt.y) && (C(nt), Pt.current = nt); } }); function We(qe, nt) { var ut = qe; nt ? (TP(function() { K(ut); - }), jt()) : de(ut); + }), Ut()) : de(ut); } function et(qe) { var nt = qe.currentTarget.scrollTop; - nt !== q && de(nt), y == null || y(qe), jt(); + nt !== q && de(nt), y == null || y(qe), Ut(); } var rt = function(nt) { var ut = nt, tr = g ? g - ze.width : 0; return ut = Math.max(ut, 0), ut = Math.min(ut, tr), ut; - }, tt = Kr(function(qe, nt) { + }, tt = Yr(function(qe, nt) { nt ? (TP(function() { K(function(ut) { var tr = ut + ($ ? -qe : qe); return rt(tr); }); - }), jt()) : de(function(ut) { + }), Ut()) : de(function(ut) { var tr = ut + qe; return tr; }); - }), yt = Ufe(L, At, Lt, Dt, Mt, !!g, tt), Gt = ce(yt, 2), Mr = Gt[0], se = Gt[1]; - Xfe(L, H, function(qe, nt, ut) { - return mt(qe, nt, ut) ? !1 : (Mr({ + }), Ct = npe(L, At, Lt, Dt, Mt, !!g, tt), Gt = ce(Ct, 2), Mr = Gt[0], se = Gt[1]; + spe(L, H, function(qe, nt, ut) { + return yt(qe, nt, ut) ? !1 : (Mr({ preventDefault: function() { }, deltaX: qe ? nt : 0, @@ -16295,7 +16336,7 @@ function rpe(e, t) { }, [L]), Pr(function() { if (g) { var qe = rt(Y); - K(qe), jt({ + K(qe), Ut({ x: qe }); } @@ -16303,7 +16344,7 @@ function rpe(e, t) { var ge = function() { var nt, ut; (nt = Xe.current) === null || nt === void 0 || nt.delayHidden(), (ut = Ue.current) === null || ut === void 0 || ut.delayHidden(); - }, me = Zfe(H, V, M, a, P, function() { + }, me = lpe(H, V, M, a, P, function() { return A(!0); }, de, ge); S.useImperativeHandle(t, function() { @@ -16323,7 +16364,7 @@ function rpe(e, t) { b(qe, V); } }, [Ne, ke, V]); - var He = Kfe(V, P, M, a), ct = x == null ? void 0 : x({ + var He = ipe(V, P, M, a), ct = x == null ? void 0 : x({ start: Ne, end: ke, virtual: F, @@ -16331,16 +16372,16 @@ function rpe(e, t) { offsetY: we, rtl: $, getSize: He - }), it = Gfe(V, Ne, ke, g, Y, D, d, fe), dt = null; - o && (dt = Z(U({}, l ? "height" : "maxHeight", o), tpe), L && (dt.overflowY = "hidden", g && (dt.overflowX = "hidden"), re && (dt.pointerEvents = "none"))); - var bt = {}; - return $ && (bt.dir = "rtl"), /* @__PURE__ */ S.createElement("div", Te({ + }), it = epe(V, Ne, ke, g, Y, D, d, fe), dt = null; + o && (dt = Z(U({}, l ? "height" : "maxHeight", o), hpe), L && (dt.overflowY = "hidden", g && (dt.overflowX = "hidden"), ne && (dt.pointerEvents = "none"))); + var wt = {}; + return $ && (wt.dir = "rtl"), /* @__PURE__ */ S.createElement("div", Te({ ref: W, style: Z(Z({}, c), {}, { position: "relative" }), className: I - }, bt, R), /* @__PURE__ */ S.createElement(Li, { + }, wt, R), /* @__PURE__ */ S.createElement(Li, { onResize: st }, /* @__PURE__ */ S.createElement(m, { className: "".concat(n, "-holder"), @@ -16348,7 +16389,7 @@ function rpe(e, t) { ref: H, onScroll: et, onMouseEnter: ge - }, /* @__PURE__ */ S.createElement(C9, { + }, /* @__PURE__ */ S.createElement(w9, { prefixCls: n, height: ye, offsetX: Y, @@ -16381,24 +16422,24 @@ function rpe(e, t) { onScroll: We, onStartMove: ue, onStopMove: he, - spinSize: Ae, + spinSize: Oe, containerSize: ze.width, horizontal: !0, style: E == null ? void 0 : E.horizontalScrollBar, thumbStyle: E == null ? void 0 : E.horizontalScrollBarThumb })); } -var Yb = /* @__PURE__ */ S.forwardRef(rpe); -Yb.displayName = "List"; -function npe() { +var Xb = /* @__PURE__ */ S.forwardRef(fpe); +Xb.displayName = "List"; +function ppe() { return /(mac\sos|macintosh)/i.test(navigator.appVersion); } -var ipe = ["disabled", "title", "children", "style", "className"]; -function ek(e) { +var gpe = ["disabled", "title", "children", "style", "className"]; +function rk(e) { return typeof e == "string" || typeof e == "number"; } -var ope = function(t, r) { - var n = Jhe(), i = n.prefixCls, o = n.id, a = n.open, s = n.multiple, l = n.mode, c = n.searchValue, u = n.toggleOpen, d = n.notFoundContent, h = n.onPopupScroll, f = S.useContext(dI), p = f.maxCount, g = f.flattenOptions, v = f.onActiveValue, m = f.defaultActiveFirstOption, y = f.onSelect, C = f.menuItemSelectedIcon, b = f.rawValues, w = f.fieldNames, x = f.virtual, E = f.direction, R = f.listHeight, P = f.listItemHeight, T = f.optionRender, _ = "".concat(i, "-item"), D = $d(function() { +var vpe = function(t, r) { + var n = ufe(), i = n.prefixCls, o = n.id, a = n.open, s = n.multiple, l = n.mode, c = n.searchValue, u = n.toggleOpen, d = n.notFoundContent, h = n.onPopupScroll, f = S.useContext(dD), p = f.maxCount, g = f.flattenOptions, v = f.onActiveValue, m = f.defaultActiveFirstOption, y = f.onSelect, C = f.menuItemSelectedIcon, b = f.rawValues, w = f.fieldNames, x = f.virtual, E = f.direction, R = f.listHeight, P = f.listItemHeight, T = f.optionRender, _ = "".concat(i, "-item"), D = $d(function() { return g; }, [a, g], function(Q, Y) { return Y[0] && Q[1] !== Y[1]; @@ -16413,9 +16454,9 @@ var ope = function(t, r) { } : Y); }, N = function(Y) { for (var K = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, ae = D.length, G = 0; G < ae; G += 1) { - var re = (Y + G * K + ae) % ae, le = D[re] || {}, ue = le.group, he = le.data; + var ne = (Y + G * K + ae) % ae, le = D[ne] || {}, ue = le.group, he = le.data; if (!ue && !(he != null && he.disabled) && !M) - return re; + return ne; } return -1; }, F = S.useState(function() { @@ -16442,8 +16483,8 @@ var ope = function(t, r) { var Q = setTimeout(function() { if (!s && a && b.size === 1) { var K = Array.from(b)[0], ae = D.findIndex(function(G) { - var re = G.data; - return re.value === K; + var ne = G.data; + return ne.value === K; }); ae !== -1 && (H(ae), L(ae)); } @@ -16466,23 +16507,23 @@ var ope = function(t, r) { onKeyDown: function(Y) { var K = Y.which, ae = Y.ctrlKey; switch (K) { - case Oe.N: - case Oe.P: - case Oe.UP: - case Oe.DOWN: { + case Le.N: + case Le.P: + case Le.UP: + case Le.DOWN: { var G = 0; - if (K === Oe.UP ? G = -1 : K === Oe.DOWN ? G = 1 : npe() && ae && (K === Oe.N ? G = 1 : K === Oe.P && (G = -1)), G !== 0) { - var re = N(I + G, G); - L(re), H(re, !0); + if (K === Le.UP ? G = -1 : K === Le.DOWN ? G = 1 : ppe() && ae && (K === Le.N ? G = 1 : K === Le.P && (G = -1)), G !== 0) { + var ne = N(I + G, G); + L(ne), H(ne, !0); } break; } - case Oe.ENTER: { + case Le.ENTER: { var le, ue = D[I]; ue && !(ue != null && (le = ue.data) !== null && le !== void 0 && le.disabled) && !M ? W(ue.value) : W(void 0), a && Y.preventDefault(); break; } - case Oe.ESC: + case Le.ESC: u(!1), a && Y.stopPropagation(); } }, @@ -16515,25 +16556,25 @@ var ope = function(t, r) { var K = D[Y]; if (!K) return null; - var ae = K.data || {}, G = ae.value, re = K.group, le = Ji(ae, !0), ue = X(K); + var ae = K.data || {}, G = ae.value, ne = K.group, le = Ji(ae, !0), ue = X(K); return K ? /* @__PURE__ */ S.createElement("div", Te({ - "aria-label": typeof ue == "string" && !re ? ue : null + "aria-label": typeof ue == "string" && !ne ? ue : null }, le, { key: Y }, q(K, Y), { "aria-selected": B(G) }), G) : null; - }, te = { + }, re = { role: "listbox", id: "".concat(o, "_list") }; - return /* @__PURE__ */ S.createElement(S.Fragment, null, x && /* @__PURE__ */ S.createElement("div", Te({}, te, { + return /* @__PURE__ */ S.createElement(S.Fragment, null, x && /* @__PURE__ */ S.createElement("div", Te({}, re, { style: { height: 0, width: 0, overflow: "hidden" } - }), J(I - 1), J(I), J(I + 1)), /* @__PURE__ */ S.createElement(Yb, { + }), J(I - 1), J(I), J(I + 1)), /* @__PURE__ */ S.createElement(Xb, { itemKey: "key", ref: A, data: D, @@ -16544,19 +16585,19 @@ var ope = function(t, r) { onScroll: h, virtual: x, direction: E, - innerProps: x ? null : te + innerProps: x ? null : re }, function(Q, Y) { - var K = Q.group, ae = Q.groupOption, G = Q.data, re = Q.label, le = Q.value, ue = G.key; + var K = Q.group, ae = Q.groupOption, G = Q.data, ne = Q.label, le = Q.value, ue = G.key; if (K) { - var he, fe = (he = G.title) !== null && he !== void 0 ? he : ek(re) ? re.toString() : void 0; + var he, fe = (he = G.title) !== null && he !== void 0 ? he : rk(ne) ? ne.toString() : void 0; return /* @__PURE__ */ S.createElement("div", { className: ie(_, "".concat(_, "-group"), G.className), title: fe - }, re !== void 0 ? re : ue); + }, ne !== void 0 ? ne : ue); } var de = G.disabled, pe = G.title; G.children; - var _e = G.style, be = G.className, Me = Nt(G, ipe), Ve = Sn(Me, j), oe = B(le), ye = de || !oe && M, Ne = "".concat(_, "-option"), ke = ie(_, Ne, be, U(U(U(U({}, "".concat(Ne, "-grouped"), ae), "".concat(Ne, "-active"), I === Y && !ye), "".concat(Ne, "-disabled"), ye), "".concat(Ne, "-selected"), oe)), we = X(Q), Ce = !C || typeof C == "function" || oe, xe = typeof we == "number" ? we : we || le, ze = ek(xe) ? xe.toString() : void 0; + var _e = G.style, be = G.className, Me = Nt(G, gpe), Ve = Sn(Me, j), oe = B(le), ye = de || !oe && M, Ne = "".concat(_, "-option"), ke = ie(_, Ne, be, U(U(U(U({}, "".concat(Ne, "-grouped"), ae), "".concat(Ne, "-active"), I === Y && !ye), "".concat(Ne, "-disabled"), ye), "".concat(Ne, "-selected"), oe)), we = X(Q), Ce = !C || typeof C == "function" || oe, xe = typeof we == "number" ? we : we || le, ze = rk(xe) ? xe.toString() : void 0; return pe !== void 0 && (ze = pe), /* @__PURE__ */ S.createElement("div", Te({}, Ji(Ve), x ? {} : q(Q, Y), { "aria-selected": oe, className: ke, @@ -16572,7 +16613,7 @@ var ope = function(t, r) { className: "".concat(Ne, "-content") }, typeof T == "function" ? T(Q, { index: Y - }) : xe), /* @__PURE__ */ S.isValidElement(C) || oe, Ce && /* @__PURE__ */ S.createElement(Ub, { + }) : xe), /* @__PURE__ */ S.isValidElement(C) || oe, Ce && /* @__PURE__ */ S.createElement(Yb, { className: "".concat(_, "-option-state"), customizeIcon: C, customizeIconProps: { @@ -16582,9 +16623,9 @@ var ope = function(t, r) { } }, oe ? "✓" : null)); })); -}, b9 = /* @__PURE__ */ S.forwardRef(ope); -process.env.NODE_ENV !== "production" && (b9.displayName = "OptionList"); -const ape = function(e, t) { +}, E9 = /* @__PURE__ */ S.forwardRef(vpe); +process.env.NODE_ENV !== "production" && (E9.displayName = "OptionList"); +const mpe = function(e, t) { var r = S.useRef({ values: /* @__PURE__ */ new Map(), options: /* @__PURE__ */ new Map() @@ -16607,9 +16648,9 @@ const ape = function(e, t) { return [n, i]; }; function Y1(e, t) { - return uI(e).join("").toUpperCase().includes(t); + return uD(e).join("").toUpperCase().includes(t); } -const spe = function(e, t, r, n, i) { +const ype = function(e, t, r, n, i) { return S.useMemo(function() { if (!r || n === !1) return e; @@ -16637,46 +16678,46 @@ const spe = function(e, t, r, n, i) { }), l; }, [e, n, i, r, t]); }; -var tk = 0, lpe = process.env.NODE_ENV !== "test" && ii(); -function cpe() { +var nk = 0, Cpe = process.env.NODE_ENV !== "test" && ii(); +function Spe() { var e; - return lpe ? (e = tk, tk += 1) : e = "TEST_OR_SSR", e; + return Cpe ? (e = nk, nk += 1) : e = "TEST_OR_SSR", e; } -function upe(e) { +function bpe(e) { var t = S.useState(), r = ce(t, 2), n = r[0], i = r[1]; return S.useEffect(function() { - i("rc_select_".concat(cpe())); + i("rc_select_".concat(Spe())); }, []), e || n; } -var dpe = ["children", "value"], hpe = ["children"]; -function fpe(e) { - var t = e, r = t.key, n = t.props, i = n.children, o = n.value, a = Nt(n, dpe); +var wpe = ["children", "value"], xpe = ["children"]; +function Epe(e) { + var t = e, r = t.key, n = t.props, i = n.children, o = n.value, a = Nt(n, wpe); return Z({ key: r, value: o !== void 0 ? o : r, children: i }, a); } -function pI(e) { +function pD(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; - return bi(e).map(function(r, n) { + return wi(e).map(function(r, n) { if (!/* @__PURE__ */ S.isValidElement(r) || !r.type) return null; - var i = r, o = i.type.isSelectOptGroup, a = i.key, s = i.props, l = s.children, c = Nt(s, hpe); - return t || !o ? fpe(r) : Z(Z({ + var i = r, o = i.type.isSelectOptGroup, a = i.key, s = i.props, l = s.children, c = Nt(s, xpe); + return t || !o ? Epe(r) : Z(Z({ key: "__RC_SELECT_GRP__".concat(a === null ? n : a, "__"), label: a }, c), {}, { - options: pI(l) + options: pD(l) }); }).filter(function(r) { return r; }); } -var ppe = function(t, r, n, i, o) { +var Rpe = function(t, r, n, i, o) { return S.useMemo(function() { var a = t, s = !t; - s && (a = pI(r)); + s && (a = pD(r)); var l = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), u = function(f, p, g) { g && typeof g == "string" && f.set(p[g], p); }, d = function h(f) { @@ -16692,7 +16733,7 @@ var ppe = function(t, r, n, i, o) { }; }, [t, r, n, i, o]); }; -function rk(e) { +function ik(e) { var t = S.useRef(); t.current = e; var r = S.useCallback(function() { @@ -16700,8 +16741,8 @@ function rk(e) { }, []); return r; } -function gpe(e) { - var t = e.mode, r = e.options, n = e.children, i = e.backfill, o = e.allowClear, a = e.placeholder, s = e.getInputElement, l = e.showSearch, c = e.onSearch, u = e.defaultOpen, d = e.autoFocus, h = e.labelInValue, f = e.value, p = e.inputValue, g = e.optionLabelProp, v = rS(t), m = l !== void 0 ? l : v || t === "combobox", y = r || pI(n); +function Ppe(e) { + var t = e.mode, r = e.options, n = e.children, i = e.backfill, o = e.allowClear, a = e.placeholder, s = e.getInputElement, l = e.showSearch, c = e.onSearch, u = e.defaultOpen, d = e.autoFocus, h = e.labelInValue, f = e.value, p = e.inputValue, g = e.optionLabelProp, v = oS(t), m = l !== void 0 ? l : v || t === "combobox", y = r || pD(n); if (Tt(t !== "tags" || y.every(function(x) { return !x.disabled; }), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), t === "tags" || t === "combobox") { @@ -16713,21 +16754,21 @@ function gpe(e) { Tt(!C, "`value` of Option should not use number type when `mode` is `tags` or `combobox`."); } if (Tt(t !== "combobox" || !g, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), Tt(t === "combobox" || !i, "`backfill` only works with `combobox` mode."), Tt(t === "combobox" || !s, "`getInputElement` only work with `combobox` mode."), AP(t !== "combobox" || !s || !o || !a, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), c && !m && t !== "combobox" && t !== "tags" && Tt(!1, "`onSearch` should work with `showSearch` instead of use alone."), AP(!u || d, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."), f != null) { - var b = uI(f); + var b = uD(f); Tt(!h || b.every(function(x) { return pt(x) === "object" && ("key" in x || "value" in x); }), "`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"), Tt(!v || Array.isArray(f), "`value` should be array when `mode` is `multiple` or `tags`"); } if (n) { var w = null; - bi(n).some(function(x) { + wi(n).some(function(x) { if (!/* @__PURE__ */ S.isValidElement(x) || !x.type) return !1; var E = x, R = E.type; if (R.isSelectOption) return !1; if (R.isSelectOptGroup) { - var P = bi(x.props.children).every(function(T) { + var P = wi(x.props.children).every(function(T) { return !/* @__PURE__ */ S.isValidElement(T) || !x.type || T.type.isSelectOption ? !0 : (w = T.type, !1); }); return !P; @@ -16736,7 +16777,7 @@ function gpe(e) { }), w && Tt(!1, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(w.displayName || w.name || w, "`.")), Tt(p === void 0, "`inputValue` is deprecated, please use `searchValue` instead."); } } -function vpe(e, t) { +function Tpe(e, t) { if (e) { var r = function n(i) { for (var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = 0; a < i.length; a++) { @@ -16750,16 +16791,16 @@ function vpe(e, t) { r(e); } } -var mpe = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "optionRender", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "direction", "listHeight", "listItemHeight", "labelRender", "value", "defaultValue", "labelInValue", "onChange", "maxCount"], ype = ["inputValue"]; -function Cpe(e) { +var _pe = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "optionRender", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "direction", "listHeight", "listItemHeight", "labelRender", "value", "defaultValue", "labelInValue", "onChange", "maxCount"], Mpe = ["inputValue"]; +function Dpe(e) { return !e || pt(e) !== "object"; } -var w9 = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r = e.id, n = e.mode, i = e.prefixCls, o = i === void 0 ? "rc-select" : i, a = e.backfill, s = e.fieldNames, l = e.inputValue, c = e.searchValue, u = e.onSearch, d = e.autoClearSearchValue, h = d === void 0 ? !0 : d, f = e.onSelect, p = e.onDeselect, g = e.dropdownMatchSelectWidth, v = g === void 0 ? !0 : g, m = e.filterOption, y = e.filterSort, C = e.optionFilterProp, b = e.optionLabelProp, w = e.options, x = e.optionRender, E = e.children, R = e.defaultActiveFirstOption, P = e.menuItemSelectedIcon, T = e.virtual, _ = e.direction, D = e.listHeight, A = D === void 0 ? 200 : D, M = e.listItemHeight, O = M === void 0 ? 20 : M, L = e.labelRender, N = e.value, F = e.defaultValue, $ = e.labelInValue, I = e.onChange, V = e.maxCount, H = Nt(e, mpe), B = upe(r), W = rS(n), j = !!(!w && E), X = S.useMemo(function() { +var R9 = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r = e.id, n = e.mode, i = e.prefixCls, o = i === void 0 ? "rc-select" : i, a = e.backfill, s = e.fieldNames, l = e.inputValue, c = e.searchValue, u = e.onSearch, d = e.autoClearSearchValue, h = d === void 0 ? !0 : d, f = e.onSelect, p = e.onDeselect, g = e.dropdownMatchSelectWidth, v = g === void 0 ? !0 : g, m = e.filterOption, y = e.filterSort, C = e.optionFilterProp, b = e.optionLabelProp, w = e.options, x = e.optionRender, E = e.children, R = e.defaultActiveFirstOption, P = e.menuItemSelectedIcon, T = e.virtual, _ = e.direction, D = e.listHeight, A = D === void 0 ? 200 : D, M = e.listItemHeight, O = M === void 0 ? 20 : M, L = e.labelRender, N = e.value, F = e.defaultValue, $ = e.labelInValue, I = e.onChange, V = e.maxCount, H = Nt(e, _pe), B = bpe(r), W = oS(n), j = !!(!w && E), X = S.useMemo(function() { return m === void 0 && n === "combobox" ? !1 : m; }, [m, n]), q = S.useMemo( function() { - return m9(s, j); + return S9(s, j); }, /* eslint-disable react-hooks/exhaustive-deps */ [ @@ -16773,26 +16814,26 @@ var w9 = /* @__PURE__ */ S.forwardRef(function(e, t) { postState: function(et) { return et || ""; } - }), te = ce(J, 2), Q = te[0], Y = te[1], K = ppe(w, E, q, C, b), ae = K.valueOptions, G = K.labelOptions, re = K.options, le = S.useCallback(function(We) { - var et = uI(We); + }), re = ce(J, 2), Q = re[0], Y = re[1], K = Rpe(w, E, q, C, b), ae = K.valueOptions, G = K.labelOptions, ne = K.options, le = S.useCallback(function(We) { + var et = uD(We); return et.map(function(rt) { - var tt, yt, Gt, Mr, se; - if (Cpe(rt)) + var tt, Ct, Gt, Mr, se; + if (Dpe(rt)) tt = rt; else { var ge; - Gt = rt.key, yt = rt.label, tt = (ge = rt.value) !== null && ge !== void 0 ? ge : Gt; + Gt = rt.key, Ct = rt.label, tt = (ge = rt.value) !== null && ge !== void 0 ? ge : Gt; } var me = ae.get(tt); if (me) { var He; - if (yt === void 0 && (yt = me == null ? void 0 : me[b || q.label]), Gt === void 0 && (Gt = (He = me == null ? void 0 : me.key) !== null && He !== void 0 ? He : tt), Mr = me == null ? void 0 : me.disabled, se = me == null ? void 0 : me.title, process.env.NODE_ENV !== "production" && !b) { + if (Ct === void 0 && (Ct = me == null ? void 0 : me[b || q.label]), Gt === void 0 && (Gt = (He = me == null ? void 0 : me.key) !== null && He !== void 0 ? He : tt), Mr = me == null ? void 0 : me.disabled, se = me == null ? void 0 : me.title, process.env.NODE_ENV !== "production" && !b) { var ct = me == null ? void 0 : me[q.label]; - ct !== void 0 && !/* @__PURE__ */ S.isValidElement(ct) && !/* @__PURE__ */ S.isValidElement(yt) && ct !== yt && Tt(!1, "`label` of `value` is not same as `label` in Select options."); + ct !== void 0 && !/* @__PURE__ */ S.isValidElement(ct) && !/* @__PURE__ */ S.isValidElement(Ct) && ct !== Ct && Tt(!1, "`label` of `value` is not same as `label` in Select options."); } } return { - label: yt, + label: Ct, value: tt, key: Gt, disabled: Mr, @@ -16803,8 +16844,8 @@ var w9 = /* @__PURE__ */ S.forwardRef(function(e, t) { value: N }), he = ce(ue, 2), fe = he[0], de = he[1], pe = S.useMemo(function() { var We, et = W && fe === null ? [] : fe, rt = le(et); - return n === "combobox" && yfe((We = rt[0]) === null || We === void 0 ? void 0 : We.value) ? [] : rt; - }, [fe, le, n, W]), _e = ape(pe, ae), be = ce(_e, 2), Me = be[0], Ve = be[1], oe = S.useMemo(function() { + return n === "combobox" && Mfe((We = rt[0]) === null || We === void 0 ? void 0 : We.value) ? [] : rt; + }, [fe, le, n, W]), _e = mpe(pe, ae), be = ce(_e, 2), Me = be[0], Ve = be[1], oe = S.useMemo(function() { if (!n && Me.length === 1) { var We = Me[0]; if (We.value === null && (We.label === null || We.label === void 0)) @@ -16824,16 +16865,16 @@ var w9 = /* @__PURE__ */ S.forwardRef(function(e, t) { S.useEffect(function() { if (n === "combobox") { var We, et = (We = Me[0]) === null || We === void 0 ? void 0 : We.value; - Y(mfe(et) ? String(et) : ""); + Y(_fe(et) ? String(et) : ""); } }, [Me]); - var Ne = rk(function(We, et) { + var Ne = ik(function(We, et) { var rt = et ?? We; return U(U({}, q.value, We), q.label, rt); }), ke = S.useMemo(function() { if (n !== "tags") - return re; - var We = $e(re), et = function(tt) { + return ne; + var We = $e(ne), et = function(tt) { return ae.has(tt); }; return $e(Me).sort(function(rt, tt) { @@ -16842,7 +16883,7 @@ var w9 = /* @__PURE__ */ S.forwardRef(function(e, t) { var tt = rt.value; et(tt) || We.push(Ne(tt, rt.label)); }), We; - }, [Ne, re, ae, Me, n]), we = spe(ke, q, Q, X, C), Ce = S.useMemo(function() { + }, [Ne, ne, ae, Me, n]), we = ype(ke, q, Q, X, C), Ce = S.useMemo(function() { return n !== "tags" || !Q || we.some(function(We) { return We[C || "value"] === Q; }) || we.some(function(We) { @@ -16855,7 +16896,7 @@ var w9 = /* @__PURE__ */ S.forwardRef(function(e, t) { }); }) : Ce; }, [Ce, y, Q]), ze = S.useMemo(function() { - return kfe(xe, { + return Yfe(xe, { fieldNames: q, childrenAsData: j }); @@ -16868,69 +16909,69 @@ var w9 = /* @__PURE__ */ S.forwardRef(function(e, t) { }))) { var tt = $ ? rt : rt.map(function(Gt) { return Gt.value; - }), yt = rt.map(function(Gt) { + }), Ct = rt.map(function(Gt) { return TT(Ve(Gt.value)); }); I( // Value W ? tt : tt[0], // Option - W ? yt : yt[0] + W ? Ct : Ct[0] ); } - }, st = S.useState(null), Xe = ce(st, 2), Ue = Xe[0], Ae = Xe[1], Ke = S.useState(0), ht = ce(Ke, 2), Et = ht[0], hr = ht[1], At = R !== void 0 ? R : n !== "combobox", Lt = S.useCallback(function(We, et) { - var rt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, tt = rt.source, yt = tt === void 0 ? "keyboard" : tt; - hr(et), a && n === "combobox" && We !== null && yt === "keyboard" && Ae(String(We)); + }, st = S.useState(null), Xe = ce(st, 2), Ue = Xe[0], Oe = Xe[1], Ke = S.useState(0), ht = ce(Ke, 2), Rt = ht[0], hr = ht[1], At = R !== void 0 ? R : n !== "combobox", Lt = S.useCallback(function(We, et) { + var rt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, tt = rt.source, Ct = tt === void 0 ? "keyboard" : tt; + hr(et), a && n === "combobox" && We !== null && Ct === "keyboard" && Oe(String(We)); }, [a, n]), Dt = function(et, rt, tt) { - var yt = function() { - var bt, qe = Ve(et); + var Ct = function() { + var wt, qe = Ve(et); return [$ ? { label: qe == null ? void 0 : qe[q.label], value: et, - key: (bt = qe == null ? void 0 : qe.key) !== null && bt !== void 0 ? bt : et + key: (wt = qe == null ? void 0 : qe.key) !== null && wt !== void 0 ? wt : et } : et, TT(qe)]; }; if (rt && f) { - var Gt = yt(), Mr = ce(Gt, 2), se = Mr[0], ge = Mr[1]; + var Gt = Ct(), Mr = ce(Gt, 2), se = Mr[0], ge = Mr[1]; f(se, ge); } else if (!rt && p && tt !== "clear") { - var me = yt(), He = ce(me, 2), ct = He[0], it = He[1]; + var me = Ct(), He = ce(me, 2), ct = He[0], it = He[1]; p(ct, it); } - }, Mt = rk(function(We, et) { + }, Mt = ik(function(We, et) { var rt, tt = W ? et.selected : !0; - tt ? rt = W ? [].concat($e(Me), [We]) : [We] : rt = Me.filter(function(yt) { - return yt.value !== We; - }), je(rt), Dt(We, tt), n === "combobox" ? Ae("") : (!rS || h) && (Y(""), Ae("")); - }), mt = function(et, rt) { + tt ? rt = W ? [].concat($e(Me), [We]) : [We] : rt = Me.filter(function(Ct) { + return Ct.value !== We; + }), je(rt), Dt(We, tt), n === "combobox" ? Oe("") : (!oS || h) && (Y(""), Oe("")); + }), yt = function(et, rt) { je(et); - var tt = rt.type, yt = rt.values; - (tt === "remove" || tt === "clear") && yt.forEach(function(Gt) { + var tt = rt.type, Ct = rt.values; + (tt === "remove" || tt === "clear") && Ct.forEach(function(Gt) { Dt(Gt.value, !1, tt); }); }, Qe = function(et, rt) { - if (Y(et), Ae(null), rt.source === "submit") { + if (Y(et), Oe(null), rt.source === "submit") { var tt = (et || "").trim(); if (tt) { - var yt = Array.from(new Set([].concat($e(ye), [tt]))); - je(yt), Dt(tt, !0), Y(""); + var Ct = Array.from(new Set([].concat($e(ye), [tt]))); + je(Ct), Dt(tt, !0), Y(""); } return; } rt.source !== "blur" && (n === "combobox" && je(et), u == null || u(et)); - }, Rt = function(et) { + }, Pt = function(et) { var rt = et; - n !== "tags" && (rt = et.map(function(yt) { - var Gt = G.get(yt); + n !== "tags" && (rt = et.map(function(Ct) { + var Gt = G.get(Ct); return Gt == null ? void 0 : Gt.value; - }).filter(function(yt) { - return yt !== void 0; + }).filter(function(Ct) { + return Ct !== void 0; })); var tt = Array.from(new Set([].concat($e(ye), $e(rt)))); - je(tt), tt.forEach(function(yt) { - Dt(yt, !0); + je(tt), tt.forEach(function(Ct) { + Dt(Ct, !0); }); - }, jt = S.useMemo(function() { + }, Ut = S.useMemo(function() { var We = T !== !1 && v !== !1; return Z(Z({}, K), {}, { flattenOptions: ze, @@ -16949,34 +16990,34 @@ var w9 = /* @__PURE__ */ S.forwardRef(function(e, t) { optionRender: x }); }, [V, K, ze, Lt, At, Mt, P, ye, q, T, v, _, A, O, j, x]); - return process.env.NODE_ENV !== "production" && (gpe(e), vpe(re, q)), /* @__PURE__ */ S.createElement(dI.Provider, { - value: jt - }, /* @__PURE__ */ S.createElement(y9, Te({}, H, { + return process.env.NODE_ENV !== "production" && (Ppe(e), Tpe(ne, q)), /* @__PURE__ */ S.createElement(dD.Provider, { + value: Ut + }, /* @__PURE__ */ S.createElement(b9, Te({}, H, { // >>> MISC id: B, prefixCls: o, ref: t, - omitDomProps: ype, + omitDomProps: Mpe, mode: n, displayValues: oe, - onDisplayValuesChange: mt, + onDisplayValuesChange: yt, direction: _, searchValue: Q, onSearch: Qe, autoClearSearchValue: h, - onSearchSplit: Rt, + onSearchSplit: Pt, dropdownMatchSelectWidth: v, - OptionList: b9, + OptionList: E9, emptyOptions: !ze.length, activeValue: Ue, - activeDescendantId: "".concat(B, "_list_").concat(Et) + activeDescendantId: "".concat(B, "_list_").concat(Rt) }))); }); -process.env.NODE_ENV !== "production" && (w9.displayName = "Select"); -var gI = w9; -gI.Option = fI; -gI.OptGroup = hI; -function nS(e, t, r) { +process.env.NODE_ENV !== "production" && (R9.displayName = "Select"); +var gD = R9; +gD.Option = fD; +gD.OptGroup = hD; +function aS(e, t, r) { return ie({ [`${e}-status-success`]: t === "success", [`${e}-status-warning`]: t === "warning", @@ -16985,7 +17026,7 @@ function nS(e, t, r) { [`${e}-has-feedback`]: r }); } -const qb = (e, t) => t || e, x9 = () => { +const Zb = (e, t) => t || e, P9 = () => { const [, e] = ai(), r = new Hr(e.colorBgBase).toHsl().l < 0.5 ? { opacity: 0.65 } : {}; @@ -17035,8 +17076,8 @@ const qb = (e, t) => t || e, x9 = () => { d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z" })))); }; -process.env.NODE_ENV !== "production" && (x9.displayName = "EmptyImage"); -const E9 = () => { +process.env.NODE_ENV !== "production" && (P9.displayName = "EmptyImage"); +const T9 = () => { const [, e] = ai(), { colorFill: t, colorFillTertiary: r, @@ -17046,7 +17087,7 @@ const E9 = () => { borderColor: o, shadowColor: a, contentColor: s - } = Ct(() => ({ + } = St(() => ({ borderColor: new Hr(t).onBackground(i).toHexShortString(), shadowColor: new Hr(r).onBackground(i).toHexShortString(), contentColor: new Hr(n).onBackground(i).toHexShortString() @@ -17076,8 +17117,8 @@ const E9 = () => { fill: s })))); }; -process.env.NODE_ENV !== "production" && (E9.displayName = "SimpleImage"); -const Spe = (e) => { +process.env.NODE_ENV !== "production" && (T9.displayName = "SimpleImage"); +const Ipe = (e) => { const { componentCls: t, margin: r, @@ -17132,7 +17173,7 @@ const Spe = (e) => { } } }; -}, bpe = Ur("Empty", (e) => { +}, Ape = Kr("Empty", (e) => { const { componentCls: t, controlHeightLG: r, @@ -17143,38 +17184,38 @@ const Spe = (e) => { emptyImgHeightMD: r, emptyImgHeightSM: n(r).mul(0.875).equal() }); - return [Spe(i)]; + return [Ipe(i)]; }); -var wpe = function(e, t) { +var Ope = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const R9 = /* @__PURE__ */ S.createElement(x9, null), P9 = /* @__PURE__ */ S.createElement(E9, null), _s = (e) => { +const _9 = /* @__PURE__ */ S.createElement(P9, null), M9 = /* @__PURE__ */ S.createElement(T9, null), _s = (e) => { var { className: t, rootClassName: r, prefixCls: n, - image: i = R9, + image: i = _9, description: o, children: a, imageStyle: s, style: l - } = e, c = wpe(e, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style"]); + } = e, c = Ope(e, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style"]); const { getPrefixCls: u, direction: d, empty: h - } = S.useContext(gt), f = u("empty", n), [p, g, v] = bpe(f), [m] = Bd("Empty"), y = typeof o < "u" ? o : m == null ? void 0 : m.description, C = typeof y == "string" ? y : "empty"; + } = S.useContext(gt), f = u("empty", n), [p, g, v] = Ape(f), [m] = Bd("Empty"), y = typeof o < "u" ? o : m == null ? void 0 : m.description, C = typeof y == "string" ? y : "empty"; let b = null; return typeof i == "string" ? b = /* @__PURE__ */ S.createElement("img", { alt: C, src: i }) : b = i, p(/* @__PURE__ */ S.createElement("div", Object.assign({ className: ie(g, v, f, h == null ? void 0 : h.className, { - [`${f}-normal`]: i === P9, + [`${f}-normal`]: i === M9, [`${f}-rtl`]: d === "rtl" }, t, r), style: Object.assign(Object.assign({}, h == null ? void 0 : h.style), l) @@ -17187,10 +17228,10 @@ const R9 = /* @__PURE__ */ S.createElement(x9, null), P9 = /* @__PURE__ */ S.cre className: `${f}-footer` }, a))); }; -_s.PRESENTED_IMAGE_DEFAULT = R9; -_s.PRESENTED_IMAGE_SIMPLE = P9; +_s.PRESENTED_IMAGE_DEFAULT = _9; +_s.PRESENTED_IMAGE_SIMPLE = M9; process.env.NODE_ENV !== "production" && (_s.displayName = "Empty"); -const vI = (e) => { +const vD = (e) => { const { componentName: t } = e, { @@ -17214,18 +17255,18 @@ const vI = (e) => { default: return /* @__PURE__ */ k.createElement(_s, null); } -}, mI = function(e, t) { +}, mD = function(e, t) { let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0; var n, i; const { variant: o, [e]: a - } = Jt(gt), s = Jt(Lde), l = a == null ? void 0 : a.variant; + } = Jt(gt), s = Jt(jde), l = a == null ? void 0 : a.variant; let c; typeof t < "u" ? c = t : r === !1 ? c = "borderless" : c = (i = (n = s ?? l) !== null && n !== void 0 ? n : o) !== null && i !== void 0 ? i : "outlined"; - const u = Mse.includes(c); + const u = Vse.includes(c); return [c, u]; -}, xpe = (e) => { +}, Lpe = (e) => { const r = { overflow: { adjustX: !0, @@ -17254,10 +17295,10 @@ const vI = (e) => { }) }; }; -function Epe(e, t) { - return e || xpe(t); +function Fpe(e, t) { + return e || Lpe(t); } -const nk = (e) => { +const ok = (e) => { const { optionHeight: t, optionFontSize: r, @@ -17275,7 +17316,7 @@ const nk = (e) => { lineHeight: n, boxSizing: "border-box" }; -}, Rpe = (e) => { +}, Npe = (e) => { const { antCls: t, componentCls: r @@ -17302,7 +17343,7 @@ const nk = (e) => { ${i}${s}bottomLeft, ${o}${s}bottomLeft `]: { - animationName: nI + animationName: nD }, [` ${i}${s}topLeft, @@ -17310,21 +17351,21 @@ const nk = (e) => { ${i}${s}topRight, ${o}${s}topRight `]: { - animationName: oI + animationName: oD }, [`${a}${s}bottomLeft`]: { - animationName: iI + animationName: iD }, [` ${a}${s}topLeft, ${a}${s}topRight `]: { - animationName: aI + animationName: aD }, "&-hidden": { display: "none" }, - [`${n}`]: Object.assign(Object.assign({}, nk(e)), { + [`${n}`]: Object.assign(Object.assign({}, ok(e)), { cursor: "pointer", transition: `background ${e.motionDurationSlow} ease`, borderRadius: e.borderRadiusSM, @@ -17375,7 +17416,7 @@ const nk = (e) => { paddingInlineStart: e.calc(e.controlPaddingHorizontal).mul(2).equal() } }, - "&-empty": Object.assign(Object.assign({}, nk(e)), { + "&-empty": Object.assign(Object.assign({}, ok(e)), { color: e.colorTextDisabled }) }), @@ -17388,10 +17429,10 @@ const nk = (e) => { // Follow code may reuse in other components kc(e, "slide-up"), kc(e, "slide-down"), - eS(e, "move-up"), - eS(e, "move-down") + nS(e, "move-up"), + nS(e, "move-down") ]; -}, Ppe = (e) => { +}, kpe = (e) => { const { multipleSelectItemHeight: t, paddingXXS: r, @@ -17401,17 +17442,17 @@ const nk = (e) => { return { basePadding: o, containerPadding: a, - itemHeight: ee(t), - itemLineHeight: ee(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal()) + itemHeight: te(t), + itemLineHeight: te(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal()) }; -}, Tpe = (e) => { +}, $pe = (e) => { const { multipleSelectItemHeight: t, selectHeight: r, lineWidth: n } = e; return e.calc(r).sub(t).div(2).sub(n).equal(); -}, _pe = (e) => { +}, Bpe = (e) => { const { componentCls: t, iconCls: r, @@ -17470,7 +17511,7 @@ const nk = (e) => { // fix whitespace wrapping. custom tags display all whitespace within. textOverflow: "ellipsis" }, - "&-remove": Object.assign(Object.assign({}, kb()), { + "&-remove": Object.assign(Object.assign({}, Bb()), { display: "inline-flex", alignItems: "center", color: l, @@ -17488,13 +17529,13 @@ const nk = (e) => { } } }; -}, Mpe = (e, t) => { +}, Vpe = (e, t) => { const { componentCls: r, INTERNAL_FIXED_ITEM_MARGIN: n - } = e, i = `${r}-selection-overflow`, o = e.multipleSelectItemHeight, a = Tpe(e), s = t ? `${r}-${t}` : "", l = Ppe(e); + } = e, i = `${r}-selection-overflow`, o = e.multipleSelectItemHeight, a = $pe(e), s = t ? `${r}-${t}` : "", l = kpe(e); return { - [`${r}-multiple${s}`]: Object.assign(Object.assign({}, _pe(e)), { + [`${r}-multiple${s}`]: Object.assign(Object.assign({}, Bpe(e)), { // ========================= Selector ========================= [`${r}-selector`]: { display: "flex", @@ -17512,8 +17553,8 @@ const nk = (e) => { "&:after": { display: "inline-block", width: 0, - margin: `${ee(n)} 0`, - lineHeight: ee(o), + margin: `${te(n)} 0`, + lineHeight: te(o), visibility: "hidden", content: '"\\a0"' } @@ -17521,7 +17562,7 @@ const nk = (e) => { // ======================== Selections ======================== [`${r}-selection-item`]: { height: l.itemHeight, - lineHeight: ee(l.itemLineHeight) + lineHeight: te(l.itemLineHeight) }, // ========================== Input ========================== [`${i}-item + ${i}-item`]: { @@ -17541,7 +17582,7 @@ const nk = (e) => { "\n &-input,\n &-mirror\n ": { height: o, fontFamily: e.fontFamily, - lineHeight: ee(o), + lineHeight: te(o), transition: `all ${e.motionDurationSlow}` }, "&-input": { @@ -17592,9 +17633,9 @@ function q1(e, t) { } } }; - return [Mpe(e, t), i]; + return [Vpe(e, t), i]; } -const Dpe = (e) => { +const Hpe = (e) => { const { componentCls: t } = e, r = fr(e, { @@ -17660,7 +17701,7 @@ function X1(e, t) { ${r}-selection-placeholder `]: { padding: 0, - lineHeight: ee(o), + lineHeight: te(o), transition: `all ${e.motionDurationSlow}, visibility 0s`, alignSelf: "center" }, @@ -17699,12 +17740,12 @@ function X1(e, t) { [`${r}-selector`]: { width: "100%", height: "100%", - padding: `0 ${ee(n)}`, + padding: `0 ${te(n)}`, [`${r}-selection-search-input`]: { height: o }, "&:after": { - lineHeight: ee(o) + lineHeight: te(o) } } }, @@ -17721,7 +17762,7 @@ function X1(e, t) { position: "absolute", insetInlineStart: 0, insetInlineEnd: 0, - padding: `0 ${ee(n)}`, + padding: `0 ${te(n)}`, "&:after": { display: "none" } @@ -17731,7 +17772,7 @@ function X1(e, t) { } }; } -function Ipe(e) { +function zpe(e) { const { componentCls: t } = e, r = e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal(); @@ -17752,7 +17793,7 @@ function Ipe(e) { insetInlineEnd: r }, [`${t}-selector`]: { - padding: `0 ${ee(r)}` + padding: `0 ${te(r)}` }, // With arrow should provides `padding-right` to show the arrow [`&${t}-show-arrow ${t}-selection-search`]: { @@ -17776,7 +17817,7 @@ function Ipe(e) { }), "lg") ]; } -const Ape = (e) => { +const Gpe = (e) => { const { fontSize: t, lineHeight: r, @@ -17820,7 +17861,7 @@ const Ape = (e) => { multipleItemBorderColorDisabled: "transparent", showArrowPaddingInlineEnd: Math.ceil(e.fontSize * 1.25) }; -}, T9 = (e, t) => { +}, D9 = (e, t) => { const { componentCls: r, antCls: n, @@ -17828,7 +17869,7 @@ const Ape = (e) => { } = e; return { [`&:not(${r}-customize-input) ${r}-selector`]: { - border: `${ee(e.lineWidth)} ${e.lineType} ${t.borderColor}`, + border: `${te(e.lineWidth)} ${e.lineType} ${t.borderColor}`, background: e.selectorBg }, [`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]: { @@ -17837,26 +17878,26 @@ const Ape = (e) => { }, [`${r}-focused& ${r}-selector`]: { borderColor: t.activeBorderColor, - boxShadow: `0 0 0 ${ee(i)} ${t.activeShadowColor}`, + boxShadow: `0 0 0 ${te(i)} ${t.activeShadowColor}`, outline: 0 } } }; -}, ik = (e, t) => ({ - [`&${e.componentCls}-status-${t.status}`]: Object.assign({}, T9(e, t)) -}), Ope = (e) => ({ - "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign({}, T9(e, { +}, ak = (e, t) => ({ + [`&${e.componentCls}-status-${t.status}`]: Object.assign({}, D9(e, t)) +}), Wpe = (e) => ({ + "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign({}, D9(e, { borderColor: e.colorBorder, hoverBorderHover: e.colorPrimaryHover, activeBorderColor: e.colorPrimary, activeShadowColor: e.controlOutline - })), ik(e, { + })), ak(e, { status: "error", borderColor: e.colorError, hoverBorderHover: e.colorErrorHover, activeBorderColor: e.colorError, activeShadowColor: e.colorErrorOutline - })), ik(e, { + })), ak(e, { status: "warning", borderColor: e.colorWarning, hoverBorderHover: e.colorWarningHover, @@ -17871,10 +17912,10 @@ const Ape = (e) => { }, [`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]: { background: e.multipleItemBg, - border: `${ee(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}` + border: `${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}` } }) -}), _9 = (e, t) => { +}), I9 = (e, t) => { const { componentCls: r, antCls: n @@ -17882,7 +17923,7 @@ const Ape = (e) => { return { [`&:not(${r}-customize-input) ${r}-selector`]: { background: t.bg, - border: `${ee(e.lineWidth)} ${e.lineType} transparent`, + border: `${te(e.lineWidth)} ${e.lineType} transparent`, color: t.color }, [`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]: { @@ -17896,21 +17937,21 @@ const Ape = (e) => { } } }; -}, ok = (e, t) => ({ - [`&${e.componentCls}-status-${t.status}`]: Object.assign({}, _9(e, t)) -}), Lpe = (e) => ({ - "&-filled": Object.assign(Object.assign(Object.assign(Object.assign({}, _9(e, { +}, sk = (e, t) => ({ + [`&${e.componentCls}-status-${t.status}`]: Object.assign({}, I9(e, t)) +}), jpe = (e) => ({ + "&-filled": Object.assign(Object.assign(Object.assign(Object.assign({}, I9(e, { bg: e.colorFillTertiary, hoverBg: e.colorFillSecondary, activeBorderColor: e.colorPrimary, color: e.colorText - })), ok(e, { + })), sk(e, { status: "error", bg: e.colorErrorBg, hoverBg: e.colorErrorBgHover, activeBorderColor: e.colorError, color: e.colorError - })), ok(e, { + })), sk(e, { status: "warning", bg: e.colorWarningBg, hoverBg: e.colorWarningBgHover, @@ -17926,10 +17967,10 @@ const Ape = (e) => { }, [`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]: { background: e.colorBgContainer, - border: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}` + border: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}` } }) -}), Fpe = (e) => ({ +}), Upe = (e) => ({ "&-borderless": { [`${e.componentCls}-selector`]: { background: "transparent", @@ -17942,7 +17983,7 @@ const Ape = (e) => { }, [`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]: { background: e.multipleItemBg, - border: `${ee(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}` + border: `${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}` }, // Status [`&${e.componentCls}-status-error`]: { @@ -17956,9 +17997,9 @@ const Ape = (e) => { } } } -}), Npe = (e) => ({ - [e.componentCls]: Object.assign(Object.assign(Object.assign({}, Ope(e)), Lpe(e)), Fpe(e)) -}), kpe = (e) => { +}), Kpe = (e) => ({ + [e.componentCls]: Object.assign(Object.assign(Object.assign({}, Wpe(e)), jpe(e)), Upe(e)) +}), Ype = (e) => { const { componentCls: t } = e; @@ -17983,7 +18024,7 @@ const Ape = (e) => { } } }; -}, $pe = (e) => { +}, qpe = (e) => { const { componentCls: t } = e; @@ -18002,7 +18043,7 @@ const Ape = (e) => { } } }; -}, Bpe = (e) => { +}, Xpe = (e) => { const { antCls: t, componentCls: r, @@ -18014,7 +18055,7 @@ const Ape = (e) => { position: "relative", display: "inline-block", cursor: "pointer", - [`&:not(${r}-customize-input) ${r}-selector`]: Object.assign(Object.assign({}, kpe(e)), $pe(e)), + [`&:not(${r}-customize-input) ${r}-selector`]: Object.assign(Object.assign({}, Ype(e)), qpe(e)), // ======================== Selection ======================== [`${r}-selection-item`]: Object.assign(Object.assign({ flex: 1, @@ -18034,7 +18075,7 @@ const Ape = (e) => { pointerEvents: "none" }), // ========================== Arrow ========================== - [`${r}-arrow`]: Object.assign(Object.assign({}, kb()), { + [`${r}-arrow`]: Object.assign(Object.assign({}, Bb()), { position: "absolute", top: "50%", insetInlineStart: "auto", @@ -18114,7 +18155,7 @@ const Ape = (e) => { } } }; -}, Vpe = (e) => { +}, Zpe = (e) => { const { componentCls: t } = e; @@ -18131,13 +18172,13 @@ const Ape = (e) => { // == LTR == // ===================================================== // Base - Bpe(e), + Xpe(e), // Single - Ipe(e), + zpe(e), // Multiple - Dpe(e), + Hpe(e), // Dropdown - Rpe(e), + Npe(e), // ===================================================== // == RTL == // ===================================================== @@ -18149,12 +18190,12 @@ const Ape = (e) => { // ===================================================== // == Space Compact == // ===================================================== - QD(e, { + Q2(e, { borderElCls: `${t}-selector`, focusElCls: `${t}-focused` }) ]; -}, Hpe = Ur("Select", (e, t) => { +}, Qpe = Kr("Select", (e, t) => { let { rootPrefixCls: r } = t; @@ -18164,35 +18205,35 @@ const Ape = (e) => { multipleSelectItemHeight: e.multipleItemHeight, selectHeight: e.controlHeight }); - return [Vpe(n), Npe(n)]; -}, Ape, { + return [Zpe(n), Kpe(n)]; +}, Gpe, { unitless: { optionLineHeight: !0, optionSelectedFontWeight: !0 } }); -var zpe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" }, Gpe = function(t, r) { +var Jpe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" }, ege = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: zpe + icon: Jpe })); -}, Xb = /* @__PURE__ */ S.forwardRef(Gpe); -process.env.NODE_ENV !== "production" && (Xb.displayName = "CheckOutlined"); -var Wpe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, jpe = function(t, r) { +}, Qb = /* @__PURE__ */ S.forwardRef(ege); +process.env.NODE_ENV !== "production" && (Qb.displayName = "CheckOutlined"); +var tge = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, rge = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Wpe + icon: tge })); -}, yI = /* @__PURE__ */ S.forwardRef(jpe); -process.env.NODE_ENV !== "production" && (yI.displayName = "DownOutlined"); -var Upe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, Kpe = function(t, r) { +}, yD = /* @__PURE__ */ S.forwardRef(rge); +process.env.NODE_ENV !== "production" && (yD.displayName = "DownOutlined"); +var nge = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, ige = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Upe + icon: nge })); -}, Zb = /* @__PURE__ */ S.forwardRef(Kpe); -process.env.NODE_ENV !== "production" && (Zb.displayName = "SearchOutlined"); -function Ype(e) { +}, Jb = /* @__PURE__ */ S.forwardRef(ige); +process.env.NODE_ENV !== "production" && (Jb.displayName = "SearchOutlined"); +function oge(e) { let { suffixIcon: t, clearIcon: r, @@ -18208,12 +18249,12 @@ function Ype(e) { componentName: h } = e; process.env.NODE_ENV !== "production" && Rr(h).deprecated(!r, "clearIcon", "allowClear={{ clearIcon: React.ReactNode }}"); - const f = r ?? /* @__PURE__ */ S.createElement(Qf, null), p = (y) => t === null && !s && !d ? null : /* @__PURE__ */ S.createElement(S.Fragment, null, c !== !1 && y, s && u); + const f = r ?? /* @__PURE__ */ S.createElement(ep, null), p = (y) => t === null && !s && !d ? null : /* @__PURE__ */ S.createElement(S.Fragment, null, c !== !1 && y, s && u); let g = null; if (t !== void 0) g = p(t); else if (o) - g = p(/* @__PURE__ */ S.createElement(Jf, { + g = p(/* @__PURE__ */ S.createElement(tp, { spin: !0 })); else { @@ -18223,34 +18264,34 @@ function Ype(e) { open: b, showSearch: w } = C; - return p(b && w ? /* @__PURE__ */ S.createElement(Zb, { + return p(b && w ? /* @__PURE__ */ S.createElement(Jb, { className: y - }) : /* @__PURE__ */ S.createElement(yI, { + }) : /* @__PURE__ */ S.createElement(yD, { className: y })); }; } let v = null; - n !== void 0 ? v = n : a ? v = /* @__PURE__ */ S.createElement(Xb, null) : v = null; + n !== void 0 ? v = n : a ? v = /* @__PURE__ */ S.createElement(Qb, null) : v = null; let m = null; - return i !== void 0 ? m = i : m = /* @__PURE__ */ S.createElement(ql, null), { + return i !== void 0 ? m = i : m = /* @__PURE__ */ S.createElement(Xl, null), { clearIcon: f, suffixIcon: g, itemIcon: v, removeIcon: m }; } -function qpe(e, t) { +function age(e, t) { return t !== void 0 ? t : e !== null; } -var Xpe = function(e, t) { +var sge = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const M9 = "SECRET_COMBOBOX_MODE_DO_NOT_USE", D9 = (e, t) => { +const A9 = "SECRET_COMBOBOX_MODE_DO_NOT_USE", O9 = (e, t) => { var r; const { prefixCls: n, @@ -18278,7 +18319,7 @@ const M9 = "SECRET_COMBOBOX_MODE_DO_NOT_USE", D9 = (e, t) => { transitionName: P, tagRender: T, maxCount: _ - } = e, D = Xpe(e, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount"]), { + } = e, D = sge(e, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount"]), { getPopupContainer: A, getPrefixCls: M, renderEmpty: O, @@ -18290,20 +18331,20 @@ const M9 = "SECRET_COMBOBOX_MODE_DO_NOT_USE", D9 = (e, t) => { } = S.useContext(gt), [, V] = ai(), H = h ?? (V == null ? void 0 : V.controlHeight), B = M("select", n), W = M(), j = b ?? L, { compactSize: X, compactItemClassnames: q - } = xm(B, j), [J, te] = mI("select", E, i), Q = mi(B), [Y, K, ae] = Hpe(B, Q), G = S.useMemo(() => { + } = Rm(B, j), [J, re] = mD("select", E, i), Q = yi(B), [Y, K, ae] = Qpe(B, Q), G = S.useMemo(() => { const { mode: Ue } = e; if (Ue !== "combobox") - return Ue === M9 ? "combobox" : Ue; - }, [e.mode]), re = G === "multiple" || G === "tags", le = qpe(e.suffixIcon, e.showArrow), ue = (r = C ?? y) !== null && r !== void 0 ? r : F, { + return Ue === A9 ? "combobox" : Ue; + }, [e.mode]), ne = G === "multiple" || G === "tags", le = age(e.suffixIcon, e.showArrow), ue = (r = C ?? y) !== null && r !== void 0 ? r : F, { status: he, hasFeedback: fe, isFormItemInput: de, feedbackIcon: pe - } = S.useContext(Ea), _e = qb(he, v); + } = S.useContext(Ea), _e = Zb(he, v); let be; - g !== void 0 ? be = g : G === "combobox" ? be = null : be = (O == null ? void 0 : O("Select")) || /* @__PURE__ */ S.createElement(vI, { + g !== void 0 ? be = g : G === "combobox" ? be = null : be = (O == null ? void 0 : O("Select")) || /* @__PURE__ */ S.createElement(vD, { componentName: "Select" }); const { @@ -18311,8 +18352,8 @@ const M9 = "SECRET_COMBOBOX_MODE_DO_NOT_USE", D9 = (e, t) => { itemIcon: Ve, removeIcon: oe, clearIcon: ye - } = Ype(Object.assign(Object.assign({}, D), { - multiple: re, + } = oge(Object.assign(Object.assign({}, D), { + multiple: ne, hasFeedback: fe, feedbackIcon: pe, showSuffixIcon: le, @@ -18323,21 +18364,21 @@ const M9 = "SECRET_COMBOBOX_MODE_DO_NOT_USE", D9 = (e, t) => { } : x, ke = Sn(D, ["suffixIcon", "itemIcon"]), we = ie(l || c, { [`${B}-dropdown-${j}`]: j === "rtl" }, a, ae, Q, K), Ce = Ro((Ue) => { - var Ae; - return (Ae = f ?? X) !== null && Ae !== void 0 ? Ae : Ue; - }), xe = S.useContext(Ll), ze = p ?? xe, je = ie({ + var Oe; + return (Oe = f ?? X) !== null && Oe !== void 0 ? Oe : Ue; + }), xe = S.useContext(Fl), ze = p ?? xe, je = ie({ [`${B}-lg`]: Ce === "large", [`${B}-sm`]: Ce === "small", [`${B}-rtl`]: j === "rtl", - [`${B}-${J}`]: te, + [`${B}-${J}`]: re, [`${B}-in-form-item`]: de - }, nS(B, _e, fe), q, I == null ? void 0 : I.className, o, a, ae, Q, K), st = S.useMemo(() => d !== void 0 ? d : j === "rtl" ? "bottomRight" : "bottomLeft", [d, j]); + }, aS(B, _e, fe), q, I == null ? void 0 : I.className, o, a, ae, Q, K), st = S.useMemo(() => d !== void 0 ? d : j === "rtl" ? "bottomRight" : "bottomLeft", [d, j]); if (process.env.NODE_ENV !== "production") { const Ue = Rr("Select"); - Ue.deprecated(!c, "dropdownClassName", "popupClassName"), Ue.deprecated(y === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), process.env.NODE_ENV !== "production" && Ue(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), Ue.deprecated(!("bordered" in e), "bordered", "variant"), process.env.NODE_ENV !== "production" && Ue(!(typeof _ < "u" && !re), "usage", "`maxCount` only works with mode `multiple` or `tags`"); + Ue.deprecated(!c, "dropdownClassName", "popupClassName"), Ue.deprecated(y === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), process.env.NODE_ENV !== "production" && Ue(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), Ue.deprecated(!("bordered" in e), "bordered", "variant"), process.env.NODE_ENV !== "production" && Ue(!(typeof _ < "u" && !ne), "usage", "`maxCount` only works with mode `multiple` or `tags`"); } const [Xe] = Vd("SelectLike", R == null ? void 0 : R.zIndex); - return Y(/* @__PURE__ */ S.createElement(gI, Object.assign({ + return Y(/* @__PURE__ */ S.createElement(gD, Object.assign({ ref: t, virtual: N, showSearch: I == null ? void 0 : I.showSearch @@ -18345,7 +18386,7 @@ const M9 = "SECRET_COMBOBOX_MODE_DO_NOT_USE", D9 = (e, t) => { style: Object.assign(Object.assign({}, I == null ? void 0 : I.style), w), dropdownMatchSelectWidth: ue, transitionName: xa(W, "slide-up", P), - builtinPlacements: Epe(m, $), + builtinPlacements: Fpe(m, $), listHeight: u, listItemHeight: H, mode: G, @@ -18364,26 +18405,26 @@ const M9 = "SECRET_COMBOBOX_MODE_DO_NOT_USE", D9 = (e, t) => { dropdownStyle: Object.assign(Object.assign({}, R), { zIndex: Xe }), - maxCount: re ? _ : void 0, - tagRender: re ? T : void 0 + maxCount: ne ? _ : void 0, + tagRender: ne ? T : void 0 }))); }; -process.env.NODE_ENV !== "production" && (D9.displayName = "Select"); -const bo = /* @__PURE__ */ S.forwardRef(D9), Zpe = o9(bo); -bo.SECRET_COMBOBOX_MODE_DO_NOT_USE = M9; -bo.Option = fI; -bo.OptGroup = hI; -bo._InternalPanelDoNotUseOrYouWillBeFired = Zpe; +process.env.NODE_ENV !== "production" && (O9.displayName = "Select"); +const bo = /* @__PURE__ */ S.forwardRef(O9), lge = l9(bo); +bo.SECRET_COMBOBOX_MODE_DO_NOT_USE = A9; +bo.Option = fD; +bo.OptGroup = hD; +bo._InternalPanelDoNotUseOrYouWillBeFired = lge; process.env.NODE_ENV !== "production" && (bo.displayName = "Select"); -const kl = ["xxl", "xl", "lg", "md", "sm", "xs"], Qpe = (e) => ({ +const $l = ["xxl", "xl", "lg", "md", "sm", "xs"], cge = (e) => ({ xs: `(max-width: ${e.screenXSMax}px)`, sm: `(min-width: ${e.screenSM}px)`, md: `(min-width: ${e.screenMD}px)`, lg: `(min-width: ${e.screenLG}px)`, xl: `(min-width: ${e.screenXL}px)`, xxl: `(min-width: ${e.screenXXL}px)` -}), Jpe = (e) => { - const t = e, r = [].concat(kl).reverse(); +}), uge = (e) => { + const t = e, r = [].concat($l).reverse(); return r.forEach((n, i) => { const o = n.toUpperCase(), a = `screen${o}Min`, s = `screen${o}`; if (!(t[a] <= t[s])) @@ -18398,8 +18439,8 @@ const kl = ["xxl", "xl", "lg", "md", "sm", "xs"], Qpe = (e) => ({ } }), e; }; -function I9() { - const [, e] = ai(), t = Qpe(Jpe(e)); +function L9() { + const [, e] = ai(), t = cge(uge(e)); return k.useMemo(() => { const r = /* @__PURE__ */ new Map(); let n = -1, i = {}; @@ -18440,21 +18481,21 @@ function I9() { }; }, [e]); } -const A9 = (e, t) => { +const F9 = (e, t) => { if (t && typeof t == "object") - for (let r = 0; r < kl.length; r++) { - const n = kl[r]; + for (let r = 0; r < $l.length; r++) { + const n = $l[r]; if (e[n] && t[n] !== void 0) return t[n]; } }; -function O9() { +function N9() { const [, e] = S.useReducer((t) => t + 1, 0); return e; } -function Qb() { +function ew() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0; - const t = ve({}), r = O9(), n = I9(); + const t = ve({}), r = N9(), n = L9(); return Pr(() => { const i = n.subscribe((o) => { t.current = o, e && r(); @@ -18463,7 +18504,7 @@ function Qb() { }, []), t.current; } const If = (e) => e ? typeof e == "function" ? e() : e : null; -function CI(e) { +function CD(e) { var t = e.children, r = e.prefixCls, n = e.id, i = e.overlayInnerStyle, o = e.className, a = e.style; return /* @__PURE__ */ S.createElement("div", { className: ie("".concat(r, "-content"), o), @@ -18481,7 +18522,7 @@ var dh = { }, hh = { adjustX: 1, shiftY: !0 -}, Zo = [0, 0], ege = { +}, Zo = [0, 0], dge = { left: { points: ["cr", "cl"], overflow: hh, @@ -18554,29 +18595,29 @@ var dh = { offset: [-4, 0], targetOffset: Zo } -}, tge = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"], rge = function(t, r) { +}, hge = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"], fge = function(t, r) { var n = t.overlayClassName, i = t.trigger, o = i === void 0 ? ["hover"] : i, a = t.mouseEnterDelay, s = a === void 0 ? 0 : a, l = t.mouseLeaveDelay, c = l === void 0 ? 0.1 : l, u = t.overlayStyle, d = t.prefixCls, h = d === void 0 ? "rc-tooltip" : d, f = t.children, p = t.onVisibleChange, g = t.afterVisibleChange, v = t.transitionName, m = t.animation, y = t.motion, C = t.placement, b = C === void 0 ? "right" : C, w = t.align, x = w === void 0 ? {} : w, E = t.destroyTooltipOnHide, R = E === void 0 ? !1 : E, P = t.defaultVisible, T = t.getTooltipContainer, _ = t.overlayInnerStyle; t.arrowContent; - var D = t.overlay, A = t.id, M = t.showArrow, O = M === void 0 ? !0 : M, L = Nt(t, tge), N = ve(null); + var D = t.overlay, A = t.id, M = t.showArrow, O = M === void 0 ? !0 : M, L = Nt(t, hge), N = ve(null); Zs(r, function() { return N.current; }); var F = Z({}, L); "visible" in t && (F.popupVisible = t.visible); var $ = function() { - return /* @__PURE__ */ S.createElement(CI, { + return /* @__PURE__ */ S.createElement(CD, { key: "content", prefixCls: h, id: A, overlayInnerStyle: _ }, D); }; - return /* @__PURE__ */ S.createElement(Kb, Te({ + return /* @__PURE__ */ S.createElement(qb, Te({ popupClassName: n, prefixCls: h, popup: $, action: o, - builtinPlacements: ege, + builtinPlacements: dge, popupPlacement: b, ref: N, popupAlign: x, @@ -18594,8 +18635,8 @@ var dh = { arrow: O }, F), f); }; -const nge = /* @__PURE__ */ qr(rge); -function SI(e) { +const pge = /* @__PURE__ */ Ur(fge); +function SD(e) { const { sizePopupArrow: t, borderRadiusXS: r, @@ -18607,7 +18648,7 @@ function SI(e) { arrowPolygon: C }; } -const ige = (e, t, r) => { +const gge = (e, t, r) => { const { sizePopupArrow: n, arrowPolygon: i, @@ -18644,7 +18685,7 @@ const ige = (e, t, r) => { margin: "auto", borderRadius: { _skip_check_: !0, - value: `0 0 ${ee(s)} 0` + value: `0 0 ${te(s)} 0` }, transform: "translateY(50%) rotate(-135deg)", boxShadow: r, @@ -18652,21 +18693,21 @@ const ige = (e, t, r) => { background: "transparent" } }; -}, L9 = 8; -function Jb(e) { +}, k9 = 8; +function tw(e) { const { contentRadius: t, limitVerticalRadius: r } = e, n = t > 12 ? t + 2 : 12; return { arrowOffsetHorizontal: n, - arrowOffsetVertical: r ? L9 : n + arrowOffsetVertical: r ? k9 : n }; } -function Ay(e, t) { +function Fy(e, t) { return e ? t : {}; } -function bI(e, t, r) { +function bD(e, t, r) { const { componentCls: n, boxShadowPopoverArrow: i, @@ -18688,12 +18729,12 @@ function bI(e, t, r) { position: "absolute", zIndex: 1, display: "block" - }, ige(e, t, i)), { + }, gge(e, t, i)), { "&:before": { background: t } })] - }, Ay(!!l.top, { + }, Fy(!!l.top, { [[`&-placement-top > ${n}-arrow`, `&-placement-topLeft > ${n}-arrow`, `&-placement-topRight > ${n}-arrow`].join(",")]: { bottom: s, transform: "translateY(100%) rotate(180deg)" @@ -18717,7 +18758,7 @@ function bI(e, t, r) { value: a } } - })), Ay(!!l.bottom, { + })), Fy(!!l.bottom, { [[`&-placement-bottom > ${n}-arrow`, `&-placement-bottomLeft > ${n}-arrow`, `&-placement-bottomRight > ${n}-arrow`].join(",")]: { top: s, transform: "translateY(-100%)" @@ -18741,7 +18782,7 @@ function bI(e, t, r) { value: a } } - })), Ay(!!l.left, { + })), Fy(!!l.left, { [[`&-placement-left > ${n}-arrow`, `&-placement-leftTop > ${n}-arrow`, `&-placement-leftBottom > ${n}-arrow`].join(",")]: { right: { _skip_check_: !0, @@ -18762,7 +18803,7 @@ function bI(e, t, r) { [`&-placement-leftBottom > ${n}-arrow`]: { bottom: o } - })), Ay(!!l.right, { + })), Fy(!!l.right, { [[`&-placement-right > ${n}-arrow`, `&-placement-rightTop > ${n}-arrow`, `&-placement-rightBottom > ${n}-arrow`].join(",")]: { left: { _skip_check_: !0, @@ -18786,7 +18827,7 @@ function bI(e, t, r) { })) }; } -function oge(e, t, r, n) { +function vge(e, t, r, n) { if (n === !1) return { adjustX: !1, @@ -18806,7 +18847,7 @@ function oge(e, t, r, n) { const a = Object.assign(Object.assign({}, o), i); return a.shiftX || (a.adjustX = !0), a.shiftY || (a.adjustY = !0), a; } -const ak = { +const lk = { left: { points: ["cr", "cl"] }, @@ -18843,7 +18884,7 @@ const ak = { leftBottom: { points: ["br", "bl"] } -}, age = { +}, mge = { topLeft: { points: ["bl", "tc"] }, @@ -18868,8 +18909,8 @@ const ak = { leftBottom: { points: ["br", "cl"] } -}, sge = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]); -function F9(e) { +}, yge = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]); +function $9(e) { const { arrowWidth: t, autoAdjustOverflow: r, @@ -18878,12 +18919,12 @@ function F9(e) { borderRadius: o, visibleFirst: a } = e, s = t / 2, l = {}; - return Object.keys(ak).forEach((c) => { - const u = n && age[c] || ak[c], d = Object.assign(Object.assign({}, u), { + return Object.keys(lk).forEach((c) => { + const u = n && mge[c] || lk[c], d = Object.assign(Object.assign({}, u), { offset: [0, 0], dynamicInset: !0 }); - switch (l[c] = d, sge.has(c) && (d.autoArrow = !1), c) { + switch (l[c] = d, yge.has(c) && (d.autoArrow = !1), c) { case "top": case "topLeft": case "topRight": @@ -18905,7 +18946,7 @@ function F9(e) { d.offset[0] = s + i; break; } - const h = Jb({ + const h = tw({ contentRadius: o, limitVerticalRadius: !0 }); @@ -18928,10 +18969,10 @@ function F9(e) { d.offset[1] = h.arrowOffsetHorizontal + s; break; } - d.overflow = oge(c, h, t, r), a && (d.htmlRegion = "visibleFirst"); + d.overflow = vge(c, h, t, r), a && (d.htmlRegion = "visibleFirst"); }), l; } -const lge = (e) => { +const Cge = (e) => { const { componentCls: t, // ant-tooltip @@ -18963,7 +19004,7 @@ const lge = (e) => { [`${t}-inner`]: { minWidth: "1em", minHeight: s, - padding: `${ee(e.calc(c).div(2).equal())} ${ee(u)}`, + padding: `${te(e.calc(c).div(2).equal())} ${te(u)}`, color: n, textAlign: "start", textDecoration: "none", @@ -18976,13 +19017,13 @@ const lge = (e) => { // Limit left and right placement radius [["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: { [`${t}-inner`]: { - borderRadius: e.min(o, L9) + borderRadius: e.min(o, k9) } }, [`${t}-content`]: { position: "relative" } - }), kG(e, (d, h) => { + }), VG(e, (d, h) => { let { darkColor: f } = h; @@ -19004,7 +19045,7 @@ const lge = (e) => { }) }, // Arrow Style - bI(e, "var(--antd-arrow-background-color)"), + bD(e, "var(--antd-arrow-background-color)"), // Pure Render { [`${t}-pure`]: { @@ -19014,16 +19055,16 @@ const lge = (e) => { } } ]; -}, cge = (e) => Object.assign(Object.assign({ +}, Sge = (e) => Object.assign(Object.assign({ zIndexPopup: e.zIndexPopupBase + 70 -}, Jb({ +}, tw({ contentRadius: e.borderRadius, limitVerticalRadius: !0 -})), SI(fr(e, { +})), SD(fr(e, { borderRadiusOuter: Math.min(e.borderRadiusOuter, 4) -}))), N9 = function(e) { +}))), B9 = function(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return Ur("Tooltip", (n) => { + return Kr("Tooltip", (n) => { const { borderRadius: i, colorTextLightSolid: o, @@ -19035,21 +19076,21 @@ const lge = (e) => { tooltipBorderRadius: i, tooltipBg: a }); - return [lge(s), tp(n, "zoom-big-fast")]; - }, cge, { + return [Cge(s), np(n, "zoom-big-fast")]; + }, Sge, { resetStyle: !1, // Popover use Tooltip as internal component. We do not need to handle this. injectStyle: t })(e); -}, uge = _v.map((e) => `${e}-inverse`), dge = ["success", "processing", "error", "default", "warning"]; -function k9(e) { - return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat($e(uge), $e(_v)).includes(e) : _v.includes(e); +}, bge = Dv.map((e) => `${e}-inverse`), wge = ["success", "processing", "error", "default", "warning"]; +function V9(e) { + return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat($e(bge), $e(Dv)).includes(e) : Dv.includes(e); } -function hge(e) { - return dge.includes(e); +function xge(e) { + return wge.includes(e); } -function $9(e, t) { - const r = k9(t), n = ie({ +function H9(e, t) { + const r = V9(t), n = ie({ [`${e}-${t}`]: t && r }), i = {}, o = {}; return t && !r && (i.background = t, o["--antd-arrow-background-color"] = t), { @@ -19058,7 +19099,7 @@ function $9(e, t) { arrowStyle: o }; } -const fge = (e) => { +const Ege = (e) => { const { prefixCls: t, className: r, @@ -19068,26 +19109,26 @@ const fge = (e) => { overlayInnerStyle: a } = e, { getPrefixCls: s - } = S.useContext(gt), l = s("tooltip", t), [c, u, d] = N9(l), h = $9(l, o), f = h.arrowStyle, p = Object.assign(Object.assign({}, a), h.overlayStyle), g = ie(u, d, l, `${l}-pure`, `${l}-placement-${n}`, r, h.className); + } = S.useContext(gt), l = s("tooltip", t), [c, u, d] = B9(l), h = H9(l, o), f = h.arrowStyle, p = Object.assign(Object.assign({}, a), h.overlayStyle), g = ie(u, d, l, `${l}-pure`, `${l}-placement-${n}`, r, h.className); return c(/* @__PURE__ */ S.createElement("div", { className: g, style: f }, /* @__PURE__ */ S.createElement("div", { className: `${l}-arrow` - }), /* @__PURE__ */ S.createElement(CI, Object.assign({}, e, { + }), /* @__PURE__ */ S.createElement(CD, Object.assign({}, e, { className: u, prefixCls: l, overlayInnerStyle: p }), i))); }; -var pge = function(e, t) { +var Rge = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const gge = /* @__PURE__ */ S.forwardRef((e, t) => { +const Pge = /* @__PURE__ */ S.forwardRef((e, t) => { var r, n; const { prefixCls: i, @@ -19136,7 +19177,7 @@ const gge = /* @__PURE__ */ S.forwardRef((e, t) => { }, L = S.useMemo(() => { var be, Me; let Ve = y; - return typeof p == "object" && (Ve = (Me = (be = p.pointAtCenter) !== null && be !== void 0 ? be : p.arrowPointAtCenter) !== null && Me !== void 0 ? Me : y), m || F9({ + return typeof p == "object" && (Ve = (Me = (be = p.pointAtCenter) !== null && be !== void 0 ? be : p.arrowPointAtCenter) !== null && Me !== void 0 ? Me : y), m || $9({ arrowPointAtCenter: Ve, autoAdjustOverflow: C, arrowWidth: b ? w.sizePopupArrow : 0, @@ -19144,7 +19185,7 @@ const gge = /* @__PURE__ */ S.forwardRef((e, t) => { offset: w.marginXXS, visibleFirst: !0 }); - }, [y, p, m, w]), N = S.useMemo(() => g === 0 ? g : v || g || "", [v, g]), F = /* @__PURE__ */ S.createElement(Dv, { + }, [y, p, m, w]), N = S.useMemo(() => g === 0 ? g : v || g || "", [v, g]), F = /* @__PURE__ */ S.createElement(Av, { space: !0 }, typeof N == "function" ? N() : N), { getPopupContainer: $, @@ -19153,12 +19194,12 @@ const gge = /* @__PURE__ */ S.forwardRef((e, t) => { mouseLeaveDelay: H = 0.1, overlayStyle: B, rootClassName: W - } = e, j = pge(e, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName"]), X = E("tooltip", i), q = E(), J = e["data-popover-inject"]; - let te = D; - !("open" in e) && !("visible" in e) && M && (te = !1); - const Q = /* @__PURE__ */ S.isValidElement(u) && !iW(u) ? u : /* @__PURE__ */ S.createElement("span", null, u), Y = Q.props, K = !Y.className || typeof Y.className == "string" ? ie(Y.className, o || `${X}-open`) : Y.className, [ae, G, re] = N9(X, !J), le = $9(X, l), ue = le.arrowStyle, he = Object.assign(Object.assign({}, c), le.overlayStyle), fe = ie(s, { + } = e, j = Rge(e, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName"]), X = E("tooltip", i), q = E(), J = e["data-popover-inject"]; + let re = D; + !("open" in e) && !("visible" in e) && M && (re = !1); + const Q = /* @__PURE__ */ S.isValidElement(u) && !sW(u) ? u : /* @__PURE__ */ S.createElement("span", null, u), Y = Q.props, K = !Y.className || typeof Y.className == "string" ? ie(Y.className, o || `${X}-open`) : Y.className, [ae, G, ne] = B9(X, !J), le = H9(X, l), ue = le.arrowStyle, he = Object.assign(Object.assign({}, c), le.overlayStyle), fe = ie(s, { [`${X}-rtl`]: R === "rtl" - }, le.className, W, G, re), [de, pe] = Vd("Tooltip", j.zIndex), _e = /* @__PURE__ */ S.createElement(nge, Object.assign({}, j, { + }, le.className, W, G, ne), [de, pe] = Vd("Tooltip", j.zIndex), _e = /* @__PURE__ */ S.createElement(pge, Object.assign({}, j, { zIndex: de, showArrow: b, placement: I, @@ -19171,7 +19212,7 @@ const gge = /* @__PURE__ */ S.forwardRef((e, t) => { ref: T, builtinPlacements: L, overlay: F, - visible: te, + visible: re, onVisibleChange: O, afterVisibleChange: d ?? h, overlayInnerStyle: he, @@ -19183,16 +19224,16 @@ const gge = /* @__PURE__ */ S.forwardRef((e, t) => { motionDeadline: 1e3 }, destroyTooltipOnHide: !!f - }), te ? eo(Q, { + }), re ? eo(Q, { className: K }) : Q); - return ae(/* @__PURE__ */ S.createElement(Sm.Provider, { + return ae(/* @__PURE__ */ S.createElement(wm.Provider, { value: pe }, _e)); -}), wo = gge; +}), wo = Pge; process.env.NODE_ENV !== "production" && (wo.displayName = "Tooltip"); -wo._InternalPanelDoNotUseOrYouWillBeFired = fge; -const vge = (e) => { +wo._InternalPanelDoNotUseOrYouWillBeFired = Ege; +const Tge = (e) => { const { componentCls: t, popoverColor: r, @@ -19261,7 +19302,7 @@ const vge = (e) => { }) }, // Arrow Style - bI(e, "var(--antd-arrow-background-color)"), + bD(e, "var(--antd-arrow-background-color)"), // Pure Render { [`${t}-pure`]: { @@ -19275,12 +19316,12 @@ const vge = (e) => { } } ]; -}, mge = (e) => { +}, _ge = (e) => { const { componentCls: t } = e; return { - [t]: _v.map((r) => { + [t]: Dv.map((r) => { const n = e[`${r}6`]; return { [`&${t}-${r}`]: { @@ -19295,7 +19336,7 @@ const vge = (e) => { }; }) }; -}, yge = (e) => { +}, Mge = (e) => { const { lineWidth: t, controlHeight: r, @@ -19312,7 +19353,7 @@ const vge = (e) => { return Object.assign(Object.assign(Object.assign({ titleMinWidth: 177, zIndexPopup: a + 30 - }, SI(e)), Jb({ + }, SD(e)), tw({ contentRadius: s, limitVerticalRadius: !0 })), { @@ -19323,7 +19364,7 @@ const vge = (e) => { titleBorderBottom: o ? `${t}px ${c} ${u}` : "none", innerContentPadding: o ? `${d}px ${g}px` : 0 }); -}, B9 = Ur("Popover", (e) => { +}, z9 = Kr("Popover", (e) => { const { colorBgElevated: t, colorText: r @@ -19331,23 +19372,23 @@ const vge = (e) => { popoverBg: t, popoverColor: r }); - return [vge(n), mge(n), tp(n, "zoom-big")]; -}, yge, { + return [Tge(n), _ge(n), np(n, "zoom-big")]; +}, Mge, { resetStyle: !1, deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]] }); -var Cge = function(e, t) { +var Dge = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const Sge = (e, t, r) => !t && !r ? null : /* @__PURE__ */ S.createElement(S.Fragment, null, t && /* @__PURE__ */ S.createElement("div", { +const Ige = (e, t, r) => !t && !r ? null : /* @__PURE__ */ S.createElement(S.Fragment, null, t && /* @__PURE__ */ S.createElement("div", { className: `${e}-title` }, If(t)), /* @__PURE__ */ S.createElement("div", { className: `${e}-inner-content` -}, If(r))), bge = (e) => { +}, If(r))), Age = (e) => { const { hashId: t, prefixCls: r, @@ -19363,31 +19404,31 @@ const Sge = (e, t, r) => !t && !r ? null : /* @__PURE__ */ S.createElement(S.Fra style: i }, /* @__PURE__ */ S.createElement("div", { className: `${r}-arrow` - }), /* @__PURE__ */ S.createElement(CI, Object.assign({}, e, { + }), /* @__PURE__ */ S.createElement(CD, Object.assign({}, e, { className: t, prefixCls: r - }), l || Sge(r, a, s))); -}, V9 = (e) => { + }), l || Ige(r, a, s))); +}, G9 = (e) => { const { prefixCls: t, className: r - } = e, n = Cge(e, ["prefixCls", "className"]), { + } = e, n = Dge(e, ["prefixCls", "className"]), { getPrefixCls: i - } = S.useContext(gt), o = i("popover", t), [a, s, l] = B9(o); - return a(/* @__PURE__ */ S.createElement(bge, Object.assign({}, n, { + } = S.useContext(gt), o = i("popover", t), [a, s, l] = z9(o); + return a(/* @__PURE__ */ S.createElement(Age, Object.assign({}, n, { prefixCls: o, hashId: s, className: ie(r, l) }))); }; -var wge = function(e, t) { +var Oge = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const xge = (e) => { +const Lge = (e) => { let { title: t, content: r, @@ -19398,7 +19439,7 @@ const xge = (e) => { }, If(t)), /* @__PURE__ */ S.createElement("div", { className: `${n}-inner-content` }, If(r))); -}, Ege = /* @__PURE__ */ S.forwardRef((e, t) => { +}, Fge = /* @__PURE__ */ S.forwardRef((e, t) => { var r, n; const { prefixCls: i, @@ -19412,15 +19453,15 @@ const xge = (e) => { mouseLeaveDelay: h = 0.1, onOpenChange: f, overlayStyle: p = {} - } = e, g = wge(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle"]), { + } = e, g = Oge(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle"]), { getPrefixCls: v - } = S.useContext(gt), m = v("popover", i), [y, C, b] = B9(m), w = v(), x = ie(s, C, b), [E, R] = pn(!1, { + } = S.useContext(gt), m = v("popover", i), [y, C, b] = z9(m), w = v(), x = ie(s, C, b), [E, R] = pn(!1, { value: (r = e.open) !== null && r !== void 0 ? r : e.visible, defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible }), P = (D, A) => { R(D, !0), f == null || f(D, A); }, T = (D) => { - D.keyCode === Oe.ESC && P(!1, D); + D.keyCode === Le.ESC && P(!1, D); }, _ = (D) => { P(D); }; @@ -19436,7 +19477,7 @@ const xge = (e) => { ref: t, open: E, onOpenChange: _, - overlay: o || a ? /* @__PURE__ */ S.createElement(xge, { + overlay: o || a ? /* @__PURE__ */ S.createElement(Lge, { prefixCls: m, title: o, content: a @@ -19449,18 +19490,18 @@ const xge = (e) => { /* @__PURE__ */ S.isValidElement(u) && ((M = u == null ? void 0 : (A = u.props).onKeyDown) === null || M === void 0 || M.call(A, D)), T(D); } }))); -}), ew = Ege; -ew._InternalPanelDoNotUseOrYouWillBeFired = V9; -process.env.NODE_ENV !== "production" && (ew.displayName = "Popover"); -var Rge = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, Pge = function(t, r) { +}), rw = Fge; +rw._InternalPanelDoNotUseOrYouWillBeFired = G9; +process.env.NODE_ENV !== "production" && (rw.displayName = "Popover"); +var Nge = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, kge = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Rge + icon: Nge })); -}, $c = /* @__PURE__ */ S.forwardRef(Pge); +}, $c = /* @__PURE__ */ S.forwardRef(kge); process.env.NODE_ENV !== "production" && ($c.displayName = "RightOutlined"); -var Tge = Oe.ESC, _ge = Oe.TAB; -function Mge(e) { +var $ge = Le.ESC, Bge = Le.TAB; +function Vge(e) { var t = e.visible, r = e.triggerRef, n = e.onVisibleChange, i = e.autoFocus, o = e.overlayRef, a = S.useRef(!1), s = function() { if (t) { var d, h; @@ -19471,10 +19512,10 @@ function Mge(e) { return (d = o.current) !== null && d !== void 0 && d.focus ? (o.current.focus(), a.current = !0, !0) : !1; }, c = function(d) { switch (d.keyCode) { - case Tge: + case $ge: s(); break; - case _ge: { + case Bge: { var h = !1; a.current || (h = l()), h ? d.preventDefault() : s(); break; @@ -19482,15 +19523,15 @@ function Mge(e) { } }; S.useEffect(function() { - return t ? (window.addEventListener("keydown", c), i && Nr(l, 3), function() { + return t ? (window.addEventListener("keydown", c), i && kr(l, 3), function() { window.removeEventListener("keydown", c), a.current = !1; }) : function() { a.current = !1; }; }, [t]); } -var Dge = /* @__PURE__ */ qr(function(e, t) { - var r = e.overlay, n = e.arrow, i = e.prefixCls, o = Ct(function() { +var Hge = /* @__PURE__ */ Ur(function(e, t) { + var r = e.overlay, n = e.arrow, i = e.prefixCls, o = St(function() { var s; return typeof r == "function" ? s = r() : s = r, s; }, [r]), a = Eo(t, o == null ? void 0 : o.ref); @@ -19502,7 +19543,7 @@ var Dge = /* @__PURE__ */ qr(function(e, t) { }), fh = { adjustX: 1, adjustY: 1 -}, ph = [0, 0], Ige = { +}, ph = [0, 0], zge = { topLeft: { points: ["bl", "tl"], overflow: fh, @@ -19539,16 +19580,16 @@ var Dge = /* @__PURE__ */ qr(function(e, t) { offset: [0, 4], targetOffset: ph } -}, Age = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"]; -function Oge(e, t) { - var r, n = e.arrow, i = n === void 0 ? !1 : n, o = e.prefixCls, a = o === void 0 ? "rc-dropdown" : o, s = e.transitionName, l = e.animation, c = e.align, u = e.placement, d = u === void 0 ? "bottomLeft" : u, h = e.placements, f = h === void 0 ? Ige : h, p = e.getPopupContainer, g = e.showAction, v = e.hideAction, m = e.overlayClassName, y = e.overlayStyle, C = e.visible, b = e.trigger, w = b === void 0 ? ["hover"] : b, x = e.autoFocus, E = e.overlay, R = e.children, P = e.onVisibleChange, T = Nt(e, Age), _ = k.useState(), D = ce(_, 2), A = D[0], M = D[1], O = "visible" in e ? C : A, L = k.useRef(null), N = k.useRef(null), F = k.useRef(null); +}, Gge = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"]; +function Wge(e, t) { + var r, n = e.arrow, i = n === void 0 ? !1 : n, o = e.prefixCls, a = o === void 0 ? "rc-dropdown" : o, s = e.transitionName, l = e.animation, c = e.align, u = e.placement, d = u === void 0 ? "bottomLeft" : u, h = e.placements, f = h === void 0 ? zge : h, p = e.getPopupContainer, g = e.showAction, v = e.hideAction, m = e.overlayClassName, y = e.overlayStyle, C = e.visible, b = e.trigger, w = b === void 0 ? ["hover"] : b, x = e.autoFocus, E = e.overlay, R = e.children, P = e.onVisibleChange, T = Nt(e, Gge), _ = k.useState(), D = ce(_, 2), A = D[0], M = D[1], O = "visible" in e ? C : A, L = k.useRef(null), N = k.useRef(null), F = k.useRef(null); k.useImperativeHandle(t, function() { return L.current; }); var $ = function(J) { M(J), P == null || P(J); }; - Mge({ + Vge({ visible: O, triggerRef: F, onVisibleChange: $, @@ -19556,10 +19597,10 @@ function Oge(e, t) { overlayRef: N }); var I = function(J) { - var te = e.onOverlayClick; - M(!1), te && te(J); + var re = e.onOverlayClick; + M(!1), re && re(J); }, V = function() { - return /* @__PURE__ */ k.createElement(Dge, { + return /* @__PURE__ */ k.createElement(Hge, { ref: N, overlay: E, prefixCls: a, @@ -19568,8 +19609,8 @@ function Oge(e, t) { }, H = function() { return typeof E == "function" ? V : V(); }, B = function() { - var J = e.minOverlayWidthMatchTrigger, te = e.alignPoint; - return "minOverlayWidthMatchTrigger" in e ? J : !te; + var J = e.minOverlayWidthMatchTrigger, re = e.alignPoint; + return "minOverlayWidthMatchTrigger" in e ? J : !re; }, W = function() { var J = e.openClassName; return J !== void 0 ? J : "".concat(a, "-open"); @@ -19577,7 +19618,7 @@ function Oge(e, t) { className: ie((r = R.props) === null || r === void 0 ? void 0 : r.className, O && W()), ref: Ws(R) ? Eo(F, R.ref) : void 0 }), X = v; - return !X && w.indexOf("contextMenu") !== -1 && (X = ["click"]), /* @__PURE__ */ k.createElement(Kb, Te({ + return !X && w.indexOf("contextMenu") !== -1 && (X = ["click"]), /* @__PURE__ */ k.createElement(qb, Te({ builtinPlacements: f }, T, { prefixCls: a, @@ -19599,26 +19640,26 @@ function Oge(e, t) { getPopupContainer: p }), j); } -const H9 = /* @__PURE__ */ k.forwardRef(Oge); -var z9 = /* @__PURE__ */ S.createContext(null); -function G9(e, t) { +const W9 = /* @__PURE__ */ k.forwardRef(Wge); +var j9 = /* @__PURE__ */ S.createContext(null); +function U9(e, t) { return e === void 0 ? null : "".concat(e, "-").concat(t); } -function W9(e) { - var t = S.useContext(z9); - return G9(t, e); +function K9(e) { + var t = S.useContext(j9); + return U9(t, e); } -var Lge = ["children", "locked"], is = /* @__PURE__ */ S.createContext(null); -function Fge(e, t) { +var jge = ["children", "locked"], is = /* @__PURE__ */ S.createContext(null); +function Uge(e, t) { var r = Z({}, e); return Object.keys(t).forEach(function(n) { var i = t[n]; i !== void 0 && (r[n] = i); }), r; } -function Av(e) { - var t = e.children, r = e.locked, n = Nt(e, Lge), i = S.useContext(is), o = $d(function() { - return Fge(i, n); +function Lv(e) { + var t = e.children, r = e.locked, n = Nt(e, jge), i = S.useContext(is), o = $d(function() { + return Uge(i, n); }, [i, n], function(a, s) { return !r && (a[0] !== s[0] || !rs(a[1], s[1], !0)); }); @@ -19626,21 +19667,21 @@ function Av(e) { value: o }, t); } -var Nge = [], j9 = /* @__PURE__ */ S.createContext(null); -function tw() { - return S.useContext(j9); +var Kge = [], Y9 = /* @__PURE__ */ S.createContext(null); +function nw() { + return S.useContext(Y9); } -var U9 = /* @__PURE__ */ S.createContext(Nge); -function rp(e) { - var t = S.useContext(U9); +var q9 = /* @__PURE__ */ S.createContext(Kge); +function ip(e) { + var t = S.useContext(q9); return S.useMemo(function() { return e !== void 0 ? [].concat($e(t), [e]) : t; }, [t, e]); } -var K9 = /* @__PURE__ */ S.createContext(null), wI = /* @__PURE__ */ S.createContext({}); -function sk(e) { +var X9 = /* @__PURE__ */ S.createContext(null), wD = /* @__PURE__ */ S.createContext({}); +function ck(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; - if (Vb(e)) { + if (zb(e)) { var r = e.nodeName.toLowerCase(), n = ( // Focusable element ["input", "select", "textarea", "button"].includes(r) || // Editable element @@ -19651,20 +19692,20 @@ function sk(e) { } return !1; } -function kge(e) { +function Yge(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = $e(e.querySelectorAll("*")).filter(function(n) { - return sk(n, t); + return ck(n, t); }); - return sk(e, t) && r.unshift(e), r; + return ck(e, t) && r.unshift(e), r; } -var MT = Oe.LEFT, DT = Oe.RIGHT, IT = Oe.UP, fC = Oe.DOWN, pC = Oe.ENTER, Y9 = Oe.ESC, $p = Oe.HOME, Bp = Oe.END, lk = [IT, fC, MT, DT]; -function $ge(e, t, r, n) { +var MT = Le.LEFT, DT = Le.RIGHT, IT = Le.UP, vC = Le.DOWN, mC = Le.ENTER, Z9 = Le.ESC, Vp = Le.HOME, Hp = Le.END, uk = [IT, vC, MT, DT]; +function qge(e, t, r, n) { var i, o, a, s, l = "prev", c = "next", u = "children", d = "parent"; - if (e === "inline" && n === pC) + if (e === "inline" && n === mC) return { inlineTrigger: !0 }; - var h = (i = {}, U(i, IT, l), U(i, fC, c), i), f = (o = {}, U(o, MT, r ? c : l), U(o, DT, r ? l : c), U(o, fC, u), U(o, pC, u), o), p = (a = {}, U(a, IT, l), U(a, fC, c), U(a, pC, u), U(a, Y9, d), U(a, MT, r ? u : d), U(a, DT, r ? d : u), a), g = { + var h = (i = {}, U(i, IT, l), U(i, vC, c), i), f = (o = {}, U(o, MT, r ? c : l), U(o, DT, r ? l : c), U(o, vC, u), U(o, mC, u), o), p = (a = {}, U(a, IT, l), U(a, vC, c), U(a, mC, u), U(a, Z9, d), U(a, MT, r ? u : d), U(a, DT, r ? d : u), a), g = { inline: h, horizontal: f, vertical: p, @@ -19697,7 +19738,7 @@ function $ge(e, t, r, n) { return null; } } -function Bge(e) { +function Xge(e) { for (var t = e; t; ) { if (t.getAttribute("data-menu-list")) return t; @@ -19705,7 +19746,7 @@ function Bge(e) { } return null; } -function Vge(e, t) { +function Zge(e, t) { for (var r = e || document.activeElement; r; ) { if (t.has(r)) return r; @@ -19713,17 +19754,17 @@ function Vge(e, t) { } return null; } -function xI(e, t) { - var r = kge(e, !0); +function xD(e, t) { + var r = Yge(e, !0); return r.filter(function(n) { return t.has(n); }); } -function ck(e, t, r) { +function dk(e, t, r) { var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1; if (!e) return null; - var i = xI(e, t), o = i.length, a = i.findIndex(function(s) { + var i = xD(e, t), o = i.length, a = i.findIndex(function(s) { return r === s; }); return n < 0 ? a === -1 ? a = o - 1 : a -= 1 : n > 0 && (a += 1), a = (a + o) % o, i[a]; @@ -19731,7 +19772,7 @@ function ck(e, t, r) { var AT = function(t, r) { var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(); return t.forEach(function(a) { - var s = document.querySelector("[data-menu-id='".concat(G9(r, a), "']")); + var s = document.querySelector("[data-menu-id='".concat(U9(r, a), "']")); s && (n.add(s), o.set(s, a), i.set(a, s)); }), { elements: n, @@ -19739,11 +19780,11 @@ var AT = function(t, r) { element2key: o }; }; -function Hge(e, t, r, n, i, o, a, s, l, c) { +function Qge(e, t, r, n, i, o, a, s, l, c) { var u = S.useRef(), d = S.useRef(); d.current = t; var h = function() { - Nr.cancel(u.current); + kr.cancel(u.current); }; return S.useEffect(function() { return function() { @@ -19751,32 +19792,32 @@ function Hge(e, t, r, n, i, o, a, s, l, c) { }; }, []), function(f) { var p = f.which; - if ([].concat(lk, [pC, Y9, $p, Bp]).includes(p)) { - var g = o(), v = AT(g, n), m = v, y = m.elements, C = m.key2element, b = m.element2key, w = C.get(t), x = Vge(w, y), E = b.get(x), R = $ge(e, a(E, !0).length === 1, r, p); - if (!R && p !== $p && p !== Bp) + if ([].concat(uk, [mC, Z9, Vp, Hp]).includes(p)) { + var g = o(), v = AT(g, n), m = v, y = m.elements, C = m.key2element, b = m.element2key, w = C.get(t), x = Zge(w, y), E = b.get(x), R = qge(e, a(E, !0).length === 1, r, p); + if (!R && p !== Vp && p !== Hp) return; - (lk.includes(p) || [$p, Bp].includes(p)) && f.preventDefault(); + (uk.includes(p) || [Vp, Hp].includes(p)) && f.preventDefault(); var P = function(N) { if (N) { var F = N, $ = N.querySelector("a"); $ != null && $.getAttribute("href") && (F = $); var I = b.get(N); - s(I), h(), u.current = Nr(function() { + s(I), h(), u.current = kr(function() { d.current === I && F.focus(); }); } }; - if ([$p, Bp].includes(p) || R.sibling || !x) { + if ([Vp, Hp].includes(p) || R.sibling || !x) { var T; - !x || e === "inline" ? T = i.current : T = Bge(x); - var _, D = xI(T, y); - p === $p ? _ = D[0] : p === Bp ? _ = D[D.length - 1] : _ = ck(T, y, x, R.offset), P(_); + !x || e === "inline" ? T = i.current : T = Xge(x); + var _, D = xD(T, y); + p === Vp ? _ = D[0] : p === Hp ? _ = D[D.length - 1] : _ = dk(T, y, x, R.offset), P(_); } else if (R.inlineTrigger) l(E); else if (R.offset > 0) - l(E, !0), h(), u.current = Nr(function() { + l(E, !0), h(), u.current = kr(function() { v = AT(g, n); - var L = x.getAttribute("aria-controls"), N = document.getElementById(L), F = ck(N, v.elements); + var L = x.getAttribute("aria-controls"), N = document.getElementById(L), F = dk(N, v.elements); P(F); }, 5); else if (R.offset < 0) { @@ -19787,32 +19828,32 @@ function Hge(e, t, r, n, i, o, a, s, l, c) { c == null || c(f); }; } -function zge(e) { +function Jge(e) { Promise.resolve().then(e); } -var EI = "__RC_UTIL_PATH_SPLIT__", uk = function(t) { - return t.join(EI); -}, Gge = function(t) { - return t.split(EI); +var ED = "__RC_UTIL_PATH_SPLIT__", hk = function(t) { + return t.join(ED); +}, eve = function(t) { + return t.split(ED); }, OT = "rc-menu-more"; -function Wge() { +function tve() { var e = S.useState({}), t = ce(e, 2), r = t[1], n = ve(/* @__PURE__ */ new Map()), i = ve(/* @__PURE__ */ new Map()), o = S.useState([]), a = ce(o, 2), s = a[0], l = a[1], c = ve(0), u = ve(!1), d = function() { u.current || r({}); }, h = or(function(C, b) { process.env.NODE_ENV !== "production" && Tt(!n.current.has(C), "Duplicated key '".concat(C, "' used in Menu by path [").concat(b.join(" > "), "]")); - var w = uk(b); + var w = hk(b); i.current.set(w, C), n.current.set(C, w), c.current += 1; var x = c.current; - zge(function() { + Jge(function() { x === c.current && d(); }); }, []), f = or(function(C, b) { - var w = uk(b); + var w = hk(b); i.current.delete(w), n.current.delete(C); }, []), p = or(function(C) { l(C); }, []), g = or(function(C, b) { - var w = n.current.get(C) || "", x = Gge(w); + var w = n.current.get(C) || "", x = eve(w); return b && s.includes(x[0]) && x.unshift(OT), x; }, [s]), v = or(function(C, b) { return C.filter(function(w) { @@ -19825,7 +19866,7 @@ function Wge() { var b = $e(n.current.keys()); return s.length && b.push(OT), b; }, y = or(function(C) { - var b = "".concat(n.current.get(C)).concat(EI), w = /* @__PURE__ */ new Set(); + var b = "".concat(n.current.get(C)).concat(ED), w = /* @__PURE__ */ new Set(); return $e(i.current.keys()).forEach(function(x) { x.startsWith(b) && w.add(i.current.get(x)); }), w; @@ -19846,7 +19887,7 @@ function Wge() { getSubPathKeys: y }; } -function bg(e) { +function xg(e) { var t = S.useRef(e); t.current = e; var r = S.useCallback(function() { @@ -19856,18 +19897,18 @@ function bg(e) { }, []); return e ? r : void 0; } -var jge = Math.random().toFixed(5).toString().slice(2), dk = 0; -function Uge(e) { +var rve = Math.random().toFixed(5).toString().slice(2), fk = 0; +function nve(e) { var t = pn(e, { value: e }), r = ce(t, 2), n = r[0], i = r[1]; return S.useEffect(function() { - dk += 1; - var o = process.env.NODE_ENV === "test" ? "test" : "".concat(jge, "-").concat(dk); + fk += 1; + var o = process.env.NODE_ENV === "test" ? "test" : "".concat(rve, "-").concat(fk); i("rc-menu-uuid-".concat(o)); }, []), n; } -function q9(e, t, r, n) { +function Q9(e, t, r, n) { var i = S.useContext(is), o = i.activeKey, a = i.onActive, s = i.onInactive, l = { active: o === e }; @@ -19883,7 +19924,7 @@ function q9(e, t, r, n) { }), s(e); }), l; } -function X9(e) { +function J9(e) { var t = S.useContext(is), r = t.mode, n = t.rtl, i = t.inlineIndent; if (r !== "inline") return null; @@ -19894,20 +19935,20 @@ function X9(e) { paddingLeft: o * i }; } -function Z9(e) { +function e7(e) { var t = e.icon, r = e.props, n = e.children, i; return t === null || t === !1 ? null : (typeof t == "function" ? i = /* @__PURE__ */ S.createElement(t, Z({}, r)) : typeof t != "boolean" && (i = t), i || n || null); } -var Kge = ["item"]; -function iS(e) { - var t = e.item, r = Nt(e, Kge); +var ive = ["item"]; +function sS(e) { + var t = e.item, r = Nt(e, ive); return Object.defineProperty(r, "item", { get: function() { return Tt(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), t; } }), r; } -var Yge = ["title", "attribute", "elementRef"], qge = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], Xge = ["active"], Zge = /* @__PURE__ */ function(e) { +var ove = ["title", "attribute", "elementRef"], ave = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], sve = ["active"], lve = /* @__PURE__ */ function(e) { Qs(r, e); var t = Js(r); function r() { @@ -19916,7 +19957,7 @@ var Yge = ["title", "attribute", "elementRef"], qge = ["style", "className", "ev return Zn(r, [{ key: "render", value: function() { - var i = this.props, o = i.title, a = i.attribute, s = i.elementRef, l = Nt(i, Yge), c = Sn(l, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]); + var i = this.props, o = i.title, a = i.attribute, s = i.elementRef, l = Nt(i, ove), c = Sn(l, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]); return Tt(!a, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ S.createElement(ks.Item, Te({}, a, { title: typeof o == "string" ? o : void 0 }, c, { @@ -19924,8 +19965,8 @@ var Yge = ["title", "attribute", "elementRef"], qge = ["style", "className", "ev })); } }]), r; -}(S.Component), Qge = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r, n = e.style, i = e.className, o = e.eventKey, a = e.warnKey, s = e.disabled, l = e.itemIcon, c = e.children, u = e.role, d = e.onMouseEnter, h = e.onMouseLeave, f = e.onClick, p = e.onKeyDown, g = e.onFocus, v = Nt(e, qge), m = W9(o), y = S.useContext(is), C = y.prefixCls, b = y.onItemClick, w = y.disabled, x = y.overflowDisabled, E = y.itemIcon, R = y.selectedKeys, P = y.onActive, T = S.useContext(wI), _ = T._internalRenderMenuItem, D = "".concat(C, "-item"), A = S.useRef(), M = S.useRef(), O = w || s, L = Xc(t, M), N = rp(o); +}(S.Component), cve = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r, n = e.style, i = e.className, o = e.eventKey, a = e.warnKey, s = e.disabled, l = e.itemIcon, c = e.children, u = e.role, d = e.onMouseEnter, h = e.onMouseLeave, f = e.onClick, p = e.onKeyDown, g = e.onFocus, v = Nt(e, ave), m = K9(o), y = S.useContext(is), C = y.prefixCls, b = y.onItemClick, w = y.disabled, x = y.overflowDisabled, E = y.itemIcon, R = y.selectedKeys, P = y.onActive, T = S.useContext(wD), _ = T._internalRenderMenuItem, D = "".concat(C, "-item"), A = S.useRef(), M = S.useRef(), O = w || s, L = Xc(t, M), N = ip(o); process.env.NODE_ENV !== "production" && a && Tt(!1, "MenuItem should not leave undefined `key`."); var F = function(Y) { return { @@ -19935,21 +19976,21 @@ var Yge = ["title", "attribute", "elementRef"], qge = ["style", "className", "ev item: A.current, domEvent: Y }; - }, $ = l || E, I = q9(o, O, d, h), V = I.active, H = Nt(I, Xge), B = R.includes(o), W = X9(N.length), j = function(Y) { + }, $ = l || E, I = Q9(o, O, d, h), V = I.active, H = Nt(I, sve), B = R.includes(o), W = J9(N.length), j = function(Y) { if (!O) { var K = F(Y); - f == null || f(iS(K)), b(K); + f == null || f(sS(K)), b(K); } }, X = function(Y) { - if (p == null || p(Y), Y.which === Oe.ENTER) { + if (p == null || p(Y), Y.which === Le.ENTER) { var K = F(Y); - f == null || f(iS(K)), b(K); + f == null || f(sS(K)), b(K); } }, q = function(Y) { P(o), g == null || g(Y); }, J = {}; e.role === "option" && (J["aria-selected"] = B); - var te = /* @__PURE__ */ S.createElement(Zge, Te({ + var re = /* @__PURE__ */ S.createElement(lve, Te({ ref: A, elementRef: L, role: u === null ? "none" : u || "menuitem", @@ -19963,30 +20004,30 @@ var Yge = ["title", "attribute", "elementRef"], qge = ["style", "className", "ev onClick: j, onKeyDown: X, onFocus: q - }), c, /* @__PURE__ */ S.createElement(Z9, { + }), c, /* @__PURE__ */ S.createElement(e7, { props: Z(Z({}, e), {}, { isSelected: B }), icon: $ })); - return _ && (te = _(te, e, { + return _ && (re = _(re, e, { selected: B - })), te; + })), re; }); -function Jge(e, t) { - var r = e.eventKey, n = tw(), i = rp(r); +function uve(e, t) { + var r = e.eventKey, n = nw(), i = ip(r); return S.useEffect(function() { if (n) return n.registerPath(r, i), function() { n.unregisterPath(r, i); }; - }, [i]), n ? null : /* @__PURE__ */ S.createElement(Qge, Te({}, e, { + }, [i]), n ? null : /* @__PURE__ */ S.createElement(cve, Te({}, e, { ref: t })); } -const Dm = /* @__PURE__ */ S.forwardRef(Jge); -var eve = ["className", "children"], tve = function(t, r) { - var n = t.className, i = t.children, o = Nt(t, eve), a = S.useContext(is), s = a.prefixCls, l = a.mode, c = a.rtl; +const Am = /* @__PURE__ */ S.forwardRef(uve); +var dve = ["className", "children"], hve = function(t, r) { + var n = t.className, i = t.children, o = Nt(t, dve), a = S.useContext(is), s = a.prefixCls, l = a.mode, c = a.rtl; return /* @__PURE__ */ S.createElement("ul", Te({ className: ie(s, c && "".concat(s, "-rtl"), "".concat(s, "-sub"), "".concat(s, "-").concat(l === "inline" ? "inline" : "vertical"), n), role: "menu" @@ -19994,10 +20035,10 @@ var eve = ["className", "children"], tve = function(t, r) { "data-menu-list": !0, ref: r }), i); -}, RI = /* @__PURE__ */ S.forwardRef(tve); -RI.displayName = "SubMenuList"; -function PI(e, t) { - return bi(e).map(function(r, n) { +}, RD = /* @__PURE__ */ S.forwardRef(hve); +RD.displayName = "SubMenuList"; +function PD(e, t) { + return wi(e).map(function(r, n) { if (/* @__PURE__ */ S.isValidElement(r)) { var i, o, a = r.key, s = (i = (o = r.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && i !== void 0 ? i : a, l = s == null; l && (s = "tmp_key-".concat([].concat($e(t), [n]).join("-"))); @@ -20013,7 +20054,7 @@ function PI(e, t) { var Di = { adjustX: 1, adjustY: 1 -}, rve = { +}, fve = { topLeft: { points: ["bl", "tl"], overflow: Di @@ -20046,7 +20087,7 @@ var Di = { points: ["bl", "br"], overflow: Di } -}, nve = { +}, pve = { topLeft: { points: ["bl", "tl"], overflow: Di @@ -20080,20 +20121,20 @@ var Di = { overflow: Di } }; -function Q9(e, t, r) { +function t7(e, t, r) { if (t) return t; if (r) return r[e] || r.other; } -var ive = { +var gve = { horizontal: "bottomLeft", vertical: "rightTop", "vertical-left": "rightTop", "vertical-right": "leftTop" }; -function ove(e) { - var t = e.prefixCls, r = e.visible, n = e.children, i = e.popup, o = e.popupStyle, a = e.popupClassName, s = e.popupOffset, l = e.disabled, c = e.mode, u = e.onVisibleChange, d = S.useContext(is), h = d.getPopupContainer, f = d.rtl, p = d.subMenuOpenDelay, g = d.subMenuCloseDelay, v = d.builtinPlacements, m = d.triggerSubMenuAction, y = d.forceSubMenuRender, C = d.rootClassName, b = d.motion, w = d.defaultMotions, x = S.useState(!1), E = ce(x, 2), R = E[0], P = E[1], T = Z(f ? Z({}, nve) : Z({}, rve), v), _ = ive[c], D = Q9(c, b, w), A = S.useRef(D); +function vve(e) { + var t = e.prefixCls, r = e.visible, n = e.children, i = e.popup, o = e.popupStyle, a = e.popupClassName, s = e.popupOffset, l = e.disabled, c = e.mode, u = e.onVisibleChange, d = S.useContext(is), h = d.getPopupContainer, f = d.rtl, p = d.subMenuOpenDelay, g = d.subMenuCloseDelay, v = d.builtinPlacements, m = d.triggerSubMenuAction, y = d.forceSubMenuRender, C = d.rootClassName, b = d.motion, w = d.defaultMotions, x = S.useState(!1), E = ce(x, 2), R = E[0], P = E[1], T = Z(f ? Z({}, pve) : Z({}, fve), v), _ = gve[c], D = t7(c, b, w), A = S.useRef(D); c !== "inline" && (A.current = D); var M = Z(Z({}, A.current), {}, { leavedClassName: "".concat(t, "-hidden"), @@ -20101,12 +20142,12 @@ function ove(e) { motionAppear: !0 }), O = S.useRef(); return S.useEffect(function() { - return O.current = Nr(function() { + return O.current = kr(function() { P(r); }), function() { - Nr.cancel(O.current); + kr.cancel(O.current); }; - }, [r]), /* @__PURE__ */ S.createElement(Kb, { + }, [r]), /* @__PURE__ */ S.createElement(qb, { prefixCls: t, popupClassName: ie("".concat(t, "-popup"), U({}, "".concat(t, "-rtl"), f), a, C), stretch: c === "horizontal" ? "minWidth" : null, @@ -20128,19 +20169,19 @@ function ove(e) { fresh: !0 }, n); } -function ave(e) { +function mve(e) { var t = e.id, r = e.open, n = e.keyPath, i = e.children, o = "inline", a = S.useContext(is), s = a.prefixCls, l = a.forceSubMenuRender, c = a.motion, u = a.defaultMotions, d = a.mode, h = S.useRef(!1); h.current = d === o; var f = S.useState(!h.current), p = ce(f, 2), g = p[0], v = p[1], m = h.current ? r : !1; S.useEffect(function() { h.current && v(!1); }, [d]); - var y = Z({}, Q9(o, c, u)); + var y = Z({}, t7(o, c, u)); n.length > 1 && (y.motionAppear = !1); var C = y.onVisibleChanged; return y.onVisibleChanged = function(b) { return !h.current && !b && v(!0), C == null ? void 0 : C(b); - }, g ? null : /* @__PURE__ */ S.createElement(Av, { + }, g ? null : /* @__PURE__ */ S.createElement(Lv, { mode: o, locked: !h.current }, /* @__PURE__ */ S.createElement(us, Te({ @@ -20151,17 +20192,17 @@ function ave(e) { leavedClassName: "".concat(s, "-hidden") }), function(b) { var w = b.className, x = b.style; - return /* @__PURE__ */ S.createElement(RI, { + return /* @__PURE__ */ S.createElement(RD, { id: t, className: w, style: x }, i); })); } -var sve = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], lve = ["active"], cve = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r, n = e.style, i = e.className, o = e.title, a = e.eventKey, s = e.warnKey, l = e.disabled, c = e.internalPopupClose, u = e.children, d = e.itemIcon, h = e.expandIcon, f = e.popupClassName, p = e.popupOffset, g = e.popupStyle, v = e.onClick, m = e.onMouseEnter, y = e.onMouseLeave, C = e.onTitleClick, b = e.onTitleMouseEnter, w = e.onTitleMouseLeave, x = Nt(e, sve), E = W9(a), R = S.useContext(is), P = R.prefixCls, T = R.mode, _ = R.openKeys, D = R.disabled, A = R.overflowDisabled, M = R.activeKey, O = R.selectedKeys, L = R.itemIcon, N = R.expandIcon, F = R.onItemClick, $ = R.onOpenChange, I = R.onActive, V = S.useContext(wI), H = V._internalRenderSubMenuItem, B = S.useContext(K9), W = B.isSubPathKey, j = rp(), X = "".concat(P, "-submenu"), q = D || l, J = S.useRef(), te = S.useRef(); +var yve = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], Cve = ["active"], Sve = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r, n = e.style, i = e.className, o = e.title, a = e.eventKey, s = e.warnKey, l = e.disabled, c = e.internalPopupClose, u = e.children, d = e.itemIcon, h = e.expandIcon, f = e.popupClassName, p = e.popupOffset, g = e.popupStyle, v = e.onClick, m = e.onMouseEnter, y = e.onMouseLeave, C = e.onTitleClick, b = e.onTitleMouseEnter, w = e.onTitleMouseLeave, x = Nt(e, yve), E = K9(a), R = S.useContext(is), P = R.prefixCls, T = R.mode, _ = R.openKeys, D = R.disabled, A = R.overflowDisabled, M = R.activeKey, O = R.selectedKeys, L = R.itemIcon, N = R.expandIcon, F = R.onItemClick, $ = R.onOpenChange, I = R.onActive, V = S.useContext(wD), H = V._internalRenderSubMenuItem, B = S.useContext(X9), W = B.isSubPathKey, j = ip(), X = "".concat(P, "-submenu"), q = D || l, J = S.useRef(), re = S.useRef(); process.env.NODE_ENV !== "production" && s && Tt(!1, "SubMenu should not leave undefined `key`."); - var Q = d ?? L, Y = h ?? N, K = _.includes(a), ae = !A && K, G = W(O, a), re = q9(a, q, b, w), le = re.active, ue = Nt(re, lve), he = S.useState(!1), fe = ce(he, 2), de = fe[0], pe = fe[1], _e = function(Ue) { + var Q = d ?? L, Y = h ?? N, K = _.includes(a), ae = !A && K, G = W(O, a), ne = Q9(a, q, b, w), le = ne.active, ue = Nt(ne, Cve), he = S.useState(!1), fe = ce(he, 2), de = fe[0], pe = fe[1], _e = function(Ue) { q || pe(Ue); }, be = function(Ue) { _e(!0), m == null || m({ @@ -20175,13 +20216,13 @@ var sve = ["style", "className", "title", "eventKey", "warnKey", "disabled", "in }); }, Ve = S.useMemo(function() { return le || (T !== "inline" ? de || W([M], a) : !1); - }, [T, le, M, de, a, W]), oe = X9(j.length), ye = function(Ue) { + }, [T, le, M, de, a, W]), oe = J9(j.length), ye = function(Ue) { q || (C == null || C({ key: a, domEvent: Ue }), T === "inline" && $(a, !K)); - }, Ne = bg(function(Xe) { - v == null || v(iS(Xe)), F(Xe); + }, Ne = xg(function(Xe) { + v == null || v(sS(Xe)), F(Xe); }), ke = function(Ue) { T !== "inline" && $(a, Ue); }, we = function() { @@ -20200,7 +20241,7 @@ var sve = ["style", "className", "title", "eventKey", "warnKey", "disabled", "in "aria-disabled": q, onClick: ye, onFocus: we - }, ue), o, /* @__PURE__ */ S.createElement(Z9, { + }, ue), o, /* @__PURE__ */ S.createElement(e7, { icon: T !== "horizontal" ? Y : void 0, props: Z(Z({}, e), {}, { isOpen: ae, @@ -20212,7 +20253,7 @@ var sve = ["style", "className", "title", "eventKey", "warnKey", "disabled", "in }))), ze = S.useRef(T); if (T !== "inline" && j.length > 1 ? ze.current = "vertical" : ze.current = T, !A) { var je = ze.current; - xe = /* @__PURE__ */ S.createElement(ove, { + xe = /* @__PURE__ */ S.createElement(vve, { mode: je, prefixCls: X, visible: !c && ae && T !== "inline", @@ -20220,13 +20261,13 @@ var sve = ["style", "className", "title", "eventKey", "warnKey", "disabled", "in popupOffset: p, popupStyle: g, popup: /* @__PURE__ */ S.createElement( - Av, + Lv, { mode: je === "horizontal" ? "vertical" : je }, - /* @__PURE__ */ S.createElement(RI, { + /* @__PURE__ */ S.createElement(RD, { id: Ce, - ref: te + ref: re }, u) ), disabled: q, @@ -20242,7 +20283,7 @@ var sve = ["style", "className", "title", "eventKey", "warnKey", "disabled", "in className: ie(X, "".concat(X, "-").concat(T), i, (r = {}, U(r, "".concat(X, "-open"), ae), U(r, "".concat(X, "-active"), Ve), U(r, "".concat(X, "-selected"), G), U(r, "".concat(X, "-disabled"), q), r)), onMouseEnter: be, onMouseLeave: Me - }), xe, !A && /* @__PURE__ */ S.createElement(ave, { + }), xe, !A && /* @__PURE__ */ S.createElement(mve, { id: Ce, open: ae, keyPath: j @@ -20252,14 +20293,14 @@ var sve = ["style", "className", "title", "eventKey", "warnKey", "disabled", "in active: Ve, open: ae, disabled: q - })), /* @__PURE__ */ S.createElement(Av, { + })), /* @__PURE__ */ S.createElement(Lv, { onItemClick: Ne, mode: T === "horizontal" ? "vertical" : T, itemIcon: Q, expandIcon: Y }, st); -}), Im = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r = e.eventKey, n = e.children, i = rp(r), o = PI(n, i), a = tw(); +}), Om = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r = e.eventKey, n = e.children, i = ip(r), o = PD(n, i), a = nw(); S.useEffect(function() { if (a) return a.registerPath(r, i), function() { @@ -20267,25 +20308,25 @@ var sve = ["style", "className", "title", "eventKey", "warnKey", "disabled", "in }; }, [i]); var s; - return a ? s = o : s = /* @__PURE__ */ S.createElement(cve, Te({ + return a ? s = o : s = /* @__PURE__ */ S.createElement(Sve, Te({ ref: t - }, e), o), /* @__PURE__ */ S.createElement(U9.Provider, { + }, e), o), /* @__PURE__ */ S.createElement(q9.Provider, { value: i }, s); }); -process.env.NODE_ENV !== "production" && (Im.displayName = "SubMenu"); -function TI(e) { - var t = e.className, r = e.style, n = S.useContext(is), i = n.prefixCls, o = tw(); +process.env.NODE_ENV !== "production" && (Om.displayName = "SubMenu"); +function TD(e) { + var t = e.className, r = e.style, n = S.useContext(is), i = n.prefixCls, o = nw(); return o ? null : /* @__PURE__ */ S.createElement("li", { role: "separator", className: ie("".concat(i, "-item-divider"), t), style: r }); } -var uve = ["className", "title", "eventKey", "children"], dve = /* @__PURE__ */ S.forwardRef(function(e, t) { +var bve = ["className", "title", "eventKey", "children"], wve = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.className, n = e.title; e.eventKey; - var i = e.children, o = Nt(e, uve), a = S.useContext(is), s = a.prefixCls, l = "".concat(s, "-item-group"); + var i = e.children, o = Nt(e, bve), a = S.useContext(is), s = a.prefixCls, l = "".concat(s, "-item-group"); return /* @__PURE__ */ S.createElement("li", Te({ ref: t, role: "presentation" @@ -20302,19 +20343,19 @@ var uve = ["className", "title", "eventKey", "children"], dve = /* @__PURE__ */ role: "group", className: "".concat(l, "-list") }, i)); -}), rw = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r = e.eventKey, n = e.children, i = rp(r), o = PI(n, i), a = tw(); - return a ? o : /* @__PURE__ */ S.createElement(dve, Te({ +}), iw = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r = e.eventKey, n = e.children, i = ip(r), o = PD(n, i), a = nw(); + return a ? o : /* @__PURE__ */ S.createElement(wve, Te({ ref: t }, Sn(e, ["warnKey"])), o); }); -process.env.NODE_ENV !== "production" && (rw.displayName = "MenuItemGroup"); -var hve = ["label", "children", "key", "type"]; +process.env.NODE_ENV !== "production" && (iw.displayName = "MenuItemGroup"); +var xve = ["label", "children", "key", "type"]; function LT(e, t) { var r = t.item, n = t.group, i = t.submenu, o = t.divider; return (e || []).map(function(a, s) { if (a && pt(a) === "object") { - var l = a, c = l.label, u = l.children, d = l.key, h = l.type, f = Nt(l, hve), p = d ?? "tmp-".concat(s); + var l = a, c = l.label, u = l.children, d = l.key, h = l.type, f = Nt(l, xve), p = d ?? "tmp-".concat(s); return u || h === "group" ? h === "group" ? /* @__PURE__ */ S.createElement(n, Te({ key: p }, f, { @@ -20334,51 +20375,51 @@ function LT(e, t) { return a; }); } -function hk(e, t, r, n) { +function pk(e, t, r, n) { var i = e, o = Z({ - divider: TI, - item: Dm, - group: rw, - submenu: Im + divider: TD, + item: Am, + group: iw, + submenu: Om }, n); - return t && (i = LT(t, o)), PI(i, r); + return t && (i = LT(t, o)), PD(i, r); } -var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], au = [], pve = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r, n, i = e, o = i.prefixCls, a = o === void 0 ? "rc-menu" : o, s = i.rootClassName, l = i.style, c = i.className, u = i.tabIndex, d = u === void 0 ? 0 : u, h = i.items, f = i.children, p = i.direction, g = i.id, v = i.mode, m = v === void 0 ? "vertical" : v, y = i.inlineCollapsed, C = i.disabled, b = i.disabledOverflow, w = i.subMenuOpenDelay, x = w === void 0 ? 0.1 : w, E = i.subMenuCloseDelay, R = E === void 0 ? 0.1 : E, P = i.forceSubMenuRender, T = i.defaultOpenKeys, _ = i.openKeys, D = i.activeKey, A = i.defaultActiveFirst, M = i.selectable, O = M === void 0 ? !0 : M, L = i.multiple, N = L === void 0 ? !1 : L, F = i.defaultSelectedKeys, $ = i.selectedKeys, I = i.onSelect, V = i.onDeselect, H = i.inlineIndent, B = H === void 0 ? 24 : H, W = i.motion, j = i.defaultMotions, X = i.triggerSubMenuAction, q = X === void 0 ? "hover" : X, J = i.builtinPlacements, te = i.itemIcon, Q = i.expandIcon, Y = i.overflowedIndicator, K = Y === void 0 ? "..." : Y, ae = i.overflowedIndicatorPopupClassName, G = i.getPopupContainer, re = i.onClick, le = i.onOpenChange, ue = i.onKeyDown, he = i.openAnimation, fe = i.openTransitionName, de = i._internalRenderMenuItem, pe = i._internalRenderSubMenuItem, _e = i._internalComponents, be = Nt(i, fve), Me = S.useMemo(function() { - return [hk(f, h, au, _e), hk(f, h, au, {})]; - }, [f, h, _e]), Ve = ce(Me, 2), oe = Ve[0], ye = Ve[1], Ne = S.useState(!1), ke = ce(Ne, 2), we = ke[0], Ce = ke[1], xe = S.useRef(), ze = Uge(g), je = p === "rtl"; +var Eve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], au = [], Rve = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r, n, i = e, o = i.prefixCls, a = o === void 0 ? "rc-menu" : o, s = i.rootClassName, l = i.style, c = i.className, u = i.tabIndex, d = u === void 0 ? 0 : u, h = i.items, f = i.children, p = i.direction, g = i.id, v = i.mode, m = v === void 0 ? "vertical" : v, y = i.inlineCollapsed, C = i.disabled, b = i.disabledOverflow, w = i.subMenuOpenDelay, x = w === void 0 ? 0.1 : w, E = i.subMenuCloseDelay, R = E === void 0 ? 0.1 : E, P = i.forceSubMenuRender, T = i.defaultOpenKeys, _ = i.openKeys, D = i.activeKey, A = i.defaultActiveFirst, M = i.selectable, O = M === void 0 ? !0 : M, L = i.multiple, N = L === void 0 ? !1 : L, F = i.defaultSelectedKeys, $ = i.selectedKeys, I = i.onSelect, V = i.onDeselect, H = i.inlineIndent, B = H === void 0 ? 24 : H, W = i.motion, j = i.defaultMotions, X = i.triggerSubMenuAction, q = X === void 0 ? "hover" : X, J = i.builtinPlacements, re = i.itemIcon, Q = i.expandIcon, Y = i.overflowedIndicator, K = Y === void 0 ? "..." : Y, ae = i.overflowedIndicatorPopupClassName, G = i.getPopupContainer, ne = i.onClick, le = i.onOpenChange, ue = i.onKeyDown, he = i.openAnimation, fe = i.openTransitionName, de = i._internalRenderMenuItem, pe = i._internalRenderSubMenuItem, _e = i._internalComponents, be = Nt(i, Eve), Me = S.useMemo(function() { + return [pk(f, h, au, _e), pk(f, h, au, {})]; + }, [f, h, _e]), Ve = ce(Me, 2), oe = Ve[0], ye = Ve[1], Ne = S.useState(!1), ke = ce(Ne, 2), we = ke[0], Ce = ke[1], xe = S.useRef(), ze = nve(g), je = p === "rtl"; process.env.NODE_ENV !== "production" && Tt(!he && !fe, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead."); var st = pn(T, { value: _, postState: function(sr) { return sr || au; } - }), Xe = ce(st, 2), Ue = Xe[0], Ae = Xe[1], Ke = function(sr) { + }), Xe = ce(st, 2), Ue = Xe[0], Oe = Xe[1], Ke = function(sr) { var Sr = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; function on() { - Ae(sr), le == null || le(sr); + Oe(sr), le == null || le(sr); } Sr ? TP(on) : on(); - }, ht = S.useState(Ue), Et = ce(ht, 2), hr = Et[0], At = Et[1], Lt = S.useRef(!1), Dt = S.useMemo(function() { + }, ht = S.useState(Ue), Rt = ce(ht, 2), hr = Rt[0], At = Rt[1], Lt = S.useRef(!1), Dt = S.useMemo(function() { return (m === "inline" || m === "vertical") && y ? ["vertical", y] : [m, !1]; - }, [m, y]), Mt = ce(Dt, 2), mt = Mt[0], Qe = Mt[1], Rt = mt === "inline", jt = S.useState(mt), We = ce(jt, 2), et = We[0], rt = We[1], tt = S.useState(Qe), yt = ce(tt, 2), Gt = yt[0], Mr = yt[1]; + }, [m, y]), Mt = ce(Dt, 2), yt = Mt[0], Qe = Mt[1], Pt = yt === "inline", Ut = S.useState(yt), We = ce(Ut, 2), et = We[0], rt = We[1], tt = S.useState(Qe), Ct = ce(tt, 2), Gt = Ct[0], Mr = Ct[1]; S.useEffect(function() { - rt(mt), Mr(Qe), Lt.current && (Rt ? Ae(hr) : Ke(au)); - }, [mt, Qe]); + rt(yt), Mr(Qe), Lt.current && (Pt ? Oe(hr) : Ke(au)); + }, [yt, Qe]); var se = S.useState(0), ge = ce(se, 2), me = ge[0], He = ge[1], ct = me >= oe.length - 1 || et !== "horizontal" || b; S.useEffect(function() { - Rt && At(Ue); + Pt && At(Ue); }, [Ue]), S.useEffect(function() { return Lt.current = !0, function() { Lt.current = !1; }; }, []); - var it = Wge(), dt = it.registerPath, bt = it.unregisterPath, qe = it.refreshOverflowKeys, nt = it.isSubPathKey, ut = it.getKeyPath, tr = it.getKeys, Or = it.getSubPathKeys, Br = S.useMemo(function() { + var it = tve(), dt = it.registerPath, wt = it.unregisterPath, qe = it.refreshOverflowKeys, nt = it.isSubPathKey, ut = it.getKeyPath, tr = it.getKeys, Or = it.getSubPathKeys, Br = S.useMemo(function() { return { registerPath: dt, - unregisterPath: bt + unregisterPath: wt }; - }, [dt, bt]), xr = S.useMemo(function() { + }, [dt, wt]), xr = S.useMemo(function() { return { isSubPathKey: nt }; @@ -20390,19 +20431,19 @@ var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item }, [me, ct]); var An = pn(D || A && ((r = oe[0]) === null || r === void 0 ? void 0 : r.key), { value: D - }), Qn = ce(An, 2), ln = Qn[0], Pn = Qn[1], Vi = bg(function(dr) { + }), Qn = ce(An, 2), ln = Qn[0], Pn = Qn[1], Vi = xg(function(dr) { Pn(dr); - }), Vn = bg(function() { + }), Vn = xg(function() { Pn(void 0); }); Zs(t, function() { return { list: xe.current, focus: function(sr) { - var Sr, on = tr(), hn = AT(on, ze), Tn = hn.elements, di = hn.key2element, ol = hn.element2key, hi = xI(xe.current, Tn), al = ln ?? (hi[0] ? ol.get(hi[0]) : (Sr = oe.find(function(gn) { + var Sr, on = tr(), hn = AT(on, ze), Tn = hn.elements, hi = hn.key2element, al = hn.element2key, fi = xD(xe.current, Tn), sl = ln ?? (fi[0] ? al.get(fi[0]) : (Sr = oe.find(function(gn) { return !gn.props.disabled; - })) === null || Sr === void 0 ? void 0 : Sr.key), Ht = di.get(al); - if (al && Ht) { + })) === null || Sr === void 0 ? void 0 : Sr.key), Ht = hi.get(sl); + if (sl && Ht) { var lr; Ht == null || (lr = Ht.focus) === null || lr === void 0 || lr.call(Ht, sr); } @@ -20415,11 +20456,11 @@ var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item postState: function(sr) { return Array.isArray(sr) ? sr : sr == null ? au : [sr]; } - }), ur = ce(It, 2), Dr = ur[0], bn = ur[1], ui = function(sr) { + }), ur = ce(It, 2), Dr = ur[0], bn = ur[1], di = function(sr) { if (O) { var Sr = sr.key, on = Dr.includes(Sr), hn; - N ? on ? hn = Dr.filter(function(di) { - return di !== Sr; + N ? on ? hn = Dr.filter(function(hi) { + return hi !== Sr; }) : hn = [].concat($e(Dr), [Sr]) : hn = [Sr], bn(hn); var Tn = Z(Z({}, sr), {}, { selectedKeys: hn @@ -20427,9 +20468,9 @@ var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item on ? V == null || V(Tn) : I == null || I(Tn); } !N && Ue.length && et !== "inline" && Ke(au); - }, Ko = bg(function(dr) { - re == null || re(iS(dr)), ui(dr); - }), Hi = bg(function(dr, sr) { + }, Ko = xg(function(dr) { + ne == null || ne(sS(dr)), di(dr); + }), Hi = xg(function(dr, sr) { var Sr = Ue.filter(function(hn) { return hn !== dr; }); @@ -20445,7 +20486,7 @@ var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item }), rr = function(sr, Sr) { var on = Sr ?? !Ue.includes(sr); Hi(sr, on); - }, qt = Hge(et, ln, je, ze, xe, tr, ut, Pn, rr, ue); + }, Xt = Qge(et, ln, je, ze, xe, tr, ut, Pn, rr, ue); S.useEffect(function() { Ce(!0); }, []); @@ -20459,7 +20500,7 @@ var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item oe.map(function(dr, sr) { return ( // Always wrap provider to avoid sub node re-mount - /* @__PURE__ */ S.createElement(Av, { + /* @__PURE__ */ S.createElement(Lv, { key: dr.key, overflowDisabled: sr > me }, dr) @@ -20470,7 +20511,7 @@ var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item ref: xe, prefixCls: "".concat(a, "-overflow"), component: "ul", - itemComponent: Dm, + itemComponent: Am, className: ie(a, "".concat(a, "-root"), "".concat(a, "-").concat(et), c, (n = {}, U(n, "".concat(a, "-inline-collapsed"), Gt), U(n, "".concat(a, "-rtl"), je), n), s), dir: p, style: l, @@ -20482,7 +20523,7 @@ var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item }, renderRawRest: function(sr) { var Sr = sr.length, on = Sr ? oe.slice(-Sr) : null; - return /* @__PURE__ */ S.createElement(Im, { + return /* @__PURE__ */ S.createElement(Om, { eventKey: OT, title: K, disabled: ct, @@ -20496,13 +20537,13 @@ var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item onVisibleChange: function(sr) { He(sr); }, - onKeyDown: qt + onKeyDown: Xt }, be)); - return /* @__PURE__ */ S.createElement(wI.Provider, { + return /* @__PURE__ */ S.createElement(wD.Provider, { value: wn - }, /* @__PURE__ */ S.createElement(z9.Provider, { + }, /* @__PURE__ */ S.createElement(j9.Provider, { value: ze - }, /* @__PURE__ */ S.createElement(Av, { + }, /* @__PURE__ */ S.createElement(Lv, { prefixCls: a, rootClassName: s, mode: et, @@ -20522,66 +20563,66 @@ var fve = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item builtinPlacements: J, triggerSubMenuAction: q, getPopupContainer: G, - itemIcon: te, + itemIcon: re, expandIcon: Q, onItemClick: Ko, onOpenChange: Hi - }, /* @__PURE__ */ S.createElement(K9.Provider, { + }, /* @__PURE__ */ S.createElement(X9.Provider, { value: xr }, Xr), /* @__PURE__ */ S.createElement("div", { style: { display: "none" }, "aria-hidden": !0 - }, /* @__PURE__ */ S.createElement(j9.Provider, { + }, /* @__PURE__ */ S.createElement(Y9.Provider, { value: Br }, ye))))); -}), np = pve; -np.Item = Dm; -np.SubMenu = Im; -np.ItemGroup = rw; -np.Divider = TI; -var gve = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, vve = function(t, r) { +}), op = Rve; +op.Item = Am; +op.SubMenu = Om; +op.ItemGroup = iw; +op.Divider = TD; +var Pve = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, Tve = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: gve + icon: Pve })); -}, J9 = /* @__PURE__ */ S.forwardRef(vve); -process.env.NODE_ENV !== "production" && (J9.displayName = "BarsOutlined"); -var mve = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, yve = function(t, r) { +}, r7 = /* @__PURE__ */ S.forwardRef(Tve); +process.env.NODE_ENV !== "production" && (r7.displayName = "BarsOutlined"); +var _ve = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, Mve = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: mve + icon: _ve })); -}, Rd = /* @__PURE__ */ S.forwardRef(yve); +}, Rd = /* @__PURE__ */ S.forwardRef(Mve); process.env.NODE_ENV !== "production" && (Rd.displayName = "LeftOutlined"); -const Cve = (e) => !isNaN(parseFloat(e)) && isFinite(e), Sve = /* @__PURE__ */ S.createContext({ +const Dve = (e) => !isNaN(parseFloat(e)) && isFinite(e), Ive = /* @__PURE__ */ S.createContext({ siderHook: { addSider: () => null, removeSider: () => null } }); -var bve = function(e, t) { +var Ave = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const fk = { +const gk = { xs: "479.98px", sm: "575.98px", md: "767.98px", lg: "991.98px", xl: "1199.98px", xxl: "1599.98px" -}, _I = /* @__PURE__ */ S.createContext({}), wve = /* @__PURE__ */ (() => { +}, _D = /* @__PURE__ */ S.createContext({}), Ove = /* @__PURE__ */ (() => { let e = 0; return function() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; return e += 1, `${t}${e}`; }; -})(), xve = /* @__PURE__ */ S.forwardRef((e, t) => { +})(), Lve = /* @__PURE__ */ S.forwardRef((e, t) => { const { prefixCls: r, className: n, @@ -20598,9 +20639,9 @@ const fk = { breakpoint: p, onCollapse: g, onBreakpoint: v - } = e, m = bve(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), { + } = e, m = Ave(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), { siderHook: y - } = Jt(Sve), [C, b] = Le("collapsed" in e ? e.collapsed : a), [w, x] = Le(!1); + } = Jt(Ive), [C, b] = Ie("collapsed" in e ? e.collapsed : a), [w, x] = Ie(!1); Bt(() => { "collapsed" in e && b(e.collapsed); }, [e.collapsed]); @@ -20618,8 +20659,8 @@ const fk = { const { matchMedia: O } = window; - if (O && p && p in fk) { - M = O(`screen and (max-width: ${fk[p]})`); + if (O && p && p in gk) { + M = O(`screen and (max-width: ${gk[p]})`); try { M.addEventListener("change", A); } catch { @@ -20636,7 +20677,7 @@ const fk = { } }; }, [p]), Bt(() => { - const A = wve("ant-sider-"); + const A = Ove("ant-sider-"); return y.addSider(A), () => y.removeSider(A); }, []); const P = () => { @@ -20644,11 +20685,11 @@ const fk = { }, { getPrefixCls: T } = Jt(gt), _ = () => { - const A = T("layout-sider", r), M = Sn(m, ["collapsed"]), O = C ? h : d, L = Cve(O) ? `${O}px` : String(O), N = parseFloat(String(h || 0)) === 0 ? /* @__PURE__ */ S.createElement("span", { + const A = T("layout-sider", r), M = Sn(m, ["collapsed"]), O = C ? h : d, L = Dve(O) ? `${O}px` : String(O), N = parseFloat(String(h || 0)) === 0 ? /* @__PURE__ */ S.createElement("span", { onClick: P, className: ie(`${A}-zero-width-trigger`, `${A}-zero-width-trigger-${u ? "right" : "left"}`), style: f - }, i || /* @__PURE__ */ S.createElement(J9, null)) : null, I = { + }, i || /* @__PURE__ */ S.createElement(r7, null)) : null, I = { expanded: u ? /* @__PURE__ */ S.createElement($c, null) : /* @__PURE__ */ S.createElement(Rd, null), collapsed: u ? /* @__PURE__ */ S.createElement(Rd, null) : /* @__PURE__ */ S.createElement($c, null) }[C ? "collapsed" : "expanded"], V = i !== null ? N || /* @__PURE__ */ S.createElement("div", { @@ -20679,44 +20720,44 @@ const fk = { }, D = S.useMemo(() => ({ siderCollapsed: C }), [C]); - return /* @__PURE__ */ S.createElement(_I.Provider, { + return /* @__PURE__ */ S.createElement(_D.Provider, { value: D }, _()); }); -process.env.NODE_ENV !== "production" && (xve.displayName = "Sider"); -var Eve = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, Rve = function(t, r) { +process.env.NODE_ENV !== "production" && (Lve.displayName = "Sider"); +var Fve = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, Nve = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Eve + icon: Fve })); -}, nw = /* @__PURE__ */ S.forwardRef(Rve); -process.env.NODE_ENV !== "production" && (nw.displayName = "EllipsisOutlined"); -const oS = /* @__PURE__ */ Xs({ +}, ow = /* @__PURE__ */ S.forwardRef(Nve); +process.env.NODE_ENV !== "production" && (ow.displayName = "EllipsisOutlined"); +const lS = /* @__PURE__ */ Xs({ prefixCls: "", firstLevel: !0, inlineCollapsed: !1 }); -var Pve = function(e, t) { +var kve = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const e7 = (e) => { +const n7 = (e) => { const { prefixCls: t, className: r, dashed: n - } = e, i = Pve(e, ["prefixCls", "className", "dashed"]), { + } = e, i = kve(e, ["prefixCls", "className", "dashed"]), { getPrefixCls: o } = S.useContext(gt), a = o("menu", t), s = ie({ [`${a}-item-divider-dashed`]: !!n }, r); - return /* @__PURE__ */ S.createElement(TI, Object.assign({ + return /* @__PURE__ */ S.createElement(TD, Object.assign({ className: s }, i)); -}, t7 = (e) => { +}, i7 = (e) => { var t; const { className: r, @@ -20730,7 +20771,7 @@ const e7 = (e) => { direction: c, disableMenuItemTitleTooltip: u, inlineCollapsed: d - } = S.useContext(oS), h = (y) => { + } = S.useContext(lS), h = (y) => { const C = /* @__PURE__ */ S.createElement("span", { className: `${s}-title-content` }, n); @@ -20739,15 +20780,15 @@ const e7 = (e) => { }, n.charAt(0)) : C; }, { siderCollapsed: f - } = S.useContext(_I); + } = S.useContext(_D); let p = o; typeof o > "u" ? p = l ? n : "" : o === !1 && (p = ""); const g = { title: p }; !f && !d && (g.title = null, g.open = !1); - const v = bi(n).length; - let m = /* @__PURE__ */ S.createElement(Dm, Object.assign({}, Sn(e, ["title", "icon", "danger"]), { + const v = wi(n).length; + let m = /* @__PURE__ */ S.createElement(Am, Object.assign({}, Sn(e, ["title", "icon", "danger"]), { className: ie({ [`${s}-item-danger`]: a, [`${s}-item-only-child`]: (i ? v + 1 : v) === 1 @@ -20761,17 +20802,17 @@ const e7 = (e) => { overlayClassName: `${s}-inline-collapsed-tooltip` }), m)), m; }; -var Tve = function(e, t) { +var $ve = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forwardRef((e, t) => { +const cS = /* @__PURE__ */ S.createContext(null), o7 = /* @__PURE__ */ S.forwardRef((e, t) => { const { children: r - } = e, n = Tve(e, ["children"]), i = S.useContext(aS), o = S.useMemo(() => Object.assign(Object.assign({}, i), n), [ + } = e, n = $ve(e, ["children"]), i = S.useContext(cS), o = S.useMemo(() => Object.assign(Object.assign({}, i), n), [ i, n.prefixCls, // restProps.expandIcon, Not mark as deps since this is a ReactNode @@ -20779,15 +20820,15 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward n.selectable, n.rootClassName // restProps.validator, Not mark as deps since this is a function - ]), a = coe(r), s = Xc(t, a ? r.ref : null); - return /* @__PURE__ */ S.createElement(aS.Provider, { + ]), a = Soe(r), s = Xc(t, a ? r.ref : null); + return /* @__PURE__ */ S.createElement(cS.Provider, { value: o - }, /* @__PURE__ */ S.createElement(Dv, { + }, /* @__PURE__ */ S.createElement(Av, { space: !0 }, a ? /* @__PURE__ */ S.cloneElement(r, { ref: s }) : r)); -}), _ve = (e) => { +}), Bve = (e) => { const { componentCls: t, motionDurationSlow: r, @@ -20801,7 +20842,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward [`${t}-horizontal`]: { lineHeight: n, border: 0, - borderBottom: `${ee(o)} ${a} ${i}`, + borderBottom: `${te(o)} ${a} ${i}`, boxShadow: "none", "&::after": { display: "block", @@ -20830,7 +20871,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward } } }; -}, Mve = (e) => { +}, Vve = (e) => { let { componentCls: t, menuArrowOffset: r, @@ -20848,15 +20889,15 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward ${t}-submenu-rtl ${t}-vertical`]: { [`${t}-submenu-arrow`]: { "&::before": { - transform: `rotate(-45deg) translateY(${ee(n(r).mul(-1).equal())})` + transform: `rotate(-45deg) translateY(${te(n(r).mul(-1).equal())})` }, "&::after": { - transform: `rotate(45deg) translateY(${ee(r)})` + transform: `rotate(45deg) translateY(${te(r)})` } } } }; -}, pk = (e) => Object.assign({}, Nc(e)), gk = (e, t) => { +}, vk = (e) => Object.assign({}, Nc(e)), mk = (e, t) => { const { componentCls: r, itemColor: n, @@ -20899,7 +20940,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward [`${r}-${t}, ${r}-${t} > ${r}`]: { color: n, background: a, - [`&${r}-root:focus-visible`]: Object.assign({}, pk(e)), + [`&${r}-root:focus-visible`]: Object.assign({}, vk(e)), // ======================== Item ======================== [`${r}-item-group-title`]: { color: o @@ -20911,7 +20952,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward }, [`${r}-item, ${r}-submenu-title`]: { color: n, - [`&:not(${r}-item-disabled):focus-visible`]: Object.assign({}, pk(e)) + [`&:not(${r}-item-disabled):focus-visible`]: Object.assign({}, vk(e)) }, // Disabled [`${r}-item-disabled, ${r}-submenu-disabled`]: { @@ -21000,7 +21041,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward position: "absolute", insetInline: g, bottom: 0, - borderBottom: `${ee(c)} solid transparent`, + borderBottom: `${te(c)} solid transparent`, transition: `border-color ${h} ${f}`, content: '""' }, @@ -21028,7 +21069,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward // [`&${r}-root`]: { [`&${r}-inline, &${r}-vertical`]: { - borderInlineEnd: `${ee(d)} ${y} ${C}` + borderInlineEnd: `${te(d)} ${y} ${C}` } }, // ======================== Inline ======================== @@ -21043,7 +21084,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward position: "absolute", insetBlock: 0, insetInlineEnd: 0, - borderInlineEnd: `${ee(u)} solid ${i}`, + borderInlineEnd: `${te(u)} solid ${i}`, transform: "scaleY(0.0001)", opacity: 0, transition: [`transform ${v} ${p}`, `opacity ${v} ${p}`].join(","), @@ -21066,7 +21107,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward } } }; -}, vk = (e) => { +}, yk = (e) => { const { componentCls: t, itemHeight: r, @@ -21084,7 +21125,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward }, [`${t}-item, ${t}-submenu-title`]: { height: r, - lineHeight: ee(r), + lineHeight: te(r), paddingInline: i, overflow: "hidden", textOverflow: "ellipsis", @@ -21095,14 +21136,14 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward [`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]: { height: r, - lineHeight: ee(r) + lineHeight: te(r) }, [`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]: { paddingInlineEnd: c } }; -}, Dve = (e) => { +}, Hve = (e) => { const { componentCls: t, iconCls: r, @@ -21122,7 +21163,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward collapsedIconSize: v } = e, m = { height: n, - lineHeight: ee(n), + lineHeight: te(n), listStylePosition: "inside", listStyleType: "disc" }; @@ -21133,10 +21174,10 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward [`&${t}-root`]: { boxShadow: "none" } - }, vk(e)) + }, yk(e)) }, [`${t}-submenu-popup`]: { - [`${t}-vertical`]: Object.assign(Object.assign({}, vk(e)), { + [`${t}-vertical`]: Object.assign(Object.assign({}, yk(e)), { boxShadow: p }) } @@ -21145,7 +21186,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward { [`${t}-submenu-popup ${t}-vertical${t}-sub`]: { minWidth: o, - maxHeight: `calc(100vh - ${ee(e.calc(a).mul(2.5).equal())})`, + maxHeight: `calc(100vh - ${te(e.calc(a).mul(2.5).equal())})`, padding: "0", overflow: "hidden", borderInlineEnd: 0, @@ -21166,7 +21207,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward [`${t}-item, ${t}-submenu-title`]: { display: "flex", alignItems: "center", - transition: [`border-color ${h}`, `background ${h}`, `padding ${s} ${l}`, `padding-inline calc(50% - ${ee(e.calc(d).div(2).equal())} - ${ee(u)})`].join(","), + transition: [`border-color ${h}`, `background ${h}`, `padding ${s} ${l}`, `padding-inline calc(50% - ${te(e.calc(d).div(2).equal())} - ${te(u)})`].join(","), [`> ${t}-title-content`]: { flex: "auto", minWidth: 0, @@ -21210,7 +21251,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]: { insetInlineStart: 0, - paddingInline: `calc(50% - ${ee(e.calc(d).div(2).equal())} - ${ee(u)})`, + paddingInline: `calc(50% - ${te(e.calc(d).div(2).equal())} - ${te(u)})`, textOverflow: "clip", [` ${t}-submenu-arrow, @@ -21221,7 +21262,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward [`${t}-item-icon, ${r}`]: { margin: 0, fontSize: v, - lineHeight: ee(n), + lineHeight: te(n), "+ span": { display: "inline-block", opacity: 0 @@ -21246,7 +21287,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward } } ]; -}, mk = (e) => { +}, Ck = (e) => { const { componentCls: t, motionDurationSlow: r, @@ -21276,7 +21317,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward transition: [`opacity ${r} ${i}`, `margin ${r}`, `color ${r}`].join(",") } }, - [`${t}-item-icon`]: Object.assign({}, kb()), + [`${t}-item-icon`]: Object.assign({}, Bb()), [`&${t}-item-only-child`]: { [`> ${a}, > ${t}-item-icon`]: { marginInlineEnd: 0 @@ -21299,7 +21340,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward } } }; -}, yk = (e) => { +}, Sk = (e) => { const { componentCls: t, motionDurationSlow: r, @@ -21331,15 +21372,15 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward content: '""' }, "&::before": { - transform: `rotate(45deg) translateY(${ee(e.calc(a).mul(-1).equal())})` + transform: `rotate(45deg) translateY(${te(e.calc(a).mul(-1).equal())})` }, "&::after": { - transform: `rotate(-45deg) translateY(${ee(a)})` + transform: `rotate(-45deg) translateY(${te(a)})` } } } }; -}, Ive = (e) => { +}, zve = (e) => { const { antCls: t, componentCls: r, @@ -21364,7 +21405,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward // Misc { "": { - [`${r}`]: Object.assign(Object.assign({}, Fl()), { + [`${r}`]: Object.assign(Object.assign({}, Nl()), { // Hidden "&-hidden": { display: "none" @@ -21376,7 +21417,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward } }, { - [r]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, nn(e)), Fl()), { + [r]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, nn(e)), Nl()), { marginBottom: 0, paddingInlineStart: 0, // Override default ul/ol @@ -21402,7 +21443,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward borderRadius: e.itemBorderRadius }, [`${r}-item-group-title`]: { - padding: `${ee(s)} ${ee(l)}`, + padding: `${te(s)} ${te(l)}`, fontSize: y, lineHeight: m, transition: `all ${i}` @@ -21449,13 +21490,13 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward borderStyle: "dashed" } } - }), mk(e)), { + }), Ck(e)), { [`${r}-item-group`]: { [`${r}-item-group-list`]: { margin: 0, padding: 0, [`${r}-item, ${r}-submenu-title`]: { - paddingInline: `${ee(e.calc(n).mul(2).equal())} ${ee(l)}` + paddingInline: `${te(e.calc(n).mul(2).equal())} ${te(l)}` } } }, @@ -21482,7 +21523,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward }, [`> ${r}`]: Object.assign(Object.assign(Object.assign({ borderRadius: h - }, mk(e)), yk(e)), { + }, Ck(e)), Sk(e)), { [`${r}-item, ${r}-submenu > ${r}-submenu-title`]: { borderRadius: f }, @@ -21516,25 +21557,25 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward paddingTop: e.paddingXS } } - }), yk(e)), { + }), Sk(e)), { [`&-inline-collapsed ${r}-submenu-arrow, &-inline ${r}-submenu-arrow`]: { // ↓ "&::before": { - transform: `rotate(-45deg) translateX(${ee(g)})` + transform: `rotate(-45deg) translateX(${te(g)})` }, "&::after": { - transform: `rotate(45deg) translateX(${ee(e.calc(g).mul(-1).equal())})` + transform: `rotate(45deg) translateX(${te(e.calc(g).mul(-1).equal())})` } }, [`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]: { // ↑ - transform: `translateY(${ee(e.calc(p).mul(0.2).mul(-1).equal())})`, + transform: `translateY(${te(e.calc(p).mul(0.2).mul(-1).equal())})`, "&::after": { - transform: `rotate(-45deg) translateX(${ee(e.calc(g).mul(-1).equal())})` + transform: `rotate(-45deg) translateX(${te(e.calc(g).mul(-1).equal())})` }, "&::before": { - transform: `rotate(45deg) translateX(${ee(g)})` + transform: `rotate(45deg) translateX(${te(g)})` } } }) @@ -21548,7 +21589,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward } } ]; -}, Ave = (e) => { +}, Gve = (e) => { var t, r, n; const { colorPrimary: i, @@ -21660,9 +21701,9 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward // internal itemWidth: _ ? `calc(100% + ${D}px)` : `calc(100% - ${A * 2}px)` }; -}, Ove = function(e) { +}, Wve = function(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; - return Ur("Menu", (i) => { + return Kr("Menu", (i) => { const { colorBgElevated: o, controlHeightLG: a, @@ -21718,25 +21759,25 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward }); return [ // Basic - Ive(P), + zve(P), // Horizontal - _ve(P), + Bve(P), // Hard code for some light style // Vertical - Dve(P), + Hve(P), // Hard code for some light style // Theme - gk(P, "light"), - gk(T, "dark"), + mk(P, "light"), + mk(T, "dark"), // RTL - Mve(P), + Vve(P), // Motion - zW(P), + jW(P), kc(P, "slide-up"), kc(P, "slide-down"), - tp(P, "zoom-big") + np(P, "zoom-big") ]; - }, Ave, { + }, Gve, { deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]], // Dropdown will handle menu style self. We do not need to handle this. injectStyle: r, @@ -21744,18 +21785,18 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward groupTitleLineHeight: !0 } })(e, t); -}, n7 = (e) => { +}, a7 = (e) => { var t; const { popupClassName: r, icon: n, title: i, theme: o - } = e, a = S.useContext(oS), { + } = e, a = S.useContext(lS), { prefixCls: s, inlineCollapsed: l, theme: c - } = a, u = rp(); + } = a, u = ip(); let d; if (!n) d = l && !u.length && i && typeof i == "string" ? /* @__PURE__ */ S.createElement("div", { @@ -21774,9 +21815,9 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward const h = S.useMemo(() => Object.assign(Object.assign({}, a), { firstLevel: !1 }), [a]), [f] = Vd("Menu"); - return /* @__PURE__ */ S.createElement(oS.Provider, { + return /* @__PURE__ */ S.createElement(lS.Provider, { value: h - }, /* @__PURE__ */ S.createElement(Im, Object.assign({}, Sn(e, ["icon"]), { + }, /* @__PURE__ */ S.createElement(Om, Object.assign({}, Sn(e, ["icon"]), { title: d, popupClassName: ie(s, r, `${s}-${o || c}`), popupStyle: { @@ -21784,7 +21825,7 @@ const aS = /* @__PURE__ */ S.createContext(null), r7 = /* @__PURE__ */ S.forward } }))); }; -var Lve = function(e, t) { +var jve = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) @@ -21794,13 +21835,13 @@ var Lve = function(e, t) { function Z1(e) { return e === null || e === !1; } -const Fve = { - item: t7, - submenu: n7, - divider: e7 -}, Nve = /* @__PURE__ */ qr((e, t) => { +const Uve = { + item: i7, + submenu: a7, + divider: n7 +}, Kve = /* @__PURE__ */ Ur((e, t) => { var r; - const n = S.useContext(aS), i = n || {}, { + const n = S.useContext(cS), i = n || {}, { getPrefixCls: o, getPopupContainer: a, direction: s, @@ -21819,7 +21860,7 @@ const Fve = { selectable: b, onClick: w, overflowedIndicatorPopupClassName: x - } = e, E = Lve(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), R = Sn(E, ["collapsedWidth"]); + } = e, E = jve(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), R = Sn(E, ["collapsedWidth"]); if (process.env.NODE_ENV !== "production") { const H = Rr("Menu"); process.env.NODE_ENV !== "production" && H(!("inlineCollapsed" in e && C !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), process.env.NODE_ENV !== "production" && H(!(e.siderCollapsed !== void 0 && "inlineCollapsed" in e), "usage", "`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."), H.deprecated("items" in e && !e.children, "children", "items"); @@ -21827,18 +21868,18 @@ const Fve = { (r = i.validator) === null || r === void 0 || r.call(i, { mode: C }); - const P = Kr(function() { + const P = Yr(function() { var H; w == null || w.apply(void 0, arguments), (H = i.onClick) === null || H === void 0 || H.call(i); }), T = i.mode || C, _ = b ?? i.selectable, D = S.useMemo(() => m !== void 0 ? m : v, [v, m]), A = { horizontal: { motionName: `${c}-slide-up` }, - inline: gW(c), + inline: yW(c), other: { motionName: `${c}-zoom-big` } - }, M = o("menu", u || i.prefixCls), O = mi(M), [L, N, F] = Ove(M, O, !n), $ = ie(`${M}-${f}`, l == null ? void 0 : l.className, d), I = S.useMemo(() => { + }, M = o("menu", u || i.prefixCls), O = yi(M), [L, N, F] = Wve(M, O, !n), $ = ie(`${M}-${f}`, l == null ? void 0 : l.className, d), I = S.useMemo(() => { var H, B; if (typeof p == "function" || Z1(p)) return p || null; @@ -21859,13 +21900,13 @@ const Fve = { mode: T, disableMenuItemTitleTooltip: g }), [M, D, s, g, f]); - return L(/* @__PURE__ */ S.createElement(aS.Provider, { + return L(/* @__PURE__ */ S.createElement(cS.Provider, { value: null - }, /* @__PURE__ */ S.createElement(oS.Provider, { + }, /* @__PURE__ */ S.createElement(lS.Provider, { value: V - }, /* @__PURE__ */ S.createElement(np, Object.assign({ + }, /* @__PURE__ */ S.createElement(op, Object.assign({ getPopupContainer: a, - overflowedIndicator: /* @__PURE__ */ S.createElement(nw, null), + overflowedIndicator: /* @__PURE__ */ S.createElement(ow, null), overflowedIndicatorPopupClassName: ie(M, `${M}-${f}`, x), mode: T, selectable: _, @@ -21880,26 +21921,26 @@ const Fve = { expandIcon: I, ref: t, rootClassName: ie(y, N, i.rootClassName, F, O), - _internalComponents: Fve + _internalComponents: Uve }))))); -}), zd = /* @__PURE__ */ qr((e, t) => { - const r = ve(null), n = S.useContext(_I); +}), zd = /* @__PURE__ */ Ur((e, t) => { + const r = ve(null), n = S.useContext(_D); return Zs(t, () => ({ menu: r.current, focus: (i) => { var o; (o = r.current) === null || o === void 0 || o.focus(i); } - })), /* @__PURE__ */ S.createElement(Nve, Object.assign({ + })), /* @__PURE__ */ S.createElement(Kve, Object.assign({ ref: r }, e, n)); }); -zd.Item = t7; -zd.SubMenu = n7; -zd.Divider = e7; -zd.ItemGroup = rw; +zd.Item = i7; +zd.SubMenu = a7; +zd.Divider = n7; +zd.ItemGroup = iw; process.env.NODE_ENV !== "production" && (zd.displayName = "Menu"); -const kve = (e) => { +const Yve = (e) => { const { componentCls: t, menuCls: r, @@ -21919,7 +21960,7 @@ const kve = (e) => { } } }; -}, $ve = (e) => { +}, qve = (e) => { const { componentCls: t, menuCls: r, @@ -21990,7 +22031,7 @@ const kve = (e) => { &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]: { - animationName: nI + animationName: nD }, [`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, @@ -21998,24 +22039,24 @@ const kve = (e) => { &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]: { - animationName: oI + animationName: oD }, [`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]: { - animationName: iI + animationName: iD }, [`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]: { - animationName: aI + animationName: aD } } }, // ============================================================= // == Arrow style == // ============================================================= - bI(e, g, { + bD(e, g, { arrowPlacement: { top: !0, bottom: !0 @@ -22055,7 +22096,7 @@ const kve = (e) => { boxShadow: "none" }, [`${r}-item-group-title`]: { - padding: `${ee(c)} ${ee(p)}`, + padding: `${te(c)} ${te(p)}`, color: e.colorTextDescription, transition: `all ${l}` }, @@ -22089,7 +22130,7 @@ const kve = (e) => { [`${r}-item, ${r}-submenu-title`]: Object.assign(Object.assign({ clear: "both", margin: 0, - padding: `${ee(c)} ${ee(p)}`, + padding: `${te(c)} ${te(p)}`, color: e.colorText, fontWeight: "normal", fontSize: u, @@ -22123,7 +22164,7 @@ const kve = (e) => { "&-divider": { height: 1, // By design - margin: `${ee(e.marginXXS)} 0`, + margin: `${te(e.marginXXS)} 0`, overflow: "hidden", lineHeight: 0, backgroundColor: e.colorSplit @@ -22140,7 +22181,7 @@ const kve = (e) => { } }), [`${r}-item-group-list`]: { - margin: `0 ${ee(e.marginXS)}`, + margin: `0 ${te(e.marginXS)}`, padding: 0, listStyle: "none" }, @@ -22165,15 +22206,15 @@ const kve = (e) => { }) }, // Follow code may reuse in other components - [kc(e, "slide-up"), kc(e, "slide-down"), eS(e, "move-up"), eS(e, "move-down"), tp(e, "zoom-big")] + [kc(e, "slide-up"), kc(e, "slide-down"), nS(e, "move-up"), nS(e, "move-down"), np(e, "zoom-big")] ]; -}, Bve = (e) => Object.assign(Object.assign({ +}, Xve = (e) => Object.assign(Object.assign({ zIndexPopup: e.zIndexPopupBase + 50, paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2 -}, Jb({ +}, tw({ contentRadius: e.borderRadiusLG, limitVerticalRadius: !0 -})), SI(e)), Vve = Ur("Dropdown", (e) => { +})), SD(e)), Zve = Kr("Dropdown", (e) => { const { marginXXS: t, sizePopupArrow: r, @@ -22184,10 +22225,10 @@ const kve = (e) => { dropdownArrowDistance: e.calc(r).div(2).add(t).equal(), dropdownEdgeChildPadding: n }); - return [$ve(o), kve(o)]; -}, Bve, { + return [qve(o), Yve(o)]; +}, Xve, { resetStyle: !1 -}), Am = (e) => { +}), Lm = (e) => { var t; const { menu: r, @@ -22219,8 +22260,8 @@ const kve = (e) => { dropdown: T } = S.useContext(gt), _ = Rr("Dropdown"); process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((G) => { - let [re, le] = G; - _.deprecated(!(re in e), re, le); + let [ne, le] = G; + _.deprecated(!(ne in e), ne, le); }), _.deprecated(!("overlay" in e), "overlay", "menu")); const D = S.useMemo(() => { const G = R(); @@ -22232,36 +22273,36 @@ const kve = (e) => { process.env.NODE_ENV !== "production" && _(!b.includes("Center"), "deprecated", `You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${G}' instead.`); } [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((G) => { - let [re, le] = G; - _.deprecated(!(re in e), re, le); + let [ne, le] = G; + _.deprecated(!(ne in e), ne, le); }); } - const M = R("dropdown", i), O = mi(M), [L, N, F] = Vve(M, O), [, $] = ai(), I = S.Children.only(o), V = eo(I, { + const M = R("dropdown", i), O = yi(M), [L, N, F] = Zve(M, O), [, $] = ai(), I = S.Children.only(o), V = eo(I, { className: ie(`${M}-trigger`, { [`${M}-rtl`]: P === "rtl" }, I.props.className), disabled: (t = I.props.disabled) !== null && t !== void 0 ? t : s }), H = s ? [] : a, B = !!(H != null && H.includes("contextMenu")), [W, j] = pn(!1, { value: f ?? g - }), X = Kr((G) => { + }), X = Yr((G) => { p == null || p(G, { source: "trigger" }), v == null || v(G), j(G); }), q = ie(u, d, N, F, O, T == null ? void 0 : T.className, { [`${M}-rtl`]: P === "rtl" - }), J = F9({ + }), J = $9({ arrowPointAtCenter: typeof n == "object" && n.pointAtCenter, autoAdjustOverflow: C, offset: $.marginXXS, arrowWidth: n ? $.sizePopupArrow : 0, borderRadius: $.borderRadius - }), te = S.useCallback(() => { + }), re = S.useCallback(() => { r != null && r.selectable && (r != null && r.multiple) || (p == null || p(!1, { source: "menu" }), j(!1)); }, [r == null ? void 0 : r.selectable, r == null ? void 0 : r.multiple]), Q = () => { let G; - return r != null && r.items ? G = /* @__PURE__ */ S.createElement(zd, Object.assign({}, r)) : typeof w == "function" ? G = w() : G = w, l && (G = l(G)), G = S.Children.only(typeof G == "string" ? /* @__PURE__ */ S.createElement("span", null, G) : G), /* @__PURE__ */ S.createElement(r7, { + return r != null && r.items ? G = /* @__PURE__ */ S.createElement(zd, Object.assign({}, r)) : typeof w == "function" ? G = w() : G = w, l && (G = l(G)), G = S.Children.only(typeof G == "string" ? /* @__PURE__ */ S.createElement("span", null, G) : G), /* @__PURE__ */ S.createElement(o7, { prefixCls: `${M}-menu`, rootClassName: ie(F, O), expandIcon: /* @__PURE__ */ S.createElement("span", { @@ -22271,16 +22312,16 @@ const kve = (e) => { })), mode: "vertical", selectable: !1, - onClick: te, - validator: (re) => { + onClick: re, + validator: (ne) => { let { mode: le - } = re; + } = ne; process.env.NODE_ENV !== "production" && _(!le || le === "vertical", "usage", `mode="${le}" is not supported for Dropdown's Menu.`); } }, G); }, [Y, K] = Vd("Dropdown", h == null ? void 0 : h.zIndex); - let ae = /* @__PURE__ */ S.createElement(H9, Object.assign({ + let ae = /* @__PURE__ */ S.createElement(W9, Object.assign({ alignPoint: B }, Sn(e, ["rootClassName"]), { mouseEnterDelay: m, @@ -22300,11 +22341,11 @@ const kve = (e) => { zIndex: Y }) }), V); - return Y && (ae = /* @__PURE__ */ S.createElement(Sm.Provider, { + return Y && (ae = /* @__PURE__ */ S.createElement(wm.Provider, { value: K }, ae)), L(ae); }; -function Hve(e) { +function Qve(e) { return Object.assign(Object.assign({}, e), { align: { overflow: { @@ -22314,14 +22355,14 @@ function Hve(e) { } }); } -const zve = o9(Am, "dropdown", (e) => e, Hve), Gve = (e) => /* @__PURE__ */ S.createElement(zve, Object.assign({}, e), /* @__PURE__ */ S.createElement("span", null)); -Am._InternalPanelDoNotUseOrYouWillBeFired = Gve; -process.env.NODE_ENV !== "production" && (Am.displayName = "Dropdown"); -var i7 = { exports: {} }; +const Jve = l9(Lm, "dropdown", (e) => e, Qve), eme = (e) => /* @__PURE__ */ S.createElement(Jve, Object.assign({}, e), /* @__PURE__ */ S.createElement("span", null)); +Lm._InternalPanelDoNotUseOrYouWillBeFired = eme; +process.env.NODE_ENV !== "production" && (Lm.displayName = "Dropdown"); +var s7 = { exports: {} }; (function(e, t) { (function(r, n) { e.exports = n(); - })(GC, function() { + })(UC, function() { var r = 1e3, n = 6e4, i = 36e5, o = "millisecond", a = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", h = "quarter", f = "year", p = "date", g = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) { var O = ["th", "st", "nd", "rd"], L = M % 100; return "[" + M + (O[(L - 20) % 10] || O[L] || O[0]) + "]"; @@ -22407,11 +22448,11 @@ var i7 = { exports: {} }; }, O.valueOf = function() { return this.$d.getTime(); }, O.startOf = function(L, N) { - var F = this, $ = !!_.u(N) || N, I = _.p(L), V = function(te, Q) { - var Y = _.w(F.$u ? Date.UTC(F.$y, Q, te) : new Date(F.$y, Q, te), F); + var F = this, $ = !!_.u(N) || N, I = _.p(L), V = function(re, Q) { + var Y = _.w(F.$u ? Date.UTC(F.$y, Q, re) : new Date(F.$y, Q, re), F); return $ ? Y : Y.endOf(c); - }, H = function(te, Q) { - return _.w(F.toDate()[te].apply(F.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Q)), F); + }, H = function(re, Q) { + return _.w(F.toDate()[re].apply(F.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Q)), F); }, B = this.$W, W = this.$M, j = this.$D, X = "set" + (this.$u ? "UTC" : ""); switch (I) { case f: @@ -22468,7 +22509,7 @@ var i7 = { exports: {} }; return Q && (Q[Y] || Q(N, $)) || K[Y].slice(0, ae); }, J = function(Q) { return _.s(V % 12 || 12, Q, "0"); - }, te = X || function(Q, Y, K) { + }, re = X || function(Q, Y, K) { var ae = Q < 12 ? "AM" : "PM"; return K ? ae.toLowerCase() : ae; }; @@ -22508,9 +22549,9 @@ var i7 = { exports: {} }; case "hh": return J(2); case "a": - return te(V, H, !0); + return re(V, H, !0); case "A": - return te(V, H, !1); + return re(V, H, !1); case "m": return String(H); case "mm": @@ -22592,14 +22633,14 @@ var i7 = { exports: {} }; return T(1e3 * M); }, T.en = x[w], T.Ls = x, T.p = {}, T; }); -})(i7); -var Wve = i7.exports; -const mo = /* @__PURE__ */ qf(Wve); -var o7 = { exports: {} }; +})(s7); +var tme = s7.exports; +const mo = /* @__PURE__ */ Zf(tme); +var l7 = { exports: {} }; (function(e, t) { (function(r, n) { e.exports = n(); - })(GC, function() { + })(UC, function() { return function(r, n) { var i = n.prototype, o = i.format; i.format = function(a) { @@ -22642,11 +22683,11 @@ var o7 = { exports: {} }; }; }; }); -})(o7); -var jve = o7.exports; -const a7 = /* @__PURE__ */ qf(jve), s7 = /* @__PURE__ */ S.createContext(null), Uve = s7.Provider, l7 = /* @__PURE__ */ S.createContext(null), Kve = l7.Provider; -var Yve = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], c7 = /* @__PURE__ */ qr(function(e, t) { - var r = e.prefixCls, n = r === void 0 ? "rc-checkbox" : r, i = e.className, o = e.style, a = e.checked, s = e.disabled, l = e.defaultChecked, c = l === void 0 ? !1 : l, u = e.type, d = u === void 0 ? "checkbox" : u, h = e.title, f = e.onChange, p = Nt(e, Yve), g = ve(null), v = ve(null), m = pn(c, { +})(l7); +var rme = l7.exports; +const c7 = /* @__PURE__ */ Zf(rme), u7 = /* @__PURE__ */ S.createContext(null), nme = u7.Provider, d7 = /* @__PURE__ */ S.createContext(null), ime = d7.Provider; +var ome = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], h7 = /* @__PURE__ */ Ur(function(e, t) { + var r = e.prefixCls, n = r === void 0 ? "rc-checkbox" : r, i = e.className, o = e.style, a = e.checked, s = e.disabled, l = e.defaultChecked, c = l === void 0 ? !1 : l, u = e.type, d = u === void 0 ? "checkbox" : u, h = e.title, f = e.onChange, p = Nt(e, ome), g = ve(null), v = ve(null), m = pn(c, { value: a }), y = ce(m, 2), C = y[0], b = y[1]; Zs(t, function() { @@ -22694,7 +22735,7 @@ var Yve = ["prefixCls", "className", "style", "checked", "disabled", "defaultChe className: "".concat(n, "-inner") })); }); -const qve = (e) => { +const ame = (e) => { const { componentCls: t, antCls: r @@ -22715,7 +22756,7 @@ const qve = (e) => { } }) }; -}, Xve = (e) => { +}, sme = (e) => { const { componentCls: t, wrapperMarginInlineEnd: r, @@ -22766,7 +22807,7 @@ const qve = (e) => { insetInlineStart: 0, width: "100%", height: "100%", - border: `${ee(u)} ${g} ${n}`, + border: `${te(u)} ${g} ${n}`, borderRadius: "50%", visibility: "hidden", opacity: 0, @@ -22876,7 +22917,7 @@ const qve = (e) => { } }) }; -}, Zve = (e) => { +}, lme = (e) => { const { buttonColor: t, controlHeight: r, @@ -22920,9 +22961,9 @@ const qve = (e) => { paddingBlock: 0, color: t, fontSize: u, - lineHeight: ee(O(r).sub(O(i).mul(2)).equal()), + lineHeight: te(O(r).sub(O(i).mul(2)).equal()), background: d, - border: `${ee(i)} ${o} ${a}`, + border: `${te(i)} ${o} ${a}`, // strange align fix for chrome but works // https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif borderBlockStartWidth: O(i).add(0.02).equal(), @@ -22958,7 +22999,7 @@ const qve = (e) => { } }, "&:first-child": { - borderInlineStart: `${ee(i)} ${o} ${a}`, + borderInlineStart: `${te(i)} ${o} ${a}`, borderStartStartRadius: v, borderEndStartRadius: v }, @@ -22972,7 +23013,7 @@ const qve = (e) => { [`${n}-group-large &`]: { height: f, fontSize: h, - lineHeight: ee(O(f).sub(O(i).mul(2)).equal()), + lineHeight: te(O(f).sub(O(i).mul(2)).equal()), "&:first-child": { borderStartStartRadius: y, borderEndStartRadius: y @@ -22986,7 +23027,7 @@ const qve = (e) => { height: p, paddingInline: O(g).sub(i).equal(), paddingBlock: 0, - lineHeight: ee(O(p).sub(O(i).mul(2)).equal()), + lineHeight: te(O(p).sub(O(i).mul(2)).equal()), "&:first-child": { borderStartStartRadius: m, borderEndStartRadius: m @@ -23067,7 +23108,7 @@ const qve = (e) => { } } }; -}, Qve = (e) => { +}, cme = (e) => { const { wireframe: t, padding: r, @@ -23105,31 +23146,31 @@ const qve = (e) => { radioColor: t ? d : p, radioBgColor: t ? s : d }; -}, u7 = Ur("Radio", (e) => { +}, f7 = Kr("Radio", (e) => { const { controlOutline: t, controlOutlineWidth: r - } = e, n = `0 0 0 ${ee(r)} ${t}`, o = fr(e, { + } = e, n = `0 0 0 ${te(r)} ${t}`, o = fr(e, { radioFocusShadow: n, radioButtonFocusShadow: n }); - return [qve(o), Xve(o), Zve(o)]; -}, Qve, { + return [ame(o), sme(o), lme(o)]; +}, cme, { unitless: { radioSize: !0, dotSize: !0 } }); -var Jve = function(e, t) { +var ume = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const eme = (e, t) => { +const dme = (e, t) => { var r, n; - const i = S.useContext(s7), o = S.useContext(l7), { + const i = S.useContext(u7), o = S.useContext(d7), { getPrefixCls: a, direction: s, radio: l @@ -23150,7 +23191,7 @@ const eme = (e, t) => { children: v, style: m, title: y - } = e, C = Jve(e, ["prefixCls", "className", "rootClassName", "children", "style", "title"]), b = a("radio", f), w = ((i == null ? void 0 : i.optionType) || o) === "button", x = w ? `${b}-button` : b, E = mi(b), [R, P, T] = u7(b, E), _ = Object.assign({}, C), D = S.useContext(Ll); + } = e, C = ume(e, ["prefixCls", "className", "rootClassName", "children", "style", "title"]), b = a("radio", f), w = ((i == null ? void 0 : i.optionType) || o) === "button", x = w ? `${b}-button` : b, E = yi(b), [R, P, T] = f7(b, E), _ = Object.assign({}, C), D = S.useContext(Fl); i && (_.name = i.name, _.onChange = h, _.checked = e.value === i.value, _.disabled = (r = _.disabled) !== null && r !== void 0 ? r : i.disabled), _.disabled = (n = _.disabled) !== null && n !== void 0 ? n : D; const A = ie(`${x}-wrapper`, { [`${x}-wrapper-checked`]: _.checked, @@ -23158,7 +23199,7 @@ const eme = (e, t) => { [`${x}-wrapper-rtl`]: s === "rtl", [`${x}-wrapper-in-form-item`]: d }, l == null ? void 0 : l.className, p, g, P, T, E); - return R(/* @__PURE__ */ S.createElement(wm, { + return R(/* @__PURE__ */ S.createElement(Em, { component: "Radio", disabled: _.disabled }, /* @__PURE__ */ S.createElement("label", { @@ -23167,17 +23208,17 @@ const eme = (e, t) => { onMouseEnter: e.onMouseEnter, onMouseLeave: e.onMouseLeave, title: y - }, /* @__PURE__ */ S.createElement(c7, Object.assign({}, _, { + }, /* @__PURE__ */ S.createElement(h7, Object.assign({}, _, { className: ie(_.className, { - [Hb]: !w + [Gb]: !w }), type: "radio", prefixCls: x, ref: u })), v !== void 0 ? /* @__PURE__ */ S.createElement("span", null, v) : null))); -}, Ov = /* @__PURE__ */ S.forwardRef(eme); -process.env.NODE_ENV !== "production" && (Ov.displayName = "Radio"); -const tme = /* @__PURE__ */ S.forwardRef((e, t) => { +}, Fv = /* @__PURE__ */ S.forwardRef(dme); +process.env.NODE_ENV !== "production" && (Fv.displayName = "Radio"); +const hme = /* @__PURE__ */ S.forwardRef((e, t) => { const { getPrefixCls: r, direction: n @@ -23205,15 +23246,15 @@ const tme = /* @__PURE__ */ S.forwardRef((e, t) => { onMouseLeave: y, onFocus: C, onBlur: b - } = e, w = r("radio", s), x = `${w}-group`, E = mi(w), [R, P, T] = u7(w, E); + } = e, w = r("radio", s), x = `${w}-group`, E = yi(w), [R, P, T] = f7(w, E); let _ = f; - u && u.length > 0 && (_ = u.map((M) => typeof M == "string" || typeof M == "number" ? /* @__PURE__ */ S.createElement(Ov, { + u && u.length > 0 && (_ = u.map((M) => typeof M == "string" || typeof M == "number" ? /* @__PURE__ */ S.createElement(Fv, { key: M.toString(), prefixCls: w, disabled: h, value: M, checked: i === M - }, M) : /* @__PURE__ */ S.createElement(Ov, { + }, M) : /* @__PURE__ */ S.createElement(Fv, { key: `radio-group-value-options-${M.value}`, prefixCls: w, disabled: M.disabled || h, @@ -23240,7 +23281,7 @@ const tme = /* @__PURE__ */ S.forwardRef((e, t) => { onBlur: b, id: v, ref: t - }), /* @__PURE__ */ S.createElement(Uve, { + }), /* @__PURE__ */ S.createElement(nme, { value: { onChange: a, value: i, @@ -23249,38 +23290,38 @@ const tme = /* @__PURE__ */ S.forwardRef((e, t) => { optionType: e.optionType } }, _))); -}), rme = /* @__PURE__ */ S.memo(tme); -var nme = function(e, t) { +}), fme = /* @__PURE__ */ S.memo(hme); +var pme = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const ime = (e, t) => { +const gme = (e, t) => { const { getPrefixCls: r } = S.useContext(gt), { prefixCls: n - } = e, i = nme(e, ["prefixCls"]), o = r("radio", n); - return /* @__PURE__ */ S.createElement(Kve, { + } = e, i = pme(e, ["prefixCls"]), o = r("radio", n); + return /* @__PURE__ */ S.createElement(ime, { value: "button" - }, /* @__PURE__ */ S.createElement(Ov, Object.assign({ + }, /* @__PURE__ */ S.createElement(Fv, Object.assign({ prefixCls: o }, i, { type: "radio", ref: t }))); -}, ome = /* @__PURE__ */ S.forwardRef(ime), Om = Ov; -Om.Button = ome; -Om.Group = rme; -Om.__ANT_RADIO = !0; -function MI(e) { +}, vme = /* @__PURE__ */ S.forwardRef(gme), Fm = Fv; +Fm.Button = vme; +Fm.Group = fme; +Fm.__ANT_RADIO = !0; +function MD(e) { return fr(e, { inputAffixPadding: e.paddingXXS }); } -const DI = (e) => { +const DD = (e) => { const { controlHeight: t, fontSize: r, @@ -23321,10 +23362,10 @@ const DI = (e) => { inputFontSizeLG: s, inputFontSizeSM: r }; -}, ame = (e) => ({ +}, mme = (e) => ({ borderColor: e.hoverBorderColor, backgroundColor: e.hoverBg -}), iw = (e) => ({ +}), aw = (e) => ({ color: e.colorTextDisabled, backgroundColor: e.colorBgContainerDisabled, borderColor: e.colorBorder, @@ -23334,11 +23375,11 @@ const DI = (e) => { "input[disabled], textarea[disabled]": { cursor: "not-allowed" }, - "&:hover:not([disabled])": Object.assign({}, ame(fr(e, { + "&:hover:not([disabled])": Object.assign({}, mme(fr(e, { hoverBorderColor: e.colorBorder, hoverBg: e.colorBgContainerDisabled }))) -}), II = (e, t) => ({ +}), ID = (e, t) => ({ background: e.colorBgContainer, borderWidth: e.lineWidth, borderStyle: e.lineType, @@ -23353,8 +23394,8 @@ const DI = (e) => { outline: 0, backgroundColor: e.activeBg } -}), Ck = (e, t) => ({ - [`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]: Object.assign(Object.assign({}, II(e, t)), { +}), bk = (e, t) => ({ + [`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]: Object.assign(Object.assign({}, ID(e, t)), { [`${e.componentCls}-prefix, ${e.componentCls}-suffix`]: { color: t.affixColor } @@ -23362,22 +23403,22 @@ const DI = (e) => { [`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]: { borderColor: t.borderColor } -}), sme = (e, t) => ({ - "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, II(e, { +}), yme = (e, t) => ({ + "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ID(e, { borderColor: e.colorBorder, hoverBorderColor: e.hoverBorderColor, activeBorderColor: e.activeBorderColor, activeShadow: e.activeShadow })), { - [`&${e.componentCls}-disabled, &[disabled]`]: Object.assign({}, iw(e)) - }), Ck(e, { + [`&${e.componentCls}-disabled, &[disabled]`]: Object.assign({}, aw(e)) + }), bk(e, { status: "error", borderColor: e.colorError, hoverBorderColor: e.colorErrorBorderHover, activeBorderColor: e.colorError, activeShadow: e.errorActiveShadow, affixColor: e.colorError - })), Ck(e, { + })), bk(e, { status: "warning", borderColor: e.colorWarning, hoverBorderColor: e.colorWarningBorderHover, @@ -23385,19 +23426,19 @@ const DI = (e) => { activeShadow: e.warningActiveShadow, affixColor: e.colorWarning })), t) -}), Sk = (e, t) => ({ +}), wk = (e, t) => ({ [`&${e.componentCls}-group-wrapper-status-${t.status}`]: { [`${e.componentCls}-group-addon`]: { borderColor: t.addonBorderColor, color: t.addonColor } } -}), lme = (e) => ({ +}), Cme = (e) => ({ "&-outlined": Object.assign(Object.assign(Object.assign({ [`${e.componentCls}-group`]: { "&-addon": { background: e.addonBg, - border: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}` + border: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}` }, "&-addon:first-child": { borderInlineEnd: 0 @@ -23406,20 +23447,20 @@ const DI = (e) => { borderInlineStart: 0 } } - }, Sk(e, { + }, wk(e, { status: "error", addonBorderColor: e.colorError, addonColor: e.colorErrorText - })), Sk(e, { + })), wk(e, { status: "warning", addonBorderColor: e.colorWarning, addonColor: e.colorWarningText })), { [`&${e.componentCls}-group-wrapper-disabled`]: { - [`${e.componentCls}-group-addon`]: Object.assign({}, iw(e)) + [`${e.componentCls}-group-addon`]: Object.assign({}, aw(e)) } }) -}), cme = (e, t) => { +}), Sme = (e, t) => { const { componentCls: r } = e; @@ -23447,7 +23488,7 @@ const DI = (e) => { } }, t) }; -}, d7 = (e, t) => ({ +}, p7 = (e, t) => ({ background: t.bg, borderWidth: e.lineWidth, borderStyle: e.lineType, @@ -23463,27 +23504,27 @@ const DI = (e) => { borderColor: t.activeBorderColor, backgroundColor: e.activeBg } -}), bk = (e, t) => ({ - [`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]: Object.assign(Object.assign({}, d7(e, t)), { +}), xk = (e, t) => ({ + [`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]: Object.assign(Object.assign({}, p7(e, t)), { [`${e.componentCls}-prefix, ${e.componentCls}-suffix`]: { color: t.affixColor } }) -}), ume = (e, t) => ({ - "&-filled": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, d7(e, { +}), bme = (e, t) => ({ + "&-filled": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, p7(e, { bg: e.colorFillTertiary, hoverBg: e.colorFillSecondary, activeBorderColor: e.colorPrimary })), { - [`&${e.componentCls}-disabled, &[disabled]`]: Object.assign({}, iw(e)) - }), bk(e, { + [`&${e.componentCls}-disabled, &[disabled]`]: Object.assign({}, aw(e)) + }), xk(e, { status: "error", bg: e.colorErrorBg, hoverBg: e.colorErrorBgHover, activeBorderColor: e.colorError, inputColor: e.colorErrorText, affixColor: e.colorError - })), bk(e, { + })), xk(e, { status: "warning", bg: e.colorWarningBg, hoverBg: e.colorWarningBgHover, @@ -23491,14 +23532,14 @@ const DI = (e) => { inputColor: e.colorWarningText, affixColor: e.colorWarning })), t) -}), wk = (e, t) => ({ +}), Ek = (e, t) => ({ [`&${e.componentCls}-group-wrapper-status-${t.status}`]: { [`${e.componentCls}-group-addon`]: { background: t.addonBg, color: t.addonColor } } -}), dme = (e) => ({ +}), wme = (e) => ({ "&-filled": Object.assign(Object.assign(Object.assign({ [`${e.componentCls}-group`]: { "&-addon": { @@ -23506,18 +23547,18 @@ const DI = (e) => { }, [`${e.componentCls}-filled:not(:focus):not(:focus-within)`]: { "&:not(:first-child)": { - borderInlineStart: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}` + borderInlineStart: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}` }, "&:not(:last-child)": { - borderInlineEnd: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}` + borderInlineEnd: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}` } } } - }, wk(e, { + }, Ek(e, { status: "error", addonBg: e.colorErrorBg, addonColor: e.colorErrorText - })), wk(e, { + })), Ek(e, { status: "warning", addonBg: e.colorWarningBg, addonColor: e.colorWarningText @@ -23529,19 +23570,19 @@ const DI = (e) => { color: e.colorTextDisabled }, "&-addon:first-child": { - borderInlineStart: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, - borderTop: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, - borderBottom: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}` + borderInlineStart: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, + borderTop: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, + borderBottom: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}` }, "&-addon:last-child": { - borderInlineEnd: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, - borderTop: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, - borderBottom: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}` + borderInlineEnd: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, + borderTop: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, + borderBottom: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}` } } } }) -}), hme = (e) => ({ +}), xme = (e) => ({ // Firefox "&::-moz-placeholder": { opacity: 1 @@ -23554,7 +23595,7 @@ const DI = (e) => { "&:placeholder-shown": { textOverflow: "ellipsis" } -}), h7 = (e) => { +}), g7 = (e) => { const { paddingBlockLG: t, lineHeightLG: r, @@ -23562,27 +23603,27 @@ const DI = (e) => { paddingInlineLG: i } = e; return { - padding: `${ee(t)} ${ee(i)}`, + padding: `${te(t)} ${te(i)}`, fontSize: e.inputFontSizeLG, lineHeight: r, borderRadius: n }; -}, AI = (e) => ({ - padding: `${ee(e.paddingBlockSM)} ${ee(e.paddingInlineSM)}`, +}, AD = (e) => ({ + padding: `${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`, fontSize: e.inputFontSizeSM, borderRadius: e.borderRadiusSM -}), OI = (e) => Object.assign(Object.assign({ +}), OD = (e) => Object.assign(Object.assign({ position: "relative", display: "inline-block", width: "100%", minWidth: 0, - padding: `${ee(e.paddingBlock)} ${ee(e.paddingInline)}`, + padding: `${te(e.paddingBlock)} ${te(e.paddingInline)}`, color: e.colorText, fontSize: e.inputFontSize, lineHeight: e.lineHeight, borderRadius: e.borderRadius, transition: `all ${e.motionDurationMid}` -}, hme(e.colorTextPlaceholder)), { +}, xme(e.colorTextPlaceholder)), { // Reset height for `textarea`s "textarea&": { maxWidth: "100%", @@ -23595,13 +23636,13 @@ const DI = (e) => { resize: "vertical" }, // Size - "&-lg": Object.assign({}, h7(e)), - "&-sm": Object.assign({}, AI(e)), + "&-lg": Object.assign({}, g7(e)), + "&-sm": Object.assign({}, AD(e)), // RTL "&-rtl, &-textarea-rtl": { direction: "rtl" } -}), fme = (e) => { +}), Eme = (e) => { const { componentCls: t, antCls: r @@ -23620,8 +23661,8 @@ const DI = (e) => { } }, // Sizing options - [`&-lg ${t}, &-lg > ${t}-group-addon`]: Object.assign({}, h7(e)), - [`&-sm ${t}, &-sm > ${t}-group-addon`]: Object.assign({}, AI(e)), + [`&-lg ${t}, &-lg > ${t}-group-addon`]: Object.assign({}, g7(e)), + [`&-sm ${t}, &-sm > ${t}-group-addon`]: Object.assign({}, AD(e)), // Fix https://github.com/ant-design/ant-design/issues/5754 [`&-lg ${r}-select-single ${r}-select-selector`]: { height: e.controlHeightLG @@ -23650,7 +23691,7 @@ const DI = (e) => { }, "&-addon": { position: "relative", - padding: `0 ${ee(e.paddingInline)}`, + padding: `0 ${te(e.paddingInline)}`, color: e.colorText, fontWeight: "normal", fontSize: e.inputFontSize, @@ -23660,11 +23701,11 @@ const DI = (e) => { lineHeight: 1, // Reset Select's style in addon [`${r}-select`]: { - margin: `${ee(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ee(e.calc(e.paddingInline).mul(-1).equal())}`, + margin: `${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(e.calc(e.paddingInline).mul(-1).equal())}`, [`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]: { [`${r}-select-selector`]: { backgroundColor: "inherit", - border: `${ee(e.lineWidth)} ${e.lineType} transparent`, + border: `${te(e.lineWidth)} ${e.lineType} transparent`, boxShadow: "none" } }, @@ -23676,7 +23717,7 @@ const DI = (e) => { }, // https://github.com/ant-design/ant-design/issues/31333 [`${r}-cascader-picker`]: { - margin: `-9px ${ee(e.calc(e.paddingInline).mul(-1).equal())}`, + margin: `-9px ${te(e.calc(e.paddingInline).mul(-1).equal())}`, backgroundColor: "transparent", [`${r}-cascader-input`]: { textAlign: "start", @@ -23748,7 +23789,7 @@ const DI = (e) => { }, [`&${t}-group-compact`]: Object.assign(Object.assign({ display: "block" - }, Fl()), { + }, Nl()), { [`${t}-group-addon, ${t}-group-wrap, > ${t}`]: { "&:not(:first-child):not(:last-child)": { borderInlineEndWidth: e.lineWidth, @@ -23838,7 +23879,7 @@ const DI = (e) => { } }) }; -}, pme = (e) => { +}, Rme = (e) => { const { componentCls: t, controlHeightSM: r, @@ -23846,7 +23887,7 @@ const DI = (e) => { calc: i } = e, a = i(r).sub(i(n).mul(2)).sub(16).div(2).equal(); return { - [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, nn(e)), OI(e)), sme(e)), ume(e)), cme(e)), { + [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, nn(e)), OD(e)), yme(e)), bme(e)), Sme(e)), { '&[type="color"]': { height: e.controlHeight, [`&${t}-lg`]: { @@ -23863,7 +23904,7 @@ const DI = (e) => { } }) }; -}, gme = (e) => { +}, Pme = (e) => { const { componentCls: t } = e; @@ -23888,11 +23929,11 @@ const DI = (e) => { visibility: "hidden" }, "&-has-suffix": { - margin: `0 ${ee(e.inputAffixPadding)}` + margin: `0 ${te(e.inputAffixPadding)}` } } }; -}, vme = (e) => { +}, Tme = (e) => { const { componentCls: t, inputAffixPadding: r, @@ -23903,7 +23944,7 @@ const DI = (e) => { iconCls: s } = e; return { - [`${t}-affix-wrapper`]: Object.assign(Object.assign(Object.assign(Object.assign({}, OI(e)), { + [`${t}-affix-wrapper`]: Object.assign(Object.assign(Object.assign(Object.assign({}, OD(e)), { display: "inline-flex", [`&:not(${t}-disabled):hover`]: { zIndex: 1, @@ -23959,7 +24000,7 @@ const DI = (e) => { marginInlineStart: r } } - }), gme(e)), { + }), Pme(e)), { // password [`${s}${t}-password-icon`]: { color: o, @@ -23971,14 +24012,14 @@ const DI = (e) => { } }) }; -}, mme = (e) => { +}, _me = (e) => { const { componentCls: t, borderRadiusLG: r, borderRadiusSM: n } = e; return { - [`${t}-group`]: Object.assign(Object.assign(Object.assign({}, nn(e)), fme(e)), { + [`${t}-group`]: Object.assign(Object.assign(Object.assign({}, nn(e)), Eme(e)), { "&-rtl": { direction: "rtl" }, @@ -24002,7 +24043,7 @@ const DI = (e) => { borderRadius: n } } - }, lme(e)), dme(e)), { + }, Cme(e)), wme(e)), { // '&-disabled': { // [`${componentCls}-group-addon`]: { // ...genDisabledStyle(token), @@ -24038,7 +24079,7 @@ const DI = (e) => { }) }) }; -}, yme = (e) => { +}, Mme = (e) => { const { componentCls: t, antCls: r @@ -24137,7 +24178,7 @@ const DI = (e) => { } } }; -}, Cme = (e) => { +}, Dme = (e) => { const { componentCls: t, paddingLG: r @@ -24203,7 +24244,7 @@ const DI = (e) => { } } }; -}, Sme = (e) => { +}, Ime = (e) => { const { componentCls: t } = e; @@ -24214,37 +24255,37 @@ const DI = (e) => { } } }; -}, LI = Ur("Input", (e) => { - const t = fr(e, MI(e)); +}, LD = Kr("Input", (e) => { + const t = fr(e, MD(e)); return [ - pme(t), - Cme(t), - vme(t), - mme(t), - yme(t), - Sme(t), + Rme(t), + Dme(t), + Tme(t), + _me(t), + Mme(t), + Ime(t), // ===================================================== // == Space Compact == // ===================================================== - QD(t) + Q2(t) ]; -}, DI, { +}, DD, { resetFont: !1 }); -var bme = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, wme = function(t, r) { +var Ame = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, Ome = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: bme + icon: Ame })); -}, f7 = /* @__PURE__ */ S.forwardRef(wme); -process.env.NODE_ENV !== "production" && (f7.displayName = "PlusOutlined"); -const ow = /* @__PURE__ */ Xs(null); -var xme = function(t) { - var r = t.activeTabOffset, n = t.horizontal, i = t.rtl, o = t.indicator, a = o === void 0 ? {} : o, s = a.size, l = a.align, c = l === void 0 ? "center" : l, u = Le(), d = ce(u, 2), h = d[0], f = d[1], p = ve(), g = k.useCallback(function(m) { +}, v7 = /* @__PURE__ */ S.forwardRef(Ome); +process.env.NODE_ENV !== "production" && (v7.displayName = "PlusOutlined"); +const sw = /* @__PURE__ */ Xs(null); +var Lme = function(t) { + var r = t.activeTabOffset, n = t.horizontal, i = t.rtl, o = t.indicator, a = o === void 0 ? {} : o, s = a.size, l = a.align, c = l === void 0 ? "center" : l, u = Ie(), d = ce(u, 2), h = d[0], f = d[1], p = ve(), g = k.useCallback(function(m) { return typeof s == "function" ? s(m) : typeof s == "number" ? s : m; }, [s]); function v() { - Nr.cancel(p.current); + kr.cancel(p.current); } return Bt(function() { var m = {}; @@ -24255,25 +24296,25 @@ var xme = function(t) { c === "start" && (m[y] = r[y]), c === "center" && (m[y] = r[y] + r.width / 2, m.transform = i ? "translateX(50%)" : "translateX(-50%)"), c === "end" && (m[y] = r[y] + r.width, m.transform = "translateX(-100%)"); } else m.height = g(r.height), c === "start" && (m.top = r.top), c === "center" && (m.top = r.top + r.height / 2, m.transform = "translateY(-50%)"), c === "end" && (m.top = r.top + r.height, m.transform = "translateY(-100%)"); - return v(), p.current = Nr(function() { + return v(), p.current = kr(function() { f(m); }), v; }, [r, n, i, c, g]), { style: h }; -}, xk = { +}, Rk = { width: 0, height: 0, left: 0, top: 0 }; -function Eme(e, t, r) { - return Ct(function() { - for (var n, i = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || xk, a = o.left + o.width, s = 0; s < e.length; s += 1) { +function Fme(e, t, r) { + return St(function() { + for (var n, i = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || Rk, a = o.left + o.width, s = 0; s < e.length; s += 1) { var l = e[s].key, c = t.get(l); if (!c) { var u; - c = t.get((u = e[s - 1]) === null || u === void 0 ? void 0 : u.key) || xk; + c = t.get((u = e[s - 1]) === null || u === void 0 ? void 0 : u.key) || Rk; } var d = i.get(l) || Z({}, c); d.right = a - d.left - d.width, i.set(l, d); @@ -24283,7 +24324,7 @@ function Eme(e, t, r) { return n.key; }).join("_"), t, r]); } -function Ek(e, t) { +function Pk(e, t) { var r = S.useRef(e), n = S.useState({}), i = ce(n, 2), o = i[1]; function a(s) { var l = typeof s == "function" ? s(r.current) : s; @@ -24291,9 +24332,9 @@ function Ek(e, t) { } return [r.current, a]; } -var Rme = 0.1, Rk = 0.01, gC = 20, Pk = Math.pow(0.995, gC); -function Pme(e, t) { - var r = Le(), n = ce(r, 2), i = n[0], o = n[1], a = Le(0), s = ce(a, 2), l = s[0], c = s[1], u = Le(0), d = ce(u, 2), h = d[0], f = d[1], p = Le(), g = ce(p, 2), v = g[0], m = g[1], y = ve(); +var Nme = 0.1, Tk = 0.01, yC = 20, _k = Math.pow(0.995, yC); +function kme(e, t) { + var r = Ie(), n = ce(r, 2), i = n[0], o = n[1], a = Ie(0), s = ce(a, 2), l = s[0], c = s[1], u = Ie(0), d = ce(u, 2), h = d[0], f = d[1], p = Ie(), g = ce(p, 2), v = g[0], m = g[1], y = ve(); function C(P) { var T = P.touches[0], _ = T.screenX, D = T.screenY; o({ @@ -24321,15 +24362,15 @@ function Pme(e, t) { function w() { if (i && (o(null), m(null), v)) { var P = v.x / h, T = v.y / h, _ = Math.abs(P), D = Math.abs(T); - if (Math.max(_, D) < Rme) return; + if (Math.max(_, D) < Nme) return; var A = P, M = T; y.current = window.setInterval(function() { - if (Math.abs(A) < Rk && Math.abs(M) < Rk) { + if (Math.abs(A) < Tk && Math.abs(M) < Tk) { window.clearInterval(y.current); return; } - A *= Pk, M *= Pk, t(A * gC, M * gC); - }, gC); + A *= _k, M *= _k, t(A * yC, M * yC); + }, yC); } } var x = ve(); @@ -24369,8 +24410,8 @@ function Pme(e, t) { }; }, []); } -function p7(e) { - var t = Le(0), r = ce(t, 2), n = r[0], i = r[1], o = ve(0), a = ve(); +function m7(e) { + var t = Ie(0), r = ce(t, 2), n = r[0], i = r[1], o = ve(0), a = ve(); return a.current = e, zP(function() { var s; (s = a.current) === null || s === void 0 || s.call(a); @@ -24378,8 +24419,8 @@ function p7(e) { o.current === n && (o.current += 1, i(o.current)); }; } -function Tme(e) { - var t = ve([]), r = Le({}), n = ce(r, 2), i = n[1], o = ve(typeof e == "function" ? e() : e), a = p7(function() { +function $me(e) { + var t = ve([]), r = Ie({}), n = ce(r, 2), i = n[1], o = ve(typeof e == "function" ? e() : e), a = m7(function() { var l = o.current; t.current.forEach(function(c) { l = c(l); @@ -24390,27 +24431,27 @@ function Tme(e) { } return [o.current, s]; } -var Tk = { +var Mk = { width: 0, height: 0, left: 0, top: 0, right: 0 }; -function _me(e, t, r, n, i, o, a) { +function Bme(e, t, r, n, i, o, a) { var s = a.tabs, l = a.tabPosition, c = a.rtl, u, d, h; - return ["top", "bottom"].includes(l) ? (u = "width", d = c ? "right" : "left", h = Math.abs(r)) : (u = "height", d = "top", h = -r), Ct(function() { + return ["top", "bottom"].includes(l) ? (u = "width", d = c ? "right" : "left", h = Math.abs(r)) : (u = "height", d = "top", h = -r), St(function() { if (!s.length) return [0, 0]; for (var f = s.length, p = f, g = 0; g < f; g += 1) { - var v = e.get(s[g].key) || Tk; + var v = e.get(s[g].key) || Mk; if (v[d] + v[u] > h + t) { p = g - 1; break; } } for (var m = 0, y = f - 1; y >= 0; y -= 1) { - var C = e.get(s[y].key) || Tk; + var C = e.get(s[y].key) || Mk; if (C[d] < h) { m = y + 1; break; @@ -24421,17 +24462,17 @@ function _me(e, t, r, n, i, o, a) { return f.key; }).join("_"), c]); } -function _k(e) { +function Dk(e) { var t; return e instanceof Map ? (t = {}, e.forEach(function(r, n) { t[n] = r; })) : t = e, JSON.stringify(t); } -var Mme = "TABS_DQ"; -function g7(e) { - return String(e).replace(/"/g, Mme); +var Vme = "TABS_DQ"; +function y7(e) { + return String(e).replace(/"/g, Vme); } -function v7(e, t, r, n) { +function C7(e, t, r, n) { return ( // Only editable tabs can be removed !(!r || // Tabs cannot be removed when disabled @@ -24440,7 +24481,7 @@ function v7(e, t, r, n) { e === void 0 && (t === !1 || t === null)) ); } -var m7 = /* @__PURE__ */ S.forwardRef(function(e, t) { +var S7 = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.prefixCls, n = e.editable, i = e.locale, o = e.style; return !n || n.showAdd === !1 ? null : /* @__PURE__ */ S.createElement("button", { ref: t, @@ -24465,15 +24506,15 @@ var m7 = /* @__PURE__ */ S.forwardRef(function(e, t) { }, o) : null; }); process.env.NODE_ENV !== "production" && (FT.displayName = "ExtraContent"); -var Dme = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r = e.prefixCls, n = e.id, i = e.tabs, o = e.locale, a = e.mobile, s = e.more, l = s === void 0 ? {} : s, c = e.style, u = e.className, d = e.editable, h = e.tabBarGutter, f = e.rtl, p = e.removeAriaLabel, g = e.onTabClick, v = e.getPopupContainer, m = e.popupClassName, y = Le(!1), C = ce(y, 2), b = C[0], w = C[1], x = Le(null), E = ce(x, 2), R = E[0], P = E[1], T = l.icon, _ = T === void 0 ? "More" : T, D = "".concat(n, "-more-popup"), A = "".concat(r, "-dropdown"), M = R !== null ? "".concat(D, "-").concat(R) : null, O = o == null ? void 0 : o.dropdownAriaLabel; +var Hme = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r = e.prefixCls, n = e.id, i = e.tabs, o = e.locale, a = e.mobile, s = e.more, l = s === void 0 ? {} : s, c = e.style, u = e.className, d = e.editable, h = e.tabBarGutter, f = e.rtl, p = e.removeAriaLabel, g = e.onTabClick, v = e.getPopupContainer, m = e.popupClassName, y = Ie(!1), C = ce(y, 2), b = C[0], w = C[1], x = Ie(null), E = ce(x, 2), R = E[0], P = E[1], T = l.icon, _ = T === void 0 ? "More" : T, D = "".concat(n, "-more-popup"), A = "".concat(r, "-dropdown"), M = R !== null ? "".concat(D, "-").concat(R) : null, O = o == null ? void 0 : o.dropdownAriaLabel; function L(B, W) { B.preventDefault(), B.stopPropagation(), d.onEdit("remove", { key: W, event: B }); } - var N = /* @__PURE__ */ S.createElement(np, { + var N = /* @__PURE__ */ S.createElement(op, { onClick: function(W) { var j = W.key, X = W.domEvent; g(j, X), w(!1); @@ -24486,14 +24527,14 @@ var Dme = /* @__PURE__ */ S.forwardRef(function(e, t) { selectedKeys: [R], "aria-label": O !== void 0 ? O : "expanded dropdown" }, i.map(function(B) { - var W = B.closable, j = B.disabled, X = B.closeIcon, q = B.key, J = B.label, te = v7(W, X, d, j); - return /* @__PURE__ */ S.createElement(Dm, { + var W = B.closable, j = B.disabled, X = B.closeIcon, q = B.key, J = B.label, re = C7(W, X, d, j); + return /* @__PURE__ */ S.createElement(Am, { key: q, id: "".concat(D, "-").concat(q), role: "option", "aria-controls": n && "".concat(n, "-panel-").concat(q), disabled: j - }, /* @__PURE__ */ S.createElement("span", null, J), te && /* @__PURE__ */ S.createElement("button", { + }, /* @__PURE__ */ S.createElement("span", null, J), re && /* @__PURE__ */ S.createElement("button", { type: "button", "aria-label": p || "remove", tabIndex: 0, @@ -24504,10 +24545,10 @@ var Dme = /* @__PURE__ */ S.forwardRef(function(e, t) { }, X || d.removeIcon || "×")); })); function F(B) { - for (var W = i.filter(function(te) { - return !te.disabled; - }), j = W.findIndex(function(te) { - return te.key === R; + for (var W = i.filter(function(re) { + return !re.disabled; + }), j = W.findIndex(function(re) { + return re.key === R; }) || 0, X = W.length, q = 0; q < X; q += 1) { j = (j + B + X) % X; var J = W[j]; @@ -24520,21 +24561,21 @@ var Dme = /* @__PURE__ */ S.forwardRef(function(e, t) { function $(B) { var W = B.which; if (!b) { - [Oe.DOWN, Oe.SPACE, Oe.ENTER].includes(W) && (w(!0), B.preventDefault()); + [Le.DOWN, Le.SPACE, Le.ENTER].includes(W) && (w(!0), B.preventDefault()); return; } switch (W) { - case Oe.UP: + case Le.UP: F(-1), B.preventDefault(); break; - case Oe.DOWN: + case Le.DOWN: F(1), B.preventDefault(); break; - case Oe.ESC: + case Le.ESC: w(!1); break; - case Oe.SPACE: - case Oe.ENTER: + case Le.SPACE: + case Le.ENTER: R !== null && g(R, B); break; } @@ -24547,7 +24588,7 @@ var Dme = /* @__PURE__ */ S.forwardRef(function(e, t) { }, [b]); var I = U({}, f ? "marginRight" : "marginLeft", h); i.length || (I.visibility = "hidden", I.order = 1); - var V = ie(U({}, "".concat(A, "-rtl"), f)), H = a ? null : /* @__PURE__ */ S.createElement(H9, Te({ + var V = ie(U({}, "".concat(A, "-rtl"), f)), H = a ? null : /* @__PURE__ */ S.createElement(W9, Te({ prefixCls: A, overlay: N, visible: i.length ? b : !1, @@ -24572,21 +24613,21 @@ var Dme = /* @__PURE__ */ S.forwardRef(function(e, t) { className: ie("".concat(r, "-nav-operations"), u), style: c, ref: t - }, H, /* @__PURE__ */ S.createElement(m7, { + }, H, /* @__PURE__ */ S.createElement(S7, { prefixCls: r, locale: o, editable: d })); }); -const Ime = /* @__PURE__ */ S.memo(Dme, function(e, t) { +const zme = /* @__PURE__ */ S.memo(Hme, function(e, t) { return ( // https://github.com/ant-design/ant-design/issues/32544 // We'd better remove syntactic sugar in `rc-menu` since this has perf issue t.tabMoving ); }); -var Ame = function(t) { - var r = t.prefixCls, n = t.id, i = t.active, o = t.tab, a = o.key, s = o.label, l = o.disabled, c = o.closeIcon, u = o.icon, d = t.closable, h = t.renderWrapper, f = t.removeAriaLabel, p = t.editable, g = t.onClick, v = t.onFocus, m = t.style, y = "".concat(r, "-tab"), C = v7(d, c, p, l); +var Gme = function(t) { + var r = t.prefixCls, n = t.id, i = t.active, o = t.tab, a = o.key, s = o.label, l = o.disabled, c = o.closeIcon, u = o.icon, d = t.closable, h = t.renderWrapper, f = t.removeAriaLabel, p = t.editable, g = t.onClick, v = t.onFocus, m = t.style, y = "".concat(r, "-tab"), C = C7(d, c, p, l); function b(R) { l || g(R); } @@ -24600,7 +24641,7 @@ var Ame = function(t) { return u && typeof s == "string" ? /* @__PURE__ */ S.createElement("span", null, s) : s; }, [s, u]), E = /* @__PURE__ */ S.createElement("div", { key: a, - "data-node-key": g7(a), + "data-node-key": y7(a), className: ie(y, U(U(U({}, "".concat(y, "-with-remove"), C), "".concat(y, "-active"), i), "".concat(y, "-disabled"), l)), style: m, onClick: b @@ -24616,7 +24657,7 @@ var Ame = function(t) { P.stopPropagation(), b(P); }, onKeyDown: function(P) { - [Oe.SPACE, Oe.ENTER].includes(P.which) && (P.preventDefault(), b(P)); + [Le.SPACE, Le.ENTER].includes(P.which) && (P.preventDefault(), b(P)); }, onFocus: v }, u && /* @__PURE__ */ S.createElement("span", { @@ -24631,7 +24672,7 @@ var Ame = function(t) { } }, c || p.removeIcon || "×")); return h ? h(E) : E; -}, Ome = function(t, r) { +}, Wme = function(t, r) { var n = t.offsetWidth, i = t.offsetHeight, o = t.offsetTop, a = t.offsetLeft, s = t.getBoundingClientRect(), l = s.width, c = s.height, u = s.x, d = s.y; return Math.abs(l - n) < 1 ? [l, c, u - r.x, d - r.y] : [n, i, a, o]; }, gh = function(t) { @@ -24642,34 +24683,34 @@ var Ame = function(t) { return [l, c]; } return [i, a]; -}, Oy = function(t, r) { +}, Ny = function(t, r) { return t[r ? 0 : 1]; -}, Mk = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r = e.className, n = e.style, i = e.id, o = e.animated, a = e.activeKey, s = e.rtl, l = e.extra, c = e.editable, u = e.locale, d = e.tabPosition, h = e.tabBarGutter, f = e.children, p = e.onTabClick, g = e.onTabScroll, v = e.indicator, m = S.useContext(ow), y = m.prefixCls, C = m.tabs, b = ve(null), w = ve(null), x = ve(null), E = ve(null), R = ve(null), P = ve(null), T = ve(null), _ = d === "top" || d === "bottom", D = Ek(0, function(ge, me) { +}, Ik = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r = e.className, n = e.style, i = e.id, o = e.animated, a = e.activeKey, s = e.rtl, l = e.extra, c = e.editable, u = e.locale, d = e.tabPosition, h = e.tabBarGutter, f = e.children, p = e.onTabClick, g = e.onTabScroll, v = e.indicator, m = S.useContext(sw), y = m.prefixCls, C = m.tabs, b = ve(null), w = ve(null), x = ve(null), E = ve(null), R = ve(null), P = ve(null), T = ve(null), _ = d === "top" || d === "bottom", D = Pk(0, function(ge, me) { _ && g && g({ direction: ge > me ? "left" : "right" }); - }), A = ce(D, 2), M = A[0], O = A[1], L = Ek(0, function(ge, me) { + }), A = ce(D, 2), M = A[0], O = A[1], L = Pk(0, function(ge, me) { !_ && g && g({ direction: ge > me ? "top" : "bottom" }); - }), N = ce(L, 2), F = N[0], $ = N[1], I = Le([0, 0]), V = ce(I, 2), H = V[0], B = V[1], W = Le([0, 0]), j = ce(W, 2), X = j[0], q = j[1], J = Le([0, 0]), te = ce(J, 2), Q = te[0], Y = te[1], K = Le([0, 0]), ae = ce(K, 2), G = ae[0], re = ae[1], le = Tme(/* @__PURE__ */ new Map()), ue = ce(le, 2), he = ue[0], fe = ue[1], de = Eme(C, he, X[0]), pe = Oy(H, _), _e = Oy(X, _), be = Oy(Q, _), Me = Oy(G, _), Ve = pe < _e + be, oe = Ve ? pe - Me : pe - be, ye = "".concat(y, "-nav-operations-hidden"), Ne = 0, ke = 0; + }), N = ce(L, 2), F = N[0], $ = N[1], I = Ie([0, 0]), V = ce(I, 2), H = V[0], B = V[1], W = Ie([0, 0]), j = ce(W, 2), X = j[0], q = j[1], J = Ie([0, 0]), re = ce(J, 2), Q = re[0], Y = re[1], K = Ie([0, 0]), ae = ce(K, 2), G = ae[0], ne = ae[1], le = $me(/* @__PURE__ */ new Map()), ue = ce(le, 2), he = ue[0], fe = ue[1], de = Fme(C, he, X[0]), pe = Ny(H, _), _e = Ny(X, _), be = Ny(Q, _), Me = Ny(G, _), Ve = pe < _e + be, oe = Ve ? pe - Me : pe - be, ye = "".concat(y, "-nav-operations-hidden"), Ne = 0, ke = 0; _ && s ? (Ne = 0, ke = Math.max(0, _e - oe)) : (Ne = Math.min(0, oe - _e), ke = 0); function we(ge) { return ge < Ne ? Ne : ge > ke ? ke : ge; } - var Ce = ve(null), xe = Le(), ze = ce(xe, 2), je = ze[0], st = ze[1]; + var Ce = ve(null), xe = Ie(), ze = ce(xe, 2), je = ze[0], st = ze[1]; function Xe() { st(Date.now()); } function Ue() { Ce.current && clearTimeout(Ce.current); } - Pme(E, function(ge, me) { + kme(E, function(ge, me) { function He(ct, it) { ct(function(dt) { - var bt = we(dt + it); - return bt; + var wt = we(dt + it); + return wt; }); } return Ve ? (_ ? He(O, ge) : He($, me), Ue(), Xe(), !0) : !1; @@ -24678,7 +24719,7 @@ var Ame = function(t) { st(0); }, 100)), Ue; }, [je]); - var Ae = _me( + var Oe = Bme( de, // Container oe, @@ -24693,7 +24734,7 @@ var Ame = function(t) { Z(Z({}, e), {}, { tabs: C }) - ), Ke = ce(Ae, 2), ht = Ke[0], Et = Ke[1], hr = Kr(function() { + ), Ke = ce(Oe, 2), ht = Ke[0], Rt = Ke[1], hr = Yr(function() { var ge = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : a, me = de.get(ge) || { width: 0, height: 0, @@ -24712,7 +24753,7 @@ var Ame = function(t) { d === "top" || d === "bottom" ? At[s ? "marginRight" : "marginLeft"] = h : At.marginTop = h; var Lt = C.map(function(ge, me) { var He = ge.key; - return /* @__PURE__ */ S.createElement(Ame, { + return /* @__PURE__ */ S.createElement(Gme, { id: i, prefixCls: y, key: He, @@ -24734,10 +24775,10 @@ var Ame = function(t) { return fe(function() { var me, He = /* @__PURE__ */ new Map(), ct = (me = R.current) === null || me === void 0 ? void 0 : me.getBoundingClientRect(); return C.forEach(function(it) { - var dt, bt = it.key, qe = (dt = R.current) === null || dt === void 0 ? void 0 : dt.querySelector('[data-node-key="'.concat(g7(bt), '"]')); + var dt, wt = it.key, qe = (dt = R.current) === null || dt === void 0 ? void 0 : dt.querySelector('[data-node-key="'.concat(y7(wt), '"]')); if (qe) { - var nt = Ome(qe, ct), ut = ce(nt, 4), tr = ut[0], Or = ut[1], Br = ut[2], xr = ut[3]; - He.set(bt, { + var nt = Wme(qe, ct), ut = ce(nt, 4), tr = ut[0], Or = ut[1], Br = ut[2], xr = ut[3]; + He.set(wt, { width: tr, height: Or, left: Br, @@ -24752,28 +24793,28 @@ var Ame = function(t) { }, [C.map(function(ge) { return ge.key; }).join("_")]); - var Mt = p7(function() { + var Mt = m7(function() { var ge = gh(b), me = gh(w), He = gh(x); B([ge[0] - me[0] - He[0], ge[1] - me[1] - He[1]]); var ct = gh(T); Y(ct); var it = gh(P); - re(it); + ne(it); var dt = gh(R); q([dt[0] - ct[0], dt[1] - ct[1]]), Dt(); - }), mt = C.slice(0, ht), Qe = C.slice(Et + 1), Rt = [].concat($e(mt), $e(Qe)), jt = de.get(a), We = xme({ - activeTabOffset: jt, + }), yt = C.slice(0, ht), Qe = C.slice(Rt + 1), Pt = [].concat($e(yt), $e(Qe)), Ut = de.get(a), We = Lme({ + activeTabOffset: Ut, horizontal: _, indicator: v, rtl: s }), et = We.style; Bt(function() { hr(); - }, [a, Ne, ke, _k(jt), _k(de), _]), Bt(function() { + }, [a, Ne, ke, Dk(Ut), Dk(de), _]), Bt(function() { Mt(); }, [s]); - var rt = !!Rt.length, tt = "".concat(y, "-nav-wrap"), yt, Gt, Mr, se; - return _ ? s ? (Gt = M > 0, yt = M !== ke) : (yt = M < 0, Gt = M !== Ne) : (Mr = F < 0, se = F !== Ne), /* @__PURE__ */ S.createElement(Li, { + var rt = !!Pt.length, tt = "".concat(y, "-nav-wrap"), Ct, Gt, Mr, se; + return _ ? s ? (Gt = M > 0, Ct = M !== ke) : (Ct = M < 0, Gt = M !== Ne) : (Mr = F < 0, se = F !== Ne), /* @__PURE__ */ S.createElement(Li, { onResize: Mt }, /* @__PURE__ */ S.createElement("div", { ref: Xc(t, b), @@ -24791,7 +24832,7 @@ var Ame = function(t) { }), /* @__PURE__ */ S.createElement(Li, { onResize: Mt }, /* @__PURE__ */ S.createElement("div", { - className: ie(tt, U(U(U(U({}, "".concat(tt, "-ping-left"), yt), "".concat(tt, "-ping-right"), Gt), "".concat(tt, "-ping-top"), Mr), "".concat(tt, "-ping-bottom"), se)), + className: ie(tt, U(U(U(U({}, "".concat(tt, "-ping-left"), Ct), "".concat(tt, "-ping-right"), Gt), "".concat(tt, "-ping-top"), Mr), "".concat(tt, "-ping-bottom"), se)), ref: E }, /* @__PURE__ */ S.createElement(Li, { onResize: Mt @@ -24802,7 +24843,7 @@ var Ame = function(t) { transform: "translate(".concat(M, "px, ").concat(F, "px)"), transition: je ? "none" : void 0 } - }, Lt, /* @__PURE__ */ S.createElement(m7, { + }, Lt, /* @__PURE__ */ S.createElement(S7, { ref: T, prefixCls: y, locale: u, @@ -24813,11 +24854,11 @@ var Ame = function(t) { }), /* @__PURE__ */ S.createElement("div", { className: ie("".concat(y, "-ink-bar"), U({}, "".concat(y, "-ink-bar-animated"), o.inkBar)), style: et - }))))), /* @__PURE__ */ S.createElement(Ime, Te({}, e, { + }))))), /* @__PURE__ */ S.createElement(zme, Te({}, e, { removeAriaLabel: u == null ? void 0 : u.removeAriaLabel, ref: P, prefixCls: y, - tabs: Rt, + tabs: Pt, className: !rt && ye, tabMoving: !!je })), /* @__PURE__ */ S.createElement(FT, { @@ -24826,7 +24867,7 @@ var Ame = function(t) { extra: l, prefixCls: y }))); -}), FI = /* @__PURE__ */ S.forwardRef(function(e, t) { +}), FD = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.prefixCls, n = e.className, i = e.style, o = e.id, a = e.active, s = e.tabKey, l = e.children; return /* @__PURE__ */ S.createElement("div", { id: o && "".concat(o, "-panel-").concat(s), @@ -24839,34 +24880,34 @@ var Ame = function(t) { ref: t }, l); }); -process.env.NODE_ENV !== "production" && (FI.displayName = "TabPane"); -var Lme = ["renderTabBar"], Fme = ["label", "key"], y7 = function(t) { - var r = t.renderTabBar, n = Nt(t, Lme), i = S.useContext(ow), o = i.tabs; +process.env.NODE_ENV !== "production" && (FD.displayName = "TabPane"); +var jme = ["renderTabBar"], Ume = ["label", "key"], b7 = function(t) { + var r = t.renderTabBar, n = Nt(t, jme), i = S.useContext(sw), o = i.tabs; if (r) { var a = Z(Z({}, n), {}, { // Legacy support. We do not use this actually panes: o.map(function(s) { - var l = s.label, c = s.key, u = Nt(s, Fme); - return /* @__PURE__ */ S.createElement(FI, Te({ + var l = s.label, c = s.key, u = Nt(s, Ume); + return /* @__PURE__ */ S.createElement(FD, Te({ tab: l, key: c, tabKey: c }, u)); }) }); - return r(a, Mk); + return r(a, Ik); } - return /* @__PURE__ */ S.createElement(Mk, n); + return /* @__PURE__ */ S.createElement(Ik, n); }; -process.env.NODE_ENV !== "production" && (y7.displayName = "TabNavListWrapper"); -var Nme = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], kme = function(t) { - var r = t.id, n = t.activeKey, i = t.animated, o = t.tabPosition, a = t.destroyInactiveTabPane, s = S.useContext(ow), l = s.prefixCls, c = s.tabs, u = i.tabPane, d = "".concat(l, "-tabpane"); +process.env.NODE_ENV !== "production" && (b7.displayName = "TabNavListWrapper"); +var Kme = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Yme = function(t) { + var r = t.id, n = t.activeKey, i = t.animated, o = t.tabPosition, a = t.destroyInactiveTabPane, s = S.useContext(sw), l = s.prefixCls, c = s.tabs, u = i.tabPane, d = "".concat(l, "-tabpane"); return /* @__PURE__ */ S.createElement("div", { className: ie("".concat(l, "-content-holder")) }, /* @__PURE__ */ S.createElement("div", { className: ie("".concat(l, "-content"), "".concat(l, "-content-").concat(o), U({}, "".concat(l, "-content-animated"), u)) }, c.map(function(h) { - var f = h.key, p = h.forceRender, g = h.style, v = h.className, m = h.destroyInactiveTabPane, y = Nt(h, Nme), C = f === n; + var f = h.key, p = h.forceRender, g = h.style, v = h.className, m = h.destroyInactiveTabPane, y = Nt(h, Kme), C = f === n; return /* @__PURE__ */ S.createElement(us, Te({ key: f, visible: C, @@ -24875,7 +24916,7 @@ var Nme = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"] leavedClassName: "".concat(d, "-hidden") }, i.tabPaneMotion), function(b, w) { var x = b.style, E = b.className; - return /* @__PURE__ */ S.createElement(FI, Te({}, y, { + return /* @__PURE__ */ S.createElement(FD, Te({}, y, { prefixCls: d, id: r, tabKey: f, @@ -24888,7 +24929,7 @@ var Nme = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"] }); }))); }; -function $me() { +function qme() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { inkBar: !0, tabPane: !1 @@ -24903,14 +24944,14 @@ function $me() { inkBar: !0 }, pt(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && Tt(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t; } -var Bme = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Dk = 0, C7 = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r = e.id, n = e.prefixCls, i = n === void 0 ? "rc-tabs" : n, o = e.className, a = e.items, s = e.direction, l = e.activeKey, c = e.defaultActiveKey, u = e.editable, d = e.animated, h = e.tabPosition, f = h === void 0 ? "top" : h, p = e.tabBarGutter, g = e.tabBarStyle, v = e.tabBarExtraContent, m = e.locale, y = e.more, C = e.destroyInactiveTabPane, b = e.renderTabBar, w = e.onChange, x = e.onTabClick, E = e.onTabScroll, R = e.getPopupContainer, P = e.popupClassName, T = e.indicator, _ = Nt(e, Bme), D = S.useMemo(function() { +var Xme = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Ak = 0, w7 = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r = e.id, n = e.prefixCls, i = n === void 0 ? "rc-tabs" : n, o = e.className, a = e.items, s = e.direction, l = e.activeKey, c = e.defaultActiveKey, u = e.editable, d = e.animated, h = e.tabPosition, f = h === void 0 ? "top" : h, p = e.tabBarGutter, g = e.tabBarStyle, v = e.tabBarExtraContent, m = e.locale, y = e.more, C = e.destroyInactiveTabPane, b = e.renderTabBar, w = e.onChange, x = e.onTabClick, E = e.onTabScroll, R = e.getPopupContainer, P = e.popupClassName, T = e.indicator, _ = Nt(e, Xme), D = S.useMemo(function() { return (a || []).filter(function(G) { return G && pt(G) === "object" && "key" in G; }); - }, [a]), A = s === "rtl", M = $me(d), O = Le(!1), L = ce(O, 2), N = L[0], F = L[1]; + }, [a]), A = s === "rtl", M = qme(d), O = Ie(!1), L = ce(O, 2), N = L[0], F = L[1]; Bt(function() { - F(lI()); + F(lD()); }, []); var $ = pn(function() { var G; @@ -24918,7 +24959,7 @@ var Bme = ["id", "prefixCls", "className", "items", "direction", "activeKey", "d }, { value: l, defaultValue: c - }), I = ce($, 2), V = I[0], H = I[1], B = Le(function() { + }), I = ce($, 2), V = I[0], H = I[1], B = Ie(function() { return D.findIndex(function(G) { return G.key === V; }); @@ -24928,8 +24969,8 @@ var Bme = ["id", "prefixCls", "className", "items", "direction", "activeKey", "d return le.key === V; }); if (G === -1) { - var re; - G = Math.max(0, Math.min(j, D.length - 1)), H((re = D[G]) === null || re === void 0 ? void 0 : re.key); + var ne; + G = Math.max(0, Math.min(j, D.length - 1)), H((ne = D[G]) === null || ne === void 0 ? void 0 : ne.key); } X(G); }, [D.map(function(G) { @@ -24937,17 +24978,17 @@ var Bme = ["id", "prefixCls", "className", "items", "direction", "activeKey", "d }).join("_"), V, j]); var q = pn(null, { value: r - }), J = ce(q, 2), te = J[0], Q = J[1]; + }), J = ce(q, 2), re = J[0], Q = J[1]; Bt(function() { - r || (Q("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Dk)), Dk += 1); + r || (Q("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Ak)), Ak += 1); }, []); - function Y(G, re) { - x == null || x(G, re); + function Y(G, ne) { + x == null || x(G, ne); var le = G !== V; H(G), le && (w == null || w(G)); } var K = { - id: te, + id: re, activeKey: V, animated: M, tabPosition: f, @@ -24967,7 +25008,7 @@ var Bme = ["id", "prefixCls", "className", "items", "direction", "activeKey", "d popupClassName: P, indicator: T }); - return /* @__PURE__ */ S.createElement(ow.Provider, { + return /* @__PURE__ */ S.createElement(sw.Provider, { value: { tabs: D, prefixCls: i @@ -24976,21 +25017,21 @@ var Bme = ["id", "prefixCls", "className", "items", "direction", "activeKey", "d ref: t, id: r, className: ie(i, "".concat(i, "-").concat(f), U(U(U({}, "".concat(i, "-mobile"), N), "".concat(i, "-editable"), u), "".concat(i, "-rtl"), A), o) - }, _), /* @__PURE__ */ S.createElement(y7, Te({}, ae, { + }, _), /* @__PURE__ */ S.createElement(b7, Te({}, ae, { renderTabBar: b - })), /* @__PURE__ */ S.createElement(kme, Te({ + })), /* @__PURE__ */ S.createElement(Yme, Te({ destroyInactiveTabPane: C }, K, { animated: M })))); }); -process.env.NODE_ENV !== "production" && (C7.displayName = "Tabs"); -const Vme = { +process.env.NODE_ENV !== "production" && (w7.displayName = "Tabs"); +const Zme = { motionAppear: !1, motionEnter: !0, motionLeave: !0 }; -function Hme(e) { +function Qme(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { inkBar: !0, tabPane: !1 @@ -25003,31 +25044,31 @@ function Hme(e) { tabPane: !0 } : r = Object.assign({ inkBar: !0 - }, typeof t == "object" ? t : {}), r.tabPane && (r.tabPaneMotion = Object.assign(Object.assign({}, Vme), { + }, typeof t == "object" ? t : {}), r.tabPane && (r.tabPaneMotion = Object.assign(Object.assign({}, Zme), { motionName: xa(e, "switch") })), r; } -var zme = function(e, t) { +var Jme = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function Gme(e) { +function eye(e) { return e.filter((t) => t); } -function Wme(e, t) { +function tye(e, t) { if (process.env.NODE_ENV !== "production" && Rr("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e) return e; - const r = bi(t).map((n) => { + const r = wi(t).map((n) => { if (/* @__PURE__ */ S.isValidElement(n)) { const { key: i, props: o } = n, a = o || {}, { tab: s - } = a, l = zme(a, ["tab"]); + } = a, l = Jme(a, ["tab"]); return Object.assign(Object.assign({ key: String(i) }, l), { @@ -25036,9 +25077,9 @@ function Wme(e, t) { } return null; }); - return Gme(r); + return eye(r); } -const jme = (e) => { +const rye = (e) => { const { componentCls: t, motionDurationSlow: r @@ -25075,7 +25116,7 @@ const jme = (e) => { // Follow code may reuse in other components [kc(e, "slide-up"), kc(e, "slide-down")] ]; -}, Ume = (e) => { +}, nye = (e) => { const { componentCls: t, tabsCardPadding: r, @@ -25091,7 +25132,7 @@ const jme = (e) => { margin: 0, padding: r, background: n, - border: `${ee(e.lineWidth)} ${e.lineType} ${o}`, + border: `${te(e.lineWidth)} ${e.lineType} ${o}`, transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}` }, [`${t}-tab-active`]: { @@ -25108,7 +25149,7 @@ const jme = (e) => { [`${t}-tab + ${t}-tab`]: { marginLeft: { _skip_check_: !0, - value: ee(i) + value: te(i) } } } @@ -25116,7 +25157,7 @@ const jme = (e) => { [`&${t}-top`]: { [`> ${t}-nav, > div > ${t}-nav`]: { [`${t}-tab`]: { - borderRadius: `${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0` + borderRadius: `${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0` }, [`${t}-tab-active`]: { borderBottomColor: e.colorBgContainer @@ -25126,7 +25167,7 @@ const jme = (e) => { [`&${t}-bottom`]: { [`> ${t}-nav, > div > ${t}-nav`]: { [`${t}-tab`]: { - borderRadius: `0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}` + borderRadius: `0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}` }, [`${t}-tab-active`]: { borderTopColor: e.colorBgContainer @@ -25137,7 +25178,7 @@ const jme = (e) => { [`&${t}-left, &${t}-right`]: { [`> ${t}-nav, > div > ${t}-nav`]: { [`${t}-tab + ${t}-tab`]: { - marginTop: ee(i) + marginTop: te(i) } } }, @@ -25146,7 +25187,7 @@ const jme = (e) => { [`${t}-tab`]: { borderRadius: { _skip_check_: !0, - value: `${ee(e.borderRadiusLG)} 0 0 ${ee(e.borderRadiusLG)}` + value: `${te(e.borderRadiusLG)} 0 0 ${te(e.borderRadiusLG)}` } }, [`${t}-tab-active`]: { @@ -25162,7 +25203,7 @@ const jme = (e) => { [`${t}-tab`]: { borderRadius: { _skip_check_: !0, - value: `0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0` + value: `0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0` } }, [`${t}-tab-active`]: { @@ -25175,7 +25216,7 @@ const jme = (e) => { } } }; -}, Kme = (e) => { +}, iye = (e) => { const { componentCls: t, itemHoverColor: r, @@ -25197,7 +25238,7 @@ const jme = (e) => { [`${t}-dropdown-menu`]: { maxHeight: e.tabsDropdownHeight, margin: 0, - padding: `${ee(n)} 0`, + padding: `${te(n)} 0`, overflowX: "hidden", overflowY: "auto", textAlign: { @@ -25215,7 +25256,7 @@ const jme = (e) => { alignItems: "center", minWidth: e.tabsDropdownWidth, margin: 0, - padding: `${ee(e.paddingXXS)} ${ee(e.paddingSM)}`, + padding: `${te(e.paddingXXS)} ${te(e.paddingSM)}`, color: e.colorText, fontWeight: "normal", fontSize: e.fontSize, @@ -25255,7 +25296,7 @@ const jme = (e) => { } }) }; -}, Yme = (e) => { +}, oye = (e) => { const { componentCls: t, margin: r, @@ -25281,7 +25322,7 @@ const jme = (e) => { _skip_check_: !0, value: 0 }, - borderBottom: `${ee(e.lineWidth)} ${e.lineType} ${n}`, + borderBottom: `${te(e.lineWidth)} ${e.lineType} ${n}`, content: "''" }, [`${t}-ink-bar`]: { @@ -25415,11 +25456,11 @@ const jme = (e) => { [`> ${t}-content-holder, > div > ${t}-content-holder`]: { marginLeft: { _skip_check_: !0, - value: ee(s(e.lineWidth).mul(-1).equal()) + value: te(s(e.lineWidth).mul(-1).equal()) }, borderLeft: { _skip_check_: !0, - value: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}` + value: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}` }, [`> ${t}-content > ${t}-tabpane`]: { paddingLeft: { @@ -25447,7 +25488,7 @@ const jme = (e) => { }, borderRight: { _skip_check_: !0, - value: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}` + value: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}` }, [`> ${t}-content > ${t}-tabpane`]: { paddingRight: { @@ -25458,7 +25499,7 @@ const jme = (e) => { } } }; -}, qme = (e) => { +}, aye = (e) => { const { componentCls: t, cardPaddingSM: r, @@ -25494,19 +25535,19 @@ const jme = (e) => { }, [`&${t}-bottom`]: { [`> ${t}-nav ${t}-tab`]: { - borderRadius: `0 0 ${ee(e.borderRadius)} ${ee(e.borderRadius)}` + borderRadius: `0 0 ${te(e.borderRadius)} ${te(e.borderRadius)}` } }, [`&${t}-top`]: { [`> ${t}-nav ${t}-tab`]: { - borderRadius: `${ee(e.borderRadius)} ${ee(e.borderRadius)} 0 0` + borderRadius: `${te(e.borderRadius)} ${te(e.borderRadius)} 0 0` } }, [`&${t}-right`]: { [`> ${t}-nav ${t}-tab`]: { borderRadius: { _skip_check_: !0, - value: `0 ${ee(e.borderRadius)} ${ee(e.borderRadius)} 0` + value: `0 ${te(e.borderRadius)} ${te(e.borderRadius)} 0` } } }, @@ -25514,7 +25555,7 @@ const jme = (e) => { [`> ${t}-nav ${t}-tab`]: { borderRadius: { _skip_check_: !0, - value: `${ee(e.borderRadius)} 0 0 ${ee(e.borderRadius)}` + value: `${te(e.borderRadius)} 0 0 ${te(e.borderRadius)}` } } } @@ -25528,7 +25569,7 @@ const jme = (e) => { } } }; -}, Xme = (e) => { +}, sye = (e) => { const { componentCls: t, itemActiveColor: r, @@ -25619,7 +25660,7 @@ const jme = (e) => { } } }; -}, Zme = (e) => { +}, lye = (e) => { const { componentCls: t, tabsHorizontalItemMarginRTL: r, @@ -25649,17 +25690,17 @@ const jme = (e) => { }, marginLeft: { _skip_check_: !0, - value: ee(e.marginSM) + value: te(e.marginSM) } }, [`${t}-tab-remove`]: { marginRight: { _skip_check_: !0, - value: ee(e.marginXS) + value: te(e.marginXS) }, marginLeft: { _skip_check_: !0, - value: ee(o(e.marginXXS).mul(-1).equal()) + value: te(o(e.marginXXS).mul(-1).equal()) }, [n]: { margin: 0 @@ -25711,7 +25752,7 @@ const jme = (e) => { } } }; -}, Qme = (e) => { +}, cye = (e) => { const { componentCls: t, tabsCardPadding: r, @@ -25793,10 +25834,10 @@ const jme = (e) => { _skip_check_: !0, value: i }, - padding: `0 ${ee(e.paddingXS)}`, + padding: `0 ${te(e.paddingXS)}`, background: "transparent", - border: `${ee(e.lineWidth)} ${e.lineType} ${s}`, - borderRadius: `${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`, + border: `${te(e.lineWidth)} ${e.lineType} ${s}`, + borderRadius: `${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`, outline: "none", cursor: "pointer", color: e.colorText, @@ -25818,7 +25859,7 @@ const jme = (e) => { background: e.inkBarColor, pointerEvents: "none" } - }), Xme(e)), { + }), sye(e)), { // =========================== TabPanes =========================== [`${t}-content`]: { position: "relative", @@ -25846,7 +25887,7 @@ const jme = (e) => { } } }; -}, Jme = (e) => { +}, uye = (e) => { const t = e.controlHeightLG; return { zIndexPopup: e.zIndexPopupBase + 50, @@ -25877,7 +25918,7 @@ const jme = (e) => { itemActiveColor: e.colorPrimaryActive, cardGutter: e.marginXXS / 2 }; -}, eye = Ur("Tabs", (e) => { +}, dye = Kr("Tabs", (e) => { const t = fr(e, { // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight` tabsCardPadding: e.cardPadding, @@ -25885,20 +25926,20 @@ const jme = (e) => { tabsActiveTextShadow: "0 0 0.25px currentcolor", tabsDropdownHeight: 200, tabsDropdownWidth: 120, - tabsHorizontalItemMargin: `0 0 0 ${ee(e.horizontalItemGutter)}`, - tabsHorizontalItemMarginRTL: `0 0 0 ${ee(e.horizontalItemGutter)}` + tabsHorizontalItemMargin: `0 0 0 ${te(e.horizontalItemGutter)}`, + tabsHorizontalItemMarginRTL: `0 0 0 ${te(e.horizontalItemGutter)}` }); - return [qme(t), Zme(t), Yme(t), Kme(t), Ume(t), Qme(t), jme(t)]; -}, Jme), S7 = () => null; -process.env.NODE_ENV !== "production" && (S7.displayName = "DeprecatedTabPane"); -var tye = function(e, t) { + return [aye(t), lye(t), oye(t), iye(t), nye(t), cye(t), rye(t)]; +}, uye), x7 = () => null; +process.env.NODE_ENV !== "production" && (x7.displayName = "DeprecatedTabPane"); +var hye = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const NI = (e) => { +const ND = (e) => { var t, r, n, i, o, a, s, l, c, u, d; const { type: h, @@ -25919,25 +25960,25 @@ const NI = (e) => { style: _, indicatorSize: D, indicator: A - } = e, M = tye(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), { + } = e, M = hye(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), { prefixCls: O } = M, { direction: L, tabs: N, getPrefixCls: F, getPopupContainer: $ - } = S.useContext(gt), I = F("tabs", O), V = mi(I), [H, B, W] = eye(I, V); + } = S.useContext(gt), I = F("tabs", O), V = yi(I), [H, B, W] = dye(I, V); let j; h === "editable-card" && (j = { onEdit: (K, ae) => { let { key: G, - event: re + event: ne } = ae; - v == null || v(K === "add" ? re : G, K); + v == null || v(K === "add" ? ne : G, K); }, - removeIcon: (t = b ?? (N == null ? void 0 : N.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ S.createElement(ql, null), - addIcon: (C ?? (N == null ? void 0 : N.addIcon)) || /* @__PURE__ */ S.createElement(f7, null), + removeIcon: (t = b ?? (N == null ? void 0 : N.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ S.createElement(Xl, null), + addIcon: (C ?? (N == null ? void 0 : N.addIcon)) || /* @__PURE__ */ S.createElement(v7, null), showAdd: m !== !0 }); const X = F(); @@ -25945,11 +25986,11 @@ const NI = (e) => { const K = Rr("Tabs"); process.env.NODE_ENV !== "production" && K(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && K(!(D || N != null && N.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead."); } - const q = Ro(g), J = Wme(P, R), te = Hme(I, T), Q = Object.assign(Object.assign({}, N == null ? void 0 : N.style), _), Y = { + const q = Ro(g), J = tye(P, R), re = Qme(I, T), Q = Object.assign(Object.assign({}, N == null ? void 0 : N.style), _), Y = { align: (r = A == null ? void 0 : A.align) !== null && r !== void 0 ? r : (n = N == null ? void 0 : N.indicator) === null || n === void 0 ? void 0 : n.align, size: (s = (o = (i = A == null ? void 0 : A.size) !== null && i !== void 0 ? i : D) !== null && o !== void 0 ? o : (a = N == null ? void 0 : N.indicator) === null || a === void 0 ? void 0 : a.size) !== null && s !== void 0 ? s : N == null ? void 0 : N.indicatorSize }; - return H(/* @__PURE__ */ S.createElement(C7, Object.assign({ + return H(/* @__PURE__ */ S.createElement(w7, Object.assign({ direction: L, getPopupContainer: $ }, M, { @@ -25964,29 +26005,29 @@ const NI = (e) => { style: Q, editable: j, more: Object.assign({ - icon: (d = (u = (c = (l = N == null ? void 0 : N.more) === null || l === void 0 ? void 0 : l.icon) !== null && c !== void 0 ? c : N == null ? void 0 : N.moreIcon) !== null && u !== void 0 ? u : w) !== null && d !== void 0 ? d : /* @__PURE__ */ S.createElement(nw, null), + icon: (d = (u = (c = (l = N == null ? void 0 : N.more) === null || l === void 0 ? void 0 : l.icon) !== null && c !== void 0 ? c : N == null ? void 0 : N.moreIcon) !== null && u !== void 0 ? u : w) !== null && d !== void 0 ? d : /* @__PURE__ */ S.createElement(ow, null), transitionName: `${X}-slide-up` }, x), prefixCls: I, - animated: te, + animated: re, indicator: Y }))); }; -NI.TabPane = S7; -process.env.NODE_ENV !== "production" && (NI.displayName = "Tabs"); -var rye = function(e, t) { +ND.TabPane = x7; +process.env.NODE_ENV !== "production" && (ND.displayName = "Tabs"); +var fye = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const b7 = (e) => { +const E7 = (e) => { var { prefixCls: t, className: r, hoverable: n = !0 - } = e, i = rye(e, ["prefixCls", "className", "hoverable"]); + } = e, i = fye(e, ["prefixCls", "className", "hoverable"]); const { getPrefixCls: o } = S.useContext(gt), a = o("card", t), s = ie(`${a}-grid`, r, { @@ -25995,7 +26036,7 @@ const b7 = (e) => { return /* @__PURE__ */ S.createElement("div", Object.assign({}, i, { className: s })); -}, nye = (e) => { +}, pye = (e) => { const { antCls: t, componentCls: r, @@ -26009,14 +26050,14 @@ const b7 = (e) => { flexDirection: "column", minHeight: n, marginBottom: -1, - padding: `0 ${ee(i)}`, + padding: `0 ${te(i)}`, color: e.colorTextHeading, fontWeight: e.fontWeightStrong, fontSize: e.headerFontSize, background: e.headerBg, - borderBottom: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`, - borderRadius: `${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0` - }, Fl()), { + borderBottom: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`, + borderRadius: `${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0` + }, Nl()), { "&-wrapper": { width: "100%", display: "flex", @@ -26042,11 +26083,11 @@ const b7 = (e) => { fontWeight: "normal", fontSize: e.fontSize, "&-bar": { - borderBottom: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}` + borderBottom: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}` } } }); -}, iye = (e) => { +}, gye = (e) => { const { cardPaddingBase: t, colorBorderSecondary: r, @@ -26059,11 +26100,11 @@ const b7 = (e) => { border: 0, borderRadius: 0, boxShadow: ` - ${ee(i)} 0 0 0 ${r}, - 0 ${ee(i)} 0 0 ${r}, - ${ee(i)} ${ee(i)} 0 0 ${r}, - ${ee(i)} 0 0 0 ${r} inset, - 0 ${ee(i)} 0 0 ${r} inset; + ${te(i)} 0 0 0 ${r}, + 0 ${te(i)} 0 0 ${r}, + ${te(i)} ${te(i)} 0 0 ${r}, + ${te(i)} 0 0 0 ${r} inset, + 0 ${te(i)} 0 0 ${r} inset; `, transition: `all ${e.motionDurationMid}`, "&-hoverable:hover": { @@ -26072,7 +26113,7 @@ const b7 = (e) => { boxShadow: n } }; -}, oye = (e) => { +}, vye = (e) => { const { componentCls: t, iconCls: r, @@ -26086,10 +26127,10 @@ const b7 = (e) => { padding: 0, listStyle: "none", background: a, - borderTop: `${ee(e.lineWidth)} ${e.lineType} ${o}`, + borderTop: `${te(e.lineWidth)} ${e.lineType} ${o}`, display: "flex", - borderRadius: `0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}` - }, Fl()), { + borderRadius: `0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}` + }, Nl()), { "& > li": { margin: n, color: e.colorTextDescription, @@ -26109,7 +26150,7 @@ const b7 = (e) => { display: "inline-block", width: "100%", color: e.colorTextDescription, - lineHeight: ee(e.fontHeight), + lineHeight: te(e.fontHeight), transition: `color ${e.motionDurationMid}`, "&:hover": { color: e.colorPrimary @@ -26117,18 +26158,18 @@ const b7 = (e) => { }, [`> ${r}`]: { fontSize: i, - lineHeight: ee(e.calc(i).mul(e.lineHeight).equal()) + lineHeight: te(e.calc(i).mul(e.lineHeight).equal()) } }, "&:not(:last-child)": { - borderInlineEnd: `${ee(e.lineWidth)} ${e.lineType} ${o}` + borderInlineEnd: `${te(e.lineWidth)} ${e.lineType} ${o}` } } }); -}, aye = (e) => Object.assign(Object.assign({ - margin: `${ee(e.calc(e.marginXXS).mul(-1).equal())} 0`, +}, mye = (e) => Object.assign(Object.assign({ + margin: `${te(e.calc(e.marginXXS).mul(-1).equal())} 0`, display: "flex" -}, Fl()), { +}, Nl()), { "&-avatar": { paddingInlineEnd: e.padding }, @@ -26147,7 +26188,7 @@ const b7 = (e) => { "&-description": { color: e.colorTextDescription } -}), sye = (e) => { +}), yye = (e) => { const { componentCls: t, cardPaddingBase: r, @@ -26155,17 +26196,17 @@ const b7 = (e) => { } = e; return { [`${t}-head`]: { - padding: `0 ${ee(r)}`, + padding: `0 ${te(r)}`, background: n, "&-title": { fontSize: e.fontSize } }, [`${t}-body`]: { - padding: `${ee(e.padding)} ${ee(r)}` + padding: `${te(e.padding)} ${te(r)}` } }; -}, lye = (e) => { +}, Cye = (e) => { const { componentCls: t } = e; @@ -26175,7 +26216,7 @@ const b7 = (e) => { userSelect: "none" } }; -}, cye = (e) => { +}, Sye = (e) => { const { antCls: t, componentCls: r, @@ -26194,7 +26235,7 @@ const b7 = (e) => { [`&:not(${r}-bordered)`]: { boxShadow: a }, - [`${r}-head`]: nye(e), + [`${r}-head`]: pye(e), [`${r}-extra`]: { // https://stackoverflow.com/a/22429853/3040605 marginInlineStart: "auto", @@ -26204,23 +26245,23 @@ const b7 = (e) => { }, [`${r}-body`]: Object.assign({ padding: s, - borderRadius: `0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}` - }, Fl()), - [`${r}-grid`]: iye(e), + borderRadius: `0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}` + }, Nl()), + [`${r}-grid`]: gye(e), [`${r}-cover`]: { "> *": { display: "block", width: "100%" }, [`img, img + ${t}-image-mask`]: { - borderRadius: `${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0` + borderRadius: `${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0` } }, - [`${r}-actions`]: oye(e), - [`${r}-meta`]: aye(e) + [`${r}-actions`]: vye(e), + [`${r}-meta`]: mye(e) }), [`${r}-bordered`]: { - border: `${ee(e.lineWidth)} ${e.lineType} ${o}`, + border: `${te(e.lineWidth)} ${e.lineType} ${o}`, [`${r}-cover`]: { marginTop: -1, marginInlineStart: -1, @@ -26236,7 +26277,7 @@ const b7 = (e) => { } }, [`${r}-contain-grid`]: { - borderRadius: `${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0 `, + borderRadius: `${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0 `, [`${r}-body`]: { display: "flex", flexWrap: "wrap" @@ -26255,13 +26296,13 @@ const b7 = (e) => { } } }, - [`${r}-type-inner`]: sye(e), - [`${r}-loading`]: lye(e), + [`${r}-type-inner`]: yye(e), + [`${r}-loading`]: Cye(e), [`${r}-rtl`]: { direction: "rtl" } }; -}, uye = (e) => { +}, bye = (e) => { const { componentCls: t, cardPaddingSM: r, @@ -26272,7 +26313,7 @@ const b7 = (e) => { [`${t}-small`]: { [`> ${t}-head`]: { minHeight: n, - padding: `0 ${ee(r)}`, + padding: `0 ${te(r)}`, fontSize: i, [`> ${t}-head-wrapper`]: { [`> ${t}-extra`]: { @@ -26294,7 +26335,7 @@ const b7 = (e) => { } } }; -}, dye = (e) => ({ +}, wye = (e) => ({ headerBg: "transparent", headerFontSize: e.fontSizeLG, headerFontSizeSM: e.fontSize, @@ -26304,7 +26345,7 @@ const b7 = (e) => { actionsLiMargin: `${e.paddingSM}px 0`, tabsMarginBottom: -e.padding - e.lineWidth, extraColor: e.colorText -}), hye = Ur("Card", (e) => { +}), xye = Kr("Card", (e) => { const t = fr(e, { cardShadow: e.boxShadowCard, cardHeadPadding: e.padding, @@ -26315,19 +26356,19 @@ const b7 = (e) => { }); return [ // Style - cye(t), + Sye(t), // Size - uye(t) + bye(t) ]; -}, dye); -var Ik = function(e, t) { +}, wye); +var Ok = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const fye = (e) => { +const Eye = (e) => { const { actionClasses: t, actions: r = [], @@ -26345,7 +26386,7 @@ const fye = (e) => { key: a }, /* @__PURE__ */ S.createElement("span", null, i)); })); -}, pye = /* @__PURE__ */ S.forwardRef((e, t) => { +}, Rye = /* @__PURE__ */ S.forwardRef((e, t) => { const { prefixCls: r, className: n, @@ -26370,7 +26411,7 @@ const fye = (e) => { tabProps: x = {}, classNames: E, styles: R - } = e, P = Ik(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), { + } = e, P = Ok(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), { getPrefixCls: T, direction: _, card: D @@ -26394,9 +26435,9 @@ const fye = (e) => { }, L = S.useMemo(() => { let he = !1; return S.Children.forEach(m, (fe) => { - (fe == null ? void 0 : fe.type) === b7 && (he = !0); + (fe == null ? void 0 : fe.type) === E7 && (he = !0); }), he; - }, [m]), N = T("card", r), [F, $, I] = hye(N), V = /* @__PURE__ */ S.createElement(Xl, { + }, [m]), N = T("card", r), [F, $, I] = xye(N), V = /* @__PURE__ */ S.createElement(el, { loading: !0, active: !0, paragraph: { @@ -26408,7 +26449,7 @@ const fye = (e) => { tabBarExtraContent: b }); let W; - const j = Ro(h), X = !j || j === "default" ? "large" : j, q = v ? /* @__PURE__ */ S.createElement(NI, Object.assign({ + const j = Ro(h), X = !j || j === "default" ? "large" : j, q = v ? /* @__PURE__ */ S.createElement(ND, Object.assign({ size: X }, B, { className: `${N}-head-tabs`, @@ -26416,7 +26457,7 @@ const fye = (e) => { items: v.map((he) => { var { tab: fe - } = he, de = Ik(he, ["tab"]); + } = he, de = Ok(he, ["tab"]); return Object.assign({ label: fe }, de); @@ -26437,17 +26478,17 @@ const fye = (e) => { style: O("extra") }, a)), q); } - const J = ie(`${N}-cover`, M("cover")), te = p ? /* @__PURE__ */ S.createElement("div", { + const J = ie(`${N}-cover`, M("cover")), re = p ? /* @__PURE__ */ S.createElement("div", { className: J, style: O("cover") }, p) : null, Q = ie(`${N}-body`, M("body")), Y = Object.assign(Object.assign({}, l), O("body")), K = /* @__PURE__ */ S.createElement("div", { className: Q, style: Y - }, u ? V : m), ae = ie(`${N}-actions`, M("actions")), G = g != null && g.length ? /* @__PURE__ */ S.createElement(fye, { + }, u ? V : m), ae = ie(`${N}-actions`, M("actions")), G = g != null && g.length ? /* @__PURE__ */ S.createElement(Eye, { actionClasses: ae, actionStyle: O("actions"), actions: g - }) : null, re = Sn(P, ["onTabChange"]), le = ie(N, D == null ? void 0 : D.className, { + }) : null, ne = Sn(P, ["onTabChange"]), le = ie(N, D == null ? void 0 : D.className, { [`${N}-loading`]: u, [`${N}-bordered`]: d, [`${N}-hoverable`]: w, @@ -26459,26 +26500,26 @@ const fye = (e) => { }, n, i, $, I), ue = Object.assign(Object.assign({}, D == null ? void 0 : D.style), o); return F(/* @__PURE__ */ S.createElement("div", Object.assign({ ref: t - }, re, { + }, ne, { className: le, style: ue - }), W, te, K, G)); + }), W, re, K, G)); }); -var gye = function(e, t) { +var Pye = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const vye = (e) => { +const Tye = (e) => { const { prefixCls: t, className: r, avatar: n, title: i, description: o - } = e, a = gye(e, ["prefixCls", "className", "avatar", "title", "description"]), { + } = e, a = Pye(e, ["prefixCls", "className", "avatar", "title", "description"]), { getPrefixCls: s } = S.useContext(gt), l = s("card", t), c = ie(`${l}-meta`, r), u = n ? /* @__PURE__ */ S.createElement("div", { className: `${l}-meta-avatar` @@ -26492,11 +26533,11 @@ const vye = (e) => { return /* @__PURE__ */ S.createElement("div", Object.assign({}, a, { className: c }), u, f); -}, vi = pye; -vi.Grid = b7; -vi.Meta = vye; -process.env.NODE_ENV !== "production" && (vi.displayName = "Card"); -function mye(e, t, r) { +}, li = Rye; +li.Grid = E7; +li.Meta = Tye; +process.env.NODE_ENV !== "production" && (li.displayName = "Card"); +function _ye(e, t, r) { var n = r || {}, i = n.noTrailing, o = i === void 0 ? !1 : i, a = n.noLeading, s = a === void 0 ? !1 : a, l = n.debounceMode, c = l === void 0 ? void 0 : l, u, d = !1, h = 0; function f() { u && clearTimeout(u); @@ -26521,23 +26562,23 @@ function mye(e, t, r) { } return g.cancel = p, g; } -function yye(e, t, r) { +function Mye(e, t, r) { var n = {}, i = n.atBegin, o = i === void 0 ? !1 : i; - return mye(e, t, { + return _ye(e, t, { debounceMode: o !== !1 }); } function fo(e, t) { return e[t]; } -var Cye = ["children"]; -function w7(e, t) { +var Dye = ["children"]; +function R7(e, t) { return "".concat(e, "-").concat(t); } -function Sye(e) { +function Iye(e) { return e && e.type && e.type.isTreeNode; } -function Lm(e, t) { +function Nm(e, t) { return e ?? t; } function Af(e) { @@ -26549,7 +26590,7 @@ function Af(e) { children: o || "children" }; } -function bye(e, t) { +function Aye(e, t) { var r = /* @__PURE__ */ new Map(); function n(i) { var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; @@ -26562,13 +26603,13 @@ function bye(e, t) { } n(e); } -function x7(e) { +function P7(e) { function t(r) { - var n = bi(r); + var n = wi(r); return n.map(function(i) { - if (!Sye(i)) + if (!Iye(i)) return Tt(!i, "Tree/TreeNode can only accept TreeNode as children."), null; - var o = i.key, a = i.props, s = a.children, l = Nt(a, Cye), c = Z({ + var o = i.key, a = i.props, s = a.children, l = Nt(a, Dye), c = Z({ key: o }, l), u = t(s); return u.length && (c.children = u), c; @@ -26583,7 +26624,7 @@ function Q1(e, t, r) { function c(u) { var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; return u.map(function(h, f) { - for (var p = w7(d ? d.pos : "0", f), g = Lm(h[o], p), v, m = 0; m < i.length; m += 1) { + for (var p = R7(d ? d.pos : "0", f), g = Nm(h[o], p), v, m = 0; m < i.length; m += 1) { var y = i[m]; if (h[y] !== void 0) { v = h[y]; @@ -26605,7 +26646,7 @@ function Q1(e, t, r) { } return c(e), l; } -function wye(e, t, r) { +function Oye(e, t, r) { var n = {}; pt(r) === "object" ? n = r : n = { externalGetKey: r @@ -26616,10 +26657,10 @@ function wye(e, t, r) { } : typeof a == "function" && (h = function(g) { return a(g); }) : h = function(g, v) { - return Lm(g[c], v); + return Nm(g[c], v); }; function f(p, g, v, m) { - var y = p ? p[d] : e, C = p ? w7(v.pos, g) : "0", b = p ? [].concat($e(m), [p]) : []; + var y = p ? p[d] : e, C = p ? R7(v.pos, g) : "0", b = p ? [].concat($e(m), [p]) : []; if (p) { var w = h(p, C), x = { node: p, @@ -26642,12 +26683,12 @@ function wye(e, t, r) { } f(null); } -function kI(e) { +function kD(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.initWrapper, n = t.processEntity, i = t.onProcessFinished, o = t.externalGetKey, a = t.childrenPropName, s = t.fieldNames, l = arguments.length > 2 ? arguments[2] : void 0, c = o || l, u = {}, d = {}, h = { posEntities: u, keyEntities: d }; - return r && (h = r(h) || h), wye(e, function(f) { + return r && (h = r(h) || h), Oye(e, function(f) { var p = f.node, g = f.index, v = f.pos, m = f.key, y = f.parentPos, C = f.level, b = f.nodes, w = { node: p, nodes: b, @@ -26655,7 +26696,7 @@ function kI(e) { key: m, pos: v, level: C - }, x = Lm(m, v); + }, x = Nm(m, v); u[v] = w, d[x] = w, w.parent = u[y], w.parent && (w.parent.children = w.parent.children || [], w.parent.children.push(w)), n && n(w, h); }, { externalGetKey: c, @@ -26663,7 +26704,7 @@ function kI(e) { fieldNames: s }), i && i(h), h; } -function jg(e, t) { +function Kg(e, t) { var r = t.expandedKeys, n = t.selectedKeys, i = t.loadedKeys, o = t.loadingKeys, a = t.checkedKeys, s = t.halfCheckedKeys, l = t.dragOverNodeKey, c = t.dropPosition, u = t.keyEntities, d = fo(u, e), h = { eventKey: e, expanded: r.indexOf(e) !== -1, @@ -26703,17 +26744,17 @@ function Kn(e) { } }), p; } -function E7(e, t) { +function T7(e, t) { var r = /* @__PURE__ */ new Set(); return e.forEach(function(n) { t.has(n) || r.add(n); }), r; } -function xye(e) { +function Lye(e) { var t = e || {}, r = t.disabled, n = t.disableCheckbox, i = t.checkable; return !!(r || n) || i === !1; } -function Eye(e, t, r, n) { +function Fye(e, t, r, n) { for (var i = new Set(e), o = /* @__PURE__ */ new Set(), a = 0; a <= r; a += 1) { var s = t.get(a) || /* @__PURE__ */ new Set(); s.forEach(function(d) { @@ -26746,10 +26787,10 @@ function Eye(e, t, r, n) { } return { checkedKeys: Array.from(i), - halfCheckedKeys: Array.from(E7(o, i)) + halfCheckedKeys: Array.from(T7(o, i)) }; } -function Rye(e, t, r, n, i) { +function Nye(e, t, r, n, i) { for (var o = new Set(e), a = new Set(t), s = 0; s <= n; s += 1) { var l = r.get(s) || /* @__PURE__ */ new Set(); l.forEach(function(h) { @@ -26783,12 +26824,12 @@ function Rye(e, t, r, n, i) { } return { checkedKeys: Array.from(o), - halfCheckedKeys: Array.from(E7(a, o)) + halfCheckedKeys: Array.from(T7(a, o)) }; } function df(e, t, r, n) { var i = [], o; - n ? o = n : o = xye; + n ? o = n : o = Lye; var a = new Set(e.filter(function(u) { var d = !!fo(r, u); return d || i.push(u), d; @@ -26800,9 +26841,9 @@ function df(e, t, r, n) { return "'".concat(u, "'"); }).join(", "))); var c; - return t === !0 ? c = Eye(a, s, l, o) : c = Rye(a, t.halfCheckedKeys, s, l, o), c; + return t === !0 ? c = Fye(a, s, l, o) : c = Nye(a, t.halfCheckedKeys, s, l, o), c; } -const Pye = (e) => { +const kye = (e) => { const { checkboxCls: t } = e, r = `${t}-wrapper`; @@ -26875,7 +26916,7 @@ const Pye = (e) => { height: e.checkboxSize, direction: "ltr", backgroundColor: e.colorBgContainer, - border: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, + border: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, borderRadius: e.borderRadiusSM, borderCollapse: "separate", transition: `all ${e.motionDurationSlow}`, @@ -26887,7 +26928,7 @@ const Pye = (e) => { display: "table", width: e.calc(e.checkboxSize).div(14).mul(5).equal(), height: e.calc(e.checkboxSize).div(14).mul(8).equal(), - border: `${ee(e.lineWidthBold)} solid ${e.colorWhite}`, + border: `${te(e.lineWidthBold)} solid ${e.colorWhite}`, borderTop: 0, borderInlineStart: 0, transform: "rotate(45deg) scale(0) translate(-50%,-50%)", @@ -27007,27 +27048,27 @@ const Pye = (e) => { } ]; }; -function R7(e, t) { +function _7(e, t) { const r = fr(t, { checkboxCls: `.${e}`, checkboxSize: t.controlInteractiveSize }); - return [Pye(r)]; + return [kye(r)]; } -const P7 = Ur("Checkbox", (e, t) => { +const M7 = Kr("Checkbox", (e, t) => { let { prefixCls: r } = t; - return [R7(r, e)]; -}), T7 = /* @__PURE__ */ k.createContext(null); -var Tye = function(e, t) { + return [_7(r, e)]; +}), D7 = /* @__PURE__ */ k.createContext(null); +var $ye = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const _ye = (e, t) => { +const Bye = (e, t) => { var r; const { prefixCls: n, @@ -27040,13 +27081,13 @@ const _ye = (e, t) => { onMouseLeave: u, skipGroup: d = !1, disabled: h - } = e, f = Tye(e, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]), { + } = e, f = $ye(e, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]), { getPrefixCls: p, direction: g, checkbox: v - } = S.useContext(gt), m = S.useContext(T7), { + } = S.useContext(gt), m = S.useContext(D7), { isFormItemInput: y - } = S.useContext(Ea), C = S.useContext(Ll), b = (r = (m == null ? void 0 : m.disabled) || h) !== null && r !== void 0 ? r : C, w = S.useRef(f.value); + } = S.useContext(Ea), C = S.useContext(Fl), b = (r = (m == null ? void 0 : m.disabled) || h) !== null && r !== void 0 ? r : C, w = S.useRef(f.value); if (process.env.NODE_ENV !== "production") { const O = Rr("Checkbox"); process.env.NODE_ENV !== "production" && O("checked" in f || !!m || !("value" in f), "usage", "`value` is not a valid prop, do you mean `checked`?"); @@ -27057,7 +27098,7 @@ const _ye = (e, t) => { if (!d) return f.value !== w.current && (m == null || m.cancelValue(w.current), m == null || m.registerValue(f.value), w.current = f.value), () => m == null ? void 0 : m.cancelValue(f.value); }, [f.value]); - const x = p("checkbox", n), E = mi(x), [R, P, T] = P7(x, E), _ = Object.assign({}, f); + const x = p("checkbox", n), E = yi(x), [R, P, T] = M7(x, E), _ = Object.assign({}, f); m && !d && (_.onChange = function() { f.onChange && f.onChange.apply(f, arguments), m.toggleOption && m.toggleOption({ label: a, @@ -27071,8 +27112,8 @@ const _ye = (e, t) => { [`${x}-wrapper-in-form-item`]: y }, v == null ? void 0 : v.className, i, o, T, E, P), A = ie({ [`${x}-indeterminate`]: s - }, Hb, P), M = s ? "mixed" : void 0; - return R(/* @__PURE__ */ S.createElement(wm, { + }, Gb, P), M = s ? "mixed" : void 0; + return R(/* @__PURE__ */ S.createElement(Em, { component: "Checkbox", disabled: b }, /* @__PURE__ */ S.createElement("label", { @@ -27080,7 +27121,7 @@ const _ye = (e, t) => { style: Object.assign(Object.assign({}, v == null ? void 0 : v.style), l), onMouseEnter: c, onMouseLeave: u - }, /* @__PURE__ */ S.createElement(c7, Object.assign({ + }, /* @__PURE__ */ S.createElement(h7, Object.assign({ "aria-checked": M }, _, { prefixCls: x, @@ -27088,16 +27129,16 @@ const _ye = (e, t) => { disabled: b, ref: t })), a !== void 0 && /* @__PURE__ */ S.createElement("span", null, a)))); -}, $I = /* @__PURE__ */ S.forwardRef(_ye); -process.env.NODE_ENV !== "production" && ($I.displayName = "Checkbox"); -var Mye = function(e, t) { +}, $D = /* @__PURE__ */ S.forwardRef(Bye); +process.env.NODE_ENV !== "production" && ($D.displayName = "Checkbox"); +var Vye = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const Dye = /* @__PURE__ */ S.forwardRef((e, t) => { +const Hye = /* @__PURE__ */ S.forwardRef((e, t) => { const { defaultValue: r, children: n, @@ -27107,7 +27148,7 @@ const Dye = /* @__PURE__ */ S.forwardRef((e, t) => { rootClassName: s, style: l, onChange: c - } = e, u = Mye(e, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]), { + } = e, u = Vye(e, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]), { getPrefixCls: d, direction: h } = S.useContext(gt), [f, p] = S.useState(u.value || r || []), [g, v] = S.useState([]); @@ -27127,7 +27168,7 @@ const Dye = /* @__PURE__ */ S.forwardRef((e, t) => { const I = m.findIndex((H) => H.value === F), V = m.findIndex((H) => H.value === $); return I - V; })); - }, w = d("checkbox", o), x = `${w}-group`, E = mi(w), [R, P, T] = P7(w, E), _ = Sn(u, ["value", "disabled"]), D = i.length ? m.map((O) => /* @__PURE__ */ S.createElement($I, { + }, w = d("checkbox", o), x = `${w}-group`, E = yi(w), [R, P, T] = M7(w, E), _ = Sn(u, ["value", "disabled"]), D = i.length ? m.map((O) => /* @__PURE__ */ S.createElement($D, { prefixCls: w, key: O.value.toString(), disabled: "disabled" in O ? O.disabled : u.disabled, @@ -27155,14 +27196,14 @@ const Dye = /* @__PURE__ */ S.forwardRef((e, t) => { style: l }, _, { ref: t - }), /* @__PURE__ */ S.createElement(T7.Provider, { + }), /* @__PURE__ */ S.createElement(D7.Provider, { value: A }, D))); -}), Pd = $I; -Pd.Group = Dye; +}), Pd = $D; +Pd.Group = Hye; Pd.__ANT_CHECKBOX = !0; process.env.NODE_ENV !== "production" && (Pd.displayName = "Checkbox"); -const _7 = /* @__PURE__ */ Xs({}), Iye = (e) => { +const I7 = /* @__PURE__ */ Xs({}), zye = (e) => { const { componentCls: t } = e; @@ -27212,7 +27253,7 @@ const _7 = /* @__PURE__ */ Xs({}), Iye = (e) => { } } }; -}, Aye = (e) => { +}, Gye = (e) => { const { componentCls: t } = e; @@ -27225,7 +27266,7 @@ const _7 = /* @__PURE__ */ Xs({}), Iye = (e) => { minHeight: 1 } }; -}, Oye = (e, t) => { +}, Wye = (e, t) => { const { prefixCls: r, componentCls: n, @@ -27272,9 +27313,9 @@ const _7 = /* @__PURE__ */ Xs({}), Iye = (e) => { return o[`${n}${t}-flex`] = { flex: `var(--${r}${t}-flex)` }, o; -}, NT = (e, t) => Oye(e, t), Lye = (e, t, r) => ({ - [`@media (min-width: ${ee(t)})`]: Object.assign({}, NT(e, r)) -}), Fye = () => ({}), Nye = () => ({}), kye = Ur("Grid", Iye, Fye), $ye = Ur("Grid", (e) => { +}, NT = (e, t) => Wye(e, t), jye = (e, t, r) => ({ + [`@media (min-width: ${te(t)})`]: Object.assign({}, NT(e, r)) +}), Uye = () => ({}), Kye = () => ({}), Yye = Kr("Grid", zye, Uye), qye = Kr("Grid", (e) => { const t = fr(e, { gridColumns: 24 // Row is divided into 24 parts in Grid @@ -27285,26 +27326,26 @@ const _7 = /* @__PURE__ */ Xs({}), Iye = (e) => { "-xl": t.screenXLMin, "-xxl": t.screenXXLMin }; - return [Aye(t), NT(t, ""), NT(t, "-xs"), Object.keys(r).map((n) => Lye(t, r[n], n)).reduce((n, i) => Object.assign(Object.assign({}, n), i), {})]; -}, Nye); -var Bye = function(e, t) { + return [Gye(t), NT(t, ""), NT(t, "-xs"), Object.keys(r).map((n) => jye(t, r[n], n)).reduce((n, i) => Object.assign(Object.assign({}, n), i), {})]; +}, Kye); +var Xye = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function Ak(e) { +function Lk(e) { return typeof e == "number" ? `${e} ${e} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(e) ? `0 0 ${e}` : e; } -const Vye = ["xs", "sm", "md", "lg", "xl", "xxl"], M7 = /* @__PURE__ */ S.forwardRef((e, t) => { +const Zye = ["xs", "sm", "md", "lg", "xl", "xxl"], A7 = /* @__PURE__ */ S.forwardRef((e, t) => { const { getPrefixCls: r, direction: n } = S.useContext(gt), { gutter: i, wrap: o - } = S.useContext(_7), { + } = S.useContext(I7), { prefixCls: a, span: s, order: l, @@ -27315,9 +27356,9 @@ const Vye = ["xs", "sm", "md", "lg", "xl", "xxl"], M7 = /* @__PURE__ */ S.forwar children: f, flex: p, style: g - } = e, v = Bye(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), m = r("col", a), [y, C, b] = $ye(m), w = {}; + } = e, v = Xye(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), m = r("col", a), [y, C, b] = qye(m), w = {}; let x = {}; - Vye.forEach((P) => { + Zye.forEach((P) => { let T = {}; const _ = e[P]; typeof _ == "number" ? T.span = _ : typeof _ == "object" && (T = _ || {}), delete v[P], x = Object.assign(Object.assign({}, x), { @@ -27327,7 +27368,7 @@ const Vye = ["xs", "sm", "md", "lg", "xl", "xxl"], M7 = /* @__PURE__ */ S.forwar [`${m}-${P}-push-${T.push}`]: T.push || T.push === 0, [`${m}-${P}-pull-${T.pull}`]: T.pull || T.pull === 0, [`${m}-rtl`]: n === "rtl" - }), T.flex && (x[`${m}-${P}-flex`] = !0, w[`--${m}-${P}-flex`] = Ak(T.flex)); + }), T.flex && (x[`${m}-${P}-flex`] = !0, w[`--${m}-${P}-flex`] = Lk(T.flex)); }); const E = ie(m, { [`${m}-${s}`]: s !== void 0, @@ -27340,25 +27381,25 @@ const Vye = ["xs", "sm", "md", "lg", "xl", "xxl"], M7 = /* @__PURE__ */ S.forwar const P = i[0] / 2; R.paddingLeft = P, R.paddingRight = P; } - return p && (R.flex = Ak(p), o === !1 && !R.minWidth && (R.minWidth = 0)), y(/* @__PURE__ */ S.createElement("div", Object.assign({}, v, { + return p && (R.flex = Lk(p), o === !1 && !R.minWidth && (R.minWidth = 0)), y(/* @__PURE__ */ S.createElement("div", Object.assign({}, v, { style: Object.assign(Object.assign(Object.assign({}, R), g), w), className: E, ref: t }), f)); }); -process.env.NODE_ENV !== "production" && (M7.displayName = "Col"); -var Hye = function(e, t) { +process.env.NODE_ENV !== "production" && (A7.displayName = "Col"); +var Qye = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function Ok(e, t) { +function Fk(e, t) { const [r, n] = S.useState(typeof e == "string" ? e : ""), i = () => { if (typeof e == "string" && n(e), typeof e == "object") - for (let o = 0; o < kl.length; o++) { - const a = kl[o]; + for (let o = 0; o < $l.length; o++) { + const a = $l[o]; if (!t[a]) continue; const s = e[a]; @@ -27372,7 +27413,7 @@ function Ok(e, t) { i(); }, [JSON.stringify(e), t]), r; } -const D7 = /* @__PURE__ */ S.forwardRef((e, t) => { +const O7 = /* @__PURE__ */ S.forwardRef((e, t) => { const { prefixCls: r, justify: n, @@ -27382,7 +27423,7 @@ const D7 = /* @__PURE__ */ S.forwardRef((e, t) => { children: s, gutter: l = 0, wrap: c - } = e, u = Hye(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), { + } = e, u = Qye(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), { getPrefixCls: d, direction: h } = S.useContext(gt), [f, p] = S.useState({ @@ -27399,7 +27440,7 @@ const D7 = /* @__PURE__ */ S.forwardRef((e, t) => { lg: !1, xl: !1, xxl: !1 - }), m = Ok(i, g), y = Ok(n, g), C = S.useRef(l), b = I9(); + }), m = Fk(i, g), y = Fk(n, g), C = S.useRef(l), b = L9(); S.useEffect(() => { const N = b.subscribe((F) => { v(F); @@ -27412,8 +27453,8 @@ const D7 = /* @__PURE__ */ S.forwardRef((e, t) => { const N = [void 0, void 0]; return (Array.isArray(l) ? l : [l, void 0]).forEach(($, I) => { if (typeof $ == "object") - for (let V = 0; V < kl.length; V++) { - const H = kl[V]; + for (let V = 0; V < $l.length; V++) { + const H = $l[V]; if (f[H] && $[H] !== void 0) { N[I] = $[H]; break; @@ -27422,7 +27463,7 @@ const D7 = /* @__PURE__ */ S.forwardRef((e, t) => { else N[I] = $; }), N; - }, x = d("row", r), [E, R, P] = kye(x), T = w(), _ = ie(x, { + }, x = d("row", r), [E, R, P] = Yye(x), T = w(), _ = ie(x, { [`${x}-no-wrap`]: c === !1, [`${x}-${y}`]: y, [`${x}-${m}`]: m, @@ -27435,7 +27476,7 @@ const D7 = /* @__PURE__ */ S.forwardRef((e, t) => { gutter: [M, O], wrap: c }), [M, O, c]); - return E(/* @__PURE__ */ S.createElement(_7.Provider, { + return E(/* @__PURE__ */ S.createElement(I7.Provider, { value: L }, /* @__PURE__ */ S.createElement("div", Object.assign({}, u, { className: _, @@ -27443,8 +27484,8 @@ const D7 = /* @__PURE__ */ S.forwardRef((e, t) => { ref: t }), s))); }); -process.env.NODE_ENV !== "production" && (D7.displayName = "Row"); -const zye = (e) => { +process.env.NODE_ENV !== "production" && (O7.displayName = "Row"); +const Jye = (e) => { const { componentCls: t, sizePaddingEdgeHorizontal: r, @@ -27456,7 +27497,7 @@ const zye = (e) => { } = e; return { [t]: Object.assign(Object.assign({}, nn(e)), { - borderBlockStart: `${ee(i)} solid ${n}`, + borderBlockStart: `${te(i)} solid ${n}`, // vertical "&-vertical": { position: "relative", @@ -27467,7 +27508,7 @@ const zye = (e) => { marginBlock: 0, verticalAlign: "middle", borderTop: 0, - borderInlineStart: `${ee(i)} solid ${n}` + borderInlineStart: `${te(i)} solid ${n}` }, "&-horizontal": { display: "flex", @@ -27475,12 +27516,12 @@ const zye = (e) => { width: "100%", minWidth: "100%", // Fix https://github.com/ant-design/ant-design/issues/10914 - margin: `${ee(e.dividerHorizontalGutterMargin)} 0` + margin: `${te(e.dividerHorizontalGutterMargin)} 0` }, [`&-horizontal${t}-with-text`]: { display: "flex", alignItems: "center", - margin: `${ee(e.dividerHorizontalWithTextGutterMargin)} 0`, + margin: `${te(e.dividerHorizontalWithTextGutterMargin)} 0`, color: e.colorTextHeading, fontWeight: 500, fontSize: e.fontSizeLG, @@ -27490,7 +27531,7 @@ const zye = (e) => { "&::before, &::after": { position: "relative", width: "50%", - borderBlockStart: `${ee(i)} solid transparent`, + borderBlockStart: `${te(i)} solid transparent`, // Chrome not accept `inherit` in `border-top` borderBlockStartColor: "inherit", borderBlockEnd: 0, @@ -27523,7 +27564,7 @@ const zye = (e) => { background: "none", borderColor: n, borderStyle: "dashed", - borderWidth: `${ee(i)} 0 0` + borderWidth: `${te(i)} 0 0` }, [`&-horizontal${t}-with-text${t}-dashed`]: { "&::before, &::after": { @@ -27565,30 +27606,30 @@ const zye = (e) => { } }) }; -}, Gye = (e) => ({ +}, e0e = (e) => ({ textPaddingInline: "1em", orientationMargin: 0.05, verticalMarginInline: e.marginXS -}), Wye = Ur("Divider", (e) => { +}), t0e = Kr("Divider", (e) => { const t = fr(e, { dividerHorizontalWithTextGutterMargin: e.margin, dividerHorizontalGutterMargin: e.marginLG, sizePaddingEdgeHorizontal: 0 }); - return [zye(t)]; -}, Gye, { + return [Jye(t)]; +}, e0e, { unitless: { orientationMargin: !0 } }); -var jye = function(e, t) { +var r0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const BI = (e) => { +const BD = (e) => { const { getPrefixCls: t, direction: r, @@ -27604,7 +27645,7 @@ const BI = (e) => { dashed: d, plain: h, style: f - } = e, p = jye(e, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]), g = t("divider", i), [v, m, y] = Wye(g), C = !!u, b = a === "left" && s != null, w = a === "right" && s != null, x = ie(g, n == null ? void 0 : n.className, m, y, `${g}-${o}`, { + } = e, p = r0e(e, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]), g = t("divider", i), [v, m, y] = t0e(g), C = !!u, b = a === "left" && s != null, w = a === "right" && s != null, x = ie(g, n == null ? void 0 : n.className, m, y, `${g}-${o}`, { [`${g}-with-text`]: C, [`${g}-with-text-${a}`]: C, [`${g}-dashed`]: !!d, @@ -27632,14 +27673,14 @@ const BI = (e) => { style: R }, u))); }; -process.env.NODE_ENV !== "production" && (BI.displayName = "Divider"); -function Uye(e) { +process.env.NODE_ENV !== "production" && (BD.displayName = "Divider"); +function n0e(e) { return !!(e.addonBefore || e.addonAfter); } -function Kye(e) { +function i0e(e) { return !!(e.prefix || e.suffix || e.allowClear); } -function Lk(e, t, r) { +function Nk(e, t, r) { var n = t.cloneNode(!0), i = Object.create(e, { target: { value: n @@ -27652,21 +27693,21 @@ function Lk(e, t, r) { t.setSelectionRange.apply(t, arguments); }, i; } -function sS(e, t, r, n) { +function uS(e, t, r, n) { if (r) { var i = t; if (t.type === "click") { - i = Lk(t, e, ""), r(i); + i = Nk(t, e, ""), r(i); return; } if (e.type !== "file" && n !== void 0) { - i = Lk(t, e, n), r(i); + i = Nk(t, e, n), r(i); return; } r(i); } } -function Yye(e, t) { +function o0e(e, t) { if (e) { e.focus(t); var r = t || {}, n = r.cursor; @@ -27685,11 +27726,11 @@ function Yye(e, t) { } } } -var I7 = /* @__PURE__ */ k.forwardRef(function(e, t) { - var r, n, i = e.inputElement, o = e.children, a = e.prefixCls, s = e.prefix, l = e.suffix, c = e.addonBefore, u = e.addonAfter, d = e.className, h = e.style, f = e.disabled, p = e.readOnly, g = e.focused, v = e.triggerFocus, m = e.allowClear, y = e.value, C = e.handleReset, b = e.hidden, w = e.classes, x = e.classNames, E = e.dataAttrs, R = e.styles, P = e.components, T = o ?? i, _ = (P == null ? void 0 : P.affixWrapper) || "span", D = (P == null ? void 0 : P.groupWrapper) || "span", A = (P == null ? void 0 : P.wrapper) || "span", M = (P == null ? void 0 : P.groupAddon) || "span", O = ve(null), L = function(re) { +var L7 = /* @__PURE__ */ k.forwardRef(function(e, t) { + var r, n, i = e.inputElement, o = e.children, a = e.prefixCls, s = e.prefix, l = e.suffix, c = e.addonBefore, u = e.addonAfter, d = e.className, h = e.style, f = e.disabled, p = e.readOnly, g = e.focused, v = e.triggerFocus, m = e.allowClear, y = e.value, C = e.handleReset, b = e.hidden, w = e.classes, x = e.classNames, E = e.dataAttrs, R = e.styles, P = e.components, T = o ?? i, _ = (P == null ? void 0 : P.affixWrapper) || "span", D = (P == null ? void 0 : P.groupWrapper) || "span", A = (P == null ? void 0 : P.wrapper) || "span", M = (P == null ? void 0 : P.groupAddon) || "span", O = ve(null), L = function(ne) { var le; - (le = O.current) !== null && le !== void 0 && le.contains(re.target) && (v == null || v()); - }, N = Kye(e), F = /* @__PURE__ */ yre(T, { + (le = O.current) !== null && le !== void 0 && le.contains(ne.target) && (v == null || v()); + }, N = i0e(e), F = /* @__PURE__ */ bre(T, { value: y, className: ie(T.props.className, !N && (x == null ? void 0 : x.variant)) || null }), $ = ve(null); @@ -27703,8 +27744,8 @@ var I7 = /* @__PURE__ */ k.forwardRef(function(e, t) { var H, B = !f && !p && y, W = "".concat(a, "-clear-icon"), j = pt(m) === "object" && m !== null && m !== void 0 && m.clearIcon ? m.clearIcon : "✖"; V = /* @__PURE__ */ k.createElement("span", { onClick: C, - onMouseDown: function(re) { - return re.preventDefault(); + onMouseDown: function(ne) { + return ne.preventDefault(); }, className: ie(W, (H = {}, U(H, "".concat(W, "-hidden"), !B), U(H, "".concat(W, "-has-suffix"), !!l), H)), role: "button", @@ -27726,8 +27767,8 @@ var I7 = /* @__PURE__ */ k.forwardRef(function(e, t) { style: R == null ? void 0 : R.prefix }, s), F, J); } - if (Uye(e)) { - var te = "".concat(a, "-group"), Q = "".concat(te, "-addon"), Y = "".concat(te, "-wrapper"), K = ie("".concat(a, "-wrapper"), te, w == null ? void 0 : w.wrapper, x == null ? void 0 : x.wrapper), ae = ie(Y, U({}, "".concat(Y, "-disabled"), f), w == null ? void 0 : w.group, x == null ? void 0 : x.groupWrapper); + if (n0e(e)) { + var re = "".concat(a, "-group"), Q = "".concat(re, "-addon"), Y = "".concat(re, "-wrapper"), K = ie("".concat(a, "-wrapper"), re, w == null ? void 0 : w.wrapper, x == null ? void 0 : x.wrapper), ae = ie(Y, U({}, "".concat(Y, "-disabled"), f), w == null ? void 0 : w.group, x == null ? void 0 : x.groupWrapper); F = /* @__PURE__ */ k.createElement(D, { className: ae, ref: $ @@ -27744,12 +27785,12 @@ var I7 = /* @__PURE__ */ k.forwardRef(function(e, t) { style: Z(Z({}, (n = F.props) === null || n === void 0 ? void 0 : n.style), h), hidden: b }); -}), qye = ["show"]; -function A7(e, t) { +}), a0e = ["show"]; +function F7(e, t) { return S.useMemo(function() { var r = {}; t && (r.show = pt(t) === "object" && t.formatter ? t.formatter : !!t), r = Z(Z({}, r), e); - var n = r, i = n.show, o = Nt(n, qye); + var n = r, i = n.show, o = Nt(n, a0e); return Z(Z({}, o), {}, { show: !!i, showFormatter: typeof i == "function" ? i : void 0, @@ -27759,12 +27800,12 @@ function A7(e, t) { }); }, [e, t]); } -var Xye = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], Zye = /* @__PURE__ */ qr(function(e, t) { - var r = e.autoComplete, n = e.onChange, i = e.onFocus, o = e.onBlur, a = e.onPressEnter, s = e.onKeyDown, l = e.prefixCls, c = l === void 0 ? "rc-input" : l, u = e.disabled, d = e.htmlSize, h = e.className, f = e.maxLength, p = e.suffix, g = e.showCount, v = e.count, m = e.type, y = m === void 0 ? "text" : m, C = e.classes, b = e.classNames, w = e.styles, x = e.onCompositionStart, E = e.onCompositionEnd, R = Nt(e, Xye), P = Le(!1), T = ce(P, 2), _ = T[0], D = T[1], A = ve(!1), M = ve(null), O = ve(null), L = function(pe) { - M.current && Yye(M.current, pe); +var s0e = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], l0e = /* @__PURE__ */ Ur(function(e, t) { + var r = e.autoComplete, n = e.onChange, i = e.onFocus, o = e.onBlur, a = e.onPressEnter, s = e.onKeyDown, l = e.prefixCls, c = l === void 0 ? "rc-input" : l, u = e.disabled, d = e.htmlSize, h = e.className, f = e.maxLength, p = e.suffix, g = e.showCount, v = e.count, m = e.type, y = m === void 0 ? "text" : m, C = e.classes, b = e.classNames, w = e.styles, x = e.onCompositionStart, E = e.onCompositionEnd, R = Nt(e, s0e), P = Ie(!1), T = ce(P, 2), _ = T[0], D = T[1], A = ve(!1), M = ve(null), O = ve(null), L = function(pe) { + M.current && o0e(M.current, pe); }, N = pn(e.defaultValue, { value: e.value - }), F = ce(N, 2), $ = F[0], I = F[1], V = $ == null ? "" : String($), H = Le(null), B = ce(H, 2), W = B[0], j = B[1], X = A7(v, g), q = X.max || f, J = X.strategy(V), te = !!q && J > q; + }), F = ce(N, 2), $ = F[0], I = F[1], V = $ == null ? "" : String($), H = Ie(null), B = ce(H, 2), W = B[0], j = B[1], X = F7(v, g), q = X.max || f, J = X.strategy(V), re = !!q && J > q; Zs(t, function() { var de; return { @@ -27800,7 +27841,7 @@ var Xye = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onK } } else if (be.source === "compositionEnd") return; - I(Me), M.current && sS(M.current, pe, n, Me); + I(Me), M.current && uS(M.current, pe, n, Me); }; Bt(function() { if (W) { @@ -27820,11 +27861,11 @@ var Xye = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onK a && pe.key === "Enter" && a(pe), s == null || s(pe); }, G = function(pe) { D(!0), i == null || i(pe); - }, re = function(pe) { + }, ne = function(pe) { D(!1), o == null || o(pe); }, le = function(pe) { - I(""), L(), M.current && sS(M.current, pe, n); - }, ue = te && "".concat(c, "-out-of-range"), he = function() { + I(""), L(), M.current && uS(M.current, pe, n); + }, ue = re && "".concat(c, "-out-of-range"), he = function() { var pe = Sn(e, [ "prefixCls", "onPressEnter", @@ -27848,7 +27889,7 @@ var Xye = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onK }, pe, { onChange: Y, onFocus: G, - onBlur: re, + onBlur: ne, onKeyDown: ae, className: ie(c, U({}, "".concat(c, "-disabled"), u), b == null ? void 0 : b.input), style: w == null ? void 0 : w.input, @@ -27875,7 +27916,7 @@ var Xye = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onK } return null; }; - return /* @__PURE__ */ k.createElement(I7, Te({}, R, { + return /* @__PURE__ */ k.createElement(L7, Te({}, R, { prefixCls: c, className: ie(h, ue), handleReset: le, @@ -27889,19 +27930,19 @@ var Xye = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onK styles: w }), he()); }); -const Qye = (e) => { +const c0e = (e) => { const { getPrefixCls: t, direction: r } = Jt(gt), { prefixCls: n, className: i - } = e, o = t("input-group", n), a = t("input"), [s, l] = LI(a), c = ie(o, { + } = e, o = t("input-group", n), a = t("input"), [s, l] = LD(a), c = ie(o, { [`${o}-lg`]: e.size === "large", [`${o}-sm`]: e.size === "small", [`${o}-compact`]: e.compact, [`${o}-rtl`]: r === "rtl" - }, l, i), u = Jt(Ea), d = Ct(() => Object.assign(Object.assign({}, u), { + }, l, i), u = Jt(Ea), d = St(() => Object.assign(Object.assign({}, u), { isFormItemInput: !1 }), [u]); return process.env.NODE_ENV !== "production" && Rr("Input.Group").deprecated(!1, "Input.Group", "Space.Compact"), s(/* @__PURE__ */ S.createElement("span", { @@ -27914,13 +27955,13 @@ const Qye = (e) => { }, /* @__PURE__ */ S.createElement(Ea.Provider, { value: d }, e.children))); -}, O7 = (e) => { +}, N7 = (e) => { let t; return typeof e == "object" && (e != null && e.clearIcon) ? t = e : e && (t = { - clearIcon: /* @__PURE__ */ k.createElement(Qf, null) + clearIcon: /* @__PURE__ */ k.createElement(ep, null) }), t; }; -function L7(e, t) { +function k7(e, t) { const r = ve([]), n = () => { r.current.push(setTimeout(() => { var i, o, a, s; @@ -27931,17 +27972,17 @@ function L7(e, t) { i && clearTimeout(i); })), []), n; } -function Jye(e) { +function u0e(e) { return !!(e.prefix || e.suffix || e.allowClear || e.showCount); } -var e0e = function(e, t) { +var d0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function t0e(e, t) { +function h0e(e, t) { if (!e) return; e.focus(t); @@ -27962,7 +28003,7 @@ function t0e(e, t) { } } } -const F7 = /* @__PURE__ */ qr((e, t) => { +const $7 = /* @__PURE__ */ Ur((e, t) => { var r; const { prefixCls: n, @@ -27983,7 +28024,7 @@ const F7 = /* @__PURE__ */ qr((e, t) => { onChange: y, classNames: C, variant: b - } = e, w = e0e(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]); + } = e, w = d0e(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]); if (process.env.NODE_ENV !== "production") { const { deprecated: G @@ -27994,32 +28035,32 @@ const F7 = /* @__PURE__ */ qr((e, t) => { getPrefixCls: x, direction: E, input: R - } = k.useContext(gt), P = x("input", n), T = ve(null), _ = mi(P), [D, A, M] = LI(P, _), { + } = k.useContext(gt), P = x("input", n), T = ve(null), _ = yi(P), [D, A, M] = LD(P, _), { compactSize: O, compactItemClassnames: L - } = xm(P, E), N = Ro((G) => { - var re; - return (re = a ?? O) !== null && re !== void 0 ? re : G; - }), F = k.useContext(Ll), $ = s ?? F, { + } = Rm(P, E), N = Ro((G) => { + var ne; + return (ne = a ?? O) !== null && ne !== void 0 ? ne : G; + }), F = k.useContext(Fl), $ = s ?? F, { status: I, hasFeedback: V, feedbackIcon: H - } = Jt(Ea), B = qb(I, o), W = Jye(e) || !!V, j = ve(W); + } = Jt(Ea), B = Zb(I, o), W = u0e(e) || !!V, j = ve(W); if (process.env.NODE_ENV !== "production") { const G = Rr("Input"); Bt(() => { - var re; - W && !j.current && process.env.NODE_ENV !== "production" && G(document.activeElement === ((re = T.current) === null || re === void 0 ? void 0 : re.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), j.current = W; + var ne; + W && !j.current && process.env.NODE_ENV !== "production" && G(document.activeElement === ((ne = T.current) === null || ne === void 0 ? void 0 : ne.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), j.current = W; }, [W]); } - const X = L7(T, !0), q = (G) => { + const X = k7(T, !0), q = (G) => { X(), l == null || l(G); }, J = (G) => { X(), c == null || c(G); - }, te = (G) => { + }, re = (G) => { X(), y == null || y(G); - }, Q = (V || u) && /* @__PURE__ */ k.createElement(k.Fragment, null, u, V && H), Y = O7(d ?? (R == null ? void 0 : R.allowClear)), [K, ae] = mI("input", b, i); - return D(/* @__PURE__ */ k.createElement(Zye, Object.assign({ + }, Q = (V || u) && /* @__PURE__ */ k.createElement(k.Fragment, null, u, V && H), Y = N7(d ?? (R == null ? void 0 : R.allowClear)), [K, ae] = mD("input", b, i); + return D(/* @__PURE__ */ k.createElement(l0e, Object.assign({ ref: Eo(t, T), prefixCls: P, autoComplete: R == null ? void 0 : R.autoComplete @@ -28032,12 +28073,12 @@ const F7 = /* @__PURE__ */ qr((e, t) => { suffix: Q, allowClear: Y, className: ie(p, m, M, _, L, R == null ? void 0 : R.className), - onChange: te, - addonBefore: f && /* @__PURE__ */ k.createElement(Dv, { + onChange: re, + addonBefore: f && /* @__PURE__ */ k.createElement(Av, { form: !0, space: !0 }, f), - addonAfter: h && /* @__PURE__ */ k.createElement(Dv, { + addonAfter: h && /* @__PURE__ */ k.createElement(Av, { form: !0, space: !0 }, h), @@ -28049,7 +28090,7 @@ const F7 = /* @__PURE__ */ qr((e, t) => { }, C == null ? void 0 : C.input, (r = R == null ? void 0 : R.classNames) === null || r === void 0 ? void 0 : r.input, A), variant: ie({ [`${P}-${K}`]: ae - }, nS(P, B)), + }, aS(P, B)), affixWrapper: ie({ [`${P}-affix-wrapper-sm`]: N === "small", [`${P}-affix-wrapper-lg`]: N === "large", @@ -28063,12 +28104,12 @@ const F7 = /* @__PURE__ */ qr((e, t) => { [`${P}-group-wrapper-lg`]: N === "large", [`${P}-group-wrapper-rtl`]: E === "rtl", [`${P}-group-wrapper-${K}`]: ae - }, nS(`${P}-group-wrapper`, B, V), A) + }, aS(`${P}-group-wrapper`, B, V), A) }) }))); }); -process.env.NODE_ENV !== "production" && (F7.displayName = "Input"); -const aw = F7, r0e = (e) => { +process.env.NODE_ENV !== "production" && ($7.displayName = "Input"); +const lw = $7, f0e = (e) => { const { componentCls: t, paddingXS: r @@ -28095,30 +28136,30 @@ const aw = F7, r0e = (e) => { } } }; -}, n0e = Ur(["Input", "OTP"], (e) => { - const t = fr(e, MI(e)); - return [r0e(t)]; -}, DI); -var i0e = function(e, t) { +}, p0e = Kr(["Input", "OTP"], (e) => { + const t = fr(e, MD(e)); + return [f0e(t)]; +}, DD); +var g0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const o0e = /* @__PURE__ */ S.forwardRef((e, t) => { +const v0e = /* @__PURE__ */ S.forwardRef((e, t) => { const { value: r, onChange: n, onActiveChange: i, index: o, mask: a - } = e, s = i0e(e, ["value", "onChange", "onActiveChange", "index", "mask"]), l = r && typeof a == "string" ? a : r, c = (p) => { + } = e, s = g0e(e, ["value", "onChange", "onActiveChange", "index", "mask"]), l = r && typeof a == "string" ? a : r, c = (p) => { n(o, p.target.value); }, u = S.useRef(null); S.useImperativeHandle(t, () => u.current); const d = () => { - Nr(() => { + kr(() => { var p; const g = (p = u.current) === null || p === void 0 ? void 0 : p.input; document.activeElement === g && g && g.select(); @@ -28131,7 +28172,7 @@ const o0e = /* @__PURE__ */ S.forwardRef((e, t) => { }, f = (p) => { p.key === "Backspace" && !r && i(o - 1), d(); }; - return /* @__PURE__ */ S.createElement(aw, Object.assign({}, s, { + return /* @__PURE__ */ S.createElement(lw, Object.assign({}, s, { ref: u, value: l, onInput: c, @@ -28143,17 +28184,17 @@ const o0e = /* @__PURE__ */ S.forwardRef((e, t) => { type: a === !0 ? "password" : "text" })); }); -var a0e = function(e, t) { +var m0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function Ly(e) { +function ky(e) { return (e || "").split(""); } -const s0e = /* @__PURE__ */ S.forwardRef((e, t) => { +const y0e = /* @__PURE__ */ S.forwardRef((e, t) => { const { prefixCls: r, length: n = 6, @@ -28167,7 +28208,7 @@ const s0e = /* @__PURE__ */ S.forwardRef((e, t) => { status: d, autoFocus: h, mask: f - } = e, p = a0e(e, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "variant", "disabled", "status", "autoFocus", "mask"]); + } = e, p = m0e(e, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "variant", "disabled", "status", "autoFocus", "mask"]); if (process.env.NODE_ENV !== "production") { const V = Rr("Input.OTP"); process.env.NODE_ENV !== "production" && V(!(typeof f == "string" && f.length > 1), "usage", "`mask` prop should be a single character."); @@ -28179,7 +28220,7 @@ const s0e = /* @__PURE__ */ S.forwardRef((e, t) => { aria: !0, data: !0, attr: !0 - }), C = mi(m), [b, w, x] = n0e(m, C), E = Ro((V) => i ?? V), R = S.useContext(Ea), P = qb(R.status, d), T = S.useMemo(() => Object.assign(Object.assign({}, R), { + }), C = yi(m), [b, w, x] = p0e(m, C), E = Ro((V) => i ?? V), R = S.useContext(Ea), P = Zb(R.status, d), T = S.useMemo(() => Object.assign(Object.assign({}, R), { status: P, hasFeedback: !1, feedbackIcon: null @@ -28196,21 +28237,21 @@ const s0e = /* @__PURE__ */ S.forwardRef((e, t) => { }, nativeElement: _.current })); - const A = (V) => l ? l(V) : V, [M, O] = S.useState(Ly(A(o || ""))); + const A = (V) => l ? l(V) : V, [M, O] = S.useState(ky(A(o || ""))); S.useEffect(() => { - a !== void 0 && O(Ly(a)); + a !== void 0 && O(ky(a)); }, [a]); - const L = Kr((V) => { + const L = Yr((V) => { O(V), s && V.length === n && V.every((H) => H) && V.some((H, B) => M[B] !== H) && s(V.join("")); - }), N = Kr((V, H) => { + }), N = Yr((V, H) => { let B = $e(M); for (let j = 0; j < V; j += 1) B[j] || (B[j] = ""); - H.length <= 1 ? B[V] = H : B = B.slice(0, V).concat(Ly(H)), B = B.slice(0, n); + H.length <= 1 ? B[V] = H : B = B.slice(0, V).concat(ky(H)), B = B.slice(0, n); for (let j = B.length - 1; j >= 0 && !B[j]; j -= 1) B.pop(); const W = A(B.map((j) => j || " ").join("")); - return B = Ly(W).map((j, X) => j === " " && !B[X] ? B[X] : j), B; + return B = ky(W).map((j, X) => j === " " && !B[X] ? B[X] : j), B; }), F = (V, H) => { var B; const W = N(V, H), j = Math.min(V + H.length, n - 1); @@ -28237,7 +28278,7 @@ const s0e = /* @__PURE__ */ S.forwardRef((e, t) => { length: n }).map((V, H) => { const B = `otp-${H}`, W = M[H] || ""; - return /* @__PURE__ */ S.createElement(o0e, Object.assign({ + return /* @__PURE__ */ S.createElement(v0e, Object.assign({ ref: (j) => { D.current[H] = j; }, @@ -28253,48 +28294,48 @@ const s0e = /* @__PURE__ */ S.forwardRef((e, t) => { }, I)); })))); }); -var l0e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" }, c0e = function(t, r) { +var C0e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" }, S0e = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: l0e + icon: C0e })); -}, N7 = /* @__PURE__ */ S.forwardRef(c0e); -process.env.NODE_ENV !== "production" && (N7.displayName = "EyeInvisibleOutlined"); -var u0e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, d0e = function(t, r) { +}, B7 = /* @__PURE__ */ S.forwardRef(S0e); +process.env.NODE_ENV !== "production" && (B7.displayName = "EyeInvisibleOutlined"); +var b0e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, w0e = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: u0e + icon: b0e })); -}, VI = /* @__PURE__ */ S.forwardRef(d0e); -process.env.NODE_ENV !== "production" && (VI.displayName = "EyeOutlined"); -var h0e = function(e, t) { +}, VD = /* @__PURE__ */ S.forwardRef(w0e); +process.env.NODE_ENV !== "production" && (VD.displayName = "EyeOutlined"); +var x0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const f0e = (e) => e ? /* @__PURE__ */ S.createElement(VI, null) : /* @__PURE__ */ S.createElement(N7, null), p0e = { +const E0e = (e) => e ? /* @__PURE__ */ S.createElement(VD, null) : /* @__PURE__ */ S.createElement(B7, null), R0e = { click: "onClick", hover: "onMouseOver" -}, k7 = /* @__PURE__ */ S.forwardRef((e, t) => { +}, V7 = /* @__PURE__ */ S.forwardRef((e, t) => { const { disabled: r, action: n = "click", visibilityToggle: i = !0, - iconRender: o = f0e - } = e, a = typeof i == "object" && i.visible !== void 0, [s, l] = Le(() => a ? i.visible : !1), c = ve(null); + iconRender: o = E0e + } = e, a = typeof i == "object" && i.visible !== void 0, [s, l] = Ie(() => a ? i.visible : !1), c = ve(null); S.useEffect(() => { a && l(i.visible); }, [a, i]); - const u = L7(c), d = () => { + const u = k7(c), d = () => { r || (s && u(), l((R) => { var P; const T = !R; return typeof i == "object" && ((P = i.onVisibleChange) === null || P === void 0 || P.call(i, T)), T; })); }, h = (R) => { - const P = p0e[n] || "", T = o(s), _ = { + const P = R0e[n] || "", T = o(s), _ = { [P]: d, className: `${R}-icon`, key: "passwordIcon", @@ -28311,7 +28352,7 @@ const f0e = (e) => e ? /* @__PURE__ */ S.createElement(VI, null) : /* @__PURE__ prefixCls: p, inputPrefixCls: g, size: v - } = e, m = h0e(e, ["className", "prefixCls", "inputPrefixCls", "size"]), { + } = e, m = x0e(e, ["className", "prefixCls", "inputPrefixCls", "size"]), { getPrefixCls: y } = S.useContext(gt), C = y("input", g), b = y("input-password", p), w = i && h(b), x = ie(b, f, { [`${b}-${v}`]: !!v @@ -28321,19 +28362,19 @@ const f0e = (e) => e ? /* @__PURE__ */ S.createElement(VI, null) : /* @__PURE__ prefixCls: C, suffix: w }); - return v && (E.size = v), /* @__PURE__ */ S.createElement(aw, Object.assign({ + return v && (E.size = v), /* @__PURE__ */ S.createElement(lw, Object.assign({ ref: Eo(t, c) }, E)); }); -process.env.NODE_ENV !== "production" && (k7.displayName = "Input.Password"); -var g0e = function(e, t) { +process.env.NODE_ENV !== "production" && (V7.displayName = "Input.Password"); +var P0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const $7 = /* @__PURE__ */ S.forwardRef((e, t) => { +const H7 = /* @__PURE__ */ S.forwardRef((e, t) => { const { prefixCls: r, inputPrefixCls: n, @@ -28348,12 +28389,12 @@ const $7 = /* @__PURE__ */ S.forwardRef((e, t) => { onChange: h, onCompositionStart: f, onCompositionEnd: p - } = e, g = g0e(e, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]), { + } = e, g = P0e(e, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]), { getPrefixCls: v, direction: m } = S.useContext(gt), y = S.useRef(!1), C = v("input-search", r), b = v("input", n), { compactSize: w - } = xm(C, m), x = Ro((I) => { + } = Rm(C, m), x = Ro((I) => { var V; return (V = o ?? w) !== null && V !== void 0 ? V : I; }), E = S.useRef(null), R = (I) => { @@ -28370,7 +28411,7 @@ const $7 = /* @__PURE__ */ S.forwardRef((e, t) => { }); }, _ = (I) => { y.current || c || T(I); - }, D = typeof s == "boolean" ? /* @__PURE__ */ S.createElement(Zb, null) : null, A = `${C}-button`; + }, D = typeof s == "boolean" ? /* @__PURE__ */ S.createElement(Jb, null) : null, A = `${C}-button`; let M; const O = s || {}, L = O.type && O.type.__ANT_BUTTON === !0; L || O.type === "button" ? M = eo(O, Object.assign({ @@ -28383,7 +28424,7 @@ const $7 = /* @__PURE__ */ S.forwardRef((e, t) => { }, L ? { className: A, size: x - } : {})) : M = /* @__PURE__ */ S.createElement(kr, { + } : {})) : M = /* @__PURE__ */ S.createElement(Fr, { className: A, type: s ? "primary" : void 0, size: x, @@ -28405,7 +28446,7 @@ const $7 = /* @__PURE__ */ S.forwardRef((e, t) => { }, $ = (I) => { y.current = !1, p == null || p(I); }; - return /* @__PURE__ */ S.createElement(aw, Object.assign({ + return /* @__PURE__ */ S.createElement(lw, Object.assign({ ref: Eo(E, t), onPressEnter: _ }, g, { @@ -28420,8 +28461,8 @@ const $7 = /* @__PURE__ */ S.forwardRef((e, t) => { disabled: u })); }); -process.env.NODE_ENV !== "production" && ($7.displayName = "Search"); -var v0e = ` +process.env.NODE_ENV !== "production" && (H7.displayName = "Search"); +var T0e = ` min-height:0 !important; max-height:none !important; height:0 !important; @@ -28432,12 +28473,12 @@ var v0e = ` top:0 !important; right:0 !important; pointer-events: none !important; -`, m0e = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break", "white-space"], J1 = {}, Qo; -function y0e(e) { +`, _0e = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break", "white-space"], J1 = {}, Qo; +function M0e(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = e.getAttribute("id") || e.getAttribute("data-reactid") || e.getAttribute("name"); if (t && J1[r]) return J1[r]; - var n = window.getComputedStyle(e), i = n.getPropertyValue("box-sizing") || n.getPropertyValue("-moz-box-sizing") || n.getPropertyValue("-webkit-box-sizing"), o = parseFloat(n.getPropertyValue("padding-bottom")) + parseFloat(n.getPropertyValue("padding-top")), a = parseFloat(n.getPropertyValue("border-bottom-width")) + parseFloat(n.getPropertyValue("border-top-width")), s = m0e.map(function(c) { + var n = window.getComputedStyle(e), i = n.getPropertyValue("box-sizing") || n.getPropertyValue("-moz-box-sizing") || n.getPropertyValue("-webkit-box-sizing"), o = parseFloat(n.getPropertyValue("padding-bottom")) + parseFloat(n.getPropertyValue("padding-top")), a = parseFloat(n.getPropertyValue("border-bottom-width")) + parseFloat(n.getPropertyValue("border-top-width")), s = _0e.map(function(c) { return "".concat(c, ":").concat(n.getPropertyValue(c)); }).join(";"), l = { sizingStyle: s, @@ -28447,11 +28488,11 @@ function y0e(e) { }; return t && r && (J1[r] = l), l; } -function C0e(e) { +function D0e(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null; Qo || (Qo = document.createElement("textarea"), Qo.setAttribute("tab-index", "-1"), Qo.setAttribute("aria-hidden", "true"), document.body.appendChild(Qo)), e.getAttribute("wrap") ? Qo.setAttribute("wrap", e.getAttribute("wrap")) : Qo.removeAttribute("wrap"); - var i = y0e(e, t), o = i.paddingSize, a = i.borderSize, s = i.boxSizing, l = i.sizingStyle; - Qo.setAttribute("style", "".concat(l, ";").concat(v0e)), Qo.value = e.value || e.placeholder || ""; + var i = M0e(e, t), o = i.paddingSize, a = i.borderSize, s = i.boxSizing, l = i.sizingStyle; + Qo.setAttribute("style", "".concat(l, ";").concat(T0e)), Qo.value = e.value || e.placeholder || ""; var c = void 0, u = void 0, d, h = Qo.scrollHeight; if (s === "border-box" ? h += a : s === "content-box" && (h -= o), r !== null || n !== null) { Qo.value = " "; @@ -28465,10 +28506,10 @@ function C0e(e) { }; return c && (p.minHeight = c), u && (p.maxHeight = u), p; } -var S0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"], ex = 0, tx = 1, rx = 2, b0e = /* @__PURE__ */ S.forwardRef(function(e, t) { +var I0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"], ex = 0, tx = 1, rx = 2, A0e = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e, n = r.prefixCls; r.onPressEnter; - var i = r.defaultValue, o = r.value, a = r.autoSize, s = r.onResize, l = r.className, c = r.style, u = r.disabled, d = r.onChange, h = r.onInternalAutoSize, f = Nt(r, S0e), p = pn(i, { + var i = r.defaultValue, o = r.value, a = r.autoSize, s = r.onResize, l = r.className, c = r.style, u = r.disabled, d = r.onChange, h = r.onInternalAutoSize, f = Nt(r, I0e), p = pn(i, { value: o, postState: function(j) { return j ?? ""; @@ -28500,15 +28541,15 @@ var S0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "on if (D === ex) A(tx); else if (D === tx) { - var W = C0e(C.current, !1, x, E); + var W = D0e(C.current, !1, x, E); A(rx), N(W); } else P(); }, [D]); var $ = S.useRef(), I = function() { - Nr.cancel($.current); + kr.cancel($.current); }, V = function(j) { - D === rx && (s == null || s(j), a && (I(), $.current = Nr(function() { + D === rx && (s == null || s(j), a && (I(), $.current = kr(function() { F(); }))); }; @@ -28527,8 +28568,8 @@ var S0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "on value: v, onChange: y }))); -}), w0e = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "readOnly"], x0e = /* @__PURE__ */ k.forwardRef(function(e, t) { - var r, n = e.defaultValue, i = e.value, o = e.onFocus, a = e.onBlur, s = e.onChange, l = e.allowClear, c = e.maxLength, u = e.onCompositionStart, d = e.onCompositionEnd, h = e.suffix, f = e.prefixCls, p = f === void 0 ? "rc-textarea" : f, g = e.showCount, v = e.count, m = e.className, y = e.style, C = e.disabled, b = e.hidden, w = e.classNames, x = e.styles, E = e.onResize, R = e.readOnly, P = Nt(e, w0e), T = pn(n, { +}), O0e = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "readOnly"], L0e = /* @__PURE__ */ k.forwardRef(function(e, t) { + var r, n = e.defaultValue, i = e.value, o = e.onFocus, a = e.onBlur, s = e.onChange, l = e.allowClear, c = e.maxLength, u = e.onCompositionStart, d = e.onCompositionEnd, h = e.suffix, f = e.prefixCls, p = f === void 0 ? "rc-textarea" : f, g = e.showCount, v = e.count, m = e.className, y = e.style, C = e.disabled, b = e.hidden, w = e.classNames, x = e.styles, E = e.onResize, R = e.readOnly, P = Nt(e, O0e), T = pn(n, { value: i, defaultValue: n }), _ = ce(T, 2), D = _[0], A = _[1], M = D == null ? "" : String(D), O = k.useState(!1), L = ce(O, 2), N = L[0], F = L[1], $ = k.useRef(!1), I = k.useState(null), V = ce(I, 2), H = V[0], B = V[1], W = ve(null), j = ve(null), X = function() { @@ -28552,18 +28593,18 @@ var S0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "on return !C && ke; }); }, [C]); - var J = k.useState(null), te = ce(J, 2), Q = te[0], Y = te[1]; + var J = k.useState(null), re = ce(J, 2), Q = re[0], Y = re[1]; k.useEffect(function() { if (Q) { var ke; (ke = X()).setSelectionRange.apply(ke, $e(Q)); } }, [Q]); - var K = A7(v, g), ae = (r = K.max) !== null && r !== void 0 ? r : c, G = Number(ae) > 0, re = K.strategy(M), le = !!ae && re > ae, ue = function(we, Ce) { + var K = F7(v, g), ae = (r = K.max) !== null && r !== void 0 ? r : c, G = Number(ae) > 0, ne = K.strategy(M), le = !!ae && ne > ae, ue = function(we, Ce) { var xe = Ce; !$.current && K.exceedFormatter && K.max && K.strategy(Ce) > K.max && (xe = K.exceedFormatter(Ce, { max: K.max - }), Ce !== xe && Y([X().selectionStart || 0, X().selectionEnd || 0])), A(xe), sS(we.currentTarget, we, s, xe); + }), Ce !== xe && Y([X().selectionStart || 0, X().selectionEnd || 0])), A(xe), uS(we.currentTarget, we, s, xe); }, he = function(we) { $.current = !0, u == null || u(we); }, fe = function(we) { @@ -28578,13 +28619,13 @@ var S0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "on }, be = function(we) { F(!1), a == null || a(we); }, Me = function(we) { - A(""), q(), sS(X(), we, s); + A(""), q(), uS(X(), we, s); }, Ve = h, oe; K.show && (K.showFormatter ? oe = K.showFormatter({ value: M, - count: re, + count: ne, maxLength: ae - }) : oe = "".concat(re).concat(G ? " / ".concat(ae) : ""), Ve = /* @__PURE__ */ k.createElement(k.Fragment, null, Ve, /* @__PURE__ */ k.createElement("span", { + }) : oe = "".concat(ne).concat(G ? " / ".concat(ae) : ""), Ve = /* @__PURE__ */ k.createElement(k.Fragment, null, Ve, /* @__PURE__ */ k.createElement("span", { className: ie("".concat(p, "-data-count"), w == null ? void 0 : w.count), style: x == null ? void 0 : x.count }, oe))); @@ -28592,7 +28633,7 @@ var S0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "on var Ce; E == null || E(we), (Ce = X()) !== null && Ce !== void 0 && Ce.style.height && B(!0); }, Ne = !P.autoSize && !g && !l; - return /* @__PURE__ */ k.createElement(I7, { + return /* @__PURE__ */ k.createElement(L7, { ref: W, value: M, allowClear: l, @@ -28615,7 +28656,7 @@ var S0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "on }, hidden: b, readOnly: R - }, /* @__PURE__ */ k.createElement(b0e, Te({}, P, { + }, /* @__PURE__ */ k.createElement(A0e, Te({}, P, { maxLength: c, onKeyDown: pe, onChange: de, @@ -28633,14 +28674,14 @@ var S0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "on ref: j, readOnly: R }))); -}), E0e = function(e, t) { +}), F0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const sw = /* @__PURE__ */ qr((e, t) => { +const cw = /* @__PURE__ */ Ur((e, t) => { var r, n; const { prefixCls: i, @@ -28655,7 +28696,7 @@ const sw = /* @__PURE__ */ qr((e, t) => { style: f, styles: p, variant: g - } = e, v = E0e(e, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant"]); + } = e, v = F0e(e, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant"]); if (process.env.NODE_ENV !== "production") { const { deprecated: I @@ -28666,18 +28707,18 @@ const sw = /* @__PURE__ */ qr((e, t) => { getPrefixCls: m, direction: y, textArea: C - } = S.useContext(gt), b = Ro(a), w = S.useContext(Ll), x = s ?? w, { + } = S.useContext(gt), b = Ro(a), w = S.useContext(Fl), x = s ?? w, { status: E, hasFeedback: R, feedbackIcon: P - } = S.useContext(Ea), T = qb(E, l), _ = S.useRef(null); + } = S.useContext(Ea), T = Zb(E, l), _ = S.useRef(null); S.useImperativeHandle(t, () => { var I; return { resizableTextArea: (I = _.current) === null || I === void 0 ? void 0 : I.resizableTextArea, focus: (V) => { var H, B; - t0e((B = (H = _.current) === null || H === void 0 ? void 0 : H.resizableTextArea) === null || B === void 0 ? void 0 : B.textArea, V); + h0e((B = (H = _.current) === null || H === void 0 ? void 0 : H.resizableTextArea) === null || B === void 0 ? void 0 : B.textArea, V); }, blur: () => { var V; @@ -28685,8 +28726,8 @@ const sw = /* @__PURE__ */ qr((e, t) => { } }; }); - const D = m("input", i), A = mi(D), [M, O, L] = LI(D, A), [N, F] = mI("textArea", g, o), $ = O7(c ?? (C == null ? void 0 : C.allowClear)); - return M(/* @__PURE__ */ S.createElement(x0e, Object.assign({ + const D = m("input", i), A = yi(D), [M, O, L] = LD(D, A), [N, F] = mD("textArea", g, o), $ = N7(c ?? (C == null ? void 0 : C.allowClear)); + return M(/* @__PURE__ */ S.createElement(L0e, Object.assign({ autoComplete: C == null ? void 0 : C.autoComplete }, v, { style: Object.assign(Object.assign({}, C == null ? void 0 : C.style), f), @@ -28701,7 +28742,7 @@ const sw = /* @__PURE__ */ qr((e, t) => { }, O, u == null ? void 0 : u.textarea, (r = C == null ? void 0 : C.classNames) === null || r === void 0 ? void 0 : r.textarea), variant: ie({ [`${D}-${N}`]: F - }, nS(D, T)), + }, aS(D, T)), affixWrapper: ie(`${D}-textarea-affix-wrapper`, { [`${D}-affix-wrapper-rtl`]: y === "rtl", [`${D}-affix-wrapper-sm`]: b === "small", @@ -28715,82 +28756,82 @@ const sw = /* @__PURE__ */ qr((e, t) => { }, P), ref: _ }))); -}), _l = aw; -_l.Group = Qye; -_l.Search = $7; -_l.TextArea = sw; -_l.Password = k7; -_l.OTP = s0e; -const R0e = { +}), Ml = lw; +Ml.Group = c0e; +Ml.Search = H7; +Ml.TextArea = cw; +Ml.Password = V7; +Ml.OTP = y0e; +const N0e = { xxl: 3, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 -}, B7 = /* @__PURE__ */ k.createContext({}); -var P0e = function(e, t) { +}, z7 = /* @__PURE__ */ k.createContext({}); +var k0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const T0e = (e) => bi(e).map((t) => Object.assign(Object.assign({}, t == null ? void 0 : t.props), { +const $0e = (e) => wi(e).map((t) => Object.assign(Object.assign({}, t == null ? void 0 : t.props), { key: t.key })); -function _0e(e, t, r) { +function B0e(e, t, r) { const n = S.useMemo(() => ( // Take `items` first or convert `children` into items - t || T0e(r) + t || $0e(r) ), [t, r]); return S.useMemo(() => n.map((o) => { var { span: a - } = o, s = P0e(o, ["span"]); + } = o, s = k0e(o, ["span"]); return Object.assign(Object.assign({}, s), { - span: typeof a == "number" ? a : A9(e, a) + span: typeof a == "number" ? a : F9(e, a) }); }), [n, e]); } -function Fk(e, t, r) { +function kk(e, t, r) { let n = e, i = !1; return (r === void 0 || r > t) && (n = Object.assign(Object.assign({}, e), { span: t }), i = r !== void 0), [n, i]; } -function M0e(e, t) { +function V0e(e, t) { const r = []; let n = [], i = t, o = !1; return e.filter((a) => a).forEach((a, s) => { const l = a == null ? void 0 : a.span, c = l || 1; if (s === e.length - 1) { - const [u, d] = Fk(a, i, l); + const [u, d] = kk(a, i, l); o = o || d, n.push(u), r.push(n); return; } if (c < i) i -= c, n.push(a); else { - const [u, d] = Fk(a, i, c); + const [u, d] = kk(a, i, c); o = o || d, n.push(u), r.push(n), i = t, n = []; } }), [r, o]; } -const D0e = (e, t) => { - const [r, n] = Ct(() => M0e(t, e), [t, e]); +const H0e = (e, t) => { + const [r, n] = St(() => V0e(t, e), [t, e]); if (process.env.NODE_ENV !== "production") { const i = Rr("Descriptions"); process.env.NODE_ENV !== "production" && i(!n, "usage", "Sum of column `span` in a line not match `column` of Descriptions."); } return r; -}, I0e = (e) => { +}, z0e = (e) => { let { children: t } = e; return t; }; -function Nk(e) { +function $k(e) { return e != null; } const nx = (e) => { @@ -28815,9 +28856,9 @@ const nx = (e) => { }, i), style: o, colSpan: n - }, Nk(c) && /* @__PURE__ */ S.createElement("span", { + }, $k(c) && /* @__PURE__ */ S.createElement("span", { style: a - }, c), Nk(u) && /* @__PURE__ */ S.createElement("span", { + }, c), $k(u) && /* @__PURE__ */ S.createElement("span", { style: s }, u)) : /* @__PURE__ */ S.createElement(f, { className: ie(`${t}-item`, i), @@ -28898,8 +28939,8 @@ function ix(e, t, r) { })]; }); } -const A0e = (e) => { - const t = S.useContext(B7), { +const G0e = (e) => { + const t = S.useContext(z7), { prefixCls: r, vertical: n, row: i, @@ -28929,7 +28970,7 @@ const A0e = (e) => { showLabel: !0, showContent: !0 }, t))); -}, O0e = (e) => { +}, W0e = (e) => { const { componentCls: t, labelBg: r @@ -28937,18 +28978,18 @@ const A0e = (e) => { return { [`&${t}-bordered`]: { [`> ${t}-view`]: { - border: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`, + border: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`, "> table": { tableLayout: "auto" }, [`${t}-row`]: { - borderBottom: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`, + borderBottom: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`, "&:last-child": { borderBottom: "none" }, [`> ${t}-item-label, > ${t}-item-content`]: { - padding: `${ee(e.padding)} ${ee(e.paddingLG)}`, - borderInlineEnd: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`, + padding: `${te(e.padding)} ${te(e.paddingLG)}`, + borderInlineEnd: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`, "&:last-child": { borderInlineEnd: "none" } @@ -28965,20 +29006,20 @@ const A0e = (e) => { [`&${t}-middle`]: { [`${t}-row`]: { [`> ${t}-item-label, > ${t}-item-content`]: { - padding: `${ee(e.paddingSM)} ${ee(e.paddingLG)}` + padding: `${te(e.paddingSM)} ${te(e.paddingLG)}` } } }, [`&${t}-small`]: { [`${t}-row`]: { [`> ${t}-item-label, > ${t}-item-content`]: { - padding: `${ee(e.paddingXS)} ${ee(e.padding)}` + padding: `${te(e.paddingXS)} ${te(e.padding)}` } } } } }; -}, L0e = (e) => { +}, j0e = (e) => { const { componentCls: t, extraColor: r, @@ -28988,7 +29029,7 @@ const A0e = (e) => { titleMarginBottom: a } = e; return { - [t]: Object.assign(Object.assign(Object.assign({}, nn(e)), O0e(e)), { + [t]: Object.assign(Object.assign(Object.assign({}, nn(e)), W0e(e)), { "&-rtl": { direction: "rtl" }, @@ -29037,7 +29078,7 @@ const A0e = (e) => { position: "relative", top: -0.5, // magic for position - marginInline: `${ee(o)} ${ee(i)}` + marginInline: `${te(o)} ${te(i)}` }, [`&${t}-item-no-colon::after`]: { content: '""' @@ -29089,7 +29130,7 @@ const A0e = (e) => { } }) }; -}, F0e = (e) => ({ +}, U0e = (e) => ({ labelBg: e.colorFillAlter, titleColor: e.colorText, titleMarginBottom: e.fontSizeSM * e.lineHeightSM, @@ -29098,18 +29139,18 @@ const A0e = (e) => { colonMarginLeft: e.marginXXS / 2, contentColor: e.colorText, extraColor: e.colorText -}), N0e = Ur("Descriptions", (e) => { +}), K0e = Kr("Descriptions", (e) => { const t = fr(e, {}); - return L0e(t); -}, F0e); -var k0e = function(e, t) { + return j0e(t); +}, U0e); +var Y0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const lS = (e) => { +const Nv = (e) => { const { prefixCls: t, title: r, @@ -29126,18 +29167,18 @@ const lS = (e) => { labelStyle: f, contentStyle: p, items: g - } = e, v = k0e(e, ["prefixCls", "title", "extra", "column", "colon", "bordered", "layout", "children", "className", "rootClassName", "style", "size", "labelStyle", "contentStyle", "items"]), { + } = e, v = Y0e(e, ["prefixCls", "title", "extra", "column", "colon", "bordered", "layout", "children", "className", "rootClassName", "style", "size", "labelStyle", "contentStyle", "items"]), { getPrefixCls: m, direction: y, descriptions: C - } = S.useContext(gt), b = m("descriptions", t), w = Qb(), x = S.useMemo(() => { + } = S.useContext(gt), b = m("descriptions", t), w = ew(), x = S.useMemo(() => { var M; - return typeof i == "number" ? i : (M = A9(w, Object.assign(Object.assign({}, R0e), i))) !== null && M !== void 0 ? M : 3; - }, [w, i]), E = _0e(w, g, l), R = Ro(h), P = D0e(x, E), [T, _, D] = N0e(b), A = S.useMemo(() => ({ + return typeof i == "number" ? i : (M = F9(w, Object.assign(Object.assign({}, N0e), i))) !== null && M !== void 0 ? M : 3; + }, [w, i]), E = B0e(w, g, l), R = Ro(h), P = H0e(x, E), [T, _, D] = K0e(b), A = S.useMemo(() => ({ labelStyle: f, contentStyle: p }), [f, p]); - return T(/* @__PURE__ */ S.createElement(B7.Provider, { + return T(/* @__PURE__ */ S.createElement(z7.Provider, { value: A }, /* @__PURE__ */ S.createElement("div", Object.assign({ className: ie(b, C == null ? void 0 : C.className, { @@ -29154,7 +29195,7 @@ const lS = (e) => { className: `${b}-extra` }, n)), /* @__PURE__ */ S.createElement("div", { className: `${b}-view` - }, /* @__PURE__ */ S.createElement("table", null, /* @__PURE__ */ S.createElement("tbody", null, P.map((M, O) => /* @__PURE__ */ S.createElement(A0e, { + }, /* @__PURE__ */ S.createElement("table", null, /* @__PURE__ */ S.createElement("tbody", null, P.map((M, O) => /* @__PURE__ */ S.createElement(G0e, { key: O, index: O, colon: o, @@ -29164,17 +29205,17 @@ const lS = (e) => { row: M })))))))); }; -process.env.NODE_ENV !== "production" && (lS.displayName = "Descriptions"); -lS.Item = I0e; -function cS(e) { +process.env.NODE_ENV !== "production" && (Nv.displayName = "Descriptions"); +Nv.Item = z0e; +function dS(e) { return ["small", "middle", "large"].includes(e); } -function kk(e) { +function Bk(e) { return e ? typeof e == "number" && !Number.isNaN(e) : !1; } -const V7 = /* @__PURE__ */ k.createContext({ +const G7 = /* @__PURE__ */ k.createContext({ latestIndex: 0 -}), $0e = V7.Provider, B0e = (e) => { +}), q0e = G7.Provider, X0e = (e) => { let { className: t, index: r, @@ -29184,7 +29225,7 @@ const V7 = /* @__PURE__ */ k.createContext({ } = e; const { latestIndex: a - } = S.useContext(V7); + } = S.useContext(G7); return n == null ? null : /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement("div", { className: t, style: o @@ -29192,14 +29233,14 @@ const V7 = /* @__PURE__ */ k.createContext({ className: `${t}-split` }, i)); }; -var V0e = function(e, t) { +var Z0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const H0e = /* @__PURE__ */ S.forwardRef((e, t) => { +const Q0e = /* @__PURE__ */ S.forwardRef((e, t) => { var r, n, i; const { getPrefixCls: o, @@ -29218,9 +29259,9 @@ const H0e = /* @__PURE__ */ S.forwardRef((e, t) => { wrap: m = !1, classNames: y, styles: C - } = e, b = V0e(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [w, x] = Array.isArray(l) ? l : [l, l], E = cS(x), R = cS(w), P = kk(x), T = kk(w), _ = bi(h, { + } = e, b = Z0e(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [w, x] = Array.isArray(l) ? l : [l, l], E = dS(x), R = dS(w), P = Bk(x), T = Bk(w), _ = wi(h, { keepEmpty: !0 - }), D = c === void 0 && f === "horizontal" ? "center" : c, A = o("space", p), [M, O, L] = vW(A), N = ie(A, a == null ? void 0 : a.className, O, `${A}-${f}`, { + }), D = c === void 0 && f === "horizontal" ? "center" : c, A = o("space", p), [M, O, L] = CW(A), N = ie(A, a == null ? void 0 : a.className, O, `${A}-${f}`, { [`${A}-rtl`]: s === "rtl", [`${A}-align-${D}`]: D, [`${A}-gap-row-${x}`]: E, @@ -29231,7 +29272,7 @@ const H0e = /* @__PURE__ */ S.forwardRef((e, t) => { var j, X; B != null && ($ = W); const q = (B == null ? void 0 : B.key) || `${F}-${W}`; - return /* @__PURE__ */ S.createElement(B0e, { + return /* @__PURE__ */ S.createElement(X0e, { className: F, key: q, index: W, @@ -29248,20 +29289,20 @@ const H0e = /* @__PURE__ */ S.forwardRef((e, t) => { ref: t, className: N, style: Object.assign(Object.assign(Object.assign({}, H), a == null ? void 0 : a.style), v) - }, b), /* @__PURE__ */ S.createElement($0e, { + }, b), /* @__PURE__ */ S.createElement(q0e, { value: V }, I))); -}), lw = H0e; -lw.Compact = Xce; -process.env.NODE_ENV !== "production" && (lw.displayName = "Space"); -var z0e = function(e, t) { +}), uw = Q0e; +uw.Compact = sue; +process.env.NODE_ENV !== "production" && (uw.displayName = "Space"); +var J0e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const H7 = (e) => { +const W7 = (e) => { const { getPopupContainer: t, getPrefixCls: r, @@ -29287,7 +29328,7 @@ const H7 = (e) => { placement: w, getPopupContainer: x, href: E, - icon: R = /* @__PURE__ */ S.createElement(nw, null), + icon: R = /* @__PURE__ */ S.createElement(ow, null), title: P, buttonsRender: T = (J) => J, mouseEnterDelay: _, @@ -29296,7 +29337,7 @@ const H7 = (e) => { overlayStyle: M, destroyPopupOnHide: O, dropdownRender: L - } = e, N = z0e(e, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]), F = r("dropdown", i), $ = `${F}-button`, I = { + } = e, N = J0e(e, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]), F = r("dropdown", i), $ = `${F}-button`, I = { menu: f, arrow: p, autoFocus: g, @@ -29314,9 +29355,9 @@ const H7 = (e) => { }, { compactSize: V, compactItemClassnames: H - } = xm(F, n), B = ie($, H, h); + } = Rm(F, n), B = ie($, H, h); "overlay" in e && (I.overlay = v), "open" in e && (I.open = C), "placement" in e ? I.placement = w : I.placement = n === "rtl" ? "bottomLeft" : "bottomRight"; - const W = /* @__PURE__ */ S.createElement(kr, { + const W = /* @__PURE__ */ S.createElement(Fr, { type: o, danger: a, disabled: s, @@ -29325,40 +29366,40 @@ const H7 = (e) => { htmlType: u, href: E, title: P - }, d), j = /* @__PURE__ */ S.createElement(kr, { + }, d), j = /* @__PURE__ */ S.createElement(Fr, { type: o, danger: a, icon: R }), [X, q] = T([W, j]); - return /* @__PURE__ */ S.createElement(lw.Compact, Object.assign({ + return /* @__PURE__ */ S.createElement(uw.Compact, Object.assign({ className: B, size: V, block: !0 - }, N), X, /* @__PURE__ */ S.createElement(Am, Object.assign({}, I), q)); + }, N), X, /* @__PURE__ */ S.createElement(Lm, Object.assign({}, I), q)); }; -H7.__ANT_BUTTON = !0; -const HI = Am; -HI.Button = H7; -const z7 = ["wrap", "nowrap", "wrap-reverse"], G7 = ["flex-start", "flex-end", "start", "end", "center", "space-between", "space-around", "space-evenly", "stretch", "normal", "left", "right"], W7 = ["center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline", "normal", "stretch"], G0e = (e, t) => { +W7.__ANT_BUTTON = !0; +const HD = Lm; +HD.Button = W7; +const j7 = ["wrap", "nowrap", "wrap-reverse"], U7 = ["flex-start", "flex-end", "start", "end", "center", "space-between", "space-around", "space-evenly", "stretch", "normal", "left", "right"], K7 = ["center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline", "normal", "stretch"], eCe = (e, t) => { const r = t.wrap === !0 ? "wrap" : t.wrap; return { - [`${e}-wrap-${r}`]: r && z7.includes(r) + [`${e}-wrap-${r}`]: r && j7.includes(r) }; -}, W0e = (e, t) => { +}, tCe = (e, t) => { const r = {}; - return W7.forEach((n) => { + return K7.forEach((n) => { r[`${e}-align-${n}`] = t.align === n; }), r[`${e}-align-stretch`] = !t.align && !!t.vertical, r; -}, j0e = (e, t) => { +}, rCe = (e, t) => { const r = {}; - return G7.forEach((n) => { + return U7.forEach((n) => { r[`${e}-justify-${n}`] = t.justify === n; }), r; }; -function U0e(e, t) { - return ie(Object.assign(Object.assign(Object.assign({}, G0e(e, t)), W0e(e, t)), j0e(e, t))); +function nCe(e, t) { + return ie(Object.assign(Object.assign(Object.assign({}, eCe(e, t)), tCe(e, t)), rCe(e, t))); } -const K0e = (e) => { +const iCe = (e) => { const { componentCls: t } = e; @@ -29376,7 +29417,7 @@ const K0e = (e) => { } } }; -}, Y0e = (e) => { +}, oCe = (e) => { const { componentCls: t } = e; @@ -29393,34 +29434,34 @@ const K0e = (e) => { } } }; -}, q0e = (e) => { +}, aCe = (e) => { const { componentCls: t } = e, r = {}; - return z7.forEach((n) => { + return j7.forEach((n) => { r[`${t}-wrap-${n}`] = { flexWrap: n }; }), r; -}, X0e = (e) => { +}, sCe = (e) => { const { componentCls: t } = e, r = {}; - return W7.forEach((n) => { + return K7.forEach((n) => { r[`${t}-align-${n}`] = { alignItems: n }; }), r; -}, Z0e = (e) => { +}, lCe = (e) => { const { componentCls: t } = e, r = {}; - return G7.forEach((n) => { + return U7.forEach((n) => { r[`${t}-justify-${n}`] = { justifyContent: n }; }), r; -}, Q0e = () => ({}), J0e = Ur("Flex", (e) => { +}, cCe = () => ({}), uCe = Kr("Flex", (e) => { const { paddingXS: t, padding: r, @@ -29430,20 +29471,20 @@ const K0e = (e) => { flexGap: r, flexGapLG: n }); - return [K0e(i), Y0e(i), q0e(i), X0e(i), Z0e(i)]; -}, Q0e, { + return [iCe(i), oCe(i), aCe(i), sCe(i), lCe(i)]; +}, cCe, { // Flex component don't apply extra font style // https://github.com/ant-design/ant-design/issues/46403 resetStyle: !1 }); -var eCe = function(e, t) { +var dCe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const Pt = /* @__PURE__ */ k.forwardRef((e, t) => { +const vt = /* @__PURE__ */ k.forwardRef((e, t) => { const { prefixCls: r, rootClassName: n, @@ -29454,23 +29495,23 @@ const Pt = /* @__PURE__ */ k.forwardRef((e, t) => { children: l, vertical: c = !1, component: u = "div" - } = e, d = eCe(e, ["prefixCls", "rootClassName", "className", "style", "flex", "gap", "children", "vertical", "component"]), { + } = e, d = dCe(e, ["prefixCls", "rootClassName", "className", "style", "flex", "gap", "children", "vertical", "component"]), { flex: h, direction: f, getPrefixCls: p - } = k.useContext(gt), g = p("flex", r), [v, m, y] = J0e(g), C = c ?? (h == null ? void 0 : h.vertical), b = ie(i, n, h == null ? void 0 : h.className, g, m, y, U0e(g, e), { + } = k.useContext(gt), g = p("flex", r), [v, m, y] = uCe(g), C = c ?? (h == null ? void 0 : h.vertical), b = ie(i, n, h == null ? void 0 : h.className, g, m, y, nCe(g, e), { [`${g}-rtl`]: f === "rtl", - [`${g}-gap-${s}`]: cS(s), + [`${g}-gap-${s}`]: dS(s), [`${g}-vertical`]: C }), w = Object.assign(Object.assign({}, h == null ? void 0 : h.style), o); - return a && (w.flex = a), s && !cS(s) && (w.gap = s), v(/* @__PURE__ */ k.createElement(u, Object.assign({ + return a && (w.flex = a), s && !dS(s) && (w.gap = s), v(/* @__PURE__ */ k.createElement(u, Object.assign({ ref: t, className: b, style: w }, Sn(d, ["justify", "wrap", "align"])), l)); }); -process.env.NODE_ENV !== "production" && (Pt.displayName = "Flex"); -function j7() { +process.env.NODE_ENV !== "production" && (vt.displayName = "Flex"); +function Y7() { var e = document.documentElement.clientWidth, t = window.innerHeight || document.documentElement.clientHeight; return { width: e, @@ -29494,14 +29535,14 @@ function As(e, t, r, n) { } }; } -var Fm = /* @__PURE__ */ S.createContext(null), tCe = function(t) { - var r = t.visible, n = t.maskTransitionName, i = t.getContainer, o = t.prefixCls, a = t.rootClassName, s = t.icons, l = t.countRender, c = t.showSwitch, u = t.showProgress, d = t.current, h = t.transform, f = t.count, p = t.scale, g = t.minScale, v = t.maxScale, m = t.closeIcon, y = t.onSwitchLeft, C = t.onSwitchRight, b = t.onClose, w = t.onZoomIn, x = t.onZoomOut, E = t.onRotateRight, R = t.onRotateLeft, P = t.onFlipX, T = t.onFlipY, _ = t.onReset, D = t.toolbarRender, A = t.zIndex, M = t.image, O = Jt(Fm), L = s.rotateLeft, N = s.rotateRight, F = s.zoomIn, $ = s.zoomOut, I = s.close, V = s.left, H = s.right, B = s.flipX, W = s.flipY, j = "".concat(o, "-operations-operation"); +var km = /* @__PURE__ */ S.createContext(null), hCe = function(t) { + var r = t.visible, n = t.maskTransitionName, i = t.getContainer, o = t.prefixCls, a = t.rootClassName, s = t.icons, l = t.countRender, c = t.showSwitch, u = t.showProgress, d = t.current, h = t.transform, f = t.count, p = t.scale, g = t.minScale, v = t.maxScale, m = t.closeIcon, y = t.onSwitchLeft, C = t.onSwitchRight, b = t.onClose, w = t.onZoomIn, x = t.onZoomOut, E = t.onRotateRight, R = t.onRotateLeft, P = t.onFlipX, T = t.onFlipY, _ = t.onReset, D = t.toolbarRender, A = t.zIndex, M = t.image, O = Jt(km), L = s.rotateLeft, N = s.rotateRight, F = s.zoomIn, $ = s.zoomOut, I = s.close, V = s.left, H = s.right, B = s.flipX, W = s.flipY, j = "".concat(o, "-operations-operation"); S.useEffect(function() { - var te = function(Y) { - Y.keyCode === Oe.ESC && b(); + var re = function(Y) { + Y.keyCode === Le.ESC && b(); }; - return r && window.addEventListener("keydown", te), function() { - window.removeEventListener("keydown", te); + return r && window.addEventListener("keydown", re), function() { + window.removeEventListener("keydown", re); }; }, [r]); var X = [{ @@ -29530,8 +29571,8 @@ var Fm = /* @__PURE__ */ S.createContext(null), tCe = function(t) { onClick: w, type: "zoomIn", disabled: p === v - }], q = X.map(function(te) { - var Q, Y = te.icon, K = te.onClick, ae = te.type, G = te.disabled; + }], q = X.map(function(re) { + var Q, Y = re.icon, K = re.onClick, ae = re.type, G = re.disabled; return /* @__PURE__ */ S.createElement("div", { className: ie(j, (Q = {}, U(Q, "".concat(o, "-operations-operation-").concat(ae), !0), U(Q, "".concat(o, "-operations-operation-disabled"), !!G), Q)), onClick: K, @@ -29543,9 +29584,9 @@ var Fm = /* @__PURE__ */ S.createContext(null), tCe = function(t) { return /* @__PURE__ */ S.createElement(us, { visible: r, motionName: n - }, function(te) { - var Q = te.className, Y = te.style; - return /* @__PURE__ */ S.createElement(Rm, { + }, function(re) { + var Q = re.className, Y = re.style; + return /* @__PURE__ */ S.createElement(Tm, { open: !0, getContainer: i ?? document.body }, /* @__PURE__ */ S.createElement("div", { @@ -29593,7 +29634,7 @@ var Fm = /* @__PURE__ */ S.createContext(null), tCe = function(t) { image: M })) : J))); }); -}, Fy = { +}, $y = { x: 0, y: 0, rotate: 0, @@ -29601,14 +29642,14 @@ var Fm = /* @__PURE__ */ S.createContext(null), tCe = function(t) { flipX: !1, flipY: !1 }; -function rCe(e, t, r, n) { - var i = ve(null), o = ve([]), a = Le(Fy), s = ce(a, 2), l = s[0], c = s[1], u = function(p) { - c(Fy), rs(Fy, l) || n == null || n({ - transform: Fy, +function fCe(e, t, r, n) { + var i = ve(null), o = ve([]), a = Ie($y), s = ce(a, 2), l = s[0], c = s[1], u = function(p) { + c($y), rs($y, l) || n == null || n({ + transform: $y, action: p }); }, d = function(p, g) { - i.current === null && (o.current = [], i.current = Nr(function() { + i.current === null && (o.current = [], i.current = kr(function() { c(function(v) { var m = v; return o.current.forEach(function(y) { @@ -29624,7 +29665,7 @@ function rCe(e, t, r, n) { _ > r ? (_ = r, T = r / l.scale) : _ < t && (_ = y ? _ : t, T = _ / l.scale); var D = v ?? innerWidth / 2, A = m ?? innerHeight / 2, M = T - 1, O = M * b * 0.5, L = M * w * 0.5, N = M * (D - l.x - R), F = M * (A - l.y - P), $ = l.x - (N - O), I = l.y - (F - L); if (p < 1 && _ === 1) { - var V = x * _, H = E * _, B = j7(), W = B.width, j = B.height; + var V = x * _, H = E * _, B = Y7(), W = B.width, j = B.height; V <= W && H <= j && ($ = 0, I = 0); } d({ @@ -29640,7 +29681,7 @@ function rCe(e, t, r, n) { dispatchZoomChange: h }; } -function $k(e, t, r, n) { +function Vk(e, t, r, n) { var i = t + r, o = (r - n) / 2; if (r > n) { if (t > 0) @@ -29651,16 +29692,16 @@ function $k(e, t, r, n) { return U({}, e, t < 0 ? o : -o); return {}; } -function U7(e, t, r, n) { - var i = j7(), o = i.width, a = i.height, s = null; +function q7(e, t, r, n) { + var i = Y7(), o = i.width, a = i.height, s = null; return e <= o && t <= a ? s = { x: 0, y: 0 - } : (e > o || t > a) && (s = Z(Z({}, $k("x", r, e, o)), $k("y", n, t, a))), s; + } : (e > o || t > a) && (s = Z(Z({}, Vk("x", r, e, o)), Vk("y", n, t, a))), s; } -var ef = 1, nCe = 1; -function iCe(e, t, r, n, i, o, a) { - var s = i.rotate, l = i.scale, c = i.x, u = i.y, d = Le(!1), h = ce(d, 2), f = h[0], p = h[1], g = ve({ +var ef = 1, pCe = 1; +function gCe(e, t, r, n, i, o, a) { + var s = i.rotate, l = i.scale, c = i.x, u = i.y, d = Ie(!1), h = ce(d, 2), f = h[0], p = h[1], g = ve({ diffX: 0, diffY: 0, transformX: 0, @@ -29682,12 +29723,12 @@ function iCe(e, t, r, n, i, o, a) { p(!1); var w = g.current, x = w.transformX, E = w.transformY, R = c !== x && u !== E; if (!R) return; - var P = e.current.offsetWidth * l, T = e.current.offsetHeight * l, _ = e.current.getBoundingClientRect(), D = _.left, A = _.top, M = s % 180 !== 0, O = U7(M ? T : P, M ? P : T, D, A); + var P = e.current.offsetWidth * l, T = e.current.offsetHeight * l, _ = e.current.getBoundingClientRect(), D = _.left, A = _.top, M = s % 180 !== 0, O = q7(M ? T : P, M ? P : T, D, A); O && o(Z({}, O), "dragRebound"); } }, C = function(w) { if (!(!r || w.deltaY == 0)) { - var x = Math.abs(w.deltaY / 100), E = Math.min(x, nCe), R = ef + E * n; + var x = Math.abs(w.deltaY / 100), E = Math.min(x, pCe), R = ef + E * n; w.deltaY > 0 && (R = ef / R), a(R, "wheel", w.clientX, w.clientY); } }; @@ -29713,7 +29754,7 @@ function iCe(e, t, r, n, i, o, a) { onWheel: C }; } -function oCe(e) { +function vCe(e) { return new Promise(function(t) { var r = document.createElement("img"); r.onerror = function() { @@ -29723,11 +29764,11 @@ function oCe(e) { }, r.src = e; }); } -function K7(e) { - var t = e.src, r = e.isCustomPlaceholder, n = e.fallback, i = Le(r ? "loading" : "normal"), o = ce(i, 2), a = o[0], s = o[1], l = ve(!1), c = a === "error"; +function X7(e) { + var t = e.src, r = e.isCustomPlaceholder, n = e.fallback, i = Ie(r ? "loading" : "normal"), o = ce(i, 2), a = o[0], s = o[1], l = ve(!1), c = a === "error"; Bt(function() { var f = !0; - return oCe(t).then(function(p) { + return vCe(t).then(function(p) { !p && f && s("error"); }), function() { f = !1; @@ -29747,19 +29788,19 @@ function K7(e) { }; return [d, h, a]; } -function uS(e, t) { +function hS(e, t) { var r = e.x - t.x, n = e.y - t.y; return Math.hypot(r, n); } -function aCe(e, t, r, n) { - var i = uS(e, r), o = uS(t, n); +function mCe(e, t, r, n) { + var i = hS(e, r), o = hS(t, n); if (i === 0 && o === 0) return [e.x, e.y]; var a = i / (i + o), s = e.x + a * (t.x - e.x), l = e.y + a * (t.y - e.y); return [s, l]; } -function sCe(e, t, r, n, i, o, a) { - var s = i.rotate, l = i.scale, c = i.x, u = i.y, d = Le(!1), h = ce(d, 2), f = h[0], p = h[1], g = ve({ +function yCe(e, t, r, n, i, o, a) { + var s = i.rotate, l = i.scale, c = i.x, u = i.y, d = Ie(!1), h = ce(d, 2), f = h[0], p = h[1], g = ve({ point1: { x: 0, y: 0 @@ -29802,7 +29843,7 @@ function sCe(e, t, r, n, i, o, a) { }, A = { x: E[1].clientX, y: E[1].clientY - }, M = aCe(P, T, D, A), O = ce(M, 2), L = O[0], N = O[1], F = uS(D, A) / uS(P, T); + }, M = mCe(P, T, D, A), O = ce(M, 2), L = O[0], N = O[1], F = hS(D, A) / hS(P, T); a(F, "touchZoom", L, N, !0), v({ point1: D, point2: A, @@ -29824,7 +29865,7 @@ function sCe(e, t, r, n, i, o, a) { y: 0, scale: n }, "touchZoom"); - var w = e.current.offsetWidth * l, x = e.current.offsetHeight * l, E = e.current.getBoundingClientRect(), R = E.left, P = E.top, T = s % 180 !== 0, _ = U7(T ? x : w, T ? w : x, R, P); + var w = e.current.offsetWidth * l, x = e.current.offsetHeight * l, E = e.current.getBoundingClientRect(), R = E.left, P = E.top, T = s % 180 !== 0, _ = q7(T ? x : w, T ? w : x, R, P); _ && o(Z({}, _), "dragRebound"); } }; @@ -29845,8 +29886,8 @@ function sCe(e, t, r, n, i, o, a) { onTouchEnd: C }; } -var lCe = ["fallback", "src", "imgRef"], cCe = ["prefixCls", "src", "alt", "imageInfo", "fallback", "movable", "onClose", "visible", "icons", "rootClassName", "closeIcon", "getContainer", "current", "count", "countRender", "scaleStep", "minScale", "maxScale", "transitionName", "maskTransitionName", "imageRender", "imgCommonProps", "toolbarRender", "onTransform", "onChange"], uCe = function(t) { - var r = t.fallback, n = t.src, i = t.imgRef, o = Nt(t, lCe), a = K7({ +var CCe = ["fallback", "src", "imgRef"], SCe = ["prefixCls", "src", "alt", "imageInfo", "fallback", "movable", "onClose", "visible", "icons", "rootClassName", "closeIcon", "getContainer", "current", "count", "countRender", "scaleStep", "minScale", "maxScale", "transitionName", "maskTransitionName", "imageRender", "imgCommonProps", "toolbarRender", "onTransform", "onChange"], bCe = function(t) { + var r = t.fallback, n = t.src, i = t.imgRef, o = Nt(t, CCe), a = X7({ src: n, fallback: r }), s = ce(a, 2), l = s[0], c = s[1]; @@ -29855,8 +29896,8 @@ var lCe = ["fallback", "src", "imgRef"], cCe = ["prefixCls", "src", "alt", "imag i.current = d, l(d); } }, o, c)); -}, Y7 = function(t) { - var r = t.prefixCls, n = t.src, i = t.alt, o = t.imageInfo, a = t.fallback, s = t.movable, l = s === void 0 ? !0 : s, c = t.onClose, u = t.visible, d = t.icons, h = d === void 0 ? {} : d, f = t.rootClassName, p = t.closeIcon, g = t.getContainer, v = t.current, m = v === void 0 ? 0 : v, y = t.count, C = y === void 0 ? 1 : y, b = t.countRender, w = t.scaleStep, x = w === void 0 ? 0.5 : w, E = t.minScale, R = E === void 0 ? 1 : E, P = t.maxScale, T = P === void 0 ? 50 : P, _ = t.transitionName, D = _ === void 0 ? "zoom" : _, A = t.maskTransitionName, M = A === void 0 ? "fade" : A, O = t.imageRender, L = t.imgCommonProps, N = t.toolbarRender, F = t.onTransform, $ = t.onChange, I = Nt(t, cCe), V = ve(), H = Jt(Fm), B = H && C > 1, W = H && C >= 1, j = Le(!0), X = ce(j, 2), q = X[0], J = X[1], te = rCe(V, R, T, F), Q = te.transform, Y = te.resetTransform, K = te.updateTransform, ae = te.dispatchZoomChange, G = iCe(V, l, u, x, Q, K, ae), re = G.isMoving, le = G.onMouseDown, ue = G.onWheel, he = sCe(V, l, u, R, Q, K, ae), fe = he.isTouching, de = he.onTouchStart, pe = he.onTouchMove, _e = he.onTouchEnd, be = Q.rotate, Me = Q.scale, Ve = ie(U({}, "".concat(r, "-moving"), re)); +}, Z7 = function(t) { + var r = t.prefixCls, n = t.src, i = t.alt, o = t.imageInfo, a = t.fallback, s = t.movable, l = s === void 0 ? !0 : s, c = t.onClose, u = t.visible, d = t.icons, h = d === void 0 ? {} : d, f = t.rootClassName, p = t.closeIcon, g = t.getContainer, v = t.current, m = v === void 0 ? 0 : v, y = t.count, C = y === void 0 ? 1 : y, b = t.countRender, w = t.scaleStep, x = w === void 0 ? 0.5 : w, E = t.minScale, R = E === void 0 ? 1 : E, P = t.maxScale, T = P === void 0 ? 50 : P, _ = t.transitionName, D = _ === void 0 ? "zoom" : _, A = t.maskTransitionName, M = A === void 0 ? "fade" : A, O = t.imageRender, L = t.imgCommonProps, N = t.toolbarRender, F = t.onTransform, $ = t.onChange, I = Nt(t, SCe), V = ve(), H = Jt(km), B = H && C > 1, W = H && C >= 1, j = Ie(!0), X = ce(j, 2), q = X[0], J = X[1], re = fCe(V, R, T, F), Q = re.transform, Y = re.resetTransform, K = re.updateTransform, ae = re.dispatchZoomChange, G = gCe(V, l, u, x, Q, K, ae), ne = G.isMoving, le = G.onMouseDown, ue = G.onWheel, he = yCe(V, l, u, R, Q, K, ae), fe = he.isTouching, de = he.onTouchStart, pe = he.onTouchMove, _e = he.onTouchEnd, be = Q.rotate, Me = Q.scale, Ve = ie(U({}, "".concat(r, "-moving"), ne)); Bt(function() { q || J(!0); }, [q]); @@ -29884,18 +29925,18 @@ var lCe = ["fallback", "src", "imgRef"], cCe = ["prefixCls", "src", "alt", "imag }, "flipY"); }, ze = function() { Y("reset"); - }, je = function(Et) { - Et == null || Et.preventDefault(), Et == null || Et.stopPropagation(), m > 0 && (J(!1), Y("prev"), $ == null || $(m - 1, m)); - }, st = function(Et) { - Et == null || Et.preventDefault(), Et == null || Et.stopPropagation(), m < C - 1 && (J(!1), Y("next"), $ == null || $(m + 1, m)); - }, Xe = function(Et) { - !u || !B || (Et.keyCode === Oe.LEFT ? je() : Et.keyCode === Oe.RIGHT && st()); - }, Ue = function(Et) { + }, je = function(Rt) { + Rt == null || Rt.preventDefault(), Rt == null || Rt.stopPropagation(), m > 0 && (J(!1), Y("prev"), $ == null || $(m - 1, m)); + }, st = function(Rt) { + Rt == null || Rt.preventDefault(), Rt == null || Rt.stopPropagation(), m < C - 1 && (J(!1), Y("next"), $ == null || $(m + 1, m)); + }, Xe = function(Rt) { + !u || !B || (Rt.keyCode === Le.LEFT ? je() : Rt.keyCode === Le.RIGHT && st()); + }, Ue = function(Rt) { u && (Me !== 1 ? K({ x: 0, y: 0, scale: 1 - }, "doubleClick") : ae(ef + x, "doubleClick", Et.clientX, Et.clientY)); + }, "doubleClick") : ae(ef + x, "doubleClick", Rt.clientX, Rt.clientY)); }; Bt(function() { var ht = As(window, "keydown", Xe, !1); @@ -29903,7 +29944,7 @@ var lCe = ["fallback", "src", "imgRef"], cCe = ["prefixCls", "src", "alt", "imag ht.remove(); }; }, [u, B, m]); - var Ae = /* @__PURE__ */ k.createElement(uCe, Te({}, L, { + var Oe = /* @__PURE__ */ k.createElement(bCe, Te({}, L, { width: t.width, height: t.height, imgRef: V, @@ -29926,7 +29967,7 @@ var lCe = ["fallback", "src", "imgRef"], cCe = ["prefixCls", "src", "alt", "imag url: n, alt: i }, o); - return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(tI, Te({ + return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(tD, Te({ transitionName: D, maskTransitionName: M, closable: !1, @@ -29943,12 +29984,12 @@ var lCe = ["fallback", "src", "imgRef"], cCe = ["prefixCls", "src", "alt", "imag afterClose: oe }), /* @__PURE__ */ k.createElement("div", { className: "".concat(r, "-img-wrapper") - }, O ? O(Ae, Z({ + }, O ? O(Oe, Z({ transform: Q, image: Ke }, H ? { current: m - } : {})) : Ae)), /* @__PURE__ */ k.createElement(tCe, { + } : {})) : Oe)), /* @__PURE__ */ k.createElement(hCe, { visible: u, transform: Q, maskTransitionName: M, @@ -29980,7 +30021,7 @@ var lCe = ["fallback", "src", "imgRef"], cCe = ["prefixCls", "src", "alt", "imag image: Ke })); }, $T = ["crossOrigin", "decoding", "draggable", "loading", "referrerPolicy", "sizes", "srcSet", "useMap", "alt"]; -function dCe(e) { +function wCe(e) { var t = S.useState({}), r = ce(t, 2), n = r[0], i = r[1], o = S.useCallback(function(s, l) { return i(function(c) { return Z(Z({}, c), {}, U({}, s, l)); @@ -30014,21 +30055,21 @@ function dCe(e) { }, [e, n]); return [a, o, !!e]; } -var hCe = ["visible", "onVisibleChange", "getContainer", "current", "movable", "minScale", "maxScale", "countRender", "closeIcon", "onChange", "onTransform", "toolbarRender", "imageRender"], fCe = ["src"], pCe = function(t) { - var r, n = t.previewPrefixCls, i = n === void 0 ? "rc-image-preview" : n, o = t.children, a = t.icons, s = a === void 0 ? {} : a, l = t.items, c = t.preview, u = t.fallback, d = pt(c) === "object" ? c : {}, h = d.visible, f = d.onVisibleChange, p = d.getContainer, g = d.current, v = d.movable, m = d.minScale, y = d.maxScale, C = d.countRender, b = d.closeIcon, w = d.onChange, x = d.onTransform, E = d.toolbarRender, R = d.imageRender, P = Nt(d, hCe), T = dCe(l), _ = ce(T, 3), D = _[0], A = _[1], M = _[2], O = pn(0, { +var xCe = ["visible", "onVisibleChange", "getContainer", "current", "movable", "minScale", "maxScale", "countRender", "closeIcon", "onChange", "onTransform", "toolbarRender", "imageRender"], ECe = ["src"], RCe = function(t) { + var r, n = t.previewPrefixCls, i = n === void 0 ? "rc-image-preview" : n, o = t.children, a = t.icons, s = a === void 0 ? {} : a, l = t.items, c = t.preview, u = t.fallback, d = pt(c) === "object" ? c : {}, h = d.visible, f = d.onVisibleChange, p = d.getContainer, g = d.current, v = d.movable, m = d.minScale, y = d.maxScale, C = d.countRender, b = d.closeIcon, w = d.onChange, x = d.onTransform, E = d.toolbarRender, R = d.imageRender, P = Nt(d, xCe), T = wCe(l), _ = ce(T, 3), D = _[0], A = _[1], M = _[2], O = pn(0, { value: g - }), L = ce(O, 2), N = L[0], F = L[1], $ = Le(!1), I = ce($, 2), V = I[0], H = I[1], B = ((r = D[N]) === null || r === void 0 ? void 0 : r.data) || {}, W = B.src, j = Nt(B, fCe), X = pn(!!h, { + }), L = ce(O, 2), N = L[0], F = L[1], $ = Ie(!1), I = ce($, 2), V = I[0], H = I[1], B = ((r = D[N]) === null || r === void 0 ? void 0 : r.data) || {}, W = B.src, j = Nt(B, ECe), X = pn(!!h, { value: h, onChange: function(fe, de) { f == null || f(fe, de, N); } - }), q = ce(X, 2), J = q[0], te = q[1], Q = Le(null), Y = ce(Q, 2), K = Y[0], ae = Y[1], G = S.useCallback(function(he, fe, de, pe) { + }), q = ce(X, 2), J = q[0], re = q[1], Q = Ie(null), Y = ce(Q, 2), K = Y[0], ae = Y[1], G = S.useCallback(function(he, fe, de, pe) { var _e = M ? D.findIndex(function(be) { return be.data.src === fe; }) : D.findIndex(function(be) { return be.id === he; }); - F(_e < 0 ? 0 : _e), te(!0), ae({ + F(_e < 0 ? 0 : _e), re(!0), ae({ x: de, y: pe }), H(!0); @@ -30036,19 +30077,19 @@ var hCe = ["visible", "onVisibleChange", "getContainer", "current", "movable", " S.useEffect(function() { J ? V || F(0) : H(!1); }, [J]); - var re = function(fe, de) { + var ne = function(fe, de) { F(fe), w == null || w(fe, de); }, le = function() { - te(!1), ae(null); + re(!1), ae(null); }, ue = S.useMemo(function() { return { register: A, onPreview: G }; }, [A, G]); - return /* @__PURE__ */ S.createElement(Fm.Provider, { + return /* @__PURE__ */ S.createElement(km.Provider, { value: ue - }, o, /* @__PURE__ */ S.createElement(Y7, Te({ + }, o, /* @__PURE__ */ S.createElement(Z7, Te({ "aria-hidden": !J, movable: v, visible: J, @@ -30069,13 +30110,13 @@ var hCe = ["visible", "onVisibleChange", "getContainer", "current", "movable", " onTransform: x, toolbarRender: E, imageRender: R, - onChange: re + onChange: ne }, P))); -}, Bk = 0; -function gCe(e, t) { +}, Hk = 0; +function PCe(e, t) { var r = S.useState(function() { - return Bk += 1, String(Bk); - }), n = ce(r, 1), i = n[0], o = S.useContext(Fm), a = { + return Hk += 1, String(Hk); + }), n = ce(r, 1), i = n[0], o = S.useContext(km), a = { data: t, canPreview: e }; @@ -30086,28 +30127,28 @@ function gCe(e, t) { o && o.register(i, a); }, [e, t]), i; } -var vCe = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "placeholder", "fallback", "width", "height", "style", "preview", "className", "onClick", "onError", "wrapperClassName", "wrapperStyle", "rootClassName"], mCe = ["src", "visible", "onVisibleChange", "getContainer", "mask", "maskClassName", "movable", "icons", "scaleStep", "minScale", "maxScale", "imageRender", "toolbarRender"], cw = function(t) { - var r = t.src, n = t.alt, i = t.onPreviewClose, o = t.prefixCls, a = o === void 0 ? "rc-image" : o, s = t.previewPrefixCls, l = s === void 0 ? "".concat(a, "-preview") : s, c = t.placeholder, u = t.fallback, d = t.width, h = t.height, f = t.style, p = t.preview, g = p === void 0 ? !0 : p, v = t.className, m = t.onClick, y = t.onError, C = t.wrapperClassName, b = t.wrapperStyle, w = t.rootClassName, x = Nt(t, vCe), E = c && c !== !0, R = pt(g) === "object" ? g : {}, P = R.src, T = R.visible, _ = T === void 0 ? void 0 : T, D = R.onVisibleChange, A = D === void 0 ? i : D, M = R.getContainer, O = M === void 0 ? void 0 : M, L = R.mask, N = R.maskClassName, F = R.movable, $ = R.icons, I = R.scaleStep, V = R.minScale, H = R.maxScale, B = R.imageRender, W = R.toolbarRender, j = Nt(R, mCe), X = P ?? r, q = pn(!!_, { +var TCe = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "placeholder", "fallback", "width", "height", "style", "preview", "className", "onClick", "onError", "wrapperClassName", "wrapperStyle", "rootClassName"], _Ce = ["src", "visible", "onVisibleChange", "getContainer", "mask", "maskClassName", "movable", "icons", "scaleStep", "minScale", "maxScale", "imageRender", "toolbarRender"], dw = function(t) { + var r = t.src, n = t.alt, i = t.onPreviewClose, o = t.prefixCls, a = o === void 0 ? "rc-image" : o, s = t.previewPrefixCls, l = s === void 0 ? "".concat(a, "-preview") : s, c = t.placeholder, u = t.fallback, d = t.width, h = t.height, f = t.style, p = t.preview, g = p === void 0 ? !0 : p, v = t.className, m = t.onClick, y = t.onError, C = t.wrapperClassName, b = t.wrapperStyle, w = t.rootClassName, x = Nt(t, TCe), E = c && c !== !0, R = pt(g) === "object" ? g : {}, P = R.src, T = R.visible, _ = T === void 0 ? void 0 : T, D = R.onVisibleChange, A = D === void 0 ? i : D, M = R.getContainer, O = M === void 0 ? void 0 : M, L = R.mask, N = R.maskClassName, F = R.movable, $ = R.icons, I = R.scaleStep, V = R.minScale, H = R.maxScale, B = R.imageRender, W = R.toolbarRender, j = Nt(R, _Ce), X = P ?? r, q = pn(!!_, { value: _, onChange: A - }), J = ce(q, 2), te = J[0], Q = J[1], Y = K7({ + }), J = ce(q, 2), re = J[0], Q = J[1], Y = X7({ src: r, isCustomPlaceholder: E, fallback: u - }), K = ce(Y, 3), ae = K[0], G = K[1], re = K[2], le = Le(null), ue = ce(le, 2), he = ue[0], fe = ue[1], de = Jt(Fm), pe = !!g, _e = function() { + }), K = ce(Y, 3), ae = K[0], G = K[1], ne = K[2], le = Ie(null), ue = ce(le, 2), he = ue[0], fe = ue[1], de = Jt(km), pe = !!g, _e = function() { Q(!1), fe(null); - }, be = ie(a, C, w, U({}, "".concat(a, "-error"), re === "error")), Me = Ct(function() { + }, be = ie(a, C, w, U({}, "".concat(a, "-error"), ne === "error")), Me = St(function() { var Ne = {}; return $T.forEach(function(ke) { t[ke] !== void 0 && (Ne[ke] = t[ke]); }), Ne; }, $T.map(function(Ne) { return t[Ne]; - })), Ve = Ct(function() { + })), Ve = St(function() { return Z(Z({}, Me), {}, { src: X }); - }, [X, Me]), oe = gCe(pe, Ve), ye = function(ke) { + }, [X, Me]), oe = PCe(pe, Ve), ye = function(ke) { var we = kT(ke.target), Ce = we.left, xe = we.top; de ? de.onPreview(oe, X, Ce, xe) : (fe({ x: Ce, @@ -30131,7 +30172,7 @@ var vCe = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "pla width: d, height: h, onError: y - })), re === "loading" && /* @__PURE__ */ S.createElement("div", { + })), ne === "loading" && /* @__PURE__ */ S.createElement("div", { "aria-hidden": "true", className: "".concat(a, "-placeholder") }, c), L && pe && /* @__PURE__ */ S.createElement("div", { @@ -30139,9 +30180,9 @@ var vCe = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "pla style: { display: (f == null ? void 0 : f.display) === "none" ? "none" : void 0 } - }, L)), !de && pe && /* @__PURE__ */ S.createElement(Y7, Te({ - "aria-hidden": !te, - visible: te, + }, L)), !de && pe && /* @__PURE__ */ S.createElement(Z7, Te({ + "aria-hidden": !re, + visible: re, prefixCls: l, onClose: _e, mousePosition: he, @@ -30164,47 +30205,47 @@ var vCe = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "pla toolbarRender: W }, j))); }; -cw.PreviewGroup = pCe; -process.env.NODE_ENV !== "production" && (cw.displayName = "Image"); -var yCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z" } }, { tag: "path", attrs: { d: "M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z" } }] }, name: "rotate-left", theme: "outlined" }, CCe = function(t, r) { +dw.PreviewGroup = RCe; +process.env.NODE_ENV !== "production" && (dw.displayName = "Image"); +var MCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z" } }, { tag: "path", attrs: { d: "M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z" } }] }, name: "rotate-left", theme: "outlined" }, DCe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: yCe + icon: MCe })); -}, q7 = /* @__PURE__ */ S.forwardRef(CCe); -process.env.NODE_ENV !== "production" && (q7.displayName = "RotateLeftOutlined"); -var SCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z" } }, { tag: "path", attrs: { d: "M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z" } }] }, name: "rotate-right", theme: "outlined" }, bCe = function(t, r) { +}, Q7 = /* @__PURE__ */ S.forwardRef(DCe); +process.env.NODE_ENV !== "production" && (Q7.displayName = "RotateLeftOutlined"); +var ICe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z" } }, { tag: "path", attrs: { d: "M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z" } }] }, name: "rotate-right", theme: "outlined" }, ACe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: SCe + icon: ICe })); -}, X7 = /* @__PURE__ */ S.forwardRef(bCe); -process.env.NODE_ENV !== "production" && (X7.displayName = "RotateRightOutlined"); -var wCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "swap", theme: "outlined" }, xCe = function(t, r) { +}, J7 = /* @__PURE__ */ S.forwardRef(ACe); +process.env.NODE_ENV !== "production" && (J7.displayName = "RotateRightOutlined"); +var OCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "swap", theme: "outlined" }, LCe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: wCe + icon: OCe })); -}, BT = /* @__PURE__ */ S.forwardRef(xCe); +}, BT = /* @__PURE__ */ S.forwardRef(LCe); process.env.NODE_ENV !== "production" && (BT.displayName = "SwapOutlined"); -var ECe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-in", theme: "outlined" }, RCe = function(t, r) { +var FCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-in", theme: "outlined" }, NCe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: ECe + icon: FCe })); -}, Z7 = /* @__PURE__ */ S.forwardRef(RCe); -process.env.NODE_ENV !== "production" && (Z7.displayName = "ZoomInOutlined"); -var PCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-out", theme: "outlined" }, TCe = function(t, r) { +}, ej = /* @__PURE__ */ S.forwardRef(NCe); +process.env.NODE_ENV !== "production" && (ej.displayName = "ZoomInOutlined"); +var kCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-out", theme: "outlined" }, $Ce = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: PCe + icon: kCe })); -}, Q7 = /* @__PURE__ */ S.forwardRef(TCe); -process.env.NODE_ENV !== "production" && (Q7.displayName = "ZoomOutOutlined"); +}, tj = /* @__PURE__ */ S.forwardRef($Ce); +process.env.NODE_ENV !== "production" && (tj.displayName = "ZoomOutOutlined"); const VT = (e) => ({ position: e || "absolute", inset: 0 -}), _Ce = (e) => { +}), BCe = (e) => { const { iconCls: t, motionDurationSlow: r, @@ -30225,7 +30266,7 @@ const VT = (e) => ({ opacity: 0, transition: `opacity ${r}`, [`.${o}-mask-info`]: Object.assign(Object.assign({}, js), { - padding: `0 ${ee(n)}`, + padding: `0 ${te(n)}`, [t]: { marginInlineEnd: i, svg: { @@ -30234,7 +30275,7 @@ const VT = (e) => ({ } }) }; -}, MCe = (e) => { +}, VCe = (e) => { const { previewCls: t, modalMaskBg: r, @@ -30291,7 +30332,7 @@ const VT = (e) => ({ [`${t}-operations`]: { display: "flex", alignItems: "center", - padding: `0 ${ee(a)}`, + padding: `0 ${te(a)}`, backgroundColor: h.toRgbString(), borderRadius: 100, "&-operation": { @@ -30316,7 +30357,7 @@ const VT = (e) => ({ } } }; -}, DCe = (e) => { +}, HCe = (e) => { const { modalMaskBg: t, iconCls: r, @@ -30367,7 +30408,7 @@ const VT = (e) => ({ insetInlineEnd: e.marginSM } }; -}, ICe = (e) => { +}, zCe = (e) => { const { motionEaseOut: t, previewCls: r, @@ -30437,10 +30478,10 @@ const VT = (e) => ({ position: "fixed", zIndex: e.calc(e.zIndexPopup).add(1).equal() }, - "&": [MCe(e), DCe(e)] + "&": [VCe(e), HCe(e)] } ]; -}, ACe = (e) => { +}, GCe = (e) => { const { componentCls: t } = e; @@ -30461,66 +30502,66 @@ const VT = (e) => ({ backgroundPosition: "center center", backgroundSize: "30%" }, - [`${t}-mask`]: Object.assign({}, _Ce(e)), + [`${t}-mask`]: Object.assign({}, BCe(e)), [`${t}-mask:hover`]: { opacity: 1 }, [`${t}-placeholder`]: Object.assign({}, VT()) } }; -}, OCe = (e) => { +}, WCe = (e) => { const { previewCls: t } = e; return { - [`${t}-root`]: tp(e, "zoom"), - "&": GW(e, !0) + [`${t}-root`]: np(e, "zoom"), + "&": UW(e, !0) }; -}, LCe = (e) => ({ +}, jCe = (e) => ({ zIndexPopup: e.zIndexPopupBase + 80, previewOperationColor: new Hr(e.colorTextLightSolid).setAlpha(0.65).toRgbString(), previewOperationHoverColor: new Hr(e.colorTextLightSolid).setAlpha(0.85).toRgbString(), previewOperationColorDisabled: new Hr(e.colorTextLightSolid).setAlpha(0.25).toRgbString(), previewOperationSize: e.fontSizeIcon * 1.5 // FIXME: fontSizeIconLG -}), J7 = Ur("Image", (e) => { +}), rj = Kr("Image", (e) => { const t = `${e.componentCls}-preview`, r = fr(e, { previewCls: t, modalMaskBg: new Hr("#000").setAlpha(0.45).toRgbString(), // FIXME: Shared Token imagePreviewSwitchSize: e.controlHeightLG }); - return [ACe(r), ICe(r), WW(fr(r, { + return [GCe(r), zCe(r), KW(fr(r, { componentCls: t - })), OCe(r)]; -}, LCe); -var FCe = function(e, t) { + })), WCe(r)]; +}, jCe); +var UCe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const ej = { - rotateLeft: /* @__PURE__ */ S.createElement(q7, null), - rotateRight: /* @__PURE__ */ S.createElement(X7, null), - zoomIn: /* @__PURE__ */ S.createElement(Z7, null), - zoomOut: /* @__PURE__ */ S.createElement(Q7, null), - close: /* @__PURE__ */ S.createElement(ql, null), +const nj = { + rotateLeft: /* @__PURE__ */ S.createElement(Q7, null), + rotateRight: /* @__PURE__ */ S.createElement(J7, null), + zoomIn: /* @__PURE__ */ S.createElement(ej, null), + zoomOut: /* @__PURE__ */ S.createElement(tj, null), + close: /* @__PURE__ */ S.createElement(Xl, null), left: /* @__PURE__ */ S.createElement(Rd, null), right: /* @__PURE__ */ S.createElement($c, null), flipX: /* @__PURE__ */ S.createElement(BT, null), flipY: /* @__PURE__ */ S.createElement(BT, { rotate: 90 }) -}, NCe = (e) => { +}, KCe = (e) => { var { previewPrefixCls: t, preview: r - } = e, n = FCe(e, ["previewPrefixCls", "preview"]); + } = e, n = UCe(e, ["previewPrefixCls", "preview"]); const { getPrefixCls: i - } = S.useContext(gt), o = i("image", t), a = `${o}-preview`, s = i(), l = mi(o), [c, u, d] = J7(o, l), [h] = Vd("ImagePreview", typeof r == "object" ? r.zIndex : void 0), f = S.useMemo(() => { + } = S.useContext(gt), o = i("image", t), a = `${o}-preview`, s = i(), l = yi(o), [c, u, d] = rj(o, l), [h] = Vd("ImagePreview", typeof r == "object" ? r.zIndex : void 0), f = S.useMemo(() => { var p; if (r === !1) return r; @@ -30532,20 +30573,20 @@ const ej = { zIndex: h }); }, [r]); - return c(/* @__PURE__ */ S.createElement(cw.PreviewGroup, Object.assign({ + return c(/* @__PURE__ */ S.createElement(dw.PreviewGroup, Object.assign({ preview: f, previewPrefixCls: a, - icons: ej + icons: nj }, n))); -}, kCe = NCe; -var Vk = function(e, t) { +}, YCe = KCe; +var zk = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const ip = (e) => { +const ap = (e) => { var t; const { prefixCls: r, @@ -30553,24 +30594,24 @@ const ip = (e) => { className: i, rootClassName: o, style: a - } = e, s = Vk(e, ["prefixCls", "preview", "className", "rootClassName", "style"]), { + } = e, s = zk(e, ["prefixCls", "preview", "className", "rootClassName", "style"]), { getPrefixCls: l, locale: c = ns, getPopupContainer: u, image: d - } = S.useContext(gt), h = l("image", r), f = l(), p = c.Image || ns.Image, g = mi(h), [v, m, y] = J7(h, g), C = ie(o, m, y, g), b = ie(i, m, d == null ? void 0 : d.className), [w] = Vd("ImagePreview", typeof n == "object" ? n.zIndex : void 0), x = S.useMemo(() => { + } = S.useContext(gt), h = l("image", r), f = l(), p = c.Image || ns.Image, g = yi(h), [v, m, y] = rj(h, g), C = ie(o, m, y, g), b = ie(i, m, d == null ? void 0 : d.className), [w] = Vd("ImagePreview", typeof n == "object" ? n.zIndex : void 0), x = S.useMemo(() => { var R; if (n === !1) return n; const P = typeof n == "object" ? n : {}, { getContainer: T, closeIcon: _ - } = P, D = Vk(P, ["getContainer", "closeIcon"]); + } = P, D = zk(P, ["getContainer", "closeIcon"]); return Object.assign(Object.assign({ mask: /* @__PURE__ */ S.createElement("div", { className: `${h}-mask-info` - }, /* @__PURE__ */ S.createElement(VI, null), p == null ? void 0 : p.preview), - icons: ej + }, /* @__PURE__ */ S.createElement(VD, null), p == null ? void 0 : p.preview), + icons: nj }, D), { getContainer: T ?? u, transitionName: xa(f, "zoom", P.transitionName), @@ -30579,7 +30620,7 @@ const ip = (e) => { closeIcon: _ ?? ((R = d == null ? void 0 : d.preview) === null || R === void 0 ? void 0 : R.closeIcon) }); }, [n, p, (t = d == null ? void 0 : d.preview) === null || t === void 0 ? void 0 : t.closeIcon]), E = Object.assign(Object.assign({}, d == null ? void 0 : d.style), a); - return v(/* @__PURE__ */ S.createElement(cw, Object.assign({ + return v(/* @__PURE__ */ S.createElement(dw, Object.assign({ prefixCls: h, preview: x, rootClassName: C, @@ -30587,9 +30628,9 @@ const ip = (e) => { style: E }, s))); }; -ip.PreviewGroup = kCe; -process.env.NODE_ENV !== "production" && (ip.displayName = "Image"); -const tj = function() { +ap.PreviewGroup = YCe; +process.env.NODE_ENV !== "production" && (ap.displayName = "Image"); +const ij = function() { const e = Object.assign({}, arguments.length <= 0 ? void 0 : arguments[0]); for (let t = 1; t < arguments.length; t++) { const r = t < 0 || arguments.length <= t ? void 0 : arguments[t]; @@ -30600,21 +30641,21 @@ const tj = function() { } return e; }; -var $Ce = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" } }] }, name: "double-left", theme: "outlined" }, BCe = function(t, r) { +var qCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" } }] }, name: "double-left", theme: "outlined" }, XCe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: $Ce + icon: qCe })); -}, HT = /* @__PURE__ */ S.forwardRef(BCe); +}, HT = /* @__PURE__ */ S.forwardRef(XCe); process.env.NODE_ENV !== "production" && (HT.displayName = "DoubleLeftOutlined"); -var VCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" } }] }, name: "double-right", theme: "outlined" }, HCe = function(t, r) { +var ZCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" } }] }, name: "double-right", theme: "outlined" }, QCe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: VCe + icon: ZCe })); -}, zT = /* @__PURE__ */ S.forwardRef(HCe); +}, zT = /* @__PURE__ */ S.forwardRef(QCe); process.env.NODE_ENV !== "production" && (zT.displayName = "DoubleRightOutlined"); -var zCe = { +var JCe = { // Options items_per_page: "条/页", jump_to: "跳至", @@ -30628,8 +30669,8 @@ var zCe = { prev_3: "向前 3 页", next_3: "向后 3 页", page_size: "页码" -}, GCe = ["10", "20", "50", "100"], rj = function(t) { - var r = t.pageSizeOptions, n = r === void 0 ? GCe : r, i = t.locale, o = t.changeSize, a = t.pageSize, s = t.goButton, l = t.quickGo, c = t.rootPrefixCls, u = t.selectComponentClass, d = t.selectPrefixCls, h = t.disabled, f = t.buildOptionText, p = k.useState(""), g = ce(p, 2), v = g[0], m = g[1], y = function() { +}, eSe = ["10", "20", "50", "100"], oj = function(t) { + var r = t.pageSizeOptions, n = r === void 0 ? eSe : r, i = t.locale, o = t.changeSize, a = t.pageSize, s = t.goButton, l = t.quickGo, c = t.rootPrefixCls, u = t.selectComponentClass, d = t.selectPrefixCls, h = t.disabled, f = t.buildOptionText, p = k.useState(""), g = ce(p, 2), v = g[0], m = g[1], y = function() { return !v || Number.isNaN(v) ? void 0 : Number(v); }, C = typeof f == "function" ? f : function(M) { return "".concat(M, " ").concat(i.items_per_page); @@ -30640,7 +30681,7 @@ var zCe = { }, x = function(O) { s || v === "" || (m(""), !(O.relatedTarget && (O.relatedTarget.className.indexOf("".concat(c, "-item-link")) >= 0 || O.relatedTarget.className.indexOf("".concat(c, "-item")) >= 0)) && (l == null || l(y()))); }, E = function(O) { - v !== "" && (O.keyCode === Oe.ENTER || O.type === "click") && (m(""), l == null || l(y())); + v !== "" && (O.keyCode === Le.ENTER || O.type === "click") && (m(""), l == null || l(y())); }, R = function() { return n.some(function(O) { return O.toString() === a.toString(); @@ -30698,7 +30739,7 @@ var zCe = { className: P }, T, _); }; -process.env.NODE_ENV !== "production" && (rj.displayName = "Options"); +process.env.NODE_ENV !== "production" && (oj.displayName = "Options"); var Wh = function(t) { var r, n = t.rootPrefixCls, i = t.page, o = t.active, a = t.className, s = t.showTitle, l = t.onClick, c = t.onKeyPress, u = t.itemRender, d = "".concat(n, "-item"), h = ie(d, "".concat(d, "-").concat(i), (r = {}, U(r, "".concat(d, "-active"), o), U(r, "".concat(d, "-disabled"), !i), r), a), f = function() { l(i); @@ -30716,12 +30757,12 @@ var Wh = function(t) { }, g) : null; }; process.env.NODE_ENV !== "production" && (Wh.displayName = "Pager"); -var WCe = function(t, r, n) { +var tSe = function(t, r, n) { return n; }; function ox() { } -function Hk(e) { +function Gk(e) { var t = Number(e); return typeof t == "number" && !Number.isNaN(t) && isFinite(t) && Math.floor(t) === t; } @@ -30729,8 +30770,8 @@ function su(e, t, r) { var n = typeof e > "u" ? t : e; return Math.floor((r - 1) / n) + 1; } -var nj = function(t) { - var r, n = t.prefixCls, i = n === void 0 ? "rc-pagination" : n, o = t.selectPrefixCls, a = o === void 0 ? "rc-select" : o, s = t.className, l = t.selectComponentClass, c = t.current, u = t.defaultCurrent, d = u === void 0 ? 1 : u, h = t.total, f = h === void 0 ? 0 : h, p = t.pageSize, g = t.defaultPageSize, v = g === void 0 ? 10 : g, m = t.onChange, y = m === void 0 ? ox : m, C = t.hideOnSinglePage, b = t.align, w = t.showPrevNextJumpers, x = w === void 0 ? !0 : w, E = t.showQuickJumper, R = t.showLessItems, P = t.showTitle, T = P === void 0 ? !0 : P, _ = t.onShowSizeChange, D = _ === void 0 ? ox : _, A = t.locale, M = A === void 0 ? zCe : A, O = t.style, L = t.totalBoundaryShowSizeChanger, N = L === void 0 ? 50 : L, F = t.disabled, $ = t.simple, I = t.showTotal, V = t.showSizeChanger, H = t.pageSizeOptions, B = t.itemRender, W = B === void 0 ? WCe : B, j = t.jumpPrevIcon, X = t.jumpNextIcon, q = t.prevIcon, J = t.nextIcon, te = k.useRef(null), Q = pn(10, { +var aj = function(t) { + var r, n = t.prefixCls, i = n === void 0 ? "rc-pagination" : n, o = t.selectPrefixCls, a = o === void 0 ? "rc-select" : o, s = t.className, l = t.selectComponentClass, c = t.current, u = t.defaultCurrent, d = u === void 0 ? 1 : u, h = t.total, f = h === void 0 ? 0 : h, p = t.pageSize, g = t.defaultPageSize, v = g === void 0 ? 10 : g, m = t.onChange, y = m === void 0 ? ox : m, C = t.hideOnSinglePage, b = t.align, w = t.showPrevNextJumpers, x = w === void 0 ? !0 : w, E = t.showQuickJumper, R = t.showLessItems, P = t.showTitle, T = P === void 0 ? !0 : P, _ = t.onShowSizeChange, D = _ === void 0 ? ox : _, A = t.locale, M = A === void 0 ? JCe : A, O = t.style, L = t.totalBoundaryShowSizeChanger, N = L === void 0 ? 50 : L, F = t.disabled, $ = t.simple, I = t.showTotal, V = t.showSizeChanger, H = t.pageSizeOptions, B = t.itemRender, W = B === void 0 ? tSe : B, j = t.jumpPrevIcon, X = t.jumpNextIcon, q = t.prevIcon, J = t.nextIcon, re = k.useRef(null), Q = pn(10, { value: p, defaultValue: v }), Y = ce(Q, 2), K = Y[0], ae = Y[1], G = pn(1, { @@ -30739,7 +30780,7 @@ var nj = function(t) { postState: function(ur) { return Math.max(1, Math.min(ur, su(void 0, K, f))); } - }), re = ce(G, 2), le = re[0], ue = re[1], he = k.useState(le), fe = ce(he, 2), de = fe[0], pe = fe[1]; + }), ne = ce(G, 2), le = ne[0], ue = ne[1], he = k.useState(le), fe = ce(he, 2), de = fe[0], pe = fe[1]; Bt(function() { pe(le); }, [le]); @@ -30759,22 +30800,22 @@ var nj = function(t) { return ur === "" ? bn = ur : Number.isNaN(Number(ur)) ? bn = de : ur >= Dr ? bn = Dr : bn = Number(ur), bn; } function Ne(It) { - return Hk(It) && It !== le && Hk(f) && f > 0; + return Gk(It) && It !== le && Gk(f) && f > 0; } var ke = f > K ? E : !1; function we(It) { - (It.keyCode === Oe.UP || It.keyCode === Oe.DOWN) && It.preventDefault(); + (It.keyCode === Le.UP || It.keyCode === Le.DOWN) && It.preventDefault(); } function Ce(It) { var ur = ye(It); switch (ur !== de && pe(ur), It.keyCode) { - case Oe.ENTER: + case Le.ENTER: je(ur); break; - case Oe.UP: + case Le.UP: je(ur - 1); break; - case Oe.DOWN: + case Le.DOWN: je(ur + 1); break; } @@ -30794,7 +30835,7 @@ var nj = function(t) { return le; } var st = le > 1, Xe = le < su(void 0, K, f), Ue = V ?? f > N; - function Ae() { + function Oe() { st && je(le - 1); } function Ke() { @@ -30803,18 +30844,18 @@ var nj = function(t) { function ht() { je(Me); } - function Et() { + function Rt() { je(Ve); } function hr(It, ur) { - if (It.key === "Enter" || It.charCode === Oe.ENTER || It.keyCode === Oe.ENTER) { - for (var Dr = arguments.length, bn = new Array(Dr > 2 ? Dr - 2 : 0), ui = 2; ui < Dr; ui++) - bn[ui - 2] = arguments[ui]; + if (It.key === "Enter" || It.charCode === Le.ENTER || It.keyCode === Le.ENTER) { + for (var Dr = arguments.length, bn = new Array(Dr > 2 ? Dr - 2 : 0), di = 2; di < Dr; di++) + bn[di - 2] = arguments[di]; ur.apply(void 0, bn); } } function At(It) { - hr(It, Ae); + hr(It, Oe); } function Lt(It) { hr(It, Ke); @@ -30823,9 +30864,9 @@ var nj = function(t) { hr(It, ht); } function Mt(It) { - hr(It, Et); + hr(It, Rt); } - function mt(It) { + function yt(It) { var ur = W(It, "prev", oe(q, "prev page")); return /* @__PURE__ */ k.isValidElement(ur) ? /* @__PURE__ */ k.cloneElement(ur, { disabled: !st @@ -30837,10 +30878,10 @@ var nj = function(t) { disabled: !Xe }) : ur; } - function Rt(It) { - (It.type === "click" || It.keyCode === Oe.ENTER) && je(de); + function Pt(It) { + (It.type === "click" || It.keyCode === Le.ENTER) && je(de); } - var jt = null, We = Ji(t, { + var Ut = null, We = Ji(t, { aria: !0, data: !0 }), et = I && /* @__PURE__ */ k.createElement("li", { @@ -30848,7 +30889,7 @@ var nj = function(t) { }, I(f, [f === 0 ? 0 : (le - 1) * K + 1, le * K > f ? f : le * K])), rt = null, tt = su(void 0, K, f); if (C && f <= K) return null; - var yt = [], Gt = { + var Ct = [], Gt = { rootPrefixCls: i, onClick: je, onKeyPress: hr, @@ -30858,11 +30899,11 @@ var nj = function(t) { }, Mr = le - 1 > 0 ? le - 1 : 0, se = le + 1 < tt ? le + 1 : tt, ge = E && E.goButton, me = pt($) === "object" ? $.readOnly : !$, He = ge, ct = null; $ && (ge && (typeof ge == "boolean" ? He = /* @__PURE__ */ k.createElement("button", { type: "button", - onClick: Rt, - onKeyUp: Rt + onClick: Pt, + onKeyUp: Pt }, M.jump_to_confirm) : He = /* @__PURE__ */ k.createElement("span", { - onClick: Rt, - onKeyUp: Rt + onClick: Pt, + onKeyUp: Pt }, ge), He = /* @__PURE__ */ k.createElement("li", { title: T ? "".concat(M.jump_to).concat(le, "/").concat(tt) : null, className: "".concat(i, "-simple-pager") @@ -30883,21 +30924,21 @@ var nj = function(t) { }, "/"), tt)); var it = R ? 1 : 2; if (tt <= 3 + it * 2) { - tt || yt.push(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { + tt || Ct.push(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { key: "noPager", page: 1, className: "".concat(i, "-item-disabled") }))); for (var dt = 1; dt <= tt; dt += 1) - yt.push(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { + Ct.push(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { key: dt, page: dt, active: le === dt }))); } else { - var bt = R ? M.prev_3 : M.prev_5, qe = R ? M.next_3 : M.next_5, nt = W(Me, "jump-prev", oe(j, "prev page")), ut = W(Ve, "jump-next", oe(X, "next page")); - x && (jt = nt ? /* @__PURE__ */ k.createElement("li", { - title: T ? bt : null, + var wt = R ? M.prev_3 : M.prev_5, qe = R ? M.next_3 : M.next_5, nt = W(Me, "jump-prev", oe(j, "prev page")), ut = W(Ve, "jump-next", oe(X, "next page")); + x && (Ut = nt ? /* @__PURE__ */ k.createElement("li", { + title: T ? wt : null, key: "prev", onClick: ht, tabIndex: 0, @@ -30906,7 +30947,7 @@ var nj = function(t) { }, nt) : null, rt = ut ? /* @__PURE__ */ k.createElement("li", { title: T ? qe : null, key: "next", - onClick: Et, + onClick: Rt, tabIndex: 0, onKeyDown: Mt, className: ie("".concat(i, "-jump-next"), U({}, "".concat(i, "-jump-next-custom-icon"), !!X)) @@ -30914,33 +30955,33 @@ var nj = function(t) { var tr = Math.max(1, le - it), Or = Math.min(le + it, tt); le - 1 <= it && (Or = 1 + it * 2), tt - le <= it && (tr = tt - it * 2); for (var Br = tr; Br <= Or; Br += 1) - yt.push(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { + Ct.push(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { key: Br, page: Br, active: le === Br }))); - if (le - 1 >= it * 2 && le !== 3 && (yt[0] = /* @__PURE__ */ k.cloneElement(yt[0], { - className: ie("".concat(i, "-item-after-jump-prev"), yt[0].props.className) - }), yt.unshift(jt)), tt - le >= it * 2 && le !== tt - 2) { - var xr = yt[yt.length - 1]; - yt[yt.length - 1] = /* @__PURE__ */ k.cloneElement(xr, { + if (le - 1 >= it * 2 && le !== 3 && (Ct[0] = /* @__PURE__ */ k.cloneElement(Ct[0], { + className: ie("".concat(i, "-item-after-jump-prev"), Ct[0].props.className) + }), Ct.unshift(Ut)), tt - le >= it * 2 && le !== tt - 2) { + var xr = Ct[Ct.length - 1]; + Ct[Ct.length - 1] = /* @__PURE__ */ k.cloneElement(xr, { className: ie("".concat(i, "-item-before-jump-next"), xr.props.className) - }), yt.push(rt); + }), Ct.push(rt); } - tr !== 1 && yt.unshift(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { + tr !== 1 && Ct.unshift(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { key: 1, page: 1 - }))), Or !== tt && yt.push(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { + }))), Or !== tt && Ct.push(/* @__PURE__ */ k.createElement(Wh, Te({}, Gt, { key: tt, page: tt }))); } - var An = mt(Mr); + var An = yt(Mr); if (An) { var Qn = !st || !tt; An = /* @__PURE__ */ k.createElement("li", { title: T ? M.prev_page : null, - onClick: Ae, + onClick: Oe, tabIndex: Qn ? null : 0, onKeyDown: At, className: ie("".concat(i, "-prev"), U({}, "".concat(i, "-disabled"), Qn)), @@ -30963,8 +31004,8 @@ var nj = function(t) { return /* @__PURE__ */ k.createElement("ul", Te({ className: Vn, style: O, - ref: te - }, We), et, An, $ ? ct : yt, ln, /* @__PURE__ */ k.createElement(rj, { + ref: re + }, We), et, An, $ ? ct : Ct, ln, /* @__PURE__ */ k.createElement(oj, { locale: M, rootPrefixCls: i, disabled: F, @@ -30977,17 +31018,17 @@ var nj = function(t) { goButton: He })); }; -process.env.NODE_ENV !== "production" && (nj.displayName = "Pagination"); -const ij = (e) => /* @__PURE__ */ S.createElement(bo, Object.assign({}, e, { +process.env.NODE_ENV !== "production" && (aj.displayName = "Pagination"); +const sj = (e) => /* @__PURE__ */ S.createElement(bo, Object.assign({}, e, { showSearch: !0, size: "small" -})), oj = (e) => /* @__PURE__ */ S.createElement(bo, Object.assign({}, e, { +})), lj = (e) => /* @__PURE__ */ S.createElement(bo, Object.assign({}, e, { showSearch: !0, size: "middle" })); -ij.Option = bo.Option; -oj.Option = bo.Option; -const jCe = (e) => { +sj.Option = bo.Option; +lj.Option = bo.Option; +const rSe = (e) => { const { componentCls: t } = e; @@ -31067,20 +31108,20 @@ const jCe = (e) => { } } }; -}, UCe = (e) => { +}, nSe = (e) => { const { componentCls: t } = e; return { [`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]: { height: e.itemSizeSM, - lineHeight: ee(e.itemSizeSM) + lineHeight: te(e.itemSizeSM) }, [`&${t}-mini ${t}-item`]: { minWidth: e.itemSizeSM, height: e.itemSizeSM, margin: 0, - lineHeight: ee(e.calc(e.itemSizeSM).sub(2).equal()) + lineHeight: te(e.calc(e.itemSizeSM).sub(2).equal()) }, [`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]: { backgroundColor: "transparent", @@ -31096,7 +31137,7 @@ const jCe = (e) => { minWidth: e.itemSizeSM, height: e.itemSizeSM, margin: 0, - lineHeight: ee(e.itemSizeSM) + lineHeight: te(e.itemSizeSM) }, [`&${t}-mini:not(${t}-disabled)`]: { [`${t}-prev, ${t}-next`]: { @@ -31119,13 +31160,13 @@ const jCe = (e) => { borderColor: "transparent", "&::after": { height: e.itemSizeSM, - lineHeight: ee(e.itemSizeSM) + lineHeight: te(e.itemSizeSM) } }, [`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]: { height: e.itemSizeSM, marginInlineEnd: 0, - lineHeight: ee(e.itemSizeSM) + lineHeight: te(e.itemSizeSM) }, [`&${t}-mini ${t}-options`]: { marginInlineStart: e.paginationMiniOptionsMarginInlineStart, @@ -31134,15 +31175,15 @@ const jCe = (e) => { }, "&-quick-jumper": { height: e.itemSizeSM, - lineHeight: ee(e.itemSizeSM), - input: Object.assign(Object.assign({}, AI(e)), { + lineHeight: te(e.itemSizeSM), + input: Object.assign(Object.assign({}, AD(e)), { width: e.paginationMiniQuickJumperInputWidth, height: e.controlHeightSM }) } } }; -}, KCe = (e) => { +}, iSe = (e) => { const { componentCls: t } = e; @@ -31152,7 +31193,7 @@ const jCe = (e) => { &${t}-simple ${t}-next `]: { height: e.itemSizeSM, - lineHeight: ee(e.itemSizeSM), + lineHeight: te(e.itemSizeSM), verticalAlign: "top", [`${t}-item-link`]: { height: e.itemSizeSM, @@ -31166,7 +31207,7 @@ const jCe = (e) => { }, "&::after": { height: e.itemSizeSM, - lineHeight: ee(e.itemSizeSM) + lineHeight: te(e.itemSizeSM) } } }, @@ -31177,10 +31218,10 @@ const jCe = (e) => { input: { boxSizing: "border-box", height: "100%", - padding: `0 ${ee(e.paginationItemPaddingInline)}`, + padding: `0 ${te(e.paginationItemPaddingInline)}`, textAlign: "center", backgroundColor: e.itemInputBg, - border: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, + border: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, borderRadius: e.borderRadius, outline: "none", transition: `border-color ${e.motionDurationMid}`, @@ -31190,7 +31231,7 @@ const jCe = (e) => { }, "&:focus": { borderColor: e.colorPrimaryHover, - boxShadow: `${ee(e.inputOutlineOffset)} 0 ${ee(e.controlOutlineWidth)} ${e.controlOutline}` + boxShadow: `${te(e.inputOutlineOffset)} 0 ${te(e.controlOutlineWidth)} ${e.controlOutline}` }, "&[disabled]": { color: e.colorTextDisabled, @@ -31201,7 +31242,7 @@ const jCe = (e) => { } } }; -}, YCe = (e) => { +}, oSe = (e) => { const { componentCls: t, antCls: r @@ -31268,7 +31309,7 @@ const jCe = (e) => { height: e.itemSize, color: e.colorText, fontFamily: e.fontFamily, - lineHeight: `${ee(e.itemSize)}`, + lineHeight: `${te(e.itemSize)}`, textAlign: "center", verticalAlign: "middle", listStyle: "none", @@ -31292,7 +31333,7 @@ const jCe = (e) => { fontSize: e.fontSizeSM, textAlign: "center", backgroundColor: "transparent", - border: `${ee(e.lineWidth)} ${e.lineType} transparent`, + border: `${te(e.lineWidth)} ${e.lineType} transparent`, borderRadius: e.borderRadius, outline: "none", transition: `all ${e.motionDurationMid}` @@ -31329,15 +31370,15 @@ const jCe = (e) => { display: "inline-block", height: e.controlHeight, marginInlineStart: e.marginXS, - lineHeight: ee(e.controlHeight), + lineHeight: te(e.controlHeight), verticalAlign: "top", - input: Object.assign(Object.assign(Object.assign({}, OI(e)), II(e, { + input: Object.assign(Object.assign(Object.assign({}, OD(e)), ID(e, { borderColor: e.colorBorder, hoverBorderColor: e.colorPrimaryHover, activeBorderColor: e.colorPrimary, activeShadow: e.activeShadow })), { - "&[disabled]": Object.assign({}, iw(e)), + "&[disabled]": Object.assign({}, aw(e)), width: e.calc(e.controlHeightLG).mul(1.25).equal(), height: e.controlHeight, boxSizing: "border-box", @@ -31348,7 +31389,7 @@ const jCe = (e) => { } } }; -}, qCe = (e) => { +}, aSe = (e) => { const { componentCls: t } = e; @@ -31359,19 +31400,19 @@ const jCe = (e) => { height: e.itemSize, marginInlineEnd: e.marginXS, fontFamily: e.fontFamily, - lineHeight: ee(e.calc(e.itemSize).sub(2).equal()), + lineHeight: te(e.calc(e.itemSize).sub(2).equal()), textAlign: "center", verticalAlign: "middle", listStyle: "none", backgroundColor: "transparent", - border: `${ee(e.lineWidth)} ${e.lineType} transparent`, + border: `${te(e.lineWidth)} ${e.lineType} transparent`, borderRadius: e.borderRadius, outline: 0, cursor: "pointer", userSelect: "none", a: { display: "block", - padding: `0 ${ee(e.paginationItemPaddingInline)}`, + padding: `0 ${te(e.paginationItemPaddingInline)}`, color: e.colorText, "&:hover": { textDecoration: "none" @@ -31402,7 +31443,7 @@ const jCe = (e) => { } } }; -}, XCe = (e) => { +}, sSe = (e) => { const { componentCls: t } = e; @@ -31435,10 +31476,10 @@ const jCe = (e) => { display: "inline-block", height: e.itemSize, marginInlineEnd: e.marginXS, - lineHeight: ee(e.calc(e.itemSize).sub(2).equal()), + lineHeight: te(e.calc(e.itemSize).sub(2).equal()), verticalAlign: "middle" } - }), qCe(e)), YCe(e)), KCe(e)), UCe(e)), jCe(e)), { + }), aSe(e)), oSe(e)), iSe(e)), nSe(e)), rSe(e)), { // media query style [`@media only screen and (max-width: ${e.screenLG}px)`]: { [`${t}-item`]: { @@ -31458,7 +31499,7 @@ const jCe = (e) => { direction: "rtl" } }; -}, ZCe = (e) => { +}, lSe = (e) => { const { componentCls: t } = e; @@ -31480,7 +31521,7 @@ const jCe = (e) => { } } }; -}, aj = (e) => Object.assign({ +}, cj = (e) => Object.assign({ itemBg: e.colorBgContainer, itemSize: e.controlHeight, itemSizeSM: e.controlHeightSM, @@ -31490,7 +31531,7 @@ const jCe = (e) => { itemActiveBgDisabled: e.controlItemBgActiveDisabled, itemInputBg: e.colorBgContainer, miniOptionsSizeChangerTop: 0 -}, DI(e)), sj = (e) => fr(e, { +}, DD(e)), uj = (e) => fr(e, { inputOutlineOffset: 0, paginationMiniOptionsMarginInlineStart: e.calc(e.marginXXS).div(2).equal(), paginationMiniQuickJumperInputWidth: e.calc(e.controlHeightLG).mul(1.1).equal(), @@ -31500,10 +31541,10 @@ const jCe = (e) => { paginationSlashMarginInlineEnd: e.marginSM, paginationEllipsisTextIndent: "0.13em" // magic for ui experience -}, MI(e)), QCe = Ur("Pagination", (e) => { - const t = sj(e); - return [XCe(t), ZCe(t)]; -}, aj), JCe = (e) => { +}, MD(e)), cSe = Kr("Pagination", (e) => { + const t = uj(e); + return [sSe(t), lSe(t)]; +}, cj), uSe = (e) => { const { componentCls: t } = e; @@ -31569,7 +31610,7 @@ const jCe = (e) => { }, [`${t}-item`]: { backgroundColor: e.itemBg, - border: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, + border: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, [`&:hover:not(${t}-item-active)`]: { borderColor: e.colorPrimary, backgroundColor: e.itemBg, @@ -31583,18 +31624,18 @@ const jCe = (e) => { } } }; -}, eSe = ym(["Pagination", "bordered"], (e) => { - const t = sj(e); - return [JCe(t)]; -}, aj); -var tSe = function(e, t) { +}, dSe = Sm(["Pagination", "bordered"], (e) => { + const t = uj(e); + return [uSe(t)]; +}, cj); +var hSe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const zI = (e) => { +const zD = (e) => { const { align: t, prefixCls: r, @@ -31607,13 +31648,13 @@ const zI = (e) => { selectComponentClass: c, responsive: u, showSizeChanger: d - } = e, h = tSe(e, ["align", "prefixCls", "selectPrefixCls", "className", "rootClassName", "style", "size", "locale", "selectComponentClass", "responsive", "showSizeChanger"]), { + } = e, h = hSe(e, ["align", "prefixCls", "selectPrefixCls", "className", "rootClassName", "style", "size", "locale", "selectComponentClass", "responsive", "showSizeChanger"]), { xs: f - } = Qb(u), [, p] = ai(), { + } = ew(u), [, p] = ai(), { getPrefixCls: g, direction: v, pagination: m = {} - } = S.useContext(gt), y = g("pagination", r), [C, b, w] = QCe(y), x = d ?? m.showSizeChanger, E = S.useMemo(() => { + } = S.useContext(gt), y = g("pagination", r), [C, b, w] = cSe(y), x = d ?? m.showSizeChanger, E = S.useMemo(() => { const O = /* @__PURE__ */ S.createElement("span", { className: `${y}-item-ellipsis` }, "•••"), L = /* @__PURE__ */ S.createElement("button", { @@ -31653,26 +31694,26 @@ const zI = (e) => { jumpPrevIcon: F, jumpNextIcon: $ }; - }, [v, y]), [R] = Bd("Pagination", mG), P = Object.assign(Object.assign({}, R), l), T = Ro(s), _ = T === "small" || !!(f && !T && u), D = g("select", n), A = ie({ + }, [v, y]), [R] = Bd("Pagination", SG), P = Object.assign(Object.assign({}, R), l), T = Ro(s), _ = T === "small" || !!(f && !T && u), D = g("select", n), A = ie({ [`${y}-${t}`]: !!t, [`${y}-mini`]: _, [`${y}-rtl`]: v === "rtl", [`${y}-bordered`]: p.wireframe }, m == null ? void 0 : m.className, i, o, b, w), M = Object.assign(Object.assign({}, m == null ? void 0 : m.style), a); - return C(/* @__PURE__ */ S.createElement(S.Fragment, null, p.wireframe && /* @__PURE__ */ S.createElement(eSe, { + return C(/* @__PURE__ */ S.createElement(S.Fragment, null, p.wireframe && /* @__PURE__ */ S.createElement(dSe, { prefixCls: y - }), /* @__PURE__ */ S.createElement(nj, Object.assign({}, E, h, { + }), /* @__PURE__ */ S.createElement(aj, Object.assign({}, E, h, { style: M, prefixCls: y, selectPrefixCls: D, className: A, - selectComponentClass: c || (_ ? ij : oj), + selectComponentClass: c || (_ ? sj : lj), locale: P, showSizeChanger: x })))); }; -process.env.NODE_ENV !== "production" && (zI.displayName = "Pagination"); -function rSe(e) { +process.env.NODE_ENV !== "production" && (zD.displayName = "Pagination"); +function fSe(e) { let { percent: t, prefixCls: r @@ -31703,7 +31744,7 @@ function rSe(e) { strokeDashoffset: `${h / 4}` }))) : null; } -function nSe(e) { +function pSe(e) { const { prefixCls: t, percent: r = 0 @@ -31715,12 +31756,12 @@ function nSe(e) { }, [1, 2, 3, 4].map((a) => /* @__PURE__ */ S.createElement("i", { className: `${t}-dot-item`, key: a - })))), /* @__PURE__ */ S.createElement(rSe, { + })))), /* @__PURE__ */ S.createElement(fSe, { prefixCls: t, percent: r })); } -function iSe(e) { +function gSe(e) { const { prefixCls: t, indicator: r, @@ -31729,20 +31770,20 @@ function iSe(e) { return r && /* @__PURE__ */ S.isValidElement(r) ? eo(r, { className: ie(r.props.className, i), percent: n - }) : /* @__PURE__ */ S.createElement(nSe, { + }) : /* @__PURE__ */ S.createElement(pSe, { prefixCls: t, percent: n }); } -const oSe = new _r("antSpinMove", { +const vSe = new _r("antSpinMove", { to: { opacity: 1 } -}), aSe = new _r("antRotate", { +}), mSe = new _r("antRotate", { to: { transform: "rotate(405deg)" } -}), sSe = (e) => { +}), ySe = (e) => { const { componentCls: t, calc: r @@ -31924,7 +31965,7 @@ const oSe = new _r("antSpinMove", { transform: "scale(0.75)", transformOrigin: "50% 50%", opacity: 0.3, - animationName: oSe, + animationName: vSe, animationDuration: "1s", animationIterationCount: "infinite", animationTimingFunction: "linear", @@ -31952,7 +31993,7 @@ const oSe = new _r("antSpinMove", { }, "&-spin": { transform: "rotate(45deg)", - animationName: aSe, + animationName: mSe, animationDuration: "1.2s", animationIterationCount: "infinite", animationTimingFunction: "linear" @@ -31992,7 +32033,7 @@ const oSe = new _r("antSpinMove", { } }) }; -}, lSe = (e) => { +}, CSe = (e) => { const { controlHeightLG: t, controlHeight: r @@ -32003,40 +32044,40 @@ const oSe = new _r("antSpinMove", { dotSizeSM: t * 0.35, dotSizeLG: r }; -}, cSe = Ur("Spin", (e) => { +}, SSe = Kr("Spin", (e) => { const t = fr(e, { spinDotDefault: e.colorTextDescription }); - return [sSe(t)]; -}, lSe), uSe = 200, zk = [[30, 0.05], [70, 0.03], [96, 0.01]]; -function dSe(e, t) { + return [ySe(t)]; +}, CSe), bSe = 200, Wk = [[30, 0.05], [70, 0.03], [96, 0.01]]; +function wSe(e, t) { const [r, n] = S.useState(0), i = S.useRef(), o = t === "auto"; return S.useEffect(() => (o && e && (n(0), i.current = setInterval(() => { n((a) => { const s = 100 - a; - for (let l = 0; l < zk.length; l += 1) { - const [c, u] = zk[l]; + for (let l = 0; l < Wk.length; l += 1) { + const [c, u] = Wk[l]; if (a <= c) return a + s * u; } return a; }); - }, uSe)), () => { + }, bSe)), () => { clearInterval(i.current); }), [o, e]), o ? r : t; } -var hSe = function(e, t) { +var xSe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -let lj; -function fSe(e, t) { +let dj; +function ESe(e, t) { return !!e && !!t && !isNaN(Number(t)); } -const Nm = (e) => { +const $m = (e) => { const { prefixCls: t, spinning: r = !0, @@ -32051,12 +32092,12 @@ const Nm = (e) => { fullscreen: d = !1, indicator: h, percent: f - } = e, p = hSe(e, ["prefixCls", "spinning", "delay", "className", "rootClassName", "size", "tip", "wrapperClassName", "style", "children", "fullscreen", "indicator", "percent"]), { + } = e, p = xSe(e, ["prefixCls", "spinning", "delay", "className", "rootClassName", "size", "tip", "wrapperClassName", "style", "children", "fullscreen", "indicator", "percent"]), { getPrefixCls: g - } = S.useContext(gt), v = g("spin", t), [m, y, C] = cSe(v), [b, w] = S.useState(() => r && !fSe(r, n)), x = dSe(b, f); + } = S.useContext(gt), v = g("spin", t), [m, y, C] = SSe(v), [b, w] = S.useState(() => r && !ESe(r, n)), x = wSe(b, f); S.useEffect(() => { if (r) { - const M = yye(n, () => { + const M = Mye(n, () => { w(!0); }); return M(), () => { @@ -32087,9 +32128,9 @@ const Nm = (e) => { className: T, "aria-live": "polite", "aria-busy": b - }), /* @__PURE__ */ S.createElement(iSe, { + }), /* @__PURE__ */ S.createElement(gSe, { prefixCls: v, - indicator: h ?? lj, + indicator: h ?? dj, percent: x }), s && (E || d) ? /* @__PURE__ */ S.createElement("div", { className: `${v}-text` @@ -32107,27 +32148,27 @@ const Nm = (e) => { }, o, y, C) }, A) : A); }; -Nm.setDefaultIndicator = (e) => { - lj = e; +$m.setDefaultIndicator = (e) => { + dj = e; }; -process.env.NODE_ENV !== "production" && (Nm.displayName = "Spin"); -const GI = /* @__PURE__ */ k.createContext({}); -GI.Consumer; -var cj = function(e, t) { +process.env.NODE_ENV !== "production" && ($m.displayName = "Spin"); +const GD = /* @__PURE__ */ k.createContext({}); +GD.Consumer; +var hj = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const pSe = (e) => { +const RSe = (e) => { var { prefixCls: t, className: r, avatar: n, title: i, description: o - } = e, a = cj(e, ["prefixCls", "className", "avatar", "title", "description"]); + } = e, a = hj(e, ["prefixCls", "className", "avatar", "title", "description"]); const { getPrefixCls: s } = Jt(gt), l = s("list", t), c = ie(`${l}-item-meta`, r), u = /* @__PURE__ */ k.createElement("div", { @@ -32142,7 +32183,7 @@ const pSe = (e) => { }), n && /* @__PURE__ */ k.createElement("div", { className: `${l}-item-meta-avatar` }, n), (i || o) && u); -}, gSe = /* @__PURE__ */ k.forwardRef((e, t) => { +}, PSe = /* @__PURE__ */ k.forwardRef((e, t) => { const { prefixCls: r, children: n, @@ -32152,10 +32193,10 @@ const pSe = (e) => { className: s, classNames: l, colStyle: c - } = e, u = cj(e, ["prefixCls", "children", "actions", "extra", "styles", "className", "classNames", "colStyle"]), { + } = e, u = hj(e, ["prefixCls", "children", "actions", "extra", "styles", "className", "classNames", "colStyle"]), { grid: d, itemLayout: h - } = Jt(GI), { + } = Jt(GD), { getPrefixCls: f, list: p } = Jt(gt), g = (E) => { @@ -32196,14 +32237,14 @@ const pSe = (e) => { }, o)] : [n, b, eo(o, { key: "extra" })]); - return d ? /* @__PURE__ */ k.createElement(M7, { + return d ? /* @__PURE__ */ k.createElement(A7, { ref: t, flex: 1, style: c }, x) : x; -}), uj = gSe; -uj.Meta = pSe; -const vSe = (e) => { +}), fj = PSe; +fj.Meta = RSe; +const TSe = (e) => { const { listBorderedCls: t, componentCls: r, @@ -32216,13 +32257,13 @@ const vSe = (e) => { } = e; return { [`${t}`]: { - border: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, + border: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, borderRadius: l, [`${r}-header,${r}-footer,${r}-item`]: { paddingInline: n }, [`${r}-pagination`]: { - margin: `${ee(i)} ${ee(s)}` + margin: `${te(i)} ${te(s)}` } }, [`${t}${r}-sm`]: { @@ -32236,7 +32277,7 @@ const vSe = (e) => { } } }; -}, mSe = (e) => { +}, _Se = (e) => { const { componentCls: t, screenSM: r, @@ -32278,13 +32319,13 @@ const vSe = (e) => { minWidth: e.contentWidth }, [`${t}-item-extra`]: { - margin: `auto auto ${ee(a)}` + margin: `auto auto ${te(a)}` } } } } }; -}, ySe = (e) => { +}, MSe = (e) => { const { componentCls: t, antCls: r, @@ -32362,7 +32403,7 @@ const vSe = (e) => { color: p }, [`${t}-item-meta-title`]: { - margin: `0 0 ${ee(e.marginXXS)} 0`, + margin: `0 0 ${te(e.marginXXS)} 0`, color: p, fontSize: e.fontSize, lineHeight: e.lineHeight, @@ -32389,7 +32430,7 @@ const vSe = (e) => { "& > li": { position: "relative", display: "inline-block", - padding: `0 ${ee(h)}`, + padding: `0 ${te(h)}`, color: g, fontSize: e.fontSize, lineHeight: e.lineHeight, @@ -32410,7 +32451,7 @@ const vSe = (e) => { } }, [`${t}-empty`]: { - padding: `${ee(s)} 0`, + padding: `${te(s)} 0`, color: g, fontSize: e.fontSizeSM, textAlign: "center" @@ -32456,7 +32497,7 @@ const vSe = (e) => { marginBlockStart: s, marginInlineStart: "auto", "> li": { - padding: `0 ${ee(s)}`, + padding: `0 ${te(s)}`, "&:first-child": { paddingInlineStart: 0 } @@ -32464,22 +32505,22 @@ const vSe = (e) => { } }, [`${t}-split ${t}-item`]: { - borderBlockEnd: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`, + borderBlockEnd: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`, "&:last-child": { borderBlockEnd: "none" } }, [`${t}-split ${t}-header`]: { - borderBlockEnd: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}` + borderBlockEnd: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}` }, [`${t}-split${t}-empty ${t}-footer`]: { - borderTop: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}` + borderTop: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}` }, [`${t}-loading ${t}-spin-nested-loading`]: { minHeight: n }, [`${t}-split${t}-something-after-last-item ${r}-spin-container > ${t}-items > ${t}-item:last-child`]: { - borderBlockEnd: `${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}` + borderBlockEnd: `${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}` }, [`${t}-lg ${t}-item`]: { padding: d @@ -32496,11 +32537,11 @@ const vSe = (e) => { } } }; -}, CSe = (e) => ({ +}, DSe = (e) => ({ contentWidth: 220, - itemPadding: `${ee(e.paddingContentVertical)} 0`, - itemPaddingSM: `${ee(e.paddingContentVerticalSM)} ${ee(e.paddingContentHorizontal)}`, - itemPaddingLG: `${ee(e.paddingContentVerticalLG)} ${ee(e.paddingContentHorizontalLG)}`, + itemPadding: `${te(e.paddingContentVertical)} 0`, + itemPaddingSM: `${te(e.paddingContentVerticalSM)} ${te(e.paddingContentHorizontal)}`, + itemPaddingLG: `${te(e.paddingContentVerticalLG)} ${te(e.paddingContentHorizontalLG)}`, headerBg: "transparent", footerBg: "transparent", emptyTextPadding: e.padding, @@ -32508,21 +32549,21 @@ const vSe = (e) => { avatarMarginRight: e.padding, titleMarginBottom: e.paddingSM, descriptionFontSize: e.fontSize -}), SSe = Ur("List", (e) => { +}), ISe = Kr("List", (e) => { const t = fr(e, { listBorderedCls: `${e.componentCls}-bordered`, minHeight: e.controlHeightLG }); - return [ySe(t), vSe(t), mSe(t)]; -}, CSe); -var bSe = function(e, t) { + return [MSe(t), TSe(t), _Se(t)]; +}, DSe); +var ASe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function Ug(e) { +function Yg(e) { var { pagination: t = !1, prefixCls: r, @@ -32543,7 +32584,7 @@ function Ug(e) { rowKey: m, renderItem: y, locale: C - } = e, b = bSe(e, ["pagination", "prefixCls", "bordered", "split", "className", "rootClassName", "style", "children", "itemLayout", "loadMore", "grid", "dataSource", "size", "header", "footer", "loading", "rowKey", "renderItem", "locale"]); + } = e, b = ASe(e, ["pagination", "prefixCls", "bordered", "split", "className", "rootClassName", "style", "children", "itemLayout", "loadMore", "grid", "dataSource", "size", "header", "footer", "loading", "rowKey", "renderItem", "locale"]); const w = t && typeof t == "object" ? t : {}, [x, E] = S.useState(w.defaultCurrent || 1), [R, P] = S.useState(w.defaultPageSize || 10), { getPrefixCls: T, renderEmpty: _, @@ -32561,7 +32602,7 @@ function Ug(e) { return typeof m == "function" ? _e = m(de) : m ? _e = de[m] : _e = de.key, _e || (_e = `list-item-${pe}`), /* @__PURE__ */ S.createElement(S.Fragment, { key: _e }, y(de, pe)); - }, $ = () => !!(u || t || g), I = T("list", r), [V, H, B] = SSe(I); + }, $ = () => !!(u || t || g), I = T("list", r), [V, H, B] = ISe(I); let W = v; typeof W == "boolean" && (W = { spinning: W @@ -32585,36 +32626,36 @@ function Ug(e) { [`${I}-grid`]: !!d, [`${I}-something-after-last-item`]: $(), [`${I}-rtl`]: D === "rtl" - }, A == null ? void 0 : A.className, o, a, H, B), te = tj(M, { + }, A == null ? void 0 : A.className, o, a, H, B), re = ij(M, { total: h.length, current: x, pageSize: R - }, t || {}), Q = Math.ceil(te.total / te.pageSize); - te.current > Q && (te.current = Q); + }, t || {}), Q = Math.ceil(re.total / re.pageSize); + re.current > Q && (re.current = Q); const Y = t && /* @__PURE__ */ S.createElement("div", { className: ie(`${I}-pagination`) - }, /* @__PURE__ */ S.createElement(zI, Object.assign({}, te, { + }, /* @__PURE__ */ S.createElement(zD, Object.assign({}, re, { onChange: L, onShowSizeChange: N }))); let K = $e(h); - t && h.length > (te.current - 1) * te.pageSize && (K = $e(h).splice((te.current - 1) * te.pageSize, te.pageSize)); - const ae = Object.keys(d || {}).some((de) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(de)), G = Qb(ae), re = S.useMemo(() => { - for (let de = 0; de < kl.length; de += 1) { - const pe = kl[de]; + t && h.length > (re.current - 1) * re.pageSize && (K = $e(h).splice((re.current - 1) * re.pageSize, re.pageSize)); + const ae = Object.keys(d || {}).some((de) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(de)), G = ew(ae), ne = S.useMemo(() => { + for (let de = 0; de < $l.length; de += 1) { + const pe = $l[de]; if (G[pe]) return pe; } }, [G]), le = S.useMemo(() => { if (!d) return; - const de = re && d[re] ? d[re] : d.column; + const de = ne && d[ne] ? d[ne] : d.column; if (de) return { width: `${100 / de}%`, maxWidth: `${100 / de}%` }; - }, [JSON.stringify(d), re]); + }, [JSON.stringify(d), ne]); let ue = j && /* @__PURE__ */ S.createElement("div", { style: { minHeight: 53 @@ -32622,7 +32663,7 @@ function Ug(e) { }); if (K.length > 0) { const de = K.map((pe, _e) => F(pe, _e)); - ue = d ? /* @__PURE__ */ S.createElement(D7, { + ue = d ? /* @__PURE__ */ S.createElement(O7, { gutter: d.gutter }, S.Children.map(de, (pe) => /* @__PURE__ */ S.createElement("div", { key: pe == null ? void 0 : pe.key, @@ -32632,35 +32673,35 @@ function Ug(e) { }, de); } else !l && !j && (ue = /* @__PURE__ */ S.createElement("div", { className: `${I}-empty-text` - }, (C == null ? void 0 : C.emptyText) || (_ == null ? void 0 : _("List")) || /* @__PURE__ */ S.createElement(vI, { + }, (C == null ? void 0 : C.emptyText) || (_ == null ? void 0 : _("List")) || /* @__PURE__ */ S.createElement(vD, { componentName: "List" }))); - const he = te.position || "bottom", fe = S.useMemo(() => ({ + const he = re.position || "bottom", fe = S.useMemo(() => ({ grid: d, itemLayout: c }), [JSON.stringify(d), c]); - return V(/* @__PURE__ */ S.createElement(GI.Provider, { + return V(/* @__PURE__ */ S.createElement(GD.Provider, { value: fe }, /* @__PURE__ */ S.createElement("div", Object.assign({ style: Object.assign(Object.assign({}, A == null ? void 0 : A.style), s), className: J }, b), (he === "top" || he === "both") && Y, p && /* @__PURE__ */ S.createElement("div", { className: `${I}-header` - }, p), /* @__PURE__ */ S.createElement(Nm, Object.assign({}, W), ue, l), g && /* @__PURE__ */ S.createElement("div", { + }, p), /* @__PURE__ */ S.createElement($m, Object.assign({}, W), ue, l), g && /* @__PURE__ */ S.createElement("div", { className: `${I}-footer` }, g), u || (he === "bottom" || he === "both") && Y))); } -process.env.NODE_ENV !== "production" && (Ug.displayName = "List"); -Ug.Item = uj; -let la = null, Qu = (e) => e(), Lv = [], Fv = {}; -function Gk() { +process.env.NODE_ENV !== "production" && (Yg.displayName = "List"); +Yg.Item = fj; +let la = null, Qu = (e) => e(), kv = [], $v = {}; +function jk() { const { getContainer: e, duration: t, rtl: r, maxCount: n, top: i - } = Fv, o = (e == null ? void 0 : e()) || document.body; + } = $v, o = (e == null ? void 0 : e()) || document.body; return { getContainer: () => o, duration: t, @@ -32669,13 +32710,13 @@ function Gk() { top: i }; } -const wSe = /* @__PURE__ */ k.forwardRef((e, t) => { +const OSe = /* @__PURE__ */ k.forwardRef((e, t) => { const { messageConfig: r, sync: n } = e, { getPrefixCls: i - } = Jt(gt), o = Fv.prefixCls || i("message"), a = Jt(Zhe), [s, l] = fW(Object.assign(Object.assign(Object.assign({}, r), { + } = Jt(gt), o = $v.prefixCls || i("message"), a = Jt(lfe), [s, l] = vW(Object.assign(Object.assign(Object.assign({}, r), { prefixCls: o }), a.message)); return k.useImperativeHandle(t, () => { @@ -32689,12 +32730,12 @@ const wSe = /* @__PURE__ */ k.forwardRef((e, t) => { sync: n }; }), l; -}), xSe = /* @__PURE__ */ k.forwardRef((e, t) => { - const [r, n] = k.useState(Gk), i = () => { - n(Gk); +}), LSe = /* @__PURE__ */ k.forwardRef((e, t) => { + const [r, n] = k.useState(jk), i = () => { + n(jk); }; k.useEffect(i, []); - const o = WD(), a = o.getRootPrefixCls(), s = o.getIconPrefixCls(), l = o.getTheme(), c = /* @__PURE__ */ k.createElement(wSe, { + const o = W2(), a = o.getRootPrefixCls(), s = o.getIconPrefixCls(), l = o.getTheme(), c = /* @__PURE__ */ k.createElement(OSe, { ref: t, sync: i, messageConfig: r @@ -32705,27 +32746,27 @@ const wSe = /* @__PURE__ */ k.forwardRef((e, t) => { theme: l }, o.holderRender ? o.holderRender(c) : c); }); -function uw() { +function hw() { if (!la) { const e = document.createDocumentFragment(), t = { fragment: e }; la = t, Qu(() => { - YD(/* @__PURE__ */ k.createElement(xSe, { + Y2(/* @__PURE__ */ k.createElement(LSe, { ref: (r) => { const { instance: n, sync: i } = r || {}; Promise.resolve().then(() => { - !t.instance && n && (t.instance = n, t.sync = i, uw()); + !t.instance && n && (t.instance = n, t.sync = i, hw()); }); } }), e); }); return; } - la.instance && (Lv.forEach((e) => { + la.instance && (kv.forEach((e) => { const { type: t, skipped: r @@ -32734,7 +32775,7 @@ function uw() { switch (t) { case "open": { Qu(() => { - const n = la.instance.open(Object.assign(Object.assign({}, Fv), e.config)); + const n = la.instance.open(Object.assign(Object.assign({}, $v), e.config)); n == null || n.then(e.resolve), e.setCloseFn(n); }); break; @@ -32751,16 +32792,16 @@ function uw() { i == null || i.then(e.resolve), e.setCloseFn(i); }); } - }), Lv = []); + }), kv = []); } -function ESe(e) { - Fv = Object.assign(Object.assign({}, Fv), e), Qu(() => { +function FSe(e) { + $v = Object.assign(Object.assign({}, $v), e), Qu(() => { var t; (t = la == null ? void 0 : la.sync) === null || t === void 0 || t.call(la); }); } -function RSe(e) { - const t = KD((r) => { +function NSe(e) { + const t = K2((r) => { let n; const i = { type: "open", @@ -32770,18 +32811,18 @@ function RSe(e) { n = o; } }; - return Lv.push(i), () => { + return kv.push(i), () => { n ? Qu(() => { n(); }) : i.skipped = !0; }; }); - return uw(), t; + return hw(), t; } -function PSe(e, t) { - const r = WD(); - process.env.NODE_ENV !== "production" && !r.holderRender && qG("message"); - const n = KD((i) => { +function kSe(e, t) { + const r = W2(); + process.env.NODE_ENV !== "production" && !r.holderRender && QG("message"); + const n = K2((i) => { let o; const a = { type: e, @@ -32791,43 +32832,43 @@ function PSe(e, t) { o = s; } }; - return Lv.push(a), () => { + return kv.push(a), () => { o ? Qu(() => { o(); }) : a.skipped = !0; }; }); - return uw(), n; + return hw(), n; } -const TSe = (e) => { - Lv.push({ +const $Se = (e) => { + kv.push({ type: "destroy", key: e - }), uw(); -}, _Se = ["success", "info", "warning", "error", "loading"], MSe = { - open: RSe, - destroy: TSe, - config: ESe, - useMessage: Pce, - _InternalPanelDoNotUseOrYouWillBeFired: yce -}, dj = MSe; -_Se.forEach((e) => { - dj[e] = function() { + }), hw(); +}, BSe = ["success", "info", "warning", "error", "loading"], VSe = { + open: NSe, + destroy: $Se, + config: FSe, + useMessage: kce, + _InternalPanelDoNotUseOrYouWillBeFired: Mce +}, pj = VSe; +BSe.forEach((e) => { + pj[e] = function() { for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n]; - return PSe(e, r); + return kSe(e, r); }; }); process.env.NODE_ENV; process.env.NODE_ENV; -var DSe = function(e, t) { +var HSe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const ISe = (e) => { +const zSe = (e) => { const { prefixCls: t, className: r, @@ -32837,15 +32878,15 @@ const ISe = (e) => { title: a, children: s, footer: l - } = e, c = DSe(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), { + } = e, c = HSe(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), { getPrefixCls: u - } = S.useContext(gt), d = u(), h = t || u("modal"), f = mi(d), [p, g, v] = KW(h, f), m = `${h}-confirm`; + } = S.useContext(gt), d = u(), h = t || u("modal"), f = yi(d), [p, g, v] = XW(h, f), m = `${h}-confirm`; let y = {}; return o ? y = { closable: i ?? !1, title: "", footer: "", - children: /* @__PURE__ */ S.createElement(qW, Object.assign({}, e, { + children: /* @__PURE__ */ S.createElement(QW, Object.assign({}, e, { prefixCls: h, confirmPrefixCls: m, rootPrefixCls: d, @@ -32854,34 +32895,34 @@ const ISe = (e) => { } : y = { closable: i ?? !0, title: a, - footer: l !== null && /* @__PURE__ */ S.createElement(HW, Object.assign({}, e)), + footer: l !== null && /* @__PURE__ */ S.createElement(WW, Object.assign({}, e)), children: s - }, p(/* @__PURE__ */ S.createElement(eI, Object.assign({ + }, p(/* @__PURE__ */ S.createElement(eD, Object.assign({ prefixCls: h, className: ie(g, `${h}-pure-panel`, o && m, o && `${m}-${o}`, r, v, f) }, c, { - closeIcon: VW(h, n), + closeIcon: GW(h, n), closable: i }, y))); -}, ASe = i9(ISe); -function hj(e) { - return _m(JW(e)); +}, GSe = s9(zSe); +function gj(e) { + return Dm(r9(e)); } -const _a = YW; -_a.useModal = Xhe; +const _a = ZW; +_a.useModal = sfe; _a.info = function(t) { - return _m(e9(t)); + return Dm(n9(t)); }; _a.success = function(t) { - return _m(t9(t)); + return Dm(i9(t)); }; _a.error = function(t) { - return _m(r9(t)); + return Dm(o9(t)); }; -_a.warning = hj; -_a.warn = hj; +_a.warning = gj; +_a.warn = gj; _a.confirm = function(t) { - return _m(n9(t)); + return Dm(a9(t)); }; _a.destroyAll = function() { for (; Zu.length; ) { @@ -32889,10 +32930,10 @@ _a.destroyAll = function() { t && t(); } }; -_a.config = jhe; -_a._InternalPanelDoNotUseOrYouWillBeFired = ASe; +_a.config = rfe; +_a._InternalPanelDoNotUseOrYouWillBeFired = GSe; process.env.NODE_ENV !== "production" && (_a.displayName = "Modal"); -const OSe = (e) => { +const WSe = (e) => { const { componentCls: t, iconCls: r, @@ -32944,24 +32985,24 @@ const OSe = (e) => { } } }; -}, LSe = (e) => { +}, jSe = (e) => { const { zIndexPopupBase: t } = e; return { zIndexPopup: t + 60 }; -}, fj = Ur("Popconfirm", (e) => OSe(e), LSe, { +}, vj = Kr("Popconfirm", (e) => WSe(e), jSe, { resetStyle: !1 }); -var FSe = function(e, t) { +var USe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const pj = (e) => { +const mj = (e) => { const { prefixCls: t, okButtonProps: r, @@ -32971,7 +33012,7 @@ const pj = (e) => { cancelText: a, okText: s, okType: l = "primary", - icon: c = /* @__PURE__ */ S.createElement(Cm, null), + icon: c = /* @__PURE__ */ S.createElement(bm, null), showCancel: u = !0, close: d, onConfirm: h, @@ -32995,57 +33036,57 @@ const pj = (e) => { className: `${t}-description` }, y))), /* @__PURE__ */ S.createElement("div", { className: `${t}-buttons` - }, u && /* @__PURE__ */ S.createElement(kr, Object.assign({ + }, u && /* @__PURE__ */ S.createElement(Fr, Object.assign({ onClick: f, size: "small" - }, n), a || (v == null ? void 0 : v.cancelText)), /* @__PURE__ */ S.createElement(JD, { + }, n), a || (v == null ? void 0 : v.cancelText)), /* @__PURE__ */ S.createElement(J2, { buttonProps: Object.assign(Object.assign({ size: "small" - }, qD(l)), r), + }, q2(l)), r), actionFn: h, close: d, prefixCls: g("btn"), quitOnNullishReturnValue: !0, emitEvent: !0 }, s || (v == null ? void 0 : v.okText)))); -}, NSe = (e) => { +}, KSe = (e) => { const { prefixCls: t, placement: r, className: n, style: i - } = e, o = FSe(e, ["prefixCls", "placement", "className", "style"]), { + } = e, o = USe(e, ["prefixCls", "placement", "className", "style"]), { getPrefixCls: a - } = S.useContext(gt), s = a("popconfirm", t), [l] = fj(s); - return l(/* @__PURE__ */ S.createElement(V9, { + } = S.useContext(gt), s = a("popconfirm", t), [l] = vj(s); + return l(/* @__PURE__ */ S.createElement(G9, { placement: r, className: ie(s, n), style: i, - content: /* @__PURE__ */ S.createElement(pj, Object.assign({ + content: /* @__PURE__ */ S.createElement(mj, Object.assign({ prefixCls: s }, o)) })); }; -var kSe = function(e, t) { +var YSe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const $Se = /* @__PURE__ */ S.forwardRef((e, t) => { +const qSe = /* @__PURE__ */ S.forwardRef((e, t) => { var r, n; const { prefixCls: i, placement: o = "top", trigger: a = "click", okType: s = "primary", - icon: l = /* @__PURE__ */ S.createElement(Cm, null), + icon: l = /* @__PURE__ */ S.createElement(bm, null), children: c, overlayClassName: u, onOpenChange: d, onVisibleChange: h - } = e, f = kSe(e, ["prefixCls", "placement", "trigger", "okType", "icon", "children", "overlayClassName", "onOpenChange", "onVisibleChange"]), { + } = e, f = YSe(e, ["prefixCls", "placement", "trigger", "okType", "icon", "children", "overlayClassName", "onOpenChange", "onVisibleChange"]), { getPrefixCls: p } = S.useContext(gt), [g, v] = pn(!1, { value: (r = e.open) !== null && r !== void 0 ? r : e.visible, @@ -33065,15 +33106,15 @@ const $Se = /* @__PURE__ */ S.forwardRef((e, t) => { disabled: _ = !1 } = e; _ || m(P, T); - }, x = p("popconfirm", i), E = ie(x, u), [R] = fj(x); - return R(/* @__PURE__ */ S.createElement(ew, Object.assign({}, Sn(f, ["title"]), { + }, x = p("popconfirm", i), E = ie(x, u), [R] = vj(x); + return R(/* @__PURE__ */ S.createElement(rw, Object.assign({}, Sn(f, ["title"]), { trigger: a, placement: o, onOpenChange: w, open: g, ref: t, overlayClassName: E, - content: /* @__PURE__ */ S.createElement(pj, Object.assign({ + content: /* @__PURE__ */ S.createElement(mj, Object.assign({ okType: s, icon: l }, e, { @@ -33084,10 +33125,10 @@ const $Se = /* @__PURE__ */ S.forwardRef((e, t) => { })), "data-popover-inject": !0 }), c)); -}), km = $Se; -km._InternalPanelDoNotUseOrYouWillBeFired = NSe; -process.env.NODE_ENV !== "production" && (km.displayName = "Popconfirm"); -var BSe = { +}), Bm = qSe; +Bm._InternalPanelDoNotUseOrYouWillBeFired = KSe; +process.env.NODE_ENV !== "production" && (Bm.displayName = "Popconfirm"); +var XSe = { percent: 0, prefixCls: "rc-progress", strokeColor: "#2db7f5", @@ -33096,7 +33137,7 @@ var BSe = { trailColor: "#D9D9D9", trailWidth: 1, gapPosition: "bottom" -}, VSe = function() { +}, ZSe = function() { var t = ve([]), r = ve(null); return Bt(function() { var n = Date.now(), i = !1; @@ -33110,18 +33151,18 @@ var BSe = { }), t.current; }; process.env.NODE_ENV; -var Wk = 0, HSe = process.env.NODE_ENV !== "test" && ii(); -function zSe() { +var Uk = 0, QSe = process.env.NODE_ENV !== "test" && ii(); +function JSe() { var e; - return HSe ? (e = Wk, Wk += 1) : e = "TEST_OR_SSR", e; + return QSe ? (e = Uk, Uk += 1) : e = "TEST_OR_SSR", e; } -const GSe = function(e) { +const ebe = function(e) { var t = S.useState(), r = ce(t, 2), n = r[0], i = r[1]; return S.useEffect(function() { - i("rc_progress_".concat(zSe())); + i("rc_progress_".concat(JSe())); }, []), e || n; }; -var jk = function(t) { +var Kk = function(t) { var r = t.bg, n = t.children; return /* @__PURE__ */ S.createElement("div", { style: { @@ -33131,13 +33172,13 @@ var jk = function(t) { } }, n); }; -function Uk(e, t) { +function Yk(e, t) { return Object.keys(e).map(function(r) { var n = parseFloat(r), i = "".concat(Math.floor(n * t), "%"); return "".concat(e[r], " ").concat(i); }); } -var gj = /* @__PURE__ */ S.forwardRef(function(e, t) { +var yj = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.prefixCls, n = e.color, i = e.gradientId, o = e.radius, a = e.style, s = e.ptg, l = e.strokeLinecap, c = e.strokeWidth, u = e.size, d = e.gapDegree, h = n && pt(n) === "object", f = h ? "#FFF" : void 0, p = u / 2, g = /* @__PURE__ */ S.createElement("circle", { className: "".concat(r, "-circle-path"), r: o, @@ -33152,7 +33193,7 @@ var gj = /* @__PURE__ */ S.forwardRef(function(e, t) { }); if (!h) return g; - var v = "".concat(i, "-conic"), m = d ? "".concat(180 + d / 2, "deg") : "0deg", y = Uk(n, (360 - d) / 360), C = Uk(n, 1), b = "conic-gradient(from ".concat(m, ", ").concat(y.join(", "), ")"), w = "linear-gradient(to ".concat(d ? "bottom" : "top", ", ").concat(C.join(", "), ")"); + var v = "".concat(i, "-conic"), m = d ? "".concat(180 + d / 2, "deg") : "0deg", y = Yk(n, (360 - d) / 360), C = Yk(n, 1), b = "conic-gradient(from ".concat(m, ", ").concat(y.join(", "), ")"), w = "linear-gradient(to ".concat(d ? "bottom" : "top", ", ").concat(C.join(", "), ")"); return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement("mask", { id: v }, g), /* @__PURE__ */ S.createElement("foreignObject", { @@ -33161,14 +33202,14 @@ var gj = /* @__PURE__ */ S.forwardRef(function(e, t) { width: u, height: u, mask: "url(#".concat(v, ")") - }, /* @__PURE__ */ S.createElement(jk, { + }, /* @__PURE__ */ S.createElement(Kk, { bg: w - }, /* @__PURE__ */ S.createElement(jk, { + }, /* @__PURE__ */ S.createElement(Kk, { bg: b })))); }); -process.env.NODE_ENV !== "production" && (gj.displayName = "PtgCircle"); -var wg = 100, ax = function(t, r, n, i, o, a, s, l, c, u) { +process.env.NODE_ENV !== "production" && (yj.displayName = "PtgCircle"); +var Eg = 100, ax = function(t, r, n, i, o, a, s, l, c, u) { var d = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : 0, h = n / 100 * 360 * ((360 - a) / 360), f = a === 0 ? 0 : { bottom: 0, top: 180, @@ -33176,7 +33217,7 @@ var wg = 100, ax = function(t, r, n, i, o, a, s, l, c, u) { right: -90 }[s], p = (100 - i) / 100 * r; c === "round" && i !== 100 && (p += u / 2, p >= r && (p = r - 0.01)); - var g = wg / 2; + var g = Eg / 2; return { stroke: typeof l == "string" ? l : void 0, strokeDasharray: "".concat(r, "px ").concat(t), @@ -33186,22 +33227,22 @@ var wg = 100, ax = function(t, r, n, i, o, a, s, l, c, u) { transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s", fillOpacity: 0 }; -}, WSe = ["id", "prefixCls", "steps", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "style", "className", "strokeColor", "percent"]; -function Kk(e) { +}, tbe = ["id", "prefixCls", "steps", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "style", "className", "strokeColor", "percent"]; +function qk(e) { var t = e ?? []; return Array.isArray(t) ? t : [t]; } -var vj = function(t) { - var r = Z(Z({}, BSe), t), n = r.id, i = r.prefixCls, o = r.steps, a = r.strokeWidth, s = r.trailWidth, l = r.gapDegree, c = l === void 0 ? 0 : l, u = r.gapPosition, d = r.trailColor, h = r.strokeLinecap, f = r.style, p = r.className, g = r.strokeColor, v = r.percent, m = Nt(r, WSe), y = wg / 2, C = GSe(n), b = "".concat(C, "-gradient"), w = y - a / 2, x = Math.PI * 2 * w, E = c > 0 ? 90 + c / 2 : -90, R = x * ((360 - c) / 360), P = pt(o) === "object" ? o : { +var Cj = function(t) { + var r = Z(Z({}, XSe), t), n = r.id, i = r.prefixCls, o = r.steps, a = r.strokeWidth, s = r.trailWidth, l = r.gapDegree, c = l === void 0 ? 0 : l, u = r.gapPosition, d = r.trailColor, h = r.strokeLinecap, f = r.style, p = r.className, g = r.strokeColor, v = r.percent, m = Nt(r, tbe), y = Eg / 2, C = ebe(n), b = "".concat(C, "-gradient"), w = y - a / 2, x = Math.PI * 2 * w, E = c > 0 ? 90 + c / 2 : -90, R = x * ((360 - c) / 360), P = pt(o) === "object" ? o : { count: o, gap: 2 - }, T = P.count, _ = P.gap, D = Kk(v), A = Kk(g), M = A.find(function(V) { + }, T = P.count, _ = P.gap, D = qk(v), A = qk(g), M = A.find(function(V) { return V && pt(V) === "object"; - }), O = M && pt(M) === "object", L = O ? "butt" : h, N = ax(x, R, 0, 100, E, c, u, d, L, a), F = VSe(), $ = function() { + }), O = M && pt(M) === "object", L = O ? "butt" : h, N = ax(x, R, 0, 100, E, c, u, d, L, a), F = ZSe(), $ = function() { var H = 0; return D.map(function(B, W) { var j = A[W] || A[A.length - 1], X = ax(x, R, H, B, E, c, u, j, L, a); - return H += B, /* @__PURE__ */ S.createElement(gj, { + return H += B, /* @__PURE__ */ S.createElement(yj, { key: W, color: j, ptg: B, @@ -33215,14 +33256,14 @@ var vj = function(t) { ref: function(J) { F[W] = J; }, - size: wg + size: Eg }); }).reverse(); }, I = function() { var H = Math.round(T * (D[0] / 100)), B = 100 / T, W = 0; return new Array(T).fill(null).map(function(j, X) { - var q = X <= H - 1 ? A[0] : d, J = q && pt(q) === "object" ? "url(#".concat(b, ")") : void 0, te = ax(x, R, W, B, E, c, u, q, "butt", a, _); - return W += (R - te.strokeDashoffset + _) * 100 / R, /* @__PURE__ */ S.createElement("circle", { + var q = X <= H - 1 ? A[0] : d, J = q && pt(q) === "object" ? "url(#".concat(b, ")") : void 0, re = ax(x, R, W, B, E, c, u, q, "butt", a, _); + return W += (R - re.strokeDashoffset + _) * 100 / R, /* @__PURE__ */ S.createElement("circle", { key: X, className: "".concat(i, "-circle-path"), r: w, @@ -33231,7 +33272,7 @@ var vj = function(t) { stroke: J, strokeWidth: a, opacity: 1, - style: te, + style: re, ref: function(Y) { F[X] = Y; } @@ -33240,7 +33281,7 @@ var vj = function(t) { }; return /* @__PURE__ */ S.createElement("svg", Te({ className: ie("".concat(i, "-circle"), p), - viewBox: "0 0 ".concat(wg, " ").concat(wg), + viewBox: "0 0 ".concat(Eg, " ").concat(Eg), style: f, id: n, role: "presentation" @@ -33255,29 +33296,29 @@ var vj = function(t) { style: N }), T ? I() : $()); }; -process.env.NODE_ENV !== "production" && (vj.displayName = "Circle"); +process.env.NODE_ENV !== "production" && (Cj.displayName = "Circle"); function Pc(e) { return !e || e < 0 ? 0 : e > 100 ? 100 : e; } -function dS(e) { +function fS(e) { let { success: t, successPercent: r } = e, n = r; return t && "progress" in t && (n = t.progress), t && "percent" in t && (n = t.percent), n; } -const jSe = (e) => { +const rbe = (e) => { let { percent: t, success: r, successPercent: n } = e; - const i = Pc(dS({ + const i = Pc(fS({ success: r, successPercent: n })); return [i, Pc(Pc(t) - i)]; -}, USe = (e) => { +}, nbe = (e) => { let { success: t = {}, strokeColor: r @@ -33286,7 +33327,7 @@ const jSe = (e) => { strokeColor: n } = t; return [n || ZP.green, r || null]; -}, dw = (e, t, r) => { +}, fw = (e, t, r) => { var n, i, o, a; let s = -1, l = -1; if (t === "step") { @@ -33297,7 +33338,7 @@ const jSe = (e) => { typeof e == "string" || typeof e > "u" ? l = c || (e === "small" ? 6 : 8) : typeof e == "number" ? [s, l] = [e, e] : [s = -1, l = 8] = Array.isArray(e) ? e : [e.width, e.height]; } else (t === "circle" || t === "dashboard") && (typeof e == "string" || typeof e > "u" ? [s, l] = e === "small" ? [60, 60] : [120, 120] : typeof e == "number" ? [s, l] = [e, e] : Array.isArray(e) && (s = (i = (n = e[0]) !== null && n !== void 0 ? n : e[1]) !== null && i !== void 0 ? i : 120, l = (a = (o = e[0]) !== null && o !== void 0 ? o : e[1]) !== null && a !== void 0 ? a : 120)); return [s, l]; -}, KSe = 3, YSe = (e) => KSe / e * 100, qSe = (e) => { +}, ibe = 3, obe = (e) => ibe / e * 100, abe = (e) => { const { prefixCls: t, trailColor: r = null, @@ -33310,11 +33351,11 @@ const jSe = (e) => { success: c, size: u = a, steps: d - } = e, [h, f] = dw(u, "circle"); + } = e, [h, f] = fw(u, "circle"); let { strokeWidth: p } = e; - p === void 0 && (p = Math.max(YSe(h), 6)); + p === void 0 && (p = Math.max(obe(h), 6)); const g = { width: h, height: f, @@ -33324,12 +33365,12 @@ const jSe = (e) => { return o; if (s === "dashboard") return 75; - }, [o, s]), m = jSe(e), y = i || s === "dashboard" && "bottom" || void 0, C = Object.prototype.toString.call(e.strokeColor) === "[object Object]", b = USe({ + }, [o, s]), m = rbe(e), y = i || s === "dashboard" && "bottom" || void 0, C = Object.prototype.toString.call(e.strokeColor) === "[object Object]", b = nbe({ success: c, strokeColor: e.strokeColor }), w = ie(`${t}-inner`, { [`${t}-circle-gradient`]: C - }), x = /* @__PURE__ */ S.createElement(vj, { + }), x = /* @__PURE__ */ S.createElement(Cj, { steps: d, percent: d ? m[1] : m, strokeWidth: p, @@ -33347,7 +33388,7 @@ const jSe = (e) => { return E ? /* @__PURE__ */ S.createElement(wo, { title: l }, R) : R; -}, hS = "--progress-line-stroke-color", mj = "--progress-percent", Yk = (e) => { +}, pS = "--progress-line-stroke-color", Sj = "--progress-percent", Xk = (e) => { const t = e ? "100%" : "-100%"; return new _r(`antProgress${e ? "RTL" : "LTR"}Active`, { "0%": { @@ -33363,7 +33404,7 @@ const jSe = (e) => { opacity: 0 } }); -}, XSe = (e) => { +}, sbe = (e) => { const { componentCls: t, iconCls: r @@ -33422,10 +33463,10 @@ const jSe = (e) => { content: '""', background: { _multi_value_: !0, - value: ["inherit", `var(${hS})`] + value: ["inherit", `var(${pS})`] }, height: "100%", - width: `calc(1 / var(${mj}) * 100%)`, + width: `calc(1 / var(${Sj}) * 100%)`, display: "block" }, [`&${t}-bg-inner`]: { @@ -33476,7 +33517,7 @@ const jSe = (e) => { width: "100%", height: "100%", marginInlineStart: 0, - padding: `0 ${ee(e.paddingXXS)}`, + padding: `0 ${te(e.paddingXXS)}`, [`&${t}-text-start`]: { justifyContent: "start" }, @@ -33491,7 +33532,7 @@ const jSe = (e) => { backgroundColor: e.colorBgContainer, borderRadius: e.lineBorderRadius, opacity: 0, - animationName: Yk(), + animationName: Xk(), animationDuration: e.progressActiveMotionDuration, animationTimingFunction: e.motionEaseOutQuint, animationIterationCount: "infinite", @@ -33500,7 +33541,7 @@ const jSe = (e) => { }, [`&${t}-rtl${t}-status-active`]: { [`${t}-bg::before`]: { - animationName: Yk(!0) + animationName: Xk(!0) } }, [`&${t}-status-exception`]: { @@ -33531,7 +33572,7 @@ const jSe = (e) => { } }) }; -}, ZSe = (e) => { +}, lbe = (e) => { const { componentCls: t, iconCls: r @@ -33581,7 +33622,7 @@ const jSe = (e) => { } } }; -}, QSe = (e) => { +}, cbe = (e) => { const { componentCls: t } = e; @@ -33607,7 +33648,7 @@ const jSe = (e) => { } } }; -}, JSe = (e) => { +}, ube = (e) => { const { componentCls: t, iconCls: r @@ -33619,7 +33660,7 @@ const jSe = (e) => { } } }; -}, ebe = (e) => ({ +}, dbe = (e) => ({ circleTextColor: e.colorText, defaultColor: e.colorInfo, remainingColor: e.colorFillSecondary, @@ -33627,22 +33668,22 @@ const jSe = (e) => { // magic for capsule shape, should be a very large number circleTextFontSize: "1em", circleIconFontSize: `${e.fontSize / e.fontSizeSM}em` -}), tbe = Ur("Progress", (e) => { +}), hbe = Kr("Progress", (e) => { const t = e.calc(e.marginXXS).div(2).equal(), r = fr(e, { progressStepMarginInlineEnd: t, progressStepMinWidth: t, progressActiveMotionDuration: "2.4s" }); - return [XSe(r), ZSe(r), QSe(r), JSe(r)]; -}, ebe); -var rbe = function(e, t) { + return [sbe(r), lbe(r), cbe(r), ube(r)]; +}, dbe); +var fbe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const nbe = (e) => { +const pbe = (e) => { let t = []; return Object.keys(e).forEach((r) => { const n = parseFloat(r.replace(/%/g, "")); @@ -33657,25 +33698,25 @@ const nbe = (e) => { } = r; return `${i} ${n}%`; }).join(", "); -}, ibe = (e, t) => { +}, gbe = (e, t) => { const { from: r = ZP.blue, to: n = ZP.blue, direction: i = t === "rtl" ? "to left" : "to right" - } = e, o = rbe(e, ["from", "to", "direction"]); + } = e, o = fbe(e, ["from", "to", "direction"]); if (Object.keys(o).length !== 0) { - const s = nbe(o), l = `linear-gradient(${i}, ${s})`; + const s = pbe(o), l = `linear-gradient(${i}, ${s})`; return { background: l, - [hS]: l + [pS]: l }; } const a = `linear-gradient(${i}, ${r}, ${n})`; return { background: a, - [hS]: a + [pS]: a }; -}, obe = (e) => { +}, vbe = (e) => { const { prefixCls: t, direction: r, @@ -33691,10 +33732,10 @@ const nbe = (e) => { } = e, { align: h, type: f - } = u, p = a && typeof a != "string" ? ibe(a, r) : { - [hS]: a, + } = u, p = a && typeof a != "string" ? gbe(a, r) : { + [pS]: a, background: a - }, g = s === "square" || s === "butt" ? 0 : void 0, v = i ?? [-1, o || (i === "small" ? 6 : 8)], [m, y] = dw(v, "line", { + }, g = s === "square" || s === "butt" ? 0 : void 0, v = i ?? [-1, o || (i === "small" ? 6 : 8)], [m, y] = fw(v, "line", { strokeWidth: o }); process.env.NODE_ENV !== "production" && Rr("Progress").deprecated(!("strokeWidth" in e), "strokeWidth", "size"); @@ -33706,8 +33747,8 @@ const nbe = (e) => { height: y, borderRadius: g }, p), { - [mj]: Pc(n) / 100 - }), w = dS(e), x = { + [Sj]: Pc(n) / 100 + }), w = fS(e), x = { width: `${Pc(w)}%`, height: y, borderRadius: g, @@ -33730,7 +33771,7 @@ const nbe = (e) => { className: `${t}-outer`, style: E }, P && l, R, T && l); -}, abe = (e) => { +}, mbe = (e) => { const { size: t, steps: r, @@ -33740,7 +33781,7 @@ const nbe = (e) => { trailColor: a = null, prefixCls: s, children: l - } = e, c = Math.round(r * (n / 100)), d = t ?? [t === "small" ? 2 : 14, i], [h, f] = dw(d, "step", { + } = e, c = Math.round(r * (n / 100)), d = t ?? [t === "small" ? 2 : 14, i], [h, f] = fw(d, "step", { steps: r, strokeWidth: i }), p = h / r, g = new Array(r); @@ -33762,14 +33803,14 @@ const nbe = (e) => { className: `${s}-steps-outer` }, g, l); }; -var sbe = function(e, t) { +var ybe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const lbe = ["normal", "exception", "active", "success"], yj = /* @__PURE__ */ S.forwardRef((e, t) => { +const Cbe = ["normal", "exception", "active", "success"], bj = /* @__PURE__ */ S.forwardRef((e, t) => { const { prefixCls: r, className: n, @@ -33784,7 +33825,7 @@ const lbe = ["normal", "exception", "active", "success"], yj = /* @__PURE__ */ S format: h, style: f, percentPosition: p = {} - } = e, g = sbe(e, ["prefixCls", "className", "rootClassName", "steps", "strokeColor", "percent", "size", "showInfo", "type", "status", "format", "style", "percentPosition"]), { + } = e, g = ybe(e, ["prefixCls", "className", "rootClassName", "steps", "strokeColor", "percent", "size", "showInfo", "type", "status", "format", "style", "percentPosition"]), { align: v = "end", type: m = "outer" } = p, y = Array.isArray(a) ? a[0] : a, C = typeof a == "string" || Array.isArray(a) ? a : void 0, b = S.useMemo(() => { @@ -33795,19 +33836,19 @@ const lbe = ["normal", "exception", "active", "success"], yj = /* @__PURE__ */ S return !1; }, [a]), w = S.useMemo(() => { var $, I; - const V = dS(e); + const V = fS(e); return parseInt(V !== void 0 ? ($ = V ?? 0) === null || $ === void 0 ? void 0 : $.toString() : (I = s ?? 0) === null || I === void 0 ? void 0 : I.toString(), 10); - }, [s, e.success, e.successPercent]), x = S.useMemo(() => !lbe.includes(d) && w >= 100 ? "success" : d || "normal", [d, w]), { + }, [s, e.success, e.successPercent]), x = S.useMemo(() => !Cbe.includes(d) && w >= 100 ? "success" : d || "normal", [d, w]), { getPrefixCls: E, direction: R, progress: P - } = S.useContext(gt), T = E("progress", r), [_, D, A] = tbe(T), M = u === "line", O = M && !o, L = S.useMemo(() => { + } = S.useContext(gt), T = E("progress", r), [_, D, A] = hbe(T), M = u === "line", O = M && !o, L = S.useMemo(() => { if (!c) return null; - const $ = dS(e); + const $ = fS(e); let I; const V = h || ((B) => `${B}%`), H = M && b && m === "inner"; - return m === "inner" || h || x !== "exception" && x !== "success" ? I = V(Pc(s), Pc($)) : x === "exception" ? I = M ? /* @__PURE__ */ S.createElement(Qf, null) : /* @__PURE__ */ S.createElement(ql, null) : x === "success" && (I = M ? /* @__PURE__ */ S.createElement($b, null) : /* @__PURE__ */ S.createElement(Xb, null)), /* @__PURE__ */ S.createElement("span", { + return m === "inner" || h || x !== "exception" && x !== "success" ? I = V(Pc(s), Pc($)) : x === "exception" ? I = M ? /* @__PURE__ */ S.createElement(ep, null) : /* @__PURE__ */ S.createElement(Xl, null) : x === "success" && (I = M ? /* @__PURE__ */ S.createElement(Vb, null) : /* @__PURE__ */ S.createElement(Qb, null)), /* @__PURE__ */ S.createElement("span", { className: ie(`${T}-text`, { [`${T}-text-bright`]: H, [`${T}-text-${v}`]: O, @@ -33821,11 +33862,11 @@ const lbe = ["normal", "exception", "active", "success"], yj = /* @__PURE__ */ S $.deprecated(!("successPercent" in e), "successPercent", "success.percent"), $.deprecated(!("width" in e), "width", "size"), (u === "circle" || u === "dashboard") && (Array.isArray(l) ? process.env.NODE_ENV !== "production" && $(!1, "usage", 'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.') : typeof l == "object" && process.env.NODE_ENV !== "production" && $(!1, "usage", 'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')), e.success && "progress" in e.success && $.deprecated(!1, "success.progress", "success.percent"); } let N; - u === "line" ? N = o ? /* @__PURE__ */ S.createElement(abe, Object.assign({}, e, { + u === "line" ? N = o ? /* @__PURE__ */ S.createElement(mbe, Object.assign({}, e, { strokeColor: C, prefixCls: T, steps: typeof o == "object" ? o.count : o - }), L) : /* @__PURE__ */ S.createElement(obe, Object.assign({}, e, { + }), L) : /* @__PURE__ */ S.createElement(vbe, Object.assign({}, e, { strokeColor: y, prefixCls: T, direction: R, @@ -33833,14 +33874,14 @@ const lbe = ["normal", "exception", "active", "success"], yj = /* @__PURE__ */ S align: v, type: m } - }), L) : (u === "circle" || u === "dashboard") && (N = /* @__PURE__ */ S.createElement(qSe, Object.assign({}, e, { + }), L) : (u === "circle" || u === "dashboard") && (N = /* @__PURE__ */ S.createElement(abe, Object.assign({}, e, { strokeColor: y, prefixCls: T, progressStatus: x }), L)); const F = ie(T, `${T}-status-${x}`, { [`${T}-${u === "dashboard" && "circle" || u}`]: u !== "line", - [`${T}-inline-circle`]: u === "circle" && dw(l, "circle")[0] <= 20, + [`${T}-inline-circle`]: u === "circle" && fw(l, "circle")[0] <= 20, [`${T}-line`]: O, [`${T}-line-align-${v}`]: O, [`${T}-line-position-${m}`]: O, @@ -33859,9 +33900,9 @@ const lbe = ["normal", "exception", "active", "success"], yj = /* @__PURE__ */ S "aria-valuemax": 100 }, Sn(g, ["trailColor", "strokeWidth", "width", "gapDegree", "gapPosition", "strokeLinecap", "success", "successPercent"])), N)); }); -process.env.NODE_ENV !== "production" && (yj.displayName = "Progress"); -var Rs = {}, $m = "rc-table-internal-hook"; -function WI(e) { +process.env.NODE_ENV !== "production" && (bj.displayName = "Progress"); +var Rs = {}, Vm = "rc-table-internal-hook"; +function WD(e) { var t = /* @__PURE__ */ S.createContext(void 0), r = function(i) { var o = i.value, a = i.children, s = S.useRef(o); s.current = o; @@ -33874,7 +33915,7 @@ function WI(e) { }; }), c = ce(l, 1), u = c[0]; return Pr(function() { - dz(function() { + fz(function() { u.listeners.forEach(function(d) { d(o); }); @@ -33890,7 +33931,7 @@ function WI(e) { }; } function Ni(e, t) { - var r = Kr(typeof t == "function" ? t : function(d) { + var r = Yr(typeof t == "function" ? t : function(d) { if (t === void 0) return d; if (!Array.isArray(t)) @@ -33914,7 +33955,7 @@ function Ni(e, t) { }; }, [n]), s.current; } -function cbe() { +function Sbe() { var e = /* @__PURE__ */ S.createContext(null); function t() { return S.useContext(e); @@ -33948,8 +33989,8 @@ function cbe() { useImmutableMark: t }; } -var jI = cbe(), Cj = jI.makeImmutable, op = jI.responseImmutable, ube = jI.useImmutableMark, Po = WI(); -function Sj(e, t) { +var jD = Sbe(), wj = jD.makeImmutable, sp = jD.responseImmutable, bbe = jD.useImmutableMark, Po = WD(); +function xj(e, t) { var r = S.useRef(0); r.current += 1; var n = S.useRef(e), i = []; @@ -33960,23 +34001,23 @@ function Sj(e, t) { var o = S.useRef([]); return i.length && (o.current = i), S.useDebugValue(r.current), S.useDebugValue(o.current.join(", ")), t && console.log("".concat(t, ":"), r.current, o.current), r.current; } -const Bc = process.env.NODE_ENV !== "production" ? Sj : function() { +const Bc = process.env.NODE_ENV !== "production" ? xj : function() { }; -var dbe = /* @__PURE__ */ S.memo(function() { - var e = Sj(); +var wbe = /* @__PURE__ */ S.memo(function() { + var e = xj(); return /* @__PURE__ */ S.createElement("h1", null, "Render Times: ", e); }); -process.env.NODE_ENV !== "production" && (dbe.displayName = "RenderBlock"); -var bj = /* @__PURE__ */ S.createContext({ +process.env.NODE_ENV !== "production" && (wbe.displayName = "RenderBlock"); +var Ej = /* @__PURE__ */ S.createContext({ renderWithProps: !1 -}), hbe = "RC_TABLE_KEY"; -function fbe(e) { +}), xbe = "RC_TABLE_KEY"; +function Ebe(e) { return e == null ? [] : Array.isArray(e) ? e : [e]; } -function hw(e) { +function pw(e) { var t = [], r = {}; return e.forEach(function(n) { - for (var i = n || {}, o = i.key, a = i.dataIndex, s = o || fbe(a).join("-") || hbe; r[s]; ) + for (var i = n || {}, o = i.key, a = i.dataIndex, s = o || Ebe(a).join("-") || xbe; r[s]; ) s = "".concat(s, "_next"); r[s] = !0, t.push(s); }), t; @@ -33984,17 +34025,17 @@ function hw(e) { function GT(e) { return e != null; } -function pbe(e) { +function Rbe(e) { return e && pt(e) === "object" && !Array.isArray(e) && !/* @__PURE__ */ S.isValidElement(e); } -function gbe(e, t, r, n, i, o) { - var a = S.useContext(bj), s = ube(), l = $d(function() { +function Pbe(e, t, r, n, i, o) { + var a = S.useContext(Ej), s = bbe(), l = $d(function() { if (GT(n)) return [n]; var c = t == null || t === "" ? [] : Array.isArray(t) ? t : [t], u = ko(e, c), d = u, h = void 0; if (i) { var f = i(u, e, r); - pbe(f) ? (process.env.NODE_ENV !== "production" && Tt(!1, "`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."), d = f.children, h = f.props, a.renderWithProps = !0) : d = f; + Rbe(f) ? (process.env.NODE_ENV !== "production" && Tt(!1, "`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."), d = f.children, h = f.props, a.renderWithProps = !0) : d = f; } return [d, h]; }, [ @@ -34015,41 +34056,41 @@ function gbe(e, t, r, n, i, o) { }); return l; } -function vbe(e, t, r, n) { +function Tbe(e, t, r, n) { var i = e + t - 1; return e <= n && i >= r; } -function mbe(e, t) { +function _be(e, t) { return Ni(Po, function(r) { - var n = vbe(e, t || 1, r.hoverStartRow, r.hoverEndRow); + var n = Tbe(e, t || 1, r.hoverStartRow, r.hoverEndRow); return [n, r.onHover]; }); } -var ybe = function(t) { +var Mbe = function(t) { var r = t.ellipsis, n = t.rowType, i = t.children, o, a = r === !0 ? { showTitle: !0 } : r; return a && (a.showTitle || n === "header") && (typeof i == "string" || typeof i == "number" ? o = i.toString() : /* @__PURE__ */ S.isValidElement(i) && typeof i.props.children == "string" && (o = i.props.children)), o; }; -function Cbe(e) { +function Dbe(e) { var t, r, n, i, o, a, s, l; process.env.NODE_ENV !== "production" && Bc(e); - var c = e.component, u = e.children, d = e.ellipsis, h = e.scope, f = e.prefixCls, p = e.className, g = e.align, v = e.record, m = e.render, y = e.dataIndex, C = e.renderIndex, b = e.shouldCellUpdate, w = e.index, x = e.rowType, E = e.colSpan, R = e.rowSpan, P = e.fixLeft, T = e.fixRight, _ = e.firstFixLeft, D = e.lastFixLeft, A = e.firstFixRight, M = e.lastFixRight, O = e.appendNode, L = e.additionalProps, N = L === void 0 ? {} : L, F = e.isSticky, $ = "".concat(f, "-cell"), I = Ni(Po, ["supportSticky", "allColumnsFixedLeft", "rowHoverable"]), V = I.supportSticky, H = I.allColumnsFixedLeft, B = I.rowHoverable, W = gbe(v, y, C, u, m, b), j = ce(W, 2), X = j[0], q = j[1], J = {}, te = typeof P == "number" && V, Q = typeof T == "number" && V; - te && (J.position = "sticky", J.left = P), Q && (J.position = "sticky", J.right = T); - var Y = (t = (r = (n = q == null ? void 0 : q.colSpan) !== null && n !== void 0 ? n : N.colSpan) !== null && r !== void 0 ? r : E) !== null && t !== void 0 ? t : 1, K = (i = (o = (a = q == null ? void 0 : q.rowSpan) !== null && a !== void 0 ? a : N.rowSpan) !== null && o !== void 0 ? o : R) !== null && i !== void 0 ? i : 1, ae = mbe(w, K), G = ce(ae, 2), re = G[0], le = G[1], ue = Kr(function(Me) { + var c = e.component, u = e.children, d = e.ellipsis, h = e.scope, f = e.prefixCls, p = e.className, g = e.align, v = e.record, m = e.render, y = e.dataIndex, C = e.renderIndex, b = e.shouldCellUpdate, w = e.index, x = e.rowType, E = e.colSpan, R = e.rowSpan, P = e.fixLeft, T = e.fixRight, _ = e.firstFixLeft, D = e.lastFixLeft, A = e.firstFixRight, M = e.lastFixRight, O = e.appendNode, L = e.additionalProps, N = L === void 0 ? {} : L, F = e.isSticky, $ = "".concat(f, "-cell"), I = Ni(Po, ["supportSticky", "allColumnsFixedLeft", "rowHoverable"]), V = I.supportSticky, H = I.allColumnsFixedLeft, B = I.rowHoverable, W = Pbe(v, y, C, u, m, b), j = ce(W, 2), X = j[0], q = j[1], J = {}, re = typeof P == "number" && V, Q = typeof T == "number" && V; + re && (J.position = "sticky", J.left = P), Q && (J.position = "sticky", J.right = T); + var Y = (t = (r = (n = q == null ? void 0 : q.colSpan) !== null && n !== void 0 ? n : N.colSpan) !== null && r !== void 0 ? r : E) !== null && t !== void 0 ? t : 1, K = (i = (o = (a = q == null ? void 0 : q.rowSpan) !== null && a !== void 0 ? a : N.rowSpan) !== null && o !== void 0 ? o : R) !== null && i !== void 0 ? i : 1, ae = _be(w, K), G = ce(ae, 2), ne = G[0], le = G[1], ue = Yr(function(Me) { var Ve; v && le(w, w + K - 1), N == null || (Ve = N.onMouseEnter) === null || Ve === void 0 || Ve.call(N, Me); - }), he = Kr(function(Me) { + }), he = Yr(function(Me) { var Ve; v && le(-1, -1), N == null || (Ve = N.onMouseLeave) === null || Ve === void 0 || Ve.call(N, Me); }); if (Y === 0 || K === 0) return null; - var fe = (s = N.title) !== null && s !== void 0 ? s : ybe({ + var fe = (s = N.title) !== null && s !== void 0 ? s : Mbe({ rowType: x, ellipsis: d, children: X - }), de = ie($, p, (l = {}, U(l, "".concat($, "-fix-left"), te && V), U(l, "".concat($, "-fix-left-first"), _ && V), U(l, "".concat($, "-fix-left-last"), D && V), U(l, "".concat($, "-fix-left-all"), D && H && V), U(l, "".concat($, "-fix-right"), Q && V), U(l, "".concat($, "-fix-right-first"), A && V), U(l, "".concat($, "-fix-right-last"), M && V), U(l, "".concat($, "-ellipsis"), d), U(l, "".concat($, "-with-append"), O), U(l, "".concat($, "-fix-sticky"), (te || Q) && F && V), U(l, "".concat($, "-row-hover"), !q && re), l), N.className, q == null ? void 0 : q.className), pe = {}; + }), de = ie($, p, (l = {}, U(l, "".concat($, "-fix-left"), re && V), U(l, "".concat($, "-fix-left-first"), _ && V), U(l, "".concat($, "-fix-left-last"), D && V), U(l, "".concat($, "-fix-left-all"), D && H && V), U(l, "".concat($, "-fix-right"), Q && V), U(l, "".concat($, "-fix-right-first"), A && V), U(l, "".concat($, "-fix-right-last"), M && V), U(l, "".concat($, "-ellipsis"), d), U(l, "".concat($, "-with-append"), O), U(l, "".concat($, "-fix-sticky"), (re || Q) && F && V), U(l, "".concat($, "-row-hover"), !q && ne), l), N.className, q == null ? void 0 : q.className), pe = {}; g && (pe.textAlign = g); var _e = Z(Z(Z(Z({}, J), N.style), pe), q == null ? void 0 : q.style), be = X; return pt(be) === "object" && !Array.isArray(be) && !/* @__PURE__ */ S.isValidElement(be) && (be = null), d && (D || A) && (be = /* @__PURE__ */ S.createElement("span", { @@ -34065,8 +34106,8 @@ function Cbe(e) { rowSpan: K !== 1 ? K : null }), O, be); } -const Gd = /* @__PURE__ */ S.memo(Cbe); -function UI(e, t, r, n, i) { +const Gd = /* @__PURE__ */ S.memo(Dbe); +function UD(e, t, r, n, i) { var o = r[e] || {}, a = r[t] || {}, s, l; o.fixed === "left" ? s = n.left[i === "rtl" ? t : e] : a.fixed === "right" && (l = n.right[i === "rtl" ? e : t]); var c = !1, u = !1, d = !1, h = !1, f = r[t + 1], p = r[e - 1], g = f && !f.fixed || p && !p.fixed || r.every(function(b) { @@ -34097,9 +34138,9 @@ function UI(e, t, r, n, i) { isSticky: n.isSticky }; } -var wj = /* @__PURE__ */ S.createContext({}); -function Sbe(e) { - var t = e.className, r = e.index, n = e.children, i = e.colSpan, o = i === void 0 ? 1 : i, a = e.rowSpan, s = e.align, l = Ni(Po, ["prefixCls", "direction"]), c = l.prefixCls, u = l.direction, d = S.useContext(wj), h = d.scrollColumnIndex, f = d.stickyOffsets, p = d.flattenColumns, g = r + o - 1, v = g + 1 === h ? o + 1 : o, m = UI(r, r + v - 1, p, f, u); +var Rj = /* @__PURE__ */ S.createContext({}); +function Ibe(e) { + var t = e.className, r = e.index, n = e.children, i = e.colSpan, o = i === void 0 ? 1 : i, a = e.rowSpan, s = e.align, l = Ni(Po, ["prefixCls", "direction"]), c = l.prefixCls, u = l.direction, d = S.useContext(Rj), h = d.scrollColumnIndex, f = d.stickyOffsets, p = d.flattenColumns, g = r + o - 1, v = g + 1 === h ? o + 1 : o, m = UD(r, r + v - 1, p, f, u); return /* @__PURE__ */ S.createElement(Gd, Te({ className: t, index: r, @@ -34115,18 +34156,18 @@ function Sbe(e) { } }, m)); } -var bbe = ["children"]; -function wbe(e) { - var t = e.children, r = Nt(e, bbe); +var Abe = ["children"]; +function Obe(e) { + var t = e.children, r = Nt(e, Abe); return /* @__PURE__ */ S.createElement("tr", r, t); } -function fw(e) { +function gw(e) { var t = e.children; return t; } -fw.Row = wbe; -fw.Cell = Sbe; -function xbe(e) { +gw.Row = Obe; +gw.Cell = Ibe; +function Lbe(e) { process.env.NODE_ENV !== "production" && Bc(e); var t = e.children, r = e.stickyOffsets, n = e.flattenColumns, i = Ni(Po, "prefixCls"), o = n.length - 1, a = n[o], s = S.useMemo(function() { return { @@ -34135,21 +34176,21 @@ function xbe(e) { scrollColumnIndex: a != null && a.scrollbar ? o : null }; }, [a, n, o, r]); - return /* @__PURE__ */ S.createElement(wj.Provider, { + return /* @__PURE__ */ S.createElement(Rj.Provider, { value: s }, /* @__PURE__ */ S.createElement("tfoot", { className: "".concat(i, "-summary") }, t)); } -const Ny = op(xbe); -var xj = fw; -function Ebe(e) { +const By = sp(Lbe); +var Pj = gw; +function Fbe(e) { return null; } -function Rbe(e) { +function Nbe(e) { return null; } -function Ej(e, t, r, n, i, o, a) { +function Tj(e, t, r, n, i, o, a) { e.push({ record: t, indent: r, @@ -34158,14 +34199,14 @@ function Ej(e, t, r, n, i, o, a) { var s = o(t), l = i == null ? void 0 : i.has(s); if (t && Array.isArray(t[n]) && l) for (var c = 0; c < t[n].length; c += 1) - Ej(e, t[n][c], r + 1, n, i, o, c); + Tj(e, t[n][c], r + 1, n, i, o, c); } -function Rj(e, t, r, n) { +function _j(e, t, r, n) { var i = S.useMemo(function() { if (r != null && r.size) { for (var o = [], a = 0; a < (e == null ? void 0 : e.length); a += 1) { var s = e[a]; - Ej(o, s, 0, t, r, n, a); + Tj(o, s, 0, t, r, n, a); } return o; } @@ -34179,15 +34220,15 @@ function Rj(e, t, r, n) { }, [e, t, r, n]); return i; } -function Pj(e, t, r, n) { - var i = Ni(Po, ["prefixCls", "fixedInfoList", "flattenColumns", "expandableType", "expandRowByClick", "onTriggerExpand", "rowClassName", "expandedRowClassName", "indentSize", "expandIcon", "expandedRowRender", "expandIconColumnIndex", "expandedKeys", "childrenColumnName", "rowExpandable", "onRow"]), o = i.flattenColumns, a = i.expandableType, s = i.expandedKeys, l = i.childrenColumnName, c = i.onTriggerExpand, u = i.rowExpandable, d = i.onRow, h = i.expandRowByClick, f = i.rowClassName, p = a === "nest", g = a === "row" && (!u || u(e)), v = g || p, m = s && s.has(t), y = l && e && e[l], C = Kr(c), b = d == null ? void 0 : d(e, r), w = b == null ? void 0 : b.onClick, x = function(T) { +function Mj(e, t, r, n) { + var i = Ni(Po, ["prefixCls", "fixedInfoList", "flattenColumns", "expandableType", "expandRowByClick", "onTriggerExpand", "rowClassName", "expandedRowClassName", "indentSize", "expandIcon", "expandedRowRender", "expandIconColumnIndex", "expandedKeys", "childrenColumnName", "rowExpandable", "onRow"]), o = i.flattenColumns, a = i.expandableType, s = i.expandedKeys, l = i.childrenColumnName, c = i.onTriggerExpand, u = i.rowExpandable, d = i.onRow, h = i.expandRowByClick, f = i.rowClassName, p = a === "nest", g = a === "row" && (!u || u(e)), v = g || p, m = s && s.has(t), y = l && e && e[l], C = Yr(c), b = d == null ? void 0 : d(e, r), w = b == null ? void 0 : b.onClick, x = function(T) { h && v && c(e, T); for (var _ = arguments.length, D = new Array(_ > 1 ? _ - 1 : 0), A = 1; A < _; A++) D[A - 1] = arguments[A]; w == null || w.apply(void 0, [T].concat(D)); }, E; typeof f == "string" ? E = f : typeof f == "function" && (E = f(e, r, n)); - var R = hw(o); + var R = pw(o); return Z(Z({}, i), {}, { columnsKey: R, nestExpandable: p, @@ -34203,7 +34244,7 @@ function Pj(e, t, r, n) { }) }); } -function Tj(e) { +function Dj(e) { process.env.NODE_ENV !== "production" && Bc(e); var t = e.prefixCls, r = e.children, n = e.component, i = e.cellComponent, o = e.className, a = e.expanded, s = e.colSpan, l = e.isEmpty, c = Ni(Po, ["scrollbarSize", "fixHeader", "fixColumn", "componentWidth", "horizonScroll"]), u = c.scrollbarSize, d = c.fixHeader, h = c.fixColumn, f = c.componentWidth, p = c.horizonScroll, g = r; return (l ? p && f : h) && (g = /* @__PURE__ */ S.createElement("div", { @@ -34225,7 +34266,7 @@ function Tj(e) { colSpan: s }, g)); } -function _j(e, t, r, n, i) { +function Ij(e, t, r, n, i) { var o = e.record, a = e.prefixCls, s = e.columnsKey, l = e.fixedInfoList, c = e.expandIconColumnIndex, u = e.nestExpandable, d = e.indentSize, h = e.expandIcon, f = e.expanded, p = e.hasNestChildren, g = e.onTriggerExpand, v = s[r], m = l[r], y; r === (c || 0) && u && (y = /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement("span", { style: { @@ -34247,16 +34288,16 @@ function _j(e, t, r, n, i) { additionalCellProps: C || {} }; } -function Mj(e) { +function Aj(e) { process.env.NODE_ENV !== "production" && Bc(e); - var t = e.className, r = e.style, n = e.record, i = e.index, o = e.renderIndex, a = e.rowKey, s = e.indent, l = s === void 0 ? 0 : s, c = e.rowComponent, u = e.cellComponent, d = e.scopeCellComponent, h = Pj(n, a, i, l), f = h.prefixCls, p = h.flattenColumns, g = h.expandedRowClassName, v = h.expandedRowRender, m = h.rowProps, y = h.expanded, C = h.rowSupportExpand, b = S.useRef(!1); + var t = e.className, r = e.style, n = e.record, i = e.index, o = e.renderIndex, a = e.rowKey, s = e.indent, l = s === void 0 ? 0 : s, c = e.rowComponent, u = e.cellComponent, d = e.scopeCellComponent, h = Mj(n, a, i, l), f = h.prefixCls, p = h.flattenColumns, g = h.expandedRowClassName, v = h.expandedRowRender, m = h.rowProps, y = h.expanded, C = h.rowSupportExpand, b = S.useRef(!1); b.current || (b.current = y), process.env.NODE_ENV !== "production" && Bc(e); var w = g && g(n, i, l), x = /* @__PURE__ */ S.createElement(c, Te({}, m, { "data-row-key": a, className: ie(t, "".concat(f, "-row"), "".concat(f, "-row-level-").concat(l), m == null ? void 0 : m.className, l >= 1 ? w : ""), style: Z(Z({}, r), m == null ? void 0 : m.style) }), p.map(function(P, T) { - var _ = P.render, D = P.dataIndex, A = P.className, M = _j(h, P, T, l, i), O = M.key, L = M.fixedInfo, N = M.appendCellNode, F = M.additionalCellProps; + var _ = P.render, D = P.dataIndex, A = P.className, M = Ij(h, P, T, l, i), O = M.key, L = M.fixedInfo, N = M.appendCellNode, F = M.additionalCellProps; return /* @__PURE__ */ S.createElement(Gd, Te({ className: A, ellipsis: P.ellipsis, @@ -34278,7 +34319,7 @@ function Mj(e) { })), E; if (C && (b.current || y)) { var R = v(n, i, l + 1, y); - E = /* @__PURE__ */ S.createElement(Tj, { + E = /* @__PURE__ */ S.createElement(Dj, { expanded: y, className: ie("".concat(f, "-expanded-row"), "".concat(f, "-expanded-row-level-").concat(l + 1), w), prefixCls: f, @@ -34290,9 +34331,9 @@ function Mj(e) { } return /* @__PURE__ */ S.createElement(S.Fragment, null, x, E); } -process.env.NODE_ENV !== "production" && (Mj.displayName = "BodyRow"); -const Pbe = op(Mj); -function Tbe(e) { +process.env.NODE_ENV !== "production" && (Aj.displayName = "BodyRow"); +const kbe = sp(Aj); +function $be(e) { var t = e.columnKey, r = e.onColumnResize, n = S.useRef(); return S.useEffect(function() { n.current && r(t, n.current.offsetWidth); @@ -34312,7 +34353,7 @@ function Tbe(e) { } }, " "))); } -function _be(e) { +function Bbe(e) { var t = e.prefixCls, r = e.columnsKey, n = e.onColumnResize; return /* @__PURE__ */ S.createElement("tr", { "aria-hidden": "true", @@ -34329,21 +34370,21 @@ function _be(e) { }); } }, r.map(function(i) { - return /* @__PURE__ */ S.createElement(Tbe, { + return /* @__PURE__ */ S.createElement($be, { key: i, columnKey: i, onColumnResize: n }); }))); } -function Dj(e) { +function Oj(e) { process.env.NODE_ENV !== "production" && Bc(e); - var t = e.data, r = e.measureColumnWidth, n = Ni(Po, ["prefixCls", "getComponent", "onColumnResize", "flattenColumns", "getRowKey", "expandedKeys", "childrenColumnName", "emptyNode"]), i = n.prefixCls, o = n.getComponent, a = n.onColumnResize, s = n.flattenColumns, l = n.getRowKey, c = n.expandedKeys, u = n.childrenColumnName, d = n.emptyNode, h = Rj(t, u, c, l), f = S.useRef({ + var t = e.data, r = e.measureColumnWidth, n = Ni(Po, ["prefixCls", "getComponent", "onColumnResize", "flattenColumns", "getRowKey", "expandedKeys", "childrenColumnName", "emptyNode"]), i = n.prefixCls, o = n.getComponent, a = n.onColumnResize, s = n.flattenColumns, l = n.getRowKey, c = n.expandedKeys, u = n.childrenColumnName, d = n.emptyNode, h = _j(t, u, c, l), f = S.useRef({ renderWithProps: !1 }), p = o(["body", "wrapper"], "tbody"), g = o(["body", "row"], "tr"), v = o(["body", "cell"], "td"), m = o(["body", "cell"], "th"), y; t.length ? y = h.map(function(b, w) { var x = b.record, E = b.indent, R = b.index, P = l(x, w); - return /* @__PURE__ */ S.createElement(Pbe, { + return /* @__PURE__ */ S.createElement(kbe, { key: P, rowKey: P, record: x, @@ -34355,7 +34396,7 @@ function Dj(e) { getRowKey: l, indent: E }); - }) : y = /* @__PURE__ */ S.createElement(Tj, { + }) : y = /* @__PURE__ */ S.createElement(Dj, { expanded: !0, className: "".concat(i, "-placeholder"), prefixCls: i, @@ -34364,34 +34405,34 @@ function Dj(e) { colSpan: s.length, isEmpty: !0 }, d); - var C = hw(s); - return /* @__PURE__ */ S.createElement(bj.Provider, { + var C = pw(s); + return /* @__PURE__ */ S.createElement(Ej.Provider, { value: f.current }, /* @__PURE__ */ S.createElement(p, { className: "".concat(i, "-tbody") - }, r && /* @__PURE__ */ S.createElement(_be, { + }, r && /* @__PURE__ */ S.createElement(Bbe, { prefixCls: i, columnsKey: C, onColumnResize: a }), y)); } -process.env.NODE_ENV !== "production" && (Dj.displayName = "Body"); -const Mbe = op(Dj); -var Dbe = ["expandable"], Kg = "RC_TABLE_INTERNAL_COL_DEFINE"; -function Ibe(e) { - var t = e.expandable, r = Nt(e, Dbe), n; +process.env.NODE_ENV !== "production" && (Oj.displayName = "Body"); +const Vbe = sp(Oj); +var Hbe = ["expandable"], qg = "RC_TABLE_INTERNAL_COL_DEFINE"; +function zbe(e) { + var t = e.expandable, r = Nt(e, Hbe), n; return "expandable" in e ? n = Z(Z({}, r), t) : (process.env.NODE_ENV !== "production" && ["indentSize", "expandedRowKeys", "defaultExpandedRowKeys", "defaultExpandAllRows", "expandedRowRender", "expandRowByClick", "expandIcon", "onExpand", "onExpandedRowsChange", "expandedRowClassName", "expandIconColumnIndex", "showExpandColumn", "title"].some(function(i) { return i in e; }) && Tt(!1, "expanded related props have been moved into `expandable`."), n = r), n.showExpandColumn === !1 && (n.expandIconColumnIndex = -1), n; } -var Abe = ["columnType"]; -function Ij(e) { +var Gbe = ["columnType"]; +function Lj(e) { for (var t = e.colWidths, r = e.columns, n = e.columCount, i = [], o = n || r.length, a = !1, s = o - 1; s >= 0; s -= 1) { - var l = t[s], c = r && r[s], u = c && c[Kg]; + var l = t[s], c = r && r[s], u = c && c[qg]; if (l || u || a) { var d = u || {}; d.columnType; - var h = Nt(d, Abe); + var h = Nt(d, Gbe); i.unshift(/* @__PURE__ */ S.createElement("col", Te({ key: s, style: { @@ -34402,9 +34443,9 @@ function Ij(e) { } return /* @__PURE__ */ S.createElement("colgroup", null, i); } -var Obe = ["className", "noData", "columns", "flattenColumns", "colWidths", "columCount", "stickyOffsets", "direction", "fixHeader", "stickyTopOffset", "stickyBottomOffset", "stickyClassName", "onScroll", "maxContentScroll", "children"]; -function Lbe(e, t) { - return Ct(function() { +var Wbe = ["className", "noData", "columns", "flattenColumns", "colWidths", "columCount", "stickyOffsets", "direction", "fixHeader", "stickyTopOffset", "stickyBottomOffset", "stickyClassName", "onScroll", "maxContentScroll", "children"]; +function jbe(e, t) { + return St(function() { for (var r = [], n = 0; n < t; n += 1) { var i = e[n]; if (i !== void 0) @@ -34415,10 +34456,10 @@ function Lbe(e, t) { return r; }, [e.join("_"), t]); } -var Aj = /* @__PURE__ */ S.forwardRef(function(e, t) { +var Fj = /* @__PURE__ */ S.forwardRef(function(e, t) { process.env.NODE_ENV !== "production" && Bc(e); - var r = e.className, n = e.noData, i = e.columns, o = e.flattenColumns, a = e.colWidths, s = e.columCount, l = e.stickyOffsets, c = e.direction, u = e.fixHeader, d = e.stickyTopOffset, h = e.stickyBottomOffset, f = e.stickyClassName, p = e.onScroll, g = e.maxContentScroll, v = e.children, m = Nt(e, Obe), y = Ni(Po, ["prefixCls", "scrollbarSize", "isSticky", "getComponent"]), C = y.prefixCls, b = y.scrollbarSize, w = y.isSticky, x = y.getComponent, E = x(["header", "table"], "table"), R = w && !u ? 0 : b, P = S.useRef(null), T = S.useCallback(function(F) { - Cv(t, F), Cv(P, F); + var r = e.className, n = e.noData, i = e.columns, o = e.flattenColumns, a = e.colWidths, s = e.columCount, l = e.stickyOffsets, c = e.direction, u = e.fixHeader, d = e.stickyTopOffset, h = e.stickyBottomOffset, f = e.stickyClassName, p = e.onScroll, g = e.maxContentScroll, v = e.children, m = Nt(e, Wbe), y = Ni(Po, ["prefixCls", "scrollbarSize", "isSticky", "getComponent"]), C = y.prefixCls, b = y.scrollbarSize, w = y.isSticky, x = y.getComponent, E = x(["header", "table"], "table"), R = w && !u ? 0 : b, P = S.useRef(null), T = S.useCallback(function(F) { + bv(t, F), bv(P, F); }, []); S.useEffect(function() { var F; @@ -34448,11 +34489,11 @@ var Aj = /* @__PURE__ */ S.forwardRef(function(e, t) { className: "".concat(C, "-cell-scrollbar") }; } - }, M = Ct(function() { + }, M = St(function() { return R ? [].concat($e(i), [A]) : i; - }, [R, i]), O = Ct(function() { + }, [R, i]), O = St(function() { return R ? [].concat($e(o), [A]) : o; - }, [R, o]), L = Ct(function() { + }, [R, o]), L = St(function() { var F = l.right, $ = l.left; return Z(Z({}, l), {}, { left: c === "rtl" ? [].concat($e($.map(function(I) { @@ -34463,7 +34504,7 @@ var Aj = /* @__PURE__ */ S.forwardRef(function(e, t) { })), [0]), isSticky: w }); - }, [R, l, w]), N = Lbe(a, s); + }, [R, l, w]), N = jbe(a, s); return /* @__PURE__ */ S.createElement("div", { style: Z({ overflow: "hidden" @@ -34478,7 +34519,7 @@ var Aj = /* @__PURE__ */ S.forwardRef(function(e, t) { tableLayout: "fixed", visibility: n || N ? null : "hidden" } - }, (!n || !g || _) && /* @__PURE__ */ S.createElement(Ij, { + }, (!n || !g || _) && /* @__PURE__ */ S.createElement(Lj, { colWidths: N ? [].concat($e(N), [R]) : [], columCount: s + 1, columns: O @@ -34488,18 +34529,18 @@ var Aj = /* @__PURE__ */ S.forwardRef(function(e, t) { flattenColumns: O })))); }); -process.env.NODE_ENV !== "production" && (Aj.displayName = "FixedHolder"); -const qk = /* @__PURE__ */ S.memo(Aj); -var Oj = function(t) { +process.env.NODE_ENV !== "production" && (Fj.displayName = "FixedHolder"); +const Zk = /* @__PURE__ */ S.memo(Fj); +var Nj = function(t) { var r = t.cells, n = t.stickyOffsets, i = t.flattenColumns, o = t.rowComponent, a = t.cellComponent, s = t.onHeaderRow, l = t.index, c = Ni(Po, ["prefixCls", "direction"]), u = c.prefixCls, d = c.direction, h; s && (h = s(r.map(function(p) { return p.column; }), l)); - var f = hw(r.map(function(p) { + var f = pw(r.map(function(p) { return p.column; })); return /* @__PURE__ */ S.createElement(o, h, r.map(function(p, g) { - var v = p.column, m = UI(p.colStart, p.colEnd, i, n, d), y; + var v = p.column, m = UD(p.colStart, p.colEnd, i, n, d), y; return v && v.onHeaderCell && (y = p.column.onHeaderCell(v)), /* @__PURE__ */ S.createElement(Gd, Te({}, p, { scope: v.title ? p.colSpan > 1 ? "colgroup" : "col" : null, ellipsis: v.ellipsis, @@ -34513,8 +34554,8 @@ var Oj = function(t) { })); })); }; -process.env.NODE_ENV !== "production" && (Oj.displayName = "HeaderRow"); -function Fbe(e) { +process.env.NODE_ENV !== "production" && (Nj.displayName = "HeaderRow"); +function Ube(e) { var t = []; function r(a, s) { var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0; @@ -34542,15 +34583,15 @@ function Fbe(e) { i(o); return t; } -var Nbe = function(t) { +var Kbe = function(t) { process.env.NODE_ENV !== "production" && Bc(t); var r = t.stickyOffsets, n = t.columns, i = t.flattenColumns, o = t.onHeaderRow, a = Ni(Po, ["prefixCls", "getComponent"]), s = a.prefixCls, l = a.getComponent, c = S.useMemo(function() { - return Fbe(n); + return Ube(n); }, [n]), u = l(["header", "wrapper"], "thead"), d = l(["header", "row"], "tr"), h = l(["header", "cell"], "th"); return /* @__PURE__ */ S.createElement(u, { className: "".concat(s, "-thead") }, c.map(function(f, p) { - var g = /* @__PURE__ */ S.createElement(Oj, { + var g = /* @__PURE__ */ S.createElement(Nj, { key: p, flattenColumns: i, cells: f, @@ -34563,21 +34604,21 @@ var Nbe = function(t) { return g; })); }; -const Xk = op(Nbe); -function Zk(e) { +const Qk = sp(Kbe); +function Jk(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; return typeof t == "number" ? t : t.endsWith("%") ? e * parseFloat(t) / 100 : null; } -function kbe(e, t, r) { +function Ybe(e, t, r) { return S.useMemo(function() { if (t && t > 0) { var n = 0, i = 0; e.forEach(function(h) { - var f = Zk(t, h.width); + var f = Jk(t, h.width); f ? n += f : i += 1; }); var o = Math.max(t, r), a = Math.max(o - n, i), s = i, l = a / i, c = 0, u = e.map(function(h) { - var f = Z({}, h), p = Zk(t, f.width); + var f = Z({}, h), p = Jk(t, f.width); if (p) f.width = p; else { @@ -34598,24 +34639,24 @@ function kbe(e, t, r) { return [e, t]; }, [e, t, r]); } -var $be = ["children"], Bbe = ["fixed"]; -function KI(e) { - return bi(e).filter(function(t) { +var qbe = ["children"], Xbe = ["fixed"]; +function KD(e) { + return wi(e).filter(function(t) { return /* @__PURE__ */ S.isValidElement(t); }).map(function(t) { - var r = t.key, n = t.props, i = n.children, o = Nt(n, $be), a = Z({ + var r = t.key, n = t.props, i = n.children, o = Nt(n, qbe), a = Z({ key: r }, o); - return i && (a.children = KI(i)), a; + return i && (a.children = KD(i)), a; }); } -function Lj(e) { +function kj(e) { return e.filter(function(t) { return t && pt(t) === "object" && !t.hidden; }).map(function(t) { var r = t.children; return r && r.length > 0 ? Z(Z({}, t), {}, { - children: Lj(r) + children: kj(r) }) : t; }); } @@ -34636,18 +34677,18 @@ function WT(e) { })]); }, []); } -function Vbe(e) { +function Zbe(e) { return e.map(function(t) { - var r = t.fixed, n = Nt(t, Bbe), i = r; + var r = t.fixed, n = Nt(t, Xbe), i = r; return r === "left" ? i = "right" : r === "right" && (i = "left"), Z({ fixed: i }, n); }); } -function Hbe(e, t) { +function Qbe(e, t) { var r = e.prefixCls, n = e.columns, i = e.children, o = e.expandable, a = e.expandedKeys, s = e.columnTitle, l = e.getRowKey, c = e.onTriggerExpand, u = e.expandIcon, d = e.rowExpandable, h = e.expandIconColumnIndex, f = e.direction, p = e.expandRowByClick, g = e.columnWidth, v = e.fixed, m = e.scrollWidth, y = e.clientWidth, C = S.useMemo(function() { - var D = n || KI(i) || []; - return Lj(D.slice()); + var D = n || KD(i) || []; + return kj(D.slice()); }, [n, i]), b = S.useMemo(function() { if (o) { var D, A = C.slice(); @@ -34664,7 +34705,7 @@ function Hbe(e, t) { }); var L = C[O], N; (v === "left" || v) && !h ? N = "left" : (v === "right" || v) && h === C.length ? N = "right" : N = L ? L.fixed : null; - var F = (D = {}, U(D, Kg, { + var F = (D = {}, U(D, qg, { className: "".concat(r, "-expand-icon-col"), columnType: "EXPAND_COLUMN" }), U(D, "title", s), U(D, "fixed", N), U(D, "className", "".concat(r, "-row-expand-icon-cell")), U(D, "width", g), U(D, "render", function(I, V, H) { @@ -34696,7 +34737,7 @@ function Hbe(e, t) { } }]), D; }, [t, b, f]), x = S.useMemo(function() { - return f === "rtl" ? Vbe(WT(w)) : WT(w); + return f === "rtl" ? Zbe(WT(w)) : WT(w); }, [w, f, m]), E = S.useMemo(function() { for (var D = -1, A = x.length - 1; A >= 0; A -= 1) { var M = x[A].fixed; @@ -34722,10 +34763,10 @@ function Hbe(e, t) { return !0; } return !1; - }, [x]), R = kbe(x, m, y), P = ce(R, 2), T = P[0], _ = P[1]; + }, [x]), R = Ybe(x, m, y), P = ce(R, 2), T = P[0], _ = P[1]; return [w, T, _, E]; } -function zbe(e) { +function Jbe(e) { var t, r = e.prefixCls, n = e.record, i = e.onExpand, o = e.expanded, a = e.expandable, s = "".concat(r, "-row-expand-icon"); if (!a) return /* @__PURE__ */ S.createElement("span", { @@ -34739,7 +34780,7 @@ function zbe(e) { onClick: l }); } -function Gbe(e, t, r) { +function ewe(e, t, r) { var n = []; function i(o) { (o || []).forEach(function(a, s) { @@ -34748,13 +34789,13 @@ function Gbe(e, t, r) { } return i(e), n; } -function Wbe(e, t, r) { - var n = Ibe(e), i = n.expandIcon, o = n.expandedRowKeys, a = n.defaultExpandedRowKeys, s = n.defaultExpandAllRows, l = n.expandedRowRender, c = n.onExpand, u = n.onExpandedRowsChange, d = n.childrenColumnName, h = i || zbe, f = d || "children", p = S.useMemo(function() { - return l ? "row" : e.expandable && e.internalHooks === $m && e.expandable.__PARENT_RENDER_ICON__ || t.some(function(w) { +function twe(e, t, r) { + var n = zbe(e), i = n.expandIcon, o = n.expandedRowKeys, a = n.defaultExpandedRowKeys, s = n.defaultExpandAllRows, l = n.expandedRowRender, c = n.onExpand, u = n.onExpandedRowsChange, d = n.childrenColumnName, h = i || Jbe, f = d || "children", p = S.useMemo(function() { + return l ? "row" : e.expandable && e.internalHooks === Vm && e.expandable.__PARENT_RENDER_ICON__ || t.some(function(w) { return w && pt(w) === "object" && w[f]; }) ? "nest" : !1; }, [!!l, t]), g = S.useState(function() { - return a || (s ? Gbe(t, r, f) : []); + return a || (s ? ewe(t, r, f) : []); }), v = ce(g, 2), m = v[0], y = v[1], C = S.useMemo(function() { return new Set(o || m || []); }, [o, m]), b = S.useCallback(function(w) { @@ -34765,9 +34806,9 @@ function Wbe(e, t, r) { return Array.isArray(w == null ? void 0 : w[f]); }) && Tt(!1, "`expandedRowRender` should not use with nested Table"), [n, p, C, h, f, b]; } -function jbe(e, t, r) { +function rwe(e, t, r) { var n = e.map(function(i, o) { - return UI(o, o, e, t, r); + return UD(o, o, e, t, r); }); return $d(function() { return n; @@ -34775,8 +34816,8 @@ function jbe(e, t, r) { return !rs(i, o); }); } -function Fj(e) { - var t = ve(e), r = Le({}), n = ce(r, 2), i = n[1], o = ve(null), a = ve([]); +function $j(e) { + var t = ve(e), r = Ie({}), n = ce(r, 2), i = n[1], o = ve(null), a = ve([]); function s(l) { a.current.push(l); var c = Promise.resolve(); @@ -34795,7 +34836,7 @@ function Fj(e) { }; }, []), [t.current, s]; } -function Ube(e) { +function nwe(e) { var t = ve(null), r = ve(); function n() { window.clearTimeout(r.current); @@ -34812,17 +34853,17 @@ function Ube(e) { return n; }, []), [i, o]; } -function Kbe() { +function iwe() { var e = S.useState(-1), t = ce(e, 2), r = t[0], n = t[1], i = S.useState(-1), o = ce(i, 2), a = o[0], s = o[1], l = S.useCallback(function(c, u) { n(c), s(u); }, []); return [r, a, l]; } -var Qk = ii() ? window : null; -function Ybe(e, t) { +var e$ = ii() ? window : null; +function owe(e, t) { var r = pt(e) === "object" ? e : {}, n = r.offsetHeader, i = n === void 0 ? 0 : n, o = r.offsetSummary, a = o === void 0 ? 0 : o, s = r.offsetScroll, l = s === void 0 ? 0 : s, c = r.getContainer, u = c === void 0 ? function() { - return Qk; - } : c, d = u() || Qk; + return e$; + } : c, d = u() || e$; return S.useMemo(function() { var h = !!e; return { @@ -34835,8 +34876,8 @@ function Ybe(e, t) { }; }, [l, i, a, t, d]); } -function qbe(e, t, r) { - var n = Ct(function() { +function awe(e, t, r) { + var n = St(function() { var i = t.length, o = function(c, u, d) { for (var h = [], f = 0, p = c; p !== u; p += d) h.push(f), t[p].fixed && (f += e[p] || 0); @@ -34852,14 +34893,14 @@ function qbe(e, t, r) { }, [e, t, r]); return n; } -function Jk(e) { +function t$(e) { var t = e.className, r = e.children; return /* @__PURE__ */ S.createElement("div", { className: t }, r); } -var Xbe = function(t, r) { - var n, i, o = t.scrollBodyRef, a = t.onScroll, s = t.offsetScroll, l = t.container, c = Ni(Po, "prefixCls"), u = ((n = o.current) === null || n === void 0 ? void 0 : n.scrollWidth) || 0, d = ((i = o.current) === null || i === void 0 ? void 0 : i.clientWidth) || 0, h = u && d * (d / u), f = S.useRef(), p = Fj({ +var swe = function(t, r) { + var n, i, o = t.scrollBodyRef, a = t.onScroll, s = t.offsetScroll, l = t.container, c = Ni(Po, "prefixCls"), u = ((n = o.current) === null || n === void 0 ? void 0 : n.scrollWidth) || 0, d = ((i = o.current) === null || i === void 0 ? void 0 : i.clientWidth) || 0, h = u && d * (d / u), f = S.useRef(), p = $j({ scrollLeft: 0, isHiddenScrollBar: !1 }), g = ce(p, 2), v = g[0], m = g[1], y = S.useRef({ @@ -34868,7 +34909,7 @@ var Xbe = function(t, r) { }), C = S.useState(!1), b = ce(C, 2), w = b[0], x = b[1], E = S.useRef(null); S.useEffect(function() { return function() { - Nr.cancel(E.current); + kr.cancel(E.current); }; }, []); var R = function() { @@ -34886,10 +34927,10 @@ var Xbe = function(t, r) { scrollLeft: F / d * (u + 2) }), y.current.x = M.pageX; }, _ = function() { - E.current = Nr(function() { + E.current = kr(function() { if (o.current) { var M = kT(o.current).top, O = M + o.current.offsetHeight, L = l === window ? document.documentElement.scrollTop + window.innerHeight : kT(l).top + l.clientHeight; - O - uN() <= L || M >= L - s ? m(function(N) { + O - hN() <= L || M >= L - s ? m(function(N) { return Z(Z({}, N), {}, { isHiddenScrollBar: !0 }); @@ -34931,7 +34972,7 @@ var Xbe = function(t, r) { }); }, [v.isHiddenScrollBar]), u <= d || !h || v.isHiddenScrollBar ? null : /* @__PURE__ */ S.createElement("div", { style: { - height: uN(), + height: hN(), width: d, bottom: s }, @@ -34946,17 +34987,17 @@ var Xbe = function(t, r) { } })); }; -const Zbe = /* @__PURE__ */ S.forwardRef(Xbe); -var Nj = "rc-table", Qbe = [], Jbe = {}; -function ewe() { +const lwe = /* @__PURE__ */ S.forwardRef(swe); +var Bj = "rc-table", cwe = [], uwe = {}; +function dwe() { return "No Data"; } -function twe(e, t) { +function hwe(e, t) { var r, n = Z({ rowKey: "key", - prefixCls: Nj, - emptyText: ewe - }, e), i = n.prefixCls, o = n.className, a = n.rowClassName, s = n.style, l = n.data, c = n.rowKey, u = n.scroll, d = n.tableLayout, h = n.direction, f = n.title, p = n.footer, g = n.summary, v = n.caption, m = n.id, y = n.showHeader, C = n.components, b = n.emptyText, w = n.onRow, x = n.onHeaderRow, E = n.onScroll, R = n.internalHooks, P = n.transformColumns, T = n.internalRefs, _ = n.tailor, D = n.getContainerWidth, A = n.sticky, M = n.rowHoverable, O = M === void 0 ? !0 : M, L = l || Qbe, N = !!L.length, F = R === $m; + prefixCls: Bj, + emptyText: dwe + }, e), i = n.prefixCls, o = n.className, a = n.rowClassName, s = n.style, l = n.data, c = n.rowKey, u = n.scroll, d = n.tableLayout, h = n.direction, f = n.title, p = n.footer, g = n.summary, v = n.caption, m = n.id, y = n.showHeader, C = n.components, b = n.emptyText, w = n.onRow, x = n.onHeaderRow, E = n.onScroll, R = n.internalHooks, P = n.transformColumns, T = n.internalRefs, _ = n.tailor, D = n.getContainerWidth, A = n.sticky, M = n.rowHoverable, O = M === void 0 ? !0 : M, L = l || cwe, N = !!L.length, F = R === Vm; process.env.NODE_ENV !== "production" && (["onRowClick", "onRowDoubleClick", "onRowContextMenu", "onRowMouseEnter", "onRowMouseLeave"].forEach(function(Ht) { Tt(n[Ht] === void 0, "`".concat(Ht, "` is removed, please use `onRow` instead.")); }), Tt(!("getBodyWrapper" in n), "`getBodyWrapper` is deprecated, please use custom `components` instead.")); @@ -34967,19 +35008,19 @@ function twe(e, t) { var lr = Ht && Ht[c]; return process.env.NODE_ENV !== "production" && Tt(lr !== void 0, "Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."), lr; }; - }, [c]), V = $(["body"]), H = Kbe(), B = ce(H, 3), W = B[0], j = B[1], X = B[2], q = Wbe(n, L, I), J = ce(q, 6), te = J[0], Q = J[1], Y = J[2], K = J[3], ae = J[4], G = J[5], re = u == null ? void 0 : u.x, le = S.useState(0), ue = ce(le, 2), he = ue[0], fe = ue[1], de = Hbe(Z(Z(Z({}, n), te), {}, { - expandable: !!te.expandedRowRender, - columnTitle: te.columnTitle, + }, [c]), V = $(["body"]), H = iwe(), B = ce(H, 3), W = B[0], j = B[1], X = B[2], q = twe(n, L, I), J = ce(q, 6), re = J[0], Q = J[1], Y = J[2], K = J[3], ae = J[4], G = J[5], ne = u == null ? void 0 : u.x, le = S.useState(0), ue = ce(le, 2), he = ue[0], fe = ue[1], de = Qbe(Z(Z(Z({}, n), re), {}, { + expandable: !!re.expandedRowRender, + columnTitle: re.columnTitle, expandedKeys: Y, getRowKey: I, // https://github.com/ant-design/ant-design/issues/23894 onTriggerExpand: G, expandIcon: K, - expandIconColumnIndex: te.expandIconColumnIndex, + expandIconColumnIndex: re.expandIconColumnIndex, direction: h, - scrollWidth: F && _ && typeof re == "number" ? re : null, + scrollWidth: F && _ && typeof ne == "number" ? ne : null, clientWidth: he - }), F ? P : null), pe = ce(de, 4), _e = pe[0], be = pe[1], Me = pe[2], Ve = pe[3], oe = Me ?? re, ye = S.useMemo(function() { + }), F ? P : null), pe = ce(de, 4), _e = pe[0], be = pe[1], Me = pe[2], Ve = pe[3], oe = Me ?? ne, ye = S.useMemo(function() { return { columns: _e, flattenColumns: be @@ -34998,67 +35039,67 @@ function twe(e, t) { top: _n }); } else { - var Fa, sl = Yo ?? I(L[Jn]); - (Fa = we.current.querySelector('[data-row-key="'.concat(sl, '"]'))) === null || Fa === void 0 || Fa.scrollIntoView(); + var Fa, ll = Yo ?? I(L[Jn]); + (Fa = we.current.querySelector('[data-row-key="'.concat(ll, '"]'))) === null || Fa === void 0 || Fa.scrollIntoView(); } } else (gn = we.current) !== null && gn !== void 0 && gn.scrollTo && we.current.scrollTo(lr); } }; }); - var xe = S.useRef(), ze = S.useState(!1), je = ce(ze, 2), st = je[0], Xe = je[1], Ue = S.useState(!1), Ae = ce(Ue, 2), Ke = Ae[0], ht = Ae[1], Et = Fj(/* @__PURE__ */ new Map()), hr = ce(Et, 2), At = hr[0], Lt = hr[1], Dt = hw(be), Mt = Dt.map(function(Ht) { + var xe = S.useRef(), ze = S.useState(!1), je = ce(ze, 2), st = je[0], Xe = je[1], Ue = S.useState(!1), Oe = ce(Ue, 2), Ke = Oe[0], ht = Oe[1], Rt = $j(/* @__PURE__ */ new Map()), hr = ce(Rt, 2), At = hr[0], Lt = hr[1], Dt = pw(be), Mt = Dt.map(function(Ht) { return At.get(Ht); - }), mt = S.useMemo(function() { + }), yt = S.useMemo(function() { return Mt; - }, [Mt.join("_")]), Qe = qbe(mt, be, h), Rt = u && GT(u.y), jt = u && GT(oe) || !!te.fixed, We = jt && be.some(function(Ht) { + }, [Mt.join("_")]), Qe = awe(yt, be, h), Pt = u && GT(u.y), Ut = u && GT(oe) || !!re.fixed, We = Ut && be.some(function(Ht) { var lr = Ht.fixed; return lr; - }), et = S.useRef(), rt = Ybe(A, i), tt = rt.isSticky, yt = rt.offsetHeader, Gt = rt.offsetSummary, Mr = rt.offsetScroll, se = rt.stickyClassName, ge = rt.container, me = S.useMemo(function() { + }), et = S.useRef(), rt = owe(A, i), tt = rt.isSticky, Ct = rt.offsetHeader, Gt = rt.offsetSummary, Mr = rt.offsetScroll, se = rt.stickyClassName, ge = rt.container, me = S.useMemo(function() { return g == null ? void 0 : g(L); - }, [g, L]), He = (Rt || tt) && /* @__PURE__ */ S.isValidElement(me) && me.type === fw && me.props.fixed, ct, it, dt; - Rt && (it = { + }, [g, L]), He = (Pt || tt) && /* @__PURE__ */ S.isValidElement(me) && me.type === gw && me.props.fixed, ct, it, dt; + Pt && (it = { overflowY: "scroll", maxHeight: u.y - }), jt && (ct = { + }), Ut && (ct = { overflowX: "auto" - }, Rt || (it = { + }, Pt || (it = { overflowY: "hidden" }), dt = { width: oe === !0 ? "auto" : oe, minWidth: "100%" }); - var bt = S.useCallback(function(Ht, lr) { - Vb(Ne.current) && Lt(function(gn) { + var wt = S.useCallback(function(Ht, lr) { + zb(Ne.current) && Lt(function(gn) { if (gn.get(Ht) !== lr) { var Jn = new Map(gn); return Jn.set(Ht, lr), Jn; } return gn; }); - }, []), qe = Ube(), nt = ce(qe, 2), ut = nt[0], tr = nt[1]; + }, []), qe = nwe(), nt = ce(qe, 2), ut = nt[0], tr = nt[1]; function Or(Ht, lr) { lr && (typeof lr == "function" ? lr(Ht) : lr.scrollLeft !== Ht && (lr.scrollLeft = Ht, lr.scrollLeft !== Ht && setTimeout(function() { lr.scrollLeft = Ht; }, 0))); } - var Br = Kr(function(Ht) { - var lr = Ht.currentTarget, gn = Ht.scrollLeft, Jn = h === "rtl", _n = typeof gn == "number" ? gn : lr.scrollLeft, Yo = lr || Jbe; + var Br = Yr(function(Ht) { + var lr = Ht.currentTarget, gn = Ht.scrollLeft, Jn = h === "rtl", _n = typeof gn == "number" ? gn : lr.scrollLeft, Yo = lr || uwe; if (!tr() || tr() === Yo) { var qo; ut(Yo), Or(_n, ke.current), Or(_n, we.current), Or(_n, xe.current), Or(_n, (qo = et.current) === null || qo === void 0 ? void 0 : qo.setScrollLeft); } var Fa = lr || ke.current; if (Fa) { - var sl = Fa.scrollWidth, ou = Fa.clientWidth; - if (sl === ou) { + var ll = Fa.scrollWidth, ou = Fa.clientWidth; + if (ll === ou) { Xe(!1), ht(!1); return; } - Jn ? (Xe(-_n < sl - ou), ht(-_n > 0)) : (Xe(_n > 0), ht(_n < sl - ou)); + Jn ? (Xe(-_n < ll - ou), ht(-_n > 0)) : (Xe(_n > 0), ht(_n < ll - ou)); } - }), xr = Kr(function(Ht) { + }), xr = Yr(function(Ht) { Br(Ht), E == null || E(Ht); }), An = function() { - jt && we.current ? Br({ + Ut && we.current ? Br({ currentTarget: we.current }) : (Xe(!1), ht(!1)); }, Qn = function(lr) { @@ -35069,37 +35110,37 @@ function twe(e, t) { }, ln = S.useRef(!1); S.useEffect(function() { ln.current && An(); - }, [jt, l, _e.length]), S.useEffect(function() { + }, [Ut, l, _e.length]), S.useEffect(function() { ln.current = !0; }, []); - var Pn = S.useState(0), Vi = ce(Pn, 2), Vn = Vi[0], It = Vi[1], ur = S.useState(!0), Dr = ce(ur, 2), bn = Dr[0], ui = Dr[1]; + var Pn = S.useState(0), Vi = ce(Pn, 2), Vn = Vi[0], It = Vi[1], ur = S.useState(!0), Dr = ce(ur, 2), bn = Dr[0], di = Dr[1]; S.useEffect(function() { - (!_ || !F) && (we.current instanceof Element ? It(hT(we.current).width) : It(hT(Ce.current).width)), ui(xT("position", "sticky")); + (!_ || !F) && (we.current instanceof Element ? It(hT(we.current).width) : It(hT(Ce.current).width)), di(xT("position", "sticky")); }, []), S.useEffect(function() { F && T && (T.body.current = we.current); }); var Ko = S.useCallback(function(Ht) { - return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(Xk, Ht), He === "top" && /* @__PURE__ */ S.createElement(Ny, Ht, me)); + return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(Qk, Ht), He === "top" && /* @__PURE__ */ S.createElement(By, Ht, me)); }, [He, me]), Hi = S.useCallback(function(Ht) { - return /* @__PURE__ */ S.createElement(Ny, Ht, me); - }, [me]), rr = $(["table"], "table"), qt = S.useMemo(function() { - return d || (We ? oe === "max-content" ? "auto" : "fixed" : Rt || tt || be.some(function(Ht) { + return /* @__PURE__ */ S.createElement(By, Ht, me); + }, [me]), rr = $(["table"], "table"), Xt = S.useMemo(function() { + return d || (We ? oe === "max-content" ? "auto" : "fixed" : Pt || tt || be.some(function(Ht) { var lr = Ht.ellipsis; return lr; }) ? "fixed" : "auto"); - }, [Rt, We, be, d, tt]), wn, xn = { - colWidths: mt, + }, [Pt, We, be, d, tt]), wn, xn = { + colWidths: yt, columCount: be.length, stickyOffsets: Qe, onHeaderRow: x, - fixHeader: Rt, + fixHeader: Pt, scroll: u }, Xr = S.useMemo(function() { return N ? null : typeof b == "function" ? b() : b; - }, [N, b]), dr = /* @__PURE__ */ S.createElement(Mbe, { + }, [N, b]), dr = /* @__PURE__ */ S.createElement(Vbe, { data: L, - measureColumnWidth: Rt || jt || tt - }), sr = /* @__PURE__ */ S.createElement(Ij, { + measureColumnWidth: Pt || Ut || tt + }), sr = /* @__PURE__ */ S.createElement(Lj, { colWidths: be.map(function(Ht) { var lr = Ht.width; return lr; @@ -35112,7 +35153,7 @@ function twe(e, t) { }), hn = Ji(n, { aria: !0 }); - if (Rt || tt) { + if (Pt || tt) { var Tn; typeof V == "function" ? (Tn = V(L, { scrollbarSize: Vn, @@ -35128,29 +35169,29 @@ function twe(e, t) { className: ie("".concat(i, "-body")) }, /* @__PURE__ */ S.createElement(rr, Te({ style: Z(Z({}, dt), {}, { - tableLayout: qt + tableLayout: Xt }) - }, hn), Sr, sr, dr, !He && me && /* @__PURE__ */ S.createElement(Ny, { + }, hn), Sr, sr, dr, !He && me && /* @__PURE__ */ S.createElement(By, { stickyOffsets: Qe, flattenColumns: be }, me))); - var di = Z(Z(Z({ + var hi = Z(Z(Z({ noData: !L.length, - maxContentScroll: jt && oe === "max-content" + maxContentScroll: Ut && oe === "max-content" }, xn), ye), {}, { direction: h, stickyClassName: se, onScroll: Br }); - wn = /* @__PURE__ */ S.createElement(S.Fragment, null, y !== !1 && /* @__PURE__ */ S.createElement(qk, Te({}, di, { - stickyTopOffset: yt, + wn = /* @__PURE__ */ S.createElement(S.Fragment, null, y !== !1 && /* @__PURE__ */ S.createElement(Zk, Te({}, hi, { + stickyTopOffset: Ct, className: "".concat(i, "-header"), ref: ke - }), Ko), Tn, He && He !== "top" && /* @__PURE__ */ S.createElement(qk, Te({}, di, { + }), Ko), Tn, He && He !== "top" && /* @__PURE__ */ S.createElement(Zk, Te({}, hi, { stickyBottomOffset: Gt, className: "".concat(i, "-summary"), ref: xe - }), Hi), tt && we.current && we.current instanceof Element && /* @__PURE__ */ S.createElement(Zbe, { + }), Hi), tt && we.current && we.current instanceof Element && /* @__PURE__ */ S.createElement(lwe, { ref: et, offsetScroll: Mr, scrollBodyRef: we, @@ -35165,29 +35206,29 @@ function twe(e, t) { ref: we }, /* @__PURE__ */ S.createElement(rr, Te({ style: Z(Z({}, dt), {}, { - tableLayout: qt + tableLayout: Xt }) - }, hn), Sr, sr, y !== !1 && /* @__PURE__ */ S.createElement(Xk, Te({}, xn, ye)), dr, me && /* @__PURE__ */ S.createElement(Ny, { + }, hn), Sr, sr, y !== !1 && /* @__PURE__ */ S.createElement(Qk, Te({}, xn, ye)), dr, me && /* @__PURE__ */ S.createElement(By, { stickyOffsets: Qe, flattenColumns: be }, me))); - var ol = /* @__PURE__ */ S.createElement("div", Te({ - className: ie(i, o, (r = {}, U(r, "".concat(i, "-rtl"), h === "rtl"), U(r, "".concat(i, "-ping-left"), st), U(r, "".concat(i, "-ping-right"), Ke), U(r, "".concat(i, "-layout-fixed"), d === "fixed"), U(r, "".concat(i, "-fixed-header"), Rt), U(r, "".concat(i, "-fixed-column"), We), U(r, "".concat(i, "-fixed-column-gapped"), We && Ve), U(r, "".concat(i, "-scroll-horizontal"), jt), U(r, "".concat(i, "-has-fix-left"), be[0] && be[0].fixed), U(r, "".concat(i, "-has-fix-right"), be[be.length - 1] && be[be.length - 1].fixed === "right"), r)), + var al = /* @__PURE__ */ S.createElement("div", Te({ + className: ie(i, o, (r = {}, U(r, "".concat(i, "-rtl"), h === "rtl"), U(r, "".concat(i, "-ping-left"), st), U(r, "".concat(i, "-ping-right"), Ke), U(r, "".concat(i, "-layout-fixed"), d === "fixed"), U(r, "".concat(i, "-fixed-header"), Pt), U(r, "".concat(i, "-fixed-column"), We), U(r, "".concat(i, "-fixed-column-gapped"), We && Ve), U(r, "".concat(i, "-scroll-horizontal"), Ut), U(r, "".concat(i, "-has-fix-left"), be[0] && be[0].fixed), U(r, "".concat(i, "-has-fix-right"), be[be.length - 1] && be[be.length - 1].fixed === "right"), r)), style: s, id: m, ref: Ne - }, on), f && /* @__PURE__ */ S.createElement(Jk, { + }, on), f && /* @__PURE__ */ S.createElement(t$, { className: "".concat(i, "-title") }, f(L)), /* @__PURE__ */ S.createElement("div", { ref: Ce, className: "".concat(i, "-container") - }, wn), p && /* @__PURE__ */ S.createElement(Jk, { + }, wn), p && /* @__PURE__ */ S.createElement(t$, { className: "".concat(i, "-footer") }, p(L))); - jt && (ol = /* @__PURE__ */ S.createElement(Li, { + Ut && (al = /* @__PURE__ */ S.createElement(Li, { onResize: Qn - }, ol)); - var hi = jbe(be, Qe, h), al = S.useMemo(function() { + }, al)); + var fi = rwe(be, Qe, h), sl = S.useMemo(function() { return { // Scroll scrollX: oe, @@ -35196,24 +35237,24 @@ function twe(e, t) { getComponent: $, scrollbarSize: Vn, direction: h, - fixedInfoList: hi, + fixedInfoList: fi, isSticky: tt, supportSticky: bn, componentWidth: he, - fixHeader: Rt, + fixHeader: Pt, fixColumn: We, - horizonScroll: jt, + horizonScroll: Ut, // Body - tableLayout: qt, + tableLayout: Xt, rowClassName: a, - expandedRowClassName: te.expandedRowClassName, + expandedRowClassName: re.expandedRowClassName, expandIcon: K, expandableType: Q, - expandRowByClick: te.expandRowByClick, - expandedRowRender: te.expandedRowRender, + expandRowByClick: re.expandRowByClick, + expandedRowRender: re.expandedRowRender, onTriggerExpand: G, - expandIconColumnIndex: te.expandIconColumnIndex, - indentSize: te.indentSize, + expandIconColumnIndex: re.expandIconColumnIndex, + indentSize: re.indentSize, allColumnsFixedLeft: be.every(function(Ht) { return Ht.fixed === "left"; }), @@ -35221,12 +35262,12 @@ function twe(e, t) { // Column columns: _e, flattenColumns: be, - onColumnResize: bt, + onColumnResize: wt, // Row hoverStartRow: W, hoverEndRow: j, onHover: X, - rowExpandable: te.rowExpandable, + rowExpandable: re.rowExpandable, onRow: w, getRowKey: I, expandedKeys: Y, @@ -35241,34 +35282,34 @@ function twe(e, t) { $, Vn, h, - hi, + fi, tt, bn, he, - Rt, + Pt, We, - jt, + Ut, // Body - qt, + Xt, a, - te.expandedRowClassName, + re.expandedRowClassName, K, Q, - te.expandRowByClick, - te.expandedRowRender, + re.expandRowByClick, + re.expandedRowRender, G, - te.expandIconColumnIndex, - te.indentSize, + re.expandIconColumnIndex, + re.indentSize, Xr, // Column _e, be, - bt, + wt, // Row W, j, X, - te.rowExpandable, + re.rowExpandable, w, I, Y, @@ -35276,27 +35317,27 @@ function twe(e, t) { O ]); return /* @__PURE__ */ S.createElement(Po.Provider, { - value: al - }, ol); -} -var kj = /* @__PURE__ */ S.forwardRef(twe); -process.env.NODE_ENV !== "production" && (kj.displayName = "Table"); -function $j(e) { - return Cj(kj, e); -} -var ap = $j(); -ap.EXPAND_COLUMN = Rs; -ap.INTERNAL_HOOKS = $m; -ap.Column = Ebe; -ap.ColumnGroup = Rbe; -ap.Summary = xj; -var YI = WI(null), Bj = WI(null); -function rwe(e, t, r) { + value: sl + }, al); +} +var Vj = /* @__PURE__ */ S.forwardRef(hwe); +process.env.NODE_ENV !== "production" && (Vj.displayName = "Table"); +function Hj(e) { + return wj(Vj, e); +} +var lp = Hj(); +lp.EXPAND_COLUMN = Rs; +lp.INTERNAL_HOOKS = Vm; +lp.Column = Fbe; +lp.ColumnGroup = Nbe; +lp.Summary = Pj; +var YD = WD(null), zj = WD(null); +function fwe(e, t, r) { var n = t || 1; return r[e + n] - (r[e] || 0); } -function nwe(e) { - var t = e.rowInfo, r = e.column, n = e.colIndex, i = e.indent, o = e.index, a = e.component, s = e.renderIndex, l = e.record, c = e.style, u = e.className, d = e.inverse, h = e.getHeight, f = r.render, p = r.dataIndex, g = r.className, v = r.width, m = Ni(Bj, ["columnsOffset"]), y = m.columnsOffset, C = _j(t, r, n, i, o), b = C.key, w = C.fixedInfo, x = C.appendCellNode, E = C.additionalCellProps, R = E.style, P = E.colSpan, T = P === void 0 ? 1 : P, _ = E.rowSpan, D = _ === void 0 ? 1 : _, A = n - 1, M = rwe(A, T, y), O = T > 1 ? v - M : 0, L = Z(Z(Z({}, R), c), {}, { +function pwe(e) { + var t = e.rowInfo, r = e.column, n = e.colIndex, i = e.indent, o = e.index, a = e.component, s = e.renderIndex, l = e.record, c = e.style, u = e.className, d = e.inverse, h = e.getHeight, f = r.render, p = r.dataIndex, g = r.className, v = r.width, m = Ni(zj, ["columnsOffset"]), y = m.columnsOffset, C = Ij(t, r, n, i, o), b = C.key, w = C.fixedInfo, x = C.appendCellNode, E = C.additionalCellProps, R = E.style, P = E.colSpan, T = P === void 0 ? 1 : P, _ = E.rowSpan, D = _ === void 0 ? 1 : _, A = n - 1, M = fwe(A, T, y), O = T > 1 ? v - M : 0, L = Z(Z(Z({}, R), c), {}, { flex: "0 0 ".concat(M, "px"), width: "".concat(M, "px"), marginRight: O, @@ -35329,8 +35370,8 @@ function nwe(e) { }, $) })); } -var iwe = ["data", "index", "className", "rowKey", "style", "extra", "getHeight"], owe = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r = e.data, n = e.index, i = e.className, o = e.rowKey, a = e.style, s = e.extra, l = e.getHeight, c = Nt(e, iwe), u = r.record, d = r.indent, h = r.index, f = Ni(Po, ["prefixCls", "flattenColumns", "fixColumn", "componentWidth", "scrollX"]), p = f.scrollX, g = f.flattenColumns, v = f.prefixCls, m = f.fixColumn, y = f.componentWidth, C = Ni(YI, ["getComponent"]), b = C.getComponent, w = Pj(u, o, n, d), x = b(["body", "row"], "div"), E = b(["body", "cell"], "div"), R = w.rowSupportExpand, P = w.expanded, T = w.rowProps, _ = w.expandedRowRender, D = w.expandedRowClassName, A; +var gwe = ["data", "index", "className", "rowKey", "style", "extra", "getHeight"], vwe = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r = e.data, n = e.index, i = e.className, o = e.rowKey, a = e.style, s = e.extra, l = e.getHeight, c = Nt(e, gwe), u = r.record, d = r.indent, h = r.index, f = Ni(Po, ["prefixCls", "flattenColumns", "fixColumn", "componentWidth", "scrollX"]), p = f.scrollX, g = f.flattenColumns, v = f.prefixCls, m = f.fixColumn, y = f.componentWidth, C = Ni(YD, ["getComponent"]), b = C.getComponent, w = Mj(u, o, n, d), x = b(["body", "row"], "div"), E = b(["body", "cell"], "div"), R = w.rowSupportExpand, P = w.expanded, T = w.rowProps, _ = w.expandedRowRender, D = w.expandedRowClassName, A; if (R && P) { var M = _(u, n, d + 1, P), O = D == null ? void 0 : D(u, n, d), L = {}; m && (L = { @@ -35356,7 +35397,7 @@ var iwe = ["data", "index", "className", "rowKey", "style", "extra", "getHeight" className: ie(i, "".concat(v, "-row"), T == null ? void 0 : T.className, U({}, "".concat(v, "-row-extra"), s)), style: Z(Z({}, F), T == null ? void 0 : T.style) }), g.map(function(I, V) { - return /* @__PURE__ */ S.createElement(nwe, { + return /* @__PURE__ */ S.createElement(pwe, { key: V, component: E, rowInfo: w, @@ -35373,10 +35414,10 @@ var iwe = ["data", "index", "className", "rowKey", "style", "extra", "getHeight" return R ? /* @__PURE__ */ S.createElement("div", { ref: t }, $, A) : $; -}), jT = op(owe); +}), jT = sp(vwe); process.env.NODE_ENV !== "production" && (jT.displayName = "BodyLine"); -var awe = /* @__PURE__ */ S.forwardRef(function(e, t) { - var r = e.data, n = e.onScroll, i = Ni(Po, ["flattenColumns", "onColumnResize", "getRowKey", "prefixCls", "expandedKeys", "childrenColumnName", "emptyNode", "scrollX"]), o = i.flattenColumns, a = i.onColumnResize, s = i.getRowKey, l = i.expandedKeys, c = i.prefixCls, u = i.childrenColumnName, d = i.emptyNode, h = i.scrollX, f = Ni(YI), p = f.sticky, g = f.scrollY, v = f.listItemHeight, m = f.getComponent, y = f.onScroll, C = S.useRef(), b = Rj(r, u, l, s), w = S.useMemo(function() { +var mwe = /* @__PURE__ */ S.forwardRef(function(e, t) { + var r = e.data, n = e.onScroll, i = Ni(Po, ["flattenColumns", "onColumnResize", "getRowKey", "prefixCls", "expandedKeys", "childrenColumnName", "emptyNode", "scrollX"]), o = i.flattenColumns, a = i.onColumnResize, s = i.getRowKey, l = i.expandedKeys, c = i.prefixCls, u = i.childrenColumnName, d = i.emptyNode, h = i.scrollX, f = Ni(YD), p = f.sticky, g = f.scrollY, v = f.listItemHeight, m = f.getComponent, y = f.onScroll, C = S.useRef(), b = _j(r, u, l, s), w = S.useMemo(function() { var L = 0; return o.map(function(N) { var F = N.width, $ = N.key; @@ -35428,11 +35469,11 @@ var awe = /* @__PURE__ */ S.forwardRef(function(e, t) { function(G) { return E(G, F) === 0; } - ), B = F, W = function(re) { + ), B = F, W = function(ne) { if (H = H.filter(function(le) { - return E(le, re) === 0; + return E(le, ne) === 0; }), !H.length) - return B = re, 1; + return B = ne, 1; }, j = F; j >= 0 && !W(j); j -= 1) ; for (var X = o.filter( @@ -35440,30 +35481,30 @@ var awe = /* @__PURE__ */ S.forwardRef(function(e, t) { function(G) { return E(G, $) !== 1; } - ), q = $, J = function(re) { + ), q = $, J = function(ne) { if (X = X.filter(function(le) { - return E(le, re) !== 1; + return E(le, ne) !== 1; }), !X.length) - return q = Math.max(re - 1, $), 1; - }, te = $; te < b.length && !J(te); te += 1) + return q = Math.max(ne - 1, $), 1; + }, re = $; re < b.length && !J(re); re += 1) ; - for (var Q = [], Y = function(re) { - var le = b[re]; + for (var Q = [], Y = function(ne) { + var le = b[ne]; if (!le) return 1; o.some(function(ue) { - return E(ue, re) > 1; - }) && Q.push(re); + return E(ue, ne) > 1; + }) && Q.push(ne); }, K = B; K <= q; K += 1) Y(K); var ae = Q.map(function(G) { - var re = b[G], le = s(re.record, G), ue = function(de) { + var ne = b[G], le = s(ne.record, G), ue = function(de) { var pe = G + de - 1, _e = s(b[pe].record, pe), be = I(le, _e); return be.bottom - be.top; }, he = I(le); return /* @__PURE__ */ S.createElement(jT, { key: G, - data: re, + data: ne, rowKey: le, index: G, style: { @@ -35481,7 +35522,7 @@ var awe = /* @__PURE__ */ S.forwardRef(function(e, t) { }, [x]), T = "".concat(c, "-tbody"), _ = m(["body", "wrapper"]), D = m(["body", "row"], "div"), A = m(["body", "cell"], "div"), M; if (b.length) { var O = {}; - p && (O.position = "sticky", O.bottom = 0, pt(p) === "object" && p.offsetScroll && (O.bottom = p.offsetScroll)), M = /* @__PURE__ */ S.createElement(Yb, { + p && (O.position = "sticky", O.bottom = 0, pt(p) === "object" && p.offsetScroll && (O.bottom = p.offsetScroll)), M = /* @__PURE__ */ S.createElement(Xb, { fullHeight: !1, ref: C, prefixCls: "".concat(T, "-virtual"), @@ -35521,25 +35562,25 @@ var awe = /* @__PURE__ */ S.forwardRef(function(e, t) { component: A, prefixCls: c }, d)); - return /* @__PURE__ */ S.createElement(Bj.Provider, { + return /* @__PURE__ */ S.createElement(zj.Provider, { value: P }, M); -}), Vj = op(awe); -process.env.NODE_ENV !== "production" && (Vj.displayName = "ResponseGrid"); -var swe = function(t, r) { +}), Gj = sp(mwe); +process.env.NODE_ENV !== "production" && (Gj.displayName = "ResponseGrid"); +var ywe = function(t, r) { var n = r.ref, i = r.onScroll; - return /* @__PURE__ */ S.createElement(Vj, { + return /* @__PURE__ */ S.createElement(Gj, { ref: n, data: t, onScroll: i }); }; -function lwe(e, t) { - var r = e.columns, n = e.scroll, i = e.sticky, o = e.prefixCls, a = o === void 0 ? Nj : o, s = e.className, l = e.listItemHeight, c = e.components, u = e.onScroll, d = n || {}, h = d.x, f = d.y; +function Cwe(e, t) { + var r = e.columns, n = e.scroll, i = e.sticky, o = e.prefixCls, a = o === void 0 ? Bj : o, s = e.className, l = e.listItemHeight, c = e.components, u = e.onScroll, d = n || {}, h = d.x, f = d.y; typeof h != "number" && (process.env.NODE_ENV !== "production" && Tt(!h, "`scroll.x` in virtual table must be number."), h = 1), typeof f != "number" && (f = 500, process.env.NODE_ENV !== "production" && Tt(!1, "`scroll.y` in virtual table must be number.")); - var p = Kr(function(m, y) { + var p = Yr(function(m, y) { return ko(c, m) || y; - }), g = Kr(u), v = S.useMemo(function() { + }), g = Yr(u), v = S.useMemo(function() { return { sticky: i, scrollY: f, @@ -35548,35 +35589,35 @@ function lwe(e, t) { onScroll: g }; }, [i, f, l, p, g]); - return /* @__PURE__ */ S.createElement(YI.Provider, { + return /* @__PURE__ */ S.createElement(YD.Provider, { value: v - }, /* @__PURE__ */ S.createElement(ap, Te({}, e, { + }, /* @__PURE__ */ S.createElement(lp, Te({}, e, { className: ie(s, "".concat(a, "-virtual")), scroll: Z(Z({}, n), {}, { x: h }), components: Z(Z({}, c), {}, { - body: swe + body: ywe }), columns: r, - internalHooks: $m, + internalHooks: Vm, tailor: !0, ref: t }))); } -var Hj = /* @__PURE__ */ S.forwardRef(lwe); -process.env.NODE_ENV !== "production" && (Hj.displayName = "VirtualTable"); -function zj(e) { - return Cj(Hj, e); +var Wj = /* @__PURE__ */ S.forwardRef(Cwe); +process.env.NODE_ENV !== "production" && (Wj.displayName = "VirtualTable"); +function jj(e) { + return wj(Wj, e); } -zj(); -function cwe(e) { +jj(); +function Swe(e) { return null; } -function uwe(e) { +function bwe(e) { return null; } -var qI = /* @__PURE__ */ S.createContext(null), dwe = function(t) { +var qD = /* @__PURE__ */ S.createContext(null), wwe = function(t) { for (var r = t.prefixCls, n = t.level, i = t.isStart, o = t.isEnd, a = "".concat(r, "-indent-unit"), s = [], l = 0; l < n; l += 1) s.push(/* @__PURE__ */ S.createElement("span", { key: l, @@ -35587,8 +35628,8 @@ var qI = /* @__PURE__ */ S.createContext(null), dwe = function(t) { className: "".concat(r, "-indent") }, s); }; -const hwe = /* @__PURE__ */ S.memo(dwe); -var fwe = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove", "selectable"], e$ = "open", t$ = "close", pwe = "---", gwe = /* @__PURE__ */ function(e) { +const xwe = /* @__PURE__ */ S.memo(wwe); +var Ewe = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove", "selectable"], r$ = "open", n$ = "close", Rwe = "---", Pwe = /* @__PURE__ */ function(e) { Qs(r, e); var t = Js(r); function r() { @@ -35661,7 +35702,7 @@ var fwe = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "drag n.selectHandle = s; }), U(Ge(n), "getNodeState", function() { var s = n.props.expanded; - return n.isLeaf() ? null : s ? e$ : t$; + return n.isLeaf() ? null : s ? r$ : n$; }), U(Ge(n), "hasChildren", function() { var s = n.props.eventKey, l = n.props.context.keyEntities, c = fo(l, s) || {}, u = c.children; return !!(u || []).length; @@ -35698,7 +35739,7 @@ var fwe = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "drag className: ie("".concat(l, "-switcher"), "".concat(l, "-switcher-noop")) }, c) : null; } - var u = ie("".concat(l, "-switcher"), "".concat(l, "-switcher_").concat(s ? e$ : t$)), d = n.renderSwitcherIconDom(!1); + var u = ie("".concat(l, "-switcher"), "".concat(l, "-switcher_").concat(s ? r$ : n$)), d = n.renderSwitcherIconDom(!1); return d !== !1 ? /* @__PURE__ */ S.createElement("span", { onClick: n.onExpand, className: u @@ -35717,7 +35758,7 @@ var fwe = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "drag className: ie("".concat(l, "-iconEle"), "".concat(l, "-icon__").concat(n.getNodeState() || "docu"), s && "".concat(l, "-icon_loading")) }); }), U(Ge(n), "renderSelector", function() { - var s = n.state.dragNodeHighlight, l = n.props, c = l.title, u = c === void 0 ? pwe : c, d = l.selected, h = l.icon, f = l.loading, p = l.data, g = n.props.context, v = g.prefixCls, m = g.showIcon, y = g.icon, C = g.loadData, b = g.titleRender, w = n.isDisabled(), x = "".concat(v, "-node-content-wrapper"), E; + var s = n.state.dragNodeHighlight, l = n.props, c = l.title, u = c === void 0 ? Rwe : c, d = l.selected, h = l.icon, f = l.loading, p = l.data, g = n.props.context, v = g.prefixCls, m = g.showIcon, y = g.icon, C = g.loadData, b = g.titleRender, w = n.isDisabled(), x = "".concat(v, "-node-content-wrapper"), E; if (m) { var R = h || y; E = R ? /* @__PURE__ */ S.createElement("span", { @@ -35776,7 +35817,7 @@ var fwe = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "drag function() { var i, o = this.props, a = o.eventKey, s = o.className, l = o.style, c = o.dragOver, u = o.dragOverGapTop, d = o.dragOverGapBottom, h = o.isLeaf, f = o.isStart, p = o.isEnd, g = o.expanded, v = o.selected, m = o.checked, y = o.halfChecked, C = o.loading, b = o.domRef, w = o.active; o.data; - var x = o.onMouseMove, E = o.selectable, R = Nt(o, fwe), P = this.props.context, T = P.prefixCls, _ = P.filterTreeNode, D = P.keyEntities, A = P.dropContainerKey, M = P.dropTargetKey, O = P.draggingNodeKey, L = this.isDisabled(), N = Ji(R, { + var x = o.onMouseMove, E = o.selectable, R = Nt(o, Ewe), P = this.props.context, T = P.prefixCls, _ = P.filterTreeNode, D = P.keyEntities, A = P.dropContainerKey, M = P.dropTargetKey, O = P.draggingNodeKey, L = this.isDisabled(), N = Ji(R, { aria: !0, data: !0 }), F = fo(D, a) || {}, $ = F.level, I = p[p.length - 1], V = this.isDraggable(), H = !L && V, B = O === a, W = E !== void 0 ? { @@ -35795,7 +35836,7 @@ var fwe = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "drag onDrop: V ? this.onDrop : void 0, onDragEnd: V ? this.onDragEnd : void 0, onMouseMove: x - }, W, N), /* @__PURE__ */ S.createElement(hwe, { + }, W, N), /* @__PURE__ */ S.createElement(xwe, { prefixCls: T, level: $, isStart: f, @@ -35805,8 +35846,8 @@ var fwe = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "drag ) }]), r; }(S.Component), Of = function(t) { - return /* @__PURE__ */ S.createElement(qI.Consumer, null, function(r) { - return /* @__PURE__ */ S.createElement(gwe, Te({}, t, { + return /* @__PURE__ */ S.createElement(qD.Consumer, null, function(r) { + return /* @__PURE__ */ S.createElement(Pwe, Te({}, t, { context: r })); }); @@ -35818,14 +35859,14 @@ function bs(e, t) { var r = e.slice(), n = r.indexOf(t); return n >= 0 && r.splice(n, 1), r; } -function vl(e, t) { +function ml(e, t) { var r = (e || []).slice(); return r.indexOf(t) === -1 && r.push(t), r; } -function XI(e) { +function XD(e) { return e.split("-"); } -function vwe(e, t) { +function Twe(e, t) { var r = [], n = fo(t, e); function i() { var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; @@ -35836,18 +35877,18 @@ function vwe(e, t) { } return i(n.children), r; } -function mwe(e) { +function _we(e) { if (e.parent) { - var t = XI(e.pos); + var t = XD(e.pos); return Number(t[t.length - 1]) === e.parent.children.length - 1; } return !1; } -function ywe(e) { - var t = XI(e.pos); +function Mwe(e) { + var t = XD(e.pos); return Number(t[t.length - 1]) === 0; } -function r$(e, t, r, n, i, o, a, s, l, c) { +function i$(e, t, r, n, i, o, a, s, l, c) { var u, d = e.clientX, h = e.clientY, f = e.target.getBoundingClientRect(), p = f.top, g = f.height, v = (c === "rtl" ? -1 : 1) * (((i == null ? void 0 : i.x) || 0) - d), m = (v - 12) / n, y = l.filter(function(L) { var N; return (N = s[L]) === null || N === void 0 || (N = N.children) === null || N === void 0 ? void 0 : N.length; @@ -35860,10 +35901,10 @@ function r$(e, t, r, n, i, o, a, s, l, c) { } var E = C.key, R = C, P = C.key, T = 0, _ = 0; if (!y.includes(E)) - for (var D = 0; D < m && mwe(C); D += 1) + for (var D = 0; D < m && _we(C); D += 1) C = C.parent, _ += 1; var A = t.props.data, M = C.node, O = !0; - return ywe(C) && C.level === 0 && h < p + g / 2 && o({ + return Mwe(C) && C.level === 0 && h < p + g / 2 && o({ dragNode: A, dropNode: M, dropPosition: -1 @@ -35897,7 +35938,7 @@ function r$(e, t, r, n, i, o, a, s, l, c) { dropAllowed: O }; } -function n$(e, t) { +function o$(e, t) { if (e) { var r = t.multiple; return r ? e.slice() : e.length ? [e[0]] : e; @@ -35937,8 +35978,8 @@ function UT(e, t) { n(i); }), $e(r); } -function Cwe(e) { - const [t, r] = Le(null); +function Dwe(e) { + const [t, r] = Ie(null); return [or((o, a, s) => { const l = t ?? o, c = Math.min(l || 0, o), u = Math.max(l || 0, o), d = a.slice(c, u + 1).map((p) => e(p)), h = d.some((p) => !s.has(p)), f = []; return d.forEach((p) => { @@ -35948,12 +35989,12 @@ function Cwe(e) { r(o); }]; } -const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = [], Gj = (e, t) => { +const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", a$ = [], Uj = (e, t) => { let r = []; return (t || []).forEach((n) => { - r.push(n), n && typeof n == "object" && e in n && (r = [].concat($e(r), $e(Gj(e, n[e])))); + r.push(n), n && typeof n == "object" && e in n && (r = [].concat($e(r), $e(Uj(e, n[e])))); }), r; -}, Swe = (e, t) => { +}, Iwe = (e, t) => { const { preserveSelectedRowKeys: r, selectedRowKeys: n, @@ -35982,7 +36023,7 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = childrenColumnName: P, locale: T, getPopupContainer: _ - } = e, D = Rr("Table"), [A, M] = Cwe((Y) => Y), [O, L] = pn(n || i || i$, { + } = e, D = Rr("Table"), [A, M] = Dwe((Y) => Y), [O, L] = pn(n || i || a$, { value: n }), N = S.useRef(/* @__PURE__ */ new Map()), F = or((Y) => { if (r) { @@ -35998,33 +36039,33 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = }, [O]); const { keyEntities: $ - } = Ct(() => { + } = St(() => { if (y) return { keyEntities: null }; let Y = b; if (r) { - const K = new Set(b.map((G, re) => E(G, re))), ae = Array.from(N.current).reduce((G, re) => { - let [le, ue] = re; + const K = new Set(b.map((G, ne) => E(G, ne))), ae = Array.from(N.current).reduce((G, ne) => { + let [le, ue] = ne; return K.has(le) ? G : G.concat(ue); }, []); Y = [].concat($e(Y), $e(ae)); } - return kI(Y, { + return kD(Y, { externalGetKey: E, childrenPropName: P }); - }, [b, E, y, P, r]), I = Ct(() => Gj(P, w), [P, w]), V = Ct(() => { + }, [b, E, y, P, r]), I = St(() => Uj(P, w), [P, w]), V = St(() => { const Y = /* @__PURE__ */ new Map(); return I.forEach((K, ae) => { - const G = E(K, ae), re = (o ? o(K) : null) || {}; - Y.set(G, re), process.env.NODE_ENV !== "production" && D(!("checked" in re || "defaultChecked" in re), "usage", "Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead."); + const G = E(K, ae), ne = (o ? o(K) : null) || {}; + Y.set(G, ne), process.env.NODE_ENV !== "production" && D(!("checked" in ne || "defaultChecked" in ne), "usage", "Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead."); }), Y; }, [I, E, o]), H = or((Y) => { var K; return !!(!((K = V.get(E(Y))) === null || K === void 0) && K.disabled); - }, [V, E]), [B, W] = Ct(() => { + }, [V, E]), [B, W] = St(() => { if (y) return [O || [], []]; const { @@ -36032,28 +36073,28 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = halfCheckedKeys: K } = df(O, !0, $, H); return [Y || [], K]; - }, [O, y, $, H]), j = Ct(() => { + }, [O, y, $, H]), j = St(() => { const Y = f === "radio" ? B.slice(0, 1) : B; return new Set(Y); - }, [B, f]), X = Ct(() => f === "radio" ? /* @__PURE__ */ new Set() : new Set(W), [W, f]); + }, [B, f]), X = St(() => f === "radio" ? /* @__PURE__ */ new Set() : new Set(W), [W, f]); S.useEffect(() => { - t || L(i$); + t || L(a$); }, [!!t]); const q = or((Y, K) => { let ae, G; - F(Y), r ? (ae = Y, G = Y.map((re) => N.current.get(re))) : (ae = [], G = [], Y.forEach((re) => { - const le = x(re); - le !== void 0 && (ae.push(re), G.push(le)); + F(Y), r ? (ae = Y, G = Y.map((ne) => N.current.get(ne))) : (ae = [], G = [], Y.forEach((ne) => { + const le = x(ne); + le !== void 0 && (ae.push(ne), G.push(le)); })), L(ae), a == null || a(ae, G, { type: K }); }, [L, x, a, r]), J = or((Y, K, ae, G) => { if (s) { - const re = ae.map((le) => x(le)); - s(x(Y), K, re, G); + const ne = ae.map((le) => x(le)); + s(x(Y), K, ne, G); } q(ae, "single"); - }, [s, x, q]), te = Ct(() => !p || m ? null : (p === !0 ? [KT, YT, qT] : p).map((K) => K === KT ? { + }, [s, x, q]), re = St(() => !p || m ? null : (p === !0 ? [KT, YT, qT] : p).map((K) => K === KT ? { key: "all", text: T.selectionAll, onSelect() { @@ -36067,8 +36108,8 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = text: T.selectInvert, onSelect() { const ae = new Set(j); - w.forEach((re, le) => { - const ue = E(re, le), he = V.get(ue); + w.forEach((ne, le) => { + const ue = E(ne, le), he = V.get(ue); he != null && he.disabled || (ae.has(ue) ? ae.delete(ue) : ae.add(ue)); }); const G = Array.from(ae); @@ -36085,7 +36126,7 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = } } : K).map((K) => Object.assign(Object.assign({}, K), { onSelect: function() { - for (var ae, G, re = arguments.length, le = new Array(re), ue = 0; ue < re; ue++) + for (var ae, G, ne = arguments.length, le = new Array(ne), ue = 0; ue < ne; ue++) le[ue] = arguments[ue]; (G = K.onSelect) === null || G === void 0 || (ae = G).call.apply(ae, [K].concat(le)), M(null); } @@ -36095,11 +36136,11 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = if (!t) return process.env.NODE_ENV !== "production" && D(!Y.includes(ws), "usage", "`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."), Y.filter((we) => we !== ws); let ae = $e(Y); - const G = new Set(j), re = I.map(E).filter((we) => !V.get(we).disabled), le = re.every((we) => G.has(we)), ue = re.some((we) => G.has(we)), he = () => { + const G = new Set(j), ne = I.map(E).filter((we) => !V.get(we).disabled), le = ne.every((we) => G.has(we)), ue = ne.some((we) => G.has(we)), he = () => { const we = []; - le ? re.forEach((xe) => { + le ? ne.forEach((xe) => { G.delete(xe), we.push(xe); - }) : re.forEach((xe) => { + }) : ne.forEach((xe) => { G.has(xe) || (G.add(xe), we.push(xe)); }); const Ce = Array.from(G); @@ -36108,19 +36149,19 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = let fe, de; if (f !== "radio") { let we; - if (te) { + if (re) { const st = { getPopupContainer: _, - items: te.map((Xe, Ue) => { + items: re.map((Xe, Ue) => { const { - key: Ae, + key: Oe, text: Ke, onSelect: ht } = Xe; return { - key: Ae ?? Ue, + key: Oe ?? Ue, onClick: () => { - ht == null || ht(re); + ht == null || ht(ne); }, label: Ke }; @@ -36128,16 +36169,16 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = }; we = /* @__PURE__ */ S.createElement("div", { className: `${C}-selection-extra` - }, /* @__PURE__ */ S.createElement(HI, { + }, /* @__PURE__ */ S.createElement(HD, { menu: st, getPopupContainer: _ - }, /* @__PURE__ */ S.createElement("span", null, /* @__PURE__ */ S.createElement(yI, null)))); + }, /* @__PURE__ */ S.createElement("span", null, /* @__PURE__ */ S.createElement(yD, null)))); } const Ce = I.map((st, Xe) => { - const Ue = E(st, Xe), Ae = V.get(Ue) || {}; + const Ue = E(st, Xe), Oe = V.get(Ue) || {}; return Object.assign({ checked: G.has(Ue) - }, Ae); + }, Oe); }).filter((st) => { let { disabled: Xe @@ -36169,7 +36210,7 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = f === "radio" ? pe = (we, Ce, xe) => { const ze = E(Ce, xe), je = G.has(ze); return { - node: /* @__PURE__ */ S.createElement(Om, Object.assign({}, V.get(ze), { + node: /* @__PURE__ */ S.createElement(Fm, Object.assign({}, V.get(ze), { checked: je, onClick: (st) => st.stopPropagation(), onChange: (st) => { @@ -36181,10 +36222,10 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = } : pe = (we, Ce, xe) => { var ze; const je = E(Ce, xe), st = G.has(je), Xe = X.has(je), Ue = V.get(je); - let Ae; - return R === "nest" ? (Ae = Xe, process.env.NODE_ENV !== "production" && D(typeof (Ue == null ? void 0 : Ue.indeterminate) != "boolean", "usage", "set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")) : Ae = (ze = Ue == null ? void 0 : Ue.indeterminate) !== null && ze !== void 0 ? ze : Xe, { + let Oe; + return R === "nest" ? (Oe = Xe, process.env.NODE_ENV !== "production" && D(typeof (Ue == null ? void 0 : Ue.indeterminate) != "boolean", "usage", "set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")) : Oe = (ze = Ue == null ? void 0 : Ue.indeterminate) !== null && ze !== void 0 ? ze : Xe, { node: /* @__PURE__ */ S.createElement(Pd, Object.assign({}, Ue, { - indeterminate: Ae, + indeterminate: Oe, checked: st, skipGroup: !0, onClick: (Ke) => Ke.stopPropagation(), @@ -36193,27 +36234,27 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = nativeEvent: ht } = Ke; const { - shiftKey: Et - } = ht, hr = re.findIndex((Lt) => Lt === je), At = B.some((Lt) => re.includes(Lt)); - if (Et && y && At) { - const Lt = A(hr, re, G), Dt = Array.from(G); + shiftKey: Rt + } = ht, hr = ne.findIndex((Lt) => Lt === je), At = B.some((Lt) => ne.includes(Lt)); + if (Rt && y && At) { + const Lt = A(hr, ne, G), Dt = Array.from(G); d == null || d(!st, Dt.map((Mt) => x(Mt)), Lt.map((Mt) => x(Mt))), q(Dt, "multiple"); } else { const Lt = B; if (y) { - const Dt = st ? bs(Lt, je) : vl(Lt, je); + const Dt = st ? bs(Lt, je) : ml(Lt, je); J(je, !st, Dt, ht); } else { const Dt = df([].concat($e(Lt), [je]), !0, $, H), { checkedKeys: Mt, - halfCheckedKeys: mt + halfCheckedKeys: yt } = Dt; let Qe = Mt; if (st) { - const Rt = new Set(Mt); - Rt.delete(je), Qe = df(Array.from(Rt), { + const Pt = new Set(Mt); + Pt.delete(je), Qe = df(Array.from(Pt), { checked: !1, - halfCheckedKeys: mt + halfCheckedKeys: yt }, $, H).checkedKeys; } J(je, !st, Qe, ht); @@ -36235,7 +36276,7 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = if (!ae.includes(ws)) if (ae.findIndex((we) => { var Ce; - return ((Ce = we[Kg]) === null || Ce === void 0 ? void 0 : Ce.columnType) === "EXPAND_COLUMN"; + return ((Ce = we[qg]) === null || Ce === void 0 ? void 0 : Ce.columnType) === "EXPAND_COLUMN"; }) === 0) { const [we, ...Ce] = ae; ae = [we, ws].concat($e(Ce)); @@ -36245,7 +36286,7 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = process.env.NODE_ENV !== "production" && D(ae.filter((we) => we === ws).length <= 1, "usage", "Multiple `SELECTION_COLUMN` exist in `columns`."), ae = ae.filter((we, Ce) => we !== ws || Ce === be); const Me = ae[be - 1], Ve = ae[be + 1]; let oe = g; - oe === void 0 && ((Ve == null ? void 0 : Ve.fixed) !== void 0 ? oe = Ve.fixed : (Me == null ? void 0 : Me.fixed) !== void 0 && (oe = Me.fixed)), oe && Me && ((K = Me[Kg]) === null || K === void 0 ? void 0 : K.columnType) === "EXPAND_COLUMN" && Me.fixed === void 0 && (Me.fixed = oe); + oe === void 0 && ((Ve == null ? void 0 : Ve.fixed) !== void 0 ? oe = Ve.fixed : (Me == null ? void 0 : Me.fixed) !== void 0 && (oe = Me.fixed)), oe && Me && ((K = Me[qg]) === null || K === void 0 ? void 0 : K.columnType) === "EXPAND_COLUMN" && Me.fixed === void 0 && (Me.fixed = oe); const ye = ie(`${C}-selection-col`, { [`${C}-selection-col-with-dropdown`]: p && f === "checkbox" }), Ne = () => t != null && t.columnTitle ? typeof t.columnTitle == "function" ? t.columnTitle(de) : t.columnTitle : fe, ke = { @@ -36255,14 +36296,14 @@ const ws = {}, KT = "SELECT_ALL", YT = "SELECT_INVERT", qT = "SELECT_NONE", i$ = title: Ne(), render: _e, onCell: t.onCell, - [Kg]: { + [qg]: { className: ye } }; return ae.map((we) => we === ws ? ke : we); - }, [E, I, t, B, j, X, h, te, R, V, d, J, H]), j]; + }, [E, I, t, B, j, X, h, re, R, V, d, J, H]), j]; }; -function bwe(e, t) { +function Awe(e, t) { return e._antProxy = e._antProxy || {}, Object.keys(t).forEach((r) => { if (!(r in e._antProxy)) { const n = e[r]; @@ -36270,7 +36311,7 @@ function bwe(e, t) { } }), e; } -function wwe(e, t) { +function Owe(e, t) { return Zs(e, () => { const r = t(), { nativeElement: n @@ -36279,10 +36320,10 @@ function wwe(e, t) { get(i, o) { return r[o] ? r[o] : Reflect.get(i, o); } - }) : bwe(n, r); + }) : Awe(n, r); }); } -function xwe(e) { +function Lwe(e) { return function(r) { let { prefixCls: n, @@ -36307,7 +36348,7 @@ function xwe(e) { }); }; } -function Ewe(e) { +function Fwe(e) { return (r, n) => { const i = r.querySelector(`.${e}-container`); let o = n; @@ -36321,30 +36362,30 @@ function Ewe(e) { function Td(e, t) { return "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join(".") : e.dataIndex : t; } -function Bm(e, t) { +function Hm(e, t) { return t ? `${t}-${e}` : `${e}`; } -function pw(e, t) { +function vw(e, t) { return typeof e == "function" ? e(t) : e; } -function Rwe(e, t) { - const r = pw(e, t); +function Nwe(e, t) { + const r = vw(e, t); return Object.prototype.toString.call(r) === "[object Object]" ? "" : r; } -var Pwe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z" } }] }, name: "filter", theme: "filled" }, Twe = function(t, r) { +var kwe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z" } }] }, name: "filter", theme: "filled" }, $we = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Pwe + icon: kwe })); -}, Wj = /* @__PURE__ */ S.forwardRef(Twe); -process.env.NODE_ENV !== "production" && (Wj.displayName = "FilterFilled"); -function _we(e) { - const t = S.useRef(e), r = O9(); +}, Kj = /* @__PURE__ */ S.forwardRef($we); +process.env.NODE_ENV !== "production" && (Kj.displayName = "FilterFilled"); +function Bwe(e) { + const t = S.useRef(e), r = N9(); return [() => t.current, (n) => { t.current = n, r(); }]; } -function Mwe(e) { +function Vwe(e) { var t = e.dropPosition, r = e.dropLevelOffset, n = e.indent, i = { pointerEvents: "none", position: "absolute", @@ -36367,10 +36408,10 @@ function Mwe(e) { style: i }); } -function jj(e) { +function Yj(e) { if (e == null) throw new TypeError("Cannot destructure " + e); } -function Dwe(e, t) { +function Hwe(e, t) { var r = S.useState(!1), n = ce(r, 2), i = n[0], o = n[1]; Pr(function() { if (i) @@ -36383,8 +36424,8 @@ function Dwe(e, t) { }; }, []); } -var Iwe = ["className", "style", "motion", "motionNodes", "motionType", "onMotionStart", "onMotionEnd", "active", "treeNodeRequiredProps"], Uj = function(t, r) { - var n = t.className, i = t.style, o = t.motion, a = t.motionNodes, s = t.motionType, l = t.onMotionStart, c = t.onMotionEnd, u = t.active, d = t.treeNodeRequiredProps, h = Nt(t, Iwe), f = S.useState(!0), p = ce(f, 2), g = p[0], v = p[1], m = S.useContext(qI), y = m.prefixCls, C = a && s !== "hide"; +var zwe = ["className", "style", "motion", "motionNodes", "motionType", "onMotionStart", "onMotionEnd", "active", "treeNodeRequiredProps"], qj = function(t, r) { + var n = t.className, i = t.style, o = t.motion, a = t.motionNodes, s = t.motionType, l = t.onMotionStart, c = t.onMotionEnd, u = t.active, d = t.treeNodeRequiredProps, h = Nt(t, zwe), f = S.useState(!0), p = ce(f, 2), g = p[0], v = p[1], m = S.useContext(qD), y = m.prefixCls, C = a && s !== "hide"; Pr(function() { a && C !== g && v(C); }, [a]); @@ -36393,7 +36434,7 @@ var Iwe = ["className", "style", "motion", "motionNodes", "motionType", "onMotio }, w = S.useRef(!1), x = function() { a && !w.current && (w.current = !0, c()); }; - Dwe(b, x); + Hwe(b, x); var E = function(P) { C === P && x(); }; @@ -36410,9 +36451,9 @@ var Iwe = ["className", "style", "motion", "motionNodes", "motionType", "onMotio className: ie("".concat(y, "-treenode-motion"), T), style: _ }, a.map(function(D) { - var A = Object.assign({}, (jj(D.data), D.data)), M = D.title, O = D.key, L = D.isStart, N = D.isEnd; + var A = Object.assign({}, (Yj(D.data), D.data)), M = D.title, O = D.key, L = D.isStart, N = D.isEnd; delete A.children; - var F = jg(O, d); + var F = Kg(O, d); return /* @__PURE__ */ S.createElement(Of, Te({}, A, F, { title: M, active: u, @@ -36430,9 +36471,9 @@ var Iwe = ["className", "style", "motion", "motionNodes", "motionType", "onMotio active: u })); }; -Uj.displayName = "MotionTreeNode"; -var Awe = /* @__PURE__ */ S.forwardRef(Uj); -function Owe() { +qj.displayName = "MotionTreeNode"; +var Gwe = /* @__PURE__ */ S.forwardRef(qj); +function Wwe() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = e.length, n = t.length; if (Math.abs(r - n) !== 1) return { @@ -36457,7 +36498,7 @@ function Owe() { key: i(t, e) }; } -function o$(e, t, r) { +function s$(e, t, r) { var n = e.findIndex(function(s) { return s.key === r; }), i = e[n + 1], o = t.findIndex(function(s) { @@ -36471,7 +36512,7 @@ function o$(e, t, r) { } return t.slice(o + 1); } -var Lwe = ["prefixCls", "data", "selectable", "checkable", "expandedKeys", "selectedKeys", "checkedKeys", "loadedKeys", "loadingKeys", "halfCheckedKeys", "keyEntities", "disabled", "dragging", "dragOverNodeKey", "dropPosition", "motion", "height", "itemHeight", "virtual", "focusable", "activeItem", "focused", "tabIndex", "onKeyDown", "onFocus", "onBlur", "onActiveChange", "onListChangeStart", "onListChangeEnd"], a$ = { +var jwe = ["prefixCls", "data", "selectable", "checkable", "expandedKeys", "selectedKeys", "checkedKeys", "loadedKeys", "loadingKeys", "halfCheckedKeys", "keyEntities", "disabled", "dragging", "dragOverNodeKey", "dropPosition", "motion", "height", "itemHeight", "virtual", "focusable", "activeItem", "focused", "tabIndex", "onKeyDown", "onFocus", "onBlur", "onActiveChange", "onListChangeStart", "onListChangeEnd"], l$ = { width: 0, height: 0, display: "flex", @@ -36480,20 +36521,20 @@ var Lwe = ["prefixCls", "data", "selectable", "checkable", "expandedKeys", "sele border: 0, padding: 0, margin: 0 -}, Fwe = function() { +}, Uwe = function() { }, _d = "RC_TREE_MOTION_".concat(Math.random()), XT = { key: _d -}, Kj = { +}, Xj = { key: _d, level: 0, index: 0, pos: "0", node: XT, nodes: [XT] -}, s$ = { +}, c$ = { parent: null, children: [], - pos: Kj.pos, + pos: Xj.pos, data: XT, title: null, key: _d, @@ -36501,22 +36542,22 @@ var Lwe = ["prefixCls", "data", "selectable", "checkable", "expandedKeys", "sele isStart: [], isEnd: [] }; -function l$(e, t, r, n) { +function u$(e, t, r, n) { return t === !1 || !r ? e : e.slice(0, Math.ceil(r / n) + 1); } -function c$(e) { +function d$(e) { var t = e.key, r = e.pos; - return Lm(t, r); + return Nm(t, r); } -function Nwe(e) { +function Kwe(e) { for (var t = String(e.data.key), r = e; r.parent; ) r = r.parent, t = "".concat(r.data.key, " > ").concat(t); return t; } -var Yj = /* @__PURE__ */ S.forwardRef(function(e, t) { +var Zj = /* @__PURE__ */ S.forwardRef(function(e, t) { var r = e.prefixCls, n = e.data; e.selectable, e.checkable; - var i = e.expandedKeys, o = e.selectedKeys, a = e.checkedKeys, s = e.loadedKeys, l = e.loadingKeys, c = e.halfCheckedKeys, u = e.keyEntities, d = e.disabled, h = e.dragging, f = e.dragOverNodeKey, p = e.dropPosition, g = e.motion, v = e.height, m = e.itemHeight, y = e.virtual, C = e.focusable, b = e.activeItem, w = e.focused, x = e.tabIndex, E = e.onKeyDown, R = e.onFocus, P = e.onBlur, T = e.onActiveChange, _ = e.onListChangeStart, D = e.onListChangeEnd, A = Nt(e, Lwe), M = S.useRef(null), O = S.useRef(null); + var i = e.expandedKeys, o = e.selectedKeys, a = e.checkedKeys, s = e.loadedKeys, l = e.loadingKeys, c = e.halfCheckedKeys, u = e.keyEntities, d = e.disabled, h = e.dragging, f = e.dragOverNodeKey, p = e.dropPosition, g = e.motion, v = e.height, m = e.itemHeight, y = e.virtual, C = e.focusable, b = e.activeItem, w = e.focused, x = e.tabIndex, E = e.onKeyDown, R = e.onFocus, P = e.onBlur, T = e.onActiveChange, _ = e.onListChangeStart, D = e.onListChangeEnd, A = Nt(e, jwe), M = S.useRef(null), O = S.useRef(null); S.useImperativeHandle(t, function() { return { scrollTo: function(pe) { @@ -36527,28 +36568,28 @@ var Yj = /* @__PURE__ */ S.forwardRef(function(e, t) { } }; }); - var L = S.useState(i), N = ce(L, 2), F = N[0], $ = N[1], I = S.useState(n), V = ce(I, 2), H = V[0], B = V[1], W = S.useState(n), j = ce(W, 2), X = j[0], q = j[1], J = S.useState([]), te = ce(J, 2), Q = te[0], Y = te[1], K = S.useState(null), ae = ce(K, 2), G = ae[0], re = ae[1], le = S.useRef(n); + var L = S.useState(i), N = ce(L, 2), F = N[0], $ = N[1], I = S.useState(n), V = ce(I, 2), H = V[0], B = V[1], W = S.useState(n), j = ce(W, 2), X = j[0], q = j[1], J = S.useState([]), re = ce(J, 2), Q = re[0], Y = re[1], K = S.useState(null), ae = ce(K, 2), G = ae[0], ne = ae[1], le = S.useRef(n); le.current = n; function ue() { var de = le.current; - B(de), q(de), Y([]), re(null), D(); + B(de), q(de), Y([]), ne(null), D(); } Pr(function() { $(i); - var de = Owe(F, i); + var de = Wwe(F, i); if (de.key !== null) if (de.add) { var pe = H.findIndex(function(ye) { var Ne = ye.key; return Ne === de.key; - }), _e = l$(o$(H, n, de.key), y, v, m), be = H.slice(); - be.splice(pe + 1, 0, s$), q(be), Y(_e), re("show"); + }), _e = u$(s$(H, n, de.key), y, v, m), be = H.slice(); + be.splice(pe + 1, 0, c$), q(be), Y(_e), ne("show"); } else { var Me = n.findIndex(function(ye) { var Ne = ye.key; return Ne === de.key; - }), Ve = l$(o$(n, H, de.key), y, v, m), oe = n.slice(); - oe.splice(Me + 1, 0, s$), q(oe), Y(Ve), re("hide"); + }), Ve = u$(s$(n, H, de.key), y, v, m), oe = n.slice(); + oe.splice(Me + 1, 0, c$), q(oe), Y(Ve), ne("hide"); } else H !== n && (B(n), q(n)); }, [i, n]), S.useEffect(function() { @@ -36566,17 +36607,17 @@ var Yj = /* @__PURE__ */ S.forwardRef(function(e, t) { keyEntities: u }; return /* @__PURE__ */ S.createElement(S.Fragment, null, w && b && /* @__PURE__ */ S.createElement("span", { - style: a$, + style: l$, "aria-live": "assertive" - }, Nwe(b)), /* @__PURE__ */ S.createElement("div", null, /* @__PURE__ */ S.createElement("input", { - style: a$, + }, Kwe(b)), /* @__PURE__ */ S.createElement("div", null, /* @__PURE__ */ S.createElement("input", { + style: l$, disabled: C === !1 || d, tabIndex: C !== !1 ? x : null, onKeyDown: E, onFocus: R, onBlur: P, value: "", - onChange: Fwe, + onChange: Uwe, "aria-label": "for screen reader" })), /* @__PURE__ */ S.createElement("div", { className: "".concat(r, "-treenode"), @@ -36595,9 +36636,9 @@ var Yj = /* @__PURE__ */ S.forwardRef(function(e, t) { }, /* @__PURE__ */ S.createElement("div", { ref: O, className: "".concat(r, "-indent-unit") - }))), /* @__PURE__ */ S.createElement(Yb, Te({}, A, { + }))), /* @__PURE__ */ S.createElement(Xb, Te({}, A, { data: he, - itemKey: c$, + itemKey: d$, height: v, fullHeight: !1, virtual: y, @@ -36609,14 +36650,14 @@ var Yj = /* @__PURE__ */ S.forwardRef(function(e, t) { return !be.has(Ve); }); Me.some(function(Ve) { - return c$(Ve) === _d; + return d$(Ve) === _d; }) && ue(); } }), function(de) { - var pe = de.pos, _e = Object.assign({}, (jj(de.data), de.data)), be = de.title, Me = de.key, Ve = de.isStart, oe = de.isEnd, ye = Lm(Me, pe); + var pe = de.pos, _e = Object.assign({}, (Yj(de.data), de.data)), be = de.title, Me = de.key, Ve = de.isStart, oe = de.isEnd, ye = Nm(Me, pe); delete _e.key, delete _e.children; - var Ne = jg(ye, fe); - return /* @__PURE__ */ S.createElement(Awe, Te({}, _e, Ne, { + var Ne = Kg(ye, fe); + return /* @__PURE__ */ S.createElement(Gwe, Te({}, _e, Ne, { title: be, active: !!b && Me === b.key, pos: pe, @@ -36635,8 +36676,8 @@ var Yj = /* @__PURE__ */ S.forwardRef(function(e, t) { })); })); }); -Yj.displayName = "NodeList"; -var kwe = 10, ZI = /* @__PURE__ */ function(e) { +Zj.displayName = "NodeList"; +var Ywe = 10, ZD = /* @__PURE__ */ function(e) { Qs(r, e); var t = Js(r); function r() { @@ -36689,7 +36730,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { var p = bs(u, f); n.setState({ draggingNodeKey: f, - dragChildrenKeys: vwe(f, d), + dragChildrenKeys: Twe(f, d), indent: n.listRef.current.getIndentWidth() }), n.setExpandedKeys(p), window.addEventListener("dragend", n.onWindowDragEnd), h == null || h({ event: s, @@ -36701,7 +36742,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { n.resetDragState(); return; } - var P = r$(s, R, l, p, n.dragStartMousePosition, y, f, d, u, C), T = P.dropPosition, _ = P.dropLevelOffset, D = P.dropTargetKey, A = P.dropContainerKey, M = P.dropTargetPos, O = P.dropAllowed, L = P.dragOverNodeKey; + var P = i$(s, R, l, p, n.dragStartMousePosition, y, f, d, u, C), T = P.dropPosition, _ = P.dropLevelOffset, D = P.dropTargetKey, A = P.dropContainerKey, M = P.dropTargetPos, O = P.dropAllowed, L = P.dragOverNodeKey; if ( // don't allow drop inside its children h.indexOf(D) !== -1 || // don't allow drop when drop is not allowed caculated by calcDropPosition @@ -36715,7 +36756,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { }), R.props.eventKey !== l.props.eventKey && (s.persist(), n.delayedDragEnterLogic[w] = window.setTimeout(function() { if (n.state.draggingNodeKey !== null) { var N = $e(u), F = fo(d, l.props.eventKey); - F && (F.children || []).length && (N = vl(u, l.props.eventKey)), "expandedKeys" in n.props || n.setExpandedKeys(N), m == null || m(N, { + F && (F.children || []).length && (N = ml(u, l.props.eventKey)), "expandedKeys" in n.props || n.setExpandedKeys(N), m == null || m(N, { node: Kn(l.props), expanded: !0, nativeEvent: s.nativeEvent @@ -36741,7 +36782,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { }), U(Ge(n), "onNodeDragOver", function(s, l) { var c = n.state, u = c.dragChildrenKeys, d = c.flattenNodes, h = c.keyEntities, f = c.expandedKeys, p = c.indent, g = n.props, v = g.onDragOver, m = g.allowDrop, y = g.direction, C = Ge(n), b = C.dragNode; if (b) { - var w = r$(s, b, l, p, n.dragStartMousePosition, m, d, h, f, y), x = w.dropPosition, E = w.dropLevelOffset, R = w.dropTargetKey, P = w.dropContainerKey, T = w.dropAllowed, _ = w.dropTargetPos, D = w.dragOverNodeKey; + var w = i$(s, b, l, p, n.dragStartMousePosition, m, d, h, f, y), x = w.dropPosition, E = w.dropLevelOffset, R = w.dropTargetKey, P = w.dropContainerKey, T = w.dropAllowed, _ = w.dropTargetPos, D = w.dragOverNodeKey; u.indexOf(R) !== -1 || !T || (b.props.eventKey === R && E === 0 ? n.state.dropPosition === null && n.state.dropLevelOffset === null && n.state.dropTargetKey === null && n.state.dropContainerKey === null && n.state.dropTargetPos === null && n.state.dropAllowed === !1 && n.state.dragOverNodeKey === null || n.resetDragState() : x === n.state.dropPosition && E === n.state.dropLevelOffset && R === n.state.dropTargetKey && P === n.state.dropContainerKey && _ === n.state.dropTargetPos && T === n.state.dropAllowed && D === n.state.dragOverNodeKey || n.setState({ dropPosition: x, dropLevelOffset: E, @@ -36779,12 +36820,12 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { if (n.setState({ dragOverNodeKey: null }), n.cleanDragState(), p !== null) { - var y = Z(Z({}, jg(p, n.getTreeNodeRequiredProps())), {}, { + var y = Z(Z({}, Kg(p, n.getTreeNodeRequiredProps())), {}, { active: ((c = n.getActiveItem()) === null || c === void 0 ? void 0 : c.key) === p, data: fo(n.state.keyEntities, p).node }), C = h.indexOf(p) !== -1; Tt(!C, "Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue."); - var b = XI(g), w = { + var b = XD(g), w = { event: s, node: Kn(y), dragNode: n.dragNode ? Kn(n.dragNode.props) : null, @@ -36811,10 +36852,10 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { if (!(p || s.shiftKey || s.metaKey || s.ctrlKey)) { var g = d.filter(function(m) { return m.key === f; - })[0], v = Kn(Z(Z({}, jg(f, n.getTreeNodeRequiredProps())), {}, { + })[0], v = Kn(Z(Z({}, Kg(f, n.getTreeNodeRequiredProps())), {}, { data: g.data })); - n.setExpandedKeys(h ? bs(u, f) : vl(u, f)), n.onNodeExpand(s, v); + n.setExpandedKeys(h ? bs(u, f) : ml(u, f)), n.onNodeExpand(s, v); } }), U(Ge(n), "onNodeClick", function(s, l) { var c = n.props, u = c.onClick, d = c.expandAction; @@ -36824,7 +36865,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { d === "doubleClick" && n.triggerExpandActionExpand(s, l), u == null || u(s, l); }), U(Ge(n), "onNodeSelect", function(s, l) { var c = n.state.selectedKeys, u = n.state, d = u.keyEntities, h = u.fieldNames, f = n.props, p = f.onSelect, g = f.multiple, v = l.selected, m = l[h.key], y = !v; - y ? g ? c = vl(c, m) : c = [m] : c = bs(c, m); + y ? g ? c = ml(c, m) : c = [m] : c = bs(c, m); var C = c.map(function(b) { var w = fo(d, b); return w ? w.node : null; @@ -36848,7 +36889,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { nativeEvent: s.nativeEvent }; if (g) { - var b = c ? vl(h, m) : bs(h, m), w = bs(f, m); + var b = c ? ml(h, m) : bs(h, m), w = bs(f, m); y = { checked: b, halfChecked: w @@ -36898,7 +36939,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { return null; var E = w(s); return E.then(function() { - var R = n.state.loadedKeys, P = vl(R, c); + var R = n.state.loadedKeys, P = ml(R, c); x == null || x(P, { event: "load", node: s @@ -36914,15 +36955,15 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { return { loadingKeys: bs(T.loadingKeys, c) }; - }), n.loadingRetryTimes[c] = (n.loadingRetryTimes[c] || 0) + 1, n.loadingRetryTimes[c] >= kwe) { + }), n.loadingRetryTimes[c] = (n.loadingRetryTimes[c] || 0) + 1, n.loadingRetryTimes[c] >= Ywe) { var P = n.state.loadedKeys; Tt(!1, "Retry for `loadData` many times but still failed. No more retry."), n.setUncontrolledState({ - loadedKeys: vl(P, c) + loadedKeys: ml(P, c) }), f(); } p(R); }), { - loadingKeys: vl(C, c) + loadingKeys: ml(C, c) }; }); }); @@ -36986,7 +37027,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { var c = n.state.expandedKeys, u = n.state, d = u.listChanging, h = u.fieldNames, f = n.props, p = f.onExpand, g = f.loadData, v = l.expanded, m = l[h.key]; if (!d) { var y = c.indexOf(m), C = !v; - if (Tt(v && y !== -1 || !v && y === -1, "Expand state not sync with index check"), C ? c = vl(c, m) : c = bs(c, m), n.setExpandedKeys(c), p == null || p(c, { + if (Tt(v && y !== -1 || !v && y === -1, "Expand state not sync with index check"), C ? c = ml(c, m) : c = bs(c, m), n.setExpandedKeys(c), p == null || p(c, { node: l, expanded: C, nativeEvent: s.nativeEvent @@ -37042,32 +37083,32 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { }), U(Ge(n), "onKeyDown", function(s) { var l = n.state, c = l.activeKey, u = l.expandedKeys, d = l.checkedKeys, h = l.fieldNames, f = n.props, p = f.onKeyDown, g = f.checkable, v = f.selectable; switch (s.which) { - case Oe.UP: { + case Le.UP: { n.offsetActiveKey(-1), s.preventDefault(); break; } - case Oe.DOWN: { + case Le.DOWN: { n.offsetActiveKey(1), s.preventDefault(); break; } } var m = n.getActiveItem(); if (m && m.data) { - var y = n.getTreeNodeRequiredProps(), C = m.data.isLeaf === !1 || !!(m.data[h.children] || []).length, b = Kn(Z(Z({}, jg(c, y)), {}, { + var y = n.getTreeNodeRequiredProps(), C = m.data.isLeaf === !1 || !!(m.data[h.children] || []).length, b = Kn(Z(Z({}, Kg(c, y)), {}, { data: m.data, active: !0 })); switch (s.which) { - case Oe.LEFT: { + case Le.LEFT: { C && u.includes(c) ? n.onNodeExpand({}, b) : m.parent && n.onActiveChange(m.parent.key), s.preventDefault(); break; } - case Oe.RIGHT: { + case Le.RIGHT: { C && !u.includes(c) ? n.onNodeExpand({}, b) : m.children && m.children.length && n.onActiveChange(m.children[0].key), s.preventDefault(); break; } - case Oe.ENTER: - case Oe.SPACE: { + case Le.ENTER: + case Le.SPACE: { g && !b.disabled && b.checkable !== !1 && !b.disableCheckbox ? n.onNodeCheck({}, b, !d.includes(c)) : !g && v && !b.disabled && b.selectable !== !1 && n.onNodeSelect({}, b); break; } @@ -37132,13 +37173,13 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { }, { key: "render", value: function() { - var i = this.state, o = i.focused, a = i.flattenNodes, s = i.keyEntities, l = i.draggingNodeKey, c = i.activeKey, u = i.dropLevelOffset, d = i.dropContainerKey, h = i.dropTargetKey, f = i.dropPosition, p = i.dragOverNodeKey, g = i.indent, v = this.props, m = v.prefixCls, y = v.className, C = v.style, b = v.showLine, w = v.focusable, x = v.tabIndex, E = x === void 0 ? 0 : x, R = v.selectable, P = v.showIcon, T = v.icon, _ = v.switcherIcon, D = v.draggable, A = v.checkable, M = v.checkStrictly, O = v.disabled, L = v.motion, N = v.loadData, F = v.filterTreeNode, $ = v.height, I = v.itemHeight, V = v.virtual, H = v.titleRender, B = v.dropIndicatorRender, W = v.onContextMenu, j = v.onScroll, X = v.direction, q = v.rootClassName, J = v.rootStyle, te = Ji(this.props, { + var i = this.state, o = i.focused, a = i.flattenNodes, s = i.keyEntities, l = i.draggingNodeKey, c = i.activeKey, u = i.dropLevelOffset, d = i.dropContainerKey, h = i.dropTargetKey, f = i.dropPosition, p = i.dragOverNodeKey, g = i.indent, v = this.props, m = v.prefixCls, y = v.className, C = v.style, b = v.showLine, w = v.focusable, x = v.tabIndex, E = x === void 0 ? 0 : x, R = v.selectable, P = v.showIcon, T = v.icon, _ = v.switcherIcon, D = v.draggable, A = v.checkable, M = v.checkStrictly, O = v.disabled, L = v.motion, N = v.loadData, F = v.filterTreeNode, $ = v.height, I = v.itemHeight, V = v.virtual, H = v.titleRender, B = v.dropIndicatorRender, W = v.onContextMenu, j = v.onScroll, X = v.direction, q = v.rootClassName, J = v.rootStyle, re = Ji(this.props, { aria: !0, data: !0 }), Q; return D && (pt(D) === "object" ? Q = D : typeof D == "function" ? Q = { nodeDraggable: D - } : Q = {}), /* @__PURE__ */ S.createElement(qI.Provider, { + } : Q = {}), /* @__PURE__ */ S.createElement(qD.Provider, { value: { prefixCls: m, selectable: R, @@ -37182,7 +37223,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { role: "tree", className: ie(m, y, q, U(U(U({}, "".concat(m, "-show-line"), b), "".concat(m, "-focused"), o), "".concat(m, "-active-focused"), c !== null)), style: J - }, /* @__PURE__ */ S.createElement(Yj, Te({ + }, /* @__PURE__ */ S.createElement(Zj, Te({ ref: this.listRef, prefixCls: m, style: C, @@ -37207,7 +37248,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { onListChangeEnd: this.onListChangeEnd, onContextMenu: W, onScroll: j - }, this.getTreeNodeRequiredProps(), te)))); + }, this.getTreeNodeRequiredProps(), re)))); } }], [{ key: "getDerivedStateFromProps", @@ -37219,12 +37260,12 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { return !a && x in i || a && a[x] !== i[x]; } var c, u = o.fieldNames; - if (l("fieldNames") && (u = Af(i.fieldNames), s.fieldNames = u), l("treeData") ? c = i.treeData : l("children") && (Tt(!1, "`children` of Tree is deprecated. Please use `treeData` instead."), c = x7(i.children)), c) { + if (l("fieldNames") && (u = Af(i.fieldNames), s.fieldNames = u), l("treeData") ? c = i.treeData : l("children") && (Tt(!1, "`children` of Tree is deprecated. Please use `treeData` instead."), c = P7(i.children)), c) { s.treeData = c; - var d = kI(c, { + var d = kD(c, { fieldNames: u }); - s.keyEntities = Z(U({}, _d, Kj), d.keyEntities), process.env.NODE_ENV !== "production" && bye(c, u); + s.keyEntities = Z(U({}, _d, Xj), d.keyEntities), process.env.NODE_ENV !== "production" && Aye(c, u); } var h = s.keyEntities || o.keyEntities; if (l("expandedKeys") || a && l("autoExpandParent")) @@ -37239,7 +37280,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { var p = Q1(c || o.treeData, s.expandedKeys || o.expandedKeys, u); s.flattenNodes = p; } - if (i.selectable && (l("selectedKeys") ? s.selectedKeys = n$(i.selectedKeys, i) : !a && i.defaultSelectedKeys && (s.selectedKeys = n$(i.defaultSelectedKeys, i))), i.checkable) { + if (i.selectable && (l("selectedKeys") ? s.selectedKeys = o$(i.selectedKeys, i) : !a && i.defaultSelectedKeys && (s.selectedKeys = o$(i.defaultSelectedKeys, i))), i.checkable) { var g; if (l("checkedKeys") ? g = sx(i.checkedKeys) || {} : !a && i.defaultCheckedKeys ? g = sx(i.defaultCheckedKeys) || {} : c && (g = sx(i.checkedKeys) || { checkedKeys: o.checkedKeys, @@ -37257,7 +37298,7 @@ var kwe = 10, ZI = /* @__PURE__ */ function(e) { } }]), r; }(S.Component); -U(ZI, "defaultProps", { +U(ZD, "defaultProps", { prefixCls: "rc-tree", showLine: !1, showIcon: !0, @@ -37273,49 +37314,49 @@ U(ZI, "defaultProps", { defaultExpandedKeys: [], defaultCheckedKeys: [], defaultSelectedKeys: [], - dropIndicatorRender: Mwe, + dropIndicatorRender: Vwe, allowDrop: function() { return !0; }, expandAction: !1 }); -U(ZI, "TreeNode", Of); -var $we = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z" } }] }, name: "file", theme: "outlined" }, Bwe = function(t, r) { +U(ZD, "TreeNode", Of); +var qwe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z" } }] }, name: "file", theme: "outlined" }, Xwe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: $we + icon: qwe })); -}, QI = /* @__PURE__ */ S.forwardRef(Bwe); -process.env.NODE_ENV !== "production" && (QI.displayName = "FileOutlined"); -var Vwe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z" } }] }, name: "folder-open", theme: "outlined" }, Hwe = function(t, r) { +}, QD = /* @__PURE__ */ S.forwardRef(Xwe); +process.env.NODE_ENV !== "production" && (QD.displayName = "FileOutlined"); +var Zwe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z" } }] }, name: "folder-open", theme: "outlined" }, Qwe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Vwe + icon: Zwe })); -}, qj = /* @__PURE__ */ S.forwardRef(Hwe); -process.env.NODE_ENV !== "production" && (qj.displayName = "FolderOpenOutlined"); -var zwe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z" } }] }, name: "folder", theme: "outlined" }, Gwe = function(t, r) { +}, Qj = /* @__PURE__ */ S.forwardRef(Qwe); +process.env.NODE_ENV !== "production" && (Qj.displayName = "FolderOpenOutlined"); +var Jwe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z" } }] }, name: "folder", theme: "outlined" }, e1e = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: zwe + icon: Jwe })); -}, Xj = /* @__PURE__ */ S.forwardRef(Gwe); -process.env.NODE_ENV !== "production" && (Xj.displayName = "FolderOutlined"); -var Wwe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" } }] }, name: "holder", theme: "outlined" }, jwe = function(t, r) { +}, Jj = /* @__PURE__ */ S.forwardRef(e1e); +process.env.NODE_ENV !== "production" && (Jj.displayName = "FolderOutlined"); +var t1e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" } }] }, name: "holder", theme: "outlined" }, r1e = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Wwe + icon: t1e })); -}, Zj = /* @__PURE__ */ S.forwardRef(jwe); -process.env.NODE_ENV !== "production" && (Zj.displayName = "HolderOutlined"); -const Uwe = new _r("ant-tree-node-fx-do-not-use", { +}, eU = /* @__PURE__ */ S.forwardRef(r1e); +process.env.NODE_ENV !== "production" && (eU.displayName = "HolderOutlined"); +const n1e = new _r("ant-tree-node-fx-do-not-use", { "0%": { opacity: 0 }, "100%": { opacity: 1 } -}), Kwe = (e, t) => ({ +}), i1e = (e, t) => ({ [`.${e}-switcher-icon`]: { display: "inline-block", fontSize: 10, @@ -37324,7 +37365,7 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { transition: `transform ${t.motionDurationSlow}` } } -}), Ywe = (e, t) => ({ +}), o1e = (e, t) => ({ [`.${e}-drop-indicator`]: { position: "absolute", // it should displayed over the following node @@ -37340,12 +37381,12 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { width: 8, height: 8, backgroundColor: "transparent", - border: `${ee(t.lineWidthBold)} solid ${t.colorPrimary}`, + border: `${te(t.lineWidthBold)} solid ${t.colorPrimary}`, borderRadius: "50%", content: '""' } } -}), qwe = (e, t) => { +}), a1e = (e, t) => { const { treeCls: r, treeNodeCls: n, @@ -37394,7 +37435,7 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { insetInlineStart: 0, border: `1px solid ${t.colorPrimary}`, opacity: 0, - animationName: Uwe, + animationName: n1e, animationDuration: t.motionDurationSlow, animationPlayState: "running", animationFillMode: "forwards", @@ -37408,7 +37449,7 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { [`${n}`]: { display: "flex", alignItems: "flex-start", - padding: `0 0 ${ee(i)} 0`, + padding: `0 0 ${te(i)} 0`, outline: "none", "&-rtl": { direction: "rtl" @@ -37437,7 +37478,7 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { // https://github.com/ant-design/ant-design/issues/41915 flexShrink: 0, width: o, - lineHeight: `${ee(o)}`, + lineHeight: `${te(o)}`, textAlign: "center", visibility: "visible", opacity: 0.2, @@ -37468,13 +37509,13 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { visibility: "hidden" }, // >>> Switcher - [`${r}-switcher`]: Object.assign(Object.assign({}, Kwe(e, t)), { + [`${r}-switcher`]: Object.assign(Object.assign({}, i1e(e, t)), { position: "relative", flex: "none", alignSelf: "stretch", width: o, margin: 0, - lineHeight: `${ee(o)}`, + lineHeight: `${te(o)}`, textAlign: "center", cursor: "pointer", userSelect: "none", @@ -37535,9 +37576,9 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { zIndex: "auto", minHeight: o, margin: 0, - padding: `0 ${ee(t.calc(t.paddingXS).div(2).equal())}`, + padding: `0 ${te(t.calc(t.paddingXS).div(2).equal())}`, color: "inherit", - lineHeight: `${ee(o)}`, + lineHeight: `${te(o)}`, background: "transparent", borderRadius: t.borderRadius, cursor: "pointer", @@ -37553,7 +37594,7 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { display: "inline-block", width: o, height: o, - lineHeight: `${ee(o)}`, + lineHeight: `${te(o)}`, textAlign: "center", verticalAlign: "top", "&:empty": { @@ -37567,9 +37608,9 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { }, // ==================== Draggable ===================== [`${r}-node-content-wrapper`]: Object.assign({ - lineHeight: `${ee(o)}`, + lineHeight: `${te(o)}`, userSelect: "none" - }, Ywe(e, t)), + }, o1e(e, t)), [`${n}.drop-container`]: { "> [draggable]": { boxShadow: `0 0 0 2px ${t.colorPrimary}` @@ -37612,14 +37653,14 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { "&:before": { top: "auto !important", bottom: "auto !important", - height: `${ee(t.calc(o).div(2).equal())} !important` + height: `${te(t.calc(o).div(2).equal())} !important` } } } } }) }; -}, Xwe = (e) => { +}, s1e = (e) => { const { treeCls: t, treeNodeCls: r, @@ -37686,7 +37727,7 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { } } }; -}, Zwe = (e, t) => { +}, l1e = (e, t) => { const r = `.${e}`, n = `${r}-treenode`, i = t.calc(t.paddingXS).div(2).equal(), o = fr(t, { treeCls: r, treeNodeCls: n, @@ -37694,11 +37735,11 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { }); return [ // Basic - qwe(e, o), + a1e(e, o), // Directory - Xwe(o) + s1e(o) ]; -}, Qwe = (e) => { +}, c1e = (e) => { const { controlHeightSM: t } = e; @@ -37707,24 +37748,24 @@ const Uwe = new _r("ant-tree-node-fx-do-not-use", { nodeHoverBg: e.controlItemBgHover, nodeSelectedBg: e.controlItemBgActive }; -}, Jwe = (e) => { +}, u1e = (e) => { const { colorTextLightSolid: t, colorPrimary: r } = e; - return Object.assign(Object.assign({}, Qwe(e)), { + return Object.assign(Object.assign({}, c1e(e)), { directoryNodeSelectedColor: t, directoryNodeSelectedBg: r }); -}, e1e = Ur("Tree", (e, t) => { +}, d1e = Kr("Tree", (e, t) => { let { prefixCls: r } = t; return [{ - [e.componentCls]: R7(`${r}-checkbox`, e) - }, Zwe(r, e), zW(e)]; -}, Jwe), u$ = 4; -function t1e(e) { + [e.componentCls]: _7(`${r}-checkbox`, e) + }, l1e(r, e), jW(e)]; +}, u1e), h$ = 4; +function h1e(e) { const { dropPosition: t, dropLevelOffset: r, @@ -37732,7 +37773,7 @@ function t1e(e) { indent: i, direction: o = "ltr" } = e, a = o === "ltr" ? "left" : "right", s = o === "ltr" ? "right" : "left", l = { - [a]: -r * i + u$, + [a]: -r * i + h$, [s]: 0 }; switch (t) { @@ -37743,7 +37784,7 @@ function t1e(e) { l.bottom = -3; break; default: - l.bottom = -3, l[a] = i + u$; + l.bottom = -3, l[a] = i + h$; break; } return /* @__PURE__ */ k.createElement("div", { @@ -37751,28 +37792,28 @@ function t1e(e) { className: `${n}-drop-indicator` }); } -var r1e = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "filled" }, n1e = function(t, r) { +var f1e = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "filled" }, p1e = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: r1e + icon: f1e })); -}, Qj = /* @__PURE__ */ S.forwardRef(n1e); -process.env.NODE_ENV !== "production" && (Qj.displayName = "CaretDownFilled"); -var i1e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" } }, { tag: "path", attrs: { d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, name: "minus-square", theme: "outlined" }, o1e = function(t, r) { +}, tU = /* @__PURE__ */ S.forwardRef(p1e); +process.env.NODE_ENV !== "production" && (tU.displayName = "CaretDownFilled"); +var g1e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" } }, { tag: "path", attrs: { d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, name: "minus-square", theme: "outlined" }, v1e = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: i1e + icon: g1e })); -}, Jj = /* @__PURE__ */ S.forwardRef(o1e); -process.env.NODE_ENV !== "production" && (Jj.displayName = "MinusSquareOutlined"); -var a1e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" } }, { tag: "path", attrs: { d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, name: "plus-square", theme: "outlined" }, s1e = function(t, r) { +}, rU = /* @__PURE__ */ S.forwardRef(v1e); +process.env.NODE_ENV !== "production" && (rU.displayName = "MinusSquareOutlined"); +var m1e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" } }, { tag: "path", attrs: { d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, name: "plus-square", theme: "outlined" }, y1e = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: a1e + icon: m1e })); -}, eU = /* @__PURE__ */ S.forwardRef(s1e); -process.env.NODE_ENV !== "production" && (eU.displayName = "PlusSquareOutlined"); -const l1e = (e) => { +}, nU = /* @__PURE__ */ S.forwardRef(y1e); +process.env.NODE_ENV !== "production" && (nU.displayName = "PlusSquareOutlined"); +const C1e = (e) => { const { prefixCls: t, switcherIcon: r, @@ -37784,7 +37825,7 @@ const l1e = (e) => { loading: s } = n; if (s) - return /* @__PURE__ */ S.createElement(Jf, { + return /* @__PURE__ */ S.createElement(tp, { className: `${t}-switcher-loading-icon` }); let l; @@ -37797,7 +37838,7 @@ const l1e = (e) => { className: ie(d.props.className || "", h) }) : d; } - return l ? /* @__PURE__ */ S.createElement(QI, { + return l ? /* @__PURE__ */ S.createElement(QD, { className: `${t}-switcher-line-icon` }) : /* @__PURE__ */ S.createElement("span", { className: `${t}-switcher-leaf-line` @@ -37806,14 +37847,14 @@ const l1e = (e) => { const c = `${t}-switcher-icon`, u = typeof r == "function" ? r(n) : r; return /* @__PURE__ */ S.isValidElement(u) ? eo(u, { className: ie(u.props.className || "", c) - }) : u !== void 0 ? u : i ? a ? /* @__PURE__ */ S.createElement(Jj, { + }) : u !== void 0 ? u : i ? a ? /* @__PURE__ */ S.createElement(rU, { className: `${t}-switcher-line-icon` - }) : /* @__PURE__ */ S.createElement(eU, { + }) : /* @__PURE__ */ S.createElement(nU, { className: `${t}-switcher-line-icon` - }) : /* @__PURE__ */ S.createElement(Qj, { + }) : /* @__PURE__ */ S.createElement(tU, { className: c }); -}, JI = /* @__PURE__ */ k.forwardRef((e, t) => { +}, JD = /* @__PURE__ */ k.forwardRef((e, t) => { var r; const { getPrefixCls: n, @@ -37833,7 +37874,7 @@ const l1e = (e) => { draggable: v, motion: m, style: y - } = e, C = n("tree", s), b = n(), w = m ?? Object.assign(Object.assign({}, gW(b)), { + } = e, C = n("tree", s), b = n(), w = m ?? Object.assign(Object.assign({}, yW(b)), { motionAppear: !1 }), x = Object.assign(Object.assign({}, e), { checkable: p, @@ -37842,8 +37883,8 @@ const l1e = (e) => { motion: w, blockNode: h, showLine: !!u, - dropIndicatorRender: t1e - }), [E, R, P] = e1e(C), [, T] = ai(), _ = T.paddingXS / 2 + (((r = T.Tree) === null || r === void 0 ? void 0 : r.titleHeight) || T.controlHeightSM), D = k.useMemo(() => { + dropIndicatorRender: h1e + }), [E, R, P] = d1e(C), [, T] = ai(), _ = T.paddingXS / 2 + (((r = T.Tree) === null || r === void 0 ? void 0 : r.titleHeight) || T.controlHeightSM), D = k.useMemo(() => { if (!v) return !1; let M = {}; @@ -37855,8 +37896,8 @@ const l1e = (e) => { M = Object.assign({}, v); break; } - return M.icon !== !1 && (M.icon = M.icon || /* @__PURE__ */ k.createElement(Zj, null)), M; - }, [v]), A = (M) => /* @__PURE__ */ k.createElement(l1e, { + return M.icon !== !1 && (M.icon = M.icon || /* @__PURE__ */ k.createElement(eU, null)), M; + }, [v]), A = (M) => /* @__PURE__ */ k.createElement(C1e, { prefixCls: C, switcherIcon: d, treeNodeProps: M, @@ -37864,7 +37905,7 @@ const l1e = (e) => { }); return E( // @ts-ignore - /* @__PURE__ */ k.createElement(ZI, Object.assign({ + /* @__PURE__ */ k.createElement(ZD, Object.assign({ itemHeight: _, ref: t, virtual: o @@ -37888,20 +37929,20 @@ const l1e = (e) => { }), f) ); }); -process.env.NODE_ENV !== "production" && (JI.displayName = "Tree"); -const d$ = 0, lx = 1, h$ = 2; -function e2(e, t, r) { +process.env.NODE_ENV !== "production" && (JD.displayName = "Tree"); +const f$ = 0, lx = 1, p$ = 2; +function eI(e, t, r) { const { key: n, children: i } = r; function o(a) { const s = a[n], l = a[i]; - t(s, a) !== !1 && e2(l || [], t, r); + t(s, a) !== !1 && eI(l || [], t, r); } e.forEach(o); } -function c1e(e) { +function S1e(e) { let { treeData: t, expandedKeys: r, @@ -37910,7 +37951,7 @@ function c1e(e) { fieldNames: o } = e; const a = []; - let s = d$; + let s = f$; if (n && n === i) return [n]; if (!n || !i) @@ -37918,56 +37959,56 @@ function c1e(e) { function l(c) { return c === n || c === i; } - return e2(t, (c) => { - if (s === h$) + return eI(t, (c) => { + if (s === p$) return !1; if (l(c)) { - if (a.push(c), s === d$) + if (a.push(c), s === f$) s = lx; else if (s === lx) - return s = h$, !1; + return s = p$, !1; } else s === lx && a.push(c); return r.includes(c); }, Af(o)), a; } function cx(e, t, r) { const n = $e(t), i = []; - return e2(e, (o, a) => { + return eI(e, (o, a) => { const s = n.indexOf(o); return s !== -1 && (i.push(a), n.splice(s, 1)), !!n.length; }, Af(r)), i; } -var f$ = function(e, t) { +var g$ = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function u1e(e) { +function b1e(e) { const { isLeaf: t, expanded: r } = e; - return t ? /* @__PURE__ */ S.createElement(QI, null) : r ? /* @__PURE__ */ S.createElement(qj, null) : /* @__PURE__ */ S.createElement(Xj, null); + return t ? /* @__PURE__ */ S.createElement(QD, null) : r ? /* @__PURE__ */ S.createElement(Qj, null) : /* @__PURE__ */ S.createElement(Jj, null); } -function p$(e) { +function v$(e) { let { treeData: t, children: r } = e; - return t || x7(r); + return t || P7(r); } -const d1e = (e, t) => { +const w1e = (e, t) => { var { defaultExpandAll: r, defaultExpandParent: n, defaultExpandedKeys: i - } = e, o = f$(e, ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"]); + } = e, o = g$(e, ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"]); const a = S.useRef(), s = S.useRef(), l = () => { const { keyEntities: R - } = kI(p$(o)); + } = kD(v$(o)); let P; return r ? P = Object.keys(R) : n ? P = UT(o.expandedKeys || i || [], R) : P = o.expandedKeys || i || [], P; }, [c, u] = S.useState(o.selectedKeys || o.defaultSelectedKeys || []), [d, h] = S.useState(() => l()); @@ -37989,11 +38030,11 @@ const d1e = (e, t) => { nativeEvent: M } = P, { key: O = "" - } = A, L = p$(o), N = Object.assign(Object.assign({}, P), { + } = A, L = v$(o), N = Object.assign(Object.assign({}, P), { selected: !0 }), F = (M == null ? void 0 : M.ctrlKey) || (M == null ? void 0 : M.metaKey), $ = M == null ? void 0 : M.shiftKey; let I; - _ && F ? (I = R, a.current = O, s.current = I, N.selectedNodes = cx(L, I, D)) : _ && $ ? (I = Array.from(new Set([].concat($e(s.current || []), $e(c1e({ + _ && F ? (I = R, a.current = O, s.current = I, N.selectedNodes = cx(L, I, D)) : _ && $ ? (I = Array.from(new Set([].concat($e(s.current || []), $e(S1e({ treeData: L, expandedKeys: d, startKey: O, @@ -38008,11 +38049,11 @@ const d1e = (e, t) => { className: y, showIcon: C = !0, expandAction: b = "click" - } = o, w = f$(o, ["prefixCls", "className", "showIcon", "expandAction"]), x = g("tree", m), E = ie(`${x}-directory`, { + } = o, w = g$(o, ["prefixCls", "className", "showIcon", "expandAction"]), x = g("tree", m), E = ie(`${x}-directory`, { [`${x}-directory-rtl`]: v === "rtl" }, y); - return /* @__PURE__ */ S.createElement(JI, Object.assign({ - icon: u1e, + return /* @__PURE__ */ S.createElement(JD, Object.assign({ + icon: b1e, ref: t, blockNode: !0 }, w, { @@ -38025,12 +38066,12 @@ const d1e = (e, t) => { onSelect: p, onExpand: f })); -}, tU = /* @__PURE__ */ S.forwardRef(d1e); -process.env.NODE_ENV !== "production" && (tU.displayName = "DirectoryTree"); -const t2 = JI; -t2.DirectoryTree = tU; -t2.TreeNode = Of; -function g$(e) { +}, iU = /* @__PURE__ */ S.forwardRef(w1e); +process.env.NODE_ENV !== "production" && (iU.displayName = "DirectoryTree"); +const tI = JD; +tI.DirectoryTree = iU; +tI.TreeNode = Of; +function m$(e) { let { value: t, onChange: r, @@ -38040,8 +38081,8 @@ function g$(e) { } = e; return n ? /* @__PURE__ */ S.createElement("div", { className: `${i}-filter-dropdown-search` - }, /* @__PURE__ */ S.createElement(_l, { - prefix: /* @__PURE__ */ S.createElement(Zb, null), + }, /* @__PURE__ */ S.createElement(Ml, { + prefix: /* @__PURE__ */ S.createElement(Jb, null), placeholder: o.filterSearchPlaceholder, onChange: r, value: t, @@ -38050,18 +38091,18 @@ function g$(e) { className: `${i}-filter-dropdown-search-input` })) : null; } -const h1e = (e) => { +const x1e = (e) => { const { keyCode: t } = e; - t === Oe.ENTER && e.stopPropagation(); -}, rU = /* @__PURE__ */ S.forwardRef((e, t) => /* @__PURE__ */ S.createElement("div", { + t === Le.ENTER && e.stopPropagation(); +}, oU = /* @__PURE__ */ S.forwardRef((e, t) => /* @__PURE__ */ S.createElement("div", { className: e.className, onClick: (r) => r.stopPropagation(), - onKeyDown: h1e, + onKeyDown: x1e, ref: t }, e.children)); -process.env.NODE_ENV !== "production" && (rU.displayName = "FilterDropdownMenuWrapper"); +process.env.NODE_ENV !== "production" && (oU.displayName = "FilterDropdownMenuWrapper"); function hf(e) { let t = []; return (e || []).forEach((r) => { @@ -38072,7 +38113,7 @@ function hf(e) { t.push(n), i && (t = [].concat($e(t), $e(hf(i)))); }), t; } -function f1e(e) { +function E1e(e) { return e.some((t) => { let { children: r @@ -38080,10 +38121,10 @@ function f1e(e) { return r; }); } -function nU(e, t) { +function aU(e, t) { return typeof t == "string" || typeof t == "number" ? t == null ? void 0 : t.toString().toLowerCase().includes(e.trim().toLowerCase()) : !1; } -function iU(e) { +function sU(e) { let { filters: t, prefixCls: r, @@ -38099,7 +38140,7 @@ function iU(e) { key: c || l, label: s.text, popupClassName: `${r}-dropdown-submenu`, - children: iU({ + children: sU({ filters: s.children, prefixCls: r, filteredKeys: n, @@ -38108,19 +38149,19 @@ function iU(e) { filterSearch: a }) }; - const u = i ? Pd : Om, d = { + const u = i ? Pd : Fm, d = { key: s.value !== void 0 ? c : l, label: /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(u, { checked: n.includes(c) }), /* @__PURE__ */ S.createElement("span", null, s.text)) }; - return o.trim() ? typeof a == "function" ? a(o, s) ? d : null : nU(o, s.text) ? d : null : d; + return o.trim() ? typeof a == "function" ? a(o, s) ? d : null : aU(o, s.text) ? d : null : d; }); } function ux(e) { return e || []; } -function p1e(e) { +function R1e(e) { var t, r; const { tablePrefixCls: n, @@ -38156,7 +38197,7 @@ function p1e(e) { ue.deprecated(pe == null, fe, de); }); } - const D = (r = y ?? x) !== null && r !== void 0 ? r : R, A = h == null ? void 0 : h.filteredKeys, [M, O] = _we(ux(A)), L = (ue) => { + const D = (r = y ?? x) !== null && r !== void 0 ? r : R, A = h == null ? void 0 : h.filteredKeys, [M, O] = Bwe(ux(A)), L = (ue) => { let { selectedKeys: he } = ue; @@ -38217,8 +38258,8 @@ function p1e(e) { ue && _(!1), W(M()); }, J = (ue, he) => { he.source === "trigger" && (ue && A !== void 0 && O(ux(A)), _(ue), !ue && !o.filterDropdown && l && j()); - }, te = ie({ - [`${a}-menu-without-submenu`]: !f1e(o.filters || []) + }, re = ie({ + [`${a}-menu-without-submenu`]: !E1e(o.filters || []) }), Q = (ue) => { if (ue.target.checked) { const he = hf(o == null ? void 0 : o.filters).map((fe) => String(fe)); @@ -38280,7 +38321,7 @@ function p1e(e) { if ((o.filters || []).length === 0) return de; if (u === "tree") - return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(g$, { + return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(m$, { filterSearch: d, value: V, onChange: B, @@ -38293,7 +38334,7 @@ function p1e(e) { indeterminate: ue.length > 0 && ue.length < hf(o.filters).length, className: `${n}-filter-dropdown-checkall`, onChange: Q - }, p.filterCheckall) : null, /* @__PURE__ */ S.createElement(t2, { + }, p.filterCheckall) : null, /* @__PURE__ */ S.createElement(tI, { checkable: !0, selectable: !1, blockNode: !0, @@ -38309,9 +38350,9 @@ function p1e(e) { }), autoExpandParent: !0, defaultExpandAll: !0, - filterTreeNode: V.trim() ? (be) => typeof d == "function" ? d(V, K(be)) : nU(V, be.title) : void 0 + filterTreeNode: V.trim() ? (be) => typeof d == "function" ? d(V, K(be)) : aU(V, be.title) : void 0 }))); - const pe = iU({ + const pe = sU({ filters: o.filters || [], filterSearch: d, prefixCls: i, @@ -38319,7 +38360,7 @@ function p1e(e) { filterMultiple: c, searchValue: V }), _e = pe.every((be) => be === null); - return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(g$, { + return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(m$, { filterSearch: d, value: V, onChange: B, @@ -38329,7 +38370,7 @@ function p1e(e) { selectable: !0, multiple: c, prefixCls: `${a}-menu`, - className: te, + className: re, onSelect: L, onDeselect: L, selectedKeys: ue, @@ -38341,25 +38382,25 @@ function p1e(e) { }, fe = () => b ? rs((w || []).map((de) => String(de)), ue, !0) : ue.length === 0; ae = /* @__PURE__ */ S.createElement(S.Fragment, null, he(), /* @__PURE__ */ S.createElement("div", { className: `${i}-dropdown-btns` - }, /* @__PURE__ */ S.createElement(kr, { + }, /* @__PURE__ */ S.createElement(Fr, { type: "link", size: "small", disabled: fe(), onClick: () => X() - }, p.filterReset), /* @__PURE__ */ S.createElement(kr, { + }, p.filterReset), /* @__PURE__ */ S.createElement(Fr, { type: "primary", size: "small", onClick: j }, p.filterConfirm))); } - o.filterDropdown && (ae = /* @__PURE__ */ S.createElement(r7, { + o.filterDropdown && (ae = /* @__PURE__ */ S.createElement(o7, { selectable: void 0 }, ae)); - const G = () => /* @__PURE__ */ S.createElement(rU, { + const G = () => /* @__PURE__ */ S.createElement(oU, { className: `${i}-dropdown` }, ae); - let re; - typeof o.filterIcon == "function" ? re = o.filterIcon(T) : o.filterIcon ? re = o.filterIcon : re = /* @__PURE__ */ S.createElement(Wj, null); + let ne; + typeof o.filterIcon == "function" ? ne = o.filterIcon(T) : o.filterIcon ? ne = o.filterIcon : ne = /* @__PURE__ */ S.createElement(Kj, null); const { direction: le } = S.useContext(gt); @@ -38367,7 +38408,7 @@ function p1e(e) { className: `${i}-column` }, /* @__PURE__ */ S.createElement("span", { className: `${n}-column-title` - }, g), /* @__PURE__ */ S.createElement(HI, { + }, g), /* @__PURE__ */ S.createElement(HD, { dropdownRender: G, trigger: ["click"], open: D, @@ -38384,13 +38425,13 @@ function p1e(e) { onClick: (ue) => { ue.stopPropagation(); } - }, re))); + }, ne))); } function ZT(e, t, r) { let n = []; return (e || []).forEach((i, o) => { var a; - const s = Bm(o, r); + const s = Hm(o, r); if (i.filters || "filterDropdown" in i || "onFilter" in i) if ("filteredValue" in i) { let l = i.filteredValue; @@ -38410,9 +38451,9 @@ function ZT(e, t, r) { "children" in i && (n = [].concat($e(n), $e(ZT(i.children, t, s)))); }), n; } -function oU(e, t, r, n, i, o, a, s, l) { +function lU(e, t, r, n, i, o, a, s, l) { return r.map((c, u) => { - const d = Bm(u, s), { + const d = Hm(u, s), { filterOnClose: h = !0, filterMultiple: f = !0, filterMode: p, @@ -38427,7 +38468,7 @@ function oU(e, t, r, n, i, o, a, s, l) { return m === b; }); v = Object.assign(Object.assign({}, v), { - title: (C) => /* @__PURE__ */ S.createElement(p1e, { + title: (C) => /* @__PURE__ */ S.createElement(R1e, { tablePrefixCls: e, prefixCls: `${e}-filter`, dropdownPrefixCls: t, @@ -38442,15 +38483,15 @@ function oU(e, t, r, n, i, o, a, s, l) { locale: i, getPopupContainer: a, rootClassName: l - }, pw(c.title, C)) + }, vw(c.title, C)) }); } return "children" in v && (v = Object.assign(Object.assign({}, v), { - children: oU(e, t, v.children, n, i, o, a, d, l) + children: lU(e, t, v.children, n, i, o, a, d, l) })), v; }); } -function v$(e) { +function y$(e) { const t = {}; return e.forEach((r) => { let { @@ -38486,8 +38527,8 @@ function QT(e, t, r) { })) : n; }, e); } -const aU = (e) => e.flatMap((t) => "children" in t ? [t].concat($e(aU(t.children || []))) : [t]); -function g1e(e) { +const cU = (e) => e.flatMap((t) => "children" in t ? [t].concat($e(cU(t.children || []))) : [t]); +function P1e(e) { let { prefixCls: t, dropdownPrefixCls: r, @@ -38497,7 +38538,7 @@ function g1e(e) { locale: a, rootClassName: s } = e; - const l = Rr("Table"), c = S.useMemo(() => aU(n || []), [n]), [u, d] = S.useState(() => ZT(c, !0)), h = S.useMemo(() => { + const l = Rr("Table"), c = S.useMemo(() => cU(n || []), [n]), [u, d] = S.useState(() => ZT(c, !0)), h = S.useMemo(() => { const v = ZT(c, !1); if (v.length === 0) return v; @@ -38508,7 +38549,7 @@ function g1e(e) { } = C; b !== void 0 ? m = !1 : y = !1; }), m) { - const C = (c || []).map((b, w) => Td(b, Bm(w))); + const C = (c || []).map((b, w) => Td(b, Hm(w))); return u.filter((b) => { let { key: w @@ -38523,18 +38564,18 @@ function g1e(e) { }); } return process.env.NODE_ENV !== "production" && l(y, "usage", "Columns should all contain `filteredValue` or not contain `filteredValue`."), v; - }, [c, u]), f = S.useMemo(() => v$(h), [h]), p = (v) => { + }, [c, u]), f = S.useMemo(() => y$(h), [h]), p = (v) => { const m = h.filter((y) => { let { key: C } = y; return C !== v.key; }); - m.push(v), d(m), i(v$(m), m); + m.push(v), d(m), i(y$(m), m); }; - return [(v) => oU(t, r, v, h, a, p, o, void 0, s), h, f]; + return [(v) => lU(t, r, v, h, a, p, o, void 0, s), h, f]; } -function v1e(e, t, r) { +function T1e(e, t, r) { const n = S.useRef({}); function i(o) { if (!n.current || n.current.data !== e || n.current.childrenColumnName !== t || n.current.getRowKey !== r) { @@ -38556,15 +38597,15 @@ function v1e(e, t, r) { } return [i]; } -var m1e = function(e, t) { +var _1e = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const sU = 10; -function y1e(e, t) { +const uU = 10; +function M1e(e, t) { const r = { current: e.current, pageSize: e.pageSize @@ -38574,13 +38615,13 @@ function y1e(e, t) { typeof o != "function" && (r[i] = o); }), r; } -function C1e(e, t, r) { +function D1e(e, t, r) { const n = r && typeof r == "object" ? r : {}, { total: i = 0 - } = n, o = m1e(n, ["total"]), [a, s] = Le(() => ({ + } = n, o = _1e(n, ["total"]), [a, s] = Ie(() => ({ current: "defaultCurrent" in o ? o.defaultCurrent : 1, - pageSize: "defaultPageSize" in o ? o.defaultPageSize : sU - })), l = tj(a, o, { + pageSize: "defaultPageSize" in o ? o.defaultPageSize : uU + })), l = ij(a, o, { total: i > 0 ? i : e }), c = Math.ceil((i || e) / l.pageSize); l.current > c && (l.current = c || 1); @@ -38598,28 +38639,28 @@ function C1e(e, t, r) { onChange: d }), u]; } -var S1e = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" }, b1e = function(t, r) { +var I1e = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" }, A1e = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: S1e + icon: I1e })); -}, lU = /* @__PURE__ */ S.forwardRef(b1e); -process.env.NODE_ENV !== "production" && (lU.displayName = "CaretDownOutlined"); -var w1e = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, name: "caret-up", theme: "outlined" }, x1e = function(t, r) { +}, dU = /* @__PURE__ */ S.forwardRef(A1e); +process.env.NODE_ENV !== "production" && (dU.displayName = "CaretDownOutlined"); +var O1e = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, name: "caret-up", theme: "outlined" }, L1e = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: w1e + icon: O1e })); -}, cU = /* @__PURE__ */ S.forwardRef(x1e); -process.env.NODE_ENV !== "production" && (cU.displayName = "CaretUpOutlined"); -const vC = "ascend", dx = "descend"; -function fS(e) { +}, hU = /* @__PURE__ */ S.forwardRef(L1e); +process.env.NODE_ENV !== "production" && (hU.displayName = "CaretUpOutlined"); +const CC = "ascend", dx = "descend"; +function gS(e) { return typeof e.sorter == "object" && typeof e.sorter.multiple == "number" ? e.sorter.multiple : !1; } -function m$(e) { +function C$(e) { return typeof e == "function" ? e : e && typeof e == "object" && e.compare ? e.compare : !1; } -function E1e(e, t) { +function F1e(e, t) { return t ? e[e.indexOf(t) + 1] : e[0]; } function JT(e, t, r) { @@ -38628,23 +38669,23 @@ function JT(e, t, r) { n.push({ column: o, key: Td(o, a), - multiplePriority: fS(o), + multiplePriority: gS(o), sortOrder: o.sortOrder }); } return (e || []).forEach((o, a) => { - const s = Bm(a, r); + const s = Hm(a, r); o.children ? ("sortOrder" in o && i(o, s), n = [].concat($e(n), $e(JT(o.children, t, s)))) : o.sorter && ("sortOrder" in o ? i(o, s) : t && o.defaultSortOrder && n.push({ column: o, key: Td(o, s), - multiplePriority: fS(o), + multiplePriority: gS(o), sortOrder: o.defaultSortOrder })); }), n; } -function uU(e, t, r, n, i, o, a, s) { +function fU(e, t, r, n, i, o, a, s) { return (t || []).map((l, c) => { - const u = Bm(c, s); + const u = Hm(c, s); let d = l; if (d.sorter) { const h = d.sortDirections || i, f = d.showSorterTooltip === void 0 ? a : d.showSorterTooltip, p = Td(d, u), g = r.find((R) => { @@ -38652,18 +38693,18 @@ function uU(e, t, r, n, i, o, a, s) { key: P } = R; return P === p; - }), v = g ? g.sortOrder : null, m = E1e(h, v); + }), v = g ? g.sortOrder : null, m = F1e(h, v); let y; if (l.sortIcon) y = l.sortIcon({ sortOrder: v }); else { - const R = h.includes(vC) && /* @__PURE__ */ S.createElement(cU, { + const R = h.includes(CC) && /* @__PURE__ */ S.createElement(hU, { className: ie(`${e}-column-sorter-up`, { - active: v === vC + active: v === CC }) - }), P = h.includes(dx) && /* @__PURE__ */ S.createElement(lU, { + }), P = h.includes(dx) && /* @__PURE__ */ S.createElement(dU, { className: ie(`${e}-column-sorter-down`, { active: v === dx }) @@ -38683,7 +38724,7 @@ function uU(e, t, r, n, i, o, a, s) { triggerDesc: w } = o || {}; let x = C; - m === dx ? x = w : m === vC && (x = b); + m === dx ? x = w : m === CC && (x = b); const E = typeof f == "object" ? Object.assign({ title: x }, f) : { @@ -38696,7 +38737,7 @@ function uU(e, t, r, n, i, o, a, s) { title: (R) => { const P = `${e}-column-sorters`, T = /* @__PURE__ */ S.createElement("span", { className: `${e}-column-title` - }, pw(l.title, R)), _ = /* @__PURE__ */ S.createElement("div", { + }, vw(l.title, R)), _ = /* @__PURE__ */ S.createElement("div", { className: P }, T, y); return f ? typeof f != "boolean" && (f == null ? void 0 : f.target) === "sorter-icon" ? /* @__PURE__ */ S.createElement("div", { @@ -38711,27 +38752,27 @@ function uU(e, t, r, n, i, o, a, s) { column: l, key: p, sortOrder: m, - multiplePriority: fS(l) + multiplePriority: gS(l) }), _ == null || _(O); }, T.onKeyDown = (O) => { - O.keyCode === Oe.ENTER && (n({ + O.keyCode === Le.ENTER && (n({ column: l, key: p, sortOrder: m, - multiplePriority: fS(l) + multiplePriority: gS(l) }), D == null || D(O)); }; - const A = Rwe(l.title, {}), M = A == null ? void 0 : A.toString(); + const A = Nwe(l.title, {}), M = A == null ? void 0 : A.toString(); return v ? T["aria-sort"] = v === "ascend" ? "ascending" : "descending" : T["aria-label"] = M || "", T.className = ie(T.className, `${e}-column-has-sorters`), T.tabIndex = 0, l.ellipsis && (T.title = (A ?? "").toString()), T; } }); } return "children" in d && (d = Object.assign(Object.assign({}, d), { - children: uU(e, d.children, r, n, i, o, a, u) + children: fU(e, d.children, r, n, i, o, a, u) })), d; }); } -const y$ = (e) => { +const S$ = (e) => { const { column: t, sortOrder: r @@ -38742,16 +38783,16 @@ const y$ = (e) => { field: t.dataIndex, columnKey: t.key }; -}, C$ = (e) => { +}, b$ = (e) => { const t = e.filter((r) => { let { sortOrder: n } = r; return n; - }).map(y$); + }).map(S$); if (t.length === 0 && e.length) { const r = e.length - 1; - return Object.assign(Object.assign({}, y$(e[r])), { + return Object.assign(Object.assign({}, S$(e[r])), { column: void 0 }); } @@ -38765,7 +38806,7 @@ function e_(e, t, r) { }, sortOrder: l } = a; - return m$(s) && l; + return C$(s) && l; }); return o.length ? i.sort((a, s) => { for (let l = 0; l < o.length; l += 1) { @@ -38774,11 +38815,11 @@ function e_(e, t, r) { sorter: u }, sortOrder: d - } = c, h = m$(u); + } = c, h = C$(u); if (h && d) { const f = h(a, s, d); if (f !== 0) - return d === vC ? f : -f; + return d === CC ? f : -f; } } return 0; @@ -38789,7 +38830,7 @@ function e_(e, t, r) { }) : a; }) : i; } -function R1e(e) { +function N1e(e) { let { prefixCls: t, mergedColumns: r, @@ -38838,34 +38879,34 @@ function R1e(e) { key: m } = v; return m !== p.key; - })), [p]), l(g), n(C$(g), g); + })), [p]), l(g), n(b$(g), g); }; - return [(p) => uU(t, p, c, d, i, o, a), c, u, () => C$(c)]; + return [(p) => fU(t, p, c, d, i, o, a), c, u, () => b$(c)]; } -function dU(e, t) { +function pU(e, t) { return e.map((r) => { const n = Object.assign({}, r); - return n.title = pw(r.title, t), "children" in n && (n.children = dU(n.children, t)), n; + return n.title = vw(r.title, t), "children" in n && (n.children = pU(n.children, t)), n; }); } -function P1e(e) { - return [S.useCallback((r) => dU(r, e), [e])]; +function k1e(e) { + return [S.useCallback((r) => pU(r, e), [e])]; } -const T1e = $j((e, t) => { +const $1e = Hj((e, t) => { const { _renderTimes: r } = e, { _renderTimes: n } = t; return r !== n; -}), _1e = zj((e, t) => { +}), B1e = jj((e, t) => { const { _renderTimes: r } = e, { _renderTimes: n } = t; return r !== n; -}), M1e = (e) => { +}), V1e = (e) => { const { componentCls: t, lineWidth: r, @@ -38875,14 +38916,14 @@ const T1e = $j((e, t) => { tablePaddingVertical: a, tablePaddingHorizontal: s, calc: l - } = e, c = `${ee(r)} ${n} ${i}`, u = (d, h, f) => ({ + } = e, c = `${te(r)} ${n} ${i}`, u = (d, h, f) => ({ [`&${t}-${d}`]: { [`> ${t}-container`]: { [`> ${t}-content, > ${t}-body`]: { "\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ": { [`> ${t}-expanded-row-fixed`]: { - margin: `${ee(l(h).mul(-1).equal())} - ${ee(l(l(f).add(r)).mul(-1).equal())}` + margin: `${te(l(h).mul(-1).equal())} + ${te(l(l(f).add(r)).mul(-1).equal())}` } } } @@ -38930,7 +38971,7 @@ const T1e = $j((e, t) => { // ========================== Expandable ========================== "\n > tbody > tr > th,\n > tbody > tr > td\n ": { [`> ${t}-expanded-row-fixed`]: { - margin: `${ee(l(a).mul(-1).equal())} ${ee(l(l(s).add(r)).mul(-1).equal())}`, + margin: `${te(l(a).mul(-1).equal())} ${te(l(l(s).add(r)).mul(-1).equal())}`, "&::after": { position: "absolute", top: 0, @@ -38974,7 +39015,7 @@ const T1e = $j((e, t) => { }, // https://github.com/ant-design/ant-design/issues/35577 "&-scrollbar:not([rowspan])": { - boxShadow: `0 ${ee(r)} 0 ${ee(r)} ${o}` + boxShadow: `0 ${te(r)} 0 ${te(r)} ${o}` } }, [`${t}-bordered ${t}-cell-scrollbar`]: { @@ -38982,7 +39023,7 @@ const T1e = $j((e, t) => { } } }; -}, D1e = (e) => { +}, H1e = (e) => { const { componentCls: t } = e; @@ -39010,7 +39051,7 @@ const T1e = $j((e, t) => { }) } }; -}, I1e = (e) => { +}, z1e = (e) => { const { componentCls: t } = e; @@ -39025,7 +39066,7 @@ const T1e = $j((e, t) => { } } }; -}, A1e = (e) => { +}, G1e = (e) => { const { componentCls: t, antCls: r, @@ -39046,7 +39087,7 @@ const T1e = $j((e, t) => { expandIconHalfInner: m, expandIconScale: y, calc: C - } = e, b = `${ee(i)} ${a} ${s}`, w = C(p).sub(i).equal(); + } = e, b = `${te(i)} ${a} ${s}`, w = C(p).sub(i).equal(); return { [`${t}-wrapper`]: { [`${t}-expand-icon-col`]: { @@ -39064,7 +39105,7 @@ const T1e = $j((e, t) => { height: 1, float: "left" }, - [`${t}-row-expand-icon`]: Object.assign(Object.assign({}, HD(e)), { + [`${t}-row-expand-icon`]: Object.assign(Object.assign({}, H2(e)), { position: "relative", float: "left", boxSizing: "border-box", @@ -39072,7 +39113,7 @@ const T1e = $j((e, t) => { height: v, padding: 0, color: "inherit", - lineHeight: ee(v), + lineHeight: te(v), background: l, border: b, borderRadius: u, @@ -39140,12 +39181,12 @@ const T1e = $j((e, t) => { // With fixed [`${t}-expanded-row-fixed`]: { position: "relative", - margin: `${ee(C(d).mul(-1).equal())} ${ee(C(h).mul(-1).equal())}`, - padding: `${ee(d)} ${ee(h)}` + margin: `${te(C(d).mul(-1).equal())} ${te(C(h).mul(-1).equal())}`, + padding: `${te(d)} ${te(h)}` } } }; -}, O1e = (e) => { +}, W1e = (e) => { const { componentCls: t, antCls: r, @@ -39174,7 +39215,7 @@ const T1e = $j((e, t) => { boxShadowSecondary: P, filterDropdownMenuBg: T, calc: _ - } = e, D = `${r}-dropdown`, A = `${t}-filter-dropdown`, M = `${r}-tree`, O = `${ee(c)} ${u} ${d}`; + } = e, D = `${r}-dropdown`, A = `${t}-filter-dropdown`, M = `${r}-tree`, O = `${te(c)} ${u} ${d}`; return [ { [`${t}-wrapper`]: { @@ -39187,8 +39228,8 @@ const T1e = $j((e, t) => { display: "flex", alignItems: "center", marginBlock: _(a).mul(-1).equal(), - marginInline: `${ee(a)} ${ee(_(p).div(2).mul(-1).equal())}`, - padding: `0 ${ee(a)}`, + marginInline: `${te(a)} ${te(_(p).div(2).mul(-1).equal())}`, + padding: `0 ${te(a)}`, color: h, fontSize: f, borderRadius: g, @@ -39225,7 +39266,7 @@ const T1e = $j((e, t) => { backgroundColor: T, "&:empty::after": { display: "block", - padding: `${ee(s)} 0`, + padding: `${te(s)} 0`, color: b, fontSize: f, textAlign: "center", @@ -39233,7 +39274,7 @@ const T1e = $j((e, t) => { } }, [`${A}-tree`]: { - paddingBlock: `${ee(s)} 0`, + paddingBlock: `${te(s)} 0`, paddingInline: s, [M]: { padding: 0 @@ -39268,7 +39309,7 @@ const T1e = $j((e, t) => { [`${A}-btns`]: { display: "flex", justifyContent: "space-between", - padding: `${ee(_(s).sub(c).equal())} ${ee(s)}`, + padding: `${te(_(s).sub(c).equal())} ${te(s)}`, overflow: "hidden", borderTop: O } @@ -39292,7 +39333,7 @@ const T1e = $j((e, t) => { } } ]; -}, L1e = (e) => { +}, j1e = (e) => { const { componentCls: t, lineWidth: r, @@ -39409,7 +39450,7 @@ const T1e = $j((e, t) => { } } }; -}, F1e = (e) => { +}, U1e = (e) => { const { componentCls: t, antCls: r, @@ -39419,7 +39460,7 @@ const T1e = $j((e, t) => { [`${t}-wrapper`]: { // ========================== Pagination ========================== [`${t}-pagination${r}-pagination`]: { - margin: `${ee(n)} 0` + margin: `${te(n)} 0` }, [`${t}-pagination`]: { display: "flex", @@ -39440,7 +39481,7 @@ const T1e = $j((e, t) => { } } }; -}, N1e = (e) => { +}, K1e = (e) => { const { componentCls: t, tableRadius: r @@ -39450,7 +39491,7 @@ const T1e = $j((e, t) => { [t]: { // https://github.com/ant-design/ant-design/issues/39115#issuecomment-1362314574 [`${t}-title, ${t}-header`]: { - borderRadius: `${ee(r)} ${ee(r)} 0 0` + borderRadius: `${te(r)} ${te(r)} 0 0` }, [`${t}-title + ${t}-container`]: { borderStartStartRadius: 0, @@ -39478,12 +39519,12 @@ const T1e = $j((e, t) => { } }, "&-footer": { - borderRadius: `0 0 ${ee(r)} ${ee(r)}` + borderRadius: `0 0 ${te(r)} ${te(r)}` } } } }; -}, k1e = (e) => { +}, Y1e = (e) => { const { componentCls: t } = e; @@ -39526,7 +39567,7 @@ const T1e = $j((e, t) => { } } }; -}, $1e = (e) => { +}, q1e = (e) => { const { componentCls: t, antCls: r, @@ -39588,7 +39629,7 @@ const T1e = $j((e, t) => { cursor: "pointer", transition: `all ${e.motionDurationSlow}`, marginInlineStart: "100%", - paddingInlineStart: ee(p(f).div(4).equal()), + paddingInlineStart: te(p(f).div(4).equal()), [n]: { color: s, fontSize: i, @@ -39616,7 +39657,7 @@ const T1e = $j((e, t) => { } } }; -}, B1e = (e) => { +}, X1e = (e) => { const { componentCls: t, tableExpandColumnWidth: r, @@ -39634,31 +39675,31 @@ const T1e = $j((e, t) => { tfoot > tr > th, tfoot > tr > td `]: { - padding: `${ee(a)} ${ee(s)}` + padding: `${te(a)} ${te(s)}` }, [`${t}-filter-trigger`]: { - marginInlineEnd: ee(n(s).div(2).mul(-1).equal()) + marginInlineEnd: te(n(s).div(2).mul(-1).equal()) }, [`${t}-expanded-row-fixed`]: { - margin: `${ee(n(a).mul(-1).equal())} ${ee(n(s).mul(-1).equal())}` + margin: `${te(n(a).mul(-1).equal())} ${te(n(s).mul(-1).equal())}` }, [`${t}-tbody`]: { // ========================= Nest Table =========================== [`${t}-wrapper:only-child ${t}`]: { - marginBlock: ee(n(a).mul(-1).equal()), - marginInline: `${ee(n(r).sub(s).equal())} ${ee(n(s).mul(-1).equal())}` + marginBlock: te(n(a).mul(-1).equal()), + marginInline: `${te(n(r).sub(s).equal())} ${te(n(s).mul(-1).equal())}` } }, // https://github.com/ant-design/ant-design/issues/35167 [`${t}-selection-extra`]: { - paddingInlineStart: ee(n(s).div(4).equal()) + paddingInlineStart: te(n(s).div(4).equal()) } } }); return { [`${t}-wrapper`]: Object.assign(Object.assign({}, i("middle", e.tablePaddingVerticalMiddle, e.tablePaddingHorizontalMiddle, e.tableFontSizeMiddle)), i("small", e.tablePaddingVerticalSmall, e.tablePaddingHorizontalSmall, e.tableFontSizeSmall)) }; -}, V1e = (e) => { +}, Z1e = (e) => { const { componentCls: t, marginXXS: r, @@ -39746,7 +39787,7 @@ const T1e = $j((e, t) => { } } }; -}, H1e = (e) => { +}, Q1e = (e) => { const { componentCls: t, opacityLoading: r, @@ -39759,7 +39800,7 @@ const T1e = $j((e, t) => { lineWidth: c, lineType: u, tableBorderColor: d - } = e, h = `${ee(c)} ${u} ${d}`; + } = e, h = `${te(c)} ${u} ${d}`; return { [`${t}-wrapper`]: { [`${t}-sticky`]: { @@ -39771,7 +39812,7 @@ const T1e = $j((e, t) => { "&-scroll": { position: "sticky", bottom: 0, - height: `${ee(o)} !important`, + height: `${te(o)} !important`, zIndex: s, display: "flex", alignItems: "center", @@ -39797,13 +39838,13 @@ const T1e = $j((e, t) => { } } }; -}, S$ = (e) => { +}, w$ = (e) => { const { componentCls: t, lineWidth: r, tableBorderColor: n, calc: i - } = e, o = `${ee(r)} ${e.lineType} ${n}`; + } = e, o = `${te(r)} ${e.lineType} ${n}`; return { [`${t}-wrapper`]: { [`${t}-summary`]: { @@ -39817,11 +39858,11 @@ const T1e = $j((e, t) => { } }, [`div${t}-summary`]: { - boxShadow: `0 ${ee(i(r).mul(-1).equal())} 0 ${n}` + boxShadow: `0 ${te(i(r).mul(-1).equal())} 0 ${n}` } } }; -}, z1e = (e) => { +}, J1e = (e) => { const { componentCls: t, motionDurationMid: r, @@ -39829,7 +39870,7 @@ const T1e = $j((e, t) => { lineType: i, tableBorderColor: o, calc: a - } = e, s = `${ee(n)} ${i} ${o}`, l = `${t}-expanded-row-cell`; + } = e, s = `${te(n)} ${i} ${o}`, l = `${t}-expanded-row-cell`; return { [`${t}-wrapper`]: { // ========================== Row ========================== @@ -39848,7 +39889,7 @@ const T1e = $j((e, t) => { position: "sticky", insetInlineStart: 0, overflow: "hidden", - width: `calc(var(--virtual-width) - ${ee(n)})`, + width: `calc(var(--virtual-width) - ${te(n)})`, borderInlineEnd: "none" } } @@ -39884,7 +39925,7 @@ const T1e = $j((e, t) => { } } }; -}, G1e = (e) => { +}, exe = (e) => { const { componentCls: t, fontWeightStrong: r, @@ -39904,16 +39945,16 @@ const T1e = $j((e, t) => { tableFooterTextColor: v, tableFooterBg: m, calc: y - } = e, C = `${ee(a)} ${s} ${l}`; + } = e, C = `${te(a)} ${s} ${l}`; return { [`${t}-wrapper`]: Object.assign(Object.assign({ clear: "both", maxWidth: "100%" - }, Fl()), { + }, Nl()), { [t]: Object.assign(Object.assign({}, nn(e)), { fontSize: c, background: u, - borderRadius: `${ee(d)} ${ee(d)} 0 0`, + borderRadius: `${te(d)} ${te(d)} 0 0`, // https://github.com/ant-design/ant-design/issues/47486 scrollbarColor: `${e.tableScrollThumbBg} ${e.tableScrollBg}` }), @@ -39921,7 +39962,7 @@ const T1e = $j((e, t) => { table: { width: "100%", textAlign: "start", - borderRadius: `${ee(d)} ${ee(d)} 0 0`, + borderRadius: `${te(d)} ${te(d)} 0 0`, borderCollapse: "separate", borderSpacing: 0 }, @@ -39935,12 +39976,12 @@ const T1e = $j((e, t) => { tfoot > tr > td `]: { position: "relative", - padding: `${ee(n)} ${ee(i)}`, + padding: `${te(n)} ${te(i)}`, overflowWrap: "break-word" }, // ============================ Title ============================= [`${t}-title`]: { - padding: `${ee(n)} ${ee(i)}` + padding: `${te(n)} ${te(i)}` }, // ============================ Header ============================ [`${t}-thead`]: { @@ -39983,9 +40024,9 @@ const T1e = $j((e, t) => { > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]: { [t]: { - marginBlock: ee(y(n).mul(-1).equal()), - marginInline: `${ee(y(o).sub(i).equal())} - ${ee(y(i).mul(-1).equal())}`, + marginBlock: te(y(n).mul(-1).equal()), + marginInline: `${te(y(o).sub(i).equal())} + ${te(y(i).mul(-1).equal())}`, [`${t}-tbody > tr:last-child > td`]: { borderBottom: 0, "&:first-child, &:last-child": { @@ -40008,13 +40049,13 @@ const T1e = $j((e, t) => { }, // ============================ Footer ============================ [`${t}-footer`]: { - padding: `${ee(n)} ${ee(i)}`, + padding: `${te(n)} ${te(i)}`, color: v, background: m } }) }; -}, W1e = (e) => { +}, txe = (e) => { const { colorFillAlter: t, colorBgContainer: r, @@ -40078,7 +40119,7 @@ const T1e = $j((e, t) => { expandIconSize: A, expandIconScale: x / A }; -}, j1e = Ur("Table", (e) => { +}, rxe = Kr("Table", (e) => { const { colorTextHeading: t, colorSplit: r, @@ -40158,12 +40199,12 @@ const T1e = $j((e, t) => { tableScrollThumbBgHover: t, tableScrollBg: r }); - return [G1e(I), F1e(I), S$(I), V1e(I), O1e(I), M1e(I), N1e(I), A1e(I), S$(I), I1e(I), $1e(I), L1e(I), H1e(I), D1e(I), B1e(I), k1e(I), z1e(I)]; -}, W1e, { + return [exe(I), U1e(I), w$(I), Z1e(I), W1e(I), V1e(I), K1e(I), G1e(I), w$(I), z1e(I), q1e(I), j1e(I), Q1e(I), H1e(I), X1e(I), Y1e(I), J1e(I)]; +}, txe, { unitless: { expandIconScale: !0 } -}), U1e = [], K1e = (e, t) => { +}), nxe = [], ixe = (e, t) => { var r, n; const { prefixCls: i, @@ -40198,7 +40239,7 @@ const T1e = $j((e, t) => { virtual: O } = e, L = Rr("Table"); process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && L(!(typeof p == "function" && p.length > 1), "usage", "`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."); - const N = S.useMemo(() => v || KI(m), [v, m]), F = S.useMemo(() => N.some((ge) => ge.responsive), [N]), $ = Qb(F), I = S.useMemo(() => { + const N = S.useMemo(() => v || KD(m), [v, m]), F = S.useMemo(() => N.some((ge) => ge.responsive), [N]), $ = ew(F), I = S.useMemo(() => { const ge = new Set(Object.keys($).filter((me) => $[me])); return N.filter((me) => !me.responsive || me.responsive.some((He) => ge.has(He))); }, [N, $]), V = Sn(e, ["className", "style", "columns"]), { @@ -40208,7 +40249,7 @@ const T1e = $j((e, t) => { renderEmpty: j, getPrefixCls: X, getPopupContainer: q - } = S.useContext(gt), J = Ro(l), te = Object.assign(Object.assign({}, H.Table), A), Q = d || U1e, Y = X("table", i), K = X("dropdown", u), [, ae] = ai(), G = mi(Y), [re, le, ue] = j1e(Y, G), he = Object.assign(Object.assign({ + } = S.useContext(gt), J = Ro(l), re = Object.assign(Object.assign({}, H.Table), A), Q = d || nxe, Y = X("table", i), K = X("dropdown", u), [, ae] = ai(), G = yi(Y), [ne, le, ue] = rxe(Y, G), he = Object.assign(Object.assign({ childrenColumnName: y, expandIconColumnIndex: P }, E), { @@ -40217,15 +40258,15 @@ const T1e = $j((e, t) => { childrenColumnName: fe = "children" } = he, de = S.useMemo(() => Q.some((ge) => ge == null ? void 0 : ge[fe]) ? "nest" : R || E != null && E.expandedRowRender ? "row" : null, [Q]), pe = { body: S.useRef() - }, _e = Ewe(Y), be = S.useRef(null), Me = S.useRef(null); - wwe(t, () => Object.assign(Object.assign({}, Me.current), { + }, _e = Fwe(Y), be = S.useRef(null), Me = S.useRef(null); + Owe(t, () => Object.assign(Object.assign({}, Me.current), { nativeElement: be.current })); - const Ve = S.useMemo(() => typeof p == "function" ? p : (ge) => ge == null ? void 0 : ge[p], [p]), [oe] = v1e(Q, fe, Ve), ye = {}, Ne = function(ge, me) { + const Ve = S.useMemo(() => typeof p == "function" ? p : (ge) => ge == null ? void 0 : ge[p], [p]), [oe] = T1e(Q, fe, Ve), ye = {}, Ne = function(ge, me) { let He = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; - var ct, it, dt, bt; + var ct, it, dt, wt; const qe = Object.assign(Object.assign({}, ye), ge); - He && ((ct = ye.resetPagination) === null || ct === void 0 || ct.call(ye), !((it = qe.pagination) === null || it === void 0) && it.current && (qe.pagination.current = 1), h && ((dt = h.onChange) === null || dt === void 0 || dt.call(h, 1, (bt = qe.pagination) === null || bt === void 0 ? void 0 : bt.pageSize))), _ && _.scrollToFirstRowOnChange !== !1 && pe.body.current && tce(0, { + He && ((ct = ye.resetPagination) === null || ct === void 0 || ct.call(ye), !((it = qe.pagination) === null || it === void 0) && it.current && (qe.pagination.current = 1), h && ((dt = h.onChange) === null || dt === void 0 || dt.call(h, 1, (wt = qe.pagination) === null || wt === void 0 ? void 0 : wt.pageSize))), _ && _.scrollToFirstRowOnChange !== !1 && pe.body.current && hce(0, { getContainer: () => pe.body.current }), C == null || C(qe.pagination, qe.filters, qe.sorter, { currentDataSource: QT(e_(Q, qe.sorterStates, fe), qe.filterStates, fe), @@ -40236,12 +40277,12 @@ const T1e = $j((e, t) => { sorter: ge, sorterStates: me }, "sort", !1); - }, [we, Ce, xe, ze] = R1e({ + }, [we, Ce, xe, ze] = N1e({ prefixCls: Y, mergedColumns: I, onSorterChange: ke, sortDirections: D || ["ascend", "descend"], - tableLocale: te, + tableLocale: re, showSorterTooltip: M }), je = S.useMemo(() => e_(Q, Ce, fe), [Q, Ce]); ye.sorter = ze(), ye.sorterStates = Ce; @@ -40250,42 +40291,42 @@ const T1e = $j((e, t) => { filters: ge, filterStates: me }, "filter", !0); - }, [Xe, Ue, Ae] = g1e({ + }, [Xe, Ue, Oe] = P1e({ prefixCls: Y, - locale: te, + locale: re, dropdownPrefixCls: K, mergedColumns: I, onFilterChange: st, getPopupContainer: b || q, rootClassName: ie(a, G) }), Ke = QT(je, Ue, fe); - ye.filters = Ae, ye.filterStates = Ue; + ye.filters = Oe, ye.filterStates = Ue; const ht = S.useMemo(() => { const ge = {}; - return Object.keys(Ae).forEach((me) => { - Ae[me] !== null && (ge[me] = Ae[me]); + return Object.keys(Oe).forEach((me) => { + Oe[me] !== null && (ge[me] = Oe[me]); }), Object.assign(Object.assign({}, xe), { filters: ge }); - }, [xe, Ae]), [Et] = P1e(ht), hr = (ge, me) => { + }, [xe, Oe]), [Rt] = k1e(ht), hr = (ge, me) => { Ne({ pagination: Object.assign(Object.assign({}, ye.pagination), { current: ge, pageSize: me }) }, "paginate"); - }, [At, Lt] = C1e(Ke.length, hr, h); - ye.pagination = h === !1 ? {} : y1e(At, h), ye.resetPagination = Lt; + }, [At, Lt] = D1e(Ke.length, hr, h); + ye.pagination = h === !1 ? {} : M1e(At, h), ye.resetPagination = Lt; const Dt = S.useMemo(() => { if (h === !1 || !At.pageSize) return Ke; const { current: ge = 1, total: me, - pageSize: He = sU + pageSize: He = uU } = At; return process.env.NODE_ENV !== "production" && L(ge > 0, "usage", "`current` should be positive number."), Ke.length < me ? Ke.length > He ? (process.env.NODE_ENV !== "production" && L(!1, "usage", "`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."), Ke.slice((ge - 1) * He, ge * He)) : Ke : Ke.slice((ge - 1) * He, ge * He); - }, [!!h, Ke, At == null ? void 0 : At.current, At == null ? void 0 : At.pageSize, At == null ? void 0 : At.total]), [Mt, mt] = Swe({ + }, [!!h, Ke, At == null ? void 0 : At.current, At == null ? void 0 : At.pageSize, At == null ? void 0 : At.total]), [Mt, yt] = Iwe({ prefixCls: Y, data: Ke, pageData: Dt, @@ -40293,29 +40334,29 @@ const T1e = $j((e, t) => { getRecordByKey: oe, expandType: de, childrenColumnName: fe, - locale: te, + locale: re, getPopupContainer: b || q }, f), Qe = (ge, me, He) => { let ct; return typeof g == "function" ? ct = ie(g(ge, me, He)) : ct = ie(g), ie({ - [`${Y}-row-selected`]: mt.has(Ve(ge, me)) + [`${Y}-row-selected`]: yt.has(Ve(ge, me)) }, ct); }; - he.__PARENT_RENDER_ICON__ = he.expandIcon, he.expandIcon = he.expandIcon || x || xwe(te), de === "nest" && he.expandIconColumnIndex === void 0 ? he.expandIconColumnIndex = f ? 1 : 0 : he.expandIconColumnIndex > 0 && f && (he.expandIconColumnIndex -= 1), typeof he.indentSize != "number" && (he.indentSize = typeof T == "number" ? T : 15); - const Rt = S.useCallback((ge) => Et(Mt(Xe(we(ge)))), [we, Xe, Mt]); - let jt, We; + he.__PARENT_RENDER_ICON__ = he.expandIcon, he.expandIcon = he.expandIcon || x || Lwe(re), de === "nest" && he.expandIconColumnIndex === void 0 ? he.expandIconColumnIndex = f ? 1 : 0 : he.expandIconColumnIndex > 0 && f && (he.expandIconColumnIndex -= 1), typeof he.indentSize != "number" && (he.indentSize = typeof T == "number" ? T : 15); + const Pt = S.useCallback((ge) => Rt(Mt(Xe(we(ge)))), [we, Xe, Mt]); + let Ut, We; if (h !== !1 && (At != null && At.total)) { let ge; At.size ? ge = At.size : ge = J === "small" || J === "middle" ? "small" : void 0; - const me = (it) => /* @__PURE__ */ S.createElement(zI, Object.assign({}, At, { + const me = (it) => /* @__PURE__ */ S.createElement(zD, Object.assign({}, At, { className: ie(`${Y}-pagination ${Y}-pagination-${it}`, At.className), size: ge })), He = B === "rtl" ? "left" : "right", { position: ct } = At; if (ct !== null && Array.isArray(ct)) { - const it = ct.find((qe) => qe.includes("top")), dt = ct.find((qe) => qe.includes("bottom")), bt = ct.every((qe) => `${qe}` == "none"); - !it && !dt && !bt && (We = me(He)), it && (jt = me(it.toLowerCase().replace("top", ""))), dt && (We = me(dt.toLowerCase().replace("bottom", ""))); + const it = ct.find((qe) => qe.includes("top")), dt = ct.find((qe) => qe.includes("bottom")), wt = ct.every((qe) => `${qe}` == "none"); + !it && !dt && !wt && (We = me(He)), it && (Ut = me(it.toLowerCase().replace("top", ""))), dt && (We = me(dt.toLowerCase().replace("bottom", ""))); } else We = me(He); } @@ -40327,9 +40368,9 @@ const T1e = $j((e, t) => { }, w)); const rt = ie(ue, G, `${Y}-wrapper`, W == null ? void 0 : W.className, { [`${Y}-wrapper-rtl`]: B === "rtl" - }, o, a, le), tt = Object.assign(Object.assign({}, W == null ? void 0 : W.style), s), yt = typeof (A == null ? void 0 : A.emptyText) < "u" ? A.emptyText : (j == null ? void 0 : j("Table")) || /* @__PURE__ */ S.createElement(vI, { + }, o, a, le), tt = Object.assign(Object.assign({}, W == null ? void 0 : W.style), s), Ct = typeof (A == null ? void 0 : A.emptyText) < "u" ? A.emptyText : (j == null ? void 0 : j("Table")) || /* @__PURE__ */ S.createElement(vD, { componentName: "Table" - }), Gt = O ? _1e : T1e, Mr = {}, se = S.useMemo(() => { + }), Gt = O ? B1e : $1e, Mr = {}, se = S.useMemo(() => { const { fontSize: ge, lineHeight: me, @@ -40346,13 +40387,13 @@ const T1e = $j((e, t) => { return it * 2 + dt; } }, [ae, J]); - return O && (Mr.listItemHeight = se), re(/* @__PURE__ */ S.createElement("div", { + return O && (Mr.listItemHeight = se), ne(/* @__PURE__ */ S.createElement("div", { ref: be, className: rt, style: tt - }, /* @__PURE__ */ S.createElement(Nm, Object.assign({ + }, /* @__PURE__ */ S.createElement($m, Object.assign({ spinning: !1 - }, et), jt, /* @__PURE__ */ S.createElement(Gt, Object.assign({}, Mr, V, { + }, et), Ut, /* @__PURE__ */ S.createElement(Gt, Object.assign({}, Mr, V, { ref: Me, columns: I, direction: B, @@ -40367,30 +40408,30 @@ const T1e = $j((e, t) => { data: Dt, rowKey: Ve, rowClassName: Qe, - emptyText: yt, + emptyText: Ct, // Internal - internalHooks: $m, + internalHooks: Vm, internalRefs: pe, - transformColumns: Rt, + transformColumns: Pt, getContainerWidth: _e })), We))); -}, Y1e = /* @__PURE__ */ S.forwardRef(K1e), q1e = (e, t) => { +}, oxe = /* @__PURE__ */ S.forwardRef(ixe), axe = (e, t) => { const r = S.useRef(0); - return r.current += 1, /* @__PURE__ */ S.createElement(Y1e, Object.assign({}, e, { + return r.current += 1, /* @__PURE__ */ S.createElement(oxe, Object.assign({}, e, { ref: t, _renderTimes: r.current })); -}, el = /* @__PURE__ */ S.forwardRef(q1e); -el.SELECTION_COLUMN = ws; -el.EXPAND_COLUMN = Rs; -el.SELECTION_ALL = KT; -el.SELECTION_INVERT = YT; -el.SELECTION_NONE = qT; -el.Column = cwe; -el.ColumnGroup = uwe; -el.Summary = xj; -process.env.NODE_ENV !== "production" && (el.displayName = "Table"); -const X1e = (e) => { +}, tl = /* @__PURE__ */ S.forwardRef(axe); +tl.SELECTION_COLUMN = ws; +tl.EXPAND_COLUMN = Rs; +tl.SELECTION_ALL = KT; +tl.SELECTION_INVERT = YT; +tl.SELECTION_NONE = qT; +tl.Column = Swe; +tl.ColumnGroup = bwe; +tl.Summary = Pj; +process.env.NODE_ENV !== "production" && (tl.displayName = "Table"); +const sxe = (e) => { const { paddingXXS: t, lineWidth: r, @@ -40410,7 +40451,7 @@ const X1e = (e) => { lineHeight: e.tagLineHeight, whiteSpace: "nowrap", background: e.defaultBg, - border: `${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, + border: `${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`, borderRadius: e.borderRadiusSM, opacity: 1, transition: `all ${e.motionDurationMid}`, @@ -40473,7 +40514,7 @@ const X1e = (e) => { background: e.tagBorderlessBg } }; -}, r2 = (e) => { +}, rI = (e) => { const { lineWidth: t, fontSizeIcon: r, @@ -40481,28 +40522,28 @@ const X1e = (e) => { } = e, i = e.fontSizeSM; return fr(e, { tagFontSize: i, - tagLineHeight: ee(n(e.lineHeightSM).mul(i).equal()), + tagLineHeight: te(n(e.lineHeightSM).mul(i).equal()), tagIconSize: n(r).sub(n(t).mul(2)).equal(), // Tag icon is much smaller tagPaddingHorizontal: 8, // Fixed padding. tagBorderlessBg: e.defaultBg }); -}, n2 = (e) => ({ +}, nI = (e) => ({ defaultBg: new Hr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(), defaultColor: e.colorText -}), hU = Ur("Tag", (e) => { - const t = r2(e); - return X1e(t); -}, n2); -var Z1e = function(e, t) { +}), gU = Kr("Tag", (e) => { + const t = rI(e); + return sxe(t); +}, nI); +var lxe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const Q1e = /* @__PURE__ */ S.forwardRef((e, t) => { +const cxe = /* @__PURE__ */ S.forwardRef((e, t) => { const { prefixCls: r, style: n, @@ -40510,12 +40551,12 @@ const Q1e = /* @__PURE__ */ S.forwardRef((e, t) => { checked: o, onChange: a, onClick: s - } = e, l = Z1e(e, ["prefixCls", "style", "className", "checked", "onChange", "onClick"]), { + } = e, l = lxe(e, ["prefixCls", "style", "className", "checked", "onChange", "onClick"]), { getPrefixCls: c, tag: u } = S.useContext(gt), d = (m) => { a == null || a(!o), s == null || s(m); - }, h = c("tag", r), [f, p, g] = hU(h), v = ie(h, `${h}-checkable`, { + }, h = c("tag", r), [f, p, g] = gU(h), v = ie(h, `${h}-checkable`, { [`${h}-checkable-checked`]: o }, u == null ? void 0 : u.className, i, p, g); return f(/* @__PURE__ */ S.createElement("span", Object.assign({}, l, { @@ -40524,7 +40565,7 @@ const Q1e = /* @__PURE__ */ S.forwardRef((e, t) => { className: v, onClick: d }))); -}), J1e = (e) => kG(e, (t, r) => { +}), uxe = (e) => VG(e, (t, r) => { let { textColor: n, lightBorderColor: i, @@ -40547,15 +40588,15 @@ const Q1e = /* @__PURE__ */ S.forwardRef((e, t) => { } } }; -}), exe = ym(["Tag", "preset"], (e) => { - const t = r2(e); - return J1e(t); -}, n2); -function txe(e) { +}), dxe = Sm(["Tag", "preset"], (e) => { + const t = rI(e); + return uxe(t); +}, nI); +function hxe(e) { return typeof e != "string" ? e : e.charAt(0).toUpperCase() + e.slice(1); } -const ky = (e, t, r) => { - const n = txe(r); +const Vy = (e, t, r) => { + const n = hxe(r); return { [`${e.componentCls}${e.componentCls}-${t}`]: { color: e[`color${r}`], @@ -40566,18 +40607,18 @@ const ky = (e, t, r) => { } } }; -}, rxe = ym(["Tag", "status"], (e) => { - const t = r2(e); - return [ky(t, "success", "Success"), ky(t, "processing", "Info"), ky(t, "error", "Error"), ky(t, "warning", "Warning")]; -}, n2); -var nxe = function(e, t) { +}, fxe = Sm(["Tag", "status"], (e) => { + const t = rI(e); + return [Vy(t, "success", "Success"), Vy(t, "processing", "Info"), Vy(t, "error", "Error"), Vy(t, "warning", "Warning")]; +}, nI); +var pxe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const ixe = /* @__PURE__ */ S.forwardRef((e, t) => { +const gxe = /* @__PURE__ */ S.forwardRef((e, t) => { const { prefixCls: r, className: n, @@ -40589,7 +40630,7 @@ const ixe = /* @__PURE__ */ S.forwardRef((e, t) => { onClose: c, bordered: u = !0, visible: d - } = e, h = nxe(e, ["prefixCls", "className", "rootClassName", "style", "children", "icon", "color", "onClose", "bordered", "visible"]), { + } = e, h = pxe(e, ["prefixCls", "className", "rootClassName", "style", "children", "icon", "color", "onClose", "bordered", "visible"]), { getPrefixCls: f, direction: p, tag: g @@ -40597,9 +40638,9 @@ const ixe = /* @__PURE__ */ S.forwardRef((e, t) => { process.env.NODE_ENV !== "production" && Rr("Tag").deprecated(!("visible" in e), "visible", "visible && "), S.useEffect(() => { d !== void 0 && m(d); }, [d]); - const C = k9(l), b = hge(l), w = C || b, x = Object.assign(Object.assign({ + const C = V9(l), b = xge(l), w = C || b, x = Object.assign(Object.assign({ backgroundColor: l && !w ? l : void 0 - }, g == null ? void 0 : g.style), o), E = f("tag", r), [R, P, T] = hU(E), _ = ie(E, g == null ? void 0 : g.className, { + }, g == null ? void 0 : g.style), o), E = f("tag", r), [R, P, T] = gU(E), _ = ie(E, g == null ? void 0 : g.className, { [`${E}-${l}`]: w, [`${E}-has-color`]: l && !w, [`${E}-hidden`]: !v, @@ -40607,14 +40648,14 @@ const ixe = /* @__PURE__ */ S.forwardRef((e, t) => { [`${E}-borderless`]: !u }, n, i, P, T), D = (F) => { F.stopPropagation(), c == null || c(F), !F.defaultPrevented && m(!1); - }, [, A] = kW(JC(e), JC(g), { + }, [, A] = VW(rS(e), rS(g), { closable: !1, closeIconRender: (F) => { const $ = /* @__PURE__ */ S.createElement("span", { className: `${E}-close-icon`, onClick: D }, F); - return oW(F, $, (I) => ({ + return lW(F, $, (I) => ({ onClick: (V) => { var H; (H = I == null ? void 0 : I.onClick) === null || H === void 0 || H.call(I, V), D(V); @@ -40626,27 +40667,27 @@ const ixe = /* @__PURE__ */ S.forwardRef((e, t) => { ref: t, className: _, style: x - }), L, A, C && /* @__PURE__ */ S.createElement(exe, { + }), L, A, C && /* @__PURE__ */ S.createElement(dxe, { key: "preset", prefixCls: E - }), b && /* @__PURE__ */ S.createElement(rxe, { + }), b && /* @__PURE__ */ S.createElement(fxe, { key: "status", prefixCls: E })); - return R(M ? /* @__PURE__ */ S.createElement(wm, { + return R(M ? /* @__PURE__ */ S.createElement(Em, { component: "Tag" }, N) : N); -}), gw = ixe; -process.env.NODE_ENV !== "production" && (gw.displayName = "Tag"); -gw.CheckableTag = Q1e; -var oxe = function(e, t) { +}), Lf = gxe; +process.env.NODE_ENV !== "production" && (Lf.displayName = "Tag"); +Lf.CheckableTag = cxe; +var vxe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const axe = { +const mxe = { border: 0, background: "transparent", padding: 0, @@ -40657,22 +40698,22 @@ const axe = { const { keyCode: d } = u; - d === Oe.ENTER && u.preventDefault(); + d === Le.ENTER && u.preventDefault(); }, n = (u) => { const { keyCode: d } = u, { onClick: h } = e; - d === Oe.ENTER && h && h(); + d === Le.ENTER && h && h(); }, { style: i, noStyle: o, disabled: a, tabIndex: s = 0 - } = e, l = oxe(e, ["style", "noStyle", "disabled", "tabIndex"]); + } = e, l = vxe(e, ["style", "noStyle", "disabled", "tabIndex"]); let c = {}; - return o || (c = Object.assign({}, axe)), a && (c.pointerEvents = "none"), c = Object.assign(Object.assign({}, c), i), /* @__PURE__ */ S.createElement("div", Object.assign({ + return o || (c = Object.assign({}, mxe)), a && (c.pointerEvents = "none"), c = Object.assign(Object.assign({}, c), i), /* @__PURE__ */ S.createElement("div", Object.assign({ role: "button", tabIndex: s, ref: t @@ -40682,21 +40723,21 @@ const axe = { style: c })); }); -var sxe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" }, lxe = function(t, r) { +var yxe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" }, Cxe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: sxe + icon: yxe })); -}, fU = /* @__PURE__ */ S.forwardRef(lxe); -process.env.NODE_ENV !== "production" && (fU.displayName = "EditOutlined"); -var cxe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" }, uxe = function(t, r) { +}, vU = /* @__PURE__ */ S.forwardRef(Cxe); +process.env.NODE_ENV !== "production" && (vU.displayName = "EditOutlined"); +var Sxe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" }, bxe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: cxe + icon: Sxe })); -}, pU = /* @__PURE__ */ S.forwardRef(uxe); -process.env.NODE_ENV !== "production" && (pU.displayName = "EnterOutlined"); -const dxe = (e, t, r, n) => { +}, mU = /* @__PURE__ */ S.forwardRef(bxe); +process.env.NODE_ENV !== "production" && (mU.displayName = "EnterOutlined"); +const wxe = (e, t, r, n) => { const { titleMarginBottom: i, fontWeightStrong: o @@ -40708,7 +40749,7 @@ const dxe = (e, t, r, n) => { fontSize: e, lineHeight: t }; -}, hxe = (e) => { +}, xxe = (e) => { const t = [1, 2, 3, 4, 5], r = {}; return t.forEach((n) => { r[` @@ -40716,14 +40757,14 @@ const dxe = (e, t, r, n) => { div&-h${n}, div&-h${n} > textarea, h${n} - `] = dxe(e[`fontSizeHeading${n}`], e[`lineHeightHeading${n}`], e.colorTextHeading, e); + `] = wxe(e[`fontSizeHeading${n}`], e[`lineHeightHeading${n}`], e.colorTextHeading, e); }), r; -}, fxe = (e) => { +}, Exe = (e) => { const { componentCls: t } = e; return { - "a&, a": Object.assign(Object.assign({}, HD(e)), { + "a&, a": Object.assign(Object.assign({}, H2(e)), { textDecoration: e.linkDecoration, "&:active, &:hover": { textDecoration: e.linkHoverDecoration @@ -40740,7 +40781,7 @@ const dxe = (e, t, r, n) => { } }) }; -}, pxe = (e) => ({ +}, Rxe = (e) => ({ code: { margin: "0 0.2em", paddingInline: "0.4em", @@ -40827,7 +40868,7 @@ const dxe = (e, t, r, n) => { borderInlineStart: "4px solid rgba(100, 100, 100, 0.2)", opacity: 0.85 } -}), gxe = (e) => { +}), Pxe = (e) => { const { componentCls: t, paddingSM: r @@ -40838,7 +40879,7 @@ const dxe = (e, t, r, n) => { "div&": { insetInlineStart: e.calc(e.paddingSM).mul(-1).equal(), marginTop: e.calc(n).mul(-1).equal(), - marginBottom: `calc(1em - ${ee(n)})` + marginBottom: `calc(1em - ${te(n)})` }, [`${t}-edit-content-confirm`]: { position: "absolute", @@ -40859,7 +40900,7 @@ const dxe = (e, t, r, n) => { } } }; -}, vxe = (e) => ({ +}, Txe = (e) => ({ [`${e.componentCls}-copy-success`]: { "\n &,\n &:hover,\n &:focus": { color: e.colorSuccess @@ -40868,7 +40909,7 @@ const dxe = (e, t, r, n) => { [`${e.componentCls}-copy-icon-only`]: { marginInlineStart: 0 } -}), mxe = () => ({ +}), _xe = () => ({ "\n a&-ellipsis,\n span&-ellipsis\n ": { display: "inline-block", maxWidth: "100%" @@ -40898,7 +40939,7 @@ const dxe = (e, t, r, n) => { WebkitLineClamp: 3, WebkitBoxOrient: "vertical" } -}), yxe = (e) => { +}), Mxe = (e) => { const { componentCls: t, titleMarginTop: r @@ -40934,7 +40975,7 @@ const dxe = (e, t, r, n) => { "\n div&,\n p\n ": { marginBottom: "1em" } - }, hxe(e)), { + }, xxe(e)), { [` & + h1${t}, & + h2${t}, @@ -40949,26 +40990,26 @@ const dxe = (e, t, r, n) => { marginTop: r } } - }), pxe(e)), fxe(e)), { + }), Rxe(e)), Exe(e)), { // Operation [` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy - `]: Object.assign(Object.assign({}, HD(e)), { + `]: Object.assign(Object.assign({}, H2(e)), { marginInlineStart: e.marginXXS }) - }), gxe(e)), vxe(e)), mxe()), { + }), Pxe(e)), Txe(e)), _xe()), { "&-rtl": { direction: "rtl" } }) }; -}, Cxe = () => ({ +}, Dxe = () => ({ titleMarginTop: "1.2em", titleMarginBottom: "0.5em" -}), gU = Ur("Typography", (e) => [yxe(e)], Cxe), Sxe = (e) => { +}), yU = Kr("Typography", (e) => [Mxe(e)], Dxe), Ixe = (e) => { const { prefixCls: t, "aria-label": r, @@ -40982,7 +41023,7 @@ const dxe = (e, t, r, n) => { onCancel: u, onEnd: d, component: h, - enterIcon: f = /* @__PURE__ */ S.createElement(pU, null) + enterIcon: f = /* @__PURE__ */ S.createElement(mU, null) } = e, p = S.useRef(null), g = S.useRef(!1), v = S.useRef(), [m, y] = S.useState(l); S.useEffect(() => { y(l); @@ -41023,16 +41064,16 @@ const dxe = (e, t, r, n) => { metaKey: $, shiftKey: I } = O; - v.current === L && !g.current && !N && !F && !$ && !I && (L === Oe.ENTER ? (E(), d == null || d()) : L === Oe.ESC && u()); + v.current === L && !g.current && !N && !F && !$ && !I && (L === Le.ENTER ? (E(), d == null || d()) : L === Le.ESC && u()); }, P = () => { E(); - }, T = h ? `${t}-${h}` : "", [_, D, A] = gU(t), M = ie(t, `${t}-edit-content`, { + }, T = h ? `${t}-${h}` : "", [_, D, A] = yU(t), M = ie(t, `${t}-edit-content`, { [`${t}-rtl`]: o === "rtl" }, n, T, D, A); return _(/* @__PURE__ */ S.createElement("div", { className: M, style: i - }, /* @__PURE__ */ S.createElement(sw, { + }, /* @__PURE__ */ S.createElement(cw, { ref: p, maxLength: a, value: m, @@ -41049,7 +41090,7 @@ const dxe = (e, t, r, n) => { className: `${t}-edit-content-confirm` }) : null)); }; -var bxe = function() { +var Axe = function() { var e = document.getSelection(); if (!e.rangeCount) return function() { @@ -41070,24 +41111,24 @@ var bxe = function() { e.addRange(i); }), t && t.focus(); }; -}, wxe = bxe, b$ = { +}, Oxe = Axe, x$ = { "text/plain": "Text", "text/html": "Url", default: "Text" -}, xxe = "Copy to clipboard: #{key}, Enter"; -function Exe(e) { +}, Lxe = "Copy to clipboard: #{key}, Enter"; +function Fxe(e) { var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; return e.replace(/#{\s*key\s*}/g, t); } -function Rxe(e, t) { +function Nxe(e, t) { var r, n, i, o, a, s, l = !1; t || (t = {}), r = t.debug || !1; try { - i = wxe(), o = document.createRange(), a = document.getSelection(), s = document.createElement("span"), s.textContent = e, s.ariaHidden = "true", s.style.all = "unset", s.style.position = "fixed", s.style.top = 0, s.style.clip = "rect(0, 0, 0, 0)", s.style.whiteSpace = "pre", s.style.webkitUserSelect = "text", s.style.MozUserSelect = "text", s.style.msUserSelect = "text", s.style.userSelect = "text", s.addEventListener("copy", function(u) { + i = Oxe(), o = document.createRange(), a = document.getSelection(), s = document.createElement("span"), s.textContent = e, s.ariaHidden = "true", s.style.all = "unset", s.style.position = "fixed", s.style.top = 0, s.style.clip = "rect(0, 0, 0, 0)", s.style.whiteSpace = "pre", s.style.webkitUserSelect = "text", s.style.MozUserSelect = "text", s.style.msUserSelect = "text", s.style.userSelect = "text", s.addEventListener("copy", function(u) { if (u.stopPropagation(), t.format) if (u.preventDefault(), typeof u.clipboardData > "u") { r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); - var d = b$[t.format] || b$.default; + var d = x$[t.format] || x$.default; window.clipboardData.setData(d, e); } else u.clipboardData.clearData(), u.clipboardData.setData(t.format, e); @@ -41102,16 +41143,16 @@ function Rxe(e, t) { try { window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), l = !0; } catch (d) { - r && console.error("unable to copy using clipboardData: ", d), r && console.error("falling back to prompt"), n = Exe("message" in t ? t.message : xxe), window.prompt(n, e); + r && console.error("unable to copy using clipboardData: ", d), r && console.error("falling back to prompt"), n = Fxe("message" in t ? t.message : Lxe), window.prompt(n, e); } } finally { a && (typeof a.removeRange == "function" ? a.removeRange(o) : a.removeAllRanges()), s && document.body.removeChild(s), i(); } return l; } -var Pxe = Rxe; -const Txe = /* @__PURE__ */ qf(Pxe); -var _xe = function(e, t, r, n) { +var kxe = Nxe; +const $xe = /* @__PURE__ */ Zf(kxe); +var Bxe = function(e, t, r, n) { function i(o) { return o instanceof r ? o : new r(function(a) { a(o); @@ -41138,7 +41179,7 @@ var _xe = function(e, t, r, n) { c((n = n.apply(e, t || [])).next()); }); }; -const Mxe = (e) => { +const Vxe = (e) => { let { copyConfig: t, children: r @@ -41147,12 +41188,12 @@ const Mxe = (e) => { s.current && clearTimeout(s.current); }, c = {}; t.format && (c.format = t.format), S.useEffect(() => l, []); - const u = Kr((d) => _xe(void 0, void 0, void 0, function* () { + const u = Yr((d) => Bxe(void 0, void 0, void 0, function* () { var h; d == null || d.preventDefault(), d == null || d.stopPropagation(), a(!0); try { const f = typeof t.text == "function" ? yield t.text() : t.text; - Txe(f || String(r) || "", c), a(!1), i(!0), l(), s.current = setTimeout(() => { + $xe(f || String(r) || "", c), a(!1), i(!0), l(), s.current = setTimeout(() => { i(!1); }, 3e3), (h = t.onCopy) === null || h === void 0 || h.call(t, d); } catch (f) { @@ -41171,25 +41212,25 @@ function hx(e, t) { return [r, Object.assign(Object.assign({}, t), r && typeof e == "object" ? e : null)]; }, [e]); } -const Dxe = (e) => { +const Hxe = (e) => { const t = ve(); return Bt(() => { t.current = e; }), t.current; -}, Ixe = (e, t) => { +}, zxe = (e, t) => { const r = S.useRef(!1); S.useEffect(() => { r.current ? e() : r.current = !0; }, t); }; -var Axe = function(e, t) { +var Gxe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const i2 = /* @__PURE__ */ S.forwardRef((e, t) => { +const iI = /* @__PURE__ */ S.forwardRef((e, t) => { const { prefixCls: r, component: n = "article", @@ -41199,14 +41240,14 @@ const i2 = /* @__PURE__ */ S.forwardRef((e, t) => { children: s, direction: l, style: c - } = e, u = Axe(e, ["prefixCls", "component", "className", "rootClassName", "setContentRef", "children", "direction", "style"]), { + } = e, u = Gxe(e, ["prefixCls", "component", "className", "rootClassName", "setContentRef", "children", "direction", "style"]), { getPrefixCls: d, direction: h, typography: f } = S.useContext(gt), p = l ?? h; let g = t; a && (g = Eo(t, a)), process.env.NODE_ENV !== "production" && Rr("Typography").deprecated(!a, "setContentRef", "ref"); - const v = d("typography", r), [m, y, C] = gU(v), b = ie(v, f == null ? void 0 : f.className, { + const v = d("typography", r), [m, y, C] = yU(v), b = ie(v, f == null ? void 0 : f.className, { [`${v}-rtl`]: p === "rtl" }, i, o, y, C), w = Object.assign(Object.assign({}, f == null ? void 0 : f.style), c); return m( @@ -41218,21 +41259,21 @@ const i2 = /* @__PURE__ */ S.forwardRef((e, t) => { }, u), s) ); }); -process.env.NODE_ENV !== "production" && (i2.displayName = "Typography"); -var Oxe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" }, Lxe = function(t, r) { +process.env.NODE_ENV !== "production" && (iI.displayName = "Typography"); +var Wxe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" }, jxe = function(t, r) { return /* @__PURE__ */ S.createElement(wr, Te({}, t, { ref: r, - icon: Oxe + icon: Wxe })); -}, vU = /* @__PURE__ */ S.forwardRef(Lxe); -process.env.NODE_ENV !== "production" && (vU.displayName = "CopyOutlined"); -function w$(e) { +}, CU = /* @__PURE__ */ S.forwardRef(jxe); +process.env.NODE_ENV !== "production" && (CU.displayName = "CopyOutlined"); +function E$(e) { return e === !1 ? [!1, !1] : Array.isArray(e) ? e : [e]; } -function $y(e, t, r) { +function Hy(e, t, r) { return e === !0 || e === void 0 ? t : e || r && t; } -const Fxe = (e) => { +const Uxe = (e) => { const { prefixCls: t, copied: r, @@ -41243,10 +41284,10 @@ const Fxe = (e) => { loading: s, tabIndex: l, onCopy: c - } = e, u = w$(o), d = w$(a), { + } = e, u = E$(o), d = E$(a), { copied: h, copy: f - } = n ?? {}, p = r ? $y(u[1], h) : $y(u[0], f), v = typeof p == "string" ? p : r ? h : f; + } = n ?? {}, p = r ? Hy(u[1], h) : Hy(u[0], f), v = typeof p == "string" ? p : r ? h : f; return /* @__PURE__ */ S.createElement(wo, { key: "copy", title: p @@ -41258,8 +41299,8 @@ const Fxe = (e) => { onClick: c, "aria-label": v, tabIndex: l - }, r ? $y(d[1], /* @__PURE__ */ S.createElement(Xb, null), !0) : $y(d[0], s ? /* @__PURE__ */ S.createElement(Jf, null) : /* @__PURE__ */ S.createElement(vU, null), !0))); -}, By = /* @__PURE__ */ S.forwardRef((e, t) => { + }, r ? Hy(d[1], /* @__PURE__ */ S.createElement(Qb, null), !0) : Hy(d[0], s ? /* @__PURE__ */ S.createElement(tp, null) : /* @__PURE__ */ S.createElement(CU, null), !0))); +}, zy = /* @__PURE__ */ S.forwardRef((e, t) => { let { style: r, children: n @@ -41284,23 +41325,23 @@ const Fxe = (e) => { }, r) }, n); }); -function mU(e) { +function SU(e) { const t = typeof e; return t === "string" || t === "number"; } -function Nxe(e) { +function Kxe(e) { let t = 0; return e.forEach((r) => { - mU(r) ? t += String(r).length : t += 1; + SU(r) ? t += String(r).length : t += 1; }), t; } -function x$(e, t) { +function R$(e, t) { let r = 0; const n = []; for (let i = 0; i < e.length; i += 1) { if (r === t) return n; - const o = e[i], s = mU(o) ? String(o).length : 1, l = r + s; + const o = e[i], s = SU(o) ? String(o).length : 1, l = r + s; if (l > t) { const c = t - r; return n.push(String(o).slice(0, c)), n; @@ -41309,12 +41350,12 @@ function x$(e, t) { } return e; } -const fx = 0, px = 1, gx = 2, vx = 3, E$ = 4, Vy = { +const fx = 0, px = 1, gx = 2, vx = 3, P$ = 4, Gy = { display: "-webkit-box", overflow: "hidden", WebkitBoxOrient: "vertical" }; -function kxe(e) { +function Yxe(e) { const { enableMeasure: t, width: r, @@ -41324,7 +41365,7 @@ function kxe(e) { expanded: a, miscDeps: s, onEllipsis: l - } = e, c = S.useMemo(() => bi(n), [n]), u = S.useMemo(() => Nxe(c), [n]), d = S.useMemo(() => i(c, !1), [n]), [h, f] = S.useState(null), p = S.useRef(null), g = S.useRef(null), v = S.useRef(null), m = S.useRef(null), y = S.useRef(null), [C, b] = S.useState(!1), [w, x] = S.useState(fx), [E, R] = S.useState(0), [P, T] = S.useState(null); + } = e, c = S.useMemo(() => wi(n), [n]), u = S.useMemo(() => Kxe(c), [n]), d = S.useMemo(() => i(c, !1), [n]), [h, f] = S.useState(null), p = S.useRef(null), g = S.useRef(null), v = S.useRef(null), m = S.useRef(null), y = S.useRef(null), [C, b] = S.useState(!1), [w, x] = S.useState(fx), [E, R] = S.useState(0), [P, T] = S.useState(null); Pr(() => { x(t && r && u ? px : fx); }, [r, n, o, t, c]), Pr(() => { @@ -41335,7 +41376,7 @@ function kxe(e) { T(F); } else if (w === gx) { const F = !!(!((M = v.current) === null || M === void 0) && M.isExceed()); - x(F ? vx : E$), f(F ? [0, u] : null), b(F); + x(F ? vx : P$), f(F ? [0, u] : null), b(F); const $ = ((O = v.current) === null || O === void 0 ? void 0 : O.getHeight()) || 0, I = o === 1 ? 0 : ((L = m.current) === null || L === void 0 ? void 0 : L.getHeight()) || 0, V = ((N = y.current) === null || N === void 0 ? void 0 : N.getHeight()) || 0, H = I + V, B = Math.max($, H); R(B + 1), l(F); } @@ -41353,47 +41394,47 @@ function kxe(e) { const D = S.useMemo(() => { if (w !== vx || !h || h[0] !== h[1]) { const M = i(c, !1); - return w !== E$ && w !== fx ? /* @__PURE__ */ S.createElement("span", { - style: Object.assign(Object.assign({}, Vy), { + return w !== P$ && w !== fx ? /* @__PURE__ */ S.createElement("span", { + style: Object.assign(Object.assign({}, Gy), { WebkitLineClamp: o }) }, M) : M; } - return i(a ? c : x$(c, h[0]), C); + return i(a ? c : R$(c, h[0]), C); }, [a, w, h, c].concat($e(s))), A = { width: r, margin: 0, padding: 0, whiteSpace: P === "nowrap" ? "normal" : "inherit" }; - return /* @__PURE__ */ S.createElement(S.Fragment, null, D, w === gx && /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(By, { - style: Object.assign(Object.assign(Object.assign({}, A), Vy), { + return /* @__PURE__ */ S.createElement(S.Fragment, null, D, w === gx && /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(zy, { + style: Object.assign(Object.assign(Object.assign({}, A), Gy), { WebkitLineClamp: o }), ref: v - }, d), /* @__PURE__ */ S.createElement(By, { - style: Object.assign(Object.assign(Object.assign({}, A), Vy), { + }, d), /* @__PURE__ */ S.createElement(zy, { + style: Object.assign(Object.assign(Object.assign({}, A), Gy), { WebkitLineClamp: o - 1 }), ref: m - }, d), /* @__PURE__ */ S.createElement(By, { - style: Object.assign(Object.assign(Object.assign({}, A), Vy), { + }, d), /* @__PURE__ */ S.createElement(zy, { + style: Object.assign(Object.assign(Object.assign({}, A), Gy), { WebkitLineClamp: 1 }), ref: y - }, i([], !0))), w === vx && h && h[0] !== h[1] && /* @__PURE__ */ S.createElement(By, { + }, i([], !0))), w === vx && h && h[0] !== h[1] && /* @__PURE__ */ S.createElement(zy, { style: Object.assign(Object.assign({}, A), { top: 400 }), ref: p - }, i(x$(c, _), !0)), w === px && /* @__PURE__ */ S.createElement("span", { + }, i(R$(c, _), !0)), w === px && /* @__PURE__ */ S.createElement("span", { style: { whiteSpace: "inherit" }, ref: g })); } -const yU = (e) => { +const bU = (e) => { let { enableEllipsis: t, isEllipsis: r, @@ -41404,15 +41445,15 @@ const yU = (e) => { open: r ? void 0 : !1 }, i), n); }; -process.env.NODE_ENV !== "production" && (yU.displayName = "EllipsisTooltip"); -var $xe = function(e, t) { +process.env.NODE_ENV !== "production" && (bU.displayName = "EllipsisTooltip"); +var qxe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -function Bxe(e, t) { +function Xxe(e, t) { let { mark: r, code: n, @@ -41427,7 +41468,7 @@ function Bxe(e, t) { } return u("strong", a), u("u", i), u("del", o), u("code", n), u("mark", r), u("kbd", s), u("i", l), c; } -const Vxe = "...", vw = /* @__PURE__ */ S.forwardRef((e, t) => { +const Zxe = "...", mw = /* @__PURE__ */ S.forwardRef((e, t) => { var r, n, i; const { prefixCls: o, @@ -41441,42 +41482,42 @@ const Vxe = "...", vw = /* @__PURE__ */ S.forwardRef((e, t) => { copyable: f, component: p, title: g - } = e, v = $xe(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), { + } = e, v = qxe(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), { getPrefixCls: m, direction: y } = S.useContext(gt), [C] = Bd("Text"), b = S.useRef(null), w = S.useRef(null), x = m("typography", o), E = Sn(v, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), [R, P] = hx(h), [T, _] = pn(!1, { value: P.editing }), { triggerType: D = ["icon"] - } = P, A = (Ae) => { + } = P, A = (Oe) => { var Ke; - Ae && ((Ke = P.onStart) === null || Ke === void 0 || Ke.call(P)), _(Ae); - }, M = Dxe(T); - Ixe(() => { - var Ae; - !T && M && ((Ae = w.current) === null || Ae === void 0 || Ae.focus()); + Oe && ((Ke = P.onStart) === null || Ke === void 0 || Ke.call(P)), _(Oe); + }, M = Hxe(T); + zxe(() => { + var Oe; + !T && M && ((Oe = w.current) === null || Oe === void 0 || Oe.focus()); }, [T]); - const O = (Ae) => { - Ae == null || Ae.preventDefault(), A(!0); - }, L = (Ae) => { + const O = (Oe) => { + Oe == null || Oe.preventDefault(), A(!0); + }, L = (Oe) => { var Ke; - (Ke = P.onChange) === null || Ke === void 0 || Ke.call(P, Ae), A(!1); + (Ke = P.onChange) === null || Ke === void 0 || Ke.call(P, Oe), A(!1); }, N = () => { - var Ae; - (Ae = P.onCancel) === null || Ae === void 0 || Ae.call(P), A(!1); + var Oe; + (Oe = P.onCancel) === null || Oe === void 0 || Oe.call(P), A(!1); }, [F, $] = hx(f), { copied: I, copyLoading: V, onClick: H - } = Mxe({ + } = Vxe({ copyConfig: $, children: u - }), [B, W] = S.useState(!1), [j, X] = S.useState(!1), [q, J] = S.useState(!1), [te, Q] = S.useState(!1), [Y, K] = S.useState(!0), [ae, G] = hx(d, { + }), [B, W] = S.useState(!1), [j, X] = S.useState(!1), [q, J] = S.useState(!1), [re, Q] = S.useState(!1), [Y, K] = S.useState(!0), [ae, G] = hx(d, { expandable: !1, - symbol: (Ae) => Ae ? C == null ? void 0 : C.collapse : C == null ? void 0 : C.expand - }), [re, le] = pn(G.defaultExpanded || !1, { + symbol: (Oe) => Oe ? C == null ? void 0 : C.collapse : C == null ? void 0 : C.expand + }), [ne, le] = pn(G.defaultExpanded || !1, { value: G.expanded - }), ue = ae && (!re || G.expandable === "collapsible"), { + }), ue = ae && (!ne || G.expandable === "collapsible"), { rows: he = 1 } = G, fe = S.useMemo(() => ( // Disable ellipsis @@ -41491,32 +41532,32 @@ const Vxe = "...", vw = /* @__PURE__ */ S.forwardRef((e, t) => { Pr(() => { pe(_e && ue); }, [_e, ue]); - const be = ue && (de ? te : q), Me = ue && he === 1 && de, Ve = ue && he > 1 && de, oe = (Ae, Ke) => { + const be = ue && (de ? re : q), Me = ue && he === 1 && de, Ve = ue && he > 1 && de, oe = (Oe, Ke) => { var ht; - le(Ke.expanded), (ht = G.onExpand) === null || ht === void 0 || ht.call(G, Ae, Ke); - }, [ye, Ne] = S.useState(0), ke = (Ae) => { + le(Ke.expanded), (ht = G.onExpand) === null || ht === void 0 || ht.call(G, Oe, Ke); + }, [ye, Ne] = S.useState(0), ke = (Oe) => { let { offsetWidth: Ke - } = Ae; + } = Oe; Ne(Ke); - }, we = (Ae) => { + }, we = (Oe) => { var Ke; - J(Ae), q !== Ae && ((Ke = G.onEllipsis) === null || Ke === void 0 || Ke.call(G, Ae)); + J(Oe), q !== Oe && ((Ke = G.onEllipsis) === null || Ke === void 0 || Ke.call(G, Oe)); }; S.useEffect(() => { - const Ae = b.current; - if (ae && de && Ae) { - const Ke = Ve ? Ae.offsetHeight < Ae.scrollHeight : Ae.offsetWidth < Ae.scrollWidth; - te !== Ke && Q(Ke); + const Oe = b.current; + if (ae && de && Oe) { + const Ke = Ve ? Oe.offsetHeight < Oe.scrollHeight : Oe.offsetWidth < Oe.scrollWidth; + re !== Ke && Q(Ke); } }, [ae, de, u, Ve, Y, ye]), S.useEffect(() => { - const Ae = b.current; - if (typeof IntersectionObserver > "u" || !Ae || !de || !ue) + const Oe = b.current; + if (typeof IntersectionObserver > "u" || !Oe || !de || !ue) return; const Ke = new IntersectionObserver(() => { - K(!!Ae.offsetParent); + K(!!Oe.offsetParent); }); - return Ke.observe(Ae), () => { + return Ke.observe(Oe), () => { Ke.disconnect(); }; }, [de, ue]); @@ -41531,20 +41572,20 @@ const Vxe = "...", vw = /* @__PURE__ */ S.forwardRef((e, t) => { title: G.tooltip }; const xe = S.useMemo(() => { - const Ae = (Ke) => ["string", "number"].includes(typeof Ke); + const Oe = (Ke) => ["string", "number"].includes(typeof Ke); if (!(!ae || de)) { - if (Ae(P.text)) + if (Oe(P.text)) return P.text; - if (Ae(u)) + if (Oe(u)) return u; - if (Ae(g)) + if (Oe(g)) return g; - if (Ae(Ce.title)) + if (Oe(Ce.title)) return Ce.title; } }, [ae, de, g, Ce.title, be]); if (T) - return /* @__PURE__ */ S.createElement(Sxe, { + return /* @__PURE__ */ S.createElement(Ixe, { value: (i = P.text) !== null && i !== void 0 ? i : typeof u == "string" ? u : "", onSave: L, onCancel: N, @@ -41560,38 +41601,38 @@ const Vxe = "...", vw = /* @__PURE__ */ S.forwardRef((e, t) => { }); const ze = () => { const { - expandable: Ae, + expandable: Oe, symbol: Ke } = G; - return !Ae || re && Ae !== "collapsible" ? null : /* @__PURE__ */ S.createElement(t_, { + return !Oe || ne && Oe !== "collapsible" ? null : /* @__PURE__ */ S.createElement(t_, { key: "expand", - className: `${x}-${re ? "collapse" : "expand"}`, + className: `${x}-${ne ? "collapse" : "expand"}`, onClick: (ht) => oe(ht, { - expanded: !re + expanded: !ne }), - "aria-label": re ? C.collapse : C == null ? void 0 : C.expand - }, typeof Ke == "function" ? Ke(re) : Ke); + "aria-label": ne ? C.collapse : C == null ? void 0 : C.expand + }, typeof Ke == "function" ? Ke(ne) : Ke); }, je = () => { if (!R) return; const { - icon: Ae, + icon: Oe, tooltip: Ke, tabIndex: ht - } = P, Et = bi(Ke)[0] || (C == null ? void 0 : C.edit), hr = typeof Et == "string" ? Et : ""; + } = P, Rt = wi(Ke)[0] || (C == null ? void 0 : C.edit), hr = typeof Rt == "string" ? Rt : ""; return D.includes("icon") ? /* @__PURE__ */ S.createElement(wo, { key: "edit", - title: Ke === !1 ? "" : Et + title: Ke === !1 ? "" : Rt }, /* @__PURE__ */ S.createElement(t_, { ref: w, className: `${x}-edit`, onClick: O, "aria-label": hr, tabIndex: ht - }, Ae || /* @__PURE__ */ S.createElement(fU, { + }, Oe || /* @__PURE__ */ S.createElement(vU, { role: "button" }))) : null; - }, st = () => F ? /* @__PURE__ */ S.createElement(Fxe, Object.assign({ + }, st = () => F ? /* @__PURE__ */ S.createElement(Uxe, Object.assign({ key: "copy" }, $, { prefixCls: x, @@ -41600,23 +41641,23 @@ const Vxe = "...", vw = /* @__PURE__ */ S.forwardRef((e, t) => { onCopy: H, loading: V, iconOnly: u == null - })) : null, Xe = (Ae) => [ + })) : null, Xe = (Oe) => [ // (renderExpanded || ellipsisConfig.collapsible) && renderExpand(), - Ae && ze(), + Oe && ze(), je(), st() - ], Ue = (Ae) => [Ae && !re && /* @__PURE__ */ S.createElement("span", { + ], Ue = (Oe) => [Oe && !ne && /* @__PURE__ */ S.createElement("span", { "aria-hidden": !0, key: "ellipsis" - }, Vxe), G.suffix, Xe(Ae)]; + }, Zxe), G.suffix, Xe(Oe)]; return /* @__PURE__ */ S.createElement(Li, { onResize: ke, disabled: !ue - }, (Ae) => /* @__PURE__ */ S.createElement(yU, { + }, (Oe) => /* @__PURE__ */ S.createElement(bU, { tooltipProps: Ce, enableEllipsis: ue, isEllipsis: be - }, /* @__PURE__ */ S.createElement(i2, Object.assign({ + }, /* @__PURE__ */ S.createElement(iI, Object.assign({ className: ie({ [`${x}-${l}`]: l, [`${x}-disabled`]: c, @@ -41629,36 +41670,36 @@ const Vxe = "...", vw = /* @__PURE__ */ S.forwardRef((e, t) => { WebkitLineClamp: Ve ? he : void 0 }), component: p, - ref: Eo(Ae, b, t), + ref: Eo(Oe, b, t), direction: y, onClick: D.includes("text") ? O : void 0, "aria-label": xe == null ? void 0 : xe.toString(), title: g - }, E), /* @__PURE__ */ S.createElement(kxe, { + }, E), /* @__PURE__ */ S.createElement(Yxe, { enableMeasure: ue && !de, text: u, rows: he, width: ye, onEllipsis: we, - expanded: re, - miscDeps: [I, re, V, R, F] - }, (Ke, ht) => Bxe(e, /* @__PURE__ */ S.createElement(S.Fragment, null, Ke.length > 0 && ht && !re && xe ? /* @__PURE__ */ S.createElement("span", { + expanded: ne, + miscDeps: [I, ne, V, R, F] + }, (Ke, ht) => Xxe(e, /* @__PURE__ */ S.createElement(S.Fragment, null, Ke.length > 0 && ht && !ne && xe ? /* @__PURE__ */ S.createElement("span", { key: "show-content", "aria-hidden": !0 }, Ke) : Ke, Ue(ht))))))); }); -var Hxe = function(e, t) { +var Qxe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const zxe = /* @__PURE__ */ S.forwardRef((e, t) => { +const Jxe = /* @__PURE__ */ S.forwardRef((e, t) => { var { ellipsis: r, rel: n - } = e, i = Hxe(e, ["ellipsis", "rel"]); + } = e, i = Qxe(e, ["ellipsis", "rel"]); if (process.env.NODE_ENV !== "production") { const a = Rr("Typography.Link"); process.env.NODE_ENV !== "production" && a(typeof r != "object", "usage", "`ellipsis` only supports boolean value."); @@ -41666,66 +41707,66 @@ const zxe = /* @__PURE__ */ S.forwardRef((e, t) => { const o = Object.assign(Object.assign({}, i), { rel: n === void 0 && i.target === "_blank" ? "noopener noreferrer" : n }); - return delete o.navigate, /* @__PURE__ */ S.createElement(vw, Object.assign({}, o, { + return delete o.navigate, /* @__PURE__ */ S.createElement(mw, Object.assign({}, o, { ref: t, ellipsis: !!r, component: "a" })); -}), Gxe = /* @__PURE__ */ S.forwardRef((e, t) => /* @__PURE__ */ S.createElement(vw, Object.assign({ +}), eEe = /* @__PURE__ */ S.forwardRef((e, t) => /* @__PURE__ */ S.createElement(mw, Object.assign({ ref: t }, e, { component: "div" }))); -var Wxe = function(e, t) { +var tEe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const jxe = (e, t) => { +const rEe = (e, t) => { var { ellipsis: r - } = e, n = Wxe(e, ["ellipsis"]); + } = e, n = tEe(e, ["ellipsis"]); const i = S.useMemo(() => r && typeof r == "object" ? Sn(r, ["expandable", "rows"]) : r, [r]); if (process.env.NODE_ENV !== "production") { const o = Rr("Typography.Text"); process.env.NODE_ENV !== "production" && o(typeof r != "object" || !r || !("expandable" in r) && !("rows" in r), "usage", "`ellipsis` do not support `expandable` or `rows` props."); } - return /* @__PURE__ */ S.createElement(vw, Object.assign({ + return /* @__PURE__ */ S.createElement(mw, Object.assign({ ref: t }, n, { ellipsis: i, component: "span" })); -}, Uxe = /* @__PURE__ */ S.forwardRef(jxe); -var Kxe = function(e, t) { +}, nEe = /* @__PURE__ */ S.forwardRef(rEe); +var iEe = function(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); return r; }; -const R$ = [1, 2, 3, 4, 5], Yxe = /* @__PURE__ */ S.forwardRef((e, t) => { +const T$ = [1, 2, 3, 4, 5], oEe = /* @__PURE__ */ S.forwardRef((e, t) => { const { level: r = 1 - } = e, n = Kxe(e, ["level"]); + } = e, n = iEe(e, ["level"]); let i; if (process.env.NODE_ENV !== "production") { const o = Rr("Typography.Title"); - process.env.NODE_ENV !== "production" && o(R$.includes(r), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."); + process.env.NODE_ENV !== "production" && o(T$.includes(r), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."); } - return R$.includes(r) ? i = `h${r}` : i = "h1", /* @__PURE__ */ S.createElement(vw, Object.assign({ + return T$.includes(r) ? i = `h${r}` : i = "h1", /* @__PURE__ */ S.createElement(mw, Object.assign({ ref: t }, n, { component: i })); -}), Xt = i2; -Xt.Text = Uxe; -Xt.Link = zxe; -Xt.Title = Yxe; -Xt.Paragraph = Gxe; -const mw = ({ +}), Wt = iI; +Wt.Text = nEe; +Wt.Link = Jxe; +Wt.Title = oEe; +Wt.Paragraph = eEe; +const zm = ({ inputRef: e, placeholder: t = "Ask me anything about your product data", userQuery: r, @@ -41737,8 +41778,8 @@ const mw = ({ const s = r.trim().length === 0 || a, l = (c) => { c.key === "Enter" && !c.shiftKey && (c.stopPropagation(), c.preventDefault(), s || i()); }; - return /* @__PURE__ */ ne.jsxs( - Pt, + return /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, style: { @@ -41752,7 +41793,7 @@ const mw = ({ zIndex: 2 }, children: [ - /* @__PURE__ */ ne.jsx( + /* @__PURE__ */ ee.jsx( "div", { style: { @@ -41761,8 +41802,8 @@ const mw = ({ } } ), - /* @__PURE__ */ ne.jsx( - vi, + /* @__PURE__ */ ee.jsx( + li, { size: "small", bordered: !0, @@ -41776,10 +41817,10 @@ const mw = ({ padding: 16 } }, - children: /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, gap: 16, children: [ - /* @__PURE__ */ ne.jsxs(Pt, { align: "flex-start", gap: 12, children: [ - /* @__PURE__ */ ne.jsx( - sw, + children: /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, gap: 16, children: [ + /* @__PURE__ */ ee.jsxs(vt, { align: "flex-start", gap: 12, children: [ + /* @__PURE__ */ ee.jsx( + cw, { ref: e, value: r, @@ -41791,20 +41832,20 @@ const mw = ({ onKeyDown: l } ), - /* @__PURE__ */ ne.jsx( - kr, + /* @__PURE__ */ ee.jsx( + Fr, { disabled: s, size: "large", type: "primary", shape: "circle", onClick: i, - icon: /* @__PURE__ */ ne.jsx(_D, { weight: "bold" }) + icon: /* @__PURE__ */ ee.jsx(_2, { weight: "bold" }) } ) ] }), - /* @__PURE__ */ ne.jsx(Pt, { align: "flex-end", justify: "flex-end", children: /* @__PURE__ */ ne.jsxs( - Xt.Text, + /* @__PURE__ */ ee.jsx(vt, { align: "flex-end", justify: "flex-end", children: /* @__PURE__ */ ee.jsxs( + Wt.Text, { type: "secondary", style: { @@ -41815,8 +41856,8 @@ const mw = ({ children: [ "Use", " ", - /* @__PURE__ */ ne.jsx( - Xt.Text, + /* @__PURE__ */ ee.jsx( + Wt.Text, { type: "secondary", style: { @@ -41851,9 +41892,9 @@ var r_ = { exports: {} }, mx = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var P$; -function qxe() { - return P$ || (P$ = 1, function(e) { +var _$; +function aEe() { + return _$ || (_$ = 1, function(e) { function t(F, $) { var I = F.length; F.push($); @@ -42061,9 +42102,9 @@ var yx = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var T$; -function Xxe() { - return T$ || (T$ = 1, function(e) { +var M$; +function sEe() { + return M$ || (M$ = 1, function(e) { process.env.NODE_ENV !== "production" && function() { typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); var t = !1, r = !1, n = 5; @@ -42091,9 +42132,9 @@ function Xxe() { } function l(Ce, xe, ze) { for (var je = ze, st = Ce.length, Xe = st >>> 1; je < Xe; ) { - var Ue = (je + 1) * 2 - 1, Ae = Ce[Ue], Ke = Ue + 1, ht = Ce[Ke]; - if (c(Ae, xe) < 0) - Ke < st && c(ht, Ae) < 0 ? (Ce[je] = ht, Ce[Ke] = xe, je = Ke) : (Ce[je] = Ae, Ce[Ue] = xe, je = Ue); + var Ue = (je + 1) * 2 - 1, Oe = Ce[Ue], Ke = Ue + 1, ht = Ce[Ke]; + if (c(Oe, xe) < 0) + Ke < st && c(ht, Oe) < 0 ? (Ce[je] = ht, Ce[Ke] = xe, je = Ke) : (Ce[je] = Oe, Ce[Ue] = xe, je = Ue); else if (Ke < st && c(ht, xe) < 0) Ce[je] = ht, Ce[Ke] = xe, je = Ke; else @@ -42245,17 +42286,17 @@ function Xxe() { Ue = E; break; } - var Ae = st + Ue, Ke = { + var Oe = st + Ue, Ke = { id: D++, callback: xe, priorityLevel: Ce, startTime: st, - expirationTime: Ae, + expirationTime: Oe, sortIndex: -1 }; - return st > je ? (Ke.sortIndex = st, i(_, Ke), o(T) === null && Ke === o(_) && (N ? Ne() : N = !0, ye(H, st - je))) : (Ke.sortIndex = Ae, i(T, Ke), !L && !O && (L = !0, oe(B))), Ke; + return st > je ? (Ke.sortIndex = st, i(_, Ke), o(T) === null && Ke === o(_) && (N ? Ne() : N = !0, ye(H, st - je))) : (Ke.sortIndex = Oe, i(T, Ke), !L && !O && (L = !0, oe(B))), Ke; } - function te() { + function re() { } function Q() { !L && !O && (L = !0, oe(B)); @@ -42269,7 +42310,7 @@ function Xxe() { function ae() { return M; } - var G = !1, re = null, le = -1, ue = n, he = -1; + var G = !1, ne = null, le = -1, ue = n, he = -1; function fe() { var Ce = e.unstable_now() - he; return !(Ce < ue); @@ -42284,14 +42325,14 @@ function Xxe() { Ce > 0 ? ue = Math.floor(1e3 / Ce) : ue = n; } var _e = function() { - if (re !== null) { + if (ne !== null) { var Ce = e.unstable_now(); he = Ce; var xe = !0, ze = !0; try { - ze = re(xe, Ce); + ze = ne(xe, Ce); } finally { - ze ? be() : (G = !1, re = null); + ze ? be() : (G = !1, ne = null); } } else G = !1; @@ -42310,7 +42351,7 @@ function Xxe() { F(_e, 0); }; function oe(Ce) { - re = Ce, G || (G = !0, be()); + ne = Ce, G || (G = !0, be()); } function ye(Ce, xe) { le = F(function() { @@ -42321,13 +42362,13 @@ function Xxe() { $(le), le = -1; } var ke = de, we = null; - e.unstable_IdlePriority = p, e.unstable_ImmediatePriority = u, e.unstable_LowPriority = f, e.unstable_NormalPriority = h, e.unstable_Profiling = we, e.unstable_UserBlockingPriority = d, e.unstable_cancelCallback = K, e.unstable_continueExecution = Q, e.unstable_forceFrameRate = pe, e.unstable_getCurrentPriorityLevel = ae, e.unstable_getFirstCallbackNode = Y, e.unstable_next = X, e.unstable_pauseExecution = te, e.unstable_requestPaint = ke, e.unstable_runWithPriority = j, e.unstable_scheduleCallback = J, e.unstable_shouldYield = fe, e.unstable_wrapCallback = q, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + e.unstable_IdlePriority = p, e.unstable_ImmediatePriority = u, e.unstable_LowPriority = f, e.unstable_NormalPriority = h, e.unstable_Profiling = we, e.unstable_UserBlockingPriority = d, e.unstable_cancelCallback = K, e.unstable_continueExecution = Q, e.unstable_forceFrameRate = pe, e.unstable_getCurrentPriorityLevel = ae, e.unstable_getFirstCallbackNode = Y, e.unstable_next = X, e.unstable_pauseExecution = re, e.unstable_requestPaint = ke, e.unstable_runWithPriority = j, e.unstable_scheduleCallback = J, e.unstable_shouldYield = fe, e.unstable_wrapCallback = q, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); }(); }(yx)), yx; } -process.env.NODE_ENV === "production" ? r_.exports = qxe() : r_.exports = Xxe(); +process.env.NODE_ENV === "production" ? r_.exports = aEe() : r_.exports = sEe(); var Cx = r_.exports; -const pS = Symbol(), Zxe = Symbol(), Qxe = typeof window > "u" || /ServerSideRendering/.test(window.navigator && window.navigator.userAgent), CU = Qxe ? Bt : Ns, Jxe = Cx.unstable_runWithPriority ? (e) => { +const vS = Symbol(), lEe = Symbol(), cEe = typeof window > "u" || /ServerSideRendering/.test(window.navigator && window.navigator.userAgent), wU = cEe ? Bt : Ns, uEe = Cx.unstable_runWithPriority ? (e) => { try { Cx.unstable_runWithPriority(Cx.unstable_NormalPriority, e); } catch (t) { @@ -42336,8 +42377,8 @@ const pS = Symbol(), Zxe = Symbol(), Qxe = typeof window > "u" || /ServerSideRen else throw t; } -} : (e) => e(), eEe = (e) => ({ value: r, children: n }) => { - const i = ve(r), o = ve(0), [a, s] = Le(null); +} : (e) => e(), dEe = (e) => ({ value: r, children: n }) => { + const i = ve(r), o = ve(0), [a, s] = Ie(null); a && (a(r), s(null)); const l = ve(); if (!l.current) { @@ -42353,7 +42394,7 @@ const pS = Symbol(), Zxe = Symbol(), Qxe = typeof window > "u" || /ServerSideRen })), c.forEach((p) => p(f)), d(); }; l.current = { - [pS]: { + [vS]: { /* "v"alue */ v: i, /* versio"n" */ @@ -42365,17 +42406,17 @@ const pS = Symbol(), Zxe = Symbol(), Qxe = typeof window > "u" || /ServerSideRen } }; } - return CU(() => { - i.current = r, o.current += 1, Jxe(() => { - l.current[pS].l.forEach((c) => { + return wU(() => { + i.current = r, o.current += 1, uEe(() => { + l.current[vS].l.forEach((c) => { c({ n: o.current, v: r }); }); }); - }, [r]), uz(e, { value: l.current }, n); -}, tEe = (e) => e; -function rEe(e) { + }, [r]), hz(e, { value: l.current }, n); +}, hEe = (e) => e; +function fEe(e) { const t = Xs({ - [pS]: { + [vS]: { /* "v"alue */ v: { current: e }, /* versio"n" */ @@ -42386,10 +42427,10 @@ function rEe(e) { u: (r) => r() } }); - return t[Zxe] = t.Provider, t.Provider = eEe(t.Provider), delete t.Consumer, t; + return t[lEe] = t.Provider, t.Provider = dEe(t.Provider), delete t.Consumer, t; } -function nEe(e, t) { - const r = Jt(e)[pS]; +function pEe(e, t) { + const r = Jt(e)[vS]; if (typeof process == "object" && process.env.NODE_ENV !== "production" && !r) throw new Error("useContextSelector requires special context"); const { @@ -42399,7 +42440,7 @@ function nEe(e, t) { n: { current: i }, /* "l"isteners */ l: o - } = r, a = t(n), [s, l] = Cre((c, u) => { + } = r, a = t(n), [s, l] = wre((c, u) => { if (!u) return [n, a]; if ("p" in u) @@ -42417,14 +42458,14 @@ function nEe(e, t) { } return [...c]; }, [n, a]); - return Object.is(s[1], a) || l(), CU(() => (o.add(l), () => { + return Object.is(s[1], a) || l(), wU(() => (o.add(l), () => { o.delete(l); }), [o]), s[1]; } -function iEe(e) { - return nEe(e, tEe); +function gEe(e) { + return pEe(e, hEe); } -const oEe = { +const vEe = { light: { "--primary-color": "#49a5aa", // Always keep this in hex format @@ -42471,27 +42512,27 @@ const oEe = { "rgb(179, 179, 179)" ] } -}, SU = rEe( +}, xU = fEe( void 0 ); -function jtt({ +function rrt({ children: e, - appTheme: t = oEe + appTheme: t = vEe }) { - const r = (localStorage == null ? void 0 : localStorage.getItem("appThemeMode")) || "light", [n, i] = Le(r), o = t[n]; + const r = (localStorage == null ? void 0 : localStorage.getItem("appThemeMode")) || "light", [n, i] = Ie(r), o = t[n]; return Bt(() => { Object.entries(o).forEach(([a, s]) => { typeof s == "string" && document.documentElement.style.setProperty(`${a}`, s); }); - }, [o]), /* @__PURE__ */ ne.jsx( - SU.Provider, + }, [o]), /* @__PURE__ */ ee.jsx( + xU.Provider, { value: { appThemeMode: n, setAppThemeMode: i, themeColors: o }, - children: /* @__PURE__ */ ne.jsx( + children: /* @__PURE__ */ ee.jsx( ds, { theme: { @@ -42535,13 +42576,13 @@ function jtt({ } ); } -const aEe = () => { - const e = iEe(SU); +const mEe = () => { + const e = gEe(xU); if (!e) throw new Error("useTheme must be used within a ThemeProvider"); return e; -}, Vm = () => { - const { appThemeMode: e, setAppThemeMode: t, themeColors: r } = aEe(); +}, Gm = () => { + const { appThemeMode: e, setAppThemeMode: t, themeColors: r } = mEe(); return { currentTheme: e, themeColors: r, @@ -42550,8 +42591,8 @@ const aEe = () => { t(e === "light" ? "dark" : "light"); } }; -}, bU = () => { - const [e, t] = Le({ x: 0, y: 0 }), r = ve(null), { themeColors: n } = Vm(), o = ((a) => { +}, EU = () => { + const [e, t] = Ie({ x: 0, y: 0 }), r = ve(null), { themeColors: n } = Gm(), o = ((a) => { const s = parseInt(a.slice(1, 3), 16), l = parseInt(a.slice(3, 5), 16), c = parseInt(a.slice(5, 7), 16); return { r: s, g: l, b: c }; })(n["--primary-color"]); @@ -42588,25 +42629,25 @@ const aEe = () => { return window.addEventListener("mousemove", d), window.addEventListener("resize", h), u(), () => { window.removeEventListener("mousemove", d), window.removeEventListener("resize", h); }; - }, [e, o]), /* @__PURE__ */ ne.jsx("div", { style: { position: "absolute", top: 0, left: 0 }, children: /* @__PURE__ */ ne.jsx("canvas", { ref: r, className: "absolute inset-0" }) }); -}, Utt = ({ + }, [e, o]), /* @__PURE__ */ ee.jsx("div", { style: { position: "absolute", top: 0, left: 0 }, children: /* @__PURE__ */ ee.jsx("canvas", { ref: r, className: "absolute inset-0" }) }); +}, nrt = ({ suggestions: e, handleSendMessage: t, heading: r, subHeading: n }) => { - const [i, o] = Le(""), { themeColors: a } = Vm(), s = ve(null); - return /* @__PURE__ */ ne.jsxs( - Pt, + const [i, o] = Ie(""), { themeColors: a } = Gm(), s = ve(null); + return /* @__PURE__ */ ee.jsxs( + vt, { justify: "space-evenly", align: "center", vertical: !0, style: { height: "90vh" }, children: [ - /* @__PURE__ */ ne.jsx(bU, {}), - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsx(EU, {}), + /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, align: "center", @@ -42615,8 +42656,8 @@ const aEe = () => { zIndex: 1 }, children: [ - /* @__PURE__ */ ne.jsx( - Xt.Title, + /* @__PURE__ */ ee.jsx( + Wt.Title, { level: 2, style: { @@ -42627,8 +42668,8 @@ const aEe = () => { children: r } ), - /* @__PURE__ */ ne.jsx( - Xt.Text, + /* @__PURE__ */ ee.jsx( + Wt.Text, { style: { width: "40vw", @@ -42640,16 +42681,16 @@ const aEe = () => { ] } ), - /* @__PURE__ */ ne.jsxs( - vi, + /* @__PURE__ */ ee.jsxs( + li, { style: { position: "relative", maxWidth: "40vw" }, children: [ - /* @__PURE__ */ ne.jsx( - gw, + /* @__PURE__ */ ee.jsx( + Lf, { style: { position: "absolute", @@ -42666,9 +42707,9 @@ const aEe = () => { children: "Suggestions" } ), - /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, align: "center", gap: 18, children: [ - /* @__PURE__ */ ne.jsx( - Xt.Text, + /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, align: "center", gap: 18, children: [ + /* @__PURE__ */ ee.jsx( + Wt.Text, { style: { marginTop: 0 @@ -42677,15 +42718,15 @@ const aEe = () => { children: "Get started with an example below" } ), - /* @__PURE__ */ ne.jsx( - Pt, + /* @__PURE__ */ ee.jsx( + vt, { gap: 12, style: { width: "100%" }, - children: e.map((l) => /* @__PURE__ */ ne.jsx( - vi, + children: e.map((l) => /* @__PURE__ */ ee.jsx( + li, { style: { width: `calc(100% / ${e.length})`, @@ -42702,8 +42743,8 @@ const aEe = () => { padding: 12 } }, - children: /* @__PURE__ */ ne.jsxs( - Xt.Text, + children: /* @__PURE__ */ ee.jsxs( + Wt.Text, { rootClassName: "three-line-ellipsis", style: { @@ -42724,8 +42765,8 @@ const aEe = () => { ] } ), - /* @__PURE__ */ ne.jsx( - mw, + /* @__PURE__ */ ee.jsx( + zm, { inputRef: s, userQuery: i, @@ -42738,7 +42779,7 @@ const aEe = () => { ] } ); -}, sEe = ({ +}, yEe = ({ inputRef: e, userQuery: t, setUserQuery: r, @@ -42755,15 +42796,15 @@ const aEe = () => { const h = t.trim().length === 0 || o, f = (p) => { p.key === "Enter" && !p.shiftKey && (p.stopPropagation(), p.preventDefault(), h || n()); }; - return /* @__PURE__ */ ne.jsx( - Pt, + return /* @__PURE__ */ ee.jsx( + vt, { vertical: !0, style: { width: "50vw" }, - children: /* @__PURE__ */ ne.jsx( - vi, + children: /* @__PURE__ */ ee.jsx( + li, { size: "small", bordered: !0, @@ -42775,9 +42816,9 @@ const aEe = () => { padding: 16 } }, - children: /* @__PURE__ */ ne.jsx(Pt, { justify: "space-between", gap: 12, children: /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, style: { width: "100%" }, gap: 16, children: [ - /* @__PURE__ */ ne.jsxs( - Pt, + children: /* @__PURE__ */ ee.jsx(vt, { justify: "space-between", gap: 12, children: /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, style: { width: "100%" }, gap: 16, children: [ + /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, gap: 4, @@ -42785,8 +42826,8 @@ const aEe = () => { width: "100%" }, children: [ - /* @__PURE__ */ ne.jsx( - Xt.Text, + /* @__PURE__ */ ee.jsx( + Wt.Text, { type: "secondary", style: { @@ -42795,8 +42836,8 @@ const aEe = () => { children: "I want to run my campaign for" } ), - /* @__PURE__ */ ne.jsx( - sw, + /* @__PURE__ */ ee.jsx( + cw, { style: { width: "100%" }, ref: e, @@ -42809,8 +42850,8 @@ const aEe = () => { onKeyDown: f } ), - /* @__PURE__ */ ne.jsx(Pt, { align: "flex-end", justify: "flex-end", children: /* @__PURE__ */ ne.jsxs( - Xt.Text, + /* @__PURE__ */ ee.jsx(vt, { align: "flex-end", justify: "flex-end", children: /* @__PURE__ */ ee.jsxs( + Wt.Text, { type: "secondary", style: { @@ -42821,8 +42862,8 @@ const aEe = () => { children: [ "Use", " ", - /* @__PURE__ */ ne.jsx( - Xt.Text, + /* @__PURE__ */ ee.jsx( + Wt.Text, { type: "secondary", style: { @@ -42843,10 +42884,10 @@ const aEe = () => { ] } ), - /* @__PURE__ */ ne.jsxs(Pt, { align: "center", justify: "space-between", children: [ - /* @__PURE__ */ ne.jsxs(Pt, { gap: 4, align: "center", children: [ - /* @__PURE__ */ ne.jsx( - Xt.Text, + /* @__PURE__ */ ee.jsxs(vt, { align: "center", justify: "space-between", children: [ + /* @__PURE__ */ ee.jsxs(vt, { gap: 4, align: "center", children: [ + /* @__PURE__ */ ee.jsx( + Wt.Text, { type: "secondary", style: { @@ -42855,12 +42896,12 @@ const aEe = () => { children: "Targetting users in" } ), - /* @__PURE__ */ ne.jsx( + /* @__PURE__ */ ee.jsx( bo, { size: "small", variant: "borderless", - suffixIcon: /* @__PURE__ */ ne.jsx(TD, {}), + suffixIcon: /* @__PURE__ */ ee.jsx(T2, {}), value: u, onChange: l, options: a, @@ -42868,8 +42909,8 @@ const aEe = () => { showSearch: !0 } ), - /* @__PURE__ */ ne.jsx( - Xt.Text, + /* @__PURE__ */ ee.jsx( + Wt.Text, { type: "secondary", style: { @@ -42878,12 +42919,12 @@ const aEe = () => { children: "speaking" } ), - /* @__PURE__ */ ne.jsx( + /* @__PURE__ */ ee.jsx( bo, { size: "small", variant: "borderless", - suffixIcon: /* @__PURE__ */ ne.jsx(MD, {}), + suffixIcon: /* @__PURE__ */ ee.jsx(M2, {}), value: d, onChange: c, options: s, @@ -42892,14 +42933,14 @@ const aEe = () => { } ) ] }), - /* @__PURE__ */ ne.jsx( - kr, + /* @__PURE__ */ ee.jsx( + Fr, { disabled: h, size: "middle", type: "primary", onClick: n, - icon: /* @__PURE__ */ ne.jsx(_D, { weight: "bold" }), + icon: /* @__PURE__ */ ee.jsx(_2, { weight: "bold" }), children: "Search" } ) @@ -42909,7 +42950,7 @@ const aEe = () => { ) } ); -}, Ktt = ({ +}, irt = ({ handleSendMessage: e, heading: t, subHeading: r, @@ -42921,18 +42962,18 @@ const aEe = () => { countrySelected: l, languageSelected: c }) => { - const [u, d] = Le(""), h = ve(null); - return /* @__PURE__ */ ne.jsxs( - Pt, + const [u, d] = Ie(""), h = ve(null); + return /* @__PURE__ */ ee.jsxs( + vt, { justify: "space-evenly", align: "center", vertical: !0, style: { height: "100vh" }, children: [ - /* @__PURE__ */ ne.jsx(bU, {}), - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsx(EU, {}), + /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, align: "center", @@ -42941,8 +42982,8 @@ const aEe = () => { zIndex: 1 }, children: [ - /* @__PURE__ */ ne.jsx( - Xt.Title, + /* @__PURE__ */ ee.jsx( + Wt.Title, { level: 2, style: { @@ -42953,8 +42994,8 @@ const aEe = () => { children: t } ), - /* @__PURE__ */ ne.jsx( - Xt.Text, + /* @__PURE__ */ ee.jsx( + Wt.Text, { style: { width: "40vw", @@ -42966,8 +43007,8 @@ const aEe = () => { ] } ), - /* @__PURE__ */ ne.jsx( - sEe, + /* @__PURE__ */ ee.jsx( + yEe, { inputRef: h, userQuery: u, @@ -42988,10 +43029,10 @@ const aEe = () => { } ); }; -function lEe() { - return /* @__PURE__ */ ne.jsxs(Pt, { style: { width: "90%" }, align: "flex-start", gap: 8, children: [ - /* @__PURE__ */ ne.jsx( - ip, +function CEe() { + return /* @__PURE__ */ ee.jsxs(vt, { style: { width: "90%" }, align: "flex-start", gap: 8, children: [ + /* @__PURE__ */ ee.jsx( + ap, { className: "ai-icon-rotate", src: "/ai-icon.svg", @@ -43003,27 +43044,27 @@ function lEe() { } } ), - /* @__PURE__ */ ne.jsx(Xl, { active: !0 }) + /* @__PURE__ */ ee.jsx(el, { active: !0 }) ] }); } -function cEe(e, t) { +function SEe(e, t) { const r = {}; return (e[e.length - 1] === "" ? [...e, ""] : e).join( (r.padRight ? " " : "") + "," + (r.padLeft === !1 ? "" : " ") ).trim(); } -const uEe = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, dEe = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, hEe = {}; -function _$(e, t) { - return (hEe.jsx ? dEe : uEe).test(e); +const bEe = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, wEe = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, xEe = {}; +function D$(e, t) { + return (xEe.jsx ? wEe : bEe).test(e); } -const fEe = /[ \t\n\f\r]/g; -function pEe(e) { - return typeof e == "object" ? e.type === "text" ? M$(e.value) : !1 : M$(e); +const EEe = /[ \t\n\f\r]/g; +function REe(e) { + return typeof e == "object" ? e.type === "text" ? I$(e.value) : !1 : I$(e); } -function M$(e) { - return e.replace(fEe, "") === ""; +function I$(e) { + return e.replace(EEe, "") === ""; } -class Hm { +class Wm { /** * @constructor * @param {Properties} property @@ -43034,15 +43075,15 @@ class Hm { this.property = t, this.normal = r, n && (this.space = n); } } -Hm.prototype.property = {}; -Hm.prototype.normal = {}; -Hm.prototype.space = null; -function wU(e, t) { +Wm.prototype.property = {}; +Wm.prototype.normal = {}; +Wm.prototype.space = null; +function RU(e, t) { const r = {}, n = {}; let i = -1; for (; ++i < e.length; ) Object.assign(r, e[i].property), Object.assign(n, e[i].normal); - return new Hm(r, n, t); + return new Wm(r, n, t); } function n_(e) { return e.toLowerCase(); @@ -43067,10 +43108,10 @@ Ma.prototype.spaceSeparated = !1; Ma.prototype.commaOrSpaceSeparated = !1; Ma.prototype.mustUseProperty = !1; Ma.prototype.defined = !1; -let gEe = 0; -const pr = Wd(), Un = Wd(), xU = Wd(), ot = Wd(), vn = Wd(), ff = Wd(), Ao = Wd(); +let PEe = 0; +const pr = Wd(), Un = Wd(), PU = Wd(), ot = Wd(), vn = Wd(), ff = Wd(), Ao = Wd(); function Wd() { - return 2 ** ++gEe; + return 2 ** ++PEe; } const i_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, @@ -43079,10 +43120,10 @@ const i_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ commaOrSpaceSeparated: Ao, commaSeparated: ff, number: ot, - overloadedBoolean: xU, + overloadedBoolean: PU, spaceSeparated: vn }, Symbol.toStringTag, { value: "Module" })), Sx = Object.keys(i_); -class o2 extends Ma { +class oI extends Ma { /** * @constructor * @param {string} property @@ -43092,24 +43133,24 @@ class o2 extends Ma { */ constructor(t, r, n, i) { let o = -1; - if (super(t, r), D$(this, "space", i), typeof n == "number") + if (super(t, r), A$(this, "space", i), typeof n == "number") for (; ++o < Sx.length; ) { const a = Sx[o]; - D$(this, Sx[o], (n & i_[a]) === i_[a]); + A$(this, Sx[o], (n & i_[a]) === i_[a]); } } } -o2.prototype.defined = !0; -function D$(e, t, r) { +oI.prototype.defined = !0; +function A$(e, t, r) { r && (e[t] = r); } -const vEe = {}.hasOwnProperty; -function sp(e) { +const TEe = {}.hasOwnProperty; +function cp(e) { const t = {}, r = {}; let n; for (n in e.properties) - if (vEe.call(e.properties, n)) { - const i = e.properties[n], o = new o2( + if (TEe.call(e.properties, n)) { + const i = e.properties[n], o = new oI( n, e.transform(e.attributes || {}, n), i, @@ -43117,9 +43158,9 @@ function sp(e) { ); e.mustUseProperty && e.mustUseProperty.includes(n) && (o.mustUseProperty = !0), t[n] = o, r[n_(n)] = n, r[n_(o.attribute)] = n; } - return new Hm(t, r, e.space); + return new Wm(t, r, e.space); } -const EU = sp({ +const TU = cp({ space: "xlink", transform(e, t) { return "xlink:" + t.slice(5).toLowerCase(); @@ -43133,25 +43174,25 @@ const EU = sp({ xLinkTitle: null, xLinkType: null } -}), RU = sp({ +}), _U = cp({ space: "xml", transform(e, t) { return "xml:" + t.slice(3).toLowerCase(); }, properties: { xmlLang: null, xmlBase: null, xmlSpace: null } }); -function PU(e, t) { +function MU(e, t) { return t in e ? e[t] : t; } -function TU(e, t) { - return PU(e, t.toLowerCase()); +function DU(e, t) { + return MU(e, t.toLowerCase()); } -const _U = sp({ +const IU = cp({ space: "xmlns", attributes: { xmlnsxlink: "xmlns:xlink" }, - transform: TU, + transform: DU, properties: { xmlns: null, xmlnsXLink: null } -}), MU = sp({ +}), AU = cp({ transform(e, t) { return t === "role" ? t : "aria-" + t.slice(4).toLowerCase(); }, @@ -43206,7 +43247,7 @@ const _U = sp({ ariaValueText: null, role: null } -}), mEe = sp({ +}), _Ee = cp({ space: "html", attributes: { acceptcharset: "accept-charset", @@ -43214,7 +43255,7 @@ const _U = sp({ htmlfor: "for", httpequiv: "http-equiv" }, - transform: TU, + transform: DU, mustUseProperty: ["checked", "multiple", "muted", "selected"], properties: { // Standard Properties. @@ -43256,7 +43297,7 @@ const _U = sp({ dir: null, dirName: null, disabled: pr, - download: xU, + download: PU, draggable: Un, encType: null, enterKeyHint: null, @@ -43567,7 +43608,7 @@ const _U = sp({ security: null, unselectable: null } -}), yEe = sp({ +}), MEe = cp({ space: "svg", attributes: { accentHeight: "accent-height", @@ -43744,7 +43785,7 @@ const _U = sp({ playbackOrder: "playbackorder", timelineBegin: "timelinebegin" }, - transform: PU, + transform: MU, properties: { about: Ao, accentHeight: ot, @@ -44126,34 +44167,34 @@ const _U = sp({ z: null, zoomAndPan: null } -}), CEe = /^data[-\w.:]+$/i, I$ = /-[a-z]/g, SEe = /[A-Z]/g; -function bEe(e, t) { +}), DEe = /^data[-\w.:]+$/i, O$ = /-[a-z]/g, IEe = /[A-Z]/g; +function AEe(e, t) { const r = n_(t); let n = t, i = Ma; if (r in e.normal) return e.property[e.normal[r]]; - if (r.length > 4 && r.slice(0, 4) === "data" && CEe.test(t)) { + if (r.length > 4 && r.slice(0, 4) === "data" && DEe.test(t)) { if (t.charAt(4) === "-") { - const o = t.slice(5).replace(I$, xEe); + const o = t.slice(5).replace(O$, LEe); n = "data" + o.charAt(0).toUpperCase() + o.slice(1); } else { const o = t.slice(4); - if (!I$.test(o)) { - let a = o.replace(SEe, wEe); + if (!O$.test(o)) { + let a = o.replace(IEe, OEe); a.charAt(0) !== "-" && (a = "-" + a), t = "data" + a; } } - i = o2; + i = oI; } return new i(n, t); } -function wEe(e) { +function OEe(e) { return "-" + e.toLowerCase(); } -function xEe(e) { +function LEe(e) { return e.charAt(1).toUpperCase(); } -const EEe = { +const FEe = { classId: "classID", dataType: "datatype", itemId: "itemID", @@ -44171,21 +44212,21 @@ const EEe = { xLinkTitle: "xlinkTitle", xLinkType: "xlinkType", xmlnsXLink: "xmlnsXlink" -}, REe = wU([RU, EU, _U, MU, mEe], "html"), a2 = wU([RU, EU, _U, MU, yEe], "svg"); -function PEe(e) { +}, NEe = RU([_U, TU, IU, AU, _Ee], "html"), aI = RU([_U, TU, IU, AU, MEe], "svg"); +function kEe(e) { return e.join(" ").trim(); } -var DU = {}, A$ = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, TEe = /\n/g, _Ee = /^\s*/, MEe = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, DEe = /^:\s*/, IEe = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, AEe = /^[;\s]*/, OEe = /^\s+|\s+$/g, LEe = ` -`, O$ = "/", L$ = "*", zu = "", FEe = "comment", NEe = "declaration", kEe = function(e, t) { +var OU = {}, L$ = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, $Ee = /\n/g, BEe = /^\s*/, VEe = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, HEe = /^:\s*/, zEe = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, GEe = /^[;\s]*/, WEe = /^\s+|\s+$/g, jEe = ` +`, F$ = "/", N$ = "*", zu = "", UEe = "comment", KEe = "declaration", YEe = function(e, t) { if (typeof e != "string") throw new TypeError("First argument must be a string"); if (!e) return []; t = t || {}; var r = 1, n = 1; function i(p) { - var g = p.match(TEe); + var g = p.match($Ee); g && (r += g.length); - var v = p.lastIndexOf(LEe); + var v = p.lastIndexOf(jEe); n = ~v ? p.length - v : n + p.length; } function o() { @@ -44212,7 +44253,7 @@ var DU = {}, A$ = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, TEe = /\n/g, _Ee = /^\s*/, } } function c() { - l(_Ee); + l(BEe); } function u(p) { var g; @@ -44222,28 +44263,28 @@ var DU = {}, A$ = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, TEe = /\n/g, _Ee = /^\s*/, } function d() { var p = o(); - if (!(O$ != e.charAt(0) || L$ != e.charAt(1))) { - for (var g = 2; zu != e.charAt(g) && (L$ != e.charAt(g) || O$ != e.charAt(g + 1)); ) + if (!(F$ != e.charAt(0) || N$ != e.charAt(1))) { + for (var g = 2; zu != e.charAt(g) && (N$ != e.charAt(g) || F$ != e.charAt(g + 1)); ) ++g; if (g += 2, zu === e.charAt(g - 1)) return s("End of comment missing"); var v = e.slice(2, g - 2); return n += 2, i(v), e = e.slice(g), n += 2, p({ - type: FEe, + type: UEe, comment: v }); } } function h() { - var p = o(), g = l(MEe); + var p = o(), g = l(VEe); if (g) { - if (d(), !l(DEe)) return s("property missing ':'"); - var v = l(IEe), m = p({ - type: NEe, - property: F$(g[0].replace(A$, zu)), - value: v ? F$(v[0].replace(A$, zu)) : zu + if (d(), !l(HEe)) return s("property missing ':'"); + var v = l(zEe), m = p({ + type: KEe, + property: k$(g[0].replace(L$, zu)), + value: v ? k$(v[0].replace(L$, zu)) : zu }); - return l(AEe), m; + return l(GEe), m; } } function f() { @@ -44255,19 +44296,19 @@ var DU = {}, A$ = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, TEe = /\n/g, _Ee = /^\s*/, } return c(), f(); }; -function F$(e) { - return e ? e.replace(OEe, zu) : zu; +function k$(e) { + return e ? e.replace(WEe, zu) : zu; } -var $Ee = GC && GC.__importDefault || function(e) { +var qEe = UC && UC.__importDefault || function(e) { return e && e.__esModule ? e : { default: e }; }; -Object.defineProperty(DU, "__esModule", { value: !0 }); -var BEe = $Ee(kEe); -function VEe(e, t) { +Object.defineProperty(OU, "__esModule", { value: !0 }); +var XEe = qEe(YEe); +function ZEe(e, t) { var r = null; if (!e || typeof e != "string") return r; - var n = (0, BEe.default)(e), i = typeof t == "function"; + var n = (0, XEe.default)(e), i = typeof t == "function"; return n.forEach(function(o) { if (o.type === "declaration") { var a = o.property, s = o.value; @@ -44275,9 +44316,9 @@ function VEe(e, t) { } }), r; } -var N$ = DU.default = VEe; -const HEe = N$.default || N$, IU = AU("end"), s2 = AU("start"); -function AU(e) { +var $$ = OU.default = ZEe; +const QEe = $$.default || $$, LU = FU("end"), sI = FU("start"); +function FU(e) { return t; function t(r) { const n = r && r.position && r.position[e] || {}; @@ -44289,21 +44330,21 @@ function AU(e) { }; } } -function zEe(e) { - const t = s2(e), r = IU(e); +function JEe(e) { + const t = sI(e), r = LU(e); if (t && r) return { start: t, end: r }; } -function Yg(e) { - return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? k$(e.position) : "start" in e || "end" in e ? k$(e) : "line" in e || "column" in e ? o_(e) : ""; +function Xg(e) { + return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? B$(e.position) : "start" in e || "end" in e ? B$(e) : "line" in e || "column" in e ? o_(e) : ""; } function o_(e) { - return $$(e && e.line) + ":" + $$(e && e.column); + return V$(e && e.line) + ":" + V$(e && e.column); } -function k$(e) { +function B$(e) { return o_(e && e.start) + "-" + o_(e && e.end); } -function $$(e) { +function V$(e) { return e && typeof e == "number" ? e : 1; } class Bi extends Error { @@ -44377,7 +44418,7 @@ class Bi extends Error { l && (o.place = l.position); } const s = o.place && "start" in o.place ? o.place.start : o.place; - this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = s ? s.line : void 0, this.name = Yg(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = a && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual, this.expected, this.note, this.url; + this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = s ? s.line : void 0, this.name = Xg(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = a && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual, this.expected, this.note, this.url; } } Bi.prototype.file = ""; @@ -44393,8 +44434,8 @@ Bi.prototype.fatal = void 0; Bi.prototype.place = void 0; Bi.prototype.ruleId = void 0; Bi.prototype.source = void 0; -const l2 = {}.hasOwnProperty, GEe = /* @__PURE__ */ new Map(), WEe = /[A-Z]/g, jEe = /-([a-z])/g, UEe = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), KEe = /* @__PURE__ */ new Set(["td", "th"]), OU = "https://github.com/syntax-tree/hast-util-to-jsx-runtime"; -function YEe(e, t) { +const lI = {}.hasOwnProperty, eRe = /* @__PURE__ */ new Map(), tRe = /[A-Z]/g, rRe = /-([a-z])/g, nRe = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), iRe = /* @__PURE__ */ new Set(["td", "th"]), NU = "https://github.com/syntax-tree/hast-util-to-jsx-runtime"; +function oRe(e, t) { if (!t || t.Fragment === void 0) throw new TypeError("Expected `Fragment` in options"); const r = t.filePath || void 0; @@ -44404,13 +44445,13 @@ function YEe(e, t) { throw new TypeError( "Expected `jsxDEV` in options when `development: true`" ); - n = rRe(r, t.jsxDEV); + n = fRe(r, t.jsxDEV); } else { if (typeof t.jsx != "function") throw new TypeError("Expected `jsx` in production options"); if (typeof t.jsxs != "function") throw new TypeError("Expected `jsxs` in production options"); - n = tRe(r, t.jsx, t.jsxs); + n = hRe(r, t.jsx, t.jsxs); } const i = { Fragment: t.Fragment, @@ -44423,10 +44464,10 @@ function YEe(e, t) { ignoreInvalidStyle: t.ignoreInvalidStyle || !1, passKeys: t.passKeys !== !1, passNode: t.passNode || !1, - schema: t.space === "svg" ? a2 : REe, + schema: t.space === "svg" ? aI : NEe, stylePropertyNameCase: t.stylePropertyNameCase || "dom", tableCellAlignToStyle: t.tableCellAlignToStyle !== !1 - }, o = LU(i, e, void 0); + }, o = kU(i, e, void 0); return o && typeof o != "string" ? o : i.create( e, i.Fragment, @@ -44434,80 +44475,80 @@ function YEe(e, t) { void 0 ); } -function LU(e, t, r) { +function kU(e, t, r) { if (t.type === "element") - return qEe(e, t, r); + return aRe(e, t, r); if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") - return XEe(e, t); + return sRe(e, t); if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") - return QEe(e, t, r); + return cRe(e, t, r); if (t.type === "mdxjsEsm") - return ZEe(e, t); + return lRe(e, t); if (t.type === "root") - return JEe(e, t, r); + return uRe(e, t, r); if (t.type === "text") - return eRe(e, t); + return dRe(e, t); } -function qEe(e, t, r) { +function aRe(e, t, r) { const n = e.schema; let i = n; - t.tagName.toLowerCase() === "svg" && n.space === "html" && (i = a2, e.schema = i), e.ancestors.push(t); - const o = NU(e, t.tagName, !1), a = nRe(e, t); - let s = u2(e, t); - return UEe.has(t.tagName) && (s = s.filter(function(l) { - return typeof l == "string" ? !pEe(l) : !0; - })), FU(e, a, o, t), c2(a, s), e.ancestors.pop(), e.schema = n, e.create(t, o, a, r); -} -function XEe(e, t) { + t.tagName.toLowerCase() === "svg" && n.space === "html" && (i = aI, e.schema = i), e.ancestors.push(t); + const o = BU(e, t.tagName, !1), a = pRe(e, t); + let s = uI(e, t); + return nRe.has(t.tagName) && (s = s.filter(function(l) { + return typeof l == "string" ? !REe(l) : !0; + })), $U(e, a, o, t), cI(a, s), e.ancestors.pop(), e.schema = n, e.create(t, o, a, r); +} +function sRe(e, t) { if (t.data && t.data.estree && e.evaluater) { const n = t.data.estree.body[0]; return n.type, /** @type {Child | undefined} */ e.evaluater.evaluateExpression(n.expression); } - Nv(e, t.position); + Bv(e, t.position); } -function ZEe(e, t) { +function lRe(e, t) { if (t.data && t.data.estree && e.evaluater) return ( /** @type {Child | undefined} */ e.evaluater.evaluateProgram(t.data.estree) ); - Nv(e, t.position); + Bv(e, t.position); } -function QEe(e, t, r) { +function cRe(e, t, r) { const n = e.schema; let i = n; - t.name === "svg" && n.space === "html" && (i = a2, e.schema = i), e.ancestors.push(t); - const o = t.name === null ? e.Fragment : NU(e, t.name, !0), a = iRe(e, t), s = u2(e, t); - return FU(e, a, o, t), c2(a, s), e.ancestors.pop(), e.schema = n, e.create(t, o, a, r); + t.name === "svg" && n.space === "html" && (i = aI, e.schema = i), e.ancestors.push(t); + const o = t.name === null ? e.Fragment : BU(e, t.name, !0), a = gRe(e, t), s = uI(e, t); + return $U(e, a, o, t), cI(a, s), e.ancestors.pop(), e.schema = n, e.create(t, o, a, r); } -function JEe(e, t, r) { +function uRe(e, t, r) { const n = {}; - return c2(n, u2(e, t)), e.create(t, e.Fragment, n, r); + return cI(n, uI(e, t)), e.create(t, e.Fragment, n, r); } -function eRe(e, t) { +function dRe(e, t) { return t.value; } -function FU(e, t, r, n) { +function $U(e, t, r, n) { typeof r != "string" && r !== e.Fragment && e.passNode && (t.node = n); } -function c2(e, t) { +function cI(e, t) { if (t.length > 0) { const r = t.length > 1 ? t : t[0]; r && (e.children = r); } } -function tRe(e, t, r) { +function hRe(e, t, r) { return n; function n(i, o, a, s) { const c = Array.isArray(a.children) ? r : t; return s ? c(o, a, s) : c(o, a); } } -function rRe(e, t) { +function fRe(e, t) { return r; function r(n, i, o, a) { - const s = Array.isArray(o.children), l = s2(n); + const s = Array.isArray(o.children), l = sI(n); return t( i, o, @@ -44522,15 +44563,15 @@ function rRe(e, t) { ); } } -function nRe(e, t) { +function pRe(e, t) { const r = {}; let n, i; for (i in t.properties) - if (i !== "children" && l2.call(t.properties, i)) { - const o = oRe(e, i, t.properties[i]); + if (i !== "children" && lI.call(t.properties, i)) { + const o = vRe(e, i, t.properties[i]); if (o) { const [a, s] = o; - e.tableCellAlignToStyle && a === "align" && typeof s == "string" && KEe.has(t.tagName) ? n = s : r[a] = s; + e.tableCellAlignToStyle && a === "align" && typeof s == "string" && iRe.has(t.tagName) ? n = s : r[a] = s; } } if (n) { @@ -44542,7 +44583,7 @@ function nRe(e, t) { } return r; } -function iRe(e, t) { +function gRe(e, t) { const r = {}; for (const n of t.attributes) if (n.type === "mdxJsxExpressionAttribute") @@ -44557,7 +44598,7 @@ function iRe(e, t) { e.evaluater.evaluateExpression(s.argument) ); } else - Nv(e, t.position); + Bv(e, t.position); else { const i = n.name; let o; @@ -44566,7 +44607,7 @@ function iRe(e, t) { const s = n.value.data.estree.body[0]; s.type, o = e.evaluater.evaluateExpression(s.expression); } else - Nv(e, t.position); + Bv(e, t.position); else o = n.value === null ? !0 : n.value; r[i] = /** @type {Props[keyof Props]} */ @@ -44574,10 +44615,10 @@ function iRe(e, t) { } return r; } -function u2(e, t) { +function uI(e, t) { const r = []; let n = -1; - const i = e.passKeys ? /* @__PURE__ */ new Map() : GEe; + const i = e.passKeys ? /* @__PURE__ */ new Map() : eRe; for (; ++n < t.children.length; ) { const o = t.children[n]; let a; @@ -44588,28 +44629,28 @@ function u2(e, t) { a = l + "-" + c, i.set(l, c + 1); } } - const s = LU(e, o, a); + const s = kU(e, o, a); s !== void 0 && r.push(s); } return r; } -function oRe(e, t, r) { - const n = bEe(e.schema, t); +function vRe(e, t, r) { + const n = AEe(e.schema, t); if (!(r == null || typeof r == "number" && Number.isNaN(r))) { - if (Array.isArray(r) && (r = n.commaSeparated ? cEe(r) : PEe(r)), n.property === "style") { - let i = typeof r == "object" ? r : aRe(e, String(r)); - return e.stylePropertyNameCase === "css" && (i = sRe(i)), ["style", i]; + if (Array.isArray(r) && (r = n.commaSeparated ? SEe(r) : kEe(r)), n.property === "style") { + let i = typeof r == "object" ? r : mRe(e, String(r)); + return e.stylePropertyNameCase === "css" && (i = yRe(i)), ["style", i]; } return [ - e.elementAttributeNameCase === "react" && n.space ? EEe[n.property] || n.property : n.attribute, + e.elementAttributeNameCase === "react" && n.space ? FEe[n.property] || n.property : n.attribute, r ]; } } -function aRe(e, t) { +function mRe(e, t) { const r = {}; try { - HEe(t, n); + QEe(t, n); } catch (i) { if (!e.ignoreInvalidStyle) { const o = ( @@ -44621,16 +44662,16 @@ function aRe(e, t) { ruleId: "style", source: "hast-util-to-jsx-runtime" }); - throw a.file = e.filePath || void 0, a.url = OU + "#cannot-parse-style-attribute", a; + throw a.file = e.filePath || void 0, a.url = NU + "#cannot-parse-style-attribute", a; } } return r; function n(i, o) { let a = i; - a.slice(0, 2) !== "--" && (a.slice(0, 4) === "-ms-" && (a = "ms-" + a.slice(4)), a = a.replace(jEe, cRe)), r[a] = o; + a.slice(0, 2) !== "--" && (a.slice(0, 4) === "-ms-" && (a = "ms-" + a.slice(4)), a = a.replace(rRe, SRe)), r[a] = o; } } -function NU(e, t, r) { +function BU(e, t, r) { let n; if (!r) n = { type: "Literal", value: t }; @@ -44638,7 +44679,7 @@ function NU(e, t, r) { const i = t.split("."); let o = -1, a; for (; ++o < i.length; ) { - const s = _$(i[o]) ? { type: "Identifier", name: i[o] } : { type: "Literal", value: i[o] }; + const s = D$(i[o]) ? { type: "Identifier", name: i[o] } : { type: "Literal", value: i[o] }; a = a ? { type: "MemberExpression", object: a, @@ -44649,19 +44690,19 @@ function NU(e, t, r) { } n = a; } else - n = _$(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t }; + n = D$(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t }; if (n.type === "Literal") { const i = ( /** @type {keyof JSX.IntrinsicElements} */ n.value ); - return l2.call(e.components, i) ? e.components[i] : i; + return lI.call(e.components, i) ? e.components[i] : i; } if (e.evaluater) return e.evaluater.evaluateExpression(n); - Nv(e); + Bv(e); } -function Nv(e, t) { +function Bv(e, t) { const r = new Bi( "Cannot handle MDX estrees without `createEvaluater`", { @@ -44671,23 +44712,23 @@ function Nv(e, t) { source: "hast-util-to-jsx-runtime" } ); - throw r.file = e.filePath || void 0, r.url = OU + "#cannot-handle-mdx-estrees-without-createevaluater", r; + throw r.file = e.filePath || void 0, r.url = NU + "#cannot-handle-mdx-estrees-without-createevaluater", r; } -function sRe(e) { +function yRe(e) { const t = {}; let r; for (r in e) - l2.call(e, r) && (t[lRe(r)] = e[r]); + lI.call(e, r) && (t[CRe(r)] = e[r]); return t; } -function lRe(e) { - let t = e.replace(WEe, uRe); +function CRe(e) { + let t = e.replace(tRe, bRe); return t.slice(0, 3) === "ms-" && (t = "-" + t), t; } -function cRe(e, t) { +function SRe(e, t) { return t.toUpperCase(); } -function uRe(e) { +function bRe(e) { return "-" + e.toLowerCase(); } const bx = { @@ -44712,40 +44753,40 @@ const bx = { "track", "video" ] -}, dRe = {}; -function hRe(e, t) { - const r = dRe, n = typeof r.includeImageAlt == "boolean" ? r.includeImageAlt : !0, i = typeof r.includeHtml == "boolean" ? r.includeHtml : !0; - return kU(e, n, i); +}, wRe = {}; +function xRe(e, t) { + const r = wRe, n = typeof r.includeImageAlt == "boolean" ? r.includeImageAlt : !0, i = typeof r.includeHtml == "boolean" ? r.includeHtml : !0; + return VU(e, n, i); } -function kU(e, t, r) { - if (fRe(e)) { +function VU(e, t, r) { + if (ERe(e)) { if ("value" in e) return e.type === "html" && !r ? "" : e.value; if (t && "alt" in e && e.alt) return e.alt; if ("children" in e) - return B$(e.children, t, r); + return H$(e.children, t, r); } - return Array.isArray(e) ? B$(e, t, r) : ""; + return Array.isArray(e) ? H$(e, t, r) : ""; } -function B$(e, t, r) { +function H$(e, t, r) { const n = []; let i = -1; for (; ++i < e.length; ) - n[i] = kU(e[i], t, r); + n[i] = VU(e[i], t, r); return n.join(""); } -function fRe(e) { +function ERe(e) { return !!(e && typeof e == "object"); } -const V$ = document.createElement("i"); -function d2(e) { +const z$ = document.createElement("i"); +function dI(e) { const t = "&" + e + ";"; - V$.innerHTML = t; - const r = V$.textContent; + z$.innerHTML = t; + const r = z$.textContent; return r.charCodeAt(r.length - 1) === 59 && e !== "semi" || r === t ? !1 : r; } -function $l(e, t, r, n) { +function Bl(e, t, r, n) { const i = e.length; let o = 0, a; if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, r = r > 0 ? r : 0, n.length < 1e4) @@ -44755,26 +44796,26 @@ function $l(e, t, r, n) { a = n.slice(o, o + 1e4), a.unshift(t, 0), e.splice(...a), o += 1e4, t += 1e4; } function da(e, t) { - return e.length > 0 ? ($l(e, e.length, 0, t), e) : t; + return e.length > 0 ? (Bl(e, e.length, 0, t), e) : t; } -const H$ = {}.hasOwnProperty; -function pRe(e) { +const G$ = {}.hasOwnProperty; +function RRe(e) { const t = {}; let r = -1; for (; ++r < e.length; ) - gRe(t, e[r]); + PRe(t, e[r]); return t; } -function gRe(e, t) { +function PRe(e, t) { let r; for (r in t) { - const i = (H$.call(e, r) ? e[r] : void 0) || (e[r] = {}), o = t[r]; + const i = (G$.call(e, r) ? e[r] : void 0) || (e[r] = {}), o = t[r]; let a; if (o) for (a in o) { - H$.call(i, a) || (i[a] = []); + G$.call(i, a) || (i[a] = []); const s = o[a]; - vRe( + TRe( // @ts-expect-error Looks like a list. i[a], Array.isArray(s) ? s : s ? [s] : [] @@ -44782,14 +44823,14 @@ function gRe(e, t) { } } } -function vRe(e, t) { +function TRe(e, t) { let r = -1; const n = []; for (; ++r < t.length; ) (t[r].add === "after" ? e : n).push(t[r]); - $l(e, 0, 0, n); + Bl(e, 0, 0, n); } -function $U(e, t) { +function HU(e, t) { const r = Number.parseInt(e, t); return ( // C0 except for HT, LF, FF, CR, space. @@ -44805,7 +44846,7 @@ function $U(e, t) { function pf(e) { return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase(); } -const Ms = Qc(/[A-Za-z]/), Bo = Qc(/[\dA-Za-z]/), mRe = Qc(/[#-'*+\--9=?A-Z^-~]/); +const Ms = Qc(/[A-Za-z]/), Bo = Qc(/[\dA-Za-z]/), _Re = Qc(/[#-'*+\--9=?A-Z^-~]/); function a_(e) { return ( // Special whitespace codes (which have negative values), C0 and Control @@ -44813,24 +44854,24 @@ function a_(e) { e !== null && (e < 32 || e === 127) ); } -const s_ = Qc(/\d/), yRe = Qc(/[\dA-Fa-f]/), CRe = Qc(/[!-/:-@[-`{-~]/); +const s_ = Qc(/\d/), MRe = Qc(/[\dA-Fa-f]/), DRe = Qc(/[!-/:-@[-`{-~]/); function ir(e) { return e !== null && e < -2; } function Co(e) { return e !== null && (e < 0 || e === 32); } -function Yr(e) { +function qr(e) { return e === -2 || e === -1 || e === 32; } -const SRe = Qc(new RegExp("\\p{P}|\\p{S}", "u")), bRe = Qc(/\s/); +const IRe = Qc(new RegExp("\\p{P}|\\p{S}", "u")), ARe = Qc(/\s/); function Qc(e) { return t; function t(r) { return r !== null && r > -1 && e.test(String.fromCharCode(r)); } } -function lp(e) { +function up(e) { const t = []; let r = -1, n = 0, i = 0; for (; ++r < e.length; ) { @@ -44854,16 +44895,16 @@ function mn(e, t, r, n) { let o = 0; return a; function a(l) { - return Yr(l) ? (e.enter(r), s(l)) : t(l); + return qr(l) ? (e.enter(r), s(l)) : t(l); } function s(l) { - return Yr(l) && o++ < i ? (e.consume(l), s) : (e.exit(r), t(l)); + return qr(l) && o++ < i ? (e.consume(l), s) : (e.exit(r), t(l)); } } -const wRe = { - tokenize: xRe +const ORe = { + tokenize: LRe }; -function xRe(e) { +function LRe(e) { const t = e.attempt( this.parser.constructs.contentInitial, n, @@ -44896,12 +44937,12 @@ function xRe(e) { return ir(s) ? (e.consume(s), e.exit("chunkText"), o) : (e.consume(s), a); } } -const ERe = { - tokenize: RRe -}, z$ = { - tokenize: PRe +const FRe = { + tokenize: NRe +}, W$ = { + tokenize: kRe }; -function RRe(e) { +function NRe(e) { const t = this, r = []; let n = 0, i, o, a; return s; @@ -44930,7 +44971,7 @@ function RRe(e) { let E = b; for (; E < t.events.length; ) t.events[E][1].end = Object.assign({}, x), E++; - return $l( + return Bl( t.events, w + 1, 0, @@ -44948,7 +44989,7 @@ function RRe(e) { t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack); } return t.containerState = {}, e.check( - z$, + W$, u, d )(C); @@ -44961,7 +45002,7 @@ function RRe(e) { } function h(C) { return t.containerState = {}, e.attempt( - z$, + W$, f, p )(C); @@ -45011,7 +45052,7 @@ function RRe(e) { } for (m(n), x = E; x < t.events.length; ) t.events[x][1].end = Object.assign({}, T), x++; - $l( + Bl( t.events, R + 1, 0, @@ -45031,7 +45072,7 @@ function RRe(e) { i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0; } } -function PRe(e, t, r) { +function kRe(e, t, r) { return mn( e, e.attempt(this.parser.constructs.document, t, r), @@ -45039,13 +45080,13 @@ function PRe(e, t, r) { this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4 ); } -function G$(e) { - if (e === null || Co(e) || bRe(e)) +function j$(e) { + if (e === null || Co(e) || ARe(e)) return 1; - if (SRe(e)) + if (IRe(e)) return 2; } -function h2(e, t, r) { +function hI(e, t, r) { const n = []; let i = -1; for (; ++i < e.length; ) { @@ -45056,10 +45097,10 @@ function h2(e, t, r) { } const l_ = { name: "attention", - tokenize: _Re, - resolveAll: TRe + tokenize: BRe, + resolveAll: $Re }; -function TRe(e, t) { +function $Re(e, t) { let r = -1, n, i, o, a, s, l, c, u; for (; ++r < e.length; ) if (e[r][0] === "enter" && e[r][1].type === "attentionSequence" && e[r][1]._close) { @@ -45070,7 +45111,7 @@ function TRe(e, t) { continue; l = e[n][1].end.offset - e[n][1].start.offset > 1 && e[r][1].end.offset - e[r][1].start.offset > 1 ? 2 : 1; const d = Object.assign({}, e[n][1].end), h = Object.assign({}, e[r][1].start); - W$(d, -l), W$(h, l), a = { + U$(d, -l), U$(h, l), a = { type: l > 1 ? "strongSequence" : "emphasisSequence", start: d, end: Object.assign({}, e[n][1].end) @@ -45086,7 +45127,7 @@ function TRe(e, t) { type: l > 1 ? "strong" : "emphasis", start: Object.assign({}, a.start), end: Object.assign({}, s.end) - }, e[n][1].end = Object.assign({}, a.start), e[r][1].start = Object.assign({}, s.end), c = [], e[n][1].end.offset - e[n][1].start.offset && (c = da(c, [["enter", e[n][1], t], ["exit", e[n][1], t]])), c = da(c, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["enter", o, t]]), c = da(c, h2(t.parser.constructs.insideSpan.null, e.slice(n + 1, r), t)), c = da(c, [["exit", o, t], ["enter", s, t], ["exit", s, t], ["exit", i, t]]), e[r][1].end.offset - e[r][1].start.offset ? (u = 2, c = da(c, [["enter", e[r][1], t], ["exit", e[r][1], t]])) : u = 0, $l(e, n - 1, r - n + 3, c), r = n + c.length - u - 2; + }, e[n][1].end = Object.assign({}, a.start), e[r][1].start = Object.assign({}, s.end), c = [], e[n][1].end.offset - e[n][1].start.offset && (c = da(c, [["enter", e[n][1], t], ["exit", e[n][1], t]])), c = da(c, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["enter", o, t]]), c = da(c, hI(t.parser.constructs.insideSpan.null, e.slice(n + 1, r), t)), c = da(c, [["exit", o, t], ["enter", s, t], ["exit", s, t], ["exit", i, t]]), e[r][1].end.offset - e[r][1].start.offset ? (u = 2, c = da(c, [["enter", e[r][1], t], ["exit", e[r][1], t]])) : u = 0, Bl(e, n - 1, r - n + 3, c), r = n + c.length - u - 2; break; } } @@ -45094,8 +45135,8 @@ function TRe(e, t) { e[r][1].type === "attentionSequence" && (e[r][1].type = "data"); return e; } -function _Re(e, t) { - const r = this.parser.constructs.attentionMarkers.null, n = this.previous, i = G$(n); +function BRe(e, t) { + const r = this.parser.constructs.attentionMarkers.null, n = this.previous, i = j$(n); let o; return a; function a(l) { @@ -45104,18 +45145,18 @@ function _Re(e, t) { function s(l) { if (l === o) return e.consume(l), s; - const c = e.exit("attentionSequence"), u = G$(l), d = !u || u === 2 && i || r.includes(l), h = !i || i === 2 && u || r.includes(n); + const c = e.exit("attentionSequence"), u = j$(l), d = !u || u === 2 && i || r.includes(l), h = !i || i === 2 && u || r.includes(n); return c._open = !!(o === 42 ? d : d && (i || !h)), c._close = !!(o === 42 ? h : h && (u || !d)), t(l); } } -function W$(e, t) { +function U$(e, t) { e.column += t, e.offset += t, e._bufferIndex += t; } -const MRe = { +const VRe = { name: "autolink", - tokenize: DRe + tokenize: HRe }; -function DRe(e, t, r) { +function HRe(e, t, r) { let n = 0; return i; function i(f) { @@ -45134,7 +45175,7 @@ function DRe(e, t, r) { return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || a_(f) ? r(f) : (e.consume(f), l); } function c(f) { - return f === 64 ? (e.consume(f), u) : mRe(f) ? (e.consume(f), c) : r(f); + return f === 64 ? (e.consume(f), u) : _Re(f) ? (e.consume(f), c) : r(f); } function u(f) { return Bo(f) ? d(f) : r(f); @@ -45151,27 +45192,27 @@ function DRe(e, t, r) { } } const yw = { - tokenize: IRe, + tokenize: zRe, partial: !0 }; -function IRe(e, t, r) { +function zRe(e, t, r) { return n; function n(o) { - return Yr(o) ? mn(e, i, "linePrefix")(o) : i(o); + return qr(o) ? mn(e, i, "linePrefix")(o) : i(o); } function i(o) { return o === null || ir(o) ? t(o) : r(o); } } -const BU = { +const zU = { name: "blockQuote", - tokenize: ARe, + tokenize: GRe, continuation: { - tokenize: ORe + tokenize: WRe }, - exit: LRe + exit: jRe }; -function ARe(e, t, r) { +function GRe(e, t, r) { const n = this; return i; function i(a) { @@ -45184,40 +45225,40 @@ function ARe(e, t, r) { return r(a); } function o(a) { - return Yr(a) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(a), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(a)); + return qr(a) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(a), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(a)); } } -function ORe(e, t, r) { +function WRe(e, t, r) { const n = this; return i; function i(a) { - return Yr(a) ? mn(e, o, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a) : o(a); + return qr(a) ? mn(e, o, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a) : o(a); } function o(a) { - return e.attempt(BU, t, r)(a); + return e.attempt(zU, t, r)(a); } } -function LRe(e) { +function jRe(e) { e.exit("blockQuote"); } -const VU = { +const GU = { name: "characterEscape", - tokenize: FRe + tokenize: URe }; -function FRe(e, t, r) { +function URe(e, t, r) { return n; function n(o) { return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i; } function i(o) { - return CRe(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : r(o); + return DRe(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : r(o); } } -const HU = { +const WU = { name: "characterReference", - tokenize: NRe + tokenize: KRe }; -function NRe(e, t, r) { +function KRe(e, t, r) { const n = this; let i = 0, o, a; return s; @@ -45228,25 +45269,25 @@ function NRe(e, t, r) { return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), o = 31, a = Bo, u(d)); } function c(d) { - return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, a = yRe, u) : (e.enter("characterReferenceValue"), o = 7, a = s_, u(d)); + return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, a = MRe, u) : (e.enter("characterReferenceValue"), o = 7, a = s_, u(d)); } function u(d) { if (d === 59 && i) { const h = e.exit("characterReferenceValue"); - return a === Bo && !d2(n.sliceSerialize(h)) ? r(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t); + return a === Bo && !dI(n.sliceSerialize(h)) ? r(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t); } return a(d) && i++ < o ? (e.consume(d), u) : r(d); } } -const j$ = { - tokenize: $Re, +const K$ = { + tokenize: qRe, partial: !0 -}, U$ = { +}, Y$ = { name: "codeFenced", - tokenize: kRe, + tokenize: YRe, concrete: !0 }; -function kRe(e, t, r) { +function YRe(e, t, r) { const n = this, i = { tokenize: w, partial: !0 @@ -45261,15 +45302,15 @@ function kRe(e, t, r) { return o = E && E[1].type === "linePrefix" ? E[2].sliceSerialize(E[1], !0).length : 0, s = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(x); } function u(x) { - return x === s ? (a++, e.consume(x), u) : a < 3 ? r(x) : (e.exit("codeFencedFenceSequence"), Yr(x) ? mn(e, d, "whitespace")(x) : d(x)); + return x === s ? (a++, e.consume(x), u) : a < 3 ? r(x) : (e.exit("codeFencedFenceSequence"), qr(x) ? mn(e, d, "whitespace")(x) : d(x)); } function d(x) { - return x === null || ir(x) ? (e.exit("codeFencedFence"), n.interrupt ? t(x) : e.check(j$, g, b)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", { + return x === null || ir(x) ? (e.exit("codeFencedFence"), n.interrupt ? t(x) : e.check(K$, g, b)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", { contentType: "string" }), h(x)); } function h(x) { - return x === null || ir(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(x)) : Yr(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), mn(e, f, "whitespace")(x)) : x === 96 && x === s ? r(x) : (e.consume(x), h); + return x === null || ir(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(x)) : qr(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), mn(e, f, "whitespace")(x)) : x === 96 && x === s ? r(x) : (e.consume(x), h); } function f(x) { return x === null || ir(x) ? d(x) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", { @@ -45286,10 +45327,10 @@ function kRe(e, t, r) { return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), m; } function m(x) { - return o > 0 && Yr(x) ? mn(e, y, "linePrefix", o + 1)(x) : y(x); + return o > 0 && qr(x) ? mn(e, y, "linePrefix", o + 1)(x) : y(x); } function y(x) { - return x === null || ir(x) ? e.check(j$, g, b)(x) : (e.enter("codeFlowValue"), C(x)); + return x === null || ir(x) ? e.check(K$, g, b)(x) : (e.enter("codeFlowValue"), C(x)); } function C(x) { return x === null || ir(x) ? (e.exit("codeFlowValue"), y(x)) : (e.consume(x), C); @@ -45304,20 +45345,20 @@ function kRe(e, t, r) { return x.enter("lineEnding"), x.consume(O), x.exit("lineEnding"), _; } function _(O) { - return x.enter("codeFencedFence"), Yr(O) ? mn(x, D, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : D(O); + return x.enter("codeFencedFence"), qr(O) ? mn(x, D, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : D(O); } function D(O) { return O === s ? (x.enter("codeFencedFenceSequence"), A(O)) : R(O); } function A(O) { - return O === s ? (P++, x.consume(O), A) : P >= a ? (x.exit("codeFencedFenceSequence"), Yr(O) ? mn(x, M, "whitespace")(O) : M(O)) : R(O); + return O === s ? (P++, x.consume(O), A) : P >= a ? (x.exit("codeFencedFenceSequence"), qr(O) ? mn(x, M, "whitespace")(O) : M(O)) : R(O); } function M(O) { return O === null || ir(O) ? (x.exit("codeFencedFence"), E(O)) : R(O); } } } -function $Re(e, t, r) { +function qRe(e, t, r) { const n = this; return i; function i(a) { @@ -45329,12 +45370,12 @@ function $Re(e, t, r) { } const xx = { name: "codeIndented", - tokenize: VRe -}, BRe = { - tokenize: HRe, + tokenize: ZRe +}, XRe = { + tokenize: QRe, partial: !0 }; -function VRe(e, t, r) { +function ZRe(e, t, r) { const n = this; return i; function i(c) { @@ -45345,7 +45386,7 @@ function VRe(e, t, r) { return u && u[1].type === "linePrefix" && u[2].sliceSerialize(u[1], !0).length >= 4 ? a(c) : r(c); } function a(c) { - return c === null ? l(c) : ir(c) ? e.attempt(BRe, a, l)(c) : (e.enter("codeFlowValue"), s(c)); + return c === null ? l(c) : ir(c) ? e.attempt(XRe, a, l)(c) : (e.enter("codeFlowValue"), s(c)); } function s(c) { return c === null || ir(c) ? (e.exit("codeFlowValue"), a(c)) : (e.consume(c), s); @@ -45354,7 +45395,7 @@ function VRe(e, t, r) { return e.exit("codeIndented"), t(c); } } -function HRe(e, t, r) { +function QRe(e, t, r) { const n = this; return i; function i(a) { @@ -45365,13 +45406,13 @@ function HRe(e, t, r) { return s && s[1].type === "linePrefix" && s[2].sliceSerialize(s[1], !0).length >= 4 ? t(a) : ir(a) ? i(a) : r(a); } } -const zRe = { +const JRe = { name: "codeText", - tokenize: jRe, - resolve: GRe, - previous: WRe + tokenize: rPe, + resolve: ePe, + previous: tPe }; -function GRe(e) { +function ePe(e) { let t = e.length - 4, r = 3, n, i; if ((e[r][1].type === "lineEnding" || e[r][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) { for (n = r; ++n < t; ) @@ -45384,10 +45425,10 @@ function GRe(e) { i === void 0 ? n !== t && e[n][1].type !== "lineEnding" && (i = n) : (n === t || e[n][1].type === "lineEnding") && (e[i][1].type = "codeTextData", n !== i + 2 && (e[i][1].end = e[n - 1][1].end, e.splice(i + 2, n - i - 2), t -= n - i - 2, n = i + 2), i = void 0); return e; } -function WRe(e) { +function tPe(e) { return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape"; } -function jRe(e, t, r) { +function rPe(e, t, r) { let n = 0, i, o; return a; function a(d) { @@ -45406,7 +45447,7 @@ function jRe(e, t, r) { return d === 96 ? (e.consume(d), i++, u) : i === n ? (e.exit("codeTextSequence"), e.exit("codeText"), t(d)) : (o.type = "codeTextData", c(d)); } } -class URe { +class nPe { /** * @param {ReadonlyArray | null | undefined} [initial] * Initial items (optional). @@ -45486,7 +45527,7 @@ class URe { const i = r || 0; this.setCursor(Math.trunc(t)); const o = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY); - return n && Vp(this.left, n), o.reverse(); + return n && zp(this.left, n), o.reverse(); } /** * Remove and return the highest-numbered item in the array, so @@ -45521,7 +45562,7 @@ class URe { * Nothing. */ pushMany(t) { - this.setCursor(Number.POSITIVE_INFINITY), Vp(this.left, t); + this.setCursor(Number.POSITIVE_INFINITY), zp(this.left, t); } /** * Inserts a single item to the low-numbered side of the array; @@ -45545,7 +45586,7 @@ class URe { * Nothing. */ unshiftMany(t) { - this.setCursor(0), Vp(this.right, t.reverse()); + this.setCursor(0), zp(this.right, t.reverse()); } /** * Move the cursor to a specific position in the array. Requires @@ -45563,14 +45604,14 @@ class URe { if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0)) if (t < this.left.length) { const r = this.left.splice(t, Number.POSITIVE_INFINITY); - Vp(this.right, r.reverse()); + zp(this.right, r.reverse()); } else { const r = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY); - Vp(this.left, r.reverse()); + zp(this.left, r.reverse()); } } } -function Vp(e, t) { +function zp(e, t) { let r = 0; if (t.length < 1e4) e.push(...t); @@ -45578,10 +45619,10 @@ function Vp(e, t) { for (; r < t.length; ) e.push(...t.slice(r, r + 1e4)), r += 1e4; } -function zU(e) { +function jU(e) { const t = {}; let r = -1, n, i, o, a, s, l, c; - const u = new URe(e); + const u = new nPe(e); for (; ++r < u.length; ) { for (; r in t; ) r = t[r]; @@ -45589,16 +45630,16 @@ function zU(e) { for (; ++o < l.length && l[o][1].type !== "content"; ) l[o][1].type === "chunkText" && (l[o][1]._isInFirstContentOfListItem = !0, o++); if (n[0] === "enter") - n[1].contentType && (Object.assign(t, KRe(u, r)), r = t[r], c = !0); + n[1].contentType && (Object.assign(t, iPe(u, r)), r = t[r], c = !0); else if (n[1]._container) { for (o = r, i = void 0; o-- && (a = u.get(o), a[1].type === "lineEnding" || a[1].type === "lineEndingBlank"); ) a[0] === "enter" && (i && (u.get(i)[1].type = "lineEndingBlank"), a[1].type = "lineEnding", i = o); i && (n[1].end = Object.assign({}, u.get(i)[1].start), s = u.slice(i, r), s.unshift(n), u.splice(i, r - i + 1, s)); } } - return $l(e, 0, Number.POSITIVE_INFINITY, u.slice(0)), !c; + return Bl(e, 0, Number.POSITIVE_INFINITY, u.slice(0)), !c; } -function KRe(e, t) { +function iPe(e, t) { const r = e.get(t)[1], n = e.get(t)[2]; let i = t - 1; const o = [], a = r._tokenizer || n.parser[r.contentType](r.start), s = a.events, l = [], c = {}; @@ -45620,17 +45661,17 @@ function KRe(e, t) { c[p + l[h][0]] = p + l[h][1], p += l[h][1] - l[h][0] - 1; return c; } -const YRe = { - tokenize: ZRe, - resolve: XRe -}, qRe = { - tokenize: QRe, +const oPe = { + tokenize: lPe, + resolve: sPe +}, aPe = { + tokenize: cPe, partial: !0 }; -function XRe(e) { - return zU(e), e; +function sPe(e) { + return jU(e), e; } -function ZRe(e, t) { +function lPe(e, t) { let r; return n; function n(s) { @@ -45639,7 +45680,7 @@ function ZRe(e, t) { }), i(s); } function i(s) { - return s === null ? o(s) : ir(s) ? e.check(qRe, a, o)(s) : (e.consume(s), i); + return s === null ? o(s) : ir(s) ? e.check(aPe, a, o)(s) : (e.consume(s), i); } function o(s) { return e.exit("chunkContent"), e.exit("content"), t(s); @@ -45651,7 +45692,7 @@ function ZRe(e, t) { }), r = r.next, i; } } -function QRe(e, t, r) { +function cPe(e, t, r) { const n = this; return i; function i(a) { @@ -45664,7 +45705,7 @@ function QRe(e, t, r) { return !n.parser.constructs.disable.null.includes("codeIndented") && s && s[1].type === "linePrefix" && s[2].sliceSerialize(s[1], !0).length >= 4 ? t(a) : e.interrupt(n.parser.constructs.flow, r, t)(a); } } -function GU(e, t, r, n, i, o, a, s, l) { +function UU(e, t, r, n, i, o, a, s, l) { const c = l || Number.POSITIVE_INFINITY; let u = 0; return d; @@ -45691,7 +45732,7 @@ function GU(e, t, r, n, i, o, a, s, l) { return m === 40 || m === 41 || m === 92 ? (e.consume(m), g) : g(m); } } -function WU(e, t, r, n, i, o) { +function KU(e, t, r, n, i, o) { const a = this; let s = 0, l; return c; @@ -45709,13 +45750,13 @@ function WU(e, t, r, n, i, o) { }), d(f)); } function d(f) { - return f === null || f === 91 || f === 93 || ir(f) || s++ > 999 ? (e.exit("chunkString"), u(f)) : (e.consume(f), l || (l = !Yr(f)), f === 92 ? h : d); + return f === null || f === 91 || f === 93 || ir(f) || s++ > 999 ? (e.exit("chunkString"), u(f)) : (e.consume(f), l || (l = !qr(f)), f === 92 ? h : d); } function h(f) { return f === 91 || f === 92 || f === 93 ? (e.consume(f), s++, d) : d(f); } } -function jU(e, t, r, n, i, o) { +function YU(e, t, r, n, i, o) { let a; return s; function s(h) { @@ -45736,25 +45777,25 @@ function jU(e, t, r, n, i, o) { return h === a || h === 92 ? (e.consume(h), u) : u(h); } } -function qg(e, t) { +function Zg(e, t) { let r; return n; function n(i) { - return ir(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), r = !0, n) : Yr(i) ? mn( + return ir(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), r = !0, n) : qr(i) ? mn( e, n, r ? "linePrefix" : "lineSuffix" )(i) : t(i); } } -const JRe = { +const uPe = { name: "definition", - tokenize: tPe -}, ePe = { - tokenize: rPe, + tokenize: hPe +}, dPe = { + tokenize: fPe, partial: !0 }; -function tPe(e, t, r) { +function hPe(e, t, r) { const n = this; let i; return o; @@ -45762,7 +45803,7 @@ function tPe(e, t, r) { return e.enter("definition"), a(f); } function a(f) { - return WU.call( + return KU.call( n, e, s, @@ -45777,10 +45818,10 @@ function tPe(e, t, r) { return i = pf(n.sliceSerialize(n.events[n.events.length - 1][1]).slice(1, -1)), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), l) : r(f); } function l(f) { - return Co(f) ? qg(e, c)(f) : c(f); + return Co(f) ? Zg(e, c)(f) : c(f); } function c(f) { - return GU( + return UU( e, u, // Note: we don’t need to reset the way `markdown-rs` does. @@ -45793,35 +45834,35 @@ function tPe(e, t, r) { )(f); } function u(f) { - return e.attempt(ePe, d, d)(f); + return e.attempt(dPe, d, d)(f); } function d(f) { - return Yr(f) ? mn(e, h, "whitespace")(f) : h(f); + return qr(f) ? mn(e, h, "whitespace")(f) : h(f); } function h(f) { return f === null || ir(f) ? (e.exit("definition"), n.parser.defined.push(i), t(f)) : r(f); } } -function rPe(e, t, r) { +function fPe(e, t, r) { return n; function n(s) { - return Co(s) ? qg(e, i)(s) : r(s); + return Co(s) ? Zg(e, i)(s) : r(s); } function i(s) { - return jU(e, o, r, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(s); + return YU(e, o, r, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(s); } function o(s) { - return Yr(s) ? mn(e, a, "whitespace")(s) : a(s); + return qr(s) ? mn(e, a, "whitespace")(s) : a(s); } function a(s) { return s === null || ir(s) ? t(s) : r(s); } } -const nPe = { +const pPe = { name: "hardBreakEscape", - tokenize: iPe + tokenize: gPe }; -function iPe(e, t, r) { +function gPe(e, t, r) { return n; function n(o) { return e.enter("hardBreakEscape"), e.consume(o), i; @@ -45830,12 +45871,12 @@ function iPe(e, t, r) { return ir(o) ? (e.exit("hardBreakEscape"), t(o)) : r(o); } } -const oPe = { +const vPe = { name: "headingAtx", - tokenize: sPe, - resolve: aPe + tokenize: yPe, + resolve: mPe }; -function aPe(e, t) { +function mPe(e, t) { let r = e.length - 2, n = 3, i, o; return e[n][1].type === "whitespace" && (n += 2), r - 2 > n && e[r][1].type === "whitespace" && (r -= 2), e[r][1].type === "atxHeadingSequence" && (n === r - 1 || r - 4 > n && e[r - 2][1].type === "whitespace") && (r -= n + 1 === r ? 2 : 4), r > n && (i = { type: "atxHeadingText", @@ -45846,9 +45887,9 @@ function aPe(e, t) { start: e[n][1].start, end: e[r][1].end, contentType: "text" - }, $l(e, n, r - n + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e; + }, Bl(e, n, r - n + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e; } -function sPe(e, t, r) { +function yPe(e, t, r) { let n = 0; return i; function i(u) { @@ -45861,7 +45902,7 @@ function sPe(e, t, r) { return u === 35 && n++ < 6 ? (e.consume(u), a) : u === null || Co(u) ? (e.exit("atxHeadingSequence"), s(u)) : r(u); } function s(u) { - return u === 35 ? (e.enter("atxHeadingSequence"), l(u)) : u === null || ir(u) ? (e.exit("atxHeading"), t(u)) : Yr(u) ? mn(e, s, "whitespace")(u) : (e.enter("atxHeadingText"), c(u)); + return u === 35 ? (e.enter("atxHeadingSequence"), l(u)) : u === null || ir(u) ? (e.exit("atxHeading"), t(u)) : qr(u) ? mn(e, s, "whitespace")(u) : (e.enter("atxHeadingText"), c(u)); } function l(u) { return u === 35 ? (e.consume(u), l) : (e.exit("atxHeadingSequence"), s(u)); @@ -45870,7 +45911,7 @@ function sPe(e, t, r) { return u === null || u === 35 || Co(u) ? (e.exit("atxHeadingText"), s(u)) : (e.consume(u), c); } } -const lPe = [ +const CPe = [ "address", "article", "aside", @@ -45933,25 +45974,25 @@ const lPe = [ "tr", "track", "ul" -], K$ = ["pre", "script", "style", "textarea"], cPe = { +], q$ = ["pre", "script", "style", "textarea"], SPe = { name: "htmlFlow", - tokenize: fPe, - resolveTo: hPe, + tokenize: EPe, + resolveTo: xPe, concrete: !0 -}, uPe = { - tokenize: gPe, +}, bPe = { + tokenize: PPe, partial: !0 -}, dPe = { - tokenize: pPe, +}, wPe = { + tokenize: RPe, partial: !0 }; -function hPe(e) { +function xPe(e) { let t = e.length; for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); ) ; return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e; } -function fPe(e, t, r) { +function EPe(e, t, r) { const n = this; let i, o, a, s, l; return c; @@ -45980,7 +46021,7 @@ function fPe(e, t, r) { function v(B) { if (B === null || B === 47 || B === 62 || Co(B)) { const W = B === 47, j = a.toLowerCase(); - return !W && !o && K$.includes(j) ? (i = 1, n.interrupt ? t(B) : D(B)) : lPe.includes(a.toLowerCase()) ? (i = 6, W ? (e.consume(B), m) : n.interrupt ? t(B) : D(B)) : (i = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(B) : o ? y(B) : C(B)); + return !W && !o && q$.includes(j) ? (i = 1, n.interrupt ? t(B) : D(B)) : CPe.includes(a.toLowerCase()) ? (i = 6, W ? (e.consume(B), m) : n.interrupt ? t(B) : D(B)) : (i = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(B) : o ? y(B) : C(B)); } return B === 45 || Bo(B) ? (e.consume(B), a += String.fromCharCode(B), v) : r(B); } @@ -45988,19 +46029,19 @@ function fPe(e, t, r) { return B === 62 ? (e.consume(B), n.interrupt ? t : D) : r(B); } function y(B) { - return Yr(B) ? (e.consume(B), y) : T(B); + return qr(B) ? (e.consume(B), y) : T(B); } function C(B) { - return B === 47 ? (e.consume(B), T) : B === 58 || B === 95 || Ms(B) ? (e.consume(B), b) : Yr(B) ? (e.consume(B), C) : T(B); + return B === 47 ? (e.consume(B), T) : B === 58 || B === 95 || Ms(B) ? (e.consume(B), b) : qr(B) ? (e.consume(B), C) : T(B); } function b(B) { return B === 45 || B === 46 || B === 58 || B === 95 || Bo(B) ? (e.consume(B), b) : w(B); } function w(B) { - return B === 61 ? (e.consume(B), x) : Yr(B) ? (e.consume(B), w) : C(B); + return B === 61 ? (e.consume(B), x) : qr(B) ? (e.consume(B), w) : C(B); } function x(B) { - return B === null || B === 60 || B === 61 || B === 62 || B === 96 ? r(B) : B === 34 || B === 39 ? (e.consume(B), l = B, E) : Yr(B) ? (e.consume(B), x) : R(B); + return B === null || B === 60 || B === 61 || B === 62 || B === 96 ? r(B) : B === 34 || B === 39 ? (e.consume(B), l = B, E) : qr(B) ? (e.consume(B), x) : R(B); } function E(B) { return B === l ? (e.consume(B), l = null, P) : B === null || ir(B) ? r(B) : (e.consume(B), E); @@ -46009,19 +46050,19 @@ function fPe(e, t, r) { return B === null || B === 34 || B === 39 || B === 47 || B === 60 || B === 61 || B === 62 || B === 96 || Co(B) ? w(B) : (e.consume(B), R); } function P(B) { - return B === 47 || B === 62 || Yr(B) ? C(B) : r(B); + return B === 47 || B === 62 || qr(B) ? C(B) : r(B); } function T(B) { return B === 62 ? (e.consume(B), _) : r(B); } function _(B) { - return B === null || ir(B) ? D(B) : Yr(B) ? (e.consume(B), _) : r(B); + return B === null || ir(B) ? D(B) : qr(B) ? (e.consume(B), _) : r(B); } function D(B) { - return B === 45 && i === 2 ? (e.consume(B), L) : B === 60 && i === 1 ? (e.consume(B), N) : B === 62 && i === 4 ? (e.consume(B), V) : B === 63 && i === 3 ? (e.consume(B), I) : B === 93 && i === 5 ? (e.consume(B), $) : ir(B) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(uPe, H, A)(B)) : B === null || ir(B) ? (e.exit("htmlFlowData"), A(B)) : (e.consume(B), D); + return B === 45 && i === 2 ? (e.consume(B), L) : B === 60 && i === 1 ? (e.consume(B), N) : B === 62 && i === 4 ? (e.consume(B), V) : B === 63 && i === 3 ? (e.consume(B), I) : B === 93 && i === 5 ? (e.consume(B), $) : ir(B) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(bPe, H, A)(B)) : B === null || ir(B) ? (e.exit("htmlFlowData"), A(B)) : (e.consume(B), D); } function A(B) { - return e.check(dPe, M, H)(B); + return e.check(wPe, M, H)(B); } function M(B) { return e.enter("lineEnding"), e.consume(B), e.exit("lineEnding"), O; @@ -46038,7 +46079,7 @@ function fPe(e, t, r) { function F(B) { if (B === 62) { const W = a.toLowerCase(); - return K$.includes(W) ? (e.consume(B), V) : D(B); + return q$.includes(W) ? (e.consume(B), V) : D(B); } return Ms(B) && a.length < 8 ? (e.consume(B), a += String.fromCharCode(B), F) : D(B); } @@ -46055,7 +46096,7 @@ function fPe(e, t, r) { return e.exit("htmlFlow"), t(B); } } -function pPe(e, t, r) { +function RPe(e, t, r) { const n = this; return i; function i(a) { @@ -46065,17 +46106,17 @@ function pPe(e, t, r) { return n.parser.lazy[n.now().line] ? r(a) : t(a); } } -function gPe(e, t, r) { +function PPe(e, t, r) { return n; function n(i) { return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(yw, t, r); } } -const vPe = { +const TPe = { name: "htmlText", - tokenize: mPe + tokenize: _Pe }; -function mPe(e, t, r) { +function _Pe(e, t, r) { const n = this; let i, o, a; return s; @@ -46129,22 +46170,22 @@ function mPe(e, t, r) { return I === 45 || Bo(I) ? (e.consume(I), x) : E(I); } function E(I) { - return ir(I) ? (a = E, N(I)) : Yr(I) ? (e.consume(I), E) : L(I); + return ir(I) ? (a = E, N(I)) : qr(I) ? (e.consume(I), E) : L(I); } function R(I) { return I === 45 || Bo(I) ? (e.consume(I), R) : I === 47 || I === 62 || Co(I) ? P(I) : r(I); } function P(I) { - return I === 47 ? (e.consume(I), L) : I === 58 || I === 95 || Ms(I) ? (e.consume(I), T) : ir(I) ? (a = P, N(I)) : Yr(I) ? (e.consume(I), P) : L(I); + return I === 47 ? (e.consume(I), L) : I === 58 || I === 95 || Ms(I) ? (e.consume(I), T) : ir(I) ? (a = P, N(I)) : qr(I) ? (e.consume(I), P) : L(I); } function T(I) { return I === 45 || I === 46 || I === 58 || I === 95 || Bo(I) ? (e.consume(I), T) : _(I); } function _(I) { - return I === 61 ? (e.consume(I), D) : ir(I) ? (a = _, N(I)) : Yr(I) ? (e.consume(I), _) : P(I); + return I === 61 ? (e.consume(I), D) : ir(I) ? (a = _, N(I)) : qr(I) ? (e.consume(I), _) : P(I); } function D(I) { - return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? r(I) : I === 34 || I === 39 ? (e.consume(I), i = I, A) : ir(I) ? (a = D, N(I)) : Yr(I) ? (e.consume(I), D) : (e.consume(I), M); + return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? r(I) : I === 34 || I === 39 ? (e.consume(I), i = I, A) : ir(I) ? (a = D, N(I)) : qr(I) ? (e.consume(I), D) : (e.consume(I), M); } function A(I) { return I === i ? (e.consume(I), i = void 0, O) : I === null ? r(I) : ir(I) ? (a = A, N(I)) : (e.consume(I), A); @@ -46162,25 +46203,25 @@ function mPe(e, t, r) { return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), F; } function F(I) { - return Yr(I) ? mn(e, $, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(I) : $(I); + return qr(I) ? mn(e, $, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(I) : $(I); } function $(I) { return e.enter("htmlTextData"), a(I); } } -const f2 = { +const fI = { name: "labelEnd", - tokenize: xPe, - resolveTo: wPe, - resolveAll: bPe -}, yPe = { - tokenize: EPe -}, CPe = { - tokenize: RPe -}, SPe = { - tokenize: PPe + tokenize: LPe, + resolveTo: OPe, + resolveAll: APe +}, MPe = { + tokenize: FPe +}, DPe = { + tokenize: NPe +}, IPe = { + tokenize: kPe }; -function bPe(e) { +function APe(e) { let t = -1; for (; ++t < e.length; ) { const r = e[t][1]; @@ -46188,7 +46229,7 @@ function bPe(e) { } return e; } -function wPe(e, t) { +function OPe(e, t) { let r = e.length, n = 0, i, o, a, s; for (; r--; ) if (i = e[r][1], o) { @@ -46214,9 +46255,9 @@ function wPe(e, t) { start: Object.assign({}, e[o + n + 2][1].end), end: Object.assign({}, e[a - 2][1].start) }; - return s = [["enter", l, t], ["enter", c, t]], s = da(s, e.slice(o + 1, o + n + 3)), s = da(s, [["enter", u, t]]), s = da(s, h2(t.parser.constructs.insideSpan.null, e.slice(o + n + 4, a - 3), t)), s = da(s, [["exit", u, t], e[a - 2], e[a - 1], ["exit", c, t]]), s = da(s, e.slice(a + 1)), s = da(s, [["exit", l, t]]), $l(e, o, e.length, s), e; + return s = [["enter", l, t], ["enter", c, t]], s = da(s, e.slice(o + 1, o + n + 3)), s = da(s, [["enter", u, t]]), s = da(s, hI(t.parser.constructs.insideSpan.null, e.slice(o + n + 4, a - 3), t)), s = da(s, [["exit", u, t], e[a - 2], e[a - 1], ["exit", c, t]]), s = da(s, e.slice(a + 1)), s = da(s, [["exit", l, t]]), Bl(e, o, e.length, s), e; } -function xPe(e, t, r) { +function LPe(e, t, r) { const n = this; let i = n.events.length, o, a; for (; i--; ) @@ -46232,10 +46273,10 @@ function xPe(e, t, r) { }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(h), e.exit("labelMarker"), e.exit("labelEnd"), l) : r(h); } function l(h) { - return h === 40 ? e.attempt(yPe, u, a ? u : d)(h) : h === 91 ? e.attempt(CPe, u, a ? c : d)(h) : a ? u(h) : d(h); + return h === 40 ? e.attempt(MPe, u, a ? u : d)(h) : h === 91 ? e.attempt(DPe, u, a ? c : d)(h) : a ? u(h) : d(h); } function c(h) { - return e.attempt(SPe, u, d)(h); + return e.attempt(IPe, u, d)(h); } function u(h) { return t(h); @@ -46244,38 +46285,38 @@ function xPe(e, t, r) { return o._balanced = !0, r(h); } } -function EPe(e, t, r) { +function FPe(e, t, r) { return n; function n(d) { return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), i; } function i(d) { - return Co(d) ? qg(e, o)(d) : o(d); + return Co(d) ? Zg(e, o)(d) : o(d); } function o(d) { - return d === 41 ? u(d) : GU(e, a, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(d); + return d === 41 ? u(d) : UU(e, a, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(d); } function a(d) { - return Co(d) ? qg(e, l)(d) : u(d); + return Co(d) ? Zg(e, l)(d) : u(d); } function s(d) { return r(d); } function l(d) { - return d === 34 || d === 39 || d === 40 ? jU(e, c, r, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(d) : u(d); + return d === 34 || d === 39 || d === 40 ? YU(e, c, r, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(d) : u(d); } function c(d) { - return Co(d) ? qg(e, u)(d) : u(d); + return Co(d) ? Zg(e, u)(d) : u(d); } function u(d) { return d === 41 ? (e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), e.exit("resource"), t) : r(d); } } -function RPe(e, t, r) { +function NPe(e, t, r) { const n = this; return i; function i(s) { - return WU.call(n, e, o, a, "reference", "referenceMarker", "referenceString")(s); + return KU.call(n, e, o, a, "reference", "referenceMarker", "referenceString")(s); } function o(s) { return n.parser.defined.includes(pf(n.sliceSerialize(n.events[n.events.length - 1][1]).slice(1, -1))) ? t(s) : r(s); @@ -46284,7 +46325,7 @@ function RPe(e, t, r) { return r(s); } } -function PPe(e, t, r) { +function kPe(e, t, r) { return n; function n(o) { return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i; @@ -46293,12 +46334,12 @@ function PPe(e, t, r) { return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : r(o); } } -const TPe = { +const $Pe = { name: "labelStartImage", - tokenize: _Pe, - resolveAll: f2.resolveAll + tokenize: BPe, + resolveAll: fI.resolveAll }; -function _Pe(e, t, r) { +function BPe(e, t, r) { const n = this; return i; function i(s) { @@ -46311,12 +46352,12 @@ function _Pe(e, t, r) { return s === 94 && "_hiddenFootnoteSupport" in n.parser.constructs ? r(s) : t(s); } } -const MPe = { +const VPe = { name: "labelStartLink", - tokenize: DPe, - resolveAll: f2.resolveAll + tokenize: HPe, + resolveAll: fI.resolveAll }; -function DPe(e, t, r) { +function HPe(e, t, r) { const n = this; return i; function i(a) { @@ -46328,19 +46369,19 @@ function DPe(e, t, r) { } const Ex = { name: "lineEnding", - tokenize: IPe + tokenize: zPe }; -function IPe(e, t) { +function zPe(e, t) { return r; function r(n) { return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), mn(e, t, "linePrefix"); } } -const mC = { +const SC = { name: "thematicBreak", - tokenize: APe + tokenize: GPe }; -function APe(e, t, r) { +function GPe(e, t, r) { let n = 0, i; return o; function o(c) { @@ -46353,24 +46394,24 @@ function APe(e, t, r) { return c === i ? (e.enter("thematicBreakSequence"), l(c)) : n >= 3 && (c === null || ir(c)) ? (e.exit("thematicBreak"), t(c)) : r(c); } function l(c) { - return c === i ? (e.consume(c), n++, l) : (e.exit("thematicBreakSequence"), Yr(c) ? mn(e, s, "whitespace")(c) : s(c)); + return c === i ? (e.consume(c), n++, l) : (e.exit("thematicBreakSequence"), qr(c) ? mn(e, s, "whitespace")(c) : s(c)); } } const ho = { name: "list", - tokenize: FPe, + tokenize: UPe, continuation: { - tokenize: NPe + tokenize: KPe }, - exit: $Pe -}, OPe = { - tokenize: BPe, + exit: qPe +}, WPe = { + tokenize: XPe, partial: !0 -}, LPe = { - tokenize: kPe, +}, jPe = { + tokenize: YPe, partial: !0 }; -function FPe(e, t, r) { +function UPe(e, t, r) { const n = this, i = n.events[n.events.length - 1]; let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, a = 0; return s; @@ -46380,7 +46421,7 @@ function FPe(e, t, r) { if (n.containerState.type || (n.containerState.type = p, e.enter(p, { _container: !0 })), p === "listUnordered") - return e.enter("listItemPrefix"), f === 42 || f === 45 ? e.check(mC, r, c)(f) : c(f); + return e.enter("listItemPrefix"), f === 42 || f === 45 ? e.check(SC, r, c)(f) : c(f); if (!n.interrupt || f === 49) return e.enter("listItemPrefix"), e.enter("listItemValue"), l(f); } @@ -46394,33 +46435,33 @@ function FPe(e, t, r) { yw, // Can’t be empty when interrupting. n.interrupt ? r : u, - e.attempt(OPe, h, d) + e.attempt(WPe, h, d) ); } function u(f) { return n.containerState.initialBlankLine = !0, o++, h(f); } function d(f) { - return Yr(f) ? (e.enter("listItemPrefixWhitespace"), e.consume(f), e.exit("listItemPrefixWhitespace"), h) : r(f); + return qr(f) ? (e.enter("listItemPrefixWhitespace"), e.consume(f), e.exit("listItemPrefixWhitespace"), h) : r(f); } function h(f) { return n.containerState.size = o + n.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(f); } } -function NPe(e, t, r) { +function KPe(e, t, r) { const n = this; return n.containerState._closeFlow = void 0, e.check(yw, i, o); function i(s) { return n.containerState.furtherBlankLines = n.containerState.furtherBlankLines || n.containerState.initialBlankLine, mn(e, t, "listItemIndent", n.containerState.size + 1)(s); } function o(s) { - return n.containerState.furtherBlankLines || !Yr(s) ? (n.containerState.furtherBlankLines = void 0, n.containerState.initialBlankLine = void 0, a(s)) : (n.containerState.furtherBlankLines = void 0, n.containerState.initialBlankLine = void 0, e.attempt(LPe, t, a)(s)); + return n.containerState.furtherBlankLines || !qr(s) ? (n.containerState.furtherBlankLines = void 0, n.containerState.initialBlankLine = void 0, a(s)) : (n.containerState.furtherBlankLines = void 0, n.containerState.initialBlankLine = void 0, e.attempt(jPe, t, a)(s)); } function a(s) { return n.containerState._closeFlow = !0, n.interrupt = void 0, mn(e, e.attempt(ho, t, r), "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s); } } -function kPe(e, t, r) { +function YPe(e, t, r) { const n = this; return mn(e, i, "listItemIndent", n.containerState.size + 1); function i(o) { @@ -46428,23 +46469,23 @@ function kPe(e, t, r) { return a && a[1].type === "listItemIndent" && a[2].sliceSerialize(a[1], !0).length === n.containerState.size ? t(o) : r(o); } } -function $Pe(e) { +function qPe(e) { e.exit(this.containerState.type); } -function BPe(e, t, r) { +function XPe(e, t, r) { const n = this; return mn(e, i, "listItemPrefixWhitespace", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5); function i(o) { const a = n.events[n.events.length - 1]; - return !Yr(o) && a && a[1].type === "listItemPrefixWhitespace" ? t(o) : r(o); + return !qr(o) && a && a[1].type === "listItemPrefixWhitespace" ? t(o) : r(o); } } -const Y$ = { +const X$ = { name: "setextUnderline", - tokenize: HPe, - resolveTo: VPe + tokenize: QPe, + resolveTo: ZPe }; -function VPe(e, t) { +function ZPe(e, t) { let r = e.length, n, i, o; for (; r--; ) if (e[r][0] === "enter") { @@ -46462,7 +46503,7 @@ function VPe(e, t) { }; return e[i][1].type = "setextHeadingText", o ? (e.splice(i, 0, ["enter", a, t]), e.splice(o + 1, 0, ["exit", e[n][1], t]), e[n][1].end = Object.assign({}, e[o][1].end)) : e[n][1] = a, e.push(["exit", a, t]), e; } -function HPe(e, t, r) { +function QPe(e, t, r) { const n = this; let i; return o; @@ -46479,16 +46520,16 @@ function HPe(e, t, r) { return e.enter("setextHeadingLineSequence"), s(c); } function s(c) { - return c === i ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), Yr(c) ? mn(e, l, "lineSuffix")(c) : l(c)); + return c === i ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), qr(c) ? mn(e, l, "lineSuffix")(c) : l(c)); } function l(c) { return c === null || ir(c) ? (e.exit("setextHeadingLine"), t(c)) : r(c); } } -const zPe = { - tokenize: GPe +const JPe = { + tokenize: eTe }; -function GPe(e) { +function eTe(e) { const t = this, r = e.attempt( // Try to parse a blank line. yw, @@ -46502,7 +46543,7 @@ function GPe(e) { e.attempt( this.parser.constructs.flow, i, - e.attempt(YRe, i) + e.attempt(oPe, i) ), "linePrefix" ) @@ -46524,14 +46565,14 @@ function GPe(e) { return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, r; } } -const WPe = { - resolveAll: KU() -}, jPe = UU("string"), UPe = UU("text"); -function UU(e) { +const tTe = { + resolveAll: XU() +}, rTe = qU("string"), nTe = qU("text"); +function qU(e) { return { tokenize: t, - resolveAll: KU( - e === "text" ? KPe : void 0 + resolveAll: XU( + e === "text" ? iTe : void 0 ) }; function t(r) { @@ -46565,7 +46606,7 @@ function UU(e) { } } } -function KU(e) { +function XU(e) { return t; function t(r, n) { let i = -1, o; @@ -46574,7 +46615,7 @@ function KU(e) { return e ? e(r, n) : r; } } -function KPe(e, t) { +function iTe(e, t) { let r = 0; for (; ++r <= e.length; ) if ((r === e.length || e[r][1].type === "lineEnding") && e[r - 1][1].type === "data") { @@ -46617,7 +46658,7 @@ function KPe(e, t) { } return e; } -function YPe(e, t, r) { +function oTe(e, t, r) { let n = Object.assign( r ? Object.assign({}, r) : { line: 1, @@ -46655,13 +46696,13 @@ function YPe(e, t, r) { let u = t.tokenize.call(c, l); return t.resolveAll && o.push(t), c; function d(_) { - return a = da(a, _), v(), a[a.length - 1] !== null ? [] : (R(t, 0), c.events = h2(o, c.events, c), c.events); + return a = da(a, _), v(), a[a.length - 1] !== null ? [] : (R(t, 0), c.events = hI(o, c.events, c), c.events); } function h(_, D) { - return XPe(f(_), D); + return sTe(f(_), D); } function f(_) { - return qPe(a, _); + return aTe(a, _); } function p() { const { line: _, column: D, offset: A, _index: M, _bufferIndex: O } = n; @@ -46718,10 +46759,10 @@ function YPe(e, t, r) { function V(X) { return q; function q(J) { - const te = J !== null && X[J], Q = J !== null && X.null, Y = [ + const re = J !== null && X[J], Q = J !== null && X.null, Y = [ // To do: add more extension tests. /* c8 ignore next 2 */ - ...Array.isArray(te) ? te : te ? [te] : [], + ...Array.isArray(re) ? re : re ? [re] : [], ...Array.isArray(Q) ? Q : Q ? [Q] : [] ]; return H(Y)(J); @@ -46753,7 +46794,7 @@ function YPe(e, t, r) { } } function R(_, D) { - _.resolveAll && !o.includes(_) && o.push(_), _.resolve && $l( + _.resolveAll && !o.includes(_) && o.push(_), _.resolve && Bl( c.events, D, c.events.length - D, @@ -46774,7 +46815,7 @@ function YPe(e, t, r) { n.line in i && n.column < 2 && (n.column = i[n.line], n.offset += i[n.line] - 1); } } -function qPe(e, t) { +function aTe(e, t) { const r = t.start._index, n = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex; let a; if (r === i) @@ -46788,7 +46829,7 @@ function qPe(e, t) { } return a; } -function XPe(e, t) { +function sTe(e, t) { let r = -1; const n = []; let i; @@ -46829,7 +46870,7 @@ function XPe(e, t) { } return n.join(""); } -const ZPe = { +const lTe = { 42: ho, 43: ho, 45: ho, @@ -46843,92 +46884,92 @@ const ZPe = { 55: ho, 56: ho, 57: ho, - 62: BU -}, QPe = { - 91: JRe -}, JPe = { + 62: zU +}, cTe = { + 91: uPe +}, uTe = { [-2]: xx, [-1]: xx, 32: xx -}, eTe = { - 35: oPe, - 42: mC, - 45: [Y$, mC], - 60: cPe, - 61: Y$, - 95: mC, - 96: U$, - 126: U$ -}, tTe = { - 38: HU, - 92: VU -}, rTe = { +}, dTe = { + 35: vPe, + 42: SC, + 45: [X$, SC], + 60: SPe, + 61: X$, + 95: SC, + 96: Y$, + 126: Y$ +}, hTe = { + 38: WU, + 92: GU +}, fTe = { [-5]: Ex, [-4]: Ex, [-3]: Ex, - 33: TPe, - 38: HU, + 33: $Pe, + 38: WU, 42: l_, - 60: [MRe, vPe], - 91: MPe, - 92: [nPe, VU], - 93: f2, + 60: [VRe, TPe], + 91: VPe, + 92: [pPe, GU], + 93: fI, 95: l_, - 96: zRe -}, nTe = { - null: [l_, WPe] -}, iTe = { + 96: JRe +}, pTe = { + null: [l_, tTe] +}, gTe = { null: [42, 95] -}, oTe = { +}, vTe = { null: [] -}, aTe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, mTe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - attentionMarkers: iTe, - contentInitial: QPe, - disable: oTe, - document: ZPe, - flow: eTe, - flowInitial: JPe, - insideSpan: nTe, - string: tTe, - text: rTe + attentionMarkers: gTe, + contentInitial: cTe, + disable: vTe, + document: lTe, + flow: dTe, + flowInitial: uTe, + insideSpan: pTe, + string: hTe, + text: fTe }, Symbol.toStringTag, { value: "Module" })); -function sTe(e) { +function yTe(e) { const r = ( /** @type {FullNormalizedExtension} */ - pRe([aTe, ...(e || {}).extensions || []]) + RRe([mTe, ...(e || {}).extensions || []]) ), n = { defined: [], lazy: {}, constructs: r, - content: i(wRe), - document: i(ERe), - flow: i(zPe), - string: i(jPe), - text: i(UPe) + content: i(ORe), + document: i(FRe), + flow: i(JPe), + string: i(rTe), + text: i(nTe) }; return n; function i(o) { return a; function a(s) { - return YPe(n, o, s); + return oTe(n, o, s); } } } -function lTe(e) { - for (; !zU(e); ) +function CTe(e) { + for (; !jU(e); ) ; return e; } -const q$ = /[\0\t\n\r]/g; -function cTe() { +const Z$ = /[\0\t\n\r]/g; +function STe() { let e = 1, t = "", r = !0, n; return i; function i(o, a, s) { const l = []; let c, u, d, h, f; for (o = t + (typeof o == "string" ? o.toString() : new TextDecoder(a || void 0).decode(o)), d = 0, t = "", r && (o.charCodeAt(0) === 65279 && d++, r = void 0); d < o.length; ) { - if (q$.lastIndex = d, c = q$.exec(o), h = c && c.index !== void 0 ? c.index : o.length, f = o.charCodeAt(h), !c) { + if (Z$.lastIndex = d, c = Z$.exec(o), h = c && c.index !== void 0 ? c.index : o.length, f = o.charCodeAt(h), !c) { t = o.slice(d); break; } @@ -46956,24 +46997,24 @@ function cTe() { return s && (n && l.push(-5), t && l.push(t), l.push(null)), l; } } -const uTe = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi; -function dTe(e) { - return e.replace(uTe, hTe); +const bTe = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi; +function wTe(e) { + return e.replace(bTe, xTe); } -function hTe(e, t, r) { +function xTe(e, t, r) { if (t) return t; if (r.charCodeAt(0) === 35) { const i = r.charCodeAt(1), o = i === 120 || i === 88; - return $U(r.slice(o ? 2 : 1), o ? 16 : 10); + return HU(r.slice(o ? 2 : 1), o ? 16 : 10); } - return d2(r) || e; + return dI(r) || e; } -const YU = {}.hasOwnProperty; -function fTe(e, t, r) { - return typeof t != "string" && (r = t, t = void 0), pTe(r)(lTe(sTe(r).document().write(cTe()(e, t, !0)))); +const ZU = {}.hasOwnProperty; +function ETe(e, t, r) { + return typeof t != "string" && (r = t, t = void 0), RTe(r)(CTe(yTe(r).document().write(STe()(e, t, !0)))); } -function pTe(e) { +function RTe(e) { const t = { transforms: [], canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"], @@ -46981,7 +47022,7 @@ function pTe(e) { autolink: o(fe), autolinkProtocol: P, autolinkEmail: P, - atxHeading: o(re), + atxHeading: o(ne), blockQuote: o(Q), characterEscape: P, characterReference: P, @@ -47016,7 +47057,7 @@ function pTe(e) { referenceString: a, resourceDestinationString: a, resourceTitleString: a, - setextHeading: o(re), + setextHeading: o(ne), strong: o(be), thematicBreak: o(Ve) }, @@ -47024,7 +47065,7 @@ function pTe(e) { atxHeading: l(), atxHeadingSequence: w, autolink: l(), - autolinkEmail: te, + autolinkEmail: re, autolinkProtocol: J, blockQuote: l(), characterEscapeValue: T, @@ -47072,7 +47113,7 @@ function pTe(e) { thematicBreak: l() } }; - qU(t, (e || {}).mdastExtensions || []); + QU(t, (e || {}).mdastExtensions || []); const r = {}; return n; function n(oe) { @@ -47101,13 +47142,13 @@ function pTe(e) { } for (we = -1; ++we < oe.length; ) { const Ce = t[oe[we][0]]; - YU.call(Ce, oe[we][1].type) && Ce[oe[we][1].type].call(Object.assign({ + ZU.call(Ce, oe[we][1].type) && Ce[oe[we][1].type].call(Object.assign({ sliceSerialize: oe[we][2].sliceSerialize }, Ne), oe[we][1]); } if (Ne.tokenStack.length > 0) { const Ce = Ne.tokenStack[Ne.tokenStack.length - 1]; - (Ce[1] || X$).call(Ne, void 0, Ce[0]); + (Ce[1] || Q$).call(Ne, void 0, Ce[0]); } for (ye.position = { start: rc(oe.length > 0 ? oe[0][1].start : { @@ -47152,11 +47193,11 @@ function pTe(e) { if (xe) { let Ue = ke; for (ze = void 0; Ue--; ) { - const Ae = oe[Ue]; - if (Ae[1].type === "lineEnding" || Ae[1].type === "lineEndingBlank") { - if (Ae[0] === "exit") continue; - ze && (oe[ze][1].type = "lineEndingBlank", Ce = !0), Ae[1].type = "lineEnding", ze = Ue; - } else if (!(Ae[1].type === "linePrefix" || Ae[1].type === "blockQuotePrefix" || Ae[1].type === "blockQuotePrefixWhitespace" || Ae[1].type === "blockQuoteMarker" || Ae[1].type === "listItemIndent")) break; + const Oe = oe[Ue]; + if (Oe[1].type === "lineEnding" || Oe[1].type === "lineEndingBlank") { + if (Oe[0] === "exit") continue; + ze && (oe[ze][1].type = "lineEndingBlank", Ce = !0), Oe[1].type = "lineEnding", ze = Ue; + } else if (!(Oe[1].type === "linePrefix" || Oe[1].type === "blockQuotePrefix" || Oe[1].type === "blockQuotePrefixWhitespace" || Oe[1].type === "blockQuoteMarker" || Oe[1].type === "listItemIndent")) break; } je && (!ze || je < ze) && (xe._spread = !0), xe.end = Object.assign({}, ze ? oe[ze][1].start : Xe[1].end), oe.splice(ze || ke, 0, ["exit", xe, Xe[2]]), ke++, Ne++; } @@ -47202,15 +47243,15 @@ function pTe(e) { function c(oe, ye) { const Ne = this.stack.pop(), ke = this.tokenStack.pop(); if (ke) - ke[0].type !== oe.type && (ye ? ye.call(this, oe, ke[0]) : (ke[1] || X$).call(this, oe, ke[0])); - else throw new Error("Cannot close `" + oe.type + "` (" + Yg({ + ke[0].type !== oe.type && (ye ? ye.call(this, oe, ke[0]) : (ke[1] || Q$).call(this, oe, ke[0])); + else throw new Error("Cannot close `" + oe.type + "` (" + Xg({ start: oe.start, end: oe.end }) + "): it’s not open"); Ne.position.end = rc(oe.end); } function u() { - return hRe(this.stack.pop()); + return xRe(this.stack.pop()); } function d() { this.data.expectingFirstListItemValue = !0; @@ -47326,7 +47367,7 @@ function pTe(e) { } function F(oe) { const ye = this.sliceSerialize(oe), Ne = this.stack[this.stack.length - 2]; - Ne.label = dTe(ye), Ne.identifier = pf(ye).toLowerCase(); + Ne.label = wTe(ye), Ne.identifier = pf(ye).toLowerCase(); } function $() { const oe = this.stack[this.stack.length - 1], ye = this.resume(), Ne = this.stack[this.stack.length - 1]; @@ -47360,7 +47401,7 @@ function pTe(e) { function X(oe) { const ye = this.sliceSerialize(oe), Ne = this.data.characterReferenceType; let ke; - Ne ? (ke = $U(ye, Ne === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ke = d2(ye); + Ne ? (ke = HU(ye, Ne === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ke = dI(ye); const we = this.stack[this.stack.length - 1]; we.value += ke; } @@ -47373,7 +47414,7 @@ function pTe(e) { const ye = this.stack[this.stack.length - 1]; ye.url = this.sliceSerialize(oe); } - function te(oe) { + function re(oe) { T.call(this, oe); const ye = this.stack[this.stack.length - 1]; ye.url = "mailto:" + this.sliceSerialize(oe); @@ -47413,7 +47454,7 @@ function pTe(e) { children: [] }; } - function re() { + function ne() { return { type: "heading", // @ts-expect-error `depth` will be set later. @@ -47496,17 +47537,17 @@ function rc(e) { offset: e.offset }; } -function qU(e, t) { +function QU(e, t) { let r = -1; for (; ++r < t.length; ) { const n = t[r]; - Array.isArray(n) ? qU(e, n) : gTe(e, n); + Array.isArray(n) ? QU(e, n) : PTe(e, n); } } -function gTe(e, t) { +function PTe(e, t) { let r; for (r in t) - if (YU.call(t, r)) + if (ZU.call(t, r)) switch (r) { case "canContainEols": { const n = t[r]; @@ -47526,23 +47567,23 @@ function gTe(e, t) { } } } -function X$(e, t) { - throw e ? new Error("Cannot close `" + e.type + "` (" + Yg({ +function Q$(e, t) { + throw e ? new Error("Cannot close `" + e.type + "` (" + Xg({ start: e.start, end: e.end - }) + "): a different token (`" + t.type + "`, " + Yg({ + }) + "): a different token (`" + t.type + "`, " + Xg({ start: t.start, end: t.end - }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + Yg({ + }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + Xg({ start: t.start, end: t.end }) + ") is still open"); } -function vTe(e) { +function TTe(e) { const t = this; t.parser = r; function r(n) { - return fTe(n, { + return ETe(n, { ...t.data("settings"), ...e, // Note: these options are not in the readme. @@ -47553,7 +47594,7 @@ function vTe(e) { }); } } -function mTe(e, t) { +function _Te(e, t) { const r = { type: "element", tagName: "blockquote", @@ -47562,12 +47603,12 @@ function mTe(e, t) { }; return e.patch(t, r), e.applyData(t, r); } -function yTe(e, t) { +function MTe(e, t) { const r = { type: "element", tagName: "br", properties: {}, children: [] }; return e.patch(t, r), [e.applyData(t, r), { type: "text", value: ` ` }]; } -function CTe(e, t) { +function DTe(e, t) { const r = t.value ? t.value + ` ` : "", n = {}; t.lang && (n.className = ["language-" + t.lang]); @@ -47579,7 +47620,7 @@ function CTe(e, t) { }; return t.meta && (i.data = { meta: t.meta }), e.patch(t, i), i = e.applyData(t, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(t, i), i; } -function STe(e, t) { +function ITe(e, t) { const r = { type: "element", tagName: "del", @@ -47588,7 +47629,7 @@ function STe(e, t) { }; return e.patch(t, r), e.applyData(t, r); } -function bTe(e, t) { +function ATe(e, t) { const r = { type: "element", tagName: "em", @@ -47597,8 +47638,8 @@ function bTe(e, t) { }; return e.patch(t, r), e.applyData(t, r); } -function wTe(e, t) { - const r = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = String(t.identifier).toUpperCase(), i = lp(n.toLowerCase()), o = e.footnoteOrder.indexOf(n); +function OTe(e, t) { + const r = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = String(t.identifier).toUpperCase(), i = up(n.toLowerCase()), o = e.footnoteOrder.indexOf(n); let a, s = e.footnoteCounts.get(n); s === void 0 ? (s = 0, e.footnoteOrder.push(n), a = e.footnoteOrder.length) : a = o + 1, s += 1, e.footnoteCounts.set(n, s); const l = { @@ -47621,7 +47662,7 @@ function wTe(e, t) { }; return e.patch(t, c), e.applyData(t, c); } -function xTe(e, t) { +function LTe(e, t) { const r = { type: "element", tagName: "h" + t.depth, @@ -47630,13 +47671,13 @@ function xTe(e, t) { }; return e.patch(t, r), e.applyData(t, r); } -function ETe(e, t) { +function FTe(e, t) { if (e.options.allowDangerousHtml) { const r = { type: "raw", value: t.value }; return e.patch(t, r), e.applyData(t, r); } } -function XU(e, t) { +function JU(e, t) { const r = t.referenceType; let n = "]"; if (r === "collapsed" ? n += "[]" : r === "full" && (n += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference") @@ -47646,22 +47687,22 @@ function XU(e, t) { const a = i[i.length - 1]; return a && a.type === "text" ? a.value += n : i.push({ type: "text", value: n }), i; } -function RTe(e, t) { +function NTe(e, t) { const r = String(t.identifier).toUpperCase(), n = e.definitionById.get(r); if (!n) - return XU(e, t); - const i = { src: lp(n.url || ""), alt: t.alt }; + return JU(e, t); + const i = { src: up(n.url || ""), alt: t.alt }; n.title !== null && n.title !== void 0 && (i.title = n.title); const o = { type: "element", tagName: "img", properties: i, children: [] }; return e.patch(t, o), e.applyData(t, o); } -function PTe(e, t) { - const r = { src: lp(t.url) }; +function kTe(e, t) { + const r = { src: up(t.url) }; t.alt !== null && t.alt !== void 0 && (r.alt = t.alt), t.title !== null && t.title !== void 0 && (r.title = t.title); const n = { type: "element", tagName: "img", properties: r, children: [] }; return e.patch(t, n), e.applyData(t, n); } -function TTe(e, t) { +function $Te(e, t) { const r = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") }; e.patch(t, r); const n = { @@ -47672,11 +47713,11 @@ function TTe(e, t) { }; return e.patch(t, n), e.applyData(t, n); } -function _Te(e, t) { +function BTe(e, t) { const r = String(t.identifier).toUpperCase(), n = e.definitionById.get(r); if (!n) - return XU(e, t); - const i = { href: lp(n.url || "") }; + return JU(e, t); + const i = { href: up(n.url || "") }; n.title !== null && n.title !== void 0 && (i.title = n.title); const o = { type: "element", @@ -47686,8 +47727,8 @@ function _Te(e, t) { }; return e.patch(t, o), e.applyData(t, o); } -function MTe(e, t) { - const r = { href: lp(t.url) }; +function VTe(e, t) { + const r = { href: up(t.url) }; t.title !== null && t.title !== void 0 && (r.title = t.title); const n = { type: "element", @@ -47697,8 +47738,8 @@ function MTe(e, t) { }; return e.patch(t, n), e.applyData(t, n); } -function DTe(e, t, r) { - const n = e.all(t), i = r ? ITe(r) : ZU(t), o = {}, a = []; +function HTe(e, t, r) { + const n = e.all(t), i = r ? zTe(r) : eK(t), o = {}, a = []; if (typeof t.checked == "boolean") { const u = n[0]; let d; @@ -47721,22 +47762,22 @@ function DTe(e, t, r) { const c = { type: "element", tagName: "li", properties: o, children: a }; return e.patch(t, c), e.applyData(t, c); } -function ITe(e) { +function zTe(e) { let t = !1; if (e.type === "list") { t = e.spread || !1; const r = e.children; let n = -1; for (; !t && ++n < r.length; ) - t = ZU(r[n]); + t = eK(r[n]); } return t; } -function ZU(e) { +function eK(e) { const t = e.spread; return t ?? e.children.length > 1; } -function ATe(e, t) { +function GTe(e, t) { const r = {}, n = e.all(t); let i = -1; for (typeof t.start == "number" && t.start !== 1 && (r.start = t.start); ++i < n.length; ) { @@ -47754,7 +47795,7 @@ function ATe(e, t) { }; return e.patch(t, o), e.applyData(t, o); } -function OTe(e, t) { +function WTe(e, t) { const r = { type: "element", tagName: "p", @@ -47763,11 +47804,11 @@ function OTe(e, t) { }; return e.patch(t, r), e.applyData(t, r); } -function LTe(e, t) { +function jTe(e, t) { const r = { type: "root", children: e.wrap(e.all(t)) }; return e.patch(t, r), e.applyData(t, r); } -function FTe(e, t) { +function UTe(e, t) { const r = { type: "element", tagName: "strong", @@ -47776,7 +47817,7 @@ function FTe(e, t) { }; return e.patch(t, r), e.applyData(t, r); } -function NTe(e, t) { +function KTe(e, t) { const r = e.all(t), n = r.shift(), i = []; if (n) { const a = { @@ -47793,7 +47834,7 @@ function NTe(e, t) { tagName: "tbody", properties: {}, children: e.wrap(r, !0) - }, s = s2(t.children[1]), l = IU(t.children[t.children.length - 1]); + }, s = sI(t.children[1]), l = LU(t.children[t.children.length - 1]); s && l && (a.position = { start: s, end: l }), i.push(a); } const o = { @@ -47804,7 +47845,7 @@ function NTe(e, t) { }; return e.patch(t, o), e.applyData(t, o); } -function kTe(e, t, r) { +function YTe(e, t, r) { const n = r ? r.children : void 0, o = (n ? n.indexOf(t) : 1) === 0 ? "th" : "td", a = r && r.type === "table" ? r.align : void 0, s = a ? a.length : t.children.length; let l = -1; const c = []; @@ -47822,7 +47863,7 @@ function kTe(e, t, r) { }; return e.patch(t, u), e.applyData(t, u); } -function $Te(e, t) { +function qTe(e, t) { const r = { type: "element", tagName: "td", @@ -47832,37 +47873,37 @@ function $Te(e, t) { }; return e.patch(t, r), e.applyData(t, r); } -const Z$ = 9, Q$ = 32; -function BTe(e) { +const J$ = 9, e4 = 32; +function XTe(e) { const t = String(e), r = /\r?\n|\r/g; let n = r.exec(t), i = 0; const o = []; for (; n; ) o.push( - J$(t.slice(i, n.index), i > 0, !0), + t4(t.slice(i, n.index), i > 0, !0), n[0] ), i = n.index + n[0].length, n = r.exec(t); - return o.push(J$(t.slice(i), i > 0, !1)), o.join(""); + return o.push(t4(t.slice(i), i > 0, !1)), o.join(""); } -function J$(e, t, r) { +function t4(e, t, r) { let n = 0, i = e.length; if (t) { let o = e.codePointAt(n); - for (; o === Z$ || o === Q$; ) + for (; o === J$ || o === e4; ) n++, o = e.codePointAt(n); } if (r) { let o = e.codePointAt(i - 1); - for (; o === Z$ || o === Q$; ) + for (; o === J$ || o === e4; ) i--, o = e.codePointAt(i - 1); } return i > n ? e.slice(n, i) : ""; } -function VTe(e, t) { - const r = { type: "text", value: BTe(String(t.value)) }; +function ZTe(e, t) { + const r = { type: "text", value: XTe(String(t.value)) }; return e.patch(t, r), e.applyData(t, r); } -function HTe(e, t) { +function QTe(e, t) { const r = { type: "element", tagName: "hr", @@ -47871,123 +47912,123 @@ function HTe(e, t) { }; return e.patch(t, r), e.applyData(t, r); } -const zTe = { - blockquote: mTe, - break: yTe, - code: CTe, - delete: STe, - emphasis: bTe, - footnoteReference: wTe, - heading: xTe, - html: ETe, - imageReference: RTe, - image: PTe, - inlineCode: TTe, - linkReference: _Te, - link: MTe, - listItem: DTe, - list: ATe, - paragraph: OTe, +const JTe = { + blockquote: _Te, + break: MTe, + code: DTe, + delete: ITe, + emphasis: ATe, + footnoteReference: OTe, + heading: LTe, + html: FTe, + imageReference: NTe, + image: kTe, + inlineCode: $Te, + linkReference: BTe, + link: VTe, + listItem: HTe, + list: GTe, + paragraph: WTe, // @ts-expect-error: root is different, but hard to type. - root: LTe, - strong: FTe, - table: NTe, - tableCell: $Te, - tableRow: kTe, - text: VTe, - thematicBreak: HTe, - toml: Hy, - yaml: Hy, - definition: Hy, - footnoteDefinition: Hy + root: jTe, + strong: UTe, + table: KTe, + tableCell: qTe, + tableRow: YTe, + text: ZTe, + thematicBreak: QTe, + toml: Wy, + yaml: Wy, + definition: Wy, + footnoteDefinition: Wy }; -function Hy() { +function Wy() { } -const QU = -1, Cw = 0, gS = 1, vS = 2, p2 = 3, g2 = 4, v2 = 5, m2 = 6, JU = 7, eK = 8, e4 = typeof self == "object" ? self : globalThis, GTe = (e, t) => { +const tK = -1, Cw = 0, mS = 1, yS = 2, pI = 3, gI = 4, vI = 5, mI = 6, rK = 7, nK = 8, r4 = typeof self == "object" ? self : globalThis, e_e = (e, t) => { const r = (i, o) => (e.set(o, i), i), n = (i) => { if (e.has(i)) return e.get(i); const [o, a] = t[i]; switch (o) { case Cw: - case QU: + case tK: return r(a, i); - case gS: { + case mS: { const s = r([], i); for (const l of a) s.push(n(l)); return s; } - case vS: { + case yS: { const s = r({}, i); for (const [l, c] of a) s[n(l)] = n(c); return s; } - case p2: + case pI: return r(new Date(a), i); - case g2: { + case gI: { const { source: s, flags: l } = a; return r(new RegExp(s, l), i); } - case v2: { + case vI: { const s = r(/* @__PURE__ */ new Map(), i); for (const [l, c] of a) s.set(n(l), n(c)); return s; } - case m2: { + case mI: { const s = r(/* @__PURE__ */ new Set(), i); for (const l of a) s.add(n(l)); return s; } - case JU: { + case rK: { const { name: s, message: l } = a; - return r(new e4[s](l), i); + return r(new r4[s](l), i); } - case eK: + case nK: return r(BigInt(a), i); case "BigInt": return r(Object(BigInt(a)), i); } - return r(new e4[o](a), i); + return r(new r4[o](a), i); }; return n; -}, t4 = (e) => GTe(/* @__PURE__ */ new Map(), e)(0), vh = "", { toString: WTe } = {}, { keys: jTe } = Object, Hp = (e) => { +}, n4 = (e) => e_e(/* @__PURE__ */ new Map(), e)(0), vh = "", { toString: t_e } = {}, { keys: r_e } = Object, Gp = (e) => { const t = typeof e; if (t !== "object" || !e) return [Cw, t]; - const r = WTe.call(e).slice(8, -1); + const r = t_e.call(e).slice(8, -1); switch (r) { case "Array": - return [gS, vh]; + return [mS, vh]; case "Object": - return [vS, vh]; + return [yS, vh]; case "Date": - return [p2, vh]; + return [pI, vh]; case "RegExp": - return [g2, vh]; + return [gI, vh]; case "Map": - return [v2, vh]; + return [vI, vh]; case "Set": - return [m2, vh]; + return [mI, vh]; } - return r.includes("Array") ? [gS, r] : r.includes("Error") ? [JU, r] : [vS, r]; -}, zy = ([e, t]) => e === Cw && (t === "function" || t === "symbol"), UTe = (e, t, r, n) => { + return r.includes("Array") ? [mS, r] : r.includes("Error") ? [rK, r] : [yS, r]; +}, jy = ([e, t]) => e === Cw && (t === "function" || t === "symbol"), n_e = (e, t, r, n) => { const i = (a, s) => { const l = n.push(a) - 1; return r.set(s, l), l; }, o = (a) => { if (r.has(a)) return r.get(a); - let [s, l] = Hp(a); + let [s, l] = Gp(a); switch (s) { case Cw: { let u = a; switch (l) { case "bigint": - s = eK, u = a.toString(); + s = nK, u = a.toString(); break; case "function": case "symbol": @@ -47996,11 +48037,11 @@ const QU = -1, Cw = 0, gS = 1, vS = 2, p2 = 3, g2 = 4, v2 = 5, m2 = 6, JU = 7, e u = null; break; case "undefined": - return i([QU], a); + return i([tK], a); } return i([s, u], a); } - case gS: { + case mS: { if (l) return i([l, [...a]], a); const u = [], d = i([s, u], a); @@ -48008,7 +48049,7 @@ const QU = -1, Cw = 0, gS = 1, vS = 2, p2 = 3, g2 = 4, v2 = 5, m2 = 6, JU = 7, e u.push(o(h)); return d; } - case vS: { + case yS: { if (l) switch (l) { case "BigInt": @@ -48021,26 +48062,26 @@ const QU = -1, Cw = 0, gS = 1, vS = 2, p2 = 3, g2 = 4, v2 = 5, m2 = 6, JU = 7, e if (t && "toJSON" in a) return o(a.toJSON()); const u = [], d = i([s, u], a); - for (const h of jTe(a)) - (e || !zy(Hp(a[h]))) && u.push([o(h), o(a[h])]); + for (const h of r_e(a)) + (e || !jy(Gp(a[h]))) && u.push([o(h), o(a[h])]); return d; } - case p2: + case pI: return i([s, a.toISOString()], a); - case g2: { + case gI: { const { source: u, flags: d } = a; return i([s, { source: u, flags: d }], a); } - case v2: { + case vI: { const u = [], d = i([s, u], a); for (const [h, f] of a) - (e || !(zy(Hp(h)) || zy(Hp(f)))) && u.push([o(h), o(f)]); + (e || !(jy(Gp(h)) || jy(Gp(f)))) && u.push([o(h), o(f)]); return d; } - case m2: { + case mI: { const u = [], d = i([s, u], a); for (const h of a) - (e || !zy(Hp(h))) && u.push(o(h)); + (e || !jy(Gp(h))) && u.push(o(h)); return d; } } @@ -48048,14 +48089,14 @@ const QU = -1, Cw = 0, gS = 1, vS = 2, p2 = 3, g2 = 4, v2 = 5, m2 = 6, JU = 7, e return i([s, { name: l, message: c }], a); }; return o; -}, r4 = (e, { json: t, lossy: r } = {}) => { +}, i4 = (e, { json: t, lossy: r } = {}) => { const n = []; - return UTe(!(t || r), !!t, /* @__PURE__ */ new Map(), n)(e), n; -}, mS = typeof structuredClone == "function" ? ( + return n_e(!(t || r), !!t, /* @__PURE__ */ new Map(), n)(e), n; +}, CS = typeof structuredClone == "function" ? ( /* c8 ignore start */ - (e, t) => t && ("json" in t || "lossy" in t) ? t4(r4(e, t)) : structuredClone(e) -) : (e, t) => t4(r4(e, t)); -function KTe(e, t) { + (e, t) => t && ("json" in t || "lossy" in t) ? n4(i4(e, t)) : structuredClone(e) +) : (e, t) => n4(i4(e, t)); +function i_e(e, t) { const r = [{ type: "text", value: "↩" }]; return t > 1 && r.push({ type: "element", @@ -48064,11 +48105,11 @@ function KTe(e, t) { children: [{ type: "text", value: String(t) }] }), r; } -function YTe(e, t) { +function o_e(e, t) { return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : ""); } -function qTe(e) { - const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = e.options.footnoteBackContent || KTe, n = e.options.footnoteBackLabel || YTe, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", a = e.options.footnoteLabelProperties || { +function a_e(e) { + const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = e.options.footnoteBackContent || i_e, n = e.options.footnoteBackLabel || o_e, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", a = e.options.footnoteLabelProperties || { className: ["sr-only"] }, s = []; let l = -1; @@ -48078,7 +48119,7 @@ function qTe(e) { ); if (!c) continue; - const u = e.all(c), d = String(c.identifier).toUpperCase(), h = lp(d.toLowerCase()); + const u = e.all(c), d = String(c.identifier).toUpperCase(), h = up(d.toLowerCase()); let f = 0; const p = [], g = e.footnoteCounts.get(d); for (; g !== void 0 && ++f <= g; ) { @@ -48120,7 +48161,7 @@ function qTe(e) { type: "element", tagName: o, properties: { - ...mS(a), + ...CS(a), id: "footnote-label" }, children: [{ type: "text", value: i }] @@ -48138,7 +48179,7 @@ function qTe(e) { ] }; } -const tK = ( +const iK = ( // Note: overloads in JSDoc can’t yet use different `@template`s. /** * @type {( @@ -48155,21 +48196,21 @@ const tK = ( */ function(e) { if (e == null) - return JTe; + return u_e; if (typeof e == "function") return Sw(e); if (typeof e == "object") - return Array.isArray(e) ? XTe(e) : ZTe(e); + return Array.isArray(e) ? s_e(e) : l_e(e); if (typeof e == "string") - return QTe(e); + return c_e(e); throw new Error("Expected function, string, or object as test"); } ); -function XTe(e) { +function s_e(e) { const t = []; let r = -1; for (; ++r < e.length; ) - t[r] = tK(e[r]); + t[r] = iK(e[r]); return Sw(n); function n(...i) { let o = -1; @@ -48178,7 +48219,7 @@ function XTe(e) { return !1; } } -function ZTe(e) { +function l_e(e) { const t = ( /** @type {Record} */ e @@ -48196,7 +48237,7 @@ function ZTe(e) { return !0; } } -function QTe(e) { +function c_e(e) { return Sw(t); function t(r) { return r && r.type === e; @@ -48205,7 +48246,7 @@ function QTe(e) { function Sw(e) { return t; function t(r, n, i) { - return !!(e_e(r) && e.call( + return !!(d_e(r) && e.call( this, r, typeof n == "number" ? n : void 0, @@ -48213,17 +48254,17 @@ function Sw(e) { )); } } -function JTe() { +function u_e() { return !0; } -function e_e(e) { +function d_e(e) { return e !== null && typeof e == "object" && "type" in e; } -const rK = [], t_e = !0, n4 = !1, r_e = "skip"; -function n_e(e, t, r, n) { +const oK = [], h_e = !0, o4 = !1, f_e = "skip"; +function p_e(e, t, r, n) { let i; typeof t == "function" && typeof r != "function" ? (n = r, r = t) : i = t; - const o = tK(i), a = n ? -1 : 1; + const o = iK(i), a = n ? -1 : 1; s(e, void 0, [])(); function s(l, c, u) { const d = ( @@ -48244,18 +48285,18 @@ function n_e(e, t, r, n) { } return h; function h() { - let f = rK, p, g, v; - if ((!t || o(l, c, u[u.length - 1] || void 0)) && (f = i_e(r(l, u)), f[0] === n4)) + let f = oK, p, g, v; + if ((!t || o(l, c, u[u.length - 1] || void 0)) && (f = g_e(r(l, u)), f[0] === o4)) return f; if ("children" in l && l.children) { const m = ( /** @type {UnistParent} */ l ); - if (m.children && f[0] !== r_e) + if (m.children && f[0] !== f_e) for (g = (n ? m.children.length : -1) + a, v = u.concat(m); g > -1 && g < m.children.length; ) { const y = m.children[g]; - if (p = s(y, g, v)(), p[0] === n4) + if (p = s(y, g, v)(), p[0] === o4) return p; g = typeof p[1] == "number" ? p[1] : g + a; } @@ -48264,22 +48305,22 @@ function n_e(e, t, r, n) { } } } -function i_e(e) { - return Array.isArray(e) ? e : typeof e == "number" ? [t_e, e] : e == null ? rK : [e]; +function g_e(e) { + return Array.isArray(e) ? e : typeof e == "number" ? [h_e, e] : e == null ? oK : [e]; } -function nK(e, t, r, n) { +function aK(e, t, r, n) { let i, o, a; - typeof t == "function" && typeof r != "function" ? (o = void 0, a = t, i = r) : (o = t, a = r, i = n), n_e(e, o, s, i); + typeof t == "function" && typeof r != "function" ? (o = void 0, a = t, i = r) : (o = t, a = r, i = n), p_e(e, o, s, i); function s(l, c) { const u = c[c.length - 1], d = u ? u.children.indexOf(l) : void 0; return a(l, d, u); } } -const c_ = {}.hasOwnProperty, o_e = {}; -function a_e(e, t) { - const r = t || o_e, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), a = { ...zTe, ...r.handlers }, s = { +const c_ = {}.hasOwnProperty, v_e = {}; +function m_e(e, t) { + const r = t || v_e, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), a = { ...JTe, ...r.handlers }, s = { all: c, - applyData: l_e, + applyData: C_e, definitionById: n, footnoteById: i, footnoteCounts: o, @@ -48287,10 +48328,10 @@ function a_e(e, t) { handlers: a, one: l, options: r, - patch: s_e, - wrap: u_e + patch: y_e, + wrap: b_e }; - return nK(e, function(u) { + return aK(e, function(u) { if (u.type === "definition" || u.type === "footnoteDefinition") { const d = u.type === "definition" ? n : i, h = String(u.identifier).toUpperCase(); d.has(h) || d.set(h, u); @@ -48302,12 +48343,12 @@ function a_e(e, t) { return f(s, u, d); if (s.options.passThrough && s.options.passThrough.includes(h)) { if ("children" in u) { - const { children: g, ...v } = u, m = mS(v); + const { children: g, ...v } = u, m = CS(v); return m.children = s.all(u), m; } - return mS(u); + return CS(u); } - return (s.options.unknownHandler || c_e)(s, u, d); + return (s.options.unknownHandler || S_e)(s, u, d); } function c(u) { const d = []; @@ -48317,9 +48358,9 @@ function a_e(e, t) { for (; ++f < h.length; ) { const p = s.one(h[f], u); if (p) { - if (f && h[f - 1].type === "break" && (!Array.isArray(p) && p.type === "text" && (p.value = i4(p.value)), !Array.isArray(p) && p.type === "element")) { + if (f && h[f - 1].type === "break" && (!Array.isArray(p) && p.type === "text" && (p.value = a4(p.value)), !Array.isArray(p) && p.type === "element")) { const g = p.children[0]; - g && g.type === "text" && (g.value = i4(g.value)); + g && g.type === "text" && (g.value = a4(g.value)); } Array.isArray(p) ? d.push(...p) : d.push(p); } @@ -48328,10 +48369,10 @@ function a_e(e, t) { return d; } } -function s_e(e, t) { - e.position && (t.position = zEe(e)); +function y_e(e, t) { + e.position && (t.position = JEe(e)); } -function l_e(e, t) { +function C_e(e, t) { let r = t; if (e && e.data) { const n = e.data.hName, i = e.data.hChildren, o = e.data.hProperties; @@ -48342,11 +48383,11 @@ function l_e(e, t) { const a = "children" in r ? r.children : [r]; r = { type: "element", tagName: n, properties: {}, children: a }; } - r.type === "element" && o && Object.assign(r.properties, mS(o)), "children" in r && r.children && i !== null && i !== void 0 && (r.children = i); + r.type === "element" && o && Object.assign(r.properties, CS(o)), "children" in r && r.children && i !== null && i !== void 0 && (r.children = i); } return r; } -function c_e(e, t) { +function S_e(e, t) { const r = t.data || {}, n = "value" in t && !(c_.call(r, "hProperties") || c_.call(r, "hChildren")) ? { type: "text", value: t.value } : { type: "element", tagName: "div", @@ -48355,7 +48396,7 @@ function c_e(e, t) { }; return e.patch(t, n), e.applyData(t, n); } -function u_e(e, t) { +function b_e(e, t) { const r = []; let n = -1; for (t && r.push({ type: "text", value: ` @@ -48365,77 +48406,77 @@ function u_e(e, t) { return t && e.length > 0 && r.push({ type: "text", value: ` ` }), r; } -function i4(e) { +function a4(e) { let t = 0, r = e.charCodeAt(t); for (; r === 9 || r === 32; ) t++, r = e.charCodeAt(t); return e.slice(t); } -function o4(e, t) { - const r = a_e(e, t), n = r.one(e, void 0), i = qTe(r), o = Array.isArray(n) ? { type: "root", children: n } : n || { type: "root", children: [] }; +function s4(e, t) { + const r = m_e(e, t), n = r.one(e, void 0), i = a_e(r), o = Array.isArray(n) ? { type: "root", children: n } : n || { type: "root", children: [] }; return i && o.children.push({ type: "text", value: ` ` }, i), o; } -function d_e(e, t) { +function w_e(e, t) { return e && "run" in e ? async function(r, n) { const i = ( /** @type {HastRoot} */ - o4(r, { file: n, ...t }) + s4(r, { file: n, ...t }) ); await e.run(i, n); } : function(r, n) { return ( /** @type {HastRoot} */ - o4(r, { file: n, ...t || e }) + s4(r, { file: n, ...t || e }) ); }; } -function a4(e) { +function l4(e) { if (e) throw e; } -var yC = Object.prototype.hasOwnProperty, iK = Object.prototype.toString, s4 = Object.defineProperty, l4 = Object.getOwnPropertyDescriptor, c4 = function(t) { - return typeof Array.isArray == "function" ? Array.isArray(t) : iK.call(t) === "[object Array]"; -}, u4 = function(t) { - if (!t || iK.call(t) !== "[object Object]") +var bC = Object.prototype.hasOwnProperty, sK = Object.prototype.toString, c4 = Object.defineProperty, u4 = Object.getOwnPropertyDescriptor, d4 = function(t) { + return typeof Array.isArray == "function" ? Array.isArray(t) : sK.call(t) === "[object Array]"; +}, h4 = function(t) { + if (!t || sK.call(t) !== "[object Object]") return !1; - var r = yC.call(t, "constructor"), n = t.constructor && t.constructor.prototype && yC.call(t.constructor.prototype, "isPrototypeOf"); + var r = bC.call(t, "constructor"), n = t.constructor && t.constructor.prototype && bC.call(t.constructor.prototype, "isPrototypeOf"); if (t.constructor && !r && !n) return !1; var i; for (i in t) ; - return typeof i > "u" || yC.call(t, i); -}, d4 = function(t, r) { - s4 && r.name === "__proto__" ? s4(t, r.name, { + return typeof i > "u" || bC.call(t, i); +}, f4 = function(t, r) { + c4 && r.name === "__proto__" ? c4(t, r.name, { enumerable: !0, configurable: !0, value: r.newValue, writable: !0 }) : t[r.name] = r.newValue; -}, h4 = function(t, r) { +}, p4 = function(t, r) { if (r === "__proto__") - if (yC.call(t, r)) { - if (l4) - return l4(t, r).value; + if (bC.call(t, r)) { + if (u4) + return u4(t, r).value; } else return; return t[r]; -}, h_e = function e() { +}, x_e = function e() { var t, r, n, i, o, a, s = arguments[0], l = 1, c = arguments.length, u = !1; for (typeof s == "boolean" && (u = s, s = arguments[1] || {}, l = 2), (s == null || typeof s != "object" && typeof s != "function") && (s = {}); l < c; ++l) if (t = arguments[l], t != null) for (r in t) - n = h4(s, r), i = h4(t, r), s !== i && (u && i && (u4(i) || (o = c4(i))) ? (o ? (o = !1, a = n && c4(n) ? n : []) : a = n && u4(n) ? n : {}, d4(s, { name: r, newValue: e(u, a, i) })) : typeof i < "u" && d4(s, { name: r, newValue: i })); + n = p4(s, r), i = p4(t, r), s !== i && (u && i && (h4(i) || (o = d4(i))) ? (o ? (o = !1, a = n && d4(n) ? n : []) : a = n && h4(n) ? n : {}, f4(s, { name: r, newValue: e(u, a, i) })) : typeof i < "u" && f4(s, { name: r, newValue: i })); return s; }; -const Rx = /* @__PURE__ */ qf(h_e); +const Rx = /* @__PURE__ */ Zf(x_e); function u_(e) { if (typeof e != "object" || e === null) return !1; const t = Object.getPrototypeOf(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e); } -function f_e() { +function E_e() { const e = [], t = { run: r, use: n }; return t; function r(...i) { @@ -48453,7 +48494,7 @@ function f_e() { } for (; ++d < i.length; ) (c[d] === null || c[d] === void 0) && (c[d] = i[d]); - i = c, u ? p_e(u, s)(...c) : a(null, ...c); + i = c, u ? R_e(u, s)(...c) : a(null, ...c); } } function n(i) { @@ -48464,7 +48505,7 @@ function f_e() { return e.push(i), t; } } -function p_e(e, t) { +function R_e(e, t) { let r; return n; function n(...a) { @@ -48491,11 +48532,11 @@ function p_e(e, t) { i(null, a); } } -const Ps = { basename: g_e, dirname: v_e, extname: m_e, join: y_e, sep: "/" }; -function g_e(e, t) { +const Ps = { basename: P_e, dirname: T_e, extname: __e, join: M_e, sep: "/" }; +function P_e(e, t) { if (t !== void 0 && typeof t != "string") throw new TypeError('"ext" argument must be a string'); - zm(e); + jm(e); let r = 0, n = -1, i = e.length, o; if (t === void 0 || t.length === 0 || t.length > e.length) { for (; i--; ) @@ -48520,8 +48561,8 @@ function g_e(e, t) { a < 0 && (o = !0, a = i + 1), s > -1 && (e.codePointAt(i) === t.codePointAt(s--) ? s < 0 && (n = i) : (s = -1, n = a)); return r === n ? n = a : n < 0 && (n = e.length), e.slice(r, n); } -function v_e(e) { - if (zm(e), e.length === 0) +function T_e(e) { + if (jm(e), e.length === 0) return "."; let t = -1, r = e.length, n; for (; --r; ) @@ -48533,8 +48574,8 @@ function v_e(e) { } else n || (n = !0); return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t); } -function m_e(e) { - zm(e); +function __e(e) { + jm(e); let t = e.length, r = -1, n = 0, i = -1, o = 0, a; for (; t--; ) { const s = e.codePointAt(t); @@ -48551,19 +48592,19 @@ function m_e(e) { o === 0 || // The (right-most) trimmed path component is exactly `..`. o === 1 && i === r - 1 && i === n + 1 ? "" : e.slice(i, r); } -function y_e(...e) { +function M_e(...e) { let t = -1, r; for (; ++t < e.length; ) - zm(e[t]), e[t] && (r = r === void 0 ? e[t] : r + "/" + e[t]); - return r === void 0 ? "." : C_e(r); + jm(e[t]), e[t] && (r = r === void 0 ? e[t] : r + "/" + e[t]); + return r === void 0 ? "." : D_e(r); } -function C_e(e) { - zm(e); +function D_e(e) { + jm(e); const t = e.codePointAt(0) === 47; - let r = S_e(e, !t); + let r = I_e(e, !t); return r.length === 0 && !t && (r = "."), r.length > 0 && e.codePointAt(e.length - 1) === 47 && (r += "/"), t ? "/" + r : r; } -function S_e(e, t) { +function I_e(e, t) { let r = "", n = 0, i = -1, o = 0, a = -1, s, l; for (; ++a <= e.length; ) { if (a < e.length) @@ -48594,21 +48635,21 @@ function S_e(e, t) { } return r; } -function zm(e) { +function jm(e) { if (typeof e != "string") throw new TypeError( "Path must be a string. Received " + JSON.stringify(e) ); } -const b_e = { cwd: w_e }; -function w_e() { +const A_e = { cwd: O_e }; +function O_e() { return "/"; } function d_(e) { return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine. e.auth === void 0); } -function x_e(e) { +function L_e(e) { if (typeof e == "string") e = new URL(e); else if (!d_(e)) { @@ -48621,9 +48662,9 @@ function x_e(e) { const t = new TypeError("The URL must be of scheme file"); throw t.code = "ERR_INVALID_URL_SCHEME", t; } - return E_e(e); + return F_e(e); } -function E_e(e) { +function F_e(e) { if (e.hostname !== "") { const n = new TypeError( 'File URL host must be "localhost" or empty on darwin' @@ -48655,7 +48696,7 @@ const Px = ( "dirname" ] ); -class oK { +class lK { /** * Create a new virtual file. * @@ -48680,7 +48721,7 @@ class oK { */ constructor(t) { let r; - t ? d_(t) ? r = { path: t } : typeof t == "string" || R_e(t) ? r = { value: t } : r = t : r = {}, this.cwd = b_e.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored; + t ? d_(t) ? r = { path: t } : typeof t == "string" || N_e(t) ? r = { value: t } : r = t : r = {}, this.cwd = A_e.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored; let n = -1; for (; ++n < Px.length; ) { const o = Px[n]; @@ -48734,7 +48775,7 @@ class oK { * Nothing. */ set dirname(t) { - f4(this.basename, "dirname"), this.path = Ps.join(t || "", this.basename); + g4(this.basename, "dirname"), this.path = Ps.join(t || "", this.basename); } /** * Get the extname (including dot) (example: `'.js'`). @@ -48758,7 +48799,7 @@ class oK { * Nothing. */ set extname(t) { - if (Tx(t, "extname"), f4(this.dirname, "extname"), t) { + if (Tx(t, "extname"), g4(this.dirname, "extname"), t) { if (t.codePointAt(0) !== 46) throw new Error("`extname` must start with `.`"); if (t.includes(".", 1)) @@ -48788,7 +48829,7 @@ class oK { * Nothing. */ set path(t) { - d_(t) && (t = x_e(t)), _x(t, "path"), this.path !== t && this.history.push(t); + d_(t) && (t = L_e(t)), _x(t, "path"), this.path !== t && this.history.push(t); } /** * Get the stem (basename w/o extname) (example: `'index.min'`). @@ -49035,14 +49076,14 @@ function _x(e, t) { if (!e) throw new Error("`" + t + "` cannot be empty"); } -function f4(e, t) { +function g4(e, t) { if (!e) throw new Error("Setting `" + t + "` requires `path` to be set too"); } -function R_e(e) { +function N_e(e) { return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e); } -const P_e = ( +const k_e = ( /** * @type {new , Result>(property: string | symbol) => (...parameters: Parameters) => Result} */ @@ -49063,13 +49104,13 @@ const P_e = ( }; return Object.setPrototypeOf(o, n), o; } -), T_e = {}.hasOwnProperty; -class y2 extends P_e { +), $_e = {}.hasOwnProperty; +class yI extends k_e { /** * Create a processor. */ constructor() { - super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = f_e(); + super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = E_e(); } /** * Copy a processor. @@ -49085,7 +49126,7 @@ class y2 extends P_e { copy() { const t = ( /** @type {Processor} */ - new y2() + new yI() ); let r = -1; for (; ++r < this.attachers.length; ) { @@ -49154,7 +49195,7 @@ class y2 extends P_e { * the entire dataset when getting without key. */ data(t, r) { - return typeof t == "string" ? arguments.length === 2 ? (Ix("data", this.frozen), this.namespace[t] = r, this) : T_e.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (Ix("data", this.frozen), this.namespace = t, this) : this.namespace; + return typeof t == "string" ? arguments.length === 2 ? (Ix("data", this.frozen), this.namespace[t] = r, this) : $_e.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (Ix("data", this.frozen), this.namespace = t, this) : this.namespace; } /** * Freeze a processor. @@ -49207,7 +49248,7 @@ class y2 extends P_e { */ parse(t) { this.freeze(); - const r = Gy(t), n = this.parser || this.Parser; + const r = Uy(t), n = this.parser || this.Parser; return Mx("parse", n), n(String(r), r); } /** @@ -49256,7 +49297,7 @@ class y2 extends P_e { const n = this; return this.freeze(), Mx("process", this.parser || this.Parser), Dx("process", this.compiler || this.Compiler), r ? i(void 0, r) : new Promise(i); function i(o, a) { - const s = Gy(t), l = ( + const s = Uy(t), l = ( /** @type {HeadTree extends undefined ? Node : HeadTree} */ /** @type {unknown} */ n.parse(s) @@ -49269,7 +49310,7 @@ class y2 extends P_e { /** @type {unknown} */ d ), p = n.stringify(f, h); - D_e(p) ? h.value = p : h.result = p, c( + H_e(p) ? h.value = p : h.result = p, c( u, /** @type {VFileWithOutput} */ h @@ -49313,9 +49354,9 @@ class y2 extends P_e { */ processSync(t) { let r = !1, n; - return this.freeze(), Mx("processSync", this.parser || this.Parser), Dx("processSync", this.compiler || this.Compiler), this.process(t, i), g4("processSync", "process", r), n; + return this.freeze(), Mx("processSync", this.parser || this.Parser), Dx("processSync", this.compiler || this.Compiler), this.process(t, i), m4("processSync", "process", r), n; function i(o, a) { - r = !0, a4(o), n = a; + r = !0, l4(o), n = a; } } /** @@ -49357,11 +49398,11 @@ class y2 extends P_e { * transformed tree. */ run(t, r, n) { - p4(t), this.freeze(); + v4(t), this.freeze(); const i = this.transformers; return !n && typeof r == "function" && (n = r, r = void 0), n ? o(void 0, n) : new Promise(o); function o(a, s) { - const l = Gy(r); + const l = Uy(r); i.run(t, l, c); function c(u, d, h) { const f = ( @@ -49391,9 +49432,9 @@ class y2 extends P_e { */ runSync(t, r) { let n = !1, i; - return this.run(t, r, o), g4("runSync", "run", n), i; + return this.run(t, r, o), m4("runSync", "run", n), i; function o(a, s) { - a4(a), i = s, n = !0; + l4(a), i = s, n = !0; } } /** @@ -49427,8 +49468,8 @@ class y2 extends P_e { */ stringify(t, r) { this.freeze(); - const n = Gy(r), i = this.compiler || this.Compiler; - return Dx("stringify", i), p4(t), i(t, n); + const n = Uy(r), i = this.compiler || this.Compiler; + return Dx("stringify", i), v4(t), i(t, n); } /** * Configure the processor to use a plugin, a list of usable values, or a @@ -49545,7 +49586,7 @@ class y2 extends P_e { } } } -const __e = new y2().freeze(); +const B_e = new yI().freeze(); function Mx(e, t) { if (typeof t != "function") throw new TypeError("Cannot `" + e + "` without `parser`"); @@ -49560,29 +49601,29 @@ function Ix(e, t) { "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`." ); } -function p4(e) { +function v4(e) { if (!u_(e) || typeof e.type != "string") throw new TypeError("Expected node, got `" + e + "`"); } -function g4(e, t, r) { +function m4(e, t, r) { if (!r) throw new Error( "`" + e + "` finished async. Use `" + t + "` instead" ); } -function Gy(e) { - return M_e(e) ? e : new oK(e); +function Uy(e) { + return V_e(e) ? e : new lK(e); } -function M_e(e) { +function V_e(e) { return !!(e && typeof e == "object" && "message" in e && "messages" in e); } -function D_e(e) { - return typeof e == "string" || I_e(e); +function H_e(e) { + return typeof e == "string" || z_e(e); } -function I_e(e) { +function z_e(e) { return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e); } -const A_e = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", v4 = [], m4 = { allowDangerousHtml: !0 }, O_e = /^(https?|ircs?|mailto|xmpp)$/i, L_e = [ +const G_e = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", y4 = [], C4 = { allowDangerousHtml: !0 }, W_e = /^(https?|ircs?|mailto|xmpp)$/i, j_e = [ { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" }, { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" }, { @@ -49615,11 +49656,11 @@ const A_e = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", { from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" }, { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" } ]; -function kv(e) { - const t = e.allowedElements, r = e.allowElement, n = e.children || "", i = e.className, o = e.components, a = e.disallowedElements, s = e.rehypePlugins || v4, l = e.remarkPlugins || v4, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...m4 } : m4, u = e.skipHtml, d = e.unwrapDisallowed, h = e.urlTransform || F_e, f = __e().use(vTe).use(l).use(d_e, c).use(s), p = new oK(); +function Ff(e) { + const t = e.allowedElements, r = e.allowElement, n = e.children || "", i = e.className, o = e.components, a = e.disallowedElements, s = e.rehypePlugins || y4, l = e.remarkPlugins || y4, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...C4 } : C4, u = e.skipHtml, d = e.unwrapDisallowed, h = e.urlTransform || U_e, f = B_e().use(TTe).use(l).use(w_e, c).use(s), p = new lK(); typeof n == "string" && (p.value = n); - for (const y of L_e) - Object.hasOwn(e, y.from) && ("" + y.from + (y.to ? "use `" + y.to + "` instead" : "remove it") + A_e + y.id, void 0); + for (const y of j_e) + Object.hasOwn(e, y.from) && ("" + y.from + (y.to ? "use `" + y.to + "` instead" : "remove it") + G_e + y.id, void 0); const g = f.parse(p); let v = f.runSync(g, p); return i && (v = { @@ -49631,12 +49672,12 @@ function kv(e) { /** @type {Array} */ v.type === "root" ? v.children : [v] ) - }), nK(v, m), YEe(v, { - Fragment: ne.Fragment, + }), aK(v, m), oRe(v, { + Fragment: ee.Fragment, components: o, ignoreInvalidStyle: !0, - jsx: ne.jsx, - jsxs: ne.jsxs, + jsx: ee.jsx, + jsxs: ee.jsxs, passKeys: !0, passNode: !0 }); @@ -49658,13 +49699,13 @@ function kv(e) { } } } -function F_e(e) { +function U_e(e) { const t = e.indexOf(":"), r = e.indexOf("?"), n = e.indexOf("#"), i = e.indexOf("/"); return ( // If there is no protocol, it’s relative. t < 0 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol. i > -1 && t > i || r > -1 && t > r || n > -1 && t > n || // It is a protocol, it should be allowed. - O_e.test(e.slice(0, t)) ? e : "" + W_e.test(e.slice(0, t)) ? e : "" ); } /*! ***************************************************************************** @@ -49688,7 +49729,7 @@ var h_ = function(e, t) { for (var i in n) n.hasOwnProperty(i) && (r[i] = n[i]); }, h_(e, t); }; -function aK(e, t) { +function cK(e, t) { h_(e, t); function r() { this.constructor = e; @@ -49734,37 +49775,37 @@ function Se(e, t) { } e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r()); } -var N_e = /* @__PURE__ */ function() { +var K_e = /* @__PURE__ */ function() { function e() { this.firefox = !1, this.ie = !1, this.edge = !1, this.newEdge = !1, this.weChat = !1; } return e; -}(), k_e = /* @__PURE__ */ function() { +}(), Y_e = /* @__PURE__ */ function() { function e() { - this.browser = new N_e(), 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 = typeof window < "u"; + this.browser = new K_e(), 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 = typeof window < "u"; } return e; -}(), Ou = new k_e(); -typeof wx == "object" && typeof wx.getSystemInfoSync == "function" ? (Ou.wxa = !0, Ou.touchEventsSupported = !0) : typeof document > "u" && typeof self < "u" ? Ou.worker = !0 : typeof navigator > "u" || navigator.userAgent.indexOf("Node.js") === 0 ? (Ou.node = !0, Ou.svgSupported = !0) : $_e(navigator.userAgent, Ou); -function $_e(e, t) { +}(), Ou = new Y_e(); +typeof wx == "object" && typeof wx.getSystemInfoSync == "function" ? (Ou.wxa = !0, Ou.touchEventsSupported = !0) : typeof document > "u" && typeof self < "u" ? Ou.worker = !0 : typeof navigator > "u" || navigator.userAgent.indexOf("Node.js") === 0 ? (Ou.node = !0, Ou.svgSupported = !0) : q_e(navigator.userAgent, Ou); +function q_e(e, t) { var r = t.browser, n = e.match(/Firefox\/([\d.]+)/), i = e.match(/MSIE\s([\d.]+)/) || e.match(/Trident\/.+?rv:(([\d.]+))/), o = e.match(/Edge?\/([\d.]+)/), a = /micromessenger/i.test(e); n && (r.firefox = !0, r.version = n[1]), i && (r.ie = !0, r.version = i[1]), o && (r.edge = !0, r.version = o[1], r.newEdge = +o[1].split(".")[0] > 18), a && (r.weChat = !0), t.svgSupported = typeof SVGRect < "u", t.touchEventsSupported = "ontouchstart" in window && !r.ie && !r.edge, t.pointerEventsSupported = "onpointerdown" in window && (r.edge || r.ie && +r.version >= 11), t.domSupported = typeof document < "u"; var s = document.documentElement.style; t.transform3dSupported = (r.ie && "transition" in s || r.edge || "WebKitCSSMatrix" in window && "m11" in new WebKitCSSMatrix() || "MozPerspective" in s) && !("OTransition" in s), t.transformSupported = t.transform3dSupported || r.ie && +r.version >= 9; } const gr = Ou; -var C2 = 12, sK = "sans-serif", Vc = C2 + "px " + sK, B_e = 20, V_e = 100, H_e = "007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"; -function z_e(e) { +var CI = 12, uK = "sans-serif", Vc = CI + "px " + uK, X_e = 20, Z_e = 100, Q_e = "007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"; +function J_e(e) { var t = {}; if (typeof JSON > "u") return t; for (var r = 0; r < e.length; r++) { - var n = String.fromCharCode(r + 32), i = (e.charCodeAt(r) - B_e) / V_e; + var n = String.fromCharCode(r + 32), i = (e.charCodeAt(r) - X_e) / Z_e; t[n] = i; } return t; } -var G_e = z_e(H_e), os = { +var eMe = J_e(Q_e), os = { createCanvas: function() { return typeof document < "u" && document.createElement("canvas"); }, @@ -49778,12 +49819,12 @@ var G_e = z_e(H_e), os = { if (e) return t !== n && (t = e.font = n || Vc), e.measureText(r); r = r || "", n = n || Vc; - var o = /((?:\d+)?\.?\d*)px/.exec(n), a = o && +o[1] || C2, s = 0; + var o = /((?:\d+)?\.?\d*)px/.exec(n), a = o && +o[1] || CI, s = 0; if (n.indexOf("mono") >= 0) s = a * r.length; else for (var l = 0; l < r.length; l++) { - var c = G_e[r[l]]; + var c = eMe[r[l]]; s += c == null ? a : c * a; } return { width: s }; @@ -49794,11 +49835,11 @@ var G_e = z_e(H_e), os = { return n.onload = t, n.onerror = r, n.src = e, n; } }; -function lK(e) { +function dK(e) { for (var t in os) e[t] && (os[t] = e[t]); } -var cK = Ra([ +var hK = Ra([ "Function", "RegExp", "Date", @@ -49809,7 +49850,7 @@ var cK = Ra([ "Canvas" ], function(e, t) { return e["[object " + t + "]"] = !0, e; -}, {}), uK = Ra([ +}, {}), fK = Ra([ "Int8", "Uint8", "Uint8Clamped", @@ -49821,10 +49862,10 @@ var cK = Ra([ "Float64" ], function(e, t) { return e["[object " + t + "Array]"] = !0, e; -}, {}), cp = Object.prototype.toString, bw = Array.prototype, W_e = bw.forEach, j_e = bw.filter, S2 = bw.slice, U_e = bw.map, y4 = (function() { -}).constructor, Wy = y4 ? y4.prototype : null, b2 = "__proto__", K_e = 2311; -function w2() { - return K_e++; +}, {}), dp = Object.prototype.toString, bw = Array.prototype, tMe = bw.forEach, rMe = bw.filter, SI = bw.slice, nMe = bw.map, S4 = (function() { +}).constructor, Ky = S4 ? S4.prototype : null, bI = "__proto__", iMe = 2311; +function wI() { + return iMe++; } function ya() { for (var e = [], t = 0; t < arguments.length; t++) @@ -49834,14 +49875,14 @@ function ya() { function _t(e) { if (e == null || typeof e != "object") return e; - var t = e, r = cp.call(e); + var t = e, r = dp.call(e); if (r === "[object Array]") { if (!gf(e)) { t = []; for (var n = 0, i = e.length; n < i; n++) t[n] = _t(e[n]); } - } else if (uK[r]) { + } else if (fK[r]) { if (!gf(e)) { var o = e.constructor; if (o.from) @@ -49852,26 +49893,26 @@ function _t(e) { t[n] = e[n]; } } - } else if (!cK[r] && !gf(e) && !Hc(e)) { + } else if (!hK[r] && !gf(e) && !Hc(e)) { t = {}; for (var a in e) - e.hasOwnProperty(a) && a !== b2 && (t[a] = _t(e[a])); + e.hasOwnProperty(a) && a !== bI && (t[a] = _t(e[a])); } return t; } -function Wt(e, t, r) { - if (!St(t) || !St(e)) +function jt(e, t, r) { + if (!bt(t) || !bt(e)) return r ? _t(t) : e; for (var n in t) - if (t.hasOwnProperty(n) && n !== b2) { + if (t.hasOwnProperty(n) && n !== bI) { var i = e[n], o = t[n]; - St(o) && St(i) && !Ie(o) && !Ie(i) && !Hc(o) && !Hc(i) && !g_(o) && !g_(i) && !gf(o) && !gf(i) ? Wt(i, o, r) : (r || !(n in e)) && (e[n] = _t(t[n])); + bt(o) && bt(i) && !Ae(o) && !Ae(i) && !Hc(o) && !Hc(i) && !g_(o) && !g_(i) && !gf(o) && !gf(i) ? jt(i, o, r) : (r || !(n in e)) && (e[n] = _t(t[n])); } return e; } function ww(e, t) { for (var r = e[0], n = 1, i = e.length; n < i; n++) - r = Wt(r, e[n], t); + r = jt(r, e[n], t); return r; } function Pe(e, t) { @@ -49879,18 +49920,18 @@ function Pe(e, t) { Object.assign(e, t); else for (var r in t) - t.hasOwnProperty(r) && r !== b2 && (e[r] = t[r]); + t.hasOwnProperty(r) && r !== bI && (e[r] = t[r]); return e; } -function wt(e, t, r) { +function xt(e, t, r) { for (var n = ar(t), i = 0; i < n.length; i++) { var o = n[i]; (r ? t[o] != null : e[o] == null) && (e[o] = t[o]); } return e; } -var Y_e = os.createCanvas; -function Yt(e, t) { +var oMe = os.createCanvas; +function qt(e, t) { if (e) { if (e.indexOf) return e.indexOf(t); @@ -49900,7 +49941,7 @@ function Yt(e, t) { } return -1; } -function x2(e, t) { +function xI(e, t) { var r = e.prototype; function n() { } @@ -49916,14 +49957,14 @@ function In(e, t, r) { o !== "constructor" && (r ? t[o] != null : e[o] == null) && (e[o] = t[o]); } else - wt(e, t, r); + xt(e, t, r); } -function wi(e) { +function xi(e) { return !e || typeof e == "string" ? !1 : typeof e.length == "number"; } function z(e, t, r) { if (e && t) - if (e.forEach && e.forEach === W_e) + if (e.forEach && e.forEach === tMe) e.forEach(t, r); else if (e.length === +e.length) for (var n = 0, i = e.length; n < i; n++) @@ -49937,7 +49978,7 @@ function Fe(e, t, r) { return []; if (!t) return xw(e); - if (e.map && e.map === U_e) + if (e.map && e.map === nMe) return e.map(t, r); for (var n = [], i = 0, o = e.length; i < o; i++) n.push(t.call(r, e[i], i, e)); @@ -49950,18 +49991,18 @@ function Ra(e, t, r, n) { return r; } } -function Fr(e, t, r) { +function Nr(e, t, r) { if (!e) return []; if (!t) return xw(e); - if (e.filter && e.filter === j_e) + if (e.filter && e.filter === rMe) return e.filter(t, r); for (var n = [], i = 0, o = e.length; i < o; i++) t.call(r, e[i], i, e) && n.push(e[i]); return n; } -function dK(e, t, r) { +function pK(e, t, r) { if (e && t) { for (var n = 0, i = e.length; n < i; n++) if (t.call(r, e[n], n, e)) @@ -49978,57 +50019,57 @@ function ar(e) { e.hasOwnProperty(r) && t.push(r); return t; } -function q_e(e, t) { +function aMe(e, t) { for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; return function() { - return e.apply(t, r.concat(S2.call(arguments))); + return e.apply(t, r.concat(SI.call(arguments))); }; } -var at = Wy && vt(Wy.bind) ? Wy.call.bind(Wy.bind) : q_e; +var at = Ky && mt(Ky.bind) ? Ky.call.bind(Ky.bind) : aMe; function Vt(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; return function() { - return e.apply(this, t.concat(S2.call(arguments))); + return e.apply(this, t.concat(SI.call(arguments))); }; } -function Ie(e) { - return Array.isArray ? Array.isArray(e) : cp.call(e) === "[object Array]"; +function Ae(e) { + return Array.isArray ? Array.isArray(e) : dp.call(e) === "[object Array]"; } -function vt(e) { +function mt(e) { return typeof e == "function"; } function Je(e) { return typeof e == "string"; } -function $v(e) { - return cp.call(e) === "[object String]"; +function Vv(e) { + return dp.call(e) === "[object String]"; } function Cr(e) { return typeof e == "number"; } -function St(e) { +function bt(e) { var t = typeof e; return t === "function" || !!e && t === "object"; } function g_(e) { - return !!cK[cp.call(e)]; + return !!hK[dp.call(e)]; } function ki(e) { - return !!uK[cp.call(e)]; + return !!fK[dp.call(e)]; } function Hc(e) { return typeof e == "object" && typeof e.nodeType == "number" && typeof e.ownerDocument == "object"; } -function Gm(e) { +function Um(e) { return e.colorStops != null; } -function hK(e) { +function gK(e) { return e.image != null; } -function E2(e) { - return cp.call(e) === "[object RegExp]"; +function EI(e) { + return dp.call(e) === "[object RegExp]"; } function zc(e) { return e !== e; @@ -50049,7 +50090,7 @@ function Go(e, t, r) { function xw(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; - return S2.apply(e, t); + return SI.apply(e, t); } function Ew(e) { if (typeof e == "number") @@ -50057,21 +50098,21 @@ function Ew(e) { var t = e.length; return t === 2 ? [e[0], e[1], e[0], e[1]] : t === 3 ? [e[0], e[1], e[2], e[1]] : e; } -function xt(e, t) { +function Et(e, t) { if (!e) throw new Error(t); } function ga(e) { return e == null ? null : typeof e.trim == "function" ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); } -var fK = "__ec_primitive__"; -function Bv(e) { - e[fK] = !0; +var vK = "__ec_primitive__"; +function Hv(e) { + e[vK] = !0; } function gf(e) { - return e[fK]; + return e[vK]; } -var X_e = function() { +var sMe = function() { function e() { this.data = {}; } @@ -50091,14 +50132,14 @@ var X_e = function() { for (var n in r) r.hasOwnProperty(n) && t(r[n], n); }, e; -}(), pK = typeof Map == "function"; -function Z_e() { - return pK ? /* @__PURE__ */ new Map() : new X_e(); +}(), mK = typeof Map == "function"; +function lMe() { + return mK ? /* @__PURE__ */ new Map() : new sMe(); } -var gK = function() { +var yK = function() { function e(t) { - var r = Ie(t); - this.data = Z_e(); + var r = Ae(t); + this.data = lMe(); var n = this; t instanceof e ? t.each(i) : t && z(t, i); function i(o, a) { @@ -50117,22 +50158,22 @@ var gK = function() { }); }, e.prototype.keys = function() { var t = this.data.keys(); - return pK ? Array.from(t) : t; + return mK ? Array.from(t) : t; }, e.prototype.removeKey = function(t) { this.data.delete(t); }, e; }(); function ft(e) { - return new gK(e); + return new yK(e); } -function Vv(e, t) { +function zv(e, t) { for (var r = new e.constructor(e.length + t.length), n = 0; n < e.length; n++) r[n] = e[n]; for (var i = e.length, n = 0; n < t.length; n++) r[n + i] = t[n]; return r; } -function Wm(e, t) { +function Km(e, t) { var r; if (Object.create) r = Object.create(e); @@ -50143,7 +50184,7 @@ function Wm(e, t) { } return t && Pe(r, t), r; } -function R2(e) { +function RI(e) { var t = e.style; t.webkitUserSelect = "none", t.userSelect = "none", t.webkitTapHighlightColor = "rgba(0,0,0,0)", t["-webkit-touch-callout"] = "none"; } @@ -50152,48 +50193,48 @@ function lt(e, t) { } function Dn() { } -var Xg = 180 / Math.PI; -const Q_e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +var Qg = 180 / Math.PI; +const cMe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - HashMap: gK, - RADIAN_TO_DEGREE: Xg, - assert: xt, + HashMap: yK, + RADIAN_TO_DEGREE: Qg, + assert: Et, bind: at, clone: _t, - concatArray: Vv, - createCanvas: Y_e, + concatArray: zv, + createCanvas: oMe, createHashMap: ft, - createObject: Wm, + createObject: Km, curry: Vt, - defaults: wt, - disableUserSelect: R2, + defaults: xt, + disableUserSelect: RI, each: z, eqNaN: zc, extend: Pe, - filter: Fr, - find: dK, - guid: w2, + filter: Nr, + find: pK, + guid: wI, hasOwn: lt, - indexOf: Yt, - inherits: x2, - isArray: Ie, - isArrayLike: wi, + indexOf: qt, + inherits: xI, + isArray: Ae, + isArrayLike: xi, isBuiltInObject: g_, isDom: Hc, - isFunction: vt, - isGradientObject: Gm, - isImagePatternObject: hK, + isFunction: mt, + isGradientObject: Um, + isImagePatternObject: gK, isNumber: Cr, - isObject: St, + isObject: bt, isPrimitive: gf, - isRegExp: E2, + isRegExp: EI, isString: Je, - isStringSafe: $v, + isStringSafe: Vv, isTypedArray: ki, keys: ar, logError: ya, map: Fe, - merge: Wt, + merge: jt, mergeAll: ww, mixin: In, noop: Dn, @@ -50202,7 +50243,7 @@ const Q_e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( retrieve: $n, retrieve2: $t, retrieve3: Go, - setAsPrimitive: Bv, + setAsPrimitive: Hv, slice: xw, trim: ga }, Symbol.toStringTag, { value: "Module" })); @@ -50245,92 +50286,92 @@ function Mi(e, t) { function $s(e) { return [e[0], e[1]]; } -function vK(e, t, r) { +function CK(e, t, r) { return e[0] = t, e[1] = r, e; } function m_(e, t, r) { return e[0] = t[0] + r[0], e[1] = t[1] + r[1], e; } -function yS(e, t, r, n) { +function SS(e, t, r, n) { return e[0] = t[0] + r[0] * n, e[1] = t[1] + r[1] * n, e; } function Cc(e, t, r) { return e[0] = t[0] - r[0], e[1] = t[1] - r[1], e; } -function Hv(e) { - return Math.sqrt(P2(e)); +function Gv(e) { + return Math.sqrt(PI(e)); } -var J_e = Hv; -function P2(e) { +var uMe = Gv; +function PI(e) { return e[0] * e[0] + e[1] * e[1]; } -var eMe = P2; -function tMe(e, t, r) { +var dMe = PI; +function hMe(e, t, r) { return e[0] = t[0] * r[0], e[1] = t[1] * r[1], e; } -function rMe(e, t, r) { +function fMe(e, t, r) { return e[0] = t[0] / r[0], e[1] = t[1] / r[1], e; } -function nMe(e, t) { +function pMe(e, t) { return e[0] * t[0] + e[1] * t[1]; } -function Zg(e, t, r) { +function Jg(e, t, r) { return e[0] = t[0] * r, e[1] = t[1] * r, e; } function jd(e, t) { - var r = Hv(t); + var r = Gv(t); return r === 0 ? (e[0] = 0, e[1] = 0) : (e[0] = t[0] / r, e[1] = t[1] / r), e; } -function CS(e, t) { +function bS(e, t) { return Math.sqrt((e[0] - t[0]) * (e[0] - t[0]) + (e[1] - t[1]) * (e[1] - t[1])); } -var wl = CS; -function mK(e, t) { +var xl = bS; +function SK(e, t) { return (e[0] - t[0]) * (e[0] - t[0]) + (e[1] - t[1]) * (e[1] - t[1]); } -var Tc = mK; -function iMe(e, t) { +var Tc = SK; +function gMe(e, t) { return e[0] = -t[0], e[1] = -t[1], e; } -function Qg(e, t, r, n) { +function ev(e, t, r, n) { return e[0] = t[0] + n * (r[0] - t[0]), e[1] = t[1] + n * (r[1] - t[1]), e; } -function gi(e, t, r) { +function vi(e, t, r) { var n = t[0], i = t[1]; return e[0] = r[0] * n + r[2] * i + r[4], e[1] = r[1] * n + r[3] * i + r[5], e; } -function xl(e, t, r) { +function El(e, t, r) { return e[0] = Math.min(t[0], r[0]), e[1] = Math.min(t[1], r[1]), e; } -function El(e, t, r) { +function Rl(e, t, r) { return e[0] = Math.max(t[0], r[0]), e[1] = Math.max(t[1], r[1]), e; } -const oMe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const vMe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, add: m_, - applyTransform: gi, + applyTransform: vi, clone: $s, copy: Mi, create: Jc, - dist: wl, + dist: xl, distSquare: Tc, - distance: CS, - distanceSquare: mK, - div: rMe, - dot: nMe, - len: Hv, - lenSquare: P2, - length: J_e, - lengthSquare: eMe, - lerp: Qg, - max: El, - min: xl, - mul: tMe, - negate: iMe, + distance: bS, + distanceSquare: SK, + div: fMe, + dot: pMe, + len: Gv, + lenSquare: PI, + length: uMe, + lengthSquare: dMe, + lerp: ev, + max: Rl, + min: El, + mul: hMe, + negate: gMe, normalize: jd, - scale: Zg, - scaleAndAdd: yS, - set: vK, + scale: Jg, + scaleAndAdd: SS, + set: CK, sub: Cc }, Symbol.toStringTag, { value: "Module" })); var mh = /* @__PURE__ */ function() { @@ -50338,7 +50379,7 @@ var mh = /* @__PURE__ */ function() { this.target = t, this.topTarget = r && r.topTarget; } return e; -}(), aMe = function() { +}(), mMe = function() { function e(t) { this.handler = t, t.on("mousedown", this._dragStart, this), t.on("mousemove", this._drag, this), t.on("mouseup", this._dragEnd, this); } @@ -50451,13 +50492,13 @@ var mh = /* @__PURE__ */ function() { } return o && o.afterTrigger && o.afterTrigger(t), this; }, e; -}(), sMe = Math.log(2); +}(), yMe = Math.log(2); function y_(e, t, r, n, i, o) { var a = n + "-" + i, s = e.length; if (o.hasOwnProperty(a)) return o[a]; if (t === 1) { - var l = Math.round(Math.log((1 << s) - 1 & ~i) / sMe); + var l = Math.round(Math.log((1 << s) - 1 & ~i) / yMe); return e[r][l]; } for (var c = n | 1 << r, u = r + 1; n & 1 << u; ) @@ -50468,7 +50509,7 @@ function y_(e, t, r, n, i, o) { } return o[a] = d, d; } -function C4(e, t) { +function b4(e, t) { var r = [ [e[0], e[1], 1, 0, 0, 0, -t[0] * e[0], -t[0] * e[1]], [0, 0, 0, e[0], e[1], 1, -t[1] * e[0], -t[1] * e[1]], @@ -50489,19 +50530,19 @@ function C4(e, t) { }; } } -var S4 = "___zrEVENTSAVED", Ax = []; -function lMe(e, t, r, n, i) { +var w4 = "___zrEVENTSAVED", Ax = []; +function CMe(e, t, r, n, i) { return C_(Ax, t, n, i, !0) && C_(e, r, Ax[0], Ax[1]); } function C_(e, t, r, n, i) { - if (t.getBoundingClientRect && gr.domSupported && !yK(t)) { - var o = t[S4] || (t[S4] = {}), a = cMe(t, o), s = uMe(a, o, i); + if (t.getBoundingClientRect && gr.domSupported && !bK(t)) { + var o = t[w4] || (t[w4] = {}), a = SMe(t, o), s = bMe(a, o, i); if (s) return s(e, r, n), !0; } return !1; } -function cMe(e, t) { +function SMe(e, t) { var r = t.markers; if (r) return r; @@ -50526,17 +50567,17 @@ function cMe(e, t) { } return r; } -function uMe(e, t, r) { +function bMe(e, t, r) { for (var n = r ? "invTrans" : "trans", i = t[n], o = t.srcCoords, a = [], s = [], l = !0, c = 0; c < 4; c++) { var u = e[c].getBoundingClientRect(), d = 2 * c, h = u.left, f = u.top; a.push(h, f), l = l && o && h === o[d] && f === o[d + 1], s.push(e[c].offsetLeft, e[c].offsetTop); } - return l && i ? i : (t.srcCoords = a, t[n] = r ? C4(s, a) : C4(a, s)); + return l && i ? i : (t.srcCoords = a, t[n] = r ? b4(s, a) : b4(a, s)); } -function yK(e) { +function bK(e) { return e.nodeName.toUpperCase() === "CANVAS"; } -var dMe = /([&<>"'])/g, hMe = { +var wMe = /([&<>"'])/g, xMe = { "&": "&", "<": "<", ">": ">", @@ -50544,18 +50585,18 @@ var dMe = /([&<>"'])/g, hMe = { "'": "'" }; function Ki(e) { - return e == null ? "" : (e + "").replace(dMe, function(t, r) { - return hMe[r]; + return e == null ? "" : (e + "").replace(wMe, function(t, r) { + return xMe[r]; }); } -var fMe = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, Ox = [], pMe = gr.browser.firefox && +gr.browser.version.split(".")[0] < 39; +var EMe = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, Ox = [], RMe = gr.browser.firefox && +gr.browser.version.split(".")[0] < 39; function S_(e, t, r, n) { - return r = r || {}, n ? b4(e, t, r) : pMe && t.layerX != null && t.layerX !== t.offsetX ? (r.zrX = t.layerX, r.zrY = t.layerY) : t.offsetX != null ? (r.zrX = t.offsetX, r.zrY = t.offsetY) : b4(e, t, r), r; + return r = r || {}, n ? x4(e, t, r) : RMe && t.layerX != null && t.layerX !== t.offsetX ? (r.zrX = t.layerX, r.zrY = t.layerY) : t.offsetX != null ? (r.zrX = t.offsetX, r.zrY = t.offsetY) : x4(e, t, r), r; } -function b4(e, t, r) { +function x4(e, t, r) { if (gr.domSupported && e.getBoundingClientRect) { var n = t.clientX, i = t.clientY; - if (yK(e)) { + if (bK(e)) { var o = e.getBoundingClientRect(); r.zrX = n - o.left, r.zrY = i - o.top; return; @@ -50566,11 +50607,11 @@ function b4(e, t, r) { } r.zrX = r.zrY = 0; } -function T2(e) { +function TI(e) { return e || window.event; } function aa(e, t, r) { - if (t = T2(t), t.zrX != null) + if (t = TI(t), t.zrX != null) return t; var n = t.type, i = n && n.indexOf("touch") >= 0; if (i) { @@ -50578,13 +50619,13 @@ function aa(e, t, r) { a && S_(e, a, t, r); } else { S_(e, t, t, r); - var o = gMe(t); + var o = PMe(t); t.zrDelta = o ? o / 120 : -(t.detail || 0) / 3; } var s = t.button; - return t.which == null && s !== void 0 && fMe.test(t.type) && (t.which = s & 1 ? 1 : s & 2 ? 3 : s & 4 ? 2 : 0), t; + return t.which == null && s !== void 0 && EMe.test(t.type) && (t.which = s & 1 ? 1 : s & 2 ? 3 : s & 4 ? 2 : 0), t; } -function gMe(e) { +function PMe(e) { var t = e.wheelDelta; if (t) return t; @@ -50597,16 +50638,16 @@ function gMe(e) { function b_(e, t, r, n) { e.addEventListener(t, r, n); } -function vMe(e, t, r, n) { +function TMe(e, t, r, n) { e.removeEventListener(t, r, n); } -var Bl = function(e) { +var Vl = function(e) { e.preventDefault(), e.stopPropagation(), e.cancelBubble = !0; }; -function w4(e) { +function E4(e) { return e.which === 2 || e.which === 3; } -var mMe = function() { +var _Me = function() { function e() { this._track = []; } @@ -50637,11 +50678,11 @@ var mMe = function() { } }, e; }(); -function x4(e) { +function R4(e) { var t = e[1][0] - e[0][0], r = e[1][1] - e[0][1]; return Math.sqrt(t * t + r * r); } -function yMe(e) { +function MMe(e) { return [ (e[0][0] + e[1][0]) / 2, (e[0][1] + e[1][1]) / 2 @@ -50653,9 +50694,9 @@ var Lx = { if (r) { var n = (e[r - 1] || {}).points, i = (e[r - 2] || {}).points || n; if (i && i.length > 1 && n && n.length > 1) { - var o = x4(n) / x4(i); + var o = R4(n) / R4(i); !isFinite(o) && (o = 1), t.pinchScale = o; - var a = yMe(n); + var a = MMe(n); return t.pinchX = a[0], t.pinchY = a[1], { type: "pinch", target: e[0].target, @@ -50668,7 +50709,7 @@ var Lx = { function So() { return [1, 0, 0, 1, 0, 0]; } -function jm(e) { +function Ym(e) { return e[0] = 1, e[1] = 0, e[2] = 0, e[3] = 1, e[4] = 0, e[5] = 0, e; } function Rw(e, t) { @@ -50694,23 +50735,23 @@ function Ud(e, t) { var r = t[0], n = t[2], i = t[4], o = t[1], a = t[3], s = t[5], l = r * a - o * n; return l ? (l = 1 / l, e[0] = a * l, e[1] = -o * l, e[2] = -n * l, e[3] = r * l, e[4] = (n * s - a * i) * l, e[5] = (o * i - r * s) * l, e) : null; } -function CK(e) { +function wK(e) { var t = So(); return Rw(t, e), t; } -const CMe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const DMe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - clone: CK, + clone: wK, copy: Rw, create: So, - identity: jm, + identity: Ym, invert: Ud, mul: Bs, rotate: eu, scale: Pw, translate: as }, Symbol.toStringTag, { value: "Module" })); -var Ut = function() { +var Kt = function() { function e(t, r) { this.x = t || 0, this.y = r || 0; } @@ -50778,13 +50819,13 @@ var Ut = function() { var o = 1 - i; t.x = o * r.x + i * n.x, t.y = o * r.y + i * n.y; }, e; -}(), jy = Math.min, Uy = Math.max, lu = new Ut(), cu = new Ut(), uu = new Ut(), du = new Ut(), zp = new Ut(), Gp = new Ut(), SMe = function() { +}(), Yy = Math.min, qy = Math.max, lu = new Kt(), cu = new Kt(), uu = new Kt(), du = new Kt(), Wp = new Kt(), jp = new Kt(), IMe = function() { function e(t, r, n, i) { n < 0 && (t = t + n, n = -n), i < 0 && (r = r + i, i = -i), this.x = t, this.y = r, this.width = n, this.height = i; } return e.prototype.union = function(t) { - var r = jy(t.x, this.x), n = jy(t.y, this.y); - isFinite(this.x) && isFinite(this.width) ? this.width = Uy(t.x + t.width, this.x + this.width) - r : this.width = t.width, isFinite(this.y) && isFinite(this.height) ? this.height = Uy(t.y + t.height, this.y + this.height) - n : this.height = t.height, this.x = r, this.y = n; + var r = Yy(t.x, this.x), n = Yy(t.y, this.y); + isFinite(this.x) && isFinite(this.width) ? this.width = qy(t.x + t.width, this.x + this.width) - r : this.width = t.width, isFinite(this.y) && isFinite(this.height) ? this.height = qy(t.y + t.height, this.y + this.height) - n : this.height = t.height, this.x = r, this.y = n; }, e.prototype.applyTransform = function(t) { e.applyTransform(this, this, t); }, e.prototype.calculateTransform = function(t) { @@ -50797,9 +50838,9 @@ var Ut = function() { var n = this, i = n.x, o = n.x + n.width, a = n.y, s = n.y + n.height, l = t.x, c = t.x + t.width, u = t.y, d = t.y + t.height, h = !(o < l || c < i || s < u || d < a); if (r) { var f = 1 / 0, p = 0, g = Math.abs(o - l), v = Math.abs(c - i), m = Math.abs(s - u), y = Math.abs(d - a), C = Math.min(g, v), b = Math.min(m, y); - o < l || c < i ? C > p && (p = C, g < v ? Ut.set(Gp, -g, 0) : Ut.set(Gp, v, 0)) : C < f && (f = C, g < v ? Ut.set(zp, g, 0) : Ut.set(zp, -v, 0)), s < u || d < a ? b > p && (p = b, m < y ? Ut.set(Gp, 0, -m) : Ut.set(Gp, 0, y)) : C < f && (f = C, m < y ? Ut.set(zp, 0, m) : Ut.set(zp, 0, -y)); + o < l || c < i ? C > p && (p = C, g < v ? Kt.set(jp, -g, 0) : Kt.set(jp, v, 0)) : C < f && (f = C, g < v ? Kt.set(Wp, g, 0) : Kt.set(Wp, -v, 0)), s < u || d < a ? b > p && (p = b, m < y ? Kt.set(jp, 0, -m) : Kt.set(jp, 0, y)) : C < f && (f = C, m < y ? Kt.set(Wp, 0, m) : Kt.set(Wp, 0, -y)); } - return r && Ut.copy(r, h ? zp : Gp), h; + return r && Kt.copy(r, h ? Wp : jp), h; }, e.prototype.contain = function(t, r) { var n = this; return t >= n.x && t <= n.x + n.width && r >= n.y && r <= n.y + n.height; @@ -50832,14 +50873,14 @@ var Ut = function() { t.x = r.x * i + a, t.y = r.y * o + s, t.width = r.width * i, t.height = r.height * o, t.width < 0 && (t.x += t.width, t.width = -t.width), t.height < 0 && (t.y += t.height, t.height = -t.height); return; } - lu.x = uu.x = r.x, lu.y = du.y = r.y, cu.x = du.x = r.x + r.width, cu.y = uu.y = r.y + r.height, lu.transform(n), du.transform(n), cu.transform(n), uu.transform(n), t.x = jy(lu.x, cu.x, uu.x, du.x), t.y = jy(lu.y, cu.y, uu.y, du.y); - var l = Uy(lu.x, cu.x, uu.x, du.x), c = Uy(lu.y, cu.y, uu.y, du.y); + lu.x = uu.x = r.x, lu.y = du.y = r.y, cu.x = du.x = r.x + r.width, cu.y = uu.y = r.y + r.height, lu.transform(n), du.transform(n), cu.transform(n), uu.transform(n), t.x = Yy(lu.x, cu.x, uu.x, du.x), t.y = Yy(lu.y, cu.y, uu.y, du.y); + var l = qy(lu.x, cu.x, uu.x, du.x), c = qy(lu.y, cu.y, uu.y, du.y); t.width = l - t.x, t.height = c - t.y; }, e; }(); -const Kt = SMe; -var SK = "silent"; -function bMe(e, t, r) { +const Yt = IMe; +var xK = "silent"; +function AMe(e, t, r) { return { type: e, event: r, @@ -50855,13 +50896,13 @@ function bMe(e, t, r) { wheelDelta: r.zrDelta, zrByTouch: r.zrByTouch, which: r.which, - stop: wMe + stop: OMe }; } -function wMe() { - Bl(this.event); +function OMe() { + Vl(this.event); } -var xMe = function(e) { +var LMe = function(e) { dn(t, e); function t() { var r = e !== null && e.apply(this, arguments) || this; @@ -50870,12 +50911,12 @@ var xMe = function(e) { return t.prototype.dispose = function() { }, t.prototype.setCursor = function() { }, t; -}(Da), Wp = /* @__PURE__ */ function() { +}(Da), Up = /* @__PURE__ */ function() { function e(t, r) { this.x = t, this.y = r; } return e; -}(), EMe = [ +}(), FMe = [ "click", "dblclick", "mousewheel", @@ -50884,26 +50925,26 @@ var xMe = function(e) { "mousedown", "mousemove", "contextmenu" -], Fx = new Kt(0, 0, 0, 0), bK = function(e) { +], Fx = new Yt(0, 0, 0, 0), EK = function(e) { dn(t, e); function t(r, n, i, o, a) { var s = e.call(this) || this; - return s._hovered = new Wp(0, 0), s.storage = r, s.painter = n, s.painterRoot = o, s._pointerSize = a, i = i || new xMe(), s.proxy = null, s.setHandlerProxy(i), s._draggingMgr = new aMe(s), s; + return s._hovered = new Up(0, 0), s.storage = r, s.painter = n, s.painterRoot = o, s._pointerSize = a, i = i || new LMe(), s.proxy = null, s.setHandlerProxy(i), s._draggingMgr = new mMe(s), s; } return t.prototype.setHandlerProxy = function(r) { - this.proxy && this.proxy.dispose(), r && (z(EMe, function(n) { + this.proxy && this.proxy.dispose(), r && (z(FMe, function(n) { r.on && r.on(n, this[n], this); }, this), r.handler = this), this.proxy = r; }, t.prototype.mousemove = function(r) { - var n = r.zrX, i = r.zrY, o = wK(this, n, i), a = this._hovered, s = a.target; + var n = r.zrX, i = r.zrY, o = RK(this, n, i), a = this._hovered, s = a.target; s && !s.__zr && (a = this.findHover(a.x, a.y), s = a.target); - var l = this._hovered = o ? new Wp(n, i) : this.findHover(n, i), c = l.target, u = this.proxy; + var l = this._hovered = o ? new Up(n, i) : this.findHover(n, i), c = l.target, u = this.proxy; u.setCursor && u.setCursor(c ? c.cursor : "default"), s && c !== s && this.dispatchToElement(a, "mouseout", r), this.dispatchToElement(l, "mousemove", r), c && c !== s && this.dispatchToElement(l, "mouseover", r); }, t.prototype.mouseout = function(r) { var n = r.zrEventControl; n !== "only_globalout" && this.dispatchToElement(this._hovered, "mouseout", r), n !== "no_globalout" && this.trigger("globalout", { type: "globalout", event: r }); }, t.prototype.resize = function() { - this._hovered = new Wp(0, 0); + this._hovered = new Up(0, 0); }, t.prototype.dispatch = function(r, n) { var i = this[r]; i && i.call(this, n); @@ -50916,16 +50957,16 @@ var xMe = function(e) { r = r || {}; var o = r.target; if (!(o && o.silent)) { - for (var a = "on" + n, s = bMe(n, r, i); o && (o[a] && (s.cancelBubble = !!o[a].call(o, s)), o.trigger(n, s), o = o.__hostTarget ? o.__hostTarget : o.parent, !s.cancelBubble); ) + for (var a = "on" + n, s = AMe(n, r, i); o && (o[a] && (s.cancelBubble = !!o[a].call(o, s)), o.trigger(n, s), o = o.__hostTarget ? o.__hostTarget : o.parent, !s.cancelBubble); ) ; s.cancelBubble || (this.trigger(n, s), this.painter && this.painter.eachOtherLayer && this.painter.eachOtherLayer(function(l) { typeof l[a] == "function" && l[a].call(l, s), l.trigger && l.trigger(n, s); })); } }, t.prototype.findHover = function(r, n, i) { - var o = this.storage.getDisplayList(), a = new Wp(r, n); - if (E4(o, a, r, n, i), this._pointerSize && !a.target) { - for (var s = [], l = this._pointerSize, c = l / 2, u = new Kt(r - c, n - c, l, l), d = o.length - 1; d >= 0; d--) { + var o = this.storage.getDisplayList(), a = new Up(r, n); + if (P4(o, a, r, n, i), this._pointerSize && !a.target) { + for (var s = [], l = this._pointerSize, c = l / 2, u = new Yt(r - c, n - c, l, l), d = o.length - 1; d >= 0; d--) { var h = o[d]; h !== i && !h.ignore && !h.ignoreCoarsePointer && (!h.parent || !h.parent.ignoreCoarsePointer) && (Fx.copy(h.getBoundingRect()), h.transform && Fx.applyTransform(h.transform), Fx.intersect(u) && s.push(h)); } @@ -50933,40 +50974,40 @@ var xMe = function(e) { for (var f = 4, p = Math.PI / 12, g = Math.PI * 2, v = 0; v < c; v += f) for (var m = 0; m < g; m += p) { var y = r + v * Math.cos(m), C = n + v * Math.sin(m); - if (E4(s, a, y, C, i), a.target) + if (P4(s, a, y, C, i), a.target) return a; } } return a; }, t.prototype.processGesture = function(r, n) { - this._gestureMgr || (this._gestureMgr = new mMe()); + this._gestureMgr || (this._gestureMgr = new _Me()); var i = this._gestureMgr; n === "start" && i.clear(); var o = i.recognize(r, this.findHover(r.zrX, r.zrY, null).target, this.proxy.dom); if (n === "end" && i.clear(), o) { var a = o.type; r.gestureEvent = a; - var s = new Wp(); + var s = new Up(); s.target = o.target, this.dispatchToElement(s, a, o.event); } }, t; }(Da); z(["click", "mousedown", "mouseup", "mousewheel", "dblclick", "contextmenu"], function(e) { - bK.prototype[e] = function(t) { - var r = t.zrX, n = t.zrY, i = wK(this, r, n), o, a; + EK.prototype[e] = function(t) { + var r = t.zrX, n = t.zrY, i = RK(this, r, n), o, a; if ((e !== "mouseup" || !i) && (o = this.findHover(r, n), a = o.target), e === "mousedown") this._downEl = a, this._downPoint = [t.zrX, t.zrY], this._upEl = a; else if (e === "mouseup") this._upEl = a; else if (e === "click") { - if (this._downEl !== this._upEl || !this._downPoint || wl(this._downPoint, [t.zrX, t.zrY]) > 4) + if (this._downEl !== this._upEl || !this._downPoint || xl(this._downPoint, [t.zrX, t.zrY]) > 4) return; this._downPoint = null; } this.dispatchToElement(o, e, t); }; }); -function RMe(e, t, r) { +function NMe(e, t, r) { if (e[e.rectHover ? "rectContain" : "contain"](t, r)) { for (var n = e, i = void 0, o = !1; n; ) { if (n.ignoreClip && (o = !0), !o) { @@ -50978,49 +51019,49 @@ function RMe(e, t, r) { var s = n.__hostTarget; n = s || n.parent; } - return i ? SK : !0; + return i ? xK : !0; } return !1; } -function E4(e, t, r, n, i) { +function P4(e, t, r, n, i) { for (var o = e.length - 1; o >= 0; o--) { var a = e[o], s = void 0; - if (a !== i && !a.ignore && (s = RMe(a, r, n)) && (!t.topTarget && (t.topTarget = a), s !== SK)) { + if (a !== i && !a.ignore && (s = NMe(a, r, n)) && (!t.topTarget && (t.topTarget = a), s !== xK)) { t.target = a; break; } } } -function wK(e, t, r) { +function RK(e, t, r) { var n = e.painter; return t < 0 || t > n.getWidth() || r < 0 || r > n.getHeight(); } -var xK = 32, jp = 7; -function PMe(e) { - for (var t = 0; e >= xK; ) +var PK = 32, Kp = 7; +function kMe(e) { + for (var t = 0; e >= PK; ) t |= e & 1, e >>= 1; return e + t; } -function R4(e, t, r, n) { +function T4(e, t, r, n) { var i = t + 1; if (i === r) return 1; if (n(e[i++], e[t]) < 0) { for (; i < r && n(e[i], e[i - 1]) < 0; ) i++; - TMe(e, t, i); + $Me(e, t, i); } else for (; i < r && n(e[i], e[i - 1]) >= 0; ) i++; return i - t; } -function TMe(e, t, r) { +function $Me(e, t, r) { for (r--; t < r; ) { var n = e[t]; e[t++] = e[r], e[r--] = n; } } -function P4(e, t, r, n, i) { +function _4(e, t, r, n, i) { for (n === t && n++; n < r; n++) { for (var o = e[n], a = t, s = n, l; a < s; ) l = a + s >>> 1, i(o, e[l]) < 0 ? s = l : a = l + 1; @@ -51078,8 +51119,8 @@ function kx(e, t, r, n, i, o) { } return l; } -function _Me(e, t) { - var r = jp, n, i, o = 0, a = []; +function BMe(e, t) { + var r = Kp, n, i, o = 0, a = []; n = [], i = []; function s(f, p) { n[o] = f, i[o] = p, o += 1; @@ -51163,7 +51204,7 @@ function _Me(e, t) { break; } w--; - } while (x >= jp || E >= jp); + } while (x >= Kp || E >= Kp); if (R) break; w < 0 && (w = 0), w += 2; @@ -51236,7 +51277,7 @@ function _Me(e, t) { break; } E--; - } while (R >= jp || P >= jp); + } while (R >= Kp || P >= Kp); if (T) break; E < 0 && (E = 0), E += 2; @@ -51258,36 +51299,36 @@ function _Me(e, t) { pushRun: s }; } -function CC(e, t, r, n) { +function wC(e, t, r, n) { r || (r = 0), n || (n = e.length); var i = n - r; if (!(i < 2)) { var o = 0; - if (i < xK) { - o = R4(e, r, n, t), P4(e, r, n, r + o, t); + if (i < PK) { + o = T4(e, r, n, t), _4(e, r, n, r + o, t); return; } - var a = _Me(e, t), s = PMe(i); + var a = BMe(e, t), s = kMe(i); do { - if (o = R4(e, r, n, t), o < s) { + if (o = T4(e, r, n, t), o < s) { var l = i; - l > s && (l = s), P4(e, r, r + l, r + o, t), o = l; + l > s && (l = s), _4(e, r, r + l, r + o, t), o = l; } a.pushRun(r, o), a.mergeRuns(), i -= o, r += o; } while (i !== 0); a.forceMergeRuns(); } } -var Fo = 1, xg = 2, jh = 4, T4 = !1; +var Fo = 1, Rg = 2, jh = 4, M4 = !1; function $x() { - T4 || (T4 = !0, console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors")); + M4 || (M4 = !0, console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors")); } -function _4(e, t) { +function D4(e, t) { return e.zlevel === t.zlevel ? e.z === t.z ? e.z2 - t.z2 : e.z - t.z : e.zlevel - t.zlevel; } -var MMe = function() { +var VMe = function() { function e() { - this._roots = [], this._displayList = [], this._displayListLen = 0, this.displayableSortFunc = _4; + this._roots = [], this._displayList = [], this._displayListLen = 0, this.displayableSortFunc = D4; } return e.prototype.traverse = function(t, r) { for (var n = 0; n < this._roots.length; n++) @@ -51300,7 +51341,7 @@ var MMe = function() { this._displayListLen = 0; for (var r = this._roots, n = this._displayList, i = 0, o = r.length; i < o; i++) this._updateAndAddDisplayable(r[i], null, t); - n.length = this._displayListLen, CC(n, _4); + n.length = this._displayListLen, wC(n, D4); }, e.prototype._updateAndAddDisplayable = function(t, r, n) { if (!(t.ignore && !n)) { t.beforeUpdate(), t.update(), t.afterUpdate(); @@ -51337,7 +51378,7 @@ var MMe = function() { this.delRoot(t[r]); return; } - var i = Yt(this._roots, t); + var i = qt(this._roots, t); i >= 0 && this._roots.splice(i, 1); }, e.prototype.delAllRoots = function() { this._roots = [], this._displayList = [], this._displayListLen = 0; @@ -51346,11 +51387,11 @@ var MMe = function() { }, e.prototype.dispose = function() { this._displayList = null, this._roots = null; }, e; -}(), SS; -SS = gr.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(e) { +}(), wS; +wS = gr.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(e) { return setTimeout(e, 16); }; -var Jg = { +var tv = { linear: function(e) { return e; }, @@ -51442,30 +51483,30 @@ var Jg = { return (e *= 2) < 1 ? 0.5 * (e * e * ((t + 1) * e - t)) : 0.5 * ((e -= 2) * e * ((t + 1) * e + t) + 2); }, bounceIn: function(e) { - return 1 - Jg.bounceOut(1 - e); + return 1 - tv.bounceOut(1 - e); }, bounceOut: function(e) { return e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375; }, bounceInOut: function(e) { - return e < 0.5 ? Jg.bounceIn(e * 2) * 0.5 : Jg.bounceOut(e * 2 - 1) * 0.5 + 0.5; + return e < 0.5 ? tv.bounceIn(e * 2) * 0.5 : tv.bounceOut(e * 2 - 1) * 0.5 + 0.5; } -}, Ky = Math.pow, _c = Math.sqrt, bS = 1e-8, EK = 1e-4, M4 = _c(3), Yy = 1 / 3, Ds = Jc(), ha = Jc(), vf = Jc(); +}, Xy = Math.pow, _c = Math.sqrt, xS = 1e-8, TK = 1e-4, I4 = _c(3), Zy = 1 / 3, Ds = Jc(), ha = Jc(), vf = Jc(); function Sc(e) { - return e > -bS && e < bS; + return e > -xS && e < xS; } -function RK(e) { - return e > bS || e < -bS; +function _K(e) { + return e > xS || e < -xS; } function ti(e, t, r, n, i) { var o = 1 - i; return o * o * (o * e + 3 * i * t) + i * i * (i * n + 3 * o * r); } -function D4(e, t, r, n, i) { +function A4(e, t, r, n, i) { var o = 1 - i; return 3 * (((t - e) * o + 2 * (r - t) * i) * o + (n - r) * i * i); } -function wS(e, t, r, n, i, o) { +function ES(e, t, r, n, i, o) { var a = n + 3 * (t - r) - e, s = 3 * (r - t * 2 + e), l = 3 * (t - e), c = e - i, u = s * s - 3 * a * l, d = s * l - 9 * a * c, h = l * l - 3 * s * c, f = 0; if (Sc(u) && Sc(d)) if (Sc(s)) @@ -51481,20 +51522,20 @@ function wS(e, t, r, n, i, o) { p >= 0 && p <= 1 && (o[f++] = p), m >= 0 && m <= 1 && (o[f++] = m); } else if (g > 0) { var y = _c(g), C = u * s + 1.5 * a * (-d + y), b = u * s + 1.5 * a * (-d - y); - C < 0 ? C = -Ky(-C, Yy) : C = Ky(C, Yy), b < 0 ? b = -Ky(-b, Yy) : b = Ky(b, Yy); + C < 0 ? C = -Xy(-C, Zy) : C = Xy(C, Zy), b < 0 ? b = -Xy(-b, Zy) : b = Xy(b, Zy); var p = (-s - (C + b)) / (3 * a); p >= 0 && p <= 1 && (o[f++] = p); } else { - var w = (2 * u * s - 3 * a * d) / (2 * _c(u * u * u)), x = Math.acos(w) / 3, E = _c(u), R = Math.cos(x), p = (-s - 2 * E * R) / (3 * a), m = (-s + E * (R + M4 * Math.sin(x))) / (3 * a), P = (-s + E * (R - M4 * Math.sin(x))) / (3 * a); + var w = (2 * u * s - 3 * a * d) / (2 * _c(u * u * u)), x = Math.acos(w) / 3, E = _c(u), R = Math.cos(x), p = (-s - 2 * E * R) / (3 * a), m = (-s + E * (R + I4 * Math.sin(x))) / (3 * a), P = (-s + E * (R - I4 * Math.sin(x))) / (3 * a); p >= 0 && p <= 1 && (o[f++] = p), m >= 0 && m <= 1 && (o[f++] = m), P >= 0 && P <= 1 && (o[f++] = P); } } return f; } -function PK(e, t, r, n, i) { +function MK(e, t, r, n, i) { var o = 6 * r - 12 * t + 6 * e, a = 9 * t + 3 * n - 3 * e - 9 * r, s = 3 * t - 3 * e, l = 0; if (Sc(a)) { - if (RK(o)) { + if (_K(o)) { var c = -s / o; c >= 0 && c <= 1 && (i[l++] = c); } @@ -51513,34 +51554,34 @@ function Gc(e, t, r, n, i, o) { var a = (t - e) * i + e, s = (r - t) * i + t, l = (n - r) * i + r, c = (s - a) * i + a, u = (l - s) * i + s, d = (u - c) * i + c; o[0] = e, o[1] = a, o[2] = c, o[3] = d, o[4] = d, o[5] = u, o[6] = l, o[7] = n; } -function TK(e, t, r, n, i, o, a, s, l, c, u) { +function DK(e, t, r, n, i, o, a, s, l, c, u) { var d, h = 5e-3, f = 1 / 0, p, g, v, m; Ds[0] = l, Ds[1] = c; for (var y = 0; y < 1; y += 0.05) ha[0] = ti(e, r, i, a, y), ha[1] = ti(t, n, o, s, y), v = Tc(Ds, ha), v < f && (d = y, f = v); f = 1 / 0; - for (var C = 0; C < 32 && !(h < EK); C++) + for (var C = 0; C < 32 && !(h < TK); C++) p = d - h, g = d + h, ha[0] = ti(e, r, i, a, p), ha[1] = ti(t, n, o, s, p), v = Tc(ha, Ds), p >= 0 && v < f ? (d = p, f = v) : (vf[0] = ti(e, r, i, a, g), vf[1] = ti(t, n, o, s, g), m = Tc(vf, Ds), g <= 1 && m < f ? (d = g, f = m) : h *= 0.5); return u && (u[0] = ti(e, r, i, a, d), u[1] = ti(t, n, o, s, d)), _c(f); } -function DMe(e, t, r, n, i, o, a, s, l) { +function HMe(e, t, r, n, i, o, a, s, l) { for (var c = e, u = t, d = 0, h = 1 / l, f = 1; f <= l; f++) { var p = f * h, g = ti(e, r, i, a, p), v = ti(t, n, o, s, p), m = g - c, y = v - u; d += Math.sqrt(m * m + y * y), c = g, u = v; } return d; } -function fi(e, t, r, n) { +function pi(e, t, r, n) { var i = 1 - n; return i * (i * e + 2 * n * t) + n * n * r; } function w_(e, t, r, n) { return 2 * ((1 - n) * (t - e) + n * (r - t)); } -function IMe(e, t, r, n, i) { +function zMe(e, t, r, n, i) { var o = e - 2 * t + r, a = 2 * (t - e), s = e - n, l = 0; if (Sc(o)) { - if (RK(a)) { + if (_K(a)) { var c = -s / a; c >= 0 && c <= 1 && (i[l++] = c); } @@ -51556,58 +51597,58 @@ function IMe(e, t, r, n, i) { } return l; } -function _K(e, t, r) { +function IK(e, t, r) { var n = e + r - 2 * t; return n === 0 ? 0.5 : (e - t) / n; } -function zv(e, t, r, n, i) { +function Wv(e, t, r, n, i) { var o = (t - e) * n + e, a = (r - t) * n + t, s = (a - o) * n + o; i[0] = e, i[1] = o, i[2] = s, i[3] = s, i[4] = a, i[5] = r; } -function MK(e, t, r, n, i, o, a, s, l) { +function AK(e, t, r, n, i, o, a, s, l) { var c, u = 5e-3, d = 1 / 0; Ds[0] = a, Ds[1] = s; for (var h = 0; h < 1; h += 0.05) { - ha[0] = fi(e, r, i, h), ha[1] = fi(t, n, o, h); + ha[0] = pi(e, r, i, h), ha[1] = pi(t, n, o, h); var f = Tc(Ds, ha); f < d && (c = h, d = f); } d = 1 / 0; - for (var p = 0; p < 32 && !(u < EK); p++) { + for (var p = 0; p < 32 && !(u < TK); p++) { var g = c - u, v = c + u; - ha[0] = fi(e, r, i, g), ha[1] = fi(t, n, o, g); + ha[0] = pi(e, r, i, g), ha[1] = pi(t, n, o, g); var f = Tc(ha, Ds); if (g >= 0 && f < d) c = g, d = f; else { - vf[0] = fi(e, r, i, v), vf[1] = fi(t, n, o, v); + vf[0] = pi(e, r, i, v), vf[1] = pi(t, n, o, v); var m = Tc(vf, Ds); v <= 1 && m < d ? (c = v, d = m) : u *= 0.5; } } - return l && (l[0] = fi(e, r, i, c), l[1] = fi(t, n, o, c)), _c(d); + return l && (l[0] = pi(e, r, i, c), l[1] = pi(t, n, o, c)), _c(d); } -function AMe(e, t, r, n, i, o, a) { +function GMe(e, t, r, n, i, o, a) { for (var s = e, l = t, c = 0, u = 1 / a, d = 1; d <= a; d++) { - var h = d * u, f = fi(e, r, i, h), p = fi(t, n, o, h), g = f - s, v = p - l; + var h = d * u, f = pi(e, r, i, h), p = pi(t, n, o, h), g = f - s, v = p - l; c += Math.sqrt(g * g + v * v), s = f, l = p; } return c; } -var OMe = /cubic-bezier\(([0-9,\.e ]+)\)/; -function _2(e) { - var t = e && OMe.exec(e); +var WMe = /cubic-bezier\(([0-9,\.e ]+)\)/; +function _I(e) { + var t = e && WMe.exec(e); if (t) { var r = t[1].split(","), n = +ga(r[0]), i = +ga(r[1]), o = +ga(r[2]), a = +ga(r[3]); if (isNaN(n + i + o + a)) return; var s = []; return function(l) { - return l <= 0 ? 0 : l >= 1 ? 1 : wS(0, n, o, 1, l, s) && ti(0, i, a, 1, s[0]); + return l <= 0 ? 0 : l >= 1 ? 1 : ES(0, n, o, 1, l, s) && ti(0, i, a, 1, s[0]); }; } } -var LMe = function() { +var jMe = function() { function e(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 || Dn, this.ondestroy = t.ondestroy || Dn, this.onrestart = t.onrestart || Dn, t.easing && this.setEasing(t.easing); } @@ -51631,19 +51672,19 @@ var LMe = function() { }, e.prototype.resume = function() { this._paused = !1; }, e.prototype.setEasing = function(t) { - this.easing = t, this.easingFunc = vt(t) ? t : Jg[t] || _2(t); + this.easing = t, this.easingFunc = mt(t) ? t : tv[t] || _I(t); }, e; -}(), DK = /* @__PURE__ */ function() { +}(), OK = /* @__PURE__ */ function() { function e(t) { this.value = t; } return e; -}(), FMe = function() { +}(), UMe = function() { function e() { this._len = 0; } return e.prototype.insert = function(t) { - var r = new DK(t); + var r = new OK(t); return this.insertEntry(r), r; }, e.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++; @@ -51655,9 +51696,9 @@ var LMe = function() { }, e.prototype.clear = function() { this.head = this.tail = null, this._len = 0; }, e; -}(), Um = function() { +}(), qm = function() { function e(t) { - this._list = new FMe(), this._maxSize = 10, this._map = {}, this._maxSize = t; + this._list = new UMe(), this._maxSize = 10, this._map = {}, this._maxSize = t; } return e.prototype.put = function(t, r) { var n = this._list, i = this._map, o = null; @@ -51667,7 +51708,7 @@ var LMe = function() { var l = n.head; n.remove(l), delete i[l.key], o = l.value, this._lastRemovedEntry = l; } - s ? s.value = r : s = new DK(r), s.key = t, n.insertEntry(s), i[t] = s; + s ? s.value = r : s = new OK(r), s.key = t, n.insertEntry(s), i[t] = s; } return o; }, e.prototype.get = function(t) { @@ -51679,7 +51720,7 @@ var LMe = function() { }, e.prototype.len = function() { return this._list.len(); }, e; -}(), I4 = { +}(), O4 = { transparent: [0, 0, 0, 0], aliceblue: [240, 248, 255, 1], antiquewhite: [250, 235, 215, 1], @@ -51832,10 +51873,10 @@ var LMe = function() { function Qa(e) { return e = Math.round(e), e < 0 ? 0 : e > 255 ? 255 : e; } -function NMe(e) { +function KMe(e) { return e = Math.round(e), e < 0 ? 0 : e > 360 ? 360 : e; } -function Gv(e) { +function jv(e) { return e < 0 ? 0 : e > 1 ? 1 : e; } function Bx(e) { @@ -51844,7 +51885,7 @@ function Bx(e) { } function ud(e) { var t = e; - return t.length && t.charAt(t.length - 1) === "%" ? Gv(parseFloat(t) / 100) : Gv(parseFloat(t)); + return t.length && t.charAt(t.length - 1) === "%" ? jv(parseFloat(t) / 100) : jv(parseFloat(t)); } function Vx(e, t, r) { return r < 0 ? r += 1 : r > 1 && (r -= 1), r * 6 < 1 ? e + (t - e) * r * 6 : r * 2 < 1 ? t : r * 3 < 2 ? e + (t - e) * (2 / 3 - r) * 6 : e; @@ -51858,20 +51899,20 @@ function oa(e, t, r, n, i) { function x_(e, t) { return e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e; } -var IK = new Um(20), qy = null; +var LK = new qm(20), Qy = null; function yh(e, t) { - qy && x_(qy, t), qy = IK.put(e, qy || t.slice()); + Qy && x_(Qy, t), Qy = LK.put(e, Qy || t.slice()); } function Zi(e, t) { if (e) { t = t || []; - var r = IK.get(e); + var r = LK.get(e); if (r) return x_(t, r); e = e + ""; var n = e.replace(/ /g, "").toLowerCase(); - if (n in I4) - return x_(t, I4[n]), yh(e, t), t; + if (n in O4) + return x_(t, O4[n]), yh(e, t), t; var i = n.length; if (n.charAt(0) === "#") { if (i === 4 || i === 5) { @@ -51927,7 +51968,7 @@ function E_(e, t) { var r = (parseFloat(e[0]) % 360 + 360) % 360 / 360, n = ud(e[1]), i = ud(e[2]), o = i <= 0.5 ? i * (n + 1) : i + n - i * n, a = i * 2 - o; return t = t || [], oa(t, Qa(Vx(a, o, r + 1 / 3) * 255), Qa(Vx(a, o, r) * 255), Qa(Vx(a, o, r - 1 / 3) * 255), 1), e.length === 4 && (t[3] = e[3]), t; } -function kMe(e) { +function YMe(e) { if (e) { var t = e[0] / 255, r = e[1] / 255, n = e[2] / 255, i = Math.min(t, r, n), o = Math.max(t, r, n), a = o - i, s = (o + i) / 2, l, c; if (a === 0) @@ -51941,7 +51982,7 @@ function kMe(e) { return e[3] != null && f.push(e[3]), f; } } -function xS(e, t) { +function RS(e, t) { var r = Zi(e); if (r) { for (var n = 0; n < 3; n++) @@ -51949,26 +51990,26 @@ function xS(e, t) { return Ja(r, r.length === 4 ? "rgba" : "rgb"); } } -function $Me(e) { +function qMe(e) { var t = Zi(e); if (t) return ((1 << 24) + (t[0] << 16) + (t[1] << 8) + +t[2]).toString(16).slice(1); } -function ev(e, t, r) { +function rv(e, t, r) { if (!(!(t && t.length) || !(e >= 0 && e <= 1))) { r = r || []; var n = e * (t.length - 1), i = Math.floor(n), o = Math.ceil(n), a = t[i], s = t[o], l = n - i; - return r[0] = Qa(bc(a[0], s[0], l)), r[1] = Qa(bc(a[1], s[1], l)), r[2] = Qa(bc(a[2], s[2], l)), r[3] = Gv(bc(a[3], s[3], l)), r; + return r[0] = Qa(bc(a[0], s[0], l)), r[1] = Qa(bc(a[1], s[1], l)), r[2] = Qa(bc(a[2], s[2], l)), r[3] = jv(bc(a[3], s[3], l)), r; } } -var BMe = ev; -function M2(e, t, r) { +var XMe = rv; +function MI(e, t, r) { if (!(!(t && t.length) || !(e >= 0 && e <= 1))) { var n = e * (t.length - 1), i = Math.floor(n), o = Math.ceil(n), a = Zi(t[i]), s = Zi(t[o]), l = n - i, c = Ja([ Qa(bc(a[0], s[0], l)), Qa(bc(a[1], s[1], l)), Qa(bc(a[2], s[2], l)), - Gv(bc(a[3], s[3], l)) + jv(bc(a[3], s[3], l)) ], "rgba"); return r ? { color: c, @@ -51978,16 +52019,16 @@ function M2(e, t, r) { } : c; } } -var VMe = M2; +var ZMe = MI; function mf(e, t, r, n) { var i = Zi(e); if (e) - return i = kMe(i), t != null && (i[0] = NMe(t)), r != null && (i[1] = ud(r)), n != null && (i[2] = ud(n)), Ja(E_(i), "rgba"); + return i = YMe(i), t != null && (i[0] = KMe(t)), r != null && (i[1] = ud(r)), n != null && (i[2] = ud(n)), Ja(E_(i), "rgba"); } -function Wv(e, t) { +function Uv(e, t) { var r = Zi(e); if (r && t != null) - return r[3] = Gv(t), Ja(r, "rgba"); + return r[3] = jv(t), Ja(r, "rgba"); } function Ja(e, t) { if (!(!e || !e.length)) { @@ -51995,51 +52036,51 @@ function Ja(e, t) { return (t === "rgba" || t === "hsva" || t === "hsla") && (r += "," + e[3]), t + "(" + r + ")"; } } -function jv(e, t) { +function Kv(e, t) { var r = Zi(e); return r ? (0.299 * r[0] + 0.587 * r[1] + 0.114 * r[2]) * r[3] / 255 + (1 - r[3]) * t : 0; } -function HMe() { +function QMe() { return Ja([ Math.round(Math.random() * 255), Math.round(Math.random() * 255), Math.round(Math.random() * 255) ], "rgb"); } -var A4 = new Um(100); -function ES(e) { +var L4 = new qm(100); +function PS(e) { if (Je(e)) { - var t = A4.get(e); - return t || (t = xS(e, -0.1), A4.put(e, t)), t; - } else if (Gm(e)) { + var t = L4.get(e); + return t || (t = RS(e, -0.1), L4.put(e, t)), t; + } else if (Um(e)) { var r = Pe({}, e); return r.colorStops = Fe(e.colorStops, function(n) { return { offset: n.offset, - color: xS(n.color, -0.1) + color: RS(n.color, -0.1) }; }), r; } return e; } -const zMe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const JMe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - fastLerp: ev, - fastMapToColor: BMe, - lerp: M2, - lift: xS, - liftColor: ES, - lum: jv, - mapToColor: VMe, - modifyAlpha: Wv, + fastLerp: rv, + fastMapToColor: XMe, + lerp: MI, + lift: RS, + liftColor: PS, + lum: Kv, + mapToColor: ZMe, + modifyAlpha: Uv, modifyHSL: mf, parse: Zi, - random: HMe, + random: QMe, stringify: Ja, - toHex: $Me + toHex: qMe }, Symbol.toStringTag, { value: "Module" })); -var RS = Math.round; -function Uv(e) { +var TS = Math.round; +function Yv(e) { var t; if (!e || e === "transparent") e = "none"; @@ -52052,32 +52093,32 @@ function Uv(e) { opacity: t ?? 1 }; } -var O4 = 1e-4; +var F4 = 1e-4; function wc(e) { - return e < O4 && e > -O4; + return e < F4 && e > -F4; } -function Xy(e) { - return RS(e * 1e3) / 1e3; +function Jy(e) { + return TS(e * 1e3) / 1e3; } function R_(e) { - return RS(e * 1e4) / 1e4; + return TS(e * 1e4) / 1e4; } -function GMe(e) { - return "matrix(" + Xy(e[0]) + "," + Xy(e[1]) + "," + Xy(e[2]) + "," + Xy(e[3]) + "," + R_(e[4]) + "," + R_(e[5]) + ")"; +function e2e(e) { + return "matrix(" + Jy(e[0]) + "," + Jy(e[1]) + "," + Jy(e[2]) + "," + Jy(e[3]) + "," + R_(e[4]) + "," + R_(e[5]) + ")"; } -var WMe = { +var t2e = { left: "start", right: "end", center: "middle", middle: "middle" }; -function jMe(e, t, r) { +function r2e(e, t, r) { return r === "top" ? e += t / 2 : r === "bottom" && (e -= t / 2), e; } -function UMe(e) { +function n2e(e) { return e && (e.shadowBlur || e.shadowOffsetX || e.shadowOffsetY); } -function KMe(e) { +function i2e(e) { var t = e.style, r = e.getGlobalScale(); return [ t.shadowColor, @@ -52088,37 +52129,37 @@ function KMe(e) { r[1] ].join(","); } -function AK(e) { +function FK(e) { return e && !!e.image; } -function YMe(e) { +function o2e(e) { return e && !!e.svgElement; } -function D2(e) { - return AK(e) || YMe(e); +function DI(e) { + return FK(e) || o2e(e); } -function OK(e) { +function NK(e) { return e.type === "linear"; } -function LK(e) { +function kK(e) { return e.type === "radial"; } -function FK(e) { +function $K(e) { return e && (e.type === "linear" || e.type === "radial"); } function Tw(e) { return "url(#" + e + ")"; } -function NK(e) { +function BK(e) { var t = e.getGlobalScale(), r = Math.max(t[0], t[1]); return Math.max(Math.ceil(Math.log(r) / Math.log(10)), 1); } -function kK(e) { - var t = e.x || 0, r = e.y || 0, n = (e.rotation || 0) * Xg, i = $t(e.scaleX, 1), o = $t(e.scaleY, 1), a = e.skewX || 0, s = e.skewY || 0, l = []; - return (t || r) && l.push("translate(" + t + "px," + r + "px)"), n && l.push("rotate(" + n + ")"), (i !== 1 || o !== 1) && l.push("scale(" + i + "," + o + ")"), (a || s) && l.push("skew(" + RS(a * Xg) + "deg, " + RS(s * Xg) + "deg)"), l.join(" "); +function VK(e) { + var t = e.x || 0, r = e.y || 0, n = (e.rotation || 0) * Qg, i = $t(e.scaleX, 1), o = $t(e.scaleY, 1), a = e.skewX || 0, s = e.skewY || 0, l = []; + return (t || r) && l.push("translate(" + t + "px," + r + "px)"), n && l.push("rotate(" + n + ")"), (i !== 1 || o !== 1) && l.push("scale(" + i + "," + o + ")"), (a || s) && l.push("skew(" + TS(a * Qg) + "deg, " + TS(s * Qg) + "deg)"), l.join(" "); } -var qMe = function() { - return gr.hasGlobalWindow && vt(window.btoa) ? function(e) { +var a2e = function() { + return gr.hasGlobalWindow && mt(window.btoa) ? function(e) { return window.btoa(unescape(encodeURIComponent(e))); } : typeof Buffer < "u" ? function(e) { return Buffer.from(e).toString("base64"); @@ -52126,28 +52167,28 @@ var qMe = function() { return process.env.NODE_ENV !== "production" && ya("Base64 isn't natively supported in the current environment."), null; }; }(), P_ = Array.prototype.slice; -function ml(e, t, r) { +function yl(e, t, r) { return (t - e) * r + e; } function Hx(e, t, r, n) { for (var i = t.length, o = 0; o < i; o++) - e[o] = ml(t[o], r[o], n); + e[o] = yl(t[o], r[o], n); return e; } -function XMe(e, t, r, n) { +function s2e(e, t, r, n) { for (var i = t.length, o = i && t[0].length, a = 0; a < i; a++) { e[a] || (e[a] = []); for (var s = 0; s < o; s++) - e[a][s] = ml(t[a][s], r[a][s], n); + e[a][s] = yl(t[a][s], r[a][s], n); } return e; } -function Zy(e, t, r, n) { +function e0(e, t, r, n) { for (var i = t.length, o = 0; o < i; o++) e[o] = t[o] + r[o] * n; return e; } -function L4(e, t, r, n) { +function N4(e, t, r, n) { for (var i = t.length, o = i && t[0].length, a = 0; a < i; a++) { e[a] || (e[a] = []); for (var s = 0; s < o; s++) @@ -52155,14 +52196,14 @@ function L4(e, t, r, n) { } return e; } -function ZMe(e, t) { +function l2e(e, t) { for (var r = e.length, n = t.length, i = r > n ? t : e, o = Math.min(r, n), a = i[o - 1] || { color: [0, 0, 0, 0], offset: 0 }, s = o; s < Math.max(r, n); s++) i.push({ offset: a.offset, color: a.color.slice() }); } -function QMe(e, t, r) { +function c2e(e, t, r) { var n = e, i = t; if (!(!n.push || !i.push)) { var o = n.length, a = i.length; @@ -52182,10 +52223,10 @@ function QMe(e, t, r) { isNaN(n[l][u]) && (n[l][u] = i[l][u]); } } -function tv(e) { - if (wi(e)) { +function nv(e) { + if (xi(e)) { var t = e.length; - if (wi(e[0])) { + if (xi(e[0])) { for (var r = [], n = 0; n < t; n++) r.push(P_.call(e[n])); return r; @@ -52194,20 +52235,20 @@ function tv(e) { } return e; } -function SC(e) { +function xC(e) { return e[0] = Math.floor(e[0]) || 0, e[1] = Math.floor(e[1]) || 0, e[2] = Math.floor(e[2]) || 0, e[3] = e[3] == null ? 1 : e[3], "rgba(" + e.join(",") + ")"; } -function JMe(e) { - return wi(e && e[0]) ? 2 : 1; +function u2e(e) { + return xi(e && e[0]) ? 2 : 1; } -var Qy = 0, bC = 1, $K = 2, Eg = 3, T_ = 4, __ = 5, F4 = 6; -function N4(e) { +var t0 = 0, EC = 1, HK = 2, Pg = 3, T_ = 4, __ = 5, k4 = 6; +function $4(e) { return e === T_ || e === __; } -function Jy(e) { - return e === bC || e === $K; +function r0(e) { + return e === EC || e === HK; } -var Up = [0, 0, 0, 0], eDe = function() { +var Yp = [0, 0, 0, 0], d2e = function() { function e(t) { this.keyframes = [], this.discrete = !1, this._invalid = !1, this._needsSort = !1, this._lastFr = 0, this._lastFrP = 0, this.propName = t; } @@ -52221,54 +52262,54 @@ var Up = [0, 0, 0, 0], eDe = function() { return this._additiveTrack; }, e.prototype.addKeyframe = function(t, r, n) { this._needsSort = !0; - var i = this.keyframes, o = i.length, a = !1, s = F4, l = r; - if (wi(r)) { - var c = JMe(r); + var i = this.keyframes, o = i.length, a = !1, s = k4, l = r; + if (xi(r)) { + var c = u2e(r); s = c, (c === 1 && !Cr(r[0]) || c === 2 && !Cr(r[0][0])) && (a = !0); } else if (Cr(r) && !zc(r)) - s = Qy; + s = t0; else if (Je(r)) if (!isNaN(+r)) - s = Qy; + s = t0; else { var u = Zi(r); - u && (l = u, s = Eg); + u && (l = u, s = Pg); } - else if (Gm(r)) { + else if (Um(r)) { var d = Pe({}, l); d.colorStops = Fe(r.colorStops, function(f) { return { offset: f.offset, color: Zi(f.color) }; - }), OK(r) ? s = T_ : LK(r) && (s = __), l = d; + }), NK(r) ? s = T_ : kK(r) && (s = __), l = d; } - o === 0 ? this.valType = s : (s !== this.valType || s === F4) && (a = !0), this.discrete = this.discrete || a; + o === 0 ? this.valType = s : (s !== this.valType || s === k4) && (a = !0), this.discrete = this.discrete || a; var h = { time: t, value: l, rawValue: r, percent: 0 }; - return n && (h.easing = n, h.easingFunc = vt(n) ? n : Jg[n] || _2(n)), i.push(h), h; + return n && (h.easing = n, h.easingFunc = mt(n) ? n : tv[n] || _I(n)), i.push(h), h; }, e.prototype.prepare = function(t, r) { var n = this.keyframes; this._needsSort && n.sort(function(g, v) { return g.time - v.time; }); - for (var i = this.valType, o = n.length, a = n[o - 1], s = this.discrete, l = Jy(i), c = N4(i), u = 0; u < o; u++) { + for (var i = this.valType, o = n.length, a = n[o - 1], s = this.discrete, l = r0(i), c = $4(i), u = 0; u < o; u++) { var d = n[u], h = d.value, f = a.value; - d.percent = d.time / t, s || (l && u !== o - 1 ? QMe(h, f, i) : c && ZMe(h.colorStops, f.colorStops)); + d.percent = d.time / t, s || (l && u !== o - 1 ? c2e(h, f, i) : c && l2e(h.colorStops, f.colorStops)); } if (!s && i !== __ && r && this.needsAnimate() && r.needsAnimate() && i === r.valType && !r._finished) { this._additiveTrack = r; for (var p = n[0].value, u = 0; u < o; u++) - i === Qy ? n[u].additiveValue = n[u].value - p : i === Eg ? n[u].additiveValue = Zy([], n[u].value, p, -1) : Jy(i) && (n[u].additiveValue = i === bC ? Zy([], n[u].value, p, -1) : L4([], n[u].value, p, -1)); + i === t0 ? n[u].additiveValue = n[u].value - p : i === Pg ? n[u].additiveValue = e0([], n[u].value, p, -1) : r0(i) && (n[u].additiveValue = i === EC ? e0([], n[u].value, p, -1) : N4([], n[u].value, p, -1)); } }, e.prototype.step = function(t, r) { if (!this._finished) { this._additiveTrack && this._additiveTrack._finished && (this._additiveTrack = null); - var n = this._additiveTrack != null, i = n ? "additiveValue" : "value", o = this.valType, a = this.keyframes, s = a.length, l = this.propName, c = o === Eg, u, d = this._lastFr, h = Math.min, f, p; + var n = this._additiveTrack != null, i = n ? "additiveValue" : "value", o = this.valType, a = this.keyframes, s = a.length, l = this.propName, c = o === Pg, u, d = this._lastFr, h = Math.min, f, p; if (s === 1) f = p = a[0]; else { @@ -52290,30 +52331,30 @@ var Up = [0, 0, 0, 0], eDe = function() { this._lastFr = u, this._lastFrP = r; var v = p.percent - f.percent, m = v === 0 ? 1 : h((r - f.percent) / v, 1); p.easingFunc && (m = p.easingFunc(m)); - var y = n ? this._additiveValue : c ? Up : t[l]; - if ((Jy(o) || c) && !y && (y = this._additiveValue = []), this.discrete) + var y = n ? this._additiveValue : c ? Yp : t[l]; + if ((r0(o) || c) && !y && (y = this._additiveValue = []), this.discrete) t[l] = m < 1 ? f.rawValue : p.rawValue; - else if (Jy(o)) - o === bC ? Hx(y, f[i], p[i], m) : XMe(y, f[i], p[i], m); - else if (N4(o)) { + else if (r0(o)) + o === EC ? Hx(y, f[i], p[i], m) : s2e(y, f[i], p[i], m); + else if ($4(o)) { var C = f[i], b = p[i], w = o === T_; t[l] = { type: w ? "linear" : "radial", - x: ml(C.x, b.x, m), - y: ml(C.y, b.y, m), + x: yl(C.x, b.x, m), + y: yl(C.y, b.y, m), colorStops: Fe(C.colorStops, function(E, R) { var P = b.colorStops[R]; return { - offset: ml(E.offset, P.offset, m), - color: SC(Hx([], E.color, P.color, m)) + offset: yl(E.offset, P.offset, m), + color: xC(Hx([], E.color, P.color, m)) }; }), global: b.global - }, w ? (t[l].x2 = ml(C.x2, b.x2, m), t[l].y2 = ml(C.y2, b.y2, m)) : t[l].r = ml(C.r, b.r, m); + }, w ? (t[l].x2 = yl(C.x2, b.x2, m), t[l].y2 = yl(C.y2, b.y2, m)) : t[l].r = yl(C.r, b.r, m); } else if (c) - Hx(y, f[i], p[i], m), n || (t[l] = SC(y)); + Hx(y, f[i], p[i], m), n || (t[l] = xC(y)); else { - var x = ml(f[i], p[i], m); + var x = yl(f[i], p[i], m); n ? this._additiveValue = x : t[l] = x; } n && this._addToTarget(t); @@ -52321,9 +52362,9 @@ var Up = [0, 0, 0, 0], eDe = function() { } }, e.prototype._addToTarget = function(t) { var r = this.valType, n = this.propName, i = this._additiveValue; - r === Qy ? t[n] = t[n] + i : r === Eg ? (Zi(t[n], Up), Zy(Up, Up, i, 1), t[n] = SC(Up)) : r === bC ? Zy(t[n], t[n], i, 1) : r === $K && L4(t[n], t[n], i, 1); + r === t0 ? t[n] = t[n] + i : r === Pg ? (Zi(t[n], Yp), e0(Yp, Yp, i, 1), t[n] = xC(Yp)) : r === EC ? e0(t[n], t[n], i, 1) : r === HK && N4(t[n], t[n], i, 1); }, e; -}(), I2 = function() { +}(), II = function() { function e(t, r, n, i) { if (this._tracks = {}, this._trackKeys = [], this._maxTime = 0, this._started = 0, this._clip = null, this._target = t, this._loop = r, r && i) { ya("Can' use additive animation on looped animation."); @@ -52347,18 +52388,18 @@ var Up = [0, 0, 0, 0], eDe = function() { for (var o = this._tracks, a = 0; a < n.length; a++) { var s = n[a], l = o[s]; if (!l) { - l = o[s] = new eDe(s); + l = o[s] = new d2e(s); var c = void 0, u = this._getAdditiveTrack(s); if (u) { var d = u.keyframes, h = d[d.length - 1]; - c = h && h.value, u.valType === Eg && c && (c = SC(c)); + c = h && h.value, u.valType === Pg && c && (c = xC(c)); } else c = this._target[s]; if (c == null) continue; - t > 0 && l.addKeyframe(0, tv(c), i), this._trackKeys.push(s); + t > 0 && l.addKeyframe(0, nv(c), i), this._trackKeys.push(s); } - l.addKeyframe(t, tv(r[s]), i); + l.addKeyframe(t, nv(r[s]), i); } return this._maxTime = Math.max(this._maxTime, t), this; }, e.prototype.pause = function() { @@ -52405,7 +52446,7 @@ var Up = [0, 0, 0, 0], eDe = function() { n.push(s); } if (n.length || this._force) { - var h = new LMe({ + var h = new jMe({ life: i, loop: this._loop, delay: this._delay || 0, @@ -52478,7 +52519,7 @@ var Up = [0, 0, 0, 0], eDe = function() { var o = r[i], a = this._tracks[o]; if (!(!a || a.isFinished())) { var s = a.keyframes, l = s[n ? 0 : s.length - 1]; - l && (t[o] = tv(l.rawValue)); + l && (t[o] = nv(l.rawValue)); } } } @@ -52499,7 +52540,7 @@ var Up = [0, 0, 0, 0], eDe = function() { function tf() { return (/* @__PURE__ */ new Date()).getTime(); } -var tDe = function(e) { +var h2e = function(e) { dn(t, e); function t(r) { var n = e.call(this) || this; @@ -52529,9 +52570,9 @@ var tDe = function(e) { var r = this; this._running = !0; function n() { - r._running && (SS(n), !r._paused && r.update()); + r._running && (wS(n), !r._paused && r.update()); } - SS(n); + wS(n); }, t.prototype.start = function() { this._running || (this._time = tf(), this._pausedTime = 0, this._startLoop()); }, t.prototype.stop = function() { @@ -52550,10 +52591,10 @@ var tDe = function(e) { return this._head == null; }, t.prototype.animate = function(r, n) { n = n || {}, this.start(); - var i = new I2(r, n.loop); + var i = new II(r, n.loop); return this.addAnimator(i), i; }, t; -}(Da), rDe = 300, zx = gr.domSupported, Gx = function() { +}(Da), f2e = 300, zx = gr.domSupported, Gx = function() { var e = [ "click", "dblclick", @@ -52582,15 +52623,15 @@ var tDe = function(e) { touch: t, pointer: n }; -}(), k4 = { +}(), B4 = { mouse: ["mousemove", "mouseup"], pointer: ["pointermove", "pointerup"] -}, $4 = !1; +}, V4 = !1; function M_(e) { var t = e.pointerType; return t === "pen" || t === "touch"; } -function nDe(e) { +function p2e(e) { e.touching = !0, e.touchTimer != null && (clearTimeout(e.touchTimer), e.touchTimer = null), e.touchTimer = setTimeout(function() { e.touching = !1, e.touchTimer = null; }, 700); @@ -52598,15 +52639,15 @@ function nDe(e) { function Wx(e) { e && (e.zrByTouch = !0); } -function iDe(e, t) { - return aa(e.dom, new oDe(e, t), !0); +function g2e(e, t) { + return aa(e.dom, new v2e(e, t), !0); } -function BK(e, t) { +function zK(e, t) { for (var r = t, n = !1; r && r.nodeType !== 9 && !(n = r.domBelongToZr || r !== t && r === e.painterRoot); ) r = r.parentNode; return n; } -var oDe = /* @__PURE__ */ function() { +var v2e = /* @__PURE__ */ function() { function e(t, r) { this.stopPropagation = Dn, this.stopImmediatePropagation = Dn, this.preventDefault = Dn, this.type = r.type, this.target = this.currentTarget = t.dom, this.pointerType = r.pointerType, this.clientX = r.clientX, this.clientY = r.clientY; } @@ -52626,13 +52667,13 @@ var oDe = /* @__PURE__ */ function() { mouseout: function(e) { e = aa(this.dom, e); var t = e.toElement || e.relatedTarget; - BK(this, t) || (this.__pointerCapturing && (e.zrEventControl = "no_globalout"), this.trigger("mouseout", e)); + zK(this, t) || (this.__pointerCapturing && (e.zrEventControl = "no_globalout"), this.trigger("mouseout", e)); }, wheel: function(e) { - $4 = !0, e = aa(this.dom, e), this.trigger("mousewheel", e); + V4 = !0, e = aa(this.dom, e), this.trigger("mousewheel", e); }, mousewheel: function(e) { - $4 || (e = aa(this.dom, e), this.trigger("mousewheel", e)); + V4 || (e = aa(this.dom, e), this.trigger("mousewheel", e)); }, touchstart: function(e) { e = aa(this.dom, e), Wx(e), this.__lastTouchMoment = /* @__PURE__ */ new Date(), this.handler.processGesture(e, "start"), Va.mousemove.call(this, e), Va.mousedown.call(this, e); @@ -52641,7 +52682,7 @@ var oDe = /* @__PURE__ */ function() { e = aa(this.dom, e), Wx(e), this.handler.processGesture(e, "change"), Va.mousemove.call(this, e); }, touchend: function(e) { - e = aa(this.dom, e), Wx(e), this.handler.processGesture(e, "end"), Va.mouseup.call(this, e), +/* @__PURE__ */ new Date() - +this.__lastTouchMoment < rDe && Va.click.call(this, e); + e = aa(this.dom, e), Wx(e), this.handler.processGesture(e, "end"), Va.mouseup.call(this, e), +/* @__PURE__ */ new Date() - +this.__lastTouchMoment < f2e && Va.click.call(this, e); }, pointerdown: function(e) { Va.mousedown.call(this, e); @@ -52676,50 +52717,50 @@ var D_ = { this.__togglePointerCapture(!1), this.trigger("mouseup", e), t && (e.zrEventControl = "only_globalout", this.trigger("mouseout", e)); } }; -function aDe(e, t) { +function m2e(e, t) { var r = t.domHandlers; gr.pointerEventsSupported ? z(Gx.pointer, function(n) { - wC(t, n, function(i) { + RC(t, n, function(i) { r[n].call(e, i); }); }) : (gr.touchEventsSupported && z(Gx.touch, function(n) { - wC(t, n, function(i) { - r[n].call(e, i), nDe(t); + RC(t, n, function(i) { + r[n].call(e, i), p2e(t); }); }), z(Gx.mouse, function(n) { - wC(t, n, function(i) { - i = T2(i), t.touching || r[n].call(e, i); + RC(t, n, function(i) { + i = TI(i), t.touching || r[n].call(e, i); }); })); } -function sDe(e, t) { - gr.pointerEventsSupported ? z(k4.pointer, r) : gr.touchEventsSupported || z(k4.mouse, r); +function y2e(e, t) { + gr.pointerEventsSupported ? z(B4.pointer, r) : gr.touchEventsSupported || z(B4.mouse, r); function r(n) { function i(o) { - o = T2(o), BK(e, o.target) || (o = iDe(e, o), t.domHandlers[n].call(e, o)); + o = TI(o), zK(e, o.target) || (o = g2e(e, o), t.domHandlers[n].call(e, o)); } - wC(t, n, i, { capture: !0 }); + RC(t, n, i, { capture: !0 }); } } -function wC(e, t, r, n) { +function RC(e, t, r, n) { e.mounted[t] = r, e.listenerOpts[t] = n, b_(e.domTarget, t, r, n); } function jx(e) { var t = e.mounted; for (var r in t) - t.hasOwnProperty(r) && vMe(e.domTarget, r, t[r], e.listenerOpts[r]); + t.hasOwnProperty(r) && TMe(e.domTarget, r, t[r], e.listenerOpts[r]); e.mounted = {}; } -var B4 = /* @__PURE__ */ function() { +var H4 = /* @__PURE__ */ function() { function e(t, r) { this.mounted = {}, this.listenerOpts = {}, this.touching = !1, this.domTarget = t, this.domHandlers = r; } return e; -}(), lDe = function(e) { +}(), C2e = function(e) { dn(t, e); function t(r, n) { var i = e.call(this) || this; - return i.__pointerCapturing = !1, i.dom = r, i.painterRoot = n, i._localHandlerScope = new B4(r, Va), zx && (i._globalHandlerScope = new B4(document, D_)), aDe(i, i._localHandlerScope), i; + return i.__pointerCapturing = !1, i.dom = r, i.painterRoot = n, i._localHandlerScope = new H4(r, Va), zx && (i._globalHandlerScope = new H4(document, D_)), m2e(i, i._localHandlerScope), i; } return t.prototype.dispose = function() { jx(this._localHandlerScope), zx && jx(this._globalHandlerScope); @@ -52729,16 +52770,16 @@ var B4 = /* @__PURE__ */ function() { if (this.__mayPointerCapture = null, zx && +this.__pointerCapturing ^ +r) { this.__pointerCapturing = r; var n = this._globalHandlerScope; - r ? sDe(this, n) : jx(n); + r ? y2e(this, n) : jx(n); } }, t; -}(Da), VK = 1; -gr.hasGlobalWindow && (VK = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1)); -var PS = VK, I_ = 0.4, A_ = "#333", O_ = "#ccc", cDe = "#eee", V4 = jm, H4 = 5e-5; +}(Da), GK = 1; +gr.hasGlobalWindow && (GK = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1)); +var _S = GK, I_ = 0.4, A_ = "#333", O_ = "#ccc", S2e = "#eee", z4 = Ym, G4 = 5e-5; function hu(e) { - return e > H4 || e < -H4; + return e > G4 || e < -G4; } -var fu = [], Ch = [], Ux = So(), Kx = Math.abs, uDe = function() { +var fu = [], Ch = [], Ux = So(), Kx = Math.abs, b2e = function() { function e() { } return e.prototype.getLocalTransform = function(t) { @@ -52756,10 +52797,10 @@ var fu = [], Ch = [], Ux = So(), Kx = Math.abs, uDe = function() { }, e.prototype.updateTransform = function() { var t = this.parent && this.parent.transform, r = this.needLocalTransform(), n = this.transform; if (!(r || t)) { - n && (V4(n), this.invTransform = null); + n && (z4(n), this.invTransform = null); return; } - n = n || So(), r ? this.getLocalTransform(n) : V4(n), t && (r ? Bs(n, t, n) : Rw(n, t)), this.transform = n, this._resolveGlobalScaleRatio(n); + n = n || So(), r ? this.getLocalTransform(n) : z4(n), t && (r ? Bs(n, t, n) : Rw(n, t)), this.transform = n, this._resolveGlobalScaleRatio(n); }, e.prototype._resolveGlobalScaleRatio = function(t) { var r = this.globalScaleRatio; if (r != null && r !== 1) { @@ -52791,15 +52832,15 @@ var fu = [], Ch = [], Ux = So(), Kx = Math.abs, uDe = function() { return t = t || [], r ? (t[0] = Math.sqrt(r[0] * r[0] + r[1] * r[1]), t[1] = Math.sqrt(r[2] * r[2] + r[3] * r[3]), r[0] < 0 && (t[0] = -t[0]), r[3] < 0 && (t[1] = -t[1]), t) : (t[0] = 1, t[1] = 1, t); }, e.prototype.transformCoordToLocal = function(t, r) { var n = [t, r], i = this.invTransform; - return i && gi(n, n, i), n; + return i && vi(n, n, i), n; }, e.prototype.transformCoordToGlobal = function(t, r) { var n = [t, r], i = this.transform; - return i && gi(n, n, i), n; + return i && vi(n, n, i), n; }, e.prototype.getLineScale = function() { var t = this.transform; return t && Kx(t[0] - 1) > 1e-10 && Kx(t[3] - 1) > 1e-10 ? Math.sqrt(Kx(t[0] * t[3] - t[2] * t[1])) : 1; }, e.prototype.copyTransform = function(t) { - HK(this, t); + WK(this, t); }, e.getLocalTransform = function(t, r) { r = r || []; var n = t.originX || 0, i = t.originY || 0, o = t.scaleX, a = t.scaleY, s = t.anchorX, l = t.anchorY, c = t.rotation || 0, u = t.x, d = t.y, h = t.skewX ? Math.tan(t.skewX) : 0, f = t.skewY ? Math.tan(-t.skewY) : 0; @@ -52826,37 +52867,37 @@ var fu = [], Ch = [], Ux = So(), Kx = Math.abs, uDe = function() { "skewX", "skewY" ]; -function HK(e, t) { +function WK(e, t) { for (var r = 0; r < Us.length; r++) { var n = Us[r]; e[n] = t[n]; } } -const Rl = uDe; -var z4 = {}; +const Pl = b2e; +var W4 = {}; function Wo(e, t) { t = t || Vc; - var r = z4[t]; - r || (r = z4[t] = new Um(500)); + var r = W4[t]; + r || (r = W4[t] = new qm(500)); var n = r.get(e); return n == null && (n = os.measureText(e, t).width, r.put(e, n)), n; } -function G4(e, t, r, n) { - var i = Wo(e, t), o = _w(t), a = Rg(0, i, r), s = Uh(0, o, n), l = new Kt(a, s, i, o); +function j4(e, t, r, n) { + var i = Wo(e, t), o = _w(t), a = Tg(0, i, r), s = Uh(0, o, n), l = new Yt(a, s, i, o); return l; } -function Km(e, t, r, n) { +function Xm(e, t, r, n) { var i = ((e || "") + "").split(` `), o = i.length; if (o === 1) - return G4(i[0], t, r, n); - for (var a = new Kt(0, 0, 0, 0), s = 0; s < i.length; s++) { - var l = G4(i[s], t, r, n); + return j4(i[0], t, r, n); + for (var a = new Yt(0, 0, 0, 0), s = 0; s < i.length; s++) { + var l = j4(i[s], t, r, n); s === 0 ? a.copy(l) : a.union(l); } return a; } -function Rg(e, t, r) { +function Tg(e, t, r) { return r === "right" ? e -= t : r === "center" && (e -= t / 2), e; } function Uh(e, t, r) { @@ -52868,7 +52909,7 @@ function _w(e) { function ss(e, t) { return typeof e == "string" ? e.lastIndexOf("%") >= 0 ? parseFloat(e) / 100 * t : parseFloat(e) : e; } -function TS(e, t, r) { +function MS(e, t, r) { var n = t.position || "inside", i = t.distance != null ? t.distance : 5, o = r.height, a = r.width, s = o / 2, l = r.x, c = r.y, u = "left", d = "top"; if (n instanceof Array) l += ss(n[0], r.width), c += ss(n[1], r.height), u = null, d = null; @@ -52916,11 +52957,11 @@ function TS(e, t, r) { } return e = e || {}, e.x = l, e.y = c, e.align = u, e.verticalAlign = d, e; } -var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), dDe = Ra(Us, function(e, t) { +var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), w2e = Ra(Us, function(e, t) { return e[t] = !0, e; -}, { ignore: !1 }), Sh = {}, hDe = new Kt(0, 0, 0, 0), Mw = function() { +}, { ignore: !1 }), Sh = {}, x2e = new Yt(0, 0, 0, 0), Mw = function() { function e(t) { - this.id = w2(), this.animators = [], this.currentStates = [], this.states = {}, this._init(t); + this.id = wI(), this.animators = [], this.currentStates = [], this.states = {}, this._init(t); } return e.prototype._init = function(t) { this.attr(t); @@ -52947,8 +52988,8 @@ var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), dDe = Ra(Us, function(e, t o.parent = i ? this : null; var c = !1; if (o.copyTransform(r), n.position != null) { - var u = hDe; - n.layoutRect ? u.copy(n.layoutRect) : u.copy(this.getBoundingRect()), i || u.applyTransform(this.transform), this.calculateTextPosition ? this.calculateTextPosition(Sh, n, u) : TS(Sh, n, u), o.x = Sh.x, o.y = Sh.y, a = Sh.align, s = Sh.verticalAlign; + var u = x2e; + n.layoutRect ? u.copy(n.layoutRect) : u.copy(this.getBoundingRect()), i || u.applyTransform(this.transform), this.calculateTextPosition ? this.calculateTextPosition(Sh, n, u) : MS(Sh, n, u), o.x = Sh.x, o.y = Sh.y, a = Sh.align, s = Sh.verticalAlign; var d = n.origin; if (d && n.rotation != null) { var h = void 0, f = void 0; @@ -52985,7 +53026,7 @@ var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), dDe = Ra(Us, function(e, t }, e.prototype.attr = function(t, r) { if (typeof t == "string") this.attrKV(t, r); - else if (St(t)) + else if (bt(t)) for (var n = t, i = ar(n), o = 0; o < i.length; o++) { var a = i[o]; this.attrKV(a, t[a]); @@ -53021,7 +53062,7 @@ var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), dDe = Ra(Us, function(e, t var o = t === Yx, a = this.hasState(); if (!(!a && o)) { var s = this.currentStates, l = this.stateTransition; - if (!(Yt(s, t) >= 0 && (r || s.length === 1))) { + if (!(qt(s, t) >= 0 && (r || s.length === 1))) { var c; if (this.stateProxy && !o && (c = this.stateProxy(t)), c || (c = this.states && this.states[t]), !c && !o) { ya("State " + t + " not exists."); @@ -53074,13 +53115,13 @@ var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), dDe = Ra(Us, function(e, t r.targetName && r.changeTarget(this[r.targetName]); } }, e.prototype.removeState = function(t) { - var r = Yt(this.currentStates, t); + var r = qt(this.currentStates, t); if (r >= 0) { var n = this.currentStates.slice(); n.splice(r, 1), this.useStates(n); } }, e.prototype.replaceState = function(t, r, n) { - var i = this.currentStates.slice(), o = Yt(i, t), a = Yt(i, r) >= 0; + var i = this.currentStates.slice(), o = qt(i, t), a = qt(i, r) >= 0; o >= 0 ? a ? i.splice(o, 1) : i[o] = r : n && !a && i.push(r), this.useStates(i); }, e.prototype.toggleState = function(t, r) { r ? this.useState(t, !0) : this.removeState(t); @@ -53094,7 +53135,7 @@ var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), dDe = Ra(Us, function(e, t var s = !(r && i); r && r.textConfig ? (this.textConfig = Pe({}, i ? this.textConfig : n.textConfig), Pe(this.textConfig, r.textConfig)) : s && n.textConfig && (this.textConfig = n.textConfig); for (var l = {}, c = !1, u = 0; u < qx.length; u++) { - var d = qx[u], h = o && dDe[d]; + var d = qx[u], h = o && w2e[d]; r && r[d] != null ? h ? (c = !0, l[d] = r[d]) : this[d] = r[d] : s && n[d] != null && (h ? (c = !0, l[d] = n[d]) : this[d] = n[d]); } if (!o) @@ -53132,7 +53173,7 @@ var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), dDe = Ra(Us, function(e, t if (r !== t) { if (r && r !== t && this.removeTextContent(), process.env.NODE_ENV !== "production" && t.__zr && !t.__hostTarget) throw new Error("Text element has been added to zrender."); - t.innerTransformable = new Rl(), this._attachComponent(t), this._textContent = t, this.markRedraw(); + t.innerTransformable = new Pl(), this._attachComponent(t), this._textContent = t, this.markRedraw(); } }, e.prototype.setTextConfig = function(t) { this.textConfig || (this.textConfig = {}), Pe(this.textConfig, t), this.markRedraw(); @@ -53182,14 +53223,14 @@ var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), dDe = Ra(Us, function(e, t ya('Property "' + t + '" is not existed in element ' + this.id); return; } - var o = new I2(i, r, n); + var o = new II(i, r, n); return t && (o.targetName = t), this.addAnimator(o, t), o; }, e.prototype.addAnimator = function(t, r) { var n = this.__zr, i = this; t.during(function() { i.updateDuringAnimation(r); }).done(function() { - var o = i.animators, a = Yt(o, t); + var o = i.animators, a = qt(o, t); a >= 0 && o.splice(a, 1); }), this.animators.push(t), n && n.animation.addAnimator(t), n && n.wakeUp(); }, e.prototype.updateDuringAnimation = function(t) { @@ -53253,11 +53294,11 @@ var Yx = "__zr_normal__", qx = Us.concat(["ignore"]), dDe = Ra(Us, function(e, t }(), e; }(); In(Mw, Da); -In(Mw, Rl); +In(Mw, Pl); function Xx(e, t, r, n, i) { r = r || {}; var o = []; - zK(e, "", e, t, r, n, o, i); + jK(e, "", e, t, r, n, o, i); var a = o.length, s = !1, l = r.done, c = r.aborted, u = function() { s = !0, a--, a <= 0 && (s ? l && l() : c && c()); }, d = function() { @@ -53276,17 +53317,17 @@ function Zx(e, t, r) { for (var n = 0; n < r; n++) e[n] = t[n]; } -function fDe(e) { - return wi(e[0]); +function E2e(e) { + return xi(e[0]); } -function pDe(e, t, r) { - if (wi(t[r])) - if (wi(e[r]) || (e[r] = []), ki(t[r])) { +function R2e(e, t, r) { + if (xi(t[r])) + if (xi(e[r]) || (e[r] = []), ki(t[r])) { var n = t[r].length; e[r].length !== n && (e[r] = new t[r].constructor(n), Zx(e[r], t[r], n)); } else { var i = t[r], o = e[r], a = i.length; - if (fDe(i)) + if (E2e(i)) for (var s = i[0].length, l = 0; l < a; l++) o[l] ? Zx(o[l], i[l], s) : o[l] = Array.prototype.slice.call(i[l]); else @@ -53296,10 +53337,10 @@ function pDe(e, t, r) { else e[r] = t[r]; } -function gDe(e, t) { - return e === t || wi(e) && wi(t) && vDe(e, t); +function P2e(e, t) { + return e === t || xi(e) && xi(t) && T2e(e, t); } -function vDe(e, t) { +function T2e(e, t) { var r = e.length; if (r !== t.length) return !1; @@ -53308,16 +53349,16 @@ function vDe(e, t) { return !1; return !0; } -function zK(e, t, r, n, i, o, a, s) { - for (var l = ar(n), c = i.duration, u = i.delay, d = i.additive, h = i.setToFinal, f = !St(o), p = e.animators, g = [], v = 0; v < l.length; v++) { +function jK(e, t, r, n, i, o, a, s) { + for (var l = ar(n), c = i.duration, u = i.delay, d = i.additive, h = i.setToFinal, f = !bt(o), p = e.animators, g = [], v = 0; v < l.length; v++) { var m = l[v], y = n[m]; if (y != null && r[m] != null && (f || o[m])) - if (St(y) && !wi(y) && !Gm(y)) { + if (bt(y) && !xi(y) && !Um(y)) { if (t) { s || (r[m] = y, e.updateDuringAnimation(t)); continue; } - zK(e, m, r[m], y, i, o && o[m], a, s); + jK(e, m, r[m], y, i, o && o[m], a, s); } else g.push(m); else s || (r[m] = y, e.updateDuringAnimation(t), g.push(m)); @@ -53329,13 +53370,13 @@ function zK(e, t, r, n, i, o, a, s) { if (w.targetName === t) { var x = w.stopTracks(g); if (x) { - var E = Yt(p, w); + var E = qt(p, w); p.splice(E, 1); } } } - if (i.force || (g = Fr(g, function(_) { - return !gDe(n[_], r[_]); + if (i.force || (g = Nr(g, function(_) { + return !P2e(n[_], r[_]); }), C = g.length), C > 0 || i.force && !a.length) { var R = void 0, P = void 0, T = void 0; if (s) { @@ -53348,16 +53389,16 @@ function zK(e, t, r, n, i, o, a, s) { T = {}; for (var b = 0; b < C; b++) { var m = g[b]; - T[m] = tv(r[m]), pDe(r, n, m); + T[m] = nv(r[m]), R2e(r, n, m); } } - var w = new I2(r, !1, !1, d ? Fr(p, function(D) { + var w = new II(r, !1, !1, d ? Nr(p, function(D) { return D.targetName === t; }) : null); w.targetName = t, i.scope && (w.scope = i.scope), h && R && w.whenWithKeys(0, R, g), T && w.whenWithKeys(0, T, g), w.whenWithKeys(c ?? 500, s ? P : n, g).delay(u || 0), e.addAnimator(w, t), a.push(w); } } -var GK = function(e) { +var UK = function(e) { dn(t, e); function t(r) { var n = e.call(this) || this; @@ -53386,7 +53427,7 @@ var GK = function(e) { } return this; }, t.prototype.replace = function(r, n) { - var i = Yt(this._children, r); + var i = qt(this._children, r); return i >= 0 && this.replaceAt(n, i), this; }, t.prototype.replaceAt = function(r, n) { var i = this._children, o = i[n]; @@ -53401,7 +53442,7 @@ var GK = function(e) { var n = this.__zr; n && n !== r.__zr && r.addSelfToZr(n), n && n.refresh(); }, t.prototype.remove = function(r) { - var n = this.__zr, i = this._children, o = Yt(i, r); + var n = this.__zr, i = this._children, o = qt(i, r); return o < 0 ? this : (i.splice(o, 1), r.parent = null, n && r.removeSelfFromZr(n), n && n.refresh(), this); }, t.prototype.removeAll = function() { for (var r = this._children, n = this.__zr, i = 0; i < r.length; i++) { @@ -53434,18 +53475,18 @@ var GK = function(e) { i.removeSelfFromZr(r); } }, t.prototype.getBoundingRect = function(r) { - for (var n = new Kt(0, 0, 0, 0), i = r || this._children, o = [], a = null, s = 0; s < i.length; s++) { + for (var n = new Yt(0, 0, 0, 0), i = r || this._children, o = [], a = null, s = 0; s < i.length; s++) { var l = i[s]; if (!(l.ignore || l.invisible)) { var c = l.getBoundingRect(), u = l.getLocalTransform(o); - u ? (Kt.applyTransform(n, c, u), a = a || n.clone(), a.union(n)) : (a = a || c.clone(), a.union(c)); + u ? (Yt.applyTransform(n, c, u), a = a || n.clone(), a.union(n)) : (a = a || c.clone(), a.union(c)); } } return a || n; }, t; }(Mw); -GK.prototype.type = "group"; -const Ot = GK; +UK.prototype.type = "group"; +const Ot = UK; /*! * ZRender, a high performance 2d drawing library. * @@ -53455,34 +53496,34 @@ const Ot = GK; * LICENSE * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt */ -var Pg = {}, Ju = {}; -function mDe(e) { +var _g = {}, Ju = {}; +function _2e(e) { delete Ju[e]; } -function yDe(e) { +function M2e(e) { if (!e) return !1; if (typeof e == "string") - return jv(e, 1) < I_; + return Kv(e, 1) < I_; if (e.colorStops) { for (var t = e.colorStops, r = 0, n = t.length, i = 0; i < n; i++) - r += jv(t[i].color, 1); + r += Kv(t[i].color, 1); return r /= n, r < I_; } return !1; } -var CDe = function() { +var D2e = function() { function e(t, r, n) { var i = this; this._sleepAfterStill = 10, this._stillFrameAccum = 0, this._needsRefresh = !0, this._needsRefreshHover = !0, this._darkMode = !1, n = n || {}, this.dom = r, this.id = t; - var o = new MMe(), a = n.renderer || "canvas"; - if (Pg[a] || (a = ar(Pg)[0]), process.env.NODE_ENV !== "production" && !Pg[a]) + var o = new VMe(), a = n.renderer || "canvas"; + if (_g[a] || (a = ar(_g)[0]), process.env.NODE_ENV !== "production" && !_g[a]) throw new Error("Renderer '" + a + "' is not imported. Please import it first."); n.useDirtyRect = n.useDirtyRect == null ? !1 : n.useDirtyRect; - var s = new Pg[a](r, o, n, t), l = n.ssr || s.ssrOnly; + var s = new _g[a](r, o, n, t), l = n.ssr || s.ssrOnly; this.storage = o, this.painter = s; - var c = !gr.node && !gr.worker && !l ? new lDe(s.getViewportRoot(), s.root) : null, u = n.useCoarsePointer, d = u == null || u === "auto" ? gr.touchEventsSupported : !!u, h = 44, f; - d && (f = $t(n.pointerSize, h)), this.handler = new bK(o, s, c, s.root, f), this.animation = new tDe({ + var c = !gr.node && !gr.worker && !l ? new C2e(s.getViewportRoot(), s.root) : null, u = n.useCoarsePointer, d = u == null || u === "auto" ? gr.touchEventsSupported : !!u, h = 44, f; + d && (f = $t(n.pointerSize, h)), this.handler = new EK(o, s, c, s.root, f), this.animation = new h2e({ stage: { update: l ? null : function() { return i._flush(!0); @@ -53497,7 +53538,7 @@ var CDe = function() { }, e.prototype.configLayer = function(t, r) { this._disposed || (this.painter.configLayer && this.painter.configLayer(t, r), this.refresh()); }, e.prototype.setBackgroundColor = function(t) { - this._disposed || (this.painter.setBackgroundColor && this.painter.setBackgroundColor(t), this.refresh(), this._backgroundColor = t, this._darkMode = yDe(t)); + this._disposed || (this.painter.setBackgroundColor && this.painter.setBackgroundColor(t), this.refresh(), this._backgroundColor = t, this._darkMode = M2e(t)); }, e.prototype.getBackgroundColor = function() { return this._backgroundColor; }, e.prototype.setDarkMode = function(t) { @@ -53553,49 +53594,49 @@ var CDe = function() { this.storage.delAllRoots(), this.painter.clear(); } }, e.prototype.dispose = function() { - this._disposed || (this.animation.stop(), this.clear(), this.storage.dispose(), this.painter.dispose(), this.handler.dispose(), this.animation = this.storage = this.painter = this.handler = null, this._disposed = !0, mDe(this.id)); + this._disposed || (this.animation.stop(), this.clear(), this.storage.dispose(), this.painter.dispose(), this.handler.dispose(), this.animation = this.storage = this.painter = this.handler = null, this._disposed = !0, _2e(this.id)); }, e; }(); function L_(e, t) { - var r = new CDe(w2(), e, t); + var r = new D2e(wI(), e, t); return Ju[r.id] = r, r; } -function SDe(e) { +function I2e(e) { e.dispose(); } -function bDe() { +function A2e() { for (var e in Ju) Ju.hasOwnProperty(e) && Ju[e].dispose(); Ju = {}; } -function wDe(e) { +function O2e(e) { return Ju[e]; } -function WK(e, t) { - Pg[e] = t; +function KK(e, t) { + _g[e] = t; } var F_; -function jK(e) { +function YK(e) { if (typeof F_ == "function") return F_(e); } -function UK(e) { +function qK(e) { F_ = e; } -var xDe = "5.6.0"; -const EDe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +var L2e = "5.6.0"; +const F2e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - dispose: SDe, - disposeAll: bDe, - getElementSSRData: jK, - getInstance: wDe, + dispose: I2e, + disposeAll: A2e, + getElementSSRData: YK, + getInstance: O2e, init: L_, - registerPainter: WK, - registerSSRDataGetter: UK, - version: xDe + registerPainter: KK, + registerSSRDataGetter: qK, + version: L2e }, Symbol.toStringTag, { value: "Module" })); -var W4 = 1e-4, KK = 20; -function RDe(e) { +var U4 = 1e-4, XK = 20; +function N2e(e) { return e.replace(/^\s+|\s+$/g, ""); } function Lr(e, t, r, n) { @@ -53637,10 +53678,10 @@ function Ze(e, t) { e = "100%"; break; } - return Je(e) ? RDe(e).match(/%$/) ? parseFloat(e) / 100 * t : parseFloat(e) : e == null ? NaN : +e; + return Je(e) ? N2e(e).match(/%$/) ? parseFloat(e) / 100 * t : parseFloat(e) : e == null ? NaN : +e; } function En(e, t, r) { - return t == null && (t = 10), t = Math.min(Math.max(0, t), KK), e = (+e).toFixed(t), r ? e : +e; + return t == null && (t = 10), t = Math.min(Math.max(0, t), XK), e = (+e).toFixed(t), r ? e : +e; } function Vo(e) { return e.sort(function(t, r) { @@ -53655,23 +53696,23 @@ function Ka(e) { if (Math.round(e * t) / t === e) return r; } - return _S(e); + return DS(e); } -function _S(e) { +function DS(e) { var t = e.toString().toLowerCase(), r = t.indexOf("e"), n = r > 0 ? +t.slice(r + 1) : 0, i = r > 0 ? r : t.length, o = t.indexOf("."), a = o < 0 ? 0 : i - 1 - o; return Math.max(0, a - n); } -function A2(e, t) { +function AI(e, t) { var r = Math.log, n = Math.LN10, i = Math.floor(r(e[1] - e[0]) / n), o = Math.round(r(Math.abs(t[1] - t[0])) / n), a = Math.min(Math.max(-i + o, 0), 20); return isFinite(a) ? a : 20; } -function PDe(e, t, r) { +function k2e(e, t, r) { if (!e[t]) return 0; - var n = YK(e, r); + var n = ZK(e, r); return n[t] || 0; } -function YK(e, t) { +function ZK(e, t) { var r = Ra(e, function(f, p) { return f + (isNaN(p) ? 0 : p); }, 0); @@ -53694,24 +53735,24 @@ function YK(e, t) { return f / n; }); } -function TDe(e, t) { +function $2e(e, t) { var r = Math.max(Ka(e), Ka(t)), n = e + t; - return r > KK ? n : En(n, r); + return r > XK ? n : En(n, r); } var N_ = 9007199254740991; -function O2(e) { +function OI(e) { var t = Math.PI * 2; return (e % t + t) % t; } -function Lf(e) { - return e > -W4 && e < W4; +function Nf(e) { + return e > -U4 && e < U4; } -var _De = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/; +var B2e = /^(?:(\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 jo(e) { if (e instanceof Date) return e; if (Je(e)) { - var t = _De.exec(e); + var t = B2e.exec(e); if (!t) return /* @__PURE__ */ new Date(NaN); if (t[8]) { @@ -53723,20 +53764,20 @@ function jo(e) { return /* @__PURE__ */ new Date(NaN); return new Date(Math.round(e)); } -function qK(e) { - return Math.pow(10, Ym(e)); +function QK(e) { + return Math.pow(10, Zm(e)); } -function Ym(e) { +function Zm(e) { if (e === 0) return 0; var t = Math.floor(Math.log(e) / Math.LN10); return e / Math.pow(10, t) >= 10 && t++, t; } -function L2(e, t) { - var r = Ym(e), n = Math.pow(10, r), i = e / n, o; +function LI(e, t) { + var r = Zm(e), n = Math.pow(10, r), i = e / n, o; return t ? i < 1.5 ? o = 1 : i < 2.5 ? o = 2 : i < 4 ? o = 3 : i < 7 ? o = 5 : o = 10 : i < 1 ? o = 1 : i < 2 ? o = 2 : i < 3 ? o = 3 : i < 5 ? o = 5 : o = 10, e = o * n, r >= -20 ? +e.toFixed(r < 0 ? -r : 0) : e; } -function xC(e, t) { +function PC(e, t) { var r = (e.length - 1) * t + 1, n = Math.floor(r), i = +e[n - 1], o = r - n; return o ? i + o * (e[n] - i) : i; } @@ -53761,33 +53802,33 @@ function Ks(e) { function Dw(e) { return !isNaN(Ks(e)); } -function XK() { +function JK() { return Math.round(Math.random() * 9); } -function ZK(e, t) { - return t === 0 ? e : ZK(t, e % t); +function eY(e, t) { + return t === 0 ? e : eY(t, e % t); } -function j4(e, t) { - return e == null ? t : t == null ? e : e * t / ZK(e, t); +function K4(e, t) { + return e == null ? t : t == null ? e : e * t / eY(e, t); } -var MDe = "[ECharts] ", U4 = {}, DDe = typeof console < "u" && console.warn && console.log; +var V2e = "[ECharts] ", Y4 = {}, H2e = typeof console < "u" && console.warn && console.log; function Iw(e, t, r) { - if (DDe) { + if (H2e) { if (r) { - if (U4[t]) + if (Y4[t]) return; - U4[t] = !0; + Y4[t] = !0; } - console[e](MDe + t); + console[e](V2e + t); } } -function IDe(e, t) { +function z2e(e, t) { Iw("log", e, t); } function Cn(e, t) { Iw("warn", e, t); } -function xi(e, t) { +function Ei(e, t) { Iw("error", e, t); } function Pa(e) { @@ -53802,7 +53843,7 @@ function ro() { var r = ""; if (process.env.NODE_ENV !== "production") { var n = function(i) { - return i === void 0 ? "undefined" : i === 1 / 0 ? "Infinity" : i === -1 / 0 ? "-Infinity" : zc(i) ? "NaN" : i instanceof Date ? "Date(" + i.toISOString() + ")" : vt(i) ? "function () { ... }" : E2(i) ? i + "" : null; + return i === void 0 ? "undefined" : i === 1 / 0 ? "Infinity" : i === -1 / 0 ? "-Infinity" : zc(i) ? "NaN" : i instanceof Date ? "Date(" + i.toISOString() + ")" : mt(i) ? "function () { ... }" : EI(i) ? i + "" : null; }; r = Fe(e, function(i) { if (Je(i)) @@ -53828,10 +53869,10 @@ function ro() { function Ir(e) { throw new Error(e); } -function K4(e, t, r) { +function q4(e, t, r) { return (t - e) * r + e; } -var QK = "series\0", JK = "\0_ec_\0"; +var tY = "series\0", rY = "\0_ec_\0"; function Wr(e) { return e instanceof Array ? e : e == null ? [] : [e]; } @@ -53844,35 +53885,35 @@ function Md(e, t, r) { } } } -var Y4 = ["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 up(e) { - return St(e) && !Ie(e) && !(e instanceof Date) ? e.value : e; +var X4 = ["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 hp(e) { + return bt(e) && !Ae(e) && !(e instanceof Date) ? e.value : e; } -function ADe(e) { - return St(e) && !(e instanceof Array); +function G2e(e) { + return bt(e) && !(e instanceof Array); } -function eY(e, t, r) { +function nY(e, t, r) { var n = r === "normalMerge", i = r === "replaceMerge", o = r === "replaceAll"; e = e || [], t = (t || []).slice(); var a = ft(); z(t, function(l, c) { - if (!St(l)) { + if (!bt(l)) { t[c] = null; return; } - process.env.NODE_ENV !== "production" && (l.id != null && !X4(l.id) && q4(l.id), l.name != null && !X4(l.name) && q4(l.name)); + process.env.NODE_ENV !== "production" && (l.id != null && !Q4(l.id) && Z4(l.id), l.name != null && !Q4(l.name) && Z4(l.name)); }); - var s = ODe(e, a, r); - return (n || i) && LDe(s, e, a, t), n && FDe(s, t), n || i ? NDe(s, t, i) : o && kDe(s, t), $De(s), s; + var s = W2e(e, a, r); + return (n || i) && j2e(s, e, a, t), n && U2e(s, t), n || i ? K2e(s, t, i) : o && Y2e(s, t), q2e(s), s; } -function ODe(e, t, r) { +function W2e(e, t, r) { var n = []; if (r === "replaceAll") return n; for (var i = 0; i < e.length; i++) { var o = e[i]; o && o.id != null && t.set(o.id, i), n.push({ - existing: r === "replaceMerge" || Ff(o) ? null : o, + existing: r === "replaceMerge" || kf(o) ? null : o, newOption: null, keyInfo: null, brandNew: null @@ -53880,37 +53921,37 @@ function ODe(e, t, r) { } return n; } -function LDe(e, t, r, n) { +function j2e(e, t, r, n) { z(n, function(i, o) { if (!(!i || i.id == null)) { - var a = rv(i.id), s = r.get(a); + var a = iv(i.id), s = r.get(a); if (s != null) { var l = e[s]; - xt(!l.newOption, 'Duplicated option on id "' + a + '".'), l.newOption = i, l.existing = t[s], n[o] = null; + Et(!l.newOption, 'Duplicated option on id "' + a + '".'), l.newOption = i, l.existing = t[s], n[o] = null; } } }); } -function FDe(e, t) { +function U2e(e, t) { z(t, function(r, n) { if (!(!r || r.name == null)) for (var i = 0; i < e.length; i++) { var o = e[i].existing; - if (!e[i].newOption && o && (o.id == null || r.id == null) && !Ff(r) && !Ff(o) && tY("name", o, r)) { + if (!e[i].newOption && o && (o.id == null || r.id == null) && !kf(r) && !kf(o) && iY("name", o, r)) { e[i].newOption = r, t[n] = null; return; } } }); } -function NDe(e, t, r) { +function K2e(e, t, r) { z(t, function(n) { if (n) { for ( var i, o = 0; // Be `!resultItem` only when `nextIdx >= result.length`. - (i = e[o]) && (i.newOption || Ff(i.existing) || // In mode "replaceMerge", here no not-mapped-non-internal-existing. - i.existing && n.id != null && !tY("id", n, i.existing)); + (i = e[o]) && (i.newOption || kf(i.existing) || // In mode "replaceMerge", here no not-mapped-non-internal-existing. + i.existing && n.id != null && !iY("id", n, i.existing)); ) o++; i ? (i.newOption = n, i.brandNew = r) : e.push({ @@ -53922,7 +53963,7 @@ function NDe(e, t, r) { } }); } -function kDe(e, t) { +function Y2e(e, t) { z(t, function(r) { e.push({ newOption: r, @@ -53932,21 +53973,21 @@ function kDe(e, t) { }); }); } -function $De(e) { +function q2e(e) { var t = ft(); z(e, function(r) { var n = r.existing; n && t.set(n.id, r); }), z(e, function(r) { var n = r.newOption; - xt(!n || n.id == null || !t.get(n.id) || t.get(n.id) === r, "id duplicates: " + (n && n.id)), n && n.id != null && t.set(n.id, r), !r.keyInfo && (r.keyInfo = {}); + Et(!n || n.id == null || !t.get(n.id) || t.get(n.id) === r, "id duplicates: " + (n && n.id)), n && n.id != null && t.set(n.id, r), !r.keyInfo && (r.keyInfo = {}); }), z(e, function(r, n) { var i = r.existing, o = r.newOption, a = r.keyInfo; - if (St(o)) { - if (a.name = o.name != null ? rv(o.name) : i ? i.name : QK + n, i) - a.id = rv(i.id); + if (bt(o)) { + if (a.name = o.name != null ? iv(o.name) : i ? i.name : tY + n, i) + a.id = iv(i.id); else if (o.id != null) - a.id = rv(o.id); + a.id = iv(o.id); else { var s = 0; do @@ -53957,45 +53998,45 @@ function $De(e) { } }); } -function tY(e, t, r) { +function iY(e, t, r) { var n = qn(t[e], null), i = qn(r[e], null); return n != null && i != null && n === i; } -function rv(e) { +function iv(e) { if (process.env.NODE_ENV !== "production" && e == null) throw new Error(); return qn(e, ""); } function qn(e, t) { - return e == null ? t : Je(e) ? e : Cr(e) || $v(e) ? e + "" : t; + return e == null ? t : Je(e) ? e : Cr(e) || Vv(e) ? e + "" : t; } -function q4(e) { +function Z4(e) { process.env.NODE_ENV !== "production" && Cn("`" + e + "` is invalid id or name. Must be a string or number."); } -function X4(e) { - return $v(e) || Dw(e); +function Q4(e) { + return Vv(e) || Dw(e); } -function F2(e) { +function FI(e) { var t = e.name; - return !!(t && t.indexOf(QK)); + return !!(t && t.indexOf(tY)); } -function Ff(e) { - return e && e.id != null && rv(e.id).indexOf(JK) === 0; +function kf(e) { + return e && e.id != null && iv(e.id).indexOf(rY) === 0; } -function BDe(e) { - return JK + e; +function X2e(e) { + return rY + e; } -function VDe(e, t, r) { +function Z2e(e, t, r) { z(e, function(n) { var i = n.newOption; - St(i) && (n.keyInfo.mainType = t, n.keyInfo.subType = HDe(t, i, n.existing, r)); + bt(i) && (n.keyInfo.mainType = t, n.keyInfo.subType = Q2e(t, i, n.existing, r)); }); } -function HDe(e, t, r, n) { +function Q2e(e, t, r, n) { var i = t.type ? t.type : r ? r.subType : n.determineSubType(e, t); return i; } -function zDe(e, t) { +function J2e(e, t) { var r = {}, n = {}; return i(e || [], r), i(t || [], n, r), [o(r), o(n)]; function i(a, s, l) { @@ -54029,25 +54070,25 @@ function Dd(e, t) { if (t.dataIndexInside != null) return t.dataIndexInside; if (t.dataIndex != null) - return Ie(t.dataIndex) ? Fe(t.dataIndex, function(r) { + return Ae(t.dataIndex) ? Fe(t.dataIndex, function(r) { return e.indexOfRawIndex(r); }) : e.indexOfRawIndex(t.dataIndex); if (t.name != null) - return Ie(t.name) ? Fe(t.name, function(r) { + return Ae(t.name) ? Fe(t.name, function(r) { return e.indexOfName(r); }) : e.indexOfName(t.name); } function yr() { - var e = "__ec_inner_" + GDe++; + var e = "__ec_inner_" + eDe++; return function(t) { return t[e] || (t[e] = {}); }; } -var GDe = XK(); -function nv(e, t, r) { - var n = N2(t, r), i = n.mainTypeSpecified, o = n.queryOptionMap, a = n.others, s = a, l = r ? r.defaultMainType : null; +var eDe = JK(); +function ov(e, t, r) { + var n = NI(t, r), i = n.mainTypeSpecified, o = n.queryOptionMap, a = n.others, s = a, l = r ? r.defaultMainType : null; return !i && l && o.set(l, {}), o.each(function(c, u) { - var d = qm(e, u, c, { + var d = Qm(e, u, c, { useDefault: l === u, enableAll: r && r.enableAll != null ? r.enableAll : !0, enableNone: r && r.enableNone != null ? r.enableNone : !0 @@ -54055,7 +54096,7 @@ function nv(e, t, r) { s[u + "Models"] = d.models, s[u + "Model"] = d.models[0]; }), s; } -function N2(e, t) { +function NI(e, t) { var r; if (Je(e)) { var n = {}; @@ -54069,7 +54110,7 @@ function N2(e, t) { return; } var c = l.match(/^(\w+)(Index|Id|Name)$/) || [], u = c[1], d = (c[2] || "").toLowerCase(); - if (!(!u || !d || t && t.includeMainTypes && Yt(t.includeMainTypes, u) < 0)) { + if (!(!u || !d || t && t.includeMainTypes && qt(t.includeMainTypes, u) < 0)) { a = a || !!u; var h = i.get(u) || i.set(u, {}); h[d] = s; @@ -54084,12 +54125,12 @@ var Wn = { useDefault: !0, enableAll: !1, enableNone: !1 -}, WDe = { +}, tDe = { useDefault: !1, enableAll: !0, enableNone: !0 }; -function qm(e, t, r, n) { +function Qm(e, t, r, n) { n = n || Wn; var i = r.index, o = r.id, a = r.name, s = { models: null, @@ -54099,20 +54140,20 @@ function qm(e, t, r, n) { var l = void 0; return s.models = n.useDefault && (l = e.getComponent(t)) ? [l] : [], s; } - return i === "none" || i === !1 ? (xt(n.enableNone, '`"none"` or `false` is not a valid value on index option.'), s.models = [], s) : (i === "all" && (xt(n.enableAll, '`"all"` is not a valid value on index option.'), i = o = a = null), s.models = e.queryComponents({ + return i === "none" || i === !1 ? (Et(n.enableNone, '`"none"` or `false` is not a valid value on index option.'), s.models = [], s) : (i === "all" && (Et(n.enableAll, '`"all"` is not a valid value on index option.'), i = o = a = null), s.models = e.queryComponents({ mainType: t, index: i, id: o, name: a }), s); } -function rY(e, t, r) { +function oY(e, t, r) { e.setAttribute ? e.setAttribute(t, r) : e[t] = r; } -function jDe(e, t) { +function rDe(e, t) { return e.getAttribute ? e.getAttribute(t) : e[t]; } -function UDe(e) { +function nDe(e) { return e === "auto" ? gr.domSupported ? "html" : "richText" : e || "html"; } function $_(e, t) { @@ -54125,12 +54166,12 @@ function $_(e, t) { buckets: r }; } -function nY(e, t, r, n, i) { +function aY(e, t, r, n, i) { var o = t == null || t === "auto"; if (n == null) return n; if (Cr(n)) { - var a = K4(r || 0, n, i); + var a = q4(r || 0, n, i); return En(a, o ? Math.max(Ka(r || 0), Ka(n)) : t); } else { if (Je(n)) @@ -54140,38 +54181,38 @@ function nY(e, t, r, n, i) { if (h && h.type === "ordinal") s[d] = (i < 1 && l ? l : c)[d]; else { - var f = l && l[d] ? l[d] : 0, p = c[d], a = K4(f, p, i); + var f = l && l[d] ? l[d] : 0, p = c[d], a = q4(f, p, i); s[d] = En(a, o ? Math.max(Ka(f), Ka(p)) : t); } } return s; } } -var KDe = ".", pu = "___EC__COMPONENT__CONTAINER___", iY = "___EC__EXTENDED_CLASS___"; +var iDe = ".", pu = "___EC__COMPONENT__CONTAINER___", sY = "___EC__EXTENDED_CLASS___"; function Os(e) { var t = { main: "", sub: "" }; if (e) { - var r = e.split(KDe); + var r = e.split(iDe); t.main = r[0] || "", t.sub = r[1] || ""; } return t; } -function YDe(e) { - xt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e), 'componentType "' + e + '" illegal'); +function oDe(e) { + Et(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e), 'componentType "' + e + '" illegal'); } -function qDe(e) { - return !!(e && e[iY]); +function aDe(e) { + return !!(e && e[sY]); } -function k2(e, t) { +function kI(e, t) { e.$constructor = e, e.extend = function(r) { process.env.NODE_ENV !== "production" && z(t, function(o) { r[o] || console.warn("Method `" + o + "` should be implemented" + (r.type ? " in " + r.type : "") + "."); }); var n = this, i; - return XDe(n) ? i = /** @class */ + return sDe(n) ? i = /** @class */ function(o) { Se(a, o); function a() { @@ -54180,28 +54221,28 @@ function k2(e, t) { return a; }(n) : (i = function() { (r.$constructor || n).apply(this, arguments); - }, x2(i, this)), Pe(i.prototype, r), i[iY] = !0, i.extend = this.extend, i.superCall = JDe, i.superApply = eIe, i.superClass = n, i; + }, xI(i, this)), Pe(i.prototype, r), i[sY] = !0, i.extend = this.extend, i.superCall = uDe, i.superApply = dDe, i.superClass = n, i; }; } -function XDe(e) { - return vt(e) && /^class\s/.test(Function.prototype.toString.call(e)); +function sDe(e) { + return mt(e) && /^class\s/.test(Function.prototype.toString.call(e)); } -function oY(e, t) { +function lY(e, t) { e.extend = t.extend; } -var ZDe = Math.round(Math.random() * 10); -function QDe(e) { - var t = ["__\0is_clz", ZDe++].join("_"); - e.prototype[t] = !0, process.env.NODE_ENV !== "production" && xt(!e.isInstance, 'The method "is" can not be defined.'), e.isInstance = function(r) { +var lDe = Math.round(Math.random() * 10); +function cDe(e) { + var t = ["__\0is_clz", lDe++].join("_"); + e.prototype[t] = !0, process.env.NODE_ENV !== "production" && Et(!e.isInstance, 'The method "is" can not be defined.'), e.isInstance = function(r) { return !!(r && r[t]); }; } -function JDe(e, t) { +function uDe(e, t) { for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; return this.superClass.prototype[t].apply(e, r); } -function eIe(e, t, r) { +function dDe(e, t, r) { return this.superClass.prototype[t].apply(e, r); } function Aw(e) { @@ -54209,7 +54250,7 @@ function Aw(e) { e.registerClass = function(n) { var i = n.type || n.prototype.type; if (i) { - YDe(i), n.prototype.type = i; + oDe(i), n.prototype.type = i; var o = Os(i); if (!o.sub) process.env.NODE_ENV !== "production" && t[o.main] && console.warn(o.main + " exists."), t[o.main] = n; @@ -54252,7 +54293,7 @@ function Id(e, t) { return t = t || !1, function(n, i, o) { for (var a = {}, s = 0; s < e.length; s++) { var l = e[s][1]; - if (!(i && Yt(i, l) >= 0 || o && Yt(o, l) < 0)) { + if (!(i && qt(i, l) >= 0 || o && qt(o, l) < 0)) { var c = n.getShallow(l, t); c != null && (a[e[s][0]] = c); } @@ -54260,7 +54301,7 @@ function Id(e, t) { return a; }; } -var tIe = [ +var hDe = [ ["fill", "color"], ["shadowBlur"], ["shadowOffsetX"], @@ -54269,30 +54310,30 @@ var tIe = [ ["shadowColor"] // Option decal is in `DecalObject` but style.decal is in `PatternObject`. // So do not transfer decal directly. -], rIe = Id(tIe), nIe = ( +], fDe = Id(hDe), pDe = ( /** @class */ function() { function e() { } return e.prototype.getAreaStyle = function(t, r) { - return rIe(this, t, r); + return fDe(this, t, r); }, e; }() -), B_ = new Um(50); -function iIe(e) { +), B_ = new qm(50); +function gDe(e) { if (typeof e == "string") { var t = B_.get(e); return t && t.image; } else return e; } -function $2(e, t, r, n, i) { +function $I(e, t, r, n, i) { if (e) if (typeof e == "string") { if (t && t.__zrImageSrc === e || !r) return t; var o = B_.get(e), a = { hostEl: r, cb: n, cbPayload: i }; - return o ? (t = o.image, !Ow(t) && o.pending.push(a)) : (t = os.loadImage(e, Z4, Z4), t.__zrImageSrc = e, B_.put(e, t.__cachedImgObj = { + return o ? (t = o.image, !Ow(t) && o.pending.push(a)) : (t = os.loadImage(e, J4, J4), t.__zrImageSrc = e, B_.put(e, t.__cachedImgObj = { image: t, pending: [a] })), t; @@ -54300,7 +54341,7 @@ function $2(e, t, r, n, i) { return e; else return t; } -function Z4() { +function J4() { var e = this.__cachedImgObj; this.onload = this.onerror = this.__cachedImgObj = null; for (var t = 0; t < e.pending.length; t++) { @@ -54313,18 +54354,18 @@ function Ow(e) { return e && e.width && e.height; } var Qx = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g; -function aY(e, t, r, n, i) { +function cY(e, t, r, n, i) { if (!t) return ""; var o = (e + "").split(` `); - i = sY(t, r, n, i); + i = uY(t, r, n, i); for (var a = 0, s = o.length; a < s; a++) - o[a] = lY(o[a], i); + o[a] = dY(o[a], i); return o.join(` `); } -function sY(e, t, r, n) { +function uY(e, t, r, n) { n = n || {}; var i = Pe({}, n); i.font = t, r = $t(r, "..."), i.maxIterations = $t(n.maxIterations, 2); @@ -54337,7 +54378,7 @@ function sY(e, t, r, n) { var c = Wo(r, t); return c > s && (r = "", c = 0), s = e - c, i.ellipsis = r, i.ellipsisWidth = c, i.contentWidth = s, i.containerWidth = e, i; } -function lY(e, t) { +function dY(e, t) { var r = t.containerWidth, n = t.font, i = t.contentWidth; if (!r) return ""; @@ -54349,22 +54390,22 @@ function lY(e, t) { e += t.ellipsis; break; } - var s = a === 0 ? oIe(e, i, t.ascCharWidth, t.cnCharWidth) : o > 0 ? Math.floor(e.length * i / o) : 0; + var s = a === 0 ? vDe(e, i, t.ascCharWidth, t.cnCharWidth) : o > 0 ? Math.floor(e.length * i / o) : 0; e = e.substr(0, s), o = Wo(e, n); } return e === "" && (e = t.placeholder), e; } -function oIe(e, t, r, n) { +function vDe(e, t, r, n) { for (var i = 0, o = 0, a = e.length; o < a && i < t; o++) { var s = e.charCodeAt(o); i += 0 <= s && s <= 127 ? r : n; } return o; } -function aIe(e, t) { +function mDe(e, t) { e != null && (e += ""); var r = t.overflow, n = t.padding, i = t.font, o = r === "truncate", a = _w(i), s = $t(t.lineHeight, a), l = !!t.backgroundColor, c = t.lineOverflow === "truncate", u = t.width, d; - u != null && (r === "break" || r === "breakAll") ? d = e ? cY(e, t.font, u, r === "breakAll", 0).lines : [] : d = e ? e.split(` + u != null && (r === "break" || r === "breakAll") ? d = e ? hY(e, t.font, u, r === "breakAll", 0).lines : [] : d = e ? e.split(` `) : []; var h = d.length * s, f = $t(t.height, h); if (h > f && c) { @@ -54372,11 +54413,11 @@ function aIe(e, t) { d = d.slice(0, p); } if (e && o && u != null) - for (var g = sY(u, i, t.ellipsis, { + for (var g = uY(u, i, t.ellipsis, { minChar: t.truncateMinChar, placeholder: t.placeholder }), v = 0; v < d.length; v++) - d[v] = lY(d[v], g); + d[v] = dY(d[v], g); for (var m = f, y = 0, v = 0; v < d.length; v++) y = Math.max(Wo(d[v], i), y); u == null && (u = y); @@ -54393,23 +54434,23 @@ function aIe(e, t) { width: u }; } -var sIe = /* @__PURE__ */ function() { +var yDe = /* @__PURE__ */ function() { function e() { } return e; -}(), Q4 = /* @__PURE__ */ function() { +}(), e8 = /* @__PURE__ */ function() { function e(t) { this.tokens = [], t && (this.tokens = t); } return e; -}(), lIe = /* @__PURE__ */ function() { +}(), CDe = /* @__PURE__ */ function() { function e() { this.width = 0, this.height = 0, this.contentWidth = 0, this.contentHeight = 0, this.outerWidth = 0, this.outerHeight = 0, this.lines = []; } return e; }(); -function cIe(e, t) { - var r = new lIe(); +function SDe(e, t) { + var r = new CDe(); if (e != null && (e += ""), !e) return r; for (var n = t.width, i = t.height, o = t.overflow, a = (o === "break" || o === "breakAll") && n != null ? { width: n, accumWidth: 0, breakAll: o === "breakAll" } : null, s = Qx.lastIndex = 0, l; (l = Qx.exec(e)) != null; ) { @@ -54436,10 +54477,10 @@ function cIe(e, t) { else { if (A) { var M = E.backgroundColor, O = M && M.image; - O && (O = iIe(O), Ow(O) && (x.width = Math.max(x.width, O.width * _ / O.height))); + O && (O = gDe(O), Ow(O) && (x.width = Math.max(x.width, O.width * _ / O.height))); } var L = p && n != null ? n - b : null; - L != null && L < x.width ? !A || L < P ? (x.text = "", x.width = x.contentWidth = 0) : (x.text = aY(x.text, L - P, T, t.ellipsis, { minChar: t.truncateMinChar }), x.width = x.contentWidth = Wo(x.text, T)) : x.contentWidth = Wo(x.text, T); + L != null && L < x.width ? !A || L < P ? (x.text = "", x.width = x.contentWidth = 0) : (x.text = cY(x.text, L - P, T, t.ellipsis, { minChar: t.truncateMinChar }), x.width = x.contentWidth = Wo(x.text, T)) : x.contentWidth = Wo(x.text, T); } x.width += P, b += x.width, E && (C = Math.max(C, x.lineHeight)); } @@ -54461,32 +54502,32 @@ function Jx(e, t, r, n, i) { s.length > 0 && p + n.accumWidth > n.width && (u = t.split(` `), c = !0), n.accumWidth = p; } else { - var g = cY(t, l, n.width, n.breakAll, n.accumWidth); + var g = hY(t, l, n.width, n.breakAll, n.accumWidth); n.accumWidth = g.accumWidth + f, d = g.linesWidths, u = g.lines; } } else u = t.split(` `); for (var v = 0; v < u.length; v++) { - var m = u[v], y = new sIe(); + var m = u[v], y = new yDe(); if (y.styleName = i, y.text = m, y.isLineHolder = !m && !o, typeof a.width == "number" ? y.width = a.width : y.width = d ? d[v] : Wo(m, l), !v && !c) { - var C = (s[s.length - 1] || (s[0] = new Q4())).tokens, b = C.length; + var C = (s[s.length - 1] || (s[0] = new e8())).tokens, b = C.length; b === 1 && C[0].isLineHolder ? C[0] = y : (m || !b || o) && C.push(y); } else - s.push(new Q4([y])); + s.push(new e8([y])); } } -function uIe(e) { +function bDe(e) { var t = e.charCodeAt(0); return t >= 32 && t <= 591 || t >= 880 && t <= 4351 || t >= 4608 && t <= 5119 || t >= 7680 && t <= 8303; } -var dIe = Ra(",&?/;] ".split(""), function(e, t) { +var wDe = Ra(",&?/;] ".split(""), function(e, t) { return e[t] = !0, e; }, {}); -function hIe(e) { - return uIe(e) ? !!dIe[e] : !0; +function xDe(e) { + return bDe(e) ? !!wDe[e] : !0; } -function cY(e, t, r, n, i) { +function hY(e, t, r, n, i) { for (var o = [], a = [], s = "", l = "", c = 0, u = 0, d = 0; d < e.length; d++) { var h = e.charAt(d); if (h === ` @@ -54494,7 +54535,7 @@ function cY(e, t, r, n, i) { l && (s += l, u += c), o.push(s), a.push(u), s = "", l = "", c = 0, u = 0; continue; } - var f = Wo(h, t), p = n ? !1 : !hIe(h); + var f = Wo(h, t), p = n ? !1 : !xDe(h); if (o.length ? u + f > r : i + u + f > r) { u ? (s || l) && (p ? (s || (s = l, l = "", c = 0, u = c), o.push(s), a.push(u - c), l += h, c += f, s = "", u = c) : (l && (s += l, l = "", c = 0), o.push(s), a.push(u), s = h, u = f)) : p ? (o.push(l), a.push(c), l = h, c = f) : (o.push(h), a.push(f)); continue; @@ -54524,7 +54565,7 @@ var V_ = "__zr_style_" + Math.round(Math.random() * 10), dd = { } }; dd[V_] = !0; -var J4 = ["z", "z2", "invisible"], fIe = ["invisible"], pIe = function(e) { +var t8 = ["z", "z2", "invisible"], EDe = ["invisible"], RDe = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; @@ -54541,7 +54582,7 @@ var J4 = ["z", "z2", "invisible"], fIe = ["invisible"], pIe = function(e) { }, t.prototype.innerAfterBrush = function() { }, t.prototype.shouldBePainted = function(r, n, i, o) { var a = this.transform; - if (this.ignore || this.invisible || this.style.opacity === 0 || this.culling && gIe(this, r, n) || a && !a[0] && !a[3]) + if (this.ignore || this.invisible || this.style.opacity === 0 || this.culling && PDe(this, r, n) || a && !a[0] && !a[3]) return !1; if (i && this.__clipPaths) { for (var s = 0; s < this.__clipPaths.length; ++s) @@ -54566,13 +54607,13 @@ var J4 = ["z", "z2", "invisible"], fIe = ["invisible"], pIe = function(e) { var r = this._paintRect; if (!this._paintRect || this.__dirty) { var n = this.transform, i = this.getBoundingRect(), o = this.style, a = o.shadowBlur || 0, s = o.shadowOffsetX || 0, l = o.shadowOffsetY || 0; - r = this._paintRect || (this._paintRect = new Kt(0, 0, 0, 0)), n ? Kt.applyTransform(r, i, n) : r.copy(i), (a || s || l) && (r.width += a * 2 + Math.abs(s), r.height += a * 2 + Math.abs(l), r.x = Math.min(r.x, r.x + s - a), r.y = Math.min(r.y, r.y + l - a)); + r = this._paintRect || (this._paintRect = new Yt(0, 0, 0, 0)), n ? Yt.applyTransform(r, i, n) : r.copy(i), (a || s || l) && (r.width += a * 2 + Math.abs(s), r.height += a * 2 + Math.abs(l), r.x = Math.min(r.x, r.x + s - a), r.y = Math.min(r.y, r.y + l - a)); var c = this.dirtyRectTolerance; r.isZero() || (r.x = Math.floor(r.x - c), r.y = Math.floor(r.y - c), r.width = Math.ceil(r.width + 1 + c * 2), r.height = Math.ceil(r.height + 1 + c * 2)); } return r; }, t.prototype.setPrevPaintRect = function(r) { - r ? (this._prevPaintRect = this._prevPaintRect || new Kt(0, 0, 0, 0), this._prevPaintRect.copy(r)) : this._prevPaintRect = null; + r ? (this._prevPaintRect = this._prevPaintRect || new Yt(0, 0, 0, 0), this._prevPaintRect.copy(r)) : this._prevPaintRect = null; }, t.prototype.getPrevPaintRect = function() { return this._prevPaintRect; }, t.prototype.animateStyle = function(r) { @@ -54584,15 +54625,15 @@ var J4 = ["z", "z2", "invisible"], fIe = ["invisible"], pIe = function(e) { }, t.prototype.setStyle = function(r, n) { return typeof r == "string" ? this.style[r] = n : Pe(this.style, r), this.dirtyStyle(), this; }, t.prototype.dirtyStyle = function(r) { - r || this.markRedraw(), this.__dirty |= xg, this._rect && (this._rect = null); + r || this.markRedraw(), this.__dirty |= Rg, this._rect && (this._rect = null); }, t.prototype.dirty = function() { this.dirtyStyle(); }, t.prototype.styleChanged = function() { - return !!(this.__dirty & xg); + return !!(this.__dirty & Rg); }, t.prototype.styleUpdated = function() { - this.__dirty &= ~xg; + this.__dirty &= ~Rg; }, t.prototype.createStyle = function(r) { - return Wm(dd, r); + return Km(dd, r); }, t.prototype.useStyle = function(r) { r[V_] || (r = this.createStyle(r)), this.__inHover ? this.__hoverStyle = r : this.style = r, this.dirtyStyle(); }, t.prototype.isStyleObject = function(r) { @@ -54600,7 +54641,7 @@ var J4 = ["z", "z2", "invisible"], fIe = ["invisible"], pIe = function(e) { }, t.prototype._innerSaveToNormal = function(r) { e.prototype._innerSaveToNormal.call(this, r); var n = this._normalState; - r.style && !n.style && (n.style = this._mergeStyle(this.createStyle(), this.style)), this._savePrimaryToNormal(r, n, J4); + r.style && !n.style && (n.style = this._mergeStyle(this.createStyle(), this.style)), this._savePrimaryToNormal(r, n, t8); }, t.prototype._applyStateObj = function(r, n, i, o, a, s) { e.prototype._applyStateObj.call(this, r, n, i, o, a, s); var l = !(n && o), c; @@ -54621,7 +54662,7 @@ var J4 = ["z", "z2", "invisible"], fIe = ["invisible"], pIe = function(e) { }, s, this.getAnimationStyleProps()); } else this.useStyle(c); - for (var g = this.__inHover ? fIe : J4, h = 0; h < g.length; h++) { + for (var g = this.__inHover ? EDe : t8, h = 0; h < g.length; h++) { var f = g[h]; n && n[f] != null ? this[f] = n[f] : l && i[f] != null && (this[f] = i[f]); } @@ -54637,14 +54678,14 @@ var J4 = ["z", "z2", "invisible"], fIe = ["invisible"], pIe = function(e) { return Lw; }, t.initDefaultProps = function() { var r = t.prototype; - r.type = "displayable", r.invisible = !1, r.z = 0, r.z2 = 0, r.zlevel = 0, r.culling = !1, r.cursor = "pointer", r.rectHover = !1, r.incremental = !1, r._rect = null, r.dirtyRectTolerance = 0, r.__dirty = Fo | xg; + r.type = "displayable", r.invisible = !1, r.z = 0, r.z2 = 0, r.zlevel = 0, r.culling = !1, r.cursor = "pointer", r.rectHover = !1, r.incremental = !1, r._rect = null, r.dirtyRectTolerance = 0, r.__dirty = Fo | Rg; }(), t; -}(Mw), eE = new Kt(0, 0, 0, 0), tE = new Kt(0, 0, 0, 0); -function gIe(e, t, r) { +}(Mw), eE = new Yt(0, 0, 0, 0), tE = new Yt(0, 0, 0, 0); +function PDe(e, t, r) { return eE.copy(e.getBoundingRect()), e.transform && eE.applyTransform(e.transform), tE.width = t, tE.height = r, !eE.intersect(tE); } -const Ta = pIe; -var po = Math.min, go = Math.max, rE = Math.sin, nE = Math.cos, gu = Math.PI * 2, e0 = Jc(), t0 = Jc(), r0 = Jc(); +const Ta = RDe; +var po = Math.min, go = Math.max, rE = Math.sin, nE = Math.cos, gu = Math.PI * 2, n0 = Jc(), i0 = Jc(), o0 = Jc(); function Fw(e, t, r) { if (e.length !== 0) { for (var n = e[0], i = n[0], o = n[0], a = n[1], s = n[1], l = 1; l < e.length; l++) @@ -54652,40 +54693,40 @@ function Fw(e, t, r) { t[0] = i, t[1] = a, r[0] = o, r[1] = s; } } -function e8(e, t, r, n, i, o) { +function r8(e, t, r, n, i, o) { i[0] = po(e, r), i[1] = po(t, n), o[0] = go(e, r), o[1] = go(t, n); } -var t8 = [], r8 = []; -function vIe(e, t, r, n, i, o, a, s, l, c) { - var u = PK, d = ti, h = u(e, r, i, a, t8); +var n8 = [], i8 = []; +function TDe(e, t, r, n, i, o, a, s, l, c) { + var u = MK, d = ti, h = u(e, r, i, a, n8); l[0] = 1 / 0, l[1] = 1 / 0, c[0] = -1 / 0, c[1] = -1 / 0; for (var f = 0; f < h; f++) { - var p = d(e, r, i, a, t8[f]); + var p = d(e, r, i, a, n8[f]); l[0] = po(p, l[0]), c[0] = go(p, c[0]); } - h = u(t, n, o, s, r8); + h = u(t, n, o, s, i8); for (var f = 0; f < h; f++) { - var g = d(t, n, o, s, r8[f]); + var g = d(t, n, o, s, i8[f]); l[1] = po(g, l[1]), c[1] = go(g, c[1]); } l[0] = po(e, l[0]), c[0] = go(e, c[0]), l[0] = po(a, l[0]), c[0] = go(a, c[0]), l[1] = po(t, l[1]), c[1] = go(t, c[1]), l[1] = po(s, l[1]), c[1] = go(s, c[1]); } -function mIe(e, t, r, n, i, o, a, s) { - var l = _K, c = fi, u = go(po(l(e, r, i), 1), 0), d = go(po(l(t, n, o), 1), 0), h = c(e, r, i, u), f = c(t, n, o, d); +function _De(e, t, r, n, i, o, a, s) { + var l = IK, c = pi, u = go(po(l(e, r, i), 1), 0), d = go(po(l(t, n, o), 1), 0), h = c(e, r, i, u), f = c(t, n, o, d); a[0] = po(e, i, h), a[1] = po(t, o, f), s[0] = go(e, i, h), s[1] = go(t, o, f); } -function yIe(e, t, r, n, i, o, a, s, l) { - var c = xl, u = El, d = Math.abs(i - o); +function MDe(e, t, r, n, i, o, a, s, l) { + var c = El, u = Rl, d = Math.abs(i - o); if (d % gu < 1e-4 && d > 1e-4) { s[0] = e - r, s[1] = t - n, l[0] = e + r, l[1] = t + n; return; } - if (e0[0] = nE(i) * r + e, e0[1] = rE(i) * n + t, t0[0] = nE(o) * r + e, t0[1] = rE(o) * n + t, c(s, e0, t0), u(l, e0, t0), i = i % gu, i < 0 && (i = i + gu), o = o % gu, o < 0 && (o = o + gu), i > o && !a ? o += gu : i < o && a && (i += gu), a) { + if (n0[0] = nE(i) * r + e, n0[1] = rE(i) * n + t, i0[0] = nE(o) * r + e, i0[1] = rE(o) * n + t, c(s, n0, i0), u(l, n0, i0), i = i % gu, i < 0 && (i = i + gu), o = o % gu, o < 0 && (o = o + gu), i > o && !a ? o += gu : i < o && a && (i += gu), a) { var h = o; o = i, i = h; } for (var f = 0; f < o; f += Math.PI / 2) - f > i && (r0[0] = nE(f) * r + e, r0[1] = rE(f) * n + t, c(s, r0, s), u(l, r0, l)); + f > i && (o0[0] = nE(f) * r + e, o0[1] = rE(f) * n + t, c(s, o0, s), u(l, o0, l)); } var Jr = { M: 1, @@ -54695,12 +54736,12 @@ var Jr = { A: 5, Z: 6, R: 7 -}, vu = [], mu = [], fs = [], nc = [], ps = [], gs = [], iE = Math.min, oE = Math.max, yu = Math.cos, Cu = Math.sin, ul = Math.abs, H_ = Math.PI, fc = H_ * 2, aE = typeof Float32Array < "u", Kp = []; +}, vu = [], mu = [], fs = [], nc = [], ps = [], gs = [], iE = Math.min, oE = Math.max, yu = Math.cos, Cu = Math.sin, dl = Math.abs, H_ = Math.PI, fc = H_ * 2, aE = typeof Float32Array < "u", qp = []; function sE(e) { var t = Math.round(e / H_ * 1e8) / 1e8; return t % 2 * H_; } -function B2(e, t) { +function BI(e, t) { var r = sE(e[0]); r < 0 && (r += fc); var n = r - e[0], i = e[1]; @@ -54715,7 +54756,7 @@ var Ys = function() { }, e.prototype.getVersion = function() { return this._version; }, e.prototype.setScale = function(t, r, n) { - n = n || 0, n > 0 && (this._ux = ul(n / PS / t) || 0, this._uy = ul(n / PS / r) || 0); + n = n || 0, n > 0 && (this._ux = dl(n / _S / t) || 0, this._uy = dl(n / _S / r) || 0); }, e.prototype.setDPR = function(t) { this.dpr = t; }, e.prototype.setContext = function(t) { @@ -54729,7 +54770,7 @@ var Ys = function() { }, e.prototype.moveTo = function(t, r) { return this._drawPendingPt(), this.addData(Jr.M, t, r), this._ctx && this._ctx.moveTo(t, r), this._x0 = t, this._y0 = r, this._xi = t, this._yi = r, this; }, e.prototype.lineTo = function(t, r) { - var n = ul(t - this._xi), i = ul(r - this._yi), o = n > this._ux || i > this._uy; + var n = dl(t - this._xi), i = dl(r - this._yi), o = n > this._ux || i > this._uy; if (this.addData(Jr.L, t, r), this._ctx && o && this._ctx.lineTo(t, r), o) this._xi = t, this._yi = r, this._pendingPtDist = 0; else { @@ -54742,7 +54783,7 @@ var Ys = function() { }, e.prototype.quadraticCurveTo = function(t, r, n, i) { return this._drawPendingPt(), this.addData(Jr.Q, t, r, n, i), this._ctx && this._ctx.quadraticCurveTo(t, r, n, i), this._xi = n, this._yi = i, this; }, e.prototype.arc = function(t, r, n, i, o, a) { - this._drawPendingPt(), Kp[0] = i, Kp[1] = o, B2(Kp, a), i = Kp[0], o = Kp[1]; + this._drawPendingPt(), qp[0] = i, qp[1] = o, BI(qp, a), i = qp[0], o = qp[1]; var s = o - i; return this.addData(Jr.A, t, r, n, n, i, s, 0, a ? 0 : 1), this._ctx && this._ctx.arc(t, r, n, i, o, a), this._xi = yu(o) * n + t, this._yi = Cu(o) * n + r, this; }, e.prototype.arcTo = function(t, r, n, i, o) { @@ -54805,32 +54846,32 @@ var Ys = function() { r = i = t[a++], n = o = t[a++], ps[0] = i, ps[1] = o, gs[0] = i, gs[1] = o; break; case Jr.L: - e8(r, n, t[a], t[a + 1], ps, gs), r = t[a++], n = t[a++]; + r8(r, n, t[a], t[a + 1], ps, gs), r = t[a++], n = t[a++]; break; case Jr.C: - vIe(r, n, t[a++], t[a++], t[a++], t[a++], t[a], t[a + 1], ps, gs), r = t[a++], n = t[a++]; + TDe(r, n, t[a++], t[a++], t[a++], t[a++], t[a], t[a + 1], ps, gs), r = t[a++], n = t[a++]; break; case Jr.Q: - mIe(r, n, t[a++], t[a++], t[a], t[a + 1], ps, gs), r = t[a++], n = t[a++]; + _De(r, n, t[a++], t[a++], t[a], t[a + 1], ps, gs), r = t[a++], n = t[a++]; break; case Jr.A: var c = t[a++], u = t[a++], d = t[a++], h = t[a++], f = t[a++], p = t[a++] + f; a += 1; var g = !t[a++]; - l && (i = yu(f) * d + c, o = Cu(f) * h + u), yIe(c, u, d, h, f, p, g, ps, gs), r = yu(p) * d + c, n = Cu(p) * h + u; + l && (i = yu(f) * d + c, o = Cu(f) * h + u), MDe(c, u, d, h, f, p, g, ps, gs), r = yu(p) * d + c, n = Cu(p) * h + u; break; case Jr.R: i = r = t[a++], o = n = t[a++]; var v = t[a++], m = t[a++]; - e8(i, o, i + v, o + m, ps, gs); + r8(i, o, i + v, o + m, ps, gs); break; case Jr.Z: r = i, n = o; break; } - xl(fs, fs, ps), El(nc, nc, gs); + El(fs, fs, ps), Rl(nc, nc, gs); } - return a === 0 && (fs[0] = fs[1] = nc[0] = nc[1] = 0), new Kt(fs[0], fs[1], nc[0] - fs[0], nc[1] - fs[1]); + return a === 0 && (fs[0] = fs[1] = nc[0] = nc[1] = 0), new Yt(fs[0], fs[1], nc[0] - fs[0], nc[1] - fs[1]); }, e.prototype._calculateLength = function() { var t = this.data, r = this._len, n = this._ux, i = this._uy, o = 0, a = 0, s = 0, l = 0; this._pathSegLen || (this._pathSegLen = []); @@ -54844,17 +54885,17 @@ var Ys = function() { break; case Jr.L: { var v = t[h++], m = t[h++], y = v - o, C = m - a; - (ul(y) > n || ul(C) > i || h === r - 1) && (g = Math.sqrt(y * y + C * C), o = v, a = m); + (dl(y) > n || dl(C) > i || h === r - 1) && (g = Math.sqrt(y * y + C * C), o = v, a = m); break; } case Jr.C: { var b = t[h++], w = t[h++], v = t[h++], m = t[h++], x = t[h++], E = t[h++]; - g = DMe(o, a, b, w, v, m, x, E, 10), o = x, a = E; + g = HMe(o, a, b, w, v, m, x, E, 10), o = x, a = E; break; } case Jr.Q: { var b = t[h++], w = t[h++], v = t[h++], m = t[h++]; - g = AMe(o, a, b, w, v, m, 10), o = v, a = m; + g = GMe(o, a, b, w, v, m, 10), o = v, a = m; break; } case Jr.A: @@ -54887,7 +54928,7 @@ var Ys = function() { break; case Jr.L: { d = n[x++], h = n[x++]; - var P = ul(d - c), T = ul(h - u); + var P = dl(d - c), T = dl(h - u); if (P > i || T > o) { if (f) { var _ = p[m++]; @@ -54925,7 +54966,7 @@ var Ys = function() { var _ = p[m++]; if (v + _ > y) { var D = (y - v) / _; - zv(c, M, L, D, vu), zv(u, O, N, D, mu), t.quadraticCurveTo(vu[1], mu[1], vu[2], mu[2]); + Wv(c, M, L, D, vu), Wv(u, O, N, D, mu), t.quadraticCurveTo(vu[1], mu[1], vu[2], mu[2]); break e; } v += _; @@ -54934,12 +54975,12 @@ var Ys = function() { break; } case Jr.A: - var I = n[x++], V = n[x++], H = n[x++], B = n[x++], W = n[x++], j = n[x++], X = n[x++], q = !n[x++], J = H > B ? H : B, te = ul(H - B) > 1e-3, Q = W + j, Y = !1; + var I = n[x++], V = n[x++], H = n[x++], B = n[x++], W = n[x++], j = n[x++], X = n[x++], q = !n[x++], J = H > B ? H : B, re = dl(H - B) > 1e-3, Q = W + j, Y = !1; if (f) { var _ = p[m++]; v + _ > y && (Q = W + j * (y - v) / _, Y = !0), v += _; } - if (te && t.ellipse ? t.ellipse(I, V, H, B, X, W, Q, q) : t.arc(I, V, J, W, Q, q), Y) + if (re && t.ellipse ? t.ellipse(I, V, H, B, X, W, Q, q) : t.arc(I, V, J, W, Q, q), Y) break e; R && (s = yu(W) * H + I, l = Cu(W) * B + V), c = yu(Q) * H + I, u = Cu(Q) * B + V; break; @@ -54991,30 +55032,30 @@ function gc(e, t, r, n, i, o, a) { var u = l * o - a + c, d = u * u / (l * l + 1); return d <= s / 2 * s / 2; } -function CIe(e, t, r, n, i, o, a, s, l, c, u) { +function DDe(e, t, r, n, i, o, a, s, l, c, u) { if (l === 0) return !1; var d = l; if (u > t + d && u > n + d && u > o + d && u > s + d || u < t - d && u < n - d && u < o - d && u < s - d || c > e + d && c > r + d && c > i + d && c > a + d || c < e - d && c < r - d && c < i - d && c < a - d) return !1; - var h = TK(e, t, r, n, i, o, a, s, c, u, null); + var h = DK(e, t, r, n, i, o, a, s, c, u, null); return h <= d / 2; } -function uY(e, t, r, n, i, o, a, s, l) { +function fY(e, t, r, n, i, o, a, s, l) { if (a === 0) return !1; var c = a; if (l > t + c && l > n + c && l > o + c || l < t - c && l < n - c && l < o - c || s > e + c && s > r + c && s > i + c || s < e - c && s < r - c && s < i - c) return !1; - var u = MK(e, t, r, n, i, o, s, l, null); + var u = AK(e, t, r, n, i, o, s, l, null); return u <= c / 2; } -var n8 = Math.PI * 2; +var o8 = Math.PI * 2; function Ho(e) { - return e %= n8, e < 0 && (e += n8), e; + return e %= o8, e < 0 && (e += o8), e; } -var Yp = Math.PI * 2; -function SIe(e, t, r, n, i, o, a, s, l) { +var Xp = Math.PI * 2; +function IDe(e, t, r, n, i, o, a, s, l) { if (a === 0) return !1; var c = a; @@ -55022,18 +55063,18 @@ function SIe(e, t, r, n, i, o, a, s, l) { var u = Math.sqrt(s * s + l * l); if (u - c > r || u + c < r) return !1; - if (Math.abs(n - i) % Yp < 1e-4) + if (Math.abs(n - i) % Xp < 1e-4) return !0; if (o) { var d = n; n = Ho(i), i = Ho(d); } else n = Ho(n), i = Ho(i); - n > i && (i += Yp); + n > i && (i += Xp); var h = Math.atan2(l, s); - return h < 0 && (h += Yp), h >= n && h <= i || h + Yp >= n && h + Yp <= i; + return h < 0 && (h += Xp), h >= n && h <= i || h + Xp >= n && h + Xp <= i; } -function yl(e, t, r, n, i, o) { +function Cl(e, t, r, n, i, o) { if (o > t && o > n || o < t && o < n || n === t) return 0; var a = (o - t) / (n - t), s = n < t ? 1 : -1; @@ -55041,46 +55082,46 @@ function yl(e, t, r, n, i, o) { var l = a * (r - e) + e; return l === i ? 1 / 0 : l > i ? s : 0; } -var ic = Ys.CMD, Su = Math.PI * 2, bIe = 1e-4; -function wIe(e, t) { - return Math.abs(e - t) < bIe; +var ic = Ys.CMD, Su = Math.PI * 2, ADe = 1e-4; +function ODe(e, t) { + return Math.abs(e - t) < ADe; } var Wi = [-1, -1, -1], ca = [-1, -1]; -function xIe() { +function LDe() { var e = ca[0]; ca[0] = ca[1], ca[1] = e; } -function EIe(e, t, r, n, i, o, a, s, l, c) { +function FDe(e, t, r, n, i, o, a, s, l, c) { if (c > t && c > n && c > o && c > s || c < t && c < n && c < o && c < s) return 0; - var u = wS(t, n, o, s, c, Wi); + var u = ES(t, n, o, s, c, Wi); if (u === 0) return 0; for (var d = 0, h = -1, f = void 0, p = void 0, g = 0; g < u; g++) { var v = Wi[g], m = v === 0 || v === 1 ? 0.5 : 1, y = ti(e, r, i, a, v); - y < l || (h < 0 && (h = PK(t, n, o, s, ca), ca[1] < ca[0] && h > 1 && xIe(), f = ti(t, n, o, s, ca[0]), h > 1 && (p = ti(t, n, o, s, ca[1]))), h === 2 ? v < ca[0] ? d += f < t ? m : -m : v < ca[1] ? d += p < f ? m : -m : d += s < p ? m : -m : v < ca[0] ? d += f < t ? m : -m : d += s < f ? m : -m); + y < l || (h < 0 && (h = MK(t, n, o, s, ca), ca[1] < ca[0] && h > 1 && LDe(), f = ti(t, n, o, s, ca[0]), h > 1 && (p = ti(t, n, o, s, ca[1]))), h === 2 ? v < ca[0] ? d += f < t ? m : -m : v < ca[1] ? d += p < f ? m : -m : d += s < p ? m : -m : v < ca[0] ? d += f < t ? m : -m : d += s < f ? m : -m); } return d; } -function RIe(e, t, r, n, i, o, a, s) { +function NDe(e, t, r, n, i, o, a, s) { if (s > t && s > n && s > o || s < t && s < n && s < o) return 0; - var l = IMe(t, n, o, s, Wi); + var l = zMe(t, n, o, s, Wi); if (l === 0) return 0; - var c = _K(t, n, o); + var c = IK(t, n, o); if (c >= 0 && c <= 1) { - for (var u = 0, d = fi(t, n, o, c), h = 0; h < l; h++) { - var f = Wi[h] === 0 || Wi[h] === 1 ? 0.5 : 1, p = fi(e, r, i, Wi[h]); + for (var u = 0, d = pi(t, n, o, c), h = 0; h < l; h++) { + var f = Wi[h] === 0 || Wi[h] === 1 ? 0.5 : 1, p = pi(e, r, i, Wi[h]); p < a || (Wi[h] < c ? u += d < t ? f : -f : u += o < d ? f : -f); } return u; } else { - var f = Wi[0] === 0 || Wi[0] === 1 ? 0.5 : 1, p = fi(e, r, i, Wi[0]); + var f = Wi[0] === 0 || Wi[0] === 1 ? 0.5 : 1, p = pi(e, r, i, Wi[0]); return p < a ? 0 : o < t ? f : -f; } } -function PIe(e, t, r, n, i, o, a, s) { +function kDe(e, t, r, n, i, o, a, s) { if (s -= t, s > r || s < -r) return 0; var l = Math.sqrt(r * r - s * s); @@ -55107,10 +55148,10 @@ function PIe(e, t, r, n, i, o, a, s) { } return h; } -function dY(e, t, r, n, i) { +function pY(e, t, r, n, i) { for (var o = e.data, a = e.len(), s = 0, l = 0, c = 0, u = 0, d = 0, h, f, p = 0; p < a; ) { var g = o[p++], v = p === 1; - switch (g === ic.M && p > 1 && (r || (s += yl(l, c, u, d, n, i))), v && (l = o[p], c = o[p + 1], u = l, d = c), g) { + switch (g === ic.M && p > 1 && (r || (s += Cl(l, c, u, d, n, i))), v && (l = o[p], c = o[p + 1], u = l, d = c), g) { case ic.M: u = o[p++], d = o[p++], l = u, c = d; break; @@ -55119,36 +55160,36 @@ function dY(e, t, r, n, i) { if (gc(l, c, o[p], o[p + 1], t, n, i)) return !0; } else - s += yl(l, c, o[p], o[p + 1], n, i) || 0; + s += Cl(l, c, o[p], o[p + 1], n, i) || 0; l = o[p++], c = o[p++]; break; case ic.C: if (r) { - if (CIe(l, c, o[p++], o[p++], o[p++], o[p++], o[p], o[p + 1], t, n, i)) + if (DDe(l, c, o[p++], o[p++], o[p++], o[p++], o[p], o[p + 1], t, n, i)) return !0; } else - s += EIe(l, c, o[p++], o[p++], o[p++], o[p++], o[p], o[p + 1], n, i) || 0; + s += FDe(l, c, o[p++], o[p++], o[p++], o[p++], o[p], o[p + 1], n, i) || 0; l = o[p++], c = o[p++]; break; case ic.Q: if (r) { - if (uY(l, c, o[p++], o[p++], o[p], o[p + 1], t, n, i)) + if (fY(l, c, o[p++], o[p++], o[p], o[p + 1], t, n, i)) return !0; } else - s += RIe(l, c, o[p++], o[p++], o[p], o[p + 1], n, i) || 0; + s += NDe(l, c, o[p++], o[p++], o[p], o[p + 1], n, i) || 0; l = o[p++], c = o[p++]; break; case ic.A: var m = o[p++], y = o[p++], C = o[p++], b = o[p++], w = o[p++], x = o[p++]; p += 1; var E = !!(1 - o[p++]); - h = Math.cos(w) * C + m, f = Math.sin(w) * b + y, v ? (u = h, d = f) : s += yl(l, c, h, f, n, i); + h = Math.cos(w) * C + m, f = Math.sin(w) * b + y, v ? (u = h, d = f) : s += Cl(l, c, h, f, n, i); var R = (n - m) * b / C + m; if (r) { - if (SIe(m, y, b, w, w + x, E, t, R, i)) + if (IDe(m, y, b, w, w + x, E, t, R, i)) return !0; } else - s += PIe(m, y, b, w, w + x, E, R, i); + s += kDe(m, y, b, w, w + x, E, R, i); l = Math.cos(w + x) * C + m, c = Math.sin(w + x) * b + y; break; case ic.R: @@ -55158,27 +55199,27 @@ function dY(e, t, r, n, i) { if (gc(u, d, h, d, t, n, i) || gc(h, d, h, f, t, n, i) || gc(h, f, u, f, t, n, i) || gc(u, f, u, d, t, n, i)) return !0; } else - s += yl(h, d, h, f, n, i), s += yl(u, f, u, d, n, i); + s += Cl(h, d, h, f, n, i), s += Cl(u, f, u, d, n, i); break; case ic.Z: if (r) { if (gc(l, c, u, d, t, n, i)) return !0; } else - s += yl(l, c, u, d, n, i); + s += Cl(l, c, u, d, n, i); l = u, c = d; break; } } - return !r && !wIe(c, d) && (s += yl(l, c, u, d, n, i) || 0), s !== 0; + return !r && !ODe(c, d) && (s += Cl(l, c, u, d, n, i) || 0), s !== 0; } -function TIe(e, t, r) { - return dY(e, 0, !1, t, r); +function $De(e, t, r) { + return pY(e, 0, !1, t, r); } -function _Ie(e, t, r, n) { - return dY(e, t, !0, r, n); +function BDe(e, t, r, n) { + return pY(e, t, !0, r, n); } -var MS = wt({ +var IS = xt({ fill: "#000", stroke: null, strokePercent: 1, @@ -55190,8 +55231,8 @@ var MS = wt({ miterLimit: 10, strokeNoScale: !1, strokeFirst: !1 -}, dd), MIe = { - style: wt({ +}, dd), VDe = { + style: xt({ fill: !0, stroke: !0, strokePercent: !0, @@ -55252,8 +55293,8 @@ var MS = wt({ var r = this.style.fill; if (r !== "none") { if (Je(r)) { - var n = jv(r, 0); - return n > 0.5 ? A_ : n > 0.2 ? cDe : O_; + var n = Kv(r, 0); + return n > 0.5 ? A_ : n > 0.2 ? S2e : O_; } else if (r) return O_; } @@ -55261,7 +55302,7 @@ var MS = wt({ }, t.prototype.getInsideTextStroke = function(r) { var n = this.style.fill; if (Je(n)) { - var i = this.__zr, o = !!(i && i.isDarkMode()), a = jv(r, 0) < I_; + var i = this.__zr, o = !!(i && i.isDarkMode()), a = Kv(r, 0) < I_; if (o === a) return n; } @@ -55306,11 +55347,11 @@ var MS = wt({ var s = this.path; if (this.hasStroke()) { var l = a.lineWidth, c = a.strokeNoScale ? this.getLineScale() : 1; - if (c > 1e-10 && (this.hasFill() || (l = Math.max(l, this.strokeContainThreshold)), _Ie(s, l / c, r, n))) + if (c > 1e-10 && (this.hasFill() || (l = Math.max(l, this.strokeContainThreshold)), BDe(s, l / c, r, n))) return !0; } if (this.hasFill()) - return TIe(s, r, n); + return $De(s, r, n); } return !1; }, t.prototype.dirtyShape = function() { @@ -55329,7 +55370,7 @@ var MS = wt({ }, t.prototype.shapeChanged = function() { return !!(this.__dirty & jh); }, t.prototype.createStyle = function(r) { - return Wm(MS, r); + return Km(IS, r); }, t.prototype._innerSaveToNormal = function(r) { e.prototype._innerSaveToNormal.call(this, r); var n = this._normalState; @@ -55356,7 +55397,7 @@ var MS = wt({ } return i && (n.shape = i), n; }, t.prototype.getAnimationStyleProps = function() { - return MIe; + return VDe; }, t.prototype.isZeroArea = function() { return !1; }, t.extend = function(r) { @@ -55377,9 +55418,9 @@ var MS = wt({ return n; }, t.initDefaultProps = function() { var r = t.prototype; - r.type = "path", r.strokeContainThreshold = 5, r.segmentIgnoreThreshold = 0, r.subPixelOptimize = !1, r.autoBatch = !1, r.__dirty = Fo | xg | jh; + r.type = "path", r.strokeContainThreshold = 5, r.segmentIgnoreThreshold = 0, r.subPixelOptimize = !1, r.autoBatch = !1, r.__dirty = Fo | Rg | jh; }(), t; -}(Ta), DIe = wt({ +}(Ta), HDe = xt({ strokeFirst: !0, font: Vc, x: 0, @@ -55387,7 +55428,7 @@ var MS = wt({ textAlign: "left", textBaseline: "top", miterLimit: 2 -}, MS), Nf = function(e) { +}, IS), $f = function(e) { dn(t, e); function t() { return e !== null && e.apply(this, arguments) || this; @@ -55399,7 +55440,7 @@ var MS = wt({ var r = this.style, n = r.fill; return n != null && n !== "none"; }, t.prototype.createStyle = function(r) { - return Wm(DIe, r); + return Km(HDe, r); }, t.prototype.setBoundingRect = function(r) { this._rect = r; }, t.prototype.getBoundingRect = function() { @@ -55407,7 +55448,7 @@ var MS = wt({ if (!this._rect) { var n = r.text; n != null ? n += "" : n = ""; - var i = Km(n, r.font, r.textAlign, r.textBaseline); + var i = Xm(n, r.font, r.textAlign, r.textBaseline); if (i.x += r.x || 0, i.y += r.y || 0, this.hasStroke()) { var o = r.lineWidth; i.x -= o / 2, i.y -= o / 2, i.width += o, i.height += o; @@ -55420,12 +55461,12 @@ var MS = wt({ r.dirtyRectTolerance = 10; }(), t; }(Ta); -Nf.prototype.type = "tspan"; -var IIe = wt({ +$f.prototype.type = "tspan"; +var zDe = xt({ x: 0, y: 0 -}, dd), AIe = { - style: wt({ +}, dd), GDe = { + style: xt({ x: !0, y: !0, width: !0, @@ -55436,21 +55477,21 @@ var IIe = wt({ sHeight: !0 }, Lw.style) }; -function OIe(e) { +function WDe(e) { return !!(e && typeof e != "string" && e.width && e.height); } -var hY = function(e) { +var gY = function(e) { dn(t, e); function t() { return e !== null && e.apply(this, arguments) || this; } return t.prototype.createStyle = function(r) { - return Wm(IIe, r); + return Km(zDe, r); }, t.prototype._getSize = function(r) { var n = this.style, i = n[r]; if (i != null) return i; - var o = OIe(n.image) ? n.image : this.__image; + var o = WDe(n.image) ? n.image : this.__image; if (!o) return 0; var a = r === "width" ? "height" : "width", s = n[a]; @@ -55460,22 +55501,22 @@ var hY = function(e) { }, t.prototype.getHeight = function() { return this._getSize("height"); }, t.prototype.getAnimationStyleProps = function() { - return AIe; + return GDe; }, t.prototype.getBoundingRect = function() { var r = this.style; - return this._rect || (this._rect = new Kt(r.x || 0, r.y || 0, this.getWidth(), this.getHeight())), this._rect; + return this._rect || (this._rect = new Yt(r.x || 0, r.y || 0, this.getWidth(), this.getHeight())), this._rect; }, t; }(Ta); -hY.prototype.type = "image"; -const yi = hY; -function LIe(e, t) { +gY.prototype.type = "image"; +const Ci = gY; +function jDe(e, t) { var r = t.x, n = t.y, i = t.width, o = t.height, a = t.r, s, l, c, u; i < 0 && (r = r + i, i = -i), o < 0 && (n = n + o, o = -o), typeof a == "number" ? s = l = c = u = a : a instanceof Array ? a.length === 1 ? s = l = c = u = a[0] : a.length === 2 ? (s = c = a[0], l = u = a[1]) : a.length === 3 ? (s = a[0], l = u = a[1], c = a[2]) : (s = a[0], l = a[1], c = a[2], u = a[3]) : s = l = c = u = 0; var d; s + l > i && (d = s + l, s *= i / d, l *= i / d), c + u > i && (d = c + u, c *= i / d, u *= i / d), l + c > o && (d = l + c, l *= o / d, c *= o / d), s + u > o && (d = s + u, s *= o / d, u *= o / d), e.moveTo(r + s, n), e.lineTo(r + i - l, n), l !== 0 && e.arc(r + i - l, n + l, l, -Math.PI / 2, 0), e.lineTo(r + i, n + o - c), c !== 0 && e.arc(r + i - c, n + o - c, c, 0, Math.PI / 2), e.lineTo(r + u, n + o), u !== 0 && e.arc(r + u, n + o - u, u, Math.PI / 2, Math.PI), e.lineTo(r, n + s), s !== 0 && e.arc(r + s, n + s, s, Math.PI, Math.PI * 1.5); } var rf = Math.round; -function fY(e, t, r) { +function vY(e, t, r) { if (t) { var n = t.x1, i = t.x2, o = t.y1, a = t.y2; e.x1 = n, e.x2 = i, e.y1 = o, e.y2 = a; @@ -55483,7 +55524,7 @@ function fY(e, t, r) { return s && (rf(n * 2) === rf(i * 2) && (e.x1 = e.x2 = ed(n, s, !0)), rf(o * 2) === rf(a * 2) && (e.y1 = e.y2 = ed(o, s, !0))), e; } } -function pY(e, t, r) { +function mY(e, t, r) { if (t) { var n = t.x, i = t.y, o = t.width, a = t.height; e.x = n, e.y = i, e.width = o, e.height = a; @@ -55497,36 +55538,36 @@ function ed(e, t, r) { var n = rf(e * 2); return (n + rf(t)) % 2 === 0 ? n / 2 : (n + (r ? 1 : -1)) / 2; } -var FIe = /* @__PURE__ */ function() { +var UDe = /* @__PURE__ */ function() { function e() { this.x = 0, this.y = 0, this.width = 0, this.height = 0; } return e; -}(), NIe = {}, gY = function(e) { +}(), KDe = {}, yY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; } return t.prototype.getDefaultShape = function() { - return new FIe(); + return new UDe(); }, t.prototype.buildPath = function(r, n) { var i, o, a, s; if (this.subPixelOptimize) { - var l = pY(NIe, n, this.style); + var l = mY(KDe, n, this.style); i = l.x, o = l.y, a = l.width, s = l.height, l.r = n.r, n = l; } else i = n.x, o = n.y, a = n.width, s = n.height; - n.r ? LIe(r, n) : r.rect(i, o, a, s); + n.r ? jDe(r, n) : r.rect(i, o, a, s); }, t.prototype.isZeroArea = function() { return !this.shape.width || !this.shape.height; }, t; }(nr); -gY.prototype.type = "rect"; -const mr = gY; -var i8 = { +yY.prototype.type = "rect"; +const mr = yY; +var a8 = { fill: "#000" -}, o8 = 2, kIe = { - style: wt({ +}, s8 = 2, YDe = { + style: xt({ fill: !0, stroke: !0, fillOpacity: !0, @@ -55546,11 +55587,11 @@ var i8 = { borderWidth: !0, borderRadius: !0 }, Lw.style) -}, vY = function(e) { +}, CY = function(e) { dn(t, e); function t(r) { var n = e.call(this) || this; - return n.type = "text", n._children = [], n._defaultStyle = i8, n.attr(r), n; + return n.type = "text", n._children = [], n._defaultStyle = a8, n.attr(r), n; } return t.prototype.childrenRef = function() { return this._children; @@ -55569,7 +55610,7 @@ var i8 = { }, t.prototype.getComputedTransform = function() { return this.__hostTarget && (this.__hostTarget.getComputedTransform(), this.__hostTarget.updateInnerText(!0)), e.prototype.getComputedTransform.call(this); }, t.prototype._updateSubTexts = function() { - this._childCursor = 0, VIe(this.style), this.style.rich ? this._updateRichTexts() : this._updatePlainTexts(), this._children.length = this._childCursor, this.styleUpdated(); + this._childCursor = 0, ZDe(this.style), this.style.rich ? this._updateRichTexts() : this._updatePlainTexts(), this._children.length = this._childCursor, this.styleUpdated(); }, t.prototype.addSelfToZr = function(r) { e.prototype.addSelfToZr.call(this, r); for (var n = 0; n < this._children.length; n++) @@ -55580,7 +55621,7 @@ var i8 = { this._children[n].__zr = null; }, t.prototype.getBoundingRect = function() { if (this.styleChanged() && this._updateSubTexts(), !this._rect) { - for (var r = new Kt(0, 0, 0, 0), n = this._children, i = [], o = null, a = 0; a < n.length; a++) { + for (var r = new Yt(0, 0, 0, 0), n = this._children, i = [], o = null, a = 0; a < n.length; a++) { var s = n[a], l = s.getBoundingRect(), c = s.getLocalTransform(i); c ? (r.copy(l), r.applyTransform(c), o = o || r.clone(), o.union(r)) : (o = o || l.clone(), o.union(l)); } @@ -55588,7 +55629,7 @@ var i8 = { } return this._rect; }, t.prototype.setDefaultTextStyle = function(r) { - this._defaultStyle = r || i8; + this._defaultStyle = r || a8; }, t.prototype.setTextContent = function(r) { if (process.env.NODE_ENV !== "production") throw new Error("Can't attach text on another text"); @@ -55603,23 +55644,23 @@ var i8 = { r[a] = r[a] || {}, Pe(r[a], n[a]); } }, t.prototype.getAnimationStyleProps = function() { - return kIe; + return YDe; }, t.prototype._getOrCreateChild = function(r) { var n = this._children[this._childCursor]; return (!n || !(n instanceof r)) && (n = new r()), this._children[this._childCursor++] = n, n.__zr = this.__zr, n.parent = this, n; }, t.prototype._updatePlainTexts = function() { - var r = this.style, n = r.font || Vc, i = r.padding, o = h8(r), a = aIe(o, r), s = cE(r), l = !!r.backgroundColor, c = a.outerHeight, u = a.outerWidth, d = a.contentWidth, h = a.lines, f = a.lineHeight, p = this._defaultStyle, g = r.x || 0, v = r.y || 0, m = r.align || p.align || "left", y = r.verticalAlign || p.verticalAlign || "top", C = g, b = Uh(v, a.contentHeight, y); + var r = this.style, n = r.font || Vc, i = r.padding, o = p8(r), a = mDe(o, r), s = cE(r), l = !!r.backgroundColor, c = a.outerHeight, u = a.outerWidth, d = a.contentWidth, h = a.lines, f = a.lineHeight, p = this._defaultStyle, g = r.x || 0, v = r.y || 0, m = r.align || p.align || "left", y = r.verticalAlign || p.verticalAlign || "top", C = g, b = Uh(v, a.contentHeight, y); if (s || i) { - var w = Rg(g, u, m), x = Uh(v, c, y); + var w = Tg(g, u, m), x = Uh(v, c, y); s && this._renderBackground(r, r, w, x, u, c); } - b += f / 2, i && (C = d8(g, m, i), y === "top" ? b += i[0] : y === "bottom" && (b -= i[2])); - for (var E = 0, R = !1, P = u8("fill" in r ? r.fill : (R = !0, p.fill)), T = c8("stroke" in r ? r.stroke : !l && (!p.autoStroke || R) ? (E = o8, p.stroke) : null), _ = r.textShadowBlur > 0, D = r.width != null && (r.overflow === "truncate" || r.overflow === "break" || r.overflow === "breakAll"), A = a.calculatedLineHeight, M = 0; M < h.length; M++) { - var O = this._getOrCreateChild(Nf), L = O.createStyle(); - O.useStyle(L), L.text = h[M], L.x = C, L.y = b, m && (L.textAlign = m), L.textBaseline = "middle", L.opacity = r.opacity, L.strokeFirst = !0, _ && (L.shadowBlur = r.textShadowBlur || 0, L.shadowColor = r.textShadowColor || "transparent", L.shadowOffsetX = r.textShadowOffsetX || 0, L.shadowOffsetY = r.textShadowOffsetY || 0), L.stroke = T, L.fill = P, T && (L.lineWidth = r.lineWidth || E, L.lineDash = r.lineDash, L.lineDashOffset = r.lineDashOffset || 0), L.font = n, s8(L, r), b += f, D && O.setBoundingRect(new Kt(Rg(L.x, r.width, L.textAlign), Uh(L.y, A, L.textBaseline), d, A)); + b += f / 2, i && (C = f8(g, m, i), y === "top" ? b += i[0] : y === "bottom" && (b -= i[2])); + for (var E = 0, R = !1, P = h8("fill" in r ? r.fill : (R = !0, p.fill)), T = d8("stroke" in r ? r.stroke : !l && (!p.autoStroke || R) ? (E = s8, p.stroke) : null), _ = r.textShadowBlur > 0, D = r.width != null && (r.overflow === "truncate" || r.overflow === "break" || r.overflow === "breakAll"), A = a.calculatedLineHeight, M = 0; M < h.length; M++) { + var O = this._getOrCreateChild($f), L = O.createStyle(); + O.useStyle(L), L.text = h[M], L.x = C, L.y = b, m && (L.textAlign = m), L.textBaseline = "middle", L.opacity = r.opacity, L.strokeFirst = !0, _ && (L.shadowBlur = r.textShadowBlur || 0, L.shadowColor = r.textShadowColor || "transparent", L.shadowOffsetX = r.textShadowOffsetX || 0, L.shadowOffsetY = r.textShadowOffsetY || 0), L.stroke = T, L.fill = P, T && (L.lineWidth = r.lineWidth || E, L.lineDash = r.lineDash, L.lineDashOffset = r.lineDashOffset || 0), L.font = n, c8(L, r), b += f, D && O.setBoundingRect(new Yt(Tg(L.x, r.width, L.textAlign), Uh(L.y, A, L.textBaseline), d, A)); } }, t.prototype._updateRichTexts = function() { - var r = this.style, n = h8(r), i = cIe(n, r), o = i.width, a = i.outerWidth, s = i.outerHeight, l = r.padding, c = r.x || 0, u = r.y || 0, d = this._defaultStyle, h = r.align || d.align, f = r.verticalAlign || d.verticalAlign, p = Rg(c, a, h), g = Uh(u, s, f), v = p, m = g; + var r = this.style, n = p8(r), i = SDe(n, r), o = i.width, a = i.outerWidth, s = i.outerHeight, l = r.padding, c = r.x || 0, u = r.y || 0, d = this._defaultStyle, h = r.align || d.align, f = r.verticalAlign || d.verticalAlign, p = Tg(c, a, h), g = Uh(u, s, f), v = p, m = g; l && (v += l[3], m += l[0]); var y = v + o; cE(r) && this._renderBackground(r, r, p, g, a, s); @@ -55640,13 +55681,13 @@ var i8 = { var h = !r.isLineHolder && cE(c); h && this._renderBackground(c, n, s === "right" ? a - r.width : s === "center" ? a - r.width / 2 : a, d - r.height / 2, r.width, r.height); var f = !!c.backgroundColor, p = r.textPadding; - p && (a = d8(a, s, p), d -= r.height / 2 - p[0] - r.innerHeight / 2); - var g = this._getOrCreateChild(Nf), v = g.createStyle(); + p && (a = f8(a, s, p), d -= r.height / 2 - p[0] - r.innerHeight / 2); + var g = this._getOrCreateChild($f), v = g.createStyle(); g.useStyle(v); - var m = this._defaultStyle, y = !1, C = 0, b = u8("fill" in c ? c.fill : "fill" in n ? n.fill : (y = !0, m.fill)), w = c8("stroke" in c ? c.stroke : "stroke" in n ? n.stroke : !f && !l && (!m.autoStroke || y) ? (C = o8, m.stroke) : null), x = c.textShadowBlur > 0 || n.textShadowBlur > 0; - v.text = r.text, v.x = a, v.y = d, x && (v.shadowBlur = c.textShadowBlur || n.textShadowBlur || 0, v.shadowColor = c.textShadowColor || n.textShadowColor || "transparent", v.shadowOffsetX = c.textShadowOffsetX || n.textShadowOffsetX || 0, v.shadowOffsetY = c.textShadowOffsetY || n.textShadowOffsetY || 0), v.textAlign = s, v.textBaseline = "middle", v.font = r.font || Vc, v.opacity = Go(c.opacity, n.opacity, 1), s8(v, c), w && (v.lineWidth = Go(c.lineWidth, n.lineWidth, C), v.lineDash = $t(c.lineDash, n.lineDash), v.lineDashOffset = n.lineDashOffset || 0, v.stroke = w), b && (v.fill = b); + var m = this._defaultStyle, y = !1, C = 0, b = h8("fill" in c ? c.fill : "fill" in n ? n.fill : (y = !0, m.fill)), w = d8("stroke" in c ? c.stroke : "stroke" in n ? n.stroke : !f && !l && (!m.autoStroke || y) ? (C = s8, m.stroke) : null), x = c.textShadowBlur > 0 || n.textShadowBlur > 0; + v.text = r.text, v.x = a, v.y = d, x && (v.shadowBlur = c.textShadowBlur || n.textShadowBlur || 0, v.shadowColor = c.textShadowColor || n.textShadowColor || "transparent", v.shadowOffsetX = c.textShadowOffsetX || n.textShadowOffsetX || 0, v.shadowOffsetY = c.textShadowOffsetY || n.textShadowOffsetY || 0), v.textAlign = s, v.textBaseline = "middle", v.font = r.font || Vc, v.opacity = Go(c.opacity, n.opacity, 1), c8(v, c), w && (v.lineWidth = Go(c.lineWidth, n.lineWidth, C), v.lineDash = $t(c.lineDash, n.lineDash), v.lineDashOffset = n.lineDashOffset || 0, v.stroke = w), b && (v.fill = b); var E = r.contentWidth, R = r.contentHeight; - g.setBoundingRect(new Kt(Rg(v.x, E, v.textAlign), Uh(v.y, R, v.textBaseline), E, R)); + g.setBoundingRect(new Yt(Tg(v.x, E, v.textAlign), Uh(v.y, R, v.textBaseline), E, R)); }, t.prototype._renderBackground = function(r, n, i, o, a, s) { var l = r.backgroundColor, c = r.borderWidth, u = r.borderColor, d = l && l.image, h = l && !d, f = r.borderRadius, p = this, g, v; if (h || r.lineHeight || c && u) { @@ -55658,7 +55699,7 @@ var i8 = { var y = g.style; y.fill = l || null, y.fillOpacity = $t(r.fillOpacity, 1); } else if (d) { - v = this._getOrCreateChild(yi), v.onload = function() { + v = this._getOrCreateChild(Ci), v.onload = function() { p.dirtyStyle(); }; var C = v.style; @@ -55672,57 +55713,57 @@ var i8 = { b.shadowBlur = r.shadowBlur || 0, b.shadowColor = r.shadowColor || "transparent", b.shadowOffsetX = r.shadowOffsetX || 0, b.shadowOffsetY = r.shadowOffsetY || 0, b.opacity = Go(r.opacity, n.opacity, 1); }, t.makeFont = function(r) { var n = ""; - return yY(r) && (n = [ + return bY(r) && (n = [ r.fontStyle, r.fontWeight, - mY(r.fontSize), + SY(r.fontSize), r.fontFamily || "sans-serif" ].join(" ")), n && ga(n) || r.textFont || r.font; }, t; -}(Ta), $Ie = { left: !0, right: 1, center: 1 }, BIe = { top: 1, bottom: 1, middle: 1 }, a8 = ["fontStyle", "fontWeight", "fontSize", "fontFamily"]; -function mY(e) { - return typeof e == "string" && (e.indexOf("px") !== -1 || e.indexOf("rem") !== -1 || e.indexOf("em") !== -1) ? e : isNaN(+e) ? C2 + "px" : e + "px"; +}(Ta), qDe = { left: !0, right: 1, center: 1 }, XDe = { top: 1, bottom: 1, middle: 1 }, l8 = ["fontStyle", "fontWeight", "fontSize", "fontFamily"]; +function SY(e) { + return typeof e == "string" && (e.indexOf("px") !== -1 || e.indexOf("rem") !== -1 || e.indexOf("em") !== -1) ? e : isNaN(+e) ? CI + "px" : e + "px"; } -function s8(e, t) { - for (var r = 0; r < a8.length; r++) { - var n = a8[r], i = t[n]; +function c8(e, t) { + for (var r = 0; r < l8.length; r++) { + var n = l8[r], i = t[n]; i != null && (e[n] = i); } } -function yY(e) { +function bY(e) { return e.fontSize != null || e.fontFamily || e.fontWeight; } -function VIe(e) { - return l8(e), z(e.rich, l8), e; +function ZDe(e) { + return u8(e), z(e.rich, u8), e; } -function l8(e) { +function u8(e) { if (e) { - e.font = vY.makeFont(e); + e.font = CY.makeFont(e); var t = e.align; - t === "middle" && (t = "center"), e.align = t == null || $Ie[t] ? t : "left"; + t === "middle" && (t = "center"), e.align = t == null || qDe[t] ? t : "left"; var r = e.verticalAlign; - r === "center" && (r = "middle"), e.verticalAlign = r == null || BIe[r] ? r : "top"; + r === "center" && (r = "middle"), e.verticalAlign = r == null || XDe[r] ? r : "top"; var n = e.padding; n && (e.padding = Ew(e.padding)); } } -function c8(e, t) { +function d8(e, t) { return e == null || t <= 0 || e === "transparent" || e === "none" ? null : e.image || e.colorStops ? "#000" : e; } -function u8(e) { +function h8(e) { return e == null || e === "none" ? null : e.image || e.colorStops ? "#000" : e; } -function d8(e, t, r) { +function f8(e, t, r) { return t === "right" ? e - r[1] : t === "center" ? e + r[3] / 2 - r[1] / 2 : e + r[3]; } -function h8(e) { +function p8(e) { var t = e.text; return t != null && (t += ""), t; } function cE(e) { return !!(e.backgroundColor || e.lineHeight || e.borderWidth && e.borderColor); } -const vr = vY; +const vr = CY; var Ft = yr(), z_ = function(e, t, r, n) { if (n) { var i = Ft(n); @@ -55731,55 +55772,55 @@ var Ft = yr(), z_ = function(e, t, r, n) { a.seriesIndex = e, a.dataIndex = r, a.dataType = t, a.ssrType = "chart"; }); } -}, f8 = 1, p8 = {}, CY = yr(), V2 = yr(), H2 = 0, Xm = 1, Nw = 2, no = ["emphasis", "blur", "select"], Kv = ["normal", "emphasis", "blur", "select"], dp = 10, HIe = 9, hd = "highlight", EC = "downplay", iv = "select", RC = "unselect", ov = "toggleSelect"; +}, g8 = 1, v8 = {}, wY = yr(), VI = yr(), HI = 0, Jm = 1, Nw = 2, no = ["emphasis", "blur", "select"], qv = ["normal", "emphasis", "blur", "select"], fp = 10, QDe = 9, hd = "highlight", TC = "downplay", av = "select", _C = "unselect", sv = "toggleSelect"; function bh(e) { return e != null && e !== "none"; } function kw(e, t, r) { e.onHoverStateChange && (e.hoverState || 0) !== r && e.onHoverStateChange(t), e.hoverState = r; } -function SY(e) { +function xY(e) { kw(e, "emphasis", Nw); } -function bY(e) { - e.hoverState === Nw && kw(e, "normal", H2); +function EY(e) { + e.hoverState === Nw && kw(e, "normal", HI); } -function z2(e) { - kw(e, "blur", Xm); +function zI(e) { + kw(e, "blur", Jm); } -function wY(e) { - e.hoverState === Xm && kw(e, "normal", H2); +function RY(e) { + e.hoverState === Jm && kw(e, "normal", HI); } -function zIe(e) { +function JDe(e) { e.selected = !0; } -function GIe(e) { +function eIe(e) { e.selected = !1; } -function g8(e, t, r) { +function m8(e, t, r) { t(e, r); } function Zl(e, t, r) { - g8(e, t, r), e.isGroup && e.traverse(function(n) { - g8(n, t, r); + m8(e, t, r), e.isGroup && e.traverse(function(n) { + m8(n, t, r); }); } -function DS(e, t) { +function AS(e, t) { switch (t) { case "emphasis": e.hoverState = Nw; break; case "normal": - e.hoverState = H2; + e.hoverState = HI; break; case "blur": - e.hoverState = Xm; + e.hoverState = Jm; break; case "select": e.selected = !0; } } -function WIe(e, t, r, n) { +function tIe(e, t, r, n) { for (var i = e.style, o = {}, a = 0; a < t.length; a++) { var s = t[a], l = i[s]; o[s] = l ?? (n && n[s]); @@ -55790,33 +55831,33 @@ function WIe(e, t, r, n) { } return o; } -function jIe(e, t, r, n) { - var i = r && Yt(r, "select") >= 0, o = !1; +function rIe(e, t, r, n) { + var i = r && qt(r, "select") >= 0, o = !1; if (e instanceof nr) { - var a = CY(e), s = i && a.selectFill || a.normalFill, l = i && a.selectStroke || a.normalStroke; + var a = wY(e), s = i && a.selectFill || a.normalFill, l = i && a.selectStroke || a.normalStroke; if (bh(s) || bh(l)) { n = n || {}; var c = n.style || {}; - c.fill === "inherit" ? (o = !0, n = Pe({}, n), c = Pe({}, c), c.fill = s) : !bh(c.fill) && bh(s) ? (o = !0, n = Pe({}, n), c = Pe({}, c), c.fill = ES(s)) : !bh(c.stroke) && bh(l) && (o || (n = Pe({}, n), c = Pe({}, c)), c.stroke = ES(l)), n.style = c; + c.fill === "inherit" ? (o = !0, n = Pe({}, n), c = Pe({}, c), c.fill = s) : !bh(c.fill) && bh(s) ? (o = !0, n = Pe({}, n), c = Pe({}, c), c.fill = PS(s)) : !bh(c.stroke) && bh(l) && (o || (n = Pe({}, n), c = Pe({}, c)), c.stroke = PS(l)), n.style = c; } } if (n && n.z2 == null) { o || (n = Pe({}, n)); var u = e.z2EmphasisLift; - n.z2 = e.z2 + (u ?? dp); + n.z2 = e.z2 + (u ?? fp); } return n; } -function UIe(e, t, r) { +function nIe(e, t, r) { if (r && r.z2 == null) { r = Pe({}, r); var n = e.z2SelectLift; - r.z2 = e.z2 + (n ?? HIe); + r.z2 = e.z2 + (n ?? QDe); } return r; } -function KIe(e, t, r) { - var n = Yt(e.currentStates, t) >= 0, i = e.style.opacity, o = n ? null : WIe(e, ["opacity"], t, { +function iIe(e, t, r) { + var n = qt(e.currentStates, t) >= 0, i = e.style.opacity, o = n ? null : tIe(e, ["opacity"], t, { opacity: 1 }); r = r || {}; @@ -55830,11 +55871,11 @@ function uE(e, t) { var r = this.states[e]; if (this.style) { if (e === "emphasis") - return jIe(this, e, t, r); + return rIe(this, e, t, r); if (e === "blur") - return KIe(this, e, r); + return iIe(this, e, r); if (e === "select") - return UIe(this, e, r); + return nIe(this, e, r); } return r; } @@ -55843,39 +55884,39 @@ function Ad(e) { var t = e.getTextContent(), r = e.getTextGuideLine(); t && (t.stateProxy = uE), r && (r.stateProxy = uE); } -function v8(e, t) { - !PY(e, t) && !e.__highByOuter && Zl(e, SY); -} -function m8(e, t) { - !PY(e, t) && !e.__highByOuter && Zl(e, bY); +function y8(e, t) { + !MY(e, t) && !e.__highByOuter && Zl(e, xY); } -function Vl(e, t) { - e.__highByOuter |= 1 << (t || 0), Zl(e, SY); +function C8(e, t) { + !MY(e, t) && !e.__highByOuter && Zl(e, EY); } function Hl(e, t) { - !(e.__highByOuter &= ~(1 << (t || 0))) && Zl(e, bY); + e.__highByOuter |= 1 << (t || 0), Zl(e, xY); } -function xY(e) { - Zl(e, z2); +function zl(e, t) { + !(e.__highByOuter &= ~(1 << (t || 0))) && Zl(e, EY); } -function G2(e) { - Zl(e, wY); +function PY(e) { + Zl(e, zI); } -function EY(e) { - Zl(e, zIe); +function GI(e) { + Zl(e, RY); } -function RY(e) { - Zl(e, GIe); +function TY(e) { + Zl(e, JDe); } -function PY(e, t) { +function _Y(e) { + Zl(e, eIe); +} +function MY(e, t) { return e.__highDownSilentOnTouch && t.zrByTouch; } -function TY(e) { +function DY(e) { var t = e.getModel(), r = [], n = []; t.eachComponent(function(i, o) { - var a = V2(o), s = i === "series", l = s ? e.getViewOfSeriesModel(o) : e.getViewOfComponentModel(o); + var a = VI(o), s = i === "series", l = s ? e.getViewOfSeriesModel(o) : e.getViewOfComponentModel(o); !s && n.push(l), a.isBlured && (l.group.traverse(function(c) { - wY(c); + RY(c); }), s && r.push(o)), a.isBlured = !1; }), z(n, function(i) { i && i.toggleBlurSeries && i.toggleBlurSeries(r, !1, t); @@ -55887,7 +55928,7 @@ function G_(e, t, r, n) { function o(c, u) { for (var d = 0; d < u.length; d++) { var h = c.getItemGraphicEl(u[d]); - h && G2(h); + h && GI(h); } } if (e != null && !(!t || t === "none")) { @@ -55902,13 +55943,13 @@ function G_(e, t, r, n) { (r === "series" && !u || r === "coordinateSystem" && !h || t === "series" && u)) { var f = n.getViewOfSeriesModel(c); if (f.group.traverse(function(v) { - v.__highByOuter && u && t === "self" || z2(v); - }), wi(t)) + v.__highByOuter && u && t === "self" || zI(v); + }), xi(t)) o(c.getData(), t); - else if (St(t)) + else if (bt(t)) for (var p = ar(t), g = 0; g < p.length; g++) o(c.getData(p[g]), t[p[g]]); - l.push(c), V2(c).isBlured = !0; + l.push(c), VI(c).isBlured = !0; } }), i.eachComponent(function(c, u) { if (c !== "series") { @@ -55922,22 +55963,22 @@ function W_(e, t, r) { if (!(e == null || t == null)) { var n = r.getModel().getComponent(e, t); if (n) { - V2(n).isBlured = !0; + VI(n).isBlured = !0; var i = r.getViewOfComponentModel(n); !i || !i.focusBlurEnabled || i.group.traverse(function(o) { - z2(o); + zI(o); }); } } } -function YIe(e, t, r) { +function oIe(e, t, r) { var n = e.seriesIndex, i = e.getData(t.dataType); if (!i) { - process.env.NODE_ENV !== "production" && xi("Unknown dataType " + t.dataType); + process.env.NODE_ENV !== "production" && Ei("Unknown dataType " + t.dataType); return; } var o = Dd(i, t); - o = (Ie(o) ? o[0] : o) || 0; + o = (Ae(o) ? o[0] : o) || 0; var a = i.getItemGraphicEl(o); if (!a) for (var s = i.count(), l = 0; !a && l < s; ) @@ -55950,7 +55991,7 @@ function YIe(e, t, r) { u != null && G_(n, u, d, r); } } -function W2(e, t, r, n) { +function WI(e, t, r, n) { var i = { focusSelf: !1, dispatchers: null @@ -55964,7 +56005,7 @@ function W2(e, t, r, n) { if (!a || !a.findHighDownDispatchers) return i; for (var s = a.findHighDownDispatchers(r), l, c = 0; c < s.length; c++) - if (process.env.NODE_ENV !== "production" && !Wc(s[c]) && xi("param should be highDownDispatcher"), Ft(s[c]).focus === "self") { + if (process.env.NODE_ENV !== "production" && !Wc(s[c]) && Ei("param should be highDownDispatcher"), Ft(s[c]).focus === "self") { l = !0; break; } @@ -55973,36 +56014,36 @@ function W2(e, t, r, n) { dispatchers: s }; } -function qIe(e, t, r) { - process.env.NODE_ENV !== "production" && !Wc(e) && xi("param should be highDownDispatcher"); - var n = Ft(e), i = W2(n.componentMainType, n.componentIndex, n.componentHighDownName, r), o = i.dispatchers, a = i.focusSelf; +function aIe(e, t, r) { + process.env.NODE_ENV !== "production" && !Wc(e) && Ei("param should be highDownDispatcher"); + var n = Ft(e), i = WI(n.componentMainType, n.componentIndex, n.componentHighDownName, r), o = i.dispatchers, a = i.focusSelf; o ? (a && W_(n.componentMainType, n.componentIndex, r), z(o, function(s) { - return v8(s, t); - })) : (G_(n.seriesIndex, n.focus, n.blurScope, r), n.focus === "self" && W_(n.componentMainType, n.componentIndex, r), v8(e, t)); + return y8(s, t); + })) : (G_(n.seriesIndex, n.focus, n.blurScope, r), n.focus === "self" && W_(n.componentMainType, n.componentIndex, r), y8(e, t)); } -function XIe(e, t, r) { - process.env.NODE_ENV !== "production" && !Wc(e) && xi("param should be highDownDispatcher"), TY(r); - var n = Ft(e), i = W2(n.componentMainType, n.componentIndex, n.componentHighDownName, r).dispatchers; +function sIe(e, t, r) { + process.env.NODE_ENV !== "production" && !Wc(e) && Ei("param should be highDownDispatcher"), DY(r); + var n = Ft(e), i = WI(n.componentMainType, n.componentIndex, n.componentHighDownName, r).dispatchers; i ? z(i, function(o) { - return m8(o, t); - }) : m8(e, t); + return C8(o, t); + }) : C8(e, t); } -function ZIe(e, t, r) { +function lIe(e, t, r) { if (U_(t)) { var n = t.dataType, i = e.getData(n), o = Dd(i, t); - Ie(o) || (o = [o]), e[t.type === ov ? "toggleSelect" : t.type === iv ? "select" : "unselect"](o, n); + Ae(o) || (o = [o]), e[t.type === sv ? "toggleSelect" : t.type === av ? "select" : "unselect"](o, n); } } -function y8(e) { +function S8(e) { var t = e.getAllData(); z(t, function(r) { var n = r.data, i = r.type; n.eachItemGraphicEl(function(o, a) { - e.isSelected(a, i) ? EY(o) : RY(o); + e.isSelected(a, i) ? TY(o) : _Y(o); }); }); } -function QIe(e) { +function cIe(e) { var t = []; return e.eachSeries(function(r) { var n = r.getAllData(); @@ -56022,26 +56063,26 @@ function QIe(e) { function Mc(e, t, r) { td(e, !0), Zl(e, Ad), j_(e, t, r); } -function JIe(e) { +function uIe(e) { td(e, !1); } function Rn(e, t, r, n) { - n ? JIe(e) : Mc(e, t, r); + n ? uIe(e) : Mc(e, t, r); } function j_(e, t, r) { var n = Ft(e); t != null ? (n.focus = t, n.blurScope = r) : n.focus && (n.focus = null); } -var C8 = ["emphasis", "blur", "select"], e2e = { +var b8 = ["emphasis", "blur", "select"], dIe = { itemStyle: "getItemStyle", lineStyle: "getLineStyle", areaStyle: "getAreaStyle" }; -function Ei(e, t, r, n) { +function Ri(e, t, r, n) { r = r || "itemStyle"; - for (var i = 0; i < C8.length; i++) { - var o = C8[i], a = t.getModel([o, r]), s = e.ensureState(o); - s.style = n ? n(a) : a[e2e[r]](); + for (var i = 0; i < b8.length; i++) { + var o = b8[i], a = t.getModel([o, r]), s = e.ensureState(o); + s.style = n ? n(a) : a[dIe[r]](); } } function td(e, t) { @@ -56051,30 +56092,30 @@ function td(e, t) { function Wc(e) { return !!(e && e.__highDownDispatcher); } -function t2e(e, t, r) { +function hIe(e, t, r) { var n = Ft(e); n.componentMainType = t.mainType, n.componentIndex = t.componentIndex, n.componentHighDownName = r; } -function r2e(e) { - var t = p8[e]; - return t == null && f8 <= 32 && (t = p8[e] = f8++), t; +function fIe(e) { + var t = v8[e]; + return t == null && g8 <= 32 && (t = v8[e] = g8++), t; } function U_(e) { var t = e.type; - return t === iv || t === RC || t === ov; + return t === av || t === _C || t === sv; } -function S8(e) { +function w8(e) { var t = e.type; - return t === hd || t === EC; + return t === hd || t === TC; } -function n2e(e) { - var t = CY(e); +function pIe(e) { + var t = wY(e); t.normalFill = e.style.fill, t.normalStroke = e.style.stroke; var r = e.states.select || {}; t.selectFill = r.style && r.style.fill || null, t.selectStroke = r.style && r.style.stroke || null; } -var wh = Ys.CMD, i2e = [[], [], []], b8 = Math.sqrt, o2e = Math.atan2; -function _Y(e, t) { +var wh = Ys.CMD, gIe = [[], [], []], x8 = Math.sqrt, vIe = Math.atan2; +function IY(e, t) { if (t) { var r = e.data, n = e.len(), i, o, a, s, l, c, u = wh.M, d = wh.C, h = wh.L, f = wh.R, p = wh.A, g = wh.Q; for (a = 0, s = 0; a < n; ) { @@ -56092,50 +56133,50 @@ function _Y(e, t) { o = 2; break; case p: - var v = t[4], m = t[5], y = b8(t[0] * t[0] + t[1] * t[1]), C = b8(t[2] * t[2] + t[3] * t[3]), b = o2e(-t[1] / C, t[0] / y); + var v = t[4], m = t[5], y = x8(t[0] * t[0] + t[1] * t[1]), C = x8(t[2] * t[2] + t[3] * t[3]), b = vIe(-t[1] / C, t[0] / y); r[a] *= y, r[a++] += v, r[a] *= C, r[a++] += m, r[a++] *= y, r[a++] *= C, r[a++] += b, r[a++] += b, a += 2, s = a; break; case f: - c[0] = r[a++], c[1] = r[a++], gi(c, c, t), r[s++] = c[0], r[s++] = c[1], c[0] += r[a++], c[1] += r[a++], gi(c, c, t), r[s++] = c[0], r[s++] = c[1]; + c[0] = r[a++], c[1] = r[a++], vi(c, c, t), r[s++] = c[0], r[s++] = c[1], c[0] += r[a++], c[1] += r[a++], vi(c, c, t), r[s++] = c[0], r[s++] = c[1]; } for (l = 0; l < o; l++) { - var w = i2e[l]; - w[0] = r[a++], w[1] = r[a++], gi(w, w, t), r[s++] = w[0], r[s++] = w[1]; + var w = gIe[l]; + w[0] = r[a++], w[1] = r[a++], vi(w, w, t), r[s++] = w[0], r[s++] = w[1]; } } e.increaseVersion(); } } -var dE = Math.sqrt, n0 = Math.sin, i0 = Math.cos, qp = Math.PI; -function w8(e) { +var dE = Math.sqrt, a0 = Math.sin, s0 = Math.cos, Zp = Math.PI; +function E8(e) { return Math.sqrt(e[0] * e[0] + e[1] * e[1]); } function K_(e, t) { - return (e[0] * t[0] + e[1] * t[1]) / (w8(e) * w8(t)); + return (e[0] * t[0] + e[1] * t[1]) / (E8(e) * E8(t)); } -function x8(e, t) { +function R8(e, t) { return (e[0] * t[1] < e[1] * t[0] ? -1 : 1) * Math.acos(K_(e, t)); } -function E8(e, t, r, n, i, o, a, s, l, c, u) { - var d = l * (qp / 180), h = i0(d) * (e - r) / 2 + n0(d) * (t - n) / 2, f = -1 * n0(d) * (e - r) / 2 + i0(d) * (t - n) / 2, p = h * h / (a * a) + f * f / (s * s); +function P8(e, t, r, n, i, o, a, s, l, c, u) { + var d = l * (Zp / 180), h = s0(d) * (e - r) / 2 + a0(d) * (t - n) / 2, f = -1 * a0(d) * (e - r) / 2 + s0(d) * (t - n) / 2, p = h * h / (a * a) + f * f / (s * s); p > 1 && (a *= dE(p), s *= dE(p)); - var g = (i === o ? -1 : 1) * dE((a * a * (s * s) - a * a * (f * f) - s * s * (h * h)) / (a * a * (f * f) + s * s * (h * h))) || 0, v = g * a * f / s, m = g * -s * h / a, y = (e + r) / 2 + i0(d) * v - n0(d) * m, C = (t + n) / 2 + n0(d) * v + i0(d) * m, b = x8([1, 0], [(h - v) / a, (f - m) / s]), w = [(h - v) / a, (f - m) / s], x = [(-1 * h - v) / a, (-1 * f - m) / s], E = x8(w, x); - if (K_(w, x) <= -1 && (E = qp), K_(w, x) >= 1 && (E = 0), E < 0) { - var R = Math.round(E / qp * 1e6) / 1e6; - E = qp * 2 + R % 2 * qp; + var g = (i === o ? -1 : 1) * dE((a * a * (s * s) - a * a * (f * f) - s * s * (h * h)) / (a * a * (f * f) + s * s * (h * h))) || 0, v = g * a * f / s, m = g * -s * h / a, y = (e + r) / 2 + s0(d) * v - a0(d) * m, C = (t + n) / 2 + a0(d) * v + s0(d) * m, b = R8([1, 0], [(h - v) / a, (f - m) / s]), w = [(h - v) / a, (f - m) / s], x = [(-1 * h - v) / a, (-1 * f - m) / s], E = R8(w, x); + if (K_(w, x) <= -1 && (E = Zp), K_(w, x) >= 1 && (E = 0), E < 0) { + var R = Math.round(E / Zp * 1e6) / 1e6; + E = Zp * 2 + R % 2 * Zp; } u.addData(c, y, C, a, s, b, E, d, o); } -var a2e = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig, s2e = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g; -function l2e(e) { +var mIe = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig, yIe = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g; +function CIe(e) { var t = new Ys(); if (!e) return t; - var r = 0, n = 0, i = r, o = n, a, s = Ys.CMD, l = e.match(a2e); + var r = 0, n = 0, i = r, o = n, a, s = Ys.CMD, l = e.match(mIe); if (!l) return t; for (var c = 0; c < l.length; c++) { - for (var u = l[c], d = u.charAt(0), h = void 0, f = u.match(s2e) || [], p = f.length, g = 0; g < p; g++) + for (var u = l[c], d = u.charAt(0), h = void 0, f = u.match(yIe) || [], p = f.length, g = 0; g < p; g++) f[g] = parseFloat(f[g]); for (var v = 0; v < p; ) { var m = void 0, y = void 0, C = void 0, b = void 0, w = void 0, x = void 0, E = void 0, R = r, P = n, T = void 0, _ = void 0; @@ -56189,10 +56230,10 @@ function l2e(e) { m = r, y = n, T = t.len(), _ = t.data, a === s.Q && (m += r - _[T - 4], y += n - _[T - 3]), r += f[v++], n += f[v++], h = s.Q, t.addData(h, m, y, r, n); break; case "A": - C = f[v++], b = f[v++], w = f[v++], x = f[v++], E = f[v++], R = r, P = n, r = f[v++], n = f[v++], h = s.A, E8(R, P, r, n, x, E, C, b, w, h, t); + C = f[v++], b = f[v++], w = f[v++], x = f[v++], E = f[v++], R = r, P = n, r = f[v++], n = f[v++], h = s.A, P8(R, P, r, n, x, E, C, b, w, h, t); break; case "a": - C = f[v++], b = f[v++], w = f[v++], x = f[v++], E = f[v++], R = r, P = n, r += f[v++], n += f[v++], h = s.A, E8(R, P, r, n, x, E, C, b, w, h, t); + C = f[v++], b = f[v++], w = f[v++], x = f[v++], E = f[v++], R = r, P = n, r += f[v++], n += f[v++], h = s.A, P8(R, P, r, n, x, E, C, b, w, h, t); break; } } @@ -56200,7 +56241,7 @@ function l2e(e) { } return t.toStatic(), t; } -var MY = function(e) { +var AY = function(e) { dn(t, e); function t() { return e !== null && e.apply(this, arguments) || this; @@ -56208,13 +56249,13 @@ var MY = function(e) { return t.prototype.applyTransform = function(r) { }, t; }(nr); -function DY(e) { +function OY(e) { return e.setData != null; } -function IY(e, t) { - var r = l2e(e), n = Pe({}, t); +function LY(e, t) { + var r = CIe(e), n = Pe({}, t); return n.buildPath = function(i) { - if (DY(i)) { + if (OY(i)) { i.setData(r.data); var o = i.getContext(); o && i.rebuildPath(o, 1); @@ -56223,87 +56264,87 @@ function IY(e, t) { r.rebuildPath(o, 1); } }, n.applyTransform = function(i) { - _Y(r, i), this.dirtyShape(); + IY(r, i), this.dirtyShape(); }, n; } -function AY(e, t) { - return new MY(IY(e, t)); +function FY(e, t) { + return new AY(LY(e, t)); } -function c2e(e, t) { - var r = IY(e, t), n = function(i) { +function SIe(e, t) { + var r = LY(e, t), n = function(i) { dn(o, i); function o(a) { var s = i.call(this, a) || this; return s.applyTransform = r.applyTransform, s.buildPath = r.buildPath, s; } return o; - }(MY); + }(AY); return n; } -function u2e(e, t) { +function bIe(e, t) { for (var r = [], n = e.length, i = 0; i < n; i++) { var o = e[i]; r.push(o.getUpdatedPathProxy(!0)); } var a = new nr(t); return a.createPathProxy(), a.buildPath = function(s) { - if (DY(s)) { + if (OY(s)) { s.appendPath(r); var l = s.getContext(); l && s.rebuildPath(l, 1); } }, a; } -function j2(e, t) { +function jI(e, t) { t = t || {}; var r = new nr(); - return e.shape && r.setShape(e.shape), r.setStyle(e.style), t.bakeTransform ? _Y(r.path, e.getComputedTransform()) : t.toLocal ? r.setLocalTransform(e.getComputedTransform()) : r.copyTransform(e), r.buildPath = e.buildPath, r.applyTransform = r.applyTransform, r.z = e.z, r.z2 = e.z2, r.zlevel = e.zlevel, r; + return e.shape && r.setShape(e.shape), r.setStyle(e.style), t.bakeTransform ? IY(r.path, e.getComputedTransform()) : t.toLocal ? r.setLocalTransform(e.getComputedTransform()) : r.copyTransform(e), r.buildPath = e.buildPath, r.applyTransform = r.applyTransform, r.z = e.z, r.z2 = e.z2, r.zlevel = e.zlevel, r; } -var d2e = /* @__PURE__ */ function() { +var wIe = /* @__PURE__ */ function() { function e() { this.cx = 0, this.cy = 0, this.r = 0; } return e; -}(), OY = function(e) { +}(), NY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; } return t.prototype.getDefaultShape = function() { - return new d2e(); + return new wIe(); }, t.prototype.buildPath = function(r, n) { r.moveTo(n.cx + n.r, n.cy), r.arc(n.cx, n.cy, n.r, 0, Math.PI * 2); }, t; }(nr); -OY.prototype.type = "circle"; -const Ql = OY; -var h2e = /* @__PURE__ */ function() { +NY.prototype.type = "circle"; +const Ql = NY; +var xIe = /* @__PURE__ */ function() { function e() { this.cx = 0, this.cy = 0, this.rx = 0, this.ry = 0; } return e; -}(), LY = function(e) { +}(), kY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; } return t.prototype.getDefaultShape = function() { - return new h2e(); + return new xIe(); }, t.prototype.buildPath = function(r, n) { var i = 0.5522848, o = n.cx, a = n.cy, s = n.rx, l = n.ry, c = s * i, u = l * i; r.moveTo(o - s, a), r.bezierCurveTo(o - s, a - u, o - c, a - l, o, a - l), r.bezierCurveTo(o + c, a - l, o + s, a - u, o + s, a), r.bezierCurveTo(o + s, a + u, o + c, a + l, o, a + l), r.bezierCurveTo(o - c, a + l, o - s, a + u, o - s, a), r.closePath(); }, t; }(nr); -LY.prototype.type = "ellipse"; -const $w = LY; -var FY = Math.PI, hE = FY * 2, bu = Math.sin, xh = Math.cos, f2e = Math.acos, Ti = Math.atan2, R8 = Math.abs, av = Math.sqrt, Tg = Math.max, vs = Math.min, Ba = 1e-4; -function p2e(e, t, r, n, i, o, a, s) { +kY.prototype.type = "ellipse"; +const $w = kY; +var $Y = Math.PI, hE = $Y * 2, bu = Math.sin, xh = Math.cos, EIe = Math.acos, Ti = Math.atan2, T8 = Math.abs, lv = Math.sqrt, Mg = Math.max, vs = Math.min, Ba = 1e-4; +function RIe(e, t, r, n, i, o, a, s) { var l = r - e, c = n - t, u = a - i, d = s - o, h = d * l - u * c; if (!(h * h < Ba)) return h = (u * (t - o) - d * (e - i)) / h, [e + h * l, t + h * c]; } -function o0(e, t, r, n, i, o, a) { - var s = e - r, l = t - n, c = (a ? o : -o) / av(s * s + l * l), u = c * l, d = -c * s, h = e + u, f = t + d, p = r + u, g = n + d, v = (h + p) / 2, m = (f + g) / 2, y = p - h, C = g - f, b = y * y + C * C, w = i - o, x = h * g - p * f, E = (C < 0 ? -1 : 1) * av(Tg(0, w * w * b - x * x)), R = (x * C - y * E) / b, P = (-x * y - C * E) / b, T = (x * C + y * E) / b, _ = (-x * y + C * E) / b, D = R - v, A = P - m, M = T - v, O = _ - m; +function l0(e, t, r, n, i, o, a) { + var s = e - r, l = t - n, c = (a ? o : -o) / lv(s * s + l * l), u = c * l, d = -c * s, h = e + u, f = t + d, p = r + u, g = n + d, v = (h + p) / 2, m = (f + g) / 2, y = p - h, C = g - f, b = y * y + C * C, w = i - o, x = h * g - p * f, E = (C < 0 ? -1 : 1) * lv(Mg(0, w * w * b - x * x)), R = (x * C - y * E) / b, P = (-x * y - C * E) / b, T = (x * C + y * E) / b, _ = (-x * y + C * E) / b, D = R - v, A = P - m, M = T - v, O = _ - m; return D * D + A * A > M * M + O * O && (R = T, P = _), { cx: R, cy: P, @@ -56313,9 +56354,9 @@ function o0(e, t, r, n, i, o, a) { y1: P * (i / w - 1) }; } -function g2e(e) { +function PIe(e) { var t; - if (Ie(e)) { + if (Ae(e)) { var r = e.length; if (!r) return e; @@ -56324,8 +56365,8 @@ function g2e(e) { t = [e, e, e, e]; return t; } -function v2e(e, t) { - var r, n = Tg(t.r, 0), i = Tg(t.r0 || 0, 0), o = n > 0, a = i > 0; +function TIe(e, t) { + var r, n = Mg(t.r, 0), i = Mg(t.r0 || 0, 0), o = n > 0, a = i > 0; if (!(!o && !a)) { if (o || (n = i, i = 0), i > n) { var s = n; @@ -56333,7 +56374,7 @@ function v2e(e, t) { } var l = t.startAngle, c = t.endAngle; if (!(isNaN(l) || isNaN(c))) { - var u = t.cx, d = t.cy, h = !!t.clockwise, f = R8(c - l), p = f > hE && f % hE; + var u = t.cx, d = t.cy, h = !!t.clockwise, f = T8(c - l), p = f > hE && f % hE; if (p > Ba && (f = p), !(n > Ba)) e.moveTo(u, d); else if (f > hE - Ba) @@ -56342,12 +56383,12 @@ function v2e(e, t) { var g = void 0, v = void 0, m = void 0, y = void 0, C = void 0, b = void 0, w = void 0, x = void 0, E = void 0, R = void 0, P = void 0, T = void 0, _ = void 0, D = void 0, A = void 0, M = void 0, O = n * xh(l), L = n * bu(l), N = i * xh(c), F = i * bu(c), $ = f > Ba; if ($) { var I = t.cornerRadius; - I && (r = g2e(I), g = r[0], v = r[1], m = r[2], y = r[3]); - var V = R8(n - i) / 2; - if (C = vs(V, m), b = vs(V, y), w = vs(V, g), x = vs(V, v), P = E = Tg(C, b), T = R = Tg(w, x), (E > Ba || R > Ba) && (_ = n * xh(c), D = n * bu(c), A = i * xh(l), M = i * bu(l), f < FY)) { - var H = p2e(O, L, A, M, _, D, N, F); + I && (r = PIe(I), g = r[0], v = r[1], m = r[2], y = r[3]); + var V = T8(n - i) / 2; + if (C = vs(V, m), b = vs(V, y), w = vs(V, g), x = vs(V, v), P = E = Mg(C, b), T = R = Mg(w, x), (E > Ba || R > Ba) && (_ = n * xh(c), D = n * bu(c), A = i * xh(l), M = i * bu(l), f < $Y)) { + var H = RIe(O, L, A, M, _, D, N, F); if (H) { - var B = O - H[0], W = L - H[1], j = _ - H[0], X = D - H[1], q = 1 / bu(f2e((B * j + W * X) / (av(B * B + W * W) * av(j * j + X * X))) / 2), J = av(H[0] * H[0] + H[1] * H[1]); + var B = O - H[0], W = L - H[1], j = _ - H[0], X = D - H[1], q = 1 / bu(EIe((B * j + W * X) / (lv(B * B + W * W) * lv(j * j + X * X))) / 2), J = lv(H[0] * H[0] + H[1] * H[1]); P = vs(E, (n - J) / (q + 1)), T = vs(R, (i - J) / (q - 1)); } } @@ -56355,15 +56396,15 @@ function v2e(e, t) { if (!$) e.moveTo(u + O, d + L); else if (P > Ba) { - var te = vs(m, P), Q = vs(y, P), Y = o0(A, M, O, L, n, te, h), K = o0(_, D, N, F, n, Q, h); - e.moveTo(u + Y.cx + Y.x0, d + Y.cy + Y.y0), P < E && te === Q ? e.arc(u + Y.cx, d + Y.cy, P, Ti(Y.y0, Y.x0), Ti(K.y0, K.x0), !h) : (te > 0 && e.arc(u + Y.cx, d + Y.cy, te, Ti(Y.y0, Y.x0), Ti(Y.y1, Y.x1), !h), e.arc(u, d, n, Ti(Y.cy + Y.y1, Y.cx + Y.x1), Ti(K.cy + K.y1, K.cx + K.x1), !h), Q > 0 && e.arc(u + K.cx, d + K.cy, Q, Ti(K.y1, K.x1), Ti(K.y0, K.x0), !h)); + var re = vs(m, P), Q = vs(y, P), Y = l0(A, M, O, L, n, re, h), K = l0(_, D, N, F, n, Q, h); + e.moveTo(u + Y.cx + Y.x0, d + Y.cy + Y.y0), P < E && re === Q ? e.arc(u + Y.cx, d + Y.cy, P, Ti(Y.y0, Y.x0), Ti(K.y0, K.x0), !h) : (re > 0 && e.arc(u + Y.cx, d + Y.cy, re, Ti(Y.y0, Y.x0), Ti(Y.y1, Y.x1), !h), e.arc(u, d, n, Ti(Y.cy + Y.y1, Y.cx + Y.x1), Ti(K.cy + K.y1, K.cx + K.x1), !h), Q > 0 && e.arc(u + K.cx, d + K.cy, Q, Ti(K.y1, K.x1), Ti(K.y0, K.x0), !h)); } else e.moveTo(u + O, d + L), e.arc(u, d, n, l, c, !h); if (!(i > Ba) || !$) e.lineTo(u + N, d + F); else if (T > Ba) { - var te = vs(g, T), Q = vs(v, T), Y = o0(N, F, _, D, i, -Q, h), K = o0(O, L, A, M, i, -te, h); - e.lineTo(u + Y.cx + Y.x0, d + Y.cy + Y.y0), T < R && te === Q ? e.arc(u + Y.cx, d + Y.cy, T, Ti(Y.y0, Y.x0), Ti(K.y0, K.x0), !h) : (Q > 0 && e.arc(u + Y.cx, d + Y.cy, Q, Ti(Y.y0, Y.x0), Ti(Y.y1, Y.x1), !h), e.arc(u, d, i, Ti(Y.cy + Y.y1, Y.cx + Y.x1), Ti(K.cy + K.y1, K.cx + K.x1), h), te > 0 && e.arc(u + K.cx, d + K.cy, te, Ti(K.y1, K.x1), Ti(K.y0, K.x0), !h)); + var re = vs(g, T), Q = vs(v, T), Y = l0(N, F, _, D, i, -Q, h), K = l0(O, L, A, M, i, -re, h); + e.lineTo(u + Y.cx + Y.x0, d + Y.cy + Y.y0), T < R && re === Q ? e.arc(u + Y.cx, d + Y.cy, T, Ti(Y.y0, Y.x0), Ti(K.y0, K.x0), !h) : (Q > 0 && e.arc(u + Y.cx, d + Y.cy, Q, Ti(Y.y0, Y.x0), Ti(Y.y1, Y.x1), !h), e.arc(u, d, i, Ti(Y.cy + Y.y1, Y.cx + Y.x1), Ti(K.cy + K.y1, K.cx + K.x1), h), re > 0 && e.arc(u + K.cx, d + K.cy, re, Ti(K.y1, K.x1), Ti(K.y0, K.x0), !h)); } else e.lineTo(u + N, d + F), e.arc(u, d, i, c, l, h); } @@ -56371,52 +56412,52 @@ function v2e(e, t) { } } } -var m2e = /* @__PURE__ */ function() { +var _Ie = /* @__PURE__ */ function() { function e() { this.cx = 0, this.cy = 0, this.r0 = 0, this.r = 0, this.startAngle = 0, this.endAngle = Math.PI * 2, this.clockwise = !0, this.cornerRadius = 0; } return e; -}(), NY = function(e) { +}(), BY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; } return t.prototype.getDefaultShape = function() { - return new m2e(); + return new _Ie(); }, t.prototype.buildPath = function(r, n) { - v2e(r, n); + TIe(r, n); }, t.prototype.isZeroArea = function() { return this.shape.startAngle === this.shape.endAngle || this.shape.r === this.shape.r0; }, t; }(nr); -NY.prototype.type = "sector"; -const io = NY; -var y2e = /* @__PURE__ */ function() { +BY.prototype.type = "sector"; +const io = BY; +var MIe = /* @__PURE__ */ function() { function e() { this.cx = 0, this.cy = 0, this.r = 0, this.r0 = 0; } return e; -}(), kY = function(e) { +}(), VY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; } return t.prototype.getDefaultShape = function() { - return new y2e(); + return new MIe(); }, t.prototype.buildPath = function(r, n) { var i = n.cx, o = n.cy, a = Math.PI * 2; r.moveTo(i + n.r, o), r.arc(i, o, n.r, 0, a, !1), r.moveTo(i + n.r0, o), r.arc(i, o, n.r0, 0, a, !0); }, t; }(nr); -kY.prototype.type = "ring"; -const Zm = kY; -function C2e(e, t, r, n) { +VY.prototype.type = "ring"; +const ey = VY; +function DIe(e, t, r, n) { var i = [], o = [], a = [], s = [], l, c, u, d; if (n) { u = [1 / 0, 1 / 0], d = [-1 / 0, -1 / 0]; for (var h = 0, f = e.length; h < f; h++) - xl(u, u, e[h]), El(d, d, e[h]); - xl(u, u, n[0]), El(d, d, n[1]); + El(u, u, e[h]), Rl(d, d, e[h]); + El(u, u, n[0]), Rl(d, d, n[1]); } for (var h = 0, f = e.length; h < f; h++) { var p = e[h]; @@ -56427,19 +56468,19 @@ function C2e(e, t, r, n) { continue; } else l = e[h - 1], c = e[h + 1]; - Cc(o, c, l), Zg(o, o, t); - var g = CS(p, l), v = CS(p, c), m = g + v; - m !== 0 && (g /= m, v /= m), Zg(a, o, -g), Zg(s, o, v); + Cc(o, c, l), Jg(o, o, t); + var g = bS(p, l), v = bS(p, c), m = g + v; + m !== 0 && (g /= m, v /= m), Jg(a, o, -g), Jg(s, o, v); var y = m_([], p, a), C = m_([], p, s); - n && (El(y, y, u), xl(y, y, d), El(C, C, u), xl(C, C, d)), i.push(y), i.push(C); + n && (Rl(y, y, u), El(y, y, d), Rl(C, C, u), El(C, C, d)), i.push(y), i.push(C); } return r && i.push(i.shift()), i; } -function $Y(e, t, r) { +function HY(e, t, r) { var n = t.smooth, i = t.points; if (i && i.length >= 2) { if (n) { - var o = C2e(i, n, r, t.smoothConstraint); + var o = DIe(i, n, r, t.smoothConstraint); e.moveTo(i[0][0], i[0][1]); for (var a = i.length, s = 0; s < (r ? a : a - 1); s++) { var l = o[s * 2], c = o[s * 2 + 1], u = i[(s + 1) % a]; @@ -56453,30 +56494,30 @@ function $Y(e, t, r) { r && e.closePath(); } } -var S2e = /* @__PURE__ */ function() { +var IIe = /* @__PURE__ */ function() { function e() { this.points = null, this.smooth = 0, this.smoothConstraint = null; } return e; -}(), BY = function(e) { +}(), zY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; } return t.prototype.getDefaultShape = function() { - return new S2e(); + return new IIe(); }, t.prototype.buildPath = function(r, n) { - $Y(r, n, !0); + HY(r, n, !0); }, t; }(nr); -BY.prototype.type = "polygon"; -const oo = BY; -var b2e = /* @__PURE__ */ function() { +zY.prototype.type = "polygon"; +const oo = zY; +var AIe = /* @__PURE__ */ function() { function e() { this.points = null, this.percent = 1, this.smooth = 0, this.smoothConstraint = null; } return e; -}(), VY = function(e) { +}(), GY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; @@ -56487,19 +56528,19 @@ var b2e = /* @__PURE__ */ function() { fill: null }; }, t.prototype.getDefaultShape = function() { - return new b2e(); + return new AIe(); }, t.prototype.buildPath = function(r, n) { - $Y(r, n, !1); + HY(r, n, !1); }, t; }(nr); -VY.prototype.type = "polyline"; -const ao = VY; -var w2e = {}, x2e = /* @__PURE__ */ function() { +GY.prototype.type = "polyline"; +const ao = GY; +var OIe = {}, LIe = /* @__PURE__ */ function() { function e() { this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1; } return e; -}(), HY = function(e) { +}(), WY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; @@ -56510,11 +56551,11 @@ var w2e = {}, x2e = /* @__PURE__ */ function() { fill: null }; }, t.prototype.getDefaultShape = function() { - return new x2e(); + return new LIe(); }, t.prototype.buildPath = function(r, n) { var i, o, a, s; if (this.subPixelOptimize) { - var l = fY(w2e, n, this.style); + var l = vY(OIe, n, this.style); i = l.x1, o = l.y1, a = l.x2, s = l.y2; } else i = n.x1, o = n.y1, a = n.x2, s = n.y2; @@ -56528,25 +56569,25 @@ var w2e = {}, x2e = /* @__PURE__ */ function() { ]; }, t; }(nr); -HY.prototype.type = "line"; -const ri = HY; -var lo = [], E2e = /* @__PURE__ */ function() { +WY.prototype.type = "line"; +const ri = WY; +var lo = [], FIe = /* @__PURE__ */ function() { function e() { this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.cpx1 = 0, this.cpy1 = 0, this.percent = 1; } return e; }(); -function P8(e, t, r) { +function _8(e, t, r) { var n = e.cpx2, i = e.cpy2; return n != null || i != null ? [ - (r ? D4 : ti)(e.x1, e.cpx1, e.cpx2, e.x2, t), - (r ? D4 : ti)(e.y1, e.cpy1, e.cpy2, e.y2, t) + (r ? A4 : ti)(e.x1, e.cpx1, e.cpx2, e.x2, t), + (r ? A4 : ti)(e.y1, e.cpy1, e.cpy2, e.y2, t) ] : [ - (r ? w_ : fi)(e.x1, e.cpx1, e.x2, t), - (r ? w_ : fi)(e.y1, e.cpy1, e.y2, t) + (r ? w_ : pi)(e.x1, e.cpx1, e.x2, t), + (r ? w_ : pi)(e.y1, e.cpy1, e.y2, t) ]; } -var zY = function(e) { +var jY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; @@ -56557,25 +56598,25 @@ var zY = function(e) { fill: null }; }, t.prototype.getDefaultShape = function() { - return new E2e(); + return new FIe(); }, t.prototype.buildPath = function(r, n) { var i = n.x1, o = n.y1, a = n.x2, s = n.y2, l = n.cpx1, c = n.cpy1, u = n.cpx2, d = n.cpy2, h = n.percent; - h !== 0 && (r.moveTo(i, o), u == null || d == null ? (h < 1 && (zv(i, l, a, h, lo), l = lo[1], a = lo[2], zv(o, c, s, h, lo), c = lo[1], s = lo[2]), r.quadraticCurveTo(l, c, a, s)) : (h < 1 && (Gc(i, l, u, a, h, lo), l = lo[1], u = lo[2], a = lo[3], Gc(o, c, d, s, h, lo), c = lo[1], d = lo[2], s = lo[3]), r.bezierCurveTo(l, c, u, d, a, s))); + h !== 0 && (r.moveTo(i, o), u == null || d == null ? (h < 1 && (Wv(i, l, a, h, lo), l = lo[1], a = lo[2], Wv(o, c, s, h, lo), c = lo[1], s = lo[2]), r.quadraticCurveTo(l, c, a, s)) : (h < 1 && (Gc(i, l, u, a, h, lo), l = lo[1], u = lo[2], a = lo[3], Gc(o, c, d, s, h, lo), c = lo[1], d = lo[2], s = lo[3]), r.bezierCurveTo(l, c, u, d, a, s))); }, t.prototype.pointAt = function(r) { - return P8(this.shape, r, !1); + return _8(this.shape, r, !1); }, t.prototype.tangentAt = function(r) { - var n = P8(this.shape, r, !0); + var n = _8(this.shape, r, !0); return jd(n, n); }, t; }(nr); -zY.prototype.type = "bezier-curve"; -const Qm = zY; -var R2e = /* @__PURE__ */ function() { +jY.prototype.type = "bezier-curve"; +const ty = jY; +var NIe = /* @__PURE__ */ function() { function e() { this.cx = 0, this.cy = 0, this.r = 0, this.startAngle = 0, this.endAngle = Math.PI * 2, this.clockwise = !0; } return e; -}(), GY = function(e) { +}(), UY = function(e) { dn(t, e); function t(r) { return e.call(this, r) || this; @@ -56586,15 +56627,15 @@ var R2e = /* @__PURE__ */ function() { fill: null }; }, t.prototype.getDefaultShape = function() { - return new R2e(); + return new NIe(); }, t.prototype.buildPath = function(r, n) { var i = n.cx, o = n.cy, a = Math.max(n.r, 0), s = n.startAngle, l = n.endAngle, c = n.clockwise, u = Math.cos(s), d = Math.sin(s); r.moveTo(u * a + i, d * a + o), r.arc(i, o, a, s, l, !c); }, t; }(nr); -GY.prototype.type = "arc"; -const Bw = GY; -var P2e = function(e) { +UY.prototype.type = "arc"; +const Bw = UY; +var kIe = function(e) { dn(t, e); function t() { var r = e !== null && e.apply(this, arguments) || this; @@ -56618,8 +56659,8 @@ var P2e = function(e) { return this._updatePathDirty.call(this), nr.prototype.getBoundingRect.call(this); }, t; }(nr); -const Vw = P2e; -var WY = function() { +const Vw = kIe; +var KY = function() { function e(t) { this.colorStops = t || []; } @@ -56629,31 +56670,31 @@ var WY = function() { color: r }); }, e; -}(), T2e = function(e) { +}(), $Ie = function(e) { dn(t, e); function t(r, n, i, o, a, s) { var l = e.call(this, a) || this; return l.x = r ?? 0, l.y = n ?? 0, l.x2 = i ?? 1, l.y2 = o ?? 0, l.type = "linear", l.global = s || !1, l; } return t; -}(WY); -const hp = T2e; -var _2e = function(e) { +}(KY); +const pp = $Ie; +var BIe = function(e) { dn(t, e); function t(r, n, i, o, a) { var s = e.call(this, o) || this; return s.x = r ?? 0.5, s.y = n ?? 0.5, s.r = i ?? 0.5, s.type = "radial", s.global = a || !1, s; } return t; -}(WY); -const U2 = _2e; -var wu = [0, 0], xu = [0, 0], a0 = new Ut(), s0 = new Ut(), M2e = function() { +}(KY); +const UI = BIe; +var wu = [0, 0], xu = [0, 0], c0 = new Kt(), u0 = new Kt(), VIe = function() { function e(t, r) { this._corners = [], this._axes = [], this._origin = [0, 0]; for (var n = 0; n < 4; n++) - this._corners[n] = new Ut(); + this._corners[n] = new Kt(); for (var n = 0; n < 2; n++) - this._axes[n] = new Ut(); + this._axes[n] = new Kt(); t && this.fromBoundingRect(t, r); } return e.prototype.fromBoundingRect = function(t, r) { @@ -56661,12 +56702,12 @@ var wu = [0, 0], xu = [0, 0], a0 = new Ut(), s0 = new Ut(), M2e = function() { if (n[0].set(o, a), n[1].set(s, a), n[2].set(s, l), n[3].set(o, l), r) for (var c = 0; c < 4; c++) n[c].transform(r); - Ut.sub(i[0], n[1], n[0]), Ut.sub(i[1], n[3], n[0]), i[0].normalize(), i[1].normalize(); + Kt.sub(i[0], n[1], n[0]), Kt.sub(i[1], n[3], n[0]), i[0].normalize(), i[1].normalize(); for (var c = 0; c < 2; c++) this._origin[c] = i[c].dot(n[0]); }, e.prototype.intersect = function(t, r) { var n = !0, i = !r; - return a0.set(1 / 0, 1 / 0), s0.set(0, 0), !this._intersectCheckOneSide(this, t, a0, s0, i, 1) && (n = !1, i) || !this._intersectCheckOneSide(t, this, a0, s0, i, -1) && (n = !1, i) || i || Ut.copy(r, n ? a0 : s0), n; + return c0.set(1 / 0, 1 / 0), u0.set(0, 0), !this._intersectCheckOneSide(this, t, c0, u0, i, 1) && (n = !1, i) || !this._intersectCheckOneSide(t, this, c0, u0, i, -1) && (n = !1, i) || i || Kt.copy(r, n ? c0 : u0), n; }, e.prototype._intersectCheckOneSide = function(t, r, n, i, o, a) { for (var s = !0, l = 0; l < 2; l++) { var c = this._axes[l]; @@ -56674,10 +56715,10 @@ var wu = [0, 0], xu = [0, 0], a0 = new Ut(), s0 = new Ut(), M2e = function() { if (s = !1, o) return s; var u = Math.abs(xu[0] - wu[1]), d = Math.abs(wu[0] - xu[1]); - Math.min(u, d) > i.len() && (u < d ? Ut.scale(i, c, -u * a) : Ut.scale(i, c, d * a)); + Math.min(u, d) > i.len() && (u < d ? Kt.scale(i, c, -u * a) : Kt.scale(i, c, d * a)); } else if (n) { var u = Math.abs(xu[0] - wu[1]), d = Math.abs(wu[0] - xu[1]); - Math.min(u, d) < n.len() && (u < d ? Ut.scale(n, c, u * a) : Ut.scale(n, c, -d * a)); + Math.min(u, d) < n.len() && (u < d ? Kt.scale(n, c, u * a) : Kt.scale(n, c, -d * a)); } } return s; @@ -56689,8 +56730,8 @@ var wu = [0, 0], xu = [0, 0], a0 = new Ut(), s0 = new Ut(), M2e = function() { n[0] = s, n[1] = l; }, e; }(); -const IS = M2e; -var D2e = [], I2e = function(e) { +const OS = VIe; +var HIe = [], zIe = function(e) { dn(t, e); function t() { var r = e !== null && e.apply(this, arguments) || this; @@ -56735,9 +56776,9 @@ var D2e = [], I2e = function(e) { } }, t.prototype.getBoundingRect = function() { if (!this._rect) { - for (var r = new Kt(1 / 0, 1 / 0, -1 / 0, -1 / 0), n = 0; n < this._displayables.length; n++) { + for (var r = new Yt(1 / 0, 1 / 0, -1 / 0, -1 / 0), n = 0; n < this._displayables.length; n++) { var i = this._displayables[n], o = i.getBoundingRect().clone(); - i.needLocalTransform() && o.applyTransform(i.getLocalTransform(D2e)), r.union(o); + i.needLocalTransform() && o.applyTransform(i.getLocalTransform(HIe)), r.union(o); } this._rect = r; } @@ -56753,9 +56794,9 @@ var D2e = [], I2e = function(e) { return !1; }, t; }(Ta); -const jY = I2e; -var UY = yr(); -function fp(e, t, r, n, i) { +const YY = zIe; +var qY = yr(); +function gp(e, t, r, n, i) { var o; if (t && t.ecModel) { var a = t.ecModel.getUpdatePayload(); @@ -56764,7 +56805,7 @@ function fp(e, t, r, n, i) { var s = t && t.isAnimationEnabled(), l = e === "update"; if (s) { var c = void 0, u = void 0, d = void 0; - n ? (c = $t(n.duration, 200), u = $t(n.easing, "cubicOut"), d = 0) : (c = t.getShallow(l ? "animationDurationUpdate" : "animationDuration"), u = t.getShallow(l ? "animationEasingUpdate" : "animationEasing"), d = t.getShallow(l ? "animationDelayUpdate" : "animationDelay")), o && (o.duration != null && (c = o.duration), o.easing != null && (u = o.easing), o.delay != null && (d = o.delay)), vt(d) && (d = d(r, i)), vt(c) && (c = c(r)); + n ? (c = $t(n.duration, 200), u = $t(n.easing, "cubicOut"), d = 0) : (c = t.getShallow(l ? "animationDurationUpdate" : "animationDuration"), u = t.getShallow(l ? "animationEasingUpdate" : "animationEasing"), d = t.getShallow(l ? "animationDelayUpdate" : "animationDelay")), o && (o.duration != null && (c = o.duration), o.easing != null && (u = o.easing), o.delay != null && (d = o.delay)), mt(d) && (d = d(r, i)), mt(c) && (c = c(r)); var h = { duration: c || 0, delay: d, @@ -56774,12 +56815,12 @@ function fp(e, t, r, n, i) { } else return null; } -function K2(e, t, r, n, i, o, a) { +function KI(e, t, r, n, i, o, a) { var s = !1, l; - vt(i) ? (a = o, o = i, i = null) : St(i) && (o = i.cb, a = i.during, s = i.isFrom, l = i.removeOpt, i = i.dataIndex); + mt(i) ? (a = o, o = i, i = null) : bt(i) && (o = i.cb, a = i.during, s = i.isFrom, l = i.removeOpt, i = i.dataIndex); var c = e === "leave"; c || t.stopAnimation("leave"); - var u = fp(e, n, i, c ? l || {} : null, n && n.getAnimationDelayParams ? n.getAnimationDelayParams(t, i) : null); + var u = gp(e, n, i, c ? l || {} : null, n && n.getAnimationDelayParams ? n.getAnimationDelayParams(t, i) : null); if (u && u.duration > 0) { var d = u.duration, h = u.delay, f = u.easing, p = { duration: d, @@ -56798,10 +56839,10 @@ function K2(e, t, r, n, i, o, a) { t.stopAnimation(), !s && t.attr(r), a && a(1), o && o(); } function br(e, t, r, n, i, o) { - K2("update", e, t, r, n, i, o); + KI("update", e, t, r, n, i, o); } function un(e, t, r, n, i, o) { - K2("enter", e, t, r, n, i, o); + KI("enter", e, t, r, n, i, o); } function yf(e) { if (!e.__zr) @@ -56814,36 +56855,36 @@ function yf(e) { return !1; } function jc(e, t, r, n, i, o) { - yf(e) || K2("leave", e, t, r, n, i, o); + yf(e) || KI("leave", e, t, r, n, i, o); } -function T8(e, t, r, n) { +function M8(e, t, r, n) { e.removeTextContent(), e.removeTextGuideLine(), jc(e, { style: { opacity: 0 } }, t, r, n); } -function Yv(e, t, r) { +function Xv(e, t, r) { function n() { e.parent && e.parent.remove(e); } e.isGroup ? e.traverse(function(i) { - i.isGroup || T8(i, t, r, n); - }) : T8(e, t, r, n); + i.isGroup || M8(i, t, r, n); + }) : M8(e, t, r, n); } function ls(e) { - UY(e).oldStyle = e.style; + qY(e).oldStyle = e.style; } -function A2e(e) { - return UY(e).oldStyle; +function GIe(e) { + return qY(e).oldStyle; } -var AS = Math.max, OS = Math.min, Y_ = {}; -function KY(e) { +var LS = Math.max, FS = Math.min, Y_ = {}; +function XY(e) { return nr.extend(e); } -var O2e = c2e; -function YY(e, t) { - return O2e(e, t); +var WIe = SIe; +function ZY(e, t) { + return WIe(e, t); } function Ia(e, t) { Y_[e] = t; @@ -56852,12 +56893,12 @@ function Hw(e) { if (Y_.hasOwnProperty(e)) return Y_[e]; } -function Jm(e, t, r, n) { - var i = AY(e, t); - return r && (n === "center" && (r = qY(r, i.getBoundingRect())), q2(i, r)), i; +function ry(e, t, r, n) { + var i = FY(e, t); + return r && (n === "center" && (r = QY(r, i.getBoundingRect())), qI(i, r)), i; } -function Y2(e, t, r) { - var n = new yi({ +function YI(e, t, r) { + var n = new Ci({ style: { image: e, x: t.x, @@ -56871,13 +56912,13 @@ function Y2(e, t, r) { width: i.width, height: i.height }; - n.setStyle(qY(t, o)); + n.setStyle(QY(t, o)); } } }); return n; } -function qY(e, t) { +function QY(e, t) { var r = t.width / t.height, n = e.height * r, i; n <= e.width ? i = e.height : (n = e.width, i = n / r); var o = e.x + e.width / 2, a = e.y + e.height / 2; @@ -56888,47 +56929,47 @@ function qY(e, t) { height: i }; } -var No = u2e; -function q2(e, t) { +var No = bIe; +function qI(e, t) { if (e.applyTransform) { var r = e.getBoundingRect(), n = r.calculateTransform(t); e.applyTransform(n); } } -function kf(e, t) { - return fY(e, e, { +function Bf(e, t) { + return vY(e, e, { lineWidth: t }), e; } -function L2e(e) { - return pY(e.shape, e.shape, e.style), e; +function jIe(e) { + return mY(e.shape, e.shape, e.style), e; } -var PC = ed; +var MC = ed; function Dc(e, t) { - for (var r = jm([]); e && e !== t; ) + for (var r = Ym([]); e && e !== t; ) Bs(r, e.getLocalTransform(), r), e = e.parent; return r; } function es(e, t, r) { - return t && !wi(t) && (t = Rl.getLocalTransform(t)), r && (t = Ud([], t)), gi([], e, t); + return t && !xi(t) && (t = Pl.getLocalTransform(t)), r && (t = Ud([], t)), vi([], e, t); } function zw(e, t, r) { var n = t[4] === 0 || t[5] === 0 || t[0] === 0 ? 1 : Math.abs(2 * t[4] / t[0]), i = t[4] === 0 || t[5] === 0 || t[2] === 0 ? 1 : Math.abs(2 * t[4] / t[2]), o = [e === "left" ? -n : e === "right" ? n : 0, e === "top" ? -i : e === "bottom" ? i : 0]; return o = es(o, t, r), Math.abs(o[0]) > Math.abs(o[1]) ? o[0] > 0 ? "right" : "left" : o[1] > 0 ? "bottom" : "top"; } -function _8(e) { +function D8(e) { return !e.isGroup; } -function F2e(e) { +function UIe(e) { return e.shape != null; } -function ey(e, t, r) { +function ny(e, t, r) { if (!e || !t) return; function n(a) { var s = {}; return a.traverse(function(l) { - _8(l) && l.anid && (s[l.anid] = l); + D8(l) && l.anid && (s[l.anid] = l); }), s; } function i(a) { @@ -56937,11 +56978,11 @@ function ey(e, t, r) { y: a.y, rotation: a.rotation }; - return F2e(a) && (s.shape = Pe({}, a.shape)), s; + return UIe(a) && (s.shape = Pe({}, a.shape)), s; } var o = n(e); t.traverse(function(a) { - if (_8(a) && a.anid) { + if (D8(a) && a.anid) { var s = o[a.anid]; if (s) { var l = i(a); @@ -56950,16 +56991,16 @@ function ey(e, t, r) { } }); } -function X2(e, t) { +function XI(e, t) { return Fe(e, function(r) { var n = r[0]; - n = AS(n, t.x), n = OS(n, t.x + t.width); + n = LS(n, t.x), n = FS(n, t.x + t.width); var i = r[1]; - return i = AS(i, t.y), i = OS(i, t.y + t.height), [n, i]; + return i = LS(i, t.y), i = FS(i, t.y + t.height), [n, i]; }); } -function XY(e, t) { - var r = AS(e.x, t.x), n = OS(e.x + e.width, t.x + t.width), i = AS(e.y, t.y), o = OS(e.y + e.height, t.y + t.height); +function JY(e, t) { + var r = LS(e.x, t.x), n = FS(e.x + e.width, t.x + t.width), i = LS(e.y, t.y), o = FS(e.y + e.height, t.y + t.height); if (n >= r && o >= i) return { x: r, @@ -56968,7 +57009,7 @@ function XY(e, t) { height: o - i }; } -function pp(e, t, r) { +function vp(e, t, r) { var n = Pe({ rectHover: !0 }, t), i = n.style = { @@ -56980,19 +57021,19 @@ function pp(e, t, r) { width: 2, height: 2 }, e) - return e.indexOf("image://") === 0 ? (i.image = e.slice(8), wt(i, r), new yi(n)) : Jm(e.replace("path://", ""), n, r, "center"); + return e.indexOf("image://") === 0 ? (i.image = e.slice(8), xt(i, r), new Ci(n)) : ry(e.replace("path://", ""), n, r, "center"); } -function _g(e, t, r, n, i) { +function Dg(e, t, r, n, i) { for (var o = 0, a = i[i.length - 1]; o < i.length; o++) { var s = i[o]; - if (ZY(e, t, r, n, s[0], s[1], a[0], a[1])) + if (eq(e, t, r, n, s[0], s[1], a[0], a[1])) return !0; a = s; } } -function ZY(e, t, r, n, i, o, a, s) { +function eq(e, t, r, n, i, o, a, s) { var l = r - e, c = n - t, u = a - i, d = s - o, h = fE(u, d, l, c); - if (N2e(h)) + if (KIe(h)) return !1; var f = e - i, p = t - o, g = fE(f, p, l, c) / h; if (g < 0 || g > 1) @@ -57003,10 +57044,10 @@ function ZY(e, t, r, n, i, o, a, s) { function fE(e, t, r, n) { return e * n - r * t; } -function N2e(e) { +function KIe(e) { return e <= 1e-6 && e >= -1e-6; } -function gp(e) { +function mp(e) { var t = e.itemTooltipOption, r = e.componentModel, n = e.itemName, i = Je(t) ? { formatter: t } : t, o = r.mainType, a = r.componentIndex, s = { @@ -57022,88 +57063,88 @@ function gp(e) { var c = Ft(e.el); c.componentMainType = o, c.componentIndex = a, c.tooltipConfig = { name: n, - option: wt({ + option: xt({ content: n, encodeHTMLContent: !0, formatterParams: s }, i) }; } -function M8(e, t) { +function I8(e, t) { var r; e.isGroup && (r = t(e)), r || e.traverse(t); } function tu(e, t) { if (e) - if (Ie(e)) + if (Ae(e)) for (var r = 0; r < e.length; r++) - M8(e[r], t); + I8(e[r], t); else - M8(e, t); + I8(e, t); } Ia("circle", Ql); Ia("ellipse", $w); Ia("sector", io); -Ia("ring", Zm); +Ia("ring", ey); Ia("polygon", oo); Ia("polyline", ao); Ia("rect", mr); Ia("line", ri); -Ia("bezierCurve", Qm); +Ia("bezierCurve", ty); Ia("arc", Bw); const Kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Arc: Bw, - BezierCurve: Qm, - BoundingRect: Kt, + BezierCurve: ty, + BoundingRect: Yt, Circle: Ql, CompoundPath: Vw, Ellipse: $w, Group: Ot, - Image: yi, - IncrementalDisplayable: jY, + Image: Ci, + IncrementalDisplayable: YY, Line: ri, - LinearGradient: hp, - OrientedBoundingRect: IS, + LinearGradient: pp, + OrientedBoundingRect: OS, Path: nr, - Point: Ut, + Point: Kt, Polygon: oo, Polyline: ao, - RadialGradient: U2, + RadialGradient: UI, Rect: mr, - Ring: Zm, + Ring: ey, Sector: io, Text: vr, applyTransform: es, - clipPointsByRect: X2, - clipRectByRect: XY, - createIcon: pp, - extendPath: YY, - extendShape: KY, + clipPointsByRect: XI, + clipRectByRect: JY, + createIcon: vp, + extendPath: ZY, + extendShape: XY, getShapeClass: Hw, getTransform: Dc, - groupTransition: ey, + groupTransition: ny, initProps: un, isElementRemoved: yf, - lineLineIntersect: ZY, - linePolygonIntersect: _g, - makeImage: Y2, - makePath: Jm, + lineLineIntersect: eq, + linePolygonIntersect: Dg, + makeImage: YI, + makePath: ry, mergePath: No, registerShape: Ia, removeElement: jc, - removeElementWithFadeOut: Yv, - resizePath: q2, - setTooltipConfig: gp, - subPixelOptimize: PC, - subPixelOptimizeLine: kf, - subPixelOptimizeRect: L2e, + removeElementWithFadeOut: Xv, + resizePath: qI, + setTooltipConfig: mp, + subPixelOptimize: MC, + subPixelOptimizeLine: Bf, + subPixelOptimizeRect: jIe, transformDirection: zw, traverseElements: tu, updateProps: br }, Symbol.toStringTag, { value: "Module" })); var Gw = {}; -function QY(e, t) { +function tq(e, t) { for (var r = 0; r < no.length; r++) { var n = no[r], i = t[n], o = e.ensureState(n); o.style = o.style || {}, o.style.text = i; @@ -57117,7 +57158,7 @@ function q_(e, t, r) { var n = e.labelFetcher, i = e.labelDataIndex, o = e.labelDimIndex, a = t.normal, s; n && (s = n.getFormattedLabel(i, "normal", null, o, a && a.get("formatter"), r != null ? { interpolatedValue: r - } : null)), s == null && (s = vt(e.defaultText) ? e.defaultText(i, e, r) : e.defaultText); + } : null)), s == null && (s = mt(e.defaultText) ? e.defaultText(i, e, r) : e.defaultText); for (var l = { normal: s }, c = 0; c < no.length; c++) { @@ -57126,10 +57167,10 @@ function q_(e, t, r) { } return l; } -function Ri(e, t, r, n) { +function Pi(e, t, r, n) { r = r || Gw; - for (var i = e instanceof vr, o = !1, a = 0; a < Kv.length; a++) { - var s = t[Kv[a]]; + for (var i = e instanceof vr, o = !1, a = 0; a < qv.length; a++) { + var s = t[qv[a]]; if (s && s.getShallow("show")) { o = !0; break; @@ -57139,25 +57180,25 @@ function Ri(e, t, r, n) { if (o) { i || (l || (l = new vr(), e.setTextContent(l)), e.stateProxy && (l.stateProxy = e.stateProxy)); var c = q_(r, t), u = t.normal, d = !!u.getShallow("show"), h = rn(u, n && n.normal, r, !1, !i); - h.text = c.normal, i || e.setTextConfig(LS(u, r, !1)); + h.text = c.normal, i || e.setTextConfig(NS(u, r, !1)); for (var a = 0; a < no.length; a++) { var f = no[a], s = t[f]; if (s) { var p = l.ensureState(f), g = !!$t(s.getShallow("show"), d); if (g !== d && (p.ignore = !g), p.style = rn(s, n && n[f], r, !0, !i), p.style.text = c[f], !i) { var v = e.ensureState(f); - v.textConfig = LS(s, r, !0); + v.textConfig = NS(s, r, !0); } } } - l.silent = !!u.getShallow("silent"), l.style.x != null && (h.x = l.style.x), l.style.y != null && (h.y = l.style.y), l.ignore = !d, l.useStyle(h), l.dirty(), r.enableTextSetter && (vp(l).setLabelText = function(m) { + l.silent = !!u.getShallow("silent"), l.style.x != null && (h.x = l.style.x), l.style.y != null && (h.y = l.style.y), l.ignore = !d, l.useStyle(h), l.dirty(), r.enableTextSetter && (yp(l).setLabelText = function(m) { var y = q_(r, t, m); - QY(l, y); + tq(l, y); }); } else l && (l.ignore = !0); e.dirty(); } -function li(e, t) { +function ci(e, t) { t = t || "label"; for (var r = { normal: e.getModel(t) @@ -57169,31 +57210,31 @@ function li(e, t) { } function rn(e, t, r, n, i) { var o = {}; - return k2e(o, e, r, n, i), t && Pe(o, t), o; + return YIe(o, e, r, n, i), t && Pe(o, t), o; } -function LS(e, t, r) { +function NS(e, t, r) { t = t || {}; var n = {}, i, o = e.getShallow("rotate"), a = $t(e.getShallow("distance"), r ? null : 5), s = e.getShallow("offset"); return i = e.getShallow("position") || (r ? null : "inside"), i === "outside" && (i = t.defaultOutsidePosition || "top"), i != null && (n.position = i), s != null && (n.offset = s), o != null && (o *= Math.PI / 180, n.rotation = o), a != null && (n.distance = a), n.outsideFill = e.get("color") === "inherit" ? t.inheritColor || null : "auto", n; } -function k2e(e, t, r, n, i) { +function YIe(e, t, r, n, i) { r = r || Gw; - var o = t.ecModel, a = o && o.option.textStyle, s = $2e(t), l; + var o = t.ecModel, a = o && o.option.textStyle, s = qIe(t), l; if (s) { l = {}; for (var c in s) if (s.hasOwnProperty(c)) { var u = t.getModel(["rich", c]); - O8(l[c] = {}, u, a, r, n, i, !1, !0); + F8(l[c] = {}, u, a, r, n, i, !1, !0); } } l && (e.rich = l); var d = t.get("overflow"); d && (e.overflow = d); var h = t.get("minMargin"); - h != null && (e.margin = h), O8(e, t, a, r, n, i, !0, !1); + h != null && (e.margin = h), F8(e, t, a, r, n, i, !0, !1); } -function $2e(e) { +function qIe(e) { for (var t; e && e !== e.ecModel; ) { var r = (e.option || Gw).rich; if (r) { @@ -57207,8 +57248,8 @@ function $2e(e) { } return t; } -var D8 = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], I8 = ["align", "lineHeight", "width", "height", "tag", "verticalAlign", "ellipsis"], A8 = ["padding", "borderWidth", "borderRadius", "borderDashOffset", "backgroundColor", "borderColor", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"]; -function O8(e, t, r, n, i, o, a, s) { +var A8 = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], O8 = ["align", "lineHeight", "width", "height", "tag", "verticalAlign", "ellipsis"], L8 = ["padding", "borderWidth", "borderRadius", "borderDashOffset", "backgroundColor", "borderColor", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"]; +function F8(e, t, r, n, i, o, a, s) { r = !i && r || Gw; var l = n && n.inheritColor, c = t.getShallow("color"), u = t.getShallow("textBorderColor"), d = $t(t.getShallow("opacity"), r.opacity); (c === "inherit" || c === "auto") && (process.env.NODE_ENV !== "production" && c === "auto" && Nn("color: 'auto'", "color: 'inherit'"), l ? c = l : c = null), (u === "inherit" || u === "auto") && (process.env.NODE_ENV !== "production" && u === "auto" && Nn("color: 'auto'", "color: 'inherit'"), l ? u = l : u = null), o || (c = c || r.color, u = u || r.textBorderColor), c != null && (e.fill = c), u != null && (e.stroke = u); @@ -57218,12 +57259,12 @@ function O8(e, t, r, n, i, o, a, s) { f != null && (e.lineDash = f); var p = $t(t.getShallow("textBorderDashOffset"), r.textBorderDashOffset); p != null && (e.lineDashOffset = p), !i && d == null && !s && (d = n && n.defaultOpacity), d != null && (e.opacity = d), !i && !o && e.fill == null && n.inheritColor && (e.fill = n.inheritColor); - for (var g = 0; g < D8.length; g++) { - var v = D8[g], m = $t(t.getShallow(v), r[v]); + for (var g = 0; g < A8.length; g++) { + var v = A8[g], m = $t(t.getShallow(v), r[v]); m != null && (e[v] = m); } - for (var g = 0; g < I8.length; g++) { - var v = I8[g], m = t.getShallow(v); + for (var g = 0; g < O8.length; g++) { + var v = O8[g], m = t.getShallow(v); m != null && (e[v] = m); } if (e.verticalAlign == null) { @@ -57231,15 +57272,15 @@ function O8(e, t, r, n, i, o, a, s) { y != null && (e.verticalAlign = y); } if (!a || !n.disableBox) { - for (var g = 0; g < A8.length; g++) { - var v = A8[g], m = t.getShallow(v); + for (var g = 0; g < L8.length; g++) { + var v = L8[g], m = t.getShallow(v); m != null && (e[v] = m); } var C = t.getShallow("borderType"); C != null && (e.borderDash = C), (e.backgroundColor === "auto" || e.backgroundColor === "inherit") && l && (process.env.NODE_ENV !== "production" && e.backgroundColor === "auto" && Nn("backgroundColor: 'auto'", "backgroundColor: 'inherit'"), e.backgroundColor = l), (e.borderColor === "auto" || e.borderColor === "inherit") && l && (process.env.NODE_ENV !== "production" && e.borderColor === "auto" && Nn("borderColor: 'auto'", "borderColor: 'inherit'"), e.borderColor = l); } } -function Z2(e, t) { +function ZI(e, t) { var r = t && t.getModel("textStyle"); return ga([ // FIXME in node-canvas fontWeight is before fontStyle @@ -57249,45 +57290,45 @@ function Z2(e, t) { e.fontFamily || r && r.getShallow("fontFamily") || "sans-serif" ].join(" ")); } -var vp = yr(); -function JY(e, t, r, n) { +var yp = yr(); +function rq(e, t, r, n) { if (e) { - var i = vp(e); + var i = yp(e); i.prevValue = i.value, i.value = r; var o = t.normal; i.valueAnimation = o.get("valueAnimation"), i.valueAnimation && (i.precision = o.get("precision"), i.defaultInterpolatedText = n, i.statesModels = t); } } -function eq(e, t, r, n, i) { - var o = vp(e); +function nq(e, t, r, n, i) { + var o = yp(e); if (!o.valueAnimation || o.prevValue === o.value) return; var a = o.defaultInterpolatedText, s = $t(o.interpolatedValue, o.prevValue), l = o.value; function c(u) { - var d = nY(r, o.precision, s, l, u); + var d = aY(r, o.precision, s, l, u); o.interpolatedValue = u === 1 ? null : d; var h = q_({ labelDataIndex: t, labelFetcher: i, defaultText: a ? a(d) : d + "" }, o.statesModels, d); - QY(e, h); + tq(e, h); } e.percent = 0, (o.prevValue == null ? un : br)(e, { // percent is used to prevent animation from being aborted #15916 percent: 1 }, n, t, null, c); } -var B2e = ["textStyle", "color"], pE = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "padding", "lineHeight", "rich", "width", "height", "overflow"], gE = new vr(), V2e = ( +var XIe = ["textStyle", "color"], pE = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "padding", "lineHeight", "rich", "width", "height", "overflow"], gE = new vr(), ZIe = ( /** @class */ function() { function e() { } return e.prototype.getTextColor = function(t) { var r = this.ecModel; - return this.getShallow("color") || (!t && r ? r.get(B2e) : null); + return this.getShallow("color") || (!t && r ? r.get(XIe) : null); }, e.prototype.getFont = function() { - return Z2({ + return ZI({ fontStyle: this.getShallow("fontStyle"), fontWeight: this.getShallow("fontWeight"), fontSize: this.getShallow("fontSize"), @@ -57302,7 +57343,7 @@ var B2e = ["textStyle", "color"], pE = ["fontStyle", "fontWeight", "fontSize", " return gE.useStyle(r), gE.update(), gE.getBoundingRect(); }, e; }() -), tq = [ +), iq = [ ["lineWidth", "width"], ["stroke", "color"], ["opacity"], @@ -57317,16 +57358,16 @@ var B2e = ["textStyle", "color"], pE = ["fontStyle", "fontWeight", "fontSize", " ["miterLimit"] // Option decal is in `DecalObject` but style.decal is in `PatternObject`. // So do not transfer decal directly. -], H2e = Id(tq), z2e = ( +], QIe = Id(iq), JIe = ( /** @class */ function() { function e() { } return e.prototype.getLineStyle = function(t) { - return H2e(this, t); + return QIe(this, t); }, e; }() -), rq = [ +), oq = [ ["fill", "color"], ["stroke", "borderColor"], ["lineWidth", "borderWidth"], @@ -57342,13 +57383,13 @@ var B2e = ["textStyle", "color"], pE = ["fontStyle", "fontWeight", "fontSize", " ["miterLimit", "borderMiterLimit"] // Option decal is in `DecalObject` but style.decal is in `PatternObject`. // So do not transfer decal directly. -], G2e = Id(rq), W2e = ( +], eAe = Id(oq), tAe = ( /** @class */ function() { function e() { } return e.prototype.getItemStyle = function(t, r) { - return G2e(this, t, r); + return eAe(this, t, r); }, e; }() ), Yd = ( @@ -57359,7 +57400,7 @@ var B2e = ["textStyle", "color"], pE = ["fontStyle", "fontWeight", "fontSize", " } return e.prototype.init = function(t, r, n) { }, e.prototype.mergeOption = function(t, r) { - Wt(this.option, t, !0); + jt(this.option, t, !0); }, e.prototype.get = function(t, r) { return t == null ? this.option : this._doGet(this.parsePath(t), !r && this.parentModel); }, e.prototype.getShallow = function(t, r) { @@ -57399,18 +57440,18 @@ var B2e = ["textStyle", "color"], pE = ["fontStyle", "fontWeight", "fontSize", " }, e; }() ); -k2(Yd); -QDe(Yd); -In(Yd, z2e); -In(Yd, W2e); -In(Yd, nIe); -In(Yd, V2e); +kI(Yd); +cDe(Yd); +In(Yd, JIe); +In(Yd, tAe); +In(Yd, pDe); +In(Yd, ZIe); const Gr = Yd; -var j2e = Math.round(Math.random() * 10); -function mp(e) { - return [e || "", j2e++].join("_"); +var rAe = Math.round(Math.random() * 10); +function Cp(e) { + return [e || "", rAe++].join("_"); } -function U2e(e) { +function nAe(e) { var t = {}; e.registerSubTypeDefaulter = function(r, n) { var i = Os(r); @@ -57424,7 +57465,7 @@ function U2e(e) { return i; }; } -function K2e(e, t) { +function iAe(e, t) { e.topologicalTravel = function(o, a, s, l) { if (!o.length) return; @@ -57451,9 +57492,9 @@ function K2e(e, t) { return z(o, function(l) { var c = n(a, l), u = c.originalDeps = t(l), d = i(u, o); c.entryCount = d.length, c.entryCount === 0 && s.push(l), z(d, function(h) { - Yt(c.predecessor, h) < 0 && c.predecessor.push(h); + qt(c.predecessor, h) < 0 && c.predecessor.push(h); var f = n(a, h); - Yt(f.successor, h) < 0 && f.successor.push(l); + qt(f.successor, h) < 0 && f.successor.push(l); }); }), { graph: a, @@ -57469,14 +57510,14 @@ function K2e(e, t) { function i(o, a) { var s = []; return z(o, function(l) { - Yt(a, l) >= 0 && s.push(l); + qt(a, l) >= 0 && s.push(l); }), s; } } function ru(e, t) { - return Wt(Wt({}, e, !0), t, !0); + return jt(jt({}, e, !0), t, !0); } -const Y2e = { +const oAe = { 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"], @@ -57586,7 +57627,7 @@ const Y2e = { } } } -}, q2e = { +}, aAe = { time: { month: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], monthAbbr: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], @@ -57697,32 +57738,32 @@ const Y2e = { } } }; -var FS = "ZH", Q2 = "EN", Cf = Q2, TC = {}, J2 = {}, nq = gr.domSupported ? function() { +var kS = "ZH", QI = "EN", Cf = QI, DC = {}, JI = {}, aq = gr.domSupported ? function() { var e = ( /* eslint-disable-next-line */ (document.documentElement.lang || navigator.language || navigator.browserLanguage || Cf).toUpperCase() ); - return e.indexOf(FS) > -1 ? FS : Cf; + return e.indexOf(kS) > -1 ? kS : Cf; }() : Cf; function eA(e, t) { - e = e.toUpperCase(), J2[e] = new Gr(t), TC[e] = t; + e = e.toUpperCase(), JI[e] = new Gr(t), DC[e] = t; } -function X2e(e) { +function sAe(e) { if (Je(e)) { - var t = TC[e.toUpperCase()] || {}; - return e === FS || e === Q2 ? _t(t) : Wt(_t(t), _t(TC[Cf]), !1); + var t = DC[e.toUpperCase()] || {}; + return e === kS || e === QI ? _t(t) : jt(_t(t), _t(DC[Cf]), !1); } else - return Wt(_t(e), _t(TC[Cf]), !1); + return jt(_t(e), _t(DC[Cf]), !1); } function X_(e) { - return J2[e]; + return JI[e]; } -function Z2e() { - return J2[Cf]; +function lAe() { + return JI[Cf]; } -eA(Q2, Y2e); -eA(FS, q2e); -var tA = 1e3, rA = tA * 60, sv = rA * 60, pa = sv * 24, L8 = pa * 365, Mg = { +eA(QI, oAe); +eA(kS, aAe); +var tA = 1e3, rA = tA * 60, cv = rA * 60, pa = cv * 24, N8 = pa * 365, Ig = { year: "{yyyy}", month: "{MMM}", day: "{d}", @@ -57731,15 +57772,15 @@ var tA = 1e3, rA = tA * 60, sv = rA * 60, pa = sv * 24, L8 = pa * 365, Mg = { second: "{HH}:{mm}:{ss}", millisecond: "{HH}:{mm}:{ss} {SSS}", none: "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}" -}, l0 = "{yyyy}-{MM}-{dd}", F8 = { +}, d0 = "{yyyy}-{MM}-{dd}", k8 = { year: "{yyyy}", month: "{yyyy}-{MM}", - day: l0, - hour: l0 + " " + Mg.hour, - minute: l0 + " " + Mg.minute, - second: l0 + " " + Mg.second, - millisecond: Mg.none -}, vE = ["year", "month", "day", "hour", "minute", "second", "millisecond"], iq = ["year", "half-year", "quarter", "month", "week", "half-week", "day", "half-day", "quarter-day", "hour", "minute", "second", "millisecond"]; + day: d0, + hour: d0 + " " + Ig.hour, + minute: d0 + " " + Ig.minute, + second: d0 + " " + Ig.second, + millisecond: Ig.none +}, vE = ["year", "month", "day", "hour", "minute", "second", "millisecond"], sq = ["year", "half-year", "quarter", "month", "week", "half-week", "day", "half-day", "quarter-day", "hour", "minute", "second", "millisecond"]; function ji(e, t) { return e += "", "0000".substr(0, t - e.length) + e; } @@ -57758,10 +57799,10 @@ function Sf(e) { return e; } } -function Q2e(e) { +function cAe(e) { return e === Sf(e); } -function J2e(e) { +function uAe(e) { switch (e) { case "year": case "month": @@ -57772,48 +57813,48 @@ function J2e(e) { return "second"; } } -function ty(e, t, r, n) { - var i = jo(e), o = i[nA(r)](), a = i[bf(r)]() + 1, s = Math.floor((a - 1) / 3) + 1, l = i[Ww(r)](), c = i["get" + (r ? "UTC" : "") + "Day"](), u = i[qv(r)](), d = (u - 1) % 12 + 1, h = i[jw(r)](), f = i[Uw(r)](), p = i[Kw(r)](), g = u >= 12 ? "pm" : "am", v = g.toUpperCase(), m = n instanceof Gr ? n : X_(n || nq) || Z2e(), y = m.getModel("time"), C = y.get("month"), b = y.get("monthAbbr"), w = y.get("dayOfWeek"), x = y.get("dayOfWeekAbbr"); +function iy(e, t, r, n) { + var i = jo(e), o = i[nA(r)](), a = i[bf(r)]() + 1, s = Math.floor((a - 1) / 3) + 1, l = i[Ww(r)](), c = i["get" + (r ? "UTC" : "") + "Day"](), u = i[Zv(r)](), d = (u - 1) % 12 + 1, h = i[jw(r)](), f = i[Uw(r)](), p = i[Kw(r)](), g = u >= 12 ? "pm" : "am", v = g.toUpperCase(), m = n instanceof Gr ? n : X_(n || aq) || lAe(), y = m.getModel("time"), C = y.get("month"), b = y.get("monthAbbr"), w = y.get("dayOfWeek"), x = y.get("dayOfWeekAbbr"); return (t || "").replace(/{a}/g, g + "").replace(/{A}/g, v + "").replace(/{yyyy}/g, o + "").replace(/{yy}/g, ji(o % 100 + "", 2)).replace(/{Q}/g, s + "").replace(/{MMMM}/g, C[a - 1]).replace(/{MMM}/g, b[a - 1]).replace(/{MM}/g, ji(a, 2)).replace(/{M}/g, a + "").replace(/{dd}/g, ji(l, 2)).replace(/{d}/g, l + "").replace(/{eeee}/g, w[c]).replace(/{ee}/g, x[c]).replace(/{e}/g, c + "").replace(/{HH}/g, ji(u, 2)).replace(/{H}/g, u + "").replace(/{hh}/g, ji(d + "", 2)).replace(/{h}/g, d + "").replace(/{mm}/g, ji(h, 2)).replace(/{m}/g, h + "").replace(/{ss}/g, ji(f, 2)).replace(/{s}/g, f + "").replace(/{SSS}/g, ji(p, 3)).replace(/{S}/g, p + ""); } -function eAe(e, t, r, n, i) { +function dAe(e, t, r, n, i) { var o = null; if (Je(r)) o = r; - else if (vt(r)) + else if (mt(r)) o = r(e.value, t, { level: e.level }); else { - var a = Pe({}, Mg); + var a = Pe({}, Ig); if (e.level > 0) for (var s = 0; s < vE.length; ++s) a[vE[s]] = "{primary|" + a[vE[s]] + "}"; - var l = r ? r.inherit === !1 ? r : wt(r, a) : a, c = oq(e.value, i); + var l = r ? r.inherit === !1 ? r : xt(r, a) : a, c = lq(e.value, i); if (l[c]) o = l[c]; else if (l.inherit) { - for (var u = iq.indexOf(c), s = u - 1; s >= 0; --s) + for (var u = sq.indexOf(c), s = u - 1; s >= 0; --s) if (l[c]) { o = l[c]; break; } o = o || a.none; } - if (Ie(o)) { + if (Ae(o)) { var d = e.level == null ? 0 : e.level >= 0 ? e.level : o.length + e.level; d = Math.min(d, o.length - 1), o = o[d]; } } - return ty(new Date(e.value), o, i, n); + return iy(new Date(e.value), o, i, n); } -function oq(e, t) { - var r = jo(e), n = r[bf(t)]() + 1, i = r[Ww(t)](), o = r[qv(t)](), a = r[jw(t)](), s = r[Uw(t)](), l = r[Kw(t)](), c = l === 0, u = c && s === 0, d = u && a === 0, h = d && o === 0, f = h && i === 1, p = f && n === 1; +function lq(e, t) { + var r = jo(e), n = r[bf(t)]() + 1, i = r[Ww(t)](), o = r[Zv(t)](), a = r[jw(t)](), s = r[Uw(t)](), l = r[Kw(t)](), c = l === 0, u = c && s === 0, d = u && a === 0, h = d && o === 0, f = h && i === 1, p = f && n === 1; return p ? "year" : f ? "month" : h ? "day" : d ? "hour" : u ? "minute" : c ? "second" : "millisecond"; } -function N8(e, t, r) { +function $8(e, t, r) { var n = Cr(e) ? jo(e) : e; - switch (t = t || oq(e, r), t) { + switch (t = t || lq(e, r), t) { case "year": return n[nA(r)](); case "half-year": @@ -57825,9 +57866,9 @@ function N8(e, t, r) { case "day": return n[Ww(r)](); case "half-day": - return n[qv(r)]() / 24; + return n[Zv(r)]() / 24; case "hour": - return n[qv(r)](); + return n[Zv(r)](); case "minute": return n[jw(r)](); case "second": @@ -57845,7 +57886,7 @@ function bf(e) { function Ww(e) { return e ? "getUTCDate" : "getDate"; } -function qv(e) { +function Zv(e) { return e ? "getUTCHours" : "getHours"; } function jw(e) { @@ -57857,28 +57898,28 @@ function Uw(e) { function Kw(e) { return e ? "getUTCMilliseconds" : "getMilliseconds"; } -function tAe(e) { +function hAe(e) { return e ? "setUTCFullYear" : "setFullYear"; } -function aq(e) { +function cq(e) { return e ? "setUTCMonth" : "setMonth"; } -function sq(e) { +function uq(e) { return e ? "setUTCDate" : "setDate"; } -function lq(e) { +function dq(e) { return e ? "setUTCHours" : "setHours"; } -function cq(e) { +function hq(e) { return e ? "setUTCMinutes" : "setMinutes"; } -function uq(e) { +function fq(e) { return e ? "setUTCSeconds" : "setSeconds"; } -function dq(e) { +function pq(e) { return e ? "setUTCMilliseconds" : "setMilliseconds"; } -function rAe(e, t, r, n, i, o, a, s) { +function fAe(e, t, r, n, i, o, a, s) { var l = new vr({ style: { text: e, @@ -57919,38 +57960,38 @@ function Z_(e, t, r) { if (isNaN(+l)) { if (s) return "-"; - } else return ty(l, n, r); + } else return iy(l, n, r); } if (t === "ordinal") - return $v(e) ? i(e) : Cr(e) && o(e) ? e + "" : "-"; + return Vv(e) ? i(e) : Cr(e) && o(e) ? e + "" : "-"; var c = Ks(e); - return o(c) ? iA(c) : $v(e) ? i(e) : typeof e == "boolean" ? e + "" : "-"; + return o(c) ? iA(c) : Vv(e) ? i(e) : typeof e == "boolean" ? e + "" : "-"; } -var k8 = ["a", "b", "c", "d", "e", "f", "g"], mE = function(e, t) { +var B8 = ["a", "b", "c", "d", "e", "f", "g"], mE = function(e, t) { return "{" + e + (t ?? "") + "}"; }; function aA(e, t, r) { - Ie(t) || (t = [t]); + Ae(t) || (t = [t]); var n = t.length; if (!n) return ""; for (var i = t[0].$vars || [], o = 0; o < i.length; o++) { - var a = k8[o]; + var a = B8[o]; e = e.replace(mE(a), mE(a, 0)); } for (var s = 0; s < n; s++) for (var l = 0; l < i.length; l++) { var c = t[s][i[l]]; - e = e.replace(mE(k8[l], s), r ? Ki(c) : c); + e = e.replace(mE(B8[l], s), r ? Ki(c) : c); } return e; } -function nAe(e, t, r) { +function pAe(e, t, r) { return z(t, function(n, i) { e = e.replace("{" + i + "}", n); }), e; } -function hq(e, t) { +function gq(e, t) { var r = Je(e) ? { color: e, extraCssText: t @@ -57978,26 +58019,26 @@ function hq(e, t) { } }; } -function iAe(e, t, r) { +function gAe(e, t, r) { process.env.NODE_ENV !== "production" && Nn("echarts.format.formatTime", "echarts.time.format"), (e === "week" || e === "month" || e === "quarter" || e === "half-year" || e === "year") && (e = `MM-dd yyyy`); var n = jo(t), i = r ? "getUTC" : "get", o = n[i + "FullYear"](), a = n[i + "Month"]() + 1, s = n[i + "Date"](), l = n[i + "Hours"](), c = n[i + "Minutes"](), u = n[i + "Seconds"](), d = n[i + "Milliseconds"](); return e = e.replace("MM", ji(a, 2)).replace("M", a).replace("yyyy", o).replace("yy", ji(o % 100 + "", 2)).replace("dd", ji(s, 2)).replace("d", s).replace("hh", ji(l, 2)).replace("h", l).replace("mm", ji(c, 2)).replace("m", c).replace("ss", ji(u, 2)).replace("s", u).replace("SSS", ji(d, 3)), e; } -function oAe(e) { +function vAe(e) { return e && e.charAt(0).toUpperCase() + e.substr(1); } function Od(e, t) { - return t = t || "transparent", Je(e) ? e : St(e) && e.colorStops && (e.colorStops[0] || {}).color || t; + return t = t || "transparent", Je(e) ? e : bt(e) && e.colorStops && (e.colorStops[0] || {}).color || t; } -function NS(e, t) { +function $S(e, t) { if (t === "_blank" || t === "blank") { var r = window.open(); r.opener = null, r.location.href = e; } else window.open(e, t); } -var _C = z, fq = ["left", "right", "top", "bottom", "width", "height"], rd = [["width", "left", "right"], ["height", "top", "bottom"]]; +var IC = z, vq = ["left", "right", "top", "bottom", "width", "height"], rd = [["width", "left", "right"], ["height", "top", "bottom"]]; function sA(e, t, r, n, i) { var o = 0, a = 0; n == null && (n = 1 / 0), i == null && (i = 1 / 0); @@ -58017,7 +58058,7 @@ function sA(e, t, r, n, i) { var fd = sA; Vt(sA, "vertical"); Vt(sA, "horizontal"); -function aAe(e, t, r) { +function mAe(e, t, r) { var n = t.width, i = t.height, o = Ze(e.left, n), a = Ze(e.top, i), s = Ze(e.right, n), l = Ze(e.bottom, i); return (isNaN(o) || isNaN(parseFloat(e.left))) && (o = 0), (isNaN(s) || isNaN(parseFloat(e.right))) && (s = n), (isNaN(a) || isNaN(parseFloat(e.top))) && (a = 0), (isNaN(l) || isNaN(parseFloat(e.bottom))) && (l = i), r = qd(r || 0), { width: Math.max(s - o - r[1] - r[3], 0), @@ -58045,7 +58086,7 @@ function jn(e, t, r) { break; } o = o || 0, a = a || 0, isNaN(c) && (c = n - h - o - (s || 0)), isNaN(u) && (u = i - d - a - (l || 0)); - var p = new Kt(o + r[3], a + r[0], c, u); + var p = new Yt(o + r[3], a + r[0], c, u); return p.margin = r, p; } function Yw(e, t, r, n, i, o) { @@ -58054,36 +58095,36 @@ function Yw(e, t, r, n, i, o) { return !1; var c; if (l === "raw") - c = e.type === "group" ? new Kt(0, 0, +t.width || 0, +t.height || 0) : e.getBoundingRect(); + c = e.type === "group" ? new Yt(0, 0, +t.width || 0, +t.height || 0) : e.getBoundingRect(); else if (c = e.getBoundingRect(), e.needLocalTransform()) { var u = e.getLocalTransform(); c = c.clone(), c.applyTransform(u); } - var d = jn(wt({ + var d = jn(xt({ width: c.width, height: c.height }, t), r, n), h = a ? d.x - c.x : 0, f = s ? d.y - c.y : 0; return l === "raw" ? (o.x = h, o.y = f) : (o.x += h, o.y += f), o === e && e.markRedraw(), !0; } -function sAe(e, t) { +function yAe(e, t) { return e[rd[t][0]] != null || e[rd[t][1]] != null && e[rd[t][2]] != null; } -function Xv(e) { +function Qv(e) { var t = e.layoutMode || e.constructor.layoutMode; - return St(t) ? t : t ? { + return bt(t) ? t : t ? { type: t } : null; } function Uc(e, t, r) { var n = r && r.ignoreSize; - !Ie(n) && (n = [n, n]); + !Ae(n) && (n = [n, n]); var i = a(rd[0], 0), o = a(rd[1], 1); c(rd[0], e, i), c(rd[1], e, o); function a(u, d) { var h = {}, f = 0, p = {}, g = 0, v = 2; - if (_C(u, function(C) { + if (IC(u, function(C) { p[C] = e[C]; - }), _C(u, function(C) { + }), IC(u, function(C) { s(t, C) && (h[C] = p[C] = t[C]), l(h, C) && f++, l(p, C) && g++; }), n[d]) return l(t, u[1]) ? p[u[2]] = null : l(t, u[2]) && (p[u[1]] = null), p; @@ -58107,55 +58148,55 @@ function Uc(e, t, r) { return u[d] != null && u[d] !== "auto"; } function c(u, d, h) { - _C(u, function(f) { + IC(u, function(f) { d[f] = h[f]; }); } } -function yp(e) { - return pq({}, e); +function Sp(e) { + return mq({}, e); } -function pq(e, t) { - return t && e && _C(fq, function(r) { +function mq(e, t) { + return t && e && IC(vq, function(r) { t.hasOwnProperty(r) && (e[r] = t[r]); }), e; } -var lAe = yr(), Qt = ( +var CAe = yr(), Qt = ( /** @class */ function(e) { Se(t, e); function t(r, n, i) { var o = e.call(this, r, n, i) || this; - return o.uid = mp("ec_cpt_model"), o; + return o.uid = Cp("ec_cpt_model"), o; } return t.prototype.init = function(r, n, i) { this.mergeDefaultAndTheme(r, i); }, t.prototype.mergeDefaultAndTheme = function(r, n) { - var i = Xv(this), o = i ? yp(r) : {}, a = n.getTheme(); - Wt(r, a.get(this.mainType)), Wt(r, this.getDefaultOption()), i && Uc(r, o, i); + var i = Qv(this), o = i ? Sp(r) : {}, a = n.getTheme(); + jt(r, a.get(this.mainType)), jt(r, this.getDefaultOption()), i && Uc(r, o, i); }, t.prototype.mergeOption = function(r, n) { - Wt(this.option, r, !0); - var i = Xv(this); + jt(this.option, r, !0); + var i = Qv(this); i && Uc(this.option, r, i); }, t.prototype.optionUpdated = function(r, n) { }, t.prototype.getDefaultOption = function() { var r = this.constructor; - if (!qDe(r)) + if (!aDe(r)) return r.defaultOption; - var n = lAe(this); + var n = CAe(this); if (!n.defaultOption) { for (var i = [], o = r; o; ) { var a = o.prototype.defaultOption; a && i.push(a), o = o.superClass; } for (var s = {}, l = i.length - 1; l >= 0; l--) - s = Wt(s, i[l], !0); + s = jt(s, i[l], !0); n.defaultOption = s; } return n.defaultOption; }, t.prototype.getReferringComponents = function(r, n) { var i = r + "Index", o = r + "Id"; - return qm(this.ecModel, r, { + return Qm(this.ecModel, r, { index: this.get(i, !0), id: this.get(o, !0) }, n); @@ -58179,22 +58220,22 @@ var lAe = yr(), Qt = ( }(), t; }(Gr) ); -oY(Qt, Gr); +lY(Qt, Gr); Aw(Qt); -U2e(Qt); -K2e(Qt, cAe); -function cAe(e) { +nAe(Qt); +iAe(Qt, SAe); +function SAe(e) { var t = []; return z(Qt.getClassesByMainType(e), function(r) { t = t.concat(r.dependencies || r.prototype.dependencies || []); }), t = Fe(t, function(r) { return Os(r).main; - }), e !== "dataset" && Yt(t, "dataset") <= 0 && t.unshift("dataset"), t; + }), e !== "dataset" && qt(t, "dataset") <= 0 && t.unshift("dataset"), t; } -var gq = ""; -typeof navigator < "u" && (gq = navigator.platform || ""); +var yq = ""; +typeof navigator < "u" && (yq = navigator.platform || ""); var Eh = "rgba(0, 0, 0, 0.2)"; -const uAe = { +const bAe = { darkMode: "auto", // backgroundColor: 'rgba(0,0,0,0)', colorBy: "series", @@ -58243,7 +58284,7 @@ const uAe = { // color: '#000', // decoration: 'none', // PENDING - fontFamily: gq.match(/^Win/) ? "Microsoft YaHei" : "sans-serif", + fontFamily: yq.match(/^Win/) ? "Microsoft YaHei" : "sans-serif", // fontFamily: 'Arial, Verdana, sans-serif', fontSize: 12, fontStyle: "normal", @@ -58275,22 +58316,22 @@ const uAe = { // See: module:echarts/scale/Time useUTC: !1 }; -var Q_ = ft(["tooltip", "label", "itemName", "itemId", "itemGroupId", "itemChildGroupId", "seriesName"]), Aa = "original", $i = "arrayRows", Oa = "objectRows", tl = "keyedColumns", Ml = "typedArray", vq = "unknown", Vs = "column", Cp = "row", Ci = { +var Q_ = ft(["tooltip", "label", "itemName", "itemId", "itemGroupId", "itemChildGroupId", "seriesName"]), Aa = "original", $i = "arrayRows", Oa = "objectRows", rl = "keyedColumns", Dl = "typedArray", Cq = "unknown", Vs = "column", bp = "row", Si = { Must: 1, Might: 2, Not: 3 // Other cases -}, mq = yr(); -function dAe(e) { - mq(e).datasetMap = ft(); +}, Sq = yr(); +function wAe(e) { + Sq(e).datasetMap = ft(); } -function yq(e, t, r) { +function bq(e, t, r) { var n = {}, i = cA(t); if (!i || !e) return n; - var o = [], a = [], s = t.ecModel, l = mq(s).datasetMap, c = i.uid + "_" + r.seriesLayoutBy, u, d; + var o = [], a = [], s = t.ecModel, l = Sq(s).datasetMap, c = i.uid + "_" + r.seriesLayoutBy, u, d; e = e.slice(), z(e, function(g, v) { - var m = St(g) ? g : e[v] = { + var m = bt(g) ? g : e[v] = { name: g }; m.type === "ordinal" && u == null && (u = v, d = p(m)), n[m.name] = []; @@ -58326,17 +58367,17 @@ function lA(e, t, r) { if (!i) return n; var o = t.sourceFormat, a = t.dimensionsDefine, s; - (o === Oa || o === tl) && z(a, function(u, d) { - (St(u) ? u.name : u) === "name" && (s = d); + (o === Oa || o === rl) && z(a, function(u, d) { + (bt(u) ? u.name : u) === "name" && (s = d); }); var l = function() { for (var u = {}, d = {}, h = [], f = 0, p = Math.min(5, r); f < p; f++) { - var g = Sq(t.data, o, t.seriesLayoutBy, a, t.startIndex, f); + var g = xq(t.data, o, t.seriesLayoutBy, a, t.startIndex, f); h.push(g); - var v = g === Ci.Not; - if (v && u.v == null && f !== s && (u.v = f), (u.n == null || u.n === u.v || !v && h[u.n] === Ci.Not) && (u.n = f), m(u) && h[u.n] !== Ci.Not) + var v = g === Si.Not; + if (v && u.v == null && f !== s && (u.v = f), (u.n == null || u.n === u.v || !v && h[u.n] === Si.Not) && (u.n = f), m(u) && h[u.n] !== Si.Not) return u; - v || (g === Ci.Might && d.v == null && f !== s && (d.v = f), (d.n == null || d.n === d.v) && (d.n = f)); + v || (g === Si.Might && d.v == null && f !== s && (d.v = f), (d.n == null || d.n === d.v) && (d.n = f)); } function m(y) { return y.v != null && y.n != null; @@ -58353,34 +58394,34 @@ function lA(e, t, r) { function cA(e) { var t = e.get("data", !0); if (!t) - return qm(e.ecModel, "dataset", { + return Qm(e.ecModel, "dataset", { index: e.get("datasetIndex", !0), id: e.get("datasetId", !0) }, Wn).models[0]; } -function hAe(e) { - return !e.get("transform", !0) && !e.get("fromTransformResult", !0) ? [] : qm(e.ecModel, "dataset", { +function xAe(e) { + return !e.get("transform", !0) && !e.get("fromTransformResult", !0) ? [] : Qm(e.ecModel, "dataset", { index: e.get("fromDatasetIndex", !0), id: e.get("fromDatasetId", !0) }, Wn).models; } -function Cq(e, t) { - return Sq(e.data, e.sourceFormat, e.seriesLayoutBy, e.dimensionsDefine, e.startIndex, t); +function wq(e, t) { + return xq(e.data, e.sourceFormat, e.seriesLayoutBy, e.dimensionsDefine, e.startIndex, t); } -function Sq(e, t, r, n, i, o) { +function xq(e, t, r, n, i, o) { var a, s = 5; if (ki(e)) - return Ci.Not; + return Si.Not; var l, c; if (n) { var u = n[o]; - St(u) ? (l = u.name, c = u.type) : Je(u) && (l = u); + bt(u) ? (l = u.name, c = u.type) : Je(u) && (l = u); } if (c != null) - return c === "ordinal" ? Ci.Must : Ci.Not; + return c === "ordinal" ? Si.Must : Si.Not; if (t === $i) { var d = e; - if (r === Cp) { + if (r === bp) { for (var h = d[o], f = 0; f < (h || []).length && f < s; f++) if ((a = b(h[i + f])) != null) return a; @@ -58393,44 +58434,44 @@ function Sq(e, t, r, n, i, o) { } else if (t === Oa) { var g = e; if (!l) - return Ci.Not; + return Si.Not; for (var f = 0; f < g.length && f < s; f++) { var v = g[f]; if (v && (a = b(v[l])) != null) return a; } - } else if (t === tl) { + } else if (t === rl) { var m = e; if (!l) - return Ci.Not; + return Si.Not; var h = m[l]; if (!h || ki(h)) - return Ci.Not; + return Si.Not; for (var f = 0; f < h.length && f < s; f++) if ((a = b(h[f])) != null) return a; } else if (t === Aa) for (var y = e, f = 0; f < y.length && f < s; f++) { - var v = y[f], C = up(v); - if (!Ie(C)) - return Ci.Not; + var v = y[f], C = hp(v); + if (!Ae(C)) + return Si.Not; if ((a = b(C[o])) != null) return a; } function b(w) { var x = Je(w); if (w != null && Number.isFinite(Number(w)) && w !== "") - return x ? Ci.Might : Ci.Not; + return x ? Si.Might : Si.Not; if (x && w !== "-") - return Ci.Must; + return Si.Must; } - return Ci.Not; + return Si.Not; } var J_ = ft(); -function fAe(e, t) { - xt(J_.get(e) == null && t), J_.set(e, t); +function EAe(e, t) { + Et(J_.get(e) == null && t), J_.set(e, t); } -function pAe(e, t, r) { +function RAe(e, t, r) { var n = J_.get(t); if (!n) return r; @@ -58439,47 +58480,47 @@ function pAe(e, t, r) { return r; if (process.env.NODE_ENV !== "production") for (var o = 0; o < i.length; o++) - xt(Ff(i[o])); + Et(kf(i[o])); return r.concat(i); } -var $8 = yr(), gAe = yr(), uA = ( +var V8 = yr(), PAe = yr(), uA = ( /** @class */ function() { function e() { } return e.prototype.getColorFromPalette = function(t, r, n) { var i = Wr(this.get("color", !0)), o = this.get("colorLayer", !0); - return bq(this, $8, i, o, t, r, n); + return Eq(this, V8, i, o, t, r, n); }, e.prototype.clearColorPalette = function() { - mAe(this, $8); + _Ae(this, V8); }, e; }() ); function eM(e, t, r, n) { var i = Wr(e.get(["aria", "decal", "decals"])); - return bq(e, gAe, i, null, t, r, n); + return Eq(e, PAe, i, null, t, r, n); } -function vAe(e, t) { +function TAe(e, t) { for (var r = e.length, n = 0; n < r; n++) if (e[n].length > t) return e[n]; return e[r - 1]; } -function bq(e, t, r, n, i, o, a) { +function Eq(e, t, r, n, i, o, a) { o = o || e; var s = t(o), l = s.paletteIdx || 0, c = s.paletteNameMap = s.paletteNameMap || {}; if (c.hasOwnProperty(i)) return c[i]; - var u = a == null || !n ? r : vAe(n, a); + var u = a == null || !n ? r : TAe(n, a); if (u = u || r, !(!u || !u.length)) { var d = u[l]; return i && (c[i] = d), s.paletteIdx = (l + 1) % u.length, d; } } -function mAe(e, t) { +function _Ae(e, t) { t(e).paletteIdx = 0, t(e).paletteNameMap = {}; } -var c0, Xp, B8, yE = "\0_ec_inner", V8 = 1, yAe = { +var h0, Qp, H8, yE = "\0_ec_inner", z8 = 1, MAe = { grid: "GridComponent", polar: "PolarComponent", geo: "GeoComponent", @@ -58506,7 +58547,7 @@ var c0, Xp, B8, yE = "\0_ec_inner", V8 = 1, yAe = { yAxis: "GridComponent", angleAxis: "PolarComponent", radiusAxis: "PolarComponent" -}, CAe = { +}, DAe = { line: "LineChart", bar: "BarChart", pie: "PieChart", @@ -58529,14 +58570,14 @@ var c0, Xp, B8, yE = "\0_ec_inner", V8 = 1, yAe = { themeRiver: "ThemeRiverChart", sunburst: "SunburstChart", custom: "CustomChart" -}, kS = {}; -function SAe(e) { +}, BS = {}; +function IAe(e) { z(e, function(t, r) { if (!Qt.hasClass(r)) { - var n = yAe[r]; - n && !kS[n] && (xi("Component " + r + ` is used but not imported. + var n = MAe[r]; + n && !BS[n] && (Ei("Component " + r + ` is used but not imported. import { ` + n + ` } from 'echarts/components'; -echarts.use([` + n + "]);"), kS[n] = !0); +echarts.use([` + n + "]);"), BS[n] = !0); } }); } @@ -58550,16 +58591,16 @@ var dA = ( return t.prototype.init = function(r, n, i, o, a, s) { o = o || {}, this.option = null, this._theme = new Gr(o), this._locale = new Gr(a), this._optionManager = s; }, t.prototype.setOption = function(r, n, i) { - process.env.NODE_ENV !== "production" && (xt(r != null, "option is null/undefined"), xt(r[yE] !== V8, "please use chart.getOption()")); - var o = G8(n); + process.env.NODE_ENV !== "production" && (Et(r != null, "option is null/undefined"), Et(r[yE] !== z8, "please use chart.getOption()")); + var o = j8(n); this._optionManager.setOption(r, i, o), this._resetOption(null, o); }, t.prototype.resetOption = function(r, n) { - return this._resetOption(r, G8(n)); + return this._resetOption(r, j8(n)); }, t.prototype._resetOption = function(r, n) { var i = !1, o = this._optionManager; if (!r || r === "recreate") { var a = o.mountOption(r === "recreate"); - process.env.NODE_ENV !== "production" && SAe(a), !this.option || r === "recreate" ? B8(this, a) : (this.restoreData(), this._mergeOption(a, n)), i = !0; + process.env.NODE_ENV !== "production" && IAe(a), !this.option || r === "recreate" ? H8(this, a) : (this.restoreData(), this._mergeOption(a, n)), i = !0; } if ((r === "timeline" || r === "media") && this.restoreData(), !r || r === "recreate" || r === "timeline") { var s = o.getTimelineOption(this); @@ -58576,17 +58617,17 @@ var dA = ( this._mergeOption(r, null); }, t.prototype._mergeOption = function(r, n) { var i = this.option, o = this._componentsMap, a = this._componentsCount, s = [], l = ft(), c = n && n.replaceMergeMainTypeMap; - dAe(this), z(r, function(d, h) { - d != null && (Qt.hasClass(h) ? h && (s.push(h), l.set(h, !0)) : i[h] = i[h] == null ? _t(d) : Wt(i[h], d, !0)); + wAe(this), z(r, function(d, h) { + d != null && (Qt.hasClass(h) ? h && (s.push(h), l.set(h, !0)) : i[h] = i[h] == null ? _t(d) : jt(i[h], d, !0)); }), c && c.each(function(d, h) { Qt.hasClass(h) && !l.get(h) && (s.push(h), l.set(h, !0)); }), Qt.topologicalTravel(s, Qt.getAllClassMainTypes(), u, this); function u(d) { - var h = pAe(this, d, Wr(r[d])), f = o.get(d), p = ( + var h = RAe(this, d, Wr(r[d])), f = o.get(d), p = ( // `!oldCmptList` means init. See the comment in `mappingToExists` f ? c && c.get(d) ? "replaceMerge" : "normalMerge" : "replaceAll" - ), g = eY(f, h, p); - VDe(g, d, Qt), i[d] = null, o.set(d, null), a.set(d, 0); + ), g = nY(f, h, p); + Z2e(g, d, Qt), i[d] = null, o.set(d, null), a.set(d, 0); var v = [], m = [], y = 0, C, b; z(g, function(w, x) { var E = w.existing, R = w.newOption; @@ -58601,8 +58642,8 @@ var dA = ( ); if (!T) { if (process.env.NODE_ENV !== "production") { - var _ = w.keyInfo.subType, D = CAe[_]; - kS[_] || (kS[_] = !0, xi(D ? "Series " + _ + ` is used but not imported. + var _ = w.keyInfo.subType, D = DAe[_]; + BS[_] || (BS[_] = !0, Ei(D ? "Series " + _ + ` is used but not imported. import { ` + D + ` } from 'echarts/charts'; echarts.use([` + D + "]);" : "Unknown series " + _)); } @@ -58625,15 +58666,15 @@ echarts.use([` + D + "]);" : "Unknown series " + _)); } } E ? (v.push(E.option), m.push(E), y++) : (v.push(void 0), m.push(void 0)); - }, this), i[d] = v, o.set(d, m), a.set(d, y), d === "series" && c0(this); + }, this), i[d] = v, o.set(d, m), a.set(d, y), d === "series" && h0(this); } - this._seriesIndices || c0(this); + this._seriesIndices || h0(this); }, t.prototype.getOption = function() { var r = _t(this.option); return z(r, function(n, i) { if (Qt.hasClass(i)) { for (var o = Wr(n), a = o.length, s = !1, l = a - 1; l >= 0; l--) - o[l] && !Ff(o[l]) ? s = !0 : (o[l] = null, !s && a--); + o[l] && !kf(o[l]) ? s = !0 : (o[l] = null, !s && a--); o.length = a, r[i] = o; } }), delete r[yE], r; @@ -58667,14 +58708,14 @@ echarts.use([` + D + "]);" : "Unknown series " + _)); var l; return i != null ? (l = [], z(Wr(i), function(c) { s[c] && l.push(s[c]); - })) : o != null ? l = H8("id", o, s) : a != null ? l = H8("name", a, s) : l = Fr(s, function(c) { + })) : o != null ? l = G8("id", o, s) : a != null ? l = G8("name", a, s) : l = Nr(s, function(c) { return !!c; - }), z8(l, r); + }), W8(l, r); }, t.prototype.findComponents = function(r) { - var n = r.query, i = r.mainType, o = s(n), a = o ? this.queryComponents(o) : Fr(this._componentsMap.get(i), function(c) { + var n = r.query, i = r.mainType, o = s(n), a = o ? this.queryComponents(o) : Nr(this._componentsMap.get(i), function(c) { return !!c; }); - return l(z8(a, r)); + return l(W8(a, r)); function s(c) { var u = i + "Index", d = i + "Id", h = i + "Name"; return c && (c[u] != null || c[d] != null || c[h] != null) ? { @@ -58686,11 +58727,11 @@ echarts.use([` + D + "]);" : "Unknown series " + _)); } : null; } function l(c) { - return r.filter ? Fr(c, r.filter) : c; + return r.filter ? Nr(c, r.filter) : c; } }, t.prototype.eachComponent = function(r, n, i) { var o = this._componentsMap; - if (vt(r)) { + if (mt(r)) { var a = n, s = r; o.each(function(d, h) { for (var f = 0; d && f < d.length; f++) { @@ -58699,29 +58740,29 @@ echarts.use([` + D + "]);" : "Unknown series " + _)); } }); } else - for (var l = Je(r) ? o.get(r) : St(r) ? this.findComponents(r) : null, c = 0; l && c < l.length; c++) { + for (var l = Je(r) ? o.get(r) : bt(r) ? this.findComponents(r) : null, c = 0; l && c < l.length; c++) { var u = l[c]; u && n.call(i, u, u.componentIndex); } }, t.prototype.getSeriesByName = function(r) { var n = qn(r, null); - return Fr(this._componentsMap.get("series"), function(i) { + return Nr(this._componentsMap.get("series"), function(i) { return !!i && n != null && i.name === n; }); }, t.prototype.getSeriesByIndex = function(r) { return this._componentsMap.get("series")[r]; }, t.prototype.getSeriesByType = function(r) { - return Fr(this._componentsMap.get("series"), function(n) { + return Nr(this._componentsMap.get("series"), function(n) { return !!n && n.subType === r; }); }, t.prototype.getSeries = function() { - return Fr(this._componentsMap.get("series"), function(r) { + return Nr(this._componentsMap.get("series"), function(r) { return !!r; }); }, t.prototype.getSeriesCount = function() { return this._componentsCount.get("series"); }, t.prototype.eachSeries = function(r, n) { - Xp(this), z(this._seriesIndices, function(i) { + Qp(this), z(this._seriesIndices, function(i) { var o = this._componentsMap.get("series")[i]; r.call(n, o, i); }, this); @@ -58730,97 +58771,97 @@ echarts.use([` + D + "]);" : "Unknown series " + _)); i && r.call(n, i, i.componentIndex); }); }, t.prototype.eachSeriesByType = function(r, n, i) { - Xp(this), z(this._seriesIndices, function(o) { + Qp(this), z(this._seriesIndices, function(o) { var a = this._componentsMap.get("series")[o]; a.subType === r && n.call(i, a, o); }, this); }, t.prototype.eachRawSeriesByType = function(r, n, i) { return z(this.getSeriesByType(r), n, i); }, t.prototype.isSeriesFiltered = function(r) { - return Xp(this), this._seriesIndicesMap.get(r.componentIndex) == null; + return Qp(this), this._seriesIndicesMap.get(r.componentIndex) == null; }, t.prototype.getCurrentSeriesIndices = function() { return (this._seriesIndices || []).slice(); }, t.prototype.filterSeries = function(r, n) { - Xp(this); + Qp(this); var i = []; z(this._seriesIndices, function(o) { var a = this._componentsMap.get("series")[o]; r.call(n, a, o) && i.push(o); }, this), this._seriesIndices = i, this._seriesIndicesMap = ft(i); }, t.prototype.restoreData = function(r) { - c0(this); + h0(this); var n = this._componentsMap, i = []; n.each(function(o, a) { Qt.hasClass(a) && i.push(a); }), Qt.topologicalTravel(i, Qt.getAllClassMainTypes(), function(o) { z(n.get(o), function(a) { - a && (o !== "series" || !bAe(a, r)) && a.restoreData(); + a && (o !== "series" || !AAe(a, r)) && a.restoreData(); }); }); }, t.internalField = function() { - c0 = function(r) { + h0 = function(r) { var n = r._seriesIndices = []; z(r._componentsMap.get("series"), function(i) { i && n.push(i.componentIndex); }), r._seriesIndicesMap = ft(n); - }, Xp = function(r) { + }, Qp = function(r) { if (process.env.NODE_ENV !== "production" && !r._seriesIndices) throw new Error("Option should contains series."); - }, B8 = function(r, n) { - r.option = {}, r.option[yE] = V8, r._componentsMap = ft({ + }, H8 = function(r, n) { + r.option = {}, r.option[yE] = z8, r._componentsMap = ft({ series: [] }), r._componentsCount = ft(); var i = n.aria; - St(i) && i.enabled == null && (i.enabled = !0), wAe(n, r._theme.option), Wt(n, uAe, !1), r._mergeOption(n, null); + bt(i) && i.enabled == null && (i.enabled = !0), OAe(n, r._theme.option), jt(n, bAe, !1), r._mergeOption(n, null); }; }(), t; }(Gr) ); -function bAe(e, t) { +function AAe(e, t) { if (t) { var r = t.seriesIndex, n = t.seriesId, i = t.seriesName; return r != null && e.componentIndex !== r || n != null && e.id !== n || i != null && e.name !== i; } } -function wAe(e, t) { +function OAe(e, t) { var r = e.color && !e.colorLayer; z(t, function(n, i) { - i === "colorLayer" && r || Qt.hasClass(i) || (typeof n == "object" ? e[i] = e[i] ? Wt(e[i], n, !1) : _t(n) : e[i] == null && (e[i] = n)); + i === "colorLayer" && r || Qt.hasClass(i) || (typeof n == "object" ? e[i] = e[i] ? jt(e[i], n, !1) : _t(n) : e[i] == null && (e[i] = n)); }); } -function H8(e, t, r) { - if (Ie(t)) { +function G8(e, t, r) { + if (Ae(t)) { var n = ft(); return z(t, function(o) { if (o != null) { var a = qn(o, null); a != null && n.set(o, !0); } - }), Fr(r, function(o) { + }), Nr(r, function(o) { return o && n.get(o[e]); }); } else { var i = qn(t, null); - return Fr(r, function(o) { + return Nr(r, function(o) { return o && i != null && o[e] === i; }); } } -function z8(e, t) { - return t.hasOwnProperty("subType") ? Fr(e, function(r) { +function W8(e, t) { + return t.hasOwnProperty("subType") ? Nr(e, function(r) { return r && r.subType === t.subType; }) : e; } -function G8(e) { +function j8(e) { var t = ft(); return e && z(Wr(e.replaceMerge), function(r) { - process.env.NODE_ENV !== "production" && xt(Qt.hasClass(r), '"' + r + '" is not valid component main type in "replaceMerge"'), t.set(r, !0); + process.env.NODE_ENV !== "production" && Et(Qt.hasClass(r), '"' + r + '" is not valid component main type in "replaceMerge"'), t.set(r, !0); }), { replaceMergeMainTypeMap: t }; } In(dA, uA); -var xAe = [ +var LAe = [ "getDom", "getZr", "getWidth", @@ -58839,11 +58880,11 @@ var xAe = [ // 'getViewOfSeriesModel', "getId", "updateLabelLayout" -], wq = ( +], Rq = ( /** @class */ /* @__PURE__ */ function() { function e(t) { - z(xAe, function(r) { + z(LAe, function(r) { this[r] = at(t[r], t); }, this); } @@ -58873,7 +58914,7 @@ var xAe = [ return CE[t]; }, e; }() -), EAe = /^(min|max)?(.+)$/, RAe = ( +), FAe = /^(min|max)?(.+)$/, NAe = ( /** @class */ function() { function e(t) { @@ -58881,11 +58922,11 @@ var xAe = [ } return e.prototype.setOption = function(t, r, n) { t && (z(Wr(t.series), function(a) { - a && a.data && ki(a.data) && Bv(a.data); + a && a.data && ki(a.data) && Hv(a.data); }), z(Wr(t.dataset), function(a) { - a && a.source && ki(a.source) && Bv(a.source); + a && a.source && ki(a.source) && Hv(a.source); })), t = _t(t); - var i = this._optionBackup, o = PAe(t, r, !i); + var i = this._optionBackup, o = kAe(t, r, !i); this._newBaseOption = o.baseOption, i ? (o.timelineOptions.length && (i.timelineOptions = o.timelineOptions), o.mediaList.length && (i.mediaList = o.mediaList), o.mediaDefault && (i.mediaDefault = o.mediaDefault)) : this._optionBackup = o; }, e.prototype.mountOption = function(t) { var r = this._optionBackup; @@ -58905,18 +58946,18 @@ var xAe = [ if (!i.length && !o) return s; for (var l = 0, c = i.length; l < c; l++) - TAe(i[l].query, r, n) && a.push(l); - return !a.length && o && (a = [-1]), a.length && !MAe(a, this._currentMediaIndices) && (s = Fe(a, function(u) { + $Ae(i[l].query, r, n) && a.push(l); + return !a.length && o && (a = [-1]), a.length && !VAe(a, this._currentMediaIndices) && (s = Fe(a, function(u) { return _t(u === -1 ? o.option : i[u].option); })), this._currentMediaIndices = a, s; }, e; }() ); -function PAe(e, t, r) { +function kAe(e, t, r) { var n = [], i, o, a = e.baseOption, s = e.timeline, l = e.options, c = e.media, u = !!e.media, d = !!(l || s || a && a.timeline); - a ? (o = a, o.timeline || (o.timeline = s)) : ((d || u) && (e.options = e.media = null), o = e), u && (Ie(c) ? z(c, function(f) { - process.env.NODE_ENV !== "production" && f && !f.option && St(f.query) && St(f.query.option) && xi("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"), f && f.option && (f.query ? n.push(f) : i || (i = f)); - }) : process.env.NODE_ENV !== "production" && xi("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")), h(o), z(l, function(f) { + a ? (o = a, o.timeline || (o.timeline = s)) : ((d || u) && (e.options = e.media = null), o = e), u && (Ae(c) ? z(c, function(f) { + process.env.NODE_ENV !== "production" && f && !f.option && bt(f.query) && bt(f.query.option) && Ei("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"), f && f.option && (f.query ? n.push(f) : i || (i = f)); + }) : process.env.NODE_ENV !== "production" && Ei("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")), h(o), z(l, function(f) { return h(f); }), z(n, function(f) { return h(f.option); @@ -58933,7 +58974,7 @@ function PAe(e, t, r) { mediaList: n }; } -function TAe(e, t, r) { +function $Ae(e, t, r) { var n = { width: t, height: r, @@ -58941,53 +58982,53 @@ function TAe(e, t, r) { // lower case for convenience. }, i = !0; return z(e, function(o, a) { - var s = a.match(EAe); + var s = a.match(FAe); if (!(!s || !s[1] || !s[2])) { var l = s[1], c = s[2].toLowerCase(); - _Ae(n[c], o, l) || (i = !1); + BAe(n[c], o, l) || (i = !1); } }), i; } -function _Ae(e, t, r) { +function BAe(e, t, r) { return r === "min" ? e >= t : r === "max" ? e <= t : e === t; } -function MAe(e, t) { +function VAe(e, t) { return e.join(",") === t.join(","); } -var Jo = z, Zv = St, W8 = ["areaStyle", "lineStyle", "nodeStyle", "linkStyle", "chordStyle", "label", "labelLine"]; +var Jo = z, Jv = bt, U8 = ["areaStyle", "lineStyle", "nodeStyle", "linkStyle", "chordStyle", "label", "labelLine"]; function SE(e) { var t = e && e.itemStyle; if (t) - for (var r = 0, n = W8.length; r < n; r++) { - var i = W8[r], o = t.normal, a = t.emphasis; - o && o[i] && (process.env.NODE_ENV !== "production" && Nn("itemStyle.normal." + i, i), e[i] = e[i] || {}, e[i].normal ? Wt(e[i].normal, o[i]) : e[i].normal = o[i], o[i] = null), a && a[i] && (process.env.NODE_ENV !== "production" && Nn("itemStyle.emphasis." + i, "emphasis." + i), e[i] = e[i] || {}, e[i].emphasis ? Wt(e[i].emphasis, a[i]) : e[i].emphasis = a[i], a[i] = null); + for (var r = 0, n = U8.length; r < n; r++) { + var i = U8[r], o = t.normal, a = t.emphasis; + o && o[i] && (process.env.NODE_ENV !== "production" && Nn("itemStyle.normal." + i, i), e[i] = e[i] || {}, e[i].normal ? jt(e[i].normal, o[i]) : e[i].normal = o[i], o[i] = null), a && a[i] && (process.env.NODE_ENV !== "production" && Nn("itemStyle.emphasis." + i, "emphasis." + i), e[i] = e[i] || {}, e[i].emphasis ? jt(e[i].emphasis, a[i]) : e[i].emphasis = a[i], a[i] = null); } } function Ii(e, t, r) { if (e && e[t] && (e[t].normal || e[t].emphasis)) { var n = e[t].normal, i = e[t].emphasis; - n && (process.env.NODE_ENV !== "production" && Pa("'normal' hierarchy in " + t + " has been removed since 4.0. All style properties are configured in " + t + " directly now."), r ? (e[t].normal = e[t].emphasis = null, wt(e[t], n)) : e[t] = n), i && (process.env.NODE_ENV !== "production" && Pa(t + ".emphasis has been changed to emphasis." + t + " since 4.0"), e.emphasis = e.emphasis || {}, e.emphasis[t] = i, i.focus && (e.emphasis.focus = i.focus), i.blurScope && (e.emphasis.blurScope = i.blurScope)); + n && (process.env.NODE_ENV !== "production" && Pa("'normal' hierarchy in " + t + " has been removed since 4.0. All style properties are configured in " + t + " directly now."), r ? (e[t].normal = e[t].emphasis = null, xt(e[t], n)) : e[t] = n), i && (process.env.NODE_ENV !== "production" && Pa(t + ".emphasis has been changed to emphasis." + t + " since 4.0"), e.emphasis = e.emphasis || {}, e.emphasis[t] = i, i.focus && (e.emphasis.focus = i.focus), i.blurScope && (e.emphasis.blurScope = i.blurScope)); } } -function Dg(e) { +function Ag(e) { Ii(e, "itemStyle"), Ii(e, "lineStyle"), Ii(e, "areaStyle"), Ii(e, "label"), Ii(e, "labelLine"), Ii(e, "upperLabel"), Ii(e, "edgeLabel"); } function Gn(e, t) { - var r = Zv(e) && e[t], n = Zv(r) && r.textStyle; + var r = Jv(e) && e[t], n = Jv(r) && r.textStyle; if (n) { process.env.NODE_ENV !== "production" && Pa("textStyle hierarchy in " + t + " has been removed since 4.0. All textStyle properties are configured in " + t + " directly now."); - for (var i = 0, o = Y4.length; i < o; i++) { - var a = Y4[i]; + for (var i = 0, o = X4.length; i < o; i++) { + var a = X4[i]; n.hasOwnProperty(a) && (r[a] = n[a]); } } } function sa(e) { - e && (Dg(e), Gn(e, "label"), e.emphasis && Gn(e.emphasis, "label")); + e && (Ag(e), Gn(e, "label"), e.emphasis && Gn(e.emphasis, "label")); } -function DAe(e) { - if (Zv(e)) { - SE(e), Dg(e), Gn(e, "label"), Gn(e, "upperLabel"), Gn(e, "edgeLabel"), e.emphasis && (Gn(e.emphasis, "label"), Gn(e.emphasis, "upperLabel"), Gn(e.emphasis, "edgeLabel")); +function HAe(e) { + if (Jv(e)) { + SE(e), Ag(e), Gn(e, "label"), Gn(e, "upperLabel"), Gn(e, "edgeLabel"), e.emphasis && (Gn(e.emphasis, "label"), Gn(e.emphasis, "upperLabel"), Gn(e.emphasis, "edgeLabel")); var t = e.markPoint; t && (SE(t), sa(t)); var r = e.markLine; @@ -59002,7 +59043,7 @@ function DAe(e) { for (var a = 0; a < o.length; a++) sa(o[a]); z(e.categories, function(c) { - Dg(c); + Ag(c); }); } if (i && !ki(i)) @@ -59013,69 +59054,69 @@ function DAe(e) { sa(s[a]); if (r = e.markLine, r && r.data) for (var l = r.data, a = 0; a < l.length; a++) - Ie(l[a]) ? (sa(l[a][0]), sa(l[a][1])) : sa(l[a]); + Ae(l[a]) ? (sa(l[a][0]), sa(l[a][1])) : sa(l[a]); e.type === "gauge" ? (Gn(e, "axisLabel"), Gn(e, "title"), Gn(e, "detail")) : e.type === "treemap" ? (Ii(e.breadcrumb, "itemStyle"), z(e.levels, function(c) { - Dg(c); - })) : e.type === "tree" && Dg(e.leaves); + Ag(c); + })) : e.type === "tree" && Ag(e.leaves); } } -function dl(e) { - return Ie(e) ? e : e ? [e] : []; +function hl(e) { + return Ae(e) ? e : e ? [e] : []; } -function j8(e) { - return (Ie(e) ? e[0] : e) || {}; +function K8(e) { + return (Ae(e) ? e[0] : e) || {}; } -function IAe(e, t) { - Jo(dl(e.series), function(n) { - Zv(n) && DAe(n); +function zAe(e, t) { + Jo(hl(e.series), function(n) { + Jv(n) && HAe(n); }); var r = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "parallelAxis", "radar"]; t && r.push("valueAxis", "categoryAxis", "logAxis", "timeAxis"), Jo(r, function(n) { - Jo(dl(e[n]), function(i) { + Jo(hl(e[n]), function(i) { i && (Gn(i, "axisLabel"), Gn(i.axisPointer, "label")); }); - }), Jo(dl(e.parallel), function(n) { + }), Jo(hl(e.parallel), function(n) { var i = n && n.parallelAxisDefault; Gn(i, "axisLabel"), Gn(i && i.axisPointer, "label"); - }), Jo(dl(e.calendar), function(n) { + }), Jo(hl(e.calendar), function(n) { Ii(n, "itemStyle"), Gn(n, "dayLabel"), Gn(n, "monthLabel"), Gn(n, "yearLabel"); - }), Jo(dl(e.radar), function(n) { + }), Jo(hl(e.radar), function(n) { Gn(n, "name"), n.name && n.axisName == null && (n.axisName = n.name, delete n.name, process.env.NODE_ENV !== "production" && Pa("name property in radar component has been changed to axisName")), n.nameGap != null && n.axisNameGap == null && (n.axisNameGap = n.nameGap, delete n.nameGap, process.env.NODE_ENV !== "production" && Pa("nameGap property in radar component has been changed to axisNameGap")), process.env.NODE_ENV !== "production" && Jo(n.indicator, function(i) { i.text && Nn("text", "name", "radar.indicator"); }); - }), Jo(dl(e.geo), function(n) { - Zv(n) && (sa(n), Jo(dl(n.regions), function(i) { + }), Jo(hl(e.geo), function(n) { + Jv(n) && (sa(n), Jo(hl(n.regions), function(i) { sa(i); })); - }), Jo(dl(e.timeline), function(n) { + }), Jo(hl(e.timeline), function(n) { sa(n), Ii(n, "label"), Ii(n, "itemStyle"), Ii(n, "controlStyle", !0); var i = n.data; - Ie(i) && z(i, function(o) { - St(o) && (Ii(o, "label"), Ii(o, "itemStyle")); + Ae(i) && z(i, function(o) { + bt(o) && (Ii(o, "label"), Ii(o, "itemStyle")); }); - }), Jo(dl(e.toolbox), function(n) { + }), Jo(hl(e.toolbox), function(n) { Ii(n, "iconStyle"), Jo(n.feature, function(i) { Ii(i, "iconStyle"); }); - }), Gn(j8(e.axisPointer), "label"), Gn(j8(e.tooltip).axisPointer, "label"); + }), Gn(K8(e.axisPointer), "label"), Gn(K8(e.tooltip).axisPointer, "label"); } -function AAe(e, t) { +function GAe(e, t) { for (var r = t.split(","), n = e, i = 0; i < r.length && (n = n && n[r[i]], n != null); i++) ; return n; } -function OAe(e, t, r, n) { +function WAe(e, t, r, n) { for (var i = t.split(","), o = e, a, s = 0; s < i.length - 1; s++) a = i[s], o[a] == null && (o[a] = {}), o = o[a]; o[i[s]] == null && (o[i[s]] = r); } -function U8(e) { - e && z(LAe, function(t) { +function Y8(e) { + e && z(jAe, function(t) { t[0] in e && !(t[1] in e) && (e[t[1]] = e[t[0]]); }); } -var LAe = [["x", "left"], ["y", "top"], ["x2", "right"], ["y2", "bottom"]], FAe = ["grid", "geo", "parallel", "legend", "toolbox", "title", "visualMap", "dataZoom", "timeline"], bE = [["borderRadius", "barBorderRadius"], ["borderColor", "barBorderColor"], ["borderWidth", "barBorderWidth"]]; -function Zp(e) { +var jAe = [["x", "left"], ["y", "top"], ["x2", "right"], ["y2", "bottom"]], UAe = ["grid", "geo", "parallel", "legend", "toolbox", "title", "visualMap", "dataZoom", "timeline"], bE = [["borderRadius", "barBorderRadius"], ["borderColor", "barBorderColor"], ["borderWidth", "barBorderWidth"]]; +function Jp(e) { var t = e && e.itemStyle; if (t) for (var r = 0; r < bE.length; r++) { @@ -59083,56 +59124,56 @@ function Zp(e) { t[n] != null && (t[i] = t[n], process.env.NODE_ENV !== "production" && Nn(n, i)); } } -function K8(e) { +function q8(e) { e && e.alignTo === "edge" && e.margin != null && e.edgeDistance == null && (process.env.NODE_ENV !== "production" && Nn("label.margin", "label.edgeDistance", "pie"), e.edgeDistance = e.margin); } -function Y8(e) { +function X8(e) { e && e.downplay && !e.blur && (e.blur = e.downplay, process.env.NODE_ENV !== "production" && Nn("downplay", "blur", "sunburst")); } -function NAe(e) { +function KAe(e) { e && e.focusNodeAdjacency != null && (e.emphasis = e.emphasis || {}, e.emphasis.focus == null && (process.env.NODE_ENV !== "production" && Nn("focusNodeAdjacency", "emphasis: { focus: 'adjacency'}", "graph/sankey"), e.emphasis.focus = "adjacency")); } -function xq(e, t) { +function Pq(e, t) { if (e) for (var r = 0; r < e.length; r++) - t(e[r]), e[r] && xq(e[r].children, t); + t(e[r]), e[r] && Pq(e[r].children, t); } -function Eq(e, t) { - IAe(e, t), e.series = Wr(e.series), z(e.series, function(r) { - if (St(r)) { +function Tq(e, t) { + zAe(e, t), e.series = Wr(e.series), z(e.series, function(r) { + if (bt(r)) { var n = r.type; if (n === "line") r.clipOverflow != null && (r.clip = r.clipOverflow, process.env.NODE_ENV !== "production" && Nn("clipOverflow", "clip", "line")); else if (n === "pie" || n === "gauge") { - r.clockWise != null && (r.clockwise = r.clockWise, process.env.NODE_ENV !== "production" && Nn("clockWise", "clockwise")), K8(r.label); + r.clockWise != null && (r.clockwise = r.clockWise, process.env.NODE_ENV !== "production" && Nn("clockWise", "clockwise")), q8(r.label); var i = r.data; if (i && !ki(i)) for (var o = 0; o < i.length; o++) - K8(i[o]); + q8(i[o]); r.hoverOffset != null && (r.emphasis = r.emphasis || {}, (r.emphasis.scaleSize = null) && (process.env.NODE_ENV !== "production" && Nn("hoverOffset", "emphasis.scaleSize"), r.emphasis.scaleSize = r.hoverOffset)); } else if (n === "gauge") { - var a = AAe(r, "pointer.color"); - a != null && OAe(r, "itemStyle.color", a); + var a = GAe(r, "pointer.color"); + a != null && WAe(r, "itemStyle.color", a); } else if (n === "bar") { - Zp(r), Zp(r.backgroundStyle), Zp(r.emphasis); + Jp(r), Jp(r.backgroundStyle), Jp(r.emphasis); var i = r.data; if (i && !ki(i)) for (var o = 0; o < i.length; o++) - typeof i[o] == "object" && (Zp(i[o]), Zp(i[o] && i[o].emphasis)); + typeof i[o] == "object" && (Jp(i[o]), Jp(i[o] && i[o].emphasis)); } else if (n === "sunburst") { var s = r.highlightPolicy; - s && (r.emphasis = r.emphasis || {}, r.emphasis.focus || (r.emphasis.focus = s, process.env.NODE_ENV !== "production" && Nn("highlightPolicy", "emphasis.focus", "sunburst"))), Y8(r), xq(r.data, Y8); - } else n === "graph" || n === "sankey" ? NAe(r) : n === "map" && (r.mapType && !r.map && (process.env.NODE_ENV !== "production" && Nn("mapType", "map", "map"), r.map = r.mapType), r.mapLocation && (process.env.NODE_ENV !== "production" && Pa("`mapLocation` is not used anymore."), wt(r, r.mapLocation))); - r.hoverAnimation != null && (r.emphasis = r.emphasis || {}, r.emphasis && r.emphasis.scale == null && (process.env.NODE_ENV !== "production" && Nn("hoverAnimation", "emphasis.scale"), r.emphasis.scale = r.hoverAnimation)), U8(r); + s && (r.emphasis = r.emphasis || {}, r.emphasis.focus || (r.emphasis.focus = s, process.env.NODE_ENV !== "production" && Nn("highlightPolicy", "emphasis.focus", "sunburst"))), X8(r), Pq(r.data, X8); + } else n === "graph" || n === "sankey" ? KAe(r) : n === "map" && (r.mapType && !r.map && (process.env.NODE_ENV !== "production" && Nn("mapType", "map", "map"), r.map = r.mapType), r.mapLocation && (process.env.NODE_ENV !== "production" && Pa("`mapLocation` is not used anymore."), xt(r, r.mapLocation))); + r.hoverAnimation != null && (r.emphasis = r.emphasis || {}, r.emphasis && r.emphasis.scale == null && (process.env.NODE_ENV !== "production" && Nn("hoverAnimation", "emphasis.scale"), r.emphasis.scale = r.hoverAnimation)), Y8(r); } - }), e.dataRange && (e.visualMap = e.dataRange), z(FAe, function(r) { + }), e.dataRange && (e.visualMap = e.dataRange), z(UAe, function(r) { var n = e[r]; - n && (Ie(n) || (n = [n]), z(n, function(i) { - U8(i); + n && (Ae(n) || (n = [n]), z(n, function(i) { + Y8(i); })); }); } -function kAe(e) { +function YAe(e) { var t = ft(); e.eachSeries(function(r) { var n = r.get("stack"); @@ -59152,9 +59193,9 @@ function kAe(e) { return; i.length && o.setCalculationInfo("stackedOnSeries", i[i.length - 1].seriesModel), i.push(a); } - }), t.each($Ae); + }), t.each(qAe); } -function $Ae(e) { +function qAe(e) { z(e, function(t, r) { var n = [], i = [NaN, NaN], o = [t.stackResultDimension, t.stackedOverDimension], a = t.data, s = t.isStackedByIndex, l = t.seriesModel.get("stackStrategy") || "samesign"; a.modify(o, function(c, u, d) { @@ -59168,7 +59209,7 @@ function $Ae(e) { if (s || (p = m.data.rawIndexOf(m.stackedByDimension, f)), p >= 0) { var y = m.data.getByRawIndex(m.stackResultDimension, p); if (l === "all" || l === "positive" && y > 0 || l === "negative" && y < 0 || l === "samesign" && h >= 0 && y > 0 || l === "samesign" && h <= 0 && y < 0) { - h = TDe(h, y), g = y; + h = $2e(h, y), g = y; break; } } @@ -59181,12 +59222,12 @@ var qw = ( /** @class */ /* @__PURE__ */ function() { function e(t) { - this.data = t.data || (t.sourceFormat === tl ? {} : []), this.sourceFormat = t.sourceFormat || vq, this.seriesLayoutBy = t.seriesLayoutBy || Vs, this.startIndex = t.startIndex || 0, this.dimensionsDetectedCount = t.dimensionsDetectedCount, this.metaRawOption = t.metaRawOption; + this.data = t.data || (t.sourceFormat === rl ? {} : []), this.sourceFormat = t.sourceFormat || Cq, this.seriesLayoutBy = t.seriesLayoutBy || Vs, this.startIndex = t.startIndex || 0, this.dimensionsDetectedCount = t.dimensionsDetectedCount, this.metaRawOption = t.metaRawOption; var r = this.dimensionsDefine = t.dimensionsDefine; if (r) for (var n = 0; n < r.length; n++) { var i = r[n]; - i.type == null && Cq(this, n) === Ci.Must && (i.type = "ordinal"); + i.type == null && wq(this, n) === Si.Must && (i.type = "ordinal"); } } return e; @@ -59196,8 +59237,8 @@ function hA(e) { return e instanceof qw; } function tM(e, t, r) { - r = r || Rq(e); - var n = t.seriesLayoutBy, i = VAe(e, r, n, t.sourceHeader, t.dimensions), o = new qw({ + r = r || _q(e); + var n = t.seriesLayoutBy, i = ZAe(e, r, n, t.sourceHeader, t.dimensions), o = new qw({ data: e, sourceFormat: r, seriesLayoutBy: n, @@ -59211,10 +59252,10 @@ function tM(e, t, r) { function fA(e) { return new qw({ data: e, - sourceFormat: ki(e) ? Ml : Aa + sourceFormat: ki(e) ? Dl : Aa }); } -function BAe(e) { +function XAe(e) { return new qw({ data: e.data, sourceFormat: e.sourceFormat, @@ -59224,75 +59265,75 @@ function BAe(e) { dimensionsDetectedCount: e.dimensionsDetectedCount }); } -function Rq(e) { - var t = vq; +function _q(e) { + var t = Cq; if (ki(e)) - t = Ml; - else if (Ie(e)) { + t = Dl; + else if (Ae(e)) { e.length === 0 && (t = $i); for (var r = 0, n = e.length; r < n; r++) { var i = e[r]; if (i != null) { - if (Ie(i) || ki(i)) { + if (Ae(i) || ki(i)) { t = $i; break; - } else if (St(i)) { + } else if (bt(i)) { t = Oa; break; } } } - } else if (St(e)) { + } else if (bt(e)) { for (var o in e) - if (lt(e, o) && wi(e[o])) { - t = tl; + if (lt(e, o) && xi(e[o])) { + t = rl; break; } } return t; } -function VAe(e, t, r, n, i) { +function ZAe(e, t, r, n, i) { var o, a; if (!e) return { - dimensionsDefine: q8(i), + dimensionsDefine: Z8(i), startIndex: a, dimensionsDetectedCount: o }; if (t === $i) { var s = e; - n === "auto" || n == null ? X8(function(c) { + n === "auto" || n == null ? Q8(function(c) { c != null && c !== "-" && (Je(c) ? a == null && (a = 1) : a = 0); - }, r, s, 10) : a = Cr(n) ? n : n ? 1 : 0, !i && a === 1 && (i = [], X8(function(c, u) { + }, r, s, 10) : a = Cr(n) ? n : n ? 1 : 0, !i && a === 1 && (i = [], Q8(function(c, u) { i[u] = c != null ? c + "" : ""; - }, r, s, 1 / 0)), o = i ? i.length : r === Cp ? s.length : s[0] ? s[0].length : null; + }, r, s, 1 / 0)), o = i ? i.length : r === bp ? s.length : s[0] ? s[0].length : null; } else if (t === Oa) - i || (i = HAe(e)); - else if (t === tl) + i || (i = QAe(e)); + else if (t === rl) i || (i = [], z(e, function(c, u) { i.push(u); })); else if (t === Aa) { - var l = up(e[0]); - o = Ie(l) && l.length || 1; - } else t === Ml && process.env.NODE_ENV !== "production" && xt(!!i, "dimensions must be given if data is TypedArray."); + var l = hp(e[0]); + o = Ae(l) && l.length || 1; + } else t === Dl && process.env.NODE_ENV !== "production" && Et(!!i, "dimensions must be given if data is TypedArray."); return { startIndex: a, - dimensionsDefine: q8(i), + dimensionsDefine: Z8(i), dimensionsDetectedCount: o }; } -function HAe(e) { +function QAe(e) { for (var t = 0, r; t < e.length && !(r = e[t++]); ) ; if (r) return ar(r); } -function q8(e) { +function Z8(e) { if (e) { var t = ft(); return Fe(e, function(r, n) { - r = St(r) ? r : { + r = bt(r) ? r : { name: r }; var i = { @@ -59310,31 +59351,31 @@ function q8(e) { }); } } -function X8(e, t, r, n) { - if (t === Cp) +function Q8(e, t, r, n) { + if (t === bp) for (var i = 0; i < r.length && i < n; i++) e(r[i] ? r[i][0] : null, i); else for (var o = r[0] || [], i = 0; i < o.length && i < n; i++) e(o[i], i); } -function Pq(e) { +function Mq(e) { var t = e.sourceFormat; - return t === Oa || t === tl; + return t === Oa || t === rl; } -var Eu, Ru, Pu, Z8, Q8, Tq = ( +var Eu, Ru, Pu, J8, eB, Dq = ( /** @class */ function() { function e(t, r) { var n = hA(t) ? t : fA(t); this._source = n; var i = this._data = n.data; - if (n.sourceFormat === Ml) { + if (n.sourceFormat === Dl) { if (process.env.NODE_ENV !== "production" && r == null) throw new Error("Typed array data must specify dimension size"); this._offset = 0, this._dimSize = r, this._data = i; } - Q8(this, i, n); + eB(this, i, n); } return e.prototype.getSource = function() { return this._source; @@ -59348,14 +59389,14 @@ var Eu, Ru, Pu, Z8, Q8, Tq = ( t.pure = !1, t.persistent = !0; }(), e.internalField = function() { var t; - Q8 = function(a, s, l) { - var c = l.sourceFormat, u = l.seriesLayoutBy, d = l.startIndex, h = l.dimensionsDefine, f = Z8[pA(c, u)]; - if (process.env.NODE_ENV !== "production" && xt(f, "Invalide sourceFormat: " + c), Pe(a, f), c === Ml) + eB = function(a, s, l) { + var c = l.sourceFormat, u = l.seriesLayoutBy, d = l.startIndex, h = l.dimensionsDefine, f = J8[pA(c, u)]; + if (process.env.NODE_ENV !== "production" && Et(f, "Invalide sourceFormat: " + c), Pe(a, f), c === Dl) a.getItem = r, a.count = i, a.fillStorage = n; else { - var p = _q(c, u); + var p = Iq(c, u); a.getItem = at(p, null, s, d, h); - var g = Mq(c, u); + var g = Aq(c, u); a.count = at(g, null, s, d, h); } }; @@ -59375,10 +59416,10 @@ var Eu, Ru, Pu, Z8, Q8, Tq = ( }, i = function() { return this._data ? this._data.length / this._dimSize : 0; }; - Z8 = (t = {}, t[$i + "_" + Vs] = { + J8 = (t = {}, t[$i + "_" + Vs] = { pure: !0, appendData: o - }, t[$i + "_" + Cp] = { + }, t[$i + "_" + bp] = { pure: !0, appendData: function() { throw new Error('Do not support appendData when set seriesLayoutBy: "row".'); @@ -59386,7 +59427,7 @@ var Eu, Ru, Pu, Z8, Q8, Tq = ( }, t[Oa] = { pure: !0, appendData: o - }, t[tl] = { + }, t[rl] = { pure: !0, appendData: function(a) { var s = this._data; @@ -59397,11 +59438,11 @@ var Eu, Ru, Pu, Z8, Q8, Tq = ( } }, t[Aa] = { appendData: o - }, t[Ml] = { + }, t[Dl] = { persistent: !1, pure: !0, appendData: function(a) { - process.env.NODE_ENV !== "production" && xt(ki(a), "Added data must be TypedArray if data in initialization is TypedArray"), this._data = a; + process.env.NODE_ENV !== "production" && Et(ki(a), "Added data must be TypedArray if data in initialization is TypedArray"), this._data = a; }, // Clean self if data is already used. clean: function() { @@ -59414,18 +59455,18 @@ var Eu, Ru, Pu, Z8, Q8, Tq = ( } }(), e; }() -), J8 = function(e, t, r, n) { +), tB = function(e, t, r, n) { return e[n]; -}, zAe = (Eu = {}, Eu[$i + "_" + Vs] = function(e, t, r, n) { +}, JAe = (Eu = {}, Eu[$i + "_" + Vs] = function(e, t, r, n) { return e[n + t]; -}, Eu[$i + "_" + Cp] = function(e, t, r, n, i) { +}, Eu[$i + "_" + bp] = function(e, t, r, n, i) { n += t; for (var o = i || [], a = e, s = 0; s < a.length; s++) { var l = a[s]; o[s] = l ? l[n] : null; } return o; -}, Eu[Oa] = J8, Eu[tl] = function(e, t, r, n, i) { +}, Eu[Oa] = tB, Eu[rl] = function(e, t, r, n, i) { for (var o = i || [], a = 0; a < r.length; a++) { var s = r[a].name; if (process.env.NODE_ENV !== "production" && s == null) @@ -59434,60 +59475,60 @@ var Eu, Ru, Pu, Z8, Q8, Tq = ( o[a] = l ? l[n] : null; } return o; -}, Eu[Aa] = J8, Eu); -function _q(e, t) { - var r = zAe[pA(e, t)]; - return process.env.NODE_ENV !== "production" && xt(r, 'Do not support get item on "' + e + '", "' + t + '".'), r; +}, Eu[Aa] = tB, Eu); +function Iq(e, t) { + var r = JAe[pA(e, t)]; + return process.env.NODE_ENV !== "production" && Et(r, 'Do not support get item on "' + e + '", "' + t + '".'), r; } -var eB = function(e, t, r) { +var rB = function(e, t, r) { return e.length; -}, GAe = (Ru = {}, Ru[$i + "_" + Vs] = function(e, t, r) { +}, eOe = (Ru = {}, Ru[$i + "_" + Vs] = function(e, t, r) { return Math.max(0, e.length - t); -}, Ru[$i + "_" + Cp] = function(e, t, r) { +}, Ru[$i + "_" + bp] = function(e, t, r) { var n = e[0]; return n ? Math.max(0, n.length - t) : 0; -}, Ru[Oa] = eB, Ru[tl] = function(e, t, r) { +}, Ru[Oa] = rB, Ru[rl] = function(e, t, r) { var n = r[0].name; if (process.env.NODE_ENV !== "production" && n == null) throw new Error(); var i = e[n]; return i ? i.length : 0; -}, Ru[Aa] = eB, Ru); -function Mq(e, t) { - var r = GAe[pA(e, t)]; - return process.env.NODE_ENV !== "production" && xt(r, 'Do not support count on "' + e + '", "' + t + '".'), r; +}, Ru[Aa] = rB, Ru); +function Aq(e, t) { + var r = eOe[pA(e, t)]; + return process.env.NODE_ENV !== "production" && Et(r, 'Do not support count on "' + e + '", "' + t + '".'), r; } var wE = function(e, t, r) { return e[t]; -}, WAe = (Pu = {}, Pu[$i] = wE, Pu[Oa] = function(e, t, r) { +}, tOe = (Pu = {}, Pu[$i] = wE, Pu[Oa] = function(e, t, r) { return e[r]; -}, Pu[tl] = wE, Pu[Aa] = function(e, t, r) { - var n = up(e); +}, Pu[rl] = wE, Pu[Aa] = function(e, t, r) { + var n = hp(e); return n instanceof Array ? n[t] : n; -}, Pu[Ml] = wE, Pu); -function Dq(e) { - var t = WAe[e]; - return process.env.NODE_ENV !== "production" && xt(t, 'Do not support get value on "' + e + '".'), t; +}, Pu[Dl] = wE, Pu); +function Oq(e) { + var t = tOe[e]; + return process.env.NODE_ENV !== "production" && Et(t, 'Do not support get value on "' + e + '".'), t; } function pA(e, t) { return e === $i ? e + "_" + t : e; } -function $f(e, t, r) { +function Vf(e, t, r) { if (e) { var n = e.getRawDataItem(t); if (n != null) { var i = e.getStore(), o = i.getSource().sourceFormat; if (r != null) { var a = e.getDimensionIndex(r), s = i.getDimensionProperty(a); - return Dq(o)(n, a, s); + return Oq(o)(n, a, s); } else { var l = n; - return o === Aa && (l = up(n)), l; + return o === Aa && (l = hp(n)), l; } } } } -var jAe = /\{@(.+?)\}/g, Xw = ( +var rOe = /\{@(.+?)\}/g, Xw = ( /** @class */ function() { function e() { @@ -59517,19 +59558,19 @@ var jAe = /\{@(.+?)\}/g, Xw = ( }, e.prototype.getFormattedLabel = function(t, r, n, i, o, a) { r = r || "normal"; var s = this.getData(n), l = this.getDataParams(t, n); - if (a && (l.value = a.interpolatedValue), i != null && Ie(l.value) && (l.value = l.value[i]), !o) { + if (a && (l.value = a.interpolatedValue), i != null && Ae(l.value) && (l.value = l.value[i]), !o) { var c = s.getItemModel(t); o = c.get(r === "normal" ? ["label", "formatter"] : [r, "label", "formatter"]); } - if (vt(o)) + if (mt(o)) return l.status = r, l.dimensionIndex = i, o(l); if (Je(o)) { var u = aA(o, l); - return u.replace(jAe, function(d, h) { + return u.replace(rOe, function(d, h) { var f = h.length, p = h; - p.charAt(0) === "[" && p.charAt(f - 1) === "]" && (p = +p.slice(1, f - 1), process.env.NODE_ENV !== "production" && isNaN(p) && xi("Invalide label formatter: @" + h + ", only support @[0], @[1], @[2], ...")); - var g = $f(s, t, p); - if (a && Ie(a.interpolatedValue)) { + p.charAt(0) === "[" && p.charAt(f - 1) === "]" && (p = +p.slice(1, f - 1), process.env.NODE_ENV !== "production" && isNaN(p) && Ei("Invalide label formatter: @" + h + ", only support @[0], @[1], @[2], ...")); + var g = Vf(s, t, p); + if (a && Ae(a.interpolatedValue)) { var v = s.getDimensionIndex(p); v >= 0 && (g = a.interpolatedValue[v]); } @@ -59537,23 +59578,23 @@ var jAe = /\{@(.+?)\}/g, Xw = ( }); } }, e.prototype.getRawValue = function(t, r) { - return $f(this.getData(r), t); + return Vf(this.getData(r), t); }, e.prototype.formatTooltip = function(t, r, n) { }, e; }() ); -function tB(e) { +function nB(e) { var t, r; - return St(e) ? e.type ? r = e : process.env.NODE_ENV !== "production" && console.warn("The return type of `formatTooltip` is not supported: " + ro(e)) : t = e, { + return bt(e) ? e.type ? r = e : process.env.NODE_ENV !== "production" && console.warn("The return type of `formatTooltip` is not supported: " + ro(e)) : t = e, { text: t, // markers: markers || markersExisting, frag: r }; } -function lv(e) { - return new UAe(e); +function uv(e) { + return new nOe(e); } -var UAe = ( +var nOe = ( /** @class */ function() { function e(t) { @@ -59576,11 +59617,11 @@ var UAe = ( var d; (this._dirty || o === "reset") && (this._dirty = !1, d = this._doReset(n)), this._modBy = l, this._modDataCount = c; var h = t && t.step; - if (r ? (process.env.NODE_ENV !== "production" && xt(r._outputDueEnd != null), this._dueEnd = r._outputDueEnd) : (process.env.NODE_ENV !== "production" && xt(!this._progress || this._count), this._dueEnd = this._count ? this._count(this.context) : 1 / 0), this._progress) { + if (r ? (process.env.NODE_ENV !== "production" && Et(r._outputDueEnd != null), this._dueEnd = r._outputDueEnd) : (process.env.NODE_ENV !== "production" && Et(!this._progress || this._count), this._dueEnd = this._count ? this._count(this.context) : 1 / 0), this._progress) { var f = this._dueIndex, p = Math.min(h != null ? this._dueIndex + h : 1 / 0, this._dueEnd); if (!n && (d || f < p)) { var g = this._progress; - if (Ie(g)) + if (Ae(g)) for (var v = 0; v < g.length; v++) this._doProgress(g[v], f, p, l, c); else @@ -59588,29 +59629,29 @@ var UAe = ( } this._dueIndex = p; var m = this._settedOutputEnd != null ? this._settedOutputEnd : p; - process.env.NODE_ENV !== "production" && xt(m >= this._outputDueEnd), this._outputDueEnd = m; + process.env.NODE_ENV !== "production" && Et(m >= this._outputDueEnd), this._outputDueEnd = m; } else this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd; return this.unfinished(); }, e.prototype.dirty = function() { this._dirty = !0, this._onDirty && this._onDirty(this.context); }, e.prototype._doProgress = function(t, r, n, i, o) { - rB.reset(r, n, i, o), this._callingProgress = t, this._callingProgress({ + iB.reset(r, n, i, o), this._callingProgress = t, this._callingProgress({ start: r, end: n, count: n - r, - next: rB.next + next: iB.next }, this.context); }, e.prototype._doReset = function(t) { this._dueIndex = this._outputDueEnd = this._dueEnd = 0, this._settedOutputEnd = null; var r, n; - !t && this._reset && (r = this._reset(this.context), r && r.progress && (n = r.forceFirstProgress, r = r.progress), Ie(r) && !r.length && (r = null)), this._progress = r, this._modBy = this._modDataCount = null; + !t && this._reset && (r = this._reset(this.context), r && r.progress && (n = r.forceFirstProgress, r = r.progress), Ae(r) && !r.length && (r = null)), this._progress = r, this._modBy = this._modDataCount = null; var i = this._downstream; return i && i.dirty(), n; }, e.prototype.unfinished = function() { return this._progress && this._dueIndex < this._dueEnd; }, e.prototype.pipe = function(t) { - process.env.NODE_ENV !== "production" && xt(t && !t._disposed && t !== this), (this._downstream !== t || this._dirty) && (this._downstream = t, t._upstream = this, t.dirty()); + process.env.NODE_ENV !== "production" && Et(t && !t._disposed && t !== this), (this._downstream !== t || this._dirty) && (this._downstream = t, t._upstream = this, t.dirty()); }, e.prototype.dispose = function() { this._disposed || (this._upstream && (this._upstream._downstream = null), this._downstream && (this._downstream._upstream = null), this._dirty = !1, this._disposed = !0); }, e.prototype.getUpstream = function() { @@ -59621,7 +59662,7 @@ var UAe = ( this._outputDueEnd = this._settedOutputEnd = t; }, e; }() -), rB = /* @__PURE__ */ function() { +), iB = /* @__PURE__ */ function() { var e, t, r, n, i, o = { reset: function(l, c, u, d) { t = l, e = c, r = u, n = d, i = Math.ceil(n / r), o.next = r > 1 && n > 0 ? s : a; @@ -59640,7 +59681,7 @@ function Ic(e, t) { var r = t && t.type; return r === "ordinal" ? e : (r === "time" && !Cr(e) && e != null && e !== "-" && (e = +jo(e)), e == null || e === "" ? NaN : Number(e)); } -var KAe = ft({ +var iOe = ft({ number: function(e) { return parseFloat(e); }, @@ -59651,10 +59692,10 @@ var KAe = ft({ return Je(e) ? ga(e) : e; } }); -function Iq(e) { - return KAe.get(e); +function Lq(e) { + return iOe.get(e); } -var Aq = { +var Fq = { lt: function(e, t) { return e < t; }, @@ -59667,7 +59708,7 @@ var Aq = { gte: function(e, t) { return e >= t; } -}, YAe = ( +}, oOe = ( /** @class */ function() { function e(t, r) { @@ -59675,13 +59716,13 @@ var Aq = { var n = ""; process.env.NODE_ENV !== "production" && (n = 'rvalue of "<", ">", "<=", ">=" can only be number in filter.'), Ir(n); } - this._opFn = Aq[t], this._rvalFloat = Ks(r); + this._opFn = Fq[t], this._rvalFloat = Ks(r); } return e.prototype.evaluate = function(t) { return Cr(t) ? this._opFn(t, this._rvalFloat) : this._opFn(Ks(t), this._rvalFloat); }, e; }() -), Oq = ( +), Nq = ( /** @class */ function() { function e(t, r) { @@ -59697,7 +59738,7 @@ var Aq = { return n < i ? this._resultLT : n > i ? -this._resultLT : 0; }, e; }() -), qAe = ( +), aOe = ( /** @class */ function() { function e(t, r) { @@ -59713,10 +59754,10 @@ var Aq = { }, e; }() ); -function XAe(e, t) { - return e === "eq" || e === "ne" ? new qAe(e === "eq", t) : lt(Aq, e) ? new YAe(e, t) : null; +function sOe(e, t) { + return e === "eq" || e === "ne" ? new aOe(e === "eq", t) : lt(Fq, e) ? new oOe(e, t) : null; } -var ZAe = ( +var lOe = ( /** @class */ function() { function e() { @@ -59736,8 +59777,8 @@ var ZAe = ( }, e; }() ); -function QAe(e, t) { - var r = new ZAe(), n = e.data, i = r.sourceFormat = e.sourceFormat, o = e.startIndex, a = ""; +function cOe(e, t) { + var r = new lOe(), n = e.data, i = r.sourceFormat = e.sourceFormat, o = e.startIndex, a = ""; e.seriesLayoutBy !== Vs && (process.env.NODE_ENV !== "production" && (a = '`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'), Ir(a)); var s = [], l = {}, c = e.dimensionsDefine; if (c) @@ -59757,13 +59798,13 @@ function QAe(e, t) { s.push({ index: u }); - var d = _q(i, Vs); + var d = Iq(i, Vs); t.__isBuiltIn && (r.getRawDataItem = function(g) { return d(n, o, s, g); - }, r.getRawData = at(JAe, null, e)), r.cloneRawData = at(eOe, null, e); - var h = Mq(i, Vs); + }, r.getRawData = at(uOe, null, e)), r.cloneRawData = at(dOe, null, e); + var h = Aq(i, Vs); r.count = at(h, null, n, o, s); - var f = Dq(i); + var f = Oq(i); r.retrieveValue = function(g, v) { var m = d(n, o, s, g); return p(m, v); @@ -59775,9 +59816,9 @@ function QAe(e, t) { return f(g, v, m.name); } }; - return r.getDimensionInfo = at(tOe, null, s, l), r.cloneAllDimensionInfo = at(rOe, null, s), r; + return r.getDimensionInfo = at(hOe, null, s, l), r.cloneAllDimensionInfo = at(fOe, null, s), r; } -function JAe(e) { +function uOe(e) { var t = e.sourceFormat; if (!gA(t)) { var r = ""; @@ -59785,7 +59826,7 @@ function JAe(e) { } return e.data; } -function eOe(e) { +function dOe(e) { var t = e.sourceFormat, r = e.data; if (!gA(t)) { var n = ""; @@ -59801,7 +59842,7 @@ function eOe(e) { return i; } } -function tOe(e, t, r) { +function hOe(e, t, r) { if (r != null) { if (Cr(r) || !isNaN(r) && !lt(t, r)) return e[r]; @@ -59809,35 +59850,35 @@ function tOe(e, t, r) { return t[r]; } } -function rOe(e) { +function fOe(e) { return _t(e); } -var Lq = ft(); -function nOe(e) { +var kq = ft(); +function pOe(e) { e = _t(e); var t = e.type, r = ""; t || (process.env.NODE_ENV !== "production" && (r = "Must have a `type` when `registerTransform`."), Ir(r)); var n = t.split(":"); n.length !== 2 && (process.env.NODE_ENV !== "production" && (r = 'Name must include namespace like "ns:regression".'), Ir(r)); var i = !1; - n[0] === "echarts" && (t = n[1], i = !0), e.__isBuiltIn = i, Lq.set(t, e); + n[0] === "echarts" && (t = n[1], i = !0), e.__isBuiltIn = i, kq.set(t, e); } -function iOe(e, t, r) { +function gOe(e, t, r) { var n = Wr(e), i = n.length, o = ""; i || (process.env.NODE_ENV !== "production" && (o = "If `transform` declared, it should at least contain one transform."), Ir(o)); for (var a = 0, s = i; a < s; a++) { var l = n[a]; - t = oOe(l, t, r, i === 1 ? null : a), a !== s - 1 && (t.length = Math.max(t.length, 1)); + t = vOe(l, t, r, i === 1 ? null : a), a !== s - 1 && (t.length = Math.max(t.length, 1)); } return t; } -function oOe(e, t, r, n) { +function vOe(e, t, r, n) { var i = ""; - t.length || (process.env.NODE_ENV !== "production" && (i = "Must have at least one upstream dataset."), Ir(i)), St(e) || (process.env.NODE_ENV !== "production" && (i = "transform declaration must be an object rather than " + typeof e + "."), Ir(i)); - var o = e.type, a = Lq.get(o); + t.length || (process.env.NODE_ENV !== "production" && (i = "Must have at least one upstream dataset."), Ir(i)), bt(e) || (process.env.NODE_ENV !== "production" && (i = "transform declaration must be an object rather than " + typeof e + "."), Ir(i)); + var o = e.type, a = kq.get(o); a || (process.env.NODE_ENV !== "production" && (i = 'Can not find transform on type "' + o + '".'), Ir(i)); var s = Fe(t, function(u) { - return QAe(u, a); + return cOe(u, a); }), l = Wr(a.transform({ upstream: s[0], upstreamList: s, @@ -59850,12 +59891,12 @@ function oOe(e, t, r, n) { `); }).join(` `); - IDe(c); + z2e(c); } return Fe(l, function(u, d) { var h = ""; - St(u) || (process.env.NODE_ENV !== "production" && (h = "A transform should not return some empty results."), Ir(h)), u.data || (process.env.NODE_ENV !== "production" && (h = "Transform result data should be not be null or undefined"), Ir(h)); - var f = Rq(u.data); + bt(u) || (process.env.NODE_ENV !== "production" && (h = "A transform should not return some empty results."), Ir(h)), u.data || (process.env.NODE_ENV !== "production" && (h = "Transform result data should be not be null or undefined"), Ir(h)); + var f = _q(u.data); gA(f) || (process.env.NODE_ENV !== "production" && (h = "Transform result data should be array rows or object rows."), Ir(h)); var p, g = t[0]; if (g && d === 0 && !u.dimensions) { @@ -59877,26 +59918,26 @@ function oOe(e, t, r, n) { function gA(e) { return e === $i || e === Oa; } -var Zw = "undefined", aOe = typeof Uint32Array === Zw ? Array : Uint32Array, sOe = typeof Uint16Array === Zw ? Array : Uint16Array, Fq = typeof Int32Array === Zw ? Array : Int32Array, nB = typeof Float64Array === Zw ? Array : Float64Array, Nq = { - float: nB, - int: Fq, +var Zw = "undefined", mOe = typeof Uint32Array === Zw ? Array : Uint32Array, yOe = typeof Uint16Array === Zw ? Array : Uint16Array, $q = typeof Int32Array === Zw ? Array : Int32Array, oB = typeof Float64Array === Zw ? Array : Float64Array, Bq = { + float: oB, + int: $q, // Ordinal data type can be string or int ordinal: Array, number: Array, - time: nB + time: oB }, xE; -function Qp(e) { - return e > 65535 ? aOe : sOe; +function eg(e) { + return e > 65535 ? mOe : yOe; } function Rh() { return [1 / 0, -1 / 0]; } -function lOe(e) { +function COe(e) { var t = e.constructor; return t === Array ? e.slice() : new t(e); } -function iB(e, t, r, n, i) { - var o = Nq[r || "float"]; +function aB(e, t, r, n, i) { + var o = Bq[r || "float"]; if (i) { var a = e[t], s = a && a.length; if (s !== n) { @@ -59914,12 +59955,12 @@ var rM = ( this._chunks = [], this._rawExtent = [], this._extent = [], this._count = 0, this._rawCount = 0, this._calcDimNameToIdx = ft(); } return e.prototype.initData = function(t, r, n) { - process.env.NODE_ENV !== "production" && xt(vt(t.getItem) && vt(t.count), "Invalid data provider."), this._provider = t, this._chunks = [], this._indices = null, this.getRawIndex = this._getRawIdxIdentity; + process.env.NODE_ENV !== "production" && Et(mt(t.getItem) && mt(t.count), "Invalid data provider."), this._provider = t, this._chunks = [], this._indices = null, this.getRawIndex = this._getRawIdxIdentity; var i = t.getSource(), o = this.defaultDimValueGetter = xE[i.sourceFormat]; this._dimValueGetter = n || o, this._rawExtent = []; - var a = Pq(i); + var a = Mq(i); this._dimensions = Fe(r, function(s) { - return process.env.NODE_ENV !== "production" && a && xt(s.property != null), { + return process.env.NODE_ENV !== "production" && a && Et(s.property != null), { // Only pick these two props. Not leak other properties like orderMeta. type: s.type, property: s.property @@ -59938,7 +59979,7 @@ var rM = ( o = i.length; return i[o] = { type: r - }, n.set(t, o), this._chunks[o] = new Nq[r || "float"](this._rawCount), this._rawExtent[o] = Rh(), o; + }, n.set(t, o), this._chunks[o] = new Bq[r || "float"](this._rawCount), this._rawExtent[o] = Rh(), o; }, e.prototype.collectOrdinalMeta = function(t, r) { var n = this._chunks[t], i = this._dimensions[t], o = this._rawExtent, a = i.ordinalOffset || 0, s = n.length; a === 0 && (o[t] = Rh()); @@ -59954,7 +59995,7 @@ var rM = ( var r = this._dimensions[t]; return r && r.property; }, e.prototype.appendData = function(t) { - process.env.NODE_ENV !== "production" && xt(!this._indices, "appendData can only be called on raw data."); + process.env.NODE_ENV !== "production" && Et(!this._indices, "appendData can only be called on raw data."); var r = this._provider, n = this.count(); r.appendData(t); var i = r.count(); @@ -59962,7 +60003,7 @@ var rM = ( }, e.prototype.appendValues = function(t, r) { for (var n = this._chunks, i = this._dimensions, o = i.length, a = this._rawExtent, s = this.count(), l = s + Math.max(t.length, r || 0), c = 0; c < o; c++) { var u = i[c]; - iB(n, c, u.type, l, !0); + aB(n, c, u.type, l, !0); } for (var d = [], h = s; h < l; h++) for (var f = h - s, p = 0; p < o; p++) { @@ -59980,7 +60021,7 @@ var rM = ( return y.property; }), u = 0; u < s; u++) { var d = a[u]; - l[u] || (l[u] = Rh()), iB(o, u, d.type, r, n); + l[u] || (l[u] = Rh()), aB(o, u, d.type, r, n); } if (i.fillStorage) i.fillStorage(t, r, o, l); @@ -60074,7 +60115,7 @@ var rM = ( } else t = new n(r.buffer, 0, i); } else { - var n = Qp(this._rawCount); + var n = eg(this._rawCount); t = new n(this.count()); for (var o = 0; o < t.length; o++) t[o] = o; @@ -60083,7 +60124,7 @@ var rM = ( }, e.prototype.filter = function(t, r) { if (!this._count) return this; - for (var n = this.clone(), i = n.count(), o = Qp(n._rawCount), a = new o(i), s = [], l = t.length, c = 0, u = t[0], d = n._chunks, h = 0; h < i; h++) { + for (var n = this.clone(), i = n.count(), o = eg(n._rawCount), a = new o(i), s = [], l = t.length, c = 0, u = t[0], d = n._chunks, h = 0; h < i; h++) { var f = void 0, p = n.getRawIndex(h); if (l === 0) f = r(h); @@ -60105,7 +60146,7 @@ var rM = ( var i = ar(t), o = i.length; if (!o) return this; - var a = r.count(), s = Qp(r._rawCount), l = new s(a), c = 0, u = i[0], d = t[u][0], h = t[u][1], f = r._chunks, p = !1; + var a = r.count(), s = eg(r._rawCount), l = new s(a), c = 0, u = i[0], d = t[u][0], h = t[u][1], f = r._chunks, p = !1; if (!r._indices) { var g = 0; if (o === 1) { @@ -60159,7 +60200,7 @@ var rM = ( } } }, e.prototype.lttbDownSample = function(t, r) { - var n = this.clone([t], !0), i = n._chunks, o = i[t], a = this.count(), s = 0, l = Math.floor(1 / r), c = this.getRawIndex(0), u, d, h, f = new (Qp(this._rawCount))(Math.min((Math.ceil(a / l) + 2) * 2, a)); + var n = this.clone([t], !0), i = n._chunks, o = i[t], a = this.count(), s = 0, l = Math.floor(1 / r), c = this.getRawIndex(0), u, d, h, f = new (eg(this._rawCount))(Math.min((Math.ceil(a / l) + 2) * 2, a)); f[s++] = c; for (var p = 1; p < a - 1; p += l) { for (var g = Math.min(p + l, a - 1), v = Math.min(p + l * 2, a), m = (v + g) / 2, y = 0, C = g; C < v; C++) { @@ -60181,7 +60222,7 @@ var rM = ( } return f[s++] = this.getRawIndex(a - 1), n._count = s, n._indices = f, n.getRawIndex = this._getRawIdx, n; }, e.prototype.downSample = function(t, r, n, i) { - for (var o = this.clone([t], !0), a = o._chunks, s = [], l = Math.floor(1 / r), c = a[t], u = this.count(), d = o._rawExtent[t] = Rh(), h = new (Qp(this._rawCount))(Math.ceil(u / l)), f = 0, p = 0; p < u; p += l) { + for (var o = this.clone([t], !0), a = o._chunks, s = [], l = Math.floor(1 / r), c = a[t], u = this.count(), d = o._rawExtent[t] = Rh(), h = new (eg(this._rawCount))(Math.ceil(u / l)), f = 0, p = 0; p < u; p += l) { l > u - p && (l = u - p, s.length = l); for (var g = 0; g < l; g++) { var v = this.getRawIndex(p + g); @@ -60239,7 +60280,7 @@ var rM = ( }, {}); if (o) for (var a = 0; a < i.length; a++) - n._chunks[a] = o[a] ? lOe(i[a]) : i[a]; + n._chunks[a] = o[a] ? COe(i[a]) : i[a]; else n._chunks = i; return this._copyCommonProps(n), r || (n._indices = this._cloneIndices()), n._updateGetRawIdx(), n; @@ -60284,7 +60325,7 @@ var rM = ( }; }(), e; }() -), kq = ( +), Vq = ( /** @class */ function() { function e(t) { @@ -60301,13 +60342,13 @@ var rM = ( }, e.prototype._createSource = function() { this._setLocalSource([], []); var t = this._sourceHost, r = this._getUpstreamSourceManagers(), n = !!r.length, i, o; - if (Jp(t)) { + if (tg(t)) { var a = t, s = void 0, l = void 0, c = void 0; if (n) { var u = r[0]; u.prepareSource(), c = u.getSource(), s = c.data, l = c.sourceFormat, o = [u._getVersionSign()]; } else - s = a.get("data", !0), l = ki(s) ? Ml : Aa, o = []; + s = a.get("data", !0), l = ki(s) ? Dl : Aa, o = []; var d = this._getSourceMetaRawOption() || {}, h = c && c.metaRawOption || {}, f = $t(d.seriesLayoutBy, h.seriesLayoutBy) || null, p = $t(d.sourceHeader, h.sourceHeader), g = $t(d.dimensions, h.dimensions), v = f !== h.seriesLayoutBy || !!p != !!h.sourceHeader || g; i = v ? [tM(s, { seriesLayoutBy: f, @@ -60324,21 +60365,21 @@ var rM = ( i = [tM(C, this._getSourceMetaRawOption(), null)], o = []; } } - process.env.NODE_ENV !== "production" && xt(i && o), this._setLocalSource(i, o); + process.env.NODE_ENV !== "production" && Et(i && o), this._setLocalSource(i, o); }, e.prototype._applyTransform = function(t) { var r = this._sourceHost, n = r.get("transform", !0), i = r.get("fromTransformResult", !0); - if (process.env.NODE_ENV !== "production" && xt(i != null || n != null), i != null) { + if (process.env.NODE_ENV !== "production" && Et(i != null || n != null), i != null) { var o = ""; - t.length !== 1 && (process.env.NODE_ENV !== "production" && (o = "When using `fromTransformResult`, there should be only one upstream dataset"), aB(o)); + t.length !== 1 && (process.env.NODE_ENV !== "production" && (o = "When using `fromTransformResult`, there should be only one upstream dataset"), lB(o)); } var a, s = [], l = []; return z(t, function(c) { c.prepareSource(); var u = c.getSource(i || 0), d = ""; - i != null && !u && (process.env.NODE_ENV !== "production" && (d = "Can not retrieve result by `fromTransformResult`: " + i), aB(d)), s.push(u), l.push(c._getVersionSign()); - }), n ? a = iOe(n, s, { + i != null && !u && (process.env.NODE_ENV !== "production" && (d = "Can not retrieve result by `fromTransformResult`: " + i), lB(d)), s.push(u), l.push(c._getVersionSign()); + }), n ? a = gOe(n, s, { datasetIndex: r.componentIndex - }) : i != null && (a = [BAe(s[0])]), { + }) : i != null && (a = [XAe(s[0])]), { sourceList: a, upstreamSignList: l }; @@ -60363,7 +60404,7 @@ var rM = ( } return r; }, e.prototype.getSharedDataStore = function(t) { - process.env.NODE_ENV !== "production" && xt(Jp(this._sourceHost), "Can only call getDataStore on series source manager."); + process.env.NODE_ENV !== "production" && Et(tg(this._sourceHost), "Can only call getDataStore on series source manager."); var r = t.makeStoreSchema(); return this._innerGetDataStore(r.dimensions, t.source, r.hash); }, e.prototype._innerGetDataStore = function(t, r, n) { @@ -60372,21 +60413,21 @@ var rM = ( var s = a[n]; if (!s) { var l = this._getUpstreamSourceManagers()[0]; - Jp(this._sourceHost) && l ? s = l._innerGetDataStore(t, r, n) : (s = new rM(), s.initData(new Tq(r, t.length), t)), a[n] = s; + tg(this._sourceHost) && l ? s = l._innerGetDataStore(t, r, n) : (s = new rM(), s.initData(new Dq(r, t.length), t)), a[n] = s; } return s; }, e.prototype._getUpstreamSourceManagers = function() { var t = this._sourceHost; - if (Jp(t)) { + if (tg(t)) { var r = cA(t); return r ? [r.getSourceManager()] : []; } else - return Fe(hAe(t), function(n) { + return Fe(xAe(t), function(n) { return n.getSourceManager(); }); }, e.prototype._getSourceMetaRawOption = function() { var t = this._sourceHost, r, n, i; - if (Jp(t)) + if (tg(t)) r = t.get("seriesLayoutBy", !0), n = t.get("sourceHeader", !0), i = t.get("dimensions", !0); else if (!this._getUpstreamSourceManagers().length) { var o = t; @@ -60400,18 +60441,18 @@ var rM = ( }, e; }() ); -function oB(e) { +function sB(e) { var t = e.option.transform; - t && Bv(e.option.transform); + t && Hv(e.option.transform); } -function Jp(e) { +function tg(e) { return e.mainType === "series"; } -function aB(e) { +function lB(e) { throw new Error(e); } -var $q = "line-height:1"; -function Bq(e, t) { +var Hq = "line-height:1"; +function zq(e, t) { var r = e.color || "#6e7079", n = e.fontSize || 12, i = e.fontWeight || "400", o = e.color || "#464646", a = e.fontSize || 14, s = e.fontWeight || "900"; return t === "html" ? { // eslint-disable-next-line max-len @@ -60431,36 +60472,36 @@ function Bq(e, t) { } }; } -var cOe = [0, 10, 20, 30], uOe = ["", ` +var SOe = [0, 10, 20, 30], bOe = ["", ` `, ` `, ` `]; -function ci(e, t) { +function ui(e, t) { return t.type = e, t; } function nM(e) { return e.type === "section"; } -function Vq(e) { - return nM(e) ? dOe : hOe; +function Gq(e) { + return nM(e) ? wOe : xOe; } -function Hq(e) { +function Wq(e) { if (nM(e)) { var t = 0, r = e.blocks.length, n = r > 1 || r > 0 && !e.noHeader; return z(e.blocks, function(i) { - var o = Hq(i); + var o = Wq(i); o >= t && (t = o + +(n && // 0 always can not be readable gap level. (!o || nM(i) && !i.noHeader))); }), t; } return 0; } -function dOe(e, t, r, n) { - var i = t.noHeader, o = fOe(Hq(t)), a = [], s = t.blocks || []; - xt(!s || Ie(s)), s = s || []; +function wOe(e, t, r, n) { + var i = t.noHeader, o = EOe(Wq(t)), a = [], s = t.blocks || []; + Et(!s || Ae(s)), s = s || []; var l = e.orderMode; if (t.sortBlocks && l) { s = s.slice(); @@ -60469,14 +60510,14 @@ function dOe(e, t, r, n) { valueDesc: "desc" }; if (lt(c, l)) { - var u = new Oq(c[l], null); + var u = new Nq(c[l], null); s.sort(function(p, g) { return u.evaluate(p.sortParam, g.sortParam); }); } else l === "seriesDesc" && s.reverse(); } z(s, function(p, g) { - var v = t.valueFormatter, m = Vq(p)( + var v = t.valueFormatter, m = Gq(p)( // Inherit valueFormatter v ? Pe(Pe({}, e), { valueFormatter: v @@ -60490,23 +60531,23 @@ function dOe(e, t, r, n) { var d = e.renderMode === "richText" ? a.join(o.richText) : iM(a.join(""), i ? r : o.html); if (i) return d; - var h = Z_(t.header, "ordinal", e.useUTC), f = Bq(n, e.renderMode).nameStyle; - return e.renderMode === "richText" ? zq(e, h, f) + o.richText + d : iM('
' + Ki(h) + "
" + d, r); + var h = Z_(t.header, "ordinal", e.useUTC), f = zq(n, e.renderMode).nameStyle; + return e.renderMode === "richText" ? jq(e, h, f) + o.richText + d : iM('
' + Ki(h) + "
" + d, r); } -function hOe(e, t, r, n) { +function xOe(e, t, r, n) { var i = e.renderMode, o = t.noName, a = t.noValue, s = !t.markerType, l = t.name, c = e.useUTC, u = t.valueFormatter || e.valueFormatter || function(b) { - return b = Ie(b) ? b : [b], Fe(b, function(w, x) { - return Z_(w, Ie(f) ? f[x] : f, c); + return b = Ae(b) ? b : [b], Fe(b, function(w, x) { + return Z_(w, Ae(f) ? f[x] : f, c); }); }; if (!(o && a)) { - var d = s ? "" : e.markupStyleCreator.makeTooltipMarker(t.markerType, t.markerColor || "#333", i), h = o ? "" : Z_(l, "ordinal", c), f = t.valueType, p = a ? [] : u(t.value, t.dataIndex), g = !s || !o, v = !s && o, m = Bq(n, i), y = m.nameStyle, C = m.valueStyle; - return i === "richText" ? (s ? "" : d) + (o ? "" : zq(e, h, y)) + (a ? "" : vOe(e, p, g, v, C)) : iM((s ? "" : d) + (o ? "" : pOe(h, !s, y)) + (a ? "" : gOe(p, g, v, C)), r); + var d = s ? "" : e.markupStyleCreator.makeTooltipMarker(t.markerType, t.markerColor || "#333", i), h = o ? "" : Z_(l, "ordinal", c), f = t.valueType, p = a ? [] : u(t.value, t.dataIndex), g = !s || !o, v = !s && o, m = zq(n, i), y = m.nameStyle, C = m.valueStyle; + return i === "richText" ? (s ? "" : d) + (o ? "" : jq(e, h, y)) + (a ? "" : TOe(e, p, g, v, C)) : iM((s ? "" : d) + (o ? "" : ROe(h, !s, y)) + (a ? "" : POe(p, g, v, C)), r); } } -function sB(e, t, r, n, i, o) { +function cB(e, t, r, n, i, o) { if (e) { - var a = Vq(e), s = { + var a = Gq(e), s = { useUTC: i, renderMode: r, orderMode: n, @@ -60516,41 +60557,41 @@ function sB(e, t, r, n, i, o) { return a(s, e, 0, o); } } -function fOe(e) { +function EOe(e) { return { - html: cOe[e], - richText: uOe[e] + html: SOe[e], + richText: bOe[e] }; } function iM(e, t) { var r = '
', n = "margin: " + t + "px 0 0"; - return '
' + e + r + "
"; + return '
' + e + r + "
"; } -function pOe(e, t, r) { +function ROe(e, t, r) { var n = t ? "margin-left:2px" : ""; return '' + Ki(e) + ""; } -function gOe(e, t, r, n) { +function POe(e, t, r, n) { var i = r ? "10px" : "20px", o = t ? "float:right;margin-left:" + i : ""; - return e = Ie(e) ? e : [e], '' + Fe(e, function(a) { + return e = Ae(e) ? e : [e], '' + Fe(e, function(a) { return Ki(a); }).join("  ") + ""; } -function zq(e, t, r) { +function jq(e, t, r) { return e.markupStyleCreator.wrapRichTextStyle(t, r); } -function vOe(e, t, r, n, i) { +function TOe(e, t, r, n, i) { var o = [i], a = n ? 10 : 20; return r && o.push({ padding: [0, 0, 0, a], align: "right" - }), e.markupStyleCreator.wrapRichTextStyle(Ie(t) ? t.join(" ") : t, o); + }), e.markupStyleCreator.wrapRichTextStyle(Ae(t) ? t.join(" ") : t, o); } -function Gq(e, t) { +function Uq(e, t) { var r = e.getData().getItemVisual(t, "style"), n = r[e.visualDrawType]; return Od(n); } -function Wq(e, t) { +function Kq(e, t) { var r = e.get("padding"); return r ?? (t === "richText" ? [8, 10] : 10); } @@ -60558,21 +60599,21 @@ var EE = ( /** @class */ function() { function e() { - this.richTextStyles = {}, this._nextStyleNameId = XK(); + this.richTextStyles = {}, this._nextStyleNameId = JK(); } return e.prototype._generateStyleName = function() { return "__EC_aUTo_" + this._nextStyleNameId++; }, e.prototype.makeTooltipMarker = function(t, r, n) { - var i = n === "richText" ? this._generateStyleName() : null, o = hq({ + var i = n === "richText" ? this._generateStyleName() : null, o = gq({ color: r, type: t, renderMode: n, markerId: i }); - return Je(o) ? o : (process.env.NODE_ENV !== "production" && xt(i), this.richTextStyles[i] = o.style, o.content); + return Je(o) ? o : (process.env.NODE_ENV !== "production" && Et(i), this.richTextStyles[i] = o.style, o.content); }, e.prototype.wrapRichTextStyle = function(t, r) { var n = {}; - Ie(r) ? z(r, function(o) { + Ae(r) ? z(r, function(o) { return Pe(n, o); }) : Pe(n, r); var i = this._generateStyleName(); @@ -60580,24 +60621,24 @@ var EE = ( }, e; }() ); -function jq(e) { - var t = e.series, r = e.dataIndex, n = e.multipleSeries, i = t.getData(), o = i.mapDimensionsAll("defaultedTooltip"), a = o.length, s = t.getRawValue(r), l = Ie(s), c = Gq(t, r), u, d, h, f; +function Yq(e) { + var t = e.series, r = e.dataIndex, n = e.multipleSeries, i = t.getData(), o = i.mapDimensionsAll("defaultedTooltip"), a = o.length, s = t.getRawValue(r), l = Ae(s), c = Uq(t, r), u, d, h, f; if (a > 1 || l && !a) { - var p = mOe(s, t, r, o, c); + var p = _Oe(s, t, r, o, c); u = p.inlineValues, d = p.inlineValueTypes, h = p.blocks, f = p.inlineValues[0]; } else if (a) { var g = i.getDimensionInfo(o[0]); - f = u = $f(i, r, o[0]), d = g.type; + f = u = Vf(i, r, o[0]), d = g.type; } else f = u = l ? s[0] : s; - var v = F2(t), m = v && t.name || "", y = i.getName(r), C = n ? m : y; - return ci("section", { + var v = FI(t), m = v && t.name || "", y = i.getName(r), C = n ? m : y; + return ui("section", { header: m, // When series name is not specified, do not show a header line with only '-'. // This case always happens in tooltip.trigger: 'item'. noHeader: n || !v, sortParam: f, - blocks: [ci("nameValue", { + blocks: [ui("nameValue", { markerType: "item", markerColor: c, // Do not mix display seriesName and itemName in one tooltip, @@ -60612,17 +60653,17 @@ function jq(e) { })].concat(h || []) }); } -function mOe(e, t, r, n, i) { +function _Oe(e, t, r, n, i) { var o = t.getData(), a = Ra(e, function(d, h, f) { var p = o.getDimensionInfo(f); return d = d || p && p.tooltip !== !1 && p.displayName != null; }, !1), s = [], l = [], c = []; n.length ? z(n, function(d) { - u($f(o, r, d), d); + u(Vf(o, r, d), d); }) : z(e, u); function u(d, h) { var f = o.getDimensionInfo(h); - !f || f.otherDims.tooltip === !1 || (a ? c.push(ci("nameValue", { + !f || f.otherDims.tooltip === !1 || (a ? c.push(ui("nameValue", { markerType: "subItem", markerColor: i, name: f.displayName, @@ -60637,10 +60678,10 @@ function mOe(e, t, r, n, i) { }; } var oc = yr(); -function u0(e, t) { +function f0(e, t) { return e.getName(t) || e.getId(t); } -var MC = "__universalTransitionEnabled", jr = ( +var AC = "__universalTransitionEnabled", jr = ( /** @class */ function(e) { Se(t, e); @@ -60649,27 +60690,27 @@ var MC = "__universalTransitionEnabled", jr = ( return r._selectedDataIndicesMap = {}, r; } return t.prototype.init = function(r, n, i) { - this.seriesIndex = this.componentIndex, this.dataTask = lv({ - count: COe, - reset: SOe + this.seriesIndex = this.componentIndex, this.dataTask = uv({ + count: DOe, + reset: IOe }), this.dataTask.context = { model: this }, this.mergeDefaultAndTheme(r, i); - var o = oc(this).sourceManager = new kq(this); + var o = oc(this).sourceManager = new Vq(this); o.prepareSource(); var a = this.getInitialData(r, i); - cB(a, this), this.dataTask.context.data = a, process.env.NODE_ENV !== "production" && xt(a, "getInitialData returned invalid data."), oc(this).dataBeforeProcessed = a, lB(this), this._initSelectedMapFromData(a); + dB(a, this), this.dataTask.context.data = a, process.env.NODE_ENV !== "production" && Et(a, "getInitialData returned invalid data."), oc(this).dataBeforeProcessed = a, uB(this), this._initSelectedMapFromData(a); }, t.prototype.mergeDefaultAndTheme = function(r, n) { - var i = Xv(this), o = i ? yp(r) : {}, a = this.subType; - Qt.hasClass(a) && (a += "Series"), Wt(r, n.getTheme().get(this.subType)), Wt(r, this.getDefaultOption()), Md(r, "label", ["show"]), this.fillDataTextStyle(r.data), i && Uc(r, o, i); + var i = Qv(this), o = i ? Sp(r) : {}, a = this.subType; + Qt.hasClass(a) && (a += "Series"), jt(r, n.getTheme().get(this.subType)), jt(r, this.getDefaultOption()), Md(r, "label", ["show"]), this.fillDataTextStyle(r.data), i && Uc(r, o, i); }, t.prototype.mergeOption = function(r, n) { - r = Wt(this.option, r, !0), this.fillDataTextStyle(r.data); - var i = Xv(this); + r = jt(this.option, r, !0), this.fillDataTextStyle(r.data); + var i = Qv(this); i && Uc(this.option, r, i); var o = oc(this).sourceManager; o.dirty(), o.prepareSource(); var a = this.getInitialData(r, n); - cB(a, this), this.dataTask.dirty(), this.dataTask.context.data = a, oc(this).dataBeforeProcessed = a, lB(this), this._initSelectedMapFromData(a); + dB(a, this), this.dataTask.dirty(), this.dataTask.context.data = a, oc(this).dataBeforeProcessed = a, uB(this), this._initSelectedMapFromData(a); }, t.prototype.fillDataTextStyle = function(r) { if (r && !ki(r)) for (var n = ["show"], i = 0; i < r.length; i++) @@ -60716,7 +60757,7 @@ var MC = "__universalTransitionEnabled", jr = ( var r = this.coordinateSystem; return r && r.getBaseAxis && r.getBaseAxis(); }, t.prototype.formatTooltip = function(r, n, i) { - return jq({ + return Yq({ series: this, dataIndex: r, multipleSeries: n @@ -60749,7 +60790,7 @@ var MC = "__universalTransitionEnabled", jr = ( return; } for (var s = 0; s < r.length; s++) { - var l = r[s], c = u0(a, l); + var l = r[s], c = f0(a, l); i[c] = !1, this._selectedDataIndicesMap[c] = -1; } } @@ -60769,9 +60810,9 @@ var MC = "__universalTransitionEnabled", jr = ( if (!i) return !1; var o = this.getData(n); - return (i === "all" || i[u0(o, r)]) && !o.getItemModel(r).get(["select", "disabled"]); + return (i === "all" || i[f0(o, r)]) && !o.getItemModel(r).get(["select", "disabled"]); }, t.prototype.isUniversalTransitionEnabled = function() { - if (this[MC]) + if (this[AC]) return !0; var r = this.option.universalTransition; return r ? r === !0 ? !0 : r && r.enabled : !1; @@ -60781,13 +60822,13 @@ var MC = "__universalTransitionEnabled", jr = ( if (s === "series") a.selectedMap = "all"; else if (s === "multiple") { - St(a.selectedMap) || (a.selectedMap = {}); + bt(a.selectedMap) || (a.selectedMap = {}); for (var c = a.selectedMap, u = 0; u < l; u++) { - var d = n[u], h = u0(r, d); + var d = n[u], h = f0(r, d); c[h] = !0, this._selectedDataIndicesMap[h] = r.getRawIndex(d); } } else if (s === "single" || s === !0) { - var f = n[l - 1], h = u0(r, f); + var f = n[l - 1], h = f0(r, f); a.selectedMap = (i = {}, i[h] = !0, i), this._selectedDataIndicesMap = (o = {}, o[h] = r.getRawIndex(f), o); } } @@ -60809,34 +60850,34 @@ var MC = "__universalTransitionEnabled", jr = ( ); In(jr, Xw); In(jr, uA); -oY(jr, Qt); -function lB(e) { +lY(jr, Qt); +function uB(e) { var t = e.name; - F2(e) || (e.name = yOe(e) || t); + FI(e) || (e.name = MOe(e) || t); } -function yOe(e) { +function MOe(e) { var t = e.getRawData(), r = t.mapDimensionsAll("seriesName"), n = []; return z(r, function(i) { var o = t.getDimensionInfo(i); o.displayName && n.push(o.displayName); }), n.join(" "); } -function COe(e) { +function DOe(e) { return e.model.getRawData().count(); } -function SOe(e) { +function IOe(e) { var t = e.model; - return t.setData(t.getRawData().cloneShallow()), bOe; + return t.setData(t.getRawData().cloneShallow()), AOe; } -function bOe(e, t) { +function AOe(e, t) { t.outputData && e.end > t.outputData.count() && t.model.getRawData().cloneShallow(t.outputData); } -function cB(e, t) { - z(Vv(e.CHANGABLE_METHODS, e.DOWNSAMPLE_METHODS), function(r) { - e.wrapMethod(r, Vt(wOe, t)); +function dB(e, t) { + z(zv(e.CHANGABLE_METHODS, e.DOWNSAMPLE_METHODS), function(r) { + e.wrapMethod(r, Vt(OOe, t)); }); } -function wOe(e, t) { +function OOe(e, t) { var r = oM(e); return r && r.setOutputEnd((t || this).count()), t; } @@ -60855,7 +60896,7 @@ var sn = ( /** @class */ function() { function e() { - this.group = new Ot(), this.uid = mp("viewComponent"); + this.group = new Ot(), this.uid = Cp("viewComponent"); } return e.prototype.init = function(t, r) { }, e.prototype.render = function(t, r, n, i) { @@ -60870,22 +60911,22 @@ var sn = ( }, e; }() ); -k2(sn); +kI(sn); Aw(sn); -function Sp() { +function wp() { var e = yr(); return function(t) { var r = e(t), n = t.pipelineContext, i = !!r.large, o = !!r.progressiveRender, a = r.large = !!(n && n.large), s = r.progressiveRender = !!(n && n.progressiveRender); return (i !== a || o !== s) && "reset"; }; } -var Uq = yr(), xOe = Sp(), $r = ( +var qq = yr(), LOe = wp(), $r = ( /** @class */ function() { function e() { - this.group = new Ot(), this.uid = mp("viewChart"), this.renderTask = lv({ - plan: EOe, - reset: ROe + this.group = new Ot(), this.uid = Cp("viewChart"), this.renderTask = uv({ + plan: FOe, + reset: NOe }), this.renderTask.context = { view: this }; @@ -60897,17 +60938,17 @@ var Uq = yr(), xOe = Sp(), $r = ( }, e.prototype.highlight = function(t, r, n, i) { var o = t.getData(i && i.dataType); if (!o) { - process.env.NODE_ENV !== "production" && xi("Unknown dataType " + i.dataType); + process.env.NODE_ENV !== "production" && Ei("Unknown dataType " + i.dataType); return; } - dB(o, i, "emphasis"); + fB(o, i, "emphasis"); }, e.prototype.downplay = function(t, r, n, i) { var o = t.getData(i && i.dataType); if (!o) { - process.env.NODE_ENV !== "production" && xi("Unknown dataType " + i.dataType); + process.env.NODE_ENV !== "production" && Ei("Unknown dataType " + i.dataType); return; } - dB(o, i, "normal"); + fB(o, i, "normal"); }, e.prototype.remove = function(t, r) { this.group.removeAll(); }, e.prototype.dispose = function(t, r) { @@ -60920,34 +60961,34 @@ var Uq = yr(), xOe = Sp(), $r = ( }, e.prototype.eachRendered = function(t) { tu(this.group, t); }, e.markUpdateMethod = function(t, r) { - Uq(t).updateMethod = r; + qq(t).updateMethod = r; }, e.protoInitialize = function() { var t = e.prototype; t.type = "chart"; }(), e; }() ); -function uB(e, t, r) { - e && Wc(e) && (t === "emphasis" ? Vl : Hl)(e, r); +function hB(e, t, r) { + e && Wc(e) && (t === "emphasis" ? Hl : zl)(e, r); } -function dB(e, t, r) { - var n = Dd(e, t), i = t && t.highlightKey != null ? r2e(t.highlightKey) : null; +function fB(e, t, r) { + var n = Dd(e, t), i = t && t.highlightKey != null ? fIe(t.highlightKey) : null; n != null ? z(Wr(n), function(o) { - uB(e.getItemGraphicEl(o), r, i); + hB(e.getItemGraphicEl(o), r, i); }) : e.eachItemGraphicEl(function(o) { - uB(o, r, i); + hB(o, r, i); }); } -k2($r, ["dispose"]); +kI($r, ["dispose"]); Aw($r); -function EOe(e) { - return xOe(e.model); +function FOe(e) { + return LOe(e.model); } -function ROe(e) { - var t = e.model, r = e.ecModel, n = e.api, i = e.payload, o = t.pipelineContext.progressiveRender, a = e.view, s = i && Uq(i).updateMethod, l = o ? "incrementalPrepareRender" : s && a[s] ? s : "render"; - return l !== "render" && a[l](t, r, n, i), POe[l]; +function NOe(e) { + var t = e.model, r = e.ecModel, n = e.api, i = e.payload, o = t.pipelineContext.progressiveRender, a = e.view, s = i && qq(i).updateMethod, l = o ? "incrementalPrepareRender" : s && a[s] ? s : "render"; + return l !== "render" && a[l](t, r, n, i), kOe[l]; } -var POe = { +var kOe = { incrementalPrepareRender: { progress: function(e, t) { t.view.incrementalRender(e, t.model, t.ecModel, t.api, t.payload); @@ -60963,7 +61004,7 @@ var POe = { t.view.render(t.model, t.ecModel, t.api, t.payload); } } -}, $S = "\0__throttleOriginMethod", hB = "\0__throttleRate", fB = "\0__throttleType"; +}, VS = "\0__throttleOriginMethod", pB = "\0__throttleRate", gB = "\0__throttleType"; function Qw(e, t, r) { var n, i = 0, o = 0, a = null, s, l, c, u; t = t || 0; @@ -60983,44 +61024,44 @@ function Qw(e, t, r) { u = f; }, h; } -function bp(e, t, r, n) { +function xp(e, t, r, n) { var i = e[t]; if (i) { - var o = i[$S] || i, a = i[fB], s = i[hB]; + var o = i[VS] || i, a = i[gB], s = i[pB]; if (s !== r || a !== n) { if (r == null || !n) return e[t] = o; - i = e[t] = Qw(o, r, n === "debounce"), i[$S] = o, i[fB] = n, i[hB] = r; + i = e[t] = Qw(o, r, n === "debounce"), i[VS] = o, i[gB] = n, i[pB] = r; } return i; } } -function Qv(e, t) { +function em(e, t) { var r = e[t]; - r && r[$S] && (r.clear && r.clear(), e[t] = r[$S]); + r && r[VS] && (r.clear && r.clear(), e[t] = r[VS]); } -var pB = yr(), gB = { - itemStyle: Id(rq, !0), - lineStyle: Id(tq, !0) -}, TOe = { +var vB = yr(), mB = { + itemStyle: Id(oq, !0), + lineStyle: Id(iq, !0) +}, $Oe = { lineStyle: "stroke", itemStyle: "fill" }; -function Kq(e, t) { - var r = e.visualStyleMapper || gB[t]; - return r || (console.warn("Unknown style type '" + t + "'."), gB.itemStyle); +function Xq(e, t) { + var r = e.visualStyleMapper || mB[t]; + return r || (console.warn("Unknown style type '" + t + "'."), mB.itemStyle); } -function Yq(e, t) { - var r = e.visualDrawType || TOe[t]; +function Zq(e, t) { + var r = e.visualDrawType || $Oe[t]; return r || (console.warn("Unknown style type '" + t + "'."), "fill"); } -var _Oe = { +var BOe = { createOnAllSeries: !0, performRawSeries: !0, reset: function(e, t) { - var r = e.getData(), n = e.visualStyleAccessPath || "itemStyle", i = e.getModel(n), o = Kq(e, n), a = o(i), s = i.getShallow("decal"); + var r = e.getData(), n = e.visualStyleAccessPath || "itemStyle", i = e.getModel(n), o = Xq(e, n), a = o(i), s = i.getShallow("decal"); s && (r.setVisual("decal", s), s.dirty = !0); - var l = Yq(e, n), c = a[l], u = vt(c) ? c : null, d = a.fill === "auto" || a.stroke === "auto"; + var l = Zq(e, n), c = a[l], u = mt(c) ? c : null, d = a.fill === "auto" || a.stroke === "auto"; if (!a[l] || u || d) { var h = e.getColorFromPalette( // TODO series count changed. @@ -61028,7 +61069,7 @@ var _Oe = { null, t.getSeriesCount() ); - a[l] || (a[l] = h, r.setVisual("colorFromPalette", !0)), a.fill = a.fill === "auto" || vt(a.fill) ? h : a.fill, a.stroke = a.stroke === "auto" || vt(a.stroke) ? h : a.stroke; + a[l] || (a[l] = h, r.setVisual("colorFromPalette", !0)), a.fill = a.fill === "auto" || mt(a.fill) ? h : a.fill, a.stroke = a.stroke === "auto" || mt(a.stroke) ? h : a.stroke; } if (r.setVisual("style", a), r.setVisual("drawType", l), !t.isSeriesFiltered(e) && u) return r.setVisual("colorFromPalette", !1), { @@ -61038,25 +61079,25 @@ var _Oe = { } }; } -}, eg = new Gr(), MOe = { +}, rg = new Gr(), VOe = { createOnAllSeries: !0, performRawSeries: !0, reset: function(e, t) { if (!(e.ignoreStyleOnData || t.isSeriesFiltered(e))) { - var r = e.getData(), n = e.visualStyleAccessPath || "itemStyle", i = Kq(e, n), o = r.getVisual("drawType"); + var r = e.getData(), n = e.visualStyleAccessPath || "itemStyle", i = Xq(e, n), o = r.getVisual("drawType"); return { dataEach: r.hasItemOption ? function(a, s) { var l = a.getRawDataItem(s); if (l && l[n]) { - eg.option = l[n]; - var c = i(eg), u = a.ensureUniqueItemVisual(s, "style"); - Pe(u, c), eg.option.decal && (a.setItemVisual(s, "decal", eg.option.decal), eg.option.decal.dirty = !0), o in c && a.setItemVisual(s, "colorFromPalette", !1); + rg.option = l[n]; + var c = i(rg), u = a.ensureUniqueItemVisual(s, "style"); + Pe(u, c), rg.option.decal && (a.setItemVisual(s, "decal", rg.option.decal), rg.option.decal.dirty = !0), o in c && a.setItemVisual(s, "colorFromPalette", !1); } } : null }; } } -}, DOe = { +}, HOe = { performRawSeries: !0, overallReset: function(e) { var t = ft(); @@ -61064,11 +61105,11 @@ var _Oe = { var n = r.getColorBy(); if (!r.isColorBySeries()) { var i = r.type + "-" + n, o = t.get(i); - o || (o = {}, t.set(i, o)), pB(r).scope = o; + o || (o = {}, t.set(i, o)), vB(r).scope = o; } }), e.eachSeries(function(r) { if (!(r.isColorBySeries() || e.isSeriesFiltered(r))) { - var n = r.getRawData(), i = {}, o = r.getData(), a = pB(r).scope, s = r.visualStyleAccessPath || "itemStyle", l = Yq(r, s); + var n = r.getRawData(), i = {}, o = r.getData(), a = vB(r).scope, s = r.visualStyleAccessPath || "itemStyle", l = Zq(r, s); o.each(function(c) { var u = o.getRawIndex(c); i[u] = c; @@ -61082,9 +61123,9 @@ var _Oe = { } }); } -}, d0 = Math.PI; -function IOe(e, t) { - t = t || {}, wt(t, { +}, p0 = Math.PI; +function zOe(e, t) { + t = t || {}, xt(t, { text: "loading", textColor: "#000", fontSize: 12, @@ -61133,8 +61174,8 @@ function IOe(e, t) { var a; return t.showSpinner && (a = new Bw({ shape: { - startAngle: -d0 / 2, - endAngle: -d0 / 2 + 0.1, + startAngle: -p0 / 2, + endAngle: -p0 / 2 + 0.1, r: t.spinnerRadius }, style: { @@ -61145,9 +61186,9 @@ function IOe(e, t) { zlevel: t.zlevel, z: 10001 }), a.animateShape(!0).when(1e3, { - endAngle: d0 * 3 / 2 + endAngle: p0 * 3 / 2 }).start("circularInOut"), a.animateShape(!0).when(1e3, { - startAngle: d0 * 3 / 2 + startAngle: p0 * 3 / 2 }).delay(300).start("circularInOut"), r.add(a)), r.resize = function() { var s = i.getBoundingRect().width, l = t.showSpinner ? t.spinnerRadius : 0, c = (e.getWidth() - l * 2 - (t.showSpinner && s ? 10 : 0) - s) / 2 - (t.showSpinner && s ? 0 : 5 + s / 2) + (t.showSpinner ? 0 : s / 2) + (s ? 0 : l), u = e.getHeight() / 2; t.showSpinner && a.setShape({ @@ -61166,7 +61207,7 @@ function IOe(e, t) { }); }, r.resize(), r; } -var qq = ( +var Qq = ( /** @class */ function() { function e(t, r, n, i) { @@ -61214,7 +61255,7 @@ var qq = ( var t = this._stageTaskMap, r = this.api.getModel(), n = this.api; z(this._allHandlers, function(i) { var o = t.get(i.uid) || t.set(i.uid, {}), a = ""; - process.env.NODE_ENV !== "production" && (a = '"reset" and "overallReset" must not be both specified.'), xt(!(i.reset && i.overallReset), a), i.reset && this._createSeriesStageTask(i, o, r, n), i.overallReset && this._createOverallStageTask(i, o, r, n); + process.env.NODE_ENV !== "production" && (a = '"reset" and "overallReset" must not be both specified.'), Et(!(i.reset && i.overallReset), a), i.reset && this._createSeriesStageTask(i, o, r, n), i.overallReset && this._createOverallStageTask(i, o, r, n); }, this); }, e.prototype.prepareView = function(t, r, n, i) { var o = t.renderTask, a = o.context; @@ -61273,10 +61314,10 @@ var qq = ( var o = this, a = r.seriesTaskMap, s = r.seriesTaskMap = ft(), l = t.seriesType, c = t.getTargetSeries; t.createOnAllSeries ? n.eachRawSeries(u) : l ? n.eachRawSeriesByType(l, u) : c && c(n, i).each(u); function u(d) { - var h = d.uid, f = s.set(h, a && a.get(h) || lv({ - plan: NOe, - reset: kOe, - count: BOe + var h = d.uid, f = s.set(h, a && a.get(h) || uv({ + plan: KOe, + reset: YOe, + count: XOe })); f.context = { model: d, @@ -61290,8 +61331,8 @@ var qq = ( }, o._pipe(d, f); } }, e.prototype._createOverallStageTask = function(t, r, n, i) { - var o = this, a = r.overallTask = r.overallTask || lv({ - reset: AOe + var o = this, a = r.overallTask = r.overallTask || uv({ + reset: GOe }); a.context = { ecModel: n, @@ -61300,13 +61341,13 @@ var qq = ( scheduler: o }; var s = a.agentStubMap, l = a.agentStubMap = ft(), c = t.seriesType, u = t.getTargetSeries, d = !0, h = !1, f = ""; - process.env.NODE_ENV !== "production" && (f = '"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'), xt(!t.createOnAllSeries, f), c ? n.eachRawSeriesByType(c, p) : u ? u(n, i).each(p) : (d = !1, z(n.getSeries(), p)); + process.env.NODE_ENV !== "production" && (f = '"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'), Et(!t.createOnAllSeries, f), c ? n.eachRawSeriesByType(c, p) : u ? u(n, i).each(p) : (d = !1, z(n.getSeries(), p)); function p(g) { var v = g.uid, m = l.set(v, s && s.get(v) || // When the result of `getTargetSeries` changed, the overallTask // should be set as dirty and re-performed. - (h = !0, lv({ - reset: OOe, - onDirty: FOe + (h = !0, uv({ + reset: WOe, + onDirty: UOe }))); m.context = { model: g, @@ -61320,37 +61361,37 @@ var qq = ( var n = t.uid, i = this._pipelineMap.get(n); !i.head && (i.head = r), i.tail && i.tail.pipe(r), i.tail = r, r.__idxInPipeline = i.count++, r.__pipeline = i; }, e.wrapStageHandler = function(t, r) { - return vt(t) && (t = { + return mt(t) && (t = { overallReset: t, - seriesType: VOe(t) - }), t.uid = mp("stageHandler"), r && (t.visualType = r), t; + seriesType: ZOe(t) + }), t.uid = Cp("stageHandler"), r && (t.visualType = r), t; }, e; }() ); -function AOe(e) { +function GOe(e) { e.overallReset(e.ecModel, e.api, e.payload); } -function OOe(e) { - return e.overallProgress && LOe; +function WOe(e) { + return e.overallProgress && jOe; } -function LOe() { +function jOe() { this.agent.dirty(), this.getDownstream().dirty(); } -function FOe() { +function UOe() { this.agent && this.agent.dirty(); } -function NOe(e) { +function KOe(e) { return e.plan ? e.plan(e.model, e.ecModel, e.api, e.payload) : null; } -function kOe(e) { +function YOe(e) { e.useClearVisual && e.data.clearAllVisual(); var t = e.resetDefines = Wr(e.reset(e.model, e.ecModel, e.api, e.payload)); return t.length > 1 ? Fe(t, function(r, n) { - return Xq(n); - }) : $Oe; + return Jq(n); + }) : qOe; } -var $Oe = Xq(0); -function Xq(e) { +var qOe = Jq(0); +function Jq(e) { return function(t, r) { var n = r.data, i = r.resetDefines[e]; if (i && i.dataEach) @@ -61359,36 +61400,36 @@ function Xq(e) { else i && i.progress && i.progress(t, n); }; } -function BOe(e) { +function XOe(e) { return e.data.count(); } -function VOe(e) { - BS = null; +function ZOe(e) { + HS = null; try { - e(Jv, Zq); + e(tm, eX); } catch { } - return BS; + return HS; } -var Jv = {}, Zq = {}, BS; -Qq(Jv, dA); -Qq(Zq, wq); -Jv.eachSeriesByType = Jv.eachRawSeriesByType = function(e) { - BS = e; +var tm = {}, eX = {}, HS; +tX(tm, dA); +tX(eX, Rq); +tm.eachSeriesByType = tm.eachRawSeriesByType = function(e) { + HS = e; }; -Jv.eachComponent = function(e) { - e.mainType === "series" && e.subType && (BS = e.subType); +tm.eachComponent = function(e) { + e.mainType === "series" && e.subType && (HS = e.subType); }; -function Qq(e, t) { +function tX(e, t) { for (var r in t.prototype) e[r] = Dn; } -var vB = ["#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#E062AE", "#E690D1", "#e7bcf3", "#9d96f5", "#8378EA", "#96BFFF"]; -const HOe = { - color: vB, - colorLayer: [["#37A2DA", "#ffd85c", "#fd7b5f"], ["#37A2DA", "#67E0E3", "#FFDB5C", "#ff9f7f", "#E062AE", "#9d96f5"], ["#37A2DA", "#32C5E9", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#e7bcf3", "#8378EA", "#96BFFF"], vB] +var yB = ["#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#E062AE", "#E690D1", "#e7bcf3", "#9d96f5", "#8378EA", "#96BFFF"]; +const QOe = { + color: yB, + colorLayer: [["#37A2DA", "#ffd85c", "#fd7b5f"], ["#37A2DA", "#67E0E3", "#FFDB5C", "#ff9f7f", "#E062AE", "#9d96f5"], ["#37A2DA", "#32C5E9", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#e7bcf3", "#8378EA", "#96BFFF"], yB] }; -var Gi = "#B9B8CE", mB = "#100C2A", h0 = function() { +var Gi = "#B9B8CE", CB = "#100C2A", g0 = function() { return { axisLine: { lineStyle: { @@ -61411,10 +61452,10 @@ var Gi = "#B9B8CE", mB = "#100C2A", h0 = function() { } } }; -}, yB = ["#4992ff", "#7cffb2", "#fddd60", "#ff6e76", "#58d9f9", "#05c091", "#ff8a45", "#8d48e3", "#dd79ff"], Jq = { +}, SB = ["#4992ff", "#7cffb2", "#fddd60", "#ff6e76", "#58d9f9", "#05c091", "#ff8a45", "#8d48e3", "#dd79ff"], rX = { darkMode: !0, - color: yB, - backgroundColor: mB, + color: SB, + backgroundColor: CB, axisPointer: { lineStyle: { color: "#817f91" @@ -61512,7 +61553,7 @@ var Gi = "#B9B8CE", mB = "#100C2A", h0 = function() { }, calendar: { itemStyle: { - color: mB + color: CB }, dayLabel: { color: Gi @@ -61524,15 +61565,15 @@ var Gi = "#B9B8CE", mB = "#100C2A", h0 = function() { color: Gi } }, - timeAxis: h0(), - logAxis: h0(), - valueAxis: h0(), - categoryAxis: h0(), + timeAxis: g0(), + logAxis: g0(), + valueAxis: g0(), + categoryAxis: g0(), line: { symbol: "circle" }, graph: { - color: yB + color: SB }, gauge: { title: { @@ -61561,8 +61602,8 @@ var Gi = "#B9B8CE", mB = "#100C2A", h0 = function() { } } }; -Jq.categoryAxis.splitLine.show = !1; -var zOe = ( +rX.categoryAxis.splitLine.show = !1; +var JOe = ( /** @class */ function() { function e() { @@ -61610,7 +61651,7 @@ var zOe = ( this.eventInfo = null; }, e; }() -), aM = ["symbol", "symbolSize", "symbolRotate", "symbolOffset"], CB = aM.concat(["symbolKeepAspect"]), GOe = { +), aM = ["symbol", "symbolSize", "symbolRotate", "symbolOffset"], bB = aM.concat(["symbolKeepAspect"]), eLe = { createOnAllSeries: !0, // For legend. performRawSeries: !0, @@ -61620,7 +61661,7 @@ var zOe = ( return; for (var n = {}, i = {}, o = !1, a = 0; a < aM.length; a++) { var s = aM[a], l = e.get(s); - vt(l) ? (o = !0, i[s] = l) : n[s] = l; + mt(l) ? (o = !0, i[s] = l) : n[s] = l; } if (n.symbol = n.symbol || e.defaultSymbol, r.setVisual(Pe({ legendIcon: e.legendIcon || n.symbol, @@ -61638,7 +61679,7 @@ var zOe = ( dataEach: o ? u : null }; } -}, WOe = { +}, tLe = { createOnAllSeries: !0, // For legend. performRawSeries: !0, @@ -61647,8 +61688,8 @@ var zOe = ( return; var r = e.getData(); function n(i, o) { - for (var a = i.getItemModel(o), s = 0; s < CB.length; s++) { - var l = CB[s], c = a.getShallow(l, !0); + for (var a = i.getItemModel(o), s = 0; s < bB.length; s++) { + var l = bB[s], c = a.getShallow(l, !0); c != null && i.setItemVisual(o, l, c); } } @@ -61672,7 +61713,7 @@ function vA(e, t, r) { process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + r); } } -function ry(e, t) { +function oy(e, t) { switch (t) { case "color": var r = e.getVisual("style"); @@ -61687,7 +61728,7 @@ function ry(e, t) { process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + t); } } -function eX(e, t, r, n) { +function nX(e, t, r, n) { switch (r) { case "color": var i = e.ensureUniqueItemVisual(t, "style"); @@ -61705,7 +61746,7 @@ function eX(e, t, r, n) { process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + r); } } -function tX(e, t) { +function iX(e, t) { function r(n, i) { var o = []; return n.eachComponent({ @@ -61737,13 +61778,13 @@ function Ph(e, t, r, n, i) { r.trigger(o, { type: o, seriesId: a.id, - name: Ie(h) ? d.getName(h[0]) : d.getName(h), + name: Ae(h) ? d.getName(h[0]) : d.getName(h), selected: Je(l) ? l : Pe({}, l) }); } })); } -function jOe(e, t, r) { +function rLe(e, t, r) { e.on("selectchanged", function(n) { var i = r.getModel(); n.isFromClick ? (Ph("map", "selectchanged", t, i, n), Ph("pie", "selectchanged", t, i, n)) : n.fromAction === "select" ? (Ph("map", "selected", t, i, n), Ph("pie", "selected", t, i, n)) : n.fromAction === "unselect" && (Ph("map", "unselected", t, i, n), Ph("pie", "unselected", t, i, n)); @@ -61754,15 +61795,15 @@ function nd(e, t, r) { e = e.__hostTarget || e.parent; return n; } -var UOe = Math.round(Math.random() * 9), KOe = typeof Object.defineProperty == "function", YOe = function() { +var nLe = Math.round(Math.random() * 9), iLe = typeof Object.defineProperty == "function", oLe = function() { function e() { - this._id = "__ec_inner_" + UOe++; + this._id = "__ec_inner_" + nLe++; } return e.prototype.get = function(t) { return this._guard(t)[this._id]; }, e.prototype.set = function(t, r) { var n = this._guard(t); - return KOe ? Object.defineProperty(n, this._id, { + return iLe ? Object.defineProperty(n, this._id, { value: r, enumerable: !1, configurable: !0 @@ -61776,7 +61817,7 @@ var UOe = Math.round(Math.random() * 9), KOe = typeof Object.defineProperty == " throw TypeError("Value of WeakMap is not a non-null object."); return t; }, e; -}(), qOe = nr.extend({ +}(), aLe = nr.extend({ type: "triangle", shape: { cx: 0, @@ -61788,7 +61829,7 @@ var UOe = Math.round(Math.random() * 9), KOe = typeof Object.defineProperty == " var r = t.cx, n = t.cy, i = t.width / 2, o = t.height / 2; e.moveTo(r, n - o), e.lineTo(r + i, n + o), e.lineTo(r - i, n + o), e.closePath(); } -}), XOe = nr.extend({ +}), sLe = nr.extend({ type: "diamond", shape: { cx: 0, @@ -61800,7 +61841,7 @@ var UOe = Math.round(Math.random() * 9), KOe = typeof Object.defineProperty == " var r = t.cx, n = t.cy, i = t.width / 2, o = t.height / 2; e.moveTo(r, n - o), e.lineTo(r + i, n), e.lineTo(r, n + o), e.lineTo(r - i, n), e.closePath(); } -}), ZOe = nr.extend({ +}), lLe = nr.extend({ type: "pin", shape: { // x, y on the cusp @@ -61813,7 +61854,7 @@ var UOe = Math.round(Math.random() * 9), KOe = typeof Object.defineProperty == " var r = t.x, n = t.y, i = t.width / 5 * 3, o = Math.max(i, t.height), a = i / 2, s = a * a / (o - a), l = n - o + a + s, c = Math.asin(s / a), u = Math.cos(c) * a, d = Math.sin(c), h = Math.cos(c), f = a * 0.6, p = a * 0.7; e.moveTo(r - u, l + s), e.arc(r, l, a, Math.PI - c, Math.PI * 2 + c), e.bezierCurveTo(r + u - d * f, l + s + h * f, r, n - p, r, n), e.bezierCurveTo(r, n - p, r - u + d * f, l + s + h * f, r - u, l + s), e.closePath(); } -}), QOe = nr.extend({ +}), cLe = nr.extend({ type: "arrow", shape: { x: 0, @@ -61825,17 +61866,17 @@ var UOe = Math.round(Math.random() * 9), KOe = typeof Object.defineProperty == " var r = t.height, n = t.width, i = t.x, o = t.y, a = n / 3 * 2; e.moveTo(i, o), e.lineTo(i + a, o + r), e.lineTo(i, o + r / 4 * 3), e.lineTo(i - a, o + r), e.lineTo(i, o), e.closePath(); } -}), JOe = { +}), uLe = { line: ri, rect: mr, roundRect: mr, square: mr, circle: Ql, - diamond: XOe, - pin: ZOe, - arrow: QOe, - triangle: qOe -}, eLe = { + diamond: sLe, + pin: lLe, + arrow: cLe, + triangle: aLe +}, dLe = { line: function(e, t, r, n, i) { i.x1 = e, i.y1 = t + n / 2, i.x2 = e + r, i.y2 = t + n / 2; }, @@ -61864,11 +61905,11 @@ var UOe = Math.round(Math.random() * 9), KOe = typeof Object.defineProperty == " triangle: function(e, t, r, n, i) { i.cx = e + r / 2, i.cy = t + n / 2, i.width = r, i.height = n; } -}, VS = {}; -z(JOe, function(e, t) { - VS[t] = new e(); +}, zS = {}; +z(uLe, function(e, t) { + zS[t] = new e(); }); -var tLe = nr.extend({ +var hLe = nr.extend({ type: "symbol", shape: { symbolType: "", @@ -61878,18 +61919,18 @@ var tLe = nr.extend({ height: 0 }, calculateTextPosition: function(e, t, r) { - var n = TS(e, t, r), i = this.shape; + var n = MS(e, t, r), i = this.shape; return i && i.symbolType === "pin" && t.position === "inside" && (n.y = r.y + r.height * 0.4), n; }, buildPath: function(e, t, r) { var n = t.symbolType; if (n !== "none") { - var i = VS[n]; - i || (n = "rect", i = VS[n]), eLe[n](t.x, t.y, t.width, t.height, i.shape), i.buildPath(e, i.shape, r); + var i = zS[n]; + i || (n = "rect", i = zS[n]), dLe[n](t.x, t.y, t.width, t.height, i.shape), i.buildPath(e, i.shape, r); } } }); -function rLe(e, t) { +function fLe(e, t) { if (this.type !== "image") { var r = this.style; this.__isEmptyBrush ? (r.stroke = e, r.fill = t || "#fff", r.lineWidth = 2) : this.shape.symbolType === "line" ? r.stroke = e : r.fill = e, this.markRedraw(); @@ -61899,7 +61940,7 @@ function Bn(e, t, r, n, i, o, a) { var s = e.indexOf("empty") === 0; s && (e = e.substr(5, 1).toLowerCase() + e.substr(6)); var l; - return e.indexOf("image://") === 0 ? l = Y2(e.slice(8), new Kt(t, r, n, i), a ? "center" : "cover") : e.indexOf("path://") === 0 ? l = Jm(e.slice(7), {}, new Kt(t, r, n, i), a ? "center" : "cover") : l = new tLe({ + return e.indexOf("image://") === 0 ? l = YI(e.slice(8), new Yt(t, r, n, i), a ? "center" : "cover") : e.indexOf("path://") === 0 ? l = ry(e.slice(7), {}, new Yt(t, r, n, i), a ? "center" : "cover") : l = new hLe({ shape: { symbolType: e, x: t, @@ -61907,36 +61948,36 @@ function Bn(e, t, r, n, i, o, a) { width: n, height: i } - }), l.__isEmptyBrush = s, l.setColor = rLe, o && l.setColor(o), l; + }), l.__isEmptyBrush = s, l.setColor = fLe, o && l.setColor(o), l; } -function wp(e) { - return Ie(e) || (e = [+e, +e]), [e[0] || 0, e[1] || 0]; +function Ep(e) { + return Ae(e) || (e = [+e, +e]), [e[0] || 0, e[1] || 0]; } function Zd(e, t) { if (e != null) - return Ie(e) || (e = [e, e]), [Ze(e[0], t[0]) || 0, Ze($t(e[1], e[0]), t[1]) || 0]; + return Ae(e) || (e = [e, e]), [Ze(e[0], t[0]) || 0, Ze($t(e[1], e[0]), t[1]) || 0]; } function id(e) { return isFinite(e); } -function nLe(e, t, r) { +function pLe(e, t, r) { var n = t.x == null ? 0 : t.x, i = t.x2 == null ? 1 : t.x2, o = t.y == null ? 0 : t.y, a = t.y2 == null ? 0 : t.y2; t.global || (n = n * r.width + r.x, i = i * r.width + r.x, o = o * r.height + r.y, a = a * r.height + r.y), n = id(n) ? n : 0, i = id(i) ? i : 1, o = id(o) ? o : 0, a = id(a) ? a : 0; var s = e.createLinearGradient(n, o, i, a); return s; } -function iLe(e, t, r) { +function gLe(e, t, r) { var n = r.width, i = r.height, o = Math.min(n, i), a = t.x == null ? 0.5 : t.x, s = t.y == null ? 0.5 : t.y, l = t.r == null ? 0.5 : t.r; t.global || (a = a * n + r.x, s = s * i + r.y, l = l * o), a = id(a) ? a : 0.5, s = id(s) ? s : 0.5, l = l >= 0 && id(l) ? l : 0.5; var c = e.createRadialGradient(a, s, 0, a, s, l); return c; } function sM(e, t, r) { - for (var n = t.type === "radial" ? iLe(e, t, r) : nLe(e, t, r), i = t.colorStops, o = 0; o < i.length; o++) + for (var n = t.type === "radial" ? gLe(e, t, r) : pLe(e, t, r), i = t.colorStops, o = 0; o < i.length; o++) n.addColorStop(i[o].offset, i[o].color); return n; } -function oLe(e, t) { +function vLe(e, t) { if (e === t || !e && !t) return !1; if (!e || !t || e.length !== t.length) @@ -61946,7 +61987,7 @@ function oLe(e, t) { return !0; return !1; } -function f0(e) { +function v0(e) { return parseInt(e, 10); } function nf(e, t, r) { @@ -61954,13 +61995,13 @@ function nf(e, t, r) { if (r[n] != null && r[n] !== "auto") return parseFloat(r[n]); var s = document.defaultView.getComputedStyle(e); - return (e[i] || f0(s[n]) || f0(e.style[n])) - (f0(s[o]) || 0) - (f0(s[a]) || 0) | 0; + return (e[i] || v0(s[n]) || v0(e.style[n])) - (v0(s[o]) || 0) - (v0(s[a]) || 0) | 0; } -function aLe(e, t) { - return !e || e === "solid" || !(t > 0) ? null : e === "dashed" ? [4 * t, 2 * t] : e === "dotted" ? [t] : Cr(e) ? [e] : Ie(e) ? e : null; +function mLe(e, t) { + return !e || e === "solid" || !(t > 0) ? null : e === "dashed" ? [4 * t, 2 * t] : e === "dotted" ? [t] : Cr(e) ? [e] : Ae(e) ? e : null; } function mA(e) { - var t = e.style, r = t.lineDash && t.lineWidth > 0 && aLe(t.lineDash, t.lineWidth), n = t.lineDashOffset; + var t = e.style, r = t.lineDash && t.lineWidth > 0 && mLe(t.lineDash, t.lineWidth), n = t.lineDashOffset; if (r) { var i = t.strokeNoScale && e.getLineScale ? e.getLineScale() : 1; i && i !== 1 && (r = Fe(r, function(o) { @@ -61969,26 +62010,26 @@ function mA(e) { } return [r, n]; } -var sLe = new Ys(!0); -function HS(e) { +var yLe = new Ys(!0); +function GS(e) { var t = e.stroke; return !(t == null || t === "none" || !(e.lineWidth > 0)); } -function SB(e) { +function wB(e) { return typeof e == "string" && e !== "none"; } -function zS(e) { +function WS(e) { var t = e.fill; return t != null && t !== "none"; } -function bB(e, t) { +function xB(e, t) { if (t.fillOpacity != null && t.fillOpacity !== 1) { var r = e.globalAlpha; e.globalAlpha = t.fillOpacity * t.opacity, e.fill(), e.globalAlpha = r; } else e.fill(); } -function wB(e, t) { +function EB(e, t) { if (t.strokeOpacity != null && t.strokeOpacity !== 1) { var r = e.globalAlpha; e.globalAlpha = t.strokeOpacity * t.opacity, e.stroke(), e.globalAlpha = r; @@ -61996,20 +62037,20 @@ function wB(e, t) { e.stroke(); } function lM(e, t, r) { - var n = $2(t.image, t.__image, r); + var n = $I(t.image, t.__image, r); if (Ow(n)) { var i = e.createPattern(n, t.repeat || "repeat"); if (typeof DOMMatrix == "function" && i && i.setTransform) { var o = new DOMMatrix(); - o.translateSelf(t.x || 0, t.y || 0), o.rotateSelf(0, 0, (t.rotation || 0) * Xg), o.scaleSelf(t.scaleX || 1, t.scaleY || 1), i.setTransform(o); + o.translateSelf(t.x || 0, t.y || 0), o.rotateSelf(0, 0, (t.rotation || 0) * Qg), o.scaleSelf(t.scaleX || 1, t.scaleY || 1), i.setTransform(o); } return i; } } -function lLe(e, t, r, n) { - var i, o = HS(r), a = zS(r), s = r.strokePercent, l = s < 1, c = !t.path; +function CLe(e, t, r, n) { + var i, o = GS(r), a = WS(r), s = r.strokePercent, l = s < 1, c = !t.path; (!t.silent || l) && c && t.createPathProxy(); - var u = t.path || sLe, d = t.__dirty; + var u = t.path || yLe, d = t.__dirty; if (!n) { var h = r.fill, f = r.stroke, p = a && !!h.colorStops, g = o && !!f.colorStops, v = a && !!h.image, m = o && !!f.image, y = void 0, C = void 0, b = void 0, w = void 0, x = void 0; (p || g) && (x = t.getBoundingRect()), p && (y = d ? sM(e, h, x) : t.__canvasFillGradient, t.__canvasFillGradient = y), g && (C = d ? sM(e, f, x) : t.__canvasStrokeGradient, t.__canvasStrokeGradient = C), v && (b = d || !t.__canvasFillPattern ? lM(e, h, t) : t.__canvasFillPattern, t.__canvasFillPattern = b), m && (w = d || !t.__canvasStrokePattern ? lM(e, f, t) : t.__canvasStrokePattern, t.__canvasStrokePattern = b), p ? e.fillStyle = y : v && (b ? e.fillStyle = b : a = !1), g ? e.strokeStyle = C : m && (w ? e.strokeStyle = w : o = !1); @@ -62019,10 +62060,10 @@ function lLe(e, t, r, n) { var R, P; e.setLineDash && r.lineDash && (i = mA(t), R = i[0], P = i[1]); var T = !0; - (c || d & jh) && (u.setDPR(e.dpr), l ? u.setContext(null) : (u.setContext(e), T = !1), u.reset(), t.buildPath(u, t.shape, n), u.toStatic(), t.pathUpdated()), T && u.rebuildPath(e, l ? s : 1), R && (e.setLineDash(R), e.lineDashOffset = P), n || (r.strokeFirst ? (o && wB(e, r), a && bB(e, r)) : (a && bB(e, r), o && wB(e, r))), R && e.setLineDash([]); + (c || d & jh) && (u.setDPR(e.dpr), l ? u.setContext(null) : (u.setContext(e), T = !1), u.reset(), t.buildPath(u, t.shape, n), u.toStatic(), t.pathUpdated()), T && u.rebuildPath(e, l ? s : 1), R && (e.setLineDash(R), e.lineDashOffset = P), n || (r.strokeFirst ? (o && EB(e, r), a && xB(e, r)) : (a && xB(e, r), o && EB(e, r))), R && e.setLineDash([]); } -function cLe(e, t, r) { - var n = t.__image = $2(r.image, t.__image, t, t.onload); +function SLe(e, t, r) { + var n = t.__image = $I(r.image, t.__image, t, t.onload); if (!(!n || !Ow(n))) { var i = r.x || 0, o = r.y || 0, a = t.getWidth(), s = t.getHeight(), l = n.width / n.height; if (a == null && s != null ? a = s * l : s == null && a != null ? s = a / l : a == null && s == null && (a = n.width, s = n.height), r.sWidth && r.sHeight) { @@ -62035,20 +62076,20 @@ function cLe(e, t, r) { e.drawImage(n, i, o, a, s); } } -function uLe(e, t, r) { +function bLe(e, t, r) { var n, i = r.text; if (i != null && (i += ""), i) { e.font = r.font || Vc, e.textAlign = r.textAlign, e.textBaseline = r.textBaseline; var o = void 0, a = void 0; - e.setLineDash && r.lineDash && (n = mA(t), o = n[0], a = n[1]), o && (e.setLineDash(o), e.lineDashOffset = a), r.strokeFirst ? (HS(r) && e.strokeText(i, r.x, r.y), zS(r) && e.fillText(i, r.x, r.y)) : (zS(r) && e.fillText(i, r.x, r.y), HS(r) && e.strokeText(i, r.x, r.y)), o && e.setLineDash([]); + e.setLineDash && r.lineDash && (n = mA(t), o = n[0], a = n[1]), o && (e.setLineDash(o), e.lineDashOffset = a), r.strokeFirst ? (GS(r) && e.strokeText(i, r.x, r.y), WS(r) && e.fillText(i, r.x, r.y)) : (WS(r) && e.fillText(i, r.x, r.y), GS(r) && e.strokeText(i, r.x, r.y)), o && e.setLineDash([]); } } -var xB = ["shadowBlur", "shadowOffsetX", "shadowOffsetY"], EB = [ +var RB = ["shadowBlur", "shadowOffsetX", "shadowOffsetY"], PB = [ ["lineCap", "butt"], ["lineJoin", "miter"], ["miterLimit", 10] ]; -function rX(e, t, r, n, i) { +function oX(e, t, r, n, i) { var o = !1; if (!n && (r = r || {}, t === r)) return !1; @@ -62058,53 +62099,53 @@ function rX(e, t, r, n, i) { e.globalAlpha = isNaN(a) ? dd.opacity : a; } (n || t.blend !== r.blend) && (o || (vo(e, i), o = !0), e.globalCompositeOperation = t.blend || dd.blend); - for (var s = 0; s < xB.length; s++) { - var l = xB[s]; + for (var s = 0; s < RB.length; s++) { + var l = RB[s]; (n || t[l] !== r[l]) && (o || (vo(e, i), o = !0), e[l] = e.dpr * (t[l] || 0)); } return (n || t.shadowColor !== r.shadowColor) && (o || (vo(e, i), o = !0), e.shadowColor = t.shadowColor || dd.shadowColor), o; } -function RB(e, t, r, n, i) { - var o = em(t, i.inHover), a = n ? null : r && em(r, i.inHover) || {}; +function TB(e, t, r, n, i) { + var o = rm(t, i.inHover), a = n ? null : r && rm(r, i.inHover) || {}; if (o === a) return !1; - var s = rX(e, o, a, n, i); - if ((n || o.fill !== a.fill) && (s || (vo(e, i), s = !0), SB(o.fill) && (e.fillStyle = o.fill)), (n || o.stroke !== a.stroke) && (s || (vo(e, i), s = !0), SB(o.stroke) && (e.strokeStyle = o.stroke)), (n || o.opacity !== a.opacity) && (s || (vo(e, i), s = !0), e.globalAlpha = o.opacity == null ? 1 : o.opacity), t.hasStroke()) { + var s = oX(e, o, a, n, i); + if ((n || o.fill !== a.fill) && (s || (vo(e, i), s = !0), wB(o.fill) && (e.fillStyle = o.fill)), (n || o.stroke !== a.stroke) && (s || (vo(e, i), s = !0), wB(o.stroke) && (e.strokeStyle = o.stroke)), (n || o.opacity !== a.opacity) && (s || (vo(e, i), s = !0), e.globalAlpha = o.opacity == null ? 1 : o.opacity), t.hasStroke()) { var l = o.lineWidth, c = l / (o.strokeNoScale && t.getLineScale ? t.getLineScale() : 1); e.lineWidth !== c && (s || (vo(e, i), s = !0), e.lineWidth = c); } - for (var u = 0; u < EB.length; u++) { - var d = EB[u], h = d[0]; + for (var u = 0; u < PB.length; u++) { + var d = PB[u], h = d[0]; (n || o[h] !== a[h]) && (s || (vo(e, i), s = !0), e[h] = o[h] || d[1]); } return s; } -function dLe(e, t, r, n, i) { - return rX(e, em(t, i.inHover), r && em(r, i.inHover), n, i); +function wLe(e, t, r, n, i) { + return oX(e, rm(t, i.inHover), r && rm(r, i.inHover), n, i); } -function nX(e, t) { +function aX(e, t) { var r = t.transform, n = e.dpr || 1; r ? e.setTransform(n * r[0], n * r[1], n * r[2], n * r[3], n * r[4], n * r[5]) : e.setTransform(n, 0, 0, n, 0, 0); } -function hLe(e, t, r) { +function xLe(e, t, r) { for (var n = !1, i = 0; i < e.length; i++) { var o = e[i]; - n = n || o.isZeroArea(), nX(t, o), t.beginPath(), o.buildPath(t, o.shape), t.clip(); + n = n || o.isZeroArea(), aX(t, o), t.beginPath(), o.buildPath(t, o.shape), t.clip(); } r.allClipped = n; } -function fLe(e, t) { +function ELe(e, t) { return e && t ? e[0] !== t[0] || e[1] !== t[1] || e[2] !== t[2] || e[3] !== t[3] || e[4] !== t[4] || e[5] !== t[5] : !(!e && !t); } -var PB = 1, TB = 2, _B = 3, MB = 4; -function pLe(e) { - var t = zS(e), r = HS(e); +var _B = 1, MB = 2, DB = 3, IB = 4; +function RLe(e) { + var t = WS(e), r = GS(e); return !(e.lineDash || !(+t ^ +r) || t && typeof e.fill != "string" || r && typeof e.stroke != "string" || e.strokePercent < 1 || e.strokeOpacity < 1 || e.fillOpacity < 1); } function vo(e, t) { t.batchFill && e.fill(), t.batchStroke && e.stroke(), t.batchFill = "", t.batchStroke = ""; } -function em(e, t) { +function rm(e, t) { return t && e.__hoverStyle || e.style; } function yA(e, t) { @@ -62117,19 +62158,19 @@ function od(e, t, r, n) { return; } var o = t.__clipPaths, a = r.prevElClipPaths, s = !1, l = !1; - if ((!a || oLe(o, a)) && (a && a.length && (vo(e, r), e.restore(), l = s = !0, r.prevElClipPaths = null, r.allClipped = !1, r.prevEl = null), o && o.length && (vo(e, r), e.save(), hLe(o, e, r), s = !0), r.prevElClipPaths = o), r.allClipped) { + if ((!a || vLe(o, a)) && (a && a.length && (vo(e, r), e.restore(), l = s = !0, r.prevElClipPaths = null, r.allClipped = !1, r.prevEl = null), o && o.length && (vo(e, r), e.save(), xLe(o, e, r), s = !0), r.prevElClipPaths = o), r.allClipped) { t.__isRendered = !1; return; } t.beforeBrush && t.beforeBrush(), t.innerBeforeBrush(); var c = r.prevEl; c || (l = s = !0); - var u = t instanceof nr && t.autoBatch && pLe(t.style); - s || fLe(i, c.transform) ? (vo(e, r), nX(e, t)) : u || vo(e, r); - var d = em(t, r.inHover); - t instanceof nr ? (r.lastDrawType !== PB && (l = !0, r.lastDrawType = PB), RB(e, t, c, l, r), (!u || !r.batchFill && !r.batchStroke) && e.beginPath(), lLe(e, t, d, u), u && (r.batchFill = d.fill || "", r.batchStroke = d.stroke || "")) : t instanceof Nf ? (r.lastDrawType !== _B && (l = !0, r.lastDrawType = _B), RB(e, t, c, l, r), uLe(e, t, d)) : t instanceof yi ? (r.lastDrawType !== TB && (l = !0, r.lastDrawType = TB), dLe(e, t, c, l, r), cLe(e, t, d)) : t.getTemporalDisplayables && (r.lastDrawType !== MB && (l = !0, r.lastDrawType = MB), gLe(e, t, r)), u && n && vo(e, r), t.innerAfterBrush(), t.afterBrush && t.afterBrush(), r.prevEl = t, t.__dirty = 0, t.__isRendered = !0; + var u = t instanceof nr && t.autoBatch && RLe(t.style); + s || ELe(i, c.transform) ? (vo(e, r), aX(e, t)) : u || vo(e, r); + var d = rm(t, r.inHover); + t instanceof nr ? (r.lastDrawType !== _B && (l = !0, r.lastDrawType = _B), TB(e, t, c, l, r), (!u || !r.batchFill && !r.batchStroke) && e.beginPath(), CLe(e, t, d, u), u && (r.batchFill = d.fill || "", r.batchStroke = d.stroke || "")) : t instanceof $f ? (r.lastDrawType !== DB && (l = !0, r.lastDrawType = DB), TB(e, t, c, l, r), bLe(e, t, d)) : t instanceof Ci ? (r.lastDrawType !== MB && (l = !0, r.lastDrawType = MB), wLe(e, t, c, l, r), SLe(e, t, d)) : t.getTemporalDisplayables && (r.lastDrawType !== IB && (l = !0, r.lastDrawType = IB), PLe(e, t, r)), u && n && vo(e, r), t.innerAfterBrush(), t.afterBrush && t.afterBrush(), r.prevEl = t, t.__dirty = 0, t.__isRendered = !0; } -function gLe(e, t, r) { +function PLe(e, t, r) { var n = t.getDisplayables(), i = t.getTemporalDisplayables(); e.save(); var o = { @@ -62150,8 +62191,8 @@ function gLe(e, t, r) { } t.clearTemporalDisplayables(), t.notClear = !0, e.restore(); } -var RE = new YOe(), DB = new Um(100), IB = ["symbol", "symbolSize", "symbolKeepAspect", "color", "backgroundColor", "dashArrayX", "dashArrayY", "maxTileWidth", "maxTileHeight"]; -function Bf(e, t) { +var RE = new oLe(), AB = new qm(100), OB = ["symbol", "symbolSize", "symbolKeepAspect", "color", "backgroundColor", "dashArrayX", "dashArrayY", "maxTileWidth", "maxTileHeight"]; +function Hf(e, t) { if (e === "none") return null; var r = t.getDevicePixelRatio(), n = t.getZr(), i = n.painter.type === "svg"; @@ -62159,7 +62200,7 @@ function Bf(e, t) { var o = RE.get(e); if (o) return o; - var a = wt(e, { + var a = xt(e, { symbol: "rect", symbolSize: 1, symbolKeepAspect: !0, @@ -62177,9 +62218,9 @@ function Bf(e, t) { }; return l(s), s.rotation = a.rotation, s.scaleX = s.scaleY = i ? 1 : 1 / r, RE.set(e, s), e.dirty = !1, s; function l(c) { - for (var u = [r], d = !0, h = 0; h < IB.length; ++h) { - var f = a[IB[h]]; - if (f != null && !Ie(f) && !Je(f) && !Cr(f) && typeof f != "boolean") { + for (var u = [r], d = !0, h = 0; h < OB.length; ++h) { + var f = a[OB[h]]; + if (f != null && !Ae(f) && !Je(f) && !Cr(f) && typeof f != "boolean") { d = !1; break; } @@ -62188,21 +62229,21 @@ function Bf(e, t) { var p; if (d) { p = u.join(",") + (i ? "-svg" : ""); - var g = DB.get(p); + var g = AB.get(p); g && (i ? c.svgElement = g : c.image = g); } - var v = oX(a.dashArrayX), m = vLe(a.dashArrayY), y = iX(a.symbol), C = mLe(v), b = aX(m), w = !i && os.createCanvas(), x = i && { + var v = lX(a.dashArrayX), m = TLe(a.dashArrayY), y = sX(a.symbol), C = _Le(v), b = cX(m), w = !i && os.createCanvas(), x = i && { tag: "g", attrs: {}, key: "dcl", children: [] }, E = P(), R; - w && (w.width = E.width * r, w.height = E.height * r, R = w.getContext("2d")), T(), d && DB.put(p, w || x), c.image = w, c.svgElement = x, c.svgWidth = E.width, c.svgHeight = E.height; + w && (w.width = E.width * r, w.height = E.height * r, R = w.getContext("2d")), T(), d && AB.put(p, w || x), c.image = w, c.svgElement = x, c.svgWidth = E.width, c.svgHeight = E.height; function P() { for (var _ = 1, D = 0, A = C.length; D < A; ++D) - _ = j4(_, C[D]); + _ = K4(_, C[D]); for (var M = 1, D = 0, A = y.length; D < A; ++D) - M = j4(M, y[D].length); + M = K4(M, y[D].length); _ *= M; var O = b * C.length * y.length; if (process.env.NODE_ENV !== "production") { @@ -62239,18 +62280,18 @@ function Bf(e, t) { } A += m[M], ++O, ++M, M === m.length && (M = 0); } - function J(te, Q, Y, K, ae) { - var G = i ? 1 : r, re = Bn(ae, te * G, Q * G, Y * G, K * G, a.color, a.symbolKeepAspect); + function J(re, Q, Y, K, ae) { + var G = i ? 1 : r, ne = Bn(ae, re * G, Q * G, Y * G, K * G, a.color, a.symbolKeepAspect); if (i) { - var le = n.painter.renderOneToVNode(re); + var le = n.painter.renderOneToVNode(ne); le && x.children.push(le); } else - yA(R, re); + yA(R, ne); } } } } -function iX(e) { +function sX(e) { if (!e || e.length === 0) return [["rect"]]; if (Je(e)) @@ -62261,12 +62302,12 @@ function iX(e) { break; } if (t) - return iX([e]); + return sX([e]); for (var n = [], r = 0; r < e.length; ++r) Je(e[r]) ? n.push([e[r]]) : n.push(e[r]); return n; } -function oX(e) { +function lX(e) { if (!e || e.length === 0) return [[0, 0]]; if (Cr(e)) { @@ -62279,7 +62320,7 @@ function oX(e) { break; } if (r) - return oX([e]); + return lX([e]); for (var i = [], n = 0; n < e.length; ++n) if (Cr(e[n])) { var t = Math.ceil(e[n]); @@ -62292,7 +62333,7 @@ function oX(e) { } return i; } -function vLe(e) { +function TLe(e) { if (!e || typeof e == "object" && e.length === 0) return [0, 0]; if (Cr(e)) { @@ -62304,17 +62345,17 @@ function vLe(e) { }); return e.length % 2 ? r.concat(r) : r; } -function mLe(e) { +function _Le(e) { return Fe(e, function(t) { - return aX(t); + return cX(t); }); } -function aX(e) { +function cX(e) { for (var t = 0, r = 0; r < e.length; ++r) t += e[r]; return e.length % 2 === 1 ? t * 2 : t; } -function yLe(e, t) { +function MLe(e, t) { e.eachRawSeries(function(r) { if (!e.isSeriesFiltered(r)) { var n = r.getData(); @@ -62322,46 +62363,46 @@ function yLe(e, t) { var s = n.getItemVisual(a, "decal"); if (s) { var l = n.ensureUniqueItemVisual(a, "style"); - l.decal = Bf(s, t); + l.decal = Hf(s, t); } }); var i = n.getVisual("decal"); if (i) { var o = n.getVisual("style"); - o.decal = Bf(i, t); + o.decal = Hf(i, t); } } }); } -var Ha = new Da(), GS = {}; -function CLe(e, t) { - process.env.NODE_ENV !== "production" && GS[e] && xi("Already has an implementation of " + e + "."), GS[e] = t; +var Ha = new Da(), jS = {}; +function DLe(e, t) { + process.env.NODE_ENV !== "production" && jS[e] && Ei("Already has an implementation of " + e + "."), jS[e] = t; } -function sX(e) { - return process.env.NODE_ENV !== "production" && (GS[e] || xi("Implementation of " + e + " doesn't exists.")), GS[e]; +function uX(e) { + return process.env.NODE_ENV !== "production" && (jS[e] || Ei("Implementation of " + e + " doesn't exists.")), jS[e]; } -var SLe = "5.5.1", bLe = { +var ILe = "5.5.1", ALe = { zrender: "5.6.0" -}, wLe = 1, xLe = 800, ELe = 900, RLe = 1e3, PLe = 2e3, TLe = 5e3, lX = 1e3, _Le = 1100, CA = 2e3, cX = 3e3, MLe = 4e3, Jw = 4500, DLe = 4600, ILe = 5e3, ALe = 6e3, uX = 7e3, dX = { +}, OLe = 1, LLe = 800, FLe = 900, NLe = 1e3, kLe = 2e3, $Le = 5e3, dX = 1e3, BLe = 1100, CA = 2e3, hX = 3e3, VLe = 4e3, Jw = 4500, HLe = 4600, zLe = 5e3, GLe = 6e3, fX = 7e3, pX = { PROCESSOR: { - FILTER: RLe, - SERIES_FILTER: xLe, - STATISTIC: TLe + FILTER: NLe, + SERIES_FILTER: LLe, + STATISTIC: $Le }, VISUAL: { - LAYOUT: lX, - PROGRESSIVE_LAYOUT: _Le, + LAYOUT: dX, + PROGRESSIVE_LAYOUT: BLe, GLOBAL: CA, - CHART: cX, - POST_CHART_LAYOUT: DLe, - COMPONENT: MLe, - BRUSH: ILe, + CHART: hX, + POST_CHART_LAYOUT: HLe, + COMPONENT: VLe, + BRUSH: zLe, CHART_ITEM: Jw, - ARIA: ALe, - DECAL: uX + ARIA: GLe, + DECAL: fX } -}, _i = "__flagInMainProcess", co = "__pendingUpdate", PE = "__needsUpdateStatus", AB = /^[a-zA-Z0-9_]+$/, TE = "__connectUpdateStatus", OB = 0, OLe = 1, LLe = 2; -function hX(e) { +}, _i = "__flagInMainProcess", co = "__pendingUpdate", PE = "__needsUpdateStatus", LB = /^[a-zA-Z0-9_]+$/, TE = "__connectUpdateStatus", FB = 0, WLe = 1, jLe = 2; +function gX(e) { return function() { for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r]; @@ -62369,20 +62410,20 @@ function hX(e) { Oo(this.id); return; } - return pX(this, e, t); + return mX(this, e, t); }; } -function fX(e) { +function vX(e) { return function() { for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r]; - return pX(this, e, t); + return mX(this, e, t); }; } -function pX(e, t, r) { +function mX(e, t, r) { return r[0] = r[0] && r[0].toLowerCase(), Da.prototype[t].apply(e, r); } -var gX = ( +var yX = ( /** @class */ function(e) { Se(t, e); @@ -62391,16 +62432,16 @@ var gX = ( } return t; }(Da) -), vX = gX.prototype; -vX.on = fX("on"); -vX.off = fX("off"); -var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = ( +), CX = yX.prototype; +CX.on = vX("on"); +CX.off = vX("off"); +var Th, _E, m0, ac, ME, DE, IE, ng, ig, NB, kB, AE, $B, y0, BB, SX, ea, VB, US = ( /** @class */ function(e) { Se(t, e); function t(r, n, i) { - var o = e.call(this, new zOe()) || this; - o._chartsViews = [], o._chartsMap = {}, o._componentsViews = [], o._componentsMap = {}, o._pendingActions = [], i = i || {}, Je(n) && (n = yX[n]), o._dom = r; + var o = e.call(this, new JOe()) || this; + o._chartsViews = [], o._chartsMap = {}, o._componentsViews = [], o._componentsMap = {}, o._pendingActions = [], i = i || {}, Je(n) && (n = bX[n]), o._dom = r; var a = "canvas", s = "auto", l = !1; if (process.env.NODE_ENV !== "production") { var c = ( @@ -62409,7 +62450,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = ); c && (a = $t(c.__ECHARTS__DEFAULT__RENDERER__, a), s = $t(c.__ECHARTS__DEFAULT__COARSE_POINTER, s), l = $t(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, l)); } - i.ssr && UK(function(f) { + i.ssr && qK(function(f) { var p = Ft(f), g = p.dataIndex; if (g != null) { var v = ft(); @@ -62426,16 +62467,16 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = useCoarsePointer: $t(i.useCoarsePointer, s), pointerSize: i.pointerSize }); - o._ssr = i.ssr, o._throttledZrFlush = Qw(at(u.flush, u), 17), n = _t(n), n && Eq(n, !0), o._theme = n, o._locale = X2e(i.locale || nq), o._coordSysMgr = new Xd(); - var d = o._api = kB(o); + o._ssr = i.ssr, o._throttledZrFlush = Qw(at(u.flush, u), 17), n = _t(n), n && Tq(n, !0), o._theme = n, o._locale = sAe(i.locale || aq), o._coordSysMgr = new Xd(); + var d = o._api = BB(o); function h(f, p) { return f.__prio - p.__prio; } - return CC(US, h), CC(cM, h), o._scheduler = new qq(o, d, cM, US), o._messageCenter = new gX(), o._initEvents(), o.resize = at(o.resize, o), u.animation.on("frame", o._onframe, o), LB(u, o), FB(u, o), Bv(o), o; + return wC(YS, h), wC(cM, h), o._scheduler = new Qq(o, d, cM, YS), o._messageCenter = new yX(), o._initEvents(), o.resize = at(o.resize, o), u.animation.on("frame", o._onframe, o), NB(u, o), kB(u, o), Hv(o), o; } return t.prototype._onframe = function() { if (!this._disposed) { - $B(this); + VB(this); var r = this._scheduler; if (this[co]) { var n = this[co].silent; @@ -62445,13 +62486,13 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = } catch (l) { throw this[_i] = !1, this[co] = null, l; } - this._zr.flush(), this[_i] = !1, this[co] = null, tg.call(this, n), rg.call(this, n); + this._zr.flush(), this[_i] = !1, this[co] = null, ng.call(this, n), ig.call(this, n); } else if (r.unfinished) { - var i = wLe, o = this._model, a = this._api; + var i = OLe, o = this._model, a = this._api; r.unfinished = !1; do { var s = +/* @__PURE__ */ new Date(); - r.performSeriesTasks(o), r.performDataProcessorTasks(o), DE(this, o), r.performVisualTasks(o), g0(this, this._model, a, "remain", {}), i -= +/* @__PURE__ */ new Date() - s; + r.performSeriesTasks(o), r.performDataProcessorTasks(o), DE(this, o), r.performVisualTasks(o), y0(this, this._model, a, "remain", {}), i -= +/* @__PURE__ */ new Date() - s; } while (i > 0 && r.unfinished); r.unfinished || this._zr.flush(); } @@ -62466,7 +62507,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = return this._ssr; }, t.prototype.setOption = function(r, n, i) { if (this[_i]) { - process.env.NODE_ENV !== "production" && xi("`setOption` should not be called during main process."); + process.env.NODE_ENV !== "production" && Ei("`setOption` should not be called during main process."); return; } if (this._disposed) { @@ -62474,8 +62515,8 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = return; } var o, a, s; - if (St(n) && (i = n.lazyUpdate, o = n.silent, a = n.replaceMerge, s = n.transition, n = n.notMerge), this[_i] = !0, !this._model || n) { - var l = new RAe(this._api), c = this._theme, u = this._model = new dA(); + if (bt(n) && (i = n.lazyUpdate, o = n.silent, a = n.replaceMerge, s = n.transition, n = n.notMerge), this[_i] = !0, !this._model || n) { + var l = new NAe(this._api), c = this._theme, u = this._model = new dA(); u.scheduler = this._scheduler, u.ssr = this._ssr, u.init(null, null, null, c, this._locale, l); } this._model.setOption(r, { @@ -62496,7 +62537,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = } catch (h) { throw this[co] = null, this[_i] = !1, h; } - this._ssr || this._zr.flush(), this[co] = null, this[_i] = !1, tg.call(this, o), rg.call(this, o); + this._ssr || this._zr.flush(), this[co] = null, this[_i] = !1, ng.call(this, o), ig.call(this, o); } }, t.prototype.setTheme = function() { Pa("ECharts#setTheme() is DEPRECATED in ECharts 3.0"); @@ -62561,7 +62602,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = return; } var n = r.type === "svg", i = this.group, o = Math.min, a = Math.max, s = 1 / 0; - if (KS[i]) { + if (qS[i]) { var l = s, c = s, u = -s, d = -s, h = [], f = r && r.pixelRatio || this.getDevicePixelRatio(); z(pd, function(C, b) { if (C.group === i) { @@ -62597,7 +62638,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = fill: r.connectedBackgroundColor } })), z(h, function(C) { - var b = new yi({ + var b = new Ci({ style: { x: C.left * f - l, y: C.top * f - c, @@ -62617,7 +62658,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = Oo(this.id); return; } - var i = this._model, o, a = nv(i, r); + var i = this._model, o, a = ov(i, r); return z(a, function(s, l) { l.indexOf("Models") >= 0 && z(s, function(c) { var u = c.coordinateSystem; @@ -62631,19 +62672,19 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = }, this); }, this), !!o; }, t.prototype.getVisual = function(r, n) { - var i = this._model, o = nv(i, r, { + var i = this._model, o = ov(i, r, { defaultMainType: "series" }), a = o.seriesModel; process.env.NODE_ENV !== "production" && (a || Cn("There is no specified series model")); var s = a.getData(), l = o.hasOwnProperty("dataIndexInside") ? o.dataIndexInside : o.hasOwnProperty("dataIndex") ? s.indexOfRawIndex(o.dataIndex) : null; - return l != null ? vA(s, l, n) : ry(s, n); + return l != null ? vA(s, l, n) : oy(s, n); }, t.prototype.getViewOfComponentModel = function(r) { return this._componentsMap[r.__viewId]; }, t.prototype.getViewOfSeriesModel = function(r) { return this._chartsMap[r.__viewId]; }, t.prototype._initEvents = function() { var r = this; - z(FLe, function(n) { + z(ULe, function(n) { var i = function(o) { var a = r.getModel(), s = o.target, l, c = n === "globalout"; if (c ? l = {} : s && nd(s, function(p) { @@ -62666,7 +62707,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = } }; i.zrEventfulCallAtLast = !0, r._zr.on(n, i, r); - }), z(cv, function(n, i) { + }), z(dv, function(n, i) { r._messageCenter.on(i, function(o) { this.trigger(i, o); }, r); @@ -62674,7 +62715,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = r._messageCenter.on(n, function(i) { this.trigger(n, i); }, r); - }), jOe(this._messageCenter, this, this._api); + }), rLe(this._messageCenter, this, this._api); }, t.prototype.isDisposed = function() { return this._disposed; }, t.prototype.clear = function() { @@ -62692,7 +62733,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = } this._disposed = !0; var r = this.getDom(); - r && rY(this.getDom(), bA, ""); + r && oY(this.getDom(), bA, ""); var n = this, i = n._api, o = n._model; z(n._componentsViews, function(a) { a.dispose(o, i); @@ -62701,7 +62742,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = }), n._zr.dispose(), n._dom = n._model = n._chartsMap = n._componentsMap = n._chartsViews = n._componentsViews = n._scheduler = n._api = n._zr = n._throttledZrFlush = n._theme = n._coordSysMgr = n._messageCenter = null, delete pd[n.id]; }, t.prototype.resize = function(r) { if (this[_i]) { - process.env.NODE_ENV !== "production" && xi("`resize` should not be called during main process."); + process.env.NODE_ENV !== "production" && Ei("`resize` should not be called during main process."); return; } if (this._disposed) { @@ -62724,14 +62765,14 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = } catch (a) { throw this[_i] = !1, a; } - this[_i] = !1, tg.call(this, o), rg.call(this, o); + this[_i] = !1, ng.call(this, o), ig.call(this, o); } }, t.prototype.showLoading = function(r, n) { if (this._disposed) { Oo(this.id); return; } - if (St(r) && (n = r, r = ""), r = r || "default", this.hideLoading(), !dM[r]) { + if (bt(r) && (n = r, r = ""), r = r || "default", this.hideLoading(), !dM[r]) { process.env.NODE_ENV !== "production" && Cn("Loading effects " + r + " not exists."); return; } @@ -62745,15 +62786,15 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = this._loadingFX && this._zr.remove(this._loadingFX), this._loadingFX = null; }, t.prototype.makeActionFromEvent = function(r) { var n = Pe({}, r); - return n.type = cv[r.type], n; + return n.type = dv[r.type], n; }, t.prototype.dispatchAction = function(r, n) { if (this._disposed) { Oo(this.id); return; } - if (St(n) || (n = { + if (bt(n) || (n = { silent: !!n - }), !!jS[r.type] && this._model) { + }), !!KS[r.type] && this._model) { if (this[_i]) { this._pendingActions.push(r); return; @@ -62761,7 +62802,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = var i = n.silent; IE.call(this, r, i); var o = n.flush; - o ? this._zr.flush() : o !== !1 && gr.browser.weChat && this._throttledZrFlush(), tg.call(this, i), rg.call(this, i); + o ? this._zr.flush() : o !== !1 && gr.browser.weChat && this._throttledZrFlush(), ng.call(this, i), ig.call(this, i); } }, t.prototype.updateLabelLayout = function() { Ha.trigger("series:layoutlabels", this._model, this._api, { @@ -62775,7 +62816,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = return; } var n = r.seriesIndex, i = this.getModel(), o = i.getSeriesByIndex(n); - process.env.NODE_ENV !== "production" && xt(r.data && o), o.appendData(r), this._scheduler.unfinished = !0, this.getZr().wakeUp(); + process.env.NODE_ENV !== "production" && Et(r.data && o), o.appendData(r), this._scheduler.unfinished = !0, this.getZr().wakeUp(); }, t.internalField = function() { Th = function(d) { var h = d._scheduler; @@ -62799,7 +62840,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = // But need a base class to make a type series. $r.getClass(T.sub) ); - process.env.NODE_ENV !== "production" && xt(_, T.sub + " does not exist."), P = new _(), P.init(f, y), v[R] = P, g.push(P), m.add(P.group); + process.env.NODE_ENV !== "production" && Et(_, T.sub + " does not exist."), P = new _(), P.init(f, y), v[R] = P, g.push(P), m.add(P.group); } x.__viewId = P.__id = R, P.__alive = !0, P.__model = x, P.group.__ecComponentInfo = { mainType: x.mainType, @@ -62810,7 +62851,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = var w = g[C]; w.__alive ? C++ : (!h && w.renderTask.dispose(), m.remove(w.group), w.dispose(f, y), g.splice(C, 1), v[w.__id] === w && delete v[w.__id], w.__id = w.group.__ecComponentInfo = null); } - }, p0 = function(d, h, f, p, g) { + }, m0 = function(d, h, f, p, g) { var v = d._model; if (v.setUpdatePayload(f), !p) { z([].concat(d._componentsViews).concat(d._chartsViews), w); @@ -62830,16 +62871,16 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = })), v && v.eachComponent(y, function(x) { var E = b && b.get(x.id) != null; if (!E) - if (S8(f)) + if (w8(f)) if (x instanceof jr) - f.type === hd && !f.notBlur && !x.get(["emphasis", "disabled"]) && YIe(x, f, d._api); + f.type === hd && !f.notBlur && !x.get(["emphasis", "disabled"]) && oIe(x, f, d._api); else { - var R = W2(x.mainType, x.componentIndex, f.name, d._api), P = R.focusSelf, T = R.dispatchers; + var R = WI(x.mainType, x.componentIndex, f.name, d._api), P = R.focusSelf, T = R.dispatchers; f.type === hd && P && !f.notBlur && W_(x.mainType, x.componentIndex, d._api), T && z(T, function(_) { - f.type === hd ? Vl(_) : Hl(_); + f.type === hd ? Hl(_) : zl(_); }); } - else U_(f) && x instanceof jr && (ZIe(x, f, d._api), y8(x), ea(d)); + else U_(f) && x instanceof jr && (lIe(x, f, d._api), S8(x), ea(d)); }, d), v && v.eachComponent(y, function(x) { var E = b && b.get(x.id) != null; E || w(d[p === "series" ? "_chartsMap" : "_componentsMap"][x.__viewId]); @@ -62891,7 +62932,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = }), r(f), this._scheduler.performVisualTasks(f, d, { setDirty: !0, dirtyMap: v - }), g0(this, f, p, d, {}, v), Ha.trigger("afterupdate", f, p); + }), y0(this, f, p, d, {}, v), Ha.trigger("afterupdate", f, p); } }, updateView: function(d) { @@ -62925,7 +62966,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = Oo(d.id); return; } - for (var g = d._model, v = d._coordSysMgr.getCoordinateSystems(), m, y = nv(g, f), C = 0; C < v.length; C++) { + for (var g = d._model, v = d._coordSysMgr.getCoordinateSystems(), m, y = ov(g, f), C = 0; C < v.length; C++) { var b = v[C]; if (b[h] && (m = b[h](g, y, p)) != null) return m; @@ -62937,18 +62978,18 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = p.updateStreamModes(g, f[g.__viewId]); }); }, IE = function(d, h) { - var f = this, p = this.getModel(), g = d.type, v = d.escapeConnect, m = jS[g], y = m.actionInfo, C = (y.update || "update").split(":"), b = C.pop(), w = C[0] != null && Os(C[0]); + var f = this, p = this.getModel(), g = d.type, v = d.escapeConnect, m = KS[g], y = m.actionInfo, C = (y.update || "update").split(":"), b = C.pop(), w = C[0] != null && Os(C[0]); this[_i] = !0; var x = [d], E = !1; d.batch && (E = !0, x = Fe(d.batch, function(M) { - return M = wt(Pe({}, M), d), M.batch = null, M; + return M = xt(Pe({}, M), d), M.batch = null, M; })); - var R = [], P, T = U_(d), _ = S8(d); - if (_ && TY(this._api), z(x, function(M) { + var R = [], P, T = U_(d), _ = w8(d); + if (_ && DY(this._api), z(x, function(M) { if (P = m.action(M, f._model, f._api), P = P || Pe({}, M), P.type = y.event || P.type, R.push(P), _) { - var O = N2(d), L = O.queryOptionMap, N = O.mainTypeSpecified, F = N ? L.keys()[0] : "series"; - p0(f, b, M, F), ea(f); - } else T ? (p0(f, b, M, "series"), ea(f)) : w && p0(f, b, M, w.main, w.sub); + var O = NI(d), L = O.queryOptionMap, N = O.mainTypeSpecified, F = N ? L.keys()[0] : "series"; + m0(f, b, M, F), ea(f); + } else T ? (m0(f, b, M, "series"), ea(f)) : w && m0(f, b, M, w.main, w.sub); }), b !== "none" && !_ && !T && !w) try { this[co] ? (Th(this), ac.update.call(this, d), this[co] = null) : ac[b].call(this, d); @@ -62965,7 +63006,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = var A = { type: "selectchanged", escapeConnect: v, - selected: QIe(p), + selected: cIe(p), isFromClick: d.isFromClick || !1, fromAction: d.type, fromActionPayload: d @@ -62973,27 +63014,27 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = D.trigger(A.type, A); } } - }, tg = function(d) { + }, ng = function(d) { for (var h = this._pendingActions; h.length; ) { var f = h.shift(); IE.call(this, f, d); } - }, rg = function(d) { + }, ig = function(d) { !d && this.trigger("updated"); - }, LB = function(d, h) { + }, NB = function(d, h) { d.on("rendered", function(f) { h.trigger("rendered", f), // Although zr is dirty if initial animation is not finished // and this checking is called on frame, we also check // animation finished for robustness. d.animation.isFinished() && !h[co] && !h._scheduler.unfinished && !h._pendingActions.length && h.trigger("finished"); }); - }, FB = function(d, h) { + }, kB = function(d, h) { d.on("mouseover", function(f) { var p = f.target, g = nd(p, Wc); - g && (qIe(g, f, h._api), ea(h)); + g && (aIe(g, f, h._api), ea(h)); }).on("mouseout", function(f) { var p = f.target, g = nd(p, Wc); - g && (XIe(g, f, h._api), ea(h)); + g && (sIe(g, f, h._api), ea(h)); }).on("click", function(f) { var p = f.target, g = nd(p, function(y) { return Ft(y).dataIndex != null; @@ -63028,7 +63069,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = }); }), p) { var g = h.concat(f), v, m; - CC(g, function(y, C) { + wC(g, function(y, C) { return y.zlevel === C.zlevel ? y.z - C.z : y.zlevel - C.zlevel; }), z(g, function(y) { var C = d.getComponent(y.type, y.idx), b = y.zlevel, w = y.key; @@ -63037,17 +63078,17 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = } } AE = function(d, h, f, p, g) { - n(h), NB(d, h, f, p, g), z(d._chartsViews, function(v) { + n(h), $B(d, h, f, p, g), z(d._chartsViews, function(v) { v.__alive = !1; - }), g0(d, h, f, p, g), z(d._chartsViews, function(v) { + }), y0(d, h, f, p, g), z(d._chartsViews, function(v) { v.__alive || v.remove(h, f); }); - }, NB = function(d, h, f, p, g, v) { + }, $B = function(d, h, f, p, g, v) { z(v || d._componentsViews, function(m) { var y = m.__model; c(y, m), m.render(y, h, f, p), s(y, m), u(y, m); }); - }, g0 = function(d, h, f, p, g, v) { + }, y0 = function(d, h, f, p, g, v) { var m = d._scheduler; g = Pe(g || {}, { updatedSeries: h.getSeries() @@ -63057,14 +63098,14 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = var b = d._chartsMap[C.__viewId]; b.__alive = !0; var w = b.renderTask; - m.updatePayload(w, p), c(C, b), v && v.get(C.uid) && w.dirty(), w.perform(m.getPerformArgs(w)) && (y = !0), b.group.silent = !!C.get("silent"), a(C, b), y8(C); + m.updatePayload(w, p), c(C, b), v && v.get(C.uid) && w.dirty(), w.perform(m.getPerformArgs(w)) && (y = !0), b.group.silent = !!C.get("silent"), a(C, b), S8(C); }), m.unfinished = y || m.unfinished, Ha.trigger("series:layoutlabels", h, f, g), Ha.trigger("series:transition", h, f, g), h.eachSeries(function(C) { var b = d._chartsMap[C.__viewId]; s(C, b), u(C, b); }), o(d, h), Ha.trigger("series:afterupdate", h, f, g); }, ea = function(d) { d[PE] = !0, d.getZr().wakeUp(); - }, $B = function(d) { + }, VB = function(d) { d[PE] && (d.getZr().storage.traverse(function(h) { yf(h) || i(h); }), d[PE] = !1); @@ -63074,7 +63115,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = var g = f[p]; g === "emphasis" || g === "blur" || g === "select" || h.push(g); } - d.selected && d.states.select && h.push("select"), d.hoverState === Nw && d.states.emphasis ? h.push("emphasis") : d.hoverState === Xm && d.states.blur && h.push("blur"), d.useStates(h); + d.selected && d.states.select && h.push("select"), d.hoverState === Nw && d.states.emphasis ? h.push("emphasis") : d.hoverState === Jm && d.states.blur && h.push("blur"), d.useStates(h); } function o(d, h) { var f = d._zr, p = f.storage, g = 0; @@ -63135,7 +63176,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = if (m.states && m.states.emphasis) { if (yf(m)) return; - if (m instanceof nr && n2e(m), m.__dirty) { + if (m instanceof nr && pIe(m), m.__dirty) { var y = m.prevStates; y && m.useStates(y); } @@ -63148,7 +63189,7 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = } }); } - kB = function(d) { + BB = function(d) { return new /** @class */ (function(h) { Se(f, h); @@ -63165,17 +63206,17 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = p = p.parent; } }, f.prototype.enterEmphasis = function(p, g) { - Vl(p, g), ea(d); - }, f.prototype.leaveEmphasis = function(p, g) { Hl(p, g), ea(d); + }, f.prototype.leaveEmphasis = function(p, g) { + zl(p, g), ea(d); }, f.prototype.enterBlur = function(p) { - xY(p), ea(d); + PY(p), ea(d); }, f.prototype.leaveBlur = function(p) { - G2(p), ea(d); + GI(p), ea(d); }, f.prototype.enterSelect = function(p) { - EY(p), ea(d); + TY(p), ea(d); }, f.prototype.leaveSelect = function(p) { - RY(p), ea(d); + _Y(p), ea(d); }, f.prototype.getModel = function() { return d.getModel(); }, f.prototype.getViewOfComponentModel = function(p) { @@ -63183,34 +63224,34 @@ var Th, _E, p0, ac, ME, DE, IE, tg, rg, LB, FB, AE, NB, g0, kB, mX, ea, $B, WS = }, f.prototype.getViewOfSeriesModel = function(p) { return d.getViewOfSeriesModel(p); }, f; - }(wq))(d); - }, mX = function(d) { + }(Rq))(d); + }, SX = function(d) { function h(f, p) { for (var g = 0; g < f.length; g++) { var v = f[g]; v[TE] = p; } } - z(cv, function(f, p) { + z(dv, function(f, p) { d._messageCenter.on(p, function(g) { - if (KS[d.group] && d[TE] !== OB) { + if (qS[d.group] && d[TE] !== FB) { if (g && g.escapeConnect) return; var v = d.makeActionFromEvent(g), m = []; z(pd, function(y) { y !== d && y.group === d.group && m.push(y); - }), h(m, OB), z(m, function(y) { - y[TE] !== OLe && y.dispatchAction(v); - }), h(m, LLe); + }), h(m, FB), z(m, function(y) { + y[TE] !== WLe && y.dispatchAction(v); + }), h(m, jLe); } }); }); }; }(), t; }(Da) -), SA = WS.prototype; -SA.on = hX("on"); -SA.off = hX("off"); +), SA = US.prototype; +SA.on = gX("on"); +SA.off = gX("off"); SA.one = function(e, t, r) { var n = this; Pa("ECharts#one is deprecated."); @@ -63221,12 +63262,12 @@ SA.one = function(e, t, r) { } this.on.call(this, e, i, r); }; -var FLe = ["click", "dblclick", "mouseover", "mouseout", "mousemove", "mousedown", "mouseup", "globalout", "contextmenu"]; +var ULe = ["click", "dblclick", "mouseover", "mouseout", "mousemove", "mousedown", "mouseup", "globalout", "contextmenu"]; function Oo(e) { process.env.NODE_ENV !== "production" && Cn("Instance " + e + " has been disposed"); } -var jS = {}, cv = {}, cM = [], uM = [], US = [], yX = {}, dM = {}, pd = {}, KS = {}, NLe = +/* @__PURE__ */ new Date() - 0, kLe = +/* @__PURE__ */ new Date() - 0, bA = "_echarts_instance_"; -function $Le(e, t, r) { +var KS = {}, dv = {}, cM = [], uM = [], YS = [], bX = {}, dM = {}, pd = {}, qS = {}, KLe = +/* @__PURE__ */ new Date() - 0, YLe = +/* @__PURE__ */ new Date() - 0, bA = "_echarts_instance_"; +function qLe(e, t, r) { var n = !(r && r.ssr); if (n) { if (process.env.NODE_ENV !== "production" && !e) @@ -63236,158 +63277,158 @@ function $Le(e, t, r) { return process.env.NODE_ENV !== "production" && Cn("There is a chart instance already initialized on the dom."), i; process.env.NODE_ENV !== "production" && Hc(e) && e.nodeName.toUpperCase() !== "CANVAS" && (!e.clientWidth && (!r || r.width == null) || !e.clientHeight && (!r || r.height == null)) && Cn("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload."); } - var o = new WS(e, t, r); - return o.id = "ec_" + NLe++, pd[o.id] = o, n && rY(e, bA, o.id), mX(o), Ha.trigger("afterinit", o), o; + var o = new US(e, t, r); + return o.id = "ec_" + KLe++, pd[o.id] = o, n && oY(e, bA, o.id), SX(o), Ha.trigger("afterinit", o), o; } -function BLe(e) { - if (Ie(e)) { +function XLe(e) { + if (Ae(e)) { var t = e; e = null, z(t, function(r) { r.group != null && (e = r.group); - }), e = e || "g_" + kLe++, z(t, function(r) { + }), e = e || "g_" + YLe++, z(t, function(r) { r.group = e; }); } - return KS[e] = !0, e; + return qS[e] = !0, e; } -function CX(e) { - KS[e] = !1; +function wX(e) { + qS[e] = !1; } -var VLe = CX; -function HLe(e) { - Je(e) ? e = pd[e] : e instanceof WS || (e = wA(e)), e instanceof WS && !e.isDisposed() && e.dispose(); +var ZLe = wX; +function QLe(e) { + Je(e) ? e = pd[e] : e instanceof US || (e = wA(e)), e instanceof US && !e.isDisposed() && e.dispose(); } function wA(e) { - return pd[jDe(e, bA)]; + return pd[rDe(e, bA)]; } -function zLe(e) { +function JLe(e) { return pd[e]; } function xA(e, t) { - yX[e] = t; + bX[e] = t; } function EA(e) { - Yt(uM, e) < 0 && uM.push(e); + qt(uM, e) < 0 && uM.push(e); } function RA(e, t) { - PA(cM, e, t, PLe); + PA(cM, e, t, kLe); } -function SX(e) { +function xX(e) { e1("afterinit", e); } -function bX(e) { +function EX(e) { e1("afterupdate", e); } function e1(e, t) { Ha.on(e, t); } function hs(e, t, r) { - vt(t) && (r = t, t = ""); - var n = St(e) ? e.type : [e, e = { + mt(t) && (r = t, t = ""); + var n = bt(e) ? e.type : [e, e = { event: t }][0]; - e.event = (e.event || n).toLowerCase(), t = e.event, !cv[t] && (xt(AB.test(n) && AB.test(t)), jS[n] || (jS[n] = { + e.event = (e.event || n).toLowerCase(), t = e.event, !dv[t] && (Et(LB.test(n) && LB.test(t)), KS[n] || (KS[n] = { action: r, actionInfo: e - }), cv[t] = n); + }), dv[t] = n); } -function wX(e, t) { +function RX(e, t) { Xd.register(e, t); } -function GLe(e) { +function eFe(e) { var t = Xd.get(e); if (t) return t.getDimensionsInfo ? t.getDimensionsInfo() : t.dimensions.slice(); } -function xX(e, t) { - PA(US, e, t, lX, "layout"); +function PX(e, t) { + PA(YS, e, t, dX, "layout"); } function nu(e, t) { - PA(US, e, t, cX, "visual"); + PA(YS, e, t, hX, "visual"); } -var BB = []; +var HB = []; function PA(e, t, r, n, i) { - if ((vt(t) || St(t)) && (r = t, t = n), process.env.NODE_ENV !== "production") { + if ((mt(t) || bt(t)) && (r = t, t = n), process.env.NODE_ENV !== "production") { if (isNaN(t) || t == null) throw new Error("Illegal priority"); z(e, function(a) { - xt(a.__raw !== r); + Et(a.__raw !== r); }); } - if (!(Yt(BB, r) >= 0)) { - BB.push(r); - var o = qq.wrapStageHandler(r, i); + if (!(qt(HB, r) >= 0)) { + HB.push(r); + var o = Qq.wrapStageHandler(r, i); o.__prio = t, o.__raw = r, e.push(o); } } function TA(e, t) { dM[e] = t; } -function WLe(e) { - process.env.NODE_ENV !== "production" && Pa("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."), lK({ +function tFe(e) { + process.env.NODE_ENV !== "production" && Pa("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."), dK({ createCanvas: e }); } -function EX(e, t, r) { - var n = sX("registerMap"); +function TX(e, t, r) { + var n = uX("registerMap"); n && n(e, t, r); } -function jLe(e) { - var t = sX("getMap"); +function rFe(e) { + var t = uX("getMap"); return t && t(e); } -var RX = nOe; -nu(CA, _Oe); -nu(Jw, MOe); -nu(Jw, DOe); -nu(CA, GOe); -nu(Jw, WOe); -nu(uX, yLe); -EA(Eq); -RA(ELe, kAe); -TA("default", IOe); +var _X = pOe; +nu(CA, BOe); +nu(Jw, VOe); +nu(Jw, HOe); +nu(CA, eLe); +nu(Jw, tLe); +nu(fX, MLe); +EA(Tq); +RA(FLe, YAe); +TA("default", zOe); hs({ type: hd, event: hd, update: hd }, Dn); hs({ - type: EC, - event: EC, - update: EC + type: TC, + event: TC, + update: TC }, Dn); hs({ - type: iv, - event: iv, - update: iv + type: av, + event: av, + update: av }, Dn); hs({ - type: RC, - event: RC, - update: RC + type: _C, + event: _C, + update: _C }, Dn); hs({ - type: ov, - event: ov, - update: ov + type: sv, + event: sv, + update: sv }, Dn); -xA("light", HOe); -xA("dark", Jq); -var ULe = {}, VB = [], KLe = { +xA("light", QOe); +xA("dark", rX); +var nFe = {}, zB = [], iFe = { registerPreprocessor: EA, registerProcessor: RA, - registerPostInit: SX, - registerPostUpdate: bX, + registerPostInit: xX, + registerPostUpdate: EX, registerUpdateLifecycle: e1, registerAction: hs, - registerCoordinateSystem: wX, - registerLayout: xX, + registerCoordinateSystem: RX, + registerLayout: PX, registerVisual: nu, - registerTransform: RX, + registerTransform: _X, registerLoading: TA, - registerMap: EX, - registerImpl: CLe, - PRIORITY: dX, + registerMap: TX, + registerImpl: DLe, + PRIORITY: pX, ComponentModel: Qt, ComponentView: sn, SeriesModel: jr, @@ -63409,31 +63450,31 @@ var ULe = {}, VB = [], KLe = { Qt.registerSubTypeDefaulter(e, t); }, registerPainter: function(e, t) { - WK(e, t); + KK(e, t); } }; function er(e) { - if (Ie(e)) { + if (Ae(e)) { z(e, function(t) { er(t); }); return; } - Yt(VB, e) >= 0 || (VB.push(e), vt(e) && (e = { + qt(zB, e) >= 0 || (zB.push(e), mt(e) && (e = { install: e - }), e.install(KLe)); + }), e.install(iFe)); } -function ng(e) { +function og(e) { return e == null ? 0 : e.length || 1; } -function HB(e) { +function GB(e) { return e; } -var zl = ( +var Gl = ( /** @class */ function() { function e(t, r, n, i, o, a) { - this._old = t, this._new = r, this._oldKeyGetter = n || HB, this._newKeyGetter = i || HB, this.context = o, this._diffModeMultiple = a === "multiple"; + this._old = t, this._new = r, this._oldKeyGetter = n || GB, this._newKeyGetter = i || GB, this.context = o, this._diffModeMultiple = a === "multiple"; } return e.prototype.add = function(t) { return this._add = t, this; @@ -63453,7 +63494,7 @@ var zl = ( var t = this._old, r = this._new, n = {}, i = new Array(t.length), o = new Array(r.length); this._initIndexMap(t, null, i, "_oldKeyGetter"), this._initIndexMap(r, n, o, "_newKeyGetter"); for (var a = 0; a < t.length; a++) { - var s = i[a], l = n[s], c = ng(l); + var s = i[a], l = n[s], c = og(l); if (c > 1) { var u = l.shift(); l.length === 1 && (n[s] = l[0]), this._update && this._update(u, a); @@ -63464,7 +63505,7 @@ var zl = ( var t = this._old, r = this._new, n = {}, i = {}, o = [], a = []; this._initIndexMap(t, n, o, "_oldKeyGetter"), this._initIndexMap(r, i, a, "_newKeyGetter"); for (var s = 0; s < o.length; s++) { - var l = o[s], c = n[l], u = i[l], d = ng(c), h = ng(u); + var l = o[s], c = n[l], u = i[l], d = og(c), h = og(u); if (d > 1 && h === 1) this._updateManyToOne && this._updateManyToOne(u, c), i[l] = null; else if (d === 1 && h > 1) @@ -63482,7 +63523,7 @@ var zl = ( this._performRestAdd(a, i); }, e.prototype._performRestAdd = function(t, r) { for (var n = 0; n < t.length; n++) { - var i = t[n], o = r[i], a = ng(o); + var i = t[n], o = r[i], a = og(o); if (a > 1) for (var s = 0; s < a; s++) this._add && this._add(o[s]); @@ -63493,13 +63534,13 @@ var zl = ( for (var o = this._diffModeMultiple, a = 0; a < t.length; a++) { var s = "_ec_" + this[i](t[a], a); if (o || (n[a] = s), !!r) { - var l = r[s], c = ng(l); + var l = r[s], c = og(l); c === 0 ? (r[s] = a, o && n.push(s)) : c === 1 ? r[s] = [l, a] : l.push(a); } } }, e; }() -), YLe = ( +), oFe = ( /** @class */ function() { function e(t, r) { @@ -63516,14 +63557,14 @@ var zl = ( }, e; }() ); -function qLe(e, t) { +function aFe(e, t) { var r = {}, n = r.encode = {}, i = ft(), o = [], a = [], s = {}; z(e.dimensions, function(h) { var f = e.getDimensionInfo(h), p = f.coordDim; if (p) { - process.env.NODE_ENV !== "production" && xt(Q_.get(p) == null); + process.env.NODE_ENV !== "production" && Et(Q_.get(p) == null); var g = f.coordDimIndex; - OE(n, p)[g] = h, f.isExtraCoord || (i.set(p, 1), XLe(f.type) && (o[0] = h), OE(s, p)[g] = e.getDimensionIndex(f.name)), f.defaultTooltip && a.push(h); + OE(n, p)[g] = h, f.isExtraCoord || (i.set(p, 1), sFe(f.type) && (o[0] = h), OE(s, p)[g] = e.getDimensionIndex(f.name)), f.defaultTooltip && a.push(h); } Q_.each(function(v, m) { var y = OE(n, m), C = f.otherDims[m]; @@ -63540,18 +63581,18 @@ function qLe(e, t) { var u = n.label; u && u.length && (o = u.slice()); var d = n.tooltip; - return d && d.length ? a = d.slice() : a.length || (a = o.slice()), n.defaultedLabel = o, n.defaultedTooltip = a, r.userOutput = new YLe(s, t), r; + return d && d.length ? a = d.slice() : a.length || (a = o.slice()), n.defaultedLabel = o, n.defaultedTooltip = a, r.userOutput = new oFe(s, t), r; } function OE(e, t) { return e.hasOwnProperty(t) || (e[t] = []), e[t]; } -function YS(e) { +function XS(e) { return e === "category" ? "ordinal" : e === "time" ? "time" : "float"; } -function XLe(e) { +function sFe(e) { return !(e === "ordinal" || e === "time"); } -var DC = ( +var OC = ( /** @class */ /* @__PURE__ */ function() { function e(t) { @@ -63559,13 +63600,13 @@ var DC = ( } return e; }() -), ZLe = yr(), QLe = { +), lFe = yr(), cFe = { float: "f", int: "i", ordinal: "o", number: "n", time: "t" -}, PX = ( +}, MX = ( /** @class */ function() { function e(t) { @@ -63574,7 +63615,7 @@ var DC = ( return e.prototype.isDimensionOmitted = function() { return this._dimOmitted; }, e.prototype._updateDimOmitted = function(t) { - this._dimOmitted = t, t && (this._dimNameMap || (this._dimNameMap = MX(this.source))); + this._dimOmitted = t, t && (this._dimNameMap || (this._dimNameMap = AX(this.source))); }, e.prototype.getSourceDimensionIndex = function(t) { return $t(this._dimNameMap.get(t), -1); }, e.prototype.getSourceDimension = function(t) { @@ -63582,7 +63623,7 @@ var DC = ( if (r) return r[t]; }, e.prototype.makeStoreSchema = function() { - for (var t = this._fullDimCount, r = Pq(this.source), n = !DX(t), i = "", o = [], a = 0, s = 0; a < t; a++) { + for (var t = this._fullDimCount, r = Mq(this.source), n = !OX(t), i = "", o = [], a = 0, s = 0; a < t; a++) { var l = void 0, c = void 0, u = void 0, d = this.dimensions[s]; if (d && d.storeDimIndex === a) l = r ? d.name : null, c = d.type, u = d.ordinalMeta, s++; @@ -63594,7 +63635,7 @@ var DC = ( property: l, type: c, ordinalMeta: u - }), r && l != null && (!d || !d.isCalculationCoord) && (i += n ? l.replace(/\`/g, "`1").replace(/\$/g, "`2") : l), i += "$", i += QLe[c] || "f", u && (i += u.uid), i += "$"; + }), r && l != null && (!d || !d.isCalculationCoord) && (i += n ? l.replace(/\`/g, "`1").replace(/\$/g, "`2") : l), i += "$", i += cFe[c] || "f", u && (i += u.uid), i += "$"; } var f = this.source, p = [f.seriesLayoutBy, f.startIndex, i].join("$$"); return { @@ -63618,37 +63659,37 @@ var DC = ( }, e; }() ); -function TX(e) { - return e instanceof PX; +function DX(e) { + return e instanceof MX; } -function _X(e) { +function IX(e) { for (var t = ft(), r = 0; r < (e || []).length; r++) { - var n = e[r], i = St(n) ? n.name : n; + var n = e[r], i = bt(n) ? n.name : n; i != null && t.get(i) == null && t.set(i, r); } return t; } -function MX(e) { - var t = ZLe(e); - return t.dimNameMap || (t.dimNameMap = _X(e.dimensionsDefine)); +function AX(e) { + var t = lFe(e); + return t.dimNameMap || (t.dimNameMap = IX(e.dimensionsDefine)); } -function DX(e) { +function OX(e) { return e > 30; } -var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = "e\0\0", zB = -1, tFe = ["hasItemOption", "_nameList", "_idList", "_invertedIndicesMap", "_dimSummary", "userOutput", "_rawData", "_dimValueGetter", "_nameDimIdx", "_idDimIdx", "_nameRepeatCount"], rFe = ["_approximateExtent"], GB, v0, og, _h, LE, m0, FE, nFe = ( +var ag = bt, sc = Fe, uFe = typeof Int32Array > "u" ? Array : Int32Array, dFe = "e\0\0", WB = -1, hFe = ["hasItemOption", "_nameList", "_idList", "_invertedIndicesMap", "_dimSummary", "userOutput", "_rawData", "_dimValueGetter", "_nameDimIdx", "_idDimIdx", "_nameRepeatCount"], fFe = ["_approximateExtent"], jB, C0, sg, _h, LE, S0, FE, pFe = ( /** @class */ function() { function e(t, r) { 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 n, i = !1; - TX(t) ? (n = t.dimensions, this._dimOmitted = t.isDimensionOmitted(), this._schema = t) : (i = !0, n = t), n = n || ["x", "y"]; + DX(t) ? (n = t.dimensions, this._dimOmitted = t.isDimensionOmitted(), this._schema = t) : (i = !0, n = t), n = n || ["x", "y"]; for (var o = {}, a = [], s = {}, l = !1, c = {}, u = 0; u < n.length; u++) { - var d = n[u], h = Je(d) ? new DC({ + var d = n[u], h = Je(d) ? new OC({ name: d - }) : d instanceof DC ? d : new DC(d), f = h.name; + }) : d instanceof OC ? d : new OC(d), f = h.name; h.type = h.type || "float", h.coordDim || (h.coordDim = f, h.coordDimIndex = 0); var p = h.otherDims = h.otherDims || {}; - a.push(f), o[f] = h, c[f] != null && (l = !0), h.createInvertedIndices && (s[f] = []), p.itemName === 0 && (this._nameDimIdx = u), p.itemId === 0 && (this._idDimIdx = u), process.env.NODE_ENV !== "production" && xt(i || h.storeDimIndex >= 0), i && (h.storeDimIndex = u); + a.push(f), o[f] = h, c[f] != null && (l = !0), h.createInvertedIndices && (s[f] = []), p.itemName === 0 && (this._nameDimIdx = u), p.itemId === 0 && (this._idDimIdx = u), process.env.NODE_ENV !== "production" && Et(i || h.storeDimIndex >= 0), i && (h.storeDimIndex = u); } if (this.dimensions = a, this._dimInfos = o, this._initGetDimensionInfo(l), this.hostModel = r, this._invertedIndicesMap = s, this._dimOmitted) { var g = this._dimIdxToName = ft(); @@ -63710,7 +63751,7 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = }, e.prototype.initData = function(t, r, n) { var i = this, o; if (t instanceof rM && (o = t), !o) { - var a = this.dimensions, s = hA(t) || wi(t) ? new Tq(t, a.length) : t; + var a = this.dimensions, s = hA(t) || xi(t) ? new Dq(t, a.length) : t; o = new rM(); var l = sc(a, function(c) { return { @@ -63720,7 +63761,7 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = }); o.initData(s, l, n); } - this._store = o, this._nameList = (r || []).slice(), this._idList = [], this._nameRepeatCount = {}, this._doInit(0, o.count()), this._dimSummary = qLe(this, this._schema), this.userOutput = this._dimSummary.userOutput; + this._store = o, this._nameList = (r || []).slice(), this._idList = [], this._nameRepeatCount = {}, this._doInit(0, o.count()), this._dimSummary = aFe(this, this._schema), this.userOutput = this._dimSummary.userOutput; }, e.prototype.appendData = function(t) { var r = this._store.appendData(t); this._doInit(r[0], r[1]); @@ -63738,7 +63779,7 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = } }, e.prototype._shouldMakeIdFromName = function() { var t = this._store.getProvider(); - return this._idDimIdx == null && t.getSource().sourceFormat !== Ml && !t.fillStorage; + return this._idDimIdx == null && t.getSource().sourceFormat !== Dl && !t.fillStorage; }, e.prototype._doInit = function(t, r) { if (!(t >= r)) { var n = this._store, i = n.getProvider(); @@ -63747,7 +63788,7 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = if (l && !i.pure) for (var c = [], u = t; u < r; u++) { var d = i.getItem(u, c); - if (!this.hasItemOption && ADe(d) && (this.hasItemOption = !0), d) { + if (!this.hasItemOption && G2e(d) && (this.hasItemOption = !0), d) { var h = d.name; o[u] == null && h != null && (o[u] = qn(h, null)); var f = d.id; @@ -63757,7 +63798,7 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = if (this._shouldMakeIdFromName()) for (var u = t; u < r; u++) FE(this, u); - GB(this); + jB(this); } }, e.prototype.getApproximateExtent = function(t) { return this._approximateExtent[t] || this._store.getDataExtent(this._getStoreDimIndex(t)); @@ -63766,15 +63807,15 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = }, e.prototype.getCalculationInfo = function(t) { return this._calculationInfo[t]; }, e.prototype.setCalculationInfo = function(t, r) { - ig(t) ? Pe(this._calculationInfo, t) : this._calculationInfo[t] = r; + ag(t) ? Pe(this._calculationInfo, t) : this._calculationInfo[t] = r; }, e.prototype.getName = function(t) { var r = this.getRawIndex(t), n = this._nameList[r]; - return n == null && this._nameDimIdx != null && (n = og(this, this._nameDimIdx, r)), n == null && (n = ""), n; + return n == null && this._nameDimIdx != null && (n = sg(this, this._nameDimIdx, r)), n == null && (n = ""), n; }, e.prototype._getCategory = function(t, r) { var n = this._store.get(t, r), i = this._store.getOrdinalMeta(t); return i ? i.categories[n] : n; }, e.prototype.getId = function(t) { - return v0(this, this.getRawIndex(t)); + return C0(this, this.getRawIndex(t)); }, e.prototype.count = function() { return this._store.count(); }, e.prototype.get = function(t, r) { @@ -63795,7 +63836,7 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = return this._store.getMedian(this._getStoreDimIndex(t)); }, e.prototype.getValues = function(t, r) { var n = this, i = this._store; - return Ie(t) ? i.getValues(sc(t, function(o) { + return Ae(t) ? i.getValues(sc(t, function(o) { return n._getStoreDimIndex(o); }), r) : i.getValues(t); }, e.prototype.hasValue = function(t) { @@ -63817,15 +63858,15 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = if (process.env.NODE_ENV !== "production" && !n) throw new Error("Do not supported yet"); var i = n[r]; - return i == null || isNaN(i) ? zB : i; + return i == null || isNaN(i) ? WB : i; }, e.prototype.indicesOfNearest = function(t, r, n) { return this._store.indicesOfNearest(this._getStoreDimIndex(t), r, n); }, e.prototype.each = function(t, r, n) { - vt(t) && (n = r, r = t, t = []); + mt(t) && (n = r, r = t, t = []); var i = n || this, o = sc(_h(t), this._getStoreDimIndex, this); this._store.each(o, i ? at(r, i) : r); }, e.prototype.filterSelf = function(t, r, n) { - vt(t) && (n = r, r = t, t = []); + mt(t) && (n = r, r = t, t = []); var i = n || this, o = sc(_h(t), this._getStoreDimIndex, this); return this._store = this._store.filter(o, i ? at(r, i) : r), this; }, e.prototype.selectRange = function(t) { @@ -63835,13 +63876,13 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = n[a] = t[o]; }), this._store = this._store.selectRange(n), this; }, e.prototype.mapArray = function(t, r, n) { - vt(t) && (n = r, r = t, t = []), n = n || this; + mt(t) && (n = r, r = t, t = []), n = n || this; var i = []; return this.each(t, function() { i.push(r && r.apply(this, arguments)); }, n), i; }, e.prototype.map = function(t, r, n, i) { - var o = n || i || this, a = sc(_h(t), this._getStoreDimIndex, this), s = m0(this); + var o = n || i || this, a = sc(_h(t), this._getStoreDimIndex, this), s = S0(this); return s._store = this._store.map(a, o ? at(r, o) : r), s; }, e.prototype.modify = function(t, r, n, i) { var o = this, a = n || i || this; @@ -63852,10 +63893,10 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = var s = sc(_h(t), this._getStoreDimIndex, this); this._store.modify(s, a ? at(r, a) : r); }, e.prototype.downSample = function(t, r, n, i) { - var o = m0(this); + var o = S0(this); return o._store = this._store.downSample(this._getStoreDimIndex(t), r, n, i), o; }, e.prototype.lttbDownSample = function(t, r) { - var n = m0(this); + var n = S0(this); return n._store = this._store.lttbDownSample(this._getStoreDimIndex(t), r), n; }, e.prototype.getRawDataItem = function(t) { return this._store.getRawDataItem(t); @@ -63864,16 +63905,16 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = return new Gr(n, r, r && r.ecModel); }, e.prototype.diff = function(t) { var r = this; - return new zl(t ? t.getStore().getIndices() : [], this.getStore().getIndices(), function(n) { - return v0(t, n); + return new Gl(t ? t.getStore().getIndices() : [], this.getStore().getIndices(), function(n) { + return C0(t, n); }, function(n) { - return v0(r, n); + return C0(r, n); }); }, e.prototype.getVisual = function(t) { var r = this._visual; return r && r[t]; }, e.prototype.setVisual = function(t, r) { - this._visual = this._visual || {}, ig(t) ? Pe(this._visual, t) : this._visual[t] = r; + this._visual = this._visual || {}, ag(t) ? Pe(this._visual, t) : this._visual[t] = r; }, e.prototype.getItemVisual = function(t, r) { var n = this._itemVisuals[t], i = n && n[r]; return i ?? this.getVisual(r); @@ -63883,14 +63924,14 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = var n = this._itemVisuals, i = n[t]; i || (i = n[t] = {}); var o = i[r]; - return o == null && (o = this.getVisual(r), Ie(o) ? o = o.slice() : ig(o) && (o = Pe({}, o)), i[r] = o), o; + return o == null && (o = this.getVisual(r), Ae(o) ? o = o.slice() : ag(o) && (o = Pe({}, o)), i[r] = o), o; }, e.prototype.setItemVisual = function(t, r, n) { var i = this._itemVisuals[t] || {}; - this._itemVisuals[t] = i, ig(r) ? Pe(i, r) : i[r] = n; + this._itemVisuals[t] = i, ag(r) ? Pe(i, r) : i[r] = n; }, e.prototype.clearAllVisual = function() { this._visual = {}, this._itemVisuals = []; }, e.prototype.setLayout = function(t, r) { - ig(t) ? Pe(this._layout, t) : this._layout[t] = r; + ag(t) ? Pe(this._layout, t) : this._layout[t] = r; }, e.prototype.getLayout = function(t) { return this._layout[t]; }, e.prototype.getItemLayout = function(t) { @@ -63912,42 +63953,42 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = return t || (t = new e(this._schema ? this._schema : sc(this.dimensions, this._getDimInfo, this), this.hostModel)), LE(t, this), t._store = this._store, t; }, e.prototype.wrapMethod = function(t, r) { var n = this[t]; - vt(n) && (this.__wrappedMethods = this.__wrappedMethods || [], this.__wrappedMethods.push(t), this[t] = function() { + mt(n) && (this.__wrappedMethods = this.__wrappedMethods || [], this.__wrappedMethods.push(t), this[t] = function() { var i = n.apply(this, arguments); return r.apply(this, [i].concat(xw(arguments))); }); }, e.internalField = function() { - GB = function(t) { + jB = function(t) { var r = t._invertedIndicesMap; z(r, function(n, i) { var o = t._dimInfos[i], a = o.ordinalMeta, s = t._store; if (a) { - n = r[i] = new JLe(a.categories.length); + n = r[i] = new uFe(a.categories.length); for (var l = 0; l < n.length; l++) - n[l] = zB; + n[l] = WB; for (var l = 0; l < s.count(); l++) n[s.get(o.storeDimIndex, l)] = l; } }); - }, og = function(t, r, n) { + }, sg = function(t, r, n) { return qn(t._getCategory(r, n), null); - }, v0 = function(t, r) { + }, C0 = function(t, r) { var n = t._idList[r]; - return n == null && t._idDimIdx != null && (n = og(t, t._idDimIdx, r)), n == null && (n = eFe + r), n; + return n == null && t._idDimIdx != null && (n = sg(t, t._idDimIdx, r)), n == null && (n = dFe + r), n; }, _h = function(t) { - return Ie(t) || (t = t != null ? [t] : []), t; - }, m0 = function(t) { + return Ae(t) || (t = t != null ? [t] : []), t; + }, S0 = function(t) { var r = new e(t._schema ? t._schema : sc(t.dimensions, t._getDimInfo, t), t.hostModel); return LE(r, t), r; }, LE = function(t, r) { - z(tFe.concat(r.__wrappedMethods || []), function(n) { + z(hFe.concat(r.__wrappedMethods || []), function(n) { r.hasOwnProperty(n) && (t[n] = r[n]); - }), t.__wrappedMethods = r.__wrappedMethods, z(rFe, function(n) { + }), t.__wrappedMethods = r.__wrappedMethods, z(fFe, function(n) { t[n] = _t(r[n]); }), t._calculationInfo = Pe({}, r._calculationInfo); }, FE = function(t, r) { var n = t._nameList, i = t._idList, o = t._nameDimIdx, a = t._idDimIdx, s = n[r], l = i[r]; - if (s == null && o != null && (n[r] = s = og(t, o, r)), l == null && a != null && (i[r] = l = og(t, a, r)), l == null && s != null) { + if (s == null && o != null && (n[r] = s = sg(t, o, r)), l == null && a != null && (i[r] = l = sg(t, a, r)), l == null && s != null) { var c = t._nameRepeatCount, u = c[s] = (c[s] || 0) + 1; l = s, u > 1 && (l += "__ec__" + u), i[r] = l; } @@ -63955,22 +63996,22 @@ var ig = St, sc = Fe, JLe = typeof Int32Array > "u" ? Array : Int32Array, eFe = }(), e; }() ); -const Fi = nFe; -function iFe(e, t) { - return xp(e, t).dimensions; +const Fi = pFe; +function gFe(e, t) { + return Rp(e, t).dimensions; } -function xp(e, t) { +function Rp(e, t) { hA(e) || (e = fA(e)), t = t || {}; - var r = t.coordDimensions || [], n = t.dimensionsDefine || e.dimensionsDefine || [], i = ft(), o = [], a = aFe(e, r, n, t.dimensionsCount), s = t.canOmitUnusedDimensions && DX(a), l = n === e.dimensionsDefine, c = l ? MX(e) : _X(n), u = t.encodeDefine; + var r = t.coordDimensions || [], n = t.dimensionsDefine || e.dimensionsDefine || [], i = ft(), o = [], a = mFe(e, r, n, t.dimensionsCount), s = t.canOmitUnusedDimensions && OX(a), l = n === e.dimensionsDefine, c = l ? AX(e) : IX(n), u = t.encodeDefine; !u && t.encodeDefaulter && (u = t.encodeDefaulter(e, a)); - for (var d = ft(u), h = new Fq(a), f = 0; f < h.length; f++) + for (var d = ft(u), h = new $q(a), f = 0; f < h.length; f++) h[f] = -1; function p(P) { var T = h[P]; if (T < 0) { - var _ = n[P], D = St(_) ? _ : { + var _ = n[P], D = bt(_) ? _ : { name: _ - }, A = new DC(), M = D.name; + }, A = new OC(), M = D.name; M != null && c.get(M) != null && (A.name = A.displayName = M), D.type != null && (A.type = D.type), D.displayName != null && (A.displayName = D.displayName); var O = o.length; return h[P] = O, A.storeDimIndex = P, o.push(A), A; @@ -64012,13 +64053,13 @@ function xp(e, t) { } z(O, function(N, F) { var $ = p(N); - if (l && A.type != null && ($.type = A.type), v(wt($, A), T, F), $.name == null && _) { + if (l && A.type != null && ($.type = A.type), v(xt($, A), T, F), $.name == null && _) { var I = _[F]; - !St(I) && (I = { + !bt(I) && (I = { name: I }), $.name = $.displayName = I.name, $.defaultTooltip = I.defaultTooltip; } - D && wt($.otherDims, D); + D && xt($.otherDims, D); }); } }); @@ -64040,29 +64081,29 @@ function xp(e, t) { else for (var x = 0; x < a; x++) { var E = p(x), R = E.coordDim; - R == null && (E.coordDim = sFe(b, i, C), E.coordDimIndex = 0, (!m || y <= 0) && (E.isExtraCoord = !0), y--), w(E), E.type == null && (Cq(e, x) === Ci.Must || E.isExtraCoord && (E.otherDims.itemName != null || E.otherDims.seriesName != null)) && (E.type = "ordinal"); + R == null && (E.coordDim = yFe(b, i, C), E.coordDimIndex = 0, (!m || y <= 0) && (E.isExtraCoord = !0), y--), w(E), E.type == null && (wq(e, x) === Si.Must || E.isExtraCoord && (E.otherDims.itemName != null || E.otherDims.seriesName != null)) && (E.type = "ordinal"); } - return oFe(o), new PX({ + return vFe(o), new MX({ source: e, dimensions: o, fullDimensionCount: a, dimensionOmitted: s }); } -function oFe(e) { +function vFe(e) { for (var t = ft(), r = 0; r < e.length; r++) { var n = e[r], i = n.name, o = t.get(i) || 0; o > 0 && (n.name = i + (o - 1)), o++, t.set(i, o); } } -function aFe(e, t, r, n) { +function mFe(e, t, r, n) { var i = Math.max(e.dimensionsDetectedCount || 1, t.length, r.length, n || 0); return z(t, function(o) { var a; - St(o) && (a = o.dimsDef) && (i = Math.max(i, a.length)); + bt(o) && (a = o.dimsDef) && (i = Math.max(i, a.length)); }), i; } -function sFe(e, t, r) { +function yFe(e, t, r) { if (r || t.hasKey(e)) { for (var n = 0; t.hasKey(e + n); ) n++; @@ -64070,7 +64111,7 @@ function sFe(e, t, r) { } return t.set(e, !0), e; } -var lFe = ( +var CFe = ( /** @class */ /* @__PURE__ */ function() { function e(t) { @@ -64079,12 +64120,12 @@ var lFe = ( return e; }() ); -function cFe(e) { - var t = e.get("coordinateSystem"), r = new lFe(t), n = uFe[t]; +function SFe(e) { + var t = e.get("coordinateSystem"), r = new CFe(t), n = bFe[t]; if (n) return n(e, r, r.axisMap, r.categoryAxisMap), r; } -var uFe = { +var bFe = { cartesian2d: function(e, t, r, n) { var i = e.getReferringComponents("xAxis", Wn).models[0], o = e.getReferringComponents("yAxis", Wn).models[0]; if (process.env.NODE_ENV !== "production") { @@ -64125,10 +64166,10 @@ var uFe = { function Mh(e) { return e.get("type") === "category"; } -function IX(e, t, r) { +function LX(e, t, r) { r = r || {}; var n = r.byIndex, i = r.stackedCoordDimension, o, a, s; - dFe(t) ? o = t : (a = t.schema, o = a.dimensions, s = t.store); + wFe(t) ? o = t : (a = t.schema, o = a.dimensions, s = t.store); var l = !!(e && e.get("stack")), c, u, d, h; if (z(o, function(y, C) { Je(y) && (o[C] = y = { @@ -64169,16 +64210,16 @@ function IX(e, t, r) { stackResultDimension: d }; } -function dFe(e) { - return !TX(e.schema); +function wFe(e) { + return !DX(e.schema); } -function Gl(e, t) { +function Wl(e, t) { return !!t && t === e.getCalculationInfo("stackedDimension"); } function _A(e, t) { - return Gl(e, t) ? e.getCalculationInfo("stackResultDimension") : t; + return Wl(e, t) ? e.getCalculationInfo("stackResultDimension") : t; } -function hFe(e, t) { +function xFe(e, t) { var r = e.get("coordinateSystem"), n = Xd.get(r), i; return t && t.coordSysDims && (i = Fe(t.coordSysDims, function(o) { var a = { @@ -64186,34 +64227,34 @@ function hFe(e, t) { }, s = t.axisMap.get(o); if (s) { var l = s.get("type"); - a.type = YS(l); + a.type = XS(l); } return a; })), i || (i = n && (n.getDimensionsInfo ? n.getDimensionsInfo() : n.dimensions.slice()) || ["x", "y"]), i; } -function fFe(e, t, r) { +function EFe(e, t, r) { var n, i; return r && z(e, function(o, a) { var s = o.coordDim, l = r.categoryAxisMap.get(s); l && (n == null && (n = a), o.ordinalMeta = l.getOrdinalMeta(), t && (o.createInvertedIndices = !0)), o.otherDims.itemName != null && (i = !0); }), !i && n != null && (e[n].otherDims.itemName = 0), n; } -function rl(e, t, r) { +function nl(e, t, r) { r = r || {}; var n = t.getSourceManager(), i, o = !1; e ? (o = !0, i = fA(e)) : (i = n.getSource(), o = i.sourceFormat === Aa); - var a = cFe(t), s = hFe(t, a), l = r.useEncodeDefaulter, c = vt(l) ? l : l ? Vt(yq, s, t) : null, u = { + var a = SFe(t), s = xFe(t, a), l = r.useEncodeDefaulter, c = mt(l) ? l : l ? Vt(bq, s, t) : null, u = { coordDimensions: s, generateCoord: r.generateCoord, encodeDefine: t.getEncode(), encodeDefaulter: c, canOmitUnusedDimensions: !o - }, d = xp(i, u), h = fFe(d.dimensions, r.createInvertedIndices, a), f = o ? null : n.getSharedDataStore(d), p = IX(t, { + }, d = Rp(i, u), h = EFe(d.dimensions, r.createInvertedIndices, a), f = o ? null : n.getSharedDataStore(d), p = LX(t, { schema: d, store: f }), g = new Fi(d, t); g.setCalculationInfo(p); - var v = h != null && pFe(i) ? function(m, y, C, b) { + var v = h != null && RFe(i) ? function(m, y, C, b) { return b === h ? C : this.defaultDimValueGetter(m, y, C, b); } : null; return g.hasItemOption = !1, g.initData( @@ -64223,18 +64264,18 @@ function rl(e, t, r) { v ), g; } -function pFe(e) { +function RFe(e) { if (e.sourceFormat === Aa) { - var t = gFe(e.data || []); - return !Ie(up(t)); + var t = PFe(e.data || []); + return !Ae(hp(t)); } } -function gFe(e) { +function PFe(e) { for (var t = 0; t < e.length && e[t] == null; ) t++; return e[t]; } -var nl = ( +var il = ( /** @class */ function() { function e(t) { @@ -64261,15 +64302,15 @@ var nl = ( }, e; }() ); -Aw(nl); -var vFe = 0, hM = ( +Aw(il); +var TFe = 0, hM = ( /** @class */ function() { function e(t) { - this.categories = t.categories || [], this._needCollect = t.needCollect, this._deduplication = t.deduplication, this.uid = ++vFe; + this.categories = t.categories || [], this._needCollect = t.needCollect, this._deduplication = t.deduplication, this.uid = ++TFe; } return e.createByAxisModel = function(t) { - var r = t.option, n = r.data, i = n && Fe(n, mFe); + var r = t.option, n = r.data, i = n && Fe(n, _Fe); return new e({ categories: i, needCollect: !i, @@ -64291,34 +64332,34 @@ var vFe = 0, hM = ( }, e; }() ); -function mFe(e) { - return St(e) && e.value != null ? e.value : e + ""; +function _Fe(e) { + return bt(e) && e.value != null ? e.value : e + ""; } -function yFe(e) { - var t = Math.pow(10, Ym(Math.abs(e))), r = Math.abs(e / t); +function MFe(e) { + var t = Math.pow(10, Zm(Math.abs(e))), r = Math.abs(e / t); return r === 0 || r === 1 || r === 2 || r === 3 || r === 5; } function fM(e) { return e.type === "interval" || e.type === "log"; } -function CFe(e, t, r, n) { - var i = {}, o = e[1] - e[0], a = i.interval = L2(o / t, !0); +function DFe(e, t, r, n) { + var i = {}, o = e[1] - e[0], a = i.interval = LI(o / t, !0); r != null && a < r && (a = i.interval = r), n != null && a > n && (a = i.interval = n); - var s = i.intervalPrecision = AX(a), l = i.niceTickExtent = [En(Math.ceil(e[0] / a) * a, s), En(Math.floor(e[1] / a) * a, s)]; - return SFe(l, e), i; + var s = i.intervalPrecision = FX(a), l = i.niceTickExtent = [En(Math.ceil(e[0] / a) * a, s), En(Math.floor(e[1] / a) * a, s)]; + return IFe(l, e), i; } function NE(e) { - var t = Math.pow(10, Ym(e)), r = e / t; + var t = Math.pow(10, Zm(e)), r = e / t; return r ? r === 2 ? r = 3 : r === 3 ? r = 5 : r *= 2 : r = 1, En(r * t); } -function AX(e) { +function FX(e) { return Ka(e) + 2; } -function WB(e, t, r) { +function UB(e, t, r) { e[t] = Math.max(Math.min(e[t], r[1]), r[0]); } -function SFe(e, t) { - !isFinite(e[0]) && (e[0] = t[0]), !isFinite(e[1]) && (e[1] = t[1]), WB(e, 0, t), WB(e, 1, t), e[0] > e[1] && (e[0] = e[1]); +function IFe(e, t) { + !isFinite(e[0]) && (e[0] = t[0]), !isFinite(e[1]) && (e[1] = t[1]), UB(e, 0, t), UB(e, 1, t), e[0] > e[1] && (e[0] = e[1]); } function t1(e, t) { return e >= t[0] && e <= t[1]; @@ -64337,9 +64378,9 @@ var i1 = ( var n = e.call(this, r) || this; n.type = "ordinal"; var i = n.getSetting("ordinalMeta"); - return i || (i = new hM({})), Ie(i) && (i = new hM({ + return i || (i = new hM({})), Ae(i) && (i = new hM({ categories: Fe(i, function(o) { - return St(o) ? o.value : o; + return bt(o) ? o.value : o; }) })), n._ordinalMeta = i, n._extent = n.getSetting("extent") || [0, i.categories.length - 1], n; } @@ -64394,10 +64435,10 @@ var i1 = ( }, t.prototype.calcNiceTicks = function() { }, t.prototype.calcNiceExtent = function() { }, t.type = "ordinal", t; - }(nl) + }(il) ); -nl.registerClass(i1); -var Tu = En, Wl = ( +il.registerClass(i1); +var Tu = En, jl = ( /** @class */ function(e) { Se(t, e); @@ -64422,7 +64463,7 @@ var Tu = En, Wl = ( }, t.prototype.getInterval = function() { return this._interval; }, t.prototype.setInterval = function(r) { - this._interval = r, this._niceExtent = this._extent.slice(), this._intervalPrecision = AX(r); + this._interval = r, this._niceExtent = this._extent.slice(), this._intervalPrecision = FX(r); }, t.prototype.getTicks = function(r) { var n = this._interval, i = this._extent, o = this._niceExtent, a = this._intervalPrecision, s = []; if (!n) @@ -64465,7 +64506,7 @@ var Tu = En, Wl = ( var o = this._extent, a = o[1] - o[0]; if (isFinite(a)) { a < 0 && (a = -a, o.reverse()); - var s = CFe(o, r, n, i); + var s = DFe(o, r, n, i); this._intervalPrecision = s.intervalPrecision, this._interval = s.interval, this._niceExtent = s.niceTickExtent; } }, t.prototype.calcNiceExtent = function(r) { @@ -64483,12 +64524,12 @@ var Tu = En, Wl = ( }, t.prototype.setNiceExtent = function(r, n) { this._niceExtent = [r, n]; }, t.type = "interval", t; - }(nl) + }(il) ); -nl.registerClass(Wl); -var OX = typeof Float32Array < "u", bFe = OX ? Float32Array : Array; +il.registerClass(jl); +var NX = typeof Float32Array < "u", AFe = NX ? Float32Array : Array; function Ls(e) { - return Ie(e) ? OX ? new Float32Array(e) : e : new bFe(e); + return Ae(e) ? NX ? new Float32Array(e) : e : new AFe(e); } var pM = "__ec_stack_"; function MA(e) { @@ -64497,29 +64538,29 @@ function MA(e) { function DA(e) { return e.dim + e.index; } -function wFe(e) { +function OFe(e) { var t = [], r = e.axis, n = "axis0"; if (r.type === "category") { for (var i = r.getBandWidth(), o = 0; o < e.count; o++) - t.push(wt({ + t.push(xt({ bandWidth: i, axisKey: n, stackId: pM + o }, e)); - for (var a = NX(t), s = [], o = 0; o < e.count; o++) { + for (var a = BX(t), s = [], o = 0; o < e.count; o++) { var l = a[n][pM + o]; l.offsetCenter = l.offset + l.width / 2, s.push(l); } return s; } } -function LX(e, t) { +function kX(e, t) { var r = []; return t.eachSeriesByType(e, function(n) { - BX(n) && r.push(n); + zX(n) && r.push(n); }), r; } -function xFe(e) { +function LFe(e) { var t = {}; z(e, function(l) { var c = l.coordinateSystem, u = c.getBaseAxis(); @@ -64546,8 +64587,8 @@ function xFe(e) { } return r; } -function FX(e) { - var t = xFe(e), r = []; +function $X(e) { + var t = LFe(e), r = []; return z(e, function(n) { var i = n.coordinateSystem, o = i.getBaseAxis(), a = o.getExtent(), s; if (o.type === "category") @@ -64562,7 +64603,7 @@ function FX(e) { var p = Ze(n.get("barWidth"), s), g = Ze(n.get("barMaxWidth"), s), v = Ze( // barMinWidth by default is 0.5 / 1 in cartesian. Because in value axis, // the auto-calculated bar width might be less than 0.5 / 1. - n.get("barMinWidth") || (VX(n) ? 0.5 : 1), + n.get("barMinWidth") || (GX(n) ? 0.5 : 1), s ), m = n.get("barGap"), y = n.get("barCategoryGap"); r.push({ @@ -64575,9 +64616,9 @@ function FX(e) { axisKey: DA(o), stackId: MA(n) }); - }), NX(r); + }), BX(r); } -function NX(e) { +function BX(e) { var t = {}; z(e, function(n, i) { var o = n.axisKey, a = n.bandWidth, s = t[o] || { @@ -64638,14 +64679,14 @@ function NX(e) { }); }), r; } -function EFe(e, t, r) { +function FFe(e, t, r) { if (e && t) { var n = e[DA(t)]; return n != null && r != null ? n[MA(r)] : n; } } -function kX(e, t) { - var r = LX(e, t), n = FX(r); +function VX(e, t) { + var r = kX(e, t), n = $X(r); z(r, function(i) { var o = i.getData(), a = i.coordinateSystem, s = a.getBaseAxis(), l = MA(i), c = n[DA(s)][l], u = c.offset, d = c.width; o.setLayout({ @@ -64655,13 +64696,13 @@ function kX(e, t) { }); }); } -function $X(e) { +function HX(e) { return { seriesType: e, - plan: Sp(), + plan: wp(), reset: function(t) { - if (BX(t)) { - var r = t.getData(), n = t.coordinateSystem, i = n.getBaseAxis(), o = n.getOtherAxis(i), a = r.getDimensionIndex(r.mapDimension(o.dim)), s = r.getDimensionIndex(r.mapDimension(i.dim)), l = t.get("showBackground", !0), c = r.mapDimension(o.dim), u = r.getCalculationInfo("stackResultDimension"), d = Gl(r, c) && !!r.getCalculationInfo("stackedOnSeries"), h = o.isHorizontal(), f = RFe(i, o), p = VX(t), g = t.get("barMinHeight") || 0, v = u && r.getDimensionIndex(u), m = r.getLayout("size"), y = r.getLayout("offset"); + if (zX(t)) { + var r = t.getData(), n = t.coordinateSystem, i = n.getBaseAxis(), o = n.getOtherAxis(i), a = r.getDimensionIndex(r.mapDimension(o.dim)), s = r.getDimensionIndex(r.mapDimension(i.dim)), l = t.get("showBackground", !0), c = r.mapDimension(o.dim), u = r.getCalculationInfo("stackResultDimension"), d = Wl(r, c) && !!r.getCalculationInfo("stackedOnSeries"), h = o.isHorizontal(), f = NFe(i, o), p = GX(t), g = t.get("barMinHeight") || 0, v = u && r.getDimensionIndex(u), m = r.getLayout("size"), y = r.getLayout("offset"); return { progress: function(C, b) { for (var w = C.count, x = p && Ls(w * 3), E = p && l && Ls(w * 3), R = p && Ls(w), P = n.master.getRect(), T = h ? P.width : P.height, _, D = b.getStore(), A = 0; (_ = C.next()) != null; ) { @@ -64702,17 +64743,17 @@ function $X(e) { } }; } -function BX(e) { +function zX(e) { return e.coordinateSystem && e.coordinateSystem.type === "cartesian2d"; } -function VX(e) { +function GX(e) { return e.pipelineContext && e.pipelineContext.large; } -function RFe(e, t) { +function NFe(e, t) { var r = t.model.get("startValue"); return r || (r = 0), t.toGlobalCoord(t.dataToCoord(t.type === "log" ? r > 0 ? r : 1 : r)); } -var PFe = function(e, t, r, n) { +var kFe = function(e, t, r, n) { for (; r < n; ) { var i = r + n >>> 1; e[i][1] < t ? r = i + 1 : n = i; @@ -64728,10 +64769,10 @@ var PFe = function(e, t, r, n) { } return t.prototype.getLabel = function(r) { var n = this.getSetting("useUTC"); - return ty(r.value, F8[J2e(Sf(this._minLevelUnit))] || F8.second, n, this.getSetting("locale")); + return iy(r.value, k8[uAe(Sf(this._minLevelUnit))] || k8.second, n, this.getSetting("locale")); }, t.prototype.getFormattedLabel = function(r, n, i) { var o = this.getSetting("useUTC"), a = this.getSetting("locale"); - return eAe(r, n, i, a, o); + return dAe(r, n, i, a, o); }, t.prototype.getTicks = function() { var r = this._interval, n = this._extent, i = []; if (!r) @@ -64740,7 +64781,7 @@ var PFe = function(e, t, r, n) { value: n[0], level: 0 }); - var o = this.getSetting("useUTC"), a = OFe(this._minLevelUnit, this._approxInterval, o, n); + var o = this.getSetting("useUTC"), a = WFe(this._minLevelUnit, this._approxInterval, o, n); return i = i.concat(a), i.push({ value: n[1], level: 0 @@ -64756,8 +64797,8 @@ var PFe = function(e, t, r, n) { r = r || 10; var o = this._extent, a = o[1] - o[0]; this._approxInterval = a / r, n != null && this._approxInterval < n && (this._approxInterval = n), i != null && this._approxInterval > i && (this._approxInterval = i); - var s = y0.length, l = Math.min(PFe(y0, this._approxInterval, 0, s), s - 1); - this._interval = y0[l][1], this._minLevelUnit = y0[Math.max(l - 1, 0)][0]; + var s = b0.length, l = Math.min(kFe(b0, this._approxInterval, 0, s), s - 1); + this._interval = b0[l][1], this._minLevelUnit = b0[Math.max(l - 1, 0)][0]; }, t.prototype.parse = function(r) { return Cr(r) ? r : +jo(r); }, t.prototype.contain = function(r) { @@ -64767,26 +64808,26 @@ var PFe = function(e, t, r, n) { }, t.prototype.scale = function(r) { return n1(r, this._extent); }, t.type = "time", t; - }(Wl) -), y0 = [ + }(jl) +), b0 = [ // Format interval ["second", tA], ["minute", rA], - ["hour", sv], - ["quarter-day", sv * 6], - ["half-day", sv * 12], + ["hour", cv], + ["quarter-day", cv * 6], + ["half-day", cv * 12], ["day", pa * 1.2], ["half-week", pa * 3.5], ["week", pa * 7], ["month", pa * 31], ["quarter", pa * 95], - ["half-year", L8 / 2], - ["year", L8] + ["half-year", N8 / 2], + ["year", N8] // 1Y ]; -function TFe(e, t, r, n) { +function $Fe(e, t, r, n) { var i = jo(t), o = jo(r), a = function(p) { - return N8(i, p, n) === N8(o, p, n); + return $8(i, p, n) === $8(o, p, n); }, s = function() { return a("year"); }, l = function() { @@ -64819,41 +64860,41 @@ function TFe(e, t, r, n) { return f(); } } -function _Fe(e, t) { +function BFe(e, t) { return e /= pa, e > 16 ? 16 : e > 7.5 ? 7 : e > 3.5 ? 4 : e > 1.5 ? 2 : 1; } -function MFe(e) { +function VFe(e) { var t = 30 * pa; return e /= t, e > 6 ? 6 : e > 3 ? 3 : e > 2 ? 2 : 1; } -function DFe(e) { - return e /= sv, e > 12 ? 12 : e > 6 ? 6 : e > 3.5 ? 4 : e > 2 ? 2 : 1; +function HFe(e) { + return e /= cv, e > 12 ? 12 : e > 6 ? 6 : e > 3.5 ? 4 : e > 2 ? 2 : 1; } -function jB(e, t) { +function KB(e, t) { return e /= t ? rA : tA, e > 30 ? 30 : e > 20 ? 20 : e > 15 ? 15 : e > 10 ? 10 : e > 5 ? 5 : e > 2 ? 2 : 1; } -function IFe(e) { - return L2(e, !0); +function zFe(e) { + return LI(e, !0); } -function AFe(e, t, r) { +function GFe(e, t, r) { var n = new Date(e); switch (Sf(t)) { case "year": case "month": - n[aq(r)](0); + n[cq(r)](0); case "day": - n[sq(r)](1); + n[uq(r)](1); case "hour": - n[lq(r)](0); + n[dq(r)](0); case "minute": - n[cq(r)](0); + n[hq(r)](0); case "second": - n[uq(r)](0), n[dq(r)](0); + n[fq(r)](0), n[pq(r)](0); } return n.getTime(); } -function OFe(e, t, r, n) { - var i = 1e4, o = iq, a = 0; +function WFe(e, t, r, n) { + var i = 1e4, o = sq, a = 0; function s(T, _, D, A, M, O, L) { for (var N = new Date(_), F = _, $ = N[A](); F < D && F <= n[1]; ) L.push({ @@ -64866,10 +64907,10 @@ function OFe(e, t, r, n) { } function l(T, _, D) { var A = [], M = !_.length; - if (!TFe(Sf(T), n[0], n[1], r)) { + if (!$Fe(Sf(T), n[0], n[1], r)) { M && (_ = [{ // TODO Optimize. Not include so may ticks. - value: AFe(new Date(n[0]), T, r) + value: GFe(new Date(n[0]), T, r) }, { value: n[1] }]); @@ -64879,31 +64920,31 @@ function OFe(e, t, r, n) { var F = void 0, $ = void 0, I = void 0, V = !1; switch (T) { case "year": - F = Math.max(1, Math.round(t / pa / 365)), $ = nA(r), I = tAe(r); + F = Math.max(1, Math.round(t / pa / 365)), $ = nA(r), I = hAe(r); break; case "half-year": case "quarter": case "month": - F = MFe(t), $ = bf(r), I = aq(r); + F = VFe(t), $ = bf(r), I = cq(r); break; case "week": case "half-week": case "day": - F = _Fe(t), $ = Ww(r), I = sq(r), V = !0; + F = BFe(t), $ = Ww(r), I = uq(r), V = !0; break; case "half-day": case "quarter-day": case "hour": - F = DFe(t), $ = qv(r), I = lq(r); + F = HFe(t), $ = Zv(r), I = dq(r); break; case "minute": - F = jB(t, !0), $ = jw(r), I = cq(r); + F = KB(t, !0), $ = jw(r), I = hq(r); break; case "second": - F = jB(t, !1), $ = Uw(r), I = uq(r); + F = KB(t, !1), $ = Uw(r), I = fq(r); break; case "millisecond": - F = IFe(t), $ = Kw(r), I = dq(r); + F = zFe(t), $ = Kw(r), I = pq(r); break; } s(F, L, N, $, I, V, A), T === "year" && D.length > 1 && O === 0 && D.unshift({ @@ -64918,7 +64959,7 @@ function OFe(e, t, r, n) { } for (var c = [], u = [], d = 0, h = 0, f = 0; f < o.length && a++ < i; ++f) { var p = Sf(o[f]); - if (Q2e(o[f])) { + if (cAe(o[f])) { l(o[f], c[c.length - 1] || [], u); var g = o[f + 1] ? Sf(o[f + 1]) : null; if (p !== g) { @@ -64939,8 +64980,8 @@ function OFe(e, t, r, n) { } } process.env.NODE_ENV !== "production" && a >= i && Cn("Exceed safe limit."); - for (var b = Fr(Fe(c, function(T) { - return Fr(T, function(_) { + for (var b = Nr(Fe(c, function(T) { + return Nr(T, function(_) { return _.value >= n[0] && _.value <= n[1] && !_.notAdd; }); }), function(T) { @@ -64958,49 +64999,49 @@ function OFe(e, t, r, n) { (f === 0 || w[f].value !== w[f - 1].value) && P.push(w[f]); return P; } -nl.registerClass(IA); -var UB = nl.prototype, uv = Wl.prototype, LFe = En, FFe = Math.floor, NFe = Math.ceil, C0 = Math.pow, Na = Math.log, AA = ( +il.registerClass(IA); +var YB = il.prototype, hv = jl.prototype, jFe = En, UFe = Math.floor, KFe = Math.ceil, w0 = Math.pow, Na = Math.log, AA = ( /** @class */ function(e) { Se(t, e); function t() { var r = e !== null && e.apply(this, arguments) || this; - return r.type = "log", r.base = 10, r._originalScale = new Wl(), r._interval = 0, r; + return r.type = "log", r.base = 10, r._originalScale = new jl(), r._interval = 0, r; } return t.prototype.getTicks = function(r) { - var n = this._originalScale, i = this._extent, o = n.getExtent(), a = uv.getTicks.call(this, r); + var n = this._originalScale, i = this._extent, o = n.getExtent(), a = hv.getTicks.call(this, r); return Fe(a, function(s) { - var l = s.value, c = En(C0(this.base, l)); - return c = l === i[0] && this._fixMin ? S0(c, o[0]) : c, c = l === i[1] && this._fixMax ? S0(c, o[1]) : c, { + var l = s.value, c = En(w0(this.base, l)); + return c = l === i[0] && this._fixMin ? x0(c, o[0]) : c, c = l === i[1] && this._fixMax ? x0(c, o[1]) : c, { value: c }; }, this); }, t.prototype.setExtent = function(r, n) { var i = Na(this.base); - r = Na(Math.max(0, r)) / i, n = Na(Math.max(0, n)) / i, uv.setExtent.call(this, r, n); + r = Na(Math.max(0, r)) / i, n = Na(Math.max(0, n)) / i, hv.setExtent.call(this, r, n); }, t.prototype.getExtent = function() { - var r = this.base, n = UB.getExtent.call(this); - n[0] = C0(r, n[0]), n[1] = C0(r, n[1]); + var r = this.base, n = YB.getExtent.call(this); + n[0] = w0(r, n[0]), n[1] = w0(r, n[1]); var i = this._originalScale, o = i.getExtent(); - return this._fixMin && (n[0] = S0(n[0], o[0])), this._fixMax && (n[1] = S0(n[1], o[1])), n; + return this._fixMin && (n[0] = x0(n[0], o[0])), this._fixMax && (n[1] = x0(n[1], o[1])), n; }, t.prototype.unionExtent = function(r) { this._originalScale.unionExtent(r); var n = this.base; - r[0] = Na(r[0]) / Na(n), r[1] = Na(r[1]) / Na(n), UB.unionExtent.call(this, r); + r[0] = Na(r[0]) / Na(n), r[1] = Na(r[1]) / Na(n), YB.unionExtent.call(this, r); }, t.prototype.unionExtentFromData = function(r, n) { this.unionExtent(r.getApproximateExtent(n)); }, t.prototype.calcNiceTicks = function(r) { r = r || 10; var n = this._extent, i = n[1] - n[0]; if (!(i === 1 / 0 || i <= 0)) { - var o = qK(i), a = r / i * o; + var o = QK(i), a = r / i * o; for (a <= 0.5 && (o *= 10); !isNaN(o) && Math.abs(o) < 1 && Math.abs(o) > 0; ) o *= 10; - var s = [En(NFe(n[0] / o) * o), En(FFe(n[1] / o) * o)]; + var s = [En(KFe(n[0] / o) * o), En(UFe(n[1] / o) * o)]; this._interval = o, this._niceExtent = s; } }, t.prototype.calcNiceExtent = function(r) { - uv.calcNiceExtent.call(this, r), this._fixMin = r.fixMin, this._fixMax = r.fixMax; + hv.calcNiceExtent.call(this, r), this._fixMin = r.fixMin, this._fixMax = r.fixMax; }, t.prototype.parse = function(r) { return r; }, t.prototype.contain = function(r) { @@ -65008,17 +65049,17 @@ var UB = nl.prototype, uv = Wl.prototype, LFe = En, FFe = Math.floor, NFe = Math }, t.prototype.normalize = function(r) { return r = Na(r) / Na(this.base), r1(r, this._extent); }, t.prototype.scale = function(r) { - return r = n1(r, this._extent), C0(this.base, r); + return r = n1(r, this._extent), w0(this.base, r); }, t.type = "log", t; - }(nl) -), HX = AA.prototype; -HX.getMinorTicks = uv.getMinorTicks; -HX.getLabel = uv.getLabel; -function S0(e, t) { - return LFe(e, Ka(t)); -} -nl.registerClass(AA); -var kFe = ( + }(il) +), WX = AA.prototype; +WX.getMinorTicks = hv.getMinorTicks; +WX.getLabel = hv.getLabel; +function x0(e, t) { + return jFe(e, Ka(t)); +} +il.registerClass(AA); +var YFe = ( /** @class */ function() { function e(t, r, n) { @@ -65031,18 +65072,18 @@ var kFe = ( var o = r.get("min", !0); o == null && (o = r.get("startValue", !0)); var a = this._modelMinRaw = o; - vt(a) ? this._modelMinNum = b0(t, a({ + mt(a) ? this._modelMinNum = E0(t, a({ min: n[0], max: n[1] - })) : a !== "dataMin" && (this._modelMinNum = b0(t, a)); + })) : a !== "dataMin" && (this._modelMinNum = E0(t, a)); var s = this._modelMaxRaw = r.get("max", !0); - if (vt(s) ? this._modelMaxNum = b0(t, s({ + if (mt(s) ? this._modelMaxNum = E0(t, s({ min: n[0], max: n[1] - })) : s !== "dataMax" && (this._modelMaxNum = b0(t, s)), i) + })) : s !== "dataMax" && (this._modelMaxNum = E0(t, s)), i) this._axisDataLen = r.getCategories().length; else { - var l = r.get("boundaryGap"), c = Ie(l) ? l : [l || 0, l || 0]; + var l = r.get("boundaryGap"), c = Ae(l) ? l : [l || 0, l || 0]; typeof c[0] == "boolean" || typeof c[1] == "boolean" ? (process.env.NODE_ENV !== "production" && console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'), this._boundaryGapInner = [0, 0]) : this._boundaryGapInner = [ss(c[0], 1), ss(c[1], 1)]; } }, e.prototype.calculate = function() { @@ -65059,38 +65100,38 @@ var kFe = ( isBlank: d }; }, e.prototype.modifyDataMinMax = function(t, r) { - process.env.NODE_ENV !== "production" && xt(!this.frozen), this[BFe[t]] = r; + process.env.NODE_ENV !== "production" && Et(!this.frozen), this[XFe[t]] = r; }, e.prototype.setDeterminedMinMax = function(t, r) { - var n = $Fe[t]; - process.env.NODE_ENV !== "production" && xt(!this.frozen && this[n] == null), this[n] = r; + var n = qFe[t]; + process.env.NODE_ENV !== "production" && Et(!this.frozen && this[n] == null), this[n] = r; }, e.prototype.freeze = function() { this.frozen = !0; }, e; }() -), $Fe = { +), qFe = { min: "_determinedMin", max: "_determinedMax" -}, BFe = { +}, XFe = { min: "_dataMin", max: "_dataMax" }; -function zX(e, t, r) { +function jX(e, t, r) { var n = e.rawExtentInfo; - return n || (n = new kFe(e, t, r), e.rawExtentInfo = n, n); + return n || (n = new YFe(e, t, r), e.rawExtentInfo = n, n); } -function b0(e, t) { +function E0(e, t) { return t == null ? null : zc(t) ? NaN : e.parse(t); } -function GX(e, t) { - var r = e.type, n = zX(e, t, e.getExtent()).calculate(); +function UX(e, t) { + var r = e.type, n = jX(e, t, e.getExtent()).calculate(); e.setBlank(n.isBlank); var i = n.min, o = n.max, a = t.ecModel; if (a && r === "time") { - var s = LX("bar", a), l = !1; + var s = kX("bar", a), l = !1; if (z(s, function(d) { l = l || d.getBaseAxis() === t.axis; }), l) { - var c = FX(s), u = VFe(i, o, t, c); + var c = $X(s), u = ZFe(i, o, t, c); i = u.min, o = u.max; } } @@ -65102,8 +65143,8 @@ function GX(e, t) { fixMax: n.maxFixed }; } -function VFe(e, t, r, n) { - var i = r.axis.getExtent(), o = i[1] - i[0], a = EFe(n, r.axis); +function ZFe(e, t, r, n) { + var i = r.axis.getExtent(), o = i[1] - i[0], a = FFe(n, r.axis); if (a === void 0) return { min: e, @@ -65124,7 +65165,7 @@ function VFe(e, t, r, n) { }; } function Ld(e, t) { - var r = t, n = GX(e, r), i = n.extent, o = r.get("splitNumber"); + var r = t, n = UX(e, r), i = n.extent, o = r.get("splitNumber"); e instanceof AA && (e.base = r.get("logBase")); var a = e.type, s = r.get("interval"), l = a === "interval" || a === "time"; e.setExtent(i[0], i[1]), e.calcNiceExtent({ @@ -65135,7 +65176,7 @@ function Ld(e, t) { maxInterval: l ? r.get("maxInterval") : null }), s != null && e.setInterval && e.setInterval(s); } -function ny(e, t) { +function ay(e, t) { if (t = t || e.get("type"), t) switch (t) { case "category": @@ -65149,14 +65190,14 @@ function ny(e, t) { useUTC: e.ecModel.get("useUTC") }); default: - return new (nl.getClass(t) || Wl)(); + return new (il.getClass(t) || jl)(); } } -function HFe(e) { +function QFe(e) { var t = e.scale.getExtent(), r = t[0], n = t[1]; return !(r > 0 && n > 0 || r < 0 && n < 0); } -function Ep(e) { +function Pp(e) { var t = e.getLabelModel().get("formatter"), r = e.type === "category" ? e.scale.getExtent()[0] : null; return e.scale.type === "time" ? /* @__PURE__ */ function(n) { return function(i, o) { @@ -65167,7 +65208,7 @@ function Ep(e) { var o = e.scale.getLabel(i), a = n.replace("{value}", o ?? ""); return a; }; - }(t) : vt(t) ? /* @__PURE__ */ function(n) { + }(t) : mt(t) ? /* @__PURE__ */ function(n) { return function(i, o) { return r != null && (o = i.value - r), n(OA(e, i), o, i.level != null ? { level: i.level @@ -65180,46 +65221,46 @@ function Ep(e) { function OA(e, t) { return e.type === "category" ? e.scale.getLabel(t) : t.value; } -function zFe(e) { +function JFe(e) { var t = e.model, r = e.scale; if (!(!t.get(["axisLabel", "show"]) || r.isBlank())) { var n, i, o = r.getExtent(); r instanceof i1 ? i = r.count() : (n = r.getTicks(), i = n.length); - var a = e.getLabelModel(), s = Ep(e), l, c = 1; + var a = e.getLabelModel(), s = Pp(e), l, c = 1; i > 40 && (c = Math.ceil(i / 40)); for (var u = 0; u < i; u += c) { var d = n ? n[u] : { value: o[0] + u - }, h = s(d, u), f = a.getTextRect(h), p = GFe(f, a.get("rotate") || 0); + }, h = s(d, u), f = a.getTextRect(h), p = eNe(f, a.get("rotate") || 0); l ? l.union(p) : l = p; } return l; } } -function GFe(e, t) { - var r = t * Math.PI / 180, n = e.width, i = e.height, o = n * Math.abs(Math.cos(r)) + Math.abs(i * Math.sin(r)), a = n * Math.abs(Math.sin(r)) + Math.abs(i * Math.cos(r)), s = new Kt(e.x, e.y, o, a); +function eNe(e, t) { + var r = t * Math.PI / 180, n = e.width, i = e.height, o = n * Math.abs(Math.cos(r)) + Math.abs(i * Math.sin(r)), a = n * Math.abs(Math.sin(r)) + Math.abs(i * Math.cos(r)), s = new Yt(e.x, e.y, o, a); return s; } function LA(e) { var t = e.get("interval"); return t ?? "auto"; } -function WX(e) { +function KX(e) { return e.type === "category" && LA(e.getLabelModel()) === 0; } -function qS(e, t) { +function ZS(e, t) { var r = {}; return z(e.mapDimensionsAll(t), function(n) { r[_A(e, n)] = !0; }), ar(r); } -function WFe(e, t, r) { - t && z(qS(t, r), function(n) { +function tNe(e, t, r) { + t && z(ZS(t, r), function(n) { var i = t.getApproximateExtent(n); i[0] < e[0] && (e[0] = i[0]), i[1] > e[1] && (e[1] = i[1]); }); } -var Rp = ( +var Tp = ( /** @class */ function() { function e() { @@ -65231,42 +65272,42 @@ var Rp = ( }, e; }() ); -function jFe(e) { - return rl(null, e); +function rNe(e) { + return nl(null, e); } -var UFe = { - isDimensionStacked: Gl, - enableDataStack: IX, +var nNe = { + isDimensionStacked: Wl, + enableDataStack: LX, getStackedDimension: _A }; -function KFe(e, t) { +function iNe(e, t) { var r = t; t instanceof Gr || (r = new Gr(t)); - var n = ny(r); + var n = ay(r); return n.setExtent(e[0], e[1]), Ld(n, r), n; } -function YFe(e) { - In(e, Rp); +function oNe(e) { + In(e, Tp); } -function qFe(e, t) { +function aNe(e, t) { return t = t || {}, rn(e, null, null, t.state !== "normal"); } -const XFe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const sNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - createDimensions: iFe, - createList: jFe, - createScale: KFe, + createDimensions: gFe, + createList: rNe, + createScale: iNe, createSymbol: Bn, - createTextStyle: qFe, - dataStack: UFe, + createTextStyle: aNe, + dataStack: nNe, enableHoverEmphasis: Mc, getECData: Ft, getLayoutRect: jn, - mixinAxisModelCommonMethods: YFe + mixinAxisModelCommonMethods: oNe }, Symbol.toStringTag, { value: "Module" })); -var ZFe = 1e-8; -function KB(e, t) { - return Math.abs(e - t) < ZFe; +var lNe = 1e-8; +function qB(e, t) { + return Math.abs(e - t) < lNe; } function Gu(e, t, r) { var n = 0, i = e[0]; @@ -65274,30 +65315,30 @@ function Gu(e, t, r) { return !1; for (var o = 1; o < e.length; o++) { var a = e[o]; - n += yl(i[0], i[1], a[0], a[1], t, r), i = a; + n += Cl(i[0], i[1], a[0], a[1], t, r), i = a; } var s = e[0]; - return (!KB(i[0], s[0]) || !KB(i[1], s[1])) && (n += yl(i[0], i[1], s[0], s[1], t, r)), n !== 0; + return (!qB(i[0], s[0]) || !qB(i[1], s[1])) && (n += Cl(i[0], i[1], s[0], s[1], t, r)), n !== 0; } -var QFe = []; +var cNe = []; function kE(e, t) { for (var r = 0; r < e.length; r++) - gi(e[r], e[r], t); + vi(e[r], e[r], t); } -function YB(e, t, r, n) { +function XB(e, t, r, n) { for (var i = 0; i < e.length; i++) { var o = e[i]; - n && (o = n.project(o)), o && isFinite(o[0]) && isFinite(o[1]) && (xl(t, t, o), El(r, r, o)); + n && (o = n.project(o)), o && isFinite(o[0]) && isFinite(o[1]) && (El(t, t, o), Rl(r, r, o)); } } -function JFe(e) { +function uNe(e) { for (var t = 0, r = 0, n = 0, i = e.length, o = e[i - 1][0], a = e[i - 1][1], s = 0; s < i; s++) { var l = e[s][0], c = e[s][1], u = o * c - l * a; t += u, r += (o + l) * u, n += (a + c) * u, o = l, a = c; } return t ? [r / t / 3, n / t / 3, t] : [e[0][0] || 0, e[0][1] || 0]; } -var jX = ( +var YX = ( /** @class */ function() { function e(t) { @@ -65310,7 +65351,7 @@ var jX = ( return t || (t = this._center = this.calcCenter()), t; }, e; }() -), qB = ( +), ZB = ( /** @class */ /* @__PURE__ */ function() { function e(t, r) { @@ -65318,7 +65359,7 @@ var jX = ( } return e; }() -), XB = ( +), QB = ( /** @class */ /* @__PURE__ */ function() { function e(t) { @@ -65326,7 +65367,7 @@ var jX = ( } return e; }() -), UX = ( +), qX = ( /** @class */ function(e) { Se(t, e); @@ -65340,7 +65381,7 @@ var jX = ( l > i && (n = a, i = l); } if (n) - return JFe(n.exterior); + return uNe(n.exterior); var c = this.getBoundingRect(); return [c.x + c.width / 2, c.y + c.height / 2]; }, t.prototype.getBoundingRect = function(r) { @@ -65349,10 +65390,10 @@ var jX = ( return n; var i = [1 / 0, 1 / 0], o = [-1 / 0, -1 / 0], a = this.geometries; return z(a, function(s) { - s.type === "polygon" ? YB(s.exterior, i, o, r) : z(s.points, function(l) { - YB(l, i, o, r); + s.type === "polygon" ? XB(s.exterior, i, o, r) : z(s.points, function(l) { + XB(l, i, o, r); }); - }), isFinite(i[0]) && isFinite(i[1]) && isFinite(o[0]) && isFinite(o[1]) || (i[0] = i[1] = o[0] = o[1] = 0), n = new Kt(i[0], i[1], o[0] - i[0], o[1] - i[1]), r || (this._rect = n), n; + }), isFinite(i[0]) && isFinite(i[1]) && isFinite(o[0]) && isFinite(o[1]) || (i[0] = i[1] = o[0] = o[1] = 0), n = new Yt(i[0], i[1], o[0] - i[0], o[1] - i[1]), r || (this._rect = n), n; }, t.prototype.contain = function(r) { var n = this.getBoundingRect(), i = this.geometries; if (!n.contain(r[0], r[1])) @@ -65373,7 +65414,7 @@ var jX = ( }, t.prototype.transformTo = function(r, n, i, o) { var a = this.getBoundingRect(), s = a.width / a.height; i ? o || (o = i / s) : i = s * o; - for (var l = new Kt(r, n, i, o), c = a.calculateTransform(l), u = this.geometries, d = 0; d < u.length; d++) { + for (var l = new Yt(r, n, i, o), c = a.calculateTransform(l), u = this.geometries, d = 0; d < u.length; d++) { var h = u[d]; h.type === "polygon" ? (kE(h.exterior, c), z(h.interiors, function(f) { kE(f, c); @@ -65387,8 +65428,8 @@ var jX = ( var n = new t(r, this.geometries, this._center); return n._rect = this._rect, n.transformTo = null, n; }, t; - }(jX) -), eNe = ( + }(YX) +), dNe = ( /** @class */ function(e) { Se(t, e); @@ -65397,13 +65438,13 @@ var jX = ( return i.type = "geoSVG", i._elOnlyForCalculate = n, i; } return t.prototype.calcCenter = function() { - for (var r = this._elOnlyForCalculate, n = r.getBoundingRect(), i = [n.x + n.width / 2, n.y + n.height / 2], o = jm(QFe), a = r; a && !a.isGeoSVGGraphicRoot; ) + for (var r = this._elOnlyForCalculate, n = r.getBoundingRect(), i = [n.x + n.width / 2, n.y + n.height / 2], o = Ym(cNe), a = r; a && !a.isGeoSVGGraphicRoot; ) Bs(o, a.getLocalTransform(), o), a = a.parent; - return Ud(o, o), gi(i, i, o), i; + return Ud(o, o), vi(i, i, o), i; }, t; - }(jX) + }(YX) ); -function tNe(e) { +function hNe(e) { if (!e.UTF8Encoding) return e; var t = e, r = t.UTF8Scale; @@ -65414,7 +65455,7 @@ function tNe(e) { if (a) switch (o.type) { case "LineString": - o.coordinates = KX(s, a, r); + o.coordinates = XX(s, a, r); break; case "Polygon": $E(s, a, r); @@ -65431,9 +65472,9 @@ function tNe(e) { } function $E(e, t, r) { for (var n = 0; n < e.length; n++) - e[n] = KX(e[n], t[n], r); + e[n] = XX(e[n], t[n], r); } -function KX(e, t, r) { +function XX(e, t, r) { for (var n = [], i = t[0], o = t[1], a = 0; a < e.length; a += 2) { var s = e.charCodeAt(a) - 64, l = e.charCodeAt(a + 1) - 64; s = s >> 1 ^ -(s & 1), l = l >> 1 ^ -(l & 1), s += i, l += o, i = s, o = l, n.push([s / r, l / r]); @@ -65441,132 +65482,132 @@ function KX(e, t, r) { return n; } function gM(e, t) { - return e = tNe(e), Fe(Fr(e.features, function(r) { + return e = hNe(e), Fe(Nr(e.features, function(r) { return r.geometry && r.properties && r.geometry.coordinates.length > 0; }), function(r) { var n = r.properties, i = r.geometry, o = []; switch (i.type) { case "Polygon": var a = i.coordinates; - o.push(new qB(a[0], a.slice(1))); + o.push(new ZB(a[0], a.slice(1))); break; case "MultiPolygon": z(i.coordinates, function(l) { - l[0] && o.push(new qB(l[0], l.slice(1))); + l[0] && o.push(new ZB(l[0], l.slice(1))); }); break; case "LineString": - o.push(new XB([i.coordinates])); + o.push(new QB([i.coordinates])); break; case "MultiLineString": - o.push(new XB(i.coordinates)); + o.push(new QB(i.coordinates)); } - var s = new UX(n[t || "name"], o, n.cp); + var s = new qX(n[t || "name"], o, n.cp); return s.properties = n, s; }); } -const rNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const fNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, MAX_SAFE_INTEGER: N_, asc: Vo, - getPercentWithPrecision: PDe, - getPixelPrecision: A2, + getPercentWithPrecision: k2e, + getPixelPrecision: AI, getPrecision: Ka, - getPrecisionSafe: _S, + getPrecisionSafe: DS, isNumeric: Dw, - isRadianAroundZero: Lf, + isRadianAroundZero: Nf, linearMap: Lr, - nice: L2, + nice: LI, numericToNumber: Ks, parseDate: jo, - quantile: xC, - quantity: qK, - quantityExponent: Ym, + quantile: PC, + quantity: QK, + quantityExponent: Zm, reformIntervals: k_, - remRadian: O2, + remRadian: OI, round: En -}, Symbol.toStringTag, { value: "Module" })), nNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), pNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - format: ty, + format: iy, parse: jo -}, Symbol.toStringTag, { value: "Module" })), iNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), gNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Arc: Bw, - BezierCurve: Qm, - BoundingRect: Kt, + BezierCurve: ty, + BoundingRect: Yt, Circle: Ql, CompoundPath: Vw, Ellipse: $w, Group: Ot, - Image: yi, - IncrementalDisplayable: jY, + Image: Ci, + IncrementalDisplayable: YY, Line: ri, - LinearGradient: hp, + LinearGradient: pp, Polygon: oo, Polyline: ao, - RadialGradient: U2, + RadialGradient: UI, Rect: mr, - Ring: Zm, + Ring: ey, Sector: io, Text: vr, - clipPointsByRect: X2, - clipRectByRect: XY, - createIcon: pp, - extendPath: YY, - extendShape: KY, + clipPointsByRect: XI, + clipRectByRect: JY, + createIcon: vp, + extendPath: ZY, + extendShape: XY, getShapeClass: Hw, getTransform: Dc, initProps: un, - makeImage: Y2, - makePath: Jm, + makeImage: YI, + makePath: ry, mergePath: No, registerShape: Ia, - resizePath: q2, + resizePath: qI, updateProps: br -}, Symbol.toStringTag, { value: "Module" })), oNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), vNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, addCommas: iA, - capitalFirst: oAe, + capitalFirst: vAe, encodeHTML: Ki, - formatTime: iAe, + formatTime: gAe, formatTpl: aA, - getTextRect: rAe, - getTooltipMarker: hq, + getTextRect: fAe, + getTooltipMarker: gq, normalizeCssArray: qd, toCamelCase: oA, - truncateText: aY -}, Symbol.toStringTag, { value: "Module" })), aNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + truncateText: cY +}, Symbol.toStringTag, { value: "Module" })), mNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, bind: at, clone: _t, curry: Vt, - defaults: wt, + defaults: xt, each: z, extend: Pe, - filter: Fr, - indexOf: Yt, - inherits: x2, - isArray: Ie, - isFunction: vt, - isObject: St, + filter: Nr, + indexOf: qt, + inherits: xI, + isArray: Ae, + isFunction: mt, + isObject: bt, isString: Je, map: Fe, - merge: Wt, + merge: jt, reduce: Ra }, Symbol.toStringTag, { value: "Module" })); -var tm = yr(); -function YX(e, t) { +var nm = yr(); +function ZX(e, t) { var r = Fe(t, function(n) { return e.scale.parse(n); }); return e.type === "time" && r.length > 0 && (r.sort(), r.unshift(r[0]), r.push(r[r.length - 1])), r; } -function sNe(e) { +function yNe(e) { var t = e.getLabelModel().get("customValues"); if (t) { - var r = Ep(e); + var r = Pp(e); return { - labels: YX(e, t).map(function(n) { + labels: ZX(e, t).map(function(n) { var i = { value: n }; @@ -65578,56 +65619,56 @@ function sNe(e) { }) }; } - return e.type === "category" ? cNe(e) : dNe(e); + return e.type === "category" ? SNe(e) : wNe(e); } -function lNe(e, t) { +function CNe(e, t) { var r = e.getTickModel().get("customValues"); return r ? { - ticks: YX(e, r) - } : e.type === "category" ? uNe(e, t) : { + ticks: ZX(e, r) + } : e.type === "category" ? bNe(e, t) : { ticks: Fe(e.scale.getTicks(), function(n) { return n.value; }) }; } -function cNe(e) { - var t = e.getLabelModel(), r = qX(e, t); +function SNe(e) { + var t = e.getLabelModel(), r = QX(e, t); return !t.get("show") || e.scale.isBlank() ? { labels: [], labelCategoryInterval: r.labelCategoryInterval } : r; } -function qX(e, t) { - var r = XX(e, "labels"), n = LA(t), i = ZX(r, n); +function QX(e, t) { + var r = JX(e, "labels"), n = LA(t), i = eZ(r, n); if (i) return i; var o, a; - return vt(n) ? o = eZ(e, n) : (a = n === "auto" ? hNe(e) : n, o = JX(e, a)), QX(r, n, { + return mt(n) ? o = nZ(e, n) : (a = n === "auto" ? xNe(e) : n, o = rZ(e, a)), tZ(r, n, { labels: o, labelCategoryInterval: a }); } -function uNe(e, t) { - var r = XX(e, "ticks"), n = LA(t), i = ZX(r, n); +function bNe(e, t) { + var r = JX(e, "ticks"), n = LA(t), i = eZ(r, n); if (i) return i; var o, a; - if ((!t.get("show") || e.scale.isBlank()) && (o = []), vt(n)) - o = eZ(e, n, !0); + if ((!t.get("show") || e.scale.isBlank()) && (o = []), mt(n)) + o = nZ(e, n, !0); else if (n === "auto") { - var s = qX(e, e.getLabelModel()); + var s = QX(e, e.getLabelModel()); a = s.labelCategoryInterval, o = Fe(s.labels, function(l) { return l.tickValue; }); } else - a = n, o = JX(e, a, !0); - return QX(r, n, { + a = n, o = rZ(e, a, !0); + return tZ(r, n, { ticks: o, tickCategoryInterval: a }); } -function dNe(e) { - var t = e.scale.getTicks(), r = Ep(e); +function wNe(e) { + var t = e.scale.getTicks(), r = Pp(e); return { labels: Fe(t, function(n, i) { return { @@ -65639,42 +65680,42 @@ function dNe(e) { }) }; } -function XX(e, t) { - return tm(e)[t] || (tm(e)[t] = []); +function JX(e, t) { + return nm(e)[t] || (nm(e)[t] = []); } -function ZX(e, t) { +function eZ(e, t) { for (var r = 0; r < e.length; r++) if (e[r].key === t) return e[r].value; } -function QX(e, t, r) { +function tZ(e, t, r) { return e.push({ key: t, value: r }), r; } -function hNe(e) { - var t = tm(e).autoInterval; - return t ?? (tm(e).autoInterval = e.calculateCategoryInterval()); +function xNe(e) { + var t = nm(e).autoInterval; + return t ?? (nm(e).autoInterval = e.calculateCategoryInterval()); } -function fNe(e) { - var t = pNe(e), r = Ep(e), n = (t.axisRotate - t.labelRotate) / 180 * Math.PI, i = e.scale, o = i.getExtent(), a = i.count(); +function ENe(e) { + var t = RNe(e), r = Pp(e), n = (t.axisRotate - t.labelRotate) / 180 * Math.PI, i = e.scale, o = i.getExtent(), a = i.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], c = e.dataToCoord(l + 1) - e.dataToCoord(l), u = Math.abs(c * Math.cos(n)), d = Math.abs(c * Math.sin(n)), h = 0, f = 0; l <= o[1]; l += s) { - var p = 0, g = 0, v = Km(r({ + var p = 0, g = 0, v = Xm(r({ value: l }), t.font, "center", "top"); p = v.width * 1.3, g = v.height * 1.3, h = Math.max(h, p, 7), f = Math.max(f, g, 7); } var m = h / u, y = f / d; isNaN(m) && (m = 1 / 0), isNaN(y) && (y = 1 / 0); - var C = Math.max(0, Math.floor(Math.min(m, y))), b = tm(e.model), w = e.getExtent(), x = b.lastAutoInterval, E = b.lastTickCount; + var C = Math.max(0, Math.floor(Math.min(m, y))), b = nm(e.model), w = e.getExtent(), x = b.lastAutoInterval, E = b.lastTickCount; return x != null && E != null && Math.abs(x - C) <= 1 && Math.abs(E - a) <= 1 && x > C && b.axisExtent0 === w[0] && b.axisExtent1 === w[1] ? C = x : (b.lastTickCount = a, b.lastAutoInterval = C, b.axisExtent0 = w[0], b.axisExtent1 = w[1]), C; } -function pNe(e) { +function RNe(e) { var t = e.getLabelModel(); return { axisRotate: e.getRotate ? e.getRotate() : e.isHorizontal && !e.isHorizontal() ? 90 : 0, @@ -65682,10 +65723,10 @@ function pNe(e) { font: t.getFont() }; } -function JX(e, t, r) { - var n = Ep(e), i = e.scale, o = i.getExtent(), a = e.getLabelModel(), s = [], l = Math.max((t || 0) + 1, 1), c = o[0], u = i.count(); +function rZ(e, t, r) { + var n = Pp(e), i = e.scale, o = i.getExtent(), a = e.getLabelModel(), s = [], l = Math.max((t || 0) + 1, 1), c = o[0], u = i.count(); c !== 0 && l > 1 && u / l > 2 && (c = Math.round(Math.ceil(c / l) * l)); - var d = WX(e), h = a.get("showMinLabel") || d, f = a.get("showMaxLabel") || d; + var d = KX(e), h = a.get("showMinLabel") || d, f = a.get("showMaxLabel") || d; h && c !== o[0] && g(o[0]); for (var p = c; p <= o[1]; p += l) g(p); @@ -65702,8 +65743,8 @@ function JX(e, t, r) { } return s; } -function eZ(e, t, r) { - var n = e.scale, i = Ep(e), o = []; +function nZ(e, t, r) { + var n = e.scale, i = Pp(e), o = []; return z(n.getTicks(), function(a) { var s = n.getLabel(a), l = a.value; t(a.value, s) && o.push(r ? l : { @@ -65713,7 +65754,7 @@ function eZ(e, t, r) { }); }), o; } -var ZB = [0, 1], gNe = ( +var JB = [0, 1], PNe = ( /** @class */ function() { function e(t, r, n) { @@ -65727,28 +65768,28 @@ var ZB = [0, 1], gNe = ( }, e.prototype.getExtent = function() { return this._extent.slice(); }, e.prototype.getPixelPrecision = function(t) { - return A2(t || this.scale.getExtent(), this._extent); + return AI(t || this.scale.getExtent(), this._extent); }, e.prototype.setExtent = function(t, r) { var n = this._extent; n[0] = t, n[1] = r; }, e.prototype.dataToCoord = function(t, r) { var n = this._extent, i = this.scale; - return t = i.normalize(t), this.onBand && i.type === "ordinal" && (n = n.slice(), QB(n, i.count())), Lr(t, ZB, n, r); + return t = i.normalize(t), this.onBand && i.type === "ordinal" && (n = n.slice(), eV(n, i.count())), Lr(t, JB, n, r); }, e.prototype.coordToData = function(t, r) { var n = this._extent, i = this.scale; - this.onBand && i.type === "ordinal" && (n = n.slice(), QB(n, i.count())); - var o = Lr(t, n, ZB, r); + this.onBand && i.type === "ordinal" && (n = n.slice(), eV(n, i.count())); + var o = Lr(t, n, JB, r); return this.scale.scale(o); }, e.prototype.pointToData = function(t, r) { }, e.prototype.getTicksCoords = function(t) { t = t || {}; - var r = t.tickModel || this.getTickModel(), n = lNe(this, r), i = n.ticks, o = Fe(i, function(s) { + var r = t.tickModel || this.getTickModel(), n = CNe(this, r), i = n.ticks, o = Fe(i, function(s) { return { coord: this.dataToCoord(this.scale.type === "ordinal" ? this.scale.getRawOrdinalNumber(s) : s), tickValue: s }; }, this), a = r.get("alignWithLabel"); - return vNe(this, o, a, t.clamp), o; + return TNe(this, o, a, t.clamp), o; }, e.prototype.getMinorTicksCoords = function() { if (this.scale.type === "ordinal") return []; @@ -65764,7 +65805,7 @@ var ZB = [0, 1], gNe = ( }, this); return i; }, e.prototype.getViewLabels = function() { - return sNe(this).labels; + return yNe(this).labels; }, e.prototype.getLabelModel = function() { return this.model.getModel("axisLabel"); }, e.prototype.getTickModel = function() { @@ -65775,15 +65816,15 @@ var ZB = [0, 1], gNe = ( var i = Math.abs(t[1] - t[0]); return Math.abs(i) / n; }, e.prototype.calculateCategoryInterval = function() { - return fNe(this); + return ENe(this); }, e; }() ); -function QB(e, t) { +function eV(e, t) { var r = e[1] - e[0], n = t, i = r / n / 2; e[0] += i, e[1] -= i; } -function vNe(e, t, r, n) { +function TNe(e, t, r, n) { var i = t.length; if (!e.onBand || r || !i) return; @@ -65812,25 +65853,25 @@ function vNe(e, t, r, n) { return f = En(f), p = En(p), d ? f > p : f < p; } } -const La = gNe; -function mNe(e) { +const La = PNe; +function _Ne(e) { var t = Qt.extend(e); return Qt.registerClass(t), t; } -function yNe(e) { +function MNe(e) { var t = sn.extend(e); return sn.registerClass(t), t; } -function CNe(e) { +function DNe(e) { var t = jr.extend(e); return jr.registerClass(t), t; } -function SNe(e) { +function INe(e) { var t = $r.extend(e); return $r.registerClass(t), t; } -var ag = Math.PI * 2, _u = Ys.CMD, bNe = ["top", "right", "bottom", "left"]; -function wNe(e, t, r, n, i) { +var lg = Math.PI * 2, _u = Ys.CMD, ANe = ["top", "right", "bottom", "left"]; +function ONe(e, t, r, n, i) { var o = r.width, a = r.height; switch (e) { case "top": @@ -65847,26 +65888,26 @@ function wNe(e, t, r, n, i) { break; } } -function xNe(e, t, r, n, i, o, a, s, l) { +function LNe(e, t, r, n, i, o, a, s, l) { a -= e, s -= t; var c = Math.sqrt(a * a + s * s); a /= c, s /= c; var u = a * r + e, d = s * r + t; - if (Math.abs(n - i) % ag < 1e-4) + if (Math.abs(n - i) % lg < 1e-4) return l[0] = u, l[1] = d, c - r; if (o) { var h = n; n = Ho(i), i = Ho(h); } else n = Ho(n), i = Ho(i); - n > i && (i += ag); + n > i && (i += lg); var f = Math.atan2(s, a); - if (f < 0 && (f += ag), f >= n && f <= i || f + ag >= n && f + ag <= i) + if (f < 0 && (f += lg), f >= n && f <= i || f + lg >= n && f + lg <= i) return l[0] = u, l[1] = d, c - r; var p = r * Math.cos(n) + e, g = r * Math.sin(n) + t, v = r * Math.cos(i) + e, m = r * Math.sin(i) + t, y = (p - a) * (p - a) + (g - s) * (g - s), C = (v - a) * (v - a) + (m - s) * (m - s); return y < C ? (l[0] = p, l[1] = g, Math.sqrt(y)) : (l[0] = v, l[1] = m, Math.sqrt(C)); } -function XS(e, t, r, n, i, o, a, s) { +function QS(e, t, r, n, i, o, a, s) { var l = i - e, c = o - t, u = r - e, d = n - t, h = Math.sqrt(u * u + d * d); u /= h, d /= h; var f = l * u + c * d, p = f / h; @@ -65874,17 +65915,17 @@ function XS(e, t, r, n, i, o, a, s) { var g = a[0] = e + p * u, v = a[1] = t + p * d; return Math.sqrt((g - i) * (g - i) + (v - o) * (v - o)); } -function tZ(e, t, r, n, i, o, a) { +function iZ(e, t, r, n, i, o, a) { r < 0 && (e = e + r, r = -r), n < 0 && (t = t + n, n = -n); var s = e + r, l = t + n, c = a[0] = Math.min(Math.max(i, e), s), u = a[1] = Math.min(Math.max(o, t), l); return Math.sqrt((c - i) * (c - i) + (u - o) * (u - o)); } var za = []; -function ENe(e, t, r) { - var n = tZ(t.x, t.y, t.width, t.height, e.x, e.y, za); +function FNe(e, t, r) { + var n = iZ(t.x, t.y, t.width, t.height, e.x, e.y, za); return r.set(za[0], za[1]), n; } -function RNe(e, t, r) { +function NNe(e, t, r) { for (var n = 0, i = 0, o = 0, a = 0, s, l, c = 1 / 0, u = t.data, d = e.x, h = e.y, f = 0; f < u.length; ) { var p = u[f++]; f === 1 && (n = u[f], i = u[f + 1], o = n, a = i); @@ -65894,13 +65935,13 @@ function RNe(e, t, r) { o = u[f++], a = u[f++], n = o, i = a; break; case _u.L: - g = XS(n, i, u[f], u[f + 1], d, h, za, !0), n = u[f++], i = u[f++]; + g = QS(n, i, u[f], u[f + 1], d, h, za, !0), n = u[f++], i = u[f++]; break; case _u.C: - g = TK(n, i, u[f++], u[f++], u[f++], u[f++], u[f], u[f + 1], d, h, za), n = u[f++], i = u[f++]; + g = DK(n, i, u[f++], u[f++], u[f++], u[f++], u[f], u[f + 1], d, h, za), n = u[f++], i = u[f++]; break; case _u.Q: - g = MK(n, i, u[f++], u[f++], u[f], u[f + 1], d, h, za), n = u[f++], i = u[f++]; + g = AK(n, i, u[f++], u[f++], u[f], u[f + 1], d, h, za), n = u[f++], i = u[f++]; break; case _u.A: var v = u[f++], m = u[f++], y = u[f++], C = u[f++], b = u[f++], w = u[f++]; @@ -65908,80 +65949,80 @@ function RNe(e, t, r) { var x = !!(1 - u[f++]); s = Math.cos(b) * y + v, l = Math.sin(b) * C + m, f <= 1 && (o = s, a = l); var E = (d - v) * C / y + v; - g = xNe(v, m, C, b, b + w, x, E, h, za), n = Math.cos(b + w) * y + v, i = Math.sin(b + w) * C + m; + g = LNe(v, m, C, b, b + w, x, E, h, za), n = Math.cos(b + w) * y + v, i = Math.sin(b + w) * C + m; break; case _u.R: o = n = u[f++], a = i = u[f++]; var R = u[f++], P = u[f++]; - g = tZ(o, a, R, P, d, h, za); + g = iZ(o, a, R, P, d, h, za); break; case _u.Z: - g = XS(n, i, o, a, d, h, za, !0), n = o, i = a; + g = QS(n, i, o, a, d, h, za, !0), n = o, i = a; break; } g < c && (c = g, r.set(za[0], za[1])); } return c; } -var Ya = new Ut(), an = new Ut(), Fn = new Ut(), Fs = new Ut(), Is = new Ut(); -function JB(e, t) { +var Ya = new Kt(), an = new Kt(), Fn = new Kt(), Fs = new Kt(), Is = new Kt(); +function tV(e, t) { if (e) { var r = e.getTextGuideLine(), n = e.getTextContent(); if (n && r) { - var i = e.textGuideLineConfig || {}, o = [[0, 0], [0, 0], [0, 0]], a = i.candidates || bNe, s = n.getBoundingRect().clone(); + var i = e.textGuideLineConfig || {}, o = [[0, 0], [0, 0], [0, 0]], a = i.candidates || ANe, s = n.getBoundingRect().clone(); s.applyTransform(n.getComputedTransform()); var l = 1 / 0, c = i.anchor, u = e.getComputedTransform(), d = u && Ud([], u), h = t.get("length2") || 0; c && Fn.copy(c); for (var f = 0; f < a.length; f++) { var p = a[f]; - wNe(p, 0, s, Ya, Fs), Ut.scaleAndAdd(an, Ya, Fs, h), an.transform(d); - var g = e.getBoundingRect(), v = c ? c.distance(an) : e instanceof nr ? RNe(an, e.path, Fn) : ENe(an, g, Fn); + ONe(p, 0, s, Ya, Fs), Kt.scaleAndAdd(an, Ya, Fs, h), an.transform(d); + var g = e.getBoundingRect(), v = c ? c.distance(an) : e instanceof nr ? NNe(an, e.path, Fn) : FNe(an, g, Fn); v < l && (l = v, an.transform(u), Fn.transform(u), Fn.toArray(o[0]), an.toArray(o[1]), Ya.toArray(o[2])); } - rZ(o, t.get("minTurnAngle")), r.setShape({ + oZ(o, t.get("minTurnAngle")), r.setShape({ points: o }); } } } -var ZS = [], Ui = new Ut(); -function rZ(e, t) { +var JS = [], Ui = new Kt(); +function oZ(e, t) { if (t <= 180 && t > 0) { - t = t / 180 * Math.PI, Ya.fromArray(e[0]), an.fromArray(e[1]), Fn.fromArray(e[2]), Ut.sub(Fs, Ya, an), Ut.sub(Is, Fn, an); + t = t / 180 * Math.PI, Ya.fromArray(e[0]), an.fromArray(e[1]), Fn.fromArray(e[2]), Kt.sub(Fs, Ya, an), Kt.sub(Is, Fn, an); var r = Fs.len(), n = Is.len(); if (!(r < 1e-3 || n < 1e-3)) { Fs.scale(1 / r), Is.scale(1 / n); var i = Fs.dot(Is), o = Math.cos(t); if (o < i) { - var a = XS(an.x, an.y, Fn.x, Fn.y, Ya.x, Ya.y, ZS, !1); - Ui.fromArray(ZS), Ui.scaleAndAdd(Is, a / Math.tan(Math.PI - t)); + var a = QS(an.x, an.y, Fn.x, Fn.y, Ya.x, Ya.y, JS, !1); + Ui.fromArray(JS), Ui.scaleAndAdd(Is, a / Math.tan(Math.PI - t)); var s = Fn.x !== an.x ? (Ui.x - an.x) / (Fn.x - an.x) : (Ui.y - an.y) / (Fn.y - an.y); if (isNaN(s)) return; - s < 0 ? Ut.copy(Ui, an) : s > 1 && Ut.copy(Ui, Fn), Ui.toArray(e[1]); + s < 0 ? Kt.copy(Ui, an) : s > 1 && Kt.copy(Ui, Fn), Ui.toArray(e[1]); } } } } -function PNe(e, t, r) { +function kNe(e, t, r) { if (r <= 180 && r > 0) { - r = r / 180 * Math.PI, Ya.fromArray(e[0]), an.fromArray(e[1]), Fn.fromArray(e[2]), Ut.sub(Fs, an, Ya), Ut.sub(Is, Fn, an); + r = r / 180 * Math.PI, Ya.fromArray(e[0]), an.fromArray(e[1]), Fn.fromArray(e[2]), Kt.sub(Fs, an, Ya), Kt.sub(Is, Fn, an); var n = Fs.len(), i = Is.len(); if (!(n < 1e-3 || i < 1e-3)) { Fs.scale(1 / n), Is.scale(1 / i); var o = Fs.dot(t), a = Math.cos(r); if (o < a) { - var s = XS(an.x, an.y, Fn.x, Fn.y, Ya.x, Ya.y, ZS, !1); - Ui.fromArray(ZS); + var s = QS(an.x, an.y, Fn.x, Fn.y, Ya.x, Ya.y, JS, !1); + Ui.fromArray(JS); var l = Math.PI / 2, c = Math.acos(Is.dot(t)), u = l + c - r; if (u >= l) - Ut.copy(Ui, Fn); + Kt.copy(Ui, Fn); else { Ui.scaleAndAdd(Is, s / Math.tan(Math.PI / 2 - u)); var d = Fn.x !== an.x ? (Ui.x - an.x) / (Fn.x - an.x) : (Ui.y - an.y) / (Fn.y - an.y); if (isNaN(d)) return; - d < 0 ? Ut.copy(Ui, an) : d > 1 && Ut.copy(Ui, Fn); + d < 0 ? Kt.copy(Ui, an) : d > 1 && Kt.copy(Ui, Fn); } Ui.toArray(e[1]); } @@ -65996,16 +66037,16 @@ function BE(e, t, r, n) { var s = n.getModel("lineStyle").getLineStyle(); i ? e.useStyle(s) : o.style = s; } -function TNe(e, t) { +function $Ne(e, t) { var r = t.smooth, n = t.points; if (n) if (e.moveTo(n[0][0], n[0][1]), r > 0 && n.length >= 3) { - var i = wl(n[0], n[1]), o = wl(n[1], n[2]); + var i = xl(n[0], n[1]), o = xl(n[1], n[2]); if (!i || !o) { e.lineTo(n[1][0], n[1][1]), e.lineTo(n[2][0], n[2][1]); return; } - var a = Math.min(i, o) * r, s = Qg([], n[1], n[0], a / i), l = Qg([], n[1], n[2], a / o), c = Qg([], s, l, 0.5); + var a = Math.min(i, o) * r, s = ev([], n[1], n[0], a / i), l = ev([], n[1], n[2], a / o), c = ev([], s, l, 0.5); e.bezierCurveTo(s[0], s[1], s[0], s[1], c[0], c[1]), e.bezierCurveTo(l[0], l[1], l[0], l[1], n[2][0], n[2][1]); } else for (var u = 1; u < n.length; u++) @@ -66017,8 +66058,8 @@ function FA(e, t, r) { n && e.removeTextGuideLine(); return; } - for (var o = t.normal, a = o.get("show"), s = i.ignore, l = 0; l < Kv.length; l++) { - var c = Kv[l], u = t[c], d = c === "normal"; + for (var o = t.normal, a = o.get("show"), s = i.ignore, l = 0; l < qv.length; l++) { + var c = qv[l], u = t[c], d = c === "normal"; if (u) { var h = u.get("show"), f = d ? s : $t(i.states[c] && i.states[c].ignore, s); if (f || !$t(h, a)) { @@ -66030,9 +66071,9 @@ function FA(e, t, r) { } } if (n) { - wt(n.style, r), n.style.fill = null; + xt(n.style, r), n.style.fill = null; var g = o.get("showAbove"), v = e.textGuideLineConfig = e.textGuideLineConfig || {}; - v.showAbove = g || !1, n.buildPath = TNe; + v.showAbove = g || !1, n.buildPath = $Ne; } } function NA(e, t) { @@ -66045,13 +66086,13 @@ function NA(e, t) { } return r; } -function nZ(e) { +function aZ(e) { for (var t = [], r = 0; r < e.length; r++) { var n = e[r]; if (!n.defaultAttr.ignore) { var i = n.label, o = i.getComputedTransform(), a = i.getBoundingRect(), s = !o || o[1] < 1e-5 && o[2] < 1e-5, l = i.style.margin || 0, c = a.clone(); c.applyTransform(o), c.x -= l / 2, c.y -= l / 2, c.width += l, c.height += l; - var u = s ? new IS(a, o) : null; + var u = s ? new OS(a, o) : null; t.push({ label: i, labelLine: n.labelLine, @@ -66068,7 +66109,7 @@ function nZ(e) { } return t; } -function iZ(e, t, r, n, i, o) { +function sZ(e, t, r, n, i, o) { var a = e.length; if (a < 2) return; @@ -66133,18 +66174,18 @@ function iZ(e, t, r, n, i, o) { } return c; } -function _Ne(e, t, r, n) { - return iZ(e, "x", "width", t, r, n); +function BNe(e, t, r, n) { + return sZ(e, "x", "width", t, r, n); } -function oZ(e, t, r, n) { - return iZ(e, "y", "height", t, r, n); +function lZ(e, t, r, n) { + return sZ(e, "y", "height", t, r, n); } -function aZ(e) { +function cZ(e) { var t = []; e.sort(function(g, v) { return v.priority - g.priority; }); - var r = new Kt(0, 0, 0, 0); + var r = new Yt(0, 0, 0, 0); function n(g) { if (!g.ignore) { var v = g.ensureState("emphasis"); @@ -66162,7 +66203,7 @@ function aZ(e) { h = !0; break; } - if (p.obb || (p.obb = new IS(p.localRect, p.transform)), d || (d = new IS(s, l)), d.intersect(p.obb)) { + if (p.obb || (p.obb = new OS(p.localRect, p.transform)), d || (d = new OS(s, l)), d.intersect(p.obb)) { h = !0; break; } @@ -66171,14 +66212,14 @@ function aZ(e) { h ? (n(c), u && n(u)) : (c.attr("ignore", o.defaultAttr.ignore), u && u.attr("ignore", o.defaultAttr.labelGuideIgnore), t.push(o)); } } -function MNe(e) { +function VNe(e) { if (e) { for (var t = [], r = 0; r < e.length; r++) t.push(e[r].slice()); return t; } } -function DNe(e, t) { +function HNe(e, t) { var r = e.label, n = t && t.getTextGuideLine(); return { dataIndex: e.dataIndex, @@ -66191,17 +66232,17 @@ function DNe(e, t) { // y: labelAttr.y, align: r.style.align, verticalAlign: r.style.verticalAlign, - labelLinePoints: MNe(n && n.shape.points) + labelLinePoints: VNe(n && n.shape.points) }; } -var eV = ["align", "verticalAlign", "width", "height", "fontSize"], zi = new Rl(), VE = yr(), INe = yr(); -function w0(e, t, r) { +var rV = ["align", "verticalAlign", "width", "height", "fontSize"], zi = new Pl(), VE = yr(), zNe = yr(); +function R0(e, t, r) { for (var n = 0; n < r.length; n++) { var i = r[n]; t[i] != null && (e[i] = t[i]); } } -var x0 = ["x", "y", "rotation"], ANe = ( +var P0 = ["x", "y", "rotation"], GNe = ( /** @class */ function() { function e() { @@ -66211,12 +66252,12 @@ var x0 = ["x", "y", "rotation"], ANe = ( this._labelList = [], this._chartViewList = []; }, e.prototype._addLabel = function(t, r, n, i, o) { var a = i.style, s = i.__hostTarget, l = s.textConfig || {}, c = i.getComputedTransform(), u = i.getBoundingRect().plain(); - Kt.applyTransform(u, u, c), c ? zi.setLocalTransform(c) : (zi.x = zi.y = zi.rotation = zi.originX = zi.originY = 0, zi.scaleX = zi.scaleY = 1), zi.rotation = Ho(zi.rotation); + Yt.applyTransform(u, u, c), c ? zi.setLocalTransform(c) : (zi.x = zi.y = zi.rotation = zi.originX = zi.originY = 0, zi.scaleX = zi.scaleY = 1), zi.rotation = Ho(zi.rotation); var d = i.__hostTarget, h; if (d) { h = d.getBoundingRect().plain(); var f = d.getComputedTransform(); - Kt.applyTransform(h, h, f); + Yt.applyTransform(h, h, f); } var p = h && d.getTextGuideLine(); this._labelList.push({ @@ -66260,7 +66301,7 @@ var x0 = ["x", "y", "rotation"], ANe = ( var r = this; this._chartViewList.push(t); var n = t.__model, i = n.get("labelLayout"); - (vt(i) || ar(i).length) && t.group.traverse(function(o) { + (mt(i) || ar(i).length) && t.group.traverse(function(o) { if (o.ignore) return !0; var a = o.getTextContent(), s = Ft(o); @@ -66270,12 +66311,12 @@ var x0 = ["x", "y", "rotation"], ANe = ( var r = t.getWidth(), n = t.getHeight(); function i(C, b) { return function() { - JB(C, b); + tV(C, b); }; } for (var o = 0; o < this._labelList.length; o++) { var a = this._labelList[o], s = a.label, l = s.__hostTarget, c = a.defaultAttr, u = void 0; - vt(a.layoutOption) ? u = a.layoutOption(DNe(a, l)) : u = a.layoutOption, u = u || {}, a.computedLayoutOption = u; + mt(a.layoutOption) ? u = a.layoutOption(HNe(a, l)) : u = a.layoutOption, u = u || {}, a.computedLayoutOption = u; var d = Math.PI / 180; l && l.setTextConfig({ // Force to set local false. @@ -66295,8 +66336,8 @@ var x0 = ["x", "y", "rotation"], ANe = ( } var p = VE(s); p.needsUpdateLabelLine = h, s.rotation = u.rotate != null ? u.rotate * d : c.rotation, s.scaleX = c.scaleX, s.scaleY = c.scaleY; - for (var g = 0; g < eV.length; g++) { - var v = eV[g]; + for (var g = 0; g < rV.length; g++) { + var v = rV[g]; s.setStyle(v, u[v] != null ? u[v] : c.style[v]); } if (u.draggable) { @@ -66312,16 +66353,16 @@ var x0 = ["x", "y", "rotation"], ANe = ( s.off("drag"), s.cursor = c.cursor; } }, e.prototype.layout = function(t) { - var r = t.getWidth(), n = t.getHeight(), i = nZ(this._labelList), o = Fr(i, function(l) { + var r = t.getWidth(), n = t.getHeight(), i = aZ(this._labelList), o = Nr(i, function(l) { return l.layoutOption.moveOverlap === "shiftX"; - }), a = Fr(i, function(l) { + }), a = Nr(i, function(l) { return l.layoutOption.moveOverlap === "shiftY"; }); - _Ne(o, 0, r), oZ(a, 0, n); - var s = Fr(i, function(l) { + BNe(o, 0, r), lZ(a, 0, n); + var s = Nr(i, function(l) { return l.layoutOption.hideOverlap; }); - aZ(s); + cZ(s); }, e.prototype.processLabelsOverall = function() { var t = this; z(this._chartViewList, function(r) { @@ -66342,7 +66383,7 @@ var x0 = ["x", "y", "rotation"], ANe = ( l.stroke = c[u]; } var d = s.getModel("labelLine"); - FA(t, NA(s), l), JB(t, d); + FA(t, NA(s), l), tV(t, d); } }, e.prototype._animateLabels = function(t, r) { var n = t.getTextContent(), i = t.getTextGuideLine(); @@ -66355,8 +66396,8 @@ var x0 = ["x", "y", "rotation"], ANe = ( if (a) { n.attr(a); var h = t.prevStates; - h && (Yt(h, "select") >= 0 && n.attr(o.oldLayoutSelect), Yt(h, "emphasis") >= 0 && n.attr(o.oldLayoutEmphasis)), br(n, c, r, l); - } else if (n.attr(c), !vp(n).valueAnimation) { + h && (qt(h, "select") >= 0 && n.attr(o.oldLayoutSelect), qt(h, "emphasis") >= 0 && n.attr(o.oldLayoutEmphasis)), br(n, c, r, l); + } else if (n.attr(c), !yp(n).valueAnimation) { var d = $t(n.style.opacity, 1); n.style.opacity = 0, un(n, { style: { @@ -66366,16 +66407,16 @@ var x0 = ["x", "y", "rotation"], ANe = ( } if (o.oldLayout = c, n.states.select) { var f = o.oldLayoutSelect = {}; - w0(f, c, x0), w0(f, n.states.select, x0); + R0(f, c, P0), R0(f, n.states.select, P0); } if (n.states.emphasis) { var p = o.oldLayoutEmphasis = {}; - w0(p, c, x0), w0(p, n.states.emphasis, x0); + R0(p, c, P0), R0(p, n.states.emphasis, P0); } - eq(n, l, u, r, r); + nq(n, l, u, r, r); } if (i && !i.ignore && !i.invisible) { - var o = INe(i), a = o.oldLayout, g = { + var o = zNe(i), a = o.oldLayout, g = { points: i.shape.points }; a ? (i.attr({ @@ -66391,10 +66432,10 @@ var x0 = ["x", "y", "rotation"], ANe = ( }, e; }() ), HE = yr(); -function ONe(e) { +function WNe(e) { e.registerUpdateLifecycle("series:beforeupdate", function(t, r, n) { var i = HE(r).labelManager; - i || (i = HE(r).labelManager = new ANe()), i.clearLabels(); + i || (i = HE(r).labelManager = new GNe()), i.clearLabels(); }), e.registerUpdateLifecycle("series:layoutlabels", function(t, r, n) { var i = HE(r).labelManager; n.updatedSeries.forEach(function(o) { @@ -66402,7 +66443,7 @@ function ONe(e) { }), i.updateLayoutConfig(r), i.layout(r), i.processLabelsOverall(); }); } -var zE = Math.sin, GE = Math.cos, sZ = Math.PI, Mu = Math.PI * 2, LNe = 180 / sZ, lZ = function() { +var zE = Math.sin, GE = Math.cos, uZ = Math.PI, Mu = Math.PI * 2, jNe = 180 / uZ, dZ = function() { function e() { } return e.prototype.reset = function(t) { @@ -66419,10 +66460,10 @@ var zE = Math.sin, GE = Math.cos, sZ = Math.PI, Mu = Math.PI * 2, LNe = 180 / sZ this.ellipse(t, r, n, n, 0, i, o, a); }, e.prototype.ellipse = function(t, r, n, i, o, a, s, l) { var c = s - a, u = !l, d = Math.abs(c), h = wc(d - Mu) || (u ? c >= Mu : -c >= Mu), f = c > 0 ? c % Mu : c % Mu + Mu, p = !1; - h ? p = !0 : wc(d) ? p = !1 : p = f >= sZ == !!u; + h ? p = !0 : wc(d) ? p = !1 : p = f >= uZ == !!u; var g = t + n * GE(a), v = r + i * zE(a); this._start && this._add("M", g, v); - var m = Math.round(o * LNe); + var m = Math.round(o * jNe); if (h) { var y = 1 / this._p, C = (u ? 1 : -1) * (Mu - y); this._add("A", n, i, m, 1, +u, t + n * GE(a + C), r + i * zE(a + C)), y > 0.01 && this._add("A", n, i, m, 0, +u, g, v); @@ -66449,51 +66490,51 @@ var zE = Math.sin, GE = Math.cos, sZ = Math.PI, Mu = Math.PI * 2, LNe = 180 / sZ }, e.prototype.getStr = function() { return this._str; }, e; -}(), kA = "none", FNe = Math.round; -function NNe(e) { +}(), kA = "none", UNe = Math.round; +function KNe(e) { var t = e.fill; return t != null && t !== kA; } -function kNe(e) { +function YNe(e) { var t = e.stroke; return t != null && t !== kA; } -var vM = ["lineCap", "miterLimit", "lineJoin"], $Ne = Fe(vM, function(e) { +var vM = ["lineCap", "miterLimit", "lineJoin"], qNe = Fe(vM, function(e) { return "stroke-" + e.toLowerCase(); }); -function BNe(e, t, r, n) { +function XNe(e, t, r, n) { var i = t.opacity == null ? 1 : t.opacity; - if (r instanceof yi) { + if (r instanceof Ci) { e("opacity", i); return; } - if (NNe(t)) { - var o = Uv(t.fill); + if (KNe(t)) { + var o = Yv(t.fill); e("fill", o.color); var a = t.fillOpacity != null ? t.fillOpacity * o.opacity * i : o.opacity * i; a < 1 && e("fill-opacity", a); } else e("fill", kA); - if (kNe(t)) { - var s = Uv(t.stroke); + if (YNe(t)) { + var s = Yv(t.stroke); e("stroke", s.color); var l = t.strokeNoScale ? r.getLineScale() : 1, c = l ? (t.lineWidth || 0) / l : 0, u = t.strokeOpacity != null ? t.strokeOpacity * s.opacity * i : s.opacity * i, d = t.strokeFirst; if (c !== 1 && e("stroke-width", c), d && e("paint-order", d ? "stroke" : "fill"), u < 1 && e("stroke-opacity", u), t.lineDash) { var h = mA(r), f = h[0], p = h[1]; - f && (p = FNe(p || 0), e("stroke-dasharray", f.join(",")), (p || n) && e("stroke-dashoffset", p)); + f && (p = UNe(p || 0), e("stroke-dasharray", f.join(",")), (p || n) && e("stroke-dashoffset", p)); } for (var g = 0; g < vM.length; g++) { var v = vM[g]; - if (t[v] !== MS[v]) { - var m = t[v] || MS[v]; - m && e($Ne[g], m); + if (t[v] !== IS[v]) { + var m = t[v] || IS[v]; + m && e(qNe[g], m); } } } } -var cZ = "http://www.w3.org/2000/svg", uZ = "http://www.w3.org/1999/xlink", VNe = "http://www.w3.org/2000/xmlns/", HNe = "http://www.w3.org/XML/1998/namespace", tV = "ecmeta_"; -function dZ(e) { - return document.createElementNS(cZ, e); +var hZ = "http://www.w3.org/2000/svg", fZ = "http://www.w3.org/1999/xlink", ZNe = "http://www.w3.org/2000/xmlns/", QNe = "http://www.w3.org/XML/1998/namespace", nV = "ecmeta_"; +function pZ(e) { + return document.createElementNS(hZ, e); } function ni(e, t, r, n, i) { return { @@ -66504,7 +66545,7 @@ function ni(e, t, r, n, i) { key: t }; } -function zNe(e, t) { +function JNe(e, t) { var r = []; if (t) for (var n in t) { @@ -66513,7 +66554,7 @@ function zNe(e, t) { } return "<" + e + " " + r.join(" ") + ">"; } -function GNe(e) { +function eke(e) { return ""; } function $A(e, t) { @@ -66522,13 +66563,13 @@ function $A(e, t) { ` : ""; function n(i) { var o = i.children, a = i.tag, s = i.attrs, l = i.text; - return zNe(a, s) + (a !== "style" ? Ki(l) : l || "") + (o ? "" + r + Fe(o, function(c) { + return JNe(a, s) + (a !== "style" ? Ki(l) : l || "") + (o ? "" + r + Fe(o, function(c) { return n(c); - }).join(r) + r : "") + GNe(a); + }).join(r) + r : "") + eke(a); } return n(e); } -function WNe(e, t, r) { +function tke(e, t, r) { r = r || {}; var n = r.newline ? ` ` : "", i = " {" + n, o = n + "}", a = Fe(ar(e), function(l) { @@ -66563,22 +66604,22 @@ function mM(e) { clipPathIdx: 0 }; } -function rV(e, t, r, n) { +function iV(e, t, r, n) { return ni("svg", "root", { width: e, height: t, - xmlns: cZ, - "xmlns:xlink": uZ, + xmlns: hZ, + "xmlns:xlink": fZ, version: "1.1", baseProfile: "full", viewBox: n ? "0 0 " + e + " " + t : !1 }, r); } -var jNe = 0; -function hZ() { - return jNe++; +var rke = 0; +function gZ() { + return rke++; } -var nV = { +var oV = { cubicIn: "0.32,0,0.67,0", cubicOut: "0.33,1,0.68,1", cubicInOut: "0.65,0,0.35,1", @@ -66601,27 +66642,27 @@ var nV = { circularOut: "0,0.55,0.45,1", circularInOut: "0.85,0,0.15,1" }, Lu = "transform-origin"; -function UNe(e, t, r) { +function nke(e, t, r) { var n = Pe({}, e.shape); Pe(n, t), e.buildPath(r, n); - var i = new lZ(); - return i.reset(NK(e)), r.rebuildPath(i, 1), i.generateStr(), i.getStr(); + var i = new dZ(); + return i.reset(BK(e)), r.rebuildPath(i, 1), i.generateStr(), i.getStr(); } -function KNe(e, t) { +function ike(e, t) { var r = t.originX, n = t.originY; (r || n) && (e[Lu] = r + "px " + n + "px"); } -var YNe = { +var oke = { fill: "fill", opacity: "opacity", lineWidth: "stroke-width", lineDashOffset: "stroke-dashoffset" }; -function fZ(e, t) { +function vZ(e, t) { var r = t.zrId + "-ani-" + t.cssAnimIdx++; return t.cssAnims[r] = e, r; } -function qNe(e, t, r) { +function ake(e, t, r) { var n = e.shape.paths, i = {}, o, a; if (z(n, function(l) { var c = mM(r.zrId); @@ -66641,17 +66682,17 @@ function qNe(e, t, r) { } }), !!o) { t.d = !1; - var s = fZ(i, r); + var s = vZ(i, r); return o.replace(a, s); } } -function iV(e) { - return Je(e) ? nV[e] ? "cubic-bezier(" + nV[e] + ")" : _2(e) ? e : "" : ""; +function aV(e) { + return Je(e) ? oV[e] ? "cubic-bezier(" + oV[e] + ")" : _I(e) ? e : "" : ""; } function o1(e, t, r, n) { var i = e.animators, o = i.length, a = []; if (e instanceof Vw) { - var s = qNe(e, t, r); + var s = ake(e, t, r); if (s) a.push(s); else if (!o) @@ -66659,22 +66700,22 @@ function o1(e, t, r, n) { } else if (!o) return; for (var l = {}, c = 0; c < o; c++) { - var u = i[c], d = [u.getMaxTime() / 1e3 + "s"], h = iV(u.getClip().easing), f = u.getDelay(); + var u = i[c], d = [u.getMaxTime() / 1e3 + "s"], h = aV(u.getClip().easing), f = u.getDelay(); h ? d.push(h) : d.push("linear"), f && d.push(f / 1e3 + "s"), u.getLoop() && d.push("infinite"); var p = d.join(" "); l[p] = l[p] || [p, []], l[p][1].push(u); } function g(y) { var C = y[1], b = C.length, w = {}, x = {}, E = {}, R = "animation-timing-function"; - function P(J, te, Q) { + function P(J, re, Q) { for (var Y = J.getTracks(), K = J.getMaxTime(), ae = 0; ae < Y.length; ae++) { var G = Y[ae]; if (G.needsAnimate()) { - var re = G.keyframes, le = G.propName; + var ne = G.keyframes, le = G.propName; if (Q && (le = Q(le)), le) - for (var ue = 0; ue < re.length; ue++) { - var he = re[ue], fe = Math.round(he.time / K * 100) + "%", de = iV(he.easing), pe = he.rawValue; - (Je(pe) || Cr(pe)) && (te[fe] = te[fe] || {}, te[fe][le] = he.rawValue, de && (te[fe][R] = de)); + for (var ue = 0; ue < ne.length; ue++) { + var he = ne[ue], fe = Math.round(he.time / K * 100) + "%", de = aV(he.easing), pe = he.rawValue; + (Je(pe) || Cr(pe)) && (re[fe] = re[fe] || {}, re[fe][le] = he.rawValue, de && (re[fe][R] = de)); } } } @@ -66685,11 +66726,11 @@ function o1(e, t, r, n) { } for (var A in w) { var M = {}; - HK(M, e), Pe(M, w[A]); - var O = kK(M), L = w[A][R]; + WK(M, e), Pe(M, w[A]); + var O = VK(M), L = w[A][R]; E[A] = O ? { transform: O - } : {}, KNe(E[A], M), L && (E[A][R] = L); + } : {}, ike(E[A], M), L && (E[A][R] = L); } var N, F = !0; for (var A in x) { @@ -66697,7 +66738,7 @@ function o1(e, t, r, n) { var $ = !N, L = x[A][R]; $ && (N = new Ys()); var I = N.len(); - N.reset(), E[A].d = UNe(e, x[A], N); + N.reset(), E[A].d = nke(e, x[A], N); var V = N.len(); if (!$ && I !== V) { F = !1; @@ -66712,7 +66753,7 @@ function o1(e, t, r, n) { for (var T = 0; T < b; T++) { var _ = C[T], D = _.targetName; D === "style" && P(_, E, function(Y) { - return YNe[Y]; + return oke[Y]; }); } for (var H = ar(E), B = !0, W, T = 1; T < H.length; T++) { @@ -66728,10 +66769,10 @@ function o1(e, t, r, n) { E[A][Lu] && delete E[A][Lu]; t[Lu] = W; } - if (Fr(H, function(J) { + if (Nr(H, function(J) { return ar(E[J]).length > 0; }).length) { - var q = fZ(E, r); + var q = vZ(E, r); return q + " " + y[0] + " both"; } } @@ -66740,24 +66781,24 @@ function o1(e, t, r, n) { s && a.push(s); } if (a.length) { - var m = r.zrId + "-cls-" + hZ(); + var m = r.zrId + "-cls-" + gZ(); r.cssNodes["." + m] = { animation: a.join(",") }, t.class = m; } } -function XNe(e, t, r) { +function ske(e, t, r) { if (!e.ignore) if (e.isSilent()) { var n = { "pointer-events": "none" }; - oV(n, t, r); + sV(n, t, r); } else { var i = e.states.emphasis && e.states.emphasis.style ? e.states.emphasis.style : {}, o = i.fill; if (!o) { var a = e.style && e.style.fill, s = e.states.select && e.states.select.style && e.states.select.style.fill, l = e.currentStates.indexOf("select") >= 0 && s || a; - l && (o = ES(l)); + l && (o = PS(l)); } var c = i.lineWidth; if (c) { @@ -66767,77 +66808,77 @@ function XNe(e, t, r) { var n = { cursor: "pointer" }; - o && (n.fill = o), i.stroke && (n.stroke = i.stroke), c && (n["stroke-width"] = c), oV(n, t, r); + o && (n.fill = o), i.stroke && (n.stroke = i.stroke), c && (n["stroke-width"] = c), sV(n, t, r); } } -function oV(e, t, r, n) { +function sV(e, t, r, n) { var i = JSON.stringify(e), o = r.cssStyleCache[i]; - o || (o = r.zrId + "-cls-" + hZ(), r.cssStyleCache[i] = o, r.cssNodes["." + o + ":hover"] = e), t.class = t.class ? t.class + " " + o : o; + o || (o = r.zrId + "-cls-" + gZ(), r.cssStyleCache[i] = o, r.cssNodes["." + o + ":hover"] = e), t.class = t.class ? t.class + " " + o : o; } -var rm = Math.round; -function pZ(e) { +var im = Math.round; +function mZ(e) { return e && Je(e.src); } -function gZ(e) { - return e && vt(e.toDataURL); +function yZ(e) { + return e && mt(e.toDataURL); } function BA(e, t, r, n) { - BNe(function(i, o) { + XNe(function(i, o) { var a = i === "fill" || i === "stroke"; - a && FK(o) ? mZ(t, e, i, n) : a && D2(o) ? yZ(r, e, i, n) : a && o === "none" ? e[i] = "transparent" : e[i] = o; - }, t, r, !1), nke(r, e, n); + a && $K(o) ? SZ(t, e, i, n) : a && DI(o) ? bZ(r, e, i, n) : a && o === "none" ? e[i] = "transparent" : e[i] = o; + }, t, r, !1), pke(r, e, n); } function VA(e, t) { - var r = jK(t); + var r = YK(t); r && (r.each(function(n, i) { - n != null && (e[(tV + i).toLowerCase()] = n + ""); - }), t.isSilent() && (e[tV + "silent"] = "true")); + n != null && (e[(nV + i).toLowerCase()] = n + ""); + }), t.isSilent() && (e[nV + "silent"] = "true")); } -function aV(e) { +function lV(e) { return wc(e[0] - 1) && wc(e[1]) && wc(e[2]) && wc(e[3] - 1); } -function ZNe(e) { +function lke(e) { return wc(e[4]) && wc(e[5]); } function HA(e, t, r) { - if (t && !(ZNe(t) && aV(t))) { + if (t && !(lke(t) && lV(t))) { var n = 1e4; - e.transform = aV(t) ? "translate(" + rm(t[4] * n) / n + " " + rm(t[5] * n) / n + ")" : GMe(t); + e.transform = lV(t) ? "translate(" + im(t[4] * n) / n + " " + im(t[5] * n) / n + ")" : e2e(t); } } -function sV(e, t, r) { +function cV(e, t, r) { for (var n = e.points, i = [], o = 0; o < n.length; o++) - i.push(rm(n[o][0] * r) / r), i.push(rm(n[o][1] * r) / r); + i.push(im(n[o][0] * r) / r), i.push(im(n[o][1] * r) / r); t.points = i.join(" "); } -function lV(e) { +function uV(e) { return !e.smooth; } -function QNe(e) { +function cke(e) { var t = Fe(e, function(r) { return typeof r == "string" ? [r, r] : r; }); return function(r, n, i) { for (var o = 0; o < t.length; o++) { var a = t[o], s = r[a[0]]; - s != null && (n[a[1]] = rm(s * i) / i); + s != null && (n[a[1]] = im(s * i) / i); } }; } -var JNe = { - circle: [QNe(["cx", "cy", "r"])], - polyline: [sV, lV], - polygon: [sV, lV] +var uke = { + circle: [cke(["cx", "cy", "r"])], + polyline: [cV, uV], + polygon: [cV, uV] }; -function eke(e) { +function dke(e) { for (var t = e.animators, r = 0; r < t.length; r++) if (t[r].targetName === "shape") return !0; return !1; } -function vZ(e, t) { - var r = e.style, n = e.shape, i = JNe[e.type], o = {}, a = t.animation, s = "path", l = e.style.strokePercent, c = t.compress && NK(e) || 4; - if (i && !t.willUpdate && !(i[1] && !i[1](n)) && !(a && eke(e)) && !(l < 1)) { +function CZ(e, t) { + var r = e.style, n = e.shape, i = uke[e.type], o = {}, a = t.animation, s = "path", l = e.style.strokePercent, c = t.compress && BK(e) || 4; + if (i && !t.willUpdate && !(i[1] && !i[1](n)) && !(a && dke(e)) && !(l < 1)) { s = e.type; var u = Math.pow(10, c); i[0](n, o, u); @@ -66847,13 +66888,13 @@ function vZ(e, t) { var h = e.path; d && (h.beginPath(), e.buildPath(h, e.shape), e.pathUpdated()); var f = h.getVersion(), p = e, g = p.__svgPathBuilder; - (p.__svgPathVersion !== f || !g || l !== p.__svgPathStrokePercent) && (g || (g = p.__svgPathBuilder = new lZ()), g.reset(c), h.rebuildPath(g, l), g.generateStr(), p.__svgPathVersion = f, p.__svgPathStrokePercent = l), o.d = g.getStr(); + (p.__svgPathVersion !== f || !g || l !== p.__svgPathStrokePercent) && (g || (g = p.__svgPathBuilder = new dZ()), g.reset(c), h.rebuildPath(g, l), g.generateStr(), p.__svgPathVersion = f, p.__svgPathStrokePercent = l), o.d = g.getStr(); } - return HA(o, e.transform), BA(o, r, e, t), VA(o, e), t.animation && o1(e, o, t), t.emphasis && XNe(e, o, t), ni(s, e.id + "", o); + return HA(o, e.transform), BA(o, r, e, t), VA(o, e), t.animation && o1(e, o, t), t.emphasis && ske(e, o, t), ni(s, e.id + "", o); } -function tke(e, t) { +function hke(e, t) { var r = e.style, n = r.image; - if (n && !Je(n) && (pZ(n) ? n = n.src : gZ(n) && (n = n.toDataURL())), !!n) { + if (n && !Je(n) && (mZ(n) ? n = n.src : yZ(n) && (n = n.toDataURL())), !!n) { var i = r.x || 0, o = r.y || 0, a = r.width, s = r.height, l = { href: n, width: a, @@ -66862,41 +66903,41 @@ function tke(e, t) { return i && (l.x = i), o && (l.y = o), HA(l, e.transform), BA(l, r, e, t), VA(l, e), t.animation && o1(e, l, t), ni("image", e.id + "", l); } } -function rke(e, t) { +function fke(e, t) { var r = e.style, n = r.text; if (n != null && (n += ""), !(!n || isNaN(r.x) || isNaN(r.y))) { - var i = r.font || Vc, o = r.x || 0, a = jMe(r.y || 0, _w(i), r.textBaseline), s = WMe[r.textAlign] || r.textAlign, l = { + var i = r.font || Vc, o = r.x || 0, a = r2e(r.y || 0, _w(i), r.textBaseline), s = t2e[r.textAlign] || r.textAlign, l = { "dominant-baseline": "central", "text-anchor": s }; - if (yY(r)) { - var c = "", u = r.fontStyle, d = mY(r.fontSize); + if (bY(r)) { + var c = "", u = r.fontStyle, d = SY(r.fontSize); if (!parseFloat(d)) return; - var h = r.fontFamily || sK, f = r.fontWeight; + var h = r.fontFamily || uK, f = r.fontWeight; c += "font-size:" + d + ";font-family:" + h + ";", u && u !== "normal" && (c += "font-style:" + u + ";"), f && f !== "normal" && (c += "font-weight:" + f + ";"), l.style = c; } else l.style = "font: " + i; return n.match(/\s/) && (l["xml:space"] = "preserve"), o && (l.x = o), a && (l.y = a), HA(l, e.transform), BA(l, r, e, t), VA(l, e), t.animation && o1(e, l, t), ni("text", e.id + "", l, void 0, n); } } -function cV(e, t) { +function dV(e, t) { if (e instanceof nr) - return vZ(e, t); - if (e instanceof yi) - return tke(e, t); - if (e instanceof Nf) - return rke(e, t); + return CZ(e, t); + if (e instanceof Ci) + return hke(e, t); + if (e instanceof $f) + return fke(e, t); } -function nke(e, t, r) { +function pke(e, t, r) { var n = e.style; - if (UMe(n)) { - var i = KMe(e), o = r.shadowCache, a = o[i]; + if (n2e(n)) { + var i = i2e(e), o = r.shadowCache, a = o[i]; if (!a) { var s = e.getGlobalScale(), l = s[0], c = s[1]; if (!l || !c) return; - var u = n.shadowOffsetX || 0, d = n.shadowOffsetY || 0, h = n.shadowBlur, f = Uv(n.shadowColor), p = f.opacity, g = f.color, v = h / 2 / l, m = h / 2 / c, y = v + " " + m; + var u = n.shadowOffsetX || 0, d = n.shadowOffsetY || 0, h = n.shadowBlur, f = Yv(n.shadowColor), p = f.opacity, g = f.color, v = h / 2 / l, m = h / 2 / c, y = v + " " + m; a = r.zrId + "-s" + r.shadowIdx++, r.defs[a] = ni("filter", a, { id: a, x: "-100%", @@ -66916,20 +66957,20 @@ function nke(e, t, r) { t.filter = Tw(a); } } -function mZ(e, t, r, n) { +function SZ(e, t, r, n) { var i = e[r], o, a = { gradientUnits: i.global ? "userSpaceOnUse" : "objectBoundingBox" }; - if (OK(i)) + if (NK(i)) o = "linearGradient", a.x1 = i.x, a.y1 = i.y, a.x2 = i.x2, a.y2 = i.y2; - else if (LK(i)) + else if (kK(i)) o = "radialGradient", a.cx = $t(i.x, 0.5), a.cy = $t(i.y, 0.5), a.r = $t(i.r, 0.5); else { process.env.NODE_ENV !== "production" && ya("Illegal gradient type."); return; } for (var s = i.colorStops, l = [], c = 0, u = s.length; c < u; ++c) { - var d = R_(s[c].offset) * 100 + "%", h = s[c].color, f = Uv(h), p = f.color, g = f.opacity, v = { + var d = R_(s[c].offset) * 100 + "%", h = s[c].color, f = Yv(h), p = f.color, g = f.opacity, v = { offset: d }; v["stop-color"] = p, g < 1 && (v["stop-opacity"] = g), l.push(ni("stop", c + "", v)); @@ -66937,20 +66978,20 @@ function mZ(e, t, r, n) { var m = ni(o, "", a, l), y = $A(m), C = n.gradientCache, b = C[y]; b || (b = n.zrId + "-g" + n.gradientIdx++, C[y] = b, a.id = b, n.defs[b] = ni(o, b, a, l)), t[r] = Tw(b); } -function yZ(e, t, r, n) { +function bZ(e, t, r, n) { var i = e.style[r], o = e.getBoundingRect(), a = {}, s = i.repeat, l = s === "no-repeat", c = s === "repeat-x", u = s === "repeat-y", d; - if (AK(i)) { + if (FK(i)) { var h = i.imageWidth, f = i.imageHeight, p = void 0, g = i.image; - if (Je(g) ? p = g : pZ(g) ? p = g.src : gZ(g) && (p = g.toDataURL()), typeof Image > "u") { + if (Je(g) ? p = g : mZ(g) ? p = g.src : yZ(g) && (p = g.toDataURL()), typeof Image > "u") { var v = "Image width/height must been given explictly in svg-ssr renderer."; - xt(h, v), xt(f, v); + Et(h, v), Et(f, v); } else if (h == null || f == null) { var m = function(T, _) { if (T) { var D = T.elm, A = h || _.width, M = f || _.height; T.tag === "pattern" && (c ? (M = 1, A /= o.width) : u && (A = 1, M /= o.height)), T.attrs.width = A, T.attrs.height = M, D && (D.setAttribute("width", A), D.setAttribute("height", M)); } - }, y = $2(p, null, e, function(T) { + }, y = $I(p, null, e, function(T) { l || m(x, T), m(d, T); }); y && y.width && y.height && (h = h || y.width, f = f || y.height); @@ -66964,91 +67005,91 @@ function yZ(e, t, r, n) { if (d) { var C, b; l ? C = b = 1 : c ? (b = 1, C = a.width / o.width) : u ? (C = 1, b = a.height / o.height) : a.patternUnits = "userSpaceOnUse", C != null && !isNaN(C) && (a.width = C), b != null && !isNaN(b) && (a.height = b); - var w = kK(i); + var w = VK(i); w && (a.patternTransform = w); var x = ni("pattern", "", a, [d]), E = $A(x), R = n.patternCache, P = R[E]; P || (P = n.zrId + "-p" + n.patternIdx++, R[E] = P, a.id = P, x = n.defs[P] = ni("pattern", P, a, [d])), t[r] = Tw(P); } } -function ike(e, t, r) { +function gke(e, t, r) { var n = r.clipPathCache, i = r.defs, o = n[e.id]; if (!o) { o = r.zrId + "-c" + r.clipPathIdx++; var a = { id: o }; - n[e.id] = o, i[o] = ni("clipPath", o, a, [vZ(e, r)]); + n[e.id] = o, i[o] = ni("clipPath", o, a, [CZ(e, r)]); } t["clip-path"] = Tw(o); } -function uV(e) { +function hV(e) { return document.createTextNode(e); } function Wu(e, t, r) { e.insertBefore(t, r); } -function dV(e, t) { +function fV(e, t) { e.removeChild(t); } -function hV(e, t) { +function pV(e, t) { e.appendChild(t); } -function CZ(e) { +function wZ(e) { return e.parentNode; } -function SZ(e) { +function xZ(e) { return e.nextSibling; } function WE(e, t) { e.textContent = t; } -var fV = 58, oke = 120, ake = ni("", ""); +var gV = 58, vke = 120, mke = ni("", ""); function yM(e) { return e === void 0; } function Ts(e) { return e !== void 0; } -function ske(e, t, r) { +function yke(e, t, r) { for (var n = {}, i = t; i <= r; ++i) { var o = e[i].key; o !== void 0 && (process.env.NODE_ENV !== "production" && n[o] != null && console.error("Duplicate key " + o), n[o] = i); } return n; } -function Ig(e, t) { +function Og(e, t) { var r = e.key === t.key, n = e.tag === t.tag; return n && r; } -function nm(e) { +function om(e) { var t, r = e.children, n = e.tag; if (Ts(n)) { - var i = e.elm = dZ(n); - if (zA(ake, e), Ie(r)) + var i = e.elm = pZ(n); + if (zA(mke, e), Ae(r)) for (t = 0; t < r.length; ++t) { var o = r[t]; - o != null && hV(i, nm(o)); + o != null && pV(i, om(o)); } - else Ts(e.text) && !St(e.text) && hV(i, uV(e.text)); + else Ts(e.text) && !bt(e.text) && pV(i, hV(e.text)); } else - e.elm = uV(e.text); + e.elm = hV(e.text); return e.elm; } -function bZ(e, t, r, n, i) { +function EZ(e, t, r, n, i) { for (; n <= i; ++n) { var o = r[n]; - o != null && Wu(e, nm(o), t); + o != null && Wu(e, om(o), t); } } -function QS(e, t, r, n) { +function eb(e, t, r, n) { for (; r <= n; ++r) { var i = t[r]; if (i != null) if (Ts(i.tag)) { - var o = CZ(i.elm); - dV(o, i.elm); + var o = wZ(i.elm); + fV(o, i.elm); } else - dV(e, i.elm); + fV(e, i.elm); } } function zA(e, t) { @@ -67056,36 +67097,36 @@ function zA(e, t) { if (i !== o) { for (r in o) { var a = o[r], s = i[r]; - s !== a && (a === !0 ? n.setAttribute(r, "") : a === !1 ? n.removeAttribute(r) : r === "style" ? n.style.cssText = a : r.charCodeAt(0) !== oke ? n.setAttribute(r, a) : r === "xmlns:xlink" || r === "xmlns" ? n.setAttributeNS(VNe, r, a) : r.charCodeAt(3) === fV ? n.setAttributeNS(HNe, r, a) : r.charCodeAt(5) === fV ? n.setAttributeNS(uZ, r, a) : n.setAttribute(r, a)); + s !== a && (a === !0 ? n.setAttribute(r, "") : a === !1 ? n.removeAttribute(r) : r === "style" ? n.style.cssText = a : r.charCodeAt(0) !== vke ? n.setAttribute(r, a) : r === "xmlns:xlink" || r === "xmlns" ? n.setAttributeNS(ZNe, r, a) : r.charCodeAt(3) === gV ? n.setAttributeNS(QNe, r, a) : r.charCodeAt(5) === gV ? n.setAttributeNS(fZ, r, a) : n.setAttribute(r, a)); } for (r in i) r in o || n.removeAttribute(r); } } -function lke(e, t, r) { +function Cke(e, t, r) { for (var n = 0, i = 0, o = t.length - 1, a = t[0], s = t[o], l = r.length - 1, c = r[0], u = r[l], d, h, f, p; n <= o && i <= l; ) - a == null ? a = t[++n] : s == null ? s = t[--o] : c == null ? c = r[++i] : u == null ? u = r[--l] : Ig(a, c) ? (Kh(a, c), a = t[++n], c = r[++i]) : Ig(s, u) ? (Kh(s, u), s = t[--o], u = r[--l]) : Ig(a, u) ? (Kh(a, u), Wu(e, a.elm, SZ(s.elm)), a = t[++n], u = r[--l]) : Ig(s, c) ? (Kh(s, c), Wu(e, s.elm, a.elm), s = t[--o], c = r[++i]) : (yM(d) && (d = ske(t, n, o)), h = d[c.key], yM(h) ? Wu(e, nm(c), a.elm) : (f = t[h], f.tag !== c.tag ? Wu(e, nm(c), a.elm) : (Kh(f, c), t[h] = void 0, Wu(e, f.elm, a.elm))), c = r[++i]); - (n <= o || i <= l) && (n > o ? (p = r[l + 1] == null ? null : r[l + 1].elm, bZ(e, p, r, i, l)) : QS(e, t, n, o)); + a == null ? a = t[++n] : s == null ? s = t[--o] : c == null ? c = r[++i] : u == null ? u = r[--l] : Og(a, c) ? (Kh(a, c), a = t[++n], c = r[++i]) : Og(s, u) ? (Kh(s, u), s = t[--o], u = r[--l]) : Og(a, u) ? (Kh(a, u), Wu(e, a.elm, xZ(s.elm)), a = t[++n], u = r[--l]) : Og(s, c) ? (Kh(s, c), Wu(e, s.elm, a.elm), s = t[--o], c = r[++i]) : (yM(d) && (d = yke(t, n, o)), h = d[c.key], yM(h) ? Wu(e, om(c), a.elm) : (f = t[h], f.tag !== c.tag ? Wu(e, om(c), a.elm) : (Kh(f, c), t[h] = void 0, Wu(e, f.elm, a.elm))), c = r[++i]); + (n <= o || i <= l) && (n > o ? (p = r[l + 1] == null ? null : r[l + 1].elm, EZ(e, p, r, i, l)) : eb(e, t, n, o)); } function Kh(e, t) { var r = t.elm = e.elm, n = e.children, i = t.children; - e !== t && (zA(e, t), yM(t.text) ? Ts(n) && Ts(i) ? n !== i && lke(r, n, i) : Ts(i) ? (Ts(e.text) && WE(r, ""), bZ(r, null, i, 0, i.length - 1)) : Ts(n) ? QS(r, n, 0, n.length - 1) : Ts(e.text) && WE(r, "") : e.text !== t.text && (Ts(n) && QS(r, n, 0, n.length - 1), WE(r, t.text))); + e !== t && (zA(e, t), yM(t.text) ? Ts(n) && Ts(i) ? n !== i && Cke(r, n, i) : Ts(i) ? (Ts(e.text) && WE(r, ""), EZ(r, null, i, 0, i.length - 1)) : Ts(n) ? eb(r, n, 0, n.length - 1) : Ts(e.text) && WE(r, "") : e.text !== t.text && (Ts(n) && eb(r, n, 0, n.length - 1), WE(r, t.text))); } -function cke(e, t) { - if (Ig(e, t)) +function Ske(e, t) { + if (Og(e, t)) Kh(e, t); else { - var r = e.elm, n = CZ(r); - nm(t), n !== null && (Wu(n, t.elm, SZ(r)), QS(n, [e], 0, 0)); + var r = e.elm, n = wZ(r); + om(t), n !== null && (Wu(n, t.elm, xZ(r)), eb(n, [e], 0, 0)); } return t; } -var uke = 0, dke = function() { +var bke = 0, wke = function() { function e(t, r, n) { - if (this.type = "svg", this.refreshHover = pV("refreshHover"), this.configLayer = pV("configLayer"), this.storage = r, this._opts = n = Pe({}, n), this.root = t, this._id = "zr" + uke++, this._oldVNode = rV(n.width, n.height), t && !n.ssr) { + if (this.type = "svg", this.refreshHover = vV("refreshHover"), this.configLayer = vV("configLayer"), this.storage = r, this._opts = n = Pe({}, n), this.root = t, this._id = "zr" + bke++, this._oldVNode = iV(n.width, n.height), t && !n.ssr) { var i = this._viewport = document.createElement("div"); i.style.cssText = "position:relative;overflow:hidden"; - var o = this._svgDom = this._oldVNode.elm = dZ("svg"); + var o = this._svgDom = this._oldVNode.elm = pZ("svg"); zA(null, this._oldVNode), i.appendChild(o), t.appendChild(i); } this.resize(n.width, n.height); @@ -67108,15 +67149,15 @@ var uke = 0, dke = function() { var t = this.renderToVNode({ willUpdate: !0 }); - t.attrs.style = "position:absolute;left:0;top:0;user-select:none", cke(this._oldVNode, t), this._oldVNode = t; + t.attrs.style = "position:absolute;left:0;top:0;user-select:none", Ske(this._oldVNode, t), this._oldVNode = t; } }, e.prototype.renderOneToVNode = function(t) { - return cV(t, mM(this._id)); + return dV(t, mM(this._id)); }, e.prototype.renderToVNode = function(t) { t = t || {}; var r = this.storage.getDisplayList(!0), n = this._width, i = this._height, o = mM(this._id); o.animation = t.animation, o.willUpdate = t.willUpdate, o.compress = t.compress, o.emphasis = t.emphasis; - var a = [], s = this._bgVNode = hke(n, i, this._backgroundColor, o); + var a = [], s = this._bgVNode = xke(n, i, this._backgroundColor, o); s && a.push(s); var l = t.compress ? null : this._mainVNode = ni("g", "main", {}, []); this._paintList(r, o, l ? l.children : a), l && a.push(l); @@ -67124,13 +67165,13 @@ var uke = 0, dke = function() { return o.defs[h]; }); if (c.length && a.push(ni("defs", "defs", {}, c)), t.animation) { - var u = WNe(o.cssNodes, o.cssAnims, { newline: !0 }); + var u = tke(o.cssNodes, o.cssAnims, { newline: !0 }); if (u) { var d = ni("style", "stl", {}, [], u); a.push(d); } } - return rV(n, i, a, t.useViewBox); + return iV(n, i, a, t.useViewBox); }, e.prototype.renderToString = function(t) { return t = t || {}, $A(this.renderToVNode({ animation: $t(t.cssAnimation, !0), @@ -67154,12 +67195,12 @@ var uke = 0, dke = function() { a--, s = o[a - 1]; for (var m = g + 1; m < f; m++) { var y = {}; - ike(h[m], y, r); + gke(h[m], y, r); var C = ni("g", "clip-g-" + c++, y, []); (s ? s.children : n).push(C), o[a++] = C, s = C; } l = h; - var b = cV(d, r); + var b = dV(d, r); b && (s ? s.children : n).push(b); } } @@ -67170,7 +67211,7 @@ var uke = 0, dke = function() { var a = o.style; a.width = t + "px", a.height = r + "px"; } - if (D2(this._backgroundColor)) + if (DI(this._backgroundColor)) this.refresh(); else { var s = this._svgDom; @@ -67189,15 +67230,15 @@ var uke = 0, dke = function() { this._svgDom && (this._svgDom.innerHTML = null), this._oldVNode = null; }, e.prototype.toDataURL = function(t) { var r = this.renderToString(), n = "data:image/svg+xml;"; - return t ? (r = qMe(r), r && n + "base64," + r) : n + "charset=UTF-8," + encodeURIComponent(r); + return t ? (r = a2e(r), r && n + "base64," + r) : n + "charset=UTF-8," + encodeURIComponent(r); }, e; }(); -function pV(e) { +function vV(e) { return function() { process.env.NODE_ENV !== "production" && ya('In SVG mode painter not support method "' + e + '"'); }; } -function hke(e, t, r, n) { +function xke(e, t, r, n) { var i; if (r && r !== "none") if (i = ni("rect", "bg", { @@ -67205,10 +67246,10 @@ function hke(e, t, r, n) { height: t, x: "0", y: "0" - }), FK(r)) - mZ({ fill: r }, i.attrs, "fill", n); - else if (D2(r)) - yZ({ + }), $K(r)) + SZ({ fill: r }, i.attrs, "fill", n); + else if (DI(r)) + bZ({ style: { fill: r }, @@ -67218,15 +67259,15 @@ function hke(e, t, r, n) { } }, i.attrs, "fill", n); else { - var o = Uv(r), a = o.color, s = o.opacity; + var o = Yv(r), a = o.color, s = o.opacity; i.attrs.fill = a, s < 1 && (i.attrs["fill-opacity"] = s); } return i; } -function fke(e) { - e.registerPainter("svg", dke); +function Eke(e) { + e.registerPainter("svg", wke); } -function gV(e, t, r) { +function mV(e, t, r) { var n = os.createCanvas(), i = t.getWidth(), o = t.getHeight(), a = n.style; return a && (a.position = "absolute", a.left = "0", a.top = "0", a.width = i + "px", a.height = o + "px", n.setAttribute("data-zr-dom-id", e)), n.width = i * r, n.height = o * r, n; } @@ -67236,9 +67277,9 @@ var jE = function(e) { var o = e.call(this) || this; o.motionBlur = !1, o.lastFrameAlpha = 0.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; var a; - i = i || PS, typeof r == "string" ? a = gV(r, n, i) : St(r) && (a = r, r = a.id), o.id = r, o.dom = a; + i = i || _S, typeof r == "string" ? a = mV(r, n, i) : bt(r) && (a = r, r = a.id), o.id = r, o.dom = a; var s = a.style; - return s && (R2(a), a.onselectstart = function() { + return s && (RI(a), a.onselectstart = function() { return !1; }, s.padding = "0", s.margin = "0", s.borderWidth = "0"), o.painter = n, o.dpr = i, o; } @@ -67252,21 +67293,21 @@ var jE = function(e) { this.__firstTimePaint = !0; }, t.prototype.createBackBuffer = function() { var r = this.dpr; - this.domBack = gV("back-" + this.id, this.painter, r), this.ctxBack = this.domBack.getContext("2d"), r !== 1 && this.ctxBack.scale(r, r); + this.domBack = mV("back-" + this.id, this.painter, r), this.ctxBack = this.domBack.getContext("2d"), r !== 1 && this.ctxBack.scale(r, r); }, t.prototype.createRepaintRects = function(r, n, i, o) { if (this.__firstTimePaint) return this.__firstTimePaint = !1, null; - var a = [], s = this.maxRepaintRectCount, l = !1, c = new Kt(0, 0, 0, 0); + var a = [], s = this.maxRepaintRectCount, l = !1, c = new Yt(0, 0, 0, 0); function u(y) { if (!(!y.isFinite() || y.isZero())) if (a.length === 0) { - var C = new Kt(0, 0, 0, 0); + var C = new Yt(0, 0, 0, 0); C.copy(y), a.push(C); } else { for (var b = !1, w = 1 / 0, x = 0, E = 0; E < a.length; ++E) { var R = a[E]; if (R.intersect(y)) { - var P = new Kt(0, 0, 0, 0); + var P = new Yt(0, 0, 0, 0); P.copy(R), P.union(y), a[E] = P, b = !0; break; } else if (l) { @@ -67276,7 +67317,7 @@ var jE = function(e) { } } if (l && (a[x].union(y), b = !0), !b) { - var C = new Kt(0, 0, 0, 0); + var C = new Yt(0, 0, 0, 0); C.copy(y), a.push(C); } l || (l = a.length >= s); @@ -67326,7 +67367,7 @@ var jE = function(e) { function p(g, v, m, y) { if (a.clearRect(g, v, m, y), n && n !== "transparent") { var C = void 0; - if (Gm(n)) { + if (Um(n)) { var b = n.global || n.__width === m && n.__height === y; C = b && n.__canvasGradient || sM(a, n, { x: 0, @@ -67334,7 +67375,7 @@ var jE = function(e) { width: m, height: y }), n.__canvasGradient = C, n.__width = m, n.__height = y; - } else hK(n) && (n.scaleX = n.scaleX || d, n.scaleY = n.scaleY || d, C = lM(a, n, { + } else gK(n) && (n.scaleX = n.scaleX || d, n.scaleY = n.scaleY || d, C = lM(a, n, { dirty: function() { h.setUnpainted(), h.painter.refresh(); } @@ -67347,11 +67388,11 @@ var jE = function(e) { p(g.x * d, g.y * d, g.width * d, g.height * d); }); }, t; -}(Da), vV = 1e5, Du = 314159, E0 = 0.01, pke = 1e-3; -function gke(e) { +}(Da), yV = 1e5, Du = 314159, T0 = 0.01, Rke = 1e-3; +function Pke(e) { return e ? e.__builtin__ ? !0 : !(typeof e.resize != "function" || typeof e.refresh != "function") : !1; } -function vke(e, t) { +function Tke(e, t) { var r = document.createElement("div"); return r.style.cssText = [ "position:relative", @@ -67362,13 +67403,13 @@ function vke(e, t) { "border-width:0" ].join(";") + ";", r; } -var mke = function() { +var _ke = function() { function e(t, r, n, i) { this.type = "canvas", this._zlevelList = [], this._prevDisplayList = [], this._layers = {}, this._layerConfig = {}, this._needsManuallyCompositing = !1, this.type = "canvas"; var o = !t.nodeName || t.nodeName.toUpperCase() === "CANVAS"; - this._opts = n = Pe({}, n || {}), this.dpr = n.devicePixelRatio || PS, this._singleCanvas = o, this.root = t; + this._opts = n = Pe({}, n || {}), this.dpr = n.devicePixelRatio || _S, this._singleCanvas = o, this.root = t; var a = t.style; - a && (R2(t), t.innerHTML = ""), this.storage = r; + a && (RI(t), t.innerHTML = ""), this.storage = r; var s = this._zlevelList; this._prevDisplayList = []; var l = this._layers; @@ -67379,7 +67420,7 @@ var mke = function() { f.__builtin__ = !0, f.initContext(), l[Du] = f, f.zlevel = Du, s.push(Du), this._domRoot = t; } else { this._width = nf(t, 0, n), this._height = nf(t, 1, n); - var c = this._domRoot = vke(this._width, this._height); + var c = this._domRoot = Tke(this._width, this._height); t.appendChild(c); } } @@ -67418,12 +67459,12 @@ var mke = function() { viewHeight: this._height }, o, a = 0; a < r; a++) { var s = t[a]; - s.__inHover && (n || (n = this._hoverlayer = this.getLayer(vV)), o || (o = n.ctx, o.save()), od(o, s, i, a === r - 1)); + s.__inHover && (n || (n = this._hoverlayer = this.getLayer(yV)), o || (o = n.ctx, o.save()), od(o, s, i, a === r - 1)); } o && o.restore(); } }, e.prototype.getHoverLayer = function() { - return this.getLayer(vV); + return this.getLayer(yV); }, e.prototype.paintOne = function(t, r) { yA(t, r); }, e.prototype._paintList = function(t, r, n, i) { @@ -67436,7 +67477,7 @@ var mke = function() { }); else { var l = this; - SS(function() { + wS(function() { l._paintList(t, r, n, i); }); } @@ -67507,14 +67548,14 @@ var mke = function() { }, e.prototype.getLayer = function(t, r) { this._singleCanvas && !this._needsManuallyCompositing && (t = Du); var n = this._layers[t]; - return n || (n = new jE("zr_" + t, this, this.dpr), n.zlevel = t, n.__builtin__ = !0, this._layerConfig[t] ? Wt(n, this._layerConfig[t], !0) : this._layerConfig[t - E0] && Wt(n, this._layerConfig[t - E0], !0), r && (n.virtual = r), this.insertLayer(t, n), n.initContext()), n; + return n || (n = new jE("zr_" + t, this, this.dpr), n.zlevel = t, n.__builtin__ = !0, this._layerConfig[t] ? jt(n, this._layerConfig[t], !0) : this._layerConfig[t - T0] && jt(n, this._layerConfig[t - T0], !0), r && (n.virtual = r), this.insertLayer(t, n), n.initContext()), n; }, e.prototype.insertLayer = function(t, r) { var n = this._layers, i = this._zlevelList, o = i.length, a = this._domRoot, s = null, l = -1; if (n[t]) { process.env.NODE_ENV !== "production" && ya("ZLevel " + t + " has been used already"); return; } - if (!gke(r)) { + if (!Pke(r)) { process.env.NODE_ENV !== "production" && ya("Layer of zlevel " + t + " is not valid"); return; } @@ -67565,7 +67606,7 @@ var mke = function() { var o = null, a = 0, s, l; for (l = 0; l < t.length; l++) { var i = t[l], c = i.zlevel, u = void 0; - s !== c && (s = c, a = 0), i.incremental ? (u = this.getLayer(c + pke, this._needsManuallyCompositing), u.incremental = !0, a = 1) : u = this.getLayer(c + (a > 0 ? E0 : 0), this._needsManuallyCompositing), u.__builtin__ || ya("ZLevel " + c + " has been used by unkown layer " + u.id), u !== o && (u.__used = !0, u.__startIndex !== l && (u.__dirty = !0), u.__startIndex = l, u.incremental ? u.__drawIndex = -1 : u.__drawIndex = l, r(l), o = u), i.__dirty & Fo && !i.__inHover && (u.__dirty = !0, u.incremental && u.__drawIndex < 0 && (u.__drawIndex = l)); + s !== c && (s = c, a = 0), i.incremental ? (u = this.getLayer(c + Rke, this._needsManuallyCompositing), u.incremental = !0, a = 1) : u = this.getLayer(c + (a > 0 ? T0 : 0), this._needsManuallyCompositing), u.__builtin__ || ya("ZLevel " + c + " has been used by unkown layer " + u.id), u !== o && (u.__used = !0, u.__startIndex !== l && (u.__dirty = !0), u.__startIndex = l, u.incremental ? u.__drawIndex = -1 : u.__drawIndex = l, r(l), o = u), i.__dirty & Fo && !i.__inHover && (u.__dirty = !0, u.incremental && u.__drawIndex < 0 && (u.__drawIndex = l)); } r(l), this.eachBuiltinLayer(function(d, h) { !d.__used && d.getElementCount() > 0 && (d.__dirty = !0, d.__startIndex = d.__endIndex = d.__drawIndex = 0), d.__dirty && d.__drawIndex < 0 && (d.__drawIndex = d.__startIndex); @@ -67581,18 +67622,18 @@ var mke = function() { }, e.prototype.configLayer = function(t, r) { if (r) { var n = this._layerConfig; - n[t] ? Wt(n[t], r, !0) : n[t] = r; + n[t] ? jt(n[t], r, !0) : n[t] = r; for (var i = 0; i < this._zlevelList.length; i++) { var o = this._zlevelList[i]; - if (o === t || o === t + E0) { + if (o === t || o === t + T0) { var a = this._layers[o]; - Wt(a, n[t], !0); + jt(a, n[t], !0); } } } }, e.prototype.delLayer = function(t) { var r = this._layers, n = this._zlevelList, i = r[t]; - i && (i.dom.parentNode.removeChild(i.dom), delete r[t], n.splice(Yt(n, t), 1)); + i && (i.dom.parentNode.removeChild(i.dom), delete r[t], n.splice(qt(n, t), 1)); }, e.prototype.resize = function(t, r) { if (this._domRoot.style) { var n = this._domRoot; @@ -67644,10 +67685,10 @@ var mke = function() { return this._height; }, e; }(); -function yke(e) { - e.registerPainter("canvas", mke); +function Mke(e) { + e.registerPainter("canvas", _ke); } -var Cke = ( +var Dke = ( /** @class */ function(e) { Se(t, e); @@ -67661,7 +67702,7 @@ var Cke = ( if (n !== "polar" && n !== "cartesian2d") throw new Error("Line not support coordinateSystem besides cartesian and polar"); } - return rl(null, this, { + return nl(null, this, { useEncodeDefaulter: !0 }); }, t.prototype.getLegendIcon = function(r) { @@ -67730,20 +67771,20 @@ var Cke = ( }, t; }(jr) ); -function Vf(e, t) { +function zf(e, t) { var r = e.mapDimensionsAll("defaultedLabel"), n = r.length; if (n === 1) { - var i = $f(e, t, r[0]); + var i = Vf(e, t, r[0]); return i != null ? i + "" : null; } else if (n) { for (var o = [], a = 0; a < r.length; a++) - o.push($f(e, t, r[a])); + o.push(Vf(e, t, r[a])); return o.join(" "); } } -function wZ(e, t) { +function RZ(e, t) { var r = e.mapDimensionsAll("defaultedLabel"); - if (!Ie(t)) + if (!Ae(t)) return t + ""; for (var n = [], i = 0; i < r.length; i++) { var o = e.getDimensionIndex(r[i]); @@ -67751,7 +67792,7 @@ function wZ(e, t) { } return n.join(" "); } -var iy = ( +var sy = ( /** @class */ function(e) { Se(t, e); @@ -67767,7 +67808,7 @@ var iy = ( culling: !0, scaleX: o[0] / 2, scaleY: o[1] / 2 - }), s.drift = Ske, this._symbolType = r, this.add(s); + }), s.drift = Ike, this._symbolType = r, this.add(s); }, t.prototype.stopSymbolAnimation = function(r) { this.childAt(0).stopAnimation(null, r); }, t.prototype.getSymbolType = function() { @@ -67775,9 +67816,9 @@ var iy = ( }, t.prototype.getSymbolPath = function() { return this.childAt(0); }, t.prototype.highlight = function() { - Vl(this.childAt(0)); - }, t.prototype.downplay = function() { Hl(this.childAt(0)); + }, t.prototype.downplay = function() { + zl(this.childAt(0)); }, t.prototype.setZ = function(r, n) { var i = this.childAt(0); i.zlevel = r, i.z = n; @@ -67818,14 +67859,14 @@ var iy = ( var s = this.childAt(0), l = r.hostModel, c, u, d, h, f, p, g, v, m; if (o && (c = o.emphasisItemStyle, u = o.blurItemStyle, d = o.selectItemStyle, h = o.focus, f = o.blurScope, g = o.labelStatesModels, v = o.hoverScale, m = o.cursorStyle, p = o.emphasisDisabled), !o || r.hasItemOption) { var y = o && o.itemModel ? o.itemModel : r.getItemModel(n), C = y.getModel("emphasis"); - c = C.getModel("itemStyle").getItemStyle(), d = y.getModel(["select", "itemStyle"]).getItemStyle(), u = y.getModel(["blur", "itemStyle"]).getItemStyle(), h = C.get("focus"), f = C.get("blurScope"), p = C.get("disabled"), g = li(y), v = C.getShallow("scale"), m = y.getShallow("cursor"); + c = C.getModel("itemStyle").getItemStyle(), d = y.getModel(["select", "itemStyle"]).getItemStyle(), u = y.getModel(["blur", "itemStyle"]).getItemStyle(), h = C.get("focus"), f = C.get("blurScope"), p = C.get("disabled"), g = ci(y), v = C.getShallow("scale"), m = y.getShallow("cursor"); } var b = r.getItemVisual(n, "symbolRotate"); s.attr("rotation", (b || 0) * Math.PI / 180 || 0); var w = Zd(r.getItemVisual(n, "symbolOffset"), i); w && (s.x = w[0], s.y = w[1]), m && s.attr("cursor", m); var x = r.getItemVisual(n, "style"), E = x.fill; - if (s instanceof yi) { + if (s instanceof Ci) { var R = s.style; s.useStyle(Pe({ // TODO other properties like x, y ? @@ -67840,7 +67881,7 @@ var iy = ( var P = r.getItemVisual(n, "liftZ"), T = this._z2; P != null ? T == null && (this._z2 = s.z2, s.z2 += P) : T != null && (s.z2 = T, this._z2 = null); var _ = a && a.useNameLabel; - Ri(s, g, { + Pi(s, g, { labelFetcher: l, labelDataIndex: n, defaultText: D, @@ -67848,7 +67889,7 @@ var iy = ( defaultOpacity: x.opacity }); function D(O) { - return _ ? r.getName(O) : Vf(r, O); + return _ ? r.getName(O) : zf(r, O); } this._sizeX = i[0] / 2, this._sizeY = i[1] / 2; var A = s.ensureState("emphasis"); @@ -67886,22 +67927,22 @@ var iy = ( removeOpt: s }); }, t.getSymbolSize = function(r, n) { - return wp(r.getItemVisual(n, "symbolSize")); + return Ep(r.getItemVisual(n, "symbolSize")); }, t; }(Ot) ); -function Ske(e, t) { +function Ike(e, t) { this.parent.drift(e, t); } function UE(e, t, r, n) { return t && !isNaN(t[0]) && !isNaN(t[1]) && !(n.isIgnore && n.isIgnore(r)) && !(n.clipShape && !n.clipShape.contain(t[0], t[1])) && e.getItemVisual(r, "symbol") !== "none"; } -function mV(e) { - return e != null && !St(e) && (e = { +function CV(e) { + return e != null && !bt(e) && (e = { isIgnore: e }), e || {}; } -function yV(e) { +function SV(e) { var t = e.hostModel, r = t.getModel("emphasis"); return { emphasisItemStyle: r.getModel("itemStyle").getItemStyle(), @@ -67911,19 +67952,19 @@ function yV(e) { blurScope: r.get("blurScope"), emphasisDisabled: r.get("disabled"), hoverScale: r.get("scale"), - labelStatesModels: li(t), + labelStatesModels: ci(t), cursorStyle: t.get("cursor") }; } -var oy = ( +var ly = ( /** @class */ function() { function e(t) { - this.group = new Ot(), this._SymbolCtor = t || iy; + this.group = new Ot(), this._SymbolCtor = t || sy; } return e.prototype.updateData = function(t, r) { - this._progressiveEls = null, r = mV(r); - var n = this.group, i = t.hostModel, o = this._data, a = this._SymbolCtor, s = r.disableAnimation, l = yV(t), c = { + this._progressiveEls = null, r = CV(r); + var n = this.group, i = t.hostModel, o = this._data, a = this._SymbolCtor, s = r.disableAnimation, l = SV(t), c = { disableAnimation: s }, u = r.getSymbolPoint || function(d) { return t.getItemLayout(d); @@ -67965,9 +68006,9 @@ var oy = ( n.setPosition(o), n.markRedraw(); }); }, e.prototype.incrementalPrepareUpdate = function(t) { - this._seriesScope = yV(t), this._data = null, this.group.removeAll(); + this._seriesScope = SV(t), this._data = null, this.group.removeAll(); }, e.prototype.incrementalUpdate = function(t, r, n) { - this._progressiveEls = [], n = mV(n); + this._progressiveEls = [], n = CV(n); function i(l) { l.isGroup || (l.incremental = !0, l.ensureState("emphasis").hoverLayer = !0); } @@ -67990,15 +68031,15 @@ var oy = ( }, e; }() ); -function xZ(e, t, r) { - var n = e.getBaseAxis(), i = e.getOtherAxis(n), o = bke(i, r), a = n.dim, s = i.dim, l = t.mapDimension(s), c = t.mapDimension(a), u = s === "x" || s === "radius" ? 1 : 0, d = Fe(e.dimensions, function(p) { +function PZ(e, t, r) { + var n = e.getBaseAxis(), i = e.getOtherAxis(n), o = Ake(i, r), a = n.dim, s = i.dim, l = t.mapDimension(s), c = t.mapDimension(a), u = s === "x" || s === "radius" ? 1 : 0, d = Fe(e.dimensions, function(p) { return t.mapDimension(p); }), h = !1, f = t.getCalculationInfo("stackResultDimension"); - return Gl( + return Wl( t, d[0] /* , dims[1] */ - ) && (h = !0, d[0] = f), Gl( + ) && (h = !0, d[0] = f), Wl( t, d[1] /* , dims[0] */ @@ -68014,17 +68055,17 @@ function xZ(e, t, r) { stackedOverDimension: t.getCalculationInfo("stackedOverDimension") }; } -function bke(e, t) { +function Ake(e, t) { var r = 0, n = e.scale.getExtent(); return t === "start" ? r = n[0] : t === "end" ? r = n[1] : Cr(t) && !isNaN(t) ? r = t : n[0] > 0 ? r = n[0] : n[1] < 0 && (r = n[1]), r; } -function EZ(e, t, r, n) { +function TZ(e, t, r, n) { var i = NaN; e.stacked && (i = r.get(r.getCalculationInfo("stackedOverDimension"), n)), isNaN(i) && (i = e.valueStart); var o = e.baseDataOffset, a = []; return a[o] = r.get(e.baseDim, n), a[1 - o] = i, t.dataToPoint(a); } -function wke(e, t) { +function Oke(e, t) { var r = []; return t.diff(e).add(function(n) { r.push({ @@ -68044,8 +68085,8 @@ function wke(e, t) { }); }).execute(), r; } -function xke(e, t, r, n, i, o, a, s) { - for (var l = wke(e, t), c = [], u = [], d = [], h = [], f = [], p = [], g = [], v = xZ(i, t, a), m = e.getLayout("points") || [], y = t.getLayout("points") || [], C = 0; C < l.length; C++) { +function Lke(e, t, r, n, i, o, a, s) { + for (var l = Oke(e, t), c = [], u = [], d = [], h = [], f = [], p = [], g = [], v = PZ(i, t, a), m = e.getLayout("points") || [], y = t.getLayout("points") || [], C = 0; C < l.length; C++) { var b = l[C], w = !0, x = void 0, E = void 0; switch (b.cmd) { case "=": @@ -68056,7 +68097,7 @@ function xke(e, t, r, n, i, o, a, s) { case "+": var D = b.idx, A = v.dataDimsForPoint, M = i.dataToPoint([t.get(A[0], D), t.get(A[1], D)]); E = D * 2, c.push(M[0], M[1]), u.push(y[E], y[E + 1]); - var O = EZ(v, i, t, D); + var O = TZ(v, i, t, D); d.push(O[0], O[1]), h.push(n[E], n[E + 1]), g.push(t.getRawIndex(D)); break; case "-": @@ -68135,7 +68176,7 @@ function CM(e, t, r, n, i, o, a, s, l) { } return v; } -var RZ = ( +var _Z = ( /** @class */ /* @__PURE__ */ function() { function e() { @@ -68143,7 +68184,7 @@ var RZ = ( } return e; }() -), Eke = ( +), Fke = ( /** @class */ function(e) { Se(t, e); @@ -68157,7 +68198,7 @@ var RZ = ( fill: null }; }, t.prototype.getDefaultShape = function() { - return new RZ(); + return new _Z(); }, t.prototype.buildPath = function(r, n) { var i = n.points, o = 0, a = i.length / 2; if (n.connectNulls) { @@ -68185,7 +68226,7 @@ var RZ = ( break; case a.C: f = o[d++], p = o[d++], g = o[d++], v = o[d++], m = o[d++], y = o[d++]; - var w = c ? wS(s, f, g, m, r, u) : wS(l, p, v, y, r, u); + var w = c ? ES(s, f, g, m, r, u) : ES(l, p, v, y, r, u); if (w > 0) for (var x = 0; x < w; x++) { var E = u[x]; @@ -68200,7 +68241,7 @@ var RZ = ( } }, t; }(nr) -), Rke = ( +), Nke = ( /** @class */ function(e) { Se(t, e); @@ -68208,8 +68249,8 @@ var RZ = ( return e !== null && e.apply(this, arguments) || this; } return t; - }(RZ) -), PZ = ( + }(_Z) +), MZ = ( /** @class */ function(e) { Se(t, e); @@ -68218,7 +68259,7 @@ var RZ = ( return n.type = "ec-polygon", n; } return t.prototype.getDefaultShape = function() { - return new Rke(); + return new Nke(); }, t.prototype.buildPath = function(r, n) { var i = n.points, o = n.stackedOnPoints, a = 0, s = i.length / 2, l = n.smoothMonotone; if (n.connectNulls) { @@ -68234,7 +68275,7 @@ var RZ = ( }, t; }(nr) ); -function TZ(e, t, r, n, i) { +function DZ(e, t, r, n, i) { var o = e.getArea(), a = o.x, s = o.y, l = o.width, c = o.height, u = r.get(["lineStyle", "width"]) || 2; a -= u / 2, s -= u / 2, l += u, c += u, l = Math.ceil(l), a !== Math.floor(a) && (a = Math.floor(a), l++); var d = new mr({ @@ -68248,7 +68289,7 @@ function TZ(e, t, r, n, i) { if (t) { var h = e.getBaseAxis(), f = h.isHorizontal(), p = h.inverse; f ? (p && (d.shape.x += l), d.shape.width = 0) : (p || (d.shape.y += c), d.shape.height = 0); - var g = vt(i) ? function(v) { + var g = mt(i) ? function(v) { i(v, d); } : null; un(d, { @@ -68262,7 +68303,7 @@ function TZ(e, t, r, n, i) { } return d; } -function _Z(e, t, r) { +function IZ(e, t, r) { var n = e.getArea(), i = En(n.r0, 1), o = En(n.r, 1), a = new io({ shape: { cx: En(e.cx, 1), @@ -68285,19 +68326,19 @@ function _Z(e, t, r) { } return a; } -function ay(e, t, r, n, i) { +function cy(e, t, r, n, i) { if (e) { if (e.type === "polar") - return _Z(e, t, r); + return IZ(e, t, r); if (e.type === "cartesian2d") - return TZ(e, t, r, n, i); + return DZ(e, t, r, n, i); } else return null; return null; } function Qd(e, t) { return e.type === t; } -function CV(e, t) { +function bV(e, t) { if (e.length === t.length) { for (var r = 0; r < e.length; r++) if (e[r] !== t[r]) @@ -68305,25 +68346,25 @@ function CV(e, t) { return !0; } } -function SV(e) { +function wV(e) { for (var t = 1 / 0, r = 1 / 0, n = -1 / 0, i = -1 / 0, o = 0; o < e.length; ) { var a = e[o++], s = e[o++]; isNaN(a) || (t = Math.min(a, t), n = Math.max(a, n)), isNaN(s) || (r = Math.min(s, r), i = Math.max(s, i)); } return [[t, r], [n, i]]; } -function bV(e, t) { - var r = SV(e), n = r[0], i = r[1], o = SV(t), a = o[0], s = o[1]; +function xV(e, t) { + var r = wV(e), n = r[0], i = r[1], o = wV(t), a = o[0], s = o[1]; return Math.max(Math.abs(n[0] - a[0]), Math.abs(n[1] - a[1]), Math.abs(i[0] - s[0]), Math.abs(i[1] - s[1])); } -function wV(e) { +function EV(e) { return Cr(e) ? e : e ? 0.5 : 0; } -function Pke(e, t, r) { +function kke(e, t, r) { if (!r.valueDim) return []; for (var n = t.count(), i = Ls(n * 2), o = 0; o < n; o++) { - var a = EZ(r, e, t, o); + var a = TZ(r, e, t, o); i[o * 2] = a[0], i[o * 2 + 1] = a[1]; } return i; @@ -68349,10 +68390,10 @@ function uc(e, t, r, n) { } return a.push(e[s++], e[s++]), a; } -function Tke(e, t) { +function $ke(e, t) { var r = [], n = e.length, i, o; function a(u, d, h) { - var f = u.coord, p = (h - f) / (d.coord - f), g = M2(p, [u.color, d.color]); + var f = u.coord, p = (h - f) / (d.coord - f), g = MI(p, [u.color, d.color]); return { coord: h, color: g @@ -68370,7 +68411,7 @@ function Tke(e, t) { } return r; } -function _ke(e, t, r) { +function Bke(e, t, r) { var n = e.getVisual("visualMeta"); if (!(!n || !n.length || !e.count())) { if (t.type !== "cartesian2d") { @@ -68395,7 +68436,7 @@ function _ke(e, t, r) { }; }), u = c.length, d = o.outerColors.slice(); u && c[0].coord > c[u - 1].coord && (c.reverse(), d.reverse()); - var h = Tke(c, i === "x" ? r.getWidth() : r.getHeight()), f = h.length; + var h = $ke(c, i === "x" ? r.getWidth() : r.getHeight()), f = h.length; if (!f && u) return c[0].coord < 0 ? d[1] ? d[1] : c[u - 1].color : d[0] ? d[0] : c[0].color; var p = 10, g = h[0].coord - p, v = h[f - 1].coord + p, m = v - g; @@ -68411,15 +68452,15 @@ function _ke(e, t, r) { offset: f ? h[0].offset : 0.5, color: d[0] || "transparent" }); - var y = new hp(0, 0, 0, 0, h, !0); + var y = new pp(0, 0, 0, 0, h, !0); return y[i] = g, y[i + "2"] = v, y; } } -function Mke(e, t, r) { +function Vke(e, t, r) { var n = e.get("showAllSymbol"), i = n === "auto"; if (!(n && !i)) { var o = r.getAxesByScale("ordinal")[0]; - if (o && !(i && Dke(o, t))) { + if (o && !(i && Hke(o, t))) { var a = t.mapDimension(o.dim), s = {}; return z(o.getViewLabels(), function(l) { var c = o.scale.getRawOrdinalNumber(l.tickValue); @@ -68430,11 +68471,11 @@ function Mke(e, t, r) { } } } -function Dke(e, t) { +function Hke(e, t) { var r = e.getExtent(), n = Math.abs(r[1] - r[0]) / e.scale.count(); isNaN(n) && (n = 0); for (var i = t.count(), o = Math.max(1, Math.round(i / 5)), a = 0; a < i; a += o) - if (iy.getSymbolSize( + if (sy.getSymbolSize( t, a // Only for cartesian, where `isHorizontal` exists. @@ -68442,18 +68483,18 @@ function Dke(e, t) { return !1; return !0; } -function Ike(e, t) { +function zke(e, t) { return isNaN(e) || isNaN(t); } -function Ake(e) { - for (var t = e.length / 2; t > 0 && Ike(e[t * 2 - 2], e[t * 2 - 1]); t--) +function Gke(e) { + for (var t = e.length / 2; t > 0 && zke(e[t * 2 - 2], e[t * 2 - 1]); t--) ; return t - 1; } -function xV(e, t) { +function RV(e, t) { return [e[t * 2], e[t * 2 + 1]]; } -function Oke(e, t, r) { +function Wke(e, t, r) { for (var n = e.length / 2, i = r === "x" ? 0 : 1, o, a, s = 0, l = -1, c = 0; c < n; c++) if (a = e[c * 2 + i], !(isNaN(a) || isNaN(e[c * 2 + 1 - i]))) { if (c === 0) { @@ -68471,7 +68512,7 @@ function Oke(e, t, r) { t: (t - o) / (a - o) }; } -function MZ(e) { +function AZ(e) { if (e.get(["endLabel", "show"])) return !0; for (var t = 0; t < no.length; t++) @@ -68483,9 +68524,9 @@ function KE(e, t, r, n) { if (Qd(t, "cartesian2d")) { var i = n.getModel("endLabel"), o = i.get("valueAnimation"), a = n.getData(), s = { lastFrameIndex: 0 - }, l = MZ(n) ? function(f, p) { + }, l = AZ(n) ? function(f, p) { e._endLabelOnDuring(f, p, a, s, o, i, t); - } : null, c = t.getBaseAxis().isHorizontal(), u = TZ(t, r, n, function() { + } : null, c = t.getBaseAxis().isHorizontal(), u = DZ(t, r, n, function() { var f = e._endLabel; f && r && s.originalX != null && f.attr({ x: s.originalX, @@ -68498,9 +68539,9 @@ function KE(e, t, r, n) { } return l && l(1, u), u; } else - return process.env.NODE_ENV !== "production" && n.get(["endLabel", "show"]) && console.warn("endLabel is not supported for lines in polar systems."), _Z(t, r, n); + return process.env.NODE_ENV !== "production" && n.get(["endLabel", "show"]) && console.warn("endLabel is not supported for lines in polar systems."), IZ(t, r, n); } -function Lke(e, t) { +function jke(e, t) { var r = t.getBaseAxis(), n = r.isHorizontal(), i = r.inverse, o = n ? i ? "right" : "left" : "center", a = n ? "middle" : i ? "top" : "bottom"; return { normal: { @@ -68509,7 +68550,7 @@ function Lke(e, t) { } }; } -var Fke = ( +var Uke = ( /** @class */ function(e) { Se(t, e); @@ -68517,16 +68558,16 @@ var Fke = ( return e !== null && e.apply(this, arguments) || this; } return t.prototype.init = function() { - var r = new Ot(), n = new oy(); + var r = new Ot(), n = new ly(); this.group.add(n.group), this._symbolDraw = n, this._lineGroup = r; }, t.prototype.render = function(r, n, i) { - var o = this, a = r.coordinateSystem, s = this.group, l = r.getData(), c = r.getModel("lineStyle"), u = r.getModel("areaStyle"), d = l.getLayout("points") || [], h = a.type === "polar", f = this._coordSys, p = this._symbolDraw, g = this._polyline, v = this._polygon, m = this._lineGroup, y = !n.ssr && r.get("animation"), C = !u.isEmpty(), b = u.get("origin"), w = xZ(a, l, b), x = C && Pke(a, l, w), E = r.get("showSymbol"), R = r.get("connectNulls"), P = E && !h && Mke(r, l, a), T = this._data; + var o = this, a = r.coordinateSystem, s = this.group, l = r.getData(), c = r.getModel("lineStyle"), u = r.getModel("areaStyle"), d = l.getLayout("points") || [], h = a.type === "polar", f = this._coordSys, p = this._symbolDraw, g = this._polyline, v = this._polygon, m = this._lineGroup, y = !n.ssr && r.get("animation"), C = !u.isEmpty(), b = u.get("origin"), w = PZ(a, l, b), x = C && kke(a, l, w), E = r.get("showSymbol"), R = r.get("connectNulls"), P = E && !h && Vke(r, l, a), T = this._data; T && T.eachItemGraphicEl(function(X, q) { X.__temp && (s.remove(X), T.setItemGraphicEl(q, null)); }), E || p.remove(), s.add(m); var _ = h ? !1 : r.get("step"), D; a && a.getArea && r.get("clip", !0) && (D = a.getArea(), D.width != null ? (D.x -= 0.1, D.y -= 0.1, D.width += 0.2, D.height += 0.2) : D.r0 && (D.r0 -= 0.5, D.r += 0.5)), this._clipShapeForSymbol = D; - var A = _ke(l, a, i) || l.getVisual("style")[l.getVisual("drawType")]; + var A = Bke(l, a, i) || l.getVisual("style")[l.getVisual("drawType")]; if (!(g && f.type === a.type && _ === this._step)) E && p.updateData(l, { isIgnore: P, @@ -68553,7 +68594,7 @@ var Fke = ( getSymbolPoint: function(X) { return [d[X * 2], d[X * 2 + 1]]; } - }), (!CV(this._stackedOnPoints, x) || !CV(this._points, d)) && (y ? this._doUpdateAnimation(l, x, a, i, _, b, R) : (_ && (d = uc(d, a, _, R), x && (x = uc(x, a, _, R))), g.setShape({ + }), (!bV(this._stackedOnPoints, x) || !bV(this._points, d)) && (y ? this._doUpdateAnimation(l, x, a, i, _, b, R) : (_ && (d = uc(d, a, _, R), x && (x = uc(x, a, _, R))), g.setShape({ points: d }), v && v.setShape({ points: d, @@ -68561,7 +68602,7 @@ var Fke = ( }))); } var L = r.getModel("emphasis"), N = L.get("focus"), F = L.get("blurScope"), $ = L.get("disabled"); - if (g.useStyle(wt( + if (g.useStyle(xt( // Use color in lineStyle first c.getLineStyle(), { @@ -68569,29 +68610,29 @@ var Fke = ( stroke: A, lineJoin: "bevel" } - )), Ei(g, r, "lineStyle"), g.style.lineWidth > 0 && r.get(["emphasis", "lineStyle", "width"]) === "bolder") { + )), Ri(g, r, "lineStyle"), g.style.lineWidth > 0 && r.get(["emphasis", "lineStyle", "width"]) === "bolder") { var I = g.getState("emphasis").style; I.lineWidth = +g.style.lineWidth + 1; } Ft(g).seriesIndex = r.seriesIndex, Rn(g, N, F, $); - var V = wV(r.get("smooth")), H = r.get("smoothMonotone"); + var V = EV(r.get("smooth")), H = r.get("smoothMonotone"); if (g.setShape({ smooth: V, smoothMonotone: H, connectNulls: R }), v) { var B = l.getCalculationInfo("stackedOnSeries"), W = 0; - v.useStyle(wt(u.getAreaStyle(), { + v.useStyle(xt(u.getAreaStyle(), { fill: A, opacity: 0.7, lineJoin: "bevel", decal: l.getVisual("style").decal - })), B && (W = wV(B.get("smooth"))), v.setShape({ + })), B && (W = EV(B.get("smooth"))), v.setShape({ smooth: V, stackedOnSmooth: W, smoothMonotone: H, connectNulls: R - }), Ei(v, r, "areaStyle"), Ft(v).seriesIndex = r.seriesIndex, Rn(v, N, F, $); + }), Ri(v, r, "areaStyle"), Ft(v).seriesIndex = r.seriesIndex, Rn(v, N, F, $); } var j = function(X) { o._changePolyState(X); @@ -68617,7 +68658,7 @@ var Fke = ( if (isNaN(u) || isNaN(d) || this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(u, d)) return; var h = r.get("zlevel") || 0, f = r.get("z") || 0; - c = new iy(a, s), c.x = u, c.y = d, c.setZ(h, f); + c = new sy(a, s), c.x = u, c.y = d, c.setZ(h, f); var p = c.getSymbolPath().getTextContent(); p && (p.zlevel = h, p.z = f, p.z2 = this._polyline.z2 + 1), c.__temp = !0, a.setItemGraphicEl(s, c), c.stopSymbolAnimation(!0), this.group.add(c); } @@ -68633,10 +68674,10 @@ var Fke = ( $r.prototype.downplay.call(this, r, n, i, o); }, t.prototype._changePolyState = function(r) { var n = this._polygon; - DS(this._polyline, r), n && DS(n, r); + AS(this._polyline, r), n && AS(n, r); }, t.prototype._newPolyline = function(r) { var n = this._polyline; - return n && this._lineGroup.remove(n), n = new Eke({ + return n && this._lineGroup.remove(n), n = new Fke({ shape: { points: r }, @@ -68645,7 +68686,7 @@ var Fke = ( }), this._lineGroup.add(n), this._polyline = n, n; }, t.prototype._newPolygon = function(r, n) { var i = this._polygon; - return i && this._lineGroup.remove(i), i = new PZ({ + return i && this._lineGroup.remove(i), i = new MZ({ shape: { points: r, stackedOnPoints: n @@ -68656,8 +68697,8 @@ var Fke = ( var o, a, s = n.getBaseAxis(), l = s.inverse; n.type === "cartesian2d" ? (o = s.isHorizontal(), a = !1) : n.type === "polar" && (o = s.dim === "angle", a = !0); var c = r.hostModel, u = c.get("animationDuration"); - vt(u) && (u = u(null)); - var d = c.get("animationDelay") || 0, h = vt(d) ? d(null) : d; + mt(u) && (u = u(null)); + var d = c.get("animationDelay") || 0, h = mt(d) ? d(null) : d; r.eachItemGraphicEl(function(f, p) { var g = f; if (g) { @@ -68672,7 +68713,7 @@ var Fke = ( } var E = y === m ? 0 : (C - m) / (y - m); l && (E = 1 - E); - var R = vt(d) ? d(p) : u * E + h, P = g.getSymbolPath(), T = P.getTextContent(); + var R = mt(d) ? d(p) : u * E + h, P = g.getSymbolPath(), T = P.getTextContent(); g.attr({ scaleX: 0, scaleY: 0 @@ -68695,7 +68736,7 @@ var Fke = ( }); }, t.prototype._initOrUpdateEndLabel = function(r, n, i) { var o = r.getModel("endLabel"); - if (MZ(r)) { + if (AZ(r)) { var a = r.getData(), s = this._polyline, l = a.getLayout("points"); if (!l) { s.removeTextContent(), this._endLabel = null; @@ -68706,25 +68747,25 @@ var Fke = ( z2: 200 // should be higher than item symbol }), c.ignoreClip = !0, s.setTextContent(this._endLabel), s.disableLabelAnimation = !0); - var u = Ake(l); - u >= 0 && (Ri(s, li(r, "endLabel"), { + var u = Gke(l); + u >= 0 && (Pi(s, ci(r, "endLabel"), { inheritColor: i, labelFetcher: r, labelDataIndex: u, defaultText: function(d, h, f) { - return f != null ? wZ(a, f) : Vf(a, d); + return f != null ? RZ(a, f) : zf(a, d); }, enableTextSetter: !0 - }, Lke(o, n)), s.textConfig.position = null); + }, jke(o, n)), s.textConfig.position = null); } else this._endLabel && (this._polyline.removeTextContent(), this._endLabel = null); }, t.prototype._endLabelOnDuring = function(r, n, i, o, a, s, l) { var c = this._endLabel, u = this._polyline; if (c) { r < 1 && o.originalX == null && (o.originalX = c.x, o.originalY = c.y); - var d = i.getLayout("points"), h = i.hostModel, f = h.get("connectNulls"), p = s.get("precision"), g = s.get("distance") || 0, v = l.getBaseAxis(), m = v.isHorizontal(), y = v.inverse, C = n.shape, b = y ? m ? C.x : C.y + C.height : m ? C.x + C.width : C.y, w = (m ? g : 0) * (y ? -1 : 1), x = (m ? 0 : -g) * (y ? -1 : 1), E = m ? "x" : "y", R = Oke(d, b, E), P = R.range, T = P[1] - P[0], _ = void 0; + var d = i.getLayout("points"), h = i.hostModel, f = h.get("connectNulls"), p = s.get("precision"), g = s.get("distance") || 0, v = l.getBaseAxis(), m = v.isHorizontal(), y = v.inverse, C = n.shape, b = y ? m ? C.x : C.y + C.height : m ? C.x + C.width : C.y, w = (m ? g : 0) * (y ? -1 : 1), x = (m ? 0 : -g) * (y ? -1 : 1), E = m ? "x" : "y", R = Wke(d, b, E), P = R.range, T = P[1] - P[0], _ = void 0; if (T >= 1) { if (T > 1 && !f) { - var D = xV(d, P[0]); + var D = RV(d, P[0]); c.attr({ x: D[0] + w, y: D[1] + x @@ -68736,24 +68777,24 @@ var Fke = ( y: D[1] + x }); var A = h.getRawValue(P[0]), M = h.getRawValue(P[1]); - a && (_ = nY(i, p, A, M, R.t)); + a && (_ = aY(i, p, A, M, R.t)); } o.lastFrameIndex = P[0]; } else { - var O = r === 1 || o.lastFrameIndex > 0 ? P[0] : 0, D = xV(d, O); + var O = r === 1 || o.lastFrameIndex > 0 ? P[0] : 0, D = RV(d, O); a && (_ = h.getRawValue(O)), c.attr({ x: D[0] + w, y: D[1] + x }); } if (a) { - var L = vp(c); + var L = yp(c); typeof L.setLabelText == "function" && L.setLabelText(_); } } }, t.prototype._doUpdateAnimation = function(r, n, i, o, a, s, l) { - var c = this._polyline, u = this._polygon, d = r.hostModel, h = xke(this._data, r, this._stackedOnPoints, n, this._coordSys, i, this._valueOrigin), f = h.current, p = h.stackedOnCurrent, g = h.next, v = h.stackedOnNext; - if (a && (f = uc(h.current, i, a, l), p = uc(h.stackedOnCurrent, i, a, l), g = uc(h.next, i, a, l), v = uc(h.stackedOnNext, i, a, l)), bV(f, g) > 3e3 || u && bV(p, v) > 3e3) { + var c = this._polyline, u = this._polygon, d = r.hostModel, h = Lke(this._data, r, this._stackedOnPoints, n, this._coordSys, i, this._valueOrigin), f = h.current, p = h.stackedOnCurrent, g = h.next, v = h.stackedOnNext; + if (a && (f = uc(h.current, i, a, l), p = uc(h.stackedOnCurrent, i, a, l), g = uc(h.next, i, a, l), v = uc(h.stackedOnNext, i, a, l)), xV(f, g) > 3e3 || u && xV(p, v) > 3e3) { c.stopAnimation(), c.setShape({ points: g }), u && (u.stopAnimation(), u.setShape({ @@ -68803,17 +68844,17 @@ var Fke = ( }, t.type = "line", t; }($r) ); -function sy(e, t) { +function uy(e, t) { return { seriesType: e, - plan: Sp(), + plan: wp(), reset: function(r) { var n = r.getData(), i = r.coordinateSystem, o = r.pipelineContext, a = t || o.large; if (i) { var s = Fe(i.dimensions, function(f) { return n.mapDimension(f); }).slice(0, 2), l = s.length, c = n.getCalculationInfo("stackResultDimension"); - Gl(n, s[0]) && (s[0] = c), Gl(n, s[1]) && (s[1] = c); + Wl(n, s[0]) && (s[0] = c), Wl(n, s[1]) && (s[1] = c); var u = n.getStore(), d = n.getDimensionIndex(s[0]), h = n.getDimensionIndex(s[1]); return l && { progress: function(f, p) { @@ -68833,7 +68874,7 @@ function sy(e, t) { } }; } -var Nke = { +var Kke = { average: function(e) { for (var t = 0, r = 0, n = 0; n < e.length; n++) isNaN(e[n]) || (t += e[n], r++); @@ -68866,10 +68907,10 @@ var Nke = { nearest: function(e) { return e[0]; } -}, kke = function(e) { +}, Yke = function(e) { return Math.round(e.length / 2); }; -function DZ(e) { +function OZ(e) { return { seriesType: e, // FIXME:TS never used, so comment it @@ -68881,22 +68922,22 @@ function DZ(e) { if (isFinite(f) && f > 1) { o === "lttb" && t.setData(i.lttbDownSample(i.mapDimension(c.dim), 1 / f)); var p = void 0; - Je(o) ? p = Nke[o] : vt(o) && (p = o), p && t.setData(i.downSample(i.mapDimension(c.dim), 1 / f, p, kke)); + Je(o) ? p = Kke[o] : mt(o) && (p = o), p && t.setData(i.downSample(i.mapDimension(c.dim), 1 / f, p, Yke)); } } } }; } -function $ke(e) { - e.registerChartView(Fke), e.registerSeriesModel(Cke), e.registerLayout(sy("line", !0)), e.registerVisual({ +function qke(e) { + e.registerChartView(Uke), e.registerSeriesModel(Dke), e.registerLayout(uy("line", !0)), e.registerVisual({ seriesType: "line", reset: function(t) { var r = t.getData(), n = t.getModel("lineStyle").getLineStyle(); n && !n.stroke && (n.stroke = r.getVisual("style").fill), r.setVisual("legendLineStyle", n); } - }), e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC, DZ("line")); + }), e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC, OZ("line")); } -var im = ( +var am = ( /** @class */ function(e) { Se(t, e); @@ -68905,7 +68946,7 @@ var im = ( return r.type = t.type, r; } return t.prototype.getInitialData = function(r, n) { - return rl(null, this, { + return nl(null, this, { useEncodeDefaulter: !0 }); }, t.prototype.getMarkerPosition = function(r, n, i) { @@ -68964,8 +69005,8 @@ var im = ( }, t; }(jr) ); -jr.registerClass(im); -var Bke = ( +jr.registerClass(am); +var Xke = ( /** @class */ function(e) { Se(t, e); @@ -68974,7 +69015,7 @@ var Bke = ( return r.type = t.type, r; } return t.prototype.getInitialData = function() { - return rl(null, this, { + return nl(null, this, { useEncodeDefaulter: !0, createInvertedIndices: !!this.get("realtimeSort", !0) || null }); @@ -68985,7 +69026,7 @@ var Bke = ( return n > r && (r = n), r; }, t.prototype.brushSelector = function(r, n, i) { return i.rect(n.getItemLayout(r)); - }, t.type = "series.bar", t.dependencies = ["grid", "polar"], t.defaultOption = ru(im.defaultOption, { + }, t.type = "series.bar", t.dependencies = ["grid", "polar"], t.defaultOption = ru(am.defaultOption, { // If clipped // Only available on cartesian2d clip: !0, @@ -69010,8 +69051,8 @@ var Bke = ( }, realtimeSort: !1 }), t; - }(im) -), Vke = ( + }(am) +), Zke = ( /** @class */ /* @__PURE__ */ function() { function e() { @@ -69019,7 +69060,7 @@ var Bke = ( } return e; }() -), JS = ( +), tb = ( /** @class */ function(e) { Se(t, e); @@ -69028,7 +69069,7 @@ var Bke = ( return n.type = "sausage", n; } return t.prototype.getDefaultShape = function() { - return new Vke(); + return new Zke(); }, t.prototype.buildPath = function(r, n) { var i = n.cx, o = n.cy, a = Math.max(n.r0 || 0, 0), s = Math.max(n.r, 0), l = (s - a) * 0.5, c = a + l, u = n.startAngle, d = n.endAngle, h = n.clockwise, f = Math.PI * 2, p = h ? d - u < f : u - d < f; p || (u = d - (h ? f : -f)); @@ -69037,13 +69078,13 @@ var Bke = ( }, t; }(nr) ); -function Hke(e, t) { +function Qke(e, t) { t = t || {}; var r = t.isRoundCap; return function(n, i, o) { var a = i.position; if (!a || a instanceof Array) - return TS(n, i, o); + return MS(n, i, o); var s = e(a), l = i.distance != null ? i.distance : 5, c = this.shape, u = c.cx, d = c.cy, h = c.r, f = c.r0, p = (h + f) / 2, g = c.startAngle, v = c.endAngle, m = (g + v) / 2, y = r ? Math.abs(h - f) / 2 : 0, C = Math.cos, b = Math.sin, w = u + h * C(g), x = d + h * b(g), E = "left", R = "top"; switch (s) { case "startArc": @@ -69053,10 +69094,10 @@ function Hke(e, t) { w = u + (f + l) * C(m), x = d + (f + l) * b(m), E = "center", R = "bottom"; break; case "startAngle": - w = u + p * C(g) + R0(g, l + y, !1), x = d + p * b(g) + P0(g, l + y, !1), E = "right", R = "middle"; + w = u + p * C(g) + _0(g, l + y, !1), x = d + p * b(g) + M0(g, l + y, !1), E = "right", R = "middle"; break; case "insideStartAngle": - w = u + p * C(g) + R0(g, -l + y, !1), x = d + p * b(g) + P0(g, -l + y, !1), E = "left", R = "middle"; + w = u + p * C(g) + _0(g, -l + y, !1), x = d + p * b(g) + M0(g, -l + y, !1), E = "left", R = "middle"; break; case "middle": w = u + p * C(m), x = d + p * b(m), E = "center", R = "middle"; @@ -69068,24 +69109,24 @@ function Hke(e, t) { w = u + (h - l) * C(m), x = d + (h - l) * b(m), E = "center", R = "top"; break; case "endAngle": - w = u + p * C(v) + R0(v, l + y, !0), x = d + p * b(v) + P0(v, l + y, !0), E = "left", R = "middle"; + w = u + p * C(v) + _0(v, l + y, !0), x = d + p * b(v) + M0(v, l + y, !0), E = "left", R = "middle"; break; case "insideEndAngle": - w = u + p * C(v) + R0(v, -l + y, !0), x = d + p * b(v) + P0(v, -l + y, !0), E = "right", R = "middle"; + w = u + p * C(v) + _0(v, -l + y, !0), x = d + p * b(v) + M0(v, -l + y, !0), E = "right", R = "middle"; break; default: - return TS(n, i, o); + return MS(n, i, o); } return n = n || {}, n.x = w, n.y = x, n.align = E, n.verticalAlign = R, n; }; } -function zke(e, t, r, n) { +function Jke(e, t, r, n) { if (Cr(n)) { e.setTextConfig({ rotation: n }); return; - } else if (Ie(t)) { + } else if (Ae(t)) { e.setTextConfig({ rotation: 0 }); @@ -69119,10 +69160,10 @@ function zke(e, t, r, n) { rotation: u }); } -function R0(e, t, r) { +function _0(e, t, r) { return t * Math.sin(e) * (r ? -1 : 1); } -function P0(e, t, r) { +function M0(e, t, r) { return t * Math.cos(e) * (r ? 1 : -1); } function ad(e, t, r) { @@ -69131,7 +69172,7 @@ function ad(e, t, r) { return r ? { cornerRadius: 0 } : null; - Ie(n) || (n = [n, n, n, n]); + Ae(n) || (n = [n, n, n, n]); var i = Math.abs(t.r || 0 - t.r0 || 0); return { cornerRadius: Fe(n, function(o) { @@ -69140,7 +69181,7 @@ function ad(e, t, r) { }; } var YE = Math.max, qE = Math.min; -function Gke(e, t) { +function e$e(e, t) { var r = e.getArea && e.getArea(); if (Qd(e, "cartesian2d")) { var n = e.getBaseAxis(); @@ -69151,7 +69192,7 @@ function Gke(e, t) { } return r; } -var Wke = ( +var t$e = ( /** @class */ function(e) { Se(t, e); @@ -69175,59 +69216,59 @@ var Wke = ( }, t.prototype._renderNormal = function(r, n, i, o) { var a = this.group, s = r.getData(), l = this._data, c = r.coordinateSystem, u = c.getBaseAxis(), d; c.type === "cartesian2d" ? d = u.isHorizontal() : c.type === "polar" && (d = u.dim === "angle"); - var h = r.isAnimationEnabled() ? r : null, f = jke(r, c); + var h = r.isAnimationEnabled() ? r : null, f = r$e(r, c); f && this._enableRealtimeSort(f, s, i); - var p = r.get("clip", !0) || f, g = Gke(c, s); + var p = r.get("clip", !0) || f, g = e$e(c, s); a.removeClipPath(); var v = r.get("roundCap", !0), m = r.get("showBackground", !0), y = r.getModel("backgroundStyle"), C = y.get("borderRadius") || 0, b = [], w = this._backgroundEls, x = o && o.isInitSort, E = o && o.type === "changeAxisOrder"; function R(_) { - var D = T0[c.type](s, _), A = Qke(c, d, D); + var D = D0[c.type](s, _), A = c$e(c, d, D); return A.useStyle(y.getItemStyle()), c.type === "cartesian2d" ? A.setShape("r", C) : A.setShape("cornerRadius", C), b[_] = A, A; } s.diff(l).add(function(_) { - var D = s.getItemModel(_), A = T0[c.type](s, _, D); - if (m && R(_), !(!s.hasValue(_) || !_V[c.type](A))) { + var D = s.getItemModel(_), A = D0[c.type](s, _, D); + if (m && R(_), !(!s.hasValue(_) || !DV[c.type](A))) { var M = !1; - p && (M = EV[c.type](g, A)); - var O = RV[c.type](r, s, _, A, d, h, u.model, !1, v); - f && (O.forceLabelAnimation = !0), MV(O, s, _, D, A, r, d, c.type === "polar"), x ? O.attr({ + p && (M = PV[c.type](g, A)); + var O = TV[c.type](r, s, _, A, d, h, u.model, !1, v); + f && (O.forceLabelAnimation = !0), IV(O, s, _, D, A, r, d, c.type === "polar"), x ? O.attr({ shape: A - }) : f ? PV(f, h, O, A, _, d, !1, !1) : un(O, { + }) : f ? _V(f, h, O, A, _, d, !1, !1) : un(O, { shape: A }, r, _), s.setItemGraphicEl(_, O), a.add(O), O.ignore = M; } }).update(function(_, D) { - var A = s.getItemModel(_), M = T0[c.type](s, _, A); + var A = s.getItemModel(_), M = D0[c.type](s, _, A); if (m) { var O = void 0; w.length === 0 ? O = R(D) : (O = w[D], O.useStyle(y.getItemStyle()), c.type === "cartesian2d" ? O.setShape("r", C) : O.setShape("cornerRadius", C), b[_] = O); - var L = T0[c.type](s, _), N = AZ(d, L, c); + var L = D0[c.type](s, _), N = FZ(d, L, c); br(O, { shape: N }, h, _); } var F = l.getItemGraphicEl(D); - if (!s.hasValue(_) || !_V[c.type](M)) { + if (!s.hasValue(_) || !DV[c.type](M)) { a.remove(F); return; } var $ = !1; - if (p && ($ = EV[c.type](g, M), $ && a.remove(F)), F ? ls(F) : F = RV[c.type](r, s, _, M, d, h, u.model, !!F, v), f && (F.forceLabelAnimation = !0), E) { + if (p && ($ = PV[c.type](g, M), $ && a.remove(F)), F ? ls(F) : F = TV[c.type](r, s, _, M, d, h, u.model, !!F, v), f && (F.forceLabelAnimation = !0), E) { var I = F.getTextContent(); if (I) { - var V = vp(I); + var V = yp(I); V.prevValue != null && (V.prevValue = V.value); } } else - MV(F, s, _, A, M, r, d, c.type === "polar"); + IV(F, s, _, A, M, r, d, c.type === "polar"); x ? F.attr({ shape: M - }) : f ? PV(f, h, F, M, _, d, !0, E) : br(F, { + }) : f ? _V(f, h, F, M, _, d, !0, E) : br(F, { shape: M }, r, _, null), s.setItemGraphicEl(_, F), F.ignore = $, a.add(F); }).remove(function(_) { var D = l.getItemGraphicEl(_); - D && Yv(D, r, _); + D && Xv(D, r, _); }).execute(); var P = this._backgroundGroup || (this._backgroundGroup = new Ot()); P.removeAll(); @@ -69235,11 +69276,11 @@ var Wke = ( P.add(b[T]); a.add(P), this._backgroundEls = b, this._data = s; }, t.prototype._renderLarge = function(r, n, i) { - this._clear(), IV(r, this.group), this._updateLargeClip(r); + this._clear(), OV(r, this.group), this._updateLargeClip(r); }, t.prototype._incrementalRenderLarge = function(r, n) { - this._removeBackground(), IV(n, this.group, this._progressiveEls, !0); + this._removeBackground(), OV(n, this.group, this._progressiveEls, !0); }, t.prototype._updateLargeClip = function(r) { - var n = r.get("clip", !0) && ay(r.coordinateSystem, !1, r), i = this.group; + var n = r.get("clip", !0) && cy(r.coordinateSystem, !1, r), i = this.group; n ? i.setClipPath(n) : i.removeClipPath(); }, t.prototype._enableRealtimeSort = function(r, n, i) { var o = this; @@ -69317,13 +69358,13 @@ var Wke = ( }, t.prototype._clear = function(r) { var n = this.group, i = this._data; r && r.isAnimationEnabled() && i && !this._isLargeDraw ? (this._removeBackground(), this._backgroundEls = [], i.eachItemGraphicEl(function(o) { - Yv(o, r, Ft(o).dataIndex); + Xv(o, r, Ft(o).dataIndex); })) : n.removeAll(), this._data = null, this._isFirstFrame = !0; }, t.prototype._removeBackground = function() { this.group.remove(this._backgroundGroup), this._backgroundGroup = null; }, t.type = "bar", t; }($r) -), EV = { +), PV = { cartesian2d: function(e, t) { var r = t.width < 0 ? -1 : 1, n = t.height < 0 ? -1 : 1; r < 0 && (t.x += t.width, t.width = -t.width), n < 0 && (t.y += t.height, t.height = -t.height); @@ -69345,7 +69386,7 @@ var Wke = ( } return a; } -}, RV = { +}, TV = { cartesian2d: function(e, t, r, n, i, o, a, s, l) { var c = new mr({ shape: Pe({}, n), @@ -69358,14 +69399,14 @@ var Wke = ( return c; }, polar: function(e, t, r, n, i, o, a, s, l) { - var c = !i && l ? JS : io, u = new c({ + var c = !i && l ? tb : io, u = new c({ shape: n, z2: 1 }); u.name = "item"; - var d = IZ(i); - if (u.calculateTextPosition = Hke(d, { - isRoundCap: c === JS + var d = LZ(i); + if (u.calculateTextPosition = Qke(d, { + isRoundCap: c === tb }), o) { var h = u.shape, f = i ? "r" : "endAngle", p = {}; h[f] = i ? n.r0 : n.startAngle, p[f] = n[f], (s ? br : un)(u, { @@ -69376,7 +69417,7 @@ var Wke = ( return u; } }; -function jke(e, t) { +function r$e(e, t) { var r = e.get("realtimeSort", !0), n = t.getBaseAxis(); if (process.env.NODE_ENV !== "production" && r && (n.type !== "category" && Cn("`realtimeSort` will not work because this bar series is not based on a category axis."), t.type !== "cartesian2d" && Cn("`realtimeSort` will not work because this bar series is not on cartesian2d.")), r && n.type === "category" && t.type === "cartesian2d") return { @@ -69384,7 +69425,7 @@ function jke(e, t) { otherAxis: t.getOtherAxis(n) }; } -function PV(e, t, r, n, i, o, a, s) { +function _V(e, t, r, n, i, o, a, s) { var l, c; o ? (c = { x: n.x, @@ -69406,24 +69447,24 @@ function PV(e, t, r, n, i, o, a, s) { shape: c }, u, i); } -function TV(e, t) { +function MV(e, t) { for (var r = 0; r < t.length; r++) if (!isFinite(e[t[r]])) return !0; return !1; } -var Uke = ["x", "y", "width", "height"], Kke = ["cx", "cy", "r", "startAngle", "endAngle"], _V = { +var n$e = ["x", "y", "width", "height"], i$e = ["cx", "cy", "r", "startAngle", "endAngle"], DV = { cartesian2d: function(e) { - return !TV(e, Uke); + return !MV(e, n$e); }, polar: function(e) { - return !TV(e, Kke); + return !MV(e, i$e); } -}, T0 = { +}, D0 = { // itemModel is only used to get borderWidth, which is not needed // when calculating bar background layout. cartesian2d: function(e, t, r) { - var n = e.getItemLayout(t), i = r ? qke(r, n) : 0, o = n.width > 0 ? 1 : -1, a = n.height > 0 ? 1 : -1; + var n = e.getItemLayout(t), i = r ? a$e(r, n) : 0, o = n.width > 0 ? 1 : -1, a = n.height > 0 ? 1 : -1; return { x: n.x + o * i / 2, y: n.y + a * i / 2, @@ -69444,10 +69485,10 @@ var Uke = ["x", "y", "width", "height"], Kke = ["cx", "cy", "r", "startAngle", " }; } }; -function Yke(e) { +function o$e(e) { return e.startAngle != null && e.endAngle != null && e.startAngle === e.endAngle; } -function IZ(e) { +function LZ(e) { return /* @__PURE__ */ function(t) { var r = t ? "Arc" : "Angle"; return function(n) { @@ -69463,7 +69504,7 @@ function IZ(e) { }; }(e); } -function MV(e, t, r, n, i, o, a, s) { +function IV(e, t, r, n, i, o, a, s) { var l = t.getItemVisual(r, "style"); if (s) { if (!o.get("roundCap")) { @@ -69477,11 +69518,11 @@ function MV(e, t, r, n, i, o, a, s) { e.useStyle(l); var h = n.getShallow("cursor"); h && e.attr("cursor", h); - var f = s ? a ? i.r >= i.r0 ? "endArc" : "startArc" : i.endAngle >= i.startAngle ? "endAngle" : "startAngle" : a ? i.height >= 0 ? "bottom" : "top" : i.width >= 0 ? "right" : "left", p = li(n); - Ri(e, p, { + var f = s ? a ? i.r >= i.r0 ? "endArc" : "startArc" : i.endAngle >= i.startAngle ? "endAngle" : "startAngle" : a ? i.height >= 0 ? "bottom" : "top" : i.width >= 0 ? "right" : "left", p = ci(n); + Pi(e, p, { labelFetcher: o, labelDataIndex: r, - defaultText: Vf(o.getData(), r), + defaultText: zf(o.getData(), r), inheritColor: l.fill, defaultOpacity: l.opacity, defaultOutsidePosition: f @@ -69489,31 +69530,31 @@ function MV(e, t, r, n, i, o, a, s) { var g = e.getTextContent(); if (s && g) { var v = n.get(["label", "position"]); - e.textConfig.inside = v === "middle" ? !0 : null, zke(e, v === "outside" ? f : v, IZ(a), n.get(["label", "rotate"])); + e.textConfig.inside = v === "middle" ? !0 : null, Jke(e, v === "outside" ? f : v, LZ(a), n.get(["label", "rotate"])); } - JY(g, p, o.getRawValue(r), function(y) { - return wZ(t, y); + rq(g, p, o.getRawValue(r), function(y) { + return RZ(t, y); }); var m = n.getModel(["emphasis"]); - Rn(e, m.get("focus"), m.get("blurScope"), m.get("disabled")), Ei(e, n), Yke(i) && (e.style.fill = "none", e.style.stroke = "none", z(e.states, function(y) { + Rn(e, m.get("focus"), m.get("blurScope"), m.get("disabled")), Ri(e, n), o$e(i) && (e.style.fill = "none", e.style.stroke = "none", z(e.states, function(y) { y.style && (y.style.fill = y.style.stroke = "none"); })); } -function qke(e, t) { +function a$e(e, t) { var r = e.get(["itemStyle", "borderColor"]); if (!r || r === "none") return 0; var n = e.get(["itemStyle", "borderWidth"]) || 0, i = isNaN(t.width) ? Number.MAX_VALUE : Math.abs(t.width), o = isNaN(t.height) ? Number.MAX_VALUE : Math.abs(t.height); return Math.min(n, i, o); } -var Xke = ( +var s$e = ( /** @class */ /* @__PURE__ */ function() { function e() { } return e; }() -), DV = ( +), AV = ( /** @class */ function(e) { Se(t, e); @@ -69522,17 +69563,17 @@ var Xke = ( return n.type = "largeBar", n; } return t.prototype.getDefaultShape = function() { - return new Xke(); + return new s$e(); }, t.prototype.buildPath = function(r, n) { for (var i = n.points, o = this.baseDimIdx, a = 1 - this.baseDimIdx, s = [], l = [], c = this.barWidth, u = 0; u < i.length; u += 3) l[o] = c, l[a] = i[u + 2], s[o] = i[u + o], s[a] = i[u + a], r.rect(s[0], s[1], l[0], l[1]); }, t; }(nr) ); -function IV(e, t, r, n) { +function OV(e, t, r, n) { var i = e.getData(), o = i.getLayout("valueAxisHorizontal") ? 1 : 0, a = i.getLayout("largeDataIndices"), s = i.getLayout("size"), l = e.getModel("backgroundStyle"), c = i.getLayout("largeBackgroundPoints"); if (c) { - var u = new DV({ + var u = new AV({ shape: { points: c }, @@ -69542,7 +69583,7 @@ function IV(e, t, r, n) { }); u.baseDimIdx = o, u.largeDataIndices = a, u.barWidth = s, u.useStyle(l.getItemStyle()), t.add(u), r && r.push(u); } - var d = new DV({ + var d = new AV({ shape: { points: i.getLayout("largePoints") }, @@ -69550,13 +69591,13 @@ function IV(e, t, r, n) { ignoreCoarsePointer: !0, z2: 1 }); - d.baseDimIdx = o, d.largeDataIndices = a, d.barWidth = s, t.add(d), d.useStyle(i.getVisual("style")), Ft(d).seriesIndex = e.seriesIndex, e.get("silent") || (d.on("mousedown", AV), d.on("mousemove", AV)), r && r.push(d); + d.baseDimIdx = o, d.largeDataIndices = a, d.barWidth = s, t.add(d), d.useStyle(i.getVisual("style")), Ft(d).seriesIndex = e.seriesIndex, e.get("silent") || (d.on("mousedown", LV), d.on("mousemove", LV)), r && r.push(d); } -var AV = Qw(function(e) { - var t = this, r = Zke(t, e.offsetX, e.offsetY); +var LV = Qw(function(e) { + var t = this, r = l$e(t, e.offsetX, e.offsetY); Ft(t).dataIndex = r >= 0 ? r : null; }, 30, !1); -function Zke(e, t, r) { +function l$e(e, t, r) { for (var n = e.baseDimIdx, i = 1 - n, o = e.shape.points, a = e.largeDataIndices, s = [], l = [], c = e.barWidth, u = 0, d = o.length / 3; u < d; u++) { var h = u * 3; if (l[n] = c, l[i] = o[h + 2], s[n] = o[h + n], s[i] = o[h + i], l[i] < 0 && (s[i] += l[i], l[i] = -l[i]), t >= s[0] && t <= s[0] + l[0] && r >= s[1] && r <= s[1] + l[1]) @@ -69564,7 +69605,7 @@ function Zke(e, t, r) { } return -1; } -function AZ(e, t, r) { +function FZ(e, t, r) { if (Qd(r, "cartesian2d")) { var n = t, i = r.getArea(); return { @@ -69585,16 +69626,16 @@ function AZ(e, t, r) { }; } } -function Qke(e, t, r) { +function c$e(e, t, r) { var n = e.type === "polar" ? io : mr; return new n({ - shape: AZ(t, r, e), + shape: FZ(t, r, e), silent: !0, z2: 0 }); } -function Jke(e) { - e.registerChartView(Wke), e.registerSeriesModel(Bke), e.registerLayout(e.PRIORITY.VISUAL.LAYOUT, Vt(kX, "bar")), e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, $X("bar")), e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC, DZ("bar")), e.registerAction({ +function u$e(e) { + e.registerChartView(t$e), e.registerSeriesModel(Xke), e.registerLayout(e.PRIORITY.VISUAL.LAYOUT, Vt(VX, "bar")), e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, HX("bar")), e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC, OZ("bar")), e.registerAction({ type: "changeAxisOrder", event: "changeAxisOrder", update: "update" @@ -69608,22 +69649,22 @@ function Jke(e) { }); }); } -var OV = Math.PI * 2, _0 = Math.PI / 180; -function OZ(e, t) { +var FV = Math.PI * 2, I0 = Math.PI / 180; +function NZ(e, t) { return jn(e.getBoxLayoutParams(), { width: t.getWidth(), height: t.getHeight() }); } -function LZ(e, t) { - var r = OZ(e, t), n = e.get("center"), i = e.get("radius"); - Ie(i) || (i = [0, i]); +function kZ(e, t) { + var r = NZ(e, t), n = e.get("center"), i = e.get("radius"); + Ae(i) || (i = [0, i]); var o = Ze(r.width, t.getWidth()), a = Ze(r.height, t.getHeight()), s = Math.min(o, a), l = Ze(i[0], s / 2), c = Ze(i[1], s / 2), u, d, h = e.coordinateSystem; if (h) { var f = h.dataToPoint(n); u = f[0] || 0, d = f[1] || 0; } else - Ie(n) || (n = [n, n]), u = Ze(n[0], o) + r.x, d = Ze(n[1], a) + r.y; + Ae(n) || (n = [n, n]), u = Ze(n[0], o) + r.x, d = Ze(n[1], a) + r.y; return { cx: u, cy: d, @@ -69631,19 +69672,19 @@ function LZ(e, t) { r: c }; } -function e$e(e, t, r) { +function d$e(e, t, r) { t.eachSeriesByType(e, function(n) { - var i = n.getData(), o = i.mapDimension("value"), a = OZ(n, r), s = LZ(n, r), l = s.cx, c = s.cy, u = s.r, d = s.r0, h = -n.get("startAngle") * _0, f = n.get("endAngle"), p = n.get("padAngle") * _0; - f = f === "auto" ? h - OV : -f * _0; - var g = n.get("minAngle") * _0, v = g + p, m = 0; + var i = n.getData(), o = i.mapDimension("value"), a = NZ(n, r), s = kZ(n, r), l = s.cx, c = s.cy, u = s.r, d = s.r0, h = -n.get("startAngle") * I0, f = n.get("endAngle"), p = n.get("padAngle") * I0; + f = f === "auto" ? h - FV : -f * I0; + var g = n.get("minAngle") * I0, v = g + p, m = 0; i.each(o, function(N) { !isNaN(N) && m++; }); var y = i.getSum(o), C = Math.PI / (y || m) * 2, b = n.get("clockwise"), w = n.get("roseType"), x = n.get("stillShowZeroSum"), E = i.getDataExtent(o); E[0] = 0; var R = b ? 1 : -1, P = [h, f], T = R * p / 2; - B2(P, !b), h = P[0], f = P[1]; - var _ = FZ(n); + BI(P, !b), h = P[0], f = P[1]; + var _ = $Z(n); _.startAngle = h, _.endAngle = f, _.clockwise = b; var D = Math.abs(f - h), A = D, M = 0, O = h; if (i.setLayout({ @@ -69676,7 +69717,7 @@ function e$e(e, t, r) { r0: d, r: w ? Lr(N, E, [d, u]) : u }), O = I; - }), A < OV && m) + }), A < FV && m) if (A <= 1e-3) { var L = D / m; i.each(o, function(N, F) { @@ -69696,8 +69737,8 @@ function e$e(e, t, r) { }); }); } -var FZ = yr(); -function ly(e) { +var $Z = yr(); +function dy(e) { return { seriesType: e, reset: function(t, r) { @@ -69716,14 +69757,14 @@ function ly(e) { } }; } -var t$e = Math.PI / 180; -function LV(e, t, r, n, i, o, a, s, l, c) { +var h$e = Math.PI / 180; +function NV(e, t, r, n, i, o, a, s, l, c) { if (e.length < 2) return; function u(g) { for (var v = g.rB, m = v * v, y = 0; y < g.list.length; y++) { var C = g.list[y], b = Math.abs(C.label.y - r), w = n + C.len, x = w * w, E = Math.sqrt((1 - Math.abs(b * b / m)) * x), R = t + (E + C.len2) * i, P = R - C.label.x, T = C.targetTextWidth - P * i; - NZ(C, T, !0), C.label.x = R; + BZ(C, T, !0), C.label.x = R; } } function d(g) { @@ -69749,9 +69790,9 @@ function LV(e, t, r, n, i, o, a, s, l, c) { var p = e[f].label.x - c; e[f].linePoints[1][0] += p, e[f].label.x = c; } - oZ(e, l, l + a) && d(e); + lZ(e, l, l + a) && d(e); } -function r$e(e, t, r, n, i, o, a, s) { +function f$e(e, t, r, n, i, o, a, s) { for (var l = [], c = [], u = Number.MAX_VALUE, d = -Number.MAX_VALUE, h = 0; h < e.length; h++) { var f = e[h].label; XE(e[h]) || (f.x < t ? (u = Math.min(u, f.x), l.push(e[h])) : (d = Math.max(d, f.x), c.push(e[h]))); @@ -69762,10 +69803,10 @@ function r$e(e, t, r, n, i, o, a, s) { if (p.labelStyleWidth != null) continue; var f = p.label, g = p.linePoints, v = void 0; - p.labelAlignTo === "edge" ? f.x < t ? v = g[2][0] - p.labelDistance - a - p.edgeDistance : v = a + i - p.edgeDistance - g[2][0] - p.labelDistance : p.labelAlignTo === "labelLine" ? f.x < t ? v = u - a - p.bleedMargin : v = a + i - d - p.bleedMargin : f.x < t ? v = f.x - a - p.bleedMargin : v = a + i - f.x - p.bleedMargin, p.targetTextWidth = v, NZ(p, v); + p.labelAlignTo === "edge" ? f.x < t ? v = g[2][0] - p.labelDistance - a - p.edgeDistance : v = a + i - p.edgeDistance - g[2][0] - p.labelDistance : p.labelAlignTo === "labelLine" ? f.x < t ? v = u - a - p.bleedMargin : v = a + i - d - p.bleedMargin : f.x < t ? v = f.x - a - p.bleedMargin : v = a + i - f.x - p.bleedMargin, p.targetTextWidth = v, BZ(p, v); } } - LV(c, t, r, n, 1, i, o, a, s, d), LV(l, t, r, n, -1, i, o, a, s, u); + NV(c, t, r, n, 1, i, o, a, s, d), NV(l, t, r, n, -1, i, o, a, s, u); for (var h = 0; h < e.length; h++) { var p = e[h]; if (!XE(p) && p.linePoints) { @@ -69774,7 +69815,7 @@ function r$e(e, t, r, n, i, o, a, s) { } } } -function NZ(e, t, r) { +function BZ(e, t, r) { if (r === void 0 && (r = !1), e.labelStyleWidth == null) { var n = e.label, i = n.style, o = e.rect, a = i.backgroundColor, s = i.padding, l = s ? s[1] + s[3] : 0, c = i.overflow, u = o.width + (a ? 0 : l); if (t < u || r) { @@ -69801,8 +69842,8 @@ function NZ(e, t, r) { function XE(e) { return e.position === "center"; } -function n$e(e) { - var t = e.getData(), r = [], n, i, o = !1, a = (e.get("minShowLabelAngle") || 0) * t$e, s = t.getLayout("viewRect"), l = t.getLayout("r"), c = s.width, u = s.x, d = s.y, h = s.height; +function p$e(e) { + var t = e.getData(), r = [], n, i, o = !1, a = (e.get("minShowLabelAngle") || 0) * h$e, s = t.getLayout("viewRect"), l = t.getLayout("r"), c = s.width, u = s.x, d = s.y, h = s.height; function f(x) { x.ignore = !0; } @@ -69829,26 +69870,26 @@ function n$e(e) { if (A === "center") W = R.cx, j = R.cy, q = "center"; else { - var te = (J ? (R.r + R.r0) / 2 * H : R.r * H) + n, Q = (J ? (R.r + R.r0) / 2 * B : R.r * B) + i; - if (W = te + H * 3, j = Q + B * 3, !J) { - var Y = te + H * ($ + l - R.r), K = Q + B * ($ + l - R.r), ae = Y + (H < 0 ? -1 : 1) * I, G = K; - O === "edge" ? W = H < 0 ? u + L : u + c - L : W = ae + (H < 0 ? -M : M), j = G, X = [[te, Q], [Y, K], [ae, G]]; + var re = (J ? (R.r + R.r0) / 2 * H : R.r * H) + n, Q = (J ? (R.r + R.r0) / 2 * B : R.r * B) + i; + if (W = re + H * 3, j = Q + B * 3, !J) { + var Y = re + H * ($ + l - R.r), K = Q + B * ($ + l - R.r), ae = Y + (H < 0 ? -1 : 1) * I, G = K; + O === "edge" ? W = H < 0 ? u + L : u + c - L : W = ae + (H < 0 ? -M : M), j = G, X = [[re, Q], [Y, K], [ae, G]]; } q = J ? "center" : O === "edge" ? H > 0 ? "right" : "left" : H > 0 ? "left" : "right"; } - var re = Math.PI, le = 0, ue = D.get("rotate"); + var ne = Math.PI, le = 0, ue = D.get("rotate"); if (Cr(ue)) - le = ue * (re / 180); + le = ue * (ne / 180); else if (A === "center") le = 0; else if (ue === "radial" || ue === !0) { - var he = H < 0 ? -V + re : -V; + var he = H < 0 ? -V + ne : -V; le = he; } else if (ue === "tangential" && A !== "outside" && A !== "outer") { var fe = Math.atan2(H, B); - fe < 0 && (fe = re * 2 + fe); + fe < 0 && (fe = ne * 2 + fe); var de = B > 0; - de && (fe = re + fe), le = fe - re; + de && (fe = ne + fe), le = fe - ne; } if (o = !!le, P.x = W, P.y = j, P.rotation = le, P.setStyle({ verticalAlign: "middle" @@ -69870,7 +69911,7 @@ function n$e(e) { len2: I, minTurnAngle: F.get("minTurnAngle"), maxSurfaceAngle: F.get("maxSurfaceAngle"), - surfaceNormal: new Ut(H, B), + surfaceNormal: new Kt(H, B), linePoints: X, textAlign: q, labelDistance: M, @@ -69886,7 +69927,7 @@ function n$e(e) { inside: J }); } - }), !o && e.get("avoidLabelOverlap") && r$e(r, n, i, l, c, h, u, d); + }), !o && e.get("avoidLabelOverlap") && f$e(r, n, i, l, c, h, u, d); for (var g = 0; g < r.length; g++) { var v = r[g], m = v.label, y = v.labelLine, C = isNaN(m.x) || isNaN(m.y); if (m) { @@ -69898,15 +69939,15 @@ function n$e(e) { } if (y) { var w = v.linePoints; - C || !w ? (z(y.states, f), y.ignore = !0) : (rZ(w, v.minTurnAngle), PNe(w, v.surfaceNormal, v.maxSurfaceAngle), y.setShape({ + C || !w ? (z(y.states, f), y.ignore = !0) : (oZ(w, v.minTurnAngle), kNe(w, v.surfaceNormal, v.maxSurfaceAngle), y.setShape({ points: w }), m.__hostTarget.textGuideLineConfig = { - anchor: new Ut(w[0][0], w[0][1]) + anchor: new Kt(w[0][0], w[0][1]) }); } } } -var i$e = ( +var g$e = ( /** @class */ function(e) { Se(t, e); @@ -69952,7 +69993,7 @@ var i$e = ( ls(a), br(a, { shape: d }, s, n); - a.useStyle(r.getItemVisual(n, "style")), Ei(a, l); + a.useStyle(r.getItemVisual(n, "style")), Ri(a, l); var f = (u.startAngle + u.endAngle) / 2, p = s.get("selectedOffset"), g = Math.cos(f) * p, v = Math.sin(f) * p, m = l.getShallow("cursor"); m && a.attr("cursor", m), this._updateLabel(s, r, n), a.ensureState("emphasis").shape = Pe({ r: u.r + (c.get("scale") && c.get("scaleSize") || 0) @@ -69973,7 +70014,7 @@ var i$e = ( }), Rn(this, c.get("focus"), c.get("blurScope"), c.get("disabled")); }, t.prototype._updateLabel = function(r, n, i) { var o = this, a = n.getItemModel(i), s = a.getModel("labelLine"), l = n.getItemVisual(i, "style"), c = l && l.fill, u = l && l.opacity; - Ri(o, li(a), { + Pi(o, ci(a), { labelFetcher: n.hostModel, labelDataIndex: i, inheritColor: c, @@ -70000,7 +70041,7 @@ var i$e = ( } }, t; }(io) -), o$e = ( +), v$e = ( /** @class */ function(e) { Se(t, e); @@ -70016,21 +70057,21 @@ var i$e = ( u && (c = u.startAngle); } if (this._emptyCircleSector && l.remove(this._emptyCircleSector), a.count() === 0 && r.get("showEmptyCircle")) { - var h = FZ(r), f = new io({ - shape: Pe(LZ(r, i), h) + var h = $Z(r), f = new io({ + shape: Pe(kZ(r, i), h) }); f.useStyle(r.getModel("emptyCircleStyle").getItemStyle()), this._emptyCircleSector = f, l.add(f); } a.diff(s).add(function(p) { - var g = new i$e(a, p, c); + var g = new g$e(a, p, c); a.setItemGraphicEl(p, g), l.add(g); }).update(function(p, g) { var v = s.getItemGraphicEl(g); v.updateData(a, p, c), v.off("click"), l.add(v), a.setItemGraphicEl(p, v); }).remove(function(p) { var g = s.getItemGraphicEl(p); - Yv(g, r, p); - }).execute(), n$e(r), r.get("animationTypeUpdate") !== "expansion" && (this._data = a); + Xv(g, r, p); + }).execute(), p$e(r), r.get("animationTypeUpdate") !== "expansion" && (this._data = a); }, t.prototype.dispose = function() { }, t.prototype.containPoint = function(r, n) { var i = n.getData(), o = i.getItemLayout(0); @@ -70041,16 +70082,16 @@ var i$e = ( }, t.type = "pie", t; }($r) ); -function Pp(e, t, r) { - t = Ie(t) && { +function _p(e, t, r) { + t = Ae(t) && { coordDimensions: t } || Pe({ encodeDefine: e.getEncode() }, t); - var n = e.getSource(), i = xp(n, t).dimensions, o = new Fi(i, e); + var n = e.getSource(), i = Rp(n, t).dimensions, o = new Fi(i, e); return o.initData(n, r), o; } -var cy = ( +var hy = ( /** @class */ function() { function e(t, r) { @@ -70070,7 +70111,7 @@ var cy = ( return n.getItemVisual(t, r); }, e; }() -), a$e = yr(), s$e = ( +), m$e = yr(), y$e = ( /** @class */ function(e) { Se(t, e); @@ -70078,21 +70119,21 @@ var cy = ( return e !== null && e.apply(this, arguments) || this; } return t.prototype.init = function(r) { - e.prototype.init.apply(this, arguments), this.legendVisualProvider = new cy(at(this.getData, this), at(this.getRawData, this)), this._defaultLabelLine(r); + e.prototype.init.apply(this, arguments), this.legendVisualProvider = new hy(at(this.getData, this), at(this.getRawData, this)), this._defaultLabelLine(r); }, t.prototype.mergeOption = function() { e.prototype.mergeOption.apply(this, arguments); }, t.prototype.getInitialData = function() { - return Pp(this, { + return _p(this, { coordDimensions: ["value"], encodeDefaulter: Vt(lA, this) }); }, t.prototype.getDataParams = function(r) { - var n = this.getData(), i = a$e(n), o = i.seats; + var n = this.getData(), i = m$e(n), o = i.seats; if (!o) { var a = []; n.each(n.mapDimension("value"), function(l) { a.push(l); - }), o = i.seats = YK(a, n.hostModel.get("percentPrecision")); + }), o = i.seats = ZK(a, n.hostModel.get("percentPrecision")); } var s = e.prototype.getDataParams.call(this, r); return s.percent = o[r] || 0, s.$vars.push("percent"), s; @@ -70201,7 +70242,7 @@ var cy = ( }, t; }(jr) ); -function l$e(e) { +function C$e(e) { return { seriesType: e, reset: function(t, r) { @@ -70213,10 +70254,10 @@ function l$e(e) { } }; } -function c$e(e) { - e.registerChartView(o$e), e.registerSeriesModel(s$e), tX("pie", e.registerAction), e.registerLayout(Vt(e$e, "pie")), e.registerProcessor(ly("pie")), e.registerProcessor(l$e("pie")); +function S$e(e) { + e.registerChartView(v$e), e.registerSeriesModel(y$e), iX("pie", e.registerAction), e.registerLayout(Vt(d$e, "pie")), e.registerProcessor(dy("pie")), e.registerProcessor(C$e("pie")); } -var u$e = ( +var b$e = ( /** @class */ function(e) { Se(t, e); @@ -70225,7 +70266,7 @@ var u$e = ( return r.type = t.type, r.hasSymbolVisual = !0, r; } return t.prototype.getInitialData = function(r, n) { - return rl(null, this, { + return nl(null, this, { useEncodeDefaulter: !0 }); }, t.prototype.getProgressive = function() { @@ -70270,14 +70311,14 @@ var u$e = ( // progressive: null }, t; }(jr) -), kZ = 4, d$e = ( +), VZ = 4, w$e = ( /** @class */ /* @__PURE__ */ function() { function e() { } return e; }() -), h$e = ( +), x$e = ( /** @class */ function(e) { Se(t, e); @@ -70286,11 +70327,11 @@ var u$e = ( return n._off = 0, n.hoverDataIdx = -1, n; } return t.prototype.getDefaultShape = function() { - return new d$e(); + return new w$e(); }, t.prototype.reset = function() { this.notClear = !1, this._off = 0; }, t.prototype.buildPath = function(r, n) { - var i = n.points, o = n.size, a = this.symbolProxy, s = a.shape, l = r.getContext ? r.getContext() : r, c = l && o[0] < kZ, u = this.softClipShape, d; + var i = n.points, o = n.size, a = this.symbolProxy, s = a.shape, l = r.getContext ? r.getContext() : r, c = l && o[0] < VZ, u = this.softClipShape, d; if (c) { this._ctx = l; return; @@ -70330,12 +70371,12 @@ var u$e = ( var f = i[h++], p = i[h++]; l = Math.min(f, l), u = Math.max(f, u), c = Math.min(p, c), d = Math.max(p, d); } - r = this._rect = new Kt(l - a / 2, c - s / 2, u - l + a, d - c + s); + r = this._rect = new Yt(l - a / 2, c - s / 2, u - l + a, d - c + s); } return r; }, t; }(nr) -), f$e = ( +), E$e = ( /** @class */ function() { function e() { @@ -70375,7 +70416,7 @@ var u$e = ( }, e.prototype.eachRendered = function(t) { this._newAdded[0] && t(this._newAdded[0]); }, e.prototype._create = function() { - var t = new h$e({ + var t = new x$e({ cursor: "default" }); return t.ignoreCoarsePointer = !0, this.group.add(t), this._newAdded.push(t), t; @@ -70384,7 +70425,7 @@ var u$e = ( n = n || {}; var o = r.getVisual("symbolSize"); t.setShape("size", o instanceof Array ? o : [o, o]), t.softClipShape = n.clipShape || null, t.symbolProxy = Bn(r.getVisual("symbol"), 0, 0, 0, 0), t.setColor = t.symbolProxy.setColor; - var a = t.shape.size[0] < kZ; + var a = t.shape.size[0] < VZ; t.useStyle( // Draw shadow when doing fillRect is extremely slow. i.getModel("itemStyle").getItemStyle(a ? ["color", "shadowBlur", "shadowColor"] : ["color"]) @@ -70403,7 +70444,7 @@ var u$e = ( this._newAdded = [], this.group.removeAll(); }, e; }() -), p$e = ( +), R$e = ( /** @class */ function(e) { Se(t, e); @@ -70433,7 +70474,7 @@ var u$e = ( return { update: !0 }; - var a = sy("").reset(r, n, i); + var a = uy("").reset(r, n, i); a.progress && a.progress({ start: 0, end: o.count(), @@ -70448,13 +70489,13 @@ var u$e = ( } }, t.prototype._updateSymbolDraw = function(r, n) { var i = this._symbolDraw, o = n.pipelineContext, a = o.large; - return (!i || a !== this._isLargeDraw) && (i && i.remove(), i = this._symbolDraw = a ? new f$e() : new oy(), this._isLargeDraw = a, this.group.removeAll()), this.group.add(i.group), i; + return (!i || a !== this._isLargeDraw) && (i && i.remove(), i = this._symbolDraw = a ? new E$e() : new ly(), this._isLargeDraw = a, this.group.removeAll()), this.group.add(i.group), i; }, t.prototype.remove = function(r, n) { this._symbolDraw && this._symbolDraw.remove(!0), this._symbolDraw = null; }, t.prototype.dispose = function() { }, t.type = "scatter", t; }($r) -), g$e = ( +), P$e = ( /** @class */ function(e) { Se(t, e); @@ -70490,8 +70531,8 @@ var u$e = ( }, t.type = "cartesian2dAxis", t; }(Qt) ); -In(SM, Rp); -var $Z = { +In(SM, Tp); +var HZ = { show: !0, // zlevel: 0, z: 0, @@ -70570,7 +70611,7 @@ var $Z = { color: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"] } } -}, v$e = Wt({ +}, T$e = jt({ // The gap at both ends of the axis. For categoryAxis, boolean. boundaryGap: !0, // Set false to faster category collection. @@ -70589,7 +70630,7 @@ var $Z = { axisLabel: { interval: "auto" } -}, $Z), GA = Wt({ +}, HZ), GA = jt({ boundaryGap: [0, 0], axisLine: { // Not shown when other axis is categoryAxis in cartesian @@ -70621,7 +70662,7 @@ var $Z = { width: 1 } } -}, $Z), m$e = Wt({ +}, HZ), _$e = jt({ splitNumber: 6, axisLabel: { // To eliminate labels that are not nice @@ -70636,24 +70677,24 @@ var $Z = { splitLine: { show: !1 } -}, GA), y$e = wt({ +}, GA), M$e = xt({ logBase: 10 }, GA); -const BZ = { - category: v$e, +const zZ = { + category: T$e, value: GA, - time: m$e, - log: y$e + time: _$e, + log: M$e }; -var C$e = { +var D$e = { value: 1, category: 1, time: 1, log: 1 }; -function Hf(e, t, r, n) { - z(C$e, function(i, o) { - var a = Wt(Wt({}, BZ[o], !0), n, !0), s = ( +function Gf(e, t, r, n) { + z(D$e, function(i, o) { + var a = jt(jt({}, zZ[o], !0), n, !0), s = ( /** @class */ function(l) { Se(c, l); @@ -70662,8 +70703,8 @@ function Hf(e, t, r, n) { return u.type = t + "Axis." + o, u; } return c.prototype.mergeDefaultAndTheme = function(u, d) { - var h = Xv(this), f = h ? yp(u) : {}, p = d.getTheme(); - Wt(u, p.get(o + "Axis")), Wt(u, this.getDefaultOption()), u.type = FV(u), h && Uc(u, f, h); + var h = Qv(this), f = h ? Sp(u) : {}, p = d.getTheme(); + jt(u, p.get(o + "Axis")), jt(u, this.getDefaultOption()), u.type = kV(u), h && Uc(u, f, h); }, c.prototype.optionUpdated = function() { var u = this.option; u.type === "category" && (this.__ordinalMeta = hM.createByAxisModel(this)); @@ -70677,12 +70718,12 @@ function Hf(e, t, r, n) { }(r) ); e.registerComponentModel(s); - }), e.registerSubTypeDefaulter(t + "Axis", FV); + }), e.registerSubTypeDefaulter(t + "Axis", kV); } -function FV(e) { +function kV(e) { return e.type || (e.data ? "category" : "value"); } -var S$e = ( +var I$e = ( /** @class */ function() { function e(t) { @@ -70695,7 +70736,7 @@ var S$e = ( return this._axes[t]; }, this); }, e.prototype.getAxesByScale = function(t) { - return t = t.toLowerCase(), Fr(this.getAxes(), function(r) { + return t = t.toLowerCase(), Nr(this.getAxes(), function(r) { return r.scale.type === t; }); }, e.prototype.addAxis = function(t) { @@ -70704,10 +70745,10 @@ var S$e = ( }, e; }() ), bM = ["x", "y"]; -function NV(e) { +function $V(e) { return e.type === "interval" || e.type === "time"; } -var b$e = ( +var A$e = ( /** @class */ function(e) { Se(t, e); @@ -70718,7 +70759,7 @@ var b$e = ( return t.prototype.calcAffineTransform = function() { this._transform = this._invTransform = null; var r = this.getAxis("x").scale, n = this.getAxis("y").scale; - if (!(!NV(r) || !NV(n))) { + if (!(!$V(r) || !$V(n))) { var i = r.getExtent(), o = n.getExtent(), a = this.dataToPoint([i[0], o[0]]), s = this.dataToPoint([i[1], o[1]]), l = i[1] - i[0], c = o[1] - o[0]; if (!(!l || !c)) { var u = (s[0] - a[0]) / l, d = (s[1] - a[1]) / c, h = a[0] - i[0] * u, f = a[1] - o[0] * d, p = this._transform = [u, 0, 0, d, h, f]; @@ -70733,13 +70774,13 @@ var b$e = ( }, t.prototype.containData = function(r) { return this.getAxis("x").containData(r[0]) && this.getAxis("y").containData(r[1]); }, t.prototype.containZone = function(r, n) { - var i = this.dataToPoint(r), o = this.dataToPoint(n), a = this.getArea(), s = new Kt(i[0], i[1], o[0] - i[0], o[1] - i[1]); + var i = this.dataToPoint(r), o = this.dataToPoint(n), a = this.getArea(), s = new Yt(i[0], i[1], o[0] - i[0], o[1] - i[1]); return a.intersect(s); }, t.prototype.dataToPoint = function(r, n, i) { i = i || []; var o = r[0], a = r[1]; if (this._transform && o != null && isFinite(o) && a != null && isFinite(a)) - return gi(i, r, this._transform); + return vi(i, r, this._transform); var s = this.getAxis("x"), l = this.getAxis("y"); return i[0] = s.toGlobalCoord(s.dataToCoord(o, n)), i[1] = l.toGlobalCoord(l.dataToCoord(a, n)), i; }, t.prototype.clampData = function(r, n) { @@ -70748,7 +70789,7 @@ var b$e = ( }, t.prototype.pointToData = function(r, n) { var i = []; if (this._invTransform) - return gi(i, r, this._invTransform); + return vi(i, r, this._invTransform); var o = this.getAxis("x"), a = this.getAxis("y"); return i[0] = o.coordToData(o.toLocalCoord(r[0]), n), i[1] = a.coordToData(a.toLocalCoord(r[1]), n), i; }, t.prototype.getOtherAxis = function(r) { @@ -70756,10 +70797,10 @@ var b$e = ( }, t.prototype.getArea = function(r) { r = r || 0; var n = this.getAxis("x").getGlobalExtent(), i = this.getAxis("y").getGlobalExtent(), o = Math.min(n[0], n[1]) - r, a = Math.min(i[0], i[1]) - r, s = Math.max(n[0], n[1]) - o + r, l = Math.max(i[0], i[1]) - a + r; - return new Kt(o, a, s, l); + return new Yt(o, a, s, l); }, t; - }(S$e) -), w$e = ( + }(I$e) +), O$e = ( /** @class */ function(e) { Se(t, e); @@ -70806,10 +70847,10 @@ function wM(e, t, r) { var m = t.get(["axisLabel", "rotate"]); return o.labelRotate = l === "top" ? -m : m, o.z2 = 1, o; } -function kV(e) { +function BV(e) { return e.get("coordinateSystem") === "cartesian2d"; } -function $V(e) { +function VV(e) { var t = { xAxisModel: null, yAxisModel: null @@ -70822,8 +70863,8 @@ function $V(e) { }), t; } var ZE = Math.log; -function VZ(e, t, r) { - var n = Wl.prototype, i = n.getTicks.call(r), o = n.getTicks.call(r, !0), a = i.length - 1, s = n.getInterval.call(r), l = GX(e, t), c = l.extent, u = l.fixMin, d = l.fixMax; +function GZ(e, t, r) { + var n = jl.prototype, i = n.getTicks.call(r), o = n.getTicks.call(r, !0), a = i.length - 1, s = n.getInterval.call(r), l = UX(e, t), c = l.extent, u = l.fixMin, d = l.fixMax; if (e.type === "log") { var h = ZE(e.base); c = [ZE(c[0]) / h, ZE(c[1]) / h]; @@ -70853,13 +70894,13 @@ function VZ(e, t, r) { var C = (i[0].value - o[0].value) / s, b = (i[a].value - o[a].value) / s; if (n.setExtent.call(e, g + p * C, v + p * b), n.setInterval.call(e, p), (C || b) && n.setNiceExtent.call(e, g + p, v - p), process.env.NODE_ENV !== "production") { var w = n.getTicks.call(e); - w[1] && (!yFe(p) || _S(w[1].value) > _S(p)) && Cn( + w[1] && (!MFe(p) || DS(w[1].value) > DS(p)) && Cn( // eslint-disable-next-line "The ticks may be not readable when set min: " + t.get("min") + ", max: " + t.get("max") + " and alignTicks: true" ); } } -var x$e = ( +var L$e = ( /** @class */ function() { function e(t, r, n) { @@ -70879,16 +70920,16 @@ var x$e = ( fM(g) && p.get("alignTicks") && p.get("interval") == null ? u.push(f) : (Ld(g, p), fM(g) && (s = f)); } u.length && (s || (s = u.pop(), Ld(s.scale, s.model)), z(u, function(v) { - VZ(v.scale, v.model, s.scale); + GZ(v.scale, v.model, s.scale); })); } } i(n.x), i(n.y); var o = {}; z(n.x, function(a) { - BV(n, "y", a, o); + HV(n, "y", a, o); }), z(n.y, function(a) { - BV(n, "x", a, o); + HV(n, "x", a, o); }), this.resize(this.model, r); }, e.prototype.resize = function(t, r, n) { var i = t.getBoxLayoutParams(), o = !n && t.get("containLabel"), a = jn(i, { @@ -70899,7 +70940,7 @@ var x$e = ( var s = this._axesList; l(), o && (z(s, function(c) { if (!c.model.get(["axisLabel", "inside"])) { - var u = zFe(c); + var u = JFe(c); if (u) { var d = c.isHorizontal() ? "height" : "width", h = c.model.get(["axisLabel", "margin"]); a[d] -= u[d] + h, c.position === "top" ? a.y += u.height + h : c.position === "left" && (a.x += u.width + h); @@ -70911,7 +70952,7 @@ var x$e = ( function l() { z(s, function(c) { var u = c.isHorizontal(), d = u ? [0, a.width] : [0, a.height], h = c.inverse ? 1 : 0; - c.setExtent(d[h], d[1 - h]), E$e(c, u ? a.x : a.y); + c.setExtent(d[h], d[1 - h]), F$e(c, u ? a.x : a.y); }); } }, e.prototype.getAxis = function(t, r) { @@ -70925,7 +70966,7 @@ var x$e = ( var n = "x" + t + "y" + r; return this._coordsMap[n]; } - St(t) && (r = t.yAxisIndex, t = t.xAxisIndex); + bt(t) && (r = t.yAxisIndex, t = t.xAxisIndex); for (var i = 0, o = this._coordsList; i < o.length; i++) if (o[i].getAxis("x").index === t || o[i].getAxis("y").index === r) return o[i]; @@ -70940,7 +70981,7 @@ var x$e = ( }, e.prototype._findConvertTarget = function(t) { var r = t.seriesModel, n = t.xAxisModel || r && r.getReferringComponents("xAxis", Wn).models[0], i = t.yAxisModel || r && r.getReferringComponents("yAxis", Wn).models[0], o = t.gridModel, a = this._coordsList, s, l; if (r) - s = r.coordinateSystem, Yt(a, s) < 0 && (s = null); + s = r.coordinateSystem, qt(a, s) < 0 && (s = null); else if (n && i) s = this.getCartesian(n.componentIndex, i.componentIndex); else if (n) @@ -70978,7 +71019,7 @@ var x$e = ( } this._axesMap = s, z(s.x, function(u, d) { z(s.y, function(h, f) { - var p = "x" + d + "y" + f, g = new b$e(p); + var p = "x" + d + "y" + f, g = new A$e(p); g.master = i, g.model = t, i._coordsMap[p] = g, i._coordsList.push(g), g.addAxis(u), g.addAxis(h); }); }); @@ -70987,7 +71028,7 @@ var x$e = ( if (QE(d, t)) { var f = d.get("position"); u === "x" ? f !== "top" && f !== "bottom" && (f = a.bottom ? "top" : "bottom") : f !== "left" && f !== "right" && (f = a.left ? "right" : "left"), a[f] = !0; - var p = new w$e(u, ny(d), [0, 0], d.get("type"), f), g = p.type === "category"; + var p = new O$e(u, ay(d), [0, 0], d.get("type"), f), g = p.type === "category"; p.onBand = g && d.get("boundaryGap"), p.inverse = d.get("inverse"), d.axis = p, p.model = d, p.grid = o, p.index = h, o._axesList.push(p), s[u][h] = p, l[u]++; } }; @@ -70999,8 +71040,8 @@ var x$e = ( i.scale.setSortInfo(o); } }), t.eachSeries(function(i) { - if (kV(i)) { - var o = $V(i), a = o.xAxisModel, s = o.yAxisModel; + if (BV(i)) { + var o = VV(i), a = o.xAxisModel, s = o.yAxisModel; if (!QE(a, r) || !QE(s, r)) return; var l = this.getCartesian(a.componentIndex, s.componentIndex), c = i.getData(), u = l.getAxis("x"), d = l.getAxis("y"); @@ -71008,7 +71049,7 @@ var x$e = ( } }, this); function n(i, o) { - z(qS(i, o.dim), function(a) { + z(ZS(i, o.dim), function(a) { o.scale.unionExtentFromData(i, a); }); } @@ -71016,7 +71057,7 @@ var x$e = ( var r = [], n = []; return z(this.getCartesians(), function(i) { var o = t != null && t !== "auto" ? i.getAxis(t) : i.getBaseAxis(), a = i.getOtherAxis(o); - Yt(r, o) < 0 && r.push(o), Yt(n, a) < 0 && n.push(a); + qt(r, o) < 0 && r.push(o), qt(n, a) < 0 && n.push(a); }), { baseAxes: r, otherAxes: n @@ -71027,8 +71068,8 @@ var x$e = ( var a = new e(i, t, r); a.name = "grid_" + o, a.resize(i, r, !0), i.coordinateSystem = a, n.push(a); }), t.eachSeries(function(i) { - if (kV(i)) { - var o = $V(i), a = o.xAxisModel, s = o.yAxisModel, l = a.getCoordSysModel(); + if (BV(i)) { + var o = VV(i), a = o.xAxisModel, s = o.yAxisModel, l = a.getCoordSysModel(); if (process.env.NODE_ENV !== "production") { if (!l) throw new Error('Grid "' + Go(a.get("gridIndex"), a.get("gridId"), 0) + '" not found'); @@ -71045,7 +71086,7 @@ var x$e = ( function QE(e, t) { return e.getCoordSysModel() === t; } -function BV(e, t, r, n) { +function HV(e, t, r, n) { r.getAxesOnZeroOf = function() { return o ? [o] : []; }; @@ -71053,10 +71094,10 @@ function BV(e, t, r, n) { if (!s) return; if (l != null) - VV(i[l]) && (o = i[l]); + zV(i[l]) && (o = i[l]); else for (var c in i) - if (i.hasOwnProperty(c) && VV(i[c]) && !n[u(i[c])]) { + if (i.hasOwnProperty(c) && zV(i[c]) && !n[u(i[c])]) { o = i[c]; break; } @@ -71065,10 +71106,10 @@ function BV(e, t, r, n) { return d.dim + "_" + d.index; } } -function VV(e) { - return e && e.type !== "category" && e.type !== "time" && HFe(e); +function zV(e) { + return e && e.type !== "category" && e.type !== "time" && QFe(e); } -function E$e(e, t) { +function F$e(e, t) { var r = e.getExtent(), n = r[0] + r[1]; e.toGlobalCoord = e.dim === "x" ? function(i) { return i + t; @@ -71084,7 +71125,7 @@ var xc = Math.PI, Qi = ( /** @class */ function() { function e(t, r) { - this.group = new Ot(), this.opt = r, this.axisModel = t, wt(r, { + this.group = new Ot(), this.opt = r, this.axisModel = t, xt(r, { labelOffset: 0, nameDirection: 1, tickDirection: 1, @@ -71102,14 +71143,14 @@ var xc = Math.PI, Qi = ( n.updateTransform(), this._transformGroup = n; } return e.prototype.hasBuilder = function(t) { - return !!HV[t]; + return !!GV[t]; }, e.prototype.add = function(t) { - HV[t](this.opt, this.axisModel, this.group, this._transformGroup); + GV[t](this.opt, this.axisModel, this.group, this._transformGroup); }, e.prototype.getGroup = function() { return this.group; }, e.innerTextLayout = function(t, r, n) { - var i = O2(r - t), o, a; - return Lf(i) ? (a = n > 0 ? "top" : "bottom", o = "center") : Lf(i - xc) ? (a = n > 0 ? "bottom" : "top", o = "center") : (a = "middle", i > 0 && i < xc ? o = n > 0 ? "right" : "left" : o = n > 0 ? "left" : "right"), { + var i = OI(r - t), o, a; + return Nf(i) ? (a = n > 0 ? "top" : "bottom", o = "center") : Nf(i - xc) ? (a = n > 0 ? "bottom" : "top", o = "center") : (a = "middle", i > 0 && i < xc ? o = n > 0 ? "right" : "left" : o = n > 0 ? "left" : "right"), { rotation: i, textAlign: o, textVerticalAlign: a @@ -71125,12 +71166,12 @@ var xc = Math.PI, Qi = ( return t.get("silent") || !(t.get("triggerEvent") || r && r.show); }, e; }() -), HV = { +), GV = { axisLine: function(e, t, r, n) { var i = t.get(["axisLine", "show"]); if (i === "auto" && e.handleAutoShown && (i = e.handleAutoShown("axisLine")), !!i) { var o = t.axis.getExtent(), a = n.transform, s = [o[0], 0], l = [o[1], 0], c = s[0] > l[0]; - a && (gi(s, s, a), gi(l, l, a)); + a && (vi(s, s, a), vi(l, l, a)); var u = Pe({ lineCap: "round" }, t.getModel(["axisLine", "lineStyle"]).getLineStyle()), d = new ri({ @@ -71145,7 +71186,7 @@ var xc = Math.PI, Qi = ( silent: !0, z2: 1 }); - kf(d.shape, d.style.lineWidth), d.anid = "line", r.add(d); + Bf(d.shape, d.style.lineWidth), d.anid = "line", r.add(d); var h = t.get(["axisLine", "symbol"]); if (h != null) { var f = t.get(["axisLine", "symbolSize"]); @@ -71175,9 +71216,9 @@ var xc = Math.PI, Qi = ( } }, axisTickLabel: function(e, t, r, n) { - var i = T$e(r, n, t, e), o = M$e(r, n, t, e); - if (P$e(t, o, i), _$e(r, n, t, e.tickDirection), t.get(["axisLabel", "hideOverlap"])) { - var a = nZ(Fe(o, function(s) { + var i = $$e(r, n, t, e), o = V$e(r, n, t, e); + if (k$e(t, o, i), B$e(r, n, t, e.tickDirection), t.get(["axisLabel", "hideOverlap"])) { + var a = aZ(Fe(o, function(s) { return { label: s, priority: s.z2, @@ -71186,7 +71227,7 @@ var xc = Math.PI, Qi = ( } }; })); - aZ(a); + cZ(a); } }, axisName: function(e, t, r, n) { @@ -71195,16 +71236,16 @@ var xc = Math.PI, Qi = ( var o = t.get("nameLocation"), a = e.nameDirection, s = t.getModel("nameTextStyle"), l = t.get("nameGap") || 0, c = t.axis.getExtent(), u = c[0] > c[1] ? -1 : 1, d = [ o === "start" ? c[0] - u * l : o === "end" ? c[1] + u * l : (c[0] + c[1]) / 2, // Reuse labelOffset. - GV(o) ? e.labelOffset + a * l : 0 + jV(o) ? e.labelOffset + a * l : 0 ], h, f = t.get("nameRotate"); f != null && (f = f * xc / 180); var p; - GV(o) ? h = Qi.innerTextLayout( + jV(o) ? h = Qi.innerTextLayout( e.rotation, f ?? e.rotation, // Adapt to axis. a - ) : (h = R$e(e.rotation, o, f || 0, c), p = e.axisNameAvailableWidth, p != null && (p = Math.abs(p / Math.sin(h.rotation)), !isFinite(p) && (p = null))); + ) : (h = N$e(e.rotation, o, f || 0, c), p = e.axisNameAvailableWidth, p != null && (p = Math.abs(p / Math.sin(h.rotation)), !isFinite(p) && (p = null))); var g = s.getFont(), v = t.get("nameTruncate", !0) || {}, m = v.ellipsis, y = $n(e.nameTruncateMaxWidth, v.maxWidth, p), C = new vr({ x: d[0], y: d[1], @@ -71222,7 +71263,7 @@ var xc = Math.PI, Qi = ( }), z2: 1 }); - if (gp({ + if (mp({ el: C, componentModel: t, itemName: i @@ -71234,39 +71275,39 @@ var xc = Math.PI, Qi = ( } } }; -function R$e(e, t, r, n) { - var i = O2(r - e), o, a, s = n[0] > n[1], l = t === "start" && !s || t !== "start" && s; - return Lf(i - xc / 2) ? (a = l ? "bottom" : "top", o = "center") : Lf(i - xc * 1.5) ? (a = l ? "top" : "bottom", o = "center") : (a = "middle", i < xc * 1.5 && i > xc / 2 ? o = l ? "left" : "right" : o = l ? "right" : "left"), { +function N$e(e, t, r, n) { + var i = OI(r - e), o, a, s = n[0] > n[1], l = t === "start" && !s || t !== "start" && s; + return Nf(i - xc / 2) ? (a = l ? "bottom" : "top", o = "center") : Nf(i - xc * 1.5) ? (a = l ? "top" : "bottom", o = "center") : (a = "middle", i < xc * 1.5 && i > xc / 2 ? o = l ? "left" : "right" : o = l ? "right" : "left"), { rotation: i, textAlign: o, textVerticalAlign: a }; } -function P$e(e, t, r) { - if (!WX(e.axis)) { +function k$e(e, t, r) { + if (!KX(e.axis)) { var n = e.get(["axisLabel", "showMinLabel"]), i = e.get(["axisLabel", "showMaxLabel"]); t = t || [], r = r || []; var o = t[0], a = t[1], s = t[t.length - 1], l = t[t.length - 2], c = r[0], u = r[1], d = r[r.length - 1], h = r[r.length - 2]; - n === !1 ? (ta(o), ta(c)) : zV(o, a) && (n ? (ta(a), ta(u)) : (ta(o), ta(c))), i === !1 ? (ta(s), ta(d)) : zV(l, s) && (i ? (ta(l), ta(h)) : (ta(s), ta(d))); + n === !1 ? (ta(o), ta(c)) : WV(o, a) && (n ? (ta(a), ta(u)) : (ta(o), ta(c))), i === !1 ? (ta(s), ta(d)) : WV(l, s) && (i ? (ta(l), ta(h)) : (ta(s), ta(d))); } } function ta(e) { e && (e.ignore = !0); } -function zV(e, t) { +function WV(e, t) { var r = e && e.getBoundingRect().clone(), n = t && t.getBoundingRect().clone(); if (!(!r || !n)) { - var i = jm([]); + var i = Ym([]); return eu(i, i, -e.rotation), r.applyTransform(Bs([], i, e.getLocalTransform())), n.applyTransform(Bs([], i, t.getLocalTransform())), r.intersect(n); } } -function GV(e) { +function jV(e) { return e === "middle" || e === "center"; } -function HZ(e, t, r, n, i) { +function WZ(e, t, r, n, i) { for (var o = [], a = [], s = [], l = 0; l < e.length; l++) { var c = e[l].coord; - a[0] = c, a[1] = 0, s[0] = c, s[1] = r, t && (gi(a, a, t), gi(s, s, t)); + a[0] = c, a[1] = 0, s[0] = c, s[1] = r, t && (vi(a, a, t), vi(s, s, t)); var u = new ri({ shape: { x1: a[0], @@ -71279,33 +71320,33 @@ function HZ(e, t, r, n, i) { autoBatch: !0, silent: !0 }); - kf(u.shape, u.style.lineWidth), u.anid = i + "_" + e[l].tickValue, o.push(u); + Bf(u.shape, u.style.lineWidth), u.anid = i + "_" + e[l].tickValue, o.push(u); } return o; } -function T$e(e, t, r, n) { +function $$e(e, t, r, n) { var i = r.axis, o = r.getModel("axisTick"), a = o.get("show"); if (a === "auto" && n.handleAutoShown && (a = n.handleAutoShown("axisTick")), !(!a || i.scale.isBlank())) { - for (var s = o.getModel("lineStyle"), l = n.tickDirection * o.get("length"), c = i.getTicksCoords(), u = HZ(c, t.transform, l, wt(s.getLineStyle(), { + for (var s = o.getModel("lineStyle"), l = n.tickDirection * o.get("length"), c = i.getTicksCoords(), u = WZ(c, t.transform, l, xt(s.getLineStyle(), { stroke: r.get(["axisLine", "lineStyle", "color"]) }), "ticks"), d = 0; d < u.length; d++) e.add(u[d]); return u; } } -function _$e(e, t, r, n) { +function B$e(e, t, r, n) { var i = r.axis, o = r.getModel("minorTick"); if (!(!o.get("show") || i.scale.isBlank())) { var a = i.getMinorTicksCoords(); if (a.length) - for (var s = o.getModel("lineStyle"), l = n * o.get("length"), c = wt(s.getLineStyle(), wt(r.getModel("axisTick").getLineStyle(), { + for (var s = o.getModel("lineStyle"), l = n * o.get("length"), c = xt(s.getLineStyle(), xt(r.getModel("axisTick").getLineStyle(), { stroke: r.get(["axisLine", "lineStyle", "color"]) })), u = 0; u < a.length; u++) - for (var d = HZ(a[u], t.transform, l, c, "minorticks_" + u), h = 0; h < d.length; h++) + for (var d = WZ(a[u], t.transform, l, c, "minorticks_" + u), h = 0; h < d.length; h++) e.add(d[h]); } } -function M$e(e, t, r, n) { +function V$e(e, t, r, n) { var i = r.axis, o = $n(n.axisLabelShow, r.get(["axisLabel", "show"])); if (!(!o || i.scale.isBlank())) { var a = r.getModel("axisLabel"), s = a.get("margin"), l = i.getViewLabels(), c = ($n(n.labelRotate, a.get("rotate")) || 0) * xc / 180, u = Qi.innerTextLayout(n.rotation, c, n.labelDirection), d = r.getCategories && r.getCategories(!0), h = [], f = Qi.isLabelSilent(r), p = r.get("triggerEvent"); @@ -71313,7 +71354,7 @@ function M$e(e, t, r, n) { var m = i.scale.type === "ordinal" ? i.scale.getRawOrdinalNumber(g.tickValue) : g.tickValue, y = g.formattedLabel, C = g.rawLabel, b = a; if (d && d[m]) { var w = d[m]; - St(w) && w.textStyle && (b = new Gr(w.textStyle, a, r.ecModel)); + bt(w) && w.textStyle && (b = new Gr(w.textStyle, a, r.ecModel)); } var x = b.getTextColor() || r.get(["axisLine", "lineStyle", "color"]), E = i.dataToCoord(m), R = b.getShallow("align", !0) || u.textAlign, P = $t(b.getShallow("alignMinLabel", !0), R), T = $t(b.getShallow("alignMaxLabel", !0), R), _ = b.getShallow("verticalAlign", !0) || b.getShallow("baseline", !0) || u.textVerticalAlign, D = $t(b.getShallow("verticalAlignMinLabel", !0), _), A = $t(b.getShallow("verticalAlignMaxLabel", !0), _), M = new vr({ x: E, @@ -71325,7 +71366,7 @@ function M$e(e, t, r, n) { text: y, align: v === 0 ? P : v === l.length - 1 ? T : R, verticalAlign: v === 0 ? D : v === l.length - 1 ? A : _, - fill: vt(x) ? x( + fill: mt(x) ? x( // (1) In category axis with data zoom, tick is not the original // index of axis.data. So tick should not be exposed to user // in category axis. @@ -71346,7 +71387,7 @@ function M$e(e, t, r, n) { }), h; } } -function D$e(e, t) { +function H$e(e, t) { var r = { /** * key: makeKey(axis.model) @@ -71371,14 +71412,14 @@ function D$e(e, t) { coordSysAxesInfo: {}, coordSysMap: {} }; - return I$e(r, e, t), r.seriesInvolved && O$e(r, e), r; + return z$e(r, e, t), r.seriesInvolved && W$e(r, e), r; } -function I$e(e, t, r) { +function z$e(e, t, r) { var n = t.getComponent("tooltip"), i = t.getComponent("axisPointer"), o = i.get("link", !0) || [], a = []; z(r.getCoordinateSystems(), function(s) { if (!s.axisPointerEnabled) return; - var l = om(s.model), c = e.coordSysAxesInfo[l] = {}; + var l = sm(s.model), c = e.coordSysAxesInfo[l] = {}; e.coordSysMap[l] = s; var u = s.model, d = u.getModel("tooltip", n); if (z(s.getAxes(), Vt(g, !1, null)), s.getTooltipAxes && n && d.get("show")) { @@ -71388,8 +71429,8 @@ function I$e(e, t, r) { function g(v, m, y) { var C = y.model.getModel("axisPointer", i), b = C.get("show"); if (!(!b || b === "auto" && !v && !xM(C))) { - m == null && (m = C.get("triggerTooltip")), C = v ? A$e(y, d, i, t, v, m) : C; - var w = C.get("snap"), x = C.get("triggerEmphasis"), E = om(y.model), R = m || w || y.type === "category", P = e.axesInfo[E] = { + m == null && (m = C.get("triggerTooltip")), C = v ? G$e(y, d, i, t, v, m) : C; + var w = C.get("snap"), x = C.get("triggerEmphasis"), E = sm(y.model), R = m || w || y.type === "category", P = e.axesInfo[E] = { key: E, axis: y, coordSys: s, @@ -71403,7 +71444,7 @@ function I$e(e, t, r) { linkGroup: null }; c[E] = P, e.seriesInvolved = e.seriesInvolved || R; - var T = L$e(o, y); + var T = j$e(o, y); if (T != null) { var _ = a[T] || (a[T] = { axesInfo: {} @@ -71414,7 +71455,7 @@ function I$e(e, t, r) { } }); } -function A$e(e, t, r, n, i, o) { +function G$e(e, t, r, n, i, o) { var a = t.getModel("axisPointer"), s = ["type", "snap", "lineStyle", "shadowStyle", "label", "animation", "animationDurationUpdate", "animationEasingUpdate", "z"], l = {}; z(s, function(h) { l[h] = _t(a.get(h)); @@ -71424,21 +71465,21 @@ function A$e(e, t, r, n, i, o) { var u = a.get(["label", "show"]); if (c.show = u ?? !0, !o) { var d = l.lineStyle = a.get("crossStyle"); - d && wt(c, d.textStyle); + d && xt(c, d.textStyle); } } return e.model.getModel("axisPointer", new Gr(l, r, n)); } -function O$e(e, t) { +function W$e(e, t) { t.eachSeries(function(r) { var n = r.coordinateSystem, i = r.get(["tooltip", "trigger"], !0), o = r.get(["tooltip", "show"], !0); - !n || i === "none" || i === !1 || i === "item" || o === !1 || r.get(["axisPointer", "show"], !0) === !1 || z(e.coordSysAxesInfo[om(n.model)], function(a) { + !n || i === "none" || i === !1 || i === "item" || o === !1 || r.get(["axisPointer", "show"], !0) === !1 || z(e.coordSysAxesInfo[sm(n.model)], function(a) { var s = a.axis; n.getAxis(s.dim) === s && (a.seriesModels.push(r), a.seriesDataCount == null && (a.seriesDataCount = 0), a.seriesDataCount += r.getData().count()); }); }); } -function L$e(e, t) { +function j$e(e, t) { for (var r = t.model, n = t.dim, i = 0; i < e.length; i++) { var o = e[i] || {}; if (JE(o[n + "AxisId"], r.id) || JE(o[n + "AxisIndex"], r.componentIndex) || JE(o[n + "AxisName"], r.name)) @@ -71446,9 +71487,9 @@ function L$e(e, t) { } } function JE(e, t) { - return e === "all" || Ie(e) && Yt(e, t) >= 0 || e === t; + return e === "all" || Ae(e) && qt(e, t) >= 0 || e === t; } -function F$e(e) { +function U$e(e) { var t = WA(e); if (t) { var r = t.axisPointerModel, n = t.axis.scale, i = r.option, o = r.get("status"), a = r.get("value"); @@ -71462,16 +71503,16 @@ function F$e(e) { } function WA(e) { var t = (e.ecModel.getComponent("axisPointer") || {}).coordSysAxesInfo; - return t && t.axesInfo[om(e)]; + return t && t.axesInfo[sm(e)]; } -function N$e(e) { +function K$e(e) { var t = WA(e); return t && t.axisPointerModel; } function xM(e) { return !!e.get(["handle", "show"]); } -function om(e) { +function sm(e) { return e.type + "||" + e.id; } var eR = {}, Jd = ( @@ -71483,7 +71524,7 @@ var eR = {}, Jd = ( return r.type = t.type, r; } return t.prototype.render = function(r, n, i, o) { - this.axisPointerClass && F$e(r), e.prototype.render.apply(this, arguments), this._doUpdateAxisPointerClass(r, i, !0); + this.axisPointerClass && U$e(r), e.prototype.render.apply(this, arguments), this._doUpdateAxisPointerClass(r, i, !0); }, t.prototype.updateAxisPointer = function(r, n, i, o) { this._doUpdateAxisPointerClass(r, i, !1); }, t.prototype.remove = function(r, n) { @@ -71494,7 +71535,7 @@ var eR = {}, Jd = ( }, t.prototype._doUpdateAxisPointerClass = function(r, n, i) { var o = t.getAxisPointerClass(this.axisPointerClass); if (o) { - var a = N$e(r); + var a = K$e(r); a ? (this._axisPointer || (this._axisPointer = new o())).render(r, a, n, i) : this._disposeAxisPointer(n); } }, t.prototype._disposeAxisPointer = function(r) { @@ -71508,7 +71549,7 @@ var eR = {}, Jd = ( }, t.type = "axis", t; }(sn) ), EM = yr(); -function zZ(e, t, r, n) { +function jZ(e, t, r, n) { var i = r.axis; if (!i.scale.isBlank()) { var o = r.getModel("splitArea"), a = o.getModel("areaStyle"), s = a.get("color"), l = n.coordinateSystem.getRect(), c = i.getTicksCoords({ @@ -71526,7 +71567,7 @@ function zZ(e, t, r, n) { } } var v = i.toGlobalCoord(c[0].coord), m = a.getAreaStyle(); - s = Ie(s) ? s : [s]; + s = Ae(s) ? s : [s]; for (var p = 1; p < c.length; p++) { var y = i.toGlobalCoord(c[p].coord), C = void 0, b = void 0, w = void 0, x = void 0; i.isHorizontal() ? (C = v, b = l.y, w = y - C, x = l.height, v = C + w) : (C = l.x, b = v, w = l.width, x = y - b, v = b + x); @@ -71539,7 +71580,7 @@ function zZ(e, t, r, n) { width: w, height: x }, - style: wt({ + style: xt({ fill: s[f] }, m), autoBatch: !0, @@ -71550,10 +71591,10 @@ function zZ(e, t, r, n) { } } } -function GZ(e) { +function UZ(e) { EM(e).splitAreaColors = null; } -var k$e = ["axisLine", "axisTickLabel", "axisName"], $$e = ["splitArea", "splitLine", "minorSplitLine"], WZ = ( +var Y$e = ["axisLine", "axisTickLabel", "axisName"], q$e = ["splitArea", "splitLine", "minorSplitLine"], KZ = ( /** @class */ function(e) { Se(t, e); @@ -71573,22 +71614,22 @@ var k$e = ["axisLine", "axisTickLabel", "axisName"], $$e = ["splitArea", "splitL return !1; } }, l)); - z(k$e, c.add, c), this._axisGroup.add(c.getGroup()), z($$e, function(d) { - r.get([d, "show"]) && B$e[d](this, this._axisGroup, r, s); + z(Y$e, c.add, c), this._axisGroup.add(c.getGroup()), z(q$e, function(d) { + r.get([d, "show"]) && X$e[d](this, this._axisGroup, r, s); }, this); var u = o && o.type === "changeAxisOrder" && o.isInitSort; - u || ey(a, this._axisGroup, r), e.prototype.render.call(this, r, n, i, o); + u || ny(a, this._axisGroup, r), e.prototype.render.call(this, r, n, i, o); } }, t.prototype.remove = function() { - GZ(this); + UZ(this); }, t.type = "cartesianAxis", t; }(Jd) -), B$e = { +), X$e = { splitLine: function(e, t, r, n) { var i = r.axis; if (!i.scale.isBlank()) { var o = r.getModel("splitLine"), a = o.getModel("lineStyle"), s = a.get("color"); - s = Ie(s) ? s : [s]; + s = Ae(s) ? s : [s]; for (var l = n.coordinateSystem.getRect(), c = i.isHorizontal(), u = 0, d = i.getTicksCoords({ tickModel: o }), h = [], f = [], p = a.getLineStyle(), g = 0; g < d.length; g++) { @@ -71603,12 +71644,12 @@ var k$e = ["axisLine", "axisTickLabel", "axisName"], $$e = ["splitArea", "splitL x2: f[0], y2: f[1] }, - style: wt({ + style: xt({ stroke: s[m] }, p), silent: !0 }); - kf(C.shape, p.lineWidth), t.add(C); + Bf(C.shape, p.lineWidth), t.add(C); } } }, @@ -71631,13 +71672,13 @@ var k$e = ["axisLine", "axisTickLabel", "axisName"], $$e = ["splitArea", "splitL style: h, silent: !0 }); - kf(v.shape, h.lineWidth), t.add(v); + Bf(v.shape, h.lineWidth), t.add(v); } }, splitArea: function(e, t, r, n) { - zZ(e, t, r, n); + jZ(e, t, r, n); } -}, jZ = ( +}, YZ = ( /** @class */ function(e) { Se(t, e); @@ -71646,18 +71687,18 @@ var k$e = ["axisLine", "axisTickLabel", "axisName"], $$e = ["splitArea", "splitL return r.type = t.type, r; } return t.type = "xAxis", t; - }(WZ) -), V$e = ( + }(KZ) +), Z$e = ( /** @class */ function(e) { Se(t, e); function t() { var r = e !== null && e.apply(this, arguments) || this; - return r.type = jZ.type, r; + return r.type = YZ.type, r; } return t.type = "yAxis", t; - }(WZ) -), H$e = ( + }(KZ) +), Q$e = ( /** @class */ function(e) { Se(t, e); @@ -71668,7 +71709,7 @@ var k$e = ["axisLine", "axisTickLabel", "axisName"], $$e = ["splitArea", "splitL return t.prototype.render = function(r, n) { this.group.removeAll(), r.get("show") && this.group.add(new mr({ shape: r.coordinateSystem.getRect(), - style: wt({ + style: xt({ fill: r.get("backgroundColor") }, r.getItemStyle()), silent: !0, @@ -71676,20 +71717,20 @@ var k$e = ["axisLine", "axisTickLabel", "axisName"], $$e = ["splitArea", "splitL })); }, t.type = "grid", t; }(sn) -), WV = { +), UV = { // gridIndex: 0, // gridId: '', offset: 0 }; -function UZ(e) { - e.registerComponentView(H$e), e.registerComponentModel(g$e), e.registerCoordinateSystem("cartesian2d", x$e), Hf(e, "x", SM, WV), Hf(e, "y", SM, WV), e.registerComponentView(jZ), e.registerComponentView(V$e), e.registerPreprocessor(function(t) { +function qZ(e) { + e.registerComponentView(Q$e), e.registerComponentModel(P$e), e.registerCoordinateSystem("cartesian2d", L$e), Gf(e, "x", SM, UV), Gf(e, "y", SM, UV), e.registerComponentView(YZ), e.registerComponentView(Z$e), e.registerPreprocessor(function(t) { t.xAxis && t.yAxis && !t.grid && (t.grid = {}); }); } -function z$e(e) { - er(UZ), e.registerSeriesModel(u$e), e.registerChartView(p$e), e.registerLayout(sy("scatter")); +function J$e(e) { + er(qZ), e.registerSeriesModel(b$e), e.registerChartView(R$e), e.registerLayout(uy("scatter")); } -function G$e(e) { +function e4e(e) { e.eachSeriesByType("radar", function(t) { var r = t.getData(), n = [], i = t.coordinateSystem; if (i) { @@ -71698,37 +71739,37 @@ function G$e(e) { r.each(r.mapDimension(o[s].dim), function(l, c) { n[c] = n[c] || []; var u = i.dataToPoint(l, s); - n[c][s] = jV(u) ? u : UV(i); + n[c][s] = KV(u) ? u : YV(i); }); }), r.each(function(a) { - var s = dK(n[a], function(l) { - return jV(l); - }) || UV(i); + var s = pK(n[a], function(l) { + return KV(l); + }) || YV(i); n[a].push(s.slice()), r.setItemLayout(a, n[a]); }); } }); } -function jV(e) { +function KV(e) { return !isNaN(e[0]) && !isNaN(e[1]); } -function UV(e) { +function YV(e) { return [e.cx, e.cy]; } -function W$e(e) { +function t4e(e) { var t = e.polar; if (t) { - Ie(t) || (t = [t]); + Ae(t) || (t = [t]); var r = []; z(t, function(n, i) { - n.indicator ? (n.type && !n.shape && (n.shape = n.type), e.radar = e.radar || [], Ie(e.radar) || (e.radar = [e.radar]), e.radar.push(n)) : r.push(n); + n.indicator ? (n.type && !n.shape && (n.shape = n.type), e.radar = e.radar || [], Ae(e.radar) || (e.radar = [e.radar]), e.radar.push(n)) : r.push(n); }), e.polar = r; } z(e.series, function(n) { n && n.type === "radar" && n.polarIndex && (n.radarIndex = n.polarIndex); }); } -var j$e = ( +var r4e = ( /** @class */ function(e) { Se(t, e); @@ -71741,7 +71782,7 @@ var j$e = ( function c(h, f) { var p = h.getItemVisual(f, "symbol") || "circle"; if (p !== "none") { - var g = wp(h.getItemVisual(f, "symbolSize")), v = Bn(p, -1, -1, 2, 2), m = h.getItemVisual(f, "symbolRotate") || 0; + var g = Ep(h.getItemVisual(f, "symbolSize")), v = Bn(p, -1, -1, 2, 2), m = h.getItemVisual(f, "symbolRotate") || 0; return v.attr({ style: { strokeNoScale: !0 @@ -71791,22 +71832,22 @@ var j$e = ( a.remove(l.getItemGraphicEl(h)); }).execute(), s.eachItemGraphicEl(function(h, f) { var p = s.getItemModel(f), g = h.childAt(0), v = h.childAt(1), m = h.childAt(2), y = s.getItemVisual(f, "style"), C = y.fill; - a.add(h), g.useStyle(wt(p.getModel("lineStyle").getLineStyle(), { + a.add(h), g.useStyle(xt(p.getModel("lineStyle").getLineStyle(), { fill: "none", stroke: C - })), Ei(g, p, "lineStyle"), Ei(v, p, "areaStyle"); + })), Ri(g, p, "lineStyle"), Ri(v, p, "areaStyle"); var b = p.getModel("areaStyle"), w = b.isEmpty() && b.parentModel.isEmpty(); v.ignore = w, z(["emphasis", "select", "blur"], function(R) { var P = p.getModel([R, "areaStyle"]), T = P.isEmpty() && P.parentModel.isEmpty(); v.ensureState(R).ignore = T && w; - }), v.useStyle(wt(b.getAreaStyle(), { + }), v.useStyle(xt(b.getAreaStyle(), { fill: C, opacity: 0.7, decal: y.decal })); var x = p.getModel("emphasis"), E = x.getModel("itemStyle").getItemStyle(); m.eachChild(function(R) { - if (R instanceof yi) { + if (R instanceof Ci) { var P = R.style; R.useStyle(Pe({ // TODO other properties like x, y ? @@ -71821,7 +71862,7 @@ var j$e = ( var T = R.ensureState("emphasis"); T.style = _t(E); var _ = s.getStore().get(s.getDimensionIndex(R.__dimIdx), f); - (_ == null || isNaN(_)) && (_ = ""), Ri(R, li(p), { + (_ == null || isNaN(_)) && (_ = ""), Pi(R, ci(p), { labelFetcher: s.hostModel, labelDataIndex: f, labelDimIndex: R.__dimIdx, @@ -71835,7 +71876,7 @@ var j$e = ( this.group.removeAll(), this._data = null; }, t.type = "radar", t; }($r) -), U$e = ( +), n4e = ( /** @class */ function(e) { Se(t, e); @@ -71844,20 +71885,20 @@ var j$e = ( return r.type = t.type, r.hasSymbolVisual = !0, r; } return t.prototype.init = function(r) { - e.prototype.init.apply(this, arguments), this.legendVisualProvider = new cy(at(this.getData, this), at(this.getRawData, this)); + e.prototype.init.apply(this, arguments), this.legendVisualProvider = new hy(at(this.getData, this), at(this.getRawData, this)); }, t.prototype.getInitialData = function(r, n) { - return Pp(this, { + return _p(this, { generateCoord: "indicator_", generateCoordCount: 1 / 0 }); }, t.prototype.formatTooltip = function(r, n, i) { - var o = this.getData(), a = this.coordinateSystem, s = a.getIndicatorAxes(), l = this.getData().getName(r), c = l === "" ? this.name : l, u = Gq(this, r); - return ci("section", { + var o = this.getData(), a = this.coordinateSystem, s = a.getIndicatorAxes(), l = this.getData().getName(r), c = l === "" ? this.name : l, u = Uq(this, r); + return ui("section", { header: c, sortBlocks: !0, blocks: Fe(s, function(d) { var h = o.get(o.mapDimension(d.dim), r); - return ci("nameValue", { + return ui("nameValue", { markerType: "subItem", markerColor: u, name: d.name, @@ -71898,13 +71939,13 @@ var j$e = ( // symbolRotate: null }, t; }(jr) -), sg = BZ.value; -function M0(e, t) { - return wt({ +), cg = zZ.value; +function A0(e, t) { + return xt({ show: t }, e); } -var K$e = ( +var i4e = ( /** @class */ function(e) { Se(t, e); @@ -71916,10 +71957,10 @@ var K$e = ( var r = this.get("boundaryGap"), n = this.get("splitNumber"), i = this.get("scale"), o = this.get("axisLine"), a = this.get("axisTick"), s = this.get("axisLabel"), l = this.get("axisName"), c = this.get(["axisName", "show"]), u = this.get(["axisName", "formatter"]), d = this.get("axisNameGap"), h = this.get("triggerEvent"), f = Fe(this.get("indicator") || [], function(p) { p.max != null && p.max > 0 && !p.min ? p.min = 0 : p.min != null && p.min < 0 && !p.max && (p.max = 0); var g = l; - p.color != null && (g = wt({ + p.color != null && (g = xt({ color: p.color }, l)); - var v = Wt(_t(p), { + var v = jt(_t(p), { boundaryGap: r, splitNumber: n, scale: i, @@ -71939,9 +71980,9 @@ var K$e = ( if (Je(u)) { var m = v.name; v.name = u.replace("{value}", m ?? ""); - } else vt(u) && (v.name = u(v.name, v)); + } else mt(u) && (v.name = u(v.name, v)); var y = new Gr(v, null, this.ecModel); - return In(y, Rp.prototype), y.mainType = "radar", y.componentIndex = this.componentIndex, y; + return In(y, Tp.prototype), y.mainType = "radar", y.componentIndex = this.componentIndex, y; }, this); this._indicatorModels = f; }, t.prototype.getIndicatorModels = function() { @@ -71963,21 +72004,21 @@ var K$e = ( scale: !1, // Polygon or circle shape: "polygon", - axisLine: Wt({ + axisLine: jt({ lineStyle: { color: "#bbb" } - }, sg.axisLine), - axisLabel: M0(sg.axisLabel, !1), - axisTick: M0(sg.axisTick, !1), + }, cg.axisLine), + axisLabel: A0(cg.axisLabel, !1), + axisTick: A0(cg.axisTick, !1), // axisType: 'value', - splitLine: M0(sg.splitLine, !0), - splitArea: M0(sg.splitArea, !0), + splitLine: A0(cg.splitLine, !0), + splitArea: A0(cg.splitArea, !0), // {text, min, max} indicator: [] }, t; }(Qt) -), Y$e = ["axisLine", "axisTickLabel", "axisName"], q$e = ( +), o4e = ["axisLine", "axisTickLabel", "axisName"], a4e = ( /** @class */ function(e) { Se(t, e); @@ -72001,13 +72042,13 @@ var K$e = ( return l; }); z(o, function(a) { - z(Y$e, a.add, a), this.group.add(a.getGroup()); + z(o4e, a.add, a), this.group.add(a.getGroup()); }, this); }, t.prototype._buildSplitLineAndArea = function(r) { var n = r.coordinateSystem, i = n.getIndicatorAxes(); if (!i.length) return; - var o = r.get("shape"), a = r.getModel("splitLine"), s = r.getModel("splitArea"), l = a.getModel("lineStyle"), c = s.getModel("areaStyle"), u = a.get("show"), d = s.get("show"), h = l.get("color"), f = c.get("color"), p = Ie(h) ? h : [h], g = Ie(f) ? f : [f], v = [], m = []; + var o = r.get("shape"), a = r.getModel("splitLine"), s = r.getModel("splitArea"), l = a.getModel("lineStyle"), c = s.getModel("areaStyle"), u = a.get("show"), d = s.get("show"), h = l.get("color"), f = c.get("color"), p = Ae(h) ? h : [h], g = Ae(f) ? f : [f], v = [], m = []; function y(O, L, N) { var F = N % L.length; return O[F] = O[F] || [], F; @@ -72026,7 +72067,7 @@ var K$e = ( } if (d && x < C.length - 1) { var E = y(m, g, x); - m[E].push(new Zm({ + m[E].push(new ey({ shape: { cx: b, cy: w, @@ -72066,7 +72107,7 @@ var K$e = ( var A = l.getLineStyle(), M = c.getAreaStyle(); z(m, function(O, L) { this.group.add(No(O, { - style: wt({ + style: xt({ stroke: "none", fill: g[L % g.length] }, M), @@ -72074,7 +72115,7 @@ var K$e = ( })); }, this), z(v, function(O, L) { this.group.add(No(O, { - style: wt({ + style: xt({ fill: "none", stroke: p[L % p.length] }, A), @@ -72083,7 +72124,7 @@ var K$e = ( }, this); }, t.type = "radar", t; }(sn) -), X$e = ( +), s4e = ( /** @class */ function(e) { Se(t, e); @@ -72093,14 +72134,14 @@ var K$e = ( } return t; }(La) -), Z$e = ( +), l4e = ( /** @class */ function() { function e(t, r, n) { this.dimensions = [], this._model = t, this._indicatorAxes = Fe(t.getIndicatorModels(), function(i, o) { - var a = "indicator_" + o, s = new X$e( + var a = "indicator_" + o, s = new s4e( a, - new Wl() + new jl() // (indicatorModel.get('axisType') === 'log') ? new LogScale() : new IntervalScale() ); return s.name = i.get("name"), s.model = i, i.axis = s, this.dimensions.push(a), s; @@ -72143,9 +72184,9 @@ var K$e = ( }); } }, this); - var o = i.get("splitNumber"), a = new Wl(); + var o = i.get("splitNumber"), a = new jl(); a.setExtent(0, o), a.setInterval(1), z(n, function(s, l) { - VZ(s.scale, s.model, a); + GZ(s.scale, s.model, a); }); }, e.prototype.convertToPixel = function(t, r, n) { return console.warn("Not implemented."), null; @@ -72164,8 +72205,8 @@ var K$e = ( }, e.dimensions = [], e; }() ); -function Q$e(e) { - e.registerCoordinateSystem("radar", Z$e), e.registerComponentModel(K$e), e.registerComponentView(q$e), e.registerVisual({ +function c4e(e) { + e.registerCoordinateSystem("radar", l4e), e.registerComponentModel(i4e), e.registerComponentView(a4e), e.registerVisual({ seriesType: "radar", reset: function(t) { var r = t.getData(); @@ -72175,30 +72216,30 @@ function Q$e(e) { } }); } -function J$e(e) { - er(Q$e), e.registerChartView(j$e), e.registerSeriesModel(U$e), e.registerLayout(G$e), e.registerProcessor(ly("radar")), e.registerPreprocessor(W$e); +function u4e(e) { + er(c4e), e.registerChartView(r4e), e.registerSeriesModel(n4e), e.registerLayout(e4e), e.registerProcessor(dy("radar")), e.registerPreprocessor(t4e); } -var KV = "\0_ec_interaction_mutex"; -function e4e(e, t, r) { +var qV = "\0_ec_interaction_mutex"; +function d4e(e, t, r) { var n = jA(e); n[t] = r; } -function t4e(e, t, r) { +function h4e(e, t, r) { var n = jA(e), i = n[t]; i === r && (n[t] = null); } -function YV(e, t) { +function XV(e, t) { return !!jA(e)[t]; } function jA(e) { - return e[KV] || (e[KV] = {}); + return e[qV] || (e[qV] = {}); } hs({ type: "takeGlobalCursor", event: "globalCursorTaken", update: "update" }, Dn); -var uy = ( +var fy = ( /** @class */ function(e) { Se(t, e); @@ -72207,7 +72248,7 @@ var uy = ( n._zr = r; var i = at(n._mousedownHandler, n), o = at(n._mousemoveHandler, n), a = at(n._mouseupHandler, n), s = at(n._mousewheelHandler, n), l = at(n._pinchHandler, n); return n.enable = function(c, u) { - this.disable(), this._opt = wt(_t(u) || {}, { + this.disable(), this._opt = xt(_t(u) || {}, { zoomOnMouseWheel: !0, moveOnMouseMove: !0, // By default, wheel do not trigger move. @@ -72227,7 +72268,7 @@ var uy = ( }, t.prototype.dispose = function() { this.disable(); }, t.prototype._mousedownHandler = function(r) { - if (!w4(r)) { + if (!E4(r)) { for (var n = r.target; n; ) { if (n.draggable) return; @@ -72237,9 +72278,9 @@ var uy = ( this.pointerChecker && this.pointerChecker(r, i, o) && (this._x = i, this._y = o, this._dragging = !0); } }, t.prototype._mousemoveHandler = function(r) { - if (!(!this._dragging || !IC("moveOnMouseMove", r, this._opt) || r.gestureEvent === "pinch" || YV(this._zr, "globalPan"))) { + if (!(!this._dragging || !LC("moveOnMouseMove", r, this._opt) || r.gestureEvent === "pinch" || XV(this._zr, "globalPan"))) { var n = r.offsetX, i = r.offsetY, o = this._x, a = this._y, s = n - o, l = i - a; - this._x = n, this._y = i, this._opt.preventDefaultMouseMove && Bl(r.event), KZ(this, "pan", "moveOnMouseMove", r, { + this._x = n, this._y = i, this._opt.preventDefaultMouseMove && Vl(r.event), XZ(this, "pan", "moveOnMouseMove", r, { dx: s, dy: l, oldX: o, @@ -72250,9 +72291,9 @@ var uy = ( }); } }, t.prototype._mouseupHandler = function(r) { - w4(r) || (this._dragging = !1); + E4(r) || (this._dragging = !1); }, t.prototype._mousewheelHandler = function(r) { - var n = IC("zoomOnMouseWheel", r, this._opt), i = IC("moveOnMouseWheel", r, this._opt), o = r.wheelDelta, a = Math.abs(o), s = r.offsetX, l = r.offsetY; + var n = LC("zoomOnMouseWheel", r, this._opt), i = LC("moveOnMouseWheel", r, this._opt), o = r.wheelDelta, a = Math.abs(o), s = r.offsetX, l = r.offsetY; if (!(o === 0 || !n && !i)) { if (n) { var c = a > 3 ? 1.4 : a > 1 ? 1.2 : 1.1, u = o > 0 ? c : 1 / c; @@ -72274,7 +72315,7 @@ var uy = ( } } }, t.prototype._pinchHandler = function(r) { - if (!YV(this._zr, "globalPan")) { + if (!XV(this._zr, "globalPan")) { var n = r.pinchScale > 1 ? 1.1 : 1 / 1.1; tR(this, "zoom", null, r, { scale: n, @@ -72287,12 +72328,12 @@ var uy = ( }(Da) ); function tR(e, t, r, n, i) { - e.pointerChecker && e.pointerChecker(n, i.originX, i.originY) && (Bl(n.event), KZ(e, t, r, n, i)); + e.pointerChecker && e.pointerChecker(n, i.originX, i.originY) && (Vl(n.event), XZ(e, t, r, n, i)); } -function KZ(e, t, r, n, i) { - i.isAvailableBehavior = at(IC, null, r, n), e.trigger(t, i); +function XZ(e, t, r, n, i) { + i.isAvailableBehavior = at(LC, null, r, n), e.trigger(t, i); } -function IC(e, t, r) { +function LC(e, t, r) { var n = r[e]; return !e || n && (!Je(n) || t.event[n + "Key"]); } @@ -72309,16 +72350,16 @@ function KA(e, t, r, n) { var c = a / e.zoom; e.zoom = a, i.x -= (r - i.x) * (c - 1), i.y -= (n - i.y) * (c - 1), i.scaleX *= c, i.scaleY *= c, i.dirty(); } -var r4e = { +var f4e = { axisPointer: 1, tooltip: 1, brush: 1 }; function a1(e, t, r) { var n = t.getComponentByElement(e.topTarget), i = n && n.coordinateSystem; - return n && n !== r && !r4e.hasOwnProperty(n.mainType) && i && i.model !== r; + return n && n !== r && !f4e.hasOwnProperty(n.mainType) && i && i.model !== r; } -function YZ(e) { +function ZZ(e) { if (Je(e)) { var t = new DOMParser(); e = t.parseFromString(e, "text/xml"); @@ -72328,7 +72369,7 @@ function YZ(e) { r = r.nextSibling; return r; } -var rR, eb = { +var rR, rb = { fill: "fill", stroke: "stroke", "stroke-width": "lineWidth", @@ -72347,16 +72388,16 @@ var rR, eb = { "text-anchor": "textAlign", visibility: "visibility", display: "display" -}, qV = ar(eb), tb = { +}, ZV = ar(rb), nb = { "alignment-baseline": "textBaseline", "stop-color": "stopColor" -}, XV = ar(tb), n4e = function() { +}, QV = ar(nb), p4e = function() { function e() { this._defs = {}, this._root = null; } return e.prototype.parse = function(t, r) { r = r || {}; - var n = YZ(t); + var n = ZZ(t); if (process.env.NODE_ENV !== "production" && !n) throw new Error("Illegal svg"); this._defsUsePending = []; @@ -72366,7 +72407,7 @@ var rR, eb = { isNaN(s) && (s = null), isNaN(l) && (l = null), Mo(n, i, null, !0, !1); for (var c = n.firstChild; c; ) this._parseNode(c, i, o, null, !1, !1), c = c.nextSibling; - a4e(this._defs, this._defsUsePending), this._defsUsePending = []; + m4e(this._defs, this._defsUsePending), this._defsUsePending = []; var u, d; if (a) { var h = s1(a); @@ -72377,7 +72418,7 @@ var rR, eb = { height: parseFloat(h[3]) }); } - if (u && s != null && l != null && (d = XZ(u, { x: 0, y: 0, width: s, height: l }), !r.ignoreViewBox)) { + if (u && s != null && l != null && (d = JZ(u, { x: 0, y: 0, width: s, height: l }), !r.ignoreViewBox)) { var f = i; i = new Ot(), i.add(f), f.scaleX = f.scaleY = d.scale, f.x = d.x, f.y = d.y; } @@ -72418,8 +72459,8 @@ var rR, eb = { r.add(l); } } - var f = ZV[s]; - if (f && lt(ZV, s)) { + var f = JV[s]; + if (f && lt(JV, s)) { var p = f.call(this, t), g = t.getAttribute("id"); g && (this._defs[g] = p); } @@ -72428,7 +72469,7 @@ var rR, eb = { for (var v = t.firstChild; v; ) v.nodeType === 1 ? this._parseNode(v, l, n, c, o, a) : v.nodeType === 3 && a && this._parseText(v, l), v = v.nextSibling; }, e.prototype._parseText = function(t, r) { - var n = new Nf({ + var n = new $f({ style: { text: t.textContent }, @@ -72436,7 +72477,7 @@ var rR, eb = { x: this._textX || 0, y: this._textY || 0 }); - ra(r, n), Mo(t, n, this._defsUsePending, !1, !1), i4e(n, r); + ra(r, n), Mo(t, n, this._defsUsePending, !1, !1), g4e(n, r); var i = n.style, o = i.fontSize; o && o < 9 && (i.fontSize = 9, n.scaleX *= o / 9, n.scaleY *= o / 9); var a = (i.fontSize || i.fontFamily) && [ @@ -72491,7 +72532,7 @@ var rR, eb = { }, polygon: function(t, r) { var n = t.getAttribute("points"), i; - n && (i = e6(n)); + n && (i = r6(n)); var o = new oo({ shape: { points: i || [] @@ -72502,7 +72543,7 @@ var rR, eb = { }, polyline: function(t, r) { var n = t.getAttribute("points"), i; - n && (i = e6(n)); + n && (i = r6(n)); var o = new ao({ shape: { points: i || [] @@ -72512,7 +72553,7 @@ var rR, eb = { return ra(r, o), Mo(t, o, this._defsUsePending, !1, !1), o; }, image: function(t, r) { - var n = new yi(); + var n = new Ci(); return ra(r, n), Mo(t, n, this._defsUsePending, !1, !1), n.setStyle({ image: t.getAttribute("xlink:href") || t.getAttribute("href"), x: +t.getAttribute("x"), @@ -72534,32 +72575,32 @@ var rR, eb = { return ra(r, s), Mo(t, s, this._defsUsePending, !1, !0), this._textX += parseFloat(o), this._textY += parseFloat(a), s; }, path: function(t, r) { - var n = t.getAttribute("d") || "", i = AY(n); + var n = t.getAttribute("d") || "", i = FY(n); return ra(r, i), Mo(t, i, this._defsUsePending, !1, !1), i.silent = !0, i; } }; }(), e; -}(), ZV = { +}(), JV = { lineargradient: function(e) { - var t = parseInt(e.getAttribute("x1") || "0", 10), r = parseInt(e.getAttribute("y1") || "0", 10), n = parseInt(e.getAttribute("x2") || "10", 10), i = parseInt(e.getAttribute("y2") || "0", 10), o = new hp(t, r, n, i); - return QV(e, o), JV(e, o), o; + var t = parseInt(e.getAttribute("x1") || "0", 10), r = parseInt(e.getAttribute("y1") || "0", 10), n = parseInt(e.getAttribute("x2") || "10", 10), i = parseInt(e.getAttribute("y2") || "0", 10), o = new pp(t, r, n, i); + return e6(e, o), t6(e, o), o; }, radialgradient: function(e) { - var t = parseInt(e.getAttribute("cx") || "0", 10), r = parseInt(e.getAttribute("cy") || "0", 10), n = parseInt(e.getAttribute("r") || "0", 10), i = new U2(t, r, n); - return QV(e, i), JV(e, i), i; + var t = parseInt(e.getAttribute("cx") || "0", 10), r = parseInt(e.getAttribute("cy") || "0", 10), n = parseInt(e.getAttribute("r") || "0", 10), i = new UI(t, r, n); + return e6(e, i), t6(e, i), i; } }; -function QV(e, t) { +function e6(e, t) { var r = e.getAttribute("gradientUnits"); r === "userSpaceOnUse" && (t.global = !0); } -function JV(e, t) { +function t6(e, t) { for (var r = e.firstChild; r; ) { if (r.nodeType === 1 && r.nodeName.toLocaleLowerCase() === "stop") { var n = r.getAttribute("offset"), i = void 0; n && n.indexOf("%") > 0 ? i = parseInt(n, 10) / 100 : n ? i = parseFloat(n) : i = 0; var o = {}; - qZ(r, o, o); + QZ(r, o, o); var a = o.stopColor || r.getAttribute("stop-color") || "#000000"; t.colorStops.push({ offset: i, @@ -72570,9 +72611,9 @@ function JV(e, t) { } } function ra(e, t) { - e && e.__inheritedStyle && (t.__inheritedStyle || (t.__inheritedStyle = {}), wt(t.__inheritedStyle, e.__inheritedStyle)); + e && e.__inheritedStyle && (t.__inheritedStyle || (t.__inheritedStyle = {}), xt(t.__inheritedStyle, e.__inheritedStyle)); } -function e6(e) { +function r6(e) { for (var t = s1(e), r = [], n = 0; n < t.length; n += 2) { var i = parseFloat(t[n]), o = parseFloat(t[n + 1]); r.push([i, o]); @@ -72581,7 +72622,7 @@ function e6(e) { } function Mo(e, t, r, n, i) { var o = t, a = o.__inheritedStyle = o.__inheritedStyle || {}, s = {}; - e.nodeType === 1 && (c4e(e, t), qZ(e, a, s), n || u4e(e, a, s)), o.style = o.style || {}, a.fill != null && (o.style.fill = t6(o, "fill", a.fill, r)), a.stroke != null && (o.style.stroke = t6(o, "stroke", a.stroke, r)), z([ + e.nodeType === 1 && (S4e(e, t), QZ(e, a, s), n || b4e(e, a, s)), o.style = o.style || {}, a.fill != null && (o.style.fill = n6(o, "fill", a.fill, r)), a.stroke != null && (o.style.stroke = n6(o, "stroke", a.stroke, r)), z([ "lineWidth", "opacity", "fillOpacity", @@ -72604,7 +72645,7 @@ function Mo(e, t, r, n, i) { return parseFloat(l); })), (a.visibility === "hidden" || a.visibility === "collapse") && (o.invisible = !0), a.display === "none" && (o.ignore = !0); } -function i4e(e, t) { +function g4e(e, t) { var r = t.__selfStyle; if (r) { var n = r.textBaseline, i = n; @@ -72616,9 +72657,9 @@ function i4e(e, t) { a && (a === "middle" && (s = "center"), e.style.textAlign = s); } } -var o4e = /^url\(\s*#(.*?)\)/; -function t6(e, t, r, n) { - var i = r && r.match(o4e); +var v4e = /^url\(\s*#(.*?)\)/; +function n6(e, t, r, n) { + var i = r && r.match(v4e); if (i) { var o = ga(i[1]); n.push([e, t, o]); @@ -72626,23 +72667,23 @@ function t6(e, t, r, n) { } return r === "none" && (r = null), r; } -function a4e(e, t) { +function m4e(e, t) { for (var r = 0; r < t.length; r++) { var n = t[r]; n[0].style[n[1]] = e[n[2]]; } } -var s4e = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g; +var y4e = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g; function s1(e) { - return e.match(s4e) || []; + return e.match(y4e) || []; } -var l4e = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g, nR = Math.PI / 180; -function c4e(e, t) { +var C4e = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g, nR = Math.PI / 180; +function S4e(e, t) { var r = e.getAttribute("transform"); if (r) { r = r.replace(/,/g, " "); var n = [], i = null; - r.replace(l4e, function(d, h, f) { + r.replace(C4e, function(d, h, f) { return n.push(h, f), ""; }); for (var o = n.length - 1; o > 0; o -= 2) { @@ -72676,30 +72717,30 @@ function c4e(e, t) { t.setLocalTransform(i); } } -var r6 = /([^\s:;]+)\s*:\s*([^:;]+)/g; -function qZ(e, t, r) { +var i6 = /([^\s:;]+)\s*:\s*([^:;]+)/g; +function QZ(e, t, r) { var n = e.getAttribute("style"); if (n) { - r6.lastIndex = 0; - for (var i; (i = r6.exec(n)) != null; ) { - var o = i[1], a = lt(eb, o) ? eb[o] : null; + i6.lastIndex = 0; + for (var i; (i = i6.exec(n)) != null; ) { + var o = i[1], a = lt(rb, o) ? rb[o] : null; a && (t[a] = i[2]); - var s = lt(tb, o) ? tb[o] : null; + var s = lt(nb, o) ? nb[o] : null; s && (r[s] = i[2]); } } } -function u4e(e, t, r) { - for (var n = 0; n < qV.length; n++) { - var i = qV[n], o = e.getAttribute(i); - o != null && (t[eb[i]] = o); +function b4e(e, t, r) { + for (var n = 0; n < ZV.length; n++) { + var i = ZV[n], o = e.getAttribute(i); + o != null && (t[rb[i]] = o); } - for (var n = 0; n < XV.length; n++) { - var i = XV[n], o = e.getAttribute(i); - o != null && (r[tb[i]] = o); + for (var n = 0; n < QV.length; n++) { + var i = QV[n], o = e.getAttribute(i); + o != null && (r[nb[i]] = o); } } -function XZ(e, t) { +function JZ(e, t) { var r = t.width / e.width, n = t.height / e.height, i = Math.min(r, n); return { scale: i, @@ -72707,11 +72748,11 @@ function XZ(e, t) { y: -(e.y + e.height / 2) * i + (t.y + t.height / 2) }; } -function d4e(e, t) { - var r = new n4e(); +function w4e(e, t) { + var r = new p4e(); return r.parse(e, t); } -var h4e = ft([ +var x4e = ft([ "rect", "circle", "line", @@ -72728,17 +72769,17 @@ var h4e = ft([ // expected. So we can put them into a . Thereby only one label // displayed and located based on the bounding rect of the . "g" -]), f4e = ( +]), E4e = ( /** @class */ function() { function e(t, r) { - this.type = "geoSVG", this._usedGraphicMap = ft(), this._freedGraphics = [], this._mapName = t, this._parsedXML = YZ(r); + this.type = "geoSVG", this._usedGraphicMap = ft(), this._freedGraphics = [], this._mapName = t, this._parsedXML = ZZ(r); } return e.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 r = g4e(t.named), n = r.regions, i = r.regionsMap; + var r = P4e(t.named), n = r.regions, i = r.regionsMap; this._regions = n, this._regionsMap = i; } return { @@ -72749,10 +72790,10 @@ var h4e = ft([ }, e.prototype._buildGraphic = function(t) { var r, n; try { - r = t && d4e(t, { + r = t && w4e(t, { ignoreViewBox: !0, ignoreRootClip: !0 - }) || {}, n = r.root, xt(n != null); + }) || {}, n = r.root, Et(n != null); } catch (v) { throw new Error(`Invalid svg format ` + v.message); @@ -72766,10 +72807,10 @@ var h4e = ft([ var f = n.getBoundingRect(); c == null && (c = f.x, d = f.width), u == null && (u = f.y, h = f.height); } - l = this._boundingRect = new Kt(c, u, d, h); + l = this._boundingRect = new Yt(c, u, d, h); } if (s) { - var p = XZ(s, l); + var p = JZ(s, l); n.scaleX = n.scaleY = p.scale, n.x = p.x, n.y = p.y; } i.setClipPath(new mr({ @@ -72777,7 +72818,7 @@ var h4e = ft([ })); var g = []; return z(r.named, function(v) { - h4e.get(v.svgNodeTagLower) != null && (g.push(v), p4e(v.el)); + x4e.get(v.svgNodeTagLower) != null && (g.push(v), R4e(v.el)); }), { root: i, boundingRect: l, @@ -72792,16 +72833,16 @@ var h4e = ft([ }, e; }() ); -function p4e(e) { +function R4e(e) { e.silent = !1, e.isGroup && e.traverse(function(t) { t.silent = !1; }); } -function g4e(e) { +function P4e(e) { var t = [], r = ft(); return z(e, function(n) { if (n.namedFrom == null) { - var i = new eNe(n.name, n.el); + var i = new dNe(n.name, n.el); t.push(i), r.set(n.name, i); } }), { @@ -72809,16 +72850,16 @@ function g4e(e) { regionsMap: r }; } -var RM = [126, 25], n6 = "南海诸岛", Fu = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.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]]]; +var RM = [126, 25], o6 = "南海诸岛", Fu = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.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]]]; for (var Iu = 0; Iu < Fu.length; Iu++) for (var Dh = 0; Dh < Fu[Iu].length; Dh++) Fu[Iu][Dh][0] /= 10.5, Fu[Iu][Dh][1] /= -10.5 / 0.75, Fu[Iu][Dh][0] += RM[0], Fu[Iu][Dh][1] += RM[1]; -function v4e(e, t) { +function T4e(e, t) { if (e === "china") { for (var r = 0; r < t.length; r++) - if (t[r].name === n6) + if (t[r].name === o6) return; - t.push(new UX(n6, Fe(Fu, function(n) { + t.push(new qX(o6, Fe(Fu, function(n) { return { type: "polygon", exterior: n @@ -72826,7 +72867,7 @@ function v4e(e, t) { }), RM)); } } -var m4e = { +var _4e = { 南海诸岛: [32, 80], // 全国 广东: [0, -10], @@ -72835,36 +72876,36 @@ var m4e = { // '北京': [-10, 0], 天津: [5, 5] }; -function y4e(e, t) { +function M4e(e, t) { if (e === "china") { - var r = m4e[t.name]; + var r = _4e[t.name]; if (r) { var n = t.getCenter(); n[0] += r[0] / 10.5, n[1] += -r[1] / (10.5 / 0.75), t.setCenter(n); } } } -var C4e = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]]; -function S4e(e, t) { +var D4e = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]]; +function I4e(e, t) { e === "china" && t.name === "台湾" && t.geometries.push({ type: "polygon", - exterior: C4e[0] + exterior: D4e[0] }); } -var b4e = "name", w4e = ( +var A4e = "name", O4e = ( /** @class */ function() { function e(t, r, n) { - this.type = "geoJSON", this._parsedMap = ft(), this._mapName = t, this._specialAreas = n, this._geoJSON = E4e(r); + this.type = "geoJSON", this._parsedMap = ft(), this._mapName = t, this._specialAreas = n, this._geoJSON = F4e(r); } return e.prototype.load = function(t, r) { - r = r || b4e; + r = r || A4e; var n = this._parsedMap.get(r); if (!n) { var i = this._parseToRegions(r); n = this._parsedMap.set(r, { regions: i, - boundingRect: x4e(i) + boundingRect: L4e(i) }); } var o = ft(), a = []; @@ -72873,7 +72914,7 @@ var b4e = "name", w4e = ( t && lt(t, l) && (s = s.cloneShallow(l = t[l])), a.push(s), o.set(l, s); }), { regions: a, - boundingRect: n.boundingRect || new Kt(0, 0, 0, 0), + boundingRect: n.boundingRect || new Yt(0, 0, 0, 0), regionsMap: o }; }, e.prototype._parseToRegions = function(t) { @@ -72884,9 +72925,9 @@ var b4e = "name", w4e = ( throw new Error(`Invalid geoJson format ` + o.message); } - return v4e(r, i), z(i, function(o) { + return T4e(r, i), z(i, function(o) { var a = o.name; - y4e(r, o), S4e(r, o); + M4e(r, o), I4e(r, o); var s = this._specialAreas && this._specialAreas[a]; s && o.transformTo(s.left, s.top, s.width, s.height); }, this), i; @@ -72902,18 +72943,18 @@ var b4e = "name", w4e = ( }, e; }() ); -function x4e(e) { +function L4e(e) { for (var t, r = 0; r < e.length; r++) { var n = e[r].getBoundingRect(); t = t || n.clone(), t.union(n); } return t; } -function E4e(e) { +function F4e(e) { return Je(e) ? typeof JSON < "u" && JSON.parse ? JSON.parse(e) : new Function("return (" + e + ");")() : e; } -var lg = ft(); -const jl = { +var ug = ft(); +const Ul = { /** * Compatible with previous `echarts.registerMap`. * @@ -72946,28 +72987,28 @@ const jl = { */ registerMap: function(e, t, r) { if (t.svg) { - var n = new f4e(e, t.svg); - lg.set(e, n); + var n = new E4e(e, t.svg); + ug.set(e, n); } else { var i = t.geoJson || t.geoJSON; i && !t.features ? r = t.specialAreas : i = t; - var n = new w4e(e, i, r); - lg.set(e, n); + var n = new O4e(e, i, r); + ug.set(e, n); } }, getGeoResource: function(e) { - return lg.get(e); + return ug.get(e); }, /** * Only for exporting to users. * **MUST NOT** used internally. */ getMapForUser: function(e) { - var t = lg.get(e); + var t = ug.get(e); return t && t.type === "geoJSON" && t.getMapForUser(); }, load: function(e, t, r) { - var n = lg.get(e); + var n = ug.get(e); if (!n) { process.env.NODE_ENV !== "production" && console.error("Map " + e + " not exists. The GeoJSON of the map must be provided."); return; @@ -72975,21 +73016,21 @@ const jl = { return n.load(t, r); } }; -var YA = ["rect", "circle", "line", "ellipse", "polygon", "polyline", "path"], R4e = ft(YA), P4e = ft(YA.concat(["g"])), T4e = ft(YA.concat(["g"])), ZZ = yr(); -function D0(e) { +var YA = ["rect", "circle", "line", "ellipse", "polygon", "polyline", "path"], N4e = ft(YA), k4e = ft(YA.concat(["g"])), $4e = ft(YA.concat(["g"])), eQ = yr(); +function O0(e) { var t = e.getItemStyle(), r = e.get("areaColor"); return r != null && (t.fill = r), t; } -function i6(e) { +function a6(e) { var t = e.style; t && (t.stroke = t.stroke || t.fill, t.fill = null); } -var QZ = ( +var tQ = ( /** @class */ function() { function e(t) { var r = new Ot(); - this.uid = mp("ec_map_draw"), this._controller = new uy(t.getZr()), this._controllerHost = { + this.uid = Cp("ec_map_draw"), this._controller = new fy(t.getZr()), this._controllerHost = { target: r }, this.group = r, r.add(this._regionsGroup = new Ot()), r.add(this._svgGroup = new Ot()); } @@ -73042,12 +73083,12 @@ var QZ = ( z(f.geometries, function(E) { if (E.type === "polygon") { var R = [E.exterior].concat(E.interiors || []); - c && (R = u6(R, c)), z(R, function(T) { + c && (R = h6(R, c)), z(R, function(T) { C.push(new oo(h(T))); }); } else { var P = E.points; - c && (P = u6(P, c, !0)), z(P, function(T) { + c && (P = h6(P, c, !0)), z(P, function(T) { b.push(new ao(h(T))); }); } @@ -73062,13 +73103,13 @@ var QZ = ( paths: E } }); - g.add(P), o6(t, P, m, y), a6(t, P, p, y, a, m, w), R && (i6(P), z(P.states, i6)); + g.add(P), s6(t, P, m, y), l6(t, P, p, y, a, m, w), R && (a6(P), z(P.states, a6)); } } x(C), x(b, !0); }), r.each(function(f, p) { var g = n.get(p), v = g.dataIdx, m = g.regionModel; - s6(t, f, p, m, a, v), l6(t, f, p, m, a), c6(t, f, p, m, a); + c6(t, f, p, m, a, v), u6(t, f, p, m, a), d6(t, f, p, m, a); }, this); }, e.prototype._buildSVG = function(t) { var r = t.geo.map, n = t.transformInfoRaw; @@ -73076,8 +73117,8 @@ var QZ = ( var i = this._svgDispatcherMap = ft(), o = !1; z(this._svgGraphicRecord.named, function(a) { var s = a.name, l = t.mapOrGeoModel, c = t.data, u = a.svgNodeTagLower, d = a.el, h = c ? c.indexOfName(s) : null, f = l.getRegionModel(s); - if (R4e.get(u) != null && d instanceof Ta && o6(t, d, h, f), d instanceof Ta && (d.culling = !0), d.z2EmphasisLift = 0, !a.namedFrom && (T4e.get(u) != null && a6(t, d, s, f, l, h, null), s6(t, d, s, f, l, h), l6(t, d, s, f, l), P4e.get(u) != null)) { - var p = c6(t, d, s, f, l); + if (N4e.get(u) != null && d instanceof Ta && s6(t, d, h, f), d instanceof Ta && (d.culling = !0), d.z2EmphasisLift = 0, !a.namedFrom && ($4e.get(u) != null && l6(t, d, s, f, l, h, null), c6(t, d, s, f, l, h), u6(t, d, s, f, l), k4e.get(u) != null)) { + var p = d6(t, d, s, f, l); p === "self" && (o = !0); var g = i.get(s) || i.set(s, []); g.push(d); @@ -73111,7 +73152,7 @@ var QZ = ( }, e.prototype._svgResourceChanged = function(t) { return this._svgMapName !== t; }, e.prototype._useSVG = function(t) { - var r = jl.getGeoResource(t); + var r = Ul.getGeoResource(t); if (r && r.type === "geoSVG") { var n = r.useGraphic(this.uid); this._svgGroup.add(n.root), this._svgGraphicRecord = n, this._svgMapName = t; @@ -73119,7 +73160,7 @@ var QZ = ( }, e.prototype._freeSVG = function() { var t = this._svgMapName; if (t != null) { - var r = jl.getGeoResource(t); + var r = Ul.getGeoResource(t); r && r.type === "geoSVG" && r.freeGraphic(this.uid), this._svgGraphicRecord = null, this._svgDispatcherMap = null, this._svgGroup.removeAll(), this._svgMapName = null; } }, e.prototype._updateController = function(t, r, n) { @@ -73157,7 +73198,7 @@ var QZ = ( }, e.prototype.resetForLabelLayout = function() { this.group.traverse(function(t) { var r = t.getTextContent(); - r && (r.ignore = ZZ(r).ignore); + r && (r.ignore = eQ(r).ignore); }); }, e.prototype._updateMapSelectHandler = function(t, r, n, i) { var o = this; @@ -73169,15 +73210,15 @@ var QZ = ( }, e; }() ); -function o6(e, t, r, n) { - var i = n.getModel("itemStyle"), o = n.getModel(["emphasis", "itemStyle"]), a = n.getModel(["blur", "itemStyle"]), s = n.getModel(["select", "itemStyle"]), l = D0(i), c = D0(o), u = D0(s), d = D0(a), h = e.data; +function s6(e, t, r, n) { + var i = n.getModel("itemStyle"), o = n.getModel(["emphasis", "itemStyle"]), a = n.getModel(["blur", "itemStyle"]), s = n.getModel(["select", "itemStyle"]), l = O0(i), c = O0(o), u = O0(s), d = O0(a), h = e.data; if (h) { var f = h.getItemVisual(r, "style"), p = h.getItemVisual(r, "decal"); - e.isVisualEncodedByVisualMap && f.fill && (l.fill = f.fill), p && (l.decal = Bf(p, e.api)); + e.isVisualEncodedByVisualMap && f.fill && (l.fill = f.fill), p && (l.decal = Hf(p, e.api)); } t.setStyle(l), t.style.strokeNoScale = !0, t.ensureState("emphasis").style = c, t.ensureState("select").style = u, t.ensureState("blur").style = d, Ad(t); } -function a6(e, t, r, n, i, o, a) { +function l6(e, t, r, n, i, o, a) { var s = e.data, l = e.isGeo, c = s && isNaN(s.get(s.mapDimension("value"), o)), u = s && s.getItemLayout(o); if (l || c || u && u.showLabel) { var d = l ? r : o, h = void 0; @@ -73188,13 +73229,13 @@ function a6(e, t, r, n, i, o, a) { verticalAlign: "middle" } } : null; - Ri(t, li(n), { + Pi(t, ci(n), { labelFetcher: h, labelDataIndex: d, defaultText: r }, f); var p = t.getTextContent(); - if (p && (ZZ(p).ignore = p.ignore, t.textConfig && a)) { + if (p && (eQ(p).ignore = p.ignore, t.textConfig && a)) { var g = t.getBoundingRect().clone(); t.textConfig.layoutRect = g, t.textConfig.position = [(a[0] - g.x) / g.width * 100 + "%", (a[1] - g.y) / g.height * 100 + "%"]; } @@ -73202,7 +73243,7 @@ function a6(e, t, r, n, i, o, a) { } else t.removeTextContent(), t.removeTextConfig(), t.disableLabelAnimation = null; } -function s6(e, t, r, n, i, o) { +function c6(e, t, r, n, i, o) { e.data ? e.data.setItemGraphicEl(o, t) : Ft(t).eventData = { componentType: "geo", componentIndex: i.componentIndex, @@ -73211,8 +73252,8 @@ function s6(e, t, r, n, i, o) { region: n && n.option || {} }; } -function l6(e, t, r, n, i) { - e.data || gp({ +function u6(e, t, r, n, i) { + e.data || mp({ el: t, componentModel: i, itemName: r, @@ -73220,12 +73261,12 @@ function l6(e, t, r, n, i) { itemTooltipOption: n.get("tooltip") }); } -function c6(e, t, r, n, i) { +function d6(e, t, r, n, i) { t.highDownSilentOnTouch = !!i.get("selectedMode"); var o = n.getModel("emphasis"), a = o.get("focus"); - return Rn(t, a, o.get("blurScope"), o.get("disabled")), e.isGeo && t2e(t, i, r), a; + return Rn(t, a, o.get("blurScope"), o.get("disabled")), e.isGeo && hIe(t, i, r), a; } -function u6(e, t, r) { +function h6(e, t, r) { var n = [], i; function o() { i = []; @@ -73251,7 +73292,7 @@ function u6(e, t, r) { s.lineEnd(); }), !r && s.polygonEnd(), n; } -var _4e = ( +var B4e = ( /** @class */ function(e) { Se(t, e); @@ -73267,7 +73308,7 @@ var _4e = ( var s = this._mapDraw; s && a.add(s.group); } else if (r.needsDrawMap) { - var s = this._mapDraw || new QZ(i); + var s = this._mapDraw || new tQ(i); a.add(s.group), s.draw(r, n, i, this, o), this._mapDraw = s; } else this._mapDraw && this._mapDraw.remove(), this._mapDraw = null; @@ -73301,11 +73342,11 @@ var _4e = ( }, silent: !0, // Do not overlap the first series, on which labels are displayed. - z2: 8 + (d ? 0 : dp + 1) + z2: 8 + (d ? 0 : fp + 1) }); if (!d) { var f = r.mainSeries.getData(), p = o.getName(l), g = f.indexOfName(p), v = o.getItemModel(l), m = v.getModel("label"), y = f.getItemGraphicEl(g); - Ri(h, li(v), { + Pi(h, ci(v), { labelFetcher: { getFormattedLabel: function(C, b) { return r.getFormattedLabel(g, b); @@ -73315,7 +73356,7 @@ var _4e = ( }), h.disableLabelAnimation = !0, m.get("position") || h.setTextConfig({ position: "bottom" }), y.onHoverStateChange = function(C) { - DS(h, C); + AS(h, C); }; } a.add(h); @@ -73324,7 +73365,7 @@ var _4e = ( }); }, t.type = "map", t; }($r) -), M4e = ( +), V4e = ( /** @class */ function(e) { Se(t, e); @@ -73338,14 +73379,14 @@ var _4e = ( }, r; } return t.prototype.getInitialData = function(r) { - for (var n = Pp(this, { + for (var n = _p(this, { coordDimensions: ["value"], encodeDefaulter: Vt(lA, this) }), i = ft(), o = [], a = 0, s = n.count(); a < s; a++) { var l = n.getName(a); i.set(l, !0); } - var c = jl.load(this.getMapType(), this.option.nameMap, this.option.nameProperty); + var c = Ul.load(this.getMapType(), this.option.nameMap, this.option.nameProperty); return z(c.regions, function(u) { var d = u.name; i.get(d) || o.push(d); @@ -73366,10 +73407,10 @@ var _4e = ( var d = l[u].originalData.indexOfName(s), h = o.mapDimension("value"); isNaN(l[u].originalData.get(h, d)) || c.push(l[u].name); } - return ci("section", { + return ui("section", { header: c.join(", "), noHeader: !c.length, - blocks: [ci("nameValue", { + blocks: [ui("nameValue", { name: s, value: a })] @@ -73454,7 +73495,7 @@ var _4e = ( }, t; }(jr) ); -function D4e(e, t) { +function H4e(e, t) { var r = {}; return z(e, function(n) { n.each(n.mapDimension("value"), function(i, o) { @@ -73468,13 +73509,13 @@ function D4e(e, t) { return t === "min" ? d = s : t === "max" ? d = l : t === "average" ? d = a / c : d = a, c === 0 ? NaN : d; }); } -function I4e(e) { +function z4e(e) { var t = {}; e.eachSeriesByType("map", function(r) { var n = r.getHostGeoModel(), i = n ? "o" + n.id : "i" + r.getMapType(); (t[i] = t[i] || []).push(r); }), z(t, function(r, n) { - for (var i = D4e(Fe(r, function(a) { + for (var i = H4e(Fe(r, function(a) { return a.getData(); }), r[0].get("mapValueCalculation")), o = 0; o < r.length; o++) r[o].originalData = r[o].getData(); @@ -73482,7 +73523,7 @@ function I4e(e) { r[o].seriesGroup = r, r[o].needsDrawMap = o === 0 && !r[o].getHostGeoModel(), r[o].setData(i.cloneShallow()), r[o].mainSeries = r[0]; }); } -function A4e(e) { +function G4e(e) { var t = {}; e.eachSeriesByType("map", function(r) { var n = r.getMapType(); @@ -73509,23 +73550,23 @@ function A4e(e) { } }); } -var d6 = gi, dy = ( +var f6 = vi, py = ( /** @class */ function(e) { Se(t, e); function t(r) { var n = e.call(this) || this; - return n.type = "view", n.dimensions = ["x", "y"], n._roamTransformable = new Rl(), n._rawTransformable = new Rl(), n.name = r, n; + return n.type = "view", n.dimensions = ["x", "y"], n._roamTransformable = new Pl(), n._rawTransformable = new Pl(), n.name = r, n; } return t.prototype.setBoundingRect = function(r, n, i, o) { - return this._rect = new Kt(r, n, i, o), this._rect; + return this._rect = new Yt(r, n, i, o), this._rect; }, t.prototype.getBoundingRect = function() { return this._rect; }, t.prototype.setViewRect = function(r, n, i, o) { - this._transformTo(r, n, i, o), this._viewRect = new Kt(r, n, i, o); + this._transformTo(r, n, i, o), this._viewRect = new Yt(r, n, i, o); }, t.prototype._transformTo = function(r, n, i, o) { var a = this.getBoundingRect(), s = this._rawTransformable; - s.transform = a.calculateTransform(new Kt(r, n, i, o)); + s.transform = a.calculateTransform(new Yt(r, n, i, o)); var l = s.parent; s.parent = null, s.decomposeTransform(), s.parent = l, this._updateTransform(); }, t.prototype.setCenter = function(r, n) { @@ -73545,12 +73586,12 @@ var d6 = gi, dy = ( return this._roamTransformable.getLocalTransform(); }, t.prototype._updateCenterAndZoom = function() { var r = this._rawTransformable.getLocalTransform(), n = this._roamTransformable, i = this.getDefaultCenter(), o = this.getCenter(), a = this.getZoom(); - o = gi([], o, r), i = gi([], i, r), n.originX = o[0], n.originY = o[1], n.x = i[0] - o[0], n.y = i[1] - o[1], n.scaleX = n.scaleY = a, this._updateTransform(); + o = vi([], o, r), i = vi([], i, r), n.originX = o[0], n.originY = o[1], n.x = i[0] - o[0], n.y = i[1] - o[1], n.scaleX = n.scaleY = a, this._updateTransform(); }, t.prototype._updateTransform = function() { var r = this._roamTransformable, n = this._rawTransformable; n.parent = r, r.updateTransform(), n.updateTransform(), Rw(this.transform || (this.transform = []), n.transform || So()), this._rawTransform = n.getLocalTransform(), this.invTransform = this.invTransform || [], Ud(this.invTransform, this.transform), this.decomposeTransform(); }, t.prototype.getTransformInfo = function() { - var r = this._rawTransformable, n = this._roamTransformable, i = new Rl(); + var r = this._rawTransformable, n = this._roamTransformable, i = new Pl(); return i.transform = n.transform, i.decomposeTransform(), { roam: { x: i.x, @@ -73572,26 +73613,26 @@ var d6 = gi, dy = ( return r.applyTransform(this.transform), r; }, t.prototype.dataToPoint = function(r, n, i) { var o = n ? this._rawTransform : this.transform; - return i = i || [], o ? d6(i, r, o) : Mi(i, r); + return i = i || [], o ? f6(i, r, o) : Mi(i, r); }, t.prototype.pointToData = function(r) { var n = this.invTransform; - return n ? d6([], r, n) : [r[0], r[1]]; + return n ? f6([], r, n) : [r[0], r[1]]; }, t.prototype.convertToPixel = function(r, n, i) { - var o = h6(n); + var o = p6(n); return o === this ? o.dataToPoint(i) : null; }, t.prototype.convertFromPixel = function(r, n, i) { - var o = h6(n); + var o = p6(n); return o === this ? o.pointToData(i) : null; }, t.prototype.containPoint = function(r) { return this.getViewRectAfterRoam().contain(r[0], r[1]); }, t.dimensions = ["x", "y"], t; - }(Rl) + }(Pl) ); -function h6(e) { +function p6(e) { var t = e.seriesModel; return t ? t.coordinateSystem : null; } -var O4e = { +var W4e = { geoJSON: { aspectScale: 0.75, invertLongitute: !0 @@ -73600,14 +73641,14 @@ var O4e = { aspectScale: 1, invertLongitute: !1 } -}, JZ = ["lng", "lat"], eQ = ( +}, rQ = ["lng", "lat"], nQ = ( /** @class */ function(e) { Se(t, e); function t(r, n, i) { var o = e.call(this, r) || this; - o.dimensions = JZ, o.type = "geo", o._nameCoordMap = ft(), o.map = n; - var a = i.projection, s = jl.load(n, i.nameMap, i.nameProperty), l = jl.getGeoResource(n), c = o.resourceType = l ? l.type : null, u = o.regions = s.regions, d = O4e[l.type]; + o.dimensions = rQ, o.type = "geo", o._nameCoordMap = ft(), o.map = n; + var a = i.projection, s = Ul.load(n, i.nameMap, i.nameProperty), l = Ul.getGeoResource(n), c = o.resourceType = l ? l.type : null, u = o.regions = s.regions, d = W4e[l.type]; o._regionsMap = s.regionsMap, o.regions = s.regions, process.env.NODE_ENV !== "production" && a && (c === "geoSVG" && (process.env.NODE_ENV !== "production" && Cn("Map " + n + " with SVG source can't use projection. Only GeoJSON source supports projection."), a = null), a.project && a.unproject || (process.env.NODE_ENV !== "production" && Cn("project and unproject must be both provided in the projeciton."), a = null)), o.projection = a; var h; if (a) @@ -73623,7 +73664,7 @@ var O4e = { var a = this.getBoundingRect(), s = this._invertLongitute; a = a.clone(), s && (a.y = -a.y - a.height); var l = this._rawTransformable; - l.transform = a.calculateTransform(new Kt(r, n, i, o)); + l.transform = a.calculateTransform(new Yt(r, n, i, o)); var c = l.parent; l.parent = null, l.decomposeTransform(), l.parent = c, s && (l.scaleY = -l.scaleY), this._updateTransform(); }, t.prototype.getRegion = function(r) { @@ -73652,21 +73693,21 @@ var O4e = { }, t.prototype.projectedToPoint = function(r, n, i) { return e.prototype.dataToPoint.call(this, r, n, i); }, t.prototype.convertToPixel = function(r, n, i) { - var o = f6(n); + var o = g6(n); return o === this ? o.dataToPoint(i) : null; }, t.prototype.convertFromPixel = function(r, n, i) { - var o = f6(n); + var o = g6(n); return o === this ? o.pointToData(i) : null; }, t; - }(dy) + }(py) ); -In(eQ, dy); -function f6(e) { +In(nQ, py); +function g6(e) { var t = e.geoModel, r = e.seriesModel; return t ? t.coordinateSystem : r ? r.coordinateSystem || (r.getReferringComponents("geo", Wn).models[0] || {}).coordinateSystem : null; } -const p6 = eQ; -function g6(e, t) { +const v6 = nQ; +function m6(e, t) { var r = e.get("boundingCoords"); if (r != null) { var n = r[0], i = r[1]; @@ -73680,7 +73721,7 @@ function g6(e, t) { var u = function(x, E, R, P) { for (var T = R - x, _ = P - E, D = 0; D <= 100; D++) { var A = D / 100, M = o.project([x + T * A, E + _ * A]); - xl(n, n, M), El(i, i, M); + El(n, n, M), Rl(i, i, M); } }; u(a, s, l, s), u(l, s, l, c), u(l, c, a, c), u(a, c, l, s); @@ -73702,16 +73743,16 @@ function g6(e, t) { } this.setViewRect(b.x, b.y, b.width, b.height), this.setCenter(e.get("center"), t), this.setZoom(e.get("zoom")); } -function L4e(e, t) { +function j4e(e, t) { z(t.get("geoCoord"), function(r, n) { e.addGeoCoord(n, r); }); } -var F4e = ( +var U4e = ( /** @class */ function() { function e() { - this.dimensions = JZ; + this.dimensions = rQ; } return e.prototype.create = function(t, r) { var n = []; @@ -73723,10 +73764,10 @@ var F4e = ( }; } t.eachComponent("geo", function(a, s) { - var l = a.get("map"), c = new p6(l + s, l, Pe({ + var l = a.get("map"), c = new v6(l + s, l, Pe({ nameMap: a.get("nameMap") }, i(a))); - c.zoomLimit = a.get("scaleLimit"), n.push(c), a.coordinateSystem = c, c.model = a, c.resize = g6, c.resize(a, r); + c.zoomLimit = a.get("scaleLimit"), n.push(c), a.coordinateSystem = c, c.model = a, c.resize = m6, c.resize(a, r); }), t.eachSeries(function(a) { var s = a.get("coordinateSystem"); if (s === "geo") { @@ -73743,19 +73784,19 @@ var F4e = ( }), z(o, function(a, s) { var l = Fe(a, function(u) { return u.get("nameMap"); - }), c = new p6(s, s, Pe({ + }), c = new v6(s, s, Pe({ nameMap: ww(l) }, i(a[0]))); c.zoomLimit = $n.apply(null, Fe(a, function(u) { return u.get("scaleLimit"); - })), n.push(c), c.resize = g6, c.resize(a[0], r), z(a, function(u) { - u.coordinateSystem = c, L4e(c, u); + })), n.push(c), c.resize = m6, c.resize(a[0], r), z(a, function(u) { + u.coordinateSystem = c, j4e(c, u); }); }), n; }, e.prototype.getFilledRegions = function(t, r, n, i) { for (var o = (t || []).slice(), a = ft(), s = 0; s < o.length; s++) a.set(o[s].name, o[s]); - var l = jl.load(r, n, i); + var l = Ul.load(r, n, i); return z(l.regions, function(c) { var u = c.name; !a.get(u) && o.push({ @@ -73764,7 +73805,7 @@ var F4e = ( }), o; }, e; }() -), tQ = new F4e(), N4e = ( +), iQ = new U4e(), K4e = ( /** @class */ function(e) { Se(t, e); @@ -73773,7 +73814,7 @@ var F4e = ( return r.type = t.type, r; } return t.prototype.init = function(r, n, i) { - var o = jl.getGeoResource(r.map); + var o = Ul.getGeoResource(r.map); if (o && o.type === "geoJSON") { var a = r.itemStyle = r.itemStyle || {}; "color" in a || (a.color = "#eee"); @@ -73781,7 +73822,7 @@ var F4e = ( this.mergeDefaultAndTheme(r, i), Md(r, "label", ["show"]); }, t.prototype.optionUpdated = function() { var r = this, n = this.option; - n.regions = tQ.getFilledRegions(n.regions, n.map, n.nameMap, n.nameProperty); + n.regions = iQ.getFilledRegions(n.regions, n.map, n.nameMap, n.nameProperty); var i = {}; this._optionModelMap = Ra(n.regions || [], function(o, a) { var s = a.name; @@ -73793,7 +73834,7 @@ var F4e = ( var i = this.getRegionModel(r), o = n === "normal" ? i.get(["label", "formatter"]) : i.get(["emphasis", "label", "formatter"]), a = { name: r }; - if (vt(o)) + if (mt(o)) return a.status = n, o(a); if (Je(o)) return o.replace("{a}", r ?? ""); @@ -73879,26 +73920,26 @@ var F4e = ( }, t; }(Qt) ); -function v6(e, t) { +function y6(e, t) { return e.pointToProjected ? e.pointToProjected(t) : e.pointToData(t); } function qA(e, t, r, n) { var i = e.getZoom(), o = e.getCenter(), a = t.zoom, s = e.projectedToPoint ? e.projectedToPoint(o) : e.dataToPoint(o); - if (t.dx != null && t.dy != null && (s[0] -= t.dx, s[1] -= t.dy, e.setCenter(v6(e, s), n)), a != null) { + if (t.dx != null && t.dy != null && (s[0] -= t.dx, s[1] -= t.dy, e.setCenter(y6(e, s), n)), a != null) { if (r) { var l = r.min || 0, c = r.max || 1 / 0; a = Math.max(Math.min(i * a, c), l) / i; } e.scaleX *= a, e.scaleY *= a; var u = (t.originX - e.x) * (a - 1), d = (t.originY - e.y) * (a - 1); - e.x -= u, e.y -= d, e.updateTransform(), e.setCenter(v6(e, s), n), e.setZoom(a * i); + e.x -= u, e.y -= d, e.updateTransform(), e.setCenter(y6(e, s), n), e.setZoom(a * i); } return { center: e.getCenter(), zoom: e.getZoom() }; } -var k4e = ( +var Y4e = ( /** @class */ function(e) { Se(t, e); @@ -73913,7 +73954,7 @@ var k4e = ( this._mapDraw && this._mapDraw.remove(), this._mapDraw = null; return; } - this._mapDraw || (this._mapDraw = new QZ(i)); + this._mapDraw || (this._mapDraw = new tQ(i)); var a = this._mapDraw; a.draw(r, n, i, this, o), a.group.on("click", this._handleRegionClick, this), a.group.silent = r.get("silent"), this.group.add(a.group), this.updateSelectStatus(r, n, i); }, t.prototype._handleRegionClick = function(r) { @@ -73939,12 +73980,12 @@ var k4e = ( }, t.type = "geo", t; }(sn) ); -function $4e(e, t, r) { - jl.registerMap(e, t, r); +function q4e(e, t, r) { + Ul.registerMap(e, t, r); } -function rQ(e) { - e.registerCoordinateSystem("geo", tQ), e.registerComponentModel(N4e), e.registerComponentView(k4e), e.registerImpl("registerMap", $4e), e.registerImpl("getMap", function(r) { - return jl.getMapForUser(r); +function oQ(e) { + e.registerCoordinateSystem("geo", iQ), e.registerComponentModel(K4e), e.registerComponentView(Y4e), e.registerImpl("registerMap", q4e), e.registerImpl("getMap", function(r) { + return Ul.getMapForUser(r); }); function t(r, n) { n.update = "geo:updateSelectStatus", e.registerAction(n, function(i, o) { @@ -74002,10 +74043,10 @@ function rQ(e) { }); }); } -function B4e(e) { - er(rQ), e.registerChartView(_4e), e.registerSeriesModel(M4e), e.registerLayout(A4e), e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC, I4e), tX("map", e.registerAction); +function X4e(e) { + er(oQ), e.registerChartView(B4e), e.registerSeriesModel(V4e), e.registerLayout(G4e), e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC, z4e), iX("map", e.registerAction); } -function V4e(e) { +function Z4e(e) { var t = e; t.hierNode = { defaultAncestor: null, @@ -74033,48 +74074,48 @@ function V4e(e) { }, r.push(s); } } -function H4e(e, t) { +function Q4e(e, t) { var r = e.isExpand ? e.children : [], n = e.parentNode.children, i = e.hierNode.i ? n[e.hierNode.i - 1] : null; if (r.length) { - W4e(e); + t8e(e); var o = (r[0].hierNode.prelim + r[r.length - 1].hierNode.prelim) / 2; i ? (e.hierNode.prelim = i.hierNode.prelim + t(e, i), e.hierNode.modifier = e.hierNode.prelim - o) : e.hierNode.prelim = o; } else i && (e.hierNode.prelim = i.hierNode.prelim + t(e, i)); - e.parentNode.hierNode.defaultAncestor = j4e(e, i, e.parentNode.hierNode.defaultAncestor || n[0], t); + e.parentNode.hierNode.defaultAncestor = r8e(e, i, e.parentNode.hierNode.defaultAncestor || n[0], t); } -function z4e(e) { +function J4e(e) { var t = e.hierNode.prelim + e.parentNode.hierNode.modifier; e.setLayout({ x: t }, !0), e.hierNode.modifier += e.parentNode.hierNode.modifier; } -function m6(e) { - return arguments.length ? e : Y4e; +function C6(e) { + return arguments.length ? e : o8e; } -function Ag(e, t) { +function Lg(e, t) { return e -= Math.PI / 2, { x: t * Math.cos(e), y: t * Math.sin(e) }; } -function G4e(e, t) { +function e8e(e, t) { return jn(e.getBoxLayoutParams(), { width: t.getWidth(), height: t.getHeight() }); } -function W4e(e) { +function t8e(e) { for (var t = e.children, r = t.length, n = 0, i = 0; --r >= 0; ) { var o = t[r]; o.hierNode.prelim += n, o.hierNode.modifier += n, i += o.hierNode.change, n += o.hierNode.shift + i; } } -function j4e(e, t, r, n) { +function r8e(e, t, r, n) { if (t) { for (var i = e, o = e, a = o.parentNode.children[0], s = t, l = i.hierNode.modifier, c = o.hierNode.modifier, u = a.hierNode.modifier, d = s.hierNode.modifier; s = iR(s), o = oR(o), s && o; ) { i = iR(i), a = oR(a), i.hierNode.ancestor = e; var h = s.hierNode.prelim + d - o.hierNode.prelim - c + n(s, o); - h > 0 && (K4e(U4e(s, e, r), e, h), c += h, l += h), d += s.hierNode.modifier, c += o.hierNode.modifier, l += i.hierNode.modifier, u += a.hierNode.modifier; + h > 0 && (i8e(n8e(s, e, r), e, h), c += h, l += h), d += s.hierNode.modifier, c += o.hierNode.modifier, l += i.hierNode.modifier, u += a.hierNode.modifier; } s && !iR(i) && (i.hierNode.thread = s, i.hierNode.modifier += d - l), o && !oR(a) && (a.hierNode.thread = o, a.hierNode.modifier += c - u, r = e); } @@ -74088,17 +74129,17 @@ function oR(e) { var t = e.children; return t.length && e.isExpand ? t[0] : e.hierNode.thread; } -function U4e(e, t, r) { +function n8e(e, t, r) { return e.hierNode.ancestor.parentNode === t.parentNode ? e.hierNode.ancestor : r; } -function K4e(e, t, r) { +function i8e(e, t, r) { var n = r / (t.hierNode.i - e.hierNode.i); t.hierNode.change -= n, t.hierNode.shift += r, t.hierNode.modifier += r, t.hierNode.prelim += r, e.hierNode.change += n; } -function Y4e(e, t) { +function o8e(e, t) { return e.parentNode === t.parentNode ? 1 : 2; } -var q4e = ( +var a8e = ( /** @class */ /* @__PURE__ */ function() { function e() { @@ -74106,7 +74147,7 @@ var q4e = ( } return e; }() -), X4e = ( +), s8e = ( /** @class */ function(e) { Se(t, e); @@ -74119,7 +74160,7 @@ var q4e = ( fill: null }; }, t.prototype.getDefaultShape = function() { - return new q4e(); + return new a8e(); }, t.prototype.buildPath = function(r, n) { var i = n.childPoints, o = i.length, a = n.parentPoint, s = i[0], l = i[o - 1]; if (o === 1) { @@ -74134,7 +74175,7 @@ var q4e = ( } }, t; }(nr) -), Z4e = ( +), l8e = ( /** @class */ function(e) { Se(t, e); @@ -74143,7 +74184,7 @@ var q4e = ( return r.type = t.type, r._mainGroup = new Ot(), r; } return t.prototype.init = function(r, n) { - this._controller = new uy(n.getZr()), this._controllerHost = { + this._controller = new fy(n.getZr()), this._controllerHost = { target: this.group }, this.group.add(this._mainGroup); }, t.prototype.render = function(r, n, i) { @@ -74151,17 +74192,17 @@ var q4e = ( l === "radial" ? (s.x = a.x + a.width / 2, s.y = a.y + a.height / 2) : (s.x = a.x, s.y = a.y), this._updateViewCoordSys(r, i), this._updateController(r, n, i); var c = this._data; o.diff(c).add(function(u) { - y6(o, u) && C6(o, u, null, s, r); + S6(o, u) && b6(o, u, null, s, r); }).update(function(u, d) { var h = c.getItemGraphicEl(d); - if (!y6(o, u)) { - h && b6(c, d, h, s, r); + if (!S6(o, u)) { + h && x6(c, d, h, s, r); return; } - C6(o, u, h, s, r); + b6(o, u, h, s, r); }).remove(function(u) { var d = c.getItemGraphicEl(u); - d && b6(c, u, d, s, r); + d && x6(c, u, d, s, r); }).execute(), this._nodeScaleRatio = r.get("nodeScaleRatio"), this._updateNodeAndLinkScale(r), r.get("expandAndCollapse") === !0 && o.eachItemGraphicEl(function(u, d) { u.off("click").on("click", function() { i.dispatchAction({ @@ -74181,7 +74222,7 @@ var q4e = ( Fw(o, a, s); var l = this._min, c = this._max; s[0] - a[0] === 0 && (a[0] = l ? l[0] : a[0] - 1, s[0] = c ? c[0] : s[0] + 1), s[1] - a[1] === 0 && (a[1] = l ? l[1] : a[1] - 1, s[1] = c ? c[1] : s[1] + 1); - var u = r.coordinateSystem = new dy(); + var u = r.coordinateSystem = new py(); u.zoomLimit = r.get("scaleLimit"), u.setBoundingRect(a[0], a[1], s[0] - a[0], s[1] - a[1]), u.setCenter(r.get("center"), n), u.setZoom(r.get("zoom")), this.group.attr({ x: u.x, y: u.y, @@ -74227,18 +74268,18 @@ var q4e = ( }, t.type = "tree", t; }($r) ); -function y6(e, t) { +function S6(e, t) { var r = e.getItemLayout(t); return r && !isNaN(r.x) && !isNaN(r.y); } -function C6(e, t, r, n, i) { +function b6(e, t, r, n, i) { var o = !r, a = e.tree.getNodeByDataIndex(t), s = a.getModel(), l = a.getVisual("style").fill, c = a.isExpand === !1 && a.children.length !== 0 ? l : "#fff", u = e.tree.root, d = a.parentNode === u ? a : a.parentNode || a, h = e.getItemGraphicEl(d.dataIndex), f = d.getLayout(), p = h ? { x: h.__oldX, y: h.__oldY, rawX: h.__radialOldRawX, rawY: h.__radialOldRawY } : f, g = a.getLayout(); - o ? (r = new iy(e, t, null, { + o ? (r = new sy(e, t, null, { symbolInnerColor: c, useNameLabel: !0 }), r.x = p.x, r.y = p.y) : r.updateData(e, t, null, { @@ -74266,18 +74307,18 @@ function C6(e, t, r, n, i) { origin: "center" }), _.setStyle("verticalAlign", "middle")); } - var D = s.get(["emphasis", "focus"]), A = D === "relative" ? Vv(a.getAncestorsIndices(), a.getDescendantIndices()) : D === "ancestor" ? a.getAncestorsIndices() : D === "descendant" ? a.getDescendantIndices() : null; - A && (Ft(r).focus = A), Q4e(i, a, u, r, p, f, g, n), r.__edge && (r.onHoverStateChange = function(M) { + var D = s.get(["emphasis", "focus"]), A = D === "relative" ? zv(a.getAncestorsIndices(), a.getDescendantIndices()) : D === "ancestor" ? a.getAncestorsIndices() : D === "descendant" ? a.getDescendantIndices() : null; + A && (Ft(r).focus = A), c8e(i, a, u, r, p, f, g, n), r.__edge && (r.onHoverStateChange = function(M) { if (M !== "blur") { var O = a.parentNode && e.getItemGraphicEl(a.parentNode.dataIndex); - O && O.hoverState === Xm || DS(r.__edge, M); + O && O.hoverState === Jm || AS(r.__edge, M); } }); } -function Q4e(e, t, r, n, i, o, a, s) { +function c8e(e, t, r, n, i, o, a, s) { var l = t.getModel(), c = e.get("edgeShape"), u = e.get("layout"), d = e.getOrient(), h = e.get(["lineStyle", "curveness"]), f = e.get("edgeForkPosition"), p = l.getModel("lineStyle").getLineStyle(), g = n.__edge; if (c === "curve") - t.parentNode && t.parentNode !== r && (g || (g = n.__edge = new Qm({ + t.parentNode && t.parentNode !== r && (g || (g = n.__edge = new ty({ shape: PM(u, d, h, i, i) })), br(g, { shape: PM(u, d, h, o, a) @@ -74289,7 +74330,7 @@ function Q4e(e, t, r, n, i, o, a, s) { var C = v[y].getLayout(); m.push([C.x, C.y]); } - g || (g = n.__edge = new X4e({ + g || (g = n.__edge = new s8e({ shape: { parentPoint: [a.x, a.y], childPoints: [[a.x, a.y]], @@ -74306,13 +74347,13 @@ function Q4e(e, t, r, n, i, o, a, s) { } else if (process.env.NODE_ENV !== "production") throw new Error("The polyline edgeShape can only be used in orthogonal layout"); } - g && !(c === "polyline" && !t.isExpand) && (g.useStyle(wt({ + g && !(c === "polyline" && !t.isExpand) && (g.useStyle(xt({ strokeNoScale: !0, fill: null - }, p)), Ei(g, l, "lineStyle"), Ad(g), s.add(g)); + }, p)), Ri(g, l, "lineStyle"), Ad(g), s.add(g)); } -function S6(e, t, r, n, i) { - var o = t.tree.root, a = nQ(o, e), s = a.source, l = a.sourceLayout, c = t.getItemGraphicEl(e.dataIndex); +function w6(e, t, r, n, i) { + var o = t.tree.root, a = aQ(o, e), s = a.source, l = a.sourceLayout, c = t.getItemGraphicEl(e.dataIndex); if (c) { var u = t.getItemGraphicEl(s.dataIndex), d = u.__edge, h = c.__edge || (s.isExpand === !1 || s.children.length === 1 ? d : void 0), f = n.get("edgeShape"), p = n.get("layout"), g = n.get("orient"), v = n.get(["lineStyle", "curveness"]); h && (f === "curve" ? jc(h, { @@ -74341,7 +74382,7 @@ function S6(e, t, r, n, i) { })); } } -function nQ(e, t) { +function aQ(e, t) { for (var r = t.parentNode === e ? t : t.parentNode || t, n; n = r.getLayout(), n == null; ) r = r.parentNode === e ? r : r.parentNode || r; return { @@ -74349,8 +74390,8 @@ function nQ(e, t) { sourceLayout: n }; } -function b6(e, t, r, n, i) { - var o = e.tree.getNodeByDataIndex(t), a = e.tree.root, s = nQ(a, o).sourceLayout, l = { +function x6(e, t, r, n, i) { + var o = e.tree.getNodeByDataIndex(t), a = e.tree.root, s = aQ(a, o).sourceLayout, l = { duration: i.get("animationDurationUpdate"), easing: i.get("animationEasingUpdate") }; @@ -74366,14 +74407,14 @@ function b6(e, t, r, n, i) { fadeLabel: !0, animation: l }), o.children.forEach(function(c) { - S6(c, e, n, i, l); - }), S6(o, e, n, i, l); + w6(c, e, n, i, l); + }), w6(o, e, n, i, l); } function PM(e, t, r, n, i) { var o, a, s, l, c, u, d, h; if (e === "radial") { c = n.rawX, d = n.rawY, u = i.rawX, h = i.rawY; - var f = Ag(c, d), p = Ag(c, d + (h - d) * r), g = Ag(u, h + (d - h) * r), v = Ag(u, h); + var f = Lg(c, d), p = Lg(c, d + (h - d) * r), g = Lg(u, h + (d - h) * r), v = Lg(u, h); return { x1: f.x || 0, y1: f.y || 0, @@ -74398,41 +74439,41 @@ function PM(e, t, r, n, i) { }; } var Ca = yr(); -function iQ(e) { +function sQ(e) { var t = e.mainData, r = e.datas; r || (r = { main: t }, e.datasAttr = { main: "data" - }), e.datas = e.mainData = null, oQ(t, r, e), z(r, function(n) { + }), e.datas = e.mainData = null, lQ(t, r, e), z(r, function(n) { z(t.TRANSFERABLE_METHODS, function(i) { - n.wrapMethod(i, Vt(J4e, e)); + n.wrapMethod(i, Vt(u8e, e)); }); - }), t.wrapMethod("cloneShallow", Vt(t8e, e)), z(t.CHANGABLE_METHODS, function(n) { - t.wrapMethod(n, Vt(e8e, e)); - }), xt(r[t.dataType] === t); + }), t.wrapMethod("cloneShallow", Vt(h8e, e)), z(t.CHANGABLE_METHODS, function(n) { + t.wrapMethod(n, Vt(d8e, e)); + }), Et(r[t.dataType] === t); } -function J4e(e, t) { - if (i8e(this)) { +function u8e(e, t) { + if (g8e(this)) { var r = Pe({}, Ca(this).datas); - r[this.dataType] = t, oQ(t, r, e); + r[this.dataType] = t, lQ(t, r, e); } else XA(t, this.dataType, Ca(this).mainData, e); return t; } -function e8e(e, t) { +function d8e(e, t) { return e.struct && e.struct.update(), t; } -function t8e(e, t) { +function h8e(e, t) { return z(Ca(t).datas, function(r, n) { r !== t && XA(r.cloneShallow(), n, t, e); }), t; } -function r8e(e) { +function f8e(e) { var t = Ca(this).mainData; return e == null || t == null ? t : Ca(t).datas[e]; } -function n8e() { +function p8e() { var e = Ca(this).mainData; return e == null ? [{ data: e @@ -74443,18 +74484,18 @@ function n8e() { }; }); } -function i8e(e) { +function g8e(e) { return Ca(e).mainData === e; } -function oQ(e, t, r) { +function lQ(e, t, r) { Ca(e).datas = {}, z(t, function(n, i) { XA(n, i, e, r); }); } function XA(e, t, r, n) { - Ca(r).datas[t] = e, Ca(e).mainData = r, e.dataType = t, n.struct && (e[n.structAttr] = n.struct, n.struct[n.datasAttr[t]] = e), e.getLinkedData = r8e, e.getLinkedDataAll = n8e; + Ca(r).datas[t] = e, Ca(e).mainData = r, e.dataType = t, n.struct && (e[n.structAttr] = n.struct, n.struct[n.datasAttr[t]] = e), e.getLinkedData = f8e, e.getLinkedDataAll = p8e; } -var o8e = ( +var v8e = ( /** @class */ function() { function e(t, r) { @@ -74463,7 +74504,7 @@ var o8e = ( return e.prototype.isRemoved = function() { return this.dataIndex < 0; }, e.prototype.eachNode = function(t, r, n) { - vt(t) && (n = r, r = t, t = null), t = t || {}, Je(t) && (t = { + mt(t) && (n = r, r = t, t = null), t = t || {}, Je(t) && (t = { order: t }); var i = t.order || "preorder", o = this[t.attr || "children"], a; @@ -74574,20 +74615,20 @@ var o8e = ( s(t); function s(u, d) { var h = u.value; - a = Math.max(a, Ie(h) ? h.length : 1), o.push(u); - var f = new o8e(qn(u.name, ""), i); - d ? a8e(f, d) : i.root = f, i._nodes.push(f); + a = Math.max(a, Ae(h) ? h.length : 1), o.push(u); + var f = new v8e(qn(u.name, ""), i); + d ? m8e(f, d) : i.root = f, i._nodes.push(f); var p = u.children; if (p) for (var g = 0; g < p.length; g++) s(p[g], f); } i.root.updateDepthAndHeight(0); - var l = xp(o, { + var l = Rp(o, { coordDimensions: ["value"], dimensionsCount: a }).dimensions, c = new Fi(l, r); - return c.initData(o), n && n(c), iQ({ + return c.initData(o), n && n(c), sQ({ mainData: c, struct: i, structAttr: "tree" @@ -74595,12 +74636,12 @@ var o8e = ( }, e; }() ); -function a8e(e, t) { +function m8e(e, t) { var r = t.children; e.parentNode !== t && (r.push(e), e.parentNode = t); } -function am(e, t, r) { - if (e && Yt(t, e.type) >= 0) { +function lm(e, t, r) { + if (e && qt(t, e.type) >= 0) { var n = r.getData().tree.root, i = e.targetNode; if (Je(i) && (i = n.getNodeById(i)), i && n.contains(i)) return { @@ -74613,14 +74654,14 @@ function am(e, t, r) { }; } } -function aQ(e) { +function cQ(e) { for (var t = []; e; ) e = e.parentNode, e && t.push(e); return t.reverse(); } function QA(e, t) { - var r = aQ(e); - return Yt(r, t) >= 0; + var r = cQ(e); + return qt(r, t) >= 0; } function l1(e, t) { for (var r = []; e; ) { @@ -74633,7 +74674,7 @@ function l1(e, t) { } return r.reverse(), r; } -var s8e = ( +var y8e = ( /** @class */ function(e) { Se(t, e); @@ -74671,7 +74712,7 @@ var s8e = ( }, t.prototype.formatTooltip = function(r, n, i) { for (var o = this.getData().tree, a = o.root.children[0], s = o.getNodeByDataIndex(r), l = s.getValue(), c = s.name; s && s !== a; ) c = s.parentNode.name + "." + c, s = s.parentNode; - return ci("nameValue", { + return ui("nameValue", { name: c, value: l, noValue: isNaN(l) || l == null @@ -74724,7 +74765,7 @@ var s8e = ( }, t; }(jr) ); -function l8e(e, t, r) { +function C8e(e, t, r) { for (var n = [e], i = [], o; o = n.pop(); ) if (i.push(o), o.isExpand) { var a = o.children; @@ -74735,7 +74776,7 @@ function l8e(e, t, r) { for (; o = i.pop(); ) t(o, r); } -function cg(e, t) { +function dg(e, t) { for (var r = [e], n; n = r.pop(); ) if (t(n), n.isExpand) { var i = n.children; @@ -74744,31 +74785,31 @@ function cg(e, t) { r.push(i[o]); } } -function c8e(e, t) { +function S8e(e, t) { e.eachSeriesByType("tree", function(r) { - u8e(r, t); + b8e(r, t); }); } -function u8e(e, t) { - var r = G4e(e, t); +function b8e(e, t) { + var r = e8e(e, t); e.layoutInfo = r; var n = e.get("layout"), i = 0, o = 0, a = null; - n === "radial" ? (i = 2 * Math.PI, o = Math.min(r.height, r.width) / 2, a = m6(function(C, b) { + n === "radial" ? (i = 2 * Math.PI, o = Math.min(r.height, r.width) / 2, a = C6(function(C, b) { return (C.parentNode === b.parentNode ? 1 : 2) / C.depth; - })) : (i = r.width, o = r.height, a = m6()); + })) : (i = r.width, o = r.height, a = C6()); var s = e.getData().tree.root, l = s.children[0]; if (l) { - V4e(s), l8e(l, H4e, a), s.hierNode.modifier = -l.hierNode.prelim, cg(l, z4e); + Z4e(s), C8e(l, Q4e, a), s.hierNode.modifier = -l.hierNode.prelim, dg(l, J4e); var c = l, u = l, d = l; - cg(l, function(C) { + dg(l, function(C) { var b = C.getLayout().x; b < c.getLayout().x && (c = C), b > u.getLayout().x && (u = C), C.depth > d.depth && (d = C); }); var h = c === u ? 1 : a(c, u) / 2, f = h - c.getLayout().x, p = 0, g = 0, v = 0, m = 0; if (n === "radial") - p = i / (u.getLayout().x + h + f), g = o / (d.depth - 1 || 1), cg(l, function(C) { + p = i / (u.getLayout().x + h + f), g = o / (d.depth - 1 || 1), dg(l, function(C) { v = (C.getLayout().x + f) * p, m = (C.depth - 1) * g; - var b = Ag(v, m); + var b = Lg(v, m); C.setLayout({ x: b.x, y: b.y, @@ -74778,12 +74819,12 @@ function u8e(e, t) { }); else { var y = e.getOrient(); - y === "RL" || y === "LR" ? (g = o / (u.getLayout().x + h + f), p = i / (d.depth - 1 || 1), cg(l, function(C) { + y === "RL" || y === "LR" ? (g = o / (u.getLayout().x + h + f), p = i / (d.depth - 1 || 1), dg(l, function(C) { m = (C.getLayout().x + f) * g, v = y === "LR" ? (C.depth - 1) * p : i - (C.depth - 1) * p, C.setLayout({ x: v, y: m }, !0); - })) : (y === "TB" || y === "BT") && (p = i / (u.getLayout().x + h + f), g = o / (d.depth - 1 || 1), cg(l, function(C) { + })) : (y === "TB" || y === "BT") && (p = i / (u.getLayout().x + h + f), g = o / (d.depth - 1 || 1), dg(l, function(C) { v = (C.getLayout().x + f) * p, m = y === "TB" ? (C.depth - 1) * g : o - (C.depth - 1) * g, C.setLayout({ x: v, y: m @@ -74792,7 +74833,7 @@ function u8e(e, t) { } } } -function d8e(e) { +function w8e(e) { e.eachSeriesByType("tree", function(t) { var r = t.getData(), n = r.tree; n.eachNode(function(i) { @@ -74801,7 +74842,7 @@ function d8e(e) { }); }); } -function h8e(e) { +function x8e(e) { e.registerAction({ type: "treeExpandAndCollapse", event: "treeExpandAndCollapse", @@ -74834,14 +74875,14 @@ function h8e(e) { }); }); } -function f8e(e) { - e.registerChartView(Z4e), e.registerSeriesModel(s8e), e.registerLayout(c8e), e.registerVisual(d8e), h8e(e); +function E8e(e) { + e.registerChartView(l8e), e.registerSeriesModel(y8e), e.registerLayout(S8e), e.registerVisual(w8e), x8e(e); } -var w6 = ["treemapZoomToNode", "treemapRender", "treemapMove"]; -function p8e(e) { - for (var t = 0; t < w6.length; t++) +var E6 = ["treemapZoomToNode", "treemapRender", "treemapMove"]; +function R8e(e) { + for (var t = 0; t < E6.length; t++) e.registerAction({ - type: w6[t], + type: E6[t], update: "updateView" }, Dn); e.registerAction({ @@ -74854,7 +74895,7 @@ function p8e(e) { query: r }, i); function i(o, a) { - var s = ["treemapZoomToNode", "treemapRootToNode"], l = am(r, s, o); + var s = ["treemapZoomToNode", "treemapRootToNode"], l = lm(r, s, o); if (l) { var c = o.getViewRoot(); c && (r.direction = QA(c, l.node) ? "rollUp" : "drillDown"), o.resetViewRoot(l.node); @@ -74862,7 +74903,7 @@ function p8e(e) { } }); } -function sQ(e) { +function uQ(e) { var t = e.getData(), r = t.tree, n = {}; r.eachNode(function(i) { for (var o = i; o && o.depth > 1; ) @@ -74871,7 +74912,7 @@ function sQ(e) { i.setVisual("decal", a); }); } -var g8e = ( +var P8e = ( /** @class */ function(e) { Se(t, e); @@ -74884,11 +74925,11 @@ var g8e = ( name: r.name, children: r.data }; - lQ(i); + dQ(i); var o = r.levels || [], a = this.designatedVisualItemStyle = {}, s = new Gr({ itemStyle: a }, this, n); - o = r.levels = v8e(o, n); + o = r.levels = T8e(o, n); var l = Fe(o || [], function(d) { return new Gr(d, s, n); }, this), c = ZA.createTree(i, this, u); @@ -74903,7 +74944,7 @@ var g8e = ( this.resetViewRoot(); }, t.prototype.formatTooltip = function(r, n, i) { var o = this.getData(), a = this.getRawValue(r), s = o.getName(r); - return ci("nameValue", { + return ui("nameValue", { name: s, value: a }); @@ -74924,7 +74965,7 @@ var g8e = ( var n = this.getRawData().tree.root; (!r || r !== n && !n.contains(r)) && (this._viewRoot = n); }, t.prototype.enableAriaDecal = function() { - sQ(this); + uQ(this); }, t.type = "series.treemap", t.layoutMode = "box", t.defaultOption = { // Disable progressive rendering progressive: 0, @@ -75039,17 +75080,17 @@ var g8e = ( }, t; }(jr) ); -function lQ(e) { +function dQ(e) { var t = 0; z(e.children, function(n) { - lQ(n); + dQ(n); var i = n.value; - Ie(i) && (i = i[0]), t += i; + Ae(i) && (i = i[0]), t += i; }); var r = e.value; - Ie(r) && (r = r[0]), (r == null || isNaN(r)) && (r = t), r < 0 && (r = 0), Ie(e.value) ? e.value[0] = r : e.value = r; + Ae(r) && (r = r[0]), (r == null || isNaN(r)) && (r = t), r < 0 && (r = 0), Ae(e.value) ? e.value[0] = r : e.value = r; } -function v8e(e, t) { +function T8e(e, t) { var r = Wr(t.get("color")), n = Wr(t.get(["aria", "decal", "decals"])); if (r) { e = e || []; @@ -75062,7 +75103,7 @@ function v8e(e, t) { return i || (a.color = r.slice()), !o && n && (a.decal = n.slice()), e; } } -var m8e = 8, x6 = 8, aR = 5, y8e = ( +var _8e = 8, R6 = 8, aR = 5, M8e = ( /** @class */ function() { function e(t) { @@ -75090,22 +75131,22 @@ var m8e = 8, x6 = 8, aR = 5, y8e = ( } }, e.prototype._prepare = function(t, r, n) { for (var i = t; i; i = i.parentNode) { - var o = qn(i.getModel().get("name"), ""), a = n.getTextRect(o), s = Math.max(a.width + m8e * 2, r.emptyItemWidth); - r.totalWidth += s + x6, r.renderList.push({ + var o = qn(i.getModel().get("name"), ""), a = n.getTextRect(o), s = Math.max(a.width + _8e * 2, r.emptyItemWidth); + r.totalWidth += s + R6, r.renderList.push({ node: i, text: o, width: s }); } }, e.prototype._renderContent = function(t, r, n, i, o, a, s) { - for (var l = 0, c = r.emptyItemWidth, u = t.get(["breadcrumb", "height"]), d = aAe(r.pos, r.box), h = r.totalWidth, f = r.renderList, p = i.getModel("itemStyle").getItemStyle(), g = f.length - 1; g >= 0; g--) { + for (var l = 0, c = r.emptyItemWidth, u = t.get(["breadcrumb", "height"]), d = mAe(r.pos, r.box), h = r.totalWidth, f = r.renderList, p = i.getModel("itemStyle").getItemStyle(), g = f.length - 1; g >= 0; g--) { var v = f[g], m = v.node, y = v.width, C = v.text; h > d.width && (h -= y - c, y = c, C = null); var b = new oo({ shape: { - points: C8e(l, 0, y, u, g === f.length - 1, g === 0) + points: D8e(l, 0, y, u, g === f.length - 1, g === 0) }, - style: wt(n.getItemStyle(), { + style: xt(n.getItemStyle(), { lineJoin: "bevel" }), textContent: new vr({ @@ -75116,23 +75157,23 @@ var m8e = 8, x6 = 8, aR = 5, y8e = ( textConfig: { position: "inside" }, - z2: dp * 1e4, + z2: fp * 1e4, onclick: Vt(s, m) }); b.disableLabelAnimation = !0, b.getTextContent().ensureState("emphasis").style = rn(a, { text: C - }), b.ensureState("emphasis").style = p, Rn(b, i.get("focus"), i.get("blurScope"), i.get("disabled")), this.group.add(b), S8e(b, t, m), l += y + x6; + }), b.ensureState("emphasis").style = p, Rn(b, i.get("focus"), i.get("blurScope"), i.get("disabled")), this.group.add(b), I8e(b, t, m), l += y + R6; } }, e.prototype.remove = function() { this.group.removeAll(); }, e; }() ); -function C8e(e, t, r, n, i, o) { +function D8e(e, t, r, n, i, o) { var a = [[i ? e : e - aR, t], [e + r, t], [e + r, t + n], [i ? e : e - aR, t + n]]; return !o && a.splice(2, 0, [e + r + aR, t + n / 2]), !i && a.push([e, t + n / 2]), a; } -function S8e(e, t, r) { +function I8e(e, t, r) { Ft(e).eventData = { componentType: "series", componentSubType: "treemap", @@ -75148,7 +75189,7 @@ function S8e(e, t, r) { treePathInfo: r && l1(r, t) }; } -var b8e = ( +var A8e = ( /** @class */ function() { function e() { @@ -75182,10 +75223,10 @@ var b8e = ( }, e; }() ); -function w8e() { - return new b8e(); +function O8e() { + return new A8e(); } -var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8e = dp * 2, R8e = dp * 3, Nu = Id([ +var TM = Ot, P6 = mr, T6 = 3, _6 = "label", M6 = "upperLabel", L8e = fp * 10, F8e = fp * 2, N8e = fp * 3, Nu = Id([ ["fill", "color"], // `borderColor` and `borderWidth` has been occupied, // so use `stroke` to indicate the stroke of the rect. @@ -75197,16 +75238,16 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 ["shadowColor"] // Option decal is in `DecalObject` but style.decal is in `PatternObject`. // So do not transfer decal directly. -]), _6 = function(e) { +]), D6 = function(e) { var t = Nu(e); return t.stroke = t.fill = t.lineWidth = null, t; -}, rb = yr(), P8e = ( +}, ib = yr(), k8e = ( /** @class */ function(e) { Se(t, e); function t() { var r = e !== null && e.apply(this, arguments) || this; - return r.type = t.type, r._state = "ready", r._storage = ug(), r; + return r.type = t.type, r._state = "ready", r._storage = hg(), r; } return t.prototype.render = function(r, n, i, o) { var a = n.findComponents({ @@ -75214,9 +75255,9 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 subType: "treemap", query: o }); - if (!(Yt(a, r) < 0)) { + if (!(qt(a, r) < 0)) { this.seriesModel = r, this.api = i, this.ecModel = n; - var s = ["treemapZoomToNode", "treemapRootToNode"], l = am(o, s, r), c = o && o.type, u = r.layoutInfo, d = !this._oldTree, h = this._storage, f = c === "treemapRootToNode" && l && h ? { + var s = ["treemapZoomToNode", "treemapRootToNode"], l = lm(o, s, r), c = o && o.type, u = r.layoutInfo, d = !this._oldTree, h = this._storage, f = c === "treemapRootToNode" && l && h ? { rootNodeGroup: h.nodeGroup[l.node.getRawIndex()], direction: o.direction } : null, p = this._giveContainerGroup(u), g = r.get("animation"), v = this._doRender(p, r, f); @@ -75226,9 +75267,9 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 var n = this._containerGroup; return n || (n = this._containerGroup = new TM(), this._initEvents(n), this.group.add(n)), n.x = r.x, n.y = r.y, n; }, t.prototype._doRender = function(r, n, i) { - var o = n.getData().tree, a = this._oldTree, s = ug(), l = ug(), c = this._storage, u = []; + var o = n.getData().tree, a = this._oldTree, s = hg(), l = hg(), c = this._storage, u = []; function d(y, C, b, w) { - return T8e(n, l, c, i, s, u, y, C, b, w); + return $8e(n, l, c, i, s, u, y, C, b, w); } g(o.root ? [o.root] : [], a && a.root ? [a.root] : [], r, o === a || !a, 0); var h = v(c); @@ -75244,7 +75285,7 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 function g(y, C, b, w, x) { w ? (C = y, z(y, function(P, T) { !P.isRemoved() && R(T, T); - })) : new zl(C, y, E, E).add(R).update(R).remove(Vt(R, null)).execute(); + })) : new Gl(C, y, E, E).add(R).update(R).remove(Vt(R, null)).execute(); function E(P) { return P.getId(); } @@ -75254,11 +75295,11 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 } } function v(y) { - var C = ug(); + var C = hg(); return y && z(y, function(b, w) { var x = C[w]; z(b, function(E) { - E && (x.push(E), rb(E).willDelete = !0); + E && (x.push(E), ib(E).willDelete = !0); }); }), C; } @@ -75272,11 +75313,11 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 }); } }, t.prototype._doAnimation = function(r, n, i, o) { - var a = i.get("animationDurationUpdate"), s = i.get("animationEasing"), l = (vt(a) ? 0 : a) || 0, c = (vt(s) ? null : s) || "cubicOut", u = w8e(); + var a = i.get("animationDurationUpdate"), s = i.get("animationEasing"), l = (mt(a) ? 0 : a) || 0, c = (mt(s) ? null : s) || "cubicOut", u = O8e(); z(n.willDeleteEls, function(d, h) { z(d, function(f, p) { if (!f.invisible) { - var g = f.parent, v, m = rb(g); + var g = f.parent, v, m = ib(g); if (o && o.direction === "drillDown") v = g === o.rootNodeGroup ? { shape: { @@ -75332,8 +75373,8 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 var n = this._controller, i = this._controllerHost; i || (this._controllerHost = { target: this.group - }, i = this._controllerHost), n || (n = this._controller = new uy(r.getZr()), n.enable(this.seriesModel.get("roam")), i.zoomLimit = this.seriesModel.get("scaleLimit"), i.zoom = this.seriesModel.get("zoom"), n.on("pan", at(this._onPan, this)), n.on("zoom", at(this._onZoom, this))); - var o = new Kt(0, 0, r.getWidth(), r.getHeight()); + }, i = this._controllerHost), n || (n = this._controller = new fy(r.getZr()), n.enable(this.seriesModel.get("roam")), i.zoomLimit = this.seriesModel.get("scaleLimit"), i.zoom = this.seriesModel.get("zoom"), n.on("pan", at(this._onPan, this)), n.on("zoom", at(this._onZoom, this))); + var o = new Yt(0, 0, r.getWidth(), r.getHeight()); n.setPointerChecker(function(a, s, l) { return o.contain(s, l); }); @@ -75341,7 +75382,7 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 var r = this._controller; this._controllerHost = null, r && (r.dispose(), r = null); }, t.prototype._onPan = function(r) { - if (this._state !== "animating" && (Math.abs(r.dx) > R6 || Math.abs(r.dy) > R6)) { + if (this._state !== "animating" && (Math.abs(r.dx) > T6 || Math.abs(r.dy) > T6)) { var n = this.seriesModel.getData().tree.root; if (!n) return; @@ -75369,7 +75410,7 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 var s = a.getLayout(); if (!s) return; - var l = new Kt(s.x, s.y, s.width, s.height), c = null, u = this._controllerHost; + var l = new Yt(s.x, s.y, s.width, s.height), c = null, u = this._controllerHost; c = u.zoomLimit; var d = u.zoom = u.zoom || 1; if (d *= o, c) { @@ -75408,7 +75449,7 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 n._zoomToNode(a); else if (o === "link") { var l = s.hostTree.data.getItemModel(s.dataIndex), c = l.get("link", !0), u = l.get("target", !0) || "blank"; - c && NS(c, u); + c && $S(c, u); } } } @@ -75420,7 +75461,7 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 node: r.getViewRoot() } : this.findTarget(n.getWidth() / 2, n.getHeight() / 2), i || (i = { node: r.getData().tree.root - })), (this._breadcrumb || (this._breadcrumb = new y8e(this.group))).render(r, n, i.node, function(a) { + })), (this._breadcrumb || (this._breadcrumb = new M8e(this.group))).render(r, n, i.node, function(a) { o._state !== "animating" && (QA(r.getViewRoot(), a) ? o._rootToNode({ node: a }) : o._zoomToNode({ @@ -75428,7 +75469,7 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 })); }); }, t.prototype.remove = function() { - this._clearController(), this._containerGroup && this._containerGroup.removeAll(), this._storage = ug(), this._state = "ready", this._breadcrumb && this._breadcrumb.remove(); + this._clearController(), this._containerGroup && this._containerGroup.removeAll(), this._storage = hg(), this._state = "ready", this._breadcrumb && this._breadcrumb.remove(); }, t.prototype.dispose = function() { this._clearController(); }, t.prototype._zoomToNode = function(r) { @@ -75467,14 +75508,14 @@ var TM = Ot, E6 = mr, R6 = 3, P6 = "label", T6 = "upperLabel", x8e = dp * 10, E8 }, t.type = "treemap", t; }($r) ); -function ug() { +function hg() { return { nodeGroup: [], background: [], content: [] }; } -function T8e(e, t, r, n, i, o, a, s, l, c) { +function $8e(e, t, r, n, i, o, a, s, l, c) { if (!a) return; var u = a.getLayout(), d = e.getData(), h = a.getModel(); @@ -75483,19 +75524,19 @@ function T8e(e, t, r, n, i, o, a, s, l, c) { var f = u.width, p = u.height, g = u.borderWidth, v = u.invisible, m = a.getRawIndex(), y = s && s.getRawIndex(), C = a.viewChildren, b = u.upperHeight, w = C && C.length, x = h.getModel("itemStyle"), E = h.getModel(["emphasis", "itemStyle"]), R = h.getModel(["blur", "itemStyle"]), P = h.getModel(["select", "itemStyle"]), T = x.get("borderRadius") || 0, _ = W("nodeGroup", TM); if (!_) return; - if (l.add(_), _.x = u.x || 0, _.y = u.y || 0, _.markRedraw(), rb(_).nodeWidth = f, rb(_).nodeHeight = p, u.isAboveViewRoot) + if (l.add(_), _.x = u.x || 0, _.y = u.y || 0, _.markRedraw(), ib(_).nodeWidth = f, ib(_).nodeHeight = p, u.isAboveViewRoot) return _; - var D = W("background", E6, c, E8e); + var D = W("background", P6, c, F8e); D && $(_, D, w && u.upperLabelHeight); var A = h.getModel("emphasis"), M = A.get("focus"), O = A.get("blurScope"), L = A.get("disabled"), N = M === "ancestor" ? a.getAncestorsIndices() : M === "descendant" ? a.getDescendantIndices() : M; if (w) Wc(_) && td(_, !1), D && (td(D, !L), d.setItemGraphicEl(a.dataIndex, D), j_(D, N, O)); else { - var F = W("content", E6, c, R8e); + var F = W("content", P6, c, N8e); F && I(_, F), D.disableMorphing = !0, D && Wc(D) && td(D, !1), td(_, !L), d.setItemGraphicEl(a.dataIndex, _), j_(_, N, O); } return _; - function $(q, J, te) { + function $(q, J, re) { var Q = Ft(J); if (Q.dataIndex = a.dataIndex, Q.seriesIndex = e.seriesIndex, J.setShape({ x: 0, @@ -75507,14 +75548,14 @@ function T8e(e, t, r, n, i, o, a, s, l, c) { V(J); else { J.invisible = !1; - var Y = a.getVisual("style"), K = Y.stroke, ae = _6(x); + var Y = a.getVisual("style"), K = Y.stroke, ae = D6(x); ae.fill = K; var G = Nu(E); G.fill = E.get("borderColor"); - var re = Nu(R); - re.fill = R.get("borderColor"); + var ne = Nu(R); + ne.fill = R.get("borderColor"); var le = Nu(P); - if (le.fill = P.get("borderColor"), te) { + if (le.fill = P.get("borderColor"), re) { var ue = f - 2 * g; H( // PENDING: convert ZRColor to ColorString for text. @@ -75530,13 +75571,13 @@ function T8e(e, t, r, n, i, o, a, s, l, c) { ); } else J.removeTextContent(); - J.setStyle(ae), J.ensureState("emphasis").style = G, J.ensureState("blur").style = re, J.ensureState("select").style = le, Ad(J); + J.setStyle(ae), J.ensureState("emphasis").style = G, J.ensureState("blur").style = ne, J.ensureState("select").style = le, Ad(J); } q.add(J); } function I(q, J) { - var te = Ft(J); - te.dataIndex = a.dataIndex, te.seriesIndex = e.seriesIndex; + var re = Ft(J); + re.dataIndex = a.dataIndex, re.seriesIndex = e.seriesIndex; var Q = Math.max(f - 2 * g, 0), Y = Math.max(p - 2 * g, 0); if (J.culling = !0, J.setShape({ x: g, @@ -75548,81 +75589,81 @@ function T8e(e, t, r, n, i, o, a, s, l, c) { V(J); else { J.invisible = !1; - var K = a.getVisual("style"), ae = K.fill, G = _6(x); + var K = a.getVisual("style"), ae = K.fill, G = D6(x); G.fill = ae, G.decal = K.decal; - var re = Nu(E), le = Nu(R), ue = Nu(P); - H(J, ae, K.opacity, null), J.setStyle(G), J.ensureState("emphasis").style = re, J.ensureState("blur").style = le, J.ensureState("select").style = ue, Ad(J); + var ne = Nu(E), le = Nu(R), ue = Nu(P); + H(J, ae, K.opacity, null), J.setStyle(G), J.ensureState("emphasis").style = ne, J.ensureState("blur").style = le, J.ensureState("select").style = ue, Ad(J); } q.add(J); } function V(q) { !q.invisible && o.push(q); } - function H(q, J, te, Q) { - var Y = h.getModel(Q ? T6 : P6), K = qn(h.get("name"), null), ae = Y.getShallow("show"); - Ri(q, li(h, Q ? T6 : P6), { + function H(q, J, re, Q) { + var Y = h.getModel(Q ? M6 : _6), K = qn(h.get("name"), null), ae = Y.getShallow("show"); + Pi(q, ci(h, Q ? M6 : _6), { defaultText: ae ? K : null, inheritColor: J, - defaultOpacity: te, + defaultOpacity: re, labelFetcher: e, labelDataIndex: a.dataIndex }); var G = q.getTextContent(); if (G) { - var re = G.style, le = Ew(re.padding || 0); + var ne = G.style, le = Ew(ne.padding || 0); Q && (q.setTextConfig({ layoutRect: Q }), G.disableLabelLayout = !0), G.beforeUpdate = function() { var he = Math.max((Q ? Q.width : q.shape.width) - le[1] - le[3], 0), fe = Math.max((Q ? Q.height : q.shape.height) - le[0] - le[2], 0); - (re.width !== he || re.height !== fe) && G.setStyle({ + (ne.width !== he || ne.height !== fe) && G.setStyle({ width: he, height: fe }); - }, re.truncateMinChar = 2, re.lineOverflow = "truncate", B(re, Q, u); + }, ne.truncateMinChar = 2, ne.lineOverflow = "truncate", B(ne, Q, u); var ue = G.getState("emphasis"); B(ue ? ue.style : null, Q, u); } } - function B(q, J, te) { + function B(q, J, re) { var Q = q ? q.text : null; - if (!J && te.isLeafRoot && Q != null) { + if (!J && re.isLeafRoot && Q != null) { var Y = e.get("drillDownIcon", !0); q.text = Y ? Y + " " + Q : Q; } } - function W(q, J, te, Q) { + function W(q, J, re, Q) { var Y = y != null && r[q][y], K = i[q]; - return Y ? (r[q][y] = null, j(K, Y)) : v || (Y = new J(), Y instanceof Ta && (Y.z2 = _8e(te, Q)), X(K, Y)), t[q][m] = Y; + return Y ? (r[q][y] = null, j(K, Y)) : v || (Y = new J(), Y instanceof Ta && (Y.z2 = B8e(re, Q)), X(K, Y)), t[q][m] = Y; } function j(q, J) { - var te = q[m] = {}; - J instanceof TM ? (te.oldX = J.x, te.oldY = J.y) : te.oldShape = Pe({}, J.shape); + var re = q[m] = {}; + J instanceof TM ? (re.oldX = J.x, re.oldY = J.y) : re.oldShape = Pe({}, J.shape); } function X(q, J) { - var te = q[m] = {}, Q = a.parentNode, Y = J instanceof Ot; + var re = q[m] = {}, Q = a.parentNode, Y = J instanceof Ot; if (Q && (!n || n.direction === "drillDown")) { var K = 0, ae = 0, G = i.background[Q.getRawIndex()]; - !n && G && G.oldShape && (K = G.oldShape.width, ae = G.oldShape.height), Y ? (te.oldX = 0, te.oldY = ae) : te.oldShape = { + !n && G && G.oldShape && (K = G.oldShape.width, ae = G.oldShape.height), Y ? (re.oldX = 0, re.oldY = ae) : re.oldShape = { x: K, y: ae, width: 0, height: 0 }; } - te.fadein = !Y; + re.fadein = !Y; } } -function _8e(e, t) { - return e * x8e + t; +function B8e(e, t) { + return e * L8e + t; } -var sm = z, M8e = St, nb = -1, oi = ( +var cm = z, V8e = bt, ob = -1, oi = ( /** @class */ function() { function e(t) { var r = t.mappingMethod, n = t.type, i = this.option = _t(t); - this.type = n, this.mappingMethod = r, this._normalizeData = A8e[r]; + this.type = n, this.mappingMethod = r, this._normalizeData = G8e[r]; var o = e.visualHandlers[n]; - this.applyVisual = o.applyVisual, this.getColorMapper = o.getColorMapper, this._normalizedToVisual = o._normalizedToVisual[r], r === "piecewise" ? (sR(i), D8e(i)) : r === "category" ? i.categories ? I8e(i) : sR(i, !0) : (xt(r !== "linear" || i.dataExtent), sR(i)); + this.applyVisual = o.applyVisual, this.getColorMapper = o.getColorMapper, this._normalizedToVisual = o._normalizedToVisual[r], r === "piecewise" ? (sR(i), H8e(i)) : r === "category" ? i.categories ? z8e(i) : sR(i, !0) : (Et(r !== "linear" || i.dataExtent), sR(i)); } return e.prototype.mapValueToVisual = function(t) { var r = this._normalizeData(t); @@ -75634,24 +75675,24 @@ var sm = z, M8e = St, nb = -1, oi = ( }, e.isValidType = function(t) { return e.visualHandlers.hasOwnProperty(t); }, e.eachVisual = function(t, r, n) { - St(t) ? z(t, r, n) : r.call(n, t); + bt(t) ? z(t, r, n) : r.call(n, t); }, e.mapVisual = function(t, r, n) { - var i, o = Ie(t) ? [] : St(t) ? {} : (i = !0, null); + var i, o = Ae(t) ? [] : bt(t) ? {} : (i = !0, null); return e.eachVisual(t, function(a, s) { var l = r.call(n, a, s); i ? o = l : o[s] = l; }), o; }, e.retrieveVisuals = function(t) { var r = {}, n; - return t && sm(e.visualHandlers, function(i, o) { + return t && cm(e.visualHandlers, function(i, o) { t.hasOwnProperty(o) && (r[o] = t[o], n = !0); }), n ? r : null; }, e.prepareVisualTypes = function(t) { - if (Ie(t)) + if (Ae(t)) t = t.slice(); - else if (M8e(t)) { + else if (V8e(t)) { var r = []; - sm(t, function(n, i) { + cm(t, function(n, i) { r.push(i); }), t = r; } else @@ -75674,12 +75715,12 @@ var sm = z, M8e = St, nb = -1, oi = ( var c = r[a], u = c.interval, d = c.close; if (u) { if (u[0] === -1 / 0) { - if (A0(d[1], t, u[1])) + if (F0(d[1], t, u[1])) return a; } else if (u[1] === 1 / 0) { - if (A0(d[0], u[0], t)) + if (F0(d[0], u[0], t)) return a; - } else if (A0(d[0], u[0], t) && A0(d[1], t, u[1])) + } else if (F0(d[0], u[0], t) && F0(d[1], t, u[1])) return a; n && h(u[0], a), n && h(u[1], a); } @@ -75692,55 +75733,55 @@ var sm = z, M8e = St, nb = -1, oi = ( } }, e.visualHandlers = { color: { - applyVisual: dg("color"), + applyVisual: fg("color"), getColorMapper: function() { var t = this.option; return at(t.mappingMethod === "category" ? function(r, n) { - return !n && (r = this._normalizeData(r)), Og.call(this, r); + return !n && (r = this._normalizeData(r)), Fg.call(this, r); } : function(r, n, i) { var o = !!i; - return !n && (r = this._normalizeData(r)), i = ev(r, t.parsedVisual, i), o ? i : Ja(i, "rgba"); + return !n && (r = this._normalizeData(r)), i = rv(r, t.parsedVisual, i), o ? i : Ja(i, "rgba"); }, this); }, _normalizedToVisual: { linear: function(t) { - return Ja(ev(t, this.option.parsedVisual), "rgba"); + return Ja(rv(t, this.option.parsedVisual), "rgba"); }, - category: Og, + category: Fg, piecewise: function(t, r) { var n = MM.call(this, r); - return n == null && (n = Ja(ev(t, this.option.parsedVisual), "rgba")), n; + return n == null && (n = Ja(rv(t, this.option.parsedVisual), "rgba")), n; }, fixed: ku } }, - colorHue: I0(function(t, r) { + colorHue: L0(function(t, r) { return mf(t, r); }), - colorSaturation: I0(function(t, r) { + colorSaturation: L0(function(t, r) { return mf(t, null, r); }), - colorLightness: I0(function(t, r) { + colorLightness: L0(function(t, r) { return mf(t, null, null, r); }), - colorAlpha: I0(function(t, r) { - return Wv(t, r); + colorAlpha: L0(function(t, r) { + return Uv(t, r); }), decal: { - applyVisual: dg("decal"), + applyVisual: fg("decal"), _normalizedToVisual: { linear: null, - category: Og, + category: Fg, piecewise: null, fixed: null } }, opacity: { - applyVisual: dg("opacity"), + applyVisual: fg("opacity"), _normalizedToVisual: _M([0, 1]) }, liftZ: { - applyVisual: dg("liftZ"), + applyVisual: fg("liftZ"), _normalizedToVisual: { linear: ku, category: ku, @@ -75754,54 +75795,54 @@ var sm = z, M8e = St, nb = -1, oi = ( n("symbol", i); }, _normalizedToVisual: { - linear: M6, - category: Og, + linear: I6, + category: Fg, piecewise: function(t, r) { var n = MM.call(this, r); - return n == null && (n = M6.call(this, t)), n; + return n == null && (n = I6.call(this, t)), n; }, fixed: ku } }, symbolSize: { - applyVisual: dg("symbolSize"), + applyVisual: fg("symbolSize"), _normalizedToVisual: _M([0, 1]) } }, e; }() ); -function D8e(e) { +function H8e(e) { var t = e.pieceList; e.hasSpecialVisual = !1, z(t, function(r, n) { r.originIndex = n, r.visual != null && (e.hasSpecialVisual = !0); }); } -function I8e(e) { +function z8e(e) { var t = e.categories, r = e.categoryMap = {}, n = e.visual; - if (sm(t, function(a, s) { + if (cm(t, function(a, s) { r[a] = s; - }), !Ie(n)) { + }), !Ae(n)) { var i = []; - St(n) ? sm(n, function(a, s) { + bt(n) ? cm(n, function(a, s) { var l = r[s]; - i[l ?? nb] = a; - }) : i[nb] = n, n = cQ(e, i); + i[l ?? ob] = a; + }) : i[ob] = n, n = hQ(e, i); } for (var o = t.length - 1; o >= 0; o--) n[o] == null && (delete r[t[o]], t.pop()); } function sR(e, t) { var r = e.visual, n = []; - St(r) ? sm(r, function(o) { + bt(r) ? cm(r, function(o) { n.push(o); }) : r != null && n.push(r); var i = { color: 1, symbol: 1 }; - !t && n.length === 1 && !i.hasOwnProperty(e.type) && (n[1] = n[0]), cQ(e, n); + !t && n.length === 1 && !i.hasOwnProperty(e.type) && (n[1] = n[0]), hQ(e, n); } -function I0(e) { +function L0(e) { return { applyVisual: function(t, r, n) { var i = this.mapValueToVisual(t); @@ -75810,18 +75851,18 @@ function I0(e) { _normalizedToVisual: _M([0, 1]) }; } -function M6(e) { +function I6(e) { var t = this.option.visual; return t[Math.round(Lr(e, [0, 1], [0, t.length - 1], !0))] || {}; } -function dg(e) { +function fg(e) { return function(t, r, n) { n(e, this.mapValueToVisual(t)); }; } -function Og(e) { +function Fg(e) { var t = this.option.visual; - return t[this.option.loop && e !== nb ? e % t.length : e]; + return t[this.option.loop && e !== ob ? e % t.length : e]; } function ku() { return this.option.visual[0]; @@ -75831,7 +75872,7 @@ function _M(e) { linear: function(t) { return Lr(t, e, this.option.visual, !0); }, - category: Og, + category: Fg, piecewise: function(t, r) { var n = MM.call(this, r); return n == null && (n = Lr(t, e, this.option.visual, !0)), n; @@ -75847,13 +75888,13 @@ function MM(e) { return i.visual[this.type]; } } -function cQ(e, t) { +function hQ(e, t) { return e.visual = t, e.type === "color" && (e.parsedVisual = Fe(t, function(r) { var n = Zi(r); return !n && process.env.NODE_ENV !== "production" && Cn("'" + r + "' is an illegal color, fallback to '#000000'", !0), n || [0, 0, 0, 1]; })), t; } -var A8e = { +var G8e = { linear: function(e) { return Lr(e, this.option.dataExtent, [0, 1], !0); }, @@ -75864,19 +75905,19 @@ var A8e = { }, category: function(e) { var t = this.option.categories ? this.option.categoryMap[e] : e; - return t ?? nb; + return t ?? ob; }, fixed: Dn }; -function A0(e, t, r) { +function F0(e, t, r) { return e ? t <= r : t < r; } -var O8e = "itemStyle", uQ = yr(); -const L8e = { +var W8e = "itemStyle", fQ = yr(); +const j8e = { seriesType: "treemap", reset: function(e) { var t = e.getData().tree, r = t.root; - r.isRemoved() || dQ( + r.isRemoved() || pQ( r, // Visual should calculate from tree root but not view root. {}, @@ -75885,26 +75926,26 @@ const L8e = { ); } }; -function dQ(e, t, r, n) { +function pQ(e, t, r, n) { var i = e.getModel(), o = e.getLayout(), a = e.hostTree.data; if (!(!o || o.invisible || !o.isInView)) { - var s = i.getModel(O8e), l = F8e(s, t, n), c = a.ensureUniqueItemVisual(e.dataIndex, "style"), u = s.get("borderColor"), d = s.get("borderColorSaturation"), h; - d != null && (h = D6(l), u = N8e(d, h)), c.stroke = u; + var s = i.getModel(W8e), l = U8e(s, t, n), c = a.ensureUniqueItemVisual(e.dataIndex, "style"), u = s.get("borderColor"), d = s.get("borderColorSaturation"), h; + d != null && (h = A6(l), u = K8e(d, h)), c.stroke = u; var f = e.viewChildren; if (!f || !f.length) - h = D6(l), c.fill = h; + h = A6(l), c.fill = h; else { - var p = k8e(e, i, o, s, l, f); + var p = Y8e(e, i, o, s, l, f); z(f, function(g, v) { if (g.depth >= r.length || g === r[g.depth]) { - var m = $8e(i, l, g, v, p, n); - dQ(g, m, r, n); + var m = q8e(i, l, g, v, p, n); + pQ(g, m, r, n); } }); } } } -function F8e(e, t, r) { +function U8e(e, t, r) { var n = Pe({}, t), i = r.designatedVisualItemStyle; return z(["color", "colorAlpha", "colorSaturation"], function(o) { i[o] = t[o]; @@ -75912,14 +75953,14 @@ function F8e(e, t, r) { i[o] = null, a != null && (n[o] = a); }), n; } -function D6(e) { +function A6(e) { var t = lR(e, "color"); if (t) { var r = lR(e, "colorAlpha"), n = lR(e, "colorSaturation"); - return n && (t = mf(t, null, null, n)), r && (t = Wv(t, r)), t; + return n && (t = mf(t, null, null, n)), r && (t = Uv(t, r)), t; } } -function N8e(e, t) { +function K8e(e, t) { return t != null ? mf(t, null, null, e) : null; } function lR(e, t) { @@ -75927,7 +75968,7 @@ function lR(e, t) { if (r != null && r !== "none") return r; } -function k8e(e, t, r, n, i, o) { +function Y8e(e, t, r, n, i, o) { if (!(!o || !o.length)) { var a = cR(t, "color") || i.color != null && i.color !== "none" && (cR(t, "colorAlpha") || cR(t, "colorSaturation")); if (a) { @@ -75940,35 +75981,35 @@ function k8e(e, t, r, n, i, o) { }; d.type === "color" && (u === "index" || u === "id") ? (d.mappingMethod = "category", d.loop = !0) : d.mappingMethod = "linear"; var h = new oi(d); - return uQ(h).drColorMappingBy = u, h; + return fQ(h).drColorMappingBy = u, h; } } } function cR(e, t) { var r = e.get(t); - return Ie(r) && r.length ? { + return Ae(r) && r.length ? { name: t, range: r } : null; } -function $8e(e, t, r, n, i, o) { +function q8e(e, t, r, n, i, o) { var a = Pe({}, t); if (i) { - var s = i.type, l = s === "color" && uQ(i).drColorMappingBy, c = l === "index" ? n : l === "id" ? o.mapIdToIndex(r.getId()) : r.getValue(e.get("visualDimension")); + var s = i.type, l = s === "color" && fQ(i).drColorMappingBy, c = l === "index" ? n : l === "id" ? o.mapIdToIndex(r.getId()) : r.getValue(e.get("visualDimension")); a[s] = i.mapValueToVisual(c); } return a; } -var lm = Math.max, ib = Math.min, I6 = $n, JA = z, hQ = ["itemStyle", "borderWidth"], B8e = ["itemStyle", "gapWidth"], V8e = ["upperLabel", "show"], H8e = ["upperLabel", "height"]; -const z8e = { +var um = Math.max, ab = Math.min, O6 = $n, JA = z, gQ = ["itemStyle", "borderWidth"], X8e = ["itemStyle", "gapWidth"], Z8e = ["upperLabel", "show"], Q8e = ["upperLabel", "height"]; +const J8e = { seriesType: "treemap", reset: function(e, t, r, n) { var i = r.getWidth(), o = r.getHeight(), a = e.option, s = jn(e.getBoxLayoutParams(), { width: r.getWidth(), height: r.getHeight() - }), l = a.size || [], c = Ze(I6(s.width, l[0]), i), u = Ze(I6(s.height, l[1]), o), d = n && n.type, h = ["treemapZoomToNode", "treemapRootToNode"], f = am(n, h, e), p = d === "treemapRender" || d === "treemapMove" ? n.rootRect : null, g = e.getViewRoot(), v = aQ(g); + }), l = a.size || [], c = Ze(O6(s.width, l[0]), i), u = Ze(O6(s.height, l[1]), o), d = n && n.type, h = ["treemapZoomToNode", "treemapRootToNode"], f = lm(n, h, e), p = d === "treemapRender" || d === "treemapMove" ? n.rootRect : null, g = e.getViewRoot(), v = cQ(g); if (d !== "treemapMove") { - var m = d === "treemapZoomToNode" ? Y8e(e, f, g, c, u) : p ? [p.width, p.height] : [c, u], y = a.sort; + var m = d === "treemapZoomToNode" ? oBe(e, f, g, c, u) : p ? [p.width, p.height] : [c, u], y = a.sort; y && y !== "asc" && y !== "desc" && (y = "desc"); var C = { squareRatio: a.squareRatio, @@ -75983,7 +76024,7 @@ const z8e = { height: m[1], area: m[0] * m[1] }; - g.setLayout(b), fQ(g, C, !1, 0), b = g.getLayout(), JA(v, function(x, E) { + g.setLayout(b), vQ(g, C, !1, 0), b = g.getLayout(), JA(v, function(x, E) { var R = (v[E + 1] || g).getValue(); x.setLayout(Pe({ dataExtent: [R, R], @@ -75993,64 +76034,64 @@ const z8e = { }); } var w = e.getData().tree.root; - w.setLayout(q8e(s, p, f), !0), e.setLayoutInfo(s), pQ( + w.setLayout(aBe(s, p, f), !0), e.setLayoutInfo(s), mQ( w, // Transform to base element coordinate system. - new Kt(-s.x, -s.y, i, o), + new Yt(-s.x, -s.y, i, o), v, g, 0 ); } }; -function fQ(e, t, r, n) { +function vQ(e, t, r, n) { var i, o; if (!e.isRemoved()) { var a = e.getLayout(); i = a.width, o = a.height; - var s = e.getModel(), l = s.get(hQ), c = s.get(B8e) / 2, u = gQ(s), d = Math.max(l, u), h = l - c, f = d - c; + var s = e.getModel(), l = s.get(gQ), c = s.get(X8e) / 2, u = yQ(s), d = Math.max(l, u), h = l - c, f = d - c; e.setLayout({ borderWidth: l, upperHeight: d, upperLabelHeight: u - }, !0), i = lm(i - 2 * h, 0), o = lm(o - h - f, 0); - var p = i * o, g = G8e(e, s, p, t, r, n); + }, !0), i = um(i - 2 * h, 0), o = um(o - h - f, 0); + var p = i * o, g = eBe(e, s, p, t, r, n); if (g.length) { var v = { x: h, y: f, width: i, height: o - }, m = ib(i, o), y = 1 / 0, C = []; + }, m = ab(i, o), y = 1 / 0, C = []; C.area = 0; for (var b = 0, w = g.length; b < w; ) { var x = g[b]; C.push(x), C.area += x.getLayout().area; - var E = K8e(C, m, t.squareRatio); - E <= y ? (b++, y = E) : (C.area -= C.pop().getLayout().area, A6(C, m, v, c, !1), m = ib(v.width, v.height), C.length = C.area = 0, y = 1 / 0); + var E = iBe(C, m, t.squareRatio); + E <= y ? (b++, y = E) : (C.area -= C.pop().getLayout().area, L6(C, m, v, c, !1), m = ab(v.width, v.height), C.length = C.area = 0, y = 1 / 0); } - if (C.length && A6(C, m, v, c, !0), !r) { + if (C.length && L6(C, m, v, c, !0), !r) { var R = s.get("childrenVisibleMin"); R != null && p < R && (r = !0); } for (var b = 0, w = g.length; b < w; b++) - fQ(g[b], t, r, n + 1); + vQ(g[b], t, r, n + 1); } } } -function G8e(e, t, r, n, i, o) { +function eBe(e, t, r, n, i, o) { var a = e.children || [], s = n.sort; s !== "asc" && s !== "desc" && (s = null); var l = n.leafDepth != null && n.leafDepth <= o; if (i && !l) return e.viewChildren = []; - a = Fr(a, function(f) { + a = Nr(a, function(f) { return !f.isRemoved(); - }), j8e(a, s); - var c = U8e(t, a, s); + }), rBe(a, s); + var c = nBe(t, a, s); if (c.sum === 0) return e.viewChildren = []; - if (c.sum = W8e(t, r, c.sum, s, a), c.sum === 0) + if (c.sum = tBe(t, r, c.sum, s, a), c.sum === 0) return e.viewChildren = []; for (var u = 0, d = a.length; u < d; u++) { var h = a[u].getValue() / c.sum * r; @@ -76064,7 +76105,7 @@ function G8e(e, t, r, n, i, o) { dataExtent: c.dataExtent }, !0), a; } -function W8e(e, t, r, n, i) { +function tBe(e, t, r, n, i) { if (!n) return r; for (var o = e.get("visibleMin"), a = i.length, s = a, l = a - 1; l >= 0; l--) { @@ -76073,13 +76114,13 @@ function W8e(e, t, r, n, i) { } return n === "asc" ? i.splice(0, a - s) : i.splice(s, a - s), r; } -function j8e(e, t) { +function rBe(e, t) { return t && e.sort(function(r, n) { var i = t === "asc" ? r.getValue() - n.getValue() : n.getValue() - r.getValue(); return i === 0 ? t === "asc" ? r.dataIndex - n.dataIndex : n.dataIndex - r.dataIndex : i; }), e; } -function U8e(e, t, r) { +function nBe(e, t, r) { for (var n = 0, i = 0, o = t.length; i < o; i++) n += t[i].getValue(); var a = e.get("visualDimension"), s; @@ -76091,22 +76132,22 @@ function U8e(e, t, r) { dataExtent: s }; } -function K8e(e, t, r) { +function iBe(e, t, r) { for (var n = 0, i = 1 / 0, o = 0, a = void 0, s = e.length; o < s; o++) a = e[o].getLayout().area, a && (a < i && (i = a), a > n && (n = a)); var l = e.area * e.area, c = t * t * r; - return l ? lm(c * n / l, l / (c * i)) : 1 / 0; + return l ? um(c * n / l, l / (c * i)) : 1 / 0; } -function A6(e, t, r, n, i) { +function L6(e, t, r, n, i) { var o = t === r.width ? 0 : 1, a = 1 - o, s = ["x", "y"], l = ["width", "height"], c = r[s[o]], u = t ? e.area / t : 0; (i || u > r[l[a]]) && (u = r[l[a]]); for (var d = 0, h = e.length; d < h; d++) { - var f = e[d], p = {}, g = u ? f.getLayout().area / u : 0, v = p[l[a]] = lm(u - 2 * n, 0), m = r[s[o]] + r[l[o]] - c, y = d === h - 1 || m < g ? m : g, C = p[l[o]] = lm(y - 2 * n, 0); - p[s[a]] = r[s[a]] + ib(n, v / 2), p[s[o]] = c + ib(n, C / 2), c += y, f.setLayout(p, !0); + var f = e[d], p = {}, g = u ? f.getLayout().area / u : 0, v = p[l[a]] = um(u - 2 * n, 0), m = r[s[o]] + r[l[o]] - c, y = d === h - 1 || m < g ? m : g, C = p[l[o]] = um(y - 2 * n, 0); + p[s[a]] = r[s[a]] + ab(n, v / 2), p[s[o]] = c + ab(n, C / 2), c += y, f.setLayout(p, !0); } r[s[a]] += u, r[l[a]] -= u; } -function Y8e(e, t, r, n, i) { +function oBe(e, t, r, n, i) { var o = (t || {}).node, a = [n, i]; if (!o || o === r) return a; @@ -76117,14 +76158,14 @@ function Y8e(e, t, r, n, i) { if (p === 0) return a; c *= u / p; - var g = s.getModel(), v = g.get(hQ), m = Math.max(v, gQ(g)); + var g = s.getModel(), v = g.get(gQ), m = Math.max(v, yQ(g)); c += 4 * v * v + (3 * v + m) * Math.pow(c, 0.5), c > N_ && (c = N_), o = s; } c < l && (c = l); var y = Math.pow(c / l, 0.5); return [n * y, i * y]; } -function q8e(e, t, r) { +function aBe(e, t, r) { if (t) return { x: t.x, @@ -76148,7 +76189,7 @@ function q8e(e, t, r) { y: e.height / 2 - a[1] }; } -function pQ(e, t, r, n, i) { +function mQ(e, t, r, n, i) { var o = e.getLayout(), a = r[i], s = a && a === e; if (!(a && !s || i === r.length && e !== n)) { e.setLayout({ @@ -76159,19 +76200,19 @@ function pQ(e, t, r, n, i) { invisible: !s && !t.intersect(o), isAboveViewRoot: s }, !0); - var l = new Kt(t.x - o.x, t.y - o.y, t.width, t.height); + var l = new Yt(t.x - o.x, t.y - o.y, t.width, t.height); JA(e.viewChildren || [], function(c) { - pQ(c, l, r, n, i + 1); + mQ(c, l, r, n, i + 1); }); } } -function gQ(e) { - return e.get(V8e) ? e.get(H8e) : 0; +function yQ(e) { + return e.get(Z8e) ? e.get(Q8e) : 0; } -function X8e(e) { - e.registerSeriesModel(g8e), e.registerChartView(P8e), e.registerVisual(L8e), e.registerLayout(z8e), p8e(e); +function sBe(e) { + e.registerSeriesModel(P8e), e.registerChartView(k8e), e.registerVisual(j8e), e.registerLayout(J8e), R8e(e); } -function Z8e(e) { +function lBe(e) { var t = e.findComponents({ mainType: "legend" }); @@ -76189,7 +76230,7 @@ function Z8e(e) { }); }); } -function Q8e(e) { +function cBe(e) { var t = {}; e.eachSeriesByType("graph", function(r) { var n = r.getCategoriesData(), i = r.getData(), o = {}; @@ -76214,14 +76255,14 @@ function Q8e(e) { }); }); } -function O0(e) { +function N0(e) { return e instanceof Array || (e = [e, e]), e; } -function J8e(e) { +function uBe(e) { e.eachSeriesByType("graph", function(t) { - var r = t.getGraph(), n = t.getEdgeData(), i = O0(t.get("edgeSymbol")), o = O0(t.get("edgeSymbolSize")); + var r = t.getGraph(), n = t.getEdgeData(), i = N0(t.get("edgeSymbol")), o = N0(t.get("edgeSymbolSize")); n.setVisual("fromSymbol", i && i[0]), n.setVisual("toSymbol", i && i[1]), n.setVisual("fromSymbolSize", o && o[0]), n.setVisual("toSymbolSize", o && o[1]), n.setVisual("style", t.getModel("lineStyle").getLineStyle()), n.each(function(a) { - var s = n.getItemModel(a), l = r.getEdgeByIndex(a), c = O0(s.getShallow("symbol", !0)), u = O0(s.getShallow("symbolSize", !0)), d = s.getModel("lineStyle").getLineStyle(), h = n.ensureUniqueItemVisual(a, "style"); + var s = n.getItemModel(a), l = r.getEdgeByIndex(a), c = N0(s.getShallow("symbol", !0)), u = N0(s.getShallow("symbolSize", !0)), d = s.getModel("lineStyle").getLineStyle(), h = n.ensureUniqueItemVisual(a, "style"); switch (Pe(h, d), h.stroke) { case "source": { var f = l.node1.getVisual("style"); @@ -76240,11 +76281,11 @@ function J8e(e) { } var DM = "-->", c1 = function(e) { return e.get("autoCurveness") || null; -}, vQ = function(e, t) { +}, CQ = function(e, t) { var r = c1(e), n = 20, i = []; if (Cr(r)) n = r; - else if (Ie(r)) { + else if (Ae(r)) { e.__curvenessList = r; return; } @@ -76254,36 +76295,36 @@ var DM = "-->", c1 = function(e) { for (var a = 0; a < o; a++) i.push((a % 2 ? a + 1 : a) / 10 * (a % 2 ? -1 : 1)); e.__curvenessList = i; -}, cm = function(e, t, r) { +}, dm = function(e, t, r) { var n = [e.id, e.dataIndex].join("."), i = [t.id, t.dataIndex].join("."); return [r.uid, n, i].join(DM); -}, mQ = function(e) { +}, SQ = function(e) { var t = e.split(DM); return [t[0], t[2], t[1]].join(DM); -}, eBe = function(e, t) { - var r = cm(e.node1, e.node2, t); +}, dBe = function(e, t) { + var r = dm(e.node1, e.node2, t); return t.__edgeMap[r]; -}, tBe = function(e, t) { - var r = IM(cm(e.node1, e.node2, t), t), n = IM(cm(e.node2, e.node1, t), t); +}, hBe = function(e, t) { + var r = IM(dm(e.node1, e.node2, t), t), n = IM(dm(e.node2, e.node1, t), t); return r + n; }, IM = function(e, t) { var r = t.__edgeMap; return r[e] ? r[e].length : 0; }; -function rBe(e) { - c1(e) && (e.__curvenessList = [], e.__edgeMap = {}, vQ(e)); +function fBe(e) { + c1(e) && (e.__curvenessList = [], e.__edgeMap = {}, CQ(e)); } -function nBe(e, t, r, n) { +function pBe(e, t, r, n) { if (c1(r)) { - var i = cm(e, t, r), o = r.__edgeMap, a = o[mQ(i)]; + var i = dm(e, t, r), o = r.__edgeMap, a = o[SQ(i)]; o[i] && !a ? o[i].isForward = !0 : a && o[i] && (a.isForward = !0, o[i].isForward = !1), o[i] = o[i] || [], o[i].push(n); } } function eO(e, t, r, n) { - var i = c1(t), o = Ie(i); + var i = c1(t), o = Ae(i); if (!i) return null; - var a = eBe(e, t); + var a = dBe(e, t); if (!a) return null; for (var s = -1, l = 0; l < a.length; l++) @@ -76291,15 +76332,15 @@ function eO(e, t, r, n) { s = l; break; } - var c = tBe(e, t); - vQ(t, c), e.lineStyle = e.lineStyle || {}; - var u = cm(e.node1, e.node2, t), d = t.__curvenessList, h = o || c % 2 ? 0 : 1; + var c = hBe(e, t); + CQ(t, c), e.lineStyle = e.lineStyle || {}; + var u = dm(e.node1, e.node2, t), d = t.__curvenessList, h = o || c % 2 ? 0 : 1; if (a.isForward) return d[h + s]; - var f = mQ(u), p = IM(f, t), g = d[s + p + h]; + var f = SQ(u), p = IM(f, t), g = d[s + p + h]; return n ? o ? i && i[0] === 0 ? (p + h) % 2 ? g : -g : ((p % 2 ? 0 : 1) + h) % 2 ? g : -g : (p + h) % 2 ? g : -g : d[s + p + h]; } -function yQ(e) { +function bQ(e) { var t = e.coordinateSystem; if (!(t && t.type !== "view")) { var r = e.getGraph(); @@ -76315,7 +76356,7 @@ function tO(e, t) { +i && s.push([(o[0] + a[0]) / 2 - (o[1] - a[1]) * i, (o[1] + a[1]) / 2 - (a[0] - o[0]) * i]), r.setLayout(s); }); } -function iBe(e, t) { +function gBe(e, t) { e.eachSeriesByType("graph", function(r) { var n = r.get("layout"), i = r.coordinateSystem; if (i && i.type !== "view") { @@ -76331,21 +76372,21 @@ function iBe(e, t) { c ? o.setItemLayout(s, i.dataToPoint(l)) : o.setItemLayout(s, [NaN, NaN]); } tO(o.graph, r); - } else (!n || n === "none") && yQ(r); + } else (!n || n === "none") && bQ(r); }); } -function Lg(e) { +function Ng(e) { var t = e.coordinateSystem; if (t.type !== "view") return 1; var r = e.option.nodeScaleRatio, n = t.scaleX, i = t.getZoom(), o = (i - 1) * r + 1; return o / n; } -function Fg(e) { +function kg(e) { var t = e.getVisual("symbolSize"); return t instanceof Array && (t = (t[0] + t[1]) / 2), +t; } -var O6 = Math.PI, uR = []; +var F6 = Math.PI, uR = []; function rO(e, t, r, n) { var i = e.coordinateSystem; if (!(i && i.type !== "view")) { @@ -76356,18 +76397,18 @@ function rO(e, t, r, n) { }), !!d) { if (r) { var h = i.pointToData(n), f = h[0], p = h[1], g = [f - l, p - c]; - jd(g, g), Zg(g, g, u), r.setLayout([l + g[0], c + g[1]], !0); + jd(g, g), Jg(g, g, u), r.setLayout([l + g[0], c + g[1]], !0); var v = e.get(["circular", "rotateLabel"]); - CQ(r, v, l, c); + wQ(r, v, l, c); } - oBe[t](e, s, a, u, l, c, d), s.eachEdge(function(m, y) { + vBe[t](e, s, a, u, l, c, d), s.eachEdge(function(m, y) { var C = Go(m.getModel().get(["lineStyle", "curveness"]), eO(m, e, y), 0), b = $s(m.node1.getLayout()), w = $s(m.node2.getLayout()), x, E = (b[0] + w[0]) / 2, R = (b[1] + w[1]) / 2; +C && (C *= 3, x = [l * C + E * (1 - C), c * C + R * (1 - C)]), m.setLayout([b, w, x]); }); } } } -var oBe = { +var vBe = { value: function(e, t, r, n, i, o, a) { var s = 0, l = r.getSum("value"), c = Math.PI * 2 / (l || a); t.eachNode(function(u) { @@ -76378,21 +76419,21 @@ var oBe = { symbolSize: function(e, t, r, n, i, o, a) { var s = 0; uR.length = a; - var l = Lg(e); + var l = Ng(e); t.eachNode(function(d) { - var h = Fg(d); + var h = kg(d); isNaN(h) && (h = 2), h < 0 && (h = 0), h *= l; var f = Math.asin(h / 2 / n); - isNaN(f) && (f = O6 / 2), uR[d.dataIndex] = f, s += f * 2; + isNaN(f) && (f = F6 / 2), uR[d.dataIndex] = f, s += f * 2; }); - var c = (2 * O6 - s) / a / 2, u = 0; + var c = (2 * F6 - s) / a / 2, u = 0; t.eachNode(function(d) { var h = c + uR[d.dataIndex]; u += h, (!d.getLayout() || !d.getLayout().fixed) && d.setLayout([n * Math.cos(u) + i, n * Math.sin(u) + o]), u += h; }); } }; -function CQ(e, t, r, n) { +function wQ(e, t, r, n) { var i = e.getGraphicEl(); if (i) { var o = e.getModel(), a = o.get(["label", "rotate"]) || 0, s = i.getSymbolPath(); @@ -76417,13 +76458,13 @@ function CQ(e, t, r, n) { }); } } -function aBe(e) { +function mBe(e) { e.eachSeriesByType("graph", function(t) { t.get("layout") === "circular" && rO(t, "symbolSize"); }); } -var Ih = yS; -function sBe(e, t, r) { +var Ih = SS; +function yBe(e, t, r) { for (var n = e, i = t, o = r.rect, a = o.width, s = o.height, l = [o.x + a / 2, o.y + s / 2], c = r.gravity == null ? 0.1 : r.gravity, u = 0; u < n.length; u++) { var d = n[u]; d.p || (d.p = Jc(a * (Math.random() - 0.5) + l[0], s * (Math.random() - 0.5) + l[1])), d.pp = $s(d.p), d.edges = null; @@ -76464,7 +76505,7 @@ function sBe(e, t, r) { if (!b.ignoreForceLayout) { var w = b.n1, x = b.n2; Cc(m, x.p, w.p); - var E = Hv(m) - b.d, R = x.w / (w.w + x.w); + var E = Gv(m) - b.d, R = x.w / (w.w + x.w); isNaN(R) && (R = 0), jd(m, m), !w.fixed && Ih(w.p, w.p, m, R * E * f), !x.fixed && Ih(x.p, x.p, m, -(1 - R) * E * f); } } @@ -76476,8 +76517,8 @@ function sBe(e, t, r) { for (var w = n[C], T = C + 1; T < y; T++) { var x = n[T]; Cc(m, x.p, w.p); - var E = Hv(m); - E === 0 && (vK(m, Math.random() - 0.5, Math.random() - 0.5), E = 1); + var E = Gv(m); + E === 0 && (CK(m, Math.random() - 0.5, Math.random() - 0.5), E = 1); var _ = (w.rep + x.rep) / E / E; !w.fixed && Ih(w.pp, w.pp, m, _), !x.fixed && Ih(x.pp, x.pp, m, -_); } @@ -76491,7 +76532,7 @@ function sBe(e, t, r) { } }; } -function lBe(e) { +function CBe(e) { e.eachSeriesByType("graph", function(t) { var r = t.coordinateSystem; if (!(r && r.type !== "view")) @@ -76500,8 +76541,8 @@ function lBe(e) { t.preservedPoints ? o.each(function(C) { var b = o.getId(C); o.setItemLayout(C, n[b] || [NaN, NaN]); - }) : !l || l === "none" ? yQ(t) : l === "circular" && rO(t, "value"); - var c = o.getDataExtent("value"), u = a.getDataExtent("value"), d = s.get("repulsion"), h = s.get("edgeLength"), f = Ie(d) ? d : [d, d], p = Ie(h) ? h : [h, h]; + }) : !l || l === "none" ? bQ(t) : l === "circular" && rO(t, "value"); + var c = o.getDataExtent("value"), u = a.getDataExtent("value"), d = s.get("repulsion"), h = s.get("edgeLength"), f = Ae(d) ? d : [d, d], p = Ae(h) ? h : [h, h]; p = [p[1], p[0]]; var g = o.mapArray("value", function(C, b) { var w = o.getItemLayout(b), x = Lr(C, c, f); @@ -76522,7 +76563,7 @@ function lBe(e) { curveness: R, ignoreForceLayout: E.get("ignoreForceLayout") }; - }), m = r.getBoundingRect(), y = sBe(g, v, { + }), m = r.getBoundingRect(), y = yBe(g, v, { rect: m, gravity: s.get("gravity"), friction: s.get("friction") @@ -76542,7 +76583,7 @@ function lBe(e) { t.forceLayout = null; }); } -function cBe(e, t, r) { +function SBe(e, t, r) { var n = Pe(e.getBoxLayoutParams(), { aspect: r }); @@ -76551,7 +76592,7 @@ function cBe(e, t, r) { height: t.getHeight() }); } -function uBe(e, t) { +function bBe(e, t) { var r = []; return e.eachSeriesByType("graph", function(n) { var i = n.get("coordinateSystem"); @@ -76561,14 +76602,14 @@ function uBe(e, t) { return [+m.get("x"), +m.get("y")]; }), s = [], l = []; Fw(a, s, l), l[0] - s[0] === 0 && (l[0] += 1, s[0] -= 1), l[1] - s[1] === 0 && (l[1] += 1, s[1] -= 1); - var c = (l[0] - s[0]) / (l[1] - s[1]), u = cBe(n, t, c); + var c = (l[0] - s[0]) / (l[1] - s[1]), u = SBe(n, t, c); isNaN(c) && (s = [u.x, u.y], l = [u.x + u.width, u.y + u.height]); - var d = l[0] - s[0], h = l[1] - s[1], f = u.width, p = u.height, g = n.coordinateSystem = new dy(); + var d = l[0] - s[0], h = l[1] - s[1], f = u.width, p = u.height, g = n.coordinateSystem = new py(); g.zoomLimit = n.get("scaleLimit"), g.setBoundingRect(s[0], s[1], d, h), g.setViewRect(u.x, u.y, f, p), g.setCenter(n.get("center"), t), g.setZoom(n.get("zoom")), r.push(g); } }), r; } -var L6 = ri.prototype, dR = Qm.prototype, SQ = ( +var N6 = ri.prototype, dR = ty.prototype, xQ = ( /** @class */ /* @__PURE__ */ function() { function e() { @@ -76583,11 +76624,11 @@ var L6 = ri.prototype, dR = Qm.prototype, SQ = ( return e !== null && e.apply(this, arguments) || this; } return t; -})(SQ); +})(xQ); function hR(e) { return isNaN(+e.cpx1) || isNaN(+e.cpy1); } -var dBe = ( +var wBe = ( /** @class */ function(e) { Se(t, e); @@ -76601,36 +76642,36 @@ var dBe = ( fill: null }; }, t.prototype.getDefaultShape = function() { - return new SQ(); + return new xQ(); }, t.prototype.buildPath = function(r, n) { - hR(n) ? L6.buildPath.call(this, r, n) : dR.buildPath.call(this, r, n); + hR(n) ? N6.buildPath.call(this, r, n) : dR.buildPath.call(this, r, n); }, t.prototype.pointAt = function(r) { - return hR(this.shape) ? L6.pointAt.call(this, r) : dR.pointAt.call(this, r); + return hR(this.shape) ? N6.pointAt.call(this, r) : dR.pointAt.call(this, r); }, t.prototype.tangentAt = function(r) { var n = this.shape, i = hR(n) ? [n.x2 - n.x1, n.y2 - n.y1] : dR.tangentAt.call(this, r); return jd(i, i); }, t; }(nr) ), fR = ["fromSymbol", "toSymbol"]; -function F6(e) { +function k6(e) { return "_" + e + "Type"; } -function N6(e, t, r) { +function $6(e, t, r) { var n = t.getItemVisual(r, e); if (!n || n === "none") return n; - var i = t.getItemVisual(r, e + "Size"), o = t.getItemVisual(r, e + "Rotate"), a = t.getItemVisual(r, e + "Offset"), s = t.getItemVisual(r, e + "KeepAspect"), l = wp(i), c = Zd(a || 0, l); + var i = t.getItemVisual(r, e + "Size"), o = t.getItemVisual(r, e + "Rotate"), a = t.getItemVisual(r, e + "Offset"), s = t.getItemVisual(r, e + "KeepAspect"), l = Ep(i), c = Zd(a || 0, l); return n + l + c + (o || "") + (s || ""); } -function k6(e, t, r) { +function B6(e, t, r) { var n = t.getItemVisual(r, e); if (!(!n || n === "none")) { - var i = t.getItemVisual(r, e + "Size"), o = t.getItemVisual(r, e + "Rotate"), a = t.getItemVisual(r, e + "Offset"), s = t.getItemVisual(r, e + "KeepAspect"), l = wp(i), c = Zd(a || 0, l), u = Bn(n, -l[0] / 2 + c[0], -l[1] / 2 + c[1], l[0], l[1], null, s); + var i = t.getItemVisual(r, e + "Size"), o = t.getItemVisual(r, e + "Rotate"), a = t.getItemVisual(r, e + "Offset"), s = t.getItemVisual(r, e + "KeepAspect"), l = Ep(i), c = Zd(a || 0, l), u = Bn(n, -l[0] / 2 + c[0], -l[1] / 2 + c[1], l[0], l[1], null, s); return u.__specifiedRotation = o == null || isNaN(o) ? void 0 : +o * Math.PI / 180 || 0, u.name = e, u; } } -function hBe(e) { - var t = new dBe({ +function xBe(e) { + var t = new wBe({ name: "line", subPixelOptimize: !0 }); @@ -76650,24 +76691,24 @@ var nO = ( return o._createLine(r, n, i), o; } return t.prototype._createLine = function(r, n, i) { - var o = r.hostModel, a = r.getItemLayout(n), s = hBe(a); + var o = r.hostModel, a = r.getItemLayout(n), s = xBe(a); s.shape.percent = 0, un(s, { shape: { percent: 1 } }, o, n), this.add(s), z(fR, function(l) { - var c = k6(l, r, n); - this.add(c), this[F6(l)] = N6(l, r, n); + var c = B6(l, r, n); + this.add(c), this[k6(l)] = $6(l, r, n); }, this), this._updateCommonStl(r, n, i); }, t.prototype.updateData = function(r, n, i) { var o = r.hostModel, a = this.childOfName("line"), s = r.getItemLayout(n), l = { shape: {} }; AM(l.shape, s), br(a, l, o, n), z(fR, function(c) { - var u = N6(c, r, n), d = F6(c); + var u = $6(c, r, n), d = k6(c); if (this[d] !== u) { this.remove(this.childOfName(c)); - var h = k6(c, r, n); + var h = B6(c, r, n); this.add(h); } this[d] = u; @@ -76678,7 +76719,7 @@ var nO = ( var o = r.hostModel, a = this.childOfName("line"), s = i && i.emphasisLineStyle, l = i && i.blurLineStyle, c = i && i.selectLineStyle, u = i && i.labelStatesModels, d = i && i.emphasisDisabled, h = i && i.focus, f = i && i.blurScope; if (!i || r.hasItemOption) { var p = r.getItemModel(n), g = p.getModel("emphasis"); - s = g.getModel("lineStyle").getLineStyle(), l = p.getModel(["blur", "lineStyle"]).getLineStyle(), c = p.getModel(["select", "lineStyle"]).getLineStyle(), d = g.get("disabled"), h = g.get("focus"), f = g.get("blurScope"), u = li(p); + s = g.getModel("lineStyle").getLineStyle(), l = p.getModel(["blur", "lineStyle"]).getLineStyle(), c = p.getModel(["select", "lineStyle"]).getLineStyle(), d = g.get("disabled"), h = g.get("focus"), f = g.get("blurScope"), u = ci(p); } var v = r.getItemVisual(n, "style"), m = v.stroke; a.useStyle(v), a.style.fill = null, a.style.strokeNoScale = !0, a.ensureState("emphasis").style = s, a.ensureState("blur").style = l, a.ensureState("select").style = c, z(fR, function(x) { @@ -76696,7 +76737,7 @@ var nO = ( } }, this); var y = o.getRawValue(n); - Ri(this, u, { + Pi(this, u, { labelDataIndex: n, labelFetcher: { getFormattedLabel: function(x, E) { @@ -76712,7 +76753,7 @@ var nO = ( var b = u.normal; C.__align = C.style.align, C.__verticalAlign = C.style.verticalAlign, C.__position = b.get("position") || "middle"; var w = b.get("distance"); - Ie(w) || (w = [w, w]), C.__labelDistance = w; + Ae(w) || (w = [w, w]), C.__labelDistance = w; } this.setTextConfig({ position: null, @@ -76721,9 +76762,9 @@ var nO = ( // Can't be inside for stroke element. }), Rn(this, h, f, d); }, t.prototype.highlight = function() { - Vl(this); - }, t.prototype.downplay = function() { Hl(this); + }, t.prototype.downplay = function() { + zl(this); }, t.prototype.updateLayout = function(r, n) { this.setLinePoints(r.getItemLayout(n)); }, t.prototype.setLinePoints = function(r) { @@ -76816,7 +76857,7 @@ var nO = ( this._progressiveEls = null; var n = this, i = n.group, o = n._lineData; n._lineData = t, o || i.removeAll(); - var a = $6(t); + var a = V6(t); t.diff(o).add(function(s) { r._doAdd(t, s, a); }).update(function(s, l) { @@ -76830,11 +76871,11 @@ var nO = ( r.updateLayout(t, n); }, this); }, e.prototype.incrementalPrepareUpdate = function(t) { - this._seriesScope = $6(t), this._lineData = null, this.group.removeAll(); + this._seriesScope = V6(t), this._lineData = null, this.group.removeAll(); }, e.prototype.incrementalUpdate = function(t, r) { this._progressiveEls = []; function n(s) { - !s.isGroup && !fBe(s) && (s.incremental = !0, s.ensureState("emphasis").hoverLayer = !0); + !s.isGroup && !EBe(s) && (s.incremental = !0, s.ensureState("emphasis").hoverLayer = !0); } for (var i = t.start; i < t.end; i++) { var o = r.getItemLayout(i); @@ -76863,10 +76904,10 @@ var nO = ( }, e; }() ); -function fBe(e) { +function EBe(e) { return e.animators && e.animators.length > 0; } -function $6(e) { +function V6(e) { var t = e.hostModel, r = t.getModel("emphasis"); return { lineStyle: t.getModel("lineStyle").getLineStyle(), @@ -76876,27 +76917,27 @@ function $6(e) { emphasisDisabled: r.get("disabled"), blurScope: r.get("blurScope"), focus: r.get("focus"), - labelStatesModels: li(t) + labelStatesModels: ci(t) }; } -function B6(e) { +function H6(e) { return isNaN(e[0]) || isNaN(e[1]); } function pR(e) { - return e && !B6(e[0]) && !B6(e[1]); + return e && !H6(e[0]) && !H6(e[1]); } -var gR = [], vR = [], mR = [], Ah = fi, yR = Tc, V6 = Math.abs; -function H6(e, t, r) { +var gR = [], vR = [], mR = [], Ah = pi, yR = Tc, z6 = Math.abs; +function G6(e, t, r) { for (var n = e[0], i = e[1], o = e[2], a = 1 / 0, s, l = r * r, c = 0.1, u = 0.1; u <= 0.9; u += 0.1) { gR[0] = Ah(n[0], i[0], o[0], u), gR[1] = Ah(n[1], i[1], o[1], u); - var d = V6(yR(gR, t) - l); + var d = z6(yR(gR, t) - l); d < a && (a = d, s = u); } for (var h = 0; h < 32; h++) { var f = s + c; vR[0] = Ah(n[0], i[0], o[0], s), vR[1] = Ah(n[1], i[1], o[1], s), mR[0] = Ah(n[0], i[0], o[0], f), mR[1] = Ah(n[1], i[1], o[1], f); var d = yR(vR, t) - l; - if (V6(d) < 0.01) + if (z6(d) < 0.01) break; var p = yR(mR, t) - l; c /= 2, d < 0 ? p >= 0 ? s = s + c : s = s - c : p >= 0 ? s = s - c : s = s + c; @@ -76904,38 +76945,38 @@ function H6(e, t, r) { return s; } function CR(e, t) { - var r = [], n = zv, i = [[], [], []], o = [[], []], a = []; + var r = [], n = Wv, i = [[], [], []], o = [[], []], a = []; t /= 2, e.eachEdge(function(s, l) { var c = s.getLayout(), u = s.getVisual("fromSymbol"), d = s.getVisual("toSymbol"); c.__original || (c.__original = [$s(c[0]), $s(c[1])], c[2] && c.__original.push($s(c[2]))); var h = c.__original; if (c[2] != null) { if (Mi(i[0], h[0]), Mi(i[1], h[2]), Mi(i[2], h[1]), u && u !== "none") { - var f = Fg(s.node1), p = H6(i, h[0], f * t); + var f = kg(s.node1), p = G6(i, h[0], f * t); n(i[0][0], i[1][0], i[2][0], p, r), i[0][0] = r[3], i[1][0] = r[4], n(i[0][1], i[1][1], i[2][1], p, r), i[0][1] = r[3], i[1][1] = r[4]; } if (d && d !== "none") { - var f = Fg(s.node2), p = H6(i, h[1], f * t); + var f = kg(s.node2), p = G6(i, h[1], f * t); n(i[0][0], i[1][0], i[2][0], p, r), i[1][0] = r[1], i[2][0] = r[2], n(i[0][1], i[1][1], i[2][1], p, r), i[1][1] = r[1], i[2][1] = r[2]; } Mi(c[0], i[0]), Mi(c[1], i[2]), Mi(c[2], i[1]); } else { if (Mi(o[0], h[0]), Mi(o[1], h[1]), Cc(a, o[1], o[0]), jd(a, a), u && u !== "none") { - var f = Fg(s.node1); - yS(o[0], o[0], a, f * t); + var f = kg(s.node1); + SS(o[0], o[0], a, f * t); } if (d && d !== "none") { - var f = Fg(s.node2); - yS(o[1], o[1], a, -f * t); + var f = kg(s.node2); + SS(o[1], o[1], a, -f * t); } Mi(c[0], o[0]), Mi(c[1], o[1]); } }); } -function z6(e) { +function W6(e) { return e.type === "view"; } -var pBe = ( +var RBe = ( /** @class */ function(e) { Se(t, e); @@ -76944,15 +76985,15 @@ var pBe = ( return r.type = t.type, r; } return t.prototype.init = function(r, n) { - var i = new oy(), o = new iO(), a = this.group; - this._controller = new uy(n.getZr()), this._controllerHost = { + var i = new ly(), o = new iO(), a = this.group; + this._controller = new fy(n.getZr()), this._controllerHost = { target: a }, a.add(i.group), a.add(o.group), this._symbolDraw = i, this._lineDraw = o, this._firstRender = !0; }, t.prototype.render = function(r, n, i) { var o = this, a = r.coordinateSystem; this._model = r; var s = this._symbolDraw, l = this._lineDraw, c = this.group; - if (z6(a)) { + if (W6(a)) { var u = { x: a.x, y: a.y, @@ -76961,7 +77002,7 @@ var pBe = ( }; this._firstRender ? c.attr(u) : br(c, u, r); } - CR(r.getGraph(), Lg(r)); + CR(r.getGraph(), Ng(r)); var d = r.getData(); s.updateData(d); var h = r.getEdgeData(); @@ -77004,7 +77045,7 @@ var pBe = ( }); var v = r.get("layout") === "circular" && r.get(["circular", "rotateLabel"]), m = d.getLayout("cx"), y = d.getLayout("cy"); d.graph.eachNode(function(C) { - CQ(C, v, m, y); + wQ(C, v, m, y); }), this._firstRender = !1; }, t.prototype.dispose = function() { this.remove(), this._controller && this._controller.dispose(), this._controllerHost = null; @@ -77020,7 +77061,7 @@ var pBe = ( if (a.setPointerChecker(function(c, u, d) { var h = l.getBoundingRect(); return h.applyTransform(l.transform), h.contain(u, d) && !a1(c, i, r); - }), !z6(r.coordinateSystem)) { + }), !W6(r.coordinateSystem)) { a.disable(); return; } @@ -77038,15 +77079,15 @@ var pBe = ( zoom: c.scale, originX: c.originX, originY: c.originY - }), o._updateNodeAndLinkScale(), CR(r.getGraph(), Lg(r)), o._lineDraw.updateLayout(), i.updateLabelLayout(); + }), o._updateNodeAndLinkScale(), CR(r.getGraph(), Ng(r)), o._lineDraw.updateLayout(), i.updateLabelLayout(); }); }, t.prototype._updateNodeAndLinkScale = function() { - var r = this._model, n = r.getData(), i = Lg(r); + var r = this._model, n = r.getData(), i = Ng(r); n.eachItemGraphicEl(function(o, a) { o && o.setSymbolScale(i); }); }, t.prototype.updateLayout = function(r) { - CR(r.getGraph(), Lg(r)), this._symbolDraw.updateLayout(), this._lineDraw.updateLayout(); + CR(r.getGraph(), Ng(r)), this._symbolDraw.updateLayout(), this._lineDraw.updateLayout(); }, t.prototype.remove = function() { clearTimeout(this._layoutTimeout), this._layouting = !1, this._layoutTimeout = null, this._symbolDraw && this._symbolDraw.remove(), this._lineDraw && this._lineDraw.remove(); }, t.type = "graph", t; @@ -77055,7 +77096,7 @@ var pBe = ( function Oh(e) { return "_EC_" + e; } -var gBe = ( +var PBe = ( /** @class */ function() { function e(t) { @@ -77080,7 +77121,7 @@ var gBe = ( }, e.prototype.addEdge = function(t, r, n) { var i = this._nodesMap, o = this._edgesMap; if (Cr(t) && (t = this.nodes[t]), Cr(r) && (r = this.nodes[r]), t instanceof $u || (t = i[Oh(t)]), r instanceof $u || (r = i[Oh(r)]), !(!t || !r)) { - var a = t.id + "-" + r.id, s = new bQ(t, r, n); + var a = t.id + "-" + r.id, s = new EQ(t, r, n); return s.hostGraph = this, this._directed && (t.outEdges.push(s), r.inEdges.push(s)), t.edges.push(s), t !== r && r.edges.push(s), this.edges.push(s), o[a] = s, s; } }, e.prototype.getEdgeByIndex = function(t) { @@ -77185,7 +77226,7 @@ var gBe = ( }; }, e; }() -), bQ = ( +), EQ = ( /** @class */ function() { function e(t, r, n) { @@ -77223,7 +77264,7 @@ var gBe = ( }, e; }() ); -function wQ(e, t) { +function RQ(e, t) { return { /** * @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'. @@ -77253,10 +77294,10 @@ function wQ(e, t) { } }; } -In($u, wQ("hostGraph", "data")); -In(bQ, wQ("hostGraph", "edgeData")); -function xQ(e, t, r, n, i) { - for (var o = new gBe(n), a = 0; a < e.length; a++) +In($u, RQ("hostGraph", "data")); +In(EQ, RQ("hostGraph", "edgeData")); +function PQ(e, t, r, n, i) { + for (var o = new PBe(n), a = 0; a < e.length; a++) o.addNode($n( // Id, name, dataIndex e[a].id, @@ -77269,18 +77310,18 @@ function xQ(e, t, r, n, i) { } var f = r.get("coordinateSystem"), p; if (f === "cartesian2d" || f === "polar") - p = rl(e, r); + p = nl(e, r); else { var g = Xd.get(f), v = g ? g.dimensions || [] : []; - Yt(v, "value") < 0 && v.concat(["value"]); - var m = xp(e, { + qt(v, "value") < 0 && v.concat(["value"]); + var m = Rp(e, { coordDimensions: v, encodeDefine: r.getEncode() }).dimensions; p = new Fi(m, r), p.initData(e); } var y = new Fi(["value"], r); - return y.initData(l, s), i && i(p, y), iQ({ + return y.initData(l, s), i && i(p, y), sQ({ mainData: p, struct: o, structAttr: "graph", @@ -77294,7 +77335,7 @@ function xQ(e, t, r, n, i) { } }), o.update(), o; } -var vBe = ( +var TBe = ( /** @class */ function(e) { Se(t, e); @@ -77308,7 +77349,7 @@ var vBe = ( function i() { return n._categoriesData; } - this.legendVisualProvider = new cy(i, i), this.fillDataTextStyle(r.edges || r.links), this._updateCategoriesData(); + this.legendVisualProvider = new hy(i, i), this.fillDataTextStyle(r.edges || r.links), this._updateCategoriesData(); }, t.prototype.mergeOption = function(r) { e.prototype.mergeOption.apply(this, arguments), this.fillDataTextStyle(r.edges || r.links), this._updateCategoriesData(); }, t.prototype.mergeDefaultAndTheme = function(r) { @@ -77316,10 +77357,10 @@ var vBe = ( }, t.prototype.getInitialData = function(r, n) { var i = r.edges || r.links || [], o = r.data || r.nodes || [], a = this; if (o && i) { - rBe(this); - var s = xQ(o, i, this, !0, l); + fBe(this); + var s = PQ(o, i, this, !0, l); return z(s.edges, function(c) { - nBe(c.node1, c.node2, this, c.dataIndex); + pBe(c.node1, c.node2, this, c.dataIndex); }, this), s.data; } function l(c, u) { @@ -77352,13 +77393,13 @@ var vBe = ( }, t.prototype.formatTooltip = function(r, n, i) { if (i === "edge") { var o = this.getData(), a = this.getDataParams(r, i), s = o.graph.getEdgeByIndex(r), l = o.getName(s.node1.dataIndex), c = o.getName(s.node2.dataIndex), u = []; - return l != null && u.push(l), c != null && u.push(c), ci("nameValue", { + return l != null && u.push(l), c != null && u.push(c), ui("nameValue", { name: u.join(" > "), value: a.value, noValue: a.value == null }); } - var d = jq({ + var d = Yq({ series: this, dataIndex: r, multipleSeries: n @@ -77459,15 +77500,15 @@ var vBe = ( } }, t; }(jr) -), mBe = { +), _Be = { type: "graphRoam", event: "graphRoam", update: "none" }; -function yBe(e) { - e.registerChartView(pBe), e.registerSeriesModel(vBe), e.registerProcessor(Z8e), e.registerVisual(Q8e), e.registerVisual(J8e), e.registerLayout(iBe), e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT, aBe), e.registerLayout(lBe), e.registerCoordinateSystem("graphView", { - dimensions: dy.dimensions, - create: uBe +function MBe(e) { + e.registerChartView(RBe), e.registerSeriesModel(TBe), e.registerProcessor(lBe), e.registerVisual(cBe), e.registerVisual(uBe), e.registerLayout(gBe), e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT, mBe), e.registerLayout(CBe), e.registerCoordinateSystem("graphView", { + dimensions: py.dimensions, + create: bBe }), e.registerAction({ type: "focusNodeAdjacency", event: "focusNodeAdjacency", @@ -77476,7 +77517,7 @@ function yBe(e) { type: "unfocusNodeAdjacency", event: "unfocusNodeAdjacency", update: "series:unfocusNodeAdjacency" - }, Dn), e.registerAction(mBe, function(t, r, n) { + }, Dn), e.registerAction(_Be, function(t, r, n) { r.eachComponent({ mainType: "series", query: t @@ -77486,7 +77527,7 @@ function yBe(e) { }); }); } -var CBe = ( +var DBe = ( /** @class */ /* @__PURE__ */ function() { function e() { @@ -77494,7 +77535,7 @@ var CBe = ( } return e; }() -), SBe = ( +), IBe = ( /** @class */ function(e) { Se(t, e); @@ -77503,14 +77544,14 @@ var CBe = ( return n.type = "pointer", n; } return t.prototype.getDefaultShape = function() { - return new CBe(); + return new DBe(); }, t.prototype.buildPath = function(r, n) { var i = Math.cos, o = Math.sin, a = n.r, s = n.width, l = n.angle, c = n.x - i(l) * s * (s >= a / 3 ? 1 : 2), u = n.y - o(l) * s * (s >= a / 3 ? 1 : 2); l = n.angle - Math.PI / 2, r.moveTo(c, u), r.lineTo(n.x + i(l) * s, n.y + o(l) * s), r.lineTo(n.x + i(n.angle) * a, n.y + o(n.angle) * a), r.lineTo(n.x - i(l) * s, n.y - o(l) * s), r.lineTo(c, u); }, t; }(nr) ); -function bBe(e, t) { +function ABe(e, t) { var r = e.get("center"), n = t.getWidth(), i = t.getHeight(), o = Math.min(n, i), a = Ze(r[0], t.getWidth()), s = Ze(r[1], t.getHeight()), l = Ze(e.get("radius"), o / 2); return { cx: a, @@ -77518,11 +77559,11 @@ function bBe(e, t) { r: l }; } -function L0(e, t) { +function k0(e, t) { var r = e == null ? "" : e + ""; - return t && (Je(t) ? r = t.replace("{value}", r) : vt(t) && (r = t(e))), r; + return t && (Je(t) ? r = t.replace("{value}", r) : mt(t) && (r = t(e))), r; } -var wBe = ( +var OBe = ( /** @class */ function(e) { Se(t, e); @@ -77532,12 +77573,12 @@ var wBe = ( } return t.prototype.render = function(r, n, i) { this.group.removeAll(); - var o = r.get(["axisLine", "lineStyle", "color"]), a = bBe(r, i); + var o = r.get(["axisLine", "lineStyle", "color"]), a = ABe(r, i); this._renderMain(r, n, i, o, a), this._data = r.getData(); }, t.prototype.dispose = function() { }, t.prototype._renderMain = function(r, n, i, o, a) { - var s = this.group, l = r.get("clockwise"), c = -r.get("startAngle") / 180 * Math.PI, u = -r.get("endAngle") / 180 * Math.PI, d = r.getModel("axisLine"), h = d.get("roundCap"), f = h ? JS : io, p = d.get("show"), g = d.getModel("lineStyle"), v = g.get("width"), m = [c, u]; - B2(m, !l), c = m[0], u = m[1]; + var s = this.group, l = r.get("clockwise"), c = -r.get("startAngle") / 180 * Math.PI, u = -r.get("endAngle") / 180 * Math.PI, d = r.getModel("axisLine"), h = d.get("roundCap"), f = h ? tb : io, p = d.get("show"), g = d.getModel("lineStyle"), v = g.get("width"), m = [c, u]; + BI(m, !l), c = m[0], u = m[1]; for (var y = u - c, C = c, b = [], w = 0; p && w < o.length; w++) { var x = Math.min(Math.max(o[w][0], 0), 1); u = c + y * x; @@ -77592,7 +77633,7 @@ var wBe = ( }), d.add(F); } if (C.get("show")) { - var N = C.get("distance") + A, $ = L0(En(L / b * (v - g) + g), C.get("formatter")), I = o(L / b), V = M * (p - x - N) + h, H = O * (p - x - N) + f, B = C.get("rotate"), W = 0; + var N = C.get("distance") + A, $ = k0(En(L / b * (v - g) + g), C.get("formatter")), I = o(L / b), V = M * (p - x - N) + h, H = O * (p - x - N) + f, B = C.get("rotate"), W = 0; B === "radial" ? (W = -R + 2 * Math.PI, W > Math.PI / 2 && (W += Math.PI)) : B === "tangential" ? W = -R - Math.PI / 2 : Cr(B) && (W = B * Math.PI / 180), W === 0 ? d.add(new vr({ style: rn(C, { text: $, @@ -77647,7 +77688,7 @@ var wBe = ( var d = this.group, h = this._data, f = this._progressEls, p = [], g = r.get(["pointer", "show"]), v = r.getModel("progress"), m = v.get("show"), y = r.getData(), C = y.mapDimension("value"), b = +r.get("min"), w = +r.get("max"), x = [b, w], E = [s, l]; function R(T, _) { var D = y.getItemModel(T), A = D.getModel("pointer"), M = Ze(A.get("width"), a.r), O = Ze(A.get("length"), a.r), L = r.get(["pointer", "icon"]), N = A.get("offsetCenter"), F = Ze(N[0], a.r), $ = Ze(N[1], a.r), I = A.get("keepAspect"), V; - return L ? V = Bn(L, F - M / 2, $ - O, M, O, null, I) : V = new SBe({ + return L ? V = Bn(L, F - M / 2, $ - O, M, O, null, I) : V = new IBe({ shape: { angle: -Math.PI / 2, width: M, @@ -77658,7 +77699,7 @@ var wBe = ( }), V.rotation = -(_ + Math.PI / 2), V.x = a.cx, V.y = a.cy, V; } function P(T, _) { - var D = v.get("roundCap"), A = D ? JS : io, M = v.get("overlap"), O = M ? v.get("width") : u / y.count(), L = M ? a.r - O : a.r - (T + 1) * O, N = M ? a.r : a.r - T * O, F = new A({ + var D = v.get("roundCap"), A = D ? tb : io, M = v.get("overlap"), O = M ? v.get("width") : u / y.count(), L = M ? a.r - O : a.r - (T + 1) * O, N = M ? a.r : a.r - T * O, F = new A({ shape: { startAngle: s, endAngle: _, @@ -77707,7 +77748,7 @@ var wBe = ( var _ = y.getItemModel(T), D = _.getModel("emphasis"), A = D.get("focus"), M = D.get("blurScope"), O = D.get("disabled"); if (g) { var L = y.getItemGraphicEl(T), N = y.getItemVisual(T, "style"), F = N.fill; - if (L instanceof yi) { + if (L instanceof Ci) { var $ = L.style; L.useStyle(Pe({ image: $.image, @@ -77718,11 +77759,11 @@ var wBe = ( }, N)); } else L.useStyle(N), L.type !== "pointer" && L.setColor(F); - L.setStyle(_.getModel(["pointer", "itemStyle"]).getItemStyle()), L.style.fill === "auto" && L.setStyle("fill", o(Lr(y.get(C, T), x, [0, 1], !0))), L.z2EmphasisLift = 0, Ei(L, _), Rn(L, A, M, O); + L.setStyle(_.getModel(["pointer", "itemStyle"]).getItemStyle()), L.style.fill === "auto" && L.setStyle("fill", o(Lr(y.get(C, T), x, [0, 1], !0))), L.z2EmphasisLift = 0, Ri(L, _), Rn(L, A, M, O); } if (m) { var I = p[T]; - I.useStyle(y.getItemVisual(T, "style")), I.setStyle(_.getModel(["progress", "itemStyle"]).getItemStyle()), I.z2EmphasisLift = 0, Ei(I, _), Rn(I, A, M, O); + I.useStyle(y.getItemVisual(T, "style")), I.setStyle(_.getModel(["progress", "itemStyle"]).getItemStyle()), I.z2EmphasisLift = 0, Ri(I, _), Rn(I, A, M, O); } }), this._progressEls = p); }, t.prototype._renderAnchor = function(r, n) { @@ -77766,7 +77807,7 @@ var wBe = ( style: rn(_, { x: A, y: M, - text: L0(C, F), + text: k0(C, F), width: isNaN(O) ? null : O, height: isNaN(L) ? null : L, align: "center", @@ -77774,13 +77815,13 @@ var wBe = ( }, { inheritColor: N }) - }), JY(T, { + }), rq(T, { normal: _ }, C, function(I) { - return L0(I, F); - }), g && eq(T, m, l, r, { + return k0(I, F); + }), g && nq(T, m, l, r, { getFormattedLabel: function(I, V, H, B, W, j) { - return L0(j ? j.interpolatedValue : C, F); + return k0(j ? j.interpolatedValue : C, F); } }), b.add(T); } @@ -77788,7 +77829,7 @@ var wBe = ( }), this.group.add(h), this._titleEls = f, this._detailEls = p; }, t.type = "gauge", t; }($r) -), xBe = ( +), LBe = ( /** @class */ function(e) { Se(t, e); @@ -77797,7 +77838,7 @@ var wBe = ( return r.type = t.type, r.visualStyleAccessPath = "itemStyle", r; } return t.prototype.getInitialData = function(r, n) { - return Pp(this, ["value"]); + return _p(this, ["value"]); }, t.type = "series.gauge", t.defaultOption = { // zlevel: 0, z: 2, @@ -77924,10 +77965,10 @@ var wBe = ( }, t; }(jr) ); -function EBe(e) { - e.registerChartView(wBe), e.registerSeriesModel(xBe); +function FBe(e) { + e.registerChartView(OBe), e.registerSeriesModel(LBe); } -var RBe = ["itemStyle", "opacity"], PBe = ( +var NBe = ["itemStyle", "opacity"], kBe = ( /** @class */ function(e) { Se(t, e); @@ -77936,7 +77977,7 @@ var RBe = ["itemStyle", "opacity"], PBe = ( return o.setTextContent(s), i.setTextGuideLine(a), i.updateData(r, n, !0), i; } return t.prototype.updateData = function(r, n, i) { - var o = this, a = r.hostModel, s = r.getItemModel(n), l = r.getItemLayout(n), c = s.getModel("emphasis"), u = s.get(RBe); + var o = this, a = r.hostModel, s = r.getItemModel(n), l = r.getItemLayout(n), c = s.getModel("emphasis"), u = s.get(NBe); u = u ?? 1, i || ls(o), o.useStyle(r.getItemVisual(n, "style")), o.style.lineJoin = "round", i ? (o.setShape({ points: l.points }), o.style.opacity = 0, un(o, { @@ -77950,13 +77991,13 @@ var RBe = ["itemStyle", "opacity"], PBe = ( shape: { points: l.points } - }, a, n), Ei(o, s), this._updateLabel(r, n), Rn(this, c.get("focus"), c.get("blurScope"), c.get("disabled")); + }, a, n), Ri(o, s), this._updateLabel(r, n), Rn(this, c.get("focus"), c.get("blurScope"), c.get("disabled")); }, t.prototype._updateLabel = function(r, n) { var i = this, o = this.getTextGuideLine(), a = i.getTextContent(), s = r.hostModel, l = r.getItemModel(n), c = r.getItemLayout(n), u = c.label, d = r.getItemVisual(n, "style"), h = d.fill; - Ri( + Pi( // position will not be used in setLabelStyle a, - li(l), + ci(l), { labelFetcher: r.hostModel, labelDataIndex: n, @@ -77980,7 +78021,7 @@ var RBe = ["itemStyle", "opacity"], PBe = ( o.setShape({ points: f }), i.textGuideLineConfig = { - anchor: f ? new Ut(f[0][0], f[0][1]) : null + anchor: f ? new Kt(f[0][0], f[0][1]) : null }, br(a, { style: { x: u.x, @@ -77997,7 +78038,7 @@ var RBe = ["itemStyle", "opacity"], PBe = ( }); }, t; }(oo) -), TBe = ( +), $Be = ( /** @class */ function(e) { Se(t, e); @@ -78008,21 +78049,21 @@ var RBe = ["itemStyle", "opacity"], PBe = ( return t.prototype.render = function(r, n, i) { var o = r.getData(), a = this._data, s = this.group; o.diff(a).add(function(l) { - var c = new PBe(o, l); + var c = new kBe(o, l); o.setItemGraphicEl(l, c), s.add(c); }).update(function(l, c) { var u = a.getItemGraphicEl(c); u.updateData(o, l), s.add(u), o.setItemGraphicEl(l, u); }).remove(function(l) { var c = a.getItemGraphicEl(l); - Yv(c, r, l); + Xv(c, r, l); }).execute(), this._data = o; }, t.prototype.remove = function() { this.group.removeAll(), this._data = null; }, t.prototype.dispose = function() { }, t.type = "funnel", t; }($r) -), _Be = ( +), BBe = ( /** @class */ function(e) { Se(t, e); @@ -78031,9 +78072,9 @@ var RBe = ["itemStyle", "opacity"], PBe = ( return r.type = t.type, r; } return t.prototype.init = function(r) { - e.prototype.init.apply(this, arguments), this.legendVisualProvider = new cy(at(this.getData, this), at(this.getRawData, this)), this._defaultLabelLine(r); + e.prototype.init.apply(this, arguments), this.legendVisualProvider = new hy(at(this.getData, this), at(this.getRawData, this)), this._defaultLabelLine(r); }, t.prototype.getInitialData = function(r, n) { - return Pp(this, { + return _p(this, { coordDimensions: ["value"], encodeDefaulter: Vt(lA, this) }); @@ -78095,22 +78136,22 @@ var RBe = ["itemStyle", "opacity"], PBe = ( }, t; }(jr) ); -function MBe(e, t) { +function VBe(e, t) { return jn(e.getBoxLayoutParams(), { width: t.getWidth(), height: t.getHeight() }); } -function DBe(e, t) { +function HBe(e, t) { for (var r = e.mapDimension("value"), n = e.mapArray(r, function(l) { return l; }), i = [], o = t === "ascending", a = 0, s = e.count(); a < s; a++) i[a] = a; - return vt(t) ? i.sort(t) : t !== "none" && i.sort(function(l, c) { + return mt(t) ? i.sort(t) : t !== "none" && i.sort(function(l, c) { return o ? n[l] - n[c] : n[c] - n[l]; }), i; } -function IBe(e) { +function zBe(e) { var t = e.hostModel, r = t.get("orient"); e.each(function(n) { var i = e.getItemModel(n), o = i.getModel("label"), a = o.get("position"), s = i.getModel("labelLine"), l = e.getItemLayout(n), c = l.points, u = a === "inner" || a === "inside" || a === "center" || a === "insideLeft" || a === "insideRight", d, h, f, p; @@ -78130,9 +78171,9 @@ function IBe(e) { }; }); } -function ABe(e, t) { +function GBe(e, t) { e.eachSeriesByType("funnel", function(r) { - var n = r.getData(), i = n.mapDimension("value"), o = r.get("sort"), a = MBe(r, t), s = r.get("orient"), l = a.width, c = a.height, u = DBe(n, o), d = a.x, h = a.y, f = s === "horizontal" ? [Ze(r.get("minSize"), c), Ze(r.get("maxSize"), c)] : [Ze(r.get("minSize"), l), Ze(r.get("maxSize"), l)], p = n.getDataExtent(i), g = r.get("min"), v = r.get("max"); + var n = r.getData(), i = n.mapDimension("value"), o = r.get("sort"), a = VBe(r, t), s = r.get("orient"), l = a.width, c = a.height, u = HBe(n, o), d = a.x, h = a.y, f = s === "horizontal" ? [Ze(r.get("minSize"), c), Ze(r.get("maxSize"), c)] : [Ze(r.get("minSize"), l), Ze(r.get("maxSize"), l)], p = n.getDataExtent(i), g = r.get("min"), v = r.get("max"); g == null && (g = Math.min(p[0], 0)), v == null && (v = p[1]); var m = r.get("funnelAlign"), y = r.get("gap"), C = s === "horizontal" ? l : c, b = (C - y * (n.count() - 1)) / n.count(), w = function(M, O) { if (s === "horizontal") { @@ -78183,13 +78224,13 @@ function ABe(e, t) { }); } } - IBe(n); + zBe(n); }); } -function OBe(e) { - e.registerChartView(TBe), e.registerSeriesModel(_Be), e.registerLayout(ABe), e.registerProcessor(ly("funnel")); +function WBe(e) { + e.registerChartView($Be), e.registerSeriesModel(BBe), e.registerLayout(GBe), e.registerProcessor(dy("funnel")); } -var LBe = 0.3, FBe = ( +var jBe = 0.3, UBe = ( /** @class */ function(e) { Se(t, e); @@ -78201,14 +78242,14 @@ var LBe = 0.3, FBe = ( this.group.add(this._dataGroup); }, t.prototype.render = function(r, n, i, o) { this._progressiveEls = null; - var a = this._dataGroup, s = r.getData(), l = this._data, c = r.coordinateSystem, u = c.dimensions, d = W6(r); + var a = this._dataGroup, s = r.getData(), l = this._data, c = r.coordinateSystem, u = c.dimensions, d = U6(r); s.diff(l).add(h).update(f).remove(p).execute(); function h(v) { - var m = G6(s, a, v, u, c); + var m = j6(s, a, v, u, c); SR(m, s, v, d); } function f(v, m) { - var y = l.getItemGraphicEl(m), C = EQ(s, v, u, c); + var y = l.getItemGraphicEl(m), C = TQ(s, v, u, c); s.setItemGraphicEl(v, y), br(y, { shape: { points: C @@ -78221,7 +78262,7 @@ var LBe = 0.3, FBe = ( } if (!this._initialized) { this._initialized = !0; - var g = NBe(c, r, function() { + var g = KBe(c, r, function() { setTimeout(function() { a.removeClipPath(); }); @@ -78232,8 +78273,8 @@ var LBe = 0.3, FBe = ( }, t.prototype.incrementalPrepareRender = function(r, n, i) { this._initialized = !0, this._data = null, this._dataGroup.removeAll(); }, t.prototype.incrementalRender = function(r, n, i) { - for (var o = n.getData(), a = n.coordinateSystem, s = a.dimensions, l = W6(n), c = this._progressiveEls = [], u = r.start; u < r.end; u++) { - var d = G6(o, this._dataGroup, u, s, a); + for (var o = n.getData(), a = n.coordinateSystem, s = a.dimensions, l = U6(n), c = this._progressiveEls = [], u = r.start; u < r.end; u++) { + var d = j6(o, this._dataGroup, u, s, a); d.incremental = !0, SR(d, o, u, l), c.push(d); } }, t.prototype.remove = function() { @@ -78241,7 +78282,7 @@ var LBe = 0.3, FBe = ( }, t.type = "parallel", t; }($r) ); -function NBe(e, t, r) { +function KBe(e, t, r) { var n = e.model, i = e.getRect(), o = new mr({ shape: { x: i.x, @@ -78257,15 +78298,15 @@ function NBe(e, t, r) { } }, t, r), o; } -function EQ(e, t, r, n) { +function TQ(e, t, r, n) { for (var i = [], o = 0; o < r.length; o++) { var a = r[o], s = e.get(e.mapDimension(a), t); - kBe(s, n.getAxis(a).type) || i.push(n.dataToPoint(s, a)); + YBe(s, n.getAxis(a).type) || i.push(n.dataToPoint(s, a)); } return i; } -function G6(e, t, r, n, i) { - var o = EQ(e, r, n, i), a = new ao({ +function j6(e, t, r, n, i) { + var o = TQ(e, r, n, i), a = new ao({ shape: { points: o }, @@ -78274,21 +78315,21 @@ function G6(e, t, r, n, i) { }); return t.add(a), e.setItemGraphicEl(r, a), a; } -function W6(e) { +function U6(e) { var t = e.get("smooth", !0); - return t === !0 && (t = LBe), t = Ks(t), zc(t) && (t = 0), { + return t === !0 && (t = jBe), t = Ks(t), zc(t) && (t = 0), { smooth: t }; } function SR(e, t, r, n) { e.useStyle(t.getItemVisual(r, "style")), e.style.fill = null, e.setShape("smooth", n.smooth); var i = t.getItemModel(r), o = i.getModel("emphasis"); - Ei(e, i, "lineStyle"), Rn(e, o.get("focus"), o.get("blurScope"), o.get("disabled")); + Ri(e, i, "lineStyle"), Rn(e, o.get("focus"), o.get("blurScope"), o.get("disabled")); } -function kBe(e, t) { +function YBe(e, t) { return t === "category" ? e == null : e == null || isNaN(e); } -var $Be = ( +var qBe = ( /** @class */ function(e) { Se(t, e); @@ -78297,8 +78338,8 @@ var $Be = ( return r.type = t.type, r.visualStyleAccessPath = "lineStyle", r.visualDrawType = "stroke", r; } return t.prototype.getInitialData = function(r, n) { - return rl(null, this, { - useEncodeDefaulter: at(BBe, null, this) + return nl(null, this, { + useEncodeDefaulter: at(XBe, null, this) }); }, t.prototype.getRawIndicesByActiveState = function(r) { var n = this.coordinateSystem, i = this.getData(), o = []; @@ -78331,20 +78372,20 @@ var $Be = ( }, t; }(jr) ); -function BBe(e) { +function XBe(e) { var t = e.ecModel.getComponent("parallel", e.get("parallelIndex")); if (t) { var r = {}; return z(t.dimensions, function(n) { - var i = VBe(n); + var i = ZBe(n); r[n] = i; }), r; } } -function VBe(e) { +function ZBe(e) { return +e.replace("dim", ""); } -var HBe = ["lineStyle", "opacity"], zBe = { +var QBe = ["lineStyle", "opacity"], JBe = { seriesType: "parallel", reset: function(e, t) { var r = e.coordinateSystem, n = { @@ -78357,7 +78398,7 @@ var HBe = ["lineStyle", "opacity"], zBe = { r.eachActiveState(o, function(a, s) { var l = n[a]; if (a === "normal" && o.hasItemOption) { - var c = o.getItemModel(s).get(HBe, !0); + var c = o.getItemModel(s).get(QBe, !0); c != null && (l = c); } var u = o.ensureUniqueItemVisual(s, "style"); @@ -78367,10 +78408,10 @@ var HBe = ["lineStyle", "opacity"], zBe = { }; } }; -function GBe(e) { - WBe(e), jBe(e); +function eVe(e) { + tVe(e), rVe(e); } -function WBe(e) { +function tVe(e) { if (!e.parallel) { var t = !1; z(e.series, function(r) { @@ -78378,16 +78419,16 @@ function WBe(e) { }), t && (e.parallel = [{}]); } } -function jBe(e) { +function rVe(e) { var t = Wr(e.parallelAxis); z(t, function(r) { - if (St(r)) { + if (bt(r)) { var n = r.parallelIndex || 0, i = Wr(e.parallel)[n]; - i && i.parallelAxisDefault && Wt(r, i.parallelAxisDefault, !1); + i && i.parallelAxisDefault && jt(r, i.parallelAxisDefault, !1); } }); } -var UBe = 5, KBe = ( +var nVe = 5, iVe = ( /** @class */ function(e) { Se(t, e); @@ -78396,11 +78437,11 @@ var UBe = 5, KBe = ( return r.type = t.type, r; } return t.prototype.render = function(r, n, i) { - this._model = r, this._api = i, this._handlers || (this._handlers = {}, z(YBe, function(o, a) { + this._model = r, this._api = i, this._handlers || (this._handlers = {}, z(oVe, function(o, a) { i.getZr().on(a, this._handlers[a] = at(o, this)); - }, this)), bp(this, "_throttledDispatchExpand", r.get("axisExpandRate"), "fixRate"); + }, this)), xp(this, "_throttledDispatchExpand", r.get("axisExpandRate"), "fixRate"); }, t.prototype.dispose = function(r, n) { - Qv(this, "_throttledDispatchExpand"), z(this._handlers, function(i, o) { + em(this, "_throttledDispatchExpand"), z(this._handlers, function(i, o) { n.getZr().off(o, i); }), this._handlers = null; }, t.prototype._throttledDispatchExpand = function(r) { @@ -78411,7 +78452,7 @@ var UBe = 5, KBe = ( }, r)); }, t.type = "parallel", t; }(sn) -), YBe = { +), oVe = { mousedown: function(e) { bR(this, "click") && (this._mouseDownPoint = [e.offsetX, e.offsetY]); }, @@ -78419,7 +78460,7 @@ var UBe = 5, KBe = ( var t = this._mouseDownPoint; if (bR(this, "click") && t) { var r = [e.offsetX, e.offsetY], n = Math.pow(t[0] - r[0], 2) + Math.pow(t[1] - r[1], 2); - if (n > UBe) + if (n > nVe) return; var i = this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]); i.behavior !== "none" && this._dispatchExpand({ @@ -78446,7 +78487,7 @@ function bR(e, t) { var r = e._model; return r.get("axisExpandable") && r.get("axisExpandTriggerOn") === t; } -var qBe = ( +var aVe = ( /** @class */ function(e) { Se(t, e); @@ -78458,7 +78499,7 @@ var qBe = ( e.prototype.init.apply(this, arguments), this.mergeOption({}); }, t.prototype.mergeOption = function(r) { var n = this.option; - r && Wt(n, r, !0), this._initDimensions(); + r && jt(n, r, !0), this._initDimensions(); }, t.prototype.contains = function(r, n) { var i = r.get("parallelIndex"); return i != null && n.getComponent("parallel", i) === this; @@ -78467,7 +78508,7 @@ var qBe = ( r.hasOwnProperty(n) && (this.option[n] = r[n]); }, this); }, t.prototype._initDimensions = function() { - var r = this.dimensions = [], n = this.parallelAxisIndex = [], i = Fr(this.ecModel.queryComponents({ + var r = this.dimensions = [], n = this.parallelAxisIndex = [], i = Nr(this.ecModel.queryComponents({ mainType: "parallelAxis" }), function(o) { return (o.get("parallelIndex") || 0) === this.componentIndex; @@ -78500,7 +78541,7 @@ var qBe = ( parallelAxisDefault: null }, t; }(Qt) -), XBe = ( +), sVe = ( /** @class */ function(e) { Se(t, e); @@ -78538,7 +78579,7 @@ function wR(e, t) { function Lh(e, t) { return Math.min(t[1] != null ? t[1] : 1 / 0, Math.max(t[0] != null ? t[0] : -1 / 0, e)); } -var xR = z, RQ = Math.min, PQ = Math.max, j6 = Math.floor, ZBe = Math.ceil, U6 = En, QBe = Math.PI, JBe = ( +var xR = z, _Q = Math.min, MQ = Math.max, K6 = Math.floor, lVe = Math.ceil, Y6 = En, cVe = Math.PI, uVe = ( /** @class */ function() { function e(t, r, n) { @@ -78547,7 +78588,7 @@ var xR = z, RQ = Math.min, PQ = Math.max, j6 = Math.floor, ZBe = Math.ceil, U6 = return e.prototype._init = function(t, r, n) { var i = t.dimensions, o = t.parallelAxisIndex; xR(i, function(a, s) { - var l = o[s], c = r.getComponent("parallelAxis", l), u = this._axesMap.set(a, new XBe(a, ny(c), [0, 0], c.get("type"), l)), d = u.type === "category"; + var l = o[s], c = r.getComponent("parallelAxis", l), u = this._axesMap.set(a, new sVe(a, ay(c), [0, 0], c.get("type"), l)), d = u.type === "category"; u.onBand = d && c.get("boundaryGap"), u.inverse = c.get("inverse"), c.axis = u, u.model = c, u.coordinateSystem = c.coordinateSystem = this; }, this); }, e.prototype.update = function(t, r) { @@ -78575,17 +78616,17 @@ var xR = z, RQ = Math.min, PQ = Math.max, j6 = Math.floor, ZBe = Math.ceil, U6 = }, e.prototype.getRect = function() { return this._rect; }, e.prototype._makeLayoutInfo = function() { - var t = this._model, r = this._rect, n = ["x", "y"], i = ["width", "height"], o = t.get("layout"), a = o === "horizontal" ? 0 : 1, s = r[i[a]], l = [0, s], c = this.dimensions.length, u = F0(t.get("axisExpandWidth"), l), d = F0(t.get("axisExpandCount") || 0, [0, c]), h = t.get("axisExpandable") && c > 3 && c > d && d > 1 && u > 0 && s > 0, f = t.get("axisExpandWindow"), p; + var t = this._model, r = this._rect, n = ["x", "y"], i = ["width", "height"], o = t.get("layout"), a = o === "horizontal" ? 0 : 1, s = r[i[a]], l = [0, s], c = this.dimensions.length, u = $0(t.get("axisExpandWidth"), l), d = $0(t.get("axisExpandCount") || 0, [0, c]), h = t.get("axisExpandable") && c > 3 && c > d && d > 1 && u > 0 && s > 0, f = t.get("axisExpandWindow"), p; if (f) - p = F0(f[1] - f[0], l), f[1] = f[0] + p; + p = $0(f[1] - f[0], l), f[1] = f[0] + p; else { - p = F0(u * (d - 1), l); - var g = t.get("axisExpandCenter") || j6(c / 2); + p = $0(u * (d - 1), l); + var g = t.get("axisExpandCenter") || K6(c / 2); f = [u * g - p / 2], f[1] = f[0] + p; } var v = (s - p) / (c - d); v < 3 && (v = 0); - var m = [j6(U6(f[0] / u, 1)) + 1, ZBe(U6(f[1] / u, 1)) - 1], y = v / u * f[0]; + var m = [K6(Y6(f[0] / u, 1)) + 1, lVe(Y6(f[1] / u, 1)) - 1], y = v / u * f[0]; return { layout: o, pixelDimIndex: a, @@ -78607,7 +78648,7 @@ var xR = z, RQ = Math.min, PQ = Math.max, j6 = Math.floor, ZBe = Math.ceil, U6 = var s = [0, i.axisLength], l = a.inverse ? 1 : 0; a.setExtent(s[l], s[1 - l]); }), xR(n, function(a, s) { - var l = (i.axisExpandable ? tVe : eVe)(s, i), c = { + var l = (i.axisExpandable ? hVe : dVe)(s, i), c = { horizontal: { x: l.position, y: i.axisLength @@ -78617,7 +78658,7 @@ var xR = z, RQ = Math.min, PQ = Math.max, j6 = Math.floor, ZBe = Math.ceil, U6 = y: l.position } }, u = { - horizontal: QBe / 2, + horizontal: cVe / 2, vertical: 0 }, d = [c[o].x + t.x, c[o].y + t.y], h = u[o], f = So(); eu(f, f, h), as(f, f, d), this._axesLayout[a] = { @@ -78678,7 +78719,7 @@ var xR = z, RQ = Math.min, PQ = Math.max, j6 = Math.floor, ZBe = Math.ceil, U6 = h && u && s < o * d[0] ? (c = "jump", l = s - o * d[2]) : h && u && s > o * (1 - d[0]) ? (c = "jump", l = s - o * (1 - d[2])) : (l = s - o * d[1]) >= 0 && (l = s - o * (1 - d[1])) <= 0 && (l = 0), l *= r.axisExpandWidth / u, l ? eh(l, i, a, "all") : c = "none"; else { var f = i[1] - i[0], p = a[1] * s / f; - i = [PQ(0, p - f / 2)], i[1] = RQ(a[1], i[0] + f), i[0] = i[1] - f; + i = [MQ(0, p - f / 2)], i[1] = _Q(a[1], i[0] + f), i[0] = i[1] - f; } return { axisExpandWindow: i, @@ -78687,10 +78728,10 @@ var xR = z, RQ = Math.min, PQ = Math.max, j6 = Math.floor, ZBe = Math.ceil, U6 = }, e; }() ); -function F0(e, t) { - return RQ(PQ(e, t[0]), t[1]); +function $0(e, t) { + return _Q(MQ(e, t[0]), t[1]); } -function eVe(e, t) { +function dVe(e, t) { var r = t.layoutLength / (t.axisCount - 1); return { position: r * e, @@ -78698,7 +78739,7 @@ function eVe(e, t) { axisLabelShow: !0 }; } -function tVe(e, t) { +function hVe(e, t) { var r = t.layoutLength, n = t.axisExpandWidth, i = t.axisCount, o = t.axisCollapseWidth, a = t.winInnerIndices, s, l = o, c = !1, u; return e < a[0] ? (s = e * o, u = o) : e <= a[1] ? (s = t.axisExpandWindow0Pos + e * n - t.axisExpandWindow[0], l = n, c = !0) : (s = r - (i - 1 - e) * o, u = o), { position: s, @@ -78707,10 +78748,10 @@ function tVe(e, t) { nameTruncateMaxWidth: u }; } -function rVe(e, t) { +function fVe(e, t) { var r = []; return e.eachComponent("parallel", function(n, i) { - var o = new JBe(n, e, t); + var o = new uVe(n, e, t); o.name = "parallel_" + i, o.resize(n, t), n.coordinateSystem = o, o.model = n, r.push(o); }), e.eachSeries(function(n) { if (n.get("coordinateSystem") === "parallel") { @@ -78719,8 +78760,8 @@ function rVe(e, t) { } }), r; } -var nVe = { - create: rVe +var pVe = { + create: fVe }, OM = ( /** @class */ function(e) { @@ -78762,13 +78803,13 @@ var nVe = { }, t; }(Qt) ); -In(OM, Rp); -var Fd = !0, um = Math.min, zf = Math.max, iVe = Math.pow, oVe = 1e4, aVe = 6, sVe = 6, K6 = "globalPan", lVe = { +In(OM, Tp); +var Fd = !0, hm = Math.min, Wf = Math.max, gVe = Math.pow, vVe = 1e4, mVe = 6, yVe = 6, q6 = "globalPan", CVe = { w: [0, 0], e: [0, 1], n: [1, 0], s: [1, 1] -}, cVe = { +}, SVe = { w: "ew", e: "ew", n: "ns", @@ -78777,7 +78818,7 @@ var Fd = !0, um = Math.min, zf = Math.max, iVe = Math.pow, oVe = 1e4, aVe = 6, s sw: "nesw", nw: "nwse", se: "nwse" -}, Y6 = { +}, X6 = { brushStyle: { lineWidth: 2, stroke: "rgba(210,219,238,0.3)", @@ -78786,26 +78827,26 @@ var Fd = !0, um = Math.min, zf = Math.max, iVe = Math.pow, oVe = 1e4, aVe = 6, s transformable: !0, brushMode: "single", removeOnClick: !1 -}, uVe = 0, oO = ( +}, bVe = 0, oO = ( /** @class */ function(e) { Se(t, e); function t(r) { var n = e.call(this) || this; - return n._track = [], n._covers = [], n._handlers = {}, process.env.NODE_ENV !== "production" && xt(r), n._zr = r, n.group = new Ot(), n._uid = "brushController_" + uVe++, z(mVe, function(i, o) { + return n._track = [], n._covers = [], n._handlers = {}, process.env.NODE_ENV !== "production" && Et(r), n._zr = r, n.group = new Ot(), n._uid = "brushController_" + bVe++, z(_Ve, function(i, o) { this._handlers[o] = at(i, this); }, n), n; } return t.prototype.enableBrush = function(r) { - return process.env.NODE_ENV !== "production" && xt(this._mounted), this._brushType && this._doDisableBrush(), r.brushType && this._doEnableBrush(r), this; + return process.env.NODE_ENV !== "production" && Et(this._mounted), this._brushType && this._doDisableBrush(), r.brushType && this._doEnableBrush(r), this; }, t.prototype._doEnableBrush = function(r) { var n = this._zr; - this._enableGlobalPan || e4e(n, K6, this._uid), z(this._handlers, function(i, o) { + this._enableGlobalPan || d4e(n, q6, this._uid), z(this._handlers, function(i, o) { n.on(o, i); - }), this._brushType = r.brushType, this._brushOption = Wt(_t(Y6), r, !0); + }), this._brushType = r.brushType, this._brushOption = jt(_t(X6), r, !0); }, t.prototype._doDisableBrush = function() { var r = this._zr; - t4e(r, K6, this._uid), z(this._handlers, function(n, i) { + h4e(r, q6, this._uid), z(this._handlers, function(n, i) { r.off(i, n); }), this._brushType = this._brushOption = null; }, t.prototype.setPanels = function(r) { @@ -78828,11 +78869,11 @@ var Fd = !0, um = Math.min, zf = Math.max, iVe = Math.pow, oVe = 1e4, aVe = 6, s scaleY: r.scaleY || 1 }), this._transform = n.getLocalTransform(), this; }, t.prototype.updateCovers = function(r) { - process.env.NODE_ENV !== "production" && xt(this._mounted), r = Fe(r, function(h) { - return Wt(_t(Y6), h, !0); + process.env.NODE_ENV !== "production" && Et(this._mounted), r = Fe(r, function(h) { + return jt(_t(X6), h, !0); }); var n = "\0-brush-index-", i = this._covers, o = this._covers = [], a = this, s = this._creatingCover; - return new zl(i, r, c, l).add(u).update(u).remove(d).execute(), this; + return new Gl(i, r, c, l).add(u).update(u).remove(d).execute(), this; function l(h, f) { return (h.id != null ? h.id : n + f) + "-" + h.brushType; } @@ -78844,7 +78885,7 @@ var Fd = !0, um = Math.min, zf = Math.max, iVe = Math.pow, oVe = 1e4, aVe = 6, s if (f != null && i[f] === s) o[h] = i[f]; else { - var g = o[h] = f != null ? (i[f].__brushOption = p, i[f]) : _Q(a, TQ(a, p)); + var g = o[h] = f != null ? (i[f].__brushOption = p, i[f]) : IQ(a, DQ(a, p)); aO(a, g); } } @@ -78859,26 +78900,26 @@ var Fd = !0, um = Math.min, zf = Math.max, iVe = Math.pow, oVe = 1e4, aVe = 6, s }, t; }(Da) ); -function TQ(e, t) { +function DQ(e, t) { var r = u1[t.brushType].createCover(e, t); - return r.__brushOption = t, DQ(r, t), e.group.add(r), r; + return r.__brushOption = t, OQ(r, t), e.group.add(r), r; } -function _Q(e, t) { +function IQ(e, t) { var r = sO(t); - return r.endCreating && (r.endCreating(e, t), DQ(t, t.__brushOption)), t; + return r.endCreating && (r.endCreating(e, t), OQ(t, t.__brushOption)), t; } -function MQ(e, t) { +function AQ(e, t) { var r = t.__brushOption; sO(t).updateCoverShape(e, t, r.range, r); } -function DQ(e, t) { +function OQ(e, t) { var r = t.z; - r == null && (r = oVe), e.traverse(function(n) { + r == null && (r = vVe), e.traverse(function(n) { n.z = r, n.z2 = r; }); } function aO(e, t) { - sO(t).updateCommon(e, t), MQ(e, t); + sO(t).updateCommon(e, t), AQ(e, t); } function sO(e) { return u1[e.__brushOption.brushType]; @@ -78892,7 +78933,7 @@ function lO(e, t, r) { a.isTargetByCursor(t, r, o) && (i = a); }), i; } -function IQ(e, t) { +function LQ(e, t) { var r = e._panels; if (!r) return Fd; @@ -78920,18 +78961,18 @@ function Nd(e, t) { removeOnClick: !!t.removeOnClick }); } -function dVe(e) { +function wVe(e) { var t = e._track; if (!t.length) return !1; - var r = t[t.length - 1], n = t[0], i = r[0] - n[0], o = r[1] - n[1], a = iVe(i * i + o * o, 0.5); - return a > aVe; + var r = t[t.length - 1], n = t[0], i = r[0] - n[0], o = r[1] - n[1], a = gVe(i * i + o * o, 0.5); + return a > mVe; } -function AQ(e) { +function FQ(e) { var t = e.length - 1; return t < 0 && (t = 0), [e[0], e[t]]; } -function OQ(e, t, r, n) { +function NQ(e, t, r, n) { var i = new Ot(); return i.add(new mr({ name: "main", @@ -78939,7 +78980,7 @@ function OQ(e, t, r, n) { silent: !0, draggable: !0, cursor: "move", - drift: Vt(q6, e, t, i, ["n", "s", "w", "e"]), + drift: Vt(Z6, e, t, i, ["n", "s", "w", "e"]), ondragend: Vt(Nd, t, { isEnd: !0 }) @@ -78952,16 +78993,16 @@ function OQ(e, t, r, n) { draggable: !0, silent: !0, invisible: !0, - drift: Vt(q6, e, t, i, o), + drift: Vt(Z6, e, t, i, o), ondragend: Vt(Nd, t, { isEnd: !0 }) })); }), i; } -function LQ(e, t, r, n) { - var i = n.brushStyle.lineWidth || 0, o = zf(i, sVe), a = r[0][0], s = r[1][0], l = a - i / 2, c = s - i / 2, u = r[0][1], d = r[1][1], h = u - o + i / 2, f = d - o + i / 2, p = u - a, g = d - s, v = p + i, m = g + i; - hl(e, t, "main", a, s, p, g), n.transformable && (hl(e, t, "w", l, c, o, m), hl(e, t, "e", h, c, o, m), hl(e, t, "n", l, c, v, o), hl(e, t, "s", l, f, v, o), hl(e, t, "nw", l, c, o, o), hl(e, t, "ne", h, c, o, o), hl(e, t, "sw", l, f, o, o), hl(e, t, "se", h, f, o, o)); +function kQ(e, t, r, n) { + var i = n.brushStyle.lineWidth || 0, o = Wf(i, yVe), a = r[0][0], s = r[1][0], l = a - i / 2, c = s - i / 2, u = r[0][1], d = r[1][1], h = u - o + i / 2, f = d - o + i / 2, p = u - a, g = d - s, v = p + i, m = g + i; + fl(e, t, "main", a, s, p, g), n.transformable && (fl(e, t, "w", l, c, o, m), fl(e, t, "e", h, c, o, m), fl(e, t, "n", l, c, v, o), fl(e, t, "s", l, f, v, o), fl(e, t, "nw", l, c, o, o), fl(e, t, "ne", h, c, o, o), fl(e, t, "sw", l, f, o, o), fl(e, t, "se", h, f, o, o)); } function FM(e, t) { var r = t.__brushOption, n = r.transformable, i = t.childAt(0); @@ -78969,32 +79010,32 @@ function FM(e, t) { silent: !n, cursor: n ? "move" : "default" }), z([["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]], function(o) { - var a = t.childOfName(o.join("")), s = o.length === 1 ? NM(e, o[0]) : fVe(e, o); + var a = t.childOfName(o.join("")), s = o.length === 1 ? NM(e, o[0]) : EVe(e, o); a && a.attr({ silent: !n, invisible: !n, - cursor: n ? cVe[s] + "-resize" : null + cursor: n ? SVe[s] + "-resize" : null }); }); } -function hl(e, t, r, n, i, o, a) { +function fl(e, t, r, n, i, o, a) { var s = t.childOfName(r); - s && s.setShape(gVe(uO(e, t, [[n, i], [n + o, i + a]]))); + s && s.setShape(PVe(uO(e, t, [[n, i], [n + o, i + a]]))); } function cO(e) { - return wt({ + return xt({ strokeNoScale: !0 }, e.brushStyle); } -function FQ(e, t, r, n) { - var i = [um(e, r), um(t, n)], o = [zf(e, r), zf(t, n)]; +function $Q(e, t, r, n) { + var i = [hm(e, r), hm(t, n)], o = [Wf(e, r), Wf(t, n)]; return [ [i[0], o[0]], [i[1], o[1]] // y range ]; } -function hVe(e) { +function xVe(e) { return Dc(e.group); } function NM(e, t) { @@ -79008,40 +79049,40 @@ function NM(e, t) { right: "e", top: "n", bottom: "s" - }, i = zw(r[t], hVe(e)); + }, i = zw(r[t], xVe(e)); return n[i]; } -function fVe(e, t) { +function EVe(e, t) { var r = [NM(e, t[0]), NM(e, t[1])]; return (r[0] === "e" || r[0] === "w") && r.reverse(), r.join(""); } -function q6(e, t, r, n, i, o) { - var a = r.__brushOption, s = e.toRectRange(a.range), l = NQ(t, i, o); +function Z6(e, t, r, n, i, o) { + var a = r.__brushOption, s = e.toRectRange(a.range), l = BQ(t, i, o); z(n, function(c) { - var u = lVe[c]; + var u = CVe[c]; s[u[0]][u[1]] += l[u[0]]; - }), a.range = e.fromRectRange(FQ(s[0][0], s[1][0], s[0][1], s[1][1])), aO(t, r), Nd(t, { + }), a.range = e.fromRectRange($Q(s[0][0], s[1][0], s[0][1], s[1][1])), aO(t, r), Nd(t, { isEnd: !1 }); } -function pVe(e, t, r, n) { - var i = t.__brushOption.range, o = NQ(e, r, n); +function RVe(e, t, r, n) { + var i = t.__brushOption.range, o = BQ(e, r, n); z(i, function(a) { a[0] += o[0], a[1] += o[1]; }), aO(e, t), Nd(e, { isEnd: !1 }); } -function NQ(e, t, r) { +function BQ(e, t, r) { var n = e.group, i = n.transformCoordToLocal(t, r), o = n.transformCoordToLocal(0, 0); return [i[0] - o[0], i[1] - o[1]]; } function uO(e, t, r) { - var n = IQ(e, t); + var n = LQ(e, t); return n && n !== Fd ? n.clipPath(r, e._transform) : _t(r); } -function gVe(e) { - var t = um(e[0][0], e[1][0]), r = um(e[0][1], e[1][1]), n = zf(e[0][0], e[1][0]), i = zf(e[0][1], e[1][1]); +function PVe(e) { + var t = hm(e[0][0], e[1][0]), r = hm(e[0][1], e[1][1]), n = Wf(e[0][0], e[1][0]), i = Wf(e[0][1], e[1][1]); return { x: t, y: r, @@ -79049,10 +79090,10 @@ function gVe(e) { height: i - r }; } -function vVe(e, t, r) { +function TVe(e, t, r) { if ( // Check active - !(!e._brushType || yVe(e, t.offsetX, t.offsetY)) + !(!e._brushType || MVe(e, t.offsetX, t.offsetY)) ) { var n = e._zr, i = e._covers, o = lO(e, t, r); if (!e._dragging) @@ -79071,17 +79112,17 @@ function kM(e) { function $M(e, t, r) { return e.childOfName("main").contain(t, r); } -function kQ(e, t, r, n) { +function VQ(e, t, r, n) { var i = e._creatingCover, o = e._creatingPanel, a = e._brushOption, s; - if (e._track.push(r.slice()), dVe(e) || i) { + if (e._track.push(r.slice()), wVe(e) || i) { if (o && !i) { a.brushMode === "single" && LM(e); var l = _t(a); - l.brushType = X6(l.brushType, o), l.panelId = o === Fd ? null : o.panelId, i = e._creatingCover = TQ(e, l), e._covers.push(i); + l.brushType = Q6(l.brushType, o), l.panelId = o === Fd ? null : o.panelId, i = e._creatingCover = DQ(e, l), e._covers.push(i); } if (i) { - var c = u1[X6(e._brushType, o)], u = i.__brushOption; - u.range = c.getCreatingRange(uO(e, i, e._track)), n && (_Q(e, i), c.updateCommon(e, i)), MQ(e, i), s = { + var c = u1[Q6(e._brushType, o)], u = i.__brushOption; + u.range = c.getCreatingRange(uO(e, i, e._track)), n && (IQ(e, i), c.updateCommon(e, i)), AQ(e, i), s = { isEnd: n }; } @@ -79091,13 +79132,13 @@ function kQ(e, t, r, n) { }); return s; } -function X6(e, t) { - return e === "auto" ? (process.env.NODE_ENV !== "production" && xt(t && t.defaultBrushType, 'MUST have defaultBrushType when brushType is "atuo"'), t.defaultBrushType) : e; +function Q6(e, t) { + return e === "auto" ? (process.env.NODE_ENV !== "production" && Et(t && t.defaultBrushType, 'MUST have defaultBrushType when brushType is "atuo"'), t.defaultBrushType) : e; } -var mVe = { +var _Ve = { mousedown: function(e) { if (this._dragging) - Z6(this, e); + J6(this, e); else if (!e.target || !e.target.draggable) { kM(e); var t = this.group.transformCoordToLocal(e.offsetX, e.offsetY); @@ -79108,46 +79149,46 @@ var mVe = { }, mousemove: function(e) { var t = e.offsetX, r = e.offsetY, n = this.group.transformCoordToLocal(t, r); - if (vVe(this, e, n), this._dragging) { + if (TVe(this, e, n), this._dragging) { kM(e); - var i = kQ(this, e, n, !1); + var i = VQ(this, e, n, !1); i && Nd(this, i); } }, mouseup: function(e) { - Z6(this, e); + J6(this, e); } }; -function Z6(e, t) { +function J6(e, t) { if (e._dragging) { kM(t); - var r = t.offsetX, n = t.offsetY, i = e.group.transformCoordToLocal(r, n), o = kQ(e, t, i, !0); + var r = t.offsetX, n = t.offsetY, i = e.group.transformCoordToLocal(r, n), o = VQ(e, t, i, !0); e._dragging = !1, e._track = [], e._creatingCover = null, o && Nd(e, o); } } -function yVe(e, t, r) { +function MVe(e, t, r) { var n = e._zr; return t < 0 || t > n.getWidth() || r < 0 || r > n.getHeight(); } var u1 = { - lineX: Q6(0), - lineY: Q6(1), + lineX: e3(0), + lineY: e3(1), rect: { createCover: function(e, t) { function r(n) { return n; } - return OQ({ + return NQ({ toRectRange: r, fromRectRange: r }, e, t, [["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]]); }, getCreatingRange: function(e) { - var t = AQ(e); - return FQ(t[1][0], t[1][1], t[0][0], t[0][1]); + var t = FQ(e); + return $Q(t[1][0], t[1][1], t[0][0], t[0][1]); }, updateCoverShape: function(e, t, r, n) { - LQ(e, t, r, n); + kQ(e, t, r, n); }, updateCommon: FM, contain: $M @@ -79168,7 +79209,7 @@ var u1 = { t.remove(t.childAt(0)), t.add(new oo({ name: "main", draggable: !0, - drift: Vt(pVe, e, t), + drift: Vt(RVe, e, t), ondragend: Vt(Nd, e, { isEnd: !0 }) @@ -79183,10 +79224,10 @@ var u1 = { contain: $M } }; -function Q6(e) { +function e3(e) { return { createCover: function(t, r) { - return OQ({ + return NQ({ toRectRange: function(n) { var i = [n, [0, 100]]; return e && i.reverse(), i; @@ -79197,11 +79238,11 @@ function Q6(e) { }, t, r, [[["w"], ["e"]], [["n"], ["s"]]][e]); }, getCreatingRange: function(t) { - var r = AQ(t), n = um(r[0][e], r[1][e]), i = zf(r[0][e], r[1][e]); + var r = FQ(t), n = hm(r[0][e], r[1][e]), i = Wf(r[0][e], r[1][e]); return [n, i]; }, updateCoverShape: function(t, r, n, i) { - var o, a = IQ(t, r); + var o, a = LQ(t, r); if (a !== Fd && a.getLinearBrushOtherExtent) o = a.getLinearBrushOtherExtent(e); else { @@ -79209,33 +79250,33 @@ function Q6(e) { o = [0, [s.getWidth(), s.getHeight()][1 - e]]; } var l = [n, o]; - e && l.reverse(), LQ(t, r, l, i); + e && l.reverse(), kQ(t, r, l, i); }, updateCommon: FM, contain: $M }; } -function $Q(e) { +function HQ(e) { return e = dO(e), function(t) { - return X2(t, e); + return XI(t, e); }; } -function BQ(e, t) { +function zQ(e, t) { return e = dO(e), function(r) { var n = t ?? r, i = n ? e.width : e.height, o = n ? e.x : e.y; return [o, o + (i || 0)]; }; } -function VQ(e, t, r) { +function GQ(e, t, r) { var n = dO(e); return function(i, o) { return n.contain(o[0], o[1]) && !a1(i, t, r); }; } function dO(e) { - return Kt.create(e); + return Yt.create(e); } -var CVe = ["axisLine", "axisTickLabel", "axisName"], SVe = ( +var DVe = ["axisLine", "axisTickLabel", "axisName"], IVe = ( /** @class */ function(e) { Se(t, e); @@ -79246,18 +79287,18 @@ var CVe = ["axisLine", "axisTickLabel", "axisName"], SVe = ( return t.prototype.init = function(r, n) { e.prototype.init.apply(this, arguments), (this._brushController = new oO(n.getZr())).on("brush", at(this._onBrush, this)); }, t.prototype.render = function(r, n, i, o) { - if (!bVe(r, n, o)) { + if (!AVe(r, n, o)) { this.axisModel = r, this.api = i, this.group.removeAll(); var a = this._axisGroup; if (this._axisGroup = new Ot(), this.group.add(this._axisGroup), !!r.get("show")) { - var s = xVe(r, n), l = s.coordinateSystem, c = r.getAreaSelectStyle(), u = c.width, d = r.axis.dim, h = l.getAxisLayout(d), f = Pe({ + var s = LVe(r, n), l = s.coordinateSystem, c = r.getAreaSelectStyle(), u = c.width, d = r.axis.dim, h = l.getAxisLayout(d), f = Pe({ strokeContainThreshold: u }, h), p = new Qi(r, f); - z(CVe, p.add, p), this._axisGroup.add(p.getGroup()), this._refreshBrushController(f, c, r, s, u, i), ey(a, this._axisGroup, r); + z(DVe, p.add, p), this._axisGroup.add(p.getGroup()), this._refreshBrushController(f, c, r, s, u, i), ny(a, this._axisGroup, r); } } }, t.prototype._refreshBrushController = function(r, n, i, o, a, s) { - var l = i.axis.getExtent(), c = l[1] - l[0], u = Math.min(30, Math.abs(c) * 0.1), d = Kt.create({ + var l = i.axis.getExtent(), c = l[1] - l[0], u = Math.min(30, Math.abs(c) * 0.1), d = Yt.create({ x: l[0], y: -a / 2, width: c, @@ -79270,14 +79311,14 @@ var CVe = ["axisLine", "axisTickLabel", "axisName"], SVe = ( y: r.position[1] }).setPanels([{ panelId: "pl", - clipPath: $Q(d), - isTargetByCursor: VQ(d, s, o), - getLinearBrushOtherExtent: BQ(d, 0) + clipPath: HQ(d), + isTargetByCursor: GQ(d, s, o), + getLinearBrushOtherExtent: zQ(d, 0) }]).enableBrush({ brushType: "lineX", brushStyle: n, removeOnClick: !0 - }).updateCovers(wVe(i)); + }).updateCovers(OVe(i)); }, t.prototype._onBrush = function(r) { var n = r.areas, i = this.axisModel, o = i.axis, a = Fe(n, function(s) { return [o.coordToData(s.range[0], !0), o.coordToData(s.range[1], !0)]; @@ -79292,13 +79333,13 @@ var CVe = ["axisLine", "axisTickLabel", "axisName"], SVe = ( }, t.type = "parallelAxis", t; }(sn) ); -function bVe(e, t, r) { +function AVe(e, t, r) { return r && r.type === "axisAreaSelect" && t.findComponents({ mainType: "parallelAxis", query: r })[0] === e; } -function wVe(e) { +function OVe(e) { var t = e.axis; return Fe(e.activeIntervals, function(r) { return { @@ -79308,16 +79349,16 @@ function wVe(e) { }; }); } -function xVe(e, t) { +function LVe(e, t) { return t.getComponent("parallel", e.get("parallelIndex")); } -var EVe = { +var FVe = { type: "axisAreaSelect", event: "axisAreaSelected" // update: 'updateVisual' }; -function RVe(e) { - e.registerAction(EVe, function(t, r) { +function NVe(e) { + e.registerAction(FVe, function(t, r) { r.eachComponent({ mainType: "parallelAxis", query: t @@ -79333,7 +79374,7 @@ function RVe(e) { }); }); } -var PVe = { +var kVe = { type: "value", areaSelectStyle: { width: 20, @@ -79345,13 +79386,13 @@ var PVe = { realtime: !0, z: 10 }; -function HQ(e) { - e.registerComponentView(KBe), e.registerComponentModel(qBe), e.registerCoordinateSystem("parallel", nVe), e.registerPreprocessor(GBe), e.registerComponentModel(OM), e.registerComponentView(SVe), Hf(e, "parallel", OM, PVe), RVe(e); +function WQ(e) { + e.registerComponentView(iVe), e.registerComponentModel(aVe), e.registerCoordinateSystem("parallel", pVe), e.registerPreprocessor(eVe), e.registerComponentModel(OM), e.registerComponentView(IVe), Gf(e, "parallel", OM, kVe), NVe(e); } -function TVe(e) { - er(HQ), e.registerChartView(FBe), e.registerSeriesModel($Be), e.registerVisual(e.PRIORITY.VISUAL.BRUSH, zBe); +function $Ve(e) { + er(WQ), e.registerChartView(UBe), e.registerSeriesModel(qBe), e.registerVisual(e.PRIORITY.VISUAL.BRUSH, JBe); } -var _Ve = ( +var BVe = ( /** @class */ /* @__PURE__ */ function() { function e() { @@ -79359,7 +79400,7 @@ var _Ve = ( } return e; }() -), MVe = ( +), VVe = ( /** @class */ function(e) { Se(t, e); @@ -79367,17 +79408,17 @@ var _Ve = ( return e.call(this, r) || this; } return t.prototype.getDefaultShape = function() { - return new _Ve(); + return new BVe(); }, t.prototype.buildPath = function(r, n) { var i = n.extent; r.moveTo(n.x1, n.y1), r.bezierCurveTo(n.cpx1, n.cpy1, n.cpx2, n.cpy2, n.x2, n.y2), n.orient === "vertical" ? (r.lineTo(n.x2 + i, n.y2), r.bezierCurveTo(n.cpx2 + i, n.cpy2, n.cpx1 + i, n.cpy1, n.x1 + i, n.y1)) : (r.lineTo(n.x2, n.y2 + i), r.bezierCurveTo(n.cpx2, n.cpy2 + i, n.cpx1, n.cpy1 + i, n.x1, n.y1 + i)), r.closePath(); }, t.prototype.highlight = function() { - Vl(this); - }, t.prototype.downplay = function() { Hl(this); + }, t.prototype.downplay = function() { + zl(this); }, t; }(nr) -), DVe = ( +), HVe = ( /** @class */ function(e) { Se(t, e); @@ -79388,7 +79429,7 @@ var _Ve = ( return t.prototype.render = function(r, n, i) { var o = this, a = r.getGraph(), s = this.group, l = r.layoutInfo, c = l.width, u = l.height, d = r.getData(), h = r.getData("edge"), f = r.get("orient"); this._model = r, s.removeAll(), s.x = l.x, s.y = l.y, a.eachEdge(function(p) { - var g = new MVe(), v = Ft(g); + var g = new VVe(), v = Ft(g); v.dataIndex = p.dataIndex, v.seriesIndex = r.seriesIndex, v.dataType = "edge"; var m = p.getModel(), y = m.getModel("lineStyle"), C = y.get("curveness"), b = p.node1.getLayout(), w = p.node1.getModel(), x = w.get("localX"), E = w.get("localY"), R = p.node2.getLayout(), P = p.node2.getModel(), T = P.get("localX"), _ = P.get("localY"), D = p.getLayout(), A, M, O, L, N, F, $, I; g.shape.extent = Math.max(1, D.dy), g.shape.orient = f, f === "vertical" ? (A = (x != null ? x * c : b.x) + D.sy, M = (E != null ? E * u : b.y) + b.dy, O = (T != null ? T * c : R.x) + D.ty, L = _ != null ? _ * u : R.y, N = A, F = M * (1 - C) + L * C, $ = O, I = M * C + L * (1 - C)) : (A = (x != null ? x * c : b.x) + b.dx, M = (E != null ? E * u : b.y) + D.sy, O = T != null ? T * c : R.x, L = (_ != null ? _ * u : R.y) + D.ty, N = A * (1 - C) + O * C, F = M, $ = A * C + O * (1 - C), I = L), g.setShape({ @@ -79400,11 +79441,11 @@ var _Ve = ( cpy1: F, cpx2: $, cpy2: I - }), g.useStyle(y.getItemStyle()), J6(g.style, f, p); - var V = "" + m.get("value"), H = li(m, "edgeLabel"); - Ri(g, H, { + }), g.useStyle(y.getItemStyle()), t3(g.style, f, p); + var V = "" + m.get("value"), H = ci(m, "edgeLabel"); + Pi(g, H, { labelFetcher: { - getFormattedLabel: function(j, X, q, J, te, Q) { + getFormattedLabel: function(j, X, q, J, re, Q) { return r.getFormattedLabel( j, X, @@ -79412,7 +79453,7 @@ var _Ve = ( J, // ensure edgeLabel formatter is provided // to prevent the inheritance from `label.formatter` of the series - Go(te, H.normal && H.normal.get("formatter"), V), + Go(re, H.normal && H.normal.get("formatter"), V), Q ); } @@ -79423,9 +79464,9 @@ var _Ve = ( position: "inside" }); var B = m.getModel("emphasis"); - Ei(g, m, "lineStyle", function(j) { + Ri(g, m, "lineStyle", function(j) { var X = j.getItemStyle(); - return J6(X, f, p), X; + return t3(X, f, p), X; }), s.add(g), h.setItemGraphicEl(p.dataIndex, g); var W = B.get("focus"); Rn(g, W === "adjacency" ? p.getAdjacentDataIndices() : W === "trajectory" ? p.getTrajectoryDataIndices() : W, B.get("blurScope"), B.get("disabled")); @@ -79441,7 +79482,7 @@ var _Ve = ( style: v.getModel("itemStyle").getItemStyle(), z2: 10 }); - Ri(w, li(v), { + Pi(w, ci(v), { labelFetcher: { getFormattedLabel: function(E, R) { return r.getFormattedLabel(E, R, "node"); @@ -79449,7 +79490,7 @@ var _Ve = ( }, labelDataIndex: p.dataIndex, defaultText: p.id - }), w.disableLabelAnimation = !0, w.setStyle("fill", p.getVisual("color")), w.setStyle("decal", p.getVisual("style").decal), Ei(w, v), s.add(w), d.setItemGraphicEl(p.dataIndex, w), Ft(w).dataType = "node"; + }), w.disableLabelAnimation = !0, w.setStyle("fill", p.getVisual("color")), w.setStyle("decal", p.getVisual("style").decal), Ri(w, v), s.add(w), d.setItemGraphicEl(p.dataIndex, w), Ft(w).dataType = "node"; var x = C.get("focus"); Rn(w, x === "adjacency" ? p.getAdjacentDataIndices() : x === "trajectory" ? p.getTrajectoryDataIndices() : x, C.get("blurScope"), C.get("disabled")); }), d.eachItemGraphicEl(function(p, g) { @@ -79465,14 +79506,14 @@ var _Ve = ( }, p.ondragend = function() { o._focusAdjacencyDisabled = !1; }, p.draggable = !0, p.cursor = "move"); - }), !this._data && r.isAnimationEnabled() && s.setClipPath(IVe(s.getBoundingRect(), r, function() { + }), !this._data && r.isAnimationEnabled() && s.setClipPath(zVe(s.getBoundingRect(), r, function() { s.removeClipPath(); })), this._data = r.getData(); }, t.prototype.dispose = function() { }, t.type = "sankey", t; }($r) ); -function J6(e, t, r) { +function t3(e, t, r) { switch (e.fill) { case "source": e.fill = r.node1.getVisual("color"), e.decal = r.node1.getVisual("style").decal; @@ -79482,7 +79523,7 @@ function J6(e, t, r) { break; case "gradient": var n = r.node1.getVisual("color"), i = r.node2.getVisual("color"); - Je(n) && Je(i) && (e.fill = new hp(0, 0, +(t === "horizontal"), +(t === "vertical"), [{ + Je(n) && Je(i) && (e.fill = new pp(0, 0, +(t === "horizontal"), +(t === "vertical"), [{ color: n, offset: 0 }, { @@ -79491,7 +79532,7 @@ function J6(e, t, r) { }])); } } -function IVe(e, t, r) { +function zVe(e, t, r) { var n = new mr({ shape: { x: e.x - 10, @@ -79506,7 +79547,7 @@ function IVe(e, t, r) { } }, t, r), n; } -var AVe = ( +var GVe = ( /** @class */ function(e) { Se(t, e); @@ -79523,7 +79564,7 @@ var AVe = ( else if (process.env.NODE_ENV !== "production") throw new Error("levels[i].depth is mandatory and should be natural number"); if (o && i) { - var c = xQ(o, i, this, !0, u); + var c = PQ(o, i, this, !0, u); return c.data; } function u(d, h) { @@ -79556,14 +79597,14 @@ var AVe = ( } if (i === "edge") { var a = this.getDataParams(r, i), s = a.data, l = a.value, c = s.source + " -- " + s.target; - return ci("nameValue", { + return ui("nameValue", { name: c, value: l, noValue: o(l) }); } else { var u = this.getGraph().getNodeByIndex(r), d = u.getLayout().value, h = this.getDataParams(r, i).data.name; - return ci("nameValue", { + return ui("nameValue", { name: h != null ? h + "" : null, value: d, noValue: o(d) @@ -79624,36 +79665,36 @@ var AVe = ( }, t; }(jr) ); -function OVe(e, t) { +function WVe(e, t) { e.eachSeriesByType("sankey", function(r) { - var n = r.get("nodeWidth"), i = r.get("nodeGap"), o = LVe(r, t); + var n = r.get("nodeWidth"), i = r.get("nodeGap"), o = jVe(r, t); r.layoutInfo = o; var a = o.width, s = o.height, l = r.getGraph(), c = l.nodes, u = l.edges; - NVe(c); - var d = Fr(c, function(g) { + KVe(c); + var d = Nr(c, function(g) { return g.getLayout().value === 0; }), h = d.length !== 0 ? 0 : r.get("layoutIterations"), f = r.get("orient"), p = r.get("nodeAlign"); - FVe(c, u, n, i, a, s, h, f, p); + UVe(c, u, n, i, a, s, h, f, p); }); } -function LVe(e, t) { +function jVe(e, t) { return jn(e.getBoxLayoutParams(), { width: t.getWidth(), height: t.getHeight() }); } -function FVe(e, t, r, n, i, o, a, s, l) { - kVe(e, t, r, i, o, s, l), HVe(e, t, o, i, n, a, s), XVe(e, s); +function UVe(e, t, r, n, i, o, a, s, l) { + YVe(e, t, r, i, o, s, l), QVe(e, t, o, i, n, a, s), s6e(e, s); } -function NVe(e) { +function KVe(e) { z(e, function(t) { - var r = Ac(t.outEdges, ob), n = Ac(t.inEdges, ob), i = t.getValue() || 0, o = Math.max(r, n, i); + var r = Ac(t.outEdges, sb), n = Ac(t.inEdges, sb), i = t.getValue() || 0, o = Math.max(r, n, i); t.setLayout({ value: o }, !0); }); } -function kVe(e, t, r, n, i, o, a) { +function YVe(e, t, r, n, i, o, a) { for (var s = [], l = [], c = [], u = [], d = 0, h = 0; h < t.length; h++) s[h] = 1; for (var h = 0; h < e.length; h++) @@ -79681,15 +79722,15 @@ function kVe(e, t, r, n, i, o, a) { if (s[h] === 1) throw new Error("Sankey is a DAG, the original data has cycle!"); var E = f > d - 1 ? f : d - 1; - a && a !== "left" && $Ve(e, a, o, E); + a && a !== "left" && qVe(e, a, o, E); var R = o === "vertical" ? (i - r) / E : (n - r) / E; - VVe(e, R, o); + ZVe(e, R, o); } -function zQ(e) { +function jQ(e) { var t = e.hostGraph.data.getRawDataItem(e.dataIndex); return t.depth != null && t.depth >= 0; } -function $Ve(e, t, r, n) { +function qVe(e, t, r, n) { if (t === "right") { for (var i = [], o = e, a = 0; o.length; ) { for (var s = 0; s < o.length; s++) { @@ -79705,20 +79746,20 @@ function $Ve(e, t, r, n) { o = i, i = [], ++a; } z(e, function(d) { - zQ(d) || d.setLayout({ + jQ(d) || d.setLayout({ depth: Math.max(0, n - d.getLayout().skNodeHeight) }, !0); }); - } else t === "justify" && BVe(e, n); + } else t === "justify" && XVe(e, n); } -function BVe(e, t) { +function XVe(e, t) { z(e, function(r) { - !zQ(r) && !r.outEdges.length && r.setLayout({ + !jQ(r) && !r.outEdges.length && r.setLayout({ depth: t }, !0); }); } -function VVe(e, t, r) { +function ZVe(e, t, r) { z(e, function(n) { var i = n.getLayout().depth * t; r === "vertical" ? n.setLayout({ @@ -79728,13 +79769,13 @@ function VVe(e, t, r) { }, !0); }); } -function HVe(e, t, r, n, i, o, a) { - var s = zVe(e, a); - GVe(s, t, r, n, i, a), ER(s, i, r, n, a); +function QVe(e, t, r, n, i, o, a) { + var s = JVe(e, a); + e6e(s, t, r, n, i, a), ER(s, i, r, n, a); for (var l = 1; o > 0; o--) - l *= 0.99, WVe(s, l, a), ER(s, i, r, n, a), qVe(s, l, a), ER(s, i, r, n, a); + l *= 0.99, t6e(s, l, a), ER(s, i, r, n, a), a6e(s, l, a), ER(s, i, r, n, a); } -function zVe(e, t) { +function JVe(e, t) { var r = [], n = t === "vertical" ? "y" : "x", i = $_(e, function(o) { return o.getLayout()[n]; }); @@ -79744,7 +79785,7 @@ function zVe(e, t) { r.push(i.buckets.get(o)); }), r; } -function GVe(e, t, r, n, i, o) { +function e6e(e, t, r, n, i, o) { var a = 1 / 0; z(e, function(s) { var l = s.length, c = 0; @@ -79801,14 +79842,14 @@ function ER(e, t, r, n, i) { } }); } -function WVe(e, t, r) { +function t6e(e, t, r) { z(e.slice().reverse(), function(n) { z(n, function(i) { if (i.outEdges.length) { - var o = Ac(i.outEdges, jVe, r) / Ac(i.outEdges, ob); + var o = Ac(i.outEdges, r6e, r) / Ac(i.outEdges, sb); if (isNaN(o)) { var a = i.outEdges.length; - o = a ? Ac(i.outEdges, UVe, r) / a : 0; + o = a ? Ac(i.outEdges, n6e, r) / a : 0; } if (r === "vertical") { var s = i.getLayout().x + (o - Kc(i, r)) * t; @@ -79825,22 +79866,22 @@ function WVe(e, t, r) { }); }); } -function jVe(e, t) { +function r6e(e, t) { return Kc(e.node2, t) * e.getValue(); } -function UVe(e, t) { +function n6e(e, t) { return Kc(e.node2, t); } -function KVe(e, t) { +function i6e(e, t) { return Kc(e.node1, t) * e.getValue(); } -function YVe(e, t) { +function o6e(e, t) { return Kc(e.node1, t); } function Kc(e, t) { return t === "vertical" ? e.getLayout().x + e.getLayout().dx / 2 : e.getLayout().y + e.getLayout().dy / 2; } -function ob(e) { +function sb(e) { return e.getValue(); } function Ac(e, t, r) { @@ -79850,14 +79891,14 @@ function Ac(e, t, r) { } return n; } -function qVe(e, t, r) { +function a6e(e, t, r) { z(e, function(n) { z(n, function(i) { if (i.inEdges.length) { - var o = Ac(i.inEdges, KVe, r) / Ac(i.inEdges, ob); + var o = Ac(i.inEdges, i6e, r) / Ac(i.inEdges, sb); if (isNaN(o)) { var a = i.inEdges.length; - o = a ? Ac(i.inEdges, YVe, r) / a : 0; + o = a ? Ac(i.inEdges, o6e, r) / a : 0; } if (r === "vertical") { var s = i.getLayout().x + (o - Kc(i, r)) * t; @@ -79874,7 +79915,7 @@ function qVe(e, t, r) { }); }); } -function XVe(e, t) { +function s6e(e, t) { var r = t === "vertical" ? "x" : "y"; z(e, function(n) { n.outEdges.sort(function(i, o) { @@ -79895,7 +79936,7 @@ function XVe(e, t) { }); }); } -function ZVe(e) { +function l6e(e) { e.eachSeriesByType("sankey", function(t) { var r = t.getGraph(), n = r.nodes, i = r.edges; if (n.length) { @@ -79923,8 +79964,8 @@ function ZVe(e) { }); }); } -function QVe(e) { - e.registerChartView(DVe), e.registerSeriesModel(AVe), e.registerLayout(OVe), e.registerVisual(ZVe), e.registerAction({ +function c6e(e) { + e.registerChartView(HVe), e.registerSeriesModel(GVe), e.registerLayout(WVe), e.registerVisual(l6e), e.registerAction({ type: "dragNode", event: "dragnode", // here can only use 'update' now, other value is not support in echarts. @@ -79939,7 +79980,7 @@ function QVe(e) { }); }); } -var GQ = ( +var UQ = ( /** @class */ function() { function e() { @@ -79952,12 +79993,12 @@ var GQ = ( var m = []; z(v, function(b, w) { var x; - Ie(b) ? (x = b.slice(), b.unshift(w)) : Ie(b.value) ? (x = Pe({}, b), x.value = x.value.slice(), b.value.unshift(w)) : x = b, m.push(x); + Ae(b) ? (x = b.slice(), b.unshift(w)) : Ae(b.value) ? (x = Pe({}, b), x.value = x.value.slice(), b.value.unshift(w)) : x = b, m.push(x); }), t.data = m; } var y = this.defaultValueDimensions, C = [{ name: d, - type: YS(p), + type: XS(p), ordinalMeta: n, otherDims: { tooltip: !1, @@ -79966,20 +80007,20 @@ var GQ = ( dimsDef: ["base"] }, { name: h, - type: YS(g), + type: XS(g), dimsDef: y.slice() }]; - return Pp(this, { + return _p(this, { coordDimensions: C, dimensionsCount: y.length + 1, - encodeDefaulter: Vt(yq, C, this) + encodeDefaulter: Vt(bq, C, this) }); }, e.prototype.getBaseAxis = function() { var t = this._baseAxisDim; return this.ecModel.getComponent(t + "Axis", this.get(t + "AxisIndex")).axis; }, e; }() -), WQ = ( +), KQ = ( /** @class */ function(e) { Se(t, e); @@ -80027,8 +80068,8 @@ var GQ = ( }, t; }(jr) ); -In(WQ, GQ, !0); -var JVe = ( +In(KQ, UQ, !0); +var u6e = ( /** @class */ function(e) { Se(t, e); @@ -80042,7 +80083,7 @@ var JVe = ( var l = r.get("layout") === "horizontal" ? 1 : 0; o.diff(s).add(function(c) { if (o.hasValue(c)) { - var u = o.getItemLayout(c), d = eH(u, o, c, l, !0); + var u = o.getItemLayout(c), d = r3(u, o, c, l, !0); o.setItemGraphicEl(c, d), a.add(d); } }).update(function(c, u) { @@ -80052,7 +80093,7 @@ var JVe = ( return; } var h = o.getItemLayout(c); - d ? (ls(d), jQ(h, d, o, c)) : d = eH(h, o, c, l), a.add(d), o.setItemGraphicEl(c, d); + d ? (ls(d), YQ(h, d, o, c)) : d = r3(h, o, c, l), a.add(d), o.setItemGraphicEl(c, d); }).remove(function(c) { var u = s.getItemGraphicEl(c); u && a.remove(u); @@ -80064,14 +80105,14 @@ var JVe = ( }); }, t.type = "boxplot", t; }($r) -), e6e = ( +), d6e = ( /** @class */ /* @__PURE__ */ function() { function e() { } return e; }() -), t6e = ( +), h6e = ( /** @class */ function(e) { Se(t, e); @@ -80080,7 +80121,7 @@ var JVe = ( return n.type = "boxplotBoxPath", n; } return t.prototype.getDefaultShape = function() { - return new e6e(); + return new d6e(); }, t.prototype.buildPath = function(r, n) { var i = n.points, o = 0; for (r.moveTo(i[o][0], i[o][1]), o++; o < 4; o++) @@ -80090,15 +80131,15 @@ var JVe = ( }, t; }(nr) ); -function eH(e, t, r, n, i) { - var o = e.ends, a = new t6e({ +function r3(e, t, r, n, i) { + var o = e.ends, a = new h6e({ shape: { - points: i ? r6e(o, n, e) : o + points: i ? f6e(o, n, e) : o } }); - return jQ(e, a, t, r, i), a; + return YQ(e, a, t, r, i), a; } -function jQ(e, t, r, n, i) { +function YQ(e, t, r, n, i) { var o = r.hostModel, a = Kd[i ? "initProps" : "updateProps"]; a(t, { shape: { @@ -80106,55 +80147,55 @@ function jQ(e, t, r, n, i) { } }, o, n), t.useStyle(r.getItemVisual(n, "style")), t.style.strokeNoScale = !0, t.z2 = 100; var s = r.getItemModel(n), l = s.getModel("emphasis"); - Ei(t, s), Rn(t, l.get("focus"), l.get("blurScope"), l.get("disabled")); + Ri(t, s), Rn(t, l.get("focus"), l.get("blurScope"), l.get("disabled")); } -function r6e(e, t, r) { +function f6e(e, t, r) { return Fe(e, function(n) { return n = n.slice(), n[t] = r.initBaseline, n; }); } -var dv = z; -function n6e(e) { - var t = i6e(e); - dv(t, function(r) { +var fv = z; +function p6e(e) { + var t = g6e(e); + fv(t, function(r) { var n = r.seriesModels; - n.length && (o6e(r), dv(n, function(i, o) { - a6e(i, r.boxOffsetList[o], r.boxWidthList[o]); + n.length && (v6e(r), fv(n, function(i, o) { + m6e(i, r.boxOffsetList[o], r.boxWidthList[o]); })); }); } -function i6e(e) { +function g6e(e) { var t = [], r = []; return e.eachSeriesByType("boxplot", function(n) { - var i = n.getBaseAxis(), o = Yt(r, i); + var i = n.getBaseAxis(), o = qt(r, i); o < 0 && (o = r.length, r[o] = i, t[o] = { axis: i, seriesModels: [] }), t[o].seriesModels.push(n); }), t; } -function o6e(e) { +function v6e(e) { var t = e.axis, r = e.seriesModels, n = r.length, i = e.boxWidthList = [], o = e.boxOffsetList = [], a = [], s; if (t.type === "category") s = t.getBandWidth(); else { var l = 0; - dv(r, function(p) { + fv(r, function(p) { l = Math.max(l, p.getData().count()); }); var c = t.getExtent(); s = Math.abs(c[1] - c[0]) / l; } - dv(r, function(p) { + fv(r, function(p) { var g = p.get("boxWidth"); - Ie(g) || (g = [g, g]), a.push([Ze(g[0], s) || 0, Ze(g[1], s) || 0]); + Ae(g) || (g = [g, g]), a.push([Ze(g[0], s) || 0, Ze(g[1], s) || 0]); }); var u = s * 0.8 - 2, d = u / n * 0.3, h = (u - d * (n - 1)) / n, f = h / 2 - u / 2; - dv(r, function(p, g) { + fv(r, function(p, g) { o.push(f), f += d + h, i.push(Math.min(Math.max(h, a[g][0]), a[g][1])); }); } -function a6e(e, t, r) { +function m6e(e, t, r) { var n = e.coordinateSystem, i = e.getData(), o = r / 2, a = e.get("layout") === "horizontal" ? 0 : 1, s = 1 - a, l = ["x", "y"], c = i.mapDimension(l[a]), u = i.mapDimensionsAll(l[s]); if (c == null || u.length < 5) return; @@ -80180,10 +80221,10 @@ function a6e(e, t, r) { R[a] -= o, P[a] += o, x.push(R, P); } } -function s6e(e, t) { +function y6e(e, t) { t = t || {}; for (var r = [], n = [], i = t.boundIQR, o = i === "none" || i === 0, a = 0; a < e.length; a++) { - var s = Vo(e[a].slice()), l = xC(s, 0.25), c = xC(s, 0.5), u = xC(s, 0.75), d = s[0], h = s[s.length - 1], f = (i ?? 1.5) * (u - l), p = o ? d : Math.max(d, l - f), g = o ? h : Math.min(h, u + f), v = t.itemNameFormatter, m = vt(v) ? v({ + var s = Vo(e[a].slice()), l = PC(s, 0.25), c = PC(s, 0.5), u = PC(s, 0.75), d = s[0], h = s[s.length - 1], f = (i ?? 1.5) * (u - l), p = o ? d : Math.max(d, l - f), g = o ? h : Math.min(h, u + f), v = t.itemNameFormatter, m = mt(v) ? v({ value: a }) : Je(v) ? v.replace("{value}", a + "") : a + ""; r.push([m, p, l, c, u, g]); @@ -80200,7 +80241,7 @@ function s6e(e, t) { outliers: n }; } -var l6e = { +var C6e = { type: "echarts:boxplot", transform: function(t) { var r = t.upstream; @@ -80208,7 +80249,7 @@ var l6e = { var n = ""; process.env.NODE_ENV !== "production" && (n = ro("source data is not applicable for this boxplot transform. Expect number[][].")), Ir(n); } - var i = s6e(r.getRawData(), t.config); + var i = y6e(r.getRawData(), t.config); return [{ dimensions: ["ItemName", "Low", "Q1", "Q2", "Q3", "High"], data: i.boxData @@ -80217,10 +80258,10 @@ var l6e = { }]; } }; -function c6e(e) { - e.registerSeriesModel(WQ), e.registerChartView(JVe), e.registerLayout(n6e), e.registerTransform(l6e); +function S6e(e) { + e.registerSeriesModel(KQ), e.registerChartView(u6e), e.registerLayout(p6e), e.registerTransform(C6e); } -var u6e = ["color", "borderColor"], d6e = ( +var b6e = ["color", "borderColor"], w6e = ( /** @class */ function(e) { Se(t, e); @@ -80244,7 +80285,7 @@ var u6e = ["color", "borderColor"], d6e = ( this._data || o.removeAll(), n.diff(i).add(function(u) { if (n.hasValue(u)) { var d = n.getItemLayout(u); - if (s && tH(c, d)) + if (s && n3(c, d)) return; var h = RR(d, u, !0); un(h, { @@ -80260,7 +80301,7 @@ var u6e = ["color", "borderColor"], d6e = ( return; } var f = n.getItemLayout(u); - if (s && tH(c, f)) { + if (s && n3(c, f)) { o.remove(h); return; } @@ -80274,8 +80315,8 @@ var u6e = ["color", "borderColor"], d6e = ( d && o.remove(d); }).execute(), this._data = n; }, t.prototype._renderLarge = function(r) { - this._clear(), rH(r, this.group); - var n = r.get("clip", !0) ? ay(r.coordinateSystem, !1, r) : null; + this._clear(), i3(r, this.group); + var n = r.get("clip", !0) ? cy(r.coordinateSystem, !1, r) : null; n ? this.group.setClipPath(n) : this.group.removeClipPath(); }, t.prototype._incrementalRenderNormal = function(r, n) { for (var i = n.getData(), o = i.getLayout("isSimpleBox"), a; (a = r.next()) != null; ) { @@ -80283,21 +80324,21 @@ var u6e = ["color", "borderColor"], d6e = ( PR(l, i, a, o), l.incremental = !0, this.group.add(l), this._progressiveEls.push(l); } }, t.prototype._incrementalRenderLarge = function(r, n) { - rH(n, this.group, this._progressiveEls, !0); + i3(n, this.group, this._progressiveEls, !0); }, t.prototype.remove = function(r) { this._clear(); }, t.prototype._clear = function() { this.group.removeAll(), this._data = null; }, t.type = "candlestick", t; }($r) -), h6e = ( +), x6e = ( /** @class */ /* @__PURE__ */ function() { function e() { } return e; }() -), f6e = ( +), E6e = ( /** @class */ function(e) { Se(t, e); @@ -80306,7 +80347,7 @@ var u6e = ["color", "borderColor"], d6e = ( return n.type = "normalCandlestickBox", n; } return t.prototype.getDefaultShape = function() { - return new h6e(); + return new x6e(); }, t.prototype.buildPath = function(r, n) { var i = n.points; this.__simpleBox ? (r.moveTo(i[4][0], i[4][1]), r.lineTo(i[6][0], i[6][1])) : (r.moveTo(i[0][0], i[0][1]), r.lineTo(i[1][0], i[1][1]), r.lineTo(i[2][0], i[2][1]), r.lineTo(i[3][0], i[3][1]), r.closePath(), r.moveTo(i[4][0], i[4][1]), r.lineTo(i[5][0], i[5][1]), r.moveTo(i[6][0], i[6][1]), r.lineTo(i[7][0], i[7][1])); @@ -80315,14 +80356,14 @@ var u6e = ["color", "borderColor"], d6e = ( ); function RR(e, t, r) { var n = e.ends; - return new f6e({ + return new E6e({ shape: { - points: r ? p6e(n, e) : n + points: r ? R6e(n, e) : n }, z2: 100 }); } -function tH(e, t) { +function n3(e, t) { for (var r = !0, n = 0; n < t.ends.length; n++) if (e.contain(t.ends[n][0], t.ends[n][1])) { r = !1; @@ -80332,14 +80373,14 @@ function tH(e, t) { } function PR(e, t, r, n) { var i = t.getItemModel(r); - e.useStyle(t.getItemVisual(r, "style")), e.style.strokeNoScale = !0, e.__simpleBox = n, Ei(e, i); + e.useStyle(t.getItemVisual(r, "style")), e.style.strokeNoScale = !0, e.__simpleBox = n, Ri(e, i); } -function p6e(e, t) { +function R6e(e, t) { return Fe(e, function(r) { return r = r.slice(), r[1] = t.initBaseline, r; }); } -var g6e = ( +var P6e = ( /** @class */ /* @__PURE__ */ function() { function e() { @@ -80355,7 +80396,7 @@ var g6e = ( return n.type = "largeCandlestickBox", n; } return t.prototype.getDefaultShape = function() { - return new g6e(); + return new P6e(); }, t.prototype.buildPath = function(r, n) { for (var i = n.points, o = 0; o < i.length; ) if (this.__sign === i[o++]) { @@ -80366,7 +80407,7 @@ var g6e = ( }, t; }(nr) ); -function rH(e, t, r, n) { +function i3(e, t, r, n) { var i = e.getData(), o = i.getLayout("largePoints"), a = new TR({ shape: { points: o @@ -80395,10 +80436,10 @@ function rH(e, t, r, n) { function _R(e, t, r, n) { var i = r.get(["itemStyle", e > 0 ? "borderColor" : "borderColor0"]) || r.get(["itemStyle", e > 0 ? "color" : "color0"]); e === 0 && (i = r.get(["itemStyle", "borderColorDoji"])); - var o = r.getModel("itemStyle").getItemStyle(u6e); + var o = r.getModel("itemStyle").getItemStyle(b6e); t.useStyle(o), t.style.fill = null, t.style.stroke = i; } -var UQ = ( +var qQ = ( /** @class */ function(e) { Se(t, e); @@ -80461,23 +80502,23 @@ var UQ = ( }, t; }(jr) ); -In(UQ, GQ, !0); -function v6e(e) { - !e || !Ie(e.series) || z(e.series, function(t) { - St(t) && t.type === "k" && (t.type = "candlestick"); +In(qQ, UQ, !0); +function T6e(e) { + !e || !Ae(e.series) || z(e.series, function(t) { + bt(t) && t.type === "k" && (t.type = "candlestick"); }); } -var m6e = ["itemStyle", "borderColor"], y6e = ["itemStyle", "borderColor0"], C6e = ["itemStyle", "borderColorDoji"], S6e = ["itemStyle", "color"], b6e = ["itemStyle", "color0"], w6e = { +var _6e = ["itemStyle", "borderColor"], M6e = ["itemStyle", "borderColor0"], D6e = ["itemStyle", "borderColorDoji"], I6e = ["itemStyle", "color"], A6e = ["itemStyle", "color0"], O6e = { seriesType: "candlestick", - plan: Sp(), + plan: wp(), // For legend. performRawSeries: !0, reset: function(e, t) { function r(o, a) { - return a.get(o > 0 ? S6e : b6e); + return a.get(o > 0 ? I6e : A6e); } function n(o, a) { - return a.get(o === 0 ? C6e : o > 0 ? m6e : y6e); + return a.get(o === 0 ? D6e : o > 0 ? _6e : M6e); } if (!t.isSeriesFiltered(e)) { var i = e.pipelineContext.large; @@ -80493,11 +80534,11 @@ var m6e = ["itemStyle", "borderColor"], y6e = ["itemStyle", "borderColor0"], C6e }; } } -}, x6e = { +}, L6e = { seriesType: "candlestick", - plan: Sp(), + plan: wp(), reset: function(e) { - var t = e.coordinateSystem, r = e.getData(), n = E6e(e, r), i = 0, o = 1, a = ["x", "y"], s = r.getDimensionIndex(r.mapDimension(a[i])), l = Fe(r.mapDimensionsAll(a[o]), r.getDimensionIndex, r), c = l[0], u = l[1], d = l[2], h = l[3]; + var t = e.coordinateSystem, r = e.getData(), n = F6e(e, r), i = 0, o = 1, a = ["x", "y"], s = r.getDimensionIndex(r.mapDimension(a[i])), l = Fe(r.mapDimensionsAll(a[o]), r.getDimensionIndex, r), c = l[0], u = l[1], d = l[2], h = l[3]; if (r.setLayout({ candleWidth: n, // The value is experimented visually. @@ -80513,7 +80554,7 @@ var m6e = ["itemStyle", "borderColor"], y6e = ["itemStyle", "borderColor0"], C6e F(M, _, 0), F(M, T, 1), M.push(I(A), I(_), I(D), I(T)); var O = v.getItemModel(m), L = !!O.get(["itemStyle", "borderColorDoji"]); v.setItemLayout(m, { - sign: nH(y, m, b, w, u, L), + sign: o3(y, m, b, w, u, L), initBaseline: b > w ? _[o] : T[o], ends: M, brushRect: $(x, E, C) @@ -80525,7 +80566,7 @@ var m6e = ["itemStyle", "borderColor"], y6e = ["itemStyle", "borderColor0"], C6e } function F(V, H, B) { var W = H.slice(), j = H.slice(); - W[i] = PC(W[i] + n / 2, 1, !1), j[i] = PC(j[i] - n / 2, 1, !0), B ? V.push(W, j) : V.push(j, W); + W[i] = MC(W[i] + n / 2, 1, !1), j[i] = MC(j[i] - n / 2, 1, !0), B ? V.push(W, j) : V.push(j, W); } function $(V, H, B) { var W = N(V, B), j = N(H, B); @@ -80537,7 +80578,7 @@ var m6e = ["itemStyle", "borderColor"], y6e = ["itemStyle", "borderColor0"], C6e }; } function I(V) { - return V[i] = PC(V[i], 1), V; + return V[i] = MC(V[i], 1), V; } } function p(g, v) { @@ -80547,24 +80588,24 @@ var m6e = ["itemStyle", "borderColor"], y6e = ["itemStyle", "borderColor0"], C6e m[y++] = NaN, y += 3; continue; } - m[y++] = nH(E, x, T, _, u, R), b[i] = P, b[o] = D, C = t.dataToPoint(b, null, w), m[y++] = C ? C[0] : NaN, m[y++] = C ? C[1] : NaN, b[o] = A, C = t.dataToPoint(b, null, w), m[y++] = C ? C[1] : NaN; + m[y++] = o3(E, x, T, _, u, R), b[i] = P, b[o] = D, C = t.dataToPoint(b, null, w), m[y++] = C ? C[0] : NaN, m[y++] = C ? C[1] : NaN, b[o] = A, C = t.dataToPoint(b, null, w), m[y++] = C ? C[1] : NaN; } v.setLayout("largePoints", m); } } }; -function nH(e, t, r, n, i, o) { +function o3(e, t, r, n, i, o) { var a; return r > n ? a = -1 : r < n ? a = 1 : a = o ? 0 : t > 0 ? e.get(i, t - 1) <= n ? 1 : -1 : 1, a; } -function E6e(e, t) { +function F6e(e, t) { var r = e.getBaseAxis(), n, i = r.type === "category" ? r.getBandWidth() : (n = r.getExtent(), Math.abs(n[1] - n[0]) / t.count()), o = Ze($t(e.get("barMaxWidth"), i), i), a = Ze($t(e.get("barMinWidth"), 1), i), s = e.get("barWidth"); return s != null ? Ze(s, i) : Math.max(Math.min(i / 2, o), a); } -function R6e(e) { - e.registerChartView(d6e), e.registerSeriesModel(UQ), e.registerPreprocessor(v6e), e.registerVisual(w6e), e.registerLayout(x6e); +function N6e(e) { + e.registerChartView(w6e), e.registerSeriesModel(qQ), e.registerPreprocessor(T6e), e.registerVisual(O6e), e.registerLayout(L6e); } -function iH(e, t) { +function a3(e, t) { var r = t.rippleEffectColor || t.color; e.eachChild(function(n) { n.attr({ @@ -80577,12 +80618,12 @@ function iH(e, t) { }); }); } -var P6e = ( +var k6e = ( /** @class */ function(e) { Se(t, e); function t(r, n) { - var i = e.call(this) || this, o = new iy(r, n), a = new Ot(); + var i = e.call(this) || this, o = new sy(r, n), a = new Ot(); return i.add(o), i.add(a), i.updateData(r, n), i; } return t.prototype.stopEffectAnimation = function() { @@ -80607,7 +80648,7 @@ var P6e = ( opacity: 0 }).delay(c).start(), a.add(l); } - iH(a, r); + a3(a, r); }, t.prototype.updateEffectAnimation = function(r) { for (var n = this._effectCfg, i = this.childAt(1), o = ["symbolType", "period", "rippleScale", "rippleNumber"], a = 0; a < o.length; a++) { var s = o[a]; @@ -80616,18 +80657,18 @@ var P6e = ( return; } } - iH(i, r); + a3(i, r); }, t.prototype.highlight = function() { - Vl(this); - }, t.prototype.downplay = function() { Hl(this); + }, t.prototype.downplay = function() { + zl(this); }, t.prototype.getSymbolType = function() { var r = this.childAt(0); return r && r.getSymbolType(); }, t.prototype.updateData = function(r, n) { var i = this, o = r.hostModel; this.childAt(0).updateData(r, n); - var a = this.childAt(1), s = r.getItemModel(n), l = r.getItemVisual(n, "symbol"), c = wp(r.getItemVisual(n, "symbolSize")), u = r.getItemVisual(n, "style"), d = u && u.fill, h = s.getModel("emphasis"); + var a = this.childAt(1), s = r.getItemModel(n), l = r.getItemVisual(n, "symbol"), c = Ep(r.getItemVisual(n, "symbolSize")), u = r.getItemVisual(n, "style"), d = u && u.fill, h = s.getModel("emphasis"); a.setScale(c), a.traverse(function(v) { v.setStyle("fill", d); }); @@ -80643,7 +80684,7 @@ var P6e = ( r && r(); }, t; }(Ot) -), T6e = ( +), $6e = ( /** @class */ function(e) { Se(t, e); @@ -80652,7 +80693,7 @@ var P6e = ( return r.type = t.type, r; } return t.prototype.init = function() { - this._symbolDraw = new oy(P6e); + this._symbolDraw = new ly(k6e); }, t.prototype.render = function(r, n, i) { var o = r.getData(), a = this._symbolDraw; a.updateData(o, { @@ -80664,7 +80705,7 @@ var P6e = ( }, t.prototype.updateTransform = function(r, n, i) { var o = r.getData(); this.group.dirty(); - var a = sy("").reset(r, n, i); + var a = uy("").reset(r, n, i); a.progress && a.progress({ start: 0, end: o.count(), @@ -80672,12 +80713,12 @@ var P6e = ( }, o), this._symbolDraw.updateLayout(); }, t.prototype._updateGroupTransform = function(r) { var n = r.coordinateSystem; - n && n.getRoamTransform && (this.group.transform = CK(n.getRoamTransform()), this.group.decomposeTransform()); + n && n.getRoamTransform && (this.group.transform = wK(n.getRoamTransform()), this.group.decomposeTransform()); }, t.prototype.remove = function(r, n) { this._symbolDraw && this._symbolDraw.remove(!0); }, t.type = "effectScatter", t; }($r) -), _6e = ( +), B6e = ( /** @class */ function(e) { Se(t, e); @@ -80686,7 +80727,7 @@ var P6e = ( return r.type = t.type, r.hasSymbolVisual = !0, r; } return t.prototype.getInitialData = function(r, n) { - return rl(null, this, { + return nl(null, this, { useEncodeDefaulter: !0 }); }, t.prototype.brushSelector = function(r, n, i) { @@ -80731,10 +80772,10 @@ var P6e = ( }, t; }(jr) ); -function M6e(e) { - e.registerChartView(T6e), e.registerSeriesModel(_6e), e.registerLayout(sy("effectScatter")); +function V6e(e) { + e.registerChartView($6e), e.registerSeriesModel(B6e), e.registerLayout(uy("effectScatter")); } -var KQ = ( +var XQ = ( /** @class */ function(e) { Se(t, e); @@ -80746,7 +80787,7 @@ var KQ = ( return new nO(r, n, i); }, t.prototype._updateEffectSymbol = function(r, n) { var i = r.getItemModel(n), o = i.getModel("effect"), a = o.get("symbolSize"), s = o.get("symbol"); - Ie(a) || (a = [a, a]); + Ae(a) || (a = [a, a]); var l = r.getItemVisual(n, "style"), c = o.get("color") || l && l.stroke, u = this.childAt(1); this._symbolType !== s && (this.remove(u), u = Bn(s, -0.5, -0.5, 1, 1, c), u.z2 = 100, u.culling = !0, this.add(u)), u && (u.setStyle("shadowColor", c), u.setStyle(o.getItemStyle(["color"])), u.scaleX = a[0], u.scaleY = a[1], u.setColor(c), this._symbolType = s, this._symbolScale = a, this._updateEffectAnimation(r, o, n)); }, t.prototype._updateEffectAnimation = function(r, n, i) { @@ -80758,7 +80799,7 @@ var KQ = ( if (o.ignore = !0, this._updateAnimationPoints(o, a), u > 0 && (s = this._getLineLength(o) / u * 1e3), s !== this._period || l !== this._loop || c !== this._roundTrip) { o.stopAnimation(); var h = void 0; - vt(d) ? h = d(i) : h = d, o.__t > 0 && (h = -s * o.__t), this._animateSymbol(o, s, h, l, c); + mt(d) ? h = d(i) : h = d, o.__t > 0 && (h = -s * o.__t), this._animateSymbol(o, s, h, l, c); } this._period = s, this._loop = l, this._roundTrip = c; } @@ -80775,23 +80816,23 @@ var KQ = ( }), l.start(); } }, t.prototype._getLineLength = function(r) { - return wl(r.__p1, r.__cp1) + wl(r.__cp1, r.__p2); + return xl(r.__p1, r.__cp1) + xl(r.__cp1, r.__p2); }, t.prototype._updateAnimationPoints = function(r, n) { r.__p1 = n[0], r.__p2 = n[1], r.__cp1 = n[2] || [(n[0][0] + n[1][0]) / 2, (n[0][1] + n[1][1]) / 2]; }, t.prototype.updateData = function(r, n, i) { this.childAt(0).updateData(r, n, i), this._updateEffectSymbol(r, n); }, t.prototype._updateSymbolPosition = function(r) { - var n = r.__p1, i = r.__p2, o = r.__cp1, a = r.__t < 1 ? r.__t : 2 - r.__t, s = [r.x, r.y], l = s.slice(), c = fi, u = w_; + var n = r.__p1, i = r.__p2, o = r.__cp1, a = r.__t < 1 ? r.__t : 2 - r.__t, s = [r.x, r.y], l = s.slice(), c = pi, u = w_; s[0] = c(n[0], o[0], i[0], a), s[1] = c(n[1], o[1], i[1], a); var d = r.__t < 1 ? u(n[0], o[0], i[0], a) : u(i[0], o[0], n[0], 1 - a), h = r.__t < 1 ? u(n[1], o[1], i[1], a) : u(i[1], o[1], n[1], 1 - a); - r.rotation = -Math.atan2(h, d) - Math.PI / 2, (this._symbolType === "line" || this._symbolType === "rect" || this._symbolType === "roundRect") && (r.__lastT !== void 0 && r.__lastT < r.__t ? (r.scaleY = wl(l, s) * 1.05, a === 1 && (s[0] = l[0] + (s[0] - l[0]) / 2, s[1] = l[1] + (s[1] - l[1]) / 2)) : r.__lastT === 1 ? r.scaleY = 2 * wl(n, s) : r.scaleY = this._symbolScale[1]), r.__lastT = r.__t, r.ignore = !1, r.x = s[0], r.y = s[1]; + r.rotation = -Math.atan2(h, d) - Math.PI / 2, (this._symbolType === "line" || this._symbolType === "rect" || this._symbolType === "roundRect") && (r.__lastT !== void 0 && r.__lastT < r.__t ? (r.scaleY = xl(l, s) * 1.05, a === 1 && (s[0] = l[0] + (s[0] - l[0]) / 2, s[1] = l[1] + (s[1] - l[1]) / 2)) : r.__lastT === 1 ? r.scaleY = 2 * xl(n, s) : r.scaleY = this._symbolScale[1]), r.__lastT = r.__t, r.ignore = !1, r.x = s[0], r.y = s[1]; }, t.prototype.updateLayout = function(r, n) { this.childAt(0).updateLayout(r, n); var i = r.getItemModel(n).getModel("effect"); this._updateEffectAnimation(r, i, n); }, t; }(Ot) -), YQ = ( +), ZQ = ( /** @class */ function(e) { Se(t, e); @@ -80827,7 +80868,7 @@ var KQ = ( i.setShape("points", r.getItemLayout(n)); }, t; }(Ot) -), D6e = ( +), H6e = ( /** @class */ function(e) { Se(t, e); @@ -80836,12 +80877,12 @@ var KQ = ( return r._lastFrame = 0, r._lastFramePercent = 0, r; } return t.prototype.createLine = function(r, n, i) { - return new YQ(r, n, i); + return new ZQ(r, n, i); }, t.prototype._updateAnimationPoints = function(r, n) { this._points = n; for (var i = [0], o = 0, a = 1; a < n.length; a++) { var s = n[a - 1], l = n[a]; - o += wl(s, l), i.push(o); + o += xl(s, l), i.push(o); } if (o === 0) { this._length = 0; @@ -80872,8 +80913,8 @@ var KQ = ( r.rotation = -Math.atan2(p, f) - Math.PI / 2, this._lastFrame = l, this._lastFramePercent = n, r.ignore = !1; } }, t; - }(KQ) -), I6e = ( + }(XQ) +), z6e = ( /** @class */ /* @__PURE__ */ function() { function e() { @@ -80881,7 +80922,7 @@ var KQ = ( } return e; }() -), A6e = ( +), G6e = ( /** @class */ function(e) { Se(t, e); @@ -80897,7 +80938,7 @@ var KQ = ( fill: null }; }, t.prototype.getDefaultShape = function() { - return new I6e(); + return new z6e(); }, t.prototype.buildPath = function(r, n) { var i = n.segs, o = n.curveness, a; if (n.polyline) @@ -80937,7 +80978,7 @@ var KQ = ( var d = o[c++], h = o[c++], p = o[c++], g = o[c++]; if (a > 0) { var v = (d + p) / 2 - (h - g) * a, m = (h + g) / 2 - (p - d) * a; - if (uY(d, h, v, m, p, g, s, r, n)) + if (fY(d, h, v, m, p, g, s, r, n)) return l; } else if (gc(d, h, p, g, s, r, n)) return l; @@ -80958,12 +80999,12 @@ var KQ = ( var u = i[c++], d = i[c++]; o = Math.min(u, o), s = Math.max(u, s), a = Math.min(d, a), l = Math.max(d, l); } - r = this._rect = new Kt(o, a, s, l); + r = this._rect = new Yt(o, a, s, l); } return r; }, t; }(nr) -), O6e = ( +), W6e = ( /** @class */ function() { function e() { @@ -80996,7 +81037,7 @@ var KQ = ( }, e.prototype.eachRendered = function(t) { this._newAdded[0] && t(this._newAdded[0]); }, e.prototype._create = function() { - var t = new A6e({ + var t = new G6e({ cursor: "default", ignoreCoarsePointer: !0 }); @@ -81019,13 +81060,13 @@ var KQ = ( this._newAdded = [], this.group.removeAll(); }, e; }() -), qQ = { +), QQ = { seriesType: "lines", - plan: Sp(), + plan: wp(), reset: function(e) { var t = e.coordinateSystem; if (!t) { - process.env.NODE_ENV !== "production" && xi("The lines series must have a coordinate system."); + process.env.NODE_ENV !== "production" && Ei("The lines series must have a coordinate system."); return; } var r = e.get("polyline"), n = e.pipelineContext.large; @@ -81063,7 +81104,7 @@ var KQ = ( } }; } -}, L6e = ( +}, j6e = ( /** @class */ function(e) { Se(t, e); @@ -81079,7 +81120,7 @@ var KQ = ( motionBlur: !0, lastFrameAlpha: Math.max(Math.min(l / 10 + 0.9, 1), 0) })), a.updateData(o); - var d = r.get("clip", !0) && ay(r.coordinateSystem, !1, r); + var d = r.get("clip", !0) && cy(r.coordinateSystem, !1, r); d ? this.group.setClipPath(d) : this.group.removeClipPath(), this._lastZlevel = s, this._finished = !0; }, t.prototype.incrementalPrepareRender = function(r, n, i) { var o = r.getData(), a = this._updateLineDraw(o, r); @@ -81094,7 +81135,7 @@ var KQ = ( return { update: !0 }; - var s = qQ.reset(r, n, i); + var s = QQ.reset(r, n, i); s.progress && s.progress({ start: 0, end: o.count(), @@ -81102,7 +81143,7 @@ var KQ = ( }, o), this._lineDraw.updateLayout(), this._clearLayer(i); }, t.prototype._updateLineDraw = function(r, n) { var i = this._lineDraw, o = this._showEffect(n), a = !!n.get("polyline"), s = n.pipelineContext, l = s.large; - return process.env.NODE_ENV !== "production" && o && l && console.warn("Large lines not support effect"), (!i || o !== this._hasEffet || a !== this._isPolyline || l !== this._isLargeDraw) && (i && i.remove(), i = this._lineDraw = l ? new O6e() : new iO(a ? o ? D6e : YQ : o ? KQ : nO), this._hasEffet = o, this._isPolyline = a, this._isLargeDraw = l), this.group.add(i.group), i; + return process.env.NODE_ENV !== "production" && o && l && console.warn("Large lines not support effect"), (!i || o !== this._hasEffet || a !== this._isPolyline || l !== this._isLargeDraw) && (i && i.remove(), i = this._lineDraw = l ? new W6e() : new iO(a ? o ? H6e : ZQ : o ? XQ : nO), this._hasEffet = o, this._isPolyline = a, this._isLargeDraw = l), this.group.add(i.group), i; }, t.prototype._showEffect = function(r) { return !!r.get(["effect", "show"]); }, t.prototype._clearLayer = function(r) { @@ -81114,8 +81155,8 @@ var KQ = ( this.remove(r, n); }, t.type = "lines", t; }($r) -), F6e = typeof Uint32Array > "u" ? Array : Uint32Array, N6e = typeof Float64Array > "u" ? Array : Float64Array; -function oH(e) { +), U6e = typeof Uint32Array > "u" ? Array : Uint32Array, K6e = typeof Float64Array > "u" ? Array : Float64Array; +function s3(e) { var t = e.data; t && t[0] && t[0][0] && t[0][0].coord && (process.env.NODE_ENV !== "production" && console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"), e.data = Fe(t, function(r) { var n = [r[0].coord, r[1].coord], i = { @@ -81124,7 +81165,7 @@ function oH(e) { return r[0].name && (i.fromName = r[0].name), r[1].name && (i.toName = r[1].name), ww([i, r[0], r[1]]); })); } -var k6e = ( +var Y6e = ( /** @class */ function(e) { Se(t, e); @@ -81133,18 +81174,18 @@ var k6e = ( return r.type = t.type, r.visualStyleAccessPath = "lineStyle", r.visualDrawType = "stroke", r; } return t.prototype.init = function(r) { - r.data = r.data || [], oH(r); + r.data = r.data || [], s3(r); var n = this._processFlatCoordsArray(r.data); this._flatCoords = n.flatCoords, this._flatCoordsOffset = n.flatCoordsOffset, n.flatCoords && (r.data = new Float32Array(n.count)), e.prototype.init.apply(this, arguments); }, t.prototype.mergeOption = function(r) { - if (oH(r), r.data) { + if (s3(r), r.data) { var n = this._processFlatCoordsArray(r.data); this._flatCoords = n.flatCoords, this._flatCoordsOffset = n.flatCoordsOffset, n.flatCoords && (r.data = new Float32Array(n.count)); } e.prototype.mergeOption.apply(this, arguments); }, t.prototype.appendData = function(r) { var n = this._processFlatCoordsArray(r.data); - n.flatCoords && (this._flatCoords ? (this._flatCoords = Vv(this._flatCoords, n.flatCoords), this._flatCoordsOffset = Vv(this._flatCoordsOffset, n.flatCoordsOffset)) : (this._flatCoords = n.flatCoords, this._flatCoordsOffset = n.flatCoordsOffset), r.data = new Float32Array(n.count)), this.getRawData().appendData(r.data); + n.flatCoords && (this._flatCoords ? (this._flatCoords = zv(this._flatCoords, n.flatCoords), this._flatCoordsOffset = zv(this._flatCoordsOffset, n.flatCoordsOffset)) : (this._flatCoords = n.flatCoords, this._flatCoordsOffset = n.flatCoordsOffset), r.data = new Float32Array(n.count)), this.getRawData().appendData(r.data); }, t.prototype._getCoordsFromItemModel = function(r) { var n = this.getData().getItemModel(r), i = n.option instanceof Array ? n.option : n.getShallow("coords"); if (process.env.NODE_ENV !== "production" && !(i instanceof Array && i.length > 0 && i[0] instanceof Array)) @@ -81165,7 +81206,7 @@ var k6e = ( }, t.prototype._processFlatCoordsArray = function(r) { var n = 0; if (this._flatCoords && (n = this._flatCoords.length), Cr(r[0])) { - for (var i = r.length, o = new F6e(i), a = new N6e(i), s = 0, l = 0, c = 0, u = 0; u < i; ) { + for (var i = r.length, o = new U6e(i), a = new K6e(i), s = 0, l = 0, c = 0, u = 0; u < i; ) { c++; var d = r[u++]; o[l++] = s + n, o[l++] = d; @@ -81206,7 +81247,7 @@ var k6e = ( if (s) return s; var l = a.get("fromName"), c = a.get("toName"), u = []; - return l != null && u.push(l), c != null && u.push(c), ci("nameValue", { + return l != null && u.push(l), c != null && u.push(c), ui("nameValue", { name: u.join(" > ") }); }, t.prototype.preventIncremental = function() { @@ -81258,16 +81299,16 @@ var k6e = ( }, t; }(jr) ); -function N0(e) { +function B0(e) { return e instanceof Array || (e = [e, e]), e; } -var $6e = { +var q6e = { seriesType: "lines", reset: function(e) { - var t = N0(e.get("symbol")), r = N0(e.get("symbolSize")), n = e.getData(); + var t = B0(e.get("symbol")), r = B0(e.get("symbolSize")), n = e.getData(); n.setVisual("fromSymbol", t && t[0]), n.setVisual("toSymbol", t && t[1]), n.setVisual("fromSymbolSize", r && r[0]), n.setVisual("toSymbolSize", r && r[1]); function i(o, a) { - var s = o.getItemModel(a), l = N0(s.getShallow("symbol", !0)), c = N0(s.getShallow("symbolSize", !0)); + var s = o.getItemModel(a), l = B0(s.getShallow("symbol", !0)), c = B0(s.getShallow("symbolSize", !0)); l[0] && o.setItemVisual(a, "fromSymbol", l[0]), l[1] && o.setItemVisual(a, "toSymbol", l[1]), c[0] && o.setItemVisual(a, "fromSymbolSize", c[0]), c[1] && o.setItemVisual(a, "toSymbolSize", c[1]); } return { @@ -81275,10 +81316,10 @@ var $6e = { }; } }; -function B6e(e) { - e.registerChartView(L6e), e.registerSeriesModel(k6e), e.registerLayout(qQ), e.registerVisual($6e); +function X6e(e) { + e.registerChartView(j6e), e.registerSeriesModel(Y6e), e.registerLayout(QQ), e.registerVisual(q6e); } -var V6e = 256, H6e = ( +var Z6e = 256, Q6e = ( /** @class */ function() { function e() { @@ -81299,7 +81340,7 @@ var V6e = 256, H6e = ( if (!d.width || !d.height) return d; for (var b = h.getImageData(0, 0, d.width, d.height), w = b.data, x = 0, E = w.length, R = this.minOpacity, P = this.maxOpacity, T = P - R; x < E; ) { - var C = w[x + 3] / 256, _ = Math.floor(C * (V6e - 1)) * 4; + var C = w[x + 3] / 256, _ = Math.floor(C * (Z6e - 1)) * 4; if (C > 0) { var D = a(C) ? l : c; C > 0 && (C = C * T + R), w[x++] = D[_], w[x++] = D[_ + 1], w[x++] = D[_ + 2], w[x++] = D[_ + 3] * C * 256; @@ -81319,7 +81360,7 @@ var V6e = 256, H6e = ( }, e; }() ); -function z6e(e, t, r) { +function J6e(e, t, r) { var n = e[1] - e[0]; t = Fe(t, function(a) { return { @@ -81347,17 +81388,17 @@ function z6e(e, t, r) { return s >= 0 && s < i && r[s]; }; } -function G6e(e, t) { +function e3e(e, t) { var r = e[1] - e[0]; return t = [(t[0] - e[0]) / r, (t[1] - e[0]) / r], function(n) { return n >= t[0] && n <= t[1]; }; } -function aH(e) { +function l3(e) { var t = e.dimensions; return t[0] === "lng" && t[1] === "lat"; } -var W6e = ( +var t3e = ( /** @class */ function(e) { Se(t, e); @@ -81375,12 +81416,12 @@ var W6e = ( throw new Error("Heatmap must use with visualMap"); this._progressiveEls = null, this.group.removeAll(); var a = r.coordinateSystem; - a.type === "cartesian2d" || a.type === "calendar" ? this._renderOnCartesianAndCalendar(r, i, 0, r.getData().count()) : aH(a) && this._renderOnGeo(a, r, o, i); + a.type === "cartesian2d" || a.type === "calendar" ? this._renderOnCartesianAndCalendar(r, i, 0, r.getData().count()) : l3(a) && this._renderOnGeo(a, r, o, i); }, t.prototype.incrementalPrepareRender = function(r, n, i) { this.group.removeAll(); }, t.prototype.incrementalRender = function(r, n, i, o) { var a = n.coordinateSystem; - a && (aH(a) ? this.render(n, i, o) : (this._progressiveEls = [], this._renderOnCartesianAndCalendar(n, o, r.start, r.end, !0))); + a && (l3(a) ? this.render(n, i, o) : (this._progressiveEls = [], this._renderOnCartesianAndCalendar(n, o, r.start, r.end, !0))); }, t.prototype.eachRendered = function(r) { tu(this._progressiveEls || this.group, r); }, t.prototype._renderOnCartesianAndCalendar = function(r, n, i, o, a) { @@ -81395,7 +81436,7 @@ var W6e = ( } c = f.getBandWidth() + 0.5, u = p.getBandWidth() + 0.5, d = f.scale.getExtent(), h = p.scale.getExtent(); } - for (var g = this.group, v = r.getData(), m = r.getModel(["emphasis", "itemStyle"]).getItemStyle(), y = r.getModel(["blur", "itemStyle"]).getItemStyle(), C = r.getModel(["select", "itemStyle"]).getItemStyle(), b = r.get(["itemStyle", "borderRadius"]), w = li(r), x = r.getModel("emphasis"), E = x.get("focus"), R = x.get("blurScope"), P = x.get("disabled"), T = l ? [v.mapDimension("x"), v.mapDimension("y"), v.mapDimension("value")] : [v.mapDimension("time"), v.mapDimension("value")], _ = i; _ < o; _++) { + for (var g = this.group, v = r.getData(), m = r.getModel(["emphasis", "itemStyle"]).getItemStyle(), y = r.getModel(["blur", "itemStyle"]).getItemStyle(), C = r.getModel(["select", "itemStyle"]).getItemStyle(), b = r.get(["itemStyle", "borderRadius"]), w = ci(r), x = r.getModel("emphasis"), E = x.get("focus"), R = x.get("blurScope"), P = x.get("disabled"), T = l ? [v.mapDimension("x"), v.mapDimension("y"), v.mapDimension("value")] : [v.mapDimension("time"), v.mapDimension("value")], _ = i; _ < o; _++) { var D = void 0, A = v.getItemVisual(_, "style"); if (l) { var M = v.get(T[0], _), O = v.get(T[1], _); @@ -81422,11 +81463,11 @@ var W6e = ( } if (v.hasItemOption) { var N = v.getItemModel(_), F = N.getModel("emphasis"); - m = F.getModel("itemStyle").getItemStyle(), y = N.getModel(["blur", "itemStyle"]).getItemStyle(), C = N.getModel(["select", "itemStyle"]).getItemStyle(), b = N.get(["itemStyle", "borderRadius"]), E = F.get("focus"), R = F.get("blurScope"), P = F.get("disabled"), w = li(N); + m = F.getModel("itemStyle").getItemStyle(), y = N.getModel(["blur", "itemStyle"]).getItemStyle(), C = N.getModel(["select", "itemStyle"]).getItemStyle(), b = N.get(["itemStyle", "borderRadius"]), E = F.get("focus"), R = F.get("blurScope"), P = F.get("disabled"), w = ci(N); } D.shape.r = b; var $ = r.getRawValue(_), I = "-"; - $ && $[2] != null && (I = $[2] + ""), Ri(D, w, { + $ && $[2] != null && (I = $[2] + ""), Pi(D, w, { labelFetcher: r, labelDataIndex: _, defaultOpacity: A.opacity, @@ -81434,19 +81475,19 @@ var W6e = ( }), D.ensureState("emphasis").style = m, D.ensureState("blur").style = y, D.ensureState("select").style = C, Rn(D, E, R, P), D.incremental = a, a && (D.states.emphasis.hoverLayer = !0), g.add(D), v.setItemGraphicEl(_, D), this._progressiveEls && this._progressiveEls.push(D); } }, t.prototype._renderOnGeo = function(r, n, i, o) { - var a = i.targetVisuals.inRange, s = i.targetVisuals.outOfRange, l = n.getData(), c = this._hmLayer || this._hmLayer || new H6e(); + var a = i.targetVisuals.inRange, s = i.targetVisuals.outOfRange, l = n.getData(), c = this._hmLayer || this._hmLayer || new Q6e(); c.blurSize = n.get("blurSize"), c.pointSize = n.get("pointSize"), c.minOpacity = n.get("minOpacity"), c.maxOpacity = n.get("maxOpacity"); var u = r.getViewRect().clone(), d = r.getRoamTransform(); u.applyTransform(d); var h = Math.max(u.x, 0), f = Math.max(u.y, 0), p = Math.min(u.width + u.x, o.getWidth()), g = Math.min(u.height + u.y, o.getHeight()), v = p - h, m = g - f, y = [l.mapDimension("lng"), l.mapDimension("lat"), l.mapDimension("value")], C = l.mapArray(y, function(E, R, P) { var T = r.dataToPoint([E, R]); return T[0] -= h, T[1] -= f, T.push(P), T; - }), b = i.getExtent(), w = i.type === "visualMap.continuous" ? G6e(b, i.option.range) : z6e(b, i.getPieceList(), i.option.selected); + }), b = i.getExtent(), w = i.type === "visualMap.continuous" ? e3e(b, i.option.range) : J6e(b, i.getPieceList(), i.option.selected); c.update(C, v, m, a.color.getNormalizer(), { inRange: a.color.getColorMapper(), outOfRange: s.color.getColorMapper() }, w); - var x = new yi({ + var x = new Ci({ style: { width: v, height: m, @@ -81459,7 +81500,7 @@ var W6e = ( this.group.add(x); }, t.type = "heatmap", t; }($r) -), j6e = ( +), r3e = ( /** @class */ function(e) { Se(t, e); @@ -81468,7 +81509,7 @@ var W6e = ( return r.type = t.type, r; } return t.prototype.getInitialData = function(r, n) { - return rl(null, this, { + return nl(null, this, { generateCoord: "value" }); }, t.prototype.preventIncremental = function() { @@ -81496,10 +81537,10 @@ var W6e = ( }, t; }(jr) ); -function U6e(e) { - e.registerChartView(W6e), e.registerSeriesModel(j6e); +function n3e(e) { + e.registerChartView(t3e), e.registerSeriesModel(r3e); } -var K6e = ["itemStyle", "borderWidth"], sH = [{ +var i3e = ["itemStyle", "borderWidth"], c3 = [{ xy: "x", wh: "width", index: 0, @@ -81509,7 +81550,7 @@ var K6e = ["itemStyle", "borderWidth"], sH = [{ wh: "height", index: 1, posDesc: ["top", "bottom"] -}], MR = new Ql(), Y6e = ( +}], MR = new Ql(), o3e = ( /** @class */ function(e) { Se(t, e); @@ -81527,13 +81568,13 @@ var K6e = ["itemStyle", "borderWidth"], sH = [{ coordSys: l, coordSysExtent: [[d.x, d.x + d.width], [d.y, d.y + d.height]], isHorizontal: u, - valueDim: sH[+u], - categoryDim: sH[1 - +u] + valueDim: c3[+u], + categoryDim: c3[1 - +u] }; a.diff(s).add(function(p) { if (a.hasValue(p)) { - var g = cH(a, p), v = lH(a, p, g, h), m = uH(a, h, v); - a.setItemGraphicEl(p, m), o.add(m), hH(m, h, v); + var g = d3(a, p), v = u3(a, p, g, h), m = h3(a, h, v); + a.setItemGraphicEl(p, m), o.add(m), p3(m, h, v); } }).update(function(p, g) { var v = s.getItemGraphicEl(g); @@ -81541,23 +81582,23 @@ var K6e = ["itemStyle", "borderWidth"], sH = [{ o.remove(v); return; } - var m = cH(a, p), y = lH(a, p, m, h), C = tJ(a, y); - v && C !== v.__pictorialShapeStr && (o.remove(v), a.setItemGraphicEl(p, null), v = null), v ? tHe(v, h, y) : v = uH(a, h, y, !0), a.setItemGraphicEl(p, v), v.__pictorialSymbolMeta = y, o.add(v), hH(v, h, y); + var m = d3(a, p), y = u3(a, p, m, h), C = iJ(a, y); + v && C !== v.__pictorialShapeStr && (o.remove(v), a.setItemGraphicEl(p, null), v = null), v ? h3e(v, h, y) : v = h3(a, h, y, !0), a.setItemGraphicEl(p, v), v.__pictorialSymbolMeta = y, o.add(v), p3(v, h, y); }).remove(function(p) { var g = s.getItemGraphicEl(p); - g && dH(s, p, g.__pictorialSymbolMeta.animationModel, g); + g && f3(s, p, g.__pictorialSymbolMeta.animationModel, g); }).execute(); - var f = r.get("clip", !0) ? ay(r.coordinateSystem, !1, r) : null; + var f = r.get("clip", !0) ? cy(r.coordinateSystem, !1, r) : null; return f ? o.setClipPath(f) : o.removeClipPath(), this._data = a, this.group; }, t.prototype.remove = function(r, n) { var i = this.group, o = this._data; r.get("animation") ? o && o.eachItemGraphicEl(function(a) { - dH(o, Ft(a).dataIndex, r, a); + f3(o, Ft(a).dataIndex, r, a); }) : i.removeAll(); }, t.type = "pictorialBar", t; }($r) ); -function lH(e, t, r, n) { +function u3(e, t, r, n) { var i = e.getItemLayout(t), o = r.get("symbolRepeat"), a = r.get("symbolClip"), s = r.get("symbolPosition") || "start", l = r.get("symbolRotate"), c = (l || 0) * Math.PI / 180 || 0, u = r.get("symbolPatternSize") || 2, d = r.isAnimationEnabled(), h = { dataIndex: t, layout: i, @@ -81573,13 +81614,13 @@ function lH(e, t, r, n) { hoverScale: d && r.get(["emphasis", "scale"]), z2: r.getShallow("z", !0) || 0 }; - q6e(r, o, i, n, h), X6e(e, t, i, o, a, h.boundingLength, h.pxSign, u, n, h), Z6e(r, h.symbolScale, c, n, h); + a3e(r, o, i, n, h), s3e(e, t, i, o, a, h.boundingLength, h.pxSign, u, n, h), l3e(r, h.symbolScale, c, n, h); var f = h.symbolSize, p = Zd(r.get("symbolOffset"), f); - return Q6e(r, f, i, o, a, p, s, h.valueLineWidth, h.boundingLength, h.repeatCutLength, n, h), h; + return c3e(r, f, i, o, a, p, s, h.valueLineWidth, h.boundingLength, h.repeatCutLength, n, h), h; } -function q6e(e, t, r, n, i) { +function a3e(e, t, r, n, i) { var o = n.valueDim, a = e.get("symbolBoundingData"), s = n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()), l = s.toGlobalCoord(s.dataToCoord(0)), c = 1 - +(r[o.wh] <= 0), u; - if (Ie(a)) { + if (Ae(a)) { var d = [DR(s, a[0]) - l, DR(s, a[1]) - l]; d[1] < d[0] && d.reverse(), u = d[c]; } else a != null ? u = DR(s, a) - l : t ? u = n.coordSysExtent[o.index][c] - l : u = r[o.wh]; @@ -81588,27 +81629,27 @@ function q6e(e, t, r, n, i) { function DR(e, t) { return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t))); } -function X6e(e, t, r, n, i, o, a, s, l, c) { +function s3e(e, t, r, n, i, o, a, s, l, c) { var u = l.valueDim, d = l.categoryDim, h = Math.abs(r[d.wh]), f = e.getItemVisual(t, "symbolSize"), p; - Ie(f) ? p = f.slice() : f == null ? p = ["100%", "100%"] : p = [f, f], p[d.index] = Ze(p[d.index], h), p[u.index] = Ze(p[u.index], n ? h : Math.abs(o)), c.symbolSize = p; + Ae(f) ? p = f.slice() : f == null ? p = ["100%", "100%"] : p = [f, f], p[d.index] = Ze(p[d.index], h), p[u.index] = Ze(p[u.index], n ? h : Math.abs(o)), c.symbolSize = p; var g = c.symbolScale = [p[0] / s, p[1] / s]; g[u.index] *= (l.isHorizontal ? -1 : 1) * a; } -function Z6e(e, t, r, n, i) { - var o = e.get(K6e) || 0; +function l3e(e, t, r, n, i) { + var o = e.get(i3e) || 0; o && (MR.attr({ scaleX: t[0], scaleY: t[1], rotation: r }), MR.updateTransform(), o /= MR.getLineScale(), o *= t[n.valueDim.index]), i.valueLineWidth = o || 0; } -function Q6e(e, t, r, n, i, o, a, s, l, c, u, d) { +function c3e(e, t, r, n, i, o, a, s, l, c, u, d) { var h = u.categoryDim, f = u.valueDim, p = d.pxSign, g = Math.max(t[f.index] + s, 0), v = g; if (n) { var m = Math.abs(l), y = $n(e.get("symbolMargin"), "15%") + "", C = !1; y.lastIndexOf("!") === y.length - 1 && (C = !0, y = y.slice(0, y.length - 1)); - var b = Ze(y, t[f.index]), w = Math.max(g + b * 2, 0), x = C ? 0 : b * 2, E = Dw(n), R = E ? n : fH((m + x) / w), P = m - R * g; - b = P / 2 / (C ? R : Math.max(R - 1, 1)), w = g + b * 2, x = C ? 0 : b * 2, !E && n !== "fixed" && (R = c ? fH((Math.abs(c) + x) / w) : 0), v = R * w - x, d.repeatTimes = R, d.symbolMargin = b; + var b = Ze(y, t[f.index]), w = Math.max(g + b * 2, 0), x = C ? 0 : b * 2, E = Dw(n), R = E ? n : g3((m + x) / w), P = m - R * g; + b = P / 2 / (C ? R : Math.max(R - 1, 1)), w = g + b * 2, x = C ? 0 : b * 2, !E && n !== "fixed" && (R = c ? g3((Math.abs(c) + x) / w) : 0), v = R * w - x, d.repeatTimes = R, d.symbolMargin = b; } var T = p * (v / 2), _ = d.pathPosition = []; _[h.index] = r[h.wh] / 2, _[f.index] = a === "start" ? T : a === "end" ? l - T : l / 2, o && (_[0] += o[0], _[1] += o[1]); @@ -81619,7 +81660,7 @@ function Q6e(e, t, r, n, i, o, a, s, l, c, u, d) { var M = d.clipShape = {}; M[h.xy] = -r[h.xy], M[h.wh] = u.ecSize[h.wh], M[f.xy] = 0, M[f.wh] = r[f.wh]; } -function XQ(e) { +function JQ(e) { var t = e.symbolPatternSize, r = Bn( // Consider texture img, make a big size. e.symbolType, @@ -81634,7 +81675,7 @@ function XQ(e) { strokeNoScale: !0 }), r; } -function ZQ(e, t, r, n) { +function eJ(e, t, r, n) { var i = e.__pictorialBundle, o = r.symbolSize, a = r.valueLineWidth, s = r.pathPosition, l = t.valueDim, c = r.repeatTimes || 0, u = 0, d = o[t.valueDim.index] + a + r.symbolMargin * 2; for (hO(e, function(g) { g.__pictorialAnimationIndex = u, g.__pictorialRepeatTimes = c, u < c ? wf(g, null, p(u), r, n) : wf(g, null, { @@ -81644,7 +81685,7 @@ function ZQ(e, t, r, n) { i.remove(g); }), u++; }); u < c; u++) { - var h = XQ(r); + var h = JQ(r); h.__pictorialAnimationIndex = u, h.__pictorialRepeatTimes = c, i.add(h); var f = p(u); wf(h, { @@ -81669,7 +81710,7 @@ function ZQ(e, t, r, n) { }; } } -function QQ(e, t, r, n) { +function tJ(e, t, r, n) { var i = e.__pictorialBundle, o = e.__pictorialMainPath; o ? wf(o, null, { x: r.pathPosition[0], @@ -81677,7 +81718,7 @@ function QQ(e, t, r, n) { scaleX: r.symbolScale[0], scaleY: r.symbolScale[1], rotation: r.rotation - }, r, n) : (o = e.__pictorialMainPath = XQ(r), i.add(o), wf(o, { + }, r, n) : (o = e.__pictorialMainPath = JQ(r), i.add(o), wf(o, { x: r.pathPosition[0], y: r.pathPosition[1], scaleX: 0, @@ -81688,7 +81729,7 @@ function QQ(e, t, r, n) { scaleY: r.symbolScale[1] }, r, n)); } -function JQ(e, t, r) { +function rJ(e, t, r) { var n = Pe({}, t.barRectShape), i = e.__pictorialBarRect; i ? wf(i, null, { shape: n @@ -81703,7 +81744,7 @@ function JQ(e, t, r) { } }), i.disableMorphing = !0, e.add(i)); } -function eJ(e, t, r, n) { +function nJ(e, t, r, n) { if (r.symbolClip) { var i = e.__pictorialClipPath, o = Pe({}, r.clipShape), a = t.valueDim, s = r.animationModel, l = r.dataIndex; if (i) @@ -81721,31 +81762,31 @@ function eJ(e, t, r, n) { } } } -function cH(e, t) { +function d3(e, t) { var r = e.getItemModel(t); - return r.getAnimationDelayParams = J6e, r.isAnimationEnabled = eHe, r; + return r.getAnimationDelayParams = u3e, r.isAnimationEnabled = d3e, r; } -function J6e(e) { +function u3e(e) { return { index: e.__pictorialAnimationIndex, count: e.__pictorialRepeatTimes }; } -function eHe() { +function d3e() { return this.parentModel.isAnimationEnabled() && !!this.getShallow("animation"); } -function uH(e, t, r, n) { +function h3(e, t, r, n) { var i = new Ot(), o = new Ot(); - return i.add(o), i.__pictorialBundle = o, o.x = r.bundlePosition[0], o.y = r.bundlePosition[1], r.symbolRepeat ? ZQ(i, t, r) : QQ(i, t, r), JQ(i, r, n), eJ(i, t, r, n), i.__pictorialShapeStr = tJ(e, r), i.__pictorialSymbolMeta = r, i; + return i.add(o), i.__pictorialBundle = o, o.x = r.bundlePosition[0], o.y = r.bundlePosition[1], r.symbolRepeat ? eJ(i, t, r) : tJ(i, t, r), rJ(i, r, n), nJ(i, t, r, n), i.__pictorialShapeStr = iJ(e, r), i.__pictorialSymbolMeta = r, i; } -function tHe(e, t, r) { +function h3e(e, t, r) { var n = r.animationModel, i = r.dataIndex, o = e.__pictorialBundle; br(o, { x: r.bundlePosition[0], y: r.bundlePosition[1] - }, n, i), r.symbolRepeat ? ZQ(e, t, r, !0) : QQ(e, t, r, !0), JQ(e, r, !0), eJ(e, t, r, !0); + }, n, i), r.symbolRepeat ? eJ(e, t, r, !0) : tJ(e, t, r, !0), rJ(e, r, !0), nJ(e, t, r, !0); } -function dH(e, t, r, n) { +function f3(e, t, r, n) { var i = n.__pictorialBarRect; i && i.removeTextContent(); var o = []; @@ -81760,7 +81801,7 @@ function dH(e, t, r, n) { }); }), e.setItemGraphicEl(t, null); } -function tJ(e, t) { +function iJ(e, t) { return [e.getItemVisual(t.dataIndex, "symbol") || "none", !!t.symbolRepeat, !!t.symbolClip].join(":"); } function hO(e, t, r) { @@ -81771,10 +81812,10 @@ function hO(e, t, r) { function wf(e, t, r, n, i, o) { t && e.attr(t), n.symbolClip && !i ? r && e.attr(r) : r && Kd[i ? "updateProps" : "initProps"](e, r, n.animationModel, n.dataIndex, o); } -function hH(e, t, r) { +function p3(e, t, r) { var n = r.dataIndex, i = r.itemModel, o = i.getModel("emphasis"), a = o.getModel("itemStyle").getItemStyle(), s = i.getModel(["blur", "itemStyle"]).getItemStyle(), l = i.getModel(["select", "itemStyle"]).getItemStyle(), c = i.getShallow("cursor"), u = o.get("focus"), d = o.get("blurScope"), h = o.get("scale"); hO(e, function(g) { - if (g instanceof yi) { + if (g instanceof Ci) { var v = g.style; g.useStyle(Pe({ // TODO other properties like dx, dy ? @@ -81790,20 +81831,20 @@ function hH(e, t, r) { m.style = a, h && (m.scaleX = g.scaleX * 1.1, m.scaleY = g.scaleY * 1.1), g.ensureState("blur").style = s, g.ensureState("select").style = l, c && (g.cursor = c), g.z2 = r.z2; }); var f = t.valueDim.posDesc[+(r.boundingLength > 0)], p = e.__pictorialBarRect; - p.ignoreClip = !0, Ri(p, li(i), { + p.ignoreClip = !0, Pi(p, ci(i), { labelFetcher: t.seriesModel, labelDataIndex: n, - defaultText: Vf(t.seriesModel.getData(), n), + defaultText: zf(t.seriesModel.getData(), n), inheritColor: r.style.fill, defaultOpacity: r.style.opacity, defaultOutsidePosition: f }), Rn(e, u, d, o.get("disabled")); } -function fH(e) { +function g3(e) { var t = Math.round(e); return Math.abs(e - t) < 1e-4 ? t : Math.ceil(e); } -var rHe = ( +var f3e = ( /** @class */ function(e) { Se(t, e); @@ -81813,7 +81854,7 @@ var rHe = ( } return t.prototype.getInitialData = function(r) { return r.stack = null, e.prototype.getInitialData.apply(this, arguments); - }, t.type = "series.pictorialBar", t.dependencies = ["grid"], t.defaultOption = ru(im.defaultOption, { + }, t.type = "series.pictorialBar", t.dependencies = ["grid"], t.defaultOption = ru(am.defaultOption, { symbol: "circle", symbolSize: null, symbolRotate: null, @@ -81843,12 +81884,12 @@ var rHe = ( } } }), t; - }(im) + }(am) ); -function nHe(e) { - e.registerChartView(Y6e), e.registerSeriesModel(rHe), e.registerLayout(e.PRIORITY.VISUAL.LAYOUT, Vt(kX, "pictorialBar")), e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, $X("pictorialBar")); +function p3e(e) { + e.registerChartView(o3e), e.registerSeriesModel(f3e), e.registerLayout(e.PRIORITY.VISUAL.LAYOUT, Vt(VX, "pictorialBar")), e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, HX("pictorialBar")); } -var iHe = ( +var g3e = ( /** @class */ function(e) { Se(t, e); @@ -81862,7 +81903,7 @@ var iHe = ( function h(v) { return v.name; } - var f = new zl(this._layersSeries || [], l, h, h), p = []; + var f = new Gl(this._layersSeries || [], l, h, h), p = []; f.add(at(g, this, "add")).update(at(g, this, "update")).remove(at(g, this, "remove")).execute(); function g(v, m, y) { var C = a._layers; @@ -81877,7 +81918,7 @@ var iHe = ( var A, M = o.getItemLayout(E[0]), O = r.getModel("label"), L = O.get("margin"), N = r.getModel("emphasis"); if (v === "add") { var F = p[m] = new Ot(); - A = new PZ({ + A = new MZ({ shape: { points: b, stackedOnPoints: w, @@ -81886,7 +81927,7 @@ var iHe = ( smoothConstraint: !1 }, z2: 0 - }), F.add(A), s.add(F), r.isAnimationEnabled() && A.setClipPath(oHe(A.getBoundingRect(), r, function() { + }), F.add(A), s.add(F), r.isAnimationEnabled() && A.setClipPath(v3e(A.getBoundingRect(), r, function() { A.removeClipPath(); })); } else { @@ -81898,7 +81939,7 @@ var iHe = ( } }, r), ls(A); } - Ri(A, li(r), { + Pi(A, ci(r), { labelDataIndex: E[R - 1], defaultText: o.getName(E[R - 1]), inheritColor: x.fill @@ -81912,13 +81953,13 @@ var iHe = ( local: !0 }); var $ = A.getTextContent(); - $ && ($.x = M.x - L, $.y = M.y0 + M.y / 2), A.useStyle(x), o.setItemGraphicEl(m, A), Ei(A, r), Rn(A, N.get("focus"), N.get("blurScope"), N.get("disabled")); + $ && ($.x = M.x - L, $.y = M.y0 + M.y / 2), A.useStyle(x), o.setItemGraphicEl(m, A), Ri(A, r), Rn(A, N.get("focus"), N.get("blurScope"), N.get("disabled")); } this._layersSeries = l, this._layers = p; }, t.type = "themeRiver", t; }($r) ); -function oHe(e, t, r) { +function v3e(e, t, r) { var n = new mr({ shape: { x: e.x - 10, @@ -81935,7 +81976,7 @@ function oHe(e, t, r) { } }, t, r), n; } -var IR = 2, aHe = ( +var IR = 2, m3e = ( /** @class */ function(e) { Se(t, e); @@ -81944,7 +81985,7 @@ var IR = 2, aHe = ( return r.type = t.type, r; } return t.prototype.init = function(r) { - e.prototype.init.apply(this, arguments), this.legendVisualProvider = new cy(at(this.getData, this), at(this.getRawData, this)); + e.prototype.init.apply(this, arguments), this.legendVisualProvider = new hy(at(this.getData, this), at(this.getRawData, this)); }, t.prototype.fixData = function(r) { var n = r.length, i = {}, o = $_(r, function(h) { return i.hasOwnProperty(h[0] + "") || (i[h[0] + ""] = -1), h[2]; @@ -81965,15 +82006,15 @@ var IR = 2, aHe = ( } return r; }, t.prototype.getInitialData = function(r, n) { - for (var i = this.getReferringComponents("singleAxis", Wn).models[0], o = i.get("type"), a = Fr(r.data, function(p) { + for (var i = this.getReferringComponents("singleAxis", Wn).models[0], o = i.get("type"), a = Nr(r.data, function(p) { return p[2] !== void 0; }), s = this.fixData(a || []), l = [], c = this.nameMap = ft(), u = 0, d = 0; d < s.length; ++d) l.push(s[d][IR]), c.get(s[d][IR]) || (c.set(s[d][IR], u), u++); - var h = xp(s, { + var h = Rp(s, { coordDimensions: ["single"], dimensionsDefine: [{ name: "time", - type: YS(o) + type: XS(o) }, { name: "value", type: "float" @@ -82003,7 +82044,7 @@ var IR = 2, aHe = ( }); }), l; }, t.prototype.getAxisTooltipData = function(r, n, i) { - Ie(r) || (r = r ? [r] : []); + Ae(r) || (r = r ? [r] : []); for (var o = this.getData(), a = this.getLayerSeries(), s = [], l = a.length, c, u = 0; u < l; ++u) { for (var d = Number.MAX_VALUE, h = -1, f = a[u].indices.length, p = 0; p < f; ++p) { var g = o.get(r[0], a[u].indices[p]), v = Math.abs(g - n); @@ -82017,7 +82058,7 @@ var IR = 2, aHe = ( }; }, t.prototype.formatTooltip = function(r, n, i) { var o = this.getData(), a = o.getName(r), s = o.get(o.mapDimension("value"), r); - return ci("nameValue", { + return ui("nameValue", { name: a, value: s }); @@ -82045,7 +82086,7 @@ var IR = 2, aHe = ( }, t; }(jr) ); -function sHe(e, t) { +function y3e(e, t) { e.eachSeriesByType("themeRiver", function(r) { var n = r.getData(), i = r.coordinateSystem, o = {}, a = i.getRect(); o.rect = a; @@ -82053,23 +82094,23 @@ function sHe(e, t) { if (o.boundaryGap = s, l.orient === "horizontal") { s[0] = Ze(s[0], a.height), s[1] = Ze(s[1], a.height); var c = a.height - s[0] - s[1]; - pH(n, r, c); + v3(n, r, c); } else { s[0] = Ze(s[0], a.width), s[1] = Ze(s[1], a.width); var u = a.width - s[0] - s[1]; - pH(n, r, u); + v3(n, r, u); } n.setLayout("layoutInfo", o); }); } -function pH(e, t, r) { +function v3(e, t, r) { if (e.count()) for (var n = t.coordinateSystem, i = t.getLayerSeries(), o = e.mapDimension("single"), a = e.mapDimension("value"), s = Fe(i, function(v) { return Fe(v.indices, function(m) { var y = n.dataToPoint(e.get(o, m)); return y[1] = e.get(a, m), y; }); - }), l = lHe(s), c = l.y0, u = r / l.max, d = i.length, h = i[0].indices.length, f, p = 0; p < h; ++p) { + }), l = C3e(s), c = l.y0, u = r / l.max, d = i.length, h = i[0].indices.length, f, p = 0; p < h; ++p) { f = c[p] * u, e.setItemLayout(i[0].indices[p], { layerIndex: 0, x: s[0][p][0], @@ -82085,7 +82126,7 @@ function pH(e, t, r) { }); } } -function lHe(e) { +function C3e(e) { for (var t = e.length, r = e[0].length, n = [], i = [], o = 0, a = 0; a < r; ++a) { for (var s = 0, l = 0; l < t; ++l) s += e[l][a][1]; @@ -82103,20 +82144,20 @@ function lHe(e) { max: o }; } -function cHe(e) { - e.registerChartView(iHe), e.registerSeriesModel(aHe), e.registerLayout(sHe), e.registerProcessor(ly("themeRiver")); +function S3e(e) { + e.registerChartView(g3e), e.registerSeriesModel(m3e), e.registerLayout(y3e), e.registerProcessor(dy("themeRiver")); } -var uHe = 2, dHe = 4, gH = ( +var b3e = 2, w3e = 4, m3 = ( /** @class */ function(e) { Se(t, e); function t(r, n, i, o) { var a = e.call(this) || this; - a.z2 = uHe, a.textConfig = { + a.z2 = b3e, a.textConfig = { inside: !0 }, Ft(a).seriesIndex = n.seriesIndex; var s = new vr({ - z2: dHe, + z2: w3e, silent: r.getModel().get(["label", "silent"]) }); return a.setTextContent(s), a.updateData(!0, r, n, i, o), a; @@ -82130,7 +82171,7 @@ var uHe = 2, dHe = 4, gH = ( var h = n.getVisual("style"); h.lineJoin = "bevel"; var f = n.getVisual("decal"); - f && (h.decal = Bf(f, a)); + f && (h.decal = Hf(f, a)); var p = ad(l.getModel("itemStyle"), d, !0); Pe(d, p), z(no, function(y) { var C = s.ensureState(y), b = l.getModel([y, "itemStyle"]); @@ -82150,7 +82191,7 @@ var uHe = 2, dHe = 4, gH = ( Rn(this, m, c.get("blurScope"), c.get("disabled")); }, t.prototype._updateLabel = function(r) { var n = this, i = this.node.getModel(), o = i.getModel("label"), a = this.node.getLayout(), s = a.endAngle - a.startAngle, l = (a.startAngle + a.endAngle) / 2, c = Math.cos(l), u = Math.sin(l), d = this, h = d.getTextContent(), f = this.node.dataIndex, p = o.get("minAngle") / 180 * Math.PI, g = o.get("show") && !(p != null && Math.abs(s) < p); - h.ignore = !g, z(Kv, function(m) { + h.ignore = !g, z(qv, function(m) { var y = m === "normal" ? i.getModel("label") : i.getModel([m, "label"]), C = m === "normal", b = C ? h : h.ensureState(m), w = r.getFormattedLabel(f, m); C && (w = w || n.node.name), b.style = rn(y, {}, null, m !== "normal", !0), w && (b.style.text = w); var x = y.get("show"); @@ -82160,7 +82201,7 @@ var uHe = 2, dHe = 4, gH = ( outsideFill: y.get("color") === "inherit" ? P : null, inside: E !== "outside" }; - var T, _ = v(y, "distance") || 0, D = v(y, "align"), A = v(y, "rotate"), M = Math.PI * 0.5, O = Math.PI * 1.5, L = Ho(A === "tangential" ? Math.PI / 2 - l : l), N = L > M && !Lf(L - M) && L < O; + var T, _ = v(y, "distance") || 0, D = v(y, "align"), A = v(y, "rotate"), M = Math.PI * 0.5, O = Math.PI * 1.5, L = Ho(A === "tangential" ? Math.PI / 2 - l : l), N = L > M && !Nf(L - M) && L < O; E === "outside" ? (T = a.r + _, D = N ? "right" : "left") : !D || D === "center" ? (s === 2 * Math.PI && a.r0 === 0 ? T = 0 : T = (a.r + a.r0) / 2, D = "center") : D === "left" ? (T = a.r0 + _, D = N ? "right" : "left") : D === "right" && (T = a.r - _, D = N ? "left" : "right"), b.style.align = D, b.style.verticalAlign = v(y, "verticalAlign") || "middle", b.x = T * c + a.cx, b.y = T * u + a.cy; var F = 0; A === "radial" ? F = Ho(-l) + (N ? Math.PI : 0) : A === "tangential" ? F = Ho(Math.PI / 2 - l) + (N ? Math.PI : 0) : Cr(A) && (F = A * Math.PI / 180), b.rotation = Ho(F); @@ -82172,8 +82213,8 @@ var uHe = 2, dHe = 4, gH = ( h.dirtyStyle(); }, t; }(io) -), BM = "sunburstRootToNode", vH = "sunburstHighlight", hHe = "sunburstUnhighlight"; -function fHe(e) { +), BM = "sunburstRootToNode", y3 = "sunburstHighlight", x3e = "sunburstUnhighlight"; +function E3e(e) { e.registerAction({ type: BM, update: "updateView" @@ -82184,14 +82225,14 @@ function fHe(e) { query: t }, n); function n(i, o) { - var a = am(t, [BM], i); + var a = lm(t, [BM], i); if (a) { var s = i.getViewRoot(); s && (t.direction = QA(s, a.node) ? "rollUp" : "drillDown"), i.resetViewRoot(a.node); } } }), e.registerAction({ - type: vH, + type: y3, update: "none" }, function(t, r, n) { t = Pe({}, t), r.eachComponent({ @@ -82200,14 +82241,14 @@ function fHe(e) { query: t }, i); function i(o) { - var a = am(t, [vH], o); + var a = lm(t, [y3], o); a && (t.dataIndex = a.node.dataIndex); } process.env.NODE_ENV !== "production" && Nn("sunburstHighlight", "highlight"), n.dispatchAction(Pe(t, { type: "highlight" })); }), e.registerAction({ - type: hHe, + type: x3e, update: "updateView" }, function(t, r, n) { t = Pe({}, t), process.env.NODE_ENV !== "production" && Nn("sunburstUnhighlight", "downplay"), n.dispatchAction(Pe(t, { @@ -82215,7 +82256,7 @@ function fHe(e) { })); }); } -var pHe = ( +var R3e = ( /** @class */ function(e) { Se(t, e); @@ -82235,7 +82276,7 @@ var pHe = ( function p(y, C) { if (y.length === 0 && C.length === 0) return; - new zl(C, y, b, b).add(w).update(w).remove(Vt(w, null)).execute(); + new Gl(C, y, b, b).add(w).update(w).remove(Vt(w, null)).execute(); function b(x) { return x.getId(); } @@ -82249,7 +82290,7 @@ var pHe = ( if (C && C.piece) y ? (C.piece.updateData(!1, y, r, n, i), s.setItemGraphicEl(y.dataIndex, C.piece)) : v(C); else if (y) { - var b = new gH(y, r, n, i); + var b = new m3(y, r, n, i); u.add(b), s.setItemGraphicEl(y.dataIndex, b); } } @@ -82258,7 +82299,7 @@ var pHe = ( y && y.piece && (u.remove(y.piece), y.piece = null); } function m(y, C) { - C.depth > 0 ? (a.virtualPiece ? a.virtualPiece.updateData(!1, y, r, n, i) : (a.virtualPiece = new gH(y, r, n, i), u.add(a.virtualPiece)), C.piece.off("click"), a.virtualPiece.on("click", function(b) { + C.depth > 0 ? (a.virtualPiece ? a.virtualPiece.updateData(!1, y, r, n, i) : (a.virtualPiece = new m3(y, r, n, i), u.add(a.virtualPiece)), C.piece.off("click"), a.virtualPiece.on("click", function(b) { a._rootToNode(C.parentNode); })) : a.virtualPiece && (u.remove(a.virtualPiece), a.virtualPiece = null); } @@ -82275,7 +82316,7 @@ var pHe = ( var l = a.getModel(), c = l.get("link"); if (c) { var u = l.get("target", !0) || "_blank"; - NS(c, u); + $S(c, u); } } i = !0; @@ -82297,7 +82338,7 @@ var pHe = ( } }, t.type = "sunburst", t; }($r) -), gHe = ( +), P3e = ( /** @class */ function(e) { Se(t, e); @@ -82310,7 +82351,7 @@ var pHe = ( name: r.name, children: r.data }; - rJ(i); + oJ(i); var o = this._levelModels = Fe(r.levels || [], function(l) { return new Gr(l, this, n); }, this), a = ZA.createTree(i, this, s); @@ -82335,7 +82376,7 @@ var pHe = ( var n = this.getRawData().tree.root; (!r || r !== n && !n.contains(r)) && (this._viewRoot = n); }, t.prototype.enableAriaDecal = function() { - sQ(this); + uQ(this); }, t.type = "series.sunburst", t.defaultOption = { // zlevel: 0, z: 2, @@ -82405,23 +82446,23 @@ var pHe = ( }, t; }(jr) ); -function rJ(e) { +function oJ(e) { var t = 0; z(e.children, function(n) { - rJ(n); + oJ(n); var i = n.value; - Ie(i) && (i = i[0]), t += i; + Ae(i) && (i = i[0]), t += i; }); var r = e.value; - Ie(r) && (r = r[0]), (r == null || isNaN(r)) && (r = t), r < 0 && (r = 0), Ie(e.value) ? e.value[0] = r : e.value = r; + Ae(r) && (r = r[0]), (r == null || isNaN(r)) && (r = t), r < 0 && (r = 0), Ae(e.value) ? e.value[0] = r : e.value = r; } -var mH = Math.PI / 180; -function vHe(e, t, r) { +var C3 = Math.PI / 180; +function T3e(e, t, r) { t.eachSeriesByType(e, function(n) { var i = n.get("center"), o = n.get("radius"); - Ie(o) || (o = [0, o]), Ie(i) || (i = [i, i]); - var a = r.getWidth(), s = r.getHeight(), l = Math.min(a, s), c = Ze(i[0], a), u = Ze(i[1], s), d = Ze(o[0], l / 2), h = Ze(o[1], l / 2), f = -n.get("startAngle") * mH, p = n.get("minAngle") * mH, g = n.getData().tree.root, v = n.getViewRoot(), m = v.depth, y = n.get("sort"); - y != null && nJ(v, y); + Ae(o) || (o = [0, o]), Ae(i) || (i = [i, i]); + var a = r.getWidth(), s = r.getHeight(), l = Math.min(a, s), c = Ze(i[0], a), u = Ze(i[1], s), d = Ze(o[0], l / 2), h = Ze(o[1], l / 2), f = -n.get("startAngle") * C3, p = n.get("minAngle") * C3, g = n.getData().tree.root, v = n.getViewRoot(), m = v.depth, y = n.get("sort"); + y != null && aJ(v, y); var C = 0; z(v.children, function(L) { !isNaN(L.getValue()) && C++; @@ -82450,8 +82491,8 @@ function vHe(e, t, r) { } if (L.children && L.children.length) { var J = 0; - z(L.children, function(te) { - J += D(te, N + J); + z(L.children, function(re) { + J += D(re, N + J); }); } return F - N; @@ -82473,14 +82514,14 @@ function vHe(e, t, r) { D(v, f); }); } -function nJ(e, t) { +function aJ(e, t) { var r = e.children || []; - e.children = mHe(r, t), r.length && z(e.children, function(n) { - nJ(n, t); + e.children = _3e(r, t), r.length && z(e.children, function(n) { + aJ(n, t); }); } -function mHe(e, t) { - if (vt(t)) { +function _3e(e, t) { + if (mt(t)) { var r = Fe(e, function(i, o) { var a = i.getValue(); return { @@ -82508,13 +82549,13 @@ function mHe(e, t) { }); } } -function yHe(e) { +function M3e(e) { var t = {}; function r(n, i, o) { for (var a = n; a && a.depth > 1; ) a = a.parentNode; var s = i.getColorFromPalette(a.name || a.dataIndex + "", t); - return n.depth > 1 && Je(s) && (s = xS(s, (n.depth - 1) / (o - 1) * 0.5)), s; + return n.depth > 1 && Je(s) && (s = RS(s, (n.depth - 1) / (o - 1) * 0.5)), s; } e.eachSeriesByType("sunburst", function(n) { var i = n.getData(), o = i.tree; @@ -82526,13 +82567,13 @@ function yHe(e) { }); }); } -function CHe(e) { - e.registerChartView(pHe), e.registerSeriesModel(gHe), e.registerLayout(Vt(vHe, "sunburst")), e.registerProcessor(Vt(ly, "sunburst")), e.registerVisual(yHe), fHe(e); +function D3e(e) { + e.registerChartView(R3e), e.registerSeriesModel(P3e), e.registerLayout(Vt(T3e, "sunburst")), e.registerProcessor(Vt(dy, "sunburst")), e.registerVisual(M3e), E3e(e); } -var yH = { +var S3 = { color: "fill", borderColor: "stroke" -}, SHe = { +}, I3e = { symbol: 1, symbolSize: 1, symbolKeepAspect: 1, @@ -82540,7 +82581,7 @@ var yH = { visualMeta: 1, liftZ: 1, decal: 1 -}, Dl = yr(), bHe = ( +}, Il = yr(), A3e = ( /** @class */ function(e) { Se(t, e); @@ -82551,10 +82592,10 @@ var yH = { return t.prototype.optionUpdated = function() { this.currentZLevel = this.get("zlevel", !0), this.currentZ = this.get("z", !0); }, t.prototype.getInitialData = function(r, n) { - return rl(null, this); + return nl(null, this); }, t.prototype.getDataParams = function(r, n, i) { var o = e.prototype.getDataParams.call(this, r, n); - return i && (o.info = Dl(i).info), o; + return i && (o.info = Il(i).info), o; }, t.type = "series.custom", t.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], t.defaultOption = { coordinateSystem: "cartesian2d", // zlevel: 0, @@ -82574,13 +82615,13 @@ var yH = { }, t; }(jr) ); -function wHe(e, t) { +function O3e(e, t) { return t = t || [0, 0], Fe(["x", "y"], function(r, n) { var i = this.getAxis(r), o = t[n], a = e[n] / 2; return i.type === "category" ? i.getBandWidth() : Math.abs(i.dataToCoord(o - a) - i.dataToCoord(o + a)); }, this); } -function xHe(e) { +function L3e(e) { var t = e.master.getRect(); return { coordSys: { @@ -82595,17 +82636,17 @@ function xHe(e) { coord: function(r) { return e.dataToPoint(r); }, - size: at(wHe, e) + size: at(O3e, e) } }; } -function EHe(e, t) { +function F3e(e, t) { return t = t || [0, 0], Fe([0, 1], function(r) { var n = t[r], i = e[r] / 2, o = [], a = []; return o[r] = n - i, a[r] = n + i, o[1 - r] = a[1 - r] = t[1 - r], Math.abs(this.dataToPoint(o)[r] - this.dataToPoint(a)[r]); }, this); } -function RHe(e) { +function N3e(e) { var t = e.getBoundingRect(); return { coordSys: { @@ -82620,15 +82661,15 @@ function RHe(e) { coord: function(r) { return e.dataToPoint(r); }, - size: at(EHe, e) + size: at(F3e, e) } }; } -function PHe(e, t) { +function k3e(e, t) { var r = this.getAxis(), n = t instanceof Array ? t[0] : t, i = (e instanceof Array ? e[0] : e) / 2; return r.type === "category" ? r.getBandWidth() : Math.abs(r.dataToCoord(n - i) - r.dataToCoord(n + i)); } -function THe(e) { +function $3e(e) { var t = e.getRect(); return { coordSys: { @@ -82642,17 +82683,17 @@ function THe(e) { coord: function(r) { return e.dataToPoint(r); }, - size: at(PHe, e) + size: at(k3e, e) } }; } -function _He(e, t) { +function B3e(e, t) { return t = t || [0, 0], Fe(["Radius", "Angle"], function(r, n) { var i = "get" + r + "Axis", o = this[i](), a = t[n], s = e[n] / 2, l = o.type === "category" ? o.getBandWidth() : Math.abs(o.dataToCoord(a - s) - o.dataToCoord(a + s)); return r === "Angle" && (l = l * Math.PI / 180), l; }, this); } -function MHe(e) { +function V3e(e) { var t = e.getRadiusAxis(), r = e.getAngleAxis(), n = t.getExtent(); return n[0] > n[1] && n.reverse(), { coordSys: { @@ -82667,11 +82708,11 @@ function MHe(e) { var o = t.dataToRadius(i[0]), a = r.dataToAngle(i[1]), s = e.coordToPoint([o, a]); return s.push(o, a * Math.PI / 180), s; }, - size: at(_He, e) + size: at(B3e, e) } }; } -function DHe(e) { +function H3e(e) { var t = e.getRect(), r = e.getRangeInfo(); return { coordSys: { @@ -82696,11 +82737,11 @@ function DHe(e) { } }; } -var CH = {}; -function iJ(e, t, r, n) { +var b3 = {}; +function sJ(e, t, r, n) { return e && (e.legacy || e.legacy !== !1 && !r && !n && t !== "tspan" && (t === "text" || lt(e, "text"))); } -function oJ(e, t, r) { +function lJ(e, t, r) { var n = e, i, o, a; if (t === "text") a = n; @@ -82718,76 +82759,76 @@ function oJ(e, t, r) { var s = lt(n, "textPosition"); r ? i.position = s ? n.textPosition : "inside" : s && (i.position = n.textPosition), lt(n, "textPosition") && (i.position = n.textPosition), lt(n, "textOffset") && (i.offset = n.textOffset), lt(n, "textRotation") && (i.rotation = n.textRotation), lt(n, "textDistance") && (i.distance = n.textDistance); } - return SH(a, e), z(a.rich, function(l) { - SH(l, l); + return w3(a, e), z(a.rich, function(l) { + w3(l, l); }), { textConfig: i, textContent: o }; } -function SH(e, t) { +function w3(e, t) { t && (t.font = t.textFont || t.font, lt(t, "textStrokeWidth") && (e.lineWidth = t.textStrokeWidth), lt(t, "textAlign") && (e.align = t.textAlign), lt(t, "textVerticalAlign") && (e.verticalAlign = t.textVerticalAlign), lt(t, "textLineHeight") && (e.lineHeight = t.textLineHeight), lt(t, "textWidth") && (e.width = t.textWidth), lt(t, "textHeight") && (e.height = t.textHeight), lt(t, "textBackgroundColor") && (e.backgroundColor = t.textBackgroundColor), lt(t, "textPadding") && (e.padding = t.textPadding), lt(t, "textBorderColor") && (e.borderColor = t.textBorderColor), lt(t, "textBorderWidth") && (e.borderWidth = t.textBorderWidth), lt(t, "textBorderRadius") && (e.borderRadius = t.textBorderRadius), lt(t, "textBoxShadowColor") && (e.shadowColor = t.textBoxShadowColor), lt(t, "textBoxShadowBlur") && (e.shadowBlur = t.textBoxShadowBlur), lt(t, "textBoxShadowOffsetX") && (e.shadowOffsetX = t.textBoxShadowOffsetX), lt(t, "textBoxShadowOffsetY") && (e.shadowOffsetY = t.textBoxShadowOffsetY)); } -function bH(e, t, r) { +function x3(e, t, r) { var n = e; n.textPosition = n.textPosition || r.position || "inside", r.offset != null && (n.textOffset = r.offset), r.rotation != null && (n.textRotation = r.rotation), r.distance != null && (n.textDistance = r.distance); var i = n.textPosition.indexOf("inside") >= 0, o = e.fill || "#000"; - wH(n, t); + E3(n, t); var a = n.textFill == null; return i ? a && (n.textFill = r.insideFill || "#fff", !n.textStroke && r.insideStroke && (n.textStroke = r.insideStroke), !n.textStroke && (n.textStroke = o), n.textStrokeWidth == null && (n.textStrokeWidth = 2)) : (a && (n.textFill = e.fill || r.outsideFill || "#000"), !n.textStroke && r.outsideStroke && (n.textStroke = r.outsideStroke)), n.text = t.text, n.rich = t.rich, z(t.rich, function(s) { - wH(s, s); + E3(s, s); }), n; } -function wH(e, t) { +function E3(e, t) { t && (lt(t, "fill") && (e.textFill = t.fill), lt(t, "stroke") && (e.textStroke = t.fill), lt(t, "lineWidth") && (e.textStrokeWidth = t.lineWidth), lt(t, "font") && (e.font = t.font), lt(t, "fontStyle") && (e.fontStyle = t.fontStyle), lt(t, "fontWeight") && (e.fontWeight = t.fontWeight), lt(t, "fontSize") && (e.fontSize = t.fontSize), lt(t, "fontFamily") && (e.fontFamily = t.fontFamily), lt(t, "align") && (e.textAlign = t.align), lt(t, "verticalAlign") && (e.textVerticalAlign = t.verticalAlign), lt(t, "lineHeight") && (e.textLineHeight = t.lineHeight), lt(t, "width") && (e.textWidth = t.width), lt(t, "height") && (e.textHeight = t.height), lt(t, "backgroundColor") && (e.textBackgroundColor = t.backgroundColor), lt(t, "padding") && (e.textPadding = t.padding), lt(t, "borderColor") && (e.textBorderColor = t.borderColor), lt(t, "borderWidth") && (e.textBorderWidth = t.borderWidth), lt(t, "borderRadius") && (e.textBorderRadius = t.borderRadius), lt(t, "shadowColor") && (e.textBoxShadowColor = t.shadowColor), lt(t, "shadowBlur") && (e.textBoxShadowBlur = t.shadowBlur), lt(t, "shadowOffsetX") && (e.textBoxShadowOffsetX = t.shadowOffsetX), lt(t, "shadowOffsetY") && (e.textBoxShadowOffsetY = t.shadowOffsetY), lt(t, "textShadowColor") && (e.textShadowColor = t.textShadowColor), lt(t, "textShadowBlur") && (e.textShadowBlur = t.textShadowBlur), lt(t, "textShadowOffsetX") && (e.textShadowOffsetX = t.textShadowOffsetX), lt(t, "textShadowOffsetY") && (e.textShadowOffsetY = t.textShadowOffsetY)); } -function xH(e, t) { +function R3(e, t) { if (process.env.NODE_ENV !== "production") { var r = e + "^_^" + t; - CH[r] || (console.warn('[ECharts] DEPRECATED: "' + e + '" has been deprecated. ' + t), CH[r] = !0); + b3[r] || (console.warn('[ECharts] DEPRECATED: "' + e + '" has been deprecated. ' + t), b3[r] = !0); } } -var aJ = { +var cJ = { position: ["x", "y"], scale: ["scaleX", "scaleY"], origin: ["originX", "originY"] -}, EH = ar(aJ), ab = Ra(Us, function(e, t) { +}, P3 = ar(cJ), lb = Ra(Us, function(e, t) { return e[t] = 1, e; -}, {}), RH = Us.join(", "), sb = ["", "style", "shape", "extra"], Gf = yr(); +}, {}), T3 = Us.join(", "), cb = ["", "style", "shape", "extra"], jf = yr(); function fO(e, t, r, n, i) { - var o = e + "Animation", a = fp(e, n, i) || {}, s = Gf(t).userDuring; - return a.duration > 0 && (a.during = s ? at(FHe, { + var o = e + "Animation", a = gp(e, n, i) || {}, s = jf(t).userDuring; + return a.duration > 0 && (a.during = s ? at(U3e, { el: t, userDuring: s }) : null, a.setToFinal = !0, a.scope = e), Pe(a, r[o]), a; } -function AC(e, t, r, n) { +function FC(e, t, r, n) { n = n || {}; - var i = n.dataIndex, o = n.isInit, a = n.clearStyle, s = r.isAnimationEnabled(), l = Gf(e), c = t.style; + var i = n.dataIndex, o = n.isInit, a = n.clearStyle, s = r.isAnimationEnabled(), l = jf(e), c = t.style; l.userDuring = t.during; var u = {}, d = {}; - if (kHe(e, t, d), TH("shape", t, d), TH("extra", t, d), !o && s && (NHe(e, t, u), PH("shape", e, t, u), PH("extra", e, t, u), $He(e, t, c, u)), d.style = c, IHe(e, d, a), OHe(e, t), s) + if (Y3e(e, t, d), M3("shape", t, d), M3("extra", t, d), !o && s && (K3e(e, t, u), _3("shape", e, t, u), _3("extra", e, t, u), q3e(e, t, c, u)), d.style = c, z3e(e, d, a), W3e(e, t), s) if (o) { var h = {}; - z(sb, function(p) { + z(cb, function(p) { var g = p ? t[p] : t; g && g.enterFrom && (p && (h[p] = h[p] || {}), Pe(p ? h[p] : h, g.enterFrom)); }); var f = fO("enter", e, t, r, i); f.duration > 0 && e.animateFrom(h, f); } else - AHe(e, t, i || 0, r, u); - sJ(e, t), c ? e.dirty() : e.markRedraw(); + G3e(e, t, i || 0, r, u); + uJ(e, t), c ? e.dirty() : e.markRedraw(); } -function sJ(e, t) { - for (var r = Gf(e).leaveToProps, n = 0; n < sb.length; n++) { - var i = sb[n], o = i ? t[i] : t; - o && o.leaveTo && (r || (r = Gf(e).leaveToProps = {}), i && (r[i] = r[i] || {}), Pe(i ? r[i] : r, o.leaveTo)); +function uJ(e, t) { + for (var r = jf(e).leaveToProps, n = 0; n < cb.length; n++) { + var i = cb[n], o = i ? t[i] : t; + o && o.leaveTo && (r || (r = jf(e).leaveToProps = {}), i && (r[i] = r[i] || {}), Pe(i ? r[i] : r, o.leaveTo)); } } function d1(e, t, r, n) { if (e) { - var i = e.parent, o = Gf(e).leaveToProps; + var i = e.parent, o = jf(e).leaveToProps; if (o) { var a = fO("update", e, t, r, 0); a.done = function() { @@ -82800,7 +82841,7 @@ function d1(e, t, r, n) { function vd(e) { return e === "all"; } -function IHe(e, t, r) { +function z3e(e, t, r) { var n = t.style; if (!e.isGroup && n) { if (r) { @@ -82814,22 +82855,22 @@ function IHe(e, t, r) { } t && (t.style = null, t && e.attr(t), t.style = n); } -function AHe(e, t, r, n, i) { +function G3e(e, t, r, n, i) { if (i) { var o = fO("update", e, t, n, r); o.duration > 0 && e.animateFrom(i, o); } } -function OHe(e, t) { +function W3e(e, t) { lt(t, "silent") && (e.silent = t.silent), lt(t, "ignore") && (e.ignore = t.ignore), e instanceof Ta && lt(t, "invisible") && (e.invisible = t.invisible), e instanceof nr && lt(t, "autoBatch") && (e.autoBatch = t.autoBatch); } -var xs = {}, LHe = { +var xs = {}, j3e = { // Usually other props do not need to be changed in animation during. setTransform: function(e, t) { - return process.env.NODE_ENV !== "production" && xt(lt(ab, e), "Only " + RH + " available in `setTransform`."), xs.el[e] = t, this; + return process.env.NODE_ENV !== "production" && Et(lt(lb, e), "Only " + T3 + " available in `setTransform`."), xs.el[e] = t, this; }, getTransform: function(e) { - return process.env.NODE_ENV !== "production" && xt(lt(ab, e), "Only " + RH + " available in `getTransform`."), xs.el[e]; + return process.env.NODE_ENV !== "production" && Et(lt(lb, e), "Only " + T3 + " available in `getTransform`."), xs.el[e]; }, setShape: function(e, t) { process.env.NODE_ENV !== "production" && Fh(e); @@ -82869,18 +82910,18 @@ function Fh(e) { if (process.env.NODE_ENV !== "production" && (e === "transition" || e === "enterFrom" || e === "leaveTo")) throw new Error('key must not be "' + e + '"'); } -function FHe() { +function U3e() { var e = this, t = e.el; if (t) { - var r = Gf(t).userDuring, n = e.userDuring; + var r = jf(t).userDuring, n = e.userDuring; if (r !== n) { e.el = e.userDuring = null; return; } - xs.el = t, n(LHe); + xs.el = t, n(j3e); } } -function PH(e, t, r, n) { +function _3(e, t, r, n) { var i = r[e]; if (i) { var o = t[e], a; @@ -82894,36 +82935,36 @@ function PH(e, t, r, n) { var d = c[u], h = o[d]; a[d] = h; } - else if (vd(s) || Yt(s, e) >= 0) { + else if (vd(s) || qt(s, e) >= 0) { !a && (a = n[e] = {}); for (var f = ar(o), u = 0; u < f.length; u++) { var d = f[u], h = o[d]; - BHe(i[d], h) && (a[d] = h); + X3e(i[d], h) && (a[d] = h); } } } } } -function TH(e, t, r) { +function M3(e, t, r) { var n = t[e]; if (n) for (var i = r[e] = {}, o = ar(n), a = 0; a < o.length; a++) { var s = o[a]; - i[s] = tv(n[s]); + i[s] = nv(n[s]); } } -function NHe(e, t, r) { +function K3e(e, t, r) { for (var n = t.transition, i = vd(n) ? Us : Wr(n || []), o = 0; o < i.length; o++) { var a = i[o]; if (!(a === "style" || a === "shape" || a === "extra")) { var s = e[a]; - process.env.NODE_ENV !== "production" && lJ(a, "el.transition"), r[a] = s; + process.env.NODE_ENV !== "production" && dJ(a, "el.transition"), r[a] = s; } } } -function kHe(e, t, r) { - for (var n = 0; n < EH.length; n++) { - var i = EH[n], o = aJ[i], a = t[i]; +function Y3e(e, t, r) { + for (var n = 0; n < P3.length; n++) { + var i = P3[n], o = cJ[i], a = t[i]; a && (r[o[0]] = a[0], r[o[1]] = a[1]); } for (var n = 0; n < Us.length; n++) { @@ -82931,7 +82972,7 @@ function kHe(e, t, r) { t[s] != null && (r[s] = t[s]); } } -function $He(e, t, r, n) { +function q3e(e, t, r, n) { if (r) { var i = e.style, o; if (i) { @@ -82943,7 +82984,7 @@ function $He(e, t, r, n) { var u = l[c], d = i[u]; o[u] = d; } - } else if (e.getAnimationStyleProps && (vd(s) || vd(a) || Yt(s, "style") >= 0)) { + } else if (e.getAnimationStyleProps && (vd(s) || vd(a) || qt(s, "style") >= 0)) { var h = e.getAnimationStyleProps(), f = h ? h.style : null; if (f) { !o && (o = n.style = {}); @@ -82959,33 +83000,33 @@ function $He(e, t, r, n) { } } } -function BHe(e, t) { - return wi(e) ? e !== t : e != null && isFinite(e); +function X3e(e, t) { + return xi(e) ? e !== t : e != null && isFinite(e); } -var lJ; -process.env.NODE_ENV !== "production" && (lJ = function(e, t) { - lt(ab, e) || Cn("Prop `" + e + "` is not a permitted in `" + t + "`. Only `" + ar(ab).join("`, `") + "` are permitted."); +var dJ; +process.env.NODE_ENV !== "production" && (dJ = function(e, t) { + lt(lb, e) || Cn("Prop `" + e + "` is not a permitted in `" + t + "`. Only `" + ar(lb).join("`, `") + "` are permitted."); }); -var cJ = yr(), VHe = ["percent", "easing", "shape", "style", "extra"]; -function uJ(e) { - e.stopAnimation("keyframe"), e.attr(cJ(e)); +var hJ = yr(), Z3e = ["percent", "easing", "shape", "style", "extra"]; +function fJ(e) { + e.stopAnimation("keyframe"), e.attr(hJ(e)); } -function lb(e, t, r) { +function ub(e, t, r) { if (!(!r.isAnimationEnabled() || !t)) { - if (Ie(t)) { + if (Ae(t)) { z(t, function(s) { - lb(e, s, r); + ub(e, s, r); }); return; } var n = t.keyframes, i = t.duration; if (r && i == null) { - var o = fp("enter", r, 0); + var o = gp("enter", r, 0); i = o && o.duration; } if (!(!n || !i)) { - var a = cJ(e); - z(sb, function(s) { + var a = hJ(e); + z(cb, function(s) { if (!(s && !e[s])) { var l, c = !1; n.sort(function(u, d) { @@ -82994,8 +83035,8 @@ function lb(e, t, r) { var d = e.animators, h = s ? u[s] : u; if (process.env.NODE_ENV !== "production" && u.percent >= 1 && (c = !0), !!h) { var f = ar(h); - if (s || (f = Fr(f, function(v) { - return Yt(VHe, v) < 0; + if (s || (f = Nr(f, function(v) { + return qt(Z3e, v) < 0; })), !!f.length) { l || (l = e.animate(s, t.loop, !0), l.scope = "keyframe"); for (var p = 0; p < d.length; p++) @@ -83013,38 +83054,38 @@ function lb(e, t, r) { } } } -var Il = "emphasis", Ec = "normal", pO = "blur", gO = "select", Yc = [Ec, Il, pO, gO], AR = { +var Al = "emphasis", Ec = "normal", pO = "blur", gO = "select", Yc = [Ec, Al, pO, gO], AR = { normal: ["itemStyle"], - emphasis: [Il, "itemStyle"], + emphasis: [Al, "itemStyle"], blur: [pO, "itemStyle"], select: [gO, "itemStyle"] }, OR = { normal: ["label"], - emphasis: [Il, "label"], + emphasis: [Al, "label"], blur: [pO, "label"], select: [gO, "label"] -}, HHe = ["x", "y"], zHe = "e\0\0", na = { +}, Q3e = ["x", "y"], J3e = "e\0\0", na = { normal: {}, emphasis: {}, blur: {}, select: {} -}, _H = { - cartesian2d: xHe, - geo: RHe, - single: THe, - polar: MHe, - calendar: DHe +}, D3 = { + cartesian2d: L3e, + geo: N3e, + single: $3e, + polar: V3e, + calendar: H3e }; -function cb(e) { +function db(e) { return e instanceof nr; } function VM(e) { return e instanceof Ta; } -function GHe(e, t) { - t.copyTransform(e), VM(t) && VM(e) && (t.setStyle(e.style), t.z = e.z, t.z2 = e.z2, t.zlevel = e.zlevel, t.invisible = e.invisible, t.ignore = e.ignore, cb(t) && cb(e) && t.setShape(e.shape)); +function e5e(e, t) { + t.copyTransform(e), VM(t) && VM(e) && (t.setStyle(e.style), t.z = e.z, t.z2 = e.z2, t.zlevel = e.zlevel, t.invisible = e.invisible, t.ignore = e.ignore, db(t) && db(e) && t.setShape(e.shape)); } -var WHe = ( +var t5e = ( /** @class */ function(e) { Se(t, e); @@ -83054,22 +83095,22 @@ var WHe = ( } return t.prototype.render = function(r, n, i, o) { this._progressiveEls = null; - var a = this._data, s = r.getData(), l = this.group, c = MH(r, s, n, i); + var a = this._data, s = r.getData(), l = this.group, c = I3(r, s, n, i); a || l.removeAll(), s.diff(a).add(function(d) { LR(i, null, d, c(d, o), r, l, s); }).remove(function(d) { var h = a.getItemGraphicEl(d); - h && d1(h, Dl(h).option, r); + h && d1(h, Il(h).option, r); }).update(function(d, h) { var f = a.getItemGraphicEl(h); LR(i, f, d, c(d, o), r, l, s); }).execute(); - var u = r.get("clip", !0) ? ay(r.coordinateSystem, !1, r) : null; + var u = r.get("clip", !0) ? cy(r.coordinateSystem, !1, r) : null; u ? l.setClipPath(u) : l.removeClipPath(), this._data = s; }, t.prototype.incrementalPrepareRender = function(r, n, i) { this.group.removeAll(), this._data = null; }, t.prototype.incrementalRender = function(r, n, i, o, a) { - var s = n.getData(), l = MH(n, s, i, o), c = this._progressiveEls = []; + var s = n.getData(), l = I3(n, s, i, o), c = this._progressiveEls = []; function u(f) { f.isGroup || (f.incremental = !0, f.ensureState("emphasis").hoverLayer = !0); } @@ -83098,10 +83139,10 @@ function vO(e) { y: n.y || 0, width: n.width, height: n.height - } : null, o = fJ(n); - r = Jm(o, null, i, n.layout || "center"), Dl(r).customPathData = o; + } : null, o = vJ(n); + r = ry(o, null, i, n.layout || "center"), Il(r).customPathData = o; } else if (t === "image") - r = new yi({}), Dl(r).customImagePath = e.style.image; + r = new Ci({}), Il(r).customImagePath = e.style.image; else if (t === "text") r = new vr({}); else if (t === "group") @@ -83116,32 +83157,32 @@ function vO(e) { } r = new a(); } - return Dl(r).customGraphicType = t, r.name = e.name, r.z2EmphasisLift = 1, r.z2SelectLift = 1, r; + return Il(r).customGraphicType = t, r.name = e.name, r.z2EmphasisLift = 1, r.z2SelectLift = 1, r; } function mO(e, t, r, n, i, o, a) { - uJ(t); + fJ(t); var s = i && i.normal.cfg; - s && t.setTextConfig(s), n && n.transition == null && (n.transition = HHe); + s && t.setTextConfig(s), n && n.transition == null && (n.transition = Q3e); var l = n && n.style; if (l) { if (t.type === "text") { var c = l; lt(c, "textFill") && (c.fill = c.textFill), lt(c, "textStroke") && (c.stroke = c.textStroke); } - var u = void 0, d = cb(t) ? l.decal : null; - e && d && (d.dirty = !0, u = Bf(d, e)), l.__decalPattern = u; + var u = void 0, d = db(t) ? l.decal : null; + e && d && (d.dirty = !0, u = Hf(d, e)), l.__decalPattern = u; } if (VM(t) && l) { var u = l.__decalPattern; u && (l.decal = u); } - AC(t, n, o, { + FC(t, n, o, { dataIndex: r, isInit: a, clearStyle: !0 - }), lb(t, n.keyframeAnimation, o); + }), ub(t, n.keyframeAnimation, o); } -function dJ(e, t, r, n, i) { +function pJ(e, t, r, n, i) { var o = t.isGroup ? null : t, a = i && i[e].cfg; if (o) { var s = o.ensureState(e); @@ -83153,24 +83194,24 @@ function dJ(e, t, r, n, i) { a && (s.textConfig = a), Ad(o); } } -function jHe(e, t, r) { +function r5e(e, t, r) { if (!e.isGroup) { var n = e, i = r.currentZ, o = r.currentZLevel; n.z = i, n.zlevel = o; var a = t.z2; a != null && (n.z2 = a || 0); for (var s = 0; s < Yc.length; s++) - UHe(n, t, Yc[s]); + n5e(n, t, Yc[s]); } } -function UHe(e, t, r) { - var n = r === Ec, i = n ? t : ub(t, r), o = i ? i.z2 : null, a; +function n5e(e, t, r) { + var n = r === Ec, i = n ? t : hb(t, r), o = i ? i.z2 : null, a; o != null && (a = n ? e : e.ensureState(r), a.z2 = o || 0); } -function MH(e, t, r, n) { +function I3(e, t, r, n) { var i = e.get("renderItem"), o = e.coordinateSystem, a = {}; - o && (process.env.NODE_ENV !== "production" && (xt(i, "series.render is required."), xt(o.prepareCustoms || _H[o.type], "This coordSys does not support custom series.")), a = o.prepareCustoms ? o.prepareCustoms(o) : _H[o.type](o)); - for (var s = wt({ + o && (process.env.NODE_ENV !== "production" && (Et(i, "series.render is required."), Et(o.prepareCustoms || D3[o.type], "This coordSys does not support custom series.")), a = o.prepareCustoms ? o.prepareCustoms(o) : D3[o.type](o)); + for (var s = xt({ getWidth: n.getWidth, getHeight: n.getHeight, getZr: n.getZr, @@ -83193,7 +83234,7 @@ function MH(e, t, r, n) { seriesIndex: e.seriesIndex, coordSys: a.coordSys, dataInsideLength: t.count(), - encode: KHe(e.getData()) + encode: i5e(e.getData()) }, c, u, d = {}, h = {}, f = {}, p = {}, g = 0; g < Yc.length; g++) { var v = Yc[g]; f[v] = e.getModel(AR[v]), p[v] = e.getModel(OR[v]); @@ -83208,7 +83249,7 @@ function MH(e, t, r, n) { return t.hasItemOption ? M === c ? h[O] || (h[O] = m(M).getModel(OR[O])) : m(M).getModel(OR[O]) : p[O]; } return function(M, O) { - return c = M, u = null, d = {}, h = {}, i && i(wt({ + return c = M, u = null, d = {}, h = {}, i && i(xt({ dataIndexInside: M, dataIndex: t.getRawIndex(M), // Can be used for optimization when zoom or roam. @@ -83229,22 +83270,22 @@ function MH(e, t, r, n) { return $ ? $.categories[F] : F; } function x(M, O) { - process.env.NODE_ENV !== "production" && xH("api.style", "Please write literal style directly instead."), O == null && (O = c); + process.env.NODE_ENV !== "production" && R3("api.style", "Please write literal style directly instead."), O == null && (O = c); var L = t.getItemVisual(O, "style"), N = L && L.fill, F = L && L.opacity, $ = y(O, Ec).getItemStyle(); N != null && ($.fill = N), F != null && ($.opacity = F); var I = { inheritColor: Je(N) ? N : "#000" }, V = C(O, Ec), H = rn(V, null, I, !1, !0); - H.text = V.getShallow("show") ? $t(e.getFormattedLabel(O, Ec), Vf(t, O)) : null; - var B = LS(V, I, !1); - return P(M, $), $ = bH($, H, B), M && R($, M), $.legacy = !0, $; + H.text = V.getShallow("show") ? $t(e.getFormattedLabel(O, Ec), zf(t, O)) : null; + var B = NS(V, I, !1); + return P(M, $), $ = x3($, H, B), M && R($, M), $.legacy = !0, $; } function E(M, O) { - process.env.NODE_ENV !== "production" && xH("api.styleEmphasis", "Please write literal style directly instead."), O == null && (O = c); - var L = y(O, Il).getItemStyle(), N = C(O, Il), F = rn(N, null, null, !0, !0); - F.text = N.getShallow("show") ? Go(e.getFormattedLabel(O, Il), e.getFormattedLabel(O, Ec), Vf(t, O)) : null; - var $ = LS(N, null, !0); - return P(M, L), L = bH(L, F, $), M && R(L, M), L.legacy = !0, L; + process.env.NODE_ENV !== "production" && R3("api.styleEmphasis", "Please write literal style directly instead."), O == null && (O = c); + var L = y(O, Al).getItemStyle(), N = C(O, Al), F = rn(N, null, null, !0, !0); + F.text = N.getShallow("show") ? Go(e.getFormattedLabel(O, Al), e.getFormattedLabel(O, Ec), zf(t, O)) : null; + var $ = NS(N, null, !0); + return P(M, L), L = x3(L, F, $), M && R(L, M), L.legacy = !0, L; } function R(M, O) { for (var L in O) @@ -83254,17 +83295,17 @@ function MH(e, t, r, n) { M && (M.textFill && (O.textFill = M.textFill), M.textPosition && (O.textPosition = M.textPosition)); } function T(M, O) { - if (O == null && (O = c), lt(yH, M)) { + if (O == null && (O = c), lt(S3, M)) { var L = t.getItemVisual(O, "style"); - return L ? L[yH[M]] : null; + return L ? L[S3[M]] : null; } - if (lt(SHe, M)) + if (lt(I3e, M)) return t.getItemVisual(O, M); } function _(M) { if (o.type === "cartesian2d") { var O = o.getBaseAxis(); - return wFe(wt({ + return OFe(xt({ axis: O }, M)); } @@ -83273,10 +83314,10 @@ function MH(e, t, r, n) { return r.getCurrentSeriesIndices(); } function A(M) { - return Z2(M, r); + return ZI(M, r); } } -function KHe(e) { +function i5e(e) { var t = {}; return z(e.dimensions, function(r) { var n = e.getDimensionInfo(r); @@ -83295,40 +83336,40 @@ function LR(e, t, r, n, i, o, a) { return s && a.setItemGraphicEl(r, s), s && Rn(s, n.focus, n.blurScope, n.emphasisDisabled), s; } function yO(e, t, r, n, i, o) { - process.env.NODE_ENV !== "production" && xt(n, "should not have an null/undefined element setting"); + process.env.NODE_ENV !== "production" && Et(n, "should not have an null/undefined element setting"); var a = -1, s = t; - t && hJ(t, n, i) && (a = Yt(o.childrenRef(), t), t = null); + t && gJ(t, n, i) && (a = qt(o.childrenRef(), t), t = null); var l = !t, c = t; - c ? c.clearStates() : (c = vO(n), s && GHe(s, c)), n.morph === !1 ? c.disableMorphing = !0 : c.disableMorphing && (c.disableMorphing = !1), na.normal.cfg = na.normal.conOpt = na.emphasis.cfg = na.emphasis.conOpt = na.blur.cfg = na.blur.conOpt = na.select.cfg = na.select.conOpt = null, na.isLegacy = !1, qHe(c, r, n, i, l, na), YHe(c, r, n, i, l), mO(e, c, r, n, na, i, l), lt(n, "info") && (Dl(c).info = n.info); + c ? c.clearStates() : (c = vO(n), s && e5e(s, c)), n.morph === !1 ? c.disableMorphing = !0 : c.disableMorphing && (c.disableMorphing = !1), na.normal.cfg = na.normal.conOpt = na.emphasis.cfg = na.emphasis.conOpt = na.blur.cfg = na.blur.conOpt = na.select.cfg = na.select.conOpt = null, na.isLegacy = !1, a5e(c, r, n, i, l, na), o5e(c, r, n, i, l), mO(e, c, r, n, na, i, l), lt(n, "info") && (Il(c).info = n.info); for (var u = 0; u < Yc.length; u++) { var d = Yc[u]; if (d !== Ec) { - var h = ub(n, d), f = CO(n, h, d); - dJ(d, c, h, f, na); + var h = hb(n, d), f = CO(n, h, d); + pJ(d, c, h, f, na); } } - return jHe(c, n, i), n.type === "group" && XHe(e, c, r, n, i), a >= 0 ? o.replaceAt(c, a) : o.add(c), c; + return r5e(c, n, i), n.type === "group" && s5e(e, c, r, n, i), a >= 0 ? o.replaceAt(c, a) : o.add(c), c; } -function hJ(e, t, r) { - var n = Dl(e), i = t.type, o = t.shape, a = t.style; +function gJ(e, t, r) { + var n = Il(e), i = t.type, o = t.shape, a = t.style; return ( // Always create new if universal transition is enabled. // Because we do transition after render. It needs to know what old element is. Replacement will loose it. - r.isUniversalTransitionEnabled() || i != null && i !== n.customGraphicType || i === "path" && e3e(o) && fJ(o) !== n.customPathData || i === "image" && lt(a, "image") && a.image !== n.customImagePath + r.isUniversalTransitionEnabled() || i != null && i !== n.customGraphicType || i === "path" && d5e(o) && vJ(o) !== n.customPathData || i === "image" && lt(a, "image") && a.image !== n.customImagePath ); } -function YHe(e, t, r, n, i) { +function o5e(e, t, r, n, i) { var o = r.clipPath; if (o === !1) e && e.getClipPath() && e.removeClipPath(); else if (o) { var a = e.getClipPath(); - a && hJ(a, o, n) && (a = null), a || (a = vO(o), process.env.NODE_ENV !== "production" && xt(cb(a), "Only any type of `path` can be used in `clipPath`, rather than " + a.type + "."), e.setClipPath(a)), mO(null, a, t, o, null, n, i); + a && gJ(a, o, n) && (a = null), a || (a = vO(o), process.env.NODE_ENV !== "production" && Et(db(a), "Only any type of `path` can be used in `clipPath`, rather than " + a.type + "."), e.setClipPath(a)), mO(null, a, t, o, null, n, i); } } -function qHe(e, t, r, n, i, o) { +function a5e(e, t, r, n, i, o) { if (!e.isGroup) { - DH(r, null, o), DH(r, Il, o); + A3(r, null, o), A3(r, Al, o); var a = o.normal.conOpt, s = o.emphasis.conOpt, l = o.blur.conOpt, c = o.select.conOpt; if (a != null || s != null || c != null || l != null) { var u = e.getTextContent(); @@ -83342,7 +83383,7 @@ function qHe(e, t, r, n, i, o) { var f = Yc[h]; if (f !== Ec) { var p = o[f].conOpt; - dJ(f, u, p, CO(a, p, f), null); + pJ(f, u, p, CO(a, p, f), null); } } d ? u.dirty() : u.markRedraw(); @@ -83350,34 +83391,34 @@ function qHe(e, t, r, n, i, o) { } } } -function DH(e, t, r) { - var n = t ? ub(e, t) : e, i = t ? CO(e, n, Il) : e.style, o = e.type, a = n ? n.textConfig : null, s = e.textContent, l = s ? t ? ub(s, t) : s : null; +function A3(e, t, r) { + var n = t ? hb(e, t) : e, i = t ? CO(e, n, Al) : e.style, o = e.type, a = n ? n.textConfig : null, s = e.textContent, l = s ? t ? hb(s, t) : s : null; if (i && // Because emphasis style has little info to detect legacy, // if normal is legacy, emphasis is trade as legacy. - (r.isLegacy || iJ(i, o, !!a, !!l))) { + (r.isLegacy || sJ(i, o, !!a, !!l))) { r.isLegacy = !0; - var c = oJ(i, o, !t); + var c = lJ(i, o, !t); !a && c.textConfig && (a = c.textConfig), !l && c.textContent && (l = c.textContent); } if (!t && l) { var u = l; - !u.type && (u.type = "text"), process.env.NODE_ENV !== "production" && xt(u.type === "text", 'textContent.type must be "text"'); + !u.type && (u.type = "text"), process.env.NODE_ENV !== "production" && Et(u.type === "text", 'textContent.type must be "text"'); } var d = t ? r[t] : r.normal; d.cfg = a, d.conOpt = l; } -function ub(e, t) { +function hb(e, t) { return t ? e ? e[t] : null : e; } function CO(e, t, r) { var n = t && t.style; - return n == null && r === Il && e && (n = e.styleEmphasis), n; + return n == null && r === Al && e && (n = e.styleEmphasis), n; } -function XHe(e, t, r, n, i) { +function s5e(e, t, r, n, i) { var o = n.children, a = o ? o.length : 0, s = n.$mergeChildren, l = s === "byName" || n.diffChildrenByName, c = s === !1; if (!(!a && !l && !c)) { if (l) { - QHe({ + c5e({ api: e, oldChildren: t.children() || [], newChildren: o || [], @@ -83390,42 +83431,42 @@ function XHe(e, t, r, n, i) { c && t.removeAll(); for (var u = 0; u < a; u++) { var d = o[u], h = t.childAt(u); - d ? (d.ignore == null && (d.ignore = !1), yO(e, h, r, d, i, t)) : (process.env.NODE_ENV !== "production" && xt(h, "renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."), h.ignore = !0); + d ? (d.ignore == null && (d.ignore = !1), yO(e, h, r, d, i, t)) : (process.env.NODE_ENV !== "production" && Et(h, "renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."), h.ignore = !0); } for (var f = t.childCount() - 1; f >= u; f--) { var p = t.childAt(f); - ZHe(t, p, i); + l5e(t, p, i); } } } -function ZHe(e, t, r) { - t && d1(t, Dl(e).option, r); +function l5e(e, t, r) { + t && d1(t, Il(e).option, r); } -function QHe(e) { - new zl(e.oldChildren, e.newChildren, IH, IH, e).add(AH).update(AH).remove(JHe).execute(); +function c5e(e) { + new Gl(e.oldChildren, e.newChildren, O3, O3, e).add(L3).update(L3).remove(u5e).execute(); } -function IH(e, t) { +function O3(e, t) { var r = e && e.name; - return r ?? zHe + t; + return r ?? J3e + t; } -function AH(e, t) { +function L3(e, t) { var r = this.context, n = e != null ? r.newChildren[e] : null, i = t != null ? r.oldChildren[t] : null; yO(r.api, i, r.dataIndex, n, r.seriesModel, r.group); } -function JHe(e) { +function u5e(e) { var t = this.context, r = t.oldChildren[e]; - r && d1(r, Dl(r).option, t.seriesModel); + r && d1(r, Il(r).option, t.seriesModel); } -function fJ(e) { +function vJ(e) { return e && (e.pathData || e.d); } -function e3e(e) { +function d5e(e) { return e && (lt(e, "pathData") || lt(e, "d")); } -function t3e(e) { - e.registerChartView(WHe), e.registerSeriesModel(bHe); +function h5e(e) { + e.registerChartView(t5e), e.registerSeriesModel(A3e); } -var ju = yr(), OH = _t, FR = at, SO = ( +var ju = yr(), F3 = _t, FR = at, SO = ( /** @class */ function() { function e() { @@ -83449,10 +83490,10 @@ var ju = yr(), OH = _t, FR = at, SO = ( if (!s) s = this._group = new Ot(), this.createPointerEl(s, c, t, r), this.createLabelEl(s, c, t, r), n.getZr().add(s); else { - var h = Vt(LH, r, d); + var h = Vt(N3, r, d); this.updatePointerEl(s, c, h), this.updateLabelEl(s, c, h, r); } - NH(s, r, !0), this._renderHandle(o); + $3(s, r, !0), this._renderHandle(o); } }, e.prototype.remove = function(t) { this.clear(t); @@ -83477,13 +83518,13 @@ var ju = yr(), OH = _t, FR = at, SO = ( }, e.prototype.createPointerEl = function(t, r, n, i) { var o = r.pointer; if (o) { - var a = ju(t).pointerEl = new Kd[o.type](OH(r.pointer)); + var a = ju(t).pointerEl = new Kd[o.type](F3(r.pointer)); t.add(a); } }, e.prototype.createLabelEl = function(t, r, n, i) { if (r.label) { - var o = ju(t).labelEl = new vr(OH(r.label)); - t.add(o), FH(o, i); + var o = ju(t).labelEl = new vr(F3(r.label)); + t.add(o), k3(o, i); } }, e.prototype.updatePointerEl = function(t, r, n) { var i = ju(t).pointerEl; @@ -83499,7 +83540,7 @@ var ju = yr(), OH = _t, FR = at, SO = ( // shape: elOption.label.shape, x: r.label.x, y: r.label.y - }), FH(o, i)); + }), k3(o, i)); }, e.prototype._renderHandle = function(t) { if (!(this._dragging || !this.updateHandleTransform)) { var r = this._axisPointerModel, n = this._api.getZr(), i = this._handle, o = r.getModel("handle"), a = r.get("status"); @@ -83508,21 +83549,21 @@ var ju = yr(), OH = _t, FR = at, SO = ( return; } var s; - this._handle || (s = !0, i = this._handle = pp(o.get("icon"), { + this._handle || (s = !0, i = this._handle = vp(o.get("icon"), { cursor: "move", draggable: !0, onmousemove: function(c) { - Bl(c.event); + Vl(c.event); }, onmousedown: FR(this._onHandleDragMove, this, 0, 0), drift: FR(this._onHandleDragMove, this), ondragend: FR(this._onHandleDragEnd, this) - }), n.add(i)), NH(i, r, !1), i.setStyle(o.getItemStyle(null, ["color", "borderColor", "borderWidth", "opacity", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"])); + }), n.add(i)), $3(i, r, !1), i.setStyle(o.getItemStyle(null, ["color", "borderColor", "borderWidth", "opacity", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"])); var l = o.get("size"); - Ie(l) || (l = [l, l]), i.scaleX = l[0] / 2, i.scaleY = l[1] / 2, bp(this, "_doDispatchAxisPointer", o.get("throttle") || 0, "fixRate"), this._moveHandleToValue(t, s); + Ae(l) || (l = [l, l]), i.scaleX = l[0] / 2, i.scaleY = l[1] / 2, xp(this, "_doDispatchAxisPointer", o.get("throttle") || 0, "fixRate"), this._moveHandleToValue(t, s); } }, e.prototype._moveHandleToValue = function(t, r) { - LH(this._axisPointerModel, !r && this._moveAnimation, this._handle, NR(this.getHandleTransform(t, this._axisModel, this._axisPointerModel))); + N3(this._axisPointerModel, !r && this._moveAnimation, this._handle, NR(this.getHandleTransform(t, this._axisModel, this._axisPointerModel))); }, e.prototype._onHandleDragMove = function(t, r) { var n = this._handle; if (n) { @@ -83557,7 +83598,7 @@ var ju = yr(), OH = _t, FR = at, SO = ( }, e.prototype.clear = function(t) { this._lastValue = null, this._lastStatus = null; var r = t.getZr(), n = this._group, i = this._handle; - r && n && (this._lastGraphicKey = null, n && r.remove(n), i && r.remove(i), this._group = null, this._handle = null, this._payloadInfo = null), Qv(this, "_doDispatchAxisPointer"); + r && n && (this._lastGraphicKey = null, n && r.remove(n), i && r.remove(i), this._group = null, this._handle = null, this._payloadInfo = null), em(this, "_doDispatchAxisPointer"); }, e.prototype.doClear = function() { }, e.prototype.buildLabel = function(t, r, n) { return n = n || 0, { @@ -83569,19 +83610,19 @@ var ju = yr(), OH = _t, FR = at, SO = ( }, e; }() ); -function LH(e, t, r, n) { - pJ(ju(r).lastProp, n) || (ju(r).lastProp = n, t ? br(r, n, e) : (r.stopAnimation(), r.attr(n))); +function N3(e, t, r, n) { + mJ(ju(r).lastProp, n) || (ju(r).lastProp = n, t ? br(r, n, e) : (r.stopAnimation(), r.attr(n))); } -function pJ(e, t) { - if (St(e) && St(t)) { +function mJ(e, t) { + if (bt(e) && bt(t)) { var r = !0; return z(t, function(n, i) { - r = r && pJ(e[i], n); + r = r && mJ(e[i], n); }), !!r; } else return e === t; } -function FH(e, t) { +function k3(e, t) { e[t.get(["label", "show"]) ? "show" : "hide"](); } function NR(e) { @@ -83591,7 +83632,7 @@ function NR(e) { rotation: e.rotation || 0 }; } -function NH(e, t, r) { +function $3(e, t, r) { var n = t.get("z"), i = t.get("zlevel"); e && e.traverse(function(o) { o.type !== "group" && (n != null && (o.z = n), i != null && (o.zlevel = i), o.silent = r); @@ -83601,14 +83642,14 @@ function bO(e) { var t = e.get("type"), r = e.getModel(t + "Style"), n; return t === "line" ? (n = r.getLineStyle(), n.fill = null) : t === "shadow" && (n = r.getAreaStyle(), n.stroke = null), n; } -function gJ(e, t, r, n, i) { - var o = r.get("value"), a = vJ(o, t.axis, t.ecModel, r.get("seriesDataIndices"), { +function yJ(e, t, r, n, i) { + var o = r.get("value"), a = CJ(o, t.axis, t.ecModel, r.get("seriesDataIndices"), { precision: r.get(["label", "precision"]), formatter: r.get(["label", "formatter"]) - }), s = r.getModel("label"), l = qd(s.get("padding") || 0), c = s.getFont(), u = Km(a, c), d = i.position, h = u.width + l[1] + l[3], f = u.height + l[0] + l[2], p = i.align; + }), s = r.getModel("label"), l = qd(s.get("padding") || 0), c = s.getFont(), u = Xm(a, c), d = i.position, h = u.width + l[1] + l[3], f = u.height + l[0] + l[2], p = i.align; p === "right" && (d[0] -= h), p === "center" && (d[0] -= h / 2); var g = i.verticalAlign; - g === "bottom" && (d[1] -= f), g === "middle" && (d[1] -= f / 2), r3e(d, h, f, n); + g === "bottom" && (d[1] -= f), g === "middle" && (d[1] -= f / 2), f5e(d, h, f, n); var v = s.get("backgroundColor"); (!v || v === "auto") && (v = t.get(["axisLine", "lineStyle", "color"])), e.label = { // shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')}, @@ -83625,11 +83666,11 @@ function gJ(e, t, r, n, i) { z2: 10 }; } -function r3e(e, t, r, n) { +function f5e(e, t, r, n) { var i = n.getWidth(), o = n.getHeight(); e[0] = Math.min(e[0] + t, i) - t, e[1] = Math.min(e[1] + r, o) - r, e[0] = Math.max(e[0], 0), e[1] = Math.max(e[1], 0); } -function vJ(e, t, r, n, i) { +function CJ(e, t, r, n, i) { e = t.scale.parse(e); var o = t.scale.getLabel({ value: e @@ -83650,7 +83691,7 @@ function vJ(e, t, r, n, i) { z(n, function(l) { var c = r.getSeriesByIndex(l.seriesIndex), u = l.dataIndexInside, d = c && c.getDataParams(u); d && s.seriesData.push(d); - }), Je(a) ? o = a.replace("{value}", o) : vt(a) && (o = a(s)); + }), Je(a) ? o = a.replace("{value}", o) : mt(a) && (o = a(s)); } return o; } @@ -83658,9 +83699,9 @@ function wO(e, t, r) { var n = So(); return eu(n, n, r.rotation), as(n, n, r.position), es([e.dataToCoord(t), (r.labelOffset || 0) + (r.labelDirection || 1) * (r.labelMargin || 0)], n); } -function mJ(e, t, r, n, i, o) { +function SJ(e, t, r, n, i, o) { var a = Qi.innerTextLayout(r.rotation, 0, r.labelDirection); - r.labelMargin = i.get(["label", "margin"]), gJ(t, n, i, o, { + r.labelMargin = i.get(["label", "margin"]), yJ(t, n, i, o, { position: wO(n.axis, e, r), align: a.textAlign, verticalAlign: a.textVerticalAlign @@ -83674,7 +83715,7 @@ function xO(e, t, r) { y2: t[1 - r] }; } -function yJ(e, t, r) { +function bJ(e, t, r) { return r = r || 0, { x: e[r], y: e[1 - r], @@ -83682,7 +83723,7 @@ function yJ(e, t, r) { height: t[1 - r] }; } -function kH(e, t, r, n, i, o) { +function B3(e, t, r, n, i, o) { return { cx: e, cy: t, @@ -83693,7 +83734,7 @@ function kH(e, t, r, n, i, o) { clockwise: !0 }; } -var n3e = ( +var p5e = ( /** @class */ function(e) { Se(t, e); @@ -83701,13 +83742,13 @@ var n3e = ( return e !== null && e.apply(this, arguments) || this; } return t.prototype.makeElOption = function(r, n, i, o, a) { - var s = i.axis, l = s.grid, c = o.get("type"), u = $H(l, s).getOtherAxis(s).getGlobalExtent(), d = s.toGlobalCoord(s.dataToCoord(n, !0)); + var s = i.axis, l = s.grid, c = o.get("type"), u = V3(l, s).getOtherAxis(s).getGlobalExtent(), d = s.toGlobalCoord(s.dataToCoord(n, !0)); if (c && c !== "none") { - var h = bO(o), f = i3e[c](s, d, u); + var h = bO(o), f = g5e[c](s, d, u); f.style = h, r.graphicKey = f.type, r.pointer = f; } var p = wM(l.model, i); - mJ( + SJ( // @ts-ignore n, r, @@ -83728,7 +83769,7 @@ var n3e = ( rotation: o.rotation + (o.labelDirection < 0 ? Math.PI : 0) }; }, t.prototype.updateHandleTransform = function(r, n, i, o) { - var a = i.axis, s = a.grid, l = a.getGlobalExtent(!0), c = $H(s, a).getOtherAxis(a).getGlobalExtent(), u = a.dim === "x" ? 0 : 1, d = [r.x, r.y]; + var a = i.axis, s = a.grid, l = a.getGlobalExtent(!0), c = V3(s, a).getOtherAxis(a).getGlobalExtent(), u = a.dim === "x" ? 0 : 1, d = [r.x, r.y]; d[u] += n[u], d[u] = Math.min(l[1], d[u]), d[u] = Math.max(l[0], d[u]); var h = (c[1] + c[0]) / 2, f = [h, h]; f[u] = d[u]; @@ -83747,13 +83788,13 @@ var n3e = ( }, t; }(SO) ); -function $H(e, t) { +function V3(e, t) { var r = {}; return r[t.dim + "AxisIndex"] = t.index, e.getCartesian(r); } -var i3e = { +var g5e = { line: function(e, t, r) { - var n = xO([t, r[0]], [t, r[1]], BH(e)); + var n = xO([t, r[0]], [t, r[1]], H3(e)); return { type: "Line", subPixelOptimize: !0, @@ -83764,14 +83805,14 @@ var i3e = { var n = Math.max(1, e.getBandWidth()), i = r[1] - r[0]; return { type: "Rect", - shape: yJ([t - n / 2, r[0]], [n, i], BH(e)) + shape: bJ([t - n / 2, r[0]], [n, i], H3(e)) }; } }; -function BH(e) { +function H3(e) { return e.dim === "x" ? 0 : 1; } -var o3e = ( +var v5e = ( /** @class */ function(e) { Se(t, e); @@ -83836,39 +83877,39 @@ var o3e = ( } }, t; }(Qt) -), Pl = yr(), a3e = z; -function CJ(e, t, r) { +), Tl = yr(), m5e = z; +function wJ(e, t, r) { if (!gr.node) { var n = t.getZr(); - Pl(n).records || (Pl(n).records = {}), s3e(n, t); - var i = Pl(n).records[e] || (Pl(n).records[e] = {}); + Tl(n).records || (Tl(n).records = {}), y5e(n, t); + var i = Tl(n).records[e] || (Tl(n).records[e] = {}); i.handler = r; } } -function s3e(e, t) { - if (Pl(e).initialized) +function y5e(e, t) { + if (Tl(e).initialized) return; - Pl(e).initialized = !0, r("click", Vt(VH, "click")), r("mousemove", Vt(VH, "mousemove")), r("globalout", c3e); + Tl(e).initialized = !0, r("click", Vt(z3, "click")), r("mousemove", Vt(z3, "mousemove")), r("globalout", S5e); function r(n, i) { e.on(n, function(o) { - var a = u3e(t); - a3e(Pl(e).records, function(s) { + var a = b5e(t); + m5e(Tl(e).records, function(s) { s && i(s, o, a.dispatchAction); - }), l3e(a.pendings, t); + }), C5e(a.pendings, t); }); } } -function l3e(e, t) { +function C5e(e, t) { var r = e.showTip.length, n = e.hideTip.length, i; r ? i = e.showTip[r - 1] : n && (i = e.hideTip[n - 1]), i && (i.dispatchAction = null, t.dispatchAction(i)); } -function c3e(e, t, r) { +function S5e(e, t, r) { e.handler("leave", null, r); } -function VH(e, t, r, n) { +function z3(e, t, r, n) { t.handler(e, r, n); } -function u3e(e) { +function b5e(e) { var t = { showTip: [], hideTip: [] @@ -83883,11 +83924,11 @@ function u3e(e) { } function HM(e, t) { if (!gr.node) { - var r = t.getZr(), n = (Pl(r).records || {})[e]; - n && (Pl(r).records[e] = null); + var r = t.getZr(), n = (Tl(r).records || {})[e]; + n && (Tl(r).records[e] = null); } } -var d3e = ( +var w5e = ( /** @class */ function(e) { Se(t, e); @@ -83897,7 +83938,7 @@ var d3e = ( } return t.prototype.render = function(r, n, i) { var o = n.getComponent("tooltip"), a = r.get("triggerOn") || o && o.get("triggerOn") || "mousemove|click"; - CJ("axisPointer", i, function(s, l, c) { + wJ("axisPointer", i, function(s, l, c) { a !== "none" && (s === "leave" || a.indexOf(s) >= 0) && c({ type: "updateAxisPointer", currTrigger: s, @@ -83912,14 +83953,14 @@ var d3e = ( }, t.type = "axisPointer", t; }(sn) ); -function SJ(e, t) { +function xJ(e, t) { var r = [], n = e.seriesIndex, i; if (n == null || !(i = t.getSeriesByIndex(n))) return { point: [] }; var o = i.getData(), a = Dd(o, e); - if (a == null || a < 0 || Ie(a)) + if (a == null || a < 0 || Ae(a)) return { point: [] }; @@ -83943,30 +83984,30 @@ function SJ(e, t) { el: s }; } -var HH = yr(); -function h3e(e, t, r) { +var G3 = yr(); +function x5e(e, t, r) { var n = e.currTrigger, i = [e.x, e.y], o = e, a = e.dispatchAction || at(r.dispatchAction, r), s = t.getComponent("axisPointer").coordSysAxesInfo; if (s) { - OC(i) && (i = SJ({ + NC(i) && (i = xJ({ seriesIndex: o.seriesIndex, // Do not use dataIndexInside from other ec instance. // FIXME: auto detect it? dataIndex: o.dataIndex }, t).point); - var l = OC(i), c = o.axesInfo, u = s.axesInfo, d = n === "leave" || OC(i), h = {}, f = {}, p = { + var l = NC(i), c = o.axesInfo, u = s.axesInfo, d = n === "leave" || NC(i), h = {}, f = {}, p = { list: [], map: {} }, g = { - showPointer: Vt(p3e, f), - showTooltip: Vt(g3e, p) + showPointer: Vt(R5e, f), + showTooltip: Vt(P5e, p) }; z(s.coordSysMap, function(m, y) { var C = l || m.containPoint(i); z(s.coordSysAxesInfo[y], function(b, w) { - var x = b.axis, E = C3e(c, b); + var x = b.axis, E = D5e(c, b); if (!d && C && (!c || E)) { var R = E && E.value; - R == null && !l && (R = x.pointToData(i)), R != null && zH(b, R, g, !1, h); + R == null && !l && (R = x.pointToData(i)), R != null && W3(b, R, g, !1, h); } }); }); @@ -83977,26 +84018,26 @@ function h3e(e, t, r) { var x = f[w]; if (b !== m && x) { var E = x.value; - C.mapper && (E = m.axis.scale.parse(C.mapper(E, GH(b), GH(m)))), v[m.key] = E; + C.mapper && (E = m.axis.scale.parse(C.mapper(E, j3(b), j3(m)))), v[m.key] = E; } }); }), z(v, function(m, y) { - zH(u[y], m, g, !0, h); - }), v3e(f, u, h), m3e(p, i, e, a), y3e(u, a, r), h; + W3(u[y], m, g, !0, h); + }), T5e(f, u, h), _5e(p, i, e, a), M5e(u, a, r), h; } } -function zH(e, t, r, n, i) { +function W3(e, t, r, n, i) { var o = e.axis; if (!(o.scale.isBlank() || !o.containData(t))) { if (!e.involveSeries) { r.showPointer(e, t); return; } - var a = f3e(t, e), s = a.payloadBatch, l = a.snapToValue; + var a = E5e(t, e), s = a.payloadBatch, l = a.snapToValue; s[0] && i.seriesIndex == null && Pe(i, s[0]), !n && e.snap && o.containData(l) && l != null && (t = l), r.showPointer(e, t, s), r.showTooltip(e, a, l); } } -function f3e(e, t) { +function E5e(e, t) { var r = t.axis, n = r.dim, i = e, o = [], a = Number.MAX_VALUE, s = -1; return z(t.seriesModels, function(l, c) { var u = l.getData().mapDimensionsAll(n), d, h; @@ -84030,16 +84071,16 @@ function f3e(e, t) { snapToValue: i }; } -function p3e(e, t, r, n) { +function R5e(e, t, r, n) { e[t.key] = { value: r, payloadBatch: n }; } -function g3e(e, t, r, n) { +function P5e(e, t, r, n) { var i = r.payloadBatch, o = t.axis, a = o.model, s = t.axisPointerModel; if (!(!t.triggerTooltip || !i.length)) { - var l = t.coordSys.model, c = om(l), u = e.map[c]; + var l = t.coordSys.model, c = sm(l), u = e.map[c]; u || (u = e.map[c] = { coordSysId: l.id, coordSysIndex: l.componentIndex, @@ -84064,7 +84105,7 @@ function g3e(e, t, r, n) { }); } } -function v3e(e, t, r) { +function T5e(e, t, r) { var n = r.axesInfo = []; z(t, function(i, o) { var a = i.axisPointerModel.option, s = e[o]; @@ -84075,8 +84116,8 @@ function v3e(e, t, r) { }); }); } -function m3e(e, t, r, n) { - if (OC(t) || !e.list.length) { +function _5e(e, t, r, n) { + if (NC(t) || !e.list.length) { n({ type: "hideTip" }); @@ -84096,8 +84137,8 @@ function m3e(e, t, r, n) { dataByCoordSys: e.list }); } -function y3e(e, t, r) { - var n = r.getZr(), i = "axisPointerLastHighlights", o = HH(n)[i] || {}, a = HH(n)[i] = {}; +function M5e(e, t, r) { + var n = r.getZr(), i = "axisPointerLastHighlights", o = G3(n)[i] || {}, a = G3(n)[i] = {}; z(e, function(c, u) { var d = c.axisPointerModel.option; d.status === "show" && c.triggerEmphasis && z(d.seriesDataIndices, function(h) { @@ -84124,39 +84165,39 @@ function y3e(e, t, r) { batch: s }); } -function C3e(e, t) { +function D5e(e, t) { for (var r = 0; r < (e || []).length; r++) { var n = e[r]; if (t.axis.dim === n.axisDim && t.axis.model.componentIndex === n.axisIndex) return n; } } -function GH(e) { +function j3(e) { var t = e.axis.model, r = {}, n = r.axisDim = e.axis.dim; return r.axisIndex = r[n + "AxisIndex"] = t.componentIndex, r.axisName = r[n + "AxisName"] = t.name, r.axisId = r[n + "AxisId"] = t.id, r; } -function OC(e) { +function NC(e) { return !e || e[0] == null || isNaN(e[0]) || e[1] == null || isNaN(e[1]); } -function hy(e) { - Jd.registerAxisPointerClass("CartesianAxisPointer", n3e), e.registerComponentModel(o3e), e.registerComponentView(d3e), e.registerPreprocessor(function(t) { +function gy(e) { + Jd.registerAxisPointerClass("CartesianAxisPointer", p5e), e.registerComponentModel(v5e), e.registerComponentView(w5e), e.registerPreprocessor(function(t) { if (t) { (!t.axisPointer || t.axisPointer.length === 0) && (t.axisPointer = {}); var r = t.axisPointer.link; - r && !Ie(r) && (t.axisPointer.link = [r]); + r && !Ae(r) && (t.axisPointer.link = [r]); } }), e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC, function(t, r) { - t.getComponent("axisPointer").coordSysAxesInfo = D$e(t, r); + t.getComponent("axisPointer").coordSysAxesInfo = H$e(t, r); }), e.registerAction({ type: "updateAxisPointer", event: "updateAxisPointer", update: ":updateAxisPointer" - }, h3e); + }, x5e); } -function S3e(e) { - er(UZ), er(hy); +function I5e(e) { + er(qZ), er(gy); } -var b3e = ( +var A5e = ( /** @class */ function(e) { Se(t, e); @@ -84168,15 +84209,15 @@ var b3e = ( s.dim === "angle" && (this.animationThreshold = Math.PI / 18); var l = s.polar, c = l.getOtherAxis(s), u = c.getExtent(), d = s.dataToCoord(n), h = o.get("type"); if (h && h !== "none") { - var f = bO(o), p = x3e[h](s, l, d, u); + var f = bO(o), p = L5e[h](s, l, d, u); p.style = f, r.graphicKey = p.type, r.pointer = p; } - var g = o.get(["label", "margin"]), v = w3e(n, i, o, l, g); - gJ(r, i, o, a, v); + var g = o.get(["label", "margin"]), v = O5e(n, i, o, l, g); + yJ(r, i, o, a, v); }, t; }(SO) ); -function w3e(e, t, r, n, i) { +function O5e(e, t, r, n, i) { var o = t.axis, a = o.dataToCoord(e), s = n.getAngleAxis().getExtent()[0]; s = s / 180 * Math.PI; var l = n.getRadiusAxis().getExtent(), c, u, d; @@ -84197,7 +84238,7 @@ function w3e(e, t, r, n, i) { verticalAlign: d }; } -var x3e = { +var L5e = { line: function(e, t, r, n) { return e.dim === "angle" ? { type: "Line", @@ -84215,7 +84256,7 @@ var x3e = { var i = Math.max(1, e.getBandWidth()), o = Math.PI / 180; return e.dim === "angle" ? { type: "Sector", - shape: kH( + shape: B3( t.cx, t.cy, n[0], @@ -84226,10 +84267,10 @@ var x3e = { ) } : { type: "Sector", - shape: kH(t.cx, t.cy, r - i / 2, r + i / 2, 0, Math.PI * 2) + shape: B3(t.cx, t.cy, r - i / 2, r + i / 2, 0, Math.PI * 2) }; } -}, E3e = ( +}, F5e = ( /** @class */ function(e) { Se(t, e); @@ -84261,8 +84302,8 @@ var x3e = { }, t.type = "polarAxis", t; }(Qt) ); -In(EO, Rp); -var R3e = ( +In(EO, Tp); +var N5e = ( /** @class */ function(e) { Se(t, e); @@ -84272,7 +84313,7 @@ var R3e = ( } return t.type = "angleAxis", t; }(EO) -), P3e = ( +), k5e = ( /** @class */ function(e) { Se(t, e); @@ -84296,7 +84337,7 @@ var R3e = ( ); RO.prototype.dataToRadius = La.prototype.dataToCoord; RO.prototype.radiusToData = La.prototype.coordToData; -var T3e = yr(), PO = ( +var $5e = yr(), PO = ( /** @class */ function(e) { Se(t, e); @@ -84309,20 +84350,20 @@ var T3e = yr(), PO = ( var r = this, n = r.getLabelModel(), i = r.scale, o = i.getExtent(), a = i.count(); if (o[1] - o[0] < 1) return 0; - var s = o[0], l = r.dataToCoord(s + 1) - r.dataToCoord(s), c = Math.abs(l), u = Km(s == null ? "" : s + "", n.getFont(), "center", "top"), d = Math.max(u.height, 7), h = d / c; + var s = o[0], l = r.dataToCoord(s + 1) - r.dataToCoord(s), c = Math.abs(l), u = Xm(s == null ? "" : s + "", n.getFont(), "center", "top"), d = Math.max(u.height, 7), h = d / c; isNaN(h) && (h = 1 / 0); - var f = Math.max(0, Math.floor(h)), p = T3e(r.model), g = p.lastAutoInterval, v = p.lastTickCount; + var f = Math.max(0, Math.floor(h)), p = $5e(r.model), g = p.lastAutoInterval, v = p.lastTickCount; return g != null && v != null && Math.abs(g - f) <= 1 && Math.abs(v - a) <= 1 && g > f ? f = g : (p.lastTickCount = a, p.lastAutoInterval = f), f; }, t; }(La) ); PO.prototype.dataToAngle = La.prototype.dataToCoord; PO.prototype.angleToData = La.prototype.coordToData; -var bJ = ["radius", "angle"], _3e = ( +var EJ = ["radius", "angle"], B5e = ( /** @class */ function() { function e(t) { - this.dimensions = bJ, this.type = "polar", this.cx = 0, this.cy = 0, this._radiusAxis = new RO(), this._angleAxis = new PO(), this.axisPointerEnabled = !0, this.name = t || "", this._radiusAxis.polar = this._angleAxis.polar = this; + this.dimensions = EJ, this.type = "polar", this.cx = 0, this.cy = 0, this._radiusAxis = new RO(), this._angleAxis = new PO(), this.axisPointerEnabled = !0, this.name = t || "", this._radiusAxis.polar = this._angleAxis.polar = this; } return e.prototype.containPoint = function(t) { var r = this.pointToCoord(t); @@ -84386,35 +84427,35 @@ var bJ = ["radius", "angle"], _3e = ( } }; }, e.prototype.convertToPixel = function(t, r, n) { - var i = WH(r); + var i = U3(r); return i === this ? this.dataToPoint(n) : null; }, e.prototype.convertFromPixel = function(t, r, n) { - var i = WH(r); + var i = U3(r); return i === this ? this.pointToData(n) : null; }, e; }() ); -function WH(e) { +function U3(e) { var t = e.seriesModel, r = e.polarModel; return r && r.coordinateSystem || t && t.coordinateSystem; } -const M3e = _3e; -function D3e(e, t, r) { +const V5e = B5e; +function H5e(e, t, r) { var n = t.get("center"), i = r.getWidth(), o = r.getHeight(); e.cx = Ze(n[0], i), e.cy = Ze(n[1], o); var a = e.getRadiusAxis(), s = Math.min(i, o) / 2, l = t.get("radius"); - l == null ? l = [0, "100%"] : Ie(l) || (l = [0, l]); + l == null ? l = [0, "100%"] : Ae(l) || (l = [0, l]); var c = [Ze(l[0], s), Ze(l[1], s)]; a.inverse ? a.setExtent(c[1], c[0]) : a.setExtent(c[0], c[1]); } -function I3e(e, t) { +function z5e(e, t) { var r = this, n = r.getAngleAxis(), i = r.getRadiusAxis(); if (n.scale.setExtent(1 / 0, -1 / 0), i.scale.setExtent(1 / 0, -1 / 0), e.eachSeries(function(s) { if (s.coordinateSystem === r) { var l = s.getData(); - z(qS(l, "radius"), function(c) { + z(ZS(l, "radius"), function(c) { i.scale.unionExtentFromData(l, c); - }), z(qS(l, "angle"), function(c) { + }), z(ZS(l, "angle"), function(c) { n.scale.unionExtentFromData(l, c); }); } @@ -84423,27 +84464,27 @@ function I3e(e, t) { n.inverse ? o[1] += a : o[1] -= a, n.setExtent(o[0], o[1]); } } -function A3e(e) { +function G5e(e) { return e.mainType === "angleAxis"; } -function jH(e, t) { +function K3(e, t) { var r; - if (e.type = t.get("type"), e.scale = ny(t), e.onBand = t.get("boundaryGap") && e.type === "category", e.inverse = t.get("inverse"), A3e(t)) { + if (e.type = t.get("type"), e.scale = ay(t), e.onBand = t.get("boundaryGap") && e.type === "category", e.inverse = t.get("inverse"), G5e(t)) { e.inverse = e.inverse !== t.get("clockwise"); var n = t.get("startAngle"), i = (r = t.get("endAngle")) !== null && r !== void 0 ? r : n + (e.inverse ? -360 : 360); e.setExtent(n, i); } t.axis = e, e.model = t; } -var O3e = { - dimensions: bJ, +var W5e = { + dimensions: EJ, create: function(e, t) { var r = []; return e.eachComponent("polar", function(n, i) { - var o = new M3e(i + ""); - o.update = I3e; + var o = new V5e(i + ""); + o.update = z5e; var a = o.getRadiusAxis(), s = o.getAngleAxis(), l = n.findAxisModel("radiusAxis"), c = n.findAxisModel("angleAxis"); - jH(a, l), jH(s, c), D3e(o, n, t), r.push(o), n.coordinateSystem = o, o.model = n; + K3(a, l), K3(s, c), H5e(o, n, t), r.push(o), n.coordinateSystem = o, o.model = n; }), e.eachSeries(function(n) { if (n.get("coordinateSystem") === "polar") { var i = n.getReferringComponents("polar", Wn).models[0]; @@ -84453,8 +84494,8 @@ var O3e = { } }), r; } -}, L3e = ["axisLine", "axisLabel", "axisTick", "minorTick", "splitLine", "minorSplitLine", "splitArea"]; -function k0(e, t, r) { +}, j5e = ["axisLine", "axisLabel", "axisTick", "minorTick", "splitLine", "minorSplitLine", "splitArea"]; +function V0(e, t, r) { t[1] > t[0] && (t = t.slice().reverse()); var n = e.coordToPoint([t[0], r]), i = e.coordToPoint([t[1], r]); return { @@ -84464,15 +84505,15 @@ function k0(e, t, r) { y2: i[1] }; } -function $0(e) { +function H0(e) { var t = e.getRadiusAxis(); return t.inverse ? 0 : 1; } -function UH(e) { +function Y3(e) { var t = e[0], r = e[e.length - 1]; t && r && Math.abs(Math.abs(t.coord - r.coord) - 360) < 1e-4 && e.pop(); } -var F3e = ( +var U5e = ( /** @class */ function(e) { Se(t, e); @@ -84487,15 +84528,15 @@ var F3e = ( var d = i.scale, h = d.type === "ordinal" ? d.getRawOrdinalNumber(u.tickValue) : u.tickValue; return u.coord = i.dataToCoord(h), u; }); - UH(c), UH(s), z(L3e, function(u) { - r.get([u, "show"]) && (!i.scale.isBlank() || u === "axisLine") && N3e[u](this.group, r, o, s, l, a, c); + Y3(c), Y3(s), z(j5e, function(u) { + r.get([u, "show"]) && (!i.scale.isBlank() || u === "axisLine") && K5e[u](this.group, r, o, s, l, a, c); }, this); } }, t.type = "angleAxis", t; }(Jd) -), N3e = { +), K5e = { axisLine: function(e, t, r, n, i, o) { - var a = t.getModel(["axisLine", "lineStyle"]), s = r.getAngleAxis(), l = Math.PI / 180, c = s.getExtent(), u = $0(r), d = u ? 0 : 1, h, f = Math.abs(c[1] - c[0]) === 360 ? "Circle" : "Arc"; + var a = t.getModel(["axisLine", "lineStyle"]), s = r.getAngleAxis(), l = Math.PI / 180, c = s.getExtent(), u = H0(r), d = u ? 0 : 1, h, f = Math.abs(c[1] - c[0]) === 360 ? "Circle" : "Arc"; o[d] === 0 ? h = new Kd[f]({ shape: { cx: r.cx, @@ -84508,7 +84549,7 @@ var F3e = ( style: a.getLineStyle(), z2: 1, silent: !0 - }) : h = new Zm({ + }) : h = new ey({ shape: { cx: r.cx, cy: r.cy, @@ -84521,26 +84562,26 @@ var F3e = ( }), h.style.fill = null, e.add(h); }, axisTick: function(e, t, r, n, i, o) { - var a = t.getModel("axisTick"), s = (a.get("inside") ? -1 : 1) * a.get("length"), l = o[$0(r)], c = Fe(n, function(u) { + var a = t.getModel("axisTick"), s = (a.get("inside") ? -1 : 1) * a.get("length"), l = o[H0(r)], c = Fe(n, function(u) { return new ri({ - shape: k0(r, [l, l + s], u.coord) + shape: V0(r, [l, l + s], u.coord) }); }); e.add(No(c, { - style: wt(a.getModel("lineStyle").getLineStyle(), { + style: xt(a.getModel("lineStyle").getLineStyle(), { stroke: t.get(["axisLine", "lineStyle", "color"]) }) })); }, minorTick: function(e, t, r, n, i, o) { if (i.length) { - for (var a = t.getModel("axisTick"), s = t.getModel("minorTick"), l = (a.get("inside") ? -1 : 1) * s.get("length"), c = o[$0(r)], u = [], d = 0; d < i.length; d++) + for (var a = t.getModel("axisTick"), s = t.getModel("minorTick"), l = (a.get("inside") ? -1 : 1) * s.get("length"), c = o[H0(r)], u = [], d = 0; d < i.length; d++) for (var h = 0; h < i[d].length; h++) u.push(new ri({ - shape: k0(r, [c, c + l], i[d][h].coord) + shape: V0(r, [c, c + l], i[d][h].coord) })); e.add(No(u, { - style: wt(s.getModel("lineStyle").getLineStyle(), wt(a.getLineStyle(), { + style: xt(s.getModel("lineStyle").getLineStyle(), xt(a.getLineStyle(), { stroke: t.get(["axisLine", "lineStyle", "color"]) })) })); @@ -84549,10 +84590,10 @@ var F3e = ( axisLabel: function(e, t, r, n, i, o, a) { var s = t.getCategories(!0), l = t.getModel("axisLabel"), c = l.get("margin"), u = t.get("triggerEvent"); z(a, function(d, h) { - var f = l, p = d.tickValue, g = o[$0(r)], v = r.coordToPoint([g + c, d.coord]), m = r.cx, y = r.cy, C = Math.abs(v[0] - m) / g < 0.3 ? "center" : v[0] > m ? "left" : "right", b = Math.abs(v[1] - y) / g < 0.3 ? "middle" : v[1] > y ? "top" : "bottom"; + var f = l, p = d.tickValue, g = o[H0(r)], v = r.coordToPoint([g + c, d.coord]), m = r.cx, y = r.cy, C = Math.abs(v[0] - m) / g < 0.3 ? "center" : v[0] > m ? "left" : "right", b = Math.abs(v[1] - y) / g < 0.3 ? "middle" : v[1] > y ? "top" : "bottom"; if (s && s[p]) { var w = s[p]; - St(w) && w.textStyle && (f = new Gr(w.textStyle, l, l.ecModel)); + bt(w) && w.textStyle && (f = new Gr(w.textStyle, l, l.ecModel)); } var x = new vr({ silent: Qi.isLabelSilent(t), @@ -84577,12 +84618,12 @@ var F3e = ( for (var u = [], d = 0; d < n.length; d++) { var h = c++ % l.length; u[h] = u[h] || [], u[h].push(new ri({ - shape: k0(r, o, n[d].coord) + shape: V0(r, o, n[d].coord) })); } for (var d = 0; d < u.length; d++) e.add(No(u[d], { - style: wt({ + style: xt({ stroke: l[d % l.length] }, s.getLineStyle()), silent: !0, @@ -84594,7 +84635,7 @@ var F3e = ( for (var a = t.getModel("minorSplitLine"), s = a.getModel("lineStyle"), l = [], c = 0; c < i.length; c++) for (var u = 0; u < i[c].length; u++) l.push(new ri({ - shape: k0(r, o, i[c][u].coord) + shape: V0(r, o, i[c][u].coord) })); e.add(No(l, { style: s.getLineStyle(), @@ -84624,14 +84665,14 @@ var F3e = ( } for (var v = 0; v < u.length; v++) e.add(No(u[v], { - style: wt({ + style: xt({ fill: l[v % l.length] }, s.getAreaStyle()), silent: !0 })); } } -}, k3e = ["axisLine", "axisTickLabel", "axisName"], $3e = ["splitLine", "splitArea", "minorSplitLine"], B3e = ( +}, Y5e = ["axisLine", "axisTickLabel", "axisName"], q5e = ["splitLine", "splitArea", "minorSplitLine"], X5e = ( /** @class */ function(e) { Se(t, e); @@ -84643,14 +84684,14 @@ var F3e = ( if (this.group.removeAll(), !!r.get("show")) { var i = this._axisGroup, o = this._axisGroup = new Ot(); this.group.add(o); - var a = r.axis, s = a.polar, l = s.getAngleAxis(), c = a.getTicksCoords(), u = a.getMinorTicksCoords(), d = l.getExtent()[0], h = a.getExtent(), f = H3e(s, r, d), p = new Qi(r, f); - z(k3e, p.add, p), o.add(p.getGroup()), ey(i, o, r), z($3e, function(g) { - r.get([g, "show"]) && !a.scale.isBlank() && V3e[g](this.group, r, s, d, h, c, u); + var a = r.axis, s = a.polar, l = s.getAngleAxis(), c = a.getTicksCoords(), u = a.getMinorTicksCoords(), d = l.getExtent()[0], h = a.getExtent(), f = Q5e(s, r, d), p = new Qi(r, f); + z(Y5e, p.add, p), o.add(p.getGroup()), ny(i, o, r), z(q5e, function(g) { + r.get([g, "show"]) && !a.scale.isBlank() && Z5e[g](this.group, r, s, d, h, c, u); }, this); } }, t.type = "radiusAxis", t; }(Jd) -), V3e = { +), Z5e = { splitLine: function(e, t, r, n, i, o) { var a = t.getModel("splitLine"), s = a.getModel("lineStyle"), l = s.get("color"), c = 0, u = r.getAngleAxis(), d = Math.PI / 180, h = u.getExtent(), f = Math.abs(h[1] - h[0]) === 360 ? "Circle" : "Arc"; l = l instanceof Array ? l : [l]; @@ -84670,7 +84711,7 @@ var F3e = ( } for (var g = 0; g < p.length; g++) e.add(No(p[g], { - style: wt({ + style: xt({ stroke: l[g % l.length], fill: null }, s.getLineStyle()), @@ -84689,7 +84730,7 @@ var F3e = ( } })); e.add(No(c, { - style: wt({ + style: xt({ fill: null }, l.getLineStyle()), silent: !0 @@ -84716,7 +84757,7 @@ var F3e = ( } for (var h = 0; h < u.length; h++) e.add(No(u[h], { - style: wt({ + style: xt({ fill: l[h % l.length] }, s.getAreaStyle()), silent: !0 @@ -84724,7 +84765,7 @@ var F3e = ( } } }; -function H3e(e, t, r) { +function Q5e(e, t, r) { return { position: [e.cx, e.cy], rotation: r / 180 * Math.PI, @@ -84736,21 +84777,21 @@ function H3e(e, t, r) { z2: 1 }; } -function wJ(e) { +function RJ(e) { return e.get("stack") || "__ec_stack_" + e.seriesIndex; } -function xJ(e, t) { +function PJ(e, t) { return t.dim + e.model.componentIndex; } -function z3e(e, t, r) { - var n = {}, i = G3e(Fr(t.getSeriesByType(e), function(o) { +function J5e(e, t, r) { + var n = {}, i = eHe(Nr(t.getSeriesByType(e), function(o) { return !t.isSeriesFiltered(o) && o.coordinateSystem && o.coordinateSystem.type === "polar"; })); t.eachSeriesByType(e, function(o) { if (o.coordinateSystem.type === "polar") { - var a = o.getData(), s = o.coordinateSystem, l = s.getBaseAxis(), c = xJ(s, l), u = wJ(o), d = i[c][u], h = d.offset, f = d.width, p = s.getOtherAxis(l), g = o.coordinateSystem.cx, v = o.coordinateSystem.cy, m = o.get("barMinHeight") || 0, y = o.get("barMinAngle") || 0; + var a = o.getData(), s = o.coordinateSystem, l = s.getBaseAxis(), c = PJ(s, l), u = RJ(o), d = i[c][u], h = d.offset, f = d.width, p = s.getOtherAxis(l), g = o.coordinateSystem.cx, v = o.coordinateSystem.cy, m = o.get("barMinHeight") || 0, y = o.get("barMinAngle") || 0; n[u] = n[u] || []; - for (var C = a.mapDimension(p.dim), b = a.mapDimension(l.dim), w = Gl( + for (var C = a.mapDimension(p.dim), b = a.mapDimension(l.dim), w = Wl( a, C /* , baseDim */ @@ -84790,10 +84831,10 @@ function z3e(e, t, r) { } }); } -function G3e(e) { +function eHe(e) { var t = {}; z(e, function(n, i) { - var o = n.getData(), a = n.coordinateSystem, s = a.getBaseAxis(), l = xJ(a, s), c = s.getExtent(), u = s.type === "category" ? s.getBandWidth() : Math.abs(c[1] - c[0]) / o.count(), d = t[l] || { + var o = n.getData(), a = n.coordinateSystem, s = a.getBaseAxis(), l = PJ(a, s), c = s.getExtent(), u = s.type === "category" ? s.getBandWidth() : Math.abs(c[1] - c[0]) / o.count(), d = t[l] || { bandWidth: u, remainedWidth: u, autoWidthCount: 0, @@ -84802,7 +84843,7 @@ function G3e(e) { stacks: {} }, h = d.stacks; t[l] = d; - var f = wJ(n); + var f = RJ(n); h[f] || d.autoWidthCount++, h[f] = h[f] || { width: 0, maxWidth: 0 @@ -84831,16 +84872,16 @@ function G3e(e) { }); }), r; } -var W3e = { +var tHe = { startAngle: 90, clockwise: !0, splitNumber: 12, axisLabel: { rotate: 0 } -}, j3e = { +}, rHe = { splitNumber: 5 -}, U3e = ( +}, nHe = ( /** @class */ function(e) { Se(t, e); @@ -84851,8 +84892,8 @@ var W3e = { return t.type = "polar", t; }(sn) ); -function K3e(e) { - er(hy), Jd.registerAxisPointerClass("PolarAxisPointer", b3e), e.registerCoordinateSystem("polar", O3e), e.registerComponentModel(E3e), e.registerComponentView(U3e), Hf(e, "angle", R3e, W3e), Hf(e, "radius", P3e, j3e), e.registerComponentView(F3e), e.registerComponentView(B3e), e.registerLayout(Vt(z3e, "bar")); +function iHe(e) { + er(gy), Jd.registerAxisPointerClass("PolarAxisPointer", A5e), e.registerCoordinateSystem("polar", W5e), e.registerComponentModel(F5e), e.registerComponentView(nHe), Gf(e, "angle", N5e, tHe), Gf(e, "radius", k5e, rHe), e.registerComponentView(U5e), e.registerComponentView(X5e), e.registerLayout(Vt(J5e, "bar")); } function zM(e, t) { t = t || {}; @@ -84882,7 +84923,7 @@ function zM(e, t) { var h = t.rotate; return h == null && (h = e.get(["axisLabel", "rotate"])), i.labelRotation = o === "top" ? -h : h, i.z2 = 1, i; } -var Y3e = ["axisLine", "axisTickLabel", "axisName"], q3e = ["splitArea", "splitLine"], X3e = ( +var oHe = ["axisLine", "axisTickLabel", "axisName"], aHe = ["splitArea", "splitLine"], sHe = ( /** @class */ function(e) { Se(t, e); @@ -84896,14 +84937,14 @@ var Y3e = ["axisLine", "axisTickLabel", "axisName"], q3e = ["splitArea", "splitL var s = this._axisGroup; this._axisGroup = new Ot(); var l = zM(r), c = new Qi(r, l); - z(Y3e, c.add, c), a.add(this._axisGroup), a.add(c.getGroup()), z(q3e, function(u) { - r.get([u, "show"]) && Z3e[u](this, this.group, this._axisGroup, r); - }, this), ey(s, this._axisGroup, r), e.prototype.render.call(this, r, n, i, o); + z(oHe, c.add, c), a.add(this._axisGroup), a.add(c.getGroup()), z(aHe, function(u) { + r.get([u, "show"]) && lHe[u](this, this.group, this._axisGroup, r); + }, this), ny(s, this._axisGroup, r), e.prototype.render.call(this, r, n, i, o); }, t.prototype.remove = function() { - GZ(this); + UZ(this); }, t.type = "singleAxis", t; }(Jd) -), Z3e = { +), lHe = { splitLine: function(e, t, r, n) { var i = n.axis; if (!i.scale.isBlank()) { @@ -84923,13 +84964,13 @@ var Y3e = ["axisLine", "axisTickLabel", "axisName"], q3e = ["splitArea", "splitL }, silent: !0 }); - kf(y.shape, l); + Bf(y.shape, l); var C = h++ % s.length; d[C] = d[C] || [], d[C].push(y); } for (var b = a.getLineStyle(["color"]), v = 0; v < d.length; ++v) t.add(No(d[v], { - style: wt({ + style: xt({ stroke: s[v % s.length] }, b), silent: !0 @@ -84937,9 +84978,9 @@ var Y3e = ["axisLine", "axisTickLabel", "axisName"], q3e = ["splitArea", "splitL } }, splitArea: function(e, t, r, n) { - zZ(e, r, n, n); + jZ(e, r, n, n); } -}, LC = ( +}, kC = ( /** @class */ function(e) { Se(t, e); @@ -84991,8 +85032,8 @@ var Y3e = ["axisLine", "axisTickLabel", "axisName"], q3e = ["splitArea", "splitL }, t; }(Qt) ); -In(LC, Rp.prototype); -var Q3e = ( +In(kC, Tp.prototype); +var cHe = ( /** @class */ function(e) { Se(t, e); @@ -85007,14 +85048,14 @@ var Q3e = ( return this.coordinateSystem.pointToData(r)[0]; }, t; }(La) -), EJ = ["single"], J3e = ( +), TJ = ["single"], uHe = ( /** @class */ function() { function e(t, r, n) { - this.type = "single", this.dimension = "single", this.dimensions = EJ, this.axisPointerEnabled = !0, this.model = t, this._init(t, r, n); + this.type = "single", this.dimension = "single", this.dimensions = TJ, this.axisPointerEnabled = !0, this.model = t, this._init(t, r, n); } return e.prototype._init = function(t, r, n) { - var i = this.dimension, o = new Q3e(i, ny(t), [0, 0], t.get("type"), t.get("position")), a = o.type === "category"; + var i = this.dimension, o = new cHe(i, ay(t), [0, 0], t.get("type"), t.get("position")), a = o.type === "category"; o.onBand = a && t.get("boundaryGap"), o.inverse = t.get("inverse"), o.orient = t.get("orient"), t.axis = o, o.model = t, o.coordinateSystem = this, this._axis = o; }, e.prototype.update = function(t, r) { t.eachSeries(function(n) { @@ -85075,22 +85116,22 @@ var Q3e = ( var r = this.getAxis(), n = this.getRect(), i = [], o = r.orient === "horizontal" ? 0 : 1; return t instanceof Array && (t = t[0]), i[o] = r.toGlobalCoord(r.dataToCoord(+t)), i[1 - o] = o === 0 ? n.y + n.height / 2 : n.x + n.width / 2, i; }, e.prototype.convertToPixel = function(t, r, n) { - var i = KH(r); + var i = q3(r); return i === this ? this.dataToPoint(n) : null; }, e.prototype.convertFromPixel = function(t, r, n) { - var i = KH(r); + var i = q3(r); return i === this ? this.pointToData(n) : null; }, e; }() ); -function KH(e) { +function q3(e) { var t = e.seriesModel, r = e.singleAxisModel; return r && r.coordinateSystem || t && t.coordinateSystem; } -function e5e(e, t) { +function dHe(e, t) { var r = []; return e.eachComponent("singleAxis", function(n, i) { - var o = new J3e(n, e, t); + var o = new uHe(n, e, t); o.name = "single_" + i, o.resize(n, t), n.coordinateSystem = o, r.push(o); }), e.eachSeries(function(n) { if (n.get("coordinateSystem") === "singleAxis") { @@ -85099,10 +85140,10 @@ function e5e(e, t) { } }), r; } -var t5e = { - create: e5e, - dimensions: EJ -}, YH = ["x", "y"], r5e = ["width", "height"], n5e = ( +var hHe = { + create: dHe, + dimensions: TJ +}, X3 = ["x", "y"], fHe = ["width", "height"], pHe = ( /** @class */ function(e) { Se(t, e); @@ -85110,13 +85151,13 @@ var t5e = { return e !== null && e.apply(this, arguments) || this; } return t.prototype.makeElOption = function(r, n, i, o, a) { - var s = i.axis, l = s.coordinateSystem, c = kR(l, 1 - db(s)), u = l.dataToPoint(n)[0], d = o.get("type"); + var s = i.axis, l = s.coordinateSystem, c = kR(l, 1 - fb(s)), u = l.dataToPoint(n)[0], d = o.get("type"); if (d && d !== "none") { - var h = bO(o), f = i5e[d](s, u, c); + var h = bO(o), f = gHe[d](s, u, c); f.style = h, r.graphicKey = f.type, r.pointer = f; } var p = zM(i); - mJ( + SJ( // @ts-ignore n, r, @@ -85137,7 +85178,7 @@ var t5e = { rotation: o.rotation + (o.labelDirection < 0 ? Math.PI : 0) }; }, t.prototype.updateHandleTransform = function(r, n, i, o) { - var a = i.axis, s = a.coordinateSystem, l = db(a), c = kR(s, l), u = [r.x, r.y]; + var a = i.axis, s = a.coordinateSystem, l = fb(a), c = kR(s, l), u = [r.x, r.y]; u[l] += n[l], u[l] = Math.min(c[1], u[l]), u[l] = Math.max(c[0], u[l]); var d = kR(s, 1 - l), h = (d[1] + d[0]) / 2, f = [h, h]; return f[l] = u[l], { @@ -85151,9 +85192,9 @@ var t5e = { }; }, t; }(SO) -), i5e = { +), gHe = { line: function(e, t, r) { - var n = xO([t, r[0]], [t, r[1]], db(e)); + var n = xO([t, r[0]], [t, r[1]], fb(e)); return { type: "Line", subPixelOptimize: !0, @@ -85164,18 +85205,18 @@ var t5e = { var n = e.getBandWidth(), i = r[1] - r[0]; return { type: "Rect", - shape: yJ([t - n / 2, r[0]], [n, i], db(e)) + shape: bJ([t - n / 2, r[0]], [n, i], fb(e)) }; } }; -function db(e) { +function fb(e) { return e.isHorizontal() ? 0 : 1; } function kR(e, t) { var r = e.getRect(); - return [r[YH[t]], r[YH[t]] + r[r5e[t]]]; + return [r[X3[t]], r[X3[t]] + r[fHe[t]]]; } -var o5e = ( +var vHe = ( /** @class */ function(e) { Se(t, e); @@ -85186,10 +85227,10 @@ var o5e = ( return t.type = "single", t; }(sn) ); -function a5e(e) { - er(hy), Jd.registerAxisPointerClass("SingleAxisPointer", n5e), e.registerComponentView(o5e), e.registerComponentView(X3e), e.registerComponentModel(LC), Hf(e, "single", LC, LC.defaultOption), e.registerCoordinateSystem("single", t5e); +function mHe(e) { + er(gy), Jd.registerAxisPointerClass("SingleAxisPointer", pHe), e.registerComponentView(vHe), e.registerComponentView(sHe), e.registerComponentModel(kC), Gf(e, "single", kC, kC.defaultOption), e.registerCoordinateSystem("single", hHe); } -var s5e = ( +var yHe = ( /** @class */ function(e) { Se(t, e); @@ -85198,10 +85239,10 @@ var s5e = ( return r.type = t.type, r; } return t.prototype.init = function(r, n, i) { - var o = yp(r); - e.prototype.init.apply(this, arguments), qH(r, o); + var o = Sp(r); + e.prototype.init.apply(this, arguments), Z3(r, o); }, t.prototype.mergeOption = function(r) { - e.prototype.mergeOption.apply(this, arguments), qH(this.option, r); + e.prototype.mergeOption.apply(this, arguments), Z3(this.option, r); }, t.prototype.getCellSize = function() { return this.option.cellSize; }, t.type = "calendar", t.defaultOption = { @@ -85262,18 +85303,18 @@ var s5e = ( }, t; }(Qt) ); -function qH(e, t) { +function Z3(e, t) { var r = e.cellSize, n; - Ie(r) ? n = r : n = e.cellSize = [r, r], n.length === 1 && (n[1] = n[0]); + Ae(r) ? n = r : n = e.cellSize = [r, r], n.length === 1 && (n[1] = n[0]); var i = Fe([0, 1], function(o) { - return sAe(t, o) && (n[o] = "auto"), n[o] != null && n[o] !== "auto"; + return yAe(t, o) && (n[o] = "auto"), n[o] != null && n[o] !== "auto"; }); Uc(e, t, { type: "box", ignoreSize: i }); } -var l5e = ( +var CHe = ( /** @class */ function(e) { Se(t, e); @@ -85334,7 +85375,7 @@ var l5e = ( } return s; }, t.prototype._formatterLabel = function(r, n) { - return Je(r) && r ? nAe(r, n) : vt(r) ? r(n) : n.nameMap; + return Je(r) && r ? pAe(r, n) : mt(r) ? r(n) : n.nameMap; }, t.prototype._yearTextPositionControl = function(r, n, i, o, a) { var s = n[0], l = n[1], c = ["center", "bottom"]; o === "bottom" ? (l += a, c = ["center", "top"]) : o === "left" ? s -= a : o === "right" ? (s += a, c = ["center", "top"]) : l -= a; @@ -85443,7 +85484,7 @@ var l5e = ( } }, t.type = "calendar", t; }(sn) -), $R = 864e5, c5e = ( +), $R = 864e5, SHe = ( /** @class */ function() { function e(t, r, n) { @@ -85500,7 +85541,7 @@ var l5e = ( } this._sw = o[0], this._sh = o[1]; }, e.prototype.dataToPoint = function(t, r) { - Ie(t) && (t = t[0]), r == null && (r = !0); + Ae(t) && (t = t[0]), r == null && (r = !0); var n = this.getDateInfo(t), i = this._rangeInfo, o = n.formatedDate; if (r && !(n.time >= i.start.time && n.time < i.end.time + $R)) return [NaN, NaN]; @@ -85528,16 +85569,16 @@ var l5e = ( var r = 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 this._orient === "vertical" ? this._getDateByWeeksAndDay(n, r - 1, i) : this._getDateByWeeksAndDay(r, n - 1, i); }, e.prototype.convertToPixel = function(t, r, n) { - var i = XH(r); + var i = Q3(r); return i === this ? i.dataToPoint(n) : null; }, e.prototype.convertFromPixel = function(t, r, n) { - var i = XH(r); + var i = Q3(r); return i === this ? i.pointToData(n) : null; }, e.prototype.containPoint = function(t) { return console.warn("Not implemented."), !1; }, e.prototype._initRangeOption = function() { var t = this._model.get("range"), r; - if (Ie(t) && t.length === 1 && (t = t[0]), Ie(t)) + if (Ae(t) && t.length === 1 && (t = t[0]), Ae(t)) r = t; else { var n = t.toString(); @@ -85591,14 +85632,14 @@ var l5e = ( }, e.dimensions = ["time", "value"], e; }() ); -function XH(e) { +function Q3(e) { var t = e.calendarModel, r = e.seriesModel, n = t ? t.coordinateSystem : r ? r.coordinateSystem : null; return n; } -function u5e(e) { - e.registerComponentModel(s5e), e.registerComponentView(l5e), e.registerCoordinateSystem("calendar", c5e); +function bHe(e) { + e.registerComponentModel(yHe), e.registerComponentView(CHe), e.registerCoordinateSystem("calendar", SHe); } -function d5e(e, t) { +function wHe(e, t) { var r = e.existing; if (t.id = e.keyInfo.id, !t.type && r && (t.type = r.type), t.parentId == null) { var n = t.parentOption; @@ -85606,47 +85647,47 @@ function d5e(e, t) { } t.parentOption = null; } -function ZH(e, t) { +function J3(e, t) { var r; return z(t, function(n) { e[n] != null && e[n] !== "auto" && (r = !0); }), r; } -function h5e(e, t, r) { +function xHe(e, t, r) { var n = Pe({}, r), i = e[t], o = r.$action || "merge"; if (o === "merge") if (i) { if (process.env.NODE_ENV !== "production") { var a = r.type; - xt(!a || i.type === a, 'Please set $action: "replace" to change `type`'); + Et(!a || i.type === a, 'Please set $action: "replace" to change `type`'); } - Wt(i, n, !0), Uc(i, n, { + jt(i, n, !0), Uc(i, n, { ignoreSize: !0 - }), pq(r, i), B0(r, i), B0(r, i, "shape"), B0(r, i, "style"), B0(r, i, "extra"), r.clipPath = i.clipPath; + }), mq(r, i), z0(r, i), z0(r, i, "shape"), z0(r, i, "style"), z0(r, i, "extra"), r.clipPath = i.clipPath; } else e[t] = n; else o === "replace" ? e[t] = n : o === "remove" && i && (e[t] = null); } -var RJ = ["transition", "enterFrom", "leaveTo"], f5e = RJ.concat(["enterAnimation", "updateAnimation", "leaveAnimation"]); -function B0(e, t, r) { +var _J = ["transition", "enterFrom", "leaveTo"], EHe = _J.concat(["enterAnimation", "updateAnimation", "leaveAnimation"]); +function z0(e, t, r) { if (r && (!e[r] && t[r] && (e[r] = {}), e = e[r], t = t[r]), !(!e || !t)) - for (var n = r ? RJ : f5e, i = 0; i < n.length; i++) { + for (var n = r ? _J : EHe, i = 0; i < n.length; i++) { var o = n[i]; e[o] == null && t[o] != null && (e[o] = t[o]); } } -function p5e(e, t) { +function RHe(e, t) { if (e && (e.hv = t.hv = [ // Rigid body, don't care about `width`. - ZH(t, ["left", "right"]), + J3(t, ["left", "right"]), // Rigid body, don't care about `height`. - ZH(t, ["top", "bottom"]) + J3(t, ["top", "bottom"]) ], e.type === "group")) { var r = e, n = t; r.width == null && (r.width = n.width = 0), r.height == null && (r.height = n.height = 0); } } -var g5e = ( +var PHe = ( /** @class */ function(e) { Se(t, e); @@ -85660,11 +85701,11 @@ var g5e = ( }, t.prototype.optionUpdated = function(r, n) { var i = this.option, o = (n ? i : r).elements, a = i.elements = n ? [] : i.elements, s = []; this._flatten(o, s, null); - var l = eY(a, s, "normalMerge"), c = this._elOptionsToUpdate = []; + var l = nY(a, s, "normalMerge"), c = this._elOptionsToUpdate = []; z(l, function(u, d) { var h = u.newOption; - process.env.NODE_ENV !== "production" && xt(St(h) || u.existing, "Empty graphic option definition"), h && (c.push(h), d5e(u, h), h5e(a, d, h), p5e(a[d], h)); - }, this), i.elements = Fr(a, function(u) { + process.env.NODE_ENV !== "production" && Et(bt(h) || u.existing, "Empty graphic option definition"), h && (c.push(h), wHe(u, h), xHe(a, d, h), RHe(a[d], h)); + }, this), i.elements = Nr(a, function(u) { return u && delete u.$action, u != null; }); }, t.prototype._flatten = function(r, n, i) { @@ -85683,15 +85724,15 @@ var g5e = ( // parentId: null }, t; }(Qt) -), QH = { +), e5 = { // Reserved but not supported in graphic component. path: null, compoundPath: null, // Supported in graphic component. group: Ot, - image: yi, + image: Ci, text: vr -}, ua = yr(), v5e = ( +}, ua = yr(), THe = ( /** @class */ function(e) { Se(t, e); @@ -85711,25 +85752,25 @@ var g5e = ( var c = qn(l.id, null), u = c != null ? i.get(c) : null, d = qn(l.parentId, null), h = d != null ? i.get(d) : o, f = l.type, p = l.style; f === "text" && p && l.hv && l.hv[1] && (p.textVerticalAlign = p.textBaseline = p.verticalAlign = p.align = null); var g = l.textContent, v = l.textConfig; - if (p && iJ(p, f, !!v, !!g)) { - var m = oJ(p, f, !0); + if (p && sJ(p, f, !!v, !!g)) { + var m = lJ(p, f, !0); !v && m.textConfig && (v = l.textConfig = m.textConfig), !g && m.textContent && (g = m.textContent); } - var y = m5e(l); - process.env.NODE_ENV !== "production" && u && xt(h === u.parent, "Changing parent is not supported."); + var y = _He(l); + process.env.NODE_ENV !== "production" && u && Et(h === u.parent, "Changing parent is not supported."); var C = l.$action || "merge", b = C === "merge", w = C === "replace"; if (b) { var x = !u, E = u; - x ? E = JH(c, h, l.type, i) : (E && (ua(E).isNew = !1), uJ(E)), E && (AC(E, y, r, { + x ? E = t5(c, h, l.type, i) : (E && (ua(E).isNew = !1), fJ(E)), E && (FC(E, y, r, { isInit: x - }), e3(E, l, a, s)); + }), r5(E, l, a, s)); } else if (w) { - FC(u, l, i, r); - var R = JH(c, h, l.type, i); - R && (AC(R, y, r, { + $C(u, l, i, r); + var R = t5(c, h, l.type, i); + R && (FC(R, y, r, { isInit: !0 - }), e3(R, l, a, s)); - } else C === "remove" && (sJ(u, l), FC(u, l, i, r)); + }), r5(R, l, a, s)); + } else C === "remove" && (uJ(u, l), $C(u, l, i, r)); var P = i.get(c); if (P && g) if (b) { @@ -85744,17 +85785,17 @@ var g5e = ( var M = P.getClipPath(); x = !M || ua(M).type !== D, A = x ? GM(D) : M; } else w && (x = !0, A = GM(D)); - P.setClipPath(A), AC(A, _, r, { + P.setClipPath(A), FC(A, _, r, { isInit: x - }), lb(A, _.keyframeAnimation, r); + }), ub(A, _.keyframeAnimation, r); } var O = ua(P); - P.setTextConfig(v), O.option = l, y5e(P, r, l), gp({ + P.setTextConfig(v), O.option = l, MHe(P, r, l), mp({ el: P, componentModel: r, itemName: P.name, itemTooltipOption: l.tooltip - }), lb(P, l.keyframeAnimation, r); + }), ub(P, l.keyframeAnimation, r); } }); } @@ -85782,7 +85823,7 @@ var g5e = ( if (!ua(f).isNew && b) { for (var w = d.transition, x = {}, E = 0; E < c.length; E++) { var R = c[E], P = C[R]; - w && (vd(w) || Yt(w, R) >= 0) ? x[R] = P : f[R] = P; + w && (vd(w) || qt(w, R) >= 0) ? x[R] = P : f[R] = P; } br(f, x, r, 0); } else @@ -85792,7 +85833,7 @@ var g5e = ( }, t.prototype._clear = function() { var r = this, n = this._elMap; n.each(function(i) { - FC(i, ua(i).option, n, r._lastGraphicModel); + $C(i, ua(i).option, n, r._lastGraphicModel); }), this._elMap = ft(); }, t.prototype.dispose = function() { this._clear(); @@ -85800,23 +85841,23 @@ var g5e = ( }(sn) ); function GM(e) { - process.env.NODE_ENV !== "production" && xt(e, "graphic type MUST be set"); - var t = lt(QH, e) ? QH[e] : Hw(e); - process.env.NODE_ENV !== "production" && xt(t, "graphic type " + e + " can not be found"); + process.env.NODE_ENV !== "production" && Et(e, "graphic type MUST be set"); + var t = lt(e5, e) ? e5[e] : Hw(e); + process.env.NODE_ENV !== "production" && Et(t, "graphic type " + e + " can not be found"); var r = new t({}); return ua(r).type = e, r; } -function JH(e, t, r, n) { +function t5(e, t, r, n) { var i = GM(r); return t.add(i), n.set(e, i), ua(i).id = e, ua(i).isNew = !0, i; } -function FC(e, t, r, n) { +function $C(e, t, r, n) { var i = e && e.parent; i && (e.type === "group" && e.traverse(function(o) { - FC(o, t, r, n); + $C(o, t, r, n); }), d1(e, t, n), r.removeKey(ua(e).id)); } -function e3(e, t, r, n) { +function r5(e, t, r, n) { e.isGroup || z([ ["cursor", Ta.prototype.cursor], // We should not support configure z and zlevel in the element level. @@ -85831,16 +85872,16 @@ function e3(e, t, r, n) { }), z(ar(t), function(i) { if (i.indexOf("on") === 0) { var o = t[i]; - e[i] = vt(o) ? o : null; + e[i] = mt(o) ? o : null; } }), lt(t, "draggable") && (e.draggable = t.draggable), t.name != null && (e.name = t.name), t.id != null && (e.id = t.id); } -function m5e(e) { - return e = Pe({}, e), z(["id", "parentId", "$action", "hv", "bounding", "textContent", "clipPath"].concat(fq), function(t) { +function _He(e) { + return e = Pe({}, e), z(["id", "parentId", "$action", "hv", "bounding", "textContent", "clipPath"].concat(vq), function(t) { delete e[t]; }), e; } -function y5e(e, t, r) { +function MHe(e, t, r) { var n = Ft(e).eventData; !e.silent && !e.ignore && !n && (n = Ft(e).eventData = { componentType: "graphic", @@ -85848,25 +85889,25 @@ function y5e(e, t, r) { name: e.name }), n && (n.info = r.info); } -function C5e(e) { - e.registerComponentModel(g5e), e.registerComponentView(v5e), e.registerPreprocessor(function(t) { +function DHe(e) { + e.registerComponentModel(PHe), e.registerComponentView(THe), e.registerPreprocessor(function(t) { var r = t.graphic; - Ie(r) ? !r[0] || !r[0].elements ? t.graphic = [{ + Ae(r) ? !r[0] || !r[0].elements ? t.graphic = [{ elements: r }] : t.graphic = [t.graphic[0]] : r && !r.elements && (t.graphic = [{ elements: [r] }]); }); } -var t3 = ["x", "y", "radius", "angle", "single"], S5e = ["cartesian2d", "polar", "singleAxis"]; -function b5e(e) { +var n5 = ["x", "y", "radius", "angle", "single"], IHe = ["cartesian2d", "polar", "singleAxis"]; +function AHe(e) { var t = e.get("coordinateSystem"); - return Yt(S5e, t) >= 0; + return qt(IHe, t) >= 0; } function Rc(e) { - return process.env.NODE_ENV !== "production" && xt(e), e + "Axis"; + return process.env.NODE_ENV !== "production" && Et(e), e + "Axis"; } -function w5e(e, t) { +function OHe(e, t) { var r = ft(), n = [], i = ft(); e.eachComponent({ mainType: "dataZoom", @@ -85898,7 +85939,7 @@ function w5e(e, t) { } return n; } -function PJ(e) { +function MJ(e) { var t = e.ecModel, r = { infoList: [], infoMap: ft() @@ -85927,7 +85968,7 @@ var BR = ( this.indexMap[t] || (this.indexList.push(t), this.indexMap[t] = !0); }, e; }() -), dm = ( +), fm = ( /** @class */ function(e) { Se(t, e); @@ -85936,11 +85977,11 @@ var BR = ( return r.type = t.type, r._autoThrottle = !0, r._noTarget = !0, r._rangePropMode = ["percent", "percent"], r; } return t.prototype.init = function(r, n, i) { - var o = r3(r); + var o = i5(r); this.settledOption = o, this.mergeDefaultAndTheme(r, i), this._doInit(o); }, t.prototype.mergeOption = function(r) { - var n = r3(r); - Wt(this.option, r, !0), Wt(this.settledOption, n, !0), this._doInit(n); + var n = i5(r); + jt(this.option, r, !0), jt(this.settledOption, n, !0), this._doInit(n); }, t.prototype._doInit = function(r) { var n = this.option; this._setDefaultThrottle(r), this._updateRangeUse(r); @@ -85955,8 +85996,8 @@ var BR = ( }, this); }, t.prototype._fillSpecifiedTargetAxis = function(r) { var n = !1; - return z(t3, function(i) { - var o = this.getReferringComponents(Rc(i), WDe); + return z(n5, function(i) { + var o = this.getReferringComponents(Rc(i), tDe); if (o.specified) { n = !0; var a = new BR(); @@ -85994,7 +86035,7 @@ var BR = ( } } } - o && z(t3, function(c) { + o && z(n5, function(c) { if (o) { var u = i.findComponents({ mainType: Rc(c), @@ -86042,7 +86083,7 @@ var BR = ( if (i) return i.__dzAxisProxy; }, t.prototype.getAxisModel = function(r, n) { - process.env.NODE_ENV !== "production" && xt(r && n != null); + process.env.NODE_ENV !== "production" && Et(r && n != null); var i = this._targetAxisInfoMap.get(r); if (i && i.indexMap[n]) return this.ecModel.getComponent(Rc(r), n); @@ -86081,7 +86122,7 @@ var BR = ( }, t.prototype.getRangePropMode = function() { return this._rangePropMode.slice(); }, t.prototype.getOrient = function() { - return process.env.NODE_ENV !== "production" && xt(this._orient), this._orient; + return process.env.NODE_ENV !== "production" && Et(this._orient), this._orient; }, t.type = "dataZoom", t.dependencies = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "series", "toolbox"], t.defaultOption = { // zlevel: 0, z: 4, @@ -86091,13 +86132,13 @@ var BR = ( }, t; }(Qt) ); -function r3(e) { +function i5(e) { var t = {}; return z(["start", "end", "startValue", "endValue", "throttle"], function(r) { e.hasOwnProperty(r) && (t[r] = e[r]); }), t; } -var x5e = ( +var LHe = ( /** @class */ function(e) { Se(t, e); @@ -86106,7 +86147,7 @@ var x5e = ( return r.type = t.type, r; } return t.type = "dataZoom.select", t; - }(dm) + }(fm) ), TO = ( /** @class */ function(e) { @@ -86119,7 +86160,7 @@ var x5e = ( this.dataZoomModel = r, this.ecModel = n, this.api = i; }, t.type = "dataZoom", t; }(sn) -), E5e = ( +), FHe = ( /** @class */ function(e) { Se(t, e); @@ -86129,7 +86170,7 @@ var x5e = ( } return t.type = "dataZoom.select", t; }(TO) -), Yh = z, n3 = Vo, R5e = ( +), Yh = z, o5 = Vo, NHe = ( /** @class */ function() { function e(t, r, n, i) { @@ -86144,7 +86185,7 @@ var x5e = ( }, e.prototype.getTargetSeriesModels = function() { var t = []; return this.ecModel.eachSeries(function(r) { - if (b5e(r)) { + if (AHe(r)) { var n = Rc(this._dimName), i = r.getReferringComponents(n, Wn).models[0]; i && this._axisIndex === i.componentIndex && t.push(r); } @@ -86158,7 +86199,7 @@ var x5e = ( Yh(["start", "end"], function(h, f) { var p = t[h], g = t[h + "Value"]; o[f] === "percent" ? (p == null && (p = a[f]), g = i.parse(Lr(p, a, r))) : (c = !0, g = g == null ? r[f] : i.parse(g), p = Lr(g, r, a)), l[f] = g == null || isNaN(g) ? r[f] : g, s[f] = p == null || isNaN(p) ? a[f] : p; - }), n3(l), n3(s); + }), o5(l), o5(s); var u = this._minMaxSpan; c ? d(l, s, r, a, !1) : d(s, l, a, r, !0); function d(h, f, p, g, v) { @@ -86174,7 +86215,7 @@ var x5e = ( }, e.prototype.reset = function(t) { if (t === this._dataZoomModel) { var r = this.getTargetSeriesModels(); - this._dataExtent = P5e(this, this._dimName, r), this._updateMinMaxSpan(); + this._dataExtent = kHe(this, this._dimName, r), this._updateMinMaxSpan(); var n = this.calculateDataWindow(t.settledOption); this._valueWindow = n.valueWindow, this._percentWindow = n.percentWindow, this._setAxisModel(); } @@ -86228,7 +86269,7 @@ var x5e = ( }, e.prototype._setAxisModel = function() { var t = this.getAxisModel(), r = this._percentWindow, n = this._valueWindow; if (r) { - var i = A2(n, [0, 500]); + var i = AI(n, [0, 500]); i = Math.min(i, 20); var o = t.axis.scale.rawExtentInfo; r[0] !== 0 && o.setDeterminedMinMax("min", +n[0].toFixed(i)), r[1] !== 100 && o.setDeterminedMinMax("max", +n[1].toFixed(i)), o.freeze(); @@ -86236,15 +86277,15 @@ var x5e = ( }, e; }() ); -function P5e(e, t, r) { +function kHe(e, t, r) { var n = [1 / 0, -1 / 0]; Yh(r, function(a) { - WFe(n, a.getData(), t); + tNe(n, a.getData(), t); }); - var i = e.getAxisModel(), o = zX(i.axis.scale, i, n).calculate(); + var i = e.getAxisModel(), o = jX(i.axis.scale, i, n).calculate(); return [o.min, o.max]; } -var T5e = { +var $He = { // `dataZoomProcessor` will only be performed in needed series. Consider if // there is a line series and a pie series, it is better not to update the // line series if only pie series is needed to be updated. @@ -86262,7 +86303,7 @@ var T5e = { }); var r = []; t(function(i, o, a, s) { - a.__dzAxisProxy || (a.__dzAxisProxy = new R5e(i, o, s, e), r.push(a.__dzAxisProxy)); + a.__dzAxisProxy || (a.__dzAxisProxy = new NHe(i, o, s, e), r.push(a.__dzAxisProxy)); }); var n = ft(); return z(r, function(i) { @@ -86295,9 +86336,9 @@ var T5e = { }); } }; -function _5e(e) { +function BHe(e) { e.registerAction("dataZoom", function(t, r) { - var n = w5e(r, t); + var n = OHe(r, t); z(n, function(i) { i.setRawRange({ start: t.start, @@ -86308,14 +86349,14 @@ function _5e(e) { }); }); } -var i3 = !1; +var a5 = !1; function _O(e) { - i3 || (i3 = !0, e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER, T5e), _5e(e), e.registerSubTypeDefaulter("dataZoom", function() { + a5 || (a5 = !0, e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER, $He), BHe(e), e.registerSubTypeDefaulter("dataZoom", function() { return "slider"; })); } -function M5e(e) { - e.registerComponentModel(x5e), e.registerComponentView(E5e), _O(e); +function VHe(e) { + e.registerComponentModel(LHe), e.registerComponentView(FHe), _O(e); } var fa = ( /** @class */ @@ -86324,14 +86365,14 @@ var fa = ( } return e; }() -), TJ = {}; +), DJ = {}; function qh(e, t) { - TJ[e] = t; + DJ[e] = t; } -function _J(e) { - return TJ[e]; +function IJ(e) { + return DJ[e]; } -var D5e = ( +var HHe = ( /** @class */ function(e) { Se(t, e); @@ -86343,8 +86384,8 @@ var D5e = ( e.prototype.optionUpdated.apply(this, arguments); var r = this.ecModel; z(this.option.feature, function(n, i) { - var o = _J(i); - o && (o.getDefaultOption && (o.defaultOption = o.getDefaultOption(r)), Wt(n, o.defaultOption)); + var o = IJ(i); + o && (o.getDefaultOption && (o.defaultOption = o.getDefaultOption(r)), jt(n, o.defaultOption)); }); }, t.type = "toolbox", t.layoutMode = { type: "box", @@ -86384,14 +86425,14 @@ var D5e = ( }, t; }(Qt) ); -function I5e(e, t, r) { +function zHe(e, t, r) { var n = t.getBoxLayoutParams(), i = t.get("padding"), o = { width: r.getWidth(), height: r.getHeight() }, a = jn(n, o, i); fd(t.get("orient"), e, t.get("itemGap"), a.width, a.height), Yw(e, n, o, i); } -function MJ(e, t) { +function AJ(e, t) { var r = qd(t.get("padding")), n = t.getItemStyle(["color", "opacity"]); return n.fill = t.get("backgroundColor"), e = new mr({ shape: { @@ -86406,7 +86447,7 @@ function MJ(e, t) { z2: -1 }), e; } -var A5e = ( +var GHe = ( /** @class */ function(e) { Se(t, e); @@ -86420,17 +86461,17 @@ var A5e = ( var s = +r.get("itemSize"), l = r.get("orient") === "vertical", c = r.get("feature") || {}, u = this._features || (this._features = {}), d = []; z(c, function(p, g) { d.push(g); - }), new zl(this._featureNames || [], d).add(h).update(h).remove(Vt(h, null)).execute(), this._featureNames = d; + }), new Gl(this._featureNames || [], d).add(h).update(h).remove(Vt(h, null)).execute(), this._featureNames = d; function h(p, g) { var v = d[p], m = d[g], y = c[v], C = new Gr(y, r, r.ecModel), b; if (o && o.newTitle != null && o.featureName === v && (y.title = o.newTitle), v && !m) { - if (O5e(v)) + if (WHe(v)) b = { onclick: C.option.onclick, featureName: v }; else { - var w = _J(v); + var w = IJ(v); if (!w) return; b = new w(); @@ -86438,7 +86479,7 @@ var A5e = ( u[v] = b; } else if (b = u[m], !b) return; - b.uid = mp("toolbox-feature"), b.model = C, b.ecModel = n, b.api = i; + b.uid = Cp("toolbox-feature"), b.model = C, b.ecModel = n, b.api = i; var x = b instanceof fa; if (!v && m) { x && b.dispose && b.dispose(n, i); @@ -86450,7 +86491,7 @@ var A5e = ( } f(C, b, v), C.setIconStatus = function(E, R) { var P = this.option, T = this.iconPaths; - P.iconStatus = P.iconStatus || {}, P.iconStatus[E] = R, T[E] && (R === "emphasis" ? Vl : Hl)(T[E]); + P.iconStatus = P.iconStatus || {}, P.iconStatus[E] = R, T[E] && (R === "emphasis" ? Hl : zl)(T[E]); }, b instanceof fa && b.render && b.render(C, n, i, o); } function f(p, g, v) { @@ -86458,7 +86499,7 @@ var A5e = ( Je(C) ? (w = {}, w[v] = C) : w = C, Je(b) ? (x = {}, x[v] = b) : x = b; var E = p.iconPaths = {}; z(w, function(R, P) { - var T = pp(R, {}, { + var T = vp(R, {}, { x: -s / 2, y: -s / 2, width: s, @@ -86474,7 +86515,7 @@ var A5e = ( borderRadius: y.get("textBorderRadius"), padding: y.get("textPadding"), fill: null, - font: Z2({ + font: ZI({ fontStyle: y.get("textFontStyle"), fontFamily: y.get("textFontFamily"), fontSize: y.get("textFontSize"), @@ -86483,7 +86524,7 @@ var A5e = ( }, ignore: !0 }); - T.setTextContent(D), gp({ + T.setTextContent(D), mp({ el: T, componentModel: r, itemName: P, @@ -86500,13 +86541,13 @@ var A5e = ( }), D.ignore = !r.get("showTitle"), i.enterEmphasis(this); }).on("mouseout", function() { p.get(["iconStatus", P]) !== "emphasis" && i.leaveEmphasis(this), D.hide(); - }), (p.get(["iconStatus", P]) === "emphasis" ? Vl : Hl)(T), a.add(T), T.on("click", at(g.onclick, g, n, i, P)), E[P] = T; + }), (p.get(["iconStatus", P]) === "emphasis" ? Hl : zl)(T), a.add(T), T.on("click", at(g.onclick, g, n, i, P)), E[P] = T; }); } - I5e(a, r, i), a.add(MJ(a.getBoundingRect(), r)), l || a.eachChild(function(p) { + zHe(a, r, i), a.add(AJ(a.getBoundingRect(), r)), l || a.eachChild(function(p) { var g = p.__title, v = p.ensureState("emphasis"), m = v.textConfig || (v.textConfig = {}), y = p.getTextContent(), C = y && y.ensureState("emphasis"); - if (C && !vt(C) && g) { - var b = C.style || (C.style = {}), w = Km(g, vr.makeFont(b)), x = p.x + a.x, E = p.y + a.y + s, R = !1; + if (C && !mt(C) && g) { + var b = C.style || (C.style = {}), w = Xm(g, vr.makeFont(b)), x = p.x + a.x, E = p.y + a.y + s, R = !1; E + w.height > i.getHeight() && (m.position = "top", R = !0); var P = R ? -5 - w.height : s + 10; x + w.width / 2 > i.getWidth() ? (m.position = ["100%", P], b.align = "right") : x - w.width / 2 < 0 && (m.position = [0, P], b.align = "left"); @@ -86527,10 +86568,10 @@ var A5e = ( }, t.type = "toolbox", t; }(sn) ); -function O5e(e) { +function WHe(e) { return e.indexOf("my") === 0; } -var L5e = ( +var jHe = ( /** @class */ function(e) { Se(t, e); @@ -86592,7 +86633,7 @@ var L5e = ( return n; }, t; }(fa) -), o3 = "__ec_magicType_stack__", F5e = [["line", "bar"], ["stack"]], N5e = ( +), s5 = "__ec_magicType_stack__", UHe = [["line", "bar"], ["stack"]], KHe = ( /** @class */ function(e) { Se(t, e); @@ -86624,12 +86665,12 @@ var L5e = ( return n; }, t.prototype.onclick = function(r, n, i) { var o = this.model, a = o.get(["seriesIndex", i]); - if (a3[i]) { + if (l5[i]) { var s = { series: [] }, l = function(d) { - var h = d.subType, f = d.id, p = a3[i](h, f, d, o); - p && (wt(p, d.option), s.series.push(p)); + var h = d.subType, f = d.id, p = l5[i](h, f, d, o); + p && (xt(p, d.option), s.series.push(p)); var g = d.coordinateSystem; if (g && g.type === "cartesian2d" && (i === "line" || i === "bar")) { var v = g.getAxesByScale("ordinal")[0]; @@ -86642,8 +86683,8 @@ var L5e = ( } } }; - z(F5e, function(d) { - Yt(d, i) >= 0 && z(d, function(h) { + z(UHe, function(d) { + qt(d, i) >= 0 && z(d, function(h) { o.setIconStatus(h, "normal"); }); }), o.setIconStatus(i, "emphasis"), r.eachComponent({ @@ -86653,7 +86694,7 @@ var L5e = ( } }, l); var c, u = i; - i === "stack" && (c = Wt({ + i === "stack" && (c = jt({ stack: o.option.title.tiled, tiled: o.option.title.stack }, o.option.title), o.get(["iconStatus", i]) !== "emphasis" && (u = "tiled")), n.dispatchAction({ @@ -86666,10 +86707,10 @@ var L5e = ( } }, t; }(fa) -), a3 = { +), l5 = { line: function(e, t, r, n) { if (e === "bar") - return Wt({ + return jt({ id: t, type: "line", // Preserve data related option @@ -86681,7 +86722,7 @@ var L5e = ( }, bar: function(e, t, r, n) { if (e === "line") - return Wt({ + return jt({ id: t, type: "bar", // Preserve data related option @@ -86692,11 +86733,11 @@ var L5e = ( }, n.get(["option", "bar"]) || {}, !0); }, stack: function(e, t, r, n) { - var i = r.get("stack") === o3; + var i = r.get("stack") === s5; if (e === "line" || e === "bar") - return n.setIconStatus("stack", i ? "normal" : "emphasis"), Wt({ + return n.setIconStatus("stack", i ? "normal" : "emphasis"), jt({ id: t, - stack: i ? "" : o3 + stack: i ? "" : s5 }, n.get(["option", "stack"]) || {}, !0); } }; @@ -86707,8 +86748,8 @@ hs({ }, function(e, t) { t.mergeOption(e.newOption); }); -var h1 = new Array(60).join("-"), Wf = " "; -function k5e(e) { +var h1 = new Array(60).join("-"), Uf = " "; +function YHe(e) { var t = {}, r = [], n = []; return e.eachRawSeries(function(i) { var o = i.coordinateSystem; @@ -86734,7 +86775,7 @@ function k5e(e) { meta: n }; } -function $5e(e) { +function qHe(e) { var t = []; return z(e, function(r, n) { var i = r.categoryAxis, o = r.valueAxis, a = o.dim, s = [" "].concat(Fe(r.series, function(f) { @@ -86746,10 +86787,10 @@ function $5e(e) { return g; })); }); - for (var c = [s.join(Wf)], u = 0; u < l[0].length; u++) { + for (var c = [s.join(Uf)], u = 0; u < l[0].length; u++) { for (var d = [], h = 0; h < l.length; h++) d.push(l[h][u]); - c.push(d.join(Wf)); + c.push(d.join(Uf)); } t.push(c.join(` `)); @@ -86759,13 +86800,13 @@ function $5e(e) { `); } -function B5e(e) { +function XHe(e) { return Fe(e, function(t) { var r = t.getRawData(), n = [t.name], i = []; return r.each(r.dimensions, function() { for (var o = arguments.length, a = arguments[o - 1], s = r.getName(a), l = 0; l < o - 1; l++) i[l] = arguments[l]; - n.push((s ? s + Wf : "") + i.join(Wf)); + n.push((s ? s + Uf : "") + i.join(Uf)); }), n.join(` `); }).join(` @@ -86774,10 +86815,10 @@ function B5e(e) { `); } -function V5e(e) { - var t = k5e(e); +function ZHe(e) { + var t = YHe(e); return { - value: Fr([$5e(t.seriesGroupByCategoryAxis), B5e(t.other)], function(r) { + value: Nr([qHe(t.seriesGroupByCategoryAxis), XHe(t.other)], function(r) { return !!r.replace(/[\n\t\s]/g, ""); }).join(` @@ -86787,24 +86828,24 @@ function V5e(e) { meta: t.meta }; } -function hb(e) { +function pb(e) { return e.replace(/^\s\s*/, "").replace(/\s\s*$/, ""); } -function H5e(e) { +function QHe(e) { var t = e.slice(0, e.indexOf(` `)); - if (t.indexOf(Wf) >= 0) + if (t.indexOf(Uf) >= 0) return !0; } -var WM = new RegExp("[" + Wf + "]+", "g"); -function z5e(e) { - for (var t = e.split(/\n+/g), r = hb(t.shift()).split(WM), n = [], i = Fe(r, function(l) { +var WM = new RegExp("[" + Uf + "]+", "g"); +function JHe(e) { + for (var t = e.split(/\n+/g), r = pb(t.shift()).split(WM), n = [], i = Fe(r, function(l) { return { name: l, data: [] }; }), o = 0; o < t.length; o++) { - var a = hb(t[o]).split(WM); + var a = pb(t[o]).split(WM); n.push(a.shift()); for (var s = 0; s < a.length; s++) i[s] && (i[s].data[o] = a[s]); @@ -86814,9 +86855,9 @@ function z5e(e) { categories: n }; } -function G5e(e) { - for (var t = e.split(/\n+/g), r = hb(t.shift()), n = [], i = 0; i < t.length; i++) { - var o = hb(t[i]); +function eze(e) { + for (var t = e.split(/\n+/g), r = pb(t.shift()), n = [], i = 0; i < t.length; i++) { + var o = pb(t[i]); if (o) { var a = o.split(WM), s = "", l = void 0, c = !1; isNaN(a[0]) ? (c = !0, s = a[0], a = a.slice(1), n[i] = { @@ -86833,25 +86874,25 @@ function G5e(e) { data: n }; } -function W5e(e, t) { +function tze(e, t) { var r = e.split(new RegExp(` *` + h1 + ` *`, "g")), n = { series: [] }; return z(r, function(i, o) { - if (H5e(i)) { - var a = z5e(i), s = t[o], l = s.axisDim + "Axis"; + if (QHe(i)) { + var a = JHe(i), s = t[o], l = s.axisDim + "Axis"; s && (n[l] = n[l] || [], n[l][s.axisIndex] = { data: a.categories }, n.series = n.series.concat(a.series)); } else { - var a = G5e(i); + var a = eze(i); n.series.push(a); } }), n; } -var j5e = ( +var rze = ( /** @class */ function(e) { Se(t, e); @@ -86872,8 +86913,8 @@ var j5e = ( s.innerHTML = l[0] || o.get("title"), s.style.cssText = "margin:10px 20px", s.style.color = o.get("textColor"); var c = document.createElement("div"), u = document.createElement("textarea"); c.style.cssText = "overflow:auto"; - var d = o.get("optionToContent"), h = o.get("contentToOption"), f = V5e(r); - if (vt(d)) { + var d = o.get("optionToContent"), h = o.get("contentToOption"), f = ZHe(r); + if (mt(d)) { var p = d(n.getOption()); Je(p) ? c.innerHTML = p : Hc(p) && c.appendChild(p); } else { @@ -86896,7 +86937,7 @@ var j5e = ( } var E; try { - vt(h) ? E = h(c, n.getOption()) : E = W5e(u.value, v); + mt(h) ? E = h(c, n.getOption()) : E = tze(u.value, v); } catch (R) { throw x(), new Error("Data view format error " + R); } @@ -86930,16 +86971,16 @@ var j5e = ( }, t; }(fa) ); -function U5e(e, t) { +function nze(e, t) { return Fe(e, function(r, n) { var i = t && t[n]; - if (St(i) && !Ie(i)) { - var o = St(r) && !Ie(r); + if (bt(i) && !Ae(i)) { + var o = bt(r) && !Ae(r); o || (r = { value: r }); var a = i.name != null && r.name == null; - return r = wt(r, i), a && delete r.name, r; + return r = xt(r, i), a && delete r.name, r; } else return r; }); @@ -86961,17 +87002,17 @@ hs({ var o = i.get("data"); r.push({ name: n.name, - data: U5e(n.data, o) + data: nze(n.data, o) }); } - }), t.mergeOption(wt({ + }), t.mergeOption(xt({ series: r }, e.newOption)); }); -var DJ = z, IJ = yr(); -function K5e(e, t) { +var OJ = z, LJ = yr(); +function ize(e, t) { var r = MO(e); - DJ(t, function(n, i) { + OJ(t, function(n, i) { for (var o = r.length - 1; o >= 0; o--) { var a = r[o]; if (a[i]) @@ -86994,11 +87035,11 @@ function K5e(e, t) { } }), r.push(t); } -function Y5e(e) { +function oze(e) { var t = MO(e), r = t[t.length - 1]; t.length > 1 && t.pop(); var n = {}; - return DJ(r, function(i, o) { + return OJ(r, function(i, o) { for (var a = t.length - 1; a >= 0; a--) if (i = t[a][o], i) { n[o] = i; @@ -87006,17 +87047,17 @@ function Y5e(e) { } }), n; } -function q5e(e) { - IJ(e).snapshots = null; +function aze(e) { + LJ(e).snapshots = null; } -function X5e(e) { +function sze(e) { return MO(e).length; } function MO(e) { - var t = IJ(e); + var t = LJ(e); return t.snapshots || (t.snapshots = [{}]), t.snapshots; } -var Z5e = ( +var lze = ( /** @class */ function(e) { Se(t, e); @@ -87024,7 +87065,7 @@ var Z5e = ( return e !== null && e.apply(this, arguments) || this; } return t.prototype.onclick = function(r, n) { - q5e(r), n.dispatchAction({ + aze(r), n.dispatchAction({ type: "restore", from: this.uid }); @@ -87046,15 +87087,15 @@ hs({ }, function(e, t) { t.resetOption("recreate"); }); -var Q5e = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "angleAxis", "bmap"], DO = ( +var cze = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "angleAxis", "bmap"], DO = ( /** @class */ function() { function e(t, r, n) { var i = this; this._targetInfoList = []; - var o = s3(r, t); - z(J5e, function(a, s) { - (!n || !n.include || Yt(n.include, s) >= 0) && a(o, i._targetInfoList); + var o = c5(r, t); + z(uze, function(a, s) { + (!n || !n.include || qt(n.include, s) >= 0) && a(o, i._targetInfoList); }); } return e.prototype.setOutputRanges = function(t, r) { @@ -87063,7 +87104,7 @@ var Q5e = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "ang n.coordRange = i; var a = VR[n.brushType](0, o, i); n.__rangeOffset = { - offset: d3[n.brushType](a.values, n.range, [1, 1]), + offset: f5[n.brushType](a.values, n.range, [1, 1]), xyMinMax: a.xyMinMax }; } @@ -87079,10 +87120,10 @@ var Q5e = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "ang }, e.prototype.setInputRanges = function(t, r) { z(t, function(n) { var i = this.findTargetInfo(n, r); - if (process.env.NODE_ENV !== "production" && (xt(!i || i === !0 || n.coordRange, "coordRange must be specified when coord index specified."), xt(!i || i !== !0 || n.range, "range must be specified in global brush.")), n.range = n.range || [], i && i !== !0) { + if (process.env.NODE_ENV !== "production" && (Et(!i || i === !0 || n.coordRange, "coordRange must be specified when coord index specified."), Et(!i || i !== !0 || n.range, "range must be specified in global brush.")), n.range = n.range || [], i && i !== !0) { n.panelId = i.panelId; var o = VR[n.brushType](0, i.coordSys, n.coordRange), a = n.__rangeOffset; - n.range = a ? d3[n.brushType](o.values, a.offset, eze(o.xyMinMax, a.xyMinMax)) : o.values; + n.range = a ? f5[n.brushType](o.values, a.offset, dze(o.xyMinMax, a.xyMinMax)) : o.values; } }, this); }, e.prototype.makePanelOpts = function(t, r) { @@ -87091,23 +87132,23 @@ var Q5e = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "ang return { panelId: n.panelId, defaultBrushType: r ? r(n) : null, - clipPath: $Q(i), - isTargetByCursor: VQ(i, t, n.coordSysModel), - getLinearBrushOtherExtent: BQ(i) + clipPath: HQ(i), + isTargetByCursor: GQ(i, t, n.coordSysModel), + getLinearBrushOtherExtent: zQ(i) }; }); }, e.prototype.controlSeries = function(t, r, n) { var i = this.findTargetInfo(t, n); - return i === !0 || i && Yt(i.coordSyses, r.coordinateSystem) >= 0; + return i === !0 || i && qt(i.coordSyses, r.coordinateSystem) >= 0; }, e.prototype.findTargetInfo = function(t, r) { - for (var n = this._targetInfoList, i = s3(r, t), o = 0; o < n.length; o++) { + for (var n = this._targetInfoList, i = c5(r, t), o = 0; o < n.length; o++) { var a = n[o], s = t.panelId; if (s) { if (a.panelId === s) return a; } else - for (var l = 0; l < l3.length; l++) - if (l3[l](i, a)) + for (var l = 0; l < u5.length; l++) + if (u5[l](i, a)) return a; } return !0; @@ -87117,12 +87158,12 @@ var Q5e = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "ang function jM(e) { return e[0] > e[1] && e.reverse(), e; } -function s3(e, t) { - return nv(e, t, { - includeMainTypes: Q5e +function c5(e, t) { + return ov(e, t, { + includeMainTypes: cze }); } -var J5e = { +var uze = { grid: function(e, t) { var r = e.xAxisModels, n = e.yAxisModels, i = e.gridModels, o = ft(), a = {}, s = {}; !r && !n && !i || (z(r, function(l) { @@ -87136,7 +87177,7 @@ var J5e = { }), o.each(function(l) { var c = l.coordinateSystem, u = []; z(c.getCartesians(), function(d, h) { - (Yt(r, d.getAxis("x").model) >= 0 || Yt(n, d.getAxis("y").model) >= 0) && u.push(d); + (qt(r, d.getAxis("x").model) >= 0 || qt(n, d.getAxis("y").model) >= 0) && u.push(d); }), t.push({ panelId: "grid--" + l.id, gridModel: l, @@ -87144,7 +87185,7 @@ var J5e = { // Use the first one as the representitive coordSys. coordSys: u[0], coordSyses: u, - getPanelRect: c3.grid, + getPanelRect: d5.grid, xAxisDeclared: a[l.id], yAxisDeclared: s[l.id] }); @@ -87159,11 +87200,11 @@ var J5e = { coordSysModel: r, coordSys: n, coordSyses: [n], - getPanelRect: c3.geo + getPanelRect: d5.geo }); }); } -}, l3 = [ +}, u5 = [ // grid function(e, t) { var r = e.xAxisModel, n = e.yAxisModel, i = e.gridModel; @@ -87174,7 +87215,7 @@ var J5e = { var r = e.geoModel; return r && r === t.geoModel; } -], c3 = { +], d5 = { grid: function() { return this.coordSys.master.getRect().clone(); }, @@ -87183,8 +87224,8 @@ var J5e = { return t.applyTransform(Dc(e)), t; } }, VR = { - lineX: Vt(u3, 0), - lineY: Vt(u3, 1), + lineX: Vt(h5, 0), + lineY: Vt(h5, 1), rect: function(e, t, r, n) { var i = e ? t.pointToData([r[0][0], r[1][0]], n) : t.dataToPoint([r[0][0], r[1][0]], n), o = e ? t.pointToData([r[0][1], r[1][1]], n) : t.dataToPoint([r[0][1], r[1][1]], n), a = [jM([i[0], o[0]]), jM([i[1], o[1]])]; return { @@ -87203,8 +87244,8 @@ var J5e = { }; } }; -function u3(e, t, r, n) { - process.env.NODE_ENV !== "production" && xt(r.type === "cartesian2d", "lineX/lineY brush is available only in cartesian2d."); +function h5(e, t, r, n) { + process.env.NODE_ENV !== "production" && Et(r.type === "cartesian2d", "lineX/lineY brush is available only in cartesian2d."); var i = r.getAxis(["x", "y"][e]), o = jM(Fe([0, 1], function(s) { return t ? i.coordToData(i.toLocalCoord(n[s]), !0) : i.toGlobalCoord(i.dataToCoord(n[s])); })), a = []; @@ -87213,9 +87254,9 @@ function u3(e, t, r, n) { xyMinMax: a }; } -var d3 = { - lineX: Vt(h3, 0), - lineY: Vt(h3, 1), +var f5 = { + lineX: Vt(p5, 0), + lineY: Vt(p5, 1), rect: function(e, t, r) { return [[e[0][0] - r[0] * t[0][0], e[0][1] - r[0] * t[0][1]], [e[1][0] - r[1] * t[1][0], e[1][1] - r[1] * t[1][1]]]; }, @@ -87225,17 +87266,17 @@ var d3 = { }); } }; -function h3(e, t, r, n) { +function p5(e, t, r, n) { return [t[0] - n[e] * r[0], t[1] - n[e] * r[1]]; } -function eze(e, t) { - var r = f3(e), n = f3(t), i = [r[0] / n[0], r[1] / n[1]]; +function dze(e, t) { + var r = g5(e), n = g5(t), i = [r[0] / n[0], r[1] / n[1]]; return isNaN(i[0]) && (i[0] = 1), isNaN(i[1]) && (i[1] = 1), i; } -function f3(e) { +function g5(e) { return e ? [e[0][1] - e[0][0], e[1][1] - e[1][0]] : [NaN, NaN]; } -var UM = z, tze = BDe("toolbox-dataZoom_"), rze = ( +var UM = z, hze = X2e("toolbox-dataZoom_"), fze = ( /** @class */ function(e) { Se(t, e); @@ -87243,9 +87284,9 @@ var UM = z, tze = BDe("toolbox-dataZoom_"), rze = ( return e !== null && e.apply(this, arguments) || this; } return t.prototype.render = function(r, n, i, o) { - this._brushController || (this._brushController = new oO(i.getZr()), this._brushController.on("brush", at(this._onBrush, this)).mount()), oze(r, n, this, o, i), ize(r, n); + this._brushController || (this._brushController = new oO(i.getZr()), this._brushController.on("brush", at(this._onBrush, this)).mount()), vze(r, n, this, o, i), gze(r, n); }, t.prototype.onclick = function(r, n, i) { - nze[i].call(this); + pze[i].call(this); }, t.prototype.remove = function(r, n) { this._brushController && this._brushController.unmount(); }, t.prototype.dispose = function(r, n) { @@ -87267,7 +87308,7 @@ var UM = z, tze = BDe("toolbox-dataZoom_"), rze = ( lineY: "y" }[h], d, u); } - }), K5e(o, i), this._dispatchZoomAction(i); + }), ize(o, i), this._dispatchZoomAction(i); function s(c, u, d) { var h = u.getAxis(c), f = h.model, p = l(c, f, o), g = p.findRepresentativeAxisProxy(f).getMinMaxSpan(); (g.minValueSpan != null || g.maxValueSpan != null) && (d = eh(0, d.slice(), h.scale.getExtent(), 0, g.minValueSpan, g.maxValueSpan)), p && (i[p.id] = { @@ -87314,7 +87355,7 @@ var UM = z, tze = BDe("toolbox-dataZoom_"), rze = ( return n; }, t; }(fa) -), nze = { +), pze = { zoom: function() { var e = !this._isZoomActive; this.api.dispatchAction({ @@ -87324,7 +87365,7 @@ var UM = z, tze = BDe("toolbox-dataZoom_"), rze = ( }); }, back: function() { - this._dispatchZoomAction(Y5e(this.ecModel)); + this._dispatchZoomAction(oze(this.ecModel)); } }; function IO(e) { @@ -87336,10 +87377,10 @@ function IO(e) { }; return t.xAxisIndex == null && t.xAxisId == null && (t.xAxisIndex = "all"), t.yAxisIndex == null && t.yAxisId == null && (t.yAxisIndex = "all"), t; } -function ize(e, t) { - e.setIconStatus("back", X5e(t) > 1 ? "emphasis" : "normal"); +function gze(e, t) { + e.setIconStatus("back", sze(t) > 1 ? "emphasis" : "normal"); } -function oze(e, t, r, n, i) { +function vze(e, t, r, n, i) { var o = r._isZoomActive; n && n.type === "takeGlobalCursor" && (o = n.key === "dataZoomSelect" ? n.dataZoomSelectActive : !1), r._isZoomActive = o, e.setIconStatus("zoom", o ? "emphasis" : "normal"); var a = new DO(IO(e), t, { @@ -87352,11 +87393,11 @@ function oze(e, t, r, n, i) { brushStyle: e.getModel("brushStyle").getItemStyle() } : !1); } -fAe("dataZoom", function(e) { +EAe("dataZoom", function(e) { var t = e.getComponent("toolbox", 0), r = ["feature", "dataZoom"]; if (!t || t.get(r) == null) return; - var n = t.getModel(r), i = [], o = IO(n), a = nv(e, o); + var n = t.getModel(r), i = [], o = IO(n), a = ov(e, o); UM(a.xAxisModels, function(l) { return s(l, "xAxis", "xAxisIndex"); }), UM(a.yAxisModels, function(l) { @@ -87369,16 +87410,16 @@ fAe("dataZoom", function(e) { // Default to be filter filterMode: n.get("filterMode", !0) || "filter", // Id for merge mapping. - id: tze + c + d + id: hze + c + d }; h[u] = d, i.push(h); } return i; }); -function aze(e) { - e.registerComponentModel(D5e), e.registerComponentView(A5e), qh("saveAsImage", L5e), qh("magicType", N5e), qh("dataView", j5e), qh("dataZoom", rze), qh("restore", Z5e), er(M5e); +function mze(e) { + e.registerComponentModel(HHe), e.registerComponentView(GHe), qh("saveAsImage", jHe), qh("magicType", KHe), qh("dataView", rze), qh("dataZoom", fze), qh("restore", lze), er(VHe); } -var sze = ( +var yze = ( /** @class */ function(e) { Se(t, e); @@ -87455,57 +87496,57 @@ var sze = ( }, t; }(Qt) ); -function AJ(e) { +function FJ(e) { var t = e.get("confine"); return t != null ? !!t : e.get("renderMode") === "richText"; } -function OJ(e) { +function NJ(e) { if (gr.domSupported) { for (var t = document.documentElement.style, r = 0, n = e.length; r < n; r++) if (e[r] in t) return e[r]; } } -var LJ = OJ(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]), lze = OJ(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]); -function FJ(e, t) { +var kJ = NJ(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]), Cze = NJ(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]); +function $J(e, t) { if (!e) return t; t = oA(t, !0); var r = e.indexOf(t); return e = r === -1 ? t : "-" + e.slice(0, r) + "-" + t, e.toLowerCase(); } -function cze(e, t) { +function Sze(e, t) { var r = e.currentStyle || document.defaultView && document.defaultView.getComputedStyle(e); return r ? r[t] : null; } -var uze = FJ(lze, "transition"), AO = FJ(LJ, "transform"), dze = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (gr.transform3dSupported ? "will-change:transform;" : ""); -function hze(e) { +var bze = $J(Cze, "transition"), AO = $J(kJ, "transform"), wze = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (gr.transform3dSupported ? "will-change:transform;" : ""); +function xze(e) { return e = e === "left" ? "right" : e === "right" ? "left" : e === "top" ? "bottom" : "top", e; } -function fze(e, t, r) { +function Eze(e, t, r) { if (!Je(r) || r === "inside") return ""; var n = e.get("backgroundColor"), i = e.get("borderWidth"); t = Od(t); - var o = hze(r), a = Math.max(Math.round(i) * 1.5, 6), s = "", l = AO + ":", c; - Yt(["left", "right"], o) > -1 ? (s += "top:50%", l += "translateY(-50%) rotate(" + (c = o === "left" ? -225 : -45) + "deg)") : (s += "left:50%", l += "translateX(-50%) rotate(" + (c = o === "top" ? 225 : 45) + "deg)"); + var o = xze(r), a = Math.max(Math.round(i) * 1.5, 6), s = "", l = AO + ":", c; + qt(["left", "right"], o) > -1 ? (s += "top:50%", l += "translateY(-50%) rotate(" + (c = o === "left" ? -225 : -45) + "deg)") : (s += "left:50%", l += "translateX(-50%) rotate(" + (c = o === "top" ? 225 : 45) + "deg)"); var u = c * Math.PI / 180, d = a + i, h = d * Math.abs(Math.cos(u)) + d * Math.abs(Math.sin(u)), f = Math.round(((h - Math.SQRT2 * i) / 2 + Math.SQRT2 * i - (h - d) / 2) * 100) / 100; s += ";" + o + ":-" + f + "px"; var p = t + " solid " + i + "px;", g = ["position:absolute;width:" + a + "px;height:" + a + "px;z-index:-1;", s + ";" + l + ";", "border-bottom:" + p, "border-right:" + p, "background-color:" + n + ";"]; return '
'; } -function pze(e, t) { +function Rze(e, t) { var r = "cubic-bezier(0.23,1,0.32,1)", n = " " + e / 2 + "s " + r, i = "opacity" + n + ",visibility" + n; - return t || (n = " " + e + "s " + r, i += gr.transformSupported ? "," + AO + n : ",left" + n + ",top" + n), uze + ":" + i; + return t || (n = " " + e + "s " + r, i += gr.transformSupported ? "," + AO + n : ",left" + n + ",top" + n), bze + ":" + i; } -function p3(e, t, r) { +function v5(e, t, r) { var n = e.toFixed(0) + "px", i = t.toFixed(0) + "px"; if (!gr.transformSupported) return r ? "top:" + i + ";left:" + n + ";" : [["top", i], ["left", n]]; var o = gr.transform3dSupported, a = "translate" + (o ? "3d" : "") + "(" + n + "," + i + (o ? ",0" : "") + ")"; - return r ? "top:0;left:0;" + AO + ":" + a + ";" : [["top", 0], ["left", 0], [LJ, a]]; + return r ? "top:0;left:0;" + AO + ":" + a + ";" : [["top", 0], ["left", 0], [kJ, a]]; } -function gze(e) { +function Pze(e) { var t = [], r = e.get("fontSize"), n = e.getTextColor(); n && t.push("color:" + n), t.push("font:" + e.getFont()), r && t.push("line-height:" + Math.round(r * 3 / 2) + "px"); var i = e.get("textShadowColor"), o = e.get("textShadowBlur") || 0, a = e.get("textShadowOffsetX") || 0, s = e.get("textShadowOffsetY") || 0; @@ -87514,18 +87555,18 @@ function gze(e) { c && t.push("text-" + l + ":" + c); }), t.join(";"); } -function vze(e, t, r) { - var n = [], i = e.get("transitionDuration"), o = e.get("backgroundColor"), a = e.get("shadowBlur"), s = e.get("shadowColor"), l = e.get("shadowOffsetX"), c = e.get("shadowOffsetY"), u = e.getModel("textStyle"), d = Wq(e, "html"), h = l + "px " + c + "px " + a + "px " + s; - return n.push("box-shadow:" + h), t && i && n.push(pze(i, r)), o && n.push("background-color:" + o), z(["width", "color", "radius"], function(f) { +function Tze(e, t, r) { + var n = [], i = e.get("transitionDuration"), o = e.get("backgroundColor"), a = e.get("shadowBlur"), s = e.get("shadowColor"), l = e.get("shadowOffsetX"), c = e.get("shadowOffsetY"), u = e.getModel("textStyle"), d = Kq(e, "html"), h = l + "px " + c + "px " + a + "px " + s; + return n.push("box-shadow:" + h), t && i && n.push(Rze(i, r)), o && n.push("background-color:" + o), z(["width", "color", "radius"], function(f) { var p = "border-" + f, g = oA(p), v = e.get(g); v != null && n.push(p + ":" + v + (f === "color" ? "" : "px")); - }), n.push(gze(u)), d != null && n.push("padding:" + qd(d).join("px ") + "px"), n.join(";") + ";"; + }), n.push(Pze(u)), d != null && n.push("padding:" + qd(d).join("px ") + "px"), n.join(";") + ";"; } -function g3(e, t, r, n, i) { +function m5(e, t, r, n, i) { var o = t && t.painter; if (r) { var a = o && o.getViewportRoot(); - a && lMe(e, a, r, n, i); + a && CMe(e, a, r, n, i); } else { e[0] = n, e[1] = i; var s = o && o.getViewportRootOffset(); @@ -87533,7 +87574,7 @@ function g3(e, t, r, n, i) { } e[2] = e[0] / t.getWidth(), e[3] = e[1] / t.getHeight(); } -var mze = ( +var _ze = ( /** @class */ function() { function e(t, r) { @@ -87541,8 +87582,8 @@ var mze = ( return null; var n = document.createElement("div"); n.domBelongToZr = !0, this.el = n; - var i = this._zr = t.getZr(), o = r.appendTo, a = o && (Je(o) ? document.querySelector(o) : Hc(o) ? o : vt(o) && o(t.getDom())); - g3(this._styleCoord, i, a, t.getWidth() / 2, t.getHeight() / 2), (a || t.getDom()).appendChild(n), this._api = t, this._container = a; + var i = this._zr = t.getZr(), o = r.appendTo, a = o && (Je(o) ? document.querySelector(o) : Hc(o) ? o : mt(o) && o(t.getDom())); + m5(this._styleCoord, i, a, t.getWidth() / 2, t.getHeight() / 2), (a || t.getDom()).appendChild(n), this._api = t, this._container = a; var s = this; n.onmouseenter = function() { s._enterable && (clearTimeout(s._hideTimeout), s._show = !0), s._inContent = !0; @@ -87557,7 +87598,7 @@ var mze = ( } return e.prototype.update = function(t) { if (!this._container) { - var r = this._api.getDom(), n = cze(r, "position"), i = r.style; + var r = this._api.getDom(), n = Sze(r, "position"), i = r.style; i.position !== "absolute" && n !== "absolute" && (i.position = "relative"); } var o = t.get("alwaysShowContent"); @@ -87565,7 +87606,7 @@ var mze = ( }, e.prototype.show = function(t, r) { clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout); var n = this.el, i = n.style, o = this._styleCoord; - n.innerHTML ? i.cssText = dze + vze(t, !this._firstShow, this._longHide) + p3(o[0], o[1], !0) + ("border-color:" + Od(r) + ";") + (t.get("extraCssText") || "") + (";pointer-events:" + (this._enterable ? "auto" : "none")) : i.display = "none", this._show = !0, this._firstShow = !1, this._longHide = !1; + n.innerHTML ? i.cssText = wze + Tze(t, !this._firstShow, this._longHide) + v5(o[0], o[1], !0) + ("border-color:" + Od(r) + ";") + (t.get("extraCssText") || "") + (";pointer-events:" + (this._enterable ? "auto" : "none")) : i.display = "none", this._show = !0, this._firstShow = !1, this._longHide = !1; }, e.prototype.setContent = function(t, r, n, i, o) { var a = this.el; if (t == null) { @@ -87573,10 +87614,10 @@ var mze = ( return; } var s = ""; - if (Je(o) && n.get("trigger") === "item" && !AJ(n) && (s = fze(n, i, o)), Je(t)) + if (Je(o) && n.get("trigger") === "item" && !FJ(n) && (s = Eze(n, i, o)), Je(t)) a.innerHTML = t + s; else if (t) { - a.innerHTML = "", Ie(t) || (t = [t]); + a.innerHTML = "", Ae(t) || (t = [t]); for (var l = 0; l < t.length; l++) Hc(t[l]) && t[l].parentNode !== a && a.appendChild(t[l]); if (s && a.childNodes.length) { @@ -87591,8 +87632,8 @@ var mze = ( return [t.offsetWidth, t.offsetHeight]; }, e.prototype.moveTo = function(t, r) { var n = this._styleCoord; - if (g3(n, this._zr, this._container, t, r), n[0] != null && n[1] != null) { - var i = this.el.style, o = p3(n[0], n[1]); + if (m5(n, this._zr, this._container, t, r), n[0] != null && n[1] != null) { + var i = this.el.style, o = v5(n[0], n[1]); z(o, function(a) { i[a[0]] = a[1]; }); @@ -87615,11 +87656,11 @@ var mze = ( t && t.removeChild(this.el), this.el = this._container = null; }, e; }() -), yze = ( +), Mze = ( /** @class */ function() { function e(t) { - this._show = !1, this._styleCoord = [0, 0, 0, 0], this._alwaysShowContent = !1, this._enterable = !0, this._zr = t.getZr(), m3(this._styleCoord, this._zr, t.getWidth() / 2, t.getHeight() / 2); + this._show = !1, this._styleCoord = [0, 0, 0, 0], this._alwaysShowContent = !1, this._enterable = !0, this._zr = t.getZr(), C5(this._styleCoord, this._zr, t.getWidth() / 2, t.getHeight() / 2); } return e.prototype.update = function(t) { var r = t.get("alwaysShowContent"); @@ -87628,7 +87669,7 @@ var mze = ( this._hideTimeout && clearTimeout(this._hideTimeout), this.el.show(), this._show = !0; }, e.prototype.setContent = function(t, r, n, i, o) { var a = this; - St(t) && Ir(process.env.NODE_ENV !== "production" ? "Passing DOM nodes as content is not supported in richText tooltip!" : ""), this.el && this._zr.remove(this.el); + bt(t) && Ir(process.env.NODE_ENV !== "production" ? "Passing DOM nodes as content is not supported in richText tooltip!" : ""), this.el && this._zr.remove(this.el); var s = n.getModel("textStyle"); this.el = new vr({ style: { @@ -87639,7 +87680,7 @@ var mze = ( borderColor: i, textShadowColor: s.get("textShadowColor"), fill: n.get(["textStyle", "color"]), - padding: Wq(n, "richText"), + padding: Kq(n, "richText"), verticalAlign: "top", align: "left" }, @@ -87658,14 +87699,14 @@ var mze = ( }, e.prototype.setEnterable = function(t) { this._enterable = t; }, e.prototype.getSize = function() { - var t = this.el, r = this.el.getBoundingRect(), n = v3(t.style); + var t = this.el, r = this.el.getBoundingRect(), n = y5(t.style); return [r.width + n.left + n.right, r.height + n.top + n.bottom]; }, e.prototype.moveTo = function(t, r) { var n = this.el; if (n) { var i = this._styleCoord; - m3(i, this._zr, t, r), t = i[0], r = i[1]; - var o = n.style, a = pc(o.borderWidth || 0), s = v3(o); + C5(i, this._zr, t, r), t = i[0], r = i[1]; + var o = n.style, a = pc(o.borderWidth || 0), s = y5(o); n.x = t + a + s.left, n.y = r + a + s.top, n.markRedraw(); } }, e.prototype._moveIfResized = function() { @@ -87685,7 +87726,7 @@ var mze = ( function pc(e) { return Math.max(0, e); } -function v3(e) { +function y5(e) { var t = pc(e.shadowBlur || 0), r = pc(e.shadowOffsetX || 0), n = pc(e.shadowOffsetY || 0); return { left: pc(t - r), @@ -87694,17 +87735,17 @@ function v3(e) { bottom: pc(t + n) }; } -function m3(e, t, r, n) { +function C5(e, t, r, n) { e[0] = r, e[1] = n, e[2] = e[0] / t.getWidth(), e[3] = e[1] / t.getHeight(); } -var Cze = new mr({ +var Dze = new mr({ shape: { x: -1, y: -1, width: 2, height: 2 } -}), Sze = ( +}), Ize = ( /** @class */ function(e) { Se(t, e); @@ -87714,8 +87755,8 @@ var Cze = new mr({ } return t.prototype.init = function(r, n) { if (!(gr.node || !n.getDom())) { - var i = r.getComponent("tooltip"), o = this._renderMode = UDe(i.get("renderMode")); - this._tooltipContent = o === "richText" ? new yze(n) : new mze(n, { + var i = r.getComponent("tooltip"), o = this._renderMode = nDe(i.get("renderMode")); + this._tooltipContent = o === "richText" ? new Mze(n) : new _ze(n, { appendTo: i.get("appendToBody", !0) ? "body" : i.get("appendTo", !0) }); } @@ -87723,11 +87764,11 @@ var Cze = new mr({ if (!(gr.node || !i.getDom())) { this.group.removeAll(), this._tooltipModel = r, this._ecModel = n, this._api = i; var o = this._tooltipContent; - o.update(r), o.setEnterable(r.get("enterable")), this._initGlobalListener(), this._keepShow(), this._renderMode !== "richText" && r.get("transitionDuration") ? bp(this, "_updatePosition", 50, "fixRate") : Qv(this, "_updatePosition"); + o.update(r), o.setEnterable(r.get("enterable")), this._initGlobalListener(), this._keepShow(), this._renderMode !== "richText" && r.get("transitionDuration") ? xp(this, "_updatePosition", 50, "fixRate") : em(this, "_updatePosition"); } }, t.prototype._initGlobalListener = function() { var r = this._tooltipModel, n = r.get("triggerOn"); - CJ("itemTooltip", this._api, at(function(i, o, a) { + wJ("itemTooltip", this._api, at(function(i, o, a) { n !== "none" && (n.indexOf(i) >= 0 ? this._tryShow(o, a) : i === "leave" && this._hide(a)); }, this)); }, t.prototype._keepShow = function() { @@ -87744,9 +87785,9 @@ var Cze = new mr({ } }, t.prototype.manuallyShowTip = function(r, n, i, o) { if (!(o.from === this.uid || gr.node || !i.getDom())) { - var a = y3(o, i); + var a = S5(o, i); this._ticket = ""; - var s = o.dataByCoordSys, l = Eze(o, n, i); + var s = o.dataByCoordSys, l = Fze(o, n, i); if (l) { var c = l.el.getBoundingRect().clone(); c.applyTransform(l.el.transform), this._tryShow({ @@ -87759,7 +87800,7 @@ var Cze = new mr({ positionDefault: "bottom" }, a); } else if (o.tooltip && o.x != null && o.y != null) { - var u = Cze; + var u = Dze; u.x = o.x, u.y = o.y, u.update(), Ft(u).tooltipConfig = { name: null, option: o.tooltip @@ -87779,7 +87820,7 @@ var Cze = new mr({ else if (o.seriesIndex != null) { if (this._manuallyAxisShowTip(r, n, i, o)) return; - var d = SJ(o, n), h = d.point[0], f = d.point[1]; + var d = xJ(o, n), h = d.point[0], f = d.point[1]; h != null && f != null && this._tryShow({ offsetX: h, offsetY: f, @@ -87802,13 +87843,13 @@ var Cze = new mr({ } }, t.prototype.manuallyHideTip = function(r, n, i, o) { var a = this._tooltipContent; - this._tooltipModel && a.hideLater(this._tooltipModel.get("hideDelay")), this._lastX = this._lastY = this._lastDataByCoordSys = null, o.from !== this.uid && this._hide(y3(o, i)); + this._tooltipModel && a.hideLater(this._tooltipModel.get("hideDelay")), this._lastX = this._lastY = this._lastDataByCoordSys = null, o.from !== this.uid && this._hide(S5(o, i)); }, t.prototype._manuallyAxisShowTip = function(r, n, i, o) { var a = o.seriesIndex, s = o.dataIndex, l = n.getComponent("axisPointer").coordSysAxesInfo; if (!(a == null || s == null || l == null)) { var c = n.getSeriesByIndex(a); if (c) { - var u = c.getData(), d = hg([u.getItemModel(s), c, (c.coordinateSystem || {}).model], this._tooltipModel); + var u = c.getData(), d = pg([u.getItemModel(s), c, (c.coordinateSystem || {}).model], this._tooltipModel); if (d.get("trigger") === "axis") return i.dispatchAction({ type: "updateAxisPointer", @@ -87844,7 +87885,7 @@ var Cze = new mr({ var i = r.get("showDelay"); n = at(n, this), clearTimeout(this._showTimout), i > 0 ? this._showTimout = setTimeout(n, i) : n(); }, t.prototype._showAxisTooltip = function(r, n) { - var i = this._ecModel, o = this._tooltipModel, a = [n.offsetX, n.offsetY], s = hg([n.tooltipOption], o), l = this._renderMode, c = [], u = ci("section", { + var i = this._ecModel, o = this._tooltipModel, a = [n.offsetX, n.offsetY], s = pg([n.tooltipOption], o), l = this._renderMode, c = [], u = ui("section", { blocks: [], noHeader: !0 }), d = [], h = new EE(); @@ -87852,7 +87893,7 @@ var Cze = new mr({ z(y.dataByAxis, function(C) { var b = i.getComponent(C.axisDim + "Axis", C.axisIndex), w = C.value; if (!(!b || w == null)) { - var x = vJ(w, b.axis, i, C.seriesDataIndices, C.valueLabelOpt), E = ci("section", { + var x = CJ(w, b.axis, i, C.seriesDataIndices, C.valueLabelOpt), E = ui("section", { header: x, noHeader: !ga(x), sortBlocks: !0, @@ -87864,9 +87905,9 @@ var Cze = new mr({ _.axisDim = C.axisDim, _.axisIndex = C.axisIndex, _.axisType = C.axisType, _.axisId = C.axisId, _.axisValue = OA(b.axis, { value: w }), _.axisValueLabel = x, _.marker = h.makeTooltipMarker("item", Od(_.color), l); - var D = tB(P.formatTooltip(T, !0, null)), A = D.frag; + var D = nB(P.formatTooltip(T, !0, null)), A = D.frag; if (A) { - var M = hg([P], o).get("valueFormatter"); + var M = pg([P], o).get("valueFormatter"); E.blocks.push(M ? Pe({ valueFormatter: M }, A) : A); @@ -87877,7 +87918,7 @@ var Cze = new mr({ } }); }), u.blocks.reverse(), d.reverse(); - var f = n.position, p = s.get("order"), g = sB(u, h, l, p, i.get("useUTC"), s.get("textStyle")); + var f = n.position, p = s.get("order"), g = cB(u, h, l, p, i.get("useUTC"), s.get("textStyle")); g && d.unshift(g); var v = l === "richText" ? ` @@ -87886,13 +87927,13 @@ var Cze = new mr({ this._updateContentNotChangedOnAxis(r, c) ? this._updatePosition(s, f, a[0], a[1], this._tooltipContent, c) : this._showTooltipContent(s, m, c, Math.random() + "", a[0], a[1], f, null, h); }); }, t.prototype._showSeriesItemTooltip = function(r, n, i) { - var o = this._ecModel, a = Ft(n), s = a.seriesIndex, l = o.getSeriesByIndex(s), c = a.dataModel || l, u = a.dataIndex, d = a.dataType, h = c.getData(d), f = this._renderMode, p = r.positionDefault, g = hg([h.getItemModel(u), c, l && (l.coordinateSystem || {}).model], this._tooltipModel, p ? { + var o = this._ecModel, a = Ft(n), s = a.seriesIndex, l = o.getSeriesByIndex(s), c = a.dataModel || l, u = a.dataIndex, d = a.dataType, h = c.getData(d), f = this._renderMode, p = r.positionDefault, g = pg([h.getItemModel(u), c, l && (l.coordinateSystem || {}).model], this._tooltipModel, p ? { position: p } : null), v = g.get("trigger"); if (!(v != null && v !== "item")) { var m = c.getDataParams(u, d), y = new EE(); m.marker = y.makeTooltipMarker("item", Od(m.color), f); - var C = tB(c.formatTooltip(u, !1, d)), b = g.get("order"), w = g.get("valueFormatter"), x = C.frag, E = x ? sB(w ? Pe({ + var C = nB(c.formatTooltip(u, !1, d)), b = g.get("order"), w = g.get("valueFormatter"), x = C.frag, E = x ? cB(w ? Pe({ valueFormatter: w }, x) : x, y, f, b, o.get("useUTC"), g.get("textStyle")) : C.text, R = "item_" + c.name + "_" + u; this._showOrMove(g, function() { @@ -87920,7 +87961,7 @@ var Cze = new mr({ h && d.push(h), d.push({ formatter: l.content }); - var f = r.positionDefault, p = hg(d, this._tooltipModel, f ? { + var f = r.positionDefault, p = pg(d, this._tooltipModel, f ? { position: f } : null), g = p.get("content"), v = Math.random() + "", m = new EE(); this._showOrMove(p, function() { @@ -87939,9 +87980,9 @@ var Cze = new mr({ var f = n, p = this._getNearestPoint([a, s], i, r.get("trigger"), r.get("borderColor")), g = p.color; if (h) if (Je(h)) { - var v = r.ecModel.get("useUTC"), m = Ie(i) ? i[0] : i, y = m && m.axisType && m.axisType.indexOf("time") >= 0; - f = h, y && (f = ty(m.axisValue, f, v)), f = aA(f, i, !0); - } else if (vt(h)) { + var v = r.ecModel.get("useUTC"), m = Ae(i) ? i[0] : i, y = m && m.axisType && m.axisType.indexOf("time") >= 0; + f = h, y && (f = iy(m.axisValue, f, v)), f = aA(f, i, !0); + } else if (mt(h)) { var C = at(function(b, w) { b === this._ticket && (d.setContent(w, u, r, g, l), this._updatePosition(r, l, a, s, d, i, c)); }, this); @@ -87951,11 +87992,11 @@ var Cze = new mr({ d.setContent(f, u, r, g, l), d.show(r, g), this._updatePosition(r, l, a, s, d, i, c); } }, t.prototype._getNearestPoint = function(r, n, i, o) { - if (i === "axis" || Ie(n)) + if (i === "axis" || Ae(n)) return { color: o || (this._renderMode === "html" ? "#fff" : "none") }; - if (!Ie(n)) + if (!Ae(n)) return { color: o || n.color || n.borderColor }; @@ -87963,12 +88004,12 @@ var Cze = new mr({ var c = this._api.getWidth(), u = this._api.getHeight(); n = n || r.get("position"); var d = a.getSize(), h = r.get("align"), f = r.get("verticalAlign"), p = l && l.getBoundingRect().clone(); - if (l && p.applyTransform(l.transform), vt(n) && (n = n([i, o], s, a.el, p, { + if (l && p.applyTransform(l.transform), mt(n) && (n = n([i, o], s, a.el, p, { viewSize: [c, u], contentSize: d.slice() - })), Ie(n)) + })), Ae(n)) i = Ze(n[0], c), o = Ze(n[1], u); - else if (St(n)) { + else if (bt(n)) { var g = n; g.width = d[0], g.height = d[1]; var v = jn(g, { @@ -87977,14 +88018,14 @@ var Cze = new mr({ }); i = v.x, o = v.y, h = null, f = null; } else if (Je(n) && l) { - var m = xze(n, p, d, r.get("borderWidth")); + var m = Lze(n, p, d, r.get("borderWidth")); i = m[0], o = m[1]; } else { - var m = bze(i, o, a, c, u, h ? null : 20, f ? null : 20); + var m = Aze(i, o, a, c, u, h ? null : 20, f ? null : 20); i = m[0], o = m[1]; } - if (h && (i -= C3(h) ? d[0] / 2 : h === "right" ? d[0] : 0), f && (o -= C3(f) ? d[1] / 2 : f === "bottom" ? d[1] : 0), AJ(r)) { - var m = wze(i, o, a, c, u); + if (h && (i -= b5(h) ? d[0] / 2 : h === "right" ? d[0] : 0), f && (o -= b5(f) ? d[1] / 2 : f === "bottom" ? d[1] : 0), FJ(r)) { + var m = Oze(i, o, a, c, u); i = m[0], o = m[1]; } a.moveTo(i, o); @@ -88009,11 +88050,11 @@ var Cze = new mr({ from: this.uid }); }, t.prototype.dispose = function(r, n) { - gr.node || !n.getDom() || (Qv(this, "_updatePosition"), this._tooltipContent.dispose(), HM("itemTooltip", n)); + gr.node || !n.getDom() || (em(this, "_updatePosition"), this._tooltipContent.dispose(), HM("itemTooltip", n)); }, t.type = "tooltip", t; }(sn) ); -function hg(e, t, r) { +function pg(e, t, r) { var n = t.ecModel, i; r ? (i = new Gr(r, n, n), i = new Gr(t.option, i, n)) : i = t; for (var o = e.length - 1; o >= 0; o--) { @@ -88024,18 +88065,18 @@ function hg(e, t, r) { } return i; } -function y3(e, t) { +function S5(e, t) { return e.dispatchAction || at(t.dispatchAction, t); } -function bze(e, t, r, n, i, o, a) { +function Aze(e, t, r, n, i, o, a) { var s = r.getSize(), l = s[0], c = s[1]; return o != null && (e + l + o + 2 > n ? e -= l + o : e += o), a != null && (t + c + a > i ? t -= c + a : t += a), [e, t]; } -function wze(e, t, r, n, i) { +function Oze(e, t, r, n, i) { var o = r.getSize(), a = o[0], s = o[1]; return e = Math.min(e + a, n) - a, t = Math.min(t + s, i) - s, e = Math.max(e, 0), t = Math.max(t, 0), [e, t]; } -function xze(e, t, r, n) { +function Lze(e, t, r, n) { var i = r[0], o = r[1], a = Math.ceil(Math.SQRT2 * n) + 8, s = 0, l = 0, c = t.width, u = t.height; switch (e) { case "inside": @@ -88055,13 +88096,13 @@ function xze(e, t, r, n) { } return [s, l]; } -function C3(e) { +function b5(e) { return e === "center" || e === "middle"; } -function Eze(e, t, r) { - var n = N2(e).queryOptionMap, i = n.keys()[0]; +function Fze(e, t, r) { + var n = NI(e).queryOptionMap, i = n.keys()[0]; if (!(!i || i === "series")) { - var o = qm(t, i, n.get(i), { + var o = Qm(t, i, n.get(i), { useDefault: !1, enableAll: !1, enableNone: !1 @@ -88081,8 +88122,8 @@ function Eze(e, t, r) { } } } -function Rze(e) { - er(hy), e.registerComponentModel(sze), e.registerComponentView(Sze), e.registerAction({ +function Nze(e) { + er(gy), e.registerComponentModel(yze), e.registerComponentView(Ize), e.registerAction({ type: "showTip", event: "showTip", update: "tooltip:manuallyShowTip" @@ -88092,8 +88133,8 @@ function Rze(e) { update: "tooltip:manuallyHideTip" }, Dn); } -var Pze = ["rect", "polygon", "keep", "clear"]; -function Tze(e, t) { +var kze = ["rect", "polygon", "keep", "clear"]; +function $ze(e, t) { var r = Wr(e ? e.brush : []); if (r.length) { var n = []; @@ -88102,14 +88143,14 @@ function Tze(e, t) { c instanceof Array && (n = n.concat(c)); }); var i = e && e.toolbox; - Ie(i) && (i = i[0]), i || (i = { + Ae(i) && (i = i[0]), i || (i = { feature: {} }, e.toolbox = [i]); var o = i.feature || (i.feature = {}), a = o.brush || (o.brush = {}), s = a.type || (a.type = []); - s.push.apply(s, n), _ze(s), t && !s.length && s.push.apply(s, Pze); + s.push.apply(s, n), Bze(s), t && !s.length && s.push.apply(s, kze); } } -function _ze(e) { +function Bze(e) { var t = {}; z(e, function(r) { t[r] = 1; @@ -88117,8 +88158,8 @@ function _ze(e) { e.push(n); }); } -var S3 = z; -function b3(e) { +var w5 = z; +function x5(e) { if (e) { for (var t in e) if (e.hasOwnProperty(t)) @@ -88127,9 +88168,9 @@ function b3(e) { } function KM(e, t, r) { var n = {}; - return S3(t, function(o) { + return w5(t, function(o) { var a = n[o] = i(); - S3(e[o], function(s, l) { + w5(e[o], function(s, l) { if (oi.isValidType(l)) { var c = { type: l, @@ -88147,15 +88188,15 @@ function KM(e, t, r) { return a; } } -function NJ(e, t, r) { +function BJ(e, t, r) { var n; z(r, function(i) { - t.hasOwnProperty(i) && b3(t[i]) && (n = !0); + t.hasOwnProperty(i) && x5(t[i]) && (n = !0); }), n && z(r, function(i) { - t.hasOwnProperty(i) && b3(t[i]) ? e[i] = _t(t[i]) : delete e[i]; + t.hasOwnProperty(i) && x5(t[i]) ? e[i] = _t(t[i]) : delete e[i]; }); } -function Mze(e, t, r, n, i, o) { +function Vze(e, t, r, n, i, o) { var a = {}; z(e, function(d) { var h = oi.prepareVisualTypes(t[d]); @@ -88166,7 +88207,7 @@ function Mze(e, t, r, n, i, o) { return vA(r, s, d); } function c(d, h) { - eX(r, s, d, h); + nX(r, s, d, h); } r.each(u); function u(d, h) { @@ -88179,7 +88220,7 @@ function Mze(e, t, r, n, i, o) { } } } -function Dze(e, t, r, n) { +function Hze(e, t, r, n) { var i = {}; return z(e, function(o) { var a = oi.prepareVisualTypes(t[o]); @@ -88192,7 +88233,7 @@ function Dze(e, t, r, n) { return vA(s, d, w); } function u(w, x) { - eX(s, d, w, x); + nX(s, d, w, x); } for (var d, h = s.getStore(); (d = a.next()) != null; ) { var f = s.getRawDataItem(d); @@ -88205,20 +88246,20 @@ function Dze(e, t, r, n) { } }; } -function Ize(e) { +function zze(e) { var t = e.brushType, r = { point: function(n) { - return w3[t].point(n, r, e); + return E5[t].point(n, r, e); }, rect: function(n) { - return w3[t].rect(n, r, e); + return E5[t].rect(n, r, e); } }; return r; } -var w3 = { - lineX: x3(0), - lineY: x3(1), +var E5 = { + lineX: R5(0), + lineY: R5(1), rect: { point: function(e, t, r) { return e && r.boundingRect.contain(e[0], e[1]); @@ -88236,33 +88277,33 @@ var w3 = { if (!e || n.length <= 1) return !1; var i = e.x, o = e.y, a = e.width, s = e.height, l = n[0]; - if (Gu(n, i, o) || Gu(n, i + a, o) || Gu(n, i, o + s) || Gu(n, i + a, o + s) || Kt.create(e).contain(l[0], l[1]) || _g(i, o, i + a, o, n) || _g(i, o, i, o + s, n) || _g(i + a, o, i + a, o + s, n) || _g(i, o + s, i + a, o + s, n)) + if (Gu(n, i, o) || Gu(n, i + a, o) || Gu(n, i, o + s) || Gu(n, i + a, o + s) || Yt.create(e).contain(l[0], l[1]) || Dg(i, o, i + a, o, n) || Dg(i, o, i, o + s, n) || Dg(i + a, o, i + a, o + s, n) || Dg(i, o + s, i + a, o + s, n)) return !0; } } }; -function x3(e) { +function R5(e) { var t = ["x", "y"], r = ["width", "height"]; return { point: function(n, i, o) { if (n) { var a = o.range, s = n[e]; - return fg(s, a); + return gg(s, a); } }, rect: function(n, i, o) { if (n) { var a = o.range, s = [n[t[e]], n[t[e]] + n[r[e]]]; - return s[1] < s[0] && s.reverse(), fg(s[0], a) || fg(s[1], a) || fg(a[0], s) || fg(a[1], s); + return s[1] < s[0] && s.reverse(), gg(s[0], a) || gg(s[1], a) || gg(a[0], s) || gg(a[1], s); } } }; } -function fg(e, t) { +function gg(e, t) { return t[0] <= e && e <= t[1]; } -var E3 = ["inBrush", "outOfBrush"], HR = "__ecBrushSelect", YM = "__ecInBrushSelectEvent"; -function kJ(e) { +var P5 = ["inBrush", "outOfBrush"], HR = "__ecBrushSelect", YM = "__ecInBrushSelectEvent"; +function VJ(e) { e.eachComponent({ mainType: "brush" }, function(t) { @@ -88270,7 +88311,7 @@ function kJ(e) { r.setInputRanges(t.areas, e); }); } -function Aze(e, t, r) { +function Gze(e, t, r) { var n = [], i, o; e.eachComponent({ mainType: "brush" @@ -88278,7 +88319,7 @@ function Aze(e, t, r) { r && r.type === "takeGlobalCursor" && a.setBrushOption(r.key === "brush" ? r.brushOption : { brushType: !1 }); - }), kJ(e), e.eachComponent({ + }), VJ(e), e.eachComponent({ mainType: "brush" }, function(a, s) { var l = { @@ -88292,14 +88333,14 @@ function Aze(e, t, r) { var c = a.option, u = c.brushLink, d = [], h = [], f = [], p = !1; s || (i = c.throttleType, o = c.throttleDelay); var g = Fe(a.areas, function(w) { - var x = Nze[w.brushType], E = wt({ + var x = Kze[w.brushType], E = xt({ boundingRect: x ? x(w) : void 0 }, w); - return E.selectors = Ize(E), E; - }), v = KM(a.option, E3, function(w) { + return E.selectors = zze(E), E; + }), v = KM(a.option, P5, function(w) { w.mappingMethod = "fixed"; }); - Ie(u) && z(u, function(w) { + Ae(u) && z(u, function(w) { d[w] = 1; }); function m(w) { @@ -88319,12 +88360,12 @@ function Aze(e, t, r) { }); } function b(w, x, E) { - if (!(!w.brushSelector || Fze(a, x)) && (z(g, function(P) { + if (!(!w.brushSelector || Uze(a, x)) && (z(g, function(P) { a.brushTargetManager.controlSeries(P, w, e) && E.push(P), p = p || y(E); }), m(x) && y(E))) { var R = w.getData(); R.each(function(P) { - R3(w, E, R, P) && (h[P] = 1); + T5(w, E, R, P) && (h[P] = 1); }); } } @@ -88339,23 +88380,23 @@ function Aze(e, t, r) { var R = f[x], P = w.getData(), T = m(x) ? function(_) { return h[_] ? (E.dataIndex.push(P.getRawIndex(_)), "inBrush") : "outOfBrush"; } : function(_) { - return R3(w, R, P, _) ? (E.dataIndex.push(P.getRawIndex(_)), "inBrush") : "outOfBrush"; + return T5(w, R, P, _) ? (E.dataIndex.push(P.getRawIndex(_)), "inBrush") : "outOfBrush"; }; - (m(x) ? p : y(R)) && Mze(E3, v, P, T); + (m(x) ? p : y(R)) && Vze(P5, v, P, T); }); - }), Oze(t, i, o, n, r); + }), Wze(t, i, o, n, r); } -function Oze(e, t, r, n, i) { +function Wze(e, t, r, n, i) { if (i) { var o = e.getZr(); if (!o[YM]) { - o[HR] || (o[HR] = Lze); - var a = bp(o, HR, r, t); + o[HR] || (o[HR] = jze); + var a = xp(o, HR, r, t); a(e, n); } } } -function Lze(e, t) { +function jze(e, t) { if (!e.isDisposed()) { var r = e.getZr(); r[YM] = !0, e.dispatchAction({ @@ -88364,20 +88405,20 @@ function Lze(e, t) { }), r[YM] = !1; } } -function R3(e, t, r, n) { +function T5(e, t, r, n) { for (var i = 0, o = t.length; i < o; i++) { var a = t[i]; if (e.brushSelector(n, r, a.selectors, a)) return !0; } } -function Fze(e, t) { +function Uze(e, t) { var r = e.option.seriesIndex; - return r != null && r !== "all" && (Ie(r) ? Yt(r, t) < 0 : t !== r); + return r != null && r !== "all" && (Ae(r) ? qt(r, t) < 0 : t !== r); } -var Nze = { +var Kze = { rect: function(e) { - return P3(e.range); + return _5(e.range); }, polygon: function(e) { for (var t, r = e.range, n = 0, i = r.length; n < i; n++) { @@ -88385,13 +88426,13 @@ var Nze = { var o = r[n]; o[0] < t[0][0] && (t[0][0] = o[0]), o[0] > t[0][1] && (t[0][1] = o[0]), o[1] < t[1][0] && (t[1][0] = o[1]), o[1] > t[1][1] && (t[1][1] = o[1]); } - return t && P3(t); + return t && _5(t); } }; -function P3(e) { - return new Kt(e[0][0], e[1][0], e[0][1] - e[0][0], e[1][1] - e[1][0]); +function _5(e) { + return new Yt(e[0][0], e[1][0], e[0][1] - e[0][0], e[1][1] - e[1][0]); } -var kze = ( +var Yze = ( /** @class */ function(e) { Se(t, e); @@ -88404,7 +88445,7 @@ var kze = ( }, t.prototype.render = function(r, n, i, o) { this.model = r, this._updateController(r, n, i, o); }, t.prototype.updateTransform = function(r, n, i, o) { - kJ(n), this._updateController(r, n, i, o); + VJ(n), this._updateController(r, n, i, o); }, t.prototype.updateVisual = function(r, n, i, o) { this.updateTransform(r, n, i, o); }, t.prototype.updateView = function(r, n, i, o) { @@ -88428,7 +88469,7 @@ var kze = ( }); }, t.type = "brush", t; }(sn) -), $ze = "#ddd", Bze = ( +), qze = "#ddd", Xze = ( /** @class */ function(e) { Se(t, e); @@ -88438,19 +88479,19 @@ var kze = ( } return t.prototype.optionUpdated = function(r, n) { var i = this.option; - !n && NJ(i, r, ["inBrush", "outOfBrush"]); + !n && BJ(i, r, ["inBrush", "outOfBrush"]); var o = i.inBrush = i.inBrush || {}; i.outOfBrush = i.outOfBrush || { - color: $ze + color: qze }, o.hasOwnProperty("liftZ") || (o.liftZ = 5); }, t.prototype.setAreas = function(r) { - process.env.NODE_ENV !== "production" && (xt(Ie(r)), z(r, function(n) { - xt(n.brushType, "Illegal areas"); + process.env.NODE_ENV !== "production" && (Et(Ae(r)), z(r, function(n) { + Et(n.brushType, "Illegal areas"); })), r && (this.areas = Fe(r, function(n) { - return T3(this.option, n); + return M5(this.option, n); }, this)); }, t.prototype.setBrushOption = function(r) { - this.brushOption = T3(this.option, r), this.brushType = this.brushOption.brushType; + this.brushOption = M5(this.option, r), this.brushType = this.brushOption.brushType; }, t.type = "brush", t.dependencies = ["geo", "grid", "xAxis", "yAxis", "parallel", "series"], t.defaultOption = { seriesIndex: "all", brushType: "rect", @@ -88468,8 +88509,8 @@ var kze = ( }, t; }(Qt) ); -function T3(e, t) { - return Wt({ +function M5(e, t) { + return jt({ brushType: e.brushType, brushMode: e.brushMode, transformable: e.transformable, @@ -88478,7 +88519,7 @@ function T3(e, t) { z: e.z }, t, !0); } -var Vze = ["rect", "polygon", "lineX", "lineY", "keep", "clear"], Hze = ( +var Zze = ["rect", "polygon", "lineX", "lineY", "keep", "clear"], Qze = ( /** @class */ function(e) { Se(t, e); @@ -88522,7 +88563,7 @@ var Vze = ["rect", "polygon", "lineX", "lineY", "keep", "clear"], Hze = ( }, t.getDefaultOption = function(r) { var n = { show: !0, - type: Vze.slice(), + type: Zze.slice(), icon: { /* eslint-disable */ 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", @@ -88541,8 +88582,8 @@ var Vze = ["rect", "polygon", "lineX", "lineY", "keep", "clear"], Hze = ( }, t; }(fa) ); -function zze(e) { - e.registerComponentView(kze), e.registerComponentModel(Bze), e.registerPreprocessor(Tze), e.registerVisual(e.PRIORITY.VISUAL.BRUSH, Aze), e.registerAction({ +function Jze(e) { + e.registerComponentView(Yze), e.registerComponentModel(Xze), e.registerPreprocessor($ze), e.registerVisual(e.PRIORITY.VISUAL.BRUSH, Gze), e.registerAction({ type: "brush", event: "brush", update: "updateVisual" @@ -88561,9 +88602,9 @@ function zze(e) { type: "brushEnd", event: "brushEnd", update: "none" - }, Dn), qh("brush", Hze); + }, Dn), qh("brush", Qze); } -var Gze = ( +var eGe = ( /** @class */ function(e) { Se(t, e); @@ -88600,7 +88641,7 @@ var Gze = ( } }, t; }(Qt) -), Wze = ( +), tGe = ( /** @class */ function(e) { Se(t, e); @@ -88630,9 +88671,9 @@ var Gze = ( z2: 10 }), p = r.get("link"), g = r.get("sublink"), v = r.get("triggerEvent", !0); u.silent = !p && !v, f.silent = !g && !v, p && u.on("click", function() { - NS(p, "_" + r.get("target")); + $S(p, "_" + r.get("target")); }), g && f.on("click", function() { - NS(g, "_" + r.get("subtarget")); + $S(g, "_" + r.get("subtarget")); }), Ft(u).eventData = Ft(f).eventData = v ? { componentType: "title", componentIndex: r.componentIndex @@ -88668,10 +88709,10 @@ var Gze = ( }, t.type = "title", t; }(sn) ); -function jze(e) { - e.registerComponentModel(Gze), e.registerComponentView(Wze); +function rGe(e) { + e.registerComponentModel(eGe), e.registerComponentView(tGe); } -var _3 = ( +var D5 = ( /** @class */ function(e) { Se(t, e); @@ -88698,8 +88739,8 @@ var _3 = ( }, t.prototype._initData = function() { var r = this.option, n = r.data || [], i = r.axisType, o = this._names = [], a; i === "category" ? (a = [], z(n, function(c, u) { - var d = qn(up(c), ""), h; - St(c) ? (h = _t(c), h.value = u) : h = u, a.push(h), o.push(d); + var d = qn(hp(c), ""), h; + bt(c) ? (h = _t(c), h.value = u) : h = u, a.push(h), o.push(d); })) : a = n; var s = { category: "ordinal", @@ -88741,7 +88782,7 @@ var _3 = ( data: [] }, t; }(Qt) -), $J = ( +), HJ = ( /** @class */ function(e) { Se(t, e); @@ -88749,7 +88790,7 @@ var _3 = ( var r = e !== null && e.apply(this, arguments) || this; return r.type = t.type, r; } - return t.type = "timeline.slider", t.defaultOption = ru(_3.defaultOption, { + return t.type = "timeline.slider", t.defaultOption = ru(D5.defaultOption, { backgroundColor: "rgba(0,0,0,0)", borderColor: "#ccc", borderWidth: 0, @@ -88845,10 +88886,10 @@ var _3 = ( }, data: [] }), t; - }(_3) + }(D5) ); -In($J, Xw.prototype); -var Uze = ( +In(HJ, Xw.prototype); +var nGe = ( /** @class */ function(e) { Se(t, e); @@ -88858,7 +88899,7 @@ var Uze = ( } return t.type = "timeline", t; }(sn) -), Kze = ( +), iGe = ( /** @class */ function(e) { Se(t, e); @@ -88872,7 +88913,7 @@ var Uze = ( return this.model.get("orient") === "horizontal"; }, t; }(La) -), zR = Math.PI, M3 = yr(), Yze = ( +), zR = Math.PI, I5 = yr(), oGe = ( /** @class */ function(e) { Se(t, e); @@ -88889,7 +88930,7 @@ var Uze = ( var u = l.scale.getLabel({ value: c }); - return ci("nameValue", { + return ui("nameValue", { noName: !0, value: u }); @@ -88903,7 +88944,7 @@ var Uze = ( }, t.prototype.dispose = function() { this._clearTimer(); }, t.prototype._layout = function(r, n) { - var i = r.get(["label", "position"]), o = r.get("orient"), a = Xze(r, n), s; + var i = r.get(["label", "position"]), o = r.get("orient"), a = sGe(r, n), s; i == null || i === "auto" ? s = o === "horizontal" ? a.y + a.height / 2 < n.getHeight() / 2 ? "-" : "+" : a.x + a.width / 2 < n.getWidth() / 2 ? "+" : "-" : Je(i) ? s = { horizontal: { top: "-", @@ -88972,7 +89013,7 @@ var Uze = ( b[E] += x[E][R] - w[E][R]; } }, t.prototype._createAxis = function(r, n) { - var i = n.getData(), o = n.get("axisType"), a = qze(n, o); + var i = n.getData(), o = n.get("axisType"), a = aGe(n, o); a.getTicks = function() { return i.mapArray(["value"], function(c) { return { @@ -88982,7 +89023,7 @@ var Uze = ( }; var s = i.getDataExtent("value"); a.setExtent(s[0], s[1]), a.calcNiceTicks(); - var l = new Kze("value", a, r.axisExtent, o); + var l = new iGe("value", a, r.axisExtent, o); return l.model = n, l; }, t.prototype._createGroup = function(r) { var n = this[r] = new Ot(); @@ -89011,7 +89052,7 @@ var Uze = ( y1: 0, y2: 0 }, - style: wt({ + style: xt({ lineCap: "round", lineWidth: s.style.lineWidth }, o.getModel(["progress", "lineStyle"]).getLineStyle()), @@ -89027,7 +89068,7 @@ var Uze = ( x: u, y: 0, onclick: at(a._changeTimeline, a, c.value) - }, v = D3(d, h, n, g); + }, v = A5(d, h, n, g); v.ensureState("emphasis").style = f.getItemStyle(), v.ensureState("progress").style = p.getItemStyle(), Mc(v); var m = Ft(v); d.get("tooltip") ? (m.dataIndex = c.value, m.dataModel = o) : m.dataIndex = m.dataModel = null, a._tickSymbols.push(v); @@ -89049,7 +89090,7 @@ var Uze = ( verticalAlign: r.labelBaseline }) }); - m.ensureState("emphasis").style = rn(p), m.ensureState("progress").style = rn(g), n.add(m), Mc(m), M3(m).dataIndex = d, a._tickLabels.push(m); + m.ensureState("emphasis").style = rn(p), m.ensureState("progress").style = rn(g), n.add(m), Mc(m), I5(m).dataIndex = d, a._tickLabels.push(m); }); } }, t.prototype._renderControl = function(r, n, i, o) { @@ -89057,7 +89098,7 @@ var Uze = ( h(r.nextBtnPosition, "next", at(this._changeTimeline, this, d ? "-" : "+")), h(r.prevBtnPosition, "prev", at(this._changeTimeline, this, d ? "+" : "-")), h(r.playPosition, u ? "stop" : "play", at(this._handlePlayClick, this, !u), !0); function h(f, p, g, v) { if (f) { - var m = ss($t(o.get(["controlStyle", p + "BtnSize"]), a), a), y = [0, -m / 2, m, m], C = Zze(o, p + "Icon", y, { + var m = ss($t(o.get(["controlStyle", p + "BtnSize"]), a), a), y = [0, -m / 2, m, m], C = lGe(o, p + "Icon", y, { x: f[0], y: f[1], originX: a / 2, @@ -89073,13 +89114,13 @@ var Uze = ( }, t.prototype._renderCurrentPointer = function(r, n, i, o) { var a = o.getData(), s = o.getCurrentIndex(), l = a.getItemModel(s).getModel("checkpointStyle"), c = this, u = { onCreate: function(d) { - d.draggable = !0, d.drift = at(c._handlePointerDrag, c), d.ondragend = at(c._handlePointerDragend, c), I3(d, c._progressLine, s, i, o, !0); + d.draggable = !0, d.drift = at(c._handlePointerDrag, c), d.ondragend = at(c._handlePointerDragend, c), O5(d, c._progressLine, s, i, o, !0); }, onUpdate: function(d) { - I3(d, c._progressLine, s, i, o); + O5(d, c._progressLine, s, i, o); } }; - this._currentPointer = D3(l, l, this._mainGroup, {}, this._currentPointer, u); + this._currentPointer = A5(l, l, this._mainGroup, {}, this._currentPointer, u); }, t.prototype._handlePlayClick = function(r) { this._clearTimer(), this.api.dispatchAction({ type: "timelinePlayChange", @@ -89128,11 +89169,11 @@ var Uze = ( n && n[o] && n[o].toggleState("progress", o < r); if (i) for (var o = 0; o < i.length; o++) - i && i[o] && i[o].toggleState("progress", M3(i[o]).dataIndex <= r); + i && i[o] && i[o].toggleState("progress", I5(i[o]).dataIndex <= r); }, t.type = "timeline.slider", t; - }(Uze) + }(nGe) ); -function qze(e, t) { +function aGe(e, t) { if (t = t || e.get("type"), t) switch (t) { case "category": @@ -89146,20 +89187,20 @@ function qze(e, t) { useUTC: e.ecModel.get("useUTC") }); default: - return new Wl(); + return new jl(); } } -function Xze(e, t) { +function sGe(e, t) { return jn(e.getBoxLayoutParams(), { width: t.getWidth(), height: t.getHeight() }, e.get("padding")); } -function Zze(e, t, r, n) { - var i = n.style, o = pp(e.get(["controlStyle", t]), n || {}, new Kt(r[0], r[1], r[2], r[3])); +function lGe(e, t, r, n) { + var i = n.style, o = vp(e.get(["controlStyle", t]), n || {}, new Yt(r[0], r[1], r[2], r[3])); return i && o.setStyle(i), o; } -function D3(e, t, r, n, i, o) { +function A5(e, t, r, n, i, o) { var a = t.get("color"); if (i) i.setColor(a), r.add(i), o && o.onUpdate(i); @@ -89168,18 +89209,18 @@ function D3(e, t, r, n, i, o) { i = Bn(s, -1, -1, 2, 2, a), i.setStyle("strokeNoScale", !0), r.add(i), o && o.onCreate(i); } var l = t.getItemStyle(["color"]); - i.setStyle(l), n = Wt({ + i.setStyle(l), n = jt({ rectHover: !0, z2: 100 }, n, !0); - var c = wp(e.get("symbolSize")); + var c = Ep(e.get("symbolSize")); n.scaleX = c[0] / 2, n.scaleY = c[1] / 2; var u = Zd(e.get("symbolOffset"), c); u && (n.x = (n.x || 0) + u[0], n.y = (n.y || 0) + u[1]); var d = e.get("symbolRotate"); return n.rotation = (d || 0) * Math.PI / 180 || 0, i.attr(n), i.updateTransform(), i; } -function I3(e, t, r, n, i, o) { +function O5(e, t, r, n, i, o) { if (!e.dragging) { var a = i.getModel("checkpointStyle"), s = n.dataToCoord(i.getData().get("value", r)); if (o || !a.get("animation", !0)) @@ -89207,7 +89248,7 @@ function I3(e, t, r, n, i, o) { } } } -function Qze(e) { +function cGe(e) { e.registerAction({ type: "timelineChange", event: "timelineChanged", @@ -89220,7 +89261,7 @@ function Qze(e) { from: t.from }))), r.resetOption("timeline", { replaceMerge: i.get("replaceMerge", !0) - }), wt({ + }), xt({ currentIndex: i.option.currentIndex }, t); }), e.registerAction({ @@ -89232,26 +89273,26 @@ function Qze(e) { n && t.playState != null && n.setPlayState(t.playState); }); } -function Jze(e) { +function uGe(e) { var t = e && e.timeline; - Ie(t) || (t = t ? [t] : []), z(t, function(r) { - r && eGe(r); + Ae(t) || (t = t ? [t] : []), z(t, function(r) { + r && dGe(r); }); } -function eGe(e) { +function dGe(e) { var t = e.type, r = { number: "value", time: "time" }; - if (r[t] && (e.axisType = r[t], delete e.type), A3(e), Uu(e, "controlPosition")) { + if (r[t] && (e.axisType = r[t], delete e.type), L5(e), Uu(e, "controlPosition")) { var n = e.controlStyle || (e.controlStyle = {}); Uu(n, "position") || (n.position = e.controlPosition), n.position === "none" && !Uu(n, "show") && (n.show = !1, delete n.position), delete e.controlPosition; } z(e.data || [], function(i) { - St(i) && !Ie(i) && (!Uu(i, "value") && Uu(i, "name") && (i.value = i.name), A3(i)); + bt(i) && !Ae(i) && (!Uu(i, "value") && Uu(i, "name") && (i.value = i.name), L5(i)); }); } -function A3(e) { +function L5(e) { var t = e.itemStyle || (e.itemStyle = {}), r = t.emphasis || (t.emphasis = {}), n = e.label || e.label || {}, i = n.normal || (n.normal = {}), o = { normal: 1, emphasis: 1 @@ -89263,23 +89304,23 @@ function A3(e) { function Uu(e, t) { return e.hasOwnProperty(t); } -function tGe(e) { - e.registerComponentModel($J), e.registerComponentView(Yze), e.registerSubTypeDefaulter("timeline", function() { +function hGe(e) { + e.registerComponentModel(HJ), e.registerComponentView(oGe), e.registerSubTypeDefaulter("timeline", function() { return "slider"; - }), Qze(e), e.registerPreprocessor(Jze); + }), cGe(e), e.registerPreprocessor(uGe); } function OO(e, t) { if (!e) return !1; - for (var r = Ie(e) ? e : [e], n = 0; n < r.length; n++) + for (var r = Ae(e) ? e : [e], n = 0; n < r.length; n++) if (r[n] && r[n][t]) return !0; return !1; } -function V0(e) { +function G0(e) { Md(e, "label", ["show"]); } -var H0 = yr(), Ul = ( +var W0 = yr(), Kl = ( /** @class */ function(e) { Se(t, e); @@ -89301,26 +89342,26 @@ var H0 = yr(), Ul = ( }, t.prototype._mergeOption = function(r, n, i, o) { var a = this.mainType; i || n.eachSeries(function(s) { - var l = s.get(this.mainType, !0), c = H0(s)[a]; + var l = s.get(this.mainType, !0), c = W0(s)[a]; if (!l || !l.data) { - H0(s)[a] = null; + W0(s)[a] = null; return; } - c ? c._mergeOption(l, n, !0) : (o && V0(l), z(l.data, function(u) { - u instanceof Array ? (V0(u[0]), V0(u[1])) : V0(u); + c ? c._mergeOption(l, n, !0) : (o && G0(l), z(l.data, function(u) { + u instanceof Array ? (G0(u[0]), G0(u[1])) : G0(u); }), c = this.createMarkerModelFromSeries(l, this, n), Pe(c, { mainType: this.mainType, // Use the same series index and name seriesIndex: s.seriesIndex, name: s.name, createdBySelf: !0 - }), c.__hostSeries = s), H0(s)[a] = c; + }), c.__hostSeries = s), W0(s)[a] = c; }, this); }, t.prototype.formatTooltip = function(r, n, i) { var o = this.getData(), a = this.getRawValue(r), s = o.getName(r); - return ci("section", { + return ui("section", { header: this.name, - blocks: [ci("nameValue", { + blocks: [ui("nameValue", { name: s, value: a, noName: !s, @@ -89335,12 +89376,12 @@ var H0 = yr(), Ul = ( var i = Xw.prototype.getDataParams.call(this, r, n), o = this.__hostSeries; return o && (i.seriesId = o.id, i.seriesName = o.name, i.seriesType = o.subType), i; }, t.getMarkerModelFromSeries = function(r, n) { - return H0(r)[n]; + return W0(r)[n]; }, t.type = "marker", t.dependencies = ["series", "grid", "polar", "geo"], t; }(Qt) ); -In(Ul, Xw.prototype); -var rGe = ( +In(Kl, Xw.prototype); +var fGe = ( /** @class */ function(e) { Se(t, e); @@ -89373,16 +89414,16 @@ var rGe = ( } } }, t; - }(Ul) + }(Kl) ); function qM(e) { return !(isNaN(parseFloat(e.x)) && isNaN(parseFloat(e.y))); } -function nGe(e) { +function pGe(e) { return !isNaN(parseFloat(e.x)) && !isNaN(parseFloat(e.y)); } -function z0(e, t, r, n, i, o) { - var a = [], s = Gl( +function j0(e, t, r, n, i, o) { + var a = [], s = Wl( t, n /* , otherDataDim */ @@ -89392,23 +89433,23 @@ function z0(e, t, r, n, i, o) { return h = Math.min(h, 20), h >= 0 && (a[o] = +a[o].toFixed(h)), [a, d]; } var GR = { - min: Vt(z0, "min"), - max: Vt(z0, "max"), - average: Vt(z0, "average"), - median: Vt(z0, "median") + min: Vt(j0, "min"), + max: Vt(j0, "max"), + average: Vt(j0, "average"), + median: Vt(j0, "median") }; -function hm(e, t) { +function pm(e, t) { if (t) { var r = e.getData(), n = e.coordinateSystem, i = n && n.dimensions; - if (!nGe(t) && !Ie(t.coord) && Ie(i)) { - var o = BJ(t, r, n, e); + if (!pGe(t) && !Ae(t.coord) && Ae(i)) { + var o = zJ(t, r, n, e); if (t = _t(t), t.type && GR[t.type] && o.baseAxis && o.valueAxis) { - var a = Yt(i, o.baseAxis.dim), s = Yt(i, o.valueAxis.dim), l = GR[t.type](r, o.baseDataDim, o.valueDataDim, a, s); + var a = qt(i, o.baseAxis.dim), s = qt(i, o.valueAxis.dim), l = GR[t.type](r, o.baseDataDim, o.valueDataDim, a, s); t.coord = l[0], t.value = l[1]; } else t.coord = [t.xAxis != null ? t.xAxis : t.radiusAxis, t.yAxis != null ? t.yAxis : t.angleAxis]; } - if (t.coord == null || !Ie(i)) + if (t.coord == null || !Ae(i)) t.coord = []; else for (var c = t.coord, u = 0; u < 2; u++) @@ -89416,21 +89457,21 @@ function hm(e, t) { return t; } } -function BJ(e, t, r, n) { +function zJ(e, t, r, n) { var i = {}; - return e.valueIndex != null || e.valueDim != null ? (i.valueDataDim = e.valueIndex != null ? t.getDimension(e.valueIndex) : e.valueDim, i.valueAxis = r.getAxis(iGe(n, i.valueDataDim)), i.baseAxis = r.getOtherAxis(i.valueAxis), i.baseDataDim = t.mapDimension(i.baseAxis.dim)) : (i.baseAxis = n.getBaseAxis(), i.valueAxis = r.getOtherAxis(i.baseAxis), i.baseDataDim = t.mapDimension(i.baseAxis.dim), i.valueDataDim = t.mapDimension(i.valueAxis.dim)), i; + return e.valueIndex != null || e.valueDim != null ? (i.valueDataDim = e.valueIndex != null ? t.getDimension(e.valueIndex) : e.valueDim, i.valueAxis = r.getAxis(gGe(n, i.valueDataDim)), i.baseAxis = r.getOtherAxis(i.valueAxis), i.baseDataDim = t.mapDimension(i.baseAxis.dim)) : (i.baseAxis = n.getBaseAxis(), i.valueAxis = r.getOtherAxis(i.baseAxis), i.baseDataDim = t.mapDimension(i.baseAxis.dim), i.valueDataDim = t.mapDimension(i.valueAxis.dim)), i; } -function iGe(e, t) { +function gGe(e, t) { var r = e.getData().getDimensionInfo(t); return r && r.coordDim; } -function fm(e, t) { +function gm(e, t) { return e && e.containData && t.coord && !qM(t) ? e.containData(t.coord) : !0; } -function oGe(e, t, r) { +function vGe(e, t, r) { return e && e.containZone && t.coord && r.coord && !qM(t) && !qM(r) ? e.containZone(t.coord, r.coord) : !0; } -function VJ(e, t) { +function GJ(e, t) { return e ? function(r, n, i, o) { var a = o < 2 ? r.coord && r.coord[o] : r.value; return Ic(a, t[o]); @@ -89461,7 +89502,7 @@ var WR = yr(), FO = ( a.each(function(s) { WR(s).keep = !1; }), n.eachSeries(function(s) { - var l = Ul.getMarkerModelFromSeries(s, o.type); + var l = Kl.getMarkerModelFromSeries(s, o.type); l && o.renderSeries(s, l, n, i); }), a.each(function(s) { !WR(s).keep && o.group.remove(s.group); @@ -89471,18 +89512,18 @@ var WR = yr(), FO = ( }, t.prototype.toggleBlurSeries = function(r, n) { var i = this; z(r, function(o) { - var a = Ul.getMarkerModelFromSeries(o, i.type); + var a = Kl.getMarkerModelFromSeries(o, i.type); if (a) { var s = a.getData(); s.eachItemGraphicEl(function(l) { - l && (n ? xY(l) : G2(l)); + l && (n ? PY(l) : GI(l)); }); } }); }, t.type = "marker", t; }(sn) ); -function O3(e, t, r) { +function F5(e, t, r) { var n = t.coordinateSystem; e.each(function(i) { var o = e.getItemModel(i), a, s = Ze(o.get("x"), r.getWidth()), l = Ze(o.get("y"), r.getHeight()); @@ -89497,7 +89538,7 @@ function O3(e, t, r) { isNaN(s) || (a[0] = s), isNaN(l) || (a[1] = l), e.setItemLayout(i, a); }); } -var aGe = ( +var mGe = ( /** @class */ function(e) { Se(t, e); @@ -89507,18 +89548,18 @@ var aGe = ( } return t.prototype.updateTransform = function(r, n, i) { n.eachSeries(function(o) { - var a = Ul.getMarkerModelFromSeries(o, "markPoint"); - a && (O3(a.getData(), o, i), this.markerGroupMap.get(o.id).updateLayout()); + var a = Kl.getMarkerModelFromSeries(o, "markPoint"); + a && (F5(a.getData(), o, i), this.markerGroupMap.get(o.id).updateLayout()); }, this); }, t.prototype.renderSeries = function(r, n, i, o) { - var a = r.coordinateSystem, s = r.id, l = r.getData(), c = this.markerGroupMap, u = c.get(s) || c.set(s, new oy()), d = sGe(a, r, n); - n.setData(d), O3(n.getData(), r, o), d.each(function(h) { + var a = r.coordinateSystem, s = r.id, l = r.getData(), c = this.markerGroupMap, u = c.get(s) || c.set(s, new ly()), d = yGe(a, r, n); + n.setData(d), F5(n.getData(), r, o), d.each(function(h) { var f = d.getItemModel(h), p = f.getShallow("symbol"), g = f.getShallow("symbolSize"), v = f.getShallow("symbolRotate"), m = f.getShallow("symbolOffset"), y = f.getShallow("symbolKeepAspect"); - if (vt(p) || vt(g) || vt(v) || vt(m)) { + if (mt(p) || mt(g) || mt(v) || mt(m)) { var C = n.getRawValue(h), b = n.getDataParams(h); - vt(p) && (p = p(C, b)), vt(g) && (g = g(C, b)), vt(v) && (v = v(C, b)), vt(m) && (m = m(C, b)); + mt(p) && (p = p(C, b)), mt(g) && (g = g(C, b)), mt(v) && (v = v(C, b)), mt(m) && (m = m(C, b)); } - var w = f.getModel("itemStyle").getItemStyle(), x = ry(l, "color"); + var w = f.getModel("itemStyle").getItemStyle(), x = oy(l, "color"); w.fill || (w.fill = x), d.setItemVisual(h, { symbol: p, symbolSize: g, @@ -89535,7 +89576,7 @@ var aGe = ( }, t.type = "markPoint", t; }(FO) ); -function sGe(e, t, r) { +function yGe(e, t, r) { var n; e ? n = Fe(e && e.dimensions, function(s) { var l = t.getData().getDimensionInfo(t.getData().mapDimension(s)) || {}; @@ -89548,17 +89589,17 @@ function sGe(e, t, r) { name: "value", type: "float" }]; - var i = new Fi(n, r), o = Fe(r.get("data"), Vt(hm, t)); - e && (o = Fr(o, Vt(fm, e))); - var a = VJ(!!e, n); + var i = new Fi(n, r), o = Fe(r.get("data"), Vt(pm, t)); + e && (o = Nr(o, Vt(gm, e))); + var a = GJ(!!e, n); return i.initData(o, null, a), i; } -function lGe(e) { - e.registerComponentModel(rGe), e.registerComponentView(aGe), e.registerPreprocessor(function(t) { +function CGe(e) { + e.registerComponentModel(fGe), e.registerComponentView(mGe), e.registerPreprocessor(function(t) { OO(t.series, "markPoint") && (t.markPoint = t.markPoint || {}); }); } -var cGe = ( +var SGe = ( /** @class */ function(e) { Se(t, e); @@ -89597,10 +89638,10 @@ var cGe = ( }, animationEasing: "linear" }, t; - }(Ul) -), G0 = yr(), uGe = function(e, t, r, n) { + }(Kl) +), U0 = yr(), bGe = function(e, t, r, n) { var i = e.getData(), o; - if (Ie(n)) + if (Ae(n)) o = n; else { var a = n.type; @@ -89609,7 +89650,7 @@ var cGe = ( if (n.yAxis != null || n.xAxis != null) s = t.getAxis(n.yAxis != null ? "y" : "x"), l = $n(n.yAxis, n.xAxis); else { - var c = BJ(n, i, t, e); + var c = zJ(n, i, t, e); s = c.valueAxis; var u = _A(i, c.valueDataDim); l = LO(i, u, a); @@ -89628,23 +89669,23 @@ var cGe = ( } else process.env.NODE_ENV !== "production" && ya("Invalid markLine data."), o = []; } - var v = [hm(e, o[0]), hm(e, o[1]), Pe({}, o[2])]; - return v[2].type = v[2].type || null, Wt(v[2], v[0]), Wt(v[2], v[1]), v; + var v = [pm(e, o[0]), pm(e, o[1]), Pe({}, o[2])]; + return v[2].type = v[2].type || null, jt(v[2], v[0]), jt(v[2], v[1]), v; }; -function fb(e) { +function gb(e) { return !isNaN(e) && !isFinite(e); } -function L3(e, t, r, n) { +function N5(e, t, r, n) { var i = 1 - e, o = n.dimensions[e]; - return fb(t[i]) && fb(r[i]) && t[e] === r[e] && n.getAxis(o).containData(t[e]); + return gb(t[i]) && gb(r[i]) && t[e] === r[e] && n.getAxis(o).containData(t[e]); } -function dGe(e, t) { +function wGe(e, t) { if (e.type === "cartesian2d") { var r = t[0].coord, n = t[1].coord; - if (r && n && (L3(1, r, n, e) || L3(0, r, n, e))) + if (r && n && (N5(1, r, n, e) || N5(0, r, n, e))) return !0; } - return fm(e, t[0]) && fm(e, t[1]); + return gm(e, t[0]) && gm(e, t[1]); } function jR(e, t, r, n, i) { var o = n.coordinateSystem, a = e.getItemModel(t), s, l = Ze(a.get("x"), i.getWidth()), c = Ze(a.get("y"), i.getHeight()); @@ -89659,13 +89700,13 @@ function jR(e, t, r, n, i) { } if (Qd(o, "cartesian2d")) { var f = o.getAxis("x"), p = o.getAxis("y"), u = o.dimensions; - fb(e.get(u[0], t)) ? s[0] = f.toGlobalCoord(f.getExtent()[r ? 0 : 1]) : fb(e.get(u[1], t)) && (s[1] = p.toGlobalCoord(p.getExtent()[r ? 0 : 1])); + gb(e.get(u[0], t)) ? s[0] = f.toGlobalCoord(f.getExtent()[r ? 0 : 1]) : gb(e.get(u[1], t)) && (s[1] = p.toGlobalCoord(p.getExtent()[r ? 0 : 1])); } isNaN(l) || (s[0] = l), isNaN(c) || (s[1] = c); } e.setItemLayout(t, s); } -var hGe = ( +var xGe = ( /** @class */ function(e) { Se(t, e); @@ -89675,9 +89716,9 @@ var hGe = ( } return t.prototype.updateTransform = function(r, n, i) { n.eachSeries(function(o) { - var a = Ul.getMarkerModelFromSeries(o, "markLine"); + var a = Kl.getMarkerModelFromSeries(o, "markLine"); if (a) { - var s = a.getData(), l = G0(a).from, c = G0(a).to; + var s = a.getData(), l = U0(a).from, c = U0(a).to; l.each(function(u) { jR(l, u, !0, o, i), jR(c, u, !1, o, i); }), s.each(function(u) { @@ -89688,10 +89729,10 @@ var hGe = ( }, t.prototype.renderSeries = function(r, n, i, o) { var a = r.coordinateSystem, s = r.id, l = r.getData(), c = this.markerGroupMap, u = c.get(s) || c.set(s, new iO()); this.group.add(u.group); - var d = fGe(a, r, n), h = d.from, f = d.to, p = d.line; - G0(n).from = h, G0(n).to = f, n.setData(p); + var d = EGe(a, r, n), h = d.from, f = d.to, p = d.line; + U0(n).from = h, U0(n).to = f, n.setData(p); var g = n.get("symbol"), v = n.get("symbolSize"), m = n.get("symbolRotate"), y = n.get("symbolOffset"); - Ie(g) || (g = [g, g]), Ie(v) || (v = [v, v]), Ie(m) || (m = [m, m]), Ie(y) || (y = [y, y]), d.from.each(function(b) { + Ae(g) || (g = [g, g]), Ae(v) || (v = [v, v]), Ae(m) || (m = [m, m]), Ae(y) || (y = [y, y]), d.from.each(function(b) { C(h, b, !0), C(f, b, !1); }), p.each(function(b) { var w = p.getItemModel(b).getModel("lineStyle").getLineStyle(); @@ -89717,7 +89758,7 @@ var hGe = ( var E = b.getItemModel(w); jR(b, w, x, r, o); var R = E.getModel("itemStyle").getItemStyle(); - R.fill == null && (R.fill = ry(l, "color")), b.setItemVisual(w, { + R.fill == null && (R.fill = oy(l, "color")), b.setItemVisual(w, { symbolKeepAspect: E.get("symbolKeepAspect"), // `0` should be considered as a valid value, so use `retrieve2` instead of `||` symbolOffset: $t(E.get("symbolOffset", !0), y[x ? 0 : 1]), @@ -89732,7 +89773,7 @@ var hGe = ( }, t.type = "markLine", t; }(FO) ); -function fGe(e, t, r) { +function EGe(e, t, r) { var n; e ? n = Fe(e && e.dimensions, function(c) { var u = t.getData().getDimensionInfo(t.getData().mapDimension(c)) || {}; @@ -89745,9 +89786,9 @@ function fGe(e, t, r) { name: "value", type: "float" }]; - var i = new Fi(n, r), o = new Fi(n, r), a = new Fi([], r), s = Fe(r.get("data"), Vt(uGe, t, e, r)); - e && (s = Fr(s, Vt(dGe, e))); - var l = VJ(!!e, n); + var i = new Fi(n, r), o = new Fi(n, r), a = new Fi([], r), s = Fe(r.get("data"), Vt(bGe, t, e, r)); + e && (s = Nr(s, Vt(wGe, e))); + var l = GJ(!!e, n); return i.initData(Fe(s, function(c) { return c[0]; }), null, l), o.initData(Fe(s, function(c) { @@ -89760,12 +89801,12 @@ function fGe(e, t, r) { line: a }; } -function pGe(e) { - e.registerComponentModel(cGe), e.registerComponentView(hGe), e.registerPreprocessor(function(t) { +function RGe(e) { + e.registerComponentModel(SGe), e.registerComponentView(xGe), e.registerPreprocessor(function(t) { OO(t.series, "markLine") && (t.markLine = t.markLine || {}); }); } -var gGe = ( +var PGe = ( /** @class */ function(e) { Se(t, e); @@ -89801,24 +89842,24 @@ var gGe = ( } } }, t; - }(Ul) -), W0 = yr(), vGe = function(e, t, r, n) { + }(Kl) +), K0 = yr(), TGe = function(e, t, r, n) { var i = n[0], o = n[1]; if (!(!i || !o)) { - var a = hm(e, i), s = hm(e, o), l = a.coord, c = s.coord; + var a = pm(e, i), s = pm(e, o), l = a.coord, c = s.coord; l[0] = $n(l[0], -1 / 0), l[1] = $n(l[1], -1 / 0), c[0] = $n(c[0], 1 / 0), c[1] = $n(c[1], 1 / 0); var u = ww([{}, a, s]); return u.coord = [a.coord, s.coord], u.x0 = a.x, u.y0 = a.y, u.x1 = s.x, u.y1 = s.y, u; } }; -function pb(e) { +function vb(e) { return !isNaN(e) && !isFinite(e); } -function F3(e, t, r, n) { +function k5(e, t, r, n) { var i = 1 - e; - return pb(t[i]) && pb(r[i]); + return vb(t[i]) && vb(r[i]); } -function mGe(e, t) { +function _Ge(e, t) { var r = t.coord[0], n = t.coord[1], i = { coord: r, x: t.x0, @@ -89828,9 +89869,9 @@ function mGe(e, t) { x: t.x1, y: t.y1 }; - return Qd(e, "cartesian2d") ? r && n && (F3(1, r, n) || F3(0, r, n)) ? !0 : oGe(e, i, o) : fm(e, i) || fm(e, o); + return Qd(e, "cartesian2d") ? r && n && (k5(1, r, n) || k5(0, r, n)) ? !0 : vGe(e, i, o) : gm(e, i) || gm(e, o); } -function N3(e, t, r, n, i) { +function $5(e, t, r, n, i) { var o = n.coordinateSystem, a = e.getItemModel(t), s, l = Ze(a.get(r[0]), i.getWidth()), c = Ze(a.get(r[1]), i.getHeight()); if (!isNaN(l) && !isNaN(c)) s = [l, c]; @@ -89844,13 +89885,13 @@ function N3(e, t, r, n, i) { } if (Qd(o, "cartesian2d")) { var y = o.getAxis("x"), C = o.getAxis("y"), g = e.get(r[0], t), v = e.get(r[1], t); - pb(g) ? s[0] = y.toGlobalCoord(y.getExtent()[r[0] === "x0" ? 0 : 1]) : pb(v) && (s[1] = C.toGlobalCoord(C.getExtent()[r[1] === "y0" ? 0 : 1])); + vb(g) ? s[0] = y.toGlobalCoord(y.getExtent()[r[0] === "x0" ? 0 : 1]) : vb(v) && (s[1] = C.toGlobalCoord(C.getExtent()[r[1] === "y0" ? 0 : 1])); } isNaN(l) || (s[0] = l), isNaN(c) || (s[1] = c); } return s; } -var k3 = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], yGe = ( +var B5 = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], MGe = ( /** @class */ function(e) { Se(t, e); @@ -89860,12 +89901,12 @@ var k3 = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], yGe = ( } return t.prototype.updateTransform = function(r, n, i) { n.eachSeries(function(o) { - var a = Ul.getMarkerModelFromSeries(o, "markArea"); + var a = Kl.getMarkerModelFromSeries(o, "markArea"); if (a) { var s = a.getData(); s.each(function(l) { - var c = Fe(k3, function(d) { - return N3(s, l, d, o, i); + var c = Fe(B5, function(d) { + return $5(s, l, d, o, i); }); s.setItemLayout(l, c); var u = s.getItemGraphicEl(l); @@ -89878,10 +89919,10 @@ var k3 = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], yGe = ( group: new Ot() }); this.group.add(u.group), this.markKeep(u); - var d = CGe(a, r, n); + var d = DGe(a, r, n); n.setData(d), d.each(function(h) { - var f = Fe(k3, function(R) { - return N3(d, h, R, r, o); + var f = Fe(B5, function(R) { + return $5(d, h, R, r, o); }), p = a.getAxis("x").scale, g = a.getAxis("y").scale, v = p.getExtent(), m = g.getExtent(), y = [p.parse(d.get("x0", h)), p.parse(d.get("x1", h))], C = [g.parse(d.get("y0", h)), g.parse(d.get("y1", h))]; Vo(y), Vo(C); var b = !(v[0] > y[1] || v[1] < y[0] || m[0] > C[1] || m[1] < C[0]), w = !b; @@ -89889,9 +89930,9 @@ var k3 = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], yGe = ( points: f, allClipped: w }); - var x = d.getItemModel(h).getModel("itemStyle").getItemStyle(), E = ry(l, "color"); - x.fill || (x.fill = E, Je(x.fill) && (x.fill = Wv(x.fill, 0.4))), x.stroke || (x.stroke = E), d.setItemVisual(h, "style", x); - }), d.diff(W0(u).data).add(function(h) { + var x = d.getItemModel(h).getModel("itemStyle").getItemStyle(), E = oy(l, "color"); + x.fill || (x.fill = E, Je(x.fill) && (x.fill = Uv(x.fill, 0.4))), x.stroke || (x.stroke = E), d.setItemVisual(h, "style", x); + }), d.diff(K0(u).data).add(function(h) { var f = d.getItemLayout(h); if (!f.allClipped) { var p = new oo({ @@ -89902,7 +89943,7 @@ var k3 = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], yGe = ( d.setItemGraphicEl(h, p), u.group.add(p); } }).update(function(h, f) { - var p = W0(u).data.getItemGraphicEl(f), g = d.getItemLayout(h); + var p = K0(u).data.getItemGraphicEl(f), g = d.getItemLayout(h); g.allClipped ? p && u.group.remove(p) : (p ? br(p, { shape: { points: g.points @@ -89913,21 +89954,21 @@ var k3 = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], yGe = ( } }), d.setItemGraphicEl(h, p), u.group.add(p)); }).remove(function(h) { - var f = W0(u).data.getItemGraphicEl(h); + var f = K0(u).data.getItemGraphicEl(h); u.group.remove(f); }).execute(), d.eachItemGraphicEl(function(h, f) { var p = d.getItemModel(f), g = d.getItemVisual(f, "style"); - h.useStyle(d.getItemVisual(f, "style")), Ri(h, li(p), { + h.useStyle(d.getItemVisual(f, "style")), Pi(h, ci(p), { labelFetcher: n, labelDataIndex: f, defaultText: d.getName(f) || "", - inheritColor: Je(g.fill) ? Wv(g.fill, 1) : "#000" - }), Ei(h, p), Rn(h, null, null, p.get(["emphasis", "disabled"])), Ft(h).dataModel = n; - }), W0(u).data = d, u.group.silent = n.get("silent") || r.get("silent"); + inheritColor: Je(g.fill) ? Uv(g.fill, 1) : "#000" + }), Ri(h, p), Rn(h, null, null, p.get(["emphasis", "disabled"])), Ft(h).dataModel = n; + }), K0(u).data = d, u.group.silent = n.get("silent") || r.get("silent"); }, t.type = "markArea", t; }(FO) ); -function CGe(e, t, r) { +function DGe(e, t, r) { var n, i, o = ["x0", "y0", "x1", "y1"]; if (e) { var a = Fe(e && e.dimensions, function(c) { @@ -89949,8 +89990,8 @@ function CGe(e, t, r) { name: "value", type: "float" }], n = new Fi(i, r); - var s = Fe(r.get("data"), Vt(vGe, t, e, r)); - e && (s = Fr(s, Vt(mGe, e))); + var s = Fe(r.get("data"), Vt(TGe, t, e, r)); + e && (s = Nr(s, Vt(_Ge, e))); var l = e ? function(c, u, d, h) { var f = c.coord[Math.floor(h / 2)][h % 2]; return Ic(f, i[h]); @@ -89959,12 +90000,12 @@ function CGe(e, t, r) { }; return n.initData(s, null, l), n.hasItemOption = !0, n; } -function SGe(e) { - e.registerComponentModel(gGe), e.registerComponentView(yGe), e.registerPreprocessor(function(t) { +function IGe(e) { + e.registerComponentModel(PGe), e.registerComponentView(MGe), e.registerPreprocessor(function(t) { OO(t.series, "markArea") && (t.markArea = t.markArea || {}); }); } -var bGe = function(e, t) { +var AGe = function(e, t) { if (t === "all") return { type: "all", @@ -89999,10 +90040,10 @@ var bGe = function(e, t) { e.prototype.mergeOption.call(this, r, n), this._updateSelector(r); }, t.prototype._updateSelector = function(r) { var n = r.selector, i = this.ecModel; - n === !0 && (n = r.selector = ["all", "inverse"]), Ie(n) && z(n, function(o, a) { + n === !0 && (n = r.selector = ["all", "inverse"]), Ae(n) && z(n, function(o, a) { Je(o) && (o = { type: o - }), n[a] = Wt(o, bGe(i, o.type)); + }), n[a] = jt(o, AGe(i, o.type)); }); }, t.prototype.optionUpdated = function() { this._updateData(this.ecModel); @@ -90028,14 +90069,14 @@ var bGe = function(e, t) { r.isSeriesFiltered(l) || (i = i.concat(h)), h.length ? n = n.concat(h) : u = !0; } else u = !0; - u && F2(l) && n.push(l.name); + u && FI(l) && n.push(l.name); }), this._availableNames = i; var o = this.get("data") || n, a = ft(), s = Fe(o, function(l) { return (Je(l) || Cr(l)) && (l = { name: l }), a.get(l.name) ? null : (a.set(l.name, !0), new Gr(l, this, this.ecModel)); }, this); - this._data = Fr(s, function(l) { + this._data = Nr(s, function(l) { return !!l; }); }, t.prototype.getData = function() { @@ -90067,7 +90108,7 @@ var bGe = function(e, t) { }); }, t.prototype.isSelected = function(r) { var n = this.option.selected; - return !(n.hasOwnProperty(r) && !n[r]) && Yt(this._availableNames, r) >= 0; + return !(n.hasOwnProperty(r) && !n[r]) && qt(this._availableNames, r) >= 0; }, t.prototype.getOrient = function() { return this.get("orient") === "vertical" ? { index: 1, @@ -90151,7 +90192,7 @@ var bGe = function(e, t) { } }, t; }(Qt) -), Nh = Vt, ZM = z, j0 = Ot, HJ = ( +), Nh = Vt, ZM = z, Y0 = Ot, WJ = ( /** @class */ function(e) { Se(t, e); @@ -90160,7 +90201,7 @@ var bGe = function(e, t) { return r.type = t.type, r.newlineDisabled = !1, r; } return t.prototype.init = function() { - this.group.add(this._contentGroup = new j0()), this.group.add(this._selectorGroup = new j0()), this._isFirstRender = !0; + this.group.add(this._contentGroup = new Y0()), this.group.add(this._selectorGroup = new Y0()), this._isFirstRender = !0; }, t.prototype.getContentGroup = function() { return this._contentGroup; }, t.prototype.getSelectorGroup = function() { @@ -90175,11 +90216,11 @@ var bGe = function(e, t) { var u = r.getBoxLayoutParams(), d = { width: i.getWidth(), height: i.getHeight() - }, h = r.get("padding"), f = jn(u, d, h), p = this.layoutInner(r, a, f, o, l, c), g = jn(wt({ + }, h = r.get("padding"), f = jn(u, d, h), p = this.layoutInner(r, a, f, o, l, c), g = jn(xt({ width: p.width, height: p.height }, u), d, h); - this.group.x = g.x - p.x, this.group.y = g.y - p.y, this.group.markRedraw(), this.group.add(this._backgroundEl = MJ(p, r)); + this.group.x = g.x - p.x, this.group.y = g.y - p.y, this.group.markRedraw(), this.group.add(this._backgroundEl = AJ(p, r)); } }, t.prototype.resetInner = function() { this.getContentGroup().removeAll(), this._backgroundEl && this.group.remove(this._backgroundEl), this.getSelectorGroup().removeAll(); @@ -90191,7 +90232,7 @@ var bGe = function(e, t) { var g = f.get("name"); if (!this.newlineDisabled && (g === "" || g === ` `)) { - var v = new j0(); + var v = new Y0(); v.newline = !0, c.add(v); return; } @@ -90199,7 +90240,7 @@ var bGe = function(e, t) { if (!u.get(g)) { if (m) { var y = m.getData(), C = y.getVisual("legendLineStyle") || {}, b = y.getVisual("legendIcon"), w = y.getVisual("style"), x = this._createItem(m, g, p, f, n, r, C, w, b, d, o); - x.on("click", Nh($3, g, null, o, h)).on("mouseover", Nh(QM, m.name, null, o, h)).on("mouseout", Nh(JM, m.name, null, o, h)), i.ssr && x.eachChild(function(E) { + x.on("click", Nh(V5, g, null, o, h)).on("mouseover", Nh(QM, m.name, null, o, h)).on("mouseout", Nh(JM, m.name, null, o, h)), i.ssr && x.eachChild(function(E) { var R = Ft(E); R.seriesIndex = m.seriesIndex, R.dataIndex = p, R.ssrType = "legend"; }), u.set(g, !0); @@ -90214,7 +90255,7 @@ var bGe = function(e, t) { fill: Ja(D, "rgba") })); var A = this._createItem(E, g, p, f, n, r, {}, T, _, d, o); - A.on("click", Nh($3, null, g, o, h)).on("mouseover", Nh(QM, null, g, o, h)).on("mouseout", Nh(JM, null, g, o, h)), i.ssr && A.eachChild(function(M) { + A.on("click", Nh(V5, null, g, o, h)).on("mouseover", Nh(QM, null, g, o, h)).on("mouseout", Nh(JM, null, g, o, h)), i.ssr && A.eachChild(function(M) { var O = Ft(M); O.seriesIndex = E.seriesIndex, O.dataIndex = p, O.ssrType = "legend"; }), u.set(g, !0); @@ -90241,7 +90282,7 @@ var bGe = function(e, t) { }); s.add(d); var h = n.getModel("selectorLabel"), f = n.getModel(["emphasis", "selectorLabel"]); - Ri(d, { + Pi(d, { normal: h, emphasis: f }, { @@ -90251,8 +90292,8 @@ var bGe = function(e, t) { }, t.prototype._createItem = function(r, n, i, o, a, s, l, c, u, d, h) { var f = r.visualDrawType, p = a.get("itemWidth"), g = a.get("itemHeight"), v = a.isSelected(n), m = o.get("symbolRotate"), y = o.get("symbolKeepAspect"), C = o.get("icon"); u = C || u || "roundRect"; - var b = wGe(u, o, l, c, f, v, h), w = new j0(), x = o.getModel("textStyle"); - if (vt(r.getLegendIcon) && (!C || C === "inherit")) + var b = OGe(u, o, l, c, f, v, h), w = new Y0(), x = o.getModel("textStyle"); + if (mt(r.getLegendIcon) && (!C || C === "inherit")) w.add(r.getLegendIcon({ itemWidth: p, itemHeight: g, @@ -90264,7 +90305,7 @@ var bGe = function(e, t) { })); else { var E = C === "inherit" && r.getData().getVisual("symbol") ? m === "inherit" ? r.getData().getVisual("symbolRotate") : m : 0; - w.add(xGe({ + w.add(LGe({ itemWidth: p, itemHeight: g, icon: u, @@ -90275,7 +90316,7 @@ var bGe = function(e, t) { })); } var R = s === "left" ? p + 5 : -5, P = s, T = a.get("formatter"), _ = n; - Je(T) && T ? _ = T.replace("{name}", n ?? "") : vt(T) && (_ = T(n)); + Je(T) && T ? _ = T.replace("{name}", n ?? "") : mt(T) && (_ = T(n)); var D = v ? x.getTextColor() : o.get("inactiveColor"); w.add(new vr({ style: rn(x, { @@ -90296,7 +90337,7 @@ var bGe = function(e, t) { fill: "transparent" } }), M = o.getModel("tooltip"); - return M.get("show") && gp({ + return M.get("show") && mp({ el: A, componentModel: a, itemName: n, @@ -90329,14 +90370,14 @@ var bGe = function(e, t) { }, t.type = "legend.plain", t; }(sn) ); -function wGe(e, t, r, n, i, o, a) { +function OGe(e, t, r, n, i, o, a) { function s(v, m) { v.lineWidth === "auto" && (v.lineWidth = m.lineWidth > 0 ? 2 : 0), ZM(v, function(y, C) { v[C] === "inherit" && (v[C] = m[C]); }); } var l = t.getModel("itemStyle"), c = l.getItemStyle(), u = e.lastIndexOf("empty", 0) === 0 ? "fill" : "stroke", d = l.getShallow("decal"); - c.decal = !d || d === "inherit" ? n.decal : Bf(d, a), c.fill === "inherit" && (c.fill = n[i]), c.stroke === "inherit" && (c.stroke = n[u]), c.opacity === "inherit" && (c.opacity = (i === "fill" ? n : r).opacity), s(c, n); + c.decal = !d || d === "inherit" ? n.decal : Hf(d, a), c.fill === "inherit" && (c.fill = n[i]), c.stroke === "inherit" && (c.stroke = n[u]), c.opacity === "inherit" && (c.opacity = (i === "fill" ? n : r).opacity), s(c, n); var h = t.getModel("lineStyle"), f = h.getLineStyle(); if (s(f, r), c.fill === "auto" && (c.fill = n.fill), c.stroke === "auto" && (c.stroke = n.fill), f.stroke === "auto" && (f.stroke = n.fill), !o) { var p = t.get("inactiveBorderWidth"), g = c[u]; @@ -90347,23 +90388,23 @@ function wGe(e, t, r, n, i, o, a) { lineStyle: f }; } -function xGe(e) { +function LGe(e) { var t = e.icon || "roundRect", r = Bn(t, 0, 0, e.itemWidth, e.itemHeight, e.itemStyle.fill, e.symbolKeepAspect); return r.setStyle(e.itemStyle), r.rotation = (e.iconRotate || 0) * Math.PI / 180, r.setOrigin([e.itemWidth / 2, e.itemHeight / 2]), t.indexOf("empty") > -1 && (r.style.stroke = r.style.fill, r.style.fill = "#fff", r.style.lineWidth = 2), r; } -function $3(e, t, r, n) { +function V5(e, t, r, n) { JM(e, t, r, n), r.dispatchAction({ type: "legendToggleSelect", name: e ?? t }), QM(e, t, r, n); } -function zJ(e) { +function jJ(e) { for (var t = e.getZr().storage.getDisplayList(), r, n = 0, i = t.length; n < i && !(r = t[n].states.emphasis); ) n++; return r && r.hoverLayer; } function QM(e, t, r, n) { - zJ(r) || r.dispatchAction({ + jJ(r) || r.dispatchAction({ type: "highlight", seriesName: e, name: t, @@ -90371,14 +90412,14 @@ function QM(e, t, r, n) { }); } function JM(e, t, r, n) { - zJ(r) || r.dispatchAction({ + jJ(r) || r.dispatchAction({ type: "downplay", seriesName: e, name: t, excludeSeriesId: n }); } -function EGe(e) { +function FGe(e) { var t = e.findComponents({ mainType: "legend" }); @@ -90389,7 +90430,7 @@ function EGe(e) { return !0; }); } -function pg(e, t, r) { +function vg(e, t, r) { var n = {}, i = e === "toggleSelected", o; return r.eachComponent("legend", function(a) { i && o != null ? a[o ? "select" : "unSelect"](t.name) : e === "allSelect" || e === "inverseSelect" ? a[e]() : (a[e](t.name), o = a.isSelected(t.name)); @@ -90409,15 +90450,15 @@ function pg(e, t, r) { selected: n }; } -function RGe(e) { - e.registerAction("legendToggleSelect", "legendselectchanged", Vt(pg, "toggleSelected")), e.registerAction("legendAllSelect", "legendselectall", Vt(pg, "allSelect")), e.registerAction("legendInverseSelect", "legendinverseselect", Vt(pg, "inverseSelect")), e.registerAction("legendSelect", "legendselected", Vt(pg, "select")), e.registerAction("legendUnSelect", "legendunselected", Vt(pg, "unSelect")); +function NGe(e) { + e.registerAction("legendToggleSelect", "legendselectchanged", Vt(vg, "toggleSelected")), e.registerAction("legendAllSelect", "legendselectall", Vt(vg, "allSelect")), e.registerAction("legendInverseSelect", "legendinverseselect", Vt(vg, "inverseSelect")), e.registerAction("legendSelect", "legendselected", Vt(vg, "select")), e.registerAction("legendUnSelect", "legendunselected", Vt(vg, "unSelect")); } -function GJ(e) { - e.registerComponentModel(XM), e.registerComponentView(HJ), e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER, EGe), e.registerSubTypeDefaulter("legend", function() { +function UJ(e) { + e.registerComponentModel(XM), e.registerComponentView(WJ), e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER, FGe), e.registerSubTypeDefaulter("legend", function() { return "plain"; - }), RGe(e); + }), NGe(e); } -var PGe = ( +var kGe = ( /** @class */ function(e) { Se(t, e); @@ -90428,10 +90469,10 @@ var PGe = ( return t.prototype.setScrollDataIndex = function(r) { this.option.scrollDataIndex = r; }, t.prototype.init = function(r, n, i) { - var o = yp(r); - e.prototype.init.call(this, r, n, i), B3(this, r, o); + var o = Sp(r); + e.prototype.init.call(this, r, n, i), H5(this, r, o); }, t.prototype.mergeOption = function(r, n) { - e.prototype.mergeOption.call(this, r, n), B3(this, this.option, r); + e.prototype.mergeOption.call(this, r, n), H5(this, this.option, r); }, t.type = "legend.scroll", t.defaultOption = ru(XM.defaultOption, { scrollDataIndex: 0, pageButtonItemGap: 5, @@ -90452,14 +90493,14 @@ var PGe = ( }), t; }(XM) ); -function B3(e, t, r) { +function H5(e, t, r) { var n = e.getOrient(), i = [1, 1]; i[n.index] = 0, Uc(t, r, { type: "box", ignoreSize: !!i }); } -var V3 = Ot, UR = ["width", "height"], KR = ["x", "y"], TGe = ( +var z5 = Ot, UR = ["width", "height"], KR = ["x", "y"], $Ge = ( /** @class */ function(e) { Se(t, e); @@ -90468,13 +90509,13 @@ var V3 = Ot, UR = ["width", "height"], KR = ["x", "y"], TGe = ( return r.type = t.type, r.newlineDisabled = !0, r._currentIndex = 0, r; } return t.prototype.init = function() { - e.prototype.init.call(this), this.group.add(this._containerGroup = new V3()), this._containerGroup.add(this.getContentGroup()), this.group.add(this._controllerGroup = new V3()); + e.prototype.init.call(this), this.group.add(this._containerGroup = new z5()), this._containerGroup.add(this.getContentGroup()), this.group.add(this._controllerGroup = new z5()); }, t.prototype.resetInner = function() { e.prototype.resetInner.call(this), this._controllerGroup.removeAll(), this._containerGroup.removeClipPath(), this._containerGroup.__rectSize = null; }, t.prototype.renderInner = function(r, n, i, o, a, s, l) { var c = this; e.prototype.renderInner.call(this, r, n, i, o, a, s, l); - var u = this._controllerGroup, d = n.get("pageIconSize", !0), h = Ie(d) ? d : [d, d]; + var u = this._controllerGroup, d = n.get("pageIconSize", !0), h = Ae(d) ? d : [d, d]; p("pagePrev", 0); var f = n.getModel("pageTextStyle"); u.add(new vr({ @@ -90490,7 +90531,7 @@ var V3 = Ot, UR = ["width", "height"], KR = ["x", "y"], TGe = ( silent: !0 })), p("pageNext", 1); function p(g, v) { - var m = g + "DataIndex", y = pp(n.get("pageIcons", !0)[n.getOrient().name][v], { + var m = g + "DataIndex", y = vp(n.get("pageIcons", !0)[n.getOrient().name][v], { // Buttons will be created in each render, so we do not need // to worry about avoiding using legendModel kept in scope. onclick: at(c._pageGo, c, m, n, o) @@ -90629,9 +90670,9 @@ var V3 = Ot, UR = ["width", "height"], KR = ["x", "y"], TGe = ( o == null && l != null && (o = s), l === r && (n = s); }), n ?? o; }, t.type = "legend.scroll", t; - }(HJ) + }(WJ) ); -function _Ge(e) { +function BGe(e) { e.registerAction("legendScroll", "legendscroll", function(t, r) { var n = t.scrollDataIndex; n != null && r.eachComponent({ @@ -90643,13 +90684,13 @@ function _Ge(e) { }); }); } -function MGe(e) { - er(GJ), e.registerComponentModel(PGe), e.registerComponentView(TGe), _Ge(e); +function VGe(e) { + er(UJ), e.registerComponentModel(kGe), e.registerComponentView($Ge), BGe(e); } -function DGe(e) { - er(GJ), er(MGe); +function HGe(e) { + er(UJ), er(VGe); } -var IGe = ( +var zGe = ( /** @class */ function(e) { Se(t, e); @@ -90657,7 +90698,7 @@ var IGe = ( var r = e !== null && e.apply(this, arguments) || this; return r.type = t.type, r; } - return t.type = "dataZoom.inside", t.defaultOption = ru(dm.defaultOption, { + return t.type = "dataZoom.inside", t.defaultOption = ru(fm.defaultOption, { disabled: !1, zoomLock: !1, zoomOnMouseWheel: !0, @@ -90665,38 +90706,38 @@ var IGe = ( moveOnMouseWheel: !1, preventDefaultMouseMove: !0 }), t; - }(dm) + }(fm) ), NO = yr(); -function AGe(e, t, r) { +function GGe(e, t, r) { NO(e).coordSysRecordMap.each(function(n) { var i = n.dataZoomInfoMap.get(t.uid); i && (i.getRange = r); }); } -function OGe(e, t) { +function WGe(e, t) { for (var r = NO(e).coordSysRecordMap, n = r.keys(), i = 0; i < n.length; i++) { var o = n[i], a = r.get(o), s = a.dataZoomInfoMap; if (s) { var l = t.uid, c = s.get(l); - c && (s.removeKey(l), s.keys().length || WJ(r, a)); + c && (s.removeKey(l), s.keys().length || KJ(r, a)); } } } -function WJ(e, t) { +function KJ(e, t) { if (t) { e.removeKey(t.model.uid); var r = t.controller; r && r.dispose(); } } -function LGe(e, t) { +function jGe(e, t) { var r = { model: t, - containsPoint: Vt(NGe, t), - dispatchAction: Vt(FGe, e), + containsPoint: Vt(KGe, t), + dispatchAction: Vt(UGe, e), dataZoomInfoMap: null, controller: null - }, n = r.controller = new uy(e.getZr()); + }, n = r.controller = new fy(e.getZr()); return z(["pan", "zoom", "scrollMove"], function(i) { n.on(i, function(o) { var a = []; @@ -90713,7 +90754,7 @@ function LGe(e, t) { }); }), r; } -function FGe(e, t) { +function UGe(e, t) { e.isDisposed() || e.dispatchAction({ type: "dataZoom", animation: { @@ -90723,10 +90764,10 @@ function FGe(e, t) { batch: t }); } -function NGe(e, t, r, n) { +function KGe(e, t, r, n) { return e.coordinateSystem.containPoint([r, n]); } -function kGe(e) { +function YGe(e) { var t, r = "type_", n = { type_true: 2, type_move: 1, @@ -90749,7 +90790,7 @@ function kGe(e) { } }; } -function $Ge(e) { +function qGe(e) { e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER, function(t, r) { var n = NO(r), i = n.coordSysRecordMap || (n.coordSysRecordMap = ft()); i.each(function(o) { @@ -90758,9 +90799,9 @@ function $Ge(e) { mainType: "dataZoom", subType: "inside" }, function(o) { - var a = PJ(o); + var a = MJ(o); z(a.infoList, function(s) { - var l = s.model.uid, c = i.get(l) || i.set(l, LGe(r, s.model)), u = c.dataZoomInfoMap || (c.dataZoomInfoMap = ft()); + var l = s.model.uid, c = i.get(l) || i.set(l, jGe(r, s.model)), u = c.dataZoomInfoMap || (c.dataZoomInfoMap = ft()); u.set(o.uid, { dzReferCoordSysInfo: s, model: o, @@ -90774,15 +90815,15 @@ function $Ge(e) { c != null && (s = l.get(c)); } if (!s) { - WJ(i, o); + KJ(i, o); return; } - var u = kGe(l); - a.enable(u.controlType, u.opt), a.setPointerChecker(o.containsPoint), bp(o, "dispatchAction", s.model.get("throttle", !0), "fixRate"); + var u = YGe(l); + a.enable(u.controlType, u.opt), a.setPointerChecker(o.containsPoint), xp(o, "dispatchAction", s.model.get("throttle", !0), "fixRate"); }); }); } -var BGe = ( +var XGe = ( /** @class */ function(e) { Se(t, e); @@ -90795,7 +90836,7 @@ var BGe = ( this._clear(); return; } - this.range = r.getPercentRange(), AGe(i, r, { + this.range = r.getPercentRange(), GGe(i, r, { pan: at(YR.pan, this), zoom: at(YR.zoom, this), scrollMove: at(YR.scrollMove, this) @@ -90803,7 +90844,7 @@ var BGe = ( }, t.prototype.dispose = function() { this._clear(), e.prototype.dispose.apply(this, arguments); }, t.prototype._clear = function() { - OGe(this.api, this.dataZoomModel), this.range = null; + WGe(this.api, this.dataZoomModel), this.range = null; }, t.type = "dataZoom.inside", t; }(TO) ), YR = { @@ -90817,16 +90858,16 @@ var BGe = ( return o; } }, - pan: H3(function(e, t, r, n, i, o) { + pan: G5(function(e, t, r, n, i, o) { var a = qR[n]([o.oldX, o.oldY], [o.newX, o.newY], t, i, r); return a.signal * (e[1] - e[0]) * a.pixel / a.pixelLength; }), - scrollMove: H3(function(e, t, r, n, i, o) { + scrollMove: G5(function(e, t, r, n, i, o) { var a = qR[n]([0, 0], [o.scrollDelta, o.scrollDelta], t, i, r); return a.signal * (e[1] - e[0]) * o.scrollDelta; }) }; -function H3(e) { +function G5(e) { return function(t, r, n, i) { var o = this.range, a = o.slice(), s = t.axisModels[0]; if (s) { @@ -90850,10 +90891,10 @@ var qR = { return e = e || [0, 0], o.orient === "horizontal" ? (s.pixel = t[0] - e[0], s.pixelLength = a.width, s.pixelStart = a.x, s.signal = o.inverse ? 1 : -1) : (s.pixel = t[1] - e[1], s.pixelLength = a.height, s.pixelStart = a.y, s.signal = o.inverse ? -1 : 1), s; } }; -function jJ(e) { - _O(e), e.registerComponentModel(IGe), e.registerComponentView(BGe), $Ge(e); +function YJ(e) { + _O(e), e.registerComponentModel(zGe), e.registerComponentView(XGe), qGe(e); } -var VGe = ( +var ZGe = ( /** @class */ function(e) { Se(t, e); @@ -90861,7 +90902,7 @@ var VGe = ( var r = e !== null && e.apply(this, arguments) || this; return r.type = t.type, r; } - return t.type = "dataZoom.slider", t.layoutMode = "box", t.defaultOption = ru(dm.defaultOption, { + return t.type = "dataZoom.slider", t.layoutMode = "box", t.defaultOption = ru(fm.defaultOption, { show: !0, // deault value can only be drived in view stage. right: "ph", @@ -90929,12 +90970,12 @@ var VGe = ( } } }), t; - }(dm) -), gg = mr, z3 = 7, HGe = 1, XR = 30, zGe = 7, vg = "horizontal", G3 = "vertical", GGe = 5, WGe = ["line", "bar", "candlestick", "scatter"], jGe = { + }(fm) +), mg = mr, W5 = 7, QGe = 1, XR = 30, JGe = 7, yg = "horizontal", j5 = "vertical", eWe = 5, tWe = ["line", "bar", "candlestick", "scatter"], rWe = { easing: "cubicOut", duration: 100, delay: 0 -}, UGe = ( +}, nWe = ( /** @class */ function(e) { Se(t, e); @@ -90945,7 +90986,7 @@ var VGe = ( return t.prototype.init = function(r, n) { this.api = n, this._onBrush = at(this._onBrush, this), this._onBrushEnd = at(this._onBrushEnd, this); }, t.prototype.render = function(r, n, i, o) { - if (e.prototype.render.apply(this, arguments), bp(this, "_dispatchZoomAction", r.get("throttle"), "fixRate"), this._orient = r.getOrient(), r.get("show") === !1) { + if (e.prototype.render.apply(this, arguments), xp(this, "_dispatchZoomAction", r.get("throttle"), "fixRate"), this._orient = r.getOrient(), r.get("show") === !1) { this.group.removeAll(); return; } @@ -90957,7 +90998,7 @@ var VGe = ( }, t.prototype.dispose = function() { this._clear(), e.prototype.dispose.apply(this, arguments); }, t.prototype._clear = function() { - Qv(this, "_dispatchZoomAction"); + em(this, "_dispatchZoomAction"); var r = this.api.getZr(); r.off("mousemove", this._onBrush), r.off("mouseup", this._onBrushEnd); }, t.prototype._buildView = function() { @@ -90966,22 +91007,22 @@ var VGe = ( var n = this._displayables.sliderGroup = new Ot(); this._renderBackground(), this._renderHandle(), this._renderDataShadow(), r.add(n), this._positionGroup(); }, t.prototype._resetLocation = function() { - var r = this.dataZoomModel, n = this.api, i = r.get("brushSelect"), o = i ? zGe : 0, a = this._findCoordRect(), s = { + var r = this.dataZoomModel, n = this.api, i = r.get("brushSelect"), o = i ? JGe : 0, a = this._findCoordRect(), s = { width: n.getWidth(), height: n.getHeight() - }, l = this._orient === vg ? { + }, l = this._orient === yg ? { // Why using 'right', because right should be used in vertical, // and it is better to be consistent for dealing with position param merge. right: s.width - a.x - a.width, - top: s.height - XR - z3 - o, + top: s.height - XR - W5 - o, width: a.width, height: XR } : { - right: z3, + right: W5, top: a.y, width: XR, height: a.height - }, c = yp(r.option); + }, c = Sp(r.option); z(["right", "top", "width", "height"], function(d) { c[d] === "ph" && (c[d] = l[d]); }); @@ -90989,16 +91030,16 @@ var VGe = ( this._location = { x: u.x, y: u.y - }, this._size = [u.width, u.height], this._orient === G3 && this._size.reverse(); + }, this._size = [u.width, u.height], this._orient === j5 && this._size.reverse(); }, t.prototype._positionGroup = function() { var r = this.group, n = this._location, i = this._orient, o = this.dataZoomModel.getFirstTargetAxisModel(), a = o && o.get("inverse"), s = this._displayables.sliderGroup, l = (this._dataShadowInfo || {}).otherAxisInverse; - s.attr(i === vg && !a ? { + s.attr(i === yg && !a ? { scaleY: l ? 1 : -1, scaleX: 1 - } : i === vg && a ? { + } : i === yg && a ? { scaleY: l ? 1 : -1, scaleX: -1 - } : i === G3 && !a ? { + } : i === j5 && !a ? { scaleY: l ? -1 : 1, scaleX: 1, rotation: Math.PI / 2 @@ -91013,7 +91054,7 @@ var VGe = ( return [0, this._size[0]]; }, t.prototype._renderBackground = function() { var r = this.dataZoomModel, n = this._size, i = this._displayables.sliderGroup, o = r.get("brushSelect"); - i.add(new gg({ + i.add(new mg({ silent: !0, shape: { x: 0, @@ -91026,7 +91067,7 @@ var VGe = ( }, z2: -40 })); - var a = new gg({ + var a = new mg({ shape: { x: 0, y: 0, @@ -91094,8 +91135,8 @@ var VGe = ( return r.eachTargetAxis(function(a, s) { var l = r.getAxisProxy(a, s).getTargetSeriesModels(); z(l, function(c) { - if (!i && !(n !== !0 && Yt(WGe, c.get("type")) < 0)) { - var u = o.getComponent(Rc(a), s).axis, d = KGe(a), h, f = c.coordinateSystem; + if (!i && !(n !== !0 && qt(tWe, c.get("type")) < 0)) { + var u = o.getComponent(Rc(a), s).axis, d = iWe(a), h, f = c.coordinateSystem; d != null && f.getOtherAxis && (h = f.getOtherAxis(u).inverse), d = c.getData().mapDimension(d), i = { thisAxis: u, series: c, @@ -91108,7 +91149,7 @@ var VGe = ( }, this), i; } }, t.prototype._renderHandle = function() { - var r = this.group, n = this._displayables, i = n.handles = [null, null], o = n.handleLabels = [null, null], a = this._displayables.sliderGroup, s = this._size, l = this.dataZoomModel, c = this.api, u = l.get("borderRadius") || 0, d = l.get("brushSelect"), h = n.filler = new gg({ + var r = this.group, n = this._displayables, i = n.handles = [null, null], o = n.handleLabels = [null, null], a = this._displayables.sliderGroup, s = this._size, l = this.dataZoomModel, c = this.api, u = l.get("borderRadius") || 0, d = l.get("brushSelect"), h = n.filler = new mg({ silent: d, style: { fill: l.get("fillerColor") @@ -91117,7 +91158,7 @@ var VGe = ( position: "inside" } }); - a.add(h), a.add(new gg({ + a.add(h), a.add(new mg({ silent: !0, subPixelOptimize: !0, shape: { @@ -91130,15 +91171,15 @@ var VGe = ( style: { // deprecated option stroke: l.get("dataBackgroundColor") || l.get("borderColor"), - lineWidth: HGe, + lineWidth: QGe, fill: "rgba(0,0,0,0)" } })), z([0, 1], function(C) { var b = l.get("handleIcon"); - !VS[b] && b.indexOf("path://") < 0 && b.indexOf("image://") < 0 && (b = "path://" + b, process.env.NODE_ENV !== "production" && Pa("handleIcon now needs 'path://' prefix when using a path string")); + !zS[b] && b.indexOf("path://") < 0 && b.indexOf("image://") < 0 && (b = "path://" + b, process.env.NODE_ENV !== "production" && Pa("handleIcon now needs 'path://' prefix when using a path string")); var w = Bn(b, -1, 0, 2, 2, null, !0); w.attr({ - cursor: W3(this._orient), + cursor: U5(this._orient), draggable: !0, drift: at(this._onDragMove, this, C), ondragend: at(this._onDragEnd, this), @@ -91193,7 +91234,7 @@ var VGe = ( } f.attr({ draggable: !0, - cursor: W3(this._orient), + cursor: U5(this._orient), drift: at(this._onDragMove, this, "all"), ondragstart: at(this._showDataInfo, this, !0), ondragend: at(this._onDragEnd, this), @@ -91256,12 +91297,12 @@ var VGe = ( var h = Vo(this._handleEnds.slice()); f.call(this, 0), f.call(this, 1); function f(p) { - var g = Dc(i.handles[p].parent, this.group), v = zw(p === 0 ? "right" : "left", g), m = this._handleWidth / 2 + GGe, y = es([h[p] + (p === 0 ? -m : m), this._size[1] / 2], g); + var g = Dc(i.handles[p].parent, this.group), v = zw(p === 0 ? "right" : "left", g), m = this._handleWidth / 2 + eWe, y = es([h[p] + (p === 0 ? -m : m), this._size[1] / 2], g); o[p].setStyle({ x: y[0], y: y[1], - verticalAlign: a === vg ? "middle" : v, - align: a === vg ? v : "center", + verticalAlign: a === yg ? "middle" : v, + align: a === yg ? v : "center", text: s[p] }); } @@ -91271,13 +91312,13 @@ var VGe = ( var s = r == null || isNaN(r) ? "" : n.type === "category" || n.type === "time" ? n.scale.getLabel({ value: Math.round(r) }) : r.toFixed(Math.min(a, 20)); - return vt(o) ? o(r, s) : Je(o) ? o.replace("{value}", s) : s; + return mt(o) ? o(r, s) : Je(o) ? o.replace("{value}", s) : s; }, t.prototype._showDataInfo = function(r) { r = this._dragging || r; var n = this._displayables, i = n.handleLabels; i[0].attr("invisible", !r), i[1].attr("invisible", !r), n.moveHandle && this.api[r ? "enterEmphasis" : "leaveEmphasis"](n.moveHandle, 1); }, t.prototype._onDragMove = function(r, n, i, o) { - this._dragging = !0, Bl(o.event); + this._dragging = !0, Vl(o.event); var a = this._displayables.sliderGroup.getLocalTransform(), s = es([n, i], a, !0), l = this._updateInterval(r, s[0]), c = this.dataZoomModel.get("realtime"); this._updateView(!c), l && c && this._dispatchZoomAction(!0); }, t.prototype._onDragEnd = function() { @@ -91292,7 +91333,7 @@ var VGe = ( } }, t.prototype._onBrushStart = function(r) { var n = r.offsetX, i = r.offsetY; - this._brushStart = new Ut(n, i), this._brushing = !0, this._brushStartTime = +/* @__PURE__ */ new Date(); + this._brushStart = new Kt(n, i), this._brushing = !0, this._brushStartTime = +/* @__PURE__ */ new Date(); }, t.prototype._onBrushEnd = function(r) { if (this._brushing) { var n = this._displayables.brushRect; @@ -91306,10 +91347,10 @@ var VGe = ( } } }, t.prototype._onBrush = function(r) { - this._brushing && (Bl(r.event), this._updateBrushRect(r.offsetX, r.offsetY)); + this._brushing && (Vl(r.event), this._updateBrushRect(r.offsetX, r.offsetY)); }, t.prototype._updateBrushRect = function(r, n) { var i = this._displayables, o = this.dataZoomModel, a = i.brushRect; - a || (a = i.brushRect = new gg({ + a || (a = i.brushRect = new mg({ silent: !0, style: o.getModel("brushStyle").getItemStyle() }), i.sliderGroup.add(a)), a.attr("ignore", !1); @@ -91326,12 +91367,12 @@ var VGe = ( type: "dataZoom", from: this.uid, dataZoomId: this.dataZoomModel.id, - animation: r ? jGe : null, + animation: r ? rWe : null, start: n[0], end: n[1] }); }, t.prototype._findCoordRect = function() { - var r, n = PJ(this.dataZoomModel).infoList; + var r, n = MJ(this.dataZoomModel).infoList; if (!r && n.length) { var i = n[0].model.coordinateSystem; r = i.getRect && i.getRect(); @@ -91349,7 +91390,7 @@ var VGe = ( }, t.type = "dataZoom.slider", t; }(TO) ); -function KGe(e) { +function iWe(e) { var t = { x: "y", y: "x", @@ -91358,24 +91399,24 @@ function KGe(e) { }; return t[e]; } -function W3(e) { +function U5(e) { return e === "vertical" ? "ns-resize" : "ew-resize"; } -function UJ(e) { - e.registerComponentModel(VGe), e.registerComponentView(UGe), _O(e); +function qJ(e) { + e.registerComponentModel(ZGe), e.registerComponentView(nWe), _O(e); } -function YGe(e) { - er(jJ), er(UJ); +function oWe(e) { + er(YJ), er(qJ); } -var KJ = { +var XJ = { /** * @public */ get: function(e, t, r) { - var n = _t((qGe[e] || {})[t]); - return r && Ie(n) ? n[n.length - 1] : n; + var n = _t((aWe[e] || {})[t]); + return r && Ae(n) ? n[n.length - 1] : n; } -}, qGe = { +}, aWe = { color: { active: ["#006edd", "#e0ffff"], inactive: ["rgba(0,0,0,0)"] @@ -91408,7 +91449,7 @@ var KJ = { active: [10, 50], inactive: [0, 0] } -}, j3 = oi.mapVisual, XGe = oi.eachVisual, ZGe = Ie, U3 = z, QGe = Vo, JGe = Lr, gb = ( +}, K5 = oi.mapVisual, sWe = oi.eachVisual, lWe = Ae, Y5 = z, cWe = Vo, uWe = Lr, mb = ( /** @class */ function(e) { Se(t, e); @@ -91423,7 +91464,7 @@ var KJ = { this.mergeDefaultAndTheme(r, i); }, t.prototype.optionUpdated = function(r, n) { var i = this.option; - !n && NJ(i, r, this.replacableOptionKeys), this.textStyleModel = this.getModel("textStyle"), this.resetItemSize(), this.completeVisualOption(); + !n && BJ(i, r, this.replacableOptionKeys), this.textStyleModel = this.getModel("textStyle"), this.resetItemSize(), this.completeVisualOption(); }, t.prototype.resetVisual = function(r) { var n = this.stateList; r = at(r, this), this.controllerVisuals = KM(this.option.controller, n, r), this.targetVisuals = KM(this.option.target, n, r); @@ -91446,11 +91487,11 @@ var KJ = { }), n; }, t.prototype.formatValueText = function(r, n, i) { var o = this.option, a = o.precision, s = this.dataBound, l = o.formatter, c; - i = i || ["<", ">"], Ie(r) && (r = r.slice(), c = !0); + i = i || ["<", ">"], Ae(r) && (r = r.slice(), c = !0); var u = n ? r : c ? [d(r[0]), d(r[1])] : d(r); if (Je(l)) return l.replace("{value}", c ? u[0] : u).replace("{value2}", c ? u[1] : u); - if (vt(l)) + if (mt(l)) return c ? l(r[0], r[1]) : l(r); if (c) return r[0] === s[0] ? i[0] + " " + u[1] : r[1] === s[1] ? i[1] + " " + u[0] : u[0] + " - " + u[1]; @@ -91459,7 +91500,7 @@ var KJ = { return h === s[0] ? "min" : h === s[1] ? "max" : (+h).toFixed(Math.min(a, 20)); } }, t.prototype.resetExtent = function() { - var r = this.option, n = QGe([r.min, r.max]); + var r = this.option, n = cWe([r.min, r.max]); this._dataExtent = n; }, t.prototype.getDataDimensionIndex = function(r) { var n = this.option.dimension; @@ -91477,11 +91518,11 @@ var KJ = { inRange: n.inRange, outOfRange: n.outOfRange }, o = n.target || (n.target = {}), a = n.controller || (n.controller = {}); - Wt(o, i), Wt(a, i); + jt(o, i), jt(a, i); var s = this.isCategory(); l.call(this, o), l.call(this, a), c.call(this, o, "inRange", "outOfRange"), u.call(this, a); function l(d) { - ZGe(n.color) && !d.inRange && (d.inRange = { + lWe(n.color) && !d.inRange && (d.inRange = { color: n.color.slice().reverse() }), d.inRange = d.inRange || { color: r.get("gradientColor") @@ -91489,29 +91530,29 @@ var KJ = { } function c(d, h, f) { var p = d[h], g = d[f]; - p && !g && (g = d[f] = {}, U3(p, function(v, m) { + p && !g && (g = d[f] = {}, Y5(p, function(v, m) { if (oi.isValidType(m)) { - var y = KJ.get(m, "inactive", s); + var y = XJ.get(m, "inactive", s); y != null && (g[m] = y, m === "color" && !g.hasOwnProperty("opacity") && !g.hasOwnProperty("colorAlpha") && (g.opacity = [0, 0])); } })); } function u(d) { var h = (d.inRange || {}).symbol || (d.outOfRange || {}).symbol, f = (d.inRange || {}).symbolSize || (d.outOfRange || {}).symbolSize, p = this.get("inactiveColor"), g = this.getItemSymbol(), v = g || "roundRect"; - U3(this.stateList, function(m) { + Y5(this.stateList, function(m) { var y = this.itemSize, C = d[m]; C || (C = d[m] = { color: s ? p : [p] - }), C.symbol == null && (C.symbol = h && _t(h) || (s ? v : [v])), C.symbolSize == null && (C.symbolSize = f && _t(f) || (s ? y[0] : [y[0], y[0]])), C.symbol = j3(C.symbol, function(x) { + }), C.symbol == null && (C.symbol = h && _t(h) || (s ? v : [v])), C.symbolSize == null && (C.symbolSize = f && _t(f) || (s ? y[0] : [y[0], y[0]])), C.symbol = K5(C.symbol, function(x) { return x === "none" ? v : x; }); var b = C.symbolSize; if (b != null) { var w = -1 / 0; - XGe(b, function(x) { + sWe(b, function(x) { x > w && (w = x); - }), C.symbolSize = j3(b, function(x) { - return JGe(x, [0, w], [0, y[0]], !0); + }), C.symbolSize = K5(b, function(x) { + return uWe(x, [0, w], [0, y[0]], !0); }); } }, this); @@ -91557,7 +91598,7 @@ var KJ = { } }, t; }(Qt) -), K3 = [20, 140], eWe = ( +), q5 = [20, 140], dWe = ( /** @class */ function(e) { Se(t, e); @@ -91572,10 +91613,10 @@ var KJ = { }, t.prototype.resetItemSize = function() { e.prototype.resetItemSize.apply(this, arguments); var r = this.itemSize; - (r[0] == null || isNaN(r[0])) && (r[0] = K3[0]), (r[1] == null || isNaN(r[1])) && (r[1] = K3[1]); + (r[0] == null || isNaN(r[0])) && (r[0] = q5[0]), (r[1] == null || isNaN(r[1])) && (r[1] = q5[1]); }, t.prototype._resetRange = function() { var r = this.getExtent(), n = this.option.range; - !n || n.auto ? (r.auto = 1, this.option.range = r) : Ie(n) && (n[0] > n[1] && n.reverse(), n[0] = Math.max(n[0], r[0]), n[1] = Math.min(n[1], r[1])); + !n || n.auto ? (r.auto = 1, this.option.range = r) : Ae(n) && (n[0] > n[1] && n.reverse(), n[0] = Math.max(n[0], r[0]), n[1] = Math.min(n[1], r[1])); }, t.prototype.completeVisualOption = function() { e.prototype.completeVisualOption.apply(this, arguments), z(this.stateList, function(r) { var n = this.option.controller[r].symbolSize; @@ -91601,7 +91642,7 @@ var KJ = { }); }, this), n; }, t.prototype.getVisualMeta = function(r) { - var n = Y3(this, "outOfRange", this.getExtent()), i = Y3(this, "inRange", this.option.range.slice()), o = []; + var n = X5(this, "outOfRange", this.getExtent()), i = X5(this, "inRange", this.option.range.slice()), o = []; function a(f, p) { o.push({ value: f, @@ -91619,7 +91660,7 @@ var KJ = { stops: o, outerColors: [h ? o[0].color : "transparent", h ? o[h - 1].color : "transparent"] }; - }, t.type = "visualMap.continuous", t.defaultOption = ru(gb.defaultOption, { + }, t.type = "visualMap.continuous", t.defaultOption = ru(mb.defaultOption, { align: "auto", calculable: !1, hoverLink: !0, @@ -91649,16 +91690,16 @@ var KJ = { // } // } }), t; - }(gb) + }(mb) ); -function Y3(e, t, r) { +function X5(e, t, r) { if (r[0] === r[1]) return r.slice(); for (var n = 200, i = (r[1] - r[0]) / n, o = r[0], a = [], s = 0; s <= n && o < r[1]; s++) a.push(o), o += i; return a.push(r[1]), a; } -var YJ = ( +var ZJ = ( /** @class */ function(e) { Se(t, e); @@ -91723,25 +91764,25 @@ var YJ = ( }, t.prototype.doRender = function(r, n, i, o) { }, t.type = "visualMap", t; }(sn) -), q3 = [["left", "right", "width"], ["top", "bottom", "height"]]; -function qJ(e, t, r) { +), Z5 = [["left", "right", "width"], ["top", "bottom", "height"]]; +function QJ(e, t, r) { var n = e.option, i = n.align; if (i != null && i !== "auto") return i; for (var o = { width: t.getWidth(), height: t.getHeight() - }, a = n.orient === "horizontal" ? 1 : 0, s = q3[a], l = [0, null, 10], c = {}, u = 0; u < 3; u++) - c[q3[1 - a][u]] = l[u], c[s[u]] = u === 2 ? r[0] : n[s[u]]; + }, a = n.orient === "horizontal" ? 1 : 0, s = Z5[a], l = [0, null, 10], c = {}, u = 0; u < 3; u++) + c[Z5[1 - a][u]] = l[u], c[s[u]] = u === 2 ? r[0] : n[s[u]]; var d = [["x", "width", 3], ["y", "height", 0]][a], h = jn(c, o, n.padding); return s[(h.margin[d[2]] || 0) + h[d[0]] + h[d[1]] * 0.5 < o[d[1]] * 0.5 ? 0 : 1]; } -function NC(e, t) { +function BC(e, t) { return z(e || [], function(r) { r.dataIndex != null && (r.dataIndexInside = r.dataIndex, r.dataIndex = null), r.highlightKey = "visualMap" + (t ? t.componentIndex : ""); }), e; } -var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( +var Es = Lr, hWe = z, Q5 = Math.min, ZR = Math.max, fWe = 12, pWe = 6, gWe = ( /** @class */ function(e) { Se(t, e); @@ -91775,8 +91816,8 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( })); } }, t.prototype._renderBar = function(r) { - var n = this.visualMapModel, i = this._shapes, o = n.itemSize, a = this._orient, s = this._useHandle, l = qJ(n, this.api, o), c = i.mainGroup = this._createBarGroup(l), u = new Ot(); - c.add(u), u.add(i.outOfRange = Z3()), u.add(i.inRange = Z3(null, s ? J3(this._orient) : null, at(this._dragHandle, this, "all", !1), at(this._dragHandle, this, "all", !0))), u.setClipPath(new mr({ + var n = this.visualMapModel, i = this._shapes, o = n.itemSize, a = this._orient, s = this._useHandle, l = QJ(n, this.api, o), c = i.mainGroup = this._createBarGroup(l), u = new Ot(); + c.add(u), u.add(i.outOfRange = J5()), u.add(i.inRange = J5(null, s ? tH(this._orient) : null, at(this._dragHandle, this, "all", !1), at(this._dragHandle, this, "all", !0))), u.setClipPath(new mr({ shape: { x: 0, y: 0, @@ -91788,14 +91829,14 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( var d = n.textStyleModel.getTextRect("国"), h = ZR(d.width, d.height); s && (i.handleThumbs = [], i.handleLabels = [], i.handleLabelPoints = [], this._createHandle(n, c, 0, o, h, a), this._createHandle(n, c, 1, o, h, a)), this._createIndicator(n, c, o, h, a), r.add(c); }, t.prototype._createHandle = function(r, n, i, o, a, s) { - var l = at(this._dragHandle, this, i, !1), c = at(this._dragHandle, this, i, !0), u = ss(r.get("handleSize"), o[0]), d = Bn(r.get("handleIcon"), -u / 2, -u / 2, u, u, null, !0), h = J3(this._orient); + var l = at(this._dragHandle, this, i, !1), c = at(this._dragHandle, this, i, !0), u = ss(r.get("handleSize"), o[0]), d = Bn(r.get("handleIcon"), -u / 2, -u / 2, u, u, null, !0), h = tH(this._orient); d.attr({ cursor: h, draggable: !0, drift: l, ondragend: c, onmousemove: function(m) { - Bl(m.event); + Vl(m.event); } }), d.x = o[0] / 2, d.useStyle(r.getModel("handleStyle").getItemStyle()), d.setStyle({ strokeNoScale: !0, @@ -91806,7 +91847,7 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( draggable: !0, drift: l, onmousemove: function(m) { - Bl(m.event); + Vl(m.event); }, ondragend: c, style: rn(f, { @@ -91831,7 +91872,7 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( x: i[0] / 2 }); var c = r.getModel("indicatorStyle").getItemStyle(); - if (l instanceof yi) { + if (l instanceof Ci) { var u = l.style; l.useStyle(Pe({ // TODO other properties like x, y ? @@ -91854,7 +91895,7 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( }) }); this.group.add(h); - var f = [(a === "horizontal" ? o / 2 : nWe) + i[0] / 2, 0], p = this._shapes; + var f = [(a === "horizontal" ? o / 2 : pWe) + i[0] / 2, 0], p = this._shapes; p.indicator = l, p.indicatorLabel = h, p.indicatorLabelPoint = f, this._firstShowIndicator = !0; }, t.prototype._dragHandle = function(r, n, i, o) { if (this._useHandle) { @@ -91867,7 +91908,7 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( from: this.uid, visualMapId: this.visualMapModel.id, selected: this._dataInterval.slice() - }), n ? !this._hovering && this._clearHoverLinkToSeries() : Q3(this.visualMapModel) && this._doHoverLinkToSeries(this._handleEnds[r], !1); + }), n ? !this._hovering && this._clearHoverLinkToSeries() : eH(this.visualMapModel) && this._doHoverLinkToSeries(this._handleEnds[r], !1); } }, t.prototype._resetInterval = function() { var r = this.visualMapModel, n = this._dataInterval = r.getSelected(), i = r.getExtent(), o = [0, r.itemSize[1]]; @@ -91900,7 +91941,7 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( convertOpacityToAlpha: !0 }, s = this._makeColorGradient(r, a), l = [this.getControllerVisual(r[0], "symbolSize", a), this.getControllerVisual(r[1], "symbolSize", a)], c = this._createBarPoints(i, l); return { - barColor: new hp(0, 0, 0, 1, s), + barColor: new pp(0, 0, 0, 1, s), barPoints: c, handlesColor: [s[0].color, s[s.length - 1].color] }; @@ -91943,7 +91984,7 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( }, t.prototype._updateHandle = function(r, n) { if (this._useHandle) { var i = this._shapes, o = this.visualMapModel, a = i.handleThumbs, s = i.handleLabels, l = o.itemSize, c = o.getExtent(); - tWe([0, 1], function(u) { + hWe([0, 1], function(u) { var d = a[u]; d.setStyle("fill", n.handlesColor[u]), d.y = r[u]; var h = Es(r[u], [0, l[1]], c, !0), f = this.getControllerVisual(h, "symbolSize"); @@ -92009,7 +92050,7 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( this._shapes.mainGroup.on("mousemove", function(n) { if (r._hovering = !0, !r._dragging) { var i = r.visualMapModel.itemSize, o = r._applyTransform([n.offsetX, n.offsetY], r._shapes.mainGroup, !0, !0); - o[1] = X3(ZR(0, o[1]), i[1]), r._doHoverLinkToSeries(o[1], 0 <= o[0] && o[0] <= i[0]); + o[1] = Q5(ZR(0, o[1]), i[1]), r._doHoverLinkToSeries(o[1], 0 <= o[0] && o[0] <= i[0]); } }).on("mouseout", function() { r._hovering = !1, !r._dragging && r._clearHoverLinkToSeries(); @@ -92021,13 +92062,13 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( var i = this.visualMapModel, o = i.itemSize; if (i.option.hoverLink) { var a = [0, o[1]], s = i.getExtent(); - r = X3(ZR(a[0], r), a[1]); - var l = oWe(i, s, a), c = [r - l, r + l], u = Es(r, a, s, !0), d = [Es(c[0], a, s, !0), Es(c[1], a, s, !0)]; + r = Q5(ZR(a[0], r), a[1]); + var l = vWe(i, s, a), c = [r - l, r + l], u = Es(r, a, s, !0), d = [Es(c[0], a, s, !0), Es(c[1], a, s, !0)]; c[0] < a[0] && (d[0] = -1 / 0), c[1] > a[1] && (d[1] = 1 / 0), n && (d[0] === -1 / 0 ? this._showIndicator(u, d[1], "< ", l) : d[1] === 1 / 0 ? this._showIndicator(u, d[0], "> ", l) : this._showIndicator(u, u, "≈ ", l)); var h = this._hoverLinkDataIndices, f = []; - (n || Q3(i)) && (f = this._hoverLinkDataIndices = i.findTargetDataIndices(d)); - var p = zDe(h, f); - this._dispatchHighDown("downplay", NC(p[0], i)), this._dispatchHighDown("highlight", NC(p[1], i)); + (n || eH(i)) && (f = this._hoverLinkDataIndices = i.findTargetDataIndices(d)); + var p = J2e(h, f); + this._dispatchHighDown("downplay", BC(p[0], i)), this._dispatchHighDown("highlight", BC(p[1], i)); } }, t.prototype._hoverLinkFromSeriesMouseOver = function(r) { var n; @@ -92052,14 +92093,14 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( }, t.prototype._clearHoverLinkToSeries = function() { this._hideIndicator(); var r = this._hoverLinkDataIndices; - this._dispatchHighDown("downplay", NC(r, this.visualMapModel)), r.length = 0; + this._dispatchHighDown("downplay", BC(r, this.visualMapModel)), r.length = 0; }, t.prototype._clearHoverLinkFromSeries = function() { this._hideIndicator(); var r = this.api.getZr(); r.off("mouseover", this._hoverLinkFromSeriesMouseOver), r.off("mouseout", this._hideIndicator); }, t.prototype._applyTransform = function(r, n, i, o) { var a = Dc(n, o ? null : this.group); - return Ie(r) ? es(r, a, i) : zw(r, a, i); + return Ae(r) ? es(r, a, i) : zw(r, a, i); }, t.prototype._dispatchHighDown = function(r, n) { n && n.length && this.api.dispatchAction({ type: r, @@ -92068,9 +92109,9 @@ var Es = Lr, tWe = z, X3 = Math.min, ZR = Math.max, rWe = 12, nWe = 6, iWe = ( }, t.prototype.dispose = function() { this._clearHoverLinkFromSeries(), this._clearHoverLinkToSeries(); }, t.type = "visualMap.continuous", t; - }(YJ) + }(ZJ) ); -function Z3(e, t, r, n) { +function J5(e, t, r, n) { return new oo({ shape: { points: e @@ -92079,42 +92120,42 @@ function Z3(e, t, r, n) { cursor: t, drift: r, onmousemove: function(i) { - Bl(i.event); + Vl(i.event); }, ondragend: n }); } -function oWe(e, t, r) { - var n = rWe / 2, i = e.get("hoverLinkDataSize"); +function vWe(e, t, r) { + var n = fWe / 2, i = e.get("hoverLinkDataSize"); return i && (n = Es(i, t, r, !0) / 2), n; } -function Q3(e) { +function eH(e) { var t = e.get("hoverLinkOnHandle"); return !!(t ?? e.get("realtime")); } -function J3(e) { +function tH(e) { return e === "vertical" ? "ns-resize" : "ew-resize"; } -var aWe = { +var mWe = { type: "selectDataRange", event: "dataRangeSelected", // FIXME use updateView appears wrong update: "update" -}, sWe = function(e, t) { +}, yWe = function(e, t) { t.eachComponent({ mainType: "visualMap", query: e }, function(r) { r.setSelected(e.selected); }); -}, lWe = [ +}, CWe = [ { createOnAllSeries: !0, reset: function(e, t) { var r = []; return t.eachComponent("visualMap", function(n) { var i = e.pipelineContext; - !n.isTargetSeries(e) || i && i.large || r.push(Dze(n.stateList, n.targetVisuals, at(n.getValueState, n), n.getDataDimensionIndex(e.getData()))); + !n.isTargetSeries(e) || i && i.large || r.push(Hze(n.stateList, n.targetVisuals, at(n.getValueState, n), n.getDataDimensionIndex(e.getData()))); }), r; } }, @@ -92125,7 +92166,7 @@ var aWe = { var r = e.getData(), n = []; t.eachComponent("visualMap", function(i) { if (i.isTargetSeries(e)) { - var o = i.getVisualMeta(at(cWe, null, e, i)) || { + var o = i.getVisualMeta(at(SWe, null, e, i)) || { stops: [], outerColors: [] }, a = i.getDataDimensionIndex(r); @@ -92135,9 +92176,9 @@ var aWe = { } } ]; -function cWe(e, t, r, n) { +function SWe(e, t, r, n) { for (var i = t.targetVisuals[n], o = oi.prepareVisualTypes(i), a = { - color: ry(e.getData(), "color") + color: oy(e.getData(), "color") // default color. }, s = 0, l = o.length; s < l; s++) { var c = o[s], u = i[c === "opacity" ? "__alphaForOpacity" : c]; @@ -92151,15 +92192,15 @@ function cWe(e, t, r, n) { a[f] = p; } } -var e5 = z; -function uWe(e) { +var rH = z; +function bWe(e) { var t = e && e.visualMap; - Ie(t) || (t = t ? [t] : []), e5(t, function(r) { + Ae(t) || (t = t ? [t] : []), rH(t, function(r) { if (r) { kh(r, "splitList") && !kh(r, "pieces") && (r.pieces = r.splitList, delete r.splitList); var n = r.pieces; - n && Ie(n) && e5(n, function(i) { - St(i) && (kh(i, "start") && !kh(i, "min") && (i.min = i.start), kh(i, "end") && !kh(i, "max") && (i.max = i.end)); + n && Ae(n) && rH(n, function(i) { + bt(i) && (kh(i, "start") && !kh(i, "min") && (i.min = i.start), kh(i, "end") && !kh(i, "max") && (i.max = i.end)); }); } }); @@ -92167,18 +92208,18 @@ function uWe(e) { function kh(e, t) { return e && e.hasOwnProperty && e.hasOwnProperty(t); } -var t5 = !1; -function XJ(e) { - t5 || (t5 = !0, e.registerSubTypeDefaulter("visualMap", function(t) { +var nH = !1; +function JJ(e) { + nH || (nH = !0, e.registerSubTypeDefaulter("visualMap", function(t) { return !t.categories && (!(t.pieces ? t.pieces.length > 0 : t.splitNumber > 0) || t.calculable) ? "continuous" : "piecewise"; - }), e.registerAction(aWe, sWe), z(lWe, function(t) { + }), e.registerAction(mWe, yWe), z(CWe, function(t) { e.registerVisual(e.PRIORITY.VISUAL.COMPONENT, t); - }), e.registerPreprocessor(uWe)); + }), e.registerPreprocessor(bWe)); } -function ZJ(e) { - e.registerComponentModel(eWe), e.registerComponentView(iWe), XJ(e); +function eee(e) { + e.registerComponentModel(dWe), e.registerComponentView(gWe), JJ(e); } -var dWe = ( +var wWe = ( /** @class */ function(e) { Se(t, e); @@ -92189,7 +92230,7 @@ var dWe = ( return t.prototype.optionUpdated = function(r, n) { e.prototype.optionUpdated.apply(this, arguments), this.resetExtent(); var i = this._mode = this._determineMode(); - this._pieceList = [], hWe[this._mode].call(this, this._pieceList), this._resetSelected(r, n); + this._pieceList = [], xWe[this._mode].call(this, this._pieceList), this._resetSelected(r, n); var o = this.option.categories; this.resetVisual(function(a, s) { i === "categories" ? (a.mappingMethod = "category", a.categories = _t(o)) : (a.dataExtent = this.getExtent(), a.mappingMethod = "piecewise", a.pieceList = Fe(this._pieceList, function(l) { @@ -92207,7 +92248,7 @@ var dWe = ( z(this.stateList, function(u) { c = c || a(r, u, l) || a(r.target, u, l); }, this), !c && z(this.stateList, function(u) { - (r[u] || (r[u] = {}))[l] = KJ.get(l, u === "inRange" ? "active" : "inactive", o); + (r[u] || (r[u] = {}))[l] = XJ.get(l, u === "inRange" ? "active" : "inactive", o); }); }, this); function a(s, l, c) { @@ -92302,7 +92343,7 @@ var dWe = ( stops: n, outerColors: i }; - }, t.type = "visualMap.piecewise", t.defaultOption = ru(gb.defaultOption, { + }, t.type = "visualMap.piecewise", t.defaultOption = ru(mb.defaultOption, { selected: null, minOpen: !1, maxOpen: !1, @@ -92318,8 +92359,8 @@ var dWe = ( hoverLink: !0 // Enable hover highlight. }), t; - }(gb) -), hWe = { + }(mb) +), xWe = { splitNumber: function(e) { var t = this.option, r = Math.min(t.precision, 20), n = this.getExtent(), i = t.splitNumber; i = Math.max(parseInt(i, 10), 1), t.splitNumber = i; @@ -92350,12 +92391,12 @@ var dWe = ( text: this.formatValueText(r, !0), value: r }); - }, this), r5(t, e); + }, this), iH(t, e); }, pieces: function(e) { var t = this.option; z(t.pieces, function(r, n) { - St(r) || (r = { + bt(r) || (r = { value: r }); var i = { @@ -92374,17 +92415,17 @@ var dWe = ( u[0] && a[1] === 1 / 0 && (s[0] = 0), u[1] && a[0] === -1 / 0 && (s[1] = 0), process.env.NODE_ENV !== "production" && a[0] > a[1] && console.warn("Piece " + n + "is illegal: " + a + " lower bound should not greater then uppper bound."), a[0] === a[1] && s[0] && s[1] && (i.value = a[0]); } i.visual = oi.retrieveVisuals(r), e.push(i); - }, this), r5(t, e), k_(e), z(e, function(r) { + }, this), iH(t, e), k_(e), z(e, function(r) { var n = r.close, i = [["<", "≤"][n[1]], [">", "≥"][n[0]]]; r.text = r.text || this.formatValueText(r.value != null ? r.value : r.interval, !1, i); }, this); } }; -function r5(e, t) { +function iH(e, t) { var r = e.inverse; (e.orient === "vertical" ? !r : r) && t.reverse(); } -var fWe = ( +var EWe = ( /** @class */ function(e) { Se(t, e); @@ -92428,13 +92469,13 @@ var fWe = ( var s = i.visualMapModel; s.option.hoverLink && i.api.dispatchAction({ type: a, - batch: NC(s.findTargetDataIndices(n), s) + batch: BC(s.findTargetDataIndices(n), s) }); }; }, t.prototype._getItemAlign = function() { var r = this.visualMapModel, n = r.option; if (n.orient === "vertical") - return qJ(r, this.api, r.itemSize); + return QJ(r, this.api, r.itemSize); var i = n.align; return (!i || i === "auto") && (i = "left"), i; }, t.prototype._renderEndsText = function(r, n, i, o, a) { @@ -92486,28 +92527,28 @@ var fWe = ( }); } }, t.type = "visualMap.piecewise", t; - }(YJ) + }(ZJ) ); -function QJ(e) { - e.registerComponentModel(dWe), e.registerComponentView(fWe), XJ(e); +function tee(e) { + e.registerComponentModel(wWe), e.registerComponentView(EWe), JJ(e); } -function pWe(e) { - er(ZJ), er(QJ); +function RWe(e) { + er(eee), er(tee); } -var gWe = { +var PWe = { label: { enabled: !0 }, decal: { show: !1 } -}, n5 = yr(), vWe = {}; -function mWe(e, t) { +}, oH = yr(), TWe = {}; +function _We(e, t) { var r = e.getModel("aria"); if (!r.get("enabled")) return; - var n = _t(gWe); - Wt(n.label, e.getLocaleModel().get("aria"), !1), Wt(r.option, n, !1), i(), o(); + var n = _t(PWe); + jt(n.label, e.getLocaleModel().get("aria"), !1), jt(r.option, n, !1), i(), o(); function i() { var c = r.getModel("decal"), u = c.get("show"); if (u) { @@ -92515,21 +92556,21 @@ function mWe(e, t) { e.eachSeries(function(h) { if (!h.isColorBySeries()) { var f = d.get(h.type); - f || (f = {}, d.set(h.type, f)), n5(h).scope = f; + f || (f = {}, d.set(h.type, f)), oH(h).scope = f; } }), e.eachRawSeries(function(h) { if (e.isSeriesFiltered(h)) return; - if (vt(h.enableAriaDecal)) { + if (mt(h.enableAriaDecal)) { h.enableAriaDecal(); return; } var f = h.getData(); if (h.isColorBySeries()) { - var y = eM(h.ecModel, h.name, vWe, e.getSeriesCount()), C = f.getVisual("decal"); + var y = eM(h.ecModel, h.name, TWe, e.getSeriesCount()), C = f.getVisual("decal"); f.setVisual("decal", b(C, y)); } else { - var p = h.getRawData(), g = {}, v = n5(h).scope; + var p = h.getRawData(), g = {}, v = oH(h).scope; f.each(function(w) { var x = f.getRawIndex(w); g[x] = w; @@ -92551,7 +92592,7 @@ function mWe(e, t) { var c = t.getZr().dom; if (c) { var u = e.getLocaleModel().get("aria"), d = r.getModel("label"); - if (d.option = wt(d.option, u), !!d.get("enabled")) { + if (d.option = xt(d.option, u), !!d.get("enabled")) { if (d.get("description")) { c.setAttribute("aria-label", d.get("description")); return; @@ -92619,7 +92660,7 @@ function mWe(e, t) { return u[c] || u.chart; } } -function yWe(e) { +function MWe(e) { if (!(!e || !e.aria)) { var t = e.aria; t.show != null && (t.enabled = t.show), t.label = t.label || {}, z(["description", "general", "series", "data"], function(r) { @@ -92627,10 +92668,10 @@ function yWe(e) { }); } } -function CWe(e) { - e.registerPreprocessor(yWe), e.registerVisual(e.PRIORITY.VISUAL.ARIA, mWe); +function DWe(e) { + e.registerPreprocessor(MWe), e.registerVisual(e.PRIORITY.VISUAL.ARIA, _We); } -var i5 = { +var aH = { value: "eq", // PENDING: not good for literal semantic? "<": "lt", @@ -92649,11 +92690,11 @@ var i5 = { // ge: 'gte', // le: 'lte', // neq: 'ne', -}, SWe = ( +}, IWe = ( /** @class */ function() { function e(t) { - var r = this._condVal = Je(t) ? new RegExp(t) : E2(t) ? t : null; + var r = this._condVal = Je(t) ? new RegExp(t) : EI(t) ? t : null; if (r == null) { var n = ""; process.env.NODE_ENV !== "production" && (n = ro("Illegal regexp", t, "in")), Ir(n); @@ -92664,7 +92705,7 @@ var i5 = { return Je(r) ? this._condVal.test(t) : Cr(r) ? this._condVal.test(t + "") : !1; }, e; }() -), bWe = ( +), AWe = ( /** @class */ function() { function e() { @@ -92673,7 +92714,7 @@ var i5 = { return this.value; }, e; }() -), wWe = ( +), OWe = ( /** @class */ function() { function e() { @@ -92685,7 +92726,7 @@ var i5 = { return !0; }, e; }() -), xWe = ( +), LWe = ( /** @class */ function() { function e() { @@ -92697,7 +92738,7 @@ var i5 = { return !1; }, e; }() -), EWe = ( +), FWe = ( /** @class */ function() { function e() { @@ -92706,7 +92747,7 @@ var i5 = { return !this.child.evaluate(); }, e; }() -), RWe = ( +), NWe = ( /** @class */ function() { function e() { @@ -92721,42 +92762,42 @@ var i5 = { ); function kO(e, t) { if (e === !0 || e === !1) { - var r = new bWe(); + var r = new AWe(); return r.value = e, r; } var n = ""; - return JJ(e) || (process.env.NODE_ENV !== "production" && (n = ro("Illegal config. Expect a plain object but actually", e)), Ir(n)), e.and ? o5("and", e, t) : e.or ? o5("or", e, t) : e.not ? PWe(e, t) : TWe(e, t); + return ree(e) || (process.env.NODE_ENV !== "production" && (n = ro("Illegal config. Expect a plain object but actually", e)), Ir(n)), e.and ? sH("and", e, t) : e.or ? sH("or", e, t) : e.not ? kWe(e, t) : $We(e, t); } -function o5(e, t, r) { +function sH(e, t, r) { var n = t[e], i = ""; - process.env.NODE_ENV !== "production" && (i = ro('"and"/"or" condition should only be `' + e + ": [...]` and must not be empty array.", "Illegal condition:", t)), Ie(n) || Ir(i), n.length || Ir(i); - var o = e === "and" ? new wWe() : new xWe(); + process.env.NODE_ENV !== "production" && (i = ro('"and"/"or" condition should only be `' + e + ": [...]` and must not be empty array.", "Illegal condition:", t)), Ae(n) || Ir(i), n.length || Ir(i); + var o = e === "and" ? new OWe() : new LWe(); return o.children = Fe(n, function(a) { return kO(a, r); }), o.children.length || Ir(i), o; } -function PWe(e, t) { +function kWe(e, t) { var r = e.not, n = ""; - process.env.NODE_ENV !== "production" && (n = ro('"not" condition should only be `not: {}`.', "Illegal condition:", e)), JJ(r) || Ir(n); - var i = new EWe(); + process.env.NODE_ENV !== "production" && (n = ro('"not" condition should only be `not: {}`.', "Illegal condition:", e)), ree(r) || Ir(n); + var i = new FWe(); return i.child = kO(r, t), i.child || Ir(n), i; } -function TWe(e, t) { - for (var r = "", n = t.prepareGetValue(e), i = [], o = ar(e), a = e.parser, s = a ? Iq(a) : null, l = 0; l < o.length; l++) { +function $We(e, t) { + for (var r = "", n = t.prepareGetValue(e), i = [], o = ar(e), a = e.parser, s = a ? Lq(a) : null, l = 0; l < o.length; l++) { var c = o[l]; if (!(c === "parser" || t.valueGetterAttrMap.get(c))) { - var u = lt(i5, c) ? i5[c] : c, d = e[c], h = s ? s(d) : d, f = XAe(u, h) || u === "reg" && new SWe(h); + var u = lt(aH, c) ? aH[c] : c, d = e[c], h = s ? s(d) : d, f = sOe(u, h) || u === "reg" && new IWe(h); f || (process.env.NODE_ENV !== "production" && (r = ro('Illegal relational operation: "' + c + '" in condition:', e)), Ir(r)), i.push(f); } } i.length || (process.env.NODE_ENV !== "production" && (r = ro("Relational condition must have at least one operator.", "Illegal condition:", e)), Ir(r)); - var p = new RWe(); + var p = new NWe(); return p.valueGetterParam = n, p.valueParser = s, p.getValue = t.getValue, p.subCondList = i, p; } -function JJ(e) { - return St(e) && !wi(e); +function ree(e) { + return bt(e) && !xi(e); } -var _We = ( +var BWe = ( /** @class */ function() { function e(t, r) { @@ -92767,14 +92808,14 @@ var _We = ( }, e; }() ); -function MWe(e, t) { - return new _We(e, t); +function VWe(e, t) { + return new BWe(e, t); } -var DWe = { +var HWe = { type: "echarts:filter", // PENDING: enhance to filter by index rather than create new data transform: function(e) { - for (var t = e.upstream, r, n = MWe(e.config, { + for (var t = e.upstream, r, n = VWe(e.config, { valueGetterAttrMap: ft({ dimension: !0 }), @@ -92798,9 +92839,9 @@ var DWe = { data: i }; } -}, eD = ""; -process.env.NODE_ENV !== "production" && (eD = ["Valid config is like:", '{ dimension: "age", order: "asc" }', 'or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ")); -var IWe = { +}, e2 = ""; +process.env.NODE_ENV !== "production" && (e2 = ["Valid config is like:", '{ dimension: "age", order: "asc" }', 'or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ")); +var zWe = { type: "echarts:sort", transform: function(e) { var t = e.upstream, r = e.config, n = "", i = Wr(r); @@ -92808,7 +92849,7 @@ var IWe = { var o = []; z(i, function(u) { var d = u.dimension, h = u.order, f = u.parser, p = u.incomparable; - if (d == null && (process.env.NODE_ENV !== "production" && (n = 'Sort transform config must has "dimension" specified.' + eD), Ir(n)), h !== "asc" && h !== "desc" && (process.env.NODE_ENV !== "production" && (n = 'Sort transform config must has "order" specified.' + eD), Ir(n)), p && p !== "min" && p !== "max") { + if (d == null && (process.env.NODE_ENV !== "production" && (n = 'Sort transform config must has "dimension" specified.' + e2), Ir(n)), h !== "asc" && h !== "desc" && (process.env.NODE_ENV !== "production" && (n = 'Sort transform config must has "order" specified.' + e2), Ir(n)), p && p !== "min" && p !== "max") { var g = ""; process.env.NODE_ENV !== "production" && (g = 'incomparable must be "min" or "max" rather than "' + p + '".'), Ir(g); } @@ -92821,13 +92862,13 @@ var IWe = { `, "Existing dimensions: ", t.cloneAllDimensionInfo(), `. `, "Illegal config:", u, `. `)), Ir(n)); - var y = f ? Iq(f) : null; + var y = f ? Lq(f) : null; f && !y && (process.env.NODE_ENV !== "production" && (n = ro("Invalid parser name " + f + `. `, "Illegal config:", u, `. `)), Ir(n)), o.push({ dimIdx: m.index, parser: y, - comparator: new Oq(h, p) + comparator: new Nq(h, p) }); }); var a = t.sourceFormat; @@ -92848,10 +92889,10 @@ var IWe = { }; } }; -function AWe(e) { - e.registerTransform(DWe), e.registerTransform(IWe); +function GWe(e) { + e.registerTransform(HWe), e.registerTransform(zWe); } -var OWe = ( +var WWe = ( /** @class */ function(e) { Se(t, e); @@ -92860,9 +92901,9 @@ var OWe = ( return r.type = "dataset", r; } return t.prototype.init = function(r, n, i) { - e.prototype.init.call(this, r, n, i), this._sourceManager = new kq(this), oB(this); + e.prototype.init.call(this, r, n, i), this._sourceManager = new Vq(this), sB(this); }, t.prototype.mergeOption = function(r, n) { - e.prototype.mergeOption.call(this, r, n), oB(this); + e.prototype.mergeOption.call(this, r, n), sB(this); }, t.prototype.optionUpdated = function() { this._sourceManager.dirty(); }, t.prototype.getSourceManager = function() { @@ -92871,7 +92912,7 @@ var OWe = ( seriesLayoutBy: Vs }, t; }(Qt) -), LWe = ( +), jWe = ( /** @class */ function(e) { Se(t, e); @@ -92882,14 +92923,14 @@ var OWe = ( return t.type = "dataset", t; }(sn) ); -function FWe(e) { - e.registerComponentModel(OWe), e.registerComponentView(LWe); +function UWe(e) { + e.registerComponentModel(WWe), e.registerComponentView(jWe); } var ms = Ys.CMD; function of(e, t) { return Math.abs(e - t) < 1e-5; } -function tD(e) { +function t2(e) { var t = e.data, r = e.len(), n = [], i, o = 0, a = 0, s = 0, l = 0; function c(A, M) { i && i.length > 2 && n.push(i), i = [A, M]; @@ -92898,8 +92939,8 @@ function tD(e) { of(A, O) && of(M, L) || i.push(A, M, O, L, O, L); } function d(A, M, O, L, N, F) { - var $ = Math.abs(M - A), I = Math.tan($ / 4) * 4 / 3, V = M < A ? -1 : 1, H = Math.cos(A), B = Math.sin(A), W = Math.cos(M), j = Math.sin(M), X = H * N + O, q = B * F + L, J = W * N + O, te = j * F + L, Q = N * I * V, Y = F * I * V; - i.push(X - Q * B, q + Y * H, J + Q * j, te - Y * W, J, te); + var $ = Math.abs(M - A), I = Math.tan($ / 4) * 4 / 3, V = M < A ? -1 : 1, H = Math.cos(A), B = Math.sin(A), W = Math.cos(M), j = Math.sin(M), X = H * N + O, q = B * F + L, J = W * N + O, re = j * F + L, Q = N * I * V, Y = F * I * V; + i.push(X - Q * B, q + Y * H, J + Q * j, re - Y * W, J, re); } for (var h, f, p, g, v = 0; v < r; ) { var m = t[v++], y = v === 1; @@ -92936,7 +92977,7 @@ function tD(e) { } return i && i.length > 2 && n.push(i), n; } -function rD(e, t, r, n, i, o, a, s, l, c) { +function r2(e, t, r, n, i, o, a, s, l, c) { if (of(e, r) && of(t, n) && of(i, a) && of(o, s)) { l.push(a, s); return; @@ -92954,23 +92995,23 @@ function rD(e, t, r, n, i, o, a, s, l, c) { return; } var P = [], T = []; - Gc(e, r, i, a, 0.5, P), Gc(t, n, o, s, 0.5, T), rD(P[0], T[0], P[1], T[1], P[2], T[2], P[3], T[3], l, c), rD(P[4], T[4], P[5], T[5], P[6], T[6], P[7], T[7], l, c); + Gc(e, r, i, a, 0.5, P), Gc(t, n, o, s, 0.5, T), r2(P[0], T[0], P[1], T[1], P[2], T[2], P[3], T[3], l, c), r2(P[4], T[4], P[5], T[5], P[6], T[6], P[7], T[7], l, c); } -function NWe(e, t) { - var r = tD(e), n = []; +function KWe(e, t) { + var r = t2(e), n = []; t = t || 1; for (var i = 0; i < r.length; i++) { var o = r[i], a = [], s = o[0], l = o[1]; a.push(s, l); for (var c = 2; c < o.length; ) { var u = o[c++], d = o[c++], h = o[c++], f = o[c++], p = o[c++], g = o[c++]; - rD(s, l, u, d, h, f, p, g, a, t), s = p, l = g; + r2(s, l, u, d, h, f, p, g, a, t), s = p, l = g; } n.push(a); } return n; } -function eee(e, t, r) { +function nee(e, t, r) { var n = e[t], i = e[1 - t], o = Math.abs(n / i), a = Math.ceil(Math.sqrt(o * r)), s = Math.floor(r / a); s === 0 && (s = 1, a = r); for (var l = [], c = 0; c < a; c++) @@ -92981,35 +93022,35 @@ function eee(e, t, r) { l[c % a] += 1; return l; } -function a5(e, t, r) { - for (var n = e.r0, i = e.r, o = e.startAngle, a = e.endAngle, s = Math.abs(a - o), l = s * i, c = i - n, u = l > Math.abs(c), d = eee([l, c], u ? 0 : 1, t), h = (u ? s : c) / d.length, f = 0; f < d.length; f++) +function lH(e, t, r) { + for (var n = e.r0, i = e.r, o = e.startAngle, a = e.endAngle, s = Math.abs(a - o), l = s * i, c = i - n, u = l > Math.abs(c), d = nee([l, c], u ? 0 : 1, t), h = (u ? s : c) / d.length, f = 0; f < d.length; f++) for (var p = (u ? c : s) / d[f], g = 0; g < d[f]; g++) { var v = {}; u ? (v.startAngle = o + h * f, v.endAngle = o + h * (f + 1), v.r0 = n + p * g, v.r = n + p * (g + 1)) : (v.startAngle = o + p * g, v.endAngle = o + p * (g + 1), v.r0 = n + h * f, v.r = n + h * (f + 1)), v.clockwise = e.clockwise, v.cx = e.cx, v.cy = e.cy, r.push(v); } } -function kWe(e, t, r) { - for (var n = e.width, i = e.height, o = n > i, a = eee([n, i], o ? 0 : 1, t), s = o ? "width" : "height", l = o ? "height" : "width", c = o ? "x" : "y", u = o ? "y" : "x", d = e[s] / a.length, h = 0; h < a.length; h++) +function YWe(e, t, r) { + for (var n = e.width, i = e.height, o = n > i, a = nee([n, i], o ? 0 : 1, t), s = o ? "width" : "height", l = o ? "height" : "width", c = o ? "x" : "y", u = o ? "y" : "x", d = e[s] / a.length, h = 0; h < a.length; h++) for (var f = e[l] / a[h], p = 0; p < a[h]; p++) { var g = {}; g[c] = h * d, g[u] = p * f, g[s] = d, g[l] = f, g.x += e.x, g.y += e.y, r.push(g); } } -function s5(e, t, r, n) { +function cH(e, t, r, n) { return e * n - r * t; } -function $We(e, t, r, n, i, o, a, s) { - var l = r - e, c = n - t, u = a - i, d = s - o, h = s5(u, d, l, c); +function qWe(e, t, r, n, i, o, a, s) { + var l = r - e, c = n - t, u = a - i, d = s - o, h = cH(u, d, l, c); if (Math.abs(h) < 1e-6) return null; - var f = e - i, p = t - o, g = s5(f, p, u, d) / h; - return g < 0 || g > 1 ? null : new Ut(g * l + e, g * c + t); -} -function BWe(e, t, r) { - var n = new Ut(); - Ut.sub(n, r, t), n.normalize(); - var i = new Ut(); - Ut.sub(i, e, t); + var f = e - i, p = t - o, g = cH(f, p, u, d) / h; + return g < 0 || g > 1 ? null : new Kt(g * l + e, g * c + t); +} +function XWe(e, t, r) { + var n = new Kt(); + Kt.sub(n, r, t), n.normalize(); + var i = new Kt(); + Kt.sub(i, e, t); var o = i.dot(n); return o; } @@ -93017,11 +93058,11 @@ function $h(e, t) { var r = e[e.length - 1]; r && r[0] === t[0] && r[1] === t[1] || e.push(t); } -function VWe(e, t, r) { +function ZWe(e, t, r) { for (var n = e.length, i = [], o = 0; o < n; o++) { - var a = e[o], s = e[(o + 1) % n], l = $We(a[0], a[1], s[0], s[1], t.x, t.y, r.x, r.y); + var a = e[o], s = e[(o + 1) % n], l = qWe(a[0], a[1], s[0], s[1], t.x, t.y, r.x, r.y); l && i.push({ - projPt: BWe(l, t, r), + projPt: XWe(l, t, r), pt: l, idx: o }); @@ -93047,45 +93088,45 @@ function VWe(e, t, r) { points: g }]; } -function l5(e) { +function uH(e) { var t = e.points, r = [], n = []; Fw(t, r, n); - var i = new Kt(r[0], r[1], n[0] - r[0], n[1] - r[1]), o = i.width, a = i.height, s = i.x, l = i.y, c = new Ut(), u = new Ut(); - return o > a ? (c.x = u.x = s + o / 2, c.y = l, u.y = l + a) : (c.y = u.y = l + a / 2, c.x = s, u.x = s + o), VWe(t, c, u); + var i = new Yt(r[0], r[1], n[0] - r[0], n[1] - r[1]), o = i.width, a = i.height, s = i.x, l = i.y, c = new Kt(), u = new Kt(); + return o > a ? (c.x = u.x = s + o / 2, c.y = l, u.y = l + a) : (c.y = u.y = l + a / 2, c.x = s, u.x = s + o), ZWe(t, c, u); } -function vb(e, t, r, n) { +function yb(e, t, r, n) { if (r === 1) n.push(t); else { var i = Math.floor(r / 2), o = e(t); - vb(e, o[0], i, n), vb(e, o[1], r - i, n); + yb(e, o[0], i, n), yb(e, o[1], r - i, n); } return n; } -function HWe(e, t) { +function QWe(e, t) { for (var r = [], n = 0; n < t; n++) - r.push(j2(e)); + r.push(jI(e)); return r; } -function zWe(e, t) { +function JWe(e, t) { t.setStyle(e.style), t.z = e.z, t.z2 = e.z2, t.zlevel = e.zlevel; } -function GWe(e) { +function e9e(e) { for (var t = [], r = 0; r < e.length; ) t.push([e[r++], e[r++]]); return t; } -function WWe(e, t) { +function t9e(e, t) { var r = [], n = e.shape, i; switch (e.type) { case "rect": - kWe(n, t, r), i = mr; + YWe(n, t, r), i = mr; break; case "sector": - a5(n, t, r), i = io; + lH(n, t, r), i = io; break; case "circle": - a5({ + lH({ r0: 0, r: n.r, startAngle: 0, @@ -93095,11 +93136,11 @@ function WWe(e, t) { }, t, r), i = io; break; default: - var o = e.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 = Fe(NWe(e.getUpdatedPathProxy(), a), function(m) { - return GWe(m); + var o = e.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 = Fe(KWe(e.getUpdatedPathProxy(), a), function(m) { + return e9e(m); }), l = s.length; if (l === 0) - vb(l5, { + yb(uH, { points: s[0] }, t, r); else if (l === t) @@ -93122,7 +93163,7 @@ function WWe(e, t) { if (h <= 0) break; var p = c === l - 1 ? h : Math.ceil(f.area / u * t); - p < 0 || (vb(l5, { + p < 0 || (yb(uH, { points: f.poly }, p, r), h -= p); } @@ -93131,14 +93172,14 @@ function WWe(e, t) { break; } if (!i) - return HWe(e, t); + return QWe(e, t); for (var g = [], c = 0; c < r.length; c++) { var v = new i(); - v.setShape(r[c]), zWe(e, v), g.push(v); + v.setShape(r[c]), JWe(e, v), g.push(v); } return g; } -function jWe(e, t) { +function r9e(e, t) { var r = e.length, n = t.length; if (r === n) return [e, t]; @@ -93156,26 +93197,26 @@ function jWe(e, t) { } return a === e ? [d, t] : [e, d]; } -function c5(e, t) { +function dH(e, t) { for (var r = e.length, n = e[r - 2], i = e[r - 1], o = [], a = 0; a < t.length; ) o[a++] = n, o[a++] = i; return o; } -function UWe(e, t) { +function n9e(e, t) { for (var r, n, i, o = [], a = [], s = 0; s < Math.max(e.length, t.length); s++) { var l = e[s], c = t[s], u = void 0, d = void 0; - l ? c ? (r = jWe(l, c), u = r[0], d = r[1], n = u, i = d) : (d = c5(i || l, l), u = l) : (u = c5(n || c, c), d = c), o.push(u), a.push(d); + l ? c ? (r = r9e(l, c), u = r[0], d = r[1], n = u, i = d) : (d = dH(i || l, l), u = l) : (u = dH(n || c, c), d = c), o.push(u), a.push(d); } return [o, a]; } -function u5(e) { +function hH(e) { for (var t = 0, r = 0, n = 0, i = e.length, o = 0, a = i - 2; o < i; a = o, o += 2) { var s = e[a], l = e[a + 1], c = e[o], u = e[o + 1], d = s * u - c * l; t += d, r += (s + c) * d, n += (l + u) * d; } return t === 0 ? [e[0] || 0, e[1] || 0] : [r / t / 3, n / t / 3, t]; } -function KWe(e, t, r, n) { +function i9e(e, t, r, n) { for (var i = (e.length - 2) / 6, o = 1 / 0, a = 0, s = e.length, l = s - 2, c = 0; c < i; c++) { for (var u = c * 6, d = 0, h = 0; h < s; h += 2) { var f = h === 0 ? u : (u + h - 2) % l + 2, p = e[f] - r[0], g = e[f + 1] - r[1], v = t[h] - n[0], m = t[h + 1] - n[1], y = v - p, C = m - g; @@ -93185,18 +93226,18 @@ function KWe(e, t, r, n) { } return a; } -function YWe(e) { +function o9e(e) { for (var t = [], r = e.length, n = 0; n < r; n += 2) t[n] = e[r - n - 2], t[n + 1] = e[r - n - 1]; return t; } -function qWe(e, t, r, n) { +function a9e(e, t, r, n) { for (var i = [], o, a = 0; a < e.length; a++) { - var s = e[a], l = t[a], c = u5(s), u = u5(l); + var s = e[a], l = t[a], c = hH(s), u = hH(l); o == null && (o = c[2] < 0 != u[2] < 0); var d = [], h = [], f = 0, p = 1 / 0, g = [], v = s.length; - o && (s = YWe(s)); - for (var m = KWe(s, l, c, u) * 6, y = v - 2, C = 0; C < y; C += 2) { + o && (s = o9e(s)); + for (var m = i9e(s, l, c, u) * 6, y = v - 2, C = 0; C < y; C += 2) { var b = (m + C) % y + 2; d[C + 2] = s[b] - c[0], d[C + 3] = s[b + 1] - c[1]; } @@ -93224,12 +93265,12 @@ function qWe(e, t, r, n) { } return i; } -function mb(e) { +function Cb(e) { return e.__isCombineMorphing; } -var tee = "__mOriginal_"; -function yb(e, t, r) { - var n = tee + t, i = e[n] || e[t]; +var iee = "__mOriginal_"; +function Sb(e, t, r) { + var n = iee + t, i = e[n] || e[t]; e[n] || (e[n] = e[t]); var o = r.replace, a = r.after, s = r.before; e[t] = function() { @@ -93237,28 +93278,28 @@ function yb(e, t, r) { return s && s.apply(this, l), o ? c = o.apply(this, l) : c = i.apply(this, l), a && a.apply(this, l), c; }; } -function hv(e, t) { - var r = tee + t; +function pv(e, t) { + var r = iee + t; e[r] && (e[t] = e[r], e[r] = null); } -function d5(e, t) { +function fH(e, t) { for (var r = 0; r < e.length; r++) for (var n = e[r], i = 0; i < n.length; ) { var o = n[i], a = n[i + 1]; n[i++] = t[0] * o + t[2] * a + t[4], n[i++] = t[1] * o + t[3] * a + t[5]; } } -function ree(e, t) { - var r = e.getUpdatedPathProxy(), n = t.getUpdatedPathProxy(), i = UWe(tD(r), tD(n)), o = i[0], a = i[1], s = e.getComputedTransform(), l = t.getComputedTransform(); +function oee(e, t) { + var r = e.getUpdatedPathProxy(), n = t.getUpdatedPathProxy(), i = n9e(t2(r), t2(n)), o = i[0], a = i[1], s = e.getComputedTransform(), l = t.getComputedTransform(); function c() { this.transform = null; } - s && d5(o, s), l && d5(a, l), yb(t, "updateTransform", { replace: c }), t.transform = null; - var u = qWe(o, a, 10, Math.PI), d = []; - yb(t, "buildPath", { replace: function(h) { + s && fH(o, s), l && fH(a, l), Sb(t, "updateTransform", { replace: c }), t.transform = null; + var u = a9e(o, a, 10, Math.PI), d = []; + Sb(t, "buildPath", { replace: function(h) { for (var f = t.__morphT, p = 1 - f, g = [], v = 0; v < u.length; v++) { var m = u[v], y = m.from, C = m.to, b = m.rotation * f, w = m.fromCp, x = m.toCp, E = Math.sin(b), R = Math.cos(b); - Qg(g, w, x, f); + ev(g, w, x, f); for (var P = 0; P < y.length; P += 2) { var T = y[P], _ = y[P + 1], D = C[P], A = C[P + 1], M = T * p + D * f, O = _ * p + A * f; d[P] = M * R - O * E + g[0], d[P + 1] = M * E + O * R + g[1]; @@ -93276,13 +93317,13 @@ function $O(e, t, r) { if (!e || !t) return t; var n = r.done, i = r.during; - ree(e, t), t.__morphT = 0; + oee(e, t), t.__morphT = 0; function o() { - hv(t, "buildPath"), hv(t, "updateTransform"), t.__morphT = -1, t.createPathProxy(), t.dirtyShape(); + pv(t, "buildPath"), pv(t, "updateTransform"), t.__morphT = -1, t.createPathProxy(), t.dirtyShape(); } return t.animateTo({ __morphT: 1 - }, wt({ + }, xt({ during: function(a) { t.dirtyShape(), i && i(a); }, @@ -93291,7 +93332,7 @@ function $O(e, t, r) { } }, r)), t; } -function XWe(e, t, r, n, i, o) { +function s9e(e, t, r, n, i, o) { var a = 16; e = i === r ? 0 : Math.round(32767 * (e - r) / (i - r)), t = o === n ? 0 : Math.round(32767 * (t - n) / (o - n)); for (var s = 0, l, c = (1 << a) / 2; c > 0; c /= 2) { @@ -93300,14 +93341,14 @@ function XWe(e, t, r, n, i, o) { } return s; } -function Cb(e) { +function bb(e) { var t = 1 / 0, r = 1 / 0, n = -1 / 0, i = -1 / 0, o = Fe(e, function(s) { var l = s.getBoundingRect(), c = s.getComputedTransform(), u = l.x + l.width / 2 + (c ? c[4] : 0), d = l.y + l.height / 2 + (c ? c[5] : 0); return t = Math.min(u, t), r = Math.min(d, r), n = Math.max(u, n), i = Math.max(d, i), [u, d]; }), a = Fe(o, function(s, l) { return { cp: s, - z: XWe(s[0], s[1], t, r, n, i), + z: s9e(s[0], s[1], t, r, n, i), path: e[l] }; }); @@ -93317,38 +93358,38 @@ function Cb(e) { return s.path; }); } -function nee(e) { - return WWe(e.path, e.count); +function aee(e) { + return t9e(e.path, e.count); } -function nD() { +function n2() { return { fromIndividuals: [], toIndividuals: [], count: 0 }; } -function ZWe(e, t, r) { +function l9e(e, t, r) { var n = []; function i(w) { for (var x = 0; x < w.length; x++) { var E = w[x]; - mb(E) ? i(E.childrenRef()) : E instanceof nr && n.push(E); + Cb(E) ? i(E.childrenRef()) : E instanceof nr && n.push(E); } } i(e); var o = n.length; if (!o) - return nD(); - var a = r.dividePath || nee, s = a({ + return n2(); + var a = r.dividePath || aee, s = a({ path: t, count: o }); if (s.length !== o) - return console.error("Invalid morphing: unmatched splitted path"), nD(); - n = Cb(n), s = Cb(s); - for (var l = r.done, c = r.during, u = r.individualDelay, d = new Rl(), h = 0; h < o; h++) { + return console.error("Invalid morphing: unmatched splitted path"), n2(); + n = bb(n), s = bb(s); + for (var l = r.done, c = r.during, u = r.individualDelay, d = new Pl(), h = 0; h < o; h++) { var f = n[h], p = s[h]; - p.parent = t, p.copyTransform(d), u || ree(f, p); + p.parent = t, p.copyTransform(d), u || oee(f, p); } t.__isCombineMorphing = !0, t.childrenRef = function() { return s; @@ -93357,25 +93398,25 @@ function ZWe(e, t, r) { for (var x = 0; x < s.length; x++) s[x].addSelfToZr(w); } - yb(t, "addSelfToZr", { + Sb(t, "addSelfToZr", { after: function(w) { g(w); } - }), yb(t, "removeSelfFromZr", { + }), Sb(t, "removeSelfFromZr", { after: function(w) { for (var x = 0; x < s.length; x++) s[x].removeSelfFromZr(w); } }); function v() { - t.__isCombineMorphing = !1, t.__morphT = -1, t.childrenRef = null, hv(t, "addSelfToZr"), hv(t, "removeSelfFromZr"); + t.__isCombineMorphing = !1, t.__morphT = -1, t.childrenRef = null, pv(t, "addSelfToZr"), pv(t, "removeSelfFromZr"); } var m = s.length; if (u) for (var y = m, C = function() { y--, y === 0 && (v(), l && l()); }, h = 0; h < m; h++) { - var b = u ? wt({ + var b = u ? xt({ delay: (r.delay || 0) + u(h, m, n[h], s[h]), done: C }, r) : r; @@ -93384,7 +93425,7 @@ function ZWe(e, t, r) { else t.__morphT = 0, t.animateTo({ __morphT: 1 - }, wt({ + }, xt({ during: function(w) { for (var x = 0; x < m; x++) { var E = s[x]; @@ -93395,7 +93436,7 @@ function ZWe(e, t, r) { done: function() { v(); for (var w = 0; w < e.length; w++) - hv(e[w], "updateTransform"); + pv(e[w], "updateTransform"); l && l(); } }, r)); @@ -93405,31 +93446,31 @@ function ZWe(e, t, r) { count: m }; } -function QWe(e, t, r) { - var n = t.length, i = [], o = r.dividePath || nee; +function c9e(e, t, r) { + var n = t.length, i = [], o = r.dividePath || aee; function a(f) { for (var p = 0; p < f.length; p++) { var g = f[p]; - mb(g) ? a(g.childrenRef()) : g instanceof nr && i.push(g); + Cb(g) ? a(g.childrenRef()) : g instanceof nr && i.push(g); } } - if (mb(e)) { + if (Cb(e)) { a(e.childrenRef()); var s = i.length; if (s < n) for (var l = 0, c = s; c < n; c++) - i.push(j2(i[l++ % s])); + i.push(jI(i[l++ % s])); i.length = n; } else { i = o({ path: e, count: n }); for (var u = e.getComputedTransform(), c = 0; c < i.length; c++) i[c].setLocalTransform(u); if (i.length !== n) - return console.error("Invalid morphing: unmatched splitted path"), nD(); + return console.error("Invalid morphing: unmatched splitted path"), n2(); } - i = Cb(i), t = Cb(t); + i = bb(i), t = bb(t); for (var d = r.individualDelay, c = 0; c < n; c++) { - var h = d ? wt({ + var h = d ? xt({ delay: (r.delay || 0) + d(c, n, i[c], t[c]) }, r) : r; $O(i[c], t[c], h); @@ -93440,10 +93481,10 @@ function QWe(e, t, r) { count: t.length }; } -function h5(e) { - return Ie(e[0]); +function pH(e) { + return Ae(e[0]); } -function f5(e, t) { +function gH(e, t) { for (var r = [], n = e.length, i = 0; i < n; i++) r.push({ one: e[i], @@ -93467,10 +93508,10 @@ function f5(e, t) { } return r; } -var JWe = { +var u9e = { clone: function(e) { for (var t = [], r = 1 - Math.pow(1 - e.path.style.opacity, 1 / e.count), n = 0; n < e.count; n++) { - var i = j2(e.path); + var i = jI(e.path); i.setStyle("opacity", r), t.push(i); } return t; @@ -93481,7 +93522,7 @@ var JWe = { function QR(e, t, r, n, i, o) { if (!e.length || !t.length) return; - var a = fp("update", n, i); + var a = gp("update", n, i); if (!(a && a.duration > 0)) return; var s = n.getModel("universalTransition").get("delay"), l = Object.assign({ @@ -93489,36 +93530,36 @@ function QR(e, t, r, n, i, o) { // Like emphasis color. setToFinal: !0 }, a), c, u; - h5(e) && (c = e, u = t), h5(t) && (c = t, u = e); + pH(e) && (c = e, u = t), pH(t) && (c = t, u = e); function d(m, y, C, b, w) { var x = m.many, E = m.one; if (x.length === 1 && !w) { var R = y ? x[0] : E, P = y ? E : x[0]; - if (mb(R)) + if (Cb(R)) d({ many: [R], one: P }, !0, C, b, !0); else { - var T = s ? wt({ + var T = s ? xt({ delay: s(C, b) }, l) : l; $O(R, P, T), o(R, P, R, P, T); } } else - for (var _ = wt({ - dividePath: JWe[r], + for (var _ = xt({ + dividePath: u9e[r], individualDelay: s && function(N, F, $, I) { return s(N + C, b); } - }, l), D = y ? ZWe(x, E, _) : QWe(E, x, _), A = D.fromIndividuals, M = D.toIndividuals, O = A.length, L = 0; L < O; L++) { - var T = s ? wt({ + }, l), D = y ? l9e(x, E, _) : c9e(E, x, _), A = D.fromIndividuals, M = D.toIndividuals, O = A.length, L = 0; L < O; L++) { + var T = s ? xt({ delay: s(L, O) }, l) : l; o(A[L], M[L], y ? x[L] : m.one, y ? m.one : x[L], T); } } - for (var h = c ? c === e : e.length > t.length, f = c ? f5(u, c) : f5(h ? t : e, [h ? e : t]), p = 0, g = 0; g < f.length; g++) + for (var h = c ? c === e : e.length > t.length, f = c ? gH(u, c) : gH(h ? t : e, [h ? e : t]), p = 0, g = 0; g < f.length; g++) p += f[g].many.length; for (var v = 0, g = 0; g < f.length; g++) d(f[g], h, v, p), v += f[g].many.length; @@ -93526,7 +93567,7 @@ function QR(e, t, r, n, i, o) { function Bu(e) { if (!e) return []; - if (Ie(e)) { + if (Ae(e)) { for (var t = [], r = 0; r < e.length; r++) t.push(Bu(e[r])); return t; @@ -93536,25 +93577,25 @@ function Bu(e) { i instanceof nr && !i.disableMorphing && !i.invisible && !i.ignore && n.push(i); }), n; } -var iee = 1e4, e9e = 0, p5 = 1, g5 = 2, t9e = yr(); -function r9e(e, t) { +var see = 1e4, d9e = 0, vH = 1, mH = 2, h9e = yr(); +function f9e(e, t) { for (var r = e.dimensions, n = 0; n < r.length; n++) { var i = e.getDimensionInfo(r[n]); if (i && i.otherDims[t] === 0) return r[n]; } } -function n9e(e, t, r) { +function p9e(e, t, r) { var n = e.getDimensionInfo(r), i = n && n.ordinalMeta; if (n) { var o = e.get(n.name, t); return i && i.categories[o] || o + ""; } } -function v5(e, t, r, n) { - var i = n ? "itemChildGroupId" : "itemGroupId", o = r9e(e, i); +function yH(e, t, r, n) { + var i = n ? "itemChildGroupId" : "itemGroupId", o = f9e(e, i); if (o) { - var a = n9e(e, t, o); + var a = p9e(e, t, o); return a; } var s = e.getRawDataItem(t), l = n ? "childGroupId" : "groupId"; @@ -93563,19 +93604,19 @@ function v5(e, t, r, n) { if (!n) return r || e.getId(t); } -function m5(e) { +function CH(e) { var t = []; return z(e, function(r) { var n = r.data, i = r.dataGroupId; - if (n.count() > iee) { + if (n.count() > see) { process.env.NODE_ENV !== "production" && Cn("Universal transition is disabled on large data > 10k."); return; } for (var o = n.getIndices(), a = 0; a < o.length; a++) t.push({ data: n, - groupId: v5(n, a, i, !1), - childGroupId: v5(n, a, i, !0), + groupId: yH(n, a, i, !1), + childGroupId: yH(n, a, i, !0), divide: r.divide, dataIndex: a }); @@ -93604,18 +93645,18 @@ function Bh(e) { t.stopAnimation(); }); } -function i9e(e, t, r) { - var n = fp("update", r, t); +function g9e(e, t, r) { + var n = gp("update", r, t); n && e.traverse(function(i) { if (i instanceof Ta) { - var o = A2e(i); + var o = GIe(i); o && i.animateFrom({ style: o }, n); } }); } -function o9e(e, t) { +function v9e(e, t) { var r = e.length; if (r !== t.length) return !1; @@ -93626,36 +93667,36 @@ function o9e(e, t) { } return !0; } -function oee(e, t, r) { - var n = m5(e), i = m5(t); +function lee(e, t, r) { + var n = CH(e), i = CH(t); function o(C, b, w, x, E) { (w || C) && b.animateFrom({ style: w && w !== C ? Pe(Pe({}, w.style), C.style) : C.style }, E); } - var a = !1, s = e9e, l = ft(), c = ft(); + var a = !1, s = d9e, l = ft(), c = ft(); n.forEach(function(C) { C.groupId && l.set(C.groupId, !0), C.childGroupId && c.set(C.childGroupId, !0); }); for (var u = 0; u < i.length; u++) { var d = i[u].groupId; if (c.get(d)) { - s = p5; + s = vH; break; } var h = i[u].childGroupId; if (h && l.get(h)) { - s = g5; + s = mH; break; } } function f(C, b) { return function(w) { var x = w.data, E = w.dataIndex; - return b ? x.getId(E) : C ? s === p5 ? w.childGroupId : w.groupId : s === g5 ? w.childGroupId : w.groupId; + return b ? x.getId(E) : C ? s === vH ? w.childGroupId : w.groupId : s === mH ? w.childGroupId : w.groupId; }; } - var p = o9e(n, i), g = {}; + var p = v9e(n, i), g = {}; if (!p) for (var u = 0; u < i.length; u++) { var v = i[u], m = v.data.getItemGraphicEl(v.dataIndex); @@ -93664,14 +93705,14 @@ function oee(e, t, r) { function y(C, b) { var w = n[b], x = i[C], E = x.data.hostModel, R = w.data.getItemGraphicEl(w.dataIndex), P = x.data.getItemGraphicEl(x.dataIndex); if (R === P) { - P && i9e(P, x.dataIndex, E); + P && g9e(P, x.dataIndex, E); return; } // We can't use the elements that already being morphed R && g[R.id] || P && (Bh(P), R ? (Bh(R), eP(R), a = !0, QR(Bu(R), Bu(P), x.divide, E, C, o)) : JR(P, E, C)); } - new zl(n, i, f(!0, p), f(!1, p), null, "multiple").update(y).updateManyToOne(function(C, b) { - var w = i[C], x = w.data, E = x.hostModel, R = x.getItemGraphicEl(w.dataIndex), P = Fr(Fe(b, function(T) { + new Gl(n, i, f(!0, p), f(!1, p), null, "multiple").update(y).updateManyToOne(function(C, b) { + var w = i[C], x = w.data, E = x.hostModel, R = x.getItemGraphicEl(w.dataIndex), P = Nr(Fe(b, function(T) { return n[T].data.getItemGraphicEl(n[T].dataIndex); }), function(T) { return T && T !== R && !g[T.id]; @@ -93682,7 +93723,7 @@ function oee(e, t, r) { }).updateOneToMany(function(C, b) { var w = n[b], x = w.data.getItemGraphicEl(w.dataIndex); if (!(x && g[x.id])) { - var E = Fr(Fe(C, function(P) { + var E = Nr(Fe(C, function(P) { return i[P].data.getItemGraphicEl(i[P].dataIndex); }), function(P) { return P && P !== x; @@ -93702,7 +93743,7 @@ function oee(e, t, r) { })); } }).updateManyToMany(function(C, b) { - new zl(b, C, function(w) { + new Gl(b, C, function(w) { return n[w].data.getId(n[w].dataIndex); }, function(w) { return i[w].data.getId(i[w].dataIndex); @@ -93710,7 +93751,7 @@ function oee(e, t, r) { y(C[w], b[x]); }).execute(); }).execute(), a && z(t, function(C) { - var b = C.data, w = b.hostModel, x = w && r.getViewOfSeriesModel(w), E = fp("update", w, 0); + var b = C.data, w = b.hostModel, x = w && r.getViewOfSeriesModel(w), E = gp("update", w, 0); x && w.isAnimationEnabled() && E && E.duration > 0 && x.group.traverse(function(R) { R instanceof nr && !R.animators.length && R.animateFrom({ style: { @@ -93720,25 +93761,25 @@ function oee(e, t, r) { }); }); } -function y5(e) { +function SH(e) { var t = e.getModel("universalTransition").get("seriesKey"); return t || e.id; } -function C5(e) { - return Ie(e) ? e.sort().join(",") : e; +function bH(e) { + return Ae(e) ? e.sort().join(",") : e; } function vc(e) { if (e.hostModel) return e.hostModel.getModel("universalTransition").get("divideShape"); } -function a9e(e, t) { +function m9e(e, t) { var r = ft(), n = ft(), i = ft(); z(e.oldSeries, function(a, s) { - var l = e.oldDataGroupIds[s], c = e.oldData[s], u = y5(a), d = C5(u); + var l = e.oldDataGroupIds[s], c = e.oldData[s], u = SH(a), d = bH(u); n.set(d, { dataGroupId: l, data: c - }), Ie(u) && z(u, function(h) { + }), Ae(u) && z(u, function(h) { i.set(h, { key: d, dataGroupId: l, @@ -93751,7 +93792,7 @@ function a9e(e, t) { } return z(t.updatedSeries, function(a) { if (a.isUniversalTransitionEnabled() && a.isAnimationEnabled()) { - var s = a.get("dataGroupId"), l = a.getData(), c = y5(a), u = C5(c), d = n.get(u); + var s = a.get("dataGroupId"), l = a.getData(), c = SH(a), u = bH(c), d = n.get(u); if (d) process.env.NODE_ENV !== "production" && o(u), r.set(u, { oldSeries: [{ @@ -93765,7 +93806,7 @@ function a9e(e, t) { data: l }] }); - else if (Ie(c)) { + else if (Ae(c)) { process.env.NODE_ENV !== "production" && o(u); var h = []; z(c, function(g) { @@ -93804,17 +93845,17 @@ function a9e(e, t) { } }), r; } -function S5(e, t) { +function wH(e, t) { for (var r = 0; r < e.length; r++) { var n = t.seriesIndex != null && t.seriesIndex === e[r].seriesIndex || t.seriesId != null && t.seriesId === e[r].id; if (n) return r; } } -function s9e(e, t, r, n) { +function y9e(e, t, r, n) { var i = [], o = []; z(Wr(e.from), function(a) { - var s = S5(t.oldSeries, a); + var s = wH(t.oldSeries, a); s >= 0 && i.push({ dataGroupId: t.oldDataGroupIds[s], data: t.oldData[s], @@ -93823,7 +93864,7 @@ function s9e(e, t, r, n) { groupIdDim: a.dimension }); }), z(Wr(e.to), function(a) { - var s = S5(r.updatedSeries, a); + var s = wH(r.updatedSeries, a); if (s >= 0) { var l = r.updatedSeries[s].getData(); o.push({ @@ -93833,73 +93874,73 @@ function s9e(e, t, r, n) { groupIdDim: a.dimension }); } - }), i.length > 0 && o.length > 0 && oee(i, o, n); + }), i.length > 0 && o.length > 0 && lee(i, o, n); } -function l9e(e) { +function C9e(e) { e.registerUpdateLifecycle("series:beforeupdate", function(t, r, n) { z(Wr(n.seriesTransition), function(i) { z(Wr(i.to), function(o) { for (var a = n.updatedSeries, s = 0; s < a.length; s++) - (o.seriesIndex != null && o.seriesIndex === a[s].seriesIndex || o.seriesId != null && o.seriesId === a[s].id) && (a[s][MC] = !0); + (o.seriesIndex != null && o.seriesIndex === a[s].seriesIndex || o.seriesId != null && o.seriesId === a[s].id) && (a[s][AC] = !0); }); }); }), e.registerUpdateLifecycle("series:transition", function(t, r, n) { - var i = t9e(r); + var i = h9e(r); if (i.oldSeries && n.updatedSeries && n.optionChanged) { var o = n.seriesTransition; if (o) z(Wr(o), function(f) { - s9e(f, i, n, r); + y9e(f, i, n, r); }); else { - var a = a9e(i, n); + var a = m9e(i, n); z(a.keys(), function(f) { var p = a.get(f); - oee(p.oldSeries, p.newSeries, r); + lee(p.oldSeries, p.newSeries, r); }); } z(n.updatedSeries, function(f) { - f[MC] && (f[MC] = !1); + f[AC] && (f[AC] = !1); }); } for (var s = t.getSeries(), l = i.oldSeries = [], c = i.oldDataGroupIds = [], u = i.oldData = [], d = 0; d < s.length; d++) { var h = s[d].getData(); - h.count() < iee && (l.push(s[d]), c.push(s[d].get("dataGroupId")), u.push(h)); + h.count() < see && (l.push(s[d]), c.push(s[d].get("dataGroupId")), u.push(h)); } }); } -er([yke]); -er([fke]); -er([$ke, Jke, c$e, z$e, J$e, B4e, f8e, X8e, yBe, EBe, OBe, TVe, QVe, c6e, R6e, M6e, B6e, U6e, nHe, cHe, CHe, t3e]); -er(S3e); -er(K3e); -er(rQ); -er(a5e); -er(HQ); -er(u5e); -er(C5e); -er(aze); -er(Rze); -er(hy); -er(zze); -er(jze); -er(tGe); -er(lGe); -er(pGe); -er(SGe); -er(DGe); -er(YGe); -er(jJ); -er(UJ); -er(pWe); -er(ZJ); -er(QJ); -er(CWe); -er(AWe); -er(FWe); -er(l9e); -er(ONe); -const c9e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +er([Mke]); +er([Eke]); +er([qke, u$e, S$e, J$e, u4e, X4e, E8e, sBe, MBe, FBe, WBe, $Ve, c6e, S6e, N6e, V6e, X6e, n3e, p3e, S3e, D3e, h5e]); +er(I5e); +er(iHe); +er(oQ); +er(mHe); +er(WQ); +er(bHe); +er(DHe); +er(mze); +er(Nze); +er(gy); +er(Jze); +er(rGe); +er(hGe); +er(CGe); +er(RGe); +er(IGe); +er(HGe); +er(oWe); +er(YJ); +er(qJ); +er(RWe); +er(eee); +er(tee); +er(DWe); +er(GWe); +er(UWe); +er(C9e); +er(WNe); +const S9e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Axis: La, ChartView: $r, @@ -93907,59 +93948,59 @@ const c9e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( ComponentView: sn, List: Fi, Model: Gr, - PRIORITY: dX, + PRIORITY: pX, SeriesModel: jr, - color: zMe, - connect: BLe, - dataTool: ULe, - dependencies: bLe, - disConnect: VLe, - disconnect: CX, - dispose: HLe, + color: JMe, + connect: XLe, + dataTool: nFe, + dependencies: ALe, + disConnect: ZLe, + disconnect: wX, + dispose: QLe, env: gr, - extendChartView: SNe, - extendComponentModel: mNe, - extendComponentView: yNe, - extendSeriesModel: CNe, - format: oNe, - getCoordinateSystemDimensions: GLe, + extendChartView: INe, + extendComponentModel: _Ne, + extendComponentView: MNe, + extendSeriesModel: DNe, + format: vNe, + getCoordinateSystemDimensions: eFe, getInstanceByDom: wA, - getInstanceById: zLe, - getMap: jLe, - graphic: iNe, - helper: XFe, - init: $Le, + getInstanceById: JLe, + getMap: rFe, + graphic: gNe, + helper: sNe, + init: qLe, innerDrawElementOnCanvas: yA, - matrix: CMe, - number: rNe, + matrix: DMe, + number: fNe, parseGeoJSON: gM, parseGeoJson: gM, registerAction: hs, - registerCoordinateSystem: wX, - registerLayout: xX, + registerCoordinateSystem: RX, + registerLayout: PX, registerLoading: TA, registerLocale: eA, - registerMap: EX, - registerPostInit: SX, - registerPostUpdate: bX, + registerMap: TX, + registerPostInit: xX, + registerPostUpdate: EX, registerPreprocessor: EA, registerProcessor: RA, registerTheme: xA, - registerTransform: RX, + registerTransform: _X, registerUpdateLifecycle: e1, registerVisual: nu, - setCanvasCreator: WLe, - setPlatformAPI: lK, + setCanvasCreator: tFe, + setPlatformAPI: dK, throttle: Qw, - time: nNe, + time: pNe, use: er, - util: aNe, - vector: oMe, - version: SLe, - zrUtil: Q_e, - zrender: EDe + util: mNe, + vector: vMe, + version: ILe, + zrUtil: cMe, + zrender: F2e }, Symbol.toStringTag, { value: "Module" })); -var md = {}, Oc = {}, aee = {}; +var md = {}, Oc = {}, cee = {}; (function(e) { Object.defineProperty(e, "__esModule", { value: !0 @@ -93968,7 +94009,7 @@ var md = {}, Oc = {}, aee = {}; return "".concat(t++); }; e.default = r; -})(aee); +})(cee); var f1 = {}, p1 = {}, BO = {}; (function(e) { Object.defineProperty(e, "__esModule", { @@ -93991,28 +94032,28 @@ Object.defineProperty(Hs, "__esModule", { value: !0 }); Hs.SizeSensorId = Hs.SensorTabIndex = Hs.SensorClassName = void 0; -var u9e = "size-sensor-id"; -Hs.SizeSensorId = u9e; -var d9e = "size-sensor-object"; -Hs.SensorClassName = d9e; -var h9e = "-1"; -Hs.SensorTabIndex = h9e; +var b9e = "size-sensor-id"; +Hs.SizeSensorId = b9e; +var w9e = "size-sensor-object"; +Hs.SensorClassName = w9e; +var x9e = "-1"; +Hs.SensorTabIndex = x9e; Object.defineProperty(p1, "__esModule", { value: !0 }); p1.createSensor = void 0; -var f9e = p9e(BO), tP = Hs; -function p9e(e) { +var E9e = R9e(BO), tP = Hs; +function R9e(e) { return e && e.__esModule ? e : { default: e }; } -var g9e = function(t, r) { +var P9e = function(t, r) { var n = void 0, i = [], o = function() { getComputedStyle(t).position === "static" && (t.style.position = "relative"); var d = document.createElement("object"); return d.onload = function() { d.contentDocument.defaultView.addEventListener("resize", a), a(); }, d.style.display = "block", d.style.position = "absolute", d.style.top = "0", d.style.left = "0", d.style.height = "100%", d.style.width = "100%", d.style.overflow = "hidden", d.style.pointerEvents = "none", d.style.zIndex = "-1", d.style.opacity = "0", d.setAttribute("class", tP.SensorClassName), d.setAttribute("tabindex", tP.SensorTabIndex), d.type = "text/html", t.appendChild(d), d.data = "about:blank", d; - }, a = (0, f9e.default)(function() { + }, a = (0, E9e.default)(function() { i.forEach(function(u) { u(t); }); @@ -94031,18 +94072,18 @@ var g9e = function(t, r) { unbind: c }; }; -p1.createSensor = g9e; +p1.createSensor = P9e; var g1 = {}; Object.defineProperty(g1, "__esModule", { value: !0 }); g1.createSensor = void 0; -var v9e = Hs, m9e = y9e(BO); -function y9e(e) { +var T9e = Hs, _9e = M9e(BO); +function M9e(e) { return e && e.__esModule ? e : { default: e }; } -var C9e = function(t, r) { - var n = void 0, i = [], o = (0, m9e.default)(function() { +var D9e = function(t, r) { + var n = void 0, i = [], o = (0, _9e.default)(function() { i.forEach(function(u) { u(t); }); @@ -94052,7 +94093,7 @@ var C9e = function(t, r) { }, s = function(d) { n || (n = a()), i.indexOf(d) === -1 && i.push(d); }, l = function() { - n.disconnect(), i = [], n = void 0, t.removeAttribute(v9e.SizeSensorId), r && r(); + n.disconnect(), i = [], n = void 0, t.removeAttribute(T9e.SizeSensorId), r && r(); }, c = function(d) { var h = i.indexOf(d); h !== -1 && i.splice(h, 1), i.length === 0 && n && l(); @@ -94064,58 +94105,58 @@ var C9e = function(t, r) { unbind: c }; }; -g1.createSensor = C9e; +g1.createSensor = D9e; Object.defineProperty(f1, "__esModule", { value: !0 }); f1.createSensor = void 0; -var S9e = p1, b9e = g1, w9e = typeof ResizeObserver < "u" ? b9e.createSensor : S9e.createSensor; -f1.createSensor = w9e; +var I9e = p1, A9e = g1, O9e = typeof ResizeObserver < "u" ? A9e.createSensor : I9e.createSensor; +f1.createSensor = O9e; Object.defineProperty(Oc, "__esModule", { value: !0 }); Oc.removeSensor = Oc.getSensor = Oc.Sensors = void 0; -var x9e = R9e(aee), E9e = f1, iD = Hs; -function R9e(e) { +var L9e = N9e(cee), F9e = f1, i2 = Hs; +function N9e(e) { return e && e.__esModule ? e : { default: e }; } var xf = {}; Oc.Sensors = xf; -function see(e) { +function uee(e) { e && xf[e] && delete xf[e]; } -var P9e = function(t) { - var r = t.getAttribute(iD.SizeSensorId); +var k9e = function(t) { + var r = t.getAttribute(i2.SizeSensorId); if (r && xf[r]) return xf[r]; - var n = (0, x9e.default)(); - t.setAttribute(iD.SizeSensorId, n); - var i = (0, E9e.createSensor)(t, function() { - return see(n); + var n = (0, L9e.default)(); + t.setAttribute(i2.SizeSensorId, n); + var i = (0, F9e.createSensor)(t, function() { + return uee(n); }); return xf[n] = i, i; }; -Oc.getSensor = P9e; -var T9e = function(t) { - var r = t.element.getAttribute(iD.SizeSensorId); - t.destroy(), see(r); +Oc.getSensor = k9e; +var $9e = function(t) { + var r = t.element.getAttribute(i2.SizeSensorId); + t.destroy(), uee(r); }; -Oc.removeSensor = T9e; +Oc.removeSensor = $9e; Object.defineProperty(md, "__esModule", { value: !0 }); -md.ver = cee = md.clear = lee = md.bind = void 0; -var oD = Oc, _9e = function(t, r) { - var n = (0, oD.getSensor)(t); +md.ver = hee = md.clear = dee = md.bind = void 0; +var o2 = Oc, B9e = function(t, r) { + var n = (0, o2.getSensor)(t); return n.bind(r), function() { n.unbind(r); }; -}, lee = md.bind = _9e, M9e = function(t) { - var r = (0, oD.getSensor)(t); - (0, oD.removeSensor)(r); -}, cee = md.clear = M9e, D9e = "1.0.2"; -md.ver = D9e; -function b5(e, t) { +}, dee = md.bind = B9e, V9e = function(t) { + var r = (0, o2.getSensor)(t); + (0, o2.removeSensor)(r); +}, hee = md.clear = V9e, H9e = "1.0.2"; +md.ver = H9e; +function xH(e, t) { var r = {}; return t.forEach(function(n) { r[n] = e[n]; @@ -94124,10 +94165,10 @@ function b5(e, t) { function rP(e) { return typeof e == "function"; } -function I9e(e) { +function z9e(e) { return typeof e == "string"; } -var A9e = function e(t, r) { +var G9e = function e(t, r) { if (t === r) return !0; if (t && r && typeof t == "object" && typeof r == "object") { if (t.constructor !== r.constructor) return !1; @@ -94152,11 +94193,11 @@ var A9e = function e(t, r) { } return t !== t && r !== r; }; -const Vh = /* @__PURE__ */ qf(A9e); -var O9e = ( +const Vh = /* @__PURE__ */ Zf(G9e); +var W9e = ( /** @class */ function(e) { - aK(t, e); + cK(t, e); function t(r) { var n = e.call(this, r) || this; return n.echarts = r.echarts, n.ele = null, n.isInitialResize = !0, n; @@ -94171,7 +94212,7 @@ var O9e = ( return; } var i = ["option", "notMerge", "lazyUpdate", "showLoading", "loadingOption"]; - Vh(b5(this.props, i), b5(r, i)) || this.updateEChartsOption(), (!Vh(r.style, this.props.style) || !Vh(r.className, this.props.className)) && this.resize(); + Vh(xH(this.props, i), xH(r, i)) || this.updateEChartsOption(), (!Vh(r.style, this.props.style) || !Vh(r.className, this.props.className)) && this.resize(); } }, t.prototype.componentWillUnmount = function() { this.dispose(); @@ -94180,7 +94221,7 @@ var O9e = ( }, t.prototype.dispose = function() { if (this.ele) { try { - cee(this.ele); + hee(this.ele); } catch (r) { console.warn(r); } @@ -94188,12 +94229,12 @@ var O9e = ( } }, t.prototype.renderNewEcharts = function() { var r = this, n = this.props, i = n.onEvents, o = n.onChartReady, a = this.updateEChartsOption(); - this.bindEvents(a, i || {}), rP(o) && o(a), this.ele && lee(this.ele, function() { + this.bindEvents(a, i || {}), rP(o) && o(a), this.ele && dee(this.ele, function() { r.resize(); }); }, t.prototype.bindEvents = function(r, n) { function i(a, s) { - I9e(a) && rP(s) && r.on(a, function(l) { + z9e(a) && rP(s) && r.on(a, function(l) { s(l, r); }); } @@ -94217,19 +94258,19 @@ var O9e = ( r.ele = l; }, style: s, className: "echarts-for-react " + a }); }, t; - }(Sre) -), uee = ( + }(xre) +), fee = ( /** @class */ function(e) { - aK(t, e); + cK(t, e); function t(r) { var n = e.call(this, r) || this; - return n.echarts = c9e, n; + return n.echarts = S9e, n; } return t; - }(O9e) + }(W9e) ); -mo.extend(a7); +mo.extend(c7); function nP(e, t) { var s; const r = `Overall Conversion (${((s = t == null ? void 0 : t.conversion) == null ? void 0 : s.criteria) || "Uniques"})`; @@ -94237,7 +94278,7 @@ function nP(e, t) { const i = e != null && e.cohort ? e.cohort_value ? `${e.cohort}` : `Not in ${e.cohort}` : "", o = [...(e == null ? void 0 : e.dimensions) ?? []], a = o != null && o.length ? o.map((l) => `${l.name} is ${l.value}`).join(" & ") : ""; return (i || a) && (n = `${i}${i && a ? ", " : ""}${a}`), { conversionCriteriaLabel: r, seriesNameToGroupBy: n }; } -const L9e = ({ +const j9e = ({ eventName: e, eventIndex: t, columnFields: r, @@ -94256,7 +94297,7 @@ const L9e = ({ } return ((l = o[t]) == null ? void 0 : l.name) === e && ((u = (c = o[t]) == null ? void 0 : c.label) == null ? void 0 : u.split(i)[0]) || e; }; -function F9e({ +function U9e({ chartData: e, queryConfiguration: t, themeColors: r, @@ -94479,7 +94520,7 @@ function F9e({ stepIndex: l }); }); - const c = L9e({ + const c = j9e({ eventName: e[0].steps[l].event_name, eventIndex: l, funnelsConfiguration: t @@ -94488,18 +94529,18 @@ function F9e({ } return a; } -function N9e({ +function K9e({ chartResponse: e, queryConfiguration: t }) { - const { themeColors: r, currentTheme: n } = Vm(), i = F9e({ + const { themeColors: r, currentTheme: n } = Gm(), i = U9e({ chartData: e == null ? void 0 : e.data, queryConfiguration: t, themeColors: r, themeMode: n }); - return /* @__PURE__ */ ne.jsxs( - Pt, + return /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, gap: 16, @@ -94507,16 +94548,16 @@ function N9e({ width: "100%" }, children: [ - /* @__PURE__ */ ne.jsx( - vi, + /* @__PURE__ */ ee.jsx( + li, { size: "small", style: { backgroundColor: "var(--background)", width: "100%" }, - children: /* @__PURE__ */ ne.jsx( - uee, + children: /* @__PURE__ */ ee.jsx( + fee, { style: { height: "40vh", width: "100%" }, option: i, @@ -94529,13 +94570,13 @@ function N9e({ ) } ), - /* @__PURE__ */ ne.jsx(Xt, { children: /* @__PURE__ */ ne.jsx(kv, { children: e.summary }) }) + /* @__PURE__ */ ee.jsx(Wt, { children: /* @__PURE__ */ ee.jsx(Ff, { children: e.summary }) }) ] } ); } -mo.extend(a7); -function k9e({ +mo.extend(c7); +function Y9e({ chartData: e, queryConfiguration: t, themeColors: r, @@ -94662,7 +94703,7 @@ function k9e({ color: r["--secondary-text"], formatter: (m) => { var C; - return w5( + return EH( m, (C = t == null ? void 0 : t.time) == null ? void 0 : C.granularity, !1 @@ -94741,7 +94782,7 @@ function k9e({ formatter: (m) => { var b; let y = "
"; - y += `
${$9e( + y += `
${q9e( m[0].name, (b = t == null ? void 0 : t.time) == null ? void 0 : b.granularity )}

`; @@ -94756,7 +94797,7 @@ function k9e({ return y += C.map( (w) => { var x, E, R; - return `
 ${(x = w.data) != null && x.prevPeriod ? `(${w5( + return `
 ${(x = w.data) != null && x.prevPeriod ? `(${EH( w.data.prevPeriod, ((E = t == null ? void 0 : t.time) == null ? void 0 : E.granularity) === "hour" ? "day" : (R = t == null ? void 0 : t.time) == null ? void 0 : R.granularity, !1 @@ -94770,7 +94811,7 @@ function k9e({ } }; } -const Ng = { +const $g = { hour: "h:mm A, Do MMM", day: "Do MMM", week: "Do MMM YYYY", @@ -94779,27 +94820,27 @@ const Ng = { year: "YYYY", all_time: "" }; -function w5(e, t, r = !0) { +function EH(e, t, r = !0) { return t === "week" ? `${mo(e).format( - Ng[t] - )} - ${mo(e).add(6, "day").format(Ng[t])}` : r ? mo(e).format(Ng[t]).replace(/ /g, ` -`) : mo(e).format(Ng[t]); + $g[t] + )} - ${mo(e).add(6, "day").format($g[t])}` : r ? mo(e).format($g[t]).replace(/ /g, ` +`) : mo(e).format($g[t]); } -function $9e(e, t) { - return t === "week" ? `${mo(e).format("[Week] WW, Do MMM YYYY")} - ${mo(e).add(6, "day").format("Do MMM YYYY")}` : t === "day" ? mo(e).format("Do MMM YYYY") : mo(e).format(Ng[t]); +function q9e(e, t) { + return t === "week" ? `${mo(e).format("[Week] WW, Do MMM YYYY")} - ${mo(e).add(6, "day").format("Do MMM YYYY")}` : t === "day" ? mo(e).format("Do MMM YYYY") : mo(e).format($g[t]); } -function B9e({ +function X9e({ chartResponse: e, queryConfiguration: t }) { - const { themeColors: r, currentTheme: n } = Vm(), i = k9e({ + const { themeColors: r, currentTheme: n } = Gm(), i = Y9e({ chartData: (e == null ? void 0 : e.data) ?? [], queryConfiguration: t ?? {}, themeColors: r, themeMode: n }); - return /* @__PURE__ */ ne.jsxs( - Pt, + return /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, gap: 16, @@ -94807,16 +94848,16 @@ function B9e({ width: "100%" }, children: [ - /* @__PURE__ */ ne.jsx( - vi, + /* @__PURE__ */ ee.jsx( + li, { size: "small", style: { backgroundColor: "var(--background)", width: "100%" }, - children: /* @__PURE__ */ ne.jsx( - uee, + children: /* @__PURE__ */ ee.jsx( + fee, { style: { height: "40vh", width: "100%" }, option: i, @@ -94829,12 +94870,12 @@ function B9e({ ) } ), - /* @__PURE__ */ ne.jsx(Xt, { children: /* @__PURE__ */ ne.jsx(kv, { children: e.summary }) }) + /* @__PURE__ */ ee.jsx(Wt, { children: /* @__PURE__ */ ee.jsx(Ff, { children: e.summary }) }) ] } ); } -function V9e({ +function Z9e({ index: e, messages: t, handleRegenerateResponse: r, @@ -94842,7 +94883,7 @@ function V9e({ customMessageActionCardItem: i = [] }) { var u; - const o = (u = t[e]) == null ? void 0 : u.content, [a, s] = Le(!1), l = () => { + const o = (u = t[e]) == null ? void 0 : u.content, [a, s] = Ie(!1), l = () => { const d = (() => { var p, g, v; const h = (p = o == null ? void 0 : o.query_response) == null ? void 0 : p.type, f = (g = o == null ? void 0 : o.query_response) == null ? void 0 : g.data; @@ -94859,15 +94900,15 @@ function V9e({ navigator.clipboard.writeText(d), s(!0), setTimeout(() => { s(!1); }, 2e3); - }, c = Ct( + }, c = St( () => ({ - copy: /* @__PURE__ */ ne.jsx( - kr, + copy: /* @__PURE__ */ ee.jsx( + Fr, { size: "small", onClick: l, type: "text", - icon: a ? /* @__PURE__ */ ne.jsx(PD, { size: "0.7rem" }) : /* @__PURE__ */ ne.jsx(vz, { size: "0.7rem" }), + icon: a ? /* @__PURE__ */ ee.jsx(P2, { size: "0.7rem" }) : /* @__PURE__ */ ee.jsx(Cz, { size: "0.7rem" }), style: { fontSize: "0.7rem", color: "var(--secondary-text)" @@ -94875,8 +94916,8 @@ function V9e({ children: "Copy" } ), - regenerate: /* @__PURE__ */ ne.jsx( - kr, + regenerate: /* @__PURE__ */ ee.jsx( + Fr, { size: "small", onClick: () => { @@ -94887,7 +94928,7 @@ function V9e({ ); }, type: "text", - icon: /* @__PURE__ */ ne.jsx(gz, { size: "0.7rem" }), + icon: /* @__PURE__ */ ee.jsx(mz, { size: "0.7rem" }), style: { fontSize: "0.7rem", color: "var(--secondary-text)" @@ -94898,8 +94939,8 @@ function V9e({ }), [a, r, t] ); - return /* @__PURE__ */ ne.jsx( - vi, + return /* @__PURE__ */ ee.jsx( + li, { className: "ai-message-actions", size: "small", @@ -94913,16 +94954,16 @@ function V9e({ padding: 3 } }, - children: /* @__PURE__ */ ne.jsxs(Pt, { children: [ + children: /* @__PURE__ */ ee.jsxs(vt, { children: [ Object.keys(c).map( - (d) => !n.includes(d) && /* @__PURE__ */ ne.jsx(bre, { children: c[d] }, d) + (d) => !n.includes(d) && /* @__PURE__ */ ee.jsx(Ere, { children: c[d] }, d) ), i ] }) } ); } -function H9e({ +function Q9e({ index: e, messages: t, showMessageActionCard: r, @@ -94937,38 +94978,38 @@ function H9e({ const f = s.type || ((v = s == null ? void 0 : s.query_response) == null ? void 0 : v.type), p = (s == null ? void 0 : s.data) || ((m = s == null ? void 0 : s.query_response) == null ? void 0 : m.data), g = s == null ? void 0 : s.query_configuration; switch (f) { case "text": - return /* @__PURE__ */ ne.jsx(Xt, { children: /* @__PURE__ */ ne.jsx(kv, { children: p }) }); + return /* @__PURE__ */ ee.jsx(Wt, { children: /* @__PURE__ */ ee.jsx(Ff, { children: p }) }); case "trend": - return /* @__PURE__ */ ne.jsx( - B9e, + return /* @__PURE__ */ ee.jsx( + X9e, { chartResponse: s.query_response, queryConfiguration: g } ); case "funnel": - return /* @__PURE__ */ ne.jsx( - N9e, + return /* @__PURE__ */ ee.jsx( + K9e, { chartResponse: s.query_response, queryConfiguration: g } ); default: - return /* @__PURE__ */ ne.jsx(Xt, { children: "I am not sure how to respond to that, can you please try again?" }); + return /* @__PURE__ */ ee.jsx(Wt, { children: "I am not sure how to respond to that, can you please try again?" }); } }; debugger; - return /* @__PURE__ */ ne.jsxs( - Pt, + return /* @__PURE__ */ ee.jsxs( + vt, { style: { width: "90%" }, align: "flex-start", gap: 8, className: "ai-message-wrapper", children: [ - /* @__PURE__ */ ne.jsx( - ip, + /* @__PURE__ */ ee.jsx( + ap, { src: "/ai-icon.svg", height: 40, @@ -94980,8 +95021,8 @@ function H9e({ preview: !1 } ), - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, style: { @@ -94994,8 +95035,8 @@ function H9e({ index: e, handleSendFollowupMessage: i }) || d(), - c && /* @__PURE__ */ ne.jsx( - V9e, + c && /* @__PURE__ */ ee.jsx( + Z9e, { index: e, messages: t, @@ -95012,7 +95053,7 @@ function H9e({ } ); } -function z9e({ +function J9e({ messages: e, index: t, customMessageComponent: r @@ -95021,9 +95062,9 @@ function z9e({ const n = r == null ? void 0 : r.component, i = ({ messages: a, index: s - }) => n ? /* @__PURE__ */ ne.jsx(n, { messages: a, index: s }) : null; - return /* @__PURE__ */ ne.jsx(Pt, { style: { width: "100%" }, justify: "flex-end", gap: 12, children: /* @__PURE__ */ ne.jsx( - Pt, + }) => n ? /* @__PURE__ */ ee.jsx(n, { messages: a, index: s }) : null; + return /* @__PURE__ */ ee.jsx(vt, { style: { width: "100%" }, justify: "flex-end", gap: 12, children: /* @__PURE__ */ ee.jsx( + vt, { vertical: !0, style: { @@ -95031,8 +95072,8 @@ function z9e({ }, gap: 2, align: "flex-end", - children: /* @__PURE__ */ ne.jsx( - vi, + children: /* @__PURE__ */ ee.jsx( + li, { size: "small", style: { @@ -95041,13 +95082,13 @@ function z9e({ children: n ? i({ messages: e, index: t - }) : /* @__PURE__ */ ne.jsx(Xt, { children: (o = e[t]) == null ? void 0 : o.content }) + }) : /* @__PURE__ */ ee.jsx(Wt, { children: (o = e[t]) == null ? void 0 : o.content }) } ) } ) }); } -function Ytt({ +function ort({ messages: e, handleSendFollowupMessage: t, isMessageLoading: r, @@ -95057,14 +95098,14 @@ function Ytt({ customMessageComponent: a, customMessageActionCardItem: s }) { - const [l, c] = Le(""), u = ve(null); + const [l, c] = Ie(""), u = ve(null); Bt(() => { const h = u.current; h && (h.scrollTop = h.scrollHeight); }, [e]); const d = e.length > 1 && r || e.length === 1; - return /* @__PURE__ */ ne.jsxs( - Pt, + return /* @__PURE__ */ ee.jsxs( + vt, { style: { height: "100vh", @@ -95076,8 +95117,8 @@ function Ytt({ align: "center", justify: "flex-start", children: [ - /* @__PURE__ */ ne.jsx( - km, + /* @__PURE__ */ ee.jsx( + Bm, { title: "You'll lose your current chat history.", description: "Are you sure you want to start a new chat?", @@ -95087,8 +95128,8 @@ function Ytt({ onConfirm: () => { n([]); }, - children: /* @__PURE__ */ ne.jsx( - kr, + children: /* @__PURE__ */ ee.jsx( + Fr, { type: "primary", style: { @@ -95101,8 +95142,8 @@ function Ytt({ ) } ), - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsxs( + vt, { ref: u, vertical: !0, @@ -95119,8 +95160,8 @@ function Ytt({ rootClassName: "chat-container", gap: 48, children: [ - e.filter(Boolean).map((h, f) => h.type === "ai" ? /* @__PURE__ */ ne.jsx( - H9e, + e.filter(Boolean).map((h, f) => h.type === "ai" ? /* @__PURE__ */ ee.jsx( + Q9e, { index: f, messages: e, @@ -95131,8 +95172,8 @@ function Ytt({ customMessageActionCardItem: s }, f - ) : /* @__PURE__ */ ne.jsx( - z9e, + ) : /* @__PURE__ */ ee.jsx( + J9e, { index: f, messages: e, @@ -95140,12 +95181,12 @@ function Ytt({ }, f )), - d && /* @__PURE__ */ ne.jsx(lEe, {}) + d && /* @__PURE__ */ ee.jsx(CEe, {}) ] } ), - /* @__PURE__ */ ne.jsx( - mw, + /* @__PURE__ */ ee.jsx( + zm, { inputRef: null, userQuery: l, @@ -95161,19 +95202,19 @@ function Ytt({ } ); } -const x5 = ({ +const RH = ({ maxCount: e, data: t -}) => /* @__PURE__ */ ne.jsx( - Pt, +}) => /* @__PURE__ */ ee.jsx( + vt, { style: { width: "100%", marginTop: -4 }, justify: "flex-end", - children: /* @__PURE__ */ ne.jsxs( - Xt.Text, + children: /* @__PURE__ */ ee.jsxs( + Wt.Text, { type: "secondary", style: { @@ -95188,16 +95229,16 @@ const x5 = ({ ) } ); -function G9e({ +function e7e({ adGroup: e, handleUpdateAdGroup: t, areHeadingsDescriptionsLoading: r }) { - const [n, i] = Le( + const [n, i] = Ie( (e == null ? void 0 : e.headlines[0]) || "Headline" - ), [o, a] = Le( + ), [o, a] = Ie( (e == null ? void 0 : e.descriptions[0]) || "Description" - ), [s, l] = Le(!1), c = or(() => { + ), [s, l] = Ie(!1), c = or(() => { const u = e == null ? void 0 : e.headlines[Math.floor(Math.random() * (e == null ? void 0 : e.headlines.length))], d = e == null ? void 0 : e.descriptions[Math.floor(Math.random() * (e == null ? void 0 : e.descriptions.length))]; i(u), a(d); }, [e == null ? void 0 : e.headlines, e == null ? void 0 : e.descriptions]); @@ -95208,41 +95249,41 @@ function G9e({ }, 2e3)), () => { u && clearInterval(u); }; - }, [s, c]), /* @__PURE__ */ ne.jsx( - vi, + }, [s, c]), /* @__PURE__ */ ee.jsx( + li, { style: { width: "100%" }, - children: /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, gap: 12, children: [ - /* @__PURE__ */ ne.jsxs( - Pt, + children: /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, gap: 12, children: [ + /* @__PURE__ */ ee.jsxs( + vt, { style: { width: "100%" }, justify: "space-between", children: [ - /* @__PURE__ */ ne.jsx(Xt.Title, { level: 5, children: e == null ? void 0 : e.name }), - /* @__PURE__ */ ne.jsxs(Pt, { gap: 8, children: [ - /* @__PURE__ */ ne.jsx(yj, { type: "circle", percent: e.adStrength, size: 20 }), - /* @__PURE__ */ ne.jsx(Xt.Text, { children: "Ad Strength" }) + /* @__PURE__ */ ee.jsx(Wt.Title, { level: 5, children: e == null ? void 0 : e.name }), + /* @__PURE__ */ ee.jsxs(vt, { gap: 8, children: [ + /* @__PURE__ */ ee.jsx(bj, { type: "circle", percent: e.adStrength, size: 20 }), + /* @__PURE__ */ ee.jsx(Wt.Text, { children: "Ad Strength" }) ] }) ] } ), - /* @__PURE__ */ ne.jsx(Pt, { wrap: !0, gap: 4, children: e.keywords.map((u) => /* @__PURE__ */ ne.jsx(gw, { children: u }, u)) }), - /* @__PURE__ */ ne.jsx( - BI, + /* @__PURE__ */ ee.jsx(vt, { wrap: !0, gap: 4, children: e.keywords.map((u) => /* @__PURE__ */ ee.jsx(Lf, { children: u }, u)) }), + /* @__PURE__ */ ee.jsx( + BD, { style: { margin: 0 } } ), - /* @__PURE__ */ ne.jsxs(Pt, { gap: 24, children: [ - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsxs(vt, { gap: 24, children: [ + /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, flex: 0.5, @@ -95251,10 +95292,10 @@ function G9e({ }, gap: 16, children: [ - /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, gap: 8, children: [ - /* @__PURE__ */ ne.jsx(Xt.Text, { children: "Final URL" }), - /* @__PURE__ */ ne.jsx( - _l, + /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, gap: 8, children: [ + /* @__PURE__ */ ee.jsx(Wt.Text, { children: "Final URL" }), + /* @__PURE__ */ ee.jsx( + Ml, { value: e == null ? void 0 : e.url, onChange: (u) => { @@ -95269,20 +95310,20 @@ function G9e({ } ) ] }), - /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, gap: 8, children: [ - /* @__PURE__ */ ne.jsx(Xt.Text, { children: "Display Link" }), - /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, gap: 2, children: [ - /* @__PURE__ */ ne.jsx(Xt.Text, { type: "secondary", children: e == null ? void 0 : e.url }), - /* @__PURE__ */ ne.jsxs( - lw, + /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, gap: 8, children: [ + /* @__PURE__ */ ee.jsx(Wt.Text, { children: "Display Link" }), + /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, gap: 2, children: [ + /* @__PURE__ */ ee.jsx(Wt.Text, { type: "secondary", children: e == null ? void 0 : e.url }), + /* @__PURE__ */ ee.jsxs( + uw, { style: { width: "100%" }, children: [ "/", - /* @__PURE__ */ ne.jsx( - _l, + /* @__PURE__ */ ee.jsx( + Ml, { value: e == null ? void 0 : e.sub_urls[0], onChange: (u) => { @@ -95294,8 +95335,8 @@ function G9e({ } ), "/", - /* @__PURE__ */ ne.jsx( - _l, + /* @__PURE__ */ ee.jsx( + Ml, { value: e == null ? void 0 : e.sub_urls[1], onChange: (u) => { @@ -95311,9 +95352,9 @@ function G9e({ ) ] }) ] }), - /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, gap: 8, children: [ - /* @__PURE__ */ ne.jsx(Xt.Text, { children: "Headlines" }), - /* @__PURE__ */ ne.jsx( + /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, gap: 8, children: [ + /* @__PURE__ */ ee.jsx(Wt.Text, { children: "Headlines" }), + /* @__PURE__ */ ee.jsx( bo, { loading: r, @@ -95328,7 +95369,7 @@ function G9e({ headlines: u }); }, - suffixIcon: r ? void 0 : /* @__PURE__ */ ne.jsx(MP, {}), + suffixIcon: r ? void 0 : /* @__PURE__ */ ee.jsx(MP, {}), placeholder: r ? "Getting your headings..." : "Choose your headlines", options: e == null ? void 0 : e.headlines.map((u) => ({ label: u, @@ -95336,11 +95377,11 @@ function G9e({ })) } ), - /* @__PURE__ */ ne.jsx(x5, { maxCount: 15, data: e == null ? void 0 : e.headlines }) + /* @__PURE__ */ ee.jsx(RH, { maxCount: 15, data: e == null ? void 0 : e.headlines }) ] }), - /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, gap: 8, children: [ - /* @__PURE__ */ ne.jsx(Xt.Text, { children: "Descriptions" }), - /* @__PURE__ */ ne.jsx( + /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, gap: 8, children: [ + /* @__PURE__ */ ee.jsx(Wt.Text, { children: "Descriptions" }), + /* @__PURE__ */ ee.jsx( bo, { loading: r, @@ -95354,7 +95395,7 @@ function G9e({ descriptions: u }); }, - suffixIcon: r ? void 0 : /* @__PURE__ */ ne.jsx(MP, {}), + suffixIcon: r ? void 0 : /* @__PURE__ */ ee.jsx(MP, {}), style: { width: "100%" }, placeholder: r ? "Getting your descriptions..." : "Choose your descriptions", options: e == null ? void 0 : e.descriptions.map((u) => ({ @@ -95363,56 +95404,56 @@ function G9e({ })) } ), - /* @__PURE__ */ ne.jsx(x5, { maxCount: 4, data: e == null ? void 0 : e.descriptions }) + /* @__PURE__ */ ee.jsx(RH, { maxCount: 4, data: e == null ? void 0 : e.descriptions }) ] }) ] } ), - /* @__PURE__ */ ne.jsxs(Pt, { flex: 0.5, vertical: !0, gap: 8, children: [ - /* @__PURE__ */ ne.jsxs(Pt, { justify: "space-between", align: "flex-start", children: [ - /* @__PURE__ */ ne.jsx(Xt.Title, { level: 5, children: "Preview" }), - /* @__PURE__ */ ne.jsx( + /* @__PURE__ */ ee.jsxs(vt, { flex: 0.5, vertical: !0, gap: 8, children: [ + /* @__PURE__ */ ee.jsxs(vt, { justify: "space-between", align: "flex-start", children: [ + /* @__PURE__ */ ee.jsx(Wt.Title, { level: 5, children: "Preview" }), + /* @__PURE__ */ ee.jsx( wo, { title: s ? "Pause Preview" : "Play Preview", - children: /* @__PURE__ */ ne.jsx( - kr, + children: /* @__PURE__ */ ee.jsx( + Fr, { type: "text", size: "middle", onClick: () => { l((u) => !u); }, - icon: s ? /* @__PURE__ */ ne.jsx(wz, { size: "1.2rem", fill: "duotone" }) : /* @__PURE__ */ ne.jsx(xz, { size: "1.2rem", fill: "duotone" }) + icon: s ? /* @__PURE__ */ ee.jsx(Rz, { size: "1.2rem", fill: "duotone" }) : /* @__PURE__ */ ee.jsx(Pz, { size: "1.2rem", fill: "duotone" }) } ) } ) ] }), - /* @__PURE__ */ ne.jsx( - vi, + /* @__PURE__ */ ee.jsx( + li, { style: { width: "100%", height: "max-content", background: "var(--background)" }, - children: /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, children: [ - /* @__PURE__ */ ne.jsx(Xt.Title, { level: 5, children: "Sponsored" }), - /* @__PURE__ */ ne.jsxs(Xt.Text, { children: [ - /* @__PURE__ */ ne.jsx(Sz, {}), + children: /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, children: [ + /* @__PURE__ */ ee.jsx(Wt.Title, { level: 5, children: "Sponsored" }), + /* @__PURE__ */ ee.jsxs(Wt.Text, { children: [ + /* @__PURE__ */ ee.jsx(xz, {}), " ", e == null ? void 0 : e.url ] }), - /* @__PURE__ */ ne.jsx( - Xt.Title, + /* @__PURE__ */ ee.jsx( + Wt.Title, { level: 4, style: { color: "var(--primary-color)", margin: 0 }, children: n } ), - /* @__PURE__ */ ne.jsx(Xt.Text, { children: o }) + /* @__PURE__ */ ee.jsx(Wt.Text, { children: o }) ] }) } ) @@ -95422,7 +95463,7 @@ function G9e({ } ); } -function qtt({ +function art({ pageHeading: e, forecast: t, adGroups: r, @@ -95435,9 +95476,9 @@ function qtt({ handleSuggestChanges: c, inputPlaceholder: u = "Type your message here" }) { - const [d, h] = Le(""); - return /* @__PURE__ */ ne.jsxs( - Pt, + const [d, h] = Ie(""); + return /* @__PURE__ */ ee.jsxs( + vt, { style: { width: "100vw", @@ -95450,8 +95491,8 @@ function qtt({ align: "center", gap: 24, children: [ - /* @__PURE__ */ ne.jsx( - Xt.Title, + /* @__PURE__ */ ee.jsx( + Wt.Title, { level: 3, style: { @@ -95462,8 +95503,8 @@ function qtt({ children: e } ), - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsxs( + vt, { style: { width: "70vw", @@ -95475,8 +95516,8 @@ function qtt({ justify: "flex-start", gap: 24, children: [ - /* @__PURE__ */ ne.jsx(Nm, { spinning: a, children: /* @__PURE__ */ ne.jsx( - vi, + /* @__PURE__ */ ee.jsx($m, { spinning: a, children: /* @__PURE__ */ ee.jsx( + li, { size: "small", style: { @@ -95487,9 +95528,9 @@ function qtt({ padding: "16px 24px 4px" } }, - children: /* @__PURE__ */ ne.jsxs(Pt, { vertical: !0, gap: 12, children: [ - /* @__PURE__ */ ne.jsx( - lS, + children: /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, gap: 12, children: [ + /* @__PURE__ */ ee.jsx( + Nv, { layout: "vertical", column: 6, @@ -95498,7 +95539,7 @@ function qtt({ contentStyle: { fontSize: "1.5rem" }, - title: /* @__PURE__ */ ne.jsxs(Xt.Title, { level: 5, children: [ + title: /* @__PURE__ */ ee.jsxs(Wt.Title, { level: 5, children: [ "Forecast for ", t.date_range ] }), @@ -95530,8 +95571,8 @@ function qtt({ ] } ), - /* @__PURE__ */ ne.jsx( - lS, + /* @__PURE__ */ ee.jsx( + Nv, { colon: !1, size: "small", @@ -95550,8 +95591,8 @@ function qtt({ ] }) } ) }), - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, align: "flex-start", @@ -95562,9 +95603,10 @@ function qtt({ }, gap: 4, children: [ - /* @__PURE__ */ ne.jsx(Xt.Text, { type: "secondary", children: "Your Ad Groups" }), - r == null ? void 0 : r.map((f, p) => /* @__PURE__ */ ne.jsx( - G9e, + /* @__PURE__ */ ee.jsx(Wt.Text, { type: "secondary", children: "Your Ad Groups" }), + (r == null ? void 0 : r.length) === 0 && /* @__PURE__ */ ee.jsx(el, { active: !0 }), + r == null ? void 0 : r.map((f, p) => /* @__PURE__ */ ee.jsx( + e7e, { adGroup: f, areHeadingsDescriptionsLoading: s[p], @@ -95580,8 +95622,8 @@ function qtt({ ] } ), - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsxs( + vt, { justify: "flex-end", style: { @@ -95589,13 +95631,13 @@ function qtt({ }, gap: 16, children: [ - /* @__PURE__ */ ne.jsx(kr, { onClick: n, children: "Go Back" }), - /* @__PURE__ */ ne.jsx(kr, { type: "primary", onClick: l, children: "Create Campaign" }) + /* @__PURE__ */ ee.jsx(Fr, { onClick: n, children: "Go Back" }), + /* @__PURE__ */ ee.jsx(Fr, { type: "primary", onClick: l, children: "Create Campaign" }) ] } ), - /* @__PURE__ */ ne.jsx( - Pt, + /* @__PURE__ */ ee.jsx( + vt, { style: { position: "absolute", @@ -95603,8 +95645,8 @@ function qtt({ right: 32 }, gap: 12, - children: /* @__PURE__ */ ne.jsx( - km, + children: /* @__PURE__ */ ee.jsx( + Bm, { title: "You'll lose your current progress", description: "Are you sure you want to start from fresh?", @@ -95614,7 +95656,7 @@ function qtt({ onConfirm: () => { i(); }, - children: /* @__PURE__ */ ne.jsx(kr, { type: "primary", children: "Start fresh" }) + children: /* @__PURE__ */ ee.jsx(Fr, { type: "primary", children: "Start fresh" }) } ) } @@ -95622,8 +95664,8 @@ function qtt({ ] } ), - /* @__PURE__ */ ne.jsx( - mw, + /* @__PURE__ */ ee.jsx( + zm, { inputRef: null, userQuery: d, @@ -95640,7 +95682,7 @@ function qtt({ } ); } -function W9e({ +function t7e({ dataSource: e, columns: t, onRowClick: r, @@ -95656,18 +95698,18 @@ function W9e({ }; }), s = (l, c) => { if (c === "prev") - return /* @__PURE__ */ ne.jsxs(Xt.Link, { children: [ - /* @__PURE__ */ ne.jsx(Rd, { style: { fontSize: "0.6rem" } }), + return /* @__PURE__ */ ee.jsxs(Wt.Link, { children: [ + /* @__PURE__ */ ee.jsx(Rd, { style: { fontSize: "0.6rem" } }), " Previous" ] }); if (c === "next") - return /* @__PURE__ */ ne.jsxs(Xt.Link, { children: [ + return /* @__PURE__ */ ee.jsxs(Wt.Link, { children: [ "Next ", - /* @__PURE__ */ ne.jsx($c, { style: { fontSize: "0.6rem" } }) + /* @__PURE__ */ ee.jsx($c, { style: { fontSize: "0.6rem" } }) ] }); }; - return /* @__PURE__ */ ne.jsx( - el, + return /* @__PURE__ */ ee.jsx( + tl, { dataSource: e, columns: a, @@ -95683,8 +95725,8 @@ function W9e({ }), pagination: { showSizeChanger: !1, - showTotal: (l, c) => /* @__PURE__ */ ne.jsx( - Xt.Text, + showTotal: (l, c) => /* @__PURE__ */ ee.jsx( + Wt.Text, { style: { width: "100%", @@ -95708,7 +95750,7 @@ function W9e({ } ); } -function Xtt({ +function srt({ pageHeading: e, keywordsData: t, handleStartFresh: r, @@ -95717,7 +95759,7 @@ function Xtt({ handleSuggestChanges: o, areKeywordsLoading: a }) { - const [s, l] = Le(""), [c, u] = Le([]), [d, h] = Le(!1), f = [ + const [s, l] = Ie(""), [c, u] = Ie([]), [d, h] = Ie(!1), f = [ { title: "Keyword", dataIndex: "keyword", @@ -95766,8 +95808,8 @@ function Xtt({ h(!1); }, 2e3); }; - return /* @__PURE__ */ ne.jsxs( - Pt, + return /* @__PURE__ */ ee.jsxs( + vt, { style: { width: "100vw", @@ -95779,8 +95821,8 @@ function Xtt({ justify: "flex-start", vertical: !0, children: [ - /* @__PURE__ */ ne.jsx( - Xt.Title, + /* @__PURE__ */ ee.jsx( + Wt.Title, { level: 3, style: { @@ -95791,8 +95833,8 @@ function Xtt({ children: e } ), - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsxs( + vt, { style: { height: "100%", @@ -95805,8 +95847,8 @@ function Xtt({ justify: "flex-start", gap: 24, children: [ - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsxs( + vt, { justify: "space-between", style: { @@ -95814,9 +95856,9 @@ function Xtt({ }, align: "center", children: [ - /* @__PURE__ */ ne.jsxs(Pt, { gap: 24, align: "center", children: [ - /* @__PURE__ */ ne.jsx( - Xt.Title, + /* @__PURE__ */ ee.jsxs(vt, { gap: 24, align: "center", children: [ + /* @__PURE__ */ ee.jsx( + Wt.Title, { level: 5, style: { @@ -95829,35 +95871,35 @@ function Xtt({ children: i.description } ), - /* @__PURE__ */ ne.jsxs(Pt, { gap: 4, children: [ - /* @__PURE__ */ ne.jsx( - kr, + /* @__PURE__ */ ee.jsxs(vt, { gap: 4, children: [ + /* @__PURE__ */ ee.jsx( + Fr, { type: "text", style: { fontSize: "0.8rem" }, size: "small", - icon: /* @__PURE__ */ ne.jsx(TD, {}), + icon: /* @__PURE__ */ ee.jsx(T2, {}), children: i.country } ), - /* @__PURE__ */ ne.jsx( - kr, + /* @__PURE__ */ ee.jsx( + Fr, { type: "text", style: { fontSize: "0.8rem" }, size: "small", - icon: /* @__PURE__ */ ne.jsx(MD, {}), + icon: /* @__PURE__ */ ee.jsx(M2, {}), children: i.language } ) ] }) ] }), - /* @__PURE__ */ ne.jsx( - kr, + /* @__PURE__ */ ee.jsx( + Fr, { type: "primary", onClick: () => { @@ -95871,8 +95913,8 @@ function Xtt({ ] } ), - /* @__PURE__ */ ne.jsxs( - Pt, + /* @__PURE__ */ ee.jsxs( + vt, { vertical: !0, gap: 12, @@ -95880,22 +95922,22 @@ function Xtt({ width: "100%" }, children: [ - c.length > 0 && /* @__PURE__ */ ne.jsx( - vi, + c.length > 0 && /* @__PURE__ */ ee.jsx( + li, { size: "small", style: { width: "100%" }, - children: /* @__PURE__ */ ne.jsxs(Pt, { justify: "space-between", align: "center", children: [ - /* @__PURE__ */ ne.jsxs(Pt, { align: "center", children: [ - /* @__PURE__ */ ne.jsxs(Xt.Text, { children: [ + children: /* @__PURE__ */ ee.jsxs(vt, { justify: "space-between", align: "center", children: [ + /* @__PURE__ */ ee.jsxs(vt, { align: "center", children: [ + /* @__PURE__ */ ee.jsxs(Wt.Text, { children: [ c == null ? void 0 : c.length, " selected" ] }), - /* @__PURE__ */ ne.jsx(BI, { type: "vertical" }), - /* @__PURE__ */ ne.jsxs( - kr, + /* @__PURE__ */ ee.jsx(BD, { type: "vertical" }), + /* @__PURE__ */ ee.jsxs( + Fr, { size: "small", onClick: () => { @@ -95908,18 +95950,18 @@ function Xtt({ } ) ] }), - /* @__PURE__ */ ne.jsxs(Pt, { align: "center", gap: 8, children: [ - /* @__PURE__ */ ne.jsx(wo, { title: "Copy selected keywords", children: /* @__PURE__ */ ne.jsx( - kr, + /* @__PURE__ */ ee.jsxs(vt, { align: "center", gap: 8, children: [ + /* @__PURE__ */ ee.jsx(wo, { title: "Copy selected keywords", children: /* @__PURE__ */ ee.jsx( + Fr, { size: "small", type: "text", onClick: p, - children: d ? /* @__PURE__ */ ne.jsx(PD, { weight: "duotone" }) : /* @__PURE__ */ ne.jsx(yz, {}) + children: d ? /* @__PURE__ */ ee.jsx(P2, { weight: "duotone" }) : /* @__PURE__ */ ee.jsx(bz, {}) } ) }), - /* @__PURE__ */ ne.jsx( - kr, + /* @__PURE__ */ ee.jsx( + Fr, { size: "small", onClick: () => { @@ -95932,8 +95974,8 @@ function Xtt({ ] }) } ), - /* @__PURE__ */ ne.jsx( - W9e, + /* @__PURE__ */ ee.jsx( + t7e, { style: { width: "100%" @@ -95949,8 +95991,8 @@ function Xtt({ selectedRowKeys: c.map((g) => g.key) }, size: "small", - footer: () => /* @__PURE__ */ ne.jsx( - Xt.Text, + footer: () => /* @__PURE__ */ ee.jsx( + Wt.Text, { type: "secondary", style: { @@ -95967,8 +96009,8 @@ function Xtt({ ] } ), - /* @__PURE__ */ ne.jsx( - Pt, + /* @__PURE__ */ ee.jsx( + vt, { style: { position: "absolute", @@ -95976,8 +96018,8 @@ function Xtt({ right: 32 }, gap: 12, - children: /* @__PURE__ */ ne.jsx( - km, + children: /* @__PURE__ */ ee.jsx( + Bm, { title: "You'll lose your current progress", description: "Are you sure you want to start from fresh?", @@ -95987,13 +96029,13 @@ function Xtt({ onConfirm: () => { r(); }, - children: /* @__PURE__ */ ne.jsx(kr, { type: "primary", children: "Start fresh" }) + children: /* @__PURE__ */ ee.jsx(Fr, { type: "primary", children: "Start fresh" }) } ) } ), - /* @__PURE__ */ ne.jsx( - mw, + /* @__PURE__ */ ee.jsx( + zm, { inputRef: null, userQuery: s, @@ -96010,7 +96052,110 @@ function Xtt({ } ); } -var Tp = class { +function lrt({ + campaignName: e, + suggestions: t, + countrySelected: r, + languageSelected: n, + keywordsSelected: i, + handleSuggestChanges: o, + inputPlaceholder: a = "Type your message here" +}) { + const [s, l] = Ie(""); + return /* @__PURE__ */ ee.jsxs( + vt, + { + style: { + width: "100vw", + height: "100vh", + overflow: "hidden", + padding: 16 + }, + justify: "flex-start", + vertical: !0, + align: "center", + gap: 24, + children: [ + /* @__PURE__ */ ee.jsxs(Wt.Title, { level: 3, style: { fontFamily: "Sedan" }, children: [ + "Your campaign is created! ", + /* @__PURE__ */ ee.jsx(yz, { color: "var(--primary-color)" }) + ] }), + /* @__PURE__ */ ee.jsxs( + vt, + { + vertical: !0, + style: { + width: "70vw", + padding: "1vh 16px 20vh", + overflowY: "auto" + }, + gap: 24, + children: [ + /* @__PURE__ */ ee.jsx(li, { children: /* @__PURE__ */ ee.jsxs(vt, { vertical: !0, gap: 24, children: [ + /* @__PURE__ */ ee.jsxs(vt, { justify: "space-between", align: "center", children: [ + /* @__PURE__ */ ee.jsxs(vt, { align: "center", gap: 12, children: [ + /* @__PURE__ */ ee.jsx( + Wt.Title, + { + level: 4, + style: { + margin: 0 + }, + children: e + } + ), + /* @__PURE__ */ ee.jsx(Lf, { color: "blue", children: "Draft" }) + ] }), + /* @__PURE__ */ ee.jsx( + Wt.Text, + { + type: "secondary", + style: { + fontSize: "0.7rem" + }, + children: (/* @__PURE__ */ new Date()).toString() + } + ) + ] }), + /* @__PURE__ */ ee.jsx(vt, { gap: 4, wrap: !0, children: i.map((c) => /* @__PURE__ */ ee.jsx(Lf, { children: c }, c)) }), + /* @__PURE__ */ ee.jsx( + Nv, + { + items: [ + { label: "Country", children: r }, + { label: "Language", children: n } + ] + } + ) + ] }) }), + /* @__PURE__ */ ee.jsxs(Wt.Title, { level: 5, children: [ + " ", + "Suggestions on your campaign -" + ] }), + /* @__PURE__ */ ee.jsx(Ff, { children: t }), + /* @__PURE__ */ ee.jsx(vt, { children: /* @__PURE__ */ ee.jsx(Fr, { type: "primary", children: "Launch Campaign" }) }) + ] + } + ), + /* @__PURE__ */ ee.jsx( + zm, + { + inputRef: null, + userQuery: s, + setUserQuery: l, + handleSendMessage: () => { + o(s), l(""); + }, + placeholder: a, + isFollowupDisabled: !1, + width: "70vw" + } + ) + ] + } + ); +} +var Mp = class { constructor() { this.allSyncListeners = /* @__PURE__ */ new Map(), this.allAsyncListeners = /* @__PURE__ */ new Map(), this.globalSyncListeners = /* @__PURE__ */ new Set(), this.globalAsyncListeners = /* @__PURE__ */ new Set(), this.asyncFunctionsQueue = [], this.scheduled = !1, this.firedEvents = {}; } @@ -96090,10 +96235,10 @@ function Tr(e) { function th(e, t, r) { return e == null && t == null ? !0 : e != null && t != null && e.length === t.length && e.every((n, i) => r ? r(n, t[i]) : t[i] === n); } -function j9e(e) { +function r7e(e) { return e.sort((t, r) => t - r); } -function dee(e, t) { +function pee(e, t) { const r = e.indexOf(t); r >= 0 && (e[r] = e[e.length - 1], e.pop()); } @@ -96101,37 +96246,37 @@ function qi(e, t) { const r = e.indexOf(t); r >= 0 && e.splice(r, 1); } -function U9e(e, t) { +function n7e(e, t) { for (let r = 0; r < t.length; r++) - dee(e, t[r]); + pee(e, t[r]); } -function K9e(e, t) { +function i7e(e, t) { for (let r = 0; r < t.length; r++) qi(e, t[r]); } -function Sb(e, t, r) { +function wb(e, t, r) { e.splice(r, 0, t); } -function hee(e, t, r) { - K9e(e, t), t.slice().reverse().forEach((n) => Sb(e, n, r)); +function gee(e, t, r) { + i7e(e, t), t.slice().reverse().forEach((n) => wb(e, n, r)); } function yd(e, t) { return e.indexOf(t) > -1; } -function Y9e(e) { +function o7e(e) { return [].concat.apply([], e); } -function E5(e, t) { +function PH(e, t) { t == null || e == null || t.forEach((r) => e.push(r)); } -var fee = "__ag_Grid_Stop_Propagation", q9e = ["touchstart", "touchend", "touchmove", "touchcancel", "scroll"], iP = {}; -function jf(e) { - e[fee] = !0; +var vee = "__ag_Grid_Stop_Propagation", a7e = ["touchstart", "touchend", "touchmove", "touchcancel", "scroll"], iP = {}; +function Kf(e) { + e[vee] = !0; } function Lc(e) { - return e[fee] === !0; + return e[vee] === !0; } -var pee = /* @__PURE__ */ (() => { +var mee = /* @__PURE__ */ (() => { const e = { select: "input", change: "input", @@ -96148,7 +96293,7 @@ var pee = /* @__PURE__ */ (() => { return r = "on" + r, iP[r] = r in n; }; })(); -function aD(e, t, r) { +function a2(e, t, r) { let n = t; for (; n; ) { const i = e.getDomData(n, r); @@ -96158,22 +96303,22 @@ function aD(e, t, r) { } return null; } -function X9e(e, t) { - return !t || !e ? !1 : Q9e(t).indexOf(e) >= 0; +function s7e(e, t) { + return !t || !e ? !1 : c7e(t).indexOf(e) >= 0; } -function Z9e(e) { +function l7e(e) { const t = []; let r = e.target; for (; r; ) t.push(r), r = r.parentElement; return t; } -function Q9e(e) { +function c7e(e) { const t = e; - return t.path ? t.path : t.composedPath ? t.composedPath() : Z9e(t); + return t.path ? t.path : t.composedPath ? t.composedPath() : l7e(t); } -function J9e(e, t, r, n) { - const o = yd(q9e, r) ? { passive: !0 } : void 0; +function u7e(e, t, r, n) { + const o = yd(a7e, r) ? { passive: !0 } : void 0; e && e.addEventListener && e.addEventListener(t, r, n, o); } var De = class { @@ -96210,7 +96355,7 @@ var De = class { // eventService to have the best typing at the expense of BeanStub local events /** Add a local event listener against this BeanStub */ addEventListener(e, t) { - this.localEventService || (this.localEventService = new Tp()), this.localEventService.addEventListener(e, t); + this.localEventService || (this.localEventService = new Mp()), this.localEventService.addEventListener(e, t); } /** Remove a local event listener from this BeanStub */ removeEventListener(e, t) { @@ -96239,7 +96384,7 @@ var De = class { _setupListener(e, t, r) { if (this.destroyed) return () => null; - e instanceof HTMLElement ? J9e(this.getFrameworkOverrides(), e, t, r) : e.addEventListener(t, r); + e instanceof HTMLElement ? u7e(this.getFrameworkOverrides(), e, t, r) : e.addEventListener(t, r); const n = () => (e.removeEventListener(t, r), null); return this.destroyFunctions.push(n), () => (n(), this.destroyFunctions = this.destroyFunctions.filter((i) => i !== n), null); } @@ -96344,10 +96489,10 @@ function Ye(e, t = !1) { function Er(e) { return !Ye(e); } -function pi(e) { +function gi(e) { return e == null || e.length === 0; } -function sD(e) { +function s2(e) { return e != null && typeof e.toString == "function" ? e.toString() : null; } function Sd(e) { @@ -96360,18 +96505,18 @@ function Sd(e) { const t = parseInt(e, 10); return isNaN(t) ? void 0 : t; } -function lD(e) { +function l2(e) { if (e !== void 0) - return e === null || e === "" ? !1 : cD(e); + return e === null || e === "" ? !1 : c2(e); } -function cD(e) { +function c2(e) { return typeof e == "boolean" ? e : typeof e == "string" ? e.toUpperCase() === "TRUE" || e == "" : !1; } -function bb(e, t) { +function xb(e, t) { const r = e ? JSON.stringify(e) : null, n = t ? JSON.stringify(t) : null; return r === n; } -function e7e(e, t, r = !1) { +function d7e(e, t, r = !1) { const n = e == null, i = t == null; if (e && e.toNumber && (e = e.toNumber()), t && t.toNumber && (t = t.toNumber()), n && i) return 0; @@ -96390,7 +96535,7 @@ function e7e(e, t, r = !1) { return o(e, t); } } -function kC(e) { +function VC(e) { if (e instanceof Set || e instanceof Map) { const t = []; return e.forEach((r) => t.push(r)), t; @@ -96409,7 +96554,7 @@ function Ua(e, t) { t(r, n); } } -function gee(e) { +function yee(e) { const t = {}, r = Object.keys(e); for (let n = 0; n < r.length; n++) { if (HO.has(r[n])) @@ -96419,7 +96564,7 @@ function gee(e) { } return t; } -function uD(e, t) { +function u2(e, t) { if (!e) return; const r = e, n = {}; @@ -96427,10 +96572,10 @@ function uD(e, t) { if (t && t.indexOf(i) >= 0 || HO.has(i)) return; const o = r[i]; - hD(o) && o.constructor === Object ? n[i] = uD(o) : n[i] = o; + h2(o) && o.constructor === Object ? n[i] = u2(o) : n[i] = o; }), n; } -function dD(e) { +function d2(e) { if (!e) return []; const t = Object; @@ -96446,10 +96591,10 @@ function va(e, t, r = !0, n = !1) { if (HO.has(i)) return; let a = e[i]; - a !== o && (n && a == null && o != null && typeof o == "object" && o.constructor === Object && (a = {}, e[i] = a), hD(o) && hD(a) && !Array.isArray(a) ? va(a, o, r, n) : (r || o !== void 0) && (e[i] = o)); + a !== o && (n && a == null && o != null && typeof o == "object" && o.constructor === Object && (a = {}, e[i] = a), h2(o) && h2(a) && !Array.isArray(a) ? va(a, o, r, n) : (r || o !== void 0) && (e[i] = o)); }); } -function fv(e, t, r) { +function gv(e, t, r) { if (!t || !e) return; if (!r) @@ -96463,22 +96608,22 @@ function fv(e, t, r) { } return i; } -function hD(e) { +function h2(e) { return typeof e == "object" && e !== null; } -var t7e = { +var h7e = { resizable: !0, sortable: !0 -}, r7e = 0; -function vee() { - return r7e++; +}, f7e = 0; +function Cee() { + return f7e++; } function qc(e) { - return e instanceof yee; + return e instanceof bee; } -var mee = 20, yee = class extends De { +var See = 20, bee = class extends De { constructor(e, t, r, n) { - super(), this.isColumn = !0, this.instanceId = vee(), this.autoHeaderHeight = null, this.moving = !1, this.menuVisible = !1, this.lastLeftPinned = !1, this.firstRightPinned = !1, this.filterActive = !1, this.columnEventService = new Tp(), this.tooltipEnabled = !1, this.rowGroupActive = !1, this.pivotActive = !1, this.aggregationActive = !1, this.colDef = e, this.userProvidedColDef = t, this.colId = r, this.primary = n, this.setState(e); + super(), this.isColumn = !0, this.instanceId = Cee(), this.autoHeaderHeight = null, this.moving = !1, this.menuVisible = !1, this.lastLeftPinned = !1, this.firstRightPinned = !1, this.filterActive = !1, this.columnEventService = new Mp(), this.tooltipEnabled = !1, this.rowGroupActive = !1, this.pivotActive = !1, this.aggregationActive = !1, this.colDef = e, this.userProvidedColDef = t, this.colId = r, this.primary = n, this.setState(e); } wireBeans(e) { this.columnHoverService = e.columnHoverService; @@ -96524,7 +96669,7 @@ var mee = 20, yee = class extends De { } initMinAndMaxWidths() { const e = this.colDef; - this.minWidth = e.minWidth ?? mee, this.maxWidth = e.maxWidth ?? Number.MAX_SAFE_INTEGER; + this.minWidth = e.minWidth ?? See, this.maxWidth = e.maxWidth ?? Number.MAX_SAFE_INTEGER; } initTooltip() { this.tooltipEnabled = Ye(this.colDef.tooltipField) || Ye(this.colDef.tooltipValueGetter) || Ye(this.colDef.tooltipComponent); @@ -96619,7 +96764,7 @@ var mee = 20, yee = class extends De { } /** Get value from ColDef or default if it exists. */ getColDefValue(e) { - return this.colDef[e] ?? t7e[e]; + return this.colDef[e] ?? h7e[e]; } isColumnFunc(e, t) { if (typeof t == "boolean") @@ -96880,11 +97025,11 @@ var mee = 20, yee = class extends De { } }; function Yi(e) { - return e instanceof $C; + return e instanceof HC; } -var $C = class extends De { +var HC = class extends De { constructor(e, t, r, n) { - super(), this.isColumn = !1, this.expandable = !1, this.instanceId = vee(), this.expandableListenerRemoveCallback = null, this.colGroupDef = e, this.groupId = t, this.expanded = !!e && !!e.openByDefault, this.padding = r, this.level = n; + super(), this.isColumn = !1, this.expandable = !1, this.instanceId = Cee(), this.expandableListenerRemoveCallback = null, this.colGroupDef = e, this.groupId = t, this.expanded = !!e && !!e.openByDefault, this.padding = r, this.level = n; } destroy() { this.expandableListenerRemoveCallback && this.reset(null, void 0), super.destroy(); @@ -96983,7 +97128,7 @@ var $C = class extends De { onColumnVisibilityChanged() { this.setExpandable(); } -}, n7e = { +}, p7e = { numericColumn: { headerClass: "ag-right-aligned-header", cellClass: "ag-right-aligned-cell" @@ -96992,9 +97137,9 @@ var $C = class extends De { headerClass: "ag-right-aligned-header", cellClass: "ag-right-aligned-cell" } -}, R5 = {}; +}, TH = {}; function zO(e, t) { - R5[t] || (e(), R5[t] = !0); + TH[t] || (e(), TH[t] = !0); } function qa(e, ...t) { console.log("AG Grid: " + e, ...t); @@ -97008,17 +97153,17 @@ function Vr(e, ...t) { function GO(e) { return !!(e && e.constructor && e.call && e.apply); } -function i7e(e) { - o7e(e, 400); +function g7e(e) { + v7e(e, 400); } var oP = [], aP = !1; -function P5(e) { +function _H(e) { oP.push(e), !aP && (aP = !0, window.setTimeout(() => { const t = oP.slice(); oP.length = 0, aP = !1, t.forEach((r) => r()); }, 0)); } -function o7e(e, t = 0) { +function v7e(e, t = 0) { e.length > 0 && window.setTimeout(() => e.forEach((r) => r()), t); } function Xi(e, t) { @@ -97030,14 +97175,14 @@ function Xi(e, t) { }, t); }; } -function T5(e, t) { +function MH(e, t) { let r = 0; return function(...n) { const i = this, o = (/* @__PURE__ */ new Date()).getTime(); o - r < t || (r = o, e.apply(i, n)); }; } -function a7e(e, t, r = 100, n) { +function m7e(e, t, r = 100, n) { const i = (/* @__PURE__ */ new Date()).getTime(); let o = null, a = !1; const s = () => { @@ -97046,10 +97191,10 @@ function a7e(e, t, r = 100, n) { }; s(), a || (o = window.setInterval(s, 10)); } -function s7e(...e) { +function y7e(...e) { return (t) => e.reduce((r, n) => n(r), t); } -var l7e = class { +var C7e = class { constructor() { this.existingKeys = {}; } @@ -97058,7 +97203,7 @@ var l7e = class { this.existingKeys[e[t]] = !0; } getUniqueKey(e, t) { - e = sD(e); + e = s2(e); let r = 0; for (; ; ) { let n; @@ -97067,7 +97212,7 @@ var l7e = class { r++; } } -}, fy = "ag-Grid-AutoColumn"; +}, vy = "ag-Grid-AutoColumn"; function WO(e) { const t = [], r = (n) => { for (let i = 0; i < n.length; i++) { @@ -97077,29 +97222,29 @@ function WO(e) { }; return r(e), t; } -function Sl(e) { +function bl(e) { return e.reduce((t, r) => t + r.getActualWidth(), 0); } function af(e, t, r) { const n = {}; if (!t) return; - Kl(null, t, (o) => { + Yl(null, t, (o) => { n[o.getInstanceId()] = o; - }), r && Kl(null, r, (o) => { + }), r && Yl(null, r, (o) => { n[o.getInstanceId()] = null; }); const i = Object.values(n).filter((o) => o != null); e.destroyBeans(i); } -function _5(e) { - return e.getId().startsWith(fy); +function DH(e) { + return e.getId().startsWith(vy); } -function BC(e) { +function zC(e) { let t = []; return e instanceof Array ? e.some((n) => typeof n != "string") ? Be("if colDef.type is supplied an array it should be of type 'string[]'") : t = e : typeof e == "string" ? t = e.split(",") : Be("colDef.type should be of type 'string' | 'string[]'"), t; } -var c7e = class extends De { +var S7e = class extends De { constructor() { super(...arguments), this.beanName = "columnFactory"; } @@ -97107,7 +97252,7 @@ var c7e = class extends De { this.dataTypeService = e.dataTypeService; } createColumnTree(e, t, r, n) { - const i = new l7e(), { existingCols: o, existingGroups: a, existingColKeys: s } = this.extractExistingTreeData(r); + const i = new C7e(), { existingCols: o, existingGroups: a, existingColKeys: s } = this.extractExistingTreeData(r); i.addExistingKeys(s); const l = this.recursivelyCreateColumns( e, @@ -97118,7 +97263,7 @@ var c7e = class extends De { a, n ), c = this.findMaxDept(l, 0), u = this.balanceColumnTree(l, 0, c, i); - return Kl(null, u, (h, f) => { + return Yl(null, u, (h, f) => { Yi(h) && h.setupExpandable(), h.setOriginalParent(f); }), { columnTree: u, @@ -97127,7 +97272,7 @@ var c7e = class extends De { } extractExistingTreeData(e) { const t = [], r = [], n = []; - return e && Kl(null, e, (i) => { + return e && Yl(null, e, (i) => { if (Yi(i)) { const o = i; r.push(o); @@ -97142,7 +97287,7 @@ var c7e = class extends De { return e.forEach((i) => { let o = i; for (let a = n - 1; a >= 0; a--) { - const s = new $C(null, `FAKE_PATH_${i.getId()}}_${a}`, !0, a); + const s = new HC(null, `FAKE_PATH_${i.getId()}}_${a}`, !0, a); this.createBean(s), s.setChildren([o]), o.setOriginalParent(s), o = s; } n === 0 && i.setOriginalParent(null), r.push(o); @@ -97169,7 +97314,7 @@ var c7e = class extends De { } else { let s, l; for (let c = r - 1; c >= t; c--) { - const u = n.getUniqueKey(null, null), d = this.createMergedColGroupDef(null), h = new $C(d, u, !0, t); + const u = n.getUniqueKey(null, null), d = this.createMergedColGroupDef(null), h = new HC(d, u, !0, t); this.createBean(h), l && l.setChildren([h]), l = h, s || (s = l); } if (s && l) @@ -97221,7 +97366,7 @@ var c7e = class extends De { return s; } createColumnGroup(e, t, r, n, i, o, a) { - const s = this.createMergedColGroupDef(t), l = i.getUniqueKey(s.groupId || null, null), c = new $C(s, l, !1, r); + const s = this.createMergedColGroupDef(t), l = i.getUniqueKey(s.groupId || null, null), c = new HC(s, l, !1, r); this.createBean(c); const u = this.findExistingGroup(t, o); u && o.splice(u.idx, 1); @@ -97252,7 +97397,7 @@ var c7e = class extends De { a.setColDef(l, t, i), this.applyColumnState(a, l, i); } else { const l = n.getUniqueKey(t.colId, t.field), c = this.addColumnDefaultAndTypes(t, l); - a = new yee(c, t, l, e), this.createBean(a); + a = new bee(c, t, l, e), this.createBean(a); } return (s = this.dataTypeService) == null || s.addColumnListeners(a), a; } @@ -97270,7 +97415,7 @@ var c7e = class extends De { t.sort !== void 0 && (t.sort == "asc" || t.sort == "desc" ? e.setSort(t.sort, r) : e.setSort(void 0, r)); const o = Sd(t.sortIndex); o !== void 0 && e.setSortIndex(o); - const a = lD(t.hide); + const a = l2(t.hide); a !== void 0 && e.setVisible(!a, r), t.pinned !== void 0 && e.setPinned(t.pinned); } findExistingColumn(e, t) { @@ -97322,12 +97467,12 @@ var c7e = class extends De { t, r ), i = t.type ?? n ?? e.type; - return e.type = i, i ? BC(i) : void 0; + return e.type = i, i ? zC(i) : void 0; } assignColumnTypes(e, t) { if (!e.length) return; - const r = Object.assign({}, n7e), n = this.gos.get("columnTypes") || {}; + const r = Object.assign({}, p7e), n = this.gos.get("columnTypes") || {}; Ua(n, (i, o) => { i in r ? Be(`the column type '${i}' is a default column type and cannot be overridden.`) : (o.type && Be( "Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type." @@ -97342,14 +97487,14 @@ var c7e = class extends De { return e.children !== void 0; } }; -function Kl(e, t, r) { +function Yl(e, t, r) { if (t) for (let n = 0; n < t.length; n++) { const i = t[n]; - Yi(i) && Kl(i, i.getChildren(), r), r(i, e); + Yi(i) && Yl(i, i.getChildren(), r), r(i, e); } } -var u7e = class extends De { +var b7e = class extends De { constructor() { super(...arguments), this.beanName = "columnModel", this.pivotMode = !1, this.autoHeightActiveAtLeastOnce = !1, this.ready = !1, this.changeEventsDispatching = !1, this.shouldQueueResizeOperations = !1, this.resizeOperationQueue = []; } @@ -97420,7 +97565,7 @@ var u7e = class extends De { getColsToShow() { const e = this.isPivotMode() && !this.isShowingPivotResult(), t = this.funcColsService.getValueColumns(); return this.cols.list.filter((n) => { - const i = _5(n); + const i = DH(n); if (e) { const o = t && yd(t, n); return i || o; @@ -97429,7 +97574,7 @@ var u7e = class extends De { }); } addAutoCols() { - this.autoCols != null && (this.cols.list = this.autoCols.list.concat(this.cols.list), this.cols.tree = this.autoCols.tree.concat(this.cols.tree), d7e(this.cols)); + this.autoCols != null && (this.cols.list = this.autoCols.list.concat(this.cols.list), this.cols.tree = this.autoCols.tree.concat(this.cols.tree), w7e(this.cols)); } createAutoCols() { var p, g; @@ -97440,7 +97585,7 @@ var u7e = class extends De { o(); return; } - const a = this.autoColService.createAutoCols(r) ?? [], s = h7e(a, ((p = this.autoCols) == null ? void 0 : p.list) || null), l = this.cols.treeDepth, u = (this.autoCols ? this.autoCols.treeDepth : -1) == l; + const a = this.autoColService.createAutoCols(r) ?? [], s = x7e(a, ((p = this.autoCols) == null ? void 0 : p.list) || null), l = this.cols.treeDepth, u = (this.autoCols ? this.autoCols.treeDepth : -1) == l; if (s && u) return; o(); @@ -97454,7 +97599,7 @@ var u7e = class extends De { const f = (v) => { if (!v) return null; - const m = v.filter((y) => !_5(y)); + const m = v.filter((y) => !DH(y)); return [...a, ...m]; }; this.lastOrder = f(this.lastOrder), this.lastPivotOrder = f(this.lastPivotOrder); @@ -97475,7 +97620,7 @@ var u7e = class extends De { ); } setColsPinned(e, t, r) { - if (!this.cols || pi(e)) + if (!this.cols || gi(e)) return; if (this.gos.isDomLayout("print")) { Be("Changing the column pinning status is not allowed with domLayout='print'"); @@ -97500,7 +97645,7 @@ var u7e = class extends De { getProvidedColGroup(e) { var r; let t = null; - return Kl(null, (r = this.cols) == null ? void 0 : r.tree, (n) => { + return Yl(null, (r = this.cols) == null ? void 0 : r.tree, (n) => { Yi(n) && n.getId() === e && (t = n); }), t; } @@ -97544,7 +97689,7 @@ var u7e = class extends De { return; } const d = u.map((f) => s.indexOf(f)), h = Math.max(...d); - Sb(s, l, h + 1); + wb(s, l, h + 1); }), this.cols.list = s; } orderColsLikeColDefCols() { @@ -97569,7 +97714,7 @@ var u7e = class extends De { const o = i.getColId(); if (r[o] != null) return; - o.startsWith(fy) ? Sb(t, i, n++) : t.push(i); + o.startsWith(vy) ? wb(t, i, n++) : t.push(i); }), t = this.columnMoveService.placeLockedColumns(t), !this.columnMoveService.doesMovePassMarryChildren(t)) { Be( "Applying column order broke a group where columns should be married together. Applying new order has been discarded." @@ -97607,7 +97752,7 @@ var u7e = class extends De { } moveInCols(e, t, r) { var n; - hee((n = this.cols) == null ? void 0 : n.list, e, t), this.visibleColsService.refresh(r); + gee((n = this.cols) == null ? void 0 : n.list, e, t), this.visibleColsService.refresh(r); } positionLockedCols() { this.cols.list = this.columnMoveService.placeLockedColumns(this.cols.list); @@ -97667,7 +97812,7 @@ var u7e = class extends De { // + clientSideRowModel isPivotActive() { const e = this.funcColsService.getPivotColumns(); - return this.pivotMode && !pi(e); + return this.pivotMode && !gi(e); } // called when dataTypes change recreateColumnDefs(e) { @@ -97726,12 +97871,12 @@ var u7e = class extends De { if (typeof e == "string" && r[e]) return r[e]; for (let i = 0; i < n.length; i++) - if (M5(n[i], e)) + if (IH(n[i], e)) return n[i]; return this.getAutoCol(e); } getAutoCol(e) { - return this.autoCols == null ? null : this.autoCols.list.find((t) => M5(t, e)) || null; + return this.autoCols == null ? null : this.autoCols.list.find((t) => IH(t, e)) || null; } getAutoCols() { var e; @@ -97782,17 +97927,17 @@ var u7e = class extends De { function sf(e) { return e === "gridOptionsUpdated" ? "gridOptionsChanged" : e; } -function d7e(e) { +function w7e(e) { e.map = {}, e.list.forEach((t) => e.map[t.getId()] = t); } -function M5(e, t) { +function IH(e, t) { const r = e === t, n = e.getColDef() === t, i = e.getColId() == t; return r || n || i; } -function h7e(e, t) { +function x7e(e, t) { return th(e, t, (r, n) => r.getColId() === n.getColId()); } -var f7e = class extends De { +var E7e = class extends De { constructor() { super(...arguments), this.beanName = "columnAutosizeService", this.timesDelayed = 0; } @@ -97867,7 +98012,7 @@ var f7e = class extends De { const n = e.getMaxWidth(); return e.isGreaterThanMax(t) && (t = n), t; } -}, p7e = class extends De { +}, R7e = class extends De { constructor() { super(...arguments), this.beanName = "funcColsService", this.rowGroupCols = [], this.valueCols = [], this.pivotCols = []; } @@ -97912,7 +98057,7 @@ var f7e = class extends De { return this.rowGroupCols ? this.rowGroupCols : []; } isRowGroupEmpty() { - return pi(this.rowGroupCols); + return gi(this.rowGroupCols); } setColumnAggFunc(e, t, r) { if (!e) @@ -98038,7 +98183,7 @@ var f7e = class extends De { } setColList(e, t, r, n, i, o, a) { const s = this.columnModel.getCols(); - if (pi(s)) + if (gi(s)) return; const l = /* @__PURE__ */ new Map(); t.forEach((u, d) => l.set(u, d)), t.length = 0, Ye(e) && e.forEach((u) => { @@ -98057,7 +98202,7 @@ var f7e = class extends De { }), i && this.columnModel.refreshCols(), this.visibleColsService.refresh(a), this.eventDispatcher.columnChanged(r, [...l.keys()], a); } updateColList(e, t, r, n, i, o, a) { - if (!e || pi(e)) + if (!e || gi(e)) return; let s = !1; e.forEach((l) => { @@ -98130,7 +98275,7 @@ var f7e = class extends De { extractColsCommon(e = [], t = [], r, n, i, o, a) { const s = [], l = []; (this.columnModel.getColDefCols() || []).forEach((h) => { - const f = e.indexOf(h) < 0, p = h.getColDef(), g = lD(o(p)), v = lD(a(p)), m = Sd(n(p)), y = Sd(i(p)); + const f = e.indexOf(h) < 0, p = h.getColDef(), g = l2(o(p)), v = l2(a(p)), m = Sd(n(p)), y = Sd(i(p)); let C; g !== void 0 ? C = g : m !== void 0 ? m === null ? C = !1 : C = m >= 0 : f ? v !== void 0 ? C = v : y !== void 0 ? C = y != null && y >= 0 : C = !1 : C = t.indexOf(h) >= 0, C && ((f ? m != null || y != null : m != null) ? s.push(h) : l.push(h)); }); @@ -98206,7 +98351,7 @@ var f7e = class extends De { "initialPivotIndex" ), Object.values(r); } -}, g7e = class extends De { +}, P7e = class extends De { constructor() { super(...arguments), this.beanName = "columnApplyStateService"; } @@ -98215,7 +98360,7 @@ var f7e = class extends De { } applyColumnState(e, t) { const r = this.columnModel.getColDefCols() || []; - if (pi(r)) + if (gi(r)) return !1; if (e && e.state && !e.state.forEach) return Be( @@ -98227,7 +98372,7 @@ var f7e = class extends De { const m = this.funcColsService.getRowGroupColumns().slice(), y = this.funcColsService.getPivotColumns().slice(); s.forEach((x) => { const E = x.colId || ""; - if (E.startsWith(fy)) { + if (E.startsWith(vy)) { p.push(x), g.push(x); return; } @@ -98254,8 +98399,8 @@ var f7e = class extends De { n ); d.forEach(C), this.funcColsService.sortRowGroupColumns( - D5.bind(this, h, m) - ), this.funcColsService.sortPivotColumns(D5.bind(this, f, y)), this.columnModel.refreshCols(); + AH.bind(this, h, m) + ), this.funcColsService.sortPivotColumns(AH.bind(this, f, y)), this.columnModel.refreshCols(); const w = (this.columnModel.getAutoCols() || []).slice(); return p.forEach((x) => { const E = this.columnModel.getAutoCol(x.colId); @@ -98289,7 +98434,7 @@ var f7e = class extends De { } resetColumnState(e) { const t = this.columnModel.getColDefCols(); - if (pi(t)) + if (gi(t)) return; const r = this.columnModel.getColDefColTree(), n = WO(r), i = []; let o = 1e3, a = 1e3, s = []; @@ -98338,7 +98483,7 @@ var f7e = class extends De { c !== void 0 && e.setVisible(!c, a); const u = l("pinned").value1; u !== void 0 && e.setPinned(u); - const d = e.getColDef().minWidth ?? mee, h = l("flex").value1; + const d = e.getColDef().minWidth ?? See, h = l("flex").value1; if (h !== void 0 && e.setFlex(h), h == null) { const b = l("width").value1; b != null && d != null && b >= d && e.setActualWidth(b, a); @@ -98441,7 +98586,7 @@ var f7e = class extends De { } }), s.length && this.eventDispatcher.columnMoved({ movedColumns: s, source: t, finished: !0 }); } -}, D5 = (e, t, r, n) => { +}, AH = (e, t, r, n) => { const i = e[r.getId()], o = e[n.getId()], a = i != null, s = o != null; if (a && s) return i - o; @@ -98451,7 +98596,7 @@ var f7e = class extends De { return 1; const l = t.indexOf(r), c = t.indexOf(n), u = l >= 0, d = c >= 0; return u && d ? l - c : u ? -1 : 1; -}, v7e = class extends De { +}, T7e = class extends De { constructor() { super(...arguments), this.beanName = "columnMoveService"; } @@ -98485,7 +98630,7 @@ var f7e = class extends De { } getProposedColumnOrder(e, t) { const n = this.columnModel.getCols().slice(); - return hee(n, e, t), n; + return gee(n, e, t), n; } doesMovePassLockedPositions(e) { const t = (o) => o ? o === "left" || o === !0 ? -1 : 1 : 0, r = this.gos.get("enableRtl"); @@ -98498,7 +98643,7 @@ var f7e = class extends De { doesMovePassMarryChildren(e) { let t = !0; const r = this.columnModel.getColTree(); - return Kl(null, r, (n) => { + return Yl(null, r, (n) => { if (!Yi(n)) return; const i = n, o = i.getColGroupDef(); @@ -98520,7 +98665,7 @@ var f7e = class extends De { a === "right" ? n.push(o) : a === "left" || a === !0 ? t.push(o) : r.push(o); }), this.gos.get("enableRtl") ? [...n, ...r, ...t] : [...t, ...r, ...n]; } -}, m7e = /[&<>"']/g, y7e = { +}, _7e = /[&<>"']/g, M7e = { "&": "&", "<": "<", ">": ">", @@ -98531,15 +98676,15 @@ function zs(e, t) { if (e == null) return null; const r = e.toString().toString(); - return t ? r : r.replace(m7e, (n) => y7e[n]); + return t ? r : r.replace(_7e, (n) => M7e[n]); } -function C7e(e) { +function D7e(e) { if (!e || e == null) return null; const t = /([a-z])([A-Z])/g, r = /([A-Z]+)([A-Z])([a-z])/g; return e.replace(t, "$1 $2").replace(r, "$1 $2$3").replace(/\./g, " ").split(" ").map((i) => i.substring(0, 1).toUpperCase() + (i.length > 1 ? i.substring(1, i.length) : "")).join(" "); } -var S7e = class extends De { +var I7e = class extends De { constructor() { super(...arguments), this.beanName = "columnNameService"; } @@ -98575,7 +98720,7 @@ var S7e = class extends De { if (e.headerName != null) return e.headerName; if (e.field) - return C7e(e.field); + return D7e(e.field); } return ""; } @@ -98599,7 +98744,7 @@ var S7e = class extends De { } return t; } -}, b7e = class extends De { +}, A7e = class extends De { constructor() { super(...arguments), this.beanName = "pivotResultColsService"; } @@ -98663,7 +98808,7 @@ var S7e = class extends De { }; e && n(e); } -}, w7e = class extends De { +}, O7e = class extends De { constructor() { super(...arguments), this.beanName = "columnSizeService"; } @@ -98796,7 +98941,7 @@ var S7e = class extends De { let v = 0; const m = p.getMinWidth(), y = p.getMaxWidth(); if (g < m ? v = m : g > y && (v = y), v) { - p.setActualWidth(v, t), dee(o, p), s -= p.getFlex(), l.push(p), i += p.getActualWidth(); + p.setActualWidth(v, t), pee(o, p), s -= p.getFlex(), l.push(p), i += p.getActualWidth(); continue e; } c[f] = Math.round(g); @@ -98819,7 +98964,7 @@ var S7e = class extends De { n && ((h = n == null ? void 0 : n.columnLimits) == null || h.forEach(({ key: f, ...p }) => { i[typeof f == "string" ? f : f.getColId()] = p; })); - const o = this.visibleColsService.getAllCols(), a = e === Sl(o); + const o = this.visibleColsService.getAllCols(), a = e === bl(o); if (e <= 0 || !o.length || a) return; const s = [], l = []; @@ -98837,7 +98982,7 @@ var S7e = class extends De { typeof g == "number" && m < g ? f.setActualWidth(g, t, !0) : typeof v == "number" && m > v && f.setActualWidth(v, t, !0); }); !u; ) { u = !0; - const f = e - Sl(l); + const f = e - bl(l); if (f <= 0) s.forEach((p) => { var v; @@ -98849,7 +98994,7 @@ var S7e = class extends De { p.setMinimum(t); }); else { - const p = f / Sl(s); + const p = f / bl(s); let g = f; for (let v = s.length - 1; v >= 0; v--) { const m = s[v], y = i == null ? void 0 : i[m.getId()], C = (y == null ? void 0 : y.minWidth) ?? (n == null ? void 0 : n.defaultMinWidth), b = (y == null ? void 0 : y.maxWidth) ?? (n == null ? void 0 : n.defaultMaxWidth), w = m.getMinWidth(), x = m.getMaxWidth(), E = typeof C == "number" && C > w ? C : w, R = typeof b == "number" && b < x ? b : x; @@ -98883,13 +99028,13 @@ var S7e = class extends De { }); } }; -function Cee(e, t) { +function wee(e, t) { return e + "_" + t; } function zn(e) { - return e instanceof See; + return e instanceof xee; } -var See = class extends De { +var xee = class extends De { constructor(e, t, r, n) { super(), this.isColumn = !1, this.displayedChildren = [], this.parent = null, this.groupId = t, this.partId = r, this.providedColumnGroup = e, this.pinned = n; } @@ -98905,7 +99050,7 @@ var See = class extends De { this.parent = e; } getUniqueId() { - return Cee(this.groupId, this.partId); + return wee(this.groupId, this.partId); } isEmptyGroup() { return this.displayedChildren.length === 0; @@ -99046,7 +99191,7 @@ var See = class extends De { } }), this.dispatchLocalEvent({ type: "displayedChildrenChanged" }); } -}, bee = class { +}, Eee = class { constructor() { this.existingIds = {}; } @@ -99055,7 +99200,7 @@ var See = class extends De { let r; return typeof t != "number" ? r = 0 : r = t + 1, this.existingIds[e] = r, r; } -}, x7e = class extends De { +}, L7e = class extends De { constructor() { super(...arguments), this.beanName = "visibleColsService", this.colsAndGroupsMap = {}, this.columnsLeft = [], this.columnsRight = [], this.columnsCenter = [], this.columns = [], this.bodyWidth = 0, this.leftWidth = 0, this.rightWidth = 0, this.bodyWidthDirty = !0; } @@ -99067,7 +99212,7 @@ var See = class extends De { } // after setColumnWidth or updateGroupsAndPresentedCols updateBodyWidths() { - const e = Sl(this.columnsCenter), t = Sl(this.columnsLeft), r = Sl(this.columnsRight); + const e = bl(this.columnsCenter), t = bl(this.columnsLeft), r = bl(this.columnsRight); if (this.bodyWidthDirty = this.bodyWidth !== e, this.bodyWidth !== e || this.leftWidth !== t || this.rightWidth !== r) { this.bodyWidth = e, this.leftWidth = t, this.rightWidth = r; const i = { @@ -99091,7 +99236,7 @@ var See = class extends De { }); } buildTrees() { - const e = this.columnModel.getColsToShow(), t = e.filter((o) => o.getPinned() == "left"), r = e.filter((o) => o.getPinned() == "right"), n = e.filter((o) => o.getPinned() != "left" && o.getPinned() != "right"), i = new bee(); + const e = this.columnModel.getColsToShow(), t = e.filter((o) => o.getPinned() == "left"), r = e.filter((o) => o.getPinned() == "right"), n = e.filter((o) => o.getPinned() != "left" && o.getPinned() != "right"), i = new Eee(); this.treeLeft = this.createGroups({ columns: t, idCreator: i, @@ -99140,7 +99285,7 @@ var See = class extends De { const r = this.columnModel.getCols().slice(0), n = this.gos.get("enableRtl"); [this.columnsLeft, this.columnsRight, this.columnsCenter].forEach((i) => { if (n) { - let o = Sl(i); + let o = bl(i); i.forEach((a) => { o -= a.getActualWidth(), a.setLeft(o, e); }); @@ -99150,7 +99295,7 @@ var See = class extends De { a.setLeft(o, e), o += a.getActualWidth(); }); } - U9e(r, i); + n7e(r, i); }), r.forEach((i) => { i.setLeft(null, e); }); @@ -99326,11 +99471,11 @@ var See = class extends De { // + angularGrid -> setting pinned body width // note: this should be cached getColsLeftWidth() { - return Sl(this.columnsLeft); + return bl(this.columnsLeft); } // note: this should be cached getDisplayedColumnsRightWidth() { - return Sl(this.columnsRight); + return bl(this.columnsRight); } isColAtEdge(e, t) { const r = this.getAllCols(); @@ -99383,9 +99528,9 @@ var See = class extends De { return o || this.setupParentsIntoCols(s, null), s; } createColGroup(e, t, r, n, i) { - const o = e.getGroupId(), a = t.getInstanceIdForKey(o), s = Cee(o, a); + const o = e.getGroupId(), a = t.getInstanceIdForKey(o), s = wee(o, a); let l = r[s]; - return l && l.getProvidedColumnGroup() !== e && (l = null), Ye(l) ? l.reset() : (l = new See(e, o, a, n), i || this.createBean(l)), l; + return l && l.getProvidedColumnGroup() !== e && (l = null), Ye(l) ? l.reset() : (l = new xee(e, o, a, n), i || this.createBean(l)), l; } // returns back a 2d map of ColumnGroup as follows: groupId -> instanceId -> ColumnGroup mapOldGroupsById(e) { @@ -99425,7 +99570,7 @@ function sP(e) { qc(r) && t.push(r); }), t; } -var wee = [ +var Ree = [ "columnEverythingChanged", "newColumnsLoaded", "columnPivotModeChanged", @@ -99517,7 +99662,7 @@ var wee = [ "rowDragMove", "rowDragLeave", "rowDragEnd" -], E7e = [ +], F7e = [ "scrollbarWidthChanged", "keyShortcutChangedCellStart", "keyShortcutChangedCellEnd", @@ -99561,7 +99706,7 @@ var wee = [ "chartTitleEdit", "recalculateRowBounds", "stickyTopOffsetChanged" -], R7e = [...wee, ...E7e], P7e = { +], N7e = [...Ree, ...F7e], k7e = { enableBrowserTooltips: !0, tooltipTrigger: !0, tooltipMouseTrack: !0, @@ -99970,33 +100115,33 @@ Ai.ALL_PROPERTIES = [ ...Ai.BOOLEAN_PROPERTIES, ...Ai.OTHER_PROPERTIES ]; -var pm = Ai, Sa = class { +var vm = Ai, Sa = class { static getCallbackForEvent(t) { return !t || t.length < 2 ? t : "on" + t[0].toUpperCase() + t.substring(1); } }; Sa.VUE_OMITTED_PROPERTY = "AG-VUE-OMITTED-PROPERTY"; -Sa.PUBLIC_EVENTS = wee; -Sa.EVENT_CALLBACKS = R7e.map((e) => Sa.getCallbackForEvent(e)); -Sa.BOOLEAN_PROPERTIES = pm.BOOLEAN_PROPERTIES; -Sa.ALL_PROPERTIES = pm.ALL_PROPERTIES; +Sa.PUBLIC_EVENTS = Ree; +Sa.EVENT_CALLBACKS = N7e.map((e) => Sa.getCallbackForEvent(e)); +Sa.BOOLEAN_PROPERTIES = vm.BOOLEAN_PROPERTIES; +Sa.ALL_PROPERTIES = vm.ALL_PROPERTIES; Sa.ALL_PROPERTIES_AND_CALLBACKS = [...Sa.ALL_PROPERTIES, ...Sa.EVENT_CALLBACKS]; Sa.ALL_PROPERTIES_AND_CALLBACKS_SET = new Set(Sa.ALL_PROPERTIES_AND_CALLBACKS); -var gm = Sa; -function T7e(e, t) { +var mm = Sa; +function $7e(e, t) { typeof e != "object" && (e = {}); const r = { ...e }; - return gm.ALL_PROPERTIES_AND_CALLBACKS.forEach((i) => { + return mm.ALL_PROPERTIES_AND_CALLBACKS.forEach((i) => { const o = t[i]; - typeof o < "u" && o !== gm.VUE_OMITTED_PROPERTY && (r[i] = o); + typeof o < "u" && o !== mm.VUE_OMITTED_PROPERTY && (r[i] = o); }), r; } -function _7e(e, t) { +function B7e(e, t) { if (!e) return; const r = {}; let n = !1; - if (Object.keys(e).filter((a) => gm.ALL_PROPERTIES_AND_CALLBACKS_SET.has(a)).forEach((a) => { + if (Object.keys(e).filter((a) => mm.ALL_PROPERTIES_AND_CALLBACKS_SET.has(a)).forEach((a) => { r[a] = e[a], n = !0; }), !n) return; @@ -100012,7 +100157,7 @@ function _7e(e, t) { o[a] = s; }), t.dispatchEvent(o); } -var py = class { +var my = class { constructor(e) { this.cssClassStates = {}, this.getGui = e; } @@ -100059,99 +100204,99 @@ var py = class { } }; function Jl(e, t, r) { - r == null || typeof r == "string" && r == "" ? xee(e, t) : il(e, t, r); + r == null || typeof r == "string" && r == "" ? Pee(e, t) : ol(e, t, r); } -function il(e, t, r) { - e.setAttribute(Eee(t), r.toString()); +function ol(e, t, r) { + e.setAttribute(Tee(t), r.toString()); } -function xee(e, t) { - e.removeAttribute(Eee(t)); +function Pee(e, t) { + e.removeAttribute(Tee(t)); } -function Eee(e) { +function Tee(e) { return `aria-${e}`; } function cs(e, t) { t ? e.setAttribute("role", t) : e.removeAttribute("role"); } -function M7e(e) { +function V7e(e) { let t; return e === "asc" ? t = "ascending" : e === "desc" ? t = "descending" : e === "mixed" ? t = "other" : t = "none", t; } -function D7e(e) { +function H7e(e) { return e.getAttribute("aria-label"); } -function Uf(e, t) { +function Yf(e, t) { Jl(e, "label", t); } -function vm(e, t) { +function ym(e, t) { Jl(e, "labelledby", t); } -function Ree(e, t) { +function _ee(e, t) { Jl(e, "live", t); } -function I7e(e, t) { +function z7e(e, t) { Jl(e, "atomic", t); } -function A7e(e, t) { +function G7e(e, t) { Jl(e, "relevant", t); } -function O7e(e, t) { +function W7e(e, t) { Jl(e, "disabled", t); } function jO(e, t) { Jl(e, "hidden", t); } -function wb(e, t) { - il(e, "expanded", t); +function Eb(e, t) { + ol(e, "expanded", t); } -function L7e(e, t) { - il(e, "setsize", t); +function j7e(e, t) { + ol(e, "setsize", t); } -function F7e(e, t) { - il(e, "posinset", t); +function U7e(e, t) { + ol(e, "posinset", t); } -function N7e(e, t) { - il(e, "rowcount", t); +function K7e(e, t) { + ol(e, "rowcount", t); } -function k7e(e, t) { - il(e, "rowindex", t); +function Y7e(e, t) { + ol(e, "rowindex", t); } -function $7e(e, t) { - il(e, "colcount", t); +function q7e(e, t) { + ol(e, "colcount", t); } -function Pee(e, t) { - il(e, "colindex", t); +function Mee(e, t) { + ol(e, "colindex", t); } -function B7e(e, t) { - il(e, "colspan", t); +function X7e(e, t) { + ol(e, "colspan", t); } -function V7e(e, t) { - il(e, "sort", t); +function Z7e(e, t) { + ol(e, "sort", t); } -function H7e(e) { - xee(e, "sort"); +function Q7e(e) { + Pee(e, "sort"); } -function xb(e, t) { +function Rb(e, t) { Jl(e, "selected", t); } -function z7e(e, t) { - Jl(e, "controls", t.id), vm(t, e.id); +function J7e(e, t) { + Jl(e, "controls", t.id), ym(t, e.id); } function UO(e, t) { return t === void 0 ? e("ariaIndeterminate", "indeterminate") : t === !0 ? e("ariaChecked", "checked") : e("ariaUnchecked", "unchecked"); } -var lP, U0, cP, uP, dP, hP, fD, pD; -function Yl() { +var lP, q0, cP, uP, dP, hP, f2, p2; +function ql() { return lP === void 0 && (lP = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), lP; } -function Tee() { - if (U0 === void 0) - if (Yl()) { +function Dee() { + if (q0 === void 0) + if (ql()) { const e = navigator.userAgent.match(/version\/(\d+)/i); - e && (U0 = e[1] != null ? parseFloat(e[1]) : 0); + e && (q0 = e[1] != null ? parseFloat(e[1]) : 0); } else - U0 = 0; - return U0; + q0 = 0; + return q0; } function KO() { if (cP === void 0) { @@ -100160,25 +100305,25 @@ function KO() { } return cP; } -function _ee() { +function Iee() { return uP === void 0 && (uP = /(firefox)/i.test(navigator.userAgent)), uP; } -function Mee() { +function Aee() { return dP === void 0 && (dP = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)), dP; } function iu() { return hP === void 0 && (hP = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1), hP; } -function I5() { - return !Yl() || Tee() >= 15; +function OH() { + return !ql() || Dee() >= 15; } -function gD(e) { +function g2(e) { if (!e) return null; const t = e.tabIndex, r = e.getAttribute("tabIndex"); - return t === -1 && (r === null || r === "" && !_ee()) ? null : t.toString(); + return t === -1 && (r === null || r === "" && !Iee()) ? null : t.toString(); } -function G7e() { +function eje() { if (!document.body) return -1; let e = 1e6; @@ -100191,42 +100336,42 @@ function G7e() { } return document.body.removeChild(r), e; } -function W7e() { +function tje() { var e, t; return ((e = document.body) == null ? void 0 : e.clientWidth) ?? (window.innerHeight || ((t = document.documentElement) == null ? void 0 : t.clientWidth) || -1); } -function j7e() { +function rje() { var e, t; return ((e = document.body) == null ? void 0 : e.clientHeight) ?? (window.innerHeight || ((t = document.documentElement) == null ? void 0 : t.clientHeight) || -1); } -function U7e() { - return pD == null && Dee(), pD; +function nje() { + return p2 == null && Oee(), p2; } -function Dee() { +function Oee() { const e = document.body, t = document.createElement("div"); t.style.width = t.style.height = "100px", t.style.opacity = "0", t.style.overflow = "scroll", t.style.msOverflowStyle = "scrollbar", t.style.position = "absolute", e.appendChild(t); let r = t.offsetWidth - t.clientWidth; - r === 0 && t.clientWidth === 0 && (r = null), t.parentNode && t.parentNode.removeChild(t), r != null && (pD = r, fD = r === 0); + r === 0 && t.clientWidth === 0 && (r = null), t.parentNode && t.parentNode.removeChild(t), r != null && (p2 = r, f2 = r === 0); } -function Iee() { - return fD == null && Dee(), fD; +function Lee() { + return f2 == null && Oee(), f2; } -var K0, K7e = "[tabindex], input, select, button, textarea, [href]", Aee = "[disabled], .ag-disabled:not(.ag-button), .ag-disabled *"; +var X0, ije = "[tabindex], input, select, button, textarea, [href]", Fee = "[disabled], .ag-disabled:not(.ag-button), .ag-disabled *"; function YO(e) { - const t = Element.prototype.matches || Element.prototype.msMatchesSelector, n = t.call(e, "input, select, button, textarea"), i = t.call(e, Aee), o = qs(e); + const t = Element.prototype.matches || Element.prototype.msMatchesSelector, n = t.call(e, "input, select, button, textarea"), i = t.call(e, Fee), o = qs(e); return n && !i && o; } function Mn(e, t, r = {}) { const { skipAriaHidden: n } = r; e.classList.toggle("ag-hidden", !t), n || jO(e, !t); } -function Y7e(e, t, r = {}) { +function oje(e, t, r = {}) { const { skipAriaHidden: n } = r; e.classList.toggle("ag-invisible", !t), n || jO(e, !t); } -function mm(e, t) { +function Cm(e, t) { const r = "disabled", n = t ? (i) => i.setAttribute(r, "") : (i) => i.removeAttribute(r); - n(e), Nee(e.querySelectorAll("input"), (i) => n(i)); + n(e), Bee(e.querySelectorAll("input"), (i) => n(i)); } function Ef(e, t, r) { let n = 0; @@ -100281,19 +100426,19 @@ function qO(e) { const t = rh(e); return t.boxSizing === "border-box" ? t.height - t.paddingTop - t.paddingBottom : t.height; } -function gy(e) { +function yy(e) { const t = rh(e); return t.boxSizing === "border-box" ? t.width - t.paddingLeft - t.paddingRight : t.width; } -function Oee(e) { +function Nee(e) { const { height: t, marginBottom: r, marginTop: n } = rh(e); return Math.floor(t + r + n); } -function Eb(e) { +function Pb(e) { const { width: t, marginLeft: r, marginRight: n } = rh(e); return Math.floor(t + r + n); } -function Lee(e) { +function kee(e) { const t = e.getBoundingClientRect(), { borderTopWidth: r, borderLeftWidth: n, borderRightWidth: i, borderBottomWidth: o } = rh(e); return { top: t.top + (r || 0), @@ -100302,22 +100447,22 @@ function Lee(e) { bottom: t.bottom + (o || 0) }; } -function Rb() { - if (typeof K0 == "boolean") - return K0; +function Tb() { + if (typeof X0 == "boolean") + return X0; const e = document.createElement("div"); return e.style.direction = "rtl", e.style.width = "1px", e.style.height = "1px", e.style.position = "fixed", e.style.top = "0px", e.style.overflow = "hidden", e.dir = "rtl", e.innerHTML = /* html */ `
-
`, document.body.appendChild(e), e.scrollLeft = 1, K0 = Math.floor(e.scrollLeft) === 0, document.body.removeChild(e), K0; +
`, document.body.appendChild(e), e.scrollLeft = 1, X0 = Math.floor(e.scrollLeft) === 0, document.body.removeChild(e), X0; } -function Pb(e, t) { +function _b(e, t) { let r = e.scrollLeft; - return t && (r = Math.abs(r), KO() && !Rb() && (r = e.scrollWidth - e.clientWidth - r)), r; + return t && (r = Math.abs(r), KO() && !Tb() && (r = e.scrollWidth - e.clientWidth - r)), r; } -function Tb(e, t, r) { - r && (Rb() ? t *= -1 : (Yl() || KO()) && (t = e.scrollWidth - e.clientWidth - t)), e.scrollLeft = t; +function Mb(e, t, r) { + r && (Tb() ? t *= -1 : (ql() || KO()) && (t = e.scrollWidth - e.clientWidth - t)), e.scrollLeft = t; } function Uo(e) { for (; e && e.firstChild; ) @@ -100326,30 +100471,30 @@ function Uo(e) { function kd(e) { e && e.parentNode && e.parentNode.removeChild(e); } -function Fee(e) { +function $ee(e) { return !!e.offsetParent; } function qs(e) { const t = e; - return t.checkVisibility ? t.checkVisibility({ checkVisibilityCSS: !0 }) : !(!Fee(e) || window.getComputedStyle(e).visibility !== "visible"); + return t.checkVisibility ? t.checkVisibility({ checkVisibilityCSS: !0 }) : !(!$ee(e) || window.getComputedStyle(e).visibility !== "visible"); } -function Kf(e) { +function qf(e) { const t = document.createElement("div"); return t.innerHTML = (e || "").trim(), t.firstChild; } -function q7e(e) { +function aje(e) { return e.clientWidth < e.scrollWidth; } -function X7e(e) { +function sje(e) { return e.clientHeight < e.scrollHeight; } -function _b(e, t) { +function Db(e, t) { t === "flex" ? (e.style.removeProperty("width"), e.style.removeProperty("minWidth"), e.style.removeProperty("maxWidth"), e.style.flex = "1 1 auto") : ts(e, t); } function ts(e, t) { t = XO(t), e.style.width = t.toString(), e.style.maxWidth = t.toString(), e.style.minWidth = t.toString(); } -function pv(e, t) { +function vv(e, t) { t = XO(t), e.style.height = t.toString(), e.style.maxHeight = t.toString(), e.style.minHeight = t.toString(); } function XO(e) { @@ -100358,28 +100503,28 @@ function XO(e) { function ZO(e) { return e instanceof Node || e instanceof HTMLElement; } -function Z7e(e) { +function lje(e) { if (e == null) return []; const t = []; - return Nee(e, (r) => t.push(r)), t; + return Bee(e, (r) => t.push(r)), t; } -function Q7e(e, t) { +function cje(e, t) { if (e) for (let r = 0; r < e.length; r++) { const n = e[r]; t(n.name, n.value); } } -function Al(e, t, r) { +function Ol(e, t, r) { r == null ? e.removeAttribute(t) : e.setAttribute(t, r.toString()); } -function Nee(e, t) { +function Bee(e, t) { if (e != null) for (let r = 0; r < e.length; r++) t(e[r]); } -var Yf = class { +var Xf = class { constructor(e = 0, t = 1) { this.nextValue = e, this.step = t; } @@ -100393,7 +100538,7 @@ var Yf = class { skip(e) { this.nextValue += e; } -}, J7e = 1e3, eje = 1e3, A5 = 100, kee = class Vu extends De { +}, uje = 1e3, dje = 1e3, LH = 100, Vee = class Vu extends De { constructor(t, r, n, i) { super(), this.parentComp = t, this.tooltipShowDelayOverride = r, this.tooltipHideDelayOverride = n, this.shouldDisplayTooltip = i, this.interactionEnabled = !1, this.isInteractingWithTooltip = !1, this.state = 0, this.tooltipInstanceCount = 0, this.tooltipMouseTrack = !1; } @@ -100431,7 +100576,7 @@ var Yf = class { onMouseEnter(t) { this.interactionEnabled && this.interactiveTooltipTimeoutId && (this.unlockService(), this.startHideTimeout()), !iu() && (Vu.isLocked ? this.showTooltipTimeoutId = window.setTimeout(() => { this.prepareToShowTooltip(t); - }, A5) : this.prepareToShowTooltip(t)); + }, LH) : this.prepareToShowTooltip(t)); } onMouseMove(t) { this.lastMouseEvent && (this.lastMouseEvent = t), this.tooltipMouseTrack && this.state === 2 && this.tooltipComp && this.positionTooltip(); @@ -100461,7 +100606,7 @@ var Yf = class { } isLastTooltipHiddenRecently() { const t = (/* @__PURE__ */ new Date()).getTime(), r = Vu.lastTooltipHideTime; - return t - r < J7e; + return t - r < uje; } setToDoNothing() { this.state === 2 && this.hideTooltip(), this.onBodyScrollEventCallback && (this.onBodyScrollEventCallback(), this.onBodyScrollEventCallback = void 0), this.onColumnMovedEventCallback && (this.onColumnMovedEventCallback(), this.onColumnMovedEventCallback = void 0), this.clearTimeouts(), this.state = 0, this.lastMouseEvent = null; @@ -100557,7 +100702,7 @@ var Yf = class { } destroyTooltipComp() { this.tooltipComp.getGui().classList.add("ag-tooltip-hiding"); - const t = this.tooltipPopupDestroyFunc, r = this.tooltipComp, n = this.tooltipTrigger === 0 ? eje : 0; + const t = this.tooltipPopupDestroyFunc, r = this.tooltipComp, n = this.tooltipTrigger === 0 ? dje : 0; window.setTimeout(() => { t(), this.destroyBean(r); }, n), this.clearTooltipListeners(), this.tooltipPopupDestroyFunc = void 0, this.tooltipComp = void 0; @@ -100575,7 +100720,7 @@ var Yf = class { lockService() { Vu.isLocked = !0, this.interactiveTooltipTimeoutId = window.setTimeout(() => { this.unlockService(), this.setToDoNothing(); - }, A5); + }, LH); } unlockService() { Vu.isLocked = !1, this.clearInteractiveTimeout(); @@ -100596,8 +100741,8 @@ var Yf = class { this.clearShowTimeout(), this.clearHideTimeout(), this.clearInteractiveTimeout(); } }; -kee.isLocked = !1; -var tje = kee, _p = class extends De { +Vee.isLocked = !1; +var hje = Vee, Dp = class extends De { constructor(e, t) { super(), this.ctrl = e, t && (this.beans = t); } @@ -100623,7 +100768,7 @@ var tje = kee, _p = class extends De { getGui: () => this.ctrl.getGui() }; this.tooltipManager = this.createBean( - new tje( + new hje( e, (r = (t = this.ctrl).getTooltipShowDelayOverride) == null ? void 0 : r.call(t), (i = (n = this.ctrl).getTooltipHideDelayOverride) == null ? void 0 : i.call(n), @@ -100660,9 +100805,9 @@ var tje = kee, _p = class extends De { destroy() { this.tooltipManager && (this.tooltipManager = this.destroyBean(this.tooltipManager, this.beans.context)), super.destroy(); } -}, rje = new Yf(), zt = null, yn = class $ee extends De { +}, fje = new Xf(), zt = null, yn = class Hee extends De { constructor(t, r) { - super(), this.suppressDataRefValidation = !1, this.displayed = !0, this.visible = !0, this.compId = rje.next(), this.cssClassManager = new py(() => this.eGui), this.componentSelectors = new Map((r ?? []).map((n) => [n.selector, n])), t && this.setTemplate(t); + super(), this.suppressDataRefValidation = !1, this.displayed = !0, this.visible = !0, this.compId = fje.next(), this.cssClassManager = new my(() => this.eGui), this.componentSelectors = new Map((r ?? []).map((n) => [n.selector, n])), t && this.setTemplate(t); } preWireBeans(t) { super.preWireBeans(t); @@ -100687,7 +100832,7 @@ var tje = kee, _p = class extends De { this.tooltipFeature && (this.tooltipFeature = this.destroyBean(this.tooltipFeature)), this.tooltipText !== r && (this.tooltipText = r); const s = () => this.tooltipText; r != null && (this.tooltipFeature = this.createBean( - new _p({ + new Dp({ getTooltipValue: s, getGui: () => this.getGui(), getLocation: () => o ?? "UNKNOWN", @@ -100715,7 +100860,7 @@ var tje = kee, _p = class extends De { } // for registered components only, eg creates AgCheckbox instance from ag-checkbox HTML tag createChildComponentsFromTags(t, r) { - Z7e(t.childNodes).forEach((i) => { + lje(t.childNodes).forEach((i) => { if (!(i instanceof HTMLElement)) return; const o = this.createComponentFromElement( @@ -100739,14 +100884,14 @@ var tje = kee, _p = class extends De { const i = t.nodeName, o = this.getDataRefAttribute(t), a = i.indexOf("AG-") === 0, s = a ? this.componentSelectors.get(i) : null; let l = null; if (s) { - $ee.elementGettingCreated = t; + Hee.elementGettingCreated = t; const c = n && o ? n[o] : void 0; l = new s.component(c), l.setParentComponent(this), this.createBean(l, null, r); } else a && Be(`Missing selector: ${i}`); return this.applyElementsToComponent(t, o, n, l), l; } copyAttributesFromNode(t, r) { - Q7e(t.attributes, (n, i) => r.setAttribute(n, i)); + cje(t.attributes, (n, i) => r.setAttribute(n, i)); } swapComponentForNode(t, r, n) { const i = t.getGui(); @@ -100757,7 +100902,7 @@ var tje = kee, _p = class extends De { t || (t = []), t.length || t.push(this.getGui()), t.forEach((n) => n.setAttribute("tabindex", r.toString())); } setTemplate(t, r, n) { - const i = Kf(t); + const i = qf(t); this.setTemplateFromElement(i, r, n); } setTemplateFromElement(t, r, n, i = !1) { @@ -100816,7 +100961,7 @@ var tje = kee, _p = class extends De { if (t !== this.visible) { this.visible = t; const { skipAriaHidden: n } = r; - Y7e(this.eGui, t, { skipAriaHidden: n }); + oje(this.eGui, t, { skipAriaHidden: n }); } } setDisplayed(t, r = {}) { @@ -100849,7 +100994,7 @@ var tje = kee, _p = class extends De { addOrRemoveCssClass(t, r) { this.cssClassManager.addOrRemoveCssClass(t, r); } -}, nje = { +}, pje = { // header column group shown when expanded (click to contract) columnGroupOpened: "expanded", // header column group shown when contracted (click to expand) @@ -101000,7 +101145,7 @@ var tje = kee, _p = class extends De { // radio button off radioButtonOff: "radio-button-off" }; -function fl(e, t, r) { +function pl(e, t, r) { const n = zo(e, t, r); if (n) { const { className: o } = n; @@ -101026,17 +101171,17 @@ function zo(e, t, r, n) { else throw new Error("icon from grid options needs to be a string or a function"); if (typeof a == "string") - return Kf(a); + return qf(a); if (ZO(a)) return a; Be("iconRenderer should return back a string or a dom object"); } else { const a = document.createElement("span"); - let s = nje[e]; + let s = pje[e]; return s || (Be(`Did not find icon ${e}`), s = ""), a.setAttribute("class", `ag-icon ag-icon-${s}`), a.setAttribute("unselectable", "on"), cs(a, "presentation"), a; } } -function Bee(e, t, r) { +function zee(e, t, r) { if (r === 0) return !1; const n = Math.abs(e.clientX - t.clientX), i = Math.abs(e.clientY - t.clientY); @@ -101044,7 +101189,7 @@ function Bee(e, t, r) { } var Fc = class { constructor(e, t = !1) { - this.DOUBLE_TAP_MILLIS = 500, this.destroyFuncs = [], this.touching = !1, this.localEventService = new Tp(), this.eElement = e, this.preventMouseClick = t; + this.DOUBLE_TAP_MILLIS = 500, this.destroyFuncs = [], this.touching = !1, this.localEventService = new Mp(), this.eElement = e, this.preventMouseClick = t; const r = this.onTouchStart.bind(this), n = this.onTouchMove.bind(this), i = this.onTouchEnd.bind(this); this.eElement.addEventListener("touchstart", r, { passive: !0 }), this.eElement.addEventListener("touchmove", n, { passive: !0 }), this.eElement.addEventListener("touchend", i, { passive: !1 }), this.destroyFuncs.push(() => { this.eElement.removeEventListener("touchstart", r, { passive: !0 }), this.eElement.removeEventListener("touchmove", n, { passive: !0 }), this.eElement.removeEventListener("touchend", i, { passive: !1 }); @@ -101086,7 +101231,7 @@ var Fc = class { const t = this.getActiveTouch(e.touches); if (!t) return; - !Bee(t, this.touchStart, 4) && (this.moved = !0); + !zee(t, this.touchStart, 4) && (this.moved = !0); } onTouchEnd(e) { if (this.touching) { @@ -101117,7 +101262,7 @@ var Fc = class { destroy() { this.destroyFuncs.forEach((e) => e()); } -}, ije = ( +}, gje = ( /* html */ ` @@ -101128,7 +101273,7 @@ var Fc = class { ` ), QO = class extends yn { constructor(e) { - super(), this.eSortOrder = zt, this.eSortAsc = zt, this.eSortDesc = zt, this.eSortMixed = zt, this.eSortNone = zt, e || this.setTemplate(ije); + super(), this.eSortOrder = zt, this.eSortAsc = zt, this.eSortDesc = zt, this.eSortMixed = zt, this.eSortNone = zt, e || this.setTemplate(gje); } wireBeans(e) { this.sortController = e.sortController; @@ -101196,10 +101341,10 @@ var Fc = class { ), n = t >= 0 && r; Mn(this.eSortOrder, n, { skipAriaHidden: !0 }), t >= 0 ? this.eSortOrder.textContent = (t + 1).toString() : Uo(this.eSortOrder); } -}, oje = { +}, vje = { selector: "AG-SORT-INDICATOR", component: QO -}, aje = ( +}, mje = ( /* html */ `
` -), vD = class extends yn { +), v2 = class extends yn { constructor() { super(...arguments), this.eFilter = zt, this.eFilterButton = zt, this.eSortIndicator = zt, this.eMenu = zt, this.eLabel = zt, this.eText = zt, this.eSortOrder = zt, this.eSortAsc = zt, this.eSortDesc = zt, this.eSortMixed = zt, this.eSortNone = zt, this.lastMovingChanged = 0; } @@ -101227,11 +101372,11 @@ var Fc = class { return this.params = e, this.workOutTemplate() != this.currentTemplate || this.workOutShowMenu() != this.currentShowMenu || this.workOutSort() != this.currentSort || this.shouldSuppressMenuHide() != this.currentSuppressMenuHide || t.enableFilterButton != e.enableFilterButton || t.enableFilterIcon != e.enableFilterIcon ? !1 : (this.setDisplayName(e), !0); } workOutTemplate() { - let e = this.params.template ?? aje; + let e = this.params.template ?? mje; return e = e && e.trim ? e.trim() : e, e; } init(e) { - this.params = e, this.currentTemplate = this.workOutTemplate(), this.setTemplate(this.currentTemplate, [oje]), this.setupTap(), this.setMenu(), this.setupSort(), this.setupFilterIcon(), this.setupFilterButton(), this.setDisplayName(e); + this.params = e, this.currentTemplate = this.workOutTemplate(), this.setTemplate(this.currentTemplate, [vje]), this.setupTap(), this.setMenu(), this.setupSort(), this.setupFilterIcon(), this.setupFilterButton(), this.setDisplayName(e); } setDisplayName(e) { if (this.currentDisplayName != e.displayName) { @@ -101368,7 +101513,7 @@ var Fc = class { getAnchorElementForMenu(e) { return e ? this.eFilterButton ?? this.eMenu ?? this.getGui() : this.eMenu ?? this.eFilterButton ?? this.getGui(); } -}, sje = class extends yn { +}, yje = class extends yn { constructor() { super( /* html */ @@ -101409,7 +101554,7 @@ var Fc = class { }; this.addTouchAndClickListeners(this.agClosed, e), this.addTouchAndClickListeners(this.agOpened, e); const t = (i) => { - jf(i); + Kf(i); }; this.addManagedElementListeners(this.agClosed, { dblclick: t }), this.addManagedElementListeners(this.agOpened, { dblclick: t }), this.addManagedElementListeners(this.getGui(), { dblclick: e }), this.updateIconVisibility(); const r = this.params.columnGroup.getProvidedColumnGroup(), n = this.updateIconVisibility.bind(this); @@ -101448,7 +101593,7 @@ var Fc = class { } this.addOrRemoveCssClass("ag-sticky-label", !((r = t.getColGroupDef()) != null && r.suppressStickyLabel)); } -}, Vee = /* @__PURE__ */ ((e) => (e.CommunityCoreModule = "@ag-grid-community/core", e.InfiniteRowModelModule = "@ag-grid-community/infinite-row-model", e.ClientSideRowModelModule = "@ag-grid-community/client-side-row-model", e.CsvExportModule = "@ag-grid-community/csv-export", e.EnterpriseCoreModule = "@ag-grid-enterprise/core", e.RowGroupingModule = "@ag-grid-enterprise/row-grouping", e.ColumnsToolPanelModule = "@ag-grid-enterprise/column-tool-panel", e.FiltersToolPanelModule = "@ag-grid-enterprise/filter-tool-panel", e.MenuModule = "@ag-grid-enterprise/menu", e.SetFilterModule = "@ag-grid-enterprise/set-filter", e.MultiFilterModule = "@ag-grid-enterprise/multi-filter", e.StatusBarModule = "@ag-grid-enterprise/status-bar", e.SideBarModule = "@ag-grid-enterprise/side-bar", e.RangeSelectionModule = "@ag-grid-enterprise/range-selection", e.MasterDetailModule = "@ag-grid-enterprise/master-detail", e.RichSelectModule = "@ag-grid-enterprise/rich-select", e.GridChartsModule = "@ag-grid-enterprise/charts", e.ViewportRowModelModule = "@ag-grid-enterprise/viewport-row-model", e.ServerSideRowModelModule = "@ag-grid-enterprise/server-side-row-model", e.ExcelExportModule = "@ag-grid-enterprise/excel-export", e.ClipboardModule = "@ag-grid-enterprise/clipboard", e.SparklinesModule = "@ag-grid-enterprise/sparklines", e.AdvancedFilterModule = "@ag-grid-enterprise/advanced-filter", e.AngularModule = "@ag-grid-community/angular", e.ReactModule = "@ag-grid-community/react", e.VueModule = "@ag-grid-community/vue", e))(Vee || {}), v1 = class zr { +}, Gee = /* @__PURE__ */ ((e) => (e.CommunityCoreModule = "@ag-grid-community/core", e.InfiniteRowModelModule = "@ag-grid-community/infinite-row-model", e.ClientSideRowModelModule = "@ag-grid-community/client-side-row-model", e.CsvExportModule = "@ag-grid-community/csv-export", e.EnterpriseCoreModule = "@ag-grid-enterprise/core", e.RowGroupingModule = "@ag-grid-enterprise/row-grouping", e.ColumnsToolPanelModule = "@ag-grid-enterprise/column-tool-panel", e.FiltersToolPanelModule = "@ag-grid-enterprise/filter-tool-panel", e.MenuModule = "@ag-grid-enterprise/menu", e.SetFilterModule = "@ag-grid-enterprise/set-filter", e.MultiFilterModule = "@ag-grid-enterprise/multi-filter", e.StatusBarModule = "@ag-grid-enterprise/status-bar", e.SideBarModule = "@ag-grid-enterprise/side-bar", e.RangeSelectionModule = "@ag-grid-enterprise/range-selection", e.MasterDetailModule = "@ag-grid-enterprise/master-detail", e.RichSelectModule = "@ag-grid-enterprise/rich-select", e.GridChartsModule = "@ag-grid-enterprise/charts", e.ViewportRowModelModule = "@ag-grid-enterprise/viewport-row-model", e.ServerSideRowModelModule = "@ag-grid-enterprise/server-side-row-model", e.ExcelExportModule = "@ag-grid-enterprise/excel-export", e.ClipboardModule = "@ag-grid-enterprise/clipboard", e.SparklinesModule = "@ag-grid-enterprise/sparklines", e.AdvancedFilterModule = "@ag-grid-enterprise/advanced-filter", e.AngularModule = "@ag-grid-community/angular", e.ReactModule = "@ag-grid-community/react", e.VueModule = "@ag-grid-community/vue", e))(Gee || {}), v1 = class zr { /** * Globally register the given module for all grids. * @param module - module to register @@ -101515,7 +101660,7 @@ var Fc = class { For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`; else if (zr.moduleBased || zr.moduleBased === void 0) { - const a = (o = Object.entries(Vee).find(([s, l]) => l === t)) == null ? void 0 : o[0]; + const a = (o = Object.entries(Gee).find(([s, l]) => l === t)) == null ? void 0 : o[0]; i = `AG Grid: unable to use ${r} as the ${a} is not registered${zr.areGridScopedModules ? ` for gridId: ${n}` : ""}. Check if you have registered the module: import { ModuleRegistry } from '@ag-grid-community/core'; @@ -101537,11 +101682,11 @@ For more info see: https://www.ag-grid.com/javascript-grid/modules/`; } /** AG GRID INTERNAL - Get all registered modules globally / individually for this grid. */ static __getRegisteredModules(t) { - return [...kC(zr.globalModulesMap), ...kC(zr.gridModulesMap[t] || {})]; + return [...VC(zr.globalModulesMap), ...VC(zr.gridModulesMap[t] || {})]; } /** AG GRID INTERNAL - Get the list of modules registered individually for this grid. */ static __getGridRegisteredModules(t) { - return kC(zr.gridModulesMap[t] ?? {}) || []; + return VC(zr.gridModulesMap[t] ?? {}) || []; } /** INTERNAL */ static __isPackageBased() { @@ -101551,7 +101696,7 @@ For more info see: https://www.ag-grid.com/javascript-grid/modules/`; v1.globalModulesMap = {}; v1.gridModulesMap = {}; v1.areGridScopedModules = !1; -var Oi = v1, lje = "↑", cje = "↓", uje = class extends yn { +var Oi = v1, Cje = "↑", Sje = "↓", bje = class extends yn { constructor() { super(), this.refreshCount = 0; const e = document.createElement("span"), t = document.createElement("span"); @@ -101567,7 +101712,7 @@ var Oi = v1, lje = "↑", cje = "↓", uje = class extends yn { } showDelta(e, t) { const r = Math.abs(t), n = e.formatValue(r), i = Ye(n) ? n : r, o = t >= 0; - o ? this.eDelta.textContent = lje + i : this.eDelta.textContent = cje + i, this.eDelta.classList.toggle("ag-value-change-delta-up", o), this.eDelta.classList.toggle("ag-value-change-delta-down", !o); + o ? this.eDelta.textContent = Cje + i : this.eDelta.textContent = Sje + i, this.eDelta.classList.toggle("ag-value-change-delta-up", o), this.eDelta.classList.toggle("ag-value-change-delta-down", !o); } setTimerToRemoveDelta() { this.refreshCount++; @@ -101592,7 +101737,7 @@ var Oi = v1, lje = "↑", cje = "↓", uje = class extends yn { } return this.lastValue && this.eValue.classList.add("ag-value-change-value-highlight"), t || this.setTimerToRemoveDelta(), this.lastValue = r, !0; } -}, dje = class extends yn { +}, wje = class extends yn { constructor() { super(), this.refreshCount = 0; const e = document.createElement("span"), t = document.createElement("span"); @@ -101646,7 +101791,7 @@ Re.V = "KeyV"; Re.X = "KeyX"; Re.Y = "KeyY"; Re.Z = "KeyZ"; -var hje = class extends yn { +var xje = class extends yn { constructor(e, t, r) { super(t, r), this.labelSeparator = "", this.labelAlignment = "left", this.disabled = !1, this.label = "", this.config = e || {}; } @@ -101678,17 +101823,17 @@ var hje = class extends yn { return this.eLabel.classList.toggle("ag-label-ellipsis", e), this; } setLabelWidth(e) { - return this.label == null ? this : (_b(this.eLabel, e), this); + return this.label == null ? this : (Db(this.eLabel, e), this); } setDisabled(e) { e = !!e; const t = this.getGui(); - return mm(t, e), t.classList.toggle("ag-disabled", e), this.disabled = e, this; + return Cm(t, e), t.classList.toggle("ag-disabled", e), this.disabled = e, this; } isDisabled() { return !!this.disabled; } -}, Hee = class extends hje { +}, Wee = class extends xje { constructor(e, t, r, n) { super(e, t, r), this.className = n; } @@ -101702,10 +101847,10 @@ var hje = class extends yn { } refreshAriaLabelledBy() { const e = this.getAriaElement(), t = this.getLabelId(), r = this.getLabel(); - r == null || r == "" || D7e(e) !== null ? vm(e, "") : vm(e, t ?? ""); + r == null || r == "" || H7e(e) !== null ? ym(e, "") : ym(e, t ?? ""); } setAriaLabel(e) { - return Uf(this.getAriaElement(), e), this.refreshAriaLabelledBy(), this; + return Yf(this.getAriaElement(), e), this.refreshAriaLabelledBy(), this; } onValueChange(e) { return this.addManagedListeners(this, { fieldValueChanged: () => e(this.getValue()) }), this; @@ -101725,7 +101870,7 @@ var hje = class extends yn { setValue(e, t) { return this.value === e ? this : (this.previousValue = this.value, this.value = e, t || this.dispatchLocalEvent({ type: "fieldValueChanged" }), this); } -}, sd = class extends Hee { +}, sd = class extends Wee { constructor(e, t, r = "text", n = "input") { super( e, @@ -101756,7 +101901,7 @@ var hje = class extends yn { return this.eInput; } setInputWidth(e) { - return _b(this.eWrapper, e), this; + return Db(this.eWrapper, e), this; } setInputName(e) { return this.getInputElement().setAttribute("name", e), this; @@ -101769,20 +101914,20 @@ var hje = class extends yn { return t.maxLength = e, this; } setInputPlaceholder(e) { - return Al(this.eInput, "placeholder", e), this; + return Ol(this.eInput, "placeholder", e), this; } setInputAriaLabel(e) { - return Uf(this.eInput, e), this.refreshAriaLabelledBy(), this; + return Yf(this.eInput, e), this.refreshAriaLabelledBy(), this; } setDisabled(e) { - return mm(this.eInput, e), super.setDisabled(e); + return Cm(this.eInput, e), super.setDisabled(e); } setAutoComplete(e) { if (e === !0) - Al(this.eInput, "autocomplete", null); + Ol(this.eInput, "autocomplete", null); else { const t = typeof e == "string" ? e : "off"; - Al(this.eInput, "autocomplete", t); + Ol(this.eInput, "autocomplete", t); } return this; } @@ -101858,7 +102003,7 @@ var hje = class extends yn { }, eL = { selector: "AG-CHECKBOX", component: JO -}, fje = class extends yn { +}, Eje = class extends yn { constructor() { super( /* html*/ @@ -101872,15 +102017,15 @@ var hje = class extends yn { init(e) { this.params = e, this.updateCheckbox(e); const t = this.eCheckbox.getInputElement(); - t.setAttribute("tabindex", "-1"), Ree(t, "polite"), this.addManagedListeners(t, { + t.setAttribute("tabindex", "-1"), _ee(t, "polite"), this.addManagedListeners(t, { click: (r) => { - if (jf(r), this.eCheckbox.isDisabled()) + if (Kf(r), this.eCheckbox.isDisabled()) return; const n = this.eCheckbox.getValue(); this.onCheckboxChanged(n); }, dblclick: (r) => { - jf(r); + Kf(r); } }), this.addManagedElementListeners(this.params.eGridCell, { keydown: (r) => { @@ -101900,7 +102045,7 @@ var hje = class extends yn { let t, r = !0; if (e.node.group && e.column) { const l = e.column.getColId(); - l.startsWith(fy) ? t = e.value == null || e.value === "" ? void 0 : e.value === "true" : e.node.aggData && e.node.aggData[l] !== void 0 ? t = e.value ?? void 0 : r = !1; + l.startsWith(vy) ? t = e.value == null || e.value === "" ? void 0 : e.value === "true" : e.node.aggData && e.node.aggData[l] !== void 0 ? t = e.value ?? void 0 : r = !1; } else t = e.value ?? void 0; if (!r) { @@ -101940,7 +102085,7 @@ var hje = class extends yn { }; this.eventService.dispatchEvent(a); } -}, pje = class extends yn { +}, Rje = class extends yn { constructor() { super( /* html */ @@ -101971,7 +102116,7 @@ var hje = class extends yn { destroy() { super.destroy(); } -}, gje = class extends yn { +}, Pje = class extends yn { constructor() { super( /* html */ @@ -101980,13 +102125,13 @@ var hje = class extends yn { } init(e) { const t = `ag-cell-skeleton-renderer-${this.getCompId()}`; - this.getGui().setAttribute("id", t), this.addDestroyFunc(() => vm(e.eParentOfValue)), vm(e.eParentOfValue, t), e.node.failedLoad ? this.setupFailed() : this.setupLoading(e); + this.getGui().setAttribute("id", t), this.addDestroyFunc(() => ym(e.eParentOfValue)), ym(e.eParentOfValue, t), e.node.failedLoad ? this.setupFailed() : this.setupLoading(e); } setupFailed() { const e = this.localeService.getLocaleTextFunc(); this.getGui().innerText = e("loadingError", "ERR"); const t = e("ariaSkeletonCellLoadingFailed", "Row failed to load"); - Uf(this.getGui(), t); + Yf(this.getGui(), t); } setupLoading(e) { const r = this.gos.getDocument().createElement("div"); @@ -101998,7 +102143,7 @@ var hje = class extends yn { } this.getGui().appendChild(r); const o = this.localeService.getLocaleTextFunc()("ariaSkeletonCellLoading", "Row data is loading"); - Uf(this.getGui(), o); + Yf(this.getGui(), o); } refresh(e) { return !1; @@ -102008,7 +102153,7 @@ var hje = class extends yn { destroy() { super.destroy(); } -}, zee = class extends yn { +}, jee = class extends yn { constructor() { super(); } @@ -102017,7 +102162,7 @@ var hje = class extends yn { destroy() { super.destroy(); } -}, vje = class extends zee { +}, Tje = class extends jee { init() { const e = this.gos.get("overlayLoadingTemplate"); if (this.setTemplate( @@ -102030,7 +102175,7 @@ var hje = class extends yn { }); } } -}, mje = class extends zee { +}, _je = class extends jee { init() { const e = this.gos.get("overlayNoRowsTemplate"); if (this.setTemplate(e ?? /* html */ @@ -102041,7 +102186,7 @@ var hje = class extends yn { }); } } -}, Mp = class extends yn { +}, Ip = class extends yn { isPopup() { return !0; } @@ -102052,7 +102197,7 @@ var hje = class extends yn { const e = this.parentComponent; e && e.isAlive() && e.getGui().classList.remove("ag-has-popup"), super.destroy(); } -}, yje = class extends Mp { +}, Mje = class extends Ip { constructor() { super( /* html */ @@ -102065,18 +102210,18 @@ var hje = class extends yn { this.getGui().textContent = zs(t, !0); } }; -function Cje(e, t, r) { +function Dje(e, t, r) { const n = {}, i = e.filter( (o) => !t.some((a) => a === o) ); return i.length > 0 && i.forEach( - (o) => n[o] = Gee(o, r).values + (o) => n[o] = Uee(o, r).values ), n; } -function Gee(e, t, r, n) { +function Uee(e, t, r, n) { let i = t.map((s, l) => ({ value: s, - relevance: Sje(e.toLowerCase(), s.toLocaleLowerCase()), + relevance: Ije(e.toLowerCase(), s.toLocaleLowerCase()), idx: l })); if (i.sort((s, l) => l.relevance - s.relevance), r && (i = i.filter((s) => s.relevance !== 0)), i.length > 0 && n && n > 0) { @@ -102088,7 +102233,7 @@ function Gee(e, t, r, n) { o.push(s.value), a.push(s.idx); return { values: o, indices: a }; } -function Sje(e, t) { +function Ije(e, t) { const r = e.replace(/\s/g, ""), n = t.replace(/\s/g, ""); let i = 0, o = -1; for (let a = 0; a < r.length; a++) { @@ -102097,24 +102242,24 @@ function Sje(e, t) { } return i; } -var bje = class extends De { +var Aje = class extends De { constructor() { super(...arguments), this.beanName = "userComponentRegistry", this.agGridDefaults = { //header - agColumnHeader: vD, - agColumnGroupHeader: sje, + agColumnHeader: v2, + agColumnGroupHeader: yje, agSortIndicator: QO, // renderers - agAnimateShowChangeCellRenderer: uje, - agAnimateSlideCellRenderer: dje, - agLoadingCellRenderer: pje, - agSkeletonCellRenderer: gje, - agCheckboxCellRenderer: fje, + agAnimateShowChangeCellRenderer: bje, + agAnimateSlideCellRenderer: wje, + agLoadingCellRenderer: Rje, + agSkeletonCellRenderer: Pje, + agCheckboxCellRenderer: Eje, //overlays - agLoadingOverlay: vje, - agNoRowsOverlay: mje, + agLoadingOverlay: Tje, + agNoRowsOverlay: _je, // tooltips - agTooltipComponent: yje + agTooltipComponent: Mje }, this.enterpriseAgDefaultCompsModule = { agSetColumnFilter: "@ag-grid-enterprise/set-filter", agSetColumnFloatingFilter: "@ag-grid-enterprise/set-filter", @@ -102177,14 +102322,14 @@ var bje = class extends De { (i) => !["agCellEditor", "agGroupRowRenderer", "agSortIndicator"].includes(i) ), ...Object.keys(this.jsComps) - ], n = Gee(t, r, !0, 0.8).values; + ], n = Uee(t, r, !0, 0.8).values; Be( `Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.` ), n.length > 0 && Be(` Did you mean: [${n.slice(0, 3)}]?`), Be( `If using a custom component check it has been registered as described in: ${this.getFrameworkOverrides().getDocLink("components/")}` ); } -}, kn = class kg { +}, kn = class Bg { constructor(t) { this.status = 0, this.resolution = null, this.waiters = [], t( (r) => this.onDone(r), @@ -102192,7 +102337,7 @@ var bje = class extends De { ); } static all(t) { - return t.length ? new kg((r) => { + return t.length ? new Bg((r) => { let n = t.length; const i = new Array(n); t.forEach((o, a) => { @@ -102200,13 +102345,13 @@ var bje = class extends De { i[a] = s, n--, n === 0 && r(i); }); }); - }) : kg.resolve(); + }) : Bg.resolve(); } static resolve(t = null) { - return new kg((r) => r(t)); + return new Bg((r) => r(t)); } then(t) { - return new kg((r) => { + return new Bg((r) => { this.status === 1 ? r(t(this.resolution)) : this.waiters.push((n) => r(t(n))); }); } @@ -102215,67 +102360,67 @@ var bje = class extends De { } onReject(t) { } -}, wje = { +}, Oje = { propertyName: "dateComponent", cellRenderer: !1 -}, xje = { +}, Lje = { propertyName: "headerComponent", cellRenderer: !1 -}, Eje = { +}, Fje = { propertyName: "headerGroupComponent", cellRenderer: !1 -}, O5 = { +}, FH = { propertyName: "cellRenderer", cellRenderer: !0 -}, Rje = { +}, Nje = { propertyName: "cellRenderer", cellRenderer: !1 -}, Pje = { +}, kje = { propertyName: "loadingCellRenderer", cellRenderer: !0 -}, Tje = { +}, $je = { propertyName: "cellEditor", cellRenderer: !1 -}, L5 = { +}, NH = { propertyName: "innerRenderer", cellRenderer: !0 -}, _je = { +}, Bje = { propertyName: "loadingOverlayComponent", cellRenderer: !1 -}, Mje = { +}, Vje = { propertyName: "noRowsOverlayComponent", cellRenderer: !1 -}, Dje = { +}, Hje = { propertyName: "tooltipComponent", cellRenderer: !1 }, tL = { propertyName: "filter", cellRenderer: !1 -}, Ije = { +}, zje = { propertyName: "floatingFilterComponent", cellRenderer: !1 -}, Aje = { +}, Gje = { propertyName: "toolPanel", cellRenderer: !1 -}, Oje = { +}, Wje = { propertyName: "statusPanel", cellRenderer: !1 -}, Lje = { +}, jje = { propertyName: "fullWidthCellRenderer", cellRenderer: !0 -}, Fje = { +}, Uje = { propertyName: "loadingCellRenderer", cellRenderer: !0 -}, Nje = { +}, Kje = { propertyName: "groupRowRenderer", cellRenderer: !0 -}, kje = { +}, Yje = { propertyName: "detailCellRenderer", cellRenderer: !0 -}, $je = { +}, qje = { propertyName: "menuItem", cellRenderer: !1 -}, Wee = class jee extends De { +}, Kee = class Yee extends De { constructor() { super(...arguments), this.beanName = "userComponentFactory"; } @@ -102283,80 +102428,80 @@ var bje = class extends De { this.agComponentUtils = t.agComponentUtils, this.componentMetadataProvider = t.componentMetadataProvider, this.userComponentRegistry = t.userComponentRegistry, this.frameworkComponentWrapper = t.frameworkComponentWrapper, this.gridOptions = t.gridOptions; } getHeaderCompDetails(t, r) { - return this.getCompDetails(t, xje, "agColumnHeader", r); + return this.getCompDetails(t, Lje, "agColumnHeader", r); } getHeaderGroupCompDetails(t) { const r = t.columnGroup.getColGroupDef(); - return this.getCompDetails(r, Eje, "agColumnGroupHeader", t); + return this.getCompDetails(r, Fje, "agColumnGroupHeader", t); } // this one is unusual, as it can be LoadingCellRenderer, DetailCellRenderer, FullWidthCellRenderer or GroupRowRenderer. // so we have to pass the type in. getFullWidthCellRendererDetails(t) { - return this.getCompDetails(this.gridOptions, Lje, null, t, !0); + return this.getCompDetails(this.gridOptions, jje, null, t, !0); } getFullWidthLoadingCellRendererDetails(t) { - return this.getCompDetails(this.gridOptions, Fje, "agLoadingCellRenderer", t, !0); + return this.getCompDetails(this.gridOptions, Uje, "agLoadingCellRenderer", t, !0); } getFullWidthGroupCellRendererDetails(t) { - return this.getCompDetails(this.gridOptions, Nje, "agGroupRowRenderer", t, !0); + return this.getCompDetails(this.gridOptions, Kje, "agGroupRowRenderer", t, !0); } getFullWidthDetailCellRendererDetails(t) { - return this.getCompDetails(this.gridOptions, kje, "agDetailCellRenderer", t, !0); + return this.getCompDetails(this.gridOptions, Yje, "agDetailCellRenderer", t, !0); } // CELL RENDERER getInnerRendererDetails(t, r) { - return this.getCompDetails(t, L5, null, r); + return this.getCompDetails(t, NH, null, r); } getFullWidthGroupRowInnerCellRenderer(t, r) { - return this.getCompDetails(t, L5, null, r); + return this.getCompDetails(t, NH, null, r); } getCellRendererDetails(t, r) { - return this.getCompDetails(t, O5, null, r); + return this.getCompDetails(t, FH, null, r); } getEditorRendererDetails(t, r) { - return this.getCompDetails(t, Rje, null, r); + return this.getCompDetails(t, Nje, null, r); } getLoadingCellRendererDetails(t, r) { - return this.getCompDetails(t, Pje, "agSkeletonCellRenderer", r, !0); + return this.getCompDetails(t, kje, "agSkeletonCellRenderer", r, !0); } // CELL EDITOR getCellEditorDetails(t, r) { - return this.getCompDetails(t, Tje, "agCellEditor", r, !0); + return this.getCompDetails(t, $je, "agCellEditor", r, !0); } // FILTER getFilterDetails(t, r, n) { return this.getCompDetails(t, tL, n, r, !0); } getDateCompDetails(t) { - return this.getCompDetails(this.gridOptions, wje, "agDateInput", t, !0); + return this.getCompDetails(this.gridOptions, Oje, "agDateInput", t, !0); } getLoadingOverlayCompDetails(t) { - return this.getCompDetails(this.gridOptions, _je, "agLoadingOverlay", t, !0); + return this.getCompDetails(this.gridOptions, Bje, "agLoadingOverlay", t, !0); } getNoRowsOverlayCompDetails(t) { - return this.getCompDetails(this.gridOptions, Mje, "agNoRowsOverlay", t, !0); + return this.getCompDetails(this.gridOptions, Vje, "agNoRowsOverlay", t, !0); } getTooltipCompDetails(t) { - return this.getCompDetails(t.colDef, Dje, "agTooltipComponent", t, !0); + return this.getCompDetails(t.colDef, Hje, "agTooltipComponent", t, !0); } getSetFilterCellRendererDetails(t, r) { - return this.getCompDetails(t, O5, null, r); + return this.getCompDetails(t, FH, null, r); } getFloatingFilterCompDetails(t, r, n) { - return this.getCompDetails(t, Ije, n, r); + return this.getCompDetails(t, zje, n, r); } getToolPanelCompDetails(t, r) { - return this.getCompDetails(t, Aje, null, r, !0); + return this.getCompDetails(t, Gje, null, r, !0); } getStatusPanelCompDetails(t, r) { - return this.getCompDetails(t, Oje, null, r, !0); + return this.getCompDetails(t, Wje, null, r, !0); } getMenuItemCompDetails(t, r) { - return this.getCompDetails(t, $je, "agMenuItem", r, !0); + return this.getCompDetails(t, qje, "agMenuItem", r, !0); } getCompDetails(t, r, n, i, o = !1) { const { propertyName: a, cellRenderer: s } = r; - let { compName: l, jsComp: c, fwComp: u, paramsFromSelector: d, popupFromSelector: h, popupPositionFromSelector: f } = jee.getCompKeys(this.frameworkOverrides, t, r, i); + let { compName: l, jsComp: c, fwComp: u, paramsFromSelector: d, popupFromSelector: h, popupPositionFromSelector: f } = Yee.getCompKeys(this.frameworkOverrides, t, r, i); const p = (y) => { const C = this.userComponentRegistry.retrieve(a, y); C && (c = C.componentFromFramework ? void 0 : C.component, u = C.componentFromFramework ? C.component : void 0); @@ -102420,11 +102565,11 @@ var bje = class extends De { return t.init(r); } }; -function gv(e) { +function mv(e) { const t = e; return t != null && t.getFrameworkComponentInstance != null ? t.getFrameworkComponentInstance() : e; } -var Bje = class { +var Xje = class { constructor(e) { this.beans = {}, this.createdBeans = [], this.destroyed = !1, !(!e || !e.beanClasses) && (this.beanDestroyComparator = e.beanDestroyComparator, this.init(e)); } @@ -102494,7 +102639,7 @@ var Bje = class { isDestroyed() { return this.destroyed; } -}, Vje = class extends Bje { +}, Zje = class extends Xje { init(e) { this.gridId = e.gridId, this.beans.context = this, super.init(e); } @@ -102504,13 +102649,13 @@ var Bje = class { getGridId() { return this.gridId; } -}, Uee = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(Uee || {}), Hje = ( +}, qee = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(qee || {}), Qje = ( /* html */ `
` -), zje = class extends De { +), Jje = class extends De { constructor() { super(...arguments), this.beanName = "dragAndDropService", this.dragSourceAndParamsList = [], this.dropTargets = []; } @@ -102519,15 +102664,15 @@ var Bje = class { } postConstruct() { this.dropIconMap = { - pinned: fl("columnMovePin", this.gos, null), - hide: fl("columnMoveHide", this.gos, null), - move: fl("columnMoveMove", this.gos, null), - left: fl("columnMoveLeft", this.gos, null), - right: fl("columnMoveRight", this.gos, null), - group: fl("columnMoveGroup", this.gos, null), - aggregate: fl("columnMoveValue", this.gos, null), - pivot: fl("columnMovePivot", this.gos, null), - notAllowed: fl("dropNotAllowed", this.gos, null) + pinned: pl("columnMovePin", this.gos, null), + hide: pl("columnMoveHide", this.gos, null), + move: pl("columnMoveMove", this.gos, null), + left: pl("columnMoveLeft", this.gos, null), + right: pl("columnMoveRight", this.gos, null), + group: pl("columnMoveGroup", this.gos, null), + aggregate: pl("columnMoveValue", this.gos, null), + pivot: pl("columnMovePivot", this.gos, null), + notAllowed: pl("dropNotAllowed", this.gos, null) }; } addDragSource(e, t = !1) { @@ -102610,7 +102755,7 @@ var Bje = class { const i = this.gos.getRootNode().elementsFromPoint(e.clientX, e.clientY); for (const o of i) for (const a of t) - if (Y9e(this.getAllContainersFromDropTarget(a)).indexOf(o) !== -1) + if (o7e(this.getAllContainersFromDropTarget(a)).indexOf(o) !== -1) return a; return null; } @@ -102682,7 +102827,7 @@ var Bje = class { const t = this.eGhost; if (!t) return; - const n = t.getBoundingClientRect().height, i = W7e() - 2, o = j7e() - 2, a = Lee(t.offsetParent), { clientY: s, clientX: l } = e; + const n = t.getBoundingClientRect().height, i = tje() - 2, o = rje() - 2, a = kee(t.offsetParent), { clientY: s, clientX: l } = e; let c = s - a.top - n / 2, u = l - a.left - 10; const d = this.gos.getDocument(), h = d.defaultView || window, f = h.pageYOffset || d.documentElement.scrollTop, p = h.pageXOffset || d.documentElement.scrollLeft; i > 0 && u + t.clientWidth > i + p && (u = i + p - t.clientWidth), u < 0 && (u = 0), o > 0 && c + t.clientHeight > o + f && (c = o + f - t.clientHeight), c < 0 && (c = 0), t.style.left = `${u}px`, t.style.top = `${c}px`; @@ -102691,7 +102836,7 @@ var Bje = class { this.eGhost && this.eGhostParent && this.eGhostParent.removeChild(this.eGhost), this.eGhost = null; } createGhost() { - this.eGhost = Kf(Hje), this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost), this.environment.applyThemeClasses(this.eGhost), this.eGhostIcon = this.eGhost.querySelector(".ag-dnd-ghost-icon"), this.setGhostIcon(null); + this.eGhost = qf(Qje), this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost), this.environment.applyThemeClasses(this.eGhost), this.eGhostIcon = this.eGhost.querySelector(".ag-dnd-ghost-icon"), this.setGhostIcon(null); const e = this.eGhost.querySelector(".ag-dnd-ghost-label"); let t = this.dragSource.dragItemName; GO(t) && (t = t()), e.innerHTML = zs(t) || "", this.eGhost.style.height = "25px", this.eGhost.style.top = "20px", this.eGhost.style.left = "20px"; @@ -102712,7 +102857,7 @@ var Bje = class { let r = null; e || (e = this.dragSource.getDefaultIconName ? this.dragSource.getDefaultIconName() : "notAllowed"), r = this.dropIconMap[e], this.eGhostIcon.classList.toggle("ag-shake-left-to-right", t), !(r === this.dropIconMap.hide && this.gos.get("suppressDragLeaveHidesColumns")) && r && this.eGhostIcon.appendChild(r); } -}, Gje = class { +}, eUe = class { constructor(e) { this.tickingInterval = null, this.onScrollCallback = null, this.scrollContainer = e.scrollContainer, this.scrollHorizontally = e.scrollAxis.indexOf("x") !== -1, this.scrollVertically = e.scrollAxis.indexOf("y") !== -1, this.scrollByTick = e.scrollByTick != null ? e.scrollByTick : 20, e.onScrollCallback && (this.onScrollCallback = e.onScrollCallback), this.scrollVertically && (this.getVerticalPosition = e.getVerticalPosition, this.setVerticalPosition = e.setVerticalPosition), this.scrollHorizontally && (this.getHorizontalPosition = e.getHorizontalPosition, this.setHorizontalPosition = e.setHorizontalPosition), this.shouldSkipVerticalScroll = e.shouldSkipVerticalScroll || (() => !1), this.shouldSkipHorizontalScroll = e.shouldSkipHorizontalScroll || (() => !1); } @@ -102742,7 +102887,7 @@ var Bje = class { ensureCleared() { this.tickingInterval && (window.clearInterval(this.tickingInterval), this.tickingInterval = null); } -}, Wje = class extends De { +}, tUe = class extends De { wireBeans(e) { this.dragAndDropService = e.dragAndDropService, this.rowModel = e.rowModel, this.pageBoundsService = e.pageBoundsService, this.focusService = e.focusService, this.sortController = e.sortController, this.filterManager = e.filterManager, this.selectionService = e.selectionService, this.mouseEventService = e.mouseEventService, this.ctrlsService = e.ctrlsService, this.funcColsService = e.funcColsService, this.rangeService = e.rangeService; } @@ -102752,7 +102897,7 @@ var Bje = class { postConstruct() { this.gos.isRowModelType("clientSide") && (this.clientSideRowModel = this.rowModel), this.ctrlsService.whenReady((e) => { const t = e.gridBodyCtrl; - this.autoScrollService = new Gje({ + this.autoScrollService = new eUe({ scrollContainer: t.getBodyViewportElement(), scrollAxis: "y", getVerticalPosition: () => t.getScrollFeature().getVScrollPosition().top, @@ -102942,7 +103087,7 @@ var Bje = class { t.setDragging(!1); }); } -}, jje = class extends De { +}, rUe = class extends De { constructor() { super(...arguments), this.beanName = "dragService", this.dragEndFunctions = [], this.dragSources = []; } @@ -103034,7 +103179,7 @@ var Bje = class { // we only start dragging after X pixels so this allows us to know if we should start dragging yet. isEventNearStartEvent(e, t) { const { dragStartPixels: r } = this.currentDragParams, n = Ye(r) ? r : 4; - return Bee(e, t, n); + return zee(e, t, n); } getFirstActiveTouch(e) { for (let t = 0; t < e.length; t++) @@ -103063,7 +103208,7 @@ var Bje = class { // and is removed when mouseUp happens onMouseMove(e, t) { var r; - Yl() && ((r = this.gos.getDocument().getSelection()) == null || r.removeAllRanges()), this.shouldPreventMouseEvent(e) && e.preventDefault(), this.onCommonMove(e, this.mouseStartEvent, t); + ql() && ((r = this.gos.getDocument().getSelection()) == null || r.removeAllRanges()), this.shouldPreventMouseEvent(e) && e.preventDefault(), this.onCommonMove(e, this.mouseStartEvent, t); } shouldPreventMouseEvent(e) { const t = this.gos.get("enableCellTextSelection"), r = e.type === "mousemove"; @@ -103095,7 +103240,7 @@ var Bje = class { } this.mouseStartEvent = null, this.startTarget = null, this.touchStart = null, this.touchLastTime = null, this.currentDragParams = null, this.dragEndFunctions.forEach((r) => r()), this.dragEndFunctions.length = 0; } -}, mD = class extends yn { +}, m2 = class extends yn { constructor(e, t, r, n, i, o) { super(), this.cellValueFn = e, this.rowNode = t, this.column = r, this.customGui = n, this.dragStartPixels = i, this.suppressVisibilityChange = o, this.dragSource = null; } @@ -103110,7 +103255,7 @@ var Bje = class { /* html */ '' ), this.getGui().appendChild(zo("rowDrag", this.gos, null)), this.addDragSource()), this.checkCompatibility(), !this.suppressVisibilityChange) { - const e = this.gos.get("rowDragManaged") ? new Kje(this, this.beans, this.rowNode, this.column) : new Uje(this, this.beans, this.rowNode, this.column); + const e = this.gos.get("rowDragManaged") ? new iUe(this, this.beans, this.rowNode, this.column) : new nUe(this, this.beans, this.rowNode, this.column); this.createManagedBean(e, this.beans.context); } } @@ -103175,7 +103320,7 @@ var Bje = class { removeMouseDownListener() { this.mouseDownListener && (this.mouseDownListener(), this.mouseDownListener = void 0); } -}, Kee = class extends De { +}, Xee = class extends De { constructor(e, t, r) { super(), this.parent = e, this.rowNode = t, this.column = r; } @@ -103188,7 +103333,7 @@ var Bje = class { this.column && (r = this.column.isRowDrag(this.rowNode) || this.parent.isCustomGui(), n = GO(this.column.getColDef().rowDrag)), n ? (this.parent.setDisplayed(!0, t), this.parent.setVisible(r, t)) : (this.parent.setDisplayed(r, t), this.parent.setVisible(!0, t)); } } -}, Uje = class extends Kee { +}, nUe = class extends Xee { constructor(e, t, r, n) { super(e, r, n), this.beans = t; } @@ -103207,7 +103352,7 @@ var Bje = class { const e = this.gos.get("suppressRowDrag"); this.setDisplayedOrVisible(e); } -}, Kje = class extends Kee { +}, iUe = class extends Xee { constructor(e, t, r, n) { super(e, r, n), this.beans = t; } @@ -103230,7 +103375,7 @@ var Bje = class { const t = this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(), r = t && t.shouldPreventRowMove(), n = this.gos.get("suppressRowDrag"), i = this.beans.dragAndDropService.hasExternalDropZones(), o = r && !i || n; this.setDisplayedOrVisible(o); } -}, vy = class Xh { +}, Cy = class Xh { constructor(t) { this.rowIndex = null, this.key = null, this.childrenMapped = {}, this.displayed = !1, this.rowTop = null, this.oldRowTop = null, this.selectable = !0, this.__objectId = Xh.OBJECT_ID_SEQUENCE++, this.__autoHeights = {}, this.alreadyRendered = !1, this.highlighted = null, this.hovered = !1, this.selected = !1, this.beans = t; } @@ -103530,7 +103675,7 @@ var Bje = class { return this.__hasChildren == null && this.updateHasChildren(), this.__hasChildren; } isEmptyRowGroupNode() { - return (this.group && pi(this.childrenAfterGroup)) ?? !1; + return (this.group && gi(this.childrenAfterGroup)) ?? !1; } dispatchCellChangedEvent(t, r, n) { var o; @@ -103669,7 +103814,7 @@ var Bje = class { /** Add an event listener. */ addEventListener(t, r) { var i; - this.localEventService || (this.localEventService = new Tp()), this.beans.frameworkOverrides.shouldWrapOutgoing && !this.frameworkEventListenerService && (this.localEventService.setFrameworkOverrides(this.beans.frameworkOverrides), this.frameworkEventListenerService = new VO(this.beans.frameworkOverrides)); + this.localEventService || (this.localEventService = new Mp()), this.beans.frameworkOverrides.shouldWrapOutgoing && !this.frameworkEventListenerService && (this.localEventService.setFrameworkOverrides(this.beans.frameworkOverrides), this.frameworkEventListenerService = new VO(this.beans.frameworkOverrides)); const n = ((i = this.frameworkEventListenerService) == null ? void 0 : i.wrap(r)) ?? r; this.localEventService.addEventListener(t, n); } @@ -103734,11 +103879,11 @@ var Bje = class { this.sibling && (this.sibling.setRowTop(null), this.sibling.setRowIndex(null), this.sibling = void 0); } }; -vy.ID_PREFIX_ROW_GROUP = "row-group-"; -vy.ID_PREFIX_TOP_PINNED = "t-"; -vy.ID_PREFIX_BOTTOM_PINNED = "b-"; -vy.OBJECT_ID_SEQUENCE = 0; -var Ol = vy, Yje = class extends De { +Cy.ID_PREFIX_ROW_GROUP = "row-group-"; +Cy.ID_PREFIX_TOP_PINNED = "t-"; +Cy.ID_PREFIX_BOTTOM_PINNED = "b-"; +Cy.OBJECT_ID_SEQUENCE = 0; +var Ll = Cy, oUe = class extends De { constructor() { super(...arguments), this.beanName = "filterManager", this.advancedFilterModelUpdateQueue = []; } @@ -103959,7 +104104,7 @@ var Ol = vy, Yje = class extends De { var r; return this.isAdvancedFilterEnabled() ? (this.warnAdvancedFilters(), Promise.resolve()) : ((r = this.columnFilterService) == null ? void 0 : r.setColumnFilterModel(e, t)) ?? Promise.resolve(); } -}, qje = class extends yn { +}, aUe = class extends yn { constructor(e, t) { super( /* html */ @@ -104020,9 +104165,9 @@ var Ol = vy, Yje = class extends De { destroy() { this.filterWrapper = null, super.destroy(); } -}, Yee = "ag-resizer-wrapper", Xje = ( +}, Zee = "ag-resizer-wrapper", sUe = ( /* html */ - `
+ `
@@ -104032,7 +104177,7 @@ var Ol = vy, Yje = class extends De {
` -), Zje = class extends De { +), lUe = class extends De { constructor(e, t) { super(), this.element = e, this.dragStartPosition = { x: 0, @@ -104142,12 +104287,12 @@ var Ol = vy, Yje = class extends De { const { popup: t } = this.config, r = this.element; let n = !1; if (typeof e == "string" && e.indexOf("%") !== -1) - pv(r, e), e = Oee(r), n = !0; + vv(r, e), e = Nee(r), n = !0; else if (e = Math.max(this.minHeight, e), this.positioned) { const i = this.getAvailableHeight(); i && e > i && (e = i); } - this.getHeight() !== e && (n ? (r.style.maxHeight = "unset", r.style.minHeight = "unset") : t ? pv(r, e) : (r.style.height = `${e}px`, r.style.flex = "0 0 auto", this.lastSize.height = typeof e == "number" ? e : parseFloat(e))); + this.getHeight() !== e && (n ? (r.style.maxHeight = "unset", r.style.minHeight = "unset") : t ? vv(r, e) : (r.style.height = `${e}px`, r.style.flex = "0 0 auto", this.lastSize.height = typeof e == "number" ? e : parseFloat(e))); } getAvailableHeight() { const { popup: e, forcePopupParentAsOffsetParent: t } = this.config; @@ -104173,7 +104318,7 @@ var Ol = vy, Yje = class extends De { const t = this.element, { popup: r } = this.config; let n = !1; if (typeof e == "string" && e.indexOf("%") !== -1) - ts(t, e), e = Eb(t), n = !0; + ts(t, e), e = Pb(t), n = !0; else if (this.positioned) { e = Math.max(this.minWidth, e); const { clientWidth: i } = this.offsetParent, o = r ? this.position.x : this.element.getBoundingClientRect().left; @@ -104259,12 +104404,12 @@ var Ol = vy, Yje = class extends De { const e = this.element; if (!e) return; - const r = new DOMParser().parseFromString(Xje, "text/html").body; + const r = new DOMParser().parseFromString(sUe, "text/html").body; e.appendChild(r.firstChild), this.createResizeMap(), this.resizersAdded = !0; } removeResizers() { this.resizerMap = void 0; - const e = this.element.querySelector(`.${Yee}`); + const e = this.element.querySelector(`.${Zee}`); e && this.element.removeChild(e), this.resizersAdded = !1; } getResizerElement(e) { @@ -104380,7 +104525,7 @@ var Ol = vy, Yje = class extends De { destroy() { super.destroy(), this.moveElementDragListener && this.dragService.removeDragSource(this.moveElementDragListener), this.constrainSizeToAvailableHeight(!1), this.clearResizeListeners(), this.removeResizers(); } -}, qee = class Xee extends De { +}, Qee = class Jee extends De { constructor(t, r = {}) { super(), this.eFocusableElement = t, this.callbacks = r, this.callbacks = { shouldStopEventPropagation: () => !1, @@ -104397,14 +104542,14 @@ var Ol = vy, Yje = class extends De { this.focusService = t.focusService; } postConstruct() { - this.eFocusableElement.classList.add(Xee.FOCUS_MANAGED_CLASS), this.addKeyDownListeners(this.eFocusableElement), this.callbacks.onFocusIn && this.addManagedElementListeners(this.eFocusableElement, { focusin: this.callbacks.onFocusIn }), this.callbacks.onFocusOut && this.addManagedElementListeners(this.eFocusableElement, { focusout: this.callbacks.onFocusOut }); + this.eFocusableElement.classList.add(Jee.FOCUS_MANAGED_CLASS), this.addKeyDownListeners(this.eFocusableElement), this.callbacks.onFocusIn && this.addManagedElementListeners(this.eFocusableElement, { focusin: this.callbacks.onFocusIn }), this.callbacks.onFocusOut && this.addManagedElementListeners(this.eFocusableElement, { focusout: this.callbacks.onFocusOut }); } addKeyDownListeners(t) { this.addManagedElementListeners(t, { keydown: (r) => { if (!(r.defaultPrevented || Lc(r))) { if (this.callbacks.shouldStopEventPropagation(r)) { - jf(r); + Kf(r); return; } r.key === Re.TAB ? this.callbacks.onTabKeyDown(r) : this.callbacks.handleKeyDown && this.callbacks.handleKeyDown(r); @@ -104413,8 +104558,8 @@ var Ol = vy, Yje = class extends De { }); } }; -qee.FOCUS_MANAGED_CLASS = "ag-focus-managed"; -var nh = qee, Zee = { +Qee.FOCUS_MANAGED_CLASS = "ag-focus-managed"; +var nh = Qee, ete = { applyFilter: "Apply", clearFilter: "Clear", resetFilter: "Reset", @@ -104447,12 +104592,12 @@ var nh = qee, Zee = { dateFormatOoo: "yyyy-mm-dd" }; function rL(e, t) { - return Mb(e) ? (e.debounceMs != null && Be("debounceMs is ignored when apply button is present"), 0) : e.debounceMs != null ? e.debounceMs : t; + return Ib(e) ? (e.debounceMs != null && Be("debounceMs is ignored when apply button is present"), 0) : e.debounceMs != null ? e.debounceMs : t; } -function Mb(e) { +function Ib(e) { return !!e.buttons && e.buttons.indexOf("apply") >= 0; } -var Qje = class extends yn { +var cUe = class extends yn { constructor(e) { super(), this.filterNameKey = e, this.applyActive = !1, this.hidePopup = null, this.debouncePending = !1, this.appliedModel = null, this.eFilterBody = zt, this.buttonListeners = []; } @@ -104464,7 +104609,7 @@ var Qje = class extends yn { new nh(this.getFocusableElement(), { handleKeyDown: this.handleKeyDown.bind(this) }) - ), this.positionableFeature = new Zje(this.getPositionableElement(), { + ), this.positionableFeature = new lUe(this.getPositionableElement(), { forcePopupParentAsOffsetParent: !0 }), this.createBean(this.positionableFeature); } @@ -104501,10 +104646,10 @@ var Qje = class extends yn { }); } setParams(e) { - this.providedFilterParams = e, this.applyActive = Mb(e), this.resetButtonsPanel(); + this.providedFilterParams = e, this.applyActive = Ib(e), this.resetButtonsPanel(); } updateParams(e) { - this.providedFilterParams = e, this.applyActive = Mb(e), this.resetUiToActiveModel(this.getModel(), () => { + this.providedFilterParams = e, this.applyActive = Ib(e), this.resetUiToActiveModel(this.getModel(), () => { this.updateUiVisibility(), this.setupOnBtApplyDebounce(); }); } @@ -104535,7 +104680,7 @@ var Qje = class extends yn { Be("Unknown button type specified"); return; } - const l = Kf( + const l = qf( /* html */ `