@undp/data-viz 2.0.9 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.d.ts +2 -0
  3. package/dist/AreaChart.js +1 -1
  4. package/dist/BarGraph.cjs +1 -1
  5. package/dist/BarGraph.cjs.map +1 -1
  6. package/dist/BarGraph.d.ts +2 -0
  7. package/dist/BarGraph.js +1188 -1213
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BasicStatCard.d.ts +2 -0
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.d.ts +2 -0
  13. package/dist/BeeSwarmChart.js +258 -267
  14. package/dist/BeeSwarmChart.js.map +1 -1
  15. package/dist/BiVariateChoroplethMap.cjs +1 -1
  16. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  17. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  18. package/dist/BiVariateChoroplethMap.js +126 -131
  19. package/dist/BiVariateChoroplethMap.js.map +1 -1
  20. package/dist/BulletChart.cjs +1 -1
  21. package/dist/BulletChart.cjs.map +1 -1
  22. package/dist/BulletChart.d.ts +2 -0
  23. package/dist/BulletChart.js +404 -413
  24. package/dist/BulletChart.js.map +1 -1
  25. package/dist/ButterflyChart.cjs +1 -1
  26. package/dist/ButterflyChart.cjs.map +1 -1
  27. package/dist/ButterflyChart.d.ts +2 -0
  28. package/dist/ButterflyChart.js +179 -184
  29. package/dist/ButterflyChart.js.map +1 -1
  30. package/dist/ChoroplethMap.cjs +1 -1
  31. package/dist/ChoroplethMap.cjs.map +1 -1
  32. package/dist/ChoroplethMap.d.ts +2 -0
  33. package/dist/ChoroplethMap.js +268 -273
  34. package/dist/ChoroplethMap.js.map +1 -1
  35. package/dist/CirclePackingGraph.cjs +1 -1
  36. package/dist/CirclePackingGraph.d.ts +2 -0
  37. package/dist/CirclePackingGraph.js +1 -1
  38. package/dist/DataCards.d.ts +2 -0
  39. package/dist/DataCards.js +1 -1
  40. package/dist/DataTable.d.ts +2 -0
  41. package/dist/DetailsModal-0Ry5nXiC.js +32 -0
  42. package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
  43. package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
  44. package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
  45. package/dist/DifferenceLineChart.cjs +1 -1
  46. package/dist/DifferenceLineChart.d.ts +2 -0
  47. package/dist/DifferenceLineChart.js +1 -1
  48. package/dist/DonutChart.cjs +1 -1
  49. package/dist/DonutChart.cjs.map +1 -1
  50. package/dist/DonutChart.d.ts +2 -0
  51. package/dist/DonutChart.js +185 -190
  52. package/dist/DonutChart.js.map +1 -1
  53. package/dist/DotDensityMap.cjs +1 -1
  54. package/dist/DotDensityMap.cjs.map +1 -1
  55. package/dist/DotDensityMap.d.ts +2 -0
  56. package/dist/DotDensityMap.js +198 -203
  57. package/dist/DotDensityMap.js.map +1 -1
  58. package/dist/DualAxisLineChart.cjs +1 -1
  59. package/dist/DualAxisLineChart.d.ts +2 -0
  60. package/dist/DualAxisLineChart.js +1 -1
  61. package/dist/DumbbellChart.cjs +1 -1
  62. package/dist/DumbbellChart.cjs.map +1 -1
  63. package/dist/DumbbellChart.d.ts +2 -0
  64. package/dist/DumbbellChart.js +364 -373
  65. package/dist/DumbbellChart.js.map +1 -1
  66. package/dist/GeoHubCompareMaps.d.ts +2 -0
  67. package/dist/GeoHubMap.d.ts +2 -0
  68. package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
  69. package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
  70. package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
  71. package/dist/{GraphEl-CGq1EWRn.js → GraphEl-ebgfxefq.js} +3 -3
  72. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.js.map} +1 -1
  73. package/dist/GriddedGraphs.cjs +1 -1
  74. package/dist/GriddedGraphs.cjs.map +1 -1
  75. package/dist/GriddedGraphs.d.ts +2 -0
  76. package/dist/GriddedGraphs.js +19 -19
  77. package/dist/GriddedGraphs.js.map +1 -1
  78. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  79. package/dist/HeatMap.cjs +1 -1
  80. package/dist/HeatMap.cjs.map +1 -1
  81. package/dist/HeatMap.d.ts +2 -0
  82. package/dist/HeatMap.js +111 -116
  83. package/dist/HeatMap.js.map +1 -1
  84. package/dist/Histogram.cjs +1 -1
  85. package/dist/Histogram.d.ts +2 -0
  86. package/dist/Histogram.js +1 -1
  87. package/dist/HybridMap.cjs +1 -1
  88. package/dist/HybridMap.cjs.map +1 -1
  89. package/dist/HybridMap.d.ts +2 -0
  90. package/dist/HybridMap.js +202 -207
  91. package/dist/HybridMap.js.map +1 -1
  92. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  93. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  94. package/dist/LineChartWithConfidenceInterval.js +1 -1
  95. package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
  96. package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
  97. package/dist/MultiGraphDashboard.cjs +1 -1
  98. package/dist/MultiGraphDashboard.cjs.map +1 -1
  99. package/dist/MultiGraphDashboard.d.ts +2 -0
  100. package/dist/MultiGraphDashboard.js +10 -10
  101. package/dist/MultiGraphDashboard.js.map +1 -1
  102. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  103. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
  104. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  105. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
  106. package/dist/MultiLineAltChart.cjs +1 -1
  107. package/dist/MultiLineAltChart.d.ts +2 -0
  108. package/dist/MultiLineAltChart.js +1 -1
  109. package/dist/MultiLineChart.cjs +1 -1
  110. package/dist/MultiLineChart.d.ts +2 -0
  111. package/dist/MultiLineChart.js +1 -1
  112. package/dist/ParetoChart.cjs +1 -1
  113. package/dist/ParetoChart.cjs.map +1 -1
  114. package/dist/ParetoChart.d.ts +2 -0
  115. package/dist/ParetoChart.js +187 -192
  116. package/dist/ParetoChart.js.map +1 -1
  117. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  118. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  122. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  123. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  124. package/dist/RadarChart.cjs +1 -1
  125. package/dist/RadarChart.cjs.map +1 -1
  126. package/dist/RadarChart.d.ts +2 -0
  127. package/dist/RadarChart.js +158 -163
  128. package/dist/RadarChart.js.map +1 -1
  129. package/dist/SankeyChart.cjs +1 -1
  130. package/dist/SankeyChart.cjs.map +1 -1
  131. package/dist/SankeyChart.d.ts +2 -0
  132. package/dist/SankeyChart.js +172 -177
  133. package/dist/SankeyChart.js.map +1 -1
  134. package/dist/ScatterPlot.cjs +1 -1
  135. package/dist/ScatterPlot.cjs.map +1 -1
  136. package/dist/ScatterPlot.d.ts +2 -0
  137. package/dist/ScatterPlot.js +222 -227
  138. package/dist/ScatterPlot.js.map +1 -1
  139. package/dist/ScrollStory.d.ts +2 -0
  140. package/dist/SimpleLineChart.cjs +1 -1
  141. package/dist/SimpleLineChart.d.ts +2 -0
  142. package/dist/SimpleLineChart.js +1 -1
  143. package/dist/SingleGraphDashboard.cjs +1 -1
  144. package/dist/SingleGraphDashboard.cjs.map +1 -1
  145. package/dist/SingleGraphDashboard.d.ts +2 -0
  146. package/dist/SingleGraphDashboard.js +24 -24
  147. package/dist/SingleGraphDashboard.js.map +1 -1
  148. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  149. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  150. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  151. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  152. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  153. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  154. package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
  155. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  156. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  157. package/dist/SlopeChart.cjs +1 -1
  158. package/dist/SlopeChart.cjs.map +1 -1
  159. package/dist/SlopeChart.d.ts +2 -0
  160. package/dist/SlopeChart.js +182 -187
  161. package/dist/SlopeChart.js.map +1 -1
  162. package/dist/SparkLine.cjs +1 -1
  163. package/dist/SparkLine.d.ts +2 -0
  164. package/dist/SparkLine.js +1 -1
  165. package/dist/StatCardFromData.d.ts +2 -0
  166. package/dist/StripChart.cjs +1 -1
  167. package/dist/StripChart.cjs.map +1 -1
  168. package/dist/StripChart.d.ts +2 -0
  169. package/dist/StripChart.js +249 -258
  170. package/dist/StripChart.js.map +1 -1
  171. package/dist/ThreeDGlobe.cjs +1 -1
  172. package/dist/ThreeDGlobe.cjs.map +1 -1
  173. package/dist/ThreeDGlobe.d.ts +2 -0
  174. package/dist/ThreeDGlobe.js +142 -147
  175. package/dist/ThreeDGlobe.js.map +1 -1
  176. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  177. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  178. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  179. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  180. package/dist/TreeMapGraph.cjs +1 -1
  181. package/dist/TreeMapGraph.cjs.map +1 -1
  182. package/dist/TreeMapGraph.d.ts +2 -0
  183. package/dist/TreeMapGraph.js +159 -164
  184. package/dist/TreeMapGraph.js.map +1 -1
  185. package/dist/Types.d.ts +2 -0
  186. package/dist/UnitChart.d.ts +2 -0
  187. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  188. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  189. package/dist/index-BBV4tAeA.js +330 -0
  190. package/dist/index-BBV4tAeA.js.map +1 -0
  191. package/dist/index-CF5hnGvG.cjs +2 -0
  192. package/dist/index-CF5hnGvG.cjs.map +1 -0
  193. package/dist/index.cjs +1 -1
  194. package/dist/index.d.ts +2 -0
  195. package/dist/index.js +1 -1
  196. package/package.json +1 -1
  197. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  198. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  199. package/dist/Tooltip-CwWUegPB.js +0 -43
  200. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  201. package/dist/index-B2LQV7Tk.js +0 -335
  202. package/dist/index-B2LQV7Tk.js.map +0 -1
  203. package/dist/index-xRHRLDIp.cjs +0 -2
  204. package/dist/index-xRHRLDIp.cjs.map +0 -1
@@ -1,109 +1,108 @@
1
1
  import { c as ai, j as o, m as ti } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { p as ui, f as mi } from "./parse-DlCRUFh_.js";
2
+ import { p as ui, f as xi } from "./parse-DlCRUFh_.js";
3
3
  import { useRef as _e, useState as dt, useEffect as ei } from "react";
4
- import { g as xi, N as pi } from "./getSliderMarks-HIDJ0_Cd.js";
4
+ import { g as mi, N as pi } from "./getSliderMarks-HIDJ0_Cd.js";
5
5
  import { i as ii } from "./index-Bwrro8-q.js";
6
6
  import { o as gi } from "./index-BZQYSqar.js";
