@undp/data-viz 2.0.4 → 2.0.6

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.
@@ -1,224 +1,226 @@
1
- import { c as Ai, j as n, m as Vi } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as wi, useState as oi, useEffect as Di } from "react";
3
- import { o as Ri } from "./index-BZQYSqar.js";
4
- import { i as zi } from "./index-Bwrro8-q.js";
5
- import { l as ji } from "./Modal-DGcuAHyK.js";
1
+ import { c as Vi, j as n, m as zi } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as Mi, useState as oi, useEffect as Ri } from "react";
3
+ import { o as Si } from "./index-BZQYSqar.js";
4
+ import { i as ji } from "./index-Bwrro8-q.js";
5
+ import { l as Ci } from "./Modal-DGcuAHyK.js";
6
6
  import { s as pi } from "./index-CeVNqhMO.js";
7
- import { n as Mi } from "./numberFormattingFunction-14YCbkN2.js";
8
- import { T as Ci } from "./Tooltip-CwWUegPB.js";
7
+ import { n as Ai } from "./numberFormattingFunction-14YCbkN2.js";
8
+ import { T as ki } from "./Tooltip-CwWUegPB.js";
9
9
  import { c as p } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
- import { s as Oi } from "./string2HTML-DhG75NqA.js";
11
- import { A as ki } from "./Axis-CRyfcLjc.js";
12
- import { A as Li } from "./AxisTitle-jeI7am8o.js";
13
- import { X as Si } from "./XAxesLabels-Dy8E1SEo.js";
14
- import { R as qi, a as Fi } from "./ReferenceLine-2XCwHXQ4.js";
15
- import { Y as Bi } from "./YTicksAndGridLines-Blepl7XF.js";
16
- import { X as Pi } from "./XTicksAndGridLines-CObVFSm4.js";
17
- import { Y as Hi } from "./YAxesLabels-a57ZRv-0.js";
18
- import { a as Ni } from "./linear-BwnDd9KF.js";
10
+ import { s as Li } from "./string2HTML-DhG75NqA.js";
11
+ import { A as Oi } from "./Axis-CRyfcLjc.js";
12
+ import { A as Ni } from "./AxisTitle-jeI7am8o.js";
13
+ import { X as qi } from "./XAxesLabels-Dy8E1SEo.js";
14
+ import { R as Fi, a as Bi } from "./ReferenceLine-2XCwHXQ4.js";
15
+ import { Y as Pi } from "./YTicksAndGridLines-Blepl7XF.js";
16
+ import { X as Hi } from "./XTicksAndGridLines-CObVFSm4.js";
17
+ import { Y as Xi } from "./YAxesLabels-a57ZRv-0.js";
18
+ import { a as Ti } from "./linear-BwnDd9KF.js";
19
19
  import { b as $i } from "./band-CyHaVft5.js";
20
20
  import { u as Ii } from "./use-in-view-Cxa7y1TH.js";
