@undp/data-viz 2.1.3 → 2.1.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.
Files changed (118) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +279 -272
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BulletChart.cjs +1 -1
  15. package/dist/BulletChart.cjs.map +1 -1
  16. package/dist/BulletChart.js +298 -287
  17. package/dist/BulletChart.js.map +1 -1
  18. package/dist/ButterflyChart.cjs +1 -1
  19. package/dist/ButterflyChart.cjs.map +1 -1
  20. package/dist/ButterflyChart.js +224 -217
  21. package/dist/ButterflyChart.js.map +1 -1
  22. package/dist/CirclePackingGraph.cjs +1 -1
  23. package/dist/CirclePackingGraph.js +2 -2
  24. package/dist/DifferenceLineChart.cjs +1 -1
  25. package/dist/DifferenceLineChart.cjs.map +1 -1
  26. package/dist/DifferenceLineChart.js +404 -397
  27. package/dist/DifferenceLineChart.js.map +1 -1
  28. package/dist/DonutChart.cjs +1 -1
  29. package/dist/DonutChart.cjs.map +1 -1
  30. package/dist/DonutChart.js +42 -39
  31. package/dist/DonutChart.js.map +1 -1
  32. package/dist/DualAxisLineChart.cjs +1 -1
  33. package/dist/DualAxisLineChart.cjs.map +1 -1
  34. package/dist/DualAxisLineChart.js +320 -313
  35. package/dist/DualAxisLineChart.js.map +1 -1
  36. package/dist/DumbbellChart.cjs +1 -1
  37. package/dist/DumbbellChart.cjs.map +1 -1
  38. package/dist/DumbbellChart.js +298 -291
  39. package/dist/DumbbellChart.js.map +1 -1
  40. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  41. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  42. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  43. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  44. package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
  45. package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
  46. package/dist/{GraphEl-CRrAlbcr.js → GraphEl-oZwZiTHI.js} +3 -2
  47. package/dist/GraphEl-oZwZiTHI.js.map +1 -0
  48. package/dist/GriddedGraphs.cjs +1 -1
  49. package/dist/GriddedGraphs.js +1 -1
  50. package/dist/HeatMap.cjs +1 -1
  51. package/dist/HeatMap.cjs.map +1 -1
  52. package/dist/HeatMap.js +179 -172
  53. package/dist/HeatMap.js.map +1 -1
  54. package/dist/Histogram.cjs +1 -1
  55. package/dist/Histogram.js +1 -1
  56. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  57. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  58. package/dist/LineChartWithConfidenceInterval.js +368 -361
  59. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  60. package/dist/MultiLineAltChart.cjs +1 -1
  61. package/dist/MultiLineAltChart.cjs.map +1 -1
  62. package/dist/MultiLineAltChart.js +327 -320
  63. package/dist/MultiLineAltChart.js.map +1 -1
  64. package/dist/MultiLineChart.cjs +1 -1
  65. package/dist/MultiLineChart.cjs.map +1 -1
  66. package/dist/MultiLineChart.js +374 -367
  67. package/dist/MultiLineChart.js.map +1 -1
  68. package/dist/ParetoChart.cjs +1 -1
  69. package/dist/ParetoChart.cjs.map +1 -1
  70. package/dist/ParetoChart.js +385 -378
  71. package/dist/ParetoChart.js.map +1 -1
  72. package/dist/RadarChart.cjs +1 -1
  73. package/dist/RadarChart.cjs.map +1 -1
  74. package/dist/RadarChart.js +34 -33
  75. package/dist/RadarChart.js.map +1 -1
  76. package/dist/SankeyChart.cjs +1 -1
  77. package/dist/SankeyChart.cjs.map +1 -1
  78. package/dist/SankeyChart.js +176 -169
  79. package/dist/SankeyChart.js.map +1 -1
  80. package/dist/ScatterPlot.cjs +1 -1
  81. package/dist/ScatterPlot.cjs.map +1 -1
  82. package/dist/ScatterPlot.js +366 -359
  83. package/dist/ScatterPlot.js.map +1 -1
  84. package/dist/SimpleLineChart.cjs +1 -1
  85. package/dist/SimpleLineChart.cjs.map +1 -1
  86. package/dist/SimpleLineChart.js +285 -278
  87. package/dist/SimpleLineChart.js.map +1 -1
  88. package/dist/SingleGraphDashboard.cjs +1 -1
  89. package/dist/SingleGraphDashboard.js +1 -1
  90. package/dist/SlopeChart.cjs +1 -1
  91. package/dist/SlopeChart.cjs.map +1 -1
  92. package/dist/SlopeChart.js +243 -236
  93. package/dist/SlopeChart.js.map +1 -1
  94. package/dist/StripChart.cjs +1 -1
  95. package/dist/StripChart.cjs.map +1 -1
  96. package/dist/StripChart.js +293 -286
  97. package/dist/StripChart.js.map +1 -1
  98. package/dist/TreeMapGraph.cjs +1 -1
  99. package/dist/TreeMapGraph.cjs.map +1 -1
  100. package/dist/TreeMapGraph.js +222 -215
  101. package/dist/TreeMapGraph.js.map +1 -1
  102. package/dist/index-Blvf-Q3U.cjs +2 -0
  103. package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
  104. package/dist/index-D1RrKgK6.js +337 -0
  105. package/dist/index-D1RrKgK6.js.map +1 -0
  106. package/dist/index.cjs +1 -1
  107. package/dist/index.d.ts +2 -0
  108. package/dist/index.js +1 -1
  109. package/package.json +1 -1
  110. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  111. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  112. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  113. package/dist/GraphEl-BLMih7RN.cjs +0 -2
  114. package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
  115. package/dist/GraphEl-CRrAlbcr.js.map +0 -1
  116. package/dist/index-CF5hnGvG.cjs +0 -2
  117. package/dist/index-DPGq3eIL.js +0 -330
  118. package/dist/index-DPGq3eIL.js.map +0 -1
package/dist/AreaChart.js CHANGED
@@ -1,19 +1,19 @@
1
- import { c as ve, m as he, j as r } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as me, useState as Kt, useEffect as Ae } from "react";
3
- import { p as L, f as Oe } from "./parse-DlCRUFh_.js";
4
- import { s as ye } from "./index-CeVNqhMO.js";
5
- import { o as je } from "./index-BZQYSqar.js";
6
- import { n as Le } from "./numberFormattingFunction-14YCbkN2.js";
1
+ import { c as Ce, m as ve, j as a } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as pe, useState as Qt, useEffect as we } from "react";
3
+ import { p as D, f as Oe } from "./parse-DlCRUFh_.js";
4
+ import { s as Ae } from "./index-CeVNqhMO.js";
5
+ import { o as Le } from "./index-BZQYSqar.js";
6
+ import { n as je } from "./numberFormattingFunction-14YCbkN2.js";
7
7
  import { T as Se } from "./Tooltip-Dj5eVppQ.js";
8
- import { c as le } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
+ import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
9
  import { C as De, g as $e, A as ke } from "./customArea-BUhPiPT6.js";
10
10
  import { A as Te } from "./AxisTitle-jeI7am8o.js";
11
11
  import { A as Ne } from "./Axis-CRyfcLjc.js";
12
12
  import { X as Me } from "./XTicksAndGridLines-CObVFSm4.js";
13
13
  import { a as He } from "./ReferenceLine-2XCwHXQ4.js";
14
14
  import { Y as Re } from "./YTicksAndGridLines-Blepl7XF.js";
15
- import { H as Fe } from "./index-SKgJALZg.js";
16
- import { t as Ye } from "./time-BUL-dwnK.js";
15
+ import { H as Ye } from "./index-SKgJALZg.js";
16
+ import { t as Fe } from "./time-BUL-dwnK.js";
17
17
  import { a as Ve } from "./linear-BqltdMeF.js";
