@undp/data-viz 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/AreaChart.js +3 -3
  2. package/dist/BarGraph.cjs +1 -1
  3. package/dist/BarGraph.cjs.map +1 -1
  4. package/dist/BarGraph.js +1760 -1604
  5. package/dist/BarGraph.js.map +1 -1
  6. package/dist/BeeSwarmChart.js +2 -2
  7. package/dist/BiVariateChoroplethMap.cjs +1 -1
  8. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  9. package/dist/BiVariateChoroplethMap.js +222 -207
  10. package/dist/BiVariateChoroplethMap.js.map +1 -1
  11. package/dist/BulletChart.cjs +1 -1
  12. package/dist/BulletChart.cjs.map +1 -1
  13. package/dist/BulletChart.d.ts +11 -0
  14. package/dist/BulletChart.js +726 -640
  15. package/dist/BulletChart.js.map +1 -1
  16. package/dist/ButterflyChart.cjs +1 -1
  17. package/dist/ButterflyChart.cjs.map +1 -1
  18. package/dist/ButterflyChart.js +366 -348
  19. package/dist/ButterflyChart.js.map +1 -1
  20. package/dist/ChoroplethMap.cjs +1 -1
  21. package/dist/ChoroplethMap.cjs.map +1 -1
  22. package/dist/ChoroplethMap.js +311 -297
  23. package/dist/ChoroplethMap.js.map +1 -1
  24. package/dist/CirclePackingGraph.js +1 -1
  25. package/dist/DifferenceLineChart.js +3 -3
  26. package/dist/DotDensityMap.cjs +1 -1
  27. package/dist/DotDensityMap.cjs.map +1 -1
  28. package/dist/DotDensityMap.js +219 -203
  29. package/dist/DotDensityMap.js.map +1 -1
  30. package/dist/DualAxisLineChart.js +3 -3
  31. package/dist/DumbbellChart.cjs +1 -1
  32. package/dist/DumbbellChart.cjs.map +1 -1
  33. package/dist/DumbbellChart.js +606 -556
  34. package/dist/DumbbellChart.js.map +1 -1
  35. package/dist/GraphEl-YKUlz-37.cjs +2 -0
  36. package/dist/GraphEl-YKUlz-37.cjs.map +1 -0
  37. package/dist/{GraphEl-ebgfxefq.js → GraphEl-sVZvlyWe.js} +3 -2
  38. package/dist/GraphEl-sVZvlyWe.js.map +1 -0
  39. package/dist/GriddedGraphs.cjs +1 -1
  40. package/dist/GriddedGraphs.js +2 -2
  41. package/dist/HeatMap.js +4 -4
  42. package/dist/Histogram.js +3 -3
  43. package/dist/HybridMap.cjs +1 -1
  44. package/dist/HybridMap.cjs.map +1 -1
  45. package/dist/HybridMap.js +357 -342
  46. package/dist/HybridMap.js.map +1 -1
  47. package/dist/LineChartWithConfidenceInterval.js +3 -3
  48. package/dist/MultiLineAltChart.cjs +1 -1
  49. package/dist/MultiLineAltChart.cjs.map +1 -1
  50. package/dist/MultiLineAltChart.js +453 -425
  51. package/dist/MultiLineAltChart.js.map +1 -1
  52. package/dist/MultiLineChart.js +3 -3
  53. package/dist/ParetoChart.js +2 -2
  54. package/dist/RadarChart.js +1 -1
  55. package/dist/ScatterPlot.cjs +1 -1
  56. package/dist/ScatterPlot.cjs.map +1 -1
  57. package/dist/ScatterPlot.js +471 -452
  58. package/dist/ScatterPlot.js.map +1 -1
  59. package/dist/SimpleLineChart.js +3 -3
  60. package/dist/SingleGraphDashboard.cjs +1 -1
  61. package/dist/SingleGraphDashboard.js +2 -2
  62. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  63. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  64. package/dist/SlopeChart.js +1 -1
  65. package/dist/SparkLine.js +3 -3
  66. package/dist/StripChart.js +1 -1
  67. package/dist/ThreeDGlobe.js +2 -2
  68. package/dist/Types.d.ts +1 -0
  69. package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
  70. package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
  71. package/dist/ensureCompleteData-DS7gCvVd.js +122 -0
  72. package/dist/ensureCompleteData-DS7gCvVd.js.map +1 -0
  73. package/dist/ensureCompleteData-Oib-vGb0.cjs +2 -0
  74. package/dist/ensureCompleteData-Oib-vGb0.cjs.map +1 -0
  75. package/dist/getSchema.cjs +1 -1
  76. package/dist/getSchema.cjs.map +1 -1
  77. package/dist/getSchema.js +15 -15
  78. package/dist/getSchema.js.map +1 -1
  79. package/dist/{index-BBV4tAeA.js → index-DPGq3eIL.js} +2 -2
  80. package/dist/{index-BBV4tAeA.js.map → index-DPGq3eIL.js.map} +1 -1
  81. package/dist/index.cjs +1 -1
  82. package/dist/index.d.ts +3 -0
  83. package/dist/index.js +3 -3
  84. package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
  85. package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
  86. package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
  87. package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
  88. package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
  89. package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
  90. package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
  91. package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
  92. package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
  93. package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
  94. package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
  95. package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
  96. package/dist/transformData.cjs +1 -1
  97. package/dist/transformData.js +2 -2
  98. package/dist/transformDataForAggregation-CYoB5Xsk.cjs +2 -0
  99. package/dist/transformDataForAggregation-CYoB5Xsk.cjs.map +1 -0
  100. package/dist/{transformDataForAggregation-DEU__LUl.js → transformDataForAggregation-j34UL73s.js} +14 -10
  101. package/dist/transformDataForAggregation-j34UL73s.js.map +1 -0
  102. package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs → transformDataForGraphFromFile-CuXxR8uA.cjs} +2 -2
  103. package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs.map → transformDataForGraphFromFile-CuXxR8uA.cjs.map} +1 -1
  104. package/dist/{transformDataForGraphFromFile-CSG24iF6.js → transformDataForGraphFromFile-DyP-83Nh.js} +2 -2
  105. package/dist/{transformDataForGraphFromFile-CSG24iF6.js.map → transformDataForGraphFromFile-DyP-83Nh.js.map} +1 -1
  106. package/package.json +4 -4
  107. package/dist/GraphEl-B16EYkko.cjs +0 -2
  108. package/dist/GraphEl-B16EYkko.cjs.map +0 -1
  109. package/dist/GraphEl-ebgfxefq.js.map +0 -1
  110. package/dist/ensureCompleteData-DNKEGRiP.js +0 -102
  111. package/dist/ensureCompleteData-DNKEGRiP.js.map +0 -1
  112. package/dist/ensureCompleteData-I6nYmT8E.cjs +0 -2
  113. package/dist/ensureCompleteData-I6nYmT8E.cjs.map +0 -1
  114. package/dist/sort-BIvMlUH1.js +0 -34
  115. package/dist/sort-BIvMlUH1.js.map +0 -1
  116. package/dist/sort-O96oMZLb.cjs +0 -2
  117. package/dist/sort-O96oMZLb.cjs.map +0 -1
  118. package/dist/transformDataForAggregation-DEU__LUl.js.map +0 -1
  119. package/dist/transformDataForAggregation-XNg0OGYE.cjs +0 -2
  120. package/dist/transformDataForAggregation-XNg0OGYE.cjs.map +0 -1
package/dist/BarGraph.js CHANGED
@@ -1,1005 +1,1082 @@
1
- import { c as xe, j as i, m as pe } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as de, useState as Wt, useEffect as we } from "react";
3
- import { g as Te, N as Ie } from "./getSliderMarks-HIDJ0_Cd.js";
4
- import { p as Se, f as ye } from "./parse-DlCRUFh_.js";
5
- import { o as ze } from "./index-BZQYSqar.js";
6
- import { s as oe } from "./index-CeVNqhMO.js";
7
- import { i as Ae } from "./index-Bwrro8-q.js";
8
- import { n as ue } from "./numberFormattingFunction-14YCbkN2.js";
9
- import { T as $e } from "./Tooltip-Dj5eVppQ.js";
10
- import { c as _t } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { Y as Be } from "./YAxesLabels-a57ZRv-0.js";
12
- import { A as Oe } from "./Axis-CRyfcLjc.js";
13
- import { A as ke } from "./AxisTitle-jeI7am8o.js";
14
- import { X as Pe } from "./XTicksAndGridLines-CObVFSm4.js";
15
- import { R as Fe, a as He } from "./ReferenceLine-2XCwHXQ4.js";
16
- import { Y as Xe } from "./YTicksAndGridLines-Blepl7XF.js";
17
- import { X as Ye } from "./XAxesLabels-Dy8E1SEo.js";
18
- import { D as Me } from "./DetailsModal-0Ry5nXiC.js";
19
- import { u as Ce } from "./use-in-view-Cxa7y1TH.js";
20
- import { a as Ve } from "./linear-BwnDd9KF.js";
21
- import { b as ge } from "./band-CyHaVft5.js";
22
- import { A as De } from "./index-BqfRwk1n.js";
23
- import { m as Zt } from "./proxy-BxkFHwUw.js";
24
- import { GraphHeader as Ee } from "./GraphHeader.js";
25
- import { GraphFooter as Ge } from "./GraphFooter.js";
26
- import { ColorLegendWithMouseOver as We } from "./ColorLegendWithMouseOver.js";
27
- import { Colors as ce } from "./Colors.js";
28
- import { E as Re } from "./EmptyState-BZo1BbAn.js";
29
- import { P as qe, e as Ue } from "./index-D491FEn1.js";
30
- import { c as ve, d as _e } from "./ensureCompleteData-DNKEGRiP.js";
31
- import { u as Le } from "./uniqBy-BHy4I8PK.js";
32
- import { a as Je, G as Ke } from "./GraphContainer-CRqzdKu2.js";
33
- import { s as Qe } from "./sort-BIvMlUH1.js";
34
- import { a as Ze } from "./init-BJFW6EwE.js";
35
- import { g as Ne } from "./getTextColorBasedOnBgColor-CDY808zi.js";
36
- function ti(e) {
37
- const t = xe.c(123), {
38
- data: m,
39
- leftMargin: D,
40
- rightMargin: Xt,
41
- topMargin: St,
42
- bottomMargin: gt,
43
- barColors: _,
44
- barPadding: ct,
45
- showTicks: M,
46
- truncateBy: j,
47
- width: y,
48
- height: I,
49
- suffix: zt,
50
- prefix: nt,
51
- showValues: jt,
52
- showLabels: S,
53
- tooltip: tt,
54
- onSeriesMouseOver: ut,
55
- refValues: dt,
56
- maxValue: Tt,
57
- minValue: w,
58
- onSeriesMouseClick: et,
59
- selectedColor: G,
60
- rtl: F,
61
- labelOrder: J,
62
- maxBarThickness: W,
63
- resetSelectionOnDoubleClick: xt,
64
- detailsOnClick: B,
65
- barAxisTitle: R,
66
- valueColor: H,
67
- noOfTicks: u,
1
+ import { c as ge, j as i, m as be } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as pe, useState as Zt, useEffect as ke } from "react";
3
+ import { g as Fe, N as Pe } from "./getSliderMarks-HIDJ0_Cd.js";
4
+ import { f as we, p as He } from "./parse-DlCRUFh_.js";
5
+ import { o as Te } from "./index-BZQYSqar.js";
6
+ import { s as ce } from "./index-CeVNqhMO.js";
7
+ import { i as Ce } from "./index-Bwrro8-q.js";
8
+ import { n as fe } from "./numberFormattingFunction-14YCbkN2.js";
9
+ import { T as Ve } from "./Tooltip-Dj5eVppQ.js";
10
+ import { c as ie } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
+ import { Y as We } from "./YAxesLabels-a57ZRv-0.js";
12
+ import { A as ze } from "./Axis-CRyfcLjc.js";
13
+ import { A as De } from "./AxisTitle-jeI7am8o.js";
14
+ import { X as Xe } from "./XTicksAndGridLines-CObVFSm4.js";
15
+ import { R as Ye, a as Ee } from "./ReferenceLine-2XCwHXQ4.js";
16
+ import { Y as Ge } from "./YTicksAndGridLines-Blepl7XF.js";
17
+ import { X as Re } from "./XAxesLabels-Dy8E1SEo.js";
18
+ import { D as Le } from "./DetailsModal-0Ry5nXiC.js";
19
+ import { u as Ie } from "./use-in-view-Cxa7y1TH.js";
20
+ import { a as je } from "./linear-BqltdMeF.js";
21
+ import { b as ve } from "./band-DHUZ2X7J.js";
22
+ import { A as Ne } from "./index-BqfRwk1n.js";
23
+ import { m as ee } from "./proxy-BxkFHwUw.js";
24
+ import { GraphHeader as qe } from "./GraphHeader.js";
25
+ import { GraphFooter as Ue } from "./GraphFooter.js";
26
+ import { ColorLegendWithMouseOver as Je } from "./ColorLegendWithMouseOver.js";
27
+ import { Colors as xe } from "./Colors.js";
28
+ import { E as Ke } from "./EmptyState-BZo1BbAn.js";
29
+ import { P as Qe, e as Ze } from "./index-D491FEn1.js";
30
+ import { d as Me, f as ei } from "./ensureCompleteData-DS7gCvVd.js";
31
+ import { a as _e, G as ti } from "./GraphContainer-CRqzdKu2.js";
32
+ import { u as ii } from "./uniqBy-BHy4I8PK.js";
33
+ import { g as Be } from "./getTextColorBasedOnBgColor-CDY808zi.js";
34
+ function si(e) {
35
+ const t = ge.c(130), {
36
+ data: a,
37
+ leftMargin: P,
38
+ rightMargin: qt,
39
+ topMargin: Ut,
40
+ bottomMargin: It,
41
+ barColors: Ot,
42
+ barPadding: Tt,
43
+ showTicks: B,
44
+ truncateBy: q,
45
+ width: A,
46
+ height: lt,
47
+ suffix: St,
48
+ prefix: tt,
49
+ showValues: Et,
50
+ showLabels: U,
51
+ tooltip: at,
52
+ onSeriesMouseOver: Mt,
53
+ refValues: kt,
54
+ maxValue: Xt,
55
+ minValue: M,
56
+ onSeriesMouseClick: J,
57
+ selectedColor: H,
58
+ rtl: D,
59
+ labelOrder: nt,
60
+ maxBarThickness: K,
61
+ resetSelectionOnDoubleClick: mt,
62
+ detailsOnClick: L,
63
+ barAxisTitle: Q,
64
+ valueColor: et,
65
+ noOfTicks: c,
68
66
  styles: s,
69
- classNames: o,
70
- animate: d,
71
- colorDomain: r,
72
- precision: h,
67
+ classNames: l,
68
+ animate: m,
69
+ colorDomain: d,
70
+ precision: g,
73
71
  customLayers: x,
74
- naLabel: A
75
- } = e, K = D === void 0 ? 100 : D, q = Xt === void 0 ? 40 : Xt, rt = St === void 0 ? 25 : St, Ft = gt === void 0 ? 10 : gt, Yt = de(null);
76
- let X;
77
- t[0] !== d.amount || t[1] !== d.once ? (X = {
78
- once: d.once,
79
- amount: d.amount
80
- }, t[0] = d.amount, t[1] = d.once, t[2] = X) : X = t[2];
81
- const yt = Ce(Yt, X), Bt = R ? rt + 25 : rt;
82
- let n;
83
- t[3] !== Ft || t[4] !== K || t[5] !== q || t[6] !== Bt ? (n = {
84
- top: Bt,
85
- bottom: Ft,
86
- left: K,
87
- right: q
88
- }, t[3] = Ft, t[4] = K, t[5] = q, t[6] = Bt, t[7] = n) : n = t[7];
89
- const c = n, [T, f] = Wt(void 0), [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), mt = y - c.left - c.right, C = I - c.top - c.bottom;
90
- let g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft, pt;
91
- if (t[8] !== d || t[9] !== R || t[10] !== _ || t[11] !== ct || t[12] !== o?.graphObjectValues || t[13] !== o?.xAxis?.gridLines || t[14] !== o?.xAxis?.labels || t[15] !== o?.xAxis?.title || t[16] !== o?.yAxis?.axis || t[17] !== o?.yAxis?.labels || t[18] !== r || t[19] !== x || t[20] !== m || t[21] !== B || t[22] !== C || t[23] !== mt || t[24] !== I || t[25] !== yt || t[26] !== J || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== W || t[31] !== Tt || t[32] !== w || t[33] !== Y || t[34] !== A || t[35] !== u || t[36] !== et || t[37] !== ut || t[38] !== h || t[39] !== nt || t[40] !== dt || t[41] !== xt || t[42] !== F || t[43] !== G || t[44] !== S || t[45] !== M || t[46] !== jt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== zt || t[54] !== rt || t[55] !== j || t[56] !== H || t[57] !== y) {
92
- let lt;
93
- t[72] !== J ? (lt = (v, k) => ({
94
- ...v,
95
- id: J ? `${v.label}` : `${k}`
96
- }), t[72] = J, t[73] = lt) : lt = t[73];
97
- const It = m.map(lt), Et = J || It.map(ri), O = Ve().domain([w, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, W ? Math.min(C, W * Et.length) : C]).paddingInner(ct), Nt = ge().domain(m[0].size.map(ni)).range([0, qt.bandwidth()]).paddingInner(0.1), Kt = O.ticks(u);
98
- Q = Zt.svg, Mt = Yt, st = `${y}px`, Ct = `${I}px`, E = `0 0 ${y} ${I}`, at = "ltr", Z = `translate(${c.left},${c.top})`, U = M ? /* @__PURE__ */ i.jsx(Pe, { values: Kt.filter(li), x: Kt.filter(oi).map((v) => O(v)), y1: 0 - rt, y2: C + c.bottom, styles: {
72
+ naLabel: k
73
+ } = e, rt = P === void 0 ? 100 : P, Z = qt === void 0 ? 40 : qt, pt = Ut === void 0 ? 25 : Ut, Jt = It === void 0 ? 10 : It, Gt = pe(null);
74
+ let Y;
75
+ t[0] !== m.amount || t[1] !== m.once ? (Y = {
76
+ once: m.once,
77
+ amount: m.amount
78
+ }, t[0] = m.amount, t[1] = m.once, t[2] = Y) : Y = t[2];
79
+ const gt = Ie(Gt, Y), Ht = Q ? pt + 25 : pt;
80
+ let r;
81
+ t[3] !== Jt || t[4] !== rt || t[5] !== Z || t[6] !== Ht ? (r = {
82
+ top: Ht,
83
+ bottom: Jt,
84
+ left: rt,
85
+ right: Z
86
+ }, t[3] = Jt, t[4] = rt, t[5] = Z, t[6] = Ht, t[7] = r) : r = t[7];
87
+ const n = r, [F, y] = Zt(void 0), [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), Ct = A - n.left - n.right, E = lt - n.top - n.bottom;
88
+ let w;
89
+ if (t[8] !== a || t[9] !== nt) {
90
+ const v = /* @__PURE__ */ new Set(), ft = a.map((f, Dt) => {
91
+ const Lt = nt ? `${f.label}` : `${Dt}`;
92
+ return v.add(Lt), {
93
+ ...f,
94
+ id: Lt
95
+ };
96
+ }), j = nt ? nt.filter((f) => !v.has(f)) : [];
97
+ let p;
98
+ t[11] !== a[0].size.length ? (p = (f) => ({
99
+ id: f,
100
+ label: f,
101
+ size: Array(a[0].size.length).fill(null)
102
+ }), t[11] = a[0].size.length, t[12] = p) : p = t[12], w = [...ft, ...j.map(p)], t[8] = a, t[9] = nt, t[10] = w;
103
+ } else
104
+ w = t[10];
105
+ const bt = w;
106
+ let Wt;
107
+ t[13] !== bt || t[14] !== nt ? (Wt = nt ?? bt.map(ui), t[13] = bt, t[14] = nt, t[15] = Wt) : Wt = t[15];
108
+ const jt = Wt;
109
+ let ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _, ut;
110
+ if (t[16] !== m || t[17] !== Q || t[18] !== Ot || t[19] !== jt || t[20] !== Tt || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.gridLines || t[23] !== l?.xAxis?.labels || t[24] !== l?.xAxis?.title || t[25] !== l?.yAxis?.axis || t[26] !== l?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== a[0].size || t[30] !== bt || t[31] !== L || t[32] !== E || t[33] !== Ct || t[34] !== lt || t[35] !== gt || t[36] !== n.bottom || t[37] !== n.left || t[38] !== n.top || t[39] !== K || t[40] !== Xt || t[41] !== M || t[42] !== it || t[43] !== k || t[44] !== c || t[45] !== J || t[46] !== Mt || t[47] !== g || t[48] !== tt || t[49] !== kt || t[50] !== mt || t[51] !== D || t[52] !== H || t[53] !== U || t[54] !== B || t[55] !== Et || t[56] !== s?.graphObjectValues || t[57] !== s?.xAxis?.gridLines || t[58] !== s?.xAxis?.labels || t[59] !== s?.xAxis?.title || t[60] !== s?.yAxis?.axis || t[61] !== s?.yAxis?.labels || t[62] !== St || t[63] !== pt || t[64] !== q || t[65] !== et || t[66] !== A) {
111
+ const v = je().domain([M, Xt]).range([0, Ct]).nice(), ft = ve().domain(jt).range([0, K ? Math.min(E, K * jt.length) : E]).paddingInner(Tt), j = ve().domain(a[0].size.map(di)).range([0, ft.bandwidth()]).paddingInner(0.1), p = v.ticks(c);
112
+ Ft = ee.svg, ht = Gt, ot = `${A}px`, dt = `${lt}px`, vt = `0 0 ${A} ${lt}`, _ = "ltr", zt = `translate(${n.left},${n.top})`, G = B ? /* @__PURE__ */ i.jsx(Xe, { values: p.filter(ci), x: p.filter(ri).map((V) => v(V)), y1: 0 - pt, y2: E + n.bottom, styles: {
99
113
  gridLines: s?.xAxis?.gridLines,
100
114
  labels: s?.xAxis?.labels
101
115
  }, classNames: {
102
- gridLines: o?.xAxis?.gridLines,
103
- labels: o?.xAxis?.labels
104
- }, suffix: zt, prefix: nt, labelType: "secondary", showGridLines: !0, precision: h }) : null;
105
- const Lt = mt / 2, Qt = 0 - c.top + 15, Ut = s?.xAxis?.title, Ht = o?.xAxis?.title;
106
- t[74] !== R || t[75] !== Lt || t[76] !== Qt || t[77] !== Ut || t[78] !== Ht ? (V = /* @__PURE__ */ i.jsx(ke, { x: Lt, y: Qt, style: Ut, className: Ht, text: R }), t[74] = R, t[75] = Lt, t[76] = Qt, t[77] = Ut, t[78] = Ht, t[79] = V) : V = t[79], t[80] !== x ? (ht = x.filter(ai).map(si), t[80] = x, t[81] = ht) : ht = t[81], g = De, P = It.map((v) => _t(qt(v.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
116
+ gridLines: l?.xAxis?.gridLines,
117
+ labels: l?.xAxis?.labels
118
+ }, suffix: St, prefix: tt, labelType: "secondary", showGridLines: !0, precision: g }) : null;
119
+ const f = Ct / 2, Dt = 0 - n.top + 15, Lt = s?.xAxis?.title, Kt = l?.xAxis?.title;
120
+ t[81] !== Q || t[82] !== f || t[83] !== Dt || t[84] !== Lt || t[85] !== Kt ? (I = /* @__PURE__ */ i.jsx(De, { x: f, y: Dt, style: Lt, className: Kt, text: Q }), t[81] = Q, t[82] = f, t[83] = Dt, t[84] = Lt, t[85] = Kt, t[86] = I) : I = t[86], t[87] !== x ? (z = x.filter(ni).map(oi), t[87] = x, t[88] = z) : z = t[88], ct = Ne, ut = bt.map((V) => ie(ft(V.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
107
121
  initial: {
108
122
  x: 0,
109
- y: qt(`${v.id}`)
123
+ y: ft(`${V.id}`)
110
124
  },
111
125
  whileInView: {
112
126
  x: 0,
113
- y: qt(`${v.id}`),
127
+ y: ft(`${V.id}`),
114
128
  transition: {
115
- duration: d.duration
129
+ duration: m.duration
116
130
  }
117
131
  }
118
- }, initial: "initial", animate: yt ? "whileInView" : "initial", exit: {
132
+ }, initial: "initial", animate: gt ? "whileInView" : "initial", exit: {
119
133
  opacity: 0,
120
134
  transition: {
121
- duration: d.duration
135
+ duration: m.duration
122
136
  }
123
137
  }, children: [
124
- v.size.map((k, a) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: G ? _[a] === G ? 1 : 0.3 : 0.85, onMouseEnter: (p) => {
125
- f({
126
- ...v,
127
- sizeIndex: a
128
- }), it(p.clientY), Dt(p.clientX), ut?.({
129
- ...v,
130
- sizeIndex: a
138
+ V.size.map((R, o) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: H ? Ot[o] === H ? 1 : 0.3 : 0.85, onMouseEnter: (h) => {
139
+ y({
140
+ ...V,
141
+ sizeIndex: o
142
+ }), xt(h.clientY), Yt(h.clientX), Mt?.({
143
+ ...V,
144
+ sizeIndex: o
131
145
  });
132
- }, onMouseMove: (p) => {
133
- f({
134
- ...v,
135
- sizeIndex: a
136
- }), it(p.clientY), Dt(p.clientX);
146
+ }, onMouseMove: (h) => {
147
+ y({
148
+ ...V,
149
+ sizeIndex: o
150
+ }), xt(h.clientY), Yt(h.clientX);
137
151
  }, onMouseLeave: () => {
138
- f(void 0), Dt(void 0), it(void 0), ut?.(void 0);
152
+ y(void 0), Yt(void 0), xt(void 0), Mt?.(void 0);
139
153
  }, onClick: () => {
140
- (et || B) && (Ae(Y, {
141
- ...v,
142
- sizeIndex: a
143
- }) && xt ? (N(void 0), et?.(void 0)) : (N({
144
- ...v,
145
- sizeIndex: a
146
- }), et && et({
147
- ...v,
148
- sizeIndex: a
154
+ (J || L) && (Ce(it, {
155
+ ...V,
156
+ sizeIndex: o
157
+ }) && mt ? (W(void 0), J?.(void 0)) : (W({
158
+ ...V,
159
+ sizeIndex: o
160
+ }), J && J({
161
+ ...V,
162
+ sizeIndex: o
149
163
  })));
150
164
  }, children: [
151
- _t(k) ? null : /* @__PURE__ */ i.jsx(Zt.rect, { y: Nt(`${a}`), variants: {
165
+ ie(R) ? null : /* @__PURE__ */ i.jsx(ee.rect, { y: j(`${o}`), variants: {
152
166
  initial: {
153
167
  width: 0,
154
- x: O(0),
155
- fill: _[a]
168
+ x: v(0),
169
+ fill: Ot[o]
156
170
  },
157
171
  whileInView: {
158
- width: _t(k) ? 0 : k >= 0 ? O(k) - O(0) : O(0) - O(k),
159
- x: k >= 0 ? O(0) : O(k),
160
- fill: _[a],
172
+ width: ie(R) ? 0 : R >= 0 ? v(R) - v(0) : v(0) - v(R),
173
+ x: R >= 0 ? v(0) : v(R),
174
+ fill: Ot[o],
161
175
  transition: {
162
- duration: d.duration
176
+ duration: m.duration
163
177
  }
164
178
  }
165
179
  }, exit: {
166
180
  width: 0,
167
- x: O(0),
181
+ x: v(0),
168
182
  transition: {
169
- duration: d.duration
183
+ duration: m.duration
170
184
  }
171
- }, height: Nt.bandwidth(), initial: "initial", animate: yt ? "whileInView" : "initial" }),
172
- jt ? /* @__PURE__ */ i.jsx(Zt.text, { y: Nt(`${a}`) + Nt.bandwidth() / 2, style: {
173
- textAnchor: k && k < 0 ? "end" : "start",
185
+ }, height: j.bandwidth(), initial: "initial", animate: gt ? "whileInView" : "initial" }),
186
+ Et ? /* @__PURE__ */ i.jsx(ee.text, { y: j(`${o}`) + j.bandwidth() / 2, style: {
187
+ textAnchor: R && R < 0 ? "end" : "start",
174
188
  ...s?.graphObjectValues || {}
175
- }, className: pe("graph-value text-sm", o?.graphObjectValues), dx: k && k < 0 ? -5 : 5, dy: "0.33em", variants: {
189
+ }, className: be("graph-value text-sm", l?.graphObjectValues), dx: R && R < 0 ? -5 : 5, dy: "0.33em", variants: {
176
190
  initial: {
177
- x: O(0),
191
+ x: v(0),
178
192
  opacity: 0,
179
- fill: H || _[a]
193
+ fill: et || Ot[o]
180
194
  },
181
195
  whileInView: {
182
- x: O(k || 0),
196
+ x: v(R || 0),
183
197
  opacity: 1,
184
- fill: H || _[a],
198
+ fill: et || Ot[o],
185
199
  transition: {
186
- duration: d.duration
200
+ duration: m.duration
187
201
  }
188
202
  }
189
- }, initial: "initial", animate: yt ? "whileInView" : "initial", exit: {
203
+ }, initial: "initial", animate: gt ? "whileInView" : "initial", exit: {
190
204
  opacity: 0,
191
205
  transition: {
192
- duration: d.duration
206
+ duration: m.duration
193
207
  }
194
- }, children: ue(k, A, h, nt, zt) }) : null
195
- ] }, `${v.label}-${r[a] || a}`)),
196
- S ? /* @__PURE__ */ i.jsx(Be, { value: `${v.label}`.length < j ? `${v.label}` : `${`${v.label}`.substring(0, j)}...`, y: 0, x: 0 - c.left, width: O(w < 0 ? 0 : w) + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: o?.yAxis?.labels, animate: d, isInView: yt }) : null
197
- ] }, v.label));
198
- const kt = o?.yAxis?.axis;
199
- let Rt;
200
- t[82] !== kt ? (Rt = {
201
- axis: kt
202
- }, t[82] = kt, t[83] = Rt) : Rt = t[83];
203
- const Jt = s?.yAxis?.axis;
204
- let z;
205
- t[84] !== Jt ? (z = {
206
- axis: Jt
207
- }, t[84] = Jt, t[85] = z) : z = t[85], ft = /* @__PURE__ */ i.jsx(Oe, { x1: O(w < 0 ? 0 : w), x2: O(w < 0 ? 0 : w), y1: -2.5, y2: C + c.bottom, classNames: Rt, styles: z }), pt = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((v, k) => /* @__PURE__ */ i.jsx(Fe, { text: v.text, color: v.color, x: O(v.value), y1: 0 - c.top, y2: C + c.bottom, textSide: O(v.value) > mt * 0.75 || F ? "left" : "right", classNames: v.classNames, styles: v.styles, animate: d, isInView: yt }, k)) }) : null, t[8] = d, t[9] = R, t[10] = _, t[11] = ct, t[12] = o?.graphObjectValues, t[13] = o?.xAxis?.gridLines, t[14] = o?.xAxis?.labels, t[15] = o?.xAxis?.title, t[16] = o?.yAxis?.axis, t[17] = o?.yAxis?.labels, t[18] = r, t[19] = x, t[20] = m, t[21] = B, t[22] = C, t[23] = mt, t[24] = I, t[25] = yt, t[26] = J, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = W, t[31] = Tt, t[32] = w, t[33] = Y, t[34] = A, t[35] = u, t[36] = et, t[37] = ut, t[38] = h, t[39] = nt, t[40] = dt, t[41] = xt, t[42] = F, t[43] = G, t[44] = S, t[45] = M, t[46] = jt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = zt, t[54] = rt, t[55] = j, t[56] = H, t[57] = y, t[58] = g, t[59] = Q, t[60] = Z, t[61] = U, t[62] = V, t[63] = ht, t[64] = Mt, t[65] = st, t[66] = Ct, t[67] = E, t[68] = at, t[69] = P, t[70] = ft, t[71] = pt;
208
+ }, children: fe(R, k, g, tt, St) }) : null
209
+ ] }, `${V.label}-${d[o] || o}`)),
210
+ U ? /* @__PURE__ */ i.jsx(We, { value: `${V.label}`.length < q ? `${V.label}` : `${`${V.label}`.substring(0, q)}...`, y: 0, x: 0 - n.left, width: v(M < 0 ? 0 : M) + n.left, height: ft.bandwidth(), style: s?.yAxis?.labels, className: l?.yAxis?.labels, animate: m, isInView: gt }) : null
211
+ ] }, V.label));
212
+ const N = l?.yAxis?.axis;
213
+ let T;
214
+ t[89] !== N ? (T = {
215
+ axis: N
216
+ }, t[89] = N, t[90] = T) : T = t[90];
217
+ const Rt = s?.yAxis?.axis;
218
+ let X;
219
+ t[91] !== Rt ? (X = {
220
+ axis: Rt
221
+ }, t[91] = Rt, t[92] = X) : X = t[92], Nt = /* @__PURE__ */ i.jsx(ze, { x1: v(M < 0 ? 0 : M), x2: v(M < 0 ? 0 : M), y1: -2.5, y2: E + n.bottom, classNames: T, styles: X }), Vt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((V, R) => /* @__PURE__ */ i.jsx(Ye, { text: V.text, color: V.color, x: v(V.value), y1: 0 - n.top, y2: E + n.bottom, textSide: v(V.value) > Ct * 0.75 || D ? "left" : "right", classNames: V.classNames, styles: V.styles, animate: m, isInView: gt }, R)) }) : null, t[16] = m, t[17] = Q, t[18] = Ot, t[19] = jt, t[20] = Tt, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.gridLines, t[23] = l?.xAxis?.labels, t[24] = l?.xAxis?.title, t[25] = l?.yAxis?.axis, t[26] = l?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = a[0].size, t[30] = bt, t[31] = L, t[32] = E, t[33] = Ct, t[34] = lt, t[35] = gt, t[36] = n.bottom, t[37] = n.left, t[38] = n.top, t[39] = K, t[40] = Xt, t[41] = M, t[42] = it, t[43] = k, t[44] = c, t[45] = J, t[46] = Mt, t[47] = g, t[48] = tt, t[49] = kt, t[50] = mt, t[51] = D, t[52] = H, t[53] = U, t[54] = B, t[55] = Et, t[56] = s?.graphObjectValues, t[57] = s?.xAxis?.gridLines, t[58] = s?.xAxis?.labels, t[59] = s?.xAxis?.title, t[60] = s?.yAxis?.axis, t[61] = s?.yAxis?.labels, t[62] = St, t[63] = pt, t[64] = q, t[65] = et, t[66] = A, t[67] = ct, t[68] = Ft, t[69] = Nt, t[70] = Vt, t[71] = zt, t[72] = G, t[73] = I, t[74] = z, t[75] = ht, t[76] = ot, t[77] = dt, t[78] = vt, t[79] = _, t[80] = ut;
208
222
  } else
209
- g = t[58], Q = t[59], Z = t[60], U = t[61], V = t[62], ht = t[63], Mt = t[64], st = t[65], Ct = t[66], E = t[67], at = t[68], P = t[69], ft = t[70], pt = t[71];
210
- let vt;
211
- t[86] !== g || t[87] !== P || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
212
- P,
213
- ft,
214
- pt
215
- ] }), t[86] = g, t[87] = P, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
223
+ ct = t[67], Ft = t[68], Nt = t[69], Vt = t[70], zt = t[71], G = t[72], I = t[73], z = t[74], ht = t[75], ot = t[76], dt = t[77], vt = t[78], _ = t[79], ut = t[80];
216
224
  let wt;
217
- t[91] !== x ? (wt = x.filter(ii).map(ei), t[91] = x, t[92] = wt) : wt = t[92];
218
- let ot;
219
- t[93] !== Z || t[94] !== U || t[95] !== V || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (ot = /* @__PURE__ */ i.jsxs("g", { transform: Z, children: [
220
- U,
221
- V,
222
- ht,
223
- vt,
224
- wt
225
- ] }), t[93] = Z, t[94] = U, t[95] = V, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = ot) : ot = t[99];
225
+ t[93] !== ct || t[94] !== Nt || t[95] !== Vt || t[96] !== ut ? (wt = /* @__PURE__ */ i.jsxs(ct, { children: [
226
+ ut,
227
+ Nt,
228
+ Vt
229
+ ] }), t[93] = ct, t[94] = Nt, t[95] = Vt, t[96] = ut, t[97] = wt) : wt = t[97];
230
+ let st;
231
+ t[98] !== x ? (st = x.filter(ai).map(li), t[98] = x, t[99] = st) : st = t[99];
226
232
  let At;
227
- t[100] !== Q || t[101] !== Mt || t[102] !== st || t[103] !== Ct || t[104] !== E || t[105] !== at || t[106] !== ot ? (At = /* @__PURE__ */ i.jsx(Q, { ref: Mt, width: st, height: Ct, viewBox: E, direction: at, children: ot }), t[100] = Q, t[101] = Mt, t[102] = st, t[103] = Ct, t[104] = E, t[105] = at, t[106] = ot, t[107] = At) : At = t[107];
233
+ t[100] !== zt || t[101] !== G || t[102] !== I || t[103] !== z || t[104] !== wt || t[105] !== st ? (At = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
234
+ G,
235
+ I,
236
+ z,
237
+ wt,
238
+ st
239
+ ] }), t[100] = zt, t[101] = G, t[102] = I, t[103] = z, t[104] = wt, t[105] = st, t[106] = At) : At = t[106];
228
240
  let $t;
229
- t[108] !== o?.tooltip || t[109] !== $ || t[110] !== bt || t[111] !== T || t[112] !== s?.tooltip || t[113] !== tt ? ($t = T && tt && $ && bt ? /* @__PURE__ */ i.jsx($e, { data: T, body: tt, xPos: $, yPos: bt, backgroundStyle: s?.tooltip, className: o?.tooltip }) : null, t[108] = o?.tooltip, t[109] = $, t[110] = bt, t[111] = T, t[112] = s?.tooltip, t[113] = tt, t[114] = $t) : $t = t[114];
230
- let Ot;
231
- t[115] !== o?.modal || t[116] !== B || t[117] !== Y ? (Ot = B && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: B, data: Y, setData: N, className: o?.modal }) : null, t[115] = o?.modal, t[116] = B, t[117] = Y, t[118] = Ot) : Ot = t[118];
241
+ t[107] !== Ft || t[108] !== ht || t[109] !== ot || t[110] !== dt || t[111] !== vt || t[112] !== _ || t[113] !== At ? ($t = /* @__PURE__ */ i.jsx(Ft, { ref: ht, width: ot, height: dt, viewBox: vt, direction: _, children: At }), t[107] = Ft, t[108] = ht, t[109] = ot, t[110] = dt, t[111] = vt, t[112] = _, t[113] = At, t[114] = $t) : $t = t[114];
232
242
  let b;
