@undp/data-viz 2.0.0 → 2.0.2

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 (140) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +959 -959
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BasicStatCard.cjs +1 -1
  6. package/dist/BasicStatCard.cjs.map +1 -1
  7. package/dist/BasicStatCard.js +45 -47
  8. package/dist/BasicStatCard.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +76 -56
  12. package/dist/BeeSwarmChart.js.map +1 -1
  13. package/dist/BiVariateChoroplethMap.cjs +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  15. package/dist/BiVariateChoroplethMap.js +157 -157
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/BulletChart.cjs +1 -1
  18. package/dist/BulletChart.js +2 -2
  19. package/dist/ButterflyChart.cjs +1 -1
  20. package/dist/ButterflyChart.js +1 -1
  21. package/dist/ChoroplethMap.cjs +1 -1
  22. package/dist/ChoroplethMap.cjs.map +1 -1
  23. package/dist/ChoroplethMap.js +185 -185
  24. package/dist/ChoroplethMap.js.map +1 -1
  25. package/dist/CirclePackingGraph.cjs +1 -1
  26. package/dist/CirclePackingGraph.js +2 -4
  27. package/dist/CirclePackingGraph.js.map +1 -1
  28. package/dist/Data/barChart.json +70 -0
  29. package/dist/Data/basic.csv +20 -0
  30. package/dist/DifferenceLineChart.cjs +1 -1
  31. package/dist/DifferenceLineChart.cjs.map +1 -1
  32. package/dist/DifferenceLineChart.js +224 -223
  33. package/dist/DifferenceLineChart.js.map +1 -1
  34. package/dist/DonutChart.cjs +1 -1
  35. package/dist/DonutChart.cjs.map +1 -1
  36. package/dist/DonutChart.js +32 -24
  37. package/dist/DonutChart.js.map +1 -1
  38. package/dist/DotDensityMap.cjs +1 -1
  39. package/dist/DotDensityMap.cjs.map +1 -1
  40. package/dist/DotDensityMap.js +156 -156
  41. package/dist/DotDensityMap.js.map +1 -1
  42. package/dist/DualAxisLineChart.cjs +1 -1
  43. package/dist/DualAxisLineChart.cjs.map +1 -1
  44. package/dist/DualAxisLineChart.js +326 -325
  45. package/dist/DualAxisLineChart.js.map +1 -1
  46. package/dist/DumbbellChart.cjs +1 -1
  47. package/dist/DumbbellChart.js +2 -2
  48. package/dist/GeoHubCompareMaps.cjs +1 -1
  49. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  50. package/dist/GeoHubCompareMaps.js +183 -183
  51. package/dist/GeoHubCompareMaps.js.map +1 -1
  52. package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
  53. package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
  54. package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
  55. package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
  56. package/dist/GriddedGraphs.cjs +1 -1
  57. package/dist/GriddedGraphs.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.js +2 -2
  60. package/dist/Histogram.cjs +1 -1
  61. package/dist/Histogram.js +1 -1
  62. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  63. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  64. package/dist/LineChartWithConfidenceInterval.js +133 -132
  65. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  66. package/dist/MultiGraphDashboard.cjs +1 -1
  67. package/dist/MultiGraphDashboard.cjs.map +1 -1
  68. package/dist/MultiGraphDashboard.js +52 -50
  69. package/dist/MultiGraphDashboard.js.map +1 -1
  70. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  71. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
  73. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  74. package/dist/MultiLineAltChart.cjs +1 -1
  75. package/dist/MultiLineAltChart.cjs.map +1 -1
  76. package/dist/MultiLineAltChart.js +149 -148
  77. package/dist/MultiLineAltChart.js.map +1 -1
  78. package/dist/MultiLineChart.cjs +1 -1
  79. package/dist/MultiLineChart.cjs.map +1 -1
  80. package/dist/MultiLineChart.js +182 -181
  81. package/dist/MultiLineChart.js.map +1 -1
  82. package/dist/ParetoChart.cjs +1 -1
  83. package/dist/ParetoChart.js +1 -1
  84. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  85. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  86. package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
  87. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  88. package/dist/SimpleLineChart.cjs +1 -1
  89. package/dist/SimpleLineChart.cjs.map +1 -1
  90. package/dist/SimpleLineChart.js +123 -122
  91. package/dist/SimpleLineChart.js.map +1 -1
  92. package/dist/SingleGraphDashboard.cjs +1 -1
  93. package/dist/SingleGraphDashboard.cjs.map +1 -1
  94. package/dist/SingleGraphDashboard.js +83 -79
  95. package/dist/SingleGraphDashboard.js.map +1 -1
  96. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  97. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  98. package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
  99. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  100. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  101. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  102. package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
  103. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  104. package/dist/StatCardFromData.cjs +1 -1
  105. package/dist/StatCardFromData.cjs.map +1 -1
  106. package/dist/StatCardFromData.js +44 -46
  107. package/dist/StatCardFromData.js.map +1 -1
  108. package/dist/ThreeDGlobe.cjs +1 -1
  109. package/dist/ThreeDGlobe.cjs.map +1 -1
  110. package/dist/ThreeDGlobe.js +134 -134
  111. package/dist/ThreeDGlobe.js.map +1 -1
  112. package/dist/{XAxesLabels-D5X8jngD.cjs → XAxesLabels-C1XSXoWG.cjs} +2 -2
  113. package/dist/XAxesLabels-C1XSXoWG.cjs.map +1 -0
  114. package/dist/{XAxesLabels-DNO0KmjL.js → XAxesLabels-Dmbk50u4.js} +18 -16
  115. package/dist/XAxesLabels-Dmbk50u4.js.map +1 -0
  116. package/dist/YAxesLabels-1XTb-D0_.js +72 -0
  117. package/dist/YAxesLabels-1XTb-D0_.js.map +1 -0
  118. package/dist/YAxesLabels-pjdsVwIM.cjs +2 -0
  119. package/dist/YAxesLabels-pjdsVwIM.cjs.map +1 -0
  120. package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
  121. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
  122. package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
  123. package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
  124. package/dist/index-C6LorfZ-.cjs +2 -0
  125. package/dist/index-C6LorfZ-.cjs.map +1 -0
  126. package/dist/index-Ceppbd8C.js +342 -0
  127. package/dist/index-Ceppbd8C.js.map +1 -0
  128. package/dist/index.cjs +1 -1
  129. package/dist/index.js +1 -1
  130. package/package.json +1 -1
  131. package/dist/XAxesLabels-D5X8jngD.cjs.map +0 -1
  132. package/dist/XAxesLabels-DNO0KmjL.js.map +0 -1
  133. package/dist/YAxesLabels-DcS85Beo.cjs +0 -2
  134. package/dist/YAxesLabels-DcS85Beo.cjs.map +0 -1
  135. package/dist/YAxesLabels-Dnnng49-.js +0 -70
  136. package/dist/YAxesLabels-Dnnng49-.js.map +0 -1
  137. package/dist/index-DoY3Ga3W.cjs +0 -2
  138. package/dist/index-DoY3Ga3W.cjs.map +0 -1
  139. package/dist/index-leTnKT2q.js +0 -329
  140. package/dist/index-leTnKT2q.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { c as Ge, j as s, m as Ve } from "./index-CHPV5EwG-Curnpaqc.js";
