@undp/data-viz 1.5.9 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (670) 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 +2188 -4045
  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 +120 -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 +500 -1018
  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 +458 -699
  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 +466 -720
  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 -4
  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/DataCards.cjs +5 -5
  73. package/dist/DataCards.cjs.map +1 -1
  74. package/dist/DataCards.d.ts +1 -0
  75. package/dist/DataCards.js +488 -581
  76. package/dist/DataCards.js.map +1 -1
  77. package/dist/DataTable.cjs +1 -1
  78. package/dist/DataTable.cjs.map +1 -1
  79. package/dist/DataTable.d.ts +1 -0
  80. package/dist/DataTable.js +183 -326
  81. package/dist/DataTable.js.map +1 -1
  82. package/dist/DifferenceLineChart.cjs +1 -1
  83. package/dist/DifferenceLineChart.cjs.map +1 -1
  84. package/dist/DifferenceLineChart.d.ts +1 -0
  85. package/dist/DifferenceLineChart.js +729 -794
  86. package/dist/DifferenceLineChart.js.map +1 -1
  87. package/dist/DonutChart.cjs +1 -1
  88. package/dist/DonutChart.cjs.map +1 -1
  89. package/dist/DonutChart.d.ts +1 -4
  90. package/dist/DonutChart.js +260 -444
  91. package/dist/DonutChart.js.map +1 -1
  92. package/dist/DotDensityMap.cjs +1 -1
  93. package/dist/DotDensityMap.cjs.map +1 -1
  94. package/dist/DotDensityMap.d.ts +1 -0
  95. package/dist/DotDensityMap.js +387 -574
  96. package/dist/DotDensityMap.js.map +1 -1
  97. package/dist/{DropdownSelect-6kjXM6oW.js → DropdownSelect-BbdPQa2k.js} +1401 -1374
  98. package/dist/DropdownSelect-BbdPQa2k.js.map +1 -0
  99. package/dist/DropdownSelect-Doz3mCrM.cjs +29 -0
  100. package/dist/DropdownSelect-Doz3mCrM.cjs.map +1 -0
  101. package/dist/DualAxisLineChart.cjs +1 -1
  102. package/dist/DualAxisLineChart.cjs.map +1 -1
  103. package/dist/DualAxisLineChart.d.ts +1 -0
  104. package/dist/DualAxisLineChart.js +617 -712
  105. package/dist/DualAxisLineChart.js.map +1 -1
  106. package/dist/DumbbellChart.cjs +1 -1
  107. package/dist/DumbbellChart.cjs.map +1 -1
  108. package/dist/DumbbellChart.d.ts +1 -0
  109. package/dist/DumbbellChart.js +789 -1499
  110. package/dist/DumbbellChart.js.map +1 -1
  111. package/dist/EmptyState-BZo1BbAn.js +15 -0
  112. package/dist/{EmptyState-36lXXyui.js.map → EmptyState-BZo1BbAn.js.map} +1 -1
  113. package/dist/EmptyState-sAEZ_5rU.cjs +2 -0
  114. package/dist/{EmptyState-B8IpKGcL.cjs.map → EmptyState-sAEZ_5rU.cjs.map} +1 -1
  115. package/dist/ExcelDownloadButton.cjs +1 -1
  116. package/dist/ExcelDownloadButton.cjs.map +1 -1
  117. package/dist/ExcelDownloadButton.js +20 -24
  118. package/dist/ExcelDownloadButton.js.map +1 -1
  119. package/dist/FootNote.cjs +1 -1
  120. package/dist/FootNote.cjs.map +1 -1
  121. package/dist/FootNote.js +26 -17
  122. package/dist/FootNote.js.map +1 -1
  123. package/dist/GeoHubCompareMaps.cjs +1 -1
  124. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  125. package/dist/GeoHubCompareMaps.d.ts +1 -0
  126. package/dist/GeoHubCompareMaps.js +265 -340
  127. package/dist/GeoHubCompareMaps.js.map +1 -1
  128. package/dist/GeoHubMap.cjs +1 -1
  129. package/dist/GeoHubMap.cjs.map +1 -1
  130. package/dist/GeoHubMap.d.ts +1 -0
  131. package/dist/GeoHubMap.js +214 -379
  132. package/dist/GeoHubMap.js.map +1 -1
  133. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  134. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  135. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -0
  136. package/dist/GeoHubMapWithLayerSelection.js +192 -278
  137. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  138. package/dist/GraphContainer-CRqzdKu2.js +78 -0
  139. package/dist/GraphContainer-CRqzdKu2.js.map +1 -0
  140. package/dist/GraphContainer-d8A46BK2.cjs +2 -0
  141. package/dist/GraphContainer-d8A46BK2.cjs.map +1 -0
  142. package/dist/GraphDescription.cjs +1 -1
  143. package/dist/GraphDescription.cjs.map +1 -1
  144. package/dist/GraphDescription.js +23 -17
  145. package/dist/GraphDescription.js.map +1 -1
  146. package/dist/GraphEl-BkyLYXG5.cjs +2 -0
  147. package/dist/GraphEl-BkyLYXG5.cjs.map +1 -0
  148. package/dist/{GraphEl-2IiUDxjR.js → GraphEl-DzRon4cb.js} +181 -202
  149. package/dist/GraphEl-DzRon4cb.js.map +1 -0
  150. package/dist/GraphFooter.cjs +1 -1
  151. package/dist/GraphFooter.cjs.map +1 -1
  152. package/dist/GraphFooter.js +28 -18
  153. package/dist/GraphFooter.js.map +1 -1
  154. package/dist/GraphHeader.cjs +1 -1
  155. package/dist/GraphHeader.cjs.map +1 -1
  156. package/dist/GraphHeader.d.ts +2 -1
  157. package/dist/GraphHeader.js +45 -59
  158. package/dist/GraphHeader.js.map +1 -1
  159. package/dist/GraphTitle.cjs +1 -1
  160. package/dist/GraphTitle.cjs.map +1 -1
  161. package/dist/GraphTitle.js +29 -24
  162. package/dist/GraphTitle.js.map +1 -1
  163. package/dist/GriddedGraphs.cjs +1 -1
  164. package/dist/GriddedGraphs.cjs.map +1 -1
  165. package/dist/GriddedGraphs.d.ts +1 -0
  166. package/dist/GriddedGraphs.js +216 -450
  167. package/dist/GriddedGraphs.js.map +1 -1
  168. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  169. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  170. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  171. package/dist/GriddedGraphsFromConfig.js +22 -36
  172. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  173. package/dist/HeatMap.cjs +1 -1
  174. package/dist/HeatMap.cjs.map +1 -1
  175. package/dist/HeatMap.d.ts +1 -0
  176. package/dist/HeatMap.js +278 -446
  177. package/dist/HeatMap.js.map +1 -1
  178. package/dist/Histogram.cjs +1 -1
  179. package/dist/Histogram.cjs.map +1 -1
  180. package/dist/Histogram.d.ts +1 -0
  181. package/dist/Histogram.js +154 -264
  182. package/dist/Histogram.js.map +1 -1
  183. package/dist/ImageDownloadButton.cjs +1 -1
  184. package/dist/ImageDownloadButton.cjs.map +1 -1
  185. package/dist/ImageDownloadButton.d.ts +2 -1
  186. package/dist/ImageDownloadButton.js +21 -25
  187. package/dist/ImageDownloadButton.js.map +1 -1
  188. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  189. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  190. package/dist/LineChartWithConfidenceInterval.d.ts +1 -0
  191. package/dist/LineChartWithConfidenceInterval.js +674 -825
  192. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  193. package/dist/LinearColorLegend.cjs +1 -1
  194. package/dist/LinearColorLegend.cjs.map +1 -1
  195. package/dist/LinearColorLegend.js +49 -30
  196. package/dist/LinearColorLegend.js.map +1 -1
  197. package/dist/Modal-DGcuAHyK.js +1047 -0
  198. package/dist/Modal-DGcuAHyK.js.map +1 -0
  199. package/dist/Modal-JW_IExO3.cjs +46 -0
  200. package/dist/Modal-JW_IExO3.cjs.map +1 -0
  201. package/dist/MultiGraphDashboard.cjs +1 -1
  202. package/dist/MultiGraphDashboard.cjs.map +1 -1
  203. package/dist/MultiGraphDashboard.d.ts +1 -0
  204. package/dist/MultiGraphDashboard.js +122 -290
  205. package/dist/MultiGraphDashboard.js.map +1 -1
  206. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  207. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  208. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  209. package/dist/MultiGraphDashboardFromConfig.js +22 -31
  210. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  211. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  212. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  213. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -0
  214. package/dist/MultiGraphDashboardWideToLongFormat.js +137 -223
  215. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  216. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  217. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  218. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -0
  219. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +25 -27
  220. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  221. package/dist/MultiLineAltChart.cjs +1 -1
  222. package/dist/MultiLineAltChart.cjs.map +1 -1
  223. package/dist/MultiLineAltChart.d.ts +1 -0
  224. package/dist/MultiLineAltChart.js +581 -659
  225. package/dist/MultiLineAltChart.js.map +1 -1
  226. package/dist/MultiLineChart.cjs +1 -1
  227. package/dist/MultiLineChart.cjs.map +1 -1
  228. package/dist/MultiLineChart.d.ts +1 -0
  229. package/dist/MultiLineChart.js +617 -725
  230. package/dist/MultiLineChart.js.map +1 -1
  231. package/dist/ParetoChart.cjs +1 -1
  232. package/dist/ParetoChart.cjs.map +1 -1
  233. package/dist/ParetoChart.d.ts +1 -0
  234. package/dist/ParetoChart.js +531 -635
  235. package/dist/ParetoChart.js.map +1 -1
  236. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  237. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  238. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  239. package/dist/PerformanceIntensiveMultiGraphDashboard.js +147 -338
  240. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  241. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  242. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  243. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  244. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +22 -31
  245. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
  246. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  247. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  248. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  249. package/dist/PerformanceIntensiveScrollStory.js +93 -114
  250. package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
  251. package/dist/RadarChart.cjs +1 -1
  252. package/dist/RadarChart.cjs.map +1 -1
  253. package/dist/RadarChart.d.ts +1 -0
  254. package/dist/RadarChart.js +426 -575
  255. package/dist/RadarChart.js.map +1 -1
  256. package/dist/ReferenceLine-2XCwHXQ4.js +162 -0
  257. package/dist/ReferenceLine-2XCwHXQ4.js.map +1 -0
  258. package/dist/ReferenceLine-BH0qdf4R.cjs +2 -0
  259. package/dist/ReferenceLine-BH0qdf4R.cjs.map +1 -0
  260. package/dist/RegressionLine-BOTTNSrr.cjs +2 -0
  261. package/dist/RegressionLine-BOTTNSrr.cjs.map +1 -0
  262. package/dist/RegressionLine-DAcY2DjT.js +87 -0
  263. package/dist/RegressionLine-DAcY2DjT.js.map +1 -0
  264. package/dist/SVGDownloadButton.cjs +1 -1
  265. package/dist/SVGDownloadButton.cjs.map +1 -1
  266. package/dist/SVGDownloadButton.js +21 -25
  267. package/dist/SVGDownloadButton.js.map +1 -1
  268. package/dist/SankeyChart.cjs +1 -1
  269. package/dist/SankeyChart.cjs.map +1 -1
  270. package/dist/SankeyChart.d.ts +1 -0
  271. package/dist/SankeyChart.js +665 -854
  272. package/dist/SankeyChart.js.map +1 -1
  273. package/dist/ScatterPlot.cjs +1 -1
  274. package/dist/ScatterPlot.cjs.map +1 -1
  275. package/dist/ScatterPlot.d.ts +1 -0
  276. package/dist/ScatterPlot.js +675 -815
  277. package/dist/ScatterPlot.js.map +1 -1
  278. package/dist/ScrollStory.cjs +1 -1
  279. package/dist/ScrollStory.cjs.map +1 -1
  280. package/dist/ScrollStory.d.ts +1 -0
  281. package/dist/ScrollStory.js +85 -97
  282. package/dist/ScrollStory.js.map +1 -1
  283. package/dist/SimpleLineChart.cjs +1 -1
  284. package/dist/SimpleLineChart.cjs.map +1 -1
  285. package/dist/SimpleLineChart.d.ts +1 -0
  286. package/dist/SimpleLineChart.js +504 -613
  287. package/dist/SimpleLineChart.js.map +1 -1
  288. package/dist/SingleGraphDashboard.cjs +1 -1
  289. package/dist/SingleGraphDashboard.cjs.map +1 -1
  290. package/dist/SingleGraphDashboard.d.ts +2 -1
  291. package/dist/SingleGraphDashboard.js +279 -507
  292. package/dist/SingleGraphDashboard.js.map +1 -1
  293. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  294. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  295. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -1
  296. package/dist/SingleGraphDashboardFromConfig.js +25 -31
  297. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  298. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  299. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  300. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  301. package/dist/SingleGraphDashboardGeoHubMaps.js +146 -168
  302. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  303. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  304. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  305. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  306. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -21
  307. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
  308. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  309. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  310. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  311. package/dist/SingleGraphDashboardThreeDGraphs.js +357 -591
  312. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  313. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  314. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  315. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  316. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +25 -31
  317. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
  318. package/dist/SlopeChart.cjs +1 -1
  319. package/dist/SlopeChart.cjs.map +1 -1
  320. package/dist/SlopeChart.d.ts +1 -0
  321. package/dist/SlopeChart.js +539 -573
  322. package/dist/SlopeChart.js.map +1 -1
  323. package/dist/Source-DYMJRrsq.cjs +2 -0
  324. package/dist/Source-DYMJRrsq.cjs.map +1 -0
  325. package/dist/Source-DwTHB8fn.js +78 -0
  326. package/dist/Source-DwTHB8fn.js.map +1 -0
  327. package/dist/Source.cjs +1 -1
  328. package/dist/Source.cjs.map +1 -1
  329. package/dist/Source.js +4 -38
  330. package/dist/Source.js.map +1 -1
  331. package/dist/SparkLine.cjs +1 -1
  332. package/dist/SparkLine.cjs.map +1 -1
  333. package/dist/SparkLine.d.ts +1 -0
  334. package/dist/SparkLine.js +286 -314
  335. package/dist/SparkLine.js.map +1 -1
  336. package/dist/Spinner-D7rnnwnA.js +47 -0
  337. package/dist/Spinner-D7rnnwnA.js.map +1 -0
  338. package/dist/Spinner-DRMBUsX7.cjs +2 -0
  339. package/dist/Spinner-DRMBUsX7.cjs.map +1 -0
  340. package/dist/StatCardFromData.cjs +1 -1
  341. package/dist/StatCardFromData.cjs.map +1 -1
  342. package/dist/StatCardFromData.d.ts +1 -0
  343. package/dist/StatCardFromData.js +163 -243
  344. package/dist/StatCardFromData.js.map +1 -1
  345. package/dist/StripChart.cjs +1 -1
  346. package/dist/StripChart.cjs.map +1 -1
  347. package/dist/StripChart.d.ts +1 -0
  348. package/dist/StripChart.js +665 -983
  349. package/dist/StripChart.js.map +1 -1
  350. package/dist/ThreeDGlobe.cjs +1 -1
  351. package/dist/ThreeDGlobe.cjs.map +1 -1
  352. package/dist/ThreeDGlobe.d.ts +1 -0
  353. package/dist/ThreeDGlobe.js +356 -519
  354. package/dist/ThreeDGlobe.js.map +1 -1
  355. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  356. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  357. package/dist/ThresholdColorLegendWithMouseOver.js +96 -126
  358. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  359. package/dist/Tooltip-4dJo4_AF.cjs +2 -0
  360. package/dist/Tooltip-4dJo4_AF.cjs.map +1 -0
  361. package/dist/Tooltip-CwWUegPB.js +43 -0
  362. package/dist/Tooltip-CwWUegPB.js.map +1 -0
  363. package/dist/TreeMapGraph.cjs +1 -1
  364. package/dist/TreeMapGraph.cjs.map +1 -1
  365. package/dist/TreeMapGraph.d.ts +1 -0
  366. package/dist/TreeMapGraph.js +479 -617
  367. package/dist/TreeMapGraph.js.map +1 -1
  368. package/dist/Types.d.ts +1 -0
  369. package/dist/Typography-DX7PlgQU.cjs +2 -0
  370. package/dist/Typography-DX7PlgQU.cjs.map +1 -0
  371. package/dist/Typography-PxtFcnJb.js +142 -0
  372. package/dist/Typography-PxtFcnJb.js.map +1 -0
  373. package/dist/UnitChart.cjs +1 -1
  374. package/dist/UnitChart.cjs.map +1 -1
  375. package/dist/UnitChart.d.ts +1 -0
  376. package/dist/UnitChart.js +160 -212
  377. package/dist/UnitChart.js.map +1 -1
  378. package/dist/XAxesLabels-D5X8jngD.cjs +2 -0
  379. package/dist/XAxesLabels-D5X8jngD.cjs.map +1 -0
  380. package/dist/XAxesLabels-DNO0KmjL.js +73 -0
  381. package/dist/XAxesLabels-DNO0KmjL.js.map +1 -0
  382. package/dist/XTicksAndGridLines-B6CELS7q.cjs +2 -0
  383. package/dist/XTicksAndGridLines-B6CELS7q.cjs.map +1 -0
  384. package/dist/XTicksAndGridLines-CObVFSm4.js +38 -0
  385. package/dist/XTicksAndGridLines-CObVFSm4.js.map +1 -0
  386. package/dist/YAxesLabels-DcS85Beo.cjs +2 -0
  387. package/dist/YAxesLabels-DcS85Beo.cjs.map +1 -0
  388. package/dist/YAxesLabels-Dnnng49-.js +70 -0
  389. package/dist/YAxesLabels-Dnnng49-.js.map +1 -0
  390. package/dist/YTicksAndGridLines-4pxTRlRK.cjs +2 -0
  391. package/dist/YTicksAndGridLines-4pxTRlRK.cjs.map +1 -0
  392. package/dist/YTicksAndGridLines-Blepl7XF.js +38 -0
  393. package/dist/YTicksAndGridLines-Blepl7XF.js.map +1 -0
  394. package/dist/{band-BEjh2CHI.js → band-CyHaVft5.js} +3 -3
  395. package/dist/{band-BEjh2CHI.js.map → band-CyHaVft5.js.map} +1 -1
  396. package/dist/{band-CAApY4Pd.cjs → band-VYfcZeJ2.cjs} +2 -2
  397. package/dist/{band-CAApY4Pd.cjs.map → band-VYfcZeJ2.cjs.map} +1 -1
  398. package/dist/checkIfMultiple-Y9iKaV_u.js +950 -0
  399. package/dist/checkIfMultiple-Y9iKaV_u.js.map +1 -0
  400. package/dist/checkIfMultiple-wg6hJLXy.cjs +12 -0
  401. package/dist/checkIfMultiple-wg6hJLXy.cjs.map +1 -0
  402. package/dist/customArea-BUhPiPT6.js +163 -0
  403. package/dist/{customArea-x4L4xwLl.js.map → customArea-BUhPiPT6.js.map} +1 -1
  404. package/dist/customArea-CMF5g-C3.cjs +2 -0
  405. package/dist/{customArea-1G1S78s_.cjs.map → customArea-CMF5g-C3.cjs.map} +1 -1
  406. package/dist/delaunay-C1uAf38t.js.map +1 -1
  407. package/dist/delaunay-rcy0HhZi.cjs.map +1 -1
  408. package/dist/{ensureCompleteData-DlmibgaI.js → ensureCompleteData-DNKEGRiP.js} +12 -32
  409. package/dist/{ensureCompleteData-DlmibgaI.js.map → ensureCompleteData-DNKEGRiP.js.map} +1 -1
  410. package/dist/{ensureCompleteData-DkQYPeDa.cjs → ensureCompleteData-I6nYmT8E.cjs} +2 -2
  411. package/dist/{ensureCompleteData-DkQYPeDa.cjs.map → ensureCompleteData-I6nYmT8E.cjs.map} +1 -1
  412. package/dist/{excelDownload-BOA-lskf.js → excelDownload-BEC1AyQW.js} +12 -2
  413. package/dist/{excelDownload-BOA-lskf.js.map → excelDownload-BEC1AyQW.js.map} +1 -1
  414. package/dist/excelDownload-BQpsCa62.cjs.map +1 -1
  415. package/dist/{fetchAndParseData-sapWbnYk.js → fetchAndParseData-BpqkBPQL.js} +15 -28
  416. package/dist/{fetchAndParseData-sapWbnYk.js.map → fetchAndParseData-BpqkBPQL.js.map} +1 -1
  417. package/dist/fetchAndParseData-l5HGMAEs.cjs +16 -0
  418. package/dist/{fetchAndParseData-Ba-_CgxS.cjs.map → fetchAndParseData-l5HGMAEs.cjs.map} +1 -1
  419. package/dist/fetchAndParseData.cjs +1 -1
  420. package/dist/fetchAndParseData.js +1 -1
  421. package/dist/{filterData-9nEcQ-Jp.js → filterData-DsAiFzKY.js} +3 -5
  422. package/dist/{filterData-9nEcQ-Jp.js.map → filterData-DsAiFzKY.js.map} +1 -1
  423. package/dist/{filterData-BoYadk0l.cjs → filterData-T5DQBE9b.cjs} +2 -2
  424. package/dist/{filterData-BoYadk0l.cjs.map → filterData-T5DQBE9b.cjs.map} +1 -1
  425. package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -1
  426. package/dist/generateRandomString-za3IQGfQ.js.map +1 -1
  427. package/dist/{getCentroidCoordinates-Dfk6IqEG.js → getCentroidCoordinates-D7r34N4w.js} +2 -2
  428. package/dist/{getCentroidCoordinates-Dfk6IqEG.js.map → getCentroidCoordinates-D7r34N4w.js.map} +1 -1
  429. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs → getCentroidCoordinates-Dng1HVjO.cjs} +2 -2
  430. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs.map → getCentroidCoordinates-Dng1HVjO.cjs.map} +1 -1
  431. package/dist/getGraphList-BpEWn1Tk.js +227 -0
  432. package/dist/{getGraphList-DuColTJM.js.map → getGraphList-BpEWn1Tk.js.map} +1 -1
  433. package/dist/getGraphList-gf02xgT2.cjs.map +1 -1
  434. package/dist/getJenks-BbngDoBQ.js.map +1 -1
  435. package/dist/getJenks-GYmdwBqm.cjs.map +1 -1
  436. package/dist/getSchema.cjs.map +1 -1
  437. package/dist/getSchema.js +445 -231
  438. package/dist/getSchema.js.map +1 -1
  439. package/dist/getSliderMarks-BmADcPQt.cjs +6 -0
  440. package/dist/getSliderMarks-BmADcPQt.cjs.map +1 -0
  441. package/dist/getSliderMarks-HIDJ0_Cd.js +1033 -0
  442. package/dist/getSliderMarks-HIDJ0_Cd.js.map +1 -0
  443. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js → getTextColorBasedOnBgColor-CDY808zi.js} +11 -3
  444. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js.map → getTextColorBasedOnBgColor-CDY808zi.js.map} +1 -1
  445. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -1
  446. package/dist/{getUniqValue-DiCh_MOD.js → getUniqValue-BKHCm3zE.js} +2 -4
  447. package/dist/{getUniqValue-DiCh_MOD.js.map → getUniqValue-BKHCm3zE.js.map} +1 -1
  448. package/dist/getUniqValue-RViz8tTw.cjs.map +1 -1
  449. package/dist/{imageDownload-Dcci2LEy.js → imageDownload-BX6SILNZ.js} +4 -2
  450. package/dist/{imageDownload-Dcci2LEy.js.map → imageDownload-BX6SILNZ.js.map} +1 -1
  451. package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -1
  452. package/dist/{index-DvVprvy6.js → index-BZQYSqar.js} +7 -7
  453. package/dist/{index-DvVprvy6.js.map → index-BZQYSqar.js.map} +1 -1
  454. package/dist/index-B_sAFsEV.cjs +2 -0
  455. package/dist/{index-BHe3wsWF.cjs.map → index-B_sAFsEV.cjs.map} +1 -1
  456. package/dist/index-BqfRwk1n.js +146 -0
  457. package/dist/index-BqfRwk1n.js.map +1 -0
  458. package/dist/{index-V_JXij1_.js → index-BuwmuDFJ.js} +3 -3
  459. package/dist/{index-V_JXij1_.js.map → index-BuwmuDFJ.js.map} +1 -1
  460. package/dist/index-CHPV5EwG-CTPQjnHt.cjs +84 -0
  461. package/dist/index-CHPV5EwG-CTPQjnHt.cjs.map +1 -0
  462. package/dist/{index-CHPV5EwG-DBWUSD9b.js → index-CHPV5EwG-Curnpaqc.js} +724 -625
  463. package/dist/index-CHPV5EwG-Curnpaqc.js.map +1 -0
  464. package/dist/index-Cno4Q0YE.cjs +2 -0
  465. package/dist/{index-CQ3e6Ewi.cjs.map → index-Cno4Q0YE.cjs.map} +1 -1
  466. package/dist/{index-Cw8sCyo_-BuI_jX5Z.js → index-Cw8sCyo_-B2hEKjzG.js} +16 -16
  467. package/dist/{index-Cw8sCyo_-BuI_jX5Z.js.map → index-Cw8sCyo_-B2hEKjzG.js.map} +1 -1
  468. package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs → index-Cw8sCyo_-BrHiWiRF.cjs} +2 -2
  469. package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs.map → index-Cw8sCyo_-BrHiWiRF.cjs.map} +1 -1
  470. package/dist/index-CyZ1lmi_.cjs +2 -0
  471. package/dist/{index-D72cOtq7.cjs.map → index-CyZ1lmi_.cjs.map} +1 -1
  472. package/dist/index-D491FEn1.js +184 -0
  473. package/dist/index-D491FEn1.js.map +1 -0
  474. package/dist/index-DG2bgAva.cjs +10 -0
  475. package/dist/index-DG2bgAva.cjs.map +1 -0
  476. package/dist/index-DRXx7m-C.cjs +2 -0
  477. package/dist/index-DRXx7m-C.cjs.map +1 -0
  478. package/dist/index-DoY3Ga3W.cjs +2 -0
  479. package/dist/index-DoY3Ga3W.cjs.map +1 -0
  480. package/dist/index-DxXnJ8Ti.cjs +2 -0
  481. package/dist/index-DxXnJ8Ti.cjs.map +1 -0
  482. package/dist/{index-Dzc_aaI9-BKklH89r.js → index-Dzc_aaI9-Bb7gobH_.js} +2 -2
  483. package/dist/{index-Dzc_aaI9-BKklH89r.js.map → index-Dzc_aaI9-Bb7gobH_.js.map} +1 -1
  484. package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs → index-Dzc_aaI9-BmkfPMyc.cjs} +2 -2
  485. package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs.map → index-Dzc_aaI9-BmkfPMyc.cjs.map} +1 -1
  486. package/dist/{index-9tDEUqOZ.js → index-GEsywGxz.js} +9 -9
  487. package/dist/index-GEsywGxz.js.map +1 -0
  488. package/dist/index-SKgJALZg.js +99 -0
  489. package/dist/{index-Bw_eHBVN.js.map → index-SKgJALZg.js.map} +1 -1
  490. package/dist/index-leTnKT2q.js +329 -0
  491. package/dist/index-leTnKT2q.js.map +1 -0
  492. package/dist/index.cjs +1 -1
  493. package/dist/index.d.ts +10 -8
  494. package/dist/index.js +13 -13
  495. package/dist/{init-BhZylTFx.js → init-BJFW6EwE.js} +3 -3
  496. package/dist/{init-BhZylTFx.js.map → init-BJFW6EwE.js.map} +1 -1
  497. package/dist/{linear-BVckp9RD.cjs → linear-BwPAspcq.cjs} +2 -2
  498. package/dist/{linear-BVckp9RD.cjs.map → linear-BwPAspcq.cjs.map} +1 -1
  499. package/dist/{linear-DUdu7l2G.js → linear-BwnDd9KF.js} +3 -3
  500. package/dist/{linear-DUdu7l2G.js.map → linear-BwnDd9KF.js.map} +1 -1
  501. package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -1
  502. package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -1
  503. package/dist/{ordinal-BOeNbyae.cjs → ordinal-CrsysVE-.cjs} +2 -2
  504. package/dist/ordinal-CrsysVE-.cjs.map +1 -0
  505. package/dist/{ordinal-w9Lu4Stb.js → ordinal-P77xw8aL.js} +24 -24
  506. package/dist/ordinal-P77xw8aL.js.map +1 -0
  507. package/dist/{pow-e8zx3AQJ.js → pow-DE4c7dbW.js} +3 -3
  508. package/dist/{pow-e8zx3AQJ.js.map → pow-DE4c7dbW.js.map} +1 -1
  509. package/dist/{pow-B5-jkdHU.cjs → pow-DgrUorRi.cjs} +2 -2
  510. package/dist/{pow-B5-jkdHU.cjs.map → pow-DgrUorRi.cjs.map} +1 -1
  511. package/dist/{proxy-BYIC9BuT.js → proxy-BxkFHwUw.js} +144 -134
  512. package/dist/proxy-BxkFHwUw.js.map +1 -0
  513. package/dist/proxy-BxvUI_9l.cjs +2 -0
  514. package/dist/proxy-BxvUI_9l.cjs.map +1 -0
  515. package/dist/{removeOutliers-DR48e-18.js → removeOutliers-BqW0sPqj.js} +2 -5
  516. package/dist/{removeOutliers-DR48e-18.js.map → removeOutliers-BqW0sPqj.js.map} +1 -1
  517. package/dist/removeOutliers-WELHHqiI.cjs.map +1 -1
  518. package/dist/{sort-DfK1b0F5.js → sort-BIvMlUH1.js} +5 -5
  519. package/dist/{sort-DfK1b0F5.js.map → sort-BIvMlUH1.js.map} +1 -1
  520. package/dist/{string-CRoCZCYa.cjs → string-C-kRh1bQ.cjs} +2 -2
  521. package/dist/{string-CRoCZCYa.cjs.map → string-C-kRh1bQ.cjs.map} +1 -1
  522. package/dist/{string-B8KlVSPX.js → string-C_xJ4Wg4.js} +3 -3
  523. package/dist/{string-B8KlVSPX.js.map → string-C_xJ4Wg4.js.map} +1 -1
  524. package/dist/string2HTML-CPGr_I5E.cjs +3 -0
  525. package/dist/{string2HTML-z7CwHXcx.cjs.map → string2HTML-CPGr_I5E.cjs.map} +1 -1
  526. package/dist/{string2HTML-oFCROsus.js → string2HTML-DhG75NqA.js} +15 -9
  527. package/dist/{string2HTML-oFCROsus.js.map → string2HTML-DhG75NqA.js.map} +1 -1
  528. package/dist/style.css +1 -1
  529. package/dist/{svgDownload-C2-E3yf2.js → svgDownload-BAoarWNt.js} +4 -2
  530. package/dist/{svgDownload-C2-E3yf2.js.map → svgDownload-BAoarWNt.js.map} +1 -1
  531. package/dist/svgDownload-D9zEGjTF.cjs.map +1 -1
  532. package/dist/{threshold-DFfqcDMa.js → threshold-Bgr20hik.js} +2 -2
  533. package/dist/{threshold-DFfqcDMa.js.map → threshold-Bgr20hik.js.map} +1 -1
  534. package/dist/{time-Byw_jYQ7.cjs → time-CZd5YLSP.cjs} +2 -2
  535. package/dist/{time-Byw_jYQ7.cjs.map → time-CZd5YLSP.cjs.map} +1 -1
  536. package/dist/{time-BzJP5SPC.js → time-DCCfQk3V.js} +3 -3
  537. package/dist/{time-BzJP5SPC.js.map → time-DCCfQk3V.js.map} +1 -1
  538. package/dist/transformData.cjs +1 -1
  539. package/dist/transformData.js +3 -3
  540. package/dist/transformDataForAggregation-CE3bAlHU.js +585 -0
  541. package/dist/{transformDataForAggregation-sBpdlX8n.js.map → transformDataForAggregation-CE3bAlHU.js.map} +1 -1
  542. package/dist/transformDataForAggregation-KXGm6flX.cjs.map +1 -1
  543. package/dist/transformDataForGraphFromFile-BExxcITV.js +14 -0
  544. package/dist/{transformDataForGraphFromFile-ComYvzuz.js.map → transformDataForGraphFromFile-BExxcITV.js.map} +1 -1
  545. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs → transformDataForGraphFromFile-DaJHQCsL.cjs} +2 -2
  546. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs.map → transformDataForGraphFromFile-DaJHQCsL.cjs.map} +1 -1
  547. package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -1
  548. package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -1
  549. package/dist/uniqBy-BHy4I8PK.js.map +1 -1
  550. package/dist/uniqBy-O05lp2S5.cjs.map +1 -1
  551. package/dist/{use-in-view-DR-UTB96.js → use-in-view-Cxa7y1TH.js} +2 -2
  552. package/dist/use-in-view-Cxa7y1TH.js.map +1 -0
  553. package/dist/use-in-view-QcfiW0w3.cjs +2 -0
  554. package/dist/use-in-view-QcfiW0w3.cjs.map +1 -0
  555. package/dist/utils.cjs +1 -1
  556. package/dist/utils.js +8 -8
  557. package/dist/validateSchema.cjs.map +1 -1
  558. package/dist/validateSchema.js +33 -29
  559. package/dist/validateSchema.js.map +1 -1
  560. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs → x-BBpi7a_7-mTo40uId.cjs} +2 -2
  561. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs.map → x-BBpi7a_7-mTo40uId.cjs.map} +1 -1
  562. package/dist/{y-D0sAaVii.js → y-BqfogMAB.js} +3 -3
  563. package/dist/{y-D0sAaVii.js.map → y-BqfogMAB.js.map} +1 -1
  564. package/dist/{zoom-QipiAl5W.js → zoom-C9MFjAaV.js} +5 -5
  565. package/dist/{zoom-QipiAl5W.js.map → zoom-C9MFjAaV.js.map} +1 -1
  566. package/dist/zoom-DPw8bba-.cjs +2 -0
  567. package/dist/{zoom-BiMNsz72.cjs.map → zoom-DPw8bba-.cjs.map} +1 -1
  568. package/package.json +7 -6
  569. package/dist/Axis-4gUOL8B7.js +0 -43
  570. package/dist/Axis-4gUOL8B7.js.map +0 -1
  571. package/dist/Axis-CkNn1wit.cjs +0 -2
  572. package/dist/Axis-CkNn1wit.cjs.map +0 -1
  573. package/dist/AxisTitle-Wkz-xeQL.cjs +0 -2
  574. package/dist/AxisTitle-Wkz-xeQL.cjs.map +0 -1
  575. package/dist/AxisTitle-v6_xcXZ-.js +0 -20
  576. package/dist/AxisTitle-v6_xcXZ-.js.map +0 -1
  577. package/dist/DropdownSelect-6kjXM6oW.js.map +0 -1
  578. package/dist/DropdownSelect-vt8yiB-g.cjs +0 -29
  579. package/dist/DropdownSelect-vt8yiB-g.cjs.map +0 -1
  580. package/dist/EmptyState-36lXXyui.js +0 -22
  581. package/dist/EmptyState-B8IpKGcL.cjs +0 -2
  582. package/dist/GraphEl-2IiUDxjR.js.map +0 -1
  583. package/dist/GraphEl-qrlfGPe3.cjs +0 -2
  584. package/dist/GraphEl-qrlfGPe3.cjs.map +0 -1
  585. package/dist/Modal-Cg8daIlV.js +0 -1030
  586. package/dist/Modal-Cg8daIlV.js.map +0 -1
  587. package/dist/Modal-CuuJdWkD.cjs +0 -46
  588. package/dist/Modal-CuuJdWkD.cjs.map +0 -1
  589. package/dist/ReferenceLine-CPMaAX0r.js +0 -128
  590. package/dist/ReferenceLine-CPMaAX0r.js.map +0 -1
  591. package/dist/ReferenceLine-D04j-zeV.cjs +0 -2
  592. package/dist/ReferenceLine-D04j-zeV.cjs.map +0 -1
  593. package/dist/RegressionLine-CW7iViH2.js +0 -49
  594. package/dist/RegressionLine-CW7iViH2.js.map +0 -1
  595. package/dist/RegressionLine-D-49RaHa.cjs +0 -2
  596. package/dist/RegressionLine-D-49RaHa.cjs.map +0 -1
  597. package/dist/Spinner-Bpz70q_g.js +0 -30
  598. package/dist/Spinner-Bpz70q_g.js.map +0 -1
  599. package/dist/Spinner-C6wLp85s.cjs +0 -2
  600. package/dist/Spinner-C6wLp85s.cjs.map +0 -1
  601. package/dist/Tooltip-6LIdPQGC.js +0 -46
  602. package/dist/Tooltip-6LIdPQGC.js.map +0 -1
  603. package/dist/Tooltip-Cpv0QohJ.cjs +0 -2
  604. package/dist/Tooltip-Cpv0QohJ.cjs.map +0 -1
  605. package/dist/Typography-BDULiwlF.cjs +0 -2
  606. package/dist/Typography-BDULiwlF.cjs.map +0 -1
  607. package/dist/Typography-LmZ9LEpe.js +0 -140
  608. package/dist/Typography-LmZ9LEpe.js.map +0 -1
  609. package/dist/XAxesLabels-CLZnBgSr.cjs +0 -2
  610. package/dist/XAxesLabels-CLZnBgSr.cjs.map +0 -1
  611. package/dist/XAxesLabels-SOSmso5J.js +0 -57
  612. package/dist/XAxesLabels-SOSmso5J.js.map +0 -1
  613. package/dist/XTicksAndGridLines-DuydSnZ_.js +0 -56
  614. package/dist/XTicksAndGridLines-DuydSnZ_.js.map +0 -1
  615. package/dist/XTicksAndGridLines-RKy7BVCO.cjs +0 -2
  616. package/dist/XTicksAndGridLines-RKy7BVCO.cjs.map +0 -1
  617. package/dist/YAxesLabels-DlDyLvhi.js +0 -52
  618. package/dist/YAxesLabels-DlDyLvhi.js.map +0 -1
  619. package/dist/YAxesLabels-Dqd259-t.cjs +0 -2
  620. package/dist/YAxesLabels-Dqd259-t.cjs.map +0 -1
  621. package/dist/YTicksAndGridLines-7t4MKtGw.js +0 -56
  622. package/dist/YTicksAndGridLines-7t4MKtGw.js.map +0 -1
  623. package/dist/YTicksAndGridLines-qGpRo_t1.cjs +0 -2
  624. package/dist/YTicksAndGridLines-qGpRo_t1.cjs.map +0 -1
  625. package/dist/checkIfMultiple-Dko_cBvE.cjs +0 -12
  626. package/dist/checkIfMultiple-Dko_cBvE.cjs.map +0 -1
  627. package/dist/checkIfMultiple-u2SmbiCf.js +0 -912
  628. package/dist/checkIfMultiple-u2SmbiCf.js.map +0 -1
  629. package/dist/customArea-1G1S78s_.cjs +0 -2
  630. package/dist/customArea-x4L4xwLl.js +0 -175
  631. package/dist/fetchAndParseData-Ba-_CgxS.cjs +0 -16
  632. package/dist/getGraphList-DuColTJM.js +0 -265
  633. package/dist/getSliderMarks-CUxPy36E.cjs +0 -6
  634. package/dist/getSliderMarks-CUxPy36E.cjs.map +0 -1
  635. package/dist/getSliderMarks-_pYOWEtO.js +0 -1023
  636. package/dist/getSliderMarks-_pYOWEtO.js.map +0 -1
  637. package/dist/index-9tDEUqOZ.js.map +0 -1
  638. package/dist/index-BHe3wsWF.cjs +0 -2
  639. package/dist/index-Bw_eHBVN.js +0 -77
  640. package/dist/index-C0bpbS4F.cjs +0 -2
  641. package/dist/index-C0bpbS4F.cjs.map +0 -1
  642. package/dist/index-CE9pmfxt.js +0 -430
  643. package/dist/index-CE9pmfxt.js.map +0 -1
  644. package/dist/index-CEJwW3lL.cjs +0 -2
  645. package/dist/index-CEJwW3lL.cjs.map +0 -1
  646. package/dist/index-CHPV5EwG-DBWUSD9b.js.map +0 -1
  647. package/dist/index-CHPV5EwG-DjM48pIC.cjs +0 -44
  648. package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +0 -1
  649. package/dist/index-CQ3e6Ewi.cjs +0 -2
  650. package/dist/index-Cm8NIdOO.cjs +0 -10
  651. package/dist/index-Cm8NIdOO.cjs.map +0 -1
  652. package/dist/index-CoZbeNM9.cjs +0 -2
  653. package/dist/index-CoZbeNM9.cjs.map +0 -1
  654. package/dist/index-Cwgh7i7X.js +0 -122
  655. package/dist/index-Cwgh7i7X.js.map +0 -1
  656. package/dist/index-D72cOtq7.cjs +0 -2
  657. package/dist/index-zZjQEHlm.js +0 -342
  658. package/dist/index-zZjQEHlm.js.map +0 -1
  659. package/dist/ordinal-BOeNbyae.cjs.map +0 -1
  660. package/dist/ordinal-w9Lu4Stb.js.map +0 -1
  661. package/dist/proxy-BYIC9BuT.js.map +0 -1
  662. package/dist/proxy-CKadx4lC.cjs +0 -2
  663. package/dist/proxy-CKadx4lC.cjs.map +0 -1
  664. package/dist/string2HTML-z7CwHXcx.cjs +0 -3
  665. package/dist/transformDataForAggregation-sBpdlX8n.js +0 -755
  666. package/dist/transformDataForGraphFromFile-ComYvzuz.js +0 -24
  667. package/dist/use-in-view-CEwlc_dd.cjs +0 -2
  668. package/dist/use-in-view-CEwlc_dd.cjs.map +0 -1
  669. package/dist/use-in-view-DR-UTB96.js.map +0 -1
  670. package/dist/zoom-BiMNsz72.cjs +0 -2