7
7
  import { l as di, a as hi } from "./simple-statistics-flVzqVtt.js";
8
- import { l as yi } from "./Modal-DGcuAHyK.js";
9
- import { T as vi } from "./Tooltip-CwWUegPB.js";
8
+ import { T as yi } from "./Tooltip-Dj5eVppQ.js";
10
9
  import { c as g } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { Colors as G } from "./Colors.js";
10
+ import { Colors as W } from "./Colors.js";
12
11
  import { n as oi } from "./numberFormattingFunction-14YCbkN2.js";
13
- import { g as bi, A as Ai, C as Ci } from "./customArea-BUhPiPT6.js";
14
- import { s as Oi } from "./string2HTML-DhG75NqA.js";
12
+ import { g as vi, A as bi, C as Ai } from "./customArea-BUhPiPT6.js";
15
13
  import { A as ni } from "./Axis-CRyfcLjc.js";
16
14
  import { A as si } from "./AxisTitle-jeI7am8o.js";
17
- import { X as ji } from "./XTicksAndGridLines-CObVFSm4.js";
18
- import { R as wi, a as Li } from "./ReferenceLine-2XCwHXQ4.js";
19
- import { R as $i } from "./RegressionLine-DAcY2DjT.js";
20
- import { Y as Si } from "./YTicksAndGridLines-Blepl7XF.js";
21
- import { a as Mi } from "./index-SKgJALZg.js";
15
+ import { X as Ci } from "./XTicksAndGridLines-CObVFSm4.js";
16
+ import { R as Oi, a as ji } from "./ReferenceLine-2XCwHXQ4.js";
17
+ import { R as wi } from "./RegressionLine-DAcY2DjT.js";
18
+ import { Y as Li } from "./YTicksAndGridLines-Blepl7XF.js";
19
+ import { a as $i } from "./index-SKgJALZg.js";
20
+ import { D as Si } from "./DetailsModal-0Ry5nXiC.js";
22
21
  import { s as Vi } from "./pow-DE4c7dbW.js";
23
22
  import { a as li } from "./linear-BwnDd9KF.js";
24
- import { D as ki } from "./delaunay-C1uAf38t.js";
25
- import { u as Di } from "./use-in-view-Cxa7y1TH.js";
23
+ import { D as Mi } from "./delaunay-C1uAf38t.js";
24
+ import { u as ki } from "./use-in-view-Cxa7y1TH.js";
26
25
  import { m as De } from "./proxy-BxkFHwUw.js";
27
26
  import { A as ri } from "./index-BqfRwk1n.js";
28
- import { GraphFooter as Ni } from "./GraphFooter.js";
29
- import { GraphHeader as Ti } from "./GraphHeader.js";
30
- import { ColorLegendWithMouseOver as Pi } from "./ColorLegendWithMouseOver.js";
31
- import { E as Xi } from "./EmptyState-BZo1BbAn.js";
32
- import { P as Yi, e as Ri } from "./index-D491FEn1.js";
33
- import { a as Ii } from "./ensureCompleteData-DNKEGRiP.js";
27
+ import { GraphFooter as Di } from "./GraphFooter.js";
28
+ import { GraphHeader as Ni } from "./GraphHeader.js";
29
+ import { ColorLegendWithMouseOver as Ti } from "./ColorLegendWithMouseOver.js";
30
+ import { E as Pi } from "./EmptyState-BZo1BbAn.js";
31
+ import { P as Xi, e as Yi } from "./index-D491FEn1.js";
32
+ import { a as Ri } from "./ensureCompleteData-DNKEGRiP.js";
34
33
  import { u as Ze } from "./uniqBy-BHy4I8PK.js";
