@undp/data-viz 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. package/dist/AreaChart.cjs +2 -0
  2. package/dist/AreaChart.cjs.map +1 -0
  3. package/dist/AreaChart.js +530 -1
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/Axis-DE7dSn1_.cjs +2 -0
  6. package/dist/{Axis-BlyBRMNw.cjs.map → Axis-DE7dSn1_.cjs.map} +1 -1
  7. package/dist/{Axis-CvK-w3E2.js → Axis-Ddg-seDi.js} +10 -11
  8. package/dist/{Axis-CvK-w3E2.js.map → Axis-Ddg-seDi.js.map} +1 -1
  9. package/dist/AxisTitle-BmHLMRJZ.js +20 -0
  10. package/dist/{AxisTitle-BeMxcw5I.js.map → AxisTitle-BmHLMRJZ.js.map} +1 -1
  11. package/dist/AxisTitle-CK9YeovX.cjs +2 -0
  12. package/dist/{AxisTitle-BY8MI9jC.cjs.map → AxisTitle-CK9YeovX.cjs.map} +1 -1
  13. package/dist/BarGraph.cjs +2 -0
  14. package/dist/BarGraph.cjs.map +1 -0
  15. package/dist/BarGraph.js +4043 -1
  16. package/dist/BarGraph.js.map +1 -1
  17. package/dist/BasicStatCard.cjs +2 -0
  18. package/dist/BasicStatCard.cjs.map +1 -0
  19. package/dist/BasicStatCard.js +190 -1
  20. package/dist/BasicStatCard.js.map +1 -1
  21. package/dist/BeeSwarmChart.cjs +2 -0
  22. package/dist/BeeSwarmChart.cjs.map +1 -0
  23. package/dist/BeeSwarmChart.d.ts +0 -8
  24. package/dist/BeeSwarmChart.js +1042 -1
  25. package/dist/BeeSwarmChart.js.map +1 -1
  26. package/dist/BiVariateChoroplethMap.cjs +2 -0
  27. package/dist/BiVariateChoroplethMap.cjs.map +1 -0
  28. package/dist/BiVariateChoroplethMap.js +720 -1
  29. package/dist/BiVariateChoroplethMap.js.map +1 -1
  30. package/dist/BulletChart.cjs +2 -0
  31. package/dist/BulletChart.cjs.map +1 -0
  32. package/dist/BulletChart.js +1431 -1
  33. package/dist/BulletChart.js.map +1 -1
  34. package/dist/ButterflyChart.cjs +2 -0
  35. package/dist/ButterflyChart.cjs.map +1 -0
  36. package/dist/ButterflyChart.js +692 -1
  37. package/dist/ButterflyChart.js.map +1 -1
  38. package/dist/ChoroplethMap.cjs +2 -0
  39. package/dist/ChoroplethMap.cjs.map +1 -0
  40. package/dist/ChoroplethMap.js +745 -1
  41. package/dist/ChoroplethMap.js.map +1 -1
  42. package/dist/CirclePackingGraph.cjs +2 -0
  43. package/dist/CirclePackingGraph.cjs.map +1 -0
  44. package/dist/CirclePackingGraph.d.ts +0 -8
  45. package/dist/CirclePackingGraph.js +14 -1
  46. package/dist/CirclePackingGraph.js.map +1 -1
  47. package/dist/ColorLegend.cjs +2 -0
  48. package/dist/ColorLegend.cjs.map +1 -0
  49. package/dist/ColorLegend.js +47 -1
  50. package/dist/ColorLegend.js.map +1 -1
  51. package/dist/ColorLegendWithMouseOver.cjs +2 -0
  52. package/dist/ColorLegendWithMouseOver.cjs.map +1 -0
  53. package/dist/ColorLegendWithMouseOver.js +70 -1
  54. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  55. package/dist/Colors.cjs +2 -0
  56. package/dist/Colors.cjs.map +1 -0
  57. package/dist/Colors.js +561 -1
  58. package/dist/Colors.js.map +1 -1
  59. package/dist/CopyTextButton.cjs +17 -0
  60. package/dist/CopyTextButton.cjs.map +1 -0
  61. package/dist/CopyTextButton.js +698 -16
  62. package/dist/CopyTextButton.js.map +1 -1
  63. package/dist/CsvDownloadButton.cjs +23 -0
  64. package/dist/CsvDownloadButton.cjs.map +1 -0
  65. package/dist/CsvDownloadButton.js +852 -7
  66. package/dist/CsvDownloadButton.js.map +1 -1
  67. package/dist/DataCards.cjs +2 -0
  68. package/dist/DataCards.cjs.map +1 -0
  69. package/dist/DataCards.js +14 -1
  70. package/dist/DataCards.js.map +1 -1
  71. package/dist/DataTable.cjs +2 -0
  72. package/dist/DataTable.cjs.map +1 -0
  73. package/dist/DataTable.js +331 -1
  74. package/dist/DataTable.js.map +1 -1
  75. package/dist/DifferenceLineChart.cjs +2 -0
  76. package/dist/DifferenceLineChart.cjs.map +1 -0
  77. package/dist/DifferenceLineChart.js +805 -1
  78. package/dist/DifferenceLineChart.js.map +1 -1
  79. package/dist/DonutChart.cjs +2 -0
  80. package/dist/DonutChart.cjs.map +1 -0
  81. package/dist/DonutChart.js +478 -1
  82. package/dist/DonutChart.js.map +1 -1
  83. package/dist/DotDensityMap.cjs +2 -0
  84. package/dist/DotDensityMap.cjs.map +1 -0
  85. package/dist/DotDensityMap.js +600 -1
  86. package/dist/DotDensityMap.js.map +1 -1
  87. package/dist/DropdownSelect-0I2QxaVy.cjs +29 -0
  88. package/dist/DropdownSelect-0I2QxaVy.cjs.map +1 -0
  89. package/dist/DropdownSelect-CDC9lEqU.js +4193 -0
  90. package/dist/DropdownSelect-CDC9lEqU.js.map +1 -0
  91. package/dist/DualAxisLineChart.cjs +2 -0
  92. package/dist/DualAxisLineChart.cjs.map +1 -0
  93. package/dist/DualAxisLineChart.js +699 -1
  94. package/dist/DualAxisLineChart.js.map +1 -1
  95. package/dist/DumbbellChart.cjs +2 -0
  96. package/dist/DumbbellChart.cjs.map +1 -0
  97. package/dist/DumbbellChart.js +1510 -1
  98. package/dist/DumbbellChart.js.map +1 -1
  99. package/dist/{EmptyState-b2Ln487i.js → EmptyState-DdTp-Mdn.js} +8 -8
  100. package/dist/{EmptyState-b2Ln487i.js.map → EmptyState-DdTp-Mdn.js.map} +1 -1
  101. package/dist/EmptyState-d8_8SxeW.cjs +2 -0
  102. package/dist/{EmptyState-BQguKAp5.cjs.map → EmptyState-d8_8SxeW.cjs.map} +1 -1
  103. package/dist/ExcelDownloadButton.cjs +2 -0
  104. package/dist/ExcelDownloadButton.cjs.map +1 -0
  105. package/dist/ExcelDownloadButton.js +29 -1
  106. package/dist/ExcelDownloadButton.js.map +1 -1
  107. package/dist/FootNote.cjs +2 -0
  108. package/dist/FootNote.cjs.map +1 -0
  109. package/dist/FootNote.js +20 -1
  110. package/dist/FootNote.js.map +1 -1
  111. package/dist/GeoHubCompareMaps.cjs +2 -0
  112. package/dist/GeoHubCompareMaps.cjs.map +1 -0
  113. package/dist/GeoHubCompareMaps.js +370 -1
  114. package/dist/GeoHubCompareMaps.js.map +1 -1
  115. package/dist/GeoHubMap.cjs +2 -0
  116. package/dist/GeoHubMap.cjs.map +1 -0
  117. package/dist/GeoHubMap.js +429 -1
  118. package/dist/GeoHubMap.js.map +1 -1
  119. package/dist/GeoHubMapWithLayerSelection.cjs +2 -0
  120. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -0
  121. package/dist/GeoHubMapWithLayerSelection.js +307 -1
  122. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  123. package/dist/GraphDescription.cjs +2 -0
  124. package/dist/GraphDescription.cjs.map +1 -0
  125. package/dist/GraphDescription.js +20 -1
  126. package/dist/GraphDescription.js.map +1 -1
  127. package/dist/GraphFooter.cjs +2 -0
  128. package/dist/GraphFooter.cjs.map +1 -0
  129. package/dist/GraphFooter.js +21 -1
  130. package/dist/GraphFooter.js.map +1 -1
  131. package/dist/GraphHeader.cjs +2 -0
  132. package/dist/GraphHeader.cjs.map +1 -0
  133. package/dist/GraphHeader.js +63 -1
  134. package/dist/GraphHeader.js.map +1 -1
  135. package/dist/GraphTitle.cjs +2 -0
  136. package/dist/GraphTitle.cjs.map +1 -0
  137. package/dist/GraphTitle.js +28 -1
  138. package/dist/GraphTitle.js.map +1 -1
  139. package/dist/GriddedGraphs.cjs +2 -0
  140. package/dist/GriddedGraphs.cjs.map +1 -0
  141. package/dist/GriddedGraphs.js +482 -1
  142. package/dist/GriddedGraphs.js.map +1 -1
  143. package/dist/GriddedGraphsFromConfig.cjs +2 -0
  144. package/dist/GriddedGraphsFromConfig.cjs.map +1 -0
  145. package/dist/GriddedGraphsFromConfig.js +42 -1
  146. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  147. package/dist/HeatMap.cjs +2 -0
  148. package/dist/HeatMap.cjs.map +1 -0
  149. package/dist/HeatMap.js +451 -1
  150. package/dist/HeatMap.js.map +1 -1
  151. package/dist/Histogram.cjs +2 -0
  152. package/dist/Histogram.cjs.map +1 -0
  153. package/dist/Histogram.js +287 -1
  154. package/dist/Histogram.js.map +1 -1
  155. package/dist/ImageDownloadButton.cjs +2 -0
  156. package/dist/ImageDownloadButton.cjs.map +1 -0
  157. package/dist/ImageDownloadButton.js +28 -1
  158. package/dist/ImageDownloadButton.js.map +1 -1
  159. package/dist/LineChartWithConfidenceInterval.cjs +2 -0
  160. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -0
  161. package/dist/LineChartWithConfidenceInterval.js +818 -1
  162. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  163. package/dist/LinearColorLegend.cjs +2 -0
  164. package/dist/LinearColorLegend.cjs.map +1 -0
  165. package/dist/LinearColorLegend.js +33 -1
  166. package/dist/LinearColorLegend.js.map +1 -1
  167. package/dist/Modal-CUU6ZK3U.js +1019 -0
  168. package/dist/Modal-CUU6ZK3U.js.map +1 -0
  169. package/dist/Modal-C_dl0EtQ.cjs +46 -0
  170. package/dist/Modal-C_dl0EtQ.cjs.map +1 -0
  171. package/dist/MultiGraphDashboard.cjs +2 -0
  172. package/dist/MultiGraphDashboard.cjs.map +1 -0
  173. package/dist/MultiGraphDashboard.js +303 -1
  174. package/dist/MultiGraphDashboard.js.map +1 -1
  175. package/dist/MultiGraphDashboardFromConfig.cjs +2 -0
  176. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -0
  177. package/dist/MultiGraphDashboardFromConfig.js +37 -1
  178. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  179. package/dist/MultiGraphDashboardWideToLongFormat.cjs +2 -0
  180. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -0
  181. package/dist/MultiGraphDashboardWideToLongFormat.js +243 -1
  182. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  183. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +2 -0
  184. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -0
  185. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +30 -1
  186. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  187. package/dist/MultiLineAltChart.cjs +2 -0
  188. package/dist/MultiLineAltChart.cjs.map +1 -0
  189. package/dist/MultiLineAltChart.js +689 -1
  190. package/dist/MultiLineAltChart.js.map +1 -1
  191. package/dist/MultiLineChart.cjs +2 -0
  192. package/dist/MultiLineChart.cjs.map +1 -0
  193. package/dist/MultiLineChart.js +722 -1
  194. package/dist/MultiLineChart.js.map +1 -1
  195. package/dist/ParetoChart.cjs +2 -0
  196. package/dist/ParetoChart.cjs.map +1 -0
  197. package/dist/ParetoChart.js +636 -1
  198. package/dist/ParetoChart.js.map +1 -1
  199. package/dist/RadarChart.cjs +2 -0
  200. package/dist/RadarChart.cjs.map +1 -0
  201. package/dist/RadarChart.js +677 -1
  202. package/dist/RadarChart.js.map +1 -1
  203. package/dist/{ReferenceLine-BgDdQbDI.js → ReferenceLine-C1GpoG9d.js} +33 -34
  204. package/dist/ReferenceLine-C1GpoG9d.js.map +1 -0
  205. package/dist/ReferenceLine-CuFMk0cI.cjs +2 -0
  206. package/dist/ReferenceLine-CuFMk0cI.cjs.map +1 -0
  207. package/dist/RegressionLine-7_rKTHN_.cjs +2 -0
  208. package/dist/{RegressionLine-BfpCuD7B.cjs.map → RegressionLine-7_rKTHN_.cjs.map} +1 -1
  209. package/dist/{RegressionLine-cSljpHaE.js → RegressionLine-BFwDCTUU.js} +17 -18
  210. package/dist/{RegressionLine-cSljpHaE.js.map → RegressionLine-BFwDCTUU.js.map} +1 -1
  211. package/dist/SVGDownloadButton.cjs +2 -0
  212. package/dist/SVGDownloadButton.cjs.map +1 -0
  213. package/dist/SVGDownloadButton.js +28 -1
  214. package/dist/SVGDownloadButton.js.map +1 -1
  215. package/dist/SankeyChart.cjs +2 -0
  216. package/dist/SankeyChart.cjs.map +1 -0
  217. package/dist/SankeyChart.js +989 -1
  218. package/dist/SankeyChart.js.map +1 -1
  219. package/dist/ScatterPlot.cjs +2 -0
  220. package/dist/ScatterPlot.cjs.map +1 -0
  221. package/dist/ScatterPlot.js +828 -1
  222. package/dist/ScatterPlot.js.map +1 -1
  223. package/dist/ScrollStory.cjs +2 -0
  224. package/dist/ScrollStory.cjs.map +1 -0
  225. package/dist/ScrollStory.js +105 -1
  226. package/dist/ScrollStory.js.map +1 -1
  227. package/dist/SimpleLineChart.cjs +2 -0
  228. package/dist/SimpleLineChart.cjs.map +1 -0
  229. package/dist/SimpleLineChart.js +619 -1
  230. package/dist/SimpleLineChart.js.map +1 -1
  231. package/dist/SingleGraphDashboard.cjs +2 -0
  232. package/dist/SingleGraphDashboard.cjs.map +1 -0
  233. package/dist/SingleGraphDashboard.js +522 -1
  234. package/dist/SingleGraphDashboard.js.map +1 -1
  235. package/dist/SingleGraphDashboardFromConfig.cjs +2 -0
  236. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -0
  237. package/dist/SingleGraphDashboardFromConfig.js +34 -1
  238. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  239. package/dist/SlopeChart.cjs +2 -0
  240. package/dist/SlopeChart.cjs.map +1 -0
  241. package/dist/SlopeChart.js +582 -1
  242. package/dist/SlopeChart.js.map +1 -1
  243. package/dist/Source.cjs +2 -0
  244. package/dist/Source.cjs.map +1 -0
  245. package/dist/Source.js +40 -1
  246. package/dist/Source.js.map +1 -1
  247. package/dist/SparkLine.cjs +2 -0
  248. package/dist/SparkLine.cjs.map +1 -0
  249. package/dist/SparkLine.js +320 -1
  250. package/dist/SparkLine.js.map +1 -1
  251. package/dist/Spinner-C85UF28E.js +30 -0
  252. package/dist/Spinner-C85UF28E.js.map +1 -0
  253. package/dist/Spinner-DA6Z5E4n.cjs +2 -0
  254. package/dist/Spinner-DA6Z5E4n.cjs.map +1 -0
  255. package/dist/StatCardFromData.cjs +2 -0
  256. package/dist/StatCardFromData.cjs.map +1 -0
  257. package/dist/StatCardFromData.js +249 -1
  258. package/dist/StatCardFromData.js.map +1 -1
  259. package/dist/StripChart.cjs +2 -0
  260. package/dist/StripChart.cjs.map +1 -0
  261. package/dist/StripChart.js +988 -1
  262. package/dist/StripChart.js.map +1 -1
  263. package/dist/ThreeDGlobe.cjs +2 -0
  264. package/dist/ThreeDGlobe.cjs.map +1 -0
  265. package/dist/ThreeDGlobe.js +451 -1
  266. package/dist/ThreeDGlobe.js.map +1 -1
  267. package/dist/ThresholdColorLegendWithMouseOver.cjs +2 -0
  268. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -0
  269. package/dist/ThresholdColorLegendWithMouseOver.js +130 -1
  270. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  271. package/dist/{Tooltip-CzZ1wFyF.js → Tooltip-DyM5snqx.js} +15 -16
  272. package/dist/{Tooltip-CzZ1wFyF.js.map → Tooltip-DyM5snqx.js.map} +1 -1
  273. package/dist/Tooltip-n8z5bfav.cjs +2 -0
  274. package/dist/{Tooltip-BM18N_3l.cjs.map → Tooltip-n8z5bfav.cjs.map} +1 -1
  275. package/dist/TreeMapGraph.cjs +2 -0
  276. package/dist/TreeMapGraph.cjs.map +1 -0
  277. package/dist/TreeMapGraph.js +760 -1
  278. package/dist/TreeMapGraph.js.map +1 -1
  279. package/dist/Types.cjs +2 -0
  280. package/dist/Types.cjs.map +1 -0
  281. package/dist/Types.js +1 -1
  282. package/dist/Typography-Ctgfl1J5.js +140 -0
  283. package/dist/Typography-Ctgfl1J5.js.map +1 -0
  284. package/dist/Typography-k-kOjICQ.cjs +2 -0
  285. package/dist/Typography-k-kOjICQ.cjs.map +1 -0
  286. package/dist/UnitChart.cjs +2 -0
  287. package/dist/UnitChart.cjs.map +1 -0
  288. package/dist/UnitChart.js +216 -1
  289. package/dist/UnitChart.js.map +1 -1
  290. package/dist/XAxesLabels-CJMQbfVy.cjs +2 -0
  291. package/dist/{XAxesLabels-C9REbQQs.cjs.map → XAxesLabels-CJMQbfVy.cjs.map} +1 -1
  292. package/dist/{XAxesLabels-DVw7Lvuz.js → XAxesLabels-DQFo_z2R.js} +21 -22
  293. package/dist/{XAxesLabels-DVw7Lvuz.js.map → XAxesLabels-DQFo_z2R.js.map} +1 -1
  294. package/dist/{XTicksAndGridLines-CUefTINd.js → XTicksAndGridLines-Bn9u5gOM.js} +19 -20
  295. package/dist/{XTicksAndGridLines-CUefTINd.js.map → XTicksAndGridLines-Bn9u5gOM.js.map} +1 -1
  296. package/dist/XTicksAndGridLines-CCzXIV8d.cjs +2 -0
  297. package/dist/{XTicksAndGridLines-DuK35ROS.cjs.map → XTicksAndGridLines-CCzXIV8d.cjs.map} +1 -1
  298. package/dist/YAxesLabels-BXLTX7AI.cjs +2 -0
  299. package/dist/{YAxesLabels-DhBdLk3Z.cjs.map → YAxesLabels-BXLTX7AI.cjs.map} +1 -1
  300. package/dist/{YAxesLabels-CYVY053X.js → YAxesLabels-H5-002X5.js} +11 -12
  301. package/dist/{YAxesLabels-CYVY053X.js.map → YAxesLabels-H5-002X5.js.map} +1 -1
  302. package/dist/{YTicksAndGridLines-BJRXuBdC.js → YTicksAndGridLines-B6ah7CRf.js} +14 -15
  303. package/dist/{YTicksAndGridLines-BJRXuBdC.js.map → YTicksAndGridLines-B6ah7CRf.js.map} +1 -1
  304. package/dist/YTicksAndGridLines-DBDuz6vb.cjs +2 -0
  305. package/dist/{YTicksAndGridLines-CtLvzExe.cjs.map → YTicksAndGridLines-DBDuz6vb.cjs.map} +1 -1
  306. package/dist/{checkIfMultiple-CaefP4X2.js → checkIfMultiple-BB7PlCNh.js} +1013 -518
  307. package/dist/checkIfMultiple-BB7PlCNh.js.map +1 -0
  308. package/dist/checkIfMultiple-D5ysrI7G.cjs +12 -0
  309. package/dist/checkIfMultiple-D5ysrI7G.cjs.map +1 -0
  310. package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs +2 -0
  311. package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs.map +1 -0
  312. package/dist/checkIfNullOrUndefined-DmfiKkNw.js +7 -0
  313. package/dist/checkIfNullOrUndefined-DmfiKkNw.js.map +1 -0
  314. package/dist/customArea-BYNyxAkm.cjs +2 -0
  315. package/dist/{customArea-B47Ew5cT.cjs.map → customArea-BYNyxAkm.cjs.map} +1 -1
  316. package/dist/{customArea-I3MsoqIl.js → customArea-CaxScFmW.js} +29 -30
  317. package/dist/{customArea-I3MsoqIl.js.map → customArea-CaxScFmW.js.map} +1 -1
  318. package/dist/excelDownload-BOA-lskf.js +19 -0
  319. package/dist/excelDownload-BOA-lskf.js.map +1 -0
  320. package/dist/excelDownload-BQpsCa62.cjs +2 -0
  321. package/dist/excelDownload-BQpsCa62.cjs.map +1 -0
  322. package/dist/fetchAndParseData-Bcmr659B.js +1196 -0
  323. package/dist/fetchAndParseData-Bcmr659B.js.map +1 -0
  324. package/dist/fetchAndParseData-DmgQtB9n.cjs +16 -0
  325. package/dist/fetchAndParseData-DmgQtB9n.cjs.map +1 -0
  326. package/dist/fetchAndParseData.cjs +2 -0
  327. package/dist/fetchAndParseData.cjs.map +1 -0
  328. package/dist/fetchAndParseData.js +9 -15
  329. package/dist/fetchAndParseData.js.map +1 -1
  330. package/dist/getGraphList-DuColTJM.js +265 -0
  331. package/dist/getGraphList-DuColTJM.js.map +1 -0
  332. package/dist/getGraphList-gf02xgT2.cjs +2 -0
  333. package/dist/getGraphList-gf02xgT2.cjs.map +1 -0
  334. package/dist/getJenks-TWQvbuOz.cjs +2 -0
  335. package/dist/getJenks-TWQvbuOz.cjs.map +1 -0
  336. package/dist/getJenks-VhM3GIoC.js +23 -0
  337. package/dist/getJenks-VhM3GIoC.js.map +1 -0
  338. package/dist/getSchema.cjs +2 -0
  339. package/dist/getSchema.cjs.map +1 -0
  340. package/dist/getSchema.js +910 -1
  341. package/dist/getSchema.js.map +1 -1
  342. package/dist/getSliderMarks-C0jptXeP.js +1054 -0
  343. package/dist/getSliderMarks-C0jptXeP.js.map +1 -0
  344. package/dist/getSliderMarks-CtsEXiLV.cjs +6 -0
  345. package/dist/getSliderMarks-CtsEXiLV.cjs.map +1 -0
  346. package/dist/getTextColorBasedOnBgColor-B6Nk2WBf.js +28 -0
  347. package/dist/getTextColorBasedOnBgColor-B6Nk2WBf.js.map +1 -0
  348. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs +2 -0
  349. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -0
  350. package/dist/getUniqValue-BtUENB2H.js +20 -0
  351. package/dist/getUniqValue-BtUENB2H.js.map +1 -0
  352. package/dist/getUniqValue-CHqgSss5.cjs +2 -0
  353. package/dist/getUniqValue-CHqgSss5.cjs.map +1 -0
  354. package/dist/imageDownload-CgDcm1Sj.cjs +3 -0
  355. package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -0
  356. package/dist/imageDownload-Dcci2LEy.js +495 -0
  357. package/dist/imageDownload-Dcci2LEy.js.map +1 -0
  358. package/dist/index-BVnYktl4.js +435 -0
  359. package/dist/index-BVnYktl4.js.map +1 -0
  360. package/dist/index-BW_-wD2k.cjs +2 -0
  361. package/dist/index-BW_-wD2k.cjs.map +1 -0
  362. package/dist/{index-DXmF_0ez.js → index-BmCqpO1B.js} +74 -40
  363. package/dist/index-BmCqpO1B.js.map +1 -0
  364. package/dist/{index-Db-Yg_Ud.js → index-BxAUvrua.js} +19 -19
  365. package/dist/{index-Db-Yg_Ud.js.map → index-BxAUvrua.js.map} +1 -1
  366. package/dist/index-CHPV5EwG-BPSP-7Jg.js +3341 -0
  367. package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +1 -0
  368. package/dist/index-CHPV5EwG-DDoeWRVt.cjs +44 -0
  369. package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +1 -0
  370. package/dist/index-CylX-pWB.cjs +2 -0
  371. package/dist/{index-BYroABPm.cjs.map → index-CylX-pWB.cjs.map} +1 -1
  372. package/dist/index-D9h2WYDS.cjs +22 -0
  373. package/dist/index-D9h2WYDS.cjs.map +1 -0
  374. package/dist/index-DG3YrCr5-D3FrrXj8.js +459 -0
  375. package/dist/index-DG3YrCr5-D3FrrXj8.js.map +1 -0
  376. package/dist/index-DG3YrCr5-v7rayV3N.cjs +2 -0
  377. package/dist/index-DG3YrCr5-v7rayV3N.cjs.map +1 -0
  378. package/dist/index-DVOJ7vxH.cjs +10 -0
  379. package/dist/{index-a2C2Bqn2.cjs.map → index-DVOJ7vxH.cjs.map} +1 -1
  380. package/dist/index-D_n8aamX.cjs +2 -0
  381. package/dist/index-D_n8aamX.cjs.map +1 -0
  382. package/dist/index-OCoyy1wG.js +635 -0
  383. package/dist/index-OCoyy1wG.js.map +1 -0
  384. package/dist/{index-DzdwZ2OA.js → index-n_RI8T0n.js} +3 -3
  385. package/dist/{index-DzdwZ2OA.js.map → index-n_RI8T0n.js.map} +1 -1
  386. package/dist/index-tvAyXPPW-DBlMKnNB.js +47 -0
  387. package/dist/index-tvAyXPPW-DBlMKnNB.js.map +1 -0
  388. package/dist/index-tvAyXPPW-DPOG-C2i.cjs +2 -0
  389. package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +1 -0
  390. package/dist/index.cjs +2 -0
  391. package/dist/index.cjs.map +1 -0
  392. package/dist/index.d.ts +1 -5
  393. package/dist/index.js +180 -1
  394. package/dist/index.js.map +1 -1
  395. package/dist/numberFormattingFunction-02t-wJta.cjs +2 -0
  396. package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -0
  397. package/dist/numberFormattingFunction-14YCbkN2.js +13 -0
  398. package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -0
  399. package/dist/{use-in-view-CZPXmTZM.js → proxy-DJxJg1kD.js} +699 -732
  400. package/dist/proxy-DJxJg1kD.js.map +1 -0
  401. package/dist/{use-in-view-Dl1CsAIo.cjs → proxy-PQd2AItT.cjs} +2 -2
  402. package/dist/proxy-PQd2AItT.cjs.map +1 -0
  403. package/dist/removeOutliers-DR48e-18.js +57 -0
  404. package/dist/removeOutliers-DR48e-18.js.map +1 -0
  405. package/dist/removeOutliers-WELHHqiI.cjs +2 -0
  406. package/dist/removeOutliers-WELHHqiI.cjs.map +1 -0
  407. package/dist/{string2HTML-BX0oNw83.js → string2HTML-CWHGfz_d.js} +2 -2
  408. package/dist/{string2HTML-BX0oNw83.js.map → string2HTML-CWHGfz_d.js.map} +1 -1
  409. package/dist/{string2HTML-X4ZYX5jI.cjs → string2HTML-D2Avudmb.cjs} +2 -2
  410. package/dist/{string2HTML-X4ZYX5jI.cjs.map → string2HTML-D2Avudmb.cjs.map} +1 -1
  411. package/dist/svgDownload-C2-E3yf2.js +9 -0
  412. package/dist/svgDownload-C2-E3yf2.js.map +1 -0
  413. package/dist/svgDownload-D9zEGjTF.cjs +2 -0
  414. package/dist/svgDownload-D9zEGjTF.cjs.map +1 -0
  415. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs +4 -0
  416. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs.map +1 -0
  417. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js +145 -0
  418. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js.map +1 -0
  419. package/dist/transformData.cjs +2 -0
  420. package/dist/transformData.cjs.map +1 -0
  421. package/dist/transformData.d.ts +170 -0
  422. package/dist/transformData.js +10 -0
  423. package/dist/transformData.js.map +1 -0
  424. package/dist/transformDataForAggregation-BUGJnson.cjs +2 -0
  425. package/dist/transformDataForAggregation-BUGJnson.cjs.map +1 -0
  426. package/dist/transformDataForAggregation-DAQJWGNL.js +759 -0
  427. package/dist/transformDataForAggregation-DAQJWGNL.js.map +1 -0
  428. package/dist/transformDataForGraphFromFile-CrntpaMU.cjs +2 -0
  429. package/dist/transformDataForGraphFromFile-CrntpaMU.cjs.map +1 -0
  430. package/dist/transformDataForGraphFromFile-DdNiOWeC.js +24 -0
  431. package/dist/transformDataForGraphFromFile-DdNiOWeC.js.map +1 -0
  432. package/dist/use-in-view-BAHrBy6b.js +40 -0
  433. package/dist/use-in-view-BAHrBy6b.js.map +1 -0
  434. package/dist/use-in-view-BCmzDU2O.cjs +2 -0
  435. package/dist/use-in-view-BCmzDU2O.cjs.map +1 -0
  436. package/dist/utils.cjs +2 -0
  437. package/dist/utils.cjs.map +1 -0
  438. package/dist/utils.d.ts +217 -0
  439. package/dist/utils.js +27 -0
  440. package/dist/utils.js.map +1 -0
  441. package/dist/validateSchema.cjs +2 -0
  442. package/dist/validateSchema.cjs.map +1 -0
  443. package/dist/validateSchema.js +104 -1
  444. package/dist/validateSchema.js.map +1 -1
  445. package/dist/x-CnsEH4Ox-CGGXQl4M.cjs +27 -0
  446. package/dist/x-CnsEH4Ox-CGGXQl4M.cjs.map +1 -0
  447. package/dist/x-CnsEH4Ox-DDvAJndW.js +101 -0
  448. package/dist/x-CnsEH4Ox-DDvAJndW.js.map +1 -0
  449. package/package.json +15 -90
  450. package/dist/Axis-BlyBRMNw.cjs +0 -2
  451. package/dist/AxisTitle-BY8MI9jC.cjs +0 -2
  452. package/dist/AxisTitle-BeMxcw5I.js +0 -21
  453. package/dist/DropdownSelect-CuzV7gdj.cjs +0 -29
  454. package/dist/DropdownSelect-CuzV7gdj.cjs.map +0 -1
  455. package/dist/DropdownSelect-DmZsXrhY.js +0 -2698
  456. package/dist/DropdownSelect-DmZsXrhY.js.map +0 -1
  457. package/dist/EmptyState-BQguKAp5.cjs +0 -2
  458. package/dist/Modal-C9txyGOk.js +0 -723
  459. package/dist/Modal-C9txyGOk.js.map +0 -1
  460. package/dist/Modal-cQF2UQIa.cjs +0 -46
  461. package/dist/Modal-cQF2UQIa.cjs.map +0 -1
  462. package/dist/ReferenceLine-BgDdQbDI.js.map +0 -1
  463. package/dist/ReferenceLine-Bsb5jeE4.cjs +0 -2
  464. package/dist/ReferenceLine-Bsb5jeE4.cjs.map +0 -1
  465. package/dist/RegressionLine-BfpCuD7B.cjs +0 -2
  466. package/dist/Spinner-DN3s4S0H.js +0 -17
  467. package/dist/Spinner-DN3s4S0H.js.map +0 -1
  468. package/dist/Spinner-UmN-KPe9.cjs +0 -2
  469. package/dist/Spinner-UmN-KPe9.cjs.map +0 -1
  470. package/dist/Tooltip-BM18N_3l.cjs +0 -2
  471. package/dist/Typography-CDR-DAHH.cjs +0 -2
  472. package/dist/Typography-CDR-DAHH.cjs.map +0 -1
  473. package/dist/Typography-XJoSE-By.js +0 -58
  474. package/dist/Typography-XJoSE-By.js.map +0 -1
  475. package/dist/XAxesLabels-C9REbQQs.cjs +0 -2
  476. package/dist/XTicksAndGridLines-DuK35ROS.cjs +0 -2
  477. package/dist/YAxesLabels-DhBdLk3Z.cjs +0 -2
  478. package/dist/YTicksAndGridLines-CtLvzExe.cjs +0 -2
  479. package/dist/checkIfMultiple-CaefP4X2.js.map +0 -1
  480. package/dist/checkIfMultiple-D3h8to1T.cjs +0 -12
  481. package/dist/checkIfMultiple-D3h8to1T.cjs.map +0 -1
  482. package/dist/checkIfNullOrUndefined.d.ts +0 -15
  483. package/dist/checkIfNullOrUndefined.js +0 -2
  484. package/dist/checkIfNullOrUndefined.js.map +0 -1
  485. package/dist/customArea-B47Ew5cT.cjs +0 -2
  486. package/dist/excelDownload.d.ts +0 -31
  487. package/dist/excelDownload.js +0 -2
  488. package/dist/excelDownload.js.map +0 -1
  489. package/dist/generateCodes.d.ts +0 -25
  490. package/dist/generateCodes.js +0 -2
  491. package/dist/generateCodes.js.map +0 -1
  492. package/dist/getJenks.d.ts +0 -17
  493. package/dist/getJenks.js +0 -2
  494. package/dist/getJenks.js.map +0 -1
  495. package/dist/getPercentileValue.d.ts +0 -13
  496. package/dist/getPercentileValue.js +0 -2
  497. package/dist/getPercentileValue.js.map +0 -1
  498. package/dist/getQueryParamsFromLink.d.ts +0 -18
  499. package/dist/getQueryParamsFromLink.js +0 -2
  500. package/dist/getQueryParamsFromLink.js.map +0 -1
  501. package/dist/getSliderMarks-CWajGCGq.js +0 -719
  502. package/dist/getSliderMarks-CWajGCGq.js.map +0 -1
  503. package/dist/getSliderMarks-DDJ1CdhL.cjs +0 -6
  504. package/dist/getSliderMarks-DDJ1CdhL.cjs.map +0 -1
  505. package/dist/getTextColorBasedOnBgColor.d.ts +0 -13
  506. package/dist/getTextColorBasedOnBgColor.js +0 -2
  507. package/dist/getTextColorBasedOnBgColor.js.map +0 -1
  508. package/dist/getUniqValue.d.ts +0 -18
  509. package/dist/getUniqValue.js +0 -2
  510. package/dist/getUniqValue.js.map +0 -1
  511. package/dist/graphList.d.ts +0 -9
  512. package/dist/graphList.js +0 -2
  513. package/dist/graphList.js.map +0 -1
  514. package/dist/imageDownload.d.ts +0 -16
  515. package/dist/imageDownload.js +0 -3
  516. package/dist/imageDownload.js.map +0 -1
  517. package/dist/index-01r5X3Gr-9jE0ObrK.cjs +0 -2
  518. package/dist/index-01r5X3Gr-9jE0ObrK.cjs.map +0 -1
  519. package/dist/index-01r5X3Gr-kH7FxQ7P.js +0 -451
  520. package/dist/index-01r5X3Gr-kH7FxQ7P.js.map +0 -1
  521. package/dist/index-BGMGC-HN.cjs +0 -22
  522. package/dist/index-BGMGC-HN.cjs.map +0 -1
  523. package/dist/index-BHm2KTjD-2e-Fu8L-.js +0 -702
  524. package/dist/index-BHm2KTjD-2e-Fu8L-.js.map +0 -1
  525. package/dist/index-BHm2KTjD-D8FylaKc.cjs +0 -44
  526. package/dist/index-BHm2KTjD-D8FylaKc.cjs.map +0 -1
  527. package/dist/index-BIPNFFja.js +0 -506
  528. package/dist/index-BIPNFFja.js.map +0 -1
  529. package/dist/index-BYroABPm.cjs +0 -2
  530. package/dist/index-CEc_9zWy.cjs +0 -2
  531. package/dist/index-CEc_9zWy.cjs.map +0 -1
  532. package/dist/index-CbVeVrla.cjs +0 -2
  533. package/dist/index-CbVeVrla.cjs.map +0 -1
  534. package/dist/index-CqzhBPuO-CfQywbdq.js +0 -41
  535. package/dist/index-CqzhBPuO-CfQywbdq.js.map +0 -1
  536. package/dist/index-CqzhBPuO-raKZqS7l.cjs +0 -2
  537. package/dist/index-CqzhBPuO-raKZqS7l.cjs.map +0 -1
  538. package/dist/index-DSnvdkHZ.js +0 -495
  539. package/dist/index-DSnvdkHZ.js.map +0 -1
  540. package/dist/index-DXmF_0ez.js.map +0 -1
  541. package/dist/index-a2C2Bqn2.cjs +0 -10
  542. package/dist/numberFormattingFunction.d.ts +0 -22
  543. package/dist/numberFormattingFunction.js +0 -2
  544. package/dist/numberFormattingFunction.js.map +0 -1
  545. package/dist/removeOutliers.d.ts +0 -16
  546. package/dist/removeOutliers.js +0 -2
  547. package/dist/removeOutliers.js.map +0 -1
  548. package/dist/svgDownload.d.ts +0 -16
  549. package/dist/svgDownload.js +0 -2
  550. package/dist/svgDownload.js.map +0 -1
  551. package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js +0 -139
  552. package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js.map +0 -1
  553. package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs +0 -4
  554. package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs.map +0 -1
  555. package/dist/transformColumnsToArray.d.ts +0 -38
  556. package/dist/transformColumnsToArray.js +0 -2
  557. package/dist/transformColumnsToArray.js.map +0 -1
  558. package/dist/transformDataForAggregation.d.ts +0 -38
  559. package/dist/transformDataForAggregation.js +0 -2
  560. package/dist/transformDataForAggregation.js.map +0 -1
  561. package/dist/transformDataForGraph.d.ts +0 -47
  562. package/dist/transformDataForGraph.js +0 -2
  563. package/dist/transformDataForGraph.js.map +0 -1
  564. package/dist/transformDataForGraphFromFile.d.ts +0 -66
  565. package/dist/transformDataForGraphFromFile.js +0 -2
  566. package/dist/transformDataForGraphFromFile.js.map +0 -1
  567. package/dist/use-in-view-CZPXmTZM.js.map +0 -1
  568. package/dist/use-in-view-Dl1CsAIo.cjs.map +0 -1
  569. package/dist/x-Dft9NVe_-DcB7wtv5.js +0 -61
  570. package/dist/x-Dft9NVe_-DcB7wtv5.js.map +0 -1
  571. package/dist/x-Dft9NVe_-LeyJu02C.cjs +0 -27
  572. package/dist/x-Dft9NVe_-LeyJu02C.cjs.map +0 -1