233
- return t[119] !== At || t[120] !== $t || t[121] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
234
- At,
243
+ t[115] !== l?.tooltip || t[116] !== C || t[117] !== yt || t[118] !== F || t[119] !== s?.tooltip || t[120] !== at ? (b = F && at && C && yt ? /* @__PURE__ */ i.jsx(Ve, { data: F, body: at, xPos: C, yPos: yt, backgroundStyle: s?.tooltip, className: l?.tooltip }) : null, t[115] = l?.tooltip, t[116] = C, t[117] = yt, t[118] = F, t[119] = s?.tooltip, t[120] = at, t[121] = b) : b = t[121];
244
+ let $;
245
+ t[122] !== l?.modal || t[123] !== L || t[124] !== it ? ($ = L && it !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: L, data: it, setData: W, className: l?.modal }) : null, t[122] = l?.modal, t[123] = L, t[124] = it, t[125] = $) : $ = t[125];
246
+ let O;
247
+ return t[126] !== $t || t[127] !== b || t[128] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
235
248
  $t,
236
- Ot
237
- ] }), t[119] = At, t[120] = $t, t[121] = Ot, t[122] = b) : b = t[122], b;
249
+ b,
250
+ $
251
+ ] }), t[126] = $t, t[127] = b, t[128] = $, t[129] = O) : O = t[129], O;
238
252
  }
239
- function ei(e) {
253
+ function li(e) {
240
254
  return e.layer;
241
255
  }
242
- function ii(e) {
256
+ function ai(e) {
243
257
  return e.position === "after";
244
258
  }
245
- function si(e) {
259
+ function oi(e) {
246
260
  return e.layer;
247
261
  }
248
- function ai(e) {
262
+ function ni(e) {
249
263
  return e.position === "before";
250
264
  }
251
- function oi(e) {
265
+ function ri(e) {
252
266
  return e !== 0;
253
267
  }
254
- function li(e) {
268
+ function ci(e) {
255
269
  return e !== 0;
256
270
  }
257
- function ni(e, t) {
271
+ function di(e, t) {
258
272
  return `${t}`;
259
273
  }
260
- function ri(e) {
274
+ function ui(e) {
261
275
  return `${e.id}`;
262
276
  }
263
- function ci(e) {
264
- const t = xe.c(131), {
265
- data: m,
266
- leftMargin: D,
267
- rightMargin: Xt,
268
- topMargin: St,
269
- bottomMargin: gt,
270
- width: _,
271
- height: ct,
272
- barColors: M,
273
- suffix: j,
274
- prefix: y,
275
- barPadding: I,
276
- showLabels: zt,
277
- showValues: nt,
278
- showTicks: jt,
279
- truncateBy: S,
280
- tooltip: tt,
281
- onSeriesMouseOver: ut,
282
- refValues: dt,
283
- maxValue: Tt,
284
- minValue: w,
285
- onSeriesMouseClick: et,
286
- selectedColor: G,
287
- labelOrder: F,
288
- maxBarThickness: J,
289
- resetSelectionOnDoubleClick: W,
290
- detailsOnClick: xt,
291
- barAxisTitle: B,
292
- valueColor: R,
293
- noOfTicks: H,
294
- styles: u,
277
+ function mi(e) {
278
+ const t = ge.c(138), {
279
+ data: a,
280
+ leftMargin: P,
281
+ rightMargin: qt,
282
+ topMargin: Ut,
283
+ bottomMargin: It,
284
+ width: Ot,
285
+ height: Tt,
286
+ barColors: B,
287
+ suffix: q,
288
+ prefix: A,
289
+ barPadding: lt,
290
+ showLabels: St,
291
+ showValues: tt,
292
+ showTicks: Et,
293
+ truncateBy: U,
294
+ tooltip: at,
295
+ onSeriesMouseOver: Mt,
296
+ refValues: kt,
297
+ maxValue: Xt,
298
+ minValue: M,
299
+ onSeriesMouseClick: J,
300
+ selectedColor: H,
301
+ labelOrder: D,
302
+ maxBarThickness: nt,
303
+ resetSelectionOnDoubleClick: K,
304
+ detailsOnClick: mt,
305
+ barAxisTitle: L,
306
+ valueColor: Q,
307
+ noOfTicks: et,
308
+ styles: c,
295
309
  classNames: s,
296
- animate: o,
297
- colorDomain: d,
298
- precision: r,
299
- customLayers: h,
310
+ animate: l,
311
+ colorDomain: m,
312
+ precision: d,
313
+ customLayers: g,
300
314
  naLabel: x
301
- } = e, A = D === void 0 ? 20 : D, K = Xt === void 0 ? 20 : Xt, q = St === void 0 ? 20 : St, rt = gt === void 0 ? 25 : gt, Ft = de(null);
302
- let Yt;
303
- t[0] !== o.amount || t[1] !== o.once ? (Yt = {
304
- once: o.once,
305
- amount: o.amount
306
- }, t[0] = o.amount, t[1] = o.once, t[2] = Yt) : Yt = t[2];
307
- const X = Ce(Ft, Yt), yt = B ? A + 30 : A;
308
- let Bt;
309
- t[3] !== rt || t[4] !== K || t[5] !== yt || t[6] !== q ? (Bt = {
310
- top: q,
311
- bottom: rt,
312
- left: yt,
313
- right: K
314
- }, t[3] = rt, t[4] = K, t[5] = yt, t[6] = q, t[7] = Bt) : Bt = t[7];
315
- const n = Bt, [c, T] = Wt(void 0), [f, Y] = Wt(void 0), [N, $] = Wt(void 0), [Dt, bt] = Wt(void 0), it = _ - n.left - n.right, mt = ct - n.top - n.bottom;
316
- let C, g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft;
317
- if (t[8] !== o || t[9] !== B || t[10] !== M || t[11] !== I || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== d || t[19] !== h || t[20] !== m || t[21] !== xt || t[22] !== mt || t[23] !== it || t[24] !== ct || t[25] !== X || t[26] !== F || t[27] !== A || t[28] !== n.bottom || t[29] !== n.left || t[30] !== n.right || t[31] !== n.top || t[32] !== J || t[33] !== Tt || t[34] !== w || t[35] !== f || t[36] !== x || t[37] !== H || t[38] !== et || t[39] !== ut || t[40] !== r || t[41] !== y || t[42] !== dt || t[43] !== W || t[44] !== G || t[45] !== zt || t[46] !== jt || t[47] !== nt || t[48] !== u?.graphObjectValues || t[49] !== u?.xAxis?.axis || t[50] !== u?.xAxis?.labels || t[51] !== u?.yAxis?.gridLines || t[52] !== u?.yAxis?.labels || t[53] !== u?.yAxis?.title || t[54] !== j || t[55] !== S || t[56] !== R || t[57] !== _) {
318
- const b = Ve().domain([w, Tt]).range([mt, 0]).nice();
319
- let lt;
320
- t[72] !== F ? (lt = (L, Vt) => ({
321
- ...L,
322
- id: F ? `${L.label}` : `${Vt}`
323
- }), t[72] = F, t[73] = lt) : lt = t[73];
324
- const It = m.map(lt), Et = F || It.map(gi), O = ge().domain(Et).range([0, J ? Math.min(it, J * Et.length) : it]).paddingInner(I), qt = ge().domain(m[0].size.map(pi)).range([0, O.bandwidth()]).paddingInner(0.1), Nt = b.ticks(H);
325
- g = Zt.svg, ht = `${_}px`, Mt = `${ct}px`, st = `0 0 ${_} ${ct}`, Ct = "ltr", E = Ft, ft = `translate(${n.left},${n.top})`;
326
- const Kt = b(w < 0 ? 0 : w), Lt = b(w < 0 ? 0 : w), Qt = w < 0 ? 0 : w;
327
- let Ut;
328
- t[74] !== x || t[75] !== r || t[76] !== y || t[77] !== j || t[78] !== Qt ? (Ut = ue(Qt, x, r, y, j), t[74] = x, t[75] = r, t[76] = y, t[77] = j, t[78] = Qt, t[79] = Ut) : Ut = t[79];
329
- const Ht = s?.xAxis?.axis, kt = s?.yAxis?.labels;
330
- let Rt;
331
- t[80] !== Ht || t[81] !== kt ? (Rt = {
332
- axis: Ht,
333
- label: kt
334
- }, t[80] = Ht, t[81] = kt, t[82] = Rt) : Rt = t[82];
335
- const Jt = u?.xAxis?.axis, z = u?.yAxis?.labels;
336
- let v;
337
- t[83] !== Jt || t[84] !== z ? (v = {
338
- axis: Jt,
339
- label: z
340
- }, t[83] = Jt, t[84] = z, t[85] = v) : v = t[85], Q = /* @__PURE__ */ i.jsx(Oe, { y1: Kt, y2: Lt, x1: 0 - A, x2: it + n.right, label: Ut, labelPos: {
341
- x: 0 - A,
315
+ } = e, k = P === void 0 ? 20 : P, rt = qt === void 0 ? 20 : qt, Z = Ut === void 0 ? 20 : Ut, pt = It === void 0 ? 25 : It, Jt = pe(null);
316
+ let Gt;
317
+ t[0] !== l.amount || t[1] !== l.once ? (Gt = {
318
+ once: l.once,
319
+ amount: l.amount
320
+ }, t[0] = l.amount, t[1] = l.once, t[2] = Gt) : Gt = t[2];
321
+ const Y = Ie(Jt, Gt), gt = L ? k + 30 : k;
322
+ let Ht;
323
+ t[3] !== pt || t[4] !== rt || t[5] !== gt || t[6] !== Z ? (Ht = {
324
+ top: Z,
325
+ bottom: pt,
326
+ left: gt,
327
+ right: rt
328
+ }, t[3] = pt, t[4] = rt, t[5] = gt, t[6] = Z, t[7] = Ht) : Ht = t[7];
329
+ const r = Ht, [n, F] = Zt(void 0), [y, it] = Zt(void 0), [W, C] = Zt(void 0), [Yt, yt] = Zt(void 0), xt = Ot - r.left - r.right, Ct = Tt - r.top - r.bottom;
330
+ let E;
331
+ if (t[8] !== a || t[9] !== D) {
332
+ const O = /* @__PURE__ */ new Set(), v = a.map((p, f) => {
333
+ const Dt = D ? `${p.label}` : `${f}`;
334
+ return O.add(Dt), {
335
+ ...p,
336
+ id: Dt
337
+ };
338
+ }), ft = D ? D.filter((p) => !O.has(p)) : [];
339
+ let j;
340
+ t[11] !== a[0].size.length ? (j = (p) => ({
341
+ id: p,
342
+ label: p,
343
+ size: Array(a[0].size.length).fill(null)
344
+ }), t[11] = a[0].size.length, t[12] = j) : j = t[12], E = [...v, ...ft.map(j)], t[8] = a, t[9] = D, t[10] = E;
345
+ } else
346
+ E = t[10];
347
+ const w = E;
348
+ let bt;
349
+ t[13] !== w || t[14] !== D ? (bt = D ?? w.map(vi), t[13] = w, t[14] = D, t[15] = bt) : bt = t[15];
350
+ const Wt = bt;
351
+ let jt, ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _;
352
+ if (t[16] !== l || t[17] !== L || t[18] !== B || t[19] !== Wt || t[20] !== lt || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== m || t[28] !== g || t[29] !== a[0].size || t[30] !== w || t[31] !== mt || t[32] !== Ct || t[33] !== xt || t[34] !== Tt || t[35] !== Y || t[36] !== k || t[37] !== r.bottom || t[38] !== r.left || t[39] !== r.right || t[40] !== r.top || t[41] !== nt || t[42] !== Xt || t[43] !== M || t[44] !== y || t[45] !== x || t[46] !== et || t[47] !== J || t[48] !== Mt || t[49] !== d || t[50] !== A || t[51] !== kt || t[52] !== K || t[53] !== H || t[54] !== St || t[55] !== Et || t[56] !== tt || t[57] !== c?.graphObjectValues || t[58] !== c?.xAxis?.axis || t[59] !== c?.xAxis?.labels || t[60] !== c?.yAxis?.gridLines || t[61] !== c?.yAxis?.labels || t[62] !== c?.yAxis?.title || t[63] !== q || t[64] !== U || t[65] !== Q || t[66] !== Ot) {
353
+ const O = je().domain([M, Xt]).range([Ct, 0]).nice(), v = ve().domain(Wt).range([0, nt ? Math.min(xt, nt * Wt.length) : xt]).paddingInner(lt), ft = ve().domain(a[0].size.map(bi)).range([0, v.bandwidth()]).paddingInner(0.1), j = O.ticks(et);
354
+ ct = ee.svg, z = `${Ot}px`, ht = `${Tt}px`, ot = `0 0 ${Ot} ${Tt}`, dt = "ltr", vt = Jt, Nt = `translate(${r.left},${r.top})`;
355
+ const p = O(M < 0 ? 0 : M), f = O(M < 0 ? 0 : M), Dt = M < 0 ? 0 : M;
356
+ let Lt;
357
+ t[81] !== x || t[82] !== d || t[83] !== A || t[84] !== q || t[85] !== Dt ? (Lt = fe(Dt, x, d, A, q), t[81] = x, t[82] = d, t[83] = A, t[84] = q, t[85] = Dt, t[86] = Lt) : Lt = t[86];
358
+ const Kt = s?.xAxis?.axis, N = s?.yAxis?.labels;
359
+ let T;
360
+ t[87] !== Kt || t[88] !== N ? (T = {
361
+ axis: Kt,
362
+ label: N
363
+ }, t[87] = Kt, t[88] = N, t[89] = T) : T = t[89];
364
+ const Rt = c?.xAxis?.axis, X = c?.yAxis?.labels;
365
+ let V;
366
+ t[90] !== Rt || t[91] !== X ? (V = {
367
+ axis: Rt,
368
+ label: X
369
+ }, t[90] = Rt, t[91] = X, t[92] = V) : V = t[92], Vt = /* @__PURE__ */ i.jsx(ze, { y1: p, y2: f, x1: 0 - k, x2: xt + r.right, label: Lt, labelPos: {
370
+ x: 0 - k,
342
371
  dx: 0,
343
- dy: Tt < 0 ? "1em" : -5,
344
- y: b(w < 0 ? 0 : w)
345
- }, classNames: Rt, styles: v }), Z = jt ? /* @__PURE__ */ i.jsx(Xe, { values: Nt.filter(fi), y: Nt.filter(hi).map((L) => b(L)), x1: 0 - A, x2: it + n.right, styles: {
346
- gridLines: u?.yAxis?.gridLines,
347
- labels: u?.yAxis?.labels
372
+ dy: Xt < 0 ? "1em" : -5,
373
+ y: O(M < 0 ? 0 : M)
374
+ }, classNames: T, styles: V }), zt = Et ? /* @__PURE__ */ i.jsx(Ge, { values: j.filter(yi), y: j.filter(gi).map((S) => O(S)), x1: 0 - k, x2: xt + r.right, styles: {
375
+ gridLines: c?.yAxis?.gridLines,
376
+ labels: c?.yAxis?.labels
348
377
  }, classNames: {
349
378
  gridLines: s?.yAxis?.gridLines,
350
379
  labels: s?.yAxis?.labels
351
- }, suffix: j, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: r }) : null;
352
- const k = 0 - A - 15, a = mt / 2, p = u?.yAxis?.title, ee = s?.yAxis?.title;
353
- t[86] !== B || t[87] !== k || t[88] !== a || t[89] !== p || t[90] !== ee ? (U = /* @__PURE__ */ i.jsx(ke, { x: k, y: a, style: p, className: ee, text: B, rotate90: !0 }), t[86] = B, t[87] = k, t[88] = a, t[89] = p, t[90] = ee, t[91] = U) : U = t[91], t[92] !== h ? (V = h.filter(mi).map(xi), t[92] = h, t[93] = V) : V = t[93], C = De, at = It.map((L) => _t(O(L.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
380
+ }, suffix: q, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
381
+ const R = 0 - k - 15, o = Ct / 2, h = c?.yAxis?.title, _t = s?.yAxis?.title;
382
+ t[93] !== L || t[94] !== R || t[95] !== o || t[96] !== h || t[97] !== _t ? (G = /* @__PURE__ */ i.jsx(De, { x: R, y: o, style: h, className: _t, text: L, rotate90: !0 }), t[93] = L, t[94] = R, t[95] = o, t[96] = h, t[97] = _t, t[98] = G) : G = t[98], t[99] !== g ? (I = g.filter(pi).map(fi), t[99] = g, t[100] = I) : I = t[100], jt = Ne, _ = w.map((S) => ie(v(S.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
354
383
  initial: {
355
- x: O(`${L.id}`),
384
+ x: v(`${S.id}`),
356
385
  y: 0
357
386
  },
358
387
  whileInView: {
359
- x: O(`${L.id}`),
388
+ x: v(`${S.id}`),
360
389
  y: 0,
361
390
  transition: {
362
- duration: o.duration
391
+ duration: l.duration
363
392
  }
364
393
  }
365
- }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
394
+ }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
366
395
  opacity: 0,
367
396
  transition: {
368
- duration: o.duration
397
+ duration: l.duration
369
398
  }
370
399
  }, children: [
371
- L.size.map((Vt, l) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: G ? M[l] === G ? 1 : 0.3 : 0.85, onMouseEnter: (ie) => {
372
- T({
373
- ...L,
374
- sizeIndex: l
375
- }), bt(ie.clientY), $(ie.clientX), ut?.({
376
- ...L,
377
- sizeIndex: l
400
+ S.size.map((Bt, u) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: H ? B[u] === H ? 1 : 0.3 : 0.85, onMouseEnter: (se) => {
401
+ F({
402
+ ...S,
403
+ sizeIndex: u
404
+ }), yt(se.clientY), C(se.clientX), Mt?.({
405
+ ...S,
406
+ sizeIndex: u
378
407
  });
379
- }, onMouseMove: (ie) => {
380
- T({
381
- ...L,
382
- sizeIndex: l
383
- }), bt(ie.clientY), $(ie.clientX);
408
+ }, onMouseMove: (se) => {
409
+ F({
410
+ ...S,
411
+ sizeIndex: u
412
+ }), yt(se.clientY), C(se.clientX);
384
413
  }, onMouseLeave: () => {
385
- T(void 0), $(void 0), bt(void 0), ut?.(void 0);
414
+ F(void 0), C(void 0), yt(void 0), Mt?.(void 0);
386
415
  }, onClick: () => {
387
- (et || xt) && (Ae(f, {
388
- ...L,
389
- sizeIndex: l
390
- }) && W ? (Y(void 0), et?.(void 0)) : (Y({
391
- ...L,
392
- sizeIndex: l
393
- }), et && et({
394
- ...L,
395
- sizeIndex: l
416
+ (J || mt) && (Ce(y, {
417
+ ...S,
418
+ sizeIndex: u
419
+ }) && K ? (it(void 0), J?.(void 0)) : (it({
420
+ ...S,
421
+ sizeIndex: u
422
+ }), J && J({
423
+ ...S,
424
+ sizeIndex: u
396
425
  })));
397
426
  }, children: [
398
- /* @__PURE__ */ i.jsx(Zt.rect, { x: qt(`${l}`), width: qt.bandwidth(), variants: {
427
+ /* @__PURE__ */ i.jsx(ee.rect, { x: ft(`${u}`), width: ft.bandwidth(), variants: {
399
428
  initial: {
400
429
  height: 0,
401
- y: b(0),
402
- fill: M[l]
430
+ y: O(0),
431
+ fill: B[u]
403
432
  },
404
433
  whileInView: {
405
- height: _t(Vt) ? 0 : Math.abs(b(Vt) - b(0)),
406
- y: _t(Vt) ? b(0) : Vt > 0 ? b(Vt) : b(0),
407
- fill: M[l],
434
+ height: ie(Bt) ? 0 : Math.abs(O(Bt) - O(0)),
435
+ y: ie(Bt) ? O(0) : Bt > 0 ? O(Bt) : O(0),
436
+ fill: B[u],
408
437
  transition: {
409
- duration: o.duration
438
+ duration: l.duration
410
439
  }
411
440
  }
412
441
  }, exit: {
413
442
  height: 0,
414
- y: b(0),
443
+ y: O(0),
415
444
  transition: {
416
- duration: o.duration
445
+ duration: l.duration
417
446
  }
418
- }, initial: "initial", animate: X ? "whileInView" : "initial" }),
419
- nt ? /* @__PURE__ */ i.jsx(Zt.text, { x: qt(`${l}`) + qt.bandwidth() / 2, style: {
447
+ }, initial: "initial", animate: Y ? "whileInView" : "initial" }),
448
+ tt ? /* @__PURE__ */ i.jsx(ee.text, { x: ft(`${u}`) + ft.bandwidth() / 2, style: {
420
449
  textAnchor: "middle",
421
- ...u?.graphObjectValues || {}
422
- }, className: pe("graph-value text-sm", s?.graphObjectValues), dy: Vt ? Vt >= 0 ? "-5px" : "1em" : "-5px", variants: {
450
+ ...c?.graphObjectValues || {}
451
+ }, className: be("graph-value text-sm", s?.graphObjectValues), dy: Bt ? Bt >= 0 ? "-5px" : "1em" : "-5px", variants: {
423
452
  initial: {
424
- y: b(0),
453
+ y: O(0),
425
454
  opacity: 0,
426
- fill: R || M[l]
455
+ fill: Q || B[u]
427
456
  },
428
457
  whileInView: {
429
- y: b(Vt || 0),
458
+ y: O(Bt || 0),
430
459
  opacity: 1,
431
- fill: R || M[l],
460
+ fill: Q || B[u],
432
461
  transition: {
433
- duration: o.duration
462
+ duration: l.duration
434
463
  }
435
464
  }
436
- }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
465
+ }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
437
466
  opacity: 0,
438
467
  transition: {
439
- duration: o.duration
468
+ duration: l.duration
440
469
  }
441
- }, children: ue(Vt, x, r, y, j) }) : null
442
- ] }, `${L.label}-${d[l] || l}`)),
443
- zt ? /* @__PURE__ */ i.jsx(Ye, { value: `${L.label}`.length < S ? `${L.label}` : `${`${L.label}`.substring(0, S)}...`, y: b(0) + 5, x: 0, width: O.bandwidth(), height: n.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: o, isInView: X }) : null
444
- ] }, L.label)), P = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((L, Vt) => /* @__PURE__ */ i.jsx(He, { text: L.text, color: L.color, y: b(L.value), x1: 0 - A, x2: it + n.right, classNames: L.classNames, styles: L.styles, animate: o, isInView: X }, Vt)) }) : null, t[8] = o, t[9] = B, t[10] = M, t[11] = I, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = d, t[19] = h, t[20] = m, t[21] = xt, t[22] = mt, t[23] = it, t[24] = ct, t[25] = X, t[26] = F, t[27] = A, t[28] = n.bottom, t[29] = n.left, t[30] = n.right, t[31] = n.top, t[32] = J, t[33] = Tt, t[34] = w, t[35] = f, t[36] = x, t[37] = H, t[38] = et, t[39] = ut, t[40] = r, t[41] = y, t[42] = dt, t[43] = W, t[44] = G, t[45] = zt, t[46] = jt, t[47] = nt, t[48] = u?.graphObjectValues, t[49] = u?.xAxis?.axis, t[50] = u?.xAxis?.labels, t[51] = u?.yAxis?.gridLines, t[52] = u?.yAxis?.labels, t[53] = u?.yAxis?.title, t[54] = j, t[55] = S, t[56] = R, t[57] = _, t[58] = C, t[59] = g, t[60] = Q, t[61] = Z, t[62] = U, t[63] = V, t[64] = ht, t[65] = Mt, t[66] = st, t[67] = Ct, t[68] = E, t[69] = at, t[70] = P, t[71] = ft;
470
+ }, children: fe(Bt, x, d, A, q) }) : null
471
+ ] }, `${S.label}-${m[u] || u}`)),
472
+ St ? /* @__PURE__ */ i.jsx(Re, { value: `${S.label}`.length < U ? `${S.label}` : `${`${S.label}`.substring(0, U)}...`, y: O(0) + 5, x: 0, width: v.bandwidth(), height: r.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: l, isInView: Y }) : null
473
+ ] }, S.label)), Ft = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((S, Bt) => /* @__PURE__ */ i.jsx(Ee, { text: S.text, color: S.color, y: O(S.value), x1: 0 - k, x2: xt + r.right, classNames: S.classNames, styles: S.styles, animate: l, isInView: Y }, Bt)) }) : null, t[16] = l, t[17] = L, t[18] = B, t[19] = Wt, t[20] = lt, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = m, t[28] = g, t[29] = a[0].size, t[30] = w, t[31] = mt, t[32] = Ct, t[33] = xt, t[34] = Tt, t[35] = Y, t[36] = k, t[37] = r.bottom, t[38] = r.left, t[39] = r.right, t[40] = r.top, t[41] = nt, t[42] = Xt, t[43] = M, t[44] = y, t[45] = x, t[46] = et, t[47] = J, t[48] = Mt, t[49] = d, t[50] = A, t[51] = kt, t[52] = K, t[53] = H, t[54] = St, t[55] = Et, t[56] = tt, t[57] = c?.graphObjectValues, t[58] = c?.xAxis?.axis, t[59] = c?.xAxis?.labels, t[60] = c?.yAxis?.gridLines, t[61] = c?.yAxis?.labels, t[62] = c?.yAxis?.title, t[63] = q, t[64] = U, t[65] = Q, t[66] = Ot, t[67] = jt, t[68] = ct, t[69] = Ft, t[70] = Nt, t[71] = Vt, t[72] = zt, t[73] = G, t[74] = I, t[75] = z, t[76] = ht, t[77] = ot, t[78] = dt, t[79] = vt, t[80] = _;
445
474
  } else
446
- C = t[58], g = t[59], Q = t[60], Z = t[61], U = t[62], V = t[63], ht = t[64], Mt = t[65], st = t[66], Ct = t[67], E = t[68], at = t[69], P = t[70], ft = t[71];
447
- let pt;
448
- t[94] !== C || t[95] !== at || t[96] !== P ? (pt = /* @__PURE__ */ i.jsxs(C, { children: [
449
- at,
450
- P
451
- ] }), t[94] = C, t[95] = at, t[96] = P, t[97] = pt) : pt = t[97];
452
- let vt;
453
- t[98] !== h ? (vt = h.filter(di).map(ui), t[98] = h, t[99] = vt) : vt = t[99];
475
+ jt = t[67], ct = t[68], Ft = t[69], Nt = t[70], Vt = t[71], zt = t[72], G = t[73], I = t[74], z = t[75], ht = t[76], ot = t[77], dt = t[78], vt = t[79], _ = t[80];
476
+ let ut;
477
+ t[101] !== jt || t[102] !== Ft || t[103] !== _ ? (ut = /* @__PURE__ */ i.jsxs(jt, { children: [
478
+ _,
479
+ Ft
480
+ ] }), t[101] = jt, t[102] = Ft, t[103] = _, t[104] = ut) : ut = t[104];
454
481
  let wt;
455
- t[100] !== Q || t[101] !== Z || t[102] !== U || t[103] !== V || t[104] !== pt || t[105] !== vt || t[106] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
456
- Q,
457
- Z,
458
- U,
459
- V,
460
- pt,
461
- vt
462
- ] }), t[100] = Q, t[101] = Z, t[102] = U, t[103] = V, t[104] = pt, t[105] = vt, t[106] = ft, t[107] = wt) : wt = t[107];
463
- let ot;
464
- t[108] !== g || t[109] !== ht || t[110] !== Mt || t[111] !== st || t[112] !== Ct || t[113] !== E || t[114] !== wt ? (ot = /* @__PURE__ */ i.jsx(g, { width: ht, height: Mt, viewBox: st, direction: Ct, ref: E, children: wt }), t[108] = g, t[109] = ht, t[110] = Mt, t[111] = st, t[112] = Ct, t[113] = E, t[114] = wt, t[115] = ot) : ot = t[115];
482
+ t[105] !== g ? (wt = g.filter(hi).map(xi), t[105] = g, t[106] = wt) : wt = t[106];
483
+ let st;
484
+ t[107] !== Nt || t[108] !== Vt || t[109] !== zt || t[110] !== G || t[111] !== I || t[112] !== ut || t[113] !== wt ? (st = /* @__PURE__ */ i.jsxs("g", { transform: Nt, children: [
485
+ Vt,
486
+ zt,
487
+ G,
488
+ I,
489
+ ut,
490
+ wt
491
+ ] }), t[107] = Nt, t[108] = Vt, t[109] = zt, t[110] = G, t[111] = I, t[112] = ut, t[113] = wt, t[114] = st) : st = t[114];
465
492
  let At;
466
- t[116] !== s?.tooltip || t[117] !== N || t[118] !== Dt || t[119] !== c || t[120] !== u?.tooltip || t[121] !== tt ? (At = c && tt && N && Dt ? /* @__PURE__ */ i.jsx($e, { data: c, body: tt, xPos: N, yPos: Dt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[116] = s?.tooltip, t[117] = N, t[118] = Dt, t[119] = c, t[120] = u?.tooltip, t[121] = tt, t[122] = At) : At = t[122];
493
+ t[115] !== ct || t[116] !== z || t[117] !== ht || t[118] !== ot || t[119] !== dt || t[120] !== vt || t[121] !== st ? (At = /* @__PURE__ */ i.jsx(ct, { width: z, height: ht, viewBox: ot, direction: dt, ref: vt, children: st }), t[115] = ct, t[116] = z, t[117] = ht, t[118] = ot, t[119] = dt, t[120] = vt, t[121] = st, t[122] = At) : At = t[122];
467
494
  let $t;
468
- t[123] !== s?.modal || t[124] !== xt || t[125] !== f ? ($t = xt && f !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: xt, data: f, setData: Y, className: s?.modal }) : null, t[123] = s?.modal, t[124] = xt, t[125] = f, t[126] = $t) : $t = t[126];
469
- let Ot;
470
- return t[127] !== ot || t[128] !== At || t[129] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
471
- ot,
495
+ t[123] !== s?.tooltip || t[124] !== W || t[125] !== Yt || t[126] !== n || t[127] !== c?.tooltip || t[128] !== at ? ($t = n && at && W && Yt ? /* @__PURE__ */ i.jsx(Ve, { data: n, body: at, xPos: W, yPos: Yt, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[123] = s?.tooltip, t[124] = W, t[125] = Yt, t[126] = n, t[127] = c?.tooltip, t[128] = at, t[129] = $t) : $t = t[129];
496
+ let b;
497
+ t[130] !== s?.modal || t[131] !== mt || t[132] !== y ? (b = mt && y !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: mt, data: y, setData: it, className: s?.modal }) : null, t[130] = s?.modal, t[131] = mt, t[132] = y, t[133] = b) : b = t[133];
498
+ let $;
499
+ return t[134] !== At || t[135] !== $t || t[136] !== b ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
472
500
  At,
473
- $t
474
- ] }), t[127] = ot, t[128] = At, t[129] = $t, t[130] = Ot) : Ot = t[130], Ot;
501
+ $t,
502
+ b
503
+ ] }), t[134] = At, t[135] = $t, t[136] = b, t[137] = $) : $ = t[137], $;
475
504
  }
