@undp/data-viz 2.0.8 → 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 (215) 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.cjs +1 -1
  39. package/dist/DataCards.d.ts +2 -0
  40. package/dist/DataCards.js +2 -2
  41. package/dist/DataTable.d.ts +2 -0
  42. package/dist/DetailsModal-0Ry5nXiC.js +32 -0
  43. package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
  44. package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
  45. package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
  46. package/dist/DifferenceLineChart.cjs +1 -1
  47. package/dist/DifferenceLineChart.d.ts +2 -0
  48. package/dist/DifferenceLineChart.js +1 -1
  49. package/dist/DonutChart.cjs +1 -1
  50. package/dist/DonutChart.cjs.map +1 -1
  51. package/dist/DonutChart.d.ts +2 -0
  52. package/dist/DonutChart.js +185 -190
  53. package/dist/DonutChart.js.map +1 -1
  54. package/dist/DotDensityMap.cjs +1 -1
  55. package/dist/DotDensityMap.cjs.map +1 -1
  56. package/dist/DotDensityMap.d.ts +2 -0
  57. package/dist/DotDensityMap.js +198 -203
  58. package/dist/DotDensityMap.js.map +1 -1
  59. package/dist/DualAxisLineChart.cjs +1 -1
  60. package/dist/DualAxisLineChart.d.ts +2 -0
  61. package/dist/DualAxisLineChart.js +1 -1
  62. package/dist/DumbbellChart.cjs +1 -1
  63. package/dist/DumbbellChart.cjs.map +1 -1
  64. package/dist/DumbbellChart.d.ts +2 -0
  65. package/dist/DumbbellChart.js +364 -373
  66. package/dist/DumbbellChart.js.map +1 -1
  67. package/dist/GeoHubCompareMaps.d.ts +2 -0
  68. package/dist/GeoHubMap.d.ts +2 -0
  69. package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
  70. package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
  71. package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
  72. package/dist/{GraphEl-CGq1EWRn.js → GraphEl-ebgfxefq.js} +3 -3
  73. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.js.map} +1 -1
  74. package/dist/GriddedGraphs.cjs +1 -1
  75. package/dist/GriddedGraphs.cjs.map +1 -1
  76. package/dist/GriddedGraphs.d.ts +3 -0
  77. package/dist/GriddedGraphs.js +158 -146
  78. package/dist/GriddedGraphs.js.map +1 -1
  79. package/dist/GriddedGraphsFromConfig.d.ts +3 -0
  80. package/dist/HeatMap.cjs +1 -1
  81. package/dist/HeatMap.cjs.map +1 -1
  82. package/dist/HeatMap.d.ts +2 -0
  83. package/dist/HeatMap.js +111 -116
  84. package/dist/HeatMap.js.map +1 -1
  85. package/dist/Histogram.cjs +1 -1
  86. package/dist/Histogram.d.ts +2 -0
  87. package/dist/Histogram.js +1 -1
  88. package/dist/HybridMap.cjs +1 -1
  89. package/dist/HybridMap.cjs.map +1 -1
  90. package/dist/HybridMap.d.ts +2 -0
  91. package/dist/HybridMap.js +202 -207
  92. package/dist/HybridMap.js.map +1 -1
  93. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  94. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  95. package/dist/LineChartWithConfidenceInterval.js +1 -1
  96. package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
  97. package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
  98. package/dist/MultiGraphDashboard.cjs +1 -1
  99. package/dist/MultiGraphDashboard.cjs.map +1 -1
  100. package/dist/MultiGraphDashboard.d.ts +3 -0
  101. package/dist/MultiGraphDashboard.js +90 -85
  102. package/dist/MultiGraphDashboard.js.map +1 -1
  103. package/dist/MultiGraphDashboardFromConfig.d.ts +3 -0
  104. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
  105. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  106. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
  107. package/dist/MultiLineAltChart.cjs +1 -1
  108. package/dist/MultiLineAltChart.d.ts +2 -0
  109. package/dist/MultiLineAltChart.js +1 -1
  110. package/dist/MultiLineChart.cjs +1 -1
  111. package/dist/MultiLineChart.d.ts +2 -0
  112. package/dist/MultiLineChart.js +1 -1
  113. package/dist/ParetoChart.cjs +1 -1
  114. package/dist/ParetoChart.cjs.map +1 -1
  115. package/dist/ParetoChart.d.ts +2 -0
  116. package/dist/ParetoChart.js +187 -192
  117. package/dist/ParetoChart.js.map +1 -1
  118. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +3 -0
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.js +76 -72
  122. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  123. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +3 -0
  124. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  125. package/dist/RadarChart.cjs +1 -1
  126. package/dist/RadarChart.cjs.map +1 -1
  127. package/dist/RadarChart.d.ts +2 -0
  128. package/dist/RadarChart.js +158 -163
  129. package/dist/RadarChart.js.map +1 -1
  130. package/dist/SankeyChart.cjs +1 -1
  131. package/dist/SankeyChart.cjs.map +1 -1
  132. package/dist/SankeyChart.d.ts +2 -0
  133. package/dist/SankeyChart.js +172 -177
  134. package/dist/SankeyChart.js.map +1 -1
  135. package/dist/ScatterPlot.cjs +1 -1
  136. package/dist/ScatterPlot.cjs.map +1 -1
  137. package/dist/ScatterPlot.d.ts +2 -0
  138. package/dist/ScatterPlot.js +222 -227
  139. package/dist/ScatterPlot.js.map +1 -1
  140. package/dist/ScrollStory.d.ts +2 -0
  141. package/dist/SimpleLineChart.cjs +1 -1
  142. package/dist/SimpleLineChart.d.ts +2 -0
  143. package/dist/SimpleLineChart.js +1 -1
  144. package/dist/SingleGraphDashboard.cjs +1 -1
  145. package/dist/SingleGraphDashboard.cjs.map +1 -1
  146. package/dist/SingleGraphDashboard.d.ts +3 -0
  147. package/dist/SingleGraphDashboard.js +131 -128
  148. package/dist/SingleGraphDashboard.js.map +1 -1
  149. package/dist/SingleGraphDashboardFromConfig.d.ts +3 -0
  150. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  151. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  152. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  153. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  154. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +3 -0
  155. package/dist/SingleGraphDashboardThreeDGraphs.js +145 -141
  156. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  157. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +3 -0
  158. package/dist/SlopeChart.cjs +1 -1
  159. package/dist/SlopeChart.cjs.map +1 -1
  160. package/dist/SlopeChart.d.ts +2 -0
  161. package/dist/SlopeChart.js +182 -187
  162. package/dist/SlopeChart.js.map +1 -1
  163. package/dist/SparkLine.cjs +1 -1
  164. package/dist/SparkLine.d.ts +2 -0
  165. package/dist/SparkLine.js +1 -1
  166. package/dist/StatCardFromData.d.ts +2 -0
  167. package/dist/StripChart.cjs +1 -1
  168. package/dist/StripChart.cjs.map +1 -1
  169. package/dist/StripChart.d.ts +2 -0
  170. package/dist/StripChart.js +249 -258
  171. package/dist/StripChart.js.map +1 -1
  172. package/dist/ThreeDGlobe.cjs +1 -1
  173. package/dist/ThreeDGlobe.cjs.map +1 -1
  174. package/dist/ThreeDGlobe.d.ts +2 -0
  175. package/dist/ThreeDGlobe.js +142 -147
  176. package/dist/ThreeDGlobe.js.map +1 -1
  177. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  178. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  179. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  180. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  181. package/dist/TreeMapGraph.cjs +1 -1
  182. package/dist/TreeMapGraph.cjs.map +1 -1
  183. package/dist/TreeMapGraph.d.ts +2 -0
  184. package/dist/TreeMapGraph.js +159 -164
  185. package/dist/TreeMapGraph.js.map +1 -1
  186. package/dist/Types.d.ts +3 -0
  187. package/dist/UnitChart.d.ts +2 -0
  188. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  189. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  190. package/dist/getUniqValue-DsqSii6M.js +11 -0
  191. package/dist/getUniqValue-DsqSii6M.js.map +1 -0
  192. package/dist/getUniqValue-NX8DgwND.cjs +2 -0
  193. package/dist/getUniqValue-NX8DgwND.cjs.map +1 -0
  194. package/dist/index-BBV4tAeA.js +330 -0
  195. package/dist/index-BBV4tAeA.js.map +1 -0
  196. package/dist/index-CF5hnGvG.cjs +2 -0
  197. package/dist/index-CF5hnGvG.cjs.map +1 -0
  198. package/dist/index.cjs +1 -1
  199. package/dist/index.d.ts +3 -0
  200. package/dist/index.js +2 -2
  201. package/dist/utils.cjs +1 -1
  202. package/dist/utils.js +1 -1
  203. package/package.json +1 -1
  204. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  205. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  206. package/dist/Tooltip-CwWUegPB.js +0 -43
  207. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  208. package/dist/getUniqValue-BKHCm3zE.js +0 -11
  209. package/dist/getUniqValue-BKHCm3zE.js.map +0 -1
  210. package/dist/getUniqValue-RViz8tTw.cjs +0 -2
  211. package/dist/getUniqValue-RViz8tTw.cjs.map +0 -1
  212. package/dist/index-B2LQV7Tk.js +0 -335
  213. package/dist/index-B2LQV7Tk.js.map +0 -1
  214. package/dist/index-xRHRLDIp.cjs +0 -2
  215. package/dist/index-xRHRLDIp.cjs.map +0 -1
package/dist/BarGraph.js CHANGED
@@ -1,110 +1,109 @@
1
1
  import { c as xe, j as i, m as pe } from "./index-CHPV5EwG-Curnpaqc.js";
2
2
  import { useRef as de, useState as Wt, useEffect as we } from "react";
3
- import { g as Ie, N as Se } from "./getSliderMarks-HIDJ0_Cd.js";
4
- import { p as Be, f as ye } from "./parse-DlCRUFh_.js";
3
+ import { g as Te, N as Ie } from "./getSliderMarks-HIDJ0_Cd.js";
4
+ import { p as Se, f as ye } from "./parse-DlCRUFh_.js";
5
5
  import { o as ze } from "./index-BZQYSqar.js";
6
- import { s as ne } from "./index-CeVNqhMO.js";
6
+ import { s as oe } from "./index-CeVNqhMO.js";
7
7
  import { i as Ae } from "./index-Bwrro8-q.js";
8
- import { l as $e } from "./Modal-DGcuAHyK.js";
9
8
  import { n as ue } from "./numberFormattingFunction-14YCbkN2.js";
10
- import { T as Oe } from "./Tooltip-CwWUegPB.js";
9
+ import { T as $e } from "./Tooltip-Dj5eVppQ.js";
11
10
  import { c as _t } from "./checkIfNullOrUndefined-DmfiKkNw.js";
12
- import { s as Me } from "./string2HTML-DhG75NqA.js";
13
- import { Y as Pe } from "./YAxesLabels-a57ZRv-0.js";
14
- import { A as ke } from "./Axis-CRyfcLjc.js";
15
- import { A as Ce } from "./AxisTitle-jeI7am8o.js";
16
- import { X as Fe } from "./XTicksAndGridLines-CObVFSm4.js";
17
- import { R as He, a as Xe } from "./ReferenceLine-2XCwHXQ4.js";
18
- import { Y as Ye } from "./YTicksAndGridLines-Blepl7XF.js";
19
- import { X as Ee } from "./XAxesLabels-Dy8E1SEo.js";
20
- import { u as Ve } from "./use-in-view-Cxa7y1TH.js";
21
- import { a as Le } from "./linear-BwnDd9KF.js";
11
+ import { Y as Be } from "./YAxesLabels-a57ZRv-0.js";
12
+ import { A as Oe } from "./Axis-CRyfcLjc.js";
13
+ import { A as ke } from "./AxisTitle-jeI7am8o.js";
14
+ import { X as Pe } from "./XTicksAndGridLines-CObVFSm4.js";
15
+ import { R as Fe, a as He } from "./ReferenceLine-2XCwHXQ4.js";
16
+ import { Y as Xe } from "./YTicksAndGridLines-Blepl7XF.js";
17
+ import { X as Ye } from "./XAxesLabels-Dy8E1SEo.js";
18
+ import { D as Me } from "./DetailsModal-0Ry5nXiC.js";
19
+ import { u as Ce } from "./use-in-view-Cxa7y1TH.js";
20
+ import { a as Ve } from "./linear-BwnDd9KF.js";
22
21
  import { b as ge } from "./band-CyHaVft5.js";
23
- import { A as je } from "./index-BqfRwk1n.js";
22
+ import { A as De } from "./index-BqfRwk1n.js";
24
23
  import { m as Zt } from "./proxy-BxkFHwUw.js";
25
- import { GraphHeader as Ge } from "./GraphHeader.js";
26
- import { GraphFooter as We } from "./GraphFooter.js";
27
- import { ColorLegendWithMouseOver as Re } from "./ColorLegendWithMouseOver.js";
24
+ import { GraphHeader as Ee } from "./GraphHeader.js";
25
+ import { GraphFooter as Ge } from "./GraphFooter.js";
26
+ import { ColorLegendWithMouseOver as We } from "./ColorLegendWithMouseOver.js";
28
27
  import { Colors as ce } from "./Colors.js";
29
- import { E as qe } from "./EmptyState-BZo1BbAn.js";
30
- import { P as Ue, e as Je } from "./index-D491FEn1.js";
31
- import { c as ve, d as ti } from "./ensureCompleteData-DNKEGRiP.js";
32
- import { u as De } from "./uniqBy-BHy4I8PK.js";
33
- import { a as Ke, G as Qe } from "./GraphContainer-CRqzdKu2.js";
34
- import { s as Ze } from "./sort-BIvMlUH1.js";
35
- import { a as _e } from "./init-BJFW6EwE.js";
36
- import { g as Te } from "./getTextColorBasedOnBgColor-CDY808zi.js";
37
- function ei(e) {
38
- const t = xe.c(122), {
28
+ import { E as Re } from "./EmptyState-BZo1BbAn.js";
29
+ import { P as qe, e as Ue } from "./index-D491FEn1.js";
30
+ import { c as ve, d as _e } from "./ensureCompleteData-DNKEGRiP.js";
31
+ import { u as Le } from "./uniqBy-BHy4I8PK.js";
32
+ import { a as Je, G as Ke } from "./GraphContainer-CRqzdKu2.js";
33
+ import { s as Qe } from "./sort-BIvMlUH1.js";
34
+ import { a as Ze } from "./init-BJFW6EwE.js";
35
+ import { g as Ne } from "./getTextColorBasedOnBgColor-CDY808zi.js";
36
+ function ti(e) {
37
+ const t = xe.c(123), {
39
38
  data: m,
40
39
  leftMargin: D,
41
40
  rightMargin: Xt,
42
41
  topMargin: St,
43
42
  bottomMargin: gt,
44
- barColors: tt,
45
- barPadding: ut,
46
- showTicks: C,
47
- truncateBy: T,
43
+ barColors: _,
44
+ barPadding: ct,
45
+ showTicks: M,
46
+ truncateBy: j,
48
47
  width: y,
49
- height: P,
50
- suffix: Dt,
51
- prefix: rt,
52
- showValues: zt,
53
- showLabels: F,
54
- tooltip: et,
55
- onSeriesMouseOver: dt,
56
- refValues: xt,
48
+ height: I,
49
+ suffix: zt,
50
+ prefix: nt,
51
+ showValues: jt,
52
+ showLabels: S,
53
+ tooltip: tt,
54
+ onSeriesMouseOver: ut,
55
+ refValues: dt,
57
56
  maxValue: Tt,
58
57
  minValue: w,
59
- onSeriesMouseClick: it,
60
- selectedColor: W,
61
- rtl: Y,
62
- labelOrder: K,
63
- maxBarThickness: R,
64
- resetSelectionOnDoubleClick: H,
65
- detailsOnClick: O,
66
- barAxisTitle: q,
67
- valueColor: I,
68
- noOfTicks: a,
58
+ onSeriesMouseClick: et,
59
+ selectedColor: G,
60
+ rtl: F,
61
+ labelOrder: J,
62
+ maxBarThickness: W,
63
+ resetSelectionOnDoubleClick: xt,
64
+ detailsOnClick: B,
65
+ barAxisTitle: R,
66
+ valueColor: H,
67
+ noOfTicks: u,
69
68
  styles: s,
70
- classNames: n,
71
- animate: u,
72
- colorDomain: d,
73
- precision: f,
69
+ classNames: o,
70
+ animate: d,
71
+ colorDomain: r,
72
+ precision: h,
74
73
  customLayers: x,
75
- naLabel: $
76
- } = e, Q = D === void 0 ? 100 : D, U = Xt === void 0 ? 40 : Xt, ct = St === void 0 ? 25 : St, Ft = gt === void 0 ? 10 : gt, Yt = de(null);
77
- let E;
78
- t[0] !== u.amount || t[1] !== u.once ? (E = {
79
- once: u.once,
80
- amount: u.amount
81
- }, t[0] = u.amount, t[1] = u.once, t[2] = E) : E = t[2];
82
- const yt = Ve(Yt, E), Bt = q ? ct + 25 : ct;
83
- let r;
84
- t[3] !== Ft || t[4] !== Q || t[5] !== U || t[6] !== Bt ? (r = {
74
+ naLabel: A
75
+ } = e, K = D === void 0 ? 100 : D, q = Xt === void 0 ? 40 : Xt, rt = St === void 0 ? 25 : St, Ft = gt === void 0 ? 10 : gt, Yt = de(null);
76
+ let X;
77
+ t[0] !== d.amount || t[1] !== d.once ? (X = {
78
+ once: d.once,
79
+ amount: d.amount
80
+ }, t[0] = d.amount, t[1] = d.once, t[2] = X) : X = t[2];
81
+ const yt = Ce(Yt, X), Bt = R ? rt + 25 : rt;
82
+ let n;
83
+ t[3] !== Ft || t[4] !== K || t[5] !== q || t[6] !== Bt ? (n = {
85
84
  top: Bt,
86
85
  bottom: Ft,
87
- left: Q,
88
- right: U
89
- }, t[3] = Ft, t[4] = Q, t[5] = U, t[6] = Bt, t[7] = r) : r = t[7];
90
- const c = r, [B, h] = Wt(void 0), [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), mt = y - c.left - c.right, L = P - c.top - c.bottom;
91
- let g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft, pt;
92
- if (t[8] !== u || t[9] !== q || t[10] !== tt || t[11] !== ut || t[12] !== n?.graphObjectValues || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.axis || t[17] !== n?.yAxis?.labels || t[18] !== d || t[19] !== x || t[20] !== m || t[21] !== O || t[22] !== L || t[23] !== mt || t[24] !== P || t[25] !== yt || t[26] !== K || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== R || t[31] !== Tt || t[32] !== w || t[33] !== V || t[34] !== $ || t[35] !== a || t[36] !== it || t[37] !== dt || t[38] !== f || t[39] !== rt || t[40] !== xt || t[41] !== H || t[42] !== Y || t[43] !== W || t[44] !== F || t[45] !== C || t[46] !== zt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== Dt || t[54] !== ct || t[55] !== T || t[56] !== I || t[57] !== y) {
93
- let at;
94
- t[72] !== K ? (at = (v, k) => ({
86
+ left: K,
87
+ right: q
88
+ }, t[3] = Ft, t[4] = K, t[5] = q, t[6] = Bt, t[7] = n) : n = t[7];
89
+ const c = n, [T, f] = Wt(void 0), [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), mt = y - c.left - c.right, C = I - c.top - c.bottom;
90
+ let g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft, pt;
91
+ if (t[8] !== d || t[9] !== R || t[10] !== _ || t[11] !== ct || t[12] !== o?.graphObjectValues || t[13] !== o?.xAxis?.gridLines || t[14] !== o?.xAxis?.labels || t[15] !== o?.xAxis?.title || t[16] !== o?.yAxis?.axis || t[17] !== o?.yAxis?.labels || t[18] !== r || t[19] !== x || t[20] !== m || t[21] !== B || t[22] !== C || t[23] !== mt || t[24] !== I || t[25] !== yt || t[26] !== J || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== W || t[31] !== Tt || t[32] !== w || t[33] !== Y || t[34] !== A || t[35] !== u || t[36] !== et || t[37] !== ut || t[38] !== h || t[39] !== nt || t[40] !== dt || t[41] !== xt || t[42] !== F || t[43] !== G || t[44] !== S || t[45] !== M || t[46] !== jt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== zt || t[54] !== rt || t[55] !== j || t[56] !== H || t[57] !== y) {
92
+ let lt;
93
+ t[72] !== J ? (lt = (v, k) => ({
95
94
  ...v,
96
- id: K ? `${v.label}` : `${k}`
97
- }), t[72] = K, t[73] = at) : at = t[73];
98
- const It = m.map(at), Et = K || It.map(ci), M = Le().domain([w, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, R ? Math.min(L, R * Et.length) : L]).paddingInner(ut), Nt = ge().domain(m[0].size.map(ri)).range([0, qt.bandwidth()]).paddingInner(0.1), Kt = M.ticks(a);
99
- Z = Zt.svg, kt = Yt, ot = `${y}px`, Ct = `${P}px`, G = `0 0 ${y} ${P}`, nt = "ltr", _ = `translate(${c.left},${c.top})`, J = C ? /* @__PURE__ */ i.jsx(Fe, { values: Kt.filter(ai), x: Kt.filter(li).map((v) => M(v)), y1: 0 - ct, y2: L + c.bottom, styles: {
95
+ id: J ? `${v.label}` : `${k}`
96
+ }), t[72] = J, t[73] = lt) : lt = t[73];
97
+ const It = m.map(lt), Et = J || It.map(ri), O = Ve().domain([w, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, W ? Math.min(C, W * Et.length) : C]).paddingInner(ct), Nt = ge().domain(m[0].size.map(ni)).range([0, qt.bandwidth()]).paddingInner(0.1), Kt = O.ticks(u);
98
+ Q = Zt.svg, Mt = Yt, st = `${y}px`, Ct = `${I}px`, E = `0 0 ${y} ${I}`, at = "ltr", Z = `translate(${c.left},${c.top})`, U = M ? /* @__PURE__ */ i.jsx(Pe, { values: Kt.filter(li), x: Kt.filter(oi).map((v) => O(v)), y1: 0 - rt, y2: C + c.bottom, styles: {
100
99
  gridLines: s?.xAxis?.gridLines,
101
100
  labels: s?.xAxis?.labels
102
101
  }, classNames: {
103
- gridLines: n?.xAxis?.gridLines,
104
- labels: n?.xAxis?.labels
105
- }, suffix: Dt, prefix: rt, labelType: "secondary", showGridLines: !0, precision: f }) : null;
106
- const jt = mt / 2, Qt = 0 - c.top + 15, Ut = s?.xAxis?.title, Ht = n?.xAxis?.title;
107
- t[74] !== q || t[75] !== jt || t[76] !== Qt || t[77] !== Ut || t[78] !== Ht ? (j = /* @__PURE__ */ i.jsx(Ce, { x: jt, y: Qt, style: Ut, className: Ht, text: q }), t[74] = q, t[75] = jt, t[76] = Qt, t[77] = Ut, t[78] = Ht, t[79] = j) : j = t[79], t[80] !== x ? (ht = x.filter(ni).map(oi), t[80] = x, t[81] = ht) : ht = t[81], g = je, X = It.map((v) => _t(qt(v.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
102
+ gridLines: o?.xAxis?.gridLines,
103
+ labels: o?.xAxis?.labels
104
+ }, suffix: zt, prefix: nt, labelType: "secondary", showGridLines: !0, precision: h }) : null;
105
+ const Lt = mt / 2, Qt = 0 - c.top + 15, Ut = s?.xAxis?.title, Ht = o?.xAxis?.title;
106
+ t[74] !== R || t[75] !== Lt || t[76] !== Qt || t[77] !== Ut || t[78] !== Ht ? (V = /* @__PURE__ */ i.jsx(ke, { x: Lt, y: Qt, style: Ut, className: Ht, text: R }), t[74] = R, t[75] = Lt, t[76] = Qt, t[77] = Ut, t[78] = Ht, t[79] = V) : V = t[79], t[80] !== x ? (ht = x.filter(ai).map(si), t[80] = x, t[81] = ht) : ht = t[81], g = De, P = It.map((v) => _t(qt(v.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
108
107
  initial: {
109
108
  x: 0,
110
109
  y: qt(`${v.id}`)
@@ -113,290 +112,286 @@ function ei(e) {
113
112
  x: 0,
114
113
  y: qt(`${v.id}`),
115
114
  transition: {
116
- duration: u.duration
115
+ duration: d.duration
117
116
  }
118
117
  }
119
118
  }, initial: "initial", animate: yt ? "whileInView" : "initial", exit: {
120
119
  opacity: 0,
121
120
  transition: {
122
- duration: u.duration
121
+ duration: d.duration
123
122
  }
124
123
  }, children: [
125
- v.size.map((k, o) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: W ? tt[o] === W ? 1 : 0.3 : 0.85, onMouseEnter: (p) => {
126
- h({
124
+ v.size.map((k, a) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: G ? _[a] === G ? 1 : 0.3 : 0.85, onMouseEnter: (p) => {
125
+ f({
127
126
  ...v,
128
- sizeIndex: o
129
- }), st(p.clientY), Lt(p.clientX), dt?.({
127
+ sizeIndex: a
128
+ }), it(p.clientY), Dt(p.clientX), ut?.({
130
129
  ...v,
131
- sizeIndex: o
130
+ sizeIndex: a
132
131
  });
133
132
  }, onMouseMove: (p) => {
134
- h({
133
+ f({
135
134
  ...v,
136
- sizeIndex: o
137
- }), st(p.clientY), Lt(p.clientX);
135
+ sizeIndex: a
136
+ }), it(p.clientY), Dt(p.clientX);
138
137
  }, onMouseLeave: () => {
139
- h(void 0), Lt(void 0), st(void 0), dt?.(void 0);
138
+ f(void 0), Dt(void 0), it(void 0), ut?.(void 0);
140
139
  }, onClick: () => {
141
- (it || O) && (Ae(V, {
140
+ (et || B) && (Ae(Y, {
142
141
  ...v,
143
- sizeIndex: o
144
- }) && H ? (S(void 0), it?.(void 0)) : (S({
142
+ sizeIndex: a
143
+ }) && xt ? (N(void 0), et?.(void 0)) : (N({
145
144
  ...v,
146
- sizeIndex: o
147
- }), it && it({
145
+ sizeIndex: a
146
+ }), et && et({
148
147
  ...v,
149
- sizeIndex: o
148
+ sizeIndex: a
150
149
  })));
151
150
  }, children: [
152
- _t(k) ? null : /* @__PURE__ */ i.jsx(Zt.rect, { y: Nt(`${o}`), variants: {
151
+ _t(k) ? null : /* @__PURE__ */ i.jsx(Zt.rect, { y: Nt(`${a}`), variants: {
153
152
  initial: {
154
153
  width: 0,
155
- x: M(0),
156
- fill: tt[o]
154
+ x: O(0),
155
+ fill: _[a]
157
156
  },
158
157
  whileInView: {
159
- width: _t(k) ? 0 : k >= 0 ? M(k) - M(0) : M(0) - M(k),
160
- x: k >= 0 ? M(0) : M(k),
161
- fill: tt[o],
158
+ width: _t(k) ? 0 : k >= 0 ? O(k) - O(0) : O(0) - O(k),
159
+ x: k >= 0 ? O(0) : O(k),
160
+ fill: _[a],
162
161
  transition: {
163
- duration: u.duration
162
+ duration: d.duration
164
163
  }
165
164
  }
166
165
  }, exit: {
167
166
  width: 0,
168
- x: M(0),
167
+ x: O(0),
169
168
  transition: {
170
- duration: u.duration
169
+ duration: d.duration
171
170
  }
172
171
  }, height: Nt.bandwidth(), initial: "initial", animate: yt ? "whileInView" : "initial" }),
173
- zt ? /* @__PURE__ */ i.jsx(Zt.text, { y: Nt(`${o}`) + Nt.bandwidth() / 2, style: {
172
+ jt ? /* @__PURE__ */ i.jsx(Zt.text, { y: Nt(`${a}`) + Nt.bandwidth() / 2, style: {
174
173
  textAnchor: k && k < 0 ? "end" : "start",
175
174
  ...s?.graphObjectValues || {}
176
- }, className: pe("graph-value text-sm", n?.graphObjectValues), dx: k && k < 0 ? -5 : 5, dy: "0.33em", variants: {
175
+ }, className: pe("graph-value text-sm", o?.graphObjectValues), dx: k && k < 0 ? -5 : 5, dy: "0.33em", variants: {
177
176
  initial: {
178
- x: M(0),
177
+ x: O(0),
179
178
  opacity: 0,
180
- fill: I || tt[o]
179
+ fill: H || _[a]
181
180
  },
182
181
  whileInView: {
183
- x: M(k || 0),
182
+ x: O(k || 0),
184
183
  opacity: 1,
185
- fill: I || tt[o],
184
+ fill: H || _[a],
186
185
  transition: {
187
- duration: u.duration
186
+ duration: d.duration
188
187
  }
189
188
  }
190
189
  }, initial: "initial", animate: yt ? "whileInView" : "initial", exit: {
191
190
  opacity: 0,
192
191
  transition: {
193
- duration: u.duration
192
+ duration: d.duration
194
193
  }
195
- }, children: ue(k, $, f, rt, Dt) }) : null
196
- ] }, `${v.label}-${d[o] || o}`)),
197
- F ? /* @__PURE__ */ i.jsx(Pe, { value: `${v.label}`.length < T ? `${v.label}` : `${`${v.label}`.substring(0, T)}...`, y: 0, x: 0 - c.left, width: M(w < 0 ? 0 : w) + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: yt }) : null
194
+ }, children: ue(k, A, h, nt, zt) }) : null
195
+ ] }, `${v.label}-${r[a] || a}`)),
196
+ S ? /* @__PURE__ */ i.jsx(Be, { value: `${v.label}`.length < j ? `${v.label}` : `${`${v.label}`.substring(0, j)}...`, y: 0, x: 0 - c.left, width: O(w < 0 ? 0 : w) + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: o?.yAxis?.labels, animate: d, isInView: yt }) : null
198
197
  ] }, v.label));
199
- const Mt = n?.yAxis?.axis;
198
+ const kt = o?.yAxis?.axis;
200
199
  let Rt;
201
- t[82] !== Mt ? (Rt = {
202
- axis: Mt
203
- }, t[82] = Mt, t[83] = Rt) : Rt = t[83];
200
+ t[82] !== kt ? (Rt = {
201
+ axis: kt
202
+ }, t[82] = kt, t[83] = Rt) : Rt = t[83];
204
203
  const Jt = s?.yAxis?.axis;
205
- let N;
206
- t[84] !== Jt ? (N = {
204
+ let z;
205
+ t[84] !== Jt ? (z = {
207
206
  axis: Jt
208
- }, t[84] = Jt, t[85] = N) : N = t[85], ft = /* @__PURE__ */ i.jsx(ke, { x1: M(w < 0 ? 0 : w), x2: M(w < 0 ? 0 : w), y1: -2.5, y2: L + c.bottom, classNames: Rt, styles: N }), pt = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((v, k) => /* @__PURE__ */ i.jsx(He, { text: v.text, color: v.color, x: M(v.value), y1: 0 - c.top, y2: L + c.bottom, textSide: M(v.value) > mt * 0.75 || Y ? "left" : "right", classNames: v.classNames, styles: v.styles, animate: u, isInView: yt }, k)) }) : null, t[8] = u, t[9] = q, t[10] = tt, t[11] = ut, t[12] = n?.graphObjectValues, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.axis, t[17] = n?.yAxis?.labels, t[18] = d, t[19] = x, t[20] = m, t[21] = O, t[22] = L, t[23] = mt, t[24] = P, t[25] = yt, t[26] = K, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = R, t[31] = Tt, t[32] = w, t[33] = V, t[34] = $, t[35] = a, t[36] = it, t[37] = dt, t[38] = f, t[39] = rt, t[40] = xt, t[41] = H, t[42] = Y, t[43] = W, t[44] = F, t[45] = C, t[46] = zt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = Dt, t[54] = ct, t[55] = T, t[56] = I, t[57] = y, t[58] = g, t[59] = Z, t[60] = _, t[61] = J, t[62] = j, t[63] = ht, t[64] = kt, t[65] = ot, t[66] = Ct, t[67] = G, t[68] = nt, t[69] = X, t[70] = ft, t[71] = pt;
207
+ }, t[84] = Jt, t[85] = z) : z = t[85], ft = /* @__PURE__ */ i.jsx(Oe, { x1: O(w < 0 ? 0 : w), x2: O(w < 0 ? 0 : w), y1: -2.5, y2: C + c.bottom, classNames: Rt, styles: z }), pt = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((v, k) => /* @__PURE__ */ i.jsx(Fe, { text: v.text, color: v.color, x: O(v.value), y1: 0 - c.top, y2: C + c.bottom, textSide: O(v.value) > mt * 0.75 || F ? "left" : "right", classNames: v.classNames, styles: v.styles, animate: d, isInView: yt }, k)) }) : null, t[8] = d, t[9] = R, t[10] = _, t[11] = ct, t[12] = o?.graphObjectValues, t[13] = o?.xAxis?.gridLines, t[14] = o?.xAxis?.labels, t[15] = o?.xAxis?.title, t[16] = o?.yAxis?.axis, t[17] = o?.yAxis?.labels, t[18] = r, t[19] = x, t[20] = m, t[21] = B, t[22] = C, t[23] = mt, t[24] = I, t[25] = yt, t[26] = J, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = W, t[31] = Tt, t[32] = w, t[33] = Y, t[34] = A, t[35] = u, t[36] = et, t[37] = ut, t[38] = h, t[39] = nt, t[40] = dt, t[41] = xt, t[42] = F, t[43] = G, t[44] = S, t[45] = M, t[46] = jt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = zt, t[54] = rt, t[55] = j, t[56] = H, t[57] = y, t[58] = g, t[59] = Q, t[60] = Z, t[61] = U, t[62] = V, t[63] = ht, t[64] = Mt, t[65] = st, t[66] = Ct, t[67] = E, t[68] = at, t[69] = P, t[70] = ft, t[71] = pt;
209
208
  } else
210
- g = t[58], Z = t[59], _ = t[60], J = t[61], j = t[62], ht = t[63], kt = t[64], ot = t[65], Ct = t[66], G = t[67], nt = t[68], X = t[69], ft = t[70], pt = t[71];
209
+ g = t[58], Q = t[59], Z = t[60], U = t[61], V = t[62], ht = t[63], Mt = t[64], st = t[65], Ct = t[66], E = t[67], at = t[68], P = t[69], ft = t[70], pt = t[71];
211
210
  let vt;
212
- t[86] !== g || t[87] !== X || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
213
- X,
211
+ t[86] !== g || t[87] !== P || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
212
+ P,
214
213
  ft,
215
214
  pt
216
- ] }), t[86] = g, t[87] = X, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
215
+ ] }), t[86] = g, t[87] = P, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
217
216
  let wt;
218
- t[91] !== x ? (wt = x.filter(si).map(ii), t[91] = x, t[92] = wt) : wt = t[92];
219
- let lt;
220
- t[93] !== _ || t[94] !== J || t[95] !== j || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (lt = /* @__PURE__ */ i.jsxs("g", { transform: _, children: [
221
- J,
222
- j,
217
+ t[91] !== x ? (wt = x.filter(ii).map(ei), t[91] = x, t[92] = wt) : wt = t[92];
218
+ let ot;
219
+ t[93] !== Z || t[94] !== U || t[95] !== V || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (ot = /* @__PURE__ */ i.jsxs("g", { transform: Z, children: [
220
+ U,
221
+ V,
223
222
  ht,
224
223
  vt,
225
224
  wt
226
- ] }), t[93] = _, t[94] = J, t[95] = j, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = lt) : lt = t[99];
225
+ ] }), t[93] = Z, t[94] = U, t[95] = V, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = ot) : ot = t[99];
227
226
  let At;
228
- t[100] !== Z || t[101] !== kt || t[102] !== ot || t[103] !== Ct || t[104] !== G || t[105] !== nt || t[106] !== lt ? (At = /* @__PURE__ */ i.jsx(Z, { ref: kt, width: ot, height: Ct, viewBox: G, direction: nt, children: lt }), t[100] = Z, t[101] = kt, t[102] = ot, t[103] = Ct, t[104] = G, t[105] = nt, t[106] = lt, t[107] = At) : At = t[107];
227
+ t[100] !== Q || t[101] !== Mt || t[102] !== st || t[103] !== Ct || t[104] !== E || t[105] !== at || t[106] !== ot ? (At = /* @__PURE__ */ i.jsx(Q, { ref: Mt, width: st, height: Ct, viewBox: E, direction: at, children: ot }), t[100] = Q, t[101] = Mt, t[102] = st, t[103] = Ct, t[104] = E, t[105] = at, t[106] = ot, t[107] = At) : At = t[107];
229
228
  let $t;
230
- t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !== B || t[112] !== s?.tooltip || t[113] !== et ? ($t = B && et && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: B, body: et, xPos: A, yPos: bt, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[108] = n?.tooltip, t[109] = A, t[110] = bt, t[111] = B, t[112] = s?.tooltip, t[113] = et, t[114] = $t) : $t = t[114];
229
+ t[108] !== o?.tooltip || t[109] !== $ || t[110] !== bt || t[111] !== T || t[112] !== s?.tooltip || t[113] !== tt ? ($t = T && tt && $ && bt ? /* @__PURE__ */ i.jsx($e, { data: T, body: tt, xPos: $, yPos: bt, backgroundStyle: s?.tooltip, className: o?.tooltip }) : null, t[108] = o?.tooltip, t[109] = $, t[110] = bt, t[111] = T, t[112] = s?.tooltip, t[113] = tt, t[114] = $t) : $t = t[114];
231
230
  let Ot;
232
- t[115] !== O || t[116] !== V ? (Ot = O && V !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: V !== void 0, onClose: () => {
233
- S(void 0);
234
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
235
- __html: Me(O, V)
236
- } : void 0, children: typeof O == "function" ? O(V) : null }) }) : null, t[115] = O, t[116] = V, t[117] = Ot) : Ot = t[117];
231
+ t[115] !== o?.modal || t[116] !== B || t[117] !== Y ? (Ot = B && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: B, data: Y, setData: N, className: o?.modal }) : null, t[115] = o?.modal, t[116] = B, t[117] = Y, t[118] = Ot) : Ot = t[118];
237
232
  let b;
