@undp/data-viz 2.3.19 → 2.4.0

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