1
+ import { c as Xe, j as s, m as Ve } from "./index-CHPV5EwG-Curnpaqc.js";
2
2
  import { useRef as Ne, useState as re, useEffect as Ye } from "react";
3
3
  import { p as O, f as Ue } from "./parse-DlCRUFh_.js";
4
4
  import { o as qe } from "./index-BZQYSqar.js";
@@ -28,37 +28,38 @@ import { Colors as wi } from "./Colors.js";
28
28
  import { E as Ci } from "./EmptyState-BZo1BbAn.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
- function ji(i) {
32
- const t = Ge.c(153), {
31
+ import { g as ji } from "./getNoOfTicks-CpmRjcRF.js";
32
+ function Li(i) {
33
+ const t = Xe.c(153), {
33
34
  data: L,
34
- width: Z,
35
+ width: _,
35
36
  height: Bt,
36
37
  lineColors: D,
37
38
  dateFormat: a,
38
39
  noOfXTicks: ge,
39
- labels: S,
40
+ labels: T,
40
41
  rightMargin: Lt,
41
42
  topMargin: b,
42
- bottomMargin: _,
43
+ bottomMargin: tt,
43
44
  suffix: Y,
44
45
  prefix: P,
45
46
  leftMargin: w,
46
- tooltip: tt,
47
+ tooltip: et,
47
48
  onSeriesMouseOver: zt,
48
49
  showValues: xe,
49
50
  showColorLegendAtTop: ye,
50
51
  refValues: Dt,
51
52
  highlightAreaSettings: Ut,
52
- minValue: G,
53
- maxValue: et,
54
- highlightedLines: it,
53
+ minValue: X,
54
+ maxValue: it,
55
+ highlightedLines: ot,
55
56
  animate: n,
56
- rtl: X,
57
+ rtl: G,
57
58
  strokeWidth: qt,
58
59
  showDots: Jt,
59
- annotations: St,
60
- customHighlightAreaSettings: Tt,
61
- yAxisTitle: ot,
60
+ annotations: Tt,
61
+ customHighlightAreaSettings: St,
62
+ yAxisTitle: nt,
62
63
  noOfYTicks: Kt,
63
64
  minDate: le,
64
65
  maxDate: ce,
@@ -68,10 +69,10 @@ function ji(i) {
68
69
  dimmedOpacity: me,
69
70
  precision: E,
70
71
  customLayers: B,
71
- dashedLines: nt,
72
+ dashedLines: st,
72
73
  dashSettings: Mt,
73
74
  labelsToBeHidden: ve,
74
- revealClipId: st
75
+ revealClipId: at
75
76
  } = i, Qt = Ne(null);
76
77
  let $t;
77
78
  t[0] !== n.amount || t[1] !== n.once ? ($t = {
@@ -88,124 +89,124 @@ function ji(i) {
88
89
  return () => clearTimeout(o);
89
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);
91
- 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), at = ot ? w + 30 : w;
92
- let rt;
93
- t[8] !== _ || t[9] !== Lt || t[10] !== at || t[11] !== b ? (rt = {
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 = {
94
95
  top: b,
95
- bottom: _,
96
- left: at,
96
+ bottom: tt,
97
+ left: rt,
97
98
  right: Lt
98
- }, t[8] = _, t[9] = Lt, t[10] = at, t[11] = b, t[12] = rt) : rt = t[12];
99
- const p = rt, lt = Ne(null);
100
- let ct;
101
- t[13] !== a ? (ct = (o) => ({
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) => ({
102
103
  ...o,
103
104
  date: O(`${o.date}`, a, /* @__PURE__ */ new Date())
104
- }), t[13] = a, t[14] = ct) : ct = t[14];
105
- const f = qe(L.map(ct), ["date"], ["asc"]), de = f[0].y.map((o, e) => f.map((u) => ({
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) => ({
106
107
  ...u,
107
108
  y: u.y[e]
108
- })).filter(Bi));
109
- let mt;
109
+ })).filter(zi));
110
+ let ft;
110
111
  if (t[15] !== a || t[16] !== Ut) {
111
112
  let o;
112
113
  t[18] !== a ? (o = (e) => ({
113
114
  ...e,
114
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())]
115
- }), t[18] = a, t[19] = o) : o = t[19], mt = Ut.map(o), t[15] = a, t[16] = Ut, t[17] = mt;
116
+ }), t[18] = a, t[19] = o) : o = t[19], ft = Ut.map(o), t[15] = a, t[16] = Ut, t[17] = ft;
116
117
  } else