18
18
  import { a as Ge } from "./area-B6r7cv2o.js";
19
19
  import { c as Pe } from "./line-DFlZsxI1.js";
@@ -22,256 +22,256 @@ import { s as Be } from "./select-DKy99ogv.js";
22
22
  import { a as ze } from "./init-BhZylTFx.js";
23
23
  import { p as Ue } from "./pointer-CWRWOsrb.js";
24
24
  import { u as qe } from "./use-in-view-Cxa7y1TH.js";
25
- import { m as ce } from "./proxy-BxkFHwUw.js";
25
+ import { m as fe } from "./proxy-BxkFHwUw.js";
26
26
  import { A as Je } from "./index-BqfRwk1n.js";
27
27
  import { GraphFooter as Ke } from "./GraphFooter.js";
28
28
  import { GraphHeader as Qe } from "./GraphHeader.js";
29
29
  import { ColorLegend as Ze } from "./ColorLegend.js";
30
30
  import { Colors as _e } from "./Colors.js";
31
- import { E as to } from "./EmptyState-BZo1BbAn.js";
31
+ import { E as to } from "./EmptyState-C7ZXkZWd.js";
32
32
  import { a as eo, G as oo } from "./GraphContainer-CRqzdKu2.js";
33
33
  function so(n) {
34
- const t = ve.c(133), {
35
- data: h,
36
- width: P,
37
- height: bt,
38
- colors: Ot,
34
+ const t = Ce.c(133), {
35
+ data: p,
36
+ width: I,
37
+ height: Lt,
38
+ colors: jt,
39
39
  dateFormat: i,
40
- noOfXTicks: Gt,
40
+ noOfXTicks: Pt,
41
41
  rightMargin: v,
42
42
  leftMargin: y,
43
- topMargin: jt,
44
- bottomMargin: Lt,
45
- yAxisTitle: X,
46
- tooltip: E,
47
- onSeriesMouseOver: st,
48
- highlightAreaSettings: it,
49
- refValues: nt,
50
- minValue: Pt,
51
- maxValue: rt,
52
- rtl: N,
53
- annotations: W,
54
- customHighlightAreaSettings: at,
55
- noOfYTicks: Xt,
56
- prefix: M,
57
- suffix: S,
58
- curveType: I,
59
- styles: u,
60
- classNames: g,
61
- precision: B,
62
- customLayers: H,
43
+ topMargin: St,
44
+ bottomMargin: Dt,
45
+ yAxisTitle: B,
46
+ tooltip: z,
47
+ onSeriesMouseOver: rt,
48
+ highlightAreaSettings: at,
49
+ refValues: lt,
50
+ minValue: Xt,
51
+ maxValue: ct,
52
+ rtl: Y,
53
+ annotations: U,
54
+ customHighlightAreaSettings: mt,
55
+ noOfYTicks: Et,
56
+ prefix: F,
57
+ suffix: $,
58
+ curveType: q,
59
+ styles: g,
60
+ classNames: x,
61
+ precision: J,
62
+ customLayers: V,
63
63
  animate: c
64
- } = n, Et = me(null);
65
- let lt;
66
- t[0] !== c.amount || t[1] !== c.once ? (lt = {
64
+ } = n, Wt = pe(null);
65
+ let ft;
66
+ t[0] !== c.amount || t[1] !== c.once ? (ft = {
67
67
  once: c.once,
68
68
  amount: c.amount
69
- }, t[0] = c.amount, t[1] = c.once, t[2] = lt) : lt = t[2];
70
- const p = qe(Et, lt), St = I === "linear" ? Pe : I === "step" ? Xe : I === "stepAfter" ? Ee : I === "stepBefore" ? We : Ie, [C, Dt] = Kt(void 0), [z, Wt] = Kt(void 0), [ct, It] = Kt(void 0), $t = X ? y + 30 : y;
69
+ }, t[0] = c.amount, t[1] = c.once, t[2] = ft) : ft = t[2];
70
+ const u = qe(Wt, ft), $t = q === "linear" ? Pe : q === "step" ? Xe : q === "stepAfter" ? Ee : q === "stepBefore" ? We : Ie, [C, kt] = Qt(void 0), [K, It] = Qt(void 0), [pt, Bt] = Qt(void 0), Tt = B ? y + 30 : y;
71
71
  let m;
72
- t[3] !== Lt || t[4] !== v || t[5] !== $t || t[6] !== jt ? (m = {
73
- top: jt,
74
- bottom: Lt,
75
- left: $t,
72
+ t[3] !== Dt || t[4] !== v || t[5] !== Tt || t[6] !== St ? (m = {
73
+ top: St,
74
+ bottom: Dt,
75
+ left: Tt,
76
76
  right: v
77
- }, t[3] = Lt, t[4] = v, t[5] = $t, t[6] = jt, t[7] = m) : m = t[7];
78
- const s = m, mt = me(null);
79
- let R;
80
- t[8] !== i ? (R = (o) => ({
77
+ }, t[3] = Dt, t[4] = v, t[5] = Tt, t[6] = St, t[7] = m) : m = t[7];
78
+ const s = m, ut = pe(null);
79
+ let G;
80
+ t[8] !== i ? (G = (o) => ({
81
81
  ...o,
82
- date: L(`${o.date}`, i, /* @__PURE__ */ new Date())
83
- }), t[8] = i, t[9] = R) : R = t[9];
84
- const d = je(h.map(R), ["date"], ["asc"]);
85
- let F;
86
- if (t[10] !== i || t[11] !== it) {
82
+ date: D(`${o.date}`, i, /* @__PURE__ */ new Date())
83
+ }), t[8] = i, t[9] = G) : G = t[9];
84
+ const h = Le(p.map(G), ["date"], ["asc"]);
85
+ let b;
86
+ if (t[10] !== i || t[11] !== at) {
87
87
  let o;
88
88
  t[13] !== i ? (o = (e) => ({
89
89
  ...e,
90
- coordinates: [e.coordinates[0] === null ? null : L(`${e.coordinates[0]}`, i, /* @__PURE__ */ new Date()), e.coordinates[1] === null ? null : L(`${e.coordinates[1]}`, i, /* @__PURE__ */ new Date())]
91
- }), t[13] = i, t[14] = o) : o = t[14], F = it.map(o), t[10] = i, t[11] = it, t[12] = F;
90
+ coordinates: [e.coordinates[0] === null ? null : D(`${e.coordinates[0]}`, i, /* @__PURE__ */ new Date()), e.coordinates[1] === null ? null : D(`${e.coordinates[1]}`, i, /* @__PURE__ */ new Date())]
91
+ }), t[13] = i, t[14] = o) : o = t[14], b = at.map(o), t[10] = i, t[11] = at, t[12] = b;
92
92
  } else
93
- F = t[12];
94
- const ft = F;
95
- let U;
96
- if (t[15] !== at || t[16] !== i) {
93
+ b = t[12];
94
+ const gt = b;
95
+ let Q;
96
+ if (t[15] !== mt || t[16] !== i) {
97
97
  let o;
98
98
  t[18] !== i ? (o = (e) => ({
99
99
  ...e,
100
- coordinates: e.coordinates.map((w, G) => G % 2 === 0 ? L(`${w}`, i, /* @__PURE__ */ new Date()) : w)
101
- }), t[18] = i, t[19] = o) : o = t[19], U = at.map(o), t[15] = at, t[16] = i, t[17] = U;
100
+ coordinates: e.coordinates.map((w, W) => W % 2 === 0 ? D(`${w}`, i, /* @__PURE__ */ new Date()) : w)
101
+ }), t[18] = i, t[19] = o) : o = t[19], Q = mt.map(o), t[15] = mt, t[16] = i, t[17] = Q;
102
102
  } else
