@undp/data-viz 2.5.3 → 2.5.4

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.
@@ -1,13 +1,13 @@
1
- import { j as t, m as Pt, c as Wt } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useMemo as wt, useState as j, useRef as _e, useEffect as We, useEffectEvent as Ct } from "react";
3
- import { g as _t, N as At } from "./getSliderMarks-X-_goqH9.js";
1
+ import { j as t, m as Wt, c as At } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useMemo as Nt, useState as w, useRef as Ae, useEffect as We, useEffectEvent as Mt } from "react";
3
+ import { g as _t, N as Lt } from "./getSliderMarks-X-_goqH9.js";
4
4
  import { w as Ft } from "./Spinner-B2IIKg9r.js";
5
- import { f as Lt, p as Tt } from "./parse-Dv4of-PN.js";
6
- import { i as $t } from "./index-Bwrro8-q.js";
7
- import { i as Nt, z as Ht, a as Gt, g as Ut, b as Vt, c as Rt, d as qt, e as Xt, f as Yt } from "./index-CKpKc9DR.js";
8
- import { _ as St } from "./Typography-BO0gQDIT.js";
9
- import { i as Zt } from "./index-DCsFBfJ_.js";
10
- import { n as Jt } from "./numberFormattingFunction-BUUV_luR.js";
5
+ import { f as $t, p as Tt } from "./parse-Dv4of-PN.js";
6
+ import { i as Ht } from "./index-Bwrro8-q.js";
7
+ import { i as Ot, z as Gt, a as Ut, g as Vt, b as Rt, c as qt, d as Xt, e as Yt, f as Zt } from "./index-CKpKc9DR.js";
8
+ import { _ as lt } from "./Typography-BO0gQDIT.js";
9
+ import { i as Jt } from "./index-DCsFBfJ_.js";
10
+ import { n as kt } from "./numberFormattingFunction-BUUV_luR.js";
11
11
  import { T as Kt } from "./Tooltip-3EYDVa3w.js";