117
- mt = t[17];
118
- const Ht = mt;
119
- let ft;
120
- if (t[20] !== Tt || t[21] !== a) {
118
+ ft = t[17];
119
+ const Ht = ft;
120
+ let dt;
121
+ if (t[20] !== St || t[21] !== a) {
121
122
  let o;
122
123
  t[23] !== a ? (o = (e) => ({
123
124
  ...e,
124
- coordinates: e.coordinates.map((u, Q) => Q % 2 === 0 ? O(`${u}`, a, /* @__PURE__ */ new Date()) : u)
125
- }), t[23] = a, t[24] = o) : o = t[24], ft = Tt.map(o), t[20] = Tt, t[21] = a, t[22] = ft;
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;
126
127
  } else
127
- ft = t[22];
128
- const ue = ft, c = Z - 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(G) ? Math.min(...f.map(Xi)) ? Math.min(...f.map(Pi)) > 0 ? 0 : Math.min(...f.map(Wi)) : 0 : G, V = Math.max(...f.map(Ri)) ? Math.max(...f.map(Hi)) : 0, r = si().domain([he, Zt]).range([0, c]);
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]);
129
130
  let q;
130
- t[25] !== v || t[26] !== G ? (q = A(G) ? v : G, t[25] = v, t[26] = G, t[27] = q) : q = t[27];
131
+ t[25] !== v || t[26] !== X ? (q = A(X) ? v : X, t[25] = v, t[26] = X, t[27] = q) : q = t[27];
131
132
  let J;
132
- t[28] !== V || t[29] !== et ? (J = A(et) ? V > 0 ? V : 0 : et, t[28] = V, t[29] = et, t[30] = J) : J = t[30];
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];
133
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);
134
135
  Ye(() => {
135
136
  const o = (u) => {
136
- const Q = f[hi(f.map(Ni), r.invert(pi(u)[0]), 0)];
137
- Vt(Q || f[f.length - 1]), fe(u.clientY), Nt(u.clientX), zt?.(Q || f[f.length - 1]);
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]);
138
139
  }, e = () => {
139
140
  Vt(void 0), Nt(void 0), fe(void 0);
140
141
  };
141
- ui(lt.current).on("mousemove", o).on("mouseout", e), zt?.(void 0);
142
+ ui(ct.current).on("mousemove", o).on("mouseout", e), zt?.(void 0);
142
143
  }, [r, f, zt]);
143
- let dt;
144
- t[31] === Symbol.for("react.memo_cache_sentinel") ? (dt = {
144
+ let ut;
145
+ t[31] === Symbol.for("react.memo_cache_sentinel") ? (ut = {
145
146
  width: 0
146
- }, t[31] = dt) : dt = t[31];
147
- let T;
148
- t[32] !== n.duration ? (T = {
147
+ }, t[31] = ut) : ut = t[31];
148
+ let S;
149
+ t[32] !== n.duration ? (S = {
149
150
  duration: n.duration
150
- }, t[32] = n.duration, t[33] = T) : T = t[33];
151
+ }, t[32] = n.duration, t[33] = S) : S = t[33];
151
152
  let H;
152
- t[34] !== c || t[35] !== T ? (H = {
153
- initial: dt,
153
+ t[34] !== c || t[35] !== S ? (H = {
154
+ initial: ut,
154
155
  whileInView: {
155
156
  width: c,
156
- transition: T
157
+ transition: S
157
158
  }
158
- }, t[34] = c, t[35] = T, t[36] = H) : H = t[36];
159
- const ut = m ? "whileInView" : "initial";
159
+ }, t[34] = c, t[35] = S, t[36] = H) : H = t[36];
160
+ const ht = m ? "whileInView" : "initial";
160
161
  let I;
161
- t[37] !== g || t[38] !== H || t[39] !== ut ? (I = /* @__PURE__ */ s.jsx(Et.rect, { x: 0, y: 0, height: g, variants: H, initial: "initial", animate: ut }), t[37] = g, t[38] = H, t[39] = ut, t[40] = I) : I = t[40];
162
- let ht;
163
- t[41] !== st || t[42] !== I ? (ht = /* @__PURE__ */ s.jsx("defs", { children: /* @__PURE__ */ s.jsx("clipPath", { id: st, children: I }) }), t[41] = st, t[42] = I, t[43] = ht) : ht = t[43];
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];
164
163
  let pt;
