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