@undp/data-viz 2.1.2 → 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 (162) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +281 -274
  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 +367 -356
  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 +406 -399
  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.d.ts +10 -0
  31. package/dist/DonutChart.js +232 -263
  32. package/dist/DonutChart.js.map +1 -1
  33. package/dist/DualAxisLineChart.cjs +1 -1
  34. package/dist/DualAxisLineChart.cjs.map +1 -1
  35. package/dist/DualAxisLineChart.js +320 -313
  36. package/dist/DualAxisLineChart.js.map +1 -1
  37. package/dist/DumbbellChart.cjs +1 -1
  38. package/dist/DumbbellChart.cjs.map +1 -1
  39. package/dist/DumbbellChart.js +298 -291
  40. package/dist/DumbbellChart.js.map +1 -1
  41. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  42. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  43. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  44. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  45. package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
  46. package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
  47. package/dist/{GraphEl-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
  48. package/dist/GraphEl-oZwZiTHI.js.map +1 -0
  49. package/dist/GriddedGraphs.cjs +1 -1
  50. package/dist/GriddedGraphs.d.ts +1 -0
  51. package/dist/GriddedGraphs.js +1 -1
  52. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  53. package/dist/HeatMap.cjs +1 -1
  54. package/dist/HeatMap.cjs.map +1 -1
  55. package/dist/HeatMap.js +179 -172
  56. package/dist/HeatMap.js.map +1 -1
  57. package/dist/Histogram.cjs +1 -1
  58. package/dist/Histogram.js +1 -1
  59. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  60. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  61. package/dist/LineChartWithConfidenceInterval.js +370 -363
  62. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  63. package/dist/MultiGraphDashboard.d.ts +1 -0
  64. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  65. package/dist/MultiLineAltChart.cjs +1 -1
  66. package/dist/MultiLineAltChart.cjs.map +1 -1
  67. package/dist/MultiLineAltChart.js +328 -321
  68. package/dist/MultiLineAltChart.js.map +1 -1
  69. package/dist/MultiLineChart.cjs +1 -1
  70. package/dist/MultiLineChart.cjs.map +1 -1
  71. package/dist/MultiLineChart.js +375 -368
  72. package/dist/MultiLineChart.js.map +1 -1
  73. package/dist/ParetoChart.cjs +1 -1
  74. package/dist/ParetoChart.cjs.map +1 -1
  75. package/dist/ParetoChart.js +385 -378
  76. package/dist/ParetoChart.js.map +1 -1
  77. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  78. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  79. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  80. package/dist/RadarChart.cjs +1 -1
  81. package/dist/RadarChart.cjs.map +1 -1
  82. package/dist/RadarChart.js +35 -34
  83. package/dist/RadarChart.js.map +1 -1
  84. package/dist/SankeyChart.cjs +1 -1
  85. package/dist/SankeyChart.cjs.map +1 -1
  86. package/dist/SankeyChart.js +176 -169
  87. package/dist/SankeyChart.js.map +1 -1
  88. package/dist/ScatterPlot.cjs +1 -1
  89. package/dist/ScatterPlot.cjs.map +1 -1
  90. package/dist/ScatterPlot.js +367 -360
  91. package/dist/ScatterPlot.js.map +1 -1
  92. package/dist/ScrollStory.d.ts +1 -0
  93. package/dist/SimpleLineChart.cjs +1 -1
  94. package/dist/SimpleLineChart.cjs.map +1 -1
  95. package/dist/SimpleLineChart.js +286 -279
  96. package/dist/SimpleLineChart.js.map +1 -1
  97. package/dist/SingleGraphDashboard.cjs +1 -1
  98. package/dist/SingleGraphDashboard.d.ts +1 -0
  99. package/dist/SingleGraphDashboard.js +1 -1
  100. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  101. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  102. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  103. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  104. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  105. package/dist/SlopeChart.cjs +1 -1
  106. package/dist/SlopeChart.cjs.map +1 -1
  107. package/dist/SlopeChart.js +243 -236
  108. package/dist/SlopeChart.js.map +1 -1
  109. package/dist/SparkLine.cjs +1 -1
  110. package/dist/SparkLine.js +2 -2
  111. package/dist/StripChart.cjs +1 -1
  112. package/dist/StripChart.cjs.map +1 -1
  113. package/dist/StripChart.js +293 -286
  114. package/dist/StripChart.js.map +1 -1
  115. package/dist/TreeMapGraph.cjs +1 -1
  116. package/dist/TreeMapGraph.cjs.map +1 -1
  117. package/dist/TreeMapGraph.js +222 -215
  118. package/dist/TreeMapGraph.js.map +1 -1
  119. package/dist/Types.d.ts +1 -0
  120. package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
  121. package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
  122. package/dist/area-C1gxfNGD.cjs +2 -0
  123. package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
  124. package/dist/array-DMyR1sql.cjs +2 -0
  125. package/dist/array-DMyR1sql.cjs.map +1 -0
  126. package/dist/array-USo-Szhp.js +13 -0
  127. package/dist/array-USo-Szhp.js.map +1 -0
  128. package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
  129. package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
  130. package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
  131. package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
  132. package/dist/index-Blvf-Q3U.cjs +2 -0
  133. package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
  134. package/dist/index-D1RrKgK6.js +337 -0
  135. package/dist/index-D1RrKgK6.js.map +1 -0
  136. package/dist/index.cjs +1 -1
  137. package/dist/index.d.ts +7 -0
  138. package/dist/index.js +1 -1
  139. package/dist/line-DFlZsxI1.js +144 -0
  140. package/dist/line-DFlZsxI1.js.map +1 -0
  141. package/dist/line-DaEMhXmx.cjs +2 -0
  142. package/dist/line-DaEMhXmx.cjs.map +1 -0
  143. package/dist/style.css +1 -1
  144. package/package.json +1 -1
  145. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  146. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  147. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  148. package/dist/GraphEl-YKUlz-37.cjs +0 -2
  149. package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
  150. package/dist/GraphEl-sVZvlyWe.js.map +0 -1
  151. package/dist/area-D3Qx7k7K.cjs +0 -2
  152. package/dist/array-B7TkkRH0.js +0 -89
  153. package/dist/array-B7TkkRH0.js.map +0 -1
  154. package/dist/array-DKbXV8lR.cjs +0 -2
  155. package/dist/array-DKbXV8lR.cjs.map +0 -1
  156. package/dist/index-CF5hnGvG.cjs +0 -2
  157. package/dist/index-DPGq3eIL.js +0 -330
  158. package/dist/index-DPGq3eIL.js.map +0 -1
  159. package/dist/line-CPfhohvF.js +0 -68
  160. package/dist/line-CPfhohvF.js.map +0 -1
  161. package/dist/line-DHV4JwCR.cjs +0 -2
  162. package/dist/line-DHV4JwCR.cjs.map +0 -1
@@ -1,10 +1,10 @@
1
- import { c as Xe, j as s, m as Ve } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as Ne, useState as re, useEffect as Ye } from "react";
3
- import { p as O, f as Ue } from "./parse-DlCRUFh_.js";
1
+ import { c as Ee, j as s, m as He } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as Ie, useState as le, useEffect as Xe } from "react";
3
+ import { p as j, f as Ue } from "./parse-DlCRUFh_.js";
4
4
  import { o as qe } from "./index-BZQYSqar.js";
5
- import { n as Pe } from "./numberFormattingFunction-14YCbkN2.js";
5
+ import { n as Ge } from "./numberFormattingFunction-14YCbkN2.js";
6
6
  import { T as Je } from "./Tooltip-Dj5eVppQ.js";
7
- import { c as A } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
+ import { c as b } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
8
  import { C as Ke, g as Qe, A as Ze } from "./customArea-BUhPiPT6.js";
9
9
  import { A as _e } from "./AxisTitle-jeI7am8o.js";
10
10
  import { A as ti } from "./Axis-CRyfcLjc.js";
@@ -14,264 +14,264 @@ import { Y as oi } from "./YTicksAndGridLines-Blepl7XF.js";
14
14
  import { H as ni } from "./index-SKgJALZg.js";
15
15
  import { t as si } from "./time-BUL-dwnK.js";
16
16
  import { a as ai } from "./linear-BqltdMeF.js";
17
- import { l as ri, c as li } from "./line-CPfhohvF.js";
17
+ import { l as ri, c as li } from "./line-DFlZsxI1.js";
18
18
  import { c as ci, s as mi, a as fi, m as di } from "./step-BrDul-H4.js";
19
19
  import { s as ui } from "./select-DKy99ogv.js";
20
20
  import { a as hi } from "./init-BhZylTFx.js";
21
21
  import { p as pi } from "./pointer-CWRWOsrb.js";
22
22
  import { u as gi } from "./use-in-view-Cxa7y1TH.js";
23
- import { m as Et } from "./proxy-BxkFHwUw.js";
23
+ import { m as zt } from "./proxy-BxkFHwUw.js";
24
24
  import { GraphFooter as xi } from "./GraphFooter.js";
25
25
  import { GraphHeader as yi } from "./GraphHeader.js";
26
26
  import { ColorLegend as vi } from "./ColorLegend.js";
27
27
  import { Colors as wi } from "./Colors.js";
28
- import { E as Ci } from "./EmptyState-BZo1BbAn.js";
28
+ import { E as Ci } from "./EmptyState-C7ZXkZWd.js";
29
29
  import { g as Ai } from "./generateRandomString-za3IQGfQ.js";
30
30
  import { a as bi, G as Oi } from "./GraphContainer-CRqzdKu2.js";
