@undp/data-viz 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +11 -9
  4. package/dist/AreaChart.js +320 -322
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/BarGraph.cjs +1 -1
  7. package/dist/BarGraph.cjs.map +1 -1
  8. package/dist/BarGraph.d.ts +15 -25
  9. package/dist/BarGraph.js +1694 -1694
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.cjs.map +1 -1
  13. package/dist/BasicStatCard.d.ts +13 -9
  14. package/dist/BasicStatCard.js +79 -81
  15. package/dist/BasicStatCard.js.map +1 -1
  16. package/dist/BeeSwarmChart.cjs +1 -1
  17. package/dist/BeeSwarmChart.cjs.map +1 -1
  18. package/dist/BeeSwarmChart.d.ts +11 -9
  19. package/dist/BeeSwarmChart.js +335 -336
  20. package/dist/BeeSwarmChart.js.map +1 -1
  21. package/dist/BiVariateChoroplethMap.cjs +1 -1
  22. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  23. package/dist/BiVariateChoroplethMap.d.ts +13 -3
  24. package/dist/BiVariateChoroplethMap.js +247 -245
  25. package/dist/BiVariateChoroplethMap.js.map +1 -1
  26. package/dist/BulletChart.cjs +1 -1
  27. package/dist/BulletChart.cjs.map +1 -1
  28. package/dist/BulletChart.d.ts +11 -5
  29. package/dist/BulletChart.js +560 -559
  30. package/dist/BulletChart.js.map +1 -1
  31. package/dist/ButterflyChart.cjs +1 -1
  32. package/dist/ButterflyChart.cjs.map +1 -1
  33. package/dist/ButterflyChart.d.ts +11 -9
  34. package/dist/ButterflyChart.js +348 -350
  35. package/dist/ButterflyChart.js.map +1 -1
  36. package/dist/ChoroplethMap.cjs +1 -1
  37. package/dist/ChoroplethMap.cjs.map +1 -1
  38. package/dist/ChoroplethMap.d.ts +11 -3
  39. package/dist/ChoroplethMap.js +213 -213
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.d.ts +11 -9
  43. package/dist/CirclePackingGraph.js +1 -1
  44. package/dist/DataCards.cjs +1 -1
  45. package/dist/DataCards.d.ts +1 -1
  46. package/dist/DataCards.js +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.cjs.map +1 -1
  49. package/dist/DataTable.d.ts +4 -5
  50. package/dist/DataTable.js +114 -116
  51. package/dist/DataTable.js.map +1 -1
  52. package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
  53. package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
  54. package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
  55. package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
  56. package/dist/DifferenceLineChart.cjs +1 -1
  57. package/dist/DifferenceLineChart.cjs.map +1 -1
  58. package/dist/DifferenceLineChart.d.ts +11 -9
  59. package/dist/DifferenceLineChart.js +502 -504
  60. package/dist/DifferenceLineChart.js.map +1 -1
  61. package/dist/DonutChart.cjs +1 -1
  62. package/dist/DonutChart.cjs.map +1 -1
  63. package/dist/DonutChart.d.ts +14 -9
  64. package/dist/DonutChart.js +174 -179
  65. package/dist/DonutChart.js.map +1 -1
  66. package/dist/DotDensityMap.cjs +1 -1
  67. package/dist/DotDensityMap.d.ts +1 -1
  68. package/dist/DotDensityMap.js +2 -2
  69. package/dist/DualAxisLineChart.cjs +1 -1
  70. package/dist/DualAxisLineChart.cjs.map +1 -1
  71. package/dist/DualAxisLineChart.d.ts +13 -9
  72. package/dist/DualAxisLineChart.js +341 -351
  73. package/dist/DualAxisLineChart.js.map +1 -1
  74. package/dist/DumbbellChart.cjs +1 -1
  75. package/dist/DumbbellChart.cjs.map +1 -1
  76. package/dist/DumbbellChart.d.ts +11 -9
  77. package/dist/DumbbellChart.js +592 -593
  78. package/dist/DumbbellChart.js.map +1 -1
  79. package/dist/GeoHubCompareMaps.cjs +1 -1
  80. package/dist/GeoHubCompareMaps.d.ts +1 -1
  81. package/dist/GeoHubCompareMaps.js +1 -1
  82. package/dist/GeoHubMap.cjs +1 -1
  83. package/dist/GeoHubMap.d.ts +1 -1
  84. package/dist/GeoHubMap.js +1 -1
  85. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  86. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  88. package/dist/GraphEl-B7x5ku_y.cjs +2 -0
  89. package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
  90. package/dist/GraphEl-B8tGXqWk.js +1829 -0
  91. package/dist/GraphEl-B8tGXqWk.js.map +1 -0
  92. package/dist/GriddedGraphs.cjs +1 -1
  93. package/dist/GriddedGraphs.d.ts +28 -16
  94. package/dist/GriddedGraphs.js +1 -1
  95. package/dist/GriddedGraphsFromConfig.d.ts +28 -16
  96. package/dist/HeatMap.cjs +1 -1
  97. package/dist/HeatMap.cjs.map +1 -1
  98. package/dist/HeatMap.d.ts +11 -9
  99. package/dist/HeatMap.js +203 -205
  100. package/dist/HeatMap.js.map +1 -1
  101. package/dist/Histogram.cjs +1 -1
  102. package/dist/Histogram.cjs.map +1 -1
  103. package/dist/Histogram.d.ts +11 -5
  104. package/dist/Histogram.js +88 -89
  105. package/dist/Histogram.js.map +1 -1
  106. package/dist/HybridMap.cjs +1 -1
  107. package/dist/HybridMap.cjs.map +1 -1
  108. package/dist/HybridMap.d.ts +11 -3
  109. package/dist/HybridMap.js +279 -279
  110. package/dist/HybridMap.js.map +1 -1
  111. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  112. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  113. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  114. package/dist/LineChartWithConfidenceInterval.js +393 -395
  115. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  116. package/dist/LinearColorLegend.cjs +1 -1
  117. package/dist/LinearColorLegend.js +1 -1
  118. package/dist/MultiGraphDashboard.d.ts +28 -16
  119. package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
  120. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  121. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  122. package/dist/MultiLineAltChart.cjs +1 -1
  123. package/dist/MultiLineAltChart.cjs.map +1 -1
  124. package/dist/MultiLineAltChart.d.ts +11 -9
  125. package/dist/MultiLineAltChart.js +411 -413
  126. package/dist/MultiLineAltChart.js.map +1 -1
  127. package/dist/MultiLineChart.cjs +1 -1
  128. package/dist/MultiLineChart.cjs.map +1 -1
  129. package/dist/MultiLineChart.d.ts +11 -9
  130. package/dist/MultiLineChart.js +438 -440
  131. package/dist/MultiLineChart.js.map +1 -1
  132. package/dist/ParetoChart.cjs +1 -1
  133. package/dist/ParetoChart.cjs.map +1 -1
  134. package/dist/ParetoChart.d.ts +13 -13
  135. package/dist/ParetoChart.js +347 -355
  136. package/dist/ParetoChart.js.map +1 -1
  137. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
  138. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
  139. package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
  140. package/dist/RadarChart.cjs +1 -1
  141. package/dist/RadarChart.cjs.map +1 -1
  142. package/dist/RadarChart.d.ts +11 -5
  143. package/dist/RadarChart.js +213 -213
  144. package/dist/RadarChart.js.map +1 -1
  145. package/dist/SankeyChart.cjs +1 -1
  146. package/dist/SankeyChart.cjs.map +1 -1
  147. package/dist/SankeyChart.d.ts +11 -9
  148. package/dist/SankeyChart.js +448 -450
  149. package/dist/SankeyChart.js.map +1 -1
  150. package/dist/ScatterPlot.cjs +1 -1
  151. package/dist/ScatterPlot.cjs.map +1 -1
  152. package/dist/ScatterPlot.d.ts +13 -13
  153. package/dist/ScatterPlot.js +490 -498
  154. package/dist/ScatterPlot.js.map +1 -1
  155. package/dist/ScrollStory.d.ts +28 -16
  156. package/dist/SimpleLineChart.cjs +1 -1
  157. package/dist/SimpleLineChart.cjs.map +1 -1
  158. package/dist/SimpleLineChart.d.ts +11 -9
  159. package/dist/SimpleLineChart.js +362 -364
  160. package/dist/SimpleLineChart.js.map +1 -1
  161. package/dist/SingleGraphDashboard.cjs +1 -1
  162. package/dist/SingleGraphDashboard.d.ts +28 -16
  163. package/dist/SingleGraphDashboard.js +1 -1
  164. package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
  165. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
  166. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
  167. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  168. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  169. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
  170. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  171. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
  173. package/dist/SlopeChart.cjs +1 -1
  174. package/dist/SlopeChart.d.ts +1 -1
  175. package/dist/SlopeChart.js +2 -2
  176. package/dist/SparkLine.cjs +1 -1
  177. package/dist/SparkLine.d.ts +1 -1
  178. package/dist/SparkLine.js +1 -1
  179. package/dist/StatCardFromData.cjs +1 -1
  180. package/dist/StatCardFromData.cjs.map +1 -1
  181. package/dist/StatCardFromData.d.ts +11 -9
  182. package/dist/StatCardFromData.js +113 -116
  183. package/dist/StatCardFromData.js.map +1 -1
  184. package/dist/StripChart.cjs +1 -1
  185. package/dist/StripChart.cjs.map +1 -1
  186. package/dist/StripChart.d.ts +11 -9
  187. package/dist/StripChart.js +434 -435
  188. package/dist/StripChart.js.map +1 -1
  189. package/dist/ThreeDGlobe.cjs +1 -1
  190. package/dist/ThreeDGlobe.cjs.map +1 -1
  191. package/dist/ThreeDGlobe.d.ts +11 -3
  192. package/dist/ThreeDGlobe.js +143 -143
  193. package/dist/ThreeDGlobe.js.map +1 -1
  194. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  195. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  196. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  197. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  198. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  199. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  200. package/dist/TreeMapGraph.cjs +1 -1
  201. package/dist/TreeMapGraph.cjs.map +1 -1
  202. package/dist/TreeMapGraph.d.ts +11 -9
  203. package/dist/TreeMapGraph.js +369 -371
  204. package/dist/TreeMapGraph.js.map +1 -1
  205. package/dist/Types.d.ts +28 -16
  206. package/dist/UnitChart.cjs +1 -1
  207. package/dist/UnitChart.cjs.map +1 -1
  208. package/dist/UnitChart.d.ts +11 -5
  209. package/dist/UnitChart.js +118 -119
  210. package/dist/UnitChart.js.map +1 -1
  211. package/dist/WaterfallChart.cjs +1 -1
  212. package/dist/WaterfallChart.cjs.map +1 -1
  213. package/dist/WaterfallChart.d.ts +11 -9
  214. package/dist/WaterfallChart.js +306 -308
  215. package/dist/WaterfallChart.js.map +1 -1
  216. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  217. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  218. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  219. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  220. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  221. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  222. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  223. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  224. package/dist/index-BPyj_6hG.js +375 -0
  225. package/dist/index-BPyj_6hG.js.map +1 -0
  226. package/dist/index-DuLvdHo2.cjs +2 -0
  227. package/dist/index-DuLvdHo2.cjs.map +1 -0
  228. package/dist/index.cjs +1 -1
  229. package/dist/index.d.ts +105 -245
  230. package/dist/index.js +2 -2
  231. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  232. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  233. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  234. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  235. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  236. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  237. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  238. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  239. package/dist/utils.cjs +1 -1
  240. package/dist/utils.d.ts +1 -1
  241. package/dist/utils.js +1 -1
  242. package/package.json +2 -2
  243. package/dist/GraphEl-B73N4RIA.js +0 -1906
  244. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  245. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  246. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  247. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  248. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  249. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  250. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  251. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  252. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  253. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  254. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  255. package/dist/index-B0Awa_de.js +0 -377
  256. package/dist/index-B0Awa_de.js.map +0 -1
  257. package/dist/index-CP8cmNzt.cjs +0 -2
  258. package/dist/index-CP8cmNzt.cjs.map +0 -1
  259. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  260. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  261. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  262. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