@@ -1,991 +1,802 @@
1
- import { j as h, m as rt } from "./index-CHPV5EwG-DBWUSD9b.js";
2
- import { useRef as vt, useState as Z, useEffect as Mt } from "react";
3
- import { s as _t } from "./index-CeVNqhMO.js";
4
- import { o as Nt } from "./index-DvVprvy6.js";
5
- import { i as Ht } from "./index-Bwrro8-q.js";
6
- import { G as Wt } from "./Modal-Cg8daIlV.js";
7
- import { u as ct } from "./Typography-LmZ9LEpe.js";
8
- import { n as St } from "./numberFormattingFunction-14YCbkN2.js";
9
- import { T as Rt } from "./Tooltip-6LIdPQGC.js";
10
- import { s as Gt } from "./string2HTML-oFCROsus.js";
11
- import { u as qt } from "./use-in-view-DR-UTB96.js";
12
- import { m as dt } from "./proxy-BYIC9BuT.js";
13
- import { A as Ft } from "./index-Cwgh7i7X.js";
14
- import { GraphHeader as Xt } from "./GraphHeader.js";
15
- import { GraphFooter as Yt } from "./GraphFooter.js";
16
- import { Colors as Tt } from "./Colors.js";
17
- import { g as Ut } from "./generateRandomString-za3IQGfQ.js";
18
- import { E as Zt } from "./EmptyState-36lXXyui.js";
19
- import { u as ot } from "./uniqBy-BHy4I8PK.js";
20
- function Ct(e, n) {
21
- let i;
22
- if (n === void 0)
23
- for (const a of e)
24
- a != null && (i < a || i === void 0 && a >= a) && (i = a);
1
+ import { c as Le, j as m, m as Xt } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as ae, useState as St, useEffectEvent as Ce, useEffect as de } from "react";
3
+ import { s as pe } from "./index-CeVNqhMO.js";
4
+ import { o as me } from "./index-BZQYSqar.js";
5
+ import { i as Te } from "./index-Bwrro8-q.js";
6
+ import { l as De } from "./Modal-DGcuAHyK.js";
7
+ import { j as Yt } from "./Typography-PxtFcnJb.js";
8
+ import { n as ye } from "./numberFormattingFunction-14YCbkN2.js";
9
+ import { T as Pe } from "./Tooltip-CwWUegPB.js";
10
+ import { s as ze } from "./string2HTML-DhG75NqA.js";
11
+ import { u as Ee } from "./use-in-view-Cxa7y1TH.js";
12
+ import { m as oe } from "./proxy-BxkFHwUw.js";
13
+ import { A as Be } from "./index-BqfRwk1n.js";
14
+ import { GraphHeader as Ie } from "./GraphHeader.js";
15
+ import { GraphFooter as Ae } from "./GraphFooter.js";
16
+ import { Colors as xe } from "./Colors.js";
17
+ import { g as He } from "./generateRandomString-za3IQGfQ.js";
18
+ import { E as We } from "./EmptyState-BZo1BbAn.js";
19
+ import { u as Bt } from "./uniqBy-BHy4I8PK.js";
20
+ import { a as Re, G as Ge } from "./GraphContainer-CRqzdKu2.js";
21
+ function ve(e, t) {
22
+ let o;
23
+ if (t === void 0)
24
+ for (const r of e)
25
+ r != null && (o < r || o === void 0 && r >= r) && (o = r);
25
26
  else {
26
- let a = -1;
27
- for (let l of e)
28
- (l = n(l, ++a, e)) != null && (i < l || i === void 0 && l >= l) && (i = l);
27
+ let r = -1;
28
+ for (let a of e)
29
+ (a = t(a, ++r, e)) != null && (o < a || o === void 0 && a >= a) && (o = a);
29
30
  }
30
- return i;
31
+ return o;
31
32
  }