476
- function ui(e) {
505
+ function xi(e) {
477
506
  return e.layer;
478
507
  }
479
- function di(e) {
508
+ function hi(e) {
480
509
  return e.position === "after";
481
510
  }
482
- function xi(e) {
511
+ function fi(e) {
483
512
  return e.layer;
484
513
  }
485
- function mi(e) {
514
+ function pi(e) {
486
515
  return e.position === "before";
487
516
  }
488
- function hi(e) {
517
+ function gi(e) {
489
518
  return e !== 0;
490
519
  }
491
- function fi(e) {
520
+ function yi(e) {
492
521
  return e !== 0;
493
522
  }
494
- function pi(e, t) {
523
+ function bi(e, t) {
495
524
  return `${t}`;
496
525
  }
497
- function gi(e) {
526
+ function vi(e) {
498
527
  return `${e.id}`;
499
528
  }
500
- function yi(e) {
501
- const t = xe.c(43), {
502
- data: m,
503
- graphTitle: D,
504
- colors: Xt,
505
- sources: St,
506
- graphDescription: gt,
507
- barPadding: _,
508
- showTicks: ct,
509
- truncateBy: M,
510
- height: j,
511
- width: y,
512
- footNote: I,
513
- colorDomain: zt,
514
- colorLegendTitle: nt,
515
- suffix: jt,
516
- prefix: S,
517
- showValues: tt,
518
- showColorScale: ut,
519
- padding: dt,
520
- backgroundColor: Tt,
521
- leftMargin: w,
522
- rightMargin: et,
523
- topMargin: G,
524
- bottomMargin: F,
525
- showLabels: J,
526
- relativeHeight: W,
527
- tooltip: xt,
528
- onSeriesMouseOver: B,
529
- refValues: R,
530
- graphID: H,
531
- maxValue: u,
529
+ function wi(e) {
530
+ const t = ge.c(112), {
531
+ data: a,
532
+ graphTitle: P,
533
+ colors: qt,
534
+ sources: Ut,
535
+ graphDescription: It,
536
+ barPadding: Ot,
537
+ showTicks: Tt,
538
+ truncateBy: B,
539
+ height: q,
540
+ width: A,
541
+ footNote: lt,
542
+ colorDomain: St,
543
+ colorLegendTitle: tt,
544
+ suffix: Et,
545
+ prefix: U,
546
+ showValues: at,
547
+ showColorScale: Mt,
548
+ padding: kt,
549
+ backgroundColor: Xt,
550
+ leftMargin: M,
551
+ rightMargin: J,
552
+ topMargin: H,
553
+ bottomMargin: D,
554
+ showLabels: nt,
555
+ relativeHeight: K,
556
+ tooltip: mt,
557
+ onSeriesMouseOver: L,
558
+ refValues: Q,
559
+ graphID: et,
560
+ maxValue: c,
532
561
  minValue: s,
533
- onSeriesMouseClick: o,
534
- graphDownload: d,
535
- dataDownload: r,
536
- language: h,
562
+ onSeriesMouseClick: l,
563
+ graphDownload: m,
564
+ dataDownload: d,
565
+ language: g,
537
566
  labelOrder: x,
538
- minHeight: A,
539
- theme: K,
540
- maxBarThickness: q,
541
- ariaLabel: rt,
542
- resetSelectionOnDoubleClick: Ft,
543
- detailsOnClick: Yt,
544
- barAxisTitle: X,
545
- noOfTicks: yt,
546
- valueColor: Bt,
547
- styles: n,
548
- classNames: c,
549
- filterNA: T,
550
- animate: f,
551
- precision: Y,
552
- customLayers: N,
553
- timeline: $,
554
- naLabel: Dt,
555
- sortParameter: bt,
556
- sortData: it,
557
- orientation: mt
558
- } = e, C = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, g = _ === void 0 ? 0.25 : _, Q = ct === void 0 ? !0 : ct, Z = M === void 0 ? 999 : M, U = jt === void 0 ? "" : jt, V = S === void 0 ? "" : S, ht = tt === void 0 ? !0 : tt, Mt = ut === void 0 ? !0 : ut, st = Tt === void 0 ? !1 : Tt, Ct = J === void 0 ? !0 : J, E = d === void 0 ? !1 : d, at = r === void 0 ? !1 : r, P = h === void 0 ? "en" : h, ft = A === void 0 ? 0 : A, pt = K === void 0 ? "light" : K, vt = Ft === void 0 ? !0 : Ft, wt = yt === void 0 ? 5 : yt, ot = T === void 0 ? !0 : T, At = f === void 0 ? !1 : f, $t = Y === void 0 ? 2 : Y;
559
- let Ot;
560
- t[0] !== N ? (Ot = N === void 0 ? [] : N, t[0] = N, t[1] = Ot) : Ot = t[1];
561
- const b = Ot, lt = $ === void 0 ? {
567
+ minHeight: k,
568
+ theme: rt,
569
+ maxBarThickness: Z,
570
+ ariaLabel: pt,
571
+ resetSelectionOnDoubleClick: Jt,
572
+ detailsOnClick: Gt,
573
+ barAxisTitle: Y,
574
+ noOfTicks: gt,
575
+ valueColor: Ht,
576
+ styles: r,
577
+ classNames: n,
578
+ filterNA: F,
579
+ animate: y,
580
+ precision: it,
581
+ customLayers: W,
582
+ timeline: C,
583
+ naLabel: Yt,
584
+ sortParameter: yt,
585
+ sortData: xt,
586
+ orientation: Ct
587
+ } = e, E = qt === void 0 ? xe.light.categoricalColors.colors : qt, w = Ot === void 0 ? 0.25 : Ot, bt = Tt === void 0 ? !0 : Tt, Wt = B === void 0 ? 999 : B, jt = Et === void 0 ? "" : Et, ct = U === void 0 ? "" : U, Ft = at === void 0 ? !0 : at, Nt = Mt === void 0 ? !0 : Mt, Vt = Xt === void 0 ? !1 : Xt, zt = nt === void 0 ? !0 : nt, G = m === void 0 ? !1 : m, I = d === void 0 ? !1 : d, z = g === void 0 ? "en" : g, ht = k === void 0 ? 0 : k, ot = rt === void 0 ? "light" : rt, dt = Jt === void 0 ? !0 : Jt, vt = gt === void 0 ? 5 : gt, _ = F === void 0 ? !0 : F, ut = y === void 0 ? !1 : y, wt = it === void 0 ? 2 : it;
588
+ let st;
589
+ t[0] !== W ? (st = W === void 0 ? [] : W, t[0] = W, t[1] = st) : st = t[1];
590
+ const At = st;
591
+ let $t;
592
+ t[2] !== C ? ($t = C === void 0 ? {
562
593
  enabled: !1,
563
594
  autoplay: !1,
564
595
  showOnlyActiveDate: !0
565
- } : $, It = Dt === void 0 ? "NA" : Dt, O = (mt === void 0 ? "vertical" : mt) === "horizontal" ? ti : ci, [qt, Nt] = Wt(0), [Kt, Lt] = Wt(0), [Qt, Ut] = Wt(lt.autoplay), Ht = Qe(Le(m, "date", !0).map((Gt) => Se(`${Gt}`, lt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Bi), [kt, Rt] = Wt(lt.autoplay ? 0 : Ht.length - 1), [Jt, z] = Wt(void 0), v = de(null), k = de(null);
566
- let a, p;
567
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = () => {
568
- const Gt = new ResizeObserver((Pt) => {
569
- Nt(Pt[0].target.clientWidth || 620), Lt(Pt[0].target.clientHeight || 480);
596
+ } : C, t[2] = C, t[3] = $t) : $t = t[3];
597
+ const b = $t, $ = Yt === void 0 ? "NA" : Yt, v = (Ct === void 0 ? "vertical" : Ct) === "horizontal" ? si : mi, [ft, j] = Zt(0), [p, f] = Zt(0), [Dt, Lt] = Zt(b.autoplay);
598
+ let Kt;
599
+ if (t[4] !== a || t[5] !== b.dateFormat) {
600
+ let Qt;
601
+ t[7] !== b.dateFormat ? (Qt = (Pt) => He(`${Pt.date}`, b.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = b.dateFormat, t[8] = Qt) : Qt = t[8], Kt = [...new Set(a.filter(Wi).map(Qt))], Kt.sort(Hi), t[4] = a, t[5] = b.dateFormat, t[6] = Kt;
602
+ } else
603
+ Kt = t[6];
604
+ const N = Kt, [T, Rt] = Zt(b.autoplay ? 0 : N.length - 1), [X, V] = Zt(void 0), R = pe(null), o = pe(null);
605
+ let h, _t;
606
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (h = () => {
607
+ const Qt = new ResizeObserver((Pt) => {
608
+ j(Pt[0].target.clientWidth || 620), f(Pt[0].target.clientHeight || 480);
570
609
  });
571
- return v.current && Gt.observe(v.current), () => Gt.disconnect();
572
- }, p = [], t[2] = a, t[3] = p) : (a = t[2], p = t[3]), we(a, p), we(() => {
573
- const Gt = setInterval(() => {
574
- Rt((Pt) => Pt < Ht.length - 1 ? Pt + 1 : 0);
575
- }, (lt.speed || 2) * 1e3);
576
- return Qt || clearInterval(Gt), () => clearInterval(Gt);
577
- }, [Ht, Qt, lt.speed]);
578
- const ee = Te(Ht, kt, lt.showOnlyActiveDate, lt.dateFormat || "yyyy"), L = Ke, Vt = c?.graphContainer, l = n?.graphContainer;
579
- let ie;
580
- t[4] !== c?.description || t[5] !== c?.title || t[6] !== m || t[7] !== at || t[8] !== gt || t[9] !== E || t[10] !== D || t[11] !== n?.description || t[12] !== n?.title || t[13] !== y ? (ie = D || gt || E || at ? /* @__PURE__ */ i.jsx(Ee, { styles: {
610
+ return R.current && Qt.observe(R.current), () => Qt.disconnect();
611
+ }, _t = [], t[9] = h, t[10] = _t) : (h = t[9], _t = t[10]), ke(h, _t);
612
+ let S, Bt;
613
+ t[11] !== Dt || t[12] !== b.speed || t[13] !== N ? (S = () => {
614
+ const Qt = setInterval(() => {
615
+ Rt((Pt) => Pt < N.length - 1 ? Pt + 1 : 0);
616
+ }, (b.speed || 2) * 1e3);
617
+ return Dt || clearInterval(Qt), () => clearInterval(Qt);
618
+ }, Bt = [N, Dt, b.speed], t[11] = Dt, t[12] = b.speed, t[13] = N, t[14] = S, t[15] = Bt) : (S = t[14], Bt = t[15]), ke(S, Bt);
619
+ const u = b.dateFormat || "yyyy";
620
+ let se;
621
+ t[16] !== T || t[17] !== u || t[18] !== b.showOnlyActiveDate || t[19] !== N ? (se = Fe(N, T, b.showOnlyActiveDate, u), t[16] = T, t[17] = u, t[18] = b.showOnlyActiveDate, t[19] = N, t[20] = se) : se = t[20];
622
+ const ae = se, me = n?.graphContainer, he = r?.graphContainer;
623
+ let ue;
624
+ t[21] !== n?.description || t[22] !== n?.title || t[23] !== a || t[24] !== I || t[25] !== It || t[26] !== G || t[27] !== P || t[28] !== r?.description || t[29] !== r?.title || t[30] !== A ? (ue = P || It || G || I ? /* @__PURE__ */ i.jsx(qe, { styles: {
625
+ title: r?.title,
626
+ description: r?.description
627
+ }, classNames: {
581
628
  title: n?.title,
582
629
  description: n?.description
583
- }, classNames: {
584
- title: c?.title,
585
- description: c?.description
586
- }, graphTitle: D, graphDescription: gt, width: y, graphDownload: E ? k : void 0, dataDownload: at ? m.map(Si).filter(Ii).length > 0 ? m.map(Ti).filter(Ni) : m.filter(ji) : null }) : null, t[4] = c?.description, t[5] = c?.title, t[6] = m, t[7] = at, t[8] = gt, t[9] = E, t[10] = D, t[11] = n?.description, t[12] = n?.title, t[13] = y, t[14] = ie) : ie = t[14];
587
- const se = lt.enabled && Ht.length > 0 && ee ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
630
+ }, graphTitle: P, graphDescription: It, width: A, graphDownload: G ? o : void 0, dataDownload: I ? a.map(Pi).filter(Fi).length > 0 ? a.map(Bi).filter(Si) : a.filter(Ti) : null }) : null, t[21] = n?.description, t[22] = n?.title, t[23] = a, t[24] = I, t[25] = It, t[26] = G, t[27] = P, t[28] = r?.description, t[29] = r?.title, t[30] = A, t[31] = ue) : ue = t[31];
631
+ let oe;
632
+ t[32] !== T || t[33] !== ae || t[34] !== Dt || t[35] !== b.enabled || t[36] !== N ? (oe = b.enabled && N.length > 0 && ae ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
588
633
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
589
- Ut(!Qt);
590
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Qt ? "Click to pause animation" : "Click to play animation", children: Qt ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
591
- /* @__PURE__ */ i.jsx(Ie, { min: Ht[0], max: Ht[Ht.length - 1], marks: ee, step: null, defaultValue: Ht[Ht.length - 1], value: Ht[kt], onChangeComplete: (Gt) => {
592
- Rt(Ht.indexOf(Gt));
593
- }, onChange: (Gt) => {
594
- Rt(Ht.indexOf(Gt));
634
+ Lt(!Dt);
635
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Dt ? "Click to pause animation" : "Click to play animation", children: Dt ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsx(Ze, {}) }),
636
+ /* @__PURE__ */ i.jsx(Pe, { min: N[0], max: N[N.length - 1], marks: ae, step: null, defaultValue: N[N.length - 1], value: N[T], onChangeComplete: (Qt) => {
637
+ Rt(N.indexOf(Qt));
638
+ }, onChange: (Qt) => {
639
+ Rt(N.indexOf(Qt));
595
640
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
596
- ] }) : null, me = "grow flex flex-col justify-center gap-3 w-full", fe = m.length === 0 ? /* @__PURE__ */ i.jsx(Re, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
597
- Mt ? /* @__PURE__ */ i.jsx(We, { width: y, colorDomain: zt, colors: C, colorLegendTitle: nt, setSelectedColor: z, showNAColor: !1, className: c?.colorLegend }) : null,
598
- /* @__PURE__ */ i.jsx(Je, { ref: v, children: qt && Kt ? /* @__PURE__ */ i.jsx(O, { data: bt !== void 0 ? bt === "total" ? ze(ve(m, lt.dateFormat || "yyyy").filter((Gt) => lt.enabled ? Gt.date === ye(new Date(Ht[kt]), lt.dateFormat || "yyyy") : Gt).filter((Gt) => ot ? !Gt.size.every(zi) : Gt), Di, [it || "asc"]) : ze(ve(m, lt.dateFormat || "yyyy").filter((Gt) => lt.enabled ? Gt.date === ye(new Date(Ht[kt]), lt.dateFormat || "yyyy") : Gt).filter((Gt) => ot ? !Gt.size.every(Vi) : Gt), (Gt) => _t(Gt.size[bt]) ? -1 / 0 : Gt.size[bt], [it || "asc"]) : ve(m, lt.dateFormat || "yyyy").filter((Gt) => ot ? !Gt.size.every(Ci) : Gt), barColors: C, width: qt, height: Kt, suffix: U, prefix: V, showValues: ht, barPadding: g, showTicks: Q, leftMargin: w, rightMargin: et, topMargin: G, bottomMargin: F, truncateBy: Z, showLabels: Ct, tooltip: xt, onSeriesMouseOver: B, refValues: R, maxValue: _t(u) ? Math.max(...m.map(ki)) < 0 ? 0 : Math.max(...m.map($i)) : u, minValue: _t(s) ? Math.min(...m.map(wi)) >= 0 ? 0 : Math.min(...m.map(bi)) : s, onSeriesMouseClick: o, selectedColor: Jt, labelOrder: x, rtl: P === "he" || P === "ar", maxBarThickness: q, resetSelectionOnDoubleClick: vt, detailsOnClick: Yt, barAxisTitle: X, noOfTicks: wt, valueColor: Bt, styles: n, classNames: c, colorDomain: zt, animate: At === !0 ? {
641
+ ] }) : null, t[32] = T, t[33] = ae, t[34] = Dt, t[35] = b.enabled, t[36] = N, t[37] = oe) : oe = t[37];
642
+ let re;
643
+ t[38] !== v || t[39] !== ut || t[40] !== Y || t[41] !== w || t[42] !== D || t[43] !== n || t[44] !== St || t[45] !== tt || t[46] !== E || t[47] !== At || t[48] !== a || t[49] !== Gt || t[50] !== _ || t[51] !== T || t[52] !== x || t[53] !== z || t[54] !== M || t[55] !== Z || t[56] !== c || t[57] !== s || t[58] !== $ || t[59] !== vt || t[60] !== l || t[61] !== L || t[62] !== wt || t[63] !== ct || t[64] !== Q || t[65] !== dt || t[66] !== J || t[67] !== X || t[68] !== Nt || t[69] !== zt || t[70] !== bt || t[71] !== Ft || t[72] !== xt || t[73] !== yt || t[74] !== r || t[75] !== jt || t[76] !== p || t[77] !== ft || t[78] !== b.dateFormat || t[79] !== b.enabled || t[80] !== mt || t[81] !== H || t[82] !== Wt || t[83] !== N || t[84] !== Ht || t[85] !== A ? (re = /* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
644
+ Nt ? /* @__PURE__ */ i.jsx(Je, { width: A, colorDomain: St, colors: E, colorLegendTitle: tt, setSelectedColor: V, showNAColor: !1, className: n?.colorLegend }) : null,
645
+ /* @__PURE__ */ i.jsx(_e, { ref: R, children: ft && p ? /* @__PURE__ */ i.jsx(v, { data: yt !== void 0 ? yt === "total" ? Te(Me(a, b.dateFormat || "yyyy").filter((Qt) => b.enabled ? Qt.date === we(new Date(N[T]), b.dateFormat || "yyyy") : Qt).filter((Qt) => _ ? !Qt.size.every(Ni) : Qt), Ii, [xt || "asc"]) : Te(Me(a, b.dateFormat || "yyyy").filter((Qt) => b.enabled ? Qt.date === we(new Date(N[T]), b.dateFormat || "yyyy") : Qt).filter((Qt) => _ ? !Qt.size.every(Li) : Qt), (Qt) => ie(Qt.size[yt]) ? -1 / 0 : Qt.size[yt], [xt || "asc"]) : Me(a, b.dateFormat || "yyyy").filter((Qt) => _ ? !Qt.size.every(Di) : Qt), barColors: E, width: ft, height: p, suffix: jt, prefix: ct, showValues: Ft, barPadding: w, showTicks: bt, leftMargin: M, rightMargin: J, topMargin: H, bottomMargin: D, truncateBy: Wt, showLabels: zt, tooltip: mt, onSeriesMouseOver: L, refValues: Q, maxValue: ie(c) ? Math.max(...a.map(Vi)) < 0 ? 0 : Math.max(...a.map(ki)) : c, minValue: ie(s) ? Math.min(...a.map(Oi)) >= 0 ? 0 : Math.min(...a.map(Ai)) : s, onSeriesMouseClick: l, selectedColor: X, labelOrder: x, rtl: z === "he" || z === "ar", maxBarThickness: Z, resetSelectionOnDoubleClick: dt, detailsOnClick: Gt, barAxisTitle: Y, noOfTicks: vt, valueColor: Ht, styles: r, classNames: n, colorDomain: St, animate: ut === !0 ? {
599
646
  duration: 0.5,
600
647
  once: !0,
601
648
  amount: 0.5
602
- } : At || {
649
+ } : ut || {
603
650
  duration: 0,
604
651
  once: !0,
605
652
  amount: 0
606
- }, precision: $t, customLayers: b, naLabel: It }) : null })
607
- ] });
608
- let re;
609
- t[15] !== fe ? (re = /* @__PURE__ */ i.jsx("div", { className: me, children: fe }), t[15] = fe, t[16] = re) : re = t[16];
610
- let ae;
611
- t[17] !== c?.footnote || t[18] !== c?.source || t[19] !== I || t[20] !== St || t[21] !== n?.footnote || t[22] !== n?.source || t[23] !== y ? (ae = St || I ? /* @__PURE__ */ i.jsx(Ge, { styles: {
653
+ }, precision: wt, customLayers: At, naLabel: $ }) : null })
654
+ ] }) }), t[38] = v, t[39] = ut, t[40] = Y, t[41] = w, t[42] = D, t[43] = n, t[44] = St, t[45] = tt, t[46] = E, t[47] = At, t[48] = a, t[49] = Gt, t[50] = _, t[51] = T, t[52] = x, t[53] = z, t[54] = M, t[55] = Z, t[56] = c, t[57] = s, t[58] = $, t[59] = vt, t[60] = l, t[61] = L, t[62] = wt, t[63] = ct, t[64] = Q, t[65] = dt, t[66] = J, t[67] = X, t[68] = Nt, t[69] = zt, t[70] = bt, t[71] = Ft, t[72] = xt, t[73] = yt, t[74] = r, t[75] = jt, t[76] = p, t[77] = ft, t[78] = b.dateFormat, t[79] = b.enabled, t[80] = mt, t[81] = H, t[82] = Wt, t[83] = N, t[84] = Ht, t[85] = A, t[86] = re) : re = t[86];
655
+ let ne;
656
+ t[87] !== n?.footnote || t[88] !== n?.source || t[89] !== lt || t[90] !== Ut || t[91] !== r?.footnote || t[92] !== r?.source || t[93] !== A ? (ne = Ut || lt ? /* @__PURE__ */ i.jsx(Ue, { styles: {
657
+ footnote: r?.footnote,
658
+ source: r?.source
659
+ }, classNames: {
612
660
  footnote: n?.footnote,
613
661
  source: n?.source
614
- }, classNames: {
615
- footnote: c?.footnote,
616
- source: c?.source
617
- }, sources: St, footNote: I, width: y }) : null, t[17] = c?.footnote, t[18] = c?.source, t[19] = I, t[20] = St, t[21] = n?.footnote, t[22] = n?.source, t[23] = y, t[24] = ae) : ae = t[24];
618
- let le;
619
- return t[25] !== L || t[26] !== rt || t[27] !== st || t[28] !== H || t[29] !== j || t[30] !== P || t[31] !== ft || t[32] !== dt || t[33] !== W || t[34] !== Vt || t[35] !== l || t[36] !== ie || t[37] !== se || t[38] !== re || t[39] !== ae || t[40] !== pt || t[41] !== y ? (le = /* @__PURE__ */ i.jsxs(L, { className: Vt, style: l, id: H, ref: k, "aria-label": rt, backgroundColor: st, theme: pt, language: P, minHeight: ft, width: y, height: j, relativeHeight: W, padding: dt, children: [
620
- ie,
621
- se,
662
+ }, sources: Ut, footNote: lt, width: A }) : null, t[87] = n?.footnote, t[88] = n?.source, t[89] = lt, t[90] = Ut, t[91] = r?.footnote, t[92] = r?.source, t[93] = A, t[94] = ne) : ne = t[94];
663
+ let de;
664
+ return t[95] !== pt || t[96] !== Vt || t[97] !== et || t[98] !== q || t[99] !== z || t[100] !== ht || t[101] !== kt || t[102] !== K || t[103] !== me || t[104] !== he || t[105] !== ue || t[106] !== oe || t[107] !== re || t[108] !== ne || t[109] !== ot || t[110] !== A ? (de = /* @__PURE__ */ i.jsxs(ti, { className: me, style: he, id: et, ref: o, "aria-label": pt, backgroundColor: Vt, theme: ot, language: z, minHeight: ht, width: A, height: q, relativeHeight: K, padding: kt, children: [
665
+ ue,
666
+ oe,
622
667
  re,
623
- ae
624
- ] }), t[25] = L, t[26] = rt, t[27] = st, t[28] = H, t[29] = j, t[30] = P, t[31] = ft, t[32] = dt, t[33] = W, t[34] = Vt, t[35] = l, t[36] = ie, t[37] = se, t[38] = re, t[39] = ae, t[40] = pt, t[41] = y, t[42] = le) : le = t[42], le;
625
- }
626
- function bi(e) {
627
- return Math.min(...e.size.filter(vi));
628
- }
629
- function vi(e) {
630
- return !_t(e);
631
- }
632
- function wi(e) {
633
- return Math.min(...e.size.filter(Ai));
668
+ ne
669
+ ] }), t[95] = pt, t[96] = Vt, t[97] = et, t[98] = q, t[99] = z, t[100] = ht, t[101] = kt, t[102] = K, t[103] = me, t[104] = he, t[105] = ue, t[106] = oe, t[107] = re, t[108] = ne, t[109] = ot, t[110] = A, t[111] = de) : de = t[111], de;
634
670
  }
635
671
  function Ai(e) {
636
- return !_t(e);
672
+ return Math.min(...e.size.filter($i));
637
673
  }
638
674
  function $i(e) {
639
- return Math.max(...e.size.filter(Oi));
675
+ return !ie(e);
640
676
  }
641
677
  function Oi(e) {
642
- return !_t(e);
643
- }
644
- function ki(e) {
645
- return Math.max(...e.size.filter(Mi));
678
+ return Math.min(...e.size.filter(Mi));
646
679
  }
647
680
  function Mi(e) {
648
- return !_t(e);
681
+ return !ie(e);
682
+ }
683
+ function ki(e) {
684
+ return Math.max(...e.size.filter(Ci));
649
685
  }
650
686
  function Ci(e) {
651
- return e == null;
687
+ return !ie(e);
652
688
  }
653
689
  function Vi(e) {
654
- return e == null;
690
+ return Math.max(...e.size.filter(zi));
691
+ }
692
+ function zi(e) {
693
+ return !ie(e);
655
694
  }
656
695
  function Di(e) {
657
- return oe(e.size.filter(Li));
696
+ return e == null;
658
697
  }
659
698
  function Li(e) {
660
- return !_t(e);
661
- }
662
- function zi(e) {
663
699
  return e == null;
664
700
  }
701
+ function Ii(e) {
702
+ return ce(e.size.filter(ji));
703
+ }
665
704
  function ji(e) {
666
- return e !== void 0;
705
+ return !ie(e);
667
706
  }
668
707
  function Ni(e) {
669
- return e !== void 0;
708
+ return e == null;
670
709
  }
671
710
  function Ti(e) {
672
- return e.data;
673
- }
674
- function Ii(e) {
675
711
  return e !== void 0;
676
712
  }
677
713
  function Si(e) {
714
+ return e !== void 0;
715
+ }
716
+ function Bi(e) {
678
717
  return e.data;
679
718
  }
680
- function Bi(e, t) {
681
- return Ze(e, t);
719
+ function Fi(e) {
720
+ return e !== void 0;
682
721
  }
683
722
  function Pi(e) {
684
- const t = xe.c(126), {
685
- data: m,
686
- barColor: D,
687
- suffix: Xt,
688
- prefix: St,
689
- barPadding: gt,
690
- showValues: _,
691
- showTicks: ct,
692
- truncateBy: M,
693
- width: j,
694
- height: y,
695
- colorDomain: I,
696
- topMargin: zt,
697
- bottomMargin: nt,
698
- leftMargin: jt,
699
- rightMargin: S,
700
- showLabels: tt,
701
- tooltip: ut,
702
- onSeriesMouseOver: dt,
703
- refValues: Tt,
704
- selectedColor: w,
705
- highlightedDataPoints: et,
706
- maxValue: G,
707
- minValue: F,
708
- onSeriesMouseClick: J,
709
- labelOrder: W,
710
- rtl: xt,
711
- maxBarThickness: B,
712
- minBarThickness: R,
713
- resetSelectionOnDoubleClick: H,
714
- detailsOnClick: u,
723
+ return e.data;
724
+ }
725
+ function Hi(e, t) {
726
+ return e - t;
727
+ }
728
+ function Wi(e) {
729
+ return e.date;
730
+ }
731
+ function Xi(e) {
732
+ const t = ge.c(131), {
733
+ data: a,
734
+ barColor: P,
735
+ suffix: qt,
736
+ prefix: Ut,
737
+ barPadding: It,
738
+ showValues: Ot,
739
+ showTicks: Tt,
740
+ truncateBy: B,
741
+ width: q,
742
+ height: A,
743
+ colorDomain: lt,
744
+ topMargin: St,
745
+ bottomMargin: tt,
746
+ leftMargin: Et,
747
+ rightMargin: U,
748
+ showLabels: at,
749
+ tooltip: Mt,
750
+ onSeriesMouseOver: kt,
751
+ refValues: Xt,
752
+ selectedColor: M,
753
+ highlightedDataPoints: J,
754
+ maxValue: H,
755
+ minValue: D,
756
+ onSeriesMouseClick: nt,
757
+ labelOrder: K,
758
+ rtl: mt,
759
+ maxBarThickness: L,
760
+ minBarThickness: Q,
761
+ resetSelectionOnDoubleClick: et,
762
+ detailsOnClick: c,
715
763
  barAxisTitle: s,
716
- valueColor: o,
717
- noOfTicks: d,
718
- styles: r,
719
- classNames: h,
764
+ valueColor: l,
765
+ noOfTicks: m,
766
+ styles: d,
767
+ classNames: g,
720
768
  animate: x,
721
- dimmedOpacity: A,
722
- precision: K,
723
- customLayers: q,
724
- naLabel: rt
725
- } = e, Ft = zt === void 0 ? 25 : zt, Yt = nt === void 0 ? 10 : nt, X = jt === void 0 ? 100 : jt, yt = S === void 0 ? 40 : S, Bt = de(null);
726
- let n;
727
- t[0] !== x.amount || t[1] !== x.once ? (n = {
769
+ dimmedOpacity: k,
770
+ precision: rt,
771
+ customLayers: Z,
772
+ naLabel: pt
773
+ } = e, Jt = St === void 0 ? 25 : St, Gt = tt === void 0 ? 10 : tt, Y = Et === void 0 ? 100 : Et, gt = U === void 0 ? 40 : U, Ht = pe(null);
774
+ let r;
775
+ t[0] !== x.amount || t[1] !== x.once ? (r = {
728
776
  once: x.once,
729
777
  amount: x.amount
730
- }, t[0] = x.amount, t[1] = x.once, t[2] = n) : n = t[2];
731
- const c = Ce(Bt, n), [T, f] = Wt(void 0), [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), mt = s ? Ft + 25 : Ft;
732
- let C;
733
- t[3] !== Yt || t[4] !== X || t[5] !== yt || t[6] !== mt ? (C = {
734
- top: mt,
735
- bottom: Yt,
736
- left: X,
737
- right: yt
738
- }, t[3] = Yt, t[4] = X, t[5] = yt, t[6] = mt, t[7] = C) : C = t[7];
739
- const g = C, Q = j - g.left - g.right, Z = y - g.top - g.bottom;
740
- let U, V, ht, Mt, st, Ct, E, at, P, ft, pt, vt, wt, ot;
741
- if (t[8] !== x || t[9] !== s || t[10] !== D || t[11] !== gt || t[12] !== h?.graphObjectValues || t[13] !== h?.xAxis?.gridLines || t[14] !== h?.xAxis?.labels || t[15] !== h?.xAxis?.title || t[16] !== h?.yAxis?.axis || t[17] !== h?.yAxis?.labels || t[18] !== I || t[19] !== q || t[20] !== m || t[21] !== u || t[22] !== A || t[23] !== Z || t[24] !== Q || t[25] !== y || t[26] !== et || t[27] !== c || t[28] !== W || t[29] !== g.bottom || t[30] !== g.left || t[31] !== g.top || t[32] !== B || t[33] !== G || t[34] !== R || t[35] !== F || t[36] !== Y || t[37] !== rt || t[38] !== d || t[39] !== J || t[40] !== dt || t[41] !== K || t[42] !== St || t[43] !== Tt || t[44] !== H || t[45] !== xt || t[46] !== w || t[47] !== tt || t[48] !== ct || t[49] !== _ || t[50] !== r?.graphObjectValues || t[51] !== r?.xAxis?.gridLines || t[52] !== r?.xAxis?.labels || t[53] !== r?.xAxis?.title || t[54] !== r?.yAxis?.axis || t[55] !== r?.yAxis?.labels || t[56] !== Xt || t[57] !== Ft || t[58] !== M || t[59] !== o || t[60] !== j) {
742
- let O;
743
- t[75] !== W ? (O = (a, p) => ({
744
- ...a,
745
- id: W ? `${a.label}` : `${p}`
746
- }), t[75] = W, t[76] = O) : O = t[76];
747
- const qt = m.map(O), Nt = Ve().domain([F, G]).range([0, Q]).nice(), Kt = W || qt.map(Ji), Lt = ge().domain(Kt).range([0, R ? Math.max(Z, R * Kt.length) : B ? Math.min(Z, B * Kt.length) : Z]).paddingInner(gt), Qt = Nt.ticks(d);
748
- V = Zt.svg, E = Bt, at = `${j}px`, P = `${y}px`, ft = `0 0 ${j} ${y}`, pt = "ltr", ht = `translate(${g.left},${g.top})`, Mt = ct ? /* @__PURE__ */ i.jsx(Pe, { values: Qt.filter(Ui), x: Qt.filter(qi).map((a) => Nt(a)), y1: 0 - Ft, y2: Z + g.bottom, styles: {
749
- gridLines: r?.xAxis?.gridLines,
750
- labels: r?.xAxis?.labels
778
+ }, t[0] = x.amount, t[1] = x.once, t[2] = r) : r = t[2];
779
+ const n = Ie(Ht, r), [F, y] = Zt(void 0), [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), Ct = s ? Jt + 25 : Jt;
780
+ let E;
781
+ t[3] !== Gt || t[4] !== Y || t[5] !== gt || t[6] !== Ct ? (E = {
782
+ top: Ct,
783
+ bottom: Gt,
784
+ left: Y,
785
+ right: gt
786
+ }, t[3] = Gt, t[4] = Y, t[5] = gt, t[6] = Ct, t[7] = E) : E = t[7];
787
+ const w = E, bt = q - w.left - w.right, Wt = A - w.top - w.bottom;
788
+ let jt;
789
+ if (t[8] !== a || t[9] !== K) {
790
+ const p = /* @__PURE__ */ new Set(), f = a.map((Lt, Kt) => {
791
+ const N = K ? `${Lt.label}` : `${Kt}`;
792
+ return p.add(N), {
793
+ ...Lt,
794
+ id: N
795
+ };
796
+ }), Dt = K ? K.filter((Lt) => !p.has(Lt)) : [];
797
+ jt = [...f, ...Dt.map(ts)], t[8] = a, t[9] = K, t[10] = jt;
798
+ } else
799
+ jt = t[10];
800
+ const ct = jt;
801
+ let Ft;
802
+ t[11] !== ct || t[12] !== K ? (Ft = K ?? ct.map(_i), t[11] = ct, t[12] = K, t[13] = Ft) : Ft = t[13];
803
+ const Nt = Ft;
804
+ let Vt, zt, G, I, z, ht, ot, dt, vt, _, ut, wt, st, At;
805
+ if (t[14] !== x || t[15] !== s || t[16] !== P || t[17] !== Nt || t[18] !== It || t[19] !== g?.graphObjectValues || t[20] !== g?.xAxis?.gridLines || t[21] !== g?.xAxis?.labels || t[22] !== g?.xAxis?.title || t[23] !== g?.yAxis?.axis || t[24] !== g?.yAxis?.labels || t[25] !== lt || t[26] !== Z || t[27] !== a || t[28] !== ct || t[29] !== c || t[30] !== k || t[31] !== Wt || t[32] !== bt || t[33] !== A || t[34] !== J || t[35] !== n || t[36] !== w.bottom || t[37] !== w.left || t[38] !== w.top || t[39] !== L || t[40] !== H || t[41] !== Q || t[42] !== D || t[43] !== it || t[44] !== pt || t[45] !== m || t[46] !== nt || t[47] !== kt || t[48] !== rt || t[49] !== Ut || t[50] !== Xt || t[51] !== et || t[52] !== mt || t[53] !== M || t[54] !== at || t[55] !== Tt || t[56] !== Ot || t[57] !== d?.graphObjectValues || t[58] !== d?.xAxis?.gridLines || t[59] !== d?.xAxis?.labels || t[60] !== d?.xAxis?.title || t[61] !== d?.yAxis?.axis || t[62] !== d?.yAxis?.labels || t[63] !== qt || t[64] !== Jt || t[65] !== B || t[66] !== l || t[67] !== q) {
806
+ const p = je().domain([D, H]).range([0, bt]).nice(), f = ve().domain(Nt).range([0, Q ? Math.max(Wt, Q * Nt.length) : L ? Math.min(Wt, L * Nt.length) : Wt]).paddingInner(It), Dt = p.ticks(m);
807
+ zt = ee.svg, vt = Ht, _ = `${q}px`, ut = `${A}px`, wt = `0 0 ${q} ${A}`, st = "ltr", z = `translate(${w.left},${w.top})`, ht = Tt ? /* @__PURE__ */ i.jsx(Xe, { values: Dt.filter(Zi), x: Dt.filter(Qi).map((o) => p(o)), y1: 0 - Jt, y2: Wt + w.bottom, styles: {
808
+ gridLines: d?.xAxis?.gridLines,
809
+ labels: d?.xAxis?.labels
751
810
  }, classNames: {
752
- gridLines: h?.xAxis?.gridLines,
753
- labels: h?.xAxis?.labels
754
- }, suffix: Xt, prefix: St, labelType: "secondary", showGridLines: !0, precision: K }) : null;
755
- const Ut = Q / 2, Ht = 0 - g.top + 15, kt = r?.xAxis?.title, Rt = h?.xAxis?.title;
756
- t[77] !== s || t[78] !== Ut || t[79] !== Ht || t[80] !== kt || t[81] !== Rt ? (st = /* @__PURE__ */ i.jsx(ke, { x: Ut, y: Ht, style: kt, className: Rt, text: s }), t[77] = s, t[78] = Ut, t[79] = Ht, t[80] = kt, t[81] = Rt, t[82] = st) : st = t[82], t[83] !== q ? (Ct = q.filter(Ri).map(Wi), t[83] = q, t[84] = Ct) : Ct = t[84], U = De, vt = qt.map((a) => _t(Lt(a.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", variants: {
811
+ gridLines: g?.xAxis?.gridLines,
812
+ labels: g?.xAxis?.labels
813
+ }, suffix: qt, prefix: Ut, labelType: "secondary", showGridLines: !0, precision: rt }) : null;
814
+ const Lt = bt / 2, Kt = 0 - w.top + 15, N = d?.xAxis?.title, T = g?.xAxis?.title;
815
+ t[82] !== s || t[83] !== Lt || t[84] !== Kt || t[85] !== N || t[86] !== T ? (ot = /* @__PURE__ */ i.jsx(De, { x: Lt, y: Kt, style: N, className: T, text: s }), t[82] = s, t[83] = Lt, t[84] = Kt, t[85] = N, t[86] = T, t[87] = ot) : ot = t[87], t[88] !== Z ? (dt = Z.filter(Ki).map(Ji), t[88] = Z, t[89] = dt) : dt = t[89], Vt = Ne, At = ct.map((o) => ie(f(o.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", variants: {
757
816
  initial: {
758
- opacity: w ? a.color && D[I.indexOf(a.color)] === w ? 1 : A : et.length !== 0 ? et.indexOf(a.label) !== -1 ? 0.85 : A : 0.85
817
+ opacity: M ? o.color && P[lt.indexOf(o.color)] === M ? 1 : k : J.length !== 0 ? J.indexOf(o.label) !== -1 ? 0.85 : k : 0.85
759
818
  },
760
819
  whileInView: {
761
- opacity: w ? a.color && D[I.indexOf(a.color)] === w ? 1 : A : et.length !== 0 ? et.indexOf(a.label) !== -1 ? 0.85 : A : 0.85,
820
+ opacity: M ? o.color && P[lt.indexOf(o.color)] === M ? 1 : k : J.length !== 0 ? J.indexOf(o.label) !== -1 ? 0.85 : k : 0.85,
762
821
  transition: {
763
822
  duration: x.duration
764
823
  }
765
824
  }
766
- }, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
825
+ }, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
767
826
  opacity: 0,
768
827
  transition: {
769
828
  duration: x.duration
770
829
  }
771
- }, onMouseEnter: (p) => {
772
- f(a), it(p.clientY), Dt(p.clientX), dt?.(a);
830
+ }, onMouseEnter: (h) => {
831
+ y(o), xt(h.clientY), Yt(h.clientX), kt?.(o);
773
832
  }, onClick: () => {
774
- (J || u) && (Ae(Y, a) && H ? (N(void 0), J?.(void 0)) : (N(a), J?.(a)));
775
- }, onMouseMove: (p) => {
776
- f(a), it(p.clientY), Dt(p.clientX);
833
+ (nt || c) && (Ce(it, o) && et ? (W(void 0), nt?.(void 0)) : (W(o), nt?.(o)));
834
+ }, onMouseMove: (h) => {
835
+ y(o), xt(h.clientY), Yt(h.clientX);
777
836
  }, onMouseLeave: () => {
778
- f(void 0), Dt(void 0), it(void 0), dt?.(void 0);
837
+ y(void 0), Yt(void 0), xt(void 0), kt?.(void 0);
779
838
  }, children: [
780
- a.size ? /* @__PURE__ */ i.jsx(Zt.rect, { variants: {
839
+ o.size ? /* @__PURE__ */ i.jsx(ee.rect, { variants: {
781
840
  initial: {
782
841
  width: 0,
783
- x: Nt(0),
784
- y: Lt(`${a.id}`),
785
- fill: m.filter(Gi).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray
842
+ x: p(0),
843
+ y: f(`${o.id}`),
844
+ fill: a.filter(Ui).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray
786
845
  },
787
846
  whileInView: {
788
- width: a.size >= 0 ? Nt(a.size) - Nt(0) : Nt(0) - Nt(a.size),
789
- x: a.size >= 0 ? Nt(0) : Nt(a.size),
790
- y: Lt(`${a.id}`),
791
- fill: m.filter(Ei).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray,
847
+ width: o.size >= 0 ? p(o.size) - p(0) : p(0) - p(o.size),
848
+ x: o.size >= 0 ? p(0) : p(o.size),
849
+ y: f(`${o.id}`),
850
+ fill: a.filter(qi).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray,
792
851
  transition: {
793
852
  duration: x.duration
794
853
  }
795
854
  }
796
- }, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
855
+ }, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
797
856
  width: 0,
798
- x: Nt(0),
857
+ x: p(0),
799
858
  transition: {
800
859
  duration: x.duration
801
860
  }
802
- }, height: Lt.bandwidth() }) : null,
803
- tt ? /* @__PURE__ */ i.jsx(Be, { value: `${a.label}`.length < M ? `${a.label}` : `${`${a.label}`.substring(0, M)}...`, y: Lt(a.id) || 0, x: (a.size || 0) < 0 ? Nt(0) : 0 - g.left, width: (a.size || 0) < 0 ? j - Nt(0) : Nt(0) + g.left, height: Lt.bandwidth(), alignment: a.size && a.size < 0 ? "left" : "right", style: r?.yAxis?.labels, className: h?.yAxis?.labels, animate: x, isInView: c }) : null,
804
- _ ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
805
- textAnchor: a.size && a.size < 0 ? "end" : "start",
806
- ...r?.graphObjectValues || {}
807
- }, className: pe("graph-value text-sm", !o && D.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", h?.graphObjectValues), dx: a.size && a.size < 0 ? -5 : 5, dy: "0.33em", variants: {
861
+ }, height: f.bandwidth() }) : null,
862
+ at ? /* @__PURE__ */ i.jsx(We, { value: `${o.label}`.length < B ? `${o.label}` : `${`${o.label}`.substring(0, B)}...`, y: f(o.id) || 0, x: (o.size || 0) < 0 ? p(0) : 0 - w.left, width: (o.size || 0) < 0 ? q - p(0) : p(0) + w.left, height: f.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: g?.yAxis?.labels, animate: x, isInView: n }) : null,
863
+ Ot ? /* @__PURE__ */ i.jsx(ee.text, { style: {
864
+ textAnchor: o.size && o.size < 0 ? "end" : "start",
865
+ ...d?.graphObjectValues || {}
866
+ }, className: be("graph-value text-sm", !l && P.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", g?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
808
867
  initial: {
809
- x: Nt(0),
810
- y: Lt(`${a.id}`) + Lt.bandwidth() / 2,
868
+ x: p(0),
869
+ y: f(`${o.id}`) + f.bandwidth() / 2,
811
870
  opacity: 0,
812
- fill: o || (m.filter(Yi).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray)
871
+ fill: l || (a.filter(Ri).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray)
813
872
  },
814
873
  whileInView: {
815
- x: a.size ? Nt(a.size) : Nt(0),
874
+ x: o.size ? p(o.size) : p(0),
816
875
  opacity: 1,
817
- y: Lt(`${a.id}`) + Lt.bandwidth() / 2,
818
- fill: o || (m.filter(Xi).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray),
876
+ y: f(`${o.id}`) + f.bandwidth() / 2,
877
+ fill: l || (a.filter(Gi).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray),
819
878
  transition: {
820
879
  duration: x.duration
821
880
  }
822
881
  }
823
- }, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
882
+ }, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
824
883
  opacity: 0,
825
884
  transition: {
826
885
  duration: x.duration
827
886
  }
828
- }, children: ue(a.size, rt, K, St, Xt) }) : null
829
- ] }, a.label));
830
- const Jt = h?.yAxis?.axis;
831
- let z;
832
- t[85] !== Jt ? (z = {
833
- axis: Jt
834
- }, t[85] = Jt, t[86] = z) : z = t[86];
835
- const v = r?.yAxis?.axis;
836
- let k;
837
- t[87] !== v ? (k = {
838
- axis: v
839
- }, t[87] = v, t[88] = k) : k = t[88], wt = /* @__PURE__ */ i.jsx(Oe, { x1: Nt(F < 0 ? 0 : F), x2: Nt(F < 0 ? 0 : F), y1: -2.5, y2: Z + g.bottom, classNames: z, styles: k }), ot = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((a, p) => /* @__PURE__ */ i.jsx(Fe, { text: a.text, color: a.color, x: Nt(a.value), y1: 0 - g.top, y2: Z + g.bottom, textSide: Nt(a.value) > Q * 0.75 || xt ? "left" : "right", classNames: a.classNames, styles: a.styles, animate: x, isInView: c }, p)) }) : null, t[8] = x, t[9] = s, t[10] = D, t[11] = gt, t[12] = h?.graphObjectValues, t[13] = h?.xAxis?.gridLines, t[14] = h?.xAxis?.labels, t[15] = h?.xAxis?.title, t[16] = h?.yAxis?.axis, t[17] = h?.yAxis?.labels, t[18] = I, t[19] = q, t[20] = m, t[21] = u, t[22] = A, t[23] = Z, t[24] = Q, t[25] = y, t[26] = et, t[27] = c, t[28] = W, t[29] = g.bottom, t[30] = g.left, t[31] = g.top, t[32] = B, t[33] = G, t[34] = R, t[35] = F, t[36] = Y, t[37] = rt, t[38] = d, t[39] = J, t[40] = dt, t[41] = K, t[42] = St, t[43] = Tt, t[44] = H, t[45] = xt, t[46] = w, t[47] = tt, t[48] = ct, t[49] = _, t[50] = r?.graphObjectValues, t[51] = r?.xAxis?.gridLines, t[52] = r?.xAxis?.labels, t[53] = r?.xAxis?.title, t[54] = r?.yAxis?.axis, t[55] = r?.yAxis?.labels, t[56] = Xt, t[57] = Ft, t[58] = M, t[59] = o, t[60] = j, t[61] = U, t[62] = V, t[63] = ht, t[64] = Mt, t[65] = st, t[66] = Ct, t[67] = E, t[68] = at, t[69] = P, t[70] = ft, t[71] = pt, t[72] = vt, t[73] = wt, t[74] = ot;
887
+ }, children: fe(o.size, pt, rt, Ut, qt) }) : null
888
+ ] }, o.label));
889
+ const Rt = g?.yAxis?.axis;
890
+ let X;
891
+ t[90] !== Rt ? (X = {
892
+ axis: Rt
893
+ }, t[90] = Rt, t[91] = X) : X = t[91];
894
+ const V = d?.yAxis?.axis;
895
+ let R;
896
+ t[92] !== V ? (R = {
897
+ axis: V
898
+ }, t[92] = V, t[93] = R) : R = t[93], G = /* @__PURE__ */ i.jsx(ze, { x1: p(D < 0 ? 0 : D), x2: p(D < 0 ? 0 : D), y1: -2.5, y2: Wt + w.bottom, classNames: X, styles: R }), I = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((o, h) => /* @__PURE__ */ i.jsx(Ye, { text: o.text, color: o.color, x: p(o.value), y1: 0 - w.top, y2: Wt + w.bottom, textSide: p(o.value) > bt * 0.75 || mt ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: x, isInView: n }, h)) }) : null, t[14] = x, t[15] = s, t[16] = P, t[17] = Nt, t[18] = It, t[19] = g?.graphObjectValues, t[20] = g?.xAxis?.gridLines, t[21] = g?.xAxis?.labels, t[22] = g?.xAxis?.title, t[23] = g?.yAxis?.axis, t[24] = g?.yAxis?.labels, t[25] = lt, t[26] = Z, t[27] = a, t[28] = ct, t[29] = c, t[30] = k, t[31] = Wt, t[32] = bt, t[33] = A, t[34] = J, t[35] = n, t[36] = w.bottom, t[37] = w.left, t[38] = w.top, t[39] = L, t[40] = H, t[41] = Q, t[42] = D, t[43] = it, t[44] = pt, t[45] = m, t[46] = nt, t[47] = kt, t[48] = rt, t[49] = Ut, t[50] = Xt, t[51] = et, t[52] = mt, t[53] = M, t[54] = at, t[55] = Tt, t[56] = Ot, t[57] = d?.graphObjectValues, t[58] = d?.xAxis?.gridLines, t[59] = d?.xAxis?.labels, t[60] = d?.xAxis?.title, t[61] = d?.yAxis?.axis, t[62] = d?.yAxis?.labels, t[63] = qt, t[64] = Jt, t[65] = B, t[66] = l, t[67] = q, t[68] = Vt, t[69] = zt, t[70] = G, t[71] = I, t[72] = z, t[73] = ht, t[74] = ot, t[75] = dt, t[76] = vt, t[77] = _, t[78] = ut, t[79] = wt, t[80] = st, t[81] = At;
840
899
  } else