@@ -1,29 +1,29 @@
1
- import { j as i, m as lt, c as ct } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useState as I, useRef as Qe, useEffect as G, useCallback as dt, useEffectEvent as pt } from "react";
3
- import { w as ht } from "./Spinner-B2IIKg9r.js";
4
- import mt from "react-globe.gl";
5
- import { i as ut } from "./index-Bwrro8-q.js";
6
- import * as H from "three";
7
- import { _ as et } from "./Typography-BO0gQDIT.js";
8
- import { g as gt } from "./_commonjsHelpers-ByX85dGu.js";
9
- import { T as ft } from "./Tooltip-Bj-s__cI.js";
10
- import { n as vt } from "./numberFormattingFunction-DqMf_v1m.js";
11
- import { X as yt, E as bt } from "./index-ApTBN0kp.js";
12
- import { g as xt } from "./getCentroidCoordinates-s0OOUjLF.js";
13
- import { D as wt } from "./DetailsModal-B2XBWR7w.js";
14
- import { o as Ct } from "./ordinal-CHaxGJ_l.js";
15
- import { t as Dt } from "./threshold-DFfqcDMa.js";
16
- import { GraphHeader as St } from "./GraphHeader.js";
17
- import { GraphFooter as jt } from "./GraphFooter.js";
18
- import { f as Nt } from "./fetchAndParseData-BAXhgTDM.js";
19
- import { Colors as oe } from "./Colors.js";
20
- import { g as Rt } from "./getUniqValue-DsqSii6M.js";
21
- import { g as kt } from "./getJenks-DTCcQSDi.js";
22
- import { a as Ot, G as Et } from "./GraphContainer-B8ZqOzKI.js";
23
- var Ke, tt;
24
- function Lt() {
25
- if (tt) return Ke;
26
- tt = 1;
1
+ import { j as i, m as nt, c as lt } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useState as I, useRef as Ke, useEffect as G, useCallback as ct, useEffectEvent as dt } from "react";
3
+ import { w as pt } from "./Spinner-B2IIKg9r.js";
4
+ import ht from "react-globe.gl";
5
+ import { i as mt } from "./index-Bwrro8-q.js";
6
+ import * as $ from "three";
7
+ import { _ as Qe } from "./Typography-BO0gQDIT.js";
8
+ import { g as ut } from "./_commonjsHelpers-ByX85dGu.js";
9
+ import { T as gt } from "./Tooltip-3EYDVa3w.js";
10
+ import { n as ft } from "./numberFormattingFunction-BUUV_luR.js";
11
+ import { X as vt, E as yt } from "./index-ApTBN0kp.js";
12
+ import { g as bt } from "./getCentroidCoordinates-s0OOUjLF.js";
13
+ import { D as xt } from "./DetailsModal-GqEbGHY2.js";
14
+ import { o as wt } from "./ordinal-CHaxGJ_l.js";
15
+ import { t as Ct } from "./threshold-DFfqcDMa.js";
16
+ import { GraphHeader as Dt } from "./GraphHeader.js";
17
+ import { GraphFooter as St } from "./GraphFooter.js";
18
+ import { f as jt } from "./fetchAndParseData-BAXhgTDM.js";
19
+ import { Colors as ae } from "./Colors.js";
20
+ import { g as Nt } from "./getUniqValue-DsqSii6M.js";
21
+ import { g as Rt } from "./getJenks-DTCcQSDi.js";
22
+ import { a as kt, G as Ot } from "./GraphContainer-B8ZqOzKI.js";
23
+ var Ye, et;
24
+ function Et() {
25
+ if (et) return Ye;
26
+ et = 1;
27
27
  var t = function(o) {
28
28
  return o.charAt(0) === "#" ? o.slice(1) : o;
29
29
  }, e = function(o) {
@@ -53,31 +53,31 @@ function Lt() {
53
53
  var f = t(o), s = e(f), w = b(s);
54
54
  return D(w, n);
55
55
  };
56
- return Ke = g, Ke;
56
+ return Ye = g, Ye;
57
57
  }
58
- var Pt = Lt();
59
- const ot = /* @__PURE__ */ gt(Pt);
60
- function zt(t) {
58
+ var Lt = Et();
59
+ const tt = /* @__PURE__ */ ut(Lt);
60
+ function Pt(t) {
61
61
  let e;
62
62
  switch (t.type) {
63
63
  case "ambient":
64
- e = new H.AmbientLight(t.color, t.intensity);
64
+ e = new $.AmbientLight(t.color, t.intensity);
65
65
  break;
66
66
  case "directional":
67
- e = new H.DirectionalLight(t.color, t.intensity), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z === void 0 ? -1 : t.target.z), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
67
+ e = new $.DirectionalLight(t.color, t.intensity), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z === void 0 ? -1 : t.target.z), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
68
68
  break;
69
69
  case "point":
70
- e = new H.PointLight(t.color, t.intensity, t.distance || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z));
70
+ e = new $.PointLight(t.color, t.intensity, t.distance || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z));
71
71
  break;