238
- return t[118] !== At || t[119] !== $t || t[120] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
233
+ return t[119] !== At || t[120] !== $t || t[121] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
239
234
  At,
240
235
  $t,
241
236
  Ot
242
- ] }), t[118] = At, t[119] = $t, t[120] = Ot, t[121] = b) : b = t[121], b;
237
+ ] }), t[119] = At, t[120] = $t, t[121] = Ot, t[122] = b) : b = t[122], b;
243
238
  }
244
- function ii(e) {
239
+ function ei(e) {
245
240
  return e.layer;
246
241
  }
247
- function si(e) {
242
+ function ii(e) {
248
243
  return e.position === "after";
249
244
  }
250
- function oi(e) {
245
+ function si(e) {
251
246
  return e.layer;
252
247
  }
253
- function ni(e) {
248
+ function ai(e) {
254
249
  return e.position === "before";
255
250
  }
256
- function li(e) {
251
+ function oi(e) {
257
252
  return e !== 0;
258
253
  }
259
- function ai(e) {
254
+ function li(e) {
260
255
  return e !== 0;
261
256
  }
262
- function ri(e, t) {
257
+ function ni(e, t) {
263
258
  return `${t}`;
264
259
  }
265
- function ci(e) {
260
+ function ri(e) {
266
261
  return `${e.id}`;
267
262
  }
268
- function ui(e) {
269
- const t = xe.c(130), {
263
+ function ci(e) {
264
+ const t = xe.c(131), {
270
265
  data: m,
271
266
  leftMargin: D,
272
267
  rightMargin: Xt,
273
268
  topMargin: St,
274
269
  bottomMargin: gt,
275
- width: tt,
276
- height: ut,
277
- barColors: C,
278
- suffix: T,
270
+ width: _,
271
+ height: ct,
272
+ barColors: M,
273
+ suffix: j,
279
274
  prefix: y,
280
- barPadding: P,
281
- showLabels: Dt,
282
- showValues: rt,
283
- showTicks: zt,
284
- truncateBy: F,
285
- tooltip: et,
286
- onSeriesMouseOver: dt,
287
- refValues: xt,
275
+ barPadding: I,
276
+ showLabels: zt,
277
+ showValues: nt,
278
+ showTicks: jt,
279
+ truncateBy: S,
280
+ tooltip: tt,
281
+ onSeriesMouseOver: ut,
282
+ refValues: dt,
288
283
  maxValue: Tt,
289
284
  minValue: w,
290
- onSeriesMouseClick: it,
291
- selectedColor: W,
292
- labelOrder: Y,
293
- maxBarThickness: K,
294
- resetSelectionOnDoubleClick: R,
295
- detailsOnClick: H,
296
- barAxisTitle: O,
297
- valueColor: q,
298
- noOfTicks: I,
299
- styles: a,
285
+ onSeriesMouseClick: et,
286
+ selectedColor: G,
287
+ labelOrder: F,
288
+ maxBarThickness: J,
289
+ resetSelectionOnDoubleClick: W,
290
+ detailsOnClick: xt,
291
+ barAxisTitle: B,
292
+ valueColor: R,
293
+ noOfTicks: H,
294
+ styles: u,
300
295
  classNames: s,
301
- animate: n,
302
- colorDomain: u,
303
- precision: d,
304
- customLayers: f,
296
+ animate: o,
297
+ colorDomain: d,
298
+ precision: r,
299
+ customLayers: h,
305
300
  naLabel: x
306
- } = e, $ = D === void 0 ? 20 : D, Q = Xt === void 0 ? 20 : Xt, U = St === void 0 ? 20 : St, ct = gt === void 0 ? 25 : gt, Ft = de(null);
301
+ } = e, A = D === void 0 ? 20 : D, K = Xt === void 0 ? 20 : Xt, q = St === void 0 ? 20 : St, rt = gt === void 0 ? 25 : gt, Ft = de(null);
307
302
  let Yt;
308
- t[0] !== n.amount || t[1] !== n.once ? (Yt = {
309
- once: n.once,
310
- amount: n.amount
311
- }, t[0] = n.amount, t[1] = n.once, t[2] = Yt) : Yt = t[2];
312
- const E = Ve(Ft, Yt), yt = O ? $ + 30 : $;
303
+ t[0] !== o.amount || t[1] !== o.once ? (Yt = {
304
+ once: o.once,
305
+ amount: o.amount
306
+ }, t[0] = o.amount, t[1] = o.once, t[2] = Yt) : Yt = t[2];
307
+ const X = Ce(Ft, Yt), yt = B ? A + 30 : A;
313
308
  let Bt;
314
- t[3] !== ct || t[4] !== Q || t[5] !== yt || t[6] !== U ? (Bt = {
315
- top: U,
316
- bottom: ct,
309
+ t[3] !== rt || t[4] !== K || t[5] !== yt || t[6] !== q ? (Bt = {
310
+ top: q,
311
+ bottom: rt,
317
312
  left: yt,
318
- right: Q
319
- }, t[3] = ct, t[4] = Q, t[5] = yt, t[6] = U, t[7] = Bt) : Bt = t[7];
320
- const r = Bt, [c, B] = Wt(void 0), [h, V] = Wt(void 0), [S, A] = Wt(void 0), [Lt, bt] = Wt(void 0), st = tt - r.left - r.right, mt = ut - r.top - r.bottom;
321
- let L, g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft;
322
- if (t[8] !== n || t[9] !== O || t[10] !== C || t[11] !== P || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== u || t[19] !== f || t[20] !== m || t[21] !== H || t[22] !== mt || t[23] !== st || t[24] !== ut || t[25] !== E || t[26] !== Y || t[27] !== $ || t[28] !== r.bottom || t[29] !== r.left || t[30] !== r.right || t[31] !== r.top || t[32] !== K || t[33] !== Tt || t[34] !== w || t[35] !== h || t[36] !== x || t[37] !== I || t[38] !== it || t[39] !== dt || t[40] !== d || t[41] !== y || t[42] !== xt || t[43] !== R || t[44] !== W || t[45] !== Dt || t[46] !== zt || t[47] !== rt || t[48] !== a?.graphObjectValues || t[49] !== a?.xAxis?.axis || t[50] !== a?.xAxis?.labels || t[51] !== a?.yAxis?.gridLines || t[52] !== a?.yAxis?.labels || t[53] !== a?.yAxis?.title || t[54] !== T || t[55] !== F || t[56] !== q || t[57] !== tt) {
323
- const b = Le().domain([w, Tt]).range([mt, 0]).nice();
324
- let at;
325
- t[72] !== Y ? (at = (z, Vt) => ({
326
- ...z,
327
- id: Y ? `${z.label}` : `${Vt}`
328
- }), t[72] = Y, t[73] = at) : at = t[73];
329
- const It = m.map(at), Et = Y || It.map(yi), M = ge().domain(Et).range([0, K ? Math.min(st, K * Et.length) : st]).paddingInner(P), qt = ge().domain(m[0].size.map(gi)).range([0, M.bandwidth()]).paddingInner(0.1), Nt = b.ticks(I);
330
- g = Zt.svg, ht = `${tt}px`, kt = `${ut}px`, ot = `0 0 ${tt} ${ut}`, Ct = "ltr", G = Ft, ft = `translate(${r.left},${r.top})`;
331
- const Kt = b(w < 0 ? 0 : w), jt = b(w < 0 ? 0 : w), Qt = w < 0 ? 0 : w;
313
+ right: K
314
+ }, t[3] = rt, t[4] = K, t[5] = yt, t[6] = q, t[7] = Bt) : Bt = t[7];
315
+ const n = Bt, [c, T] = Wt(void 0), [f, Y] = Wt(void 0), [N, $] = Wt(void 0), [Dt, bt] = Wt(void 0), it = _ - n.left - n.right, mt = ct - n.top - n.bottom;
316
+ let C, g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft;
317
+ if (t[8] !== o || t[9] !== B || t[10] !== M || t[11] !== I || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== d || t[19] !== h || t[20] !== m || t[21] !== xt || t[22] !== mt || t[23] !== it || t[24] !== ct || t[25] !== X || t[26] !== F || t[27] !== A || t[28] !== n.bottom || t[29] !== n.left || t[30] !== n.right || t[31] !== n.top || t[32] !== J || t[33] !== Tt || t[34] !== w || t[35] !== f || t[36] !== x || t[37] !== H || t[38] !== et || t[39] !== ut || t[40] !== r || t[41] !== y || t[42] !== dt || t[43] !== W || t[44] !== G || t[45] !== zt || t[46] !== jt || t[47] !== nt || t[48] !== u?.graphObjectValues || t[49] !== u?.xAxis?.axis || t[50] !== u?.xAxis?.labels || t[51] !== u?.yAxis?.gridLines || t[52] !== u?.yAxis?.labels || t[53] !== u?.yAxis?.title || t[54] !== j || t[55] !== S || t[56] !== R || t[57] !== _) {
318
+ const b = Ve().domain([w, Tt]).range([mt, 0]).nice();
319
+ let lt;
320
+ t[72] !== F ? (lt = (L, Vt) => ({
321
+ ...L,
322
+ id: F ? `${L.label}` : `${Vt}`
323
+ }), t[72] = F, t[73] = lt) : lt = t[73];
324
+ const It = m.map(lt), Et = F || It.map(gi), O = ge().domain(Et).range([0, J ? Math.min(it, J * Et.length) : it]).paddingInner(I), qt = ge().domain(m[0].size.map(pi)).range([0, O.bandwidth()]).paddingInner(0.1), Nt = b.ticks(H);
325
+ g = Zt.svg, ht = `${_}px`, Mt = `${ct}px`, st = `0 0 ${_} ${ct}`, Ct = "ltr", E = Ft, ft = `translate(${n.left},${n.top})`;
326
+ const Kt = b(w < 0 ? 0 : w), Lt = b(w < 0 ? 0 : w), Qt = w < 0 ? 0 : w;
332
327
  let Ut;
333
- t[74] !== x || t[75] !== d || t[76] !== y || t[77] !== T || t[78] !== Qt ? (Ut = ue(Qt, x, d, y, T), t[74] = x, t[75] = d, t[76] = y, t[77] = T, t[78] = Qt, t[79] = Ut) : Ut = t[79];
334
- const Ht = s?.xAxis?.axis, Mt = s?.yAxis?.labels;
328
+ t[74] !== x || t[75] !== r || t[76] !== y || t[77] !== j || t[78] !== Qt ? (Ut = ue(Qt, x, r, y, j), t[74] = x, t[75] = r, t[76] = y, t[77] = j, t[78] = Qt, t[79] = Ut) : Ut = t[79];
329
+ const Ht = s?.xAxis?.axis, kt = s?.yAxis?.labels;
335
330
  let Rt;
336
- t[80] !== Ht || t[81] !== Mt ? (Rt = {
331
+ t[80] !== Ht || t[81] !== kt ? (Rt = {
337
332
  axis: Ht,
338
- label: Mt
339
- }, t[80] = Ht, t[81] = Mt, t[82] = Rt) : Rt = t[82];
340
- const Jt = a?.xAxis?.axis, N = a?.yAxis?.labels;
333
+ label: kt
334
+ }, t[80] = Ht, t[81] = kt, t[82] = Rt) : Rt = t[82];
335
+ const Jt = u?.xAxis?.axis, z = u?.yAxis?.labels;
341
336
  let v;
342
- t[83] !== Jt || t[84] !== N ? (v = {
337
+ t[83] !== Jt || t[84] !== z ? (v = {
343
338
  axis: Jt,
344
- label: N
345
- }, t[83] = Jt, t[84] = N, t[85] = v) : v = t[85], Z = /* @__PURE__ */ i.jsx(ke, { y1: Kt, y2: jt, x1: 0 - $, x2: st + r.right, label: Ut, labelPos: {
346
- x: 0 - $,
339
+ label: z
340
+ }, t[83] = Jt, t[84] = z, t[85] = v) : v = t[85], Q = /* @__PURE__ */ i.jsx(Oe, { y1: Kt, y2: Lt, x1: 0 - A, x2: it + n.right, label: Ut, labelPos: {
341
+ x: 0 - A,
347
342
  dx: 0,
348
343
  dy: Tt < 0 ? "1em" : -5,
349
344
  y: b(w < 0 ? 0 : w)
350
- }, classNames: Rt, styles: v }), _ = zt ? /* @__PURE__ */ i.jsx(Ye, { values: Nt.filter(pi), y: Nt.filter(fi).map((z) => b(z)), x1: 0 - $, x2: st + r.right, styles: {
351
- gridLines: a?.yAxis?.gridLines,
352
- labels: a?.yAxis?.labels
345
+ }, classNames: Rt, styles: v }), Z = jt ? /* @__PURE__ */ i.jsx(Xe, { values: Nt.filter(fi), y: Nt.filter(hi).map((L) => b(L)), x1: 0 - A, x2: it + n.right, styles: {
346
+ gridLines: u?.yAxis?.gridLines,
347
+ labels: u?.yAxis?.labels
353
348
  }, classNames: {
354
349
  gridLines: s?.yAxis?.gridLines,
355
350
  labels: s?.yAxis?.labels
356
- }, suffix: T, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
357
- const k = 0 - $ - 15, o = mt / 2, p = a?.yAxis?.title, ee = s?.yAxis?.title;
358
- t[86] !== O || t[87] !== k || t[88] !== o || t[89] !== p || t[90] !== ee ? (J = /* @__PURE__ */ i.jsx(Ce, { x: k, y: o, style: p, className: ee, text: O, rotate90: !0 }), t[86] = O, t[87] = k, t[88] = o, t[89] = p, t[90] = ee, t[91] = J) : J = t[91], t[92] !== f ? (j = f.filter(hi).map(mi), t[92] = f, t[93] = j) : j = t[93], L = je, nt = It.map((z) => _t(M(z.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
351
+ }, suffix: j, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: r }) : null;
352
+ const k = 0 - A - 15, a = mt / 2, p = u?.yAxis?.title, ee = s?.yAxis?.title;
353
+ t[86] !== B || t[87] !== k || t[88] !== a || t[89] !== p || t[90] !== ee ? (U = /* @__PURE__ */ i.jsx(ke, { x: k, y: a, style: p, className: ee, text: B, rotate90: !0 }), t[86] = B, t[87] = k, t[88] = a, t[89] = p, t[90] = ee, t[91] = U) : U = t[91], t[92] !== h ? (V = h.filter(mi).map(xi), t[92] = h, t[93] = V) : V = t[93], C = De, at = It.map((L) => _t(O(L.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
359
354
  initial: {
360
- x: M(`${z.id}`),
355
+ x: O(`${L.id}`),
361
356
  y: 0
362
357
  },
363
358
  whileInView: {
364
- x: M(`${z.id}`),
359
+ x: O(`${L.id}`),
365
360
  y: 0,
366
361
  transition: {
367
- duration: n.duration
362
+ duration: o.duration
368
363
  }
369
364
  }
370
- }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
365
+ }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
371
366
  opacity: 0,
372
367
  transition: {
373
- duration: n.duration
368
+ duration: o.duration
374
369
  }
375
370
  }, children: [
376
- z.size.map((Vt, l) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: W ? C[l] === W ? 1 : 0.3 : 0.85, onMouseEnter: (ie) => {
377
- B({
378
- ...z,
371
+ L.size.map((Vt, l) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: G ? M[l] === G ? 1 : 0.3 : 0.85, onMouseEnter: (ie) => {
372
+ T({
373
+ ...L,
379
374
  sizeIndex: l
380
- }), bt(ie.clientY), A(ie.clientX), dt?.({
381
- ...z,
375
+ }), bt(ie.clientY), $(ie.clientX), ut?.({
376
+ ...L,
382
377
  sizeIndex: l
383
378
  });
384
379
  }, onMouseMove: (ie) => {
385
- B({
386
- ...z,
380
+ T({
381
+ ...L,
387
382
  sizeIndex: l
388
- }), bt(ie.clientY), A(ie.clientX);
383
+ }), bt(ie.clientY), $(ie.clientX);
389
384
  }, onMouseLeave: () => {
390
- B(void 0), A(void 0), bt(void 0), dt?.(void 0);
385
+ T(void 0), $(void 0), bt(void 0), ut?.(void 0);
391
386
  }, onClick: () => {
392
- (it || H) && (Ae(h, {
393
- ...z,
387
+ (et || xt) && (Ae(f, {
388
+ ...L,
394
389
  sizeIndex: l
395
- }) && R ? (V(void 0), it?.(void 0)) : (V({
396
- ...z,
390
+ }) && W ? (Y(void 0), et?.(void 0)) : (Y({
391
+ ...L,
397
392
  sizeIndex: l
398
- }), it && it({
399
- ...z,
393
+ }), et && et({
394
+ ...L,
400
395
  sizeIndex: l
401
396
  })));
402
397
  }, children: [
@@ -404,207 +399,203 @@ function ui(e) {
404
399
  initial: {
405
400
  height: 0,
406
401
  y: b(0),
407
- fill: C[l]
402
+ fill: M[l]
408
403
  },
409
404
  whileInView: {
410
405
  height: _t(Vt) ? 0 : Math.abs(b(Vt) - b(0)),
411
406
  y: _t(Vt) ? b(0) : Vt > 0 ? b(Vt) : b(0),
412
- fill: C[l],
407
+ fill: M[l],
413
408
  transition: {
414
- duration: n.duration
409
+ duration: o.duration
415
410
  }
416
411
  }
417
412
  }, exit: {
418
413
  height: 0,
419
414
  y: b(0),
420
415
  transition: {
421
- duration: n.duration
416
+ duration: o.duration
422
417
  }
423
- }, initial: "initial", animate: E ? "whileInView" : "initial" }),
424
- rt ? /* @__PURE__ */ i.jsx(Zt.text, { x: qt(`${l}`) + qt.bandwidth() / 2, style: {
418
+ }, initial: "initial", animate: X ? "whileInView" : "initial" }),
419
+ nt ? /* @__PURE__ */ i.jsx(Zt.text, { x: qt(`${l}`) + qt.bandwidth() / 2, style: {
425
420
  textAnchor: "middle",
426
- ...a?.graphObjectValues || {}
421
+ ...u?.graphObjectValues || {}
427
422
  }, className: pe("graph-value text-sm", s?.graphObjectValues), dy: Vt ? Vt >= 0 ? "-5px" : "1em" : "-5px", variants: {
428
423
  initial: {
429
424
  y: b(0),
430
425
  opacity: 0,
431
- fill: q || C[l]
426
+ fill: R || M[l]
432
427
  },
433
428
  whileInView: {
434
429
  y: b(Vt || 0),
435
430
  opacity: 1,
436
- fill: q || C[l],
431
+ fill: R || M[l],
437
432
  transition: {
438
- duration: n.duration
433
+ duration: o.duration
439
434
  }
440
435
  }
441
- }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
436
+ }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
442
437
  opacity: 0,
443
438
  transition: {
444
- duration: n.duration
439
+ duration: o.duration
445
440
  }
446
- }, children: ue(Vt, x, d, y, T) }) : null
447
- ] }, `${z.label}-${u[l] || l}`)),
448
- Dt ? /* @__PURE__ */ i.jsx(Ee, { value: `${z.label}`.length < F ? `${z.label}` : `${`${z.label}`.substring(0, F)}...`, y: b(0) + 5, x: 0, width: M.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: n, isInView: E }) : null
449
- ] }, z.label)), X = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((z, Vt) => /* @__PURE__ */ i.jsx(Xe, { text: z.text, color: z.color, y: b(z.value), x1: 0 - $, x2: st + r.right, classNames: z.classNames, styles: z.styles, animate: n, isInView: E }, Vt)) }) : null, t[8] = n, t[9] = O, t[10] = C, t[11] = P, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = u, t[19] = f, t[20] = m, t[21] = H, t[22] = mt, t[23] = st, t[24] = ut, t[25] = E, t[26] = Y, t[27] = $, t[28] = r.bottom, t[29] = r.left, t[30] = r.right, t[31] = r.top, t[32] = K, t[33] = Tt, t[34] = w, t[35] = h, t[36] = x, t[37] = I, t[38] = it, t[39] = dt, t[40] = d, t[41] = y, t[42] = xt, t[43] = R, t[44] = W, t[45] = Dt, t[46] = zt, t[47] = rt, t[48] = a?.graphObjectValues, t[49] = a?.xAxis?.axis, t[50] = a?.xAxis?.labels, t[51] = a?.yAxis?.gridLines, t[52] = a?.yAxis?.labels, t[53] = a?.yAxis?.title, t[54] = T, t[55] = F, t[56] = q, t[57] = tt, t[58] = L, t[59] = g, t[60] = Z, t[61] = _, t[62] = J, t[63] = j, t[64] = ht, t[65] = kt, t[66] = ot, t[67] = Ct, t[68] = G, t[69] = nt, t[70] = X, t[71] = ft;
441
+ }, children: ue(Vt, x, r, y, j) }) : null
442
+ ] }, `${L.label}-${d[l] || l}`)),
443
+ zt ? /* @__PURE__ */ i.jsx(Ye, { value: `${L.label}`.length < S ? `${L.label}` : `${`${L.label}`.substring(0, S)}...`, y: b(0) + 5, x: 0, width: O.bandwidth(), height: n.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: o, isInView: X }) : null
444
+ ] }, L.label)), P = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((L, Vt) => /* @__PURE__ */ i.jsx(He, { text: L.text, color: L.color, y: b(L.value), x1: 0 - A, x2: it + n.right, classNames: L.classNames, styles: L.styles, animate: o, isInView: X }, Vt)) }) : null, t[8] = o, t[9] = B, t[10] = M, t[11] = I, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = d, t[19] = h, t[20] = m, t[21] = xt, t[22] = mt, t[23] = it, t[24] = ct, t[25] = X, t[26] = F, t[27] = A, t[28] = n.bottom, t[29] = n.left, t[30] = n.right, t[31] = n.top, t[32] = J, t[33] = Tt, t[34] = w, t[35] = f, t[36] = x, t[37] = H, t[38] = et, t[39] = ut, t[40] = r, t[41] = y, t[42] = dt, t[43] = W, t[44] = G, t[45] = zt, t[46] = jt, t[47] = nt, t[48] = u?.graphObjectValues, t[49] = u?.xAxis?.axis, t[50] = u?.xAxis?.labels, t[51] = u?.yAxis?.gridLines, t[52] = u?.yAxis?.labels, t[53] = u?.yAxis?.title, t[54] = j, t[55] = S, t[56] = R, t[57] = _, t[58] = C, t[59] = g, t[60] = Q, t[61] = Z, t[62] = U, t[63] = V, t[64] = ht, t[65] = Mt, t[66] = st, t[67] = Ct, t[68] = E, t[69] = at, t[70] = P, t[71] = ft;
450
445
  } else
451
- L = t[58], g = t[59], Z = t[60], _ = t[61], J = t[62], j = t[63], ht = t[64], kt = t[65], ot = t[66], Ct = t[67], G = t[68], nt = t[69], X = t[70], ft = t[71];
446
+ C = t[58], g = t[59], Q = t[60], Z = t[61], U = t[62], V = t[63], ht = t[64], Mt = t[65], st = t[66], Ct = t[67], E = t[68], at = t[69], P = t[70], ft = t[71];
452
447
  let pt;
453
- t[94] !== L || t[95] !== nt || t[96] !== X ? (pt = /* @__PURE__ */ i.jsxs(L, { children: [
454
- nt,
455
- X
456
- ] }), t[94] = L, t[95] = nt, t[96] = X, t[97] = pt) : pt = t[97];
448
+ t[94] !== C || t[95] !== at || t[96] !== P ? (pt = /* @__PURE__ */ i.jsxs(C, { children: [
449
+ at,
450
+ P
451
+ ] }), t[94] = C, t[95] = at, t[96] = P, t[97] = pt) : pt = t[97];
457
452
  let vt;
458
- t[98] !== f ? (vt = f.filter(xi).map(di), t[98] = f, t[99] = vt) : vt = t[99];
453
+ t[98] !== h ? (vt = h.filter(di).map(ui), t[98] = h, t[99] = vt) : vt = t[99];
459
454
  let wt;
460
- t[100] !== Z || t[101] !== _ || t[102] !== J || t[103] !== j || t[104] !== pt || t[105] !== vt || t[106] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
455
+ t[100] !== Q || t[101] !== Z || t[102] !== U || t[103] !== V || t[104] !== pt || t[105] !== vt || t[106] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
456
+ Q,
461
457
  Z,
462
- _,
463
- J,
464
- j,
458
+ U,
459
+ V,
465
460
  pt,
466
461
  vt
467
- ] }), t[100] = Z, t[101] = _, t[102] = J, t[103] = j, t[104] = pt, t[105] = vt, t[106] = ft, t[107] = wt) : wt = t[107];
468
- let lt;
469
- t[108] !== g || t[109] !== ht || t[110] !== kt || t[111] !== ot || t[112] !== Ct || t[113] !== G || t[114] !== wt ? (lt = /* @__PURE__ */ i.jsx(g, { width: ht, height: kt, viewBox: ot, direction: Ct, ref: G, children: wt }), t[108] = g, t[109] = ht, t[110] = kt, t[111] = ot, t[112] = Ct, t[113] = G, t[114] = wt, t[115] = lt) : lt = t[115];
462
+ ] }), t[100] = Q, t[101] = Z, t[102] = U, t[103] = V, t[104] = pt, t[105] = vt, t[106] = ft, t[107] = wt) : wt = t[107];
463
+ let ot;
464
+ t[108] !== g || t[109] !== ht || t[110] !== Mt || t[111] !== st || t[112] !== Ct || t[113] !== E || t[114] !== wt ? (ot = /* @__PURE__ */ i.jsx(g, { width: ht, height: Mt, viewBox: st, direction: Ct, ref: E, children: wt }), t[108] = g, t[109] = ht, t[110] = Mt, t[111] = st, t[112] = Ct, t[113] = E, t[114] = wt, t[115] = ot) : ot = t[115];
470
465
  let At;
471
- t[116] !== s?.tooltip || t[117] !== S || t[118] !== Lt || t[119] !== c || t[120] !== a?.tooltip || t[121] !== et ? (At = c && et && S && Lt ? /* @__PURE__ */ i.jsx(Oe, { data: c, body: et, xPos: S, yPos: Lt, backgroundStyle: a?.tooltip, className: s?.tooltip }) : null, t[116] = s?.tooltip, t[117] = S, t[118] = Lt, t[119] = c, t[120] = a?.tooltip, t[121] = et, t[122] = At) : At = t[122];
466
+ t[116] !== s?.tooltip || t[117] !== N || t[118] !== Dt || t[119] !== c || t[120] !== u?.tooltip || t[121] !== tt ? (At = c && tt && N && Dt ? /* @__PURE__ */ i.jsx($e, { data: c, body: tt, xPos: N, yPos: Dt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[116] = s?.tooltip, t[117] = N, t[118] = Dt, t[119] = c, t[120] = u?.tooltip, t[121] = tt, t[122] = At) : At = t[122];
472
467
  let $t;
473
- t[123] !== H || t[124] !== h ? ($t = H && h !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: h !== void 0, onClose: () => {
474
- V(void 0);
475
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof H == "string" ? {
476
- __html: Me(H, h)
477
- } : void 0, children: typeof H == "function" ? H(h) : null }) }) : null, t[123] = H, t[124] = h, t[125] = $t) : $t = t[125];
468
+ t[123] !== s?.modal || t[124] !== xt || t[125] !== f ? ($t = xt && f !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: xt, data: f, setData: Y, className: s?.modal }) : null, t[123] = s?.modal, t[124] = xt, t[125] = f, t[126] = $t) : $t = t[126];
478
469
  let Ot;
479
- return t[126] !== lt || t[127] !== At || t[128] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
480
- lt,
470
+ return t[127] !== ot || t[128] !== At || t[129] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
471
+ ot,
481
472
  At,
482
473
  $t
483
- ] }), t[126] = lt, t[127] = At, t[128] = $t, t[129] = Ot) : Ot = t[129], Ot;
474
+ ] }), t[127] = ot, t[128] = At, t[129] = $t, t[130] = Ot) : Ot = t[130], Ot;
484
475
  }