12
12
  import { c as Qt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
13
  import { X as eo, E as to, P as oo, e as ao } from "./index-ApTBN0kp.js";
@@ -16,146 +16,146 @@ import { ImageDownloadButton as no } from "./ImageDownloadButton.js";
16
16
  import { CsvDownloadButton as io } from "./CsvDownloadButton.js";
17
17
  import { o as so } from "./ordinal-CHaxGJ_l.js";
18
18
  import { t as lo } from "./threshold-DFfqcDMa.js";
19
- import { s as jt } from "./select-DKy99ogv.js";
20
- import { m as lt } from "./proxy-BsxtcZKa.js";
19
+ import { s as wt } from "./select-DKy99ogv.js";
20
+ import { m as ct } from "./proxy-BsxtcZKa.js";
21
21
  import { u as co } from "./use-in-view-KOXq5Kmc.js";
22
22
  import { A as mo } from "./index-Cv_5q6Rb.js";
23
23
  import { GraphFooter as po } from "./GraphFooter.js";
24
24
  import { GraphHeader as uo } from "./GraphHeader.js";
25
- import { Colors as ct } from "./Colors.js";
26
- import { f as Mt } from "./fetchAndParseData-BAXhgTDM.js";
25
+ import { Colors as dt } from "./Colors.js";
26
+ import { f as St } from "./fetchAndParseData-BAXhgTDM.js";
27
27
  import { g as ho } from "./getUniqValue-DsqSii6M.js";
28
28
  import { g as fo } from "./getJenks-DTCcQSDi.js";
29
29
  import { a as go, G as yo } from "./GraphContainer-B8ZqOzKI.js";
30
30
  function vo(m) {
31
31
  const {
32
32
  data: e,
33
- colorDomain: n,
34
- colors: i,
35
- mapData: L,
36
- colorLegendTitle: w,
37
- categorical: T,
33
+ colorDomain: a,
34
+ colors: r,
35
+ mapData: T,
36
+ colorLegendTitle: N,
37
+ categorical: E,
38
38
  height: v,
39
39
  width: u,
40
40
  scale: g,
41
- centerPoint: $,
41
+ centerPoint: H,
42
42
  tooltip: ee,
43
- mapBorderWidth: R,
43
+ mapBorderWidth: q,
44
44
  mapBorderColor: te,
45
45
  mapNoDataColor: be,
46
46
  onSeriesMouseOver: oe,
47
- showColorScale: De,
48
- zoomScaleExtend: Ae,
49
- zoomTranslateExtend: Fe,
47
+ showColorScale: je,
48
+ zoomScaleExtend: _e,
49
+ zoomTranslateExtend: Le,
50
50
  highlightedIds: b,
51
51
  onSeriesMouseClick: ae,
52
52
  mapProperty: y,
53
- resetSelectionOnDoubleClick: je,
54
- detailsOnClick: q,
55
- styles: Le,
53
+ resetSelectionOnDoubleClick: De,
54
+ detailsOnClick: X,
55
+ styles: Fe,
56
56
  classNames: re,
57
- mapProjection: O,
58
- zoomInteraction: E,
59
- animate: C,
60
- dimmedOpacity: B,
57
+ mapProjection: I,
58
+ zoomInteraction: z,
59
+ animate: M,
60
+ dimmedOpacity: P,
61
61
  customLayers: ne,
62
62
  collapseColorScaleByDefault: ke,
63
63
  zoomAndCenterByHighlightedIds: we,
64
- projectionRotate: H,
65
- rewindCoordinatesInMapData: X,
66
- overlayMapData: Y,
67
- overlayMapBorderColor: Te,
68
- overlayMapBorderWidth: $e,
69
- numberDisplayOptions: Z,
64
+ projectionRotate: G,
65
+ rewindCoordinatesInMapData: Y,
66
+ overlayMapData: Z,
67
+ overlayMapBorderColor: $e,
68
+ overlayMapBorderWidth: Te,
69
+ numberDisplayOptions: j,
70
70
  graphDownload: ie,
71
- dataDownload: I
72
- } = m, r = wt(() => X ? Nt(L, {
71
+ dataDownload: W
72
+ } = m, i = Nt(() => Y ? Ot(T, {
73
73
  reverse: !0
74
- }) : L, [L, X]), h = wt(() => !X || !Y ? Y : Nt(Y, {
74
+ }) : T, [T, Y]), h = Nt(() => !Y || !Z ? Z : Ot(Z, {
75
75
  reverse: !0
76
- }), [Y, X]), [N, z] = j(void 0), se = _e(null), [He, J] = j(ke === void 0 ? !(u < 680) : !ke), [G, K] = j(void 0), [P, le] = j(void 0), [Ce, f] = j(void 0), [ce, D] = j(void 0), S = _e(null), M = co(S, {
77
- once: C.once,
78
- amount: C.amount
79
- }), de = _e(null), Ne = T ? so().domain(n).range(i) : lo().domain(n).range(i);
76
+ }), [Z, Y]), [O, D] = w(void 0), se = Ae(null), [He, J] = w(ke === void 0 ? !(u < 680) : !ke), [U, K] = w(void 0), [A, le] = w(void 0), [Ce, f] = w(void 0), [ce, k] = w(void 0), S = Ae(null), B = co(S, {
77
+ once: M.once,
78
+ amount: M.amount
79
+ }), de = Ae(null), Ne = E ? so().domain(a).range(r) : lo().domain(a).range(r);
80
80
  We(() => {
81
- const o = jt(de.current), a = jt(S.current), p = (c) => {
82
- if (E === "noZoom") return !1;
83
- if (E === "button") return !c.type.includes("wheel");
84
- const Ee = c.type === "wheel", Be = c.type.startsWith("touch"), he = c.type === "mousedown" || c.type === "mousemove";
85
- return Be ? !0 : Ee ? E === "scroll" ? !0 : c.ctrlKey : he && !c.button && !c.ctrlKey;
86
- }, x = Ht().scaleExtent(Ae).translateExtent(Fe || [[-20, -20], [u + 20, v + 20]]).filter(p).on("zoom", ({
81
+ const o = wt(de.current), n = wt(S.current), p = (c) => {
82
+ if (z === "noZoom") return !1;
83
+ if (z === "button") return !c.type.includes("wheel");
84
+ const Be = c.type === "wheel", Ee = c.type.startsWith("touch"), he = c.type === "mousedown" || c.type === "mousemove";
85
+ return Ee ? !0 : Be ? z === "scroll" ? !0 : c.ctrlKey : he && !c.button && !c.ctrlKey;
86
+ }, x = Gt().scaleExtent(_e).translateExtent(Le || [[-20, -20], [u + 20, v + 20]]).filter(p).on("zoom", ({
87
87
  transform: c
88
88
  }) => {
89
89
  o.attr("transform", c);
90
90
  });
91
- a.call(x), se.current = x;
92
- }, [v, u, E]);
93
- const U = Gt({
94
- ...r,
95
- features: we ? r.features.filter(
91
+ n.call(x), se.current = x;
92
+ }, [v, u, z]);
93
+ const V = Ut({
94
+ ...i,
95
+ features: we ? i.features.filter(
96
96
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
97
97
  (o) => (b || []).length === 0 || b?.indexOf(o.properties[y]) !== -1
98
- ) : r.features
99
- }), W = Zt({
100
- ...r,
101
- features: we ? r.features.filter(
98
+ ) : i.features
99
+ }), _ = Jt({
100
+ ...i,
101
+ features: we ? i.features.filter(
102
102
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
103
  (o) => (b || []).length === 0 || b?.indexOf(o.properties[y]) !== -1
104
- ) : r.features
105
- }), Se = (U[2] - U[0]) * 1.15, me = (U[3] - U[1]) * 1.15, Me = u * 190 / 960 * 360 / Se, pe = v * 190 / 678 * 180 / me, _ = g * Math.min(Me, pe), Oe = O === "mercator" ? Ut().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_) : O === "equalEarth" ? Vt().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_) : O === "naturalEarth" ? Rt().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_) : O === "orthographic" ? qt().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_) : Xt().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_), V = Yt().projection(Oe), ue = (o) => {
104
+ ) : i.features
105
+ }), Me = (V[2] - V[0]) * 1.15, me = (V[3] - V[1]) * 1.15, Oe = u * 190 / 960 * 360 / Me, pe = v * 190 / 678 * 180 / me, L = g * Math.min(Oe, pe), Se = I === "mercator" ? Vt().rotate(G).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L) : I === "equalEarth" ? Rt().rotate(G).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L) : I === "naturalEarth" ? qt().rotate(G).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L) : I === "orthographic" ? Xt().rotate(G).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L) : Yt().rotate(G).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L), R = Zt().projection(Se), ue = (o) => {
106
106
  if (!S.current || !se.current) return;
107
- jt(S.current).call(se.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
107
+ wt(S.current).call(se.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
108
108
  };
109
109
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
110
110
  /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
111
- /* @__PURE__ */ t.jsx(lt.svg, { width: `${u}px`, height: `${v}px`, viewBox: `0 0 ${u} ${v}`, ref: S, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: de, children: [
111
+ /* @__PURE__ */ t.jsx(ct.svg, { width: `${u}px`, height: `${v}px`, viewBox: `0 0 ${u} ${v}`, ref: S, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: de, children: [
112
112
  ne.filter((o) => o.position === "before").map((o) => o.layer),
113
- r.features.map((o, a) => {
113
+ i.features.map((o, n) => {
114
114
  if (!o.properties?.[y]) return null;
115
- const p = V(o);
116
- return p ? /* @__PURE__ */ t.jsx(lt.g, { opacity: N ? B : b ? b.indexOf(o.properties[y]) !== -1 ? 1 : B : 1, children: /* @__PURE__ */ t.jsx("path", { d: p, style: {
115
+ const p = R(o);
116
+ return p ? /* @__PURE__ */ t.jsx(ct.g, { opacity: O ? P : b ? b.indexOf(o.properties[y]) !== -1 ? 1 : P : 1, children: /* @__PURE__ */ t.jsx("path", { d: p, style: {
117
117
  stroke: te,
118
- strokeWidth: R,
118
+ strokeWidth: q,
119
119
  fill: be,
120
120
  vectorEffect: "non-scaling-stroke"
121
- } }) }, a) : null;
121
+ } }) }, n) : null;
122
122
  }),
123
123
  /* @__PURE__ */ t.jsx(mo, { children: e.map((o) => {
124
- const a = r.features.findIndex(
124
+ const n = i.features.findIndex(
125
125
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
126
126
  (c) => o.id === c.properties[y]
127
127
  );
128
- if (a === -1) return null;
129
- const p = V(r.features[a]);
128
+ if (n === -1) return null;
129
+ const p = R(i.features[n]);
130
130
  if (!p) return null;
131
131
  const x = Qt(o.x) ? be : (
132
132
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
133
133
  Ne(o.x)
134
134
  );
135
- return /* @__PURE__ */ t.jsx(lt.g, { className: "undp-map-shapes", variants: {
135
+ return /* @__PURE__ */ t.jsx(ct.g, { className: "undp-map-shapes", variants: {
136
136
  initial: {
137
137
  opacity: 0
138
138
  },
139
139
  whileInView: {
140
- opacity: N ? N === x && (!b || b.indexOf(o.id) !== -1) ? 1 : B : b ? b.indexOf(o.id) !== -1 ? 1 : B : 1,
140
+ opacity: O ? O === x && (!b || b.indexOf(o.id) !== -1) ? 1 : P : b ? b.indexOf(o.id) !== -1 ? 1 : P : 1,
141
141
  transition: {
142
- duration: C.duration
142
+ duration: M.duration
143
143
  }
144
144
  }
145
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
145
+ }, initial: "initial", animate: B ? "whileInView" : "initial", exit: {
146
146
  opacity: 0,
147
147
  transition: {
148
- duration: C.duration
148
+ duration: M.duration
149
149
  }
150
150
  }, onMouseEnter: (c) => {
151
- le(o), D(c.clientY), f(c.clientX), oe?.(o);
151
+ le(o), k(c.clientY), f(c.clientX), oe?.(o);
152
152
  }, onMouseMove: (c) => {
153
- le(o), D(c.clientY), f(c.clientX);
153
+ le(o), k(c.clientY), f(c.clientX);
154
154
  }, onMouseLeave: () => {
155
- le(void 0), f(void 0), D(void 0), oe?.(void 0);
155
+ le(void 0), f(void 0), k(void 0), oe?.(void 0);
156
156
  }, onClick: () => {
157
- (ae || q) && ($t(G, o) && je ? (K(void 0), ae?.(void 0)) : (K(o), ae?.(o)));
158
- }, children: /* @__PURE__ */ t.jsx(lt.path, { d: p, variants: {
157
+ (ae || X) && (Ht(U, o) && De ? (K(void 0), ae?.(void 0)) : (K(o), ae?.(o)));
158
+ }, children: /* @__PURE__ */ t.jsx(ct.path, { d: p, variants: {
159
159
  initial: {
160
160
  fill: x,
161
161
  opacity: 0
@@ -164,260 +164,281 @@ function vo(m) {
164
164
  fill: x,
165
165
  opacity: 1,
166
166
  transition: {
167
- duration: C.duration
167
+ duration: M.duration
168
168
  }
169
169
  }
170
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
170
+ }, initial: "initial", animate: B ? "whileInView" : "initial", exit: {
171
171
  opacity: 0,
172
172
  transition: {
173
- duration: C.duration
173
+ duration: M.duration
174
174
  }
175
175
  }, style: {
176
176
  stroke: te,
177
- strokeWidth: R,
177
+ strokeWidth: q,
178
178
  vectorEffect: "non-scaling-stroke"
179
179
  } }, `${o.id}`) }, o.id);
180
180
  }) }),
181
- P ? r.features.filter(
181
+ A ? i.features.filter(
182
182
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
183
- (o) => o.properties[y] === P.id
184
- ).map((o, a) => /* @__PURE__ */ t.jsx("path", { d: V(o) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
183
+ (o) => o.properties[y] === A.id
184
+ ).map((o, n) => /* @__PURE__ */ t.jsx("path", { d: R(o) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
185
185
  fill: "none",
186
186
  fillOpacity: 0,
187
187
  strokeWidth: "0.5",
188
188
  vectorEffect: "non-scaling-stroke"
189
- } }, a)) : null,
190
- h?.features.map((o, a) => {
191
- const p = V(o);
189
+ } }, n)) : null,
190
+ h?.features.map((o, n) => {
191
+ const p = R(o);
192
192
  return p ? /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("path", { d: p, style: {
193
- stroke: Te || te,
194
- strokeWidth: $e || R + 1,
193
+ stroke: $e || te,
194
+ strokeWidth: Te || q + 1,
195
195
  fill: "none",
196
196
  pointerEvents: "none",
197
197
  vectorEffect: "non-scaling-stroke"
198
- } }) }, a) : null;
198
+ } }) }, n) : null;
199
199
  }),
200
200
  ne.filter((o) => o.position === "after").map((o) => o.layer)
201
201
  ] }) }),
202
- De === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: Pt("absolute left-4 bottom-4 map-color-legend", re?.colorLegend), children: He ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
202
+ je === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: Wt("absolute left-4 bottom-4 map-color-legend", re?.colorLegend), children: He ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
203
203
  /* @__PURE__ */ t.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
204
204
  J(!1);
205
205
  }, children: /* @__PURE__ */ t.jsx(eo, {}) }),
206
206
  /* @__PURE__ */ t.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
207
- width: T ? void 0 : "340px"
207
+ width: E || a.length < 2 ? void 0 : "340px"
208
208
  }, children: [
209
- w && w !== "" ? /* @__PURE__ */ t.jsx(St, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
209
+ N && N !== "" ? /* @__PURE__ */ t.jsx(lt, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
210
210
  display: "-webkit-box",
211
211
  WebkitLineClamp: "1",
212
212
  WebkitBoxOrient: "vertical"
213
- }, children: w }) : null,
214
- T ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, a) => /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
215
- z(i[a % i.length]);
216
- }, onMouseLeave: () => {
217
- z(void 0);
218
- }, children: [
219
- /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
220
- backgroundColor: i[a % i.length]
221
- } }),
222
- /* @__PURE__ */ t.jsx(St, { size: "sm", marginBottom: "none", leading: "none", children: o })
223
- ] }, a)) }) : /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
224
- n.map((o, a) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
225
- z(i[a]);
213
+ }, children: N }) : null,
214
+ !E && a.length > 1 ? /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
215
+ a.map((o, n) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
216
+ D(r[n]);
226
217
  }, onMouseLeave: () => {
227
- z(void 0);
218
+ D(void 0);
228
219
  }, className: "cursor-pointer", children: [
229
- /* @__PURE__ */ t.jsx("rect", { x: a * 320 / i.length + 1, y: 1, width: 320 / i.length - 2, height: 8, className: N === i[a] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
230
- fill: i[a],
231
- ...N === i[a] ? {} : {
232
- stroke: i[a]
220
+ /* @__PURE__ */ t.jsx("rect", { x: n * 320 / r.length + 1, y: 1, width: 320 / r.length - 2, height: 8, className: O === r[n] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
221
+ fill: r[n],
222
+ ...O === r[n] ? {} : {
223
+ stroke: r[n]
233
224
  }
234
225
  } }),
235
- /* @__PURE__ */ t.jsx("text", { x: (a + 1) * 320 / i.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
226
+ /* @__PURE__ */ t.jsx("text", { x: (n + 1) * 320 / r.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
236
227
  textAnchor: "middle"
237
- }, children: Jt(o, "NA", Z?.precision ?? 2, void 0, void 0, Z?.locale || "en", Z?.padZeros || !1) })
238
- ] }, a)),
228
+ }, children: kt(o, "NA", j?.precision ?? 2, void 0, void 0, j?.locale || "en", j?.padZeros || !1) })
229
+ ] }, n)),
239
230
  /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("rect", { onMouseOver: () => {
240
- z(i[n.length]);
231
+ D(r[a.length]);
241
232
  }, onMouseLeave: () => {
242
- z(void 0);
243
- }, x: n.length * 320 / i.length + 1, y: 1, width: 320 / i.length - 2, height: 8, className: `cursor-pointer ${N === i[n.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
244
- fill: i[n.length],
245
- ...N === i[n.length] ? {} : {
246
- stroke: i[n.length]
233
+ D(void 0);
234
+ }, x: a.length * 320 / r.length + 1, y: 1, width: 320 / r.length - 2, height: 8, className: `cursor-pointer ${O === r[a.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
235
+ fill: r[a.length],
236
+ ...O === r[a.length] ? {} : {
237
+ stroke: r[a.length]
247
238
  }
248
239
  } }) })
