@magemetrics/ai 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react/ai.js +718 -721
- package/dist/react/index.d.ts +1 -1
- package/dist/web-component/index.d.ts +1 -1
- package/dist/web-component/web-component.es.js +37171 -35876
- package/package.json +5 -5
package/dist/react/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as N, jsxs as ht, Fragment as tl } from "react/jsx-runtime";
|
|
2
2
|
import * as el from "react";
|
|
3
|
-
import Me, { createContext as Qn, useContext as
|
|
3
|
+
import Me, { createContext as Qn, useContext as ys, useState as se, useMemo as Ie, useEffect as ue, useRef as He, useCallback as Ei, forwardRef as _d, memo as ns, useLayoutEffect as il, useReducer as Zw, useImperativeHandle as Kw } from "react";
|
|
4
4
|
import { getPublicApiClient as Qw, MageMetricsClient as Jw, TOKEN_STORAGE_KEY as t1, CHECK_KEY as e1 } from "@magemetrics/core";
|
|
5
5
|
import { MageMetricsClient as JE } from "@magemetrics/core";
|
|
6
6
|
import ei, { z as O } from "zod";
|
|
@@ -341,8 +341,8 @@ function F1() {
|
|
|
341
341
|
it && (mt = H[2]), p = this.$locale(), !et && mt && (p = B.Ls[mt]), this.$d = (function(bt, Tt, It, Ht) {
|
|
342
342
|
try {
|
|
343
343
|
if (["x", "X"].indexOf(Tt) > -1) return new Date((Tt === "X" ? 1e3 : 1) * bt);
|
|
344
|
-
var pe = T(Tt)(bt),
|
|
345
|
-
|
|
344
|
+
var pe = T(Tt)(bt), me = pe.year, Et = pe.month, jt = pe.day, Ct = pe.hours, Pt = pe.minutes, Vt = pe.seconds, Qt = pe.milliseconds, _t = pe.zone, ge = pe.week, ae = /* @__PURE__ */ new Date(), We = jt || (me || Et ? 1 : ae.getDate()), vt = me || ae.getFullYear(), Ye = 0;
|
|
345
|
+
me && !Et || (Ye = Et > 0 ? Et - 1 : ae.getMonth());
|
|
346
346
|
var be, bi = Ct || 0, vs = Pt || 0, li = Vt || 0, ws = Qt || 0;
|
|
347
347
|
return _t ? new Date(Date.UTC(vt, Ye, We, bi, vs, li, ws + 60 * _t.offset * 1e3)) : It ? new Date(Date.UTC(vt, Ye, We, bi, vs, li, ws)) : (be = new Date(vt, Ye, We, bi, vs, li, ws), ge && (be = Ht(be).week(ge).toDate()), be);
|
|
348
348
|
} catch {
|
|
@@ -695,7 +695,7 @@ const eS = (l, t = {}) => {
|
|
|
695
695
|
display: String(e),
|
|
696
696
|
sortValue: e
|
|
697
697
|
};
|
|
698
|
-
},
|
|
698
|
+
}, fs = {
|
|
699
699
|
title: O.string()
|
|
700
700
|
}, tc = {
|
|
701
701
|
xAxisLabel: O.string(),
|
|
@@ -708,32 +708,32 @@ const eS = (l, t = {}) => {
|
|
|
708
708
|
// Bar chart
|
|
709
709
|
O.object({
|
|
710
710
|
type: O.literal("bar"),
|
|
711
|
-
...
|
|
711
|
+
...fs,
|
|
712
712
|
...tc
|
|
713
713
|
}),
|
|
714
714
|
// Line/Area chart
|
|
715
715
|
O.object({
|
|
716
716
|
type: O.literal("line/area"),
|
|
717
|
-
...
|
|
717
|
+
...fs,
|
|
718
718
|
...tc
|
|
719
719
|
}),
|
|
720
720
|
// Scatter chart
|
|
721
721
|
O.object({
|
|
722
722
|
type: O.literal("scatter"),
|
|
723
|
-
...
|
|
723
|
+
...fs,
|
|
724
724
|
...tc
|
|
725
725
|
}),
|
|
726
726
|
// Pie chart
|
|
727
727
|
O.object({
|
|
728
728
|
type: O.literal("pie"),
|
|
729
|
-
...
|
|
729
|
+
...fs,
|
|
730
730
|
nameKey: O.string(),
|
|
731
731
|
dataKey: O.string()
|
|
732
732
|
})
|
|
733
733
|
]), rS = O.discriminatedUnion("type", [
|
|
734
734
|
O.object({
|
|
735
735
|
type: O.literal("bar"),
|
|
736
|
-
...
|
|
736
|
+
...fs,
|
|
737
737
|
config_version: O.literal(2),
|
|
738
738
|
xAxisLabel: O.string(),
|
|
739
739
|
yAxisLabel: O.string(),
|
|
@@ -745,7 +745,7 @@ const eS = (l, t = {}) => {
|
|
|
745
745
|
O.object({
|
|
746
746
|
type: O.literal("line/area"),
|
|
747
747
|
config_version: O.literal(2),
|
|
748
|
-
...
|
|
748
|
+
...fs,
|
|
749
749
|
xAxisColumn: O.string(),
|
|
750
750
|
valueColumns: O.array(O.string()),
|
|
751
751
|
yAxisLabels: O.array(O.string())
|
|
@@ -753,7 +753,7 @@ const eS = (l, t = {}) => {
|
|
|
753
753
|
// Line/Area chart - categorical format (requires pivoting)
|
|
754
754
|
O.object({
|
|
755
755
|
type: O.literal("line/area-categorical"),
|
|
756
|
-
...
|
|
756
|
+
...fs,
|
|
757
757
|
config_version: O.literal(2),
|
|
758
758
|
valueColumn: O.string(),
|
|
759
759
|
xAxisColumn: O.string(),
|
|
@@ -764,7 +764,7 @@ const eS = (l, t = {}) => {
|
|
|
764
764
|
// Scatter chart - new format (v2)
|
|
765
765
|
O.object({
|
|
766
766
|
type: O.literal("scatter"),
|
|
767
|
-
...
|
|
767
|
+
...fs,
|
|
768
768
|
config_version: O.literal(2),
|
|
769
769
|
xAxisLabel: O.string(),
|
|
770
770
|
yAxisLabel: O.string(),
|
|
@@ -774,7 +774,7 @@ const eS = (l, t = {}) => {
|
|
|
774
774
|
// Pie chart - new format (v2)
|
|
775
775
|
O.object({
|
|
776
776
|
type: O.literal("pie"),
|
|
777
|
-
...
|
|
777
|
+
...fs,
|
|
778
778
|
config_version: O.literal(2),
|
|
779
779
|
categoryColumn: O.string(),
|
|
780
780
|
valueColumn: O.string()
|
|
@@ -867,7 +867,7 @@ l.configuration.config_version === 2, nl = O.string().pipe(O.coerce.number()).op
|
|
|
867
867
|
example: "name,date"
|
|
868
868
|
},
|
|
869
869
|
type: "string"
|
|
870
|
-
}), Xs = O.object({ flowId: O.string().uuid() }).openapi("FlowId", { type: "string" }), wr = O.object({ flowDataId: O.string().pipe(O.coerce.number()) }).openapi("FlowDataId", { type: "integer" }), ol = O.string().pipe(O.coerce.number()),
|
|
870
|
+
}), Xs = O.object({ flowId: O.string().uuid() }).openapi("FlowId", { type: "string" }), wr = O.object({ flowDataId: O.string().pipe(O.coerce.number()) }).openapi("FlowDataId", { type: "integer" }), ol = O.string().pipe(O.coerce.number()), os = O.object({ report_id: ol }).openapi("ReportId", { type: "integer" });
|
|
871
871
|
fe({
|
|
872
872
|
method: "get",
|
|
873
873
|
path: "/api/v1/flows/{flowId}/data-reports",
|
|
@@ -1106,7 +1106,7 @@ fe({
|
|
|
1106
1106
|
operationId: "getDataReportColumns",
|
|
1107
1107
|
request: {
|
|
1108
1108
|
headers: Ce,
|
|
1109
|
-
params:
|
|
1109
|
+
params: os
|
|
1110
1110
|
},
|
|
1111
1111
|
responses: {
|
|
1112
1112
|
200: {
|
|
@@ -1143,7 +1143,7 @@ fe({
|
|
|
1143
1143
|
operationId: "exportReportData",
|
|
1144
1144
|
request: {
|
|
1145
1145
|
headers: Ce,
|
|
1146
|
-
params:
|
|
1146
|
+
params: os
|
|
1147
1147
|
},
|
|
1148
1148
|
responses: {
|
|
1149
1149
|
200: {
|
|
@@ -1229,7 +1229,7 @@ fe({
|
|
|
1229
1229
|
operationId: "getDataReportData",
|
|
1230
1230
|
request: {
|
|
1231
1231
|
headers: Ce,
|
|
1232
|
-
params:
|
|
1232
|
+
params: os,
|
|
1233
1233
|
query: O.object({
|
|
1234
1234
|
columns: cS,
|
|
1235
1235
|
limit: nl,
|
|
@@ -1322,7 +1322,7 @@ fe({
|
|
|
1322
1322
|
operationId: "getDataReportRowCount",
|
|
1323
1323
|
request: {
|
|
1324
1324
|
headers: Ce,
|
|
1325
|
-
params:
|
|
1325
|
+
params: os
|
|
1326
1326
|
},
|
|
1327
1327
|
responses: {
|
|
1328
1328
|
200: {
|
|
@@ -1400,7 +1400,7 @@ const pS = fe({
|
|
|
1400
1400
|
operationId: "getDataReportFeedback",
|
|
1401
1401
|
request: {
|
|
1402
1402
|
headers: Ce,
|
|
1403
|
-
params:
|
|
1403
|
+
params: os
|
|
1404
1404
|
},
|
|
1405
1405
|
responses: {
|
|
1406
1406
|
200: {
|
|
@@ -1474,7 +1474,7 @@ const uS = fe({
|
|
|
1474
1474
|
operationId: "upsertReportFeedback",
|
|
1475
1475
|
request: {
|
|
1476
1476
|
headers: Ce,
|
|
1477
|
-
params:
|
|
1477
|
+
params: os,
|
|
1478
1478
|
body: {
|
|
1479
1479
|
description: "The feedback for the flow data",
|
|
1480
1480
|
required: !0,
|
|
@@ -1543,7 +1543,7 @@ const fS = fe({
|
|
|
1543
1543
|
operationId: "deleteReportFeedback",
|
|
1544
1544
|
request: {
|
|
1545
1545
|
headers: Ce,
|
|
1546
|
-
params:
|
|
1546
|
+
params: os
|
|
1547
1547
|
},
|
|
1548
1548
|
responses: {
|
|
1549
1549
|
200: {
|
|
@@ -1614,7 +1614,7 @@ const gS = fe({
|
|
|
1614
1614
|
operationId: "getDataReportExplainability",
|
|
1615
1615
|
request: {
|
|
1616
1616
|
headers: Ce,
|
|
1617
|
-
params:
|
|
1617
|
+
params: os
|
|
1618
1618
|
},
|
|
1619
1619
|
responses: {
|
|
1620
1620
|
200: {
|
|
@@ -1650,7 +1650,7 @@ const gS = fe({
|
|
|
1650
1650
|
operationId: "getDataReport",
|
|
1651
1651
|
request: {
|
|
1652
1652
|
headers: Ce,
|
|
1653
|
-
params:
|
|
1653
|
+
params: os
|
|
1654
1654
|
},
|
|
1655
1655
|
responses: {
|
|
1656
1656
|
200: {
|
|
@@ -1688,7 +1688,7 @@ fe({
|
|
|
1688
1688
|
operationId: "getDataReportVisualizations",
|
|
1689
1689
|
request: {
|
|
1690
1690
|
headers: Ce,
|
|
1691
|
-
params:
|
|
1691
|
+
params: os
|
|
1692
1692
|
},
|
|
1693
1693
|
responses: {
|
|
1694
1694
|
200: {
|
|
@@ -1779,21 +1779,21 @@ const al = Qn(void 0), yS = ({ children: l, apiUrl: t, experimental_components:
|
|
|
1779
1779
|
children: l
|
|
1780
1780
|
}
|
|
1781
1781
|
), eo = () => {
|
|
1782
|
-
const l =
|
|
1782
|
+
const l = ys(al);
|
|
1783
1783
|
if (!l)
|
|
1784
1784
|
throw new Error(
|
|
1785
1785
|
"usePublicApiClient must be used within a MageMetricsPublicContextProvider"
|
|
1786
1786
|
);
|
|
1787
1787
|
return l.publicApiClient;
|
|
1788
1788
|
}, DE = () => {
|
|
1789
|
-
const l =
|
|
1789
|
+
const l = ys(al);
|
|
1790
1790
|
if (!l?.apiUrl)
|
|
1791
1791
|
throw new Error(
|
|
1792
1792
|
"useMageMetricsApiUrl must be used within a MageMetricsPublicContextProvider with a valid apiUrl"
|
|
1793
1793
|
);
|
|
1794
1794
|
return l.apiUrl;
|
|
1795
1795
|
}, Jr = () => {
|
|
1796
|
-
const l =
|
|
1796
|
+
const l = ys(al);
|
|
1797
1797
|
if (!l)
|
|
1798
1798
|
throw new Error(
|
|
1799
1799
|
"useCustomComponents must be used within a MageMetricsPublicContextProvider"
|
|
@@ -1855,21 +1855,21 @@ const al = Qn(void 0), yS = ({ children: l, apiUrl: t, experimental_components:
|
|
|
1855
1855
|
}), [k, t]);
|
|
1856
1856
|
return /* @__PURE__ */ N(ll.Provider, { value: y, children: l.children });
|
|
1857
1857
|
}, Sr = () => {
|
|
1858
|
-
const l =
|
|
1858
|
+
const l = ys(ll);
|
|
1859
1859
|
if (!l)
|
|
1860
1860
|
throw new Error(
|
|
1861
1861
|
"useInternalApiClient must be used within a MageMetricsContextProvider"
|
|
1862
1862
|
);
|
|
1863
1863
|
return l.coreClient.client();
|
|
1864
|
-
},
|
|
1865
|
-
const l =
|
|
1864
|
+
}, as = () => {
|
|
1865
|
+
const l = ys(ll);
|
|
1866
1866
|
if (!l)
|
|
1867
1867
|
throw new Error(
|
|
1868
1868
|
"useMageMetricsClient must be used within a MageMetricsContextProvider"
|
|
1869
1869
|
);
|
|
1870
1870
|
return l.coreClient;
|
|
1871
1871
|
}, IE = () => {
|
|
1872
|
-
const l =
|
|
1872
|
+
const l = ys(ll);
|
|
1873
1873
|
if (!l)
|
|
1874
1874
|
throw new Error(
|
|
1875
1875
|
"useMageMetricsReady must be used within a MageMetricsContextProvider"
|
|
@@ -1931,7 +1931,7 @@ const SS = async (l, t) => {
|
|
|
1931
1931
|
isFetching: e.isFetching
|
|
1932
1932
|
};
|
|
1933
1933
|
}, CS = (l, { pageSize: t = 20 }) => {
|
|
1934
|
-
const e =
|
|
1934
|
+
const e = as();
|
|
1935
1935
|
return Zg({
|
|
1936
1936
|
queryKey: ["infinite-report-data", { reportId: l }, { pageSize: t }, e],
|
|
1937
1937
|
enabled: !!e,
|
|
@@ -1970,7 +1970,7 @@ const SS = async (l, t) => {
|
|
|
1970
1970
|
refetchInterval: 500
|
|
1971
1971
|
});
|
|
1972
1972
|
}, MS = (l) => {
|
|
1973
|
-
const t =
|
|
1973
|
+
const t = as();
|
|
1974
1974
|
return ai({
|
|
1975
1975
|
queryKey: ["dataReportMetadata", { reportId: l }, t],
|
|
1976
1976
|
queryFn: async () => await t.api.getReport(l),
|
|
@@ -2005,7 +2005,7 @@ const SS = async (l, t) => {
|
|
|
2005
2005
|
infiniteData: n
|
|
2006
2006
|
};
|
|
2007
2007
|
}, NE = (l, t) => {
|
|
2008
|
-
const e =
|
|
2008
|
+
const e = as();
|
|
2009
2009
|
return ai({
|
|
2010
2010
|
queryKey: ["dataReportColumnValue", l, t, e],
|
|
2011
2011
|
queryFn: async () => e.api.fetchReportData(l, t),
|
|
@@ -2356,7 +2356,7 @@ const Xi = {
|
|
|
2356
2356
|
setMessagesViewportRef: () => {
|
|
2357
2357
|
},
|
|
2358
2358
|
isUserScrollingRef: { current: !1 }
|
|
2359
|
-
}), Di = () =>
|
|
2359
|
+
}), Di = () => ys(p0), u0 = ({ children: l }) => {
|
|
2360
2360
|
const [t, e] = se(0), [s, n] = se(null), [o, h] = se(null), d = He(!1), p = a1(e, 200), f = He(null), b = He(null), k = Ei(
|
|
2361
2361
|
(M) => {
|
|
2362
2362
|
if (f.current?.disconnect(), f.current = null, M) {
|
|
@@ -2398,7 +2398,7 @@ const Xi = {
|
|
|
2398
2398
|
throw new Error(`Chat instance with id ${l} not found`);
|
|
2399
2399
|
return e;
|
|
2400
2400
|
}, HS = (l) => {
|
|
2401
|
-
const t =
|
|
2401
|
+
const t = as(), e = FS(l, t), s = l1({
|
|
2402
2402
|
chat: e
|
|
2403
2403
|
}), { data: n, isPending: o } = ai({
|
|
2404
2404
|
queryKey: ["chatMessages", l, t],
|
|
@@ -2418,7 +2418,7 @@ const Xi = {
|
|
|
2418
2418
|
};
|
|
2419
2419
|
};
|
|
2420
2420
|
function Vs(l) {
|
|
2421
|
-
const { chat: t, isLoadingMessages: e } = HS(l), s =
|
|
2421
|
+
const { chat: t, isLoadingMessages: e } = HS(l), s = as();
|
|
2422
2422
|
return {
|
|
2423
2423
|
chat: {
|
|
2424
2424
|
...t,
|
|
@@ -2492,7 +2492,7 @@ const WS = to(
|
|
|
2492
2492
|
}
|
|
2493
2493
|
)
|
|
2494
2494
|
), f0 = Qn(null), dl = () => {
|
|
2495
|
-
const l =
|
|
2495
|
+
const l = ys(f0);
|
|
2496
2496
|
if (!l)
|
|
2497
2497
|
throw new Error("useRootRef must be used within a RootRefProvider");
|
|
2498
2498
|
return l;
|
|
@@ -2820,7 +2820,7 @@ const aC = ({
|
|
|
2820
2820
|
children: t
|
|
2821
2821
|
}
|
|
2822
2822
|
)
|
|
2823
|
-
),
|
|
2823
|
+
), de = Me.forwardRef(
|
|
2824
2824
|
({ className: l, children: t, ...e }, s) => /* @__PURE__ */ N(
|
|
2825
2825
|
v0,
|
|
2826
2826
|
{
|
|
@@ -2886,7 +2886,7 @@ const Wu = ({ imageUrls: l }) => {
|
|
|
2886
2886
|
/* @__PURE__ */ N($r, { children: /* @__PURE__ */ N(Xe.Description, { children: "Image Gallery" }) }),
|
|
2887
2887
|
/* @__PURE__ */ N(Xe.Overlay, { className: "mm:fixed mm:inset-0 mm:bg-black/60 mm:z-50" }),
|
|
2888
2888
|
/* @__PURE__ */ N(Xe.Content, { asChild: !0, children: /* @__PURE__ */ ht(re, { className: "mm:bg-light-neutral-500 mm:z-50 mm:fixed mm:left-1/2 mm:top-1/2 mm:max-h-[85vh] mm:w-[90vw] mm:max-w-[850px] mm:p-4 mm:rounded-md mm:-translate-x-1/2 mm:-translate-y-1/2", children: [
|
|
2889
|
-
/* @__PURE__ */ ht(
|
|
2889
|
+
/* @__PURE__ */ ht(de, { className: "mm:justify-between mm:items-center", children: [
|
|
2890
2890
|
/* @__PURE__ */ N($r, { children: /* @__PURE__ */ N(Xe.Title, { className: "mm:text-sm", children: "Image Gallery" }) }),
|
|
2891
2891
|
/* @__PURE__ */ N(Xe.Close, { asChild: !0, children: /* @__PURE__ */ N(ii, { variant: "icon", onClick: () => e(!1), children: /* @__PURE__ */ N(y0, { size: 20 }) }) })
|
|
2892
2892
|
] }),
|
|
@@ -2898,7 +2898,7 @@ const Wu = ({ imageUrls: l }) => {
|
|
|
2898
2898
|
className: "mm:rounded-md mm:max-w-full mm:max-h-[calc(85vh-120px)] mm:object-contain mm:w-auto mm:mx-auto"
|
|
2899
2899
|
}
|
|
2900
2900
|
),
|
|
2901
|
-
d && /* @__PURE__ */ ht(
|
|
2901
|
+
d && /* @__PURE__ */ ht(de, { className: "mm:p-2 mm:items-center mm:justify-center", children: [
|
|
2902
2902
|
/* @__PURE__ */ N(ii, { onClick: o, variant: "icon", children: /* @__PURE__ */ N(lC, { size: 18 }) }),
|
|
2903
2903
|
/* @__PURE__ */ ht("p", { className: "mm:tabular-nums", children: [
|
|
2904
2904
|
s + 1,
|
|
@@ -2916,9 +2916,15 @@ const Wu = ({ imageUrls: l }) => {
|
|
|
2916
2916
|
const t = JSON.parse(l);
|
|
2917
2917
|
return Array.isArray(t) ? t : void 0;
|
|
2918
2918
|
} catch {
|
|
2919
|
-
|
|
2919
|
+
try {
|
|
2920
|
+
if (l.startsWith("{") && l.endsWith("}") || l.startsWith("[") && l.endsWith("]"))
|
|
2921
|
+
return l.slice(1, -1).split(",");
|
|
2922
|
+
} catch {
|
|
2923
|
+
return;
|
|
2924
|
+
}
|
|
2925
|
+
return;
|
|
2920
2926
|
}
|
|
2921
|
-
}, mC =
|
|
2927
|
+
}, mC = ns(
|
|
2922
2928
|
(l) => {
|
|
2923
2929
|
const { formattedValue: t, unit: e, renderType: s } = l, n = Jr(), o = t?.display;
|
|
2924
2930
|
if (s && n?.dataTableCells?.renderTypes?.[s]) {
|
|
@@ -3182,7 +3188,7 @@ const Wu = ({ imageUrls: l }) => {
|
|
|
3182
3188
|
style: e
|
|
3183
3189
|
}) => {
|
|
3184
3190
|
const s = !!l, n = s, o = dl();
|
|
3185
|
-
return /* @__PURE__ */ N("th", { style: e, className: "mm:px-3 mm:py-2 mm:border-spacing-0", children: /* @__PURE__ */ ht(
|
|
3191
|
+
return /* @__PURE__ */ N("th", { style: e, className: "mm:px-3 mm:py-2 mm:border-spacing-0", children: /* @__PURE__ */ ht(de, { className: "mm:gap-1 mm:flex-nowrap mm:items-center", children: [
|
|
3186
3192
|
/* @__PURE__ */ N(Un, { className: "mm:truncate mm:text-sm mm:font-medium", children: t }),
|
|
3187
3193
|
/* @__PURE__ */ ht(Xe.Root, { modal: !0, children: [
|
|
3188
3194
|
/* @__PURE__ */ N(Xe.Trigger, { asChild: !0, children: /* @__PURE__ */ N(
|
|
@@ -3218,7 +3224,7 @@ const Wu = ({ imageUrls: l }) => {
|
|
|
3218
3224
|
] })
|
|
3219
3225
|
] })
|
|
3220
3226
|
] }) });
|
|
3221
|
-
}, yC =
|
|
3227
|
+
}, yC = ns, vC = ({
|
|
3222
3228
|
headerGroups: l,
|
|
3223
3229
|
explainability: t
|
|
3224
3230
|
}) => /* @__PURE__ */ N(
|
|
@@ -3253,7 +3259,7 @@ const Wu = ({ imageUrls: l }) => {
|
|
|
3253
3259
|
e.id
|
|
3254
3260
|
))
|
|
3255
3261
|
}
|
|
3256
|
-
), wC = yC(vC), SC = m1(), CC = (l) => l.split("_").map((s) => s.length === 0 ? "" : s.charAt(0).toUpperCase() + s.slice(1)).join(" "), kC =
|
|
3262
|
+
), wC = yC(vC), SC = m1(), CC = (l) => l.split("_").map((s) => s.length === 0 ? "" : s.charAt(0).toUpperCase() + s.slice(1)).join(" "), kC = ns(({ unit: l, renderType: t, formattedValue: e }) => /* @__PURE__ */ N(
|
|
3257
3263
|
mC,
|
|
3258
3264
|
{
|
|
3259
3265
|
unit: l,
|
|
@@ -3416,7 +3422,7 @@ const NC = (l) => {
|
|
|
3416
3422
|
}
|
|
3417
3423
|
)
|
|
3418
3424
|
] });
|
|
3419
|
-
}, Vu =
|
|
3425
|
+
}, Vu = ns(
|
|
3420
3426
|
({ direction: l, visible: t, scrollContainerRef: e }) => {
|
|
3421
3427
|
const s = l === "left", n = s ? LC : OC;
|
|
3422
3428
|
return /* @__PURE__ */ N(
|
|
@@ -3472,7 +3478,7 @@ const NC = (l) => {
|
|
|
3472
3478
|
useGrouping: !0
|
|
3473
3479
|
});
|
|
3474
3480
|
return e ? /* @__PURE__ */ N(ii, { variant: "light", children: "Loading more rows …" }) : /* @__PURE__ */ N(ii, { disabled: e, onClick: o, variant: "light", children: n ? "Done. Back to top?" : `${Math.ceil(l)}% of ${h.format(t)} rows` });
|
|
3475
|
-
}, pl =
|
|
3481
|
+
}, pl = ns(
|
|
3476
3482
|
({
|
|
3477
3483
|
flowDataId: l,
|
|
3478
3484
|
data: t,
|
|
@@ -3730,7 +3736,7 @@ const jC = Me.memo(
|
|
|
3730
3736
|
...s
|
|
3731
3737
|
}
|
|
3732
3738
|
), qd = (l) => {
|
|
3733
|
-
const t =
|
|
3739
|
+
const t = as(), e = n1({ mutationKey: ["createFlow"] }) > 0, s = Vn({
|
|
3734
3740
|
mutationKey: ["createFlow"],
|
|
3735
3741
|
mutationFn: async (n) => t.api.createFlow(n),
|
|
3736
3742
|
...l
|
|
@@ -3904,7 +3910,7 @@ const UC = (l) => {
|
|
|
3904
3910
|
);
|
|
3905
3911
|
return /* @__PURE__ */ N(E0.Provider, { value: y, children: h ? l : null });
|
|
3906
3912
|
}, Ys = () => {
|
|
3907
|
-
const l =
|
|
3913
|
+
const l = ys(E0);
|
|
3908
3914
|
if (l === void 0)
|
|
3909
3915
|
throw new Error(
|
|
3910
3916
|
"useAppState must be used within a MageMetricsStateProvider"
|
|
@@ -4052,7 +4058,7 @@ const UC = (l) => {
|
|
|
4052
4058
|
}
|
|
4053
4059
|
),
|
|
4054
4060
|
/* @__PURE__ */ ht(
|
|
4055
|
-
|
|
4061
|
+
de,
|
|
4056
4062
|
{
|
|
4057
4063
|
className: kt(
|
|
4058
4064
|
"mm:justify-between mm:@sm:justify-end mm:items-center mm:gap-4"
|
|
@@ -4413,7 +4419,7 @@ const Y0 = (l) => {
|
|
|
4413
4419
|
userFriendlyGoal: e.user_friendly_goal
|
|
4414
4420
|
} : null
|
|
4415
4421
|
});
|
|
4416
|
-
}, Sk = "data:image/svg+xml,%3csvg%20width='21'%20height='14'%20viewBox='0%200%2021%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_121_961)'%3e%3cmask%20id='mask0_121_961'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='14'%3e%3cpath%20d='M21%20-1.53303e-05L1.22392e-06%20-9.53674e-06L0%2014L21%2013.9998L21%20-1.53303e-05Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_121_961)'%3e%3cpath%20d='M20.5%20-0.499998L0.348634%20-0.5L19.7227%2012.416L20.5%2012.9346L20.5%20-0.499998Z'%20fill='white'%20stroke='%23D7DEE2'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_121_961'%3e%3crect%20width='21'%20height='14'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", G0 =
|
|
4422
|
+
}, Sk = "data:image/svg+xml,%3csvg%20width='21'%20height='14'%20viewBox='0%200%2021%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_121_961)'%3e%3cmask%20id='mask0_121_961'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='14'%3e%3cpath%20d='M21%20-1.53303e-05L1.22392e-06%20-9.53674e-06L0%2014L21%2013.9998L21%20-1.53303e-05Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_121_961)'%3e%3cpath%20d='M20.5%20-0.499998L0.348634%20-0.5L19.7227%2012.416L20.5%2012.9346L20.5%20-0.499998Z'%20fill='white'%20stroke='%23D7DEE2'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_121_961'%3e%3crect%20width='21'%20height='14'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", G0 = ns(
|
|
4417
4423
|
({
|
|
4418
4424
|
children: l,
|
|
4419
4425
|
title: t,
|
|
@@ -4448,7 +4454,7 @@ const Y0 = (l) => {
|
|
|
4448
4454
|
}
|
|
4449
4455
|
)
|
|
4450
4456
|
] })
|
|
4451
|
-
), Ck = ({ request: l }) => /* @__PURE__ */ N(G0, { title: "YOUR REQUEST", children: l }), kk = () => /* @__PURE__ */ ht(
|
|
4457
|
+
), Ck = ({ request: l }) => /* @__PURE__ */ N(G0, { title: "YOUR REQUEST", children: l }), kk = () => /* @__PURE__ */ ht(de, { className: "mm:items-center mm:justify-center mm:gap-4", children: [
|
|
4452
4458
|
/* @__PURE__ */ N(xi, { className: "mm:size-5 mm:border-1 mm:border-brand-neutral-250 mm:border-l-transparent" }),
|
|
4453
4459
|
/* @__PURE__ */ N("p", { className: "mm:text-brand-neutral-250 mm:text-xl", children: "Loading chat history …" })
|
|
4454
4460
|
] }), X0 = () => {
|
|
@@ -4519,7 +4525,7 @@ const Y0 = (l) => {
|
|
|
4519
4525
|
),
|
|
4520
4526
|
children: /* @__PURE__ */ ht(re, { className: kt("mm:min-w-0 mm:gap-1"), children: [
|
|
4521
4527
|
/* @__PURE__ */ ht(
|
|
4522
|
-
|
|
4528
|
+
de,
|
|
4523
4529
|
{
|
|
4524
4530
|
className: kt(
|
|
4525
4531
|
"mm:items-center mm:justify-between",
|
|
@@ -4555,7 +4561,7 @@ const Y0 = (l) => {
|
|
|
4555
4561
|
}
|
|
4556
4562
|
)
|
|
4557
4563
|
] });
|
|
4558
|
-
}, Mk = () => /* @__PURE__ */ N(
|
|
4564
|
+
}, Mk = () => /* @__PURE__ */ N(de, { className: "mm:justify-between mm:flex-nowrap mm:overflow-hidden mm:select-none", children: /* @__PURE__ */ ht(de, { className: "mm:flex-1 mm:gap-1 mm:flex-nowrap mm:overflow-hidden", children: [
|
|
4559
4565
|
/* @__PURE__ */ N(re, { className: "mm:items-center mm:justify-center mm:flex-[0_0_30px]", children: /* @__PURE__ */ N(w0, { className: "mm:text-red-500" }) }),
|
|
4560
4566
|
/* @__PURE__ */ N(Un, { className: "mm:truncate mm:flex-1 mm:font-semibold", children: "Data report creation failed" })
|
|
4561
4567
|
] }) }), Ak = Gi.create(Fe), Tk = ({ children: l }) => /* @__PURE__ */ N(
|
|
@@ -4570,7 +4576,7 @@ const Y0 = (l) => {
|
|
|
4570
4576
|
}
|
|
4571
4577
|
), Pk = ({ flowId: l }) => {
|
|
4572
4578
|
const { data: t } = kS(l);
|
|
4573
|
-
return t ? /* @__PURE__ */ N(
|
|
4579
|
+
return t ? /* @__PURE__ */ N(de, { className: "mm:justify-between mm:flex-nowrap mm:overflow-hidden mm:select-none", children: /* @__PURE__ */ ht(de, { className: "mm:flex-1 mm:gap-1 mm:flex-nowrap mm:overflow-hidden", children: [
|
|
4574
4580
|
/* @__PURE__ */ N(re, { className: "mm:items-center mm:justify-center mm:flex-[0_0_30px]", children: /* @__PURE__ */ N(xi, { className: "mm:size-3 mm:border-1" }) }),
|
|
4575
4581
|
/* @__PURE__ */ N(jd, { mode: "wait", children: /* @__PURE__ */ N(Tk, { children: t.status || "Starting your report..." }, t.status || "Starting your report...") })
|
|
4576
4582
|
] }) }) : null;
|
|
@@ -4686,13 +4692,13 @@ const Y0 = (l) => {
|
|
|
4686
4692
|
}, $u = ({ loading: l, result: t, children: e, className: s }) => {
|
|
4687
4693
|
const n = l || !t ? "loading" : t.status;
|
|
4688
4694
|
return /* @__PURE__ */ N(
|
|
4689
|
-
|
|
4695
|
+
de,
|
|
4690
4696
|
{
|
|
4691
4697
|
className: kt(
|
|
4692
4698
|
"mm:justify-between mm:flex-nowrap mm:overflow-hidden mm:select-none",
|
|
4693
4699
|
s
|
|
4694
4700
|
),
|
|
4695
|
-
children: /* @__PURE__ */ ht(
|
|
4701
|
+
children: /* @__PURE__ */ ht(de, { className: "mm:flex-1 mm:gap-2 mm:flex-nowrap mm:overflow-hidden mm:items-center", children: [
|
|
4696
4702
|
/* @__PURE__ */ N(jd, { mode: "wait", children: /* @__PURE__ */ N(Rk, { variant: n }) }),
|
|
4697
4703
|
/* @__PURE__ */ N("span", { className: "mm:flex-1 mm:text-brand-neutral-350", children: e })
|
|
4698
4704
|
] })
|
|
@@ -4885,7 +4891,7 @@ const Bk = O.string().uuid(), zk = fe({
|
|
|
4885
4891
|
enabled: !!e,
|
|
4886
4892
|
staleTime: 1 / 0
|
|
4887
4893
|
});
|
|
4888
|
-
}, Fk =
|
|
4894
|
+
}, Fk = ns(
|
|
4889
4895
|
({
|
|
4890
4896
|
result: l
|
|
4891
4897
|
}) => {
|
|
@@ -4912,7 +4918,7 @@ const Bk = O.string().uuid(), zk = fe({
|
|
|
4912
4918
|
}
|
|
4913
4919
|
);
|
|
4914
4920
|
}
|
|
4915
|
-
), Hk =
|
|
4921
|
+
), Hk = ns(
|
|
4916
4922
|
({
|
|
4917
4923
|
result: l
|
|
4918
4924
|
}) => {
|
|
@@ -4934,10 +4940,10 @@ const Bk = O.string().uuid(), zk = fe({
|
|
|
4934
4940
|
}
|
|
4935
4941
|
);
|
|
4936
4942
|
}
|
|
4937
|
-
), Wk = () => /* @__PURE__ */ N(
|
|
4943
|
+
), Wk = () => /* @__PURE__ */ N(de, { className: "mm:justify-between mm:flex-nowrap mm:overflow-hidden mm:select-none", children: /* @__PURE__ */ ht(de, { className: "mm:flex-1 mm:gap-1 mm:flex-nowrap mm:overflow-hidden", children: [
|
|
4938
4944
|
/* @__PURE__ */ N(re, { className: "mm:items-center mm:justify-center mm:flex-[0_0_30px]", children: /* @__PURE__ */ N(w0, { className: "mm:text-red-500" }) }),
|
|
4939
4945
|
/* @__PURE__ */ N(Un, { className: "mm:truncate mm:flex-1 mm:font-semibold", children: "Visualization creation failed" })
|
|
4940
|
-
] }) }), Yk = () => /* @__PURE__ */ N(
|
|
4946
|
+
] }) }), Yk = () => /* @__PURE__ */ N(de, { className: "mm:justify-between mm:flex-nowrap mm:overflow-hidden mm:select-none", children: /* @__PURE__ */ ht(de, { className: "mm:flex-1 mm:gap-1 mm:flex-nowrap mm:overflow-hidden", children: [
|
|
4941
4947
|
/* @__PURE__ */ N(re, { className: "mm:items-center mm:justify-center mm:flex-[0_0_30px]", children: /* @__PURE__ */ N(xi, { className: "mm:size-3 mm:border-1" }) }),
|
|
4942
4948
|
/* @__PURE__ */ N("p", { className: "mm:text-brand-neutral-250", children: "Visualization in creation" })
|
|
4943
4949
|
] }) }), Gk = ({
|
|
@@ -5060,7 +5066,7 @@ const Bk = O.string().uuid(), zk = fe({
|
|
|
5060
5066
|
if (o.type === "text" && o.text.trim() !== "") {
|
|
5061
5067
|
s.push(
|
|
5062
5068
|
/* @__PURE__ */ ht(
|
|
5063
|
-
|
|
5069
|
+
de,
|
|
5064
5070
|
{
|
|
5065
5071
|
className: "mm:items-start mm:gap-4 mm:min-w-0",
|
|
5066
5072
|
children: [
|
|
@@ -5184,7 +5190,7 @@ const Bk = O.string().uuid(), zk = fe({
|
|
|
5184
5190
|
}) => {
|
|
5185
5191
|
const e = Jr();
|
|
5186
5192
|
return /* @__PURE__ */ ht(
|
|
5187
|
-
|
|
5193
|
+
de,
|
|
5188
5194
|
{
|
|
5189
5195
|
className: kt("mm:items-start mm:gap-4 mm:min-w-0"),
|
|
5190
5196
|
children: [
|
|
@@ -5552,7 +5558,7 @@ ${e}
|
|
|
5552
5558
|
flowId: s,
|
|
5553
5559
|
reportTitle: n
|
|
5554
5560
|
}) => /* @__PURE__ */ ht(re, { className: "mm:gap-0", children: [
|
|
5555
|
-
/* @__PURE__ */ ht(
|
|
5561
|
+
/* @__PURE__ */ ht(de, { className: "mm:gap-4 mm:mb-4 mm:justify-between", children: [
|
|
5556
5562
|
/* @__PURE__ */ ht("span", { className: "mm:font-medium", children: [
|
|
5557
5563
|
e,
|
|
5558
5564
|
":",
|
|
@@ -5600,7 +5606,7 @@ ${e}
|
|
|
5600
5606
|
}), n;
|
|
5601
5607
|
}, [l, e]);
|
|
5602
5608
|
return /* @__PURE__ */ N(
|
|
5603
|
-
|
|
5609
|
+
de,
|
|
5604
5610
|
{
|
|
5605
5611
|
className: kt(
|
|
5606
5612
|
"mm:flex-wrap mm:gap-4 mm:select-none mm:items-center",
|
|
@@ -5673,8 +5679,8 @@ ${e}
|
|
|
5673
5679
|
}), p = (f) => {
|
|
5674
5680
|
o?.helpfulness === f ? d() : h(f);
|
|
5675
5681
|
};
|
|
5676
|
-
return /* @__PURE__ */ N(
|
|
5677
|
-
(f, b) => s === f.value ? /* @__PURE__ */ ht(
|
|
5682
|
+
return /* @__PURE__ */ N(de, { className: "mm:gap-2 mm:select-none", children: /* @__PURE__ */ N(jd, { mode: "popLayout", children: t0.map(
|
|
5683
|
+
(f, b) => s === f.value ? /* @__PURE__ */ ht(de, { className: "mm:items-center", children: [
|
|
5678
5684
|
b > 0 && /* @__PURE__ */ N("div", { className: "mm:border-l mm:border-gray-500 mm:h-3" }),
|
|
5679
5685
|
/* @__PURE__ */ ht(
|
|
5680
5686
|
Gi.span,
|
|
@@ -5702,7 +5708,7 @@ ${e}
|
|
|
5702
5708
|
]
|
|
5703
5709
|
}
|
|
5704
5710
|
)
|
|
5705
|
-
] }, `success-${f.value}`) : /* @__PURE__ */ ht(
|
|
5711
|
+
] }, `success-${f.value}`) : /* @__PURE__ */ ht(de, { className: "mm:items-center", children: [
|
|
5706
5712
|
b > 0 && /* @__PURE__ */ N("div", { className: "mm:border-l mm:border-gray-500 mm:h-3" }),
|
|
5707
5713
|
/* @__PURE__ */ N(
|
|
5708
5714
|
Gi.span,
|
|
@@ -5818,7 +5824,7 @@ ${e}
|
|
|
5818
5824
|
] })
|
|
5819
5825
|
] }), vM = ({ lines: l }) => {
|
|
5820
5826
|
const t = l.map((s) => s.sql), e = l.map((s) => s.explanation);
|
|
5821
|
-
return /* @__PURE__ */ ht(
|
|
5827
|
+
return /* @__PURE__ */ ht(de, { children: [
|
|
5822
5828
|
/* @__PURE__ */ N(Ku, { title: "SQL", lines: t }),
|
|
5823
5829
|
/* @__PURE__ */ N(Ku, { title: "Explanation", lines: e })
|
|
5824
5830
|
] });
|
|
@@ -5840,7 +5846,7 @@ ${e}
|
|
|
5840
5846
|
), SM = ({ flowDataId: l }) => {
|
|
5841
5847
|
const [t, e] = se("general"), { data: s, isLoading: n } = Ud(l);
|
|
5842
5848
|
return /* @__PURE__ */ ht("div", { children: [
|
|
5843
|
-
/* @__PURE__ */ ht(
|
|
5849
|
+
/* @__PURE__ */ ht(de, { className: "mm:items-stretch mm:w-full mm:gap-0", children: [
|
|
5844
5850
|
/* @__PURE__ */ N(
|
|
5845
5851
|
Qu,
|
|
5846
5852
|
{
|
|
@@ -5886,7 +5892,7 @@ ${e}
|
|
|
5886
5892
|
container: t.current,
|
|
5887
5893
|
handleOnly: !0,
|
|
5888
5894
|
children: [
|
|
5889
|
-
/* @__PURE__ */ N(or.Trigger, { asChild: !0, children: /* @__PURE__ */ ht(
|
|
5895
|
+
/* @__PURE__ */ N(or.Trigger, { asChild: !0, children: /* @__PURE__ */ ht(de, { className: "mm:items-center mm:cursor-pointer mm:hover:underline mm:select-none", children: [
|
|
5890
5896
|
/* @__PURE__ */ N(
|
|
5891
5897
|
$d,
|
|
5892
5898
|
{
|
|
@@ -5921,7 +5927,7 @@ ${e}
|
|
|
5921
5927
|
]
|
|
5922
5928
|
}
|
|
5923
5929
|
);
|
|
5924
|
-
}, kM =
|
|
5930
|
+
}, kM = ns(
|
|
5925
5931
|
({ report: l }) => {
|
|
5926
5932
|
const t = Jr(), {
|
|
5927
5933
|
allData: e,
|
|
@@ -5980,18 +5986,18 @@ ${e}
|
|
|
5980
5986
|
}
|
|
5981
5987
|
);
|
|
5982
5988
|
}
|
|
5983
|
-
), MM = ({
|
|
5984
|
-
const
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
const
|
|
5988
|
-
return /* @__PURE__ */ ht(re, { className: "mm:flex-1 mm:overflow-hidden mm:gap-4", children: [
|
|
5989
|
+
), MM = ns(({ report: l }) => {
|
|
5990
|
+
const t = Jr()?.messageActions;
|
|
5991
|
+
return t ? /* @__PURE__ */ N(de, { className: "mm:items-center", children: /* @__PURE__ */ N(t, { type: "data-report", report: l }) }) : /* @__PURE__ */ N(de, { className: "mm:items-center" });
|
|
5992
|
+
}), AM = ({ reportId: l, ToggledCollapsedButton: t }) => {
|
|
5993
|
+
const { data: e } = hl(l), { data: s } = Ud(l);
|
|
5994
|
+
return e ? /* @__PURE__ */ ht(re, { className: "mm:flex-1 mm:overflow-hidden mm:gap-4", children: [
|
|
5989
5995
|
/* @__PURE__ */ ht("div", { className: "mm:flex mm:items-start mm:justify-between mm:gap-2", children: [
|
|
5990
5996
|
/* @__PURE__ */ N("h3", { children: e.title }),
|
|
5991
5997
|
t
|
|
5992
5998
|
] }),
|
|
5993
5999
|
/* @__PURE__ */ ht(re, { className: "mm:flex-1 mm:overflow-hidden", children: [
|
|
5994
|
-
/* @__PURE__ */ ht(
|
|
6000
|
+
/* @__PURE__ */ ht(de, { className: "mm:flex-nowrap mm:justify-between mm:items-center", children: [
|
|
5995
6001
|
/* @__PURE__ */ N(
|
|
5996
6002
|
fM,
|
|
5997
6003
|
{
|
|
@@ -6000,15 +6006,15 @@ ${e}
|
|
|
6000
6006
|
explainability: s
|
|
6001
6007
|
}
|
|
6002
6008
|
),
|
|
6003
|
-
/* @__PURE__ */ N(
|
|
6009
|
+
/* @__PURE__ */ N(MM, { report: e })
|
|
6004
6010
|
] }),
|
|
6005
6011
|
/* @__PURE__ */ N(kM, { report: e }),
|
|
6006
|
-
/* @__PURE__ */ ht(
|
|
6012
|
+
/* @__PURE__ */ ht(de, { className: "mm:justify-between mm:items-center mm:flex-wrap-reverse", children: [
|
|
6007
6013
|
/* @__PURE__ */ N(gM, { flowDataId: l }),
|
|
6008
6014
|
s?.sql_explanation && s.business_explanation ? /* @__PURE__ */ N(CM, { flowDataId: l }) : null
|
|
6009
6015
|
] })
|
|
6010
6016
|
] })
|
|
6011
|
-
] });
|
|
6017
|
+
] }) : null;
|
|
6012
6018
|
};
|
|
6013
6019
|
var rd;
|
|
6014
6020
|
(function(l) {
|
|
@@ -6032,7 +6038,7 @@ var rd;
|
|
|
6032
6038
|
return t;
|
|
6033
6039
|
})(), l.charts = [], l.composed = [], l.dateFormats = {}, l.seriesTypes = {}, l.symbolSizes = {}, l.chartCount = 0;
|
|
6034
6040
|
})(rd || (rd = {}));
|
|
6035
|
-
const Xt = rd, { charts:
|
|
6041
|
+
const Xt = rd, { charts: TM, doc: $a, win: vr } = Xt;
|
|
6036
6042
|
function $n(l, t, e, s) {
|
|
6037
6043
|
const n = t ? "Highcharts error" : "Highcharts warning";
|
|
6038
6044
|
l === 32 && (l = `${n}: Deprecated member`);
|
|
@@ -6055,7 +6061,7 @@ function $n(l, t, e, s) {
|
|
|
6055
6061
|
(function(l) {
|
|
6056
6062
|
l.messages = [];
|
|
6057
6063
|
})($n || ($n = {}));
|
|
6058
|
-
function
|
|
6064
|
+
function PM(l, ...t) {
|
|
6059
6065
|
let e, s = [l, ...t], n = {};
|
|
6060
6066
|
const o = function(d, p) {
|
|
6061
6067
|
return typeof d != "object" && (d = {}), Cr(p, function(f, b) {
|
|
@@ -6068,14 +6074,14 @@ function TM(l, ...t) {
|
|
|
6068
6074
|
n = o(n, s[e]);
|
|
6069
6075
|
return n;
|
|
6070
6076
|
}
|
|
6071
|
-
function
|
|
6077
|
+
function LM(l, t, e) {
|
|
6072
6078
|
return l > t ? l < e ? l : e : t;
|
|
6073
6079
|
}
|
|
6074
|
-
function
|
|
6080
|
+
function OM(l, t = 0, e) {
|
|
6075
6081
|
const s = t % 2 / 2, n = e ? -1 : 1;
|
|
6076
6082
|
return (Math.round(l * n - s) + s) * n;
|
|
6077
6083
|
}
|
|
6078
|
-
function
|
|
6084
|
+
function EM(l, t, e, s) {
|
|
6079
6085
|
const n = {};
|
|
6080
6086
|
function o(h, d, p, f) {
|
|
6081
6087
|
const b = e ? d : h;
|
|
@@ -6116,7 +6122,7 @@ function J0(l) {
|
|
|
6116
6122
|
function Jd(l) {
|
|
6117
6123
|
return typeof l == "number" && !isNaN(l) && l < 1 / 0 && l > -1 / 0;
|
|
6118
6124
|
}
|
|
6119
|
-
function
|
|
6125
|
+
function DM(l, t) {
|
|
6120
6126
|
let e = l.length;
|
|
6121
6127
|
for (; e--; )
|
|
6122
6128
|
if (l[e] === t) {
|
|
@@ -6124,7 +6130,7 @@ function EM(l, t) {
|
|
|
6124
6130
|
break;
|
|
6125
6131
|
}
|
|
6126
6132
|
}
|
|
6127
|
-
function
|
|
6133
|
+
function IM(l, t) {
|
|
6128
6134
|
const e = l.options.index, s = t.length;
|
|
6129
6135
|
let n;
|
|
6130
6136
|
for (
|
|
@@ -6146,7 +6152,7 @@ function DM(l, t) {
|
|
|
6146
6152
|
}
|
|
6147
6153
|
return n;
|
|
6148
6154
|
}
|
|
6149
|
-
function
|
|
6155
|
+
function NM(l, t) {
|
|
6150
6156
|
return l.indexOf(t) < 0 && !!l.push(t);
|
|
6151
6157
|
}
|
|
6152
6158
|
function qr(l) {
|
|
@@ -6163,10 +6169,10 @@ function tx(l, t, e) {
|
|
|
6163
6169
|
function ex(l) {
|
|
6164
6170
|
return Tl(l) ? l : [l];
|
|
6165
6171
|
}
|
|
6166
|
-
function
|
|
6172
|
+
function RM(l, t, e) {
|
|
6167
6173
|
return t > 0 ? setTimeout(l, t, e) : (l.call(0, e), -1);
|
|
6168
6174
|
}
|
|
6169
|
-
function
|
|
6175
|
+
function _M(l) {
|
|
6170
6176
|
qr(l) && clearTimeout(l);
|
|
6171
6177
|
}
|
|
6172
6178
|
function Zr(l, t) {
|
|
@@ -6187,22 +6193,22 @@ function so() {
|
|
|
6187
6193
|
function nd(l, t) {
|
|
6188
6194
|
Zr(l.style, t);
|
|
6189
6195
|
}
|
|
6190
|
-
function
|
|
6196
|
+
function BM(l, t, e, s, n) {
|
|
6191
6197
|
const o = $a.createElement(l);
|
|
6192
6198
|
return t && Zr(o, t), n && nd(o, { padding: "0", border: "none", margin: "0" }), e && nd(o, e), s && s.appendChild(o), o;
|
|
6193
6199
|
}
|
|
6194
|
-
function
|
|
6200
|
+
function zM(l, t) {
|
|
6195
6201
|
const e = (function() {
|
|
6196
6202
|
});
|
|
6197
6203
|
return e.prototype = new l(), Zr(e.prototype, t), e;
|
|
6198
6204
|
}
|
|
6199
|
-
function
|
|
6205
|
+
function jM(l, t, e) {
|
|
6200
6206
|
return new Array((t || 2) + 1 - String(l).replace("-", "").length).join(e || "0") + l;
|
|
6201
6207
|
}
|
|
6202
|
-
function
|
|
6208
|
+
function FM(l, t, e) {
|
|
6203
6209
|
return /%$/.test(l) ? t * parseFloat(l) / 100 + (e || 0) : parseFloat(l);
|
|
6204
6210
|
}
|
|
6205
|
-
function
|
|
6211
|
+
function HM(l, ...t) {
|
|
6206
6212
|
let e, s;
|
|
6207
6213
|
do {
|
|
6208
6214
|
e = l;
|
|
@@ -6211,7 +6217,7 @@ function FM(l, ...t) {
|
|
|
6211
6217
|
} while (l !== e);
|
|
6212
6218
|
return l;
|
|
6213
6219
|
}
|
|
6214
|
-
function
|
|
6220
|
+
function WM(l, t, e) {
|
|
6215
6221
|
const s = l[t];
|
|
6216
6222
|
l[t] = function() {
|
|
6217
6223
|
const n = arguments, o = this;
|
|
@@ -6225,7 +6231,7 @@ function HM(l, t, e) {
|
|
|
6225
6231
|
function ix(l) {
|
|
6226
6232
|
return Math.pow(10, Math.floor(Math.log(l) / Math.LN10));
|
|
6227
6233
|
}
|
|
6228
|
-
function
|
|
6234
|
+
function YM(l, t, e, s, n) {
|
|
6229
6235
|
let o, h = l;
|
|
6230
6236
|
e = so(e, ix(l));
|
|
6231
6237
|
const d = l / e;
|
|
@@ -6242,7 +6248,7 @@ function WM(l, t, e, s, n) {
|
|
|
6242
6248
|
;
|
|
6243
6249
|
return h = sx(h * e, -Math.round(Math.log(1e-3) / Math.LN10)), h;
|
|
6244
6250
|
}
|
|
6245
|
-
function
|
|
6251
|
+
function GM(l, t) {
|
|
6246
6252
|
const e = l.length;
|
|
6247
6253
|
let s, n;
|
|
6248
6254
|
for (n = 0; n < e; n++)
|
|
@@ -6252,30 +6258,30 @@ function YM(l, t) {
|
|
|
6252
6258
|
}), n = 0; n < e; n++)
|
|
6253
6259
|
delete l[n].safeI;
|
|
6254
6260
|
}
|
|
6255
|
-
function
|
|
6261
|
+
function XM(l) {
|
|
6256
6262
|
let t = l.length, e = l[0];
|
|
6257
6263
|
for (; t--; )
|
|
6258
6264
|
l[t] < e && (e = l[t]);
|
|
6259
6265
|
return e;
|
|
6260
6266
|
}
|
|
6261
|
-
function
|
|
6267
|
+
function VM(l) {
|
|
6262
6268
|
let t = l.length, e = l[0];
|
|
6263
6269
|
for (; t--; )
|
|
6264
6270
|
l[t] > e && (e = l[t]);
|
|
6265
6271
|
return e;
|
|
6266
6272
|
}
|
|
6267
|
-
function
|
|
6273
|
+
function UM(l, t, e) {
|
|
6268
6274
|
Cr(l, function(s, n) {
|
|
6269
6275
|
s !== t && s?.destroy && s.destroy(), (s?.destroy || !e) && delete l[n];
|
|
6270
6276
|
});
|
|
6271
6277
|
}
|
|
6272
|
-
function
|
|
6278
|
+
function $M(l) {
|
|
6273
6279
|
l?.parentElement?.removeChild(l);
|
|
6274
6280
|
}
|
|
6275
6281
|
function sx(l, t) {
|
|
6276
6282
|
return l > 1e14 ? l : parseFloat(l.toPrecision(t || 14));
|
|
6277
6283
|
}
|
|
6278
|
-
const
|
|
6284
|
+
const qM = {
|
|
6279
6285
|
millisecond: 1,
|
|
6280
6286
|
second: 1e3,
|
|
6281
6287
|
minute: 6e4,
|
|
@@ -6288,13 +6294,13 @@ const $M = {
|
|
|
6288
6294
|
Math.easeInOutSine = function(l) {
|
|
6289
6295
|
return -0.5 * (Math.cos(Math.PI * l) - 1);
|
|
6290
6296
|
};
|
|
6291
|
-
const
|
|
6297
|
+
const ZM = (l = "") => ({
|
|
6292
6298
|
center: 0.5,
|
|
6293
6299
|
right: 1,
|
|
6294
6300
|
middle: 0.5,
|
|
6295
6301
|
bottom: 1
|
|
6296
6302
|
})[l] || 0;
|
|
6297
|
-
function
|
|
6303
|
+
function KM(l, t) {
|
|
6298
6304
|
const e = !t;
|
|
6299
6305
|
let s, n, o, h;
|
|
6300
6306
|
return l.forEach((d) => {
|
|
@@ -6303,7 +6309,7 @@ function ZM(l, t) {
|
|
|
6303
6309
|
o = d[h] - d[h - 1], o < 0 && !e ? (t?.(), t = void 0) : o && (typeof s > "u" || o < s) && (s = o);
|
|
6304
6310
|
}), s;
|
|
6305
6311
|
}
|
|
6306
|
-
function
|
|
6312
|
+
function QM(l, t) {
|
|
6307
6313
|
const e = l.split(".");
|
|
6308
6314
|
for (; e.length && qr(t); ) {
|
|
6309
6315
|
const s = e.shift();
|
|
@@ -6340,7 +6346,7 @@ function Hn(l, t, e) {
|
|
|
6340
6346
|
const n = vr.getComputedStyle(l, void 0);
|
|
6341
6347
|
return n && (s = n.getPropertyValue(t), so(e, t !== "opacity") && (s = Q0(s))), s;
|
|
6342
6348
|
}
|
|
6343
|
-
const
|
|
6349
|
+
const JM = Array.prototype.find ? function(l, t) {
|
|
6344
6350
|
return l.find(t);
|
|
6345
6351
|
} : (
|
|
6346
6352
|
// Legacy implementation. PhantomJS, IE <= 11 etc. #7223.
|
|
@@ -6352,7 +6358,7 @@ const QM = Array.prototype.find ? function(l, t) {
|
|
|
6352
6358
|
return l[e];
|
|
6353
6359
|
})
|
|
6354
6360
|
);
|
|
6355
|
-
function
|
|
6361
|
+
function tA(l) {
|
|
6356
6362
|
const t = $a.documentElement, e = l.parentElement || l.parentNode ? l.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 };
|
|
6357
6363
|
return {
|
|
6358
6364
|
top: e.top + (vr.pageYOffset || t.scrollTop) - (t.clientTop || 0),
|
|
@@ -6365,7 +6371,7 @@ function Cr(l, t, e) {
|
|
|
6365
6371
|
for (const s in l)
|
|
6366
6372
|
Object.hasOwnProperty.call(l, s) && t.call(e || l[s], l[s], s, l);
|
|
6367
6373
|
}
|
|
6368
|
-
function
|
|
6374
|
+
function eA(l, t, e, s = {}) {
|
|
6369
6375
|
const n = typeof l == "function" && l.prototype || l;
|
|
6370
6376
|
Object.hasOwnProperty.call(n, "hcEvents") || (n.hcEvents = {});
|
|
6371
6377
|
const o = n.hcEvents;
|
|
@@ -6440,20 +6446,20 @@ function nx(l, t, e, s) {
|
|
|
6440
6446
|
s && !e.defaultPrevented && s.call(l, e);
|
|
6441
6447
|
}
|
|
6442
6448
|
let od;
|
|
6443
|
-
const
|
|
6449
|
+
const iA = (function() {
|
|
6444
6450
|
const l = Math.random().toString(36).substring(2, 9) + "-";
|
|
6445
6451
|
let t = 0;
|
|
6446
6452
|
return function() {
|
|
6447
6453
|
return "highcharts-" + (od ? "" : l) + t++;
|
|
6448
6454
|
};
|
|
6449
6455
|
})();
|
|
6450
|
-
function
|
|
6456
|
+
function sA(l) {
|
|
6451
6457
|
return od = so(l, od);
|
|
6452
6458
|
}
|
|
6453
|
-
function
|
|
6459
|
+
function rA(l) {
|
|
6454
6460
|
return typeof l == "function";
|
|
6455
6461
|
}
|
|
6456
|
-
function
|
|
6462
|
+
function nA(l) {
|
|
6457
6463
|
return qn(l) ? l.substring(0, 1).toUpperCase() + l.substring(1) : String(l);
|
|
6458
6464
|
}
|
|
6459
6465
|
vr.jQuery && (vr.jQuery.fn.highcharts = function() {
|
|
@@ -6463,62 +6469,62 @@ vr.jQuery && (vr.jQuery.fn.highcharts = function() {
|
|
|
6463
6469
|
// eslint-disable-line computed-property-spacing, no-new
|
|
6464
6470
|
// Constructor defaults to Chart
|
|
6465
6471
|
qn(l[0]) ? l.shift() : "Chart"
|
|
6466
|
-
](this[0], l[0], l[1]), this) :
|
|
6472
|
+
](this[0], l[0], l[1]), this) : TM[tx(this[0], "data-highcharts-chart")];
|
|
6467
6473
|
});
|
|
6468
|
-
const
|
|
6469
|
-
addEvent:
|
|
6470
|
-
arrayMax:
|
|
6471
|
-
arrayMin:
|
|
6474
|
+
const oA = {
|
|
6475
|
+
addEvent: eA,
|
|
6476
|
+
arrayMax: VM,
|
|
6477
|
+
arrayMin: XM,
|
|
6472
6478
|
attr: tx,
|
|
6473
|
-
clamp:
|
|
6474
|
-
clearTimeout:
|
|
6479
|
+
clamp: LM,
|
|
6480
|
+
clearTimeout: _M,
|
|
6475
6481
|
correctFloat: sx,
|
|
6476
|
-
createElement:
|
|
6477
|
-
crisp:
|
|
6482
|
+
createElement: BM,
|
|
6483
|
+
crisp: OM,
|
|
6478
6484
|
css: nd,
|
|
6479
6485
|
defined: qr,
|
|
6480
|
-
destroyObjectProperties:
|
|
6481
|
-
diffObjects:
|
|
6482
|
-
discardElement:
|
|
6483
|
-
erase:
|
|
6486
|
+
destroyObjectProperties: UM,
|
|
6487
|
+
diffObjects: EM,
|
|
6488
|
+
discardElement: $M,
|
|
6489
|
+
erase: DM,
|
|
6484
6490
|
error: $n,
|
|
6485
6491
|
extend: Zr,
|
|
6486
|
-
extendClass:
|
|
6487
|
-
find:
|
|
6492
|
+
extendClass: zM,
|
|
6493
|
+
find: JM,
|
|
6488
6494
|
fireEvent: nx,
|
|
6489
|
-
getAlignFactor:
|
|
6490
|
-
getClosestDistance:
|
|
6495
|
+
getAlignFactor: ZM,
|
|
6496
|
+
getClosestDistance: KM,
|
|
6491
6497
|
getMagnitude: ix,
|
|
6492
|
-
getNestedProperty:
|
|
6498
|
+
getNestedProperty: QM,
|
|
6493
6499
|
getStyle: Hn,
|
|
6494
|
-
insertItem:
|
|
6500
|
+
insertItem: IM,
|
|
6495
6501
|
isArray: Tl,
|
|
6496
6502
|
isClass: J0,
|
|
6497
6503
|
isDOMElement: Qd,
|
|
6498
|
-
isFunction:
|
|
6504
|
+
isFunction: rA,
|
|
6499
6505
|
isNumber: Jd,
|
|
6500
6506
|
isObject: tn,
|
|
6501
6507
|
isString: qn,
|
|
6502
|
-
merge:
|
|
6503
|
-
normalizeTickInterval:
|
|
6508
|
+
merge: PM,
|
|
6509
|
+
normalizeTickInterval: YM,
|
|
6504
6510
|
objectEach: Cr,
|
|
6505
|
-
offset:
|
|
6506
|
-
pad:
|
|
6511
|
+
offset: tA,
|
|
6512
|
+
pad: jM,
|
|
6507
6513
|
pick: so,
|
|
6508
6514
|
pInt: Q0,
|
|
6509
|
-
pushUnique:
|
|
6510
|
-
relativeLength:
|
|
6515
|
+
pushUnique: NM,
|
|
6516
|
+
relativeLength: FM,
|
|
6511
6517
|
removeEvent: rx,
|
|
6512
|
-
replaceNested:
|
|
6518
|
+
replaceNested: HM,
|
|
6513
6519
|
splat: ex,
|
|
6514
|
-
stableSort:
|
|
6515
|
-
syncTimeout:
|
|
6516
|
-
timeUnits:
|
|
6517
|
-
ucfirst:
|
|
6518
|
-
uniqueKey:
|
|
6519
|
-
useSerialIds:
|
|
6520
|
-
wrap:
|
|
6521
|
-
}, Nt =
|
|
6520
|
+
stableSort: GM,
|
|
6521
|
+
syncTimeout: RM,
|
|
6522
|
+
timeUnits: qM,
|
|
6523
|
+
ucfirst: nA,
|
|
6524
|
+
uniqueKey: iA,
|
|
6525
|
+
useSerialIds: sA,
|
|
6526
|
+
wrap: WM
|
|
6527
|
+
}, Nt = oA, aA = {
|
|
6522
6528
|
alignThresholds: !1,
|
|
6523
6529
|
panning: {
|
|
6524
6530
|
enabled: !1,
|
|
@@ -6555,7 +6561,7 @@ const nA = {
|
|
|
6555
6561
|
backgroundColor: "#ffffff",
|
|
6556
6562
|
plotBorderColor: "#cccccc"
|
|
6557
6563
|
/* Palette.neutralColor20 */
|
|
6558
|
-
},
|
|
6564
|
+
}, lA = aA, hA = {
|
|
6559
6565
|
colors: [
|
|
6560
6566
|
"#2caffe",
|
|
6561
6567
|
"#544fc5",
|
|
@@ -6568,8 +6574,8 @@ const nA = {
|
|
|
6568
6574
|
"#feb56a",
|
|
6569
6575
|
"#91e8e1"
|
|
6570
6576
|
]
|
|
6571
|
-
},
|
|
6572
|
-
class
|
|
6577
|
+
}, cA = hA, { pageLang: dA, win: qa } = Xt, { defined: Ju, error: tf, extend: ic, isNumber: ef, isObject: sc, isString: Mn, merge: mA, objectEach: pA, pad: Ns, splat: uA, timeUnits: rc, ucfirst: fA } = Nt, gA = Xt.isSafari && qa.Intl && !qa.Intl.DateTimeFormat.prototype.formatRange, xA = (l) => l.main === void 0;
|
|
6578
|
+
class bA {
|
|
6573
6579
|
/* *
|
|
6574
6580
|
*
|
|
6575
6581
|
* Constructors
|
|
@@ -6586,7 +6592,7 @@ class xA {
|
|
|
6586
6592
|
*
|
|
6587
6593
|
* */
|
|
6588
6594
|
update(t = {}) {
|
|
6589
|
-
this.dTLCache = {}, this.options = t =
|
|
6595
|
+
this.dTLCache = {}, this.options = t = mA(!0, this.options, t);
|
|
6590
6596
|
const { timezoneOffset: e, useUTC: s, locale: n } = t;
|
|
6591
6597
|
this.Date = t.Date || qa.Date || Date;
|
|
6592
6598
|
let o = t.timezone;
|
|
@@ -6620,7 +6626,7 @@ class xA {
|
|
|
6620
6626
|
"DLMXJVS".indexOf(e)
|
|
6621
6627
|
].map(Number);
|
|
6622
6628
|
}
|
|
6623
|
-
dateTimeFormat(t, e, s = this.options.locale ||
|
|
6629
|
+
dateTimeFormat(t, e, s = this.options.locale || dA) {
|
|
6624
6630
|
const n = JSON.stringify(t) + s;
|
|
6625
6631
|
Mn(t) && (t = this.str2dtf(t));
|
|
6626
6632
|
let o = this.dTLCache[n];
|
|
@@ -6668,7 +6674,7 @@ class xA {
|
|
|
6668
6674
|
[2, 3, 8, 9, 10, 11].indexOf(e) !== -1 && // DST transitions occur only in the night-time
|
|
6669
6675
|
(n < 5 || n > 20)) {
|
|
6670
6676
|
const b = this.getTimezoneOffset(p);
|
|
6671
|
-
f !== b ? p += b - f : f - 36e5 === this.getTimezoneOffset(p - 36e5) && !
|
|
6677
|
+
f !== b ? p += b - f : f - 36e5 === this.getTimezoneOffset(p - 36e5) && !gA && (p -= 36e5);
|
|
6672
6678
|
}
|
|
6673
6679
|
}
|
|
6674
6680
|
return p;
|
|
@@ -6751,7 +6757,7 @@ class xA {
|
|
|
6751
6757
|
// Milliseconds (naming from Ruby)
|
|
6752
6758
|
L: Ns(y, 3)
|
|
6753
6759
|
}, Xt.dateFormats);
|
|
6754
|
-
|
|
6760
|
+
pA(B, function(_, F) {
|
|
6755
6761
|
if (Mn(t))
|
|
6756
6762
|
for (; t.indexOf("%" + F) !== -1; )
|
|
6757
6763
|
t = t.replace("%" + F, typeof _ == "function" ? _.call(o, e) : _);
|
|
@@ -6760,10 +6766,10 @@ class xA {
|
|
|
6760
6766
|
const o = (this.getTimezoneOffset(e) || 0) / 36e5, h = this.timezone || "Etc/GMT" + (o >= 0 ? "+" : "") + o, { prefix: d = "", suffix: p = "" } = t;
|
|
6761
6767
|
t = d + this.dateTimeFormat(ic({ timeZone: h }, t), e) + p;
|
|
6762
6768
|
}
|
|
6763
|
-
return s ?
|
|
6769
|
+
return s ? fA(t) : t;
|
|
6764
6770
|
}
|
|
6765
6771
|
resolveDTLFormat(t) {
|
|
6766
|
-
return sc(t, !0) ? sc(t, !0) &&
|
|
6772
|
+
return sc(t, !0) ? sc(t, !0) && xA(t) ? { main: t } : t : (t = uA(t), {
|
|
6767
6773
|
main: t[0],
|
|
6768
6774
|
from: t[1],
|
|
6769
6775
|
to: t[2]
|
|
@@ -6794,8 +6800,8 @@ class xA {
|
|
|
6794
6800
|
return this.resolveDTLFormat(n[p]).main;
|
|
6795
6801
|
}
|
|
6796
6802
|
}
|
|
6797
|
-
const
|
|
6798
|
-
class
|
|
6803
|
+
const yA = bA, { defined: sf, extend: vA, timeUnits: Ge } = Nt;
|
|
6804
|
+
class wA extends yA {
|
|
6799
6805
|
getTimeTicks(t, e, s, n) {
|
|
6800
6806
|
const o = this, h = [], d = {}, { count: p = 1, unitRange: f } = t;
|
|
6801
6807
|
let [b, k, y, w, M, T] = o.toParts(e), L = (e || 0) % 1e3, E;
|
|
@@ -6830,14 +6836,14 @@ class vA extends bA {
|
|
|
6830
6836
|
o.dateFormat("%H%M%S%L", F) === "000000000" && (d[F] = "day");
|
|
6831
6837
|
});
|
|
6832
6838
|
}
|
|
6833
|
-
return h.info =
|
|
6839
|
+
return h.info = vA(t, {
|
|
6834
6840
|
higherRanks: d,
|
|
6835
6841
|
totalRange: f * p
|
|
6836
6842
|
}), h;
|
|
6837
6843
|
}
|
|
6838
6844
|
}
|
|
6839
|
-
const tm =
|
|
6840
|
-
colors:
|
|
6845
|
+
const tm = wA, { isTouchDevice: SA } = Xt, { fireEvent: CA, merge: kA } = Nt, gs = {
|
|
6846
|
+
colors: cA.colors,
|
|
6841
6847
|
symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
|
|
6842
6848
|
lang: {
|
|
6843
6849
|
weekFrom: "week from",
|
|
@@ -6894,7 +6900,7 @@ const tm = vA, { isTouchDevice: wA } = Xt, { fireEvent: SA, merge: CA } = Nt, fs
|
|
|
6894
6900
|
timezoneOffset: 0,
|
|
6895
6901
|
useUTC: void 0
|
|
6896
6902
|
},
|
|
6897
|
-
chart:
|
|
6903
|
+
chart: lA,
|
|
6898
6904
|
title: {
|
|
6899
6905
|
style: {
|
|
6900
6906
|
color: "#333333",
|
|
@@ -7022,7 +7028,7 @@ const tm = vA, { isTouchDevice: wA } = Xt, { fireEvent: SA, merge: CA } = Nt, fs
|
|
|
7022
7028
|
y: 3
|
|
7023
7029
|
},
|
|
7024
7030
|
shared: !1,
|
|
7025
|
-
snap:
|
|
7031
|
+
snap: SA ? 25 : 10,
|
|
7026
7032
|
headerFormat: '<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',
|
|
7027
7033
|
pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
|
|
7028
7034
|
backgroundColor: "#ffffff",
|
|
@@ -7051,24 +7057,24 @@ const tm = vA, { isTouchDevice: wA } = Xt, { fireEvent: SA, merge: CA } = Nt, fs
|
|
|
7051
7057
|
},
|
|
7052
7058
|
text: "Highcharts.com"
|
|
7053
7059
|
}
|
|
7054
|
-
}, ad = new tm(
|
|
7055
|
-
function
|
|
7056
|
-
return
|
|
7060
|
+
}, ad = new tm(gs.time, gs.lang);
|
|
7061
|
+
function MA() {
|
|
7062
|
+
return gs;
|
|
7057
7063
|
}
|
|
7058
|
-
function
|
|
7059
|
-
return
|
|
7064
|
+
function AA(l) {
|
|
7065
|
+
return CA(Xt, "setOptions", { options: l }), kA(!0, gs, l), l.time && ad.update(gs.time), l.lang && "locale" in l.lang && ad.update({
|
|
7060
7066
|
locale: l.lang.locale
|
|
7061
|
-
}), l.lang?.chartTitle && (
|
|
7062
|
-
...
|
|
7067
|
+
}), l.lang?.chartTitle && (gs.title = {
|
|
7068
|
+
...gs.title,
|
|
7063
7069
|
text: l.lang.chartTitle
|
|
7064
|
-
}),
|
|
7070
|
+
}), gs;
|
|
7065
7071
|
}
|
|
7066
|
-
const
|
|
7067
|
-
defaultOptions:
|
|
7072
|
+
const TA = {
|
|
7073
|
+
defaultOptions: gs,
|
|
7068
7074
|
defaultTime: ad,
|
|
7069
|
-
getOptions:
|
|
7070
|
-
setOptions:
|
|
7071
|
-
}, Ii =
|
|
7075
|
+
getOptions: MA,
|
|
7076
|
+
setOptions: AA
|
|
7077
|
+
}, Ii = TA, { win: PA } = Xt, { isNumber: An, isString: LA, merge: OA, pInt: ui, defined: rf } = Nt, nf = (l, t, e) => `color-mix(in srgb,${l},${t} ${e * 100}%)`, nc = (l) => LA(l) && !!l && l !== "none";
|
|
7072
7078
|
class ni {
|
|
7073
7079
|
/* *
|
|
7074
7080
|
*
|
|
@@ -7106,7 +7112,7 @@ class ni {
|
|
|
7106
7112
|
if (this.output)
|
|
7107
7113
|
return this.output;
|
|
7108
7114
|
if (typeof e == "object" && typeof this.stops < "u") {
|
|
7109
|
-
const n =
|
|
7115
|
+
const n = OA(e);
|
|
7110
7116
|
return n.stops = [].slice.call(n.stops), this.stops.forEach((o, h) => {
|
|
7111
7117
|
n.stops[h] = [
|
|
7112
7118
|
n.stops[h][0],
|
|
@@ -7185,10 +7191,10 @@ ni.parsers = [{
|
|
|
7185
7191
|
];
|
|
7186
7192
|
}
|
|
7187
7193
|
}];
|
|
7188
|
-
ni.useColorMix =
|
|
7194
|
+
ni.useColorMix = PA.CSS?.supports("color", "color-mix(in srgb,red,blue 9%)");
|
|
7189
7195
|
ni.None = new ni("");
|
|
7190
|
-
const
|
|
7191
|
-
class
|
|
7196
|
+
const xs = ni, { parse: of } = xs, { win: EA } = Xt, { isNumber: oc, objectEach: DA } = Nt;
|
|
7197
|
+
class us {
|
|
7192
7198
|
/* *
|
|
7193
7199
|
*
|
|
7194
7200
|
* Constructors
|
|
@@ -7228,19 +7234,19 @@ class ps {
|
|
|
7228
7234
|
run(t, e, s) {
|
|
7229
7235
|
const n = this, o = n.options, h = function(f) {
|
|
7230
7236
|
return h.stopped ? !1 : n.step(f);
|
|
7231
|
-
}, d =
|
|
7237
|
+
}, d = EA.requestAnimationFrame || function(f) {
|
|
7232
7238
|
setTimeout(f, 13);
|
|
7233
7239
|
}, p = function() {
|
|
7234
|
-
for (let f = 0; f <
|
|
7235
|
-
|
|
7236
|
-
|
|
7240
|
+
for (let f = 0; f < us.timers.length; f++)
|
|
7241
|
+
us.timers[f]() || us.timers.splice(f--, 1);
|
|
7242
|
+
us.timers.length && d(p);
|
|
7237
7243
|
};
|
|
7238
|
-
t === e && !this.elem["forceAnimate:" + this.prop] ? (delete o.curAnim[this.prop], o.complete && Object.keys(o.curAnim).length === 0 && o.complete.call(this.elem)) : (this.startTime = +/* @__PURE__ */ new Date(), this.start = t, this.end = e, this.unit = s, this.now = this.start, this.pos = 0, h.elem = this.elem, h.prop = this.prop, h() &&
|
|
7244
|
+
t === e && !this.elem["forceAnimate:" + this.prop] ? (delete o.curAnim[this.prop], o.complete && Object.keys(o.curAnim).length === 0 && o.complete.call(this.elem)) : (this.startTime = +/* @__PURE__ */ new Date(), this.start = t, this.end = e, this.unit = s, this.now = this.start, this.pos = 0, h.elem = this.elem, h.prop = this.prop, h() && us.timers.push(h) === 1 && d(p));
|
|
7239
7245
|
}
|
|
7240
7246
|
step(t) {
|
|
7241
7247
|
const e = +/* @__PURE__ */ new Date(), s = this.options, n = this.elem, o = s.complete, h = s.duration, d = s.curAnim;
|
|
7242
7248
|
let p, f;
|
|
7243
|
-
return n.attr && !n.element ? p = !1 : t || e >= h + this.startTime ? (this.now = this.end, this.pos = 1, this.update(), d[this.prop] = !0, f = !0,
|
|
7249
|
+
return n.attr && !n.element ? p = !1 : t || e >= h + this.startTime ? (this.now = this.end, this.pos = 1, this.update(), d[this.prop] = !0, f = !0, DA(d, function(b) {
|
|
7244
7250
|
b !== !0 && (f = !1);
|
|
7245
7251
|
}), f && o && o.call(n), p = !1) : (this.pos = s.easing((e - this.startTime) / h), this.now = this.start + (this.end - this.start) * this.pos, this.update(), p = !0), p;
|
|
7246
7252
|
}
|
|
@@ -7294,39 +7300,39 @@ class ps {
|
|
|
7294
7300
|
return M.length && oc(b) && (k = h.length + b * p, w ? (T(M, h), L(h)) : (T(h, M), L(M))), [M, h];
|
|
7295
7301
|
}
|
|
7296
7302
|
fillSetter() {
|
|
7297
|
-
|
|
7303
|
+
us.prototype.strokeSetter.apply(this, arguments);
|
|
7298
7304
|
}
|
|
7299
7305
|
strokeSetter() {
|
|
7300
7306
|
this.elem.attr(this.prop, of(this.start).tweenTo(of(this.end), this.pos), void 0, !0);
|
|
7301
7307
|
}
|
|
7302
7308
|
}
|
|
7303
|
-
|
|
7304
|
-
const xr =
|
|
7305
|
-
function
|
|
7306
|
-
t.renderer.globalAnimation =
|
|
7309
|
+
us.timers = [];
|
|
7310
|
+
const xr = us, { defined: IA, getStyle: NA, isArray: RA, isNumber: _A, isObject: em, merge: ox, objectEach: BA, pick: zA } = Nt;
|
|
7311
|
+
function jA(l, t) {
|
|
7312
|
+
t.renderer.globalAnimation = zA(l, t.options.chart.animation, !0);
|
|
7307
7313
|
}
|
|
7308
7314
|
function ld(l) {
|
|
7309
7315
|
return em(l) ? ox({ duration: 500, defer: 0 }, l) : { duration: l ? 500 : 0, defer: 0 };
|
|
7310
7316
|
}
|
|
7311
|
-
function
|
|
7317
|
+
function FA(l, t, e) {
|
|
7312
7318
|
const s = ld(t), n = e ? [e] : l.series;
|
|
7313
7319
|
let o = 0, h = 0;
|
|
7314
7320
|
return n.forEach((p) => {
|
|
7315
7321
|
const f = ld(p.options.animation);
|
|
7316
|
-
o = em(t) &&
|
|
7322
|
+
o = em(t) && IA(t.defer) ? s.defer : Math.max(o, f.duration + f.defer), h = Math.min(s.duration, f.duration);
|
|
7317
7323
|
}), l.renderer.forExport && (o = 0), {
|
|
7318
7324
|
defer: Math.max(0, o - h),
|
|
7319
7325
|
duration: Math.min(o, h)
|
|
7320
7326
|
};
|
|
7321
7327
|
}
|
|
7322
|
-
function
|
|
7328
|
+
function HA(l, t, e) {
|
|
7323
7329
|
let s, n = "", o, h, d;
|
|
7324
7330
|
em(e) || (d = arguments, e = {
|
|
7325
7331
|
duration: d[2],
|
|
7326
7332
|
easing: d[3],
|
|
7327
7333
|
complete: d[4]
|
|
7328
|
-
}),
|
|
7329
|
-
ax(l, f), h = new xr(l, e, f), o = void 0, f === "d" &&
|
|
7334
|
+
}), _A(e.duration) || (e.duration = 400), e.easing = typeof e.easing == "function" ? e.easing : Math[e.easing] || Math.easeInOutSine, e.curAnim = ox(t), BA(t, function(p, f) {
|
|
7335
|
+
ax(l, f), h = new xr(l, e, f), o = void 0, f === "d" && RA(t.d) ? (h.paths = h.initPath(l, l.pathArray, t.d), h.toD = t.d, s = 0, o = 1) : l.attr ? s = l.attr(f) : (s = parseFloat(NA(l, f)) || 0, f !== "opacity" && (n = "px")), o || (o = p), typeof o == "string" && o.match("px") && (o = o.replace(/px/g, "")), h.run(s, o, n);
|
|
7330
7336
|
});
|
|
7331
7337
|
}
|
|
7332
7338
|
function ax(l, t) {
|
|
@@ -7334,15 +7340,15 @@ function ax(l, t) {
|
|
|
7334
7340
|
for (; e--; )
|
|
7335
7341
|
xr.timers[e].elem === l && (!t || t === xr.timers[e].prop) && (xr.timers[e].stopped = !0);
|
|
7336
7342
|
}
|
|
7337
|
-
const
|
|
7338
|
-
animate:
|
|
7343
|
+
const WA = {
|
|
7344
|
+
animate: HA,
|
|
7339
7345
|
animObject: ld,
|
|
7340
|
-
getDeferredAnimation:
|
|
7341
|
-
setAnimation:
|
|
7346
|
+
getDeferredAnimation: FA,
|
|
7347
|
+
setAnimation: jA,
|
|
7342
7348
|
stop: ax
|
|
7343
|
-
}, ri =
|
|
7349
|
+
}, ri = WA, { SVG_NS: af, win: YA } = Xt, { attr: GA, createElement: XA, css: VA, error: lf, isFunction: UA, isString: hf, objectEach: cf, splat: $A } = Nt, { trustedTypes: ac } = YA, Za = ac && UA(ac.createPolicy) && ac.createPolicy("highcharts", {
|
|
7344
7350
|
createHTML: (l) => l
|
|
7345
|
-
}),
|
|
7351
|
+
}), qA = Za ? Za.createHTML("") : "";
|
|
7346
7352
|
class fi {
|
|
7347
7353
|
/* *
|
|
7348
7354
|
*
|
|
@@ -7383,7 +7389,7 @@ class fi {
|
|
|
7383
7389
|
addToDOM(t) {
|
|
7384
7390
|
function e(s, n) {
|
|
7385
7391
|
let o;
|
|
7386
|
-
return
|
|
7392
|
+
return $A(s).forEach(function(h) {
|
|
7387
7393
|
const d = h.tagName, p = h.textContent ? Xt.doc.createTextNode(h.textContent) : void 0, f = fi.bypassHTMLFiltering;
|
|
7388
7394
|
let b;
|
|
7389
7395
|
if (d)
|
|
@@ -7393,7 +7399,7 @@ class fi {
|
|
|
7393
7399
|
const k = d === "svg" ? af : n.namespaceURI || af, y = Xt.doc.createElementNS(k, d), w = h.attributes || {};
|
|
7394
7400
|
cf(h, function(M, T) {
|
|
7395
7401
|
T !== "tagName" && T !== "attributes" && T !== "children" && T !== "style" && T !== "textContent" && (w[T] = M);
|
|
7396
|
-
}),
|
|
7402
|
+
}), GA(y, f ? w : fi.filterUserAttributes(w)), h.style && VA(y, h.style), p && y.appendChild(p), e(h.children || [], y), b = y;
|
|
7397
7403
|
} else
|
|
7398
7404
|
lf(33, !1, void 0, {
|
|
7399
7405
|
"Invalid tagName in config": d
|
|
@@ -7412,7 +7418,7 @@ class fi {
|
|
|
7412
7418
|
} catch {
|
|
7413
7419
|
}
|
|
7414
7420
|
if (!s) {
|
|
7415
|
-
const o =
|
|
7421
|
+
const o = XA("div");
|
|
7416
7422
|
o.innerHTML = t, s = { body: o };
|
|
7417
7423
|
}
|
|
7418
7424
|
const n = (o, h) => {
|
|
@@ -7597,9 +7603,9 @@ fi.allowedTags = [
|
|
|
7597
7603
|
"u",
|
|
7598
7604
|
"ul"
|
|
7599
7605
|
];
|
|
7600
|
-
fi.emptyHTML =
|
|
7606
|
+
fi.emptyHTML = qA;
|
|
7601
7607
|
fi.bypassHTMLFiltering = !1;
|
|
7602
|
-
const Yi = fi, { defaultOptions: lx, defaultTime: hx } = Ii, { pageLang:
|
|
7608
|
+
const Yi = fi, { defaultOptions: lx, defaultTime: hx } = Ii, { pageLang: ZA } = Xt, { extend: KA, getNestedProperty: QA, isArray: JA, isNumber: df, isObject: tT, isString: eT, pick: iT, ucfirst: sT } = Nt, Ia = {
|
|
7603
7609
|
// Built-in helpers
|
|
7604
7610
|
add: (l, t) => l + t,
|
|
7605
7611
|
divide: (l, t) => t !== 0 ? l / t : "",
|
|
@@ -7607,7 +7613,7 @@ const Yi = fi, { defaultOptions: lx, defaultTime: hx } = Ii, { pageLang: qA } =
|
|
|
7607
7613
|
eq: (l, t) => l == t,
|
|
7608
7614
|
each: function(l) {
|
|
7609
7615
|
const t = arguments[arguments.length - 1];
|
|
7610
|
-
return
|
|
7616
|
+
return JA(l) ? l.map((e, s) => Ka(t.body, KA(tT(e) ? e : { "@this": e }, {
|
|
7611
7617
|
"@index": s,
|
|
7612
7618
|
"@first": s === 0,
|
|
7613
7619
|
"@last": s === l.length - 1
|
|
@@ -7622,16 +7628,16 @@ const Yi = fi, { defaultOptions: lx, defaultTime: hx } = Ii, { pageLang: qA } =
|
|
|
7622
7628
|
// eslint-disable-next-line eqeqeq
|
|
7623
7629
|
ne: (l, t) => l != t,
|
|
7624
7630
|
subtract: (l, t) => l - t,
|
|
7625
|
-
ucfirst:
|
|
7631
|
+
ucfirst: sT,
|
|
7626
7632
|
unless: (l) => !l
|
|
7627
7633
|
}, mf = {}, pf = (l) => /^["'].+["']$/.test(l);
|
|
7628
|
-
function
|
|
7634
|
+
function rT(l, t, e) {
|
|
7629
7635
|
return hx.dateFormat(l, t, e);
|
|
7630
7636
|
}
|
|
7631
7637
|
function Ka(l = "", t, e) {
|
|
7632
7638
|
const s = /\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/g, n = /\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g, o = [], h = /f$/, d = /\.(\d)/, p = e?.options?.lang || lx.lang, f = e?.time || hx, b = e?.numberFormatter || cx.bind(e), k = (L = "") => {
|
|
7633
7639
|
let E;
|
|
7634
|
-
return L === "true" ? !0 : L === "false" ? !1 : (E = Number(L)).toString() === L ? E : pf(L) ? L.slice(1, -1) :
|
|
7640
|
+
return L === "true" ? !0 : L === "false" ? !1 : (E = Number(L)).toString() === L ? E : pf(L) ? L.slice(1, -1) : QA(L, t);
|
|
7635
7641
|
};
|
|
7636
7642
|
let y, w, M = 0, T;
|
|
7637
7643
|
for (; (y = s.exec(l)) !== null; ) {
|
|
@@ -7684,9 +7690,9 @@ function Ka(l = "", t, e) {
|
|
|
7684
7690
|
} else
|
|
7685
7691
|
W = f.dateFormat(J, W);
|
|
7686
7692
|
}
|
|
7687
|
-
n.lastIndex = 0, n.test(L.find) &&
|
|
7693
|
+
n.lastIndex = 0, n.test(L.find) && eT(W) && (W = `"${W}"`);
|
|
7688
7694
|
}
|
|
7689
|
-
l = l.replace(L.find,
|
|
7695
|
+
l = l.replace(L.find, iT(W, ""));
|
|
7690
7696
|
}), T ? Ka(l, t, e) : l;
|
|
7691
7697
|
}
|
|
7692
7698
|
function cx(l, t, e, s) {
|
|
@@ -7694,17 +7700,17 @@ function cx(l, t, e, s) {
|
|
|
7694
7700
|
let n, o, [h, d] = l.toString().split("e").map(Number);
|
|
7695
7701
|
const p = this?.options?.lang || lx.lang, f = (l.toString().split(".")[1] || "").split("e")[0].length, b = t, k = {};
|
|
7696
7702
|
e ?? (e = p.decimalPoint), s ?? (s = p.thousandsSep), t === -1 ? t = Math.min(f, 20) : df(t) ? t && d < 0 && (o = t + d, o >= 0 ? (h = +h.toExponential(o).split("e")[0], t = o) : (h = Math.floor(h), t < 20 ? l = +(h * Math.pow(10, d)).toFixed(t) : l = 0, d = 0)) : t = 2, d && (t ?? (t = 2), l = h), df(t) && t >= 0 && (k.minimumFractionDigits = t, k.maximumFractionDigits = t), s === "" && (k.useGrouping = !1);
|
|
7697
|
-
const y = s || e, w = y ? "en" : this?.locale || p.locale ||
|
|
7703
|
+
const y = s || e, w = y ? "en" : this?.locale || p.locale || ZA, M = JSON.stringify(k) + w;
|
|
7698
7704
|
return n = (mf[M] ?? (mf[M] = new Intl.NumberFormat(w, k))).format(l), y && (n = n.replace(/([,\.])/g, "_$1").replace(/_\,/g, s ?? ",").replace("_.", e ?? ".")), // Remove signed zero (#20564)
|
|
7699
7705
|
(!t && +n == 0 || // Small numbers, no decimals (#14023)
|
|
7700
7706
|
d < 0 && !b) && (n = "0"), d && +n != 0 && (n += "e" + (d < 0 ? "" : "+") + d), n;
|
|
7701
7707
|
}
|
|
7702
|
-
const
|
|
7703
|
-
dateFormat:
|
|
7708
|
+
const nT = {
|
|
7709
|
+
dateFormat: rT,
|
|
7704
7710
|
format: Ka,
|
|
7705
7711
|
helpers: Ia,
|
|
7706
7712
|
numberFormat: cx
|
|
7707
|
-
}, Ni =
|
|
7713
|
+
}, Ni = nT;
|
|
7708
7714
|
var hd;
|
|
7709
7715
|
(function(l) {
|
|
7710
7716
|
l.rendererTypes = {};
|
|
@@ -7718,7 +7724,7 @@ var hd;
|
|
|
7718
7724
|
}
|
|
7719
7725
|
l.registerRendererType = s;
|
|
7720
7726
|
})(hd || (hd = {}));
|
|
7721
|
-
const ro = hd, { clamp:
|
|
7727
|
+
const ro = hd, { clamp: oT, pick: aT, pushUnique: lT, stableSort: lc } = Nt;
|
|
7722
7728
|
var cd;
|
|
7723
7729
|
(function(l) {
|
|
7724
7730
|
function t(e, s, n) {
|
|
@@ -7728,16 +7734,16 @@ var cd;
|
|
|
7728
7734
|
_ += e[w].size;
|
|
7729
7735
|
if (_ > h) {
|
|
7730
7736
|
for (lc(e, d), F = e[0].rank === e[e.length - 1].rank, T = F ? b / 2 : -1, M = F ? T : b - 1; T && _ > h; )
|
|
7731
|
-
w = Math.floor(M), E = e[w],
|
|
7737
|
+
w = Math.floor(M), E = e[w], lT(k, w) && (_ -= E.size), M += T, F && M >= e.length && (T /= 2, M = T);
|
|
7732
7738
|
k.sort((W, G) => G - W).forEach((W) => y.apply(f, e.splice(W, 1)));
|
|
7733
7739
|
}
|
|
7734
7740
|
for (lc(e, p), e = e.map((W) => ({
|
|
7735
7741
|
size: W.size,
|
|
7736
7742
|
targets: [W.target],
|
|
7737
|
-
align:
|
|
7743
|
+
align: aT(W.align, 0.5)
|
|
7738
7744
|
})); L; ) {
|
|
7739
7745
|
for (w = e.length; w--; )
|
|
7740
|
-
E = e[w], B = (Math.min.apply(0, E.targets) + Math.max.apply(0, E.targets)) / 2, E.pos =
|
|
7746
|
+
E = e[w], B = (Math.min.apply(0, E.targets) + Math.max.apply(0, E.targets)) / 2, E.pos = oT(B - E.size * E.align, 0, s - E.size);
|
|
7741
7747
|
for (w = e.length, L = !1; w--; )
|
|
7742
7748
|
w > 0 && e[w - 1].pos + e[w - 1].size > e[w].pos && (e[w - 1].size += e[w].size, e[w - 1].targets = e[w - 1].targets.concat(e[w].targets), e[w - 1].align = 0.5, e[w - 1].pos + e[w - 1].size > s && (e[w - 1].pos = s - e[w - 1].size), e.splice(w, 1), L = !0);
|
|
7743
7749
|
}
|
|
@@ -7748,7 +7754,7 @@ var cd;
|
|
|
7748
7754
|
}
|
|
7749
7755
|
l.distribute = t;
|
|
7750
7756
|
})(cd || (cd = {}));
|
|
7751
|
-
const Pl = cd, { animate:
|
|
7757
|
+
const Pl = cd, { animate: hT, animObject: cT, stop: uf } = ri, { deg2rad: ff, doc: zr, svg: dT, SVG_NS: Qo, win: mT, isFirefox: pT } = Xt, { addEvent: uT, attr: hc, createElement: fT, crisp: Jo, css: gf, defined: Ji, erase: gT, extend: Tn, fireEvent: cc, getAlignFactor: dc, isArray: xf, isFunction: bf, isNumber: xT, isObject: bT, isString: yf, merge: mc, objectEach: jr, pick: ms, pInt: ta, pushUnique: yT, replaceNested: vT, syncTimeout: wT, uniqueKey: vf } = Nt;
|
|
7752
7758
|
class Je {
|
|
7753
7759
|
// @todo public zIndex?: number;
|
|
7754
7760
|
/* *
|
|
@@ -7757,7 +7763,7 @@ class Je {
|
|
|
7757
7763
|
*
|
|
7758
7764
|
* */
|
|
7759
7765
|
_defaultGetter(t) {
|
|
7760
|
-
let e =
|
|
7766
|
+
let e = ms(
|
|
7761
7767
|
this[t + "Value"],
|
|
7762
7768
|
// Align getter
|
|
7763
7769
|
this[t],
|
|
@@ -7787,8 +7793,8 @@ class Je {
|
|
|
7787
7793
|
const o = this.renderer, h = o.alignedObjects, d = !!t;
|
|
7788
7794
|
t ? (this.alignOptions = t, this.alignByTranslate = e, this.alignTo = s) : (t = this.alignOptions || {}, e = this.alignByTranslate, s = this.alignTo);
|
|
7789
7795
|
const p = !s || yf(s) ? s || "renderer" : void 0;
|
|
7790
|
-
p && (d &&
|
|
7791
|
-
const f =
|
|
7796
|
+
p && (d && yT(h, this), s = void 0);
|
|
7797
|
+
const f = ms(s, o[p], o), b = (f.x || 0) + (t.x || 0) + ((f.width || 0) - (t.width || 0)) * dc(t.align), k = (f.y || 0) + (t.y || 0) + ((f.height || 0) - (t.height || 0)) * dc(t.verticalAlign), y = {
|
|
7792
7798
|
"text-align": t?.align
|
|
7793
7799
|
};
|
|
7794
7800
|
return y[e ? "translateX" : "x"] = Math.round(b), y[e ? "translateY" : "y"] = Math.round(k), n && (this[this.placed ? "animate" : "attr"](y), this.placed = !0), this.alignAttr = y, this;
|
|
@@ -7802,9 +7808,9 @@ class Je {
|
|
|
7802
7808
|
e[t] && (this.alignValue = t, this.element.setAttribute("text-anchor", e[t]));
|
|
7803
7809
|
}
|
|
7804
7810
|
animate(t, e, s) {
|
|
7805
|
-
const n =
|
|
7806
|
-
return zr.hidden && (n.duration = 0), n.duration !== 0 ? (s && (n.complete = s),
|
|
7807
|
-
this.element &&
|
|
7811
|
+
const n = cT(ms(e, this.renderer.globalAnimation, !0)), o = n.defer;
|
|
7812
|
+
return zr.hidden && (n.duration = 0), n.duration !== 0 ? (s && (n.complete = s), wT(() => {
|
|
7813
|
+
this.element && hT(this, t, n);
|
|
7808
7814
|
}, o)) : (this.attr(t, void 0, s || n.complete), jr(t, function(h, d) {
|
|
7809
7815
|
n.step && n.step.call(this, h, { prop: d, pos: 1, elem: this });
|
|
7810
7816
|
}, this)), this;
|
|
@@ -7889,7 +7895,7 @@ class Je {
|
|
|
7889
7895
|
d.id = M = vf();
|
|
7890
7896
|
const E = f[T] = n.createElement(h).attr(d).add(n.defs);
|
|
7891
7897
|
E.radAttr = p, E.stops = [], b.forEach(function(B) {
|
|
7892
|
-
B[1].indexOf("rgba") === 0 ? (o =
|
|
7898
|
+
B[1].indexOf("rgba") === 0 ? (o = xs.parse(B[1]), k = o.get("rgb"), y = o.get("a")) : (k = B[1], y = 1);
|
|
7893
7899
|
const _ = n.createElement("stop").attr({
|
|
7894
7900
|
offset: B[0],
|
|
7895
7901
|
"stop-color": k,
|
|
@@ -7910,9 +7916,9 @@ class Je {
|
|
|
7910
7916
|
if (e && jr(t, function(d, p) {
|
|
7911
7917
|
e && e[p] !== d && (s[p] = d, h = !0);
|
|
7912
7918
|
}), h) {
|
|
7913
|
-
e && (t = Tn(e, s)), t.width === null || t.width === "auto" ? delete this.textWidth : n.nodeName.toLowerCase() === "text" && t.width && (o = this.textWidth = ta(t.width)), Tn(this.styles, t), o && !
|
|
7914
|
-
const d =
|
|
7915
|
-
d && (
|
|
7919
|
+
e && (t = Tn(e, s)), t.width === null || t.width === "auto" ? delete this.textWidth : n.nodeName.toLowerCase() === "text" && t.width && (o = this.textWidth = ta(t.width)), Tn(this.styles, t), o && !dT && this.renderer.forExport && delete t.width;
|
|
7920
|
+
const d = pT && t.fontSize || null;
|
|
7921
|
+
d && (xT(d) || /^\d+$/.test(d)) && (t.fontSize += "px");
|
|
7916
7922
|
const p = mc(t);
|
|
7917
7923
|
n.namespaceURI === this.SVG_NS && (["textOutline", "textOverflow", "whiteSpace", "width"].forEach((f) => p && delete p[f]), p.color && (p.fill = p.color, delete p.color)), gf(n, p);
|
|
7918
7924
|
}
|
|
@@ -7924,7 +7930,7 @@ class Je {
|
|
|
7924
7930
|
t = t.toLowerCase();
|
|
7925
7931
|
const n = t.replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot", "3,1,1,1").replace("shortdot", "1,1,").replace("shortdash", "3,1,").replace("longdash", "8,3,").replace(/dot/g, "1,3,").replace("dash", "4,3,").replace(/,$/, "").split(",");
|
|
7926
7932
|
for (e = n.length; e--; )
|
|
7927
|
-
n[e] = "" + ta(n[e]) *
|
|
7933
|
+
n[e] = "" + ta(n[e]) * ms(s, NaN);
|
|
7928
7934
|
t = n.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", t);
|
|
7929
7935
|
}
|
|
7930
7936
|
}
|
|
@@ -7944,7 +7950,7 @@ class Je {
|
|
|
7944
7950
|
}
|
|
7945
7951
|
for (t.safeRemoveChild(e); o?.div && o.div.childNodes.length === 0; )
|
|
7946
7952
|
h = o.parentGroup, t.safeRemoveChild(o.div), delete o.div, o = h;
|
|
7947
|
-
t.alignOptions &&
|
|
7953
|
+
t.alignOptions && gT(s.alignedObjects, t), jr(t, (p, f) => {
|
|
7948
7954
|
// Destroy child elements of a group
|
|
7949
7955
|
(t[f]?.parentGroup === t || // Destroy own elements
|
|
7950
7956
|
["connector", "foreignObject"].indexOf(f) !== -1) && t[f]?.destroy?.(), delete t[f];
|
|
@@ -7960,7 +7966,7 @@ class Je {
|
|
|
7960
7966
|
s.setAttributeNS("http://www.w3.org/1999/xlink", e, t);
|
|
7961
7967
|
}
|
|
7962
7968
|
getBBox(t, e) {
|
|
7963
|
-
const s = this, { alignValue: n, element: o, renderer: h, styles: d, textStr: p } = s, { cache: f, cacheKeys: b } = h, k = o.namespaceURI === s.SVG_NS, y =
|
|
7969
|
+
const s = this, { alignValue: n, element: o, renderer: h, styles: d, textStr: p } = s, { cache: f, cacheKeys: b } = h, k = o.namespaceURI === s.SVG_NS, y = ms(e, s.rotation, 0), w = h.styledMode ? o && Je.prototype.getStyle.call(o, "font-size") : d.fontSize;
|
|
7964
7970
|
let M, T, L, E;
|
|
7965
7971
|
if (Ji(p) && (E = p.toString(), E.indexOf("<") === -1 && (E = E.replace(/\d/g, "0")), E += [
|
|
7966
7972
|
"",
|
|
@@ -8019,12 +8025,12 @@ class Je {
|
|
|
8019
8025
|
].map((Et) => [
|
|
8020
8026
|
Et - Et * T,
|
|
8021
8027
|
Et * L
|
|
8022
|
-
]), J = s + k * (o - E) + W + H, et = n + y - k * B - G + $, it = J + y * _, rt = it + E, mt = rt - h * _, pt = mt - E, ft = et + y * F, ut = ft + B, bt = ut - h * F, Tt = bt - B, It = Math.min(it, rt, mt, pt), Ht = Math.min(ft, ut, bt, Tt), pe = Math.max(it, rt, mt, pt) - It,
|
|
8028
|
+
]), J = s + k * (o - E) + W + H, et = n + y - k * B - G + $, it = J + y * _, rt = it + E, mt = rt - h * _, pt = mt - E, ft = et + y * F, ut = ft + B, bt = ut - h * F, Tt = bt - B, It = Math.min(it, rt, mt, pt), Ht = Math.min(ft, ut, bt, Tt), pe = Math.max(it, rt, mt, pt) - It, me = Math.max(ft, ut, bt, Tt) - Ht;
|
|
8023
8029
|
return {
|
|
8024
8030
|
x: It,
|
|
8025
8031
|
y: Ht,
|
|
8026
8032
|
width: pe,
|
|
8027
|
-
height:
|
|
8033
|
+
height: me,
|
|
8028
8034
|
polygon: [
|
|
8029
8035
|
[it, ft],
|
|
8030
8036
|
[rt, ut],
|
|
@@ -8034,7 +8040,7 @@ class Je {
|
|
|
8034
8040
|
};
|
|
8035
8041
|
}
|
|
8036
8042
|
getStyle(t) {
|
|
8037
|
-
return
|
|
8043
|
+
return mT.getComputedStyle(this.element || this, "").getPropertyValue(t);
|
|
8038
8044
|
}
|
|
8039
8045
|
hasClass(t) {
|
|
8040
8046
|
return ("" + this.attr("class")).split(" ").indexOf(t) !== -1;
|
|
@@ -8046,11 +8052,11 @@ class Je {
|
|
|
8046
8052
|
return { height: 0, width: 0, x: 0, y: 0 };
|
|
8047
8053
|
}
|
|
8048
8054
|
constructor(t, e) {
|
|
8049
|
-
this.onEvents = {}, this.opacity = 1, this.SVG_NS = Qo, this.element = e === "span" || e === "body" ?
|
|
8055
|
+
this.onEvents = {}, this.opacity = 1, this.SVG_NS = Qo, this.element = e === "span" || e === "body" ? fT(e) : zr.createElementNS(this.SVG_NS, e), this.renderer = t, this.styles = {}, cc(this, "afterInit");
|
|
8050
8056
|
}
|
|
8051
8057
|
on(t, e) {
|
|
8052
8058
|
const { onEvents: s } = this;
|
|
8053
|
-
return s[t] && s[t](), s[t] =
|
|
8059
|
+
return s[t] && s[t](), s[t] = uT(this.element, t, e), this;
|
|
8054
8060
|
}
|
|
8055
8061
|
opacitySetter(t, e, s) {
|
|
8056
8062
|
const n = Number(Number(t).toFixed(3));
|
|
@@ -8081,7 +8087,7 @@ class Je {
|
|
|
8081
8087
|
const { renderer: e } = this, s = mc(this.parentGroup?.rotation === 90 ? {
|
|
8082
8088
|
offsetX: -1,
|
|
8083
8089
|
offsetY: -1
|
|
8084
|
-
} : {},
|
|
8090
|
+
} : {}, bT(t) ? t : {}), n = e.shadowDefinition(s);
|
|
8085
8091
|
return this.attr({
|
|
8086
8092
|
filter: t ? `url(${e.url}#${n})` : "none"
|
|
8087
8093
|
});
|
|
@@ -8105,7 +8111,7 @@ class Je {
|
|
|
8105
8111
|
symbolAttr(t) {
|
|
8106
8112
|
const e = this;
|
|
8107
8113
|
Je.symbolCustomAttribs.forEach(function(s) {
|
|
8108
|
-
e[s] =
|
|
8114
|
+
e[s] = ms(t[s], e[s]);
|
|
8109
8115
|
}), e.attr({
|
|
8110
8116
|
d: e.renderer.symbols[e.symbolName](e.x, e.y, e.width, e.height, e)
|
|
8111
8117
|
});
|
|
@@ -8115,9 +8121,9 @@ class Je {
|
|
|
8115
8121
|
}
|
|
8116
8122
|
titleSetter(t) {
|
|
8117
8123
|
const e = this.element, s = e.getElementsByTagName("title")[0] || zr.createElementNS(this.SVG_NS, "title");
|
|
8118
|
-
e.insertBefore ? e.insertBefore(s, e.firstChild) : e.appendChild(s), s.textContent =
|
|
8124
|
+
e.insertBefore ? e.insertBefore(s, e.firstChild) : e.appendChild(s), s.textContent = vT(
|
|
8119
8125
|
// Scan #[73]
|
|
8120
|
-
|
|
8126
|
+
ms(t, ""),
|
|
8121
8127
|
// #3276, #3895
|
|
8122
8128
|
[/<[^>]*>/g, ""]
|
|
8123
8129
|
).replace(/</g, "<").replace(/>/g, ">");
|
|
@@ -8138,7 +8144,7 @@ class Je {
|
|
|
8138
8144
|
rotation: h,
|
|
8139
8145
|
rotationOriginX: (d || 0) - o,
|
|
8140
8146
|
rotationOriginY: (p || 0) - o
|
|
8141
|
-
})), (Ji(f) || Ji(b)) && M.push("scale(" +
|
|
8147
|
+
})), (Ji(f) || Ji(b)) && M.push("scale(" + ms(f, 1) + " " + ms(b, 1) + ")"), M.length && !(k || this).textPath && (s?.element || e).setAttribute(t, M.join(" "));
|
|
8142
8148
|
}
|
|
8143
8149
|
visibilitySetter(t, e, s) {
|
|
8144
8150
|
t === "inherit" ? s.removeAttribute(e) : this[e] !== t && s.setAttribute(e, t), this[e] = t;
|
|
@@ -8184,7 +8190,7 @@ Je.prototype.yGetter = Je.prototype.xGetter;
|
|
|
8184
8190
|
Je.prototype.matrixSetter = Je.prototype.rotationOriginXSetter = Je.prototype.rotationOriginYSetter = Je.prototype.rotationSetter = Je.prototype.scaleXSetter = Je.prototype.scaleYSetter = Je.prototype.translateXSetter = Je.prototype.translateYSetter = Je.prototype.verticalAlignSetter = function(l, t) {
|
|
8185
8191
|
this[t] = l, this.doTransform = !0;
|
|
8186
8192
|
};
|
|
8187
|
-
const rs = Je, { defined: wf, extend:
|
|
8193
|
+
const rs = Je, { defined: wf, extend: ST, getAlignFactor: Sf, isNumber: Pn, merge: CT, pick: ea, removeEvent: Cf } = Nt;
|
|
8188
8194
|
class yr extends rs {
|
|
8189
8195
|
/* *
|
|
8190
8196
|
*
|
|
@@ -8224,7 +8230,7 @@ class yr extends rs {
|
|
|
8224
8230
|
css(t) {
|
|
8225
8231
|
if (t) {
|
|
8226
8232
|
const e = {};
|
|
8227
|
-
t =
|
|
8233
|
+
t = CT(t), yr.textProps.forEach((s) => {
|
|
8228
8234
|
typeof t[s] < "u" && (e[s] = t[s], delete t[s]);
|
|
8229
8235
|
}), this.text.css(e), "fontSize" in e || "fontWeight" in e ? this.updateTextPadding() : ("width" in e || "textOverflow" in e) && this.updateBoxSize();
|
|
8230
8236
|
}
|
|
@@ -8320,7 +8326,7 @@ class yr extends rs {
|
|
|
8320
8326
|
(this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")
|
|
8321
8327
|
), d.add(this);
|
|
8322
8328
|
}
|
|
8323
|
-
o = this.getCrispAdjust(), e.x = o, e.y = (this.baseline ? -this.baselineOffset : 0) + o, e.width = Math.round(this.width), e.height = Math.round(this.height), this.box.attr(
|
|
8329
|
+
o = this.getCrispAdjust(), e.x = o, e.y = (this.baseline ? -this.baselineOffset : 0) + o, e.width = Math.round(this.width), e.height = Math.round(this.height), this.box.attr(ST(e, this.deferredAttr)), this.deferredAttr = {};
|
|
8324
8330
|
}
|
|
8325
8331
|
}
|
|
8326
8332
|
/*
|
|
@@ -8375,7 +8381,7 @@ yr.textProps = [
|
|
|
8375
8381
|
"whiteSpace",
|
|
8376
8382
|
"width"
|
|
8377
8383
|
];
|
|
8378
|
-
const
|
|
8384
|
+
const kT = yr, { defined: kf, isNumber: MT, pick: Ln } = Nt;
|
|
8379
8385
|
function dx(l, t, e, s, n) {
|
|
8380
8386
|
const o = [];
|
|
8381
8387
|
if (n) {
|
|
@@ -8435,9 +8441,9 @@ function dx(l, t, e, s, n) {
|
|
|
8435
8441
|
}
|
|
8436
8442
|
return o;
|
|
8437
8443
|
}
|
|
8438
|
-
function
|
|
8444
|
+
function AT(l, t, e, s, n) {
|
|
8439
8445
|
const d = Math.min(n?.r || 0, e, s), p = d + 6, f = n?.anchorX, b = n?.anchorY || 0, k = im(l, t, e, s, { r: d });
|
|
8440
|
-
if (!
|
|
8446
|
+
if (!MT(f) || f < e && f > 0 && b < s && b > 0)
|
|
8441
8447
|
return k;
|
|
8442
8448
|
if (l + f > e - p)
|
|
8443
8449
|
if (b > t + p && b < t + s - p)
|
|
@@ -8462,14 +8468,14 @@ function MT(l, t, e, s, n) {
|
|
|
8462
8468
|
);
|
|
8463
8469
|
return k;
|
|
8464
8470
|
}
|
|
8465
|
-
function
|
|
8471
|
+
function TT(l, t, e, s) {
|
|
8466
8472
|
return dx(l + e / 2, t + s / 2, e / 2, s / 2, {
|
|
8467
8473
|
start: Math.PI * 0.5,
|
|
8468
8474
|
end: Math.PI * 2.5,
|
|
8469
8475
|
open: !1
|
|
8470
8476
|
});
|
|
8471
8477
|
}
|
|
8472
|
-
function
|
|
8478
|
+
function PT(l, t, e, s) {
|
|
8473
8479
|
return [
|
|
8474
8480
|
["M", l + e / 2, t],
|
|
8475
8481
|
["L", l + e, t + s / 2],
|
|
@@ -8510,7 +8516,7 @@ function im(l, t, e, s, n) {
|
|
|
8510
8516
|
// Top-left corner
|
|
8511
8517
|
];
|
|
8512
8518
|
}
|
|
8513
|
-
function
|
|
8519
|
+
function LT(l, t, e, s) {
|
|
8514
8520
|
return [
|
|
8515
8521
|
["M", l + e / 2, t],
|
|
8516
8522
|
["L", l + e, t + s],
|
|
@@ -8518,7 +8524,7 @@ function PT(l, t, e, s) {
|
|
|
8518
8524
|
["Z"]
|
|
8519
8525
|
];
|
|
8520
8526
|
}
|
|
8521
|
-
function
|
|
8527
|
+
function OT(l, t, e, s) {
|
|
8522
8528
|
return [
|
|
8523
8529
|
["M", l, t],
|
|
8524
8530
|
["L", l + e, t],
|
|
@@ -8526,24 +8532,24 @@ function LT(l, t, e, s) {
|
|
|
8526
8532
|
["Z"]
|
|
8527
8533
|
];
|
|
8528
8534
|
}
|
|
8529
|
-
const
|
|
8535
|
+
const ET = {
|
|
8530
8536
|
arc: dx,
|
|
8531
|
-
callout:
|
|
8532
|
-
circle:
|
|
8533
|
-
diamond:
|
|
8537
|
+
callout: AT,
|
|
8538
|
+
circle: TT,
|
|
8539
|
+
diamond: PT,
|
|
8534
8540
|
rect: Mf,
|
|
8535
8541
|
roundedRect: im,
|
|
8536
8542
|
square: Mf,
|
|
8537
|
-
triangle:
|
|
8538
|
-
"triangle-down":
|
|
8539
|
-
}, mx =
|
|
8540
|
-
class
|
|
8543
|
+
triangle: LT,
|
|
8544
|
+
"triangle-down": OT
|
|
8545
|
+
}, mx = ET, { doc: pc, SVG_NS: DT, win: Af } = Xt, { attr: uc, extend: IT, fireEvent: NT, isString: RT, objectEach: _T, pick: BT } = Nt, fc = (l, t) => l.substring(0, t) + "…";
|
|
8546
|
+
class zT {
|
|
8541
8547
|
constructor(t) {
|
|
8542
8548
|
const e = t.styles;
|
|
8543
8549
|
this.renderer = t.renderer, this.svgElement = t, this.width = t.textWidth, this.textLineHeight = e?.lineHeight, this.textOutline = e?.textOutline, this.ellipsis = e?.textOverflow === "ellipsis", this.lineClamp = e?.lineClamp, this.noWrap = e?.whiteSpace === "nowrap";
|
|
8544
8550
|
}
|
|
8545
8551
|
buildSVG() {
|
|
8546
|
-
const t = this.svgElement, e = t.element, s = t.renderer, n =
|
|
8552
|
+
const t = this.svgElement, e = t.element, s = t.renderer, n = BT(t.textStr, "").toString(), o = n.indexOf("<") !== -1, h = e.childNodes, d = !t.added && s.box, p = /<br.*?>/g, f = [
|
|
8547
8553
|
n,
|
|
8548
8554
|
this.ellipsis,
|
|
8549
8555
|
this.noWrap,
|
|
@@ -8568,7 +8574,7 @@ class BT {
|
|
|
8568
8574
|
// #7179
|
|
8569
8575
|
), d && d.removeChild(e);
|
|
8570
8576
|
}
|
|
8571
|
-
|
|
8577
|
+
RT(this.textOutline) && t.applyTextOutline && t.applyTextOutline(this.textOutline);
|
|
8572
8578
|
}
|
|
8573
8579
|
}
|
|
8574
8580
|
modifyDOM() {
|
|
@@ -8628,7 +8634,7 @@ class BT {
|
|
|
8628
8634
|
p.insertBefore(B, d);
|
|
8629
8635
|
}), L.forEach((B) => {
|
|
8630
8636
|
p.insertBefore(pc.createTextNode(B), d);
|
|
8631
|
-
const _ = pc.createElementNS(
|
|
8637
|
+
const _ = pc.createElementNS(DT, "tspan");
|
|
8632
8638
|
_.textContent = "", uc(_, { dy: y, x: e }), p.insertBefore(_, d);
|
|
8633
8639
|
});
|
|
8634
8640
|
} else this.ellipsis && f && this.truncate(
|
|
@@ -8660,9 +8666,9 @@ class BT {
|
|
|
8660
8666
|
const b = t[n + 1];
|
|
8661
8667
|
b?.textContent && (b.textContent = b.textContent.replace(/^ +/gm, ""));
|
|
8662
8668
|
} else p === "a" && h && h.some((b) => b.tagName === "#text") && (s.children = [{ children: h, tagName: "tspan" }]);
|
|
8663
|
-
p !== "#text" && p !== "a" && (s.tagName = "tspan"),
|
|
8669
|
+
p !== "#text" && p !== "a" && (s.tagName = "tspan"), IT(s, { attributes: o, style: d }), h && h.filter((b) => b.tagName !== "#text").forEach(e);
|
|
8664
8670
|
};
|
|
8665
|
-
t.forEach(e),
|
|
8671
|
+
t.forEach(e), NT(this.svgElement, "afterModifyTree", { nodes: t });
|
|
8666
8672
|
}
|
|
8667
8673
|
/*
|
|
8668
8674
|
* Truncate the text node contents to a given length. Used when the css
|
|
@@ -8701,12 +8707,12 @@ class BT {
|
|
|
8701
8707
|
* @return {string} The processed string
|
|
8702
8708
|
*/
|
|
8703
8709
|
unescapeEntities(t, e) {
|
|
8704
|
-
return
|
|
8710
|
+
return _T(this.renderer.escapes, function(s, n) {
|
|
8705
8711
|
(!e || e.indexOf(s) === -1) && (t = t.toString().replace(new RegExp(s, "g"), n));
|
|
8706
8712
|
}), t;
|
|
8707
8713
|
}
|
|
8708
8714
|
}
|
|
8709
|
-
const
|
|
8715
|
+
const jT = zT, { defaultOptions: FT } = Ii, { charts: HT, deg2rad: Tf, doc: Fr, isFirefox: Pf, isMS: Lf, isWebKit: WT, noop: YT, SVG_NS: GT, symbolSizes: gc, win: xc } = Xt, { addEvent: ia, attr: sa, createElement: XT, crisp: Of, css: ra, defined: lr, destroyObjectProperties: VT, extend: pr, isArray: UT, isNumber: hr, isObject: On, isString: $T, merge: bc, pick: yc, pInt: qT, replaceNested: ZT, uniqueKey: KT } = Nt;
|
|
8710
8716
|
let vc;
|
|
8711
8717
|
class sm {
|
|
8712
8718
|
constructor(t, e, s, n, o, h, d) {
|
|
@@ -8733,9 +8739,9 @@ class sm {
|
|
|
8733
8739
|
return new Yi([t]).addToDOM(this.defs.element);
|
|
8734
8740
|
}
|
|
8735
8741
|
getReferenceURL() {
|
|
8736
|
-
if ((Pf ||
|
|
8742
|
+
if ((Pf || WT) && Fr.getElementsByTagName("base").length) {
|
|
8737
8743
|
if (!lr(vc)) {
|
|
8738
|
-
const t =
|
|
8744
|
+
const t = KT(), s = new Yi([{
|
|
8739
8745
|
tagName: "svg",
|
|
8740
8746
|
attributes: {
|
|
8741
8747
|
width: 8,
|
|
@@ -8775,7 +8781,7 @@ class sm {
|
|
|
8775
8781
|
}), vc = Fr.elementFromPoint(6, 6)?.id === "hitme", Fr.body.removeChild(s);
|
|
8776
8782
|
}
|
|
8777
8783
|
if (vc)
|
|
8778
|
-
return
|
|
8784
|
+
return ZT(
|
|
8779
8785
|
xc.location.href.split("#")[0],
|
|
8780
8786
|
// Remove hash
|
|
8781
8787
|
[/<[^>]*>/g, ""],
|
|
@@ -8802,7 +8808,7 @@ class sm {
|
|
|
8802
8808
|
}
|
|
8803
8809
|
destroy() {
|
|
8804
8810
|
const t = this, e = t.defs;
|
|
8805
|
-
return t.box = null, t.boxWrapper = t.boxWrapper.destroy(),
|
|
8811
|
+
return t.box = null, t.boxWrapper = t.boxWrapper.destroy(), VT(t.gradients || {}), t.gradients = null, t.defs = e.destroy(), t.unSubPixelFix && t.unSubPixelFix(), t.alignedObjects = null, null;
|
|
8806
8812
|
}
|
|
8807
8813
|
createElement(t) {
|
|
8808
8814
|
return new this.Element(this, t);
|
|
@@ -8849,13 +8855,13 @@ class sm {
|
|
|
8849
8855
|
}];
|
|
8850
8856
|
}
|
|
8851
8857
|
buildText(t) {
|
|
8852
|
-
new
|
|
8858
|
+
new jT(t).buildSVG();
|
|
8853
8859
|
}
|
|
8854
8860
|
getContrast(t) {
|
|
8855
8861
|
if (t === "transparent")
|
|
8856
8862
|
return "#000000";
|
|
8857
|
-
const e =
|
|
8858
|
-
if (hr(e[0]) || !
|
|
8863
|
+
const e = xs.parse(t).rgba, s = " clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";
|
|
8864
|
+
if (hr(e[0]) || !xs.useColorMix) {
|
|
8859
8865
|
const n = e.map((h) => {
|
|
8860
8866
|
const d = h / 255;
|
|
8861
8867
|
return d <= 0.04 ? d / 12.92 : Math.pow((d + 0.055) / 1.055, 2.4);
|
|
@@ -8867,7 +8873,7 @@ class sm {
|
|
|
8867
8873
|
button(t, e, s, n, o = {}, h, d, p, f, b) {
|
|
8868
8874
|
const k = this.label(t, e, s, f, void 0, void 0, b, void 0, "button"), y = this.styledMode, w = arguments;
|
|
8869
8875
|
let M = 0;
|
|
8870
|
-
o = bc(
|
|
8876
|
+
o = bc(FT.global.buttonTheme, o), y && (delete o.fill, delete o.stroke, delete o["stroke-width"]);
|
|
8871
8877
|
const T = o.states || {}, L = o.style || {};
|
|
8872
8878
|
delete o.states, delete o.style;
|
|
8873
8879
|
const E = [
|
|
@@ -8897,7 +8903,7 @@ class sm {
|
|
|
8897
8903
|
const e = this.styledMode ? {} : {
|
|
8898
8904
|
fill: "none"
|
|
8899
8905
|
};
|
|
8900
|
-
return
|
|
8906
|
+
return UT(t) ? e.d = t : On(t) && pr(e, t), this.createElement("path").attr(e);
|
|
8901
8907
|
}
|
|
8902
8908
|
circle(t, e, s) {
|
|
8903
8909
|
const n = On(t) ? t : typeof t > "u" ? {} : { x: t, y: e, r: s }, o = this.createElement("circle");
|
|
@@ -8996,9 +9002,9 @@ class sm {
|
|
|
8996
9002
|
}), lr(e) && L.attr({
|
|
8997
9003
|
x: e,
|
|
8998
9004
|
y: s
|
|
8999
|
-
}), L.isImg = !0, L.symbolUrl = t, lr(L.imgwidth) && lr(L.imgheight) ? T(L) : (L.attr({ width: 0, height: 0 }),
|
|
9005
|
+
}), L.isImg = !0, L.symbolUrl = t, lr(L.imgwidth) && lr(L.imgheight) ? T(L) : (L.attr({ width: 0, height: 0 }), XT("img", {
|
|
9000
9006
|
onload: function() {
|
|
9001
|
-
const E =
|
|
9007
|
+
const E = HT[d.chartIndex];
|
|
9002
9008
|
this.width === 0 && (ra(this, {
|
|
9003
9009
|
position: "absolute",
|
|
9004
9010
|
top: "-999em"
|
|
@@ -9029,7 +9035,7 @@ class sm {
|
|
|
9029
9035
|
}), d;
|
|
9030
9036
|
}
|
|
9031
9037
|
fontMetrics(t) {
|
|
9032
|
-
const e = hr(t) ? t :
|
|
9038
|
+
const e = hr(t) ? t : qT(rs.prototype.getStyle.call(t, "font-size") || 0), s = e < 24 ? e + 3 : Math.round(e * 1.2), n = Math.round(s * 0.8);
|
|
9033
9039
|
return {
|
|
9034
9040
|
// Line height
|
|
9035
9041
|
h: s,
|
|
@@ -9059,11 +9065,11 @@ class sm {
|
|
|
9059
9065
|
V: 2
|
|
9060
9066
|
};
|
|
9061
9067
|
for (let o = 0; o < t.length; o++)
|
|
9062
|
-
|
|
9068
|
+
$T(s[0]) && hr(t[o]) && s.length === n[s[0].toUpperCase()] && t.splice(o, 0, s[0].replace("M", "L").replace("m", "l")), typeof t[o] == "string" && (s.length && e.push(s.slice(0)), s.length = 0), s.push(t[o]);
|
|
9063
9069
|
return e.push(s.slice(0)), e;
|
|
9064
9070
|
}
|
|
9065
9071
|
label(t, e, s, n, o, h, d, p, f) {
|
|
9066
|
-
return new
|
|
9072
|
+
return new kT(this, t, e, s, n, o, h, d, p, f);
|
|
9067
9073
|
}
|
|
9068
9074
|
alignElements() {
|
|
9069
9075
|
this.alignedObjects.forEach((t) => t.align());
|
|
@@ -9071,7 +9077,7 @@ class sm {
|
|
|
9071
9077
|
}
|
|
9072
9078
|
pr(sm.prototype, {
|
|
9073
9079
|
Element: rs,
|
|
9074
|
-
SVG_NS:
|
|
9080
|
+
SVG_NS: GT,
|
|
9075
9081
|
escapes: {
|
|
9076
9082
|
"&": "&",
|
|
9077
9083
|
"<": "<",
|
|
@@ -9081,17 +9087,17 @@ pr(sm.prototype, {
|
|
|
9081
9087
|
'"': """
|
|
9082
9088
|
},
|
|
9083
9089
|
symbols: mx,
|
|
9084
|
-
draw:
|
|
9090
|
+
draw: YT
|
|
9085
9091
|
});
|
|
9086
9092
|
ro.registerRendererType("svg", sm, !0);
|
|
9087
|
-
const px = sm, { composed:
|
|
9093
|
+
const px = sm, { composed: QT, isFirefox: JT } = Xt, { attr: tP, css: Rs, createElement: eP, defined: Ef, extend: iP, getAlignFactor: sP, isNumber: na, pInt: rP, pushUnique: nP } = Nt;
|
|
9088
9094
|
function ux(l, t, e) {
|
|
9089
9095
|
const s = this.div?.style;
|
|
9090
9096
|
rs.prototype[`${t}Setter`].call(this, l, t, e), s && (e.style[t] = s[t] = l);
|
|
9091
9097
|
}
|
|
9092
|
-
const
|
|
9098
|
+
const oP = (l, t) => {
|
|
9093
9099
|
if (!l.div) {
|
|
9094
|
-
const e =
|
|
9100
|
+
const e = tP(l.element, "class"), s = l.css, n = eP(
|
|
9095
9101
|
"div",
|
|
9096
9102
|
e ? { className: e } : void 0,
|
|
9097
9103
|
{
|
|
@@ -9127,7 +9133,7 @@ const nP = (l, t) => {
|
|
|
9127
9133
|
};
|
|
9128
9134
|
class Zn extends rs {
|
|
9129
9135
|
static compose(t) {
|
|
9130
|
-
|
|
9136
|
+
nP(QT, this.compose) && (t.prototype.html = function(e, s, n) {
|
|
9131
9137
|
return new Zn(this, "span").attr({
|
|
9132
9138
|
text: e,
|
|
9133
9139
|
x: Math.round(s),
|
|
@@ -9157,7 +9163,7 @@ class Zn extends rs {
|
|
|
9157
9163
|
css(t) {
|
|
9158
9164
|
const { element: e } = this, s = e.tagName === "SPAN" && t && "width" in t, n = s && t.width;
|
|
9159
9165
|
let o;
|
|
9160
|
-
return s && (delete t.width, this.textWidth =
|
|
9166
|
+
return s && (delete t.width, this.textWidth = rP(n) || void 0, o = !0), t?.textOverflow === "ellipsis" && (t.overflow = "hidden", t.whiteSpace = "nowrap"), t?.lineClamp && (t.display = "-webkit-box", t.WebkitLineClamp = t.lineClamp, t.WebkitBoxOrient = "vertical", t.overflow = "hidden"), na(Number(t?.fontSize)) && (t.fontSize += "px"), iP(this.styles, t), Rs(e, t), o && this.updateTransform(), this;
|
|
9161
9167
|
}
|
|
9162
9168
|
htmlGetBBox() {
|
|
9163
9169
|
const { element: t } = this;
|
|
@@ -9222,7 +9228,7 @@ class Zn extends rs {
|
|
|
9222
9228
|
!Ef(o) && !this.textWidth && this.textPxLength || // #7920
|
|
9223
9229
|
t.offsetWidth,
|
|
9224
9230
|
W,
|
|
9225
|
-
|
|
9231
|
+
sP(y)
|
|
9226
9232
|
));
|
|
9227
9233
|
const { xCorr: G = 0, yCorr: $ = 0 } = this, H = (h ?? L) - G - L - F, J = (d ?? E) - $ - E - F, et = {
|
|
9228
9234
|
left: `${L + G}px`,
|
|
@@ -9236,7 +9242,7 @@ class Zn extends rs {
|
|
|
9236
9242
|
width: t.offsetWidth + 3,
|
|
9237
9243
|
height: t.offsetHeight,
|
|
9238
9244
|
"transform-origin": t.getAttribute("transform-origin") || "0 0"
|
|
9239
|
-
}), Rs(t, { display: b, textAlign: y })) :
|
|
9245
|
+
}), Rs(t, { display: b, textAlign: y })) : JT && e.attr({
|
|
9240
9246
|
width: 0,
|
|
9241
9247
|
height: 0
|
|
9242
9248
|
})) : Rs(t, et), this.cTT = _, this.oldRotation = o, this.oldAlign = y;
|
|
@@ -9261,7 +9267,7 @@ class Zn extends rs {
|
|
|
9261
9267
|
for (; d; )
|
|
9262
9268
|
o.push(d), d = d.parentGroup;
|
|
9263
9269
|
for (const p of o.reverse())
|
|
9264
|
-
h =
|
|
9270
|
+
h = oP(p, n);
|
|
9265
9271
|
}
|
|
9266
9272
|
(h || n).appendChild(this.element);
|
|
9267
9273
|
}
|
|
@@ -9416,12 +9422,12 @@ var dd;
|
|
|
9416
9422
|
lineWidth: 0
|
|
9417
9423
|
};
|
|
9418
9424
|
})(dd || (dd = {}));
|
|
9419
|
-
const
|
|
9425
|
+
const aP = dd, { addEvent: lP, isFunction: hP, objectEach: cP, removeEvent: dP } = Nt;
|
|
9420
9426
|
var md;
|
|
9421
9427
|
(function(l) {
|
|
9422
9428
|
function t(e, s) {
|
|
9423
|
-
e.eventOptions = e.eventOptions || {},
|
|
9424
|
-
e.eventOptions[o] !== n && (e.eventOptions[o] && (
|
|
9429
|
+
e.eventOptions = e.eventOptions || {}, cP(s.events, function(n, o) {
|
|
9430
|
+
e.eventOptions[o] !== n && (e.eventOptions[o] && (dP(e, o, e.eventOptions[o]), delete e.eventOptions[o]), hP(n) && (e.eventOptions[o] = n, lP(e, o, n, {
|
|
9425
9431
|
order: 0
|
|
9426
9432
|
// #14080 fire those events as firsts
|
|
9427
9433
|
})));
|
|
@@ -9429,8 +9435,8 @@ var md;
|
|
|
9429
9435
|
}
|
|
9430
9436
|
l.registerEventOptions = t;
|
|
9431
9437
|
})(md || (md = {}));
|
|
9432
|
-
const Ll = md, { deg2rad: wc } = Xt, { clamp:
|
|
9433
|
-
class
|
|
9438
|
+
const Ll = md, { deg2rad: wc } = Xt, { clamp: mP, correctFloat: oa, defined: Sc, destroyObjectProperties: pP, extend: Df, fireEvent: En, getAlignFactor: uP, isNumber: aa, merge: fP, objectEach: gP, pick: ts } = Nt;
|
|
9439
|
+
class xP {
|
|
9434
9440
|
/* *
|
|
9435
9441
|
*
|
|
9436
9442
|
* Constructors
|
|
@@ -9474,17 +9480,17 @@ class gP {
|
|
|
9474
9480
|
}
|
|
9475
9481
|
createLabel(t, e, s) {
|
|
9476
9482
|
const n = this.axis, { renderer: o, styledMode: h } = n.chart, d = e.style.whiteSpace, p = Sc(t) && e.enabled ? o.text(t, s?.x, s?.y, e.useHTML).add(n.labelGroup) : void 0;
|
|
9477
|
-
return p && (h || p.css(
|
|
9483
|
+
return p && (h || p.css(fP(e.style)), p.textPxLength = p.getBBox().width, !h && d && p.css({ whiteSpace: d })), p;
|
|
9478
9484
|
}
|
|
9479
9485
|
destroy() {
|
|
9480
|
-
|
|
9486
|
+
pP(this, this.axis);
|
|
9481
9487
|
}
|
|
9482
9488
|
getPosition(t, e, s, n) {
|
|
9483
9489
|
const o = this.axis, h = o.chart, d = n && h.oldChartHeight || h.chartHeight, p = {
|
|
9484
9490
|
x: t ? oa(o.translate(e + s, void 0, void 0, n) + o.transB) : o.left + o.offset + (o.opposite ? (n && h.oldChartWidth || h.chartWidth) - o.right - o.left : 0),
|
|
9485
9491
|
y: t ? d - o.bottom + o.offset - (o.opposite ? o.height : 0) : oa(d - o.translate(e + s, void 0, void 0, n) - o.transB)
|
|
9486
9492
|
};
|
|
9487
|
-
return p.y =
|
|
9493
|
+
return p.y = mP(p.y, -1e9, 1e9), En(this, "afterGetPosition", { pos: p }), p;
|
|
9488
9494
|
}
|
|
9489
9495
|
getLabelPosition(t, e, s, n, o, h, d, p) {
|
|
9490
9496
|
const f = this.axis, b = f.transA, k = (
|
|
@@ -9509,7 +9515,7 @@ class gP {
|
|
|
9509
9515
|
]], n);
|
|
9510
9516
|
}
|
|
9511
9517
|
handleOverflow(t) {
|
|
9512
|
-
const e = this, s = this.axis, n = s.options.labels, o = t.x, h = s.chart.chartWidth, d = s.chart.spacing, p = ts(s.labelLeft, Math.min(s.pos, d[3])), f = ts(s.labelRight, Math.max(s.isRadial ? 0 : s.pos + s.len, h - d[1])), b = this.label, k = this.rotation, y =
|
|
9518
|
+
const e = this, s = this.axis, n = s.options.labels, o = t.x, h = s.chart.chartWidth, d = s.chart.spacing, p = ts(s.labelLeft, Math.min(s.pos, d[3])), f = ts(s.labelRight, Math.max(s.isRadial ? 0 : s.pos + s.len, h - d[1])), b = this.label, k = this.rotation, y = uP(s.labelAlign || b.attr("align")), w = b.getBBox().width, M = s.getSlotWidth(e), T = y, L = {};
|
|
9513
9519
|
let E = M, B = 1, _, F, W;
|
|
9514
9520
|
!k && n.overflow === "justify" ? (_ = o - y * w, F = o + (1 - y) * w, _ < p ? E = t.x + E * (1 - y) - p : F > f && (E = f - t.x + E * y, B = -1), E = Math.min(M, E), E < M && s.labelAlign === "center" && (t.x += B * (M - E - T * (M - Math.min(w, E)))), (w > E || s.autoRotation && b?.styles?.width) && (W = E)) : k < 0 && o - y * w < p ? W = Math.round(o / Math.cos(k * wc) - p) : k > 0 && o + y * w > f && (W = Math.round((h - o) / Math.cos(k * wc))), W && b && (e.shortenLabel ? e.shortenLabel() : b.css(Df(L, {
|
|
9515
9521
|
width: Math.floor(W) + "px",
|
|
@@ -9519,7 +9525,7 @@ class gP {
|
|
|
9519
9525
|
moveLabel(t, e) {
|
|
9520
9526
|
const s = this, n = s.label, o = s.axis;
|
|
9521
9527
|
let h = !1, d;
|
|
9522
|
-
n && n.textStr === t ? (s.movedLabel = n, h = !0, delete s.label) :
|
|
9528
|
+
n && n.textStr === t ? (s.movedLabel = n, h = !0, delete s.label) : gP(o.ticks, function(p) {
|
|
9523
9529
|
!h && !p.isNew && p !== s && p.label && p.label.textStr === t && (s.movedLabel = p.label, h = !0, p.labelPos = s.movedLabel.xy, delete p.label);
|
|
9524
9530
|
}), !h && (s.labelPos || n) && (d = s.labelPos || n.xy, s.movedLabel = s.createLabel(t, e, d), s.movedLabel && s.movedLabel.attr({ opacity: 0 }));
|
|
9525
9531
|
}
|
|
@@ -9569,7 +9575,7 @@ class gP {
|
|
|
9569
9575
|
e && !t.isNew && (e.animate({ opacity: 0 }, void 0, e.destroy), delete t.label), s.isDirty = !0, t.label = t.movedLabel, delete t.movedLabel;
|
|
9570
9576
|
}
|
|
9571
9577
|
}
|
|
9572
|
-
const Vr =
|
|
9578
|
+
const Vr = xP, { animObject: bP } = ri, { xAxis: If, yAxis: yP } = aP, { defaultOptions: pd } = Ii, { registerEventOptions: vP } = Ll, { deg2rad: wP } = Xt, { arrayMax: Nf, arrayMin: SP, clamp: Cc, correctFloat: Ti, defined: Se, destroyObjectProperties: CP, erase: Rf, error: kc, extend: Na, fireEvent: Oe, getClosestDistance: _f, insertItem: kP, isArray: Bf, isNumber: zt, isString: zf, merge: Ra, normalizeTickInterval: MP, objectEach: la, pick: Kt, relativeLength: ha, removeEvent: AP, splat: TP, syncTimeout: PP } = Nt, jf = (l, t) => MP(t, void 0, void 0, Kt(
|
|
9573
9579
|
l.options.allowDecimals,
|
|
9574
9580
|
// If the tick interval is greater than 0.5, avoid decimals, as
|
|
9575
9581
|
// linear axes are often used to render discrete values (#3363). If
|
|
@@ -9577,7 +9583,7 @@ const Vr = gP, { animObject: xP } = ri, { xAxis: If, yAxis: bP } = oP, { default
|
|
|
9577
9583
|
// the chances for a good fit.
|
|
9578
9584
|
t < 0.5 || l.tickAmount !== void 0
|
|
9579
9585
|
), !!l.tickAmount);
|
|
9580
|
-
Na(pd, { xAxis: If, yAxis: Ra(If,
|
|
9586
|
+
Na(pd, { xAxis: If, yAxis: Ra(If, yP) });
|
|
9581
9587
|
class Ol {
|
|
9582
9588
|
/* *
|
|
9583
9589
|
*
|
|
@@ -9605,8 +9611,8 @@ class Ol {
|
|
|
9605
9611
|
), o.setOptions(e);
|
|
9606
9612
|
const d = o.options, p = d.labels;
|
|
9607
9613
|
o.type ?? (o.type = d.type || "linear"), o.uniqueNames ?? (o.uniqueNames = d.uniqueNames ?? !0), Oe(o, "afterSetType"), o.userOptions = e, o.minPixelPadding = 0, o.reversed = Kt(d.reversed, o.reversed), o.visible = d.visible, o.zoomEnabled = d.zoomEnabled, o.hasNames = this.type === "category" || d.categories === !0, o.categories = Bf(d.categories) && d.categories || (o.hasNames ? [] : void 0), o.names || (o.names = [], o.names.keys = {}), o.plotLinesAndBandsGroups = {}, o.positiveValuesOnly = !!o.logarithmic, o.isLinked = Se(d.linkedTo), o.ticks = {}, o.labelEdge = [], o.minorTicks = {}, o.plotLinesAndBands = [], o.alternateBands = {}, o.len ?? (o.len = 0), o.minRange = o.userMinRange = d.minRange || d.maxZoom, o.range = d.range, o.offset = d.offset || 0, o.max = void 0, o.min = void 0;
|
|
9608
|
-
const f = Kt(d.crosshair,
|
|
9609
|
-
o.crosshair = f === !0 ? {} : f, t.axes.indexOf(o) === -1 && (n ? t.axes.splice(t.xAxis.length, 0, o) : t.axes.push(o),
|
|
9614
|
+
const f = Kt(d.crosshair, TP(t.options.tooltip.crosshairs)[n ? 0 : 1]);
|
|
9615
|
+
o.crosshair = f === !0 ? {} : f, t.axes.indexOf(o) === -1 && (n ? t.axes.splice(t.xAxis.length, 0, o) : t.axes.push(o), kP(this, t[this.coll])), t.orderItems(o.coll), o.series = o.series || [], t.inverted && !o.isZAxis && n && !Se(o.reversed) && (o.reversed = !0), o.labelRotation = zt(p.rotation) ? p.rotation : void 0, vP(o, d), Oe(this, "afterInit");
|
|
9610
9616
|
}
|
|
9611
9617
|
setOptions(t) {
|
|
9612
9618
|
const e = this.horiz ? (
|
|
@@ -9756,7 +9762,7 @@ class Ol {
|
|
|
9756
9762
|
], f && (k[2] = s ? s.log2lin(t.dataMin) : t.dataMin), h = Nf(k), y = [
|
|
9757
9763
|
h + d,
|
|
9758
9764
|
n.parse(e.max) ?? h + d
|
|
9759
|
-
], f && (y[2] = s ? s.log2lin(t.dataMax) : t.dataMax), o =
|
|
9765
|
+
], f && (y[2] = s ? s.log2lin(t.dataMax) : t.dataMax), o = SP(y), o - h < d && (k[0] = o - d, k[1] = n.parse(e.min) ?? o - d, h = Nf(k))), t.minRange = d, t.min = h, t.max = o;
|
|
9760
9766
|
}
|
|
9761
9767
|
getClosest() {
|
|
9762
9768
|
let t, e;
|
|
@@ -10029,7 +10035,7 @@ class Ol {
|
|
|
10029
10035
|
if (t.staggerLines || (zt(h) ? w = [h] : o < t.autoRotationLimit && (w = t.autoRotation)), w) {
|
|
10030
10036
|
let M, T;
|
|
10031
10037
|
for (const L of w)
|
|
10032
|
-
(L === h || L && L >= -90 && L <= 90) && (M = f(Math.abs(d / Math.sin(
|
|
10038
|
+
(L === h || L && L >= -90 && L <= 90) && (M = f(Math.abs(d / Math.sin(wP * L))), T = M + Math.abs(L / 360), T < y && (y = T, k = L, b = M));
|
|
10033
10039
|
}
|
|
10034
10040
|
} else
|
|
10035
10041
|
b = f(d * 0.75);
|
|
@@ -10188,7 +10194,7 @@ class Ol {
|
|
|
10188
10194
|
(!o || t >= n.min && t <= n.max || n.grid?.isColumn) && (h[t] || (h[t] = new Vr(n, t)), s && h[t].isNew && h[t].render(e, !0, -1), h[t].render(e));
|
|
10189
10195
|
}
|
|
10190
10196
|
render() {
|
|
10191
|
-
const t = this, e = t.chart, s = t.logarithmic, n = e.renderer, o = t.options, h = t.isLinked, d = t.tickPositions, p = t.axisTitle, f = t.ticks, b = t.minorTicks, k = t.alternateBands, y = o.stackLabels, w = o.alternateGridColor, M = o.crossing, T = t.tickmarkOffset, L = t.axisLine, E = t.showAxis, B =
|
|
10197
|
+
const t = this, e = t.chart, s = t.logarithmic, n = e.renderer, o = t.options, h = t.isLinked, d = t.tickPositions, p = t.axisTitle, f = t.ticks, b = t.minorTicks, k = t.alternateBands, y = o.stackLabels, w = o.alternateGridColor, M = o.crossing, T = t.tickmarkOffset, L = t.axisLine, E = t.showAxis, B = bP(n.globalAnimation);
|
|
10192
10198
|
let _, F;
|
|
10193
10199
|
if (t.labelEdge.length = 0, t.overlap = !1, [f, b, k].forEach(function(W) {
|
|
10194
10200
|
la(W, function(G) {
|
|
@@ -10226,7 +10232,7 @@ class Ol {
|
|
|
10226
10232
|
};
|
|
10227
10233
|
la(W, function(J, et) {
|
|
10228
10234
|
J.isActive || (J.render(et, !1, 0), J.isActive = !1, G.push(et));
|
|
10229
|
-
}),
|
|
10235
|
+
}), PP(H, W === k || !e.hasRendered || !$ ? 0 : $);
|
|
10230
10236
|
}), L && (L[L.isPlaced ? "animate" : "attr"]({
|
|
10231
10237
|
d: this.getLinePath(L.strokeWidth())
|
|
10232
10238
|
}), L.isPlaced = !0, L[E ? "show" : "hide"](E)), p && E && (p[p.isNew ? "attr" : "animate"](t.getTitlePosition(p)), p.isNew = !1), y?.enabled && t.stacking && t.stacking.renderStackTotals(), t.old = {
|
|
@@ -10250,8 +10256,8 @@ class Ol {
|
|
|
10250
10256
|
}
|
|
10251
10257
|
destroy(t) {
|
|
10252
10258
|
const e = this, s = e.plotLinesAndBands, n = this.eventOptions;
|
|
10253
|
-
if (Oe(this, "destroy", { keepEvents: t }), t ||
|
|
10254
|
-
|
|
10259
|
+
if (Oe(this, "destroy", { keepEvents: t }), t || AP(e), [e.ticks, e.minorTicks, e.alternateBands].forEach(function(o) {
|
|
10260
|
+
CP(o);
|
|
10255
10261
|
}), s) {
|
|
10256
10262
|
let o = s.length;
|
|
10257
10263
|
for (; o--; )
|
|
@@ -10301,7 +10307,7 @@ class Ol {
|
|
|
10301
10307
|
p = this.categories && !this.isRadial, f || (this.cross = f = o.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (p ? "category " : "thin ") + (s.className || "")).attr({
|
|
10302
10308
|
zIndex: Kt(s.zIndex, 2)
|
|
10303
10309
|
}).add(), o.styledMode || (f.attr({
|
|
10304
|
-
stroke: s.color || (p ?
|
|
10310
|
+
stroke: s.color || (p ? xs.parse(
|
|
10305
10311
|
"#ccd3ff"
|
|
10306
10312
|
/* Palette.highlightColor20 */
|
|
10307
10313
|
).setOpacity(0.25).get() : "#cccccc"),
|
|
@@ -10349,14 +10355,14 @@ Ol.keepProps = [
|
|
|
10349
10355
|
"userMax",
|
|
10350
10356
|
"userMin"
|
|
10351
10357
|
];
|
|
10352
|
-
const ud = Ol, { addEvent:
|
|
10358
|
+
const ud = Ol, { addEvent: LP, getMagnitude: OP, normalizeTickInterval: EP, timeUnits: ca } = Nt;
|
|
10353
10359
|
var fd;
|
|
10354
10360
|
(function(l) {
|
|
10355
10361
|
function t(o) {
|
|
10356
10362
|
if (!o.keepProps.includes("dateTime")) {
|
|
10357
10363
|
o.keepProps.push("dateTime");
|
|
10358
10364
|
const h = o.prototype;
|
|
10359
|
-
h.getTimeTicks = e,
|
|
10365
|
+
h.getTimeTicks = e, LP(o, "afterSetType", s);
|
|
10360
10366
|
}
|
|
10361
10367
|
return o;
|
|
10362
10368
|
}
|
|
@@ -10421,9 +10427,9 @@ var fd;
|
|
|
10421
10427
|
break;
|
|
10422
10428
|
}
|
|
10423
10429
|
b === ca.year && h < 5 * b && (k = [1, 2, 5]);
|
|
10424
|
-
const w =
|
|
10430
|
+
const w = EP(h / b, k, f[0] === "year" ? (
|
|
10425
10431
|
// #1913, #2360
|
|
10426
|
-
Math.max(
|
|
10432
|
+
Math.max(OP(h / b), 1)
|
|
10427
10433
|
) : 1);
|
|
10428
10434
|
return {
|
|
10429
10435
|
unitRange: b,
|
|
@@ -10439,7 +10445,7 @@ var fd;
|
|
|
10439
10445
|
}
|
|
10440
10446
|
l.Additions = n;
|
|
10441
10447
|
})(fd || (fd = {}));
|
|
10442
|
-
const
|
|
10448
|
+
const DP = fd, { addEvent: Ff, normalizeTickInterval: IP, pick: NP } = Nt;
|
|
10443
10449
|
var gd;
|
|
10444
10450
|
(function(l) {
|
|
10445
10451
|
function t(o) {
|
|
@@ -10484,7 +10490,7 @@ var gd;
|
|
|
10484
10490
|
F = b.log2lin(b.lin2log(E) * L[B]), F > d && (!f || W <= p) && typeof W < "u" && M.push(W), W > p && (G = !0), W = F;
|
|
10485
10491
|
} else {
|
|
10486
10492
|
const T = b.lin2log(d), L = b.lin2log(p), E = f ? k.getMinorTickInterval() : w.tickInterval, B = E === "auto" ? null : E, _ = w.tickPixelInterval / (f ? 5 : 1), F = f ? y / k.tickPositions.length : y;
|
|
10487
|
-
h =
|
|
10493
|
+
h = NP(B, b.minorAutoInterval, (L - T) * _ / (F || 1)), h = IP(h), M = k.getLinearTickPositions(h, T, L).map(b.log2lin), f || (b.minorAutoInterval = h / 5);
|
|
10488
10494
|
}
|
|
10489
10495
|
return f || (k.tickInterval = h), M;
|
|
10490
10496
|
}
|
|
@@ -10497,7 +10503,7 @@ var gd;
|
|
|
10497
10503
|
}
|
|
10498
10504
|
l.Additions = n;
|
|
10499
10505
|
})(gd || (gd = {}));
|
|
10500
|
-
const
|
|
10506
|
+
const RP = gd, { erase: _P, extend: BP, isNumber: Hf } = Nt;
|
|
10501
10507
|
var xd;
|
|
10502
10508
|
(function(l) {
|
|
10503
10509
|
let t;
|
|
@@ -10523,7 +10529,7 @@ var xd;
|
|
|
10523
10529
|
}
|
|
10524
10530
|
function o(b, k) {
|
|
10525
10531
|
const y = k.prototype;
|
|
10526
|
-
return y.addPlotBand || (t = b,
|
|
10532
|
+
return y.addPlotBand || (t = b, BP(y, {
|
|
10527
10533
|
addPlotBand: e,
|
|
10528
10534
|
addPlotLine: n,
|
|
10529
10535
|
addPlotBandOrLine: s,
|
|
@@ -10569,7 +10575,7 @@ var xd;
|
|
|
10569
10575
|
w.plotBands || []
|
|
10570
10576
|
].forEach(function(T) {
|
|
10571
10577
|
for (M = T.length; M--; )
|
|
10572
|
-
T[M]?.id === b &&
|
|
10578
|
+
T[M]?.id === b && _P(T, T[M]);
|
|
10573
10579
|
});
|
|
10574
10580
|
}
|
|
10575
10581
|
}
|
|
@@ -10577,7 +10583,7 @@ var xd;
|
|
|
10577
10583
|
this.removePlotBandOrLine(b);
|
|
10578
10584
|
}
|
|
10579
10585
|
})(xd || (xd = {}));
|
|
10580
|
-
const
|
|
10586
|
+
const zP = xd, { addEvent: jP, arrayMax: Wf, arrayMin: Yf, defined: es, destroyObjectProperties: FP, erase: HP, fireEvent: WP, merge: Gf, objectEach: YP, pick: GP } = Nt;
|
|
10581
10587
|
class rm {
|
|
10582
10588
|
/* *
|
|
10583
10589
|
*
|
|
@@ -10585,7 +10591,7 @@ class rm {
|
|
|
10585
10591
|
*
|
|
10586
10592
|
* */
|
|
10587
10593
|
static compose(t, e) {
|
|
10588
|
-
return
|
|
10594
|
+
return jP(t, "afterInit", function() {
|
|
10589
10595
|
this.labelCollectors.push(() => {
|
|
10590
10596
|
const s = [];
|
|
10591
10597
|
for (const n of this.axes)
|
|
@@ -10593,7 +10599,7 @@ class rm {
|
|
|
10593
10599
|
o && !h?.label?.allowOverlap && s.push(o);
|
|
10594
10600
|
return s;
|
|
10595
10601
|
});
|
|
10596
|
-
}),
|
|
10602
|
+
}), zP.compose(rm, e);
|
|
10597
10603
|
}
|
|
10598
10604
|
/* *
|
|
10599
10605
|
*
|
|
@@ -10610,14 +10616,14 @@ class rm {
|
|
|
10610
10616
|
* */
|
|
10611
10617
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
10612
10618
|
render() {
|
|
10613
|
-
|
|
10619
|
+
WP(this, "render");
|
|
10614
10620
|
const { axis: t, options: e } = this, { horiz: s, logarithmic: n } = t, { color: o, events: h, zIndex: d = 0 } = e, { renderer: p, time: f } = t.chart, b = {}, k = f.parse(e.to), y = f.parse(e.from), w = f.parse(e.value), M = e.borderWidth;
|
|
10615
10621
|
let T = e.label, { label: L, svgElem: E } = this, B = [], _;
|
|
10616
10622
|
const F = es(y) && es(k), W = es(w), G = !E, $ = {
|
|
10617
10623
|
class: "highcharts-plot-" + (F ? "band " : "line ") + (e.className || "")
|
|
10618
10624
|
};
|
|
10619
10625
|
let H = F ? "bands" : "lines";
|
|
10620
|
-
if (t.chart.styledMode || (W ? ($.stroke = o || "#999999", $["stroke-width"] =
|
|
10626
|
+
if (t.chart.styledMode || (W ? ($.stroke = o || "#999999", $["stroke-width"] = GP(e.width, 1), e.dashStyle && ($.dashstyle = e.dashStyle)) : F && ($.fill = o || "#e6e9ff", M && ($.stroke = e.borderColor, $["stroke-width"] = M))), b.zIndex = d, H += "-" + d, _ = t.plotLinesAndBandsGroups[H], _ || (t.plotLinesAndBandsGroups[H] = _ = p.g("plot-" + H).attr(b).add()), E || (this.svgElem = E = p.path().attr($).add(_)), es(w))
|
|
10621
10627
|
B = t.getPlotLinePath({
|
|
10622
10628
|
value: n?.log2lin(w) ?? w,
|
|
10623
10629
|
lineWidth: E.strokeWidth(),
|
|
@@ -10627,7 +10633,7 @@ class rm {
|
|
|
10627
10633
|
B = t.getPlotBandPath(n?.log2lin(y) ?? y, n?.log2lin(k) ?? k, e);
|
|
10628
10634
|
else
|
|
10629
10635
|
return;
|
|
10630
|
-
return !this.eventsAdded && h && (
|
|
10636
|
+
return !this.eventsAdded && h && (YP(h, (J, et) => {
|
|
10631
10637
|
E?.on(et, (it) => {
|
|
10632
10638
|
h[et].apply(this, [it]);
|
|
10633
10639
|
});
|
|
@@ -10671,10 +10677,10 @@ class rm {
|
|
|
10671
10677
|
return es(t.formatter) ? t.formatter.call(this) : t.text;
|
|
10672
10678
|
}
|
|
10673
10679
|
destroy() {
|
|
10674
|
-
|
|
10680
|
+
HP(this.axis.plotLinesAndBands, this), delete this.axis, FP(this);
|
|
10675
10681
|
}
|
|
10676
10682
|
}
|
|
10677
|
-
const gx = rm, { animObject:
|
|
10683
|
+
const gx = rm, { animObject: XP } = ri, { format: Xf } = Ni, { composed: VP, dateFormats: UP, doc: Vf, isSafari: $P } = Xt, { distribute: qP } = Pl, { addEvent: ZP, clamp: Hr, css: Uf, discardElement: KP, extend: QP, fireEvent: Mc, getAlignFactor: $f, isArray: JP, isNumber: tL, isObject: eL, isString: Ac, merge: iL, pick: Wr, pushUnique: sL, splat: Tc, syncTimeout: rL } = Nt;
|
|
10678
10684
|
class bd {
|
|
10679
10685
|
/* *
|
|
10680
10686
|
*
|
|
@@ -10707,7 +10713,7 @@ class bd {
|
|
|
10707
10713
|
return s = [t.headerFooterFormatter(e[0])], s = s.concat(t.bodyFormatter(e)), s.push(t.headerFooterFormatter(e[0], !0)), s;
|
|
10708
10714
|
}
|
|
10709
10715
|
destroy() {
|
|
10710
|
-
this.label && (this.label = this.label.destroy()), this.split && (this.cleanSplit(!0), this.tt && (this.tt = this.tt.destroy())), this.renderer && (this.renderer = this.renderer.destroy(),
|
|
10716
|
+
this.label && (this.label = this.label.destroy()), this.split && (this.cleanSplit(!0), this.tt && (this.tt = this.tt.destroy())), this.renderer && (this.renderer = this.renderer.destroy(), KP(this.container)), Nt.clearTimeout(this.hideTimer);
|
|
10711
10717
|
}
|
|
10712
10718
|
getAnchor(t, e) {
|
|
10713
10719
|
const { chart: s, pointer: n } = this, o = s.inverted, h = s.plotTop, d = s.plotLeft;
|
|
@@ -10814,7 +10820,7 @@ class bd {
|
|
|
10814
10820
|
let G = W("y"), $ = W("x"), H, J = !!s.negative;
|
|
10815
10821
|
!k && o.hoverSeries?.yAxis?.reversed && (J = !J);
|
|
10816
10822
|
const et = !this.followPointer && Wr(s.ttBelow, k ? !1 : !p === J), it = function(ft, ut, bt, Tt, It, Ht, pe) {
|
|
10817
|
-
const
|
|
10823
|
+
const me = h ? ft === "y" ? F(n) : _(n) : n, Et = (bt - Tt) / 2, jt = Tt < It - n, Ct = It + n + Tt < ut, Pt = It - me - bt + Et, Vt = It + me - Et;
|
|
10818
10824
|
if (et && Ct)
|
|
10819
10825
|
M[ft] = Vt;
|
|
10820
10826
|
else if (!et && jt)
|
|
@@ -10845,7 +10851,7 @@ class bd {
|
|
|
10845
10851
|
}
|
|
10846
10852
|
hide(t) {
|
|
10847
10853
|
const e = this;
|
|
10848
|
-
Nt.clearTimeout(this.hideTimer), t = Wr(t, this.options.hideDelay), this.isHidden || (this.hideTimer =
|
|
10854
|
+
Nt.clearTimeout(this.hideTimer), t = Wr(t, this.options.hideDelay), this.isHidden || (this.hideTimer = rL(function() {
|
|
10849
10855
|
const s = e.getLabel();
|
|
10850
10856
|
e.getLabel().animate({
|
|
10851
10857
|
opacity: 0
|
|
@@ -10864,7 +10870,7 @@ class bd {
|
|
|
10864
10870
|
return !!(!this.followPointer && this.options.stickOnContact && (!t || this.pointer.inClass(t.target, "highcharts-tooltip")));
|
|
10865
10871
|
}
|
|
10866
10872
|
move(t, e, s, n) {
|
|
10867
|
-
const { followPointer: o, options: h } = this, d =
|
|
10873
|
+
const { followPointer: o, options: h } = this, d = XP(!o && !this.isHidden && !h.fixed && h.animation), p = o || (this.len || 0) > 1, f = { x: t, y: e };
|
|
10868
10874
|
p ? f.anchorX = f.anchorY = NaN : (f.anchorX = s, f.anchorY = n), d.step = () => this.drawTracker(), this.getLabel().animate(f, d);
|
|
10869
10875
|
}
|
|
10870
10876
|
refresh(t, e) {
|
|
@@ -10872,7 +10878,7 @@ class bd {
|
|
|
10872
10878
|
let w = s.allowShared;
|
|
10873
10879
|
if (!o.enabled || !f.series)
|
|
10874
10880
|
return;
|
|
10875
|
-
Nt.clearTimeout(this.hideTimer), s.allowShared = !(!
|
|
10881
|
+
Nt.clearTimeout(this.hideTimer), s.allowShared = !(!JP(t) && t.series && t.series.noSharedTooltip), w = w && !s.allowShared, s.followPointer = !s.split && f.series.tooltipOptions.followPointer;
|
|
10876
10882
|
const M = s.getAnchor(t, e), T = M[0], L = M[1];
|
|
10877
10883
|
d && s.allowShared && (h.applyInactiveState(p), p.forEach((_) => _.setState("hover")), f.points = p), this.len = p.length;
|
|
10878
10884
|
const E = Ac(b) ? Xf(b, f, n) : k.call(f, s);
|
|
@@ -11004,11 +11010,11 @@ class bd {
|
|
|
11004
11010
|
return Ct < W.left && Ct + Et.boxWidth < W.right ? !0 : Ct < J - W.left + Et.boxWidth && W.right - Ct > Ct;
|
|
11005
11011
|
}) && (Tt = Tt.map((Et) => {
|
|
11006
11012
|
const { x: jt, y: Ct } = ut.call(this, Et.boxWidth, Et.size, Et.point, [Et.anchorX, Et.anchorY], !1);
|
|
11007
|
-
return
|
|
11013
|
+
return QP(Et, {
|
|
11008
11014
|
target: Ct,
|
|
11009
11015
|
x: jt
|
|
11010
11016
|
});
|
|
11011
|
-
})), s.cleanSplit(),
|
|
11017
|
+
})), s.cleanSplit(), qP(Tt, pt);
|
|
11012
11018
|
const It = {
|
|
11013
11019
|
left: J,
|
|
11014
11020
|
right: J
|
|
@@ -11035,12 +11041,12 @@ class bd {
|
|
|
11035
11041
|
}
|
|
11036
11042
|
Et.tt.attr(_t);
|
|
11037
11043
|
});
|
|
11038
|
-
const { container: Ht, outside: pe, renderer:
|
|
11039
|
-
if (pe && Ht &&
|
|
11044
|
+
const { container: Ht, outside: pe, renderer: me } = s;
|
|
11045
|
+
if (pe && Ht && me) {
|
|
11040
11046
|
const { width: Et, height: jt, x: Ct, y: Pt } = G.getBBox();
|
|
11041
|
-
|
|
11047
|
+
me.setSize(Et + Ct, jt + Pt, !1), Ht.style.left = It.left + "px", Ht.style.top = et + "px";
|
|
11042
11048
|
}
|
|
11043
|
-
|
|
11049
|
+
$P && G.attr({
|
|
11044
11050
|
// Force a redraw of the whole group by chaining the opacity
|
|
11045
11051
|
// slightly
|
|
11046
11052
|
opacity: G.opacity === 1 ? 0.999 : 1
|
|
@@ -11075,10 +11081,10 @@ class bd {
|
|
|
11075
11081
|
};
|
|
11076
11082
|
let p = n.xDateFormat || "", f = n[e ? "footerFormat" : "headerFormat"];
|
|
11077
11083
|
return Mc(this, "headerFormatter", d, function(b) {
|
|
11078
|
-
if (h && !p &&
|
|
11079
|
-
if (
|
|
11084
|
+
if (h && !p && tL(t.key) && (p = h.getXDateFormat(t.key, n.dateTimeLabelFormats)), h && p) {
|
|
11085
|
+
if (eL(p)) {
|
|
11080
11086
|
const k = p;
|
|
11081
|
-
|
|
11087
|
+
UP[0] = (y) => s.chart.time.dateFormat(k, y), p = "%0";
|
|
11082
11088
|
}
|
|
11083
11089
|
(t.tooltipDateKeys || ["key"]).forEach((k) => {
|
|
11084
11090
|
f = f.replace(new RegExp("point\\." + k + "([ \\)}])"), `(point.${k}:${p})$1`);
|
|
@@ -11088,7 +11094,7 @@ class bd {
|
|
|
11088
11094
|
}), d.text || "";
|
|
11089
11095
|
}
|
|
11090
11096
|
update(t) {
|
|
11091
|
-
this.destroy(), this.init(this.chart,
|
|
11097
|
+
this.destroy(), this.init(this.chart, iL(!0, this.options, t));
|
|
11092
11098
|
}
|
|
11093
11099
|
updatePosition(t) {
|
|
11094
11100
|
const { chart: e, container: s, distance: n, options: o, pointer: h, renderer: d } = this, p = this.getLabel(), { height: f = 0, width: b = 0 } = p, { fixed: k, positioner: y } = o, { left: w, top: M, scaleX: T, scaleY: L } = h.getChartPosition(), E = (y || k && this.getFixedPosition || this.getPosition).call(this, b, f, t), B = Xt.doc;
|
|
@@ -11119,14 +11125,14 @@ class bd {
|
|
|
11119
11125
|
}
|
|
11120
11126
|
(function(l) {
|
|
11121
11127
|
function t(e) {
|
|
11122
|
-
|
|
11128
|
+
sL(VP, "Core.Tooltip") && ZP(e, "afterInit", function() {
|
|
11123
11129
|
const s = this.chart;
|
|
11124
11130
|
s.options.tooltip && (s.tooltip = new l(s, s.options.tooltip, this));
|
|
11125
11131
|
});
|
|
11126
11132
|
}
|
|
11127
11133
|
l.compose = t;
|
|
11128
11134
|
})(bd || (bd = {}));
|
|
11129
|
-
const xx = bd, { animObject:
|
|
11135
|
+
const xx = bd, { animObject: nL } = ri, { defaultOptions: oL } = Ii, { format: aL } = Ni, { addEvent: lL, crisp: hL, erase: cL, extend: da, fireEvent: Pc, getNestedProperty: dL, isArray: mL, isFunction: pL, isNumber: _s, isObject: ma, merge: qf, pick: Bs, syncTimeout: uL, removeEvent: Zf, uniqueKey: fL } = Nt;
|
|
11130
11136
|
class Gn {
|
|
11131
11137
|
/* *
|
|
11132
11138
|
*
|
|
@@ -11157,12 +11163,12 @@ class Gn {
|
|
|
11157
11163
|
}
|
|
11158
11164
|
destroy() {
|
|
11159
11165
|
if (!this.destroyed) {
|
|
11160
|
-
const t = this, e = t.series, s = e.chart, n = e.options.dataSorting, o = s.hoverPoints, h = t.series.chart.renderer.globalAnimation, d =
|
|
11166
|
+
const t = this, e = t.series, s = e.chart, n = e.options.dataSorting, o = s.hoverPoints, h = t.series.chart.renderer.globalAnimation, d = nL(h), p = () => {
|
|
11161
11167
|
(t.graphic || t.graphics || t.dataLabel || t.dataLabels) && (Zf(t), t.destroyElements());
|
|
11162
11168
|
for (const f in t)
|
|
11163
11169
|
delete t[f];
|
|
11164
11170
|
};
|
|
11165
|
-
t.legendItem && s.legend.destroyItem(t), o && (t.setState(),
|
|
11171
|
+
t.legendItem && s.legend.destroyItem(t), o && (t.setState(), cL(o, t), o.length || (s.hoverPoints = null)), t === s.hoverPoint && t.onMouseOut(), n?.enabled ? (this.animateBeforeDestroy(), uL(p, d.duration)) : p(), s.pointCount--;
|
|
11166
11172
|
}
|
|
11167
11173
|
this.destroyed = !0;
|
|
11168
11174
|
}
|
|
@@ -11205,7 +11211,7 @@ class Gn {
|
|
|
11205
11211
|
}
|
|
11206
11212
|
getNestedProperty(t) {
|
|
11207
11213
|
if (t)
|
|
11208
|
-
return t.indexOf("custom.") === 0 ?
|
|
11214
|
+
return t.indexOf("custom.") === 0 ? dL(t, this.options) : this[t];
|
|
11209
11215
|
}
|
|
11210
11216
|
getZone() {
|
|
11211
11217
|
const t = this.series, e = t.zones, s = t.zoneAxis || "y";
|
|
@@ -11219,7 +11225,7 @@ class Gn {
|
|
|
11219
11225
|
return (t.graphic && (t.graphic.symbolName || t.graphic.element.nodeName)) !== this.shapeType;
|
|
11220
11226
|
}
|
|
11221
11227
|
constructor(t, e, s) {
|
|
11222
|
-
this.formatPrefix = "point", this.visible = !0, this.point = this, this.series = t, this.applyOptions(e, s), this.id ?? (this.id =
|
|
11228
|
+
this.formatPrefix = "point", this.visible = !0, this.point = this, this.series = t, this.applyOptions(e, s), this.id ?? (this.id = fL()), this.resolveColor(), this.dataLabelOnNull ?? (this.dataLabelOnNull = t.options.nullInteraction), t.chart.pointCount++, Pc(this, "afterInit");
|
|
11223
11229
|
}
|
|
11224
11230
|
isValid() {
|
|
11225
11231
|
return (_s(this.x) || this.x instanceof Date) && _s(this.y);
|
|
@@ -11229,7 +11235,7 @@ class Gn {
|
|
|
11229
11235
|
let h = {}, d, p = 0, f = 0;
|
|
11230
11236
|
if (_s(t) || t === null)
|
|
11231
11237
|
h[n[0]] = t;
|
|
11232
|
-
else if (
|
|
11238
|
+
else if (mL(t))
|
|
11233
11239
|
for (!s && t.length > o && (d = typeof t[0], d === "string" ? e.xAxis?.dateTime ? h.x = e.chart.time.parse(t[0]) : h.name = t[0] : d === "number" && (h.x = t[0]), p++); f < o; )
|
|
11234
11240
|
(!s || typeof t[p] < "u") && (n[f].indexOf(".") > 0 ? Gn.prototype.setNestedProperty(h, t[p], n[f]) : h[n[f]] = t[p]), p++, f++;
|
|
11235
11241
|
else typeof t == "object" && (h = t, t.dataLabels && (e.hasDataLabels = () => !0), t.marker && (e._hasPointMarkers = !0));
|
|
@@ -11261,7 +11267,7 @@ class Gn {
|
|
|
11261
11267
|
const { chart: e, pointArrayMap: s = ["y"], tooltipOptions: n } = this.series, { valueDecimals: o = "", valuePrefix: h = "", valueSuffix: d = "" } = n;
|
|
11262
11268
|
return e.styledMode && (t = e.tooltip?.styledModeFormat(t) || t), s.forEach((p) => {
|
|
11263
11269
|
p = "{point." + p, (h || d) && (t = t.replace(RegExp(p + "}", "g"), h + p + "}" + d)), t = t.replace(RegExp(p + "}", "g"), p + ":,." + o + "f}");
|
|
11264
|
-
}),
|
|
11270
|
+
}), aL(t, this, e);
|
|
11265
11271
|
}
|
|
11266
11272
|
update(t, e, s, n) {
|
|
11267
11273
|
const o = this, h = o.series, d = o.graphic, p = h.chart, f = h.options;
|
|
@@ -11306,13 +11312,13 @@ class Gn {
|
|
|
11306
11312
|
}
|
|
11307
11313
|
manageEvent(t) {
|
|
11308
11314
|
const e = this, s = qf(e.series.options.point, e.options), n = s.events?.[t];
|
|
11309
|
-
|
|
11315
|
+
pL(n) && (!e.hcEvents?.[t] || // Some HC modules, like marker-clusters, draggable-poins etc.
|
|
11310
11316
|
// use events in their logic, so we need to be sure, that
|
|
11311
11317
|
// callback function is different
|
|
11312
|
-
e.hcEvents?.[t]?.map((o) => o.fn).indexOf(n) === -1) ? (e.importedUserEvent?.(), e.importedUserEvent =
|
|
11318
|
+
e.hcEvents?.[t]?.map((o) => o.fn).indexOf(n) === -1) ? (e.importedUserEvent?.(), e.importedUserEvent = lL(e, t, n), e.hcEvents && (e.hcEvents[t].userEvent = !0)) : e.importedUserEvent && !n && e.hcEvents?.[t] && e.hcEvents?.[t].userEvent && (Zf(e, t), delete e.hcEvents[t], Object.keys(e.hcEvents) || delete e.importedUserEvent);
|
|
11313
11319
|
}
|
|
11314
11320
|
setState(t, e) {
|
|
11315
|
-
const s = this, n = s.series, o = s.state, h = n.options.states[t || "normal"] || {}, d =
|
|
11321
|
+
const s = this, n = s.series, o = s.state, h = n.options.states[t || "normal"] || {}, d = oL.plotOptions[n.type].marker && n.options.marker, p = d && d.enabled === !1, f = d?.states?.[t || "normal"] || {}, b = f.enabled === !1, k = s.marker || {}, y = n.chart, w = d && n.markerAttribs;
|
|
11316
11322
|
let M = n.halo, T, L, E, B = n.stateMarkerGraphic, _;
|
|
11317
11323
|
if (t = t || "", // Already has this state
|
|
11318
11324
|
t === s.state && !e || // Selected points don't respond to hover
|
|
@@ -11361,10 +11367,10 @@ class Gn {
|
|
|
11361
11367
|
}
|
|
11362
11368
|
haloPath(t) {
|
|
11363
11369
|
const e = this.pos();
|
|
11364
|
-
return e ? this.series.chart.renderer.symbols.circle(
|
|
11370
|
+
return e ? this.series.chart.renderer.symbols.circle(hL(e[0], 1) - t, e[1] - t, t * 2, t * 2) : [];
|
|
11365
11371
|
}
|
|
11366
11372
|
}
|
|
11367
|
-
const Gs = Gn, { parse:
|
|
11373
|
+
const Gs = Gn, { parse: gL } = xs, { charts: Lc, composed: xL, isTouchDevice: bL } = Xt, { addEvent: Oi, attr: yL, css: Oc, extend: Ec, find: Kf, fireEvent: zs, isNumber: pa, isObject: ua, objectEach: vL, offset: wL, pick: is, pushUnique: SL, splat: Qf } = Nt;
|
|
11368
11374
|
class Qe {
|
|
11369
11375
|
/* *
|
|
11370
11376
|
*
|
|
@@ -11384,7 +11390,7 @@ class Qe {
|
|
|
11384
11390
|
}
|
|
11385
11391
|
destroy() {
|
|
11386
11392
|
const t = this;
|
|
11387
|
-
this.eventsToUnbind.forEach((e) => e()), this.eventsToUnbind = [], Xt.chartCount || (Qe.unbindDocumentMouseUp.forEach((e) => e.unbind()), Qe.unbindDocumentMouseUp.length = 0, Qe.unbindDocumentTouchEnd && (Qe.unbindDocumentTouchEnd = Qe.unbindDocumentTouchEnd())), clearInterval(t.tooltipTimeout),
|
|
11393
|
+
this.eventsToUnbind.forEach((e) => e()), this.eventsToUnbind = [], Xt.chartCount || (Qe.unbindDocumentMouseUp.forEach((e) => e.unbind()), Qe.unbindDocumentMouseUp.length = 0, Qe.unbindDocumentTouchEnd && (Qe.unbindDocumentTouchEnd = Qe.unbindDocumentTouchEnd())), clearInterval(t.tooltipTimeout), vL(t, function(e, s) {
|
|
11388
11394
|
t[s] = void 0;
|
|
11389
11395
|
});
|
|
11390
11396
|
}
|
|
@@ -11412,7 +11418,7 @@ class Qe {
|
|
|
11412
11418
|
class: "highcharts-selection-marker",
|
|
11413
11419
|
zIndex: 7
|
|
11414
11420
|
}).add(), e.styledMode || E.attr({
|
|
11415
|
-
fill: d ||
|
|
11421
|
+
fill: d || gL(
|
|
11416
11422
|
"#334eff"
|
|
11417
11423
|
/* Palette.highlightColor80 */
|
|
11418
11424
|
).setOpacity(0.25).get()
|
|
@@ -11489,7 +11495,7 @@ class Qe {
|
|
|
11489
11495
|
getChartPosition() {
|
|
11490
11496
|
if (this.chartPosition)
|
|
11491
11497
|
return this.chartPosition;
|
|
11492
|
-
const { container: t } = this.chart, e =
|
|
11498
|
+
const { container: t } = this.chart, e = wL(t);
|
|
11493
11499
|
this.chartPosition = {
|
|
11494
11500
|
left: e.left,
|
|
11495
11501
|
top: e.top,
|
|
@@ -11558,7 +11564,7 @@ class Qe {
|
|
|
11558
11564
|
inClass(t, e) {
|
|
11559
11565
|
let s = t, n;
|
|
11560
11566
|
for (; s; ) {
|
|
11561
|
-
if (n =
|
|
11567
|
+
if (n = yL(s, "class"), n) {
|
|
11562
11568
|
if (n.indexOf(e) !== -1)
|
|
11563
11569
|
return !0;
|
|
11564
11570
|
if (n.indexOf("highcharts-container") !== -1)
|
|
@@ -11712,7 +11718,7 @@ class Qe {
|
|
|
11712
11718
|
this.eventsToUnbind.push(Oi(t, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 }), Oi(t, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), Qe.unbindDocumentTouchEnd || (Qe.unbindDocumentTouchEnd = Oi(e, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })), this.setPointerCapture(), Oi(this.chart, "redraw", this.setPointerCapture.bind(this));
|
|
11713
11719
|
}
|
|
11714
11720
|
setPointerCapture() {
|
|
11715
|
-
if (!
|
|
11721
|
+
if (!bL)
|
|
11716
11722
|
return;
|
|
11717
11723
|
const t = this, e = t.pointerCaptureEventsToUnbind, s = t.chart, n = s.container, o = is(s.options.tooltip?.followTouchMove, !0), h = o && s.series.some((d) => d.options.findNearestPointBy.indexOf("y") > -1);
|
|
11718
11724
|
!t.hasPointerCapture && h ? (e.push(Oi(n, "pointerdown", (d) => {
|
|
@@ -11753,7 +11759,7 @@ class Qe {
|
|
|
11753
11759
|
Qe.unbindDocumentMouseUp = [];
|
|
11754
11760
|
(function(l) {
|
|
11755
11761
|
function t(e) {
|
|
11756
|
-
|
|
11762
|
+
SL(xL, "Core.Pointer") && Oi(e, "beforeRender", function() {
|
|
11757
11763
|
this.pointer = new l(this, this.options);
|
|
11758
11764
|
});
|
|
11759
11765
|
}
|
|
@@ -11780,8 +11786,8 @@ var yd;
|
|
|
11780
11786
|
}
|
|
11781
11787
|
l.splice = e;
|
|
11782
11788
|
})(yd || (yd = {}));
|
|
11783
|
-
const
|
|
11784
|
-
class
|
|
11789
|
+
const CL = yd, { setLength: kL, splice: Jf } = CL, { fireEvent: Dc, objectEach: Dn, uniqueKey: In } = Nt;
|
|
11790
|
+
class ML {
|
|
11785
11791
|
constructor(t = {}) {
|
|
11786
11792
|
this.autoId = !t.id, this.columns = {}, this.id = t.id || In(), this.modified = this, this.rowCount = 0, this.versionTag = In();
|
|
11787
11793
|
let e = 0;
|
|
@@ -11796,7 +11802,7 @@ class kL {
|
|
|
11796
11802
|
* */
|
|
11797
11803
|
applyRowCount(t) {
|
|
11798
11804
|
this.rowCount = t, Dn(this.columns, (e, s) => {
|
|
11799
|
-
e.length !== t && (this.columns[s] =
|
|
11805
|
+
e.length !== t && (this.columns[s] = kL(e, t));
|
|
11800
11806
|
});
|
|
11801
11807
|
}
|
|
11802
11808
|
deleteRows(t, e = 1) {
|
|
@@ -11834,7 +11840,7 @@ class kL {
|
|
|
11834
11840
|
}), h > this.rowCount && this.applyRowCount(h), n?.silent || (Dc(this, "afterSetRows"), this.versionTag = In());
|
|
11835
11841
|
}
|
|
11836
11842
|
}
|
|
11837
|
-
const _a =
|
|
11843
|
+
const _a = ML, { extend: AL, merge: TL, pick: tg } = Nt;
|
|
11838
11844
|
var vd;
|
|
11839
11845
|
(function(l) {
|
|
11840
11846
|
function t(n, o) {
|
|
@@ -11861,10 +11867,10 @@ var vd;
|
|
|
11861
11867
|
}
|
|
11862
11868
|
if (F && F.enabled !== !1 && k) {
|
|
11863
11869
|
let G = Math.min(tg(F.radius, M), M);
|
|
11864
|
-
w.indexOf("url") === 0 && (F =
|
|
11870
|
+
w.indexOf("url") === 0 && (F = TL(F, {
|
|
11865
11871
|
width: y,
|
|
11866
11872
|
height: y
|
|
11867
|
-
}), G = 0), d.symbol = _ = T.symbol(w, k / 2 - G, E - G, 2 * G, 2 * G,
|
|
11873
|
+
}), G = 0), d.symbol = _ = T.symbol(w, k / 2 - G, E - G, 2 * G, 2 * G, AL({ context: "legend" }, F)).addClass("highcharts-point").add(L), _.isMarker = !0;
|
|
11868
11874
|
}
|
|
11869
11875
|
}
|
|
11870
11876
|
l.lineMarker = e;
|
|
@@ -11883,7 +11889,7 @@ var vd;
|
|
|
11883
11889
|
}
|
|
11884
11890
|
l.rectangle = s;
|
|
11885
11891
|
})(vd || (vd = {}));
|
|
11886
|
-
const yx = vd,
|
|
11892
|
+
const yx = vd, PL = {
|
|
11887
11893
|
// Base series options
|
|
11888
11894
|
lineWidth: 2,
|
|
11889
11895
|
allowPointSelect: !1,
|
|
@@ -11979,7 +11985,7 @@ const yx = vd, TL = {
|
|
|
11979
11985
|
stickyTracking: !0,
|
|
11980
11986
|
turboThreshold: 1e3,
|
|
11981
11987
|
findNearestPointBy: "x"
|
|
11982
|
-
},
|
|
11988
|
+
}, LL = PL, { defaultOptions: eg } = Ii, { extend: OL, extendClass: EL, merge: DL } = Nt;
|
|
11983
11989
|
var wd;
|
|
11984
11990
|
(function(l) {
|
|
11985
11991
|
l.seriesTypes = Xt.seriesTypes;
|
|
@@ -11990,18 +11996,18 @@ var wd;
|
|
|
11990
11996
|
l.registerSeriesType = t;
|
|
11991
11997
|
function e(s, n, o, h, d) {
|
|
11992
11998
|
const p = eg.plotOptions || {};
|
|
11993
|
-
n = n || "", p[s] =
|
|
11994
|
-
const f = l.seriesTypes[n] || Ci, b =
|
|
11999
|
+
n = n || "", p[s] = DL(p[n], o), delete l.seriesTypes[s];
|
|
12000
|
+
const f = l.seriesTypes[n] || Ci, b = EL(f, h);
|
|
11995
12001
|
if (t(s, b), l.seriesTypes[s].prototype.type = s, d) {
|
|
11996
12002
|
class k extends Gs {
|
|
11997
12003
|
}
|
|
11998
|
-
|
|
12004
|
+
OL(k.prototype, d), l.seriesTypes[s].prototype.pointClass = k;
|
|
11999
12005
|
}
|
|
12000
12006
|
return l.seriesTypes[s];
|
|
12001
12007
|
}
|
|
12002
12008
|
l.seriesType = e;
|
|
12003
12009
|
})(wd || (wd = {}));
|
|
12004
|
-
const ze = wd, { animObject: ig, setAnimation:
|
|
12010
|
+
const ze = wd, { animObject: ig, setAnimation: IL } = ri, { defaultOptions: fa } = Ii, { registerEventOptions: NL } = Ll, { svg: RL, win: _L } = Xt, { seriesTypes: Yr } = ze, { format: BL } = Ni, { arrayMax: Ic, arrayMin: sg, clamp: rg, correctFloat: ng, crisp: zL, defined: Ue, destroyObjectProperties: jL, diffObjects: FL, erase: og, error: ga, extend: Xr, find: HL, fireEvent: Ee, getClosestDistance: WL, getNestedProperty: ag, insertItem: lg, isArray: hg, isNumber: Ke, isString: YL, merge: Nn, objectEach: Nc, pick: De, removeEvent: GL, syncTimeout: cg } = Nt;
|
|
12005
12011
|
let Us = class Sd {
|
|
12006
12012
|
constructor() {
|
|
12007
12013
|
this.zoneAxis = "y";
|
|
@@ -12024,7 +12030,7 @@ let Us = class Sd {
|
|
|
12024
12030
|
// True by default
|
|
12025
12031
|
selected: o.selected === !0
|
|
12026
12032
|
// False by default
|
|
12027
|
-
}),
|
|
12033
|
+
}), NL(this, o), (o.events?.click || o.point?.events?.click || o.allowPointSelect) && (t.runTrackerClick = !0), s.getColor(), s.getSymbol(), s.isCartesian && (t.hasCartesianSeries = !0);
|
|
12028
12034
|
let p;
|
|
12029
12035
|
n.length && (p = n[n.length - 1]), s._i = De(p?._i, -1) + 1, s.opacity = s.options.opacity, t.orderItems("series", lg(this, n)), o.dataSorting?.enabled ? s.setDataSortingOptions() : !s.points && !s.data && s.setData(o.data, !1), Ee(this, "afterInit");
|
|
12030
12036
|
}
|
|
@@ -12114,7 +12120,7 @@ let Us = class Sd {
|
|
|
12114
12120
|
}), Ee(this, "afterSetOptions", { options: T }), T;
|
|
12115
12121
|
}
|
|
12116
12122
|
getName() {
|
|
12117
|
-
return this.options.name ??
|
|
12123
|
+
return this.options.name ?? BL(this.chart.options.lang.seriesName, this, this.chart);
|
|
12118
12124
|
}
|
|
12119
12125
|
getCyclic(t, e, s) {
|
|
12120
12126
|
const n = this.chart, o = `${t}Index`, h = `${t}Counter`, d = (
|
|
@@ -12146,7 +12152,7 @@ let Us = class Sd {
|
|
|
12146
12152
|
k instanceof Gs && (p = k);
|
|
12147
12153
|
} else if (this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) {
|
|
12148
12154
|
let k = (y) => !y.touched && y.index === t.index;
|
|
12149
|
-
if (h?.matchByName ? k = (y) => !y.touched && y.name === t.name : this.options.relativeXValue && (k = (y) => !y.touched && y.options.x === t.x), p =
|
|
12155
|
+
if (h?.matchByName ? k = (y) => !y.touched && y.name === t.name : this.options.relativeXValue && (k = (y) => !y.touched && y.options.x === t.x), p = HL(o, k), !p)
|
|
12150
12156
|
return;
|
|
12151
12157
|
}
|
|
12152
12158
|
return p && (b = p?.index, typeof b < "u" && (f = !0)), typeof b > "u" && Ke(n) && (b = this.getColumn("x").indexOf(n, e)), b !== -1 && typeof b < "u" && this.cropped && (b = b >= d ? b - d : b), !f && Ke(b) && o[b]?.touched && (b = void 0), b;
|
|
@@ -12232,7 +12238,7 @@ let Us = class Sd {
|
|
|
12232
12238
|
}
|
|
12233
12239
|
w.setColumns(et);
|
|
12234
12240
|
}
|
|
12235
|
-
for (
|
|
12241
|
+
for (YL(this.getColumn("y")[0]) && ga(14, !0, f), o.data = [], o.options.data = o.userOptions.data = t, _ = d; _--; )
|
|
12236
12242
|
h[_]?.destroy();
|
|
12237
12243
|
k && (k.minRange = k.userMinRange), o.isDirty = f.isDirtyBox = !0, o.isDirtyData = !!h, s = !1;
|
|
12238
12244
|
}
|
|
@@ -12266,7 +12272,7 @@ let Us = class Sd {
|
|
|
12266
12272
|
// Don't understand why this condition is needed
|
|
12267
12273
|
e.getColumn(e.pointValKey || "y").length && (E[0] < T || E[b - 1] > L) && (k = this.cropData(s, T, L), B = k.modified, w = k.start, y = !0)
|
|
12268
12274
|
))), E = B.getColumn("x") || [];
|
|
12269
|
-
const F =
|
|
12275
|
+
const F = WL(
|
|
12270
12276
|
[
|
|
12271
12277
|
f ? E.map(f.log2lin) : E
|
|
12272
12278
|
],
|
|
@@ -12476,7 +12482,7 @@ let Us = class Sd {
|
|
|
12476
12482
|
let p, f, b = De(o.radius, n?.radius);
|
|
12477
12483
|
e && (p = n.states[e], f = o.states && o.states[e], b = De(f?.radius, p?.radius, b && b + (p?.radiusPlus || 0))), t.hasImage = h && h.indexOf("url") === 0, t.hasImage && (b = 0);
|
|
12478
12484
|
const k = t.pos();
|
|
12479
|
-
return Ke(b) && k && (s.crisp && (k[0] =
|
|
12485
|
+
return Ke(b) && k && (s.crisp && (k[0] = zL(k[0], t.hasImage ? 0 : h === "rect" ? (
|
|
12480
12486
|
// Rectangle symbols need crisp edges, others don't
|
|
12481
12487
|
n?.lineWidth || 0
|
|
12482
12488
|
) : 1)), d.x = k[0] - b, d.y = k[1] - b), b && (d.width = d.height = 2 * b), d;
|
|
@@ -12492,14 +12498,14 @@ let Us = class Sd {
|
|
|
12492
12498
|
};
|
|
12493
12499
|
}
|
|
12494
12500
|
destroy(t) {
|
|
12495
|
-
const e = this, s = e.chart, n = /AppleWebKit\/533/.test(
|
|
12501
|
+
const e = this, s = e.chart, n = /AppleWebKit\/533/.test(_L.navigator.userAgent), o = e.data || [];
|
|
12496
12502
|
let h, d, p;
|
|
12497
12503
|
for (Ee(e, "destroy", { keepEventsForUpdate: t }), this.removeEvents(t), (e.axisTypes || []).forEach(function(f) {
|
|
12498
12504
|
p = e[f], p?.series && (og(p.series, e), p.isDirty = p.forceRedraw = !0);
|
|
12499
12505
|
}), e.legendItem && e.chart.legend.destroyItem(e), d = o.length; d--; )
|
|
12500
12506
|
o[d]?.destroy?.();
|
|
12501
12507
|
for (const f of e.zones)
|
|
12502
|
-
|
|
12508
|
+
jL(f, void 0, !0);
|
|
12503
12509
|
Nt.clearTimeout(e.animationTimeout), Nc(e, function(f, b) {
|
|
12504
12510
|
f instanceof rs && !f.survive && (h = n && b === "group" ? "hide" : "destroy", f[h]());
|
|
12505
12511
|
}), s.hoverSeries === e && (s.hoverSeries = void 0), og(s.series, e), s.orderItems("series"), Nc(e, function(f, b) {
|
|
@@ -12593,7 +12599,7 @@ let Us = class Sd {
|
|
|
12593
12599
|
}
|
|
12594
12600
|
removeEvents(t) {
|
|
12595
12601
|
const { eventsToUnbind: e } = this;
|
|
12596
|
-
t ||
|
|
12602
|
+
t || GL(this), e.length && (e.forEach((s) => {
|
|
12597
12603
|
s();
|
|
12598
12604
|
}), e.length = 0);
|
|
12599
12605
|
}
|
|
@@ -12680,7 +12686,7 @@ let Us = class Sd {
|
|
|
12680
12686
|
drawTracker() {
|
|
12681
12687
|
const t = this, e = t.options, s = e.trackByArea, n = [].concat((s ? t.areaPath : t.graphPath) || []), o = t.chart, h = o.pointer, d = o.renderer, p = o.options.tooltip?.snap || 0, f = () => {
|
|
12682
12688
|
e.enableMouseTracking && o.hoverSeries !== t && t.onMouseOver();
|
|
12683
|
-
}, b = "rgba(192,192,192," + (
|
|
12689
|
+
}, b = "rgba(192,192,192," + (RL ? 1e-4 : 2e-3) + ")";
|
|
12684
12690
|
let k = t.tracker;
|
|
12685
12691
|
k ? k.attr({ d: n }) : t.graph && (t.tracker = k = d.path(n).attr({
|
|
12686
12692
|
visibility: t.visible ? "inherit" : "hidden",
|
|
@@ -12732,7 +12738,7 @@ let Us = class Sd {
|
|
|
12732
12738
|
k.splice(t, 1);
|
|
12733
12739
|
}), p.deleteRows(t), f?.destroy(), n.isDirty = !0, n.isDirtyData = !0, e && o.redraw();
|
|
12734
12740
|
};
|
|
12735
|
-
|
|
12741
|
+
IL(s, o), e = De(e, !0), f ? f.firePointEvent("remove", null, b) : b();
|
|
12736
12742
|
}
|
|
12737
12743
|
remove(t, e, s, n) {
|
|
12738
12744
|
const o = this, h = o.chart;
|
|
@@ -12742,7 +12748,7 @@ let Us = class Sd {
|
|
|
12742
12748
|
s !== !1 ? Ee(o, "remove", null, d) : d();
|
|
12743
12749
|
}
|
|
12744
12750
|
update(t, e) {
|
|
12745
|
-
t =
|
|
12751
|
+
t = FL(t, this.userOptions), Ee(this, "update", { options: t });
|
|
12746
12752
|
const s = this, n = s.chart, o = s.userOptions, h = s.initialType || s.type, d = n.options.plotOptions, p = Yr[h].prototype, f = [
|
|
12747
12753
|
"group",
|
|
12748
12754
|
"markerGroup",
|
|
@@ -12889,7 +12895,7 @@ let Us = class Sd {
|
|
|
12889
12895
|
yx[this.options.legendSymbol || "rectangle"]?.call(this, t, e);
|
|
12890
12896
|
}
|
|
12891
12897
|
};
|
|
12892
|
-
Us.defaultOptions =
|
|
12898
|
+
Us.defaultOptions = LL;
|
|
12893
12899
|
Us.types = ze.seriesTypes;
|
|
12894
12900
|
Us.registerType = ze.registerSeriesType;
|
|
12895
12901
|
Us.keepProps = [
|
|
@@ -12944,7 +12950,7 @@ Xr(Us.prototype, {
|
|
|
12944
12950
|
sorted: !0
|
|
12945
12951
|
});
|
|
12946
12952
|
ze.series = Us;
|
|
12947
|
-
const Ci = Us, { animObject:
|
|
12953
|
+
const Ci = Us, { animObject: XL, setAnimation: VL } = ri, { registerEventOptions: dg } = Ll, { composed: UL, marginNames: mg } = Xt, { distribute: $L } = Pl, { format: qL } = Ni, { addEvent: Ba, createElement: ZL, css: KL, defined: Rc, discardElement: QL, find: JL, fireEvent: ps, isNumber: pg, merge: cr, pick: Hi, pushUnique: tO, relativeLength: eO, stableSort: iO, syncTimeout: sO } = Nt;
|
|
12948
12954
|
class Cd {
|
|
12949
12955
|
/* *
|
|
12950
12956
|
*
|
|
@@ -12964,7 +12970,7 @@ class Cd {
|
|
|
12964
12970
|
}
|
|
12965
12971
|
update(t, e) {
|
|
12966
12972
|
const s = this.chart;
|
|
12967
|
-
this.setOptions(cr(!0, this.options, t)), "events" in this.options && dg(this, this.options), this.destroy(), s.isDirtyLegend = s.isDirtyBox = !0, Hi(e, !0) && s.redraw(),
|
|
12973
|
+
this.setOptions(cr(!0, this.options, t)), "events" in this.options && dg(this, this.options), this.destroy(), s.isDirtyLegend = s.isDirtyBox = !0, Hi(e, !0) && s.redraw(), ps(this, "afterUpdate", { redraw: e });
|
|
12968
12974
|
}
|
|
12969
12975
|
colorizeItem(t, e) {
|
|
12970
12976
|
const s = t.color, { area: n, group: o, label: h, line: d, symbol: p } = t.legendItem || {};
|
|
@@ -12978,7 +12984,7 @@ class Cd {
|
|
|
12978
12984
|
"fill-opacity": k ? 1 : y ?? 0.75
|
|
12979
12985
|
}));
|
|
12980
12986
|
}
|
|
12981
|
-
t.color = s,
|
|
12987
|
+
t.color = s, ps(this, "afterColorizeItem", { item: t, visible: e });
|
|
12982
12988
|
}
|
|
12983
12989
|
positionItems() {
|
|
12984
12990
|
this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
|
|
@@ -12990,7 +12996,7 @@ class Cd {
|
|
|
12990
12996
|
translateX: p ? n : e.legendWidth - n - 2 * d - 4,
|
|
12991
12997
|
translateY: o
|
|
12992
12998
|
}, k = () => {
|
|
12993
|
-
|
|
12999
|
+
ps(this, "afterPositionItem", { item: t });
|
|
12994
13000
|
};
|
|
12995
13001
|
s[Rc(s.translateY) ? "animate" : "attr"](b, void 0, k);
|
|
12996
13002
|
}
|
|
@@ -13000,7 +13006,7 @@ class Cd {
|
|
|
13000
13006
|
const e = t.legendItem || {};
|
|
13001
13007
|
for (const s of ["group", "label", "line", "symbol"])
|
|
13002
13008
|
e[s] && (e[s] = e[s].destroy());
|
|
13003
|
-
t.checkbox =
|
|
13009
|
+
t.checkbox = QL(t.checkbox), t.legendItem = void 0;
|
|
13004
13010
|
}
|
|
13005
13011
|
destroy() {
|
|
13006
13012
|
const t = this;
|
|
@@ -13025,7 +13031,7 @@ class Cd {
|
|
|
13025
13031
|
t && (n = t.translateY, this.allItems.forEach(function(o) {
|
|
13026
13032
|
const h = o.checkbox;
|
|
13027
13033
|
let d;
|
|
13028
|
-
h && (d = n + s + h.y + (this.scrollOffset || 0) + 3,
|
|
13034
|
+
h && (d = n + s + h.y + (this.scrollOffset || 0) + 3, KL(h, {
|
|
13029
13035
|
left: t.translateX + o.checkboxOffset + h.x - 20 + "px",
|
|
13030
13036
|
top: d + "px",
|
|
13031
13037
|
display: this.proximate || d > n - 6 && d < n + e - 6 ? "" : "none"
|
|
@@ -13042,7 +13048,7 @@ class Cd {
|
|
|
13042
13048
|
setText(t) {
|
|
13043
13049
|
const e = this.options;
|
|
13044
13050
|
t.legendItem.label.attr({
|
|
13045
|
-
text: e.labelFormat ?
|
|
13051
|
+
text: e.labelFormat ? qL(e.labelFormat, t, this.chart) : e.labelFormatter.call(t)
|
|
13046
13052
|
});
|
|
13047
13053
|
}
|
|
13048
13054
|
renderItem(t) {
|
|
@@ -13074,7 +13080,7 @@ class Cd {
|
|
|
13074
13080
|
return this.chart.series.forEach(function(e) {
|
|
13075
13081
|
const s = e?.options;
|
|
13076
13082
|
e && Hi(s.showInLegend, Rc(s.linkedTo) ? !1 : void 0, !0) && (t = t.concat(e.legendItem?.labels || (s.legendType === "point" ? e.data : e)));
|
|
13077
|
-
}),
|
|
13083
|
+
}), ps(this, "afterGetAllItems", { allItems: t }), t;
|
|
13078
13084
|
}
|
|
13079
13085
|
getAlignment() {
|
|
13080
13086
|
const t = this.options;
|
|
@@ -13095,7 +13101,7 @@ class Cd {
|
|
|
13095
13101
|
const t = this.chart, e = [], s = this.options.align === "left";
|
|
13096
13102
|
this.allItems.forEach(function(o) {
|
|
13097
13103
|
let h, d, p = s, f, b;
|
|
13098
|
-
o.yAxis && (o.xAxis.options.reversed && (p = !p), o.points && (h =
|
|
13104
|
+
o.yAxis && (o.xAxis.options.reversed && (p = !p), o.points && (h = JL(p ? o.points : o.points.slice(0).reverse(), function(k) {
|
|
13099
13105
|
return pg(k.plotY);
|
|
13100
13106
|
})), d = this.itemMarginTop + o.legendItem.label.getBBox().height + this.itemMarginBottom, b = o.yAxis.top - t.plotTop, o.visible ? (f = h ? h.plotY : o.yAxis.height, f += b - 0.3 * d) : f = b + o.yAxis.height, e.push({
|
|
13101
13107
|
target: f,
|
|
@@ -13104,13 +13110,13 @@ class Cd {
|
|
|
13104
13110
|
}));
|
|
13105
13111
|
}, this);
|
|
13106
13112
|
let n;
|
|
13107
|
-
for (const o of
|
|
13113
|
+
for (const o of $L(e, t.plotHeight))
|
|
13108
13114
|
n = o.item.legendItem || {}, pg(o.pos) && (n.y = t.plotTop - t.spacing[0] + o.pos);
|
|
13109
13115
|
}
|
|
13110
13116
|
render() {
|
|
13111
13117
|
const t = this, e = t.chart, s = e.renderer, n = t.options, o = t.padding, h = t.getAllItems();
|
|
13112
13118
|
let d, p, f, b = t.group, k, y = t.box;
|
|
13113
|
-
t.itemX = o, t.itemY = t.initialItemY, t.offsetWidth = 0, t.lastItemY = 0, t.widthOption =
|
|
13119
|
+
t.itemX = o, t.itemY = t.initialItemY, t.offsetWidth = 0, t.lastItemY = 0, t.widthOption = eO(n.width, e.spacingBox.width - o), k = e.spacingBox.width - 2 * o - n.x, ["rm", "lm"].indexOf(t.getAlignment().substring(0, 2)) > -1 && (k /= 2), t.maxLegendWidth = t.widthOption || k, b || (t.group = b = s.g("legend").addClass(n.className || "").attr({ zIndex: 7 }).add(), t.contentGroup = s.g().attr({ zIndex: 1 }).add(b), t.scrollGroup = s.g().add(t.contentGroup)), t.renderTitle(), iO(h, (w, M) => (w.options?.legendIndex || 0) - (M.options?.legendIndex || 0)), n.reversed && h.reverse(), t.allItems = h, t.display = d = !!h.length, t.lastLineHeight = 0, t.maxItemWidth = 0, t.totalItemWidth = 0, t.itemHeight = 0, h.forEach(t.renderItem, t), h.forEach(t.layoutItem, t), p = (t.widthOption || t.offsetWidth) + o, f = t.lastItemY + t.lastLineHeight + t.titleHeight, f = t.handleOverflow(f), f += o, y || (t.box = y = s.rect().addClass("highcharts-legend-box").attr({
|
|
13114
13120
|
r: n.borderRadius
|
|
13115
13121
|
}).add(b)), e.styledMode || y.attr({
|
|
13116
13122
|
stroke: n.borderColor,
|
|
@@ -13121,7 +13127,7 @@ class Cd {
|
|
|
13121
13127
|
y: 0,
|
|
13122
13128
|
width: p,
|
|
13123
13129
|
height: f
|
|
13124
|
-
}, y.strokeWidth())), b[d ? "show" : "hide"](), e.styledMode && b.getStyle("display") === "none" && (p = f = 0), t.legendWidth = p, t.legendHeight = f, d && t.align(), this.proximate || this.positionItems(),
|
|
13130
|
+
}, y.strokeWidth())), b[d ? "show" : "hide"](), e.styledMode && b.getStyle("display") === "none" && (p = f = 0), t.legendWidth = p, t.legendHeight = f, d && t.align(), this.proximate || this.positionItems(), ps(this, "afterRender");
|
|
13125
13131
|
}
|
|
13126
13132
|
align(t = this.chart.spacingBox) {
|
|
13127
13133
|
const e = this.chart, s = this.options;
|
|
@@ -13160,7 +13166,7 @@ class Cd {
|
|
|
13160
13166
|
const s = this.chart, n = this.pages, o = n.length, h = this.clipHeight, d = this.options.navigation, p = this.pager, f = this.padding;
|
|
13161
13167
|
let b = this.currentPage + t;
|
|
13162
13168
|
if (b > o && (b = o), b > 0) {
|
|
13163
|
-
typeof e < "u" &&
|
|
13169
|
+
typeof e < "u" && VL(e, s), this.nav.attr({
|
|
13164
13170
|
translateX: f,
|
|
13165
13171
|
translateY: h + this.padding + 7 + this.titleHeight,
|
|
13166
13172
|
visibility: "inherit"
|
|
@@ -13187,9 +13193,9 @@ class Cd {
|
|
|
13187
13193
|
})), this.scrollOffset = -n[b - 1] + this.initialItemY, this.scrollGroup.animate({
|
|
13188
13194
|
translateY: this.scrollOffset
|
|
13189
13195
|
}), this.currentPage = b, this.positionCheckboxes();
|
|
13190
|
-
const k =
|
|
13191
|
-
|
|
13192
|
-
|
|
13196
|
+
const k = XL(Hi(e, s.renderer.globalAnimation, !0));
|
|
13197
|
+
sO(() => {
|
|
13198
|
+
ps(this, "afterScroll", { currentPage: b });
|
|
13193
13199
|
}, k.duration);
|
|
13194
13200
|
}
|
|
13195
13201
|
}
|
|
@@ -13210,20 +13216,20 @@ class Cd {
|
|
|
13210
13216
|
const T = function() {
|
|
13211
13217
|
t.setVisible && t.setVisible(), y(t.visible ? "inactive" : "");
|
|
13212
13218
|
};
|
|
13213
|
-
h.removeClass(f),
|
|
13219
|
+
h.removeClass(f), ps(n, "itemClick", {
|
|
13214
13220
|
// Pass over the click/touch event. #4.
|
|
13215
13221
|
browserEvent: M,
|
|
13216
13222
|
legendItem: t
|
|
13217
13223
|
}, T), d ? t.firePointEvent("legendItemClick", {
|
|
13218
13224
|
browserEvent: M
|
|
13219
|
-
}) : p &&
|
|
13225
|
+
}) : p && ps(t, "legendItemClick", {
|
|
13220
13226
|
browserEvent: M
|
|
13221
13227
|
});
|
|
13222
13228
|
});
|
|
13223
13229
|
}
|
|
13224
13230
|
createCheckboxForItem(t) {
|
|
13225
13231
|
const e = this;
|
|
13226
|
-
t.checkbox =
|
|
13232
|
+
t.checkbox = ZL("input", {
|
|
13227
13233
|
type: "checkbox",
|
|
13228
13234
|
className: "highcharts-legend-checkbox",
|
|
13229
13235
|
checked: t.selected,
|
|
@@ -13231,7 +13237,7 @@ class Cd {
|
|
|
13231
13237
|
// Required by IE7
|
|
13232
13238
|
}, e.options.itemCheckboxStyle, e.chart.container), Ba(t.checkbox, "click", function(s) {
|
|
13233
13239
|
const n = s.target;
|
|
13234
|
-
|
|
13240
|
+
ps(t.series || t, "checkboxClick", {
|
|
13235
13241
|
checked: n.checked,
|
|
13236
13242
|
item: t
|
|
13237
13243
|
}, function() {
|
|
@@ -13242,13 +13248,13 @@ class Cd {
|
|
|
13242
13248
|
}
|
|
13243
13249
|
(function(l) {
|
|
13244
13250
|
function t(e) {
|
|
13245
|
-
|
|
13251
|
+
tO(UL, "Core.Legend") && Ba(e, "beforeMargins", function() {
|
|
13246
13252
|
this.legend = new l(this, this.options.legend);
|
|
13247
13253
|
});
|
|
13248
13254
|
}
|
|
13249
13255
|
l.compose = t;
|
|
13250
13256
|
})(Cd || (Cd = {}));
|
|
13251
|
-
const vx = Cd, { animate: _c, animObject:
|
|
13257
|
+
const vx = Cd, { animate: _c, animObject: rO, setAnimation: Bc } = ri, { defaultOptions: zc } = Ii, { numberFormat: nO } = Ni, { registerEventOptions: ug } = Ll, { charts: dr, doc: Rn, marginNames: fg, svg: oO, win: gg } = Xt, { seriesTypes: jc } = ze, { addEvent: Fc, attr: xg, createElement: Hc, css: Wi, defined: js, diffObjects: bg, discardElement: aO, erase: lO, error: Wc, extend: Ws, find: Yc, fireEvent: oe, getAlignFactor: hO, getStyle: Gc, isArray: cO, isNumber: Gr, isObject: dO, isString: xa, merge: ss, objectEach: Xc, pick: pi, pInt: mO, relativeLength: yg, removeEvent: vg, splat: ba, syncTimeout: pO, uniqueKey: uO } = Nt;
|
|
13252
13258
|
let Wn = class wx {
|
|
13253
13259
|
static chart(t, e, s) {
|
|
13254
13260
|
return new wx(t, e, s);
|
|
@@ -13283,7 +13289,7 @@ let Wn = class wx {
|
|
|
13283
13289
|
const s = ss(zc, t), n = s.chart, o = this.renderTo || n.renderTo;
|
|
13284
13290
|
this.userOptions = Ws({}, t), (this.renderTo = xa(o) ? Rn.getElementById(o) : o) || Wc(13, !0, this), this.margin = [], this.spacing = [], this.labelCollectors = [], this.callback = e, this.isResizing = 0, this.options = s, this.axes = [], this.series = [], this.locale = s.lang.locale ?? this.renderTo.closest("[lang]")?.lang, this.time = new tm(Ws(s.time || {}, {
|
|
13285
13291
|
locale: this.locale
|
|
13286
|
-
}), s.lang), s.time = this.time.options, this.numberFormatter = (n.numberFormatter ||
|
|
13292
|
+
}), s.lang), s.time = this.time.options, this.numberFormatter = (n.numberFormatter || nO).bind(this), this.styledMode = n.styledMode, this.hasCartesianSeries = n.showAxes;
|
|
13287
13293
|
const h = this;
|
|
13288
13294
|
h.index = dr.length, dr.push(h), Xt.chartCount++, ug(this, n), h.xAxis = [], h.yAxis = [], h.pointCount = h.colorCounter = h.symbolCounter = 0, this.setZoomOptions(), oe(h, "afterInit"), h.firstRender();
|
|
13289
13295
|
});
|
|
@@ -13454,7 +13460,7 @@ let Wn = class wx {
|
|
|
13454
13460
|
align: W.align,
|
|
13455
13461
|
scaleX: F,
|
|
13456
13462
|
scaleY: F,
|
|
13457
|
-
"transform-origin": `${b.x + k * F *
|
|
13463
|
+
"transform-origin": `${b.x + k * F * hO(W.align)} ${M}`
|
|
13458
13464
|
}), !f.floating) {
|
|
13459
13465
|
const H = $ * // When scaling down the title, preserve the offset as
|
|
13460
13466
|
// long as it's only one line, but scale down the offset
|
|
@@ -13511,9 +13517,9 @@ let Wn = class wx {
|
|
|
13511
13517
|
this.container.className = "highcharts-container " + (t || "");
|
|
13512
13518
|
}
|
|
13513
13519
|
getContainer() {
|
|
13514
|
-
const t = this, e = t.options, s = e.chart, n = "data-highcharts-chart", o =
|
|
13520
|
+
const t = this, e = t.options, s = e.chart, n = "data-highcharts-chart", o = uO(), h = t.renderTo;
|
|
13515
13521
|
let d;
|
|
13516
|
-
const p =
|
|
13522
|
+
const p = mO(xg(h, n));
|
|
13517
13523
|
Gr(p) && dr[p] && dr[p].hasRendered && dr[p].destroy(), xg(h, n, t.index), h.innerHTML = Yi.emptyHTML, !s.skipClone && !h.offsetWidth && t.temporaryDisplay(), t.getChartSize();
|
|
13518
13524
|
const f = t.chartHeight;
|
|
13519
13525
|
let b = t.chartWidth;
|
|
@@ -13542,7 +13548,7 @@ let Wn = class wx {
|
|
|
13542
13548
|
t.container = k, t.getChartSize(), b !== t.chartWidth && (b = t.chartWidth, t.styledMode || Wi(k, {
|
|
13543
13549
|
width: pi(s.style?.width, b + "px")
|
|
13544
13550
|
})), t.containerBox = t.getContainerBox(), t._cursor = k.style.cursor;
|
|
13545
|
-
const y = s.renderer || !
|
|
13551
|
+
const y = s.renderer || !oO ? ro.getRendererType(s.renderer) : px;
|
|
13546
13552
|
if (t.renderer = new y(k, b, f, void 0, s.forExport, e.exporting?.allowHTML, t.styledMode), Bc(void 0, t), t.setClassName(s.className), !t.styledMode)
|
|
13547
13553
|
t.renderer.setStyle(s.style);
|
|
13548
13554
|
else
|
|
@@ -13570,7 +13576,7 @@ let Wn = class wx {
|
|
|
13570
13576
|
reflow(t) {
|
|
13571
13577
|
const e = this, s = e.containerBox, n = e.getContainerBox();
|
|
13572
13578
|
delete e.pointer?.chartPosition, !e.exporting?.isPrinting && !e.isResizing && s && // When fired by resize observer inside hidden container
|
|
13573
|
-
n.width && ((n.width !== s.width || n.height !== s.height) && (Nt.clearTimeout(e.reflowTimeout), e.reflowTimeout =
|
|
13579
|
+
n.width && ((n.width !== s.width || n.height !== s.height) && (Nt.clearTimeout(e.reflowTimeout), e.reflowTimeout = pO(function() {
|
|
13574
13580
|
e.container && e.setSize(void 0, void 0, !1);
|
|
13575
13581
|
}, t ? 100 : 0)), e.containerBox = n);
|
|
13576
13582
|
}
|
|
@@ -13598,7 +13604,7 @@ let Wn = class wx {
|
|
|
13598
13604
|
k.isDirty = !0, k.setScale();
|
|
13599
13605
|
}), n.isDirtyLegend = !0, n.isDirtyBox = !0, n.layOutTitles(), n.getMargins(), n.redraw(h), n.oldChartHeight = void 0, oe(n, "resize"), setTimeout(() => {
|
|
13600
13606
|
n && oe(n, "endResize");
|
|
13601
|
-
},
|
|
13607
|
+
}, rO(h).duration)), n.isResizing -= 1;
|
|
13602
13608
|
}
|
|
13603
13609
|
setChartSize(t) {
|
|
13604
13610
|
const e = this, { chartHeight: s, chartWidth: n, inverted: o, spacing: h, renderer: d } = e, p = e.clipOffset, f = Math[o ? "floor" : "round"];
|
|
@@ -13626,7 +13632,7 @@ let Wn = class wx {
|
|
|
13626
13632
|
oe(this, "resetMargins");
|
|
13627
13633
|
const t = this, e = t.options.chart, s = e.plotBorderWidth || 0, n = Math.round(s) / 2;
|
|
13628
13634
|
["margin", "spacing"].forEach((o) => {
|
|
13629
|
-
const h = e[o], d =
|
|
13635
|
+
const h = e[o], d = dO(h) ? h : [h, h, h, h];
|
|
13630
13636
|
[
|
|
13631
13637
|
"Top",
|
|
13632
13638
|
"Right",
|
|
@@ -13743,7 +13749,7 @@ let Wn = class wx {
|
|
|
13743
13749
|
destroy() {
|
|
13744
13750
|
const t = this, e = t.axes, s = t.series, n = t.container, o = n?.parentNode;
|
|
13745
13751
|
let h;
|
|
13746
|
-
for (oe(t, "destroy"), t.renderer.forExport ?
|
|
13752
|
+
for (oe(t, "destroy"), t.renderer.forExport ? lO(dr, t) : dr[t.index] = void 0, Xt.chartCount--, t.renderTo.removeAttribute("data-highcharts-chart"), vg(t), h = e.length; h--; )
|
|
13747
13753
|
e[h] = e[h].destroy();
|
|
13748
13754
|
for (this.scroller?.destroy?.(), h = s.length; h--; )
|
|
13749
13755
|
s[h] = s[h].destroy();
|
|
@@ -13765,14 +13771,14 @@ let Wn = class wx {
|
|
|
13765
13771
|
"renderer"
|
|
13766
13772
|
].forEach((d) => {
|
|
13767
13773
|
t[d] = t[d]?.destroy?.();
|
|
13768
|
-
}), n && (n.innerHTML = Yi.emptyHTML, vg(n), o &&
|
|
13774
|
+
}), n && (n.innerHTML = Yi.emptyHTML, vg(n), o && aO(n)), Xc(t, function(d, p) {
|
|
13769
13775
|
delete t[p];
|
|
13770
13776
|
});
|
|
13771
13777
|
}
|
|
13772
13778
|
firstRender() {
|
|
13773
13779
|
const t = this, e = t.options;
|
|
13774
13780
|
t.getContainer(), t.resetMargins(), t.setChartSize(), t.propFromSeries(), t.createAxes();
|
|
13775
|
-
const s =
|
|
13781
|
+
const s = cO(e.series) ? e.series : [];
|
|
13776
13782
|
e.series = [], s.forEach(
|
|
13777
13783
|
// #9680
|
|
13778
13784
|
function(n) {
|
|
@@ -13960,8 +13966,8 @@ let Wn = class wx {
|
|
|
13960
13966
|
}
|
|
13961
13967
|
M.allExtremes = It;
|
|
13962
13968
|
}
|
|
13963
|
-
const { dataMin: Ht, dataMax: pe, min:
|
|
13964
|
-
(!M.isOrdinal || H !== 1 || o) && (bt < vt && (bt = vt, H >= 1 && (Tt = bt + Qt)), Tt > Ye && (Tt = Ye, H >= 1 && (bt = Tt - Qt)), (o || M.series.length && (bt !==
|
|
13969
|
+
const { dataMin: Ht, dataMax: pe, min: me, max: Et } = Ws(M.getExtremes(), It || {}), jt = b.parse(B.min), Ct = b.parse(B.max), Pt = Ht ?? jt, Vt = pe ?? Ct, Qt = Tt - bt, _t = M.categories ? 0 : Math.min(Qt, Vt - Pt), ge = Pt - _t * (js(jt) ? 0 : B.minPadding), ae = Vt + _t * (js(Ct) ? 0 : B.maxPadding), We = M.allowZoomOutside || H === 1 || p !== "zoom" && H > 1, vt = Math.min(jt ?? ge, ge, We ? me : ge), Ye = Math.max(Ct ?? ae, ae, We ? Et : ae);
|
|
13970
|
+
(!M.isOrdinal || H !== 1 || o) && (bt < vt && (bt = vt, H >= 1 && (Tt = bt + Qt)), Tt > Ye && (Tt = Ye, H >= 1 && (bt = Tt - Qt)), (o || M.series.length && (bt !== me || Tt !== Et) && bt >= vt && Tt <= Ye) && (h ? h[M.coll].push({
|
|
13965
13971
|
axis: M,
|
|
13966
13972
|
min: bt,
|
|
13967
13973
|
max: Tt
|
|
@@ -14028,8 +14034,8 @@ Ws(Wn.prototype, {
|
|
|
14028
14034
|
"tooltip"
|
|
14029
14035
|
]
|
|
14030
14036
|
});
|
|
14031
|
-
const Sx = Wn, { stop:
|
|
14032
|
-
function
|
|
14037
|
+
const Sx = Wn, { stop: fO } = ri, { composed: gO } = Xt, { addEvent: Fs, createElement: ya, css: Vc, defined: Uc, erase: xO, merge: wg, pushUnique: Sg } = Nt;
|
|
14038
|
+
function bO() {
|
|
14033
14039
|
let l = this.scrollablePlotArea;
|
|
14034
14040
|
(this.scrollablePixelsX || this.scrollablePixelsY) && !l && (this.scrollablePlotArea = l = new no(this)), l?.applyFixed();
|
|
14035
14041
|
}
|
|
@@ -14038,7 +14044,7 @@ function Cg() {
|
|
|
14038
14044
|
}
|
|
14039
14045
|
class no {
|
|
14040
14046
|
static compose(t, e, s) {
|
|
14041
|
-
Sg(
|
|
14047
|
+
Sg(gO, this.compose) && (Fs(t, "afterInit", Cg), Fs(e, "afterSetChartSize", (n) => this.afterSetSize(n.target, n)), Fs(e, "render", bO), Fs(s, "show", Cg));
|
|
14042
14048
|
}
|
|
14043
14049
|
static afterSetSize(t, e) {
|
|
14044
14050
|
const { minWidth: s, minHeight: n } = t.options.chart.scrollablePlotArea || {}, { clipBox: o, plotBox: h, inverted: d, renderer: p } = t;
|
|
@@ -14089,7 +14095,7 @@ class no {
|
|
|
14089
14095
|
}
|
|
14090
14096
|
applyFixed() {
|
|
14091
14097
|
const { chart: t, fixedRenderer: e, isDirty: s, scrollingContainer: n } = this, { axisOffset: o, chartWidth: h, chartHeight: d, container: p, plotHeight: f, plotLeft: b, plotTop: k, plotWidth: y, scrollablePixelsX: w = 0, scrollablePixelsY: M = 0 } = t, T = t.options.chart, L = T.scrollablePlotArea || {}, { scrollPositionX: E = 0, scrollPositionY: B = 0 } = L, _ = h + w, F = d + M;
|
|
14092
|
-
e.setSize(h, d), (s ?? !0) && (this.isDirty = !1, this.moveFixedElements()),
|
|
14098
|
+
e.setSize(h, d), (s ?? !0) && (this.isDirty = !1, this.moveFixedElements()), fO(t.container), Vc(p, {
|
|
14093
14099
|
width: `${_}px`,
|
|
14094
14100
|
height: `${F}px`
|
|
14095
14101
|
}), t.renderer.boxWrapper.attr({
|
|
@@ -14151,7 +14157,7 @@ class no {
|
|
|
14151
14157
|
`${p}:not(.highcharts-radial-axis)`,
|
|
14152
14158
|
`${p}-labels:not(.highcharts-radial-axis-labels)`
|
|
14153
14159
|
])
|
|
14154
|
-
|
|
14160
|
+
xO(h, f);
|
|
14155
14161
|
for (const p of h)
|
|
14156
14162
|
[].forEach.call(t.querySelectorAll(p), (f) => {
|
|
14157
14163
|
(f.namespaceURI === o.SVG_NS ? o.box : o.box.parentNode).appendChild(f), f.style.pointerEvents = "auto";
|
|
@@ -14176,8 +14182,8 @@ no.fixedSelectors = [
|
|
|
14176
14182
|
".highcharts-subtitle",
|
|
14177
14183
|
".highcharts-title"
|
|
14178
14184
|
];
|
|
14179
|
-
const
|
|
14180
|
-
class
|
|
14185
|
+
const yO = no, { format: vO } = Ni, { series: wO } = ze, { destroyObjectProperties: SO, fireEvent: kg, getAlignFactor: $c, isNumber: qc, pick: _n } = Nt;
|
|
14186
|
+
class CO {
|
|
14181
14187
|
/* *
|
|
14182
14188
|
*
|
|
14183
14189
|
* Constructor
|
|
@@ -14200,10 +14206,10 @@ class SO {
|
|
|
14200
14206
|
*
|
|
14201
14207
|
* */
|
|
14202
14208
|
destroy() {
|
|
14203
|
-
|
|
14209
|
+
SO(this, this.axis);
|
|
14204
14210
|
}
|
|
14205
14211
|
render(t) {
|
|
14206
|
-
const e = this.axis.chart, s = this.options, n = s.format, o = n ?
|
|
14212
|
+
const e = this.axis.chart, s = this.options, n = s.format, o = n ? vO(n, this, e) : s.formatter.call(this);
|
|
14207
14213
|
if (this.label)
|
|
14208
14214
|
this.label.attr({ text: o, visibility: "hidden" });
|
|
14209
14215
|
else {
|
|
@@ -14238,7 +14244,7 @@ class SO {
|
|
|
14238
14244
|
verticalAlign: M,
|
|
14239
14245
|
textAlign: k
|
|
14240
14246
|
});
|
|
14241
|
-
w.x -= _, w.y -= F, f.align(d, !1, w), B = y.isInsidePlot(f.alignAttr.x + d.x + _, f.alignAttr.y + d.y + F), B || (E = !1), E &&
|
|
14247
|
+
w.x -= _, w.y -= F, f.align(d, !1, w), B = y.isInsidePlot(f.alignAttr.x + d.x + _, f.alignAttr.y + d.y + F), B || (E = !1), E && wO.prototype.justifyDataLabel.call(p, f, d, f.alignAttr, T, w), f.attr({
|
|
14242
14248
|
x: f.alignAttr.x,
|
|
14243
14249
|
y: f.alignAttr.y,
|
|
14244
14250
|
rotation: b.rotation,
|
|
@@ -14269,8 +14275,8 @@ class SO {
|
|
|
14269
14275
|
};
|
|
14270
14276
|
}
|
|
14271
14277
|
}
|
|
14272
|
-
const Cx =
|
|
14273
|
-
function
|
|
14278
|
+
const Cx = CO, { getDeferredAnimation: kO } = ri, { series: { prototype: MO } } = ze, { addEvent: Mg, correctFloat: Xn, defined: kx, destroyObjectProperties: AO, fireEvent: TO, isNumber: kd, objectEach: ur, pick: Md } = Nt;
|
|
14279
|
+
function PO() {
|
|
14274
14280
|
const l = this, t = l.inverted;
|
|
14275
14281
|
l.axes.forEach((e) => {
|
|
14276
14282
|
e.stacking?.stacks && e.hasVisibleSeries && (e.stacking.oldStacks = e.stacking.stacks);
|
|
@@ -14284,19 +14290,19 @@ function TO() {
|
|
|
14284
14290
|
].join(","));
|
|
14285
14291
|
});
|
|
14286
14292
|
}
|
|
14287
|
-
function
|
|
14293
|
+
function LO() {
|
|
14288
14294
|
const l = this.stacking;
|
|
14289
14295
|
if (l) {
|
|
14290
14296
|
const t = l.stacks;
|
|
14291
14297
|
ur(t, (e, s) => {
|
|
14292
|
-
|
|
14298
|
+
AO(e), delete t[s];
|
|
14293
14299
|
}), l.stackTotalGroup?.destroy();
|
|
14294
14300
|
}
|
|
14295
14301
|
}
|
|
14296
|
-
function
|
|
14297
|
-
this.stacking || (this.stacking = new
|
|
14302
|
+
function OO() {
|
|
14303
|
+
this.stacking || (this.stacking = new _O(this));
|
|
14298
14304
|
}
|
|
14299
|
-
function
|
|
14305
|
+
function EO(l, t, e, s) {
|
|
14300
14306
|
return !kx(l) || l.x !== t || s && l.stackKey !== s ? l = {
|
|
14301
14307
|
x: t,
|
|
14302
14308
|
index: 0,
|
|
@@ -14304,7 +14310,7 @@ function OO(l, t, e, s) {
|
|
|
14304
14310
|
stackKey: s
|
|
14305
14311
|
} : l.index++, l.key = [e, t, l.index].join(","), l;
|
|
14306
14312
|
}
|
|
14307
|
-
function
|
|
14313
|
+
function DO() {
|
|
14308
14314
|
const l = this, t = l.yAxis, e = l.stackKey || "", s = t.stacking.stacks, n = l.getColumn("x", !0), o = l.options.stacking, h = l[o + "Stacker"];
|
|
14309
14315
|
let d;
|
|
14310
14316
|
h && [e, "-" + e].forEach((p) => {
|
|
@@ -14313,15 +14319,15 @@ function EO() {
|
|
|
14313
14319
|
b = n[f], d = l.getStackIndicator(d, b, l.index, p), k = s[p]?.[b], y = k?.points[d.key || ""], y && h.call(l, y, k, f);
|
|
14314
14320
|
});
|
|
14315
14321
|
}
|
|
14316
|
-
function
|
|
14322
|
+
function IO(l, t, e) {
|
|
14317
14323
|
const s = t.total ? 100 / t.total : 0;
|
|
14318
14324
|
l[0] = Xn(l[0] * s), l[1] = Xn(l[1] * s), this.stackedYData[e] = l[1];
|
|
14319
14325
|
}
|
|
14320
|
-
function
|
|
14326
|
+
function NO(l) {
|
|
14321
14327
|
(this.is("column") || this.is("columnrange")) && (this.options.centerInCategory && // With only one series, we don't need to consider centerInCategory
|
|
14322
|
-
this.chart.series.length > 1 ?
|
|
14328
|
+
this.chart.series.length > 1 ? MO.setStackedPoints.call(this, l, "group") : l.stacking.resetStacks());
|
|
14323
14329
|
}
|
|
14324
|
-
function
|
|
14330
|
+
function RO(l, t) {
|
|
14325
14331
|
const e = t || this.options.stacking;
|
|
14326
14332
|
if (!e || !this.reserveSpace() || // Group stacks (centerInCategory) belong on the x-axis, other stacks on
|
|
14327
14333
|
// the y-axis.
|
|
@@ -14339,7 +14345,7 @@ function NO(l, t) {
|
|
|
14339
14345
|
}
|
|
14340
14346
|
e === "percent" && (T.usePercentage = !0), e !== "group" && (this.stackedYData = h), T.oldStacks = {};
|
|
14341
14347
|
}
|
|
14342
|
-
class
|
|
14348
|
+
class _O {
|
|
14343
14349
|
/* *
|
|
14344
14350
|
*
|
|
14345
14351
|
* Constructors
|
|
@@ -14361,7 +14367,7 @@ class RO {
|
|
|
14361
14367
|
if (!n)
|
|
14362
14368
|
for (p = 0; p < h; p++)
|
|
14363
14369
|
s[p].modifyStacks();
|
|
14364
|
-
|
|
14370
|
+
TO(e, "afterBuildStacks");
|
|
14365
14371
|
}
|
|
14366
14372
|
cleanStacks() {
|
|
14367
14373
|
this.oldStacks && (this.stacks = this.oldStacks, ur(this.stacks, (t) => {
|
|
@@ -14378,7 +14384,7 @@ class RO {
|
|
|
14378
14384
|
});
|
|
14379
14385
|
}
|
|
14380
14386
|
renderStackTotals() {
|
|
14381
|
-
const t = this, e = t.axis, s = e.chart, n = s.renderer, o = t.stacks, h = e.options.stackLabels?.animation, d =
|
|
14387
|
+
const t = this, e = t.axis, s = e.chart, n = s.renderer, o = t.stacks, h = e.options.stackLabels?.animation, d = kO(s, h || !1), p = t.stackTotalGroup = t.stackTotalGroup || n.g("stack-labels").attr({
|
|
14382
14388
|
zIndex: 6,
|
|
14383
14389
|
opacity: 0
|
|
14384
14390
|
}).add();
|
|
@@ -14395,11 +14401,11 @@ var Ad;
|
|
|
14395
14401
|
(function(l) {
|
|
14396
14402
|
function t(e, s, n) {
|
|
14397
14403
|
const o = s.prototype, h = n.prototype;
|
|
14398
|
-
o.getStacks || (Mg(e, "init",
|
|
14404
|
+
o.getStacks || (Mg(e, "init", OO), Mg(e, "destroy", LO), o.getStacks = PO, h.getStackIndicator = EO, h.modifyStacks = DO, h.percentStacker = IO, h.setGroupedPoints = NO, h.setStackedPoints = RO);
|
|
14399
14405
|
}
|
|
14400
14406
|
l.compose = t;
|
|
14401
14407
|
})(Ad || (Ad = {}));
|
|
14402
|
-
const
|
|
14408
|
+
const BO = Ad, { defined: zO, merge: Mx, isObject: jO } = Nt;
|
|
14403
14409
|
let Ax = class extends Ci {
|
|
14404
14410
|
/* *
|
|
14405
14411
|
*
|
|
@@ -14420,7 +14426,7 @@ let Ax = class extends Ci {
|
|
|
14420
14426
|
}, f ? h.dashstyle = f : t.linecap !== "square" && (h["stroke-linecap"] = h["stroke-linejoin"] = "round"), d[p](h).shadow(t.shadow && // If shadow is defined, call function with
|
|
14421
14427
|
// `filterUnits: 'userSpaceOnUse'` to avoid known
|
|
14422
14428
|
// SVG filter bug (#19093)
|
|
14423
|
-
Mx({ filterUnits: "userSpaceOnUse" },
|
|
14429
|
+
Mx({ filterUnits: "userSpaceOnUse" }, jO(t.shadow) ? t.shadow : {}))), d && (d.startX = e.xMap, d.isArea = e.isArea);
|
|
14424
14430
|
});
|
|
14425
14431
|
}
|
|
14426
14432
|
// eslint-disable-next-line valid-jsdoc
|
|
@@ -14435,7 +14441,7 @@ let Ax = class extends Ci {
|
|
|
14435
14441
|
}[f] || f && 3, f && b && (f = 4 - f), t = this.getValidPoints(t, !1, o.nullInteraction || !(o.connectNulls && !e && !s)), t.forEach(function(k, y) {
|
|
14436
14442
|
const w = k.plotX, M = k.plotY, T = t[y - 1], L = k.isNull || typeof M != "number";
|
|
14437
14443
|
let E;
|
|
14438
|
-
(k.leftCliff || T?.rightCliff) && !s && (p = !0), L && !
|
|
14444
|
+
(k.leftCliff || T?.rightCliff) && !s && (p = !0), L && !zO(e) && y > 0 ? p = !o.connectNulls : L && !e ? p = !0 : (y === 0 || p ? E = [[
|
|
14439
14445
|
"M",
|
|
14440
14446
|
k.plotX,
|
|
14441
14447
|
k.plotY
|
|
@@ -14474,10 +14480,10 @@ Ax.defaultOptions = Mx(
|
|
|
14474
14480
|
}
|
|
14475
14481
|
);
|
|
14476
14482
|
ze.registerSeriesType("line", Ax);
|
|
14477
|
-
const
|
|
14483
|
+
const FO = {
|
|
14478
14484
|
threshold: 0,
|
|
14479
14485
|
legendSymbol: "areaMarker"
|
|
14480
|
-
},
|
|
14486
|
+
}, HO = FO, { seriesTypes: { line: Td } } = ze, { extend: WO, merge: YO, objectEach: GO, pick: va } = Nt;
|
|
14481
14487
|
let nm = class extends Td {
|
|
14482
14488
|
/* *
|
|
14483
14489
|
*
|
|
@@ -14542,7 +14548,7 @@ let nm = class extends Td {
|
|
|
14542
14548
|
if (t = t || this.points, this.options.stacking) {
|
|
14543
14549
|
for (let M = 0; M < t.length; M++)
|
|
14544
14550
|
t[M].leftNull = t[M].rightNull = void 0, p[t[M].x] = t[M];
|
|
14545
|
-
|
|
14551
|
+
GO(d, function(M, T) {
|
|
14546
14552
|
M.total !== null && n.push(T);
|
|
14547
14553
|
}), n.sort(function(M, T) {
|
|
14548
14554
|
return M - T;
|
|
@@ -14600,12 +14606,12 @@ let nm = class extends Td {
|
|
|
14600
14606
|
return s;
|
|
14601
14607
|
}
|
|
14602
14608
|
};
|
|
14603
|
-
nm.defaultOptions =
|
|
14604
|
-
|
|
14609
|
+
nm.defaultOptions = YO(Td.defaultOptions, HO);
|
|
14610
|
+
WO(nm.prototype, {
|
|
14605
14611
|
singleStacks: !1
|
|
14606
14612
|
});
|
|
14607
14613
|
ze.registerSeriesType("area", nm);
|
|
14608
|
-
const { line: Tx } = ze.seriesTypes, { merge:
|
|
14614
|
+
const { line: Tx } = ze.seriesTypes, { merge: XO, pick: wa } = Nt;
|
|
14609
14615
|
let om = class extends Tx {
|
|
14610
14616
|
/* *
|
|
14611
14617
|
*
|
|
@@ -14640,19 +14646,19 @@ let om = class extends Tx {
|
|
|
14640
14646
|
return p.rightContX = p.rightContY = void 0, T;
|
|
14641
14647
|
}
|
|
14642
14648
|
};
|
|
14643
|
-
om.defaultOptions =
|
|
14649
|
+
om.defaultOptions = XO(Tx.defaultOptions);
|
|
14644
14650
|
ze.registerSeriesType("spline", om);
|
|
14645
|
-
const Px = om, { area:
|
|
14651
|
+
const Px = om, { area: VO, area: { prototype: Zc } } = ze.seriesTypes, { extend: UO, merge: $O } = Nt;
|
|
14646
14652
|
class am extends Px {
|
|
14647
14653
|
}
|
|
14648
|
-
am.defaultOptions =
|
|
14649
|
-
|
|
14654
|
+
am.defaultOptions = $O(Px.defaultOptions, VO.defaultOptions);
|
|
14655
|
+
UO(am.prototype, {
|
|
14650
14656
|
getGraphPath: Zc.getGraphPath,
|
|
14651
14657
|
getStackPoints: Zc.getStackPoints,
|
|
14652
14658
|
drawGraph: Zc.drawGraph
|
|
14653
14659
|
});
|
|
14654
14660
|
ze.registerSeriesType("areaspline", am);
|
|
14655
|
-
const
|
|
14661
|
+
const qO = {
|
|
14656
14662
|
borderRadius: 3,
|
|
14657
14663
|
centerInCategory: !1,
|
|
14658
14664
|
groupPadding: 0.2,
|
|
@@ -14687,7 +14693,7 @@ const $O = {
|
|
|
14687
14693
|
threshold: 0,
|
|
14688
14694
|
borderColor: "#ffffff"
|
|
14689
14695
|
/* Palette.backgroundColor */
|
|
14690
|
-
},
|
|
14696
|
+
}, ZO = qO, { animObject: KO } = ri, { parse: QO } = xs, { noop: JO } = Xt, { clamp: Sa, crisp: Ca, defined: Ag, extend: Lx, fireEvent: Tg, isArray: Pg, isNumber: ka, merge: Pd, pick: Bn, objectEach: t3 } = Nt;
|
|
14691
14697
|
let El = class extends Ci {
|
|
14692
14698
|
/* *
|
|
14693
14699
|
*
|
|
@@ -14698,7 +14704,7 @@ let El = class extends Ci {
|
|
|
14698
14704
|
animate(t) {
|
|
14699
14705
|
const e = this, s = this.yAxis, n = s.pos, o = s.reversed, h = e.options, { clipOffset: d, inverted: p } = this.chart, f = {}, b = p ? "translateX" : "translateY";
|
|
14700
14706
|
let k, y;
|
|
14701
|
-
t && d ? (f.scaleY = 1e-3, y = Sa(s.toPixels(h.threshold || 0), n, n + s.len), p ? (y += o ? -Math.floor(d[0]) : Math.ceil(d[2]), f.translateX = y - s.len) : (y += o ? Math.ceil(d[0]) : -Math.floor(d[2]), f.translateY = y), e.clipBox && e.setClip(), e.group.attr(f)) : (k = Number(e.group.attr(b)), e.group.animate({ scaleY: 1 }, Lx(
|
|
14707
|
+
t && d ? (f.scaleY = 1e-3, y = Sa(s.toPixels(h.threshold || 0), n, n + s.len), p ? (y += o ? -Math.floor(d[0]) : Math.ceil(d[2]), f.translateX = y - s.len) : (y += o ? Math.ceil(d[0]) : -Math.floor(d[2]), f.translateY = y), e.clipBox && e.setClip(), e.group.attr(f)) : (k = Number(e.group.attr(b)), e.group.animate({ scaleY: 1 }, Lx(KO(e.options.animation), {
|
|
14702
14708
|
// Do the scale synchronously to ensure smooth
|
|
14703
14709
|
// updating (#5030, #7228)
|
|
14704
14710
|
step: function(w, M) {
|
|
@@ -14746,7 +14752,7 @@ let El = class extends Ci {
|
|
|
14746
14752
|
if (!s.isNull && n.columnCount > 1) {
|
|
14747
14753
|
const o = this.xAxis.series.filter((f) => f.visible).map((f) => f.index);
|
|
14748
14754
|
let h = 0, d = 0;
|
|
14749
|
-
|
|
14755
|
+
t3(this.xAxis.stacking?.stacks, (f) => {
|
|
14750
14756
|
const b = typeof s.x == "number" ? f[s.x.toString()]?.points : void 0, k = b?.[this.index], y = {};
|
|
14751
14757
|
if (b && Pg(k)) {
|
|
14752
14758
|
let w = this.index;
|
|
@@ -14820,7 +14826,7 @@ let El = class extends Ci {
|
|
|
14820
14826
|
s.states[e],
|
|
14821
14827
|
// #6401
|
|
14822
14828
|
t.options.states && t.options.states[e] || {}
|
|
14823
|
-
), f = d.brightness, b = d.color || typeof f < "u" &&
|
|
14829
|
+
), f = d.brightness, b = d.color || typeof f < "u" && QO(b).brighten(d.brightness).get() || b, k = d[o] || k, w = d[h] || w, y = d.dashStyle || y, M = Bn(d.opacity, M));
|
|
14824
14830
|
const T = {
|
|
14825
14831
|
fill: b,
|
|
14826
14832
|
stroke: k,
|
|
@@ -14869,19 +14875,19 @@ let El = class extends Ci {
|
|
|
14869
14875
|
}), Ci.prototype.remove.apply(t, arguments);
|
|
14870
14876
|
}
|
|
14871
14877
|
};
|
|
14872
|
-
El.defaultOptions = Pd(Ci.defaultOptions,
|
|
14878
|
+
El.defaultOptions = Pd(Ci.defaultOptions, ZO);
|
|
14873
14879
|
Lx(El.prototype, {
|
|
14874
14880
|
// When tooltip is not shared, this series (and derivatives) requires
|
|
14875
14881
|
// direct touch/hover. KD-tree does not apply.
|
|
14876
14882
|
directTouch: !0,
|
|
14877
|
-
getSymbol:
|
|
14883
|
+
getSymbol: JO,
|
|
14878
14884
|
// Use separate negative stacks, unlike area stacks where a negative
|
|
14879
14885
|
// point is subtracted from previous (#1910)
|
|
14880
14886
|
negStacks: !0,
|
|
14881
14887
|
trackerGroups: ["group", "dataLabelsGroup"]
|
|
14882
14888
|
});
|
|
14883
14889
|
ze.registerSeriesType("column", El);
|
|
14884
|
-
const Qa = El, { getDeferredAnimation:
|
|
14890
|
+
const Qa = El, { getDeferredAnimation: e3 } = ri, { format: i3 } = Ni, { defined: mr, extend: Lg, fireEvent: Kc, getAlignFactor: Og, isArray: Hs, isString: zn, merge: jn, objectEach: s3, pick: Fn, pInt: r3, splat: Eg } = Nt;
|
|
14885
14891
|
var Ld;
|
|
14886
14892
|
(function(l) {
|
|
14887
14893
|
function t() {
|
|
@@ -14979,7 +14985,7 @@ var Ld;
|
|
|
14979
14985
|
/* Palette.neutralColor100 */
|
|
14980
14986
|
), F = b(w);
|
|
14981
14987
|
let W, G;
|
|
14982
|
-
const { animation: $, defer: H } = F[0], J = H ?
|
|
14988
|
+
const { animation: $, defer: H } = F[0], J = H ? e3(M, $, w) : { defer: 0, duration: 0 };
|
|
14983
14989
|
Kc(this, "drawDataLabels"), w.hasDataLabels?.() && (G = this.initDataLabels(J), y.forEach((et) => {
|
|
14984
14990
|
const it = et.dataLabels || [], rt = et.color || w.color;
|
|
14985
14991
|
W = Eg(f(
|
|
@@ -14989,26 +14995,26 @@ var Ld;
|
|
|
14989
14995
|
)), W.forEach((pt, ft) => {
|
|
14990
14996
|
const ut = pt.enabled && (et.visible || et.dataLabelOnHidden) && // #2282, #4641, #7112, #10049
|
|
14991
14997
|
(!et.isNull || et.dataLabelOnNull) && s(et, pt), { backgroundColor: bt, borderColor: Tt, distance: It, style: Ht = {} } = pt;
|
|
14992
|
-
let pe,
|
|
14993
|
-
ut && (pe = Fn(pt[et.formatPrefix + "Format"], pt.format),
|
|
14998
|
+
let pe, me, Et, jt = {}, Ct = it[ft], Pt = !Ct, Vt;
|
|
14999
|
+
ut && (pe = Fn(pt[et.formatPrefix + "Format"], pt.format), me = mr(pe) ? i3(pe, et, M) : (pt[et.formatPrefix + "Formatter"] || pt.formatter).call(et, pt), Et = pt.rotation, M.styledMode || (Ht.color = Fn(
|
|
14994
15000
|
pt.color,
|
|
14995
15001
|
Ht.color,
|
|
14996
15002
|
zn(w.color) ? w.color : void 0,
|
|
14997
15003
|
"#000000"
|
|
14998
15004
|
/* Palette.neutralColor100 */
|
|
14999
15005
|
), Ht.color === "contrast" ? (bt !== "none" && (Vt = bt), et.contrastColor = L.getContrast(Vt !== "auto" && zn(Vt) && Vt || (zn(rt) ? rt : "")), Ht.color = Vt || // #20007
|
|
15000
|
-
!mr(It) && pt.inside ||
|
|
15006
|
+
!mr(It) && pt.inside || r3(It || 0) < 0 || T.stacking ? et.contrastColor : _) : delete et.contrastColor, T.cursor && (Ht.cursor = T.cursor)), jt = {
|
|
15001
15007
|
r: pt.borderRadius || 0,
|
|
15002
15008
|
rotation: Et,
|
|
15003
15009
|
padding: pt.padding,
|
|
15004
15010
|
zIndex: 1
|
|
15005
|
-
}, M.styledMode || (jt.fill = bt === "auto" ? et.color : bt, jt.stroke = Tt === "auto" ? et.color : Tt, jt["stroke-width"] = pt.borderWidth),
|
|
15011
|
+
}, M.styledMode || (jt.fill = bt === "auto" ? et.color : bt, jt.stroke = Tt === "auto" ? et.color : Tt, jt["stroke-width"] = pt.borderWidth), s3(jt, (Qt, _t) => {
|
|
15006
15012
|
typeof Qt > "u" && delete jt[_t];
|
|
15007
|
-
})), Ct && (!ut || !mr(
|
|
15013
|
+
})), Ct && (!ut || !mr(me) || // Changed useHTML value
|
|
15008
15014
|
!!(Ct.div || Ct.text?.foreignObject) != !!pt.useHTML || // Change from no rotation to rotation and
|
|
15009
15015
|
// vice versa. Don't use defined() because
|
|
15010
15016
|
// rotation = 0 means also rotation = undefined
|
|
15011
|
-
(!Ct.rotation || !pt.rotation) && Ct.rotation !== pt.rotation) && (Ct = void 0, Pt = !0), ut && mr(
|
|
15017
|
+
(!Ct.rotation || !pt.rotation) && Ct.rotation !== pt.rotation) && (Ct = void 0, Pt = !0), ut && mr(me) && me !== "" && (Ct ? jt.text = me : (Ct = L.label(me, 0, 0, pt.shape, void 0, void 0, pt.useHTML, void 0, "data-label"), Ct.addClass(" highcharts-data-label-color-" + et.colorIndex + " " + (pt.className || "") + // #3398
|
|
15012
15018
|
(pt.useHTML ? " highcharts-tracker" : ""))), Ct && (Ct.options = pt, Ct.attr(jt), M.styledMode ? Ht.width && Ct.css({
|
|
15013
15019
|
width: Ht.width,
|
|
15014
15020
|
textOverflow: Ht.textOverflow,
|
|
@@ -15052,14 +15058,14 @@ var Ld;
|
|
|
15052
15058
|
w.startXPos = B ? L.x : F ? -W - $ : _.width - W + $, w.startYPos = B ? F ? this.yAxis.height - W + $ : -W - $ : L.y, T ? w.visibility === "hidden" && (w.show(), w.attr({ opacity: 0 }).animate({ opacity: 1 })) : w.attr({ opacity: 1 }).animate({ opacity: 0 }, void 0, w.hide), E.hasRendered && (M && w.attr({ x: w.startXPos, y: w.startYPos }), w.placed = !0);
|
|
15053
15059
|
}
|
|
15054
15060
|
})(Ld || (Ld = {}));
|
|
15055
|
-
const Dl = Ld, { composed:
|
|
15061
|
+
const Dl = Ld, { composed: n3 } = Xt, { series: Dg } = ze, { merge: o3, pushUnique: a3 } = Nt;
|
|
15056
15062
|
var Od;
|
|
15057
15063
|
(function(l) {
|
|
15058
15064
|
function t(s, n, o, h, d) {
|
|
15059
15065
|
const { chart: p, options: f } = this, b = p.inverted, k = this.xAxis?.len || p.plotSizeX || 0, y = this.yAxis?.len || p.plotSizeY || 0, w = s.dlBox || s.shapeArgs, M = s.below ?? // Range series
|
|
15060
15066
|
(s.plotY || 0) > (this.translatedThreshold ?? y), T = o.inside ?? !!f.stacking;
|
|
15061
15067
|
if (w) {
|
|
15062
|
-
if (h =
|
|
15068
|
+
if (h = o3(w), o.overflow !== "allow" || o.crop !== !1 || f.clip !== !1) {
|
|
15063
15069
|
h.y < 0 && (h.height += h.y, h.y = 0);
|
|
15064
15070
|
const L = h.y + h.height - y;
|
|
15065
15071
|
L > 0 && L < h.height - 1 && (h.height -= L);
|
|
@@ -15076,21 +15082,21 @@ var Od;
|
|
|
15076
15082
|
});
|
|
15077
15083
|
}
|
|
15078
15084
|
function e(s) {
|
|
15079
|
-
Dl.compose(Dg),
|
|
15085
|
+
Dl.compose(Dg), a3(n3, "ColumnDataLabel") && (s.prototype.alignDataLabel = t);
|
|
15080
15086
|
}
|
|
15081
15087
|
l.compose = e;
|
|
15082
15088
|
})(Od || (Od = {}));
|
|
15083
|
-
const
|
|
15089
|
+
const l3 = Od, { extend: h3, merge: c3 } = Nt;
|
|
15084
15090
|
let lm = class extends Qa {
|
|
15085
15091
|
};
|
|
15086
|
-
lm.defaultOptions =
|
|
15092
|
+
lm.defaultOptions = c3(Qa.defaultOptions, {
|
|
15087
15093
|
// Nothing here yet
|
|
15088
15094
|
});
|
|
15089
|
-
|
|
15095
|
+
h3(lm.prototype, {
|
|
15090
15096
|
inverted: !0
|
|
15091
15097
|
});
|
|
15092
15098
|
ze.registerSeriesType("bar", lm);
|
|
15093
|
-
const
|
|
15099
|
+
const d3 = {
|
|
15094
15100
|
lineWidth: 0,
|
|
15095
15101
|
findNearestPointBy: "xy",
|
|
15096
15102
|
jitter: {
|
|
@@ -15105,7 +15111,7 @@ const c3 = {
|
|
|
15105
15111
|
headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',
|
|
15106
15112
|
pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
|
|
15107
15113
|
}
|
|
15108
|
-
},
|
|
15114
|
+
}, m3 = d3, { column: p3, line: Ox } = ze.seriesTypes, { addEvent: u3, extend: f3, merge: g3 } = Nt;
|
|
15109
15115
|
let Il = class extends Ox {
|
|
15110
15116
|
/* *
|
|
15111
15117
|
*
|
|
@@ -15135,19 +15141,19 @@ let Il = class extends Ox {
|
|
|
15135
15141
|
this.options.lineWidth ? super.drawGraph() : this.graph && (this.graph = this.graph.destroy());
|
|
15136
15142
|
}
|
|
15137
15143
|
};
|
|
15138
|
-
Il.defaultOptions =
|
|
15139
|
-
|
|
15140
|
-
drawTracker:
|
|
15144
|
+
Il.defaultOptions = g3(Ox.defaultOptions, m3);
|
|
15145
|
+
f3(Il.prototype, {
|
|
15146
|
+
drawTracker: p3.prototype.drawTracker,
|
|
15141
15147
|
sorted: !1,
|
|
15142
15148
|
requireSorting: !1,
|
|
15143
15149
|
noSharedTooltip: !0,
|
|
15144
15150
|
trackerGroups: ["group", "markerGroup", "dataLabelsGroup"]
|
|
15145
15151
|
});
|
|
15146
|
-
|
|
15152
|
+
u3(Il, "afterTranslate", function() {
|
|
15147
15153
|
this.applyJitter();
|
|
15148
15154
|
});
|
|
15149
15155
|
ze.registerSeriesType("scatter", Il);
|
|
15150
|
-
const { deg2rad: Ig } = Xt, { fireEvent:
|
|
15156
|
+
const { deg2rad: Ig } = Xt, { fireEvent: x3, isNumber: Qc, pick: Ma, relativeLength: b3 } = Nt;
|
|
15151
15157
|
var Ed;
|
|
15152
15158
|
(function(l) {
|
|
15153
15159
|
function t() {
|
|
@@ -15162,8 +15168,8 @@ var Ed;
|
|
|
15162
15168
|
Ma(w && w < 0 ? void 0 : s.innerSize || 0, "0%")
|
|
15163
15169
|
];
|
|
15164
15170
|
for (n.angular && !(this instanceof Ci) && (L[3] = 0), M = 0; M < 4; ++M)
|
|
15165
|
-
T = L[M], k = M < 2 || M === 2 && /%$/.test(T), L[M] =
|
|
15166
|
-
return L[3] > L[2] && (L[3] = L[2]), Qc(b) && b * 2 < L[2] && b > 0 && (L[3] = L[2] - b * 2),
|
|
15171
|
+
T = L[M], k = M < 2 || M === 2 && /%$/.test(T), L[M] = b3(T, [h, d, f, L[2]][M]) + (k ? o : 0);
|
|
15172
|
+
return L[3] > L[2] && (L[3] = L[2]), Qc(b) && b * 2 < L[2] && b > 0 && (L[3] = L[2] - b * 2), x3(this, "afterGetCenter", { positions: L }), L;
|
|
15167
15173
|
}
|
|
15168
15174
|
l.getCenter = t;
|
|
15169
15175
|
function e(s, n) {
|
|
@@ -15178,7 +15184,7 @@ var Ed;
|
|
|
15178
15184
|
}
|
|
15179
15185
|
l.getStartAndEndRadians = e;
|
|
15180
15186
|
})(Ed || (Ed = {}));
|
|
15181
|
-
const Ex = Ed, { setAnimation:
|
|
15187
|
+
const Ex = Ed, { setAnimation: y3 } = ri, { addEvent: Ng, defined: v3, extend: w3, isNumber: S3, pick: C3, relativeLength: k3 } = Nt;
|
|
15182
15188
|
class Dx extends Gs {
|
|
15183
15189
|
/* *
|
|
15184
15190
|
*
|
|
@@ -15219,7 +15225,7 @@ class Dx extends Gs {
|
|
|
15219
15225
|
Ng(this, "select", n), Ng(this, "unselect", n);
|
|
15220
15226
|
}
|
|
15221
15227
|
isValid() {
|
|
15222
|
-
return
|
|
15228
|
+
return S3(this.y) && this.y >= 0;
|
|
15223
15229
|
}
|
|
15224
15230
|
setVisible(t, e = !0) {
|
|
15225
15231
|
t !== this.visible && this.update({
|
|
@@ -15228,10 +15234,10 @@ class Dx extends Gs {
|
|
|
15228
15234
|
}
|
|
15229
15235
|
slice(t, e, s) {
|
|
15230
15236
|
const n = this.series, o = n.chart;
|
|
15231
|
-
|
|
15237
|
+
y3(s, o), e = C3(e, !0), this.sliced = this.options.sliced = t = v3(t) ? t : !this.sliced, n.options.data[n.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate());
|
|
15232
15238
|
}
|
|
15233
15239
|
}
|
|
15234
|
-
|
|
15240
|
+
w3(Dx.prototype, {
|
|
15235
15241
|
connectorShapes: {
|
|
15236
15242
|
// Only one available before v7.0.0
|
|
15237
15243
|
fixedOffset: function(l, t, e) {
|
|
@@ -15274,7 +15280,7 @@ v3(Dx.prototype, {
|
|
|
15274
15280
|
const { angle: s = this.angle || 0, breakAt: n, touchingSliceAt: o } = t, { series: h } = this, [d, p, f] = h.center, b = f / 2, { plotLeft: k, plotWidth: y } = h.chart, w = l.alignment === "left", { x: M, y: T } = l;
|
|
15275
15281
|
let L = n.x;
|
|
15276
15282
|
if (e.crookDistance) {
|
|
15277
|
-
const B =
|
|
15283
|
+
const B = k3(
|
|
15278
15284
|
// % to fraction
|
|
15279
15285
|
e.crookDistance,
|
|
15280
15286
|
1
|
|
@@ -15287,7 +15293,7 @@ v3(Dx.prototype, {
|
|
|
15287
15293
|
}
|
|
15288
15294
|
}
|
|
15289
15295
|
});
|
|
15290
|
-
const
|
|
15296
|
+
const M3 = Dx, A3 = {
|
|
15291
15297
|
borderRadius: 3,
|
|
15292
15298
|
center: [null, null],
|
|
15293
15299
|
clip: !1,
|
|
@@ -15328,7 +15334,7 @@ const k3 = Dx, M3 = {
|
|
|
15328
15334
|
brightness: 0.1
|
|
15329
15335
|
}
|
|
15330
15336
|
}
|
|
15331
|
-
},
|
|
15337
|
+
}, T3 = A3, { getStartAndEndRadians: P3 } = Ex, { noop: Rg } = Xt, { clamp: L3, extend: O3, fireEvent: _g, merge: Dd, pick: E3 } = Nt;
|
|
15332
15338
|
let hm = class extends Ci {
|
|
15333
15339
|
/* *
|
|
15334
15340
|
*
|
|
@@ -15342,7 +15348,7 @@ let hm = class extends Ci {
|
|
|
15342
15348
|
const h = o.graphic, d = o.shapeArgs;
|
|
15343
15349
|
h && d && (h.attr({
|
|
15344
15350
|
// Animate from inner radius (#779)
|
|
15345
|
-
r:
|
|
15351
|
+
r: E3(o.startR, e.center && e.center[3] / 2),
|
|
15346
15352
|
start: n,
|
|
15347
15353
|
end: n
|
|
15348
15354
|
}), h.animate({
|
|
@@ -15378,7 +15384,7 @@ let hm = class extends Ci {
|
|
|
15378
15384
|
super.generatePoints(), this.updateTotals();
|
|
15379
15385
|
}
|
|
15380
15386
|
getX(t, e, s, n) {
|
|
15381
|
-
const o = this.center, h = this.radii ? this.radii[s.index] || 0 : o[2] / 2, d = n.dataLabelPosition, p = d?.distance || 0, f = Math.asin(
|
|
15387
|
+
const o = this.center, h = this.radii ? this.radii[s.index] || 0 : o[2] / 2, d = n.dataLabelPosition, p = d?.distance || 0, f = Math.asin(L3((t - o[1]) / (h + p), -1, 1));
|
|
15382
15388
|
return o[0] + (e ? -1 : 1) * (Math.cos(f) * (h + p)) + (p > 0 ? (e ? -1 : 1) * (n.padding || 0) : 0);
|
|
15383
15389
|
}
|
|
15384
15390
|
hasData() {
|
|
@@ -15401,7 +15407,7 @@ let hm = class extends Ci {
|
|
|
15401
15407
|
}
|
|
15402
15408
|
translate(t) {
|
|
15403
15409
|
_g(this, "translate"), this.generatePoints();
|
|
15404
|
-
const e = this, s = 1e3, n = e.options, o = n.slicedOffset, h =
|
|
15410
|
+
const e = this, s = 1e3, n = e.options, o = n.slicedOffset, h = P3(n.startAngle, n.endAngle), d = e.startAngleRad = h.start, p = e.endAngleRad = h.end, f = p - d, b = e.points, k = n.ignoreHiddenPoint, y = b.length;
|
|
15405
15411
|
let w, M, T, L, E, B, _, F = 0;
|
|
15406
15412
|
for (t || (e.center = t = e.getCenter()), B = 0; B < y; B++) {
|
|
15407
15413
|
_ = b[B], w = d + F * f, _.isValid() && (!k || _.visible) && (F += _.percentage / 100), M = d + F * f;
|
|
@@ -15432,8 +15438,8 @@ let hm = class extends Ci {
|
|
|
15432
15438
|
o = t[n], o.percentage = h > 0 && (o.visible || !s) ? o.y / h * 100 : 0, o.total = h;
|
|
15433
15439
|
}
|
|
15434
15440
|
};
|
|
15435
|
-
hm.defaultOptions = Dd(Ci.defaultOptions,
|
|
15436
|
-
|
|
15441
|
+
hm.defaultOptions = Dd(Ci.defaultOptions, T3);
|
|
15442
|
+
O3(hm.prototype, {
|
|
15437
15443
|
axisTypes: [],
|
|
15438
15444
|
directTouch: !0,
|
|
15439
15445
|
drawGraph: void 0,
|
|
@@ -15444,13 +15450,13 @@ L3(hm.prototype, {
|
|
|
15444
15450
|
isCartesian: !1,
|
|
15445
15451
|
noSharedTooltip: !0,
|
|
15446
15452
|
pointAttribs: Qa.prototype.pointAttribs,
|
|
15447
|
-
pointClass:
|
|
15453
|
+
pointClass: M3,
|
|
15448
15454
|
requireSorting: !1,
|
|
15449
15455
|
searchPoint: Rg,
|
|
15450
15456
|
trackerGroups: ["group", "dataLabelsGroup"]
|
|
15451
15457
|
});
|
|
15452
15458
|
ze.registerSeriesType("pie", hm);
|
|
15453
|
-
const { composed:
|
|
15459
|
+
const { composed: D3, noop: I3 } = Xt, { distribute: N3 } = Pl, { series: Bg } = ze, { arrayMax: R3, clamp: zg, defined: jg, isNumber: _3, pick: B3, pushUnique: z3, relativeLength: Fg } = Nt;
|
|
15454
15460
|
var Id;
|
|
15455
15461
|
(function(l) {
|
|
15456
15462
|
const t = {
|
|
@@ -15489,9 +15495,9 @@ var Id;
|
|
|
15489
15495
|
}
|
|
15490
15496
|
};
|
|
15491
15497
|
function e(d) {
|
|
15492
|
-
if (Dl.compose(Bg),
|
|
15498
|
+
if (Dl.compose(Bg), z3(D3, "PieDataLabel")) {
|
|
15493
15499
|
const p = d.prototype;
|
|
15494
|
-
p.dataLabelPositioners = t, p.alignDataLabel =
|
|
15500
|
+
p.dataLabelPositioners = t, p.alignDataLabel = I3, p.drawDataLabels = n, p.getDataLabelPosition = s, p.placeDataLabels = o, p.verifyDataLabelOverflow = h;
|
|
15495
15501
|
}
|
|
15496
15502
|
}
|
|
15497
15503
|
l.compose = e;
|
|
@@ -15569,9 +15575,9 @@ var Id;
|
|
|
15569
15575
|
rank: ut.y
|
|
15570
15576
|
}, it.push(ut.distributeBox));
|
|
15571
15577
|
});
|
|
15572
|
-
}), ft = mt + pt - rt,
|
|
15578
|
+
}), ft = mt + pt - rt, N3(it, ft, ft / 5)), H.forEach((ut) => {
|
|
15573
15579
|
(ut.dataLabels || []).forEach((bt) => {
|
|
15574
|
-
const Tt = bt.options || {}, It = ut.distributeBox, Ht = bt.dataLabelPosition, pe = Ht?.natural.y || 0,
|
|
15580
|
+
const Tt = bt.options || {}, It = ut.distributeBox, Ht = bt.dataLabelPosition, pe = Ht?.natural.y || 0, me = Tt.connectorPadding || 0, Et = bt.lineHeight || 21, jt = bt.getBBox(), Ct = (Et - jt.height) / 2;
|
|
15575
15581
|
let Pt = 0, Vt = pe, Qt = "inherit";
|
|
15576
15582
|
if (Ht) {
|
|
15577
15583
|
if (it && jg(It) && Ht.distance > 0 && (typeof It.pos > "u" ? Qt = "hidden" : (G = It.size, Vt = _.radialDistributionY(ut, bt))), Tt.justify)
|
|
@@ -15593,24 +15599,24 @@ var Id;
|
|
|
15593
15599
|
}, Ht.posAttribs = {
|
|
15594
15600
|
x: Pt + (Tt.x || 0) + // (#12985)
|
|
15595
15601
|
({
|
|
15596
|
-
left:
|
|
15597
|
-
right: -
|
|
15602
|
+
left: me,
|
|
15603
|
+
right: -me
|
|
15598
15604
|
}[Ht.alignment] || 0),
|
|
15599
15605
|
y: Vt + (Tt.y || 0) - // (#12985)
|
|
15600
15606
|
// Vertically center
|
|
15601
15607
|
Et / 2
|
|
15602
|
-
}, Ht.computed.x = Pt, Ht.computed.y = Vt - Ct,
|
|
15608
|
+
}, Ht.computed.x = Pt, Ht.computed.y = Vt - Ct, B3(Tt.crop, !0)) {
|
|
15603
15609
|
W = bt.getBBox().width;
|
|
15604
15610
|
let _t;
|
|
15605
|
-
Pt - W <
|
|
15611
|
+
Pt - W < me && J === 1 ? (_t = Math.round(W - Pt + me), B[3] = Math.max(_t, B[3])) : Pt + W > b - me && J === 0 && (_t = Math.round(Pt + W - b + me), B[1] = Math.max(_t, B[1])), Vt - G / 2 < 0 ? B[0] = Math.max(Math.round(-Vt + G / 2), B[0]) : Vt + G / 2 > k && (B[2] = Math.max(Math.round(Vt + G / 2 - k), B[2])), Ht.sideOverflow = _t;
|
|
15606
15612
|
}
|
|
15607
15613
|
}
|
|
15608
15614
|
});
|
|
15609
15615
|
}));
|
|
15610
|
-
}), (
|
|
15616
|
+
}), (R3(B) === 0 || this.verifyDataLabelOverflow(B)) && (this.placeDataLabels(), this.points.forEach((H) => {
|
|
15611
15617
|
(H.dataLabels || []).forEach((J) => {
|
|
15612
15618
|
const { connectorColor: et, connectorWidth: it = 1 } = J.options || {}, rt = J.dataLabelPosition;
|
|
15613
|
-
if (
|
|
15619
|
+
if (_3(it)) {
|
|
15614
15620
|
let mt;
|
|
15615
15621
|
F = J.connector, rt && rt.distance > 0 ? (mt = !F, F || (J.connector = F = f.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + H.colorIndex + (H.className ? " " + H.className : "")).add(d.dataLabelsGroup)), f.styledMode || F.attr({
|
|
15616
15622
|
"stroke-width": it,
|
|
@@ -15654,7 +15660,7 @@ var Id;
|
|
|
15654
15660
|
), this.translate(p), this.drawDataLabels && this.drawDataLabels()) : w = !0), w;
|
|
15655
15661
|
}
|
|
15656
15662
|
})(Id || (Id = {}));
|
|
15657
|
-
const
|
|
15663
|
+
const j3 = Id;
|
|
15658
15664
|
var Nd;
|
|
15659
15665
|
(function(l) {
|
|
15660
15666
|
function t(o) {
|
|
@@ -15684,11 +15690,11 @@ var Nd;
|
|
|
15684
15690
|
}
|
|
15685
15691
|
l.pointInPolygon = n;
|
|
15686
15692
|
})(Nd || (Nd = {}));
|
|
15687
|
-
const
|
|
15688
|
-
function
|
|
15693
|
+
const F3 = Nd, { pointInPolygon: H3 } = F3, { addEvent: W3, getAlignFactor: Y3, fireEvent: Ix, objectEach: Hg, pick: G3 } = Nt;
|
|
15694
|
+
function X3(l) {
|
|
15689
15695
|
const t = this, e = l.length, s = (y, w) => !(w.x >= y.x + y.width || w.x + w.width <= y.x || w.y >= y.y + y.height || w.y + w.height <= y.y), n = (y, w) => {
|
|
15690
15696
|
for (const M of y)
|
|
15691
|
-
if (
|
|
15697
|
+
if (H3({ x: M[0], y: M[1] }, w))
|
|
15692
15698
|
return !0;
|
|
15693
15699
|
return !1;
|
|
15694
15700
|
};
|
|
@@ -15697,7 +15703,7 @@ function G3(l) {
|
|
|
15697
15703
|
const w = y.box ? 0 : y.padding || 0, M = y.alignAttr || {
|
|
15698
15704
|
x: y.attr("x"),
|
|
15699
15705
|
y: y.attr("y")
|
|
15700
|
-
}, { height: T, polygon: L, width: E } = y.getBBox(), B =
|
|
15706
|
+
}, { height: T, polygon: L, width: E } = y.getBBox(), B = Y3(y.alignValue) * E;
|
|
15701
15707
|
return y.width = E, y.height = T, {
|
|
15702
15708
|
x: M.x + (y.parentGroup?.translateX || 0) + w - B,
|
|
15703
15709
|
y: M.y + (y.parentGroup?.translateY || 0) + w,
|
|
@@ -15732,9 +15738,9 @@ function G3(l) {
|
|
|
15732
15738
|
Nx(y, t) && (k = !0);
|
|
15733
15739
|
k && Ix(t, "afterHideAllOverlappingLabels");
|
|
15734
15740
|
}
|
|
15735
|
-
function
|
|
15741
|
+
function V3(l) {
|
|
15736
15742
|
const t = l.prototype;
|
|
15737
|
-
t.hideOverlappingLabels || (t.hideOverlappingLabels =
|
|
15743
|
+
t.hideOverlappingLabels || (t.hideOverlappingLabels = X3, W3(l, "render", U3));
|
|
15738
15744
|
}
|
|
15739
15745
|
function Nx(l, t) {
|
|
15740
15746
|
let e, s, n = !1;
|
|
@@ -15746,7 +15752,7 @@ function Nx(l, t) {
|
|
|
15746
15752
|
opacity: s
|
|
15747
15753
|
})), l.isOld = !0), n;
|
|
15748
15754
|
}
|
|
15749
|
-
function
|
|
15755
|
+
function U3() {
|
|
15750
15756
|
const l = this;
|
|
15751
15757
|
let t = [];
|
|
15752
15758
|
for (const e of l.labelCollectors || [])
|
|
@@ -15763,7 +15769,7 @@ function V3() {
|
|
|
15763
15769
|
for (const o of n)
|
|
15764
15770
|
o.visible && (o.dataLabels || []).forEach((h) => {
|
|
15765
15771
|
const d = h.options || {};
|
|
15766
|
-
h.labelrank =
|
|
15772
|
+
h.labelrank = G3(d.labelrank, o.labelrank, o.shapeArgs?.height), // #13449
|
|
15767
15773
|
d.allowOverlap ?? // Pie labels outside have a separate placement
|
|
15768
15774
|
// logic, skip the overlap logic
|
|
15769
15775
|
Number(d.distance) > 0 ? (h.oldOpacity = h.opacity, h.newOpacity = 1, Nx(h, l)) : t.push(h);
|
|
@@ -15773,15 +15779,15 @@ function V3() {
|
|
|
15773
15779
|
}
|
|
15774
15780
|
this.hideOverlappingLabels(t);
|
|
15775
15781
|
}
|
|
15776
|
-
const
|
|
15777
|
-
compose:
|
|
15778
|
-
}, Rx =
|
|
15782
|
+
const $3 = {
|
|
15783
|
+
compose: V3
|
|
15784
|
+
}, Rx = $3, { defaultOptions: q3 } = Ii, { noop: _x } = Xt, { addEvent: Wg, extend: Z3, isObject: Bx, merge: K3, relativeLength: cm } = Nt, Q3 = {
|
|
15779
15785
|
radius: 0,
|
|
15780
15786
|
scope: "stack",
|
|
15781
15787
|
where: void 0
|
|
15782
15788
|
};
|
|
15783
15789
|
let zx = _x, jx = _x;
|
|
15784
|
-
function
|
|
15790
|
+
function J3(l, t, e) {
|
|
15785
15791
|
const s = l[t];
|
|
15786
15792
|
let n = l[t + 1];
|
|
15787
15793
|
n[0] === "Z" && (n = l[0]);
|
|
@@ -15812,7 +15818,7 @@ function Q3(l, t, e) {
|
|
|
15812
15818
|
])), h[4] = Math.abs(b.end - b.start) < Math.PI ? 0 : 1;
|
|
15813
15819
|
}
|
|
15814
15820
|
}
|
|
15815
|
-
function
|
|
15821
|
+
function t5(l, t, e, s, n = {}) {
|
|
15816
15822
|
const o = zx(l, t, e, s, n), { brStart: h = !0, brEnd: d = !0, innerR: p = 0, r: f = e, start: b = 0, end: k = 0 } = n;
|
|
15817
15823
|
if (n.open || !n.borderRadius)
|
|
15818
15824
|
return o;
|
|
@@ -15826,12 +15832,12 @@ function J3(l, t, e, s, n = {}) {
|
|
|
15826
15832
|
), 0), T = Math.min(M, 2 * (y / Math.PI) * p);
|
|
15827
15833
|
let L = o.length - 1;
|
|
15828
15834
|
for (; L--; )
|
|
15829
|
-
!h && (L === 0 || L === 3) || !d && (L === 1 || L === 2) ||
|
|
15835
|
+
!h && (L === 0 || L === 3) || !d && (L === 1 || L === 2) || J3(o, L, L > 1 ? T : M);
|
|
15830
15836
|
return o;
|
|
15831
15837
|
}
|
|
15832
|
-
function
|
|
15838
|
+
function e5() {
|
|
15833
15839
|
if (this.options.borderRadius && !(this.chart.is3d && this.chart.is3d())) {
|
|
15834
|
-
const { options: l, yAxis: t } = this, e = l.stacking === "percent", s =
|
|
15840
|
+
const { options: l, yAxis: t } = this, e = l.stacking === "percent", s = q3.plotOptions?.[this.type]?.borderRadius, n = dm(l.borderRadius, Bx(s) ? s : {}), o = t.options.reversed;
|
|
15835
15841
|
for (const h of this.points) {
|
|
15836
15842
|
const { shapeArgs: d } = h;
|
|
15837
15843
|
if (h.shapeType === "roundedRect" && d) {
|
|
@@ -15850,32 +15856,32 @@ function t5() {
|
|
|
15850
15856
|
// Cap to the height, but not if where is `end`
|
|
15851
15857
|
M === "all" ? f / 2 : 1 / 0
|
|
15852
15858
|
) || 0;
|
|
15853
|
-
M === "end" && (w && (k -= T), y += T),
|
|
15859
|
+
M === "end" && (w && (k -= T), y += T), Z3(d, { brBoxHeight: y, brBoxY: k, r: T });
|
|
15854
15860
|
}
|
|
15855
15861
|
}
|
|
15856
15862
|
}
|
|
15857
15863
|
}
|
|
15858
|
-
function
|
|
15864
|
+
function i5(l, t, e) {
|
|
15859
15865
|
const s = l.types.pie;
|
|
15860
15866
|
if (!t.symbolCustomAttribs.includes("borderRadius")) {
|
|
15861
15867
|
const n = e.prototype.symbols;
|
|
15862
|
-
Wg(l, "afterColumnTranslate",
|
|
15868
|
+
Wg(l, "afterColumnTranslate", e5, {
|
|
15863
15869
|
// After columnrange and polar column modifications
|
|
15864
15870
|
order: 9
|
|
15865
|
-
}), Wg(s, "afterTranslate",
|
|
15871
|
+
}), Wg(s, "afterTranslate", s5), t.symbolCustomAttribs.push("borderRadius", "brBoxHeight", "brBoxY", "brEnd", "brStart"), zx = n.arc, jx = n.roundedRect, n.arc = t5, n.roundedRect = r5;
|
|
15866
15872
|
}
|
|
15867
15873
|
}
|
|
15868
15874
|
function dm(l, t) {
|
|
15869
|
-
return Bx(l) || (l = { radius: l || 0 }),
|
|
15875
|
+
return Bx(l) || (l = { radius: l || 0 }), K3(Q3, t, l);
|
|
15870
15876
|
}
|
|
15871
|
-
function
|
|
15877
|
+
function s5() {
|
|
15872
15878
|
const l = dm(this.options.borderRadius);
|
|
15873
15879
|
for (const t of this.points) {
|
|
15874
15880
|
const e = t.shapeArgs;
|
|
15875
15881
|
e && (e.borderRadius = cm(l.radius, (e.r || 0) - (e.innerR || 0)));
|
|
15876
15882
|
}
|
|
15877
15883
|
}
|
|
15878
|
-
function
|
|
15884
|
+
function r5(l, t, e, s, n = {}) {
|
|
15879
15885
|
const o = jx(l, t, e, s, n), { r: h = 0, brBoxHeight: d = s, brBoxY: p = t } = n, f = t - p, b = p + d - (t + s), k = f - h > -0.1 ? 0 : h, y = b - h > -0.1 ? 0 : h, w = Math.max(k && f, 0), M = Math.max(y && b, 0), T = [l + k, t], L = [l + e - k, t], E = [l + e, t + k], B = [
|
|
15880
15886
|
l + e,
|
|
15881
15887
|
t + s - y
|
|
@@ -15920,15 +15926,15 @@ function s5(l, t, e, s, n = {}) {
|
|
|
15920
15926
|
["Z"]
|
|
15921
15927
|
), o;
|
|
15922
15928
|
}
|
|
15923
|
-
const
|
|
15924
|
-
compose:
|
|
15929
|
+
const n5 = {
|
|
15930
|
+
compose: i5,
|
|
15925
15931
|
optionsToObject: dm
|
|
15926
|
-
},
|
|
15932
|
+
}, o5 = n5, { diffObjects: a5, extend: l5, find: h5, merge: c5, pick: Aa, uniqueKey: d5 } = Nt;
|
|
15927
15933
|
var Rd;
|
|
15928
15934
|
(function(l) {
|
|
15929
15935
|
function t(n) {
|
|
15930
15936
|
const o = n.prototype;
|
|
15931
|
-
return o.matchResponsiveRule ||
|
|
15937
|
+
return o.matchResponsiveRule || l5(o, {
|
|
15932
15938
|
matchResponsiveRule: e,
|
|
15933
15939
|
setResponsive: s
|
|
15934
15940
|
}), n;
|
|
@@ -15944,27 +15950,27 @@ var Rd;
|
|
|
15944
15950
|
const h = this.options.responsive, d = this.currentResponsive;
|
|
15945
15951
|
let p = [], f;
|
|
15946
15952
|
!o && h && h.rules && h.rules.forEach((y) => {
|
|
15947
|
-
typeof y._id > "u" && (y._id =
|
|
15953
|
+
typeof y._id > "u" && (y._id = d5()), this.matchResponsiveRule(
|
|
15948
15954
|
y,
|
|
15949
15955
|
p
|
|
15950
15956
|
/* , redraw */
|
|
15951
15957
|
);
|
|
15952
15958
|
}, this);
|
|
15953
|
-
const b =
|
|
15959
|
+
const b = c5(...p.map((y) => h5(h?.rules || [], (w) => w._id === y)).map((y) => y?.chartOptions));
|
|
15954
15960
|
b.isResponsiveOptions = !0, p = p.toString() || void 0;
|
|
15955
15961
|
const k = d?.ruleIds;
|
|
15956
|
-
p !== k && (d && (this.currentResponsive = void 0, this.updatingResponsive = !0, this.update(d.undoOptions, n, !0), this.updatingResponsive = !1), p ? (f =
|
|
15962
|
+
p !== k && (d && (this.currentResponsive = void 0, this.updatingResponsive = !0, this.update(d.undoOptions, n, !0), this.updatingResponsive = !1), p ? (f = a5(b, this.options, !0, this.collectionsWithUpdate), f.isResponsiveOptions = !0, this.currentResponsive = {
|
|
15957
15963
|
ruleIds: p,
|
|
15958
15964
|
mergedOptions: b,
|
|
15959
15965
|
undoOptions: f
|
|
15960
15966
|
}, this.updatingResponsive || this.update(b, n, !0)) : this.currentResponsive = void 0);
|
|
15961
15967
|
}
|
|
15962
15968
|
})(Rd || (Rd = {}));
|
|
15963
|
-
const
|
|
15969
|
+
const m5 = Rd, At = Xt;
|
|
15964
15970
|
At.AST = Yi;
|
|
15965
15971
|
At.Axis = ud;
|
|
15966
15972
|
At.Chart = Sx;
|
|
15967
|
-
At.Color =
|
|
15973
|
+
At.Color = xs;
|
|
15968
15974
|
At.DataLabel = Dl;
|
|
15969
15975
|
At.DataTableCore = _a;
|
|
15970
15976
|
At.Fx = xr;
|
|
@@ -15988,7 +15994,7 @@ At.Tooltip = xx;
|
|
|
15988
15994
|
At.animate = ri.animate;
|
|
15989
15995
|
At.animObject = ri.animObject;
|
|
15990
15996
|
At.chart = Sx.chart;
|
|
15991
|
-
At.color =
|
|
15997
|
+
At.color = xs.parse;
|
|
15992
15998
|
At.dateFormat = Ni.dateFormat;
|
|
15993
15999
|
At.defaultOptions = Ii.defaultOptions;
|
|
15994
16000
|
At.distribute = Pl.distribute;
|
|
@@ -16002,20 +16008,20 @@ At.setOptions = Ii.setOptions;
|
|
|
16002
16008
|
At.stop = ri.stop;
|
|
16003
16009
|
At.time = Ii.defaultTime;
|
|
16004
16010
|
At.timers = xr.timers;
|
|
16005
|
-
|
|
16006
|
-
|
|
16011
|
+
o5.compose(At.Series, At.SVGElement, At.SVGRenderer);
|
|
16012
|
+
l3.compose(At.Series.types.column);
|
|
16007
16013
|
Dl.compose(At.Series);
|
|
16008
|
-
|
|
16014
|
+
DP.compose(At.Axis);
|
|
16009
16015
|
fx.compose(At.SVGRenderer);
|
|
16010
16016
|
vx.compose(At.Chart);
|
|
16011
|
-
|
|
16017
|
+
RP.compose(At.Axis);
|
|
16012
16018
|
Rx.compose(At.Chart);
|
|
16013
|
-
|
|
16019
|
+
j3.compose(At.Series.types.pie);
|
|
16014
16020
|
gx.compose(At.Chart, At.Axis);
|
|
16015
16021
|
bx.compose(At.Chart);
|
|
16016
|
-
|
|
16017
|
-
|
|
16018
|
-
|
|
16022
|
+
m5.compose(At.Chart);
|
|
16023
|
+
yO.compose(At.Axis, At.Chart, At.Series);
|
|
16024
|
+
BO.compose(At.Axis, At.Chart, At.Series);
|
|
16019
16025
|
xx.compose(At.Pointer);
|
|
16020
16026
|
Nt.extend(At, Nt);
|
|
16021
16027
|
const Ja = At;
|
|
@@ -16035,14 +16041,14 @@ const Jc = {
|
|
|
16035
16041
|
this.logLevel === "debug" && console.log(...l);
|
|
16036
16042
|
}
|
|
16037
16043
|
};
|
|
16038
|
-
function
|
|
16044
|
+
function p5(l) {
|
|
16039
16045
|
if (l === void 0) {
|
|
16040
16046
|
Yn = Ja, delete Yn.__provided;
|
|
16041
16047
|
return;
|
|
16042
16048
|
}
|
|
16043
16049
|
Yn = l, Yn.__provided = !0;
|
|
16044
16050
|
}
|
|
16045
|
-
function
|
|
16051
|
+
function ls() {
|
|
16046
16052
|
return Yn;
|
|
16047
16053
|
}
|
|
16048
16054
|
const Yg = (l) => Array.isArray(l) ? l : [l];
|
|
@@ -16100,7 +16106,7 @@ function Ta(l, t = void 0) {
|
|
|
16100
16106
|
return Array.isArray(l) ? l.forEach(d) : d(l), e;
|
|
16101
16107
|
}
|
|
16102
16108
|
function kr(l) {
|
|
16103
|
-
l.highcharts &&
|
|
16109
|
+
l.highcharts && p5(l.highcharts);
|
|
16104
16110
|
const t = Object.assign(Object.assign({
|
|
16105
16111
|
title: { text: l.title || void 0 }
|
|
16106
16112
|
}, l.options || {}), Object.assign({ series: l.children ? Yg(l.children).filter((h) => {
|
|
@@ -16141,7 +16147,7 @@ function kr(l) {
|
|
|
16141
16147
|
Jc.log("Updating chart", JSON.parse(JSON.stringify(t))), n(t), o(), s.current.update(Object.assign(Object.assign({}, t), Ta(l.children, Qh)), !0);
|
|
16142
16148
|
else {
|
|
16143
16149
|
const h = l.chartConstructor || "chart";
|
|
16144
|
-
Jc.log("Creating chart using", h, "constructor"), s.current =
|
|
16150
|
+
Jc.log("Creating chart using", h, "constructor"), s.current = ls()[h](e.current, t);
|
|
16145
16151
|
}
|
|
16146
16152
|
}), Me.createElement("div", Object.assign({}, l.containerProps, { ref: e }));
|
|
16147
16153
|
}
|
|
@@ -16150,7 +16156,7 @@ function Hx(l) {
|
|
|
16150
16156
|
}
|
|
16151
16157
|
Hx.type = "Series";
|
|
16152
16158
|
kr.Series = Hx;
|
|
16153
|
-
typeof
|
|
16159
|
+
typeof ls().__provided > "u";
|
|
16154
16160
|
function Wx(l) {
|
|
16155
16161
|
return null;
|
|
16156
16162
|
}
|
|
@@ -16160,7 +16166,7 @@ Wx._HCReact = {
|
|
|
16160
16166
|
HC_Option: "series.area",
|
|
16161
16167
|
childOption: "series.area"
|
|
16162
16168
|
};
|
|
16163
|
-
typeof
|
|
16169
|
+
typeof ls().__provided > "u";
|
|
16164
16170
|
function Yx(l) {
|
|
16165
16171
|
return null;
|
|
16166
16172
|
}
|
|
@@ -16170,7 +16176,7 @@ Yx._HCReact = {
|
|
|
16170
16176
|
HC_Option: "series.areaspline",
|
|
16171
16177
|
childOption: "series.areaspline"
|
|
16172
16178
|
};
|
|
16173
|
-
typeof
|
|
16179
|
+
typeof ls().__provided > "u";
|
|
16174
16180
|
const Nl = (l) => {
|
|
16175
16181
|
const [t] = se(Object.assign({
|
|
16176
16182
|
chart: {
|
|
@@ -16190,7 +16196,7 @@ mm._HCReact = {
|
|
|
16190
16196
|
childOption: "series.bar"
|
|
16191
16197
|
};
|
|
16192
16198
|
Nl.type = "SeriesChart";
|
|
16193
|
-
typeof
|
|
16199
|
+
typeof ls().__provided > "u";
|
|
16194
16200
|
const Rl = (l) => {
|
|
16195
16201
|
const [t] = se(Object.assign({
|
|
16196
16202
|
chart: {
|
|
@@ -16210,7 +16216,7 @@ pm._HCReact = {
|
|
|
16210
16216
|
childOption: "series.column"
|
|
16211
16217
|
};
|
|
16212
16218
|
Rl.type = "SeriesChart";
|
|
16213
|
-
typeof
|
|
16219
|
+
typeof ls().__provided > "u";
|
|
16214
16220
|
function Gx(l) {
|
|
16215
16221
|
return null;
|
|
16216
16222
|
}
|
|
@@ -16220,7 +16226,7 @@ Gx._HCReact = {
|
|
|
16220
16226
|
HC_Option: "series.heatmap",
|
|
16221
16227
|
childOption: "series.heatmap"
|
|
16222
16228
|
};
|
|
16223
|
-
typeof
|
|
16229
|
+
typeof ls().__provided > "u";
|
|
16224
16230
|
function Xx(l) {
|
|
16225
16231
|
return null;
|
|
16226
16232
|
}
|
|
@@ -16230,7 +16236,7 @@ Xx._HCReact = {
|
|
|
16230
16236
|
HC_Option: "series.line",
|
|
16231
16237
|
childOption: "series.line"
|
|
16232
16238
|
};
|
|
16233
|
-
typeof
|
|
16239
|
+
typeof ls().__provided > "u";
|
|
16234
16240
|
const _l = (l) => {
|
|
16235
16241
|
const [t] = se(Object.assign({
|
|
16236
16242
|
chart: {
|
|
@@ -16250,7 +16256,7 @@ um._HCReact = {
|
|
|
16250
16256
|
childOption: "series.pie"
|
|
16251
16257
|
};
|
|
16252
16258
|
_l.type = "SeriesChart";
|
|
16253
|
-
typeof
|
|
16259
|
+
typeof ls().__provided > "u";
|
|
16254
16260
|
const Bl = (l) => {
|
|
16255
16261
|
const [t] = se(Object.assign({
|
|
16256
16262
|
chart: {
|
|
@@ -16270,7 +16276,7 @@ fm._HCReact = {
|
|
|
16270
16276
|
childOption: "series.scatter"
|
|
16271
16277
|
};
|
|
16272
16278
|
Bl.type = "SeriesChart";
|
|
16273
|
-
typeof
|
|
16279
|
+
typeof ls().__provided > "u";
|
|
16274
16280
|
const Kn = (l) => {
|
|
16275
16281
|
const [t] = se(Object.assign({
|
|
16276
16282
|
chart: {
|
|
@@ -16290,12 +16296,12 @@ gm._HCReact = {
|
|
|
16290
16296
|
childOption: "series.spline"
|
|
16291
16297
|
};
|
|
16292
16298
|
Kn.type = "SeriesChart";
|
|
16293
|
-
var za = { exports: {} },
|
|
16294
|
-
function
|
|
16299
|
+
var za = { exports: {} }, u5 = za.exports, Gg;
|
|
16300
|
+
function f5() {
|
|
16295
16301
|
return Gg || (Gg = 1, (function(l, t) {
|
|
16296
16302
|
(function(e, s) {
|
|
16297
16303
|
e._Highcharts = s(), l.exports = e._Highcharts;
|
|
16298
|
-
})(typeof window > "u" ?
|
|
16304
|
+
})(typeof window > "u" ? u5 : window, () => (() => {
|
|
16299
16305
|
let e, s;
|
|
16300
16306
|
var n, o, h, d, p, f, b, k, y, w, M, T, L, E, B, _, F, W, G = {};
|
|
16301
16307
|
G.d = (v, i) => {
|
|
@@ -16364,7 +16370,7 @@ function u5() {
|
|
|
16364
16370
|
};
|
|
16365
16371
|
return pt(i) ? m(r, i) : _t(i, m), a;
|
|
16366
16372
|
}
|
|
16367
|
-
function
|
|
16373
|
+
function me(v) {
|
|
16368
16374
|
return ft(v) ? v : [v];
|
|
16369
16375
|
}
|
|
16370
16376
|
function Et(v, i) {
|
|
@@ -16487,7 +16493,7 @@ function u5() {
|
|
|
16487
16493
|
let A = r ? g : u;
|
|
16488
16494
|
_t(u, function(C, P) {
|
|
16489
16495
|
if (!S && a && a.indexOf(P) > -1 && g[P]) {
|
|
16490
|
-
C =
|
|
16496
|
+
C = me(C), x[P] = [];
|
|
16491
16497
|
for (let D = 0; D < Math.max(C.length, g[P].length); D++) g[P][D] && (C[D] === void 0 ? x[P][D] = g[P][D] : (x[P][D] = {}, m(C[D], g[P][D], x[P][D], S + 1)));
|
|
16492
16498
|
} else ut(C, !0) && !C.nodeType ? (x[P] = ft(C) ? [] : {}, m(C, g[P] || {}, x[P], S + 1), Object.keys(x[P]).length === 0 && (P !== "colorAxis" || S !== 0) && delete x[P]) : (u[P] !== g[P] || P in u && !(P in g)) && P !== "__proto__" && P !== "constructor" && (x[P] = A[P]);
|
|
16493
16499
|
});
|
|
@@ -16574,7 +16580,7 @@ function u5() {
|
|
|
16574
16580
|
for (a of (r = v, i)) v = v.replace(a[0], a[1]);
|
|
16575
16581
|
while (v !== r);
|
|
16576
16582
|
return v;
|
|
16577
|
-
}, splat:
|
|
16583
|
+
}, splat: me, stableSort: function(v, i) {
|
|
16578
16584
|
let r, a, c = v.length;
|
|
16579
16585
|
for (a = 0; a < c; a++) v[a].safeI = a;
|
|
16580
16586
|
for (v.sort(function(m, u) {
|
|
@@ -16771,7 +16777,7 @@ function u5() {
|
|
|
16771
16777
|
} }, { regex: /^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i, parse: function(v) {
|
|
16772
16778
|
return [Ut(v[1], 16), Ut(v[2], 16), Ut(v[3], 16), Wt(v[4]) ? Ut(v[4], 16) / 255 : 1];
|
|
16773
16779
|
} }], te.useColorMix = Ft.CSS?.supports("color", "color-mix(in srgb,red,blue 9%)"), te.None = new te("");
|
|
16774
|
-
let { parse: le } = te, { win: je } = H, { isNumber: ee, objectEach:
|
|
16780
|
+
let { parse: le } = te, { win: je } = H, { isNumber: ee, objectEach: hs } = vt;
|
|
16775
16781
|
class ti {
|
|
16776
16782
|
constructor(i, r, a) {
|
|
16777
16783
|
this.pos = NaN, this.options = r, this.elem = i, this.prop = a;
|
|
@@ -16807,7 +16813,7 @@ function u5() {
|
|
|
16807
16813
|
}
|
|
16808
16814
|
step(i) {
|
|
16809
16815
|
let r, a, c = +/* @__PURE__ */ new Date(), m = this.options, u = this.elem, g = m.complete, x = m.duration, S = m.curAnim;
|
|
16810
|
-
return u.attr && !u.element ? r = !1 : i || c >= x + this.startTime ? (this.now = this.end, this.pos = 1, this.update(), S[this.prop] = !0, a = !0,
|
|
16816
|
+
return u.attr && !u.element ? r = !1 : i || c >= x + this.startTime ? (this.now = this.end, this.pos = 1, this.update(), S[this.prop] = !0, a = !0, hs(S, function(A) {
|
|
16811
16817
|
A !== !0 && (a = !1);
|
|
16812
16818
|
}), a && g && g.call(u), r = !1) : (this.pos = m.easing((c - this.startTime) / x), this.now = this.start + (this.end - this.start) * this.pos, this.update(), r = !0), r;
|
|
16813
16819
|
}
|
|
@@ -17027,10 +17033,10 @@ function u5() {
|
|
|
17027
17033
|
return (X.targets || []).some(() => (c[C].pos = X.pos + U, a !== void 0 && Math.abs(c[C].pos - c[C].target) > a ? (c.slice(0, C + 1).forEach((q) => delete q.pos), c.reducedLen = (c.reducedLen || r) - 0.1 * r, c.reducedLen > 0.1 * r && v(c, r, a), !0) : (U += c[C].size, C++, !1)));
|
|
17028
17034
|
}), Vl(c, u), c;
|
|
17029
17035
|
};
|
|
17030
|
-
let co = h, { animate: Sb, animObject: Cb, stop: Om } = si, { deg2rad: Em, doc: Mr, svg: kb, SVG_NS: mo, win: Mb, isFirefox: Ab } = H, { addEvent: Tb, attr: Ul, createElement: Pb, crisp: po, css: Dm, defined: Vi, erase: Lb, extend: nn, fireEvent: $l, getAlignFactor: ql, isArray: Im, isFunction: Nm, isNumber: Ob, isObject: Eb, isString: Rm, merge: Zl, objectEach: Ar, pick:
|
|
17036
|
+
let co = h, { animate: Sb, animObject: Cb, stop: Om } = si, { deg2rad: Em, doc: Mr, svg: kb, SVG_NS: mo, win: Mb, isFirefox: Ab } = H, { addEvent: Tb, attr: Ul, createElement: Pb, crisp: po, css: Dm, defined: Vi, erase: Lb, extend: nn, fireEvent: $l, getAlignFactor: ql, isArray: Im, isFunction: Nm, isNumber: Ob, isObject: Eb, isString: Rm, merge: Zl, objectEach: Ar, pick: cs, pInt: uo, pushUnique: Db, replaceNested: Ib, syncTimeout: Nb, uniqueKey: _m } = vt;
|
|
17031
17037
|
class $e {
|
|
17032
17038
|
_defaultGetter(i) {
|
|
17033
|
-
let r =
|
|
17039
|
+
let r = cs(this[i + "Value"], this[i], this.element ? this.element.getAttribute(i) : null, 0);
|
|
17034
17040
|
return /^-?[\d\.]+$/.test(r) && (r = parseFloat(r)), r;
|
|
17035
17041
|
}
|
|
17036
17042
|
_defaultSetter(i, r, a) {
|
|
@@ -17054,7 +17060,7 @@ function u5() {
|
|
|
17054
17060
|
i ? (this.alignOptions = i, this.alignByTranslate = r, this.alignTo = a) : (i = this.alignOptions || {}, r = this.alignByTranslate, a = this.alignTo);
|
|
17055
17061
|
let x = !a || Rm(a) ? a || "renderer" : void 0;
|
|
17056
17062
|
x && (g && Db(u, this), a = void 0);
|
|
17057
|
-
let S =
|
|
17063
|
+
let S = cs(a, m[x], m), A = (S.x || 0) + (i.x || 0) + ((S.width || 0) - (i.width || 0)) * ql(i.align), C = (S.y || 0) + (i.y || 0) + ((S.height || 0) - (i.height || 0)) * ql(i.verticalAlign), P = { "text-align": i?.align };
|
|
17058
17064
|
return P[r ? "translateX" : "x"] = Math.round(A), P[r ? "translateY" : "y"] = Math.round(C), c && (this[this.placed ? "animate" : "attr"](P), this.placed = !0), this.alignAttr = P, this;
|
|
17059
17065
|
}
|
|
17060
17066
|
alignSetter(i) {
|
|
@@ -17062,7 +17068,7 @@ function u5() {
|
|
|
17062
17068
|
r[i] && (this.alignValue = i, this.element.setAttribute("text-anchor", r[i]));
|
|
17063
17069
|
}
|
|
17064
17070
|
animate(i, r, a) {
|
|
17065
|
-
let c = Cb(
|
|
17071
|
+
let c = Cb(cs(r, this.renderer.globalAnimation, !0)), m = c.defer;
|
|
17066
17072
|
return Mr.hidden && (c.duration = 0), c.duration !== 0 ? (a && (c.complete = a), Nb(() => {
|
|
17067
17073
|
this.element && Sb(this, i, c);
|
|
17068
17074
|
}, m)) : (this.attr(i, void 0, a || c.complete), Ar(i, function(u, g) {
|
|
@@ -17151,7 +17157,7 @@ function u5() {
|
|
|
17151
17157
|
let r, a = this["stroke-width"];
|
|
17152
17158
|
if (a === "inherit" && (a = 1), i) {
|
|
17153
17159
|
let c = (i = i.toLowerCase()).replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot", "3,1,1,1").replace("shortdot", "1,1,").replace("shortdash", "3,1,").replace("longdash", "8,3,").replace(/dot/g, "1,3,").replace("dash", "4,3,").replace(/,$/, "").split(",");
|
|
17154
|
-
for (r = c.length; r--; ) c[r] = "" + uo(c[r]) *
|
|
17160
|
+
for (r = c.length; r--; ) c[r] = "" + uo(c[r]) * cs(a, NaN);
|
|
17155
17161
|
i = c.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", i);
|
|
17156
17162
|
}
|
|
17157
17163
|
}
|
|
@@ -17182,7 +17188,7 @@ function u5() {
|
|
|
17182
17188
|
a.setAttributeNS("http://www.w3.org/1999/xlink", r, i);
|
|
17183
17189
|
}
|
|
17184
17190
|
getBBox(i, r) {
|
|
17185
|
-
let a, c, m, u, { alignValue: g, element: x, renderer: S, styles: A, textStr: C } = this, { cache: P, cacheKeys: D } = S, I = x.namespaceURI === this.SVG_NS, j =
|
|
17191
|
+
let a, c, m, u, { alignValue: g, element: x, renderer: S, styles: A, textStr: C } = this, { cache: P, cacheKeys: D } = S, I = x.namespaceURI === this.SVG_NS, j = cs(r, this.rotation, 0), z = S.styledMode ? x && $e.prototype.getStyle.call(x, "font-size") : A.fontSize;
|
|
17186
17192
|
if (Vi(C) && ((u = C.toString()).indexOf("<") === -1 && (u = u.replace(/\d/g, "0")), u += ["", S.rootFontSize, z, j, this.textWidth, g, A.lineClamp, A.textOverflow, A.fontWeight].join(",")), u && !i && (a = P[u]), !a || a.polygon) {
|
|
17187
17193
|
if (I || S.forExport) {
|
|
17188
17194
|
try {
|
|
@@ -17267,7 +17273,7 @@ function u5() {
|
|
|
17267
17273
|
symbolAttr(i) {
|
|
17268
17274
|
let r = this;
|
|
17269
17275
|
$e.symbolCustomAttribs.forEach(function(a) {
|
|
17270
|
-
r[a] =
|
|
17276
|
+
r[a] = cs(i[a], r[a]);
|
|
17271
17277
|
}), r.attr({ d: r.renderer.symbols[r.symbolName](r.x, r.y, r.width, r.height, r) });
|
|
17272
17278
|
}
|
|
17273
17279
|
textSetter(i) {
|
|
@@ -17275,7 +17281,7 @@ function u5() {
|
|
|
17275
17281
|
}
|
|
17276
17282
|
titleSetter(i) {
|
|
17277
17283
|
let r = this.element, a = r.getElementsByTagName("title")[0] || Mr.createElementNS(this.SVG_NS, "title");
|
|
17278
|
-
r.insertBefore ? r.insertBefore(a, r.firstChild) : r.appendChild(a), a.textContent = Ib(
|
|
17284
|
+
r.insertBefore ? r.insertBefore(a, r.firstChild) : r.appendChild(a), a.textContent = Ib(cs(i, ""), [/<[^>]*>/g, ""]).replace(/</g, "<").replace(/>/g, ">");
|
|
17279
17285
|
}
|
|
17280
17286
|
toFront() {
|
|
17281
17287
|
let i = this.element;
|
|
@@ -17286,7 +17292,7 @@ function u5() {
|
|
|
17286
17292
|
}
|
|
17287
17293
|
updateTransform(i = "transform") {
|
|
17288
17294
|
let { element: r, foreignObject: a, matrix: c, padding: m, rotation: u = 0, rotationOriginX: g, rotationOriginY: x, scaleX: S, scaleY: A, text: C, translateX: P = 0, translateY: D = 0 } = this, I = ["translate(" + P + "," + D + ")"];
|
|
17289
|
-
Vi(c) && I.push("matrix(" + c.join(",") + ")"), u && (I.push("rotate(" + u + " " + (g ?? r.getAttribute("x") ?? this.x ?? 0) + " " + (x ?? r.getAttribute("y") ?? this.y ?? 0) + ")"), C?.element.tagName !== "SPAN" || C?.foreignObject || C.attr({ rotation: u, rotationOriginX: (g || 0) - m, rotationOriginY: (x || 0) - m })), (Vi(S) || Vi(A)) && I.push("scale(" +
|
|
17295
|
+
Vi(c) && I.push("matrix(" + c.join(",") + ")"), u && (I.push("rotate(" + u + " " + (g ?? r.getAttribute("x") ?? this.x ?? 0) + " " + (x ?? r.getAttribute("y") ?? this.y ?? 0) + ")"), C?.element.tagName !== "SPAN" || C?.foreignObject || C.attr({ rotation: u, rotationOriginX: (g || 0) - m, rotationOriginY: (x || 0) - m })), (Vi(S) || Vi(A)) && I.push("scale(" + cs(S, 1) + " " + cs(A, 1) + ")"), I.length && !(C || this).textPath && (a?.element || r).setAttribute(i, I.join(" "));
|
|
17290
17296
|
}
|
|
17291
17297
|
visibilitySetter(i, r, a) {
|
|
17292
17298
|
i === "inherit" ? a.removeAttribute(r) : this[r] !== i && a.setAttribute(r, i), this[r] = i;
|
|
@@ -19813,7 +19819,7 @@ function u5() {
|
|
|
19813
19819
|
let { numberFormatter: v } = this.series.chart;
|
|
19814
19820
|
return typeof this.y != "number" ? "" : v(this.y, -1);
|
|
19815
19821
|
}, padding: 5, style: { fontSize: "0.7em", fontWeight: "bold", color: "contrast", textOutline: "1px contrast" }, verticalAlign: "bottom", x: 0, y: 0 }, cropThreshold: 300, opacity: 1, pointRange: 0, softThreshold: !0, states: { normal: { animation: !0 }, hover: { animation: { duration: 150 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } }, select: { animation: { duration: 0 } }, inactive: { animation: { duration: 150 }, opacity: 0.2 } }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" }, _i.types = Be.seriesTypes, _i.registerType = Be.registerSeriesType, _i.keepProps = ["colorIndex", "eventOptions", "navigatorSeries", "symbolIndex", "baseSeries"], _i.keepPropsForPoints = ["data", "isDirtyData", "isDirtyCanvas", "points", "dataTable", "processedData", "xIncrement", "cropped", "_hasPointMarkers", "hasDataLabels", "nodes", "layout", "level", "mapMap", "mapData", "minY", "maxY", "minX", "maxX", "transformGroups"], Nr(_i.prototype, { axisTypes: ["xAxis", "yAxis"], coll: "series", colorCounter: 0, directTouch: !1, invertible: !0, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: Ms, requireSorting: !0, sorted: !0 }), Be.series = _i;
|
|
19816
|
-
let vi = _i, { animObject: X2, setAnimation: V2 } = si, { registerEventOptions: Ip } = wo, { composed: U2, marginNames: Np } = H, { distribute: $2 } = co, { format: q2 } = Pi, { addEvent: Bo, createElement: Z2, css: K2, defined: wh, discardElement: Q2, find: J2, fireEvent:
|
|
19822
|
+
let vi = _i, { animObject: X2, setAnimation: V2 } = si, { registerEventOptions: Ip } = wo, { composed: U2, marginNames: Np } = H, { distribute: $2 } = co, { format: q2 } = Pi, { addEvent: Bo, createElement: Z2, css: K2, defined: wh, discardElement: Q2, find: J2, fireEvent: ds, isNumber: Rp, merge: er, pick: Bi, pushUnique: tv, relativeLength: ev, stableSort: iv, syncTimeout: sv } = vt;
|
|
19817
19823
|
class Sh {
|
|
19818
19824
|
constructor(i, r) {
|
|
19819
19825
|
this.allItems = [], this.initialItemY = 0, this.itemHeight = 0, this.itemMarginBottom = 0, this.itemMarginTop = 0, this.itemX = 0, this.itemY = 0, this.lastItemY = 0, this.lastLineHeight = 0, this.legendHeight = 0, this.legendWidth = 0, this.maxItemWidth = 0, this.maxLegendWidth = 0, this.offsetWidth = 0, this.padding = 0, this.pages = [], this.symbolHeight = 0, this.symbolWidth = 0, this.titleHeight = 0, this.totalItemWidth = 0, this.widthOption = 0, this.chart = i, this.setOptions(r), r.enabled && (this.render(), Ip(this, r), Bo(this.chart, "endResize", function() {
|
|
@@ -19828,7 +19834,7 @@ function u5() {
|
|
|
19828
19834
|
}
|
|
19829
19835
|
update(i, r) {
|
|
19830
19836
|
let a = this.chart;
|
|
19831
|
-
this.setOptions(er(!0, this.options, i)), "events" in this.options && Ip(this, this.options), this.destroy(), a.isDirtyLegend = a.isDirtyBox = !0, Bi(r, !0) && a.redraw(),
|
|
19837
|
+
this.setOptions(er(!0, this.options, i)), "events" in this.options && Ip(this, this.options), this.destroy(), a.isDirtyLegend = a.isDirtyBox = !0, Bi(r, !0) && a.redraw(), ds(this, "afterUpdate", { redraw: r });
|
|
19832
19838
|
}
|
|
19833
19839
|
colorizeItem(i, r) {
|
|
19834
19840
|
let a = i.color, { area: c, group: m, label: u, line: g, symbol: x } = i.legendItem || {};
|
|
@@ -19836,7 +19842,7 @@ function u5() {
|
|
|
19836
19842
|
let { itemHiddenStyle: S = {} } = this, A = S.color, { fillColor: C, fillOpacity: P, lineColor: D, marker: I } = i.options, j = (z) => (!r && (z.fill && (z.fill = A), z.stroke && (z.stroke = A)), z);
|
|
19837
19843
|
u?.css(er(r ? this.itemStyle : S)), g?.attr(j({ stroke: D || i.color })), x && x.attr(j(I && x.isMarker ? i.pointAttribs() : { fill: i.color })), c?.attr(j({ fill: C || i.color, "fill-opacity": C ? 1 : P ?? 0.75 }));
|
|
19838
19844
|
}
|
|
19839
|
-
i.color = a,
|
|
19845
|
+
i.color = a, ds(this, "afterColorizeItem", { item: i, visible: r });
|
|
19840
19846
|
}
|
|
19841
19847
|
positionItems() {
|
|
19842
19848
|
this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
|
|
@@ -19846,7 +19852,7 @@ function u5() {
|
|
|
19846
19852
|
if (r?.element) {
|
|
19847
19853
|
let S = { translateX: g ? a : this.legendWidth - a - 2 * u - 4, translateY: c };
|
|
19848
19854
|
r[wh(r.translateY) ? "animate" : "attr"](S, void 0, () => {
|
|
19849
|
-
|
|
19855
|
+
ds(this, "afterPositionItem", { item: i });
|
|
19850
19856
|
});
|
|
19851
19857
|
}
|
|
19852
19858
|
x && (x.x = a, x.y = c);
|
|
@@ -19891,7 +19897,7 @@ function u5() {
|
|
|
19891
19897
|
return this.chart.series.forEach(function(r) {
|
|
19892
19898
|
let a = r?.options;
|
|
19893
19899
|
r && Bi(a.showInLegend, !wh(a.linkedTo) && void 0, !0) && (i = i.concat(r.legendItem?.labels || (a.legendType === "point" ? r.data : r)));
|
|
19894
|
-
}),
|
|
19900
|
+
}), ds(this, "afterGetAllItems", { allItems: i }), i;
|
|
19895
19901
|
}
|
|
19896
19902
|
getAlignment() {
|
|
19897
19903
|
let i = this.options;
|
|
@@ -19914,7 +19920,7 @@ function u5() {
|
|
|
19914
19920
|
}
|
|
19915
19921
|
render() {
|
|
19916
19922
|
let i = this.chart, r = i.renderer, a = this.options, c = this.padding, m = this.getAllItems(), u, g, x, S = this.group, A, C = this.box;
|
|
19917
|
-
this.itemX = c, this.itemY = this.initialItemY, this.offsetWidth = 0, this.lastItemY = 0, this.widthOption = ev(a.width, i.spacingBox.width - c), A = i.spacingBox.width - 2 * c - a.x, ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) > -1 && (A /= 2), this.maxLegendWidth = this.widthOption || A, S || (this.group = S = r.g("legend").addClass(a.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = r.g().attr({ zIndex: 1 }).add(S), this.scrollGroup = r.g().add(this.contentGroup)), this.renderTitle(), iv(m, (P, D) => (P.options?.legendIndex || 0) - (D.options?.legendIndex || 0)), a.reversed && m.reverse(), this.allItems = m, this.display = u = !!m.length, this.lastLineHeight = 0, this.maxItemWidth = 0, this.totalItemWidth = 0, this.itemHeight = 0, m.forEach(this.renderItem, this), m.forEach(this.layoutItem, this), g = (this.widthOption || this.offsetWidth) + c, x = this.lastItemY + this.lastLineHeight + this.titleHeight, x = this.handleOverflow(x) + c, C || (this.box = C = r.rect().addClass("highcharts-legend-box").attr({ r: a.borderRadius }).add(S)), i.styledMode || C.attr({ stroke: a.borderColor, "stroke-width": a.borderWidth || 0, fill: a.backgroundColor || "none" }).shadow(a.shadow), g > 0 && x > 0 && C[C.placed ? "animate" : "attr"](C.crisp.call({}, { x: 0, y: 0, width: g, height: x }, C.strokeWidth())), S[u ? "show" : "hide"](), i.styledMode && S.getStyle("display") === "none" && (g = x = 0), this.legendWidth = g, this.legendHeight = x, u && this.align(), this.proximate || this.positionItems(),
|
|
19923
|
+
this.itemX = c, this.itemY = this.initialItemY, this.offsetWidth = 0, this.lastItemY = 0, this.widthOption = ev(a.width, i.spacingBox.width - c), A = i.spacingBox.width - 2 * c - a.x, ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) > -1 && (A /= 2), this.maxLegendWidth = this.widthOption || A, S || (this.group = S = r.g("legend").addClass(a.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = r.g().attr({ zIndex: 1 }).add(S), this.scrollGroup = r.g().add(this.contentGroup)), this.renderTitle(), iv(m, (P, D) => (P.options?.legendIndex || 0) - (D.options?.legendIndex || 0)), a.reversed && m.reverse(), this.allItems = m, this.display = u = !!m.length, this.lastLineHeight = 0, this.maxItemWidth = 0, this.totalItemWidth = 0, this.itemHeight = 0, m.forEach(this.renderItem, this), m.forEach(this.layoutItem, this), g = (this.widthOption || this.offsetWidth) + c, x = this.lastItemY + this.lastLineHeight + this.titleHeight, x = this.handleOverflow(x) + c, C || (this.box = C = r.rect().addClass("highcharts-legend-box").attr({ r: a.borderRadius }).add(S)), i.styledMode || C.attr({ stroke: a.borderColor, "stroke-width": a.borderWidth || 0, fill: a.backgroundColor || "none" }).shadow(a.shadow), g > 0 && x > 0 && C[C.placed ? "animate" : "attr"](C.crisp.call({}, { x: 0, y: 0, width: g, height: x }, C.strokeWidth())), S[u ? "show" : "hide"](), i.styledMode && S.getStyle("display") === "none" && (g = x = 0), this.legendWidth = g, this.legendHeight = x, u && this.align(), this.proximate || this.positionItems(), ds(this, "afterRender");
|
|
19918
19924
|
}
|
|
19919
19925
|
align(i = this.chart.spacingBox) {
|
|
19920
19926
|
let r = this.chart, a = this.options, c = i.y;
|
|
@@ -19942,7 +19948,7 @@ function u5() {
|
|
|
19942
19948
|
}), x.attr({ text: A + "/" + m }), [this.down, this.downTracker].forEach(function(C) {
|
|
19943
19949
|
C.attr({ x: 18 + this.pager.getBBox().width, class: A === m ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
|
|
19944
19950
|
}, this), a.styledMode || (this.up.attr({ fill: A === 1 ? g.inactiveColor : g.activeColor }), this.upTracker.css({ cursor: A === 1 ? "default" : "pointer" }), this.down.attr({ fill: A === m ? g.inactiveColor : g.activeColor }), this.downTracker.css({ cursor: A === m ? "default" : "pointer" })), this.scrollOffset = -c[A - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = A, this.positionCheckboxes(), sv(() => {
|
|
19945
|
-
|
|
19951
|
+
ds(this, "afterScroll", { currentPage: A });
|
|
19946
19952
|
}, X2(Bi(r, a.renderer.globalAnimation, !0)).duration));
|
|
19947
19953
|
}
|
|
19948
19954
|
setItemEvents(i, r, a) {
|
|
@@ -19961,13 +19967,13 @@ function u5() {
|
|
|
19961
19967
|
let j = function() {
|
|
19962
19968
|
i.setVisible && i.setVisible(), P(i.visible ? "inactive" : "");
|
|
19963
19969
|
};
|
|
19964
|
-
u.removeClass(S),
|
|
19970
|
+
u.removeClass(S), ds(c, "itemClick", { browserEvent: I, legendItem: i }, j), g ? i.firePointEvent("legendItemClick", { browserEvent: I }) : x && ds(i, "legendItemClick", { browserEvent: I });
|
|
19965
19971
|
});
|
|
19966
19972
|
}
|
|
19967
19973
|
createCheckboxForItem(i) {
|
|
19968
19974
|
i.checkbox = Z2("input", { type: "checkbox", className: "highcharts-legend-checkbox", checked: i.selected, defaultChecked: i.selected }, this.options.itemCheckboxStyle, this.chart.container), Bo(i.checkbox, "click", function(r) {
|
|
19969
19975
|
let a = r.target;
|
|
19970
|
-
|
|
19976
|
+
ds(i.series || i, "checkboxClick", { checked: a.checked, item: i }, function() {
|
|
19971
19977
|
i.select();
|
|
19972
19978
|
});
|
|
19973
19979
|
});
|
|
@@ -21285,14 +21291,14 @@ function u5() {
|
|
|
21285
21291
|
})());
|
|
21286
21292
|
})(za)), za.exports;
|
|
21287
21293
|
}
|
|
21288
|
-
var
|
|
21289
|
-
const Kr = /* @__PURE__ */ Qr(
|
|
21290
|
-
var ja = { exports: {} },
|
|
21291
|
-
function
|
|
21294
|
+
var g5 = f5();
|
|
21295
|
+
const Kr = /* @__PURE__ */ Qr(g5);
|
|
21296
|
+
var ja = { exports: {} }, x5 = ja.exports, Xg;
|
|
21297
|
+
function b5() {
|
|
21292
21298
|
return Xg || (Xg = 1, (function(l, t) {
|
|
21293
21299
|
(function(e, s) {
|
|
21294
21300
|
l.exports = s(e._Highcharts, e._Highcharts.AST, e._Highcharts.Chart);
|
|
21295
|
-
})(typeof window > "u" ?
|
|
21301
|
+
})(typeof window > "u" ? x5 : window, (e, s, n) => (() => {
|
|
21296
21302
|
var o, h, d = { 660: (yt) => {
|
|
21297
21303
|
yt.exports = s;
|
|
21298
21304
|
}, 944: (yt) => {
|
|
@@ -21454,7 +21460,7 @@ function x5() {
|
|
|
21454
21460
|
let ot = await st.text(), dt = document.createElement("a");
|
|
21455
21461
|
dt.href = `data:${V.type};base64,${ot}`, dt.download = V.filename, dt.click(), Tt(dt);
|
|
21456
21462
|
}
|
|
21457
|
-
} }, { defaultOptions: pe, setOptions:
|
|
21463
|
+
} }, { defaultOptions: pe, setOptions: me } = y(), { downloadURL: Et, getScript: jt } = { downloadURL: function(yt, V) {
|
|
21458
21464
|
let tt = _.navigator, lt = F.createElement("a");
|
|
21459
21465
|
if (typeof yt != "string" && !(yt instanceof String) && tt.msSaveOrOpenBlob) return void tt.msSaveOrOpenBlob(yt, V);
|
|
21460
21466
|
if (yt = "" + yt, tt.userAgent.length > 1e3) throw Error("Input too long");
|
|
@@ -21621,14 +21627,14 @@ function x5() {
|
|
|
21621
21627
|
Mt.exporting?.openMenu && le.hideMenu();
|
|
21622
21628
|
})), tt.forEach(function(ee) {
|
|
21623
21629
|
if (typeof ee == "string" && St.options.menuItemDefinitions?.[ee] && (ee = St.options.menuItemDefinitions[ee]), qs(ee, !0)) {
|
|
21624
|
-
let
|
|
21625
|
-
ee.separator ?
|
|
21630
|
+
let hs;
|
|
21631
|
+
ee.separator ? hs = Ye("hr", void 0, void 0, te) : (ee.textKey === "viewData" && St.isDataTableVisible && (ee.textKey = "hideData"), hs = Ye("li", { className: "highcharts-menu-item", onclick: function(ti) {
|
|
21626
21632
|
ti && ti.stopPropagation(), le.hideMenu(), typeof ee != "string" && ee.onclick && ee.onclick.apply(Mt, arguments);
|
|
21627
|
-
} }, void 0, te), M().setElementHTML(
|
|
21633
|
+
} }, void 0, te), M().setElementHTML(hs, ee.text || Mt.options.lang[ee.textKey]), Mt.styledMode || (hs.onmouseover = function() {
|
|
21628
21634
|
be(this, qt?.menuItemHoverStyle || {});
|
|
21629
|
-
},
|
|
21635
|
+
}, hs.onmouseout = function() {
|
|
21630
21636
|
be(this, qt?.menuItemStyle || {});
|
|
21631
|
-
}, be(
|
|
21637
|
+
}, be(hs, li({ cursor: "pointer" }, qt?.menuItemStyle || {})))), St.divElements.push(hs);
|
|
21632
21638
|
}
|
|
21633
21639
|
}), St.divElements.push(te, le), St.menuHeight = le.offsetHeight, St.menuWidth = le.offsetWidth);
|
|
21634
21640
|
let je = { display: "block" };
|
|
@@ -21838,7 +21844,7 @@ function x5() {
|
|
|
21838
21844
|
return this.exporting?.print();
|
|
21839
21845
|
} }), st.prototype.callbacks.push(V), We(st, "afterInit", tt), We(st, "layOutTitle", lt), _t && ae.matchMedia("print").addListener(function(dt) {
|
|
21840
21846
|
yt.printingChart && (dt.matches ? yt.printingChart.exporting?.beforePrint() : yt.printingChart.exporting?.afterPrint());
|
|
21841
|
-
}),
|
|
21847
|
+
}), me(J));
|
|
21842
21848
|
};
|
|
21843
21849
|
})($t || ($t = {}));
|
|
21844
21850
|
let sn = $t, Mi = y();
|
|
@@ -21848,22 +21854,22 @@ function x5() {
|
|
|
21848
21854
|
})());
|
|
21849
21855
|
})(ja)), ja.exports;
|
|
21850
21856
|
}
|
|
21851
|
-
var
|
|
21852
|
-
const
|
|
21857
|
+
var y5 = b5();
|
|
21858
|
+
const v5 = /* @__PURE__ */ Qr(y5), $s = (l) => {
|
|
21853
21859
|
const { children: t, ...e } = l;
|
|
21854
21860
|
return /* @__PURE__ */ N(
|
|
21855
21861
|
kr,
|
|
21856
21862
|
{
|
|
21857
|
-
highcharts:
|
|
21863
|
+
highcharts: v5,
|
|
21858
21864
|
...e,
|
|
21859
21865
|
children: t
|
|
21860
21866
|
}
|
|
21861
21867
|
);
|
|
21862
|
-
},
|
|
21868
|
+
}, bs = (l) => l.split("_").map((s) => s.length === 0 ? "" : s.charAt(0).toUpperCase() + s.slice(1)).join(" "), w5 = (l) => {
|
|
21863
21869
|
if (l == null) return !0;
|
|
21864
21870
|
const t = Number(l);
|
|
21865
21871
|
return !isNaN(t);
|
|
21866
|
-
}, Vg = (l, t) => l.length === 0 ? !1 : l.every((e) =>
|
|
21872
|
+
}, Vg = (l, t) => l.length === 0 ? !1 : l.every((e) => w5(e[t])), zl = (l, t, e) => {
|
|
21867
21873
|
if (!l) return [];
|
|
21868
21874
|
const s = l.filter(
|
|
21869
21875
|
(n) => Vg(t, n)
|
|
@@ -21879,7 +21885,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
21879
21885
|
);
|
|
21880
21886
|
}
|
|
21881
21887
|
return s;
|
|
21882
|
-
},
|
|
21888
|
+
}, S5 = ({
|
|
21883
21889
|
visualization: l,
|
|
21884
21890
|
withTitle: t
|
|
21885
21891
|
}) => {
|
|
@@ -21897,7 +21903,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
21897
21903
|
] : d.map((y, w) => ({
|
|
21898
21904
|
opposite: w % 2 !== 0,
|
|
21899
21905
|
title: {
|
|
21900
|
-
text:
|
|
21906
|
+
text: bs(y),
|
|
21901
21907
|
style: {
|
|
21902
21908
|
color: Kr.getOptions().colors?.[w % 10]?.toString()
|
|
21903
21909
|
}
|
|
@@ -21914,7 +21920,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
21914
21920
|
text: o.xAxisLabel
|
|
21915
21921
|
}
|
|
21916
21922
|
}, k = d.map((y, w) => ({
|
|
21917
|
-
name:
|
|
21923
|
+
name: bs(y),
|
|
21918
21924
|
yAxis: 0,
|
|
21919
21925
|
data: n.map((M) => ({
|
|
21920
21926
|
name: M[o.dimensionDataKey || ""],
|
|
@@ -22010,7 +22016,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
22010
22016
|
)
|
|
22011
22017
|
}
|
|
22012
22018
|
) });
|
|
22013
|
-
},
|
|
22019
|
+
}, C5 = ({
|
|
22014
22020
|
visualization: l,
|
|
22015
22021
|
withTitle: t
|
|
22016
22022
|
}) => {
|
|
@@ -22034,7 +22040,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
22034
22040
|
}))
|
|
22035
22041
|
})) : d = [
|
|
22036
22042
|
{
|
|
22037
|
-
name:
|
|
22043
|
+
name: bs(o.valueColumn),
|
|
22038
22044
|
yAxis: 0,
|
|
22039
22045
|
data: n.map((y) => ({
|
|
22040
22046
|
name: String(y[o.categoryColumn] || ""),
|
|
@@ -22156,7 +22162,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
22156
22162
|
)
|
|
22157
22163
|
}
|
|
22158
22164
|
) });
|
|
22159
|
-
},
|
|
22165
|
+
}, k5 = ({
|
|
22160
22166
|
visualization: l,
|
|
22161
22167
|
withTitle: t
|
|
22162
22168
|
}) => {
|
|
@@ -22167,7 +22173,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
22167
22173
|
), h = o.map((d, p) => ({
|
|
22168
22174
|
opposite: p % 2 !== 0,
|
|
22169
22175
|
title: {
|
|
22170
|
-
text:
|
|
22176
|
+
text: bs(d),
|
|
22171
22177
|
style: {
|
|
22172
22178
|
color: Kr.getOptions().colors?.[p % 10]?.toString()
|
|
22173
22179
|
}
|
|
@@ -22240,7 +22246,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
22240
22246
|
Kn.Series,
|
|
22241
22247
|
{
|
|
22242
22248
|
options: {
|
|
22243
|
-
name:
|
|
22249
|
+
name: bs(d),
|
|
22244
22250
|
yAxis: p
|
|
22245
22251
|
},
|
|
22246
22252
|
data: e.map((f) => {
|
|
@@ -22264,7 +22270,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
22264
22270
|
const { data: e, configuration: s, _metadata: n } = l;
|
|
22265
22271
|
let o = [];
|
|
22266
22272
|
if (s.type === "line/area-categorical")
|
|
22267
|
-
o =
|
|
22273
|
+
o = M5(
|
|
22268
22274
|
e,
|
|
22269
22275
|
s.valueColumn,
|
|
22270
22276
|
s.xAxisColumn,
|
|
@@ -22302,7 +22308,7 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
22302
22308
|
] }) });
|
|
22303
22309
|
const d = h.map((p, f) => {
|
|
22304
22310
|
let b;
|
|
22305
|
-
s.type === "line/area" ? b = s.yAxisLabels[f] ||
|
|
22311
|
+
s.type === "line/area" ? b = s.yAxisLabels[f] || bs(p) : b = bs(p);
|
|
22306
22312
|
const k = s.type === "line/area-categorical", y = k ? "#000000" : Kr.getOptions().colors?.[f % 10]?.toString(), w = k ? "#777777" : Kr.getOptions().colors?.[f % 10]?.toString();
|
|
22307
22313
|
return {
|
|
22308
22314
|
opposite: f % 2 !== 0,
|
|
@@ -22378,11 +22384,11 @@ const y5 = /* @__PURE__ */ Qr(b5), $s = (l) => {
|
|
|
22378
22384
|
enabled: !1
|
|
22379
22385
|
}
|
|
22380
22386
|
},
|
|
22381
|
-
children:
|
|
22387
|
+
children: A5(s, o)
|
|
22382
22388
|
}
|
|
22383
22389
|
) });
|
|
22384
22390
|
};
|
|
22385
|
-
function
|
|
22391
|
+
function M5(l, t, e, s) {
|
|
22386
22392
|
const n = [
|
|
22387
22393
|
...new Set(l.map((h) => String(h[s] || "")))
|
|
22388
22394
|
], o = [
|
|
@@ -22405,12 +22411,12 @@ function k5(l, t, e, s) {
|
|
|
22405
22411
|
};
|
|
22406
22412
|
});
|
|
22407
22413
|
}
|
|
22408
|
-
function
|
|
22414
|
+
function A5(l, t) {
|
|
22409
22415
|
return l.type === "line/area-categorical" ? t.map((e, s) => /* @__PURE__ */ N(
|
|
22410
22416
|
Kn.Series,
|
|
22411
22417
|
{
|
|
22412
22418
|
options: {
|
|
22413
|
-
name:
|
|
22419
|
+
name: bs(e.name || ""),
|
|
22414
22420
|
yAxis: 0
|
|
22415
22421
|
},
|
|
22416
22422
|
data: e.data.map((n, o) => ({
|
|
@@ -22423,7 +22429,7 @@ function M5(l, t) {
|
|
|
22423
22429
|
Kn.Series,
|
|
22424
22430
|
{
|
|
22425
22431
|
options: {
|
|
22426
|
-
name:
|
|
22432
|
+
name: bs(e.name),
|
|
22427
22433
|
yAxis: s,
|
|
22428
22434
|
marker: {
|
|
22429
22435
|
radius: 2
|
|
@@ -22437,7 +22443,7 @@ function M5(l, t) {
|
|
|
22437
22443
|
s
|
|
22438
22444
|
));
|
|
22439
22445
|
}
|
|
22440
|
-
const
|
|
22446
|
+
const T5 = ({
|
|
22441
22447
|
visualization: l,
|
|
22442
22448
|
withTitle: t
|
|
22443
22449
|
}) => {
|
|
@@ -22506,7 +22512,7 @@ const A5 = ({
|
|
|
22506
22512
|
children: /* @__PURE__ */ N(_l.Series, { data: o })
|
|
22507
22513
|
}
|
|
22508
22514
|
) });
|
|
22509
|
-
},
|
|
22515
|
+
}, P5 = ({
|
|
22510
22516
|
visualization: l,
|
|
22511
22517
|
withTitle: t
|
|
22512
22518
|
}) => {
|
|
@@ -22578,7 +22584,7 @@ const A5 = ({
|
|
|
22578
22584
|
children: /* @__PURE__ */ N(_l.Series, { data: o })
|
|
22579
22585
|
}
|
|
22580
22586
|
) });
|
|
22581
|
-
},
|
|
22587
|
+
}, L5 = ({
|
|
22582
22588
|
visualization: l,
|
|
22583
22589
|
withTitle: t
|
|
22584
22590
|
}) => {
|
|
@@ -22662,7 +22668,7 @@ const A5 = ({
|
|
|
22662
22668
|
))
|
|
22663
22669
|
}
|
|
22664
22670
|
) });
|
|
22665
|
-
},
|
|
22671
|
+
}, O5 = ({
|
|
22666
22672
|
visualization: l,
|
|
22667
22673
|
withTitle: t
|
|
22668
22674
|
}) => {
|
|
@@ -22746,8 +22752,8 @@ const A5 = ({
|
|
|
22746
22752
|
) });
|
|
22747
22753
|
}, Vx = ({ flowDataId: l }) => {
|
|
22748
22754
|
const { data: t } = hl(l);
|
|
22749
|
-
return t ? /* @__PURE__ */ N(
|
|
22750
|
-
},
|
|
22755
|
+
return t ? /* @__PURE__ */ N(E5, { flowId: t.flow_id }) : null;
|
|
22756
|
+
}, E5 = ({ flowId: l }) => {
|
|
22751
22757
|
const {
|
|
22752
22758
|
chat: { status: t, sendMessage: e }
|
|
22753
22759
|
} = Vs(l);
|
|
@@ -22796,7 +22802,7 @@ const A5 = ({
|
|
|
22796
22802
|
switch (l.configuration.type) {
|
|
22797
22803
|
case "pie":
|
|
22798
22804
|
return /* @__PURE__ */ N(
|
|
22799
|
-
|
|
22805
|
+
P5,
|
|
22800
22806
|
{
|
|
22801
22807
|
visualization: l,
|
|
22802
22808
|
withTitle: t
|
|
@@ -22804,7 +22810,7 @@ const A5 = ({
|
|
|
22804
22810
|
);
|
|
22805
22811
|
case "bar":
|
|
22806
22812
|
return /* @__PURE__ */ N(
|
|
22807
|
-
|
|
22813
|
+
C5,
|
|
22808
22814
|
{
|
|
22809
22815
|
visualization: l,
|
|
22810
22816
|
withTitle: t
|
|
@@ -22820,7 +22826,7 @@ const A5 = ({
|
|
|
22820
22826
|
);
|
|
22821
22827
|
case "scatter":
|
|
22822
22828
|
return /* @__PURE__ */ N(
|
|
22823
|
-
|
|
22829
|
+
O5,
|
|
22824
22830
|
{
|
|
22825
22831
|
visualization: l,
|
|
22826
22832
|
withTitle: t
|
|
@@ -22841,7 +22847,7 @@ const A5 = ({
|
|
|
22841
22847
|
switch (l.configuration.type) {
|
|
22842
22848
|
case "pie":
|
|
22843
22849
|
return /* @__PURE__ */ N(
|
|
22844
|
-
|
|
22850
|
+
T5,
|
|
22845
22851
|
{
|
|
22846
22852
|
visualization: l,
|
|
22847
22853
|
withTitle: t
|
|
@@ -22849,7 +22855,7 @@ const A5 = ({
|
|
|
22849
22855
|
);
|
|
22850
22856
|
case "bar":
|
|
22851
22857
|
return /* @__PURE__ */ N(
|
|
22852
|
-
|
|
22858
|
+
S5,
|
|
22853
22859
|
{
|
|
22854
22860
|
visualization: l,
|
|
22855
22861
|
withTitle: t
|
|
@@ -22857,7 +22863,7 @@ const A5 = ({
|
|
|
22857
22863
|
);
|
|
22858
22864
|
case "line/area":
|
|
22859
22865
|
return /* @__PURE__ */ N(
|
|
22860
|
-
|
|
22866
|
+
k5,
|
|
22861
22867
|
{
|
|
22862
22868
|
visualization: l,
|
|
22863
22869
|
withTitle: t
|
|
@@ -22865,7 +22871,7 @@ const A5 = ({
|
|
|
22865
22871
|
);
|
|
22866
22872
|
case "scatter":
|
|
22867
22873
|
return /* @__PURE__ */ N(
|
|
22868
|
-
|
|
22874
|
+
L5,
|
|
22869
22875
|
{
|
|
22870
22876
|
visualization: l,
|
|
22871
22877
|
withTitle: t
|
|
@@ -22909,7 +22915,7 @@ const A5 = ({
|
|
|
22909
22915
|
)
|
|
22910
22916
|
}
|
|
22911
22917
|
) : /* @__PURE__ */ N("div", { className: "mm:size-full mm:flex-1 mm:flex mm:items-center mm:justify-center", children: /* @__PURE__ */ N(xi, { className: "mm:border-2" }) });
|
|
22912
|
-
}),
|
|
22918
|
+
}), D5 = _d(({ dashboardId: l, visualizationId: t, withTitle: e }, s) => {
|
|
22913
22919
|
const { data: n } = jk(
|
|
22914
22920
|
l,
|
|
22915
22921
|
t
|
|
@@ -22949,7 +22955,7 @@ const A5 = ({
|
|
|
22949
22955
|
) : /* @__PURE__ */ N("div", { className: "mm:size-full mm:flex-1 mm:flex mm:items-center mm:justify-center", children: /* @__PURE__ */ N(xi, { className: "mm:border-2" }) });
|
|
22950
22956
|
});
|
|
22951
22957
|
xm.displayName = "Visualization";
|
|
22952
|
-
const
|
|
22958
|
+
const I5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
22953
22959
|
const { data: e } = Kd(l), s = Jr();
|
|
22954
22960
|
if (!e)
|
|
22955
22961
|
return null;
|
|
@@ -22960,22 +22966,22 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
22960
22966
|
t
|
|
22961
22967
|
] }),
|
|
22962
22968
|
/* @__PURE__ */ ht(re, { className: "mm:flex-1 mm:overflow-hidden", children: [
|
|
22963
|
-
/* @__PURE__ */ N(
|
|
22969
|
+
/* @__PURE__ */ N(de, { className: "mm:flex-nowrap mm:justify-end mm:items-center", children: /* @__PURE__ */ N(de, { className: "mm:items-center", children: o }) }),
|
|
22964
22970
|
/* @__PURE__ */ N(xm, { visualizationId: l, withTitle: !0 })
|
|
22965
22971
|
] })
|
|
22966
22972
|
] });
|
|
22967
|
-
},
|
|
22973
|
+
}, N5 = ({
|
|
22968
22974
|
ToggledCollapsedButton: l
|
|
22969
22975
|
}) => {
|
|
22970
22976
|
const { selectedItem: t } = Di();
|
|
22971
22977
|
return t ? t.type === Xi.DATA_REPORT ? /* @__PURE__ */ N(
|
|
22972
|
-
|
|
22978
|
+
AM,
|
|
22973
22979
|
{
|
|
22974
22980
|
ToggledCollapsedButton: l,
|
|
22975
22981
|
reportId: t.id
|
|
22976
22982
|
}
|
|
22977
22983
|
) : /* @__PURE__ */ N(
|
|
22978
|
-
|
|
22984
|
+
I5,
|
|
22979
22985
|
{
|
|
22980
22986
|
ToggledCollapsedButton: l,
|
|
22981
22987
|
visualizationId: t.id
|
|
@@ -22984,14 +22990,14 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
22984
22990
|
/* @__PURE__ */ N("p", { className: "mm:text-xl mm:font-semibold", children: "No item selected" }),
|
|
22985
22991
|
/* @__PURE__ */ N("p", { className: "mm:text-brand-neutral-350", children: "Select a data report or visualization from the conversation to view its details here." })
|
|
22986
22992
|
] });
|
|
22987
|
-
}, fr = 400,
|
|
22993
|
+
}, fr = 400, R5 = fr, Pa = 100, _5 = 50, td = (l, t, e) => Math.min(e, Math.max(t, l)), B5 = ({
|
|
22988
22994
|
topContainerWidth: l,
|
|
22989
22995
|
isMobile: t
|
|
22990
22996
|
}) => {
|
|
22991
22997
|
const { selectedItem: e, setSelectedItem: s } = Di(), n = Ie(() => {
|
|
22992
22998
|
const J = l / 2;
|
|
22993
22999
|
return Math.max(fr, J);
|
|
22994
|
-
}, [l]), [o, h] = se(
|
|
23000
|
+
}, [l]), [o, h] = se(R5), [d, p] = se(!1), [f, b] = se(!1), [k, y] = se("sidebar"), w = He(o), M = He(0), T = He(0);
|
|
22995
23001
|
il(() => {
|
|
22996
23002
|
l && h(l / 2);
|
|
22997
23003
|
}, [l]), ue(() => {
|
|
@@ -23028,7 +23034,7 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23028
23034
|
if (!f) return;
|
|
23029
23035
|
const J = (ut) => {
|
|
23030
23036
|
const bt = T.current + (ut - M.current);
|
|
23031
|
-
if (bt <
|
|
23037
|
+
if (bt < _5) {
|
|
23032
23038
|
L(), b(!1);
|
|
23033
23039
|
return;
|
|
23034
23040
|
}
|
|
@@ -23071,7 +23077,7 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23071
23077
|
fastLead: "mm:duration-[300ms] mm:delay-[0ms] mm:ease-[var(--ease-snappy)]",
|
|
23072
23078
|
slowTrail: "mm:duration-[500ms] mm:delay-[60ms] mm:ease-[var(--ease-bouncy)]"
|
|
23073
23079
|
};
|
|
23074
|
-
},
|
|
23080
|
+
}, z5 = ({
|
|
23075
23081
|
collapsed: l,
|
|
23076
23082
|
toggleCollapsed: t
|
|
23077
23083
|
}) => /* @__PURE__ */ N(
|
|
@@ -23107,7 +23113,7 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23107
23113
|
cssVars: L,
|
|
23108
23114
|
fastLead: E,
|
|
23109
23115
|
slowTrail: B
|
|
23110
|
-
} =
|
|
23116
|
+
} = B5({
|
|
23111
23117
|
topContainerWidth: o,
|
|
23112
23118
|
isMobile: n
|
|
23113
23119
|
});
|
|
@@ -23214,10 +23220,10 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23214
23220
|
k ? "mm:opacity-100 mm:visible mm:pointer-events-auto mm:translate-y-0" : "mm:opacity-0 mm:invisible mm:pointer-events-none mm:translate-y-1 mm:@sm:opacity-100 mm:@sm:visible mm:@sm:pointer-events-auto mm:@sm:translate-y-0"
|
|
23215
23221
|
),
|
|
23216
23222
|
children: /* @__PURE__ */ N(
|
|
23217
|
-
|
|
23223
|
+
N5,
|
|
23218
23224
|
{
|
|
23219
23225
|
ToggledCollapsedButton: /* @__PURE__ */ N(
|
|
23220
|
-
|
|
23226
|
+
z5,
|
|
23221
23227
|
{
|
|
23222
23228
|
collapsed: k,
|
|
23223
23229
|
toggleCollapsed: w
|
|
@@ -23231,7 +23237,7 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23231
23237
|
]
|
|
23232
23238
|
}
|
|
23233
23239
|
);
|
|
23234
|
-
},
|
|
23240
|
+
}, j5 = fe({
|
|
23235
23241
|
method: "get",
|
|
23236
23242
|
path: "/api/v1/public/dashboards/{dashboard_id}",
|
|
23237
23243
|
operationId: "retrievePublicDashboard",
|
|
@@ -23268,8 +23274,8 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23268
23274
|
}
|
|
23269
23275
|
}
|
|
23270
23276
|
}
|
|
23271
|
-
}),
|
|
23272
|
-
const t =
|
|
23277
|
+
}), F5 = (l) => {
|
|
23278
|
+
const t = as();
|
|
23273
23279
|
return ai({
|
|
23274
23280
|
queryKey: ["dashboard", { dashboardId: l }],
|
|
23275
23281
|
queryFn: async () => {
|
|
@@ -23279,7 +23285,7 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23279
23285
|
},
|
|
23280
23286
|
enabled: !!l
|
|
23281
23287
|
});
|
|
23282
|
-
},
|
|
23288
|
+
}, H5 = (l) => {
|
|
23283
23289
|
const t = eo();
|
|
23284
23290
|
return ai({
|
|
23285
23291
|
queryKey: ["publicDashboard", { dashboardId: l, publicApiClient: t }],
|
|
@@ -23287,7 +23293,7 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23287
23293
|
if (!l)
|
|
23288
23294
|
throw new Error("Dashboard ID is required");
|
|
23289
23295
|
const { data: e, error: s, response: n } = await t.GET(
|
|
23290
|
-
|
|
23296
|
+
j5.path,
|
|
23291
23297
|
{
|
|
23292
23298
|
params: {
|
|
23293
23299
|
path: {
|
|
@@ -23336,7 +23342,7 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23336
23342
|
rowSpan: 4
|
|
23337
23343
|
} : {
|
|
23338
23344
|
item: /* @__PURE__ */ N($g, { title: o.title, children: t ? /* @__PURE__ */ N(
|
|
23339
|
-
|
|
23345
|
+
D5,
|
|
23340
23346
|
{
|
|
23341
23347
|
dashboardId: l.id,
|
|
23342
23348
|
visualizationId: o.visualizationId,
|
|
@@ -23372,16 +23378,16 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23372
23378
|
positions: n
|
|
23373
23379
|
}
|
|
23374
23380
|
) });
|
|
23375
|
-
},
|
|
23376
|
-
const t =
|
|
23381
|
+
}, W5 = ({ dashboardId: l }) => {
|
|
23382
|
+
const t = F5(l);
|
|
23377
23383
|
return t.isLoading ? /* @__PURE__ */ N("div", { className: "mm:w-full mm:flex mm:items-center mm:justify-center", children: /* @__PURE__ */ N(xi, {}) }) : t.isError || !t.data ? /* @__PURE__ */ N("div", { className: "mm:w-full mm:flex mm:items-center mm:justify-center", children: /* @__PURE__ */ N("p", { className: "mm:text-red-500", children: "Failed to load dashboard" }) }) : /* @__PURE__ */ N(Zx, { dashboard: t.data });
|
|
23378
|
-
},
|
|
23384
|
+
}, Y5 = ({
|
|
23379
23385
|
dashboardId: l
|
|
23380
23386
|
}) => {
|
|
23381
|
-
const t =
|
|
23387
|
+
const t = H5(l);
|
|
23382
23388
|
return t.isLoading ? /* @__PURE__ */ N("div", { className: "mm:w-full mm:flex mm:items-center mm:justify-center", children: /* @__PURE__ */ N(xi, {}) }) : t.isError || !t.data ? /* @__PURE__ */ N("div", { className: "mm:w-full mm:flex mm:items-center mm:justify-center", children: /* @__PURE__ */ N("p", { className: "mm:text-red-500", children: "Failed to load dashboard" }) }) : /* @__PURE__ */ N(Zx, { dashboard: t.data, isPublic: !0 });
|
|
23383
23389
|
}, WE = (l) => {
|
|
23384
|
-
const t =
|
|
23390
|
+
const t = as(), e = Vn({
|
|
23385
23391
|
mutationFn: async (s) => t.api.generateContextualInsight(s),
|
|
23386
23392
|
...l
|
|
23387
23393
|
});
|
|
@@ -23390,9 +23396,9 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23390
23396
|
generateInsight: e.mutate,
|
|
23391
23397
|
generateInsightAsync: e.mutateAsync
|
|
23392
23398
|
};
|
|
23393
|
-
},
|
|
23399
|
+
}, G5 = ({
|
|
23394
23400
|
onOpenChange: l
|
|
23395
|
-
}) => /* @__PURE__ */ N(
|
|
23401
|
+
}) => /* @__PURE__ */ N(de, { className: kt("mm:justify-end mm:items-center", "mm:prose-ui!"), children: /* @__PURE__ */ ht(
|
|
23396
23402
|
ii,
|
|
23397
23403
|
{
|
|
23398
23404
|
variant: "outline",
|
|
@@ -23405,14 +23411,14 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23405
23411
|
/* @__PURE__ */ N(IC, { size: 14 })
|
|
23406
23412
|
]
|
|
23407
23413
|
}
|
|
23408
|
-
) }),
|
|
23414
|
+
) }), X5 = ({ opened: l, flowId: t, onOpenChange: e }) => !l || !t ? null : /* @__PURE__ */ N(Xe.Root, { onOpenChange: e, open: l, modal: !0, children: /* @__PURE__ */ N(Xe.Overlay, { asChild: !0, children: /* @__PURE__ */ N("div", { className: "mm:fixed mm:inset-0 mm:bg-light-neutral-600", children: /* @__PURE__ */ N(
|
|
23409
23415
|
qx,
|
|
23410
23416
|
{
|
|
23411
23417
|
flowId: t,
|
|
23412
|
-
topBar: /* @__PURE__ */ N(
|
|
23418
|
+
topBar: /* @__PURE__ */ N(G5, { onOpenChange: e })
|
|
23413
23419
|
}
|
|
23414
23420
|
) }) }) }), Kx = ({ opened: l, flowId: t, onOpenChange: e }) => /* @__PURE__ */ N(u0, { children: /* @__PURE__ */ N(
|
|
23415
|
-
|
|
23421
|
+
X5,
|
|
23416
23422
|
{
|
|
23417
23423
|
opened: l,
|
|
23418
23424
|
flowId: t,
|
|
@@ -23432,7 +23438,7 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23432
23438
|
onOpenChange: e
|
|
23433
23439
|
}
|
|
23434
23440
|
) }) });
|
|
23435
|
-
},
|
|
23441
|
+
}, V5 = {
|
|
23436
23442
|
visible: {
|
|
23437
23443
|
opacity: 1,
|
|
23438
23444
|
transition: {
|
|
@@ -23451,7 +23457,7 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23451
23457
|
ease: "easeIn"
|
|
23452
23458
|
}
|
|
23453
23459
|
}
|
|
23454
|
-
},
|
|
23460
|
+
}, U5 = ["mousedown", "touchstart"], $5 = (l, t, e) => {
|
|
23455
23461
|
const s = He(null);
|
|
23456
23462
|
return ue(() => {
|
|
23457
23463
|
const n = new AbortController(), o = (p) => {
|
|
@@ -23465,14 +23471,14 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23465
23471
|
(!w || w && !M) && l();
|
|
23466
23472
|
} else s.current.contains(f) || l();
|
|
23467
23473
|
}, h = { capture: !0, passive: !0, signal: n.signal };
|
|
23468
|
-
return
|
|
23474
|
+
return U5.forEach(
|
|
23469
23475
|
(p) => document.addEventListener(p, o, h)
|
|
23470
23476
|
), () => {
|
|
23471
23477
|
n.abort();
|
|
23472
23478
|
};
|
|
23473
23479
|
}, [s, l, e, t]), s;
|
|
23474
|
-
},
|
|
23475
|
-
const t =
|
|
23480
|
+
}, q5 = (l) => {
|
|
23481
|
+
const t = as(), e = t.api;
|
|
23476
23482
|
return ai({
|
|
23477
23483
|
queryKey: ["recentFlows", { limit: l, api: e }],
|
|
23478
23484
|
queryFn: async () => await e.getRecentFlows({
|
|
@@ -23481,8 +23487,8 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23481
23487
|
enabled: !!t,
|
|
23482
23488
|
refetchIntervalInBackground: !1
|
|
23483
23489
|
});
|
|
23484
|
-
},
|
|
23485
|
-
const { data: l, status: t } =
|
|
23490
|
+
}, Z5 = () => {
|
|
23491
|
+
const { data: l, status: t } = q5(6), [e, s] = se(!1), { updateState: n } = Ys(), o = (h) => n({ "mm-modal": "conversation", "mm-flow-id": h });
|
|
23486
23492
|
if (!(t !== "success" || l.length == 0))
|
|
23487
23493
|
return /* @__PURE__ */ ht(gi.Root, { open: e, onOpenChange: s, children: [
|
|
23488
23494
|
/* @__PURE__ */ N(gi.Trigger, { asChild: !0, children: /* @__PURE__ */ ht(
|
|
@@ -23541,15 +23547,6 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23541
23547
|
}
|
|
23542
23548
|
)
|
|
23543
23549
|
] });
|
|
23544
|
-
}, Z5 = (l) => {
|
|
23545
|
-
const [t, e] = se(0);
|
|
23546
|
-
return ue(() => {
|
|
23547
|
-
if (!l || l.length === 0) return;
|
|
23548
|
-
const s = setInterval(() => {
|
|
23549
|
-
e((n) => (n + 1) % l.length);
|
|
23550
|
-
}, 2e3);
|
|
23551
|
-
return () => clearInterval(s);
|
|
23552
|
-
}, [l]), l && l.length > 0 ? l[t] : void 0;
|
|
23553
23550
|
}, K5 = ({
|
|
23554
23551
|
label: l,
|
|
23555
23552
|
isActive: t = !1,
|
|
@@ -23559,20 +23556,20 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23559
23556
|
onSubmit: o,
|
|
23560
23557
|
onChange: h,
|
|
23561
23558
|
onFocus: d,
|
|
23562
|
-
|
|
23559
|
+
placeholder: p,
|
|
23563
23560
|
isLoading: f = !1
|
|
23564
23561
|
}) => {
|
|
23565
|
-
const b =
|
|
23566
|
-
|
|
23567
|
-
},
|
|
23568
|
-
|
|
23562
|
+
const b = He(null), k = () => {
|
|
23563
|
+
b.current?.focus();
|
|
23564
|
+
}, y = (w) => {
|
|
23565
|
+
w?.preventDefault?.(), o();
|
|
23569
23566
|
};
|
|
23570
23567
|
return /* @__PURE__ */ N(
|
|
23571
23568
|
"form",
|
|
23572
23569
|
{
|
|
23573
|
-
onClick:
|
|
23574
|
-
onSubmit: (
|
|
23575
|
-
|
|
23570
|
+
onClick: k,
|
|
23571
|
+
onSubmit: (w) => {
|
|
23572
|
+
w.preventDefault(), o();
|
|
23576
23573
|
},
|
|
23577
23574
|
children: /* @__PURE__ */ N(
|
|
23578
23575
|
"div",
|
|
@@ -23599,14 +23596,14 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23599
23596
|
loading: f
|
|
23600
23597
|
}
|
|
23601
23598
|
) }),
|
|
23602
|
-
/* @__PURE__ */ ht(
|
|
23599
|
+
/* @__PURE__ */ ht(de, { className: kt("mm:justify-between mm:items-center"), children: [
|
|
23603
23600
|
/* @__PURE__ */ N("span", { className: "mm:text-xl mm:font-semibold mm:uppercase mm:select-none", children: l }),
|
|
23604
|
-
e && /* @__PURE__ */ N(
|
|
23601
|
+
e && /* @__PURE__ */ N(Z5, {})
|
|
23605
23602
|
] }),
|
|
23606
23603
|
/* @__PURE__ */ N(
|
|
23607
23604
|
Jg,
|
|
23608
23605
|
{
|
|
23609
|
-
ref:
|
|
23606
|
+
ref: b,
|
|
23610
23607
|
disabled: f,
|
|
23611
23608
|
className: kt(
|
|
23612
23609
|
"mm:bg-transparent mm:mr-12",
|
|
@@ -23615,15 +23612,15 @@ const D5 = ({ visualizationId: l, ToggledCollapsedButton: t }) => {
|
|
|
23615
23612
|
"mm:[scrollbar-color:var(--mm-color-brand-neutral-100)_transparent]",
|
|
23616
23613
|
"mm:[scrollbar-width:thin]"
|
|
23617
23614
|
),
|
|
23618
|
-
placeholder:
|
|
23615
|
+
placeholder: p,
|
|
23619
23616
|
name: "request",
|
|
23620
|
-
onChange: (
|
|
23617
|
+
onChange: (w) => h?.(w.target.value),
|
|
23621
23618
|
value: t ? s : n,
|
|
23622
23619
|
onFocus: () => d?.(),
|
|
23623
23620
|
minRows: t ? 3 : 1,
|
|
23624
23621
|
maxRows: 5,
|
|
23625
|
-
onKeyDown: (
|
|
23626
|
-
|
|
23622
|
+
onKeyDown: (w) => {
|
|
23623
|
+
w.key === "Enter" && !w.shiftKey && !w.nativeEvent.isComposing && y(w);
|
|
23627
23624
|
}
|
|
23628
23625
|
}
|
|
23629
23626
|
)
|
|
@@ -23774,13 +23771,13 @@ ${t}` });
|
|
|
23774
23771
|
showRecommendations: s,
|
|
23775
23772
|
showBackdrop: n,
|
|
23776
23773
|
onClose: o,
|
|
23777
|
-
|
|
23774
|
+
placeholder: h
|
|
23778
23775
|
}) => {
|
|
23779
23776
|
const [d, p] = se(""), [f, b] = se(!1), { updateState: k } = Ys(), y = (F) => k({ "mm-flow-id": F, "mm-modal": "conversation" }), { createFlow: w, isCreatingFlow: M } = qd({
|
|
23780
23777
|
onSuccess: async ({ flowId: F }) => {
|
|
23781
23778
|
y(F);
|
|
23782
23779
|
}
|
|
23783
|
-
}), T =
|
|
23780
|
+
}), T = $5(() => {
|
|
23784
23781
|
b(!1), o?.();
|
|
23785
23782
|
}), L = Ie(
|
|
23786
23783
|
() => d.length > 30 || /[\r\n]/.test(d) ? d.slice(0, 30).replace(/[\r\n]/g, " ") + "…" : d,
|
|
@@ -23790,7 +23787,7 @@ ${t}` });
|
|
|
23790
23787
|
_ && /* @__PURE__ */ N(
|
|
23791
23788
|
Gi.div,
|
|
23792
23789
|
{
|
|
23793
|
-
variants:
|
|
23790
|
+
variants: V5,
|
|
23794
23791
|
initial: "hidden",
|
|
23795
23792
|
animate: "visible",
|
|
23796
23793
|
exit: "hidden",
|
|
@@ -23826,7 +23823,7 @@ ${t}` });
|
|
|
23826
23823
|
shouldShowRecentChats: B,
|
|
23827
23824
|
formValue: d,
|
|
23828
23825
|
truncatedValue: L,
|
|
23829
|
-
|
|
23826
|
+
placeholder: h,
|
|
23830
23827
|
onSubmit: () => {
|
|
23831
23828
|
d.length > 0 && w({ query: d.trim() });
|
|
23832
23829
|
},
|
|
@@ -23851,15 +23848,15 @@ ${t}` });
|
|
|
23851
23848
|
startOptions: l,
|
|
23852
23849
|
modalOptions: t
|
|
23853
23850
|
}) => {
|
|
23854
|
-
const { flowId: e } = X0(), { state: s } = Ys(), n = s["mm-modal"], { updateState: o } = Ys(), h = (
|
|
23851
|
+
const { flowId: e } = X0(), { state: s } = Ys(), n = s["mm-modal"], { updateState: o } = Ys(), h = (M) => o({ "mm-flow-id": M, "mm-modal": "conversation" }), d = () => o({ "mm-flow-id": void 0, "mm-modal": void 0 }), p = l?.showRecentChats ?? !1, f = l?.showRecommendations ?? !1, b = l?.showBackdrop ?? !1, k = l?.label || "Ask your data about", y = l?.recommendationsLabel || "Recommendations based on your data", w = l?.placeholder || "";
|
|
23855
23852
|
return /* @__PURE__ */ ht(tl, { children: [
|
|
23856
23853
|
/* @__PURE__ */ N(
|
|
23857
23854
|
Kx,
|
|
23858
23855
|
{
|
|
23859
23856
|
opened: n === "conversation",
|
|
23860
23857
|
flowId: e ?? void 0,
|
|
23861
|
-
onOpenChange: (
|
|
23862
|
-
|
|
23858
|
+
onOpenChange: (M) => {
|
|
23859
|
+
M && e ? h(e) : d();
|
|
23863
23860
|
}
|
|
23864
23861
|
}
|
|
23865
23862
|
),
|
|
@@ -23875,7 +23872,7 @@ ${t}` });
|
|
|
23875
23872
|
onClose: () => {
|
|
23876
23873
|
d(), t?.onClose();
|
|
23877
23874
|
},
|
|
23878
|
-
|
|
23875
|
+
placeholder: w
|
|
23879
23876
|
}
|
|
23880
23877
|
)
|
|
23881
23878
|
] });
|
|
@@ -23905,7 +23902,7 @@ ${t}` });
|
|
|
23905
23902
|
}
|
|
23906
23903
|
);
|
|
23907
23904
|
}, XE = (l) => {
|
|
23908
|
-
const t =
|
|
23905
|
+
const t = as(), e = Vn({
|
|
23909
23906
|
mutationFn: async ({
|
|
23910
23907
|
reportId: s,
|
|
23911
23908
|
filename: n,
|
|
@@ -23925,7 +23922,7 @@ ${t}` });
|
|
|
23925
23922
|
...e,
|
|
23926
23923
|
download: e.mutate
|
|
23927
23924
|
};
|
|
23928
|
-
}, VE = ({ dashboardId: l }) => /* @__PURE__ */ N(io, { children: /* @__PURE__ */ N(
|
|
23925
|
+
}, VE = ({ dashboardId: l }) => /* @__PURE__ */ N(io, { children: /* @__PURE__ */ N(W5, { dashboardId: l }) }), UE = ({ dashboardId: l }) => /* @__PURE__ */ N(io, { children: /* @__PURE__ */ N(Y5, { dashboardId: l }) }), $E = (l) => {
|
|
23929
23926
|
const t = Ie(
|
|
23930
23927
|
() => ({
|
|
23931
23928
|
"mm-flow-id": l.flowId,
|
|
@@ -24037,7 +24034,7 @@ export {
|
|
|
24037
24034
|
XE as useDownloadReportData,
|
|
24038
24035
|
WE as useGenerateContextualInsight,
|
|
24039
24036
|
DE as useMageMetricsApiUrl,
|
|
24040
|
-
|
|
24037
|
+
as as useMageMetricsClient,
|
|
24041
24038
|
IE as useMageMetricsReady,
|
|
24042
|
-
|
|
24039
|
+
q5 as useRecentFlows
|
|
24043
24040
|
};
|