21
- import { m as xt } from "./proxy-BxkFHwUw.js";
22
- import { A as Ti } from "./index-BqfRwk1n.js";
23
- import { Colors as vi } from "./Colors.js";
24
- import { E as Xi } from "./EmptyState-BZo1BbAn.js";
25
- import { a as Yi, G as Ei } from "./GraphContainer-CRqzdKu2.js";
26
- import { GraphFooter as Gi } from "./GraphFooter.js";
27
- import { GraphHeader as Wi } from "./GraphHeader.js";
28
- import { ColorLegend as Ui } from "./ColorLegend.js";
29
- function Ji(i) {
30
- const t = Ai.c(154), {
21
+ import { m as dt } from "./proxy-BxkFHwUw.js";
22
+ import { A as Di } from "./index-BqfRwk1n.js";
23
+ import { Colors as wi } from "./Colors.js";
24
+ import { E as Yi } from "./EmptyState-BZo1BbAn.js";
25
+ import { a as Ei, G as Gi } from "./GraphContainer-CRqzdKu2.js";
26
+ import { GraphFooter as Wi } from "./GraphFooter.js";
27
+ import { GraphHeader as Ui } from "./GraphHeader.js";
28
+ import { ColorLegend as Ji } from "./ColorLegend.js";
29
+ function Ki(i) {
30
+ const t = Vi.c(155), {
31
31
  data: a,
32
- width: pt,
33
- height: Gt,
34
- barColor: $t,
35
- suffix: gt,
36
- prefix: O,
37
- barPadding: It,
38
- showLabels: Tt,
39
- showValues: Wt,
32
+ width: yt,
33
+ height: Ut,
34
+ barColor: Rt,
35
+ suffix: bt,
36
+ prefix: C,
37
+ barPadding: St,
38
+ showLabels: qt,
39
+ showValues: Jt,
40
40
  showTicks: ii,
41
- truncateBy: Ut,
41
+ truncateBy: Kt,
42
42
  leftMargin: ei,
43
- rightMargin: Dt,
44
- topMargin: Jt,
43
+ rightMargin: Ft,
44
+ topMargin: Qt,
45
45
  bottomMargin: ri,
46
- tooltip: rt,
47
- onSeriesMouseOver: ct,
48
- refValues: dt,
46
+ tooltip: ct,
47
+ onSeriesMouseOver: ut,
48
+ refValues: vt,
49
49
  maxValue: d,
50
- minValue: ut,
51
- highlightedDataPoints: K,
52
- onSeriesMouseClick: at,
53
- labelOrder: F,
54
- maxBarThickness: Rt,
55
- minBarThickness: yt,
56
- resetSelectionOnDoubleClick: St,
50
+ minValue: mt,
51
+ highlightedDataPoints: Z,
52
+ onSeriesMouseClick: nt,
53
+ labelOrder: B,
54
+ maxBarThickness: Bt,
55
+ minBarThickness: wt,
56
+ resetSelectionOnDoubleClick: Pt,
57
57
  detailsOnClick: k,
58
58
  barAxisTitle: A,
59
- valueColor: Q,
60
- noOfTicks: bt,
61
- styles: h,
59
+ valueColor: _,
60
+ noOfTicks: Mt,
61
+ styles: f,
62
62
  classNames: l,
63
- targetStyle: f,
64
- targetColor: vt,
65
- qualitativeRangeColors: qt,
66
- measureBarWidthFactor: x,
67
- animate: r,
63
+ targetStyle: h,
64
+ targetColor: P,
65
+ qualitativeRangeColors: tt,
66
+ measureBarWidthFactor: g,
67
+ animate: o,
68
68
  dimmedOpacity: u,
69
- precision: nt,
70
- customLayers: Z,
71
- naLabel: L
72
- } = i, _ = ei === void 0 ? 20 : ei, Ft = Dt === void 0 ? 20 : Dt, ai = Jt === void 0 ? 20 : Jt, ni = ri === void 0 ? 25 : ri, Kt = wi(null);
73
- let li;
74
- t[0] !== r.amount || t[1] !== r.once ? (li = {
75
- once: r.once,
76
- amount: r.amount
77
- }, t[0] = r.amount, t[1] = r.once, t[2] = li) : li = t[2];
78
- const N = Ii(Kt, li), B = A ? _ + 30 : _;
79
- let Bt;
80
- t[3] !== ni || t[4] !== Ft || t[5] !== B || t[6] !== ai ? (Bt = {
69
+ precision: lt,
70
+ customLayers: it,
71
+ naLabel: L,
72
+ targetLineThickness: Zt
73
+ } = i, H = ei === void 0 ? 20 : ei, Ht = Ft === void 0 ? 20 : Ft, ai = Qt === void 0 ? 20 : Qt, Xt = ri === void 0 ? 25 : ri, ci = Mi(null);
74
+ let ni;
75
+ t[0] !== o.amount || t[1] !== o.once ? (ni = {
76
+ once: o.once,
77
+ amount: o.amount
78
+ }, t[0] = o.amount, t[1] = o.once, t[2] = ni) : ni = t[2];
79
+ const O = Ii(ci, ni), X = A ? H + 30 : H;
80
+ let Yt;
81
+ t[3] !== Xt || t[4] !== Ht || t[5] !== X || t[6] !== ai ? (Yt = {
81
82
  top: ai,
82
- bottom: ni,
83
- left: B,
84
- right: Ft
85
- }, t[3] = ni, t[4] = Ft, t[5] = B, t[6] = ai, t[7] = Bt) : Bt = t[7];
86
- const g = Bt, [V, Qt] = oi(void 0), [P, Zt] = oi(void 0), [tt, _t] = oi(void 0), [Pt, ti] = oi(void 0), m = pt - g.left - g.right, mt = Gt - g.top - g.bottom;
87
- let it;
88
- t[8] !== a ? (it = Math.max(...a.filter(ve).map(be)) < 0 ? 0 : Math.max(...a.filter(ye).map(de)), t[8] = a, t[9] = it) : it = t[9];
89
- const wt = it;
90
- let Mt;
91
- t[10] !== a ? (Mt = Math.max(...a.filter(ge).map(pe)) < 0 ? 0 : Math.max(...a.filter(xe).map(fe)), t[10] = a, t[11] = Mt) : Mt = t[11];
92
- const At = Mt;
93
- let Vt;
94
- t[12] !== a ? (Vt = Math.max(...a.map(me)), t[12] = a, t[13] = Vt) : Vt = t[13];
95
- const zt = Vt;
83
+ bottom: Xt,
84
+ left: X,
85
+ right: Ht
86
+ }, t[3] = Xt, t[4] = Ht, t[5] = X, t[6] = ai, t[7] = Yt) : Yt = t[7];
87
+ const x = Yt, [N, li] = oi(void 0), [T, ft] = oi(void 0), [At, _t] = oi(void 0), [ti, Et] = oi(void 0), m = yt - x.left - x.right, Vt = Ut - x.top - x.bottom;
88
+ let et;
89
+ t[8] !== a ? (et = Math.max(...a.filter(we).map(ve)) < 0 ? 0 : Math.max(...a.filter(be).map(ye)), t[8] = a, t[9] = et) : et = t[9];
90
+ const zt = et;
96
91
  let jt;
97
- t[14] !== wt || t[15] !== d || t[16] !== zt || t[17] !== At ? (jt = p(d) ? Math.max(...[wt, At, zt].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[wt, At, zt].filter(Number.isFinite)) : d, t[14] = wt, t[15] = d, t[16] = zt, t[17] = At, t[18] = jt) : jt = t[18];
92
+ t[10] !== a ? (jt = Math.max(...a.filter(de).map(pe)) < 0 ? 0 : Math.max(...a.filter(ge).map(xe)), t[10] = a, t[11] = jt) : jt = t[11];
98
93
  const Ct = jt;
99
- let Ht;
100
- t[19] !== a ? (Ht = Math.min(...a.filter(ue).map(ce)) >= 0 ? 0 : Math.min(...a.filter(re).map(oe)), t[19] = a, t[20] = Ht) : Ht = t[20];
101
- const Ot = Ht;
102
94
  let kt;
103
- t[21] !== a ? (kt = Math.min(...a.filter(se).map(le)) >= 0 ? 0 : Math.min(...a.filter(ne).map(ae)), t[21] = a, t[22] = kt) : kt = t[22];
104
- const ht = kt;
105
- let Lt;
106
- t[23] !== Ot || t[24] !== ut || t[25] !== ht ? (Lt = p(ut) ? Math.min(...[Ot, ht].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[Ot, ht].filter(Number.isFinite)) : ut, t[23] = Ot, t[24] = ut, t[25] = ht, t[26] = Lt) : Lt = t[26];
107
- const y = Lt;
108
- let $, I, H, X, T, Y, E, b, z, j, D, R, v, w;
109
- if (t[27] !== r || t[28] !== A || t[29] !== $t || t[30] !== It || t[31] !== l?.graphObjectValues || t[32] !== l?.xAxis?.axis || t[33] !== l?.xAxis?.labels || t[34] !== l?.yAxis?.gridLines || t[35] !== l?.yAxis?.labels || t[36] !== l?.yAxis?.title || t[37] !== Z || t[38] !== a || t[39] !== k || t[40] !== u || t[41] !== mt || t[42] !== m || t[43] !== Gt || t[44] !== K || t[45] !== N || t[46] !== F || t[47] !== _ || t[48] !== g.bottom || t[49] !== g.left || t[50] !== g.right || t[51] !== g.top || t[52] !== Rt || t[53] !== x || t[54] !== yt || t[55] !== P || t[56] !== L || t[57] !== bt || t[58] !== at || t[59] !== ct || t[60] !== nt || t[61] !== O || t[62] !== qt || t[63] !== dt || t[64] !== St || t[65] !== Tt || t[66] !== ii || t[67] !== Wt || t[68] !== h?.graphObjectValues || t[69] !== h?.xAxis?.axis || t[70] !== h?.xAxis?.labels || t[71] !== h?.yAxis?.gridLines || t[72] !== h?.yAxis?.labels || t[73] !== h?.yAxis?.title || t[74] !== gt || t[75] !== vt || t[76] !== f || t[77] !== Ut || t[78] !== Q || t[79] !== pt || t[80] !== Ct || t[81] !== y) {
110
- const c = Ni().domain([y, Ct]).range([mt, 0]).nice();
111
- let Xt;
112
- t[96] !== F ? (Xt = (s, si) => ({
95
+ t[12] !== a ? (kt = Math.max(...a.map(fe)), t[12] = a, t[13] = kt) : kt = t[13];
96
+ const Lt = kt;
97
+ let Ot;
98
+ t[14] !== zt || t[15] !== d || t[16] !== Lt || t[17] !== Ct ? (Ot = p(d) ? Math.max(...[zt, Ct, Lt].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[zt, Ct, Lt].filter(Number.isFinite)) : d, t[14] = zt, t[15] = d, t[16] = Lt, t[17] = Ct, t[18] = Ot) : Ot = t[18];
99
+ const Nt = Ot;
100
+ let Gt;
101
+ t[19] !== a ? (Gt = Math.min(...a.filter(me).map(ue)) >= 0 ? 0 : Math.min(...a.filter(ce).map(re)), t[19] = a, t[20] = Gt) : Gt = t[20];
102
+ const Tt = Gt;
103
+ let $t;
104
+ t[21] !== a ? ($t = Math.min(...a.filter(oe).map(se)) >= 0 ? 0 : Math.min(...a.filter(le).map(ne)), t[21] = a, t[22] = $t) : $t = t[22];
105
+ const ht = $t;
106
+ let It;
107
+ t[23] !== Tt || t[24] !== mt || t[25] !== ht ? (It = p(mt) ? Math.min(...[Tt, ht].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[Tt, ht].filter(Number.isFinite)) : mt, t[23] = Tt, t[24] = mt, t[25] = ht, t[26] = It) : It = t[26];
108
+ const b = It;
109
+ let $, I, Y, E, D, G, W, v, V, z, R, S, w, M;
110
+ if (t[27] !== o || t[28] !== A || t[29] !== Rt || t[30] !== St || t[31] !== l?.graphObjectValues || t[32] !== l?.xAxis?.axis || t[33] !== l?.xAxis?.labels || t[34] !== l?.yAxis?.gridLines || t[35] !== l?.yAxis?.labels || t[36] !== l?.yAxis?.title || t[37] !== it || t[38] !== a || t[39] !== k || t[40] !== u || t[41] !== Vt || t[42] !== m || t[43] !== Ut || t[44] !== Z || t[45] !== O || t[46] !== B || t[47] !== H || t[48] !== x.bottom || t[49] !== x.left || t[50] !== x.right || t[51] !== x.top || t[52] !== Bt || t[53] !== g || t[54] !== wt || t[55] !== T || t[56] !== L || t[57] !== Mt || t[58] !== nt || t[59] !== ut || t[60] !== lt || t[61] !== C || t[62] !== tt || t[63] !== vt || t[64] !== Pt || t[65] !== qt || t[66] !== ii || t[67] !== Jt || t[68] !== f?.graphObjectValues || t[69] !== f?.xAxis?.axis || t[70] !== f?.xAxis?.labels || t[71] !== f?.yAxis?.gridLines || t[72] !== f?.yAxis?.labels || t[73] !== f?.yAxis?.title || t[74] !== bt || t[75] !== P || t[76] !== Zt || t[77] !== h || t[78] !== Kt || t[79] !== _ || t[80] !== yt || t[81] !== Nt || t[82] !== b) {
111
+ const c = Ti().domain([b, Nt]).range([Vt, 0]).nice();
112
+ let Dt;
113
+ t[97] !== B ? (Dt = (s, si) => ({
113
114
  ...s,
114
- id: F ? `${s.label}` : `${si}`
115
- }), t[96] = F, t[97] = Xt) : Xt = t[97];
116
- const ci = a.map(Xt), o = F || ci.map(ee), C = $i().domain(o).range([0, yt ? Math.max(m, yt * o.length) : Rt ? Math.min(m, Rt * o.length) : m]).paddingInner(It), J = c.ticks(bt);
117
- I = xt.svg, j = `${pt}px`, D = `${Gt}px`, R = `0 0 ${pt} ${Gt}`, v = "ltr", w = Kt, T = `translate(${g.left},${g.top})`;
118
- const mi = c(y < 0 ? 0 : y), Yt = c(y < 0 ? 0 : y), ft = y < 0 ? 0 : y;
119
- let st;
120
- t[98] !== L || t[99] !== nt || t[100] !== O || t[101] !== gt || t[102] !== ft ? (st = Mi(ft, L, nt, O, gt), t[98] = L, t[99] = nt, t[100] = O, t[101] = gt, t[102] = ft, t[103] = st) : st = t[103];
121
- const Et = l?.xAxis?.axis, M = l?.yAxis?.labels;
122
- let et;
123
- t[104] !== Et || t[105] !== M ? (et = {
124
- axis: Et,
125
- label: M
126
- }, t[104] = Et, t[105] = M, t[106] = et) : et = t[106];
127
- const fi = h?.xAxis?.axis, hi = h?.yAxis?.labels;
115
+ id: B ? `${s.label}` : `${si}`
116
+ }), t[97] = B, t[98] = Dt) : Dt = t[98];
117
+ const fi = a.map(Dt), r = B || fi.map(ae), j = $i().domain(r).range([0, wt ? Math.max(m, wt * r.length) : Bt ? Math.min(m, Bt * r.length) : m]).paddingInner(St), F = c.ticks(Mt);
118
+ I = dt.svg, z = `${yt}px`, R = `${Ut}px`, S = `0 0 ${yt} ${Ut}`, w = "ltr", M = ci, D = `translate(${x.left},${x.top})`;
119
+ const hi = c(b < 0 ? 0 : b), ui = c(b < 0 ? 0 : b), xt = b < 0 ? 0 : b;
120
+ let ot;
121
+ t[99] !== L || t[100] !== lt || t[101] !== C || t[102] !== bt || t[103] !== xt ? (ot = Ai(xt, L, lt, C, bt), t[99] = L, t[100] = lt, t[101] = C, t[102] = bt, t[103] = xt, t[104] = ot) : ot = t[104];
122
+ const gt = l?.xAxis?.axis, Wt = l?.yAxis?.labels;
123
+ let y;
124
+ t[105] !== gt || t[106] !== Wt ? (y = {
125
+ axis: gt,
126
+ label: Wt
127
+ }, t[105] = gt, t[106] = Wt, t[107] = y) : y = t[107];
128
+ const pt = f?.xAxis?.axis, xi = f?.yAxis?.labels;
128
129
  let e;
129
- t[107] !== fi || t[108] !== hi ? (e = {
130
- axis: fi,
131
- label: hi
132
- }, t[107] = fi, t[108] = hi, t[109] = e) : e = t[109], Y = /* @__PURE__ */ n.jsx(ki, { y1: mi, y2: Yt, x1: 0 - _, x2: m + g.right, label: st, labelPos: {
133
- x: 0 - _,
130
+ t[108] !== pt || t[109] !== xi ? (e = {
131
+ axis: pt,
132
+ label: xi
133
+ }, t[108] = pt, t[109] = xi, t[110] = e) : e = t[110], G = /* @__PURE__ */ n.jsx(Oi, { y1: hi, y2: ui, x1: 0 - H, x2: m + x.right, label: ot, labelPos: {
134
+ x: 0 - H,
134
135
  dx: 0,
135
- dy: Ct < 0 ? "1em" : -5,
136
- y: c(y < 0 ? 0 : y)
137
- }, classNames: et, styles: e }), E = ii ? /* @__PURE__ */ n.jsx(Bi, { values: J.filter(ie), y: J.filter(te).map((s) => c(s)), x1: 0 - _, x2: m + g.right, styles: {
138
- gridLines: h?.yAxis?.gridLines,
139
- labels: h?.yAxis?.labels
136
+ dy: Nt < 0 ? "1em" : -5,
137
+ y: c(b < 0 ? 0 : b)
138
+ }, classNames: y, styles: e }), W = ii ? /* @__PURE__ */ n.jsx(Pi, { values: F.filter(ee), y: F.filter(ie).map((s) => c(s)), x1: 0 - H, x2: m + x.right, styles: {
139
+ gridLines: f?.yAxis?.gridLines,
140
+ labels: f?.yAxis?.labels
140
141
  }, classNames: {
141
142
  gridLines: l?.yAxis?.gridLines,
142
143
  labels: l?.yAxis?.labels
143
- }, suffix: gt, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: nt }) : null;
144
- const ot = 0 - _ - 15, ui = mt / 2, gi = h?.yAxis?.title, di = l?.yAxis?.title;
145
- t[110] !== A || t[111] !== ot || t[112] !== ui || t[113] !== gi || t[114] !== di ? (b = /* @__PURE__ */ n.jsx(Li, { x: ot, y: ui, style: gi, className: di, text: A, rotate90: !0 }), t[110] = A, t[111] = ot, t[112] = ui, t[113] = gi, t[114] = di, t[115] = b) : b = t[115], t[116] !== Z ? (z = Z.filter(_i).map(Zi), t[116] = Z, t[117] = z) : z = t[117], $ = Ti, H = ci.map((s) => p(C(s.id)) ? null : /* @__PURE__ */ n.jsxs(xt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (si) => {
146
- Qt(s), ti(si.clientY), _t(si.clientX), ct?.(s);
144
+ }, suffix: bt, prefix: C, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: lt }) : null;
145
+ const rt = 0 - H - 15, mi = Vt / 2, di = f?.yAxis?.title, yi = l?.yAxis?.title;
146
+ t[111] !== A || t[112] !== rt || t[113] !== mi || t[114] !== di || t[115] !== yi ? (v = /* @__PURE__ */ n.jsx(Ni, { x: rt, y: mi, style: di, className: yi, text: A, rotate90: !0 }), t[111] = A, t[112] = rt, t[113] = mi, t[114] = di, t[115] = yi, t[116] = v) : v = t[116], t[117] !== it ? (V = it.filter(te).map(_i), t[117] = it, t[118] = V) : V = t[118], $ = Di, Y = fi.map((s) => p(j(s.id)) ? null : /* @__PURE__ */ n.jsxs(dt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (si) => {
147
+ li(s), Et(si.clientY), _t(si.clientX), ut?.(s);
147
148
  }, onClick: () => {
148
- (at || k) && (zi(P, s) && St ? (Zt(void 0), at?.(void 0)) : (Zt(s), at?.(s)));
149
+ (nt || k) && (ji(T, s) && Pt ? (ft(void 0), nt?.(void 0)) : (ft(s), nt?.(s)));
149
150
  }, onMouseMove: (si) => {
150
- Qt(s), ti(si.clientY), _t(si.clientX);
151
+ li(s), Et(si.clientY), _t(si.clientX);
151
152
  }, onMouseLeave: () => {
152
- Qt(void 0), _t(void 0), ti(void 0), ct?.(void 0);
153
+ li(void 0), _t(void 0), Et(void 0), ut?.(void 0);
153
154
  }, exit: {
154
155
  opacity: 0,
155
156
  transition: {
156
- duration: r.duration
157
+ duration: o.duration
157
158
  }
158
159
  }, variants: {
159
160
  initial: {
160
- x: C(`${s.id}`),
161
+ x: j(`${s.id}`),
161
162
  y: 0,
162
- opacity: K.length !== 0 ? K.indexOf(s.label) !== -1 ? 0.85 : u : 0.85
163
+ opacity: Z.length !== 0 ? Z.indexOf(s.label) !== -1 ? 0.85 : u : 0.85
163
164
  },
164
165
  whileInView: {
165
- x: C(`${s.id}`),
166
+ x: j(`${s.id}`),
166
167
  y: 0,
167
- opacity: K.length !== 0 ? K.indexOf(s.label) !== -1 ? 0.85 : u : 0.85,
168
+ opacity: Z.length !== 0 ? Z.indexOf(s.label) !== -1 ? 0.85 : u : 0.85,
168
169
  transition: {
169
- duration: r.duration
170
+ duration: o.duration
170
171
  }
171
172
  }
172
- }, initial: "initial", animate: N ? "whileInView" : "initial", children: [
173
- s.qualitativeRange ? s.qualitativeRange.map((si, xi) => /* @__PURE__ */ n.jsx(xt.rect, { x: 0, exit: {
173
+ }, initial: "initial", animate: O ? "whileInView" : "initial", children: [
174
+ s.qualitativeRange ? s.qualitativeRange.map((si, gi) => /* @__PURE__ */ n.jsx(dt.rect, { x: 0, exit: {
174
175
  height: 0,
175
176
  y: c(0),
176
177
  transition: {
177
- duration: r.duration
178
+ duration: o.duration
178
179
  }
179
180
  }, variants: {
180
181
  initial: {
181
182
  height: 0,
182
183
  y: c(0),
183
- fill: qt[xi]
184
+ fill: tt[gi]
184
185
  },
185
186
  whileInView: {
186
- height: Math.abs(c(pi(s.qualitativeRange.filter((yi, bi) => bi <= xi && yi))) - c(pi(s.qualitativeRange.filter((yi, bi) => bi < xi && yi)))),
187
- y: c(pi(s.qualitativeRange.filter((yi, bi) => bi <= xi && yi))),
188
- fill: qt[xi],
187
+ height: Math.abs(c(pi(s.qualitativeRange.filter((bi, vi) => vi <= gi && bi))) - c(pi(s.qualitativeRange.filter((bi, vi) => vi < gi && bi)))),
188
+ y: c(pi(s.qualitativeRange.filter((bi, vi) => vi <= gi && bi))),
189
+ fill: tt[gi],
189
190
  transition: {
190
- duration: r.duration
191
+ duration: o.duration
191
192
  }
192
193
  }
193
- }, initial: "initial", animate: N ? "whileInView" : "initial", width: C.bandwidth() }, xi)) : null,
194
- s.target && f === "background" ? /* @__PURE__ */ n.jsx(xt.rect, { x: 0, width: C.bandwidth(), style: {
195
- fill: vt
196
- }, exit: {
194
+ }, initial: "initial", animate: O ? "whileInView" : "initial", width: j.bandwidth() }, gi)) : null,
195
+ s.target && h === "background" ? /* @__PURE__ */ n.jsx(dt.rect, { x: 0, width: j.bandwidth(), exit: {
197
196
  height: 0,
198
197
  y: c(0),
198
+ fill: P,
199
199
  transition: {
200
- duration: r.duration
200
+ duration: o.duration
201
201
  }
202
202
  }, variants: {
203
203
  initial: {
204
204
  height: 0,
205
+ fill: P,
205
206
  y: c(0)
206
207
  },
207
208
  whileInView: {
208
209
  height: Math.abs(c(s.target) - c(0)),
210
+ fill: P,
209
211
  y: s.target > 0 ? c(s.target) : c(0),
210
212
  transition: {
211
- duration: r.duration
213
+ duration: o.duration
212
214
  }
213
215
  }
214
- }, initial: "initial", animate: N ? "whileInView" : "initial" }) : null,
215
- s.size ? /* @__PURE__ */ n.jsx(xt.rect, { x: C.bandwidth() * ((1 - x) / 2), width: C.bandwidth() * x, style: {
216
- fill: $t
216
+ }, initial: "initial", animate: O ? "whileInView" : "initial" }) : null,
217
+ s.size ? /* @__PURE__ */ n.jsx(dt.rect, { x: j.bandwidth() * ((1 - g) / 2), width: j.bandwidth() * g, style: {
218
+ fill: Rt
217
219
  }, exit: {
218
220
  height: 0,
219
221
  y: c(0),
220
222
  transition: {
221
- duration: r.duration
223
+ duration: o.duration
222
224
  }
223
225
  }, variants: {
224
226
  initial: {
@@ -229,280 +231,282 @@ function Ji(i) {
229
231
  height: Math.abs(c(s.size) - c(0)),
230
232
  y: s.size > 0 ? c(s.size) : c(0),
231
233
  transition: {
232
- duration: r.duration
234
+ duration: o.duration
233
235
  }
234
236
  }
235
- }, initial: "initial", animate: N ? "whileInView" : "initial" }) : null,
236
- s.target && f === "line" ? /* @__PURE__ */ n.jsx(xt.rect, { x: 0, width: C.bandwidth(), style: {
237
- fill: vt
238
- }, exit: {
237
+ }, initial: "initial", animate: O ? "whileInView" : "initial" }) : null,
238
+ s.target && h === "line" ? /* @__PURE__ */ n.jsx(dt.rect, { x: 0, width: j.bandwidth(), exit: {
239
239
  y: c(0),
240
240
  opacity: 0,
241
+ fill: P,
241
242
  transition: {
242
- duration: r.duration
243
+ duration: o.duration
243
244
  }
244
245
  }, variants: {
245
246
  initial: {
246
247
  y: c(0),
247
- opacity: 0
248
+ opacity: 0,
249
+ fill: P
248
250
  },
249
251
  whileInView: {
250
- y: c(s.target) - 1,
252
+ y: c(s.target) - Zt / 2,
251
253
  opacity: 1,
254
+ fill: P,
252
255
  transition: {
253
- duration: r.duration
256
+ duration: o.duration
254
257
  }
255
258
  }
256
- }, initial: "initial", animate: N ? "whileInView" : "initial", height: 2 }) : null,
257
- Tt ? /* @__PURE__ */ n.jsx(Si, { value: `${s.label}`.length < Ut ? `${s.label}` : `${`${s.label}`.substring(0, Ut)}...`, y: (s.size || 0) < 0 ? 0 : c(0) + 5, x: 0, width: C.bandwidth(), height: (s.size || 0) < 0 ? c(0) - 5 : g.bottom, style: h?.xAxis?.labels, className: l?.xAxis?.labels, alignment: (s.size || 0) < 0 ? "bottom" : "top", animate: r, isInView: N }) : null,
258
- Wt ? /* @__PURE__ */ n.jsx(xt.text, { x: C.bandwidth() / 2, style: {
259
+ }, initial: "initial", animate: O ? "whileInView" : "initial", height: Zt }) : null,
260
+ qt ? /* @__PURE__ */ n.jsx(qi, { value: `${s.label}`.length < Kt ? `${s.label}` : `${`${s.label}`.substring(0, Kt)}...`, y: (s.size || 0) < 0 ? 0 : c(0) + 5, x: 0, width: j.bandwidth(), height: (s.size || 0) < 0 ? c(0) - 5 : x.bottom, style: f?.xAxis?.labels, className: l?.xAxis?.labels, alignment: (s.size || 0) < 0 ? "bottom" : "top", animate: o, isInView: O }) : null,
261
+ Jt ? /* @__PURE__ */ n.jsx(dt.text, { x: j.bandwidth() / 2, style: {
259
262
  textAnchor: "middle",
260
- ...h?.graphObjectValues || {}
261
- }, className: Vi("graph-value text-sm", !Q && $t.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", l?.graphObjectValues), dy: s.size ? s.size >= 0 ? "-5px" : "1em" : "-5px", exit: {
263
+ ...f?.graphObjectValues || {}
264
+ }, className: zi("graph-value text-sm", !_ && Rt.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", l?.graphObjectValues), dy: s.size ? s.size >= 0 ? "-5px" : "1em" : "-5px", exit: {
262
265
  opacity: 0,
263
266
  transition: {
264
- duration: r.duration
267
+ duration: o.duration
265
268
  }
266
269
  }, variants: {
267
270
  initial: {
268
271
  y: c(0),
269
272
  opacity: 0,
270
- fill: Q || $t
273
+ fill: _ || Rt
271
274
  },
272
275
  whileInView: {
273
276
  y: c(s.size || 0),
274
277
  opacity: 1,
275
- fill: Q || $t,
278
+ fill: _ || Rt,
276
279
  transition: {
277
- duration: r.duration
280
+ duration: o.duration
278
281
  }
279
282
  }
280
- }, initial: "initial", animate: N ? "whileInView" : "initial", children: Mi(s.size, L, nt, O, gt) }) : null
281
- ] }, s.label)), X = dt ? /* @__PURE__ */ n.jsx(n.Fragment, { children: dt.map((s, si) => /* @__PURE__ */ n.jsx(Fi, { text: s.text, color: s.color, y: c(s.value), x1: 0 - _, x2: m + g.right, classNames: s.classNames, styles: s.styles, animate: r, isInView: N }, si)) }) : null, t[27] = r, t[28] = A, t[29] = $t, t[30] = It, t[31] = l?.graphObjectValues, t[32] = l?.xAxis?.axis, t[33] = l?.xAxis?.labels, t[34] = l?.yAxis?.gridLines, t[35] = l?.yAxis?.labels, t[36] = l?.yAxis?.title, t[37] = Z, t[38] = a, t[39] = k, t[40] = u, t[41] = mt, t[42] = m, t[43] = Gt, t[44] = K, t[45] = N, t[46] = F, t[47] = _, t[48] = g.bottom, t[49] = g.left, t[50] = g.right, t[51] = g.top, t[52] = Rt, t[53] = x, t[54] = yt, t[55] = P, t[56] = L, t[57] = bt, t[58] = at, t[59] = ct, t[60] = nt, t[61] = O, t[62] = qt, t[63] = dt, t[64] = St, t[65] = Tt, t[66] = ii, t[67] = Wt, t[68] = h?.graphObjectValues, t[69] = h?.xAxis?.axis, t[70] = h?.xAxis?.labels, t[71] = h?.yAxis?.gridLines, t[72] = h?.yAxis?.labels, t[73] = h?.yAxis?.title, t[74] = gt, t[75] = vt, t[76] = f, t[77] = Ut, t[78] = Q, t[79] = pt, t[80] = Ct, t[81] = y, t[82] = $, t[83] = I, t[84] = H, t[85] = X, t[86] = T, t[87] = Y, t[88] = E, t[89] = b, t[90] = z, t[91] = j, t[92] = D, t[93] = R, t[94] = v, t[95] = w;
283
+ }, initial: "initial", animate: O ? "whileInView" : "initial", children: Ai(s.size, L, lt, C, bt) }) : null
284
+ ] }, s.label)), E = vt ? /* @__PURE__ */ n.jsx(n.Fragment, { children: vt.map((s, si) => /* @__PURE__ */ n.jsx(Bi, { text: s.text, color: s.color, y: c(s.value), x1: 0 - H, x2: m + x.right, classNames: s.classNames, styles: s.styles, animate: o, isInView: O }, si)) }) : null, t[27] = o, t[28] = A, t[29] = Rt, t[30] = St, t[31] = l?.graphObjectValues, t[32] = l?.xAxis?.axis, t[33] = l?.xAxis?.labels, t[34] = l?.yAxis?.gridLines, t[35] = l?.yAxis?.labels, t[36] = l?.yAxis?.title, t[37] = it, t[38] = a, t[39] = k, t[40] = u, t[41] = Vt, t[42] = m, t[43] = Ut, t[44] = Z, t[45] = O, t[46] = B, t[47] = H, t[48] = x.bottom, t[49] = x.left, t[50] = x.right, t[51] = x.top, t[52] = Bt, t[53] = g, t[54] = wt, t[55] = T, t[56] = L, t[57] = Mt, t[58] = nt, t[59] = ut, t[60] = lt, t[61] = C, t[62] = tt, t[63] = vt, t[64] = Pt, t[65] = qt, t[66] = ii, t[67] = Jt, t[68] = f?.graphObjectValues, t[69] = f?.xAxis?.axis, t[70] = f?.xAxis?.labels, t[71] = f?.yAxis?.gridLines, t[72] = f?.yAxis?.labels, t[73] = f?.yAxis?.title, t[74] = bt, t[75] = P, t[76] = Zt, t[77] = h, t[78] = Kt, t[79] = _, t[80] = yt, t[81] = Nt, t[82] = b, t[83] = $, t[84] = I, t[85] = Y, t[86] = E, t[87] = D, t[88] = G, t[89] = W, t[90] = v, t[91] = V, t[92] = z, t[93] = R, t[94] = S, t[95] = w, t[96] = M;
282
285
  } else
283
- $ = t[82], I = t[83], H = t[84], X = t[85], T = t[86], Y = t[87], E = t[88], b = t[89], z = t[90], j = t[91], D = t[92], R = t[93], v = t[94], w = t[95];
284
- let G;
285
- t[118] !== $ || t[119] !== H || t[120] !== X ? (G = /* @__PURE__ */ n.jsxs($, { children: [
286
- H,
287
- X
288
- ] }), t[118] = $, t[119] = H, t[120] = X, t[121] = G) : G = t[121];
289
- let W;
290
- t[122] !== Z ? (W = Z.filter(Qi).map(Ki), t[122] = Z, t[123] = W) : W = t[123];
286
+ $ = t[83], I = t[84], Y = t[85], E = t[86], D = t[87], G = t[88], W = t[89], v = t[90], V = t[91], z = t[92], R = t[93], S = t[94], w = t[95], M = t[96];
291
287
  let U;
292
- t[124] !== T || t[125] !== Y || t[126] !== E || t[127] !== b || t[128] !== z || t[129] !== G || t[130] !== W ? (U = /* @__PURE__ */ n.jsxs("g", { transform: T, children: [
288
+ t[119] !== $ || t[120] !== Y || t[121] !== E ? (U = /* @__PURE__ */ n.jsxs($, { children: [
293
289
  Y,
294
- E,
295
- b,
296
- z,
290
+ E
291
+ ] }), t[119] = $, t[120] = Y, t[121] = E, t[122] = U) : U = t[122];
292
+ let J;
293
+ t[123] !== it ? (J = it.filter(Zi).map(Qi), t[123] = it, t[124] = J) : J = t[124];
294
+ let K;
295
+ t[125] !== D || t[126] !== G || t[127] !== W || t[128] !== v || t[129] !== V || t[130] !== U || t[131] !== J ? (K = /* @__PURE__ */ n.jsxs("g", { transform: D, children: [
297
296
  G,
298
- W
299
- ] }), t[124] = T, t[125] = Y, t[126] = E, t[127] = b, t[128] = z, t[129] = G, t[130] = W, t[131] = U) : U = t[131];
300
- let S;
301
- t[132] !== I || t[133] !== j || t[134] !== D || t[135] !== R || t[136] !== v || t[137] !== w || t[138] !== U ? (S = /* @__PURE__ */ n.jsx(I, { width: j, height: D, viewBox: R, direction: v, ref: w, children: U }), t[132] = I, t[133] = j, t[134] = D, t[135] = R, t[136] = v, t[137] = w, t[138] = U, t[139] = S) : S = t[139];
302
- let lt;
303
- t[140] !== l?.tooltip || t[141] !== tt || t[142] !== Pt || t[143] !== V || t[144] !== h?.tooltip || t[145] !== rt ? (lt = V && rt && tt && Pt ? /* @__PURE__ */ n.jsx(Ci, { data: V, body: rt, xPos: tt, yPos: Pt, backgroundStyle: h?.tooltip, className: l?.tooltip }) : null, t[140] = l?.tooltip, t[141] = tt, t[142] = Pt, t[143] = V, t[144] = h?.tooltip, t[145] = rt, t[146] = lt) : lt = t[146];
297
+ W,
298
+ v,
299
+ V,
300
+ U,
301
+ J
302
+ ] }), t[125] = D, t[126] = G, t[127] = W, t[128] = v, t[129] = V, t[130] = U, t[131] = J, t[132] = K) : K = t[132];
303
+ let Q;
304
+ t[133] !== I || t[134] !== z || t[135] !== R || t[136] !== S || t[137] !== w || t[138] !== M || t[139] !== K ? (Q = /* @__PURE__ */ n.jsx(I, { width: z, height: R, viewBox: S, direction: w, ref: M, children: K }), t[133] = I, t[134] = z, t[135] = R, t[136] = S, t[137] = w, t[138] = M, t[139] = K, t[140] = Q) : Q = t[140];
304
305
  let q;
305
- t[147] !== k || t[148] !== P ? (q = k && P !== void 0 ? /* @__PURE__ */ n.jsx(ji, { open: P !== void 0, onClose: () => {
306
- Zt(void 0);
306
+ t[141] !== l?.tooltip || t[142] !== At || t[143] !== ti || t[144] !== N || t[145] !== f?.tooltip || t[146] !== ct ? (q = N && ct && At && ti ? /* @__PURE__ */ n.jsx(ki, { data: N, body: ct, xPos: At, yPos: ti, backgroundStyle: f?.tooltip, className: l?.tooltip }) : null, t[141] = l?.tooltip, t[142] = At, t[143] = ti, t[144] = N, t[145] = f?.tooltip, t[146] = ct, t[147] = q) : q = t[147];
307
+ let st;
308
+ t[148] !== k || t[149] !== T ? (st = k && T !== void 0 ? /* @__PURE__ */ n.jsx(Ci, { open: T !== void 0, onClose: () => {
309
+ ft(void 0);
307
310
  }, children: /* @__PURE__ */ n.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof k == "string" ? {
308
- __html: Oi(k, P)
309
- } : void 0, children: typeof k == "function" ? k(P) : null }) }) : null, t[147] = k, t[148] = P, t[149] = q) : q = t[149];
310
- let Nt;
311
- return t[150] !== S || t[151] !== lt || t[152] !== q ? (Nt = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
312
- S,
313
- lt,
314
- q
315
- ] }), t[150] = S, t[151] = lt, t[152] = q, t[153] = Nt) : Nt = t[153], Nt;
316
- }
317
- function Ki(i) {
318
- return i.layer;
311
+ __html: Li(k, T)
312
+ } : void 0, children: typeof k == "function" ? k(T) : null }) }) : null, t[148] = k, t[149] = T, t[150] = st) : st = t[150];
313
+ let at;
314
+ return t[151] !== Q || t[152] !== q || t[153] !== st ? (at = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
315
+ Q,
316
+ q,
317
+ st
318
+ ] }), t[151] = Q, t[152] = q, t[153] = st, t[154] = at) : at = t[154], at;
319
319
  }