485
- function di(e) {
476
+ function ui(e) {
486
477
  return e.layer;
487
478
  }
488
- function xi(e) {
479
+ function di(e) {
489
480
  return e.position === "after";
490
481
  }
491
- function mi(e) {
482
+ function xi(e) {
492
483
  return e.layer;
493
484
  }
494
- function hi(e) {
485
+ function mi(e) {
495
486
  return e.position === "before";
496
487
  }
497
- function fi(e) {
488
+ function hi(e) {
498
489
  return e !== 0;
499
490
  }
500
- function pi(e) {
491
+ function fi(e) {
501
492
  return e !== 0;
502
493
  }
503
- function gi(e, t) {
494
+ function pi(e, t) {
504
495
  return `${t}`;
505
496
  }
506
- function yi(e) {
497
+ function gi(e) {
507
498
  return `${e.id}`;
508
499
  }
509
- function bi(e) {
500
+ function yi(e) {
510
501
  const t = xe.c(43), {
511
502
  data: m,
512
503
  graphTitle: D,
513
504
  colors: Xt,
514
505
  sources: St,
515
506
  graphDescription: gt,
516
- barPadding: tt,
517
- showTicks: ut,
518
- truncateBy: C,
519
- height: T,
507
+ barPadding: _,
508
+ showTicks: ct,
509
+ truncateBy: M,
510
+ height: j,
520
511
  width: y,
521
- footNote: P,
522
- colorDomain: Dt,
523
- colorLegendTitle: rt,
524
- suffix: zt,
525
- prefix: F,
526
- showValues: et,
527
- showColorScale: dt,
528
- padding: xt,
512
+ footNote: I,
513
+ colorDomain: zt,
514
+ colorLegendTitle: nt,
515
+ suffix: jt,
516
+ prefix: S,
517
+ showValues: tt,
518
+ showColorScale: ut,
519
+ padding: dt,
529
520
  backgroundColor: Tt,
530
521
  leftMargin: w,
531
- rightMargin: it,
532
- topMargin: W,
533
- bottomMargin: Y,
534
- showLabels: K,
535
- relativeHeight: R,
536
- tooltip: H,
537
- onSeriesMouseOver: O,
538
- refValues: q,
539
- graphID: I,
540
- maxValue: a,
522
+ rightMargin: et,
523
+ topMargin: G,
524
+ bottomMargin: F,
525
+ showLabels: J,
526
+ relativeHeight: W,
527
+ tooltip: xt,
528
+ onSeriesMouseOver: B,
529
+ refValues: R,
530
+ graphID: H,
531
+ maxValue: u,
541
532
  minValue: s,
542
- onSeriesMouseClick: n,
543
- graphDownload: u,
544
- dataDownload: d,
545
- language: f,
533
+ onSeriesMouseClick: o,
534
+ graphDownload: d,
535
+ dataDownload: r,
536
+ language: h,
546
537
  labelOrder: x,
547
- minHeight: $,
548
- theme: Q,
549
- maxBarThickness: U,
550
- ariaLabel: ct,
538
+ minHeight: A,
539
+ theme: K,
540
+ maxBarThickness: q,
541
+ ariaLabel: rt,
551
542
  resetSelectionOnDoubleClick: Ft,
552
543
  detailsOnClick: Yt,
553
- barAxisTitle: E,
544
+ barAxisTitle: X,
554
545
  noOfTicks: yt,
555
546
  valueColor: Bt,
556
- styles: r,
547
+ styles: n,
557
548
  classNames: c,
558
- filterNA: B,
559
- animate: h,
560
- precision: V,
561
- customLayers: S,
562
- timeline: A,
563
- naLabel: Lt,
549
+ filterNA: T,
550
+ animate: f,
551
+ precision: Y,
552
+ customLayers: N,
553
+ timeline: $,
554
+ naLabel: Dt,
564
555
  sortParameter: bt,
565
- sortData: st,
556
+ sortData: it,
566
557
  orientation: mt
567
- } = e, L = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, g = tt === void 0 ? 0.25 : tt, Z = ut === void 0 ? !0 : ut, _ = C === void 0 ? 999 : C, J = zt === void 0 ? "" : zt, j = F === void 0 ? "" : F, ht = et === void 0 ? !0 : et, kt = dt === void 0 ? !0 : dt, ot = Tt === void 0 ? !1 : Tt, Ct = K === void 0 ? !0 : K, G = u === void 0 ? !1 : u, nt = d === void 0 ? !1 : d, X = f === void 0 ? "en" : f, ft = $ === void 0 ? 0 : $, pt = Q === void 0 ? "light" : Q, vt = Ft === void 0 ? !0 : Ft, wt = yt === void 0 ? 5 : yt, lt = B === void 0 ? !0 : B, At = h === void 0 ? !1 : h, $t = V === void 0 ? 2 : V;
558
+ } = e, C = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, g = _ === void 0 ? 0.25 : _, Q = ct === void 0 ? !0 : ct, Z = M === void 0 ? 999 : M, U = jt === void 0 ? "" : jt, V = S === void 0 ? "" : S, ht = tt === void 0 ? !0 : tt, Mt = ut === void 0 ? !0 : ut, st = Tt === void 0 ? !1 : Tt, Ct = J === void 0 ? !0 : J, E = d === void 0 ? !1 : d, at = r === void 0 ? !1 : r, P = h === void 0 ? "en" : h, ft = A === void 0 ? 0 : A, pt = K === void 0 ? "light" : K, vt = Ft === void 0 ? !0 : Ft, wt = yt === void 0 ? 5 : yt, ot = T === void 0 ? !0 : T, At = f === void 0 ? !1 : f, $t = Y === void 0 ? 2 : Y;
568
559
  let Ot;
569
- t[0] !== S ? (Ot = S === void 0 ? [] : S, t[0] = S, t[1] = Ot) : Ot = t[1];
570
- const b = Ot, at = A === void 0 ? {
560
+ t[0] !== N ? (Ot = N === void 0 ? [] : N, t[0] = N, t[1] = Ot) : Ot = t[1];
561
+ const b = Ot, lt = $ === void 0 ? {
571
562
  enabled: !1,
572
563
  autoplay: !1,
573
564
  showOnlyActiveDate: !0
574
- } : A, It = Lt === void 0 ? "NA" : Lt, M = (mt === void 0 ? "vertical" : mt) === "horizontal" ? ei : ui, [qt, Nt] = Wt(0), [Kt, jt] = Wt(0), [Qt, Ut] = Wt(at.autoplay), Ht = Ze(De(m, "date", !0).map((Gt) => Be(`${Gt}`, at.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Pi), [Mt, Rt] = Wt(at.autoplay ? 0 : Ht.length - 1), [Jt, N] = Wt(void 0), v = de(null), k = de(null);
575
- let o, p;
576
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
565
+ } : $, It = Dt === void 0 ? "NA" : Dt, O = (mt === void 0 ? "vertical" : mt) === "horizontal" ? ti : ci, [qt, Nt] = Wt(0), [Kt, Lt] = Wt(0), [Qt, Ut] = Wt(lt.autoplay), Ht = Qe(Le(m, "date", !0).map((Gt) => Se(`${Gt}`, lt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Bi), [kt, Rt] = Wt(lt.autoplay ? 0 : Ht.length - 1), [Jt, z] = Wt(void 0), v = de(null), k = de(null);
566
+ let a, p;
567
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = () => {
577
568
  const Gt = new ResizeObserver((Pt) => {
578
- Nt(Pt[0].target.clientWidth || 620), jt(Pt[0].target.clientHeight || 480);
569
+ Nt(Pt[0].target.clientWidth || 620), Lt(Pt[0].target.clientHeight || 480);
579
570
  });
580
571
  return v.current && Gt.observe(v.current), () => Gt.disconnect();
581
- }, p = [], t[2] = o, t[3] = p) : (o = t[2], p = t[3]), we(o, p), we(() => {
572
+ }, p = [], t[2] = a, t[3] = p) : (a = t[2], p = t[3]), we(a, p), we(() => {
582
573
  const Gt = setInterval(() => {
583
574
  Rt((Pt) => Pt < Ht.length - 1 ? Pt + 1 : 0);
584
- }, (at.speed || 2) * 1e3);
575
+ }, (lt.speed || 2) * 1e3);
585
576
  return Qt || clearInterval(Gt), () => clearInterval(Gt);
586
- }, [Ht, Qt, at.speed]);
587
- const ee = Ie(Ht, Mt, at.showOnlyActiveDate, at.dateFormat || "yyyy"), z = Qe, Vt = c?.graphContainer, l = r?.graphContainer;
577
+ }, [Ht, Qt, lt.speed]);
578
+ const ee = Te(Ht, kt, lt.showOnlyActiveDate, lt.dateFormat || "yyyy"), L = Ke, Vt = c?.graphContainer, l = n?.graphContainer;
588
579
  let ie;
589
- t[4] !== c?.description || t[5] !== c?.title || t[6] !== m || t[7] !== nt || t[8] !== gt || t[9] !== G || t[10] !== D || t[11] !== r?.description || t[12] !== r?.title || t[13] !== y ? (ie = D || gt || G || nt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
590
- title: r?.title,
591
- description: r?.description
580
+ t[4] !== c?.description || t[5] !== c?.title || t[6] !== m || t[7] !== at || t[8] !== gt || t[9] !== E || t[10] !== D || t[11] !== n?.description || t[12] !== n?.title || t[13] !== y ? (ie = D || gt || E || at ? /* @__PURE__ */ i.jsx(Ee, { styles: {
581
+ title: n?.title,
582
+ description: n?.description
592
583
  }, classNames: {
593
584
  title: c?.title,
594
585
  description: c?.description
595
- }, graphTitle: D, graphDescription: gt, width: y, graphDownload: G ? k : void 0, dataDownload: nt ? m.map(Bi).filter(Si).length > 0 ? m.map(Ii).filter(Ti) : m.filter(Ni) : null }) : null, t[4] = c?.description, t[5] = c?.title, t[6] = m, t[7] = nt, t[8] = gt, t[9] = G, t[10] = D, t[11] = r?.description, t[12] = r?.title, t[13] = y, t[14] = ie) : ie = t[14];
596
- const se = at.enabled && Ht.length > 0 && ee ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
586
+ }, graphTitle: D, graphDescription: gt, width: y, graphDownload: E ? k : void 0, dataDownload: at ? m.map(Si).filter(Ii).length > 0 ? m.map(Ti).filter(Ni) : m.filter(ji) : null }) : null, t[4] = c?.description, t[5] = c?.title, t[6] = m, t[7] = at, t[8] = gt, t[9] = E, t[10] = D, t[11] = n?.description, t[12] = n?.title, t[13] = y, t[14] = ie) : ie = t[14];
587
+ const se = lt.enabled && Ht.length > 0 && ee ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
597
588
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
598
589
  Ut(!Qt);
599
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Qt ? "Click to pause animation" : "Click to play animation", children: Qt ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
600
- /* @__PURE__ */ i.jsx(Se, { min: Ht[0], max: Ht[Ht.length - 1], marks: ee, step: null, defaultValue: Ht[Ht.length - 1], value: Ht[Mt], onChangeComplete: (Gt) => {
590
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Qt ? "Click to pause animation" : "Click to play animation", children: Qt ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
591
+ /* @__PURE__ */ i.jsx(Ie, { min: Ht[0], max: Ht[Ht.length - 1], marks: ee, step: null, defaultValue: Ht[Ht.length - 1], value: Ht[kt], onChangeComplete: (Gt) => {
601
592
  Rt(Ht.indexOf(Gt));
602
593
  }, onChange: (Gt) => {
603
594
  Rt(Ht.indexOf(Gt));
604
595
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
605
- ] }) : null, me = "grow flex flex-col justify-center gap-3 w-full", fe = m.length === 0 ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
606
- kt ? /* @__PURE__ */ i.jsx(Re, { width: y, colorDomain: Dt, colors: L, colorLegendTitle: rt, setSelectedColor: N, showNAColor: !1, className: c?.colorLegend }) : null,
607
- /* @__PURE__ */ i.jsx(Ke, { ref: v, children: qt && Kt ? /* @__PURE__ */ i.jsx(M, { data: bt !== void 0 ? bt === "total" ? ze(ve(m, at.dateFormat || "yyyy").filter((Gt) => at.enabled ? Gt.date === ye(new Date(Ht[Mt]), at.dateFormat || "yyyy") : Gt).filter((Gt) => lt ? !Gt.size.every(zi) : Gt), ji, [st || "asc"]) : ze(ve(m, at.dateFormat || "yyyy").filter((Gt) => at.enabled ? Gt.date === ye(new Date(Ht[Mt]), at.dateFormat || "yyyy") : Gt).filter((Gt) => lt ? !Gt.size.every(Li) : Gt), (Gt) => _t(Gt.size[bt]) ? -1 / 0 : Gt.size[bt], [st || "asc"]) : ve(m, at.dateFormat || "yyyy").filter((Gt) => lt ? !Gt.size.every(Vi) : Gt), barColors: L, width: qt, height: Kt, suffix: J, prefix: j, showValues: ht, barPadding: g, showTicks: Z, leftMargin: w, rightMargin: it, topMargin: W, bottomMargin: Y, truncateBy: _, showLabels: Ct, tooltip: H, onSeriesMouseOver: O, refValues: q, maxValue: _t(a) ? Math.max(...m.map(ki)) < 0 ? 0 : Math.max(...m.map(Oi)) : a, minValue: _t(s) ? Math.min(...m.map(Ai)) >= 0 ? 0 : Math.min(...m.map(vi)) : s, onSeriesMouseClick: n, selectedColor: Jt, labelOrder: x, rtl: X === "he" || X === "ar", maxBarThickness: U, resetSelectionOnDoubleClick: vt, detailsOnClick: Yt, barAxisTitle: E, noOfTicks: wt, valueColor: Bt, styles: r, classNames: c, colorDomain: Dt, animate: At === !0 ? {
596
+ ] }) : null, me = "grow flex flex-col justify-center gap-3 w-full", fe = m.length === 0 ? /* @__PURE__ */ i.jsx(Re, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
597
+ Mt ? /* @__PURE__ */ i.jsx(We, { width: y, colorDomain: zt, colors: C, colorLegendTitle: nt, setSelectedColor: z, showNAColor: !1, className: c?.colorLegend }) : null,
598
+ /* @__PURE__ */ i.jsx(Je, { ref: v, children: qt && Kt ? /* @__PURE__ */ i.jsx(O, { data: bt !== void 0 ? bt === "total" ? ze(ve(m, lt.dateFormat || "yyyy").filter((Gt) => lt.enabled ? Gt.date === ye(new Date(Ht[kt]), lt.dateFormat || "yyyy") : Gt).filter((Gt) => ot ? !Gt.size.every(zi) : Gt), Di, [it || "asc"]) : ze(ve(m, lt.dateFormat || "yyyy").filter((Gt) => lt.enabled ? Gt.date === ye(new Date(Ht[kt]), lt.dateFormat || "yyyy") : Gt).filter((Gt) => ot ? !Gt.size.every(Vi) : Gt), (Gt) => _t(Gt.size[bt]) ? -1 / 0 : Gt.size[bt], [it || "asc"]) : ve(m, lt.dateFormat || "yyyy").filter((Gt) => ot ? !Gt.size.every(Ci) : Gt), barColors: C, width: qt, height: Kt, suffix: U, prefix: V, showValues: ht, barPadding: g, showTicks: Q, leftMargin: w, rightMargin: et, topMargin: G, bottomMargin: F, truncateBy: Z, showLabels: Ct, tooltip: xt, onSeriesMouseOver: B, refValues: R, maxValue: _t(u) ? Math.max(...m.map(ki)) < 0 ? 0 : Math.max(...m.map($i)) : u, minValue: _t(s) ? Math.min(...m.map(wi)) >= 0 ? 0 : Math.min(...m.map(bi)) : s, onSeriesMouseClick: o, selectedColor: Jt, labelOrder: x, rtl: P === "he" || P === "ar", maxBarThickness: q, resetSelectionOnDoubleClick: vt, detailsOnClick: Yt, barAxisTitle: X, noOfTicks: wt, valueColor: Bt, styles: n, classNames: c, colorDomain: zt, animate: At === !0 ? {
608
599
  duration: 0.5,
609
600
  once: !0,
610
601
  amount: 0.5
@@ -616,158 +607,158 @@ function bi(e) {
616
607
  ] });
617
608
  let re;
618
609
  t[15] !== fe ? (re = /* @__PURE__ */ i.jsx("div", { className: me, children: fe }), t[15] = fe, t[16] = re) : re = t[16];
619
- let oe;
620
- t[17] !== c?.footnote || t[18] !== c?.source || t[19] !== P || t[20] !== St || t[21] !== r?.footnote || t[22] !== r?.source || t[23] !== y ? (oe = St || P ? /* @__PURE__ */ i.jsx(We, { styles: {
621
- footnote: r?.footnote,
622
- source: r?.source
610
+ let ae;
611
+ t[17] !== c?.footnote || t[18] !== c?.source || t[19] !== I || t[20] !== St || t[21] !== n?.footnote || t[22] !== n?.source || t[23] !== y ? (ae = St || I ? /* @__PURE__ */ i.jsx(Ge, { styles: {
612
+ footnote: n?.footnote,
613
+ source: n?.source
623
614
  }, classNames: {
624
615
  footnote: c?.footnote,
625
616
  source: c?.source
626
- }, sources: St, footNote: P, width: y }) : null, t[17] = c?.footnote, t[18] = c?.source, t[19] = P, t[20] = St, t[21] = r?.footnote, t[22] = r?.source, t[23] = y, t[24] = oe) : oe = t[24];
617
+ }, sources: St, footNote: I, width: y }) : null, t[17] = c?.footnote, t[18] = c?.source, t[19] = I, t[20] = St, t[21] = n?.footnote, t[22] = n?.source, t[23] = y, t[24] = ae) : ae = t[24];
627
618
  let le;
628
- return t[25] !== z || t[26] !== ct || t[27] !== ot || t[28] !== I || t[29] !== T || t[30] !== X || t[31] !== ft || t[32] !== xt || t[33] !== R || t[34] !== Vt || t[35] !== l || t[36] !== ie || t[37] !== se || t[38] !== re || t[39] !== oe || t[40] !== pt || t[41] !== y ? (le = /* @__PURE__ */ i.jsxs(z, { className: Vt, style: l, id: I, ref: k, "aria-label": ct, backgroundColor: ot, theme: pt, language: X, minHeight: ft, width: y, height: T, relativeHeight: R, padding: xt, children: [
619
+ return t[25] !== L || t[26] !== rt || t[27] !== st || t[28] !== H || t[29] !== j || t[30] !== P || t[31] !== ft || t[32] !== dt || t[33] !== W || t[34] !== Vt || t[35] !== l || t[36] !== ie || t[37] !== se || t[38] !== re || t[39] !== ae || t[40] !== pt || t[41] !== y ? (le = /* @__PURE__ */ i.jsxs(L, { className: Vt, style: l, id: H, ref: k, "aria-label": rt, backgroundColor: st, theme: pt, language: P, minHeight: ft, width: y, height: j, relativeHeight: W, padding: dt, children: [
629
620
  ie,
630
621
  se,
631
622
  re,
632
- oe
633
- ] }), t[25] = z, t[26] = ct, t[27] = ot, t[28] = I, t[29] = T, t[30] = X, t[31] = ft, t[32] = xt, t[33] = R, t[34] = Vt, t[35] = l, t[36] = ie, t[37] = se, t[38] = re, t[39] = oe, t[40] = pt, t[41] = y, t[42] = le) : le = t[42], le;
623
+ ae
624
+ ] }), t[25] = L, t[26] = rt, t[27] = st, t[28] = H, t[29] = j, t[30] = P, t[31] = ft, t[32] = dt, t[33] = W, t[34] = Vt, t[35] = l, t[36] = ie, t[37] = se, t[38] = re, t[39] = ae, t[40] = pt, t[41] = y, t[42] = le) : le = t[42], le;
625
+ }
626
+ function bi(e) {
627
+ return Math.min(...e.size.filter(vi));
634
628
  }
635
629
  function vi(e) {
636
- return Math.min(...e.size.filter(wi));
630
+ return !_t(e);
637
631
  }
638
632
  function wi(e) {
639
- return !_t(e);
633
+ return Math.min(...e.size.filter(Ai));
640
634
  }
641
635
  function Ai(e) {
642
- return Math.min(...e.size.filter($i));
636
+ return !_t(e);
643
637
  }
644
638
  function $i(e) {
645
- return !_t(e);
639
+ return Math.max(...e.size.filter(Oi));
646
640
  }
647
641
  function Oi(e) {
648
- return Math.max(...e.size.filter(Mi));
649
- }
650
- function Mi(e) {
651
642
  return !_t(e);
652
643
  }
653
644
  function ki(e) {
654
- return Math.max(...e.size.filter(Ci));
645
+ return Math.max(...e.size.filter(Mi));
655
646
  }
656
- function Ci(e) {
647
+ function Mi(e) {
657
648
  return !_t(e);
658
649
  }
659
- function Vi(e) {
650
+ function Ci(e) {
660
651
  return e == null;
661
652
  }
662
- function Li(e) {
653
+ function Vi(e) {
663
654
  return e == null;
664
655
  }
665
- function ji(e) {
666
- return ne(e.size.filter(Di));
667
- }
668
656
  function Di(e) {
657
+ return oe(e.size.filter(Li));
658
+ }
659
+ function Li(e) {
669
660
  return !_t(e);
670
661
  }
671
662
  function zi(e) {
672
663
  return e == null;
673
664
  }
674
- function Ni(e) {
665
+ function ji(e) {
675
666
  return e !== void 0;
676
667
  }
677
- function Ti(e) {
668
+ function Ni(e) {
678
669
  return e !== void 0;
679
670
  }
680
- function Ii(e) {
671
+ function Ti(e) {
681
672
  return e.data;
682
673
  }
683
- function Si(e) {
674
+ function Ii(e) {
684
675
  return e !== void 0;
685
676
  }
686
- function Bi(e) {
677
+ function Si(e) {
687
678
  return e.data;
688
679
  }
689
- function Pi(e, t) {
690
- return _e(e, t);
680
+ function Bi(e, t) {
681
+ return Ze(e, t);
691
682
  }
692
- function Fi(e) {
693
- const t = xe.c(125), {
683
+ function Pi(e) {
684
+ const t = xe.c(126), {
694
685
  data: m,
695
686
  barColor: D,
696
687
  suffix: Xt,
697
688
  prefix: St,
698
689
  barPadding: gt,
699
- showValues: tt,
700
- showTicks: ut,
701
- truncateBy: C,
702
- width: T,
690
+ showValues: _,
691
+ showTicks: ct,
692
+ truncateBy: M,
693
+ width: j,
703
694
  height: y,
704
- colorDomain: P,
705
- topMargin: Dt,
706
- bottomMargin: rt,
707
- leftMargin: zt,
708
- rightMargin: F,
709
- showLabels: et,
710
- tooltip: dt,
711
- onSeriesMouseOver: xt,
695
+ colorDomain: I,
696
+ topMargin: zt,
697
+ bottomMargin: nt,
698
+ leftMargin: jt,
699
+ rightMargin: S,
700
+ showLabels: tt,
701
+ tooltip: ut,
702
+ onSeriesMouseOver: dt,
712
703
  refValues: Tt,
713
704
  selectedColor: w,
714
- highlightedDataPoints: it,
715
- maxValue: W,
716
- minValue: Y,
717
- onSeriesMouseClick: K,
718
- labelOrder: R,
719
- rtl: H,
720
- maxBarThickness: O,
721
- minBarThickness: q,
722
- resetSelectionOnDoubleClick: I,
723
- detailsOnClick: a,
705
+ highlightedDataPoints: et,
706
+ maxValue: G,
707
+ minValue: F,
708
+ onSeriesMouseClick: J,
709
+ labelOrder: W,
710
+ rtl: xt,
711
+ maxBarThickness: B,
712
+ minBarThickness: R,
713
+ resetSelectionOnDoubleClick: H,
714
+ detailsOnClick: u,
724
715
  barAxisTitle: s,
725
- valueColor: n,
726
- noOfTicks: u,
727
- styles: d,
728
- classNames: f,
716
+ valueColor: o,
717
+ noOfTicks: d,
718
+ styles: r,
719
+ classNames: h,
729
720
  animate: x,
730
- dimmedOpacity: $,
731
- precision: Q,
732
- customLayers: U,
733
- naLabel: ct
734
- } = e, Ft = Dt === void 0 ? 25 : Dt, Yt = rt === void 0 ? 10 : rt, E = zt === void 0 ? 100 : zt, yt = F === void 0 ? 40 : F, Bt = de(null);
735
- let r;
736
- t[0] !== x.amount || t[1] !== x.once ? (r = {
721
+ dimmedOpacity: A,
722
+ precision: K,
723
+ customLayers: q,
724
+ naLabel: rt
725
+ } = e, Ft = zt === void 0 ? 25 : zt, Yt = nt === void 0 ? 10 : nt, X = jt === void 0 ? 100 : jt, yt = S === void 0 ? 40 : S, Bt = de(null);
726
+ let n;
727
+ t[0] !== x.amount || t[1] !== x.once ? (n = {
737
728
  once: x.once,
738
729
  amount: x.amount
739
- }, t[0] = x.amount, t[1] = x.once, t[2] = r) : r = t[2];
740
- const c = Ve(Bt, r), [B, h] = Wt(void 0), [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), mt = s ? Ft + 25 : Ft;
741
- let L;
742
- t[3] !== Yt || t[4] !== E || t[5] !== yt || t[6] !== mt ? (L = {
730
+ }, t[0] = x.amount, t[1] = x.once, t[2] = n) : n = t[2];
731
+ const c = Ce(Bt, n), [T, f] = Wt(void 0), [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), mt = s ? Ft + 25 : Ft;
732
+ let C;
733
+ t[3] !== Yt || t[4] !== X || t[5] !== yt || t[6] !== mt ? (C = {
743
734
  top: mt,
744
735
  bottom: Yt,
745
- left: E,
736
+ left: X,
746
737
  right: yt
747
- }, t[3] = Yt, t[4] = E, t[5] = yt, t[6] = mt, t[7] = L) : L = t[7];
748
- const g = L, Z = T - g.left - g.right, _ = y - g.top - g.bottom;
749
- let J, j, ht, kt, ot, Ct, G, nt, X, ft, pt, vt, wt, lt;
750
- if (t[8] !== x || t[9] !== s || t[10] !== D || t[11] !== gt || t[12] !== f?.graphObjectValues || t[13] !== f?.xAxis?.gridLines || t[14] !== f?.xAxis?.labels || t[15] !== f?.xAxis?.title || t[16] !== f?.yAxis?.axis || t[17] !== f?.yAxis?.labels || t[18] !== P || t[19] !== U || t[20] !== m || t[21] !== a || t[22] !== $ || t[23] !== _ || t[24] !== Z || t[25] !== y || t[26] !== it || t[27] !== c || t[28] !== R || t[29] !== g.bottom || t[30] !== g.left || t[31] !== g.top || t[32] !== O || t[33] !== W || t[34] !== q || t[35] !== Y || t[36] !== V || t[37] !== ct || t[38] !== u || t[39] !== K || t[40] !== xt || t[41] !== Q || t[42] !== St || t[43] !== Tt || t[44] !== I || t[45] !== H || t[46] !== w || t[47] !== et || t[48] !== ut || t[49] !== tt || t[50] !== d?.graphObjectValues || t[51] !== d?.xAxis?.gridLines || t[52] !== d?.xAxis?.labels || t[53] !== d?.xAxis?.title || t[54] !== d?.yAxis?.axis || t[55] !== d?.yAxis?.labels || t[56] !== Xt || t[57] !== Ft || t[58] !== C || t[59] !== n || t[60] !== T) {
751
- let M;
752
- t[75] !== R ? (M = (o, p) => ({
753
- ...o,
754
- id: R ? `${o.label}` : `${p}`
755
- }), t[75] = R, t[76] = M) : M = t[76];
756
- const qt = m.map(M), Nt = Le().domain([Y, W]).range([0, Z]).nice(), Kt = R || qt.map(Ki), jt = ge().domain(Kt).range([0, q ? Math.max(_, q * Kt.length) : O ? Math.min(_, O * Kt.length) : _]).paddingInner(gt), Qt = Nt.ticks(u);
757
- j = Zt.svg, G = Bt, nt = `${T}px`, X = `${y}px`, ft = `0 0 ${T} ${y}`, pt = "ltr", ht = `translate(${g.left},${g.top})`, kt = ut ? /* @__PURE__ */ i.jsx(Fe, { values: Qt.filter(Ji), x: Qt.filter(Ui).map((o) => Nt(o)), y1: 0 - Ft, y2: _ + g.bottom, styles: {
758
- gridLines: d?.xAxis?.gridLines,
759
- labels: d?.xAxis?.labels
738
+ }, t[3] = Yt, t[4] = X, t[5] = yt, t[6] = mt, t[7] = C) : C = t[7];
739
+ const g = C, Q = j - g.left - g.right, Z = y - g.top - g.bottom;
740
+ let U, V, ht, Mt, st, Ct, E, at, P, ft, pt, vt, wt, ot;
741
+ if (t[8] !== x || t[9] !== s || t[10] !== D || t[11] !== gt || t[12] !== h?.graphObjectValues || t[13] !== h?.xAxis?.gridLines || t[14] !== h?.xAxis?.labels || t[15] !== h?.xAxis?.title || t[16] !== h?.yAxis?.axis || t[17] !== h?.yAxis?.labels || t[18] !== I || t[19] !== q || t[20] !== m || t[21] !== u || t[22] !== A || t[23] !== Z || t[24] !== Q || t[25] !== y || t[26] !== et || t[27] !== c || t[28] !== W || t[29] !== g.bottom || t[30] !== g.left || t[31] !== g.top || t[32] !== B || t[33] !== G || t[34] !== R || t[35] !== F || t[36] !== Y || t[37] !== rt || t[38] !== d || t[39] !== J || t[40] !== dt || t[41] !== K || t[42] !== St || t[43] !== Tt || t[44] !== H || t[45] !== xt || t[46] !== w || t[47] !== tt || t[48] !== ct || t[49] !== _ || t[50] !== r?.graphObjectValues || t[51] !== r?.xAxis?.gridLines || t[52] !== r?.xAxis?.labels || t[53] !== r?.xAxis?.title || t[54] !== r?.yAxis?.axis || t[55] !== r?.yAxis?.labels || t[56] !== Xt || t[57] !== Ft || t[58] !== M || t[59] !== o || t[60] !== j) {
742
+ let O;
743
+ t[75] !== W ? (O = (a, p) => ({
744
+ ...a,
745
+ id: W ? `${a.label}` : `${p}`
746
+ }), t[75] = W, t[76] = O) : O = t[76];
747
+ const qt = m.map(O), Nt = Ve().domain([F, G]).range([0, Q]).nice(), Kt = W || qt.map(Ji), Lt = ge().domain(Kt).range([0, R ? Math.max(Z, R * Kt.length) : B ? Math.min(Z, B * Kt.length) : Z]).paddingInner(gt), Qt = Nt.ticks(d);
748
+ V = Zt.svg, E = Bt, at = `${j}px`, P = `${y}px`, ft = `0 0 ${j} ${y}`, pt = "ltr", ht = `translate(${g.left},${g.top})`, Mt = ct ? /* @__PURE__ */ i.jsx(Pe, { values: Qt.filter(Ui), x: Qt.filter(qi).map((a) => Nt(a)), y1: 0 - Ft, y2: Z + g.bottom, styles: {
749
+ gridLines: r?.xAxis?.gridLines,
750
+ labels: r?.xAxis?.labels
760
751
  }, classNames: {
761
- gridLines: f?.xAxis?.gridLines,
762
- labels: f?.xAxis?.labels
763
- }, suffix: Xt, prefix: St, labelType: "secondary", showGridLines: !0, precision: Q }) : null;
764
- const Ut = Z / 2, Ht = 0 - g.top + 15, Mt = d?.xAxis?.title, Rt = f?.xAxis?.title;
765
- t[77] !== s || t[78] !== Ut || t[79] !== Ht || t[80] !== Mt || t[81] !== Rt ? (ot = /* @__PURE__ */ i.jsx(Ce, { x: Ut, y: Ht, style: Mt, className: Rt, text: s }), t[77] = s, t[78] = Ut, t[79] = Ht, t[80] = Mt, t[81] = Rt, t[82] = ot) : ot = t[82], t[83] !== U ? (Ct = U.filter(qi).map(Ri), t[83] = U, t[84] = Ct) : Ct = t[84], J = je, vt = qt.map((o) => _t(jt(o.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", variants: {
752
+ gridLines: h?.xAxis?.gridLines,
753
+ labels: h?.xAxis?.labels
754
+ }, suffix: Xt, prefix: St, labelType: "secondary", showGridLines: !0, precision: K }) : null;
755
+ const Ut = Q / 2, Ht = 0 - g.top + 15, kt = r?.xAxis?.title, Rt = h?.xAxis?.title;
756
+ t[77] !== s || t[78] !== Ut || t[79] !== Ht || t[80] !== kt || t[81] !== Rt ? (st = /* @__PURE__ */ i.jsx(ke, { x: Ut, y: Ht, style: kt, className: Rt, text: s }), t[77] = s, t[78] = Ut, t[79] = Ht, t[80] = kt, t[81] = Rt, t[82] = st) : st = t[82], t[83] !== q ? (Ct = q.filter(Ri).map(Wi), t[83] = q, t[84] = Ct) : Ct = t[84], U = De, vt = qt.map((a) => _t(Lt(a.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", variants: {
766
757
  initial: {
767
- opacity: w ? o.color && D[P.indexOf(o.color)] === w ? 1 : $ : it.length !== 0 ? it.indexOf(o.label) !== -1 ? 0.85 : $ : 0.85
758
+ opacity: w ? a.color && D[I.indexOf(a.color)] === w ? 1 : A : et.length !== 0 ? et.indexOf(a.label) !== -1 ? 0.85 : A : 0.85
768
759
  },
769
760
  whileInView: {
770
- opacity: w ? o.color && D[P.indexOf(o.color)] === w ? 1 : $ : it.length !== 0 ? it.indexOf(o.label) !== -1 ? 0.85 : $ : 0.85,
761
+ opacity: w ? a.color && D[I.indexOf(a.color)] === w ? 1 : A : et.length !== 0 ? et.indexOf(a.label) !== -1 ? 0.85 : A : 0.85,
771
762
  transition: {
772
763
  duration: x.duration
773
764
  }
@@ -778,26 +769,26 @@ function Fi(e) {
778
769
  duration: x.duration
779
770
  }
780
771
  }, onMouseEnter: (p) => {
781
- h(o), st(p.clientY), Lt(p.clientX), xt?.(o);
772
+ f(a), it(p.clientY), Dt(p.clientX), dt?.(a);
782
773
  }, onClick: () => {
783
- (K || a) && (Ae(V, o) && I ? (S(void 0), K?.(void 0)) : (S(o), K?.(o)));
774
+ (J || u) && (Ae(Y, a) && H ? (N(void 0), J?.(void 0)) : (N(a), J?.(a)));
784
775
  }, onMouseMove: (p) => {
785
- h(o), st(p.clientY), Lt(p.clientX);
776
+ f(a), it(p.clientY), Dt(p.clientX);
786
777
  }, onMouseLeave: () => {
787
- h(void 0), Lt(void 0), st(void 0), xt?.(void 0);
778
+ f(void 0), Dt(void 0), it(void 0), dt?.(void 0);
788
779
  }, children: [
789
- o.size ? /* @__PURE__ */ i.jsx(Zt.rect, { variants: {
780
+ a.size ? /* @__PURE__ */ i.jsx(Zt.rect, { variants: {
790
781
  initial: {
791
782
  width: 0,
792
783
  x: Nt(0),
793
- y: jt(`${o.id}`),
794
- fill: m.filter(Wi).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray
784
+ y: Lt(`${a.id}`),
785
+ fill: m.filter(Gi).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray
795
786
  },
796
787
  whileInView: {
797
- width: o.size >= 0 ? Nt(o.size) - Nt(0) : Nt(0) - Nt(o.size),
798
- x: o.size >= 0 ? Nt(0) : Nt(o.size),
799
- y: jt(`${o.id}`),
800
- fill: m.filter(Gi).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray,
788
+ width: a.size >= 0 ? Nt(a.size) - Nt(0) : Nt(0) - Nt(a.size),
789
+ x: a.size >= 0 ? Nt(0) : Nt(a.size),
790
+ y: Lt(`${a.id}`),
791
+ fill: m.filter(Ei).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray,
801
792
  transition: {
802
793
  duration: x.duration
803
794
  }
@@ -808,23 +799,23 @@ function Fi(e) {
808
799
  transition: {
809
800
  duration: x.duration
810
801
  }
811
- }, height: jt.bandwidth() }) : null,
812
- et ? /* @__PURE__ */ i.jsx(Pe, { value: `${o.label}`.length < C ? `${o.label}` : `${`${o.label}`.substring(0, C)}...`, y: jt(o.id) || 0, x: (o.size || 0) < 0 ? Nt(0) : 0 - g.left, width: (o.size || 0) < 0 ? T - Nt(0) : Nt(0) + g.left, height: jt.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: f?.yAxis?.labels, animate: x, isInView: c }) : null,
813
- tt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
814
- textAnchor: o.size && o.size < 0 ? "end" : "start",
815
- ...d?.graphObjectValues || {}
816
- }, className: pe("graph-value text-sm", !n && D.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", f?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
802
+ }, height: Lt.bandwidth() }) : null,
803
+ tt ? /* @__PURE__ */ i.jsx(Be, { value: `${a.label}`.length < M ? `${a.label}` : `${`${a.label}`.substring(0, M)}...`, y: Lt(a.id) || 0, x: (a.size || 0) < 0 ? Nt(0) : 0 - g.left, width: (a.size || 0) < 0 ? j - Nt(0) : Nt(0) + g.left, height: Lt.bandwidth(), alignment: a.size && a.size < 0 ? "left" : "right", style: r?.yAxis?.labels, className: h?.yAxis?.labels, animate: x, isInView: c }) : null,
804
+ _ ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
805
+ textAnchor: a.size && a.size < 0 ? "end" : "start",
806
+ ...r?.graphObjectValues || {}
807
+ }, className: pe("graph-value text-sm", !o && D.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", h?.graphObjectValues), dx: a.size && a.size < 0 ? -5 : 5, dy: "0.33em", variants: {
817
808
  initial: {
818
809
  x: Nt(0),
819
- y: jt(`${o.id}`) + jt.bandwidth() / 2,
810
+ y: Lt(`${a.id}`) + Lt.bandwidth() / 2,
820
811
  opacity: 0,
821
- fill: n || (m.filter(Ei).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray)
812
+ fill: o || (m.filter(Yi).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray)
822
813
  },
823
814
  whileInView: {
824
- x: o.size ? Nt(o.size) : Nt(0),
815
+ x: a.size ? Nt(a.size) : Nt(0),
825
816
  opacity: 1,
826
- y: jt(`${o.id}`) + jt.bandwidth() / 2,
827
- fill: n || (m.filter(Yi).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray),
817
+ y: Lt(`${a.id}`) + Lt.bandwidth() / 2,
818
+ fill: o || (m.filter(Xi).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray),
828
819
  transition: {
829
820
  duration: x.duration
830
821
  }
@@ -834,59 +825,58 @@ function Fi(e) {
834
825
  transition: {
835
826
  duration: x.duration
836
827
  }
837
- }, children: ue(o.size, ct, Q, St, Xt) }) : null
838
- ] }, o.label));
839
- const Jt = f?.yAxis?.axis;
840
- let N;
841
- t[85] !== Jt ? (N = {
828
+ }, children: ue(a.size, rt, K, St, Xt) }) : null
829
+ ] }, a.label));
830
+ const Jt = h?.yAxis?.axis;
831
+ let z;
832
+ t[85] !== Jt ? (z = {
842
833
  axis: Jt
843
- }, t[85] = Jt, t[86] = N) : N = t[86];
844
- const v = d?.yAxis?.axis;
834
+ }, t[85] = Jt, t[86] = z) : z = t[86];
835
+ const v = r?.yAxis?.axis;
845
836
  let k;
846
837
  t[87] !== v ? (k = {
847
838
  axis: v
848
- }, t[87] = v, t[88] = k) : k = t[88], wt = /* @__PURE__ */ i.jsx(ke, { x1: Nt(Y < 0 ? 0 : Y), x2: Nt(Y < 0 ? 0 : Y), y1: -2.5, y2: _ + g.bottom, classNames: N, styles: k }), lt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((o, p) => /* @__PURE__ */ i.jsx(He, { text: o.text, color: o.color, x: Nt(o.value), y1: 0 - g.top, y2: _ + g.bottom, textSide: Nt(o.value) > Z * 0.75 || H ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: x, isInView: c }, p)) }) : null, t[8] = x, t[9] = s, t[10] = D, t[11] = gt, t[12] = f?.graphObjectValues, t[13] = f?.xAxis?.gridLines, t[14] = f?.xAxis?.labels, t[15] = f?.xAxis?.title, t[16] = f?.yAxis?.axis, t[17] = f?.yAxis?.labels, t[18] = P, t[19] = U, t[20] = m, t[21] = a, t[22] = $, t[23] = _, t[24] = Z, t[25] = y, t[26] = it, t[27] = c, t[28] = R, t[29] = g.bottom, t[30] = g.left, t[31] = g.top, t[32] = O, t[33] = W, t[34] = q, t[35] = Y, t[36] = V, t[37] = ct, t[38] = u, t[39] = K, t[40] = xt, t[41] = Q, t[42] = St, t[43] = Tt, t[44] = I, t[45] = H, t[46] = w, t[47] = et, t[48] = ut, t[49] = tt, t[50] = d?.graphObjectValues, t[51] = d?.xAxis?.gridLines, t[52] = d?.xAxis?.labels, t[53] = d?.xAxis?.title, t[54] = d?.yAxis?.axis, t[55] = d?.yAxis?.labels, t[56] = Xt, t[57] = Ft, t[58] = C, t[59] = n, t[60] = T, t[61] = J, t[62] = j, t[63] = ht, t[64] = kt, t[65] = ot, t[66] = Ct, t[67] = G, t[68] = nt, t[69] = X, t[70] = ft, t[71] = pt, t[72] = vt, t[73] = wt, t[74] = lt;
839
+ }, t[87] = v, t[88] = k) : k = t[88], wt = /* @__PURE__ */ i.jsx(Oe, { x1: Nt(F < 0 ? 0 : F), x2: Nt(F < 0 ? 0 : F), y1: -2.5, y2: Z + g.bottom, classNames: z, styles: k }), ot = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((a, p) => /* @__PURE__ */ i.jsx(Fe, { text: a.text, color: a.color, x: Nt(a.value), y1: 0 - g.top, y2: Z + g.bottom, textSide: Nt(a.value) > Q * 0.75 || xt ? "left" : "right", classNames: a.classNames, styles: a.styles, animate: x, isInView: c }, p)) }) : null, t[8] = x, t[9] = s, t[10] = D, t[11] = gt, t[12] = h?.graphObjectValues, t[13] = h?.xAxis?.gridLines, t[14] = h?.xAxis?.labels, t[15] = h?.xAxis?.title, t[16] = h?.yAxis?.axis, t[17] = h?.yAxis?.labels, t[18] = I, t[19] = q, t[20] = m, t[21] = u, t[22] = A, t[23] = Z, t[24] = Q, t[25] = y, t[26] = et, t[27] = c, t[28] = W, t[29] = g.bottom, t[30] = g.left, t[31] = g.top, t[32] = B, t[33] = G, t[34] = R, t[35] = F, t[36] = Y, t[37] = rt, t[38] = d, t[39] = J, t[40] = dt, t[41] = K, t[42] = St, t[43] = Tt, t[44] = H, t[45] = xt, t[46] = w, t[47] = tt, t[48] = ct, t[49] = _, t[50] = r?.graphObjectValues, t[51] = r?.xAxis?.gridLines, t[52] = r?.xAxis?.labels, t[53] = r?.xAxis?.title, t[54] = r?.yAxis?.axis, t[55] = r?.yAxis?.labels, t[56] = Xt, t[57] = Ft, t[58] = M, t[59] = o, t[60] = j, t[61] = U, t[62] = V, t[63] = ht, t[64] = Mt, t[65] = st, t[66] = Ct, t[67] = E, t[68] = at, t[69] = P, t[70] = ft, t[71] = pt, t[72] = vt, t[73] = wt, t[74] = ot;
849
840
  } else
850
- J = t[61], j = t[62], ht = t[63], kt = t[64], ot = t[65], Ct = t[66], G = t[67], nt = t[68], X = t[69], ft = t[70], pt = t[71], vt = t[72], wt = t[73], lt = t[74];
841
+ U = t[61], V = t[62], ht = t[63], Mt = t[64], st = t[65], Ct = t[66], E = t[67], at = t[68], P = t[69], ft = t[70], pt = t[71], vt = t[72], wt = t[73], ot = t[74];
851
842
  let At;
852
- t[89] !== J || t[90] !== vt || t[91] !== wt || t[92] !== lt ? (At = /* @__PURE__ */ i.jsxs(J, { children: [
843
+ t[89] !== U || t[90] !== vt || t[91] !== wt || t[92] !== ot ? (At = /* @__PURE__ */ i.jsxs(U, { children: [
853
844
  vt,
854
845
  wt,
855
- lt
856
- ] }), t[89] = J, t[90] = vt, t[91] = wt, t[92] = lt, t[93] = At) : At = t[93];
846
+ ot
847
+ ] }), t[89] = U, t[90] = vt, t[91] = wt, t[92] = ot, t[93] = At) : At = t[93];
857
848
  let $t;
858
- t[94] !== U ? ($t = U.filter(Xi).map(Hi), t[94] = U, t[95] = $t) : $t = t[95];
849
+ t[94] !== q ? ($t = q.filter(Hi).map(Fi), t[94] = q, t[95] = $t) : $t = t[95];
859
850
  let Ot;
860
- t[96] !== ht || t[97] !== kt || t[98] !== ot || t[99] !== Ct || t[100] !== At || t[101] !== $t ? (Ot = /* @__PURE__ */ i.jsxs("g", { transform: ht, children: [
861
- kt,
862
- ot,
851
+ t[96] !== ht || t[97] !== Mt || t[98] !== st || t[99] !== Ct || t[100] !== At || t[101] !== $t ? (Ot = /* @__PURE__ */ i.jsxs("g", { transform: ht, children: [
852
+ Mt,
853
+ st,
863
854
  Ct,
864
855
  At,
865
856
  $t
866
- ] }), t[96] = ht, t[97] = kt, t[98] = ot, t[99] = Ct, t[100] = At, t[101] = $t, t[102] = Ot) : Ot = t[102];
857
+ ] }), t[96] = ht, t[97] = Mt, t[98] = st, t[99] = Ct, t[100] = At, t[101] = $t, t[102] = Ot) : Ot = t[102];
867
858
  let b;
868
- t[103] !== j || t[104] !== G || t[105] !== nt || t[106] !== X || t[107] !== ft || t[108] !== pt || t[109] !== Ot ? (b = /* @__PURE__ */ i.jsx(j, { ref: G, width: nt, height: X, viewBox: ft, direction: pt, children: Ot }), t[103] = j, t[104] = G, t[105] = nt, t[106] = X, t[107] = ft, t[108] = pt, t[109] = Ot, t[110] = b) : b = t[110];
869
- let at;
870
- t[111] !== f?.tooltip || t[112] !== A || t[113] !== bt || t[114] !== B || t[115] !== d?.tooltip || t[116] !== dt ? (at = B && dt && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: B, body: dt, xPos: A, yPos: bt, backgroundStyle: d?.tooltip, className: f?.tooltip }) : null, t[111] = f?.tooltip, t[112] = A, t[113] = bt, t[114] = B, t[115] = d?.tooltip, t[116] = dt, t[117] = at) : at = t[117];
859
+ t[103] !== V || t[104] !== E || t[105] !== at || t[106] !== P || t[107] !== ft || t[108] !== pt || t[109] !== Ot ? (b = /* @__PURE__ */ i.jsx(V, { ref: E, width: at, height: P, viewBox: ft, direction: pt, children: Ot }), t[103] = V, t[104] = E, t[105] = at, t[106] = P, t[107] = ft, t[108] = pt, t[109] = Ot, t[110] = b) : b = t[110];
860
+ let lt;
861
+ t[111] !== h?.tooltip || t[112] !== $ || t[113] !== bt || t[114] !== T || t[115] !== r?.tooltip || t[116] !== ut ? (lt = T && ut && $ && bt ? /* @__PURE__ */ i.jsx($e, { data: T, body: ut, xPos: $, yPos: bt, backgroundStyle: r?.tooltip, className: h?.tooltip }) : null, t[111] = h?.tooltip, t[112] = $, t[113] = bt, t[114] = T, t[115] = r?.tooltip, t[116] = ut, t[117] = lt) : lt = t[117];
871
862
  let It;
872
- t[118] !== a || t[119] !== V ? (It = a && V !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: V !== void 0, onClose: () => {
873
- S(void 0);
874
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof a == "string" ? {
875
- __html: Me(a, V)
876
- } : void 0, children: typeof a == "function" ? a(V) : null }) }) : null, t[118] = a, t[119] = V, t[120] = It) : It = t[120];
863
+ t[118] !== h?.modal || t[119] !== u || t[120] !== Y ? (It = u && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: u, data: Y, setData: N, className: h?.modal }) : null, t[118] = h?.modal, t[119] = u, t[120] = Y, t[121] = It) : It = t[121];
877
864
  let Et;
878
- return t[121] !== b || t[122] !== at || t[123] !== It ? (Et = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
865
+ return t[122] !== b || t[123] !== lt || t[124] !== It ? (Et = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
879
866
  b,
880
- at,
867
+ lt,
881
868
  It
882
- ] }), t[121] = b, t[122] = at, t[123] = It, t[124] = Et) : Et = t[124], Et;
869
+ ] }), t[122] = b, t[123] = lt, t[124] = It, t[125] = Et) : Et = t[125], Et;
883
870
  }
884
- function Hi(e) {
871
+ function Fi(e) {
885
872
  return e.layer;
886
873
  }
887
- function Xi(e) {
874
+ function Hi(e) {
888
875
  return e.position === "after";
889
876
  }
877
+ function Xi(e) {
878
+ return e.color;
879
+ }
890
880
  function Yi(e) {
891
881
  return e.color;
892
882
  }
@@ -897,122 +887,119 @@ function Gi(e) {
897
887
  return e.color;
898
888
  }
899
889
  function Wi(e) {
900
- return e.color;
890
+ return e.layer;
901
891
  }
902
892
  function Ri(e) {
903
- return e.layer;
893
+ return e.position === "before";
904
894
  }
905
895
  function qi(e) {
906
- return e.position === "before";
896
+ return e !== 0;
907
897
  }
908
898
  function Ui(e) {
909
899
  return e !== 0;
910
900
  }
911
901
  function Ji(e) {
912
- return e !== 0;
913
- }
914
- function Ki(e) {
915
902
  return `${e.id}`;
916
903
  }
917
- function Qi(e) {
918
- const t = xe.c(133), {
904
+ function Ki(e) {
905
+ const t = xe.c(134), {
919
906
  leftMargin: m,
920
907
  rightMargin: D,
921
908
  topMargin: Xt,
922
909
  bottomMargin: St,
923
910
  data: gt,
924
- width: tt,
925
- height: ut,
926
- barColor: C,
927
- suffix: T,
911
+ width: _,
912
+ height: ct,
913
+ barColor: M,
914
+ suffix: j,
928
915
  prefix: y,
929
- barPadding: P,
930
- showLabels: Dt,
931
- showValues: rt,
932
- showTicks: zt,
933
- colorDomain: F,
934
- truncateBy: et,
935
- tooltip: dt,
936
- onSeriesMouseOver: xt,
916
+ barPadding: I,
917
+ showLabels: zt,
918
+ showValues: nt,
919
+ showTicks: jt,
920
+ colorDomain: S,
921
+ truncateBy: tt,
922
+ tooltip: ut,
923
+ onSeriesMouseOver: dt,
937
924
  refValues: Tt,
938
925
  selectedColor: w,
939
- maxValue: it,
940
- minValue: W,
941
- highlightedDataPoints: Y,
942
- onSeriesMouseClick: K,
943
- labelOrder: R,
944
- maxBarThickness: H,
945
- minBarThickness: O,
946
- resetSelectionOnDoubleClick: q,
947
- detailsOnClick: I,
948
- barAxisTitle: a,
926
+ maxValue: et,
927
+ minValue: G,
928
+ highlightedDataPoints: F,
929
+ onSeriesMouseClick: J,
930
+ labelOrder: W,
931
+ maxBarThickness: xt,
932
+ minBarThickness: B,
933
+ resetSelectionOnDoubleClick: R,
934
+ detailsOnClick: H,
935
+ barAxisTitle: u,
949
936
  valueColor: s,
950
- noOfTicks: n,
951
- styles: u,
952
- classNames: d,
953
- dimmedOpacity: f,
937
+ noOfTicks: o,
938
+ styles: d,
939
+ classNames: r,
940
+ dimmedOpacity: h,
954
941
  animate: x,
955
- precision: $,
956
- customLayers: Q,
957
- naLabel: U
958
- } = e, ct = m === void 0 ? 20 : m, Ft = D === void 0 ? 20 : D, Yt = Xt === void 0 ? 20 : Xt, E = St === void 0 ? 25 : St, yt = de(null);
942
+ precision: A,
943
+ customLayers: K,
944
+ naLabel: q
945
+ } = e, rt = m === void 0 ? 20 : m, Ft = D === void 0 ? 20 : D, Yt = Xt === void 0 ? 20 : Xt, X = St === void 0 ? 25 : St, yt = de(null);
959
946
  let Bt;
960
947
  t[0] !== x.amount || t[1] !== x.once ? (Bt = {
961
948
  once: x.once,
962
949
  amount: x.amount
963
950
  }, t[0] = x.amount, t[1] = x.once, t[2] = Bt) : Bt = t[2];
964
- const r = Ve(yt, Bt), c = a ? ct + 30 : ct;
965
- let B;
966
- t[3] !== E || t[4] !== Ft || t[5] !== c || t[6] !== Yt ? (B = {
951
+ const n = Ce(yt, Bt), c = u ? rt + 30 : rt;
952
+ let T;
953
+ t[3] !== X || t[4] !== Ft || t[5] !== c || t[6] !== Yt ? (T = {
967
954
  top: Yt,
968
- bottom: E,
955
+ bottom: X,
969
956
  left: c,
970
957
  right: Ft
971
- }, t[3] = E, t[4] = Ft, t[5] = c, t[6] = Yt, t[7] = B) : B = t[7];
972
- const h = B, [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), [mt, L] = Wt(void 0), g = tt - h.left - h.right, Z = ut - h.top - h.bottom;
973
- let _, J, j, ht, kt, ot, Ct, G, nt, X, ft, pt, vt, wt;
974
- if (t[8] !== x || t[9] !== a || t[10] !== C || t[11] !== P || t[12] !== d?.graphObjectValues || t[13] !== d?.xAxis?.axis || t[14] !== d?.xAxis?.labels || t[15] !== d?.yAxis?.gridLines || t[16] !== d?.yAxis?.labels || t[17] !== d?.yAxis?.title || t[18] !== F || t[19] !== Q || t[20] !== gt || t[21] !== I || t[22] !== f || t[23] !== Z || t[24] !== g || t[25] !== ut || t[26] !== Y || t[27] !== r || t[28] !== R || t[29] !== ct || t[30] !== h.bottom || t[31] !== h.left || t[32] !== h.right || t[33] !== h.top || t[34] !== H || t[35] !== it || t[36] !== O || t[37] !== W || t[38] !== A || t[39] !== U || t[40] !== n || t[41] !== K || t[42] !== xt || t[43] !== $ || t[44] !== y || t[45] !== Tt || t[46] !== q || t[47] !== w || t[48] !== Dt || t[49] !== zt || t[50] !== rt || t[51] !== u?.graphObjectValues || t[52] !== u?.xAxis?.axis || t[53] !== u?.xAxis?.labels || t[54] !== u?.yAxis?.gridLines || t[55] !== u?.yAxis?.labels || t[56] !== u?.yAxis?.title || t[57] !== T || t[58] !== et || t[59] !== s || t[60] !== tt) {
975
- const Et = Le().domain([W, it]).range([Z, 0]).nice();
976
- let M;
977
- t[75] !== R ? (M = (l, ie) => ({
958
+ }, t[3] = X, t[4] = Ft, t[5] = c, t[6] = Yt, t[7] = T) : T = t[7];
959
+ const f = T, [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), [mt, C] = Wt(void 0), g = _ - f.left - f.right, Q = ct - f.top - f.bottom;
960
+ let Z, U, V, ht, Mt, st, Ct, E, at, P, ft, pt, vt, wt;
961
+ if (t[8] !== x || t[9] !== u || t[10] !== M || t[11] !== I || t[12] !== r?.graphObjectValues || t[13] !== r?.xAxis?.axis || t[14] !== r?.xAxis?.labels || t[15] !== r?.yAxis?.gridLines || t[16] !== r?.yAxis?.labels || t[17] !== r?.yAxis?.title || t[18] !== S || t[19] !== K || t[20] !== gt || t[21] !== H || t[22] !== h || t[23] !== Q || t[24] !== g || t[25] !== ct || t[26] !== F || t[27] !== n || t[28] !== W || t[29] !== rt || t[30] !== f.bottom || t[31] !== f.left || t[32] !== f.right || t[33] !== f.top || t[34] !== xt || t[35] !== et || t[36] !== B || t[37] !== G || t[38] !== $ || t[39] !== q || t[40] !== o || t[41] !== J || t[42] !== dt || t[43] !== A || t[44] !== y || t[45] !== Tt || t[46] !== R || t[47] !== w || t[48] !== zt || t[49] !== jt || t[50] !== nt || t[51] !== d?.graphObjectValues || t[52] !== d?.xAxis?.axis || t[53] !== d?.xAxis?.labels || t[54] !== d?.yAxis?.gridLines || t[55] !== d?.yAxis?.labels || t[56] !== d?.yAxis?.title || t[57] !== j || t[58] !== tt || t[59] !== s || t[60] !== _) {
962
+ const Et = Ve().domain([G, et]).range([Q, 0]).nice();
963
+ let O;
964
+ t[75] !== W ? (O = (l, ie) => ({
978
965
  ...l,
979
- id: R ? `${l.label}` : `${ie}`
980
- }), t[75] = R, t[76] = M) : M = t[76];
981
- const qt = gt.map(M), Nt = R || qt.map(rs), Kt = ge().domain(Nt).range([0, O ? Math.max(g, O * Nt.length) : H ? Math.min(g, H * Nt.length) : g]).paddingInner(P), jt = Et.ticks(n);
982
- J = Zt.svg, Ct = yt, G = `${tt}px`, nt = `${ut}px`, X = `0 0 ${tt} ${ut}`, ft = "ltr", wt = `translate(${h.left},${h.top})`;
983
- const Qt = Et(W < 0 ? 0 : W), Ut = Et(W < 0 ? 0 : W), Ht = W < 0 ? 0 : W;
984
- let Mt;
985
- t[77] !== U || t[78] !== $ || t[79] !== y || t[80] !== T || t[81] !== Ht ? (Mt = ue(Ht, U, $, y, T), t[77] = U, t[78] = $, t[79] = y, t[80] = T, t[81] = Ht, t[82] = Mt) : Mt = t[82];
986
- const Rt = d?.xAxis?.axis, Jt = d?.yAxis?.labels;
987
- let N;
988
- t[83] !== Rt || t[84] !== Jt ? (N = {
966
+ id: W ? `${l.label}` : `${ie}`
967
+ }), t[75] = W, t[76] = O) : O = t[76];
968
+ const qt = gt.map(O), Nt = W || qt.map(ns), Kt = ge().domain(Nt).range([0, B ? Math.max(g, B * Nt.length) : xt ? Math.min(g, xt * Nt.length) : g]).paddingInner(I), Lt = Et.ticks(o);
969
+ U = Zt.svg, Ct = yt, E = `${_}px`, at = `${ct}px`, P = `0 0 ${_} ${ct}`, ft = "ltr", wt = `translate(${f.left},${f.top})`;
970
+ const Qt = Et(G < 0 ? 0 : G), Ut = Et(G < 0 ? 0 : G), Ht = G < 0 ? 0 : G;
971
+ let kt;
972
+ t[77] !== q || t[78] !== A || t[79] !== y || t[80] !== j || t[81] !== Ht ? (kt = ue(Ht, q, A, y, j), t[77] = q, t[78] = A, t[79] = y, t[80] = j, t[81] = Ht, t[82] = kt) : kt = t[82];
973
+ const Rt = r?.xAxis?.axis, Jt = r?.yAxis?.labels;
974
+ let z;
975
+ t[83] !== Rt || t[84] !== Jt ? (z = {
989
976
  axis: Rt,
990
977
  label: Jt
991
- }, t[83] = Rt, t[84] = Jt, t[85] = N) : N = t[85];
992
- const v = u?.xAxis?.axis, k = u?.yAxis?.labels;
993
- let o;
994
- t[86] !== v || t[87] !== k ? (o = {
978
+ }, t[83] = Rt, t[84] = Jt, t[85] = z) : z = t[85];
979
+ const v = d?.xAxis?.axis, k = d?.yAxis?.labels;
980
+ let a;
981
+ t[86] !== v || t[87] !== k ? (a = {
995
982
  axis: v,
996
983
  label: k
997
- }, t[86] = v, t[87] = k, t[88] = o) : o = t[88], j = /* @__PURE__ */ i.jsx(ke, { y1: Qt, y2: Ut, x1: 0 - ct, x2: g + h.right, label: Mt, labelPos: {
998
- x: 0 - ct,
984
+ }, t[86] = v, t[87] = k, t[88] = a) : a = t[88], V = /* @__PURE__ */ i.jsx(Oe, { y1: Qt, y2: Ut, x1: 0 - rt, x2: g + f.right, label: kt, labelPos: {
985
+ x: 0 - rt,
999
986
  dx: 0,
1000
- dy: it < 0 ? "1em" : -5,
1001
- y: Et(W < 0 ? 0 : W)
1002
- }, classNames: N, styles: o }), ht = zt ? /* @__PURE__ */ i.jsx(Ye, { values: jt.filter(as), y: jt.filter(ls).map((l) => Et(l)), x1: 0 - ct, x2: g + h.right, styles: {
1003
- gridLines: u?.yAxis?.gridLines,
1004
- labels: u?.yAxis?.labels
1005
- }, classNames: {
987
+ dy: et < 0 ? "1em" : -5,
988
+ y: Et(G < 0 ? 0 : G)
989
+ }, classNames: z, styles: a }), ht = jt ? /* @__PURE__ */ i.jsx(Xe, { values: Lt.filter(ls), y: Lt.filter(os).map((l) => Et(l)), x1: 0 - rt, x2: g + f.right, styles: {
1006
990
  gridLines: d?.yAxis?.gridLines,
1007
991
  labels: d?.yAxis?.labels
1008
- }, suffix: T, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: $ }) : null;
1009
- const p = 0 - ct - 15, ee = Z / 2, z = u?.yAxis?.title, Vt = d?.yAxis?.title;
1010
- t[89] !== a || t[90] !== p || t[91] !== ee || t[92] !== z || t[93] !== Vt ? (kt = /* @__PURE__ */ i.jsx(Ce, { x: p, y: ee, style: z, className: Vt, text: a, rotate90: !0 }), t[89] = a, t[90] = p, t[91] = ee, t[92] = z, t[93] = Vt, t[94] = kt) : kt = t[94], t[95] !== Q ? (ot = Q.filter(ns).map(os), t[95] = Q, t[96] = ot) : ot = t[96], _ = je, pt = qt.map((l, ie) => _t(Kt(l.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
992
+ }, classNames: {
993
+ gridLines: r?.yAxis?.gridLines,
994
+ labels: r?.yAxis?.labels
995
+ }, suffix: j, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: A }) : null;
996
+ const p = 0 - rt - 15, ee = Q / 2, L = d?.yAxis?.title, Vt = r?.yAxis?.title;
997
+ t[89] !== u || t[90] !== p || t[91] !== ee || t[92] !== L || t[93] !== Vt ? (Mt = /* @__PURE__ */ i.jsx(ke, { x: p, y: ee, style: L, className: Vt, text: u, rotate90: !0 }), t[89] = u, t[90] = p, t[91] = ee, t[92] = L, t[93] = Vt, t[94] = Mt) : Mt = t[94], t[95] !== K ? (st = K.filter(as).map(ss), t[95] = K, t[96] = st) : st = t[96], Z = De, pt = qt.map((l, ie) => _t(Kt(l.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: n ? "whileInView" : "initial", variants: {
1011
998
  initial: {
1012
- opacity: w ? l.color && C[F.indexOf(l.color)] === w ? 1 : f : Y.length !== 0 ? Y.indexOf(l.label) !== -1 ? 0.85 : f : 0.85
999
+ opacity: w ? l.color && M[S.indexOf(l.color)] === w ? 1 : h : F.length !== 0 ? F.indexOf(l.label) !== -1 ? 0.85 : h : 0.85
1013
1000
  },
1014
1001
  whileInView: {
1015
- opacity: w ? l.color && C[F.indexOf(l.color)] === w ? 1 : f : Y.length !== 0 ? Y.indexOf(l.label) !== -1 ? 0.85 : f : 0.85,
1002
+ opacity: w ? l.color && M[S.indexOf(l.color)] === w ? 1 : h : F.length !== 0 ? F.indexOf(l.label) !== -1 ? 0.85 : h : 0.85,
1016
1003
  transition: {
1017
1004
  duration: x.duration
1018
1005
  }
@@ -1023,26 +1010,26 @@ function Qi(e) {
1023
1010
  duration: x.duration
1024
1011
  }
1025
1012
  }, onMouseEnter: (se) => {
1026
- S(l), L(se.clientY), st(se.clientX), xt?.(l);
1013
+ N(l), C(se.clientY), it(se.clientX), dt?.(l);
1027
1014
  }, onClick: () => {
1028
- (K || I) && (Ae(A, l) && q ? (Lt(void 0), K?.(void 0)) : (Lt(l), K?.(l)));
1015
+ (J || H) && (Ae($, l) && R ? (Dt(void 0), J?.(void 0)) : (Dt(l), J?.(l)));
1029
1016
  }, onMouseMove: (se) => {
1030
- S(l), L(se.clientY), st(se.clientX);
1017
+ N(l), C(se.clientY), it(se.clientX);
1031
1018
  }, onMouseLeave: () => {
1032
- S(void 0), st(void 0), L(void 0), xt?.(void 0);
1019
+ N(void 0), it(void 0), C(void 0), dt?.(void 0);
1033
1020
  }, children: [
1034
- l.size ? /* @__PURE__ */ i.jsx(Zt.rect, { width: Kt.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1021
+ l.size ? /* @__PURE__ */ i.jsx(Zt.rect, { width: Kt.bandwidth(), initial: "initial", animate: n ? "whileInView" : "initial", variants: {
1035
1022
  initial: {
1036
1023
  height: 0,
1037
1024
  x: Kt(`${l.id}`),
1038
1025
  y: Et(0),
1039
- fill: gt.filter(ss).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray
1026
+ fill: gt.filter(is).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray
1040
1027
  },
1041
1028
  whileInView: {
1042
1029
  height: l.size ? Math.abs(Et(l.size) - Et(0)) : 0,
1043
1030
  y: l.size && l.size > 0 ? Et(l.size) : Et(0),
1044
1031
  x: Kt(`${l.id}`),
1045
- fill: gt.filter(is).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray,
1032
+ fill: gt.filter(es).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray,
1046
1033
  transition: {
1047
1034
  duration: x.duration
1048
1035
  }
@@ -1054,74 +1041,73 @@ function Qi(e) {
1054
1041
  duration: x.duration
1055
1042
  }
1056
1043
  } }) : null,
1057
- Dt ? /* @__PURE__ */ i.jsx(Ee, { value: `${l.label}`.length < et ? `${l.label}` : `${`${l.label}`.substring(0, et)}...`, y: (l.size || 0) < 0 ? 0 : Et(0) + 5, x: Kt(`${l.id}`), width: Kt.bandwidth(), height: (l.size || 0) < 0 ? Et(0) - 5 : h.bottom, style: u?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (l.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
1058
- rt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1044
+ zt ? /* @__PURE__ */ i.jsx(Ye, { value: `${l.label}`.length < tt ? `${l.label}` : `${`${l.label}`.substring(0, tt)}...`, y: (l.size || 0) < 0 ? 0 : Et(0) + 5, x: Kt(`${l.id}`), width: Kt.bandwidth(), height: (l.size || 0) < 0 ? Et(0) - 5 : f.bottom, style: d?.xAxis?.labels, className: r?.xAxis?.labels, alignment: (l.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: n }) : null,
1045
+ nt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1059
1046
  textAnchor: "middle",
1060
- ...u?.graphObjectValues || {}
1061
- }, className: pe("graph-value text-sm", !s && C.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: l.size ? l.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1047
+ ...d?.graphObjectValues || {}
1048
+ }, className: pe("graph-value text-sm", !s && M.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", r?.graphObjectValues), dy: l.size ? l.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1062
1049
  initial: {
1063
1050
  x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
1064
1051
  y: Et(0),
1065
1052
  opacity: 0,
1066
- fill: s || (gt.filter(es).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray)
1053
+ fill: s || (gt.filter(ts).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray)
1067
1054
  },
1068
1055
  whileInView: {
1069
1056
  x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
1070
1057
  y: Et(l.size || 0),
1071
- fill: s || (gt.filter(ts).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray),
1058
+ fill: s || (gt.filter(_i).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray),
1072
1059
  opacity: 1,
1073
1060
  transition: {
1074
1061
  duration: x.duration
1075
1062
  }
1076
1063
  }
1077
- }, initial: "initial", animate: r ? "whileInView" : "initial", exit: {
1064
+ }, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
1078
1065
  opacity: 0,
1079
1066
  transition: {
1080
1067
  duration: x.duration
1081
1068
  }
1082
- }, children: ue(l.size, U, $, y, T) }) : null
1083
- ] }, l.label)), vt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((l, ie) => /* @__PURE__ */ i.jsx(Xe, { text: l.text, color: l.color, y: Et(l.value), x1: 0 - ct, x2: g + h.right, classNames: l.classNames, styles: l.styles, animate: x, isInView: r }, ie)) }) : null, t[8] = x, t[9] = a, t[10] = C, t[11] = P, t[12] = d?.graphObjectValues, t[13] = d?.xAxis?.axis, t[14] = d?.xAxis?.labels, t[15] = d?.yAxis?.gridLines, t[16] = d?.yAxis?.labels, t[17] = d?.yAxis?.title, t[18] = F, t[19] = Q, t[20] = gt, t[21] = I, t[22] = f, t[23] = Z, t[24] = g, t[25] = ut, t[26] = Y, t[27] = r, t[28] = R, t[29] = ct, t[30] = h.bottom, t[31] = h.left, t[32] = h.right, t[33] = h.top, t[34] = H, t[35] = it, t[36] = O, t[37] = W, t[38] = A, t[39] = U, t[40] = n, t[41] = K, t[42] = xt, t[43] = $, t[44] = y, t[45] = Tt, t[46] = q, t[47] = w, t[48] = Dt, t[49] = zt, t[50] = rt, t[51] = u?.graphObjectValues, t[52] = u?.xAxis?.axis, t[53] = u?.xAxis?.labels, t[54] = u?.yAxis?.gridLines, t[55] = u?.yAxis?.labels, t[56] = u?.yAxis?.title, t[57] = T, t[58] = et, t[59] = s, t[60] = tt, t[61] = _, t[62] = J, t[63] = j, t[64] = ht, t[65] = kt, t[66] = ot, t[67] = Ct, t[68] = G, t[69] = nt, t[70] = X, t[71] = ft, t[72] = pt, t[73] = vt, t[74] = wt;
1069
+ }, children: ue(l.size, q, A, y, j) }) : null
1070
+ ] }, l.label)), vt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((l, ie) => /* @__PURE__ */ i.jsx(He, { text: l.text, color: l.color, y: Et(l.value), x1: 0 - rt, x2: g + f.right, classNames: l.classNames, styles: l.styles, animate: x, isInView: n }, ie)) }) : null, t[8] = x, t[9] = u, t[10] = M, t[11] = I, t[12] = r?.graphObjectValues, t[13] = r?.xAxis?.axis, t[14] = r?.xAxis?.labels, t[15] = r?.yAxis?.gridLines, t[16] = r?.yAxis?.labels, t[17] = r?.yAxis?.title, t[18] = S, t[19] = K, t[20] = gt, t[21] = H, t[22] = h, t[23] = Q, t[24] = g, t[25] = ct, t[26] = F, t[27] = n, t[28] = W, t[29] = rt, t[30] = f.bottom, t[31] = f.left, t[32] = f.right, t[33] = f.top, t[34] = xt, t[35] = et, t[36] = B, t[37] = G, t[38] = $, t[39] = q, t[40] = o, t[41] = J, t[42] = dt, t[43] = A, t[44] = y, t[45] = Tt, t[46] = R, t[47] = w, t[48] = zt, t[49] = jt, t[50] = nt, t[51] = d?.graphObjectValues, t[52] = d?.xAxis?.axis, t[53] = d?.xAxis?.labels, t[54] = d?.yAxis?.gridLines, t[55] = d?.yAxis?.labels, t[56] = d?.yAxis?.title, t[57] = j, t[58] = tt, t[59] = s, t[60] = _, t[61] = Z, t[62] = U, t[63] = V, t[64] = ht, t[65] = Mt, t[66] = st, t[67] = Ct, t[68] = E, t[69] = at, t[70] = P, t[71] = ft, t[72] = pt, t[73] = vt, t[74] = wt;
1084
1071
  } else
1085
- _ = t[61], J = t[62], j = t[63], ht = t[64], kt = t[65], ot = t[66], Ct = t[67], G = t[68], nt = t[69], X = t[70], ft = t[71], pt = t[72], vt = t[73], wt = t[74];
1086
- let lt;
1087
- t[97] !== _ || t[98] !== pt || t[99] !== vt ? (lt = /* @__PURE__ */ i.jsxs(_, { children: [
1072
+ Z = t[61], U = t[62], V = t[63], ht = t[64], Mt = t[65], st = t[66], Ct = t[67], E = t[68], at = t[69], P = t[70], ft = t[71], pt = t[72], vt = t[73], wt = t[74];
1073
+ let ot;
1074
+ t[97] !== Z || t[98] !== pt || t[99] !== vt ? (ot = /* @__PURE__ */ i.jsxs(Z, { children: [
1088
1075
  pt,
1089
1076
  vt
1090
- ] }), t[97] = _, t[98] = pt, t[99] = vt, t[100] = lt) : lt = t[100];
1077
+ ] }), t[97] = Z, t[98] = pt, t[99] = vt, t[100] = ot) : ot = t[100];
1091
1078
  let At;
1092
- t[101] !== Q ? (At = Q.filter(_i).map(Zi), t[101] = Q, t[102] = At) : At = t[102];
1079
+ t[101] !== K ? (At = K.filter(Zi).map(Qi), t[101] = K, t[102] = At) : At = t[102];
1093
1080
  let $t;
1094
- t[103] !== j || t[104] !== ht || t[105] !== kt || t[106] !== ot || t[107] !== lt || t[108] !== At || t[109] !== wt ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: wt, children: [
1095
- j,
1081
+ t[103] !== V || t[104] !== ht || t[105] !== Mt || t[106] !== st || t[107] !== ot || t[108] !== At || t[109] !== wt ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: wt, children: [
1082
+ V,
1096
1083
  ht,
1097
- kt,
1084
+ Mt,
1085
+ st,
1098
1086
  ot,
1099
- lt,
1100
1087
  At
1101
- ] }), t[103] = j, t[104] = ht, t[105] = kt, t[106] = ot, t[107] = lt, t[108] = At, t[109] = wt, t[110] = $t) : $t = t[110];
1088
+ ] }), t[103] = V, t[104] = ht, t[105] = Mt, t[106] = st, t[107] = ot, t[108] = At, t[109] = wt, t[110] = $t) : $t = t[110];
1102
1089
  let Ot;
