@undp/data-viz 2.0.9 → 2.1.1

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