841
- U = t[61], V = t[62], ht = t[63], Mt = t[64], st = t[65], Ct = t[66], E = t[67], at = t[68], P = t[69], ft = t[70], pt = t[71], vt = t[72], wt = t[73], ot = t[74];
842
- let At;
843
- t[89] !== U || t[90] !== vt || t[91] !== wt || t[92] !== ot ? (At = /* @__PURE__ */ i.jsxs(U, { children: [
844
- vt,
845
- wt,
846
- ot
847
- ] }), t[89] = U, t[90] = vt, t[91] = wt, t[92] = ot, t[93] = At) : At = t[93];
900
+ Vt = t[68], zt = t[69], G = t[70], I = t[71], z = t[72], ht = t[73], ot = t[74], dt = t[75], vt = t[76], _ = t[77], ut = t[78], wt = t[79], st = t[80], At = t[81];
848
901
  let $t;
849
- t[94] !== q ? ($t = q.filter(Hi).map(Fi), t[94] = q, t[95] = $t) : $t = t[95];
850
- let Ot;
851
- t[96] !== ht || t[97] !== Mt || t[98] !== st || t[99] !== Ct || t[100] !== At || t[101] !== $t ? (Ot = /* @__PURE__ */ i.jsxs("g", { transform: ht, children: [
852
- Mt,
853
- st,
854
- Ct,
902
+ t[94] !== Vt || t[95] !== G || t[96] !== I || t[97] !== At ? ($t = /* @__PURE__ */ i.jsxs(Vt, { children: [
855
903
  At,
856
- $t
857
- ] }), t[96] = ht, t[97] = Mt, t[98] = st, t[99] = Ct, t[100] = At, t[101] = $t, t[102] = Ot) : Ot = t[102];
904
+ G,
905
+ I
906
+ ] }), t[94] = Vt, t[95] = G, t[96] = I, t[97] = At, t[98] = $t) : $t = t[98];
858
907
  let b;
859
- t[103] !== V || t[104] !== E || t[105] !== at || t[106] !== P || t[107] !== ft || t[108] !== pt || t[109] !== Ot ? (b = /* @__PURE__ */ i.jsx(V, { ref: E, width: at, height: P, viewBox: ft, direction: pt, children: Ot }), t[103] = V, t[104] = E, t[105] = at, t[106] = P, t[107] = ft, t[108] = pt, t[109] = Ot, t[110] = b) : b = t[110];
860
- let lt;
861
- t[111] !== h?.tooltip || t[112] !== $ || t[113] !== bt || t[114] !== T || t[115] !== r?.tooltip || t[116] !== ut ? (lt = T && ut && $ && bt ? /* @__PURE__ */ i.jsx($e, { data: T, body: ut, xPos: $, yPos: bt, backgroundStyle: r?.tooltip, className: h?.tooltip }) : null, t[111] = h?.tooltip, t[112] = $, t[113] = bt, t[114] = T, t[115] = r?.tooltip, t[116] = ut, t[117] = lt) : lt = t[117];
862
- let It;
863
- t[118] !== h?.modal || t[119] !== u || t[120] !== Y ? (It = u && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: u, data: Y, setData: N, className: h?.modal }) : null, t[118] = h?.modal, t[119] = u, t[120] = Y, t[121] = It) : It = t[121];
864
- let Et;
865
- return t[122] !== b || t[123] !== lt || t[124] !== It ? (Et = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
866
- b,
867
- lt,
868
- It
869
- ] }), t[122] = b, t[123] = lt, t[124] = It, t[125] = Et) : Et = t[125], Et;
908
+ t[99] !== Z ? (b = Z.filter(Ei).map(Yi), t[99] = Z, t[100] = b) : b = t[100];
909
+ let $;
910
+ t[101] !== z || t[102] !== ht || t[103] !== ot || t[104] !== dt || t[105] !== $t || t[106] !== b ? ($ = /* @__PURE__ */ i.jsxs("g", { transform: z, children: [
911
+ ht,
912
+ ot,
913
+ dt,
914
+ $t,
915
+ b
916
+ ] }), t[101] = z, t[102] = ht, t[103] = ot, t[104] = dt, t[105] = $t, t[106] = b, t[107] = $) : $ = t[107];
917
+ let O;
918
+ t[108] !== zt || t[109] !== vt || t[110] !== _ || t[111] !== ut || t[112] !== wt || t[113] !== st || t[114] !== $ ? (O = /* @__PURE__ */ i.jsx(zt, { ref: vt, width: _, height: ut, viewBox: wt, direction: st, children: $ }), t[108] = zt, t[109] = vt, t[110] = _, t[111] = ut, t[112] = wt, t[113] = st, t[114] = $, t[115] = O) : O = t[115];
919
+ let v;
920
+ t[116] !== g?.tooltip || t[117] !== C || t[118] !== yt || t[119] !== F || t[120] !== d?.tooltip || t[121] !== Mt ? (v = F && Mt && C && yt ? /* @__PURE__ */ i.jsx(Ve, { data: F, body: Mt, xPos: C, yPos: yt, backgroundStyle: d?.tooltip, className: g?.tooltip }) : null, t[116] = g?.tooltip, t[117] = C, t[118] = yt, t[119] = F, t[120] = d?.tooltip, t[121] = Mt, t[122] = v) : v = t[122];
921
+ let ft;
922
+ t[123] !== g?.modal || t[124] !== c || t[125] !== it ? (ft = c && it !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: c, data: it, setData: W, className: g?.modal }) : null, t[123] = g?.modal, t[124] = c, t[125] = it, t[126] = ft) : ft = t[126];
923
+ let j;
924
+ return t[127] !== O || t[128] !== v || t[129] !== ft ? (j = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
925
+ O,
926
+ v,
927
+ ft
928
+ ] }), t[127] = O, t[128] = v, t[129] = ft, t[130] = j) : j = t[130], j;
870
929
  }
871
- function Fi(e) {
930
+ function Yi(e) {
872
931
  return e.layer;
873
932
  }
874
- function Hi(e) {
933
+ function Ei(e) {
875
934
  return e.position === "after";
876
935
  }
877
- function Xi(e) {
936
+ function Gi(e) {
878
937
  return e.color;
879
938
  }
880
- function Yi(e) {
939
+ function Ri(e) {
881
940
  return e.color;
882
941
  }
883
- function Ei(e) {
942
+ function qi(e) {
884
943
  return e.color;
885
944
  }
886
- function Gi(e) {
945
+ function Ui(e) {
887
946
  return e.color;
888
947
  }
889
- function Wi(e) {
948
+ function Ji(e) {
890
949
  return e.layer;
891
950
  }
892
- function Ri(e) {
951
+ function Ki(e) {
893
952
  return e.position === "before";
894
953
  }
895
- function qi(e) {
954
+ function Qi(e) {
896
955
  return e !== 0;
897
956
  }
898
- function Ui(e) {
957
+ function Zi(e) {
899
958
  return e !== 0;
900
959
  }
901
- function Ji(e) {
960
+ function _i(e) {
902
961
  return `${e.id}`;
903
962
  }
904
- function Ki(e) {
905
- const t = xe.c(134), {
906
- leftMargin: m,
907
- rightMargin: D,
908
- topMargin: Xt,
909
- bottomMargin: St,
910
- data: gt,
911
- width: _,
912
- height: ct,
913
- barColor: M,
914
- suffix: j,
915
- prefix: y,
916
- barPadding: I,
917
- showLabels: zt,
918
- showValues: nt,
919
- showTicks: jt,
920
- colorDomain: S,
921
- truncateBy: tt,
922
- tooltip: ut,
923
- onSeriesMouseOver: dt,
924
- refValues: Tt,
925
- selectedColor: w,
926
- maxValue: et,
927
- minValue: G,
928
- highlightedDataPoints: F,
929
- onSeriesMouseClick: J,
930
- labelOrder: W,
931
- maxBarThickness: xt,
932
- minBarThickness: B,
933
- resetSelectionOnDoubleClick: R,
934
- detailsOnClick: H,
935
- barAxisTitle: u,
963
+ function ts(e) {
964
+ return {
965
+ id: e,
966
+ label: e,
967
+ color: null,
968
+ size: null
969
+ };
970
+ }
971
+ function es(e) {
972
+ const t = ge.c(139), {
973
+ leftMargin: a,
974
+ rightMargin: P,
975
+ topMargin: qt,
976
+ bottomMargin: Ut,
977
+ data: It,
978
+ width: Ot,
979
+ height: Tt,
980
+ barColor: B,
981
+ suffix: q,
982
+ prefix: A,
983
+ barPadding: lt,
984
+ showLabels: St,
985
+ showValues: tt,
986
+ showTicks: Et,
987
+ colorDomain: U,
988
+ truncateBy: at,
989
+ tooltip: Mt,
990
+ onSeriesMouseOver: kt,
991
+ refValues: Xt,
992
+ selectedColor: M,
993
+ maxValue: J,
994
+ minValue: H,
995
+ highlightedDataPoints: D,
996
+ onSeriesMouseClick: nt,
997
+ labelOrder: K,
998
+ maxBarThickness: mt,
999
+ minBarThickness: L,
1000
+ resetSelectionOnDoubleClick: Q,
1001
+ detailsOnClick: et,
1002
+ barAxisTitle: c,
936
1003
  valueColor: s,
937
- noOfTicks: o,
938
- styles: d,
939
- classNames: r,
940
- dimmedOpacity: h,
1004
+ noOfTicks: l,
1005
+ styles: m,
1006
+ classNames: d,
1007
+ dimmedOpacity: g,
941
1008
  animate: x,
942
- precision: A,
943
- customLayers: K,
944
- naLabel: q
945
- } = e, rt = m === void 0 ? 20 : m, Ft = D === void 0 ? 20 : D, Yt = Xt === void 0 ? 20 : Xt, X = St === void 0 ? 25 : St, yt = de(null);
946
- let Bt;
947
- t[0] !== x.amount || t[1] !== x.once ? (Bt = {
1009
+ precision: k,
1010
+ customLayers: rt,
1011
+ naLabel: Z
1012
+ } = e, pt = a === void 0 ? 20 : a, Jt = P === void 0 ? 20 : P, Gt = qt === void 0 ? 20 : qt, Y = Ut === void 0 ? 25 : Ut, gt = pe(null);
1013
+ let Ht;
1014
+ t[0] !== x.amount || t[1] !== x.once ? (Ht = {
948
1015
  once: x.once,
949
1016
  amount: x.amount
950
- }, t[0] = x.amount, t[1] = x.once, t[2] = Bt) : Bt = t[2];
951
- const n = Ce(yt, Bt), c = u ? rt + 30 : rt;
952
- let T;
953
- t[3] !== X || t[4] !== Ft || t[5] !== c || t[6] !== Yt ? (T = {
954
- top: Yt,
955
- bottom: X,
956
- left: c,
957
- right: Ft
958
- }, t[3] = X, t[4] = Ft, t[5] = c, t[6] = Yt, t[7] = T) : T = t[7];
959
- const f = T, [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), [mt, C] = Wt(void 0), g = _ - f.left - f.right, Q = ct - f.top - f.bottom;
960
- let Z, U, V, ht, Mt, st, Ct, E, at, P, ft, pt, vt, wt;
961
- if (t[8] !== x || t[9] !== u || t[10] !== M || t[11] !== I || t[12] !== r?.graphObjectValues || t[13] !== r?.xAxis?.axis || t[14] !== r?.xAxis?.labels || t[15] !== r?.yAxis?.gridLines || t[16] !== r?.yAxis?.labels || t[17] !== r?.yAxis?.title || t[18] !== S || t[19] !== K || t[20] !== gt || t[21] !== H || t[22] !== h || t[23] !== Q || t[24] !== g || t[25] !== ct || t[26] !== F || t[27] !== n || t[28] !== W || t[29] !== rt || t[30] !== f.bottom || t[31] !== f.left || t[32] !== f.right || t[33] !== f.top || t[34] !== xt || t[35] !== et || t[36] !== B || t[37] !== G || t[38] !== $ || t[39] !== q || t[40] !== o || t[41] !== J || t[42] !== dt || t[43] !== A || t[44] !== y || t[45] !== Tt || t[46] !== R || t[47] !== w || t[48] !== zt || t[49] !== jt || t[50] !== nt || t[51] !== d?.graphObjectValues || t[52] !== d?.xAxis?.axis || t[53] !== d?.xAxis?.labels || t[54] !== d?.yAxis?.gridLines || t[55] !== d?.yAxis?.labels || t[56] !== d?.yAxis?.title || t[57] !== j || t[58] !== tt || t[59] !== s || t[60] !== _) {
962
- const Et = Ve().domain([G, et]).range([Q, 0]).nice();
963
- let O;
964
- t[75] !== W ? (O = (l, ie) => ({
965
- ...l,
966
- id: W ? `${l.label}` : `${ie}`
967
- }), t[75] = W, t[76] = O) : O = t[76];
968
- const qt = gt.map(O), Nt = W || qt.map(ns), Kt = ge().domain(Nt).range([0, B ? Math.max(g, B * Nt.length) : xt ? Math.min(g, xt * Nt.length) : g]).paddingInner(I), Lt = Et.ticks(o);
969
- U = Zt.svg, Ct = yt, E = `${_}px`, at = `${ct}px`, P = `0 0 ${_} ${ct}`, ft = "ltr", wt = `translate(${f.left},${f.top})`;
970
- const Qt = Et(G < 0 ? 0 : G), Ut = Et(G < 0 ? 0 : G), Ht = G < 0 ? 0 : G;
971
- let kt;
972
- t[77] !== q || t[78] !== A || t[79] !== y || t[80] !== j || t[81] !== Ht ? (kt = ue(Ht, q, A, y, j), t[77] = q, t[78] = A, t[79] = y, t[80] = j, t[81] = Ht, t[82] = kt) : kt = t[82];
973
- const Rt = r?.xAxis?.axis, Jt = r?.yAxis?.labels;
974
- let z;
975
- t[83] !== Rt || t[84] !== Jt ? (z = {
976
- axis: Rt,
977
- label: Jt
978
- }, t[83] = Rt, t[84] = Jt, t[85] = z) : z = t[85];
979
- const v = d?.xAxis?.axis, k = d?.yAxis?.labels;
980
- let a;
981
- t[86] !== v || t[87] !== k ? (a = {
982
- axis: v,
983
- label: k
984
- }, t[86] = v, t[87] = k, t[88] = a) : a = t[88], V = /* @__PURE__ */ i.jsx(Oe, { y1: Qt, y2: Ut, x1: 0 - rt, x2: g + f.right, label: kt, labelPos: {
985
- x: 0 - rt,
1017
+ }, t[0] = x.amount, t[1] = x.once, t[2] = Ht) : Ht = t[2];
1018
+ const r = Ie(gt, Ht), n = c ? pt + 30 : pt;
1019
+ let F;
1020
+ t[3] !== Y || t[4] !== Jt || t[5] !== n || t[6] !== Gt ? (F = {
1021
+ top: Gt,
1022
+ bottom: Y,
1023
+ left: n,
1024
+ right: Jt
1025
+ }, t[3] = Y, t[4] = Jt, t[5] = n, t[6] = Gt, t[7] = F) : F = t[7];
1026
+ const y = F, [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), [Ct, E] = Zt(void 0), w = Ot - y.left - y.right, bt = Tt - y.top - y.bottom;
1027
+ let Wt;
1028
+ if (t[8] !== It || t[9] !== K) {
1029
+ const j = /* @__PURE__ */ new Set(), p = It.map((Dt, Lt) => {
1030
+ const Kt = K ? `${Dt.label}` : `${Lt}`;
1031
+ return j.add(Kt), {
1032
+ ...Dt,
1033
+ id: Kt
1034
+ };
1035
+ }), f = K ? K.filter((Dt) => !j.has(Dt)) : [];
1036
+ Wt = [...p, ...f.map(xs)], t[8] = It, t[9] = K, t[10] = Wt;
1037
+ } else
1038
+ Wt = t[10];
1039
+ const jt = Wt;
1040
+ let ct;
1041
+ t[11] !== jt || t[12] !== K ? (ct = K ?? jt.map(ms), t[11] = jt, t[12] = K, t[13] = ct) : ct = t[13];
1042
+ const Ft = ct;
1043
+ let Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _, ut, wt, st;
1044
+ if (t[14] !== x || t[15] !== c || t[16] !== B || t[17] !== Ft || t[18] !== lt || t[19] !== d?.graphObjectValues || t[20] !== d?.xAxis?.axis || t[21] !== d?.xAxis?.labels || t[22] !== d?.yAxis?.gridLines || t[23] !== d?.yAxis?.labels || t[24] !== d?.yAxis?.title || t[25] !== U || t[26] !== rt || t[27] !== It || t[28] !== jt || t[29] !== et || t[30] !== g || t[31] !== bt || t[32] !== w || t[33] !== Tt || t[34] !== D || t[35] !== r || t[36] !== pt || t[37] !== y.bottom || t[38] !== y.left || t[39] !== y.right || t[40] !== y.top || t[41] !== mt || t[42] !== J || t[43] !== L || t[44] !== H || t[45] !== C || t[46] !== Z || t[47] !== l || t[48] !== nt || t[49] !== kt || t[50] !== k || t[51] !== A || t[52] !== Xt || t[53] !== Q || t[54] !== M || t[55] !== St || t[56] !== Et || t[57] !== tt || t[58] !== m?.graphObjectValues || t[59] !== m?.xAxis?.axis || t[60] !== m?.xAxis?.labels || t[61] !== m?.yAxis?.gridLines || t[62] !== m?.yAxis?.labels || t[63] !== m?.yAxis?.title || t[64] !== q || t[65] !== at || t[66] !== s || t[67] !== Ot) {
1045
+ const j = je().domain([H, J]).range([bt, 0]).nice(), p = ve().domain(Ft).range([0, L ? Math.max(w, L * Ft.length) : mt ? Math.min(w, mt * Ft.length) : w]).paddingInner(lt), f = j.ticks(l);
1046
+ Vt = ee.svg, dt = gt, vt = `${Ot}px`, _ = `${Tt}px`, ut = `0 0 ${Ot} ${Tt}`, wt = "ltr", G = `translate(${y.left},${y.top})`;
1047
+ const Dt = j(H < 0 ? 0 : H), Lt = j(H < 0 ? 0 : H), Kt = H < 0 ? 0 : H;
1048
+ let N;
1049
+ t[82] !== Z || t[83] !== k || t[84] !== A || t[85] !== q || t[86] !== Kt ? (N = fe(Kt, Z, k, A, q), t[82] = Z, t[83] = k, t[84] = A, t[85] = q, t[86] = Kt, t[87] = N) : N = t[87];
1050
+ const T = d?.xAxis?.axis, Rt = d?.yAxis?.labels;
1051
+ let X;
1052
+ t[88] !== T || t[89] !== Rt ? (X = {
1053
+ axis: T,
1054
+ label: Rt
1055
+ }, t[88] = T, t[89] = Rt, t[90] = X) : X = t[90];
1056
+ const V = m?.xAxis?.axis, R = m?.yAxis?.labels;
1057
+ let o;
1058
+ t[91] !== V || t[92] !== R ? (o = {
1059
+ axis: V,
1060
+ label: R
1061
+ }, t[91] = V, t[92] = R, t[93] = o) : o = t[93], I = /* @__PURE__ */ i.jsx(ze, { y1: Dt, y2: Lt, x1: 0 - pt, x2: w + y.right, label: N, labelPos: {
1062
+ x: 0 - pt,
986
1063
  dx: 0,
987
- dy: et < 0 ? "1em" : -5,
988
- y: Et(G < 0 ? 0 : G)
989
- }, classNames: z, styles: a }), ht = jt ? /* @__PURE__ */ i.jsx(Xe, { values: Lt.filter(ls), y: Lt.filter(os).map((l) => Et(l)), x1: 0 - rt, x2: g + f.right, styles: {
1064
+ dy: J < 0 ? "1em" : -5,
1065
+ y: j(H < 0 ? 0 : H)
1066
+ }, classNames: X, styles: o }), z = Et ? /* @__PURE__ */ i.jsx(Ge, { values: f.filter(us), y: f.filter(ds).map((u) => j(u)), x1: 0 - pt, x2: w + y.right, styles: {
1067
+ gridLines: m?.yAxis?.gridLines,
1068
+ labels: m?.yAxis?.labels
1069
+ }, classNames: {
990
1070
  gridLines: d?.yAxis?.gridLines,
991
1071
  labels: d?.yAxis?.labels
992
- }, classNames: {
993
- gridLines: r?.yAxis?.gridLines,
994
- labels: r?.yAxis?.labels
995
- }, suffix: j, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: A }) : null;
996
- const p = 0 - rt - 15, ee = Q / 2, L = d?.yAxis?.title, Vt = r?.yAxis?.title;
997
- t[89] !== u || t[90] !== p || t[91] !== ee || t[92] !== L || t[93] !== Vt ? (Mt = /* @__PURE__ */ i.jsx(ke, { x: p, y: ee, style: L, className: Vt, text: u, rotate90: !0 }), t[89] = u, t[90] = p, t[91] = ee, t[92] = L, t[93] = Vt, t[94] = Mt) : Mt = t[94], t[95] !== K ? (st = K.filter(as).map(ss), t[95] = K, t[96] = st) : st = t[96], Z = De, pt = qt.map((l, ie) => _t(Kt(l.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: n ? "whileInView" : "initial", variants: {
1072
+ }, suffix: q, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: k }) : null;
1073
+ const h = 0 - pt - 15, _t = bt / 2, S = m?.yAxis?.title, Bt = d?.yAxis?.title;
1074
+ t[94] !== c || t[95] !== h || t[96] !== _t || t[97] !== S || t[98] !== Bt ? (ht = /* @__PURE__ */ i.jsx(De, { x: h, y: _t, style: S, className: Bt, text: c, rotate90: !0 }), t[94] = c, t[95] = h, t[96] = _t, t[97] = S, t[98] = Bt, t[99] = ht) : ht = t[99], t[100] !== rt ? (ot = rt.filter(cs).map(rs), t[100] = rt, t[101] = ot) : ot = t[101], Nt = Ne, st = jt.map((u, se) => ie(p(u.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
998
1075
  initial: {
999
- opacity: w ? l.color && M[S.indexOf(l.color)] === w ? 1 : h : F.length !== 0 ? F.indexOf(l.label) !== -1 ? 0.85 : h : 0.85
1076
+ opacity: M ? u.color && B[U.indexOf(u.color)] === M ? 1 : g : D.length !== 0 ? D.indexOf(u.label) !== -1 ? 0.85 : g : 0.85
1000
1077
  },
1001
1078
  whileInView: {
1002
- opacity: w ? l.color && M[S.indexOf(l.color)] === w ? 1 : h : F.length !== 0 ? F.indexOf(l.label) !== -1 ? 0.85 : h : 0.85,
1079
+ opacity: M ? u.color && B[U.indexOf(u.color)] === M ? 1 : g : D.length !== 0 ? D.indexOf(u.label) !== -1 ? 0.85 : g : 0.85,
1003
1080
  transition: {
1004
1081
  duration: x.duration
1005
1082
  }
@@ -1009,1202 +1086,1281 @@ function Ki(e) {
1009
1086
  transition: {
1010
1087
  duration: x.duration
1011
1088
  }
1012
- }, onMouseEnter: (se) => {
1013
- N(l), C(se.clientY), it(se.clientX), dt?.(l);
1089
+ }, onMouseEnter: (ae) => {
1090
+ W(u), E(ae.clientY), xt(ae.clientX), kt?.(u);
1014
1091
  }, onClick: () => {
1015
- (J || H) && (Ae($, l) && R ? (Dt(void 0), J?.(void 0)) : (Dt(l), J?.(l)));
1016
- }, onMouseMove: (se) => {
1017
- N(l), C(se.clientY), it(se.clientX);
1092
+ (nt || et) && (Ce(C, u) && Q ? (Yt(void 0), nt?.(void 0)) : (Yt(u), nt?.(u)));
1093
+ }, onMouseMove: (ae) => {
1094
+ W(u), E(ae.clientY), xt(ae.clientX);
1018
1095
  }, onMouseLeave: () => {
1019
- N(void 0), it(void 0), C(void 0), dt?.(void 0);
1096
+ W(void 0), xt(void 0), E(void 0), kt?.(void 0);
1020
1097
  }, children: [
1021
- l.size ? /* @__PURE__ */ i.jsx(Zt.rect, { width: Kt.bandwidth(), initial: "initial", animate: n ? "whileInView" : "initial", variants: {
1098
+ u.size ? /* @__PURE__ */ i.jsx(ee.rect, { width: p.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1022
1099
  initial: {
1023
1100
  height: 0,
1024
- x: Kt(`${l.id}`),
1025
- y: Et(0),
1026
- fill: gt.filter(is).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray
1101
+ x: p(`${u.id}`),
1102
+ y: j(0),
1103
+ fill: It.filter(ns).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray
1027
1104
  },
1028
1105
  whileInView: {
1029
- height: l.size ? Math.abs(Et(l.size) - Et(0)) : 0,
1030
- y: l.size && l.size > 0 ? Et(l.size) : Et(0),
1031
- x: Kt(`${l.id}`),
1032
- fill: gt.filter(es).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray,
1106
+ height: u.size ? Math.abs(j(u.size) - j(0)) : 0,
1107
+ y: u.size && u.size > 0 ? j(u.size) : j(0),
1108
+ x: p(`${u.id}`),
1109
+ fill: It.filter(os).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray,
1033
1110
  transition: {
1034
1111
  duration: x.duration
1035
1112
  }
1036
1113
  }
1037
1114
  }, exit: {
1038
1115
  height: 0,
1039
- y: Et(0),
1116
+ y: j(0),
1040
1117
  transition: {
1041
1118
  duration: x.duration
1042
1119
  }
1043
1120
  } }) : null,
1044
- zt ? /* @__PURE__ */ i.jsx(Ye, { value: `${l.label}`.length < tt ? `${l.label}` : `${`${l.label}`.substring(0, tt)}...`, y: (l.size || 0) < 0 ? 0 : Et(0) + 5, x: Kt(`${l.id}`), width: Kt.bandwidth(), height: (l.size || 0) < 0 ? Et(0) - 5 : f.bottom, style: d?.xAxis?.labels, className: r?.xAxis?.labels, alignment: (l.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: n }) : null,
1045
- nt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1121
+ St ? /* @__PURE__ */ i.jsx(Re, { value: `${u.label}`.length < at ? `${u.label}` : `${`${u.label}`.substring(0, at)}...`, y: (u.size || 0) < 0 ? 0 : j(0) + 5, x: p(`${u.id}`), width: p.bandwidth(), height: (u.size || 0) < 0 ? j(0) - 5 : y.bottom, style: m?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (u.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
1122
+ tt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
1046
1123
  textAnchor: "middle",
1047
- ...d?.graphObjectValues || {}
1048
- }, className: pe("graph-value text-sm", !s && M.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", r?.graphObjectValues), dy: l.size ? l.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1124
+ ...m?.graphObjectValues || {}
1125
+ }, className: be("graph-value text-sm", !s && B.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: u.size ? u.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1049
1126
  initial: {
1050
- x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
1051
- y: Et(0),
1127
+ x: p(`${u.id}`) + p.bandwidth() / 2,
1128
+ y: j(0),
1052
1129
  opacity: 0,
1053
- fill: s || (gt.filter(ts).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray)
1130
+ fill: s || (It.filter(as).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray)
1054
1131
  },
1055
1132
  whileInView: {
1056
- x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
1057
- y: Et(l.size || 0),
1058
- fill: s || (gt.filter(_i).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray),
1133
+ x: p(`${u.id}`) + p.bandwidth() / 2,
1134
+ y: j(u.size || 0),
1135
+ fill: s || (It.filter(ls).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray),
1059
1136
  opacity: 1,
1060
1137
  transition: {
1061
1138
  duration: x.duration
1062
1139
  }
1063
1140
  }
1064
- }, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
1141
+ }, initial: "initial", animate: r ? "whileInView" : "initial", exit: {
1065
1142
  opacity: 0,
1066
1143
  transition: {
1067
1144
  duration: x.duration
1068
1145
  }
1069
- }, children: ue(l.size, q, A, y, j) }) : null
1070
- ] }, l.label)), vt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((l, ie) => /* @__PURE__ */ i.jsx(He, { text: l.text, color: l.color, y: Et(l.value), x1: 0 - rt, x2: g + f.right, classNames: l.classNames, styles: l.styles, animate: x, isInView: n }, ie)) }) : null, t[8] = x, t[9] = u, t[10] = M, t[11] = I, t[12] = r?.graphObjectValues, t[13] = r?.xAxis?.axis, t[14] = r?.xAxis?.labels, t[15] = r?.yAxis?.gridLines, t[16] = r?.yAxis?.labels, t[17] = r?.yAxis?.title, t[18] = S, t[19] = K, t[20] = gt, t[21] = H, t[22] = h, t[23] = Q, t[24] = g, t[25] = ct, t[26] = F, t[27] = n, t[28] = W, t[29] = rt, t[30] = f.bottom, t[31] = f.left, t[32] = f.right, t[33] = f.top, t[34] = xt, t[35] = et, t[36] = B, t[37] = G, t[38] = $, t[39] = q, t[40] = o, t[41] = J, t[42] = dt, t[43] = A, t[44] = y, t[45] = Tt, t[46] = R, t[47] = w, t[48] = zt, t[49] = jt, t[50] = nt, t[51] = d?.graphObjectValues, t[52] = d?.xAxis?.axis, t[53] = d?.xAxis?.labels, t[54] = d?.yAxis?.gridLines, t[55] = d?.yAxis?.labels, t[56] = d?.yAxis?.title, t[57] = j, t[58] = tt, t[59] = s, t[60] = _, t[61] = Z, t[62] = U, t[63] = V, t[64] = ht, t[65] = Mt, t[66] = st, t[67] = Ct, t[68] = E, t[69] = at, t[70] = P, t[71] = ft, t[72] = pt, t[73] = vt, t[74] = wt;
1146
+ }, children: fe(u.size, Z, k, A, q) }) : null
1147
+ ] }, u.label)), zt = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((u, se) => /* @__PURE__ */ i.jsx(Ee, { text: u.text, color: u.color, y: j(u.value), x1: 0 - pt, x2: w + y.right, classNames: u.classNames, styles: u.styles, animate: x, isInView: r }, se)) }) : null, t[14] = x, t[15] = c, t[16] = B, t[17] = Ft, t[18] = lt, t[19] = d?.graphObjectValues, t[20] = d?.xAxis?.axis, t[21] = d?.xAxis?.labels, t[22] = d?.yAxis?.gridLines, t[23] = d?.yAxis?.labels, t[24] = d?.yAxis?.title, t[25] = U, t[26] = rt, t[27] = It, t[28] = jt, t[29] = et, t[30] = g, t[31] = bt, t[32] = w, t[33] = Tt, t[34] = D, t[35] = r, t[36] = pt, t[37] = y.bottom, t[38] = y.left, t[39] = y.right, t[40] = y.top, t[41] = mt, t[42] = J, t[43] = L, t[44] = H, t[45] = C, t[46] = Z, t[47] = l, t[48] = nt, t[49] = kt, t[50] = k, t[51] = A, t[52] = Xt, t[53] = Q, t[54] = M, t[55] = St, t[56] = Et, t[57] = tt, t[58] = m?.graphObjectValues, t[59] = m?.xAxis?.axis, t[60] = m?.xAxis?.labels, t[61] = m?.yAxis?.gridLines, t[62] = m?.yAxis?.labels, t[63] = m?.yAxis?.title, t[64] = q, t[65] = at, t[66] = s, t[67] = Ot, t[68] = Nt, t[69] = Vt, t[70] = zt, t[71] = G, t[72] = I, t[73] = z, t[74] = ht, t[75] = ot, t[76] = dt, t[77] = vt, t[78] = _, t[79] = ut, t[80] = wt, t[81] = st;
1071
1148
  } else
1072
- Z = t[61], U = t[62], V = t[63], ht = t[64], Mt = t[65], st = t[66], Ct = t[67], E = t[68], at = t[69], P = t[70], ft = t[71], pt = t[72], vt = t[73], wt = t[74];
1073
- let ot;
1074
- t[97] !== Z || t[98] !== pt || t[99] !== vt ? (ot = /* @__PURE__ */ i.jsxs(Z, { children: [
1075
- pt,
1076
- vt
1077
- ] }), t[97] = Z, t[98] = pt, t[99] = vt, t[100] = ot) : ot = t[100];
1149
+ Nt = t[68], Vt = t[69], zt = t[70], G = t[71], I = t[72], z = t[73], ht = t[74], ot = t[75], dt = t[76], vt = t[77], _ = t[78], ut = t[79], wt = t[80], st = t[81];
1078
1150
  let At;
1079
- t[101] !== K ? (At = K.filter(Zi).map(Qi), t[101] = K, t[102] = At) : At = t[102];
1151
+ t[102] !== Nt || t[103] !== zt || t[104] !== st ? (At = /* @__PURE__ */ i.jsxs(Nt, { children: [
1152
+ st,
1153
+ zt
1154
+ ] }), t[102] = Nt, t[103] = zt, t[104] = st, t[105] = At) : At = t[105];
1080
1155
  let $t;
1081
- t[103] !== V || t[104] !== ht || t[105] !== Mt || t[106] !== st || t[107] !== ot || t[108] !== At || t[109] !== wt ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: wt, children: [
1082
- V,
1156
+ t[106] !== rt ? ($t = rt.filter(ss).map(is), t[106] = rt, t[107] = $t) : $t = t[107];
1157
+ let b;
1158
+ t[108] !== G || t[109] !== I || t[110] !== z || t[111] !== ht || t[112] !== ot || t[113] !== At || t[114] !== $t ? (b = /* @__PURE__ */ i.jsxs("g", { transform: G, children: [
1159
+ I,
1160
+ z,
1083
1161
  ht,
1084
- Mt,
1085
- st,
1086
1162
  ot,
1087
- At
1088
- ] }), t[103] = V, t[104] = ht, t[105] = Mt, t[106] = st, t[107] = ot, t[108] = At, t[109] = wt, t[110] = $t) : $t = t[110];
1089
- let Ot;
1090
- t[111] !== U || t[112] !== Ct || t[113] !== E || t[114] !== at || t[115] !== P || t[116] !== ft || t[117] !== $t ? (Ot = /* @__PURE__ */ i.jsx(U, { ref: Ct, width: E, height: at, viewBox: P, direction: ft, children: $t }), t[111] = U, t[112] = Ct, t[113] = E, t[114] = at, t[115] = P, t[116] = ft, t[117] = $t, t[118] = Ot) : Ot = t[118];
1091
- let b;
1092
- t[119] !== r?.tooltip || t[120] !== bt || t[121] !== mt || t[122] !== Y || t[123] !== d?.tooltip || t[124] !== ut ? (b = Y && ut && bt && mt ? /* @__PURE__ */ i.jsx($e, { data: Y, body: ut, xPos: bt, yPos: mt, backgroundStyle: d?.tooltip, className: r?.tooltip }) : null, t[119] = r?.tooltip, t[120] = bt, t[121] = mt, t[122] = Y, t[123] = d?.tooltip, t[124] = ut, t[125] = b) : b = t[125];
1093
- let lt;
1094
- t[126] !== r?.modal || t[127] !== H || t[128] !== $ ? (lt = H && $ !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: H, data: $, setData: Dt, className: r?.modal }) : null, t[126] = r?.modal, t[127] = H, t[128] = $, t[129] = lt) : lt = t[129];
1095
- let It;
1096
- return t[130] !== Ot || t[131] !== b || t[132] !== lt ? (It = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1097
- Ot,
1098
- b,
1099
- lt
1100
- ] }), t[130] = Ot, t[131] = b, t[132] = lt, t[133] = It) : It = t[133], It;
1163
+ At,
1164
+ $t
1165
+ ] }), t[108] = G, t[109] = I, t[110] = z, t[111] = ht, t[112] = ot, t[113] = At, t[114] = $t, t[115] = b) : b = t[115];
1166
+ let $;
1167
+ t[116] !== Vt || t[117] !== dt || t[118] !== vt || t[119] !== _ || t[120] !== ut || t[121] !== wt || t[122] !== b ? ($ = /* @__PURE__ */ i.jsx(Vt, { ref: dt, width: vt, height: _, viewBox: ut, direction: wt, children: b }), t[116] = Vt, t[117] = dt, t[118] = vt, t[119] = _, t[120] = ut, t[121] = wt, t[122] = b, t[123] = $) : $ = t[123];
1168
+ let O;
1169
+ t[124] !== d?.tooltip || t[125] !== yt || t[126] !== Ct || t[127] !== it || t[128] !== m?.tooltip || t[129] !== Mt ? (O = it && Mt && yt && Ct ? /* @__PURE__ */ i.jsx(Ve, { data: it, body: Mt, xPos: yt, yPos: Ct, backgroundStyle: m?.tooltip, className: d?.tooltip }) : null, t[124] = d?.tooltip, t[125] = yt, t[126] = Ct, t[127] = it, t[128] = m?.tooltip, t[129] = Mt, t[130] = O) : O = t[130];
1170
+ let v;
1171
+ t[131] !== d?.modal || t[132] !== et || t[133] !== C ? (v = et && C !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: et, data: C, setData: Yt, className: d?.modal }) : null, t[131] = d?.modal, t[132] = et, t[133] = C, t[134] = v) : v = t[134];
1172
+ let ft;
1173
+ return t[135] !== $ || t[136] !== O || t[137] !== v ? (ft = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1174
+ $,
1175
+ O,
1176
+ v
1177
+ ] }), t[135] = $, t[136] = O, t[137] = v, t[138] = ft) : ft = t[138], ft;
1101
1178
  }
