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