@undp/data-viz 1.2.8 → 1.3.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.
- package/dist/AreaChart.d.ts +224 -0
- package/dist/AreaChart.js +2 -0
- package/dist/AreaChart.js.map +1 -0
- package/dist/Axis-BlyBRMNw.cjs +2 -0
- package/dist/Axis-BlyBRMNw.cjs.map +1 -0
- package/dist/Axis-CvK-w3E2.js +44 -0
- package/dist/Axis-CvK-w3E2.js.map +1 -0
- package/dist/AxisTitle-BY8MI9jC.cjs +2 -0
- package/dist/AxisTitle-BY8MI9jC.cjs.map +1 -0
- package/dist/AxisTitle-BeMxcw5I.js +21 -0
- package/dist/AxisTitle-BeMxcw5I.js.map +1 -0
- package/dist/BarGraph.d.ts +460 -0
- package/dist/BarGraph.js +2 -0
- package/dist/BarGraph.js.map +1 -0
- package/dist/BasicStatCard.d.ts +106 -0
- package/dist/BasicStatCard.js +2 -0
- package/dist/BasicStatCard.js.map +1 -0
- package/dist/BeeSwarmChart.d.ts +189 -0
- package/dist/BeeSwarmChart.js +2 -0
- package/dist/BeeSwarmChart.js.map +1 -0
- package/dist/BiVariateChoroplethMap.d.ts +189 -0
- package/dist/BiVariateChoroplethMap.js +2 -0
- package/dist/BiVariateChoroplethMap.js.map +1 -0
- package/dist/BulletChart.d.ts +219 -0
- package/dist/BulletChart.js +2 -0
- package/dist/BulletChart.js.map +1 -0
- package/dist/ButterflyChart.d.ts +201 -0
- package/dist/ButterflyChart.js +2 -0
- package/dist/ButterflyChart.js.map +1 -0
- package/dist/ChoroplethMap.d.ts +190 -0
- package/dist/ChoroplethMap.js +2 -0
- package/dist/ChoroplethMap.js.map +1 -0
- package/dist/CirclePackingGraph.d.ts +161 -0
- package/dist/CirclePackingGraph.js +2 -0
- package/dist/CirclePackingGraph.js.map +1 -0
- package/dist/ColorLegend.d.ts +17 -0
- package/dist/ColorLegend.js +2 -0
- package/dist/ColorLegend.js.map +1 -0
- package/dist/ColorLegendWithMouseOver.d.ts +16 -0
- package/dist/ColorLegendWithMouseOver.js +2 -0
- package/dist/ColorLegendWithMouseOver.js.map +1 -0
- package/dist/Colors.d.ts +174 -0
- package/dist/Colors.js +2 -0
- package/dist/Colors.js.map +1 -0
- package/dist/CopyTextButton.d.ts +13 -0
- package/dist/CopyTextButton.js +17 -0
- package/dist/CopyTextButton.js.map +1 -0
- package/dist/CsvDownloadButton.d.ts +22 -0
- package/dist/CsvDownloadButton.js +23 -0
- package/dist/CsvDownloadButton.js.map +1 -0
- package/dist/DataCards.d.ts +131 -0
- package/dist/DataCards.js +2 -0
- package/dist/DataCards.js.map +1 -0
- package/dist/DataTable.d.ts +122 -0
- package/dist/DataTable.js +2 -0
- package/dist/DataTable.js.map +1 -0
- package/dist/DifferenceLineChart.d.ts +237 -0
- package/dist/DifferenceLineChart.js +2 -0
- package/dist/DifferenceLineChart.js.map +1 -0
- package/dist/DonutChart.d.ts +148 -0
- package/dist/DonutChart.js +2 -0
- package/dist/DonutChart.js.map +1 -0
- package/dist/DotDensityMap.d.ts +191 -0
- package/dist/DotDensityMap.js +2 -0
- package/dist/DotDensityMap.js.map +1 -0
- package/dist/DropdownSelect-CuzV7gdj.cjs +29 -0
- package/dist/DropdownSelect-CuzV7gdj.cjs.map +1 -0
- package/dist/DropdownSelect-DmZsXrhY.js +2698 -0
- package/dist/DropdownSelect-DmZsXrhY.js.map +1 -0
- package/dist/DualAxisLineChart.d.ts +180 -0
- package/dist/DualAxisLineChart.js +2 -0
- package/dist/DualAxisLineChart.js.map +1 -0
- package/dist/DumbbellChart.d.ts +224 -0
- package/dist/DumbbellChart.js +2 -0
- package/dist/DumbbellChart.js.map +1 -0
- package/dist/EmptyState-BQguKAp5.cjs +2 -0
- package/dist/EmptyState-BQguKAp5.cjs.map +1 -0
- package/dist/EmptyState-b2Ln487i.js +22 -0
- package/dist/EmptyState-b2Ln487i.js.map +1 -0
- package/dist/ExcelDownloadButton.d.ts +22 -0
- package/dist/ExcelDownloadButton.js +2 -0
- package/dist/ExcelDownloadButton.js.map +1 -0
- package/dist/FootNote.d.ts +12 -0
- package/dist/FootNote.js +2 -0
- package/dist/FootNote.js.map +1 -0
- package/dist/GeoHubCompareMaps.d.ts +103 -0
- package/dist/GeoHubCompareMaps.js +2 -0
- package/dist/GeoHubCompareMaps.js.map +1 -0
- package/dist/GeoHubMap.d.ts +118 -0
- package/dist/GeoHubMap.js +2 -0
- package/dist/GeoHubMap.js.map +1 -0
- package/dist/GeoHubMapWithLayerSelection.d.ts +117 -0
- package/dist/GeoHubMapWithLayerSelection.js +2 -0
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -0
- package/dist/GraphDescription.d.ts +12 -0
- package/dist/GraphDescription.js +2 -0
- package/dist/GraphDescription.js.map +1 -0
- package/dist/GraphFooter.d.ts +24 -0
- package/dist/GraphFooter.js +2 -0
- package/dist/GraphFooter.js.map +1 -0
- package/dist/GraphHeader.d.ts +22 -0
- package/dist/GraphHeader.js +2 -0
- package/dist/GraphHeader.js.map +1 -0
- package/dist/GraphTitle.d.ts +13 -0
- package/dist/GraphTitle.js +2 -0
- package/dist/GraphTitle.js.map +1 -0
- package/dist/GriddedGraphs.d.ts +540 -0
- package/dist/GriddedGraphs.js +2 -0
- package/dist/GriddedGraphs.js.map +1 -0
- package/dist/GriddedGraphsFromConfig.d.ts +543 -0
- package/dist/GriddedGraphsFromConfig.js +2 -0
- package/dist/GriddedGraphsFromConfig.js.map +1 -0
- package/dist/HeatMap.d.ts +166 -0
- package/dist/HeatMap.js +2 -0
- package/dist/HeatMap.js.map +1 -0
- package/dist/Histogram.d.ts +165 -0
- package/dist/Histogram.js +2 -0
- package/dist/Histogram.js.map +1 -0
- package/dist/ImageDownloadButton.d.ts +15 -0
- package/dist/ImageDownloadButton.js +2 -0
- package/dist/ImageDownloadButton.js.map +1 -0
- package/dist/LineChartWithConfidenceInterval.d.ts +250 -0
- package/dist/LineChartWithConfidenceInterval.js +2 -0
- package/dist/LineChartWithConfidenceInterval.js.map +1 -0
- package/dist/LinearColorLegend.d.ts +13 -0
- package/dist/LinearColorLegend.js +2 -0
- package/dist/LinearColorLegend.js.map +1 -0
- package/dist/Modal-C9txyGOk.js +723 -0
- package/dist/Modal-C9txyGOk.js.map +1 -0
- package/dist/Modal-cQF2UQIa.cjs +46 -0
- package/dist/Modal-cQF2UQIa.cjs.map +1 -0
- package/dist/MultiGraphDashboard.d.ts +558 -0
- package/dist/MultiGraphDashboard.js +2 -0
- package/dist/MultiGraphDashboard.js.map +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +562 -0
- package/dist/MultiGraphDashboardFromConfig.js +2 -0
- package/dist/MultiGraphDashboardFromConfig.js.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +128 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +133 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -0
- package/dist/MultiLineAltChart.d.ts +244 -0
- package/dist/MultiLineAltChart.js +2 -0
- package/dist/MultiLineAltChart.js.map +1 -0
- package/dist/MultiLineChart.d.ts +246 -0
- package/dist/MultiLineChart.js +2 -0
- package/dist/MultiLineChart.js.map +1 -0
- package/dist/ParetoChart.d.ts +178 -0
- package/dist/ParetoChart.js +2 -0
- package/dist/ParetoChart.js.map +1 -0
- package/dist/RadarChart.d.ts +176 -0
- package/dist/RadarChart.js +2 -0
- package/dist/RadarChart.js.map +1 -0
- package/dist/ReferenceLine-BgDdQbDI.js +129 -0
- package/dist/ReferenceLine-BgDdQbDI.js.map +1 -0
- package/dist/ReferenceLine-Bsb5jeE4.cjs +2 -0
- package/dist/ReferenceLine-Bsb5jeE4.cjs.map +1 -0
- package/dist/RegressionLine-BfpCuD7B.cjs +2 -0
- package/dist/RegressionLine-BfpCuD7B.cjs.map +1 -0
- package/dist/RegressionLine-cSljpHaE.js +49 -0
- package/dist/RegressionLine-cSljpHaE.js.map +1 -0
- package/dist/SVGDownloadButton.d.ts +15 -0
- package/dist/SVGDownloadButton.js +2 -0
- package/dist/SVGDownloadButton.js.map +1 -0
- package/dist/SankeyChart.d.ts +178 -0
- package/dist/SankeyChart.js +2 -0
- package/dist/SankeyChart.js.map +1 -0
- package/dist/ScatterPlot.d.ts +266 -0
- package/dist/ScatterPlot.js +2 -0
- package/dist/ScatterPlot.js.map +1 -0
- package/dist/ScrollStory.d.ts +491 -0
- package/dist/ScrollStory.js +2 -0
- package/dist/ScrollStory.js.map +1 -0
- package/dist/SimpleLineChart.d.ts +230 -0
- package/dist/SimpleLineChart.js +2 -0
- package/dist/SimpleLineChart.js.map +1 -0
- package/dist/SingleGraphDashboard.d.ts +545 -0
- package/dist/SingleGraphDashboard.js +2 -0
- package/dist/SingleGraphDashboard.js.map +1 -0
- package/dist/SingleGraphDashboardFromConfig.d.ts +547 -0
- package/dist/SingleGraphDashboardFromConfig.js +2 -0
- package/dist/SingleGraphDashboardFromConfig.js.map +1 -0
- package/dist/SlopeChart.d.ts +167 -0
- package/dist/SlopeChart.js +2 -0
- package/dist/SlopeChart.js.map +1 -0
- package/dist/Source.d.ts +16 -0
- package/dist/Source.js +2 -0
- package/dist/Source.js.map +1 -0
- package/dist/SparkLine.d.ts +139 -0
- package/dist/SparkLine.js +2 -0
- package/dist/SparkLine.js.map +1 -0
- package/dist/Spinner-DN3s4S0H.js +17 -0
- package/dist/Spinner-DN3s4S0H.js.map +1 -0
- package/dist/Spinner-UmN-KPe9.cjs +2 -0
- package/dist/Spinner-UmN-KPe9.cjs.map +1 -0
- package/dist/StatCardFromData.d.ts +115 -0
- package/dist/StatCardFromData.js +2 -0
- package/dist/StatCardFromData.js.map +1 -0
- package/dist/StripChart.d.ts +178 -0
- package/dist/StripChart.js +2 -0
- package/dist/StripChart.js.map +1 -0
- package/dist/ThreeDGlobe.d.ts +158 -0
- package/dist/ThreeDGlobe.js +2 -0
- package/dist/ThreeDGlobe.js.map +1 -0
- package/dist/ThresholdColorLegendWithMouseOver.d.ts +16 -0
- package/dist/ThresholdColorLegendWithMouseOver.js +2 -0
- package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -0
- package/dist/Tooltip-BM18N_3l.cjs +2 -0
- package/dist/Tooltip-BM18N_3l.cjs.map +1 -0
- package/dist/Tooltip-CzZ1wFyF.js +47 -0
- package/dist/Tooltip-CzZ1wFyF.js.map +1 -0
- package/dist/TreeMapGraph.d.ts +158 -0
- package/dist/TreeMapGraph.js +2 -0
- package/dist/TreeMapGraph.js.map +1 -0
- package/dist/Types.d.ts +883 -0
- package/dist/Types.js +2 -0
- package/dist/Types.js.map +1 -0
- package/dist/Typography-CDR-DAHH.cjs +2 -0
- package/dist/Typography-CDR-DAHH.cjs.map +1 -0
- package/dist/Typography-XJoSE-By.js +58 -0
- package/dist/Typography-XJoSE-By.js.map +1 -0
- package/dist/UnitChart.d.ts +132 -0
- package/dist/UnitChart.js +2 -0
- package/dist/UnitChart.js.map +1 -0
- package/dist/XAxesLabels-C9REbQQs.cjs +2 -0
- package/dist/XAxesLabels-C9REbQQs.cjs.map +1 -0
- package/dist/XAxesLabels-DVw7Lvuz.js +58 -0
- package/dist/XAxesLabels-DVw7Lvuz.js.map +1 -0
- package/dist/XTicksAndGridLines-CUefTINd.js +57 -0
- package/dist/XTicksAndGridLines-CUefTINd.js.map +1 -0
- package/dist/XTicksAndGridLines-DuK35ROS.cjs +2 -0
- package/dist/XTicksAndGridLines-DuK35ROS.cjs.map +1 -0
- package/dist/YAxesLabels-CYVY053X.js +53 -0
- package/dist/YAxesLabels-CYVY053X.js.map +1 -0
- package/dist/YAxesLabels-DhBdLk3Z.cjs +2 -0
- package/dist/YAxesLabels-DhBdLk3Z.cjs.map +1 -0
- package/dist/YTicksAndGridLines-BJRXuBdC.js +57 -0
- package/dist/YTicksAndGridLines-BJRXuBdC.js.map +1 -0
- package/dist/YTicksAndGridLines-CtLvzExe.cjs +2 -0
- package/dist/YTicksAndGridLines-CtLvzExe.cjs.map +1 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +2 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs.map +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/area-BE2wo7fv.js +53 -0
- package/dist/area-BE2wo7fv.js.map +1 -0
- package/dist/area-D3Qx7k7K.cjs +2 -0
- package/dist/area-D3Qx7k7K.cjs.map +1 -0
- package/dist/array-B7TkkRH0.js +89 -0
- package/dist/array-B7TkkRH0.js.map +1 -0
- package/dist/array-DKbXV8lR.cjs +2 -0
- package/dist/array-DKbXV8lR.cjs.map +1 -0
- package/dist/band-BEjh2CHI.js +47 -0
- package/dist/band-BEjh2CHI.js.map +1 -0
- package/dist/band-CAApY4Pd.cjs +2 -0
- package/dist/band-CAApY4Pd.cjs.map +1 -0
- package/dist/checkIfMultiple-CaefP4X2.js +2264 -0
- package/dist/checkIfMultiple-CaefP4X2.js.map +1 -0
- package/dist/checkIfMultiple-D3h8to1T.cjs +12 -0
- package/dist/checkIfMultiple-D3h8to1T.cjs.map +1 -0
- package/dist/checkIfNullOrUndefined.d.ts +15 -0
- package/dist/checkIfNullOrUndefined.js +2 -0
- package/dist/checkIfNullOrUndefined.js.map +1 -0
- package/dist/customArea-B47Ew5cT.cjs +2 -0
- package/dist/customArea-B47Ew5cT.cjs.map +1 -0
- package/dist/customArea-I3MsoqIl.js +176 -0
- package/dist/customArea-I3MsoqIl.js.map +1 -0
- package/dist/defaultLocale-BEa-49Qz.js +172 -0
- package/dist/defaultLocale-BEa-49Qz.js.map +1 -0
- package/dist/defaultLocale-DIVzfLaQ.cjs +2 -0
- package/dist/defaultLocale-DIVzfLaQ.cjs.map +1 -0
- package/dist/delaunay-C1uAf38t.js +684 -0
- package/dist/delaunay-C1uAf38t.js.map +1 -0
- package/dist/delaunay-rcy0HhZi.cjs +2 -0
- package/dist/delaunay-rcy0HhZi.cjs.map +1 -0
- package/dist/ensureCompleteData-BBDZbDCE.js +102 -0
- package/dist/ensureCompleteData-BBDZbDCE.js.map +1 -0
- package/dist/ensureCompleteData-DqWQ2Zbi.cjs +2 -0
- package/dist/ensureCompleteData-DqWQ2Zbi.cjs.map +1 -0
- package/dist/excelDownload.d.ts +31 -0
- package/dist/excelDownload.js +2 -0
- package/dist/excelDownload.js.map +1 -0
- package/dist/fetchAndParseData.d.ts +84 -0
- package/dist/fetchAndParseData.js +16 -0
- package/dist/fetchAndParseData.js.map +1 -0
- package/dist/filterData-B8ocT57s.js +14 -0
- package/dist/filterData-B8ocT57s.js.map +1 -0
- package/dist/filterData-DN6py7y_.cjs +2 -0
- package/dist/filterData-DN6py7y_.cjs.map +1 -0
- package/dist/generateCodes.d.ts +25 -0
- package/dist/generateCodes.js +2 -0
- package/dist/generateCodes.js.map +1 -0
- package/dist/generateRandomString-B5zBiJzS.cjs +2 -0
- package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -0
- package/dist/generateRandomString-za3IQGfQ.js +11 -0
- package/dist/generateRandomString-za3IQGfQ.js.map +1 -0
- package/dist/getJenks.d.ts +17 -0
- package/dist/getJenks.js +2 -0
- package/dist/getJenks.js.map +1 -0
- package/dist/getPercentileValue.d.ts +13 -0
- package/dist/getPercentileValue.js +2 -0
- package/dist/getPercentileValue.js.map +1 -0
- package/dist/getQueryParamsFromLink.d.ts +18 -0
- package/dist/getQueryParamsFromLink.js +2 -0
- package/dist/getQueryParamsFromLink.js.map +1 -0
- package/dist/getSchema.d.ts +3256 -0
- package/dist/getSchema.js +2 -0
- package/dist/getSchema.js.map +1 -0
- package/dist/getSliderMarks-CWajGCGq.js +719 -0
- package/dist/getSliderMarks-CWajGCGq.js.map +1 -0
- package/dist/getSliderMarks-DDJ1CdhL.cjs +6 -0
- package/dist/getSliderMarks-DDJ1CdhL.cjs.map +1 -0
- package/dist/getTextColorBasedOnBgColor.d.ts +13 -0
- package/dist/getTextColorBasedOnBgColor.js +2 -0
- package/dist/getTextColorBasedOnBgColor.js.map +1 -0
- package/dist/getUniqValue.d.ts +18 -0
- package/dist/getUniqValue.js +2 -0
- package/dist/getUniqValue.js.map +1 -0
- package/dist/graphList.d.ts +9 -0
- package/dist/graphList.js +2 -0
- package/dist/graphList.js.map +1 -0
- package/dist/imageDownload.d.ts +16 -0
- package/dist/imageDownload.js +3 -0
- package/dist/imageDownload.js.map +1 -0
- package/dist/index-01r5X3Gr-9jE0ObrK.cjs +2 -0
- package/dist/index-01r5X3Gr-9jE0ObrK.cjs.map +1 -0
- package/dist/index-01r5X3Gr-kH7FxQ7P.js +451 -0
- package/dist/index-01r5X3Gr-kH7FxQ7P.js.map +1 -0
- package/dist/index-27yTRcko.js +35 -0
- package/dist/index-27yTRcko.js.map +1 -0
- package/dist/index-B0rbzOoC.cjs +2 -0
- package/dist/index-B0rbzOoC.cjs.map +1 -0
- package/dist/index-BGMGC-HN.cjs +22 -0
- package/dist/index-BGMGC-HN.cjs.map +1 -0
- package/dist/index-BHm2KTjD-2e-Fu8L-.js +702 -0
- package/dist/index-BHm2KTjD-2e-Fu8L-.js.map +1 -0
- package/dist/index-BHm2KTjD-D8FylaKc.cjs +44 -0
- package/dist/index-BHm2KTjD-D8FylaKc.cjs.map +1 -0
- package/dist/index-BIPNFFja.js +506 -0
- package/dist/index-BIPNFFja.js.map +1 -0
- package/dist/index-BLizQDlg.js +658 -0
- package/dist/index-BLizQDlg.js.map +1 -0
- package/dist/index-BXns0-ng.cjs +2 -0
- package/dist/index-BXns0-ng.cjs.map +1 -0
- package/dist/index-BYroABPm.cjs +2 -0
- package/dist/index-BYroABPm.cjs.map +1 -0
- package/dist/index-BczVvEBZ.cjs +2 -0
- package/dist/index-BczVvEBZ.cjs.map +1 -0
- package/dist/index-BzeLQvXk.cjs +2 -0
- package/dist/index-BzeLQvXk.cjs.map +1 -0
- package/dist/index-C1rRk_50.js +273 -0
- package/dist/index-C1rRk_50.js.map +1 -0
- package/dist/index-C21TvELx.cjs +2 -0
- package/dist/index-C21TvELx.cjs.map +1 -0
- package/dist/index-CEc_9zWy.cjs +2 -0
- package/dist/index-CEc_9zWy.cjs.map +1 -0
- package/dist/index-CZbIGs8q.cjs +2 -0
- package/dist/index-CZbIGs8q.cjs.map +1 -0
- package/dist/index-CaAIPGZo.js +631 -0
- package/dist/index-CaAIPGZo.js.map +1 -0
- package/dist/index-CbVeVrla.cjs +2 -0
- package/dist/index-CbVeVrla.cjs.map +1 -0
- package/dist/index-CqzhBPuO-CfQywbdq.js +41 -0
- package/dist/index-CqzhBPuO-CfQywbdq.js.map +1 -0
- package/dist/index-CqzhBPuO-raKZqS7l.cjs +2 -0
- package/dist/index-CqzhBPuO-raKZqS7l.cjs.map +1 -0
- package/dist/index-D7ltPi18.js +26 -0
- package/dist/index-D7ltPi18.js.map +1 -0
- package/dist/index-DSnvdkHZ.js +495 -0
- package/dist/index-DSnvdkHZ.js.map +1 -0
- package/dist/index-DXmF_0ez.js +308 -0
- package/dist/index-DXmF_0ez.js.map +1 -0
- package/dist/index-Db-Yg_Ud.js +120 -0
- package/dist/index-Db-Yg_Ud.js.map +1 -0
- package/dist/index-Ds0uHjK9.cjs +2 -0
- package/dist/index-Ds0uHjK9.cjs.map +1 -0
- package/dist/index-DxagiOHo.js +707 -0
- package/dist/index-DxagiOHo.js.map +1 -0
- package/dist/index-DzdwZ2OA.js +77 -0
- package/dist/index-DzdwZ2OA.js.map +1 -0
- package/dist/index-UV9hjG_S.js +53 -0
- package/dist/index-UV9hjG_S.js.map +1 -0
- package/dist/index-a2C2Bqn2.cjs +10 -0
- package/dist/index-a2C2Bqn2.cjs.map +1 -0
- package/dist/index.js +1 -52488
- package/dist/index.js.map +1 -1
- package/dist/init-BhZylTFx.js +63 -0
- package/dist/init-BhZylTFx.js.map +1 -0
- package/dist/init-DU0ybBc_.cjs +2 -0
- package/dist/init-DU0ybBc_.cjs.map +1 -0
- package/dist/line-CPfhohvF.js +68 -0
- package/dist/line-CPfhohvF.js.map +1 -0
- package/dist/line-DHV4JwCR.cjs +2 -0
- package/dist/line-DHV4JwCR.cjs.map +1 -0
- package/dist/linear-BVckp9RD.cjs +2 -0
- package/dist/linear-BVckp9RD.cjs.map +1 -0
- package/dist/linear-DUdu7l2G.js +221 -0
- package/dist/linear-DUdu7l2G.js.map +1 -0
- package/dist/numberFormattingFunction.d.ts +22 -0
- package/dist/numberFormattingFunction.js +2 -0
- package/dist/numberFormattingFunction.js.map +1 -0
- package/dist/ordinal-BOeNbyae.cjs +2 -0
- package/dist/ordinal-BOeNbyae.cjs.map +1 -0
- package/dist/ordinal-w9Lu4Stb.js +62 -0
- package/dist/ordinal-w9Lu4Stb.js.map +1 -0
- package/dist/parse-DlCRUFh_.js +2768 -0
- package/dist/parse-DlCRUFh_.js.map +1 -0
- package/dist/parse-hMnG_lRV.cjs +2 -0
- package/dist/parse-hMnG_lRV.cjs.map +1 -0
- package/dist/pointer-CWRWOsrb.js +23 -0
- package/dist/pointer-CWRWOsrb.js.map +1 -0
- package/dist/pointer-Dkq5NV1q.cjs +2 -0
- package/dist/pointer-Dkq5NV1q.cjs.map +1 -0
- package/dist/pow-B5-jkdHU.cjs +2 -0
- package/dist/pow-B5-jkdHU.cjs.map +1 -0
- package/dist/pow-e8zx3AQJ.js +35 -0
- package/dist/pow-e8zx3AQJ.js.map +1 -0
- package/dist/removeOutliers.d.ts +16 -0
- package/dist/removeOutliers.js +2 -0
- package/dist/removeOutliers.js.map +1 -0
- package/dist/select-Bnfk0lJx.cjs +2 -0
- package/dist/select-Bnfk0lJx.cjs.map +1 -0
- package/dist/select-DKy99ogv.js +584 -0
- package/dist/select-DKy99ogv.js.map +1 -0
- package/dist/simple-statistics-flVzqVtt.js +65 -0
- package/dist/simple-statistics-flVzqVtt.js.map +1 -0
- package/dist/simple-statistics-xm8c0LQQ.cjs +2 -0
- package/dist/simple-statistics-xm8c0LQQ.cjs.map +1 -0
- package/dist/step-BZ3C8QFW.cjs +2 -0
- package/dist/step-BZ3C8QFW.cjs.map +1 -0
- package/dist/step-BrDul-H4.js +119 -0
- package/dist/step-BrDul-H4.js.map +1 -0
- package/dist/string-B8KlVSPX.js +364 -0
- package/dist/string-B8KlVSPX.js.map +1 -0
- package/dist/string-CRoCZCYa.cjs +2 -0
- package/dist/string-CRoCZCYa.cjs.map +1 -0
- package/dist/string2HTML-BX0oNw83.js +758 -0
- package/dist/string2HTML-BX0oNw83.js.map +1 -0
- package/dist/string2HTML-X4ZYX5jI.cjs +3 -0
- package/dist/string2HTML-X4ZYX5jI.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/svgDownload.d.ts +16 -0
- package/dist/svgDownload.js +2 -0
- package/dist/svgDownload.js.map +1 -0
- package/dist/threshold-DFfqcDMa.js +23 -0
- package/dist/threshold-DFfqcDMa.js.map +1 -0
- package/dist/threshold-DNsSUf8Q.cjs +2 -0
- package/dist/threshold-DNsSUf8Q.cjs.map +1 -0
- package/dist/time-Byw_jYQ7.cjs +2 -0
- package/dist/time-Byw_jYQ7.cjs.map +1 -0
- package/dist/time-BzJP5SPC.js +715 -0
- package/dist/time-BzJP5SPC.js.map +1 -0
- package/dist/timer-B39XOBYL.js +124 -0
- package/dist/timer-B39XOBYL.js.map +1 -0
- package/dist/timer-CKyBCVzT.cjs +2 -0
- package/dist/timer-CKyBCVzT.cjs.map +1 -0
- package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js +139 -0
- package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js.map +1 -0
- package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs +4 -0
- package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs.map +1 -0
- package/dist/transformColumnsToArray.d.ts +38 -0
- package/dist/transformColumnsToArray.js +2 -0
- package/dist/transformColumnsToArray.js.map +1 -0
- package/dist/transformDataForAggregation.d.ts +38 -0
- package/dist/transformDataForAggregation.js +2 -0
- package/dist/transformDataForAggregation.js.map +1 -0
- package/dist/transformDataForGraph.d.ts +47 -0
- package/dist/transformDataForGraph.js +2 -0
- package/dist/transformDataForGraph.js.map +1 -0
- package/dist/transformDataForGraphFromFile.d.ts +66 -0
- package/dist/transformDataForGraphFromFile.js +2 -0
- package/dist/transformDataForGraphFromFile.js.map +1 -0
- package/dist/use-in-view-CZPXmTZM.js +4645 -0
- package/dist/use-in-view-CZPXmTZM.js.map +1 -0
- package/dist/use-in-view-Dl1CsAIo.cjs +2 -0
- package/dist/use-in-view-Dl1CsAIo.cjs.map +1 -0
- package/dist/validateSchema.d.ts +68 -0
- package/dist/validateSchema.js +2 -0
- package/dist/validateSchema.js.map +1 -0
- package/dist/x-Dft9NVe_-DcB7wtv5.js +61 -0
- package/dist/x-Dft9NVe_-DcB7wtv5.js.map +1 -0
- package/dist/x-Dft9NVe_-LeyJu02C.cjs +27 -0
- package/dist/x-Dft9NVe_-LeyJu02C.cjs.map +1 -0
- package/dist/y-D0sAaVii.js +421 -0
- package/dist/y-D0sAaVii.js.map +1 -0
- package/dist/y-QcCbqrzx.cjs +2 -0
- package/dist/y-QcCbqrzx.cjs.map +1 -0
- package/dist/zoom-Lo7IAUfC.cjs +2 -0
- package/dist/zoom-Lo7IAUfC.cjs.map +1 -0
- package/dist/zoom-_lqdiGoI.js +1983 -0
- package/dist/zoom-_lqdiGoI.js.map +1 -0
- package/package.json +415 -4
- package/dist/index.cjs +0 -68
- package/dist/index.cjs.map +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare type GeoHubGraphType = 'geoHubCompareMap' | 'geoHubMap' | 'geoHubMapWithLayerSelection';
|
|
2
|
+
|
|
3
|
+
declare type GraphType = GraphTypeForGriddedGraph | GeoHubGraphType;
|
|
4
|
+
|
|
5
|
+
declare type GraphTypeForGriddedGraph = 'barChart' | 'stackedBarChart' | 'groupedBarChart' | 'lineChart' | 'dualAxisLineChart' | 'multiLineChart' | 'multiLineAltChart' | 'differenceLineChart' | 'stackedAreaChart' | 'choroplethMap' | 'biVariateChoroplethMap' | 'dotDensityMap' | 'donutChart' | 'slopeChart' | 'scatterPlot' | 'dumbbellChart' | 'treeMap' | 'circlePacking' | 'heatMap' | 'stripChart' | 'beeSwarmChart' | 'butterflyChart' | 'histogram' | 'sparkLine' | 'paretoChart' | 'dataTable' | 'statCard' | 'unitChart' | 'sankeyChart' | 'lineChartWithConfidenceInterval' | 'dataCards' | 'radarChart' | 'bulletChart' | 'threeDGlobe';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Validates the configuration against the appropriate schema for the given graph type. This does not validate graphTitle, graphDescription, footNote, tooltip, detailsOnClick or cardTemplate in the graphSettings.
|
|
9
|
+
*
|
|
10
|
+
* @param config - The configuration to validate.
|
|
11
|
+
* @param graph - The graph type for which the configuration validation is performed. Can be one of:
|
|
12
|
+
* 'singleGraphDashboard', 'multiGraphDashboard', 'griddedGraph', or 'multiGraphDashboardWideToLongFormat'.
|
|
13
|
+
*
|
|
14
|
+
* @returns A promise with `isValid` indicating the validation result and `err` containing any error messages if the validation fails.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const result = validateConfigSchema(config, 'griddedGraph').then(result => {
|
|
18
|
+
* if (!result.isValid) {
|
|
19
|
+
* console.error(result.err);
|
|
20
|
+
* }
|
|
21
|
+
* });
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateConfigSchema(config: any, graph: 'singleGraphDashboard' | 'multiGraphDashboard' | 'griddedGraph' | 'multiGraphDashboardWideToLongFormat'): Promise<{
|
|
24
|
+
isValid: boolean;
|
|
25
|
+
err: string | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Validates the data against the appropriate schema for the given graph type.
|
|
30
|
+
*
|
|
31
|
+
* @param data - The data to validate.
|
|
32
|
+
* @param graph - The graph type for which the data validation is performed.
|
|
33
|
+
*
|
|
34
|
+
* @returns A promise with `isValid` indicating the validation result and `err` containing any error messages if the validation fails.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* const result = validateDataSchema(data, 'barChart').then(result => {
|
|
38
|
+
* if (!result.isValid) {
|
|
39
|
+
* console.error(result.err);
|
|
40
|
+
* }
|
|
41
|
+
* });
|
|
42
|
+
*/
|
|
43
|
+
export declare function validateDataSchema(data: any, graph: GraphType): Promise<{
|
|
44
|
+
isValid: boolean;
|
|
45
|
+
err: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Validates the settings against the appropriate schema for the given graph type. This does not validate graphTitle, graphDescription, footNote, tooltip, detailsOnClick, and cardTemplate.
|
|
50
|
+
*
|
|
51
|
+
* @param settings - The settings to validate.
|
|
52
|
+
* @param graph - The graph type for which the settings validation is performed.
|
|
53
|
+
*
|
|
54
|
+
* @returns A promise with `isValid` indicating the validation result and `err` containing any error messages if the validation fails.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* const result = validateSettingsSchema(settings, 'barChart').then(result => {
|
|
58
|
+
* if (!result.isValid) {
|
|
59
|
+
* console.error(result.err);
|
|
60
|
+
* }
|
|
61
|
+
* });
|
|
62
|
+
*/
|
|
63
|
+
export declare function validateSettingsSchema(settings: any, graph: GraphType): Promise<{
|
|
64
|
+
isValid: boolean;
|
|
65
|
+
err: string | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
|
|
68
|
+
export { }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var u=Object.create;var c=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var f=(e,a,i,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of m(a))!p.call(e,r)&&r!==i&&c(e,r,{get:()=>a[r],enumerable:!(o=h(a,r))||o.enumerable});return e};var n=(e,a,i)=>(i=e!=null?u(v(e)):{},f(a||!e||!e.__esModule?c(i,"default",{value:e,enumerable:!0}):i,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./graphList.js"),l=require("./getSchema.js");async function g(e,a){let i;try{i=(await import("ajv")).default}catch(t){throw console.error(t),new Error("AJV is not installed. Please install it to use runtime validation.")}const o=new i({allErrors:!0,allowUnionTypes:!0});if(S.GraphList.filter(t=>t.geoHubMapPresentation).map(t=>t.graphID).indexOf(a)!==-1)return{isValid:!0,err:void 0};if(!e)return{isValid:!1,err:"No data provided"};if(a==="dataTable"||a==="dataCards"||e.length===0)return{isValid:!0,err:void 0};const r=await l.getDataSchema(a);if(!r)return{isValid:!1,err:`Invalid chart type: ${a}`};const s=o.compile(r);return s(e)?{isValid:!0,err:void 0}:(console.error(s.errors),{isValid:!1,err:s.errors?.map(t=>`Error at ${t.instancePath}: ${t.message}`).join("; ")})}async function w(e,a){let i;try{i=(await import("ajv")).default}catch(t){throw console.error(t),new Error("AJV is not installed. Please install it to use runtime validation.")}const o=new i({allErrors:!0,allowUnionTypes:!0}),r=await l.getSettingsSchema(a);if(!r)return{isValid:!1,err:`Invalid chart type: ${a}`};const s=o.compile(r);return s(e)?{isValid:!0,err:void 0}:(console.error(s.errors),{isValid:!1,err:s.errors?.map(t=>`Error at ${t.instancePath}: ${t.message}`).join("; ")})}async function y(e,a){let i;try{i=(await import("ajv")).default}catch(t){throw console.error(t),new Error("AJV is not installed. Please install it to use runtime validation.")}const o=new i({allErrors:!0,allowUnionTypes:!0});let r;switch(a){case"griddedGraph":r=l.getGriddedGraphJSONSchema(void 0,e.graphType);break;case"multiGraphDashboard":r=l.getDashboardJSONSchema();break;case"singleGraphDashboard":r=l.getSingleGraphJSONSchema(void 0,e.graphType);break;case"multiGraphDashboardWideToLongFormat":r=l.getDashboardWideToLongFormatJSONSchema();break}if(!r)return{isValid:!1,err:`Invalid chart type: ${a}`};const s=o.compile(r);return s(e)?{isValid:!0,err:void 0}:(console.error(s.errors),{isValid:!1,err:s.errors?.map(t=>`Error at ${t.instancePath}: ${t.message}`).join("; ")})}exports.validateConfigSchema=y;exports.validateDataSchema=g;exports.validateSettingsSchema=w;
|
|
2
|
+
//# sourceMappingURL=validateSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateSchema.js","sources":["../src/Utils/validateSchema.ts"],"sourcesContent":["import { GraphList } from './getGraphList';\r\n\r\nimport { GraphType } from '@/Types';\r\nimport {\r\n getDashboardJSONSchema,\r\n getDashboardWideToLongFormatJSONSchema,\r\n getDataSchema,\r\n getGriddedGraphJSONSchema,\r\n getSettingsSchema,\r\n getSingleGraphJSONSchema,\r\n} from '@/Schemas/getSchema';\r\n\r\n/**\r\n * Validates the data against the appropriate schema for the given graph type.\r\n *\r\n * @param data - The data to validate.\r\n * @param graph - The graph type for which the data validation is performed.\r\n *\r\n * @returns A promise with `isValid` indicating the validation result and `err` containing any error messages if the validation fails.\r\n *\r\n * @example\r\n * const result = validateDataSchema(data, 'barChart').then(result => {\r\n * if (!result.isValid) {\r\n * console.error(result.err);\r\n * }\r\n * });\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nexport async function validateDataSchema(data: any, graph: GraphType) {\r\n let Ajv;\r\n try {\r\n Ajv = (await import('ajv')).default;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n } catch (e: any) {\r\n console.error(e);\r\n throw new Error('AJV is not installed. Please install it to use runtime validation.');\r\n }\r\n\r\n const ajv = new Ajv({ allErrors: true, allowUnionTypes: true });\r\n if (\r\n GraphList.filter(el => el.geoHubMapPresentation)\r\n .map(el => el.graphID)\r\n .indexOf(graph) !== -1\r\n )\r\n return {\r\n isValid: true,\r\n err: undefined,\r\n };\r\n if (!data) {\r\n return {\r\n isValid: false,\r\n err: `No data provided`,\r\n };\r\n }\r\n if (graph === 'dataTable' || graph === 'dataCards' || data.length === 0)\r\n return {\r\n isValid: true,\r\n err: undefined,\r\n };\r\n\r\n const schema = await getDataSchema(graph);\r\n\r\n if (!schema)\r\n return {\r\n isValid: false,\r\n err: `Invalid chart type: ${graph}`,\r\n };\r\n\r\n const validate = ajv.compile(schema);\r\n const valid = validate(data);\r\n if (!valid) {\r\n console.error(validate.errors);\r\n return {\r\n isValid: false,\r\n err: validate.errors\r\n ?.map(error => `Error at ${error.instancePath}: ${error.message}`)\r\n .join('; '),\r\n };\r\n }\r\n return {\r\n isValid: true,\r\n err: undefined,\r\n };\r\n}\r\n/**\r\n * Validates the settings against the appropriate schema for the given graph type. This does not validate graphTitle, graphDescription, footNote, tooltip, detailsOnClick, and cardTemplate.\r\n *\r\n * @param settings - The settings to validate.\r\n * @param graph - The graph type for which the settings validation is performed.\r\n *\r\n * @returns A promise with `isValid` indicating the validation result and `err` containing any error messages if the validation fails.\r\n *\r\n * @example\r\n * const result = validateSettingsSchema(settings, 'barChart').then(result => {\r\n * if (!result.isValid) {\r\n * console.error(result.err);\r\n * }\r\n * });\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nexport async function validateSettingsSchema(settings: any, graph: GraphType) {\r\n let Ajv;\r\n try {\r\n Ajv = (await import('ajv')).default;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n } catch (e: any) {\r\n console.error(e);\r\n throw new Error('AJV is not installed. Please install it to use runtime validation.');\r\n }\r\n\r\n const ajv = new Ajv({ allErrors: true, allowUnionTypes: true });\r\n const schema = await getSettingsSchema(graph);\r\n\r\n if (!schema)\r\n return {\r\n isValid: false,\r\n err: `Invalid chart type: ${graph}`,\r\n };\r\n\r\n const validate = ajv.compile(schema);\r\n const valid = validate(settings);\r\n if (!valid) {\r\n console.error(validate.errors);\r\n return {\r\n isValid: false,\r\n err: validate.errors\r\n ?.map(error => `Error at ${error.instancePath}: ${error.message}`)\r\n .join('; '),\r\n };\r\n }\r\n return {\r\n isValid: true,\r\n err: undefined,\r\n };\r\n}\r\n/**\r\n * Validates the configuration against the appropriate schema for the given graph type. This does not validate graphTitle, graphDescription, footNote, tooltip, detailsOnClick or cardTemplate in the graphSettings.\r\n *\r\n * @param config - The configuration to validate.\r\n * @param graph - The graph type for which the configuration validation is performed. Can be one of:\r\n * 'singleGraphDashboard', 'multiGraphDashboard', 'griddedGraph', or 'multiGraphDashboardWideToLongFormat'.\r\n *\r\n * @returns A promise with `isValid` indicating the validation result and `err` containing any error messages if the validation fails.\r\n *\r\n * @example\r\n * const result = validateConfigSchema(config, 'griddedGraph').then(result => {\r\n * if (!result.isValid) {\r\n * console.error(result.err);\r\n * }\r\n * });\r\n */\r\nexport async function validateConfigSchema(\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n config: any,\r\n graph:\r\n | 'singleGraphDashboard'\r\n | 'multiGraphDashboard'\r\n | 'griddedGraph'\r\n | 'multiGraphDashboardWideToLongFormat',\r\n) {\r\n let Ajv;\r\n try {\r\n Ajv = (await import('ajv')).default;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n } catch (e: any) {\r\n console.error(e);\r\n throw new Error('AJV is not installed. Please install it to use runtime validation.');\r\n }\r\n\r\n const ajv = new Ajv({ allErrors: true, allowUnionTypes: true });\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n let schema: any;\r\n switch (graph) {\r\n case 'griddedGraph':\r\n schema = getGriddedGraphJSONSchema(undefined, config.graphType);\r\n break;\r\n case 'multiGraphDashboard':\r\n schema = getDashboardJSONSchema();\r\n break;\r\n case 'singleGraphDashboard':\r\n schema = getSingleGraphJSONSchema(undefined, config.graphType);\r\n break;\r\n case 'multiGraphDashboardWideToLongFormat':\r\n schema = getDashboardWideToLongFormatJSONSchema();\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n if (!schema)\r\n return {\r\n isValid: false,\r\n err: `Invalid chart type: ${graph}`,\r\n };\r\n const validate = ajv.compile(schema);\r\n const valid = validate(config);\r\n if (!valid) {\r\n console.error(validate.errors);\r\n return {\r\n isValid: false,\r\n err: validate.errors\r\n ?.map(error => `Error at ${error.instancePath}: ${error.message}`)\r\n .join('; '),\r\n };\r\n }\r\n return {\r\n isValid: true,\r\n err: undefined,\r\n };\r\n}\r\n"],"names":["validateDataSchema","data","graph","Ajv","e","ajv","GraphList","el","schema","getDataSchema","validate","error","validateSettingsSchema","settings","getSettingsSchema","validateConfigSchema","config","getGriddedGraphJSONSchema","getDashboardJSONSchema","getSingleGraphJSONSchema","getDashboardWideToLongFormatJSONSchema"],"mappings":"ylBA4BA,eAAsBA,EAAmBC,EAAWC,EAAkB,CACpE,IAAIC,EACJ,GAAI,CACFA,GAAO,KAAM,QAAO,KAAK,GAAG,OAE9B,OAASC,EAAQ,CACf,cAAQ,MAAMA,CAAC,EACT,IAAI,MAAM,oEAAoE,CACtF,CAEA,MAAMC,EAAM,IAAIF,EAAI,CAAE,UAAW,GAAM,gBAAiB,GAAM,EAC9D,GACEG,EAAAA,UAAU,OAAOC,GAAMA,EAAG,qBAAqB,EAC5C,IAAIA,GAAMA,EAAG,OAAO,EACpB,QAAQL,CAAK,IAAM,GAEtB,MAAO,CACL,QAAS,GACT,IAAK,MAAA,EAET,GAAI,CAACD,EACH,MAAO,CACL,QAAS,GACT,IAAK,kBAAA,EAGT,GAAIC,IAAU,aAAeA,IAAU,aAAeD,EAAK,SAAW,EACpE,MAAO,CACL,QAAS,GACT,IAAK,MAAA,EAGT,MAAMO,EAAS,MAAMC,EAAAA,cAAcP,CAAK,EAExC,GAAI,CAACM,EACH,MAAO,CACL,QAAS,GACT,IAAK,uBAAuBN,CAAK,EAAA,EAGrC,MAAMQ,EAAWL,EAAI,QAAQG,CAAM,EAEnC,OADcE,EAAST,CAAI,EAUpB,CACL,QAAS,GACT,IAAK,MAAA,GAVL,QAAQ,MAAMS,EAAS,MAAM,EACtB,CACL,QAAS,GACT,IAAKA,EAAS,QACV,OAAa,YAAYC,EAAM,YAAY,KAAKA,EAAM,OAAO,EAAE,EAChE,KAAK,IAAI,CAAA,EAOlB,CAiBA,eAAsBC,EAAuBC,EAAeX,EAAkB,CAC5E,IAAIC,EACJ,GAAI,CACFA,GAAO,KAAM,QAAO,KAAK,GAAG,OAE9B,OAASC,EAAQ,CACf,cAAQ,MAAMA,CAAC,EACT,IAAI,MAAM,oEAAoE,CACtF,CAEA,MAAMC,EAAM,IAAIF,EAAI,CAAE,UAAW,GAAM,gBAAiB,GAAM,EACxDK,EAAS,MAAMM,EAAAA,kBAAkBZ,CAAK,EAE5C,GAAI,CAACM,EACH,MAAO,CACL,QAAS,GACT,IAAK,uBAAuBN,CAAK,EAAA,EAGrC,MAAMQ,EAAWL,EAAI,QAAQG,CAAM,EAEnC,OADcE,EAASG,CAAQ,EAUxB,CACL,QAAS,GACT,IAAK,MAAA,GAVL,QAAQ,MAAMH,EAAS,MAAM,EACtB,CACL,QAAS,GACT,IAAKA,EAAS,QACV,OAAa,YAAYC,EAAM,YAAY,KAAKA,EAAM,OAAO,EAAE,EAChE,KAAK,IAAI,CAAA,EAOlB,CAiBA,eAAsBI,EAEpBC,EACAd,EAKA,CACA,IAAIC,EACJ,GAAI,CACFA,GAAO,KAAM,QAAO,KAAK,GAAG,OAE9B,OAASC,EAAQ,CACf,cAAQ,MAAMA,CAAC,EACT,IAAI,MAAM,oEAAoE,CACtF,CAEA,MAAMC,EAAM,IAAIF,EAAI,CAAE,UAAW,GAAM,gBAAiB,GAAM,EAE9D,IAAIK,EACJ,OAAQN,EAAA,CACN,IAAK,eACHM,EAASS,EAAAA,0BAA0B,OAAWD,EAAO,SAAS,EAC9D,MACF,IAAK,sBACHR,EAASU,EAAAA,uBAAA,EACT,MACF,IAAK,uBACHV,EAASW,EAAAA,yBAAyB,OAAWH,EAAO,SAAS,EAC7D,MACF,IAAK,sCACHR,EAASY,EAAAA,uCAAA,EACT,KAEA,CAGJ,GAAI,CAACZ,EACH,MAAO,CACL,QAAS,GACT,IAAK,uBAAuBN,CAAK,EAAA,EAErC,MAAMQ,EAAWL,EAAI,QAAQG,CAAM,EAEnC,OADcE,EAASM,CAAM,EAUtB,CACL,QAAS,GACT,IAAK,MAAA,GAVL,QAAQ,MAAMN,EAAS,MAAM,EACtB,CACL,QAAS,GACT,IAAKA,EAAS,QACV,OAAa,YAAYC,EAAM,YAAY,KAAKA,EAAM,OAAO,EAAE,EAChE,KAAK,IAAI,CAAA,EAOlB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import C from "react";
|
|
2
|
+
var d = {}, u = {}, h;
|
|
3
|
+
function D() {
|
|
4
|
+
if (h) return u;
|
|
5
|
+
h = 1;
|
|
6
|
+
const c = C;
|
|
7
|
+
/**
|
|
8
|
+
* @license lucide-react v0.488.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const i = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (r, t, o) => o ? o.toUpperCase() : t.toLowerCase()), l = (e) => {
|
|
14
|
+
const r = n(e);
|
|
15
|
+
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
16
|
+
}, f = (...e) => e.filter((r, t, o) => !!r && r.trim() !== "" && o.indexOf(r) === t).join(" ").trim();
|
|
17
|
+
/**
|
|
18
|
+
* @license lucide-react v0.488.0 - ISC
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the ISC license.
|
|
21
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/
|
|
23
|
+
var m = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" };
|
|
24
|
+
/**
|
|
25
|
+
* @license lucide-react v0.488.0 - ISC
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the ISC license.
|
|
28
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/
|
|
30
|
+
const w = c.forwardRef(({ color: e = "currentColor", size: r = 24, strokeWidth: t = 2, absoluteStrokeWidth: o, className: s = "", children: a, iconNode: g, ...k }, v) => c.createElement("svg", { ref: v, ...m, width: r, height: r, stroke: e, strokeWidth: o ? Number(t) * 24 / Number(r) : t, className: f("lucide", s), ...k }, [...g.map(([x, L]) => c.createElement(x, L)), ...Array.isArray(a) ? a : [a]]));
|
|
31
|
+
/**
|
|
32
|
+
* @license lucide-react v0.488.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/
|
|
37
|
+
const N = (e, r) => {
|
|
38
|
+
const t = c.forwardRef(({ className: o, ...s }, a) => c.createElement(w, { ref: a, iconNode: r, className: f(`lucide-${i(l(e))}`, `lucide-${e}`, o), ...s }));
|
|
39
|
+
return t.displayName = l(e), t;
|
|
40
|
+
};
|
|
41
|
+
return u.createLucideIcon = N, u;
|
|
42
|
+
}
|
|
43
|
+
var p;
|
|
44
|
+
function $() {
|
|
45
|
+
if (p) return d;
|
|
46
|
+
p = 1;
|
|
47
|
+
const c = /* @__PURE__ */ D();
|
|
48
|
+
/**
|
|
49
|
+
* @license lucide-react v0.488.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/
|
|
54
|
+
const i = [["path", { d: "M18 6 6 18", key: "1bl5f8" }], ["path", { d: "m6 6 12 12", key: "d8bk6v" }]], n = c.createLucideIcon("x", i);
|
|
55
|
+
return d.X = n, d;
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
$ as a,
|
|
59
|
+
D as r
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=x-Dft9NVe_-DcB7wtv5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-Dft9NVe_-DcB7wtv5.js","sources":["../node_modules/@undp/design-system-react/dist/createLucideIcon-DpotSgUx.cjs","../node_modules/@undp/design-system-react/dist/x-Dft9NVe_.cjs"],"sourcesContent":["\"use strict\";const s=require(\"react\");/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const w=e=>e.replace(/([a-z0-9])([A-Z])/g,\"$1-$2\").toLowerCase(),p=e=>e.replace(/^([A-Z])|[\\s-_]+(\\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),n=e=>{const t=p(e);return t.charAt(0).toUpperCase()+t.slice(1)},i=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==\"\"&&o.indexOf(t)===r).join(\" \").trim();/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */var f={xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"};/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const g=s.forwardRef(({color:e=\"currentColor\",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:c=\"\",children:a,iconNode:l,...u},d)=>s.createElement(\"svg\",{ref:d,...f,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:i(\"lucide\",c),...u},[...l.map(([m,C])=>s.createElement(m,C)),...Array.isArray(a)?a:[a]]));/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const h=(e,t)=>{const r=s.forwardRef(({className:o,...c},a)=>s.createElement(g,{ref:a,iconNode:t,className:i(`lucide-${w(n(e))}`,`lucide-${e}`,o),...c}));return r.displayName=n(e),r};exports.createLucideIcon=h;\n//# sourceMappingURL=createLucideIcon-DpotSgUx.cjs.map\n","\"use strict\";const e=require(\"./createLucideIcon-DpotSgUx.cjs\");/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const c=[[\"path\",{d:\"M18 6 6 18\",key:\"1bl5f8\"}],[\"path\",{d:\"m6 6 12 12\",key:\"d8bk6v\"}]],t=e.createLucideIcon(\"x\",c);exports.X=t;\n//# sourceMappingURL=x-Dft9NVe_.cjs.map\n"],"names":["s","require$$0","w","p","t","r","n","i","f","g","c","l","u","d","m","C","h","createLucideIconDpotSgUx","e","xDft9NVe_"],"mappings":";;;;;AAAa,QAAMA,IAAEC;AAAAA,EAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAKnC,QAAMC,IAAE,OAAG,EAAE,QAAQ,sBAAqB,OAAO,EAAE,YAAW,GAAGC,IAAE,OAAG,EAAE,QAAQ,yBAAwB,CAACC,GAAEC,GAAE,MAAI,IAAE,EAAE,YAAW,IAAGA,EAAE,YAAW,CAAE,GAAEC,IAAE,OAAG;AAAC,UAAMF,IAAED,EAAE,CAAC;AAAE,WAAOC,EAAE,OAAO,CAAC,EAAE,YAAW,IAAGA,EAAE,MAAM,CAAC;AAAA,EAAC,GAAEG,IAAE,IAAI,MAAI,EAAE,OAAO,CAACH,GAAEC,GAAE,MAAI,CAAC,CAACD,KAAGA,EAAE,KAAI,MAAK,MAAI,EAAE,QAAQA,CAAC,MAAIC,CAAC,EAAE,KAAK,GAAG,EAAE,KAAI;AAAA,EAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAKvS,MAAIG,IAAE,EAAC,OAAM,8BAA6B,OAAM,IAAG,QAAO,IAAG,SAAQ,aAAY,MAAK,QAAO,QAAO,gBAAe,aAAY,GAAE,eAAc,SAAQ,gBAAe,QAAO;AAAA,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAK/K,QAAMC,IAAET,EAAE,WAAW,CAAC,EAAC,OAAM,IAAE,gBAAe,MAAKI,IAAE,IAAG,aAAYC,IAAE,GAAE,qBAAoB,GAAE,WAAUK,IAAE,IAAG,UAAS,GAAE,UAASC,GAAE,GAAGC,EAAC,GAAEC,MAAIb,EAAE,cAAc,OAAM,EAAC,KAAIa,GAAE,GAAGL,GAAE,OAAMJ,GAAE,QAAOA,GAAE,QAAO,GAAE,aAAY,IAAE,OAAOC,CAAC,IAAE,KAAG,OAAOD,CAAC,IAAEC,GAAE,WAAUE,EAAE,UAASG,CAAC,GAAE,GAAGE,EAAC,GAAE,CAAC,GAAGD,EAAE,IAAI,CAAC,CAACG,GAAEC,CAAC,MAAIf,EAAE,cAAcc,GAAEC,CAAC,CAAC,GAAE,GAAG,MAAM,QAAQ,CAAC,IAAE,IAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAAA,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAKpV,QAAMC,IAAE,CAAC,GAAEZ,MAAI;AAAC,UAAMC,IAAEL,EAAE,WAAW,CAAC,EAAC,WAAU,GAAE,GAAGU,EAAC,GAAE,MAAIV,EAAE,cAAcS,GAAE,EAAC,KAAI,GAAE,UAASL,GAAE,WAAUG,EAAE,UAAUL,EAAEI,EAAE,CAAC,CAAC,CAAC,IAAG,UAAU,CAAC,IAAG,CAAC,GAAE,GAAGI,EAAC,CAAC,CAAC;AAAE,WAAOL,EAAE,cAAYC,EAAE,CAAC,GAAED;AAAA,EAAC;AAAE,SAAAY,EAAA,mBAAyBD;;;;;;ACpBtM,QAAME;EAA6C;AAAA;AAAA;AAAA;AAAA;AAAA;AAK7D,QAAMR,IAAE,CAAC,CAAC,QAAO,EAAC,GAAE,cAAa,KAAI,SAAQ,CAAC,GAAE,CAAC,QAAO,EAAC,GAAE,cAAa,KAAI,SAAQ,CAAC,CAAC,GAAEN,IAAEc,EAAE,iBAAiB,KAAIR,CAAC;AAAE,SAAAS,EAAA,IAAUf;;","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";const q=require("react");var u={},d={},h;function m(){if(h)return d;h=1;const c=q;/**
|
|
2
|
+
* @license lucide-react v0.488.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,t,o)=>o?o.toUpperCase():t.toLowerCase()),l=e=>{const r=s(e);return r.charAt(0).toUpperCase()+r.slice(1)},f=(...e)=>e.filter((r,t,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===t).join(" ").trim();/**
|
|
7
|
+
* @license lucide-react v0.488.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var w={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.488.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const N=c.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:a="",children:i,iconNode:k,...L},v)=>c.createElement("svg",{ref:v,...w,width:r,height:r,stroke:e,strokeWidth:o?Number(t)*24/Number(r):t,className:f("lucide",a),...L},[...k.map(([x,C])=>c.createElement(x,C)),...Array.isArray(i)?i:[i]]));/**
|
|
17
|
+
* @license lucide-react v0.488.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const g=(e,r)=>{const t=c.forwardRef(({className:o,...a},i)=>c.createElement(N,{ref:i,iconNode:r,className:f(`lucide-${n(l(e))}`,`lucide-${e}`,o),...a}));return t.displayName=l(e),t};return d.createLucideIcon=g,d}var p;function D(){if(p)return u;p=1;const c=m();/**
|
|
22
|
+
* @license lucide-react v0.488.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const n=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],s=c.createLucideIcon("x",n);return u.X=s,u}exports.requireCreateLucideIconDpotSgUx=m;exports.requireXDft9NVe_=D;
|
|
27
|
+
//# sourceMappingURL=x-Dft9NVe_-LeyJu02C.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-Dft9NVe_-LeyJu02C.cjs","sources":["../node_modules/@undp/design-system-react/dist/createLucideIcon-DpotSgUx.cjs","../node_modules/@undp/design-system-react/dist/x-Dft9NVe_.cjs"],"sourcesContent":["\"use strict\";const s=require(\"react\");/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const w=e=>e.replace(/([a-z0-9])([A-Z])/g,\"$1-$2\").toLowerCase(),p=e=>e.replace(/^([A-Z])|[\\s-_]+(\\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),n=e=>{const t=p(e);return t.charAt(0).toUpperCase()+t.slice(1)},i=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==\"\"&&o.indexOf(t)===r).join(\" \").trim();/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */var f={xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"};/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const g=s.forwardRef(({color:e=\"currentColor\",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:c=\"\",children:a,iconNode:l,...u},d)=>s.createElement(\"svg\",{ref:d,...f,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:i(\"lucide\",c),...u},[...l.map(([m,C])=>s.createElement(m,C)),...Array.isArray(a)?a:[a]]));/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const h=(e,t)=>{const r=s.forwardRef(({className:o,...c},a)=>s.createElement(g,{ref:a,iconNode:t,className:i(`lucide-${w(n(e))}`,`lucide-${e}`,o),...c}));return r.displayName=n(e),r};exports.createLucideIcon=h;\n//# sourceMappingURL=createLucideIcon-DpotSgUx.cjs.map\n","\"use strict\";const e=require(\"./createLucideIcon-DpotSgUx.cjs\");/**\n * @license lucide-react v0.488.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */const c=[[\"path\",{d:\"M18 6 6 18\",key:\"1bl5f8\"}],[\"path\",{d:\"m6 6 12 12\",key:\"d8bk6v\"}]],t=e.createLucideIcon(\"x\",c);exports.X=t;\n//# sourceMappingURL=x-Dft9NVe_.cjs.map\n"],"names":["s","require$$0","w","p","t","r","n","i","f","g","c","a","l","u","d","m","h","createLucideIconDpotSgUx","e","xDft9NVe_"],"mappings":"qFAAa,MAAMA,EAAEC,EAAiB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKnC,MAAMC,EAAE,GAAG,EAAE,QAAQ,qBAAqB,OAAO,EAAE,YAAW,EAAGC,EAAE,GAAG,EAAE,QAAQ,wBAAwB,CAACC,EAAEC,EAAE,IAAI,EAAE,EAAE,YAAW,EAAGA,EAAE,YAAW,CAAE,EAAEC,EAAE,GAAG,CAAC,MAAMF,EAAED,EAAE,CAAC,EAAE,OAAOC,EAAE,OAAO,CAAC,EAAE,YAAW,EAAGA,EAAE,MAAM,CAAC,CAAC,EAAEG,EAAE,IAAI,IAAI,EAAE,OAAO,CAACH,EAAEC,EAAE,IAAI,CAAC,CAACD,GAAGA,EAAE,KAAI,IAAK,IAAI,EAAE,QAAQA,CAAC,IAAIC,CAAC,EAAE,KAAK,GAAG,EAAE,KAAI,EAAG;AAAA;AAAA;AAAA;AAAA;AAAA,EAKvS,IAAIG,EAAE,CAAC,MAAM,6BAA6B,MAAM,GAAG,OAAO,GAAG,QAAQ,YAAY,KAAK,OAAO,OAAO,eAAe,YAAY,EAAE,cAAc,QAAQ,eAAe,OAAO,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA,EAK/K,MAAMC,EAAET,EAAE,WAAW,CAAC,CAAC,MAAM,EAAE,eAAe,KAAKI,EAAE,GAAG,YAAYC,EAAE,EAAE,oBAAoB,EAAE,UAAUK,EAAE,GAAG,SAASC,EAAE,SAASC,EAAE,GAAGC,CAAC,EAAEC,IAAId,EAAE,cAAc,MAAM,CAAC,IAAIc,EAAE,GAAGN,EAAE,MAAMJ,EAAE,OAAOA,EAAE,OAAO,EAAE,YAAY,EAAE,OAAOC,CAAC,EAAE,GAAG,OAAOD,CAAC,EAAEC,EAAE,UAAUE,EAAE,SAASG,CAAC,EAAE,GAAGG,CAAC,EAAE,CAAC,GAAGD,EAAE,IAAI,CAAC,CAACG,EAAE,CAAC,IAAIf,EAAE,cAAce,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,QAAQJ,CAAC,EAAEA,EAAE,CAACA,CAAC,CAAC,CAAC,CAAC,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpV,MAAMK,EAAE,CAAC,EAAEZ,IAAI,CAAC,MAAMC,EAAEL,EAAE,WAAW,CAAC,CAAC,UAAU,EAAE,GAAGU,CAAC,EAAEC,IAAIX,EAAE,cAAcS,EAAE,CAAC,IAAIE,EAAE,SAASP,EAAE,UAAUG,EAAE,UAAUL,EAAEI,EAAE,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,GAAGI,CAAC,CAAC,CAAC,EAAE,OAAOL,EAAE,YAAYC,EAAE,CAAC,EAAED,CAAC,EAAE,OAAAY,EAAA,iBAAyBD,yCCpBtM,MAAME,MAA6C;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7D,MAAMR,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,aAAa,IAAI,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,aAAa,IAAI,QAAQ,CAAC,CAAC,EAAEN,EAAEc,EAAE,iBAAiB,IAAIR,CAAC,EAAE,OAAAS,EAAA,EAAUf","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { t as B, d as C } from "./timer-B39XOBYL.js";
|
|
2
|
+
function F(t) {
|
|
3
|
+
const n = +this._x.call(null, t), i = +this._y.call(null, t);
|
|
4
|
+
return $(this.cover(n, i), n, i, t);
|
|
5
|
+
}
|
|
6
|
+
function $(t, n, i, a) {
|
|
7
|
+
if (isNaN(n) || isNaN(i)) return t;
|
|
8
|
+
var f, o = t._root, u = { data: a }, e = t._x0, l = t._y0, r = t._x1, y = t._y1, p, _, h, x, s, g, c, v;
|
|
9
|
+
if (!o) return t._root = u, t;
|
|
10
|
+
for (; o.length; )
|
|
11
|
+
if ((s = n >= (p = (e + r) / 2)) ? e = p : r = p, (g = i >= (_ = (l + y) / 2)) ? l = _ : y = _, f = o, !(o = o[c = g << 1 | s])) return f[c] = u, t;
|
|
12
|
+
if (h = +t._x.call(null, o.data), x = +t._y.call(null, o.data), n === h && i === x) return u.next = o, f ? f[c] = u : t._root = u, t;
|
|
13
|
+
do
|
|
14
|
+
f = f ? f[c] = new Array(4) : t._root = new Array(4), (s = n >= (p = (e + r) / 2)) ? e = p : r = p, (g = i >= (_ = (l + y) / 2)) ? l = _ : y = _;
|
|
15
|
+
while ((c = g << 1 | s) === (v = (x >= _) << 1 | h >= p));
|
|
16
|
+
return f[v] = o, f[c] = u, t;
|
|
17
|
+
}
|
|
18
|
+
function R(t) {
|
|
19
|
+
var n, i, a = t.length, f, o, u = new Array(a), e = new Array(a), l = 1 / 0, r = 1 / 0, y = -1 / 0, p = -1 / 0;
|
|
20
|
+
for (i = 0; i < a; ++i)
|
|
21
|
+
isNaN(f = +this._x.call(null, n = t[i])) || isNaN(o = +this._y.call(null, n)) || (u[i] = f, e[i] = o, f < l && (l = f), f > y && (y = f), o < r && (r = o), o > p && (p = o));
|
|
22
|
+
if (l > y || r > p) return this;
|
|
23
|
+
for (this.cover(l, r).cover(y, p), i = 0; i < a; ++i)
|
|
24
|
+
$(this, u[i], e[i], t[i]);
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
function G(t, n) {
|
|
28
|
+
if (isNaN(t = +t) || isNaN(n = +n)) return this;
|
|
29
|
+
var i = this._x0, a = this._y0, f = this._x1, o = this._y1;
|
|
30
|
+
if (isNaN(i))
|
|
31
|
+
f = (i = Math.floor(t)) + 1, o = (a = Math.floor(n)) + 1;
|
|
32
|
+
else {
|
|
33
|
+
for (var u = f - i || 1, e = this._root, l, r; i > t || t >= f || a > n || n >= o; )
|
|
34
|
+
switch (r = (n < a) << 1 | t < i, l = new Array(4), l[r] = e, e = l, u *= 2, r) {
|
|
35
|
+
case 0:
|
|
36
|
+
f = i + u, o = a + u;
|
|
37
|
+
break;
|
|
38
|
+
case 1:
|
|
39
|
+
i = f - u, o = a + u;
|
|
40
|
+
break;
|
|
41
|
+
case 2:
|
|
42
|
+
f = i + u, a = o - u;
|
|
43
|
+
break;
|
|
44
|
+
case 3:
|
|
45
|
+
i = f - u, a = o - u;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
this._root && this._root.length && (this._root = e);
|
|
49
|
+
}
|
|
50
|
+
return this._x0 = i, this._y0 = a, this._x1 = f, this._y1 = o, this;
|
|
51
|
+
}
|
|
52
|
+
function H() {
|
|
53
|
+
var t = [];
|
|
54
|
+
return this.visit(function(n) {
|
|
55
|
+
if (!n.length) do
|
|
56
|
+
t.push(n.data);
|
|
57
|
+
while (n = n.next);
|
|
58
|
+
}), t;
|
|
59
|
+
}
|
|
60
|
+
function J(t) {
|
|
61
|
+
return arguments.length ? this.cover(+t[0][0], +t[0][1]).cover(+t[1][0], +t[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]];
|
|
62
|
+
}
|
|
63
|
+
function M(t, n, i, a, f) {
|
|
64
|
+
this.node = t, this.x0 = n, this.y0 = i, this.x1 = a, this.y1 = f;
|
|
65
|
+
}
|
|
66
|
+
function K(t, n, i) {
|
|
67
|
+
var a, f = this._x0, o = this._y0, u, e, l, r, y = this._x1, p = this._y1, _ = [], h = this._root, x, s;
|
|
68
|
+
for (h && _.push(new M(h, f, o, y, p)), i == null ? i = 1 / 0 : (f = t - i, o = n - i, y = t + i, p = n + i, i *= i); x = _.pop(); )
|
|
69
|
+
if (!(!(h = x.node) || (u = x.x0) > y || (e = x.y0) > p || (l = x.x1) < f || (r = x.y1) < o))
|
|
70
|
+
if (h.length) {
|
|
71
|
+
var g = (u + l) / 2, c = (e + r) / 2;
|
|
72
|
+
_.push(
|
|
73
|
+
new M(h[3], g, c, l, r),
|
|
74
|
+
new M(h[2], u, c, g, r),
|
|
75
|
+
new M(h[1], g, e, l, c),
|
|
76
|
+
new M(h[0], u, e, g, c)
|
|
77
|
+
), (s = (n >= c) << 1 | t >= g) && (x = _[_.length - 1], _[_.length - 1] = _[_.length - 1 - s], _[_.length - 1 - s] = x);
|
|
78
|
+
} else {
|
|
79
|
+
var v = t - +this._x.call(null, h.data), N = n - +this._y.call(null, h.data), w = v * v + N * N;
|
|
80
|
+
if (w < i) {
|
|
81
|
+
var b = Math.sqrt(i = w);
|
|
82
|
+
f = t - b, o = n - b, y = t + b, p = n + b, a = h.data;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return a;
|
|
86
|
+
}
|
|
87
|
+
function L(t) {
|
|
88
|
+
if (isNaN(y = +this._x.call(null, t)) || isNaN(p = +this._y.call(null, t))) return this;
|
|
89
|
+
var n, i = this._root, a, f, o, u = this._x0, e = this._y0, l = this._x1, r = this._y1, y, p, _, h, x, s, g, c;
|
|
90
|
+
if (!i) return this;
|
|
91
|
+
if (i.length) for (; ; ) {
|
|
92
|
+
if ((x = y >= (_ = (u + l) / 2)) ? u = _ : l = _, (s = p >= (h = (e + r) / 2)) ? e = h : r = h, n = i, !(i = i[g = s << 1 | x])) return this;
|
|
93
|
+
if (!i.length) break;
|
|
94
|
+
(n[g + 1 & 3] || n[g + 2 & 3] || n[g + 3 & 3]) && (a = n, c = g);
|
|
95
|
+
}
|
|
96
|
+
for (; i.data !== t; ) if (f = i, !(i = i.next)) return this;
|
|
97
|
+
return (o = i.next) && delete i.next, f ? (o ? f.next = o : delete f.next, this) : n ? (o ? n[g] = o : delete n[g], (i = n[0] || n[1] || n[2] || n[3]) && i === (n[3] || n[2] || n[1] || n[0]) && !i.length && (a ? a[c] = i : this._root = i), this) : (this._root = o, this);
|
|
98
|
+
}
|
|
99
|
+
function O(t) {
|
|
100
|
+
for (var n = 0, i = t.length; n < i; ++n) this.remove(t[n]);
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
function U() {
|
|
104
|
+
return this._root;
|
|
105
|
+
}
|
|
106
|
+
function V() {
|
|
107
|
+
var t = 0;
|
|
108
|
+
return this.visit(function(n) {
|
|
109
|
+
if (!n.length) do
|
|
110
|
+
++t;
|
|
111
|
+
while (n = n.next);
|
|
112
|
+
}), t;
|
|
113
|
+
}
|
|
114
|
+
function W(t) {
|
|
115
|
+
var n = [], i, a = this._root, f, o, u, e, l;
|
|
116
|
+
for (a && n.push(new M(a, this._x0, this._y0, this._x1, this._y1)); i = n.pop(); )
|
|
117
|
+
if (!t(a = i.node, o = i.x0, u = i.y0, e = i.x1, l = i.y1) && a.length) {
|
|
118
|
+
var r = (o + e) / 2, y = (u + l) / 2;
|
|
119
|
+
(f = a[3]) && n.push(new M(f, r, y, e, l)), (f = a[2]) && n.push(new M(f, o, y, r, l)), (f = a[1]) && n.push(new M(f, r, u, e, y)), (f = a[0]) && n.push(new M(f, o, u, r, y));
|
|
120
|
+
}
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
function Z(t) {
|
|
124
|
+
var n = [], i = [], a;
|
|
125
|
+
for (this._root && n.push(new M(this._root, this._x0, this._y0, this._x1, this._y1)); a = n.pop(); ) {
|
|
126
|
+
var f = a.node;
|
|
127
|
+
if (f.length) {
|
|
128
|
+
var o, u = a.x0, e = a.y0, l = a.x1, r = a.y1, y = (u + l) / 2, p = (e + r) / 2;
|
|
129
|
+
(o = f[0]) && n.push(new M(o, u, e, y, p)), (o = f[1]) && n.push(new M(o, y, e, l, p)), (o = f[2]) && n.push(new M(o, u, p, y, r)), (o = f[3]) && n.push(new M(o, y, p, l, r));
|
|
130
|
+
}
|
|
131
|
+
i.push(a);
|
|
132
|
+
}
|
|
133
|
+
for (; a = i.pop(); )
|
|
134
|
+
t(a.node, a.x0, a.y0, a.x1, a.y1);
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
function q(t) {
|
|
138
|
+
return t[0];
|
|
139
|
+
}
|
|
140
|
+
function tt(t) {
|
|
141
|
+
return arguments.length ? (this._x = t, this) : this._x;
|
|
142
|
+
}
|
|
143
|
+
function nt(t) {
|
|
144
|
+
return t[1];
|
|
145
|
+
}
|
|
146
|
+
function it(t) {
|
|
147
|
+
return arguments.length ? (this._y = t, this) : this._y;
|
|
148
|
+
}
|
|
149
|
+
function S(t, n, i) {
|
|
150
|
+
var a = new T(n ?? q, i ?? nt, NaN, NaN, NaN, NaN);
|
|
151
|
+
return t == null ? a : a.addAll(t);
|
|
152
|
+
}
|
|
153
|
+
function T(t, n, i, a, f, o) {
|
|
154
|
+
this._x = t, this._y = n, this._x0 = i, this._y0 = a, this._x1 = f, this._y1 = o, this._root = void 0;
|
|
155
|
+
}
|
|
156
|
+
function X(t) {
|
|
157
|
+
for (var n = { data: t.data }, i = n; t = t.next; ) i = i.next = { data: t.data };
|
|
158
|
+
return n;
|
|
159
|
+
}
|
|
160
|
+
var A = S.prototype = T.prototype;
|
|
161
|
+
A.copy = function() {
|
|
162
|
+
var t = new T(this._x, this._y, this._x0, this._y0, this._x1, this._y1), n = this._root, i, a;
|
|
163
|
+
if (!n) return t;
|
|
164
|
+
if (!n.length) return t._root = X(n), t;
|
|
165
|
+
for (i = [{ source: n, target: t._root = new Array(4) }]; n = i.pop(); )
|
|
166
|
+
for (var f = 0; f < 4; ++f)
|
|
167
|
+
(a = n.source[f]) && (a.length ? i.push({ source: a, target: n.target[f] = new Array(4) }) : n.target[f] = X(a));
|
|
168
|
+
return t;
|
|
169
|
+
};
|
|
170
|
+
A.add = F;
|
|
171
|
+
A.addAll = R;
|
|
172
|
+
A.cover = G;
|
|
173
|
+
A.data = H;
|
|
174
|
+
A.extent = J;
|
|
175
|
+
A.find = K;
|
|
176
|
+
A.remove = L;
|
|
177
|
+
A.removeAll = O;
|
|
178
|
+
A.root = U;
|
|
179
|
+
A.size = V;
|
|
180
|
+
A.visit = W;
|
|
181
|
+
A.visitAfter = Z;
|
|
182
|
+
A.x = tt;
|
|
183
|
+
A.y = it;
|
|
184
|
+
function d(t) {
|
|
185
|
+
return function() {
|
|
186
|
+
return t;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function E(t) {
|
|
190
|
+
return (t() - 0.5) * 1e-6;
|
|
191
|
+
}
|
|
192
|
+
function et(t) {
|
|
193
|
+
return t.x + t.vx;
|
|
194
|
+
}
|
|
195
|
+
function rt(t) {
|
|
196
|
+
return t.y + t.vy;
|
|
197
|
+
}
|
|
198
|
+
function yt(t) {
|
|
199
|
+
var n, i, a, f = 1, o = 1;
|
|
200
|
+
typeof t != "function" && (t = d(t == null ? 1 : +t));
|
|
201
|
+
function u() {
|
|
202
|
+
for (var r, y = n.length, p, _, h, x, s, g, c = 0; c < o; ++c)
|
|
203
|
+
for (p = S(n, et, rt).visitAfter(e), r = 0; r < y; ++r)
|
|
204
|
+
_ = n[r], s = i[_.index], g = s * s, h = _.x + _.vx, x = _.y + _.vy, p.visit(v);
|
|
205
|
+
function v(N, w, b, P, D) {
|
|
206
|
+
var z = N.data, Q = N.r, m = s + Q;
|
|
207
|
+
if (z) {
|
|
208
|
+
if (z.index > _.index) {
|
|
209
|
+
var k = h - z.x - z.vx, j = x - z.y - z.vy, I = k * k + j * j;
|
|
210
|
+
I < m * m && (k === 0 && (k = E(a), I += k * k), j === 0 && (j = E(a), I += j * j), I = (m - (I = Math.sqrt(I))) / I * f, _.vx += (k *= I) * (m = (Q *= Q) / (g + Q)), _.vy += (j *= I) * m, z.vx -= k * (m = 1 - m), z.vy -= j * m);
|
|
211
|
+
}
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
return w > h + m || P < h - m || b > x + m || D < x - m;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function e(r) {
|
|
218
|
+
if (r.data) return r.r = i[r.data.index];
|
|
219
|
+
for (var y = r.r = 0; y < 4; ++y)
|
|
220
|
+
r[y] && r[y].r > r.r && (r.r = r[y].r);
|
|
221
|
+
}
|
|
222
|
+
function l() {
|
|
223
|
+
if (n) {
|
|
224
|
+
var r, y = n.length, p;
|
|
225
|
+
for (i = new Array(y), r = 0; r < y; ++r) p = n[r], i[p.index] = +t(p, r, n);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return u.initialize = function(r, y) {
|
|
229
|
+
n = r, a = y, l();
|
|
230
|
+
}, u.iterations = function(r) {
|
|
231
|
+
return arguments.length ? (o = +r, u) : o;
|
|
232
|
+
}, u.strength = function(r) {
|
|
233
|
+
return arguments.length ? (f = +r, u) : f;
|
|
234
|
+
}, u.radius = function(r) {
|
|
235
|
+
return arguments.length ? (t = typeof r == "function" ? r : d(+r), l(), u) : t;
|
|
236
|
+
}, u;
|
|
237
|
+
}
|
|
238
|
+
const ft = 1664525, at = 1013904223, Y = 4294967296;
|
|
239
|
+
function ot() {
|
|
240
|
+
let t = 1;
|
|
241
|
+
return () => (t = (ft * t + at) % Y) / Y;
|
|
242
|
+
}
|
|
243
|
+
function st(t) {
|
|
244
|
+
return t.x;
|
|
245
|
+
}
|
|
246
|
+
function ht(t) {
|
|
247
|
+
return t.y;
|
|
248
|
+
}
|
|
249
|
+
var ut = 10, lt = Math.PI * (3 - Math.sqrt(5));
|
|
250
|
+
function vt(t) {
|
|
251
|
+
var n, i = 1, a = 1e-3, f = 1 - Math.pow(a, 1 / 300), o = 0, u = 0.6, e = /* @__PURE__ */ new Map(), l = B(p), r = C("tick", "end"), y = ot();
|
|
252
|
+
t == null && (t = []);
|
|
253
|
+
function p() {
|
|
254
|
+
_(), r.call("tick", n), i < a && (l.stop(), r.call("end", n));
|
|
255
|
+
}
|
|
256
|
+
function _(s) {
|
|
257
|
+
var g, c = t.length, v;
|
|
258
|
+
s === void 0 && (s = 1);
|
|
259
|
+
for (var N = 0; N < s; ++N)
|
|
260
|
+
for (i += (o - i) * f, e.forEach(function(w) {
|
|
261
|
+
w(i);
|
|
262
|
+
}), g = 0; g < c; ++g)
|
|
263
|
+
v = t[g], v.fx == null ? v.x += v.vx *= u : (v.x = v.fx, v.vx = 0), v.fy == null ? v.y += v.vy *= u : (v.y = v.fy, v.vy = 0);
|
|
264
|
+
return n;
|
|
265
|
+
}
|
|
266
|
+
function h() {
|
|
267
|
+
for (var s = 0, g = t.length, c; s < g; ++s) {
|
|
268
|
+
if (c = t[s], c.index = s, c.fx != null && (c.x = c.fx), c.fy != null && (c.y = c.fy), isNaN(c.x) || isNaN(c.y)) {
|
|
269
|
+
var v = ut * Math.sqrt(0.5 + s), N = s * lt;
|
|
270
|
+
c.x = v * Math.cos(N), c.y = v * Math.sin(N);
|
|
271
|
+
}
|
|
272
|
+
(isNaN(c.vx) || isNaN(c.vy)) && (c.vx = c.vy = 0);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
function x(s) {
|
|
276
|
+
return s.initialize && s.initialize(t, y), s;
|
|
277
|
+
}
|
|
278
|
+
return h(), n = {
|
|
279
|
+
tick: _,
|
|
280
|
+
restart: function() {
|
|
281
|
+
return l.restart(p), n;
|
|
282
|
+
},
|
|
283
|
+
stop: function() {
|
|
284
|
+
return l.stop(), n;
|
|
285
|
+
},
|
|
286
|
+
nodes: function(s) {
|
|
287
|
+
return arguments.length ? (t = s, h(), e.forEach(x), n) : t;
|
|
288
|
+
},
|
|
289
|
+
alpha: function(s) {
|
|
290
|
+
return arguments.length ? (i = +s, n) : i;
|
|
291
|
+
},
|
|
292
|
+
alphaMin: function(s) {
|
|
293
|
+
return arguments.length ? (a = +s, n) : a;
|
|
294
|
+
},
|
|
295
|
+
alphaDecay: function(s) {
|
|
296
|
+
return arguments.length ? (f = +s, n) : +f;
|
|
297
|
+
},
|
|
298
|
+
alphaTarget: function(s) {
|
|
299
|
+
return arguments.length ? (o = +s, n) : o;
|
|
300
|
+
},
|
|
301
|
+
velocityDecay: function(s) {
|
|
302
|
+
return arguments.length ? (u = 1 - s, n) : 1 - u;
|
|
303
|
+
},
|
|
304
|
+
randomSource: function(s) {
|
|
305
|
+
return arguments.length ? (y = s, e.forEach(x), n) : y;
|
|
306
|
+
},
|
|
307
|
+
force: function(s, g) {
|
|
308
|
+
return arguments.length > 1 ? (g == null ? e.delete(s) : e.set(s, x(g)), n) : e.get(s);
|
|
309
|
+
},
|
|
310
|
+
find: function(s, g, c) {
|
|
311
|
+
var v = 0, N = t.length, w, b, P, D, z;
|
|
312
|
+
for (c == null ? c = 1 / 0 : c *= c, v = 0; v < N; ++v)
|
|
313
|
+
D = t[v], w = s - D.x, b = g - D.y, P = w * w + b * b, P < c && (z = D, c = P);
|
|
314
|
+
return z;
|
|
315
|
+
},
|
|
316
|
+
on: function(s, g) {
|
|
317
|
+
return arguments.length > 1 ? (r.on(s, g), n) : r.on(s);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function gt() {
|
|
322
|
+
var t, n, i, a, f = d(-30), o, u = 1, e = 1 / 0, l = 0.81;
|
|
323
|
+
function r(h) {
|
|
324
|
+
var x, s = t.length, g = S(t, st, ht).visitAfter(p);
|
|
325
|
+
for (a = h, x = 0; x < s; ++x) n = t[x], g.visit(_);
|
|
326
|
+
}
|
|
327
|
+
function y() {
|
|
328
|
+
if (t) {
|
|
329
|
+
var h, x = t.length, s;
|
|
330
|
+
for (o = new Array(x), h = 0; h < x; ++h) s = t[h], o[s.index] = +f(s, h, t);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
function p(h) {
|
|
334
|
+
var x = 0, s, g, c = 0, v, N, w;
|
|
335
|
+
if (h.length) {
|
|
336
|
+
for (v = N = w = 0; w < 4; ++w)
|
|
337
|
+
(s = h[w]) && (g = Math.abs(s.value)) && (x += s.value, c += g, v += g * s.x, N += g * s.y);
|
|
338
|
+
h.x = v / c, h.y = N / c;
|
|
339
|
+
} else {
|
|
340
|
+
s = h, s.x = s.data.x, s.y = s.data.y;
|
|
341
|
+
do
|
|
342
|
+
x += o[s.data.index];
|
|
343
|
+
while (s = s.next);
|
|
344
|
+
}
|
|
345
|
+
h.value = x;
|
|
346
|
+
}
|
|
347
|
+
function _(h, x, s, g) {
|
|
348
|
+
if (!h.value) return !0;
|
|
349
|
+
var c = h.x - n.x, v = h.y - n.y, N = g - x, w = c * c + v * v;
|
|
350
|
+
if (N * N / l < w)
|
|
351
|
+
return w < e && (c === 0 && (c = E(i), w += c * c), v === 0 && (v = E(i), w += v * v), w < u && (w = Math.sqrt(u * w)), n.vx += c * h.value * a / w, n.vy += v * h.value * a / w), !0;
|
|
352
|
+
if (h.length || w >= e) return;
|
|
353
|
+
(h.data !== n || h.next) && (c === 0 && (c = E(i), w += c * c), v === 0 && (v = E(i), w += v * v), w < u && (w = Math.sqrt(u * w)));
|
|
354
|
+
do
|
|
355
|
+
h.data !== n && (N = o[h.data.index] * a / w, n.vx += c * N, n.vy += v * N);
|
|
356
|
+
while (h = h.next);
|
|
357
|
+
}
|
|
358
|
+
return r.initialize = function(h, x) {
|
|
359
|
+
t = h, i = x, y();
|
|
360
|
+
}, r.strength = function(h) {
|
|
361
|
+
return arguments.length ? (f = typeof h == "function" ? h : d(+h), y(), r) : f;
|
|
362
|
+
}, r.distanceMin = function(h) {
|
|
363
|
+
return arguments.length ? (u = h * h, r) : Math.sqrt(u);
|
|
364
|
+
}, r.distanceMax = function(h) {
|
|
365
|
+
return arguments.length ? (e = h * h, r) : Math.sqrt(e);
|
|
366
|
+
}, r.theta = function(h) {
|
|
367
|
+
return arguments.length ? (l = h * h, r) : Math.sqrt(l);
|
|
368
|
+
}, r;
|
|
369
|
+
}
|
|
370
|
+
function xt(t) {
|
|
371
|
+
var n = d(0.1), i, a, f;
|
|
372
|
+
typeof t != "function" && (t = d(t == null ? 0 : +t));
|
|
373
|
+
function o(e) {
|
|
374
|
+
for (var l = 0, r = i.length, y; l < r; ++l)
|
|
375
|
+
y = i[l], y.vx += (f[l] - y.x) * a[l] * e;
|
|
376
|
+
}
|
|
377
|
+
function u() {
|
|
378
|
+
if (i) {
|
|
379
|
+
var e, l = i.length;
|
|
380
|
+
for (a = new Array(l), f = new Array(l), e = 0; e < l; ++e)
|
|
381
|
+
a[e] = isNaN(f[e] = +t(i[e], e, i)) ? 0 : +n(i[e], e, i);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
return o.initialize = function(e) {
|
|
385
|
+
i = e, u();
|
|
386
|
+
}, o.strength = function(e) {
|
|
387
|
+
return arguments.length ? (n = typeof e == "function" ? e : d(+e), u(), o) : n;
|
|
388
|
+
}, o.x = function(e) {
|
|
389
|
+
return arguments.length ? (t = typeof e == "function" ? e : d(+e), u(), o) : t;
|
|
390
|
+
}, o;
|
|
391
|
+
}
|
|
392
|
+
function _t(t) {
|
|
393
|
+
var n = d(0.1), i, a, f;
|
|
394
|
+
typeof t != "function" && (t = d(t == null ? 0 : +t));
|
|
395
|
+
function o(e) {
|
|
396
|
+
for (var l = 0, r = i.length, y; l < r; ++l)
|
|
397
|
+
y = i[l], y.vy += (f[l] - y.y) * a[l] * e;
|
|
398
|
+
}
|
|
399
|
+
function u() {
|
|
400
|
+
if (i) {
|
|
401
|
+
var e, l = i.length;
|
|
402
|
+
for (a = new Array(l), f = new Array(l), e = 0; e < l; ++e)
|
|
403
|
+
a[e] = isNaN(f[e] = +t(i[e], e, i)) ? 0 : +n(i[e], e, i);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return o.initialize = function(e) {
|
|
407
|
+
i = e, u();
|
|
408
|
+
}, o.strength = function(e) {
|
|
409
|
+
return arguments.length ? (n = typeof e == "function" ? e : d(+e), u(), o) : n;
|
|
410
|
+
}, o.y = function(e) {
|
|
411
|
+
return arguments.length ? (t = typeof e == "function" ? e : d(+e), u(), o) : t;
|
|
412
|
+
}, o;
|
|
413
|
+
}
|
|
414
|
+
export {
|
|
415
|
+
_t as a,
|
|
416
|
+
xt as b,
|
|
417
|
+
yt as c,
|
|
418
|
+
gt as d,
|
|
419
|
+
vt as f
|
|
420
|
+
};
|
|
421
|
+
//# sourceMappingURL=y-D0sAaVii.js.map
|