35
- import { a as Hi, G as Ei } from "./GraphContainer-CRqzdKu2.js";
36
- import { s as Fi } from "./sort-BIvMlUH1.js";
37
- import { a as Wi } from "./init-BJFW6EwE.js";
38
- function Gi(i) {
39
- const t = ai.c(215), {
40
- data: s,
41
- width: q,
42
- height: B,
34
+ import { a as Ii, G as Hi } from "./GraphContainer-CRqzdKu2.js";
35
+ import { s as Ei } from "./sort-BIvMlUH1.js";
36
+ import { a as Fi } from "./init-BJFW6EwE.js";
37
+ function Wi(i) {
38
+ const t = ai.c(216), {
39
+ data: l,
40
+ width: G,
41
+ height: q,
43
42
  showLabels: ht,
44
43
  colors: c,
45
44
  colorDomain: C,
46
- radius: N,
45
+ radius: D,
47
46
  xAxisTitle: y,
48
- yAxisTitle: P,
47
+ yAxisTitle: N,
49
48
  leftMargin: yt,
50
49
  rightMargin: Oe,
51
50
  topMargin: re,
52
51
  bottomMargin: je,
53
52
  tooltip: qt,
54
- onSeriesMouseOver: z,
53
+ onSeriesMouseOver: B,
55
54
  refXValues: ae,
56
55
  refYValues: ce,
57
56
  highlightAreaSettings: fe,
58
57
  selectedColor: tt,
59
- highlightedDataPoints: X,
58
+ highlightedDataPoints: T,
60
59
  maxRadiusValue: we,
61
60
  maxXValue: Bt,
62
- minXValue: S,
61
+ minXValue: $,
63
62
  maxYValue: vt,
64
63
  minYValue: b,
65
- onSeriesMouseClick: M,
64
+ onSeriesMouseClick: S,
66
65
  rtl: bt,
67
66
  annotations: At,
68
67
  customHighlightAreaSettings: et,
69
68
  regressionLine: Ct,
70
69
  resetSelectionOnDoubleClick: zt,
71
- detailsOnClick: L,
70
+ detailsOnClick: P,
72
71
  noOfXTicks: ue,
73
- noOfYTicks: me,
72
+ noOfYTicks: xe,
74
73
  labelColor: it,
75
74
  xSuffix: ot,
76
75
  ySuffix: nt,
77
76
  xPrefix: st,
78
77
  yPrefix: Ot,
79
78
  styles: n,
80
- classNames: l,
79
+ classNames: s,
81
80
  animate: r,
82
81
  dimmedOpacity: V,
83
- precision: k,
84
- customLayers: D
82
+ precision: M,
83
+ customLayers: k
85
84
  } = i, Ut = _e(null);
86
85
  let Jt;
87
86
  t[0] !== r.amount || t[1] !== r.once ? (Jt = {
88
87
  once: r.once,
89
88
  amount: r.amount
90
89
  }, t[0] = r.amount, t[1] = r.once, t[2] = Jt) : Jt = t[2];
91
- const v = Di(Ut, Jt), [$, lt] = dt(void 0), [T, jt] = dt(void 0), [Kt, wt] = dt(void 0), [x, f] = dt(void 0), xe = y ? je + 50 : je, pe = P ? yt + 30 : yt;
90
+ const v = ki(Ut, Jt), [L, lt] = dt(void 0), [z, jt] = dt(void 0), [Kt, wt] = dt(void 0), [m, f] = dt(void 0), me = y ? je + 50 : je, pe = N ? yt + 30 : yt;
92
91
  let Qt;
93
- t[3] !== Oe || t[4] !== xe || t[5] !== pe || t[6] !== re ? (Qt = {
92
+ t[3] !== Oe || t[4] !== me || t[5] !== pe || t[6] !== re ? (Qt = {
94
93
  top: re,
95
- bottom: xe,
94
+ bottom: me,
96
95
  left: pe,
97
96
  right: Oe
98
- }, t[3] = Oe, t[4] = xe, t[5] = pe, t[6] = re, t[7] = Qt) : Qt = t[7];
97
+ }, t[3] = Oe, t[4] = me, t[5] = pe, t[6] = re, t[7] = Qt) : Qt = t[7];
99
98
  const u = Qt;
100
- let rt, Lt, $t, St, Mt, U, J, Vt, kt, Dt, Y, Nt, R, Tt, I, Pt, K, H;
101
- if (t[8] !== r || t[9] !== At || t[10] !== l?.graphObjectValues || t[11] !== l?.regLine || t[12] !== l?.xAxis?.axis || t[13] !== l?.xAxis?.gridLines || t[14] !== l?.xAxis?.labels || t[15] !== l?.xAxis?.title || t[16] !== l?.yAxis?.gridLines || t[17] !== l?.yAxis?.labels || t[18] !== l?.yAxis?.title || t[19] !== C || t[20] !== c || t[21] !== et || t[22] !== D || t[23] !== s || t[24] !== L || t[25] !== V || t[26] !== B || t[27] !== fe || t[28] !== X || t[29] !== v || t[30] !== it || t[31] !== yt || t[32] !== u.bottom || t[33] !== u.left || t[34] !== u.right || t[35] !== u.top || t[36] !== we || t[37] !== Bt || t[38] !== vt || t[39] !== S || t[40] !== b || t[41] !== T || t[42] !== $ || t[43] !== ue || t[44] !== me || t[45] !== M || t[46] !== z || t[47] !== k || t[48] !== N || t[49] !== ae || t[50] !== ce || t[51] !== Ct || t[52] !== zt || t[53] !== bt || t[54] !== tt || t[55] !== ht || t[56] !== n?.graphObjectValues || t[57] !== n?.regLine || t[58] !== n?.xAxis?.axis || t[59] !== n?.xAxis?.gridLines || t[60] !== n?.xAxis?.labels || t[61] !== n?.xAxis?.title || t[62] !== n?.yAxis?.gridLines || t[63] !== n?.yAxis?.labels || t[64] !== n?.yAxis?.title || t[65] !== q || t[66] !== y || t[67] !== st || t[68] !== ot || t[69] !== P || t[70] !== Ot || t[71] !== nt) {
102
- const ct = s.map(po), O = q - u.left - u.right, p = B - u.top - u.bottom, j = s.filter(xo).length !== s.length ? Vi().domain([0, we]).range([0.25, N]).nice() : void 0, ge = ct.filter(mo).length === 0 ? ct : gi(ct.filter(uo), "radius", "desc"), a = li().domain([S, Bt]).range([0, O]).nice(), m = li().domain([b, vt]).range([p, 0]).nice(), Et = a.ticks(ue), Ne = m.ticks(me), Re = ki.from(ge.filter(fo), (e) => a(e.x), (e) => m(e.y)).voronoi([0, 0, O < 0 ? 0 : O, p < 0 ? 0 : p]), Ie = di(s.filter(co).map((e) => [a(e.x), m(e.y)])), Te = hi(Ie);
103
- Lt = De.svg, Vt = `${q}px`, kt = `${B}px`, Dt = `0 0 ${q} ${B}`, Y = "ltr", Nt = Ut, $t = `translate(${u.left},${u.top})`;
99
+ let rt, Lt, $t, St, Vt, U, J, Mt, kt, Dt, X, Nt, Y, Tt, R, Pt, K, I;
100
+ if (t[8] !== r || t[9] !== At || t[10] !== s?.graphObjectValues || t[11] !== s?.regLine || t[12] !== s?.xAxis?.axis || t[13] !== s?.xAxis?.gridLines || t[14] !== s?.xAxis?.labels || t[15] !== s?.xAxis?.title || t[16] !== s?.yAxis?.gridLines || t[17] !== s?.yAxis?.labels || t[18] !== s?.yAxis?.title || t[19] !== C || t[20] !== c || t[21] !== et || t[22] !== k || t[23] !== l || t[24] !== P || t[25] !== V || t[26] !== q || t[27] !== fe || t[28] !== T || t[29] !== v || t[30] !== it || t[31] !== yt || t[32] !== u.bottom || t[33] !== u.left || t[34] !== u.right || t[35] !== u.top || t[36] !== we || t[37] !== Bt || t[38] !== vt || t[39] !== $ || t[40] !== b || t[41] !== z || t[42] !== L || t[43] !== ue || t[44] !== xe || t[45] !== S || t[46] !== B || t[47] !== M || t[48] !== D || t[49] !== ae || t[50] !== ce || t[51] !== Ct || t[52] !== zt || t[53] !== bt || t[54] !== tt || t[55] !== ht || t[56] !== n?.graphObjectValues || t[57] !== n?.regLine || t[58] !== n?.xAxis?.axis || t[59] !== n?.xAxis?.gridLines || t[60] !== n?.xAxis?.labels || t[61] !== n?.xAxis?.title || t[62] !== n?.yAxis?.gridLines || t[63] !== n?.yAxis?.labels || t[64] !== n?.yAxis?.title || t[65] !== G || t[66] !== y || t[67] !== st || t[68] !== ot || t[69] !== N || t[70] !== Ot || t[71] !== nt) {
101
+ const ct = l.map(mo), O = G - u.left - u.right, p = q - u.top - u.bottom, j = l.filter(xo).length !== l.length ? Vi().domain([0, we]).range([0.25, D]).nice() : void 0, ge = ct.filter(uo).length === 0 ? ct : gi(ct.filter(fo), "radius", "desc"), a = li().domain([$, Bt]).range([0, O]).nice(), x = li().domain([b, vt]).range([p, 0]).nice(), Et = a.ticks(ue), Ne = x.ticks(xe), Re = Mi.from(ge.filter(co), (e) => a(e.x), (e) => x(e.y)).voronoi([0, 0, O < 0 ? 0 : O, p < 0 ? 0 : p]), Ie = di(l.filter(ao).map((e) => [a(e.x), x(e.y)])), Te = hi(Ie);
102
+ Lt = De.svg, Mt = `${G}px`, kt = `${q}px`, Dt = `0 0 ${G} ${q}`, X = "ltr", Nt = Ut, $t = `translate(${u.left},${u.top})`;
104
103
  let Zt;
105
- t[90] !== r || t[91] !== et || t[92] !== v || t[93] !== a || t[94] !== m ? (Zt = /* @__PURE__ */ o.jsx(Ci, { areaSettings: et, scaleX: a, scaleY: m, animate: r, isInView: v }, "custom-area"), t[90] = r, t[91] = et, t[92] = v, t[93] = a, t[94] = m, t[95] = Zt) : Zt = t[95], St = /* @__PURE__ */ o.jsxs(ri, { children: [
106
- /* @__PURE__ */ o.jsx(Mi, { areaSettings: fe, width: O, height: p, scaleX: a, scaleY: m, animate: r, isInView: v }, "highlight-area"),
104
+ t[90] !== r || t[91] !== et || t[92] !== v || t[93] !== a || t[94] !== x ? (Zt = /* @__PURE__ */ o.jsx(Ai, { areaSettings: et, scaleX: a, scaleY: x, animate: r, isInView: v }, "custom-area"), t[90] = r, t[91] = et, t[92] = v, t[93] = a, t[94] = x, t[95] = Zt) : Zt = t[95], St = /* @__PURE__ */ o.jsxs(ri, { children: [
105
+ /* @__PURE__ */ o.jsx($i, { areaSettings: fe, width: O, height: p, scaleX: a, scaleY: x, animate: r, isInView: v }, "highlight-area"),
107
106
  Zt
108
107
  ] });
109
108
  const Le = n?.yAxis?.gridLines, $e = n?.yAxis?.labels;
@@ -112,16 +111,16 @@ function Gi(i) {
112
111
  gridLines: Le,
113
112
  labels: $e
114
113
  }, t[96] = Le, t[97] = $e, t[98] = ft) : ft = t[98];
115
- const Se = l?.yAxis?.gridLines, w = l?.yAxis?.labels;
114
+ const Se = s?.yAxis?.gridLines, w = s?.yAxis?.labels;
116
115
  let _t;
117
116
  t[99] !== Se || t[100] !== w ? (_t = {
118
117
  gridLines: Se,
119
118
  labels: w
120
119
  }, t[99] = Se, t[100] = w, t[101] = _t) : _t = t[101];
121
- const Me = m(b < 0 ? 0 : b), de = m(b < 0 ? 0 : b), Ve = O + u.right, ut = b < 0 ? 0 : b;
120
+ const Ve = x(b < 0 ? 0 : b), de = x(b < 0 ? 0 : b), Me = O + u.right, ut = b < 0 ? 0 : b;
122
121
  let Ft;
123
- t[102] !== k || t[103] !== ut || t[104] !== Ot || t[105] !== nt ? (Ft = oi(ut, "NA", k, Ot, nt), t[102] = k, t[103] = ut, t[104] = Ot, t[105] = nt, t[106] = Ft) : Ft = t[106];
124
- const d = m(b < 0 ? 0 : b);
122
+ t[102] !== M || t[103] !== ut || t[104] !== Ot || t[105] !== nt ? (Ft = oi(ut, "NA", M, Ot, nt), t[102] = M, t[103] = ut, t[104] = Ot, t[105] = nt, t[106] = Ft) : Ft = t[106];
123
+ const d = x(b < 0 ? 0 : b);
125
124
  let Q;
126
125
  t[107] !== d ? (Q = {
127
126
  x: 0,
@@ -129,50 +128,50 @@ function Gi(i) {
129
128
  dy: "0.33em",
130
129
  dx: -4
131
130
  }, t[107] = d, t[108] = Q) : Q = t[108];
132
- const te = l?.xAxis?.axis, ke = l?.yAxis?.labels;
131
+ const te = s?.xAxis?.axis, ke = s?.yAxis?.labels;
133
132
  let Wt;
134
133
  t[109] !== te || t[110] !== ke ? (Wt = {
135
134
  axis: te,
136
135
  label: ke
137
136
  }, t[109] = te, t[110] = ke, t[111] = Wt) : Wt = t[111];
138
137
  const ee = n?.xAxis?.axis;
139
- let mt;
140
- t[112] !== n?.yAxis?.labels ? (mt = n?.yAxis?.labels || {}, t[112] = n?.yAxis?.labels, t[113] = mt) : mt = t[113];
141
- let F;
142
- t[114] !== mt ? (F = {
138
+ let xt;
139
+ t[112] !== n?.yAxis?.labels ? (xt = n?.yAxis?.labels || {}, t[112] = n?.yAxis?.labels, t[113] = xt) : xt = t[113];
140
+ let E;
141
+ t[114] !== xt ? (E = {
143
142
  textAnchor: "end",
144
- ...mt
145
- }, t[114] = mt, t[115] = F) : F = t[115];
146
- let W;
147
- t[116] !== ee || t[117] !== F ? (W = {
143
+ ...xt
144
+ }, t[114] = xt, t[115] = E) : E = t[115];
145
+ let F;
146
+ t[116] !== ee || t[117] !== E ? (F = {
148
147
  axis: ee,
149
- label: F
150
- }, t[116] = ee, t[117] = F, t[118] = W) : W = t[118];
148
+ label: E
149
+ }, t[116] = ee, t[117] = E, t[118] = F) : F = t[118];
151
150
  let ie;
152
- t[119] !== Me || t[120] !== de || t[121] !== Ve || t[122] !== Ft || t[123] !== Q || t[124] !== Wt || t[125] !== W ? (ie = /* @__PURE__ */ o.jsx(ni, { y1: Me, y2: de, x1: 0, x2: Ve, label: Ft, labelPos: Q, classNames: Wt, styles: W }), t[119] = Me, t[120] = de, t[121] = Ve, t[122] = Ft, t[123] = Q, t[124] = Wt, t[125] = W, t[126] = ie) : ie = t[126];
153
- const oe = 0 - yt - 15, ne = p / 2, se = n?.yAxis?.title, Z = l?.yAxis?.title;
151
+ t[119] !== Ve || t[120] !== de || t[121] !== Me || t[122] !== Ft || t[123] !== Q || t[124] !== Wt || t[125] !== F ? (ie = /* @__PURE__ */ o.jsx(ni, { y1: Ve, y2: de, x1: 0, x2: Me, label: Ft, labelPos: Q, classNames: Wt, styles: F }), t[119] = Ve, t[120] = de, t[121] = Me, t[122] = Ft, t[123] = Q, t[124] = Wt, t[125] = F, t[126] = ie) : ie = t[126];
152
+ const oe = 0 - yt - 15, ne = p / 2, se = n?.yAxis?.title, Z = s?.yAxis?.title;
154
153
  let Gt;
155
- t[127] !== oe || t[128] !== ne || t[129] !== se || t[130] !== Z || t[131] !== P ? (Gt = /* @__PURE__ */ o.jsx(si, { x: oe, y: ne, style: se, className: Z, text: P, rotate90: !0 }), t[127] = oe, t[128] = ne, t[129] = se, t[130] = Z, t[131] = P, t[132] = Gt) : Gt = t[132], Mt = /* @__PURE__ */ o.jsxs("g", { children: [
156
- /* @__PURE__ */ o.jsx(Si, { values: Ne.filter(ao), y: Ne.filter(ro).map((e) => m(e)), x1: 0, x2: O + u.right, styles: ft, classNames: _t, suffix: nt, prefix: Ot, labelType: "secondary", showGridLines: !0, labelPos: "side", precision: k }),
154
+ t[127] !== oe || t[128] !== ne || t[129] !== se || t[130] !== Z || t[131] !== N ? (Gt = /* @__PURE__ */ o.jsx(si, { x: oe, y: ne, style: se, className: Z, text: N, rotate90: !0 }), t[127] = oe, t[128] = ne, t[129] = se, t[130] = Z, t[131] = N, t[132] = Gt) : Gt = t[132], Vt = /* @__PURE__ */ o.jsxs("g", { children: [
155
+ /* @__PURE__ */ o.jsx(Li, { values: Ne.filter(ro), y: Ne.filter(lo).map((e) => x(e)), x1: 0, x2: O + u.right, styles: ft, classNames: _t, suffix: nt, prefix: Ot, labelType: "secondary", showGridLines: !0, labelPos: "side", precision: M }),
157
156
  ie,
158
157
  Gt
159
158
  ] });
160
159
  const le = n?.xAxis?.gridLines, _ = n?.xAxis?.labels;
161
- let xt;
162
- t[133] !== le || t[134] !== _ ? (xt = {
160
+ let mt;
161
+ t[133] !== le || t[134] !== _ ? (mt = {
163
162
  gridLines: le,
164
163
  labels: _
165
- }, t[133] = le, t[134] = _, t[135] = xt) : xt = t[135];
166
- const h = l?.xAxis?.gridLines, pt = l?.xAxis?.labels;
164
+ }, t[133] = le, t[134] = _, t[135] = mt) : mt = t[135];
165
+ const h = s?.xAxis?.gridLines, pt = s?.xAxis?.labels;
167
166
  let Pe;
168
167
  t[136] !== h || t[137] !== pt ? (Pe = {
169
168
  gridLines: h,
170
169
  labels: pt
171
170
  }, t[136] = h, t[137] = pt, t[138] = Pe) : Pe = t[138];
172
- const He = a(S < 0 ? 0 : S), Ee = a(S < 0 ? 0 : S), Fe = S < 0 ? 0 : S;
171
+ const He = a($ < 0 ? 0 : $), Ee = a($ < 0 ? 0 : $), Fe = $ < 0 ? 0 : $;
173
172
  let he;
174
- t[139] !== k || t[140] !== Fe || t[141] !== st || t[142] !== ot ? (he = oi(Fe, "NA", k, st, ot), t[139] = k, t[140] = Fe, t[141] = st, t[142] = ot, t[143] = he) : he = t[143];
175
- const We = a(S < 0 ? 0 : S);
173
+ t[139] !== M || t[140] !== Fe || t[141] !== st || t[142] !== ot ? (he = oi(Fe, "NA", M, st, ot), t[139] = M, t[140] = Fe, t[141] = st, t[142] = ot, t[143] = he) : he = t[143];
174
+ const We = a($ < 0 ? 0 : $);
176
175
  let ye;
177
176
  t[144] !== p || t[145] !== We ? (ye = {
178
177
  x: We,
@@ -180,7 +179,7 @@ function Gi(i) {
180
179
  dy: "1em",
181
180
  dx: 0
182
181
  }, t[144] = p, t[145] = We, t[146] = ye) : ye = t[146];
183
- const Ge = l?.xAxis?.axis, qe = l?.yAxis?.labels;
182
+ const Ge = s?.xAxis?.axis, qe = s?.yAxis?.labels;
184
183
  let ve;
185
184
  t[147] !== Ge || t[148] !== qe ? (ve = {
186
185
  axis: Ge,
@@ -201,30 +200,30 @@ function Gi(i) {
201
200
  }, t[154] = Be, t[155] = Ae, t[156] = Ce) : Ce = t[156];
202
201
  let Xe;
203
202
  t[157] !== p || t[158] !== He || t[159] !== Ee || t[160] !== he || t[161] !== ye || t[162] !== ve || t[163] !== Ce ? (Xe = /* @__PURE__ */ o.jsx(ni, { x1: He, x2: Ee, y1: 0, y2: p, label: he, labelPos: ye, classNames: ve, styles: Ce }), t[157] = p, t[158] = He, t[159] = Ee, t[160] = he, t[161] = ye, t[162] = ve, t[163] = Ce, t[164] = Xe) : Xe = t[164];
204
- const ze = O / 2, Ue = p + 30, Je = n?.xAxis?.title, Ke = l?.xAxis?.title;
203
+ const ze = O / 2, Ue = p + 30, Je = n?.xAxis?.title, Ke = s?.xAxis?.title;
205
204
  let Ye;
206
205
  t[165] !== ze || t[166] !== Ue || t[167] !== Je || t[168] !== Ke || t[169] !== y ? (Ye = /* @__PURE__ */ o.jsx(si, { x: ze, y: Ue, style: Je, className: Ke, text: y }), t[165] = ze, t[166] = Ue, t[167] = Je, t[168] = Ke, t[169] = y, t[170] = Ye) : Ye = t[170], U = /* @__PURE__ */ o.jsxs("g", { children: [
207
- /* @__PURE__ */ o.jsx(ji, { values: Et.filter(lo), x: Et.filter(so).map((e) => a(e)), y1: 0, y2: p, styles: xt, classNames: Pe, suffix: ot, prefix: st, labelType: "primary", showGridLines: !0, precision: k }),
206
+ /* @__PURE__ */ o.jsx(Ci, { values: Et.filter(so), x: Et.filter(no).map((e) => a(e)), y1: 0, y2: p, styles: mt, classNames: Pe, suffix: ot, prefix: st, labelType: "primary", showGridLines: !0, precision: M }),
208
207
  Xe,
209
208
  Ye
210
- ] }), t[171] !== D ? (J = D.filter(no).map(oo), t[171] = D, t[172] = J) : J = t[172], rt = ri, R = ge.filter(io).map((e, gt) => /* @__PURE__ */ o.jsx("path", { d: Re.renderCell(ge.findIndex((A) => A.id === e.id)), opacity: 0, onMouseEnter: (A) => {
211
- lt(e), f(A.clientY), wt(A.clientX), z?.(e);
209
+ ] }), t[171] !== k ? (J = k.filter(oo).map(io), t[171] = k, t[172] = J) : J = t[172], rt = ri, Y = ge.filter(eo).map((e, gt) => /* @__PURE__ */ o.jsx("path", { d: Re.renderCell(ge.findIndex((A) => A.id === e.id)), opacity: 0, onMouseEnter: (A) => {
210
+ lt(e), f(A.clientY), wt(A.clientX), B?.(e);
212
211
  }, onMouseMove: (A) => {
213
212
  lt(e), f(A.clientY), wt(A.clientX);
214
213
  }, onMouseLeave: () => {
215
- lt(void 0), wt(void 0), f(void 0), z?.(void 0);
214
+ lt(void 0), wt(void 0), f(void 0), B?.(void 0);
216
215
  }, onClick: () => {
217
- (M || L) && (ii(T, e) && zt ? (jt(void 0), M?.(void 0)) : (jt(e), M?.(e)));
218
- } }, `tesselation_${e.label || gt}`)), Tt = ge.filter(eo).map((e, gt) => /* @__PURE__ */ o.jsxs(De.g, { variants: {
216
+ (S || P) && (ii(z, e) && zt ? (jt(void 0), S?.(void 0)) : (jt(e), S?.(e)));
217
+ } }, `tesselation_${e.label || gt}`)), Tt = ge.filter(to).map((e, gt) => /* @__PURE__ */ o.jsxs(De.g, { variants: {
219
218
  initial: {
220
219
  x: a(e.x),
221
- y: m(e.y),
222
- opacity: tt ? e.color && c[C.indexOf(`${e.color}`)] === tt ? 1 : V : $ ? $.id === e.id ? 1 : V : X.length !== 0 ? X.indexOf(e.label || "") !== -1 ? 1 : V : 1
220
+ y: x(e.y),
221
+ opacity: tt ? e.color && c[C.indexOf(`${e.color}`)] === tt ? 1 : V : L ? L.id === e.id ? 1 : V : T.length !== 0 ? T.indexOf(e.label || "") !== -1 ? 1 : V : 1
223
222
  },
224
223
  whileInView: {
225
224
  x: a(e.x),
226
- y: m(e.y),
227
- opacity: tt ? e.color && c[C.indexOf(`${e.color}`)] === tt ? 1 : V : $ ? $.id === e.id ? 1 : V : X.length !== 0 ? X.indexOf(e.label || "") !== -1 ? 1 : V : 1,
225
+ y: x(e.y),
226
+ opacity: tt ? e.color && c[C.indexOf(`${e.color}`)] === tt ? 1 : V : L ? L.id === e.id ? 1 : V : T.length !== 0 ? T.indexOf(e.label || "") !== -1 ? 1 : V : 1,
228
227
  transition: {
229
228
  duration: r.duration
230
229
  }
@@ -235,13 +234,13 @@ function Gi(i) {
235
234
  duration: r.duration
236
235
  }
237
236
  }, onMouseEnter: (A) => {
238
- lt(e), f(A.clientY), wt(A.clientX), z?.(e);
237
+ lt(e), f(A.clientY), wt(A.clientX), B?.(e);
239
238
  }, onMouseMove: (A) => {
240
239
  lt(e), f(A.clientY), wt(A.clientX);
241
240
  }, onMouseLeave: () => {
242
- lt(void 0), wt(void 0), f(void 0), z?.(void 0);
241
+ lt(void 0), wt(void 0), f(void 0), B?.(void 0);
243
242
  }, onClick: () => {
244
- (M || L) && (ii(T, e) && zt ? (jt(void 0), M?.(void 0)) : (jt(e), M?.(e)));
243
+ (S || P) && (ii(z, e) && zt ? (jt(void 0), S?.(void 0)) : (jt(e), S?.(e)));
245
244
  }, children: [
246
245
  /* @__PURE__ */ o.jsx(De.circle, { cx: 0, cy: 0, exit: {
247
246
  r: 0,
@@ -251,13 +250,13 @@ function Gi(i) {
251
250
  }, variants: {
252
251
  initial: {
253
252
  r: 0,
254
- fill: s.filter(to).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : G.gray,
255
- stroke: s.filter(_i).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : G.gray
253
+ fill: l.filter(_i).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : W.gray,
254
+ stroke: l.filter(Zi).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : W.gray
256
255
  },
257
256
  whileInView: {
258
- r: j ? j(e.radius || 0) : N,
259
- fill: s.filter(Zi).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : G.gray,
260
- stroke: s.filter(Qi).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : G.gray,
257
+ r: j ? j(e.radius || 0) : D,
258
+ fill: l.filter(Qi).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : W.gray,
259
+ stroke: l.filter(Ki).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : W.gray,
261
260
  transition: {
262
261
  duration: r.duration
263
262
  }
@@ -267,120 +266,119 @@ function Gi(i) {
267
266
  } }),
268
267
  ht && !g(e.label) ? /* @__PURE__ */ o.jsx(De.text, { style: {
269
268
  ...n?.graphObjectValues || {}
270
- }, className: ti("graph-value text-sm", l?.graphObjectValues), y: 0, exit: {
269
+ }, className: ti("graph-value text-sm", s?.graphObjectValues), y: 0, exit: {
271
270
  opacity: 0,
272
271
  transition: {
273
272
  duration: r.duration
274
273
  }
275
274
  }, variants: {
276
275
  initial: {
277
- x: j ? j(e.radius || 0) : N,
276
+ x: j ? j(e.radius || 0) : D,
278
277
  opacity: 0,
279
- fill: it || (s.filter(Ki).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : G.gray)
278
+ fill: it || (l.filter(Ji).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : W.gray)
280
279
  },
281
280
  whileInView: {
282
- x: j ? j(e.radius || 0) : N,
281
+ x: j ? j(e.radius || 0) : D,
283
282
  opacity: 1,
284
- fill: it || (s.filter(Ji).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : G.gray),
283
+ fill: it || (l.filter(Ui).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : W.gray),
285
284
  transition: {
286
285
  duration: r.duration
287
286
  }
288
287
  }
289
- }, initial: "initial", animate: v ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : X.length !== 0 && !g(e.label) && X.indexOf(e.label) !== -1 ? /* @__PURE__ */ o.jsx(De.text, { style: {
288
+ }, initial: "initial", animate: v ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : T.length !== 0 && !g(e.label) && T.indexOf(e.label) !== -1 ? /* @__PURE__ */ o.jsx(De.text, { style: {
290
289
  ...n?.graphObjectValues || {}
291
- }, className: ti("graph-value text-sm", l?.graphObjectValues), y: 0, exit: {
290
+ }, className: ti("graph-value text-sm", s?.graphObjectValues), y: 0, exit: {
292
291
  opacity: 0,
293
292
  transition: {
294
293
  duration: r.duration
295
294
  }
296
295
  }, variants: {
297
296
  initial: {
298
- x: j ? j(e.radius || 0) : N,
297
+ x: j ? j(e.radius || 0) : D,
299
298
  opacity: 0,
300
- fill: it || (s.filter(Ui).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : G.gray)
299
+ fill: it || (l.filter(zi).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : W.gray)
301
300
  },
302
301
  whileInView: {
303
- x: j ? j(e.radius || 0) : N,
302
+ x: j ? j(e.radius || 0) : D,
304
303
  opacity: 1,
305
- fill: it || (s.filter(zi).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : G.gray),
304
+ fill: it || (l.filter(Bi).length === 0 ? c[0] : e.color ? c[C.indexOf(`${e.color}`)] : W.gray),
306
305
  transition: {
307
306
  duration: r.duration
308
307
  }
309
308
  }
310
309
  }, initial: "initial", animate: v ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : null
311
- ] }, `${e.label || gt}`)), I = ae.map((e, gt) => /* @__PURE__ */ o.jsx(wi, { text: e.text, color: e.color, x: a(e.value), y1: 0, y2: p, textSide: a(e.value) > O * 0.75 || bt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: r, isInView: v }, gt)), Pt = ce.map((e, gt) => /* @__PURE__ */ o.jsx(Li, { text: e.text, color: e.color, y: m(e.value), x1: 0, x2: O, classNames: e.classNames, styles: e.styles, animate: r, isInView: v }, gt));
310
+ ] }, `${e.label || gt}`)), R = ae.map((e, gt) => /* @__PURE__ */ o.jsx(Oi, { text: e.text, color: e.color, x: a(e.value), y1: 0, y2: p, textSide: a(e.value) > O * 0.75 || bt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: r, isInView: v }, gt)), Pt = ce.map((e, gt) => /* @__PURE__ */ o.jsx(ji, { text: e.text, color: e.color, y: x(e.value), x1: 0, x2: O, classNames: e.classNames, styles: e.styles, animate: r, isInView: v }, gt));
312
311
  const Qe = At.map((e, gt) => {
313
- const A = bi({
312
+ const A = vi({
314
313
  x: e.xCoordinate ? a(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
315
- y: e.yCoordinate ? m(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
314
+ y: e.yCoordinate ? x(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
316
315
  }, {
317
316
  x: e.xCoordinate ? a(e.xCoordinate) : 0,
318
- y: e.yCoordinate ? m(e.yCoordinate) : 0
317
+ y: e.yCoordinate ? x(e.yCoordinate) : 0
319
318
  }, g(e.connectorRadius) ? 3.5 : e.connectorRadius), ci = e.showConnector ? {
320
319
  y1: A.y,
321
320
  x1: A.x,
322
- y2: e.yCoordinate ? m(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
321
+ y2: e.yCoordinate ? x(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
323
322
  x2: e.xCoordinate ? a(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
324
- cy: e.yCoordinate ? m(e.yCoordinate) : 0,
323
+ cy: e.yCoordinate ? x(e.yCoordinate) : 0,
325
324
  cx: e.xCoordinate ? a(e.xCoordinate) : 0,
326
325
  circleRadius: g(e.connectorRadius) ? 3.5 : e.connectorRadius,
327
326
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
328
327
  } : void 0, fi = {
329
- y: e.yCoordinate ? m(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
328
+ y: e.yCoordinate ? x(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
330
329
  x: bt ? 0 : e.xCoordinate ? a(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
331
330
  width: bt ? e.xCoordinate ? a(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : O + u.right - (e.xCoordinate ? a(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
332
331
  maxWidth: e.maxWidth,
333
332
  fontWeight: e.fontWeight,
334
333
  align: e.align
335
334
  };
336
- return /* @__PURE__ */ o.jsx(Ai, { color: e.color, connectorsSettings: ci, labelSettings: fi, text: e.text, classNames: e.classNames, styles: e.styles, animate: r, isInView: v }, gt);
335
+ return /* @__PURE__ */ o.jsx(bi, { color: e.color, connectorsSettings: ci, labelSettings: fi, text: e.text, classNames: e.classNames, styles: e.styles, animate: r, isInView: v }, gt);
337
336
  });
338
- t[173] !== Qe ? (K = /* @__PURE__ */ o.jsx("g", { children: Qe }), t[173] = Qe, t[174] = K) : K = t[174], H = Ct ? /* @__PURE__ */ o.jsx($i, { x1: 0, x2: O, y1: Te(0), y2: Te(O), graphHeight: p, graphWidth: O, className: l?.regLine, style: n?.regLine, color: typeof Ct == "string" ? Ct : void 0, animate: r, isInView: v }) : null, t[8] = r, t[9] = At, t[10] = l?.graphObjectValues, t[11] = l?.regLine, t[12] = l?.xAxis?.axis, t[13] = l?.xAxis?.gridLines, t[14] = l?.xAxis?.labels, t[15] = l?.xAxis?.title, t[16] = l?.yAxis?.gridLines, t[17] = l?.yAxis?.labels, t[18] = l?.yAxis?.title, t[19] = C, t[20] = c, t[21] = et, t[22] = D, t[23] = s, t[24] = L, t[25] = V, t[26] = B, t[27] = fe, t[28] = X, t[29] = v, t[30] = it, t[31] = yt, t[32] = u.bottom, t[33] = u.left, t[34] = u.right, t[35] = u.top, t[36] = we, t[37] = Bt, t[38] = vt, t[39] = S, t[40] = b, t[41] = T, t[42] = $, t[43] = ue, t[44] = me, t[45] = M, t[46] = z, t[47] = k, t[48] = N, t[49] = ae, t[50] = ce, t[51] = Ct, t[52] = zt, t[53] = bt, t[54] = tt, t[55] = ht, t[56] = n?.graphObjectValues, t[57] = n?.regLine, t[58] = n?.xAxis?.axis, t[59] = n?.xAxis?.gridLines, t[60] = n?.xAxis?.labels, t[61] = n?.xAxis?.title, t[62] = n?.yAxis?.gridLines, t[63] = n?.yAxis?.labels, t[64] = n?.yAxis?.title, t[65] = q, t[66] = y, t[67] = st, t[68] = ot, t[69] = P, t[70] = Ot, t[71] = nt, t[72] = rt, t[73] = Lt, t[74] = $t, t[75] = St, t[76] = Mt, t[77] = U, t[78] = J, t[79] = Vt, t[80] = kt, t[81] = Dt, t[82] = Y, t[83] = Nt, t[84] = R, t[85] = Tt, t[86] = I, t[87] = Pt, t[88] = K, t[89] = H;
337
+ t[173] !== Qe ? (K = /* @__PURE__ */ o.jsx("g", { children: Qe }), t[173] = Qe, t[174] = K) : K = t[174], I = Ct ? /* @__PURE__ */ o.jsx(wi, { x1: 0, x2: O, y1: Te(0), y2: Te(O), graphHeight: p, graphWidth: O, className: s?.regLine, style: n?.regLine, color: typeof Ct == "string" ? Ct : void 0, animate: r, isInView: v }) : null, t[8] = r, t[9] = At, t[10] = s?.graphObjectValues, t[11] = s?.regLine, t[12] = s?.xAxis?.axis, t[13] = s?.xAxis?.gridLines, t[14] = s?.xAxis?.labels, t[15] = s?.xAxis?.title, t[16] = s?.yAxis?.gridLines, t[17] = s?.yAxis?.labels, t[18] = s?.yAxis?.title, t[19] = C, t[20] = c, t[21] = et, t[22] = k, t[23] = l, t[24] = P, t[25] = V, t[26] = q, t[27] = fe, t[28] = T, t[29] = v, t[30] = it, t[31] = yt, t[32] = u.bottom, t[33] = u.left, t[34] = u.right, t[35] = u.top, t[36] = we, t[37] = Bt, t[38] = vt, t[39] = $, t[40] = b, t[41] = z, t[42] = L, t[43] = ue, t[44] = xe, t[45] = S, t[46] = B, t[47] = M, t[48] = D, t[49] = ae, t[50] = ce, t[51] = Ct, t[52] = zt, t[53] = bt, t[54] = tt, t[55] = ht, t[56] = n?.graphObjectValues, t[57] = n?.regLine, t[58] = n?.xAxis?.axis, t[59] = n?.xAxis?.gridLines, t[60] = n?.xAxis?.labels, t[61] = n?.xAxis?.title, t[62] = n?.yAxis?.gridLines, t[63] = n?.yAxis?.labels, t[64] = n?.yAxis?.title, t[65] = G, t[66] = y, t[67] = st, t[68] = ot, t[69] = N, t[70] = Ot, t[71] = nt, t[72] = rt, t[73] = Lt, t[74] = $t, t[75] = St, t[76] = Vt, t[77] = U, t[78] = J, t[79] = Mt, t[80] = kt, t[81] = Dt, t[82] = X, t[83] = Nt, t[84] = Y, t[85] = Tt, t[86] = R, t[87] = Pt, t[88] = K, t[89] = I;
339
338
  } else
340
- rt = t[72], Lt = t[73], $t = t[74], St = t[75], Mt = t[76], U = t[77], J = t[78], Vt = t[79], kt = t[80], Dt = t[81], Y = t[82], Nt = t[83], R = t[84], Tt = t[85], I = t[86], Pt = t[87], K = t[88], H = t[89];
339
+ rt = t[72], Lt = t[73], $t = t[74], St = t[75], Vt = t[76], U = t[77], J = t[78], Mt = t[79], kt = t[80], Dt = t[81], X = t[82], Nt = t[83], Y = t[84], Tt = t[85], R = t[86], Pt = t[87], K = t[88], I = t[89];
341
340
  let Xt;
342
- t[175] !== rt || t[176] !== R || t[177] !== Tt || t[178] !== I || t[179] !== Pt || t[180] !== K || t[181] !== H ? (Xt = /* @__PURE__ */ o.jsxs(rt, { children: [
343
- R,
341
+ t[175] !== rt || t[176] !== Y || t[177] !== Tt || t[178] !== R || t[179] !== Pt || t[180] !== K || t[181] !== I ? (Xt = /* @__PURE__ */ o.jsxs(rt, { children: [
342
+ Y,
344
343
  Tt,
345
- I,
344
+ R,
346
345
  Pt,
347
346
  K,
348
- H
349
- ] }), t[175] = rt, t[176] = R, t[177] = Tt, t[178] = I, t[179] = Pt, t[180] = K, t[181] = H, t[182] = Xt) : Xt = t[182];
347
+ I
348
+ ] }), t[175] = rt, t[176] = Y, t[177] = Tt, t[178] = R, t[179] = Pt, t[180] = K, t[181] = I, t[182] = Xt) : Xt = t[182];
350
349
  let Yt;
351
- t[183] !== D ? (Yt = D.filter(Bi).map(qi), t[183] = D, t[184] = Yt) : Yt = t[184];
350
+ t[183] !== k ? (Yt = k.filter(qi).map(Gi), t[183] = k, t[184] = Yt) : Yt = t[184];
352
351
  let Rt;
353
- t[185] !== $t || t[186] !== St || t[187] !== Mt || t[188] !== U || t[189] !== J || t[190] !== Xt || t[191] !== Yt ? (Rt = /* @__PURE__ */ o.jsxs("g", { transform: $t, children: [
352
+ t[185] !== $t || t[186] !== St || t[187] !== Vt || t[188] !== U || t[189] !== J || t[190] !== Xt || t[191] !== Yt ? (Rt = /* @__PURE__ */ o.jsxs("g", { transform: $t, children: [
354
353
  St,
355
- Mt,
354
+ Vt,
356
355
  U,
357
356
  J,
358
357
  Xt,
359
358
  Yt
360
- ] }), t[185] = $t, t[186] = St, t[187] = Mt, t[188] = U, t[189] = J, t[190] = Xt, t[191] = Yt, t[192] = Rt) : Rt = t[192];
359
+ ] }), t[185] = $t, t[186] = St, t[187] = Vt, t[188] = U, t[189] = J, t[190] = Xt, t[191] = Yt, t[192] = Rt) : Rt = t[192];
361
360
  let It;
362
- t[193] !== Lt || t[194] !== Vt || t[195] !== kt || t[196] !== Dt || t[197] !== Y || t[198] !== Nt || t[199] !== Rt ? (It = /* @__PURE__ */ o.jsx(Lt, { width: Vt, height: kt, viewBox: Dt, direction: Y, ref: Nt, children: Rt }), t[193] = Lt, t[194] = Vt, t[195] = kt, t[196] = Dt, t[197] = Y, t[198] = Nt, t[199] = Rt, t[200] = It) : It = t[200];
361
+ t[193] !== Lt || t[194] !== Mt || t[195] !== kt || t[196] !== Dt || t[197] !== X || t[198] !== Nt || t[199] !== Rt ? (It = /* @__PURE__ */ o.jsx(Lt, { width: Mt, height: kt, viewBox: Dt, direction: X, ref: Nt, children: Rt }), t[193] = Lt, t[194] = Mt, t[195] = kt, t[196] = Dt, t[197] = X, t[198] = Nt, t[199] = Rt, t[200] = It) : It = t[200];
363
362
  let Ht;
364
- t[201] !== l?.tooltip || t[202] !== Kt || t[203] !== x || t[204] !== $ || t[205] !== n?.tooltip || t[206] !== qt ? (Ht = $ && qt && Kt && x ? /* @__PURE__ */ o.jsx(vi, { data: $, body: qt, xPos: Kt, yPos: x, backgroundStyle: n?.tooltip, className: l?.tooltip }) : null, t[201] = l?.tooltip, t[202] = Kt, t[203] = x, t[204] = $, t[205] = n?.tooltip, t[206] = qt, t[207] = Ht) : Ht = t[207];
365
- let E;
366
- t[208] !== L || t[209] !== T ? (E = L && T !== void 0 ? /* @__PURE__ */ o.jsx(yi, { open: T !== void 0, onClose: () => {
367
- jt(void 0);
368
- }, children: /* @__PURE__ */ o.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof L == "string" ? {
369
- __html: Oi(L, T)
370
- } : void 0, children: typeof L == "function" ? L(T) : null }) }) : null, t[208] = L, t[209] = T, t[210] = E) : E = t[210];
363
+ t[201] !== s?.tooltip || t[202] !== Kt || t[203] !== m || t[204] !== L || t[205] !== n?.tooltip || t[206] !== qt ? (Ht = L && qt && Kt && m ? /* @__PURE__ */ o.jsx(yi, { data: L, body: qt, xPos: Kt, yPos: m, backgroundStyle: n?.tooltip, className: s?.tooltip }) : null, t[201] = s?.tooltip, t[202] = Kt, t[203] = m, t[204] = L, t[205] = n?.tooltip, t[206] = qt, t[207] = Ht) : Ht = t[207];
364
+ let H;
365
+ t[208] !== s?.modal || t[209] !== P || t[210] !== z ? (H = P && z !== void 0 ? /* @__PURE__ */ o.jsx(Si, { body: P, data: z, setData: jt, className: s?.modal }) : null, t[208] = s?.modal, t[209] = P, t[210] = z, t[211] = H) : H = t[211];
371
366
  let at;
372
- return t[211] !== It || t[212] !== Ht || t[213] !== E ? (at = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
367
+ return t[212] !== It || t[213] !== Ht || t[214] !== H ? (at = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
373
368
  It,
374
369
  Ht,
375
- E
376
- ] }), t[211] = It, t[212] = Ht, t[213] = E, t[214] = at) : at = t[214], at;
370
+ H
371
+ ] }), t[212] = It, t[213] = Ht, t[214] = H, t[215] = at) : at = t[215], at;
377
372
  }
378
- function qi(i) {
373
+ function Gi(i) {
379
374
  return i.layer;
380
375
  }
381
- function Bi(i) {
376
+ function qi(i) {
382
377
  return i.position === "after";
383
378
  }
379
+ function Bi(i) {
380
+ return i.color;
381
+ }
384
382
  function zi(i) {
385
383
  return i.color;
386
384
  }
@@ -403,19 +401,19 @@ function _i(i) {
403
401
  return i.color;
404
402
  }
405
403
  function to(i) {
406
- return i.color;
404
+ return !g(i.x) && !g(i.y);
407
405
  }
408
406
  function eo(i) {
409
407
  return !g(i.x) && !g(i.y);
410
408
  }
411
409
  function io(i) {
412
- return !g(i.x) && !g(i.y);
410
+ return i.layer;
413
411
  }
414
412
  function oo(i) {
415
- return i.layer;
413
+ return i.position === "before";
416
414
  }
417
415
  function no(i) {
418
- return i.position === "before";
416
+ return i !== 0;
419
417
  }
420
418
  function so(i) {
421
419
  return i !== 0;
@@ -427,151 +425,148 @@ function ro(i) {
427
425
  return i !== 0;
428
426
  }
429
427
  function ao(i) {
430
- return i !== 0;
428
+ return !g(i.x) && !g(i.y);
431
429
  }
432
430
  function co(i) {
433
431
  return !g(i.x) && !g(i.y);
434
432
  }
435
433
  function fo(i) {
436
- return !g(i.x) && !g(i.y);
437
- }
438
- function uo(i) {
439
434
  return !g(i.radius);
440
435
  }
441
- function mo(i) {
436
+ function uo(i) {
442
437
  return !g(i.radius);
443
438
  }
444
439
  function xo(i) {
445
440
  return i.radius === void 0 || i.radius === null;
446
441
  }
447
- function po(i, t) {
442
+ function mo(i, t) {
448
443
  return {
449
444
  ...i,
450
445
  id: `${t}`
451
446
  };
452
447
  }
453
- function Sn(i) {
448
+ function Ln(i) {
454
449
  const t = ai.c(53), {
455
- data: s,
456
- graphTitle: q,
457
- colors: B,
450
+ data: l,
451
+ graphTitle: G,
452
+ colors: q,
458
453
  sources: ht,
459
454
  graphDescription: c,
460
455
  showLabels: C,
461
- height: N,
456
+ height: D,
462
457
  width: y,
463
- footNote: P,
458
+ footNote: N,
464
459
  colorDomain: yt,
465
460
  colorLegendTitle: Oe,
466
461
  radius: re,
467
462
  xAxisTitle: je,
468
463
  yAxisTitle: qt,
469
- padding: z,
464
+ padding: B,
470
465
  backgroundColor: ae,
471
466
  leftMargin: ce,
472
467
  rightMargin: fe,
473
468
  topMargin: tt,
474
- bottomMargin: X,
469
+ bottomMargin: T,
475
470
  tooltip: we,
476
471
  relativeHeight: Bt,
477
- onSeriesMouseOver: S,
472
+ onSeriesMouseOver: $,
478
473
  refXValues: vt,
479
474
  refYValues: b,
480
- highlightAreaSettings: M,
475
+ highlightAreaSettings: S,
481
476
  showColorScale: bt,
482
477
  highlightedDataPoints: At,
483
478
  graphID: et,
484
479
  maxRadiusValue: Ct,
485
480
  maxXValue: zt,
486
- minXValue: L,
481
+ minXValue: P,
487
482
  maxYValue: ue,
488
- minYValue: me,
483
+ minYValue: xe,
489
484
  xSuffix: it,
490
485
  ySuffix: ot,
491
486
  xPrefix: nt,
492
487
  yPrefix: st,
493
488
  onSeriesMouseClick: Ot,
494
489
  graphDownload: n,
495
- dataDownload: l,
490
+ dataDownload: s,
496
491
  language: r,
497
492
  showNAColor: V,
498
- minHeight: k,
499
- annotations: D,
493
+ minHeight: M,
494
+ annotations: k,
500
495
  customHighlightAreaSettings: Ut,
501
496
  theme: Jt,
502
497
  regressionLine: v,
503
- ariaLabel: $,
498
+ ariaLabel: L,
504
499
  resetSelectionOnDoubleClick: lt,
505
- detailsOnClick: T,
500
+ detailsOnClick: z,
506
501
  noOfXTicks: jt,
507
502
  noOfYTicks: Kt,
508
503
  labelColor: wt,
509
- styles: x,
504
+ styles: m,
510
505
  classNames: f,
511
- animate: xe,
506
+ animate: me,
512
507
  dimmedOpacity: pe,
513
508
  precision: Qt,
514
509
  customLayers: u,
515
510
  timeline: rt
516
- } = i, Lt = C === void 0 ? !1 : C, $t = re === void 0 ? 5 : re, St = je === void 0 ? "X Axis" : je, Mt = qt === void 0 ? "Y Axis" : qt, U = ae === void 0 ? !1 : ae, J = ce === void 0 ? 0 : ce, Vt = fe === void 0 ? 10 : fe, kt = tt === void 0 ? 20 : tt, Dt = X === void 0 ? 50 : X;
511
+ } = i, Lt = C === void 0 ? !1 : C, $t = re === void 0 ? 5 : re, St = je === void 0 ? "X Axis" : je, Vt = qt === void 0 ? "Y Axis" : qt, U = ae === void 0 ? !1 : ae, J = ce === void 0 ? 0 : ce, Mt = fe === void 0 ? 10 : fe, kt = tt === void 0 ? 20 : tt, Dt = T === void 0 ? 50 : T;
512
+ let X;
513
+ t[0] !== vt ? (X = vt === void 0 ? [] : vt, t[0] = vt, t[1] = X) : X = t[1];
514
+ const Nt = X;
517
515
  let Y;
518
- t[0] !== vt ? (Y = vt === void 0 ? [] : vt, t[0] = vt, t[1] = Y) : Y = t[1];
519
- const Nt = Y;
516
+ t[2] !== b ? (Y = b === void 0 ? [] : b, t[2] = b, t[3] = Y) : Y = t[3];
517
+ const Tt = Y;
520
518
  let R;
521
- t[2] !== b ? (R = b === void 0 ? [] : b, t[2] = b, t[3] = R) : R = t[3];
522
- const Tt = R;
519
+ t[4] !== S ? (R = S === void 0 ? [] : S, t[4] = S, t[5] = R) : R = t[5];
520
+ const Pt = R, K = bt === void 0 ? !0 : bt;
523
521
  let I;
524
- t[4] !== M ? (I = M === void 0 ? [] : M, t[4] = M, t[5] = I) : I = t[5];
525
- const Pt = I, K = bt === void 0 ? !0 : bt;
526
- let H;
527
- t[6] !== At ? (H = At === void 0 ? [] : At, t[6] = At, t[7] = H) : H = t[7];
528
- const Xt = H, Yt = it === void 0 ? "" : it, Rt = ot === void 0 ? "" : ot, It = nt === void 0 ? "" : nt, Ht = st === void 0 ? "" : st, E = n === void 0 ? !1 : n, at = l === void 0 ? !1 : l, ct = r === void 0 ? "en" : r, O = V === void 0 ? !0 : V, p = k === void 0 ? 0 : k;
522
+ t[6] !== At ? (I = At === void 0 ? [] : At, t[6] = At, t[7] = I) : I = t[7];
523
+ const Xt = I, Yt = it === void 0 ? "" : it, Rt = ot === void 0 ? "" : ot, It = nt === void 0 ? "" : nt, Ht = st === void 0 ? "" : st, H = n === void 0 ? !1 : n, at = s === void 0 ? !1 : s, ct = r === void 0 ? "en" : r, O = V === void 0 ? !0 : V, p = M === void 0 ? 0 : M;
529
524
  let j;
530
- t[8] !== D ? (j = D === void 0 ? [] : D, t[8] = D, t[9] = j) : j = t[9];
525
+ t[8] !== k ? (j = k === void 0 ? [] : k, t[8] = k, t[9] = j) : j = t[9];
531
526
  const ge = j;
532
527
  let a;
533
528
  t[10] !== Ut ? (a = Ut === void 0 ? [] : Ut, t[10] = Ut, t[11] = a) : a = t[11];
534
- const m = a, Et = Jt === void 0 ? "light" : Jt, Ne = v === void 0 ? !1 : v, Re = lt === void 0 ? !0 : lt, Ie = jt === void 0 ? 5 : jt, Te = Kt === void 0 ? 5 : Kt, Zt = xe === void 0 ? !1 : xe, Le = pe === void 0 ? 0.3 : pe, $e = Qt === void 0 ? 2 : Qt;
529
+ const x = a, Et = Jt === void 0 ? "light" : Jt, Ne = v === void 0 ? !1 : v, Re = lt === void 0 ? !0 : lt, Ie = jt === void 0 ? 5 : jt, Te = Kt === void 0 ? 5 : Kt, Zt = me === void 0 ? !1 : me, Le = pe === void 0 ? 0.3 : pe, $e = Qt === void 0 ? 2 : Qt;
535
530
  let ft;
536
531
  t[12] !== u ? (ft = u === void 0 ? [] : u, t[12] = u, t[13] = ft) : ft = t[13];
537
532
  const Se = ft, w = rt === void 0 ? {
538
533
  enabled: !1,
539
534
  autoplay: !1,
540
535
  showOnlyActiveDate: !0
541
- } : rt, [_t, Me] = dt(0), [de, Ve] = dt(0), [ut, Ft] = dt(w.autoplay), d = Fi(Ze(s, "date", !0).map((h) => ui(`${h}`, w.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Wo), [Q, te] = dt(w.autoplay ? 0 : d.length - 1), [ke, Wt] = dt(void 0), ee = _e(null), mt = _e(null);
542
- let F, W;
543
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (F = () => {
536
+ } : rt, [_t, Ve] = dt(0), [de, Me] = dt(0), [ut, Ft] = dt(w.autoplay), d = Ei(Ze(l, "date", !0).map((h) => ui(`${h}`, w.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Fo), [Q, te] = dt(w.autoplay ? 0 : d.length - 1), [ke, Wt] = dt(void 0), ee = _e(null), xt = _e(null);
537
+ let E, F;
538
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
544
539
  const h = new ResizeObserver((pt) => {
545
- Me(pt[0].target.clientWidth || 620), Ve(pt[0].target.clientHeight || 480);
540
+ Ve(pt[0].target.clientWidth || 620), Me(pt[0].target.clientHeight || 480);
546
541
  });
547
542
  return ee.current && h.observe(ee.current), () => h.disconnect();
548
- }, W = [], t[14] = F, t[15] = W) : (F = t[14], W = t[15]), ei(F, W), ei(() => {
543
+ }, F = [], t[14] = E, t[15] = F) : (E = t[14], F = t[15]), ei(E, F), ei(() => {
549
544
  const h = setInterval(() => {
550
545
  te((pt) => pt < d.length - 1 ? pt + 1 : 0);
551
546
  }, (w.speed || 2) * 1e3);
552
547
  return ut || clearInterval(h), () => clearInterval(h);
553
548
  }, [d, ut, w.speed]);
554
- const ie = xi(d, Q, w.showOnlyActiveDate, w.dateFormat || "yyyy"), oe = Ei, ne = f?.graphContainer, se = x?.graphContainer;
549
+ const ie = mi(d, Q, w.showOnlyActiveDate, w.dateFormat || "yyyy"), oe = Hi, ne = f?.graphContainer, se = m?.graphContainer;
555
550
  let Z;
556
- t[16] !== f?.description || t[17] !== f?.title || t[18] !== s || t[19] !== at || t[20] !== c || t[21] !== E || t[22] !== q || t[23] !== x?.description || t[24] !== x?.title || t[25] !== y ? (Z = q || c || E || at ? /* @__PURE__ */ o.jsx(Ti, { styles: {
557
- title: x?.title,
558
- description: x?.description
551
+ t[16] !== f?.description || t[17] !== f?.title || t[18] !== l || t[19] !== at || t[20] !== c || t[21] !== H || t[22] !== G || t[23] !== m?.description || t[24] !== m?.title || t[25] !== y ? (Z = G || c || H || at ? /* @__PURE__ */ o.jsx(Ni, { styles: {
552
+ title: m?.title,
553
+ description: m?.description
559
554
  }, classNames: {
560
555
  title: f?.title,
561
556
  description: f?.description
562
- }, graphTitle: q, graphDescription: c, width: y, graphDownload: E ? mt : void 0, dataDownload: at ? s.map(Fo).filter(Eo).length > 0 ? s.map(Ho).filter(Io) : s.filter(Ro) : null }) : null, t[16] = f?.description, t[17] = f?.title, t[18] = s, t[19] = at, t[20] = c, t[21] = E, t[22] = q, t[23] = x?.description, t[24] = x?.title, t[25] = y, t[26] = Z) : Z = t[26];
557
+ }, graphTitle: G, graphDescription: c, width: y, graphDownload: H ? xt : void 0, dataDownload: at ? l.map(Eo).filter(Ho).length > 0 ? l.map(Io).filter(Ro) : l.filter(Yo) : null }) : null, t[16] = f?.description, t[17] = f?.title, t[18] = l, t[19] = at, t[20] = c, t[21] = H, t[22] = G, t[23] = m?.description, t[24] = m?.title, t[25] = y, t[26] = Z) : Z = t[26];
563
558
  const Gt = w.enabled && d.length > 0 && ie ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
564
559
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
565
560
  Ft(!ut);
566
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": ut ? "Click to pause animation" : "Click to play animation", children: ut ? /* @__PURE__ */ o.jsx(Yi, {}) : /* @__PURE__ */ o.jsx(Ri, {}) }),
561
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": ut ? "Click to pause animation" : "Click to play animation", children: ut ? /* @__PURE__ */ o.jsx(Xi, {}) : /* @__PURE__ */ o.jsx(Yi, {}) }),
567
562
  /* @__PURE__ */ o.jsx(pi, { min: d[0], max: d[d.length - 1], marks: ie, step: null, defaultValue: d[d.length - 1], value: d[Q], onChangeComplete: (h) => {
568
563
  te(d.indexOf(h));
569
564
  }, onChange: (h) => {
570
565
  te(d.indexOf(h));
571
566
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
572
- ] }) : null, le = s.length === 0 ? /* @__PURE__ */ o.jsx(Xi, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
573
- K && s.filter(Yo).length !== 0 ? /* @__PURE__ */ o.jsx(Pi, { width: y, colorLegendTitle: Oe, colors: B || G[Et].categoricalColors.colors, colorDomain: yt || Ze(s, "color", !0), setSelectedColor: Wt, showNAColor: O, className: f?.colorLegend }) : null,
574
- /* @__PURE__ */ o.jsx(Hi, { ref: ee, children: _t && de ? /* @__PURE__ */ o.jsx(Gi, { data: Ii(s, w.dateFormat || "yyyy").filter((h) => w.enabled ? h.date === mi(new Date(d[Q]), w.dateFormat || "yyyy") : h), width: _t, height: de, colorDomain: s.filter(Xo).length === 0 ? [] : yt || Ze(s, "color", !0), colors: s.filter(Po).length === 0 ? B ? [B] : [G.primaryColors["blue-600"]] : B || G[Et].categoricalColors.colors, xAxisTitle: St, yAxisTitle: Mt, refXValues: Nt, refYValues: Tt, showLabels: Lt, radius: $t, leftMargin: J, rightMargin: Vt, topMargin: kt, bottomMargin: Dt, tooltip: we, onSeriesMouseOver: S, highlightAreaSettings: Pt, highlightedDataPoints: s.filter(To).length === 0 ? [] : Xt, selectedColor: ke, maxRadiusValue: g(Ct) ? Math.max(...s.map(No).filter(Do)) : Ct, maxXValue: g(zt) ? Math.max(...s.map(ko).filter(Vo)) > 0 ? Math.max(...s.map(Mo).filter(So)) : 0 : zt, minXValue: g(L) ? Math.min(...s.map($o).filter(Lo)) > 0 ? 0 : Math.min(...s.map(wo).filter(jo)) : L, maxYValue: g(ue) ? Math.max(...s.map(Oo).filter(Co)) > 0 ? Math.max(...s.map(Ao).filter(bo)) : 0 : ue, minYValue: g(me) ? Math.min(...s.map(vo).filter(yo)) > 0 ? 0 : Math.min(...s.map(ho).filter(go)) : me, onSeriesMouseClick: Ot, rtl: ct === "he" || ct === "ar", annotations: ge, customHighlightAreaSettings: m, regressionLine: Ne, resetSelectionOnDoubleClick: Re, detailsOnClick: T, noOfXTicks: Ie, noOfYTicks: Te, labelColor: wt, xSuffix: Yt, ySuffix: Rt, xPrefix: It, yPrefix: Ht, styles: x, classNames: f, animate: Zt === !0 ? {
567
+ ] }) : null, le = l.length === 0 ? /* @__PURE__ */ o.jsx(Pi, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
568
+ K && l.filter(Xo).length !== 0 ? /* @__PURE__ */ o.jsx(Ti, { width: y, colorLegendTitle: Oe, colors: q || W[Et].categoricalColors.colors, colorDomain: yt || Ze(l, "color", !0), setSelectedColor: Wt, showNAColor: O, className: f?.colorLegend }) : null,
569
+ /* @__PURE__ */ o.jsx(Ii, { ref: ee, children: _t && de ? /* @__PURE__ */ o.jsx(Wi, { data: Ri(l, w.dateFormat || "yyyy").filter((h) => w.enabled ? h.date === xi(new Date(d[Q]), w.dateFormat || "yyyy") : h), width: _t, height: de, colorDomain: l.filter(Po).length === 0 ? [] : yt || Ze(l, "color", !0), colors: l.filter(To).length === 0 ? q ? [q] : [W.primaryColors["blue-600"]] : q || W[Et].categoricalColors.colors, xAxisTitle: St, yAxisTitle: Vt, refXValues: Nt, refYValues: Tt, showLabels: Lt, radius: $t, leftMargin: J, rightMargin: Mt, topMargin: kt, bottomMargin: Dt, tooltip: we, onSeriesMouseOver: $, highlightAreaSettings: Pt, highlightedDataPoints: l.filter(No).length === 0 ? [] : Xt, selectedColor: ke, maxRadiusValue: g(Ct) ? Math.max(...l.map(Do).filter(ko)) : Ct, maxXValue: g(zt) ? Math.max(...l.map(Mo).filter(Vo)) > 0 ? Math.max(...l.map(So).filter($o)) : 0 : zt, minXValue: g(P) ? Math.min(...l.map(Lo).filter(wo)) > 0 ? 0 : Math.min(...l.map(jo).filter(Oo)) : P, maxYValue: g(ue) ? Math.max(...l.map(Co).filter(Ao)) > 0 ? Math.max(...l.map(bo).filter(vo)) : 0 : ue, minYValue: g(xe) ? Math.min(...l.map(yo).filter(ho)) > 0 ? 0 : Math.min(...l.map(go).filter(po)) : xe, onSeriesMouseClick: Ot, rtl: ct === "he" || ct === "ar", annotations: ge, customHighlightAreaSettings: x, regressionLine: Ne, resetSelectionOnDoubleClick: Re, detailsOnClick: z, noOfXTicks: Ie, noOfYTicks: Te, labelColor: wt, xSuffix: Yt, ySuffix: Rt, xPrefix: It, yPrefix: Ht, styles: m, classNames: f, animate: Zt === !0 ? {
575
570
  duration: 0.5,
576
571
  once: !0,
577
572
  amount: 0.5
@@ -582,78 +577,81 @@ function Sn(i) {
582
577
  }, dimmedOpacity: Le, precision: $e, customLayers: Se }) : null })
583
578
  ] });
584
579
  let _;
585
- t[27] !== f?.footnote || t[28] !== f?.source || t[29] !== P || t[30] !== ht || t[31] !== x?.footnote || t[32] !== x?.source || t[33] !== y ? (_ = ht || P ? /* @__PURE__ */ o.jsx(Ni, { styles: {
586
- footnote: x?.footnote,
587
- source: x?.source
580
+ t[27] !== f?.footnote || t[28] !== f?.source || t[29] !== N || t[30] !== ht || t[31] !== m?.footnote || t[32] !== m?.source || t[33] !== y ? (_ = ht || N ? /* @__PURE__ */ o.jsx(Di, { styles: {
581
+ footnote: m?.footnote,
582
+ source: m?.source
588
583
  }, classNames: {
589
584
  footnote: f?.footnote,
590
585
  source: f?.source
591
- }, sources: ht, footNote: P, width: y }) : null, t[27] = f?.footnote, t[28] = f?.source, t[29] = P, t[30] = ht, t[31] = x?.footnote, t[32] = x?.source, t[33] = y, t[34] = _) : _ = t[34];
592
- let xt;
593
- return t[35] !== oe || t[36] !== $ || t[37] !== U || t[38] !== et || t[39] !== N || t[40] !== ct || t[41] !== p || t[42] !== z || t[43] !== Bt || t[44] !== ne || t[45] !== se || t[46] !== Z || t[47] !== Gt || t[48] !== le || t[49] !== _ || t[50] !== Et || t[51] !== y ? (xt = /* @__PURE__ */ o.jsxs(oe, { className: ne, style: se, id: et, ref: mt, "aria-label": $, backgroundColor: U, theme: Et, language: ct, minHeight: p, width: y, height: N, relativeHeight: Bt, padding: z, children: [
586
+ }, sources: ht, footNote: N, width: y }) : null, t[27] = f?.footnote, t[28] = f?.source, t[29] = N, t[30] = ht, t[31] = m?.footnote, t[32] = m?.source, t[33] = y, t[34] = _) : _ = t[34];
587
+ let mt;
588
+ return t[35] !== oe || t[36] !== L || t[37] !== U || t[38] !== et || t[39] !== D || t[40] !== ct || t[41] !== p || t[42] !== B || t[43] !== Bt || t[44] !== ne || t[45] !== se || t[46] !== Z || t[47] !== Gt || t[48] !== le || t[49] !== _ || t[50] !== Et || t[51] !== y ? (mt = /* @__PURE__ */ o.jsxs(oe, { className: ne, style: se, id: et, ref: xt, "aria-label": L, backgroundColor: U, theme: Et, language: ct, minHeight: p, width: y, height: D, relativeHeight: Bt, padding: B, children: [
594
589
  Z,
595
590
  Gt,
596
591
  le,
597
592
  _
598
- ] }), t[35] = oe, t[36] = $, t[37] = U, t[38] = et, t[39] = N, t[40] = ct, t[41] = p, t[42] = z, t[43] = Bt, t[44] = ne, t[45] = se, t[46] = Z, t[47] = Gt, t[48] = le, t[49] = _, t[50] = Et, t[51] = y, t[52] = xt) : xt = t[52], xt;
593
+ ] }), t[35] = oe, t[36] = L, t[37] = U, t[38] = et, t[39] = D, t[40] = ct, t[41] = p, t[42] = B, t[43] = Bt, t[44] = ne, t[45] = se, t[46] = Z, t[47] = Gt, t[48] = le, t[49] = _, t[50] = Et, t[51] = y, t[52] = mt) : mt = t[52], mt;
599
594
  }
600
- function go(i) {
595
+ function po(i) {
601
596
  return i != null;
602
597
  }
603
- function ho(i) {
598
+ function go(i) {
604
599
  return i.y;
605
600
  }
606
- function yo(i) {
601
+ function ho(i) {
607
602
  return i != null;
608
603
  }
609
- function vo(i) {
604
+ function yo(i) {
610
605
  return i.y;
611
606
  }
612
- function bo(i) {
607
+ function vo(i) {
613
608
  return i != null;
614
609
  }
615
- function Ao(i) {
610
+ function bo(i) {
616
611
  return i.y;
617
612
  }
618
- function Co(i) {
613
+ function Ao(i) {
619
614
  return i != null;
620
615
  }
621
- function Oo(i) {
616
+ function Co(i) {
622
617
  return i.y;
623
618
  }
624
- function jo(i) {
619
+ function Oo(i) {
625
620
  return i != null;
626
621
  }
627
- function wo(i) {
622
+ function jo(i) {
628
623
  return i.x;
629
624
  }
630
- function Lo(i) {
625
+ function wo(i) {
631
626
  return i != null;
632
627
  }
633
- function $o(i) {
628
+ function Lo(i) {
634
629
  return i.x;
635
630
  }
636
- function So(i) {
631
+ function $o(i) {
637
632
  return i != null;
638
633
  }
639
- function Mo(i) {
634
+ function So(i) {
640
635
  return i.x;
641
636
  }
642
637
  function Vo(i) {
643
638
  return i != null;
644
639
  }
645
- function ko(i) {
640
+ function Mo(i) {
646
641
  return i.x;
647
642
  }
648
- function Do(i) {
643
+ function ko(i) {
649
644
  return i != null;
650
645
  }
651
- function No(i) {
646
+ function Do(i) {
652
647
  return i.radius;
653
648
  }
654
- function To(i) {
649
+ function No(i) {
655
650
  return i.label;
656
651
  }
652
+ function To(i) {
653
+ return i.color;
654
+ }
657
655
  function Po(i) {
658
656
  return i.color;
659
657
  }
@@ -661,27 +659,24 @@ function Xo(i) {
661
659
  return i.color;
662
660
  }
663
661
  function Yo(i) {
664
- return i.color;
662
+ return i !== void 0;
665
663
  }
666
664
  function Ro(i) {
667
665
  return i !== void 0;
668
666
  }
669
667
  function Io(i) {
670
- return i !== void 0;
671
- }
672
- function Ho(i) {
673
668
  return i.data;
674
669
  }
675
- function Eo(i) {
670
+ function Ho(i) {
676
671
  return i !== void 0;
677
672
  }
678
- function Fo(i) {
673
+ function Eo(i) {
679
674
  return i.data;
680
675
  }
681
- function Wo(i, t) {
682
- return Wi(i, t);
676
+ function Fo(i, t) {
677
+ return Fi(i, t);
683
678
  }
684
679
  export {
685
- Sn as ScatterPlot
680
+ Ln as ScatterPlot
686
681
  };
687
682
  //# sourceMappingURL=ScatterPlot.js.map