249
- ] }) })
240
+ ] }) }) : E ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: a.map((o, n) => /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
241
+ D(r[n % r.length]);
242
+ }, onMouseLeave: () => {
243
+ D(void 0);
244
+ }, children: [
245
+ /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
246
+ backgroundColor: r[n % r.length]
247
+ } }),
248
+ /* @__PURE__ */ t.jsx(lt, { size: "sm", marginBottom: "none", leading: "none", children: o })
249
+ ] }, n)) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-3", children: [
250
+ /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
251
+ D(r[0]);
252
+ }, onMouseLeave: () => {
253
+ D(void 0);
254
+ }, children: [
255
+ /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
256
+ backgroundColor: r[0]
257
+ } }),
258
+ /* @__PURE__ */ t.jsx(lt, { size: "sm", marginBottom: "none", leading: "none", children: `<= ${kt(a[0], "NA", j?.precision ?? 2, void 0, void 0, j?.locale || "en", j?.padZeros || !1)}` })
259
+ ] }),
260
+ /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
261
+ D(r[1]);
262
+ }, onMouseLeave: () => {
263
+ D(void 0);
264
+ }, children: [
265
+ /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
266
+ backgroundColor: r[1]
267
+ } }),
268
+ /* @__PURE__ */ t.jsx(lt, { size: "sm", marginBottom: "none", leading: "none", children: `> ${kt(a[0], "NA", j?.precision ?? 2, void 0, void 0, j?.locale || "en", j?.padZeros || !1)}` })
269
+ ] })
270
+ ] })
250
271
  ] })
