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