1103
- t[111] !== J || t[112] !== Ct || t[113] !== G || t[114] !== nt || t[115] !== X || t[116] !== ft || t[117] !== $t ? (Ot = /* @__PURE__ */ i.jsx(J, { ref: Ct, width: G, height: nt, viewBox: X, direction: ft, children: $t }), t[111] = J, t[112] = Ct, t[113] = G, t[114] = nt, t[115] = X, t[116] = ft, t[117] = $t, t[118] = Ot) : Ot = t[118];
1090
+ t[111] !== U || t[112] !== Ct || t[113] !== E || t[114] !== at || t[115] !== P || t[116] !== ft || t[117] !== $t ? (Ot = /* @__PURE__ */ i.jsx(U, { ref: Ct, width: E, height: at, viewBox: P, direction: ft, children: $t }), t[111] = U, t[112] = Ct, t[113] = E, t[114] = at, t[115] = P, t[116] = ft, t[117] = $t, t[118] = Ot) : Ot = t[118];
1104
1091
  let b;
1105
- t[119] !== d?.tooltip || t[120] !== bt || t[121] !== mt || t[122] !== V || t[123] !== u?.tooltip || t[124] !== dt ? (b = V && dt && bt && mt ? /* @__PURE__ */ i.jsx(Oe, { data: V, body: dt, xPos: bt, yPos: mt, backgroundStyle: u?.tooltip, className: d?.tooltip }) : null, t[119] = d?.tooltip, t[120] = bt, t[121] = mt, t[122] = V, t[123] = u?.tooltip, t[124] = dt, t[125] = b) : b = t[125];
1106
- let at;
1107
- t[126] !== I || t[127] !== A ? (at = I && A !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: A !== void 0, onClose: () => {
1108
- Lt(void 0);
1109
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof I == "string" ? {
1110
- __html: Me(I, A)
1111
- } : void 0, children: typeof I == "function" ? I(A) : null }) }) : null, t[126] = I, t[127] = A, t[128] = at) : at = t[128];
1092
+ t[119] !== r?.tooltip || t[120] !== bt || t[121] !== mt || t[122] !== Y || t[123] !== d?.tooltip || t[124] !== ut ? (b = Y && ut && bt && mt ? /* @__PURE__ */ i.jsx($e, { data: Y, body: ut, xPos: bt, yPos: mt, backgroundStyle: d?.tooltip, className: r?.tooltip }) : null, t[119] = r?.tooltip, t[120] = bt, t[121] = mt, t[122] = Y, t[123] = d?.tooltip, t[124] = ut, t[125] = b) : b = t[125];
1093
+ let lt;
1094
+ t[126] !== r?.modal || t[127] !== H || t[128] !== $ ? (lt = H && $ !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: H, data: $, setData: Dt, className: r?.modal }) : null, t[126] = r?.modal, t[127] = H, t[128] = $, t[129] = lt) : lt = t[129];
1112
1095
  let It;