103
- U = t[17];
104
- const Bt = U, zt = d[0].y.map((o, e) => d.map((w) => ({
103
+ Q = t[17];
104
+ const zt = Q, Ut = h[0].y.map((o, e) => h.map((w) => ({
105
105
  date: w.date,
106
- y0: e === 0 ? 0 : ye(w.y.filter((G, Jt) => Jt < e)),
107
- y1: ye(w.y.filter((G, Jt) => Jt <= e))
108
- }))), f = P - s.left - s.right, x = bt - s.top - s.bottom, Ut = d[0].date, kt = d[d.length - 1].date, A = le(Pt) ? 0 : Pt;
109
- let Y;
110
- t[20] !== h || t[21] !== rt ? (Y = le(rt) ? Math.max(...h.map(po)) : rt, t[20] = h, t[21] = rt, t[22] = Y) : Y = t[22];
111
- const Tt = Y, a = Ye().domain([Ut, kt]).range([0, f]), l = Ve().domain([A, Tt]).range([x, 0]).nice(), pt = Ge().x((o) => a(o.date)).y0((o) => l(o.y0)).y1((o) => l(o.y1)).curve(St), D = l.ticks(Xt), Nt = a.ticks(Gt);
112
- Ae(() => {
106
+ y0: e === 0 ? 0 : Ae(w.y.filter((W, Kt) => Kt < e)),
107
+ y1: Ae(w.y.filter((W, Kt) => Kt <= e))
108
+ }))), f = I - s.left - s.right, d = Lt - s.top - s.bottom, qt = h[0].date, Nt = h[h.length - 1].date, A = me(Xt) ? 0 : Xt;
109
+ let P;
110
+ t[20] !== p || t[21] !== ct ? (P = me(ct) ? Math.max(...p.map(po)) : ct, t[20] = p, t[21] = ct, t[22] = P) : P = t[22];
111
+ const Mt = P, r = Fe().domain([qt, Nt]).range([0, f]), l = Ve().domain([A, Mt]).range([d, 0]).nice(), xt = Ge().x((o) => r(o.date)).y0((o) => l(o.y0)).y1((o) => l(o.y1)).curve($t), k = l.ticks(Et), Ht = r.ticks(Pt);
112
+ we(() => {
113
113
  const o = (w) => {
114
- const G = d[ze(d.map(fo), a.invert(Ue(w)[0]), 0)];
115
- Dt(G || d[d.length - 1]), st?.(G || d[d.length - 1]), It(w.clientY), Wt(w.clientX);
114
+ const W = h[ze(h.map(fo), r.invert(Ue(w)[0]), 0)];
115
+ kt(W || h[h.length - 1]), rt?.(W || h[h.length - 1]), Bt(w.clientY), It(w.clientX);
116
116
  }, e = () => {
117
- Dt(void 0), Wt(void 0), It(void 0), st?.(void 0);
117
+ kt(void 0), It(void 0), Bt(void 0), rt?.(void 0);
118
118
  };
119
- Be(mt.current).on("mousemove", o).on("mouseout", e), st?.(void 0);
120
- }, [a, d, st]);
121
- let V;
122
- t[23] !== c || t[24] !== x || t[25] !== f || t[26] !== ft || t[27] !== p || t[28] !== a ? (V = /* @__PURE__ */ r.jsx(Fe, { areaSettings: ft, width: f, height: x, scale: a, animate: c, isInView: p }), t[23] = c, t[24] = x, t[25] = f, t[26] = ft, t[27] = p, t[28] = a, t[29] = V) : V = t[29];
123
- const ut = u?.yAxis?.gridLines, q = u?.yAxis?.labels;
124
- let J;
125
- t[30] !== ut || t[31] !== q ? (J = {
126
- gridLines: ut,
127
- labels: q
128
- }, t[30] = ut, t[31] = q, t[32] = J) : J = t[32];
129
- const gt = g?.yAxis?.gridLines, xt = g?.yAxis?.labels;
130
- let K;
131
- t[33] !== gt || t[34] !== xt ? (K = {
132
- gridLines: gt,
133
- labels: xt
134
- }, t[33] = gt, t[34] = xt, t[35] = K) : K = t[35];
135
- const dt = l(A < 0 ? 0 : A), ht = l(A < 0 ? 0 : A), yt = 0 - y, Q = f + s.right, vt = A < 0 ? 0 : A;
136
- let b;
137
- t[36] !== B || t[37] !== M || t[38] !== S || t[39] !== vt ? (b = Le(vt, "NA", B, M, S), t[36] = B, t[37] = M, t[38] = S, t[39] = vt, t[40] = b) : b = t[40];
138
- const Z = 0 - y, qt = Tt < 0 ? "1em" : -5, _ = l(A < 0 ? 0 : A);
119
+ Be(ut.current).on("mousemove", o).on("mouseout", e), rt?.(void 0);
120
+ }, [r, h, rt]);
121
+ let X;
122
+ t[23] !== c || t[24] !== d || t[25] !== f || t[26] !== gt || t[27] !== u || t[28] !== r ? (X = /* @__PURE__ */ a.jsx(Ye, { areaSettings: gt, width: f, height: d, scale: r, animate: c, isInView: u }), t[23] = c, t[24] = d, t[25] = f, t[26] = gt, t[27] = u, t[28] = r, t[29] = X) : X = t[29];
123
+ const dt = g?.yAxis?.gridLines, Z = g?.yAxis?.labels;
124
+ let _;
125
+ t[30] !== dt || t[31] !== Z ? (_ = {
126
+ gridLines: dt,
127
+ labels: Z
128
+ }, t[30] = dt, t[31] = Z, t[32] = _) : _ = t[32];
129
+ const ht = x?.yAxis?.gridLines, yt = x?.yAxis?.labels;
139
130
  let tt;
140
- t[41] !== Z || t[42] !== qt || t[43] !== _ ? (tt = {
141
- x: Z,
142
- dx: 0,
143
- dy: qt,
144
- y: _
145
- }, t[41] = Z, t[42] = qt, t[43] = _, t[44] = tt) : tt = t[44];
146
- const At = g?.xAxis?.axis, Mt = g?.yAxis?.labels;
131
+ t[33] !== ht || t[34] !== yt ? (tt = {
132
+ gridLines: ht,
133
+ labels: yt
134
+ }, t[33] = ht, t[34] = yt, t[35] = tt) : tt = t[35];
135
+ const vt = l(A < 0 ? 0 : A), At = l(A < 0 ? 0 : A), Ct = 0 - y, et = f + s.right, wt = A < 0 ? 0 : A;
147
136
  let O;
148
- t[45] !== At || t[46] !== Mt ? (O = {
149
- axis: At,
150
- label: Mt
151
- }, t[45] = At, t[46] = Mt, t[47] = O) : O = t[47];
152
- const et = u?.xAxis?.axis, Ct = u?.yAxis?.labels;
153
- let $;
154
- t[48] !== et || t[49] !== Ct ? ($ = {
155
- axis: et,
156
- label: Ct
157
- }, t[48] = et, t[49] = Ct, t[50] = $) : $ = t[50];
137
+ t[36] !== J || t[37] !== F || t[38] !== $ || t[39] !== wt ? (O = je(wt, "NA", J, F, $), t[36] = J, t[37] = F, t[38] = $, t[39] = wt, t[40] = O) : O = t[40];
138
+ const ot = 0 - y, Jt = Mt < 0 ? "1em" : -5, st = l(A < 0 ? 0 : A);
139
+ let it;
140
+ t[41] !== ot || t[42] !== Jt || t[43] !== st ? (it = {
141
+ x: ot,
142
+ dx: 0,
143
+ dy: Jt,
144
+ y: st
145
+ }, t[41] = ot, t[42] = Jt, t[43] = st, t[44] = it) : it = t[44];
146
+ const bt = x?.xAxis?.axis, Rt = x?.yAxis?.labels;
147
+ let L;
148
+ t[45] !== bt || t[46] !== Rt ? (L = {
149
+ axis: bt,
150
+ label: Rt
151
+ }, t[45] = bt, t[46] = Rt, t[47] = L) : L = t[47];
152
+ const nt = g?.xAxis?.axis, Ot = g?.yAxis?.labels;
153
+ let T;
154
+ t[48] !== nt || t[49] !== Ot ? (T = {
155
+ axis: nt,
156
+ label: Ot
157
+ }, t[48] = nt, t[49] = Ot, t[50] = T) : T = t[50];
158
158
  let j;