@@ -1,23 +1,868 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("./index-BHm2KTjD-D8FylaKc.cjs"),Se=require("react"),le=require("./index-CEc_9zWy.cjs"),je=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ce=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),$e=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),Ie=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,i)=>new Set([...t,...i]),[])),ke=(e,t)=>{t=t||Ie(e);let i=t,o=t;Ce(t)&&(i=t.map(c=>c.label),o=t.map(c=>c.key));const u=e.map(c=>o.map(l=>Me(l,c)));return[i,...u]},Me=(e,t)=>{const i=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(o,u,c,l){const f=o[u];if(f==null)l.splice(1);else return f},t);return i===void 0?e in t?t[e]:"":i},De=e=>typeof e>"u"||e===null?"":e,Re=(e,t=",",i='"')=>e.filter(o=>o).map(o=>o.map(u=>De(u)).map(u=>`${i}${u}${i}`).join(t)).join(`
2
- `),Fe=(e,t,i,o)=>Re(t?[t,...e]:e,i,o),qe=(e,t,i,o)=>Re(ke(e,t),i,o),Le=(e,t,i,o)=>t?`${t.join(i)}
3
- ${e}`:e.replace(/"/g,'""'),Oe=(e,t,i,o)=>{if(Ce(e))return qe(e,t,i,o);if($e(e))return Fe(e,t,i,o);if(typeof e=="string")return Le(e,t,i);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},Pe=(e,t,i,o,u)=>{const c=Oe(e,i,o,u),l=je()?"application/csv":"text/csv",f=new Blob([t?"\uFEFF":"",c],{type:l}),g=`data:${l};charset=utf-8,${t?"\uFEFF":""}${c}`,m=window.URL||window.webkitURL;return typeof m.createObjectURL>"u"?g:m.createObjectURL(f)};var N={exports:{}},H={exports:{}},C={};/** @license React v16.13.1
1
+ import { j as J } from "./index-CHPV5EwG-BPSP-7Jg.js";
2
+ import Te from "react";
3
+ import { d as Ae, e as je } from "./index-BmCqpO1B.js";
4
+ const $e = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Ce = (e) => Array.isArray(e) && e.every(
5
+ (t) => typeof t == "object" && !(t instanceof Array)
6
+ ), Ie = (e) => Array.isArray(e) && e.every(
7
+ (t) => Array.isArray(t)
8
+ ), ke = (e) => Array.from(
9
+ e.map((t) => Object.keys(t)).reduce((t, i) => /* @__PURE__ */ new Set([...t, ...i]), [])
10
+ ), Me = (e, t) => {
11
+ t = t || ke(e);
12
+ let i = t, o = t;
13
+ Ce(t) && (i = t.map((c) => c.label), o = t.map((c) => c.key));
14
+ const u = e.map((c) => o.map((l) => Fe(l, c)));
15
+ return [i, ...u];
16
+ }, Fe = (e, t) => {
17
+ const i = e.replace(/\[([^\]]+)]/g, ".$1").split(".").reduce(function(o, u, c, l) {
18
+ const f = o[u];
19
+ if (f == null)
20
+ l.splice(1);
21
+ else
22
+ return f;
23
+ }, t);
24
+ return i === void 0 ? e in t ? t[e] : "" : i;
25
+ }, De = (e) => typeof e > "u" || e === null ? "" : e, Se = (e, t = ",", i = '"') => e.filter((o) => o).map(
26
+ (o) => o.map((u) => De(u)).map((u) => `${i}${u}${i}`).join(t)
27
+ ).join(`
28
+ `), Le = (e, t, i, o) => Se(t ? [t, ...e] : e, i, o), qe = (e, t, i, o) => Se(Me(e, t), i, o), Ye = (e, t, i, o) => t ? `${t.join(i)}
29
+ ${e}` : e.replace(/"/g, '""'), Oe = (e, t, i, o) => {
30
+ if (Ce(e)) return qe(e, t, i, o);
31
+ if (Ie(e)) return Le(e, t, i, o);
32
+ if (typeof e == "string") return Ye(e, t, i);
33
+ throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ');
34
+ }, Re = (e, t, i, o, u) => {
35
+ const c = Oe(e, i, o, u), l = $e() ? "application/csv" : "text/csv", f = new Blob([t ? "\uFEFF" : "", c], { type: l }), g = `data:${l};charset=utf-8,${t ? "\uFEFF" : ""}${c}`, m = window.URL || window.webkitURL;
36
+ return typeof m.createObjectURL > "u" ? g : m.createObjectURL(f);
37
+ };
38
+ var N = { exports: {} }, H = { exports: {} }, S = {};
39
+ /** @license React v16.13.1
4
40
  * react-is.production.min.js
5
41
  *
6
42
  * Copyright (c) Facebook, Inc. and its affiliates.
7
43
  *
8
44
  * This source code is licensed under the MIT license found in the
9
45
  * LICENSE file in the root directory of this source tree.
10
- */var pe;function Ye(){if(pe)return C;pe=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,P=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function j(a){if(typeof a=="object"&&a!==null){var L=a.$$typeof;switch(L){case t:switch(a=a.type,a){case g:case m:case o:case c:case u:case P:return a;default:switch(a=a&&a.$$typeof,a){case f:case h:case k:case _:case l:return a;default:return L}}case i:return L}}}function A(a){return j(a)===m}return C.AsyncMode=g,C.ConcurrentMode=m,C.ContextConsumer=f,C.ContextProvider=l,C.Element=t,C.ForwardRef=h,C.Fragment=o,C.Lazy=k,C.Memo=_,C.Portal=i,C.Profiler=c,C.StrictMode=u,C.Suspense=P,C.isAsyncMode=function(a){return A(a)||j(a)===g},C.isConcurrentMode=A,C.isContextConsumer=function(a){return j(a)===f},C.isContextProvider=function(a){return j(a)===l},C.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===t},C.isForwardRef=function(a){return j(a)===h},C.isFragment=function(a){return j(a)===o},C.isLazy=function(a){return j(a)===k},C.isMemo=function(a){return j(a)===_},C.isPortal=function(a){return j(a)===i},C.isProfiler=function(a){return j(a)===c},C.isStrictMode=function(a){return j(a)===u},C.isSuspense=function(a){return j(a)===P},C.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===o||a===m||a===c||a===u||a===P||a===x||typeof a=="object"&&a!==null&&(a.$$typeof===k||a.$$typeof===_||a.$$typeof===l||a.$$typeof===f||a.$$typeof===h||a.$$typeof===$||a.$$typeof===M||a.$$typeof===W||a.$$typeof===w)},C.typeOf=j,C}var R={};/** @license React v16.13.1
46
+ */
47
+ var le;
48
+ function Ue() {
49
+ if (le) return S;
50
+ le = 1;
51
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, g = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, P = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, k = e ? Symbol.for("react.lazy") : 60116, _ = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
52
+ function j(a) {
53
+ if (typeof a == "object" && a !== null) {
54
+ var q = a.$$typeof;
55
+ switch (q) {
56
+ case t:
57
+ switch (a = a.type, a) {
58
+ case g:
59
+ case m:
60
+ case o:
61
+ case c:
62
+ case u:
63
+ case P:
64
+ return a;
65
+ default:
66
+ switch (a = a && a.$$typeof, a) {
67
+ case f:
68
+ case h:
69
+ case k:
70
+ case x:
71
+ case l:
72
+ return a;
73
+ default:
74
+ return q;
75
+ }
76
+ }
77
+ case i:
78
+ return q;
79
+ }
80
+ }
81
+ }
82
+ function A(a) {
83
+ return j(a) === m;
84
+ }
85
+ return S.AsyncMode = g, S.ConcurrentMode = m, S.ContextConsumer = f, S.ContextProvider = l, S.Element = t, S.ForwardRef = h, S.Fragment = o, S.Lazy = k, S.Memo = x, S.Portal = i, S.Profiler = c, S.StrictMode = u, S.Suspense = P, S.isAsyncMode = function(a) {
86
+ return A(a) || j(a) === g;
87
+ }, S.isConcurrentMode = A, S.isContextConsumer = function(a) {
88
+ return j(a) === f;
89
+ }, S.isContextProvider = function(a) {
90
+ return j(a) === l;
91
+ }, S.isElement = function(a) {
92
+ return typeof a == "object" && a !== null && a.$$typeof === t;
93
+ }, S.isForwardRef = function(a) {
94
+ return j(a) === h;
95
+ }, S.isFragment = function(a) {
96
+ return j(a) === o;
97
+ }, S.isLazy = function(a) {
98
+ return j(a) === k;
99
+ }, S.isMemo = function(a) {
100
+ return j(a) === x;
101
+ }, S.isPortal = function(a) {
102
+ return j(a) === i;
103
+ }, S.isProfiler = function(a) {
104
+ return j(a) === c;
105
+ }, S.isStrictMode = function(a) {
106
+ return j(a) === u;
107
+ }, S.isSuspense = function(a) {
108
+ return j(a) === P;
109
+ }, S.isValidElementType = function(a) {
110
+ return typeof a == "string" || typeof a == "function" || a === o || a === m || a === c || a === u || a === P || a === w || typeof a == "object" && a !== null && (a.$$typeof === k || a.$$typeof === x || a.$$typeof === l || a.$$typeof === f || a.$$typeof === h || a.$$typeof === $ || a.$$typeof === M || a.$$typeof === W || a.$$typeof === _);
111
+ }, S.typeOf = j, S;
112
+ }
113
+ var O = {};
114
+ /** @license React v16.13.1
11
115
  * react-is.development.js
12
116
  *
13
117
  * Copyright (c) Facebook, Inc. and its affiliates.
14
118
  *
15
119
  * This source code is licensed under the MIT license found in the
16
120
  * LICENSE file in the root directory of this source tree.
17
- */var de;function Ue(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,P=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function j(n){return typeof n=="string"||typeof n=="function"||n===o||n===m||n===c||n===u||n===P||n===x||typeof n=="object"&&n!==null&&(n.$$typeof===k||n.$$typeof===_||n.$$typeof===l||n.$$typeof===f||n.$$typeof===h||n.$$typeof===$||n.$$typeof===M||n.$$typeof===W||n.$$typeof===w)}function A(n){if(typeof n=="object"&&n!==null){var q=n.$$typeof;switch(q){case t:var V=n.type;switch(V){case g:case m:case o:case c:case u:case P:return V;default:var fe=V&&V.$$typeof;switch(fe){case f:case h:case k:case _:case l:return fe;default:return q}}case i:return q}}}var a=g,L=m,K=f,X=l,G=t,Z=h,B=o,Q=k,ee=_,U=i,re=c,F=u,Y=P,z=!1;function te(n){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),r(n)||A(n)===g}function r(n){return A(n)===m}function s(n){return A(n)===f}function b(n){return A(n)===l}function y(n){return typeof n=="object"&&n!==null&&n.$$typeof===t}function p(n){return A(n)===h}function E(n){return A(n)===o}function d(n){return A(n)===k}function v(n){return A(n)===_}function T(n){return A(n)===i}function O(n){return A(n)===c}function S(n){return A(n)===u}function I(n){return A(n)===P}R.AsyncMode=a,R.ConcurrentMode=L,R.ContextConsumer=K,R.ContextProvider=X,R.Element=G,R.ForwardRef=Z,R.Fragment=B,R.Lazy=Q,R.Memo=ee,R.Portal=U,R.Profiler=re,R.StrictMode=F,R.Suspense=Y,R.isAsyncMode=te,R.isConcurrentMode=r,R.isContextConsumer=s,R.isContextProvider=b,R.isElement=y,R.isForwardRef=p,R.isFragment=E,R.isLazy=d,R.isMemo=v,R.isPortal=T,R.isProfiler=O,R.isStrictMode=S,R.isSuspense=I,R.isValidElementType=j,R.typeOf=A}()),R}var ye;function we(){return ye||(ye=1,process.env.NODE_ENV==="production"?H.exports=Ye():H.exports=Ue()),H.exports}/*
121
+ */
122
+ var pe;
123
+ function We() {
124
+ return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
125
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, g = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, P = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, k = e ? Symbol.for("react.lazy") : 60116, _ = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
126
+ function j(n) {
127
+ return typeof n == "string" || typeof n == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
128
+ n === o || n === m || n === c || n === u || n === P || n === w || typeof n == "object" && n !== null && (n.$$typeof === k || n.$$typeof === x || n.$$typeof === l || n.$$typeof === f || n.$$typeof === h || n.$$typeof === $ || n.$$typeof === M || n.$$typeof === W || n.$$typeof === _);
129
+ }
130
+ function A(n) {
131
+ if (typeof n == "object" && n !== null) {
132
+ var L = n.$$typeof;
133
+ switch (L) {
134
+ case t:
135
+ var B = n.type;
136
+ switch (B) {
137
+ case g:
138
+ case m:
139
+ case o:
140
+ case c:
141
+ case u:
142
+ case P:
143
+ return B;
144
+ default:
145
+ var fe = B && B.$$typeof;
146
+ switch (fe) {
147
+ case f:
148
+ case h:
149
+ case k:
150
+ case x:
151
+ case l:
152
+ return fe;
153
+ default:
154
+ return L;
155
+ }
156
+ }
157
+ case i:
158
+ return L;
159
+ }
160
+ }
161
+ }
162
+ var a = g, q = m, K = f, X = l, G = t, Z = h, z = o, Q = k, ee = x, U = i, re = c, D = u, Y = P, V = !1;
163
+ function te(n) {
164
+ return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), r(n) || A(n) === g;
165
+ }
166
+ function r(n) {
167
+ return A(n) === m;
168
+ }
169
+ function s(n) {
170
+ return A(n) === f;
171
+ }
172
+ function b(n) {
173
+ return A(n) === l;
174
+ }
175
+ function y(n) {
176
+ return typeof n == "object" && n !== null && n.$$typeof === t;
177
+ }
178
+ function p(n) {
179
+ return A(n) === h;
180
+ }
181
+ function E(n) {
182
+ return A(n) === o;
183
+ }
184
+ function d(n) {
185
+ return A(n) === k;
186
+ }
187
+ function v(n) {
188
+ return A(n) === x;
189
+ }
190
+ function T(n) {
191
+ return A(n) === i;
192
+ }
193
+ function R(n) {
194
+ return A(n) === c;
195
+ }
196
+ function C(n) {
197
+ return A(n) === u;
198
+ }
199
+ function I(n) {
200
+ return A(n) === P;
201
+ }
202
+ O.AsyncMode = a, O.ConcurrentMode = q, O.ContextConsumer = K, O.ContextProvider = X, O.Element = G, O.ForwardRef = Z, O.Fragment = z, O.Lazy = Q, O.Memo = ee, O.Portal = U, O.Profiler = re, O.StrictMode = D, O.Suspense = Y, O.isAsyncMode = te, O.isConcurrentMode = r, O.isContextConsumer = s, O.isContextProvider = b, O.isElement = y, O.isForwardRef = p, O.isFragment = E, O.isLazy = d, O.isMemo = v, O.isPortal = T, O.isProfiler = R, O.isStrictMode = C, O.isSuspense = I, O.isValidElementType = j, O.typeOf = A;
203
+ }()), O;
204
+ }
205
+ var de;
206
+ function Pe() {
207
+ return de || (de = 1, process.env.NODE_ENV === "production" ? H.exports = Ue() : H.exports = We()), H.exports;
208
+ }
209
+ /*
18
210
  object-assign
19
211
  (c) Sindre Sorhus
20
212
  @license MIT
21
- */var ne,ve;function We(){if(ve)return ne;ve=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function u(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var g=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(g.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(h){m[h]=h}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ne=u()?Object.assign:function(c,l){for(var f,g=o(c),m,h=1;h<arguments.length;h++){f=Object(arguments[h]);for(var P in f)t.call(f,P)&&(g[P]=f[P]);if(e){m=e(f);for(var x=0;x<m.length;x++)i.call(f,m[x])&&(g[m[x]]=f[m[x]])}}return g},ne}var oe,be;function ue(){if(be)return oe;be=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return oe=e,oe}var ae,he;function xe(){return he||(he=1,ae=Function.call.bind(Object.prototype.hasOwnProperty)),ae}var ie,me;function Be(){if(me)return ie;me=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ue(),i={},o=xe();e=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function u(c,l,f,g,m){if(process.env.NODE_ENV!=="production"){for(var h in c)if(o(c,h)){var P;try{if(typeof c[h]!="function"){var x=Error((g||"React class")+": "+f+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}P=c[h](l,h,g,f,null,t)}catch(k){P=k}if(P&&!(P instanceof Error)&&e((g||"React class")+": type specification of "+f+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof P+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),P instanceof Error&&!(P.message in i)){i[P.message]=!0;var _=m?m():"";e("Failed "+f+" type: "+P.message+(_??""))}}}}return u.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},ie=u,ie}var se,ge;function ze(){if(ge)return se;ge=1;var e=we(),t=We(),i=ue(),o=xe(),u=Be(),c=function(){};process.env.NODE_ENV!=="production"&&(c=function(f){var g="Warning: "+f;typeof console<"u"&&console.error(g);try{throw new Error(g)}catch{}});function l(){return null}return se=function(f,g){var m=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function P(r){var s=r&&(m&&r[m]||r[h]);if(typeof s=="function")return s}var x="<<anonymous>>",_={array:M("array"),bigint:M("bigint"),bool:M("boolean"),func:M("function"),number:M("number"),object:M("object"),string:M("string"),symbol:M("symbol"),any:W(),arrayOf:j,element:A(),elementType:a(),instanceOf:L,node:Z(),objectOf:X,oneOf:K,oneOfType:G,shape:Q,exact:ee};function k(r,s){return r===s?r!==0||1/r===1/s:r!==r&&s!==s}function w(r,s){this.message=r,this.data=s&&typeof s=="object"?s:{},this.stack=""}w.prototype=Error.prototype;function $(r){if(process.env.NODE_ENV!=="production")var s={},b=0;function y(E,d,v,T,O,S,I){if(T=T||x,S=S||v,I!==i){if(g){var n=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw n.name="Invariant Violation",n}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var q=T+":"+v;!s[q]&&b<3&&(c("You are manually calling a React.PropTypes validation function for the `"+S+"` prop on `"+T+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),s[q]=!0,b++)}}return d[v]==null?E?d[v]===null?new w("The "+O+" `"+S+"` is marked as required "+("in `"+T+"`, but its value is `null`.")):new w("The "+O+" `"+S+"` is marked as required in "+("`"+T+"`, but its value is `undefined`.")):null:r(d,v,T,O,S)}var p=y.bind(null,!1);return p.isRequired=y.bind(null,!0),p}function M(r){function s(b,y,p,E,d,v){var T=b[y],O=F(T);if(O!==r){var S=Y(T);return new w("Invalid "+E+" `"+d+"` of type "+("`"+S+"` supplied to `"+p+"`, expected ")+("`"+r+"`."),{expectedType:r})}return null}return $(s)}function W(){return $(l)}function j(r){function s(b,y,p,E,d){if(typeof r!="function")return new w("Property `"+d+"` of component `"+p+"` has invalid PropType notation inside arrayOf.");var v=b[y];if(!Array.isArray(v)){var T=F(v);return new w("Invalid "+E+" `"+d+"` of type "+("`"+T+"` supplied to `"+p+"`, expected an array."))}for(var O=0;O<v.length;O++){var S=r(v,O,p,E,d+"["+O+"]",i);if(S instanceof Error)return S}return null}return $(s)}function A(){function r(s,b,y,p,E){var d=s[b];if(!f(d)){var v=F(d);return new w("Invalid "+p+" `"+E+"` of type "+("`"+v+"` supplied to `"+y+"`, expected a single ReactElement."))}return null}return $(r)}function a(){function r(s,b,y,p,E){var d=s[b];if(!e.isValidElementType(d)){var v=F(d);return new w("Invalid "+p+" `"+E+"` of type "+("`"+v+"` supplied to `"+y+"`, expected a single ReactElement type."))}return null}return $(r)}function L(r){function s(b,y,p,E,d){if(!(b[y]instanceof r)){var v=r.name||x,T=te(b[y]);return new w("Invalid "+E+" `"+d+"` of type "+("`"+T+"` supplied to `"+p+"`, expected ")+("instance of `"+v+"`."))}return null}return $(s)}function K(r){if(!Array.isArray(r))return process.env.NODE_ENV!=="production"&&(arguments.length>1?c("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):c("Invalid argument supplied to oneOf, expected an array.")),l;function s(b,y,p,E,d){for(var v=b[y],T=0;T<r.length;T++)if(k(v,r[T]))return null;var O=JSON.stringify(r,function(I,n){var q=Y(n);return q==="symbol"?String(n):n});return new w("Invalid "+E+" `"+d+"` of value `"+String(v)+"` "+("supplied to `"+p+"`, expected one of "+O+"."))}return $(s)}function X(r){function s(b,y,p,E,d){if(typeof r!="function")return new w("Property `"+d+"` of component `"+p+"` has invalid PropType notation inside objectOf.");var v=b[y],T=F(v);if(T!=="object")return new w("Invalid "+E+" `"+d+"` of type "+("`"+T+"` supplied to `"+p+"`, expected an object."));for(var O in v)if(o(v,O)){var S=r(v,O,p,E,d+"."+O,i);if(S instanceof Error)return S}return null}return $(s)}function G(r){if(!Array.isArray(r))return process.env.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var s=0;s<r.length;s++){var b=r[s];if(typeof b!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(b)+" at index "+s+"."),l}function y(p,E,d,v,T){for(var O=[],S=0;S<r.length;S++){var I=r[S],n=I(p,E,d,v,T,i);if(n==null)return null;n.data&&o(n.data,"expectedType")&&O.push(n.data.expectedType)}var q=O.length>0?", expected one of type ["+O.join(", ")+"]":"";return new w("Invalid "+v+" `"+T+"` supplied to "+("`"+d+"`"+q+"."))}return $(y)}function Z(){function r(s,b,y,p,E){return U(s[b])?null:new w("Invalid "+p+" `"+E+"` supplied to "+("`"+y+"`, expected a ReactNode."))}return $(r)}function B(r,s,b,y,p){return new w((r||"React class")+": "+s+" type `"+b+"."+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+p+"`.")}function Q(r){function s(b,y,p,E,d){var v=b[y],T=F(v);if(T!=="object")return new w("Invalid "+E+" `"+d+"` of type `"+T+"` "+("supplied to `"+p+"`, expected `object`."));for(var O in r){var S=r[O];if(typeof S!="function")return B(p,E,d,O,Y(S));var I=S(v,O,p,E,d+"."+O,i);if(I)return I}return null}return $(s)}function ee(r){function s(b,y,p,E,d){var v=b[y],T=F(v);if(T!=="object")return new w("Invalid "+E+" `"+d+"` of type `"+T+"` "+("supplied to `"+p+"`, expected `object`."));var O=t({},b[y],r);for(var S in O){var I=r[S];if(o(r,S)&&typeof I!="function")return B(p,E,d,S,Y(I));if(!I)return new w("Invalid "+E+" `"+d+"` key `"+S+"` supplied to `"+p+"`.\nBad object: "+JSON.stringify(b[y],null," ")+`
22
- Valid keys: `+JSON.stringify(Object.keys(r),null," "));var n=I(v,S,p,E,d+"."+S,i);if(n)return n}return null}return $(s)}function U(r){switch(typeof r){case"number":case"string":case"undefined":return!0;case"boolean":return!r;case"object":if(Array.isArray(r))return r.every(U);if(r===null||f(r))return!0;var s=P(r);if(s){var b=s.call(r),y;if(s!==r.entries){for(;!(y=b.next()).done;)if(!U(y.value))return!1}else for(;!(y=b.next()).done;){var p=y.value;if(p&&!U(p[1]))return!1}}else return!1;return!0;default:return!1}}function re(r,s){return r==="symbol"?!0:s?s["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&s instanceof Symbol:!1}function F(r){var s=typeof r;return Array.isArray(r)?"array":r instanceof RegExp?"object":re(s,r)?"symbol":s}function Y(r){if(typeof r>"u"||r===null)return""+r;var s=F(r);if(s==="object"){if(r instanceof Date)return"date";if(r instanceof RegExp)return"regexp"}return s}function z(r){var s=Y(r);switch(s){case"array":case"object":return"an "+s;case"boolean":case"date":case"regexp":return"a "+s;default:return s}}function te(r){return!r.constructor||!r.constructor.name?x:r.constructor.name}return _.checkPropTypes=u,_.resetWarningCache=u.resetWarningCache,_.PropTypes=_,_},se}var ce,Ee;function Ve(){if(Ee)return ce;Ee=1;var e=ue();function t(){}function i(){}return i.resetWarningCache=t,ce=function(){function o(l,f,g,m,h,P){if(P!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}o.isRequired=o;function u(){return o}var c={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:u,element:o,elementType:o,instanceOf:u,node:o,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:i,resetWarningCache:t};return c.PropTypes=c,c},ce}var Te;function Ne(){if(Te)return N.exports;if(Te=1,process.env.NODE_ENV!=="production"){var e=we(),t=!0;N.exports=ze()(e.isElement,t)}else N.exports=Ve()();return N.exports}var D=Ne();const _e={data:D.oneOfType([D.string,D.array,D.func]).isRequired,headers:D.array,target:D.string,separator:D.string,filename:D.string,uFEFF:D.bool,onClick:D.func,asyncOnClick:D.bool,enclosingCharacter:D.string},Ae={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},He={target:"_blank"};class Ze extends Se.Component{static defaultProps=Object.assign(Ae,He);static propTypes=_e;constructor(t){super(t),this.state={}}buildURI(){return Pe(...arguments)}componentDidMount(){const{data:t,headers:i,separator:o,enclosingCharacter:u,uFEFF:c,target:l,specs:f,replace:g}=this.props;this.state.page=window.open(this.buildURI(t,c,i,o,u),l,f,g)}getWindow(){return this.state.page}render(){return null}}let Je=class extends Se.Component{static defaultProps=Ae;static propTypes=_e;constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return Pe(...arguments)}handleLegacy(t,i=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:o,headers:u,separator:c,filename:l,enclosingCharacter:f,uFEFF:g}=this.props,m=i&&typeof o=="function"?o():o;let h=new Blob([g?"\uFEFF":"",Oe(m,u,c,f)]);return window.navigator.msSaveBlob(h,l),!1}}handleAsyncClick(t){const i=o=>{if(o===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,i)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:i,separator:o,filename:u,uFEFF:c,children:l,onClick:f,asyncOnClick:g,enclosingCharacter:m,...h}=this.props,x=typeof window>"u"?"":this.buildURI(t,c,i,o,m);return J.jsxRuntimeExports.jsx("a",{download:u,...h,ref:_=>this.link=_,target:"_self",href:x,onClick:this.handleClick(),children:l})}};const Ke=Je,Xe=e=>e?e.map(t=>{const i={...t};return Object.entries(i).forEach(([o,u])=>{Array.isArray(u)&&(i[o]=`${u.join(",")}`),typeof u=="string"&&(i[o]=`${u.replaceAll('"',"'")}`)}),i}):{};function Ge(e){const{buttonContent:t,buttonType:i="tertiary",csvData:o,fileName:u="data",headers:c,separator:l=",",buttonSmall:f=!1,className:g}=e;return J.jsxRuntimeExports.jsx(Ke,{headers:c,enclosingCharacter:'"',separator:l,data:Xe(o),filename:`${u}.csv`,asyncOnClick:!0,target:"_blank",style:{backgroundImage:"none",textDecoration:"none"},"aria-label":"Click to download the data as csv",children:J.jsxRuntimeExports.jsx(le.ButtonExports.Button,{variant:i,className:`undp-viz-download-button no-underline ${f?"p-2":"py-4 px-6"} ${g} border border-primary-gray-400 dark:border-primary-gray-550`,children:t||J.jsxRuntimeExports.jsx(le.FileDown,{})})})}exports.CsvDownloadButton=Ge;
213
+ */
214
+ var ne, ye;
215
+ function ze() {
216
+ if (ye) return ne;
217
+ ye = 1;
218
+ var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
219
+ function o(c) {
220
+ if (c == null)
221
+ throw new TypeError("Object.assign cannot be called with null or undefined");
222
+ return Object(c);
223
+ }
224
+ function u() {
225
+ try {
226
+ if (!Object.assign)
227
+ return !1;
228
+ var c = new String("abc");
229
+ if (c[5] = "de", Object.getOwnPropertyNames(c)[0] === "5")
230
+ return !1;
231
+ for (var l = {}, f = 0; f < 10; f++)
232
+ l["_" + String.fromCharCode(f)] = f;
233
+ var g = Object.getOwnPropertyNames(l).map(function(h) {
234
+ return l[h];
235
+ });
236
+ if (g.join("") !== "0123456789")
237
+ return !1;
238
+ var m = {};
239
+ return "abcdefghijklmnopqrst".split("").forEach(function(h) {
240
+ m[h] = h;
241
+ }), Object.keys(Object.assign({}, m)).join("") === "abcdefghijklmnopqrst";
242
+ } catch {
243
+ return !1;
244
+ }
245
+ }
246
+ return ne = u() ? Object.assign : function(c, l) {
247
+ for (var f, g = o(c), m, h = 1; h < arguments.length; h++) {
248
+ f = Object(arguments[h]);
249
+ for (var P in f)
250
+ t.call(f, P) && (g[P] = f[P]);
251
+ if (e) {
252
+ m = e(f);
253
+ for (var w = 0; w < m.length; w++)
254
+ i.call(f, m[w]) && (g[m[w]] = f[m[w]]);
255
+ }
256
+ }
257
+ return g;
258
+ }, ne;
259
+ }
260
+ var oe, ve;
261
+ function ue() {
262
+ if (ve) return oe;
263
+ ve = 1;
264
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
265
+ return oe = e, oe;
266
+ }
267
+ var ae, be;
268
+ function _e() {
269
+ return be || (be = 1, ae = Function.call.bind(Object.prototype.hasOwnProperty)), ae;
270
+ }
271
+ var ie, he;
272
+ function Ve() {
273
+ if (he) return ie;
274
+ he = 1;
275
+ var e = function() {
276
+ };
277
+ if (process.env.NODE_ENV !== "production") {
278
+ var t = /* @__PURE__ */ ue(), i = {}, o = /* @__PURE__ */ _e();
279
+ e = function(c) {
280
+ var l = "Warning: " + c;
281
+ typeof console < "u" && console.error(l);
282
+ try {
283
+ throw new Error(l);
284
+ } catch {
285
+ }
286
+ };
287
+ }
288
+ function u(c, l, f, g, m) {
289
+ if (process.env.NODE_ENV !== "production") {
290
+ for (var h in c)
291
+ if (o(c, h)) {
292
+ var P;
293
+ try {
294
+ if (typeof c[h] != "function") {
295
+ var w = Error(
296
+ (g || "React class") + ": " + f + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
297
+ );
298
+ throw w.name = "Invariant Violation", w;
299
+ }
300
+ P = c[h](l, h, g, f, null, t);
301
+ } catch (k) {
302
+ P = k;
303
+ }
304
+ if (P && !(P instanceof Error) && e(
305
+ (g || "React class") + ": type specification of " + f + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof P + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
306
+ ), P instanceof Error && !(P.message in i)) {
307
+ i[P.message] = !0;
308
+ var x = m ? m() : "";
309
+ e(
310
+ "Failed " + f + " type: " + P.message + (x ?? "")
311
+ );
312
+ }
313
+ }
314
+ }
315
+ }
316
+ return u.resetWarningCache = function() {
317
+ process.env.NODE_ENV !== "production" && (i = {});
318
+ }, ie = u, ie;
319
+ }
320
+ var se, me;
321
+ function Be() {
322
+ if (me) return se;
323
+ me = 1;
324
+ var e = Pe(), t = ze(), i = /* @__PURE__ */ ue(), o = /* @__PURE__ */ _e(), u = /* @__PURE__ */ Ve(), c = function() {
325
+ };
326
+ process.env.NODE_ENV !== "production" && (c = function(f) {
327
+ var g = "Warning: " + f;
328
+ typeof console < "u" && console.error(g);
329
+ try {
330
+ throw new Error(g);
331
+ } catch {
332
+ }
333
+ });
334
+ function l() {
335
+ return null;
336
+ }
337
+ return se = function(f, g) {
338
+ var m = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
339
+ function P(r) {
340
+ var s = r && (m && r[m] || r[h]);
341
+ if (typeof s == "function")
342
+ return s;
343
+ }
344
+ var w = "<<anonymous>>", x = {
345
+ array: M("array"),
346
+ bigint: M("bigint"),
347
+ bool: M("boolean"),
348
+ func: M("function"),
349
+ number: M("number"),
350
+ object: M("object"),
351
+ string: M("string"),
352
+ symbol: M("symbol"),
353
+ any: W(),
354
+ arrayOf: j,
355
+ element: A(),
356
+ elementType: a(),
357
+ instanceOf: q,
358
+ node: Z(),
359
+ objectOf: X,
360
+ oneOf: K,
361
+ oneOfType: G,
362
+ shape: Q,
363
+ exact: ee
364
+ };
365
+ function k(r, s) {
366
+ return r === s ? r !== 0 || 1 / r === 1 / s : r !== r && s !== s;
367
+ }
368
+ function _(r, s) {
369
+ this.message = r, this.data = s && typeof s == "object" ? s : {}, this.stack = "";
370
+ }
371
+ _.prototype = Error.prototype;
372
+ function $(r) {
373
+ if (process.env.NODE_ENV !== "production")
374
+ var s = {}, b = 0;
375
+ function y(E, d, v, T, R, C, I) {
376
+ if (T = T || w, C = C || v, I !== i) {
377
+ if (g) {
378
+ var n = new Error(
379
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
380
+ );
381
+ throw n.name = "Invariant Violation", n;
382
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
383
+ var L = T + ":" + v;
384
+ !s[L] && // Avoid spamming the console because they are often not actionable except for lib authors
385
+ b < 3 && (c(
386
+ "You are manually calling a React.PropTypes validation function for the `" + C + "` prop on `" + T + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
387
+ ), s[L] = !0, b++);
388
+ }
389
+ }
390
+ return d[v] == null ? E ? d[v] === null ? new _("The " + R + " `" + C + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new _("The " + R + " `" + C + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : r(d, v, T, R, C);
391
+ }
392
+ var p = y.bind(null, !1);
393
+ return p.isRequired = y.bind(null, !0), p;
394
+ }
395
+ function M(r) {
396
+ function s(b, y, p, E, d, v) {
397
+ var T = b[y], R = D(T);
398
+ if (R !== r) {
399
+ var C = Y(T);
400
+ return new _(
401
+ "Invalid " + E + " `" + d + "` of type " + ("`" + C + "` supplied to `" + p + "`, expected ") + ("`" + r + "`."),
402
+ { expectedType: r }
403
+ );
404
+ }
405
+ return null;
406
+ }
407
+ return $(s);
408
+ }
409
+ function W() {
410
+ return $(l);
411
+ }
412
+ function j(r) {
413
+ function s(b, y, p, E, d) {
414
+ if (typeof r != "function")
415
+ return new _("Property `" + d + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
416
+ var v = b[y];
417
+ if (!Array.isArray(v)) {
418
+ var T = D(v);
419
+ return new _("Invalid " + E + " `" + d + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected an array."));
420
+ }
421
+ for (var R = 0; R < v.length; R++) {
422
+ var C = r(v, R, p, E, d + "[" + R + "]", i);
423
+ if (C instanceof Error)
424
+ return C;
425
+ }
426
+ return null;
427
+ }
428
+ return $(s);
429
+ }
430
+ function A() {
431
+ function r(s, b, y, p, E) {
432
+ var d = s[b];
433
+ if (!f(d)) {
434
+ var v = D(d);
435
+ return new _("Invalid " + p + " `" + E + "` of type " + ("`" + v + "` supplied to `" + y + "`, expected a single ReactElement."));
436
+ }
437
+ return null;
438
+ }
439
+ return $(r);
440
+ }
441
+ function a() {
442
+ function r(s, b, y, p, E) {
443
+ var d = s[b];
444
+ if (!e.isValidElementType(d)) {
445
+ var v = D(d);
446
+ return new _("Invalid " + p + " `" + E + "` of type " + ("`" + v + "` supplied to `" + y + "`, expected a single ReactElement type."));
447
+ }
448
+ return null;
449
+ }
450
+ return $(r);
451
+ }
452
+ function q(r) {
453
+ function s(b, y, p, E, d) {
454
+ if (!(b[y] instanceof r)) {
455
+ var v = r.name || w, T = te(b[y]);
456
+ return new _("Invalid " + E + " `" + d + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected ") + ("instance of `" + v + "`."));
457
+ }
458
+ return null;
459
+ }
460
+ return $(s);
461
+ }
462
+ function K(r) {
463
+ if (!Array.isArray(r))
464
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? c(
465
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
466
+ ) : c("Invalid argument supplied to oneOf, expected an array.")), l;
467
+ function s(b, y, p, E, d) {
468
+ for (var v = b[y], T = 0; T < r.length; T++)
469
+ if (k(v, r[T]))
470
+ return null;
471
+ var R = JSON.stringify(r, function(I, n) {
472
+ var L = Y(n);
473
+ return L === "symbol" ? String(n) : n;
474
+ });
475
+ return new _("Invalid " + E + " `" + d + "` of value `" + String(v) + "` " + ("supplied to `" + p + "`, expected one of " + R + "."));
476
+ }
477
+ return $(s);
478
+ }
479
+ function X(r) {
480
+ function s(b, y, p, E, d) {
481
+ if (typeof r != "function")
482
+ return new _("Property `" + d + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
483
+ var v = b[y], T = D(v);
484
+ if (T !== "object")
485
+ return new _("Invalid " + E + " `" + d + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected an object."));
486
+ for (var R in v)
487
+ if (o(v, R)) {
488
+ var C = r(v, R, p, E, d + "." + R, i);
489
+ if (C instanceof Error)
490
+ return C;
491
+ }
492
+ return null;
493
+ }
494
+ return $(s);
495
+ }
496
+ function G(r) {
497
+ if (!Array.isArray(r))
498
+ return process.env.NODE_ENV !== "production" && c("Invalid argument supplied to oneOfType, expected an instance of array."), l;
499
+ for (var s = 0; s < r.length; s++) {
500
+ var b = r[s];
501
+ if (typeof b != "function")
502
+ return c(
503
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(b) + " at index " + s + "."
504
+ ), l;
505
+ }
506
+ function y(p, E, d, v, T) {
507
+ for (var R = [], C = 0; C < r.length; C++) {
508
+ var I = r[C], n = I(p, E, d, v, T, i);
509
+ if (n == null)
510
+ return null;
511
+ n.data && o(n.data, "expectedType") && R.push(n.data.expectedType);
512
+ }
513
+ var L = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
514
+ return new _("Invalid " + v + " `" + T + "` supplied to " + ("`" + d + "`" + L + "."));
515
+ }
516
+ return $(y);
517
+ }
518
+ function Z() {
519
+ function r(s, b, y, p, E) {
520
+ return U(s[b]) ? null : new _("Invalid " + p + " `" + E + "` supplied to " + ("`" + y + "`, expected a ReactNode."));
521
+ }
522
+ return $(r);
523
+ }
524
+ function z(r, s, b, y, p) {
525
+ return new _(
526
+ (r || "React class") + ": " + s + " type `" + b + "." + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
527
+ );
528
+ }
529
+ function Q(r) {
530
+ function s(b, y, p, E, d) {
531
+ var v = b[y], T = D(v);
532
+ if (T !== "object")
533
+ return new _("Invalid " + E + " `" + d + "` of type `" + T + "` " + ("supplied to `" + p + "`, expected `object`."));
534
+ for (var R in r) {
535
+ var C = r[R];
536
+ if (typeof C != "function")
537
+ return z(p, E, d, R, Y(C));
538
+ var I = C(v, R, p, E, d + "." + R, i);
539
+ if (I)
540
+ return I;
541
+ }
542
+ return null;
543
+ }
544
+ return $(s);
545
+ }
546
+ function ee(r) {
547
+ function s(b, y, p, E, d) {
548
+ var v = b[y], T = D(v);
549
+ if (T !== "object")
550
+ return new _("Invalid " + E + " `" + d + "` of type `" + T + "` " + ("supplied to `" + p + "`, expected `object`."));
551
+ var R = t({}, b[y], r);
552
+ for (var C in R) {
553
+ var I = r[C];
554
+ if (o(r, C) && typeof I != "function")
555
+ return z(p, E, d, C, Y(I));
556
+ if (!I)
557
+ return new _(
558
+ "Invalid " + E + " `" + d + "` key `" + C + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(b[y], null, " ") + `
559
+ Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
560
+ );
561
+ var n = I(v, C, p, E, d + "." + C, i);
562
+ if (n)
563
+ return n;
564
+ }
565
+ return null;
566
+ }
567
+ return $(s);
568
+ }
569
+ function U(r) {
570
+ switch (typeof r) {
571
+ case "number":
572
+ case "string":
573
+ case "undefined":
574
+ return !0;
575
+ case "boolean":
576
+ return !r;
577
+ case "object":
578
+ if (Array.isArray(r))
579
+ return r.every(U);
580
+ if (r === null || f(r))
581
+ return !0;
582
+ var s = P(r);
583
+ if (s) {
584
+ var b = s.call(r), y;
585
+ if (s !== r.entries) {
586
+ for (; !(y = b.next()).done; )
587
+ if (!U(y.value))
588
+ return !1;
589
+ } else
590
+ for (; !(y = b.next()).done; ) {
591
+ var p = y.value;
592
+ if (p && !U(p[1]))
593
+ return !1;
594
+ }
595
+ } else
596
+ return !1;
597
+ return !0;
598
+ default:
599
+ return !1;
600
+ }
601
+ }
602
+ function re(r, s) {
603
+ return r === "symbol" ? !0 : s ? s["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && s instanceof Symbol : !1;
604
+ }
605
+ function D(r) {
606
+ var s = typeof r;
607
+ return Array.isArray(r) ? "array" : r instanceof RegExp ? "object" : re(s, r) ? "symbol" : s;
608
+ }
609
+ function Y(r) {
610
+ if (typeof r > "u" || r === null)
611
+ return "" + r;
612
+ var s = D(r);
613
+ if (s === "object") {
614
+ if (r instanceof Date)
615
+ return "date";
616
+ if (r instanceof RegExp)
617
+ return "regexp";
618
+ }
619
+ return s;
620
+ }
621
+ function V(r) {
622
+ var s = Y(r);
623
+ switch (s) {
624
+ case "array":
625
+ case "object":
626
+ return "an " + s;
627
+ case "boolean":
628
+ case "date":
629
+ case "regexp":
630
+ return "a " + s;
631
+ default:
632
+ return s;
633
+ }
634
+ }
635
+ function te(r) {
636
+ return !r.constructor || !r.constructor.name ? w : r.constructor.name;
637
+ }
638
+ return x.checkPropTypes = u, x.resetWarningCache = u.resetWarningCache, x.PropTypes = x, x;
639
+ }, se;
640
+ }
641
+ var ce, ge;
642
+ function Ne() {
643
+ if (ge) return ce;
644
+ ge = 1;
645
+ var e = /* @__PURE__ */ ue();
646
+ function t() {
647
+ }
648
+ function i() {
649
+ }
650
+ return i.resetWarningCache = t, ce = function() {
651
+ function o(l, f, g, m, h, P) {
652
+ if (P !== e) {
653
+ var w = new Error(
654
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
655
+ );
656
+ throw w.name = "Invariant Violation", w;
657
+ }
658
+ }
659
+ o.isRequired = o;
660
+ function u() {
661
+ return o;
662
+ }
663
+ var c = {
664
+ array: o,
665
+ bigint: o,
666
+ bool: o,
667
+ func: o,
668
+ number: o,
669
+ object: o,
670
+ string: o,
671
+ symbol: o,
672
+ any: o,
673
+ arrayOf: u,
674
+ element: o,
675
+ elementType: o,
676
+ instanceOf: u,
677
+ node: o,
678
+ objectOf: u,
679
+ oneOf: u,
680
+ oneOfType: u,
681
+ shape: u,
682
+ exact: u,
683
+ checkPropTypes: i,
684
+ resetWarningCache: t
685
+ };
686
+ return c.PropTypes = c, c;
687
+ }, ce;
688
+ }
689
+ var Ee;
690
+ function He() {
691
+ if (Ee) return N.exports;
692
+ if (Ee = 1, process.env.NODE_ENV !== "production") {
693
+ var e = Pe(), t = !0;
694
+ N.exports = /* @__PURE__ */ Be()(e.isElement, t);
695
+ } else
696
+ N.exports = /* @__PURE__ */ Ne()();
697
+ return N.exports;
698
+ }
699
+ var F = /* @__PURE__ */ He();
700
+ const we = {
701
+ data: F.oneOfType([F.string, F.array, F.func]).isRequired,
702
+ headers: F.array,
703
+ target: F.string,
704
+ separator: F.string,
705
+ filename: F.string,
706
+ uFEFF: F.bool,
707
+ onClick: F.func,
708
+ asyncOnClick: F.bool,
709
+ enclosingCharacter: F.string
710
+ }, xe = {
711
+ separator: ",",
712
+ filename: "generatedBy_react-csv.csv",
713
+ uFEFF: !0,
714
+ asyncOnClick: !1,
715
+ enclosingCharacter: '"'
716
+ }, Je = {
717
+ target: "_blank"
718
+ };
719
+ class rr extends Te.Component {
720
+ static defaultProps = Object.assign(
721
+ xe,
722
+ Je
723
+ );
724
+ static propTypes = we;
725
+ constructor(t) {
726
+ super(t), this.state = {};
727
+ }
728
+ buildURI() {
729
+ return Re(...arguments);
730
+ }
731
+ componentDidMount() {
732
+ const { data: t, headers: i, separator: o, enclosingCharacter: u, uFEFF: c, target: l, specs: f, replace: g } = this.props;
733
+ this.state.page = window.open(
734
+ this.buildURI(t, c, i, o, u),
735
+ l,
736
+ f,
737
+ g
738
+ );
739
+ }
740
+ getWindow() {
741
+ return this.state.page;
742
+ }
743
+ render() {
744
+ return null;
745
+ }
746
+ }
747
+ let Ke = class extends Te.Component {
748
+ static defaultProps = xe;
749
+ static propTypes = we;
750
+ constructor(t) {
751
+ super(t), this.buildURI = this.buildURI.bind(this);
752
+ }
753
+ buildURI() {
754
+ return Re(...arguments);
755
+ }
756
+ /**
757
+ * In IE11 this method will trigger the file download
758
+ */
759
+ handleLegacy(t, i = !1) {
760
+ if (window.navigator.msSaveOrOpenBlob) {
761
+ t.preventDefault();
762
+ const {
763
+ data: o,
764
+ headers: u,
765
+ separator: c,
766
+ filename: l,
767
+ enclosingCharacter: f,
768
+ uFEFF: g
769
+ } = this.props, m = i && typeof o == "function" ? o() : o;
770
+ let h = new Blob([g ? "\uFEFF" : "", Oe(m, u, c, f)]);
771
+ return window.navigator.msSaveBlob(h, l), !1;
772
+ }
773
+ }
774
+ handleAsyncClick(t) {
775
+ const i = (o) => {
776
+ if (o === !1) {
777
+ t.preventDefault();
778
+ return;
779
+ }
780
+ this.handleLegacy(t, !0);
781
+ };
782
+ this.props.onClick(t, i);
783
+ }
784
+ handleSyncClick(t) {
785
+ if (this.props.onClick(t) === !1) {
786
+ t.preventDefault();
787
+ return;
788
+ }
789
+ this.handleLegacy(t);
790
+ }
791
+ handleClick() {
792
+ return (t) => {
793
+ if (typeof this.props.onClick == "function")
794
+ return this.props.asyncOnClick ? this.handleAsyncClick(t) : this.handleSyncClick(t);
795
+ this.handleLegacy(t);
796
+ };
797
+ }
798
+ render() {
799
+ const {
800
+ data: t,
801
+ headers: i,
802
+ separator: o,
803
+ filename: u,
804
+ uFEFF: c,
805
+ children: l,
806
+ onClick: f,
807
+ asyncOnClick: g,
808
+ enclosingCharacter: m,
809
+ ...h
810
+ } = this.props, w = typeof window > "u" ? "" : this.buildURI(t, c, i, o, m);
811
+ return /* @__PURE__ */ J.jsx(
812
+ "a",
813
+ {
814
+ download: u,
815
+ ...h,
816
+ ref: (x) => this.link = x,
817
+ target: "_self",
818
+ href: w,
819
+ onClick: this.handleClick(),
820
+ children: l
821
+ }
822
+ );
823
+ }
824
+ };
825
+ const Xe = Ke, Ge = (e) => e ? e.map((t) => {
826
+ const i = { ...t };
827
+ return Object.entries(i).forEach(([o, u]) => {
828
+ Array.isArray(u) && (i[o] = `${u.join(",")}`), typeof u == "string" && (i[o] = `${u.replaceAll('"', "'")}`);
829
+ }), i;
830
+ }) : {};
831
+ function nr(e) {
832
+ const {
833
+ buttonContent: t,
834
+ buttonType: i = "tertiary",
835
+ csvData: o,
836
+ fileName: u = "data",
837
+ headers: c,
838
+ separator: l = ",",
839
+ buttonSmall: f = !1,
840
+ className: g
841
+ } = e;
842
+ return /* @__PURE__ */ J.jsx(
843
+ Xe,
844
+ {
845
+ headers: c,
846
+ enclosingCharacter: '"',
847
+ separator: l,
848
+ data: Ge(o),
849
+ filename: `${u}.csv`,
850
+ asyncOnClick: !0,
851
+ target: "_blank",
852
+ style: { backgroundImage: "none", textDecoration: "none" },
853
+ "aria-label": "Click to download the data as csv",
854
+ children: /* @__PURE__ */ J.jsx(
855
+ Ae,
856
+ {
857
+ variant: i,
858
+ className: `undp-viz-download-button no-underline ${f ? "p-2" : "py-4 px-6"} ${g} border border-primary-gray-400 dark:border-primary-gray-550`,
859
+ children: t || /* @__PURE__ */ J.jsx(je, {})
860
+ }
861
+ )
862
+ }
863
+ );
864
+ }
865
+ export {
866
+ nr as CsvDownloadButton
867
+ };
23
868
  //# sourceMappingURL=CsvDownloadButton.js.map