1113
- return t[129] !== Ot || t[130] !== b || t[131] !== at ? (It = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1096
+ return t[130] !== Ot || t[131] !== b || t[132] !== lt ? (It = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1114
1097
  Ot,
1115
1098
  b,
1116
- at
1117
- ] }), t[129] = Ot, t[130] = b, t[131] = at, t[132] = It) : It = t[132], It;
1099
+ lt
1100
+ ] }), t[130] = Ot, t[131] = b, t[132] = lt, t[133] = It) : It = t[133], It;
1118
1101
  }
1119
- function Zi(e) {
1102
+ function Qi(e) {
1120
1103
  return e.layer;
1121
1104
  }
1122
- function _i(e) {
1105
+ function Zi(e) {
1123
1106
  return e.position === "after";
1124
1107
  }
1108
+ function _i(e) {
1109
+ return e.color;
1110
+ }
1125
1111
  function ts(e) {
1126
1112
  return e.color;
1127
1113
  }
@@ -1132,129 +1118,126 @@ function is(e) {
1132
1118
  return e.color;
1133
1119
  }
1134
1120
  function ss(e) {
1135
- return e.color;
1136
- }
1137
- function os(e) {
1138
1121
  return e.layer;
1139
1122
  }
1140
- function ns(e) {
1123
+ function as(e) {
1141
1124
  return e.position === "before";
1142
1125
  }
1143
- function ls(e) {
1126
+ function os(e) {
1144
1127
  return e !== 0;
1145
1128
  }
1146
- function as(e) {
1129
+ function ls(e) {
1147
1130
  return e !== 0;
1148
1131
  }
1149
- function rs(e) {
1132
+ function ns(e) {
1150
1133
  return `${e.id}`;
1151
1134
  }
1152
- function cs(e) {
1135
+ function rs(e) {
1153
1136
  const t = xe.c(43), {
1154
1137
  data: m,
1155
1138
  graphTitle: D,
1156
1139
  colors: Xt,
1157
1140
  suffix: St,
1158
1141
  sources: gt,
1159
- prefix: tt,
1160
- graphDescription: ut,
1161
- barPadding: C,
1162
- showValues: T,
1142
+ prefix: _,
1143
+ graphDescription: ct,
1144
+ barPadding: M,
1145
+ showValues: j,
1163
1146
  showTicks: y,
1164
- truncateBy: P,
1165
- height: Dt,
1166
- width: rt,
1167
- footNote: zt,
1168
- colorDomain: F,
1169
- colorLegendTitle: et,
1170
- highlightedDataPoints: dt,
1171
- padding: xt,
1147
+ truncateBy: I,
1148
+ height: zt,
1149
+ width: nt,
1150
+ footNote: jt,
1151
+ colorDomain: S,
1152
+ colorLegendTitle: tt,
1153
+ highlightedDataPoints: ut,
1154
+ padding: dt,
1172
1155
  backgroundColor: Tt,
1173
1156
  topMargin: w,
1174
- bottomMargin: it,
1175
- leftMargin: W,
1176
- rightMargin: Y,
1177
- showLabels: K,
1178
- relativeHeight: R,
1179
- tooltip: H,
1180
- onSeriesMouseOver: O,
1181
- refValues: q,
1182
- showColorScale: I,
1183
- graphID: a,
1157
+ bottomMargin: et,
1158
+ leftMargin: G,
1159
+ rightMargin: F,
1160
+ showLabels: J,
1161
+ relativeHeight: W,
1162
+ tooltip: xt,
1163
+ onSeriesMouseOver: B,
1164
+ refValues: R,
1165
+ showColorScale: H,
1166
+ graphID: u,
1184
1167
  maxValue: s,
1185
- minValue: n,
1186
- onSeriesMouseClick: u,
1187
- graphDownload: d,
1188
- dataDownload: f,
1168
+ minValue: o,
1169
+ onSeriesMouseClick: d,
1170
+ graphDownload: r,
1171
+ dataDownload: h,
1189
1172
  sortData: x,
1190
- labelOrder: $,
1191
- language: Q,
1192
- showNAColor: U,
1193
- minHeight: ct,
1173
+ labelOrder: A,
1174
+ language: K,
1175
+ showNAColor: q,
1176
+ minHeight: rt,
1194
1177
  theme: Ft,
1195
1178
  maxBarThickness: Yt,
1196
- maxNumberOfBars: E,
1179
+ maxNumberOfBars: X,
1197
1180
  minBarThickness: yt,
1198
1181
  ariaLabel: Bt,
1199
- resetSelectionOnDoubleClick: r,
1182
+ resetSelectionOnDoubleClick: n,
1200
1183
  detailsOnClick: c,
1201
- barAxisTitle: B,
1202
- noOfTicks: h,
1203
- valueColor: V,
1204
- styles: S,
1205
- classNames: A,
1206
- filterNA: Lt,
1184
+ barAxisTitle: T,
1185
+ noOfTicks: f,
1186
+ valueColor: Y,
1187
+ styles: N,
1188
+ classNames: $,
1189
+ filterNA: Dt,
1207
1190
  animate: bt,
1208
- dimmedOpacity: st,
1191
+ dimmedOpacity: it,
1209
1192
  precision: mt,
1210
- customLayers: L,
1193
+ customLayers: C,
1211
1194
  timeline: g,
1212
- naLabel: Z,
1213
- orientation: _
1214
- } = e, J = St === void 0 ? "" : St, j = tt === void 0 ? "" : tt, ht = C === void 0 ? 0.25 : C, kt = T === void 0 ? !0 : T, ot = y === void 0 ? !0 : y, Ct = P === void 0 ? 999 : P;
1215
- let G;
1216
- t[0] !== dt ? (G = dt === void 0 ? [] : dt, t[0] = dt, t[1] = G) : G = t[1];
1217
- const nt = G, X = Tt === void 0 ? !1 : Tt, ft = K === void 0 ? !0 : K, pt = I === void 0 ? !0 : I, vt = d === void 0 ? !1 : d, wt = f === void 0 ? !1 : f, lt = Q === void 0 ? "en" : Q, At = U === void 0 ? !0 : U, $t = ct === void 0 ? 0 : ct, Ot = Ft === void 0 ? "light" : Ft, b = r === void 0 ? !0 : r, at = h === void 0 ? 5 : h, It = Lt === void 0 ? !0 : Lt, Et = bt === void 0 ? !1 : bt, M = st === void 0 ? 0.3 : st, qt = mt === void 0 ? 2 : mt;
1195
+ naLabel: Q,
1196
+ orientation: Z
1197
+ } = e, U = St === void 0 ? "" : St, V = _ === void 0 ? "" : _, ht = M === void 0 ? 0.25 : M, Mt = j === void 0 ? !0 : j, st = y === void 0 ? !0 : y, Ct = I === void 0 ? 999 : I;
1198
+ let E;
1199
+ t[0] !== ut ? (E = ut === void 0 ? [] : ut, t[0] = ut, t[1] = E) : E = t[1];
1200
+ const at = E, P = Tt === void 0 ? !1 : Tt, ft = J === void 0 ? !0 : J, pt = H === void 0 ? !0 : H, vt = r === void 0 ? !1 : r, wt = h === void 0 ? !1 : h, ot = K === void 0 ? "en" : K, At = q === void 0 ? !0 : q, $t = rt === void 0 ? 0 : rt, Ot = Ft === void 0 ? "light" : Ft, b = n === void 0 ? !0 : n, lt = f === void 0 ? 5 : f, It = Dt === void 0 ? !0 : Dt, Et = bt === void 0 ? !1 : bt, O = it === void 0 ? 0.3 : it, qt = mt === void 0 ? 2 : mt;
1218
1201
  let Nt;
1219
- t[2] !== L ? (Nt = L === void 0 ? [] : L, t[2] = L, t[3] = Nt) : Nt = t[3];
1220
- const Kt = Nt, jt = g === void 0 ? {
1202
+ t[2] !== C ? (Nt = C === void 0 ? [] : C, t[2] = C, t[3] = Nt) : Nt = t[3];
1203
+ const Kt = Nt, Lt = g === void 0 ? {
1221
1204
  enabled: !1,
1222
1205
  autoplay: !1,
1223
1206
  showOnlyActiveDate: !0
1224
- } : g, Qt = Z === void 0 ? "NA" : Z, Ut = _ === void 0 ? "vertical" : _, Ht = Ut === "horizontal" ? Fi : Qi, [Mt, Rt] = Wt(0), [Jt, N] = Wt(0), [v, k] = Wt(jt.autoplay), o = Ze(De(m, "date", !0).map((te) => Be(`${te}`, jt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), ks), [p, ee] = Wt(jt.autoplay ? 0 : o.length - 1), [z, Vt] = Wt(void 0), l = de(null), ie = de(null);
1207
+ } : g, Qt = Q === void 0 ? "NA" : Q, Ut = Z === void 0 ? "vertical" : Z, Ht = Ut === "horizontal" ? Pi : Ki, [kt, Rt] = Wt(0), [Jt, z] = Wt(0), [v, k] = Wt(Lt.autoplay), a = Qe(Le(m, "date", !0).map((te) => Se(`${te}`, Lt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), ks), [p, ee] = Wt(Lt.autoplay ? 0 : a.length - 1), [L, Vt] = Wt(void 0), l = de(null), ie = de(null);
1225
1208
  let se, me;
1226
1209
  t[4] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
1227
1210
  const te = new ResizeObserver((he) => {
1228
- Rt(he[0].target.clientWidth || 620), N(he[0].target.clientHeight || 480);
1211
+ Rt(he[0].target.clientWidth || 620), z(he[0].target.clientHeight || 480);
1229
1212
  });
1230
1213
  return l.current && te.observe(l.current), () => te.disconnect();
1231
1214
  }, me = [], t[4] = se, t[5] = me) : (se = t[4], me = t[5]), we(se, me), we(() => {
1232
1215
  const te = setInterval(() => {
1233
- ee((he) => he < o.length - 1 ? he + 1 : 0);
1234
- }, (jt.speed || 2) * 1e3);
1216
+ ee((he) => he < a.length - 1 ? he + 1 : 0);
1217
+ }, (Lt.speed || 2) * 1e3);
1235
1218
  return v || clearInterval(te), () => clearInterval(te);
1236
- }, [o, v, jt.speed]);
1237
- const fe = Ie(o, p, jt.showOnlyActiveDate, jt.dateFormat || "yyyy"), re = Qe, oe = A?.graphContainer, le = S?.graphContainer;
1219
+ }, [a, v, Lt.speed]);
1220
+ const fe = Te(a, p, Lt.showOnlyActiveDate, Lt.dateFormat || "yyyy"), re = Ke, ae = $?.graphContainer, le = N?.graphContainer;
1238
1221
  let Gt;
1239
- t[6] !== A?.description || t[7] !== A?.title || t[8] !== m || t[9] !== wt || t[10] !== ut || t[11] !== vt || t[12] !== D || t[13] !== S?.description || t[14] !== S?.title || t[15] !== rt ? (Gt = D || ut || vt || wt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
1240
- title: S?.title,
1241
- description: S?.description
1222
+ t[6] !== $?.description || t[7] !== $?.title || t[8] !== m || t[9] !== wt || t[10] !== ct || t[11] !== vt || t[12] !== D || t[13] !== N?.description || t[14] !== N?.title || t[15] !== nt ? (Gt = D || ct || vt || wt ? /* @__PURE__ */ i.jsx(Ee, { styles: {
1223
+ title: N?.title,
1224
+ description: N?.description
1242
1225
  }, classNames: {
1243
- title: A?.title,
1244
- description: A?.description
1245
- }, graphTitle: D, graphDescription: ut, width: rt, graphDownload: vt ? ie : void 0, dataDownload: wt ? m.map(Ms).filter(Os).length > 0 ? m.map($s).filter(As) : m.filter(ws) : null }) : null, t[6] = A?.description, t[7] = A?.title, t[8] = m, t[9] = wt, t[10] = ut, t[11] = vt, t[12] = D, t[13] = S?.description, t[14] = S?.title, t[15] = rt, t[16] = Gt) : Gt = t[16];
1246
- const Pt = jt.enabled && o.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1226
+ title: $?.title,
1227
+ description: $?.description
1228
+ }, graphTitle: D, graphDescription: ct, width: nt, graphDownload: vt ? ie : void 0, dataDownload: wt ? m.map(Os).filter($s).length > 0 ? m.map(As).filter(ws) : m.filter(vs) : null }) : null, t[6] = $?.description, t[7] = $?.title, t[8] = m, t[9] = wt, t[10] = ct, t[11] = vt, t[12] = D, t[13] = N?.description, t[14] = N?.title, t[15] = nt, t[16] = Gt) : Gt = t[16];
1229
+ const Pt = Lt.enabled && a.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1247
1230
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1248
1231
  k(!v);
