@tsiky/components-r19 1.6.19 → 1.6.21
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/SimpleBarChart-BzHNNwd6.cjs +134 -0
- package/dist/SimpleBarChart-CCePRx-C.js +18730 -0
- package/dist/SimpleBarChart-CLQwp0ud.js +19412 -0
- package/dist/SimpleBarChart-CW9fOEAU.cjs +134 -0
- package/dist/chart.cjs.js +13 -13
- package/dist/chart.js +304 -303
- package/dist/components-r19.css +1 -1
- package/dist/index.cjs.js +114 -114
- package/dist/index.js +170 -161
- package/dist/src/components/AreaChartV2/AreaChartV2.d.ts.map +1 -1
- package/dist/src/components/ChartV2/ChartV2.d.ts.map +1 -1
- package/dist/src/components/DonutChartRatio/DonutChartRatio.d.ts +30 -0
- package/dist/src/components/DonutChartRatio/DonutChartRatio.d.ts.map +1 -0
- package/dist/src/components/DonutChartRatio/index.d.ts +2 -0
- package/dist/src/components/DonutChartRatio/index.d.ts.map +1 -0
- package/dist/src/components/SelectFilter/SelectFilter.d.ts.map +1 -1
- package/dist/src/components/SimpleBarChart/SimpleBarChart.d.ts +1 -0
- package/dist/src/components/SimpleBarChart/SimpleBarChart.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableHeader.d.ts +2 -1
- package/dist/src/components/TableauxComponent/TableHeader.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableLayout.d.ts +1 -1
- package/dist/src/components/TableauxComponent/TableLayout.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/types.d.ts +1 -0
- package/dist/src/components/TableauxComponent/types.d.ts.map +1 -1
- package/package.json +99 -99
package/dist/chart.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as $, jsxs as me } from "react/jsx-runtime";
|
|
2
2
|
import * as L from "react";
|
|
3
3
|
import dr, { useEffect as $a, useMemo as rt, useRef as Qe, useState as it, useCallback as $e, isValidElement as sn, cloneElement as nn, Component as rl, PureComponent as sl, forwardRef as ur, useLayoutEffect as nl } from "react";
|
|
4
|
-
import { r as je, d as st, e as gr, f as on, h as ln, u as Ue, s as ol, i as ll, j as cl, k as hl, l as cn, m as hn, n as pa, o as dl, p as Jr, q as ul, t as qe, v as dn, w as Ze, x as be, y as xa, z as gl, A as fl, D as Mt, E as pl, F as xl, G as un, H as ml, J as vl, K as Se, L as bl, N as yl, O as wl, Q as kl, U as Ot, V as Al, W as Sl, Z as Cl, _ as Pl, $ as gn, a0 as Il, a1 as Ll, a2 as El, a3 as fn, a4 as Ml, g as fr, a5 as ft, a6 as Ol, a7 as ma, a8 as Tl, a9 as pt, aa as pr, ab as Rl, ac as ye, ad as xt, ae as At, af as va, ag as Ua, ah as qa, ai as pn, aj as Pe, ak as Ea, al as Yi, am as zl, an as xr, ao as Dl, ap as _l, aq as xn, ar as mn, as as vn, at as bn, au as Xl, av as Da, aw as Ka, ax as Fl, ay as ta, az as Pt, aA as aa, aB as Yl, aC as Nl, aD as mr, aE as Hl, aF as Wl, aG as tt, aH as Bt, aI as jt, aJ as yn, aK as vr, aL as br, aM as _a, aN as yr, aO as Gt, aP as wr, aQ as kr, aR as Ar, aS as Sr, aT as wn, aU as kn, aV as Cr, aW as An, aX as Ft, aY as Pr, aZ as Sn, a_ as Bl, a$ as jl, b0 as Ir, b1 as Lr, b2 as Gl, b3 as Vl, b4 as $l, b5 as Ul, b6 as ql, b7 as Kl, b8 as Xa, b9 as Zl, ba as Jl, bb as Ql, bc as ec, bd as tc, be as ac, bf as ic, bg as Cn, bh as rc, bi as sc, bj as nc, bk as oc, bl as Pn, bm as lc, bn as cc, bo as hc, bp as dc, bq as uc, br as Qr, bs as gc, bt as In, bu as Ln, bv as En, bw as Mn, bx as fc, by as pc, M as Er, C as On, X as Tn, Y as Rn, T as Za, b as es, R as na } from "./SimpleBarChart-
|
|
5
|
-
import { P as lp, S as cp } from "./SimpleBarChart-
|
|
4
|
+
import { r as je, d as st, e as gr, f as on, h as ln, u as Ue, s as ol, i as ll, j as cl, k as hl, l as cn, m as hn, n as pa, o as dl, p as Jr, q as ul, t as qe, v as dn, w as Ze, x as be, y as xa, z as gl, A as fl, D as Mt, E as pl, F as xl, G as un, H as ml, J as vl, K as Se, L as bl, N as yl, O as wl, Q as kl, U as Ot, V as Al, W as Sl, Z as Cl, _ as Pl, $ as gn, a0 as Il, a1 as Ll, a2 as El, a3 as fn, a4 as Ml, g as fr, a5 as ft, a6 as Ol, a7 as ma, a8 as Tl, a9 as pt, aa as pr, ab as Rl, ac as ye, ad as xt, ae as At, af as va, ag as Ua, ah as qa, ai as pn, aj as Pe, ak as Ea, al as Yi, am as zl, an as xr, ao as Dl, ap as _l, aq as xn, ar as mn, as as vn, at as bn, au as Xl, av as Da, aw as Ka, ax as Fl, ay as ta, az as Pt, aA as aa, aB as Yl, aC as Nl, aD as mr, aE as Hl, aF as Wl, aG as tt, aH as Bt, aI as jt, aJ as yn, aK as vr, aL as br, aM as _a, aN as yr, aO as Gt, aP as wr, aQ as kr, aR as Ar, aS as Sr, aT as wn, aU as kn, aV as Cr, aW as An, aX as Ft, aY as Pr, aZ as Sn, a_ as Bl, a$ as jl, b0 as Ir, b1 as Lr, b2 as Gl, b3 as Vl, b4 as $l, b5 as Ul, b6 as ql, b7 as Kl, b8 as Xa, b9 as Zl, ba as Jl, bb as Ql, bc as ec, bd as tc, be as ac, bf as ic, bg as Cn, bh as rc, bi as sc, bj as nc, bk as oc, bl as Pn, bm as lc, bn as cc, bo as hc, bp as dc, bq as uc, br as Qr, bs as gc, bt as In, bu as Ln, bv as En, bw as Mn, bx as fc, by as pc, M as Er, C as On, X as Tn, Y as Rn, T as Za, b as es, R as na } from "./SimpleBarChart-CCePRx-C.js";
|
|
5
|
+
import { P as lp, S as cp } from "./SimpleBarChart-CCePRx-C.js";
|
|
6
6
|
import { createPortal as xc } from "react-dom";
|
|
7
7
|
function Fa() {
|
|
8
8
|
return Fa = Object.assign ? Object.assign.bind() : function(s) {
|
|
@@ -755,20 +755,20 @@ function Ah(s) {
|
|
|
755
755
|
y = a.map((A, k) => {
|
|
756
756
|
var S = Se(A, c, 0), C = Se(A, h, k), P = xh(t, r, A), I = (qe(S) ? S : 0) / w, M, O = we(we({}, A), i && i[k] && i[k].props);
|
|
757
757
|
k ? M = b.endAngle + Ea(g) * f * (S !== 0 ? 1 : 0) : M = o;
|
|
758
|
-
var R = M + Ea(g) * ((S !== 0 ? u : 0) + I * v),
|
|
758
|
+
var R = M + Ea(g) * ((S !== 0 ? u : 0) + I * v), _ = (M + R) / 2, X = (P.innerRadius + P.outerRadius) / 2, F = [{
|
|
759
759
|
name: C,
|
|
760
760
|
value: S,
|
|
761
761
|
payload: O,
|
|
762
762
|
dataKey: c,
|
|
763
763
|
type: d,
|
|
764
764
|
graphicalItemId: t.id
|
|
765
|
-
}], N = Yi(P.cx, P.cy, X,
|
|
765
|
+
}], N = Yi(P.cx, P.cy, X, _);
|
|
766
766
|
return b = we(we(we(we({}, t.presentationProps), {}, {
|
|
767
767
|
percent: I,
|
|
768
768
|
cornerRadius: typeof n == "string" ? parseFloat(n) : n,
|
|
769
769
|
name: C,
|
|
770
770
|
tooltipPayload: F,
|
|
771
|
-
midAngle:
|
|
771
|
+
midAngle: _,
|
|
772
772
|
middleRadius: X,
|
|
773
773
|
tooltipPosition: N
|
|
774
774
|
}, O), P), {}, {
|
|
@@ -853,8 +853,8 @@ function Ch(s) {
|
|
|
853
853
|
} else {
|
|
854
854
|
var {
|
|
855
855
|
endAngle: R,
|
|
856
|
-
startAngle:
|
|
857
|
-
} = S, X = Pe(0, R -
|
|
856
|
+
startAngle: _
|
|
857
|
+
} = S, X = Pe(0, R - _, w), F = we(we({}, S), {}, {
|
|
858
858
|
startAngle: k + I,
|
|
859
859
|
endAngle: k + X + I
|
|
860
860
|
});
|
|
@@ -1497,20 +1497,20 @@ function sd(s) {
|
|
|
1497
1497
|
onAnimationStart: S,
|
|
1498
1498
|
key: v
|
|
1499
1499
|
}, (M) => {
|
|
1500
|
-
var O = Pe(I, C + I, M), R = Math.min(O, C),
|
|
1500
|
+
var O = Pe(I, C + I, M), R = Math.min(O, C), _;
|
|
1501
1501
|
if (l)
|
|
1502
1502
|
if (o) {
|
|
1503
1503
|
var X = "".concat(o).split(/[,\s]+/gim).map((V) => parseFloat(V));
|
|
1504
|
-
|
|
1504
|
+
_ = td(R, C, X);
|
|
1505
1505
|
} else
|
|
1506
|
-
|
|
1506
|
+
_ = Gn(C, R);
|
|
1507
1507
|
else
|
|
1508
|
-
|
|
1508
|
+
_ = o == null ? void 0 : String(o);
|
|
1509
1509
|
if (M > 0 && C > 0 && (i.current = n, r.current = Math.max(r.current, R)), m) {
|
|
1510
1510
|
var F = m.length / n.length, N = M === 1 ? n : n.map((V, T) => {
|
|
1511
|
-
var
|
|
1512
|
-
if (m[
|
|
1513
|
-
var H = m[
|
|
1511
|
+
var D = Math.floor(T * F);
|
|
1512
|
+
if (m[D]) {
|
|
1513
|
+
var H = m[D];
|
|
1514
1514
|
return Je(Je({}, V), {}, {
|
|
1515
1515
|
x: Pe(H.x, V.x, M),
|
|
1516
1516
|
y: Pe(H.y, V.y, M)
|
|
@@ -1529,7 +1529,7 @@ function sd(s) {
|
|
|
1529
1529
|
points: N,
|
|
1530
1530
|
clipPathId: e,
|
|
1531
1531
|
pathRef: a,
|
|
1532
|
-
strokeDasharray:
|
|
1532
|
+
strokeDasharray: _
|
|
1533
1533
|
});
|
|
1534
1534
|
}
|
|
1535
1535
|
return /* @__PURE__ */ L.createElement(gs, {
|
|
@@ -1537,7 +1537,7 @@ function sd(s) {
|
|
|
1537
1537
|
points: n,
|
|
1538
1538
|
clipPathId: e,
|
|
1539
1539
|
pathRef: a,
|
|
1540
|
-
strokeDasharray:
|
|
1540
|
+
strokeDasharray: _
|
|
1541
1541
|
});
|
|
1542
1542
|
}), /* @__PURE__ */ L.createElement(Ka, {
|
|
1543
1543
|
label: t.label
|
|
@@ -2132,10 +2132,10 @@ function Od(s) {
|
|
|
2132
2132
|
S === 1 ? n : n.map((M, O) => {
|
|
2133
2133
|
var R = Math.floor(O * C);
|
|
2134
2134
|
if (A[R]) {
|
|
2135
|
-
var
|
|
2135
|
+
var _ = A[R];
|
|
2136
2136
|
return Dt(Dt({}, M), {}, {
|
|
2137
|
-
x: Pe(
|
|
2138
|
-
y: Pe(
|
|
2137
|
+
x: Pe(_.x, M.x, S),
|
|
2138
|
+
y: Pe(_.y, M.y, S)
|
|
2139
2139
|
});
|
|
2140
2140
|
}
|
|
2141
2141
|
return M;
|
|
@@ -2144,10 +2144,10 @@ function Od(s) {
|
|
|
2144
2144
|
return qe(o) ? I = Pe(k, o, S) : tt(o) || Kl(o) ? I = Pe(k, 0, S) : I = o.map((M, O) => {
|
|
2145
2145
|
var R = Math.floor(O * C);
|
|
2146
2146
|
if (Array.isArray(k) && k[R]) {
|
|
2147
|
-
var
|
|
2147
|
+
var _ = k[R];
|
|
2148
2148
|
return Dt(Dt({}, M), {}, {
|
|
2149
|
-
x: Pe(
|
|
2150
|
-
y: Pe(
|
|
2149
|
+
x: Pe(_.x, M.x, S),
|
|
2150
|
+
y: Pe(_.y, M.y, S)
|
|
2151
2151
|
});
|
|
2152
2152
|
}
|
|
2153
2153
|
return M;
|
|
@@ -3784,7 +3784,7 @@ function dg(s) {
|
|
|
3784
3784
|
modifiedLinks: C,
|
|
3785
3785
|
modifiedNodes: P
|
|
3786
3786
|
} = rt(() => {
|
|
3787
|
-
var R,
|
|
3787
|
+
var R, _, X, F;
|
|
3788
3788
|
if (!u || !A || !k || A <= 0 || k <= 0)
|
|
3789
3789
|
return {
|
|
3790
3790
|
nodes: [],
|
|
@@ -3792,7 +3792,7 @@ function dg(s) {
|
|
|
3792
3792
|
modifiedLinks: [],
|
|
3793
3793
|
modifiedNodes: []
|
|
3794
3794
|
};
|
|
3795
|
-
var N = A - ((R = v.left) !== null && R !== void 0 ? R : 0) - ((
|
|
3795
|
+
var N = A - ((R = v.left) !== null && R !== void 0 ? R : 0) - ((_ = v.right) !== null && _ !== void 0 ? _ : 0), V = k - ((X = v.top) !== null && X !== void 0 ? X : 0) - ((F = v.bottom) !== null && F !== void 0 ? F : 0), T = qu({
|
|
3796
3796
|
data: u,
|
|
3797
3797
|
width: N,
|
|
3798
3798
|
height: V,
|
|
@@ -3802,33 +3802,33 @@ function dg(s) {
|
|
|
3802
3802
|
sort: x,
|
|
3803
3803
|
verticalAlign: w,
|
|
3804
3804
|
align: y
|
|
3805
|
-
}),
|
|
3805
|
+
}), D = v.top || 0, H = v.left || 0, K = T.links.map((te, z) => ig({
|
|
3806
3806
|
link: te,
|
|
3807
3807
|
nodes: T.nodes,
|
|
3808
3808
|
i: z,
|
|
3809
|
-
top:
|
|
3809
|
+
top: D,
|
|
3810
3810
|
left: H,
|
|
3811
3811
|
linkContent: n,
|
|
3812
3812
|
linkCurvature: m
|
|
3813
|
-
})).filter(uc),
|
|
3813
|
+
})).filter(uc), U = T.nodes.map((te, z) => og({
|
|
3814
3814
|
node: te,
|
|
3815
3815
|
nodeContent: l,
|
|
3816
3816
|
i: z,
|
|
3817
|
-
top:
|
|
3817
|
+
top: D,
|
|
3818
3818
|
left: H
|
|
3819
3819
|
}));
|
|
3820
3820
|
return {
|
|
3821
3821
|
nodes: T.nodes,
|
|
3822
3822
|
links: T.links,
|
|
3823
3823
|
modifiedLinks: K,
|
|
3824
|
-
modifiedNodes:
|
|
3824
|
+
modifiedNodes: U
|
|
3825
3825
|
};
|
|
3826
|
-
}, [u, A, k, v, g, p, f, x, n, l, m, y, w]), I = $e((R,
|
|
3827
|
-
c && c(R,
|
|
3828
|
-
}, [c]), M = $e((R,
|
|
3829
|
-
h && h(R,
|
|
3830
|
-
}, [h]), O = $e((R,
|
|
3831
|
-
d && d(R,
|
|
3826
|
+
}, [u, A, k, v, g, p, f, x, n, l, m, y, w]), I = $e((R, _, X) => {
|
|
3827
|
+
c && c(R, _, X);
|
|
3828
|
+
}, [c]), M = $e((R, _, X) => {
|
|
3829
|
+
h && h(R, _, X);
|
|
3830
|
+
}, [h]), O = $e((R, _, X) => {
|
|
3831
|
+
d && d(R, _, X);
|
|
3832
3832
|
}, [d]);
|
|
3833
3833
|
return !Qr(A) || !Qr(k) || !u || !u.links || !u.nodes ? null : /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement(gc, {
|
|
3834
3834
|
computedData: {
|
|
@@ -3844,17 +3844,17 @@ function dg(s) {
|
|
|
3844
3844
|
modifiedLinks: C,
|
|
3845
3845
|
linkContent: n,
|
|
3846
3846
|
dataKey: o,
|
|
3847
|
-
onMouseEnter: (R,
|
|
3848
|
-
onMouseLeave: (R,
|
|
3849
|
-
onClick: (R,
|
|
3847
|
+
onMouseEnter: (R, _) => I(R, "link", _),
|
|
3848
|
+
onMouseLeave: (R, _) => M(R, "link", _),
|
|
3849
|
+
onClick: (R, _) => O(R, "link", _)
|
|
3850
3850
|
}), /* @__PURE__ */ L.createElement(cg, {
|
|
3851
3851
|
graphicalItemId: i,
|
|
3852
3852
|
modifiedNodes: P,
|
|
3853
3853
|
nodeContent: l,
|
|
3854
3854
|
dataKey: o,
|
|
3855
|
-
onMouseEnter: (R,
|
|
3856
|
-
onMouseLeave: (R,
|
|
3857
|
-
onClick: (R,
|
|
3855
|
+
onMouseEnter: (R, _) => I(R, "node", _),
|
|
3856
|
+
onMouseLeave: (R, _) => M(R, "node", _),
|
|
3857
|
+
onClick: (R, _) => O(R, "node", _)
|
|
3858
3858
|
})));
|
|
3859
3859
|
}
|
|
3860
3860
|
function no(s) {
|
|
@@ -7209,10 +7209,10 @@ var Le = function() {
|
|
|
7209
7209
|
M ? t = r : (t = n, A.globals.animationEnded = !0);
|
|
7210
7210
|
var O = A.config.stroke.dashArray, R = 0;
|
|
7211
7211
|
R = Array.isArray(O) ? O[i] : A.config.stroke.dashArray;
|
|
7212
|
-
var
|
|
7213
|
-
|
|
7214
|
-
var X = { el:
|
|
7215
|
-
return !C || A.globals.resized || A.globals.dataChanged ? !A.globals.resized && A.globals.dataChanged || S.showDelayedElements() : S.animatePathsGradually(G(G({}, X), {}, { speed: u })), A.globals.dataChanged && P && M && S.animatePathsGradually(G(G({}, X), {}, { speed: g })),
|
|
7212
|
+
var _ = this.drawPath({ d: t, stroke: o, strokeWidth: l, fill: h, fillOpacity: 1, classes: p, strokeLinecap: c, strokeDashArray: R });
|
|
7213
|
+
_.attr("index", i), m && (f === "bar" && !A.globals.isHorizontal || A.globals.comboCharts ? _.attr({ "clip-path": "url(#gridRectBarMask".concat(A.globals.cuid, ")") }) : _.attr({ "clip-path": "url(#gridRectMask".concat(A.globals.cuid, ")") })), A.config.chart.dropShadow.enabled && b && k.dropShadow(_, A.config.chart.dropShadow, i), w && (_.node.addEventListener("mouseenter", this.pathMouseEnter.bind(this, _)), _.node.addEventListener("mouseleave", this.pathMouseLeave.bind(this, _)), _.node.addEventListener("mousedown", this.pathMouseDown.bind(this, _))), _.attr({ pathTo: n, pathFrom: r });
|
|
7214
|
+
var X = { el: _, j: a, realIndex: i, pathFrom: r, pathTo: n, fill: h, strokeWidth: l, delay: d };
|
|
7215
|
+
return !C || A.globals.resized || A.globals.dataChanged ? !A.globals.resized && A.globals.dataChanged || S.showDelayedElements() : S.animatePathsGradually(G(G({}, X), {}, { speed: u })), A.globals.dataChanged && P && M && S.animatePathsGradually(G(G({}, X), {}, { speed: g })), _;
|
|
7216
7216
|
} }, { key: "drawPattern", value: function(e, t, a) {
|
|
7217
7217
|
var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "#a8a8a8", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
|
|
7218
7218
|
return this.w.globals.dom.Paper.pattern(t, a, function(n) {
|
|
@@ -7981,8 +7981,8 @@ var Le = function() {
|
|
|
7981
7981
|
O && O.appendChild(M.node);
|
|
7982
7982
|
var R = M.bbox();
|
|
7983
7983
|
if (r) {
|
|
7984
|
-
var
|
|
7985
|
-
O.insertBefore(
|
|
7984
|
+
var _ = this.graphics.drawRect(R.x - y, R.y - P, R.width + y + A, R.height + S + P, f, u || "transparent", 1, g, x, p);
|
|
7985
|
+
O.insertBefore(_.node, M.node);
|
|
7986
7986
|
}
|
|
7987
7987
|
} }, { key: "addImage", value: function(e, t) {
|
|
7988
7988
|
var a = this.w, i = e.path, r = e.x, n = r === void 0 ? 0 : r, o = e.y, l = o === void 0 ? 0 : o, c = e.width, h = c === void 0 ? 20 : c, d = e.height, u = d === void 0 ? 20 : d, g = e.appendTo, p = g === void 0 ? ".apexcharts-svg" : g, f = a.globals.dom.Paper.image(i);
|
|
@@ -9114,8 +9114,8 @@ var Le = function() {
|
|
|
9114
9114
|
var M = t.drawText({ x: P.x, y: l.offY + u.config.xaxis.labels.offsetY + I - (u.config.xaxis.position === "top" ? u.globals.xAxisHeight + u.config.xaxis.axisTicks.height - 2 : 0), text: P.text, textAnchor: "middle", fontWeight: P.isBold ? 600 : x, fontSize: g, fontFamily: p, foreColor: Array.isArray(f) ? e && u.config.xaxis.convertedCatToNumeric ? f[u.globals.minX + S - 1] : f[S] : f, isPlainText: !1, cssClass: (e ? "apexcharts-xaxis-label " : "apexcharts-xaxis-group-label ") + m });
|
|
9115
9115
|
if (a.add(M), M.on("click", function(R) {
|
|
9116
9116
|
if (typeof u.config.chart.events.xAxisLabelClick == "function") {
|
|
9117
|
-
var
|
|
9118
|
-
u.config.chart.events.xAxisLabelClick(R, l.ctx,
|
|
9117
|
+
var _ = Object.assign({}, u, { labelIndex: S });
|
|
9118
|
+
u.config.chart.events.xAxisLabelClick(R, l.ctx, _);
|
|
9119
9119
|
}
|
|
9120
9120
|
}), e) {
|
|
9121
9121
|
var O = document.createElementNS(u.globals.SVGNS, "title");
|
|
@@ -9141,8 +9141,8 @@ var Le = function() {
|
|
|
9141
9141
|
var I = n.drawText({ x: C, y: a + t + g.offsetY - S, text: A, textAnchor: P, foreColor: Array.isArray(k) ? k[b] : k, fontSize: g.style.fontSize, fontFamily: g.style.fontFamily, fontWeight: g.style.fontWeight, isPlainText: !1, cssClass: "apexcharts-yaxis-label " + g.style.cssClass, maxWidth: g.maxWidth });
|
|
9142
9142
|
c.add(I), I.on("click", function(R) {
|
|
9143
9143
|
if (typeof r.config.chart.events.xAxisLabelClick == "function") {
|
|
9144
|
-
var
|
|
9145
|
-
r.config.chart.events.xAxisLabelClick(R, i.ctx,
|
|
9144
|
+
var _ = Object.assign({}, r, { labelIndex: b });
|
|
9145
|
+
r.config.chart.events.xAxisLabelClick(R, i.ctx, _);
|
|
9146
9146
|
}
|
|
9147
9147
|
});
|
|
9148
9148
|
var M = document.createElementNS(r.globals.SVGNS, "title");
|
|
@@ -9354,21 +9354,21 @@ var Le = function() {
|
|
|
9354
9354
|
m = Math.abs(t - e), v = E.getGCD(m, v), x = Math.round(m / v);
|
|
9355
9355
|
}
|
|
9356
9356
|
if (u || r || n || (x = Math.ceil((m - l) / (v + l))) > 16 && E.getPrimeFactors(x).length < 2 && x++, !u && a.forceNiceScale && h.yValueDecimal === 0 && x > m && (x = m, v = Math.round(m / x)), x > i && (!u && !d || a.forceNiceScale)) {
|
|
9357
|
-
var
|
|
9357
|
+
var _ = E.getPrimeFactors(x), X = _.length - 1, F = x;
|
|
9358
9358
|
e: for (var N = 0; N < X; N++) for (var V = 0; V <= X - N; V++) {
|
|
9359
|
-
for (var T = Math.min(V + N, X),
|
|
9360
|
-
if ((
|
|
9361
|
-
F =
|
|
9359
|
+
for (var T = Math.min(V + N, X), D = F, H = 1, K = V; K <= T; K++) H *= _[K];
|
|
9360
|
+
if ((D /= H) < i) {
|
|
9361
|
+
F = D;
|
|
9362
9362
|
break e;
|
|
9363
9363
|
}
|
|
9364
9364
|
}
|
|
9365
9365
|
v = F === x ? m : m / F, x = Math.round(m / v);
|
|
9366
9366
|
}
|
|
9367
9367
|
h.isMultipleYAxis && h.multiAxisTickAmount == 0 && h.ignoreYAxisIndexes.indexOf(o) < 0 && (h.multiAxisTickAmount = x);
|
|
9368
|
-
var
|
|
9368
|
+
var U = e - v, te = v * l;
|
|
9369
9369
|
do
|
|
9370
|
-
|
|
9371
|
-
while (t -
|
|
9370
|
+
U += v, f.push(E.stripNumber(U, 7));
|
|
9371
|
+
while (t - U > te);
|
|
9372
9372
|
return { result: f, niceMin: f[0], niceMax: f[f.length - 1] };
|
|
9373
9373
|
} }, { key: "linearScale", value: function(e, t) {
|
|
9374
9374
|
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 10, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, n = Math.abs(t - e), o = [];
|
|
@@ -10737,8 +10737,8 @@ var Le = function() {
|
|
|
10737
10737
|
var S = h.config.tooltip.inverseOrder ? A : b;
|
|
10738
10738
|
if (h.globals.axisCharts) {
|
|
10739
10739
|
var C = function(M) {
|
|
10740
|
-
var O, R,
|
|
10741
|
-
return h.globals.isRangeData ? k.yLbFormatter((O = h.globals.seriesRangeStart) === null || O === void 0 || (R = O[M]) === null || R === void 0 ? void 0 : R[r], { series: h.globals.seriesRangeStart, seriesIndex: M, dataPointIndex: r, w: h }) + " - " + k.yLbFormatter((
|
|
10740
|
+
var O, R, _, X;
|
|
10741
|
+
return h.globals.isRangeData ? k.yLbFormatter((O = h.globals.seriesRangeStart) === null || O === void 0 || (R = O[M]) === null || R === void 0 ? void 0 : R[r], { series: h.globals.seriesRangeStart, seriesIndex: M, dataPointIndex: r, w: h }) + " - " + k.yLbFormatter((_ = h.globals.seriesRangeEnd) === null || _ === void 0 || (X = _[M]) === null || X === void 0 ? void 0 : X[r], { series: h.globals.seriesRangeEnd, seriesIndex: M, dataPointIndex: r, w: h }) : k.yLbFormatter(h.globals.series[M][r], { series: h.globals.series, seriesIndex: M, dataPointIndex: r, w: h });
|
|
10742
10742
|
};
|
|
10743
10743
|
if (l) k = a.getFormatters(S), x = a.getSeriesName({ fn: k.yLbTitleFormatter, index: S, seriesIndex: i, j: r }), m = h.globals.colors[S], t = C(S), u(S) && (d = h.globals.seriesGoals[S][r].map(function(M) {
|
|
10744
10744
|
return { attrs: M, val: k.yLbFormatter(M.value, { seriesIndex: S, dataPointIndex: r, w: h }) };
|
|
@@ -11244,22 +11244,22 @@ var Le = function() {
|
|
|
11244
11244
|
if (k.config.legend.tooltipHoverFormatter) {
|
|
11245
11245
|
var M = k.config.legend.tooltipHoverFormatter, O = Array.from(this.legendLabels);
|
|
11246
11246
|
O.forEach(function(K) {
|
|
11247
|
-
var
|
|
11248
|
-
K.innerHTML = decodeURIComponent(
|
|
11247
|
+
var U = K.getAttribute("data:default-text");
|
|
11248
|
+
K.innerHTML = decodeURIComponent(U);
|
|
11249
11249
|
});
|
|
11250
11250
|
for (var R = 0; R < O.length; R++) {
|
|
11251
|
-
var
|
|
11252
|
-
if (A)
|
|
11253
|
-
else if (
|
|
11251
|
+
var _ = O[R], X = parseInt(_.getAttribute("i"), 10), F = decodeURIComponent(_.getAttribute("data:default-text")), N = M(F, { seriesIndex: A ? X : a, dataPointIndex: i, w: k });
|
|
11252
|
+
if (A) _.innerHTML = k.globals.collapsedSeriesIndices.indexOf(X) < 0 ? N : F;
|
|
11253
|
+
else if (_.innerHTML = X === a ? N : F, a === X) break;
|
|
11254
11254
|
}
|
|
11255
11255
|
}
|
|
11256
11256
|
var V = G(G({ ttItems: r, i: a, j: i }, ((n = k.globals.seriesRange) === null || n === void 0 || (o = n[a]) === null || o === void 0 || (l = o[i]) === null || l === void 0 || (c = l.y[0]) === null || c === void 0 ? void 0 : c.y1) !== void 0 && { y1: (h = k.globals.seriesRange) === null || h === void 0 || (d = h[a]) === null || d === void 0 || (u = d[i]) === null || u === void 0 || (g = u.y[0]) === null || g === void 0 ? void 0 : g.y1 }), ((p = k.globals.seriesRange) === null || p === void 0 || (f = p[a]) === null || f === void 0 || (x = f[i]) === null || x === void 0 || (m = x.y[0]) === null || m === void 0 ? void 0 : m.y2) !== void 0 && { y2: (v = k.globals.seriesRange) === null || v === void 0 || (w = v[a]) === null || w === void 0 || (y = w[i]) === null || y === void 0 || (b = y.y[0]) === null || b === void 0 ? void 0 : b.y2 });
|
|
11257
11257
|
if (A) {
|
|
11258
11258
|
if (S.tooltipLabels.drawSeriesTexts(G(G({}, V), {}, { shared: !this.showOnIntersect && this.tConfig.shared })), C) I();
|
|
11259
11259
|
else if (this.tooltipUtil.hasBars() && (this.barSeriesHeight = this.tooltipUtil.getBarsHeight(P), this.barSeriesHeight > 0)) {
|
|
11260
|
-
var T = new Y(this.ctx),
|
|
11260
|
+
var T = new Y(this.ctx), D = k.globals.dom.Paper.find(".apexcharts-bar-area[j='".concat(i, "']"));
|
|
11261
11261
|
this.deactivateHoverFilter(), S.tooltipUtil.getAllMarkers(!0).length && !this.barSeriesHeight && I(), S.tooltipPosition.moveStickyTooltipOverBars(i, a);
|
|
11262
|
-
for (var H = 0; H <
|
|
11262
|
+
for (var H = 0; H < D.length; H++) T.pathMouseEnter(D[H]);
|
|
11263
11263
|
}
|
|
11264
11264
|
} else S.tooltipLabels.drawSeriesTexts(G({ shared: !1 }, V)), this.tooltipUtil.hasBars() && S.tooltipPosition.moveStickyTooltipOverBars(i, a), C && S.tooltipPosition.moveMarkers(a, i);
|
|
11265
11265
|
} }]), s;
|
|
@@ -11272,13 +11272,13 @@ var Le = function() {
|
|
|
11272
11272
|
v.globals.isXNumeric && !v.globals.isBarHorizontal ? (t = i + parseFloat(p * (m + 1)), a = r + parseFloat(g * (m + 1)) - y) : (t = i + parseFloat(p * m), a = r + parseFloat(g * m));
|
|
11273
11273
|
var b, A = null, k = i, S = r, C = {}, P = v.config.dataLabels, I = this.barCtx.barOptions.dataLabels, M = this.barCtx.barOptions.dataLabels.total;
|
|
11274
11274
|
x !== void 0 && this.barCtx.isRangeBar && (a = x, S = x), f !== void 0 && this.barCtx.isVerticalGroupedRangeBar && (t = f, k = f);
|
|
11275
|
-
var O = P.offsetX, R = P.offsetY,
|
|
11275
|
+
var O = P.offsetX, R = P.offsetY, _ = { width: 0, height: 0 };
|
|
11276
11276
|
if (v.config.dataLabels.enabled) {
|
|
11277
11277
|
var X = v.globals.series[l][c];
|
|
11278
|
-
|
|
11278
|
+
_ = w.getTextRects(v.config.dataLabels.formatter ? v.config.dataLabels.formatter(X, G(G({}, v), {}, { seriesIndex: l, dataPointIndex: c, w: v })) : v.globals.yLabelFormatters[0](X), parseFloat(P.style.fontSize));
|
|
11279
11279
|
}
|
|
11280
|
-
var F = { x: i, y: r, i: l, j: c, realIndex: h, columnGroupIndex: d, bcx: t, bcy: a, barHeight: g, barWidth: p, textRects:
|
|
11281
|
-
return C = this.barCtx.isHorizontal ? this.calculateBarsDataLabelsPosition(F) : this.calculateColumnsDataLabelsPosition(F), b = this.drawCalculatedDataLabels({ x: C.dataLabelsX, y: C.dataLabelsY, val: this.barCtx.isRangeBar ? [n, o] : v.config.chart.stackType === "100%" ? u[h][c] : v.globals.series[h][c], i: h, j: c, barWidth: p, barHeight: g, textRects:
|
|
11280
|
+
var F = { x: i, y: r, i: l, j: c, realIndex: h, columnGroupIndex: d, bcx: t, bcy: a, barHeight: g, barWidth: p, textRects: _, strokeWidth: y, dataLabelsX: k, dataLabelsY: S, dataLabelsConfig: P, barDataLabelsConfig: I, barTotalDataLabelsConfig: M, offX: O, offY: R };
|
|
11281
|
+
return C = this.barCtx.isHorizontal ? this.calculateBarsDataLabelsPosition(F) : this.calculateColumnsDataLabelsPosition(F), b = this.drawCalculatedDataLabels({ x: C.dataLabelsX, y: C.dataLabelsY, val: this.barCtx.isRangeBar ? [n, o] : v.config.chart.stackType === "100%" ? u[h][c] : v.globals.series[h][c], i: h, j: c, barWidth: p, barHeight: g, textRects: _, dataLabelsConfig: P }), v.config.chart.stacked && M.enabled && (A = this.drawTotalDataLabels({ x: C.totalDataLabelsX, y: C.totalDataLabelsY, barWidth: p, barHeight: g, realIndex: h, textAnchor: C.totalDataLabelsAnchor, val: this.getStackedTotalDataLabel({ realIndex: h, j: c }), dataLabelsConfig: P, barTotalDataLabelsConfig: M })), { dataLabelsPos: C, dataLabels: b, totalDataLabels: A };
|
|
11282
11282
|
} }, { key: "getStackedTotalDataLabel", value: function(e) {
|
|
11283
11283
|
var t = e.realIndex, a = e.j, i = this.w, r = this.barCtx.stackedSeriesTotals[a];
|
|
11284
11284
|
return this.totalFormatter && (r = this.totalFormatter(r, G(G({}, i), {}, { seriesIndex: t, dataPointIndex: a, w: i }))), r;
|
|
@@ -11303,9 +11303,9 @@ var Le = function() {
|
|
|
11303
11303
|
f = k ? P ? I + b : I - b : P ? I - g.height / 2 - b : I + g.height + b;
|
|
11304
11304
|
}
|
|
11305
11305
|
var M = I;
|
|
11306
|
-
if (a.globals.seriesGroups.forEach(function(
|
|
11306
|
+
if (a.globals.seriesGroups.forEach(function(_) {
|
|
11307
11307
|
var X;
|
|
11308
|
-
(X = t.barCtx[
|
|
11308
|
+
(X = t.barCtx[_.join(",")]) === null || X === void 0 || X.prevY.forEach(function(F) {
|
|
11309
11309
|
M = P ? Math.max(F[r], M) : Math.min(F[r], M);
|
|
11310
11310
|
});
|
|
11311
11311
|
}), this.barCtx.lastActiveBarSerieIndex === n && v.enabled) {
|
|
@@ -11334,8 +11334,8 @@ var Le = function() {
|
|
|
11334
11334
|
var I = P;
|
|
11335
11335
|
if (a.globals.seriesGroups.forEach(function(O) {
|
|
11336
11336
|
var R;
|
|
11337
|
-
(R = t.barCtx[O.join(",")]) === null || R === void 0 || R.prevX.forEach(function(
|
|
11338
|
-
I = C ? Math.min(
|
|
11337
|
+
(R = t.barCtx[O.join(",")]) === null || R === void 0 || R.prevX.forEach(function(_) {
|
|
11338
|
+
I = C ? Math.min(_[n], I) : Math.max(_[n], I);
|
|
11339
11339
|
});
|
|
11340
11340
|
}), this.barCtx.lastActiveBarSerieIndex === o && x.enabled) {
|
|
11341
11341
|
var M = new Y(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({ realIndex: o, j: n }), p.fontSize);
|
|
@@ -11458,8 +11458,8 @@ var Le = function() {
|
|
|
11458
11458
|
var M, O = Math.max.apply(Math, h), R = ea(h);
|
|
11459
11459
|
try {
|
|
11460
11460
|
for (R.s(); !(M = R.n()).done; ) {
|
|
11461
|
-
var
|
|
11462
|
-
o[
|
|
11461
|
+
var _ = M.value;
|
|
11462
|
+
o[_][l] = _ === O ? "bottom" : "none";
|
|
11463
11463
|
}
|
|
11464
11464
|
} catch (X) {
|
|
11465
11465
|
R.e(X);
|
|
@@ -11596,14 +11596,14 @@ var Le = function() {
|
|
|
11596
11596
|
for (var I = 0; I < e[o].length; I++) {
|
|
11597
11597
|
var M = this.barHelpers.getStrokeWidth(o, I, m), O = null, R = { indexes: { i: o, j: I, realIndex: m, translationsIndex: A, bc: l }, x: g, y: p, strokeWidth: M, elSeries: w };
|
|
11598
11598
|
this.isHorizontal ? (O = this.drawBarPaths(G(G({}, R), {}, { barHeight: y, zeroW: u, yDivision: h })), b = this.series[o][I] / this.invertedYRatio) : (O = this.drawColumnPaths(G(G({}, R), {}, { xDivision: c, barWidth: b, zeroH: d })), y = this.series[o][I] / this.yRatio[A]);
|
|
11599
|
-
var
|
|
11599
|
+
var _ = this.barHelpers.getPathFillColor(e, o, I, m);
|
|
11600
11600
|
if (this.isFunnel && this.barOptions.isFunnel3d && this.pathArr.length && I > 0) {
|
|
11601
|
-
var X, F = this.barHelpers.drawBarShadow({ color: typeof
|
|
11601
|
+
var X, F = this.barHelpers.drawBarShadow({ color: typeof _.color == "string" && ((X = _.color) === null || X === void 0 ? void 0 : X.indexOf("url")) === -1 ? _.color : E.hexToRgba(a.globals.colors[o]), prevPaths: this.pathArr[this.pathArr.length - 1], currPaths: O });
|
|
11602
11602
|
P.add(F), a.config.chart.dropShadow.enabled && new Le(this.ctx).dropShadow(F, a.config.chart.dropShadow, m);
|
|
11603
11603
|
}
|
|
11604
11604
|
this.pathArr.push(O);
|
|
11605
11605
|
var N = this.barHelpers.drawGoalLine({ barXPosition: O.barXPosition, barYPosition: O.barYPosition, goalX: O.goalX, goalY: O.goalY, barHeight: y, barWidth: b });
|
|
11606
|
-
N && C.add(N), p = O.y, g = O.x, I > 0 && x.push(g + b / 2), f.push(p), this.renderSeries(G(G({ realIndex: m, pathFill:
|
|
11606
|
+
N && C.add(N), p = O.y, g = O.x, I > 0 && x.push(g + b / 2), f.push(p), this.renderSeries(G(G({ realIndex: m, pathFill: _.color }, _.useRangeColor ? { lineFill: _.color } : {}), {}, { j: I, i: o, columnGroupIndex: v, pathFrom: O.pathFrom, pathTo: O.pathTo, strokeWidth: M, elSeries: w, x: g, y: p, series: e, barHeight: Math.abs(O.barHeight ? O.barHeight : y), barWidth: Math.abs(O.barWidth ? O.barWidth : b), elDataLabelsWrap: S, elGoalsMarkers: C, elBarShadows: P, visibleSeries: this.visibleI, type: "bar" }));
|
|
11607
11607
|
}
|
|
11608
11608
|
a.globals.seriesXvalues[m] = x, a.globals.seriesYvalues[m] = f, n.add(w);
|
|
11609
11609
|
}
|
|
@@ -11612,19 +11612,19 @@ var Le = function() {
|
|
|
11612
11612
|
var t = e.realIndex, a = e.pathFill, i = e.lineFill, r = e.j, n = e.i, o = e.columnGroupIndex, l = e.pathFrom, c = e.pathTo, h = e.strokeWidth, d = e.elSeries, u = e.x, g = e.y, p = e.y1, f = e.y2, x = e.series, m = e.barHeight, v = e.barWidth, w = e.barXPosition, y = e.barYPosition, b = e.elDataLabelsWrap, A = e.elGoalsMarkers, k = e.elBarShadows, S = e.visibleSeries, C = e.type, P = e.classes, I = this.w, M = new Y(this.ctx), O = !1;
|
|
11613
11613
|
if (!i) {
|
|
11614
11614
|
var R = typeof I.globals.stroke.colors[t] == "function" ? function(V) {
|
|
11615
|
-
var T,
|
|
11616
|
-
return Array.isArray(
|
|
11615
|
+
var T, D = I.config.stroke.colors;
|
|
11616
|
+
return Array.isArray(D) && D.length > 0 && ((T = D[V]) || (T = ""), typeof T == "function") ? T({ value: I.globals.series[V][r], dataPointIndex: r, w: I }) : T;
|
|
11617
11617
|
}(t) : I.globals.stroke.colors[t];
|
|
11618
11618
|
i = this.barOptions.distributed ? I.globals.stroke.colors[r] : R;
|
|
11619
11619
|
}
|
|
11620
|
-
var
|
|
11621
|
-
I.globals.isBarHorizontal || (
|
|
11620
|
+
var _ = new gf(this).handleBarDataLabels({ x: u, y: g, y1: p, y2: f, i: n, j: r, series: x, realIndex: t, columnGroupIndex: o, barHeight: m, barWidth: v, barXPosition: w, barYPosition: y, visibleSeries: S });
|
|
11621
|
+
I.globals.isBarHorizontal || (_.dataLabelsPos.dataLabelsX + Math.max(v, I.globals.barPadForNumericAxis) < 0 || _.dataLabelsPos.dataLabelsX - Math.max(v, I.globals.barPadForNumericAxis) > I.globals.gridWidth) && (O = !0), I.config.series[n].data[r] && I.config.series[n].data[r].strokeColor && (i = I.config.series[n].data[r].strokeColor), this.isNullValue && (a = "none");
|
|
11622
11622
|
var X = r / I.config.chart.animations.animateGradually.delay * (I.config.chart.animations.speed / I.globals.dataPoints) / 2.4;
|
|
11623
11623
|
if (!O) {
|
|
11624
11624
|
var F = M.renderPaths({ i: n, j: r, realIndex: t, pathFrom: l, pathTo: c, stroke: i, strokeWidth: h, strokeLineCap: I.config.stroke.lineCap, fill: a, animationDelay: X, initialSpeed: I.config.chart.animations.speed, dataChangeSpeed: I.config.chart.animations.dynamicAnimation.speed, className: "apexcharts-".concat(C, "-area ").concat(P), chartType: C });
|
|
11625
11625
|
F.attr("clip-path", "url(#gridRectBarMask".concat(I.globals.cuid, ")"));
|
|
11626
11626
|
var N = I.config.forecastDataPoints;
|
|
11627
|
-
N.count > 0 && r >= I.globals.dataPoints - N.count && (F.node.setAttribute("stroke-dasharray", N.dashArray), F.node.setAttribute("stroke-width", N.strokeWidth), F.node.setAttribute("fill-opacity", N.fillOpacity)), p !== void 0 && f !== void 0 && (F.attr("data-range-y1", p), F.attr("data-range-y2", f)), new Le(this.ctx).setSelectionFilter(F, t, r), d.add(F), F.attr({ cy:
|
|
11627
|
+
N.count > 0 && r >= I.globals.dataPoints - N.count && (F.node.setAttribute("stroke-dasharray", N.dashArray), F.node.setAttribute("stroke-width", N.strokeWidth), F.node.setAttribute("fill-opacity", N.fillOpacity)), p !== void 0 && f !== void 0 && (F.attr("data-range-y1", p), F.attr("data-range-y2", f)), new Le(this.ctx).setSelectionFilter(F, t, r), d.add(F), F.attr({ cy: _.dataLabelsPos.bcy, cx: _.dataLabelsPos.bcx, j: r, val: I.globals.series[n][r], barHeight: m, barWidth: v }), _.dataLabels !== null && b.add(_.dataLabels), _.totalDataLabels && b.add(_.totalDataLabels), d.add(b), A && d.add(A), k && d.add(k);
|
|
11628
11628
|
}
|
|
11629
11629
|
return d;
|
|
11630
11630
|
} }, { key: "drawBarPaths", value: function(e) {
|
|
@@ -11679,8 +11679,8 @@ var Le = function() {
|
|
|
11679
11679
|
r.yRatio.length > 1 && (r.yaxisIndex = n.globals.seriesYAxisReverseMap[y][0], P = y), r.isReversed = n.config.yaxis[r.yaxisIndex] && n.config.yaxis[r.yaxisIndex].reversed;
|
|
11680
11680
|
var I = r.graphics.group({ class: "apexcharts-series", seriesName: E.escapeString(n.globals.seriesNames[y]), rel: p + 1, "data:realIndex": y });
|
|
11681
11681
|
r.ctx.series.addCollapsedClassToSeries(I, y);
|
|
11682
|
-
var M = r.graphics.group({ class: "apexcharts-datalabels", "data:realIndex": y }), O = r.graphics.group({ class: "apexcharts-bar-goals-markers" }), R = 0,
|
|
11683
|
-
h = X.y, R = X.barHeight, m = X.yDivision, w = X.zeroW, c = X.x,
|
|
11682
|
+
var M = r.graphics.group({ class: "apexcharts-datalabels", "data:realIndex": y }), O = r.graphics.group({ class: "apexcharts-bar-goals-markers" }), R = 0, _ = 0, X = r.initialPositions(c, h, x, m, v, w, P);
|
|
11683
|
+
h = X.y, R = X.barHeight, m = X.yDivision, w = X.zeroW, c = X.x, _ = X.barWidth, x = X.xDivision, v = X.zeroH, n.globals.barHeight = R, n.globals.barWidth = _, r.barHelpers.initializeStackedXYVars(r), r.groupCtx.prevY.length === 1 && r.groupCtx.prevY[0].every(function(te) {
|
|
11684
11684
|
return isNaN(te);
|
|
11685
11685
|
}) && (r.groupCtx.prevY[0] = r.groupCtx.prevY[0].map(function() {
|
|
11686
11686
|
return v;
|
|
@@ -11689,11 +11689,11 @@ var Le = function() {
|
|
|
11689
11689
|
}));
|
|
11690
11690
|
for (var F = 0; F < n.globals.dataPoints; F++) {
|
|
11691
11691
|
var N = r.barHelpers.getStrokeWidth(p, F, y), V = { indexes: { i: p, j: F, realIndex: y, translationsIndex: P, bc: f }, strokeWidth: N, x: c, y: h, elSeries: I, columnGroupIndex: k, seriesGroup: n.globals.seriesGroups[A] }, T = null;
|
|
11692
|
-
r.isHorizontal ? (T = r.drawStackedBarPaths(G(G({}, V), {}, { zeroW: w, barHeight: R, yDivision: m })),
|
|
11693
|
-
var
|
|
11694
|
-
|
|
11695
|
-
var H = r.barHelpers.getPathFillColor(a, p, F, y), K = "",
|
|
11696
|
-
(r.barHelpers.arrBorderRadius[y][F] === "bottom" && n.globals.series[y][F] > 0 || r.barHelpers.arrBorderRadius[y][F] === "top" && n.globals.series[y][F] < 0) && (K =
|
|
11692
|
+
r.isHorizontal ? (T = r.drawStackedBarPaths(G(G({}, V), {}, { zeroW: w, barHeight: R, yDivision: m })), _ = r.series[p][F] / r.invertedYRatio) : (T = r.drawStackedColumnPaths(G(G({}, V), {}, { xDivision: x, barWidth: _, zeroH: v })), R = r.series[p][F] / r.yRatio[P]);
|
|
11693
|
+
var D = r.barHelpers.drawGoalLine({ barXPosition: T.barXPosition, barYPosition: T.barYPosition, goalX: T.goalX, goalY: T.goalY, barHeight: R, barWidth: _ });
|
|
11694
|
+
D && O.add(D), h = T.y, c = T.x, S.push(c), C.push(h);
|
|
11695
|
+
var H = r.barHelpers.getPathFillColor(a, p, F, y), K = "", U = n.globals.isBarHorizontal ? "apexcharts-flip-x" : "apexcharts-flip-y";
|
|
11696
|
+
(r.barHelpers.arrBorderRadius[y][F] === "bottom" && n.globals.series[y][F] > 0 || r.barHelpers.arrBorderRadius[y][F] === "top" && n.globals.series[y][F] < 0) && (K = U), I = r.renderSeries(G(G({ realIndex: y, pathFill: H.color }, H.useRangeColor ? { lineFill: H.color } : {}), {}, { j: F, i: p, columnGroupIndex: k, pathFrom: T.pathFrom, pathTo: T.pathTo, strokeWidth: N, elSeries: I, x: c, y: h, series: a, barHeight: R, barWidth: _, elDataLabelsWrap: M, elGoalsMarkers: O, type: "bar", visibleSeries: k, classes: K }));
|
|
11697
11697
|
}
|
|
11698
11698
|
n.globals.seriesXvalues[y] = S, n.globals.seriesYvalues[y] = C, r.groupCtx.prevY.push(r.groupCtx.yArrj), r.groupCtx.prevYF.push(r.groupCtx.yArrjF), r.groupCtx.prevYVal.push(r.groupCtx.yArrjVal), r.groupCtx.prevX.push(r.groupCtx.xArrj), r.groupCtx.prevXF.push(r.groupCtx.xArrjF), r.groupCtx.prevXVal.push(r.groupCtx.xArrjVal), l.add(I);
|
|
11699
11699
|
}, u = 0, g = 0; u < a.length; u++, g++) d(u, g);
|
|
@@ -11738,13 +11738,13 @@ var Le = function() {
|
|
|
11738
11738
|
break;
|
|
11739
11739
|
}
|
|
11740
11740
|
}
|
|
11741
|
-
for (var
|
|
11741
|
+
for (var _ = 1; _ < M; _++) {
|
|
11742
11742
|
var X, F;
|
|
11743
|
-
if (((X = this.groupCtx.prevYVal[S -
|
|
11743
|
+
if (((X = this.groupCtx.prevYVal[S - _]) === null || X === void 0 ? void 0 : X[f]) < 0) {
|
|
11744
11744
|
P = this.series[p][f] >= 0 ? I - A + 2 * (this.isReversed ? A : 0) : I;
|
|
11745
11745
|
break;
|
|
11746
11746
|
}
|
|
11747
|
-
if (((F = this.groupCtx.prevYVal[S -
|
|
11747
|
+
if (((F = this.groupCtx.prevYVal[S - _]) === null || F === void 0 ? void 0 : F[f]) >= 0) {
|
|
11748
11748
|
P = this.series[p][f] >= 0 ? I : I + A - 2 * (this.isReversed ? A : 0);
|
|
11749
11749
|
break;
|
|
11750
11750
|
}
|
|
@@ -11780,13 +11780,13 @@ var Le = function() {
|
|
|
11780
11780
|
n.yRatio.length > 1 && (n.yaxisIndex = o.globals.seriesYAxisReverseMap[S][0], O = S);
|
|
11781
11781
|
var R = n.barHelpers.initialPositions(S);
|
|
11782
11782
|
b = R.y, I = R.barHeight, m = R.yDivision, w = R.zeroW, y = R.x, M = R.barWidth, x = R.xDivision, v = R.zeroH, k.push(y + M / 2);
|
|
11783
|
-
for (var
|
|
11784
|
-
var T = n.barHelpers.getStrokeWidth(f, V, S),
|
|
11785
|
-
|
|
11786
|
-
var K = n.barHelpers.drawGoalLine({ barXPosition:
|
|
11787
|
-
K && X.add(K), V > 0 && k.push(y + M / 2), A.push(b),
|
|
11788
|
-
var z = !n.isBoxPlot && n.candlestickOptions.wick.useFillColor ?
|
|
11789
|
-
n.renderSeries({ realIndex: S, pathFill: B, lineFill: z, j: V, i: f, pathFrom:
|
|
11783
|
+
for (var _ = l.group({ class: "apexcharts-datalabels", "data:realIndex": S }), X = l.group({ class: "apexcharts-bar-goals-markers" }), F = function(V) {
|
|
11784
|
+
var T = n.barHelpers.getStrokeWidth(f, V, S), D = null, H = { indexes: { i: f, j: V, realIndex: S, translationsIndex: O }, x: y, y: b, strokeWidth: T, elSeries: P };
|
|
11785
|
+
D = n.isHorizontal ? n.drawHorizontalBoxPaths(G(G({}, H), {}, { yDivision: m, barHeight: I, zeroW: w })) : n.drawVerticalBoxPaths(G(G({}, H), {}, { xDivision: x, barWidth: M, zeroH: v })), b = D.y, y = D.x;
|
|
11786
|
+
var K = n.barHelpers.drawGoalLine({ barXPosition: D.barXPosition, barYPosition: D.barYPosition, goalX: D.goalX, goalY: D.goalY, barHeight: I, barWidth: M });
|
|
11787
|
+
K && X.add(K), V > 0 && k.push(y + M / 2), A.push(b), D.pathTo.forEach(function(U, te) {
|
|
11788
|
+
var z = !n.isBoxPlot && n.candlestickOptions.wick.useFillColor ? D.color[te] : o.globals.stroke.colors[f], B = h.fillPath({ seriesNumber: S, dataPointIndex: V, color: D.color[te], value: a[f][V] });
|
|
11789
|
+
n.renderSeries({ realIndex: S, pathFill: B, lineFill: z, j: V, i: f, pathFrom: D.pathFrom, pathTo: U, strokeWidth: T, elSeries: P, x: y, y: b, series: a, columnGroupIndex: C, barHeight: I, barWidth: M, elDataLabelsWrap: _, elGoalsMarkers: X, visibleSeries: n.visibleI, type: o.config.chart.type });
|
|
11790
11790
|
});
|
|
11791
11791
|
}, N = 0; N < o.globals.dataPoints; N++) F(N);
|
|
11792
11792
|
o.globals.seriesXvalues[S] = k, o.globals.seriesYvalues[S] = A, u.add(P);
|
|
@@ -11805,8 +11805,8 @@ var Le = function() {
|
|
|
11805
11805
|
this.series[u][g] === void 0 || this.series[u][g] === null ? (C = l, P = l) : (C = l - C / y, P = l - P / y, A = l - b.h / y, k = l - b.l / y, I = l - b.m / y);
|
|
11806
11806
|
var O = d.move(M, l), R = d.move(M + o / 2, C);
|
|
11807
11807
|
if (h.globals.previousPaths.length > 0 && (R = this.getPreviousPath(x, g, !0)), this.isOHLC) {
|
|
11808
|
-
var
|
|
11809
|
-
O = [d.move(
|
|
11808
|
+
var _ = M + o / 2, X = l - b.o / y, F = l - b.c / y;
|
|
11809
|
+
O = [d.move(_, A) + d.line(_, k) + d.move(_, X) + d.line(M, X) + d.move(_, F) + d.line(M + o, F)];
|
|
11810
11810
|
} else O = this.isBoxPlot ? [d.move(M, C) + d.line(M + o / 2, C) + d.line(M + o / 2, A) + d.line(M + o / 4, A) + d.line(M + o - o / 4, A) + d.line(M + o / 2, A) + d.line(M + o / 2, C) + d.line(M + o, C) + d.line(M + o, I) + d.line(M, I) + d.line(M, C + c / 2), d.move(M, I) + d.line(M + o, I) + d.line(M + o, P) + d.line(M + o / 2, P) + d.line(M + o / 2, k) + d.line(M + o - o / 4, k) + d.line(M + o / 4, k) + d.line(M + o / 2, k) + d.line(M + o / 2, P) + d.line(M, P) + d.line(M, I) + "z"] : [d.move(M, P) + d.line(M + o / 2, P) + d.line(M + o / 2, A) + d.line(M + o / 2, P) + d.line(M + o, P) + d.line(M + o, C) + d.line(M + o / 2, C) + d.line(M + o / 2, k) + d.line(M + o / 2, C) + d.line(M, C) + d.line(M, P - c / 2)];
|
|
11811
11811
|
return R += d.move(M, C), h.globals.isXNumeric || (r += n), { pathTo: O, pathFrom: R, x: r, y: P, goalY: this.barHelpers.getGoalValues("y", null, l, u, g, i.translationsIndex), barXPosition: M, color: S };
|
|
11812
11812
|
} }, { key: "drawHorizontalBoxPaths", value: function(a) {
|
|
@@ -12103,8 +12103,8 @@ var Le = function() {
|
|
|
12103
12103
|
if (this.yaxisLabels = this.graphics.group({ class: "apexcharts-yaxis" }), e.forEach(function(x, m) {
|
|
12104
12104
|
var v = x.length === a.globals.dataPoints, w = t.graphics.group().attr({ class: "apexcharts-series", "data:longestSeries": v, seriesName: E.escapeString(a.globals.seriesNames[m]), rel: m + 1, "data:realIndex": m });
|
|
12105
12105
|
t.dataRadiusOfPercent[m] = [], t.dataRadius[m] = [], t.angleArr[m] = [], x.forEach(function(O, R) {
|
|
12106
|
-
var
|
|
12107
|
-
O -= t.minValue, t.isLog && (O = t.coreUtils.getLogVal(t.logBase, O, 0)), t.dataRadiusOfPercent[m][R] = O /
|
|
12106
|
+
var _ = Math.abs(t.maxValue - t.minValue);
|
|
12107
|
+
O -= t.minValue, t.isLog && (O = t.coreUtils.getLogVal(t.logBase, O, 0)), t.dataRadiusOfPercent[m][R] = O / _, t.dataRadius[m][R] = t.dataRadiusOfPercent[m][R] * t.size, t.angleArr[m][R] = R * t.disAngle;
|
|
12108
12108
|
}), u = t.getDataPointsPos(t.dataRadius[m], t.angleArr[m]);
|
|
12109
12109
|
var y = t.createPaths(u, { x: 0, y: 0 });
|
|
12110
12110
|
g = t.graphics.group({ class: "apexcharts-series-markers-wrap apexcharts-element-hidden" }), p = t.graphics.group({ class: "apexcharts-datalabels", "data:realIndex": m }), a.globals.delayedElements.push({ el: g.node, index: m });
|
|
@@ -12121,8 +12121,8 @@ var Le = function() {
|
|
|
12121
12121
|
w.add(P);
|
|
12122
12122
|
}
|
|
12123
12123
|
x.forEach(function(O, R) {
|
|
12124
|
-
var
|
|
12125
|
-
X.attr("rel", R), X.attr("j", R), X.attr("index", m), X.node.setAttribute("default-marker-size",
|
|
12124
|
+
var _ = new Kt(t.ctx).getMarkerConfig({ cssClass: "apexcharts-marker", seriesIndex: m, dataPointIndex: R }), X = t.graphics.drawMarker(u[R].x, u[R].y, _);
|
|
12125
|
+
X.attr("rel", R), X.attr("j", R), X.attr("index", m), X.node.setAttribute("default-marker-size", _.pSize);
|
|
12126
12126
|
var F = t.graphics.group({ class: "apexcharts-series-markers" });
|
|
12127
12127
|
F && F.add(X), g.add(F), w.add(g);
|
|
12128
12128
|
var N = a.config.dataLabels;
|
|
@@ -12277,12 +12277,12 @@ var Le = function() {
|
|
|
12277
12277
|
o.dropShadow(O, R, w);
|
|
12278
12278
|
}
|
|
12279
12279
|
if (o.setSelectionFilter(O, 0, w), this.addListeners(O, this.radialDataLabels), y.add(O), O.attr({ index: 0, j: w }), this.barLabels.enabled) {
|
|
12280
|
-
var
|
|
12280
|
+
var _ = E.polarToCartesian(a.centerX, a.centerY, a.size, A), X = this.barLabels.formatter(i.globals.seriesNames[w], { seriesIndex: w, w: i }), F = ["apexcharts-radialbar-label"];
|
|
12281
12281
|
this.barLabels.onClick || F.push("apexcharts-no-click");
|
|
12282
12282
|
var N = this.barLabels.useSeriesColors ? i.globals.colors[w] : i.config.chart.foreColor;
|
|
12283
12283
|
N || (N = i.config.chart.foreColor);
|
|
12284
|
-
var V =
|
|
12285
|
-
|
|
12284
|
+
var V = _.x + this.barLabels.offsetX, T = _.y + this.barLabels.offsetY, D = r.drawText({ x: V, y: T, text: X, textAnchor: "end", dominantBaseline: "middle", fontFamily: this.barLabels.fontFamily, fontWeight: this.barLabels.fontWeight, fontSize: this.barLabels.fontSize, foreColor: N, cssClass: F.join(" ") });
|
|
12285
|
+
D.on("click", this.onBarLabelClick), D.attr({ rel: w + 1 }), A !== 0 && D.attr({ "transform-origin": "".concat(V, " ").concat(T), transform: "rotate(".concat(A, " 0 0)") }), y.add(D);
|
|
12286
12286
|
}
|
|
12287
12287
|
var H = 0;
|
|
12288
12288
|
!this.initialAnim || i.globals.resized || i.globals.dataChanged || (H = i.config.chart.animations.speed), i.globals.dataChanged && (H = i.config.chart.animations.dynamicAnimation.speed), this.animDur = H / (1.2 * a.series.length) + this.animDur, this.animBeginArr.push(this.animDur), this.animatePaths(O, { centerX: a.centerX, centerY: a.centerY, endAngle: C, startAngle: A, prevEndAngle: P, prevStartAngle: k, size: a.size, i: w, totalItems: 2, animBeginArr: this.animBeginArr, dur: H, shouldSetPrevPaths: !0 });
|
|
@@ -12333,7 +12333,7 @@ var Le = function() {
|
|
|
12333
12333
|
var b = this.barHelpers.initialPositions(f);
|
|
12334
12334
|
p = b.y, u = b.zeroW, g = b.x, w = b.barWidth, v = b.barHeight, c = b.xDivision, h = b.yDivision, d = b.zeroH;
|
|
12335
12335
|
for (var A = n.group({ class: "apexcharts-datalabels", "data:realIndex": f }), k = n.group({ class: "apexcharts-rangebar-goals-markers" }), S = 0; S < r.globals.dataPoints; S++) {
|
|
12336
|
-
var C = this.barHelpers.getStrokeWidth(l, S, f), P = this.seriesRangeStart[l][S], I = this.seriesRangeEnd[l][S], M = null, O = null, R = null,
|
|
12336
|
+
var C = this.barHelpers.getStrokeWidth(l, S, f), P = this.seriesRangeStart[l][S], I = this.seriesRangeEnd[l][S], M = null, O = null, R = null, _ = { x: g, y: p, strokeWidth: C, elSeries: m }, X = this.seriesLen;
|
|
12337
12337
|
if (r.config.plotOptions.bar.rangeBarGroupRows && (X = 1), r.config.series[l].data[S] === void 0) break;
|
|
12338
12338
|
if (this.isHorizontal) {
|
|
12339
12339
|
R = p + v * this.visibleI;
|
|
@@ -12342,7 +12342,7 @@ var Le = function() {
|
|
|
12342
12342
|
var N = this.detectOverlappingBars({ i: l, j: S, barYPosition: R, srty: F, barHeight: v, yDivision: h, initPositions: b });
|
|
12343
12343
|
v = N.barHeight, R = N.barYPosition;
|
|
12344
12344
|
}
|
|
12345
|
-
w = (M = this.drawRangeBarPaths(G({ indexes: { i: l, j: S, realIndex: f }, barHeight: v, barYPosition: R, zeroW: u, yDivision: h, y1: P, y2: I },
|
|
12345
|
+
w = (M = this.drawRangeBarPaths(G({ indexes: { i: l, j: S, realIndex: f }, barHeight: v, barYPosition: R, zeroW: u, yDivision: h, y1: P, y2: I }, _))).barWidth;
|
|
12346
12346
|
} else {
|
|
12347
12347
|
r.globals.isXNumeric && (g = (r.globals.seriesX[l][S] - r.globals.minX) / this.xRatio - w / 2), O = g + w * this.visibleI;
|
|
12348
12348
|
var V = (c - w * X) / 2;
|
|
@@ -12350,10 +12350,10 @@ var Le = function() {
|
|
|
12350
12350
|
var T = this.detectOverlappingBars({ i: l, j: S, barXPosition: O, srtx: V, barWidth: w, xDivision: c, initPositions: b });
|
|
12351
12351
|
w = T.barWidth, O = T.barXPosition;
|
|
12352
12352
|
}
|
|
12353
|
-
v = (M = this.drawRangeColumnPaths(G({ indexes: { i: l, j: S, realIndex: f, translationsIndex: y }, barWidth: w, barXPosition: O, zeroH: d, xDivision: c },
|
|
12353
|
+
v = (M = this.drawRangeColumnPaths(G({ indexes: { i: l, j: S, realIndex: f, translationsIndex: y }, barWidth: w, barXPosition: O, zeroH: d, xDivision: c }, _))).barHeight;
|
|
12354
12354
|
}
|
|
12355
|
-
var
|
|
12356
|
-
|
|
12355
|
+
var D = this.barHelpers.drawGoalLine({ barXPosition: M.barXPosition, barYPosition: R, goalX: M.goalX, goalY: M.goalY, barHeight: v, barWidth: w });
|
|
12356
|
+
D && k.add(D), p = M.y, g = M.x;
|
|
12357
12357
|
var H = this.barHelpers.getPathFillColor(a, l, S, f);
|
|
12358
12358
|
this.renderSeries({ realIndex: f, pathFill: H.color, lineFill: H.useRangeColor ? H.color : r.globals.stroke.colors[f], j: S, i: l, x: g, y: p, y1: P, y2: I, pathFrom: M.pathFrom, pathTo: M.pathTo, strokeWidth: C, elSeries: m, series: a, barHeight: v, barWidth: w, barXPosition: O, barYPosition: R, columnGroupIndex: x, elDataLabelsWrap: A, elGoalsMarkers: k, visibleSeries: this.visibleI, type: "rangebar" });
|
|
12359
12359
|
}
|
|
@@ -12463,13 +12463,13 @@ var Oi = function() {
|
|
|
12463
12463
|
k = this.lineHelpers.determineFirstPrevY({ i: u, realIndex: g, series: e, prevY: k, lineYPosition: 0, translationsIndex: p }).prevY, n.config.stroke.curve === "monotoneCubic" && e[u][0] === null ? f.push(null) : f.push(k), w = k, l === "rangeArea" && (b = S = this.lineHelpers.determineFirstPrevY({ i: u, realIndex: g, series: i, prevY: S, lineYPosition: 0, translationsIndex: p }).prevY, x.push(f[0] !== null ? S : null));
|
|
12464
12464
|
var C = this._calculatePathsFrom({ type: l, series: e, i: u, realIndex: g, translationsIndex: p, prevX: A, prevY: k, prevY2: S }), P = [f[0]], I = [x[0]], M = { type: l, series: e, realIndex: g, translationsIndex: p, i: u, x: v, y: 1, pX: y, pY: w, pathsFrom: C, linePaths: [], areaPaths: [], seriesIndex: a, lineYPosition: 0, xArrj: m, yArrj: f, y2Arrj: x, seriesRangeEnd: i }, O = this._iterateOverDataPoints(G(G({}, M), {}, { iterations: l === "rangeArea" ? e[u].length - 1 : void 0, isRangeStart: !0 }));
|
|
12465
12465
|
if (l === "rangeArea") {
|
|
12466
|
-
for (var R = this._calculatePathsFrom({ series: i, i: u, realIndex: g, prevX: A, prevY: S }),
|
|
12467
|
-
O.linePaths.splice(X), O.pathFromLine =
|
|
12466
|
+
for (var R = this._calculatePathsFrom({ series: i, i: u, realIndex: g, prevX: A, prevY: S }), _ = this._iterateOverDataPoints(G(G({}, M), {}, { series: i, xArrj: [v], yArrj: P, y2Arrj: I, pY: b, areaPaths: O.areaPaths, pathsFrom: R, iterations: i[u].length - 1, isRangeStart: !1 })), X = O.linePaths.length / 2, F = 0; F < X; F++) O.linePaths[F] = _.linePaths[F + X] + O.linePaths[F];
|
|
12467
|
+
O.linePaths.splice(X), O.pathFromLine = _.pathFromLine + O.pathFromLine;
|
|
12468
12468
|
} else O.pathFromArea += "z";
|
|
12469
12469
|
this._handlePaths({ type: l, realIndex: g, i: u, paths: O }), this.elSeries.add(this.elPointsMain), this.elSeries.add(this.elDataLabelsWrap), d.push(this.elSeries);
|
|
12470
12470
|
}
|
|
12471
|
-
if (((r = n.config.series[0]) === null || r === void 0 ? void 0 : r.zIndex) !== void 0 && d.sort(function(T,
|
|
12472
|
-
return Number(T.node.getAttribute("zIndex")) - Number(
|
|
12471
|
+
if (((r = n.config.series[0]) === null || r === void 0 ? void 0 : r.zIndex) !== void 0 && d.sort(function(T, D) {
|
|
12472
|
+
return Number(T.node.getAttribute("zIndex")) - Number(D.node.getAttribute("zIndex"));
|
|
12473
12473
|
}), n.config.chart.stacked) for (var N = d.length - 1; N >= 0; N--) c.add(d[N]);
|
|
12474
12474
|
else for (var V = 0; V < d.length; V++) c.add(d[V]);
|
|
12475
12475
|
return c;
|
|
@@ -12532,17 +12532,17 @@ var Oi = function() {
|
|
|
12532
12532
|
}
|
|
12533
12533
|
}
|
|
12534
12534
|
} }, { key: "_iterateOverDataPoints", value: function(e) {
|
|
12535
|
-
var t, a, i = this, r = e.type, n = e.series, o = e.iterations, l = e.realIndex, c = e.translationsIndex, h = e.i, d = e.x, u = e.y, g = e.pX, p = e.pY, f = e.pathsFrom, x = e.linePaths, m = e.areaPaths, v = e.seriesIndex, w = e.lineYPosition, y = e.xArrj, b = e.yArrj, A = e.y2Arrj, k = e.isRangeStart, S = e.seriesRangeEnd, C = this.w, P = new Y(this.ctx), I = this.yRatio, M = f.prevY, O = f.linePath, R = f.areaPath,
|
|
12535
|
+
var t, a, i = this, r = e.type, n = e.series, o = e.iterations, l = e.realIndex, c = e.translationsIndex, h = e.i, d = e.x, u = e.y, g = e.pX, p = e.pY, f = e.pathsFrom, x = e.linePaths, m = e.areaPaths, v = e.seriesIndex, w = e.lineYPosition, y = e.xArrj, b = e.yArrj, A = e.y2Arrj, k = e.isRangeStart, S = e.seriesRangeEnd, C = this.w, P = new Y(this.ctx), I = this.yRatio, M = f.prevY, O = f.linePath, R = f.areaPath, _ = f.pathFromLine, X = f.pathFromArea, F = E.isNumber(C.globals.minYArr[l]) ? C.globals.minYArr[l] : C.globals.minY;
|
|
12536
12536
|
o || (o = C.globals.dataPoints > 1 ? C.globals.dataPoints - 1 : C.globals.dataPoints);
|
|
12537
12537
|
var N = function(J, Z) {
|
|
12538
12538
|
return Z - J / I[c] + 2 * (i.isReversed ? J / I[c] : 0);
|
|
12539
|
-
}, V = u, T = C.config.chart.stacked && !C.globals.comboCharts || C.config.chart.stacked && C.globals.comboCharts && (!this.w.config.chart.stackOnlyBar || ((t = this.w.config.series[l]) === null || t === void 0 ? void 0 : t.type) === "bar" || ((a = this.w.config.series[l]) === null || a === void 0 ? void 0 : a.type) === "column"),
|
|
12540
|
-
Array.isArray(
|
|
12541
|
-
for (var H, K = 0,
|
|
12542
|
-
var te = n[h][
|
|
12539
|
+
}, V = u, T = C.config.chart.stacked && !C.globals.comboCharts || C.config.chart.stacked && C.globals.comboCharts && (!this.w.config.chart.stackOnlyBar || ((t = this.w.config.series[l]) === null || t === void 0 ? void 0 : t.type) === "bar" || ((a = this.w.config.series[l]) === null || a === void 0 ? void 0 : a.type) === "column"), D = C.config.stroke.curve;
|
|
12540
|
+
Array.isArray(D) && (D = Array.isArray(v) ? D[v[h]] : D[h]);
|
|
12541
|
+
for (var H, K = 0, U = 0; U < o && n[h].length !== 0; U++) {
|
|
12542
|
+
var te = n[h][U + 1] === void 0 || n[h][U + 1] === null;
|
|
12543
12543
|
if (C.globals.isXNumeric) {
|
|
12544
|
-
var z = C.globals.seriesX[l][
|
|
12545
|
-
C.globals.seriesX[l][
|
|
12544
|
+
var z = C.globals.seriesX[l][U + 1];
|
|
12545
|
+
C.globals.seriesX[l][U + 1] === void 0 && (z = C.globals.seriesX[l][o - 1]), d = (z - C.globals.minX) / this.xRatio;
|
|
12546
12546
|
} else d += this.xDivision;
|
|
12547
12547
|
T ? h > 0 && C.globals.collapsedSeries.length < C.config.series.length - 1 ? w = this.prevSeriesY[function(J) {
|
|
12548
12548
|
for (var Z = J; Z > 0; Z--) {
|
|
@@ -12550,11 +12550,11 @@ var Oi = function() {
|
|
|
12550
12550
|
Z--;
|
|
12551
12551
|
}
|
|
12552
12552
|
return 0;
|
|
12553
|
-
}(h - 1)][
|
|
12554
|
-
var B = this.lineHelpers.calculatePoints({ series: n, x: d, y: u, realIndex: l, i: h, j:
|
|
12555
|
-
m =
|
|
12553
|
+
}(h - 1)][U + 1] : w = this.zeroY : w = this.zeroY, te ? u = N(F, w) : (u = N(n[h][U + 1], w), r === "rangeArea" && (V = N(S[h][U + 1], w))), y.push(n[h][U + 1] === null ? null : d), !te || C.config.stroke.curve !== "smooth" && C.config.stroke.curve !== "monotoneCubic" ? (b.push(u), A.push(V)) : (b.push(null), A.push(null));
|
|
12554
|
+
var B = this.lineHelpers.calculatePoints({ series: n, x: d, y: u, realIndex: l, i: h, j: U, prevY: M }), q = this._createPaths({ type: r, series: n, i: h, realIndex: l, j: U, x: d, y: u, y2: V, xArrj: y, yArrj: b, y2Arrj: A, pX: g, pY: p, pathState: K, segmentStartX: H, linePath: O, areaPath: R, linePaths: x, areaPaths: m, curve: D, isRangeStart: k });
|
|
12555
|
+
m = q.areaPaths, x = q.linePaths, g = q.pX, p = q.pY, K = q.pathState, H = q.segmentStartX, R = q.areaPath, O = q.linePath, !this.appendPathFrom || C.globals.hasNullValues || D === "monotoneCubic" && r === "rangeArea" || (_ += P.line(d, this.areaBottomY), X += P.line(d, this.areaBottomY)), this.handleNullDataPoints(n, B, h, U, l), this._handleMarkersAndLabels({ type: r, pointsPos: B, i: h, j: U, realIndex: l, isRangeStart: k });
|
|
12556
12556
|
}
|
|
12557
|
-
return { yArrj: b, xArrj: y, pathFromArea: X, areaPaths: m, pathFromLine:
|
|
12557
|
+
return { yArrj: b, xArrj: y, pathFromArea: X, areaPaths: m, pathFromLine: _, linePaths: x, linePath: O, areaPath: R };
|
|
12558
12558
|
} }, { key: "_handleMarkersAndLabels", value: function(e) {
|
|
12559
12559
|
var t = e.type, a = e.pointsPos, i = e.isRangeStart, r = e.i, n = e.j, o = e.realIndex, l = this.w, c = new Ht(this.ctx);
|
|
12560
12560
|
if (this.pointsChart) this.scatter.draw(this.elSeries, n, { realIndex: o, pointsPos: a, zRatio: this.zRatio, elParent: this.elPointsMain });
|
|
@@ -12583,18 +12583,18 @@ var Oi = function() {
|
|
|
12583
12583
|
return [z, r[B]];
|
|
12584
12584
|
}).filter(function(z) {
|
|
12585
12585
|
return z[1] !== null;
|
|
12586
|
-
})),
|
|
12586
|
+
})), _ = R.length > 1 ? wf(R) : R, X = [];
|
|
12587
12587
|
C && (P ? y = R : X = y.reverse());
|
|
12588
12588
|
var F = 0, N = 0;
|
|
12589
12589
|
if (function(z, B) {
|
|
12590
|
-
for (var
|
|
12590
|
+
for (var q = function(W) {
|
|
12591
12591
|
var oe = [], Me = 0;
|
|
12592
12592
|
return W.forEach(function(ze) {
|
|
12593
12593
|
ze !== null ? Me++ : Me > 0 && (oe.push(Me), Me = 0);
|
|
12594
12594
|
}), Me > 0 && oe.push(Me), oe;
|
|
12595
|
-
}(z), J = [], Z = 0, re = 0; Z <
|
|
12595
|
+
}(z), J = [], Z = 0, re = 0; Z < q.length; re += q[Z++]) J[Z] = kf(B, re, re + q[Z]);
|
|
12596
12596
|
return J;
|
|
12597
|
-
}(O,
|
|
12597
|
+
}(O, _).forEach(function(z) {
|
|
12598
12598
|
F++;
|
|
12599
12599
|
var B = function(Z) {
|
|
12600
12600
|
for (var re = "", W = 0; W < Z.length; W++) {
|
|
@@ -12602,8 +12602,8 @@ var Oi = function() {
|
|
|
12602
12602
|
Me > 4 ? (re += "C".concat(oe[0], ", ").concat(oe[1]), re += ", ".concat(oe[2], ", ").concat(oe[3]), re += ", ".concat(oe[4], ", ").concat(oe[5])) : Me > 2 && (re += "S".concat(oe[0], ", ").concat(oe[1]), re += ", ".concat(oe[2], ", ").concat(oe[3]));
|
|
12603
12603
|
}
|
|
12604
12604
|
return re;
|
|
12605
|
-
}(z),
|
|
12606
|
-
P ? m = k.move(R[
|
|
12605
|
+
}(z), q = N, J = (N += z.length) - 1;
|
|
12606
|
+
P ? m = k.move(R[q][0], R[q][1]) + B : C ? m = k.move(X[q][0], X[q][1]) + k.line(R[q][0], R[q][1]) + B + k.line(X[J][0], X[J][1]) : (m = k.move(R[q][0], R[q][1]) + B, v = m + k.line(R[J][0], S) + k.line(R[q][0], S) + "z", y.push(v)), w.push(m);
|
|
12607
12607
|
}), C && F > 1 && !P) {
|
|
12608
12608
|
var V = w.slice(F).reverse();
|
|
12609
12609
|
w.splice(F), V.forEach(function(z) {
|
|
@@ -12623,8 +12623,8 @@ var Oi = function() {
|
|
|
12623
12623
|
break;
|
|
12624
12624
|
}
|
|
12625
12625
|
if (f = 1, n < a[i].length - 2) {
|
|
12626
|
-
var
|
|
12627
|
-
m +=
|
|
12626
|
+
var D = k.curve(g + T, p, o - T, l, o, l);
|
|
12627
|
+
m += D, v += D;
|
|
12628
12628
|
break;
|
|
12629
12629
|
}
|
|
12630
12630
|
case 1:
|
|
@@ -12637,17 +12637,17 @@ var Oi = function() {
|
|
|
12637
12637
|
g = o, p = l;
|
|
12638
12638
|
break;
|
|
12639
12639
|
default:
|
|
12640
|
-
var K = function(z, B,
|
|
12640
|
+
var K = function(z, B, q) {
|
|
12641
12641
|
var J = [];
|
|
12642
12642
|
switch (z) {
|
|
12643
12643
|
case "stepline":
|
|
12644
|
-
J = k.line(B, null, "H") + k.line(null,
|
|
12644
|
+
J = k.line(B, null, "H") + k.line(null, q, "V");
|
|
12645
12645
|
break;
|
|
12646
12646
|
case "linestep":
|
|
12647
|
-
J = k.line(null,
|
|
12647
|
+
J = k.line(null, q, "V") + k.line(B, null, "H");
|
|
12648
12648
|
break;
|
|
12649
12649
|
case "straight":
|
|
12650
|
-
J = k.line(B,
|
|
12650
|
+
J = k.line(B, q);
|
|
12651
12651
|
}
|
|
12652
12652
|
return J;
|
|
12653
12653
|
};
|
|
@@ -12659,8 +12659,8 @@ var Oi = function() {
|
|
|
12659
12659
|
break;
|
|
12660
12660
|
}
|
|
12661
12661
|
if (f = 1, n < a[i].length - 2) {
|
|
12662
|
-
var
|
|
12663
|
-
m +=
|
|
12662
|
+
var U = K(b, o, l);
|
|
12663
|
+
m += U, v += U;
|
|
12664
12664
|
break;
|
|
12665
12665
|
}
|
|
12666
12666
|
case 1:
|
|
@@ -12780,24 +12780,24 @@ var Af = function() {
|
|
|
12780
12780
|
new Le(t.ctx).dropShadow(n, d, c);
|
|
12781
12781
|
}
|
|
12782
12782
|
var u = i.group({ class: "apexcharts-data-labels" }), g = { xMin: 1 / 0, yMin: 1 / 0, xMax: -1 / 0, yMax: -1 / 0 };
|
|
12783
|
-
l.forEach(function(
|
|
12784
|
-
var F =
|
|
12783
|
+
l.forEach(function(_, X) {
|
|
12784
|
+
var F = _[0], N = _[1], V = _[2], T = _[3];
|
|
12785
12785
|
g.xMin = Math.min(g.xMin, F), g.yMin = Math.min(g.yMin, N), g.xMax = Math.max(g.xMax, V), g.yMax = Math.max(g.yMax, T);
|
|
12786
|
-
var
|
|
12787
|
-
|
|
12786
|
+
var D = t.helpers.getShadeColor(a.config.chart.type, c, X, t.negRange), H = D.color, K = r.fillPath({ color: H, seriesNumber: c, dataPointIndex: X }), U = i.drawRect(F, N, V - F, T - N, a.config.plotOptions.treemap.borderRadius, "#fff", 1, t.strokeWidth, a.config.plotOptions.treemap.useFillColorAsStroke ? H : a.globals.stroke.colors[c]);
|
|
12787
|
+
U.attr({ cx: F, cy: N, index: c, i: c, j: X, width: V - F, height: T - N, fill: K }), U.node.classList.add("apexcharts-treemap-rect"), t.helpers.addListeners(U);
|
|
12788
12788
|
var te = { x: F + (V - F) / 2, y: N + (T - N) / 2, width: 0, height: 0 }, z = { x: F, y: N, width: V - F, height: T - N };
|
|
12789
12789
|
if (a.config.chart.animations.enabled && !a.globals.dataChanged) {
|
|
12790
12790
|
var B = 1;
|
|
12791
|
-
a.globals.resized || (B = a.config.chart.animations.speed), t.animateTreemap(
|
|
12791
|
+
a.globals.resized || (B = a.config.chart.animations.speed), t.animateTreemap(U, te, z, B);
|
|
12792
12792
|
}
|
|
12793
12793
|
if (a.globals.dataChanged) {
|
|
12794
|
-
var
|
|
12795
|
-
t.dynamicAnim.enabled && a.globals.shouldAnimate && (
|
|
12794
|
+
var q = 1;
|
|
12795
|
+
t.dynamicAnim.enabled && a.globals.shouldAnimate && (q = t.dynamicAnim.speed, a.globals.previousPaths[c] && a.globals.previousPaths[c][X] && a.globals.previousPaths[c][X].rect && (te = a.globals.previousPaths[c][X].rect), t.animateTreemap(U, te, z, q));
|
|
12796
12796
|
}
|
|
12797
|
-
var J = t.getFontSize(
|
|
12797
|
+
var J = t.getFontSize(_), Z = a.config.dataLabels.formatter(t.labels[c][X], { value: a.globals.series[c][X], seriesIndex: c, dataPointIndex: X, w: a });
|
|
12798
12798
|
a.config.plotOptions.treemap.dataLabels.format === "truncate" && (J = parseInt(a.config.dataLabels.style.fontSize, 10), Z = t.truncateLabels(Z, J, F, N, V, T));
|
|
12799
12799
|
var re = null;
|
|
12800
|
-
a.globals.series[c][X] && (re = t.helpers.calculateDataLabels({ text: Z, x: (F + V) / 2, y: (N + T) / 2 + t.strokeWidth / 2 + J / 3, i: c, j: X, colorProps:
|
|
12800
|
+
a.globals.series[c][X] && (re = t.helpers.calculateDataLabels({ text: Z, x: (F + V) / 2, y: (N + T) / 2 + t.strokeWidth / 2 + J / 3, i: c, j: X, colorProps: D, fontSize: J, series: e })), a.config.dataLabels.enabled && re && t.rotateToFitLabel(re, J, Z, F, N, V, T), h.add(U), re !== null && h.add(re);
|
|
12801
12801
|
});
|
|
12802
12802
|
var p = a.config.plotOptions.treemap.seriesTitle;
|
|
12803
12803
|
if (a.config.series.length > 1 && p && p.show) {
|
|
@@ -13306,12 +13306,12 @@ var Af = function() {
|
|
|
13306
13306
|
break;
|
|
13307
13307
|
case "A":
|
|
13308
13308
|
n = function(o, l) {
|
|
13309
|
-
var c, h, d, u, g, p, f, x, m, v, w, y, b, A, k, S, C, P, I, M, O, R,
|
|
13309
|
+
var c, h, d, u, g, p, f, x, m, v, w, y, b, A, k, S, C, P, I, M, O, R, _, X, F, N, V = Math.abs(l[1]), T = Math.abs(l[2]), D = l[3] % 360, H = l[4], K = l[5], U = l[6], te = l[7], z = new he(o), B = new he(U, te), q = [];
|
|
13310
13310
|
if (V === 0 || T === 0 || z.x === B.x && z.y === B.y) return [["C", z.x, z.y, B.x, B.y, B.x, B.y]];
|
|
13311
|
-
for (c = new he((z.x - B.x) / 2, (z.y - B.y) / 2).transform(new ae().rotate(
|
|
13312
|
-
for (S[0][0] = S[0][1].clone(), S[S.length - 1][2] = S[S.length - 1][1].clone(), d = new ae().rotate(
|
|
13313
|
-
for (O = 1, R = S.length; O < R; O++)
|
|
13314
|
-
return
|
|
13311
|
+
for (c = new he((z.x - B.x) / 2, (z.y - B.y) / 2).transform(new ae().rotate(D)), h = c.x * c.x / (V * V) + c.y * c.y / (T * T), h > 1 && (V *= h = Math.sqrt(h), T *= h), d = new ae().rotate(D).scale(1 / V, 1 / T).rotate(-D), z = z.transform(d), B = B.transform(d), u = [B.x - z.x, B.y - z.y], p = u[0] * u[0] + u[1] * u[1], g = Math.sqrt(p), u[0] /= g, u[1] /= g, f = p < 4 ? Math.sqrt(1 - p / 4) : 0, H === K && (f *= -1), x = new he((B.x + z.x) / 2 + f * -u[1], (B.y + z.y) / 2 + f * u[0]), m = new he(z.x - x.x, z.y - x.y), v = new he(B.x - x.x, B.y - x.y), w = Math.acos(m.x / Math.sqrt(m.x * m.x + m.y * m.y)), m.y < 0 && (w *= -1), y = Math.acos(v.x / Math.sqrt(v.x * v.x + v.y * v.y)), v.y < 0 && (y *= -1), K && w > y && (y += 2 * Math.PI), !K && w < y && (y -= 2 * Math.PI), A = Math.ceil(2 * Math.abs(w - y) / Math.PI), S = [], C = w, b = (y - w) / A, k = 4 * Math.tan(b / 4) / 3, O = 0; O <= A; O++) I = Math.cos(C), P = Math.sin(C), M = new he(x.x + I, x.y + P), S[O] = [new he(M.x + k * P, M.y - k * I), M, new he(M.x - k * P, M.y + k * I)], C += b;
|
|
13312
|
+
for (S[0][0] = S[0][1].clone(), S[S.length - 1][2] = S[S.length - 1][1].clone(), d = new ae().rotate(D).scale(V, T).rotate(-D), O = 0, R = S.length; O < R; O++) S[O][0] = S[O][0].transform(d), S[O][1] = S[O][1].transform(d), S[O][2] = S[O][2].transform(d);
|
|
13313
|
+
for (O = 1, R = S.length; O < R; O++) _ = (M = S[O - 1][2]).x, X = M.y, F = (M = S[O][0]).x, N = M.y, U = (M = S[O][1]).x, te = M.y, q.push(["C", _, X, F, N, U, te]);
|
|
13314
|
+
return q;
|
|
13315
13315
|
}(this.pos, r), r = n[0];
|
|
13316
13316
|
}
|
|
13317
13317
|
return r[0] = "C", this.pos = [r[5], r[6]], this.reflection = [2 * r[5] - r[3], 2 * r[6] - r[4]], n;
|
|
@@ -14876,14 +14876,14 @@ function Rf() {
|
|
|
14876
14876
|
}
|
|
14877
14877
|
}
|
|
14878
14878
|
}
|
|
14879
|
-
var b = l, A = c, k = o, S = n, C = e, P = h, I = a, M = p, O = g, R = t,
|
|
14879
|
+
var b = l, A = c, k = o, S = n, C = e, P = h, I = a, M = p, O = g, R = t, _ = r, X = i, F = d, N = !1;
|
|
14880
14880
|
function V(W) {
|
|
14881
14881
|
return N || (N = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(W) || y(W) === l;
|
|
14882
14882
|
}
|
|
14883
14883
|
function T(W) {
|
|
14884
14884
|
return y(W) === c;
|
|
14885
14885
|
}
|
|
14886
|
-
function
|
|
14886
|
+
function D(W) {
|
|
14887
14887
|
return y(W) === o;
|
|
14888
14888
|
}
|
|
14889
14889
|
function H(W) {
|
|
@@ -14892,7 +14892,7 @@ function Rf() {
|
|
|
14892
14892
|
function K(W) {
|
|
14893
14893
|
return typeof W == "object" && W !== null && W.$$typeof === e;
|
|
14894
14894
|
}
|
|
14895
|
-
function
|
|
14895
|
+
function U(W) {
|
|
14896
14896
|
return y(W) === h;
|
|
14897
14897
|
}
|
|
14898
14898
|
function te(W) {
|
|
@@ -14904,7 +14904,7 @@ function Rf() {
|
|
|
14904
14904
|
function B(W) {
|
|
14905
14905
|
return y(W) === g;
|
|
14906
14906
|
}
|
|
14907
|
-
function
|
|
14907
|
+
function q(W) {
|
|
14908
14908
|
return y(W) === t;
|
|
14909
14909
|
}
|
|
14910
14910
|
function J(W) {
|
|
@@ -14916,7 +14916,7 @@ function Rf() {
|
|
|
14916
14916
|
function re(W) {
|
|
14917
14917
|
return y(W) === d;
|
|
14918
14918
|
}
|
|
14919
|
-
ue.AsyncMode = b, ue.ConcurrentMode = A, ue.ContextConsumer = k, ue.ContextProvider = S, ue.Element = C, ue.ForwardRef = P, ue.Fragment = I, ue.Lazy = M, ue.Memo = O, ue.Portal = R, ue.Profiler =
|
|
14919
|
+
ue.AsyncMode = b, ue.ConcurrentMode = A, ue.ContextConsumer = k, ue.ContextProvider = S, ue.Element = C, ue.ForwardRef = P, ue.Fragment = I, ue.Lazy = M, ue.Memo = O, ue.Portal = R, ue.Profiler = _, ue.StrictMode = X, ue.Suspense = F, ue.isAsyncMode = V, ue.isConcurrentMode = T, ue.isContextConsumer = D, ue.isContextProvider = H, ue.isElement = K, ue.isForwardRef = U, ue.isFragment = te, ue.isLazy = z, ue.isMemo = B, ue.isPortal = q, ue.isProfiler = J, ue.isStrictMode = Z, ue.isSuspense = re, ue.isValidElementType = w, ue.typeOf = y;
|
|
14920
14920
|
}()), ue;
|
|
14921
14921
|
}
|
|
14922
14922
|
var Vs;
|
|
@@ -15054,9 +15054,9 @@ function _f() {
|
|
|
15054
15054
|
return Xi = function(o, l) {
|
|
15055
15055
|
var c = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
15056
15056
|
function d(T) {
|
|
15057
|
-
var
|
|
15058
|
-
if (typeof
|
|
15059
|
-
return
|
|
15057
|
+
var D = T && (c && T[c] || T[h]);
|
|
15058
|
+
if (typeof D == "function")
|
|
15059
|
+
return D;
|
|
15060
15060
|
}
|
|
15061
15061
|
var u = "<<anonymous>>", g = {
|
|
15062
15062
|
array: m("array"),
|
|
@@ -15079,209 +15079,209 @@ function _f() {
|
|
|
15079
15079
|
shape: M,
|
|
15080
15080
|
exact: O
|
|
15081
15081
|
};
|
|
15082
|
-
function p(T,
|
|
15083
|
-
return T ===
|
|
15082
|
+
function p(T, D) {
|
|
15083
|
+
return T === D ? T !== 0 || 1 / T === 1 / D : T !== T && D !== D;
|
|
15084
15084
|
}
|
|
15085
|
-
function f(T,
|
|
15086
|
-
this.message = T, this.data =
|
|
15085
|
+
function f(T, D) {
|
|
15086
|
+
this.message = T, this.data = D && typeof D == "object" ? D : {}, this.stack = "";
|
|
15087
15087
|
}
|
|
15088
15088
|
f.prototype = Error.prototype;
|
|
15089
15089
|
function x(T) {
|
|
15090
15090
|
if (process.env.NODE_ENV !== "production")
|
|
15091
|
-
var
|
|
15092
|
-
function K(te, z, B,
|
|
15093
|
-
if (
|
|
15091
|
+
var D = {}, H = 0;
|
|
15092
|
+
function K(te, z, B, q, J, Z, re) {
|
|
15093
|
+
if (q = q || u, Z = Z || B, re !== t) {
|
|
15094
15094
|
if (l) {
|
|
15095
15095
|
var W = new Error(
|
|
15096
15096
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
15097
15097
|
);
|
|
15098
15098
|
throw W.name = "Invariant Violation", W;
|
|
15099
15099
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
15100
|
-
var oe =
|
|
15101
|
-
!
|
|
15100
|
+
var oe = q + ":" + B;
|
|
15101
|
+
!D[oe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
15102
15102
|
H < 3 && (r(
|
|
15103
|
-
"You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" +
|
|
15104
|
-
),
|
|
15103
|
+
"You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
15104
|
+
), D[oe] = !0, H++);
|
|
15105
15105
|
}
|
|
15106
15106
|
}
|
|
15107
|
-
return z[B] == null ? te ? z[B] === null ? new f("The " + J + " `" + Z + "` is marked as required " + ("in `" +
|
|
15107
|
+
return z[B] == null ? te ? z[B] === null ? new f("The " + J + " `" + Z + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new f("The " + J + " `" + Z + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : T(z, B, q, J, Z);
|
|
15108
15108
|
}
|
|
15109
|
-
var
|
|
15110
|
-
return
|
|
15109
|
+
var U = K.bind(null, !1);
|
|
15110
|
+
return U.isRequired = K.bind(null, !0), U;
|
|
15111
15111
|
}
|
|
15112
15112
|
function m(T) {
|
|
15113
|
-
function
|
|
15114
|
-
var
|
|
15113
|
+
function D(H, K, U, te, z, B) {
|
|
15114
|
+
var q = H[K], J = X(q);
|
|
15115
15115
|
if (J !== T) {
|
|
15116
|
-
var Z = F(
|
|
15116
|
+
var Z = F(q);
|
|
15117
15117
|
return new f(
|
|
15118
|
-
"Invalid " + te + " `" + z + "` of type " + ("`" + Z + "` supplied to `" +
|
|
15118
|
+
"Invalid " + te + " `" + z + "` of type " + ("`" + Z + "` supplied to `" + U + "`, expected ") + ("`" + T + "`."),
|
|
15119
15119
|
{ expectedType: T }
|
|
15120
15120
|
);
|
|
15121
15121
|
}
|
|
15122
15122
|
return null;
|
|
15123
15123
|
}
|
|
15124
|
-
return x(
|
|
15124
|
+
return x(D);
|
|
15125
15125
|
}
|
|
15126
15126
|
function v() {
|
|
15127
15127
|
return x(n);
|
|
15128
15128
|
}
|
|
15129
15129
|
function w(T) {
|
|
15130
|
-
function
|
|
15130
|
+
function D(H, K, U, te, z) {
|
|
15131
15131
|
if (typeof T != "function")
|
|
15132
|
-
return new f("Property `" + z + "` of component `" +
|
|
15132
|
+
return new f("Property `" + z + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
|
|
15133
15133
|
var B = H[K];
|
|
15134
15134
|
if (!Array.isArray(B)) {
|
|
15135
|
-
var
|
|
15136
|
-
return new f("Invalid " + te + " `" + z + "` of type " + ("`" +
|
|
15135
|
+
var q = X(B);
|
|
15136
|
+
return new f("Invalid " + te + " `" + z + "` of type " + ("`" + q + "` supplied to `" + U + "`, expected an array."));
|
|
15137
15137
|
}
|
|
15138
15138
|
for (var J = 0; J < B.length; J++) {
|
|
15139
|
-
var Z = T(B, J,
|
|
15139
|
+
var Z = T(B, J, U, te, z + "[" + J + "]", t);
|
|
15140
15140
|
if (Z instanceof Error)
|
|
15141
15141
|
return Z;
|
|
15142
15142
|
}
|
|
15143
15143
|
return null;
|
|
15144
15144
|
}
|
|
15145
|
-
return x(
|
|
15145
|
+
return x(D);
|
|
15146
15146
|
}
|
|
15147
15147
|
function y() {
|
|
15148
|
-
function T(
|
|
15149
|
-
var z =
|
|
15148
|
+
function T(D, H, K, U, te) {
|
|
15149
|
+
var z = D[H];
|
|
15150
15150
|
if (!o(z)) {
|
|
15151
15151
|
var B = X(z);
|
|
15152
|
-
return new f("Invalid " +
|
|
15152
|
+
return new f("Invalid " + U + " `" + te + "` of type " + ("`" + B + "` supplied to `" + K + "`, expected a single ReactElement."));
|
|
15153
15153
|
}
|
|
15154
15154
|
return null;
|
|
15155
15155
|
}
|
|
15156
15156
|
return x(T);
|
|
15157
15157
|
}
|
|
15158
15158
|
function b() {
|
|
15159
|
-
function T(
|
|
15160
|
-
var z =
|
|
15159
|
+
function T(D, H, K, U, te) {
|
|
15160
|
+
var z = D[H];
|
|
15161
15161
|
if (!s.isValidElementType(z)) {
|
|
15162
15162
|
var B = X(z);
|
|
15163
|
-
return new f("Invalid " +
|
|
15163
|
+
return new f("Invalid " + U + " `" + te + "` of type " + ("`" + B + "` supplied to `" + K + "`, expected a single ReactElement type."));
|
|
15164
15164
|
}
|
|
15165
15165
|
return null;
|
|
15166
15166
|
}
|
|
15167
15167
|
return x(T);
|
|
15168
15168
|
}
|
|
15169
15169
|
function A(T) {
|
|
15170
|
-
function
|
|
15170
|
+
function D(H, K, U, te, z) {
|
|
15171
15171
|
if (!(H[K] instanceof T)) {
|
|
15172
|
-
var B = T.name || u,
|
|
15173
|
-
return new f("Invalid " + te + " `" + z + "` of type " + ("`" +
|
|
15172
|
+
var B = T.name || u, q = V(H[K]);
|
|
15173
|
+
return new f("Invalid " + te + " `" + z + "` of type " + ("`" + q + "` supplied to `" + U + "`, expected ") + ("instance of `" + B + "`."));
|
|
15174
15174
|
}
|
|
15175
15175
|
return null;
|
|
15176
15176
|
}
|
|
15177
|
-
return x(
|
|
15177
|
+
return x(D);
|
|
15178
15178
|
}
|
|
15179
15179
|
function k(T) {
|
|
15180
15180
|
if (!Array.isArray(T))
|
|
15181
15181
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
15182
15182
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
15183
15183
|
) : r("Invalid argument supplied to oneOf, expected an array.")), n;
|
|
15184
|
-
function
|
|
15185
|
-
for (var B = H[K],
|
|
15186
|
-
if (p(B, T[
|
|
15184
|
+
function D(H, K, U, te, z) {
|
|
15185
|
+
for (var B = H[K], q = 0; q < T.length; q++)
|
|
15186
|
+
if (p(B, T[q]))
|
|
15187
15187
|
return null;
|
|
15188
15188
|
var J = JSON.stringify(T, function(re, W) {
|
|
15189
15189
|
var oe = F(W);
|
|
15190
15190
|
return oe === "symbol" ? String(W) : W;
|
|
15191
15191
|
});
|
|
15192
|
-
return new f("Invalid " + te + " `" + z + "` of value `" + String(B) + "` " + ("supplied to `" +
|
|
15192
|
+
return new f("Invalid " + te + " `" + z + "` of value `" + String(B) + "` " + ("supplied to `" + U + "`, expected one of " + J + "."));
|
|
15193
15193
|
}
|
|
15194
|
-
return x(
|
|
15194
|
+
return x(D);
|
|
15195
15195
|
}
|
|
15196
15196
|
function S(T) {
|
|
15197
|
-
function
|
|
15197
|
+
function D(H, K, U, te, z) {
|
|
15198
15198
|
if (typeof T != "function")
|
|
15199
|
-
return new f("Property `" + z + "` of component `" +
|
|
15200
|
-
var B = H[K],
|
|
15201
|
-
if (
|
|
15202
|
-
return new f("Invalid " + te + " `" + z + "` of type " + ("`" +
|
|
15199
|
+
return new f("Property `" + z + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
|
|
15200
|
+
var B = H[K], q = X(B);
|
|
15201
|
+
if (q !== "object")
|
|
15202
|
+
return new f("Invalid " + te + " `" + z + "` of type " + ("`" + q + "` supplied to `" + U + "`, expected an object."));
|
|
15203
15203
|
for (var J in B)
|
|
15204
15204
|
if (a(B, J)) {
|
|
15205
|
-
var Z = T(B, J,
|
|
15205
|
+
var Z = T(B, J, U, te, z + "." + J, t);
|
|
15206
15206
|
if (Z instanceof Error)
|
|
15207
15207
|
return Z;
|
|
15208
15208
|
}
|
|
15209
15209
|
return null;
|
|
15210
15210
|
}
|
|
15211
|
-
return x(
|
|
15211
|
+
return x(D);
|
|
15212
15212
|
}
|
|
15213
15213
|
function C(T) {
|
|
15214
15214
|
if (!Array.isArray(T))
|
|
15215
15215
|
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), n;
|
|
15216
|
-
for (var
|
|
15217
|
-
var H = T[
|
|
15216
|
+
for (var D = 0; D < T.length; D++) {
|
|
15217
|
+
var H = T[D];
|
|
15218
15218
|
if (typeof H != "function")
|
|
15219
15219
|
return r(
|
|
15220
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + N(H) + " at index " +
|
|
15220
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + N(H) + " at index " + D + "."
|
|
15221
15221
|
), n;
|
|
15222
15222
|
}
|
|
15223
|
-
function K(
|
|
15223
|
+
function K(U, te, z, B, q) {
|
|
15224
15224
|
for (var J = [], Z = 0; Z < T.length; Z++) {
|
|
15225
|
-
var re = T[Z], W = re(
|
|
15225
|
+
var re = T[Z], W = re(U, te, z, B, q, t);
|
|
15226
15226
|
if (W == null)
|
|
15227
15227
|
return null;
|
|
15228
15228
|
W.data && a(W.data, "expectedType") && J.push(W.data.expectedType);
|
|
15229
15229
|
}
|
|
15230
15230
|
var oe = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
15231
|
-
return new f("Invalid " + B + " `" +
|
|
15231
|
+
return new f("Invalid " + B + " `" + q + "` supplied to " + ("`" + z + "`" + oe + "."));
|
|
15232
15232
|
}
|
|
15233
15233
|
return x(K);
|
|
15234
15234
|
}
|
|
15235
15235
|
function P() {
|
|
15236
|
-
function T(
|
|
15237
|
-
return R(
|
|
15236
|
+
function T(D, H, K, U, te) {
|
|
15237
|
+
return R(D[H]) ? null : new f("Invalid " + U + " `" + te + "` supplied to " + ("`" + K + "`, expected a ReactNode."));
|
|
15238
15238
|
}
|
|
15239
15239
|
return x(T);
|
|
15240
15240
|
}
|
|
15241
|
-
function I(T,
|
|
15241
|
+
function I(T, D, H, K, U) {
|
|
15242
15242
|
return new f(
|
|
15243
|
-
(T || "React class") + ": " +
|
|
15243
|
+
(T || "React class") + ": " + D + " type `" + H + "." + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
|
|
15244
15244
|
);
|
|
15245
15245
|
}
|
|
15246
15246
|
function M(T) {
|
|
15247
|
-
function
|
|
15248
|
-
var B = H[K],
|
|
15249
|
-
if (
|
|
15250
|
-
return new f("Invalid " + te + " `" + z + "` of type `" +
|
|
15247
|
+
function D(H, K, U, te, z) {
|
|
15248
|
+
var B = H[K], q = X(B);
|
|
15249
|
+
if (q !== "object")
|
|
15250
|
+
return new f("Invalid " + te + " `" + z + "` of type `" + q + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
15251
15251
|
for (var J in T) {
|
|
15252
15252
|
var Z = T[J];
|
|
15253
15253
|
if (typeof Z != "function")
|
|
15254
|
-
return I(
|
|
15255
|
-
var re = Z(B, J,
|
|
15254
|
+
return I(U, te, z, J, F(Z));
|
|
15255
|
+
var re = Z(B, J, U, te, z + "." + J, t);
|
|
15256
15256
|
if (re)
|
|
15257
15257
|
return re;
|
|
15258
15258
|
}
|
|
15259
15259
|
return null;
|
|
15260
15260
|
}
|
|
15261
|
-
return x(
|
|
15261
|
+
return x(D);
|
|
15262
15262
|
}
|
|
15263
15263
|
function O(T) {
|
|
15264
|
-
function
|
|
15265
|
-
var B = H[K],
|
|
15266
|
-
if (
|
|
15267
|
-
return new f("Invalid " + te + " `" + z + "` of type `" +
|
|
15264
|
+
function D(H, K, U, te, z) {
|
|
15265
|
+
var B = H[K], q = X(B);
|
|
15266
|
+
if (q !== "object")
|
|
15267
|
+
return new f("Invalid " + te + " `" + z + "` of type `" + q + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
15268
15268
|
var J = e({}, H[K], T);
|
|
15269
15269
|
for (var Z in J) {
|
|
15270
15270
|
var re = T[Z];
|
|
15271
15271
|
if (a(T, Z) && typeof re != "function")
|
|
15272
|
-
return I(
|
|
15272
|
+
return I(U, te, z, Z, F(re));
|
|
15273
15273
|
if (!re)
|
|
15274
15274
|
return new f(
|
|
15275
|
-
"Invalid " + te + " `" + z + "` key `" + Z + "` supplied to `" +
|
|
15275
|
+
"Invalid " + te + " `" + z + "` key `" + Z + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(H[K], null, " ") + `
|
|
15276
15276
|
Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
15277
15277
|
);
|
|
15278
|
-
var W = re(B, Z,
|
|
15278
|
+
var W = re(B, Z, U, te, z + "." + Z, t);
|
|
15279
15279
|
if (W)
|
|
15280
15280
|
return W;
|
|
15281
15281
|
}
|
|
15282
15282
|
return null;
|
|
15283
15283
|
}
|
|
15284
|
-
return x(
|
|
15284
|
+
return x(D);
|
|
15285
15285
|
}
|
|
15286
15286
|
function R(T) {
|
|
15287
15287
|
switch (typeof T) {
|
|
@@ -15296,17 +15296,17 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
15296
15296
|
return T.every(R);
|
|
15297
15297
|
if (T === null || o(T))
|
|
15298
15298
|
return !0;
|
|
15299
|
-
var
|
|
15300
|
-
if (
|
|
15301
|
-
var H =
|
|
15302
|
-
if (
|
|
15299
|
+
var D = d(T);
|
|
15300
|
+
if (D) {
|
|
15301
|
+
var H = D.call(T), K;
|
|
15302
|
+
if (D !== T.entries) {
|
|
15303
15303
|
for (; !(K = H.next()).done; )
|
|
15304
15304
|
if (!R(K.value))
|
|
15305
15305
|
return !1;
|
|
15306
15306
|
} else
|
|
15307
15307
|
for (; !(K = H.next()).done; ) {
|
|
15308
|
-
var
|
|
15309
|
-
if (
|
|
15308
|
+
var U = K.value;
|
|
15309
|
+
if (U && !R(U[1]))
|
|
15310
15310
|
return !1;
|
|
15311
15311
|
}
|
|
15312
15312
|
} else
|
|
@@ -15316,37 +15316,37 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
15316
15316
|
return !1;
|
|
15317
15317
|
}
|
|
15318
15318
|
}
|
|
15319
|
-
function
|
|
15320
|
-
return T === "symbol" ? !0 :
|
|
15319
|
+
function _(T, D) {
|
|
15320
|
+
return T === "symbol" ? !0 : D ? D["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && D instanceof Symbol : !1;
|
|
15321
15321
|
}
|
|
15322
15322
|
function X(T) {
|
|
15323
|
-
var
|
|
15324
|
-
return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : D
|
|
15323
|
+
var D = typeof T;
|
|
15324
|
+
return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : _(D, T) ? "symbol" : D;
|
|
15325
15325
|
}
|
|
15326
15326
|
function F(T) {
|
|
15327
15327
|
if (typeof T > "u" || T === null)
|
|
15328
15328
|
return "" + T;
|
|
15329
|
-
var
|
|
15330
|
-
if (
|
|
15329
|
+
var D = X(T);
|
|
15330
|
+
if (D === "object") {
|
|
15331
15331
|
if (T instanceof Date)
|
|
15332
15332
|
return "date";
|
|
15333
15333
|
if (T instanceof RegExp)
|
|
15334
15334
|
return "regexp";
|
|
15335
15335
|
}
|
|
15336
|
-
return
|
|
15336
|
+
return D;
|
|
15337
15337
|
}
|
|
15338
15338
|
function N(T) {
|
|
15339
|
-
var
|
|
15340
|
-
switch (
|
|
15339
|
+
var D = F(T);
|
|
15340
|
+
switch (D) {
|
|
15341
15341
|
case "array":
|
|
15342
15342
|
case "object":
|
|
15343
|
-
return "an " +
|
|
15343
|
+
return "an " + D;
|
|
15344
15344
|
case "boolean":
|
|
15345
15345
|
case "date":
|
|
15346
15346
|
case "regexp":
|
|
15347
|
-
return "a " +
|
|
15347
|
+
return "a " + D;
|
|
15348
15348
|
default:
|
|
15349
|
-
return
|
|
15349
|
+
return D;
|
|
15350
15350
|
}
|
|
15351
15351
|
}
|
|
15352
15352
|
function V(T) {
|
|
@@ -15522,21 +15522,21 @@ function Yf() {
|
|
|
15522
15522
|
function b(N) {
|
|
15523
15523
|
return N && d(N) === "object" && !Array.isArray(N);
|
|
15524
15524
|
}
|
|
15525
|
-
var F = I.type, A = F === void 0 ? "line" : F, F = I.width, k = F === void 0 ? "100%" : F, F = I.height, S = F === void 0 ? "auto" : F, C = I.series, P = I.options, F = I.chartRef, I = c(I, i), M = (0, e.useRef)(null), O = F || (0, e.useRef)(null), R = (0, e.useRef)(),
|
|
15525
|
+
var F = I.type, A = F === void 0 ? "line" : F, F = I.width, k = F === void 0 ? "100%" : F, F = I.height, S = F === void 0 ? "auto" : F, C = I.series, P = I.options, F = I.chartRef, I = c(I, i), M = (0, e.useRef)(null), O = F || (0, e.useRef)(null), R = (0, e.useRef)(), _ = ((0, e.useEffect)(function() {
|
|
15526
15526
|
R.current = P;
|
|
15527
15527
|
var N = M.current;
|
|
15528
|
-
return O.current = new t.default(N,
|
|
15528
|
+
return O.current = new t.default(N, _()), O.current.render(), function() {
|
|
15529
15529
|
O.current && typeof O.current.destroy == "function" && O.current.destroy();
|
|
15530
15530
|
};
|
|
15531
15531
|
}, []), (0, e.useEffect)(function() {
|
|
15532
15532
|
var N = !v(O.current.w.config.series, C), V = !v(R.current, P) || S !== O.current.opts.chart.height || k !== O.current.opts.chart.width;
|
|
15533
|
-
(N || V) && (!N || V ? O.current.updateOptions(
|
|
15533
|
+
(N || V) && (!N || V ? O.current.updateOptions(_()) : O.current.updateSeries(C)), R.current = P;
|
|
15534
15534
|
}, [P, C, S, k]), function() {
|
|
15535
15535
|
return X(P, { chart: { type: A, height: S, width: k }, series: C });
|
|
15536
15536
|
}), X = function(N, V) {
|
|
15537
15537
|
var T = g({}, N);
|
|
15538
|
-
return b(N) && b(V) && Object.keys(V).forEach(function(
|
|
15539
|
-
b(V[
|
|
15538
|
+
return b(N) && b(V) && Object.keys(V).forEach(function(D) {
|
|
15539
|
+
b(V[D]) && D in N ? T[D] = X(N[D], V[D]) : Object.assign(T, p({}, D, V[D]));
|
|
15540
15540
|
}), T;
|
|
15541
15541
|
}, F = m(I, Object.keys(w.propTypes));
|
|
15542
15542
|
return e.default.createElement("div", l({ ref: M }, F));
|
|
@@ -15629,11 +15629,11 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
15629
15629
|
if (!z.visible) return;
|
|
15630
15630
|
const B = s[z.key];
|
|
15631
15631
|
if (!B) return;
|
|
15632
|
-
const
|
|
15633
|
-
for (let J = 0; J < Math.min(B.length, p); J++)
|
|
15634
|
-
x.push({ name: z.id, type: "line", data:
|
|
15632
|
+
const q = [];
|
|
15633
|
+
for (let J = 0; J < Math.min(B.length, p); J++) q.push({ x: g[J], y: B[J] });
|
|
15634
|
+
x.push({ name: z.id, type: "line", data: q }), m.push(typeof z.width == "number" ? z.width : 2), v.push(typeof z.dash == "number" ? z.dash : 0), w.push(z.color ?? "#003366"), y.push("solid"), b.push(1);
|
|
15635
15635
|
});
|
|
15636
|
-
const A = [], k = [], S = [], C = [], P = u.bubble?.values ?? [], I = s.upper, M = s.lower, O = s[u.histogramKey ?? "histogram"], R = u.bubble?.color ?? "#0b66ff",
|
|
15636
|
+
const A = [], k = [], S = [], C = [], P = u.bubble?.values ?? [], I = s.upper, M = s.lower, O = s[u.histogramKey ?? "histogram"], R = u.bubble?.color ?? "#0b66ff", _ = u.bubble?.size ?? 6, X = (u.outliers && u.outliers.lower && u.outliers.lower.color) ?? "#1aeb4bff", F = (u.outliers && u.outliers.upper && u.outliers.upper.color) ?? "#ff0004ff", N = (u.outliers && u.outliers.lower && u.outliers.lower.label) ?? "Lower Outlier", V = (u.outliers && u.outliers.upper && u.outliers.upper.label) ?? "Upper Outlier";
|
|
15637
15637
|
for (let z = 0; z < p; z++) {
|
|
15638
15638
|
if (f !== null && z === f) {
|
|
15639
15639
|
A.push({ x: g[z], y: null }), k.push({ x: g[z], y: null }), S.push({ x: g[z], y: null });
|
|
@@ -15644,50 +15644,50 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
15644
15644
|
A.push({ x: g[z], y: null }), k.push({ x: g[z], y: null }), S.push({ x: g[z], y: null });
|
|
15645
15645
|
continue;
|
|
15646
15646
|
}
|
|
15647
|
-
const
|
|
15648
|
-
if (typeof
|
|
15647
|
+
const q = P[z];
|
|
15648
|
+
if (typeof q > "u" || q === null) {
|
|
15649
15649
|
A.push({ x: g[z], y: null }), k.push({ x: g[z], y: null }), S.push({ x: g[z], y: null });
|
|
15650
15650
|
continue;
|
|
15651
15651
|
}
|
|
15652
15652
|
let J = !1, Z, re;
|
|
15653
|
-
Array.isArray(I) && Array.isArray(M) && typeof I[z] == "number" && typeof M[z] == "number" && (Z = I[z], re = M[z], (
|
|
15653
|
+
Array.isArray(I) && Array.isArray(M) && typeof I[z] == "number" && typeof M[z] == "number" && (Z = I[z], re = M[z], (q > Z || q < re) && (J = !0));
|
|
15654
15654
|
let W = "correct";
|
|
15655
|
-
typeof Z == "number" && typeof re == "number" ?
|
|
15655
|
+
typeof Z == "number" && typeof re == "number" ? q > Z ? W = "upper" : q < re ? W = "lower" : W = "correct" : (W = "correct", J = !1), W === "lower" ? (A.push({ x: g[z], y: q, outside: J }), k.push({ x: g[z], y: null }), S.push({ x: g[z], y: null }), C.push({ seriesKey: "lower", dataPointIndex: z, outside: J })) : W === "upper" ? (S.push({ x: g[z], y: q, outside: J }), A.push({ x: g[z], y: null }), k.push({ x: g[z], y: null }), C.push({ seriesKey: "upper", dataPointIndex: z, outside: J })) : (k.push({ x: g[z], y: q, outside: !1 }), A.push({ x: g[z], y: null }), S.push({ x: g[z], y: null }), C.push({ seriesKey: "correct", dataPointIndex: z, outside: !1 }));
|
|
15656
15656
|
}
|
|
15657
15657
|
x.push({ name: N, type: "scatter", data: A }), m.push(0), v.push(0), w.push(X), y.push("solid"), b.push(1), x.push({ name: "Correct Predictions", type: "scatter", data: k }), m.push(0), v.push(0), w.push(R), y.push("solid"), b.push(1), x.push({ name: V, type: "scatter", data: S }), m.push(0), v.push(0), w.push(F), y.push("solid"), b.push(1);
|
|
15658
|
-
const T = x.findIndex((z) => z.type === "scatter" && z.name === N),
|
|
15658
|
+
const T = x.findIndex((z) => z.type === "scatter" && z.name === N), D = x.findIndex(
|
|
15659
15659
|
(z) => z.type === "scatter" && z.name === "Correct Predictions"
|
|
15660
15660
|
), H = x.findIndex((z) => z.type === "scatter" && z.name === V), K = C.map((z) => {
|
|
15661
|
-
const B = z.seriesKey === "lower" ? T : z.seriesKey === "upper" ? H :
|
|
15661
|
+
const B = z.seriesKey === "lower" ? T : z.seriesKey === "upper" ? H : D;
|
|
15662
15662
|
return z.seriesKey === "lower" ? {
|
|
15663
15663
|
seriesIndex: B,
|
|
15664
15664
|
dataPointIndex: z.dataPointIndex,
|
|
15665
15665
|
fillColor: (u.outliers && u.outliers.lower && u.outliers.lower.marker && u.outliers.lower.marker.fillColor) ?? X,
|
|
15666
15666
|
strokeColor: (u.outliers && u.outliers.lower && u.outliers.lower.marker && u.outliers.lower.marker.strokeColor) ?? "#ffffff",
|
|
15667
|
-
size: (u.outliers && u.outliers.lower && u.outliers.lower.marker && u.outliers.lower.marker.size) ??
|
|
15667
|
+
size: (u.outliers && u.outliers.lower && u.outliers.lower.marker && u.outliers.lower.marker.size) ?? _
|
|
15668
15668
|
} : z.seriesKey === "upper" ? {
|
|
15669
15669
|
seriesIndex: B,
|
|
15670
15670
|
dataPointIndex: z.dataPointIndex,
|
|
15671
15671
|
fillColor: (u.outliers && u.outliers.upper && u.outliers.upper.marker && u.outliers.upper.marker.fillColor) ?? F,
|
|
15672
15672
|
strokeColor: (u.outliers && u.outliers.upper && u.outliers.upper.marker && u.outliers.upper.marker.strokeColor) ?? "#ffffff",
|
|
15673
|
-
size: (u.outliers && u.outliers.upper && u.outliers.upper.marker && u.outliers.upper.marker.size) ??
|
|
15673
|
+
size: (u.outliers && u.outliers.upper && u.outliers.upper.marker && u.outliers.upper.marker.size) ?? _
|
|
15674
15674
|
} : {
|
|
15675
15675
|
seriesIndex: B,
|
|
15676
15676
|
dataPointIndex: z.dataPointIndex,
|
|
15677
15677
|
fillColor: R,
|
|
15678
15678
|
strokeColor: "#ffffff",
|
|
15679
|
-
size:
|
|
15679
|
+
size: _
|
|
15680
15680
|
};
|
|
15681
15681
|
});
|
|
15682
15682
|
if (u.showHistogram && u.histogramKey) {
|
|
15683
15683
|
const z = s[u.histogramKey ?? "histogram"];
|
|
15684
15684
|
if (z && Array.isArray(z) && z.length > 0) {
|
|
15685
|
-
const B = Math.min(z.length, p),
|
|
15685
|
+
const B = Math.min(z.length, p), q = [], J = [];
|
|
15686
15686
|
for (let Z = 0; Z < B; Z++) {
|
|
15687
15687
|
const re = typeof z[Z] == "number" ? z[Z] : null, W = f !== null && Z === f ? 0 : re, oe = f !== null && Z === f ? re : 0;
|
|
15688
|
-
|
|
15688
|
+
q.push({ x: g[Z], y: W }), J.push({ x: g[Z], y: oe });
|
|
15689
15689
|
}
|
|
15690
|
-
x.push({ name: "Real", type: "column", data:
|
|
15690
|
+
x.push({ name: "Real", type: "column", data: q }), m.push(0), v.push(0), w.push(u.histogramColor ?? "#888888"), y.push("solid"), b.push(0.4), u.showOnGoing && f !== null && (x.push({ name: u.onGoingLabel ?? "OnGoing", type: "column", data: J }), m.push(0), v.push(0), w.push(u.onGoingColor ?? "rgba(11,102,255,0.28)"), y.push("solid"), b.push(0.65));
|
|
15691
15691
|
}
|
|
15692
15692
|
}
|
|
15693
15693
|
const te = {
|
|
@@ -15746,7 +15746,7 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
15746
15746
|
intersect: !1,
|
|
15747
15747
|
followCursor: !0,
|
|
15748
15748
|
custom: (z) => {
|
|
15749
|
-
const { dataPointIndex: B, w:
|
|
15749
|
+
const { dataPointIndex: B, w: q } = z, J = q.config?.series ?? [], Z = [];
|
|
15750
15750
|
for (let W = 0; W < J.length; W++) {
|
|
15751
15751
|
const oe = J[W], ze = (Array.isArray(oe?.data) ? oe.data : [])[B];
|
|
15752
15752
|
let ot, Kr = !1;
|
|
@@ -15767,7 +15767,7 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
15767
15767
|
if (typeof ot > "u" || ot === null) continue;
|
|
15768
15768
|
const si = oe?.name ? String(oe.name) : `Series ${W + 1}`;
|
|
15769
15769
|
if ((si === N || si === V) && Kr && u.outliers && u.outliers.hideOutside || oe?.type === "column" && Number(ot) === 0) continue;
|
|
15770
|
-
const il = (
|
|
15770
|
+
const il = (q.config?.colors && q.config.colors[W]) ?? (q.globals?.colors && q.globals.colors[W]) ?? "#333";
|
|
15771
15771
|
Z.push({ name: si, color: il, value: Number(ot) });
|
|
15772
15772
|
}
|
|
15773
15773
|
let re = "";
|
|
@@ -16230,7 +16230,7 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
16230
16230
|
/* @__PURE__ */ me("span", { children: [
|
|
16231
16231
|
o.real,
|
|
16232
16232
|
" : ",
|
|
16233
|
-
l.reel
|
|
16233
|
+
l.isPrediction ? 0 : l.reel
|
|
16234
16234
|
] })
|
|
16235
16235
|
] })
|
|
16236
16236
|
]
|
|
@@ -16363,7 +16363,7 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
16363
16363
|
if (nl(() => {
|
|
16364
16364
|
const T = () => {
|
|
16365
16365
|
if (P.current) {
|
|
16366
|
-
const
|
|
16366
|
+
const D = P.current.getBoundingClientRect().width, H = s.labels?.length || 1, z = (D - k - 30 - H * 2) / H;
|
|
16367
16367
|
M(Math.max(z, 14));
|
|
16368
16368
|
}
|
|
16369
16369
|
};
|
|
@@ -16372,25 +16372,26 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
16372
16372
|
return /* @__PURE__ */ $("div", { style: { padding: 12 }, children: "Chart hidden by displayCondition" });
|
|
16373
16373
|
const O = s.labels || [];
|
|
16374
16374
|
if (!O.length) return /* @__PURE__ */ $("div", { style: { padding: 12 }, children: "Pas de labels fournis" });
|
|
16375
|
-
const
|
|
16376
|
-
const H = s.main[
|
|
16375
|
+
const _ = s[e?.histogramKey ?? "histogram"], X = O.map((T, D) => {
|
|
16376
|
+
const H = s.main[D] ?? 0, K = s.upper[D] ?? H, U = s.lower[D] ?? H, te = a && typeof s.onGoingIndex == "number" && D > s.onGoingIndex && D < s.onGoingIndex + y, z = te ? H : _?.[D] ?? void 0, B = K, q = U;
|
|
16377
16377
|
let J;
|
|
16378
|
-
z
|
|
16378
|
+
!te && z !== void 0 && z !== null && (z > K ? J = "Haute" : z < U && (J = "Basse"));
|
|
16379
16379
|
let Z = 0, re = 0;
|
|
16380
|
-
return y > 0 && a && typeof s.onGoingIndex == "number" &&
|
|
16380
|
+
return y > 0 && a && typeof s.onGoingIndex == "number" && D === s.onGoingIndex && z !== void 0 && H !== void 0 ? z <= H ? (Z = z, re = H - z) : (Z = z - H, re = H) : (Z = z ?? 0, re = 0), {
|
|
16381
16381
|
time: T,
|
|
16382
16382
|
reel: z,
|
|
16383
16383
|
pred: H,
|
|
16384
16384
|
realPart: Z,
|
|
16385
16385
|
predPart: re,
|
|
16386
|
-
range: [
|
|
16386
|
+
range: [U, K],
|
|
16387
16387
|
max: B,
|
|
16388
|
-
min:
|
|
16389
|
-
anomaly: J
|
|
16388
|
+
min: q,
|
|
16389
|
+
anomaly: J,
|
|
16390
|
+
isPrediction: te
|
|
16390
16391
|
};
|
|
16391
16392
|
});
|
|
16392
|
-
function F(T,
|
|
16393
|
-
return a && s.onGoingIndex ==
|
|
16393
|
+
function F(T, D) {
|
|
16394
|
+
return a && s.onGoingIndex == D ? g : a && typeof s.onGoingIndex == "number" && D > s.onGoingIndex && D < s.onGoingIndex + y ? f : T.anomaly ? T.anomaly === "Haute" ? h : l : u;
|
|
16394
16395
|
}
|
|
16395
16396
|
const N = typeof t == "string", V = /* @__PURE__ */ me(oo, { data: X, margin: { top: 20, right: 30, left: 0, bottom: 0 }, barGap: 0, children: [
|
|
16396
16397
|
/* @__PURE__ */ $(On, { strokeDasharray: "0", vertical: !1, stroke: w }),
|
|
@@ -16442,9 +16443,9 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
16442
16443
|
zIndex: 999
|
|
16443
16444
|
}
|
|
16444
16445
|
),
|
|
16445
|
-
/* @__PURE__ */ $(es, { dataKey: "realPart", stackId: "a", barSize: I, radius: 2, children: X.map((T,
|
|
16446
|
+
/* @__PURE__ */ $(es, { dataKey: "realPart", stackId: "a", barSize: I, radius: 2, children: X.map((T, D) => /* @__PURE__ */ $(At, { fill: F(T, D) }, `cell-${D}`)) }),
|
|
16446
16447
|
/* @__PURE__ */ $(es, { dataKey: "predPart", stackId: "a", barSize: I, radius: 2, children: X.map(
|
|
16447
|
-
(T,
|
|
16448
|
+
(T, D) => y > 0 && D == s.onGoingIndex ? /* @__PURE__ */ $(At, { fill: f }, `cell-pred-${D}`) : /* @__PURE__ */ $(At, { fill: "none" }, `cell-pred-${D}`)
|
|
16448
16449
|
) }),
|
|
16449
16450
|
/* @__PURE__ */ $(
|
|
16450
16451
|
$n,
|
|
@@ -16462,11 +16463,11 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
16462
16463
|
{
|
|
16463
16464
|
dataKey: "reel",
|
|
16464
16465
|
shape: (T) => {
|
|
16465
|
-
const { cx:
|
|
16466
|
-
return
|
|
16466
|
+
const { cx: D, cy: H, payload: K } = T;
|
|
16467
|
+
return D === void 0 || H === void 0 ? /* @__PURE__ */ $("g", {}) : K?.reel === void 0 || K?.reel === 0 ? /* @__PURE__ */ $("g", {}) : K?.anomaly ? /* @__PURE__ */ $("g", {}) : /* @__PURE__ */ $(
|
|
16467
16468
|
"circle",
|
|
16468
16469
|
{
|
|
16469
|
-
cx:
|
|
16470
|
+
cx: D - 0.5,
|
|
16470
16471
|
cy: H,
|
|
16471
16472
|
r: 4,
|
|
16472
16473
|
fill: p,
|
|
@@ -16482,13 +16483,13 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
16482
16483
|
{
|
|
16483
16484
|
dataKey: "reel",
|
|
16484
16485
|
shape: (T) => {
|
|
16485
|
-
const { cx:
|
|
16486
|
+
const { cx: D, cy: H, payload: K } = T;
|
|
16486
16487
|
if (a && typeof s.onGoingIndex == "number" && K && s.labels.indexOf(K.time) === s.onGoingIndex)
|
|
16487
16488
|
return /* @__PURE__ */ $("g", {});
|
|
16488
|
-
if (!K?.anomaly ||
|
|
16489
|
+
if (!K?.anomaly || D === void 0 || H === void 0) return /* @__PURE__ */ $("g", {});
|
|
16489
16490
|
if (K?.reel === 0) return /* @__PURE__ */ $("g", {});
|
|
16490
|
-
const
|
|
16491
|
-
return /* @__PURE__ */ $("svg", { x:
|
|
16491
|
+
const U = K.anomaly === "Haute" ? d : c;
|
|
16492
|
+
return /* @__PURE__ */ $("svg", { x: D - 5.5, y: H - 5, width: 10, height: 10, viewBox: "0 0 100 100", children: /* @__PURE__ */ $("path", { d: "M50 0 L100 50 L50 100 L0 50 Z", fill: U, stroke: "#fff", strokeWidth: "9" }) });
|
|
16492
16493
|
}
|
|
16493
16494
|
}
|
|
16494
16495
|
)
|
|
@@ -16600,10 +16601,10 @@ const ri = /* @__PURE__ */ fr(Nf), tn = {
|
|
|
16600
16601
|
}
|
|
16601
16602
|
);
|
|
16602
16603
|
}, d = dr.useMemo(() => {
|
|
16603
|
-
const u = s.labels.length
|
|
16604
|
+
const u = s.labels.length;
|
|
16604
16605
|
if (u <= 0) return [];
|
|
16605
|
-
if (u <=
|
|
16606
|
-
const p = (u - 1) / (g - 1), f = [];
|
|
16606
|
+
if (u <= 12) return s.labels;
|
|
16607
|
+
const g = 5, p = (u - 1) / (g - 1), f = [];
|
|
16607
16608
|
for (let x = 0; x < g; x++)
|
|
16608
16609
|
f.push(s.labels[Math.round(x * p)]);
|
|
16609
16610
|
return Array.from(new Set(f));
|