165
- t[44] !== n || t[45] !== g || t[46] !== c || t[47] !== Ht || t[48] !== m || t[49] !== r ? (pt = /* @__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] = pt) : pt = t[50];
166
- const It = y?.yAxis?.gridLines, Rt = y?.yAxis?.labels;
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];
167
165
  let gt;
168
- t[51] !== It || t[52] !== Rt ? (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 = {
169
170
  gridLines: It,
170
171
  labels: Rt
171
- }, t[51] = It, t[52] = Rt, t[53] = gt) : gt = t[53];
172
- const xt = x?.yAxis?.gridLines, Ft = x?.yAxis?.labels;
172
+ }, t[51] = It, t[52] = Rt, t[53] = xt) : xt = t[53];
173
+ const yt = x?.yAxis?.gridLines, Ft = x?.yAxis?.labels;
173
174
  let K;
174
- t[54] !== xt || t[55] !== Ft ? (K = {
175
- gridLines: xt,
175
+ t[54] !== yt || t[55] !== Ft ? (K = {
176
+ gridLines: yt,
176
177
  labels: Ft
177
- }, t[54] = xt, t[55] = Ft, t[56] = K) : K = t[56];
178
- const Wt = l(v < 0 ? 0 : v), yt = l(v < 0 ? 0 : v), Yt = 0 - w, vt = c + p.right, wt = v < 0 ? 0 : v;
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;
179
180
  let k;
180
- t[57] !== E || t[58] !== P || t[59] !== Y || t[60] !== wt ? (k = Pe(wt, "NA", E, P, Y), t[57] = E, t[58] = P, t[59] = Y, t[60] = wt, t[61] = k) : k = t[61];
181
- const Ct = 0 - w, pe = l(v < 0 ? 0 : v), At = V < 0 ? "1em" : -5;
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;
182
183
  let bt;
183
- t[62] !== Ct || t[63] !== pe || t[64] !== At ? (bt = {
184
- x: Ct,
184
+ t[62] !== Q || t[63] !== pe || t[64] !== At ? (bt = {
185
+ x: Q,
185
186
  y: pe,
186
187
  dx: 0,
187
188
  dy: At
188
- }, t[62] = Ct, t[63] = pe, t[64] = At, t[65] = bt) : bt = t[65];
189
+ }, t[62] = Q, t[63] = pe, t[64] = At, t[65] = bt) : bt = t[65];
189
190
  const Pt = x?.xAxis?.axis, ee = x?.yAxis?.labels;
190
191
  let M;
191
192
  t[66] !== Pt || t[67] !== ee ? (M = {
192
193
  axis: Pt,
193
194
  label: ee
194
195
  }, t[66] = Pt, t[67] = ee, t[68] = M) : M = t[68];
195
- const Ot = y?.xAxis?.axis, Gt = y?.yAxis?.labels;
196
+ const Ot = y?.xAxis?.axis, Xt = y?.yAxis?.labels;
196
197
  let R;
197
- t[69] !== Ot || t[70] !== Gt ? (R = {
198
+ t[69] !== Ot || t[70] !== Xt ? (R = {
198
199
  axis: Ot,
199
- label: Gt
200
- }, t[69] = Ot, t[70] = Gt, t[71] = R) : R = t[71];
200
+ label: Xt
201
+ }, t[69] = Ot, t[70] = Xt, t[71] = R) : R = t[71];
201
202
  let $;
202
- t[72] !== Wt || t[73] !== yt || t[74] !== Yt || t[75] !== vt || t[76] !== k || t[77] !== bt || t[78] !== M || t[79] !== R ? ($ = /* @__PURE__ */ s.jsx(ti, { y1: Wt, y2: yt, x1: Yt, x2: vt, label: k, labelPos: bt, classNames: M, styles: R }), t[72] = Wt, t[73] = yt, t[74] = Yt, t[75] = vt, t[76] = k, t[77] = bt, t[78] = M, t[79] = R, t[80] = $) : $ = t[80];
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];
203
204
  const F = 0 - w - 15, W = g / 2, jt = y?.yAxis?.title, ie = x?.yAxis?.title;
204
- let Xt;
205
- t[81] !== F || t[82] !== W || t[83] !== jt || t[84] !== ie || t[85] !== ot ? (Xt = /* @__PURE__ */ s.jsx(_e, { x: F, y: W, style: jt, className: ie, text: ot, rotate90: !0 }), t[81] = F, t[82] = W, t[83] = jt, t[84] = ie, t[85] = ot, t[86] = Xt) : Xt = t[86];
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];
206
207
  let Ae;
207
208
  t[87] !== a ? (Ae = (o) => Ue(o, a), t[87] = a, t[88] = Ae) : Ae = t[88];
208
- const Xe = te.map(Ae), Ee = te.map((o) => r(o)), He = y?.xAxis?.gridLines, Ie = y?.xAxis?.labels;
209
+ const Ge = te.map(Ae), Ee = te.map((o) => r(o)), He = y?.xAxis?.gridLines, Ie = y?.xAxis?.labels;
209
210
  let be;