159
- t[51] !== dt || t[52] !== ht || t[53] !== yt || t[54] !== Q || t[55] !== b || t[56] !== tt || t[57] !== O || t[58] !== $ ? (j = /* @__PURE__ */ r.jsx(Ne, { y1: dt, y2: ht, x1: yt, x2: Q, label: b, labelPos: tt, classNames: O, styles: $ }), t[51] = dt, t[52] = ht, t[53] = yt, t[54] = Q, t[55] = b, t[56] = tt, t[57] = O, t[58] = $, t[59] = j) : j = t[59];
160
- const k = 0 - y - 15, T = x / 2, ot = u?.yAxis?.title, Ht = g?.yAxis?.title;
161
- let wt;
162
- t[60] !== k || t[61] !== T || t[62] !== ot || t[63] !== Ht || t[64] !== X ? (wt = /* @__PURE__ */ r.jsx(Te, { x: k, y: T, style: ot, className: Ht, text: X, rotate90: !0 }), t[60] = k, t[61] = T, t[62] = ot, t[63] = Ht, t[64] = X, t[65] = wt) : wt = t[65];
163
- let Qt;
164
- t[66] !== i ? (Qt = (o) => Oe(o, i), t[66] = i, t[67] = Qt) : Qt = t[67];
165
- const Ce = Nt.map(Qt), we = Nt.map((o) => a(o)), fe = u?.xAxis?.gridLines, pe = u?.xAxis?.labels;
166
- let Zt;
167
- t[68] !== fe || t[69] !== pe ? (Zt = {
168
- gridLines: fe,
169
- labels: pe
170
- }, t[68] = fe, t[69] = pe, t[70] = Zt) : Zt = t[70];
171
- const ue = g?.xAxis?.gridLines;
172
- let Rt;
173
- t[71] !== ue ? (Rt = he("opacity-0", ue), t[71] = ue, t[72] = Rt) : Rt = t[72];
174
- const ge = g?.xAxis?.labels;
159
+ t[51] !== vt || t[52] !== At || t[53] !== Ct || t[54] !== et || t[55] !== O || t[56] !== it || t[57] !== L || t[58] !== T ? (j = /* @__PURE__ */ a.jsx(Ne, { y1: vt, y2: At, x1: Ct, x2: et, label: O, labelPos: it, classNames: L, styles: T }), t[51] = vt, t[52] = At, t[53] = Ct, t[54] = et, t[55] = O, t[56] = it, t[57] = L, t[58] = T, t[59] = j) : j = t[59];
160
+ const N = 0 - y - 15, M = d / 2, H = g?.yAxis?.title, R = x?.yAxis?.title;
161
+ let S;
162
+ t[60] !== N || t[61] !== M || t[62] !== H || t[63] !== R || t[64] !== B ? (S = /* @__PURE__ */ a.jsx(Te, { x: N, y: M, style: H, className: R, text: B, rotate90: !0 }), t[60] = N, t[61] = M, t[62] = H, t[63] = R, t[64] = B, t[65] = S) : S = t[65];
163
+ let E;
164
+ t[66] !== i ? (E = (o) => Oe(o, i), t[66] = i, t[67] = E) : E = t[67];
165
+ const Zt = Ht.map(E), _t = Ht.map((o) => r(o)), ue = g?.xAxis?.gridLines, ge = g?.xAxis?.labels;
166
+ let te;
167
+ t[68] !== ue || t[69] !== ge ? (te = {
168
+ gridLines: ue,
169
+ labels: ge
170
+ }, t[68] = ue, t[69] = ge, t[70] = te) : te = t[70];
171
+ const xe = x?.xAxis?.gridLines;
172
+ let Yt;
173
+ t[71] !== xe ? (Yt = ve("opacity-0", xe), t[71] = xe, t[72] = Yt) : Yt = t[72];
174
+ const de = x?.xAxis?.labels;
175
175
  let Ft;