320
320
  function Qi(i) {
321
- return i.position === "after";
321
+ return i.layer;
322
322
  }
323
323
  function Zi(i) {
324
- return i.layer;
324
+ return i.position === "after";
325
325
  }
326
326
  function _i(i) {
327
- return i.position === "before";
327
+ return i.layer;
328
328
  }
329
329
  function te(i) {
330
- return i !== 0;
330
+ return i.position === "before";
331
331
  }
332
332
  function ie(i) {
333
333
  return i !== 0;
334
334
  }
335
335
  function ee(i) {
336
- return `${i.id}`;
336
+ return i !== 0;
337
337
  }
338
338
  function ae(i) {
339
- return i.target;
339
+ return `${i.id}`;
340
340
  }
341
341
  function ne(i) {
342
- return !p(i.target);
342
+ return i.target;
343
343
  }
344
344
  function le(i) {
345
- return i.target;
345
+ return !p(i.target);
346
346
  }
347
347
  function se(i) {
348
- return !p(i.target);
348
+ return i.target;
349
349
  }
350
350
  function oe(i) {
351
- return i.size;
351
+ return !p(i.target);
352
352
  }
353
353
  function re(i) {
354
- return !p(i.size);
354
+ return i.size;
355
355
  }
356
356
  function ce(i) {
357
- return i.size;
357
+ return !p(i.size);
358
358
  }
