@undp/data-viz 1.5.9 → 2.0.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 (676) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +1 -0
  4. package/dist/AreaChart.js +420 -520
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/Axis-CRyfcLjc.js +32 -0
  7. package/dist/Axis-CRyfcLjc.js.map +1 -0
  8. package/dist/Axis-DxRV2yMi.cjs +2 -0
  9. package/dist/Axis-DxRV2yMi.cjs.map +1 -0
  10. package/dist/AxisTitle-jeI7am8o.js +29 -0
  11. package/dist/AxisTitle-jeI7am8o.js.map +1 -0
  12. package/dist/AxisTitle-sS5bLLR7.cjs +2 -0
  13. package/dist/AxisTitle-sS5bLLR7.cjs.map +1 -0
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +1 -0
  17. package/dist/BarGraph.js +2185 -4042
  18. package/dist/BarGraph.js.map +1 -1
  19. package/dist/BasicStatCard.cjs +1 -1
  20. package/dist/BasicStatCard.cjs.map +1 -1
  21. package/dist/BasicStatCard.d.ts +1 -0
  22. package/dist/BasicStatCard.js +118 -186
  23. package/dist/BasicStatCard.js.map +1 -1
  24. package/dist/BeeSwarmChart.cjs +1 -1
  25. package/dist/BeeSwarmChart.cjs.map +1 -1
  26. package/dist/BeeSwarmChart.d.ts +5 -0
  27. package/dist/BeeSwarmChart.js +518 -1016
  28. package/dist/BeeSwarmChart.js.map +1 -1
  29. package/dist/BiVariateChoroplethMap.cjs +1 -1
  30. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  31. package/dist/BiVariateChoroplethMap.d.ts +1 -0
  32. package/dist/BiVariateChoroplethMap.js +456 -697
  33. package/dist/BiVariateChoroplethMap.js.map +1 -1
  34. package/dist/BulletChart.cjs +1 -1
  35. package/dist/BulletChart.cjs.map +1 -1
  36. package/dist/BulletChart.d.ts +1 -0
  37. package/dist/BulletChart.js +863 -1414
  38. package/dist/BulletChart.js.map +1 -1
  39. package/dist/ButterflyChart.cjs +1 -1
  40. package/dist/ButterflyChart.cjs.map +1 -1
  41. package/dist/ButterflyChart.d.ts +1 -0
  42. package/dist/ButterflyChart.js +474 -684
  43. package/dist/ButterflyChart.js.map +1 -1
  44. package/dist/ChoroplethMap.cjs +1 -1
  45. package/dist/ChoroplethMap.cjs.map +1 -1
  46. package/dist/ChoroplethMap.d.ts +1 -0
  47. package/dist/ChoroplethMap.js +468 -722
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +1 -0
  51. package/dist/CirclePackingGraph.js +5 -6
  52. package/dist/CirclePackingGraph.js.map +1 -1
  53. package/dist/ColorLegend.cjs +1 -1
  54. package/dist/ColorLegend.cjs.map +1 -1
  55. package/dist/ColorLegend.js +57 -44
  56. package/dist/ColorLegend.js.map +1 -1
  57. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  58. package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
  59. package/dist/ColorLegendWithMouseOver.js +60 -65
  60. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  61. package/dist/Colors.cjs.map +1 -1
  62. package/dist/Colors.js +44 -430
  63. package/dist/Colors.js.map +1 -1
  64. package/dist/CopyTextButton.cjs +3 -3
  65. package/dist/CopyTextButton.cjs.map +1 -1
  66. package/dist/CopyTextButton.js +537 -455
  67. package/dist/CopyTextButton.js.map +1 -1
  68. package/dist/CsvDownloadButton.cjs +7 -7
  69. package/dist/CsvDownloadButton.cjs.map +1 -1
  70. package/dist/CsvDownloadButton.js +442 -447
  71. package/dist/CsvDownloadButton.js.map +1 -1
  72. package/dist/Data/barChart.json +70 -0
  73. package/dist/Data/basic.csv +20 -0
  74. package/dist/DataCards.cjs +5 -5
  75. package/dist/DataCards.cjs.map +1 -1
  76. package/dist/DataCards.d.ts +1 -0
  77. package/dist/DataCards.js +488 -581
  78. package/dist/DataCards.js.map +1 -1
  79. package/dist/DataTable.cjs +1 -1
  80. package/dist/DataTable.cjs.map +1 -1
  81. package/dist/DataTable.d.ts +1 -0
  82. package/dist/DataTable.js +183 -326
  83. package/dist/DataTable.js.map +1 -1
  84. package/dist/DifferenceLineChart.cjs +1 -1
  85. package/dist/DifferenceLineChart.cjs.map +1 -1
  86. package/dist/DifferenceLineChart.d.ts +1 -0
  87. package/dist/DifferenceLineChart.js +731 -795
  88. package/dist/DifferenceLineChart.js.map +1 -1
  89. package/dist/DonutChart.cjs +1 -1
  90. package/dist/DonutChart.cjs.map +1 -1
  91. package/dist/DonutChart.d.ts +1 -4
  92. package/dist/DonutChart.js +260 -444
  93. package/dist/DonutChart.js.map +1 -1
  94. package/dist/DotDensityMap.cjs +1 -1
  95. package/dist/DotDensityMap.cjs.map +1 -1
  96. package/dist/DotDensityMap.d.ts +1 -0
  97. package/dist/DotDensityMap.js +387 -574
  98. package/dist/DotDensityMap.js.map +1 -1
  99. package/dist/{DropdownSelect-6kjXM6oW.js → DropdownSelect-BbdPQa2k.js} +1401 -1374
  100. package/dist/DropdownSelect-BbdPQa2k.js.map +1 -0
  101. package/dist/DropdownSelect-Doz3mCrM.cjs +29 -0
  102. package/dist/DropdownSelect-Doz3mCrM.cjs.map +1 -0
  103. package/dist/DualAxisLineChart.cjs +1 -1
  104. package/dist/DualAxisLineChart.cjs.map +1 -1
  105. package/dist/DualAxisLineChart.d.ts +1 -0
  106. package/dist/DualAxisLineChart.js +620 -714
  107. package/dist/DualAxisLineChart.js.map +1 -1
  108. package/dist/DumbbellChart.cjs +1 -1
  109. package/dist/DumbbellChart.cjs.map +1 -1
  110. package/dist/DumbbellChart.d.ts +1 -0
  111. package/dist/DumbbellChart.js +789 -1499
  112. package/dist/DumbbellChart.js.map +1 -1
  113. package/dist/EmptyState-BZo1BbAn.js +15 -0
  114. package/dist/{EmptyState-36lXXyui.js.map → EmptyState-BZo1BbAn.js.map} +1 -1
  115. package/dist/EmptyState-sAEZ_5rU.cjs +2 -0
  116. package/dist/{EmptyState-B8IpKGcL.cjs.map → EmptyState-sAEZ_5rU.cjs.map} +1 -1
  117. package/dist/ExcelDownloadButton.cjs +1 -1
  118. package/dist/ExcelDownloadButton.cjs.map +1 -1
  119. package/dist/ExcelDownloadButton.js +20 -24
  120. package/dist/ExcelDownloadButton.js.map +1 -1
  121. package/dist/FootNote.cjs +1 -1
  122. package/dist/FootNote.cjs.map +1 -1
  123. package/dist/FootNote.js +26 -17
  124. package/dist/FootNote.js.map +1 -1
  125. package/dist/GeoHubCompareMaps.cjs +1 -1
  126. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  127. package/dist/GeoHubCompareMaps.d.ts +1 -0
  128. package/dist/GeoHubCompareMaps.js +267 -342
  129. package/dist/GeoHubCompareMaps.js.map +1 -1
  130. package/dist/GeoHubMap.cjs +1 -1
  131. package/dist/GeoHubMap.cjs.map +1 -1
  132. package/dist/GeoHubMap.d.ts +1 -0
  133. package/dist/GeoHubMap.js +214 -379
  134. package/dist/GeoHubMap.js.map +1 -1
  135. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  136. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  137. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -0
  138. package/dist/GeoHubMapWithLayerSelection.js +192 -278
  139. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  140. package/dist/GraphContainer-CRqzdKu2.js +78 -0
  141. package/dist/GraphContainer-CRqzdKu2.js.map +1 -0
  142. package/dist/GraphContainer-d8A46BK2.cjs +2 -0
  143. package/dist/GraphContainer-d8A46BK2.cjs.map +1 -0
  144. package/dist/GraphDescription.cjs +1 -1
  145. package/dist/GraphDescription.cjs.map +1 -1
  146. package/dist/GraphDescription.js +23 -17
  147. package/dist/GraphDescription.js.map +1 -1
  148. package/dist/{GraphEl-2IiUDxjR.js → GraphEl-BZne2JIx.js} +181 -202
  149. package/dist/GraphEl-BZne2JIx.js.map +1 -0
  150. package/dist/GraphEl-D5MUfp45.cjs +2 -0
  151. package/dist/GraphEl-D5MUfp45.cjs.map +1 -0
  152. package/dist/GraphFooter.cjs +1 -1
  153. package/dist/GraphFooter.cjs.map +1 -1
  154. package/dist/GraphFooter.js +28 -18
  155. package/dist/GraphFooter.js.map +1 -1
  156. package/dist/GraphHeader.cjs +1 -1
  157. package/dist/GraphHeader.cjs.map +1 -1
  158. package/dist/GraphHeader.d.ts +2 -1
  159. package/dist/GraphHeader.js +45 -59
  160. package/dist/GraphHeader.js.map +1 -1
  161. package/dist/GraphTitle.cjs +1 -1
  162. package/dist/GraphTitle.cjs.map +1 -1
  163. package/dist/GraphTitle.js +29 -24
  164. package/dist/GraphTitle.js.map +1 -1
  165. package/dist/GriddedGraphs.cjs +1 -1
  166. package/dist/GriddedGraphs.cjs.map +1 -1
  167. package/dist/GriddedGraphs.d.ts +1 -0
  168. package/dist/GriddedGraphs.js +216 -450
  169. package/dist/GriddedGraphs.js.map +1 -1
  170. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  171. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  172. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  173. package/dist/GriddedGraphsFromConfig.js +22 -36
  174. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  175. package/dist/HeatMap.cjs +1 -1
  176. package/dist/HeatMap.cjs.map +1 -1
  177. package/dist/HeatMap.d.ts +1 -0
  178. package/dist/HeatMap.js +278 -446
  179. package/dist/HeatMap.js.map +1 -1
  180. package/dist/Histogram.cjs +1 -1
  181. package/dist/Histogram.cjs.map +1 -1
  182. package/dist/Histogram.d.ts +1 -0
  183. package/dist/Histogram.js +154 -264
  184. package/dist/Histogram.js.map +1 -1
  185. package/dist/ImageDownloadButton.cjs +1 -1
  186. package/dist/ImageDownloadButton.cjs.map +1 -1
  187. package/dist/ImageDownloadButton.d.ts +2 -1
  188. package/dist/ImageDownloadButton.js +21 -25
  189. package/dist/ImageDownloadButton.js.map +1 -1
  190. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  191. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  192. package/dist/LineChartWithConfidenceInterval.d.ts +1 -0
  193. package/dist/LineChartWithConfidenceInterval.js +677 -827
  194. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  195. package/dist/LinearColorLegend.cjs +1 -1
  196. package/dist/LinearColorLegend.cjs.map +1 -1
  197. package/dist/LinearColorLegend.js +49 -30
  198. package/dist/LinearColorLegend.js.map +1 -1
  199. package/dist/Modal-DGcuAHyK.js +1047 -0
  200. package/dist/Modal-DGcuAHyK.js.map +1 -0
  201. package/dist/Modal-JW_IExO3.cjs +46 -0
  202. package/dist/Modal-JW_IExO3.cjs.map +1 -0
  203. package/dist/MultiGraphDashboard.cjs +1 -1
  204. package/dist/MultiGraphDashboard.cjs.map +1 -1
  205. package/dist/MultiGraphDashboard.d.ts +1 -0
  206. package/dist/MultiGraphDashboard.js +126 -292
  207. package/dist/MultiGraphDashboard.js.map +1 -1
  208. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  209. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  210. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  211. package/dist/MultiGraphDashboardFromConfig.js +22 -31
  212. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  213. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  214. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  215. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -0
  216. package/dist/MultiGraphDashboardWideToLongFormat.js +139 -223
  217. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  218. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  219. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  220. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -0
  221. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +25 -27
  222. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  223. package/dist/MultiLineAltChart.cjs +1 -1
  224. package/dist/MultiLineAltChart.cjs.map +1 -1
  225. package/dist/MultiLineAltChart.d.ts +1 -0
  226. package/dist/MultiLineAltChart.js +582 -659
  227. package/dist/MultiLineAltChart.js.map +1 -1
  228. package/dist/MultiLineChart.cjs +1 -1
  229. package/dist/MultiLineChart.cjs.map +1 -1
  230. package/dist/MultiLineChart.d.ts +1 -0
  231. package/dist/MultiLineChart.js +617 -724
  232. package/dist/MultiLineChart.js.map +1 -1
  233. package/dist/ParetoChart.cjs +1 -1
  234. package/dist/ParetoChart.cjs.map +1 -1
  235. package/dist/ParetoChart.d.ts +1 -0
  236. package/dist/ParetoChart.js +531 -635
  237. package/dist/ParetoChart.js.map +1 -1
  238. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  239. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  240. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  241. package/dist/PerformanceIntensiveMultiGraphDashboard.js +148 -337
  242. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  243. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  244. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  245. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  246. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +22 -31
  247. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
  248. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  249. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  250. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  251. package/dist/PerformanceIntensiveScrollStory.js +93 -114
  252. package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
  253. package/dist/RadarChart.cjs +1 -1
  254. package/dist/RadarChart.cjs.map +1 -1
  255. package/dist/RadarChart.d.ts +1 -0
  256. package/dist/RadarChart.js +426 -575
  257. package/dist/RadarChart.js.map +1 -1
  258. package/dist/ReferenceLine-2XCwHXQ4.js +162 -0
  259. package/dist/ReferenceLine-2XCwHXQ4.js.map +1 -0
  260. package/dist/ReferenceLine-BH0qdf4R.cjs +2 -0
  261. package/dist/ReferenceLine-BH0qdf4R.cjs.map +1 -0
  262. package/dist/RegressionLine-BOTTNSrr.cjs +2 -0
  263. package/dist/RegressionLine-BOTTNSrr.cjs.map +1 -0
  264. package/dist/RegressionLine-DAcY2DjT.js +87 -0
  265. package/dist/RegressionLine-DAcY2DjT.js.map +1 -0
  266. package/dist/SVGDownloadButton.cjs +1 -1
  267. package/dist/SVGDownloadButton.cjs.map +1 -1
  268. package/dist/SVGDownloadButton.js +21 -25
  269. package/dist/SVGDownloadButton.js.map +1 -1
  270. package/dist/SankeyChart.cjs +1 -1
  271. package/dist/SankeyChart.cjs.map +1 -1
  272. package/dist/SankeyChart.d.ts +1 -0
  273. package/dist/SankeyChart.js +665 -854
  274. package/dist/SankeyChart.js.map +1 -1
  275. package/dist/ScatterPlot.cjs +1 -1
  276. package/dist/ScatterPlot.cjs.map +1 -1
  277. package/dist/ScatterPlot.d.ts +1 -0
  278. package/dist/ScatterPlot.js +675 -815
  279. package/dist/ScatterPlot.js.map +1 -1
  280. package/dist/ScrollStory.cjs +1 -1
  281. package/dist/ScrollStory.cjs.map +1 -1
  282. package/dist/ScrollStory.d.ts +1 -0
  283. package/dist/ScrollStory.js +85 -97
  284. package/dist/ScrollStory.js.map +1 -1
  285. package/dist/SimpleLineChart.cjs +1 -1
  286. package/dist/SimpleLineChart.cjs.map +1 -1
  287. package/dist/SimpleLineChart.d.ts +1 -0
  288. package/dist/SimpleLineChart.js +505 -613
  289. package/dist/SimpleLineChart.js.map +1 -1
  290. package/dist/SingleGraphDashboard.cjs +1 -1
  291. package/dist/SingleGraphDashboard.cjs.map +1 -1
  292. package/dist/SingleGraphDashboard.d.ts +2 -1
  293. package/dist/SingleGraphDashboard.js +284 -508
  294. package/dist/SingleGraphDashboard.js.map +1 -1
  295. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  296. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  297. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -1
  298. package/dist/SingleGraphDashboardFromConfig.js +25 -31
  299. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  300. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  301. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  302. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  303. package/dist/SingleGraphDashboardGeoHubMaps.js +150 -168
  304. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  305. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  306. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  307. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  308. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -21
  309. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
  310. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  311. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  312. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  313. package/dist/SingleGraphDashboardThreeDGraphs.js +363 -593
  314. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  315. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  316. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  317. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  318. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +25 -31
  319. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
  320. package/dist/SlopeChart.cjs +1 -1
  321. package/dist/SlopeChart.cjs.map +1 -1
  322. package/dist/SlopeChart.d.ts +1 -0
  323. package/dist/SlopeChart.js +539 -573
  324. package/dist/SlopeChart.js.map +1 -1
  325. package/dist/Source-DYMJRrsq.cjs +2 -0
  326. package/dist/Source-DYMJRrsq.cjs.map +1 -0
  327. package/dist/Source-DwTHB8fn.js +78 -0
  328. package/dist/Source-DwTHB8fn.js.map +1 -0
  329. package/dist/Source.cjs +1 -1
  330. package/dist/Source.cjs.map +1 -1
  331. package/dist/Source.js +4 -38
  332. package/dist/Source.js.map +1 -1
  333. package/dist/SparkLine.cjs +1 -1
  334. package/dist/SparkLine.cjs.map +1 -1
  335. package/dist/SparkLine.d.ts +1 -0
  336. package/dist/SparkLine.js +286 -314
  337. package/dist/SparkLine.js.map +1 -1
  338. package/dist/Spinner-D7rnnwnA.js +47 -0
  339. package/dist/Spinner-D7rnnwnA.js.map +1 -0
  340. package/dist/Spinner-DRMBUsX7.cjs +2 -0
  341. package/dist/Spinner-DRMBUsX7.cjs.map +1 -0
  342. package/dist/StatCardFromData.cjs +1 -1
  343. package/dist/StatCardFromData.cjs.map +1 -1
  344. package/dist/StatCardFromData.d.ts +1 -0
  345. package/dist/StatCardFromData.js +161 -243
  346. package/dist/StatCardFromData.js.map +1 -1
  347. package/dist/StripChart.cjs +1 -1
  348. package/dist/StripChart.cjs.map +1 -1
  349. package/dist/StripChart.d.ts +1 -0
  350. package/dist/StripChart.js +665 -983
  351. package/dist/StripChart.js.map +1 -1
  352. package/dist/ThreeDGlobe.cjs +1 -1
  353. package/dist/ThreeDGlobe.cjs.map +1 -1
  354. package/dist/ThreeDGlobe.d.ts +1 -0
  355. package/dist/ThreeDGlobe.js +356 -519
  356. package/dist/ThreeDGlobe.js.map +1 -1
  357. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  358. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  359. package/dist/ThresholdColorLegendWithMouseOver.js +96 -126
  360. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  361. package/dist/Tooltip-4dJo4_AF.cjs +2 -0
  362. package/dist/Tooltip-4dJo4_AF.cjs.map +1 -0
  363. package/dist/Tooltip-CwWUegPB.js +43 -0
  364. package/dist/Tooltip-CwWUegPB.js.map +1 -0
  365. package/dist/TreeMapGraph.cjs +1 -1
  366. package/dist/TreeMapGraph.cjs.map +1 -1
  367. package/dist/TreeMapGraph.d.ts +1 -0
  368. package/dist/TreeMapGraph.js +479 -617
  369. package/dist/TreeMapGraph.js.map +1 -1
  370. package/dist/Types.d.ts +1 -0
  371. package/dist/Typography-DX7PlgQU.cjs +2 -0
  372. package/dist/Typography-DX7PlgQU.cjs.map +1 -0
  373. package/dist/Typography-PxtFcnJb.js +142 -0
  374. package/dist/Typography-PxtFcnJb.js.map +1 -0
  375. package/dist/UnitChart.cjs +1 -1
  376. package/dist/UnitChart.cjs.map +1 -1
  377. package/dist/UnitChart.d.ts +1 -0
  378. package/dist/UnitChart.js +160 -212
  379. package/dist/UnitChart.js.map +1 -1
  380. package/dist/XAxesLabels-D5X8jngD.cjs +2 -0
  381. package/dist/XAxesLabels-D5X8jngD.cjs.map +1 -0
  382. package/dist/XAxesLabels-DNO0KmjL.js +73 -0
  383. package/dist/XAxesLabels-DNO0KmjL.js.map +1 -0
  384. package/dist/XTicksAndGridLines-B6CELS7q.cjs +2 -0
  385. package/dist/XTicksAndGridLines-B6CELS7q.cjs.map +1 -0
  386. package/dist/XTicksAndGridLines-CObVFSm4.js +38 -0
  387. package/dist/XTicksAndGridLines-CObVFSm4.js.map +1 -0
  388. package/dist/YAxesLabels-DcS85Beo.cjs +2 -0
  389. package/dist/YAxesLabels-DcS85Beo.cjs.map +1 -0
  390. package/dist/YAxesLabels-Dnnng49-.js +70 -0
  391. package/dist/YAxesLabels-Dnnng49-.js.map +1 -0
  392. package/dist/YTicksAndGridLines-4pxTRlRK.cjs +2 -0
  393. package/dist/YTicksAndGridLines-4pxTRlRK.cjs.map +1 -0
  394. package/dist/YTicksAndGridLines-Blepl7XF.js +38 -0
  395. package/dist/YTicksAndGridLines-Blepl7XF.js.map +1 -0
  396. package/dist/{band-BEjh2CHI.js → band-CyHaVft5.js} +3 -3
  397. package/dist/{band-BEjh2CHI.js.map → band-CyHaVft5.js.map} +1 -1
  398. package/dist/{band-CAApY4Pd.cjs → band-VYfcZeJ2.cjs} +2 -2
  399. package/dist/{band-CAApY4Pd.cjs.map → band-VYfcZeJ2.cjs.map} +1 -1
  400. package/dist/checkIfMultiple-Y9iKaV_u.js +950 -0
  401. package/dist/checkIfMultiple-Y9iKaV_u.js.map +1 -0
  402. package/dist/checkIfMultiple-wg6hJLXy.cjs +12 -0
  403. package/dist/checkIfMultiple-wg6hJLXy.cjs.map +1 -0
  404. package/dist/customArea-BUhPiPT6.js +163 -0
  405. package/dist/{customArea-x4L4xwLl.js.map → customArea-BUhPiPT6.js.map} +1 -1
  406. package/dist/customArea-CMF5g-C3.cjs +2 -0
  407. package/dist/{customArea-1G1S78s_.cjs.map → customArea-CMF5g-C3.cjs.map} +1 -1
  408. package/dist/delaunay-C1uAf38t.js.map +1 -1
  409. package/dist/delaunay-rcy0HhZi.cjs.map +1 -1
  410. package/dist/{ensureCompleteData-DlmibgaI.js → ensureCompleteData-DNKEGRiP.js} +12 -32
  411. package/dist/{ensureCompleteData-DlmibgaI.js.map → ensureCompleteData-DNKEGRiP.js.map} +1 -1
  412. package/dist/{ensureCompleteData-DkQYPeDa.cjs → ensureCompleteData-I6nYmT8E.cjs} +2 -2
  413. package/dist/{ensureCompleteData-DkQYPeDa.cjs.map → ensureCompleteData-I6nYmT8E.cjs.map} +1 -1
  414. package/dist/{excelDownload-BOA-lskf.js → excelDownload-BEC1AyQW.js} +12 -2
  415. package/dist/{excelDownload-BOA-lskf.js.map → excelDownload-BEC1AyQW.js.map} +1 -1
  416. package/dist/excelDownload-BQpsCa62.cjs.map +1 -1
  417. package/dist/{fetchAndParseData-sapWbnYk.js → fetchAndParseData-BpqkBPQL.js} +15 -28
  418. package/dist/{fetchAndParseData-sapWbnYk.js.map → fetchAndParseData-BpqkBPQL.js.map} +1 -1
  419. package/dist/fetchAndParseData-l5HGMAEs.cjs +16 -0
  420. package/dist/{fetchAndParseData-Ba-_CgxS.cjs.map → fetchAndParseData-l5HGMAEs.cjs.map} +1 -1
  421. package/dist/fetchAndParseData.cjs +1 -1
  422. package/dist/fetchAndParseData.js +1 -1
  423. package/dist/{filterData-9nEcQ-Jp.js → filterData-DsAiFzKY.js} +3 -5
  424. package/dist/{filterData-9nEcQ-Jp.js.map → filterData-DsAiFzKY.js.map} +1 -1
  425. package/dist/{filterData-BoYadk0l.cjs → filterData-T5DQBE9b.cjs} +2 -2
  426. package/dist/{filterData-BoYadk0l.cjs.map → filterData-T5DQBE9b.cjs.map} +1 -1
  427. package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -1
  428. package/dist/generateRandomString-za3IQGfQ.js.map +1 -1
  429. package/dist/{getCentroidCoordinates-Dfk6IqEG.js → getCentroidCoordinates-D7r34N4w.js} +2 -2
  430. package/dist/{getCentroidCoordinates-Dfk6IqEG.js.map → getCentroidCoordinates-D7r34N4w.js.map} +1 -1
  431. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs → getCentroidCoordinates-Dng1HVjO.cjs} +2 -2
  432. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs.map → getCentroidCoordinates-Dng1HVjO.cjs.map} +1 -1
  433. package/dist/getGraphList-BpEWn1Tk.js +227 -0
  434. package/dist/{getGraphList-DuColTJM.js.map → getGraphList-BpEWn1Tk.js.map} +1 -1
  435. package/dist/getGraphList-gf02xgT2.cjs.map +1 -1
  436. package/dist/getJenks-BbngDoBQ.js.map +1 -1
  437. package/dist/getJenks-GYmdwBqm.cjs.map +1 -1
  438. package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
  439. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
  440. package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
  441. package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
  442. package/dist/getSchema.cjs.map +1 -1
  443. package/dist/getSchema.js +445 -231
  444. package/dist/getSchema.js.map +1 -1
  445. package/dist/getSliderMarks-BmADcPQt.cjs +6 -0
  446. package/dist/getSliderMarks-BmADcPQt.cjs.map +1 -0
  447. package/dist/getSliderMarks-HIDJ0_Cd.js +1033 -0
  448. package/dist/getSliderMarks-HIDJ0_Cd.js.map +1 -0
  449. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js → getTextColorBasedOnBgColor-CDY808zi.js} +11 -3
  450. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js.map → getTextColorBasedOnBgColor-CDY808zi.js.map} +1 -1
  451. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -1
  452. package/dist/{getUniqValue-DiCh_MOD.js → getUniqValue-BKHCm3zE.js} +2 -4
  453. package/dist/{getUniqValue-DiCh_MOD.js.map → getUniqValue-BKHCm3zE.js.map} +1 -1
  454. package/dist/getUniqValue-RViz8tTw.cjs.map +1 -1
  455. package/dist/{imageDownload-Dcci2LEy.js → imageDownload-BX6SILNZ.js} +4 -2
  456. package/dist/{imageDownload-Dcci2LEy.js.map → imageDownload-BX6SILNZ.js.map} +1 -1
  457. package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -1
  458. package/dist/{index-DvVprvy6.js → index-BZQYSqar.js} +7 -7
  459. package/dist/{index-DvVprvy6.js.map → index-BZQYSqar.js.map} +1 -1
  460. package/dist/index-B_sAFsEV.cjs +2 -0
  461. package/dist/{index-BHe3wsWF.cjs.map → index-B_sAFsEV.cjs.map} +1 -1
  462. package/dist/index-BqfRwk1n.js +146 -0
  463. package/dist/index-BqfRwk1n.js.map +1 -0
  464. package/dist/{index-V_JXij1_.js → index-BuwmuDFJ.js} +3 -3
  465. package/dist/{index-V_JXij1_.js.map → index-BuwmuDFJ.js.map} +1 -1
  466. package/dist/index-C6LorfZ-.cjs +2 -0
  467. package/dist/index-C6LorfZ-.cjs.map +1 -0
  468. package/dist/index-CHPV5EwG-CTPQjnHt.cjs +84 -0
  469. package/dist/index-CHPV5EwG-CTPQjnHt.cjs.map +1 -0
  470. package/dist/{index-CHPV5EwG-DBWUSD9b.js → index-CHPV5EwG-Curnpaqc.js} +724 -625
  471. package/dist/index-CHPV5EwG-Curnpaqc.js.map +1 -0
  472. package/dist/index-Ceppbd8C.js +342 -0
  473. package/dist/index-Ceppbd8C.js.map +1 -0
  474. package/dist/index-Cno4Q0YE.cjs +2 -0
  475. package/dist/{index-CQ3e6Ewi.cjs.map → index-Cno4Q0YE.cjs.map} +1 -1
  476. package/dist/{index-Cw8sCyo_-BuI_jX5Z.js → index-Cw8sCyo_-B2hEKjzG.js} +16 -16
  477. package/dist/{index-Cw8sCyo_-BuI_jX5Z.js.map → index-Cw8sCyo_-B2hEKjzG.js.map} +1 -1
  478. package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs → index-Cw8sCyo_-BrHiWiRF.cjs} +2 -2
  479. package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs.map → index-Cw8sCyo_-BrHiWiRF.cjs.map} +1 -1
  480. package/dist/index-CyZ1lmi_.cjs +2 -0
  481. package/dist/{index-D72cOtq7.cjs.map → index-CyZ1lmi_.cjs.map} +1 -1
  482. package/dist/index-D491FEn1.js +184 -0
  483. package/dist/index-D491FEn1.js.map +1 -0
  484. package/dist/index-DG2bgAva.cjs +10 -0
  485. package/dist/index-DG2bgAva.cjs.map +1 -0
  486. package/dist/index-DRXx7m-C.cjs +2 -0
  487. package/dist/index-DRXx7m-C.cjs.map +1 -0
  488. package/dist/index-DxXnJ8Ti.cjs +2 -0
  489. package/dist/index-DxXnJ8Ti.cjs.map +1 -0
  490. package/dist/{index-Dzc_aaI9-BKklH89r.js → index-Dzc_aaI9-Bb7gobH_.js} +2 -2
  491. package/dist/{index-Dzc_aaI9-BKklH89r.js.map → index-Dzc_aaI9-Bb7gobH_.js.map} +1 -1
  492. package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs → index-Dzc_aaI9-BmkfPMyc.cjs} +2 -2
  493. package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs.map → index-Dzc_aaI9-BmkfPMyc.cjs.map} +1 -1
  494. package/dist/{index-9tDEUqOZ.js → index-GEsywGxz.js} +9 -9
  495. package/dist/index-GEsywGxz.js.map +1 -0
  496. package/dist/index-SKgJALZg.js +99 -0
  497. package/dist/{index-Bw_eHBVN.js.map → index-SKgJALZg.js.map} +1 -1
  498. package/dist/index.cjs +1 -1
  499. package/dist/index.d.ts +10 -8
  500. package/dist/index.js +13 -13
  501. package/dist/{init-BhZylTFx.js → init-BJFW6EwE.js} +3 -3
  502. package/dist/{init-BhZylTFx.js.map → init-BJFW6EwE.js.map} +1 -1
  503. package/dist/{linear-BVckp9RD.cjs → linear-BwPAspcq.cjs} +2 -2
  504. package/dist/{linear-BVckp9RD.cjs.map → linear-BwPAspcq.cjs.map} +1 -1
  505. package/dist/{linear-DUdu7l2G.js → linear-BwnDd9KF.js} +3 -3
  506. package/dist/{linear-DUdu7l2G.js.map → linear-BwnDd9KF.js.map} +1 -1
  507. package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -1
  508. package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -1
  509. package/dist/{ordinal-BOeNbyae.cjs → ordinal-CrsysVE-.cjs} +2 -2
  510. package/dist/ordinal-CrsysVE-.cjs.map +1 -0
  511. package/dist/{ordinal-w9Lu4Stb.js → ordinal-P77xw8aL.js} +24 -24
  512. package/dist/ordinal-P77xw8aL.js.map +1 -0
  513. package/dist/{pow-e8zx3AQJ.js → pow-DE4c7dbW.js} +3 -3
  514. package/dist/{pow-e8zx3AQJ.js.map → pow-DE4c7dbW.js.map} +1 -1
  515. package/dist/{pow-B5-jkdHU.cjs → pow-DgrUorRi.cjs} +2 -2
  516. package/dist/{pow-B5-jkdHU.cjs.map → pow-DgrUorRi.cjs.map} +1 -1
  517. package/dist/{proxy-BYIC9BuT.js → proxy-BxkFHwUw.js} +144 -134
  518. package/dist/proxy-BxkFHwUw.js.map +1 -0
  519. package/dist/proxy-BxvUI_9l.cjs +2 -0
  520. package/dist/proxy-BxvUI_9l.cjs.map +1 -0
  521. package/dist/{removeOutliers-DR48e-18.js → removeOutliers-BqW0sPqj.js} +2 -5
  522. package/dist/{removeOutliers-DR48e-18.js.map → removeOutliers-BqW0sPqj.js.map} +1 -1
  523. package/dist/removeOutliers-WELHHqiI.cjs.map +1 -1
  524. package/dist/{sort-DfK1b0F5.js → sort-BIvMlUH1.js} +5 -5
  525. package/dist/{sort-DfK1b0F5.js.map → sort-BIvMlUH1.js.map} +1 -1
  526. package/dist/{string-CRoCZCYa.cjs → string-C-kRh1bQ.cjs} +2 -2
  527. package/dist/{string-CRoCZCYa.cjs.map → string-C-kRh1bQ.cjs.map} +1 -1
  528. package/dist/{string-B8KlVSPX.js → string-C_xJ4Wg4.js} +3 -3
  529. package/dist/{string-B8KlVSPX.js.map → string-C_xJ4Wg4.js.map} +1 -1
  530. package/dist/string2HTML-CPGr_I5E.cjs +3 -0
  531. package/dist/{string2HTML-z7CwHXcx.cjs.map → string2HTML-CPGr_I5E.cjs.map} +1 -1
  532. package/dist/{string2HTML-oFCROsus.js → string2HTML-DhG75NqA.js} +15 -9
  533. package/dist/{string2HTML-oFCROsus.js.map → string2HTML-DhG75NqA.js.map} +1 -1
  534. package/dist/style.css +1 -1
  535. package/dist/{svgDownload-C2-E3yf2.js → svgDownload-BAoarWNt.js} +4 -2
  536. package/dist/{svgDownload-C2-E3yf2.js.map → svgDownload-BAoarWNt.js.map} +1 -1
  537. package/dist/svgDownload-D9zEGjTF.cjs.map +1 -1
  538. package/dist/{threshold-DFfqcDMa.js → threshold-Bgr20hik.js} +2 -2
  539. package/dist/{threshold-DFfqcDMa.js.map → threshold-Bgr20hik.js.map} +1 -1
  540. package/dist/{time-Byw_jYQ7.cjs → time-CZd5YLSP.cjs} +2 -2
  541. package/dist/{time-Byw_jYQ7.cjs.map → time-CZd5YLSP.cjs.map} +1 -1
  542. package/dist/{time-BzJP5SPC.js → time-DCCfQk3V.js} +3 -3
  543. package/dist/{time-BzJP5SPC.js.map → time-DCCfQk3V.js.map} +1 -1
  544. package/dist/transformData.cjs +1 -1
  545. package/dist/transformData.js +3 -3
  546. package/dist/transformDataForAggregation-CE3bAlHU.js +585 -0
  547. package/dist/{transformDataForAggregation-sBpdlX8n.js.map → transformDataForAggregation-CE3bAlHU.js.map} +1 -1
  548. package/dist/transformDataForAggregation-KXGm6flX.cjs.map +1 -1
  549. package/dist/transformDataForGraphFromFile-BExxcITV.js +14 -0
  550. package/dist/{transformDataForGraphFromFile-ComYvzuz.js.map → transformDataForGraphFromFile-BExxcITV.js.map} +1 -1
  551. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs → transformDataForGraphFromFile-DaJHQCsL.cjs} +2 -2
  552. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs.map → transformDataForGraphFromFile-DaJHQCsL.cjs.map} +1 -1
  553. package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -1
  554. package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -1
  555. package/dist/uniqBy-BHy4I8PK.js.map +1 -1
  556. package/dist/uniqBy-O05lp2S5.cjs.map +1 -1
  557. package/dist/{use-in-view-DR-UTB96.js → use-in-view-Cxa7y1TH.js} +2 -2
  558. package/dist/use-in-view-Cxa7y1TH.js.map +1 -0
  559. package/dist/use-in-view-QcfiW0w3.cjs +2 -0
  560. package/dist/use-in-view-QcfiW0w3.cjs.map +1 -0
  561. package/dist/utils.cjs +1 -1
  562. package/dist/utils.js +8 -8
  563. package/dist/validateSchema.cjs.map +1 -1
  564. package/dist/validateSchema.js +33 -29
  565. package/dist/validateSchema.js.map +1 -1
  566. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs → x-BBpi7a_7-mTo40uId.cjs} +2 -2
  567. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs.map → x-BBpi7a_7-mTo40uId.cjs.map} +1 -1
  568. package/dist/{y-D0sAaVii.js → y-BqfogMAB.js} +3 -3
  569. package/dist/{y-D0sAaVii.js.map → y-BqfogMAB.js.map} +1 -1
  570. package/dist/{zoom-QipiAl5W.js → zoom-C9MFjAaV.js} +5 -5
  571. package/dist/{zoom-QipiAl5W.js.map → zoom-C9MFjAaV.js.map} +1 -1
  572. package/dist/zoom-DPw8bba-.cjs +2 -0
  573. package/dist/{zoom-BiMNsz72.cjs.map → zoom-DPw8bba-.cjs.map} +1 -1
  574. package/package.json +7 -6
  575. package/dist/Axis-4gUOL8B7.js +0 -43
  576. package/dist/Axis-4gUOL8B7.js.map +0 -1
  577. package/dist/Axis-CkNn1wit.cjs +0 -2
  578. package/dist/Axis-CkNn1wit.cjs.map +0 -1
  579. package/dist/AxisTitle-Wkz-xeQL.cjs +0 -2
  580. package/dist/AxisTitle-Wkz-xeQL.cjs.map +0 -1
  581. package/dist/AxisTitle-v6_xcXZ-.js +0 -20
  582. package/dist/AxisTitle-v6_xcXZ-.js.map +0 -1
  583. package/dist/DropdownSelect-6kjXM6oW.js.map +0 -1
  584. package/dist/DropdownSelect-vt8yiB-g.cjs +0 -29
  585. package/dist/DropdownSelect-vt8yiB-g.cjs.map +0 -1
  586. package/dist/EmptyState-36lXXyui.js +0 -22
  587. package/dist/EmptyState-B8IpKGcL.cjs +0 -2
  588. package/dist/GraphEl-2IiUDxjR.js.map +0 -1
  589. package/dist/GraphEl-qrlfGPe3.cjs +0 -2
  590. package/dist/GraphEl-qrlfGPe3.cjs.map +0 -1
  591. package/dist/Modal-Cg8daIlV.js +0 -1030
  592. package/dist/Modal-Cg8daIlV.js.map +0 -1
  593. package/dist/Modal-CuuJdWkD.cjs +0 -46
  594. package/dist/Modal-CuuJdWkD.cjs.map +0 -1
  595. package/dist/ReferenceLine-CPMaAX0r.js +0 -128
  596. package/dist/ReferenceLine-CPMaAX0r.js.map +0 -1
  597. package/dist/ReferenceLine-D04j-zeV.cjs +0 -2
  598. package/dist/ReferenceLine-D04j-zeV.cjs.map +0 -1
  599. package/dist/RegressionLine-CW7iViH2.js +0 -49
  600. package/dist/RegressionLine-CW7iViH2.js.map +0 -1
  601. package/dist/RegressionLine-D-49RaHa.cjs +0 -2
  602. package/dist/RegressionLine-D-49RaHa.cjs.map +0 -1
  603. package/dist/Spinner-Bpz70q_g.js +0 -30
  604. package/dist/Spinner-Bpz70q_g.js.map +0 -1
  605. package/dist/Spinner-C6wLp85s.cjs +0 -2
  606. package/dist/Spinner-C6wLp85s.cjs.map +0 -1
  607. package/dist/Tooltip-6LIdPQGC.js +0 -46
  608. package/dist/Tooltip-6LIdPQGC.js.map +0 -1
  609. package/dist/Tooltip-Cpv0QohJ.cjs +0 -2
  610. package/dist/Tooltip-Cpv0QohJ.cjs.map +0 -1
  611. package/dist/Typography-BDULiwlF.cjs +0 -2
  612. package/dist/Typography-BDULiwlF.cjs.map +0 -1
  613. package/dist/Typography-LmZ9LEpe.js +0 -140
  614. package/dist/Typography-LmZ9LEpe.js.map +0 -1
  615. package/dist/XAxesLabels-CLZnBgSr.cjs +0 -2
  616. package/dist/XAxesLabels-CLZnBgSr.cjs.map +0 -1
  617. package/dist/XAxesLabels-SOSmso5J.js +0 -57
  618. package/dist/XAxesLabels-SOSmso5J.js.map +0 -1
  619. package/dist/XTicksAndGridLines-DuydSnZ_.js +0 -56
  620. package/dist/XTicksAndGridLines-DuydSnZ_.js.map +0 -1
  621. package/dist/XTicksAndGridLines-RKy7BVCO.cjs +0 -2
  622. package/dist/XTicksAndGridLines-RKy7BVCO.cjs.map +0 -1
  623. package/dist/YAxesLabels-DlDyLvhi.js +0 -52
  624. package/dist/YAxesLabels-DlDyLvhi.js.map +0 -1
  625. package/dist/YAxesLabels-Dqd259-t.cjs +0 -2
  626. package/dist/YAxesLabels-Dqd259-t.cjs.map +0 -1
  627. package/dist/YTicksAndGridLines-7t4MKtGw.js +0 -56
  628. package/dist/YTicksAndGridLines-7t4MKtGw.js.map +0 -1
  629. package/dist/YTicksAndGridLines-qGpRo_t1.cjs +0 -2
  630. package/dist/YTicksAndGridLines-qGpRo_t1.cjs.map +0 -1
  631. package/dist/checkIfMultiple-Dko_cBvE.cjs +0 -12
  632. package/dist/checkIfMultiple-Dko_cBvE.cjs.map +0 -1
  633. package/dist/checkIfMultiple-u2SmbiCf.js +0 -912
  634. package/dist/checkIfMultiple-u2SmbiCf.js.map +0 -1
  635. package/dist/customArea-1G1S78s_.cjs +0 -2
  636. package/dist/customArea-x4L4xwLl.js +0 -175
  637. package/dist/fetchAndParseData-Ba-_CgxS.cjs +0 -16
  638. package/dist/getGraphList-DuColTJM.js +0 -265
  639. package/dist/getSliderMarks-CUxPy36E.cjs +0 -6
  640. package/dist/getSliderMarks-CUxPy36E.cjs.map +0 -1
  641. package/dist/getSliderMarks-_pYOWEtO.js +0 -1023
  642. package/dist/getSliderMarks-_pYOWEtO.js.map +0 -1
  643. package/dist/index-9tDEUqOZ.js.map +0 -1
  644. package/dist/index-BHe3wsWF.cjs +0 -2
  645. package/dist/index-Bw_eHBVN.js +0 -77
  646. package/dist/index-C0bpbS4F.cjs +0 -2
  647. package/dist/index-C0bpbS4F.cjs.map +0 -1
  648. package/dist/index-CE9pmfxt.js +0 -430
  649. package/dist/index-CE9pmfxt.js.map +0 -1
  650. package/dist/index-CEJwW3lL.cjs +0 -2
  651. package/dist/index-CEJwW3lL.cjs.map +0 -1
  652. package/dist/index-CHPV5EwG-DBWUSD9b.js.map +0 -1
  653. package/dist/index-CHPV5EwG-DjM48pIC.cjs +0 -44
  654. package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +0 -1
  655. package/dist/index-CQ3e6Ewi.cjs +0 -2
  656. package/dist/index-Cm8NIdOO.cjs +0 -10
  657. package/dist/index-Cm8NIdOO.cjs.map +0 -1
  658. package/dist/index-CoZbeNM9.cjs +0 -2
  659. package/dist/index-CoZbeNM9.cjs.map +0 -1
  660. package/dist/index-Cwgh7i7X.js +0 -122
  661. package/dist/index-Cwgh7i7X.js.map +0 -1
  662. package/dist/index-D72cOtq7.cjs +0 -2
  663. package/dist/index-zZjQEHlm.js +0 -342
  664. package/dist/index-zZjQEHlm.js.map +0 -1
  665. package/dist/ordinal-BOeNbyae.cjs.map +0 -1
  666. package/dist/ordinal-w9Lu4Stb.js.map +0 -1
  667. package/dist/proxy-BYIC9BuT.js.map +0 -1
  668. package/dist/proxy-CKadx4lC.cjs +0 -2
  669. package/dist/proxy-CKadx4lC.cjs.map +0 -1
  670. package/dist/string2HTML-z7CwHXcx.cjs +0 -3
  671. package/dist/transformDataForAggregation-sBpdlX8n.js +0 -755
  672. package/dist/transformDataForGraphFromFile-ComYvzuz.js +0 -24
  673. package/dist/use-in-view-CEwlc_dd.cjs +0 -2
  674. package/dist/use-in-view-CEwlc_dd.cjs.map +0 -1
  675. package/dist/use-in-view-DR-UTB96.js.map +0 -1
  676. package/dist/zoom-BiMNsz72.cjs +0 -2