1102
- function Qi(e) {
1179
+ function is(e) {
1103
1180
  return e.layer;
1104
1181
  }
1105
- function Zi(e) {
1182
+ function ss(e) {
1106
1183
  return e.position === "after";
1107
1184
  }
1108
- function _i(e) {
1185
+ function ls(e) {
1109
1186
  return e.color;
1110
1187
  }
1111
- function ts(e) {
1188
+ function as(e) {
1112
1189
  return e.color;
1113
1190
  }
1114
- function es(e) {
1191
+ function os(e) {
1115
1192
  return e.color;
1116
1193
  }
1117
- function is(e) {
1194
+ function ns(e) {
1118
1195
  return e.color;
1119
1196
  }
1120
- function ss(e) {
1197
+ function rs(e) {
1121
1198
  return e.layer;
1122
1199
  }
1123
- function as(e) {
1200
+ function cs(e) {
1124
1201
  return e.position === "before";
1125
1202
  }
1126
- function os(e) {
1203
+ function ds(e) {
1127
1204
  return e !== 0;
1128
1205
  }
1129
- function ls(e) {
1206
+ function us(e) {
1130
1207
  return e !== 0;
1131
1208
  }
1132
- function ns(e) {
1209
+ function ms(e) {
1133
1210
  return `${e.id}`;
1134
1211
  }
1135
- function rs(e) {
1136
- const t = xe.c(43), {
1137
- data: m,
1138
- graphTitle: D,
1139
- colors: Xt,
1140
- suffix: St,
1141
- sources: gt,
1142
- prefix: _,
1143
- graphDescription: ct,
1144
- barPadding: M,
1145
- showValues: j,
1146
- showTicks: y,
1147
- truncateBy: I,
1148
- height: zt,
1149
- width: nt,
1150
- footNote: jt,
1151
- colorDomain: S,
1152
- colorLegendTitle: tt,
1153
- highlightedDataPoints: ut,
1154
- padding: dt,
1155
- backgroundColor: Tt,
1156
- topMargin: w,
1157
- bottomMargin: et,
1158
- leftMargin: G,
1159
- rightMargin: F,
1160
- showLabels: J,
1161
- relativeHeight: W,
1162
- tooltip: xt,
1163
- onSeriesMouseOver: B,
1164
- refValues: R,
1165
- showColorScale: H,
1166
- graphID: u,
1212
+ function xs(e) {
1213
+ return {
1214
+ id: e,
1215
+ label: e,
1216
+ color: null,
1217
+ size: null
1218
+ };
1219
+ }
1220
+ function hs(e) {
1221
+ const t = ge.c(120), {
1222
+ data: a,
1223
+ graphTitle: P,
1224
+ colors: qt,
1225
+ suffix: Ut,
1226
+ sources: It,
1227
+ prefix: Ot,
1228
+ graphDescription: Tt,
1229
+ barPadding: B,
1230
+ showValues: q,
1231
+ showTicks: A,
1232
+ truncateBy: lt,
1233
+ height: St,
1234
+ width: tt,
1235
+ footNote: Et,
1236
+ colorDomain: U,
1237
+ colorLegendTitle: at,
1238
+ highlightedDataPoints: Mt,
1239
+ padding: kt,
1240
+ backgroundColor: Xt,
1241
+ topMargin: M,
1242
+ bottomMargin: J,
1243
+ leftMargin: H,
1244
+ rightMargin: D,
1245
+ showLabels: nt,
1246
+ relativeHeight: K,
1247
+ tooltip: mt,
1248
+ onSeriesMouseOver: L,
1249
+ refValues: Q,
1250
+ showColorScale: et,
1251
+ graphID: c,
1167
1252
  maxValue: s,
1168
- minValue: o,
1169
- onSeriesMouseClick: d,
1170
- graphDownload: r,
1171
- dataDownload: h,
1253
+ minValue: l,
1254
+ onSeriesMouseClick: m,
1255
+ graphDownload: d,
1256
+ dataDownload: g,
1172
1257
  sortData: x,
1173
- labelOrder: A,
1174
- language: K,
1175
- showNAColor: q,
1176
- minHeight: rt,
1177
- theme: Ft,
1178
- maxBarThickness: Yt,
1179
- maxNumberOfBars: X,
1180
- minBarThickness: yt,
1181
- ariaLabel: Bt,
1182
- resetSelectionOnDoubleClick: n,
1183
- detailsOnClick: c,
1184
- barAxisTitle: T,
1185
- noOfTicks: f,
1186
- valueColor: Y,
1187
- styles: N,
1188
- classNames: $,
1189
- filterNA: Dt,
1190
- animate: bt,
1191
- dimmedOpacity: it,
1192
- precision: mt,
1193
- customLayers: C,
1194
- timeline: g,
1195
- naLabel: Q,
1196
- orientation: Z
1197
- } = e, U = St === void 0 ? "" : St, V = _ === void 0 ? "" : _, ht = M === void 0 ? 0.25 : M, Mt = j === void 0 ? !0 : j, st = y === void 0 ? !0 : y, Ct = I === void 0 ? 999 : I;
1198
- let E;
1199
- t[0] !== ut ? (E = ut === void 0 ? [] : ut, t[0] = ut, t[1] = E) : E = t[1];
1200
- const at = E, P = Tt === void 0 ? !1 : Tt, ft = J === void 0 ? !0 : J, pt = H === void 0 ? !0 : H, vt = r === void 0 ? !1 : r, wt = h === void 0 ? !1 : h, ot = K === void 0 ? "en" : K, At = q === void 0 ? !0 : q, $t = rt === void 0 ? 0 : rt, Ot = Ft === void 0 ? "light" : Ft, b = n === void 0 ? !0 : n, lt = f === void 0 ? 5 : f, It = Dt === void 0 ? !0 : Dt, Et = bt === void 0 ? !1 : bt, O = it === void 0 ? 0.3 : it, qt = mt === void 0 ? 2 : mt;
1201
- let Nt;
1202
- t[2] !== C ? (Nt = C === void 0 ? [] : C, t[2] = C, t[3] = Nt) : Nt = t[3];
1203
- const Kt = Nt, Lt = g === void 0 ? {
1258
+ labelOrder: k,
1259
+ language: rt,
1260
+ showNAColor: Z,
1261
+ minHeight: pt,
1262
+ theme: Jt,
1263
+ maxBarThickness: Gt,
1264
+ maxNumberOfBars: Y,
1265
+ minBarThickness: gt,
1266
+ ariaLabel: Ht,
1267
+ resetSelectionOnDoubleClick: r,
1268
+ detailsOnClick: n,
1269
+ barAxisTitle: F,
1270
+ noOfTicks: y,
1271
+ valueColor: it,
1272
+ styles: W,
1273
+ classNames: C,
1274
+ filterNA: Yt,
1275
+ animate: yt,
1276
+ dimmedOpacity: xt,
1277
+ precision: Ct,
1278
+ customLayers: E,
1279
+ timeline: w,
1280
+ naLabel: bt,
1281
+ orientation: Wt
1282
+ } = e, jt = Ut === void 0 ? "" : Ut, ct = Ot === void 0 ? "" : Ot, Ft = B === void 0 ? 0.25 : B, Nt = q === void 0 ? !0 : q, Vt = A === void 0 ? !0 : A, zt = lt === void 0 ? 999 : lt;
1283
+ let G;
1284
+ t[0] !== Mt ? (G = Mt === void 0 ? [] : Mt, t[0] = Mt, t[1] = G) : G = t[1];
1285
+ const I = G, z = Xt === void 0 ? !1 : Xt, ht = nt === void 0 ? !0 : nt, ot = et === void 0 ? !0 : et, dt = d === void 0 ? !1 : d, vt = g === void 0 ? !1 : g, _ = rt === void 0 ? "en" : rt, ut = Z === void 0 ? !0 : Z, wt = pt === void 0 ? 0 : pt, st = Jt === void 0 ? "light" : Jt, At = r === void 0 ? !0 : r, $t = y === void 0 ? 5 : y, b = Yt === void 0 ? !0 : Yt, $ = yt === void 0 ? !1 : yt, O = xt === void 0 ? 0.3 : xt, v = Ct === void 0 ? 2 : Ct;
1286
+ let ft;
1287
+ t[2] !== E ? (ft = E === void 0 ? [] : E, t[2] = E, t[3] = ft) : ft = t[3];
1288
+ const j = ft;
1289
+ let p;
1290
+ t[4] !== w ? (p = w === void 0 ? {
1204
1291
  enabled: !1,
1205
1292
  autoplay: !1,
1206
1293
  showOnlyActiveDate: !0
1207
- } : g, Qt = Q === void 0 ? "NA" : Q, Ut = Z === void 0 ? "vertical" : Z, Ht = Ut === "horizontal" ? Pi : Ki, [kt, Rt] = Wt(0), [Jt, z] = Wt(0), [v, k] = Wt(Lt.autoplay), a = Qe(Le(m, "date", !0).map((te) => Se(`${te}`, Lt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), ks), [p, ee] = Wt(Lt.autoplay ? 0 : a.length - 1), [L, Vt] = Wt(void 0), l = de(null), ie = de(null);
1208
- let se, me;
1209
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
1210
- const te = new ResizeObserver((he) => {
1211
- Rt(he[0].target.clientWidth || 620), z(he[0].target.clientHeight || 480);
1294
+ } : w, t[4] = w, t[5] = p) : p = t[5];
1295
+ const f = p, Dt = bt === void 0 ? "NA" : bt, Lt = Wt === void 0 ? "vertical" : Wt, Kt = Lt === "horizontal" ? Xi : es, [N, T] = Zt(0), [Rt, X] = Zt(0), [V, R] = Zt(f.autoplay);
1296
+ let o;
1297
+ if (t[6] !== a || t[7] !== f.dateFormat) {
1298
+ let te;
1299
+ t[9] !== f.dateFormat ? (te = (ye) => He(`${ye.date}`, f.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = f.dateFormat, t[10] = te) : te = t[10], o = [...new Set(a.filter(Is).map(te))], o.sort(Ls), t[6] = a, t[7] = f.dateFormat, t[8] = o;
1300
+ } else
1301
+ o = t[8];
1302
+ const h = o, [_t, S] = Zt(f.autoplay ? 0 : h.length - 1), [Bt, u] = Zt(void 0), se = pe(null), ae = pe(null);
1303
+ let me, he;
1304
+ t[11] === Symbol.for("react.memo_cache_sentinel") ? (me = () => {
1305
+ const te = new ResizeObserver((ye) => {
1306
+ T(ye[0].target.clientWidth || 620), X(ye[0].target.clientHeight || 480);
1212
1307
  });
1213
- return l.current && te.observe(l.current), () => te.disconnect();
1214
- }, me = [], t[4] = se, t[5] = me) : (se = t[4], me = t[5]), we(se, me), we(() => {
1308
+ return se.current && te.observe(se.current), () => te.disconnect();
1309
+ }, he = [], t[11] = me, t[12] = he) : (me = t[11], he = t[12]), ke(me, he);
1310
+ let ue, oe;
1311
+ t[13] !== V || t[14] !== f.speed || t[15] !== h ? (ue = () => {
1215
1312
  const te = setInterval(() => {
1216
- ee((he) => he < a.length - 1 ? he + 1 : 0);
1217
- }, (Lt.speed || 2) * 1e3);
1218
- return v || clearInterval(te), () => clearInterval(te);
1219
- }, [a, v, Lt.speed]);
1220
- const fe = Te(a, p, Lt.showOnlyActiveDate, Lt.dateFormat || "yyyy"), re = Ke, ae = $?.graphContainer, le = N?.graphContainer;
1221
- let Gt;
1222
- t[6] !== $?.description || t[7] !== $?.title || t[8] !== m || t[9] !== wt || t[10] !== ct || t[11] !== vt || t[12] !== D || t[13] !== N?.description || t[14] !== N?.title || t[15] !== nt ? (Gt = D || ct || vt || wt ? /* @__PURE__ */ i.jsx(Ee, { styles: {
1223
- title: N?.title,
1224
- description: N?.description
1313
+ S((ye) => ye < h.length - 1 ? ye + 1 : 0);
1314
+ }, (f.speed || 2) * 1e3);
1315
+ return V || clearInterval(te), () => clearInterval(te);
1316
+ }, oe = [h, V, f.speed], t[13] = V, t[14] = f.speed, t[15] = h, t[16] = ue, t[17] = oe) : (ue = t[16], oe = t[17]), ke(ue, oe);
1317
+ const re = f.dateFormat || "yyyy";
1318
+ let ne;
1319
+ t[18] !== _t || t[19] !== re || t[20] !== f.showOnlyActiveDate || t[21] !== h ? (ne = Fe(h, _t, f.showOnlyActiveDate, re), t[18] = _t, t[19] = re, t[20] = f.showOnlyActiveDate, t[21] = h, t[22] = ne) : ne = t[22];
1320
+ const de = ne, Qt = C?.graphContainer, Pt = W?.graphContainer;
1321
+ let le;
1322
+ t[23] !== C?.description || t[24] !== C?.title || t[25] !== a || t[26] !== vt || t[27] !== Tt || t[28] !== dt || t[29] !== P || t[30] !== W?.description || t[31] !== W?.title || t[32] !== tt ? (le = P || Tt || dt || vt ? /* @__PURE__ */ i.jsx(qe, { styles: {
1323
+ title: W?.title,
1324
+ description: W?.description
1225
1325
  }, classNames: {
1226
- title: $?.title,
1227
- description: $?.description
1228
- }, graphTitle: D, graphDescription: ct, width: nt, graphDownload: vt ? ie : void 0, dataDownload: wt ? m.map(Os).filter($s).length > 0 ? m.map(As).filter(ws) : m.filter(vs) : null }) : null, t[6] = $?.description, t[7] = $?.title, t[8] = m, t[9] = wt, t[10] = ct, t[11] = vt, t[12] = D, t[13] = N?.description, t[14] = N?.title, t[15] = nt, t[16] = Gt) : Gt = t[16];
1229
- const Pt = Lt.enabled && a.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1326
+ title: C?.title,
1327
+ description: C?.description
1328
+ }, graphTitle: P, graphDescription: Tt, width: tt, graphDownload: dt ? ae : void 0, dataDownload: vt ? a.map(Ds).filter(zs).length > 0 ? a.map(Vs).filter(Cs) : a.filter(ks) : null }) : null, t[23] = C?.description, t[24] = C?.title, t[25] = a, t[26] = vt, t[27] = Tt, t[28] = dt, t[29] = P, t[30] = W?.description, t[31] = W?.title, t[32] = tt, t[33] = le) : le = t[33];
1329
+ let Ae;
1330
+ t[34] !== _t || t[35] !== de || t[36] !== V || t[37] !== f.enabled || t[38] !== h ? (Ae = f.enabled && h.length > 0 && de ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1230
1331
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1231
- k(!v);
1232
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": v ? "Click to pause animation" : "Click to play animation", children: v ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
1233
- /* @__PURE__ */ i.jsx(Ie, { min: a[0], max: a[a.length - 1], marks: fe, step: null, defaultValue: a[a.length - 1], value: a[p], onChangeComplete: (te) => {
1234
- ee(a.indexOf(te));
1332
+ R(!V);
1333
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": V ? "Click to pause animation" : "Click to play animation", children: V ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsx(Ze, {}) }),
1334
+ /* @__PURE__ */ i.jsx(Pe, { min: h[0], max: h[h.length - 1], marks: de, step: null, defaultValue: h[h.length - 1], value: h[_t], onChangeComplete: (te) => {
1335
+ S(h.indexOf(te));
1235
1336
  }, onChange: (te) => {
1236
- ee(a.indexOf(te));
1337
+ S(h.indexOf(te));
1237
1338
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1238
- ] }) : null, ne = m.length === 0 ? /* @__PURE__ */ i.jsx(Re, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1239
- pt && m.filter(bs).length !== 0 ? /* @__PURE__ */ i.jsx(We, { width: nt, colorLegendTitle: tt, colors: Xt || ce[Ot].categoricalColors.colors, colorDomain: S || Le(m, "color", !0), setSelectedColor: Vt, showNAColor: At, className: $?.colorLegend }) : null,
1240
- /* @__PURE__ */ i.jsx(Je, { ref: l, children: kt && Jt ? /* @__PURE__ */ i.jsx(Ht, { data: x ? ze(_e(m, Lt.dateFormat || "yyyy").filter((te) => Lt.enabled ? te.date === ye(new Date(a[p]), Lt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Ut === "horizontal" ? 1 : -1) * (1 / 0) : (Ut === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, he) => X ? he < X : !0) : _e(m, Lt.dateFormat || "yyyy").filter((te) => Lt.enabled ? te.date === ye(new Date(a[p]), Lt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te).filter((te, he) => X ? he < X : !0), barColor: m.filter(ys).length === 0 ? Xt ? [Xt] : [ce.primaryColors["blue-600"]] : Xt || ce[Ot].categoricalColors.colors, colorDomain: m.filter(gs).length === 0 ? [] : S || Le(m, "color", !0), selectedColor: L, width: kt, height: Jt, suffix: U, prefix: V, barPadding: ht, showValues: Mt, showTicks: st, leftMargin: G, rightMargin: F, topMargin: w, bottomMargin: et, truncateBy: Ct, showLabels: ft, tooltip: xt, onSeriesMouseOver: B, refValues: R, maxValue: _t(s) ? Math.max(...m.filter(ps).map(fs)) < 0 ? 0 : Math.max(...m.filter(hs).map(ms)) : s, minValue: _t(o) ? Math.min(...m.filter(xs).map(ds)) >= 0 ? 0 : Math.min(...m.filter(us).map(cs)) : o, highlightedDataPoints: at, onSeriesMouseClick: d, labelOrder: A, rtl: ot === "he" || ot === "ar", maxBarThickness: Yt, minBarThickness: yt, resetSelectionOnDoubleClick: b, detailsOnClick: c, barAxisTitle: T, noOfTicks: lt, valueColor: Y, classNames: $, styles: N, animate: Et === !0 ? {
1339
+ ] }) : null, t[34] = _t, t[35] = de, t[36] = V, t[37] = f.enabled, t[38] = h, t[39] = Ae) : Ae = t[39];
1340
+ let $e;
1341
+ t[40] !== Kt || t[41] !== $ || t[42] !== F || t[43] !== Ft || t[44] !== J || t[45] !== C || t[46] !== U || t[47] !== at || t[48] !== qt || t[49] !== j || t[50] !== a || t[51] !== n || t[52] !== O || t[53] !== b || t[54] !== I || t[55] !== _t || t[56] !== k || t[57] !== _ || t[58] !== H || t[59] !== Gt || t[60] !== Y || t[61] !== s || t[62] !== gt || t[63] !== l || t[64] !== Dt || t[65] !== $t || t[66] !== m || t[67] !== L || t[68] !== Lt || t[69] !== v || t[70] !== ct || t[71] !== Q || t[72] !== At || t[73] !== D || t[74] !== Bt || t[75] !== ot || t[76] !== ht || t[77] !== ut || t[78] !== Vt || t[79] !== Nt || t[80] !== x || t[81] !== W || t[82] !== jt || t[83] !== Rt || t[84] !== N || t[85] !== st || t[86] !== f.dateFormat || t[87] !== f.enabled || t[88] !== mt || t[89] !== M || t[90] !== zt || t[91] !== h || t[92] !== it || t[93] !== tt ? ($e = a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1342
+ ot && a.filter(Ms).length !== 0 ? /* @__PURE__ */ i.jsx(Je, { width: tt, colorLegendTitle: at, colors: qt || xe[st].categoricalColors.colors, colorDomain: U || ii(a, "color", !0), setSelectedColor: u, showNAColor: ut, className: C?.colorLegend }) : null,
1343
+ /* @__PURE__ */ i.jsx(_e, { ref: se, children: N && Rt ? /* @__PURE__ */ i.jsx(Kt, { data: x ? Te(ei(a, f.dateFormat || "yyyy").filter((te) => f.enabled ? te.date === we(new Date(h[_t]), f.dateFormat || "yyyy") : te).filter((te) => b ? !ie(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Lt === "horizontal" ? 1 : -1) * (1 / 0) : (Lt === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, ye) => Y ? ye < Y : !0) : ei(a, f.dateFormat || "yyyy").filter((te) => f.enabled ? te.date === we(new Date(h[_t]), f.dateFormat || "yyyy") : te).filter((te) => b ? !ie(te.size) : te).filter((te, ye) => Y ? ye < Y : !0), barColor: a.filter(Os).length === 0 ? qt ? [qt] : [xe.primaryColors["blue-600"]] : qt || xe[st].categoricalColors.colors, colorDomain: a.filter($s).length === 0 ? [] : U || ii(a, "color", !0), selectedColor: Bt, width: N, height: Rt, suffix: jt, prefix: ct, barPadding: Ft, showValues: Nt, showTicks: Vt, leftMargin: H, rightMargin: D, topMargin: M, bottomMargin: J, truncateBy: zt, showLabels: ht, tooltip: mt, onSeriesMouseOver: L, refValues: Q, maxValue: ie(s) ? Math.max(...a.filter(As).map(ws)) < 0 ? 0 : Math.max(...a.filter(vs).map(bs)) : s, minValue: ie(l) ? Math.min(...a.filter(ys).map(gs)) >= 0 ? 0 : Math.min(...a.filter(ps).map(fs)) : l, highlightedDataPoints: I, onSeriesMouseClick: m, labelOrder: k, rtl: _ === "he" || _ === "ar", maxBarThickness: Gt, minBarThickness: gt, resetSelectionOnDoubleClick: At, detailsOnClick: n, barAxisTitle: F, noOfTicks: $t, valueColor: it, classNames: C, styles: W, animate: $ === !0 ? {
1241
1344
  duration: 0.5,
1242
1345
  once: !0,
1243
1346
  amount: 0.5
1244
- } : Et || {
1347
+ } : $ || {
1245
1348
  duration: 0,
1246
1349
  once: !0,
1247
1350
  amount: 0
1248
- }, dimmedOpacity: O, precision: qt, customLayers: Kt, naLabel: Qt }) : null })
1249
- ] });
1250
- let be;
1251
- t[17] !== $?.footnote || t[18] !== $?.source || t[19] !== jt || t[20] !== gt || t[21] !== N?.footnote || t[22] !== N?.source || t[23] !== nt ? (be = gt || jt ? /* @__PURE__ */ i.jsx(Ge, { sources: gt, footNote: jt, width: nt, styles: {
1252
- footnote: N?.footnote,
1253
- source: N?.source
1351
+ }, dimmedOpacity: O, precision: v, customLayers: j, naLabel: Dt }) : null })
1352
+ ] }), t[40] = Kt, t[41] = $, t[42] = F, t[43] = Ft, t[44] = J, t[45] = C, t[46] = U, t[47] = at, t[48] = qt, t[49] = j, t[50] = a, t[51] = n, t[52] = O, t[53] = b, t[54] = I, t[55] = _t, t[56] = k, t[57] = _, t[58] = H, t[59] = Gt, t[60] = Y, t[61] = s, t[62] = gt, t[63] = l, t[64] = Dt, t[65] = $t, t[66] = m, t[67] = L, t[68] = Lt, t[69] = v, t[70] = ct, t[71] = Q, t[72] = At, t[73] = D, t[74] = Bt, t[75] = ot, t[76] = ht, t[77] = ut, t[78] = Vt, t[79] = Nt, t[80] = x, t[81] = W, t[82] = jt, t[83] = Rt, t[84] = N, t[85] = st, t[86] = f.dateFormat, t[87] = f.enabled, t[88] = mt, t[89] = M, t[90] = zt, t[91] = h, t[92] = it, t[93] = tt, t[94] = $e) : $e = t[94];
1353
+ let Oe;
1354
+ t[95] !== C?.footnote || t[96] !== C?.source || t[97] !== Et || t[98] !== It || t[99] !== W?.footnote || t[100] !== W?.source || t[101] !== tt ? (Oe = It || Et ? /* @__PURE__ */ i.jsx(Ue, { sources: It, footNote: Et, width: tt, styles: {
1355
+ footnote: W?.footnote,
1356
+ source: W?.source
1254
1357
  }, classNames: {
1255
- footnote: $?.footnote,
1256
- source: $?.source
1257
- } }) : null, t[17] = $?.footnote, t[18] = $?.source, t[19] = jt, t[20] = gt, t[21] = N?.footnote, t[22] = N?.source, t[23] = nt, t[24] = be) : be = t[24];
1258
- let je;
1259
- return t[25] !== re || t[26] !== Bt || t[27] !== P || t[28] !== u || t[29] !== zt || t[30] !== ot || t[31] !== $t || t[32] !== dt || t[33] !== W || t[34] !== ae || t[35] !== le || t[36] !== Gt || t[37] !== Pt || t[38] !== ne || t[39] !== be || t[40] !== Ot || t[41] !== nt ? (je = /* @__PURE__ */ i.jsxs(re, { className: ae, style: le, id: u, ref: ie, "aria-label": Bt, backgroundColor: P, theme: Ot, language: ot, minHeight: $t, width: nt, height: zt, relativeHeight: W, padding: dt, children: [
1260
- Gt,
1261
- Pt,
1262
- ne,
1263
- be
1264
- ] }), t[25] = re, t[26] = Bt, t[27] = P, t[28] = u, t[29] = zt, t[30] = ot, t[31] = $t, t[32] = dt, t[33] = W, t[34] = ae, t[35] = le, t[36] = Gt, t[37] = Pt, t[38] = ne, t[39] = be, t[40] = Ot, t[41] = nt, t[42] = je) : je = t[42], je;
1358
+ footnote: C?.footnote,
1359
+ source: C?.source
1360
+ } }) : null, t[95] = C?.footnote, t[96] = C?.source, t[97] = Et, t[98] = It, t[99] = W?.footnote, t[100] = W?.source, t[101] = tt, t[102] = Oe) : Oe = t[102];
1361
+ let Se;
1362
+ return t[103] !== Ht || t[104] !== z || t[105] !== c || t[106] !== St || t[107] !== _ || t[108] !== wt || t[109] !== kt || t[110] !== K || t[111] !== Qt || t[112] !== Pt || t[113] !== le || t[114] !== Ae || t[115] !== $e || t[116] !== Oe || t[117] !== st || t[118] !== tt ? (Se = /* @__PURE__ */ i.jsxs(ti, { className: Qt, style: Pt, id: c, ref: ae, "aria-label": Ht, backgroundColor: z, theme: st, language: _, minHeight: wt, width: tt, height: St, relativeHeight: K, padding: kt, children: [
1363
+ le,
1364
+ Ae,
1365
+ $e,
1366
+ Oe
1367
+ ] }), t[103] = Ht, t[104] = z, t[105] = c, t[106] = St, t[107] = _, t[108] = wt, t[109] = kt, t[110] = K, t[111] = Qt, t[112] = Pt, t[113] = le, t[114] = Ae, t[115] = $e, t[116] = Oe, t[117] = st, t[118] = tt, t[119] = Se) : Se = t[119], Se;
1265
1368
  }
1266
- function cs(e) {
1369
+ function fs(e) {
1267
1370
  return e.size;
1268
1371
  }
1269
- function us(e) {
1270
- return !_t(e.size);
1372
+ function ps(e) {
1373
+ return !ie(e.size);
1271
1374
  }
1272
- function ds(e) {
1375
+ function gs(e) {
1273
1376
  return e.size;
1274
1377
  }
1275
- function xs(e) {
1276
- return !_t(e.size);
1378
+ function ys(e) {
1379
+ return !ie(e.size);
1277
1380
  }
1278
- function ms(e) {
1381
+ function bs(e) {
1279
1382
  return e.size;
1280
1383
  }
1281
- function hs(e) {
1282
- return !_t(e.size);
1384
+ function vs(e) {
1385
+ return !ie(e.size);
1283
1386
  }
1284
- function fs(e) {
1387
+ function ws(e) {
1285
1388
  return e.size;
1286
1389
  }
1287
- function ps(e) {
1288
- return !_t(e.size);
1390
+ function As(e) {
1391
+ return !ie(e.size);
1289
1392
  }
1290
- function gs(e) {
1393
+ function $s(e) {
1291
1394
  return e.color;
1292
1395
  }
1293
- function ys(e) {
1396
+ function Os(e) {
1294
1397
  return e.color;
1295
1398
  }
1296
- function bs(e) {
1399
+ function Ms(e) {
1297
1400
  return e.color;
1298
1401
  }
1299
- function vs(e) {
1402
+ function ks(e) {
1300
1403
  return e !== void 0;
1301
1404
  }
1302
- function ws(e) {
1405
+ function Cs(e) {
1303
1406
  return e !== void 0;
1304
1407
  }
1305
- function As(e) {
1408
+ function Vs(e) {
1306
1409
  return e.data;
1307
1410
  }
1308
- function $s(e) {
1411
+ function zs(e) {
1309
1412
  return e !== void 0;
1310
1413
  }
1311
- function Os(e) {
1414
+ function Ds(e) {
1312
1415
  return e.data;
1313
1416
  }
1314
- function ks(e, t) {
1315
- return Ze(e, t);
1417
+ function Ls(e, t) {
1418
+ return e - t;
1316
1419
  }
1317
- function Ms(e) {
1318
- const t = xe.c(123), {
1319
- data: m,
1320
- barColors: D,
1321
- barPadding: Xt,
1322
- showTicks: St,
1323
- topMargin: gt,
1324
- bottomMargin: _,
1325
- leftMargin: ct,
1326
- rightMargin: M,
1327
- truncateBy: j,
1328
- width: y,
1329
- height: I,
1330
- tooltip: zt,
1331
- onSeriesMouseOver: nt,
1332
- showLabels: jt,
1333
- suffix: S,
1334
- prefix: tt,
1335
- showValues: ut,
1336
- refValues: dt,
1337
- maxValue: Tt,
1338
- onSeriesMouseClick: w,
1339
- selectedColor: et,
1340
- rtl: G,
1341
- labelOrder: F,
1342
- maxBarThickness: J,
1343
- minBarThickness: W,
1344
- resetSelectionOnDoubleClick: xt,
1345
- detailsOnClick: B,
1346
- barAxisTitle: R,
1347
- valueColor: H,
1348
- noOfTicks: u,
1420
+ function Is(e) {
1421
+ return e.date;
1422
+ }
1423
+ function js(e) {
1424
+ const t = ge.c(129), {
1425
+ data: a,
1426
+ barColors: P,
1427
+ barPadding: qt,
1428
+ showTicks: Ut,
1429
+ topMargin: It,
1430
+ bottomMargin: Ot,
1431
+ leftMargin: Tt,
1432
+ rightMargin: B,
1433
+ truncateBy: q,
1434
+ width: A,
1435
+ height: lt,
1436
+ tooltip: St,
1437
+ onSeriesMouseOver: tt,
1438
+ showLabels: Et,
1439
+ suffix: U,
1440
+ prefix: at,
1441
+ showValues: Mt,
1442
+ refValues: kt,
1443
+ maxValue: Xt,
1444
+ onSeriesMouseClick: M,
1445
+ selectedColor: J,
1446
+ rtl: H,
1447
+ labelOrder: D,
1448
+ maxBarThickness: nt,
1449
+ minBarThickness: K,
1450
+ resetSelectionOnDoubleClick: mt,
1451
+ detailsOnClick: L,
1452
+ barAxisTitle: Q,
1453
+ valueColor: et,
1454
+ noOfTicks: c,
1349
1455
  styles: s,
1350
- classNames: o,
1351
- animate: d,
1352
- colorDomain: r,
1353
- precision: h,
1456
+ classNames: l,
1457
+ animate: m,
1458
+ colorDomain: d,
1459
+ precision: g,
1354
1460
  customLayers: x,
1355
- naLabel: A
1356
- } = e, K = gt === void 0 ? 25 : gt, q = _ === void 0 ? 10 : _, rt = ct === void 0 ? 100 : ct, Ft = M === void 0 ? 40 : M, Yt = de(null);
1357
- let X;
1358
- t[0] !== d.amount || t[1] !== d.once ? (X = {
1359
- once: d.once,
1360
- amount: d.amount
1361
- }, t[0] = d.amount, t[1] = d.once, t[2] = X) : X = t[2];
1362
- const yt = Ce(Yt, X), Bt = R ? K + 25 : K;
1363
- let n;
1364
- t[3] !== q || t[4] !== rt || t[5] !== Ft || t[6] !== Bt ? (n = {
1365
- top: Bt,
1366
- bottom: q,
1367
- left: rt,
1368
- right: Ft
1369
- }, t[3] = q, t[4] = rt, t[5] = Ft, t[6] = Bt, t[7] = n) : n = t[7];
1370
- const c = n, [T, f] = Wt(void 0), [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), mt = y - c.left - c.right, C = I - c.top - c.bottom;
1371
- let g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft, pt;
1372
- if (t[8] !== d || t[9] !== R || t[10] !== D || t[11] !== Xt || t[12] !== o?.graphObjectValues || t[13] !== o?.xAxis?.gridLines || t[14] !== o?.xAxis?.labels || t[15] !== o?.xAxis?.title || t[16] !== o?.yAxis?.axis || t[17] !== o?.yAxis?.labels || t[18] !== r || t[19] !== x || t[20] !== m || t[21] !== B || t[22] !== C || t[23] !== mt || t[24] !== I || t[25] !== yt || t[26] !== F || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== J || t[31] !== Tt || t[32] !== W || t[33] !== Y || t[34] !== A || t[35] !== u || t[36] !== w || t[37] !== nt || t[38] !== h || t[39] !== tt || t[40] !== dt || t[41] !== xt || t[42] !== G || t[43] !== et || t[44] !== jt || t[45] !== St || t[46] !== ut || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== S || t[54] !== K || t[55] !== j || t[56] !== H || t[57] !== y) {
1373
- let lt;
1374
- t[72] !== F ? (lt = (z, v) => ({
1375
- ...z,
1376
- id: F ? `${z.label}` : `${v}`
1377
- }), t[72] = F, t[73] = lt) : lt = t[73];
1378
- const It = m.map(lt), Et = F || It.map(Is), O = Ve().domain([0, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, W ? Math.max(C, W * Et.length) : J ? Math.min(C, J * Et.length) : C]).paddingInner(Xt), Nt = O.ticks(u);
1379
- Q = Zt.svg, Mt = Yt, st = `${y}px`, Ct = `${I}px`, E = `0 0 ${y} ${I}`, at = "ltr", Z = `translate(${c.left},${c.top})`, U = St ? /* @__PURE__ */ i.jsx(Pe, { values: Nt.filter(Ts), x: Nt.filter(Ns).map((z) => O(z)), y1: 0 - K, y2: C + c.bottom, styles: {
1461
+ naLabel: k
1462
+ } = e, rt = It === void 0 ? 25 : It, Z = Ot === void 0 ? 10 : Ot, pt = Tt === void 0 ? 100 : Tt, Jt = B === void 0 ? 40 : B, Gt = pe(null);
1463
+ let Y;
1464
+ t[0] !== m.amount || t[1] !== m.once ? (Y = {
1465
+ once: m.once,
1466
+ amount: m.amount
1467
+ }, t[0] = m.amount, t[1] = m.once, t[2] = Y) : Y = t[2];
1468
+ const gt = Ie(Gt, Y), Ht = Q ? rt + 25 : rt;
1469
+ let r;
1470
+ t[3] !== Z || t[4] !== pt || t[5] !== Jt || t[6] !== Ht ? (r = {
1471
+ top: Ht,
1472
+ bottom: Z,
1473
+ left: pt,
1474
+ right: Jt
1475
+ }, t[3] = Z, t[4] = pt, t[5] = Jt, t[6] = Ht, t[7] = r) : r = t[7];
1476
+ const n = r, [F, y] = Zt(void 0), [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), Ct = A - n.left - n.right, E = lt - n.top - n.bottom;
1477
+ let w;
1478
+ if (t[8] !== a || t[9] !== D) {
1479
+ const v = /* @__PURE__ */ new Set(), ft = a.map((f, Dt) => {
1480
+ const Lt = D ? `${f.label}` : `${Dt}`;
1481
+ return v.add(Lt), {
1482
+ ...f,
1483
+ id: Lt
1484
+ };
1485
+ }), j = D ? D.filter((f) => !v.has(f)) : [];
1486
+ let p;
1487
+ t[11] !== a[0] ? (p = (f) => ({
1488
+ id: f,
1489
+ label: f,
1490
+ size: Array(a[0].size.length).fill(null)
1491
+ }), t[11] = a[0], t[12] = p) : p = t[12], w = [...ft, ...j.map(p)], t[8] = a, t[9] = D, t[10] = w;
1492
+ } else
1493
+ w = t[10];
1494
+ const bt = w;
1495
+ let Wt;
1496
+ t[13] !== bt || t[14] !== D ? (Wt = D ?? bt.map(Xs), t[13] = bt, t[14] = D, t[15] = Wt) : Wt = t[15];
1497
+ const jt = Wt;
1498
+ let ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _, ut;
1499
+ if (t[16] !== m || t[17] !== Q || t[18] !== P || t[19] !== jt || t[20] !== qt || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.gridLines || t[23] !== l?.xAxis?.labels || t[24] !== l?.xAxis?.title || t[25] !== l?.yAxis?.axis || t[26] !== l?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== bt || t[30] !== L || t[31] !== E || t[32] !== Ct || t[33] !== lt || t[34] !== gt || t[35] !== n.bottom || t[36] !== n.left || t[37] !== n.top || t[38] !== nt || t[39] !== Xt || t[40] !== K || t[41] !== it || t[42] !== k || t[43] !== c || t[44] !== M || t[45] !== tt || t[46] !== g || t[47] !== at || t[48] !== kt || t[49] !== mt || t[50] !== H || t[51] !== J || t[52] !== Et || t[53] !== Ut || t[54] !== Mt || t[55] !== s?.graphObjectValues || t[56] !== s?.xAxis?.gridLines || t[57] !== s?.xAxis?.labels || t[58] !== s?.xAxis?.title || t[59] !== s?.yAxis?.axis || t[60] !== s?.yAxis?.labels || t[61] !== U || t[62] !== rt || t[63] !== q || t[64] !== et || t[65] !== A) {
1500
+ const v = je().domain([0, Xt]).range([0, Ct]).nice(), ft = ve().domain(jt).range([0, K ? Math.max(E, K * jt.length) : nt ? Math.min(E, nt * jt.length) : E]).paddingInner(qt), j = v.ticks(c);
1501
+ Ft = ee.svg, ht = Gt, ot = `${A}px`, dt = `${lt}px`, vt = `0 0 ${A} ${lt}`, _ = "ltr", zt = `translate(${n.left},${n.top})`, G = Ut ? /* @__PURE__ */ i.jsx(Xe, { values: j.filter(Ws), x: j.filter(Hs).map((X) => v(X)), y1: 0 - rt, y2: E + n.bottom, styles: {
1380
1502
  gridLines: s?.xAxis?.gridLines,
1381
1503
  labels: s?.xAxis?.labels
1382
1504
  }, classNames: {
1383
- gridLines: o?.xAxis?.gridLines,
1384
- labels: o?.xAxis?.labels
1385
- }, suffix: S, prefix: tt, labelType: "secondary", showGridLines: !0, precision: h }) : null;
1386
- const Kt = mt / 2, Lt = 0 - c.top + 15, Qt = s?.xAxis?.title, Ut = o?.xAxis?.title;
1387
- t[74] !== R || t[75] !== Kt || t[76] !== Lt || t[77] !== Qt || t[78] !== Ut ? (V = /* @__PURE__ */ i.jsx(ke, { x: Kt, y: Lt, style: Qt, className: Ut, text: R }), t[74] = R, t[75] = Kt, t[76] = Lt, t[77] = Qt, t[78] = Ut, t[79] = V) : V = t[79], t[80] !== x ? (ht = x.filter(js).map(zs), t[80] = x, t[81] = ht) : ht = t[81], g = De, P = It.map((z) => _t(qt(z.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1505
+ gridLines: l?.xAxis?.gridLines,
1506
+ labels: l?.xAxis?.labels
1507
+ }, suffix: U, prefix: at, labelType: "secondary", showGridLines: !0, precision: g }) : null;
1508
+ const p = Ct / 2, f = 0 - n.top + 15, Dt = s?.xAxis?.title, Lt = l?.xAxis?.title;
1509
+ t[80] !== Q || t[81] !== p || t[82] !== f || t[83] !== Dt || t[84] !== Lt ? (I = /* @__PURE__ */ i.jsx(De, { x: p, y: f, style: Dt, className: Lt, text: Q }), t[80] = Q, t[81] = p, t[82] = f, t[83] = Dt, t[84] = Lt, t[85] = I) : I = t[85], t[86] !== x ? (z = x.filter(Ps).map(Fs), t[86] = x, t[87] = z) : z = t[87], ct = Ne, ut = bt.map((X) => ie(ft(X.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1388
1510
  initial: {
1389
1511
  x: 0,
1390
- y: qt(`${z.id}`)
1512
+ y: ft(`${X.id}`)
1391
1513
  },
1392
1514
  whileInView: {
1393
1515
  x: 0,
1394
- y: qt(`${z.id}`),
1516
+ y: ft(`${X.id}`),
1395
1517
  transition: {
1396
- duration: d.duration
1518
+ duration: m.duration
1397
1519
  }
1398
1520
  }
1399
- }, initial: "initial", animate: yt ? "whileInView" : "initial", exit: {
1521
+ }, initial: "initial", animate: gt ? "whileInView" : "initial", exit: {
1400
1522
  opacity: 0,
1401
1523
  transition: {
1402
- duration: d.duration
1524
+ duration: m.duration
1403
1525
  }
1404
1526
  }, children: [
1405
- z.size.map((v, k) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: et ? D[k] === et ? 1 : 0.3 : 1, onMouseEnter: (a) => {
1406
- f({
1407
- ...z,
1408
- sizeIndex: k
1409
- }), it(a.clientY), Dt(a.clientX), nt?.({
1410
- ...z,
1411
- sizeIndex: k
1527
+ X.size.map((V, R) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? P[R] === J ? 1 : 0.3 : 1, onMouseEnter: (o) => {
1528
+ y({
1529
+ ...X,
1530
+ sizeIndex: R
1531
+ }), xt(o.clientY), Yt(o.clientX), tt?.({
1532
+ ...X,
1533
+ sizeIndex: R
1412
1534
  });
1413
- }, onMouseMove: (a) => {
1414
- f({
1415
- ...z,
1416
- sizeIndex: k
1417
- }), it(a.clientY), Dt(a.clientX);
1535
+ }, onMouseMove: (o) => {
1536
+ y({
1537
+ ...X,
1538
+ sizeIndex: R
1539
+ }), xt(o.clientY), Yt(o.clientX);
1418
1540
  }, onMouseLeave: () => {
1419
- f(void 0), Dt(void 0), it(void 0), nt?.(void 0);
1541
+ y(void 0), Yt(void 0), xt(void 0), tt?.(void 0);
1420
1542
  }, onClick: () => {
1421
- (w || B) && (Ae(Y, {
1422
- ...z,
1423
- sizeIndex: k
1424
- }) && xt ? (N(void 0), w?.(void 0)) : (N({
1425
- ...z,
1426
- sizeIndex: k
1427
- }), w && w({
1428
- ...z,
1429
- sizeIndex: k
1543
+ (M || L) && (Ce(it, {
1544
+ ...X,
1545
+ sizeIndex: R
1546
+ }) && mt ? (W(void 0), M?.(void 0)) : (W({
1547
+ ...X,
1548
+ sizeIndex: R
1549
+ }), M && M({
1550
+ ...X,
1551
+ sizeIndex: R
1430
1552
  })));
1431
1553
  }, children: [
1432
- v ? /* @__PURE__ */ i.jsx(Zt.rect, { y: 0, style: {
1433
- fill: D[k]
1434
- }, height: qt.bandwidth(), exit: {
1554
+ V ? /* @__PURE__ */ i.jsx(ee.rect, { y: 0, style: {
1555
+ fill: P[R]
1556
+ }, height: ft.bandwidth(), exit: {
1435
1557
  width: 0,
1436
- x: O(0),
1558
+ x: v(0),
1437
1559
  transition: {
1438
- duration: d.duration
1560
+ duration: m.duration
1439
1561
  }
1440
1562
  }, variants: {
1441
1563
  initial: {
1442
1564
  width: 0,
1443
- x: O(0),
1444
- fill: D[k]
1565
+ x: v(0),
1566
+ fill: P[R]
1445
1567
  },
1446
1568
  whileInView: {
1447
- width: O(v || 0),
1448
- x: O(k === 0 ? 0 : oe(z.size.filter((a, p) => p < k && a))),
1449
- fill: D[k],
1569
+ width: v(V || 0),
1570
+ x: v(R === 0 ? 0 : ce(X.size.filter((o, h) => h < R && o))),
1571
+ fill: P[R],
1450
1572
  transition: {
1451
- duration: d.duration
1573
+ duration: m.duration
1452
1574
  }
1453
1575
  }
1454
- }, initial: "initial", animate: yt ? "whileInView" : "initial" }, k) : null,
1455
- ut ? /* @__PURE__ */ i.jsx(Zt.text, { y: qt.bandwidth() / 2, style: {
1576
+ }, initial: "initial", animate: gt ? "whileInView" : "initial" }, R) : null,
1577
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { y: ft.bandwidth() / 2, style: {
1456
1578
  textAnchor: "middle",
1457
1579
  ...s?.graphObjectValues || {}
1458
- }, dy: "0.33em", className: pe("graph-value text-sm", o?.graphObjectValues), exit: {
1580
+ }, dy: "0.33em", className: be("graph-value text-sm", l?.graphObjectValues), exit: {
1459
1581
  opacity: 0,
1460
1582
  transition: {
1461
- duration: d.duration
1583
+ duration: m.duration
1462
1584
  }
1463
1585
  }, variants: {
1464
1586
  initial: {
1465
- x: O(0),
1587
+ x: v(0),
1466
1588
  opacity: 0,
1467
- fill: Ne(D[k])
1589
+ fill: Be(P[R])
1468
1590
  },
1469
1591
  whileInView: {
1470
- x: O(k === 0 ? 0 : oe(z.size.filter((a, p) => p < k && a))) + O(v || 0) / 2,
1471
- opacity: v && O(v) / ue(v, A, h, tt, S).length > 12 ? 1 : 0,
1472
- fill: Ne(D[k]),
1592
+ x: v(R === 0 ? 0 : ce(X.size.filter((o, h) => h < R && o))) + v(V || 0) / 2,
1593
+ opacity: V && v(V) / fe(V, k, g, at, U).length > 12 ? 1 : 0,
1594
+ fill: Be(P[R]),
1473
1595
  transition: {
1474
- duration: d.duration
1596
+ duration: m.duration
1475
1597
  }
1476
1598
  }
1477
- }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(v, A, h, tt, S) }) : null
1478
- ] }, `${z.label}-${r[k] || k}`)),
1479
- jt ? /* @__PURE__ */ i.jsx(Be, { value: `${z.label}`.length < j ? `${z.label}` : `${`${z.label}`.substring(0, j)}...`, y: 0, x: 0 - c.left, width: 0 + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: o?.yAxis?.labels, animate: d, isInView: yt }) : null,
1480
- ut ? /* @__PURE__ */ i.jsx(Zt.text, { className: pe("graph-value graph-value-total text-sm", H ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", o?.graphObjectValues), style: {
1481
- ...H ? {
1482
- fill: H
1599
+ }, initial: "initial", animate: gt ? "whileInView" : "initial", children: fe(V, k, g, at, U) }) : null
1600
+ ] }, `${X.label}-${d[R] || R}`)),
1601
+ Et ? /* @__PURE__ */ i.jsx(We, { value: `${X.label}`.length < q ? `${X.label}` : `${`${X.label}`.substring(0, q)}...`, y: 0, x: 0 - n.left, width: 0 + n.left, height: ft.bandwidth(), style: s?.yAxis?.labels, className: l?.yAxis?.labels, animate: m, isInView: gt }) : null,
1602
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { className: be("graph-value graph-value-total text-sm", et ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", l?.graphObjectValues), style: {
1603
+ ...et ? {
1604
+ fill: et
1483
1605
  } : {},
1484
1606
  textAnchor: "start",
1485
1607
  ...s?.graphObjectValues || {}
1486
- }, y: qt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1608
+ }, y: ft.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1487
1609
  initial: {
1488
- x: O(0),
1610
+ x: v(0),
1489
1611
  opacity: 0,
1490
- ...H ? {
1491
- fill: H
1612
+ ...et ? {
1613
+ fill: et
1492
1614
  } : {}
1493
1615
  },
1494
1616
  whileInView: {
1495
- x: O(oe(z.size.map(Ls))),
1617
+ x: v(ce(X.size.map(Bs))),
1496
1618
  opacity: 1,
1497
- ...H ? {
1498
- fill: H
1619
+ ...et ? {
1620
+ fill: et
1499
1621
  } : {},
1500
1622
  transition: {
1501
- duration: d.duration
1623
+ duration: m.duration
1502
1624
  }
1503
1625
  }
1504
1626
  }, exit: {
1505
1627
  opacity: 0,
1506
1628
  transition: {
1507
- duration: d.duration
1629
+ duration: m.duration
1508
1630
  }
1509
- }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(oe(z.size.filter(Ds)), A, h, tt, S) }) : null
1510
- ] }, z.label));
1511
- const Ht = o?.yAxis?.axis;
1512
- let kt;
1513
- t[82] !== Ht ? (kt = {
1514
- axis: Ht
1515
- }, t[82] = Ht, t[83] = kt) : kt = t[83];
1516
- const Rt = s?.yAxis?.axis;
1517
- let Jt;
1518
- t[84] !== Rt ? (Jt = {
1519
- axis: Rt
1520
- }, t[84] = Rt, t[85] = Jt) : Jt = t[85], ft = /* @__PURE__ */ i.jsx(Oe, { x1: O(0), x2: O(0), y1: -2.5, y2: C + c.bottom, classNames: kt, styles: Jt }), pt = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((z, v) => /* @__PURE__ */ i.jsx(Fe, { text: z.text, color: z.color, x: O(z.value), y1: 0 - c.top, y2: C + c.bottom, textSide: O(z.value) > mt * 0.75 || G ? "left" : "right", classNames: z.classNames, styles: z.styles, animate: d, isInView: yt }, v)) }) : null, t[8] = d, t[9] = R, t[10] = D, t[11] = Xt, t[12] = o?.graphObjectValues, t[13] = o?.xAxis?.gridLines, t[14] = o?.xAxis?.labels, t[15] = o?.xAxis?.title, t[16] = o?.yAxis?.axis, t[17] = o?.yAxis?.labels, t[18] = r, t[19] = x, t[20] = m, t[21] = B, t[22] = C, t[23] = mt, t[24] = I, t[25] = yt, t[26] = F, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = J, t[31] = Tt, t[32] = W, t[33] = Y, t[34] = A, t[35] = u, t[36] = w, t[37] = nt, t[38] = h, t[39] = tt, t[40] = dt, t[41] = xt, t[42] = G, t[43] = et, t[44] = jt, t[45] = St, t[46] = ut, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = S, t[54] = K, t[55] = j, t[56] = H, t[57] = y, t[58] = g, t[59] = Q, t[60] = Z, t[61] = U, t[62] = V, t[63] = ht, t[64] = Mt, t[65] = st, t[66] = Ct, t[67] = E, t[68] = at, t[69] = P, t[70] = ft, t[71] = pt;
1631
+ }, initial: "initial", animate: gt ? "whileInView" : "initial", children: fe(ce(X.size.filter(Ss)), k, g, at, U) }) : null
1632
+ ] }, X.label));
1633
+ const Kt = l?.yAxis?.axis;
1634
+ let N;
1635
+ t[88] !== Kt ? (N = {
1636
+ axis: Kt
1637
+ }, t[88] = Kt, t[89] = N) : N = t[89];
1638
+ const T = s?.yAxis?.axis;
1639
+ let Rt;
1640
+ t[90] !== T ? (Rt = {
1641
+ axis: T
1642
+ }, t[90] = T, t[91] = Rt) : Rt = t[91], Nt = /* @__PURE__ */ i.jsx(ze, { x1: v(0), x2: v(0), y1: -2.5, y2: E + n.bottom, classNames: N, styles: Rt }), Vt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((X, V) => /* @__PURE__ */ i.jsx(Ye, { text: X.text, color: X.color, x: v(X.value), y1: 0 - n.top, y2: E + n.bottom, textSide: v(X.value) > Ct * 0.75 || H ? "left" : "right", classNames: X.classNames, styles: X.styles, animate: m, isInView: gt }, V)) }) : null, t[16] = m, t[17] = Q, t[18] = P, t[19] = jt, t[20] = qt, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.gridLines, t[23] = l?.xAxis?.labels, t[24] = l?.xAxis?.title, t[25] = l?.yAxis?.axis, t[26] = l?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = bt, t[30] = L, t[31] = E, t[32] = Ct, t[33] = lt, t[34] = gt, t[35] = n.bottom, t[36] = n.left, t[37] = n.top, t[38] = nt, t[39] = Xt, t[40] = K, t[41] = it, t[42] = k, t[43] = c, t[44] = M, t[45] = tt, t[46] = g, t[47] = at, t[48] = kt, t[49] = mt, t[50] = H, t[51] = J, t[52] = Et, t[53] = Ut, t[54] = Mt, t[55] = s?.graphObjectValues, t[56] = s?.xAxis?.gridLines, t[57] = s?.xAxis?.labels, t[58] = s?.xAxis?.title, t[59] = s?.yAxis?.axis, t[60] = s?.yAxis?.labels, t[61] = U, t[62] = rt, t[63] = q, t[64] = et, t[65] = A, t[66] = ct, t[67] = Ft, t[68] = Nt, t[69] = Vt, t[70] = zt, t[71] = G, t[72] = I, t[73] = z, t[74] = ht, t[75] = ot, t[76] = dt, t[77] = vt, t[78] = _, t[79] = ut;
1521
1643
  } else
1522
- g = t[58], Q = t[59], Z = t[60], U = t[61], V = t[62], ht = t[63], Mt = t[64], st = t[65], Ct = t[66], E = t[67], at = t[68], P = t[69], ft = t[70], pt = t[71];
1523
- let vt;
1524
- t[86] !== g || t[87] !== P || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
1525
- P,
1526
- ft,
1527
- pt
1528
- ] }), t[86] = g, t[87] = P, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
1644
+ ct = t[66], Ft = t[67], Nt = t[68], Vt = t[69], zt = t[70], G = t[71], I = t[72], z = t[73], ht = t[74], ot = t[75], dt = t[76], vt = t[77], _ = t[78], ut = t[79];
1529
1645
  let wt;
1530
- t[91] !== x ? (wt = x.filter(Vs).map(Cs), t[91] = x, t[92] = wt) : wt = t[92];
1531
- let ot;
1532
- t[93] !== Z || t[94] !== U || t[95] !== V || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (ot = /* @__PURE__ */ i.jsxs("g", { transform: Z, children: [
1533
- U,
1534
- V,
1535
- ht,
1536
- vt,
1537
- wt
1538
- ] }), t[93] = Z, t[94] = U, t[95] = V, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = ot) : ot = t[99];
1646
+ t[92] !== ct || t[93] !== Nt || t[94] !== Vt || t[95] !== ut ? (wt = /* @__PURE__ */ i.jsxs(ct, { children: [
1647
+ ut,
1648
+ Nt,
1649
+ Vt
1650
+ ] }), t[92] = ct, t[93] = Nt, t[94] = Vt, t[95] = ut, t[96] = wt) : wt = t[96];
1651
+ let st;
1652
+ t[97] !== x ? (st = x.filter(Ts).map(Ns), t[97] = x, t[98] = st) : st = t[98];
1539
1653
  let At;
1540
- t[100] !== Q || t[101] !== Mt || t[102] !== st || t[103] !== Ct || t[104] !== E || t[105] !== at || t[106] !== ot ? (At = /* @__PURE__ */ i.jsx(Q, { ref: Mt, width: st, height: Ct, viewBox: E, direction: at, children: ot }), t[100] = Q, t[101] = Mt, t[102] = st, t[103] = Ct, t[104] = E, t[105] = at, t[106] = ot, t[107] = At) : At = t[107];
1654
+ t[99] !== zt || t[100] !== G || t[101] !== I || t[102] !== z || t[103] !== wt || t[104] !== st ? (At = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
1655
+ G,
1656
+ I,
1657
+ z,
1658
+ wt,
1659
+ st
1660
+ ] }), t[99] = zt, t[100] = G, t[101] = I, t[102] = z, t[103] = wt, t[104] = st, t[105] = At) : At = t[105];
1541
1661
  let $t;
1542
- t[108] !== o?.tooltip || t[109] !== $ || t[110] !== bt || t[111] !== T || t[112] !== s?.tooltip || t[113] !== zt ? ($t = T && zt && $ && bt ? /* @__PURE__ */ i.jsx($e, { data: T, body: zt, xPos: $, yPos: bt, backgroundStyle: s?.tooltip, className: o?.tooltip }) : null, t[108] = o?.tooltip, t[109] = $, t[110] = bt, t[111] = T, t[112] = s?.tooltip, t[113] = zt, t[114] = $t) : $t = t[114];
1543
- let Ot;
1544
- t[115] !== o?.modal || t[116] !== B || t[117] !== Y ? (Ot = B && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: B, data: Y, setData: N, className: o?.modal }) : null, t[115] = o?.modal, t[116] = B, t[117] = Y, t[118] = Ot) : Ot = t[118];
1662
+ t[106] !== Ft || t[107] !== ht || t[108] !== ot || t[109] !== dt || t[110] !== vt || t[111] !== _ || t[112] !== At ? ($t = /* @__PURE__ */ i.jsx(Ft, { ref: ht, width: ot, height: dt, viewBox: vt, direction: _, children: At }), t[106] = Ft, t[107] = ht, t[108] = ot, t[109] = dt, t[110] = vt, t[111] = _, t[112] = At, t[113] = $t) : $t = t[113];
1545
1663
  let b;
1546
- return t[119] !== At || t[120] !== $t || t[121] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1547
- At,
1664
+ t[114] !== l?.tooltip || t[115] !== C || t[116] !== yt || t[117] !== F || t[118] !== s?.tooltip || t[119] !== St ? (b = F && St && C && yt ? /* @__PURE__ */ i.jsx(Ve, { data: F, body: St, xPos: C, yPos: yt, backgroundStyle: s?.tooltip, className: l?.tooltip }) : null, t[114] = l?.tooltip, t[115] = C, t[116] = yt, t[117] = F, t[118] = s?.tooltip, t[119] = St, t[120] = b) : b = t[120];
1665
+ let $;
1666
+ t[121] !== l?.modal || t[122] !== L || t[123] !== it ? ($ = L && it !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: L, data: it, setData: W, className: l?.modal }) : null, t[121] = l?.modal, t[122] = L, t[123] = it, t[124] = $) : $ = t[124];
1667
+ let O;
1668
+ return t[125] !== $t || t[126] !== b || t[127] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1548
1669
  $t,
1549
- Ot
1550
- ] }), t[119] = At, t[120] = $t, t[121] = Ot, t[122] = b) : b = t[122], b;
1670
+ b,
1671
+ $
1672
+ ] }), t[125] = $t, t[126] = b, t[127] = $, t[128] = O) : O = t[128], O;
1551
1673
  }
1552
- function Cs(e) {
1674
+ function Ns(e) {
1553
1675
  return e.layer;
1554
1676
  }
1555
- function Vs(e) {
1677
+ function Ts(e) {
1556
1678
  return e.position === "after";
1557
1679
  }
1558
- function Ds(e) {
1680
+ function Ss(e) {
1559
1681
  return e;
1560
1682
  }
1561
- function Ls(e) {
1683
+ function Bs(e) {
1562
1684
  return e || 0;
1563
1685
  }
1564
- function zs(e) {
1686
+ function Fs(e) {
1565
1687
  return e.layer;
1566
1688
  }
1567
- function js(e) {
1689
+ function Ps(e) {
1568
1690
  return e.position === "before";
1569
1691
  }
1570
- function Ns(e) {
1692
+ function Hs(e) {
1571
1693
  return e !== 0;
1572
1694
  }
1573
- function Ts(e) {
1695
+ function Ws(e) {
1574
1696
  return e !== 0;
1575
1697
  }
1576
- function Is(e) {
1698
+ function Xs(e) {
1577
1699
  return `${e.id}`;
1578
1700
  }
1579
- function Ss(e) {
1580
- const t = xe.c(130), {
1581
- data: m,
1582
- leftMargin: D,
1583
- rightMargin: Xt,
1584
- topMargin: St,
1585
- bottomMargin: gt,
1586
- width: _,
1587
- height: ct,
1588
- barColors: M,
1589
- barPadding: j,
1590
- showLabels: y,
1591
- showTicks: I,
1592
- truncateBy: zt,
1593
- tooltip: nt,
1594
- onSeriesMouseOver: jt,
1595
- suffix: S,
1596
- prefix: tt,
1597
- showValues: ut,
1598
- refValues: dt,
1599
- maxValue: Tt,
1600
- onSeriesMouseClick: w,
1601
- selectedColor: et,
1602
- labelOrder: G,
1603
- maxBarThickness: F,
1604
- minBarThickness: J,
1605
- resetSelectionOnDoubleClick: W,
1606
- detailsOnClick: xt,
1607
- barAxisTitle: B,
1608
- valueColor: R,
1609
- noOfTicks: H,
1610
- styles: u,
1701
+ function Ys(e) {
1702
+ const t = ge.c(136), {
1703
+ data: a,
1704
+ leftMargin: P,
1705
+ rightMargin: qt,
1706
+ topMargin: Ut,
1707
+ bottomMargin: It,
1708
+ width: Ot,
1709
+ height: Tt,
1710
+ barColors: B,
1711
+ barPadding: q,
1712
+ showLabels: A,
1713
+ showTicks: lt,
1714
+ truncateBy: St,
1715
+ tooltip: tt,
1716
+ onSeriesMouseOver: Et,
1717
+ suffix: U,
1718
+ prefix: at,
1719
+ showValues: Mt,
1720
+ refValues: kt,
1721
+ maxValue: Xt,
1722
+ onSeriesMouseClick: M,
1723
+ selectedColor: J,
1724
+ labelOrder: H,
1725
+ maxBarThickness: D,
1726
+ minBarThickness: nt,
1727
+ resetSelectionOnDoubleClick: K,
1728
+ detailsOnClick: mt,
1729
+ barAxisTitle: L,
1730
+ valueColor: Q,
1731
+ noOfTicks: et,
1732
+ styles: c,
1611
1733
  classNames: s,
1612
- animate: o,
1613
- colorDomain: d,
1614
- precision: r,
1615
- customLayers: h,
1734
+ animate: l,
1735
+ colorDomain: m,
1736
+ precision: d,
1737
+ customLayers: g,
1616
1738
  naLabel: x
1617
- } = e, A = D === void 0 ? 20 : D, K = Xt === void 0 ? 20 : Xt, q = St === void 0 ? 20 : St, rt = gt === void 0 ? 25 : gt, Ft = de(null);
1618
- let Yt;
1619
- t[0] !== o.amount || t[1] !== o.once ? (Yt = {
1620
- once: o.once,
1621
- amount: o.amount
1622
- }, t[0] = o.amount, t[1] = o.once, t[2] = Yt) : Yt = t[2];
1623
- const X = Ce(Ft, Yt), yt = B ? A + 30 : A;
1624
- let Bt;
1625
- t[3] !== rt || t[4] !== K || t[5] !== yt || t[6] !== q ? (Bt = {
1626
- top: q,
1627
- bottom: rt,
1628
- left: yt,
1629
- right: K
1630
- }, t[3] = rt, t[4] = K, t[5] = yt, t[6] = q, t[7] = Bt) : Bt = t[7];
1631
- const n = Bt, [c, T] = Wt(void 0), [f, Y] = Wt(void 0), [N, $] = Wt(void 0), [Dt, bt] = Wt(void 0), it = _ - n.left - n.right, mt = ct - n.top - n.bottom;
1632
- let C, g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft;
1633
- if (t[8] !== o || t[9] !== B || t[10] !== M || t[11] !== j || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== d || t[19] !== h || t[20] !== m || t[21] !== xt || t[22] !== mt || t[23] !== it || t[24] !== ct || t[25] !== X || t[26] !== G || t[27] !== A || t[28] !== n.bottom || t[29] !== n.left || t[30] !== n.right || t[31] !== n.top || t[32] !== F || t[33] !== Tt || t[34] !== J || t[35] !== f || t[36] !== x || t[37] !== H || t[38] !== w || t[39] !== jt || t[40] !== r || t[41] !== tt || t[42] !== dt || t[43] !== W || t[44] !== et || t[45] !== y || t[46] !== I || t[47] !== ut || t[48] !== u?.graphObjectValues || t[49] !== u?.xAxis?.axis || t[50] !== u?.xAxis?.labels || t[51] !== u?.yAxis?.gridLines || t[52] !== u?.yAxis?.labels || t[53] !== u?.yAxis?.title || t[54] !== S || t[55] !== zt || t[56] !== R || t[57] !== _) {
1634
- const b = Ve().domain([0, Tt]).range([mt, 0]).nice();
1635
- let lt;
1636
- t[72] !== G ? (lt = (p, ee) => ({
1637
- ...p,
1638
- id: G ? `${p.label}` : `${ee}`
1639
- }), t[72] = G, t[73] = lt) : lt = t[73];
1640
- const It = m.map(lt), Et = G || It.map(Ws), O = ge().domain(Et).range([0, J ? Math.max(it, J * Et.length) : F ? Math.min(it, F * Et.length) : it]).paddingInner(j), qt = b.ticks(H);
1641
- g = Zt.svg, ht = `${_}px`, Mt = `${ct}px`, st = `0 0 ${_} ${ct}`, Ct = "ltr", E = Ft, ft = `translate(${n.left},${n.top})`;
1642
- const Nt = b(0), Kt = b(0);
1643
- let Lt;
1644
- t[74] !== x || t[75] !== r || t[76] !== tt || t[77] !== S ? (Lt = ue(0, x, r, tt, S), t[74] = x, t[75] = r, t[76] = tt, t[77] = S, t[78] = Lt) : Lt = t[78];
1645
- const Qt = s?.xAxis?.axis, Ut = s?.yAxis?.labels;
1646
- let Ht;
1647
- t[79] !== Qt || t[80] !== Ut ? (Ht = {
1648
- axis: Qt,
1649
- label: Ut
1650
- }, t[79] = Qt, t[80] = Ut, t[81] = Ht) : Ht = t[81];
1651
- const kt = u?.xAxis?.axis, Rt = u?.yAxis?.labels;
1652
- let Jt;
1653
- t[82] !== kt || t[83] !== Rt ? (Jt = {
1654
- axis: kt,
1655
- label: Rt
1656
- }, t[82] = kt, t[83] = Rt, t[84] = Jt) : Jt = t[84], Q = /* @__PURE__ */ i.jsx(Oe, { y1: Nt, y2: Kt, x1: 0 - A, x2: it + n.right, label: Lt, labelPos: {
1657
- x: 0 - A,
1658
- y: b(0),
1739
+ } = e, k = P === void 0 ? 20 : P, rt = qt === void 0 ? 20 : qt, Z = Ut === void 0 ? 20 : Ut, pt = It === void 0 ? 25 : It, Jt = pe(null);
1740
+ let Gt;
1741
+ t[0] !== l.amount || t[1] !== l.once ? (Gt = {
1742
+ once: l.once,
1743
+ amount: l.amount
1744
+ }, t[0] = l.amount, t[1] = l.once, t[2] = Gt) : Gt = t[2];
1745
+ const Y = Ie(Jt, Gt), gt = L ? k + 30 : k;
1746
+ let Ht;
1747
+ t[3] !== pt || t[4] !== rt || t[5] !== gt || t[6] !== Z ? (Ht = {
1748
+ top: Z,
1749
+ bottom: pt,
1750
+ left: gt,
1751
+ right: rt
1752
+ }, t[3] = pt, t[4] = rt, t[5] = gt, t[6] = Z, t[7] = Ht) : Ht = t[7];
1753
+ const r = Ht, [n, F] = Zt(void 0), [y, it] = Zt(void 0), [W, C] = Zt(void 0), [Yt, yt] = Zt(void 0), xt = Ot - r.left - r.right, Ct = Tt - r.top - r.bottom;
1754
+ let E;
1755
+ if (t[8] !== a || t[9] !== H) {
1756
+ const O = /* @__PURE__ */ new Set(), v = a.map((p, f) => {
1757
+ const Dt = H ? `${p.label}` : `${f}`;
1758
+ return O.add(Dt), {
1759
+ ...p,
1760
+ id: Dt
1761
+ };
1762
+ }), ft = H ? H.filter((p) => !O.has(p)) : [];
1763
+ let j;
1764
+ t[11] !== a[0] ? (j = (p) => ({
1765
+ id: p,
1766
+ label: p,
1767
+ size: Array(a[0].size.length).fill(null)
1768
+ }), t[11] = a[0], t[12] = j) : j = t[12], E = [...v, ...ft.map(j)], t[8] = a, t[9] = H, t[10] = E;
1769
+ } else
1770
+ E = t[10];
1771
+ const w = E;
1772
+ let bt;
1773
+ t[13] !== w || t[14] !== H ? (bt = H ?? w.map(Zs), t[13] = w, t[14] = H, t[15] = bt) : bt = t[15];
1774
+ const Wt = bt;
1775
+ let jt, ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _;
1776
+ if (t[16] !== l || t[17] !== L || t[18] !== B || t[19] !== Wt || t[20] !== q || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== m || t[28] !== g || t[29] !== w || t[30] !== mt || t[31] !== Ct || t[32] !== xt || t[33] !== Tt || t[34] !== Y || t[35] !== k || t[36] !== r.bottom || t[37] !== r.left || t[38] !== r.right || t[39] !== r.top || t[40] !== D || t[41] !== Xt || t[42] !== nt || t[43] !== y || t[44] !== x || t[45] !== et || t[46] !== M || t[47] !== Et || t[48] !== d || t[49] !== at || t[50] !== kt || t[51] !== K || t[52] !== J || t[53] !== A || t[54] !== lt || t[55] !== Mt || t[56] !== c?.graphObjectValues || t[57] !== c?.xAxis?.axis || t[58] !== c?.xAxis?.labels || t[59] !== c?.yAxis?.gridLines || t[60] !== c?.yAxis?.labels || t[61] !== c?.yAxis?.title || t[62] !== U || t[63] !== St || t[64] !== Q || t[65] !== Ot) {
1777
+ const O = je().domain([0, Xt]).range([Ct, 0]).nice(), v = ve().domain(Wt).range([0, nt ? Math.max(xt, nt * Wt.length) : D ? Math.min(xt, D * Wt.length) : xt]).paddingInner(q), ft = O.ticks(et);
1778
+ ct = ee.svg, z = `${Ot}px`, ht = `${Tt}px`, ot = `0 0 ${Ot} ${Tt}`, dt = "ltr", vt = Jt, Nt = `translate(${r.left},${r.top})`;
1779
+ const j = O(0), p = O(0);
1780
+ let f;
1781
+ t[80] !== x || t[81] !== d || t[82] !== at || t[83] !== U ? (f = fe(0, x, d, at, U), t[80] = x, t[81] = d, t[82] = at, t[83] = U, t[84] = f) : f = t[84];
1782
+ const Dt = s?.xAxis?.axis, Lt = s?.yAxis?.labels;
1783
+ let Kt;
1784
+ t[85] !== Dt || t[86] !== Lt ? (Kt = {
1785
+ axis: Dt,
1786
+ label: Lt
1787
+ }, t[85] = Dt, t[86] = Lt, t[87] = Kt) : Kt = t[87];
1788
+ const N = c?.xAxis?.axis, T = c?.yAxis?.labels;
1789
+ let Rt;
1790
+ t[88] !== N || t[89] !== T ? (Rt = {
1791
+ axis: N,
1792
+ label: T
1793
+ }, t[88] = N, t[89] = T, t[90] = Rt) : Rt = t[90], Vt = /* @__PURE__ */ i.jsx(ze, { y1: j, y2: p, x1: 0 - k, x2: xt + r.right, label: f, labelPos: {
1794
+ x: 0 - k,
1795
+ y: O(0),
1659
1796
  dx: 0,
1660
1797
  dy: -5
1661
- }, classNames: Ht, styles: Jt }), Z = I ? /* @__PURE__ */ i.jsx(Xe, { values: qt.filter(Gs), y: qt.filter(Es).map((p) => b(p)), x1: 0 - A, x2: it + n.right, styles: {
1662
- gridLines: u?.yAxis?.gridLines,
1663
- labels: u?.yAxis?.labels
1798
+ }, classNames: Kt, styles: Rt }), zt = lt ? /* @__PURE__ */ i.jsx(Ge, { values: ft.filter(Qs), y: ft.filter(Ks).map((h) => O(h)), x1: 0 - k, x2: xt + r.right, styles: {
1799
+ gridLines: c?.yAxis?.gridLines,
1800
+ labels: c?.yAxis?.labels
1664
1801
  }, classNames: {
1665
1802
  gridLines: s?.yAxis?.gridLines,
1666
1803
  labels: s?.yAxis?.labels
1667
- }, suffix: S, prefix: tt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: r }) : null;
1668
- const z = 0 - A - 15, v = mt / 2, k = u?.yAxis?.title, a = s?.yAxis?.title;
1669
- t[85] !== B || t[86] !== z || t[87] !== v || t[88] !== k || t[89] !== a ? (U = /* @__PURE__ */ i.jsx(ke, { x: z, y: v, style: k, className: a, text: B, rotate90: !0 }), t[85] = B, t[86] = z, t[87] = v, t[88] = k, t[89] = a, t[90] = U) : U = t[90], t[91] !== h ? (V = h.filter(Ys).map(Xs), t[91] = h, t[92] = V) : V = t[92], C = De, at = It.map((p) => _t(O(p.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1804
+ }, suffix: U, prefix: at, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
1805
+ const X = 0 - k - 15, V = Ct / 2, R = c?.yAxis?.title, o = s?.yAxis?.title;
1806
+ t[91] !== L || t[92] !== X || t[93] !== V || t[94] !== R || t[95] !== o ? (G = /* @__PURE__ */ i.jsx(De, { x: X, y: V, style: R, className: o, text: L, rotate90: !0 }), t[91] = L, t[92] = X, t[93] = V, t[94] = R, t[95] = o, t[96] = G) : G = t[96], t[97] !== g ? (I = g.filter(Js).map(Us), t[97] = g, t[98] = I) : I = t[98], jt = Ne, _ = w.map((h) => ie(v(h.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1670
1807
  initial: {
1671
- x: O(`${p.id}`),
1808
+ x: v(`${h.id}`),
1672
1809
  y: 0
1673
1810
  },
1674
1811
  whileInView: {
1675
- x: O(`${p.id}`),
1812
+ x: v(`${h.id}`),
1676
1813
  y: 0,
1677
1814
  transition: {
1678
- duration: o.duration
1815
+ duration: l.duration
1679
1816
  }
1680
1817
  }
1681
1818
  }, transition: {
1682
- duration: o.duration
1683
- }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
1819
+ duration: l.duration
1820
+ }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
1684
1821
  opacity: 0,
1685
1822
  transition: {
1686
- duration: o.duration
1823
+ duration: l.duration
1687
1824
  }
1688
1825
  }, children: [
1689
- p.size.map((ee, L) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: et ? M[L] === et ? 1 : 0.3 : 1, onMouseEnter: (Vt) => {
1690
- T({
1691
- ...p,
1692
- sizeIndex: L
1693
- }), bt(Vt.clientY), $(Vt.clientX), jt?.({
1694
- ...p,
1695
- sizeIndex: L
1826
+ h.size.map((_t, S) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? B[S] === J ? 1 : 0.3 : 1, onMouseEnter: (Bt) => {
1827
+ F({
1828
+ ...h,
1829
+ sizeIndex: S
1830
+ }), yt(Bt.clientY), C(Bt.clientX), Et?.({
1831
+ ...h,
1832
+ sizeIndex: S
1696
1833
  });
1697
- }, onMouseMove: (Vt) => {
1698
- T({
1699
- ...p,
1700
- sizeIndex: L
1701
- }), bt(Vt.clientY), $(Vt.clientX);
1834
+ }, onMouseMove: (Bt) => {
1835
+ F({
1836
+ ...h,
1837
+ sizeIndex: S
1838
+ }), yt(Bt.clientY), C(Bt.clientX);
1702
1839
  }, onMouseLeave: () => {
1703
- T(void 0), $(void 0), bt(void 0), jt?.(void 0);
1840
+ F(void 0), C(void 0), yt(void 0), Et?.(void 0);
1704
1841
  }, onClick: () => {
1705
- (w || xt) && (Ae(f, {
1706
- ...p,
1707
- sizeIndex: L
1708
- }) && W ? (Y(void 0), w?.(void 0)) : (Y({
1709
- ...p,
1710
- sizeIndex: L
1711
- }), w && w({
1712
- ...p,
1713
- sizeIndex: L
1842
+ (M || mt) && (Ce(y, {
1843
+ ...h,
1844
+ sizeIndex: S
1845
+ }) && K ? (it(void 0), M?.(void 0)) : (it({
1846
+ ...h,
1847
+ sizeIndex: S
1848
+ }), M && M({
1849
+ ...h,
1850
+ sizeIndex: S
1714
1851
  })));
1715
1852
  }, children: [
1716
- /* @__PURE__ */ i.jsx(Zt.rect, { x: 0, width: O.bandwidth(), variants: {
1853
+ /* @__PURE__ */ i.jsx(ee.rect, { x: 0, width: v.bandwidth(), variants: {
1717
1854
  initial: {
1718
1855
  height: 0,
1719
- fill: M[L],
1720
- y: b(0)
1856
+ fill: B[S],
1857
+ y: O(0)
1721
1858
  },
1722
1859
  whileInView: {
1723
- height: Math.abs(b(oe(p.size.filter((Vt, l) => l <= L && Vt))) - b(oe(p.size.filter((Vt, l) => l < L && Vt)))),
1724
- y: b(oe(p.size.filter((Vt, l) => l <= L && Vt))),
1725
- fill: M[L],
1860
+ height: Math.abs(O(ce(h.size.filter((Bt, u) => u <= S && Bt))) - O(ce(h.size.filter((Bt, u) => u < S && Bt)))),
1861
+ y: O(ce(h.size.filter((Bt, u) => u <= S && Bt))),
1862
+ fill: B[S],
1726
1863
  transition: {
1727
- duration: o.duration
1864
+ duration: l.duration
1728
1865
  }
1729
1866
  }
1730
- }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
1867
+ }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
1731
1868
  height: 0,
1732
- y: b(0),
1869
+ y: O(0),
1733
1870
  transition: {
1734
- duration: o.duration
1871
+ duration: l.duration
1735
1872
  }
1736
1873
  } }),
1737
- ut ? /* @__PURE__ */ i.jsx(Zt.text, { x: O.bandwidth() / 2, style: {
1874
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { x: v.bandwidth() / 2, style: {
1738
1875
  textAnchor: "middle",
1739
- ...u?.graphObjectValues || {}
1740
- }, className: pe("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
1876
+ ...c?.graphObjectValues || {}
1877
+ }, className: be("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
1741
1878
  initial: {
1742
- y: b(0),
1879
+ y: O(0),
1743
1880
  opacity: 0,
1744
- fill: Ne(M[L])
1881
+ fill: Be(B[S])
1745
1882
  },
1746
1883
  whileInView: {
1747
- y: b(oe(p.size.filter((Vt, l) => l <= L && Vt))) + Math.abs(b(oe(p.size.filter((Vt, l) => l <= L && Vt))) - b(oe(p.size.filter((Vt, l) => l < L && Vt)))) / 2,
1748
- opacity: ee && Math.abs(b(oe(p.size.filter((Vt, l) => l <= L && Vt))) - b(oe(p.size.filter((Vt, l) => l < L && Vt)))) > 20 ? 1 : 0,
1749
- fill: Ne(M[L]),
1884
+ y: O(ce(h.size.filter((Bt, u) => u <= S && Bt))) + Math.abs(O(ce(h.size.filter((Bt, u) => u <= S && Bt))) - O(ce(h.size.filter((Bt, u) => u < S && Bt)))) / 2,
1885
+ opacity: _t && Math.abs(O(ce(h.size.filter((Bt, u) => u <= S && Bt))) - O(ce(h.size.filter((Bt, u) => u < S && Bt)))) > 20 ? 1 : 0,
1886
+ fill: Be(B[S]),
1750
1887
  transition: {
1751
- duration: o.duration
1888
+ duration: l.duration
1752
1889
  }
1753
1890
  }
1754
- }, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
1891
+ }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
1755
1892
  opacity: 0,
1756
1893
  transition: {
1757
- duration: o.duration
1894
+ duration: l.duration
1758
1895
  }
1759
- }, children: ue(ee, x, r, tt, S) }) : null
1760
- ] }, `${p.label}-${d[L] || L}`)),
1761
- y ? /* @__PURE__ */ i.jsx(Ye, { value: `${p.label}`.length < zt ? `${p.label}` : `${`${p.label}`.substring(0, zt)}...`, y: b(0) + 5, x: 0, width: O.bandwidth(), height: n.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: o, isInView: X }) : null,
1762
- ut ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1896
+ }, children: fe(_t, x, d, at, U) }) : null
1897
+ ] }, `${h.label}-${m[S] || S}`)),
1898
+ A ? /* @__PURE__ */ i.jsx(Re, { value: `${h.label}`.length < St ? `${h.label}` : `${`${h.label}`.substring(0, St)}...`, y: O(0) + 5, x: 0, width: v.bandwidth(), height: r.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: l, isInView: Y }) : null,
1899
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
1763
1900
  textAnchor: "middle",
1764
- ...u?.graphObjectValues || {}
1765
- }, x: O.bandwidth() / 2, dy: -10, className: pe("graph-value graph-value-total", R ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1901
+ ...c?.graphObjectValues || {}
1902
+ }, x: v.bandwidth() / 2, dy: -10, className: be("graph-value graph-value-total", Q ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1766
1903
  initial: {
1767
- y: b(0),
1904
+ y: O(0),
1768
1905
  opacity: 0,
1769
- ...R && {
1770
- fill: R
1906
+ ...Q && {
1907
+ fill: Q
1771
1908
  }
1772
1909
  },
1773
1910
  whileInView: {
1774
- y: b(oe(p.size.map(Hs))),
1911
+ y: O(ce(h.size.map(qs))),
1775
1912
  opacity: 1,
1776
- ...R && {
1777
- fill: R
1913
+ ...Q && {
1914
+ fill: Q
1778
1915
  },
1779
1916
  transition: {
1780
- duration: o.duration
1917
+ duration: l.duration
1781
1918
  }
1782
1919
  }
1783
1920
  }, exit: {
1784
1921
  opacity: 0,
1785
1922
  transition: {
1786
- duration: o.duration
1923
+ duration: l.duration
1787
1924
  }
1788
- }, initial: "initial", animate: X ? "whileInView" : "initial", children: ue(oe(p.size.filter(Fs)), x, r, tt, S) }) : null
1789
- ] }, p.label)), P = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((p, ee) => /* @__PURE__ */ i.jsx(He, { text: p.text, color: p.color, y: b(p.value), x1: 0 - A, x2: it + n.right, classNames: p.classNames, styles: p.styles, animate: o, isInView: X }, ee)) }) : null, t[8] = o, t[9] = B, t[10] = M, t[11] = j, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = d, t[19] = h, t[20] = m, t[21] = xt, t[22] = mt, t[23] = it, t[24] = ct, t[25] = X, t[26] = G, t[27] = A, t[28] = n.bottom, t[29] = n.left, t[30] = n.right, t[31] = n.top, t[32] = F, t[33] = Tt, t[34] = J, t[35] = f, t[36] = x, t[37] = H, t[38] = w, t[39] = jt, t[40] = r, t[41] = tt, t[42] = dt, t[43] = W, t[44] = et, t[45] = y, t[46] = I, t[47] = ut, t[48] = u?.graphObjectValues, t[49] = u?.xAxis?.axis, t[50] = u?.xAxis?.labels, t[51] = u?.yAxis?.gridLines, t[52] = u?.yAxis?.labels, t[53] = u?.yAxis?.title, t[54] = S, t[55] = zt, t[56] = R, t[57] = _, t[58] = C, t[59] = g, t[60] = Q, t[61] = Z, t[62] = U, t[63] = V, t[64] = ht, t[65] = Mt, t[66] = st, t[67] = Ct, t[68] = E, t[69] = at, t[70] = P, t[71] = ft;
1925
+ }, initial: "initial", animate: Y ? "whileInView" : "initial", children: fe(ce(h.size.filter(Rs)), x, d, at, U) }) : null
1926
+ ] }, h.label)), Ft = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((h, _t) => /* @__PURE__ */ i.jsx(Ee, { text: h.text, color: h.color, y: O(h.value), x1: 0 - k, x2: xt + r.right, classNames: h.classNames, styles: h.styles, animate: l, isInView: Y }, _t)) }) : null, t[16] = l, t[17] = L, t[18] = B, t[19] = Wt, t[20] = q, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = m, t[28] = g, t[29] = w, t[30] = mt, t[31] = Ct, t[32] = xt, t[33] = Tt, t[34] = Y, t[35] = k, t[36] = r.bottom, t[37] = r.left, t[38] = r.right, t[39] = r.top, t[40] = D, t[41] = Xt, t[42] = nt, t[43] = y, t[44] = x, t[45] = et, t[46] = M, t[47] = Et, t[48] = d, t[49] = at, t[50] = kt, t[51] = K, t[52] = J, t[53] = A, t[54] = lt, t[55] = Mt, t[56] = c?.graphObjectValues, t[57] = c?.xAxis?.axis, t[58] = c?.xAxis?.labels, t[59] = c?.yAxis?.gridLines, t[60] = c?.yAxis?.labels, t[61] = c?.yAxis?.title, t[62] = U, t[63] = St, t[64] = Q, t[65] = Ot, t[66] = jt, t[67] = ct, t[68] = Ft, t[69] = Nt, t[70] = Vt, t[71] = zt, t[72] = G, t[73] = I, t[74] = z, t[75] = ht, t[76] = ot, t[77] = dt, t[78] = vt, t[79] = _;
1790
1927
  } else
1791
- C = t[58], g = t[59], Q = t[60], Z = t[61], U = t[62], V = t[63], ht = t[64], Mt = t[65], st = t[66], Ct = t[67], E = t[68], at = t[69], P = t[70], ft = t[71];
1792
- let pt;
1793
- t[93] !== C || t[94] !== at || t[95] !== P ? (pt = /* @__PURE__ */ i.jsxs(C, { children: [
1794
- at,
1795
- P
1796
- ] }), t[93] = C, t[94] = at, t[95] = P, t[96] = pt) : pt = t[96];
1797
- let vt;
1798
- t[97] !== h ? (vt = h.filter(Ps).map(Bs), t[97] = h, t[98] = vt) : vt = t[98];
1928
+ jt = t[66], ct = t[67], Ft = t[68], Nt = t[69], Vt = t[70], zt = t[71], G = t[72], I = t[73], z = t[74], ht = t[75], ot = t[76], dt = t[77], vt = t[78], _ = t[79];
1929
+ let ut;
1930
+ t[99] !== jt || t[100] !== Ft || t[101] !== _ ? (ut = /* @__PURE__ */ i.jsxs(jt, { children: [
1931
+ _,
1932
+ Ft
1933
+ ] }), t[99] = jt, t[100] = Ft, t[101] = _, t[102] = ut) : ut = t[102];
1799
1934
  let wt;
1800
- t[99] !== Q || t[100] !== Z || t[101] !== U || t[102] !== V || t[103] !== pt || t[104] !== vt || t[105] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
1801
- Q,
1802
- Z,
1803
- U,
1804
- V,
1805
- pt,
1806
- vt
1807
- ] }), t[99] = Q, t[100] = Z, t[101] = U, t[102] = V, t[103] = pt, t[104] = vt, t[105] = ft, t[106] = wt) : wt = t[106];
1808
- let ot;
1809
- t[107] !== g || t[108] !== ht || t[109] !== Mt || t[110] !== st || t[111] !== Ct || t[112] !== E || t[113] !== wt ? (ot = /* @__PURE__ */ i.jsx(g, { width: ht, height: Mt, viewBox: st, direction: Ct, ref: E, children: wt }), t[107] = g, t[108] = ht, t[109] = Mt, t[110] = st, t[111] = Ct, t[112] = E, t[113] = wt, t[114] = ot) : ot = t[114];
1935
+ t[103] !== g ? (wt = g.filter(Gs).map(Es), t[103] = g, t[104] = wt) : wt = t[104];
1936
+ let st;
1937
+ t[105] !== Nt || t[106] !== Vt || t[107] !== zt || t[108] !== G || t[109] !== I || t[110] !== ut || t[111] !== wt ? (st = /* @__PURE__ */ i.jsxs("g", { transform: Nt, children: [
1938
+ Vt,
1939
+ zt,
1940
+ G,
1941
+ I,
1942
+ ut,
1943
+ wt
1944
+ ] }), t[105] = Nt, t[106] = Vt, t[107] = zt, t[108] = G, t[109] = I, t[110] = ut, t[111] = wt, t[112] = st) : st = t[112];
1810
1945
  let At;
1811
- t[115] !== s?.tooltip || t[116] !== N || t[117] !== Dt || t[118] !== c || t[119] !== u?.tooltip || t[120] !== nt ? (At = c && nt && N && Dt ? /* @__PURE__ */ i.jsx($e, { data: c, body: nt, xPos: N, yPos: Dt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[115] = s?.tooltip, t[116] = N, t[117] = Dt, t[118] = c, t[119] = u?.tooltip, t[120] = nt, t[121] = At) : At = t[121];
1946
+ t[113] !== ct || t[114] !== z || t[115] !== ht || t[116] !== ot || t[117] !== dt || t[118] !== vt || t[119] !== st ? (At = /* @__PURE__ */ i.jsx(ct, { width: z, height: ht, viewBox: ot, direction: dt, ref: vt, children: st }), t[113] = ct, t[114] = z, t[115] = ht, t[116] = ot, t[117] = dt, t[118] = vt, t[119] = st, t[120] = At) : At = t[120];
1812
1947
  let $t;
1813
- t[122] !== s?.modal || t[123] !== xt || t[124] !== f ? ($t = xt && f !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: xt, data: f, setData: Y, className: s?.modal }) : null, t[122] = s?.modal, t[123] = xt, t[124] = f, t[125] = $t) : $t = t[125];
1814
- let Ot;
1815
- return t[126] !== ot || t[127] !== At || t[128] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1816
- ot,
1948
+ t[121] !== s?.tooltip || t[122] !== W || t[123] !== Yt || t[124] !== n || t[125] !== c?.tooltip || t[126] !== tt ? ($t = n && tt && W && Yt ? /* @__PURE__ */ i.jsx(Ve, { data: n, body: tt, xPos: W, yPos: Yt, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[121] = s?.tooltip, t[122] = W, t[123] = Yt, t[124] = n, t[125] = c?.tooltip, t[126] = tt, t[127] = $t) : $t = t[127];
1949
+ let b;
1950
+ t[128] !== s?.modal || t[129] !== mt || t[130] !== y ? (b = mt && y !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: mt, data: y, setData: it, className: s?.modal }) : null, t[128] = s?.modal, t[129] = mt, t[130] = y, t[131] = b) : b = t[131];
1951
+ let $;
1952
+ return t[132] !== At || t[133] !== $t || t[134] !== b ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1817
1953
  At,
1818
- $t
1819
- ] }), t[126] = ot, t[127] = At, t[128] = $t, t[129] = Ot) : Ot = t[129], Ot;
1954
+ $t,
1955
+ b
1956
+ ] }), t[132] = At, t[133] = $t, t[134] = b, t[135] = $) : $ = t[135], $;
1820
1957
  }