1249
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": v ? "Click to pause animation" : "Click to play animation", children: v ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
1250
- /* @__PURE__ */ i.jsx(Se, { min: o[0], max: o[o.length - 1], marks: fe, step: null, defaultValue: o[o.length - 1], value: o[p], onChangeComplete: (te) => {
1251
- ee(o.indexOf(te));
1232
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": v ? "Click to pause animation" : "Click to play animation", children: v ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
1233
+ /* @__PURE__ */ i.jsx(Ie, { min: a[0], max: a[a.length - 1], marks: fe, step: null, defaultValue: a[a.length - 1], value: a[p], onChangeComplete: (te) => {
1234
+ ee(a.indexOf(te));
1252
1235
  }, onChange: (te) => {
1253
- ee(o.indexOf(te));
1236
+ ee(a.indexOf(te));
1254
1237
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1255
- ] }) : null, ae = m.length === 0 ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1256
- pt && m.filter(vs).length !== 0 ? /* @__PURE__ */ i.jsx(Re, { width: rt, colorLegendTitle: et, colors: Xt || ce[Ot].categoricalColors.colors, colorDomain: F || De(m, "color", !0), setSelectedColor: Vt, showNAColor: At, className: A?.colorLegend }) : null,
1257
- /* @__PURE__ */ i.jsx(Ke, { ref: l, children: Mt && Jt ? /* @__PURE__ */ i.jsx(Ht, { data: x ? ze(ti(m, jt.dateFormat || "yyyy").filter((te) => jt.enabled ? te.date === ye(new Date(o[p]), jt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Ut === "horizontal" ? 1 : -1) * (1 / 0) : (Ut === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, he) => E ? he < E : !0) : ti(m, jt.dateFormat || "yyyy").filter((te) => jt.enabled ? te.date === ye(new Date(o[p]), jt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te).filter((te, he) => E ? he < E : !0), barColor: m.filter(bs).length === 0 ? Xt ? [Xt] : [ce.primaryColors["blue-600"]] : Xt || ce[Ot].categoricalColors.colors, colorDomain: m.filter(ys).length === 0 ? [] : F || De(m, "color", !0), selectedColor: z, width: Mt, height: Jt, suffix: J, prefix: j, barPadding: ht, showValues: kt, showTicks: ot, leftMargin: W, rightMargin: Y, topMargin: w, bottomMargin: it, truncateBy: Ct, showLabels: ft, tooltip: H, onSeriesMouseOver: O, refValues: q, maxValue: _t(s) ? Math.max(...m.filter(gs).map(ps)) < 0 ? 0 : Math.max(...m.filter(fs).map(hs)) : s, minValue: _t(n) ? Math.min(...m.filter(ms).map(xs)) >= 0 ? 0 : Math.min(...m.filter(ds).map(us)) : n, highlightedDataPoints: nt, onSeriesMouseClick: u, labelOrder: $, rtl: lt === "he" || lt === "ar", maxBarThickness: Yt, minBarThickness: yt, resetSelectionOnDoubleClick: b, detailsOnClick: c, barAxisTitle: B, noOfTicks: at, valueColor: V, classNames: A, styles: S, animate: Et === !0 ? {
1238
+ ] }) : null, ne = m.length === 0 ? /* @__PURE__ */ i.jsx(Re, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1239
+ pt && m.filter(bs).length !== 0 ? /* @__PURE__ */ i.jsx(We, { width: nt, colorLegendTitle: tt, colors: Xt || ce[Ot].categoricalColors.colors, colorDomain: S || Le(m, "color", !0), setSelectedColor: Vt, showNAColor: At, className: $?.colorLegend }) : null,
1240
+ /* @__PURE__ */ i.jsx(Je, { ref: l, children: kt && Jt ? /* @__PURE__ */ i.jsx(Ht, { data: x ? ze(_e(m, Lt.dateFormat || "yyyy").filter((te) => Lt.enabled ? te.date === ye(new Date(a[p]), Lt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Ut === "horizontal" ? 1 : -1) * (1 / 0) : (Ut === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, he) => X ? he < X : !0) : _e(m, Lt.dateFormat || "yyyy").filter((te) => Lt.enabled ? te.date === ye(new Date(a[p]), Lt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te).filter((te, he) => X ? he < X : !0), barColor: m.filter(ys).length === 0 ? Xt ? [Xt] : [ce.primaryColors["blue-600"]] : Xt || ce[Ot].categoricalColors.colors, colorDomain: m.filter(gs).length === 0 ? [] : S || Le(m, "color", !0), selectedColor: L, width: kt, height: Jt, suffix: U, prefix: V, barPadding: ht, showValues: Mt, showTicks: st, leftMargin: G, rightMargin: F, topMargin: w, bottomMargin: et, truncateBy: Ct, showLabels: ft, tooltip: xt, onSeriesMouseOver: B, refValues: R, maxValue: _t(s) ? Math.max(...m.filter(ps).map(fs)) < 0 ? 0 : Math.max(...m.filter(hs).map(ms)) : s, minValue: _t(o) ? Math.min(...m.filter(xs).map(ds)) >= 0 ? 0 : Math.min(...m.filter(us).map(cs)) : o, highlightedDataPoints: at, onSeriesMouseClick: d, labelOrder: A, rtl: ot === "he" || ot === "ar", maxBarThickness: Yt, minBarThickness: yt, resetSelectionOnDoubleClick: b, detailsOnClick: c, barAxisTitle: T, noOfTicks: lt, valueColor: Y, classNames: $, styles: N, animate: Et === !0 ? {
1258
1241
  duration: 0.5,
1259
1242
  once: !0,
1260
1243
  amount: 0.5
@@ -1262,48 +1245,51 @@ function cs(e) {
1262
1245
  duration: 0,
1263
1246
  once: !0,
1264
1247
  amount: 0
1265
- }, dimmedOpacity: M, precision: qt, customLayers: Kt, naLabel: Qt }) : null })
1248
+ }, dimmedOpacity: O, precision: qt, customLayers: Kt, naLabel: Qt }) : null })
1266
1249
  ] });
1267
1250
  let be;
1268
- t[17] !== A?.footnote || t[18] !== A?.source || t[19] !== zt || t[20] !== gt || t[21] !== S?.footnote || t[22] !== S?.source || t[23] !== rt ? (be = gt || zt ? /* @__PURE__ */ i.jsx(We, { sources: gt, footNote: zt, width: rt, styles: {
1269
- footnote: S?.footnote,
1270
- source: S?.source
1251
+ t[17] !== $?.footnote || t[18] !== $?.source || t[19] !== jt || t[20] !== gt || t[21] !== N?.footnote || t[22] !== N?.source || t[23] !== nt ? (be = gt || jt ? /* @__PURE__ */ i.jsx(Ge, { sources: gt, footNote: jt, width: nt, styles: {
1252
+ footnote: N?.footnote,
1253
+ source: N?.source
1271
1254
  }, classNames: {
1272
- footnote: A?.footnote,
1273
- source: A?.source
1274
- } }) : null, t[17] = A?.footnote, t[18] = A?.source, t[19] = zt, t[20] = gt, t[21] = S?.footnote, t[22] = S?.source, t[23] = rt, t[24] = be) : be = t[24];
1275
- let Ne;
1276
- return t[25] !== re || t[26] !== Bt || t[27] !== X || t[28] !== a || t[29] !== Dt || t[30] !== lt || t[31] !== $t || t[32] !== xt || t[33] !== R || t[34] !== oe || t[35] !== le || t[36] !== Gt || t[37] !== Pt || t[38] !== ae || t[39] !== be || t[40] !== Ot || t[41] !== rt ? (Ne = /* @__PURE__ */ i.jsxs(re, { className: oe, style: le, id: a, ref: ie, "aria-label": Bt, backgroundColor: X, theme: Ot, language: lt, minHeight: $t, width: rt, height: Dt, relativeHeight: R, padding: xt, children: [
1255
+ footnote: $?.footnote,
1256
+ source: $?.source
1257
+ } }) : null, t[17] = $?.footnote, t[18] = $?.source, t[19] = jt, t[20] = gt, t[21] = N?.footnote, t[22] = N?.source, t[23] = nt, t[24] = be) : be = t[24];
1258
+ let je;
1259
+ return t[25] !== re || t[26] !== Bt || t[27] !== P || t[28] !== u || t[29] !== zt || t[30] !== ot || t[31] !== $t || t[32] !== dt || t[33] !== W || t[34] !== ae || t[35] !== le || t[36] !== Gt || t[37] !== Pt || t[38] !== ne || t[39] !== be || t[40] !== Ot || t[41] !== nt ? (je = /* @__PURE__ */ i.jsxs(re, { className: ae, style: le, id: u, ref: ie, "aria-label": Bt, backgroundColor: P, theme: Ot, language: ot, minHeight: $t, width: nt, height: zt, relativeHeight: W, padding: dt, children: [
1277
1260
  Gt,
1278
1261
  Pt,
1279
- ae,
1262
+ ne,
1280
1263
  be
1281
- ] }), t[25] = re, t[26] = Bt, t[27] = X, t[28] = a, t[29] = Dt, t[30] = lt, t[31] = $t, t[32] = xt, t[33] = R, t[34] = oe, t[35] = le, t[36] = Gt, t[37] = Pt, t[38] = ae, t[39] = be, t[40] = Ot, t[41] = rt, t[42] = Ne) : Ne = t[42], Ne;
1264
+ ] }), t[25] = re, t[26] = Bt, t[27] = P, t[28] = u, t[29] = zt, t[30] = ot, t[31] = $t, t[32] = dt, t[33] = W, t[34] = ae, t[35] = le, t[36] = Gt, t[37] = Pt, t[38] = ne, t[39] = be, t[40] = Ot, t[41] = nt, t[42] = je) : je = t[42], je;
1282
1265
  }
1283
- function us(e) {
1266
+ function cs(e) {
1284
1267
  return e.size;
1285
1268
  }
1286
- function ds(e) {
1269
+ function us(e) {
1287
1270
  return !_t(e.size);
1288
1271
  }
1289
- function xs(e) {
1272
+ function ds(e) {
1290
1273
  return e.size;
1291
1274
  }
1292
- function ms(e) {
1275
+ function xs(e) {
1293
1276
  return !_t(e.size);
1294
1277
  }
1295
- function hs(e) {
1278
+ function ms(e) {
1296
1279
  return e.size;
1297
1280
  }
1298
- function fs(e) {
1281
+ function hs(e) {
1299
1282
  return !_t(e.size);
1300
1283
  }
1301
- function ps(e) {
1284
+ function fs(e) {
1302
1285
  return e.size;
1303
1286
  }
1304
- function gs(e) {
1287
+ function ps(e) {
1305
1288
  return !_t(e.size);
1306
1289
  }
1290
+ function gs(e) {
1291
+ return e.color;
1292
+ }
1307
1293
  function ys(e) {
1308
1294
  return e.color;
1309
1295
  }
@@ -1311,138 +1297,135 @@ function bs(e) {
1311
1297
  return e.color;
1312
1298
  }
1313
1299
  function vs(e) {
1314
- return e.color;
1300
+ return e !== void 0;
1315
1301
  }
1316
1302
  function ws(e) {
1317
1303
  return e !== void 0;
1318
1304
  }
1319
1305
  function As(e) {
1320
- return e !== void 0;
1321
- }
1322
- function $s(e) {
1323
1306
  return e.data;
1324
1307
  }
1325
- function Os(e) {
1308
+ function $s(e) {
1326
1309
  return e !== void 0;
1327
1310
  }
1328
- function Ms(e) {
1311
+ function Os(e) {
1329
1312
  return e.data;
1330
1313
  }
1331
1314
  function ks(e, t) {
1332
- return _e(e, t);
1315
+ return Ze(e, t);
1333
1316
  }
1334
- function Cs(e) {
1335
- const t = xe.c(122), {
1317
+ function Ms(e) {
1318
+ const t = xe.c(123), {
1336
1319
  data: m,
1337
1320
  barColors: D,
1338
1321
  barPadding: Xt,
1339
1322
  showTicks: St,
1340
1323
  topMargin: gt,
1341
- bottomMargin: tt,
1342
- leftMargin: ut,
1343
- rightMargin: C,
1344
- truncateBy: T,
1324
+ bottomMargin: _,
1325
+ leftMargin: ct,
1326
+ rightMargin: M,
1327
+ truncateBy: j,
1345
1328
  width: y,
1346
- height: P,
1347
- tooltip: Dt,
1348
- onSeriesMouseOver: rt,
1349
- showLabels: zt,
1350
- suffix: F,
1351
- prefix: et,
1352
- showValues: dt,
1353
- refValues: xt,
1329
+ height: I,
1330
+ tooltip: zt,
1331
+ onSeriesMouseOver: nt,
1332
+ showLabels: jt,
1333
+ suffix: S,
1334
+ prefix: tt,
1335
+ showValues: ut,
1336
+ refValues: dt,
1354
1337
  maxValue: Tt,
1355
1338
  onSeriesMouseClick: w,
1356
- selectedColor: it,
1357
- rtl: W,
1358
- labelOrder: Y,
1359
- maxBarThickness: K,
1360
- minBarThickness: R,
1361
- resetSelectionOnDoubleClick: H,
1362
- detailsOnClick: O,
1363
- barAxisTitle: q,
1364
- valueColor: I,
1365
- noOfTicks: a,
1339
+ selectedColor: et,
1340
+ rtl: G,
1341
+ labelOrder: F,
1342
+ maxBarThickness: J,
1343
+ minBarThickness: W,
1344
+ resetSelectionOnDoubleClick: xt,
1345
+ detailsOnClick: B,
1346
+ barAxisTitle: R,
1347
+ valueColor: H,
1348
+ noOfTicks: u,
1366
1349
  styles: s,
1367
- classNames: n,
1368
- animate: u,
1369
- colorDomain: d,
1370
- precision: f,
1350
+ classNames: o,
1351
+ animate: d,
1352
+ colorDomain: r,
1353
+ precision: h,
1371
1354
  customLayers: x,
1372
- naLabel: $
1373
- } = e, Q = gt === void 0 ? 25 : gt, U = tt === void 0 ? 10 : tt, ct = ut === void 0 ? 100 : ut, Ft = C === void 0 ? 40 : C, Yt = de(null);
1374
- let E;
1375
- t[0] !== u.amount || t[1] !== u.once ? (E = {
1376
- once: u.once,
1377
- amount: u.amount
1378
- }, t[0] = u.amount, t[1] = u.once, t[2] = E) : E = t[2];
1379
- const yt = Ve(Yt, E), Bt = q ? Q + 25 : Q;
1380
- let r;
1381
- t[3] !== U || t[4] !== ct || t[5] !== Ft || t[6] !== Bt ? (r = {
1355
+ naLabel: A
1356
+ } = e, K = gt === void 0 ? 25 : gt, q = _ === void 0 ? 10 : _, rt = ct === void 0 ? 100 : ct, Ft = M === void 0 ? 40 : M, Yt = de(null);
1357
+ let X;
1358
+ t[0] !== d.amount || t[1] !== d.once ? (X = {
1359
+ once: d.once,
1360
+ amount: d.amount
1361
+ }, t[0] = d.amount, t[1] = d.once, t[2] = X) : X = t[2];
1362
+ const yt = Ce(Yt, X), Bt = R ? K + 25 : K;
1363
+ let n;
1364
+ t[3] !== q || t[4] !== rt || t[5] !== Ft || t[6] !== Bt ? (n = {
1382
1365
  top: Bt,
1383
- bottom: U,
1384
- left: ct,
1366
+ bottom: q,
1367
+ left: rt,
1385
1368
  right: Ft
1386
- }, t[3] = U, t[4] = ct, t[5] = Ft, t[6] = Bt, t[7] = r) : r = t[7];
1387
- const c = r, [B, h] = Wt(void 0), [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), mt = y - c.left - c.right, L = P - c.top - c.bottom;
1388
- let g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft, pt;
1389
- if (t[8] !== u || t[9] !== q || t[10] !== D || t[11] !== Xt || t[12] !== n?.graphObjectValues || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.axis || t[17] !== n?.yAxis?.labels || t[18] !== d || t[19] !== x || t[20] !== m || t[21] !== O || t[22] !== L || t[23] !== mt || t[24] !== P || t[25] !== yt || t[26] !== Y || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== K || t[31] !== Tt || t[32] !== R || t[33] !== V || t[34] !== $ || t[35] !== a || t[36] !== w || t[37] !== rt || t[38] !== f || t[39] !== et || t[40] !== xt || t[41] !== H || t[42] !== W || t[43] !== it || t[44] !== zt || t[45] !== St || t[46] !== dt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== F || t[54] !== Q || t[55] !== T || t[56] !== I || t[57] !== y) {
1390
- let at;
1391
- t[72] !== Y ? (at = (N, v) => ({
1392
- ...N,
1393
- id: Y ? `${N.label}` : `${v}`
1394
- }), t[72] = Y, t[73] = at) : at = t[73];
1395
- const It = m.map(at), Et = Y || It.map(Ss), M = Le().domain([0, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, R ? Math.max(L, R * Et.length) : K ? Math.min(L, K * Et.length) : L]).paddingInner(Xt), Nt = M.ticks(a);
1396
- Z = Zt.svg, kt = Yt, ot = `${y}px`, Ct = `${P}px`, G = `0 0 ${y} ${P}`, nt = "ltr", _ = `translate(${c.left},${c.top})`, J = St ? /* @__PURE__ */ i.jsx(Fe, { values: Nt.filter(Is), x: Nt.filter(Ts).map((N) => M(N)), y1: 0 - Q, y2: L + c.bottom, styles: {
1369
+ }, t[3] = q, t[4] = rt, t[5] = Ft, t[6] = Bt, t[7] = n) : n = t[7];
1370
+ const c = n, [T, f] = Wt(void 0), [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), mt = y - c.left - c.right, C = I - c.top - c.bottom;
1371
+ let g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft, pt;
1372
+ if (t[8] !== d || t[9] !== R || t[10] !== D || t[11] !== Xt || t[12] !== o?.graphObjectValues || t[13] !== o?.xAxis?.gridLines || t[14] !== o?.xAxis?.labels || t[15] !== o?.xAxis?.title || t[16] !== o?.yAxis?.axis || t[17] !== o?.yAxis?.labels || t[18] !== r || t[19] !== x || t[20] !== m || t[21] !== B || t[22] !== C || t[23] !== mt || t[24] !== I || t[25] !== yt || t[26] !== F || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== J || t[31] !== Tt || t[32] !== W || t[33] !== Y || t[34] !== A || t[35] !== u || t[36] !== w || t[37] !== nt || t[38] !== h || t[39] !== tt || t[40] !== dt || t[41] !== xt || t[42] !== G || t[43] !== et || t[44] !== jt || t[45] !== St || t[46] !== ut || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== S || t[54] !== K || t[55] !== j || t[56] !== H || t[57] !== y) {
1373
+ let lt;
1374
+ t[72] !== F ? (lt = (z, v) => ({
1375
+ ...z,
1376
+ id: F ? `${z.label}` : `${v}`
1377
+ }), t[72] = F, t[73] = lt) : lt = t[73];
1378
+ const It = m.map(lt), Et = F || It.map(Is), O = Ve().domain([0, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, W ? Math.max(C, W * Et.length) : J ? Math.min(C, J * Et.length) : C]).paddingInner(Xt), Nt = O.ticks(u);
1379
+ Q = Zt.svg, Mt = Yt, st = `${y}px`, Ct = `${I}px`, E = `0 0 ${y} ${I}`, at = "ltr", Z = `translate(${c.left},${c.top})`, U = St ? /* @__PURE__ */ i.jsx(Pe, { values: Nt.filter(Ts), x: Nt.filter(Ns).map((z) => O(z)), y1: 0 - K, y2: C + c.bottom, styles: {
1397
1380
  gridLines: s?.xAxis?.gridLines,
1398
1381
  labels: s?.xAxis?.labels
1399
1382
  }, classNames: {
1400
- gridLines: n?.xAxis?.gridLines,
1401
- labels: n?.xAxis?.labels
1402
- }, suffix: F, prefix: et, labelType: "secondary", showGridLines: !0, precision: f }) : null;
1403
- const Kt = mt / 2, jt = 0 - c.top + 15, Qt = s?.xAxis?.title, Ut = n?.xAxis?.title;
1404
- t[74] !== q || t[75] !== Kt || t[76] !== jt || t[77] !== Qt || t[78] !== Ut ? (j = /* @__PURE__ */ i.jsx(Ce, { x: Kt, y: jt, style: Qt, className: Ut, text: q }), t[74] = q, t[75] = Kt, t[76] = jt, t[77] = Qt, t[78] = Ut, t[79] = j) : j = t[79], t[80] !== x ? (ht = x.filter(Ns).map(zs), t[80] = x, t[81] = ht) : ht = t[81], g = je, X = It.map((N) => _t(qt(N.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1383
+ gridLines: o?.xAxis?.gridLines,
1384
+ labels: o?.xAxis?.labels
1385
+ }, suffix: S, prefix: tt, labelType: "secondary", showGridLines: !0, precision: h }) : null;
1386
+ const Kt = mt / 2, Lt = 0 - c.top + 15, Qt = s?.xAxis?.title, Ut = o?.xAxis?.title;
1387
+ t[74] !== R || t[75] !== Kt || t[76] !== Lt || t[77] !== Qt || t[78] !== Ut ? (V = /* @__PURE__ */ i.jsx(ke, { x: Kt, y: Lt, style: Qt, className: Ut, text: R }), t[74] = R, t[75] = Kt, t[76] = Lt, t[77] = Qt, t[78] = Ut, t[79] = V) : V = t[79], t[80] !== x ? (ht = x.filter(js).map(zs), t[80] = x, t[81] = ht) : ht = t[81], g = De, P = It.map((z) => _t(qt(z.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1405
1388
  initial: {
1406
1389
  x: 0,
1407
- y: qt(`${N.id}`)
1390
+ y: qt(`${z.id}`)
1408
1391
  },
1409
1392
  whileInView: {
1410
1393
  x: 0,
1411
- y: qt(`${N.id}`),
1394
+ y: qt(`${z.id}`),
1412
1395
  transition: {
1413
- duration: u.duration
1396
+ duration: d.duration
1414
1397
  }
1415
1398
  }
1416
1399
  }, initial: "initial", animate: yt ? "whileInView" : "initial", exit: {
1417
1400
  opacity: 0,
1418
1401
  transition: {
1419
- duration: u.duration
1402
+ duration: d.duration
1420
1403
  }
1421
1404
  }, children: [
1422
- N.size.map((v, k) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: it ? D[k] === it ? 1 : 0.3 : 1, onMouseEnter: (o) => {
1423
- h({
1424
- ...N,
1405
+ z.size.map((v, k) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: et ? D[k] === et ? 1 : 0.3 : 1, onMouseEnter: (a) => {
1406
+ f({
1407
+ ...z,
1425
1408
  sizeIndex: k
1426
- }), st(o.clientY), Lt(o.clientX), rt?.({
1427
- ...N,
1409
+ }), it(a.clientY), Dt(a.clientX), nt?.({
1410
+ ...z,
1428
1411
  sizeIndex: k
1429
1412
  });
1430
- }, onMouseMove: (o) => {
1431
- h({
1432
- ...N,
1413
+ }, onMouseMove: (a) => {
1414
+ f({
1415
+ ...z,
1433
1416
  sizeIndex: k
1434
- }), st(o.clientY), Lt(o.clientX);
1417
+ }), it(a.clientY), Dt(a.clientX);
1435
1418
  }, onMouseLeave: () => {
1436
- h(void 0), Lt(void 0), st(void 0), rt?.(void 0);
1419
+ f(void 0), Dt(void 0), it(void 0), nt?.(void 0);
1437
1420
  }, onClick: () => {
1438
- (w || O) && (Ae(V, {
1439
- ...N,
1421
+ (w || B) && (Ae(Y, {
1422
+ ...z,
1440
1423
  sizeIndex: k
1441
- }) && H ? (S(void 0), w?.(void 0)) : (S({
1442
- ...N,
1424
+ }) && xt ? (N(void 0), w?.(void 0)) : (N({
1425
+ ...z,
1443
1426
  sizeIndex: k
1444
1427
  }), w && w({
1445
- ...N,
1428
+ ...z,
1446
1429
  sizeIndex: k
1447
1430
  })));
1448
1431
  }, children: [
@@ -1450,526 +1433,518 @@ function Cs(e) {
1450
1433
  fill: D[k]
1451
1434
  }, height: qt.bandwidth(), exit: {
1452
1435
  width: 0,
1453
- x: M(0),
1436
+ x: O(0),
1454
1437
  transition: {
1455
- duration: u.duration
1438
+ duration: d.duration
1456
1439
  }
1457
1440
  }, variants: {
1458
1441
  initial: {
1459
1442
  width: 0,
1460
- x: M(0),
1443
+ x: O(0),
1461
1444
  fill: D[k]
1462
1445
  },
1463
1446
  whileInView: {
1464
- width: M(v || 0),
1465
- x: M(k === 0 ? 0 : ne(N.size.filter((o, p) => p < k && o))),
1447
+ width: O(v || 0),
1448
+ x: O(k === 0 ? 0 : oe(z.size.filter((a, p) => p < k && a))),
1466
1449
  fill: D[k],
1467
1450
  transition: {
1468
- duration: u.duration
1451
+ duration: d.duration
1469
1452
  }
1470
1453
  }
1471
1454
  }, initial: "initial", animate: yt ? "whileInView" : "initial" }, k) : null,
1472
- dt ? /* @__PURE__ */ i.jsx(Zt.text, { y: qt.bandwidth() / 2, style: {
1455
+ ut ? /* @__PURE__ */ i.jsx(Zt.text, { y: qt.bandwidth() / 2, style: {
1473
1456
  textAnchor: "middle",
1474
1457
  ...s?.graphObjectValues || {}
1475
- }, dy: "0.33em", className: pe("graph-value text-sm", n?.graphObjectValues), exit: {
1458
+ }, dy: "0.33em", className: pe("graph-value text-sm", o?.graphObjectValues), exit: {
1476
1459
  opacity: 0,
1477
1460
  transition: {
1478
- duration: u.duration
1461
+ duration: d.duration
1479
1462
  }
1480
1463
  }, variants: {
1481
1464
  initial: {
1482
- x: M(0),
1465
+ x: O(0),
1483
1466
  opacity: 0,
1484
- fill: Te(D[k])
1467
+ fill: Ne(D[k])
1485
1468
  },
1486
1469
  whileInView: {
1487
- x: M(k === 0 ? 0 : ne(N.size.filter((o, p) => p < k && o))) + M(v || 0) / 2,
1488
- opacity: v && M(v) / ue(v, $, f, et, F).length > 12 ? 1 : 0,
1489
- fill: Te(D[k]),
1470
+ x: O(k === 0 ? 0 : oe(z.size.filter((a, p) => p < k && a))) + O(v || 0) / 2,
1471
+ opacity: v && O(v) / ue(v, A, h, tt, S).length > 12 ? 1 : 0,
1472
+ fill: Ne(D[k]),
1490
1473
  transition: {
1491
- duration: u.duration
1474
+ duration: d.duration
1492
1475
  }
1493
1476
  }
1494
- }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(v, $, f, et, F) }) : null
1495
- ] }, `${N.label}-${d[k] || k}`)),
1496
- zt ? /* @__PURE__ */ i.jsx(Pe, { value: `${N.label}`.length < T ? `${N.label}` : `${`${N.label}`.substring(0, T)}...`, y: 0, x: 0 - c.left, width: 0 + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: yt }) : null,
1497
- dt ? /* @__PURE__ */ i.jsx(Zt.text, { className: pe("graph-value graph-value-total text-sm", I ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", n?.graphObjectValues), style: {
1498
- ...I ? {
1499
- fill: I
1477
+ }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(v, A, h, tt, S) }) : null
1478
+ ] }, `${z.label}-${r[k] || k}`)),
1479
+ jt ? /* @__PURE__ */ i.jsx(Be, { value: `${z.label}`.length < j ? `${z.label}` : `${`${z.label}`.substring(0, j)}...`, y: 0, x: 0 - c.left, width: 0 + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: o?.yAxis?.labels, animate: d, isInView: yt }) : null,
1480
+ ut ? /* @__PURE__ */ i.jsx(Zt.text, { className: pe("graph-value graph-value-total text-sm", H ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", o?.graphObjectValues), style: {
1481
+ ...H ? {
1482
+ fill: H
1500
1483
  } : {},
1501
1484
  textAnchor: "start",
1502
1485
  ...s?.graphObjectValues || {}
1503
1486
  }, y: qt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1504
1487
  initial: {
1505
- x: M(0),
1488
+ x: O(0),
1506
1489
  opacity: 0,
1507
- ...I ? {
1508
- fill: I
1490
+ ...H ? {
1491
+ fill: H
1509
1492
  } : {}
1510
1493
  },
1511
1494
  whileInView: {
1512
- x: M(ne(N.size.map(Ds))),
1495
+ x: O(oe(z.size.map(Ls))),
1513
1496
  opacity: 1,
1514
- ...I ? {
1515
- fill: I
1497
+ ...H ? {
1498
+ fill: H
1516
1499
  } : {},
1517
1500
  transition: {
1518
- duration: u.duration
1501
+ duration: d.duration
1519
1502
  }
1520
1503
  }
1521
1504
  }, exit: {
1522
1505
  opacity: 0,
1523
1506
  transition: {
1524
- duration: u.duration
1507
+ duration: d.duration
1525
1508
  }
1526
- }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(ne(N.size.filter(js)), $, f, et, F) }) : null
1527
- ] }, N.label));
1528
- const Ht = n?.yAxis?.axis;
1529
- let Mt;
1530
- t[82] !== Ht ? (Mt = {
1509
+ }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(oe(z.size.filter(Ds)), A, h, tt, S) }) : null
1510
+ ] }, z.label));
1511
+ const Ht = o?.yAxis?.axis;
1512
+ let kt;
1513
+ t[82] !== Ht ? (kt = {
1531
1514
  axis: Ht
1532
- }, t[82] = Ht, t[83] = Mt) : Mt = t[83];
1515
+ }, t[82] = Ht, t[83] = kt) : kt = t[83];
1533
1516
  const Rt = s?.yAxis?.axis;
1534
1517
  let Jt;
1535
1518
  t[84] !== Rt ? (Jt = {
1536
1519
  axis: Rt
1537
- }, t[84] = Rt, t[85] = Jt) : Jt = t[85], ft = /* @__PURE__ */ i.jsx(ke, { x1: M(0), x2: M(0), y1: -2.5, y2: L + c.bottom, classNames: Mt, styles: Jt }), pt = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((N, v) => /* @__PURE__ */ i.jsx(He, { text: N.text, color: N.color, x: M(N.value), y1: 0 - c.top, y2: L + c.bottom, textSide: M(N.value) > mt * 0.75 || W ? "left" : "right", classNames: N.classNames, styles: N.styles, animate: u, isInView: yt }, v)) }) : null, t[8] = u, t[9] = q, t[10] = D, t[11] = Xt, t[12] = n?.graphObjectValues, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.axis, t[17] = n?.yAxis?.labels, t[18] = d, t[19] = x, t[20] = m, t[21] = O, t[22] = L, t[23] = mt, t[24] = P, t[25] = yt, t[26] = Y, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = K, t[31] = Tt, t[32] = R, t[33] = V, t[34] = $, t[35] = a, t[36] = w, t[37] = rt, t[38] = f, t[39] = et, t[40] = xt, t[41] = H, t[42] = W, t[43] = it, t[44] = zt, t[45] = St, t[46] = dt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = F, t[54] = Q, t[55] = T, t[56] = I, t[57] = y, t[58] = g, t[59] = Z, t[60] = _, t[61] = J, t[62] = j, t[63] = ht, t[64] = kt, t[65] = ot, t[66] = Ct, t[67] = G, t[68] = nt, t[69] = X, t[70] = ft, t[71] = pt;
1520
+ }, t[84] = Rt, t[85] = Jt) : Jt = t[85], ft = /* @__PURE__ */ i.jsx(Oe, { x1: O(0), x2: O(0), y1: -2.5, y2: C + c.bottom, classNames: kt, styles: Jt }), pt = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((z, v) => /* @__PURE__ */ i.jsx(Fe, { text: z.text, color: z.color, x: O(z.value), y1: 0 - c.top, y2: C + c.bottom, textSide: O(z.value) > mt * 0.75 || G ? "left" : "right", classNames: z.classNames, styles: z.styles, animate: d, isInView: yt }, v)) }) : null, t[8] = d, t[9] = R, t[10] = D, t[11] = Xt, t[12] = o?.graphObjectValues, t[13] = o?.xAxis?.gridLines, t[14] = o?.xAxis?.labels, t[15] = o?.xAxis?.title, t[16] = o?.yAxis?.axis, t[17] = o?.yAxis?.labels, t[18] = r, t[19] = x, t[20] = m, t[21] = B, t[22] = C, t[23] = mt, t[24] = I, t[25] = yt, t[26] = F, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = J, t[31] = Tt, t[32] = W, t[33] = Y, t[34] = A, t[35] = u, t[36] = w, t[37] = nt, t[38] = h, t[39] = tt, t[40] = dt, t[41] = xt, t[42] = G, t[43] = et, t[44] = jt, t[45] = St, t[46] = ut, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = S, t[54] = K, t[55] = j, t[56] = H, t[57] = y, t[58] = g, t[59] = Q, t[60] = Z, t[61] = U, t[62] = V, t[63] = ht, t[64] = Mt, t[65] = st, t[66] = Ct, t[67] = E, t[68] = at, t[69] = P, t[70] = ft, t[71] = pt;
1538
1521
  } else
1539
- g = t[58], Z = t[59], _ = t[60], J = t[61], j = t[62], ht = t[63], kt = t[64], ot = t[65], Ct = t[66], G = t[67], nt = t[68], X = t[69], ft = t[70], pt = t[71];
1522
+ g = t[58], Q = t[59], Z = t[60], U = t[61], V = t[62], ht = t[63], Mt = t[64], st = t[65], Ct = t[66], E = t[67], at = t[68], P = t[69], ft = t[70], pt = t[71];
1540
1523
  let vt;
1541
- t[86] !== g || t[87] !== X || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
1542
- X,
1524
+ t[86] !== g || t[87] !== P || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
1525
+ P,
1543
1526
  ft,
1544
1527
  pt
1545
- ] }), t[86] = g, t[87] = X, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
1528
+ ] }), t[86] = g, t[87] = P, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
1546
1529
  let wt;
1547
- t[91] !== x ? (wt = x.filter(Ls).map(Vs), t[91] = x, t[92] = wt) : wt = t[92];
1548
- let lt;
1549
- t[93] !== _ || t[94] !== J || t[95] !== j || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (lt = /* @__PURE__ */ i.jsxs("g", { transform: _, children: [
1550
- J,
1551
- j,
1530
+ t[91] !== x ? (wt = x.filter(Vs).map(Cs), t[91] = x, t[92] = wt) : wt = t[92];
1531
+ let ot;
1532
+ t[93] !== Z || t[94] !== U || t[95] !== V || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (ot = /* @__PURE__ */ i.jsxs("g", { transform: Z, children: [
1533
+ U,
1534
+ V,
1552
1535
  ht,
1553
1536
  vt,
1554
1537
  wt
1555
- ] }), t[93] = _, t[94] = J, t[95] = j, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = lt) : lt = t[99];
1538
+ ] }), t[93] = Z, t[94] = U, t[95] = V, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = ot) : ot = t[99];
1556
1539
  let At;
1557
- t[100] !== Z || t[101] !== kt || t[102] !== ot || t[103] !== Ct || t[104] !== G || t[105] !== nt || t[106] !== lt ? (At = /* @__PURE__ */ i.jsx(Z, { ref: kt, width: ot, height: Ct, viewBox: G, direction: nt, children: lt }), t[100] = Z, t[101] = kt, t[102] = ot, t[103] = Ct, t[104] = G, t[105] = nt, t[106] = lt, t[107] = At) : At = t[107];
1540
+ t[100] !== Q || t[101] !== Mt || t[102] !== st || t[103] !== Ct || t[104] !== E || t[105] !== at || t[106] !== ot ? (At = /* @__PURE__ */ i.jsx(Q, { ref: Mt, width: st, height: Ct, viewBox: E, direction: at, children: ot }), t[100] = Q, t[101] = Mt, t[102] = st, t[103] = Ct, t[104] = E, t[105] = at, t[106] = ot, t[107] = At) : At = t[107];
1558
1541
  let $t;
1559
- t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !== B || t[112] !== s?.tooltip || t[113] !== Dt ? ($t = B && Dt && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: B, body: Dt, xPos: A, yPos: bt, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[108] = n?.tooltip, t[109] = A, t[110] = bt, t[111] = B, t[112] = s?.tooltip, t[113] = Dt, t[114] = $t) : $t = t[114];
1542
+ t[108] !== o?.tooltip || t[109] !== $ || t[110] !== bt || t[111] !== T || t[112] !== s?.tooltip || t[113] !== zt ? ($t = T && zt && $ && bt ? /* @__PURE__ */ i.jsx($e, { data: T, body: zt, xPos: $, yPos: bt, backgroundStyle: s?.tooltip, className: o?.tooltip }) : null, t[108] = o?.tooltip, t[109] = $, t[110] = bt, t[111] = T, t[112] = s?.tooltip, t[113] = zt, t[114] = $t) : $t = t[114];
1560
1543
  let Ot;
1561
- t[115] !== O || t[116] !== V ? (Ot = O && V !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: V !== void 0, onClose: () => {
1562
- S(void 0);
1563
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
1564
- __html: Me(O, V)
1565
- } : void 0, children: typeof O == "function" ? O(V) : null }) }) : null, t[115] = O, t[116] = V, t[117] = Ot) : Ot = t[117];
1544
+ t[115] !== o?.modal || t[116] !== B || t[117] !== Y ? (Ot = B && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: B, data: Y, setData: N, className: o?.modal }) : null, t[115] = o?.modal, t[116] = B, t[117] = Y, t[118] = Ot) : Ot = t[118];
1566
1545
  let b;
1567
- return t[118] !== At || t[119] !== $t || t[120] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1546
+ return t[119] !== At || t[120] !== $t || t[121] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1568
1547
  At,
1569
1548
  $t,
1570
1549
  Ot
1571
- ] }), t[118] = At, t[119] = $t, t[120] = Ot, t[121] = b) : b = t[121], b;
1550
+ ] }), t[119] = At, t[120] = $t, t[121] = Ot, t[122] = b) : b = t[122], b;
1572
1551
  }