@@ -1,740 +1,486 @@
1
- import { j as e, m as we } from "./index-CHPV5EwG-DBWUSD9b.js";
2
- import { useState as v, useRef as oe, useEffect as pe } from "react";
3
- import { g as $e, x as Ne } from "./getSliderMarks-_pYOWEtO.js";
4
- import { y as Ce } from "./Spinner-Bpz70q_g.js";
5
- import { p as De, f as Me } from "./parse-DlCRUFh_.js";
6
- import { i as Se } from "./index-Bwrro8-q.js";
7
- import { z as Oe, t as Ee, g as Pe, a as Ie, b as Le, c as ze, d as We } from "./zoom-QipiAl5W.js";
8
- import { G as Te } from "./Modal-Cg8daIlV.js";
9
- import { u as je } from "./Typography-LmZ9LEpe.js";
10
- import { t as Be } from "./index-9tDEUqOZ.js";
11
- import { n as Ae } from "./numberFormattingFunction-14YCbkN2.js";
12
- import { T as Ve } from "./Tooltip-6LIdPQGC.js";
13
- import { s as Fe } from "./string2HTML-oFCROsus.js";
14
- import { c as He } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
- import { X as qe, P as _e, f as Ue } from "./index-zZjQEHlm.js";
16
- import { o as Ge } from "./ordinal-w9Lu4Stb.js";
17
- import { t as Xe } from "./threshold-DFfqcDMa.js";
18
- import { s as ke } from "./select-DKy99ogv.js";
19
- import { u as Ye } from "./use-in-view-DR-UTB96.js";
20
- import { m as me } from "./proxy-BYIC9BuT.js";
21
- import { A as Re } from "./index-Cwgh7i7X.js";
22
- import { GraphFooter as Je } from "./GraphFooter.js";
23
- import { GraphHeader as Ke } from "./GraphHeader.js";
24
- import { Colors as de } from "./Colors.js";
25
- import { f as Ze } from "./fetchAndParseData-sapWbnYk.js";
26
- import { g as Qe } from "./getUniqValue-DiCh_MOD.js";
27
- import { g as et } from "./getJenks-BbngDoBQ.js";
28
- import { u as tt } from "./uniqBy-BHy4I8PK.js";
29
- import { s as rt } from "./sort-DfK1b0F5.js";
30
- import { c as at } from "./init-BhZylTFx.js";
31
- function ot(he) {
1
+ import { j as t, m as ct, c as dt } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useState as S, useRef as Me, useEffect as Re, useEffectEvent as mt } from "react";
3
+ import { g as pt, N as ht } from "./getSliderMarks-HIDJ0_Cd.js";
4
+ import { w as ut } from "./Spinner-D7rnnwnA.js";
5
+ import { p as gt, f as ft } from "./parse-DlCRUFh_.js";
6
+ import { i as yt } from "./index-Bwrro8-q.js";
7
+ import { z as xt, t as vt, g as bt, a as kt, b as jt, c as wt, d as $t } from "./zoom-C9MFjAaV.js";
8
+ import { l as Ct } from "./Modal-DGcuAHyK.js";
9
+ import { j as it } from "./Typography-PxtFcnJb.js";
10
+ import { t as Nt } from "./index-GEsywGxz.js";
11
+ import { n as Dt } from "./numberFormattingFunction-14YCbkN2.js";
12
+ import { T as St } from "./Tooltip-CwWUegPB.js";
13
+ import { s as Mt } from "./string2HTML-DhG75NqA.js";
14
+ import { c as Et } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
+ import { X as Ot, P as Pt, e as It } from "./index-D491FEn1.js";
16
+ import { o as Lt } from "./ordinal-P77xw8aL.js";
17
+ import { t as zt } from "./threshold-Bgr20hik.js";
18
+ import { s as rt } from "./select-DKy99ogv.js";
19
+ import { u as _t } from "./use-in-view-Cxa7y1TH.js";
20
+ import { m as Ue } from "./proxy-BxkFHwUw.js";
21
+ import { A as Wt } from "./index-BqfRwk1n.js";
22
+ import { GraphFooter as Bt } from "./GraphFooter.js";
23
+ import { GraphHeader as Tt } from "./GraphHeader.js";
24
+ import { Colors as Xe } from "./Colors.js";
25
+ import { f as At } from "./fetchAndParseData-BpqkBPQL.js";
26
+ import { g as Ft } from "./getUniqValue-BKHCm3zE.js";
27
+ import { g as Vt } from "./getJenks-BbngDoBQ.js";
28
+ import { u as Ht } from "./uniqBy-BHy4I8PK.js";
29
+ import { a as qt, G as Gt } from "./GraphContainer-CRqzdKu2.js";
30
+ import { s as Ut } from "./sort-BIvMlUH1.js";
31
+ import { a as Xt } from "./init-BJFW6EwE.js";
32
+ function Rt(h) {
32
33
  const {
33
- data: b,
34
- colorDomain: g,
35
- colors: c,
36
- mapData: x,
37
- colorLegendTitle: F,
38
- categorical: S,
39
- height: h,
40
- width: s,
41
- scale: ie,
42
- centerPoint: z,
43
- tooltip: ne,
44
- mapBorderWidth: O,
45
- mapBorderColor: H,
46
- mapNoDataColor: K,
47
- onSeriesMouseOver: Z,
48
- showColorScale: ge,
49
- zoomScaleExtend: ue,
50
- zoomTranslateExtend: E,
51
- highlightedIds: q,
52
- onSeriesMouseClick: y,
53
- mapProperty: _,
54
- resetSelectionOnDoubleClick: fe,
55
- detailsOnClick: C,
56
- styles: ye,
57
- classNames: xe,
58
- mapProjection: U,
59
- zoomInteraction: W,
60
- animate: k,
61
- dimmedOpacity: G,
34
+ data: e,
35
+ colorDomain: c,
36
+ colors: d,
37
+ mapData: $,
38
+ colorLegendTitle: M,
39
+ categorical: A,
40
+ height: k,
41
+ width: g,
42
+ scale: v,
43
+ centerPoint: F,
44
+ tooltip: re,
45
+ mapBorderWidth: V,
46
+ mapBorderColor: U,
47
+ mapNoDataColor: ae,
48
+ onSeriesMouseOver: ie,
49
+ showColorScale: ve,
50
+ zoomScaleExtend: Ee,
51
+ zoomTranslateExtend: Oe,
52
+ highlightedIds: X,
53
+ onSeriesMouseClick: ne,
54
+ mapProperty: j,
55
+ resetSelectionOnDoubleClick: be,
56
+ detailsOnClick: E,
57
+ styles: Pe,
58
+ classNames: ke,
59
+ mapProjection: I,
60
+ zoomInteraction: L,
61
+ animate: N,
62
+ dimmedOpacity: z,
62
63
  customLayers: se,
63
- collapseColorScaleByDefault: Q
64
- } = he, [j, P] = v(void 0), T = oe(null), [w, X] = v(
65
- Q === void 0 ? !(s < 680) : !Q
66
- ), [B, ee] = v(void 0), [Y, $] = v(void 0), [D, te] = v(void 0), [le, R] = v(void 0), A = oe(null), re = Ye(A, {
67
- once: k.once,
68
- amount: k.amount
69
- }), u = oe(null), ve = S ? Ge().domain(g).range(c) : Xe().domain(g).range(c);
70
- pe(() => {
71
- const r = ke(u.current), l = ke(A.current), d = (o) => {
72
- if (W === "noZoom") return !1;
73
- if (W === "button") return !o.type.includes("wheel");
74
- const n = o.type === "wheel", t = o.type.startsWith("touch"), a = o.type === "mousedown" || o.type === "mousemove";
75
- return t ? !0 : n ? W === "scroll" ? !0 : o.ctrlKey : a && !o.button && !o.ctrlKey;
76
- }, i = Oe().scaleExtent(ue).translateExtent(
77
- E || [
78
- [-20, -20],
79
- [s + 20, h + 20]
80
- ]
81
- ).filter(d).on("zoom", ({ transform: o }) => {
82
- r.attr("transform", o);
64
+ collapseColorScaleByDefault: je
65
+ } = h, [O, _] = S(void 0), le = Me(null), [Ie, we] = S(je === void 0 ? !(g < 680) : !je), [H, R] = S(void 0), [Y, J] = S(void 0), [u, p] = S(void 0), [ce, de] = S(void 0), q = Me(null), me = _t(q, {
66
+ once: N.once,
67
+ amount: N.amount
68
+ }), K = Me(null), Le = A ? Lt().domain(c).range(d) : zt().domain(c).range(d);
69
+ Re(() => {
70
+ const o = rt(K.current), s = rt(q.current), f = (r) => {
71
+ if (L === "noZoom") return !1;
72
+ if (L === "button") return !r.type.includes("wheel");
73
+ const n = r.type === "wheel", l = r.type.startsWith("touch"), i = r.type === "mousedown" || r.type === "mousemove";
74
+ return l ? !0 : n ? L === "scroll" ? !0 : r.ctrlKey : i && !r.button && !r.ctrlKey;
75
+ }, a = xt().scaleExtent(Ee).translateExtent(Oe || [[-20, -20], [g + 20, k + 20]]).filter(f).on("zoom", ({
76
+ transform: r
77
+ }) => {
78
+ o.attr("transform", r);
83
79
  });
84
- l.call(i), T.current = i;
85
- }, [h, s, W]);
86
- const f = Ee(x), I = Be(x), ae = f[2] - f[0], ce = f[3] - f[1], V = s * 190 / 960 * 360 / ae, be = h * 190 / 678 * 180 / ce, m = ie * Math.min(V, be), N = U === "mercator" ? Pe().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "equalEarth" ? Ie().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "naturalEarth" ? Le().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "orthographic" ? ze().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : We().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m), J = (r) => {
87
- if (!A.current || !T.current) return;
88
- ke(A.current).call(T.current.scaleBy, r === "in" ? 1.2 : 1 / 1.2);
80
+ s.call(a), le.current = a;
81
+ }, [k, g, L]);
82
+ const G = vt($), w = Nt($), pe = G[2] - G[0], W = G[3] - G[1], $e = g * 190 / 960 * 360 / pe, Ce = k * 190 / 678 * 180 / W, B = v * Math.min($e, Ce), P = I === "mercator" ? bt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : I === "equalEarth" ? kt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : I === "naturalEarth" ? jt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : I === "orthographic" ? wt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : $t().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B), he = (o) => {
83
+ if (!q.current || !le.current) return;
84
+ rt(q.current).call(le.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
89
85
  };
90
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
91
- /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
92
- /* @__PURE__ */ e.jsx(
93
- me.svg,
94
- {
95
- width: `${s}px`,
96
- height: `${h}px`,
97
- viewBox: `0 0 ${s} ${h}`,
98
- ref: A,
99
- direction: "ltr",
100
- children: /* @__PURE__ */ e.jsxs("g", { ref: u, children: [
101
- se.filter((r) => r.position === "before").map((r) => r.layer),
86
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
87
+ /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
88
+ /* @__PURE__ */ t.jsx(Ue.svg, { width: `${g}px`, height: `${k}px`, viewBox: `0 0 ${g} ${k}`, ref: q, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: K, children: [
89
+ se.filter((o) => o.position === "before").map((o) => o.layer),
90
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
91
+ $.features.map((o, s) => e.findIndex((a) => a.id === o.properties[j]) !== -1 ? null : /* @__PURE__ */ t.jsx("g", { opacity: O ? z : X.length !== 0 ? X.indexOf(o.properties[j]) !== -1 ? 1 : z : 1, children: o.geometry.type === "MultiPolygon" ? (
92
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
93
+ o.geometry.coordinates.map((a, r) => {
94
+ let n = "";
95
+ return a.forEach((l) => {
96
+ let i = " M";
97
+ l.forEach((m, D) => {
98
+ const C = P([m[0], m[1]]);
99
+ D !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
100
+ }), n += i;
101
+ }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
102
+ stroke: U,
103
+ strokeWidth: V,
104
+ fill: ae
105
+ } }, r);
106
+ })
107
+ ) : (
108
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
109
+ o.geometry.coordinates.map((a, r) => {
110
+ let n = "M";
111
+ return a.forEach((l, i) => {
112
+ const m = P([l[0], l[1]]);
113
+ i !== a.length - 1 ? n = `${n}${m[0]} ${m[1]}L` : n = `${n}${m[0]} ${m[1]}`;
114
+ }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
115
+ stroke: U,
116
+ strokeWidth: V,
117
+ fill: ae
118
+ } }, r);
119
+ })
120
+ ) }, s)),
121
+ /* @__PURE__ */ t.jsx(Wt, { children: e.map((o) => {
122
+ const s = $.features.findIndex(
102
123
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
- x.features.map((r, l) => b.findIndex((i) => i.id === r.properties[_]) !== -1 ? null : /* @__PURE__ */ e.jsx(
104
- "g",
105
- {
106
- opacity: j ? G : q.length !== 0 ? q.indexOf(r.properties[_]) !== -1 ? 1 : G : 1,
107
- children: r.geometry.type === "MultiPolygon" ? (
108
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
109
- r.geometry.coordinates.map((i, o) => {
110
- let n = "";
111
- return i.forEach((t) => {
112
- let a = " M";
113
- t.forEach((p, L) => {
114
- const M = N([p[0], p[1]]);
115
- L !== t.length - 1 ? a = `${a}${M[0]} ${M[1]}L` : a = `${a}${M[0]} ${M[1]}`;
116
- }), n += a;
117
- }), /* @__PURE__ */ e.jsx(
118
- "path",
119
- {
120
- d: n,
121
- style: {
122
- stroke: H,
123
- strokeWidth: O,
124
- fill: K
125
- }
126
- },
127
- o
128
- );
129
- })
130
- ) : (
131
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
132
- r.geometry.coordinates.map((i, o) => {
133
- let n = "M";
134
- return i.forEach((t, a) => {
135
- const p = N([t[0], t[1]]);
136
- a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
137
- }), /* @__PURE__ */ e.jsx(
138
- "path",
139
- {
140
- d: n,
141
- style: {
142
- stroke: H,
143
- strokeWidth: O,
144
- fill: K
145
- }
146
- },
147
- o
148
- );
149
- })
150
- )
151
- },
152
- l
153
- )),
154
- /* @__PURE__ */ e.jsx(Re, { children: b.map((r) => {
155
- const l = x.features.findIndex(
156
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
157
- (i) => r.id === i.properties[_]
158
- ), d = He(r.x) ? K : (
159
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
160
- ve(r.x)
161
- );
162
- return /* @__PURE__ */ e.jsx(
163
- me.g,
164
- {
165
- variants: {
166
- initial: { opacity: 0 },
167
- whileInView: {
168
- opacity: j ? j === d ? 1 : G : q.length !== 0 ? q.indexOf(r.id) !== -1 ? 1 : G : 1,
169
- transition: { duration: k.duration }
170
- }
171
- },
172
- initial: "initial",
173
- animate: re ? "whileInView" : "initial",
174
- exit: { opacity: 0, transition: { duration: k.duration } },
175
- onMouseEnter: (i) => {
176
- $(r), R(i.clientY), te(i.clientX), Z?.(r);
177
- },
178
- onMouseMove: (i) => {
179
- $(r), R(i.clientY), te(i.clientX);
180
- },
181
- onMouseLeave: () => {
182
- $(void 0), te(void 0), R(void 0), Z?.(void 0);
183
- },
184
- onClick: () => {
185
- (y || C) && (Se(B, r) && fe ? (ee(void 0), y?.(void 0)) : (ee(r), y?.(r)));
186
- },
187
- children: l === -1 ? null : x.features[l].geometry.type === "MultiPolygon" ? x.features[l].geometry.coordinates.map(
188
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
189
- (i, o) => {
190
- let n = "";
191
- return i.forEach((t) => {
192
- let a = " M";
193
- t.forEach((p, L) => {
194
- const M = N([p[0], p[1]]);
195
- L !== t.length - 1 ? a = `${a}${M[0]} ${M[1]}L` : a = `${a}${M[0]} ${M[1]}`;
196
- }), n += a;
197
- }), /* @__PURE__ */ e.jsx(
198
- me.path,
199
- {
200
- d: n,
201
- variants: {
202
- initial: { fill: d, opacity: 0 },
203
- whileInView: {
204
- fill: d,
205
- opacity: 1,
206
- transition: { duration: k.duration }
207
- }
208
- },
209
- initial: "initial",
210
- animate: re ? "whileInView" : "initial",
211
- exit: { opacity: 0, transition: { duration: k.duration } },
212
- style: {
213
- stroke: H,
214
- strokeWidth: O
215
- }
216
- },
217
- `${r.id}-${o}`
218
- );
219
- }
220
- ) : x.features[l].geometry.coordinates.map(
221
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
222
- (i, o) => {
223
- let n = "M";
224
- return i.forEach((t, a) => {
225
- const p = N([t[0], t[1]]);
226
- a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
227
- }), /* @__PURE__ */ e.jsx(
228
- me.path,
229
- {
230
- d: n,
231
- variants: {
232
- initial: { fill: d, opacity: 0 },
233
- whileInView: {
234
- fill: d,
235
- opacity: 1,
236
- transition: { duration: k.duration }
237
- }
238
- },
239
- initial: "initial",
240
- animate: re ? "whileInView" : "initial",
241
- exit: { opacity: 0, transition: { duration: k.duration } },
242
- style: {
243
- stroke: H,
244
- strokeWidth: O
245
- }
246
- },
247
- `${r.id}-${o}`
248
- );
249
- }
250
- )
251
- },
252
- r.id
253
- );
254
- }) }),
255
- Y ? x.features.filter(
256
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
257
- (r) => r.properties[_] === Y.id
258
- ).map((r, l) => /* @__PURE__ */ e.jsx("g", { children: r.geometry.type === "MultiPolygon" ? (
259
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
260
- r.geometry.coordinates.map((d, i) => {
261
- let o = "";
262
- return d.forEach((n) => {
263
- let t = " M";
264
- n.forEach((a, p) => {
265
- const L = N([a[0], a[1]]);
266
- p !== n.length - 1 ? t = `${t}${L[0]} ${L[1]}L` : t = `${t}${L[0]} ${L[1]}`;
267
- }), o += t;
268
- }), /* @__PURE__ */ e.jsx(
269
- "path",
270
- {
271
- d: o,
272
- className: "stroke-primary-gray-700 dark:stroke-primary-gray-300",
273
- style: {
274
- fill: "none",
275
- fillOpacity: 0,
276
- strokeWidth: "0.5"
277
- }
278
- },
279
- i
280
- );
281
- })
282
- ) : (
283
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
284
- r.geometry.coordinates.map((d, i) => {
285
- let o = "M";
286
- return d.forEach((n, t) => {
287
- const a = N([n[0], n[1]]);
288
- t !== d.length - 1 ? o = `${o}${a[0]} ${a[1]}L` : o = `${o}${a[0]} ${a[1]}`;
289
- }), /* @__PURE__ */ e.jsx(
290
- "path",
291
- {
292
- d: o,
293
- className: "stroke-primary-gray-700 dark:stroke-primary-gray-300",
294
- style: {
295
- fill: "none",
296
- fillOpacity: 0,
297
- strokeWidth: "0.5"
298
- }
299
- },
300
- i
301
- );
302
- })
303
- ) }, l)) : null,
304
- se.filter((r) => r.position === "after").map((r) => r.layer)
305
- ] })
306
- }
307
- ),
308
- ge === !1 ? null : /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 bottom-4 map-color-legend", children: w ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
309
- /* @__PURE__ */ e.jsx(
310
- "div",
311
- {
312
- className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]",
313
- onClick: () => {
314
- X(!1);
315
- },
316
- children: /* @__PURE__ */ e.jsx(qe, {})
317
- }
318
- ),
319
- /* @__PURE__ */ e.jsxs(
320
- "div",
321
- {
322
- className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]",
323
- style: {
324
- width: S ? void 0 : "340px"
124
+ (a) => o.id === a.properties[j]
125
+ ), f = Et(o.x) ? ae : (
126
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
+ Le(o.x)
128
+ );
129
+ return /* @__PURE__ */ t.jsx(Ue.g, { variants: {
130
+ initial: {
131
+ opacity: 0
325
132
  },
326
- children: [
327
- F && F !== "" ? /* @__PURE__ */ e.jsx(
328
- je,
329
- {
330
- size: "xs",
331
- marginBottom: "xs",
332
- className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300",
333
- style: {
334
- display: "-webkit-box",
335
- WebkitLineClamp: "1",
336
- WebkitBoxOrient: "vertical"
337
- },
338
- children: F
133
+ whileInView: {
134
+ opacity: O ? O === f ? 1 : z : X.length !== 0 ? X.indexOf(o.id) !== -1 ? 1 : z : 1,
135
+ transition: {
136
+ duration: N.duration
137
+ }
138
+ }
139
+ }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
140
+ opacity: 0,
141
+ transition: {
142
+ duration: N.duration
143
+ }
144
+ }, onMouseEnter: (a) => {
145
+ J(o), de(a.clientY), p(a.clientX), ie?.(o);
146
+ }, onMouseMove: (a) => {
147
+ J(o), de(a.clientY), p(a.clientX);
148
+ }, onMouseLeave: () => {
149
+ J(void 0), p(void 0), de(void 0), ie?.(void 0);
150
+ }, onClick: () => {
151
+ (ne || E) && (yt(H, o) && be ? (R(void 0), ne?.(void 0)) : (R(o), ne?.(o)));
152
+ }, children: s === -1 ? null : $.features[s].geometry.type === "MultiPolygon" ? $.features[s].geometry.coordinates.map(
153
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
+ (a, r) => {
155
+ let n = "";
156
+ return a.forEach((l) => {
157
+ let i = " M";
158
+ l.forEach((m, D) => {
159
+ const C = P([m[0], m[1]]);
160
+ D !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
161
+ }), n += i;
162
+ }), /* @__PURE__ */ t.jsx(Ue.path, { d: n, variants: {
163
+ initial: {
164
+ fill: f,
165
+ opacity: 0
166
+ },
167
+ whileInView: {
168
+ fill: f,
169
+ opacity: 1,
170
+ transition: {
171
+ duration: N.duration
172
+ }
173
+ }
174
+ }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
175
+ opacity: 0,
176
+ transition: {
177
+ duration: N.duration
339
178
  }
340
- ) : null,
341
- S ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: g.map((r, l) => /* @__PURE__ */ e.jsxs(
342
- "div",
343
- {
344
- className: "flex gap-2 items-center",
345
- onMouseOver: () => {
346
- P(c[l % c.length]);
347
- },
348
- onMouseLeave: () => {
349
- P(void 0);
350
- },
351
- children: [
352
- /* @__PURE__ */ e.jsx(
353
- "div",
354
- {
355
- className: "w-2 h-2 rounded-full",
356
- style: { backgroundColor: c[l % c.length] }
357
- }
358
- ),
359
- /* @__PURE__ */ e.jsx(je, { size: "sm", marginBottom: "none", leading: "none", children: r })
360
- ]
179
+ }, style: {
180
+ stroke: U,
181
+ strokeWidth: V
182
+ } }, `${o.id}-${r}`);
183
+ }
184
+ ) : $.features[s].geometry.coordinates.map(
185
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
186
+ (a, r) => {
187
+ let n = "M";
188
+ return a.forEach((l, i) => {
189
+ const m = P([l[0], l[1]]);
190
+ i !== a.length - 1 ? n = `${n}${m[0]} ${m[1]}L` : n = `${n}${m[0]} ${m[1]}`;
191
+ }), /* @__PURE__ */ t.jsx(Ue.path, { d: n, variants: {
192
+ initial: {
193
+ fill: f,
194
+ opacity: 0
361
195
  },
362
- l
363
- )) }) : /* @__PURE__ */ e.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ e.jsxs("g", { children: [
364
- g.map((r, l) => /* @__PURE__ */ e.jsxs(
365
- "g",
366
- {
367
- onMouseOver: () => {
368
- P(c[l]);
369
- },
370
- onMouseLeave: () => {
371
- P(void 0);
372
- },
373
- className: "cursor-pointer",
374
- children: [
375
- /* @__PURE__ */ e.jsx(
376
- "rect",
377
- {
378
- x: l * 320 / c.length + 1,
379
- y: 1,
380
- width: 320 / c.length - 2,
381
- height: 8,
382
- className: j === c[l] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "",
383
- style: {
384
- fill: c[l],
385
- ...j === c[l] ? {} : { stroke: c[l] }
386
- }
387
- }
388
- ),
389
- /* @__PURE__ */ e.jsx(
390
- "text",
391
- {
392
- x: (l + 1) * 320 / c.length,
393
- y: 25,
394
- className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
395
- style: { textAnchor: "middle" },
396
- children: Ae(r, "NA")
397
- }
398
- )
399
- ]
400
- },
401
- l
402
- )),
403
- /* @__PURE__ */ e.jsx("g", { children: /* @__PURE__ */ e.jsx(
404
- "rect",
405
- {
406
- onMouseOver: () => {
407
- P(c[g.length]);
408
- },
409
- onMouseLeave: () => {
410
- P(void 0);
411
- },
412
- x: g.length * 320 / c.length + 1,
413
- y: 1,
414
- width: 320 / c.length - 2,
415
- height: 8,
416
- className: `cursor-pointer ${j === c[g.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`,
417
- style: {
418
- fill: c[g.length],
419
- ...j === c[g.length] ? {} : { stroke: c[g.length] }
420
- }
196
+ whileInView: {
197
+ fill: f,
198
+ opacity: 1,
199
+ transition: {
200
+ duration: N.duration
421
201
  }
422
- ) })
423
- ] }) })
424
- ]
425
- }
426
- )
427
- ] }) : /* @__PURE__ */ e.jsx(
428
- "button",
429
- {
430
- type: "button",
431
- className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button",
432
- onClick: () => {
433
- X(!0);
434
- },
435
- children: /* @__PURE__ */ e.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
436
- }
437
- ) }),
438
- W === "button" && /* @__PURE__ */ e.jsxs("div", { className: "absolute left-4 top-4 flex flex-col", children: [
439
- /* @__PURE__ */ e.jsx(
440
- "button",
441
- {
442
- onClick: () => J("in"),
443
- className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100",
444
- children: "+"
445
- }
446
- ),
447
- /* @__PURE__ */ e.jsx(
448
- "button",
449
- {
450
- onClick: () => J("out"),
451
- className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100",
452
- children: "–"
453
- }
454
- )
202
+ }
203
+ }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
204
+ opacity: 0,
205
+ transition: {
206
+ duration: N.duration
207
+ }
208
+ }, style: {
209
+ stroke: U,
210
+ strokeWidth: V
211
+ } }, `${o.id}-${r}`);
212
+ }
213
+ ) }, o.id);
214
+ }) }),
215
+ Y ? $.features.filter(
216
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
217
+ (o) => o.properties[j] === Y.id
218
+ ).map((o, s) => /* @__PURE__ */ t.jsx("g", { children: o.geometry.type === "MultiPolygon" ? (
219
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
220
+ o.geometry.coordinates.map((f, a) => {
221
+ let r = "";
222
+ return f.forEach((n) => {
223
+ let l = " M";
224
+ n.forEach((i, m) => {
225
+ const D = P([i[0], i[1]]);
226
+ m !== n.length - 1 ? l = `${l}${D[0]} ${D[1]}L` : l = `${l}${D[0]} ${D[1]}`;
227
+ }), r += l;
228
+ }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
229
+ fill: "none",
230
+ fillOpacity: 0,
231
+ strokeWidth: "0.5"
232
+ } }, a);
233
+ })
234
+ ) : (
235
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
236
+ o.geometry.coordinates.map((f, a) => {
237
+ let r = "M";
238
+ return f.forEach((n, l) => {
239
+ const i = P([n[0], n[1]]);
240
+ l !== f.length - 1 ? r = `${r}${i[0]} ${i[1]}L` : r = `${r}${i[0]} ${i[1]}`;
241
+ }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
242
+ fill: "none",
243
+ fillOpacity: 0,
244
+ strokeWidth: "0.5"
245
+ } }, a);
246
+ })
247
+ ) }, s)) : null,
248
+ se.filter((o) => o.position === "after").map((o) => o.layer)
249
+ ] }) }),
250
+ ve === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: ct("absolute left-4 bottom-4 map-color-legend", ke?.colorLegend), children: Ie ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
251
+ /* @__PURE__ */ t.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
252
+ we(!1);
253
+ }, children: /* @__PURE__ */ t.jsx(Ot, {}) }),
254
+ /* @__PURE__ */ t.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
255
+ width: A ? void 0 : "340px"
256
+ }, children: [
257
+ M && M !== "" ? /* @__PURE__ */ t.jsx(it, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
258
+ display: "-webkit-box",
259
+ WebkitLineClamp: "1",
260
+ WebkitBoxOrient: "vertical"
261
+ }, children: M }) : null,
262
+ A ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: c.map((o, s) => /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
263
+ _(d[s % d.length]);
264
+ }, onMouseLeave: () => {
265
+ _(void 0);
266
+ }, children: [
267
+ /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
268
+ backgroundColor: d[s % d.length]
269
+ } }),
270
+ /* @__PURE__ */ t.jsx(it, { size: "sm", marginBottom: "none", leading: "none", children: o })
271
+ ] }, s)) }) : /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
272
+ c.map((o, s) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
273
+ _(d[s]);
274
+ }, onMouseLeave: () => {
275
+ _(void 0);
276
+ }, className: "cursor-pointer", children: [
277
+ /* @__PURE__ */ t.jsx("rect", { x: s * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: O === d[s] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
278
+ fill: d[s],
279
+ ...O === d[s] ? {} : {
280
+ stroke: d[s]
281
+ }
282
+ } }),
283
+ /* @__PURE__ */ t.jsx("text", { x: (s + 1) * 320 / d.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
284
+ textAnchor: "middle"
285
+ }, children: Dt(o, "NA") })
286
+ ] }, s)),
287
+ /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("rect", { onMouseOver: () => {
288
+ _(d[c.length]);
289
+ }, onMouseLeave: () => {
290
+ _(void 0);
291
+ }, x: c.length * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: `cursor-pointer ${O === d[c.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
292
+ fill: d[c.length],
293
+ ...O === d[c.length] ? {} : {
294
+ stroke: d[c.length]
295
+ }
296
+ } }) })
297
+ ] }) })
298
+ ] })
299
+ ] }) : /* @__PURE__ */ t.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button", onClick: () => {
300
+ we(!0);
301
+ }, children: /* @__PURE__ */ t.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" }) }) }),
302
+ L === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
303
+ /* @__PURE__ */ t.jsx("button", { onClick: () => he("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
304
+ /* @__PURE__ */ t.jsx("button", { onClick: () => he("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
455
305
  ] })
456
306
  ] }),
457
- C && B !== void 0 ? /* @__PURE__ */ e.jsx(
458
- Te,
459
- {
460
- open: B !== void 0,
461
- onClose: () => {
462
- ee(void 0);
463
- },
464
- children: /* @__PURE__ */ e.jsx(
465
- "div",
466
- {
467
- className: "graph-modal-content m-0",
468
- dangerouslySetInnerHTML: typeof C == "string" ? { __html: Fe(C, B) } : void 0,
469
- children: typeof C == "function" ? C(B) : null
470
- }
471
- )
472
- }
473
- ) : null,
474
- Y && ne && D && le ? /* @__PURE__ */ e.jsx(
475
- Ve,
476
- {
477
- data: Y,
478
- body: ne,
479
- xPos: D,
480
- yPos: le,
481
- backgroundStyle: ye?.tooltip,
482
- className: xe?.tooltip
483
- }
484
- ) : null
307
+ E && H !== void 0 ? /* @__PURE__ */ t.jsx(Ct, { open: H !== void 0, onClose: () => {
308
+ R(void 0);
309
+ }, children: /* @__PURE__ */ t.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof E == "string" ? {
310
+ __html: Mt(E, H)
311
+ } : void 0, children: typeof E == "function" ? E(H) : null }) }) : null,
312
+ Y && re && u && ce ? /* @__PURE__ */ t.jsx(St, { data: Y, body: re, xPos: u, yPos: ce, backgroundStyle: Pe?.tooltip, className: ke?.tooltip }) : null
485
313
  ] });
486
314
  }
487
- function zt(he) {
488
- const {
489
- data: b,
490
- mapData: g = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json",
491
- graphTitle: c,
492
- colors: x,
493
- sources: F,
494
- graphDescription: S,
495
- height: h,
496
- width: s,
497
- footNote: ie = "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries.",
498
- colorDomain: z,
499
- colorLegendTitle: ne,
500
- scaleType: O = "threshold",
501
- scale: H = 0.95,
502
- centerPoint: K,
503
- padding: Z,
504
- mapBorderWidth: ge = 0.5,
505
- mapNoDataColor: ue = de.light.graphNoData,
506
- backgroundColor: E = !1,
507
- mapBorderColor: q = de.light.grays["gray-500"],
508
- relativeHeight: y,
509
- tooltip: _,
510
- onSeriesMouseOver: fe,
511
- isWorldMap: C = !0,
512
- showColorScale: ye = !0,
513
- zoomScaleExtend: xe = [0.8, 6],
514
- zoomTranslateExtend: U,
515
- graphID: W,
516
- highlightedIds: k = [],
517
- onSeriesMouseClick: G,
518
- mapProperty: se = "ISO3",
519
- graphDownload: Q = !1,
520
- dataDownload: j = !1,
521
- showAntarctica: P = !1,
522
- language: T = "en",
523
- minHeight: w = 0,
524
- theme: X = "light",
525
- ariaLabel: B,
526
- resetSelectionOnDoubleClick: ee = !0,
527
- detailsOnClick: Y,
528
- styles: $,
529
- classNames: D,
530
- mapProjection: te,
531
- zoomInteraction: le = "button",
532
- animate: R = !1,
533
- dimmedOpacity: A = 0.3,
534
- customLayers: re = [],
535
- timeline: u = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
536
- collapseColorScaleByDefault: ve
537
- } = he, [f, I] = v(0), [ae, ce] = v(0), [V, be] = v(u.autoplay), m = rt(
538
- tt(b, "date", !0).map(
539
- (t) => De(`${t}`, u.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
540
- ),
541
- (t, a) => at(t, a)
542
- ), [N, J] = v(u.autoplay ? 0 : m.length - 1), [r, l] = v(void 0), d = oe(null), i = oe(null);
543
- pe(() => {
544
- const t = new ResizeObserver((a) => {
545
- I(s || a[0].target.clientWidth || 760), ce(h || a[0].target.clientHeight || 480);
315
+ function zo(h) {
316
+ const e = dt.c(106), {
317
+ data: c,
318
+ mapData: d,
319
+ graphTitle: $,
320
+ colors: M,
321
+ sources: A,
322
+ graphDescription: k,
323
+ height: g,
324
+ width: v,
325
+ footNote: F,
326
+ colorDomain: re,
327
+ colorLegendTitle: V,
328
+ scaleType: U,
329
+ scale: ae,
330
+ centerPoint: ie,
331
+ padding: ve,
332
+ mapBorderWidth: Ee,
333
+ mapNoDataColor: Oe,
334
+ backgroundColor: X,
335
+ mapBorderColor: ne,
336
+ relativeHeight: j,
337
+ tooltip: be,
338
+ onSeriesMouseOver: E,
339
+ isWorldMap: Pe,
340
+ showColorScale: ke,
341
+ zoomScaleExtend: I,
342
+ zoomTranslateExtend: L,
343
+ graphID: N,
344
+ highlightedIds: z,
345
+ onSeriesMouseClick: se,
346
+ mapProperty: je,
347
+ graphDownload: O,
348
+ dataDownload: _,
349
+ showAntarctica: le,
350
+ language: Ie,
351
+ minHeight: we,
352
+ theme: H,
353
+ ariaLabel: R,
354
+ resetSelectionOnDoubleClick: Y,
355
+ detailsOnClick: J,
356
+ styles: u,
357
+ classNames: p,
358
+ mapProjection: ce,
359
+ zoomInteraction: de,
360
+ animate: q,
361
+ dimmedOpacity: me,
362
+ customLayers: K,
363
+ timeline: Le,
364
+ collapseColorScaleByDefault: G
365
+ } = h, w = d === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : d, pe = F === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : F, W = U === void 0 ? "threshold" : U, $e = ae === void 0 ? 0.95 : ae, Ce = Ee === void 0 ? 0.5 : Ee, B = Oe === void 0 ? Xe.light.graphNoData : Oe, P = X === void 0 ? !1 : X, he = ne === void 0 ? Xe.light.grays["gray-500"] : ne, o = Pe === void 0 ? !0 : Pe, s = ke === void 0 ? !0 : ke;
366
+ let f;
367
+ e[0] !== I ? (f = I === void 0 ? [0.8, 6] : I, e[0] = I, e[1] = f) : f = e[1];
368
+ const a = f;
369
+ let r;
370
+ e[2] !== z ? (r = z === void 0 ? [] : z, e[2] = z, e[3] = r) : r = e[3];
371
+ const n = r, l = je === void 0 ? "ISO3" : je, i = O === void 0 ? !1 : O, m = _ === void 0 ? !1 : _, D = le === void 0 ? !1 : le, C = Ie === void 0 ? "en" : Ie, T = we === void 0 ? 0 : we, Z = H === void 0 ? "light" : H, Ye = Y === void 0 ? !0 : Y, Je = de === void 0 ? "button" : de, ze = q === void 0 ? !1 : q, Ke = me === void 0 ? 0.3 : me;
372
+ let _e;
373
+ e[4] !== K ? (_e = K === void 0 ? [] : K, e[4] = K, e[5] = _e) : _e = e[5];
374
+ const Ze = _e, b = Le === void 0 ? {
375
+ enabled: !1,
376
+ autoplay: !1,
377
+ showOnlyActiveDate: !0
378
+ } : Le, [Q, nt] = S(0), [Ne, st] = S(0), [ee, Qe] = S(b.autoplay), y = Ut(Ht(c, "date", !0).map((x) => gt(`${x}`, b.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oo), [te, De] = S(b.autoplay ? 0 : y.length - 1), [ue, lt] = S(void 0), et = Me(null), at = Me(null);
379
+ let We, Be;
380
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (We = () => {
381
+ const x = new ResizeObserver((oe) => {
382
+ nt(oe[0].target.clientWidth || 620), st(oe[0].target.clientHeight || 480);
546
383
  });
547
- return d.current && (ce(d.current.clientHeight || 480), I(d.current.clientWidth || 760), s || t.observe(d.current)), () => t.disconnect();
548
- }, [s, h]), pe(() => {
549
- typeof g == "string" ? Ze(g).then((a) => {
550
- l(a);
551
- }) : l(g);
552
- }, [g]);
553
- const o = z || (O === "categorical" ? Qe(b, "x") : et(
554
- b.map((t) => t.x),
555
- x?.length || 4
556
- ));
557
- pe(() => {
558
- const t = setInterval(
559
- () => {
560
- J((a) => a < m.length - 1 ? a + 1 : 0);
561
- },
562
- (u.speed || 2) * 1e3
563
- );
564
- return V || clearInterval(t), () => clearInterval(t);
565
- }, [m, V, u.speed]);
566
- const n = $e(
567
- m,
568
- N,
569
- u.showOnlyActiveDate,
570
- u.dateFormat || "yyyy"
571
- );
572
- return /* @__PURE__ */ e.jsx(
573
- "div",
574
- {
575
- className: `${X || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
576
- dir: T === "he" || T === "ar" ? "rtl" : void 0,
577
- children: /* @__PURE__ */ e.jsx(
578
- "div",
579
- {
580
- className: we(
581
- `${E ? E === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${T || "en"}`,
582
- s ? "w-fit" : "w-full",
583
- D?.graphContainer
584
- ),
585
- style: {
586
- ...$?.graphContainer || {},
587
- ...E && E !== !0 ? { backgroundColor: E } : {}
588
- },
589
- id: W,
590
- ref: i,
591
- "aria-label": B || `${c ? `The graph shows ${c}. ` : ""}This is a choropleth map where geographic areas are colored in proportion to a specific variable.${S ? ` ${S}` : ""}`,
592
- children: /* @__PURE__ */ e.jsx(
593
- "div",
594
- {
595
- className: "flex grow",
596
- style: { padding: E ? Z || "1rem" : Z || 0 },
597
- children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
598
- c || S || Q || j ? /* @__PURE__ */ e.jsx(
599
- Ke,
600
- {
601
- styles: {
602
- title: $?.title,
603
- description: $?.description
604
- },
605
- classNames: {
606
- title: D?.title,
607
- description: D?.description
608
- },
609
- graphTitle: c,
610
- graphDescription: S,
611
- width: s,
612
- graphDownload: Q ? i.current : void 0,
613
- dataDownload: j ? b.map((t) => t.data).filter((t) => t !== void 0).length > 0 ? b.map((t) => t.data).filter((t) => t !== void 0) : b.filter((t) => t !== void 0) : null
614
- }
615
- ) : null,
616
- u.enabled && m.length > 0 && n ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
617
- /* @__PURE__ */ e.jsx(
618
- "button",
619
- {
620
- type: "button",
621
- onClick: () => {
622
- be(!V);
623
- },
624
- className: "p-0 border-0 cursor-pointer bg-transparent",
625
- "aria-label": V ? "Click to pause animation" : "Click to play animation",
626
- children: V ? /* @__PURE__ */ e.jsx(_e, {}) : /* @__PURE__ */ e.jsx(Ue, {})
627
- }
628
- ),
629
- /* @__PURE__ */ e.jsx(
630
- Ne,
631
- {
632
- min: m[0],
633
- max: m[m.length - 1],
634
- marks: n,
635
- step: null,
636
- defaultValue: m[m.length - 1],
637
- value: m[N],
638
- onChangeComplete: (t) => {
639
- J(m.indexOf(t));
640
- },
641
- onChange: (t) => {
642
- J(m.indexOf(t));
643
- },
644
- "aria-label": "Time slider. Use arrow keys to adjust selected time period."
645
- }
646
- )
647
- ] }) : null,
648
- /* @__PURE__ */ e.jsx(
649
- "div",
650
- {
651
- className: "flex flex-col grow justify-center leading-0",
652
- ref: d,
653
- "aria-label": "Map area",
654
- children: (s || f) && (h || ae) && r ? /* @__PURE__ */ e.jsx(
655
- ot,
656
- {
657
- data: b.filter(
658
- (t) => u.enabled ? t.date === Me(new Date(m[N]), u.dateFormat || "yyyy") : t
659
- ),
660
- mapData: P ? r : {
661
- ...r,
662
- features: r.features.filter(
663
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
664
- (t) => t.properties.NAME !== "Antarctica"
665
- )
666
- },
667
- colorDomain: o,
668
- width: s || f,
669
- height: Math.max(
670
- w,
671
- h || (y ? w ? (s || f) * y > w ? (s || f) * y : w : (s || f) * y : ae)
672
- ),
673
- scale: H,
674
- centerPoint: K,
675
- colors: x || (O === "categorical" ? de[X].sequentialColors[`neutralColorsx0${o.length}`] : de[X].sequentialColors[`neutralColorsx0${o.length + 1}`]),
676
- colorLegendTitle: ne,
677
- mapBorderWidth: ge,
678
- mapNoDataColor: ue,
679
- categorical: O === "categorical",
680
- mapBorderColor: q,
681
- tooltip: _,
682
- onSeriesMouseOver: fe,
683
- isWorldMap: C,
684
- showColorScale: ye,
685
- zoomScaleExtend: xe,
686
- zoomTranslateExtend: U,
687
- onSeriesMouseClick: G,
688
- mapProperty: se,
689
- highlightedIds: k,
690
- resetSelectionOnDoubleClick: ee,
691
- styles: $,
692
- classNames: D,
693
- detailsOnClick: Y,
694
- mapProjection: te || (C ? "naturalEarth" : "mercator"),
695
- zoomInteraction: le,
696
- dimmedOpacity: A,
697
- animate: R === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : R || { duration: 0, once: !0, amount: 0 },
698
- customLayers: re,
699
- collapseColorScaleByDefault: ve
700
- }
701
- ) : /* @__PURE__ */ e.jsx(
702
- "div",
703
- {
704
- style: {
705
- height: `${Math.max(
706
- w,
707
- h || (y ? w ? (s || f) * y > w ? (s || f) * y : w : (s || f) * y : ae)
708
- )}px`
709
- },
710
- className: "flex items-center justify-center",
711
- children: /* @__PURE__ */ e.jsx(Ce, { "aria-label": "Loading graph" })
712
- }
713
- )
714
- }
715
- ),
716
- F || ie ? /* @__PURE__ */ e.jsx(
717
- Je,
718
- {
719
- styles: { footnote: $?.footnote, source: $?.source },
720
- classNames: {
721
- footnote: D?.footnote,
722
- source: D?.source
723
- },
724
- sources: F,
725
- footNote: ie,
726
- width: s
727
- }
728
- ) : null
729
- ] })
730
- }
731
- )
732
- }
733
- )
734
- }
735
- );
384
+ return et.current && x.observe(et.current), () => x.disconnect();
385
+ }, Be = [], e[6] = We, e[7] = Be) : (We = e[6], Be = e[7]), Re(We, Be);
386
+ let Te;
387
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (Te = (x) => {
388
+ lt(x);
389
+ }, e[8] = Te) : Te = e[8];
390
+ const Ae = mt(Te);
391
+ let Fe;
392
+ e[9] !== w || e[10] !== Ae ? (Fe = () => {
393
+ typeof w == "string" ? At(w).then((oe) => {
394
+ Ae(oe);
395
+ }) : Ae(w);
396
+ }, e[9] = w, e[10] = Ae, e[11] = Fe) : Fe = e[11];
397
+ let Ve;
398
+ e[12] !== w ? (Ve = [w], e[12] = w, e[13] = Ve) : Ve = e[13], Re(Fe, Ve);
399
+ let He;
400
+ e[14] !== re || e[15] !== M?.length || e[16] !== c || e[17] !== W ? (He = re || (W === "categorical" ? Ft(c, "x") : Vt(c.map(to), M?.length || 4)), e[14] = re, e[15] = M?.length, e[16] = c, e[17] = W, e[18] = He) : He = e[18];
401
+ const Se = He;
402
+ Re(() => {
403
+ const x = setInterval(() => {
404
+ De((oe) => oe < y.length - 1 ? oe + 1 : 0);
405
+ }, (b.speed || 2) * 1e3);
406
+ return ee || clearInterval(x), () => clearInterval(x);
407
+ }, [y, ee, b.speed]);
408
+ const qe = pt(y, te, b.showOnlyActiveDate, b.dateFormat || "yyyy"), tt = p?.graphContainer, ot = u?.graphContainer;
409
+ let ge;
410
+ e[19] !== p?.description || e[20] !== p?.title || e[21] !== c || e[22] !== m || e[23] !== k || e[24] !== i || e[25] !== $ || e[26] !== u?.description || e[27] !== u?.title || e[28] !== v ? (ge = $ || k || i || m ? /* @__PURE__ */ t.jsx(Tt, { styles: {
411
+ title: u?.title,
412
+ description: u?.description
413
+ }, classNames: {
414
+ title: p?.title,
415
+ description: p?.description
416
+ }, graphTitle: $, graphDescription: k, width: v, graphDownload: i ? at : void 0, dataDownload: m ? c.map(eo).filter(Qt).length > 0 ? c.map(Zt).filter(Kt) : c.filter(Jt) : null }) : null, e[19] = p?.description, e[20] = p?.title, e[21] = c, e[22] = m, e[23] = k, e[24] = i, e[25] = $, e[26] = u?.description, e[27] = u?.title, e[28] = v, e[29] = ge) : ge = e[29];
417
+ let fe;
418
+ e[30] !== te || e[31] !== qe || e[32] !== ee || e[33] !== De || e[34] !== Qe || e[35] !== b.enabled || e[36] !== y ? (fe = b.enabled && y.length > 0 && qe ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
419
+ /* @__PURE__ */ t.jsx("button", { type: "button", onClick: () => {
420
+ Qe(!ee);
421
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": ee ? "Click to pause animation" : "Click to play animation", children: ee ? /* @__PURE__ */ t.jsx(Pt, {}) : /* @__PURE__ */ t.jsx(It, {}) }),
422
+ /* @__PURE__ */ t.jsx(ht, { min: y[0], max: y[y.length - 1], marks: qe, step: null, defaultValue: y[y.length - 1], value: y[te], onChangeComplete: (x) => {
423
+ De(y.indexOf(x));
424
+ }, onChange: (x) => {
425
+ De(y.indexOf(x));
426
+ }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
427
+ ] }) : null, e[30] = te, e[31] = qe, e[32] = ee, e[33] = De, e[34] = Qe, e[35] = b.enabled, e[36] = y, e[37] = fe) : fe = e[37];
428
+ let ye;
429
+ e[38] !== ze || e[39] !== ie || e[40] !== p || e[41] !== G || e[42] !== V || e[43] !== M || e[44] !== Ze || e[45] !== c || e[46] !== J || e[47] !== Ke || e[48] !== Se || e[49] !== g || e[50] !== n || e[51] !== te || e[52] !== o || e[53] !== he || e[54] !== Ce || e[55] !== B || e[56] !== ce || e[57] !== l || e[58] !== ue || e[59] !== T || e[60] !== se || e[61] !== E || e[62] !== j || e[63] !== Ye || e[64] !== $e || e[65] !== W || e[66] !== D || e[67] !== s || e[68] !== u || e[69] !== Ne || e[70] !== Q || e[71] !== Z || e[72] !== b.dateFormat || e[73] !== b.enabled || e[74] !== be || e[75] !== y || e[76] !== v || e[77] !== Je || e[78] !== a || e[79] !== L ? (ye = /* @__PURE__ */ t.jsx(qt, { ref: et, children: Q && Ne && ue ? /* @__PURE__ */ t.jsx(Rt, { data: c.filter((x) => b.enabled ? x.date === ft(new Date(y[te]), b.dateFormat || "yyyy") : x), mapData: D ? ue : {
430
+ ...ue,
431
+ features: ue.features.filter(Yt)
432
+ }, colorDomain: Se, width: Q, height: Ne, scale: $e, centerPoint: ie, colors: M || (W === "categorical" ? Xe[Z].sequentialColors[`neutralColorsx0${Se.length}`] : Xe[Z].sequentialColors[`neutralColorsx0${Se.length + 1}`]), colorLegendTitle: V, mapBorderWidth: Ce, mapNoDataColor: B, categorical: W === "categorical", mapBorderColor: he, tooltip: be, onSeriesMouseOver: E, isWorldMap: o, showColorScale: s, zoomScaleExtend: a, zoomTranslateExtend: L, onSeriesMouseClick: se, mapProperty: l, highlightedIds: n, resetSelectionOnDoubleClick: Ye, styles: u, classNames: p, detailsOnClick: J, mapProjection: ce || (o ? "naturalEarth" : "mercator"), zoomInteraction: Je, dimmedOpacity: Ke, animate: ze === !0 ? {
433
+ duration: 0.5,
434
+ once: !0,
435
+ amount: 0.5
436
+ } : ze || {
437
+ duration: 0,
438
+ once: !0,
439
+ amount: 0
440
+ }, customLayers: Ze, collapseColorScaleByDefault: G }) : /* @__PURE__ */ t.jsx("div", { style: {
441
+ height: `${Math.max(T, g || (j ? T ? (v || Q) * j > T ? (v || Q) * j : T : (v || Q) * j : Ne))}px`
442
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(ut, { "aria-label": "Loading graph" }) }) }), e[38] = ze, e[39] = ie, e[40] = p, e[41] = G, e[42] = V, e[43] = M, e[44] = Ze, e[45] = c, e[46] = J, e[47] = Ke, e[48] = Se, e[49] = g, e[50] = n, e[51] = te, e[52] = o, e[53] = he, e[54] = Ce, e[55] = B, e[56] = ce, e[57] = l, e[58] = ue, e[59] = T, e[60] = se, e[61] = E, e[62] = j, e[63] = Ye, e[64] = $e, e[65] = W, e[66] = D, e[67] = s, e[68] = u, e[69] = Ne, e[70] = Q, e[71] = Z, e[72] = b.dateFormat, e[73] = b.enabled, e[74] = be, e[75] = y, e[76] = v, e[77] = Je, e[78] = a, e[79] = L, e[80] = ye) : ye = e[80];
443
+ let xe;
444
+ e[81] !== p?.footnote || e[82] !== p?.source || e[83] !== pe || e[84] !== A || e[85] !== u?.footnote || e[86] !== u?.source || e[87] !== v ? (xe = A || pe ? /* @__PURE__ */ t.jsx(Bt, { styles: {
445
+ footnote: u?.footnote,
446
+ source: u?.source
447
+ }, classNames: {
448
+ footnote: p?.footnote,
449
+ source: p?.source
450
+ }, sources: A, footNote: pe, width: v }) : null, e[81] = p?.footnote, e[82] = p?.source, e[83] = pe, e[84] = A, e[85] = u?.footnote, e[86] = u?.source, e[87] = v, e[88] = xe) : xe = e[88];
451
+ let Ge;
452
+ return e[89] !== R || e[90] !== P || e[91] !== N || e[92] !== g || e[93] !== C || e[94] !== T || e[95] !== ve || e[96] !== j || e[97] !== tt || e[98] !== ot || e[99] !== ge || e[100] !== fe || e[101] !== ye || e[102] !== xe || e[103] !== Z || e[104] !== v ? (Ge = /* @__PURE__ */ t.jsxs(Gt, { className: tt, style: ot, id: N, ref: at, "aria-label": R, backgroundColor: P, theme: Z, language: C, minHeight: T, width: v, height: g, relativeHeight: j, padding: ve, children: [
453
+ ge,
454
+ fe,
455
+ ye,
456
+ xe
457
+ ] }), e[89] = R, e[90] = P, e[91] = N, e[92] = g, e[93] = C, e[94] = T, e[95] = ve, e[96] = j, e[97] = tt, e[98] = ot, e[99] = ge, e[100] = fe, e[101] = ye, e[102] = xe, e[103] = Z, e[104] = v, e[105] = Ge) : Ge = e[105], Ge;
458
+ }
459
+ function Yt(h) {
460
+ return h.properties.NAME !== "Antarctica";
461
+ }
462
+ function Jt(h) {
463
+ return h !== void 0;
464
+ }
465
+ function Kt(h) {
466
+ return h !== void 0;
467
+ }
468
+ function Zt(h) {
469
+ return h.data;
470
+ }
471
+ function Qt(h) {
472
+ return h !== void 0;
473
+ }
474
+ function eo(h) {
475
+ return h.data;
476
+ }
477
+ function to(h) {
478
+ return h.x;
479
+ }
480
+ function oo(h, e) {
481
+ return Xt(h, e);
736
482
  }
737
483
  export {
738
- zt as ChoroplethMap
484
+ zo as ChoroplethMap
739
485
  };
740
486
  //# sourceMappingURL=ChoroplethMap.js.map