31
- import { g as ji } from "./getNoOfTicks-CpmRjcRF.js";
32
- function Li(i) {
33
- const t = Xe.c(153), {
34
- data: L,
35
- width: _,
36
- height: Bt,
37
- lineColors: D,
31
+ import { g as Li } from "./getNoOfTicks-CpmRjcRF.js";
32
+ function ji(i) {
33
+ const t = Ee.c(153), {
34
+ data: y,
35
+ width: st,
36
+ height: Ut,
37
+ lineColors: T,
38
38
  dateFormat: a,
39
- noOfXTicks: ge,
40
- labels: T,
41
- rightMargin: Lt,
42
- topMargin: b,
43
- bottomMargin: tt,
44
- suffix: Y,
45
- prefix: P,
39
+ noOfXTicks: xe,
40
+ labels: S,
41
+ rightMargin: St,
42
+ topMargin: O,
43
+ bottomMargin: at,
44
+ suffix: B,
45
+ prefix: z,
46
46
  leftMargin: w,
47
- tooltip: et,
48
- onSeriesMouseOver: zt,
49
- showValues: xe,
50
- showColorLegendAtTop: ye,
51
- refValues: Dt,
52
- highlightAreaSettings: Ut,
53
- minValue: X,
54
- maxValue: it,
55
- highlightedLines: ot,
47
+ tooltip: rt,
48
+ onSeriesMouseOver: qt,
49
+ showValues: ye,
50
+ showColorLegendAtTop: ve,
51
+ refValues: kt,
52
+ highlightAreaSettings: Jt,
53
+ minValue: U,
54
+ maxValue: lt,
55
+ highlightedLines: ct,
56
56
  animate: n,
57
- rtl: G,
58
- strokeWidth: qt,
59
- showDots: Jt,
60
- annotations: Tt,
61
- customHighlightAreaSettings: St,
62
- yAxisTitle: nt,
63
- noOfYTicks: Kt,
64
- minDate: le,
65
- maxDate: ce,
66
- curveType: kt,
67
- styles: y,
57
+ rtl: q,
58
+ strokeWidth: Kt,
59
+ showDots: Qt,
60
+ annotations: Mt,
61
+ customHighlightAreaSettings: $t,
62
+ yAxisTitle: mt,
63
+ noOfYTicks: Zt,
64
+ minDate: ce,
65
+ maxDate: me,
66
+ curveType: Vt,
67
+ styles: v,
68
68
  classNames: x,
69
- dimmedOpacity: me,
70
- precision: E,
71
- customLayers: B,
72
- dashedLines: st,
73
- dashSettings: Mt,
74
- labelsToBeHidden: ve,
75
- revealClipId: at
76
- } = i, Qt = Ne(null);
77
- let $t;
78
- t[0] !== n.amount || t[1] !== n.once ? ($t = {
69
+ dimmedOpacity: fe,
70
+ precision: J,
71
+ customLayers: K,
72
+ dashedLines: ft,
73
+ dashSettings: Nt,
74
+ labelsToBeHidden: we,
75
+ revealClipId: dt
76
+ } = i, _t = Ie(null);
77
+ let Ht;
78
+ t[0] !== n.amount || t[1] !== n.once ? (Ht = {
79
79
  once: n.once,
80
80
  amount: n.amount
81
- }, t[0] = n.amount, t[1] = n.once, t[2] = $t) : $t = t[2];
82
- const m = gi(Qt, $t), [C, we] = re(!1);
83
- let h, d;
84
- t[3] !== n.duration || t[4] !== C || t[5] !== m ? (h = () => {
85
- if (m && !C) {
81
+ }, t[0] = n.amount, t[1] = n.once, t[2] = Ht) : Ht = t[2];
82
+ const m = gi(_t, Ht), [A, Ce] = le(!1);
83
+ let h, f;
84
+ t[3] !== n.duration || t[4] !== A || t[5] !== m ? (h = () => {
85
+ if (m && !A) {
86
86
  const o = setTimeout(() => {
87
- we(!0);
87
+ Ce(!0);
88
88
  }, (n.duration + 0.5) * 1e3);
89
89
  return () => clearTimeout(o);
90
90
  }
91
- }, d = [m, C, n.duration], t[3] = n.duration, t[4] = C, t[5] = m, t[6] = h, t[7] = d) : (h = t[6], d = t[7]), Ye(h, d);
92
- const Ce = kt === "linear" ? li : kt === "step" ? ci : kt === "stepAfter" ? mi : kt === "stepBefore" ? fi : di, [j, Vt] = re(void 0), [z, Nt] = re(void 0), [U, fe] = re(void 0), rt = nt ? w + 30 : w;
93
- let lt;
94
- t[8] !== tt || t[9] !== Lt || t[10] !== rt || t[11] !== b ? (lt = {
95
- top: b,
96
- bottom: tt,
97
- left: rt,
98
- right: Lt
99
- }, t[8] = tt, t[9] = Lt, t[10] = rt, t[11] = b, t[12] = lt) : lt = t[12];
100
- const p = lt, ct = Ne(null);
101
- let mt;
102
- t[13] !== a ? (mt = (o) => ({
91
+ }, f = [m, A, n.duration], t[3] = n.duration, t[4] = A, t[5] = m, t[6] = h, t[7] = f) : (h = t[6], f = t[7]), Xe(h, f);
92
+ const Ae = Vt === "linear" ? li : Vt === "step" ? ci : Vt === "stepAfter" ? mi : Vt === "stepBefore" ? fi : di, [D, It] = le(void 0), [Q, Rt] = le(void 0), [Z, de] = le(void 0), N = mt ? w + 30 : w;
93
+ let ut;
94
+ t[8] !== at || t[9] !== St || t[10] !== N || t[11] !== O ? (ut = {
95
+ top: O,
96
+ bottom: at,
97
+ left: N,
98
+ right: St
99
+ }, t[8] = at, t[9] = St, t[10] = N, t[11] = O, t[12] = ut) : ut = t[12];
100
+ const p = ut, ht = Ie(null);
101
+ let pt;
102
+ t[13] !== a ? (pt = (o) => ({
103
103
  ...o,
104
- date: O(`${o.date}`, a, /* @__PURE__ */ new Date())
105
- }), t[13] = a, t[14] = mt) : mt = t[14];
106
- const f = qe(L.map(mt), ["date"], ["asc"]), de = f[0].y.map((o, e) => f.map((u) => ({
104
+ date: j(`${o.date}`, a, /* @__PURE__ */ new Date())
105
+ }), t[13] = a, t[14] = pt) : pt = t[14];
106
+ const d = qe(y.map(pt), ["date"], ["asc"]), ue = d[0].y.map((o, e) => d.map((u) => ({
107
107
  ...u,
108
108
  y: u.y[e]
109
109
  })).filter(zi));
110
- let ft;
111
- if (t[15] !== a || t[16] !== Ut) {
110
+ let gt;
111
+ if (t[15] !== a || t[16] !== Jt) {
112
112
  let o;
113
113
  t[18] !== a ? (o = (e) => ({
114
114
  ...e,
115
- coordinates: [e.coordinates[0] === null ? null : O(`${e.coordinates[0]}`, a, /* @__PURE__ */ new Date()), e.coordinates[1] === null ? null : O(`${e.coordinates[1]}`, a, /* @__PURE__ */ new Date())]
116
- }), t[18] = a, t[19] = o) : o = t[19], ft = Ut.map(o), t[15] = a, t[16] = Ut, t[17] = ft;
115
+ coordinates: [e.coordinates[0] === null ? null : j(`${e.coordinates[0]}`, a, /* @__PURE__ */ new Date()), e.coordinates[1] === null ? null : j(`${e.coordinates[1]}`, a, /* @__PURE__ */ new Date())]
116
+ }), t[18] = a, t[19] = o) : o = t[19], gt = Jt.map(o), t[15] = a, t[16] = Jt, t[17] = gt;
117
117
  } else
118
- ft = t[17];
119
- const Ht = ft;
120
- let dt;
121
- if (t[20] !== St || t[21] !== a) {
118
+ gt = t[17];
119
+ const Ft = gt;
120
+ let xt;
121
+ if (t[20] !== $t || t[21] !== a) {
122
122
  let o;
123
123
  t[23] !== a ? (o = (e) => ({
124
124
  ...e,
125
- coordinates: e.coordinates.map((u, Z) => Z % 2 === 0 ? O(`${u}`, a, /* @__PURE__ */ new Date()) : u)
126
- }), t[23] = a, t[24] = o) : o = t[24], dt = St.map(o), t[20] = St, t[21] = a, t[22] = dt;
125
+ coordinates: e.coordinates.map((u, nt) => nt % 2 === 0 ? j(`${u}`, a, /* @__PURE__ */ new Date()) : u)
126
+ }), t[23] = a, t[24] = o) : o = t[24], xt = $t.map(o), t[20] = $t, t[21] = a, t[22] = xt;
127
127
  } else
128
- dt = t[22];
129
- const ue = dt, c = _ - p.left - p.right, g = Bt - p.top - p.bottom, he = le ? O(`${le}`, a, /* @__PURE__ */ new Date()) : f[0].date, Zt = ce ? O(`${ce}`, a, /* @__PURE__ */ new Date()) : f[f.length - 1].date, v = A(X) ? Math.min(...f.map(Ei)) ? Math.min(...f.map(Xi)) > 0 ? 0 : Math.min(...f.map(Yi)) : 0 : X, V = Math.max(...f.map(Fi)) ? Math.max(...f.map(Ii)) : 0, r = si().domain([he, Zt]).range([0, c]);
130
- let q;
131
- t[25] !== v || t[26] !== X ? (q = A(X) ? v : X, t[25] = v, t[26] = X, t[27] = q) : q = t[27];
132
- let J;
133
- t[28] !== V || t[29] !== it ? (J = A(it) ? V > 0 ? V : 0 : it, t[28] = V, t[29] = it, t[30] = J) : J = t[30];
134
- const l = ai().domain([q, J]).range([g, 0]).nice(), N = ri().x((o) => r(o.date)).y((o) => l(o.y)).curve(Ce), _t = l.ticks(Kt), te = r.ticks(ge);
135
- Ye(() => {
128
+ xt = t[22];
129
+ const he = xt, c = st - p.left - p.right, g = Ut - p.top - p.bottom, pe = ce ? j(`${ce}`, a, /* @__PURE__ */ new Date()) : d[0].date, te = me ? j(`${me}`, a, /* @__PURE__ */ new Date()) : d[d.length - 1].date, C = b(U) ? Math.min(...d.map(Ei)) ? Math.min(...d.map(Xi)) > 0 ? 0 : Math.min(...d.map(Yi)) : 0 : U, H = Math.max(...d.map(Fi)) ? Math.max(...d.map(Ii)) : 0, r = si().domain([pe, te]).range([0, c]);
130
+ let _;
131
+ t[25] !== C || t[26] !== U ? (_ = b(U) ? C : U, t[25] = C, t[26] = U, t[27] = _) : _ = t[27];
132
+ let tt;
133
+ t[28] !== H || t[29] !== lt ? (tt = b(lt) ? H > 0 ? H : 0 : lt, t[28] = H, t[29] = lt, t[30] = tt) : tt = t[30];
134
+ const l = ai().domain([_, tt]).range([g, 0]).nice(), I = ri().x((o) => r(o.date)).y((o) => l(o.y)).curve(Ae), ee = l.ticks(Zt), ie = r.ticks(xe);
135
+ Xe(() => {
136
136
  const o = (u) => {
137
- const Z = f[hi(f.map(Hi), r.invert(pi(u)[0]), 0)];
138
- Vt(Z || f[f.length - 1]), fe(u.clientY), Nt(u.clientX), zt?.(Z || f[f.length - 1]);
137
+ const nt = d[hi(d.map(Hi), r.invert(pi(u)[0]), 0)];
138
+ It(nt || d[d.length - 1]), de(u.clientY), Rt(u.clientX), qt?.(nt || d[d.length - 1]);
139
139
  }, e = () => {
140
- Vt(void 0), Nt(void 0), fe(void 0);
140
+ It(void 0), Rt(void 0), de(void 0);
141
141
  };
142
- ui(ct.current).on("mousemove", o).on("mouseout", e), zt?.(void 0);
143
- }, [r, f, zt]);
144
- let ut;
145
- t[31] === Symbol.for("react.memo_cache_sentinel") ? (ut = {
142
+ ui(ht.current).on("mousemove", o).on("mouseout", e), qt?.(void 0);
143
+ }, [r, d, qt]);
144
+ let yt;
145
+ t[31] === Symbol.for("react.memo_cache_sentinel") ? (yt = {
146
146
  width: 0
147
- }, t[31] = ut) : ut = t[31];
148
- let S;
149
- t[32] !== n.duration ? (S = {
147
+ }, t[31] = yt) : yt = t[31];
148
+ let k;
149
+ t[32] !== n.duration ? (k = {
150
150
  duration: n.duration
151
- }, t[32] = n.duration, t[33] = S) : S = t[33];
152
- let H;
153
- t[34] !== c || t[35] !== S ? (H = {
154
- initial: ut,
151
+ }, t[32] = n.duration, t[33] = k) : k = t[33];
152
+ let R;
153
+ t[34] !== c || t[35] !== k ? (R = {
154
+ initial: yt,
155
155
  whileInView: {
156
156
  width: c,
157
- transition: S
157
+ transition: k
158
158
  }
159
- }, t[34] = c, t[35] = S, t[36] = H) : H = t[36];
160
- const ht = m ? "whileInView" : "initial";
161
- let I;
162
- t[37] !== g || t[38] !== H || t[39] !== ht ? (I = /* @__PURE__ */ s.jsx(Et.rect, { x: 0, y: 0, height: g, variants: H, initial: "initial", animate: ht }), t[37] = g, t[38] = H, t[39] = ht, t[40] = I) : I = t[40];
163
- let pt;
164
- t[41] !== at || t[42] !== I ? (pt = /* @__PURE__ */ s.jsx("defs", { children: /* @__PURE__ */ s.jsx("clipPath", { id: at, children: I }) }), t[41] = at, t[42] = I, t[43] = pt) : pt = t[43];
165
- let gt;
166
- t[44] !== n || t[45] !== g || t[46] !== c || t[47] !== Ht || t[48] !== m || t[49] !== r ? (gt = /* @__PURE__ */ s.jsx(ni, { areaSettings: Ht, width: c, height: g, scale: r, animate: n, isInView: m }), t[44] = n, t[45] = g, t[46] = c, t[47] = Ht, t[48] = m, t[49] = r, t[50] = gt) : gt = t[50];
167
- const It = y?.yAxis?.gridLines, Rt = y?.yAxis?.labels;
168
- let xt;
169
- t[51] !== It || t[52] !== Rt ? (xt = {
170
- gridLines: It,
171
- labels: Rt
172
- }, t[51] = It, t[52] = Rt, t[53] = xt) : xt = t[53];
173
- const yt = x?.yAxis?.gridLines, Ft = x?.yAxis?.labels;
174
- let K;
175
- t[54] !== yt || t[55] !== Ft ? (K = {
176
- gridLines: yt,
177
- labels: Ft
178
- }, t[54] = yt, t[55] = Ft, t[56] = K) : K = t[56];
179
- const Wt = l(v < 0 ? 0 : v), vt = l(v < 0 ? 0 : v), Yt = 0 - w, wt = c + p.right, Ct = v < 0 ? 0 : v;
180
- let k;
181
- t[57] !== E || t[58] !== P || t[59] !== Y || t[60] !== Ct ? (k = Pe(Ct, "NA", E, P, Y), t[57] = E, t[58] = P, t[59] = Y, t[60] = Ct, t[61] = k) : k = t[61];
182
- const Q = 0 - w, pe = l(v < 0 ? 0 : v), At = V < 0 ? "1em" : -5;
183
- let bt;
184
- t[62] !== Q || t[63] !== pe || t[64] !== At ? (bt = {
185
- x: Q,
186
- y: pe,
159
+ }, t[34] = c, t[35] = k, t[36] = R) : R = t[36];
160
+ const vt = m ? "whileInView" : "initial";
161
+ let F;
162
+ t[37] !== g || t[38] !== R || t[39] !== vt ? (F = /* @__PURE__ */ s.jsx(zt.rect, { x: 0, y: 0, height: g, variants: R, initial: "initial", animate: vt }), t[37] = g, t[38] = R, t[39] = vt, t[40] = F) : F = t[40];
163
+ let wt;
164
+ t[41] !== dt || t[42] !== F ? (wt = /* @__PURE__ */ s.jsx("defs", { children: /* @__PURE__ */ s.jsx("clipPath", { id: dt, children: F }) }), t[41] = dt, t[42] = F, t[43] = wt) : wt = t[43];
165
+ let Ct;
166
+ t[44] !== n || t[45] !== g || t[46] !== c || t[47] !== Ft || t[48] !== m || t[49] !== r ? (Ct = /* @__PURE__ */ s.jsx(ni, { areaSettings: Ft, width: c, height: g, scale: r, animate: n, isInView: m }), t[44] = n, t[45] = g, t[46] = c, t[47] = Ft, t[48] = m, t[49] = r, t[50] = Ct) : Ct = t[50];
167
+ const Wt = v?.yAxis?.gridLines, Yt = v?.yAxis?.labels;
168
+ let At;
169
+ t[51] !== Wt || t[52] !== Yt ? (At = {
170
+ gridLines: Wt,
171
+ labels: Yt
172
+ }, t[51] = Wt, t[52] = Yt, t[53] = At) : At = t[53];
173
+ const bt = x?.yAxis?.gridLines, Pt = x?.yAxis?.labels;
174
+ let et;
175
+ t[54] !== bt || t[55] !== Pt ? (et = {
176
+ gridLines: bt,
177
+ labels: Pt
178
+ }, t[54] = bt, t[55] = Pt, t[56] = et) : et = t[56];
179
+ const Xt = l(C < 0 ? 0 : C), Ot = l(C < 0 ? 0 : C), Gt = 0 - w, Lt = c + p.right, W = C < 0 ? 0 : C;
180
+ let L;
181
+ t[57] !== J || t[58] !== z || t[59] !== B || t[60] !== W ? (L = Ge(W, "NA", J, z, B), t[57] = J, t[58] = z, t[59] = B, t[60] = W, t[61] = L) : L = t[61];
182
+ const it = 0 - w, ge = l(C < 0 ? 0 : C), jt = H < 0 ? "1em" : -5;
183
+ let Dt;
184
+ t[62] !== it || t[63] !== ge || t[64] !== jt ? (Dt = {
185
+ x: it,
186
+ y: ge,
187
187
  dx: 0,
188
- dy: At
189
- }, t[62] = Q, t[63] = pe, t[64] = At, t[65] = bt) : bt = t[65];
190
- const Pt = x?.xAxis?.axis, ee = x?.yAxis?.labels;
188
+ dy: jt
189
+ }, t[62] = it, t[63] = ge, t[64] = jt, t[65] = Dt) : Dt = t[65];
190
+ const Et = x?.xAxis?.axis, oe = x?.yAxis?.labels;
191
191
  let M;
192
- t[66] !== Pt || t[67] !== ee ? (M = {
193
- axis: Pt,
194
- label: ee
195
- }, t[66] = Pt, t[67] = ee, t[68] = M) : M = t[68];
196
- const Ot = y?.xAxis?.axis, Xt = y?.yAxis?.labels;
197
- let R;
198
- t[69] !== Ot || t[70] !== Xt ? (R = {
199
- axis: Ot,
200
- label: Xt
201
- }, t[69] = Ot, t[70] = Xt, t[71] = R) : R = t[71];
192
+ t[66] !== Et || t[67] !== oe ? (M = {
193
+ axis: Et,
194
+ label: oe
195
+ }, t[66] = Et, t[67] = oe, t[68] = M) : M = t[68];
196
+ const Tt = v?.xAxis?.axis, Bt = v?.yAxis?.labels;
197
+ let Y;
198
+ t[69] !== Tt || t[70] !== Bt ? (Y = {
199
+ axis: Tt,
200
+ label: Bt
201
+ }, t[69] = Tt, t[70] = Bt, t[71] = Y) : Y = t[71];
202
202
  let $;
203
- t[72] !== Wt || t[73] !== vt || t[74] !== Yt || t[75] !== wt || t[76] !== k || t[77] !== bt || t[78] !== M || t[79] !== R ? ($ = /* @__PURE__ */ s.jsx(ti, { y1: Wt, y2: vt, x1: Yt, x2: wt, label: k, labelPos: bt, classNames: M, styles: R }), t[72] = Wt, t[73] = vt, t[74] = Yt, t[75] = wt, t[76] = k, t[77] = bt, t[78] = M, t[79] = R, t[80] = $) : $ = t[80];
204
- const F = 0 - w - 15, W = g / 2, jt = y?.yAxis?.title, ie = x?.yAxis?.title;
205
- let Gt;
206
- t[81] !== F || t[82] !== W || t[83] !== jt || t[84] !== ie || t[85] !== nt ? (Gt = /* @__PURE__ */ s.jsx(_e, { x: F, y: W, style: jt, className: ie, text: nt, rotate90: !0 }), t[81] = F, t[82] = W, t[83] = jt, t[84] = ie, t[85] = nt, t[86] = Gt) : Gt = t[86];
207
- let Ae;
208
- t[87] !== a ? (Ae = (o) => Ue(o, a), t[87] = a, t[88] = Ae) : Ae = t[88];
209
- const Ge = te.map(Ae), Ee = te.map((o) => r(o)), He = y?.xAxis?.gridLines, Ie = y?.xAxis?.labels;
210
- let be;
211
- t[89] !== He || t[90] !== Ie ? (be = {
212
- gridLines: He,
213
- labels: Ie
214
- }, t[89] = He, t[90] = Ie, t[91] = be) : be = t[91];
215
- const Re = x?.xAxis?.gridLines;
216
- let oe;
217
- t[92] !== Re ? (oe = Ve("opacity-0", Re), t[92] = Re, t[93] = oe) : oe = t[93];
218
- const Fe = x?.xAxis?.labels;
203
+ t[72] !== Xt || t[73] !== Ot || t[74] !== Gt || t[75] !== Lt || t[76] !== L || t[77] !== Dt || t[78] !== M || t[79] !== Y ? ($ = /* @__PURE__ */ s.jsx(ti, { y1: Xt, y2: Ot, x1: Gt, x2: Lt, label: L, labelPos: Dt, classNames: M, styles: Y }), t[72] = Xt, t[73] = Ot, t[74] = Gt, t[75] = Lt, t[76] = L, t[77] = Dt, t[78] = M, t[79] = Y, t[80] = $) : $ = t[80];
204
+ const P = 0 - w - 15, X = g / 2, G = v?.yAxis?.title, E = x?.yAxis?.title;
205
+ let V;
206
+ t[81] !== P || t[82] !== X || t[83] !== G || t[84] !== E || t[85] !== mt ? (V = /* @__PURE__ */ s.jsx(_e, { x: P, y: X, style: G, className: E, text: mt, rotate90: !0 }), t[81] = P, t[82] = X, t[83] = G, t[84] = E, t[85] = mt, t[86] = V) : V = t[86];
207
+ let ot;
208
+ t[87] !== a ? (ot = (o) => Ue(o, a), t[87] = a, t[88] = ot) : ot = t[88];
209
+ const be = ie.map(ot), Oe = ie.map((o) => r(o)), Re = v?.xAxis?.gridLines, Fe = v?.xAxis?.labels;
210
+ let Le;
211
+ t[89] !== Re || t[90] !== Fe ? (Le = {
212
+ gridLines: Re,
213
+ labels: Fe
214
+ }, t[89] = Re, t[90] = Fe, t[91] = Le) : Le = t[91];
215
+ const We = x?.xAxis?.gridLines;
219
216
  let ne;
220
- t[94] !== Fe ? (ne = Ve("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Fe), t[94] = Fe, t[95] = ne) : ne = t[95];
221
- let Oe;
222
- t[96] !== oe || t[97] !== ne ? (Oe = {
223
- gridLines: oe,
224
- labels: ne
225
- }, t[96] = oe, t[97] = ne, t[98] = Oe) : Oe = t[98];
217
+ t[92] !== We ? (ne = He("opacity-0", We), t[92] = We, t[93] = ne) : ne = t[93];
218
+ const Ye = x?.xAxis?.labels;
219
+ let se;
220
+ t[94] !== Ye ? (se = He("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Ye), t[94] = Ye, t[95] = se) : se = t[95];
226
221
  let je;
227
- t[99] !== B ? (je = B.filter($i).map(Mi), t[99] = B, t[100] = je) : je = t[100];
228
- const We = de.map((o, e) => /* @__PURE__ */ s.jsxs(Et.g, { exit: {
222
+ t[96] !== ne || t[97] !== se ? (je = {
223
+ gridLines: ne,
224
+ labels: se
225
+ }, t[96] = ne, t[97] = se, t[98] = je) : je = t[98];
226
+ let De;
227
+ t[99] !== K ? (De = K.filter($i).map(Mi), t[99] = K, t[100] = De) : De = t[100];
228
+ const Pe = ue.map((o, e) => /* @__PURE__ */ s.jsxs(zt.g, { exit: {
229
229
  opacity: 0,
230
230
  transition: {
231
231
  duration: n.duration
232
232
  }
233
233
  }, variants: {
234
234
  initial: {
235
- opacity: ot.length !== 0 ? ot.indexOf(T[e]) !== -1 ? 1 : me : 1
235
+ opacity: ct.length !== 0 ? ct.indexOf(S[e]) !== -1 ? 1 : fe : 1
236
236
  },
237
237
  whileInView: {
238
- opacity: ot.length !== 0 ? ot.indexOf(T[e]) !== -1 ? 1 : me : 1,
238
+ opacity: ct.length !== 0 ? ct.indexOf(S[e]) !== -1 ? 1 : fe : 1,
239
239
  transition: {
240
240
  duration: n.duration
241
241
  }
242
242
  }
243
243
  }, initial: "initial", animate: m ? "whileInView" : "initial", children: [
244
- /* @__PURE__ */ s.jsx(Et.path, { style: {
244
+ /* @__PURE__ */ s.jsx(zt.path, { style: {
245
245
  fill: "none",
246
- strokeWidth: qt
247
- }, clipPath: `url(#${at})`, exit: {
246
+ strokeWidth: Kt
247
+ }, clipPath: `url(#${dt})`, exit: {
248
248
  opacity: 0,
249
249
  transition: {
250
250
  duration: n.duration
251
251
  }
252
252
  }, variants: {
253
253
  initial: {
254
- ...st.length === 0 ? {
254
+ ...ft.length === 0 ? {
255
255
  pathLength: 0
256
256
  } : {},
257
- d: N(o.filter(ki)) || "",
257
+ d: I(o.filter(ki)) || "",
258
258
  opacity: 1,
259
- stroke: D[e]
259
+ stroke: T[e]
260
260
  },
261
261
  whileInView: {
262
- ...st.length === 0 ? {
262
+ ...ft.length === 0 ? {
263
263
  pathLength: 1
264
264
  } : {},
265
- d: N(o.filter(Si)) || "",
265
+ d: I(o.filter(Si)) || "",
266
266
  opacity: 1,
267
- stroke: D[e],
267
+ stroke: T[e],
268
268
  transition: {
269
269
  duration: n.duration
270
270
  }
271
271
  }
272
- }, strokeDasharray: st.includes(T[e]) ? Mt[e % Mt.length] : void 0, initial: "initial", animate: m ? "whileInView" : "initial" }),
273
- o.map((u, Z) => /* @__PURE__ */ s.jsx("g", { children: A(u.y) ? null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
274
- Jt ? /* @__PURE__ */ s.jsx(Et.circle, { r: c / f.length < 5 ? 0 : c / f.length < 20 ? 2 : 4, exit: {
272
+ }, strokeDasharray: ft.includes(S[e]) ? Nt[e % Nt.length] : void 0, initial: "initial", animate: m ? "whileInView" : "initial" }),
273
+ o.map((u, nt) => /* @__PURE__ */ s.jsx("g", { children: b(u.y) ? null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
274
+ Qt ? /* @__PURE__ */ s.jsx(zt.circle, { r: c / d.length < 5 ? 0 : c / d.length < 20 ? 2 : 4, exit: {
275
275
  opacity: 0,
276
276
  transition: {
277
277
  duration: n.duration
@@ -279,25 +279,25 @@ function Li(i) {
279
279
  }, variants: {
280
280
  initial: {
281
281
  opacity: 0,
282
- fill: D[e],
282
+ fill: T[e],
283
283
  cx: r(u.date),
284
284
  cy: l(u.y)
285
285
  },
286
286
  whileInView: {
287
287
  opacity: 1,
288
- fill: D[e],
288
+ fill: T[e],
289
289
  transition: {
290
- duration: C ? n.duration : 0.5,
291
- delay: C ? 0 : n.duration
290
+ duration: A ? n.duration : 0.5,
291
+ delay: A ? 0 : n.duration
292
292
  },
293
293
  cx: r(u.date),
294
294
  cy: l(u.y)
295
295
  }
296
296
  }, initial: "initial", animate: m ? "whileInView" : "initial" }) : null,
297
- xe ? /* @__PURE__ */ s.jsx(Et.text, { dy: -8, style: {
297
+ ye ? /* @__PURE__ */ s.jsx(zt.text, { dy: -8, style: {
298
298
  textAnchor: "middle",
299
- ...y?.graphObjectValues || {}
300
- }, className: Ve("graph-value text-xs font-bold", x?.graphObjectValues), exit: {
299
+ ...v?.graphObjectValues || {}
300
+ }, className: He("graph-value text-xs font-bold", x?.graphObjectValues), exit: {
301
301
  opacity: 0,
302
302
  transition: {
303
303
  duration: n.duration
@@ -305,23 +305,23 @@ function Li(i) {
305
305
  }, variants: {
306
306
  initial: {
307
307
  opacity: 0,
308
- fill: D[e],
308
+ fill: T[e],
309
309
  x: r(u.date),
310
310
  y: l(u.y)
311
311
  },
312
312
  whileInView: {
313
313
  opacity: 1,
314
- fill: D[e],
314
+ fill: T[e],
315
315
  x: r(u.date),
316
316
  y: l(u.y),
317
317
  transition: {
318
- duration: C ? n.duration : 0.5,
319
- delay: C ? 0 : n.duration
318
+ duration: A ? n.duration : 0.5,
319
+ delay: A ? 0 : n.duration
320
320
  }
321
321
  }
322
- }, initial: "initial", animate: m ? "whileInView" : "initial", children: Pe(u.y, "NA", E, P, Y) }) : null
323
- ] }) }, Z)),
324
- ye || ve.includes(T[e]) ? null : /* @__PURE__ */ s.jsx(Et.text, { className: "text-xs", dx: 5, dy: 4, exit: {
322
+ }, initial: "initial", animate: m ? "whileInView" : "initial", children: Ge(u.y, "NA", J, z, B) }) : null
323
+ ] }) }, nt)),
324
+ ve || we.includes(S[e]) ? null : /* @__PURE__ */ s.jsx(zt.text, { className: "text-xs", dx: 5, dy: 4, exit: {
325
325
  opacity: 0,
326
326
  transition: {
327
327
  duration: n.duration
@@ -329,93 +329,93 @@ function Li(i) {
329
329
  }, variants: {
330
330
  initial: {
331
331
  opacity: 0,
332
- fill: D[e],
332
+ fill: T[e],
333
333
  x: r(o[o.length - 1].date),
334
334
  y: l(o[o.length - 1].y)
335
335
  },
336
336
  whileInView: {
337
337
  opacity: 1,
338
- fill: D[e],
338
+ fill: T[e],
339
339
  x: r(o[o.length - 1].date),
340
340
  y: l(o[o.length - 1].y),
341
341
  transition: {
342
- duration: C ? n.duration : 0.5,
343
- delay: C ? 0 : n.duration
342
+ duration: A ? n.duration : 0.5,
343
+ delay: A ? 0 : n.duration
344
344
  }
345
345
  }
346
- }, initial: "initial", animate: m ? "whileInView" : "initial", children: T[e] })
347
- ] }, T[e]));
348
- let se;
349
- t[101] !== x?.mouseOverLine || t[102] !== g || t[103] !== j || t[104] !== y?.mouseOverLine || t[105] !== r ? (se = j ? /* @__PURE__ */ s.jsx("line", { y1: 0, y2: g, x1: r(j.date), x2: r(j.date), className: Ve("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", x?.mouseOverLine), style: y?.mouseOverLine }) : null, t[101] = x?.mouseOverLine, t[102] = g, t[103] = j, t[104] = y?.mouseOverLine, t[105] = r, t[106] = se) : se = t[106];
350
- let Le;
351
- t[107] !== We || t[108] !== se ? (Le = /* @__PURE__ */ s.jsxs("g", { children: [
352
- We,
353
- se
354
- ] }), t[107] = We, t[108] = se, t[109] = Le) : Le = t[109];
355
- let De;
356
- t[110] !== n || t[111] !== c || t[112] !== m || t[113] !== w || t[114] !== p.right || t[115] !== Dt || t[116] !== l ? (De = Dt ? /* @__PURE__ */ s.jsx(s.Fragment, { children: Dt.map((o, e) => /* @__PURE__ */ s.jsx(ii, { text: o.text, color: o.color, y: l(o.value), x1: 0 - w, x2: c + p.right, classNames: o.classNames, styles: o.styles, animate: n, isInView: m }, e)) }) : null, t[110] = n, t[111] = c, t[112] = m, t[113] = w, t[114] = p.right, t[115] = Dt, t[116] = l, t[117] = De) : De = t[117];
346
+ }, initial: "initial", animate: m ? "whileInView" : "initial", children: S[e] })
347
+ ] }, S[e]));
357
348
  let ae;
358
- if (t[118] !== n || t[119] !== Tt || t[120] !== a || t[121] !== c || t[122] !== m || t[123] !== p.right || t[124] !== G || t[125] !== r || t[126] !== l) {
349
+ t[101] !== x?.mouseOverLine || t[102] !== g || t[103] !== D || t[104] !== v?.mouseOverLine || t[105] !== r ? (ae = D ? /* @__PURE__ */ s.jsx("line", { y1: 0, y2: g, x1: r(D.date), x2: r(D.date), className: He("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", x?.mouseOverLine), style: v?.mouseOverLine }) : null, t[101] = x?.mouseOverLine, t[102] = g, t[103] = D, t[104] = v?.mouseOverLine, t[105] = r, t[106] = ae) : ae = t[106];
350
+ let Te;
351
+ t[107] !== Pe || t[108] !== ae ? (Te = /* @__PURE__ */ s.jsxs("g", { children: [
352
+ Pe,
353
+ ae
354
+ ] }), t[107] = Pe, t[108] = ae, t[109] = Te) : Te = t[109];
355
+ let Se;
356
+ t[110] !== n || t[111] !== c || t[112] !== m || t[113] !== w || t[114] !== p.right || t[115] !== kt || t[116] !== l ? (Se = kt ? /* @__PURE__ */ s.jsx(s.Fragment, { children: kt.map((o, e) => /* @__PURE__ */ s.jsx(ii, { text: o.text, color: o.color, y: l(o.value), x1: 0 - w, x2: c + p.right, classNames: o.classNames, styles: o.styles, animate: n, isInView: m }, e)) }) : null, t[110] = n, t[111] = c, t[112] = m, t[113] = w, t[114] = p.right, t[115] = kt, t[116] = l, t[117] = Se) : Se = t[117];
357
+ let re;
358
+ if (t[118] !== n || t[119] !== Mt || t[120] !== a || t[121] !== c || t[122] !== m || t[123] !== p.right || t[124] !== q || t[125] !== r || t[126] !== l) {
359
359
  let o;
360
- t[128] !== n || t[129] !== a || t[130] !== c || t[131] !== m || t[132] !== p.right || t[133] !== G || t[134] !== r || t[135] !== l ? (o = (e, u) => {
361
- const Z = Qe({
362
- x: e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
360
+ t[128] !== n || t[129] !== a || t[130] !== c || t[131] !== m || t[132] !== p.right || t[133] !== q || t[134] !== r || t[135] !== l ? (o = (e, u) => {
361
+ const nt = Qe({
362
+ x: e.xCoordinate ? r(j(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
363
363
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
364
364
  }, {
365
- x: e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) : 0,
365
+ x: e.xCoordinate ? r(j(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) : 0,
366
366
  y: e.yCoordinate ? l(e.yCoordinate) : 0
367
- }, A(e.connectorRadius) ? 3.5 : e.connectorRadius), Be = e.showConnector ? {
368
- y1: Z.y,
369
- x1: Z.x,
367
+ }, b(e.connectorRadius) ? 3.5 : e.connectorRadius), Be = e.showConnector ? {
368
+ y1: nt.y,
369
+ x1: nt.x,
370
370
  y2: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
371
- x2: e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
371
+ x2: e.xCoordinate ? r(j(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
372
372
  cy: e.yCoordinate ? l(e.yCoordinate) : 0,
373
- cx: e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) : 0,
374
- circleRadius: A(e.connectorRadius) ? 3.5 : e.connectorRadius,
373
+ cx: e.xCoordinate ? r(j(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) : 0,
374
+ circleRadius: b(e.connectorRadius) ? 3.5 : e.connectorRadius,
375
375
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
376
376
  } : void 0, ze = {
377
377
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
378
- x: G ? 0 : e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
379
- width: G ? e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : c + p.right - (e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
378
+ x: q ? 0 : e.xCoordinate ? r(j(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
379
+ width: q ? e.xCoordinate ? r(j(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : c + p.right - (e.xCoordinate ? r(j(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
380
380
  maxWidth: e.maxWidth,
381
381
  fontWeight: e.fontWeight,
382
382
  align: e.align
383
383
  };
384
384
  return /* @__PURE__ */ s.jsx(Ze, { color: e.color, connectorsSettings: Be, labelSettings: ze, text: e.text, classNames: e.classNames, styles: e.styles, animate: n, isInView: m }, u);
385
- }, t[128] = n, t[129] = a, t[130] = c, t[131] = m, t[132] = p.right, t[133] = G, t[134] = r, t[135] = l, t[136] = o) : o = t[136], ae = Tt.map(o), t[118] = n, t[119] = Tt, t[120] = a, t[121] = c, t[122] = m, t[123] = p.right, t[124] = G, t[125] = r, t[126] = l, t[127] = ae;
385
+ }, t[128] = n, t[129] = a, t[130] = c, t[131] = m, t[132] = p.right, t[133] = q, t[134] = r, t[135] = l, t[136] = o) : o = t[136], re = Mt.map(o), t[118] = n, t[119] = Mt, t[120] = a, t[121] = c, t[122] = m, t[123] = p.right, t[124] = q, t[125] = r, t[126] = l, t[127] = re;
386
386
  } else
387
- ae = t[127];
388
- let Te;
389
- t[137] !== ae ? (Te = /* @__PURE__ */ s.jsx("g", { children: ae }), t[137] = ae, t[138] = Te) : Te = t[138];
390
- let Se;
391
- t[139] !== B ? (Se = B.filter(Ti).map(Di), t[139] = B, t[140] = Se) : Se = t[140];
387
+ re = t[127];
392
388
  let ke;
393
- t[141] === Symbol.for("react.memo_cache_sentinel") ? (ke = {
394
- fill: "none",
395
- pointerEvents: "all"
396
- }, t[141] = ke) : ke = t[141];
389
+ t[137] !== re ? (ke = /* @__PURE__ */ s.jsx("g", { children: re }), t[137] = re, t[138] = ke) : ke = t[138];
397
390
  let Me;
398
- t[142] !== ct || t[143] !== g || t[144] !== c ? (Me = /* @__PURE__ */ s.jsx("rect", { ref: ct, style: ke, width: c, height: g }), t[142] = ct, t[143] = g, t[144] = c, t[145] = Me) : Me = t[145];
391
+ t[139] !== K ? (Me = K.filter(Ti).map(Di), t[139] = K, t[140] = Me) : Me = t[140];
399
392
  let $e;
400
- return t[146] !== x?.tooltip || t[147] !== z || t[148] !== U || t[149] !== j || t[150] !== y?.tooltip || t[151] !== et ? ($e = j && et && z && U ? /* @__PURE__ */ s.jsx(Je, { data: j, body: et, xPos: z, yPos: U, backgroundStyle: y?.tooltip, className: x?.tooltip }) : null, t[146] = x?.tooltip, t[147] = z, t[148] = U, t[149] = j, t[150] = y?.tooltip, t[151] = et, t[152] = $e) : $e = t[152], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
401
- /* @__PURE__ */ s.jsx(Et.svg, { width: `${_}px`, height: `${Bt}px`, viewBox: `0 0 ${_} ${Bt}`, direction: "ltr", ref: Qt, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${p.left},${p.top})`, children: [
402
- pt,
403
- gt,
404
- /* @__PURE__ */ s.jsx(Ke, { areaSettings: ue, scaleX: r, scaleY: l, animate: n, isInView: m }),
393
+ t[141] === Symbol.for("react.memo_cache_sentinel") ? ($e = {
394
+ fill: "none",
395
+ pointerEvents: "all"
396
+ }, t[141] = $e) : $e = t[141];
397
+ let Ve;
398
+ t[142] !== ht || t[143] !== g || t[144] !== c ? (Ve = /* @__PURE__ */ s.jsx("rect", { ref: ht, style: $e, width: c, height: g }), t[142] = ht, t[143] = g, t[144] = c, t[145] = Ve) : Ve = t[145];
399
+ let Ne;
400
+ return t[146] !== x?.tooltip || t[147] !== Q || t[148] !== Z || t[149] !== D || t[150] !== v?.tooltip || t[151] !== rt ? (Ne = D && rt && Q && Z ? /* @__PURE__ */ s.jsx(Je, { data: D, body: rt, xPos: Q, yPos: Z, backgroundStyle: v?.tooltip, className: x?.tooltip }) : null, t[146] = x?.tooltip, t[147] = Q, t[148] = Z, t[149] = D, t[150] = v?.tooltip, t[151] = rt, t[152] = Ne) : Ne = t[152], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
401
+ /* @__PURE__ */ s.jsx(zt.svg, { width: `${st}px`, height: `${Ut}px`, viewBox: `0 0 ${st} ${Ut}`, direction: "ltr", ref: _t, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${p.left},${p.top})`, children: [
402
+ wt,
403
+ Ct,
404
+ /* @__PURE__ */ s.jsx(Ke, { areaSettings: he, scaleX: r, scaleY: l, animate: n, isInView: m }),
405
405
  /* @__PURE__ */ s.jsxs("g", { children: [
406
- /* @__PURE__ */ s.jsx(oi, { values: _t.filter(Ni), y: _t.filter(Vi).map((o) => l(o)), x1: 0 - w, x2: c + p.right, styles: xt, classNames: K, suffix: Y, prefix: P, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: E }),
406
+ /* @__PURE__ */ s.jsx(oi, { values: ee.filter(Ni), y: ee.filter(Vi).map((o) => l(o)), x1: 0 - w, x2: c + p.right, styles: At, classNames: et, suffix: B, prefix: z, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: J }),
407
407
  $,
408
- Gt
408
+ V
409
409
  ] }),
410
- /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(ei, { values: Ge, x: Ee, y1: 0, y2: g, styles: be, classNames: Oe, suffix: Y, prefix: P, labelType: "primary", showGridLines: !0, precision: E }) }),
411
- je,
412
- Le,
410
+ /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(ei, { values: be, x: Oe, y1: 0, y2: g, styles: Le, classNames: je, suffix: B, prefix: z, labelType: "primary", showGridLines: !0, precision: J }) }),
413
411
  De,
414
412
  Te,
415
413
  Se,
416
- Me
414
+ ke,
415
+ Me,
416
+ Ve
417
417
  ] }) }),
418
- $e
418
+ Ne
419
419
  ] });
420
420
  }
421
421
  function Di(i) {
@@ -425,10 +425,10 @@ function Ti(i) {
425
425
  return i.position === "after";
426
426
  }
427
427
  function Si(i) {
428
- return !A(i.y);
428
+ return !b(i.y);
429
429
  }
430
430
  function ki(i) {
431
- return !A(i.y);
431
+ return !b(i.y);
432
432
  }
433
433
  function Mi(i) {
434
434
  return i.layer;
@@ -449,164 +449,171 @@ function Ii(i) {
449
449
  return Math.max(...i.y.filter(Ri));
450
450
  }
451
451
  function Ri(i) {
452
- return !A(i);
452
+ return !b(i);
453
453
  }
454
454
  function Fi(i) {
455
455
  return Math.max(...i.y.filter(Wi));
456
456
  }
457
457
  function Wi(i) {
458
- return !A(i);
458
+ return !b(i);
459
459
  }
460
460
  function Yi(i) {
461
461
  return Math.min(...i.y.filter(Pi));
462
462
  }
463
463
  function Pi(i) {
464
- return !A(i);
464
+ return !b(i);
465
465
  }
466
466
  function Xi(i) {
467
467
  return Math.min(...i.y.filter(Gi));
468
468
  }
469
469
  function Gi(i) {
470
- return !A(i);
470
+ return !b(i);
471
471
  }
472
472
  function Ei(i) {
473
473
  return Math.min(...i.y.filter(Bi));
474
474
  }
475
475
  function Bi(i) {
476
- return !A(i);
476
+ return !b(i);
477
477
  }
478
478
  function zi(i) {
479
- return !A(i.y);
479
+ return !b(i.y);
480
480
  }
481
481
  function ko(i) {
482
- const t = Xe.c(99), {
483
- data: L,
484
- graphTitle: _,
485
- lineColors: Bt,
486
- suffix: D,
482
+ const t = Ee.c(113), {
483
+ data: y,
484
+ graphTitle: st,
485
+ lineColors: Ut,
486
+ suffix: T,
487
487
  sources: a,
488
- prefix: ge,
489
- graphDescription: T,
490
- height: Lt,
491
- width: b,
492
- footNote: tt,
493
- noOfXTicks: Y,
494
- dateFormat: P,
488
+ prefix: xe,
489
+ graphDescription: S,
490
+ height: St,
491
+ width: O,
492
+ footNote: at,
493
+ noOfXTicks: B,
494
+ dateFormat: z,
495
495
  labels: w,
496
- padding: et,
497
- showValues: zt,
498
- backgroundColor: xe,
499
- leftMargin: ye,
500
- rightMargin: Dt,
501
- topMargin: Ut,
502
- bottomMargin: X,
503
- tooltip: it,
504
- relativeHeight: ot,
496
+ padding: rt,
497
+ showValues: qt,
498
+ backgroundColor: ye,
499
+ leftMargin: ve,
500
+ rightMargin: kt,
501
+ topMargin: Jt,
502
+ bottomMargin: U,
503
+ tooltip: lt,
504
+ relativeHeight: ct,
505
505
  onSeriesMouseOver: n,
506
- showColorLegendAtTop: G,
507
- refValues: qt,
508
- highlightAreaSettings: Jt,
509
- graphID: Tt,
510
- minValue: St,
511
- maxValue: nt,
512
- highlightedLines: Kt,
513
- graphDownload: le,
514
- dataDownload: ce,
515
- animate: kt,
516
- language: y,
506
+ showColorLegendAtTop: q,
507
+ refValues: Kt,
508
+ highlightAreaSettings: Qt,
509
+ graphID: Mt,
510
+ minValue: $t,
511
+ maxValue: mt,
512
+ highlightedLines: Zt,
513
+ graphDownload: ce,
514
+ dataDownload: me,
515
+ animate: Vt,
516
+ language: v,
517
517
  colorLegendTitle: x,
518
- minHeight: me,
519
- strokeWidth: E,
520
- showDots: B,
521
- annotations: st,
522
- customHighlightAreaSettings: Mt,
523
- theme: ve,
524
- ariaLabel: at,
525
- yAxisTitle: Qt,
526
- noOfYTicks: $t,
518
+ minHeight: fe,
519
+ strokeWidth: J,
520
+ showDots: K,
521
+ annotations: ft,
522
+ customHighlightAreaSettings: Nt,
523
+ theme: we,
524
+ ariaLabel: dt,
525
+ yAxisTitle: _t,
526
+ noOfYTicks: Ht,
527
527
  minDate: m,
528
- maxDate: C,
529
- curveType: we,
528
+ maxDate: A,
529
+ curveType: Ce,
530
530
  styles: h,
531
- classNames: d,
532
- dimmedOpacity: Ce,
533
- precision: j,
534
- customLayers: Vt,
535
- dashedLines: z,
536
- dashSettings: Nt,
537
- labelsToBeHidden: U,
538
- showColorScale: fe
539
- } = i, rt = Bt === void 0 ? wi.light.categoricalColors.colors : Bt, lt = D === void 0 ? "" : D, p = ge === void 0 ? "" : ge, ct = Y === void 0 ? 10 : Y, mt = P === void 0 ? "yyyy" : P, f = zt === void 0 ? !1 : zt, de = xe === void 0 ? !1 : xe, ft = ye === void 0 ? 30 : ye, Ht = Dt === void 0 ? 50 : Dt, dt = Ut === void 0 ? 20 : Ut, ue = X === void 0 ? 25 : X, c = G === void 0 ? !1 : G;
531
+ classNames: f,
532
+ dimmedOpacity: Ae,
533
+ precision: D,
534
+ customLayers: It,
535
+ dashedLines: Q,
536
+ dashSettings: Rt,
537
+ labelsToBeHidden: Z,
538
+ showColorScale: de
539
+ } = i, N = Ut === void 0 ? wi.light.categoricalColors.colors : Ut, ut = T === void 0 ? "" : T, p = xe === void 0 ? "" : xe, ht = B === void 0 ? 10 : B, pt = z === void 0 ? "yyyy" : z, d = qt === void 0 ? !1 : qt, ue = ye === void 0 ? !1 : ye, gt = ve === void 0 ? 30 : ve, Ft = kt === void 0 ? 50 : kt, xt = Jt === void 0 ? 20 : Jt, he = U === void 0 ? 25 : U, c = q === void 0 ? !1 : q;
540
540
  let g;
541
- t[0] !== qt ? (g = qt === void 0 ? [] : qt, t[0] = qt, t[1] = g) : g = t[1];
542
- const he = g;
543
- let Zt;
544
- t[2] !== Jt ? (Zt = Jt === void 0 ? [] : Jt, t[2] = Jt, t[3] = Zt) : Zt = t[3];
545
- const v = Zt;
546
- let V;
547
- t[4] !== Kt ? (V = Kt === void 0 ? [] : Kt, t[4] = Kt, t[5] = V) : V = t[5];
548
- const r = V, q = le === void 0 ? !1 : le, J = ce === void 0 ? !1 : ce, l = kt === void 0 ? !1 : kt, N = y === void 0 ? "en" : y, _t = me === void 0 ? 0 : me, te = E === void 0 ? 2 : E, ut = B === void 0 ? !0 : B;
549
- let S;
550
- t[6] !== st ? (S = st === void 0 ? [] : st, t[6] = st, t[7] = S) : S = t[7];
551
- const H = S;
552
- let ht;
553
- t[8] !== Mt ? (ht = Mt === void 0 ? [] : Mt, t[8] = Mt, t[9] = ht) : ht = t[9];
554
- const I = ht, pt = ve === void 0 ? "light" : ve, gt = $t === void 0 ? 5 : $t, It = we === void 0 ? "curve" : we, Rt = Ce === void 0 ? 0.3 : Ce, xt = j === void 0 ? 2 : j;
555
- let yt;
556
- t[10] !== Vt ? (yt = Vt === void 0 ? [] : Vt, t[10] = Vt, t[11] = yt) : yt = t[11];
557
- const Ft = yt;
558
- let K;
559
- t[12] !== z ? (K = z === void 0 ? [] : z, t[12] = z, t[13] = K) : K = t[13];
560
- const Wt = K;
541
+ t[0] !== Kt ? (g = Kt === void 0 ? [] : Kt, t[0] = Kt, t[1] = g) : g = t[1];
542
+ const pe = g;
543
+ let te;
544
+ t[2] !== Qt ? (te = Qt === void 0 ? [] : Qt, t[2] = Qt, t[3] = te) : te = t[3];
545
+ const C = te;
546
+ let H;
547
+ t[4] !== Zt ? (H = Zt === void 0 ? [] : Zt, t[4] = Zt, t[5] = H) : H = t[5];
548
+ const r = H, _ = ce === void 0 ? !1 : ce, tt = me === void 0 ? !1 : me, l = Vt === void 0 ? !1 : Vt, I = v === void 0 ? "en" : v, ee = fe === void 0 ? 0 : fe, ie = J === void 0 ? 2 : J, yt = K === void 0 ? !0 : K;
549
+ let k;
550
+ t[6] !== ft ? (k = ft === void 0 ? [] : ft, t[6] = ft, t[7] = k) : k = t[7];
551
+ const R = k;
561
552
  let vt;
562
- t[14] !== Nt ? (vt = Nt === void 0 ? ["5 5"] : Nt, t[14] = Nt, t[15] = vt) : vt = t[15];
563
- const Yt = vt;
564
- let wt;
565
- t[16] !== U ? (wt = U === void 0 ? [] : U, t[16] = U, t[17] = wt) : wt = t[17];
566
- const Ct = wt, k = fe === void 0 ? !0 : fe, [Q, pe] = re(0), [At, bt] = re(0), Pt = Ne(null), ee = Ne(null);
567
- let M, Ot;
553
+ t[8] !== Nt ? (vt = Nt === void 0 ? [] : Nt, t[8] = Nt, t[9] = vt) : vt = t[9];
554
+ const F = vt, wt = we === void 0 ? "light" : we, Ct = Ht === void 0 ? 5 : Ht, Wt = Ce === void 0 ? "curve" : Ce, Yt = Ae === void 0 ? 0.3 : Ae, At = D === void 0 ? 2 : D;
555
+ let bt;
556
+ t[10] !== It ? (bt = It === void 0 ? [] : It, t[10] = It, t[11] = bt) : bt = t[11];
557
+ const Pt = bt;
558
+ let et;
559
+ t[12] !== Q ? (et = Q === void 0 ? [] : Q, t[12] = Q, t[13] = et) : et = t[13];
560
+ const Xt = et;
561
+ let Ot;
562
+ t[14] !== Rt ? (Ot = Rt === void 0 ? ["5 5"] : Rt, t[14] = Rt, t[15] = Ot) : Ot = t[15];
563
+ const Gt = Ot;
564
+ let Lt;
565
+ t[16] !== Z ? (Lt = Z === void 0 ? [] : Z, t[16] = Z, t[17] = Lt) : Lt = t[17];
566
+ const W = Lt, L = de === void 0 ? !0 : de, [it, ge] = le(0), [jt, Dt] = le(0), Et = Ie(null), oe = Ie(null);
567
+ let M, Tt;
568
568
  t[18] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
569
- const ie = new ResizeObserver((Gt) => {
570
- pe(Gt[0].target.clientWidth || 620), bt(Gt[0].target.clientHeight || 480);
569
+ const be = new ResizeObserver((Oe) => {
570
+ ge(Oe[0].target.clientWidth || 620), Dt(Oe[0].target.clientHeight || 480);
571
571
  });
572
- return Pt.current && ie.observe(Pt.current), () => ie.disconnect();
573
- }, Ot = [], t[18] = M, t[19] = Ot) : (M = t[18], Ot = t[19]), Ye(M, Ot);
574
- const Xt = d?.graphContainer, R = h?.graphContainer;
572
+ return Et.current && be.observe(Et.current), () => be.disconnect();
573
+ }, Tt = [], t[18] = M, t[19] = Tt) : (M = t[18], Tt = t[19]), Xe(M, Tt);
574
+ const Bt = f?.graphContainer, Y = h?.graphContainer;
575
575
  let $;
576
- t[20] !== d?.description || t[21] !== d?.title || t[22] !== L || t[23] !== J || t[24] !== T || t[25] !== q || t[26] !== _ || t[27] !== h?.description || t[28] !== h?.title || t[29] !== b ? ($ = _ || T || q || J ? /* @__PURE__ */ s.jsx(yi, { styles: {
576
+ t[20] !== f?.description || t[21] !== f?.title || t[22] !== y || t[23] !== tt || t[24] !== S || t[25] !== _ || t[26] !== st || t[27] !== h?.description || t[28] !== h?.title || t[29] !== O ? ($ = st || S || _ || tt ? /* @__PURE__ */ s.jsx(yi, { styles: {
577
577
  title: h?.title,
578
578
  description: h?.description
579
579
  }, classNames: {
580
- title: d?.title,
581
- description: d?.description
582
- }, graphTitle: _, graphDescription: T, width: b, graphDownload: q ? ee : void 0, dataDownload: J ? L.map(Qi).filter(Ki).length > 0 ? L.map(Ji).filter(qi) : L.filter(Ui) : null }) : null, t[20] = d?.description, t[21] = d?.title, t[22] = L, t[23] = J, t[24] = T, t[25] = q, t[26] = _, t[27] = h?.description, t[28] = h?.title, t[29] = b, t[30] = $) : $ = t[30];
583
- let F;
584
- t[31] !== l || t[32] !== H || t[33] !== ue || t[34] !== d || t[35] !== x || t[36] !== It || t[37] !== I || t[38] !== Ft || t[39] !== Yt || t[40] !== Wt || t[41] !== L || t[42] !== mt || t[43] !== Rt || t[44] !== v || t[45] !== r || t[46] !== w || t[47] !== Ct || t[48] !== N || t[49] !== ft || t[50] !== rt || t[51] !== C || t[52] !== nt || t[53] !== m || t[54] !== St || t[55] !== ct || t[56] !== gt || t[57] !== n || t[58] !== xt || t[59] !== p || t[60] !== he || t[61] !== Ht || t[62] !== c || t[63] !== k || t[64] !== ut || t[65] !== f || t[66] !== te || t[67] !== h || t[68] !== lt || t[69] !== At || t[70] !== Q || t[71] !== it || t[72] !== dt || t[73] !== Qt ? (F = L.length === 0 ? /* @__PURE__ */ s.jsx(Ci, {}) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
585
- c && k ? /* @__PURE__ */ s.jsx(vi, { colorDomain: w, colorLegendTitle: x, labelsToBeHidden: Ct, colors: rt, showNAColor: !1, className: d?.colorLegend }) : null,
586
- /* @__PURE__ */ s.jsx(bi, { ref: Pt, children: Q && At ? /* @__PURE__ */ s.jsx(Li, { data: L, lineColors: rt, width: Q, height: At, dateFormat: mt, noOfXTicks: ct ?? ji(Q), leftMargin: ft, rightMargin: Ht, topMargin: dt, bottomMargin: ue, labels: w, tooltip: it, onSeriesMouseOver: n, showColorLegendAtTop: k ? c : !0, showValues: f, suffix: lt, prefix: p, highlightAreaSettings: v, refValues: he, minValue: St, maxValue: nt, highlightedLines: r, animate: l === !0 ? {
587
- duration: 0.5,
588
- once: !0,
589
- amount: 0.5
590
- } : l || {
591
- duration: 0,
592
- once: !0,
593
- amount: 0
594
- }, rtl: N === "he" || N === "ar", strokeWidth: te, showDots: ut, annotations: H, customHighlightAreaSettings: I, yAxisTitle: Qt, noOfYTicks: gt, minDate: m, maxDate: C, curveType: It, styles: h, classNames: d, dimmedOpacity: Rt, precision: xt, customLayers: Ft, labelsToBeHidden: Ct, dashedLines: Wt, dashSettings: Yt, revealClipId: Ai(8) }) : null })
595
- ] }), t[31] = l, t[32] = H, t[33] = ue, t[34] = d, t[35] = x, t[36] = It, t[37] = I, t[38] = Ft, t[39] = Yt, t[40] = Wt, t[41] = L, t[42] = mt, t[43] = Rt, t[44] = v, t[45] = r, t[46] = w, t[47] = Ct, t[48] = N, t[49] = ft, t[50] = rt, t[51] = C, t[52] = nt, t[53] = m, t[54] = St, t[55] = ct, t[56] = gt, t[57] = n, t[58] = xt, t[59] = p, t[60] = he, t[61] = Ht, t[62] = c, t[63] = k, t[64] = ut, t[65] = f, t[66] = te, t[67] = h, t[68] = lt, t[69] = At, t[70] = Q, t[71] = it, t[72] = dt, t[73] = Qt, t[74] = F) : F = t[74];
596
- let W;
597
- t[75] !== d?.footnote || t[76] !== d?.source || t[77] !== tt || t[78] !== a || t[79] !== h?.footnote || t[80] !== h?.source || t[81] !== b ? (W = a || tt ? /* @__PURE__ */ s.jsx(xi, { styles: {
580
+ title: f?.title,
581
+ description: f?.description
582
+ }, graphTitle: st, graphDescription: S, width: O, graphDownload: _ ? oe : void 0, dataDownload: tt ? y.map(Qi).filter(Ki).length > 0 ? y.map(Ji).filter(qi) : y.filter(Ui) : null }) : null, t[20] = f?.description, t[21] = f?.title, t[22] = y, t[23] = tt, t[24] = S, t[25] = _, t[26] = st, t[27] = h?.description, t[28] = h?.title, t[29] = O, t[30] = $) : $ = t[30];
583
+ let P;
584
+ t[31] !== f?.colorLegend || t[32] !== x || t[33] !== y.length || t[34] !== w || t[35] !== W || t[36] !== N || t[37] !== c || t[38] !== L ? (P = c && L && y.length > 0 ? /* @__PURE__ */ s.jsx(vi, { colorDomain: w, colorLegendTitle: x, labelsToBeHidden: W, colors: N, showNAColor: !1, className: f?.colorLegend }) : null, t[31] = f?.colorLegend, t[32] = x, t[33] = y.length, t[34] = w, t[35] = W, t[36] = N, t[37] = c, t[38] = L, t[39] = P) : P = t[39];
585
+ let X;
586
+ t[40] !== y.length ? (X = y.length === 0 && /* @__PURE__ */ s.jsx(Ci, {}), t[40] = y.length, t[41] = X) : X = t[41];
587
+ let G;
588
+ t[42] !== l || t[43] !== R || t[44] !== he || t[45] !== f || t[46] !== Wt || t[47] !== F || t[48] !== Pt || t[49] !== Gt || t[50] !== Xt || t[51] !== y || t[52] !== pt || t[53] !== Yt || t[54] !== C || t[55] !== r || t[56] !== w || t[57] !== W || t[58] !== I || t[59] !== gt || t[60] !== N || t[61] !== A || t[62] !== mt || t[63] !== m || t[64] !== $t || t[65] !== ht || t[66] !== Ct || t[67] !== n || t[68] !== At || t[69] !== p || t[70] !== pe || t[71] !== Ft || t[72] !== c || t[73] !== L || t[74] !== yt || t[75] !== d || t[76] !== ie || t[77] !== h || t[78] !== ut || t[79] !== jt || t[80] !== it || t[81] !== lt || t[82] !== xt || t[83] !== _t ? (G = it && jt && y.length > 0 ? /* @__PURE__ */ s.jsx(ji, { data: y, lineColors: N, width: it, height: jt, dateFormat: pt, noOfXTicks: ht ?? Li(it), leftMargin: gt, rightMargin: Ft, topMargin: xt, bottomMargin: he, labels: w, tooltip: lt, onSeriesMouseOver: n, showColorLegendAtTop: L ? c : !0, showValues: d, suffix: ut, prefix: p, highlightAreaSettings: C, refValues: pe, minValue: $t, maxValue: mt, highlightedLines: r, animate: l === !0 ? {
589
+ duration: 0.5,
590
+ once: !0,
591
+ amount: 0.5
592
+ } : l || {
593
+ duration: 0,
594
+ once: !0,
595
+ amount: 0
596
+ }, rtl: I === "he" || I === "ar", strokeWidth: ie, showDots: yt, annotations: R, customHighlightAreaSettings: F, yAxisTitle: _t, noOfYTicks: Ct, minDate: m, maxDate: A, curveType: Wt, styles: h, classNames: f, dimmedOpacity: Yt, precision: At, customLayers: Pt, labelsToBeHidden: W, dashedLines: Xt, dashSettings: Gt, revealClipId: Ai(8) }) : null, t[42] = l, t[43] = R, t[44] = he, t[45] = f, t[46] = Wt, t[47] = F, t[48] = Pt, t[49] = Gt, t[50] = Xt, t[51] = y, t[52] = pt, t[53] = Yt, t[54] = C, t[55] = r, t[56] = w, t[57] = W, t[58] = I, t[59] = gt, t[60] = N, t[61] = A, t[62] = mt, t[63] = m, t[64] = $t, t[65] = ht, t[66] = Ct, t[67] = n, t[68] = At, t[69] = p, t[70] = pe, t[71] = Ft, t[72] = c, t[73] = L, t[74] = yt, t[75] = d, t[76] = ie, t[77] = h, t[78] = ut, t[79] = jt, t[80] = it, t[81] = lt, t[82] = xt, t[83] = _t, t[84] = G) : G = t[84];
597
+ let E;
598
+ t[85] !== X || t[86] !== G ? (E = /* @__PURE__ */ s.jsxs(bi, { ref: Et, children: [
599
+ X,
600
+ G
601
+ ] }), t[85] = X, t[86] = G, t[87] = E) : E = t[87];
602
+ let V;
603
+ t[88] !== f?.footnote || t[89] !== f?.source || t[90] !== at || t[91] !== a || t[92] !== h?.footnote || t[93] !== h?.source || t[94] !== O ? (V = a || at ? /* @__PURE__ */ s.jsx(xi, { styles: {
598
604
  footnote: h?.footnote,
599
605
  source: h?.source
600
606
  }, classNames: {
601
- footnote: d?.footnote,
602
- source: d?.source
603
- }, sources: a, footNote: tt, width: b }) : null, t[75] = d?.footnote, t[76] = d?.source, t[77] = tt, t[78] = a, t[79] = h?.footnote, t[80] = h?.source, t[81] = b, t[82] = W) : W = t[82];
604
- let jt;
605
- return t[83] !== at || t[84] !== de || t[85] !== Tt || t[86] !== Lt || t[87] !== N || t[88] !== _t || t[89] !== et || t[90] !== ot || t[91] !== Xt || t[92] !== R || t[93] !== $ || t[94] !== F || t[95] !== W || t[96] !== pt || t[97] !== b ? (jt = /* @__PURE__ */ s.jsxs(Oi, { className: Xt, style: R, id: Tt, ref: ee, "aria-label": at, backgroundColor: de, theme: pt, language: N, minHeight: _t, width: b, height: Lt, relativeHeight: ot, padding: et, children: [
607
+ footnote: f?.footnote,
608
+ source: f?.source
609
+ }, sources: a, footNote: at, width: O }) : null, t[88] = f?.footnote, t[89] = f?.source, t[90] = at, t[91] = a, t[92] = h?.footnote, t[93] = h?.source, t[94] = O, t[95] = V) : V = t[95];
610
+ let ot;
611
+ return t[96] !== dt || t[97] !== ue || t[98] !== Mt || t[99] !== St || t[100] !== I || t[101] !== ee || t[102] !== rt || t[103] !== ct || t[104] !== Bt || t[105] !== Y || t[106] !== $ || t[107] !== P || t[108] !== E || t[109] !== V || t[110] !== wt || t[111] !== O ? (ot = /* @__PURE__ */ s.jsxs(Oi, { className: Bt, style: Y, id: Mt, ref: oe, "aria-label": dt, backgroundColor: ue, theme: wt, language: I, minHeight: ee, width: O, height: St, relativeHeight: ct, padding: rt, children: [
606
612
  $,
607
- F,
608
- W
609
- ] }), t[83] = at, t[84] = de, t[85] = Tt, t[86] = Lt, t[87] = N, t[88] = _t, t[89] = et, t[90] = ot, t[91] = Xt, t[92] = R, t[93] = $, t[94] = F, t[95] = W, t[96] = pt, t[97] = b, t[98] = jt) : jt = t[98], jt;
613
+ P,
614
+ E,
615
+ V
616
+ ] }), t[96] = dt, t[97] = ue, t[98] = Mt, t[99] = St, t[100] = I, t[101] = ee, t[102] = rt, t[103] = ct, t[104] = Bt, t[105] = Y, t[106] = $, t[107] = P, t[108] = E, t[109] = V, t[110] = wt, t[111] = O, t[112] = ot) : ot = t[112], ot;
610
617
  }
611
618
  function Ui(i) {
612
619
  return i !== void 0;