32
- function Bt(e, n) {
33
- let i;
34
- if (n === void 0)
35
- for (const a of e)
36
- a != null && (i > a || i === void 0 && a >= a) && (i = a);
33
+ function Me(e, t) {
34
+ let o;
35
+ if (t === void 0)
36
+ for (const r of e)
37
+ r != null && (o > r || o === void 0 && r >= r) && (o = r);
37
38
  else {
38
- let a = -1;
39
- for (let l of e)
40
- (l = n(l, ++a, e)) != null && (i > l || i === void 0 && l >= l) && (i = l);
39
+ let r = -1;
40
+ for (let a of e)
41
+ (a = t(a, ++r, e)) != null && (o > a || o === void 0 && a >= a) && (o = a);
41
42
  }
42
- return i;
43
+ return o;
43
44
  }
44
- function pt(e, n) {
45
- let i = 0;
46
- if (n === void 0)
47
- for (let a of e)
48
- (a = +a) && (i += a);
45
+ function ie(e, t) {
46
+ let o = 0;
47
+ if (t === void 0)
48
+ for (let r of e)
49
+ (r = +r) && (o += r);
49
50
  else {
50
- let a = -1;
51
- for (let l of e)
52
- (l = +n(l, ++a, e)) && (i += l);
51
+ let r = -1;
52
+ for (let a of e)
53
+ (a = +t(a, ++r, e)) && (o += a);
53
54
  }
54
- return i;
55
+ return o;
55
56
  }
56
- function Qt(e) {
57
+ function _e(e) {
57
58
  return e.target.depth;
58
59
  }
59
- function Jt(e, n) {
60
- return e.sourceLinks.length ? e.depth : n - 1;
60
+ function qe(e, t) {
61
+ return e.sourceLinks.length ? e.depth : t - 1;
61
62
  }
62
- function mt(e) {
63
- return e.targetLinks.length ? e.depth : e.sourceLinks.length ? Bt(e.sourceLinks, Qt) - 1 : 0;
63
+ function re(e) {
64
+ return e.targetLinks.length ? e.depth : e.sourceLinks.length ? Me(e.sourceLinks, _e) - 1 : 0;
64
65
  }
65
- function ft(e) {
66
+ function Ut(e) {
66
67
  return function() {
67
68
  return e;
68
69
  };
69
70
  }
70
- function Ot(e, n) {
71
- return ht(e.source, n.source) || e.index - n.index;
71
+ function ke(e, t) {
72
+ return Zt(e.source, t.source) || e.index - t.index;
72
73
  }
73
- function Dt(e, n) {
74
- return ht(e.target, n.target) || e.index - n.index;
74
+ function be(e, t) {
75
+ return Zt(e.target, t.target) || e.index - t.index;
75
76
  }
76
- function ht(e, n) {
77
- return e.y0 - n.y0;
77
+ function Zt(e, t) {
78
+ return e.y0 - t.y0;
78
79
  }
79
- function yt(e) {
80
+ function se(e) {
80
81
  return e.value;
81
82
  }
82
- function Kt(e) {
83
+ function Fe(e) {
83
84
  return e.index;
84
85
  }
85
- function te(e) {
86
+ function Xe(e) {
86
87
  return e.nodes;
87
88
  }
88
- function ee(e) {
89
+ function Ye(e) {
89
90
  return e.links;
90
91
  }
91
- function Vt(e, n) {
92
- const i = e.get(n);
93
- if (!i) throw new Error("missing: " + n);
94
- return i;
95
- }
96
- function zt({ nodes: e }) {
97
- for (const n of e) {
98
- let i = n.y0, a = i;
99
- for (const l of n.sourceLinks)
100
- l.y0 = i + l.width / 2, i += l.width;
101
- for (const l of n.targetLinks)
102
- l.y1 = a + l.width / 2, a += l.width;
92
+ function je(e, t) {
93
+ const o = e.get(t);
94
+ if (!o) throw new Error("missing: " + t);
95
+ return o;
96
+ }
97
+ function we({ nodes: e }) {
98
+ for (const t of e) {
99
+ let o = t.y0, r = o;
100
+ for (const a of t.sourceLinks)
101
+ a.y0 = o + a.width / 2, o += a.width;
102
+ for (const a of t.targetLinks)
103
+ a.y1 = r + a.width / 2, r += a.width;
103
104
  }
104
105
  }
105
- function xt() {
106
- let e = 0, n = 0, i = 1, a = 1, l = 24, y = 8, g, p = Kt, x = Jt, k, v, w = te, b = ee, S = 6;
106
+ function le() {
107
+ let e = 0, t = 0, o = 1, r = 1, a = 24, y = 8, h, g = Fe, x = qe, b, j, $ = Xe, P = Ye, k = 6;
107
108
  function d() {
108
- const t = { nodes: w.apply(null, arguments), links: b.apply(null, arguments) };
109
- return T(t), L(t), z(t), F(t), W(t), zt(t), t;
109
+ const n = { nodes: $.apply(null, arguments), links: P.apply(null, arguments) };
110
+ return M(n), R(n), w(n), O(n), q(n), we(n), n;
110
111
  }
111
- d.update = function(t) {
112
- return zt(t), t;
113
- }, d.nodeId = function(t) {
114
- return arguments.length ? (p = typeof t == "function" ? t : ft(t), d) : p;
115
- }, d.nodeAlign = function(t) {
116
- return arguments.length ? (x = typeof t == "function" ? t : ft(t), d) : x;
117
- }, d.nodeSort = function(t) {
118
- return arguments.length ? (k = t, d) : k;
119
- }, d.nodeWidth = function(t) {
120
- return arguments.length ? (l = +t, d) : l;
121
- }, d.nodePadding = function(t) {
122
- return arguments.length ? (y = g = +t, d) : y;
123
- }, d.nodes = function(t) {
124
- return arguments.length ? (w = typeof t == "function" ? t : ft(t), d) : w;
125
- }, d.links = function(t) {
126
- return arguments.length ? (b = typeof t == "function" ? t : ft(t), d) : b;
127
- }, d.linkSort = function(t) {
128
- return arguments.length ? (v = t, d) : v;
129
- }, d.size = function(t) {
130
- return arguments.length ? (e = n = 0, i = +t[0], a = +t[1], d) : [i - e, a - n];
131
- }, d.extent = function(t) {
132
- return arguments.length ? (e = +t[0][0], i = +t[1][0], n = +t[0][1], a = +t[1][1], d) : [[e, n], [i, a]];
133
- }, d.iterations = function(t) {
134
- return arguments.length ? (S = +t, d) : S;
112
+ d.update = function(n) {
113
+ return we(n), n;
114
+ }, d.nodeId = function(n) {
115
+ return arguments.length ? (g = typeof n == "function" ? n : Ut(n), d) : g;
116
+ }, d.nodeAlign = function(n) {
117
+ return arguments.length ? (x = typeof n == "function" ? n : Ut(n), d) : x;
118
+ }, d.nodeSort = function(n) {
119
+ return arguments.length ? (b = n, d) : b;
120
+ }, d.nodeWidth = function(n) {
121
+ return arguments.length ? (a = +n, d) : a;
122
+ }, d.nodePadding = function(n) {
123
+ return arguments.length ? (y = h = +n, d) : y;
124
+ }, d.nodes = function(n) {
125
+ return arguments.length ? ($ = typeof n == "function" ? n : Ut(n), d) : $;
126
+ }, d.links = function(n) {
127
+ return arguments.length ? (P = typeof n == "function" ? n : Ut(n), d) : P;
128
+ }, d.linkSort = function(n) {
129
+ return arguments.length ? (j = n, d) : j;
130
+ }, d.size = function(n) {
131
+ return arguments.length ? (e = t = 0, o = +n[0], r = +n[1], d) : [o - e, r - t];
132
+ }, d.extent = function(n) {
133
+ return arguments.length ? (e = +n[0][0], o = +n[1][0], t = +n[0][1], r = +n[1][1], d) : [[e, t], [o, r]];
134
+ }, d.iterations = function(n) {
135
+ return arguments.length ? (k = +n, d) : k;
135
136
  };
136
- function T({ nodes: t, links: u }) {
137
- for (const [c, r] of t.entries())
138
- r.index = c, r.sourceLinks = [], r.targetLinks = [];
139
- const s = new Map(t.map((c, r) => [p(c, r, t), c]));
140
- for (const [c, r] of u.entries()) {
141
- r.index = c;
142
- let { source: f, target: m } = r;
143
- typeof f != "object" && (f = r.source = Vt(s, f)), typeof m != "object" && (m = r.target = Vt(s, m)), f.sourceLinks.push(r), m.targetLinks.push(r);
137
+ function M({ nodes: n, links: l }) {
138
+ for (const [u, i] of n.entries())
139
+ i.index = u, i.sourceLinks = [], i.targetLinks = [];
140
+ const s = new Map(n.map((u, i) => [g(u, i, n), u]));
141
+ for (const [u, i] of l.entries()) {
142
+ i.index = u;
143
+ let { source: f, target: v } = i;
144
+ typeof f != "object" && (f = i.source = je(s, f)), typeof v != "object" && (v = i.target = je(s, v)), f.sourceLinks.push(i), v.targetLinks.push(i);
144
145
  }
145
- if (v != null)
146
- for (const { sourceLinks: c, targetLinks: r } of t)
147
- c.sort(v), r.sort(v);
146
+ if (j != null)
147
+ for (const { sourceLinks: u, targetLinks: i } of n)
148
+ u.sort(j), i.sort(j);
148
149
  }
149
- function L({ nodes: t }) {
150
- for (const u of t)
151
- u.value = u.fixedValue === void 0 ? Math.max(pt(u.sourceLinks, yt), pt(u.targetLinks, yt)) : u.fixedValue;
150
+ function R({ nodes: n }) {
151
+ for (const l of n)
152
+ l.value = l.fixedValue === void 0 ? Math.max(ie(l.sourceLinks, se), ie(l.targetLinks, se)) : l.fixedValue;
152
153
  }
153
- function z({ nodes: t }) {
154
- const u = t.length;
155
- let s = new Set(t), c = /* @__PURE__ */ new Set(), r = 0;
154
+ function w({ nodes: n }) {
155
+ const l = n.length;
156
+ let s = new Set(n), u = /* @__PURE__ */ new Set(), i = 0;
156
157
  for (; s.size; ) {
157
158
  for (const f of s) {
158
- f.depth = r;
159
- for (const { target: m } of f.sourceLinks)
160
- c.add(m);
159
+ f.depth = i;
160
+ for (const { target: v } of f.sourceLinks)
161
+ u.add(v);
161
162
  }
162
- if (++r > u) throw new Error("circular link");
163
- s = c, c = /* @__PURE__ */ new Set();
163
+ if (++i > l) throw new Error("circular link");
164
+ s = u, u = /* @__PURE__ */ new Set();
164
165
  }
165
166
  }
166
- function F({ nodes: t }) {
167
- const u = t.length;
168
- let s = new Set(t), c = /* @__PURE__ */ new Set(), r = 0;
167
+ function O({ nodes: n }) {
168
+ const l = n.length;
169
+ let s = new Set(n), u = /* @__PURE__ */ new Set(), i = 0;
169
170
  for (; s.size; ) {
170
171
  for (const f of s) {
171
- f.height = r;
172
- for (const { source: m } of f.targetLinks)
173
- c.add(m);
172
+ f.height = i;
173
+ for (const { source: v } of f.targetLinks)
174
+ u.add(v);
174
175
  }
175
- if (++r > u) throw new Error("circular link");
176
- s = c, c = /* @__PURE__ */ new Set();
176
+ if (++i > l) throw new Error("circular link");
177
+ s = u, u = /* @__PURE__ */ new Set();
177
178
  }
178
179
  }
179
- function P({ nodes: t }) {
180
- const u = Ct(t, (r) => r.depth) + 1, s = (i - e - l) / (u - 1), c = new Array(u);
181
- for (const r of t) {
182
- const f = Math.max(0, Math.min(u - 1, Math.floor(x.call(null, r, u))));
183
- r.layer = f, r.x0 = e + f * s, r.x1 = r.x0 + l, c[f] ? c[f].push(r) : c[f] = [r];
180
+ function B({ nodes: n }) {
181
+ const l = ve(n, (i) => i.depth) + 1, s = (o - e - a) / (l - 1), u = new Array(l);
182
+ for (const i of n) {
183
+ const f = Math.max(0, Math.min(l - 1, Math.floor(x.call(null, i, l))));
184
+ i.layer = f, i.x0 = e + f * s, i.x1 = i.x0 + a, u[f] ? u[f].push(i) : u[f] = [i];
184
185
  }
185
- if (k) for (const r of c)
186
- r.sort(k);
187
- return c;
186
+ if (b) for (const i of u)
187
+ i.sort(b);
188
+ return u;
188
189
  }
189
- function C(t) {
190
- const u = Bt(t, (s) => (a - n - (s.length - 1) * g) / pt(s, yt));
191
- for (const s of t) {
192
- let c = n;
193
- for (const r of s) {
194
- r.y0 = c, r.y1 = c + r.value * u, c = r.y1 + g;
195
- for (const f of r.sourceLinks)
196
- f.width = f.value * u;
190
+ function H(n) {
191
+ const l = Me(n, (s) => (r - t - (s.length - 1) * h) / ie(s, se));
192
+ for (const s of n) {
193
+ let u = t;
194
+ for (const i of s) {
195
+ i.y0 = u, i.y1 = u + i.value * l, u = i.y1 + h;
196
+ for (const f of i.sourceLinks)
197
+ f.width = f.value * l;
197
198
  }
198
- c = (a - c + g) / (s.length + 1);
199
- for (let r = 0; r < s.length; ++r) {
200
- const f = s[r];
201
- f.y0 += c * (r + 1), f.y1 += c * (r + 1);
199
+ u = (r - u + h) / (s.length + 1);
200
+ for (let i = 0; i < s.length; ++i) {
201
+ const f = s[i];
202
+ f.y0 += u * (i + 1), f.y1 += u * (i + 1);
202
203
  }
203
204
  I(s);
204
205
  }
205
206
  }
206
- function W(t) {
207
- const u = P(t);
208
- g = Math.min(y, (a - n) / (Ct(u, (s) => s.length) - 1)), C(u);
209
- for (let s = 0; s < S; ++s) {
210
- const c = Math.pow(0.99, s), r = Math.max(1 - c, (s + 1) / S);
211
- et(u, c, r), tt(u, c, r);
207
+ function q(n) {
208
+ const l = B(n);
209
+ h = Math.min(y, (r - t) / (ve(l, (s) => s.length) - 1)), H(l);
210
+ for (let s = 0; s < k; ++s) {
211
+ const u = Math.pow(0.99, s), i = Math.max(1 - u, (s + 1) / k);
212
+ F(l, u, i), G(l, u, i);
212
213
  }
213
214
  }
214
- function tt(t, u, s) {
215
- for (let c = 1, r = t.length; c < r; ++c) {
216
- const f = t[c];
217
- for (const m of f) {
218
- let O = 0, D = 0;
219
- for (const { source: E, value: _ } of m.targetLinks) {
220
- let H = _ * (m.layer - E.layer);
221
- O += Y(E, m) * H, D += H;
215
+ function G(n, l, s) {
216
+ for (let u = 1, i = n.length; u < i; ++u) {
217
+ const f = n[u];
218
+ for (const v of f) {
219
+ let S = 0, z = 0;
220
+ for (const { source: W, value: X } of v.targetLinks) {
221
+ let Y = X * (v.layer - W.layer);
222
+ S += V(W, v) * Y, z += Y;
222
223
  }
223
- if (!(D > 0)) continue;
224
- let R = (O / D - m.y0) * u;
225
- m.y0 += R, m.y1 += R, V(m);
224
+ if (!(z > 0)) continue;
225
+ let T = (S / z - v.y0) * l;
226
+ v.y0 += T, v.y1 += T, kt(v);
226
227
  }
227
- k === void 0 && f.sort(ht), B(f, s);
228
+ b === void 0 && f.sort(Zt), _(f, s);
228
229
  }
229
230
  }
230
- function et(t, u, s) {
231
- for (let c = t.length, r = c - 2; r >= 0; --r) {
232
- const f = t[r];
233
- for (const m of f) {
234
- let O = 0, D = 0;
235
- for (const { target: E, value: _ } of m.sourceLinks) {
236
- let H = _ * (E.layer - m.layer);
237
- O += nt(m, E) * H, D += H;
231
+ function F(n, l, s) {
232
+ for (let u = n.length, i = u - 2; i >= 0; --i) {
233
+ const f = n[i];
234
+ for (const v of f) {
235
+ let S = 0, z = 0;
236
+ for (const { target: W, value: X } of v.sourceLinks) {
237
+ let Y = X * (W.layer - v.layer);
238
+ S += C(v, W) * Y, z += Y;
238
239
  }
239
- if (!(D > 0)) continue;
240
- let R = (O / D - m.y0) * u;
241
- m.y0 += R, m.y1 += R, V(m);
240
+ if (!(z > 0)) continue;
241
+ let T = (S / z - v.y0) * l;
242
+ v.y0 += T, v.y1 += T, kt(v);
242
243
  }
243
- k === void 0 && f.sort(ht), B(f, s);
244
+ b === void 0 && f.sort(Zt), _(f, s);
244
245
  }
245
246
  }
246
- function B(t, u) {
247
- const s = t.length >> 1, c = t[s];
248
- Q(t, c.y0 - g, s - 1, u), X(t, c.y1 + g, s + 1, u), Q(t, a, t.length - 1, u), X(t, n, 0, u);
247
+ function _(n, l) {
248
+ const s = n.length >> 1, u = n[s];
249
+ K(n, u.y0 - h, s - 1, l), N(n, u.y1 + h, s + 1, l), K(n, r, n.length - 1, l), N(n, t, 0, l);
249
250
  }
250
- function X(t, u, s, c) {
251
- for (; s < t.length; ++s) {
252
- const r = t[s], f = (u - r.y0) * c;
253
- f > 1e-6 && (r.y0 += f, r.y1 += f), u = r.y1 + g;
251
+ function N(n, l, s, u) {
252
+ for (; s < n.length; ++s) {
253
+ const i = n[s], f = (l - i.y0) * u;
254
+ f > 1e-6 && (i.y0 += f, i.y1 += f), l = i.y1 + h;
254
255
  }
255
256
  }
256
- function Q(t, u, s, c) {
257
+ function K(n, l, s, u) {
257
258
  for (; s >= 0; --s) {
258
- const r = t[s], f = (r.y1 - u) * c;
259
- f > 1e-6 && (r.y0 -= f, r.y1 -= f), u = r.y0 - g;
259
+ const i = n[s], f = (i.y1 - l) * u;
260
+ f > 1e-6 && (i.y0 -= f, i.y1 -= f), l = i.y0 - h;
260
261
  }
261
262
  }
262
- function V({ sourceLinks: t, targetLinks: u }) {
263
- if (v === void 0) {
264
- for (const { source: { sourceLinks: s } } of u)
265
- s.sort(Dt);
266
- for (const { target: { targetLinks: s } } of t)
267
- s.sort(Ot);
263
+ function kt({ sourceLinks: n, targetLinks: l }) {
264
+ if (j === void 0) {
265
+ for (const { source: { sourceLinks: s } } of l)
266
+ s.sort(be);
267
+ for (const { target: { targetLinks: s } } of n)
268
+ s.sort(ke);
268
269
  }
269
270
  }
270
- function I(t) {
271
- if (v === void 0)
272
- for (const { sourceLinks: u, targetLinks: s } of t)
273
- u.sort(Dt), s.sort(Ot);
271
+ function I(n) {
272
+ if (j === void 0)
273
+ for (const { sourceLinks: l, targetLinks: s } of n)
274
+ l.sort(be), s.sort(ke);
274
275
  }
275
- function Y(t, u) {
276
- let s = t.y0 - (t.sourceLinks.length - 1) * g / 2;
277
- for (const { target: c, width: r } of t.sourceLinks) {
278
- if (c === u) break;
279
- s += r + g;
276
+ function V(n, l) {
277
+ let s = n.y0 - (n.sourceLinks.length - 1) * h / 2;
278
+ for (const { target: u, width: i } of n.sourceLinks) {
279
+ if (u === l) break;
280
+ s += i + h;
280
281
  }
281
- for (const { source: c, width: r } of u.targetLinks) {
282
- if (c === t) break;
283
- s -= r;
282
+ for (const { source: u, width: i } of l.targetLinks) {
283
+ if (u === n) break;
284
+ s -= i;
284
285
  }
285
286
  return s;
286
287
  }
287
- function nt(t, u) {
288
- let s = u.y0 - (u.targetLinks.length - 1) * g / 2;
289
- for (const { source: c, width: r } of u.targetLinks) {
290
- if (c === t) break;
291
- s += r + g;
288
+ function C(n, l) {
289
+ let s = l.y0 - (l.targetLinks.length - 1) * h / 2;
290
+ for (const { source: u, width: i } of l.targetLinks) {
291
+ if (u === n) break;
292
+ s += i + h;
292
293
  }
293
- for (const { target: c, width: r } of t.sourceLinks) {
294
- if (c === u) break;
295
- s -= r;
294
+ for (const { target: u, width: i } of n.sourceLinks) {
295
+ if (u === l) break;
296
+ s -= i;
296
297
  }
297
298
  return s;
298
299
  }
299
300
  return d;
300
301
  }
301
- var kt = Math.PI, wt = 2 * kt, K = 1e-6, ne = wt - K;
302
- function bt() {
302
+ var ue = Math.PI, ce = 2 * ue, Ct = 1e-6, Ue = ce - Ct;
303
+ function fe() {
303
304
  this._x0 = this._y0 = // start of current subpath
304
305
  this._x1 = this._y1 = null, this._ = "";
305
306
  }
306
- function It() {
307
- return new bt();
307
+ function Se() {
308
+ return new fe();
308
309
  }
309
- bt.prototype = It.prototype = {
310
- constructor: bt,
311
- moveTo: function(e, n) {
312
- this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +n);
310
+ fe.prototype = Se.prototype = {
311
+ constructor: fe,
312
+ moveTo: function(e, t) {
313
+ this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
313
314
  },
314
315
  closePath: function() {
315
316
  this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
316
317
  },
317
- lineTo: function(e, n) {
318
- this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +n);
318
+ lineTo: function(e, t) {
319
+ this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +t);
319
320
  },
320
- quadraticCurveTo: function(e, n, i, a) {
321
- this._ += "Q" + +e + "," + +n + "," + (this._x1 = +i) + "," + (this._y1 = +a);
321
+ quadraticCurveTo: function(e, t, o, r) {
322
+ this._ += "Q" + +e + "," + +t + "," + (this._x1 = +o) + "," + (this._y1 = +r);
322
323
  },
323
- bezierCurveTo: function(e, n, i, a, l, y) {
324
- this._ += "C" + +e + "," + +n + "," + +i + "," + +a + "," + (this._x1 = +l) + "," + (this._y1 = +y);
324
+ bezierCurveTo: function(e, t, o, r, a, y) {
325
+ this._ += "C" + +e + "," + +t + "," + +o + "," + +r + "," + (this._x1 = +a) + "," + (this._y1 = +y);
325
326
  },
326
- arcTo: function(e, n, i, a, l) {
327
- e = +e, n = +n, i = +i, a = +a, l = +l;
328
- var y = this._x1, g = this._y1, p = i - e, x = a - n, k = y - e, v = g - n, w = k * k + v * v;
329
- if (l < 0) throw new Error("negative radius: " + l);
327
+ arcTo: function(e, t, o, r, a) {
328
+ e = +e, t = +t, o = +o, r = +r, a = +a;
329
+ var y = this._x1, h = this._y1, g = o - e, x = r - t, b = y - e, j = h - t, $ = b * b + j * j;
330
+ if (a < 0) throw new Error("negative radius: " + a);
330
331
  if (this._x1 === null)
331
- this._ += "M" + (this._x1 = e) + "," + (this._y1 = n);
332
- else if (w > K) if (!(Math.abs(v * p - x * k) > K) || !l)
333
- this._ += "L" + (this._x1 = e) + "," + (this._y1 = n);
332
+ this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
333
+ else if ($ > Ct) if (!(Math.abs(j * g - x * b) > Ct) || !a)
334
+ this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
334
335
  else {
335
- var b = i - y, S = a - g, d = p * p + x * x, T = b * b + S * S, L = Math.sqrt(d), z = Math.sqrt(w), F = l * Math.tan((kt - Math.acos((d + w - T) / (2 * L * z))) / 2), P = F / z, C = F / L;
336
- Math.abs(P - 1) > K && (this._ += "L" + (e + P * k) + "," + (n + P * v)), this._ += "A" + l + "," + l + ",0,0," + +(v * b > k * S) + "," + (this._x1 = e + C * p) + "," + (this._y1 = n + C * x);
336
+ var P = o - y, k = r - h, d = g * g + x * x, M = P * P + k * k, R = Math.sqrt(d), w = Math.sqrt($), O = a * Math.tan((ue - Math.acos((d + $ - M) / (2 * R * w))) / 2), B = O / w, H = O / R;
337
+ Math.abs(B - 1) > Ct && (this._ += "L" + (e + B * b) + "," + (t + B * j)), this._ += "A" + a + "," + a + ",0,0," + +(j * P > b * k) + "," + (this._x1 = e + H * g) + "," + (this._y1 = t + H * x);
337
338
  }
338
339
  },
339
- arc: function(e, n, i, a, l, y) {
340
- e = +e, n = +n, i = +i, y = !!y;
341
- var g = i * Math.cos(a), p = i * Math.sin(a), x = e + g, k = n + p, v = 1 ^ y, w = y ? a - l : l - a;
342
- if (i < 0) throw new Error("negative radius: " + i);
343
- this._x1 === null ? this._ += "M" + x + "," + k : (Math.abs(this._x1 - x) > K || Math.abs(this._y1 - k) > K) && (this._ += "L" + x + "," + k), i && (w < 0 && (w = w % wt + wt), w > ne ? this._ += "A" + i + "," + i + ",0,1," + v + "," + (e - g) + "," + (n - p) + "A" + i + "," + i + ",0,1," + v + "," + (this._x1 = x) + "," + (this._y1 = k) : w > K && (this._ += "A" + i + "," + i + ",0," + +(w >= kt) + "," + v + "," + (this._x1 = e + i * Math.cos(l)) + "," + (this._y1 = n + i * Math.sin(l))));
340
+ arc: function(e, t, o, r, a, y) {
341
+ e = +e, t = +t, o = +o, y = !!y;
342
+ var h = o * Math.cos(r), g = o * Math.sin(r), x = e + h, b = t + g, j = 1 ^ y, $ = y ? r - a : a - r;
343
+ if (o < 0) throw new Error("negative radius: " + o);
344
+ this._x1 === null ? this._ += "M" + x + "," + b : (Math.abs(this._x1 - x) > Ct || Math.abs(this._y1 - b) > Ct) && (this._ += "L" + x + "," + b), o && ($ < 0 && ($ = $ % ce + ce), $ > Ue ? this._ += "A" + o + "," + o + ",0,1," + j + "," + (e - h) + "," + (t - g) + "A" + o + "," + o + ",0,1," + j + "," + (this._x1 = x) + "," + (this._y1 = b) : $ > Ct && (this._ += "A" + o + "," + o + ",0," + +($ >= ue) + "," + j + "," + (this._x1 = e + o * Math.cos(a)) + "," + (this._y1 = t + o * Math.sin(a))));
344
345
  },
345
- rect: function(e, n, i, a) {
346
- this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +n) + "h" + +i + "v" + +a + "h" + -i + "Z";
346
+ rect: function(e, t, o, r) {
347
+ this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +o + "v" + +r + "h" + -o + "Z";
347
348
  },
348
349
  toString: function() {
349
350
  return this._;
350
351
  }
351
352
  };
352
- function Pt(e) {
353
+ function $e(e) {
353
354
  return function() {
354
355
  return e;
355
356
  };
356
357
  }
357
- function oe(e) {
358
+ function Ze(e) {
358
359
  return e[0];
359
360
  }
360
- function ie(e) {
361
+ function Qe(e) {
361
362
  return e[1];
362
363
  }
363
- var re = Array.prototype.slice;
364
- function se(e) {
364
+ var Je = Array.prototype.slice;
365
+ function Ke(e) {
365
366
  return e.source;
366
367
  }
367
- function ae(e) {
368
+ function tn(e) {
368
369
  return e.target;
369
370
  }
370
- function le(e) {
371
- var n = se, i = ae, a = oe, l = ie, y = null;
372
- function g() {
373
- var p, x = re.call(arguments), k = n.apply(this, x), v = i.apply(this, x);
374
- if (y || (y = p = It()), e(y, +a.apply(this, (x[0] = k, x)), +l.apply(this, x), +a.apply(this, (x[0] = v, x)), +l.apply(this, x)), p) return y = null, p + "" || null;
371
+ function en(e) {
372
+ var t = Ke, o = tn, r = Ze, a = Qe, y = null;
373
+ function h() {
374
+ var g, x = Je.call(arguments), b = t.apply(this, x), j = o.apply(this, x);
375
+ if (y || (y = g = Se()), e(y, +r.apply(this, (x[0] = b, x)), +a.apply(this, x), +r.apply(this, (x[0] = j, x)), +a.apply(this, x)), g) return y = null, g + "" || null;
375
376
  }
376
- return g.source = function(p) {
377
- return arguments.length ? (n = p, g) : n;
378
- }, g.target = function(p) {
379
- return arguments.length ? (i = p, g) : i;
380
- }, g.x = function(p) {
381
- return arguments.length ? (a = typeof p == "function" ? p : Pt(+p), g) : a;
382
- }, g.y = function(p) {
383
- return arguments.length ? (l = typeof p == "function" ? p : Pt(+p), g) : l;
384
- }, g.context = function(p) {
385
- return arguments.length ? (y = p ?? null, g) : y;
386
- }, g;
387
- }
388
- function ue(e, n, i, a, l) {
389
- e.moveTo(n, i), e.bezierCurveTo(n = (n + a) / 2, i, n, l, a, l);
390
- }
391
- function ce() {
392
- return le(ue);
393
- }
394
- function fe(e) {
377
+ return h.source = function(g) {
378
+ return arguments.length ? (t = g, h) : t;
379
+ }, h.target = function(g) {
380
+ return arguments.length ? (o = g, h) : o;
381
+ }, h.x = function(g) {
382
+ return arguments.length ? (r = typeof g == "function" ? g : $e(+g), h) : r;
383
+ }, h.y = function(g) {
384
+ return arguments.length ? (a = typeof g == "function" ? g : $e(+g), h) : a;
385
+ }, h.context = function(g) {
386
+ return arguments.length ? (y = g ?? null, h) : y;
387
+ }, h;
388
+ }
389
+ function nn(e, t, o, r, a) {
390
+ e.moveTo(t, o), e.bezierCurveTo(t = (t + r) / 2, o, t, a, r, a);
391
+ }
392
+ function on() {
393
+ return en(nn);
394
+ }
395
+ function rn(e) {
395
396
  return [e.source.x1, e.y0];
396
397
  }
397
- function he(e) {
398
+ function sn(e) {
398
399
  return [e.target.x0, e.y1];
399
400
  }
400
- function ge() {
401
- return ce().source(fe).target(he);
401
+ function ln() {
402
+ return on().source(rn).target(sn);
402
403
  }
403
- function de(e) {
404
- const {
405
- data: n,
406
- showLabels: i,
404
+ function an(e) {
405
+ const t = Le.c(135), {
406
+ data: o,
407
+ showLabels: r,
407
408
  leftMargin: a,
408
- rightMargin: l,
409
- truncateBy: y,
409
+ rightMargin: y,
410
+ truncateBy: h,
410
411
  width: g,
411
- height: p,
412
- topMargin: x,
413
- bottomMargin: k,
414
- tooltip: v,
415
- onSeriesMouseOver: w,
416
- suffix: b,
417
- prefix: S,
418
- showValues: d,
419
- onSeriesMouseClick: T,
420
- nodePadding: L,
421
- nodeWidth: z,
422
- id: F,
423
- highlightedSourceDataPoints: P,
424
- highlightedTargetDataPoints: C,
425
- defaultLinkOpacity: W,
426
- sourceTitle: tt,
427
- targetTitle: et,
428
- animate: B,
429
- sortNodes: X,
430
- resetSelectionOnDoubleClick: Q,
431
- detailsOnClick: V,
432
- styles: I,
433
- classNames: Y,
434
- precision: nt,
435
- customLayers: t
436
- } = e, u = vt(null), s = qt(u, {
437
- once: B.once,
438
- amount: B.amount
439
- }), [c, r] = Z(void 0), [f, m] = Z(void 0), [O, D] = Z(void 0), [R, E] = Z(void 0), [_, H] = Z(void 0), A = {
440
- top: x,
441
- bottom: k,
412
+ height: x,
413
+ topMargin: b,
414
+ bottomMargin: j,
415
+ tooltip: $,
416
+ onSeriesMouseOver: P,
417
+ suffix: k,
418
+ prefix: d,
419
+ showValues: M,
420
+ onSeriesMouseClick: R,
421
+ nodePadding: w,
422
+ nodeWidth: O,
423
+ id: B,
424
+ highlightedSourceDataPoints: H,
425
+ highlightedTargetDataPoints: q,
426
+ defaultLinkOpacity: G,
427
+ sourceTitle: F,
428
+ targetTitle: _,
429
+ animate: N,
430
+ sortNodes: K,
431
+ resetSelectionOnDoubleClick: kt,
432
+ detailsOnClick: I,
433
+ styles: V,
434
+ classNames: C,
435
+ precision: n,
436
+ customLayers: l
437
+ } = e, s = ae(null);
438
+ let u;
439
+ t[0] !== N.amount || t[1] !== N.once ? (u = {
440
+ once: N.once,
441
+ amount: N.amount
442
+ }, t[0] = N.amount, t[1] = N.once, t[2] = u) : u = t[2];
443
+ const i = Ee(s, u), [f, v] = St(void 0), [S, z] = St(void 0), [T, W] = St(void 0), [X, Y] = St(void 0), [Ot, Nt] = St(void 0);
444
+ let L;
445
+ t[3] !== j || t[4] !== a || t[5] !== y || t[6] !== b ? (L = {
446
+ top: b,
447
+ bottom: j,
442
448
  left: a,
443
- right: l
444
- }, G = g - A.left - A.right, q = p - A.top - A.bottom, st = X === "mostReadable" ? xt().nodeWidth(z).nodePadding(L).size([G, q]).nodeAlign(mt) : X === "none" ? xt().nodeWidth(z).nodePadding(L).size([G, q]).nodeAlign(mt).nodeSort(() => null).linkSort(() => null) : xt().nodeWidth(z).nodePadding(L).size([G, q]).nodeAlign(mt).nodeSort(
445
- X === "desc" ? (o, N) => (N.value || 0) - (o.value || 0) : (o, N) => (o.value || 0) - (N.value || 0)
446
- ), { nodes: at, links: lt } = st(n), J = ge();
447
- return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
448
- /* @__PURE__ */ h.jsxs(
449
- dt.svg,
450
- {
451
- width: `${g}px`,
452
- height: `${p}px`,
453
- viewBox: `0 0 ${g} ${p}`,
454
- style: { marginLeft: "auto", marginRight: "auto" },
455
- direction: "ltr",
456
- ref: u,
457
- children: [
458
- tt ? /* @__PURE__ */ h.jsx(
459
- "text",
460
- {
461
- x: A.left,
462
- y: A.top - 10,
463
- className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100",
464
- style: { textAnchor: "start" },
465
- children: tt
466
- }
467
- ) : null,
468
- et ? /* @__PURE__ */ h.jsx(
469
- "text",
470
- {
471
- x: g - A.right,
472
- y: A.top - 10,
473
- className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100",
474
- style: { textAnchor: "end" },
475
- children: et
476
- }
477
- ) : null,
478
- /* @__PURE__ */ h.jsxs("g", { transform: `translate(${A.left},${A.top})`, children: [
479
- t.filter((o) => o.position === "before").map((o) => o.layer),
480
- at.filter((o) => o.type === "source").map((o, N) => /* @__PURE__ */ h.jsx(
481
- "g",
482
- {
483
- onMouseEnter: () => {
484
- D(o);
485
- },
486
- onMouseLeave: () => {
487
- D(void 0);
488
- },
489
- children: /* @__PURE__ */ h.jsxs("g", { transform: `translate(${o.x0},${o.y0})`, children: [
490
- /* @__PURE__ */ h.jsx(
491
- "rect",
492
- {
493
- x: 0,
494
- y: 0,
495
- width: (o.x1 || 0) - (o.x0 || 0),
496
- height: (o.y1 || 0) - (o.y0 || 0),
497
- style: { fill: o.color }
498
- }
499
- ),
500
- i || d ? /* @__PURE__ */ h.jsx(
501
- "foreignObject",
502
- {
503
- y: 0 - L / 2,
504
- x: 0 - a,
505
- width: a,
506
- height: (o.y1 || 0) - (o.y0 || 0) + L,
507
- children: /* @__PURE__ */ h.jsxs(
508
- "div",
509
- {
510
- className: "flex flex-col gap-0.5 justify-center py-0 px-1.5",
511
- style: {
512
- height: `${(o.y1 || 0) - (o.y0 || 0) + L}px`,
513
- overflow: "visible"
514
- },
515
- children: [
516
- i ? /* @__PURE__ */ h.jsx(
517
- ct,
518
- {
519
- marginBottom: d ? "3xs" : "none",
520
- size: "sm",
521
- leading: "none",
522
- className: rt(
523
- "sankey-right-label text-right",
524
- Y?.graphObjectValues
525
- ),
526
- style: {
527
- hyphens: "auto",
528
- color: o.color,
529
- ...I?.graphObjectValues
530
- },
531
- children: `${o.label}`.length < y ? `${o.label}` : `${`${o.label}`.substring(0, y)}...`
532
- }
533
- ) : null,
534
- d ? /* @__PURE__ */ h.jsx(
535
- ct,
536
- {
537
- marginBottom: "none",
538
- size: "sm",
539
- leading: "none",
540
- className: rt(
541
- "sankey-right-value text-right font-bold",
542
- Y?.graphObjectValues
543
- ),
544
- style: {
545
- hyphens: "auto",
546
- color: o.color,
547
- ...I?.graphObjectValues
548
- },
549
- children: St(o.value, "NA", nt, S, b)
550
- }
551
- ) : null
552
- ]
553
- }
554
- )
555
- }
556
- ) : null
557
- ] })
558
- },
559
- N
560
- )),
561
- at.filter((o) => o.type === "target").map((o, N) => /* @__PURE__ */ h.jsx(
562
- "g",
563
- {
564
- onMouseEnter: () => {
565
- D(o);
566
- },
567
- onMouseLeave: () => {
568
- D(void 0);
569
- },
570
- children: /* @__PURE__ */ h.jsxs("g", { transform: `translate(${o.x0},${o.y0})`, children: [
571
- /* @__PURE__ */ h.jsx(
572
- "rect",
573
- {
574
- x: 0,
575
- y: 0,
576
- width: (o.x1 || 0) - (o.x0 || 0),
577
- height: (o.y1 || 0) - (o.y0 || 0),
578
- style: { fill: o.color }
579
- }
580
- ),
581
- i || d ? /* @__PURE__ */ h.jsx(
582
- "foreignObject",
583
- {
584
- y: 0 - L / 2,
585
- x: z,
586
- width: l - z,
587
- height: (o.y1 || 0) - (o.y0 || 0) + L,
588
- children: /* @__PURE__ */ h.jsxs(
589
- "div",
590
- {
591
- className: "flex flex-col gap-0.5 justify-center py-0 px-1.5",
592
- style: {
593
- height: `${(o.y1 || 0) - (o.y0 || 0) + L}px`
594
- },
595
- children: [
596
- i ? /* @__PURE__ */ h.jsx(
597
- ct,
598
- {
599
- marginBottom: d ? "3xs" : "none",
600
- size: "sm",
601
- leading: "none",
602
- className: rt(
603
- "sankey-left-label text-left",
604
- Y?.graphObjectValues
605
- ),
606
- style: {
607
- hyphens: "auto",
608
- color: o.color,
609
- ...I?.graphObjectValues
610
- },
611
- children: `${o.label}`.length < y ? `${o.label}` : `${`${o.label}`.substring(0, y)}...`
612
- }
613
- ) : null,
614
- d ? /* @__PURE__ */ h.jsx(
615
- ct,
616
- {
617
- size: "sm",
618
- leading: "none",
619
- marginBottom: "none",
620
- className: rt(
621
- "sankey-left-value text-left font-bold",
622
- Y?.graphObjectValues
623
- ),
624
- style: {
625
- hyphens: "auto",
626
- color: o.color,
627
- ...I?.graphObjectValues
628
- },
629
- children: St(o.value, "NA", nt, S, b)
630
- }
631
- ) : null
632
- ]
633
- }
634
- )
635
- }
636
- ) : null
637
- ] })
638
- },
639
- N
640
- )),
641
- /* @__PURE__ */ h.jsx("defs", { children: lt.map((o, N) => /* @__PURE__ */ h.jsxs(
642
- "linearGradient",
643
- {
644
- id: `${F}-gradient-${N}`,
645
- x1: "0%",
646
- y1: "0%",
647
- x2: "100%",
648
- y2: "0%",
649
- gradientUnits: "userSpaceOnUse",
650
- children: [
651
- /* @__PURE__ */ h.jsx(
652
- "stop",
653
- {
654
- offset: "0%",
655
- style: {
656
- stopColor: o.source.color,
657
- stopOpacity: 1
658
- }
659
- }
660
- ),
661
- /* @__PURE__ */ h.jsx(
662
- "stop",
663
- {
664
- offset: "100%",
665
- style: {
666
- stopColor: o.target.color,
667
- stopOpacity: 1
668
- }
669
- }
670
- )
671
- ]
672
- },
673
- N
674
- )) }),
675
- /* @__PURE__ */ h.jsx("g", { children: /* @__PURE__ */ h.jsx(Ft, { children: lt.map((o, N) => /* @__PURE__ */ h.jsx(
676
- dt.g,
677
- {
678
- className: "undp-viz-g-with-hover",
679
- onMouseEnter: (U) => {
680
- r(o.data), H(U.clientY), E(U.clientX), w?.(o);
681
- },
682
- onMouseMove: (U) => {
683
- r(o.data), H(U.clientY), E(U.clientX);
684
- },
685
- onClick: () => {
686
- (T || V) && (// eslint-disable-next-line @typescript-eslint/no-explicit-any
687
- Ht(f, o.data) && Q ? (m(void 0), T?.(void 0)) : (m(o.data), T?.(o.data)));
688
- },
689
- onMouseLeave: () => {
690
- r(void 0), E(void 0), H(void 0), w?.(void 0);
691
- },
692
- variants: {
693
- initial: {
694
- opacity: O ? (
695
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
696
- o.source.name === O.name || // eslint-disable-next-line @typescript-eslint/no-explicit-any
697
- o.target.name === O.name ? 0.85 : W
698
- ) : (P.length !== 0 || C.length !== 0) && (P.indexOf(
699
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
700
- o.source.label
701
- ) !== -1 || C.indexOf(
702
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
703
- o.target.label
704
- ) !== -1) ? 0.85 : W
705
- },
706
- whileInView: {
707
- opacity: O ? (
708
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
709
- o.source.name === O.name || // eslint-disable-next-line @typescript-eslint/no-explicit-any
710
- o.target.name === O.name ? 0.85 : W
711
- ) : (P.length !== 0 || C.length !== 0) && (P.indexOf(
712
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
713
- o.source.label
714
- ) !== -1 || C.indexOf(
715
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
716
- o.target.label
717
- ) !== -1) ? 0.85 : W,
718
- transition: { duration: B.duration }
719
- }
720
- },
721
- initial: "initial",
722
- animate: s ? "whileInView" : "initial",
723
- exit: { opacity: 0, transition: { duration: B.duration } },
724
- children: /* @__PURE__ */ h.jsx(
725
- dt.path,
726
- {
727
- d: J(o) || "",
728
- style: {
729
- stroke: `url(#${F}-gradient-${N})`,
730
- strokeWidth: o.width,
731
- fill: "none"
732
- },
733
- exit: { opacity: 0, transition: { duration: B.duration } },
734
- variants: {
735
- initial: {
736
- pathLength: 0,
737
- opacity: 1
738
- },
739
- whileInView: {
740
- pathLength: 1,
741
- opacity: 1,
742
- transition: { duration: B.duration }
743
- }
744
- },
745
- initial: "initial",
746
- animate: s ? "whileInView" : "initial"
747
- },
748
- `${o.source}-${o.target}`
749
- )
750
- },
751
- `${o.source}-${o.target}`
752
- )) }) }),
753
- t.filter((o) => o.position === "after").map((o) => o.layer)
754
- ] })
755
- ]
449
+ right: y
450
+ }, t[3] = j, t[4] = a, t[5] = y, t[6] = b, t[7] = L) : L = t[7];
451
+ const p = L, jt = g - p.left - p.right, wt = x - p.top - p.bottom;
452
+ let tt, st, lt, U, at, ut, Z, Q, ct, ft, J, et, nt, ot, ht, gt;
453
+ if (t[8] !== N.duration || t[9] !== C?.graphObjectValues || t[10] !== l || t[11] !== o || t[12] !== G || t[13] !== I || t[14] !== wt || t[15] !== jt || t[16] !== x || t[17] !== H || t[18] !== q || t[19] !== B || t[20] !== i || t[21] !== a || t[22] !== p.left || t[23] !== p.right || t[24] !== p.top || t[25] !== S || t[26] !== w || t[27] !== O || t[28] !== R || t[29] !== P || t[30] !== n || t[31] !== d || t[32] !== kt || t[33] !== y || t[34] !== T || t[35] !== r || t[36] !== M || t[37] !== K || t[38] !== F || t[39] !== V?.graphObjectValues || t[40] !== k || t[41] !== _ || t[42] !== h || t[43] !== g) {
454
+ const It = K === "mostReadable" ? le().nodeWidth(O).nodePadding(w).size([jt, wt]).nodeAlign(re) : K === "none" ? le().nodeWidth(O).nodePadding(w).size([jt, wt]).nodeAlign(re).nodeSort(xn).linkSort(yn) : le().nodeWidth(O).nodePadding(w).size([jt, wt]).nodeAlign(re).nodeSort(K === "desc" ? mn : pn), {
455
+ nodes: D,
456
+ links: Tt
457
+ } = It(o), Dt = ln();
458
+ st = oe.svg, ht = `${g}px`, gt = `${x}px`, lt = `0 0 ${g} ${x}`, t[60] === Symbol.for("react.memo_cache_sentinel") ? (U = {
459
+ marginLeft: "auto",
460
+ marginRight: "auto"
461
+ }, t[60] = U) : U = t[60], at = "ltr", ut = s, t[61] !== p.left || t[62] !== p.top || t[63] !== F ? (Z = F ? /* @__PURE__ */ m.jsx("text", { x: p.left, y: p.top - 10, className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100", style: {
462
+ textAnchor: "start"
463
+ }, children: F }) : null, t[61] = p.left, t[62] = p.top, t[63] = F, t[64] = Z) : Z = t[64], t[65] !== p.right || t[66] !== p.top || t[67] !== _ || t[68] !== g ? (Q = _ ? /* @__PURE__ */ m.jsx("text", { x: g - p.right, y: p.top - 10, className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100", style: {
464
+ textAnchor: "end"
465
+ }, children: _ }) : null, t[65] = p.right, t[66] = p.top, t[67] = _, t[68] = g, t[69] = Q) : Q = t[69], ft = `translate(${p.left},${p.top})`, t[70] !== l ? (J = l.filter(dn).map(gn), t[70] = l, t[71] = J) : J = t[71];
466
+ let Lt;
467
+ t[72] !== C?.graphObjectValues || t[73] !== a || t[74] !== w || t[75] !== n || t[76] !== d || t[77] !== r || t[78] !== M || t[79] !== V?.graphObjectValues || t[80] !== k || t[81] !== h ? (Lt = (c, xt) => /* @__PURE__ */ m.jsx("g", { onMouseEnter: () => {
468
+ W(c);
469
+ }, onMouseLeave: () => {
470
+ W(void 0);
471
+ }, children: /* @__PURE__ */ m.jsxs("g", { transform: `translate(${c.x0},${c.y0})`, children: [
472
+ /* @__PURE__ */ m.jsx("rect", { x: 0, y: 0, width: (c.x1 || 0) - (c.x0 || 0), height: (c.y1 || 0) - (c.y0 || 0), style: {
473
+ fill: c.color
474
+ } }),
475
+ r || M ? /* @__PURE__ */ m.jsx("foreignObject", { y: 0 - w / 2, x: 0 - a, width: a, height: (c.y1 || 0) - (c.y0 || 0) + w, children: /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col gap-0.5 justify-center py-0 px-1.5", style: {
476
+ height: `${(c.y1 || 0) - (c.y0 || 0) + w}px`,
477
+ overflow: "visible"
478
+ }, children: [
479
+ r ? /* @__PURE__ */ m.jsx(Yt, { marginBottom: M ? "3xs" : "none", size: "sm", leading: "none", className: Xt("sankey-right-label text-right", C?.graphObjectValues), style: {
480
+ hyphens: "auto",
481
+ color: c.color,
482
+ ...V?.graphObjectValues
483
+ }, children: `${c.label}`.length < h ? `${c.label}` : `${`${c.label}`.substring(0, h)}...` }) : null,
484
+ M ? /* @__PURE__ */ m.jsx(Yt, { marginBottom: "none", size: "sm", leading: "none", className: Xt("sankey-right-value text-right font-bold", C?.graphObjectValues), style: {
485
+ hyphens: "auto",
486
+ color: c.color,
487
+ ...V?.graphObjectValues
488
+ }, children: ye(c.value, "NA", n, d, k) }) : null
489
+ ] }) }) : null
490
+ ] }) }, xt), t[72] = C?.graphObjectValues, t[73] = a, t[74] = w, t[75] = n, t[76] = d, t[77] = r, t[78] = M, t[79] = V?.graphObjectValues, t[80] = k, t[81] = h, t[82] = Lt) : Lt = t[82], et = D.filter(hn).map(Lt);
491
+ let bt;
492
+ t[83] !== C?.graphObjectValues || t[84] !== w || t[85] !== O || t[86] !== n || t[87] !== d || t[88] !== y || t[89] !== r || t[90] !== M || t[91] !== V?.graphObjectValues || t[92] !== k || t[93] !== h ? (bt = (c, xt) => /* @__PURE__ */ m.jsx("g", { onMouseEnter: () => {
493
+ W(c);
494
+ }, onMouseLeave: () => {
495
+ W(void 0);
496
+ }, children: /* @__PURE__ */ m.jsxs("g", { transform: `translate(${c.x0},${c.y0})`, children: [
497
+ /* @__PURE__ */ m.jsx("rect", { x: 0, y: 0, width: (c.x1 || 0) - (c.x0 || 0), height: (c.y1 || 0) - (c.y0 || 0), style: {
498
+ fill: c.color
499
+ } }),
500
+ r || M ? /* @__PURE__ */ m.jsx("foreignObject", { y: 0 - w / 2, x: O, width: y - O, height: (c.y1 || 0) - (c.y0 || 0) + w, children: /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col gap-0.5 justify-center py-0 px-1.5", style: {
501
+ height: `${(c.y1 || 0) - (c.y0 || 0) + w}px`
502
+ }, children: [
503
+ r ? /* @__PURE__ */ m.jsx(Yt, { marginBottom: M ? "3xs" : "none", size: "sm", leading: "none", className: Xt("sankey-left-label text-left", C?.graphObjectValues), style: {
504
+ hyphens: "auto",
505
+ color: c.color,
506
+ ...V?.graphObjectValues
507
+ }, children: `${c.label}`.length < h ? `${c.label}` : `${`${c.label}`.substring(0, h)}...` }) : null,
508
+ M ? /* @__PURE__ */ m.jsx(Yt, { size: "sm", leading: "none", marginBottom: "none", className: Xt("sankey-left-value text-left font-bold", C?.graphObjectValues), style: {
509
+ hyphens: "auto",
510
+ color: c.color,
511
+ ...V?.graphObjectValues
512
+ }, children: ye(c.value, "NA", n, d, k) }) : null
513
+ ] }) }) : null
514
+ ] }) }, xt), t[83] = C?.graphObjectValues, t[84] = w, t[85] = O, t[86] = n, t[87] = d, t[88] = y, t[89] = r, t[90] = M, t[91] = V?.graphObjectValues, t[92] = k, t[93] = h, t[94] = bt) : bt = t[94], nt = D.filter(fn).map(bt);
515
+ let Mt;
516
+ t[95] !== B ? (Mt = (c, xt) => /* @__PURE__ */ m.jsxs("linearGradient", { id: `${B}-gradient-${xt}`, x1: "0%", y1: "0%", x2: "100%", y2: "0%", gradientUnits: "userSpaceOnUse", children: [
517
+ /* @__PURE__ */ m.jsx("stop", { offset: "0%", style: {
518
+ stopColor: c.source.color,
519
+ stopOpacity: 1
520
+ } }),
521
+ /* @__PURE__ */ m.jsx("stop", { offset: "100%", style: {
522
+ stopColor: c.target.color,
523
+ stopOpacity: 1
524
+ } })
525
+ ] }, xt), t[95] = B, t[96] = Mt) : Mt = t[96], ot = /* @__PURE__ */ m.jsx("defs", { children: Tt.map(Mt) }), tt = Be, ct = Tt.map((c, xt) => /* @__PURE__ */ m.jsx(oe.g, { className: "undp-viz-g-with-hover", onMouseEnter: (vt) => {
526
+ v(c.data), Nt(vt.clientY), Y(vt.clientX), P?.(c);
527
+ }, onMouseMove: (vt) => {
528
+ v(c.data), Nt(vt.clientY), Y(vt.clientX);
529
+ }, onClick: () => {
530
+ (R || I) && (Te(S, c.data) && kt ? (z(void 0), R?.(void 0)) : (z(c.data), R?.(c.data)));
531
+ }, onMouseLeave: () => {
532
+ v(void 0), Y(void 0), Nt(void 0), P?.(void 0);
533
+ }, variants: {
534
+ initial: {
535
+ opacity: T ? c.source.name === T.name || c.target.name === T.name ? 0.85 : G : (H.length !== 0 || q.length !== 0) && (H.indexOf(c.source.label) !== -1 || q.indexOf(c.target.label) !== -1) ? 0.85 : G
536
+ },
537
+ whileInView: {
538
+ opacity: T ? c.source.name === T.name || c.target.name === T.name ? 0.85 : G : (H.length !== 0 || q.length !== 0) && (H.indexOf(c.source.label) !== -1 || q.indexOf(c.target.label) !== -1) ? 0.85 : G,
539
+ transition: {
540
+ duration: N.duration
541
+ }
756
542
  }
757
- ),
758
- c && v && R && _ ? /* @__PURE__ */ h.jsx(
759
- Rt,
760
- {
761
- data: c,
762
- body: v,
763
- xPos: R,
764
- yPos: _,
765
- backgroundStyle: I?.tooltip,
766
- className: Y?.tooltip
543
+ }, initial: "initial", animate: i ? "whileInView" : "initial", exit: {
544
+ opacity: 0,
545
+ transition: {
546
+ duration: N.duration
767
547
  }
768
- ) : null,
769
- V && f !== void 0 ? /* @__PURE__ */ h.jsx(
770
- Wt,
771
- {
772
- open: f !== void 0,
773
- onClose: () => {
774
- m(void 0);
775
- },
776
- children: /* @__PURE__ */ h.jsx(
777
- "div",
778
- {
779
- className: "graph-modal-content m-0",
780
- dangerouslySetInnerHTML: typeof V == "string" ? { __html: Gt(V, f) } : void 0,
781
- children: typeof V == "function" ? V(f) : null
782
- }
783
- )
548
+ }, children: /* @__PURE__ */ m.jsx(oe.path, { d: Dt(c) || "", style: {
549
+ stroke: `url(#${B}-gradient-${xt})`,
550
+ strokeWidth: c.width,
551
+ fill: "none"
552
+ }, exit: {
553
+ opacity: 0,
554
+ transition: {
555
+ duration: N.duration
784
556
  }
785
- ) : null
786
- ] });
787
- }
788
- function Ve(e) {
789
- const {
790
- data: n,
791
- graphTitle: i,
557
+ }, variants: {
558
+ initial: {
559
+ pathLength: 0,
560
+ opacity: 1
561
+ },
562
+ whileInView: {
563
+ pathLength: 1,
564
+ opacity: 1,
565
+ transition: {
566
+ duration: N.duration
567
+ }
568
+ }
569
+ }, initial: "initial", animate: i ? "whileInView" : "initial" }, `${c.source}-${c.target}`) }, `${c.source}-${c.target}`)), t[8] = N.duration, t[9] = C?.graphObjectValues, t[10] = l, t[11] = o, t[12] = G, t[13] = I, t[14] = wt, t[15] = jt, t[16] = x, t[17] = H, t[18] = q, t[19] = B, t[20] = i, t[21] = a, t[22] = p.left, t[23] = p.right, t[24] = p.top, t[25] = S, t[26] = w, t[27] = O, t[28] = R, t[29] = P, t[30] = n, t[31] = d, t[32] = kt, t[33] = y, t[34] = T, t[35] = r, t[36] = M, t[37] = K, t[38] = F, t[39] = V?.graphObjectValues, t[40] = k, t[41] = _, t[42] = h, t[43] = g, t[44] = tt, t[45] = st, t[46] = lt, t[47] = U, t[48] = at, t[49] = ut, t[50] = Z, t[51] = Q, t[52] = ct, t[53] = ft, t[54] = J, t[55] = et, t[56] = nt, t[57] = ot, t[58] = ht, t[59] = gt;
570
+ } else
571
+ tt = t[44], st = t[45], lt = t[46], U = t[47], at = t[48], ut = t[49], Z = t[50], Q = t[51], ct = t[52], ft = t[53], J = t[54], et = t[55], nt = t[56], ot = t[57], ht = t[58], gt = t[59];
572
+ let dt;
573
+ t[97] !== tt || t[98] !== ct ? (dt = /* @__PURE__ */ m.jsx("g", { children: /* @__PURE__ */ m.jsx(tt, { children: ct }) }), t[97] = tt, t[98] = ct, t[99] = dt) : dt = t[99];
574
+ let pt;
575
+ t[100] !== l ? (pt = l.filter(cn).map(un), t[100] = l, t[101] = pt) : pt = t[101];
576
+ let mt;
577
+ t[102] !== dt || t[103] !== pt || t[104] !== ft || t[105] !== J || t[106] !== et || t[107] !== nt || t[108] !== ot ? (mt = /* @__PURE__ */ m.jsxs("g", { transform: ft, children: [
578
+ J,
579
+ et,
580
+ nt,
581
+ ot,
582
+ dt,
583
+ pt
584
+ ] }), t[102] = dt, t[103] = pt, t[104] = ft, t[105] = J, t[106] = et, t[107] = nt, t[108] = ot, t[109] = mt) : mt = t[109];
585
+ let it;
586
+ t[110] !== st || t[111] !== lt || t[112] !== U || t[113] !== at || t[114] !== ut || t[115] !== Z || t[116] !== Q || t[117] !== mt || t[118] !== ht || t[119] !== gt ? (it = /* @__PURE__ */ m.jsxs(st, { width: ht, height: gt, viewBox: lt, style: U, direction: at, ref: ut, children: [
587
+ Z,
588
+ Q,
589
+ mt
590
+ ] }), t[110] = st, t[111] = lt, t[112] = U, t[113] = at, t[114] = ut, t[115] = Z, t[116] = Q, t[117] = mt, t[118] = ht, t[119] = gt, t[120] = it) : it = t[120];
591
+ let yt;
592
+ t[121] !== C?.tooltip || t[122] !== X || t[123] !== Ot || t[124] !== f || t[125] !== V?.tooltip || t[126] !== $ ? (yt = f && $ && X && Ot ? /* @__PURE__ */ m.jsx(Pe, { data: f, body: $, xPos: X, yPos: Ot, backgroundStyle: V?.tooltip, className: C?.tooltip }) : null, t[121] = C?.tooltip, t[122] = X, t[123] = Ot, t[124] = f, t[125] = V?.tooltip, t[126] = $, t[127] = yt) : yt = t[127];
593
+ let rt;
594
+ t[128] !== I || t[129] !== S ? (rt = I && S !== void 0 ? /* @__PURE__ */ m.jsx(De, { open: S !== void 0, onClose: () => {
595
+ z(void 0);
596
+ }, children: /* @__PURE__ */ m.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof I == "string" ? {
597
+ __html: ze(I, S)
598
+ } : void 0, children: typeof I == "function" ? I(S) : null }) }) : null, t[128] = I, t[129] = S, t[130] = rt) : rt = t[130];
599
+ let $t;
600
+ return t[131] !== it || t[132] !== yt || t[133] !== rt ? ($t = /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
601
+ it,
602
+ yt,
603
+ rt
604
+ ] }), t[131] = it, t[132] = yt, t[133] = rt, t[134] = $t) : $t = t[134], $t;
605
+ }
606
+ function un(e) {
607
+ return e.layer;
608
+ }
609
+ function cn(e) {
610
+ return e.position === "after";
611
+ }
612
+ function fn(e) {
613
+ return e.type === "target";
614
+ }
615
+ function hn(e) {
616
+ return e.type === "source";
617
+ }
618
+ function gn(e) {
619
+ return e.layer;
620
+ }
621
+ function dn(e) {
622
+ return e.position === "before";
623
+ }
624
+ function pn(e, t) {
625
+ return (e.value || 0) - (t.value || 0);
626
+ }
627
+ function mn(e, t) {
628
+ return (t.value || 0) - (e.value || 0);
629
+ }
630
+ function yn() {
631
+ return null;
632
+ }
633
+ function xn() {
634
+ return null;
635
+ }
636
+ function Yn(e) {
637
+ const t = Le.c(93), {
638
+ data: o,
639
+ graphTitle: r,
792
640
  sources: a,
793
- graphDescription: l,
794
- showLabels: y = !0,
795
- leftMargin: g = 75,
796
- rightMargin: p = 75,
797
- topMargin: x = 30,
798
- bottomMargin: k = 10,
799
- truncateBy: v = 999,
800
- height: w,
801
- width: b,
802
- footNote: S,
803
- padding: d,
804
- backgroundColor: T,
805
- tooltip: L,
806
- onSeriesMouseOver: z,
807
- suffix: F = "",
808
- prefix: P = "",
809
- relativeHeight: C,
810
- showValues: W = !0,
811
- graphID: tt,
812
- onSeriesMouseClick: et,
813
- graphDownload: B = !1,
814
- dataDownload: X = !1,
815
- fillContainer: Q = !0,
816
- language: V = "en",
817
- minHeight: I = 0,
818
- theme: Y = "light",
819
- ariaLabel: nt,
820
- sourceColors: t,
821
- targetColors: u,
822
- sourceColorDomain: s,
823
- targetColorDomain: c,
824
- nodePadding: r = 5,
825
- nodeWidth: f = 5,
826
- highlightedSourceDataPoints: m = [],
827
- highlightedTargetDataPoints: O = [],
828
- defaultLinkOpacity: D = 0.3,
829
- sourceTitle: R,
830
- targetTitle: E,
831
- sortNodes: _ = "mostReadable",
832
- resetSelectionOnDoubleClick: H = !0,
833
- detailsOnClick: A,
834
- styles: G,
835
- classNames: q,
836
- animate: st = !1,
837
- precision: at = 2,
838
- customLayers: lt = []
839
- } = e, [J, o] = Z(0), [N, U] = Z(0), [jt, At] = Z(void 0), it = vt(null), $t = vt(null);
840
- return Mt(() => {
841
- const j = ot(n, "source", !0).map((M) => ({
842
- name: `source_${M}`,
641
+ graphDescription: y,
642
+ showLabels: h,
643
+ leftMargin: g,
644
+ rightMargin: x,
645
+ topMargin: b,
646
+ bottomMargin: j,
647
+ truncateBy: $,
648
+ height: P,
649
+ width: k,
650
+ footNote: d,
651
+ padding: M,
652
+ backgroundColor: R,
653
+ tooltip: w,
654
+ onSeriesMouseOver: O,
655
+ suffix: B,
656
+ prefix: H,
657
+ relativeHeight: q,
658
+ showValues: G,
659
+ graphID: F,
660
+ onSeriesMouseClick: _,
661
+ graphDownload: N,
662
+ dataDownload: K,
663
+ fillContainer: kt,
664
+ language: I,
665
+ minHeight: V,
666
+ theme: C,
667
+ ariaLabel: n,
668
+ sourceColors: l,
669
+ targetColors: s,
670
+ sourceColorDomain: u,
671
+ targetColorDomain: i,
672
+ nodePadding: f,
673
+ nodeWidth: v,
674
+ highlightedSourceDataPoints: S,
675
+ highlightedTargetDataPoints: z,
676
+ defaultLinkOpacity: T,
677
+ sourceTitle: W,
678
+ targetTitle: X,
679
+ sortNodes: Y,
680
+ resetSelectionOnDoubleClick: Ot,
681
+ detailsOnClick: Nt,
682
+ styles: L,
683
+ classNames: p,
684
+ animate: jt,
685
+ precision: wt,
686
+ customLayers: tt
687
+ } = e, st = h === void 0 ? !0 : h, lt = g === void 0 ? 75 : g, U = x === void 0 ? 75 : x, at = b === void 0 ? 30 : b, ut = j === void 0 ? 10 : j, Z = $ === void 0 ? 999 : $, Q = R === void 0 ? !1 : R, ct = B === void 0 ? "" : B, ft = H === void 0 ? "" : H, J = G === void 0 ? !0 : G, et = N === void 0 ? !1 : N, nt = K === void 0 ? !1 : K, ot = kt === void 0 ? !0 : kt, ht = I === void 0 ? "en" : I, gt = V === void 0 ? 0 : V, dt = C === void 0 ? "light" : C, pt = f === void 0 ? 5 : f, mt = v === void 0 ? 5 : v;
688
+ let it;
689
+ t[0] !== S ? (it = S === void 0 ? [] : S, t[0] = S, t[1] = it) : it = t[1];
690
+ const yt = it;
691
+ let rt;
692
+ t[2] !== z ? (rt = z === void 0 ? [] : z, t[2] = z, t[3] = rt) : rt = t[3];
693
+ const $t = rt, It = T === void 0 ? 0.3 : T, D = Y === void 0 ? "mostReadable" : Y, Tt = Ot === void 0 ? !0 : Ot, Dt = jt === void 0 ? !1 : jt, Lt = wt === void 0 ? 2 : wt;
694
+ let bt;
695
+ t[4] !== tt ? (bt = tt === void 0 ? [] : tt, t[4] = tt, t[5] = bt) : bt = t[5];
696
+ const Mt = bt, [c, xt] = St(0), [vt, Oe] = St(0), [At, Ne] = St(void 0), Qt = ae(null), he = ae(null);
697
+ let Ht;
698
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (Ht = (Vt) => {
699
+ Ne(Vt);
700
+ }, t[6] = Ht) : Ht = t[6];
701
+ const Jt = Ce(Ht);
702
+ let Wt;
703
+ t[7] !== o || t[8] !== D || t[9] !== u || t[10] !== l || t[11] !== i || t[12] !== s || t[13] !== Jt ? (Wt = () => {
704
+ const Vt = Bt(o, "source", !0).map((E) => ({
705
+ name: `source_${E}`,
843
706
  type: "source",
844
- label: `${M}`,
845
- color: typeof t == "string" || !t ? t || Tt.graphMainColor : t[(s || ot(n, "source", !0)).findIndex(
846
- ($) => `${$}` == `${M}`
847
- ) > t.length ? t.length - 1 : (s || ot(n, "source", !0)).findIndex(
848
- ($) => `${$}` == `${M}`
849
- )],
850
- totalValue: _t(n.filter(($) => `${$.source}` == `${M}`).map(($) => $.value))
851
- })), ut = _ === "asc" || _ === "desc" ? Nt(j, ["totalValue"], [_]) : j, Lt = ot(n, "target", !0).map((M) => ({
852
- name: `target_${M}`,
707
+ label: `${E}`,
708
+ color: typeof l == "string" || !l ? l || xe.graphMainColor : l[(u || Bt(o, "source", !0)).findIndex((A) => `${A}` == `${E}`) > l.length ? l.length - 1 : (u || Bt(o, "source", !0)).findIndex((A) => `${A}` == `${E}`)],
709
+ totalValue: pe(o.filter((A) => `${A.source}` == `${E}`).map(Sn))
710
+ })), Ft = D === "asc" || D === "desc" ? me(Vt, ["totalValue"], [D]) : Vt, ge = Bt(o, "target", !0).map((E) => ({
711
+ name: `target_${E}`,
853
712
  type: "target",
854
- label: `${M}`,
855
- color: typeof u == "string" || !u ? u || Tt.graphMainColor : u[(c || ot(n, "target", !0)).findIndex(
856
- ($) => `${$}` == `${M}`
857
- ) > u.length ? u.length - 1 : (c || ot(n, "target", !0)).findIndex(
858
- ($) => `${$}` == `${M}`
859
- )],
860
- totalValue: _t(n.filter(($) => `${$.target}` == `${M}`).map(($) => $.value))
861
- })), Et = _ === "asc" || _ === "desc" ? Nt(Lt, ["totalValue"], [_]) : Lt, gt = [...ut, ...Et];
862
- At({
863
- nodes: gt,
864
- links: n.map((M) => ({
865
- source: gt.findIndex(($) => $.name === `source_${M.source}`),
866
- target: gt.findIndex(($) => $.name === `target_${M.target}`),
867
- value: M.value,
868
- data: { ...M }
713
+ label: `${E}`,
714
+ color: typeof s == "string" || !s ? s || xe.graphMainColor : s[(i || Bt(o, "target", !0)).findIndex((A) => `${A}` == `${E}`) > s.length ? s.length - 1 : (i || Bt(o, "target", !0)).findIndex((A) => `${A}` == `${E}`)],
715
+ totalValue: pe(o.filter((A) => `${A.target}` == `${E}`).map(Mn))
716
+ })), Ve = D === "asc" || D === "desc" ? me(ge, ["totalValue"], [D]) : ge, ne = [...Ft, ...Ve];
717
+ Jt({
718
+ nodes: ne,
719
+ links: o.map((E) => ({
720
+ source: ne.findIndex((A) => A.name === `source_${E.source}`),
721
+ target: ne.findIndex((A) => A.name === `target_${E.target}`),
722
+ value: E.value,
723
+ data: {
724
+ ...E
725
+ }
869
726
  }))
870
727
  });
871
- }, [n, _, s, t, c, u]), Mt(() => {
872
- const j = new ResizeObserver((ut) => {
873
- o(b || ut[0].target.clientWidth || 620), U(w || ut[0].target.clientHeight || 480);
728
+ }, t[7] = o, t[8] = D, t[9] = u, t[10] = l, t[11] = i, t[12] = s, t[13] = Jt, t[14] = Wt) : Wt = t[14];
729
+ let Rt;
730
+ t[15] !== o || t[16] !== D || t[17] !== u || t[18] !== l || t[19] !== i || t[20] !== s ? (Rt = [o, D, u, l, i, s], t[15] = o, t[16] = D, t[17] = u, t[18] = l, t[19] = i, t[20] = s, t[21] = Rt) : Rt = t[21], de(Wt, Rt);
731
+ let Gt, _t;
732
+ t[22] === Symbol.for("react.memo_cache_sentinel") ? (Gt = () => {
733
+ const Vt = new ResizeObserver((Ft) => {
734
+ xt(Ft[0].target.clientWidth || 620), Oe(Ft[0].target.clientHeight || 480);
874
735
  });
875
- return it.current && (U(it.current.clientHeight || 480), o(it.current.clientWidth || 620), b || j.observe(it.current)), () => j.disconnect();
876
- }, [b, w]), /* @__PURE__ */ h.jsx(
877
- "div",
878
- {
879
- className: `${Y || "light"} flex ${b ? "grow-0" : "grow"} ${Q ? "w-full" : "w-fit"} `,
880
- dir: V === "he" || V === "ar" ? "rtl" : void 0,
881
- children: /* @__PURE__ */ h.jsx(
882
- "div",
883
- {
884
- className: rt(
885
- `${T ? T === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${V || "en"}`,
886
- Q ? "w-full" : "w-fit",
887
- q?.graphContainer
888
- ),
889
- style: {
890
- ...G?.graphContainer || {},
891
- ...T && T !== !0 ? { backgroundColor: T } : {}
892
- },
893
- id: tt,
894
- ref: $t,
895
- "aria-label": nt || `${i ? `The graph shows ${i}. ` : ""}This is a sankey chart showing flow. ${l ? ` ${l}` : ""}`,
896
- children: /* @__PURE__ */ h.jsx(
897
- "div",
898
- {
899
- className: "flex grow",
900
- style: { padding: T ? d || "1rem" : d || 0 },
901
- children: /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col gap-4 w-full grow justify-between", children: [
902
- i || l || B || X ? /* @__PURE__ */ h.jsx(
903
- Xt,
904
- {
905
- styles: {
906
- title: G?.title,
907
- description: G?.description
908
- },
909
- classNames: {
910
- title: q?.title,
911
- description: q?.description
912
- },
913
- graphTitle: i,
914
- graphDescription: l,
915
- width: b,
916
- graphDownload: B ? $t.current : void 0,
917
- dataDownload: X ? n.map((j) => j.data).filter((j) => j !== void 0).length > 0 ? n.map((j) => j.data).filter((j) => j !== void 0) : n.filter((j) => j !== void 0) : null
918
- }
919
- ) : null,
920
- /* @__PURE__ */ h.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: n.length === 0 ? /* @__PURE__ */ h.jsx(Zt, {}) : /* @__PURE__ */ h.jsx(
921
- "div",
922
- {
923
- className: "flex flex-col grow justify-center gap-3 w-full leading-0",
924
- ref: it,
925
- "aria-label": "Graph area",
926
- children: (b || J) && (w || N) && jt ? /* @__PURE__ */ h.jsx(
927
- de,
928
- {
929
- data: jt,
930
- width: b || J,
931
- nodePadding: r,
932
- nodeWidth: f,
933
- height: Math.max(
934
- I,
935
- w || (C ? I ? (b || J) * C > I ? (b || J) * C : I : (b || J) * C : N)
936
- ),
937
- showLabels: y,
938
- leftMargin: g,
939
- rightMargin: p,
940
- topMargin: x,
941
- bottomMargin: k,
942
- truncateBy: v,
943
- tooltip: L,
944
- onSeriesMouseOver: z,
945
- showValues: W,
946
- suffix: F,
947
- prefix: P,
948
- onSeriesMouseClick: et,
949
- id: Ut(8),
950
- highlightedSourceDataPoints: m.map((j) => `${j}`),
951
- highlightedTargetDataPoints: O.map((j) => `${j}`),
952
- defaultLinkOpacity: D,
953
- sourceTitle: R,
954
- targetTitle: E,
955
- sortNodes: _,
956
- resetSelectionOnDoubleClick: H,
957
- styles: G,
958
- classNames: q,
959
- detailsOnClick: A,
960
- animate: st === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : st || { duration: 0, once: !0, amount: 0 },
961
- precision: at,
962
- customLayers: lt
963
- }
964
- ) : null
965
- }
966
- ) }),
967
- a || S ? /* @__PURE__ */ h.jsx(
968
- Yt,
969
- {
970
- styles: { footnote: G?.footnote, source: G?.source },
971
- classNames: {
972
- footnote: q?.footnote,
973
- source: q?.source
974
- },
975
- sources: a,
976
- footNote: S,
977
- width: b
978
- }
979
- ) : null
980
- ] })
981
- }
982
- )
983
- }
984
- )
985
- }
986
- );
736
+ return Qt.current && Vt.observe(Qt.current), () => Vt.disconnect();
737
+ }, _t = [], t[22] = Gt, t[23] = _t) : (Gt = t[22], _t = t[23]), de(Gt, _t);
738
+ const Kt = p?.graphContainer, te = L?.graphContainer, ee = ot ? void 0 : k;
739
+ let Pt;
740
+ t[24] !== p?.description || t[25] !== p?.title || t[26] !== o || t[27] !== nt || t[28] !== y || t[29] !== et || t[30] !== r || t[31] !== L?.description || t[32] !== L?.title || t[33] !== k ? (Pt = r || y || et || nt ? /* @__PURE__ */ m.jsx(Ie, { styles: {
741
+ title: L?.title,
742
+ description: L?.description
743
+ }, classNames: {
744
+ title: p?.title,
745
+ description: p?.description
746
+ }, graphTitle: r, graphDescription: y, width: k, graphDownload: et ? he : void 0, dataDownload: nt ? o.map(Ln).filter($n).length > 0 ? o.map(wn).filter(jn) : o.filter(bn) : null }) : null, t[24] = p?.description, t[25] = p?.title, t[26] = o, t[27] = nt, t[28] = y, t[29] = et, t[30] = r, t[31] = L?.description, t[32] = L?.title, t[33] = k, t[34] = Pt) : Pt = t[34];
747
+ let zt;
748
+ t[35] !== Dt || t[36] !== ut || t[37] !== p || t[38] !== Mt || t[39] !== o.length || t[40] !== It || t[41] !== Nt || t[42] !== ot || t[43] !== yt || t[44] !== $t || t[45] !== lt || t[46] !== pt || t[47] !== mt || t[48] !== _ || t[49] !== O || t[50] !== Lt || t[51] !== ft || t[52] !== Tt || t[53] !== U || t[54] !== At || t[55] !== st || t[56] !== J || t[57] !== D || t[58] !== W || t[59] !== L || t[60] !== ct || t[61] !== vt || t[62] !== c || t[63] !== X || t[64] !== w || t[65] !== at || t[66] !== Z || t[67] !== k ? (zt = o.length === 0 ? /* @__PURE__ */ m.jsx(We, {}) : /* @__PURE__ */ m.jsx(Re, { ref: Qt, children: c && vt && At ? /* @__PURE__ */ m.jsx(an, { data: At, nodePadding: pt, nodeWidth: mt, width: ot || !k || c < k ? c : k, height: vt, showLabels: st, leftMargin: lt, rightMargin: U, topMargin: at, bottomMargin: ut, truncateBy: Z, tooltip: w, onSeriesMouseOver: O, showValues: J, suffix: ct, prefix: ft, onSeriesMouseClick: _, id: He(8), highlightedSourceDataPoints: yt.map(kn), highlightedTargetDataPoints: $t.map(vn), defaultLinkOpacity: It, sourceTitle: W, targetTitle: X, sortNodes: D, resetSelectionOnDoubleClick: Tt, styles: L, classNames: p, detailsOnClick: Nt, animate: Dt === !0 ? {
749
+ duration: 0.5,
750
+ once: !0,
751
+ amount: 0.5
752
+ } : Dt || {
753
+ duration: 0,
754
+ once: !0,
755
+ amount: 0
756
+ }, precision: Lt, customLayers: Mt }) : null }), t[35] = Dt, t[36] = ut, t[37] = p, t[38] = Mt, t[39] = o.length, t[40] = It, t[41] = Nt, t[42] = ot, t[43] = yt, t[44] = $t, t[45] = lt, t[46] = pt, t[47] = mt, t[48] = _, t[49] = O, t[50] = Lt, t[51] = ft, t[52] = Tt, t[53] = U, t[54] = At, t[55] = st, t[56] = J, t[57] = D, t[58] = W, t[59] = L, t[60] = ct, t[61] = vt, t[62] = c, t[63] = X, t[64] = w, t[65] = at, t[66] = Z, t[67] = k, t[68] = zt) : zt = t[68];
757
+ let Et;
758
+ t[69] !== p?.footnote || t[70] !== p?.source || t[71] !== d || t[72] !== a || t[73] !== L?.footnote || t[74] !== L?.source || t[75] !== k ? (Et = a || d ? /* @__PURE__ */ m.jsx(Ae, { styles: {
759
+ footnote: L?.footnote,
760
+ source: L?.source
761
+ }, classNames: {
762
+ footnote: p?.footnote,
763
+ source: p?.source
764
+ }, sources: a, footNote: d, width: k }) : null, t[69] = p?.footnote, t[70] = p?.source, t[71] = d, t[72] = a, t[73] = L?.footnote, t[74] = L?.source, t[75] = k, t[76] = Et) : Et = t[76];
765
+ let qt;
766
+ return t[77] !== n || t[78] !== Q || t[79] !== F || t[80] !== P || t[81] !== ht || t[82] !== gt || t[83] !== M || t[84] !== q || t[85] !== Kt || t[86] !== te || t[87] !== ee || t[88] !== Pt || t[89] !== zt || t[90] !== Et || t[91] !== dt ? (qt = /* @__PURE__ */ m.jsxs(Ge, { className: Kt, style: te, id: F, ref: he, "aria-label": n, backgroundColor: Q, theme: dt, language: ht, minHeight: gt, width: ee, height: P, relativeHeight: q, padding: M, children: [
767
+ Pt,
768
+ zt,
769
+ Et
770
+ ] }), t[77] = n, t[78] = Q, t[79] = F, t[80] = P, t[81] = ht, t[82] = gt, t[83] = M, t[84] = q, t[85] = Kt, t[86] = te, t[87] = ee, t[88] = Pt, t[89] = zt, t[90] = Et, t[91] = dt, t[92] = qt) : qt = t[92], qt;
771
+ }
772
+ function vn(e) {
773
+ return `${e}`;
774
+ }
775
+ function kn(e) {
776
+ return `${e}`;
777
+ }
778
+ function bn(e) {
779
+ return e !== void 0;
780
+ }
781
+ function jn(e) {
782
+ return e !== void 0;
783
+ }
784
+ function wn(e) {
785
+ return e.data;
786
+ }
787
+ function $n(e) {
788
+ return e !== void 0;
789
+ }
790
+ function Ln(e) {
791
+ return e.data;
792
+ }
793
+ function Mn(e) {
794
+ return e.value;
795
+ }
796
+ function Sn(e) {
797
+ return e.value;
987
798
  }
988
799
  export {
989
- Ve as SankeyChart
800
+ Yn as SankeyChart
990
801
  };
991
802
  //# sourceMappingURL=SankeyChart.js.map