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