359
359
  function ue(i) {
360
- return !p(i.size);
360
+ return i.size;
361
361
  }
362
362
  function me(i) {
363
+ return !p(i.size);
364
+ }
365
+ function fe(i) {
363
366
  return pi((i.qualitativeRange || []).filter(he)) || 0;
364
367
  }
365
368
  function he(i) {
366
369
  return !p(i);
367
370
  }
368
- function fe(i) {
371
+ function xe(i) {
369
372
  return i.target;
370
373
  }
371
- function xe(i) {
374
+ function ge(i) {
372
375
  return !p(i.size);
373
376
  }
374
377
  function pe(i) {
375
378
  return i.target;
376
379
  }
377
- function ge(i) {
380
+ function de(i) {
378
381
  return !p(i.target);
379
382
  }
380
- function de(i) {
383
+ function ye(i) {
381
384
  return i.size;
382
385
  }
383
- function ye(i) {
386
+ function be(i) {
384
387
  return !p(i.size);
385
388
  }
386
- function be(i) {
389
+ function ve(i) {
387
390
  return i.size;
388
391
  }
389
- function ve(i) {
392
+ function we(i) {
390
393
  return !p(i.size);
391
394
  }
392
- function we(i) {
393
- const t = Ai.c(146), {
395
+ function Me(i) {
396
+ const t = Vi.c(147), {
394
397
  data: a,
395
- topMargin: pt,
396
- bottomMargin: Gt,
397
- leftMargin: $t,
398
- rightMargin: gt,
399
- barColor: O,
400
- suffix: It,
401
- prefix: Tt,
402
- barPadding: Wt,
398
+ topMargin: yt,
399
+ bottomMargin: Ut,
400
+ leftMargin: Rt,
401
+ rightMargin: bt,
402
+ barColor: C,
403
+ suffix: St,
404
+ prefix: qt,
405
+ barPadding: Jt,
403
406
  showValues: ii,
404
- showTicks: Ut,
407
+ showTicks: Kt,
405
408
  truncateBy: ei,
406
- width: Dt,
407
- height: Jt,
409
+ width: Ft,
410
+ height: Qt,
408
411
  showLabels: ri,
409
- tooltip: rt,
410
- onSeriesMouseOver: ct,
411
- refValues: dt,
412
+ tooltip: ct,
413
+ onSeriesMouseOver: ut,
414
+ refValues: vt,
412
415
  highlightedDataPoints: d,
413
- maxValue: ut,
414
- minValue: K,
415
- onSeriesMouseClick: at,
416
- labelOrder: F,
417
- rtl: Rt,
418
- maxBarThickness: yt,
419
- minBarThickness: St,
416
+ maxValue: mt,
417
+ minValue: Z,
418
+ onSeriesMouseClick: nt,
419
+ labelOrder: B,
420
+ rtl: Bt,
421
+ maxBarThickness: wt,
422
+ minBarThickness: Pt,
420
423
  resetSelectionOnDoubleClick: k,
421
424
  detailsOnClick: A,
422
- barAxisTitle: Q,
423
- valueColor: bt,
424
- noOfTicks: h,
425
+ barAxisTitle: _,
426
+ valueColor: Mt,
427
+ noOfTicks: f,
425
428
  styles: l,
426
- classNames: f,
427
- targetStyle: vt,
428
- targetColor: qt,
429
- qualitativeRangeColors: x,
430
- measureBarWidthFactor: r,
429
+ classNames: h,
430
+ targetStyle: P,
431
+ targetColor: tt,
432
+ qualitativeRangeColors: g,
433
+ measureBarWidthFactor: o,
431
434
  animate: u,
432
- dimmedOpacity: nt,
433
- precision: Z,
435
+ dimmedOpacity: lt,
436
+ precision: it,
434
437
  customLayers: L,
435
- naLabel: _
436
- } = i, Ft = pt === void 0 ? 25 : pt, ai = Gt === void 0 ? 10 : Gt, ni = $t === void 0 ? 100 : $t, Kt = gt === void 0 ? 40 : gt, li = wi(null);
437
- let N;
438
- t[0] !== u.amount || t[1] !== u.once ? (N = {
438
+ naLabel: Zt,
439
+ targetLineThickness: H
440
+ } = i, Ht = yt === void 0 ? 25 : yt, ai = Ut === void 0 ? 10 : Ut, Xt = Rt === void 0 ? 100 : Rt, ci = bt === void 0 ? 40 : bt, ni = Mi(null);
441
+ let O;
442
+ t[0] !== u.amount || t[1] !== u.once ? (O = {
439
443
  once: u.once,
440
444
  amount: u.amount
441
- }, t[0] = u.amount, t[1] = u.once, t[2] = N) : N = t[2];
442
- const B = Ii(li, N), [Bt, g] = oi(void 0), [V, Qt] = oi(void 0), [P, Zt] = oi(void 0), [tt, _t] = oi(void 0), Pt = Q ? Ft + 25 : Ft;
443
- let ti;
444
- t[3] !== ai || t[4] !== ni || t[5] !== Kt || t[6] !== Pt ? (ti = {
445
- top: Pt,
445
+ }, t[0] = u.amount, t[1] = u.once, t[2] = O) : O = t[2];
446
+ const X = Ii(ni, O), [Yt, x] = oi(void 0), [N, li] = oi(void 0), [T, ft] = oi(void 0), [At, _t] = oi(void 0), ti = _ ? Ht + 25 : Ht;
447
+ let Et;
448
+ t[3] !== ai || t[4] !== Xt || t[5] !== ci || t[6] !== ti ? (Et = {
449
+ top: ti,
446
450
  bottom: ai,
447
- left: ni,
448
- right: Kt
449
- }, t[3] = ai, t[4] = ni, t[5] = Kt, t[6] = Pt, t[7] = ti) : ti = t[7];
450
- const m = ti, mt = Dt - m.left - m.right, it = Jt - m.top - m.bottom;
451
- let wt;
452
- t[8] !== a ? (wt = Math.max(...a.filter(Ge).map(Ee)) < 0 ? 0 : Math.max(...a.filter(Ye).map(Xe)), t[8] = a, t[9] = wt) : wt = t[9];
453
- const Mt = wt;
454
- let At;
455
- t[10] !== a ? (At = Math.max(...a.filter(He).map(Pe)) < 0 ? 0 : Math.max(...a.filter(Be).map(Fe)), t[10] = a, t[11] = At) : At = t[11];
456
- const Vt = At;
451
+ left: Xt,
452
+ right: ci
453
+ }, t[3] = ai, t[4] = Xt, t[5] = ci, t[6] = ti, t[7] = Et) : Et = t[7];
454
+ const m = Et, Vt = Ft - m.left - m.right, et = Qt - m.top - m.bottom;
457
455
  let zt;
458
- t[12] !== a ? (zt = Math.max(...a.map(Se)), t[12] = a, t[13] = zt) : zt = t[13];
456
+ t[8] !== a ? (zt = Math.max(...a.filter(We).map(Ge)) < 0 ? 0 : Math.max(...a.filter(Ee).map(Ye)), t[8] = a, t[9] = zt) : zt = t[9];
459
457
  const jt = zt;
460
458
  let Ct;
461
- t[14] !== Mt || t[15] !== ut || t[16] !== jt || t[17] !== Vt ? (Ct = p(ut) ? Math.max(...[Mt, Vt, jt].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[Mt, Vt, jt].filter(Number.isFinite)) : ut, t[14] = Mt, t[15] = ut, t[16] = jt, t[17] = Vt, t[18] = Ct) : Ct = t[18];
462
- const Ht = Ct;
463
- let Ot;
464
- t[19] !== a ? (Ot = Math.min(...a.filter(Re).map(De)) >= 0 ? 0 : Math.min(...a.filter(Te).map(Ie)), t[19] = a, t[20] = Ot) : Ot = t[20];
465
- const kt = Ot;
459
+ t[10] !== a ? (Ct = Math.max(...a.filter(Xe).map(He)) < 0 ? 0 : Math.max(...a.filter(Pe).map(Be)), t[10] = a, t[11] = Ct) : Ct = t[11];
460
+ const kt = Ct;
461
+ let Lt;
462
+ t[12] !== a ? (Lt = Math.max(...a.map(qe)), t[12] = a, t[13] = Lt) : Lt = t[13];
463
+ const Ot = Lt;
464
+ let Nt;
465
+ t[14] !== jt || t[15] !== mt || t[16] !== Ot || t[17] !== kt ? (Nt = p(mt) ? Math.max(...[jt, kt, Ot].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[jt, kt, Ot].filter(Number.isFinite)) : mt, t[14] = jt, t[15] = mt, t[16] = Ot, t[17] = kt, t[18] = Nt) : Nt = t[18];
466
+ const Gt = Nt;
467
+ let Tt;
468
+ t[19] !== a ? (Tt = Math.min(...a.filter(Se).map(Re)) >= 0 ? 0 : Math.min(...a.filter(De).map(Ie)), t[19] = a, t[20] = Tt) : Tt = t[20];
469
+ const $t = Tt;
466
470
  let ht;
467
- t[21] !== a ? (ht = Math.min(...a.filter($e).map(Ne)) >= 0 ? 0 : Math.min(...a.filter(Le).map(ke)), t[21] = a, t[22] = ht) : ht = t[22];
468
- const Lt = ht;
469
- let y;
470
- t[23] !== kt || t[24] !== K || t[25] !== Lt ? (y = p(K) ? Math.min(...[kt, Lt].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[kt, Lt].filter(Number.isFinite)) : K, t[23] = kt, t[24] = K, t[25] = Lt, t[26] = y) : y = t[26];
471
- const $ = y;
472
- let I, H, X, T, Y, E, b, z, j, D, R, v, w, G;
473
- if (t[27] !== u || t[28] !== Q || t[29] !== O || t[30] !== Wt || t[31] !== f?.graphObjectValues || t[32] !== f?.xAxis?.gridLines || t[33] !== f?.xAxis?.labels || t[34] !== f?.xAxis?.title || t[35] !== f?.yAxis?.axis || t[36] !== f?.yAxis?.labels || t[37] !== L || t[38] !== a || t[39] !== A || t[40] !== nt || t[41] !== it || t[42] !== mt || t[43] !== Jt || t[44] !== d || t[45] !== B || t[46] !== F || t[47] !== m.bottom || t[48] !== m.left || t[49] !== m.top || t[50] !== yt || t[51] !== r || t[52] !== St || t[53] !== V || t[54] !== _ || t[55] !== h || t[56] !== at || t[57] !== ct || t[58] !== Z || t[59] !== Tt || t[60] !== x || t[61] !== dt || t[62] !== k || t[63] !== Rt || t[64] !== ri || t[65] !== Ut || t[66] !== ii || t[67] !== l?.graphObjectValues || t[68] !== l?.xAxis?.gridLines || t[69] !== l?.xAxis?.labels || t[70] !== l?.xAxis?.title || t[71] !== l?.yAxis?.axis || t[72] !== l?.yAxis?.labels || t[73] !== It || t[74] !== qt || t[75] !== vt || t[76] !== Ft || t[77] !== ei || t[78] !== bt || t[79] !== Dt || t[80] !== Ht || t[81] !== $) {
474
- let Xt;
475
- t[96] !== F ? (Xt = (e, ot) => ({
471
+ t[21] !== a ? (ht = Math.min(...a.filter($e).map(Te)) >= 0 ? 0 : Math.min(...a.filter(Ne).map(Oe)), t[21] = a, t[22] = ht) : ht = t[22];
472
+ const It = ht;
473
+ let b;
474
+ t[23] !== $t || t[24] !== Z || t[25] !== It ? (b = p(Z) ? Math.min(...[$t, It].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[$t, It].filter(Number.isFinite)) : Z, t[23] = $t, t[24] = Z, t[25] = It, t[26] = b) : b = t[26];
475
+ const $ = b;
476
+ let I, Y, E, D, G, W, v, V, z, R, S, w, M, U;
477
+ if (t[27] !== u || t[28] !== _ || t[29] !== C || t[30] !== Jt || t[31] !== h?.graphObjectValues || t[32] !== h?.xAxis?.gridLines || t[33] !== h?.xAxis?.labels || t[34] !== h?.xAxis?.title || t[35] !== h?.yAxis?.axis || t[36] !== h?.yAxis?.labels || t[37] !== L || t[38] !== a || t[39] !== A || t[40] !== lt || t[41] !== et || t[42] !== Vt || t[43] !== Qt || t[44] !== d || t[45] !== X || t[46] !== B || t[47] !== m.bottom || t[48] !== m.left || t[49] !== m.top || t[50] !== wt || t[51] !== o || t[52] !== Pt || t[53] !== N || t[54] !== Zt || t[55] !== f || t[56] !== nt || t[57] !== ut || t[58] !== it || t[59] !== qt || t[60] !== g || t[61] !== vt || t[62] !== k || t[63] !== Bt || t[64] !== ri || t[65] !== Kt || t[66] !== ii || t[67] !== l?.graphObjectValues || t[68] !== l?.xAxis?.gridLines || t[69] !== l?.xAxis?.labels || t[70] !== l?.xAxis?.title || t[71] !== l?.yAxis?.axis || t[72] !== l?.yAxis?.labels || t[73] !== St || t[74] !== tt || t[75] !== H || t[76] !== P || t[77] !== Ht || t[78] !== ei || t[79] !== Mt || t[80] !== Ft || t[81] !== Gt || t[82] !== $) {
478
+ let Dt;
479
+ t[97] !== B ? (Dt = (e, rt) => ({
476
480
  ...e,
477
- id: F ? `${e.label}` : `${ot}`
478
- }), t[96] = F, t[97] = Xt) : Xt = t[97];
479
- const ci = a.map(Xt), o = Ni().domain([$, Ht]).range([0, mt]).nice(), C = F || ci.map(Oe), J = $i().domain(C).range([0, St ? Math.max(it, St * C.length) : yt ? Math.min(it, yt * C.length) : it]).paddingInner(Wt), mi = o.ticks(h);
480
- H = xt.svg, D = `${Dt}px`, R = `${Jt}px`, v = `0 0 ${Dt} ${Jt}`, w = "ltr", G = li, Y = `translate(${m.left},${m.top})`, E = Ut ? /* @__PURE__ */ n.jsx(Pi, { values: mi.filter(Ce), x: mi.filter(je).map((e) => o(e)), y1: 0 - Ft, y2: it + m.bottom, styles: {
481
+ id: B ? `${e.label}` : `${rt}`
482
+ }), t[97] = B, t[98] = Dt) : Dt = t[98];
483
+ const fi = a.map(Dt), r = Ti().domain([$, Gt]).range([0, Vt]).nice(), j = B || fi.map(Le), F = $i().domain(j).range([0, Pt ? Math.max(et, Pt * j.length) : wt ? Math.min(et, wt * j.length) : et]).paddingInner(Jt), hi = r.ticks(f);
484
+ Y = dt.svg, R = `${Ft}px`, S = `${Qt}px`, w = `0 0 ${Ft} ${Qt}`, M = "ltr", U = ni, G = `translate(${m.left},${m.top})`, W = Kt ? /* @__PURE__ */ n.jsx(Hi, { values: hi.filter(ke), x: hi.filter(Ce).map((e) => r(e)), y1: 0 - Ht, y2: et + m.bottom, styles: {
481
485
  gridLines: l?.xAxis?.gridLines,
482
486
  labels: l?.xAxis?.labels
483
487
  }, classNames: {
484
- gridLines: f?.xAxis?.gridLines,
485
- labels: f?.xAxis?.labels
486
- }, suffix: It, prefix: Tt, labelType: "secondary", showGridLines: !0, precision: Z }) : null;
487
- const Yt = mt / 2, ft = 0 - m.top + 15, st = l?.xAxis?.title, Et = f?.xAxis?.title;
488
- t[98] !== Q || t[99] !== Yt || t[100] !== ft || t[101] !== st || t[102] !== Et ? (b = /* @__PURE__ */ n.jsx(Li, { x: Yt, y: ft, style: st, className: Et, text: Q }), t[98] = Q, t[99] = Yt, t[100] = ft, t[101] = st, t[102] = Et, t[103] = b) : b = t[103];
489
- const M = f?.yAxis?.axis;
490
- let et;
491
- t[104] !== M ? (et = {
492
- axis: M
493
- }, t[104] = M, t[105] = et) : et = t[105];
494
- const fi = l?.yAxis?.axis;
495
- let hi;
496
- t[106] !== fi ? (hi = {
497
- axis: fi
498
- }, t[106] = fi, t[107] = hi) : hi = t[107], z = /* @__PURE__ */ n.jsx(ki, { x1: o($ < 0 ? 0 : $), x2: o($ < 0 ? 0 : $), y1: -2.5, y2: it + m.bottom, classNames: et, styles: hi }), t[108] !== L ? (j = L.filter(ze).map(Ve), t[108] = L, t[109] = j) : j = t[109], I = Ti, X = ci.map((e) => p(J(e.id)) ? null : /* @__PURE__ */ n.jsxs(xt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (ot) => {
499
- g(e), _t(ot.clientY), Zt(ot.clientX), ct?.(e);
488
+ gridLines: h?.xAxis?.gridLines,
489
+ labels: h?.xAxis?.labels
490
+ }, suffix: St, prefix: qt, labelType: "secondary", showGridLines: !0, precision: it }) : null;
491
+ const ui = Vt / 2, xt = 0 - m.top + 15, ot = l?.xAxis?.title, gt = h?.xAxis?.title;
492
+ t[99] !== _ || t[100] !== ui || t[101] !== xt || t[102] !== ot || t[103] !== gt ? (v = /* @__PURE__ */ n.jsx(Ni, { x: ui, y: xt, style: ot, className: gt, text: _ }), t[99] = _, t[100] = ui, t[101] = xt, t[102] = ot, t[103] = gt, t[104] = v) : v = t[104];
493
+ const Wt = h?.yAxis?.axis;
494
+ let y;
495
+ t[105] !== Wt ? (y = {
496
+ axis: Wt
497
+ }, t[105] = Wt, t[106] = y) : y = t[106];
498
+ const pt = l?.yAxis?.axis;
499
+ let xi;
500
+ t[107] !== pt ? (xi = {
501
+ axis: pt
502
+ }, t[107] = pt, t[108] = xi) : xi = t[108], V = /* @__PURE__ */ n.jsx(Oi, { x1: r($ < 0 ? 0 : $), x2: r($ < 0 ? 0 : $), y1: -2.5, y2: et + m.bottom, classNames: y, styles: xi }), t[109] !== L ? (z = L.filter(je).map(ze), t[109] = L, t[110] = z) : z = t[110], I = Di, E = fi.map((e) => p(F(e.id)) ? null : /* @__PURE__ */ n.jsxs(dt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (rt) => {
503
+ x(e), _t(rt.clientY), ft(rt.clientX), ut?.(e);
500
504
  }, onClick: () => {
501
- (at || A) && (zi(V, e) && k ? (Qt(void 0), at?.(void 0)) : (Qt(e), at?.(e)));
502
- }, onMouseMove: (ot) => {
503
- g(e), _t(ot.clientY), Zt(ot.clientX);
505
+ (nt || A) && (ji(N, e) && k ? (li(void 0), nt?.(void 0)) : (li(e), nt?.(e)));
506
+ }, onMouseMove: (rt) => {
507
+ x(e), _t(rt.clientY), ft(rt.clientX);
504
508
  }, onMouseLeave: () => {
505
- g(void 0), Zt(void 0), _t(void 0), ct?.(void 0);
509
+ x(void 0), ft(void 0), _t(void 0), ut?.(void 0);
506
510
  }, exit: {
507
511
  opacity: 0,
508
512
  transition: {
@@ -511,190 +515,192 @@ function we(i) {
511
515
  }, variants: {
512
516
  initial: {
513
517
  x: 0,
514
- y: J(`${e.id}`),
515
- opacity: d.length !== 0 ? d.indexOf(e.label) !== -1 ? 0.85 : nt : 0.85
518
+ y: F(`${e.id}`),
519
+ opacity: d.length !== 0 ? d.indexOf(e.label) !== -1 ? 0.85 : lt : 0.85
516
520
  },
517
521
  whileInView: {
518
522
  x: 0,
519
- y: J(`${e.id}`),
520
- opacity: d.length !== 0 ? d.indexOf(e.label) !== -1 ? 0.85 : nt : 0.85,
523
+ y: F(`${e.id}`),
524
+ opacity: d.length !== 0 ? d.indexOf(e.label) !== -1 ? 0.85 : lt : 0.85,
521
525
  transition: {
522
526
  duration: u.duration
523
527
  }
524
528
  }
525
- }, initial: "initial", animate: B ? "whileInView" : "initial", children: [
526
- e.qualitativeRange ? e.qualitativeRange.map((ot, ui) => /* @__PURE__ */ n.jsx(xt.rect, { exit: {
529
+ }, initial: "initial", animate: X ? "whileInView" : "initial", children: [
530
+ e.qualitativeRange ? e.qualitativeRange.map((rt, mi) => /* @__PURE__ */ n.jsx(dt.rect, { exit: {
527
531
  width: 0,
528
- x: o(0),
532
+ x: r(0),
529
533
  transition: {
530
534
  duration: u.duration
531
535
  }
532
536
  }, variants: {
533
537
  initial: {
534
- x: o(0),
538
+ x: r(0),
535
539
  width: 0,
536
- fill: x[ui]
540
+ fill: g[mi]
537
541
  },
538
542
  whileInView: {
539
- x: o(ui === 0 ? 0 : pi(e.qualitativeRange.filter((gi, di) => di < ui && gi))),
540
- width: o(ot),
541
- fill: x[ui],
543
+ x: r(mi === 0 ? 0 : pi(e.qualitativeRange.filter((di, yi) => yi < mi && di))),
544
+ width: r(rt),
545
+ fill: g[mi],
542
546
  transition: {
543
547
  duration: u.duration
544
548
  }
545
549
  }
546
- }, initial: "initial", animate: B ? "whileInView" : "initial", y: 0, height: J.bandwidth() }, ui)) : null,
547
- e.target && vt === "background" ? /* @__PURE__ */ n.jsx(xt.rect, { y: 0, x: e.target >= 0 ? o(0) : o(e.target), height: J.bandwidth(), style: {
548
- fill: qt
549
- }, exit: {
550
+ }, initial: "initial", animate: X ? "whileInView" : "initial", y: 0, height: F.bandwidth() }, mi)) : null,
551
+ e.target && P === "background" ? /* @__PURE__ */ n.jsx(dt.rect, { y: 0, x: e.target >= 0 ? r(0) : r(e.target), height: F.bandwidth(), exit: {
550
552
  width: 0,
551
- x: o(0),
553
+ x: r(0),
554
+ fill: tt,
552
555
  transition: {
553
556
  duration: u.duration
554
557
  }
555
558
  }, variants: {
556
559
  initial: {
557
- x: o(0),
560
+ x: r(0),
561
+ fill: tt,
558
562
  width: 0
559
563
  },
560
564
  whileInView: {
561
- x: e.target >= 0 ? o(0) : o(e.target),
562
- width: e.target >= 0 ? o(e.target) - o(0) : o(0) - o(e.target),
565
+ x: e.target >= 0 ? r(0) : r(e.target),
566
+ fill: tt,
567
+ width: e.target >= 0 ? r(e.target) - r(0) : r(0) - r(e.target),
563
568
  transition: {
564
569
  duration: u.duration
565
570
  }
566
571
  }
567
- }, initial: "initial", animate: B ? "whileInView" : "initial" }) : null,
568
- e.size ? /* @__PURE__ */ n.jsx(xt.rect, { y: J.bandwidth() * ((1 - r) / 2), style: {
569
- fill: O
570
- }, height: J.bandwidth() * r, exit: {
572
+ }, initial: "initial", animate: X ? "whileInView" : "initial" }) : null,
573
+ e.size ? /* @__PURE__ */ n.jsx(dt.rect, { y: F.bandwidth() * ((1 - o) / 2), style: {
574
+ fill: C
575
+ }, height: F.bandwidth() * o, exit: {
571
576
  width: 0,
572
- x: o(0),
577
+ x: r(0),
573
578
  transition: {
574
579
  duration: u.duration
575
580
  }
576
581
  }, variants: {
577
582
  initial: {
578
- x: o(0),
583
+ x: r(0),
579
584
  width: 0
580
585
  },
581
586
  whileInView: {
582
- x: e.size >= 0 ? o(0) : o(e.size),
583
- width: e.size >= 0 ? o(e.size) - o(0) : o(0) - o(e.size),
587
+ x: e.size >= 0 ? r(0) : r(e.size),
588
+ width: e.size >= 0 ? r(e.size) - r(0) : r(0) - r(e.size),
584
589
  transition: {
585
590
  duration: u.duration
586
591
  }
587
592
  }
588
- }, initial: "initial", animate: B ? "whileInView" : "initial" }) : null,
589
- e.target && vt === "line" ? /* @__PURE__ */ n.jsx(xt.rect, { y: 0, height: J.bandwidth(), style: {
590
- fill: qt
591
- }, width: 2, exit: {
593
+ }, initial: "initial", animate: X ? "whileInView" : "initial" }) : null,
594
+ e.target && P === "line" ? /* @__PURE__ */ n.jsx(dt.rect, { y: 0, height: F.bandwidth(), width: H, exit: {
592
595
  opacity: 0,
593
- x: o(0),
596
+ x: r(0),
597
+ fill: tt,
594
598
  transition: {
595
599
  duration: u.duration
596
600
  }
597
601
  }, variants: {
598
602
  initial: {
599
- x: o(0),
600
- opacity: 0
603
+ x: r(0),
604
+ opacity: 0,
605
+ fill: tt
601
606
  },
602
607
  whileInView: {
603
- x: o(e.target) - 1,
608
+ x: r(e.target) - H / 2,
604
609
  opacity: 1,
610
+ fill: tt,
605
611
  transition: {
606
612
  duration: u.duration
607
613
  }
608
614
  }
609
- }, initial: "initial", animate: B ? "whileInView" : "initial" }) : null,
610
- ri ? /* @__PURE__ */ n.jsx(Hi, { value: `${e.label}`.length < ei ? `${e.label}` : `${`${e.label}`.substring(0, ei)}...`, y: 0, x: (e.size || 0) < 0 ? o(0) : 0 - m.left, width: (e.size || 0) < 0 ? Dt - o(0) : o(0) + m.left, height: J.bandwidth(), alignment: e.size && e.size < 0 ? "left" : "right", style: l?.yAxis?.labels, className: f?.yAxis?.labels, animate: u, isInView: B }) : null,
611
- ii ? /* @__PURE__ */ n.jsx(xt.text, { y: J.bandwidth() / 2, style: {
615
+ }, initial: "initial", animate: X ? "whileInView" : "initial" }) : null,
616
+ ri ? /* @__PURE__ */ n.jsx(Xi, { value: `${e.label}`.length < ei ? `${e.label}` : `${`${e.label}`.substring(0, ei)}...`, y: 0, x: (e.size || 0) < 0 ? r(0) : 0 - m.left, width: (e.size || 0) < 0 ? Ft - r(0) : r(0) + m.left, height: F.bandwidth(), alignment: e.size && e.size < 0 ? "left" : "right", style: l?.yAxis?.labels, className: h?.yAxis?.labels, animate: u, isInView: X }) : null,
617
+ ii ? /* @__PURE__ */ n.jsx(dt.text, { y: F.bandwidth() / 2, style: {
612
618
  textAnchor: e.size && e.size < 0 ? "end" : "start",
613
619
  ...l?.graphObjectValues || {}
614
- }, className: Vi("graph-value text-sm", !bt && O.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", f?.graphObjectValues), dx: e.size && e.size < 0 ? -5 : 5, dy: "0.33em", exit: {
620
+ }, className: zi("graph-value text-sm", !Mt && C.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", h?.graphObjectValues), dx: e.size && e.size < 0 ? -5 : 5, dy: "0.33em", exit: {
615
621
  opacity: 0,
616
622
  transition: {
617
623
  duration: u.duration
618
624
  }
619
625
  }, variants: {
620
626
  initial: {
621
- x: o(0),
627
+ x: r(0),
622
628
  opacity: 0,
623
- fill: bt || O
629
+ fill: Mt || C
624
630
  },
625
631
  whileInView: {
626
- x: e.size ? o(e.size) : o(0),
632
+ x: e.size ? r(e.size) : r(0),
627
633
  opacity: 1,
628
- fill: bt || O,
634
+ fill: Mt || C,
629
635
  transition: {
630
636
  duration: u.duration
631
637
  }
632
638
  }
633
- }, initial: "initial", animate: B ? "whileInView" : "initial", children: Mi(e.size, _, Z, Tt, It) }) : null
634
- ] }, e.label)), T = dt ? /* @__PURE__ */ n.jsx(n.Fragment, { children: dt.map((e, ot) => /* @__PURE__ */ n.jsx(qi, { text: e.text, color: e.color, x: o(e.value), y1: 0 - m.top, y2: it + m.bottom, textSide: o(e.value) > mt * 0.75 || Rt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: u, isInView: B }, ot)) }) : null, t[27] = u, t[28] = Q, t[29] = O, t[30] = Wt, t[31] = f?.graphObjectValues, t[32] = f?.xAxis?.gridLines, t[33] = f?.xAxis?.labels, t[34] = f?.xAxis?.title, t[35] = f?.yAxis?.axis, t[36] = f?.yAxis?.labels, t[37] = L, t[38] = a, t[39] = A, t[40] = nt, t[41] = it, t[42] = mt, t[43] = Jt, t[44] = d, t[45] = B, t[46] = F, t[47] = m.bottom, t[48] = m.left, t[49] = m.top, t[50] = yt, t[51] = r, t[52] = St, t[53] = V, t[54] = _, t[55] = h, t[56] = at, t[57] = ct, t[58] = Z, t[59] = Tt, t[60] = x, t[61] = dt, t[62] = k, t[63] = Rt, t[64] = ri, t[65] = Ut, t[66] = ii, t[67] = l?.graphObjectValues, t[68] = l?.xAxis?.gridLines, t[69] = l?.xAxis?.labels, t[70] = l?.xAxis?.title, t[71] = l?.yAxis?.axis, t[72] = l?.yAxis?.labels, t[73] = It, t[74] = qt, t[75] = vt, t[76] = Ft, t[77] = ei, t[78] = bt, t[79] = Dt, t[80] = Ht, t[81] = $, t[82] = I, t[83] = H, t[84] = X, t[85] = T, t[86] = Y, t[87] = E, t[88] = b, t[89] = z, t[90] = j, t[91] = D, t[92] = R, t[93] = v, t[94] = w, t[95] = G;
639
+ }, initial: "initial", animate: X ? "whileInView" : "initial", children: Ai(e.size, Zt, it, qt, St) }) : null
640
+ ] }, e.label)), D = vt ? /* @__PURE__ */ n.jsx(n.Fragment, { children: vt.map((e, rt) => /* @__PURE__ */ n.jsx(Fi, { text: e.text, color: e.color, x: r(e.value), y1: 0 - m.top, y2: et + m.bottom, textSide: r(e.value) > Vt * 0.75 || Bt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: u, isInView: X }, rt)) }) : null, t[27] = u, t[28] = _, t[29] = C, t[30] = Jt, t[31] = h?.graphObjectValues, t[32] = h?.xAxis?.gridLines, t[33] = h?.xAxis?.labels, t[34] = h?.xAxis?.title, t[35] = h?.yAxis?.axis, t[36] = h?.yAxis?.labels, t[37] = L, t[38] = a, t[39] = A, t[40] = lt, t[41] = et, t[42] = Vt, t[43] = Qt, t[44] = d, t[45] = X, t[46] = B, t[47] = m.bottom, t[48] = m.left, t[49] = m.top, t[50] = wt, t[51] = o, t[52] = Pt, t[53] = N, t[54] = Zt, t[55] = f, t[56] = nt, t[57] = ut, t[58] = it, t[59] = qt, t[60] = g, t[61] = vt, t[62] = k, t[63] = Bt, t[64] = ri, t[65] = Kt, t[66] = ii, t[67] = l?.graphObjectValues, t[68] = l?.xAxis?.gridLines, t[69] = l?.xAxis?.labels, t[70] = l?.xAxis?.title, t[71] = l?.yAxis?.axis, t[72] = l?.yAxis?.labels, t[73] = St, t[74] = tt, t[75] = H, t[76] = P, t[77] = Ht, t[78] = ei, t[79] = Mt, t[80] = Ft, t[81] = Gt, t[82] = $, t[83] = I, t[84] = Y, t[85] = E, t[86] = D, t[87] = G, t[88] = W, t[89] = v, t[90] = V, t[91] = z, t[92] = R, t[93] = S, t[94] = w, t[95] = M, t[96] = U;
635
641
  } else
636
- I = t[82], H = t[83], X = t[84], T = t[85], Y = t[86], E = t[87], b = t[88], z = t[89], j = t[90], D = t[91], R = t[92], v = t[93], w = t[94], G = t[95];
637
- let W;
638
- t[110] !== I || t[111] !== X || t[112] !== T ? (W = /* @__PURE__ */ n.jsxs(I, { children: [
639
- X,
640
- T
641
- ] }), t[110] = I, t[111] = X, t[112] = T, t[113] = W) : W = t[113];
642
- let U;
643
- t[114] !== L ? (U = L.filter(Ae).map(Me), t[114] = L, t[115] = U) : U = t[115];
644
- let S;
645
- t[116] !== Y || t[117] !== E || t[118] !== b || t[119] !== z || t[120] !== j || t[121] !== W || t[122] !== U ? (S = /* @__PURE__ */ n.jsxs("g", { transform: Y, children: [
642
+ I = t[83], Y = t[84], E = t[85], D = t[86], G = t[87], W = t[88], v = t[89], V = t[90], z = t[91], R = t[92], S = t[93], w = t[94], M = t[95], U = t[96];
643
+ let J;
644
+ t[111] !== I || t[112] !== E || t[113] !== D ? (J = /* @__PURE__ */ n.jsxs(I, { children: [
646
645
  E,
647
- b,
648
- z,
649
- j,
646
+ D
647
+ ] }), t[111] = I, t[112] = E, t[113] = D, t[114] = J) : J = t[114];
648
+ let K;
649
+ t[115] !== L ? (K = L.filter(Ve).map(Ae), t[115] = L, t[116] = K) : K = t[116];
650
+ let Q;
651
+ t[117] !== G || t[118] !== W || t[119] !== v || t[120] !== V || t[121] !== z || t[122] !== J || t[123] !== K ? (Q = /* @__PURE__ */ n.jsxs("g", { transform: G, children: [
650
652
  W,
651
- U
652
- ] }), t[116] = Y, t[117] = E, t[118] = b, t[119] = z, t[120] = j, t[121] = W, t[122] = U, t[123] = S) : S = t[123];
653
- let lt;
654
- t[124] !== H || t[125] !== D || t[126] !== R || t[127] !== v || t[128] !== w || t[129] !== G || t[130] !== S ? (lt = /* @__PURE__ */ n.jsx(H, { width: D, height: R, viewBox: v, direction: w, ref: G, children: S }), t[124] = H, t[125] = D, t[126] = R, t[127] = v, t[128] = w, t[129] = G, t[130] = S, t[131] = lt) : lt = t[131];
653
+ v,
654
+ V,
655
+ z,
656
+ J,
657
+ K
658
+ ] }), t[117] = G, t[118] = W, t[119] = v, t[120] = V, t[121] = z, t[122] = J, t[123] = K, t[124] = Q) : Q = t[124];
655
659
  let q;
656
- t[132] !== f?.tooltip || t[133] !== P || t[134] !== tt || t[135] !== Bt || t[136] !== l?.tooltip || t[137] !== rt ? (q = Bt && rt && P && tt ? /* @__PURE__ */ n.jsx(Ci, { data: Bt, body: rt, xPos: P, yPos: tt, backgroundStyle: l?.tooltip, className: f?.tooltip }) : null, t[132] = f?.tooltip, t[133] = P, t[134] = tt, t[135] = Bt, t[136] = l?.tooltip, t[137] = rt, t[138] = q) : q = t[138];
657
- let Nt;
658
- t[139] !== A || t[140] !== V ? (Nt = A && V !== void 0 ? /* @__PURE__ */ n.jsx(ji, { open: V !== void 0, onClose: () => {
659
- Qt(void 0);
660
+ t[125] !== Y || t[126] !== R || t[127] !== S || t[128] !== w || t[129] !== M || t[130] !== U || t[131] !== Q ? (q = /* @__PURE__ */ n.jsx(Y, { width: R, height: S, viewBox: w, direction: M, ref: U, children: Q }), t[125] = Y, t[126] = R, t[127] = S, t[128] = w, t[129] = M, t[130] = U, t[131] = Q, t[132] = q) : q = t[132];
661
+ let st;
662
+ t[133] !== h?.tooltip || t[134] !== T || t[135] !== At || t[136] !== Yt || t[137] !== l?.tooltip || t[138] !== ct ? (st = Yt && ct && T && At ? /* @__PURE__ */ n.jsx(ki, { data: Yt, body: ct, xPos: T, yPos: At, backgroundStyle: l?.tooltip, className: h?.tooltip }) : null, t[133] = h?.tooltip, t[134] = T, t[135] = At, t[136] = Yt, t[137] = l?.tooltip, t[138] = ct, t[139] = st) : st = t[139];
663
+ let at;
664
+ t[140] !== A || t[141] !== N ? (at = A && N !== void 0 ? /* @__PURE__ */ n.jsx(Ci, { open: N !== void 0, onClose: () => {
665
+ li(void 0);
660
666
  }, children: /* @__PURE__ */ n.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof A == "string" ? {
661
- __html: Oi(A, V)
662
- } : void 0, children: typeof A == "function" ? A(V) : null }) }) : null, t[139] = A, t[140] = V, t[141] = Nt) : Nt = t[141];
667
+ __html: Li(A, N)
668
+ } : void 0, children: typeof A == "function" ? A(N) : null }) }) : null, t[140] = A, t[141] = N, t[142] = at) : at = t[142];
663
669
  let c;
664
- return t[142] !== lt || t[143] !== q || t[144] !== Nt ? (c = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
665
- lt,
670
+ return t[143] !== q || t[144] !== st || t[145] !== at ? (c = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
666
671
  q,
667
- Nt
668
- ] }), t[142] = lt, t[143] = q, t[144] = Nt, t[145] = c) : c = t[145], c;
672
+ st,
673
+ at
674
+ ] }), t[143] = q, t[144] = st, t[145] = at, t[146] = c) : c = t[146], c;
669
675
  }