1573
- function Vs(e) {
1552
+ function Cs(e) {
1574
1553
  return e.layer;
1575
1554
  }
1576
- function Ls(e) {
1555
+ function Vs(e) {
1577
1556
  return e.position === "after";
1578
1557
  }
1579
- function js(e) {
1558
+ function Ds(e) {
1580
1559
  return e;
1581
1560
  }
1582
- function Ds(e) {
1561
+ function Ls(e) {
1583
1562
  return e || 0;
1584
1563
  }
1585
1564
  function zs(e) {
1586
1565
  return e.layer;
1587
1566
  }
1588
- function Ns(e) {
1567
+ function js(e) {
1589
1568
  return e.position === "before";
1590
1569
  }
1591
- function Ts(e) {
1570
+ function Ns(e) {
1592
1571
  return e !== 0;
1593
1572
  }
1594
- function Is(e) {
1573
+ function Ts(e) {
1595
1574
  return e !== 0;
1596
1575
  }
1597
- function Ss(e) {
1576
+ function Is(e) {
1598
1577
  return `${e.id}`;
1599
1578
  }
1600
- function Bs(e) {
1601
- const t = xe.c(129), {
1579
+ function Ss(e) {
1580
+ const t = xe.c(130), {
1602
1581
  data: m,
1603
1582
  leftMargin: D,
1604
1583
  rightMargin: Xt,
1605
1584
  topMargin: St,
1606
1585
  bottomMargin: gt,
1607
- width: tt,
1608
- height: ut,
1609
- barColors: C,
1610
- barPadding: T,
1586
+ width: _,
1587
+ height: ct,
1588
+ barColors: M,
1589
+ barPadding: j,
1611
1590
  showLabels: y,
1612
- showTicks: P,
1613
- truncateBy: Dt,
1614
- tooltip: rt,
1615
- onSeriesMouseOver: zt,
1616
- suffix: F,
1617
- prefix: et,
1618
- showValues: dt,
1619
- refValues: xt,
1591
+ showTicks: I,
1592
+ truncateBy: zt,
1593
+ tooltip: nt,
1594
+ onSeriesMouseOver: jt,
1595
+ suffix: S,
1596
+ prefix: tt,
1597
+ showValues: ut,
1598
+ refValues: dt,
1620
1599
  maxValue: Tt,
1621
1600
  onSeriesMouseClick: w,
1622
- selectedColor: it,
1623
- labelOrder: W,
1624
- maxBarThickness: Y,
1625
- minBarThickness: K,
1626
- resetSelectionOnDoubleClick: R,
1627
- detailsOnClick: H,
1628
- barAxisTitle: O,
1629
- valueColor: q,
1630
- noOfTicks: I,
1631
- styles: a,
1601
+ selectedColor: et,
1602
+ labelOrder: G,
1603
+ maxBarThickness: F,
1604
+ minBarThickness: J,
1605
+ resetSelectionOnDoubleClick: W,
1606
+ detailsOnClick: xt,
1607
+ barAxisTitle: B,
1608
+ valueColor: R,
1609
+ noOfTicks: H,
1610
+ styles: u,
1632
1611
  classNames: s,
1633
- animate: n,
1634
- colorDomain: u,
1635
- precision: d,
1636
- customLayers: f,
1612
+ animate: o,
1613
+ colorDomain: d,
1614
+ precision: r,
1615
+ customLayers: h,
1637
1616
  naLabel: x
1638
- } = e, $ = D === void 0 ? 20 : D, Q = Xt === void 0 ? 20 : Xt, U = St === void 0 ? 20 : St, ct = gt === void 0 ? 25 : gt, Ft = de(null);
1617
+ } = e, A = D === void 0 ? 20 : D, K = Xt === void 0 ? 20 : Xt, q = St === void 0 ? 20 : St, rt = gt === void 0 ? 25 : gt, Ft = de(null);
1639
1618
  let Yt;
1640
- t[0] !== n.amount || t[1] !== n.once ? (Yt = {
1641
- once: n.once,
1642
- amount: n.amount
1643
- }, t[0] = n.amount, t[1] = n.once, t[2] = Yt) : Yt = t[2];
1644
- const E = Ve(Ft, Yt), yt = O ? $ + 30 : $;
1619
+ t[0] !== o.amount || t[1] !== o.once ? (Yt = {
1620
+ once: o.once,
1621
+ amount: o.amount
1622
+ }, t[0] = o.amount, t[1] = o.once, t[2] = Yt) : Yt = t[2];
1623
+ const X = Ce(Ft, Yt), yt = B ? A + 30 : A;
1645
1624
  let Bt;
1646
- t[3] !== ct || t[4] !== Q || t[5] !== yt || t[6] !== U ? (Bt = {
1647
- top: U,
1648
- bottom: ct,
1625
+ t[3] !== rt || t[4] !== K || t[5] !== yt || t[6] !== q ? (Bt = {
1626
+ top: q,
1627
+ bottom: rt,
1649
1628
  left: yt,
1650
- right: Q
1651
- }, t[3] = ct, t[4] = Q, t[5] = yt, t[6] = U, t[7] = Bt) : Bt = t[7];
1652
- const r = Bt, [c, B] = Wt(void 0), [h, V] = Wt(void 0), [S, A] = Wt(void 0), [Lt, bt] = Wt(void 0), st = tt - r.left - r.right, mt = ut - r.top - r.bottom;
1653
- let L, g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft;
1654
- if (t[8] !== n || t[9] !== O || t[10] !== C || t[11] !== T || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== u || t[19] !== f || t[20] !== m || t[21] !== H || t[22] !== mt || t[23] !== st || t[24] !== ut || t[25] !== E || t[26] !== W || t[27] !== $ || t[28] !== r.bottom || t[29] !== r.left || t[30] !== r.right || t[31] !== r.top || t[32] !== Y || t[33] !== Tt || t[34] !== K || t[35] !== h || t[36] !== x || t[37] !== I || t[38] !== w || t[39] !== zt || t[40] !== d || t[41] !== et || t[42] !== xt || t[43] !== R || t[44] !== it || t[45] !== y || t[46] !== P || t[47] !== dt || t[48] !== a?.graphObjectValues || t[49] !== a?.xAxis?.axis || t[50] !== a?.xAxis?.labels || t[51] !== a?.yAxis?.gridLines || t[52] !== a?.yAxis?.labels || t[53] !== a?.yAxis?.title || t[54] !== F || t[55] !== Dt || t[56] !== q || t[57] !== tt) {
1655
- const b = Le().domain([0, Tt]).range([mt, 0]).nice();
1656
- let at;
1657
- t[72] !== W ? (at = (p, ee) => ({
1629
+ right: K
1630
+ }, t[3] = rt, t[4] = K, t[5] = yt, t[6] = q, t[7] = Bt) : Bt = t[7];
1631
+ const n = Bt, [c, T] = Wt(void 0), [f, Y] = Wt(void 0), [N, $] = Wt(void 0), [Dt, bt] = Wt(void 0), it = _ - n.left - n.right, mt = ct - n.top - n.bottom;
1632
+ let C, g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft;
1633
+ if (t[8] !== o || t[9] !== B || t[10] !== M || t[11] !== j || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== d || t[19] !== h || t[20] !== m || t[21] !== xt || t[22] !== mt || t[23] !== it || t[24] !== ct || t[25] !== X || t[26] !== G || t[27] !== A || t[28] !== n.bottom || t[29] !== n.left || t[30] !== n.right || t[31] !== n.top || t[32] !== F || t[33] !== Tt || t[34] !== J || t[35] !== f || t[36] !== x || t[37] !== H || t[38] !== w || t[39] !== jt || t[40] !== r || t[41] !== tt || t[42] !== dt || t[43] !== W || t[44] !== et || t[45] !== y || t[46] !== I || t[47] !== ut || t[48] !== u?.graphObjectValues || t[49] !== u?.xAxis?.axis || t[50] !== u?.xAxis?.labels || t[51] !== u?.yAxis?.gridLines || t[52] !== u?.yAxis?.labels || t[53] !== u?.yAxis?.title || t[54] !== S || t[55] !== zt || t[56] !== R || t[57] !== _) {
1634
+ const b = Ve().domain([0, Tt]).range([mt, 0]).nice();
1635
+ let lt;
1636
+ t[72] !== G ? (lt = (p, ee) => ({
1658
1637
  ...p,
1659
- id: W ? `${p.label}` : `${ee}`
1660
- }), t[72] = W, t[73] = at) : at = t[73];
1661
- const It = m.map(at), Et = W || It.map(Rs), M = ge().domain(Et).range([0, K ? Math.max(st, K * Et.length) : Y ? Math.min(st, Y * Et.length) : st]).paddingInner(T), qt = b.ticks(I);
1662
- g = Zt.svg, ht = `${tt}px`, kt = `${ut}px`, ot = `0 0 ${tt} ${ut}`, Ct = "ltr", G = Ft, ft = `translate(${r.left},${r.top})`;
1638
+ id: G ? `${p.label}` : `${ee}`
1639
+ }), t[72] = G, t[73] = lt) : lt = t[73];
1640
+ const It = m.map(lt), Et = G || It.map(Ws), O = ge().domain(Et).range([0, J ? Math.max(it, J * Et.length) : F ? Math.min(it, F * Et.length) : it]).paddingInner(j), qt = b.ticks(H);
1641
+ g = Zt.svg, ht = `${_}px`, Mt = `${ct}px`, st = `0 0 ${_} ${ct}`, Ct = "ltr", E = Ft, ft = `translate(${n.left},${n.top})`;
1663
1642
  const Nt = b(0), Kt = b(0);
1664
- let jt;
1665
- t[74] !== x || t[75] !== d || t[76] !== et || t[77] !== F ? (jt = ue(0, x, d, et, F), t[74] = x, t[75] = d, t[76] = et, t[77] = F, t[78] = jt) : jt = t[78];
1643
+ let Lt;
1644
+ t[74] !== x || t[75] !== r || t[76] !== tt || t[77] !== S ? (Lt = ue(0, x, r, tt, S), t[74] = x, t[75] = r, t[76] = tt, t[77] = S, t[78] = Lt) : Lt = t[78];
1666
1645
  const Qt = s?.xAxis?.axis, Ut = s?.yAxis?.labels;
1667
1646
  let Ht;
1668
1647
  t[79] !== Qt || t[80] !== Ut ? (Ht = {
1669
1648
  axis: Qt,
1670
1649
  label: Ut
1671
1650
  }, t[79] = Qt, t[80] = Ut, t[81] = Ht) : Ht = t[81];
1672
- const Mt = a?.xAxis?.axis, Rt = a?.yAxis?.labels;
1651
+ const kt = u?.xAxis?.axis, Rt = u?.yAxis?.labels;
1673
1652
  let Jt;
1674
- t[82] !== Mt || t[83] !== Rt ? (Jt = {
1675
- axis: Mt,
1653
+ t[82] !== kt || t[83] !== Rt ? (Jt = {
1654
+ axis: kt,
1676
1655
  label: Rt
1677
- }, t[82] = Mt, t[83] = Rt, t[84] = Jt) : Jt = t[84], Z = /* @__PURE__ */ i.jsx(ke, { y1: Nt, y2: Kt, x1: 0 - $, x2: st + r.right, label: jt, labelPos: {
1678
- x: 0 - $,
1656
+ }, t[82] = kt, t[83] = Rt, t[84] = Jt) : Jt = t[84], Q = /* @__PURE__ */ i.jsx(Oe, { y1: Nt, y2: Kt, x1: 0 - A, x2: it + n.right, label: Lt, labelPos: {
1657
+ x: 0 - A,
1679
1658
  y: b(0),
1680
1659
  dx: 0,
1681
1660
  dy: -5
1682
- }, classNames: Ht, styles: Jt }), _ = P ? /* @__PURE__ */ i.jsx(Ye, { values: qt.filter(Ws), y: qt.filter(Gs).map((p) => b(p)), x1: 0 - $, x2: st + r.right, styles: {
1683
- gridLines: a?.yAxis?.gridLines,
1684
- labels: a?.yAxis?.labels
1661
+ }, classNames: Ht, styles: Jt }), Z = I ? /* @__PURE__ */ i.jsx(Xe, { values: qt.filter(Gs), y: qt.filter(Es).map((p) => b(p)), x1: 0 - A, x2: it + n.right, styles: {
1662
+ gridLines: u?.yAxis?.gridLines,
1663
+ labels: u?.yAxis?.labels
1685
1664
  }, classNames: {
1686
1665
  gridLines: s?.yAxis?.gridLines,
1687
1666
  labels: s?.yAxis?.labels
1688
- }, suffix: F, prefix: et, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
1689
- const N = 0 - $ - 15, v = mt / 2, k = a?.yAxis?.title, o = s?.yAxis?.title;
1690
- t[85] !== O || t[86] !== N || t[87] !== v || t[88] !== k || t[89] !== o ? (J = /* @__PURE__ */ i.jsx(Ce, { x: N, y: v, style: k, className: o, text: O, rotate90: !0 }), t[85] = O, t[86] = N, t[87] = v, t[88] = k, t[89] = o, t[90] = J) : J = t[90], t[91] !== f ? (j = f.filter(Es).map(Ys), t[91] = f, t[92] = j) : j = t[92], L = je, nt = It.map((p) => _t(M(p.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1667
+ }, suffix: S, prefix: tt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: r }) : null;
1668
+ const z = 0 - A - 15, v = mt / 2, k = u?.yAxis?.title, a = s?.yAxis?.title;
1669
+ t[85] !== B || t[86] !== z || t[87] !== v || t[88] !== k || t[89] !== a ? (U = /* @__PURE__ */ i.jsx(ke, { x: z, y: v, style: k, className: a, text: B, rotate90: !0 }), t[85] = B, t[86] = z, t[87] = v, t[88] = k, t[89] = a, t[90] = U) : U = t[90], t[91] !== h ? (V = h.filter(Ys).map(Xs), t[91] = h, t[92] = V) : V = t[92], C = De, at = It.map((p) => _t(O(p.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1691
1670
  initial: {
1692
- x: M(`${p.id}`),
1671
+ x: O(`${p.id}`),
1693
1672
  y: 0
1694
1673
  },
1695
1674
  whileInView: {
1696
- x: M(`${p.id}`),
1675
+ x: O(`${p.id}`),
1697
1676
  y: 0,
1698
1677
  transition: {
1699
- duration: n.duration
1678
+ duration: o.duration
1700
1679
  }
1701
1680
  }
1702
1681
  }, transition: {
1703
- duration: n.duration
1704
- }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
1682
+ duration: o.duration
1683
+ }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
1705
1684
  opacity: 0,
1706
1685
  transition: {
1707
- duration: n.duration
1686
+ duration: o.duration
1708
1687
  }
1709
1688
  }, children: [
1710
- p.size.map((ee, z) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: it ? C[z] === it ? 1 : 0.3 : 1, onMouseEnter: (Vt) => {
1711
- B({
1689
+ p.size.map((ee, L) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: et ? M[L] === et ? 1 : 0.3 : 1, onMouseEnter: (Vt) => {
1690
+ T({
1712
1691
  ...p,
1713
- sizeIndex: z
1714
- }), bt(Vt.clientY), A(Vt.clientX), zt?.({
1692
+ sizeIndex: L
1693
+ }), bt(Vt.clientY), $(Vt.clientX), jt?.({
1715
1694
  ...p,
1716
- sizeIndex: z
1695
+ sizeIndex: L
1717
1696
  });
1718
1697
  }, onMouseMove: (Vt) => {
1719
- B({
1698
+ T({
1720
1699
  ...p,
1721
- sizeIndex: z
1722
- }), bt(Vt.clientY), A(Vt.clientX);
1700
+ sizeIndex: L
1701
+ }), bt(Vt.clientY), $(Vt.clientX);
1723
1702
  }, onMouseLeave: () => {
1724
- B(void 0), A(void 0), bt(void 0), zt?.(void 0);
1703
+ T(void 0), $(void 0), bt(void 0), jt?.(void 0);
1725
1704
  }, onClick: () => {
1726
- (w || H) && (Ae(h, {
1705
+ (w || xt) && (Ae(f, {
1727
1706
  ...p,
1728
- sizeIndex: z
1729
- }) && R ? (V(void 0), w?.(void 0)) : (V({
1707
+ sizeIndex: L
1708
+ }) && W ? (Y(void 0), w?.(void 0)) : (Y({
1730
1709
  ...p,
1731
- sizeIndex: z
1710
+ sizeIndex: L
1732
1711
  }), w && w({
1733
1712
  ...p,
1734
- sizeIndex: z
1713
+ sizeIndex: L
1735
1714
  })));
1736
1715
  }, children: [
1737
- /* @__PURE__ */ i.jsx(Zt.rect, { x: 0, width: M.bandwidth(), variants: {
1716
+ /* @__PURE__ */ i.jsx(Zt.rect, { x: 0, width: O.bandwidth(), variants: {
1738
1717
  initial: {
1739
1718
  height: 0,
1740
- fill: C[z],
1719
+ fill: M[L],
1741
1720
  y: b(0)
1742
1721
  },
1743
1722
  whileInView: {
1744
- height: Math.abs(b(ne(p.size.filter((Vt, l) => l <= z && Vt))) - b(ne(p.size.filter((Vt, l) => l < z && Vt)))),
1745
- y: b(ne(p.size.filter((Vt, l) => l <= z && Vt))),
1746
- fill: C[z],
1723
+ height: Math.abs(b(oe(p.size.filter((Vt, l) => l <= L && Vt))) - b(oe(p.size.filter((Vt, l) => l < L && Vt)))),
1724
+ y: b(oe(p.size.filter((Vt, l) => l <= L && Vt))),
1725
+ fill: M[L],
1747
1726
  transition: {
1748
- duration: n.duration
1727
+ duration: o.duration
1749
1728
  }
1750
1729
  }
1751
- }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
1730
+ }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
1752
1731
  height: 0,
1753
1732
  y: b(0),
1754
1733
  transition: {
1755
- duration: n.duration
1734
+ duration: o.duration
1756
1735
  }
1757
1736
  } }),
1758
- dt ? /* @__PURE__ */ i.jsx(Zt.text, { x: M.bandwidth() / 2, style: {
1737
+ ut ? /* @__PURE__ */ i.jsx(Zt.text, { x: O.bandwidth() / 2, style: {
1759
1738
  textAnchor: "middle",
1760
- ...a?.graphObjectValues || {}
1739
+ ...u?.graphObjectValues || {}
1761
1740
  }, className: pe("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
1762
1741
  initial: {
1763
1742
  y: b(0),
1764
1743
  opacity: 0,
1765
- fill: Te(C[z])
1744
+ fill: Ne(M[L])
1766
1745
  },
1767
1746
  whileInView: {
1768
- y: b(ne(p.size.filter((Vt, l) => l <= z && Vt))) + Math.abs(b(ne(p.size.filter((Vt, l) => l <= z && Vt))) - b(ne(p.size.filter((Vt, l) => l < z && Vt)))) / 2,
1769
- opacity: ee && Math.abs(b(ne(p.size.filter((Vt, l) => l <= z && Vt))) - b(ne(p.size.filter((Vt, l) => l < z && Vt)))) > 20 ? 1 : 0,
1770
- fill: Te(C[z]),
1747
+ y: b(oe(p.size.filter((Vt, l) => l <= L && Vt))) + Math.abs(b(oe(p.size.filter((Vt, l) => l <= L && Vt))) - b(oe(p.size.filter((Vt, l) => l < L && Vt)))) / 2,
1748
+ opacity: ee && Math.abs(b(oe(p.size.filter((Vt, l) => l <= L && Vt))) - b(oe(p.size.filter((Vt, l) => l < L && Vt)))) > 20 ? 1 : 0,
1749
+ fill: Ne(M[L]),
1771
1750
  transition: {
1772
- duration: n.duration
1751
+ duration: o.duration
1773
1752
  }
1774
1753
  }
1775
- }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
1754
+ }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
1776
1755
  opacity: 0,
1777
1756
  transition: {
1778
- duration: n.duration
1757
+ duration: o.duration
1779
1758
  }
1780
- }, children: ue(ee, x, d, et, F) }) : null
1781
- ] }, `${p.label}-${u[z] || z}`)),
1782
- y ? /* @__PURE__ */ i.jsx(Ee, { value: `${p.label}`.length < Dt ? `${p.label}` : `${`${p.label}`.substring(0, Dt)}...`, y: b(0) + 5, x: 0, width: M.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: n, isInView: E }) : null,
1783
- dt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1759
+ }, children: ue(ee, x, r, tt, S) }) : null
1760
+ ] }, `${p.label}-${d[L] || L}`)),
1761
+ y ? /* @__PURE__ */ i.jsx(Ye, { value: `${p.label}`.length < zt ? `${p.label}` : `${`${p.label}`.substring(0, zt)}...`, y: b(0) + 5, x: 0, width: O.bandwidth(), height: n.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: o, isInView: X }) : null,
1762
+ ut ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1784
1763
  textAnchor: "middle",
1785
- ...a?.graphObjectValues || {}
1786
- }, x: M.bandwidth() / 2, dy: -10, className: pe("graph-value graph-value-total", q ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1764
+ ...u?.graphObjectValues || {}
1765
+ }, x: O.bandwidth() / 2, dy: -10, className: pe("graph-value graph-value-total", R ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1787
1766
  initial: {
1788
1767
  y: b(0),
1789
1768
  opacity: 0,
1790
- ...q && {
1791
- fill: q
1769
+ ...R && {
1770
+ fill: R
1792
1771
  }
1793
1772
  },
1794
1773
  whileInView: {
1795
- y: b(ne(p.size.map(Xs))),
1774
+ y: b(oe(p.size.map(Hs))),
1796
1775
  opacity: 1,
1797
- ...q && {
1798
- fill: q
1776
+ ...R && {
1777
+ fill: R
1799
1778
  },
1800
1779
  transition: {
1801
- duration: n.duration
1780
+ duration: o.duration
1802
1781
  }
1803
1782
  }
1804
1783
  }, exit: {
1805
1784
  opacity: 0,
1806
1785
  transition: {
1807
- duration: n.duration
1786
+ duration: o.duration
1808
1787
  }
1809
- }, initial: "initial", animate: E ? "whileInView" : "initial", children: ue(ne(p.size.filter(Hs)), x, d, et, F) }) : null
1810
- ] }, p.label)), X = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((p, ee) => /* @__PURE__ */ i.jsx(Xe, { text: p.text, color: p.color, y: b(p.value), x1: 0 - $, x2: st + r.right, classNames: p.classNames, styles: p.styles, animate: n, isInView: E }, ee)) }) : null, t[8] = n, t[9] = O, t[10] = C, t[11] = T, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = u, t[19] = f, t[20] = m, t[21] = H, t[22] = mt, t[23] = st, t[24] = ut, t[25] = E, t[26] = W, t[27] = $, t[28] = r.bottom, t[29] = r.left, t[30] = r.right, t[31] = r.top, t[32] = Y, t[33] = Tt, t[34] = K, t[35] = h, t[36] = x, t[37] = I, t[38] = w, t[39] = zt, t[40] = d, t[41] = et, t[42] = xt, t[43] = R, t[44] = it, t[45] = y, t[46] = P, t[47] = dt, t[48] = a?.graphObjectValues, t[49] = a?.xAxis?.axis, t[50] = a?.xAxis?.labels, t[51] = a?.yAxis?.gridLines, t[52] = a?.yAxis?.labels, t[53] = a?.yAxis?.title, t[54] = F, t[55] = Dt, t[56] = q, t[57] = tt, t[58] = L, t[59] = g, t[60] = Z, t[61] = _, t[62] = J, t[63] = j, t[64] = ht, t[65] = kt, t[66] = ot, t[67] = Ct, t[68] = G, t[69] = nt, t[70] = X, t[71] = ft;
1788
+ }, initial: "initial", animate: X ? "whileInView" : "initial", children: ue(oe(p.size.filter(Fs)), x, r, tt, S) }) : null
1789
+ ] }, p.label)), P = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((p, ee) => /* @__PURE__ */ i.jsx(He, { text: p.text, color: p.color, y: b(p.value), x1: 0 - A, x2: it + n.right, classNames: p.classNames, styles: p.styles, animate: o, isInView: X }, ee)) }) : null, t[8] = o, t[9] = B, t[10] = M, t[11] = j, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = d, t[19] = h, t[20] = m, t[21] = xt, t[22] = mt, t[23] = it, t[24] = ct, t[25] = X, t[26] = G, t[27] = A, t[28] = n.bottom, t[29] = n.left, t[30] = n.right, t[31] = n.top, t[32] = F, t[33] = Tt, t[34] = J, t[35] = f, t[36] = x, t[37] = H, t[38] = w, t[39] = jt, t[40] = r, t[41] = tt, t[42] = dt, t[43] = W, t[44] = et, t[45] = y, t[46] = I, t[47] = ut, t[48] = u?.graphObjectValues, t[49] = u?.xAxis?.axis, t[50] = u?.xAxis?.labels, t[51] = u?.yAxis?.gridLines, t[52] = u?.yAxis?.labels, t[53] = u?.yAxis?.title, t[54] = S, t[55] = zt, t[56] = R, t[57] = _, t[58] = C, t[59] = g, t[60] = Q, t[61] = Z, t[62] = U, t[63] = V, t[64] = ht, t[65] = Mt, t[66] = st, t[67] = Ct, t[68] = E, t[69] = at, t[70] = P, t[71] = ft;
1811
1790
  } else
1812
- L = t[58], g = t[59], Z = t[60], _ = t[61], J = t[62], j = t[63], ht = t[64], kt = t[65], ot = t[66], Ct = t[67], G = t[68], nt = t[69], X = t[70], ft = t[71];
1791
+ C = t[58], g = t[59], Q = t[60], Z = t[61], U = t[62], V = t[63], ht = t[64], Mt = t[65], st = t[66], Ct = t[67], E = t[68], at = t[69], P = t[70], ft = t[71];
1813
1792
  let pt;
1814
- t[93] !== L || t[94] !== nt || t[95] !== X ? (pt = /* @__PURE__ */ i.jsxs(L, { children: [
1815
- nt,
1816
- X
1817
- ] }), t[93] = L, t[94] = nt, t[95] = X, t[96] = pt) : pt = t[96];
1793
+ t[93] !== C || t[94] !== at || t[95] !== P ? (pt = /* @__PURE__ */ i.jsxs(C, { children: [
1794
+ at,
1795
+ P
1796
+ ] }), t[93] = C, t[94] = at, t[95] = P, t[96] = pt) : pt = t[96];
1818
1797
  let vt;
1819
- t[97] !== f ? (vt = f.filter(Fs).map(Ps), t[97] = f, t[98] = vt) : vt = t[98];
1798
+ t[97] !== h ? (vt = h.filter(Ps).map(Bs), t[97] = h, t[98] = vt) : vt = t[98];
1820
1799
  let wt;
1821
- t[99] !== Z || t[100] !== _ || t[101] !== J || t[102] !== j || t[103] !== pt || t[104] !== vt || t[105] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
1800
+ t[99] !== Q || t[100] !== Z || t[101] !== U || t[102] !== V || t[103] !== pt || t[104] !== vt || t[105] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
1801
+ Q,
1822
1802
  Z,
1823
- _,
1824
- J,
1825
- j,
1803
+ U,
1804
+ V,
1826
1805
  pt,
1827
1806
  vt
1828
- ] }), t[99] = Z, t[100] = _, t[101] = J, t[102] = j, t[103] = pt, t[104] = vt, t[105] = ft, t[106] = wt) : wt = t[106];
1829
- let lt;
1830
- t[107] !== g || t[108] !== ht || t[109] !== kt || t[110] !== ot || t[111] !== Ct || t[112] !== G || t[113] !== wt ? (lt = /* @__PURE__ */ i.jsx(g, { width: ht, height: kt, viewBox: ot, direction: Ct, ref: G, children: wt }), t[107] = g, t[108] = ht, t[109] = kt, t[110] = ot, t[111] = Ct, t[112] = G, t[113] = wt, t[114] = lt) : lt = t[114];
1807
+ ] }), t[99] = Q, t[100] = Z, t[101] = U, t[102] = V, t[103] = pt, t[104] = vt, t[105] = ft, t[106] = wt) : wt = t[106];
1808
+ let ot;
1809
+ t[107] !== g || t[108] !== ht || t[109] !== Mt || t[110] !== st || t[111] !== Ct || t[112] !== E || t[113] !== wt ? (ot = /* @__PURE__ */ i.jsx(g, { width: ht, height: Mt, viewBox: st, direction: Ct, ref: E, children: wt }), t[107] = g, t[108] = ht, t[109] = Mt, t[110] = st, t[111] = Ct, t[112] = E, t[113] = wt, t[114] = ot) : ot = t[114];
1831
1810
  let At;
1832
- t[115] !== s?.tooltip || t[116] !== S || t[117] !== Lt || t[118] !== c || t[119] !== a?.tooltip || t[120] !== rt ? (At = c && rt && S && Lt ? /* @__PURE__ */ i.jsx(Oe, { data: c, body: rt, xPos: S, yPos: Lt, backgroundStyle: a?.tooltip, className: s?.tooltip }) : null, t[115] = s?.tooltip, t[116] = S, t[117] = Lt, t[118] = c, t[119] = a?.tooltip, t[120] = rt, t[121] = At) : At = t[121];
1811
+ t[115] !== s?.tooltip || t[116] !== N || t[117] !== Dt || t[118] !== c || t[119] !== u?.tooltip || t[120] !== nt ? (At = c && nt && N && Dt ? /* @__PURE__ */ i.jsx($e, { data: c, body: nt, xPos: N, yPos: Dt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[115] = s?.tooltip, t[116] = N, t[117] = Dt, t[118] = c, t[119] = u?.tooltip, t[120] = nt, t[121] = At) : At = t[121];
1833
1812
  let $t;
1834
- t[122] !== H || t[123] !== h ? ($t = H && h !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: h !== void 0, onClose: () => {
1835
- V(void 0);
1836
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof H == "string" ? {
1837
- __html: Me(H, h)
1838
- } : void 0, children: typeof H == "function" ? H(h) : null }) }) : null, t[122] = H, t[123] = h, t[124] = $t) : $t = t[124];
1813
+ t[122] !== s?.modal || t[123] !== xt || t[124] !== f ? ($t = xt && f !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: xt, data: f, setData: Y, className: s?.modal }) : null, t[122] = s?.modal, t[123] = xt, t[124] = f, t[125] = $t) : $t = t[125];
1839
1814
  let Ot;
1840
- return t[125] !== lt || t[126] !== At || t[127] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1841
- lt,
1815
+ return t[126] !== ot || t[127] !== At || t[128] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1816
+ ot,
1842
1817
  At,
1843
1818
  $t
1844
- ] }), t[125] = lt, t[126] = At, t[127] = $t, t[128] = Ot) : Ot = t[128], Ot;
1819
+ ] }), t[126] = ot, t[127] = At, t[128] = $t, t[129] = Ot) : Ot = t[129], Ot;
1845
1820
  }
1846
- function Ps(e) {
1821
+ function Bs(e) {
1847
1822
  return e.layer;
1848
1823
  }
1849
- function Fs(e) {
1824
+ function Ps(e) {
1850
1825
  return e.position === "after";
1851
1826
  }
1852
- function Hs(e) {
1827
+ function Fs(e) {
1853
1828
  return e;
1854
1829
  }
1855
- function Xs(e) {
1830
+ function Hs(e) {
1856
1831
  return e || 0;
1857
1832
  }
1858
- function Ys(e) {
1833
+ function Xs(e) {
1859
1834
  return e.layer;
1860
1835
  }
1861
- function Es(e) {
1836
+ function Ys(e) {
1862
1837
  return e.position === "before";
1863
1838
  }
1864
- function Gs(e) {
1839
+ function Es(e) {
1865
1840
  return e !== 0;
1866
1841
  }
1867
- function Ws(e) {
1842
+ function Gs(e) {
1868
1843
  return e !== 0;
1869
1844
  }
1870
- function Rs(e) {
1845
+ function Ws(e) {
1871
1846
  return `${e.id}`;
1872
1847
  }
1873
- function qs(e) {
1848
+ function Rs(e) {
1874
1849
  const t = xe.c(43), {
1875
1850
  data: m,
1876
1851
  graphTitle: D,
1877
1852
  colors: Xt,
1878
1853
  sources: St,
1879
1854
  graphDescription: gt,
1880
- barPadding: tt,
1881
- showTicks: ut,
1882
- truncateBy: C,
1883
- height: T,
1855
+ barPadding: _,
1856
+ showTicks: ct,
1857
+ truncateBy: M,
1858
+ height: j,
1884
1859
  width: y,
1885
- footNote: P,
1886
- colorDomain: Dt,
1887
- colorLegendTitle: rt,
1888
- padding: zt,
1889
- backgroundColor: F,
1890
- topMargin: et,
1891
- bottomMargin: dt,
1892
- leftMargin: xt,
1860
+ footNote: I,
1861
+ colorDomain: zt,
1862
+ colorLegendTitle: nt,
1863
+ padding: jt,
1864
+ backgroundColor: S,
1865
+ topMargin: tt,
1866
+ bottomMargin: ut,
1867
+ leftMargin: dt,
1893
1868
  rightMargin: Tt,
1894
1869
  tooltip: w,
1895
- onSeriesMouseOver: it,
1896
- suffix: W,
1897
- prefix: Y,
1898
- showLabels: K,
1899
- relativeHeight: R,
1900
- showValues: H,
1901
- refValues: O,
1902
- graphID: q,
1903
- maxValue: I,
1904
- onSeriesMouseClick: a,
1870
+ onSeriesMouseOver: et,
1871
+ suffix: G,
1872
+ prefix: F,
1873
+ showLabels: J,
1874
+ relativeHeight: W,
1875
+ showValues: xt,
1876
+ refValues: B,
1877
+ graphID: R,
1878
+ maxValue: H,
1879
+ onSeriesMouseClick: u,
1905
1880
  graphDownload: s,
1906
- dataDownload: n,
1907
- language: u,
1908
- labelOrder: d,
1909
- minHeight: f,
1881
+ dataDownload: o,
1882
+ language: d,
1883
+ labelOrder: r,
1884
+ minHeight: h,
1910
1885
  theme: x,
1911
- maxBarThickness: $,
1912
- sortParameter: Q,
1913
- maxNumberOfBars: U,
1914
- minBarThickness: ct,
1886
+ maxBarThickness: A,
1887
+ sortParameter: K,
1888
+ maxNumberOfBars: q,
1889
+ minBarThickness: rt,
1915
1890
  showColorScale: Ft,
1916
1891
  ariaLabel: Yt,
1917
- resetSelectionOnDoubleClick: E,
1892
+ resetSelectionOnDoubleClick: X,
1918
1893
  detailsOnClick: yt,
1919
1894
  barAxisTitle: Bt,
1920
- noOfTicks: r,
1895
+ noOfTicks: n,
1921
1896
  valueColor: c,
1922
- styles: B,
1923
- classNames: h,
1924
- filterNA: V,
1925
- animate: S,
1926
- precision: A,
1927
- customLayers: Lt,
1897
+ styles: T,
1898
+ classNames: f,
1899
+ filterNA: Y,
1900
+ animate: N,
1901
+ precision: $,
1902
+ customLayers: Dt,
1928
1903
  timeline: bt,
1929
- naLabel: st,
1904
+ naLabel: it,
1930
1905
  sortData: mt,
1931
- orientation: L
1932
- } = e, g = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, Z = tt === void 0 ? 0.25 : tt, _ = ut === void 0 ? !0 : ut, J = C === void 0 ? 999 : C, j = F === void 0 ? !1 : F, ht = W === void 0 ? "" : W, kt = Y === void 0 ? "" : Y, ot = K === void 0 ? !0 : K, Ct = H === void 0 ? !0 : H, G = s === void 0 ? !1 : s, nt = n === void 0 ? !1 : n, X = u === void 0 ? "en" : u, ft = f === void 0 ? 0 : f, pt = x === void 0 ? "light" : x, vt = Ft === void 0 ? !0 : Ft, wt = E === void 0 ? !0 : E, lt = r === void 0 ? 5 : r, At = V === void 0 ? !0 : V, $t = S === void 0 ? !1 : S, Ot = A === void 0 ? 2 : A;
1906
+ orientation: C
1907
+ } = e, g = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, Q = _ === void 0 ? 0.25 : _, Z = ct === void 0 ? !0 : ct, U = M === void 0 ? 999 : M, V = S === void 0 ? !1 : S, ht = G === void 0 ? "" : G, Mt = F === void 0 ? "" : F, st = J === void 0 ? !0 : J, Ct = xt === void 0 ? !0 : xt, E = s === void 0 ? !1 : s, at = o === void 0 ? !1 : o, P = d === void 0 ? "en" : d, ft = h === void 0 ? 0 : h, pt = x === void 0 ? "light" : x, vt = Ft === void 0 ? !0 : Ft, wt = X === void 0 ? !0 : X, ot = n === void 0 ? 5 : n, At = Y === void 0 ? !0 : Y, $t = N === void 0 ? !1 : N, Ot = $ === void 0 ? 2 : $;
1933
1908
  let b;
1934
- t[0] !== Lt ? (b = Lt === void 0 ? [] : Lt, t[0] = Lt, t[1] = b) : b = t[1];
1935
- const at = b, It = bt === void 0 ? {
1909
+ t[0] !== Dt ? (b = Dt === void 0 ? [] : Dt, t[0] = Dt, t[1] = b) : b = t[1];
1910
+ const lt = b, It = bt === void 0 ? {
1936
1911
  enabled: !1,
1937
1912
  autoplay: !1,
1938
1913
  showOnlyActiveDate: !0
1939
- } : bt, Et = st === void 0 ? "NA" : st, qt = (L === void 0 ? "vertical" : L) === "horizontal" ? Cs : Bs, [Nt, Kt] = Wt(0), [jt, Qt] = Wt(0), [Ut, Ht] = Wt(It.autoplay), Mt = Ze(De(m, "date", !0).map((Pt) => Be(`${Pt}`, It.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), lo), [Rt, Jt] = Wt(It.autoplay ? 0 : Mt.length - 1), [N, v] = Wt(void 0), k = de(null), o = de(null);
1914
+ } : bt, Et = it === void 0 ? "NA" : it, qt = (C === void 0 ? "vertical" : C) === "horizontal" ? Ms : Ss, [Nt, Kt] = Wt(0), [Lt, Qt] = Wt(0), [Ut, Ht] = Wt(It.autoplay), kt = Qe(Le(m, "date", !0).map((Pt) => Se(`${Pt}`, It.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oa), [Rt, Jt] = Wt(It.autoplay ? 0 : kt.length - 1), [z, v] = Wt(void 0), k = de(null), a = de(null);
1940
1915
  let p, ee;
1941
1916
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
1942
- const Pt = new ResizeObserver((ae) => {
1943
- Kt(ae[0].target.clientWidth || 620), Qt(ae[0].target.clientHeight || 480);
1917
+ const Pt = new ResizeObserver((ne) => {
1918
+ Kt(ne[0].target.clientWidth || 620), Qt(ne[0].target.clientHeight || 480);
1944
1919
  });
1945
1920
  return k.current && Pt.observe(k.current), () => Pt.disconnect();
1946
1921
  }, ee = [], t[2] = p, t[3] = ee) : (p = t[2], ee = t[3]), we(p, ee), we(() => {
1947
1922
  const Pt = setInterval(() => {
1948
- Jt((ae) => ae < Mt.length - 1 ? ae + 1 : 0);
1923
+ Jt((ne) => ne < kt.length - 1 ? ne + 1 : 0);
1949
1924
  }, (It.speed || 2) * 1e3);
1950
1925
  return Ut || clearInterval(Pt), () => clearInterval(Pt);
1951
- }, [Mt, Ut, It.speed]);
1952
- const z = Ie(Mt, Rt, It.showOnlyActiveDate, It.dateFormat || "yyyy"), Vt = Qe, l = h?.graphContainer, ie = B?.graphContainer;
1926
+ }, [kt, Ut, It.speed]);
1927
+ const L = Te(kt, Rt, It.showOnlyActiveDate, It.dateFormat || "yyyy"), Vt = Ke, l = f?.graphContainer, ie = T?.graphContainer;
1953
1928
  let se;
1954
- t[4] !== h?.description || t[5] !== h?.title || t[6] !== m || t[7] !== nt || t[8] !== gt || t[9] !== G || t[10] !== D || t[11] !== B?.description || t[12] !== B?.title || t[13] !== y ? (se = D || gt || G || nt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
1955
- title: B?.title,
1956
- description: B?.description
1929
+ t[4] !== f?.description || t[5] !== f?.title || t[6] !== m || t[7] !== at || t[8] !== gt || t[9] !== E || t[10] !== D || t[11] !== T?.description || t[12] !== T?.title || t[13] !== y ? (se = D || gt || E || at ? /* @__PURE__ */ i.jsx(Ee, { styles: {
1930
+ title: T?.title,
1931
+ description: T?.description
1957
1932
  }, classNames: {
1958
- title: h?.title,
1959
- description: h?.description
1960
- }, graphTitle: D, graphDescription: gt, width: y, graphDownload: G ? o : void 0, dataDownload: nt ? m.map(no).filter(oo).length > 0 ? m.map(so).filter(io) : m.filter(eo) : null }) : null, t[4] = h?.description, t[5] = h?.title, t[6] = m, t[7] = nt, t[8] = gt, t[9] = G, t[10] = D, t[11] = B?.description, t[12] = B?.title, t[13] = y, t[14] = se) : se = t[14];
1961
- const me = It.enabled && Mt.length > 0 && z ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
1933
+ title: f?.title,
1934
+ description: f?.description
1935
+ }, graphTitle: D, graphDescription: gt, width: y, graphDownload: E ? a : void 0, dataDownload: at ? m.map(aa).filter(sa).length > 0 ? m.map(ia).filter(ea) : m.filter(ta) : null }) : null, t[4] = f?.description, t[5] = f?.title, t[6] = m, t[7] = at, t[8] = gt, t[9] = E, t[10] = D, t[11] = T?.description, t[12] = T?.title, t[13] = y, t[14] = se) : se = t[14];
1936
+ const me = It.enabled && kt.length > 0 && L ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
1962
1937
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1963
1938
  Ht(!Ut);
1964
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Ut ? "Click to pause animation" : "Click to play animation", children: Ut ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
1965
- /* @__PURE__ */ i.jsx(Se, { min: Mt[0], max: Mt[Mt.length - 1], marks: z, step: null, defaultValue: Mt[Mt.length - 1], value: Mt[Rt], onChangeComplete: (Pt) => {
1966
- Jt(Mt.indexOf(Pt));
1939
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Ut ? "Click to pause animation" : "Click to play animation", children: Ut ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
1940
+ /* @__PURE__ */ i.jsx(Ie, { min: kt[0], max: kt[kt.length - 1], marks: L, step: null, defaultValue: kt[kt.length - 1], value: kt[Rt], onChangeComplete: (Pt) => {
1941
+ Jt(kt.indexOf(Pt));
1967
1942
  }, onChange: (Pt) => {
1968
- Jt(Mt.indexOf(Pt));
1943
+ Jt(kt.indexOf(Pt));
1969
1944
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1970
- ] }) : null, fe = "grow flex flex-col justify-center gap-3 w-full", re = m.length === 0 ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1971
- vt ? /* @__PURE__ */ i.jsx(Re, { width: y, colorDomain: Dt, colors: g, colorLegendTitle: rt, setSelectedColor: v, showNAColor: !1, className: h?.colorLegend }) : null,
1972
- /* @__PURE__ */ i.jsx(Ke, { ref: k, children: Nt && jt ? /* @__PURE__ */ i.jsx(qt, { data: Q !== void 0 ? Q === "total" ? ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(Mt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(to) : Pt), Zs, [mt || "asc"]).filter((Pt, ae) => U ? ae < U : !0) : ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(Mt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Qs) : Pt), (Pt) => _t(Pt.size[Q]) ? -1 / 0 : Pt.size[Q], [mt || "asc"]).filter((Pt, ae) => U ? ae < U : !0) : ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(Mt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Ks) : Pt).filter((Pt, ae) => U ? ae < U : !0), barColors: g, width: Nt, height: jt, barPadding: Z, showTicks: _, leftMargin: xt, rightMargin: Tt, topMargin: et, bottomMargin: dt, truncateBy: J, showLabels: ot, tooltip: w, onSeriesMouseOver: it, showValues: Ct, suffix: ht, prefix: kt, refValues: O, maxValue: _t(I) ? Math.max(...m.map(Us)) : I, onSeriesMouseClick: a, selectedColor: N, rtl: X === "he" || X === "ar", labelOrder: d, maxBarThickness: $, minBarThickness: ct, resetSelectionOnDoubleClick: wt, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: lt, valueColor: c, classNames: h, styles: B, animate: $t === !0 ? {
1945
+ ] }) : null, fe = "grow flex flex-col justify-center gap-3 w-full", re = m.length === 0 ? /* @__PURE__ */ i.jsx(Re, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1946
+ vt ? /* @__PURE__ */ i.jsx(We, { width: y, colorDomain: zt, colors: g, colorLegendTitle: nt, setSelectedColor: v, showNAColor: !1, className: f?.colorLegend }) : null,
1947
+ /* @__PURE__ */ i.jsx(Je, { ref: k, children: Nt && Lt ? /* @__PURE__ */ i.jsx(qt, { data: K !== void 0 ? K === "total" ? ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(_s) : Pt), Qs, [mt || "asc"]).filter((Pt, ne) => q ? ne < q : !0) : ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Ks) : Pt), (Pt) => _t(Pt.size[K]) ? -1 / 0 : Pt.size[K], [mt || "asc"]).filter((Pt, ne) => q ? ne < q : !0) : ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Js) : Pt).filter((Pt, ne) => q ? ne < q : !0), barColors: g, width: Nt, height: Lt, barPadding: Q, showTicks: Z, leftMargin: dt, rightMargin: Tt, topMargin: tt, bottomMargin: ut, truncateBy: U, showLabels: st, tooltip: w, onSeriesMouseOver: et, showValues: Ct, suffix: ht, prefix: Mt, refValues: B, maxValue: _t(H) ? Math.max(...m.map(qs)) : H, onSeriesMouseClick: u, selectedColor: z, rtl: P === "he" || P === "ar", labelOrder: r, maxBarThickness: A, minBarThickness: rt, resetSelectionOnDoubleClick: wt, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: ot, valueColor: c, classNames: f, styles: T, animate: $t === !0 ? {
1973
1948
  duration: 0.5,
1974
1949
  once: !0,
1975
1950
  amount: 0.5
@@ -1977,259 +1952,259 @@ function qs(e) {
1977
1952
  duration: 0,
1978
1953
  once: !0,
1979
1954
  amount: 0
1980
- }, colorDomain: Dt, precision: Ot, customLayers: at, naLabel: Et }) : null })
1955
+ }, colorDomain: zt, precision: Ot, customLayers: lt, naLabel: Et }) : null })
1981
1956
  ] });
1982
- let oe;
1983
- t[15] !== re ? (oe = /* @__PURE__ */ i.jsx("div", { className: fe, children: re }), t[15] = re, t[16] = oe) : oe = t[16];
1957
+ let ae;
1958
+ t[15] !== re ? (ae = /* @__PURE__ */ i.jsx("div", { className: fe, children: re }), t[15] = re, t[16] = ae) : ae = t[16];
1984
1959
  let le;
1985
- t[17] !== h?.footnote || t[18] !== h?.source || t[19] !== P || t[20] !== St || t[21] !== B?.footnote || t[22] !== B?.source || t[23] !== y ? (le = St || P ? /* @__PURE__ */ i.jsx(We, { styles: {
1986
- footnote: B?.footnote,
1987
- source: B?.source
1960
+ t[17] !== f?.footnote || t[18] !== f?.source || t[19] !== I || t[20] !== St || t[21] !== T?.footnote || t[22] !== T?.source || t[23] !== y ? (le = St || I ? /* @__PURE__ */ i.jsx(Ge, { styles: {
1961
+ footnote: T?.footnote,
1962
+ source: T?.source
1988
1963
  }, classNames: {
1989
- footnote: h?.footnote,
1990
- source: h?.source
1991
- }, sources: St, footNote: P, width: y }) : null, t[17] = h?.footnote, t[18] = h?.source, t[19] = P, t[20] = St, t[21] = B?.footnote, t[22] = B?.source, t[23] = y, t[24] = le) : le = t[24];
1964
+ footnote: f?.footnote,
1965
+ source: f?.source
1966
+ }, sources: St, footNote: I, width: y }) : null, t[17] = f?.footnote, t[18] = f?.source, t[19] = I, t[20] = St, t[21] = T?.footnote, t[22] = T?.source, t[23] = y, t[24] = le) : le = t[24];
1992
1967
  let Gt;