72
72
  case "spot":
73
- e = new H.SpotLight(t.color, t.intensity, t.distance || 0, t.angle || Math.PI / 3, t.penumbra || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z || 0), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
73
+ e = new $.SpotLight(t.color, t.intensity, t.distance || 0, t.angle || Math.PI / 3, t.penumbra || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z || 0), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
74
74
  break;
75
75
  default:
76
76
  throw new Error("Unknown light type");
77
77
  }
78
78
  return e;
79
79
  }
80
- function Mt(t) {
80
+ function zt(t) {
81
81
  const {
82
82
  width: e,
83
83
  autoRotate: d,
@@ -94,12 +94,12 @@ function Mt(t) {
94
94
  atmosphereColor: E,
95
95
  tooltip: L,
96
96
  styles: be,
97
- classNames: $,
98
- mapNoDataColor: re,
97
+ classNames: W,
98
+ mapNoDataColor: ie,
99
99
  colorLegendTitle: C,
100
- showColorScale: ae,
101
- hoverStrokeColor: ie,
102
- detailsOnClick: W,
100
+ showColorScale: se,
101
+ hoverStrokeColor: ne,
102
+ detailsOnClick: Z,
103
103
  onSeriesMouseClick: V,
104
104
  onSeriesMouseOver: xe,
105
105
  resetSelectionOnDoubleClick: we,
@@ -107,28 +107,28 @@ function Mt(t) {
107
107
  scale: z,
108
108
  globeOffset: m,
109
109
  polygonAltitude: u,
110
- centerLng: Z,
111
- centerLat: _,
112
- atmosphereAltitude: se,
113
- globeCurvatureResolution: J,
110
+ centerLng: _,
111
+ centerLat: J,
112
+ atmosphereAltitude: le,
113
+ globeCurvatureResolution: X,
114
114
  fogSettings: M,
115
115
  lights: T,
116
- highlightedAltitude: ne,
116
+ highlightedAltitude: ce,
117
117
  selectedId: v,
118
- collapseColorScaleByDefault: X,
118
+ collapseColorScaleByDefault: Y,
119
119
  dimmedOpacity: A,
120
- locale: le
121
- } = t, [ce, Ce] = I(!1), p = Qe(void 0), [R, U] = I(void 0), [De, de] = I(X === void 0 ? !(e < 680) : !X), [Y, K] = I({
120
+ numberDisplayOptions: U
121
+ } = t, [de, Ce] = I(!1), p = Ke(void 0), [R, q] = I(void 0), [De, pe] = I(Y === void 0 ? !(e < 680) : !Y), [K, Q] = I({
122
122
  x: 0,
123
123
  y: 0
124
- }), [N, pe] = I(void 0), he = D ? Ct().domain(g).range(l) : Dt().domain(g).range(l);
124
+ }), [N, he] = I(void 0), ee = D ? wt().domain(g).range(l) : Ct().domain(g).range(l);
125
125
  G(() => {
126
126
  p.current && (p.current.controls().enableZoom = x);
127
127
  }, [x]), G(() => {
128
128
  p.current && (N || v ? p.current.controls().autoRotate = !1 : (p.current.controls().autoRotate = d !== 0, p.current.controls().autoRotateSpeed = d));
129
129
  }, [N, v, d]), G(() => {
130
130
  if (p.current && v) {
131
- const r = f.find((y) => y.properties[s] === v), [a, c] = xt(r);
131
+ const r = f.find((y) => y.properties[s] === v), [a, c] = bt(r);
132
132
  p.current.pointOfView({
133
133
  lat: c,
134
134
  lng: a,
@@ -139,7 +139,7 @@ function Mt(t) {
139
139
  const r = p.current?.renderer().domElement;
140
140
  if (!r) return;
141
141
  const a = (c) => {
142
- K({
142
+ Q({
143
143
  x: c.clientX,
144
144
  y: c.clientY
145
145
  });
@@ -147,47 +147,47 @@ function Mt(t) {
147
147
  return r.addEventListener("mousemove", a), () => r.removeEventListener("mousemove", a);
148
148
  }, []), G(() => {
149
149
  p.current && p.current.pointOfView({
150
- lat: _,
151
- lng: Z,
150
+ lat: J,
151
+ lng: _,
152
152
  altitude: z
153
153
  }, 1e3);
154
- }, [z, Z, _]);
155
- const S = o || new H.MeshBasicMaterial({
154
+ }, [z, _, J]);
155
+ const S = o || new $.MeshBasicMaterial({
156
156
  color: "#FFF"
157
- }), B = dt(() => {
157
+ }), B = ct(() => {
158
158
  if (!p.current) return;
159
159
  const r = p.current.scene(), a = p.current.camera();
160
160
  let c = [];
161
161
  r.traverse((h) => {
162
- h instanceof H.Light && c.push(h);
163
- }), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)), T.map((h) => zt(h)).forEach((h, j) => {
162
+ h instanceof $.Light && c.push(h);
163
+ }), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)), T.map((h) => Pt(h)).forEach((h, j) => {
164
164
  T[j].type !== "ambient" && T[j].position === "camera" ? (a.add(h), T[j].type !== "point" && a.add(h.target)) : r.add(h);
165
- }), M && (r.fog = new H.Fog(M.color, M.near, M.far));
165
+ }), M && (r.fog = new $.Fog(M.color, M.near, M.far));
166
166
  }, [T, M]), k = () => {
167
167
  Ce(!0), B();
168
168
  };
169
169
  return G(() => {
170
- ce && B();
171
- }, [ce, B]), /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
172
- /* @__PURE__ */ i.jsx(mt, { ref: p, height: n, width: e, globeOffset: m, lineHoverPrecision: 0, polygonsData: f, polygonAltitude: (r) => P?.includes(r?.properties?.[s]) || r?.properties?.[s] === v || r?.properties?.[s] === N?.id || r?.properties?.[s] === R?.id ? ne : u, polygonCapColor: (r) => {
173
- const a = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, c = r?.properties?.[s], y = b.find((j) => j.id === c)?.x, h = y != null ? he(y) : re;
174
- return ot(h, `${a}`);
170
+ de && B();
171
+ }, [de, B]), /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
172
+ /* @__PURE__ */ i.jsx(ht, { ref: p, height: n, width: e, globeOffset: m, lineHoverPrecision: 0, polygonsData: f, polygonAltitude: (r) => P?.includes(r?.properties?.[s]) || r?.properties?.[s] === v || r?.properties?.[s] === N?.id || r?.properties?.[s] === R?.id ? ce : u, polygonCapColor: (r) => {
173
+ const a = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, c = r?.properties?.[s], y = b.find((j) => j.id === c)?.x, h = y != null ? ee(y) : ie;
174
+ return tt(h, `${a}`);
175
175
  }, polygonSideColor: (r) => {
176
- const a = r?.properties?.[s], c = b.find((j) => j.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, h = c != null ? he(c) : re;
177
- return ot(h, `${y}`);
178
- }, polygonStrokeColor: (r) => r?.properties?.[s] === N?.id ? ie : w, onGlobeClick: () => {
179
- U(void 0);
176
+ const a = r?.properties?.[s], c = b.find((j) => j.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, h = c != null ? ee(c) : ie;
177
+ return tt(h, `${y}`);
178
+ }, polygonStrokeColor: (r) => r?.properties?.[s] === N?.id ? ne : w, onGlobeClick: () => {
179
+ q(void 0);
180
180
  }, onPolygonClick: (r) => {
181
181
  const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
182
- (V || W) && (ut(R, a) && we && a ? (U(void 0), V?.(void 0)) : (U(a), V?.(a)));
182
+ (V || Z) && (mt(R, a) && we && a ? (q(void 0), V?.(void 0)) : (q(a), V?.(a)));
183
183
  }, onPolygonHover: (r) => {
184
184
  const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
185
- pe(a), xe?.(a);
186
- }, atmosphereColor: E, atmosphereAltitude: se, globeCurvatureResolution: J, globeMaterial: S, backgroundColor: "rgba(0, 0, 0, 0)", polygonsTransitionDuration: 100, onGlobeReady: () => {
185
+ he(a), xe?.(a);
186
+ }, atmosphereColor: E, atmosphereAltitude: le, globeCurvatureResolution: X, globeMaterial: S, backgroundColor: "rgba(0, 0, 0, 0)", polygonsTransitionDuration: 100, onGlobeReady: () => {
187
187
  if (p.current) {
188
188
  p.current.pointOfView({
189
- lat: _,
190
- lng: Z
189
+ lat: J,
190
+ lng: _
191
191
  });
192
192
  const r = p.current.scene();
193
193
  setTimeout(() => {
@@ -200,14 +200,14 @@ function Mt(t) {
200
200
  r.add(a), k();
201
201
  }
202
202
  } }),
203
- ae === !1 ? null : /* @__PURE__ */ i.jsx("div", { className: lt("absolute left-4 bottom-4 map-color-legend", $?.colorLegend), children: De ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
203
+ se === !1 ? null : /* @__PURE__ */ i.jsx("div", { className: nt("absolute left-4 bottom-4 map-color-legend", W?.colorLegend), children: De ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
204
204
  /* @__PURE__ */ i.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
205
- de(!1);
206
- }, children: /* @__PURE__ */ i.jsx(yt, {}) }),
205
+ pe(!1);
206
+ }, children: /* @__PURE__ */ i.jsx(vt, {}) }),
207
207
  /* @__PURE__ */ i.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
208
208
  width: D ? void 0 : "340px"
209
209
  }, children: [
210
- C && C !== "" ? /* @__PURE__ */ i.jsx(et, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
210
+ C && C !== "" ? /* @__PURE__ */ i.jsx(Qe, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
211
211
  display: "-webkit-box",
212
212
  WebkitLineClamp: "1",
213
213
  WebkitBoxOrient: "vertical"
@@ -216,7 +216,7 @@ function Mt(t) {
216
216
  /* @__PURE__ */ i.jsx("div", { className: "w-2 h-2 rounded-full", style: {
217
217
  backgroundColor: l[a % l.length]
218
218
  } }),
219
- /* @__PURE__ */ i.jsx(et, { size: "sm", marginBottom: "none", leading: "none", children: r })
219
+ /* @__PURE__ */ i.jsx(Qe, { size: "sm", marginBottom: "none", leading: "none", children: r })
220
220
  ] }, a)) }) : /* @__PURE__ */ i.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ i.jsxs("g", { children: [
221
221
  g.map((r, a) => /* @__PURE__ */ i.jsxs("g", { className: "cursor-pointer", children: [
222
222
  /* @__PURE__ */ i.jsx("rect", { x: a * 320 / l.length + 1, y: 1, width: 320 / l.length - 2, height: 8, style: {
@@ -225,7 +225,7 @@ function Mt(t) {
225
225
  } }),
226
226
  /* @__PURE__ */ i.jsx("text", { x: (a + 1) * 320 / l.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
227
227
  textAnchor: "middle"
228
- }, children: vt(r, void 0, void 0, void 0, void 0, le) })
228
+ }, children: ft(r, void 0, U?.precision ?? 2, void 0, void 0, U?.locale || "en", U?.padZeros || !1) })
229
229
  ] }, a)),
230
230
  /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx("rect", { x: g.length * 320 / l.length + 1, y: 1, width: 320 / l.length - 2, height: 8, style: {
231
231
  fill: l[g.length],
@@ -234,14 +234,14 @@ function Mt(t) {
234
234
  ] }) })
235
235
  ] })
236
236
  ] }) : /* @__PURE__ */ i.jsx("button", { type: "button", className: "p-1 border-0 rounded-[2px] text-primary-gray-700 bg-primary-gray-300 dark:bg-primary-gray-500 map-legend-button", onClick: () => {
237
- de(!0);
238
- }, children: /* @__PURE__ */ i.jsx(bt, {}) }) }),
239
- N && L ? /* @__PURE__ */ i.jsx(ft, { data: N, body: L, xPos: Y.x, yPos: Y.y, backgroundStyle: be?.tooltip, className: $?.tooltip }) : null,
240
- W && R !== void 0 ? /* @__PURE__ */ i.jsx(wt, { body: W, data: R, setData: U, className: $?.modal }) : null
237
+ pe(!0);
238
+ }, children: /* @__PURE__ */ i.jsx(yt, {}) }) }),
239
+ N && L ? /* @__PURE__ */ i.jsx(gt, { data: N, body: L, xPos: K.x, yPos: K.y, backgroundStyle: be?.tooltip, className: W?.tooltip }) : null,
240
+ Z && R !== void 0 ? /* @__PURE__ */ i.jsx(xt, { body: Z, data: R, setData: q, className: W?.modal }) : null
241
241
  ] });