210
211
  t[89] !== He || t[90] !== Ie ? (be = {
211
212
  gridLines: He,
@@ -223,7 +224,7 @@ function ji(i) {
223
224
  labels: ne
224
225
  }, t[96] = oe, t[97] = ne, t[98] = Oe) : Oe = t[98];
225
226
  let je;
226
- t[99] !== B ? (je = B.filter(Mi).map(ki), t[99] = B, t[100] = je) : je = t[100];
227
+ t[99] !== B ? (je = B.filter($i).map(Mi), t[99] = B, t[100] = je) : je = t[100];
227
228
  const We = de.map((o, e) => /* @__PURE__ */ s.jsxs(Et.g, { exit: {
228
229
  opacity: 0,
229
230
  transition: {
@@ -231,10 +232,10 @@ function ji(i) {
231
232
  }
232
233
  }, variants: {
233
234
  initial: {
234
- opacity: it.length !== 0 ? it.indexOf(S[e]) !== -1 ? 1 : me : 1
235
+ opacity: ot.length !== 0 ? ot.indexOf(T[e]) !== -1 ? 1 : me : 1
235
236
  },
236
237
  whileInView: {
237
- opacity: it.length !== 0 ? it.indexOf(S[e]) !== -1 ? 1 : me : 1,
238
+ opacity: ot.length !== 0 ? ot.indexOf(T[e]) !== -1 ? 1 : me : 1,
238
239
  transition: {
239
240
  duration: n.duration
240
241
  }
@@ -243,22 +244,22 @@ function ji(i) {
243
244
  /* @__PURE__ */ s.jsx(Et.path, { style: {
244
245
  fill: "none",
245
246
  strokeWidth: qt
246
- }, clipPath: `url(#${st})`, exit: {
247
+ }, clipPath: `url(#${at})`, exit: {
247
248
  opacity: 0,
248
249
  transition: {
249
250
  duration: n.duration
250
251
  }
251
252
  }, variants: {
252
253
  initial: {
253
- ...nt.length === 0 ? {
254
+ ...st.length === 0 ? {
254
255
  pathLength: 0
255
256
  } : {},
256
- d: N(o.filter(Ti)) || "",
257
+ d: N(o.filter(ki)) || "",
257
258
  opacity: 1,
258
259
  stroke: D[e]
259
260
  },
260
261
  whileInView: {
261
- ...nt.length === 0 ? {
262
+ ...st.length === 0 ? {
262
263
  pathLength: 1
263
264
  } : {},
264
265
  d: N(o.filter(Si)) || "",
@@ -268,8 +269,8 @@ function ji(i) {
268
269
  duration: n.duration
269
270
  }
270
271
  }
271
- }, strokeDasharray: nt.includes(S[e]) ? Mt[e % Mt.length] : void 0, initial: "initial", animate: m ? "whileInView" : "initial" }),
272
- o.map((u, Q) => /* @__PURE__ */ s.jsx("g", { children: A(u.y) ? null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
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: [
273
274
  Jt ? /* @__PURE__ */ s.jsx(Et.circle, { r: c / f.length < 5 ? 0 : c / f.length < 20 ? 2 : 4, exit: {
274
275
  opacity: 0,
275
276
  transition: {
@@ -319,8 +320,8 @@ function ji(i) {
319
320
  }
320
321
  }
321
322
  }, initial: "initial", animate: m ? "whileInView" : "initial", children: Pe(u.y, "NA", E, P, Y) }) : null
322
- ] }) }, Q)),
323
- ye || ve.includes(S[e]) ? null : /* @__PURE__ */ s.jsx(Et.text, { className: "text-xs", dx: 5, dy: 4, exit: {
323
+ ] }) }, Z)),
324
+ ye || ve.includes(T[e]) ? null : /* @__PURE__ */ s.jsx(Et.text, { className: "text-xs", dx: 5, dy: 4, exit: {
324
325
  opacity: 0,
325
326
  transition: {
326
327
  duration: n.duration
@@ -342,8 +343,8 @@ function ji(i) {
342
343
  delay: C ? 0 : n.duration
343
344
  }
344
345
  }
345
- }, initial: "initial", animate: m ? "whileInView" : "initial", children: S[e] })
346
- ] }, S[e]));
346
+ }, initial: "initial", animate: m ? "whileInView" : "initial", children: T[e] })
347
+ ] }, T[e]));
347
348
  let se;
348
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];
349
350
  let Le;
@@ -354,18 +355,18 @@ function ji(i) {
354
355
  let De;
355
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];
356
357
  let ae;
357
- if (t[118] !== n || t[119] !== St || t[120] !== a || t[121] !== c || t[122] !== m || t[123] !== p.right || t[124] !== X || t[125] !== r || t[126] !== l) {
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) {
358
359
  let o;
359
- t[128] !== n || t[129] !== a || t[130] !== c || t[131] !== m || t[132] !== p.right || t[133] !== X || t[134] !== r || t[135] !== l ? (o = (e, u) => {
360
- const Q = Qe({
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({
361
362
  x: e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
362
363
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
363
364
  }, {
364
365
  x: e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) : 0,
365
366
  y: e.yCoordinate ? l(e.yCoordinate) : 0
366
367
  }, A(e.connectorRadius) ? 3.5 : e.connectorRadius), Be = e.showConnector ? {
367
- y1: Q.y,
368
- x1: Q.x,
368
+ y1: Z.y,
369
+ x1: Z.x,
369
370
  y2: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
370
371
  x2: e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
371
372
  cy: e.yCoordinate ? l(e.yCoordinate) : 0,
@@ -374,140 +375,140 @@ function ji(i) {
374
375
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
375
376
  } : void 0, ze = {
376
377
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
377
- x: X ? 0 : e.xCoordinate ? r(O(`${e.xCoordinate}`, a, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
378
- width: X ? 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: 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)),
379
380
  maxWidth: e.maxWidth,
380
381
  fontWeight: e.fontWeight,
381
382
  align: e.align
382
383
  };
383
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);
384
- }, t[128] = n, t[129] = a, t[130] = c, t[131] = m, t[132] = p.right, t[133] = X, t[134] = r, t[135] = l, t[136] = o) : o = t[136], ae = St.map(o), t[118] = n, t[119] = St, t[120] = a, t[121] = c, t[122] = m, t[123] = p.right, t[124] = X, 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] = 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
386
  } else
386
387
  ae = t[127];
387
- let Se;
388
- t[137] !== ae ? (Se = /* @__PURE__ */ s.jsx("g", { children: ae }), t[137] = ae, t[138] = Se) : Se = t[138];
389
388
  let Te;
390
- t[139] !== B ? (Te = B.filter(Di).map(Li), t[139] = B, t[140] = Te) : Te = t[140];
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];
391
392
  let ke;
392
393
  t[141] === Symbol.for("react.memo_cache_sentinel") ? (ke = {
393
394
  fill: "none",
394
395
  pointerEvents: "all"
395
396
  }, t[141] = ke) : ke = t[141];