1821
- function Bs(e) {
1958
+ function Es(e) {
1822
1959
  return e.layer;
1823
1960
  }
1824
- function Ps(e) {
1961
+ function Gs(e) {
1825
1962
  return e.position === "after";
1826
1963
  }
1827
- function Fs(e) {
1964
+ function Rs(e) {
1828
1965
  return e;
1829
1966
  }
1830
- function Hs(e) {
1967
+ function qs(e) {
1831
1968
  return e || 0;
1832
1969
  }
1833
- function Xs(e) {
1970
+ function Us(e) {
1834
1971
  return e.layer;
1835
1972
  }
1836
- function Ys(e) {
1973
+ function Js(e) {
1837
1974
  return e.position === "before";
1838
1975
  }
1839
- function Es(e) {
1976
+ function Ks(e) {
1840
1977
  return e !== 0;
1841
1978
  }
1842
- function Gs(e) {
1979
+ function Qs(e) {
1843
1980
  return e !== 0;
1844
1981
  }
1845
- function Ws(e) {
1982
+ function Zs(e) {
1846
1983
  return `${e.id}`;
1847
1984
  }
1848
- function Rs(e) {
1849
- const t = xe.c(43), {
1850
- data: m,
1851
- graphTitle: D,
1852
- colors: Xt,
1853
- sources: St,
1854
- graphDescription: gt,
1855
- barPadding: _,
1856
- showTicks: ct,
1857
- truncateBy: M,
1858
- height: j,
1859
- width: y,
1860
- footNote: I,
1861
- colorDomain: zt,
1862
- colorLegendTitle: nt,
1863
- padding: jt,
1864
- backgroundColor: S,
1865
- topMargin: tt,
1866
- bottomMargin: ut,
1867
- leftMargin: dt,
1868
- rightMargin: Tt,
1869
- tooltip: w,
1870
- onSeriesMouseOver: et,
1871
- suffix: G,
1872
- prefix: F,
1873
- showLabels: J,
1874
- relativeHeight: W,
1875
- showValues: xt,
1876
- refValues: B,
1877
- graphID: R,
1878
- maxValue: H,
1879
- onSeriesMouseClick: u,
1985
+ function _s(e) {
1986
+ const t = ge.c(113), {
1987
+ data: a,
1988
+ graphTitle: P,
1989
+ colors: qt,
1990
+ sources: Ut,
1991
+ graphDescription: It,
1992
+ barPadding: Ot,
1993
+ showTicks: Tt,
1994
+ truncateBy: B,
1995
+ height: q,
1996
+ width: A,
1997
+ footNote: lt,
1998
+ colorDomain: St,
1999
+ colorLegendTitle: tt,
2000
+ padding: Et,
2001
+ backgroundColor: U,
2002
+ topMargin: at,
2003
+ bottomMargin: Mt,
2004
+ leftMargin: kt,
2005
+ rightMargin: Xt,
2006
+ tooltip: M,
2007
+ onSeriesMouseOver: J,
2008
+ suffix: H,
2009
+ prefix: D,
2010
+ showLabels: nt,
2011
+ relativeHeight: K,
2012
+ showValues: mt,
2013
+ refValues: L,
2014
+ graphID: Q,
2015
+ maxValue: et,
2016
+ onSeriesMouseClick: c,
1880
2017
  graphDownload: s,
1881
- dataDownload: o,
1882
- language: d,
1883
- labelOrder: r,
1884
- minHeight: h,
2018
+ dataDownload: l,
2019
+ language: m,
2020
+ labelOrder: d,
2021
+ minHeight: g,
1885
2022
  theme: x,
1886
- maxBarThickness: A,
1887
- sortParameter: K,
1888
- maxNumberOfBars: q,
1889
- minBarThickness: rt,
1890
- showColorScale: Ft,
1891
- ariaLabel: Yt,
1892
- resetSelectionOnDoubleClick: X,
1893
- detailsOnClick: yt,
1894
- barAxisTitle: Bt,
1895
- noOfTicks: n,
1896
- valueColor: c,
1897
- styles: T,
1898
- classNames: f,
1899
- filterNA: Y,
1900
- animate: N,
1901
- precision: $,
1902
- customLayers: Dt,
1903
- timeline: bt,
1904
- naLabel: it,
1905
- sortData: mt,
1906
- orientation: C
1907
- } = e, g = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, Q = _ === void 0 ? 0.25 : _, Z = ct === void 0 ? !0 : ct, U = M === void 0 ? 999 : M, V = S === void 0 ? !1 : S, ht = G === void 0 ? "" : G, Mt = F === void 0 ? "" : F, st = J === void 0 ? !0 : J, Ct = xt === void 0 ? !0 : xt, E = s === void 0 ? !1 : s, at = o === void 0 ? !1 : o, P = d === void 0 ? "en" : d, ft = h === void 0 ? 0 : h, pt = x === void 0 ? "light" : x, vt = Ft === void 0 ? !0 : Ft, wt = X === void 0 ? !0 : X, ot = n === void 0 ? 5 : n, At = Y === void 0 ? !0 : Y, $t = N === void 0 ? !1 : N, Ot = $ === void 0 ? 2 : $;
2023
+ maxBarThickness: k,
2024
+ sortParameter: rt,
2025
+ maxNumberOfBars: Z,
2026
+ minBarThickness: pt,
2027
+ showColorScale: Jt,
2028
+ ariaLabel: Gt,
2029
+ resetSelectionOnDoubleClick: Y,
2030
+ detailsOnClick: gt,
2031
+ barAxisTitle: Ht,
2032
+ noOfTicks: r,
2033
+ valueColor: n,
2034
+ styles: F,
2035
+ classNames: y,
2036
+ filterNA: it,
2037
+ animate: W,
2038
+ precision: C,
2039
+ customLayers: Yt,
2040
+ timeline: yt,
2041
+ naLabel: xt,
2042
+ sortData: Ct,
2043
+ orientation: E
2044
+ } = e, w = qt === void 0 ? xe.light.categoricalColors.colors : qt, bt = Ot === void 0 ? 0.25 : Ot, Wt = Tt === void 0 ? !0 : Tt, jt = B === void 0 ? 999 : B, ct = U === void 0 ? !1 : U, Ft = H === void 0 ? "" : H, Nt = D === void 0 ? "" : D, Vt = nt === void 0 ? !0 : nt, zt = mt === void 0 ? !0 : mt, G = s === void 0 ? !1 : s, I = l === void 0 ? !1 : l, z = m === void 0 ? "en" : m, ht = g === void 0 ? 0 : g, ot = x === void 0 ? "light" : x, dt = Jt === void 0 ? !0 : Jt, vt = Y === void 0 ? !0 : Y, _ = r === void 0 ? 5 : r, ut = it === void 0 ? !0 : it, wt = W === void 0 ? !1 : W, st = C === void 0 ? 2 : C;
2045
+ let At;
2046
+ t[0] !== Yt ? (At = Yt === void 0 ? [] : Yt, t[0] = Yt, t[1] = At) : At = t[1];
2047
+ const $t = At;
1908
2048
  let b;
1909
- t[0] !== Dt ? (b = Dt === void 0 ? [] : Dt, t[0] = Dt, t[1] = b) : b = t[1];
1910
- const lt = b, It = bt === void 0 ? {
2049
+ t[2] !== yt ? (b = yt === void 0 ? {
1911
2050
  enabled: !1,
1912
2051
  autoplay: !1,
1913
2052
  showOnlyActiveDate: !0
1914
- } : bt, Et = it === void 0 ? "NA" : it, qt = (C === void 0 ? "vertical" : C) === "horizontal" ? Ms : Ss, [Nt, Kt] = Wt(0), [Lt, Qt] = Wt(0), [Ut, Ht] = Wt(It.autoplay), kt = Qe(Le(m, "date", !0).map((Pt) => Se(`${Pt}`, It.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oa), [Rt, Jt] = Wt(It.autoplay ? 0 : kt.length - 1), [z, v] = Wt(void 0), k = de(null), a = de(null);
1915
- let p, ee;
1916
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
1917
- const Pt = new ResizeObserver((ne) => {
1918
- Kt(ne[0].target.clientWidth || 620), Qt(ne[0].target.clientHeight || 480);
2053
+ } : yt, t[2] = yt, t[3] = b) : b = t[3];
2054
+ const $ = b, O = xt === void 0 ? "NA" : xt, ft = (E === void 0 ? "vertical" : E) === "horizontal" ? js : Ys, [j, p] = Zt(0), [f, Dt] = Zt(0), [Lt, Kt] = Zt($.autoplay);
2055
+ let N;
2056
+ if (t[4] !== a || t[5] !== $.dateFormat) {
2057
+ let Pt;
2058
+ t[7] !== $.dateFormat ? (Pt = (le) => He(`${le.date}`, $.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = $.dateFormat, t[8] = Pt) : Pt = t[8], N = [...new Set(a.filter(xl).map(Pt))], N.sort(ml), t[4] = a, t[5] = $.dateFormat, t[6] = N;
2059
+ } else
2060
+ N = t[6];
2061
+ const T = N, [Rt, X] = Zt($.autoplay ? 0 : T.length - 1), [V, R] = Zt(void 0), o = pe(null), h = pe(null);
2062
+ let _t, S;
2063
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (_t = () => {
2064
+ const Pt = new ResizeObserver((le) => {
2065
+ p(le[0].target.clientWidth || 620), Dt(le[0].target.clientHeight || 480);
1919
2066
  });
1920
- return k.current && Pt.observe(k.current), () => Pt.disconnect();
1921
- }, ee = [], t[2] = p, t[3] = ee) : (p = t[2], ee = t[3]), we(p, ee), we(() => {
2067
+ return o.current && Pt.observe(o.current), () => Pt.disconnect();
2068
+ }, S = [], t[9] = _t, t[10] = S) : (_t = t[9], S = t[10]), ke(_t, S);
2069
+ let Bt, u;
2070
+ t[11] !== Lt || t[12] !== $.speed || t[13] !== T ? (Bt = () => {
1922
2071
  const Pt = setInterval(() => {
1923
- Jt((ne) => ne < kt.length - 1 ? ne + 1 : 0);
1924
- }, (It.speed || 2) * 1e3);
1925
- return Ut || clearInterval(Pt), () => clearInterval(Pt);
1926
- }, [kt, Ut, It.speed]);
1927
- const L = Te(kt, Rt, It.showOnlyActiveDate, It.dateFormat || "yyyy"), Vt = Ke, l = f?.graphContainer, ie = T?.graphContainer;
1928
- let se;
1929
- t[4] !== f?.description || t[5] !== f?.title || t[6] !== m || t[7] !== at || t[8] !== gt || t[9] !== E || t[10] !== D || t[11] !== T?.description || t[12] !== T?.title || t[13] !== y ? (se = D || gt || E || at ? /* @__PURE__ */ i.jsx(Ee, { styles: {
1930
- title: T?.title,
1931
- description: T?.description
2072
+ X((le) => le < T.length - 1 ? le + 1 : 0);
2073
+ }, ($.speed || 2) * 1e3);
2074
+ return Lt || clearInterval(Pt), () => clearInterval(Pt);
2075
+ }, u = [T, Lt, $.speed], t[11] = Lt, t[12] = $.speed, t[13] = T, t[14] = Bt, t[15] = u) : (Bt = t[14], u = t[15]), ke(Bt, u);
2076
+ const se = $.dateFormat || "yyyy";
2077
+ let ae;
2078
+ t[16] !== Rt || t[17] !== se || t[18] !== $.showOnlyActiveDate || t[19] !== T ? (ae = Fe(T, Rt, $.showOnlyActiveDate, se), t[16] = Rt, t[17] = se, t[18] = $.showOnlyActiveDate, t[19] = T, t[20] = ae) : ae = t[20];
2079
+ const me = ae, he = y?.graphContainer, ue = F?.graphContainer;
2080
+ let oe;
2081
+ t[21] !== y?.description || t[22] !== y?.title || t[23] !== a || t[24] !== I || t[25] !== It || t[26] !== G || t[27] !== P || t[28] !== F?.description || t[29] !== F?.title || t[30] !== A ? (oe = P || It || G || I ? /* @__PURE__ */ i.jsx(qe, { styles: {
2082
+ title: F?.title,
2083
+ description: F?.description
1932
2084
  }, classNames: {
1933
- title: f?.title,
1934
- description: f?.description
1935
- }, graphTitle: D, graphDescription: gt, width: y, graphDownload: E ? a : void 0, dataDownload: at ? m.map(aa).filter(sa).length > 0 ? m.map(ia).filter(ea) : m.filter(ta) : null }) : null, t[4] = f?.description, t[5] = f?.title, t[6] = m, t[7] = at, t[8] = gt, t[9] = E, t[10] = D, t[11] = T?.description, t[12] = T?.title, t[13] = y, t[14] = se) : se = t[14];
1936
- const me = It.enabled && kt.length > 0 && L ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
2085
+ title: y?.title,
2086
+ description: y?.description
2087
+ }, graphTitle: P, graphDescription: It, width: A, graphDownload: G ? h : void 0, dataDownload: I ? a.map(ul).filter(dl).length > 0 ? a.map(cl).filter(rl) : a.filter(nl) : null }) : null, t[21] = y?.description, t[22] = y?.title, t[23] = a, t[24] = I, t[25] = It, t[26] = G, t[27] = P, t[28] = F?.description, t[29] = F?.title, t[30] = A, t[31] = oe) : oe = t[31];
2088
+ let re;
2089
+ t[32] !== Rt || t[33] !== me || t[34] !== Lt || t[35] !== $.enabled || t[36] !== T ? (re = $.enabled && T.length > 0 && me ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
1937
2090
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1938
- Ht(!Ut);
1939
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Ut ? "Click to pause animation" : "Click to play animation", children: Ut ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
1940
- /* @__PURE__ */ i.jsx(Ie, { min: kt[0], max: kt[kt.length - 1], marks: L, step: null, defaultValue: kt[kt.length - 1], value: kt[Rt], onChangeComplete: (Pt) => {
1941
- Jt(kt.indexOf(Pt));
2091
+ Kt(!Lt);
2092
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Lt ? "Click to pause animation" : "Click to play animation", children: Lt ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsx(Ze, {}) }),
2093
+ /* @__PURE__ */ i.jsx(Pe, { min: T[0], max: T[T.length - 1], marks: me, step: null, defaultValue: T[T.length - 1], value: T[Rt], onChangeComplete: (Pt) => {
2094
+ X(T.indexOf(Pt));
1942
2095
  }, onChange: (Pt) => {
1943
- Jt(kt.indexOf(Pt));
2096
+ X(T.indexOf(Pt));
1944
2097
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1945
- ] }) : null, fe = "grow flex flex-col justify-center gap-3 w-full", re = m.length === 0 ? /* @__PURE__ */ i.jsx(Re, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1946
- vt ? /* @__PURE__ */ i.jsx(We, { width: y, colorDomain: zt, colors: g, colorLegendTitle: nt, setSelectedColor: v, showNAColor: !1, className: f?.colorLegend }) : null,
1947
- /* @__PURE__ */ i.jsx(Je, { ref: k, children: Nt && Lt ? /* @__PURE__ */ i.jsx(qt, { data: K !== void 0 ? K === "total" ? ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(_s) : Pt), Qs, [mt || "asc"]).filter((Pt, ne) => q ? ne < q : !0) : ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Ks) : Pt), (Pt) => _t(Pt.size[K]) ? -1 / 0 : Pt.size[K], [mt || "asc"]).filter((Pt, ne) => q ? ne < q : !0) : ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Js) : Pt).filter((Pt, ne) => q ? ne < q : !0), barColors: g, width: Nt, height: Lt, barPadding: Q, showTicks: Z, leftMargin: dt, rightMargin: Tt, topMargin: tt, bottomMargin: ut, truncateBy: U, showLabels: st, tooltip: w, onSeriesMouseOver: et, showValues: Ct, suffix: ht, prefix: Mt, refValues: B, maxValue: _t(H) ? Math.max(...m.map(qs)) : H, onSeriesMouseClick: u, selectedColor: z, rtl: P === "he" || P === "ar", labelOrder: r, maxBarThickness: A, minBarThickness: rt, resetSelectionOnDoubleClick: wt, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: ot, valueColor: c, classNames: f, styles: T, animate: $t === !0 ? {
2098
+ ] }) : null, t[32] = Rt, t[33] = me, t[34] = Lt, t[35] = $.enabled, t[36] = T, t[37] = re) : re = t[37];
2099
+ let ne;
2100
+ t[38] !== ft || t[39] !== wt || t[40] !== Ht || t[41] !== bt || t[42] !== Mt || t[43] !== y || t[44] !== St || t[45] !== tt || t[46] !== w || t[47] !== $t || t[48] !== a || t[49] !== gt || t[50] !== ut || t[51] !== Rt || t[52] !== d || t[53] !== z || t[54] !== kt || t[55] !== k || t[56] !== Z || t[57] !== et || t[58] !== pt || t[59] !== O || t[60] !== _ || t[61] !== c || t[62] !== J || t[63] !== st || t[64] !== Nt || t[65] !== L || t[66] !== vt || t[67] !== Xt || t[68] !== V || t[69] !== dt || t[70] !== Vt || t[71] !== Wt || t[72] !== zt || t[73] !== Ct || t[74] !== rt || t[75] !== F || t[76] !== Ft || t[77] !== f || t[78] !== j || t[79] !== $.dateFormat || t[80] !== $.enabled || t[81] !== M || t[82] !== at || t[83] !== jt || t[84] !== T || t[85] !== n || t[86] !== A ? (ne = /* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2101
+ dt ? /* @__PURE__ */ i.jsx(Je, { width: A, colorDomain: St, colors: w, colorLegendTitle: tt, setSelectedColor: R, showNAColor: !1, className: y?.colorLegend }) : null,
2102
+ /* @__PURE__ */ i.jsx(_e, { ref: o, children: j && f ? /* @__PURE__ */ i.jsx(ft, { data: rt !== void 0 ? rt === "total" ? Te(Me(a, $.dateFormat || "yyyy").filter((Pt) => $.enabled ? Pt.date === we(new Date(T[Rt]), $.dateFormat || "yyyy") : Pt).filter((Pt) => ut ? !Pt.size.every(ol) : Pt), ll, [Ct || "asc"]).filter((Pt, le) => Z ? le < Z : !0) : Te(Me(a, $.dateFormat || "yyyy").filter((Pt) => $.enabled ? Pt.date === we(new Date(T[Rt]), $.dateFormat || "yyyy") : Pt).filter((Pt) => ut ? !Pt.size.every(sl) : Pt), (Pt) => ie(Pt.size[rt]) ? -1 / 0 : Pt.size[rt], [Ct || "asc"]).filter((Pt, le) => Z ? le < Z : !0) : Me(a, $.dateFormat || "yyyy").filter((Pt) => $.enabled ? Pt.date === we(new Date(T[Rt]), $.dateFormat || "yyyy") : Pt).filter((Pt) => ut ? !Pt.size.every(il) : Pt).filter((Pt, le) => Z ? le < Z : !0), barColors: w, width: j, height: f, barPadding: bt, showTicks: Wt, leftMargin: kt, rightMargin: Xt, topMargin: at, bottomMargin: Mt, truncateBy: jt, showLabels: Vt, tooltip: M, onSeriesMouseOver: J, showValues: zt, suffix: Ft, prefix: Nt, refValues: L, maxValue: ie(et) ? Math.max(...a.map(tl)) : et, onSeriesMouseClick: c, selectedColor: V, rtl: z === "he" || z === "ar", labelOrder: d, maxBarThickness: k, minBarThickness: pt, resetSelectionOnDoubleClick: vt, detailsOnClick: gt, barAxisTitle: Ht, noOfTicks: _, valueColor: n, classNames: y, styles: F, animate: wt === !0 ? {
1948
2103
  duration: 0.5,
1949
2104
  once: !0,
1950
2105
  amount: 0.5
1951
- } : $t || {
2106
+ } : wt || {
1952
2107
  duration: 0,
1953
2108
  once: !0,
1954
2109
  amount: 0
1955
- }, colorDomain: zt, precision: Ot, customLayers: lt, naLabel: Et }) : null })
1956
- ] });
1957
- let ae;
1958
- t[15] !== re ? (ae = /* @__PURE__ */ i.jsx("div", { className: fe, children: re }), t[15] = re, t[16] = ae) : ae = t[16];
1959
- let le;
1960
- t[17] !== f?.footnote || t[18] !== f?.source || t[19] !== I || t[20] !== St || t[21] !== T?.footnote || t[22] !== T?.source || t[23] !== y ? (le = St || I ? /* @__PURE__ */ i.jsx(Ge, { styles: {
1961
- footnote: T?.footnote,
1962
- source: T?.source
2110
+ }, colorDomain: St, precision: st, customLayers: $t, naLabel: O }) : null })
2111
+ ] }) }), t[38] = ft, t[39] = wt, t[40] = Ht, t[41] = bt, t[42] = Mt, t[43] = y, t[44] = St, t[45] = tt, t[46] = w, t[47] = $t, t[48] = a, t[49] = gt, t[50] = ut, t[51] = Rt, t[52] = d, t[53] = z, t[54] = kt, t[55] = k, t[56] = Z, t[57] = et, t[58] = pt, t[59] = O, t[60] = _, t[61] = c, t[62] = J, t[63] = st, t[64] = Nt, t[65] = L, t[66] = vt, t[67] = Xt, t[68] = V, t[69] = dt, t[70] = Vt, t[71] = Wt, t[72] = zt, t[73] = Ct, t[74] = rt, t[75] = F, t[76] = Ft, t[77] = f, t[78] = j, t[79] = $.dateFormat, t[80] = $.enabled, t[81] = M, t[82] = at, t[83] = jt, t[84] = T, t[85] = n, t[86] = A, t[87] = ne) : ne = t[87];
2112
+ let de;
2113
+ t[88] !== y?.footnote || t[89] !== y?.source || t[90] !== lt || t[91] !== Ut || t[92] !== F?.footnote || t[93] !== F?.source || t[94] !== A ? (de = Ut || lt ? /* @__PURE__ */ i.jsx(Ue, { styles: {
2114
+ footnote: F?.footnote,
2115
+ source: F?.source
1963
2116
  }, classNames: {
1964
- footnote: f?.footnote,
1965
- source: f?.source
1966
- }, sources: St, footNote: I, width: y }) : null, t[17] = f?.footnote, t[18] = f?.source, t[19] = I, t[20] = St, t[21] = T?.footnote, t[22] = T?.source, t[23] = y, t[24] = le) : le = t[24];
1967
- let Gt;
1968
- return t[25] !== Vt || t[26] !== Yt || t[27] !== V || t[28] !== R || t[29] !== j || t[30] !== P || t[31] !== ft || t[32] !== jt || t[33] !== W || t[34] !== l || t[35] !== ie || t[36] !== se || t[37] !== me || t[38] !== ae || t[39] !== le || t[40] !== pt || t[41] !== y ? (Gt = /* @__PURE__ */ i.jsxs(Vt, { className: l, style: ie, id: R, ref: a, "aria-label": Yt, backgroundColor: V, theme: pt, language: P, minHeight: ft, width: y, height: j, relativeHeight: W, padding: jt, children: [
1969
- se,
1970
- me,
1971
- ae,
1972
- le
1973
- ] }), t[25] = Vt, t[26] = Yt, t[27] = V, t[28] = R, t[29] = j, t[30] = P, t[31] = ft, t[32] = jt, t[33] = W, t[34] = l, t[35] = ie, t[36] = se, t[37] = me, t[38] = ae, t[39] = le, t[40] = pt, t[41] = y, t[42] = Gt) : Gt = t[42], Gt;
2117
+ footnote: y?.footnote,
2118
+ source: y?.source
2119
+ }, sources: Ut, footNote: lt, width: A }) : null, t[88] = y?.footnote, t[89] = y?.source, t[90] = lt, t[91] = Ut, t[92] = F?.footnote, t[93] = F?.source, t[94] = A, t[95] = de) : de = t[95];
2120
+ let Qt;
2121
+ return t[96] !== Gt || t[97] !== ct || t[98] !== Q || t[99] !== q || t[100] !== z || t[101] !== ht || t[102] !== Et || t[103] !== K || t[104] !== he || t[105] !== ue || t[106] !== oe || t[107] !== re || t[108] !== ne || t[109] !== de || t[110] !== ot || t[111] !== A ? (Qt = /* @__PURE__ */ i.jsxs(ti, { className: he, style: ue, id: Q, ref: h, "aria-label": Gt, backgroundColor: ct, theme: ot, language: z, minHeight: ht, width: A, height: q, relativeHeight: K, padding: Et, children: [
2122
+ oe,
2123
+ re,
2124
+ ne,
2125
+ de
2126
+ ] }), t[96] = Gt, t[97] = ct, t[98] = Q, t[99] = q, t[100] = z, t[101] = ht, t[102] = Et, t[103] = K, t[104] = he, t[105] = ue, t[106] = oe, t[107] = re, t[108] = ne, t[109] = de, t[110] = ot, t[111] = A, t[112] = Qt) : Qt = t[112], Qt;
1974
2127
  }