242
242
  }
243
- function co(t) {
244
- const e = ct.c(96), {
243
+ function lo(t) {
244
+ const e = lt.c(96), {
245
245
  data: d,
246
246
  mapData: b,
247
247
  graphTitle: x,
@@ -256,12 +256,12 @@ function co(t) {
256
256
  scaleType: E,
257
257
  padding: L,
258
258
  mapNoDataColor: be,
259
- backgroundColor: $,
260
- mapBorderColor: re,
259
+ backgroundColor: W,
260
+ mapBorderColor: ie,
261
261
  relativeHeight: C,
262
- tooltip: ae,
263
- graphID: ie,
264
- mapProperty: W,
262
+ tooltip: se,
263
+ graphID: ne,
264
+ mapProperty: Z,
265
265
  dataDownload: V,
266
266
  language: xe,
267
267
  minHeight: we,
@@ -269,38 +269,38 @@ function co(t) {
269
269
  ariaLabel: z,
270
270
  styles: m,
271
271
  classNames: u,
272
- autoRotate: Z,
273
- enableZoom: _,
274
- globeMaterial: se,
275
- centerPoint: J,
272
+ autoRotate: _,
273
+ enableZoom: J,
274
+ globeMaterial: le,
275
+ centerPoint: X,
276
276
  atmosphereColor: M,
277
277
  showColorScale: T,
278
- resetSelectionOnDoubleClick: ne,
278
+ resetSelectionOnDoubleClick: ce,
279
279
  detailsOnClick: v,
280
- onSeriesMouseOver: X,
280
+ onSeriesMouseOver: Y,
281
281
  onSeriesMouseClick: A,
282
- highlightedIds: le,
283
- highlightedAltitude: ce,
282
+ highlightedIds: U,
283
+ highlightedAltitude: de,
284
284
  dimmedOpacity: Ce,
285
285
  scale: p,
286
286
  globeOffset: R,
287
- polygonAltitude: U,
287
+ polygonAltitude: q,
288
288
  globeCurvatureResolution: De,
289
- atmosphereAltitude: de,
290
- fogSettings: Y,
291
- lights: K,
289
+ atmosphereAltitude: pe,
290
+ fogSettings: K,
291
+ lights: Q,
292
292
  selectedId: N,
293
- collapseColorScaleByDefault: pe,
294
- locale: he
295
- } = t, S = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json" : b, B = f === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : f, k = E === void 0 ? "threshold" : E, r = be === void 0 ? oe.light.graphNoData : be, a = $ === void 0 ? !1 : $, c = re === void 0 ? oe.light.grays["gray-500"] : re, y = W === void 0 ? "ISO3" : W, h = V === void 0 ? !1 : V, j = xe === void 0 ? "en" : xe, O = we === void 0 ? 0 : we, F = P === void 0 ? "light" : P, me = Z === void 0 ? !0 : Z, Ae = _ === void 0 ? !0 : _;
293
+ collapseColorScaleByDefault: he,
294
+ numberDisplayOptions: ee
295
+ } = t, S = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json" : b, B = f === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : f, k = E === void 0 ? "threshold" : E, r = be === void 0 ? ae.light.graphNoData : be, a = W === void 0 ? !1 : W, c = ie === void 0 ? ae.light.grays["gray-500"] : ie, y = Z === void 0 ? "ISO3" : Z, h = V === void 0 ? !1 : V, j = xe === void 0 ? "en" : xe, O = we === void 0 ? 0 : we, F = P === void 0 ? "light" : P, me = _ === void 0 ? !0 : _, Ae = J === void 0 ? !0 : J;
296
296
  let Se;
297
- e[0] !== J ? (Se = J === void 0 ? [0, 0] : J, e[0] = J, e[1] = Se) : Se = e[1];
298
- const je = Se, Be = M === void 0 ? "#999" : M, Fe = T === void 0 ? !0 : T, Ge = ne === void 0 ? !0 : ne, Ie = ce === void 0 ? 0.1 : ce, Ue = Ce === void 0 ? 0.3 : Ce, qe = p === void 0 ? 1 : p;
297
+ e[0] !== X ? (Se = X === void 0 ? [0, 0] : X, e[0] = X, e[1] = Se) : Se = e[1];
298
+ const je = Se, Be = M === void 0 ? "#999" : M, Fe = T === void 0 ? !0 : T, Ge = ce === void 0 ? !0 : ce, Ie = de === void 0 ? 0.1 : de, Ue = Ce === void 0 ? 0.3 : Ce, qe = p === void 0 ? 1 : p;
299
299
  let Ne;
300
300
  e[2] !== R ? (Ne = R === void 0 ? [0, 0] : R, e[2] = R, e[3] = Ne) : Ne = e[3];
301
- const He = Ne, $e = U === void 0 ? 0.01 : U, We = De === void 0 ? 4 : De, Ve = de === void 0 ? 0.15 : de;
301
+ const He = Ne, $e = q === void 0 ? 0.01 : q, We = De === void 0 ? 4 : De, Ze = pe === void 0 ? 0.15 : pe;
302
302
  let Re;
303
- e[4] !== K ? (Re = K === void 0 ? [{
303
+ e[4] !== Q ? (Re = Q === void 0 ? [{
304
304
  type: "ambient",
305
305
  color: 4210752,
306
306
  intensity: 0.4
@@ -313,26 +313,26 @@ function co(t) {
313
313
  y: 10,
314
314
  z: 5
315
315
  }
316
- }] : K, e[4] = K, e[5] = Re) : Re = e[5];
317
- const Ze = Re, _e = he === void 0 ? "en" : he, [ke, rt] = I(void 0), [q, at] = I(0), [ue, it] = I(0), Je = Qe(null), st = Qe(null);
316
+ }] : Q, e[4] = Q, e[5] = Re) : Re = e[5];
317
+ const Ve = Re, [ke, ot] = I(void 0), [H, rt] = I(0), [ue, at] = I(0), _e = Ke(null), it = Ke(null);
318
318
  let Oe, Ee;
319
319
  e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = () => {
320
320
  const ve = new ResizeObserver((ye) => {
321
- at(ye[0].target.clientWidth || 620), it(ye[0].target.clientHeight || 480);
321
+ rt(ye[0].target.clientWidth || 620), at(ye[0].target.clientHeight || 480);
322
322
  });
323
- return Je.current && ve.observe(Je.current), () => ve.disconnect();
323
+ return _e.current && ve.observe(_e.current), () => ve.disconnect();
324
324
  }, Ee = [], e[6] = Oe, e[7] = Ee) : (Oe = e[6], Ee = e[7]), G(Oe, Ee);
325
325
  let Le;
326
326
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = (ve) => {
327
- rt(ve);
327
+ ot(ve);
328
328
  }, e[8] = Le) : Le = e[8];
329
- const ge = pt(Le);
329
+ const ge = dt(Le);
330
330
  let Pe;
331
331
  e[9] !== S || e[10] !== ge ? (Pe = () => {
332
- typeof S == "string" ? Nt(S).then((ye) => {
332
+ typeof S == "string" ? jt(S).then((ye) => {
333
333
  if (S === "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json") {
334
- const nt = ye.features.map(Ut);
335
- ge(nt);
334
+ const st = ye.features.map(It);
335
+ ge(st);
336
336
  } else
337
337
  ge(ye.features);
338
338
  }) : ge(S.features);
@@ -340,54 +340,54 @@ function co(t) {
340
340
  let ze;
341
341
  e[12] !== S ? (ze = [S], e[12] = S, e[13] = ze) : ze = e[13], G(Pe, ze);
342
342
  let Me;
343
- e[14] !== s || e[15] !== D?.length || e[16] !== d || e[17] !== k ? (Me = s || (k === "categorical" ? Rt(d, "x") : kt(d.map(It), D?.length || 4)), e[14] = s, e[15] = D?.length, e[16] = d, e[17] = k, e[18] = Me) : Me = e[18];
344
- const fe = Me, Xe = u?.graphContainer, Ye = m?.graphContainer;
345
- let Q;
346
- e[19] !== u?.description || e[20] !== u?.title || e[21] !== d || e[22] !== h || e[23] !== l || e[24] !== x || e[25] !== m?.description || e[26] !== m?.title || e[27] !== n ? (Q = x || l || h ? /* @__PURE__ */ i.jsx(St, { styles: {
343
+ e[14] !== s || e[15] !== D?.length || e[16] !== d || e[17] !== k ? (Me = s || (k === "categorical" ? Nt(d, "x") : Rt(d.map(Gt), D?.length || 4)), e[14] = s, e[15] = D?.length, e[16] = d, e[17] = k, e[18] = Me) : Me = e[18];
344
+ const fe = Me, Je = u?.graphContainer, Xe = m?.graphContainer;
345
+ let te;
346
+ e[19] !== u?.description || e[20] !== u?.title || e[21] !== d || e[22] !== h || e[23] !== l || e[24] !== x || e[25] !== m?.description || e[26] !== m?.title || e[27] !== n ? (te = x || l || h ? /* @__PURE__ */ i.jsx(Dt, { styles: {
347
347
  title: m?.title,
348
348
  description: m?.description
349
349
  }, classNames: {
350
350
  title: u?.title,
351
351
  description: u?.description
352
- }, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(Gt).filter(Ft).length > 0 ? d.map(Bt).filter(At) : d.filter(Tt) : null }) : null, e[19] = u?.description, e[20] = u?.title, e[21] = d, e[22] = h, e[23] = l, e[24] = x, e[25] = m?.description, e[26] = m?.title, e[27] = n, e[28] = Q) : Q = e[28];
353
- let ee;
354
- e[29] !== Ve || e[30] !== Be || e[31] !== me || e[32] !== je || e[33] !== u || e[34] !== pe || e[35] !== w || e[36] !== D || e[37] !== d || e[38] !== v || e[39] !== Ue || e[40] !== fe || e[41] !== Ae || e[42] !== Y || e[43] !== We || e[44] !== se || e[45] !== He || e[46] !== o || e[47] !== Ie || e[48] !== le || e[49] !== Ze || e[50] !== _e || e[51] !== c || e[52] !== r || e[53] !== y || e[54] !== ke || e[55] !== O || e[56] !== A || e[57] !== X || e[58] !== $e || e[59] !== C || e[60] !== Ge || e[61] !== qe || e[62] !== k || e[63] !== N || e[64] !== Fe || e[65] !== m || e[66] !== ue || e[67] !== q || e[68] !== F || e[69] !== ae || e[70] !== n ? (ee = /* @__PURE__ */ i.jsx(Ot, { ref: Je, children: q && ue && ke ? /* @__PURE__ */ i.jsx(Mt, { data: d, globeOffset: He, polygonData: ke, colorDomain: fe, width: q, height: ue, colors: D || (k === "categorical" ? oe[F].sequentialColors[`neutralColorsx0${fe.length}`] : oe[F].sequentialColors[`neutralColorsx0${fe.length + 1}`]), mapNoDataColor: r, categorical: k === "categorical", mapBorderColor: c, tooltip: ae, mapProperty: y, styles: m, classNames: u, autoRotate: me === !0 ? 1.5 : me === !1 ? 0 : me, enableZoom: Ae, globeMaterial: se, atmosphereColor: Be, colorLegendTitle: w, showColorScale: Fe, hoverStrokeColor: F === "light" ? oe.light.grays["gray-700"] : oe.light.grays["gray-300"], highlightedIds: le, resetSelectionOnDoubleClick: Ge, detailsOnClick: v, onSeriesMouseOver: X, onSeriesMouseClick: A, scale: qe, polygonAltitude: $e, centerLat: je[0], centerLng: je[1], atmosphereAltitude: Ve, globeCurvatureResolution: We, fogSettings: Y, lights: Ze, highlightedAltitude: Ie, selectedId: N, collapseColorScaleByDefault: pe, dimmedOpacity: Ue, locale: _e }) : /* @__PURE__ */ i.jsx("div", { style: {
355
- height: `${Math.max(O, o || (C ? O ? (n || q) * C > O ? (n || q) * C : O : (n || q) * C : ue))}px`
356
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(ht, { "aria-label": "Loading graph" }) }) }), e[29] = Ve, e[30] = Be, e[31] = me, e[32] = je, e[33] = u, e[34] = pe, e[35] = w, e[36] = D, e[37] = d, e[38] = v, e[39] = Ue, e[40] = fe, e[41] = Ae, e[42] = Y, e[43] = We, e[44] = se, e[45] = He, e[46] = o, e[47] = Ie, e[48] = le, e[49] = Ze, e[50] = _e, e[51] = c, e[52] = r, e[53] = y, e[54] = ke, e[55] = O, e[56] = A, e[57] = X, e[58] = $e, e[59] = C, e[60] = Ge, e[61] = qe, e[62] = k, e[63] = N, e[64] = Fe, e[65] = m, e[66] = ue, e[67] = q, e[68] = F, e[69] = ae, e[70] = n, e[71] = ee) : ee = e[71];
357
- let te;
358
- e[72] !== u?.footnote || e[73] !== u?.source || e[74] !== B || e[75] !== g || e[76] !== m?.footnote || e[77] !== m?.source || e[78] !== n ? (te = g || B ? /* @__PURE__ */ i.jsx(jt, { styles: {
352
+ }, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(Ft).filter(Bt).length > 0 ? d.map(At).filter(Tt) : d.filter(Mt) : null }) : null, e[19] = u?.description, e[20] = u?.title, e[21] = d, e[22] = h, e[23] = l, e[24] = x, e[25] = m?.description, e[26] = m?.title, e[27] = n, e[28] = te) : te = e[28];
353
+ let oe;
354
+ e[29] !== Ze || e[30] !== Be || e[31] !== me || e[32] !== je || e[33] !== u || e[34] !== he || e[35] !== w || e[36] !== D || e[37] !== d || e[38] !== v || e[39] !== Ue || e[40] !== fe || e[41] !== Ae || e[42] !== K || e[43] !== We || e[44] !== le || e[45] !== He || e[46] !== o || e[47] !== Ie || e[48] !== U || e[49] !== Ve || e[50] !== c || e[51] !== r || e[52] !== y || e[53] !== ke || e[54] !== O || e[55] !== ee || e[56] !== A || e[57] !== Y || e[58] !== $e || e[59] !== C || e[60] !== Ge || e[61] !== qe || e[62] !== k || e[63] !== N || e[64] !== Fe || e[65] !== m || e[66] !== ue || e[67] !== H || e[68] !== F || e[69] !== se || e[70] !== n ? (oe = /* @__PURE__ */ i.jsx(kt, { ref: _e, children: H && ue && ke ? /* @__PURE__ */ i.jsx(zt, { data: d, globeOffset: He, polygonData: ke, colorDomain: fe, width: H, height: ue, colors: D || (k === "categorical" ? ae[F].sequentialColors[`neutralColorsx0${fe.length}`] : ae[F].sequentialColors[`neutralColorsx0${fe.length + 1}`]), mapNoDataColor: r, categorical: k === "categorical", mapBorderColor: c, tooltip: se, mapProperty: y, styles: m, classNames: u, autoRotate: me === !0 ? 1.5 : me === !1 ? 0 : me, enableZoom: Ae, globeMaterial: le, atmosphereColor: Be, colorLegendTitle: w, showColorScale: Fe, hoverStrokeColor: F === "light" ? ae.light.grays["gray-700"] : ae.light.grays["gray-300"], highlightedIds: U, resetSelectionOnDoubleClick: Ge, detailsOnClick: v, onSeriesMouseOver: Y, onSeriesMouseClick: A, scale: qe, polygonAltitude: $e, centerLat: je[0], centerLng: je[1], atmosphereAltitude: Ze, globeCurvatureResolution: We, fogSettings: K, lights: Ve, highlightedAltitude: Ie, selectedId: N, collapseColorScaleByDefault: he, dimmedOpacity: Ue, numberDisplayOptions: ee }) : /* @__PURE__ */ i.jsx("div", { style: {
355
+ height: `${Math.max(O, o || (C ? O ? (n || H) * C > O ? (n || H) * C : O : (n || H) * C : ue))}px`
356
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(pt, { "aria-label": "Loading graph" }) }) }), e[29] = Ze, e[30] = Be, e[31] = me, e[32] = je, e[33] = u, e[34] = he, e[35] = w, e[36] = D, e[37] = d, e[38] = v, e[39] = Ue, e[40] = fe, e[41] = Ae, e[42] = K, e[43] = We, e[44] = le, e[45] = He, e[46] = o, e[47] = Ie, e[48] = U, e[49] = Ve, e[50] = c, e[51] = r, e[52] = y, e[53] = ke, e[54] = O, e[55] = ee, e[56] = A, e[57] = Y, e[58] = $e, e[59] = C, e[60] = Ge, e[61] = qe, e[62] = k, e[63] = N, e[64] = Fe, e[65] = m, e[66] = ue, e[67] = H, e[68] = F, e[69] = se, e[70] = n, e[71] = oe) : oe = e[71];
357
+ let re;
358
+ e[72] !== u?.footnote || e[73] !== u?.source || e[74] !== B || e[75] !== g || e[76] !== m?.footnote || e[77] !== m?.source || e[78] !== n ? (re = g || B ? /* @__PURE__ */ i.jsx(St, { styles: {
359
359
  footnote: m?.footnote,
360
360
  source: m?.source
361
361
  }, classNames: {
362
362
  footnote: u?.footnote,
363
363
  source: u?.source
364
- }, sources: g, footNote: B, width: n }) : null, e[72] = u?.footnote, e[73] = u?.source, e[74] = B, e[75] = g, e[76] = m?.footnote, e[77] = m?.source, e[78] = n, e[79] = te) : te = e[79];
364
+ }, sources: g, footNote: B, width: n }) : null, e[72] = u?.footnote, e[73] = u?.source, e[74] = B, e[75] = g, e[76] = m?.footnote, e[77] = m?.source, e[78] = n, e[79] = re) : re = e[79];
365
365
  let Te;
366
- return e[80] !== z || e[81] !== a || e[82] !== ie || e[83] !== o || e[84] !== j || e[85] !== O || e[86] !== L || e[87] !== C || e[88] !== Xe || e[89] !== Ye || e[90] !== Q || e[91] !== ee || e[92] !== te || e[93] !== F || e[94] !== n ? (Te = /* @__PURE__ */ i.jsxs(Et, { className: Xe, style: Ye, id: ie, ref: st, "aria-label": z, backgroundColor: a, theme: F, language: j, minHeight: O, width: n, height: o, relativeHeight: C, padding: L, children: [
367
- Q,
368
- ee,
369
- te
370
- ] }), e[80] = z, e[81] = a, e[82] = ie, e[83] = o, e[84] = j, e[85] = O, e[86] = L, e[87] = C, e[88] = Xe, e[89] = Ye, e[90] = Q, e[91] = ee, e[92] = te, e[93] = F, e[94] = n, e[95] = Te) : Te = e[95], Te;
366
+ return e[80] !== z || e[81] !== a || e[82] !== ne || e[83] !== o || e[84] !== j || e[85] !== O || e[86] !== L || e[87] !== C || e[88] !== Je || e[89] !== Xe || e[90] !== te || e[91] !== oe || e[92] !== re || e[93] !== F || e[94] !== n ? (Te = /* @__PURE__ */ i.jsxs(Ot, { className: Je, style: Xe, id: ne, ref: it, "aria-label": z, backgroundColor: a, theme: F, language: j, minHeight: O, width: n, height: o, relativeHeight: C, padding: L, children: [
367
+ te,
368
+ oe,
369
+ re
370
+ ] }), e[80] = z, e[81] = a, e[82] = ne, e[83] = o, e[84] = j, e[85] = O, e[86] = L, e[87] = C, e[88] = Je, e[89] = Xe, e[90] = te, e[91] = oe, e[92] = re, e[93] = F, e[94] = n, e[95] = Te) : Te = e[95], Te;
371
371
  }
372
- function Tt(t) {
372
+ function Mt(t) {
373
373
  return t !== void 0;
374
374
  }
375
- function At(t) {
375
+ function Tt(t) {
376
376
  return t !== void 0;
377
377
  }
378
- function Bt(t) {
378
+ function At(t) {
379
379
  return t.data;
380
380
  }
381
- function Ft(t) {
381
+ function Bt(t) {
382
382
  return t !== void 0;
383
383
  }
384
- function Gt(t) {
384
+ function Ft(t) {
385
385
  return t.data;
386
386
  }
387
- function It(t) {
387
+ function Gt(t) {
388
388
  return t.x;
389
389
  }
390
- function Ut(t) {
390
+ function It(t) {
391
391
  if (t.geometry.type === "Polygon") {
392
392
  const b = [...t.geometry.coordinates[0]].reverse(), x = {
393
393
  ...t.geometry,
@@ -413,6 +413,6 @@ function Ut(t) {
413
413
  };
414
414
  }
415
415
  export {
416
- co as ThreeDGlobe
416
+ lo as ThreeDGlobe
417
417
  };
418
418
  //# sourceMappingURL=ThreeDGlobe.js.map