251
272
  ] }) : /* @__PURE__ */ t.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: () => {
252
273
  J(!0);
253
274
  }, children: /* @__PURE__ */ t.jsx(to, {}) }) }),
254
- E === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col undp-viz-zoom-buttons", children: [
275
+ z === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col undp-viz-zoom-buttons", children: [
255
276
  /* @__PURE__ */ t.jsx("button", { onClick: () => ue("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
256
277
  /* @__PURE__ */ t.jsx("button", { onClick: () => ue("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
257
278
  ] }),
258
- (ie || I) && /* @__PURE__ */ t.jsxs("div", { className: "absolute right-4 top-4 flex flex-col image-download-button gap-2", children: [
279
+ (ie || W) && /* @__PURE__ */ t.jsxs("div", { className: "absolute right-4 top-4 flex flex-col image-download-button gap-2", children: [
259
280
  ie && /* @__PURE__ */ t.jsx(no, { nodeID: ie, buttonSmall: !0, className: "p-1" }),
260
- I && I.length > 0 && /* @__PURE__ */ t.jsx(io, { csvData: I, buttonSmall: !0, headers: Object.keys(I[0]).map((o) => ({
281
+ W && W.length > 0 && /* @__PURE__ */ t.jsx(io, { csvData: W, buttonSmall: !0, headers: Object.keys(W[0]).map((o) => ({
261
282
  label: o,
262
283
  key: o
263
284
  })), className: "p-1" })
264
285
  ] })
265
286
  ] }),
266
- q && G !== void 0 ? /* @__PURE__ */ t.jsx(ro, { body: q, data: G, setData: K, className: re?.modal }) : null,
267
- P && ee && Ce && ce ? /* @__PURE__ */ t.jsx(Kt, { data: P, body: ee, xPos: Ce, yPos: ce, backgroundStyle: Le?.tooltip, className: re?.tooltip }) : null
287
+ X && U !== void 0 ? /* @__PURE__ */ t.jsx(ro, { body: X, data: U, setData: K, className: re?.modal }) : null,
288
+ A && ee && Ce && ce ? /* @__PURE__ */ t.jsx(Kt, { data: A, body: ee, xPos: Ce, yPos: ce, backgroundStyle: Fe?.tooltip, className: re?.tooltip }) : null
268
289
  ] });
269
290
  }
270
291
  function aa(m) {
271
- const e = Wt.c(133), {
272
- data: n,
273
- mapData: i,
274
- graphTitle: L,
275
- colors: w,
276
- sources: T,
292
+ const e = At.c(133), {
293
+ data: a,
294
+ mapData: r,
295
+ graphTitle: T,
296
+ colors: N,
297
+ sources: E,
277
298
  graphDescription: v,
278
299
  height: u,
279
300
  width: g,
280
- footNote: $,
301
+ footNote: H,
281
302
  colorDomain: ee,
282
- colorLegendTitle: R,
303
+ colorLegendTitle: q,
283
304
  scaleType: te,
284
305
  scale: be,
285
306
  centerPoint: oe,
286
- padding: De,
287
- mapBorderWidth: Ae,
288
- mapNoDataColor: Fe,
307
+ padding: je,
308
+ mapBorderWidth: _e,
309
+ mapNoDataColor: Le,
289
310
  backgroundColor: b,
290
311
  mapBorderColor: ae,
291
312
  relativeHeight: y,
292
- tooltip: je,
293
- onSeriesMouseOver: q,
294
- isWorldMap: Le,
313
+ tooltip: De,
314
+ onSeriesMouseOver: X,
315
+ isWorldMap: Fe,
295
316
  showColorScale: re,
296
- zoomScaleExtend: O,
297
- zoomTranslateExtend: E,
298
- graphID: C,
299
- highlightedIds: B,
317
+ zoomScaleExtend: I,
318
+ zoomTranslateExtend: z,
319
+ graphID: M,
320
+ highlightedIds: P,
300
321
  onSeriesMouseClick: ne,
301
322
  mapProperty: ke,
302
323
  graphDownload: we,
303
- dataDownload: H,
304
- showAntarctica: X,
305
- language: Y,
306
- minHeight: Te,
307
- theme: $e,
308
- ariaLabel: Z,
324
+ dataDownload: G,
325
+ showAntarctica: Y,
326
+ language: Z,
327
+ minHeight: $e,
328
+ theme: Te,
329
+ ariaLabel: j,
309
330
  resetSelectionOnDoubleClick: ie,
310
- detailsOnClick: I,
311
- styles: r,
331
+ detailsOnClick: W,
332
+ styles: i,
312
333
  classNames: h,
313
- mapProjection: N,
314
- zoomInteraction: z,
334
+ mapProjection: O,
335
+ zoomInteraction: D,
315
336
  animate: se,
316
337
  dimmedOpacity: He,
317
338
  customLayers: J,
318
- timeline: G,
339
+ timeline: U,
319
340
  collapseColorScaleByDefault: K,
320
- projectionRotate: P,
341
+ projectionRotate: A,
321
342
  zoomAndCenterByHighlightedIds: le,
322
343
  rewindCoordinatesInMapData: Ce,
323
344
  mapOverlay: f,
324
345
  numberDisplayOptions: ce
325
- } = m, D = i === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : i, S = $ === 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." : $, M = te === void 0 ? "threshold" : te, de = be === void 0 ? 0.95 : be, Ne = Ae === void 0 ? 0.5 : Ae, U = Fe === void 0 ? ct.light.graphNoData : Fe, W = b === void 0 ? !1 : b, Se = ae === void 0 ? ct.light.grays["gray-500"] : ae, me = Le === void 0 ? !0 : Le, Me = re === void 0 ? !0 : re;
346
+ } = m, k = r === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : r, S = H === 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." : H, B = te === void 0 ? "threshold" : te, de = be === void 0 ? 0.95 : be, Ne = _e === void 0 ? 0.5 : _e, V = Le === void 0 ? dt.light.graphNoData : Le, _ = b === void 0 ? !1 : b, Me = ae === void 0 ? dt.light.grays["gray-500"] : ae, me = Fe === void 0 ? !0 : Fe, Oe = re === void 0 ? !0 : re;
326
347
  let pe;
327
- e[0] !== O ? (pe = O === void 0 ? [0.8, 6] : O, e[0] = O, e[1] = pe) : pe = e[1];
328
- const _ = pe, Oe = ke === void 0 ? "ISO3" : ke, V = we === void 0 ? !1 : we, ue = H === void 0 ? !1 : H, o = X === void 0 ? !1 : X, a = Y === void 0 ? "en" : Y, p = Te === void 0 ? 0 : Te, x = $e === void 0 ? "light" : $e, c = ie === void 0 ? !0 : ie, Ee = N === void 0 ? "naturalEarth" : N, Be = z === void 0 ? "button" : z, he = se === void 0 ? !1 : se, dt = He === void 0 ? 0.3 : He;
348
+ e[0] !== I ? (pe = I === void 0 ? [0.8, 6] : I, e[0] = I, e[1] = pe) : pe = e[1];
349
+ const L = pe, Se = ke === void 0 ? "ISO3" : ke, R = we === void 0 ? !1 : we, ue = G === void 0 ? !1 : G, o = Y === void 0 ? !1 : Y, n = Z === void 0 ? "en" : Z, p = $e === void 0 ? 0 : $e, x = Te === void 0 ? "light" : Te, c = ie === void 0 ? !0 : ie, Be = O === void 0 ? "naturalEarth" : O, Ee = D === void 0 ? "button" : D, he = se === void 0 ? !1 : se, mt = He === void 0 ? 0.3 : He;
329
350
  let Ge;
330
351
  e[2] !== J ? (Ge = J === void 0 ? [] : J, e[2] = J, e[3] = Ge) : Ge = e[3];
331
- const mt = Ge;
352
+ const pt = Ge;
332
353
  let Ue;
333
- e[4] !== G ? (Ue = G === void 0 ? {
354
+ e[4] !== U ? (Ue = U === void 0 ? {
334
355
  enabled: !1,
335
356
  autoplay: !1,
336
357
  showOnlyActiveDate: !0
337
- } : G, e[4] = G, e[5] = Ue) : Ue = e[5];
358
+ } : U, e[4] = U, e[5] = Ue) : Ue = e[5];
338
359
  const s = Ue;
339
360
  let Ve;
340
- e[6] !== P ? (Ve = P === void 0 ? [0, 0] : P, e[6] = P, e[7] = Ve) : Ve = e[7];
341
- const pt = Ve, ut = le === void 0 ? !1 : le, ht = Ce === void 0 ? !0 : Ce, [Q, Ot] = j(0), [Ie, Et] = j(0), [A, Bt] = j(s.autoplay);
361
+ e[6] !== A ? (Ve = A === void 0 ? [0, 0] : A, e[6] = A, e[7] = Ve) : Ve = e[7];
362
+ const ut = Ve, ht = le === void 0 ? !1 : le, ft = Ce === void 0 ? !0 : Ce, [Q, Bt] = w(0), [Ie, Et] = w(0), [F, It] = w(s.autoplay);
342
363
  let ze;
343
- if (e[8] !== n || e[9] !== s.dateFormat) {
364
+ if (e[8] !== a || e[9] !== s.dateFormat) {
344
365
  let l;
345
- e[11] !== s.dateFormat ? (l = (k) => Tt(`${k.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = s.dateFormat, e[12] = l) : l = e[12], ze = [...new Set(n.filter(So).map(l))], ze.sort(No), e[8] = n, e[9] = s.dateFormat, e[10] = ze;
366
+ e[11] !== s.dateFormat ? (l = (C) => Tt(`${C.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = s.dateFormat, e[12] = l) : l = e[12], ze = [...new Set(a.filter(Mo).map(l))], ze.sort(No), e[8] = a, e[9] = s.dateFormat, e[10] = ze;
346
367
  } else
347
368
  ze = e[10];
348
- const d = ze, [F, ft] = j(s.autoplay ? 0 : d.length - 1), [fe, It] = j(void 0), [gt, zt] = j(void 0), yt = _e(null), kt = _e(null);
369
+ const d = ze, [$, gt] = w(s.autoplay ? 0 : d.length - 1), [fe, zt] = w(void 0), [yt, Pt] = w(void 0), vt = Ae(null), Ct = Ae(null);
349
370
  let Re, qe;
350
371
  e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Re = () => {
351
- const l = new ResizeObserver((k) => {
352
- Ot(k[0].target.clientWidth || 620), Et(k[0].target.clientHeight || 480);
372
+ const l = new ResizeObserver((C) => {
373
+ Bt(C[0].target.clientWidth || 620), Et(C[0].target.clientHeight || 480);
353
374
  });
354
- return yt.current && l.observe(yt.current), () => l.disconnect();
375
+ return vt.current && l.observe(vt.current), () => l.disconnect();
355
376
  }, qe = [], e[13] = Re, e[14] = qe) : (Re = e[13], qe = e[14]), We(Re, qe);
356
377
  let Xe;
357
378
  e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Xe = (l) => {
358
- It(l);
379
+ zt(l);
359
380
  }, e[15] = Xe) : Xe = e[15];
360
- const Ye = Ct(Xe);
381
+ const Ye = Mt(Xe);
361
382
  let Ze;
362
383
  e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ze = (l) => {
363
- zt(l);
384
+ Pt(l);
364
385
  }, e[16] = Ze) : Ze = e[16];
365
- const Pe = Ct(Ze);
386
+ const Pe = Mt(Ze);
366
387
  let Je;
367
- e[17] !== D || e[18] !== Ye ? (Je = () => {
368
- typeof D == "string" ? Mt(D).then((k) => {
369
- Ye(k);
370
- }) : Ye(D);
371
- }, e[17] = D, e[18] = Ye, e[19] = Je) : Je = e[19];
388
+ e[17] !== k || e[18] !== Ye ? (Je = () => {
389
+ typeof k == "string" ? St(k).then((C) => {
390
+ Ye(C);
391
+ }) : Ye(k);
392
+ }, e[17] = k, e[18] = Ye, e[19] = Je) : Je = e[19];
372
393
  let Ke;
373
- e[20] !== D ? (Ke = [D], e[20] = D, e[21] = Ke) : Ke = e[21], We(Je, Ke);
394
+ e[20] !== k ? (Ke = [k], e[20] = k, e[21] = Ke) : Ke = e[21], We(Je, Ke);
374
395
  let Qe;
375
396
  e[22] !== f?.mapData || e[23] !== Pe ? (Qe = () => {
376
- f?.mapData || Pe(void 0), typeof f?.mapData == "string" ? Mt(f?.mapData).then((k) => {
377
- Pe(k);
397
+ f?.mapData || Pe(void 0), typeof f?.mapData == "string" ? St(f?.mapData).then((C) => {
398
+ Pe(C);
378
399
  }) : Pe(f?.mapData);
379
400
  }, e[22] = f?.mapData, e[23] = Pe, e[24] = Qe) : Qe = e[24];
380
- const vt = f?.mapData;
401
+ const xt = f?.mapData;
381
402
  let et;
382
- e[25] !== vt ? (et = [vt], e[25] = vt, e[26] = et) : et = e[26], We(Qe, et);
403
+ e[25] !== xt ? (et = [xt], e[25] = xt, e[26] = et) : et = e[26], We(Qe, et);
383
404
  let tt;
384
- e[27] !== ee || e[28] !== w?.length || e[29] !== n || e[30] !== M ? (tt = ee || (M === "categorical" ? ho(n, "x") : fo(n.map(Co), w?.length || 4)), e[27] = ee, e[28] = w?.length, e[29] = n, e[30] = M, e[31] = tt) : tt = e[31];
405
+ e[27] !== ee || e[28] !== N?.length || e[29] !== a || e[30] !== B ? (tt = ee || (B === "categorical" ? ho(a, "x") : fo(a.map(Co), N?.length || 4)), e[27] = ee, e[28] = N?.length, e[29] = a, e[30] = B, e[31] = tt) : tt = e[31];
385
406
  const ot = tt;
386
407
  let at, rt;
387
- e[32] !== A || e[33] !== s.speed || e[34] !== d ? (at = () => {
408
+ e[32] !== F || e[33] !== s.speed || e[34] !== d ? (at = () => {
388
409
  const l = setInterval(() => {
389
- ft((k) => k < d.length - 1 ? k + 1 : 0);
410
+ gt((C) => C < d.length - 1 ? C + 1 : 0);
390
411
  }, (s.speed || 2) * 1e3);
391
- return A || clearInterval(l), () => clearInterval(l);
392
- }, rt = [d, A, s.speed], e[32] = A, e[33] = s.speed, e[34] = d, e[35] = at, e[36] = rt) : (at = e[35], rt = e[36]), We(at, rt);
393
- const xt = s.dateFormat || "yyyy";
412
+ return F || clearInterval(l), () => clearInterval(l);
413
+ }, rt = [d, F, s.speed], e[32] = F, e[33] = s.speed, e[34] = d, e[35] = at, e[36] = rt) : (at = e[35], rt = e[36]), We(at, rt);
414
+ const bt = s.dateFormat || "yyyy";
394
415
  let nt;
395
- e[37] !== F || e[38] !== xt || e[39] !== s.showOnlyActiveDate || e[40] !== d ? (nt = _t(d, F, s.showOnlyActiveDate, xt), e[37] = F, e[38] = xt, e[39] = s.showOnlyActiveDate, e[40] = d, e[41] = nt) : nt = e[41];
396
- const it = nt, bt = h?.graphContainer, Dt = r?.graphContainer;
416
+ e[37] !== $ || e[38] !== bt || e[39] !== s.showOnlyActiveDate || e[40] !== d ? (nt = _t(d, $, s.showOnlyActiveDate, bt), e[37] = $, e[38] = bt, e[39] = s.showOnlyActiveDate, e[40] = d, e[41] = nt) : nt = e[41];
417
+ const it = nt, jt = h?.graphContainer, Dt = i?.graphContainer;
397
418
  let ge;
398
- e[42] !== h?.description || e[43] !== h?.title || e[44] !== v || e[45] !== L || e[46] !== r?.description || e[47] !== r?.title || e[48] !== g ? (ge = L || v ? /* @__PURE__ */ t.jsx(uo, { styles: {
399
- title: r?.title,
400
- description: r?.description
419
+ e[42] !== h?.description || e[43] !== h?.title || e[44] !== v || e[45] !== T || e[46] !== i?.description || e[47] !== i?.title || e[48] !== g ? (ge = T || v ? /* @__PURE__ */ t.jsx(uo, { styles: {
420
+ title: i?.title,
421
+ description: i?.description
401
422
  }, classNames: {
402
423
  title: h?.title,
403
424
  description: h?.description
404
- }, graphTitle: L, graphDescription: v, width: g }) : null, e[42] = h?.description, e[43] = h?.title, e[44] = v, e[45] = L, e[46] = r?.description, e[47] = r?.title, e[48] = g, e[49] = ge) : ge = e[49];
425
+ }, graphTitle: T, graphDescription: v, width: g }) : null, e[42] = h?.description, e[43] = h?.title, e[44] = v, e[45] = T, e[46] = i?.description, e[47] = i?.title, e[48] = g, e[49] = ge) : ge = e[49];
405
426
  let ye;
406
- e[50] !== F || e[51] !== it || e[52] !== A || e[53] !== s.enabled || e[54] !== d ? (ye = s.enabled && d.length > 0 && it ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
427
+ e[50] !== $ || e[51] !== it || e[52] !== F || e[53] !== s.enabled || e[54] !== d ? (ye = s.enabled && d.length > 0 && it ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
407
428
  /* @__PURE__ */ t.jsx("button", { type: "button", onClick: () => {
408
- Bt(!A);
409
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ t.jsx(oo, {}) : /* @__PURE__ */ t.jsx(ao, {}) }),
410
- /* @__PURE__ */ t.jsx(At, { min: d[0], max: d[d.length - 1], marks: it, step: null, defaultValue: d[d.length - 1], value: d[F], onChangeComplete: (l) => {
411
- ft(d.indexOf(l));
429
+ It(!F);
430
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": F ? "Click to pause animation" : "Click to play animation", children: F ? /* @__PURE__ */ t.jsx(oo, {}) : /* @__PURE__ */ t.jsx(ao, {}) }),
431
+ /* @__PURE__ */ t.jsx(Lt, { min: d[0], max: d[d.length - 1], marks: it, step: null, defaultValue: d[d.length - 1], value: d[$], onChangeComplete: (l) => {
432
+ gt(d.indexOf(l));
412
433
  }, onChange: (l) => {
413
- ft(d.indexOf(l));
434
+ gt(d.indexOf(l));
414
435
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
415
- ] }) : null, e[50] = F, e[51] = it, e[52] = A, e[53] = s.enabled, e[54] = d, e[55] = ye) : ye = e[55];
436
+ ] }) : null, e[50] = $, e[51] = it, e[52] = F, e[53] = s.enabled, e[54] = d, e[55] = ye) : ye = e[55];
416
437
  let ve;
417
- e[56] !== he || e[57] !== oe || e[58] !== h || e[59] !== K || e[60] !== R || e[61] !== w || e[62] !== mt || e[63] !== n || e[64] !== ue || e[65] !== I || e[66] !== dt || e[67] !== ot || e[68] !== V || e[69] !== u || e[70] !== B || e[71] !== F || e[72] !== me || e[73] !== Se || e[74] !== Ne || e[75] !== U || e[76] !== f?.mapBorderColor || e[77] !== f?.mapBorderWidth || e[78] !== Ee || e[79] !== Oe || e[80] !== fe || e[81] !== p || e[82] !== ce || e[83] !== ne || e[84] !== q || e[85] !== gt || e[86] !== pt || e[87] !== y || e[88] !== c || e[89] !== ht || e[90] !== de || e[91] !== M || e[92] !== o || e[93] !== Me || e[94] !== r || e[95] !== Ie || e[96] !== Q || e[97] !== x || e[98] !== s.dateFormat || e[99] !== s.enabled || e[100] !== je || e[101] !== d || e[102] !== g || e[103] !== ut || e[104] !== Be || e[105] !== _ || e[106] !== E ? (ve = /* @__PURE__ */ t.jsx(go, { ref: yt, children: Q && Ie && fe ? /* @__PURE__ */ t.jsx(vo, { data: n.filter((l) => s.enabled ? `${l.date}` === Lt(new Date(d[F]), s.dateFormat || "yyyy") : l), mapData: o ? fe : {
438
+ e[56] !== he || e[57] !== oe || e[58] !== h || e[59] !== K || e[60] !== q || e[61] !== N || e[62] !== pt || e[63] !== a || e[64] !== ue || e[65] !== W || e[66] !== mt || e[67] !== ot || e[68] !== R || e[69] !== u || e[70] !== P || e[71] !== $ || e[72] !== me || e[73] !== Me || e[74] !== Ne || e[75] !== V || e[76] !== f?.mapBorderColor || e[77] !== f?.mapBorderWidth || e[78] !== Be || e[79] !== Se || e[80] !== fe || e[81] !== p || e[82] !== ce || e[83] !== ne || e[84] !== X || e[85] !== yt || e[86] !== ut || e[87] !== y || e[88] !== c || e[89] !== ft || e[90] !== de || e[91] !== B || e[92] !== o || e[93] !== Oe || e[94] !== i || e[95] !== Ie || e[96] !== Q || e[97] !== x || e[98] !== s.dateFormat || e[99] !== s.enabled || e[100] !== De || e[101] !== d || e[102] !== g || e[103] !== ht || e[104] !== Ee || e[105] !== L || e[106] !== z ? (ve = /* @__PURE__ */ t.jsx(go, { ref: vt, children: Q && Ie && fe ? /* @__PURE__ */ t.jsx(vo, { data: a.filter((l) => s.enabled ? `${l.date}` === $t(new Date(d[$]), s.dateFormat || "yyyy") : l), mapData: o ? fe : {
418
439
  ...fe,
419
440
  features: fe.features.filter(wo)
420
- }, colorDomain: ot, width: Q, height: Ie, scale: de, centerPoint: oe, colors: w || (M === "categorical" ? ct[x].categoricalColors.colors : ct[x].sequentialColors[`neutralColorsx0${ot.length + 1}`]), colorLegendTitle: R, mapBorderWidth: Ne, mapNoDataColor: U, categorical: M === "categorical", mapBorderColor: Se, tooltip: je, onSeriesMouseOver: q, isWorldMap: me, showColorScale: Me, zoomScaleExtend: _, zoomTranslateExtend: E, onSeriesMouseClick: ne, mapProperty: Oe, highlightedIds: B, resetSelectionOnDoubleClick: c, styles: r, overlayMapData: gt, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, classNames: h, detailsOnClick: I, mapProjection: Ee || (me ? "naturalEarth" : "mercator"), zoomInteraction: Be, dimmedOpacity: dt, animate: he === !0 ? {
441
+ }, colorDomain: ot, width: Q, height: Ie, scale: de, centerPoint: oe, colors: N || (B === "categorical" ? dt[x].categoricalColors.colors : dt[x].sequentialColors[`neutralColorsx0${ot.length + 1}`]), colorLegendTitle: q, mapBorderWidth: Ne, mapNoDataColor: V, categorical: B === "categorical", mapBorderColor: Me, tooltip: De, onSeriesMouseOver: X, isWorldMap: me, showColorScale: Oe, zoomScaleExtend: L, zoomTranslateExtend: z, onSeriesMouseClick: ne, mapProperty: Se, highlightedIds: P, resetSelectionOnDoubleClick: c, styles: i, overlayMapData: yt, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, classNames: h, detailsOnClick: W, mapProjection: Be || (me ? "naturalEarth" : "mercator"), zoomInteraction: Ee, dimmedOpacity: mt, animate: he === !0 ? {
421
442
  duration: 0.5,
422
443
  once: !0,
423
444
  amount: 0.5
@@ -425,24 +446,24 @@ function aa(m) {
425
446
  duration: 0,
426
447
  once: !0,
427
448
  amount: 0
428
- }, customLayers: mt, zoomAndCenterByHighlightedIds: ut, collapseColorScaleByDefault: K, projectionRotate: pt, rewindCoordinatesInMapData: ht, numberDisplayOptions: ce, graphDownload: V ? kt : void 0, dataDownload: ue ? n.map(ko).filter(jo).length > 0 ? n.map(Do).filter(bo) : n.filter(xo) : null }) : /* @__PURE__ */ t.jsx("div", { style: {
449
+ }, customLayers: pt, zoomAndCenterByHighlightedIds: ht, collapseColorScaleByDefault: K, projectionRotate: ut, rewindCoordinatesInMapData: ft, numberDisplayOptions: ce, graphDownload: R ? Ct : void 0, dataDownload: ue ? a.map(ko).filter(Do).length > 0 ? a.map(jo).filter(bo) : a.filter(xo) : null }) : /* @__PURE__ */ t.jsx("div", { style: {
429
450
  height: `${Math.max(p, u || (y ? p ? (g || Q) * y > p ? (g || Q) * y : p : (g || Q) * y : Ie))}px`
430
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Ft, { "aria-label": "Loading graph" }) }) }), e[56] = he, e[57] = oe, e[58] = h, e[59] = K, e[60] = R, e[61] = w, e[62] = mt, e[63] = n, e[64] = ue, e[65] = I, e[66] = dt, e[67] = ot, e[68] = V, e[69] = u, e[70] = B, e[71] = F, e[72] = me, e[73] = Se, e[74] = Ne, e[75] = U, e[76] = f?.mapBorderColor, e[77] = f?.mapBorderWidth, e[78] = Ee, e[79] = Oe, e[80] = fe, e[81] = p, e[82] = ce, e[83] = ne, e[84] = q, e[85] = gt, e[86] = pt, e[87] = y, e[88] = c, e[89] = ht, e[90] = de, e[91] = M, e[92] = o, e[93] = Me, e[94] = r, e[95] = Ie, e[96] = Q, e[97] = x, e[98] = s.dateFormat, e[99] = s.enabled, e[100] = je, e[101] = d, e[102] = g, e[103] = ut, e[104] = Be, e[105] = _, e[106] = E, e[107] = ve) : ve = e[107];
451
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Ft, { "aria-label": "Loading graph" }) }) }), e[56] = he, e[57] = oe, e[58] = h, e[59] = K, e[60] = q, e[61] = N, e[62] = pt, e[63] = a, e[64] = ue, e[65] = W, e[66] = mt, e[67] = ot, e[68] = R, e[69] = u, e[70] = P, e[71] = $, e[72] = me, e[73] = Me, e[74] = Ne, e[75] = V, e[76] = f?.mapBorderColor, e[77] = f?.mapBorderWidth, e[78] = Be, e[79] = Se, e[80] = fe, e[81] = p, e[82] = ce, e[83] = ne, e[84] = X, e[85] = yt, e[86] = ut, e[87] = y, e[88] = c, e[89] = ft, e[90] = de, e[91] = B, e[92] = o, e[93] = Oe, e[94] = i, e[95] = Ie, e[96] = Q, e[97] = x, e[98] = s.dateFormat, e[99] = s.enabled, e[100] = De, e[101] = d, e[102] = g, e[103] = ht, e[104] = Ee, e[105] = L, e[106] = z, e[107] = ve) : ve = e[107];
431
452
  let xe;
432
- e[108] !== h?.footnote || e[109] !== h?.source || e[110] !== S || e[111] !== T || e[112] !== r?.footnote || e[113] !== r?.source || e[114] !== g ? (xe = T || S ? /* @__PURE__ */ t.jsx(po, { styles: {
433
- footnote: r?.footnote,
434
- source: r?.source
453
+ e[108] !== h?.footnote || e[109] !== h?.source || e[110] !== S || e[111] !== E || e[112] !== i?.footnote || e[113] !== i?.source || e[114] !== g ? (xe = E || S ? /* @__PURE__ */ t.jsx(po, { styles: {
454
+ footnote: i?.footnote,
455
+ source: i?.source
435
456
  }, classNames: {
436
457
  footnote: h?.footnote,
437
458
  source: h?.source
438
- }, sources: T, footNote: S, width: g }) : null, e[108] = h?.footnote, e[109] = h?.source, e[110] = S, e[111] = T, e[112] = r?.footnote, e[113] = r?.source, e[114] = g, e[115] = xe) : xe = e[115];
459
+ }, sources: E, footNote: S, width: g }) : null, e[108] = h?.footnote, e[109] = h?.source, e[110] = S, e[111] = E, e[112] = i?.footnote, e[113] = i?.source, e[114] = g, e[115] = xe) : xe = e[115];
439
460
  let st;
440
- return e[116] !== Z || e[117] !== W || e[118] !== C || e[119] !== u || e[120] !== a || e[121] !== p || e[122] !== De || e[123] !== y || e[124] !== bt || e[125] !== Dt || e[126] !== ge || e[127] !== ye || e[128] !== ve || e[129] !== xe || e[130] !== x || e[131] !== g ? (st = /* @__PURE__ */ t.jsxs(yo, { className: bt, style: Dt, id: C, ref: kt, "aria-label": Z, backgroundColor: W, theme: x, language: a, minHeight: p, width: g, height: u, relativeHeight: y, padding: De, children: [
461
+ return e[116] !== j || e[117] !== _ || e[118] !== M || e[119] !== u || e[120] !== n || e[121] !== p || e[122] !== je || e[123] !== y || e[124] !== jt || e[125] !== Dt || e[126] !== ge || e[127] !== ye || e[128] !== ve || e[129] !== xe || e[130] !== x || e[131] !== g ? (st = /* @__PURE__ */ t.jsxs(yo, { className: jt, style: Dt, id: M, ref: Ct, "aria-label": j, backgroundColor: _, theme: x, language: n, minHeight: p, width: g, height: u, relativeHeight: y, padding: je, children: [
441
462
  ge,
442
463
  ye,
443
464
  ve,
444
465
  xe
445
- ] }), e[116] = Z, e[117] = W, e[118] = C, e[119] = u, e[120] = a, e[121] = p, e[122] = De, e[123] = y, e[124] = bt, e[125] = Dt, e[126] = ge, e[127] = ye, e[128] = ve, e[129] = xe, e[130] = x, e[131] = g, e[132] = st) : st = e[132], st;
466
+ ] }), e[116] = j, e[117] = _, e[118] = M, e[119] = u, e[120] = n, e[121] = p, e[122] = je, e[123] = y, e[124] = jt, e[125] = Dt, e[126] = ge, e[127] = ye, e[128] = ve, e[129] = xe, e[130] = x, e[131] = g, e[132] = st) : st = e[132], st;
446
467
  }
447
468
  function xo(m) {
448
469
  return m !== void 0;
@@ -450,10 +471,10 @@ function xo(m) {
450
471
  function bo(m) {
451
472
  return m !== void 0;
452
473
  }
453
- function Do(m) {
474
+ function jo(m) {
454
475
  return m.data;
455
476
  }
456
- function jo(m) {
477
+ function Do(m) {
457
478
  return m !== void 0;
458
479
  }
459
480
  function ko(m) {
@@ -468,7 +489,7 @@ function Co(m) {
468
489
  function No(m, e) {
469
490
  return m - e;
470
491
  }
471
- function So(m) {
492
+ function Mo(m) {
472
493
  return m.date;
473
494
  }
474
495
  export {