1975
- function qs(e) {
1976
- return oe(e.size.filter(Us)) || 0;
2128
+ function tl(e) {
2129
+ return ce(e.size.filter(el)) || 0;
1977
2130
  }
1978
- function Us(e) {
1979
- return !_t(e);
2131
+ function el(e) {
2132
+ return !ie(e);
1980
2133
  }
1981
- function Js(e) {
2134
+ function il(e) {
1982
2135
  return e == null;
1983
2136
  }
1984
- function Ks(e) {
2137
+ function sl(e) {
1985
2138
  return e == null;
1986
2139
  }
1987
- function Qs(e) {
1988
- return oe(e.size.filter(Zs));
2140
+ function ll(e) {
2141
+ return ce(e.size.filter(al));
1989
2142
  }
1990
- function Zs(e) {
1991
- return !_t(e);
2143
+ function al(e) {
2144
+ return !ie(e);
1992
2145
  }
1993
- function _s(e) {
2146
+ function ol(e) {
1994
2147
  return e == null;
1995
2148
  }
1996
- function ta(e) {
2149
+ function nl(e) {
1997
2150
  return e !== void 0;
1998
2151
  }
1999
- function ea(e) {
2152
+ function rl(e) {
2000
2153
  return e !== void 0;
2001
2154
  }
2002
- function ia(e) {
2155
+ function cl(e) {
2003
2156
  return e.data;
2004
2157
  }
2005
- function sa(e) {
2158
+ function dl(e) {
2006
2159
  return e !== void 0;
2007
2160
  }
2008
- function aa(e) {
2161
+ function ul(e) {
2009
2162
  return e.data;
2010
2163
  }
2011
- function oa(e, t) {
2012
- return Ze(e, t);
2013
- }
2014
- function Xa(e) {
2015
- const t = xe.c(61), {
2016
- data: m,
2017
- graphTitle: D,
2018
- colors: Xt,
2019
- barPadding: St,
2020
- showTicks: gt,
2021
- leftMargin: _,
2022
- rightMargin: ct,
2023
- topMargin: M,
2024
- bottomMargin: j,
2025
- truncateBy: y,
2026
- showLabels: I,
2027
- showValues: zt,
2028
- backgroundColor: nt,
2029
- suffix: jt,
2030
- prefix: S,
2031
- sources: tt,
2032
- graphDescription: ut,
2033
- height: dt,
2034
- width: Tt,
2035
- footNote: w,
2036
- colorDomain: et,
2037
- colorLegendTitle: G,
2038
- padding: F,
2039
- relativeHeight: J,
2040
- tooltip: W,
2041
- onSeriesMouseOver: xt,
2042
- refValues: B,
2043
- showColorScale: R,
2044
- graphID: H,
2045
- maxValue: u,
2164
+ function ml(e, t) {
2165
+ return e - t;
2166
+ }
2167
+ function xl(e) {
2168
+ return e.date;
2169
+ }
2170
+ function ql(e) {
2171
+ const t = ge.c(61), {
2172
+ data: a,
2173
+ graphTitle: P,
2174
+ colors: qt,
2175
+ barPadding: Ut,
2176
+ showTicks: It,
2177
+ leftMargin: Ot,
2178
+ rightMargin: Tt,
2179
+ topMargin: B,
2180
+ bottomMargin: q,
2181
+ truncateBy: A,
2182
+ showLabels: lt,
2183
+ showValues: St,
2184
+ backgroundColor: tt,
2185
+ suffix: Et,
2186
+ prefix: U,
2187
+ sources: at,
2188
+ graphDescription: Mt,
2189
+ height: kt,
2190
+ width: Xt,
2191
+ footNote: M,
2192
+ colorDomain: J,
2193
+ colorLegendTitle: H,
2194
+ padding: D,
2195
+ relativeHeight: nt,
2196
+ tooltip: K,
2197
+ onSeriesMouseOver: mt,
2198
+ refValues: L,
2199
+ showColorScale: Q,
2200
+ graphID: et,
2201
+ maxValue: c,
2046
2202
  minValue: s,
2047
- highlightedDataPoints: o,
2048
- onSeriesMouseClick: d,
2049
- graphDownload: r,
2050
- dataDownload: h,
2203
+ highlightedDataPoints: l,
2204
+ onSeriesMouseClick: m,
2205
+ graphDownload: d,
2206
+ dataDownload: g,
2051
2207
  language: x,
2052
- theme: A,
2053
- sortData: K,
2054
- labelOrder: q,
2055
- showNAColor: rt,
2056
- minHeight: Ft,
2057
- maxBarThickness: Yt,
2058
- maxNumberOfBars: X,
2059
- minBarThickness: yt,
2060
- ariaLabel: Bt,
2061
- resetSelectionOnDoubleClick: n,
2062
- detailsOnClick: c,
2063
- barAxisTitle: T,
2064
- noOfTicks: f,
2065
- valueColor: Y,
2066
- orientation: N,
2067
- styles: $,
2068
- classNames: Dt,
2069
- filterNA: bt,
2070
- animate: it,
2071
- dimmedOpacity: mt,
2072
- precision: C,
2073
- customLayers: g,
2074
- timeline: Q,
2075
- naLabel: Z
2076
- } = e, U = N === void 0 ? "vertical" : N;
2077
- let V;
2078
- return t[0] !== it || t[1] !== Bt || t[2] !== nt || t[3] !== T || t[4] !== St || t[5] !== j || t[6] !== Dt || t[7] !== et || t[8] !== G || t[9] !== Xt || t[10] !== g || t[11] !== m || t[12] !== h || t[13] !== c || t[14] !== mt || t[15] !== bt || t[16] !== w || t[17] !== ut || t[18] !== r || t[19] !== H || t[20] !== D || t[21] !== dt || t[22] !== o || t[23] !== q || t[24] !== x || t[25] !== _ || t[26] !== Yt || t[27] !== X || t[28] !== u || t[29] !== yt || t[30] !== Ft || t[31] !== s || t[32] !== Z || t[33] !== f || t[34] !== d || t[35] !== xt || t[36] !== U || t[37] !== F || t[38] !== C || t[39] !== S || t[40] !== B || t[41] !== J || t[42] !== n || t[43] !== ct || t[44] !== R || t[45] !== I || t[46] !== rt || t[47] !== gt || t[48] !== zt || t[49] !== K || t[50] !== tt || t[51] !== $ || t[52] !== jt || t[53] !== A || t[54] !== Q || t[55] !== W || t[56] !== M || t[57] !== y || t[58] !== Y || t[59] !== Tt ? (V = /* @__PURE__ */ i.jsx(rs, { data: m, graphTitle: D, colors: Xt, barPadding: St, showTicks: gt, leftMargin: _, rightMargin: ct, topMargin: M, bottomMargin: j, truncateBy: y, showLabels: I, showValues: zt, backgroundColor: nt, suffix: jt, prefix: S, sources: tt, graphDescription: ut, height: dt, width: Tt, footNote: w, colorDomain: et, colorLegendTitle: G, padding: F, relativeHeight: J, tooltip: W, onSeriesMouseOver: xt, refValues: B, showColorScale: R, graphID: H, maxValue: u, minValue: s, highlightedDataPoints: o, onSeriesMouseClick: d, graphDownload: r, dataDownload: h, language: x, theme: A, sortData: K, labelOrder: q, showNAColor: rt, minHeight: Ft, maxBarThickness: Yt, maxNumberOfBars: X, minBarThickness: yt, ariaLabel: Bt, resetSelectionOnDoubleClick: n, styles: $, detailsOnClick: c, barAxisTitle: T, noOfTicks: f, valueColor: Y, classNames: Dt, filterNA: bt, animate: it, dimmedOpacity: mt, precision: C, customLayers: g, timeline: Q, naLabel: Z, orientation: U }), t[0] = it, t[1] = Bt, t[2] = nt, t[3] = T, t[4] = St, t[5] = j, t[6] = Dt, t[7] = et, t[8] = G, t[9] = Xt, t[10] = g, t[11] = m, t[12] = h, t[13] = c, t[14] = mt, t[15] = bt, t[16] = w, t[17] = ut, t[18] = r, t[19] = H, t[20] = D, t[21] = dt, t[22] = o, t[23] = q, t[24] = x, t[25] = _, t[26] = Yt, t[27] = X, t[28] = u, t[29] = yt, t[30] = Ft, t[31] = s, t[32] = Z, t[33] = f, t[34] = d, t[35] = xt, t[36] = U, t[37] = F, t[38] = C, t[39] = S, t[40] = B, t[41] = J, t[42] = n, t[43] = ct, t[44] = R, t[45] = I, t[46] = rt, t[47] = gt, t[48] = zt, t[49] = K, t[50] = tt, t[51] = $, t[52] = jt, t[53] = A, t[54] = Q, t[55] = W, t[56] = M, t[57] = y, t[58] = Y, t[59] = Tt, t[60] = V) : V = t[60], V;
2079
- }
2080
- function Ya(e) {
2081
- const t = xe.c(57), {
2082
- data: m,
2083
- graphTitle: D,
2084
- colors: Xt,
2085
- sources: St,
2086
- graphDescription: gt,
2087
- barPadding: _,
2088
- showTicks: ct,
2089
- truncateBy: M,
2090
- height: j,
2091
- width: y,
2092
- footNote: I,
2093
- colorDomain: zt,
2094
- colorLegendTitle: nt,
2095
- suffix: jt,
2096
- prefix: S,
2097
- showValues: tt,
2098
- padding: ut,
2099
- backgroundColor: dt,
2100
- leftMargin: Tt,
2101
- rightMargin: w,
2102
- topMargin: et,
2103
- bottomMargin: G,
2104
- showLabels: F,
2105
- relativeHeight: J,
2106
- tooltip: W,
2107
- onSeriesMouseOver: xt,
2108
- refValues: B,
2109
- graphID: R,
2110
- maxValue: H,
2111
- minValue: u,
2208
+ theme: k,
2209
+ sortData: rt,
2210
+ labelOrder: Z,
2211
+ showNAColor: pt,
2212
+ minHeight: Jt,
2213
+ maxBarThickness: Gt,
2214
+ maxNumberOfBars: Y,
2215
+ minBarThickness: gt,
2216
+ ariaLabel: Ht,
2217
+ resetSelectionOnDoubleClick: r,
2218
+ detailsOnClick: n,
2219
+ barAxisTitle: F,
2220
+ noOfTicks: y,
2221
+ valueColor: it,
2222
+ orientation: W,
2223
+ styles: C,
2224
+ classNames: Yt,
2225
+ filterNA: yt,
2226
+ animate: xt,
2227
+ dimmedOpacity: Ct,
2228
+ precision: E,
2229
+ customLayers: w,
2230
+ timeline: bt,
2231
+ naLabel: Wt
2232
+ } = e, jt = W === void 0 ? "vertical" : W;
2233
+ let ct;
2234
+ return t[0] !== xt || t[1] !== Ht || t[2] !== tt || t[3] !== F || t[4] !== Ut || t[5] !== q || t[6] !== Yt || t[7] !== J || t[8] !== H || t[9] !== qt || t[10] !== w || t[11] !== a || t[12] !== g || t[13] !== n || t[14] !== Ct || t[15] !== yt || t[16] !== M || t[17] !== Mt || t[18] !== d || t[19] !== et || t[20] !== P || t[21] !== kt || t[22] !== l || t[23] !== Z || t[24] !== x || t[25] !== Ot || t[26] !== Gt || t[27] !== Y || t[28] !== c || t[29] !== gt || t[30] !== Jt || t[31] !== s || t[32] !== Wt || t[33] !== y || t[34] !== m || t[35] !== mt || t[36] !== jt || t[37] !== D || t[38] !== E || t[39] !== U || t[40] !== L || t[41] !== nt || t[42] !== r || t[43] !== Tt || t[44] !== Q || t[45] !== lt || t[46] !== pt || t[47] !== It || t[48] !== St || t[49] !== rt || t[50] !== at || t[51] !== C || t[52] !== Et || t[53] !== k || t[54] !== bt || t[55] !== K || t[56] !== B || t[57] !== A || t[58] !== it || t[59] !== Xt ? (ct = /* @__PURE__ */ i.jsx(hs, { data: a, graphTitle: P, colors: qt, barPadding: Ut, showTicks: It, leftMargin: Ot, rightMargin: Tt, topMargin: B, bottomMargin: q, truncateBy: A, showLabels: lt, showValues: St, backgroundColor: tt, suffix: Et, prefix: U, sources: at, graphDescription: Mt, height: kt, width: Xt, footNote: M, colorDomain: J, colorLegendTitle: H, padding: D, relativeHeight: nt, tooltip: K, onSeriesMouseOver: mt, refValues: L, showColorScale: Q, graphID: et, maxValue: c, minValue: s, highlightedDataPoints: l, onSeriesMouseClick: m, graphDownload: d, dataDownload: g, language: x, theme: k, sortData: rt, labelOrder: Z, showNAColor: pt, minHeight: Jt, maxBarThickness: Gt, maxNumberOfBars: Y, minBarThickness: gt, ariaLabel: Ht, resetSelectionOnDoubleClick: r, styles: C, detailsOnClick: n, barAxisTitle: F, noOfTicks: y, valueColor: it, classNames: Yt, filterNA: yt, animate: xt, dimmedOpacity: Ct, precision: E, customLayers: w, timeline: bt, naLabel: Wt, orientation: jt }), t[0] = xt, t[1] = Ht, t[2] = tt, t[3] = F, t[4] = Ut, t[5] = q, t[6] = Yt, t[7] = J, t[8] = H, t[9] = qt, t[10] = w, t[11] = a, t[12] = g, t[13] = n, t[14] = Ct, t[15] = yt, t[16] = M, t[17] = Mt, t[18] = d, t[19] = et, t[20] = P, t[21] = kt, t[22] = l, t[23] = Z, t[24] = x, t[25] = Ot, t[26] = Gt, t[27] = Y, t[28] = c, t[29] = gt, t[30] = Jt, t[31] = s, t[32] = Wt, t[33] = y, t[34] = m, t[35] = mt, t[36] = jt, t[37] = D, t[38] = E, t[39] = U, t[40] = L, t[41] = nt, t[42] = r, t[43] = Tt, t[44] = Q, t[45] = lt, t[46] = pt, t[47] = It, t[48] = St, t[49] = rt, t[50] = at, t[51] = C, t[52] = Et, t[53] = k, t[54] = bt, t[55] = K, t[56] = B, t[57] = A, t[58] = it, t[59] = Xt, t[60] = ct) : ct = t[60], ct;
2235
+ }
2236
+ function Ul(e) {
2237
+ const t = ge.c(57), {
2238
+ data: a,
2239
+ graphTitle: P,
2240
+ colors: qt,
2241
+ sources: Ut,
2242
+ graphDescription: It,
2243
+ barPadding: Ot,
2244
+ showTicks: Tt,
2245
+ truncateBy: B,
2246
+ height: q,
2247
+ width: A,
2248
+ footNote: lt,
2249
+ colorDomain: St,
2250
+ colorLegendTitle: tt,
2251
+ suffix: Et,
2252
+ prefix: U,
2253
+ showValues: at,
2254
+ padding: Mt,
2255
+ backgroundColor: kt,
2256
+ leftMargin: Xt,
2257
+ rightMargin: M,
2258
+ topMargin: J,
2259
+ bottomMargin: H,
2260
+ showLabels: D,
2261
+ relativeHeight: nt,
2262
+ tooltip: K,
2263
+ onSeriesMouseOver: mt,
2264
+ refValues: L,
2265
+ graphID: Q,
2266
+ maxValue: et,
2267
+ minValue: c,
2112
2268
  onSeriesMouseClick: s,
2113
- graphDownload: o,
2114
- dataDownload: d,
2115
- language: r,
2116
- labelOrder: h,
2269
+ graphDownload: l,
2270
+ dataDownload: m,
2271
+ language: d,
2272
+ labelOrder: g,
2117
2273
  minHeight: x,
2118
- theme: A,
2119
- sortParameter: K,
2120
- sortData: q,
2121
- maxBarThickness: rt,
2122
- ariaLabel: Ft,
2123
- resetSelectionOnDoubleClick: Yt,
2124
- detailsOnClick: X,
2125
- barAxisTitle: yt,
2126
- noOfTicks: Bt,
2127
- valueColor: n,
2128
- orientation: c,
2129
- styles: T,
2130
- classNames: f,
2131
- filterNA: Y,
2132
- animate: N,
2133
- precision: $,
2134
- customLayers: Dt,
2135
- showColorScale: bt,
2136
- timeline: it,
2137
- naLabel: mt
2138
- } = e, C = c === void 0 ? "vertical" : c;
2139
- let g;
2140
- return t[0] !== N || t[1] !== Ft || t[2] !== dt || t[3] !== yt || t[4] !== _ || t[5] !== G || t[6] !== f || t[7] !== zt || t[8] !== nt || t[9] !== Xt || t[10] !== Dt || t[11] !== m || t[12] !== d || t[13] !== X || t[14] !== Y || t[15] !== I || t[16] !== gt || t[17] !== o || t[18] !== R || t[19] !== D || t[20] !== j || t[21] !== h || t[22] !== r || t[23] !== Tt || t[24] !== rt || t[25] !== H || t[26] !== x || t[27] !== u || t[28] !== mt || t[29] !== Bt || t[30] !== s || t[31] !== xt || t[32] !== C || t[33] !== ut || t[34] !== $ || t[35] !== S || t[36] !== B || t[37] !== J || t[38] !== Yt || t[39] !== w || t[40] !== bt || t[41] !== F || t[42] !== ct || t[43] !== tt || t[44] !== q || t[45] !== K || t[46] !== St || t[47] !== T || t[48] !== jt || t[49] !== A || t[50] !== it || t[51] !== W || t[52] !== et || t[53] !== M || t[54] !== n || t[55] !== y ? (g = /* @__PURE__ */ i.jsx(yi, { orientation: C, data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: _, showTicks: ct, truncateBy: M, height: j, width: y, footNote: I, colorDomain: zt, colorLegendTitle: nt, suffix: jt, prefix: S, showValues: tt, padding: ut, backgroundColor: dt, leftMargin: Tt, rightMargin: w, sortParameter: K, sortData: q, topMargin: et, bottomMargin: G, showLabels: F, relativeHeight: J, tooltip: W, onSeriesMouseOver: xt, refValues: B, graphID: R, maxValue: H, minValue: u, onSeriesMouseClick: s, graphDownload: o, dataDownload: d, language: r, labelOrder: h, minHeight: x, theme: A, maxBarThickness: rt, ariaLabel: Ft, resetSelectionOnDoubleClick: Yt, styles: T, detailsOnClick: X, barAxisTitle: yt, noOfTicks: Bt, valueColor: n, classNames: f, filterNA: Y, animate: N, precision: $, customLayers: Dt, showColorScale: bt, timeline: it, naLabel: mt }), t[0] = N, t[1] = Ft, t[2] = dt, t[3] = yt, t[4] = _, t[5] = G, t[6] = f, t[7] = zt, t[8] = nt, t[9] = Xt, t[10] = Dt, t[11] = m, t[12] = d, t[13] = X, t[14] = Y, t[15] = I, t[16] = gt, t[17] = o, t[18] = R, t[19] = D, t[20] = j, t[21] = h, t[22] = r, t[23] = Tt, t[24] = rt, t[25] = H, t[26] = x, t[27] = u, t[28] = mt, t[29] = Bt, t[30] = s, t[31] = xt, t[32] = C, t[33] = ut, t[34] = $, t[35] = S, t[36] = B, t[37] = J, t[38] = Yt, t[39] = w, t[40] = bt, t[41] = F, t[42] = ct, t[43] = tt, t[44] = q, t[45] = K, t[46] = St, t[47] = T, t[48] = jt, t[49] = A, t[50] = it, t[51] = W, t[52] = et, t[53] = M, t[54] = n, t[55] = y, t[56] = g) : g = t[56], g;
2141
- }
2142
- function Ea(e) {
2143
- const t = xe.c(58), {
2144
- data: m,
2145
- graphTitle: D,
2146
- colors: Xt,
2147
- sources: St,
2148
- graphDescription: gt,
2149
- barPadding: _,
2150
- showTicks: ct,
2151
- leftMargin: M,
2152
- rightMargin: j,
2153
- topMargin: y,
2154
- bottomMargin: I,
2155
- truncateBy: zt,
2156
- showLabels: nt,
2157
- showValues: jt,
2158
- backgroundColor: S,
2159
- suffix: tt,
2160
- prefix: ut,
2161
- height: dt,
2162
- width: Tt,
2163
- footNote: w,
2164
- colorDomain: et,
2165
- colorLegendTitle: G,
2166
- padding: F,
2167
- tooltip: J,
2168
- onSeriesMouseOver: W,
2169
- relativeHeight: xt,
2170
- refValues: B,
2171
- graphID: R,
2172
- maxValue: H,
2173
- onSeriesMouseClick: u,
2274
+ theme: k,
2275
+ sortParameter: rt,
2276
+ sortData: Z,
2277
+ maxBarThickness: pt,
2278
+ ariaLabel: Jt,
2279
+ resetSelectionOnDoubleClick: Gt,
2280
+ detailsOnClick: Y,
2281
+ barAxisTitle: gt,
2282
+ noOfTicks: Ht,
2283
+ valueColor: r,
2284
+ orientation: n,
2285
+ styles: F,
2286
+ classNames: y,
2287
+ filterNA: it,
2288
+ animate: W,
2289
+ precision: C,
2290
+ customLayers: Yt,
2291
+ showColorScale: yt,
2292
+ timeline: xt,
2293
+ naLabel: Ct
2294
+ } = e, E = n === void 0 ? "vertical" : n;
2295
+ let w;
2296
+ return t[0] !== W || t[1] !== Jt || t[2] !== kt || t[3] !== gt || t[4] !== Ot || t[5] !== H || t[6] !== y || t[7] !== St || t[8] !== tt || t[9] !== qt || t[10] !== Yt || t[11] !== a || t[12] !== m || t[13] !== Y || t[14] !== it || t[15] !== lt || t[16] !== It || t[17] !== l || t[18] !== Q || t[19] !== P || t[20] !== q || t[21] !== g || t[22] !== d || t[23] !== Xt || t[24] !== pt || t[25] !== et || t[26] !== x || t[27] !== c || t[28] !== Ct || t[29] !== Ht || t[30] !== s || t[31] !== mt || t[32] !== E || t[33] !== Mt || t[34] !== C || t[35] !== U || t[36] !== L || t[37] !== nt || t[38] !== Gt || t[39] !== M || t[40] !== yt || t[41] !== D || t[42] !== Tt || t[43] !== at || t[44] !== Z || t[45] !== rt || t[46] !== Ut || t[47] !== F || t[48] !== Et || t[49] !== k || t[50] !== xt || t[51] !== K || t[52] !== J || t[53] !== B || t[54] !== r || t[55] !== A ? (w = /* @__PURE__ */ i.jsx(wi, { orientation: E, data: a, graphTitle: P, colors: qt, sources: Ut, graphDescription: It, barPadding: Ot, showTicks: Tt, truncateBy: B, height: q, width: A, footNote: lt, colorDomain: St, colorLegendTitle: tt, suffix: Et, prefix: U, showValues: at, padding: Mt, backgroundColor: kt, leftMargin: Xt, rightMargin: M, sortParameter: rt, sortData: Z, topMargin: J, bottomMargin: H, showLabels: D, relativeHeight: nt, tooltip: K, onSeriesMouseOver: mt, refValues: L, graphID: Q, maxValue: et, minValue: c, onSeriesMouseClick: s, graphDownload: l, dataDownload: m, language: d, labelOrder: g, minHeight: x, theme: k, maxBarThickness: pt, ariaLabel: Jt, resetSelectionOnDoubleClick: Gt, styles: F, detailsOnClick: Y, barAxisTitle: gt, noOfTicks: Ht, valueColor: r, classNames: y, filterNA: it, animate: W, precision: C, customLayers: Yt, showColorScale: yt, timeline: xt, naLabel: Ct }), t[0] = W, t[1] = Jt, t[2] = kt, t[3] = gt, t[4] = Ot, t[5] = H, t[6] = y, t[7] = St, t[8] = tt, t[9] = qt, t[10] = Yt, t[11] = a, t[12] = m, t[13] = Y, t[14] = it, t[15] = lt, t[16] = It, t[17] = l, t[18] = Q, t[19] = P, t[20] = q, t[21] = g, t[22] = d, t[23] = Xt, t[24] = pt, t[25] = et, t[26] = x, t[27] = c, t[28] = Ct, t[29] = Ht, t[30] = s, t[31] = mt, t[32] = E, t[33] = Mt, t[34] = C, t[35] = U, t[36] = L, t[37] = nt, t[38] = Gt, t[39] = M, t[40] = yt, t[41] = D, t[42] = Tt, t[43] = at, t[44] = Z, t[45] = rt, t[46] = Ut, t[47] = F, t[48] = Et, t[49] = k, t[50] = xt, t[51] = K, t[52] = J, t[53] = B, t[54] = r, t[55] = A, t[56] = w) : w = t[56], w;
2297
+ }
2298
+ function Jl(e) {
2299
+ const t = ge.c(58), {
2300
+ data: a,
2301
+ graphTitle: P,
2302
+ colors: qt,
2303
+ sources: Ut,
2304
+ graphDescription: It,
2305
+ barPadding: Ot,
2306
+ showTicks: Tt,
2307
+ leftMargin: B,
2308
+ rightMargin: q,
2309
+ topMargin: A,
2310
+ bottomMargin: lt,
2311
+ truncateBy: St,
2312
+ showLabels: tt,
2313
+ showValues: Et,
2314
+ backgroundColor: U,
2315
+ suffix: at,
2316
+ prefix: Mt,
2317
+ height: kt,
2318
+ width: Xt,
2319
+ footNote: M,
2320
+ colorDomain: J,
2321
+ colorLegendTitle: H,
2322
+ padding: D,
2323
+ tooltip: nt,
2324
+ onSeriesMouseOver: K,
2325
+ relativeHeight: mt,
2326
+ refValues: L,
2327
+ graphID: Q,
2328
+ maxValue: et,
2329
+ onSeriesMouseClick: c,
2174
2330
  graphDownload: s,
2175
- dataDownload: o,
2176
- language: d,
2177
- theme: r,
2178
- labelOrder: h,
2331
+ dataDownload: l,
2332
+ language: m,
2333
+ theme: d,
2334
+ labelOrder: g,
2179
2335
  minHeight: x,
2180
- maxBarThickness: A,
2181
- sortParameter: K,
2182
- sortData: q,
2183
- maxNumberOfBars: rt,
2184
- minBarThickness: Ft,
2185
- ariaLabel: Yt,
2186
- resetSelectionOnDoubleClick: X,
2187
- detailsOnClick: yt,
2188
- barAxisTitle: Bt,
2189
- noOfTicks: n,
2190
- valueColor: c,
2191
- orientation: T,
2192
- styles: f,
2193
- classNames: Y,
2194
- filterNA: N,
2195
- animate: $,
2196
- precision: Dt,
2197
- customLayers: bt,
2198
- showColorScale: it,
2199
- timeline: mt,
2200
- naLabel: C
2201
- } = e, g = T === void 0 ? "vertical" : T;
2202
- let Q;
2203
- return t[0] !== $ || t[1] !== Yt || t[2] !== S || t[3] !== Bt || t[4] !== _ || t[5] !== I || t[6] !== Y || t[7] !== et || t[8] !== G || t[9] !== Xt || t[10] !== bt || t[11] !== m || t[12] !== o || t[13] !== yt || t[14] !== N || t[15] !== w || t[16] !== gt || t[17] !== s || t[18] !== R || t[19] !== D || t[20] !== dt || t[21] !== h || t[22] !== d || t[23] !== M || t[24] !== A || t[25] !== rt || t[26] !== H || t[27] !== Ft || t[28] !== x || t[29] !== C || t[30] !== n || t[31] !== u || t[32] !== W || t[33] !== g || t[34] !== F || t[35] !== Dt || t[36] !== ut || t[37] !== B || t[38] !== xt || t[39] !== X || t[40] !== j || t[41] !== it || t[42] !== nt || t[43] !== ct || t[44] !== jt || t[45] !== q || t[46] !== K || t[47] !== St || t[48] !== f || t[49] !== tt || t[50] !== r || t[51] !== mt || t[52] !== J || t[53] !== y || t[54] !== zt || t[55] !== c || t[56] !== Tt ? (Q = /* @__PURE__ */ i.jsx(Rs, { data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: _, showTicks: ct, leftMargin: M, rightMargin: j, topMargin: y, bottomMargin: I, truncateBy: zt, showLabels: nt, showValues: jt, backgroundColor: S, suffix: tt, prefix: ut, height: dt, width: Tt, footNote: w, colorDomain: et, colorLegendTitle: G, padding: F, tooltip: J, onSeriesMouseOver: W, relativeHeight: xt, refValues: B, graphID: R, maxValue: H, onSeriesMouseClick: u, graphDownload: s, dataDownload: o, language: d, theme: r, labelOrder: h, minHeight: x, maxBarThickness: A, sortParameter: K, sortData: q, maxNumberOfBars: rt, minBarThickness: Ft, ariaLabel: Yt, resetSelectionOnDoubleClick: X, styles: f, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: n, valueColor: c, classNames: Y, filterNA: N, animate: $, precision: Dt, customLayers: bt, showColorScale: it, timeline: mt, naLabel: C, orientation: g }), t[0] = $, t[1] = Yt, t[2] = S, t[3] = Bt, t[4] = _, t[5] = I, t[6] = Y, t[7] = et, t[8] = G, t[9] = Xt, t[10] = bt, t[11] = m, t[12] = o, t[13] = yt, t[14] = N, t[15] = w, t[16] = gt, t[17] = s, t[18] = R, t[19] = D, t[20] = dt, t[21] = h, t[22] = d, t[23] = M, t[24] = A, t[25] = rt, t[26] = H, t[27] = Ft, t[28] = x, t[29] = C, t[30] = n, t[31] = u, t[32] = W, t[33] = g, t[34] = F, t[35] = Dt, t[36] = ut, t[37] = B, t[38] = xt, t[39] = X, t[40] = j, t[41] = it, t[42] = nt, t[43] = ct, t[44] = jt, t[45] = q, t[46] = K, t[47] = St, t[48] = f, t[49] = tt, t[50] = r, t[51] = mt, t[52] = J, t[53] = y, t[54] = zt, t[55] = c, t[56] = Tt, t[57] = Q) : Q = t[57], Q;
2336
+ maxBarThickness: k,
2337
+ sortParameter: rt,
2338
+ sortData: Z,
2339
+ maxNumberOfBars: pt,
2340
+ minBarThickness: Jt,
2341
+ ariaLabel: Gt,
2342
+ resetSelectionOnDoubleClick: Y,
2343
+ detailsOnClick: gt,
2344
+ barAxisTitle: Ht,
2345
+ noOfTicks: r,
2346
+ valueColor: n,
2347
+ orientation: F,
2348
+ styles: y,
2349
+ classNames: it,
2350
+ filterNA: W,
2351
+ animate: C,
2352
+ precision: Yt,
2353
+ customLayers: yt,
2354
+ showColorScale: xt,
2355
+ timeline: Ct,
2356
+ naLabel: E
2357
+ } = e, w = F === void 0 ? "vertical" : F;
2358
+ let bt;
2359
+ return t[0] !== C || t[1] !== Gt || t[2] !== U || t[3] !== Ht || t[4] !== Ot || t[5] !== lt || t[6] !== it || t[7] !== J || t[8] !== H || t[9] !== qt || t[10] !== yt || t[11] !== a || t[12] !== l || t[13] !== gt || t[14] !== W || t[15] !== M || t[16] !== It || t[17] !== s || t[18] !== Q || t[19] !== P || t[20] !== kt || t[21] !== g || t[22] !== m || t[23] !== B || t[24] !== k || t[25] !== pt || t[26] !== et || t[27] !== Jt || t[28] !== x || t[29] !== E || t[30] !== r || t[31] !== c || t[32] !== K || t[33] !== w || t[34] !== D || t[35] !== Yt || t[36] !== Mt || t[37] !== L || t[38] !== mt || t[39] !== Y || t[40] !== q || t[41] !== xt || t[42] !== tt || t[43] !== Tt || t[44] !== Et || t[45] !== Z || t[46] !== rt || t[47] !== Ut || t[48] !== y || t[49] !== at || t[50] !== d || t[51] !== Ct || t[52] !== nt || t[53] !== A || t[54] !== St || t[55] !== n || t[56] !== Xt ? (bt = /* @__PURE__ */ i.jsx(_s, { data: a, graphTitle: P, colors: qt, sources: Ut, graphDescription: It, barPadding: Ot, showTicks: Tt, leftMargin: B, rightMargin: q, topMargin: A, bottomMargin: lt, truncateBy: St, showLabels: tt, showValues: Et, backgroundColor: U, suffix: at, prefix: Mt, height: kt, width: Xt, footNote: M, colorDomain: J, colorLegendTitle: H, padding: D, tooltip: nt, onSeriesMouseOver: K, relativeHeight: mt, refValues: L, graphID: Q, maxValue: et, onSeriesMouseClick: c, graphDownload: s, dataDownload: l, language: m, theme: d, labelOrder: g, minHeight: x, maxBarThickness: k, sortParameter: rt, sortData: Z, maxNumberOfBars: pt, minBarThickness: Jt, ariaLabel: Gt, resetSelectionOnDoubleClick: Y, styles: y, detailsOnClick: gt, barAxisTitle: Ht, noOfTicks: r, valueColor: n, classNames: it, filterNA: W, animate: C, precision: Yt, customLayers: yt, showColorScale: xt, timeline: Ct, naLabel: E, orientation: w }), t[0] = C, t[1] = Gt, t[2] = U, t[3] = Ht, t[4] = Ot, t[5] = lt, t[6] = it, t[7] = J, t[8] = H, t[9] = qt, t[10] = yt, t[11] = a, t[12] = l, t[13] = gt, t[14] = W, t[15] = M, t[16] = It, t[17] = s, t[18] = Q, t[19] = P, t[20] = kt, t[21] = g, t[22] = m, t[23] = B, t[24] = k, t[25] = pt, t[26] = et, t[27] = Jt, t[28] = x, t[29] = E, t[30] = r, t[31] = c, t[32] = K, t[33] = w, t[34] = D, t[35] = Yt, t[36] = Mt, t[37] = L, t[38] = mt, t[39] = Y, t[40] = q, t[41] = xt, t[42] = tt, t[43] = Tt, t[44] = Et, t[45] = Z, t[46] = rt, t[47] = Ut, t[48] = y, t[49] = at, t[50] = d, t[51] = Ct, t[52] = nt, t[53] = A, t[54] = St, t[55] = n, t[56] = Xt, t[57] = bt) : bt = t[57], bt;
2204
2360
  }
2205
2361
  export {
2206
- Ya as GroupedBarGraph,
2207
- Xa as SimpleBarGraph,
2208
- Ea as StackedBarGraph
2362
+ Ul as GroupedBarGraph,
2363
+ ql as SimpleBarGraph,
2364
+ Jl as StackedBarGraph
2209
2365
  };
2210
2366
  //# sourceMappingURL=BarGraph.js.map