@undp/data-viz 1.4.13 → 1.4.15

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 +25 -24
  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.js +638 -632
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +134 -132
  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 +35 -34
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/BulletChart.cjs +1 -1
  18. package/dist/BulletChart.cjs.map +1 -1
  19. package/dist/BulletChart.js +226 -224
  20. package/dist/BulletChart.js.map +1 -1
  21. package/dist/ButterflyChart.cjs +1 -1
  22. package/dist/ButterflyChart.cjs.map +1 -1
  23. package/dist/ButterflyChart.js +48 -47
  24. package/dist/ButterflyChart.js.map +1 -1
  25. package/dist/ChoroplethMap.cjs +1 -1
  26. package/dist/ChoroplethMap.cjs.map +1 -1
  27. package/dist/ChoroplethMap.js +56 -55
  28. package/dist/ChoroplethMap.js.map +1 -1
  29. package/dist/CirclePackingGraph.cjs +1 -1
  30. package/dist/CirclePackingGraph.js +1 -1
  31. package/dist/DataCards.cjs +3 -3
  32. package/dist/DataCards.cjs.map +1 -1
  33. package/dist/DataCards.js +2 -1
  34. package/dist/DataCards.js.map +1 -1
  35. package/dist/DataTable.cjs +1 -1
  36. package/dist/DataTable.cjs.map +1 -1
  37. package/dist/DataTable.js +9 -8
  38. package/dist/DataTable.js.map +1 -1
  39. package/dist/DifferenceLineChart.cjs +1 -1
  40. package/dist/DifferenceLineChart.cjs.map +1 -1
  41. package/dist/DifferenceLineChart.js +1 -0
  42. package/dist/DifferenceLineChart.js.map +1 -1
  43. package/dist/DonutChart.cjs +1 -1
  44. package/dist/DonutChart.cjs.map +1 -1
  45. package/dist/DonutChart.js +77 -76
  46. package/dist/DonutChart.js.map +1 -1
  47. package/dist/DotDensityMap.cjs +1 -1
  48. package/dist/DotDensityMap.cjs.map +1 -1
  49. package/dist/DotDensityMap.js +1 -0
  50. package/dist/DotDensityMap.js.map +1 -1
  51. package/dist/{DropdownSelect-CeHog_ih.js → DropdownSelect-CtOKZHD0.js} +22 -20
  52. package/dist/{DropdownSelect-CeHog_ih.js.map → DropdownSelect-CtOKZHD0.js.map} +1 -1
  53. package/dist/{DropdownSelect-BmE5JaeE.cjs → DropdownSelect-DBDM64B5.cjs} +2 -2
  54. package/dist/{DropdownSelect-BmE5JaeE.cjs.map → DropdownSelect-DBDM64B5.cjs.map} +1 -1
  55. package/dist/DualAxisLineChart.cjs +1 -1
  56. package/dist/DualAxisLineChart.cjs.map +1 -1
  57. package/dist/DualAxisLineChart.js +54 -53
  58. package/dist/DualAxisLineChart.js.map +1 -1
  59. package/dist/DumbbellChart.cjs +1 -1
  60. package/dist/DumbbellChart.cjs.map +1 -1
  61. package/dist/DumbbellChart.js +216 -214
  62. package/dist/DumbbellChart.js.map +1 -1
  63. package/dist/GeoHubCompareMaps.cjs +1 -1
  64. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  65. package/dist/GeoHubCompareMaps.js +1 -0
  66. package/dist/GeoHubCompareMaps.js.map +1 -1
  67. package/dist/GeoHubMap.cjs +1 -1
  68. package/dist/GeoHubMap.cjs.map +1 -1
  69. package/dist/GeoHubMap.js +29 -28
  70. package/dist/GeoHubMap.js.map +1 -1
  71. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  72. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  73. package/dist/GeoHubMapWithLayerSelection.js +34 -33
  74. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  75. package/dist/GraphEl-Bz2jatkM.cjs +2 -0
  76. package/dist/GraphEl-Bz2jatkM.cjs.map +1 -0
  77. package/dist/{GraphEl-B3xVlimz.js → GraphEl-zNOHBYrK.js} +4 -4
  78. package/dist/GraphEl-zNOHBYrK.js.map +1 -0
  79. package/dist/GriddedGraphs.cjs +1 -1
  80. package/dist/GriddedGraphs.js +2 -2
  81. package/dist/HeatMap.cjs +1 -1
  82. package/dist/HeatMap.cjs.map +1 -1
  83. package/dist/HeatMap.js +55 -54
  84. package/dist/HeatMap.js.map +1 -1
  85. package/dist/Histogram.cjs +1 -1
  86. package/dist/Histogram.js +1 -1
  87. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  88. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  89. package/dist/LineChartWithConfidenceInterval.js +22 -21
  90. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  91. package/dist/MultiGraphDashboard.cjs +1 -1
  92. package/dist/MultiGraphDashboard.js +1 -1
  93. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  94. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  95. package/dist/MultiLineAltChart.cjs +1 -1
  96. package/dist/MultiLineAltChart.cjs.map +1 -1
  97. package/dist/MultiLineAltChart.js +34 -33
  98. package/dist/MultiLineAltChart.js.map +1 -1
  99. package/dist/MultiLineChart.cjs +1 -1
  100. package/dist/MultiLineChart.cjs.map +1 -1
  101. package/dist/MultiLineChart.js +72 -71
  102. package/dist/MultiLineChart.js.map +1 -1
  103. package/dist/ParetoChart.cjs +1 -1
  104. package/dist/ParetoChart.cjs.map +1 -1
  105. package/dist/ParetoChart.js +24 -23
  106. package/dist/ParetoChart.js.map +1 -1
  107. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  108. package/dist/PerformanceIntensiveMultiGraphDashboard.js +1 -1
  109. package/dist/RadarChart.cjs +1 -1
  110. package/dist/RadarChart.cjs.map +1 -1
  111. package/dist/RadarChart.js +27 -26
  112. package/dist/RadarChart.js.map +1 -1
  113. package/dist/SankeyChart.cjs +1 -1
  114. package/dist/SankeyChart.cjs.map +1 -1
  115. package/dist/SankeyChart.js +30 -29
  116. package/dist/SankeyChart.js.map +1 -1
  117. package/dist/ScatterPlot.cjs +1 -1
  118. package/dist/ScatterPlot.cjs.map +1 -1
  119. package/dist/ScatterPlot.js +119 -118
  120. package/dist/ScatterPlot.js.map +1 -1
  121. package/dist/SimpleLineChart.cjs +1 -1
  122. package/dist/SimpleLineChart.cjs.map +1 -1
  123. package/dist/SimpleLineChart.js +16 -15
  124. package/dist/SimpleLineChart.js.map +1 -1
  125. package/dist/SingleGraphDashboard.cjs +1 -1
  126. package/dist/SingleGraphDashboard.js +2 -2
  127. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  128. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  129. package/dist/SlopeChart.cjs +1 -1
  130. package/dist/SlopeChart.cjs.map +1 -1
  131. package/dist/SlopeChart.js +46 -45
  132. package/dist/SlopeChart.js.map +1 -1
  133. package/dist/SparkLine.cjs +1 -1
  134. package/dist/SparkLine.cjs.map +1 -1
  135. package/dist/SparkLine.js +12 -11
  136. package/dist/SparkLine.js.map +1 -1
  137. package/dist/StripChart.cjs +1 -1
  138. package/dist/StripChart.cjs.map +1 -1
  139. package/dist/StripChart.js +81 -79
  140. package/dist/StripChart.js.map +1 -1
  141. package/dist/ThreeDGlobe.cjs +1 -1
  142. package/dist/ThreeDGlobe.cjs.map +1 -1
  143. package/dist/ThreeDGlobe.js +1 -0
  144. package/dist/ThreeDGlobe.js.map +1 -1
  145. package/dist/TreeMapGraph.cjs +1 -1
  146. package/dist/TreeMapGraph.cjs.map +1 -1
  147. package/dist/TreeMapGraph.js +114 -113
  148. package/dist/TreeMapGraph.js.map +1 -1
  149. package/dist/UnitChart.cjs +1 -1
  150. package/dist/UnitChart.cjs.map +1 -1
  151. package/dist/UnitChart.js +10 -9
  152. package/dist/UnitChart.js.map +1 -1
  153. package/dist/{index-CZLvTu6p.cjs → index-BbNoLJ_w.cjs} +2 -2
  154. package/dist/{index-CZLvTu6p.cjs.map → index-BbNoLJ_w.cjs.map} +1 -1
  155. package/dist/{index-DGAaLNu9.js → index-Bc5VF70V.js} +46 -45
  156. package/dist/{index-DGAaLNu9.js.map → index-Bc5VF70V.js.map} +1 -1
  157. package/dist/index.cjs +1 -1
  158. package/dist/index.js +1 -1
  159. package/package.json +2 -2
  160. package/dist/GraphEl-B3xVlimz.js.map +0 -1
  161. package/dist/GraphEl-DO-juRN8.cjs +0 -2
  162. package/dist/GraphEl-DO-juRN8.cjs.map +0 -1