176
- t[73] !== ge ? (Ft = he("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[8px] sm:text-[9px] md:text-[10px] lg:text-xs", ge), t[73] = ge, t[74] = Ft) : Ft = t[74];
177
- let _t;
178
- t[75] !== Rt || t[76] !== Ft ? (_t = {
179
- gridLines: Rt,
176
+ t[73] !== de ? (Ft = ve("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[8px] sm:text-[9px] md:text-[10px] lg:text-xs", de), t[73] = de, t[74] = Ft) : Ft = t[74];
177
+ let ee;
178
+ t[75] !== Yt || t[76] !== Ft ? (ee = {
179
+ gridLines: Yt,
180
180
  labels: Ft
181
- }, t[75] = Rt, t[76] = Ft, t[77] = _t) : _t = t[77];
182
- let te;
183
- t[78] !== H ? (te = H.filter(lo).map(ao), t[78] = H, t[79] = te) : te = t[79];
184
- const xe = ce, de = zt.map((o, e) => /* @__PURE__ */ r.jsx(ce.path, { d: pt(o), exit: {
181
+ }, t[75] = Yt, t[76] = Ft, t[77] = ee) : ee = t[77];
182
+ let oe;
183
+ t[78] !== V ? (oe = V.filter(lo).map(ao), t[78] = V, t[79] = oe) : oe = t[79];
184
+ const he = fe, ye = Ut.map((o, e) => /* @__PURE__ */ a.jsx(fe.path, { d: xt(o), exit: {
185
185
  opacity: 0,
186
186
  transition: {
187
187
  duration: c.duration
188
188
  }
189
189
  }, variants: {
190
190
  initial: {
191
- d: pt(o.map(ro)),
191
+ d: xt(o.map(ro)),
192
192
  opacity: 0
193
193
  },
194
194
  whileInView: {
195
- d: pt(o),
195
+ d: xt(o),
196
196
  opacity: 1,
197
197
  transition: {
198
198
  duration: c.duration
199
199
  }
200
200
  }
201
- }, initial: "initial", animate: p ? "whileInView" : "initial", style: {
202
- fill: Ot[e],
201
+ }, initial: "initial", animate: u ? "whileInView" : "initial", style: {
202
+ fill: jt[e],
203
203
  opacity: 0.8
204
204
  } }, e));
205
- let Yt;
206
- t[80] !== g?.mouseOverLine || t[81] !== x || t[82] !== C || t[83] !== u?.mouseOverLine || t[84] !== a ? (Yt = C ? /* @__PURE__ */ r.jsx("line", { y1: 0, y2: x, x1: a(C.date), x2: a(C.date), className: he("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", g?.mouseOverLine), style: u?.mouseOverLine }) : null, t[80] = g?.mouseOverLine, t[81] = x, t[82] = C, t[83] = u?.mouseOverLine, t[84] = a, t[85] = Yt) : Yt = t[85];
207
- let ee;
208
- t[86] !== xe.g || t[87] !== de || t[88] !== Yt ? (ee = /* @__PURE__ */ r.jsxs(xe.g, { children: [
209
- de,
210
- Yt
211
- ] }), t[86] = xe.g, t[87] = de, t[88] = Yt, t[89] = ee) : ee = t[89];
212
- let oe;
213
- t[90] !== c || t[91] !== f || t[92] !== p || t[93] !== y || t[94] !== s.right || t[95] !== nt || t[96] !== l ? (oe = nt ? /* @__PURE__ */ r.jsx(r.Fragment, { children: nt.map((o, e) => /* @__PURE__ */ r.jsx(He, { text: o.text, color: o.color, y: l(o.value), x1: 0 - y, x2: f + s.right, classNames: o.classNames, styles: o.styles, animate: c, isInView: p }, e)) }) : null, t[90] = c, t[91] = f, t[92] = p, t[93] = y, t[94] = s.right, t[95] = nt, t[96] = l, t[97] = oe) : oe = t[97];
214
205
  let Vt;
215
- if (t[98] !== c || t[99] !== W || t[100] !== i || t[101] !== f || t[102] !== p || t[103] !== s.right || t[104] !== N || t[105] !== a || t[106] !== l) {
206
+ t[80] !== x?.mouseOverLine || t[81] !== d || t[82] !== C || t[83] !== g?.mouseOverLine || t[84] !== r ? (Vt = C ? /* @__PURE__ */ a.jsx("line", { y1: 0, y2: d, x1: r(C.date), x2: r(C.date), className: ve("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", x?.mouseOverLine), style: g?.mouseOverLine }) : null, t[80] = x?.mouseOverLine, t[81] = d, t[82] = C, t[83] = g?.mouseOverLine, t[84] = r, t[85] = Vt) : Vt = t[85];
207
+ let se;
208
+ t[86] !== he.g || t[87] !== ye || t[88] !== Vt ? (se = /* @__PURE__ */ a.jsxs(he.g, { children: [
209
+ ye,
210
+ Vt
211
+ ] }), t[86] = he.g, t[87] = ye, t[88] = Vt, t[89] = se) : se = t[89];
212
+ let ie;
213
+ t[90] !== c || t[91] !== f || t[92] !== u || t[93] !== y || t[94] !== s.right || t[95] !== lt || t[96] !== l ? (ie = lt ? /* @__PURE__ */ a.jsx(a.Fragment, { children: lt.map((o, e) => /* @__PURE__ */ a.jsx(He, { text: o.text, color: o.color, y: l(o.value), x1: 0 - y, x2: f + s.right, classNames: o.classNames, styles: o.styles, animate: c, isInView: u }, e)) }) : null, t[90] = c, t[91] = f, t[92] = u, t[93] = y, t[94] = s.right, t[95] = lt, t[96] = l, t[97] = ie) : ie = t[97];
214
+ let Gt;
215
+ if (t[98] !== c || t[99] !== U || t[100] !== i || t[101] !== f || t[102] !== u || t[103] !== s.right || t[104] !== Y || t[105] !== r || t[106] !== l) {
216
216
  let o;
217
- t[108] !== c || t[109] !== i || t[110] !== f || t[111] !== p || t[112] !== s.right || t[113] !== N || t[114] !== a || t[115] !== l ? (o = (e, w) => {
218
- const G = $e({
219
- x: e.xCoordinate ? a(L(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
217
+ t[108] !== c || t[109] !== i || t[110] !== f || t[111] !== u || t[112] !== s.right || t[113] !== Y || t[114] !== r || t[115] !== l ? (o = (e, w) => {
218
+ const W = $e({
219
+ x: e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
220
220
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
221
221
  }, {
222
- x: e.xCoordinate ? a(L(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) : 0,
222
+ x: e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) : 0,
223
223
  y: e.yCoordinate ? l(e.yCoordinate) : 0
224
- }, le(e.connectorRadius) ? 3.5 : e.connectorRadius), Jt = e.showConnector ? {
225
- y1: G.y,
226
- x1: G.x,
224
+ }, me(e.connectorRadius) ? 3.5 : e.connectorRadius), Kt = e.showConnector ? {
225
+ y1: W.y,
226
+ x1: W.x,
227
227
  y2: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
228
- x2: e.xCoordinate ? a(L(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
229
- cx: e.xCoordinate ? a(L(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) : 0,
228
+ x2: e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
229
+ cx: e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) : 0,
230
230
  cy: e.yCoordinate ? l(e.yCoordinate) : 0,
231
- circleRadius: le(e.connectorRadius) ? 3.5 : e.connectorRadius,
231
+ circleRadius: me(e.connectorRadius) ? 3.5 : e.connectorRadius,
232
232
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
233
233
  } : void 0, be = {
234
234
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
235
- x: N ? 0 : e.xCoordinate ? a(L(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
236
- width: N ? e.xCoordinate ? a(L(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : f + s.right - (e.xCoordinate ? a(L(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
235
+ x: Y ? 0 : e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
236
+ width: Y ? e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : f + s.right - (e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
237
237
  maxWidth: e.maxWidth,
238
238
  fontWeight: e.fontWeight,
239
239
  align: e.align
240
240
  };
241
- return /* @__PURE__ */ r.jsx(ke, { color: e.color, connectorsSettings: Jt, labelSettings: be, text: e.text, classNames: e.classNames, styles: e.styles, animate: c, isInView: p }, w);
242
- }, t[108] = c, t[109] = i, t[110] = f, t[111] = p, t[112] = s.right, t[113] = N, t[114] = a, t[115] = l, t[116] = o) : o = t[116], Vt = W.map(o), t[98] = c, t[99] = W, t[100] = i, t[101] = f, t[102] = p, t[103] = s.right, t[104] = N, t[105] = a, t[106] = l, t[107] = Vt;
241
+ return /* @__PURE__ */ a.jsx(ke, { color: e.color, connectorsSettings: Kt, labelSettings: be, text: e.text, classNames: e.classNames, styles: e.styles, animate: c, isInView: u }, w);
242
+ }, t[108] = c, t[109] = i, t[110] = f, t[111] = u, t[112] = s.right, t[113] = Y, t[114] = r, t[115] = l, t[116] = o) : o = t[116], Gt = U.map(o), t[98] = c, t[99] = U, t[100] = i, t[101] = f, t[102] = u, t[103] = s.right, t[104] = Y, t[105] = r, t[106] = l, t[107] = Gt;
243
243
  } else
244
- Vt = t[107];
245
- let se;
246
- t[117] !== Vt ? (se = /* @__PURE__ */ r.jsx("g", { children: Vt }), t[117] = Vt, t[118] = se) : se = t[118];
247
- let ie;
248
- t[119] !== H ? (ie = H.filter(no).map(io), t[119] = H, t[120] = ie) : ie = t[120];
244
+ Gt = t[107];
249
245
  let ne;
250
- t[121] === Symbol.for("react.memo_cache_sentinel") ? (ne = {
251
- fill: "none",
252
- pointerEvents: "all"
253
- }, t[121] = ne) : ne = t[121];
246
+ t[117] !== Gt ? (ne = /* @__PURE__ */ a.jsx("g", { children: Gt }), t[117] = Gt, t[118] = ne) : ne = t[118];
254
247
  let re;
255
- t[122] !== mt || t[123] !== x || t[124] !== f ? (re = /* @__PURE__ */ r.jsx("rect", { ref: mt, style: ne, width: f, height: x }), t[122] = mt, t[123] = x, t[124] = f, t[125] = re) : re = t[125];
248
+ t[119] !== V ? (re = V.filter(no).map(io), t[119] = V, t[120] = re) : re = t[120];
256
249
  let ae;
257
- return t[126] !== g?.tooltip || t[127] !== z || t[128] !== ct || t[129] !== C || t[130] !== u?.tooltip || t[131] !== E ? (ae = C && E && z && ct ? /* @__PURE__ */ r.jsx(Se, { data: C, body: E, xPos: z, yPos: ct, backgroundStyle: u?.tooltip, className: g?.tooltip }) : null, t[126] = g?.tooltip, t[127] = z, t[128] = ct, t[129] = C, t[130] = u?.tooltip, t[131] = E, t[132] = ae) : ae = t[132], /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
258
- /* @__PURE__ */ r.jsx(ce.svg, { width: `${P}px`, height: `${bt}px`, viewBox: `0 0 ${P} ${bt}`, direction: "ltr", ref: Et, children: /* @__PURE__ */ r.jsx(Je, { children: /* @__PURE__ */ r.jsxs(ce.g, { transform: `translate(${s.left},${s.top})`, children: [
259
- V,
260
- /* @__PURE__ */ r.jsx(De, { animate: c, areaSettings: Bt, scaleX: a, scaleY: l, isInView: p }),
261
- /* @__PURE__ */ r.jsxs("g", { children: [
262
- /* @__PURE__ */ r.jsx(Re, { values: D.filter(mo), y: D.filter(co).map((o) => l(o)), x1: 0 - y, x2: f + s.right, styles: J, classNames: K, suffix: S, prefix: M, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: B }),
250
+ t[121] === Symbol.for("react.memo_cache_sentinel") ? (ae = {
251
+ fill: "none",
252
+ pointerEvents: "all"
253
+ }, t[121] = ae) : ae = t[121];
254
+ let le;
255
+ t[122] !== ut || t[123] !== d || t[124] !== f ? (le = /* @__PURE__ */ a.jsx("rect", { ref: ut, style: ae, width: f, height: d }), t[122] = ut, t[123] = d, t[124] = f, t[125] = le) : le = t[125];
256
+ let ce;
257
+ return t[126] !== x?.tooltip || t[127] !== K || t[128] !== pt || t[129] !== C || t[130] !== g?.tooltip || t[131] !== z ? (ce = C && z && K && pt ? /* @__PURE__ */ a.jsx(Se, { data: C, body: z, xPos: K, yPos: pt, backgroundStyle: g?.tooltip, className: x?.tooltip }) : null, t[126] = x?.tooltip, t[127] = K, t[128] = pt, t[129] = C, t[130] = g?.tooltip, t[131] = z, t[132] = ce) : ce = t[132], /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
258
+ /* @__PURE__ */ a.jsx(fe.svg, { width: `${I}px`, height: `${Lt}px`, viewBox: `0 0 ${I} ${Lt}`, direction: "ltr", ref: Wt, children: /* @__PURE__ */ a.jsx(Je, { children: /* @__PURE__ */ a.jsxs(fe.g, { transform: `translate(${s.left},${s.top})`, children: [
259
+ X,
260
+ /* @__PURE__ */ a.jsx(De, { animate: c, areaSettings: zt, scaleX: r, scaleY: l, isInView: u }),
261
+ /* @__PURE__ */ a.jsxs("g", { children: [
262
+ /* @__PURE__ */ a.jsx(Re, { values: k.filter(mo), y: k.filter(co).map((o) => l(o)), x1: 0 - y, x2: f + s.right, styles: _, classNames: tt, suffix: $, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: J }),
263
263
  j,
264
- wt
264
+ S
265
265
  ] }),
266
- /* @__PURE__ */ r.jsx(Me, { values: Ce, x: we, y1: 0, y2: x, styles: Zt, classNames: _t, suffix: S, prefix: M, labelType: "primary", showGridLines: !0, precision: B }),
267
- te,
268
- ee,
266
+ /* @__PURE__ */ a.jsx(Me, { values: Zt, x: _t, y1: 0, y2: d, styles: te, classNames: ee, suffix: $, prefix: F, labelType: "primary", showGridLines: !0, precision: J }),
269
267
  oe,
270
268
  se,
271
269
  ie,
272
- re
270
+ ne,
271
+ re,
272
+ le
273
273
  ] }) }) }),
274
- ae
274
+ ce
275
275
  ] });
276
276
  }
277
277
  function io(n) {
@@ -303,114 +303,121 @@ function fo(n) {
303
303
  return n.date;
304
304
  }
305
305
  function po(n) {
306
- return ye(n.y) || 0;
306
+ return Ae(n.y) || 0;
307
307
  }
308
308
  function Qo(n) {
309
- const t = ve.c(80), {
310
- data: h,
311
- graphTitle: P,
312
- colors: bt,
313
- sources: Ot,
309
+ const t = Ce.c(90), {
310
+ data: p,
311
+ graphTitle: I,
312
+ colors: Lt,
313
+ sources: jt,
314
314
  graphDescription: i,
315
- height: Gt,
315
+ height: Pt,
316
316
  width: v,
317
317
  footNote: y,
318
- noOfXTicks: jt,
319
- dateFormat: Lt,
320
- colorDomain: X,
321
- padding: E,
322
- backgroundColor: st,
323
- colorLegendTitle: it,
324
- leftMargin: nt,
325
- rightMargin: Pt,
326
- topMargin: rt,
327
- bottomMargin: N,
328
- highlightAreaSettings: W,
329
- tooltip: at,
330
- relativeHeight: Xt,
331
- onSeriesMouseOver: M,
332
- refValues: S,
333
- graphID: I,
334
- minValue: u,
335
- maxValue: g,
336
- graphDownload: B,
337
- dataDownload: H,
318
+ noOfXTicks: St,
319
+ dateFormat: Dt,
320
+ colorDomain: B,
321
+ padding: z,
322
+ backgroundColor: rt,
323
+ colorLegendTitle: at,
324
+ leftMargin: lt,
325
+ rightMargin: Xt,
326
+ topMargin: ct,
327
+ bottomMargin: Y,
328
+ highlightAreaSettings: U,
329
+ tooltip: mt,
330
+ relativeHeight: Et,
331
+ onSeriesMouseOver: F,
332
+ refValues: $,
333
+ graphID: q,
334
+ minValue: g,
335
+ maxValue: x,
336
+ graphDownload: J,
337
+ dataDownload: V,
338
338
  showColorScale: c,
339
- language: Et,
340
- minHeight: lt,
341
- annotations: p,
342
- customHighlightAreaSettings: St,
339
+ language: Wt,
340
+ minHeight: ft,
341
+ annotations: u,
342
+ customHighlightAreaSettings: $t,
343
343
  theme: C,
344
- ariaLabel: Dt,
345
- yAxisTitle: z,
346
- noOfYTicks: Wt,
347
- prefix: ct,
348
- suffix: It,
349
- curveType: $t,
344
+ ariaLabel: kt,
345
+ yAxisTitle: K,
346
+ noOfYTicks: It,
347
+ prefix: pt,
348
+ suffix: Bt,
349
+ curveType: Tt,
350
350
  styles: m,
351
351
  classNames: s,
352
- precision: mt,
353
- customLayers: R,
354
- animate: d
355
- } = n, F = bt === void 0 ? _e.light.categoricalColors.colors : bt, ft = jt === void 0 ? 10 : jt, U = Lt === void 0 ? "yyyy" : Lt, Bt = st === void 0 ? !1 : st, zt = nt === void 0 ? 50 : nt, f = Pt === void 0 ? 20 : Pt, x = rt === void 0 ? 20 : rt, Ut = N === void 0 ? 25 : N;
356
- let kt;
357
- t[0] !== W ? (kt = W === void 0 ? [] : W, t[0] = W, t[1] = kt) : kt = t[1];
358
- const A = kt;
359
- let Y;
360
- t[2] !== S ? (Y = S === void 0 ? [] : S, t[2] = S, t[3] = Y) : Y = t[3];
361
- const Tt = Y, a = B === void 0 ? !1 : B, l = H === void 0 ? !1 : H, pt = c === void 0 ? !0 : c, D = Et === void 0 ? "en" : Et, Nt = lt === void 0 ? 0 : lt;
362
- let V;
363
- t[4] !== p ? (V = p === void 0 ? [] : p, t[4] = p, t[5] = V) : V = t[5];
364
- const ut = V;
365
- let q;
366
- t[6] !== St ? (q = St === void 0 ? [] : St, t[6] = St, t[7] = q) : q = t[7];
367
- const J = q, gt = C === void 0 ? "light" : C, xt = Wt === void 0 ? 5 : Wt, K = ct === void 0 ? "" : ct, dt = It === void 0 ? "" : It, ht = $t === void 0 ? "curve" : $t, yt = mt === void 0 ? 2 : mt;
368
- let Q;
369
- t[8] !== R ? (Q = R === void 0 ? [] : R, t[8] = R, t[9] = Q) : Q = t[9];
370
- const vt = Q, b = d === void 0 ? !1 : d, [Z, qt] = Kt(0), [_, tt] = Kt(0), At = me(null), Mt = me(null);
371
- let O, et;
372
- t[10] === Symbol.for("react.memo_cache_sentinel") ? (O = () => {
373
- const Ht = new ResizeObserver((wt) => {
374
- qt(wt[0].target.clientWidth || 620), tt(wt[0].target.clientHeight || 480);
352
+ precision: ut,
353
+ customLayers: G,
354
+ animate: h
355
+ } = n, b = Lt === void 0 ? _e.light.categoricalColors.colors : Lt, gt = St === void 0 ? 10 : St, Q = Dt === void 0 ? "yyyy" : Dt, zt = rt === void 0 ? !1 : rt, Ut = lt === void 0 ? 50 : lt, f = Xt === void 0 ? 20 : Xt, d = ct === void 0 ? 20 : ct, qt = Y === void 0 ? 25 : Y;
356
+ let Nt;
357
+ t[0] !== U ? (Nt = U === void 0 ? [] : U, t[0] = U, t[1] = Nt) : Nt = t[1];
358
+ const A = Nt;
359
+ let P;
360
+ t[2] !== $ ? (P = $ === void 0 ? [] : $, t[2] = $, t[3] = P) : P = t[3];
361
+ const Mt = P, r = J === void 0 ? !1 : J, l = V === void 0 ? !1 : V, xt = c === void 0 ? !0 : c, k = Wt === void 0 ? "en" : Wt, Ht = ft === void 0 ? 0 : ft;
362
+ let X;
363
+ t[4] !== u ? (X = u === void 0 ? [] : u, t[4] = u, t[5] = X) : X = t[5];
364
+ const dt = X;
365
+ let Z;
366
+ t[6] !== $t ? (Z = $t === void 0 ? [] : $t, t[6] = $t, t[7] = Z) : Z = t[7];
367
+ const _ = Z, ht = C === void 0 ? "light" : C, yt = It === void 0 ? 5 : It, tt = pt === void 0 ? "" : pt, vt = Bt === void 0 ? "" : Bt, At = Tt === void 0 ? "curve" : Tt, Ct = ut === void 0 ? 2 : ut;
368
+ let et;
369
+ t[8] !== G ? (et = G === void 0 ? [] : G, t[8] = G, t[9] = et) : et = t[9];
370
+ const wt = et, O = h === void 0 ? !1 : h, [ot, Jt] = Qt(0), [st, it] = Qt(0), bt = pe(null), Rt = pe(null);
371
+ let L, nt;
372
+ t[10] === Symbol.for("react.memo_cache_sentinel") ? (L = () => {
373
+ const Zt = new ResizeObserver((_t) => {
374
+ Jt(_t[0].target.clientWidth || 620), it(_t[0].target.clientHeight || 480);
375
375
  });
376
- return At.current && Ht.observe(At.current), () => Ht.disconnect();
377
- }, et = [], t[10] = O, t[11] = et) : (O = t[10], et = t[11]), Ae(O, et);
378
- const Ct = s?.graphContainer, $ = m?.graphContainer;
376
+ return bt.current && Zt.observe(bt.current), () => Zt.disconnect();
377
+ }, nt = [], t[10] = L, t[11] = nt) : (L = t[10], nt = t[11]), we(L, nt);
378
+ const Ot = s?.graphContainer, T = m?.graphContainer;
379
379
  let j;
380
- t[12] !== s?.description || t[13] !== s?.title || t[14] !== h || t[15] !== l || t[16] !== i || t[17] !== a || t[18] !== P || t[19] !== m?.description || t[20] !== m?.title || t[21] !== v ? (j = P || i || a || l ? /* @__PURE__ */ r.jsx(Qe, { styles: {
380
+ t[12] !== s?.description || t[13] !== s?.title || t[14] !== p || t[15] !== l || t[16] !== i || t[17] !== r || t[18] !== I || t[19] !== m?.description || t[20] !== m?.title || t[21] !== v ? (j = I || i || r || l ? /* @__PURE__ */ a.jsx(Qe, { styles: {
381
381
  title: m?.title,
382
382
  description: m?.description
383
383
  }, classNames: {
384
384
  title: s?.title,
385
385
  description: s?.description
386
- }, graphTitle: P, graphDescription: i, width: v, graphDownload: a ? Mt : void 0, dataDownload: l ? h.map(yo).filter(ho).length > 0 ? h.map(xo).filter(go) : h.filter(uo) : null }) : null, t[12] = s?.description, t[13] = s?.title, t[14] = h, t[15] = l, t[16] = i, t[17] = a, t[18] = P, t[19] = m?.description, t[20] = m?.title, t[21] = v, t[22] = j) : j = t[22];
387
- let k;
388
- t[23] !== b || t[24] !== ut || t[25] !== Ut || t[26] !== s || t[27] !== X || t[28] !== it || t[29] !== F || t[30] !== ht || t[31] !== J || t[32] !== vt || t[33] !== h || t[34] !== U || t[35] !== A || t[36] !== D || t[37] !== zt || t[38] !== g || t[39] !== u || t[40] !== ft || t[41] !== xt || t[42] !== M || t[43] !== yt || t[44] !== K || t[45] !== Tt || t[46] !== f || t[47] !== pt || t[48] !== m || t[49] !== dt || t[50] !== _ || t[51] !== Z || t[52] !== at || t[53] !== x || t[54] !== z ? (k = h.length === 0 ? /* @__PURE__ */ r.jsx(to, {}) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
389
- pt !== !1 ? /* @__PURE__ */ r.jsx(Ze, { colorDomain: X, colors: F, colorLegendTitle: it, showNAColor: !1, className: s?.colorLegend }) : null,
390
- /* @__PURE__ */ r.jsx(eo, { ref: At, children: Z && _ ? /* @__PURE__ */ r.jsx(so, { data: h, colors: F, width: Z, height: _, dateFormat: U, noOfXTicks: ft, leftMargin: zt, rightMargin: f, topMargin: x, bottomMargin: Ut, tooltip: at, onSeriesMouseOver: M, highlightAreaSettings: A, refValues: Tt, minValue: u, maxValue: g, rtl: D === "he" || D === "ar", annotations: ut, customHighlightAreaSettings: J, yAxisTitle: z, noOfYTicks: xt, prefix: K, suffix: dt, curveType: ht, styles: m, classNames: s, precision: yt, customLayers: vt, animate: b === !0 ? {
391
- duration: 0.5,
392
- once: !0,
393
- amount: 0.5
394
- } : b || {
395
- duration: 0,
396
- once: !0,
397
- amount: 0
398
- } }) : null })
399
- ] }), t[23] = b, t[24] = ut, t[25] = Ut, t[26] = s, t[27] = X, t[28] = it, t[29] = F, t[30] = ht, t[31] = J, t[32] = vt, t[33] = h, t[34] = U, t[35] = A, t[36] = D, t[37] = zt, t[38] = g, t[39] = u, t[40] = ft, t[41] = xt, t[42] = M, t[43] = yt, t[44] = K, t[45] = Tt, t[46] = f, t[47] = pt, t[48] = m, t[49] = dt, t[50] = _, t[51] = Z, t[52] = at, t[53] = x, t[54] = z, t[55] = k) : k = t[55];
400
- let T;
401
- t[56] !== s?.footnote || t[57] !== s?.source || t[58] !== y || t[59] !== Ot || t[60] !== m?.footnote || t[61] !== m?.source || t[62] !== v ? (T = Ot || y ? /* @__PURE__ */ r.jsx(Ke, { styles: {
386
+ }, graphTitle: I, graphDescription: i, width: v, graphDownload: r ? Rt : void 0, dataDownload: l ? p.map(yo).filter(ho).length > 0 ? p.map(xo).filter(go) : p.filter(uo) : null }) : null, t[12] = s?.description, t[13] = s?.title, t[14] = p, t[15] = l, t[16] = i, t[17] = r, t[18] = I, t[19] = m?.description, t[20] = m?.title, t[21] = v, t[22] = j) : j = t[22];
387
+ let N;
388
+ t[23] !== s?.colorLegend || t[24] !== B || t[25] !== at || t[26] !== b || t[27] !== p.length || t[28] !== xt ? (N = xt !== !1 && p.length > 0 ? /* @__PURE__ */ a.jsx(Ze, { colorDomain: B, colors: b, colorLegendTitle: at, showNAColor: !1, className: s?.colorLegend }) : null, t[23] = s?.colorLegend, t[24] = B, t[25] = at, t[26] = b, t[27] = p.length, t[28] = xt, t[29] = N) : N = t[29];
389
+ let M;
390
+ t[30] !== p.length ? (M = p.length === 0 && /* @__PURE__ */ a.jsx(to, {}), t[30] = p.length, t[31] = M) : M = t[31];
391
+ let H;
392
+ t[32] !== O || t[33] !== dt || t[34] !== qt || t[35] !== s || t[36] !== b || t[37] !== At || t[38] !== _ || t[39] !== wt || t[40] !== p || t[41] !== Q || t[42] !== A || t[43] !== k || t[44] !== Ut || t[45] !== x || t[46] !== g || t[47] !== gt || t[48] !== yt || t[49] !== F || t[50] !== Ct || t[51] !== tt || t[52] !== Mt || t[53] !== f || t[54] !== m || t[55] !== vt || t[56] !== st || t[57] !== ot || t[58] !== mt || t[59] !== d || t[60] !== K ? (H = ot && st && p.length > 0 ? /* @__PURE__ */ a.jsx(so, { data: p, colors: b, width: ot, height: st, dateFormat: Q, noOfXTicks: gt, leftMargin: Ut, rightMargin: f, topMargin: d, bottomMargin: qt, tooltip: mt, onSeriesMouseOver: F, highlightAreaSettings: A, refValues: Mt, minValue: g, maxValue: x, rtl: k === "he" || k === "ar", annotations: dt, customHighlightAreaSettings: _, yAxisTitle: K, noOfYTicks: yt, prefix: tt, suffix: vt, curveType: At, styles: m, classNames: s, precision: Ct, customLayers: wt, animate: O === !0 ? {
393
+ duration: 0.5,
394
+ once: !0,
395
+ amount: 0.5
396
+ } : O || {
397
+ duration: 0,
398
+ once: !0,
399
+ amount: 0
400
+ } }) : null, t[32] = O, t[33] = dt, t[34] = qt, t[35] = s, t[36] = b, t[37] = At, t[38] = _, t[39] = wt, t[40] = p, t[41] = Q, t[42] = A, t[43] = k, t[44] = Ut, t[45] = x, t[46] = g, t[47] = gt, t[48] = yt, t[49] = F, t[50] = Ct, t[51] = tt, t[52] = Mt, t[53] = f, t[54] = m, t[55] = vt, t[56] = st, t[57] = ot, t[58] = mt, t[59] = d, t[60] = K, t[61] = H) : H = t[61];
401
+ let R;
402
+ t[62] !== M || t[63] !== H ? (R = /* @__PURE__ */ a.jsxs(eo, { ref: bt, children: [
403
+ M,
404
+ H
405
+ ] }), t[62] = M, t[63] = H, t[64] = R) : R = t[64];
406
+ let S;
407
+ t[65] !== s?.footnote || t[66] !== s?.source || t[67] !== y || t[68] !== jt || t[69] !== m?.footnote || t[70] !== m?.source || t[71] !== v ? (S = jt || y ? /* @__PURE__ */ a.jsx(Ke, { styles: {
402
408
  footnote: m?.footnote,
403
409
  source: m?.source
404
410
  }, classNames: {
405
411
  footnote: s?.footnote,
406
412
  source: s?.source
407
- }, sources: Ot, footNote: y, width: v }) : null, t[56] = s?.footnote, t[57] = s?.source, t[58] = y, t[59] = Ot, t[60] = m?.footnote, t[61] = m?.source, t[62] = v, t[63] = T) : T = t[63];
408
- let ot;
409
- return t[64] !== Dt || t[65] !== Bt || t[66] !== I || t[67] !== Gt || t[68] !== D || t[69] !== Nt || t[70] !== E || t[71] !== Xt || t[72] !== Ct || t[73] !== $ || t[74] !== j || t[75] !== k || t[76] !== T || t[77] !== gt || t[78] !== v ? (ot = /* @__PURE__ */ r.jsxs(oo, { className: Ct, style: $, id: I, ref: Mt, "aria-label": Dt, backgroundColor: Bt, theme: gt, language: D, minHeight: Nt, width: v, height: Gt, relativeHeight: Xt, padding: E, children: [
413
+ }, sources: jt, footNote: y, width: v }) : null, t[65] = s?.footnote, t[66] = s?.source, t[67] = y, t[68] = jt, t[69] = m?.footnote, t[70] = m?.source, t[71] = v, t[72] = S) : S = t[72];
414
+ let E;
415
+ return t[73] !== kt || t[74] !== zt || t[75] !== q || t[76] !== Pt || t[77] !== k || t[78] !== Ht || t[79] !== z || t[80] !== Et || t[81] !== Ot || t[82] !== T || t[83] !== j || t[84] !== N || t[85] !== R || t[86] !== S || t[87] !== ht || t[88] !== v ? (E = /* @__PURE__ */ a.jsxs(oo, { className: Ot, style: T, id: q, ref: Rt, "aria-label": kt, backgroundColor: zt, theme: ht, language: k, minHeight: Ht, width: v, height: Pt, relativeHeight: Et, padding: z, children: [
410
416
  j,
411
- k,
412
- T
413
- ] }), t[64] = Dt, t[65] = Bt, t[66] = I, t[67] = Gt, t[68] = D, t[69] = Nt, t[70] = E, t[71] = Xt, t[72] = Ct, t[73] = $, t[74] = j, t[75] = k, t[76] = T, t[77] = gt, t[78] = v, t[79] = ot) : ot = t[79], ot;
417
+ N,
418
+ R,
419
+ S
420
+ ] }), t[73] = kt, t[74] = zt, t[75] = q, t[76] = Pt, t[77] = k, t[78] = Ht, t[79] = z, t[80] = Et, t[81] = Ot, t[82] = T, t[83] = j, t[84] = N, t[85] = R, t[86] = S, t[87] = ht, t[88] = v, t[89] = E) : E = t[89], E;
414
421
  }
415
422
  function uo(n) {
416
423
  return n !== void 0;