1993
- return t[25] !== Vt || t[26] !== Yt || t[27] !== j || t[28] !== q || t[29] !== T || t[30] !== X || t[31] !== ft || t[32] !== zt || t[33] !== R || t[34] !== l || t[35] !== ie || t[36] !== se || t[37] !== me || t[38] !== oe || t[39] !== le || t[40] !== pt || t[41] !== y ? (Gt = /* @__PURE__ */ i.jsxs(Vt, { className: l, style: ie, id: q, ref: o, "aria-label": Yt, backgroundColor: j, theme: pt, language: X, minHeight: ft, width: y, height: T, relativeHeight: R, padding: zt, children: [
1968
+ return t[25] !== Vt || t[26] !== Yt || t[27] !== V || t[28] !== R || t[29] !== j || t[30] !== P || t[31] !== ft || t[32] !== jt || t[33] !== W || t[34] !== l || t[35] !== ie || t[36] !== se || t[37] !== me || t[38] !== ae || t[39] !== le || t[40] !== pt || t[41] !== y ? (Gt = /* @__PURE__ */ i.jsxs(Vt, { className: l, style: ie, id: R, ref: a, "aria-label": Yt, backgroundColor: V, theme: pt, language: P, minHeight: ft, width: y, height: j, relativeHeight: W, padding: jt, children: [
1994
1969
  se,
1995
1970
  me,
1996
- oe,
1971
+ ae,
1997
1972
  le
1998
- ] }), t[25] = Vt, t[26] = Yt, t[27] = j, t[28] = q, t[29] = T, t[30] = X, t[31] = ft, t[32] = zt, t[33] = R, t[34] = l, t[35] = ie, t[36] = se, t[37] = me, t[38] = oe, t[39] = le, t[40] = pt, t[41] = y, t[42] = Gt) : Gt = t[42], Gt;
1973
+ ] }), t[25] = Vt, t[26] = Yt, t[27] = V, t[28] = R, t[29] = j, t[30] = P, t[31] = ft, t[32] = jt, t[33] = W, t[34] = l, t[35] = ie, t[36] = se, t[37] = me, t[38] = ae, t[39] = le, t[40] = pt, t[41] = y, t[42] = Gt) : Gt = t[42], Gt;
1974
+ }
1975
+ function qs(e) {
1976
+ return oe(e.size.filter(Us)) || 0;
1999
1977
  }
2000
1978
  function Us(e) {
2001
- return ne(e.size.filter(Js)) || 0;
1979
+ return !_t(e);
2002
1980
  }
2003
1981
  function Js(e) {
2004
- return !_t(e);
1982
+ return e == null;
2005
1983
  }
2006
1984
  function Ks(e) {
2007
1985
  return e == null;
2008
1986
  }
2009
1987
  function Qs(e) {
2010
- return e == null;
1988
+ return oe(e.size.filter(Zs));
2011
1989
  }
2012
1990
  function Zs(e) {
2013
- return ne(e.size.filter(_s));
2014
- }
2015
- function _s(e) {
2016
1991
  return !_t(e);
2017
1992
  }
2018
- function to(e) {
1993
+ function _s(e) {
2019
1994
  return e == null;
2020
1995
  }
2021
- function eo(e) {
1996
+ function ta(e) {
2022
1997
  return e !== void 0;
2023
1998
  }
2024
- function io(e) {
1999
+ function ea(e) {
2025
2000
  return e !== void 0;
2026
2001
  }
2027
- function so(e) {
2002
+ function ia(e) {
2028
2003
  return e.data;
2029
2004
  }
2030
- function oo(e) {
2005
+ function sa(e) {
2031
2006
  return e !== void 0;
2032
2007
  }
2033
- function no(e) {
2008
+ function aa(e) {
2034
2009
  return e.data;
2035
2010
  }
2036
- function lo(e, t) {
2037
- return _e(e, t);
2011
+ function oa(e, t) {
2012
+ return Ze(e, t);
2038
2013
  }
2039
- function Go(e) {
2014
+ function Xa(e) {
2040
2015
  const t = xe.c(61), {
2041
2016
  data: m,
2042
2017
  graphTitle: D,
2043
2018
  colors: Xt,
2044
2019
  barPadding: St,
2045
2020
  showTicks: gt,
2046
- leftMargin: tt,
2047
- rightMargin: ut,
2048
- topMargin: C,
2049
- bottomMargin: T,
2021
+ leftMargin: _,
2022
+ rightMargin: ct,
2023
+ topMargin: M,
2024
+ bottomMargin: j,
2050
2025
  truncateBy: y,
2051
- showLabels: P,
2052
- showValues: Dt,
2053
- backgroundColor: rt,
2054
- suffix: zt,
2055
- prefix: F,
2056
- sources: et,
2057
- graphDescription: dt,
2058
- height: xt,
2026
+ showLabels: I,
2027
+ showValues: zt,
2028
+ backgroundColor: nt,
2029
+ suffix: jt,
2030
+ prefix: S,
2031
+ sources: tt,
2032
+ graphDescription: ut,
2033
+ height: dt,
2059
2034
  width: Tt,
2060
2035
  footNote: w,
2061
- colorDomain: it,
2062
- colorLegendTitle: W,
2063
- padding: Y,
2064
- relativeHeight: K,
2065
- tooltip: R,
2066
- onSeriesMouseOver: H,
2067
- refValues: O,
2068
- showColorScale: q,
2069
- graphID: I,
2070
- maxValue: a,
2036
+ colorDomain: et,
2037
+ colorLegendTitle: G,
2038
+ padding: F,
2039
+ relativeHeight: J,
2040
+ tooltip: W,
2041
+ onSeriesMouseOver: xt,
2042
+ refValues: B,
2043
+ showColorScale: R,
2044
+ graphID: H,
2045
+ maxValue: u,
2071
2046
  minValue: s,
2072
- highlightedDataPoints: n,
2073
- onSeriesMouseClick: u,
2074
- graphDownload: d,
2075
- dataDownload: f,
2047
+ highlightedDataPoints: o,
2048
+ onSeriesMouseClick: d,
2049
+ graphDownload: r,
2050
+ dataDownload: h,
2076
2051
  language: x,
2077
- theme: $,
2078
- sortData: Q,
2079
- labelOrder: U,
2080
- showNAColor: ct,
2052
+ theme: A,
2053
+ sortData: K,
2054
+ labelOrder: q,
2055
+ showNAColor: rt,
2081
2056
  minHeight: Ft,
2082
2057
  maxBarThickness: Yt,
2083
- maxNumberOfBars: E,
2058
+ maxNumberOfBars: X,
2084
2059
  minBarThickness: yt,
2085
2060
  ariaLabel: Bt,
2086
- resetSelectionOnDoubleClick: r,
2061
+ resetSelectionOnDoubleClick: n,
2087
2062
  detailsOnClick: c,
2088
- barAxisTitle: B,
2089
- noOfTicks: h,
2090
- valueColor: V,
2091
- orientation: S,
2092
- styles: A,
2093
- classNames: Lt,
2063
+ barAxisTitle: T,
2064
+ noOfTicks: f,
2065
+ valueColor: Y,
2066
+ orientation: N,
2067
+ styles: $,
2068
+ classNames: Dt,
2094
2069
  filterNA: bt,
2095
- animate: st,
2070
+ animate: it,
2096
2071
  dimmedOpacity: mt,
2097
- precision: L,
2072
+ precision: C,
2098
2073
  customLayers: g,
2099
- timeline: Z,
2100
- naLabel: _
2101
- } = e, J = S === void 0 ? "vertical" : S;
2102
- let j;
2103
- return t[0] !== st || t[1] !== Bt || t[2] !== rt || t[3] !== B || t[4] !== St || t[5] !== T || t[6] !== Lt || t[7] !== it || t[8] !== W || t[9] !== Xt || t[10] !== g || t[11] !== m || t[12] !== f || t[13] !== c || t[14] !== mt || t[15] !== bt || t[16] !== w || t[17] !== dt || t[18] !== d || t[19] !== I || t[20] !== D || t[21] !== xt || t[22] !== n || t[23] !== U || t[24] !== x || t[25] !== tt || t[26] !== Yt || t[27] !== E || t[28] !== a || t[29] !== yt || t[30] !== Ft || t[31] !== s || t[32] !== _ || t[33] !== h || t[34] !== u || t[35] !== H || t[36] !== J || t[37] !== Y || t[38] !== L || t[39] !== F || t[40] !== O || t[41] !== K || t[42] !== r || t[43] !== ut || t[44] !== q || t[45] !== P || t[46] !== ct || t[47] !== gt || t[48] !== Dt || t[49] !== Q || t[50] !== et || t[51] !== A || t[52] !== zt || t[53] !== $ || t[54] !== Z || t[55] !== R || t[56] !== C || t[57] !== y || t[58] !== V || t[59] !== Tt ? (j = /* @__PURE__ */ i.jsx(cs, { data: m, graphTitle: D, colors: Xt, barPadding: St, showTicks: gt, leftMargin: tt, rightMargin: ut, topMargin: C, bottomMargin: T, truncateBy: y, showLabels: P, showValues: Dt, backgroundColor: rt, suffix: zt, prefix: F, sources: et, graphDescription: dt, height: xt, width: Tt, footNote: w, colorDomain: it, colorLegendTitle: W, padding: Y, relativeHeight: K, tooltip: R, onSeriesMouseOver: H, refValues: O, showColorScale: q, graphID: I, maxValue: a, minValue: s, highlightedDataPoints: n, onSeriesMouseClick: u, graphDownload: d, dataDownload: f, language: x, theme: $, sortData: Q, labelOrder: U, showNAColor: ct, minHeight: Ft, maxBarThickness: Yt, maxNumberOfBars: E, minBarThickness: yt, ariaLabel: Bt, resetSelectionOnDoubleClick: r, styles: A, detailsOnClick: c, barAxisTitle: B, noOfTicks: h, valueColor: V, classNames: Lt, filterNA: bt, animate: st, dimmedOpacity: mt, precision: L, customLayers: g, timeline: Z, naLabel: _, orientation: J }), t[0] = st, t[1] = Bt, t[2] = rt, t[3] = B, t[4] = St, t[5] = T, t[6] = Lt, t[7] = it, t[8] = W, t[9] = Xt, t[10] = g, t[11] = m, t[12] = f, t[13] = c, t[14] = mt, t[15] = bt, t[16] = w, t[17] = dt, t[18] = d, t[19] = I, t[20] = D, t[21] = xt, t[22] = n, t[23] = U, t[24] = x, t[25] = tt, t[26] = Yt, t[27] = E, t[28] = a, t[29] = yt, t[30] = Ft, t[31] = s, t[32] = _, t[33] = h, t[34] = u, t[35] = H, t[36] = J, t[37] = Y, t[38] = L, t[39] = F, t[40] = O, t[41] = K, t[42] = r, t[43] = ut, t[44] = q, t[45] = P, t[46] = ct, t[47] = gt, t[48] = Dt, t[49] = Q, t[50] = et, t[51] = A, t[52] = zt, t[53] = $, t[54] = Z, t[55] = R, t[56] = C, t[57] = y, t[58] = V, t[59] = Tt, t[60] = j) : j = t[60], j;
2074
+ timeline: Q,
2075
+ naLabel: Z
2076
+ } = e, U = N === void 0 ? "vertical" : N;
2077
+ let V;
2078
+ return t[0] !== it || t[1] !== Bt || t[2] !== nt || t[3] !== T || t[4] !== St || t[5] !== j || t[6] !== Dt || t[7] !== et || t[8] !== G || t[9] !== Xt || t[10] !== g || t[11] !== m || t[12] !== h || t[13] !== c || t[14] !== mt || t[15] !== bt || t[16] !== w || t[17] !== ut || t[18] !== r || t[19] !== H || t[20] !== D || t[21] !== dt || t[22] !== o || t[23] !== q || t[24] !== x || t[25] !== _ || t[26] !== Yt || t[27] !== X || t[28] !== u || t[29] !== yt || t[30] !== Ft || t[31] !== s || t[32] !== Z || t[33] !== f || t[34] !== d || t[35] !== xt || t[36] !== U || t[37] !== F || t[38] !== C || t[39] !== S || t[40] !== B || t[41] !== J || t[42] !== n || t[43] !== ct || t[44] !== R || t[45] !== I || t[46] !== rt || t[47] !== gt || t[48] !== zt || t[49] !== K || t[50] !== tt || t[51] !== $ || t[52] !== jt || t[53] !== A || t[54] !== Q || t[55] !== W || t[56] !== M || t[57] !== y || t[58] !== Y || t[59] !== Tt ? (V = /* @__PURE__ */ i.jsx(rs, { data: m, graphTitle: D, colors: Xt, barPadding: St, showTicks: gt, leftMargin: _, rightMargin: ct, topMargin: M, bottomMargin: j, truncateBy: y, showLabels: I, showValues: zt, backgroundColor: nt, suffix: jt, prefix: S, sources: tt, graphDescription: ut, height: dt, width: Tt, footNote: w, colorDomain: et, colorLegendTitle: G, padding: F, relativeHeight: J, tooltip: W, onSeriesMouseOver: xt, refValues: B, showColorScale: R, graphID: H, maxValue: u, minValue: s, highlightedDataPoints: o, onSeriesMouseClick: d, graphDownload: r, dataDownload: h, language: x, theme: A, sortData: K, labelOrder: q, showNAColor: rt, minHeight: Ft, maxBarThickness: Yt, maxNumberOfBars: X, minBarThickness: yt, ariaLabel: Bt, resetSelectionOnDoubleClick: n, styles: $, detailsOnClick: c, barAxisTitle: T, noOfTicks: f, valueColor: Y, classNames: Dt, filterNA: bt, animate: it, dimmedOpacity: mt, precision: C, customLayers: g, timeline: Q, naLabel: Z, orientation: U }), t[0] = it, t[1] = Bt, t[2] = nt, t[3] = T, t[4] = St, t[5] = j, t[6] = Dt, t[7] = et, t[8] = G, t[9] = Xt, t[10] = g, t[11] = m, t[12] = h, t[13] = c, t[14] = mt, t[15] = bt, t[16] = w, t[17] = ut, t[18] = r, t[19] = H, t[20] = D, t[21] = dt, t[22] = o, t[23] = q, t[24] = x, t[25] = _, t[26] = Yt, t[27] = X, t[28] = u, t[29] = yt, t[30] = Ft, t[31] = s, t[32] = Z, t[33] = f, t[34] = d, t[35] = xt, t[36] = U, t[37] = F, t[38] = C, t[39] = S, t[40] = B, t[41] = J, t[42] = n, t[43] = ct, t[44] = R, t[45] = I, t[46] = rt, t[47] = gt, t[48] = zt, t[49] = K, t[50] = tt, t[51] = $, t[52] = jt, t[53] = A, t[54] = Q, t[55] = W, t[56] = M, t[57] = y, t[58] = Y, t[59] = Tt, t[60] = V) : V = t[60], V;
2104
2079
  }
2105
- function Wo(e) {
2080
+ function Ya(e) {
2106
2081
  const t = xe.c(57), {
2107
2082
  data: m,
2108
2083
  graphTitle: D,
2109
2084
  colors: Xt,
2110
2085
  sources: St,
2111
2086
  graphDescription: gt,
2112
- barPadding: tt,
2113
- showTicks: ut,
2114
- truncateBy: C,
2115
- height: T,
2087
+ barPadding: _,
2088
+ showTicks: ct,
2089
+ truncateBy: M,
2090
+ height: j,
2116
2091
  width: y,
2117
- footNote: P,
2118
- colorDomain: Dt,
2119
- colorLegendTitle: rt,
2120
- suffix: zt,
2121
- prefix: F,
2122
- showValues: et,
2123
- padding: dt,
2124
- backgroundColor: xt,
2092
+ footNote: I,
2093
+ colorDomain: zt,
2094
+ colorLegendTitle: nt,
2095
+ suffix: jt,
2096
+ prefix: S,
2097
+ showValues: tt,
2098
+ padding: ut,
2099
+ backgroundColor: dt,
2125
2100
  leftMargin: Tt,
2126
2101
  rightMargin: w,
2127
- topMargin: it,
2128
- bottomMargin: W,
2129
- showLabels: Y,
2130
- relativeHeight: K,
2131
- tooltip: R,
2132
- onSeriesMouseOver: H,
2133
- refValues: O,
2134
- graphID: q,
2135
- maxValue: I,
2136
- minValue: a,
2102
+ topMargin: et,
2103
+ bottomMargin: G,
2104
+ showLabels: F,
2105
+ relativeHeight: J,
2106
+ tooltip: W,
2107
+ onSeriesMouseOver: xt,
2108
+ refValues: B,
2109
+ graphID: R,
2110
+ maxValue: H,
2111
+ minValue: u,
2137
2112
  onSeriesMouseClick: s,
2138
- graphDownload: n,
2139
- dataDownload: u,
2140
- language: d,
2141
- labelOrder: f,
2113
+ graphDownload: o,
2114
+ dataDownload: d,
2115
+ language: r,
2116
+ labelOrder: h,
2142
2117
  minHeight: x,
2143
- theme: $,
2144
- sortParameter: Q,
2145
- sortData: U,
2146
- maxBarThickness: ct,
2118
+ theme: A,
2119
+ sortParameter: K,
2120
+ sortData: q,
2121
+ maxBarThickness: rt,
2147
2122
  ariaLabel: Ft,
2148
2123
  resetSelectionOnDoubleClick: Yt,
2149
- detailsOnClick: E,
2124
+ detailsOnClick: X,
2150
2125
  barAxisTitle: yt,
2151
2126
  noOfTicks: Bt,
2152
- valueColor: r,
2127
+ valueColor: n,
2153
2128
  orientation: c,
2154
- styles: B,
2155
- classNames: h,
2156
- filterNA: V,
2157
- animate: S,
2158
- precision: A,
2159
- customLayers: Lt,
2129
+ styles: T,
2130
+ classNames: f,
2131
+ filterNA: Y,
2132
+ animate: N,
2133
+ precision: $,
2134
+ customLayers: Dt,
2160
2135
  showColorScale: bt,
2161
- timeline: st,
2136
+ timeline: it,
2162
2137
  naLabel: mt
2163
- } = e, L = c === void 0 ? "vertical" : c;
2138
+ } = e, C = c === void 0 ? "vertical" : c;
2164
2139
  let g;
2165
- return t[0] !== S || t[1] !== Ft || t[2] !== xt || t[3] !== yt || t[4] !== tt || t[5] !== W || t[6] !== h || t[7] !== Dt || t[8] !== rt || t[9] !== Xt || t[10] !== Lt || t[11] !== m || t[12] !== u || t[13] !== E || t[14] !== V || t[15] !== P || t[16] !== gt || t[17] !== n || t[18] !== q || t[19] !== D || t[20] !== T || t[21] !== f || t[22] !== d || t[23] !== Tt || t[24] !== ct || t[25] !== I || t[26] !== x || t[27] !== a || t[28] !== mt || t[29] !== Bt || t[30] !== s || t[31] !== H || t[32] !== L || t[33] !== dt || t[34] !== A || t[35] !== F || t[36] !== O || t[37] !== K || t[38] !== Yt || t[39] !== w || t[40] !== bt || t[41] !== Y || t[42] !== ut || t[43] !== et || t[44] !== U || t[45] !== Q || t[46] !== St || t[47] !== B || t[48] !== zt || t[49] !== $ || t[50] !== st || t[51] !== R || t[52] !== it || t[53] !== C || t[54] !== r || t[55] !== y ? (g = /* @__PURE__ */ i.jsx(bi, { orientation: L, data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: tt, showTicks: ut, truncateBy: C, height: T, width: y, footNote: P, colorDomain: Dt, colorLegendTitle: rt, suffix: zt, prefix: F, showValues: et, padding: dt, backgroundColor: xt, leftMargin: Tt, rightMargin: w, sortParameter: Q, sortData: U, topMargin: it, bottomMargin: W, showLabels: Y, relativeHeight: K, tooltip: R, onSeriesMouseOver: H, refValues: O, graphID: q, maxValue: I, minValue: a, onSeriesMouseClick: s, graphDownload: n, dataDownload: u, language: d, labelOrder: f, minHeight: x, theme: $, maxBarThickness: ct, ariaLabel: Ft, resetSelectionOnDoubleClick: Yt, styles: B, detailsOnClick: E, barAxisTitle: yt, noOfTicks: Bt, valueColor: r, classNames: h, filterNA: V, animate: S, precision: A, customLayers: Lt, showColorScale: bt, timeline: st, naLabel: mt }), t[0] = S, t[1] = Ft, t[2] = xt, t[3] = yt, t[4] = tt, t[5] = W, t[6] = h, t[7] = Dt, t[8] = rt, t[9] = Xt, t[10] = Lt, t[11] = m, t[12] = u, t[13] = E, t[14] = V, t[15] = P, t[16] = gt, t[17] = n, t[18] = q, t[19] = D, t[20] = T, t[21] = f, t[22] = d, t[23] = Tt, t[24] = ct, t[25] = I, t[26] = x, t[27] = a, t[28] = mt, t[29] = Bt, t[30] = s, t[31] = H, t[32] = L, t[33] = dt, t[34] = A, t[35] = F, t[36] = O, t[37] = K, t[38] = Yt, t[39] = w, t[40] = bt, t[41] = Y, t[42] = ut, t[43] = et, t[44] = U, t[45] = Q, t[46] = St, t[47] = B, t[48] = zt, t[49] = $, t[50] = st, t[51] = R, t[52] = it, t[53] = C, t[54] = r, t[55] = y, t[56] = g) : g = t[56], g;
2140
+ return t[0] !== N || t[1] !== Ft || t[2] !== dt || t[3] !== yt || t[4] !== _ || t[5] !== G || t[6] !== f || t[7] !== zt || t[8] !== nt || t[9] !== Xt || t[10] !== Dt || t[11] !== m || t[12] !== d || t[13] !== X || t[14] !== Y || t[15] !== I || t[16] !== gt || t[17] !== o || t[18] !== R || t[19] !== D || t[20] !== j || t[21] !== h || t[22] !== r || t[23] !== Tt || t[24] !== rt || t[25] !== H || t[26] !== x || t[27] !== u || t[28] !== mt || t[29] !== Bt || t[30] !== s || t[31] !== xt || t[32] !== C || t[33] !== ut || t[34] !== $ || t[35] !== S || t[36] !== B || t[37] !== J || t[38] !== Yt || t[39] !== w || t[40] !== bt || t[41] !== F || t[42] !== ct || t[43] !== tt || t[44] !== q || t[45] !== K || t[46] !== St || t[47] !== T || t[48] !== jt || t[49] !== A || t[50] !== it || t[51] !== W || t[52] !== et || t[53] !== M || t[54] !== n || t[55] !== y ? (g = /* @__PURE__ */ i.jsx(yi, { orientation: C, data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: _, showTicks: ct, truncateBy: M, height: j, width: y, footNote: I, colorDomain: zt, colorLegendTitle: nt, suffix: jt, prefix: S, showValues: tt, padding: ut, backgroundColor: dt, leftMargin: Tt, rightMargin: w, sortParameter: K, sortData: q, topMargin: et, bottomMargin: G, showLabels: F, relativeHeight: J, tooltip: W, onSeriesMouseOver: xt, refValues: B, graphID: R, maxValue: H, minValue: u, onSeriesMouseClick: s, graphDownload: o, dataDownload: d, language: r, labelOrder: h, minHeight: x, theme: A, maxBarThickness: rt, ariaLabel: Ft, resetSelectionOnDoubleClick: Yt, styles: T, detailsOnClick: X, barAxisTitle: yt, noOfTicks: Bt, valueColor: n, classNames: f, filterNA: Y, animate: N, precision: $, customLayers: Dt, showColorScale: bt, timeline: it, naLabel: mt }), t[0] = N, t[1] = Ft, t[2] = dt, t[3] = yt, t[4] = _, t[5] = G, t[6] = f, t[7] = zt, t[8] = nt, t[9] = Xt, t[10] = Dt, t[11] = m, t[12] = d, t[13] = X, t[14] = Y, t[15] = I, t[16] = gt, t[17] = o, t[18] = R, t[19] = D, t[20] = j, t[21] = h, t[22] = r, t[23] = Tt, t[24] = rt, t[25] = H, t[26] = x, t[27] = u, t[28] = mt, t[29] = Bt, t[30] = s, t[31] = xt, t[32] = C, t[33] = ut, t[34] = $, t[35] = S, t[36] = B, t[37] = J, t[38] = Yt, t[39] = w, t[40] = bt, t[41] = F, t[42] = ct, t[43] = tt, t[44] = q, t[45] = K, t[46] = St, t[47] = T, t[48] = jt, t[49] = A, t[50] = it, t[51] = W, t[52] = et, t[53] = M, t[54] = n, t[55] = y, t[56] = g) : g = t[56], g;
2166
2141
  }
2167
- function Ro(e) {
2142
+ function Ea(e) {
2168
2143
  const t = xe.c(58), {
2169
2144
  data: m,
2170
2145
  graphTitle: D,
2171
2146
  colors: Xt,
2172
2147
  sources: St,
2173
2148
  graphDescription: gt,
2174
- barPadding: tt,
2175
- showTicks: ut,
2176
- leftMargin: C,
2177
- rightMargin: T,
2149
+ barPadding: _,
2150
+ showTicks: ct,
2151
+ leftMargin: M,
2152
+ rightMargin: j,
2178
2153
  topMargin: y,
2179
- bottomMargin: P,
2180
- truncateBy: Dt,
2181
- showLabels: rt,
2182
- showValues: zt,
2183
- backgroundColor: F,
2184
- suffix: et,
2185
- prefix: dt,
2186
- height: xt,
2154
+ bottomMargin: I,
2155
+ truncateBy: zt,
2156
+ showLabels: nt,
2157
+ showValues: jt,
2158
+ backgroundColor: S,
2159
+ suffix: tt,
2160
+ prefix: ut,
2161
+ height: dt,
2187
2162
  width: Tt,
2188
2163
  footNote: w,
2189
- colorDomain: it,
2190
- colorLegendTitle: W,
2191
- padding: Y,
2192
- tooltip: K,
2193
- onSeriesMouseOver: R,
2194
- relativeHeight: H,
2195
- refValues: O,
2196
- graphID: q,
2197
- maxValue: I,
2198
- onSeriesMouseClick: a,
2164
+ colorDomain: et,
2165
+ colorLegendTitle: G,
2166
+ padding: F,
2167
+ tooltip: J,
2168
+ onSeriesMouseOver: W,
2169
+ relativeHeight: xt,
2170
+ refValues: B,
2171
+ graphID: R,
2172
+ maxValue: H,
2173
+ onSeriesMouseClick: u,
2199
2174
  graphDownload: s,
2200
- dataDownload: n,
2201
- language: u,
2202
- theme: d,
2203
- labelOrder: f,
2175
+ dataDownload: o,
2176
+ language: d,
2177
+ theme: r,
2178
+ labelOrder: h,
2204
2179
  minHeight: x,
2205
- maxBarThickness: $,
2206
- sortParameter: Q,
2207
- sortData: U,
2208
- maxNumberOfBars: ct,
2180
+ maxBarThickness: A,
2181
+ sortParameter: K,
2182
+ sortData: q,
2183
+ maxNumberOfBars: rt,
2209
2184
  minBarThickness: Ft,
2210
2185
  ariaLabel: Yt,
2211
- resetSelectionOnDoubleClick: E,
2186
+ resetSelectionOnDoubleClick: X,
2212
2187
  detailsOnClick: yt,
2213
2188
  barAxisTitle: Bt,
2214
- noOfTicks: r,
2189
+ noOfTicks: n,
2215
2190
  valueColor: c,
2216
- orientation: B,
2217
- styles: h,
2218
- classNames: V,
2219
- filterNA: S,
2220
- animate: A,
2221
- precision: Lt,
2191
+ orientation: T,
2192
+ styles: f,
2193
+ classNames: Y,
2194
+ filterNA: N,
2195
+ animate: $,
2196
+ precision: Dt,
2222
2197
  customLayers: bt,
2223
- showColorScale: st,
2198
+ showColorScale: it,
2224
2199
  timeline: mt,
2225
- naLabel: L
2226
- } = e, g = B === void 0 ? "vertical" : B;
2227
- let Z;
2228
- return t[0] !== A || t[1] !== Yt || t[2] !== F || t[3] !== Bt || t[4] !== tt || t[5] !== P || t[6] !== V || t[7] !== it || t[8] !== W || t[9] !== Xt || t[10] !== bt || t[11] !== m || t[12] !== n || t[13] !== yt || t[14] !== S || t[15] !== w || t[16] !== gt || t[17] !== s || t[18] !== q || t[19] !== D || t[20] !== xt || t[21] !== f || t[22] !== u || t[23] !== C || t[24] !== $ || t[25] !== ct || t[26] !== I || t[27] !== Ft || t[28] !== x || t[29] !== L || t[30] !== r || t[31] !== a || t[32] !== R || t[33] !== g || t[34] !== Y || t[35] !== Lt || t[36] !== dt || t[37] !== O || t[38] !== H || t[39] !== E || t[40] !== T || t[41] !== st || t[42] !== rt || t[43] !== ut || t[44] !== zt || t[45] !== U || t[46] !== Q || t[47] !== St || t[48] !== h || t[49] !== et || t[50] !== d || t[51] !== mt || t[52] !== K || t[53] !== y || t[54] !== Dt || t[55] !== c || t[56] !== Tt ? (Z = /* @__PURE__ */ i.jsx(qs, { data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: tt, showTicks: ut, leftMargin: C, rightMargin: T, topMargin: y, bottomMargin: P, truncateBy: Dt, showLabels: rt, showValues: zt, backgroundColor: F, suffix: et, prefix: dt, height: xt, width: Tt, footNote: w, colorDomain: it, colorLegendTitle: W, padding: Y, tooltip: K, onSeriesMouseOver: R, relativeHeight: H, refValues: O, graphID: q, maxValue: I, onSeriesMouseClick: a, graphDownload: s, dataDownload: n, language: u, theme: d, labelOrder: f, minHeight: x, maxBarThickness: $, sortParameter: Q, sortData: U, maxNumberOfBars: ct, minBarThickness: Ft, ariaLabel: Yt, resetSelectionOnDoubleClick: E, styles: h, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: r, valueColor: c, classNames: V, filterNA: S, animate: A, precision: Lt, customLayers: bt, showColorScale: st, timeline: mt, naLabel: L, orientation: g }), t[0] = A, t[1] = Yt, t[2] = F, t[3] = Bt, t[4] = tt, t[5] = P, t[6] = V, t[7] = it, t[8] = W, t[9] = Xt, t[10] = bt, t[11] = m, t[12] = n, t[13] = yt, t[14] = S, t[15] = w, t[16] = gt, t[17] = s, t[18] = q, t[19] = D, t[20] = xt, t[21] = f, t[22] = u, t[23] = C, t[24] = $, t[25] = ct, t[26] = I, t[27] = Ft, t[28] = x, t[29] = L, t[30] = r, t[31] = a, t[32] = R, t[33] = g, t[34] = Y, t[35] = Lt, t[36] = dt, t[37] = O, t[38] = H, t[39] = E, t[40] = T, t[41] = st, t[42] = rt, t[43] = ut, t[44] = zt, t[45] = U, t[46] = Q, t[47] = St, t[48] = h, t[49] = et, t[50] = d, t[51] = mt, t[52] = K, t[53] = y, t[54] = Dt, t[55] = c, t[56] = Tt, t[57] = Z) : Z = t[57], Z;
2200
+ naLabel: C
2201
+ } = e, g = T === void 0 ? "vertical" : T;
2202
+ let Q;
2203
+ return t[0] !== $ || t[1] !== Yt || t[2] !== S || t[3] !== Bt || t[4] !== _ || t[5] !== I || t[6] !== Y || t[7] !== et || t[8] !== G || t[9] !== Xt || t[10] !== bt || t[11] !== m || t[12] !== o || t[13] !== yt || t[14] !== N || t[15] !== w || t[16] !== gt || t[17] !== s || t[18] !== R || t[19] !== D || t[20] !== dt || t[21] !== h || t[22] !== d || t[23] !== M || t[24] !== A || t[25] !== rt || t[26] !== H || t[27] !== Ft || t[28] !== x || t[29] !== C || t[30] !== n || t[31] !== u || t[32] !== W || t[33] !== g || t[34] !== F || t[35] !== Dt || t[36] !== ut || t[37] !== B || t[38] !== xt || t[39] !== X || t[40] !== j || t[41] !== it || t[42] !== nt || t[43] !== ct || t[44] !== jt || t[45] !== q || t[46] !== K || t[47] !== St || t[48] !== f || t[49] !== tt || t[50] !== r || t[51] !== mt || t[52] !== J || t[53] !== y || t[54] !== zt || t[55] !== c || t[56] !== Tt ? (Q = /* @__PURE__ */ i.jsx(Rs, { data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: _, showTicks: ct, leftMargin: M, rightMargin: j, topMargin: y, bottomMargin: I, truncateBy: zt, showLabels: nt, showValues: jt, backgroundColor: S, suffix: tt, prefix: ut, height: dt, width: Tt, footNote: w, colorDomain: et, colorLegendTitle: G, padding: F, tooltip: J, onSeriesMouseOver: W, relativeHeight: xt, refValues: B, graphID: R, maxValue: H, onSeriesMouseClick: u, graphDownload: s, dataDownload: o, language: d, theme: r, labelOrder: h, minHeight: x, maxBarThickness: A, sortParameter: K, sortData: q, maxNumberOfBars: rt, minBarThickness: Ft, ariaLabel: Yt, resetSelectionOnDoubleClick: X, styles: f, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: n, valueColor: c, classNames: Y, filterNA: N, animate: $, precision: Dt, customLayers: bt, showColorScale: it, timeline: mt, naLabel: C, orientation: g }), t[0] = $, t[1] = Yt, t[2] = S, t[3] = Bt, t[4] = _, t[5] = I, t[6] = Y, t[7] = et, t[8] = G, t[9] = Xt, t[10] = bt, t[11] = m, t[12] = o, t[13] = yt, t[14] = N, t[15] = w, t[16] = gt, t[17] = s, t[18] = R, t[19] = D, t[20] = dt, t[21] = h, t[22] = d, t[23] = M, t[24] = A, t[25] = rt, t[26] = H, t[27] = Ft, t[28] = x, t[29] = C, t[30] = n, t[31] = u, t[32] = W, t[33] = g, t[34] = F, t[35] = Dt, t[36] = ut, t[37] = B, t[38] = xt, t[39] = X, t[40] = j, t[41] = it, t[42] = nt, t[43] = ct, t[44] = jt, t[45] = q, t[46] = K, t[47] = St, t[48] = f, t[49] = tt, t[50] = r, t[51] = mt, t[52] = J, t[53] = y, t[54] = zt, t[55] = c, t[56] = Tt, t[57] = Q) : Q = t[57], Q;
2229
2204
  }
2230
2205
  export {
2231
- Wo as GroupedBarGraph,
2232
- Go as SimpleBarGraph,
2233
- Ro as StackedBarGraph
2206
+ Ya as GroupedBarGraph,
2207
+ Xa as SimpleBarGraph,
2208
+ Ea as StackedBarGraph
2234
2209
  };
2235
2210
  //# sourceMappingURL=BarGraph.js.map