396
397
  let Me;
397
- t[142] !== lt || t[143] !== g || t[144] !== c ? (Me = /* @__PURE__ */ s.jsx("rect", { ref: lt, style: ke, width: c, height: g }), t[142] = lt, t[143] = g, t[144] = c, t[145] = Me) : Me = t[145];
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];
398
399
  let $e;
399
- return t[146] !== x?.tooltip || t[147] !== z || t[148] !== U || t[149] !== j || t[150] !== y?.tooltip || t[151] !== tt ? ($e = j && tt && z && U ? /* @__PURE__ */ s.jsx(Je, { data: j, body: tt, 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] = tt, t[152] = $e) : $e = t[152], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
400
- /* @__PURE__ */ s.jsx(Et.svg, { width: `${Z}px`, height: `${Bt}px`, viewBox: `0 0 ${Z} ${Bt}`, direction: "ltr", ref: Qt, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${p.left},${p.top})`, children: [
401
- ht,
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
402
  pt,
403
+ gt,
403
404
  /* @__PURE__ */ s.jsx(Ke, { areaSettings: ue, scaleX: r, scaleY: l, animate: n, isInView: m }),
404
405
  /* @__PURE__ */ s.jsxs("g", { children: [
405
- /* @__PURE__ */ s.jsx(oi, { values: _t.filter(Vi), y: _t.filter($i).map((o) => l(o)), x1: 0 - w, x2: c + p.right, styles: gt, classNames: K, suffix: Y, prefix: P, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: E }),
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
407
  $,
407
- Xt
408
+ Gt
408
409
  ] }),
409
- /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(ei, { values: Xe, x: Ee, y1: 0, y2: g, styles: be, classNames: Oe, suffix: Y, prefix: P, labelType: "primary", showGridLines: !0, precision: E }) }),
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 }) }),
410
411
  je,
411
412
  Le,
412
413
  De,
413
- Se,
414
414
  Te,
415
+ Se,
415
416
  Me
416
417
  ] }) }),
417
418
  $e
418
419
  ] });
419
420
  }
420
- function Li(i) {
421
+ function Di(i) {
421
422
  return i.layer;
422
423
  }
423
- function Di(i) {
424
+ function Ti(i) {
424
425
  return i.position === "after";
425
426
  }
426
427
  function Si(i) {
427
428
  return !A(i.y);
428
429
  }
429
- function Ti(i) {
430
- return !A(i.y);
431
- }
432
430
  function ki(i) {
433
- return i.layer;
431
+ return !A(i.y);
434
432
  }
435
433
  function Mi(i) {
436
- return i.position === "before";
434
+ return i.layer;
437
435
  }
438
436
  function $i(i) {
439
- return i !== 0;
437
+ return i.position === "before";
440
438
  }
441
439
  function Vi(i) {
442
440
  return i !== 0;
443
441
  }
444
442
  function Ni(i) {
445
- return i.date;
443
+ return i !== 0;
446
444
  }
447
445
  function Hi(i) {
448
- return Math.max(...i.y.filter(Ii));
446
+ return i.date;
449
447
  }
450
448
  function Ii(i) {
451
- return !A(i);
449
+ return Math.max(...i.y.filter(Ri));
452
450
  }
453
451
  function Ri(i) {
454
- return Math.max(...i.y.filter(Fi));
452
+ return !A(i);
455
453
  }
456
454
  function Fi(i) {
457
- return !A(i);
455
+ return Math.max(...i.y.filter(Wi));
458
456
  }
459
457
  function Wi(i) {
460
- return Math.min(...i.y.filter(Yi));
458
+ return !A(i);
461
459
  }
462
460
  function Yi(i) {
463
- return !A(i);
461
+ return Math.min(...i.y.filter(Pi));
464
462
  }
465
463
  function Pi(i) {
464
+ return !A(i);
465
+ }
466
+ function Xi(i) {
466
467
  return Math.min(...i.y.filter(Gi));
467
468
  }
468
469
  function Gi(i) {
469
470
  return !A(i);
470
471
  }
471
- function Xi(i) {
472
- return Math.min(...i.y.filter(Ei));
473
- }
474
472
  function Ei(i) {
475
- return !A(i);
473
+ return Math.min(...i.y.filter(Bi));
476
474
  }
477
475
  function Bi(i) {
476
+ return !A(i);
477
+ }
478
+ function zi(i) {
478
479
  return !A(i.y);
479
480
  }
480
- function So(i) {
481
- const t = Ge.c(99), {
481
+ function ko(i) {
482
+ const t = Xe.c(99), {
482
483
  data: L,
483
- graphTitle: Z,
484
+ graphTitle: _,
484
485
  lineColors: Bt,
485
486
  suffix: D,
486
487
  sources: a,
487
488
  prefix: ge,
488
- graphDescription: S,
489
+ graphDescription: T,
489
490
  height: Lt,
490
491
  width: b,
491
- footNote: _,
492
+ footNote: tt,
492
493
  noOfXTicks: Y,
493
494
  dateFormat: P,
494
495
  labels: w,
495
- padding: tt,
496
+ padding: et,
496
497
  showValues: zt,
497
498
  backgroundColor: xe,
498
499
  leftMargin: ye,
499
500
  rightMargin: Dt,
500
501
  topMargin: Ut,
501
- bottomMargin: G,
502
- tooltip: et,
503
- relativeHeight: it,
502
+ bottomMargin: X,
503
+ tooltip: it,
504
+ relativeHeight: ot,
504
505
  onSeriesMouseOver: n,
505
- showColorLegendAtTop: X,
506
+ showColorLegendAtTop: G,
506
507
  refValues: qt,
507
508
  highlightAreaSettings: Jt,
508
- graphID: St,
509
- minValue: Tt,
510
- maxValue: ot,
509
+ graphID: Tt,
510
+ minValue: St,
511
+ maxValue: nt,
511
512
  highlightedLines: Kt,
512
513
  graphDownload: le,
513
514
  dataDownload: ce,
@@ -517,10 +518,10 @@ function So(i) {
517
518
  minHeight: me,
518
519
  strokeWidth: E,
519
520
  showDots: B,
520
- annotations: nt,
521
+ annotations: st,
521
522
  customHighlightAreaSettings: Mt,
522
523
  theme: ve,
523
- ariaLabel: st,
524
+ ariaLabel: at,
524
525
  yAxisTitle: Qt,
525
526
  noOfYTicks: $t,
526
527
  minDate: m,
@@ -535,7 +536,7 @@ function So(i) {
535
536
  dashSettings: Nt,
536
537
  labelsToBeHidden: U,
537
538
  showColorScale: fe
538
- } = i, at = Bt === void 0 ? wi.light.categoricalColors.colors : Bt, rt = D === void 0 ? "" : D, p = ge === void 0 ? "" : ge, lt = Y === void 0 ? 10 : Y, ct = P === void 0 ? "yyyy" : P, f = zt === void 0 ? !1 : zt, de = xe === void 0 ? !1 : xe, mt = ye === void 0 ? 30 : ye, Ht = Dt === void 0 ? 50 : Dt, ft = Ut === void 0 ? 20 : Ut, ue = G === void 0 ? 25 : G, c = X === void 0 ? !1 : X;
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;
539
540
  let g;
540
541
  t[0] !== qt ? (g = qt === void 0 ? [] : qt, t[0] = qt, t[1] = g) : g = t[1];
541
542
  const he = g;
@@ -544,45 +545,45 @@ function So(i) {
544
545
  const v = Zt;
545
546
  let V;
546
547
  t[4] !== Kt ? (V = Kt === void 0 ? [] : Kt, t[4] = Kt, t[5] = V) : V = t[5];
547
- 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, dt = B === void 0 ? !0 : B;
548
- let T;
549
- t[6] !== nt ? (T = nt === void 0 ? [] : nt, t[6] = nt, t[7] = T) : T = t[7];
550
- const H = T;
551
- let ut;
552
- t[8] !== Mt ? (ut = Mt === void 0 ? [] : Mt, t[8] = Mt, t[9] = ut) : ut = t[9];
553
- const I = ut, ht = ve === void 0 ? "light" : ve, pt = $t === void 0 ? 5 : $t, It = we === void 0 ? "curve" : we, Rt = Ce === void 0 ? 0.3 : Ce, gt = j === void 0 ? 2 : j;
554
- let xt;
555
- t[10] !== Vt ? (xt = Vt === void 0 ? [] : Vt, t[10] = Vt, t[11] = xt) : xt = t[11];
556
- const Ft = xt;
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;
557
558
  let K;
558
559
  t[12] !== z ? (K = z === void 0 ? [] : z, t[12] = z, t[13] = K) : K = t[13];
559
560
  const Wt = K;
560
- let yt;
561
- t[14] !== Nt ? (yt = Nt === void 0 ? ["5 5"] : Nt, t[14] = Nt, t[15] = yt) : yt = t[15];
562
- const Yt = yt;
563
561
  let vt;
564
- t[16] !== U ? (vt = U === void 0 ? [] : U, t[16] = U, t[17] = vt) : vt = t[17];
565
- const wt = vt, k = fe === void 0 ? !0 : fe, [Ct, pe] = re(0), [At, bt] = re(0), Pt = Ne(null), ee = Ne(null);
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);
566
567
  let M, Ot;
567
568
  t[18] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
568
- const ie = new ResizeObserver((Xt) => {
569
- pe(Xt[0].target.clientWidth || 620), bt(Xt[0].target.clientHeight || 480);
569
+ const ie = new ResizeObserver((Gt) => {
570
+ pe(Gt[0].target.clientWidth || 620), bt(Gt[0].target.clientHeight || 480);
570
571
  });
571
572
  return Pt.current && ie.observe(Pt.current), () => ie.disconnect();
572
573
  }, Ot = [], t[18] = M, t[19] = Ot) : (M = t[18], Ot = t[19]), Ye(M, Ot);
573
- const Gt = d?.graphContainer, R = h?.graphContainer;
574
+ const Xt = d?.graphContainer, R = h?.graphContainer;
574
575
  let $;
575
- t[20] !== d?.description || t[21] !== d?.title || t[22] !== L || t[23] !== J || t[24] !== S || t[25] !== q || t[26] !== Z || t[27] !== h?.description || t[28] !== h?.title || t[29] !== b ? ($ = Z || S || q || J ? /* @__PURE__ */ s.jsx(yi, { styles: {
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
577
  title: h?.title,
577
578
  description: h?.description
578
579
  }, classNames: {
579
580
  title: d?.title,
580
581
  description: d?.description
581
- }, graphTitle: Z, graphDescription: S, width: b, graphDownload: q ? ee : void 0, dataDownload: J ? L.map(Ki).filter(Ji).length > 0 ? L.map(qi).filter(Ui) : L.filter(zi) : null }) : null, t[20] = d?.description, t[21] = d?.title, t[22] = L, t[23] = J, t[24] = S, t[25] = q, t[26] = Z, t[27] = h?.description, t[28] = h?.title, t[29] = b, t[30] = $) : $ = t[30];
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];
582
583
  let F;
583
- 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] !== ct || t[43] !== Rt || t[44] !== v || t[45] !== r || t[46] !== w || t[47] !== wt || t[48] !== N || t[49] !== mt || t[50] !== at || t[51] !== C || t[52] !== ot || t[53] !== m || t[54] !== Tt || t[55] !== lt || t[56] !== pt || t[57] !== n || t[58] !== gt || t[59] !== p || t[60] !== he || t[61] !== Ht || t[62] !== c || t[63] !== k || t[64] !== dt || t[65] !== f || t[66] !== te || t[67] !== h || t[68] !== rt || t[69] !== At || t[70] !== Ct || t[71] !== et || t[72] !== ft || t[73] !== Qt ? (F = L.length === 0 ? /* @__PURE__ */ s.jsx(Ci, {}) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
584
- c && k ? /* @__PURE__ */ s.jsx(vi, { colorDomain: w, colorLegendTitle: x, labelsToBeHidden: wt, colors: at, showNAColor: !1, className: d?.colorLegend }) : null,
585
- /* @__PURE__ */ s.jsx(bi, { ref: Pt, children: Ct && At ? /* @__PURE__ */ s.jsx(ji, { data: L, lineColors: at, width: Ct, height: At, dateFormat: ct, noOfXTicks: lt, leftMargin: mt, rightMargin: Ht, topMargin: ft, bottomMargin: ue, labels: w, tooltip: et, onSeriesMouseOver: n, showColorLegendAtTop: k ? c : !0, showValues: f, suffix: rt, prefix: p, highlightAreaSettings: v, refValues: he, minValue: Tt, maxValue: ot, highlightedLines: r, animate: l === !0 ? {
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 ? {
586
587
  duration: 0.5,
587
588
  once: !0,
588
589
  amount: 0.5
@@ -590,39 +591,39 @@ function So(i) {
590
591
  duration: 0,
591
592
  once: !0,
592
593
  amount: 0
593
- }, rtl: N === "he" || N === "ar", strokeWidth: te, showDots: dt, annotations: H, customHighlightAreaSettings: I, yAxisTitle: Qt, noOfYTicks: pt, minDate: m, maxDate: C, curveType: It, styles: h, classNames: d, dimmedOpacity: Rt, precision: gt, customLayers: Ft, labelsToBeHidden: wt, dashedLines: Wt, dashSettings: Yt, revealClipId: Ai(8) }) : null })
594
- ] }), 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] = ct, t[43] = Rt, t[44] = v, t[45] = r, t[46] = w, t[47] = wt, t[48] = N, t[49] = mt, t[50] = at, t[51] = C, t[52] = ot, t[53] = m, t[54] = Tt, t[55] = lt, t[56] = pt, t[57] = n, t[58] = gt, t[59] = p, t[60] = he, t[61] = Ht, t[62] = c, t[63] = k, t[64] = dt, t[65] = f, t[66] = te, t[67] = h, t[68] = rt, t[69] = At, t[70] = Ct, t[71] = et, t[72] = ft, t[73] = Qt, t[74] = F) : F = t[74];
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];
595
596
  let W;
596
- t[75] !== d?.footnote || t[76] !== d?.source || t[77] !== _ || t[78] !== a || t[79] !== h?.footnote || t[80] !== h?.source || t[81] !== b ? (W = a || _ ? /* @__PURE__ */ s.jsx(xi, { styles: {
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: {
597
598
  footnote: h?.footnote,
598
599
  source: h?.source
599
600
  }, classNames: {
600
601
  footnote: d?.footnote,
601
602
  source: d?.source
602
- }, sources: a, footNote: _, width: b }) : null, t[75] = d?.footnote, t[76] = d?.source, t[77] = _, t[78] = a, t[79] = h?.footnote, t[80] = h?.source, t[81] = b, t[82] = W) : W = t[82];
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];
603
604
  let jt;
604
- return t[83] !== st || t[84] !== de || t[85] !== St || t[86] !== Lt || t[87] !== N || t[88] !== _t || t[89] !== tt || t[90] !== it || t[91] !== Gt || t[92] !== R || t[93] !== $ || t[94] !== F || t[95] !== W || t[96] !== ht || t[97] !== b ? (jt = /* @__PURE__ */ s.jsxs(Oi, { className: Gt, style: R, id: St, ref: ee, "aria-label": st, backgroundColor: de, theme: ht, language: N, minHeight: _t, width: b, height: Lt, relativeHeight: it, padding: tt, children: [
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: [
605
606
  $,
606
607
  F,
607
608
  W
608
- ] }), t[83] = st, t[84] = de, t[85] = St, t[86] = Lt, t[87] = N, t[88] = _t, t[89] = tt, t[90] = it, t[91] = Gt, t[92] = R, t[93] = $, t[94] = F, t[95] = W, t[96] = ht, t[97] = b, t[98] = jt) : jt = t[98], jt;
609
- }
610
- function zi(i) {
611
- return i !== void 0;
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;
612
610
  }
613
611
  function Ui(i) {
614
612
  return i !== void 0;
615
613
  }
616
614
  function qi(i) {
617
- return i.data;
615
+ return i !== void 0;
618
616
  }
619
617
  function Ji(i) {
620
- return i !== void 0;
618
+ return i.data;
621
619
  }
622
620
  function Ki(i) {
621
+ return i !== void 0;
622
+ }
623
+ function Qi(i) {
623
624
  return i.data;
624
625
  }
625
626
  export {
626
- So as MultiLineChart
627
+ ko as MultiLineChart
627
628
  };
628
629
  //# sourceMappingURL=MultiLineChart.js.map