package/dist/BarGraph.js CHANGED
@@ -37,24 +37,24 @@ function ut(pe) {
37
37
  const {
38
38
  data: n,
39
39
  barColor: g,
40
- suffix: X,
40
+ suffix: Y,
41
41
  prefix: A,
42
- barPadding: Y,
42
+ barPadding: _,
43
43
  showValues: me,
44
44
  showTicks: ue,
45
45
  leftMargin: ge,
46
46
  truncateBy: Z,
47
- width: _,
47
+ width: X,
48
48
  height: ie,
49
- colorDomain: D,
49
+ colorDomain: O,
50
50
  rightMargin: se,
51
51
  topMargin: he,
52
- bottomMargin: M,
52
+ bottomMargin: j,
53
53
  showLabels: E,
54
54
  tooltip: J,
55
55
  onSeriesMouseOver: ee,
56
- refValues: C,
57
- selectedColor: y,
56
+ refValues: v,
57
+ selectedColor: f,
58
58
  highlightedDataPoints: F,
59
59
  maxValue: ae,
60
60
  minValue: le,
@@ -67,37 +67,37 @@ function ut(pe) {
67
67
  detailsOnClick: $,
68
68
  barAxisTitle: p,
69
69
  valueColor: x,
70
- noOfTicks: w,
70
+ noOfTicks: C,
71
71
  styles: z,
72
- classNames: O,
73
- animate: N,
72
+ classNames: N,
73
+ animate: D,
74
74
  dimmedOpacity: I,
75
75
  precision: S,
76
76
  customLayers: b,
77
- naLabel: v
77
+ naLabel: w
78
78
  } = pe, q = Me(null), T = Re(q, {
79
- once: N.once,
80
- amount: N.amount
81
- }), [V, oe] = L(void 0), [G, P] = L(void 0), [Q, j] = L(void 0), [H, u] = L(void 0), k = {
79
+ once: D.once,
80
+ amount: D.amount
81
+ }), [V, oe] = L(void 0), [G, P] = L(void 0), [Q, M] = L(void 0), [H, u] = L(void 0), k = {
82
82
  top: p ? he + 25 : he,
83
- bottom: M,
83
+ bottom: j,
84
84
  left: ge,
85
85
  right: se
86
- }, m = _ - k.left - k.right, d = ie - k.top - k.bottom, h = n.map((r, f) => ({
86
+ }, m = X - k.left - k.right, d = ie - k.top - k.bottom, h = n.map((r, y) => ({
87
87
  ...r,
88
- id: te ? `${r.label}` : `${f}`
88
+ id: te ? `${r.label}` : `${y}`
89
89
  })), c = qe().domain([le, ae]).range([0, m]).nice(), l = te || h.map((r) => `${r.id}`), s = Ie().domain(l).range([
90
90
  0,
91
91
  xe ? Math.max(d, xe * l.length) : R ? Math.min(d, R * l.length) : d
92
- ]).paddingInner(Y), t = c.ticks(w);
92
+ ]).paddingInner(_), t = c.ticks(C);
93
93
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
94
94
  /* @__PURE__ */ e.jsx(
95
95
  ye.svg,
96
96
  {
97
97
  ref: q,
98
- width: `${_}px`,
98
+ width: `${X}px`,
99
99
  height: `${ie}px`,
100
- viewBox: `0 0 ${_} ${ie}`,
100
+ viewBox: `0 0 ${X} ${ie}`,
101
101
  direction: "ltr",
102
102
  children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${k.left},${k.top})`, children: [
103
103
  ue ? /* @__PURE__ */ e.jsx(
@@ -112,10 +112,10 @@ function ut(pe) {
112
112
  labels: z?.xAxis?.labels
113
113
  },
114
114
  classNames: {
115
- gridLines: O?.xAxis?.gridLines,
116
- labels: O?.xAxis?.labels
115
+ gridLines: N?.xAxis?.gridLines,
116
+ labels: N?.xAxis?.labels
117
117
  },
118
- suffix: X,
118
+ suffix: Y,
119
119
  prefix: A,
120
120
  labelType: "secondary",
121
121
  showGridLines: !0,
@@ -128,7 +128,7 @@ function ut(pe) {
128
128
  x: m / 2,
129
129
  y: 0 - k.top + 15,
130
130
  style: z?.xAxis?.title,
131
- className: O?.xAxis?.title,
131
+ className: N?.xAxis?.title,
132
132
  text: p
133
133
  }
134
134
  ),
@@ -141,27 +141,27 @@ function ut(pe) {
141
141
  className: "undp-viz-g-with-hover",
142
142
  variants: {
143
143
  initial: {
144
- opacity: y ? r.color && g[D.indexOf(r.color)] === y ? 1 : I : F.length !== 0 ? F.indexOf(r.label) !== -1 ? 0.85 : I : 0.85
144
+ opacity: f ? r.color && g[O.indexOf(r.color)] === f ? 1 : I : F.length !== 0 ? F.indexOf(r.label) !== -1 ? 0.85 : I : 0.85
145
145
  },
146
146
  whileInView: {
147
- opacity: y ? r.color && g[D.indexOf(r.color)] === y ? 1 : I : F.length !== 0 ? F.indexOf(r.label) !== -1 ? 0.85 : I : 0.85,
148
- transition: { duration: N.duration }
147
+ opacity: f ? r.color && g[O.indexOf(r.color)] === f ? 1 : I : F.length !== 0 ? F.indexOf(r.label) !== -1 ? 0.85 : I : 0.85,
148
+ transition: { duration: D.duration }
149
149
  }
150
150
  },
151
151
  initial: "initial",
152
152
  animate: T ? "whileInView" : "initial",
153
- exit: { opacity: 0, transition: { duration: N.duration } },
154
- onMouseEnter: (f) => {
155
- oe(r), u(f.clientY), j(f.clientX), ee?.(r);
153
+ exit: { opacity: 0, transition: { duration: D.duration } },
154
+ onMouseEnter: (y) => {
155
+ oe(r), u(y.clientY), M(y.clientX), ee?.(r);
156
156
  },
157
157
  onClick: () => {
158
158
  (K || $) && (We(G, r) && ne ? (P(void 0), K?.(void 0)) : (P(r), K?.(r)));
159
159
  },
160
- onMouseMove: (f) => {
161
- oe(r), u(f.clientY), j(f.clientX);
160
+ onMouseMove: (y) => {
161
+ oe(r), u(y.clientY), M(y.clientX);
162
162
  },
163
163
  onMouseLeave: () => {
164
- oe(void 0), j(void 0), u(void 0), ee?.(void 0);
164
+ oe(void 0), M(void 0), u(void 0), ee?.(void 0);
165
165
  },
166
166
  children: [
167
167
  r.size ? /* @__PURE__ */ e.jsx(
@@ -172,14 +172,14 @@ function ut(pe) {
172
172
  width: 0,
173
173
  x: c(0),
174
174
  y: s(`${r.id}`),
175
- fill: n.filter((f) => f.color).length === 0 ? g[0] : r.color ? g[D.indexOf(r.color)] : je.gray
175
+ fill: n.filter((y) => y.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray
176
176
  },
177
177
  whileInView: {
178
178
  width: r.size >= 0 ? c(r.size) - c(0) : c(0) - c(r.size),
179
179
  x: r.size >= 0 ? c(0) : c(r.size),
180
180
  y: s(`${r.id}`),
181
- fill: n.filter((f) => f.color).length === 0 ? g[0] : r.color ? g[D.indexOf(r.color)] : je.gray,
182
- transition: { duration: N.duration }
181
+ fill: n.filter((y) => y.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray,
182
+ transition: { duration: D.duration }
183
183
  }
184
184
  },
185
185
  initial: "initial",
@@ -187,7 +187,7 @@ function ut(pe) {
187
187
  exit: {
188
188
  width: 0,
189
189
  x: c(0),
190
- transition: { duration: N.duration }
190
+ transition: { duration: D.duration }
191
191
  },
192
192
  height: s.bandwidth()
193
193
  }
@@ -198,12 +198,12 @@ function ut(pe) {
198
198
  value: `${r.label}`.length < Z ? `${r.label}` : `${`${r.label}`.substring(0, Z)}...`,
199
199
  y: s(r.id) || 0,
200
200
  x: (r.size || 0) < 0 ? c(0) : 0 - k.left,
201
- width: (r.size || 0) < 0 ? _ - c(0) : c(0) + k.left,
201
+ width: (r.size || 0) < 0 ? X - c(0) : c(0) + k.left,
202
202
  height: s.bandwidth(),
203
203
  alignment: r.size && r.size < 0 ? "left" : "right",
204
204
  style: z?.yAxis?.labels,
205
- className: O?.yAxis?.labels,
206
- animate: N,
205
+ className: N?.yAxis?.labels,
206
+ animate: D,
207
207
  isInView: T
208
208
  }
209
209
  ) : null,
@@ -217,7 +217,7 @@ function ut(pe) {
217
217
  className: $e(
218
218
  "graph-value text-sm",
219
219
  !x && g.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "",
220
- O?.graphObjectValues
220
+ N?.graphObjectValues
221
221
  ),
222
222
  dx: r.size && r.size < 0 ? -5 : 5,
223
223
  dy: "0.33em",
@@ -226,23 +226,23 @@ function ut(pe) {
226
226
  x: c(0),
227
227
  y: s(`${r.id}`) + s.bandwidth() / 2,
228
228
  opacity: 0,
229
- fill: x || (n.filter((f) => f.color).length === 0 ? g[0] : r.color ? g[D.indexOf(r.color)] : je.gray)
229
+ fill: x || (n.filter((y) => y.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray)
230
230
  },
231
231
  whileInView: {
232
232
  x: r.size ? c(r.size) : c(0),
233
233
  opacity: 1,
234
234
  y: s(`${r.id}`) + s.bandwidth() / 2,
235
- fill: x || (n.filter((f) => f.color).length === 0 ? g[0] : r.color ? g[D.indexOf(r.color)] : je.gray),
236
- transition: { duration: N.duration }
235
+ fill: x || (n.filter((y) => y.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray),
236
+ transition: { duration: D.duration }
237
237
  }
238
238
  },
239
239
  initial: "initial",
240
240
  animate: T ? "whileInView" : "initial",
241
241
  exit: {
242
242
  opacity: 0,
243
- transition: { duration: N.duration }
243
+ transition: { duration: D.duration }
244
244
  },
245
- children: ze(r.size, v, S, A, X)
245
+ children: ze(r.size, w, S, A, Y)
246
246
  }
247
247
  ) : null
248
248
  ]
@@ -257,11 +257,11 @@ function ut(pe) {
257
257
  x2: c(le < 0 ? 0 : le),
258
258
  y1: -2.5,
259
259
  y2: d + k.bottom,
260
- classNames: { axis: O?.yAxis?.axis },
260
+ classNames: { axis: N?.yAxis?.axis },
261
261
  styles: { axis: z?.yAxis?.axis }
262
262
  }
263
263
  ),
264
- C ? /* @__PURE__ */ e.jsx(e.Fragment, { children: C.map((r, f) => /* @__PURE__ */ e.jsx(
264
+ v ? /* @__PURE__ */ e.jsx(e.Fragment, { children: v.map((r, y) => /* @__PURE__ */ e.jsx(
265
265
  nt,
266
266
  {
267
267
  text: r.text,
@@ -272,10 +272,10 @@ function ut(pe) {
272
272
  textSide: c(r.value) > m * 0.75 || re ? "left" : "right",
273
273
  classNames: r.classNames,
274
274
  styles: r.styles,
275
- animate: N,
275
+ animate: D,
276
276
  isInView: T
277
277
  },
278
- f
278
+ y
279
279
  )) }) : null
280
280
  ] }),
281
281
  b.filter((r) => r.position === "after").map((r) => r.layer)
@@ -290,7 +290,7 @@ function ut(pe) {
290
290
  xPos: Q,
291
291
  yPos: H,
292
292
  backgroundStyle: z?.tooltip,
293
- className: O?.tooltip
293
+ className: N?.tooltip
294
294
  }
295
295
  ) : null,
296
296
  $ && G !== void 0 ? /* @__PURE__ */ e.jsx(
@@ -316,24 +316,24 @@ function mt(pe) {
316
316
  const {
317
317
  data: n,
318
318
  graphTitle: g,
319
- colors: X,
319
+ colors: Y,
320
320
  suffix: A = "",
321
- sources: Y,
321
+ sources: _,
322
322
  prefix: me = "",
323
323
  graphDescription: ue,
324
324
  barPadding: ge = 0.25,
325
325
  showValues: Z = !0,
326
- showTicks: _ = !0,
326
+ showTicks: X = !0,
327
327
  leftMargin: ie = 100,
328
- rightMargin: D = 40,
328
+ rightMargin: O = 40,
329
329
  truncateBy: se = 999,
330
330
  height: he,
331
- width: M,
331
+ width: j,
332
332
  footNote: E,
333
333
  colorDomain: J,
334
334
  colorLegendTitle: ee,
335
- highlightedDataPoints: C = [],
336
- padding: y,
335
+ highlightedDataPoints: v = [],
336
+ padding: f,
337
337
  backgroundColor: F = !1,
338
338
  topMargin: ae = 25,
339
339
  bottomMargin: le = 10,
@@ -346,14 +346,14 @@ function mt(pe) {
346
346
  graphID: $,
347
347
  maxValue: p,
348
348
  minValue: x,
349
- onSeriesMouseClick: w,
349
+ onSeriesMouseClick: C,
350
350
  graphDownload: z = !1,
351
- dataDownload: O = !1,
352
- sortData: N,
351
+ dataDownload: N = !1,
352
+ sortData: D,
353
353
  labelOrder: I,
354
354
  language: S = "en",
355
355
  showNAColor: b = !0,
356
- minHeight: v = 0,
356
+ minHeight: w = 0,
357
357
  theme: q = "light",
358
358
  maxBarThickness: T,
359
359
  maxNumberOfBars: V,
@@ -361,7 +361,7 @@ function mt(pe) {
361
361
  ariaLabel: G,
362
362
  resetSelectionOnDoubleClick: P = !0,
363
363
  detailsOnClick: Q,
364
- barAxisTitle: j,
364
+ barAxisTitle: M,
365
365
  noOfTicks: H = 5,
366
366
  valueColor: u,
367
367
  styles: k,
@@ -373,7 +373,7 @@ function mt(pe) {
373
373
  customLayers: s = [],
374
374
  timeline: t = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
375
375
  naLabel: r = "NA"
376
- } = pe, [f, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), de = Fe(
376
+ } = pe, [y, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), de = Fe(
377
377
  Ae(
378
378
  n.filter((a) => a.date !== void 0 && a.date !== null),
379
379
  (a) => a.date
@@ -382,10 +382,10 @@ function mt(pe) {
382
382
  ), [be, we] = L(t.autoplay ? 0 : de.length - 1), [Ne, o] = L(void 0), i = Me(null), B = Me(null);
383
383
  Ve(() => {
384
384
  const a = new ResizeObserver((ve) => {
385
- Ce(M || ve[0].target.clientWidth || 620), U(he || ve[0].target.clientHeight || 480);
385
+ Ce(j || ve[0].target.clientWidth || 620), U(he || ve[0].target.clientHeight || 480);
386
386
  });
387
- return i.current && (U(i.current.clientHeight || 480), Ce(i.current.clientWidth || 620), M || a.observe(i.current)), () => a.disconnect();
388
- }, [M, he]), Ve(() => {
387
+ return i.current && (U(i.current.clientHeight || 480), Ce(i.current.clientWidth || 620), j || a.observe(i.current)), () => a.disconnect();
388
+ }, [j, he]), Ve(() => {
389
389
  const a = setInterval(
390
390
  () => {
391
391
  we((ve) => ve < de.length - 1 ? ve + 1 : 0);
@@ -403,13 +403,14 @@ function mt(pe) {
403
403
  return /* @__PURE__ */ e.jsx(
404
404
  "div",
405
405
  {
406
- className: `${q || "light"} flex ${M ? "w-fit grow-0" : "w-full grow"}`,
406
+ className: `${q || "light"} flex ${j ? "w-fit grow-0" : "w-full grow"}`,
407
407
  dir: S === "he" || S === "ar" ? "rtl" : void 0,
408
408
  children: /* @__PURE__ */ e.jsx(
409
409
  "div",
410
410
  {
411
411
  className: $e(
412
412
  `${F ? F === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${S || "en"}`,
413
+ j ? "w-fit" : "w-full",
413
414
  m?.graphContainer
414
415
  ),
415
416
  style: {
@@ -423,9 +424,9 @@ function mt(pe) {
423
424
  "div",
424
425
  {
425
426
  className: "flex grow",
426
- style: { padding: F ? y || "1rem" : y || 0 },
427
+ style: { padding: F ? f || "1rem" : f || 0 },
427
428
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
428
- g || ue || z || O ? /* @__PURE__ */ e.jsx(
429
+ g || ue || z || N ? /* @__PURE__ */ e.jsx(
429
430
  Ke,
430
431
  {
431
432
  styles: {
@@ -438,9 +439,9 @@ function mt(pe) {
438
439
  },
439
440
  graphTitle: g,
440
441
  graphDescription: ue,
441
- width: M,
442
+ width: j,
442
443
  graphDownload: z ? B.current : void 0,
443
- dataDownload: O ? n.map((a) => a.data).filter((a) => a !== void 0).length > 0 ? n.map((a) => a.data).filter((a) => a !== void 0) : n.filter((a) => a !== void 0) : null
444
+ dataDownload: N ? n.map((a) => a.data).filter((a) => a !== void 0).length > 0 ? n.map((a) => a.data).filter((a) => a !== void 0) : n.filter((a) => a !== void 0) : null
444
445
  }
445
446
  ) : null,
446
447
  t.enabled && de.length > 0 && at ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
@@ -479,9 +480,9 @@ function mt(pe) {
479
480
  ne && n.filter((a) => a.color).length !== 0 ? /* @__PURE__ */ e.jsx(
480
481
  Qe,
481
482
  {
482
- width: M,
483
+ width: j,
483
484
  colorLegendTitle: ee,
484
- colors: X || je[q].categoricalColors.colors,
485
+ colors: Y || je[q].categoricalColors.colors,
485
486
  colorDomain: J || Ae(
486
487
  n.filter((a) => a.color),
487
488
  "color"
@@ -496,10 +497,10 @@ function mt(pe) {
496
497
  className: "flex grow flex-col justify-center w-full leading-0",
497
498
  ref: i,
498
499
  "aria-label": "Graph area",
499
- children: (M || f) && (he || ce) ? /* @__PURE__ */ e.jsx(
500
+ children: (j || y) && (he || ce) ? /* @__PURE__ */ e.jsx(
500
501
  ut,
501
502
  {
502
- data: N === "asc" ? rt(
503
+ data: D === "asc" ? rt(
503
504
  Se(n, t.dateFormat || "yyyy").filter(
504
505
  (a) => t.enabled ? a.date === De(
505
506
  new Date(de[be]),
@@ -507,7 +508,7 @@ function mt(pe) {
507
508
  ) : a
508
509
  ).filter((a) => d ? !W(a.size) : a),
509
510
  (a) => a.size
510
- ).filter((a, ve) => V ? ve < V : !0) : N === "desc" ? rt(
511
+ ).filter((a, ve) => V ? ve < V : !0) : D === "desc" ? rt(
511
512
  Se(n, t.dateFormat || "yyyy").filter(
512
513
  (a) => t.enabled ? a.date === De(
513
514
  new Date(de[be]),
@@ -521,24 +522,24 @@ function mt(pe) {
521
522
  t.dateFormat || "yyyy"
522
523
  ) : a
523
524
  ).filter((a) => d ? !W(a.size) : a).filter((a, ve) => V ? ve < V : !0),
524
- barColor: n.filter((a) => a.color).length === 0 ? X ? [X] : [je.primaryColors["blue-600"]] : X || je[q].categoricalColors.colors,
525
+ barColor: n.filter((a) => a.color).length === 0 ? Y ? [Y] : [je.primaryColors["blue-600"]] : Y || je[q].categoricalColors.colors,
525
526
  colorDomain: n.filter((a) => a.color).length === 0 ? [] : J || Ae(
526
527
  n.filter((a) => a.color),
527
528
  "color"
528
529
  ).map((a) => a.color),
529
- width: M || f,
530
+ width: j || y,
530
531
  selectedColor: Ne,
531
532
  height: Math.max(
532
- v,
533
- he || (te ? v ? (M || f) * te > v ? (M || f) * te : v : (M || f) * te : ce)
533
+ w,
534
+ he || (te ? w ? (j || y) * te > w ? (j || y) * te : w : (j || y) * te : ce)
534
535
  ),
535
536
  suffix: A,
536
537
  prefix: me,
537
538
  barPadding: ge,
538
539
  showValues: Z,
539
- showTicks: _,
540
+ showTicks: X,
540
541
  leftMargin: ie,
541
- rightMargin: D,
542
+ rightMargin: O,
542
543
  topMargin: ae,
543
544
  bottomMargin: le,
544
545
  truncateBy: se,
@@ -556,15 +557,15 @@ function mt(pe) {
556
557
  ) >= 0 ? 0 : Math.min(
557
558
  ...n.filter((a) => !W(a.size)).map((a) => a.size)
558
559
  ) : x,
559
- highlightedDataPoints: C,
560
- onSeriesMouseClick: w,
560
+ highlightedDataPoints: v,
561
+ onSeriesMouseClick: C,
561
562
  labelOrder: I,
562
563
  rtl: S === "he" || S === "ar",
563
564
  maxBarThickness: T,
564
565
  minBarThickness: oe,
565
566
  resetSelectionOnDoubleClick: P,
566
567
  detailsOnClick: Q,
567
- barAxisTitle: j,
568
+ barAxisTitle: M,
568
569
  noOfTicks: H,
569
570
  valueColor: u,
570
571
  classNames: m,
@@ -579,12 +580,12 @@ function mt(pe) {
579
580
  }
580
581
  )
581
582
  ] }) }),
582
- Y || E ? /* @__PURE__ */ e.jsx(
583
+ _ || E ? /* @__PURE__ */ e.jsx(
583
584
  Je,
584
585
  {
585
- sources: Y,
586
+ sources: _,
586
587
  footNote: E,
587
- width: M,
588
+ width: j,
588
589
  styles: { footnote: k?.footnote, source: k?.source },
589
590
  classNames: {
590
591
  footnote: m?.footnote,
@@ -604,24 +605,24 @@ function gt(pe) {
604
605
  const {
605
606
  data: n,
606
607
  barColors: g,
607
- barPadding: X,
608
+ barPadding: Y,
608
609
  showTicks: A,
609
- leftMargin: Y,
610
+ leftMargin: _,
610
611
  truncateBy: me,
611
612
  width: ue,
612
613
  height: ge,
613
614
  suffix: Z,
614
- prefix: _,
615
+ prefix: X,
615
616
  showValues: ie,
616
- rightMargin: D,
617
+ rightMargin: O,
617
618
  topMargin: se,
618
619
  bottomMargin: he,
619
- showLabels: M,
620
+ showLabels: j,
620
621
  tooltip: E,
621
622
  onSeriesMouseOver: J,
622
623
  refValues: ee,
623
- maxValue: C,
624
- minValue: y,
624
+ maxValue: v,
625
+ minValue: f,
625
626
  onSeriesMouseClick: F,
626
627
  selectedColor: ae,
627
628
  rtl: le,
@@ -634,26 +635,26 @@ function gt(pe) {
634
635
  noOfTicks: $,
635
636
  styles: p,
636
637
  classNames: x,
637
- animate: w,
638
+ animate: C,
638
639
  colorDomain: z,
639
- precision: O,
640
- customLayers: N,
640
+ precision: N,
641
+ customLayers: D,
641
642
  naLabel: I
642
643
  } = pe, S = Me(null), b = Re(S, {
643
- once: w.once,
644
- amount: w.amount
645
- }), v = {
644
+ once: C.once,
645
+ amount: C.amount
646
+ }), w = {
646
647
  top: xe ? se + 25 : se,
647
648
  bottom: he,
648
- left: Y,
649
- right: D
650
- }, [q, T] = L(void 0), [V, oe] = L(void 0), [G, P] = L(void 0), [Q, j] = L(void 0), H = ue - v.left - v.right, u = ge - v.top - v.bottom, k = n.map((s, t) => ({
649
+ left: _,
650
+ right: O
651
+ }, [q, T] = L(void 0), [V, oe] = L(void 0), [G, P] = L(void 0), [Q, M] = L(void 0), H = ue - w.left - w.right, u = ge - w.top - w.bottom, k = n.map((s, t) => ({
651
652
  ...s,
652
653
  id: K ? `${s.label}` : `${t}`
653
- })), m = K || k.map((s) => `${s.id}`), d = qe().domain([y, C]).range([0, H]).nice(), h = Ie().domain(m).range([
654
+ })), m = K || k.map((s) => `${s.id}`), d = qe().domain([f, v]).range([0, H]).nice(), h = Ie().domain(m).range([
654
655
  0,
655
656
  te ? Math.min(u, te * m.length) : u
656
- ]).paddingInner(X), c = Ie().domain(n[0].size.map((s, t) => `${t}`)).range([0, h.bandwidth()]).paddingInner(0.1), l = d.ticks($);
657
+ ]).paddingInner(Y), c = Ie().domain(n[0].size.map((s, t) => `${t}`)).range([0, h.bandwidth()]).paddingInner(0.1), l = d.ticks($);
657
658
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
658
659
  /* @__PURE__ */ e.jsx(
659
660
  ye.svg,
@@ -663,14 +664,14 @@ function gt(pe) {
663
664
  height: `${ge}px`,
664
665
  viewBox: `0 0 ${ue} ${ge}`,
665
666
  direction: "ltr",
666
- children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${v.left},${v.top})`, children: [
667
+ children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${w.left},${w.top})`, children: [
667
668
  A ? /* @__PURE__ */ e.jsx(
668
669
  st,
669
670
  {
670
671
  values: l.filter((s) => s !== 0),
671
672
  x: l.filter((s) => s !== 0).map((s) => d(s)),
672
673
  y1: 0 - se,
673
- y2: u + v.bottom,
674
+ y2: u + w.bottom,
674
675
  styles: {
675
676
  gridLines: p?.xAxis?.gridLines,
676
677
  labels: p?.xAxis?.labels
@@ -680,23 +681,23 @@ function gt(pe) {
680
681
  labels: x?.xAxis?.labels
681
682
  },
682
683
  suffix: Z,
683
- prefix: _,
684
+ prefix: X,
684
685
  labelType: "secondary",
685
686
  showGridLines: !0,
686
- precision: O
687
+ precision: N
687
688
  }
688
689
  ) : null,
689
690
  /* @__PURE__ */ e.jsx(
690
691
  _e,
691
692
  {
692
693
  x: H / 2,
693
- y: 0 - v.top + 15,
694
+ y: 0 - w.top + 15,
694
695
  style: p?.xAxis?.title,
695
696
  className: x?.xAxis?.title,
696
697
  text: xe
697
698
  }
698
699
  ),
699
- N.filter((s) => s.position === "before").map((s) => s.layer),
700
+ D.filter((s) => s.position === "before").map((s) => s.layer),
700
701
  /* @__PURE__ */ e.jsxs(Ue, { children: [
701
702
  k.map(
702
703
  (s) => W(h(s.id)) ? null : /* @__PURE__ */ e.jsxs(
@@ -710,26 +711,26 @@ function gt(pe) {
710
711
  whileInView: {
711
712
  x: 0,
712
713
  y: h(`${s.id}`),
713
- transition: { duration: w.duration }
714
+ transition: { duration: C.duration }
714
715
  }
715
716
  },
716
717
  initial: "initial",
717
718
  animate: b ? "whileInView" : "initial",
718
- exit: { opacity: 0, transition: { duration: w.duration } },
719
+ exit: { opacity: 0, transition: { duration: C.duration } },
719
720
  children: [
720
721
  s.size.map((t, r) => /* @__PURE__ */ e.jsxs(
721
722
  ye.g,
722
723
  {
723
724
  className: "undp-viz-g-with-hover",
724
725
  opacity: ae ? g[r] === ae ? 1 : 0.3 : 0.85,
725
- onMouseEnter: (f) => {
726
- T({ ...s, sizeIndex: r }), j(f.clientY), P(f.clientX), J?.({ ...s, sizeIndex: r });
726
+ onMouseEnter: (y) => {
727
+ T({ ...s, sizeIndex: r }), M(y.clientY), P(y.clientX), J?.({ ...s, sizeIndex: r });
727
728
  },
728
- onMouseMove: (f) => {
729
- T({ ...s, sizeIndex: r }), j(f.clientY), P(f.clientX);
729
+ onMouseMove: (y) => {
730
+ T({ ...s, sizeIndex: r }), M(y.clientY), P(y.clientX);
730
731
  },
731
732
  onMouseLeave: () => {
732
- T(void 0), P(void 0), j(void 0), J?.(void 0);
733
+ T(void 0), P(void 0), M(void 0), J?.(void 0);
733
734
  },
734
735
  onClick: () => {
735
736
  (F || R) && (We(V, { ...s, sizeIndex: r }) && re ? (oe(void 0), F?.(void 0)) : (oe({ ...s, sizeIndex: r }), F && F({ ...s, sizeIndex: r })));
@@ -749,13 +750,13 @@ function gt(pe) {
749
750
  width: W(t) ? 0 : t >= 0 ? d(t) - d(0) : d(0) - d(t),
750
751
  x: t >= 0 ? d(0) : d(t),
751
752
  fill: g[r],
752
- transition: { duration: w.duration }
753
+ transition: { duration: C.duration }
753
754
  }
754
755
  },
755
756
  exit: {
756
757
  width: 0,
757
758
  x: d(0),
758
- transition: { duration: w.duration }
759
+ transition: { duration: C.duration }
759
760
  },
760
761
  height: c.bandwidth(),
761
762
  initial: "initial",
@@ -779,33 +780,33 @@ function gt(pe) {
779
780
  whileInView: {
780
781
  x: d(t || 0),
781
782
  opacity: 1,
782
- transition: { duration: w.duration }
783
+ transition: { duration: C.duration }
783
784
  }
784
785
  },
785
786
  initial: "initial",
786
787
  animate: b ? "whileInView" : "initial",
787
788
  exit: {
788
789
  opacity: 0,
789
- transition: { duration: w.duration }
790
+ transition: { duration: C.duration }
790
791
  },
791
- children: ze(t, I, O, _, Z)
792
+ children: ze(t, I, N, X, Z)
792
793
  }
793
794
  ) : null
794
795
  ]
795
796
  },
796
797
  `${s.label}-${z[r] || r}`
797
798
  )),
798
- M ? /* @__PURE__ */ e.jsx(
799
+ j ? /* @__PURE__ */ e.jsx(
799
800
  ot,
800
801
  {
801
802
  value: `${s.label}`.length < me ? `${s.label}` : `${`${s.label}`.substring(0, me)}...`,
802
803
  y: 0,
803
- x: 0 - v.left,
804
- width: d(y < 0 ? 0 : y) + v.left,
804
+ x: 0 - w.left,
805
+ width: d(f < 0 ? 0 : f) + w.left,
805
806
  height: h.bandwidth(),
806
807
  style: p?.yAxis?.labels,
807
808
  className: x?.yAxis?.labels,
808
- animate: w,
809
+ animate: C,
809
810
  isInView: b
810
811
  }
811
812
  ) : null
@@ -817,10 +818,10 @@ function gt(pe) {
817
818
  /* @__PURE__ */ e.jsx(
818
819
  Ee,
819
820
  {
820
- x1: d(y < 0 ? 0 : y),
821
- x2: d(y < 0 ? 0 : y),
821
+ x1: d(f < 0 ? 0 : f),
822
+ x2: d(f < 0 ? 0 : f),
822
823
  y1: -2.5,
823
- y2: u + v.bottom,
824
+ y2: u + w.bottom,
824
825
  classNames: { axis: x?.yAxis?.axis },
825
826
  styles: { axis: p?.yAxis?.axis }
826
827
  }
@@ -831,18 +832,18 @@ function gt(pe) {
831
832
  text: s.text,
832
833
  color: s.color,
833
834
  x: d(s.value),
834
- y1: 0 - v.top,
835
- y2: u + v.bottom,
835
+ y1: 0 - w.top,
836
+ y2: u + w.bottom,
836
837
  textSide: d(s.value) > H * 0.75 || le ? "left" : "right",
837
838
  classNames: s.classNames,
838
839
  styles: s.styles,
839
- animate: w,
840
+ animate: C,
840
841
  isInView: b
841
842
  },
842
843
  t
843
844
  )) }) : null
844
845
  ] }),
845
- N.filter((s) => s.position === "after").map((s) => s.layer)
846
+ D.filter((s) => s.position === "after").map((s) => s.layer)
846
847
  ] })
847
848
  }
848
849
  ),
@@ -880,24 +881,24 @@ function xt(pe) {
880
881
  const {
881
882
  data: n,
882
883
  graphTitle: g,
883
- colors: X = je.light.categoricalColors.colors,
884
+ colors: Y = je.light.categoricalColors.colors,
884
885
  sources: A,
885
- graphDescription: Y,
886
+ graphDescription: _,
886
887
  barPadding: me = 0.25,
887
888
  showTicks: ue = !0,
888
889
  truncateBy: ge = 999,
889
890
  height: Z,
890
- width: _,
891
+ width: X,
891
892
  footNote: ie,
892
- colorDomain: D,
893
+ colorDomain: O,
893
894
  colorLegendTitle: se,
894
895
  suffix: he = "",
895
- prefix: M = "",
896
+ prefix: j = "",
896
897
  showValues: E = !0,
897
898
  showColorScale: J = !0,
898
899
  padding: ee,
899
- backgroundColor: C = !1,
900
- leftMargin: y = 100,
900
+ backgroundColor: v = !1,
901
+ leftMargin: f = 100,
901
902
  rightMargin: F = 40,
902
903
  topMargin: ae = 25,
903
904
  bottomMargin: le = 10,
@@ -910,14 +911,14 @@ function xt(pe) {
910
911
  maxValue: $,
911
912
  minValue: p,
912
913
  onSeriesMouseClick: x,
913
- graphDownload: w = !1,
914
+ graphDownload: C = !1,
914
915
  dataDownload: z = !1,
915
- language: O = "en",
916
- labelOrder: N,
916
+ language: N = "en",
917
+ labelOrder: D,
917
918
  minHeight: I = 0,
918
919
  theme: S = "light",
919
920
  maxBarThickness: b,
920
- ariaLabel: v,
921
+ ariaLabel: w,
921
922
  resetSelectionOnDoubleClick: q = !0,
922
923
  detailsOnClick: T,
923
924
  barAxisTitle: V,
@@ -925,7 +926,7 @@ function xt(pe) {
925
926
  valueColor: G,
926
927
  styles: P,
927
928
  classNames: Q,
928
- filterNA: j = !0,
929
+ filterNA: M = !0,
929
930
  animate: H = !1,
930
931
  precision: u = 2,
931
932
  customLayers: k = [],
@@ -933,7 +934,7 @@ function xt(pe) {
933
934
  naLabel: d = "NA",
934
935
  sortParameter: h,
935
936
  sortData: c
936
- } = pe, [l, s] = L(0), [t, r] = L(0), [f, Ce] = L(m.autoplay), ce = Fe(
937
+ } = pe, [l, s] = L(0), [t, r] = L(0), [y, Ce] = L(m.autoplay), ce = Fe(
937
938
  Ae(
938
939
  n.filter((o) => o.date !== void 0 && o.date !== null),
939
940
  (o) => o.date
@@ -942,18 +943,18 @@ function xt(pe) {
942
943
  ), [U, fe] = L(m.autoplay ? 0 : ce.length - 1), [Oe, de] = L(void 0), be = Me(null), we = Me(null);
943
944
  Ve(() => {
944
945
  const o = new ResizeObserver((i) => {
945
- s(_ || i[0].target.clientWidth || 620), r(Z || i[0].target.clientHeight || 480);
946
+ s(X || i[0].target.clientWidth || 620), r(Z || i[0].target.clientHeight || 480);
946
947
  });
947
- return be.current && (r(be.current.clientHeight || 480), s(be.current.clientWidth || 620), _ || o.observe(be.current)), () => o.disconnect();
948
- }, [_, Z]), Ve(() => {
948
+ return be.current && (r(be.current.clientHeight || 480), s(be.current.clientWidth || 620), X || o.observe(be.current)), () => o.disconnect();
949
+ }, [X, Z]), Ve(() => {
949
950
  const o = setInterval(
950
951
  () => {
951
952
  fe((i) => i < ce.length - 1 ? i + 1 : 0);
952
953
  },
953
954
  (m.speed || 2) * 1e3
954
955
  );
955
- return f || clearInterval(o), () => clearInterval(o);
956
- }, [ce, f, m.speed]);
956
+ return y || clearInterval(o), () => clearInterval(o);
957
+ }, [ce, y, m.speed]);
957
958
  const Ne = Pe(
958
959
  ce,
959
960
  U,
@@ -963,29 +964,30 @@ function xt(pe) {
963
964
  return /* @__PURE__ */ e.jsx(
964
965
  "div",
965
966
  {
966
- className: `${S || "light"} flex ${_ ? "w-fit grow-0" : "w-full grow"}`,
967
- dir: O === "he" || O === "ar" ? "rtl" : void 0,
967
+ className: `${S || "light"} flex ${X ? "w-fit grow-0" : "w-full grow"}`,
968
+ dir: N === "he" || N === "ar" ? "rtl" : void 0,
968
969
  children: /* @__PURE__ */ e.jsx(
969
970
  "div",
970
971
  {
971
972
  className: $e(
972
- `${C ? C === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${O || "en"}`,
973
+ `${v ? v === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${N || "en"}`,
974
+ X ? "w-fit" : "w-full",
973
975
  Q?.graphContainer
974
976
  ),
975
977
  style: {
976
978
  ...P?.graphContainer || {},
977
- ...C && C !== !0 ? { backgroundColor: C } : {}
979
+ ...v && v !== !0 ? { backgroundColor: v } : {}
978
980
  },
979
981
  id: ne,
980
982
  ref: we,
981
- "aria-label": v || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${Y ? ` ${Y}` : ""}`,
983
+ "aria-label": w || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${_ ? ` ${_}` : ""}`,
982
984
  children: /* @__PURE__ */ e.jsx(
983
985
  "div",
984
986
  {
985
987
  className: "flex grow",
986
- style: { padding: C ? ee || "1rem" : ee || 0 },
988
+ style: { padding: v ? ee || "1rem" : ee || 0 },
987
989
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 w-full grow justify-between", children: [
988
- g || Y || w || z ? /* @__PURE__ */ e.jsx(
990
+ g || _ || C || z ? /* @__PURE__ */ e.jsx(
989
991
  Ke,
990
992
  {
991
993
  styles: {
@@ -997,9 +999,9 @@ function xt(pe) {
997
999
  description: Q?.description
998
1000
  },
999
1001
  graphTitle: g,
1000
- graphDescription: Y,
1001
- width: _,
1002
- graphDownload: w ? we.current : void 0,
1002
+ graphDescription: _,
1003
+ width: X,
1004
+ graphDownload: C ? we.current : void 0,
1003
1005
  dataDownload: z ? n.map((o) => o.data).filter((o) => o !== void 0).length > 0 ? n.map((o) => o.data).filter((o) => o !== void 0) : n.filter((o) => o !== void 0) : null
1004
1006
  }
1005
1007
  ) : null,
@@ -1009,11 +1011,11 @@ function xt(pe) {
1009
1011
  {
1010
1012
  type: "button",
1011
1013
  onClick: () => {
1012
- Ce(!f);
1014
+ Ce(!y);
1013
1015
  },
1014
1016
  className: "p-0 border-0 cursor-pointer bg-transparent",
1015
- "aria-label": f ? "Click to pause animation" : "Click to play animation",
1016
- children: f ? /* @__PURE__ */ e.jsx(et, {}) : /* @__PURE__ */ e.jsx(tt, {})
1017
+ "aria-label": y ? "Click to pause animation" : "Click to play animation",
1018
+ children: y ? /* @__PURE__ */ e.jsx(et, {}) : /* @__PURE__ */ e.jsx(tt, {})
1017
1019
  }
1018
1020
  ),
1019
1021
  /* @__PURE__ */ e.jsx(
@@ -1039,15 +1041,15 @@ function xt(pe) {
1039
1041
  J ? /* @__PURE__ */ e.jsx(
1040
1042
  Qe,
1041
1043
  {
1042
- width: _,
1043
- colorDomain: D,
1044
- colors: X,
1044
+ width: X,
1045
+ colorDomain: O,
1046
+ colors: Y,
1045
1047
  colorLegendTitle: se,
1046
1048
  setSelectedColor: de,
1047
1049
  showNAColor: !1
1048
1050
  }
1049
1051
  ) : null,
1050
- /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: be, "aria-label": "Graph area", children: (_ || l) && (Z || t) ? /* @__PURE__ */ e.jsx(
1052
+ /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: be, "aria-label": "Graph area", children: (X || l) && (Z || t) ? /* @__PURE__ */ e.jsx(
1051
1053
  gt,
1052
1054
  {
1053
1055
  data: h !== void 0 ? h === "total" ? Le(
@@ -1060,7 +1062,7 @@ function xt(pe) {
1060
1062
  m.dateFormat || "yyyy"
1061
1063
  ) : o
1062
1064
  ).filter(
1063
- (o) => j ? !o.size.every((i) => i == null) : o
1065
+ (o) => M ? !o.size.every((i) => i == null) : o
1064
1066
  ),
1065
1067
  (o) => ke(o.size.filter((i) => !W(i))),
1066
1068
  [c || "asc"]
@@ -1074,26 +1076,26 @@ function xt(pe) {
1074
1076
  m.dateFormat || "yyyy"
1075
1077
  ) : o
1076
1078
  ).filter(
1077
- (o) => j ? !o.size.every((i) => i == null) : o
1079
+ (o) => M ? !o.size.every((i) => i == null) : o
1078
1080
  ),
1079
1081
  (o) => W(o.size[h]) ? -1 / 0 : o.size[h],
1080
1082
  [c || "asc"]
1081
1083
  ) : Te(
1082
1084
  n,
1083
1085
  m.dateFormat || "yyyy"
1084
- ).filter((o) => j ? !o.size.every((i) => i == null) : o),
1085
- barColors: X,
1086
- width: _ || l,
1086
+ ).filter((o) => M ? !o.size.every((i) => i == null) : o),
1087
+ barColors: Y,
1088
+ width: X || l,
1087
1089
  height: Math.max(
1088
1090
  I,
1089
- Z || (te ? I ? (_ || l) * te > I ? (_ || l) * te : I : (_ || l) * te : t)
1091
+ Z || (te ? I ? (X || l) * te > I ? (X || l) * te : I : (X || l) * te : t)
1090
1092
  ),
1091
1093
  suffix: he,
1092
- prefix: M,
1094
+ prefix: j,
1093
1095
  showValues: E,
1094
1096
  barPadding: me,
1095
1097
  showTicks: ue,
1096
- leftMargin: y,
1098
+ leftMargin: f,
1097
1099
  rightMargin: F,
1098
1100
  topMargin: ae,
1099
1101
  bottomMargin: le,
@@ -1138,8 +1140,8 @@ function xt(pe) {
1138
1140
  ) : p,
1139
1141
  onSeriesMouseClick: x,
1140
1142
  selectedColor: Oe,
1141
- labelOrder: N,
1142
- rtl: O === "he" || O === "ar",
1143
+ labelOrder: D,
1144
+ rtl: N === "he" || N === "ar",
1143
1145
  maxBarThickness: b,
1144
1146
  resetSelectionOnDoubleClick: q,
1145
1147
  detailsOnClick: T,
@@ -1148,7 +1150,7 @@ function xt(pe) {
1148
1150
  valueColor: G,
1149
1151
  styles: P,
1150
1152
  classNames: Q,
1151
- colorDomain: D,
1153
+ colorDomain: O,
1152
1154
  animate: H === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : H || { duration: 0, once: !0, amount: 0 },
1153
1155
  precision: u,
1154
1156
  customLayers: k,
@@ -1166,7 +1168,7 @@ function xt(pe) {
1166
1168
  },
1167
1169
  sources: A,
1168
1170
  footNote: ie,
1169
- width: _
1171
+ width: X
1170
1172
  }
1171
1173
  ) : null
1172
1174
  ] })
@@ -1181,24 +1183,24 @@ function ft(pe) {
1181
1183
  const {
1182
1184
  data: n,
1183
1185
  barColors: g,
1184
- barPadding: X,
1186
+ barPadding: Y,
1185
1187
  showTicks: A,
1186
- leftMargin: Y,
1188
+ leftMargin: _,
1187
1189
  rightMargin: me,
1188
1190
  truncateBy: ue,
1189
1191
  width: ge,
1190
1192
  height: Z,
1191
- topMargin: _,
1193
+ topMargin: X,
1192
1194
  bottomMargin: ie,
1193
- tooltip: D,
1195
+ tooltip: O,
1194
1196
  onSeriesMouseOver: se,
1195
1197
  showLabels: he,
1196
- suffix: M,
1198
+ suffix: j,
1197
1199
  prefix: E,
1198
1200
  showValues: J,
1199
1201
  refValues: ee,
1200
- maxValue: C,
1201
- onSeriesMouseClick: y,
1202
+ maxValue: v,
1203
+ onSeriesMouseClick: f,
1202
1204
  selectedColor: F,
1203
1205
  rtl: ae,
1204
1206
  labelOrder: le,
@@ -1211,26 +1213,26 @@ function ft(pe) {
1211
1213
  noOfTicks: $,
1212
1214
  styles: p,
1213
1215
  classNames: x,
1214
- animate: w,
1216
+ animate: C,
1215
1217
  colorDomain: z,
1216
- precision: O,
1217
- customLayers: N,
1218
+ precision: N,
1219
+ customLayers: D,
1218
1220
  naLabel: I
1219
1221
  } = pe, S = Me(null), b = Re(S, {
1220
- once: w.once,
1221
- amount: w.amount
1222
- }), v = {
1223
- top: xe ? _ + 25 : _,
1222
+ once: C.once,
1223
+ amount: C.amount
1224
+ }), w = {
1225
+ top: xe ? X + 25 : X,
1224
1226
  bottom: ie,
1225
- left: Y,
1227
+ left: _,
1226
1228
  right: me
1227
- }, [q, T] = L(void 0), [V, oe] = L(void 0), [G, P] = L(void 0), [Q, j] = L(void 0), H = ge - v.left - v.right, u = Z - v.top - v.bottom, k = n.map((l, s) => ({
1229
+ }, [q, T] = L(void 0), [V, oe] = L(void 0), [G, P] = L(void 0), [Q, M] = L(void 0), H = ge - w.left - w.right, u = Z - w.top - w.bottom, k = n.map((l, s) => ({
1228
1230
  ...l,
1229
1231
  id: le ? `${l.label}` : `${s}`
1230
- })), m = le || k.map((l) => `${l.id}`), d = qe().domain([0, C]).range([0, H]).nice(), h = Ie().domain(m).range([
1232
+ })), m = le || k.map((l) => `${l.id}`), d = qe().domain([0, v]).range([0, H]).nice(), h = Ie().domain(m).range([
1231
1233
  0,
1232
1234
  te ? Math.max(u, te * m.length) : K ? Math.min(u, K * m.length) : u
1233
- ]).paddingInner(X), c = d.ticks($);
1235
+ ]).paddingInner(Y), c = d.ticks($);
1234
1236
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1235
1237
  /* @__PURE__ */ e.jsx(
1236
1238
  ye.svg,
@@ -1240,14 +1242,14 @@ function ft(pe) {
1240
1242
  height: `${Z}px`,
1241
1243
  viewBox: `0 0 ${ge} ${Z}`,
1242
1244
  direction: "ltr",
1243
- children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${v.left},${v.top})`, children: [
1245
+ children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${w.left},${w.top})`, children: [
1244
1246
  A ? /* @__PURE__ */ e.jsx(
1245
1247
  st,
1246
1248
  {
1247
1249
  values: c.filter((l) => l !== 0),
1248
1250
  x: c.filter((l) => l !== 0).map((l) => d(l)),
1249
- y1: 0 - _,
1250
- y2: u + v.bottom,
1251
+ y1: 0 - X,
1252
+ y2: u + w.bottom,
1251
1253
  styles: {
1252
1254
  gridLines: p?.xAxis?.gridLines,
1253
1255
  labels: p?.xAxis?.labels
@@ -1256,24 +1258,24 @@ function ft(pe) {
1256
1258
  gridLines: x?.xAxis?.gridLines,
1257
1259
  labels: x?.xAxis?.labels
1258
1260
  },
1259
- suffix: M,
1261
+ suffix: j,
1260
1262
  prefix: E,
1261
1263
  labelType: "secondary",
1262
1264
  showGridLines: !0,
1263
- precision: O
1265
+ precision: N
1264
1266
  }
1265
1267
  ) : null,
1266
1268
  /* @__PURE__ */ e.jsx(
1267
1269
  _e,
1268
1270
  {
1269
1271
  x: H / 2,
1270
- y: 0 - v.top + 15,
1272
+ y: 0 - w.top + 15,
1271
1273
  style: p?.xAxis?.title,
1272
1274
  className: x?.xAxis?.title,
1273
1275
  text: xe
1274
1276
  }
1275
1277
  ),
1276
- N.filter((l) => l.position === "before").map((l) => l.layer),
1278
+ D.filter((l) => l.position === "before").map((l) => l.layer),
1277
1279
  /* @__PURE__ */ e.jsxs(Ue, { children: [
1278
1280
  k.map(
1279
1281
  (l) => W(h(l.id)) ? null : /* @__PURE__ */ e.jsxs(
@@ -1285,28 +1287,28 @@ function ft(pe) {
1285
1287
  whileInView: {
1286
1288
  x: 0,
1287
1289
  y: h(`${l.id}`),
1288
- transition: { duration: w.duration }
1290
+ transition: { duration: C.duration }
1289
1291
  }
1290
1292
  },
1291
1293
  initial: "initial",
1292
1294
  animate: b ? "whileInView" : "initial",
1293
- exit: { opacity: 0, transition: { duration: w.duration } },
1295
+ exit: { opacity: 0, transition: { duration: C.duration } },
1294
1296
  children: [
1295
1297
  l.size.map((s, t) => /* @__PURE__ */ e.jsxs(
1296
1298
  ye.g,
1297
1299
  {
1298
1300
  opacity: F ? g[t] === F ? 1 : 0.3 : 1,
1299
1301
  onMouseEnter: (r) => {
1300
- T({ ...l, sizeIndex: t }), j(r.clientY), P(r.clientX), se?.({ ...l, sizeIndex: t });
1302
+ T({ ...l, sizeIndex: t }), M(r.clientY), P(r.clientX), se?.({ ...l, sizeIndex: t });
1301
1303
  },
1302
1304
  onMouseMove: (r) => {
1303
- T({ ...l, sizeIndex: t }), j(r.clientY), P(r.clientX);
1305
+ T({ ...l, sizeIndex: t }), M(r.clientY), P(r.clientX);
1304
1306
  },
1305
1307
  onMouseLeave: () => {
1306
- T(void 0), P(void 0), j(void 0), se?.(void 0);
1308
+ T(void 0), P(void 0), M(void 0), se?.(void 0);
1307
1309
  },
1308
1310
  onClick: () => {
1309
- (y || R) && (We(V, { ...l, sizeIndex: t }) && re ? (oe(void 0), y?.(void 0)) : (oe({ ...l, sizeIndex: t }), y && y({ ...l, sizeIndex: t })));
1311
+ (f || R) && (We(V, { ...l, sizeIndex: t }) && re ? (oe(void 0), f?.(void 0)) : (oe({ ...l, sizeIndex: t }), f && f({ ...l, sizeIndex: t })));
1310
1312
  },
1311
1313
  children: [
1312
1314
  s ? /* @__PURE__ */ e.jsx(
@@ -1318,7 +1320,7 @@ function ft(pe) {
1318
1320
  exit: {
1319
1321
  width: 0,
1320
1322
  x: d(0),
1321
- transition: { duration: w.duration }
1323
+ transition: { duration: C.duration }
1322
1324
  },
1323
1325
  variants: {
1324
1326
  initial: {
@@ -1329,10 +1331,10 @@ function ft(pe) {
1329
1331
  whileInView: {
1330
1332
  width: d(s || 0),
1331
1333
  x: d(
1332
- t === 0 ? 0 : ke(l.size.filter((r, f) => f < t && r))
1334
+ t === 0 ? 0 : ke(l.size.filter((r, y) => y < t && r))
1333
1335
  ),
1334
1336
  fill: g[t],
1335
- transition: { duration: w.duration }
1337
+ transition: { duration: C.duration }
1336
1338
  }
1337
1339
  },
1338
1340
  initial: "initial",
@@ -1352,7 +1354,7 @@ function ft(pe) {
1352
1354
  className: $e("graph-value text-sm", x?.graphObjectValues),
1353
1355
  exit: {
1354
1356
  opacity: 0,
1355
- transition: { duration: w.duration }
1357
+ transition: { duration: C.duration }
1356
1358
  },
1357
1359
  variants: {
1358
1360
  initial: {
@@ -1362,16 +1364,16 @@ function ft(pe) {
1362
1364
  },
1363
1365
  whileInView: {
1364
1366
  x: d(
1365
- t === 0 ? 0 : ke(l.size.filter((r, f) => f < t && r))
1367
+ t === 0 ? 0 : ke(l.size.filter((r, y) => y < t && r))
1366
1368
  ) + d(s || 0) / 2,
1367
- opacity: s && d(s) / ze(s, I, O, E, M).length > 12 ? 1 : 0,
1369
+ opacity: s && d(s) / ze(s, I, N, E, j).length > 12 ? 1 : 0,
1368
1370
  fill: lt(g[t]),
1369
- transition: { duration: w.duration }
1371
+ transition: { duration: C.duration }
1370
1372
  }
1371
1373
  },
1372
1374
  initial: "initial",
1373
1375
  animate: b ? "whileInView" : "initial",
1374
- children: ze(s, I, O, E, M)
1376
+ children: ze(s, I, N, E, j)
1375
1377
  }
1376
1378
  ) : null
1377
1379
  ]
@@ -1383,12 +1385,12 @@ function ft(pe) {
1383
1385
  {
1384
1386
  value: `${l.label}`.length < ue ? `${l.label}` : `${`${l.label}`.substring(0, ue)}...`,
1385
1387
  y: 0,
1386
- x: 0 - v.left,
1387
- width: 0 + v.left,
1388
+ x: 0 - w.left,
1389
+ width: 0 + w.left,
1388
1390
  height: h.bandwidth(),
1389
1391
  style: p?.yAxis?.labels,
1390
1392
  className: x?.yAxis?.labels,
1391
- animate: w,
1393
+ animate: C,
1392
1394
  isInView: b
1393
1395
  }
1394
1396
  ) : null,
@@ -1416,21 +1418,21 @@ function ft(pe) {
1416
1418
  whileInView: {
1417
1419
  x: d(ke(l.size.map((s) => s || 0))),
1418
1420
  opacity: 1,
1419
- transition: { duration: w.duration }
1421
+ transition: { duration: C.duration }
1420
1422
  }
1421
1423
  },
1422
1424
  exit: {
1423
1425
  opacity: 0,
1424
- transition: { duration: w.duration }
1426
+ transition: { duration: C.duration }
1425
1427
  },
1426
1428
  initial: "initial",
1427
1429
  animate: b ? "whileInView" : "initial",
1428
1430
  children: ze(
1429
1431
  ke(l.size.filter((s) => s)),
1430
1432
  I,
1431
- O,
1433
+ N,
1432
1434
  E,
1433
- M
1435
+ j
1434
1436
  )
1435
1437
  }
1436
1438
  ) : null
@@ -1445,7 +1447,7 @@ function ft(pe) {
1445
1447
  x1: d(0),
1446
1448
  x2: d(0),
1447
1449
  y1: -2.5,
1448
- y2: u + v.bottom,
1450
+ y2: u + w.bottom,
1449
1451
  classNames: { axis: x?.yAxis?.axis },
1450
1452
  styles: { axis: p?.yAxis?.axis }
1451
1453
  }
@@ -1456,26 +1458,26 @@ function ft(pe) {
1456
1458
  text: l.text,
1457
1459
  color: l.color,
1458
1460
  x: d(l.value),
1459
- y1: 0 - v.top,
1460
- y2: u + v.bottom,
1461
+ y1: 0 - w.top,
1462
+ y2: u + w.bottom,
1461
1463
  textSide: d(l.value) > H * 0.75 || ae ? "left" : "right",
1462
1464
  classNames: l.classNames,
1463
1465
  styles: l.styles,
1464
- animate: w,
1466
+ animate: C,
1465
1467
  isInView: b
1466
1468
  },
1467
1469
  s
1468
1470
  )) }) : null
1469
1471
  ] }),
1470
- N.filter((l) => l.position === "after").map((l) => l.layer)
1472
+ D.filter((l) => l.position === "after").map((l) => l.layer)
1471
1473
  ] })
1472
1474
  }
1473
1475
  ),
1474
- q && D && G && Q ? /* @__PURE__ */ e.jsx(
1476
+ q && O && G && Q ? /* @__PURE__ */ e.jsx(
1475
1477
  Xe,
1476
1478
  {
1477
1479
  data: q,
1478
- body: D,
1480
+ body: O,
1479
1481
  xPos: G,
1480
1482
  yPos: Q,
1481
1483
  backgroundStyle: p?.tooltip,
@@ -1505,24 +1507,24 @@ function yt(pe) {
1505
1507
  const {
1506
1508
  data: n,
1507
1509
  graphTitle: g,
1508
- colors: X = je.light.categoricalColors.colors,
1510
+ colors: Y = je.light.categoricalColors.colors,
1509
1511
  sources: A,
1510
- graphDescription: Y,
1512
+ graphDescription: _,
1511
1513
  barPadding: me = 0.25,
1512
1514
  showTicks: ue = !0,
1513
1515
  leftMargin: ge = 100,
1514
1516
  rightMargin: Z = 40,
1515
- truncateBy: _ = 999,
1517
+ truncateBy: X = 999,
1516
1518
  height: ie,
1517
- width: D,
1519
+ width: O,
1518
1520
  footNote: se,
1519
1521
  colorDomain: he,
1520
- colorLegendTitle: M,
1522
+ colorLegendTitle: j,
1521
1523
  padding: E,
1522
1524
  backgroundColor: J = !1,
1523
1525
  topMargin: ee = 25,
1524
- bottomMargin: C = 10,
1525
- tooltip: y,
1526
+ bottomMargin: v = 10,
1527
+ tooltip: f,
1526
1528
  onSeriesMouseOver: F,
1527
1529
  suffix: ae = "",
1528
1530
  prefix: le = "",
@@ -1535,14 +1537,14 @@ function yt(pe) {
1535
1537
  onSeriesMouseClick: $,
1536
1538
  graphDownload: p = !1,
1537
1539
  dataDownload: x = !1,
1538
- language: w = "en",
1540
+ language: C = "en",
1539
1541
  labelOrder: z,
1540
- minHeight: O = 0,
1541
- theme: N = "light",
1542
+ minHeight: N = 0,
1543
+ theme: D = "light",
1542
1544
  maxBarThickness: I,
1543
1545
  sortParameter: S,
1544
1546
  maxNumberOfBars: b,
1545
- minBarThickness: v,
1547
+ minBarThickness: w,
1546
1548
  showColorScale: q = !0,
1547
1549
  ariaLabel: T,
1548
1550
  resetSelectionOnDoubleClick: V = !0,
@@ -1550,7 +1552,7 @@ function yt(pe) {
1550
1552
  barAxisTitle: G,
1551
1553
  noOfTicks: P = 5,
1552
1554
  valueColor: Q,
1553
- styles: j,
1555
+ styles: M,
1554
1556
  classNames: H,
1555
1557
  filterNA: u = !0,
1556
1558
  animate: k = !1,
@@ -1559,7 +1561,7 @@ function yt(pe) {
1559
1561
  timeline: h = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
1560
1562
  naLabel: c = "NA",
1561
1563
  sortData: l
1562
- } = pe, [s, t] = L(0), [r, f] = L(0), [Ce, ce] = L(h.autoplay), U = Fe(
1564
+ } = pe, [s, t] = L(0), [r, y] = L(0), [Ce, ce] = L(h.autoplay), U = Fe(
1563
1565
  Ae(
1564
1566
  n.filter((i) => i.date !== void 0 && i.date !== null),
1565
1567
  (i) => i.date
@@ -1568,10 +1570,10 @@ function yt(pe) {
1568
1570
  ), [fe, Oe] = L(h.autoplay ? 0 : U.length - 1), [de, be] = L(void 0), we = Me(null), Ne = Me(null);
1569
1571
  Ve(() => {
1570
1572
  const i = new ResizeObserver((B) => {
1571
- t(D || B[0].target.clientWidth || 620), f(ie || B[0].target.clientHeight || 480);
1573
+ t(O || B[0].target.clientWidth || 620), y(ie || B[0].target.clientHeight || 480);
1572
1574
  });
1573
- return we.current && (f(we.current.clientHeight || 480), t(we.current.clientWidth || 620), D || i.observe(we.current)), () => i.disconnect();
1574
- }, [D, ie]), Ve(() => {
1575
+ return we.current && (y(we.current.clientHeight || 480), t(we.current.clientWidth || 620), O || i.observe(we.current)), () => i.disconnect();
1576
+ }, [O, ie]), Ve(() => {
1575
1577
  const i = setInterval(
1576
1578
  () => {
1577
1579
  Oe((B) => B < U.length - 1 ? B + 1 : 0);
@@ -1589,42 +1591,43 @@ function yt(pe) {
1589
1591
  return /* @__PURE__ */ e.jsx(
1590
1592
  "div",
1591
1593
  {
1592
- className: `${N || "light"} flex ${D ? "w-fit grow-0" : "w-full grow"}`,
1593
- dir: w === "he" || w === "ar" ? "rtl" : void 0,
1594
+ className: `${D || "light"} flex ${O ? "w-fit grow-0" : "w-full grow"}`,
1595
+ dir: C === "he" || C === "ar" ? "rtl" : void 0,
1594
1596
  children: /* @__PURE__ */ e.jsx(
1595
1597
  "div",
1596
1598
  {
1597
1599
  className: $e(
1598
- `${J ? J === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${w || "en"}`,
1600
+ `${J ? J === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${C || "en"}`,
1601
+ O ? "w-fit" : "w-full",
1599
1602
  H?.graphContainer
1600
1603
  ),
1601
1604
  style: {
1602
- ...j?.graphContainer || {},
1605
+ ...M?.graphContainer || {},
1603
1606
  ...J && J !== !0 ? { backgroundColor: J } : {}
1604
1607
  },
1605
1608
  id: xe,
1606
1609
  ref: Ne,
1607
- "aria-label": T || `${g ? `The graph shows ${g}. ` : ""}This is a stacked bar chart. ${Y ? ` ${Y}` : ""}`,
1610
+ "aria-label": T || `${g ? `The graph shows ${g}. ` : ""}This is a stacked bar chart. ${_ ? ` ${_}` : ""}`,
1608
1611
  children: /* @__PURE__ */ e.jsx(
1609
1612
  "div",
1610
1613
  {
1611
1614
  className: "flex grow",
1612
1615
  style: { padding: J ? E || "1rem" : E || 0 },
1613
1616
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 w-full grow justify-between", children: [
1614
- g || Y || p || x ? /* @__PURE__ */ e.jsx(
1617
+ g || _ || p || x ? /* @__PURE__ */ e.jsx(
1615
1618
  Ke,
1616
1619
  {
1617
1620
  styles: {
1618
- title: j?.title,
1619
- description: j?.description
1621
+ title: M?.title,
1622
+ description: M?.description
1620
1623
  },
1621
1624
  classNames: {
1622
1625
  title: H?.title,
1623
1626
  description: H?.description
1624
1627
  },
1625
1628
  graphTitle: g,
1626
- graphDescription: Y,
1627
- width: D,
1629
+ graphDescription: _,
1630
+ width: O,
1628
1631
  graphDownload: p ? Ne.current : void 0,
1629
1632
  dataDownload: x ? n.map((i) => i.data).filter((i) => i !== void 0).length > 0 ? n.map((i) => i.data).filter((i) => i !== void 0) : n.filter((i) => i !== void 0) : null
1630
1633
  }
@@ -1665,15 +1668,15 @@ function yt(pe) {
1665
1668
  q ? /* @__PURE__ */ e.jsx(
1666
1669
  Qe,
1667
1670
  {
1668
- width: D,
1671
+ width: O,
1669
1672
  colorDomain: he,
1670
- colors: X,
1671
- colorLegendTitle: M,
1673
+ colors: Y,
1674
+ colorLegendTitle: j,
1672
1675
  setSelectedColor: be,
1673
1676
  showNAColor: !1
1674
1677
  }
1675
1678
  ) : null,
1676
- /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: we, "aria-label": "Graph area", children: (D || s) && (ie || r) ? /* @__PURE__ */ e.jsx(
1679
+ /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: we, "aria-label": "Graph area", children: (O || s) && (ie || r) ? /* @__PURE__ */ e.jsx(
1677
1680
  ft,
1678
1681
  {
1679
1682
  data: S !== void 0 ? S === "total" ? Le(
@@ -1713,21 +1716,21 @@ function yt(pe) {
1713
1716
  h.dateFormat || "yyyy"
1714
1717
  ) : i
1715
1718
  ).filter((i) => u ? !i.size.every((B) => B == null) : i).filter((i, B) => b ? B < b : !0),
1716
- barColors: X,
1717
- width: D || s,
1719
+ barColors: Y,
1720
+ width: O || s,
1718
1721
  height: Math.max(
1719
- O,
1720
- ie || (te ? O ? (D || s) * te > O ? (D || s) * te : O : (D || s) * te : r)
1722
+ N,
1723
+ ie || (te ? N ? (O || s) * te > N ? (O || s) * te : N : (O || s) * te : r)
1721
1724
  ),
1722
1725
  barPadding: me,
1723
1726
  showTicks: ue,
1724
1727
  leftMargin: ge,
1725
1728
  rightMargin: Z,
1726
1729
  topMargin: ee,
1727
- bottomMargin: C,
1728
- truncateBy: _,
1730
+ bottomMargin: v,
1731
+ truncateBy: X,
1729
1732
  showLabels: K,
1730
- tooltip: y,
1733
+ tooltip: f,
1731
1734
  onSeriesMouseOver: F,
1732
1735
  showValues: re,
1733
1736
  suffix: ae,
@@ -1740,17 +1743,17 @@ function yt(pe) {
1740
1743
  ) : ne,
1741
1744
  onSeriesMouseClick: $,
1742
1745
  selectedColor: de,
1743
- rtl: w === "he" || w === "ar",
1746
+ rtl: C === "he" || C === "ar",
1744
1747
  labelOrder: z,
1745
1748
  maxBarThickness: I,
1746
- minBarThickness: v,
1749
+ minBarThickness: w,
1747
1750
  resetSelectionOnDoubleClick: V,
1748
1751
  detailsOnClick: oe,
1749
1752
  barAxisTitle: G,
1750
1753
  noOfTicks: P,
1751
1754
  valueColor: Q,
1752
1755
  classNames: H,
1753
- styles: j,
1756
+ styles: M,
1754
1757
  animate: k === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : k || { duration: 0, once: !0, amount: 0 },
1755
1758
  colorDomain: he,
1756
1759
  precision: m,
@@ -1762,14 +1765,14 @@ function yt(pe) {
1762
1765
  A || se ? /* @__PURE__ */ e.jsx(
1763
1766
  Je,
1764
1767
  {
1765
- styles: { footnote: j?.footnote, source: j?.source },
1768
+ styles: { footnote: M?.footnote, source: M?.source },
1766
1769
  classNames: {
1767
1770
  footnote: H?.footnote,
1768
1771
  source: H?.source
1769
1772
  },
1770
1773
  sources: A,
1771
1774
  footNote: se,
1772
- width: D
1775
+ width: O
1773
1776
  }
1774
1777
  ) : null
1775
1778
  ] })
@@ -1784,24 +1787,24 @@ function pt(pe) {
1784
1787
  const {
1785
1788
  data: n,
1786
1789
  width: g,
1787
- height: X,
1790
+ height: Y,
1788
1791
  barColor: A,
1789
- suffix: Y,
1792
+ suffix: _,
1790
1793
  prefix: me,
1791
1794
  barPadding: ue,
1792
1795
  showLabels: ge,
1793
1796
  showValues: Z,
1794
- showTicks: _,
1797
+ showTicks: X,
1795
1798
  colorDomain: ie,
1796
- truncateBy: D,
1799
+ truncateBy: O,
1797
1800
  rightMargin: se,
1798
1801
  topMargin: he,
1799
- bottomMargin: M,
1802
+ bottomMargin: j,
1800
1803
  leftMargin: E,
1801
1804
  tooltip: J,
1802
1805
  onSeriesMouseOver: ee,
1803
- refValues: C,
1804
- selectedColor: y,
1806
+ refValues: v,
1807
+ selectedColor: f,
1805
1808
  maxValue: F,
1806
1809
  minValue: ae,
1807
1810
  highlightedDataPoints: le,
@@ -1814,22 +1817,22 @@ function pt(pe) {
1814
1817
  barAxisTitle: $,
1815
1818
  valueColor: p,
1816
1819
  noOfTicks: x,
1817
- styles: w,
1820
+ styles: C,
1818
1821
  classNames: z,
1819
- dimmedOpacity: O,
1820
- animate: N,
1822
+ dimmedOpacity: N,
1823
+ animate: D,
1821
1824
  precision: I,
1822
1825
  customLayers: S,
1823
1826
  naLabel: b
1824
- } = pe, v = Me(null), q = Re(v, {
1825
- once: N.once,
1826
- amount: N.amount
1827
+ } = pe, w = Me(null), q = Re(w, {
1828
+ once: D.once,
1829
+ amount: D.amount
1827
1830
  }), T = {
1828
1831
  top: he,
1829
- bottom: M,
1832
+ bottom: j,
1830
1833
  left: $ ? E + 30 : E,
1831
1834
  right: se
1832
- }, [V, oe] = L(void 0), [G, P] = L(void 0), [Q, j] = L(void 0), [H, u] = L(void 0), k = g - T.left - T.right, m = X - T.top - T.bottom, d = qe().domain([ae, F]).range([m, 0]).nice(), h = n.map((t, r) => ({
1835
+ }, [V, oe] = L(void 0), [G, P] = L(void 0), [Q, M] = L(void 0), [H, u] = L(void 0), k = g - T.left - T.right, m = Y - T.top - T.bottom, d = qe().domain([ae, F]).range([m, 0]).nice(), h = n.map((t, r) => ({
1833
1836
  ...t,
1834
1837
  id: te ? `${t.label}` : `${r}`
1835
1838
  })), c = te || h.map((t) => `${t.id}`), l = Ie().domain(c).range([
@@ -1840,10 +1843,10 @@ function pt(pe) {
1840
1843
  /* @__PURE__ */ e.jsx(
1841
1844
  ye.svg,
1842
1845
  {
1843
- ref: v,
1846
+ ref: w,
1844
1847
  width: `${g}px`,
1845
- height: `${X}px`,
1846
- viewBox: `0 0 ${g} ${X}`,
1848
+ height: `${Y}px`,
1849
+ viewBox: `0 0 ${g} ${Y}`,
1847
1850
  direction: "ltr",
1848
1851
  children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${T.left},${T.top})`, children: [
1849
1852
  /* @__PURE__ */ e.jsx(
@@ -1858,7 +1861,7 @@ function pt(pe) {
1858
1861
  b,
1859
1862
  I,
1860
1863
  me,
1861
- Y
1864
+ _
1862
1865
  ),
1863
1866
  labelPos: {
1864
1867
  x: 0 - E,
@@ -1870,10 +1873,10 @@ function pt(pe) {
1870
1873
  axis: z?.xAxis?.axis,
1871
1874
  label: z?.yAxis?.labels
1872
1875
  },
1873
- styles: { axis: w?.xAxis?.axis, label: w?.yAxis?.labels }
1876
+ styles: { axis: C?.xAxis?.axis, label: C?.yAxis?.labels }
1874
1877
  }
1875
1878
  ),
1876
- _ ? /* @__PURE__ */ e.jsx(
1879
+ X ? /* @__PURE__ */ e.jsx(
1877
1880
  ht,
1878
1881
  {
1879
1882
  values: s.filter((t) => t !== 0),
@@ -1881,14 +1884,14 @@ function pt(pe) {
1881
1884
  x1: 0 - E,
1882
1885
  x2: k + T.right,
1883
1886
  styles: {
1884
- gridLines: w?.yAxis?.gridLines,
1885
- labels: w?.yAxis?.labels
1887
+ gridLines: C?.yAxis?.gridLines,
1888
+ labels: C?.yAxis?.labels
1886
1889
  },
1887
1890
  classNames: {
1888
1891
  gridLines: z?.yAxis?.gridLines,
1889
1892
  labels: z?.yAxis?.labels
1890
1893
  },
1891
- suffix: Y,
1894
+ suffix: _,
1892
1895
  prefix: me,
1893
1896
  labelType: "secondary",
1894
1897
  showGridLines: !0,
@@ -1901,7 +1904,7 @@ function pt(pe) {
1901
1904
  {
1902
1905
  x: 0 - E - 15,
1903
1906
  y: m / 2,
1904
- style: w?.yAxis?.title,
1907
+ style: C?.yAxis?.title,
1905
1908
  className: z?.yAxis?.title,
1906
1909
  text: $,
1907
1910
  rotate90: !0
@@ -1918,25 +1921,25 @@ function pt(pe) {
1918
1921
  animate: q ? "whileInView" : "initial",
1919
1922
  variants: {
1920
1923
  initial: {
1921
- opacity: y ? t.color && A[ie.indexOf(t.color)] === y ? 1 : O : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : O : 0.85
1924
+ opacity: f ? t.color && A[ie.indexOf(t.color)] === f ? 1 : N : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : N : 0.85
1922
1925
  },
1923
1926
  whileInView: {
1924
- opacity: y ? t.color && A[ie.indexOf(t.color)] === y ? 1 : O : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : O : 0.85,
1925
- transition: { duration: N.duration }
1927
+ opacity: f ? t.color && A[ie.indexOf(t.color)] === f ? 1 : N : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : N : 0.85,
1928
+ transition: { duration: D.duration }
1926
1929
  }
1927
1930
  },
1928
- exit: { opacity: 0, transition: { duration: N.duration } },
1929
- onMouseEnter: (f) => {
1930
- oe(t), u(f.clientY), j(f.clientX), ee?.(t);
1931
+ exit: { opacity: 0, transition: { duration: D.duration } },
1932
+ onMouseEnter: (y) => {
1933
+ oe(t), u(y.clientY), M(y.clientX), ee?.(t);
1931
1934
  },
1932
1935
  onClick: () => {
1933
1936
  (K || ne) && (We(G, t) && xe ? (P(void 0), K?.(void 0)) : (P(t), K?.(t)));
1934
1937
  },
1935
- onMouseMove: (f) => {
1936
- oe(t), u(f.clientY), j(f.clientX);
1938
+ onMouseMove: (y) => {
1939
+ oe(t), u(y.clientY), M(y.clientX);
1937
1940
  },
1938
1941
  onMouseLeave: () => {
1939
- oe(void 0), j(void 0), u(void 0), ee?.(void 0);
1942
+ oe(void 0), M(void 0), u(void 0), ee?.(void 0);
1940
1943
  },
1941
1944
  children: [
1942
1945
  t.size ? /* @__PURE__ */ e.jsx(
@@ -1950,35 +1953,35 @@ function pt(pe) {
1950
1953
  height: 0,
1951
1954
  x: l(`${t.id}`),
1952
1955
  y: d(0),
1953
- fill: n.filter((f) => f.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray
1956
+ fill: n.filter((y) => y.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray
1954
1957
  },
1955
1958
  whileInView: {
1956
1959
  height: t.size ? Math.abs(d(t.size) - d(0)) : 0,
1957
1960
  y: t.size && t.size > 0 ? d(t.size) : d(0),
1958
1961
  x: l(`${t.id}`),
1959
- fill: n.filter((f) => f.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray,
1960
- transition: { duration: N.duration }
1962
+ fill: n.filter((y) => y.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray,
1963
+ transition: { duration: D.duration }
1961
1964
  }
1962
1965
  },
1963
1966
  exit: {
1964
1967
  height: 0,
1965
1968
  y: d(0),
1966
- transition: { duration: N.duration }
1969
+ transition: { duration: D.duration }
1967
1970
  }
1968
1971
  }
1969
1972
  ) : null,
1970
1973
  ge ? /* @__PURE__ */ e.jsx(
1971
1974
  dt,
1972
1975
  {
1973
- value: `${t.label}`.length < D ? `${t.label}` : `${`${t.label}`.substring(0, D)}...`,
1976
+ value: `${t.label}`.length < O ? `${t.label}` : `${`${t.label}`.substring(0, O)}...`,
1974
1977
  y: (t.size || 0) < 0 ? 0 : d(0) + 5,
1975
1978
  x: l(`${t.id}`),
1976
1979
  width: l.bandwidth(),
1977
1980
  height: (t.size || 0) < 0 ? d(0) - 5 : T.bottom,
1978
- style: w?.xAxis?.labels,
1981
+ style: C?.xAxis?.labels,
1979
1982
  className: z?.xAxis?.labels,
1980
1983
  alignment: (t.size || 0) < 0 ? "bottom" : "top",
1981
- animate: N,
1984
+ animate: D,
1982
1985
  isInView: q
1983
1986
  }
1984
1987
  ) : null,
@@ -1987,7 +1990,7 @@ function pt(pe) {
1987
1990
  {
1988
1991
  style: {
1989
1992
  textAnchor: "middle",
1990
- ...w?.graphObjectValues || {}
1993
+ ...C?.graphObjectValues || {}
1991
1994
  },
1992
1995
  className: $e(
1993
1996
  "graph-value text-sm",
@@ -2000,23 +2003,23 @@ function pt(pe) {
2000
2003
  x: l(`${t.id}`) + l.bandwidth() / 2,
2001
2004
  y: d(0),
2002
2005
  opacity: 0,
2003
- fill: p || (n.filter((f) => f.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray)
2006
+ fill: p || (n.filter((y) => y.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray)
2004
2007
  },
2005
2008
  whileInView: {
2006
2009
  x: l(`${t.id}`) + l.bandwidth() / 2,
2007
2010
  y: d(t.size || 0),
2008
- fill: p || (n.filter((f) => f.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray),
2011
+ fill: p || (n.filter((y) => y.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray),
2009
2012
  opacity: 1,
2010
- transition: { duration: N.duration }
2013
+ transition: { duration: D.duration }
2011
2014
  }
2012
2015
  },
2013
2016
  initial: "initial",
2014
2017
  animate: q ? "whileInView" : "initial",
2015
2018
  exit: {
2016
2019
  opacity: 0,
2017
- transition: { duration: N.duration }
2020
+ transition: { duration: D.duration }
2018
2021
  },
2019
- children: ze(t.size, b, I, me, Y)
2022
+ children: ze(t.size, b, I, me, _)
2020
2023
  }
2021
2024
  ) : null
2022
2025
  ]
@@ -2024,7 +2027,7 @@ function pt(pe) {
2024
2027
  t.label
2025
2028
  )
2026
2029
  ),
2027
- C ? /* @__PURE__ */ e.jsx(e.Fragment, { children: C.map((t, r) => /* @__PURE__ */ e.jsx(
2030
+ v ? /* @__PURE__ */ e.jsx(e.Fragment, { children: v.map((t, r) => /* @__PURE__ */ e.jsx(
2028
2031
  ct,
2029
2032
  {
2030
2033
  text: t.text,
@@ -2034,7 +2037,7 @@ function pt(pe) {
2034
2037
  x2: k + T.right,
2035
2038
  classNames: t.classNames,
2036
2039
  styles: t.styles,
2037
- animate: N,
2040
+ animate: D,
2038
2041
  isInView: q
2039
2042
  },
2040
2043
  r
@@ -2051,7 +2054,7 @@ function pt(pe) {
2051
2054
  body: J,
2052
2055
  xPos: Q,
2053
2056
  yPos: H,
2054
- backgroundStyle: w?.tooltip,
2057
+ backgroundStyle: C?.tooltip,
2055
2058
  className: z?.tooltip
2056
2059
  }
2057
2060
  ) : null,
@@ -2078,24 +2081,24 @@ function bt(pe) {
2078
2081
  const {
2079
2082
  data: n,
2080
2083
  graphTitle: g,
2081
- colors: X,
2084
+ colors: Y,
2082
2085
  barPadding: A = 0.25,
2083
- showTicks: Y = !0,
2086
+ showTicks: _ = !0,
2084
2087
  leftMargin: me = 20,
2085
2088
  rightMargin: ue = 20,
2086
2089
  topMargin: ge = 20,
2087
2090
  bottomMargin: Z = 25,
2088
- truncateBy: _ = 999,
2091
+ truncateBy: X = 999,
2089
2092
  showLabels: ie = !0,
2090
- showValues: D = !0,
2093
+ showValues: O = !0,
2091
2094
  backgroundColor: se = !1,
2092
2095
  suffix: he = "",
2093
- prefix: M = "",
2096
+ prefix: j = "",
2094
2097
  sources: E,
2095
2098
  graphDescription: J,
2096
2099
  height: ee,
2097
- width: C,
2098
- footNote: y,
2100
+ width: v,
2101
+ footNote: f,
2099
2102
  colorDomain: F,
2100
2103
  colorLegendTitle: ae,
2101
2104
  padding: le,
@@ -2108,14 +2111,14 @@ function bt(pe) {
2108
2111
  maxValue: $,
2109
2112
  minValue: p,
2110
2113
  highlightedDataPoints: x = [],
2111
- onSeriesMouseClick: w,
2114
+ onSeriesMouseClick: C,
2112
2115
  graphDownload: z = !1,
2113
- dataDownload: O = !1,
2114
- language: N = "en",
2116
+ dataDownload: N = !1,
2117
+ language: D = "en",
2115
2118
  theme: I = "light",
2116
2119
  sortData: S,
2117
2120
  labelOrder: b,
2118
- showNAColor: v = !0,
2121
+ showNAColor: w = !0,
2119
2122
  minHeight: q = 0,
2120
2123
  maxBarThickness: T,
2121
2124
  maxNumberOfBars: V,
@@ -2123,7 +2126,7 @@ function bt(pe) {
2123
2126
  ariaLabel: G,
2124
2127
  resetSelectionOnDoubleClick: P = !0,
2125
2128
  detailsOnClick: Q,
2126
- barAxisTitle: j,
2129
+ barAxisTitle: M,
2127
2130
  noOfTicks: H = 5,
2128
2131
  valueColor: u,
2129
2132
  styles: k,
@@ -2135,7 +2138,7 @@ function bt(pe) {
2135
2138
  customLayers: s = [],
2136
2139
  timeline: t = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
2137
2140
  naLabel: r = "NA"
2138
- } = pe, [f, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), de = Fe(
2141
+ } = pe, [y, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), de = Fe(
2139
2142
  Ae(
2140
2143
  n.filter((a) => a.date !== void 0 && a.date !== null),
2141
2144
  (a) => a.date
@@ -2144,10 +2147,10 @@ function bt(pe) {
2144
2147
  ), [be, we] = L(t.autoplay ? 0 : de.length - 1), [Ne, o] = L(void 0), i = Me(null), B = Me(null);
2145
2148
  Ve(() => {
2146
2149
  const a = new ResizeObserver((ve) => {
2147
- Ce(C || ve[0].target.clientWidth || 620), U(ee || ve[0].target.clientHeight || 480);
2150
+ Ce(v || ve[0].target.clientWidth || 620), U(ee || ve[0].target.clientHeight || 480);
2148
2151
  });
2149
- return i.current && (U(i.current.clientHeight || 480), Ce(i.current.clientWidth || 620), C || a.observe(i.current)), () => a.disconnect();
2150
- }, [C, ee]), Ve(() => {
2152
+ return i.current && (U(i.current.clientHeight || 480), Ce(i.current.clientWidth || 620), v || a.observe(i.current)), () => a.disconnect();
2153
+ }, [v, ee]), Ve(() => {
2151
2154
  const a = setInterval(
2152
2155
  () => {
2153
2156
  we((ve) => ve < de.length - 1 ? ve + 1 : 0);
@@ -2165,13 +2168,14 @@ function bt(pe) {
2165
2168
  return /* @__PURE__ */ e.jsx(
2166
2169
  "div",
2167
2170
  {
2168
- className: `${I || "light"} flex ${C ? "w-fit grow-0" : "w-full grow"}`,
2169
- dir: N === "he" || N === "ar" ? "rtl" : void 0,
2171
+ className: `${I || "light"} flex ${v ? "w-fit grow-0" : "w-full grow"}`,
2172
+ dir: D === "he" || D === "ar" ? "rtl" : void 0,
2170
2173
  children: /* @__PURE__ */ e.jsx(
2171
2174
  "div",
2172
2175
  {
2173
2176
  className: $e(
2174
- `${se ? se === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${N || "en"}`,
2177
+ `${se ? se === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${D || "en"}`,
2178
+ v ? "w-fit" : "w-full",
2175
2179
  m?.graphContainer
2176
2180
  ),
2177
2181
  style: {
@@ -2187,7 +2191,7 @@ function bt(pe) {
2187
2191
  className: "flex grow",
2188
2192
  style: { padding: se ? le || "1rem" : le || 0 },
2189
2193
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
2190
- g || J || z || O ? /* @__PURE__ */ e.jsx(
2194
+ g || J || z || N ? /* @__PURE__ */ e.jsx(
2191
2195
  Ke,
2192
2196
  {
2193
2197
  styles: {
@@ -2200,9 +2204,9 @@ function bt(pe) {
2200
2204
  },
2201
2205
  graphTitle: g,
2202
2206
  graphDescription: J,
2203
- width: C,
2207
+ width: v,
2204
2208
  graphDownload: z ? B.current : void 0,
2205
- dataDownload: O ? n.map((a) => a.data).filter((a) => a !== void 0).length > 0 ? n.map((a) => a.data).filter((a) => a !== void 0) : n.filter((a) => a !== void 0) : null
2209
+ dataDownload: N ? n.map((a) => a.data).filter((a) => a !== void 0).length > 0 ? n.map((a) => a.data).filter((a) => a !== void 0) : n.filter((a) => a !== void 0) : null
2206
2210
  }
2207
2211
  ) : null,
2208
2212
  t.enabled && de.length > 0 && at ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
@@ -2241,15 +2245,15 @@ function bt(pe) {
2241
2245
  xe && n.filter((a) => a.color).length !== 0 ? /* @__PURE__ */ e.jsx(
2242
2246
  Qe,
2243
2247
  {
2244
- width: C,
2248
+ width: v,
2245
2249
  colorLegendTitle: ae,
2246
- colors: X || je[I].categoricalColors.colors,
2250
+ colors: Y || je[I].categoricalColors.colors,
2247
2251
  colorDomain: F || Ae(
2248
2252
  n.filter((a) => a.color),
2249
2253
  "color"
2250
2254
  ).map((a) => a.color),
2251
2255
  setSelectedColor: o,
2252
- showNAColor: v
2256
+ showNAColor: w
2253
2257
  }
2254
2258
  ) : null,
2255
2259
  /* @__PURE__ */ e.jsx(
@@ -2258,7 +2262,7 @@ function bt(pe) {
2258
2262
  className: "flex grow flex-col justify-center w-full leading-0",
2259
2263
  ref: i,
2260
2264
  "aria-label": "Graph area",
2261
- children: (C || f) && (ee || ce) ? /* @__PURE__ */ e.jsx(
2265
+ children: (v || y) && (ee || ce) ? /* @__PURE__ */ e.jsx(
2262
2266
  pt,
2263
2267
  {
2264
2268
  data: S === "asc" ? rt(
@@ -2283,24 +2287,24 @@ function bt(pe) {
2283
2287
  t.dateFormat || "yyyy"
2284
2288
  ) : a
2285
2289
  ).filter((a) => d ? !W(a.size) : a).filter((a, ve) => V ? ve < V : !0),
2286
- barColor: n.filter((a) => a.color).length === 0 ? X ? [X] : [je.primaryColors["blue-600"]] : X || je[I].categoricalColors.colors,
2290
+ barColor: n.filter((a) => a.color).length === 0 ? Y ? [Y] : [je.primaryColors["blue-600"]] : Y || je[I].categoricalColors.colors,
2287
2291
  colorDomain: n.filter((a) => a.color).length === 0 ? [] : F || Ae(
2288
2292
  n.filter((a) => a.color),
2289
2293
  "color"
2290
2294
  ).map((a) => a.color),
2291
- width: C || f,
2295
+ width: v || y,
2292
2296
  refValues: R,
2293
2297
  height: Math.max(
2294
2298
  q,
2295
- ee || (K ? q ? (C || f) * K > q ? (C || f) * K : q : (C || f) * K : ce)
2299
+ ee || (K ? q ? (v || y) * K > q ? (v || y) * K : q : (v || y) * K : ce)
2296
2300
  ),
2297
2301
  suffix: he,
2298
- prefix: M,
2302
+ prefix: j,
2299
2303
  barPadding: A,
2300
2304
  showLabels: ie,
2301
- showValues: D,
2302
- showTicks: Y,
2303
- truncateBy: _,
2305
+ showValues: O,
2306
+ showTicks: _,
2307
+ truncateBy: X,
2304
2308
  leftMargin: me,
2305
2309
  rightMargin: ue,
2306
2310
  selectedColor: Ne,
@@ -2319,13 +2323,13 @@ function bt(pe) {
2319
2323
  ...n.filter((a) => !W(a.size)).map((a) => a.size)
2320
2324
  ) : p,
2321
2325
  highlightedDataPoints: x,
2322
- onSeriesMouseClick: w,
2326
+ onSeriesMouseClick: C,
2323
2327
  labelOrder: b,
2324
2328
  maxBarThickness: T,
2325
2329
  minBarThickness: oe,
2326
2330
  resetSelectionOnDoubleClick: P,
2327
2331
  detailsOnClick: Q,
2328
- barAxisTitle: j,
2332
+ barAxisTitle: M,
2329
2333
  noOfTicks: H,
2330
2334
  valueColor: u,
2331
2335
  styles: k,
@@ -2340,7 +2344,7 @@ function bt(pe) {
2340
2344
  }
2341
2345
  )
2342
2346
  ] }) }),
2343
- E || y ? /* @__PURE__ */ e.jsx(
2347
+ E || f ? /* @__PURE__ */ e.jsx(
2344
2348
  Je,
2345
2349
  {
2346
2350
  styles: { footnote: k?.footnote, source: k?.source },
@@ -2349,8 +2353,8 @@ function bt(pe) {
2349
2353
  source: m?.source
2350
2354
  },
2351
2355
  sources: E,
2352
- footNote: y,
2353
- width: C
2356
+ footNote: f,
2357
+ width: v
2354
2358
  }
2355
2359
  ) : null
2356
2360
  ] })
@@ -2365,24 +2369,24 @@ function vt(pe) {
2365
2369
  const {
2366
2370
  data: n,
2367
2371
  width: g,
2368
- height: X,
2372
+ height: Y,
2369
2373
  barColors: A,
2370
- suffix: Y,
2374
+ suffix: _,
2371
2375
  prefix: me,
2372
2376
  barPadding: ue,
2373
2377
  showLabels: ge,
2374
2378
  showValues: Z,
2375
- showTicks: _,
2379
+ showTicks: X,
2376
2380
  truncateBy: ie,
2377
- leftMargin: D,
2381
+ leftMargin: O,
2378
2382
  rightMargin: se,
2379
2383
  topMargin: he,
2380
- bottomMargin: M,
2384
+ bottomMargin: j,
2381
2385
  tooltip: E,
2382
2386
  onSeriesMouseOver: J,
2383
2387
  refValues: ee,
2384
- maxValue: C,
2385
- minValue: y,
2388
+ maxValue: v,
2389
+ minValue: f,
2386
2390
  onSeriesMouseClick: F,
2387
2391
  selectedColor: ae,
2388
2392
  labelOrder: le,
@@ -2395,54 +2399,54 @@ function vt(pe) {
2395
2399
  styles: $,
2396
2400
  classNames: p,
2397
2401
  animate: x,
2398
- colorDomain: w,
2402
+ colorDomain: C,
2399
2403
  precision: z,
2400
- customLayers: O,
2401
- naLabel: N
2404
+ customLayers: N,
2405
+ naLabel: D
2402
2406
  } = pe, I = Me(null), S = Re(I, {
2403
2407
  once: x.once,
2404
2408
  amount: x.amount
2405
2409
  }), b = {
2406
2410
  top: he,
2407
- bottom: M,
2408
- left: R ? D + 30 : D,
2411
+ bottom: j,
2412
+ left: R ? O + 30 : O,
2409
2413
  right: se
2410
- }, [v, q] = L(void 0), [T, V] = L(void 0), [oe, G] = L(void 0), [P, Q] = L(void 0), j = g - b.left - b.right, H = X - b.top - b.bottom, u = qe().domain([y, C]).range([H, 0]).nice(), k = n.map((l, s) => ({
2414
+ }, [w, q] = L(void 0), [T, V] = L(void 0), [oe, G] = L(void 0), [P, Q] = L(void 0), M = g - b.left - b.right, H = Y - b.top - b.bottom, u = qe().domain([f, v]).range([H, 0]).nice(), k = n.map((l, s) => ({
2411
2415
  ...l,
2412
2416
  id: le ? `${l.label}` : `${s}`
2413
2417
  })), m = le || k.map((l) => `${l.id}`), d = Ie().domain(m).range([
2414
2418
  0,
2415
- K ? Math.min(j, K * m.length) : j
2419
+ K ? Math.min(M, K * m.length) : M
2416
2420
  ]).paddingInner(ue), h = Ie().domain(n[0].size.map((l, s) => `${s}`)).range([0, d.bandwidth()]).paddingInner(0.1), c = u.ticks(ne);
2417
2421
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2418
2422
  /* @__PURE__ */ e.jsx(
2419
2423
  ye.svg,
2420
2424
  {
2421
2425
  width: `${g}px`,
2422
- height: `${X}px`,
2423
- viewBox: `0 0 ${g} ${X}`,
2426
+ height: `${Y}px`,
2427
+ viewBox: `0 0 ${g} ${Y}`,
2424
2428
  direction: "ltr",
2425
2429
  ref: I,
2426
2430
  children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${b.left},${b.top})`, children: [
2427
2431
  /* @__PURE__ */ e.jsx(
2428
2432
  Ee,
2429
2433
  {
2430
- y1: u(y < 0 ? 0 : y),
2431
- y2: u(y < 0 ? 0 : y),
2432
- x1: 0 - D,
2433
- x2: j + b.right,
2434
+ y1: u(f < 0 ? 0 : f),
2435
+ y2: u(f < 0 ? 0 : f),
2436
+ x1: 0 - O,
2437
+ x2: M + b.right,
2434
2438
  label: ze(
2435
- y < 0 ? 0 : y,
2436
- N,
2439
+ f < 0 ? 0 : f,
2440
+ D,
2437
2441
  z,
2438
2442
  me,
2439
- Y
2443
+ _
2440
2444
  ),
2441
2445
  labelPos: {
2442
- x: 0 - D,
2446
+ x: 0 - O,
2443
2447
  dx: 0,
2444
- dy: C < 0 ? "1em" : -5,
2445
- y: u(y < 0 ? 0 : y)
2448
+ dy: v < 0 ? "1em" : -5,
2449
+ y: u(f < 0 ? 0 : f)
2446
2450
  },
2447
2451
  classNames: {
2448
2452
  axis: p?.xAxis?.axis,
@@ -2451,13 +2455,13 @@ function vt(pe) {
2451
2455
  styles: { axis: $?.xAxis?.axis, label: $?.yAxis?.labels }
2452
2456
  }
2453
2457
  ),
2454
- _ ? /* @__PURE__ */ e.jsx(
2458
+ X ? /* @__PURE__ */ e.jsx(
2455
2459
  ht,
2456
2460
  {
2457
2461
  values: c.filter((l) => l !== 0),
2458
2462
  y: c.filter((l) => l !== 0).map((l) => u(l)),
2459
- x1: 0 - D,
2460
- x2: j + b.right,
2463
+ x1: 0 - O,
2464
+ x2: M + b.right,
2461
2465
  styles: {
2462
2466
  gridLines: $?.yAxis?.gridLines,
2463
2467
  labels: $?.yAxis?.labels
@@ -2466,7 +2470,7 @@ function vt(pe) {
2466
2470
  gridLines: p?.yAxis?.gridLines,
2467
2471
  labels: p?.yAxis?.labels
2468
2472
  },
2469
- suffix: Y,
2473
+ suffix: _,
2470
2474
  prefix: me,
2471
2475
  labelType: "secondary",
2472
2476
  showGridLines: !0,
@@ -2477,7 +2481,7 @@ function vt(pe) {
2477
2481
  /* @__PURE__ */ e.jsx(
2478
2482
  _e,
2479
2483
  {
2480
- x: 0 - D - 15,
2484
+ x: 0 - O - 15,
2481
2485
  y: H / 2,
2482
2486
  style: $?.yAxis?.title,
2483
2487
  className: p?.yAxis?.title,
@@ -2485,7 +2489,7 @@ function vt(pe) {
2485
2489
  rotate90: !0
2486
2490
  }
2487
2491
  ),
2488
- O.filter((l) => l.position === "before").map((l) => l.layer),
2492
+ N.filter((l) => l.position === "before").map((l) => l.layer),
2489
2493
  /* @__PURE__ */ e.jsxs(Ue, { children: [
2490
2494
  k.map(
2491
2495
  (l) => W(d(l.id)) ? null : /* @__PURE__ */ e.jsxs(
@@ -2576,12 +2580,12 @@ function vt(pe) {
2576
2580
  opacity: 0,
2577
2581
  transition: { duration: x.duration }
2578
2582
  },
2579
- children: ze(s, N, z, me, Y)
2583
+ children: ze(s, D, z, me, _)
2580
2584
  }
2581
2585
  ) : null
2582
2586
  ]
2583
2587
  },
2584
- `${l.label}-${w[t] || t}`
2588
+ `${l.label}-${C[t] || t}`
2585
2589
  )),
2586
2590
  ge ? /* @__PURE__ */ e.jsx(
2587
2591
  dt,
@@ -2609,8 +2613,8 @@ function vt(pe) {
2609
2613
  text: l.text,
2610
2614
  color: l.color,
2611
2615
  y: u(l.value),
2612
- x1: 0 - D,
2613
- x2: j + b.right,
2616
+ x1: 0 - O,
2617
+ x2: M + b.right,
2614
2618
  classNames: l.classNames,
2615
2619
  styles: l.styles,
2616
2620
  animate: x,
@@ -2619,14 +2623,14 @@ function vt(pe) {
2619
2623
  s
2620
2624
  )) }) : null
2621
2625
  ] }),
2622
- O.filter((l) => l.position === "after").map((l) => l.layer)
2626
+ N.filter((l) => l.position === "after").map((l) => l.layer)
2623
2627
  ] })
2624
2628
  }
2625
2629
  ),
2626
- v && E && oe && P ? /* @__PURE__ */ e.jsx(
2630
+ w && E && oe && P ? /* @__PURE__ */ e.jsx(
2627
2631
  Xe,
2628
2632
  {
2629
- data: v,
2633
+ data: w,
2630
2634
  body: E,
2631
2635
  xPos: oe,
2632
2636
  yPos: P,
@@ -2657,24 +2661,24 @@ function wt(pe) {
2657
2661
  const {
2658
2662
  data: n,
2659
2663
  graphTitle: g,
2660
- colors: X = je.light.categoricalColors.colors,
2664
+ colors: Y = je.light.categoricalColors.colors,
2661
2665
  sources: A,
2662
- graphDescription: Y,
2666
+ graphDescription: _,
2663
2667
  barPadding: me = 0.25,
2664
2668
  showTicks: ue = !0,
2665
2669
  leftMargin: ge = 20,
2666
2670
  rightMargin: Z = 20,
2667
- topMargin: _ = 20,
2671
+ topMargin: X = 20,
2668
2672
  bottomMargin: ie = 25,
2669
- truncateBy: D = 999,
2673
+ truncateBy: O = 999,
2670
2674
  showLabels: se = !0,
2671
2675
  showValues: he = !0,
2672
- backgroundColor: M = !1,
2676
+ backgroundColor: j = !1,
2673
2677
  suffix: E = "",
2674
2678
  prefix: J = "",
2675
2679
  height: ee,
2676
- width: C,
2677
- footNote: y,
2680
+ width: v,
2681
+ footNote: f,
2678
2682
  colorDomain: F,
2679
2683
  colorLegendTitle: ae,
2680
2684
  padding: le,
@@ -2687,14 +2691,14 @@ function wt(pe) {
2687
2691
  minValue: $,
2688
2692
  onSeriesMouseClick: p,
2689
2693
  graphDownload: x = !1,
2690
- dataDownload: w = !1,
2694
+ dataDownload: C = !1,
2691
2695
  language: z = "en",
2692
- theme: O = "light",
2693
- labelOrder: N,
2696
+ theme: N = "light",
2697
+ labelOrder: D,
2694
2698
  minHeight: I = 0,
2695
2699
  maxBarThickness: S,
2696
2700
  ariaLabel: b,
2697
- resetSelectionOnDoubleClick: v = !0,
2701
+ resetSelectionOnDoubleClick: w = !0,
2698
2702
  detailsOnClick: q,
2699
2703
  barAxisTitle: T,
2700
2704
  noOfTicks: V = 5,
@@ -2702,7 +2706,7 @@ function wt(pe) {
2702
2706
  styles: G,
2703
2707
  classNames: P,
2704
2708
  filterNA: Q = !0,
2705
- showColorScale: j = !0,
2709
+ showColorScale: M = !0,
2706
2710
  animate: H = !1,
2707
2711
  precision: u = 2,
2708
2712
  customLayers: k = [],
@@ -2710,7 +2714,7 @@ function wt(pe) {
2710
2714
  naLabel: d = "NA",
2711
2715
  sortParameter: h,
2712
2716
  sortData: c
2713
- } = pe, [l, s] = L(0), [t, r] = L(0), [f, Ce] = L(m.autoplay), ce = Fe(
2717
+ } = pe, [l, s] = L(0), [t, r] = L(0), [y, Ce] = L(m.autoplay), ce = Fe(
2714
2718
  Ae(
2715
2719
  n.filter((o) => o.date !== void 0 && o.date !== null),
2716
2720
  (o) => o.date
@@ -2719,18 +2723,18 @@ function wt(pe) {
2719
2723
  ), [U, fe] = L(m.autoplay ? 0 : ce.length - 1), [Oe, de] = L(void 0), be = Me(null), we = Me(null);
2720
2724
  Ve(() => {
2721
2725
  const o = new ResizeObserver((i) => {
2722
- s(C || i[0].target.clientWidth || 620), r(ee || i[0].target.clientHeight || 480);
2726
+ s(v || i[0].target.clientWidth || 620), r(ee || i[0].target.clientHeight || 480);
2723
2727
  });
2724
- return be.current && (r(be.current.clientHeight || 480), s(be.current.clientWidth || 620), C || o.observe(be.current)), () => o.disconnect();
2725
- }, [C, ee]), Ve(() => {
2728
+ return be.current && (r(be.current.clientHeight || 480), s(be.current.clientWidth || 620), v || o.observe(be.current)), () => o.disconnect();
2729
+ }, [v, ee]), Ve(() => {
2726
2730
  const o = setInterval(
2727
2731
  () => {
2728
2732
  fe((i) => i < ce.length - 1 ? i + 1 : 0);
2729
2733
  },
2730
2734
  (m.speed || 2) * 1e3
2731
2735
  );
2732
- return f || clearInterval(o), () => clearInterval(o);
2733
- }, [ce, f, m.speed]);
2736
+ return y || clearInterval(o), () => clearInterval(o);
2737
+ }, [ce, y, m.speed]);
2734
2738
  const Ne = Pe(
2735
2739
  ce,
2736
2740
  U,
@@ -2740,29 +2744,30 @@ function wt(pe) {
2740
2744
  return /* @__PURE__ */ e.jsx(
2741
2745
  "div",
2742
2746
  {
2743
- className: `${O || "light"} flex ${C ? "w-fit grow-0" : "w-full grow"}`,
2747
+ className: `${N || "light"} flex ${v ? "w-fit grow-0" : "w-full grow"}`,
2744
2748
  dir: z === "he" || z === "ar" ? "rtl" : void 0,
2745
2749
  children: /* @__PURE__ */ e.jsx(
2746
2750
  "div",
2747
2751
  {
2748
2752
  className: $e(
2749
- `${M ? M === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${z || "en"}`,
2753
+ `${j ? j === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${z || "en"}`,
2754
+ v ? "w-fit" : "w-full",
2750
2755
  P?.graphContainer
2751
2756
  ),
2752
2757
  style: {
2753
2758
  ...G?.graphContainer || {},
2754
- ...M && M !== !0 ? { backgroundColor: M } : {}
2759
+ ...j && j !== !0 ? { backgroundColor: j } : {}
2755
2760
  },
2756
2761
  id: xe,
2757
2762
  ref: we,
2758
- "aria-label": b || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${Y ? ` ${Y}` : ""}`,
2763
+ "aria-label": b || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${_ ? ` ${_}` : ""}`,
2759
2764
  children: /* @__PURE__ */ e.jsx(
2760
2765
  "div",
2761
2766
  {
2762
2767
  className: "flex grow",
2763
- style: { padding: M ? le || "1rem" : le || 0 },
2768
+ style: { padding: j ? le || "1rem" : le || 0 },
2764
2769
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
2765
- g || Y || x || w ? /* @__PURE__ */ e.jsx(
2770
+ g || _ || x || C ? /* @__PURE__ */ e.jsx(
2766
2771
  Ke,
2767
2772
  {
2768
2773
  styles: {
@@ -2774,10 +2779,10 @@ function wt(pe) {
2774
2779
  description: P?.description
2775
2780
  },
2776
2781
  graphTitle: g,
2777
- graphDescription: Y,
2778
- width: C,
2782
+ graphDescription: _,
2783
+ width: v,
2779
2784
  graphDownload: x ? we.current : void 0,
2780
- dataDownload: w ? n.map((o) => o.data).filter((o) => o !== void 0).length > 0 ? n.map((o) => o.data).filter((o) => o !== void 0) : n.filter((o) => o !== void 0) : null
2785
+ dataDownload: C ? n.map((o) => o.data).filter((o) => o !== void 0).length > 0 ? n.map((o) => o.data).filter((o) => o !== void 0) : n.filter((o) => o !== void 0) : null
2781
2786
  }
2782
2787
  ) : null,
2783
2788
  m.enabled && ce.length > 0 && Ne ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
@@ -2786,11 +2791,11 @@ function wt(pe) {
2786
2791
  {
2787
2792
  type: "button",
2788
2793
  onClick: () => {
2789
- Ce(!f);
2794
+ Ce(!y);
2790
2795
  },
2791
2796
  className: "p-0 border-0 cursor-pointer bg-transparent",
2792
- "aria-label": f ? "Click to pause animation" : "Click to play animation",
2793
- children: f ? /* @__PURE__ */ e.jsx(et, {}) : /* @__PURE__ */ e.jsx(tt, {})
2797
+ "aria-label": y ? "Click to pause animation" : "Click to play animation",
2798
+ children: y ? /* @__PURE__ */ e.jsx(et, {}) : /* @__PURE__ */ e.jsx(tt, {})
2794
2799
  }
2795
2800
  ),
2796
2801
  /* @__PURE__ */ e.jsx(
@@ -2813,18 +2818,18 @@ function wt(pe) {
2813
2818
  )
2814
2819
  ] }) : null,
2815
2820
  /* @__PURE__ */ e.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: n.length === 0 ? /* @__PURE__ */ e.jsx(Ze, {}) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2816
- j ? /* @__PURE__ */ e.jsx(
2821
+ M ? /* @__PURE__ */ e.jsx(
2817
2822
  Qe,
2818
2823
  {
2819
- width: C,
2824
+ width: v,
2820
2825
  colorDomain: F,
2821
- colors: X,
2826
+ colors: Y,
2822
2827
  colorLegendTitle: ae,
2823
2828
  setSelectedColor: de,
2824
2829
  showNAColor: !1
2825
2830
  }
2826
2831
  ) : null,
2827
- /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: be, "aria-label": "Graph area", children: (C || l) && (ee || t) ? /* @__PURE__ */ e.jsx(
2832
+ /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: be, "aria-label": "Graph area", children: (v || l) && (ee || t) ? /* @__PURE__ */ e.jsx(
2828
2833
  vt,
2829
2834
  {
2830
2835
  data: h !== void 0 ? h === "total" ? Le(
@@ -2859,11 +2864,11 @@ function wt(pe) {
2859
2864
  n,
2860
2865
  m.dateFormat || "yyyy"
2861
2866
  ).filter((o) => Q ? !o.size.every((i) => i == null) : o),
2862
- barColors: X,
2863
- width: C || l,
2867
+ barColors: Y,
2868
+ width: v || l,
2864
2869
  height: Math.max(
2865
2870
  I,
2866
- ee || (K ? I ? (C || l) * K > I ? (C || l) * K : I : (C || l) * K : t)
2871
+ ee || (K ? I ? (v || l) * K > I ? (v || l) * K : I : (v || l) * K : t)
2867
2872
  ),
2868
2873
  suffix: E,
2869
2874
  prefix: J,
@@ -2871,10 +2876,10 @@ function wt(pe) {
2871
2876
  showLabels: se,
2872
2877
  showValues: he,
2873
2878
  showTicks: ue,
2874
- truncateBy: D,
2879
+ truncateBy: O,
2875
2880
  leftMargin: ge,
2876
2881
  rightMargin: Z,
2877
- topMargin: _,
2882
+ topMargin: X,
2878
2883
  bottomMargin: ie,
2879
2884
  tooltip: te,
2880
2885
  onSeriesMouseOver: re,
@@ -2915,9 +2920,9 @@ function wt(pe) {
2915
2920
  ) : $,
2916
2921
  onSeriesMouseClick: p,
2917
2922
  selectedColor: Oe,
2918
- labelOrder: N,
2923
+ labelOrder: D,
2919
2924
  maxBarThickness: S,
2920
- resetSelectionOnDoubleClick: v,
2925
+ resetSelectionOnDoubleClick: w,
2921
2926
  detailsOnClick: q,
2922
2927
  barAxisTitle: T,
2923
2928
  noOfTicks: V,
@@ -2932,7 +2937,7 @@ function wt(pe) {
2932
2937
  }
2933
2938
  ) : null })
2934
2939
  ] }) }),
2935
- A || y ? /* @__PURE__ */ e.jsx(
2940
+ A || f ? /* @__PURE__ */ e.jsx(
2936
2941
  Je,
2937
2942
  {
2938
2943
  styles: { footnote: G?.footnote, source: G?.source },
@@ -2941,8 +2946,8 @@ function wt(pe) {
2941
2946
  source: P?.source
2942
2947
  },
2943
2948
  sources: A,
2944
- footNote: y,
2945
- width: C
2949
+ footNote: f,
2950
+ width: v
2946
2951
  }
2947
2952
  ) : null
2948
2953
  ] })
@@ -2957,24 +2962,24 @@ function Ct(pe) {
2957
2962
  const {
2958
2963
  data: n,
2959
2964
  width: g,
2960
- height: X,
2965
+ height: Y,
2961
2966
  barColors: A,
2962
- barPadding: Y,
2967
+ barPadding: _,
2963
2968
  showLabels: me,
2964
2969
  showTicks: ue,
2965
2970
  truncateBy: ge,
2966
2971
  leftMargin: Z,
2967
- topMargin: _,
2972
+ topMargin: X,
2968
2973
  bottomMargin: ie,
2969
- rightMargin: D,
2974
+ rightMargin: O,
2970
2975
  tooltip: se,
2971
2976
  onSeriesMouseOver: he,
2972
- suffix: M,
2977
+ suffix: j,
2973
2978
  prefix: E,
2974
2979
  showValues: J,
2975
2980
  refValues: ee,
2976
- maxValue: C,
2977
- onSeriesMouseClick: y,
2981
+ maxValue: v,
2982
+ onSeriesMouseClick: f,
2978
2983
  selectedColor: F,
2979
2984
  labelOrder: ae,
2980
2985
  maxBarThickness: le,
@@ -2987,32 +2992,32 @@ function Ct(pe) {
2987
2992
  styles: $,
2988
2993
  classNames: p,
2989
2994
  animate: x,
2990
- colorDomain: w,
2995
+ colorDomain: C,
2991
2996
  precision: z,
2992
- customLayers: O,
2993
- naLabel: N
2997
+ customLayers: N,
2998
+ naLabel: D
2994
2999
  } = pe, I = Me(null), S = Re(I, {
2995
3000
  once: x.once,
2996
3001
  amount: x.amount
2997
3002
  }), b = {
2998
- top: _,
3003
+ top: X,
2999
3004
  bottom: ie,
3000
3005
  left: R ? Z + 30 : Z,
3001
- right: D
3002
- }, [v, q] = L(void 0), [T, V] = L(void 0), [oe, G] = L(void 0), [P, Q] = L(void 0), j = g - b.left - b.right, H = X - b.top - b.bottom, u = qe().domain([0, C]).range([H, 0]).nice(), k = n.map((c, l) => ({
3006
+ right: O
3007
+ }, [w, q] = L(void 0), [T, V] = L(void 0), [oe, G] = L(void 0), [P, Q] = L(void 0), M = g - b.left - b.right, H = Y - b.top - b.bottom, u = qe().domain([0, v]).range([H, 0]).nice(), k = n.map((c, l) => ({
3003
3008
  ...c,
3004
3009
  id: ae ? `${c.label}` : `${l}`
3005
3010
  })), m = ae || k.map((c) => `${c.id}`), d = Ie().domain(m).range([
3006
3011
  0,
3007
- K ? Math.max(j, K * m.length) : le ? Math.min(j, le * m.length) : j
3008
- ]).paddingInner(Y), h = u.ticks(ne);
3012
+ K ? Math.max(M, K * m.length) : le ? Math.min(M, le * m.length) : M
3013
+ ]).paddingInner(_), h = u.ticks(ne);
3009
3014
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3010
3015
  /* @__PURE__ */ e.jsx(
3011
3016
  ye.svg,
3012
3017
  {
3013
3018
  width: `${g}px`,
3014
- height: `${X}px`,
3015
- viewBox: `0 0 ${g} ${X}`,
3019
+ height: `${Y}px`,
3020
+ viewBox: `0 0 ${g} ${Y}`,
3016
3021
  direction: "ltr",
3017
3022
  ref: I,
3018
3023
  children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${b.left},${b.top})`, children: [
@@ -3022,8 +3027,8 @@ function Ct(pe) {
3022
3027
  y1: u(0),
3023
3028
  y2: u(0),
3024
3029
  x1: 0 - Z,
3025
- x2: j + b.right,
3026
- label: ze(0, N, z, E, M),
3030
+ x2: M + b.right,
3031
+ label: ze(0, D, z, E, j),
3027
3032
  labelPos: {
3028
3033
  x: 0 - Z,
3029
3034
  y: u(0),
@@ -3043,7 +3048,7 @@ function Ct(pe) {
3043
3048
  values: h.filter((c) => c !== 0),
3044
3049
  y: h.filter((c) => c !== 0).map((c) => u(c)),
3045
3050
  x1: 0 - Z,
3046
- x2: j + b.right,
3051
+ x2: M + b.right,
3047
3052
  styles: {
3048
3053
  gridLines: $?.yAxis?.gridLines,
3049
3054
  labels: $?.yAxis?.labels
@@ -3052,7 +3057,7 @@ function Ct(pe) {
3052
3057
  gridLines: p?.yAxis?.gridLines,
3053
3058
  labels: p?.yAxis?.labels
3054
3059
  },
3055
- suffix: M,
3060
+ suffix: j,
3056
3061
  prefix: E,
3057
3062
  labelType: "secondary",
3058
3063
  showGridLines: !0,
@@ -3071,7 +3076,7 @@ function Ct(pe) {
3071
3076
  rotate90: !0
3072
3077
  }
3073
3078
  ),
3074
- O.filter((c) => c.position === "before").map((c) => c.layer),
3079
+ N.filter((c) => c.position === "before").map((c) => c.layer),
3075
3080
  /* @__PURE__ */ e.jsxs(Ue, { children: [
3076
3081
  k.map(
3077
3082
  (c) => W(d(c.id)) ? null : /* @__PURE__ */ e.jsxs(
@@ -3105,7 +3110,7 @@ function Ct(pe) {
3105
3110
  q(void 0), G(void 0), Q(void 0), he?.(void 0);
3106
3111
  },
3107
3112
  onClick: () => {
3108
- (y || re) && (We(T, { ...c, sizeIndex: s }) && te ? (V(void 0), y?.(void 0)) : (V({ ...c, sizeIndex: s }), y && y({ ...c, sizeIndex: s })));
3113
+ (f || re) && (We(T, { ...c, sizeIndex: s }) && te ? (V(void 0), f?.(void 0)) : (V({ ...c, sizeIndex: s }), f && f({ ...c, sizeIndex: s })));
3109
3114
  },
3110
3115
  children: [
3111
3116
  /* @__PURE__ */ e.jsx(
@@ -3168,12 +3173,12 @@ function Ct(pe) {
3168
3173
  initial: "initial",
3169
3174
  animate: S ? "whileInView" : "initial",
3170
3175
  exit: { opacity: 0, transition: { duration: x.duration } },
3171
- children: ze(l, N, z, E, M)
3176
+ children: ze(l, D, z, E, j)
3172
3177
  }
3173
3178
  ) : null
3174
3179
  ]
3175
3180
  },
3176
- `${c.label}-${w[s] || s}`
3181
+ `${c.label}-${C[s] || s}`
3177
3182
  )),
3178
3183
  me ? /* @__PURE__ */ e.jsx(
3179
3184
  dt,
@@ -3224,10 +3229,10 @@ function Ct(pe) {
3224
3229
  animate: S ? "whileInView" : "initial",
3225
3230
  children: ze(
3226
3231
  ke(c.size.filter((l) => l)),
3227
- N,
3232
+ D,
3228
3233
  z,
3229
3234
  E,
3230
- M
3235
+ j
3231
3236
  )
3232
3237
  }
3233
3238
  ) : null
@@ -3243,7 +3248,7 @@ function Ct(pe) {
3243
3248
  color: c.color,
3244
3249
  y: u(c.value),
3245
3250
  x1: 0 - Z,
3246
- x2: j + b.right,
3251
+ x2: M + b.right,
3247
3252
  classNames: c.classNames,
3248
3253
  styles: c.styles,
3249
3254
  animate: x,
@@ -3252,14 +3257,14 @@ function Ct(pe) {
3252
3257
  l
3253
3258
  )) }) : null
3254
3259
  ] }),
3255
- O.filter((c) => c.position === "after").map((c) => c.layer)
3260
+ N.filter((c) => c.position === "after").map((c) => c.layer)
3256
3261
  ] })
3257
3262
  }
3258
3263
  ),
3259
- v && se && oe && P ? /* @__PURE__ */ e.jsx(
3264
+ w && se && oe && P ? /* @__PURE__ */ e.jsx(
3260
3265
  Xe,
3261
3266
  {
3262
- data: v,
3267
+ data: w,
3263
3268
  body: se,
3264
3269
  xPos: oe,
3265
3270
  yPos: P,
@@ -3290,24 +3295,24 @@ function kt(pe) {
3290
3295
  const {
3291
3296
  data: n,
3292
3297
  graphTitle: g,
3293
- colors: X = je.light.categoricalColors.colors,
3298
+ colors: Y = je.light.categoricalColors.colors,
3294
3299
  sources: A,
3295
- graphDescription: Y,
3300
+ graphDescription: _,
3296
3301
  barPadding: me = 0.25,
3297
3302
  showTicks: ue = !0,
3298
3303
  leftMargin: ge = 20,
3299
3304
  rightMargin: Z = 20,
3300
- topMargin: _ = 20,
3305
+ topMargin: X = 20,
3301
3306
  bottomMargin: ie = 25,
3302
- truncateBy: D = 999,
3307
+ truncateBy: O = 999,
3303
3308
  showLabels: se = !0,
3304
3309
  showValues: he = !0,
3305
- backgroundColor: M = !1,
3310
+ backgroundColor: j = !1,
3306
3311
  showColorScale: E = !0,
3307
3312
  suffix: J = "",
3308
3313
  prefix: ee = "",
3309
- height: C,
3310
- width: y,
3314
+ height: v,
3315
+ width: f,
3311
3316
  footNote: F,
3312
3317
  colorDomain: ae,
3313
3318
  colorLegendTitle: le,
@@ -3320,14 +3325,14 @@ function kt(pe) {
3320
3325
  maxValue: $,
3321
3326
  onSeriesMouseClick: p,
3322
3327
  graphDownload: x = !1,
3323
- dataDownload: w = !1,
3328
+ dataDownload: C = !1,
3324
3329
  language: z = "en",
3325
- theme: O = "light",
3326
- labelOrder: N,
3330
+ theme: N = "light",
3331
+ labelOrder: D,
3327
3332
  minHeight: I = 0,
3328
3333
  maxBarThickness: S,
3329
3334
  sortParameter: b,
3330
- maxNumberOfBars: v,
3335
+ maxNumberOfBars: w,
3331
3336
  minBarThickness: q,
3332
3337
  ariaLabel: T,
3333
3338
  resetSelectionOnDoubleClick: V = !0,
@@ -3335,7 +3340,7 @@ function kt(pe) {
3335
3340
  barAxisTitle: G,
3336
3341
  noOfTicks: P = 5,
3337
3342
  valueColor: Q,
3338
- styles: j,
3343
+ styles: M,
3339
3344
  classNames: H,
3340
3345
  filterNA: u = !0,
3341
3346
  animate: k = !1,
@@ -3344,7 +3349,7 @@ function kt(pe) {
3344
3349
  timeline: h = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
3345
3350
  naLabel: c = "NA",
3346
3351
  sortData: l
3347
- } = pe, [s, t] = L(0), [r, f] = L(0), [Ce, ce] = L(h.autoplay), U = Fe(
3352
+ } = pe, [s, t] = L(0), [r, y] = L(0), [Ce, ce] = L(h.autoplay), U = Fe(
3348
3353
  Ae(
3349
3354
  n.filter((i) => i.date !== void 0 && i.date !== null),
3350
3355
  (i) => i.date
@@ -3353,10 +3358,10 @@ function kt(pe) {
3353
3358
  ), [fe, Oe] = L(h.autoplay ? 0 : U.length - 1), [de, be] = L(void 0), we = Me(null), Ne = Me(null);
3354
3359
  Ve(() => {
3355
3360
  const i = new ResizeObserver((B) => {
3356
- t(y || B[0].target.clientWidth || 620), f(C || B[0].target.clientHeight || 480);
3361
+ t(f || B[0].target.clientWidth || 620), y(v || B[0].target.clientHeight || 480);
3357
3362
  });
3358
- return we.current && (f(we.current.clientHeight || 480), t(we.current.clientWidth || 620), y || i.observe(we.current)), () => i.disconnect();
3359
- }, [y, C]), Ve(() => {
3363
+ return we.current && (y(we.current.clientHeight || 480), t(we.current.clientWidth || 620), f || i.observe(we.current)), () => i.disconnect();
3364
+ }, [f, v]), Ve(() => {
3360
3365
  const i = setInterval(
3361
3366
  () => {
3362
3367
  Oe((B) => B < U.length - 1 ? B + 1 : 0);
@@ -3374,39 +3379,40 @@ function kt(pe) {
3374
3379
  return /* @__PURE__ */ e.jsx(
3375
3380
  "div",
3376
3381
  {
3377
- className: `${O || "light"} flex ${y ? "w-fit grow-0" : "w-full grow"}`,
3382
+ className: `${N || "light"} flex ${f ? "w-fit grow-0" : "w-full grow"}`,
3378
3383
  dir: z === "he" || z === "ar" ? "rtl" : void 0,
3379
3384
  children: /* @__PURE__ */ e.jsx(
3380
3385
  "div",
3381
3386
  {
3382
3387
  className: $e(
3383
- `${M ? M === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${z || "en"}`,
3388
+ `${j ? j === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${z || "en"}`,
3389
+ f ? "w-fit" : "w-full",
3384
3390
  H?.graphContainer
3385
3391
  ),
3386
3392
  style: {
3387
- ...j?.graphContainer || {},
3388
- ...M && M !== !0 ? { backgroundColor: M } : {}
3393
+ ...M?.graphContainer || {},
3394
+ ...j && j !== !0 ? { backgroundColor: j } : {}
3389
3395
  },
3390
3396
  id: ne,
3391
3397
  ref: Ne,
3392
- "aria-label": T || `${g ? `The graph shows ${g}. ` : ""}This is a stacked bar chart. ${Y ? ` ${Y}` : ""}`,
3393
- children: /* @__PURE__ */ e.jsx("div", { style: { padding: M ? K || "1rem" : K || 0 }, children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
3394
- g || Y || x || w ? /* @__PURE__ */ e.jsx(
3398
+ "aria-label": T || `${g ? `The graph shows ${g}. ` : ""}This is a stacked bar chart. ${_ ? ` ${_}` : ""}`,
3399
+ children: /* @__PURE__ */ e.jsx("div", { style: { padding: j ? K || "1rem" : K || 0 }, children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
3400
+ g || _ || x || C ? /* @__PURE__ */ e.jsx(
3395
3401
  Ke,
3396
3402
  {
3397
3403
  styles: {
3398
- title: j?.title,
3399
- description: j?.description
3404
+ title: M?.title,
3405
+ description: M?.description
3400
3406
  },
3401
3407
  classNames: {
3402
3408
  title: H?.title,
3403
3409
  description: H?.description
3404
3410
  },
3405
3411
  graphTitle: g,
3406
- graphDescription: Y,
3407
- width: y,
3412
+ graphDescription: _,
3413
+ width: f,
3408
3414
  graphDownload: x ? Ne.current : void 0,
3409
- dataDownload: w ? n.map((i) => i.data).filter((i) => i !== void 0).length > 0 ? n.map((i) => i.data).filter((i) => i !== void 0) : n.filter((i) => i !== void 0) : null
3415
+ dataDownload: C ? n.map((i) => i.data).filter((i) => i !== void 0).length > 0 ? n.map((i) => i.data).filter((i) => i !== void 0) : n.filter((i) => i !== void 0) : null
3410
3416
  }
3411
3417
  ) : null,
3412
3418
  h.enabled && U.length > 0 && o ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
@@ -3445,15 +3451,15 @@ function kt(pe) {
3445
3451
  E ? /* @__PURE__ */ e.jsx(
3446
3452
  Qe,
3447
3453
  {
3448
- width: y,
3454
+ width: f,
3449
3455
  colorDomain: ae,
3450
- colors: X,
3456
+ colors: Y,
3451
3457
  colorLegendTitle: le,
3452
3458
  setSelectedColor: be,
3453
3459
  showNAColor: !1
3454
3460
  }
3455
3461
  ) : null,
3456
- /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: we, "aria-label": "Graph area", children: (y || s) && (C || r) ? /* @__PURE__ */ e.jsx(
3462
+ /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: we, "aria-label": "Graph area", children: (f || s) && (v || r) ? /* @__PURE__ */ e.jsx(
3457
3463
  Ct,
3458
3464
  {
3459
3465
  data: b !== void 0 ? b === "total" ? Le(
@@ -3470,7 +3476,7 @@ function kt(pe) {
3470
3476
  ),
3471
3477
  (i) => ke(i.size.filter((B) => !W(B))),
3472
3478
  [l || "asc"]
3473
- ).filter((i, B) => v ? B < v : !0) : Le(
3479
+ ).filter((i, B) => w ? B < w : !0) : Le(
3474
3480
  Te(
3475
3481
  n,
3476
3482
  h.dateFormat || "yyyy"
@@ -3484,23 +3490,23 @@ function kt(pe) {
3484
3490
  ),
3485
3491
  (i) => W(i.size[b]) ? -1 / 0 : i.size[b],
3486
3492
  [l || "asc"]
3487
- ).filter((i, B) => v ? B < v : !0) : Te(
3493
+ ).filter((i, B) => w ? B < w : !0) : Te(
3488
3494
  n,
3489
3495
  h.dateFormat || "yyyy"
3490
- ).filter((i) => u ? !i.size.every((B) => B == null) : i).filter((i, B) => v ? B < v : !0),
3491
- barColors: X,
3492
- width: y || s,
3496
+ ).filter((i) => u ? !i.size.every((B) => B == null) : i).filter((i, B) => w ? B < w : !0),
3497
+ barColors: Y,
3498
+ width: f || s,
3493
3499
  height: Math.max(
3494
3500
  I,
3495
- C || (R ? I ? (y || s) * R > I ? (y || s) * R : I : (y || s) * R : r)
3501
+ v || (R ? I ? (f || s) * R > I ? (f || s) * R : I : (f || s) * R : r)
3496
3502
  ),
3497
3503
  barPadding: me,
3498
3504
  showLabels: se,
3499
3505
  showTicks: ue,
3500
- truncateBy: D,
3506
+ truncateBy: O,
3501
3507
  leftMargin: ge,
3502
3508
  rightMargin: Z,
3503
- topMargin: _,
3509
+ topMargin: X,
3504
3510
  bottomMargin: ie,
3505
3511
  tooltip: te,
3506
3512
  onSeriesMouseOver: re,
@@ -3515,7 +3521,7 @@ function kt(pe) {
3515
3521
  ) : $,
3516
3522
  onSeriesMouseClick: p,
3517
3523
  selectedColor: de,
3518
- labelOrder: N,
3524
+ labelOrder: D,
3519
3525
  maxBarThickness: S,
3520
3526
  minBarThickness: q,
3521
3527
  resetSelectionOnDoubleClick: V,
@@ -3523,7 +3529,7 @@ function kt(pe) {
3523
3529
  barAxisTitle: G,
3524
3530
  noOfTicks: P,
3525
3531
  valueColor: Q,
3526
- styles: j,
3532
+ styles: M,
3527
3533
  classNames: H,
3528
3534
  animate: k === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : k || { duration: 0, once: !0, amount: 0 },
3529
3535
  colorDomain: ae,
@@ -3536,14 +3542,14 @@ function kt(pe) {
3536
3542
  A || F ? /* @__PURE__ */ e.jsx(
3537
3543
  Je,
3538
3544
  {
3539
- styles: { footnote: j?.footnote, source: j?.source },
3545
+ styles: { footnote: M?.footnote, source: M?.source },
3540
3546
  classNames: {
3541
3547
  footnote: H?.footnote,
3542
3548
  source: H?.source
3543
3549
  },
3544
3550
  sources: A,
3545
3551
  footNote: F,
3546
- width: y
3552
+ width: f
3547
3553
  }
3548
3554
  ) : null
3549
3555
  ] }) })
@@ -3556,24 +3562,24 @@ function ri(pe) {
3556
3562
  const {
3557
3563
  data: n,
3558
3564
  graphTitle: g,
3559
- colors: X,
3565
+ colors: Y,
3560
3566
  barPadding: A,
3561
- showTicks: Y,
3567
+ showTicks: _,
3562
3568
  leftMargin: me,
3563
3569
  rightMargin: ue,
3564
3570
  topMargin: ge,
3565
3571
  bottomMargin: Z,
3566
- truncateBy: _,
3572
+ truncateBy: X,
3567
3573
  showLabels: ie,
3568
- showValues: D,
3574
+ showValues: O,
3569
3575
  backgroundColor: se,
3570
3576
  suffix: he,
3571
- prefix: M,
3577
+ prefix: j,
3572
3578
  sources: E,
3573
3579
  graphDescription: J,
3574
3580
  height: ee,
3575
- width: C,
3576
- footNote: y,
3581
+ width: v,
3582
+ footNote: f,
3577
3583
  colorDomain: F,
3578
3584
  colorLegendTitle: ae,
3579
3585
  padding: le,
@@ -3586,14 +3592,14 @@ function ri(pe) {
3586
3592
  maxValue: $,
3587
3593
  minValue: p,
3588
3594
  highlightedDataPoints: x,
3589
- onSeriesMouseClick: w,
3595
+ onSeriesMouseClick: C,
3590
3596
  graphDownload: z,
3591
- dataDownload: O,
3592
- language: N,
3597
+ dataDownload: N,
3598
+ language: D,
3593
3599
  theme: I,
3594
3600
  sortData: S,
3595
3601
  labelOrder: b,
3596
- showNAColor: v,
3602
+ showNAColor: w,
3597
3603
  minHeight: q,
3598
3604
  maxBarThickness: T,
3599
3605
  maxNumberOfBars: V,
@@ -3601,7 +3607,7 @@ function ri(pe) {
3601
3607
  ariaLabel: G,
3602
3608
  resetSelectionOnDoubleClick: P,
3603
3609
  detailsOnClick: Q,
3604
- barAxisTitle: j,
3610
+ barAxisTitle: M,
3605
3611
  noOfTicks: H,
3606
3612
  valueColor: u,
3607
3613
  orientation: k = "vertical",
@@ -3613,31 +3619,31 @@ function ri(pe) {
3613
3619
  precision: s,
3614
3620
  customLayers: t,
3615
3621
  timeline: r,
3616
- naLabel: f
3622
+ naLabel: y
3617
3623
  } = pe;
3618
3624
  return k === "vertical" ? /* @__PURE__ */ e.jsx(
3619
3625
  bt,
3620
3626
  {
3621
3627
  data: n,
3622
3628
  graphTitle: g,
3623
- colors: X,
3629
+ colors: Y,
3624
3630
  barPadding: A,
3625
- showTicks: Y,
3631
+ showTicks: _,
3626
3632
  leftMargin: me,
3627
3633
  rightMargin: ue,
3628
3634
  topMargin: ge,
3629
3635
  bottomMargin: Z,
3630
- truncateBy: _,
3636
+ truncateBy: X,
3631
3637
  showLabels: ie,
3632
- showValues: D,
3638
+ showValues: O,
3633
3639
  backgroundColor: se,
3634
3640
  suffix: he,
3635
- prefix: M,
3641
+ prefix: j,
3636
3642
  sources: E,
3637
3643
  graphDescription: J,
3638
3644
  height: ee,
3639
- width: C,
3640
- footNote: y,
3645
+ width: v,
3646
+ footNote: f,
3641
3647
  colorDomain: F,
3642
3648
  colorLegendTitle: ae,
3643
3649
  padding: le,
@@ -3650,14 +3656,14 @@ function ri(pe) {
3650
3656
  maxValue: $,
3651
3657
  minValue: p,
3652
3658
  highlightedDataPoints: x,
3653
- onSeriesMouseClick: w,
3659
+ onSeriesMouseClick: C,
3654
3660
  graphDownload: z,
3655
- dataDownload: O,
3656
- language: N,
3661
+ dataDownload: N,
3662
+ language: D,
3657
3663
  theme: I,
3658
3664
  sortData: S,
3659
3665
  labelOrder: b,
3660
- showNAColor: v,
3666
+ showNAColor: w,
3661
3667
  minHeight: q,
3662
3668
  maxBarThickness: T,
3663
3669
  maxNumberOfBars: V,
@@ -3666,7 +3672,7 @@ function ri(pe) {
3666
3672
  resetSelectionOnDoubleClick: P,
3667
3673
  styles: m,
3668
3674
  detailsOnClick: Q,
3669
- barAxisTitle: j,
3675
+ barAxisTitle: M,
3670
3676
  noOfTicks: H,
3671
3677
  valueColor: u,
3672
3678
  classNames: d,
@@ -3682,24 +3688,24 @@ function ri(pe) {
3682
3688
  {
3683
3689
  data: n,
3684
3690
  graphTitle: g,
3685
- colors: X,
3691
+ colors: Y,
3686
3692
  barPadding: A,
3687
- showTicks: Y,
3693
+ showTicks: _,
3688
3694
  leftMargin: me,
3689
3695
  rightMargin: ue,
3690
3696
  topMargin: ge,
3691
3697
  bottomMargin: Z,
3692
- truncateBy: _,
3698
+ truncateBy: X,
3693
3699
  showLabels: ie,
3694
- showValues: D,
3700
+ showValues: O,
3695
3701
  backgroundColor: se,
3696
3702
  suffix: he,
3697
- prefix: M,
3703
+ prefix: j,
3698
3704
  sources: E,
3699
3705
  graphDescription: J,
3700
3706
  height: ee,
3701
- width: C,
3702
- footNote: y,
3707
+ width: v,
3708
+ footNote: f,
3703
3709
  colorDomain: F,
3704
3710
  colorLegendTitle: ae,
3705
3711
  padding: le,
@@ -3712,14 +3718,14 @@ function ri(pe) {
3712
3718
  maxValue: $,
3713
3719
  minValue: p,
3714
3720
  highlightedDataPoints: x,
3715
- onSeriesMouseClick: w,
3721
+ onSeriesMouseClick: C,
3716
3722
  graphDownload: z,
3717
- dataDownload: O,
3718
- language: N,
3723
+ dataDownload: N,
3724
+ language: D,
3719
3725
  theme: I,
3720
3726
  sortData: S,
3721
3727
  labelOrder: b,
3722
- showNAColor: v,
3728
+ showNAColor: w,
3723
3729
  minHeight: q,
3724
3730
  maxBarThickness: T,
3725
3731
  maxNumberOfBars: V,
@@ -3728,7 +3734,7 @@ function ri(pe) {
3728
3734
  resetSelectionOnDoubleClick: P,
3729
3735
  styles: m,
3730
3736
  detailsOnClick: Q,
3731
- barAxisTitle: j,
3737
+ barAxisTitle: M,
3732
3738
  noOfTicks: H,
3733
3739
  valueColor: u,
3734
3740
  classNames: d,
@@ -3737,7 +3743,7 @@ function ri(pe) {
3737
3743
  precision: s,
3738
3744
  customLayers: t,
3739
3745
  timeline: r,
3740
- naLabel: f
3746
+ naLabel: y
3741
3747
  }
3742
3748
  );
3743
3749
  }
@@ -3745,24 +3751,24 @@ function si(pe) {
3745
3751
  const {
3746
3752
  data: n,
3747
3753
  graphTitle: g,
3748
- colors: X,
3754
+ colors: Y,
3749
3755
  sources: A,
3750
- graphDescription: Y,
3756
+ graphDescription: _,
3751
3757
  barPadding: me,
3752
3758
  showTicks: ue,
3753
3759
  truncateBy: ge,
3754
3760
  height: Z,
3755
- width: _,
3761
+ width: X,
3756
3762
  footNote: ie,
3757
- colorDomain: D,
3763
+ colorDomain: O,
3758
3764
  colorLegendTitle: se,
3759
3765
  suffix: he,
3760
- prefix: M,
3766
+ prefix: j,
3761
3767
  showValues: E,
3762
3768
  padding: J,
3763
3769
  backgroundColor: ee,
3764
- leftMargin: C,
3765
- rightMargin: y,
3770
+ leftMargin: v,
3771
+ rightMargin: f,
3766
3772
  topMargin: F,
3767
3773
  bottomMargin: ae,
3768
3774
  showLabels: le,
@@ -3775,14 +3781,14 @@ function si(pe) {
3775
3781
  minValue: $,
3776
3782
  onSeriesMouseClick: p,
3777
3783
  graphDownload: x,
3778
- dataDownload: w,
3784
+ dataDownload: C,
3779
3785
  language: z,
3780
- labelOrder: O,
3781
- minHeight: N,
3786
+ labelOrder: N,
3787
+ minHeight: D,
3782
3788
  theme: I,
3783
3789
  sortParameter: S,
3784
3790
  sortData: b,
3785
- maxBarThickness: v,
3791
+ maxBarThickness: w,
3786
3792
  ariaLabel: q,
3787
3793
  resetSelectionOnDoubleClick: T,
3788
3794
  detailsOnClick: V,
@@ -3790,7 +3796,7 @@ function si(pe) {
3790
3796
  noOfTicks: G,
3791
3797
  valueColor: P,
3792
3798
  orientation: Q = "vertical",
3793
- styles: j,
3799
+ styles: M,
3794
3800
  classNames: H,
3795
3801
  filterNA: u,
3796
3802
  animate: k,
@@ -3805,24 +3811,24 @@ function si(pe) {
3805
3811
  {
3806
3812
  data: n,
3807
3813
  graphTitle: g,
3808
- colors: X,
3814
+ colors: Y,
3809
3815
  sources: A,
3810
- graphDescription: Y,
3816
+ graphDescription: _,
3811
3817
  barPadding: me,
3812
3818
  showTicks: ue,
3813
3819
  truncateBy: ge,
3814
3820
  height: Z,
3815
- width: _,
3821
+ width: X,
3816
3822
  footNote: ie,
3817
- colorDomain: D,
3823
+ colorDomain: O,
3818
3824
  colorLegendTitle: se,
3819
3825
  suffix: he,
3820
- prefix: M,
3826
+ prefix: j,
3821
3827
  showValues: E,
3822
3828
  padding: J,
3823
3829
  backgroundColor: ee,
3824
- leftMargin: C,
3825
- rightMargin: y,
3830
+ leftMargin: v,
3831
+ rightMargin: f,
3826
3832
  sortParameter: S,
3827
3833
  sortData: b,
3828
3834
  topMargin: F,
@@ -3837,15 +3843,15 @@ function si(pe) {
3837
3843
  minValue: $,
3838
3844
  onSeriesMouseClick: p,
3839
3845
  graphDownload: x,
3840
- dataDownload: w,
3846
+ dataDownload: C,
3841
3847
  language: z,
3842
- labelOrder: O,
3843
- minHeight: N,
3848
+ labelOrder: N,
3849
+ minHeight: D,
3844
3850
  theme: I,
3845
- maxBarThickness: v,
3851
+ maxBarThickness: w,
3846
3852
  ariaLabel: q,
3847
3853
  resetSelectionOnDoubleClick: T,
3848
- styles: j,
3854
+ styles: M,
3849
3855
  detailsOnClick: V,
3850
3856
  barAxisTitle: oe,
3851
3857
  noOfTicks: G,
@@ -3864,26 +3870,26 @@ function si(pe) {
3864
3870
  {
3865
3871
  data: n,
3866
3872
  graphTitle: g,
3867
- colors: X,
3873
+ colors: Y,
3868
3874
  sortParameter: S,
3869
3875
  sortData: b,
3870
3876
  sources: A,
3871
- graphDescription: Y,
3877
+ graphDescription: _,
3872
3878
  barPadding: me,
3873
3879
  showTicks: ue,
3874
3880
  truncateBy: ge,
3875
3881
  height: Z,
3876
- width: _,
3882
+ width: X,
3877
3883
  footNote: ie,
3878
- colorDomain: D,
3884
+ colorDomain: O,
3879
3885
  colorLegendTitle: se,
3880
3886
  suffix: he,
3881
- prefix: M,
3887
+ prefix: j,
3882
3888
  showValues: E,
3883
3889
  padding: J,
3884
3890
  backgroundColor: ee,
3885
- leftMargin: C,
3886
- rightMargin: y,
3891
+ leftMargin: v,
3892
+ rightMargin: f,
3887
3893
  topMargin: F,
3888
3894
  bottomMargin: ae,
3889
3895
  showLabels: le,
@@ -3896,15 +3902,15 @@ function si(pe) {
3896
3902
  minValue: $,
3897
3903
  onSeriesMouseClick: p,
3898
3904
  graphDownload: x,
3899
- dataDownload: w,
3905
+ dataDownload: C,
3900
3906
  language: z,
3901
- labelOrder: O,
3902
- minHeight: N,
3907
+ labelOrder: N,
3908
+ minHeight: D,
3903
3909
  theme: I,
3904
- maxBarThickness: v,
3910
+ maxBarThickness: w,
3905
3911
  ariaLabel: q,
3906
3912
  resetSelectionOnDoubleClick: T,
3907
- styles: j,
3913
+ styles: M,
3908
3914
  detailsOnClick: V,
3909
3915
  barAxisTitle: oe,
3910
3916
  noOfTicks: G,
@@ -3924,24 +3930,24 @@ function oi(pe) {
3924
3930
  const {
3925
3931
  data: n,
3926
3932
  graphTitle: g,
3927
- colors: X,
3933
+ colors: Y,
3928
3934
  sources: A,
3929
- graphDescription: Y,
3935
+ graphDescription: _,
3930
3936
  barPadding: me,
3931
3937
  showTicks: ue,
3932
3938
  leftMargin: ge,
3933
3939
  rightMargin: Z,
3934
- topMargin: _,
3940
+ topMargin: X,
3935
3941
  bottomMargin: ie,
3936
- truncateBy: D,
3942
+ truncateBy: O,
3937
3943
  showLabels: se,
3938
3944
  showValues: he,
3939
- backgroundColor: M,
3945
+ backgroundColor: j,
3940
3946
  suffix: E,
3941
3947
  prefix: J,
3942
3948
  height: ee,
3943
- width: C,
3944
- footNote: y,
3949
+ width: v,
3950
+ footNote: f,
3945
3951
  colorDomain: F,
3946
3952
  colorLegendTitle: ae,
3947
3953
  padding: le,
@@ -3954,14 +3960,14 @@ function oi(pe) {
3954
3960
  onSeriesMouseClick: $,
3955
3961
  graphDownload: p,
3956
3962
  dataDownload: x,
3957
- language: w,
3963
+ language: C,
3958
3964
  theme: z,
3959
- labelOrder: O,
3960
- minHeight: N,
3965
+ labelOrder: N,
3966
+ minHeight: D,
3961
3967
  maxBarThickness: I,
3962
3968
  sortParameter: S,
3963
3969
  sortData: b,
3964
- maxNumberOfBars: v,
3970
+ maxNumberOfBars: w,
3965
3971
  minBarThickness: q,
3966
3972
  ariaLabel: T,
3967
3973
  resetSelectionOnDoubleClick: V,
@@ -3969,7 +3975,7 @@ function oi(pe) {
3969
3975
  barAxisTitle: G,
3970
3976
  noOfTicks: P,
3971
3977
  valueColor: Q,
3972
- orientation: j = "vertical",
3978
+ orientation: M = "vertical",
3973
3979
  styles: H,
3974
3980
  classNames: u,
3975
3981
  filterNA: k,
@@ -3980,29 +3986,29 @@ function oi(pe) {
3980
3986
  timeline: l,
3981
3987
  naLabel: s
3982
3988
  } = pe;
3983
- return j === "vertical" ? /* @__PURE__ */ e.jsx(
3989
+ return M === "vertical" ? /* @__PURE__ */ e.jsx(
3984
3990
  kt,
3985
3991
  {
3986
3992
  data: n,
3987
3993
  graphTitle: g,
3988
- colors: X,
3994
+ colors: Y,
3989
3995
  sources: A,
3990
- graphDescription: Y,
3996
+ graphDescription: _,
3991
3997
  barPadding: me,
3992
3998
  showTicks: ue,
3993
3999
  leftMargin: ge,
3994
4000
  rightMargin: Z,
3995
- topMargin: _,
4001
+ topMargin: X,
3996
4002
  bottomMargin: ie,
3997
- truncateBy: D,
4003
+ truncateBy: O,
3998
4004
  showLabels: se,
3999
4005
  showValues: he,
4000
- backgroundColor: M,
4006
+ backgroundColor: j,
4001
4007
  suffix: E,
4002
4008
  prefix: J,
4003
4009
  height: ee,
4004
- width: C,
4005
- footNote: y,
4010
+ width: v,
4011
+ footNote: f,
4006
4012
  colorDomain: F,
4007
4013
  colorLegendTitle: ae,
4008
4014
  padding: le,
@@ -4015,14 +4021,14 @@ function oi(pe) {
4015
4021
  onSeriesMouseClick: $,
4016
4022
  graphDownload: p,
4017
4023
  dataDownload: x,
4018
- language: w,
4024
+ language: C,
4019
4025
  theme: z,
4020
- labelOrder: O,
4021
- minHeight: N,
4026
+ labelOrder: N,
4027
+ minHeight: D,
4022
4028
  maxBarThickness: I,
4023
4029
  sortParameter: S,
4024
4030
  sortData: b,
4025
- maxNumberOfBars: v,
4031
+ maxNumberOfBars: w,
4026
4032
  minBarThickness: q,
4027
4033
  ariaLabel: T,
4028
4034
  resetSelectionOnDoubleClick: V,
@@ -4045,24 +4051,24 @@ function oi(pe) {
4045
4051
  {
4046
4052
  data: n,
4047
4053
  graphTitle: g,
4048
- colors: X,
4054
+ colors: Y,
4049
4055
  sources: A,
4050
- graphDescription: Y,
4056
+ graphDescription: _,
4051
4057
  barPadding: me,
4052
4058
  showTicks: ue,
4053
4059
  leftMargin: ge,
4054
4060
  rightMargin: Z,
4055
- topMargin: _,
4061
+ topMargin: X,
4056
4062
  bottomMargin: ie,
4057
- truncateBy: D,
4063
+ truncateBy: O,
4058
4064
  showLabels: se,
4059
4065
  showValues: he,
4060
- backgroundColor: M,
4066
+ backgroundColor: j,
4061
4067
  suffix: E,
4062
4068
  prefix: J,
4063
4069
  height: ee,
4064
- width: C,
4065
- footNote: y,
4070
+ width: v,
4071
+ footNote: f,
4066
4072
  colorDomain: F,
4067
4073
  colorLegendTitle: ae,
4068
4074
  padding: le,
@@ -4075,14 +4081,14 @@ function oi(pe) {
4075
4081
  onSeriesMouseClick: $,
4076
4082
  graphDownload: p,
4077
4083
  dataDownload: x,
4078
- language: w,
4084
+ language: C,
4079
4085
  theme: z,
4080
- labelOrder: O,
4081
- minHeight: N,
4086
+ labelOrder: N,
4087
+ minHeight: D,
4082
4088
  maxBarThickness: I,
4083
4089
  sortParameter: S,
4084
4090
  sortData: b,
4085
- maxNumberOfBars: v,
4091
+ maxNumberOfBars: w,
4086
4092
  minBarThickness: q,
4087
4093
  ariaLabel: T,
4088
4094
  resetSelectionOnDoubleClick: V,