670
- function Me(i) {
676
+ function Ae(i) {
671
677
  return i.layer;
672
678
  }
673
- function Ae(i) {
679
+ function Ve(i) {
674
680
  return i.position === "after";
675
681
  }
676
- function Ve(i) {
682
+ function ze(i) {
677
683
  return i.layer;
678
684
  }
679
- function ze(i) {
685
+ function je(i) {
680
686
  return i.position === "before";
681
687
  }
682
- function je(i) {
688
+ function Ce(i) {
683
689
  return i !== 0;
684
690
  }
685
- function Ce(i) {
691
+ function ke(i) {
686
692
  return i !== 0;
687
693
  }
688
- function Oe(i) {
694
+ function Le(i) {
689
695
  return `${i.id}`;
690
696
  }
691
- function ke(i) {
697
+ function Oe(i) {
692
698
  return i.target;
693
699
  }
694
- function Le(i) {
700
+ function Ne(i) {
695
701
  return !p(i.target);
696
702
  }
697
- function Ne(i) {
703
+ function Te(i) {
698
704
  return i.target;
699
705
  }
700
706
  function $e(i) {
@@ -703,179 +709,180 @@ function $e(i) {
703
709
  function Ie(i) {
704
710
  return i.size;
705
711
  }
706
- function Te(i) {
707
- return !p(i.size);
708
- }
709
712
  function De(i) {
710
- return i.size;
713
+ return !p(i.size);
711
714
  }
712
715
  function Re(i) {
713
- return !p(i.size);
716
+ return i.size;
714
717
  }
715
718
  function Se(i) {
716
- return pi((i.qualitativeRange || []).filter(qe)) || 0;
719
+ return !p(i.size);
717
720
  }
718
721
  function qe(i) {
719
- return !p(i);
722
+ return pi((i.qualitativeRange || []).filter(Fe)) || 0;
720
723
  }
721
724
  function Fe(i) {
722
- return i.target;
725
+ return !p(i);
723
726
  }
724
727
  function Be(i) {
725
- return !p(i.target);
728
+ return i.target;
726
729
  }
727
730
  function Pe(i) {
728
- return i.target;
731
+ return !p(i.target);
729
732
  }
730
733
  function He(i) {
731
- return !p(i.target);
734
+ return i.target;
732
735
  }
733
736
  function Xe(i) {
734
- return i.size;
737
+ return !p(i.target);
735
738
  }
736
739
  function Ye(i) {
737
- return !p(i.size);
740
+ return i.size;
738
741
  }
739
742
  function Ee(i) {
740
- return i.size;
743
+ return !p(i.size);
741
744
  }
742
745
  function Ge(i) {
746
+ return i.size;
747
+ }
748
+ function We(i) {
743
749
  return !p(i.size);
744
750
  }
745
- function Ca(i) {
746
- const t = Ai.c(94), {
751
+ function ka(i) {
752
+ const t = Vi.c(95), {
747
753
  data: a,
748
- graphTitle: pt,
749
- barColor: Gt,
750
- barPadding: $t,
751
- showTicks: gt,
752
- leftMargin: O,
753
- rightMargin: It,
754
- topMargin: Tt,
755
- bottomMargin: Wt,
754
+ graphTitle: yt,
755
+ barColor: Ut,
756
+ barPadding: Rt,
757
+ showTicks: bt,
758
+ leftMargin: C,
759
+ rightMargin: St,
760
+ topMargin: qt,
761
+ bottomMargin: Jt,
756
762
  truncateBy: ii,
757
- showLabels: Ut,
763
+ showLabels: Kt,
758
764
  showValues: ei,
759
- backgroundColor: Dt,
760
- suffix: Jt,
765
+ backgroundColor: Ft,
766
+ suffix: Qt,
761
767
  prefix: ri,
762
- sources: rt,
763
- graphDescription: ct,
764
- height: dt,
768
+ sources: ct,
769
+ graphDescription: ut,
770
+ height: vt,
765
771
  width: d,
766
- footNote: ut,
767
- colorDomain: K,
768
- colorLegendTitle: at,
769
- padding: F,
770
- relativeHeight: Rt,
771
- tooltip: yt,
772
- onSeriesMouseOver: St,
772
+ footNote: mt,
773
+ colorDomain: Z,
774
+ colorLegendTitle: nt,
775
+ padding: B,
776
+ relativeHeight: Bt,
777
+ tooltip: wt,
778
+ onSeriesMouseOver: Pt,
773
779
  refValues: k,
774
780
  showColorScale: A,
775
- graphID: Q,
776
- maxValue: bt,
777
- minValue: h,
781
+ graphID: _,
782
+ maxValue: Mt,
783
+ minValue: f,
778
784
  highlightedDataPoints: l,
779
- onSeriesMouseClick: f,
780
- valueColor: vt,
781
- orientation: qt,
782
- styles: x,
783
- classNames: r,
785
+ onSeriesMouseClick: h,
786
+ valueColor: P,
787
+ orientation: tt,
788
+ styles: g,
789
+ classNames: o,
784
790
  qualitativeRangeColors: u,
785
- targetColor: nt,
786
- filterNA: Z,
791
+ targetColor: lt,
792
+ filterNA: it,
787
793
  targetStyle: L,
788
- measureBarWidthFactor: _,
789
- animate: Ft,
790
- dimmedOpacity: ai,
791
- precision: ni,
792
- customLayers: Kt,
793
- naLabel: li,
794
- graphDownload: N,
795
- dataDownload: B,
796
- language: Bt,
797
- theme: g,
798
- sortData: V,
799
- labelOrder: Qt,
800
- minHeight: P,
801
- maxBarThickness: Zt,
802
- maxNumberOfBars: tt,
803
- minBarThickness: _t,
804
- ariaLabel: Pt,
794
+ measureBarWidthFactor: Zt,
795
+ animate: H,
796
+ dimmedOpacity: Ht,
797
+ precision: ai,
798
+ customLayers: Xt,
799
+ naLabel: ci,
800
+ graphDownload: ni,
801
+ dataDownload: O,
802
+ language: X,
803
+ theme: Yt,
804
+ sortData: x,
805
+ labelOrder: N,
806
+ minHeight: li,
807
+ maxBarThickness: T,
808
+ maxNumberOfBars: ft,
809
+ minBarThickness: At,
810
+ ariaLabel: _t,
805
811
  resetSelectionOnDoubleClick: ti,
806
- detailsOnClick: m,
807
- barAxisTitle: mt,
808
- noOfTicks: it
809
- } = i, wt = Gt === void 0 ? vi.primaryColors["blue-600"] : Gt, Mt = $t === void 0 ? 0.25 : $t, At = gt === void 0 ? !0 : gt, Vt = ii === void 0 ? 999 : ii, zt = Ut === void 0 ? !0 : Ut, jt = ei === void 0 ? !0 : ei, Ct = Dt === void 0 ? !1 : Dt, Ht = Jt === void 0 ? "" : Jt, Ot = ri === void 0 ? "" : ri, kt = A === void 0 ? !0 : A;
812
+ detailsOnClick: Et,
813
+ barAxisTitle: m,
814
+ noOfTicks: Vt,
815
+ targetLineThickness: et
816
+ } = i, zt = Ut === void 0 ? wi.primaryColors["blue-600"] : Ut, jt = Rt === void 0 ? 0.25 : Rt, Ct = bt === void 0 ? !0 : bt, kt = ii === void 0 ? 999 : ii, Lt = Kt === void 0 ? !0 : Kt, Ot = ei === void 0 ? !0 : ei, Nt = Ft === void 0 ? !1 : Ft, Gt = Qt === void 0 ? "" : Qt, Tt = ri === void 0 ? "" : ri, $t = A === void 0 ? !0 : A;
810
817
  let ht;
811
818
  t[0] !== l ? (ht = l === void 0 ? [] : l, t[0] = l, t[1] = ht) : ht = t[1];
812
- const Lt = ht, y = qt === void 0 ? "vertical" : qt, $ = nt === void 0 ? vi.light.grays["gray-700"] : nt, I = Z === void 0 ? !0 : Z, H = L === void 0 ? "line" : L, X = _ === void 0 ? 0.4 : _, T = Ft === void 0 ? !1 : Ft, Y = ai === void 0 ? 0.3 : ai, E = ni === void 0 ? 2 : ni;
813
- let b;
814
- t[2] !== Kt ? (b = Kt === void 0 ? [] : Kt, t[2] = Kt, t[3] = b) : b = t[3];
815
- const z = b, j = li === void 0 ? "NA" : li, D = N === void 0 ? !1 : N, R = B === void 0 ? !1 : B, v = Bt === void 0 ? "en" : Bt, w = g === void 0 ? "light" : g, G = P === void 0 ? 0 : P, W = ti === void 0 ? !0 : ti, U = it === void 0 ? 5 : it, [S, lt] = oi(0), [q, Nt] = oi(0), c = wi(null), Xt = wi(null), ci = y === "horizontal" ? we : Ji;
816
- let o, C;
817
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
818
- const M = new ResizeObserver((et) => {
819
- lt(et[0].target.clientWidth || 620), Nt(et[0].target.clientHeight || 480);
819
+ const It = ht, b = tt === void 0 ? "vertical" : tt, $ = lt === void 0 ? wi.light.grays["gray-700"] : lt, I = it === void 0 ? !0 : it, Y = L === void 0 ? "line" : L, E = Zt === void 0 ? 0.4 : Zt, D = H === void 0 ? !1 : H, G = Ht === void 0 ? 0.3 : Ht, W = ai === void 0 ? 2 : ai;
820
+ let v;
821
+ t[2] !== Xt ? (v = Xt === void 0 ? [] : Xt, t[2] = Xt, t[3] = v) : v = t[3];
822
+ const V = v, z = ci === void 0 ? "NA" : ci, R = ni === void 0 ? !1 : ni, S = O === void 0 ? !1 : O, w = X === void 0 ? "en" : X, M = Yt === void 0 ? "light" : Yt, U = li === void 0 ? 0 : li, J = ti === void 0 ? !0 : ti, K = Vt === void 0 ? 5 : Vt, Q = et === void 0 ? 2 : et, [q, st] = oi(0), [at, c] = oi(0), Dt = Mi(null), fi = Mi(null), r = b === "horizontal" ? Me : Ki;
823
+ let j, F;
824
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (j = () => {
825
+ const y = new ResizeObserver((pt) => {
826
+ st(pt[0].target.clientWidth || 620), c(pt[0].target.clientHeight || 480);
820
827
  });
821
- return c.current && M.observe(c.current), () => M.disconnect();
822
- }, C = [], t[4] = o, t[5] = C) : (o = t[4], C = t[5]), Di(o, C);
823
- const J = r?.graphContainer, mi = x?.graphContainer;
824
- let Yt;
825
- t[6] !== r?.description || t[7] !== r?.title || t[8] !== a || t[9] !== R || t[10] !== ct || t[11] !== D || t[12] !== pt || t[13] !== x?.description || t[14] !== x?.title || t[15] !== d ? (Yt = pt || ct || D || R ? /* @__PURE__ */ n.jsx(Wi, { styles: {
826
- title: x?.title,
827
- description: x?.description
828
+ return Dt.current && y.observe(Dt.current), () => y.disconnect();
829
+ }, F = [], t[4] = j, t[5] = F) : (j = t[4], F = t[5]), Ri(j, F);
830
+ const hi = o?.graphContainer, ui = g?.graphContainer;
831
+ let xt;
832
+ t[6] !== o?.description || t[7] !== o?.title || t[8] !== a || t[9] !== S || t[10] !== ut || t[11] !== R || t[12] !== yt || t[13] !== g?.description || t[14] !== g?.title || t[15] !== d ? (xt = yt || ut || R || S ? /* @__PURE__ */ n.jsx(Ui, { styles: {
833
+ title: g?.title,
834
+ description: g?.description
828
835
  }, classNames: {
829
- title: r?.title,
830
- description: r?.description
831
- }, graphTitle: pt, graphDescription: ct, width: d, graphDownload: D ? Xt : void 0, dataDownload: R ? a.map(Ze).filter(Qe).length > 0 ? a.map(Ke).filter(Je) : a.filter(Ue) : null }) : null, t[6] = r?.description, t[7] = r?.title, t[8] = a, t[9] = R, t[10] = ct, t[11] = D, t[12] = pt, t[13] = x?.description, t[14] = x?.title, t[15] = d, t[16] = Yt) : Yt = t[16];
832
- let ft;
833
- t[17] !== ci || t[18] !== T || t[19] !== mt || t[20] !== wt || t[21] !== Mt || t[22] !== Wt || t[23] !== r || t[24] !== K || t[25] !== at || t[26] !== z || t[27] !== a || t[28] !== m || t[29] !== Y || t[30] !== I || t[31] !== Lt || t[32] !== Qt || t[33] !== v || t[34] !== O || t[35] !== Zt || t[36] !== tt || t[37] !== bt || t[38] !== X || t[39] !== _t || t[40] !== h || t[41] !== j || t[42] !== U || t[43] !== f || t[44] !== St || t[45] !== y || t[46] !== E || t[47] !== Ot || t[48] !== u || t[49] !== k || t[50] !== W || t[51] !== It || t[52] !== kt || t[53] !== zt || t[54] !== At || t[55] !== jt || t[56] !== V || t[57] !== x || t[58] !== Ht || t[59] !== q || t[60] !== S || t[61] !== $ || t[62] !== H || t[63] !== w || t[64] !== yt || t[65] !== Tt || t[66] !== Vt || t[67] !== vt || t[68] !== d ? (ft = a.length === 0 ? /* @__PURE__ */ n.jsx(Xi, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
834
- kt && a.filter(We).length !== 0 && K ? /* @__PURE__ */ n.jsx(Ui, { width: d, colorLegendTitle: at, colors: u || vi[w].sequentialColors.positiveColorsx10, colorDomain: K, showNAColor: !1, className: r?.colorLegend }) : null,
835
- /* @__PURE__ */ n.jsx(Yi, { ref: c, children: S && q ? /* @__PURE__ */ n.jsx(ci, { data: V ? Ri(a.filter((M) => I ? !p(M.size) : M), [(M) => M.size === void 0 ? V === "asc" ? (y === "horizontal" ? 1 : -1) * (1 / 0) : (y === "horizontal" ? -1 : 1) * (1 / 0) : M.size], [V]).filter((M, et) => tt ? et < tt : !0) : a.filter((M) => I ? !p(M.size) : M).filter((M, et) => tt ? et < tt : !0), barColor: wt, targetColor: $, width: S, refValues: k, height: q, suffix: Ht, prefix: Ot, barPadding: Mt, showLabels: zt, showValues: jt, showTicks: At, truncateBy: Vt, leftMargin: O, rightMargin: It, qualitativeRangeColors: u || vi[w].sequentialColors.positiveColorsx10, topMargin: Tt, bottomMargin: Wt, tooltip: yt, onSeriesMouseOver: St, maxValue: bt, minValue: h, highlightedDataPoints: Lt, onSeriesMouseClick: f, labelOrder: Qt, maxBarThickness: Zt, minBarThickness: _t, resetSelectionOnDoubleClick: W, detailsOnClick: m, barAxisTitle: mt, noOfTicks: U, valueColor: vt, styles: x, classNames: r, targetStyle: H, dimmedOpacity: Y, measureBarWidthFactor: X, animate: T === !0 ? {
836
+ title: o?.title,
837
+ description: o?.description
838
+ }, graphTitle: yt, graphDescription: ut, width: d, graphDownload: R ? fi : void 0, dataDownload: S ? a.map(_e).filter(Ze).length > 0 ? a.map(Qe).filter(Ke) : a.filter(Je) : null }) : null, t[6] = o?.description, t[7] = o?.title, t[8] = a, t[9] = S, t[10] = ut, t[11] = R, t[12] = yt, t[13] = g?.description, t[14] = g?.title, t[15] = d, t[16] = xt) : xt = t[16];
839
+ let ot;
840
+ t[17] !== r || t[18] !== D || t[19] !== m || t[20] !== zt || t[21] !== jt || t[22] !== Jt || t[23] !== o || t[24] !== Z || t[25] !== nt || t[26] !== V || t[27] !== a || t[28] !== Et || t[29] !== G || t[30] !== I || t[31] !== It || t[32] !== N || t[33] !== w || t[34] !== C || t[35] !== T || t[36] !== ft || t[37] !== Mt || t[38] !== E || t[39] !== At || t[40] !== f || t[41] !== z || t[42] !== K || t[43] !== h || t[44] !== Pt || t[45] !== b || t[46] !== W || t[47] !== Tt || t[48] !== u || t[49] !== k || t[50] !== J || t[51] !== St || t[52] !== $t || t[53] !== Lt || t[54] !== Ct || t[55] !== Ot || t[56] !== x || t[57] !== g || t[58] !== Gt || t[59] !== at || t[60] !== q || t[61] !== $ || t[62] !== Q || t[63] !== Y || t[64] !== M || t[65] !== wt || t[66] !== qt || t[67] !== kt || t[68] !== P || t[69] !== d ? (ot = a.length === 0 ? /* @__PURE__ */ n.jsx(Yi, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
841
+ $t && a.filter(Ue).length !== 0 && Z ? /* @__PURE__ */ n.jsx(Ji, { width: d, colorLegendTitle: nt, colors: u || wi[M].sequentialColors.positiveColorsx10, colorDomain: Z, showNAColor: !1, className: o?.colorLegend }) : null,
842
+ /* @__PURE__ */ n.jsx(Ei, { ref: Dt, children: q && at ? /* @__PURE__ */ n.jsx(r, { data: x ? Si(a.filter((y) => I ? !p(y.size) : y), [(y) => y.size === void 0 ? x === "asc" ? (b === "horizontal" ? 1 : -1) * (1 / 0) : (b === "horizontal" ? -1 : 1) * (1 / 0) : y.size], [x]).filter((y, pt) => ft ? pt < ft : !0) : a.filter((y) => I ? !p(y.size) : y).filter((y, pt) => ft ? pt < ft : !0), barColor: zt, targetColor: $, width: q, refValues: k, height: at, suffix: Gt, prefix: Tt, barPadding: jt, showLabels: Lt, showValues: Ot, showTicks: Ct, truncateBy: kt, leftMargin: C, rightMargin: St, qualitativeRangeColors: u || wi[M].sequentialColors.positiveColorsx10, topMargin: qt, bottomMargin: Jt, tooltip: wt, onSeriesMouseOver: Pt, maxValue: Mt, minValue: f, highlightedDataPoints: It, onSeriesMouseClick: h, labelOrder: N, maxBarThickness: T, minBarThickness: At, resetSelectionOnDoubleClick: J, detailsOnClick: Et, barAxisTitle: m, noOfTicks: K, valueColor: P, styles: g, classNames: o, targetStyle: Y, dimmedOpacity: G, measureBarWidthFactor: E, animate: D === !0 ? {
836
843
  duration: 0.5,
837
844
  once: !0,
838
845
  amount: 0.5
839
- } : T || {
846
+ } : D || {
840
847
  duration: 0,
841
848
  once: !0,
842
849
  amount: 0
843
- }, precision: E, customLayers: z, naLabel: j, rtl: v === "ar" || v === "he" }) : null })
844
- ] }), t[17] = ci, t[18] = T, t[19] = mt, t[20] = wt, t[21] = Mt, t[22] = Wt, t[23] = r, t[24] = K, t[25] = at, t[26] = z, t[27] = a, t[28] = m, t[29] = Y, t[30] = I, t[31] = Lt, t[32] = Qt, t[33] = v, t[34] = O, t[35] = Zt, t[36] = tt, t[37] = bt, t[38] = X, t[39] = _t, t[40] = h, t[41] = j, t[42] = U, t[43] = f, t[44] = St, t[45] = y, t[46] = E, t[47] = Ot, t[48] = u, t[49] = k, t[50] = W, t[51] = It, t[52] = kt, t[53] = zt, t[54] = At, t[55] = jt, t[56] = V, t[57] = x, t[58] = Ht, t[59] = q, t[60] = S, t[61] = $, t[62] = H, t[63] = w, t[64] = yt, t[65] = Tt, t[66] = Vt, t[67] = vt, t[68] = d, t[69] = ft) : ft = t[69];
845
- let st;
846
- t[70] !== r?.footnote || t[71] !== r?.source || t[72] !== ut || t[73] !== rt || t[74] !== x?.footnote || t[75] !== x?.source || t[76] !== d ? (st = rt || ut ? /* @__PURE__ */ n.jsx(Gi, { styles: {
847
- footnote: x?.footnote,
848
- source: x?.source
850
+ }, precision: W, customLayers: V, naLabel: z, targetLineThickness: Q, rtl: w === "ar" || w === "he" }) : null })
851
+ ] }), t[17] = r, t[18] = D, t[19] = m, t[20] = zt, t[21] = jt, t[22] = Jt, t[23] = o, t[24] = Z, t[25] = nt, t[26] = V, t[27] = a, t[28] = Et, t[29] = G, t[30] = I, t[31] = It, t[32] = N, t[33] = w, t[34] = C, t[35] = T, t[36] = ft, t[37] = Mt, t[38] = E, t[39] = At, t[40] = f, t[41] = z, t[42] = K, t[43] = h, t[44] = Pt, t[45] = b, t[46] = W, t[47] = Tt, t[48] = u, t[49] = k, t[50] = J, t[51] = St, t[52] = $t, t[53] = Lt, t[54] = Ct, t[55] = Ot, t[56] = x, t[57] = g, t[58] = Gt, t[59] = at, t[60] = q, t[61] = $, t[62] = Q, t[63] = Y, t[64] = M, t[65] = wt, t[66] = qt, t[67] = kt, t[68] = P, t[69] = d, t[70] = ot) : ot = t[70];
852
+ let gt;
853
+ t[71] !== o?.footnote || t[72] !== o?.source || t[73] !== mt || t[74] !== ct || t[75] !== g?.footnote || t[76] !== g?.source || t[77] !== d ? (gt = ct || mt ? /* @__PURE__ */ n.jsx(Wi, { styles: {
854
+ footnote: g?.footnote,
855
+ source: g?.source
849
856
  }, classNames: {
850
- footnote: r?.footnote,
851
- source: r?.source
852
- }, sources: rt, footNote: ut, width: d }) : null, t[70] = r?.footnote, t[71] = r?.source, t[72] = ut, t[73] = rt, t[74] = x?.footnote, t[75] = x?.source, t[76] = d, t[77] = st) : st = t[77];
853
- let Et;
854
- return t[78] !== Pt || t[79] !== Ct || t[80] !== Q || t[81] !== dt || t[82] !== v || t[83] !== G || t[84] !== F || t[85] !== Rt || t[86] !== J || t[87] !== mi || t[88] !== Yt || t[89] !== ft || t[90] !== st || t[91] !== w || t[92] !== d ? (Et = /* @__PURE__ */ n.jsxs(Ei, { className: J, style: mi, id: Q, ref: Xt, "aria-label": Pt, backgroundColor: Ct, theme: w, language: v, minHeight: G, width: d, height: dt, relativeHeight: Rt, padding: F, children: [
855
- Yt,
856
- ft,
857
- st
858
- ] }), t[78] = Pt, t[79] = Ct, t[80] = Q, t[81] = dt, t[82] = v, t[83] = G, t[84] = F, t[85] = Rt, t[86] = J, t[87] = mi, t[88] = Yt, t[89] = ft, t[90] = st, t[91] = w, t[92] = d, t[93] = Et) : Et = t[93], Et;
859
- }
860
- function We(i) {
861
- return i.qualitativeRange;
857
+ footnote: o?.footnote,
858
+ source: o?.source
859
+ }, sources: ct, footNote: mt, width: d }) : null, t[71] = o?.footnote, t[72] = o?.source, t[73] = mt, t[74] = ct, t[75] = g?.footnote, t[76] = g?.source, t[77] = d, t[78] = gt) : gt = t[78];
860
+ let Wt;
861
+ return t[79] !== _t || t[80] !== Nt || t[81] !== _ || t[82] !== vt || t[83] !== w || t[84] !== U || t[85] !== B || t[86] !== Bt || t[87] !== hi || t[88] !== ui || t[89] !== xt || t[90] !== ot || t[91] !== gt || t[92] !== M || t[93] !== d ? (Wt = /* @__PURE__ */ n.jsxs(Gi, { className: hi, style: ui, id: _, ref: fi, "aria-label": _t, backgroundColor: Nt, theme: M, language: w, minHeight: U, width: d, height: vt, relativeHeight: Bt, padding: B, children: [
862
+ xt,
863
+ ot,
864
+ gt
865
+ ] }), t[79] = _t, t[80] = Nt, t[81] = _, t[82] = vt, t[83] = w, t[84] = U, t[85] = B, t[86] = Bt, t[87] = hi, t[88] = ui, t[89] = xt, t[90] = ot, t[91] = gt, t[92] = M, t[93] = d, t[94] = Wt) : Wt = t[94], Wt;
862
866
  }
863
867
  function Ue(i) {
864
- return i !== void 0;
868
+ return i.qualitativeRange;
865
869
  }
866
870
  function Je(i) {
867
871
  return i !== void 0;
868
872
  }
869
873
  function Ke(i) {
870
- return i.data;
874
+ return i !== void 0;
871
875
  }
872
876
  function Qe(i) {
873
- return i !== void 0;
877
+ return i.data;
874
878
  }
875
879
  function Ze(i) {
880
+ return i !== void 0;
881
+ }
882
+ function _e(i) {
876
883
  return i.data;
877
884
  }
878
885
  export {
879
- Ca as BulletChart
886
+ ka as BulletChart
880
887
  };
881
888
  //# sourceMappingURL=BulletChart.js.map