@undp/data-viz 2.3.19 → 2.4.0

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 (95) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +1360 -1363
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BeeSwarmChart.cjs +1 -1
  6. package/dist/BeeSwarmChart.cjs.map +1 -1
  7. package/dist/BeeSwarmChart.js +302 -305
  8. package/dist/BeeSwarmChart.js.map +1 -1
  9. package/dist/BiVariateChoroplethMap.cjs +1 -1
  10. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  11. package/dist/BiVariateChoroplethMap.js +4 -4
  12. package/dist/BiVariateChoroplethMap.js.map +1 -1
  13. package/dist/BulletChart.cjs +1 -1
  14. package/dist/BulletChart.cjs.map +1 -1
  15. package/dist/BulletChart.js +591 -594
  16. package/dist/BulletChart.js.map +1 -1
  17. package/dist/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +4 -4
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +1 -1
  23. package/dist/DotDensityMap.cjs +1 -1
  24. package/dist/DotDensityMap.cjs.map +1 -1
  25. package/dist/DotDensityMap.js +255 -258
  26. package/dist/DotDensityMap.js.map +1 -1
  27. package/dist/DumbbellChart.cjs +1 -1
  28. package/dist/DumbbellChart.cjs.map +1 -1
  29. package/dist/DumbbellChart.js +553 -556
  30. package/dist/DumbbellChart.js.map +1 -1
  31. package/dist/{GraphEl-Dorm_qQE.js → GraphEl-B73N4RIA.js} +2 -2
  32. package/dist/{GraphEl-Dorm_qQE.js.map → GraphEl-B73N4RIA.js.map} +1 -1
  33. package/dist/{GraphEl-D8WRC8-j.cjs → GraphEl-Lt1og0C-.cjs} +2 -2
  34. package/dist/{GraphEl-D8WRC8-j.cjs.map → GraphEl-Lt1og0C-.cjs.map} +1 -1
  35. package/dist/GriddedGraphs.cjs +1 -1
  36. package/dist/GriddedGraphs.js +1 -1
  37. package/dist/Histogram.cjs +1 -1
  38. package/dist/Histogram.js +1 -1
  39. package/dist/HybridMap.cjs +1 -1
  40. package/dist/HybridMap.cjs.map +1 -1
  41. package/dist/HybridMap.js +310 -313
  42. package/dist/HybridMap.js.map +1 -1
  43. package/dist/MultiLineAltChart.cjs +1 -1
  44. package/dist/MultiLineAltChart.cjs.map +1 -1
  45. package/dist/MultiLineAltChart.js +269 -272
  46. package/dist/MultiLineAltChart.js.map +1 -1
  47. package/dist/MultiLineChart.cjs +1 -1
  48. package/dist/MultiLineChart.cjs.map +1 -1
  49. package/dist/MultiLineChart.js +319 -322
  50. package/dist/MultiLineChart.js.map +1 -1
  51. package/dist/RadarChart.cjs +1 -1
  52. package/dist/RadarChart.cjs.map +1 -1
  53. package/dist/RadarChart.js +3 -3
  54. package/dist/RadarChart.js.map +1 -1
  55. package/dist/SankeyChart.cjs +1 -1
  56. package/dist/SankeyChart.cjs.map +1 -1
  57. package/dist/SankeyChart.js +274 -280
  58. package/dist/SankeyChart.js.map +1 -1
  59. package/dist/ScatterPlot.cjs +1 -1
  60. package/dist/ScatterPlot.cjs.map +1 -1
  61. package/dist/ScatterPlot.js +341 -344
  62. package/dist/ScatterPlot.js.map +1 -1
  63. package/dist/SingleGraphDashboard.cjs +1 -1
  64. package/dist/SingleGraphDashboard.js +1 -1
  65. package/dist/SlopeChart.cjs +1 -1
  66. package/dist/SlopeChart.cjs.map +1 -1
  67. package/dist/SlopeChart.js +251 -254
  68. package/dist/SlopeChart.js.map +1 -1
  69. package/dist/StripChart.cjs +1 -1
  70. package/dist/StripChart.cjs.map +1 -1
  71. package/dist/StripChart.js +292 -295
  72. package/dist/StripChart.js.map +1 -1
  73. package/dist/ThreeDGlobe.cjs +1 -1
  74. package/dist/ThreeDGlobe.cjs.map +1 -1
  75. package/dist/ThreeDGlobe.js +3 -3
  76. package/dist/ThreeDGlobe.js.map +1 -1
  77. package/dist/TreeMapGraph.cjs +1 -1
  78. package/dist/TreeMapGraph.cjs.map +1 -1
  79. package/dist/TreeMapGraph.js +196 -199
  80. package/dist/TreeMapGraph.js.map +1 -1
  81. package/dist/WaterfallChart.cjs +1 -1
  82. package/dist/WaterfallChart.cjs.map +1 -1
  83. package/dist/WaterfallChart.js +274 -277
  84. package/dist/WaterfallChart.js.map +1 -1
  85. package/dist/index-B0Awa_de.js +377 -0
  86. package/dist/index-B0Awa_de.js.map +1 -0
  87. package/dist/index-CP8cmNzt.cjs +2 -0
  88. package/dist/index-CP8cmNzt.cjs.map +1 -0
  89. package/dist/index.cjs +1 -1
  90. package/dist/index.js +1 -1
  91. package/package.json +1 -1
  92. package/dist/index-Bdo_HXb_.cjs +0 -2
  93. package/dist/index-Bdo_HXb_.cjs.map +0 -1
  94. package/dist/index-CGrBpeUa.js +0 -380
  95. package/dist/index-CGrBpeUa.js.map +0 -1
@@ -1,170 +1,170 @@
1
- import { c as Fe, j as s, m as Be } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as $e, useState as ie, useEffect as Se } from "react";
3
- import { o as Ke } from "./index-BZQYSqar.js";
4
- import { f as Re, p as Qe } from "./parse-Dv4of-PN.js";
5
- import { g as Ze, N as _e } from "./getSliderMarks-X-_goqH9.js";
6
- import { i as Pe } from "./index-Bwrro8-q.js";
7
- import { s as Le } from "./index-CeVNqhMO.js";
8
- import { n as Te } from "./numberFormattingFunction-DqMf_v1m.js";
9
- import { T as We } from "./Tooltip-Bj-s__cI.js";
1
+ import { c as De, j as s, m as Re } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as Ie, useState as ae, useEffect as Te } from "react";
3
+ import { o as Ue } from "./index-BZQYSqar.js";
4
+ import { f as Fe, p as Je } from "./parse-Dv4of-PN.js";
5
+ import { g as Ke, N as Qe } from "./getSliderMarks-X-_goqH9.js";
6
+ import { i as qe } from "./index-Bwrro8-q.js";
7
+ import { s as Oe } from "./index-CeVNqhMO.js";
8
+ import { n as $e } from "./numberFormattingFunction-DqMf_v1m.js";
9
+ import { T as Be } from "./Tooltip-Bj-s__cI.js";
10
10
  import { c as y } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { A as Xe } from "./Axis-CNZYWzH0.js";
12
- import { A as Ye } from "./AxisTitle-CyLCqpW6.js";
13
- import { X as ti } from "./XAxesLabels-B9gkjUiC.js";
14
- import { R as ei, a as ii } from "./ReferenceLine-D41VuUhE.js";
15
- import { Y as ai } from "./YTicksAndGridLines-CsNSq9W9.js";
16
- import { X as ni } from "./XTicksAndGridLines-gdbGX2rm.js";
17
- import { Y as li } from "./YAxesLabels-hWEUCTvs.js";
18
- import { D as Ee } from "./DetailsModal-B2XBWR7w.js";
19
- import { a as Ge } from "./linear-DNXM5Pdl.js";
20
- import { b as He } from "./band-DYty33LD.js";
21
- import { m as Vt } from "./proxy-BsxtcZKa.js";
22
- import { u as Ue } from "./use-in-view-KOXq5Kmc.js";
23
- import { A as Je } from "./index-Cv_5q6Rb.js";
24
- import { Colors as Ie } from "./Colors.js";
25
- import { E as si } from "./EmptyState-CaxXCkiN.js";
26
- import { a as oi, G as ri } from "./GraphContainer-B8ZqOzKI.js";
27
- import { GraphFooter as ci } from "./GraphFooter.js";
28
- import { GraphHeader as ui } from "./GraphHeader.js";
29
- import { ColorLegend as mi } from "./ColorLegend.js";
30
- import { b as qe } from "./ensureCompleteData-CDIukSG6.js";
31
- import { P as fi, e as di } from "./index-ApTBN0kp.js";
32
- function hi(e) {
33
- const t = Fe.c(164), {
11
+ import { A as Pe } from "./Axis-CNZYWzH0.js";
12
+ import { A as We } from "./AxisTitle-CyLCqpW6.js";
13
+ import { X as Ze } from "./XAxesLabels-B9gkjUiC.js";
14
+ import { R as _e, a as ti } from "./ReferenceLine-D41VuUhE.js";
15
+ import { Y as ei } from "./YTicksAndGridLines-CsNSq9W9.js";
16
+ import { X as ii } from "./XTicksAndGridLines-gdbGX2rm.js";
17
+ import { Y as ai } from "./YAxesLabels-hWEUCTvs.js";
18
+ import { D as Xe } from "./DetailsModal-B2XBWR7w.js";
19
+ import { a as Ye } from "./linear-DNXM5Pdl.js";
20
+ import { b as Ee } from "./band-DYty33LD.js";
21
+ import { m as zt } from "./proxy-BsxtcZKa.js";
22
+ import { u as Ge } from "./use-in-view-KOXq5Kmc.js";
23
+ import { A as He } from "./index-Cv_5q6Rb.js";
24
+ import { Colors as Ne } from "./Colors.js";
25
+ import { E as ni } from "./EmptyState-CaxXCkiN.js";
26
+ import { a as li, G as si } from "./GraphContainer-B8ZqOzKI.js";
27
+ import { GraphFooter as oi } from "./GraphFooter.js";
28
+ import { GraphHeader as ri } from "./GraphHeader.js";
29
+ import { ColorLegend as ci } from "./ColorLegend.js";
30
+ import { b as Se } from "./ensureCompleteData-CDIukSG6.js";
31
+ import { P as ui, e as mi } from "./index-ApTBN0kp.js";
32
+ function fi(e) {
33
+ const t = De.c(164), {
34
34
  data: i,
35
- width: zt,
36
- height: ae,
37
- barColor: Gt,
38
- suffix: jt,
39
- prefix: N,
40
- barPadding: Ht,
41
- showLabels: Ut,
42
- showValues: ne,
43
- showTicks: kt,
44
- truncateBy: le,
45
- leftMargin: he,
46
- rightMargin: Jt,
47
- topMargin: se,
35
+ width: jt,
36
+ height: ne,
37
+ barColor: Yt,
38
+ suffix: kt,
39
+ prefix: O,
40
+ barPadding: Et,
41
+ showLabels: Gt,
42
+ showValues: le,
43
+ showTicks: Ct,
44
+ truncateBy: se,
45
+ leftMargin: xe,
46
+ rightMargin: Ht,
47
+ topMargin: oe,
48
48
  bottomMargin: be,
49
- tooltip: xt,
50
- onSeriesMouseOver: pt,
51
- refValues: Ct,
52
- maxValue: v,
53
- minValue: gt,
54
- highlightedDataPoints: et,
55
- onSeriesMouseClick: ut,
56
- labelOrder: j,
57
- maxBarThickness: Kt,
58
- minBarThickness: Ot,
59
- resetSelectionOnDoubleClick: Qt,
60
- detailsOnClick: mt,
61
- barAxisTitle: P,
62
- valueColor: it,
63
- noOfTicks: Lt,
49
+ tooltip: yt,
50
+ onSeriesMouseOver: bt,
51
+ refValues: Ot,
52
+ maxValue: A,
53
+ minValue: vt,
54
+ highlightedDataPoints: _,
55
+ onSeriesMouseClick: rt,
56
+ labelOrder: z,
57
+ maxBarThickness: Ut,
58
+ minBarThickness: Lt,
59
+ resetSelectionOnDoubleClick: Jt,
60
+ detailsOnClick: ct,
61
+ barAxisTitle: B,
62
+ valueColor: tt,
63
+ noOfTicks: Nt,
64
64
  styles: p,
65
65
  classNames: o,
66
- targetStyle: f,
67
- targetColor: W,
68
- qualitativeRangeColors: at,
66
+ targetStyle: d,
67
+ targetColor: P,
68
+ qualitativeRangeColors: et,
69
69
  measureBarWidthFactor: g,
70
70
  animate: r,
71
- dimmedOpacity: m,
72
- precision: ft,
73
- customLayers: nt,
74
- naLabel: I,
75
- targetLineThickness: oe,
76
- hideAxisLine: re,
77
- locale: yt
78
- } = e, X = he === void 0 ? 20 : he, bt = Jt === void 0 ? 20 : Jt, xe = se === void 0 ? 20 : se, pe = be === void 0 ? 25 : be, ve = $e(null);
79
- let ge;
80
- t[0] !== r.amount || t[1] !== r.once ? (ge = {
71
+ dimmedOpacity: f,
72
+ precision: ut,
73
+ customLayers: it,
74
+ naLabel: L,
75
+ targetLineThickness: re,
76
+ hideAxisLine: ce,
77
+ locale: wt
78
+ } = e, W = xe === void 0 ? 20 : xe, At = Ht === void 0 ? 20 : Ht, pe = oe === void 0 ? 20 : oe, ge = be === void 0 ? 25 : be, ve = Ie(null);
79
+ let ye;
80
+ t[0] !== r.amount || t[1] !== r.once ? (ye = {
81
81
  once: r.once,
82
82
  amount: r.amount
83
- }, t[0] = r.amount, t[1] = r.once, t[2] = ge) : ge = t[2];
84
- const $ = Ue(ve, ge), C = P ? X + 30 : X;
85
- let Nt;
86
- t[3] !== pe || t[4] !== bt || t[5] !== C || t[6] !== xe ? (Nt = {
87
- top: xe,
88
- bottom: pe,
89
- left: C,
90
- right: bt
91
- }, t[3] = pe, t[4] = bt, t[5] = C, t[6] = xe, t[7] = Nt) : Nt = t[7];
92
- const b = Nt, [lt, vt] = ie(void 0), [st, ce] = ie(void 0), [Zt, ue] = ie(void 0), [_t, me] = ie(void 0), d = zt - b.left - b.right, dt = ae - b.top - b.bottom;
93
- let ot;
94
- t[8] !== i ? (ot = Math.max(...i.filter(Bi).map(qi)) < 0 ? 0 : Math.max(...i.filter(Ri).map(Si)), t[8] = i, t[9] = ot) : ot = t[9];
95
- const te = ot;
83
+ }, t[0] = r.amount, t[1] = r.once, t[2] = ye) : ye = t[2];
84
+ const N = Ge(ve, ye), k = B ? W + 30 : W;
96
85
  let It;
97
- t[10] !== i ? (It = Math.max(...i.filter(Fi).map(Ti)) < 0 ? 0 : Math.max(...i.filter(Di).map($i)), t[10] = i, t[11] = It) : It = t[11];
98
- const $t = It;
99
- let Dt;
100
- t[12] !== i ? (Dt = Math.max(...i.map(Ni)), t[12] = i, t[13] = Dt) : Dt = t[13];
101
- const Tt = Dt;
102
- let Ft;
103
- t[14] !== te || t[15] !== v || t[16] !== Tt || t[17] !== $t ? (Ft = y(v) ? Math.max(...[te, $t, Tt].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[te, $t, Tt].filter(Number.isFinite)) : v, t[14] = te, t[15] = v, t[16] = Tt, t[17] = $t, t[18] = Ft) : Ft = t[18];
104
- const St = Ft;
105
- let ee;
106
- t[19] !== i ? (ee = Math.min(...i.filter(Li).map(Oi)) >= 0 ? 0 : Math.min(...i.filter(Ci).map(ki)), t[19] = i, t[20] = ee) : ee = t[20];
107
- const Rt = ee;
108
- let qt;
109
- t[21] !== i ? (qt = Math.min(...i.filter(ji).map(zi)) >= 0 ? 0 : Math.min(...i.filter(Vi).map(Mi)), t[21] = i, t[22] = qt) : qt = t[22];
110
- const Bt = qt;
111
- let wt;
112
- t[23] !== Rt || t[24] !== gt || t[25] !== Bt ? (wt = y(gt) ? Math.min(...[Rt, Bt].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[Rt, Bt].filter(Number.isFinite)) : gt, t[23] = Rt, t[24] = gt, t[25] = Bt, t[26] = wt) : wt = t[26];
113
- const M = wt;
114
- let D;
115
- if (t[27] !== i || t[28] !== j) {
116
- const c = /* @__PURE__ */ new Set(), l = i.map((tt, q) => {
117
- const z = j ? `${tt.label}` : `${q}`;
118
- return c.add(z), {
119
- ...tt,
120
- id: z
86
+ t[3] !== ge || t[4] !== At || t[5] !== k || t[6] !== pe ? (It = {
87
+ top: pe,
88
+ bottom: ge,
89
+ left: k,
90
+ right: At
91
+ }, t[3] = ge, t[4] = At, t[5] = k, t[6] = pe, t[7] = It) : It = t[7];
92
+ const b = It, [at, Mt] = ae(void 0), [nt, ue] = ae(void 0), [Kt, me] = ae(void 0), [Qt, fe] = ae(void 0), h = jt - b.left - b.right, mt = ne - b.top - b.bottom;
93
+ let lt;
94
+ t[8] !== i ? (lt = Math.max(...i.filter(Ri).map(Si)) < 0 ? 0 : Math.max(...i.filter(Fi).map(Ti)), t[8] = i, t[9] = lt) : lt = t[9];
95
+ const Zt = lt;
96
+ let $t;
97
+ t[10] !== i ? ($t = Math.max(...i.filter(Di).map($i)) < 0 ? 0 : Math.max(...i.filter(Ii).map(Ni)), t[10] = i, t[11] = $t) : $t = t[11];
98
+ const Dt = $t;
99
+ let Tt;
100
+ t[12] !== i ? (Tt = Math.max(...i.map(Oi)), t[12] = i, t[13] = Tt) : Tt = t[13];
101
+ const Ft = Tt;
102
+ let St;
103
+ t[14] !== Zt || t[15] !== A || t[16] !== Ft || t[17] !== Dt ? (St = y(A) ? Math.max(...[Zt, Dt, Ft].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[Zt, Dt, Ft].filter(Number.isFinite)) : A, t[14] = Zt, t[15] = A, t[16] = Ft, t[17] = Dt, t[18] = St) : St = t[18];
104
+ const Rt = St;
105
+ let _t;
106
+ t[19] !== i ? (_t = Math.min(...i.filter(Ci).map(ki)) >= 0 ? 0 : Math.min(...i.filter(ji).map(zi)), t[19] = i, t[20] = _t) : _t = t[20];
107
+ const qt = _t;
108
+ let Bt;
109
+ t[21] !== i ? (Bt = Math.min(...i.filter(Vi).map(Mi)) >= 0 ? 0 : Math.min(...i.filter(Ai).map(wi)), t[21] = i, t[22] = Bt) : Bt = t[22];
110
+ const Pt = Bt;
111
+ let ft;
112
+ t[23] !== qt || t[24] !== vt || t[25] !== Pt ? (ft = y(vt) ? Math.min(...[qt, Pt].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[qt, Pt].filter(Number.isFinite)) : vt, t[23] = qt, t[24] = vt, t[25] = Pt, t[26] = ft) : ft = t[26];
113
+ const V = ft;
114
+ let X;
115
+ if (t[27] !== i || t[28] !== z) {
116
+ const u = /* @__PURE__ */ new Set(), n = i.map((M, ot) => {
117
+ const R = z ? `${M.label}` : `${ot}`;
118
+ return u.add(R), {
119
+ ...M,
120
+ id: R
121
121
  };
122
- }), k = j ? j.filter((tt) => !c.has(tt)) : [];
123
- D = [...l, ...k.map(Ai)], t[27] = i, t[28] = j, t[29] = D;
122
+ }), j = z ? z.filter((M) => !u.has(M)) : [];
123
+ X = [...n, ...j.map(vi)], t[27] = i, t[28] = z, t[29] = X;
124
124
  } else
125
- D = t[29];
126
- const ht = D;
127
- let rt;
128
- t[30] !== ht || t[31] !== j ? (rt = j ?? ht.map(wi), t[30] = ht, t[31] = j, t[32] = rt) : rt = t[32];
129
- const At = rt;
130
- let ct, T, Y, E, F, G, H, V, O, w, A, U, J, K;
131
- if (t[33] !== r || t[34] !== P || t[35] !== Gt || t[36] !== At || t[37] !== Ht || t[38] !== o?.graphObjectValues || t[39] !== o?.xAxis?.axis || t[40] !== o?.xAxis?.labels || t[41] !== o?.yAxis?.gridLines || t[42] !== o?.yAxis?.labels || t[43] !== o?.yAxis?.title || t[44] !== nt || t[45] !== ht || t[46] !== mt || t[47] !== m || t[48] !== dt || t[49] !== d || t[50] !== ae || t[51] !== re || t[52] !== et || t[53] !== $ || t[54] !== X || t[55] !== yt || t[56] !== b.bottom || t[57] !== b.left || t[58] !== b.right || t[59] !== b.top || t[60] !== Kt || t[61] !== g || t[62] !== Ot || t[63] !== st || t[64] !== I || t[65] !== Lt || t[66] !== ut || t[67] !== pt || t[68] !== ft || t[69] !== N || t[70] !== at || t[71] !== Ct || t[72] !== Qt || t[73] !== Ut || t[74] !== kt || t[75] !== ne || t[76] !== p?.graphObjectValues || t[77] !== p?.xAxis?.axis || t[78] !== p?.xAxis?.labels || t[79] !== p?.yAxis?.gridLines || t[80] !== p?.yAxis?.labels || t[81] !== p?.yAxis?.title || t[82] !== jt || t[83] !== W || t[84] !== oe || t[85] !== f || t[86] !== le || t[87] !== it || t[88] !== zt || t[89] !== St || t[90] !== M) {
132
- const c = Ge().domain([M, St]).range([dt, 0]).nice(), l = He().domain(At).range([0, Ot ? Math.max(d, Ot * At.length) : Kt ? Math.min(d, Kt * At.length) : d]).paddingInner(Ht), k = c.ticks(Lt);
133
- T = Vt.svg, w = `${zt}px`, A = `${ae}px`, U = `0 0 ${zt} ${ae}`, J = "ltr", K = ve, F = `translate(${b.left},${b.top})`;
134
- let tt;
135
- t[105] !== yt || t[106] !== I || t[107] !== ft || t[108] !== N || t[109] !== kt || t[110] !== jt || t[111] !== M ? (tt = kt ? Te(M < 0 ? 0 : M, I, ft, N, jt, yt) : void 0, t[105] = yt, t[106] = I, t[107] = ft, t[108] = N, t[109] = kt, t[110] = jt, t[111] = M, t[112] = tt) : tt = t[112];
136
- const q = o?.xAxis?.axis, z = o?.yAxis?.labels;
137
- let Wt;
138
- t[113] !== q || t[114] !== z ? (Wt = {
125
+ X = t[29];
126
+ const dt = X;
127
+ let ht;
128
+ t[30] !== dt || t[31] !== z ? (ht = z ?? dt.map(bi), t[30] = dt, t[31] = z, t[32] = ht) : ht = t[32];
129
+ const xt = ht;
130
+ let st, Y, I, E, G, $, D, v, w, C, H, U, J, T;
131
+ if (t[33] !== r || t[34] !== B || t[35] !== Yt || t[36] !== xt || t[37] !== Et || t[38] !== o?.graphObjectValues || t[39] !== o?.xAxis?.axis || t[40] !== o?.xAxis?.labels || t[41] !== o?.yAxis?.gridLines || t[42] !== o?.yAxis?.labels || t[43] !== o?.yAxis?.title || t[44] !== it || t[45] !== dt || t[46] !== ct || t[47] !== f || t[48] !== mt || t[49] !== h || t[50] !== ne || t[51] !== ce || t[52] !== _ || t[53] !== N || t[54] !== W || t[55] !== wt || t[56] !== b.bottom || t[57] !== b.left || t[58] !== b.right || t[59] !== b.top || t[60] !== Ut || t[61] !== g || t[62] !== Lt || t[63] !== nt || t[64] !== L || t[65] !== Nt || t[66] !== rt || t[67] !== bt || t[68] !== ut || t[69] !== O || t[70] !== et || t[71] !== Ot || t[72] !== Jt || t[73] !== Gt || t[74] !== Ct || t[75] !== le || t[76] !== p?.graphObjectValues || t[77] !== p?.xAxis?.axis || t[78] !== p?.xAxis?.labels || t[79] !== p?.yAxis?.gridLines || t[80] !== p?.yAxis?.labels || t[81] !== p?.yAxis?.title || t[82] !== kt || t[83] !== P || t[84] !== re || t[85] !== d || t[86] !== se || t[87] !== tt || t[88] !== jt || t[89] !== Rt || t[90] !== V) {
132
+ const u = Ye().domain([V, Rt]).range([mt, 0]).nice(), n = Ee().domain(xt).range([0, Lt ? Math.max(h, Lt * xt.length) : Ut ? Math.min(h, Ut * xt.length) : h]).paddingInner(Et), j = u.ticks(Nt);
133
+ Y = zt.svg, C = `${jt}px`, H = `${ne}px`, U = `0 0 ${jt} ${ne}`, J = "ltr", T = ve, G = `translate(${b.left},${b.top})`;
134
+ let M;
135
+ t[105] !== wt || t[106] !== L || t[107] !== ut || t[108] !== O || t[109] !== Ct || t[110] !== kt || t[111] !== V ? (M = Ct ? $e(V < 0 ? 0 : V, L, ut, O, kt, wt) : void 0, t[105] = wt, t[106] = L, t[107] = ut, t[108] = O, t[109] = Ct, t[110] = kt, t[111] = V, t[112] = M) : M = t[112];
136
+ const ot = o?.xAxis?.axis, R = o?.yAxis?.labels;
137
+ let m;
138
+ t[113] !== ot || t[114] !== R ? (m = {
139
+ axis: ot,
140
+ label: R
141
+ }, t[113] = ot, t[114] = R, t[115] = m) : m = t[115];
142
+ const q = p?.xAxis?.axis, de = p?.yAxis?.labels;
143
+ let Vt;
144
+ t[116] !== q || t[117] !== de ? (Vt = {
139
145
  axis: q,
140
- label: z
141
- }, t[113] = q, t[114] = z, t[115] = Wt) : Wt = t[115];
142
- const Xt = p?.xAxis?.axis, h = p?.yAxis?.labels;
143
- let L;
144
- t[116] !== Xt || t[117] !== h ? (L = {
145
- axis: Xt,
146
- label: h
147
- }, t[116] = Xt, t[117] = h, t[118] = L) : L = t[118], G = /* @__PURE__ */ s.jsx(Xe, { hideAxisLine: re, y1: c(M < 0 ? 0 : M), y2: c(M < 0 ? 0 : M), x1: 0 - X, x2: d + b.right, label: tt, labelPos: {
148
- x: 0 - X,
146
+ label: de
147
+ }, t[116] = q, t[117] = de, t[118] = Vt) : Vt = t[118], $ = /* @__PURE__ */ s.jsx(Pe, { hideAxisLine: ce, y1: u(V < 0 ? 0 : V), y2: u(V < 0 ? 0 : V), x1: 0 - W, x2: h + b.right, label: M, labelPos: {
148
+ x: 0 - W,
149
149
  dx: 0,
150
- dy: St < 0 ? "1em" : -5,
151
- y: c(M < 0 ? 0 : M)
152
- }, classNames: Wt, styles: L }), H = kt ? /* @__PURE__ */ s.jsx(ai, { values: k.filter(vi), y: k.filter(bi).map((n) => c(n)), x1: 0 - X, x2: d + b.right, styles: {
150
+ dy: Rt < 0 ? "1em" : -5,
151
+ y: u(V < 0 ? 0 : V)
152
+ }, classNames: m, styles: Vt }), D = Ct ? /* @__PURE__ */ s.jsx(ei, { values: j.filter(yi), y: j.filter(gi).map((l) => u(l)), x1: 0 - W, x2: h + b.right, styles: {
153
153
  gridLines: p?.yAxis?.gridLines,
154
154
  labels: p?.yAxis?.labels
155
155
  }, classNames: {
156
156
  gridLines: o?.yAxis?.gridLines,
157
157
  labels: o?.yAxis?.labels
158
- }, suffix: jt, prefix: N, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: ft, locale: yt }) : null;
159
- const fe = 0 - X - 15, Yt = dt / 2, a = p?.yAxis?.title, B = o?.yAxis?.title;
160
- t[119] !== P || t[120] !== fe || t[121] !== Yt || t[122] !== a || t[123] !== B ? (V = /* @__PURE__ */ s.jsx(Ye, { x: fe, y: Yt, style: a, className: B, text: P, rotate90: !0 }), t[119] = P, t[120] = fe, t[121] = Yt, t[122] = a, t[123] = B, t[124] = V) : V = t[124], t[125] !== nt ? (O = nt.filter(yi).map(gi), t[125] = nt, t[126] = O) : O = t[126], ct = Je, Y = ht.map((n) => y(l(n.id)) ? null : /* @__PURE__ */ s.jsxs(Vt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (Mt) => {
161
- vt(n), me(Mt.clientY), ue(Mt.clientX), pt?.(n);
158
+ }, suffix: kt, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: ut, locale: wt }) : null;
159
+ const te = 0 - W - 15, Xt = mt / 2, a = p?.yAxis?.title, Z = o?.yAxis?.title;
160
+ t[119] !== B || t[120] !== te || t[121] !== Xt || t[122] !== a || t[123] !== Z ? (v = /* @__PURE__ */ s.jsx(We, { x: te, y: Xt, style: a, className: Z, text: B, rotate90: !0 }), t[119] = B, t[120] = te, t[121] = Xt, t[122] = a, t[123] = Z, t[124] = v) : v = t[124], t[125] !== it ? (w = it.filter(pi).map(xi), t[125] = it, t[126] = w) : w = t[126], st = He, I = dt.map((l) => y(n(l.id)) ? null : /* @__PURE__ */ s.jsxs(zt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (gt) => {
161
+ Mt(l), fe(gt.clientY), me(gt.clientX), bt?.(l);
162
162
  }, onClick: () => {
163
- (ut || mt) && (Pe(st, n) && Qt ? (ce(void 0), ut?.(void 0)) : (ce(n), ut?.(n)));
164
- }, onMouseMove: (Mt) => {
165
- vt(n), me(Mt.clientY), ue(Mt.clientX);
163
+ (rt || ct) && (qe(nt, l) && Jt ? (ue(void 0), rt?.(void 0)) : (ue(l), rt?.(l)));
164
+ }, onMouseMove: (gt) => {
165
+ Mt(l), fe(gt.clientY), me(gt.clientX);
166
166
  }, onMouseLeave: () => {
167
- vt(void 0), ue(void 0), me(void 0), pt?.(void 0);
167
+ Mt(void 0), me(void 0), fe(void 0), bt?.(void 0);
168
168
  }, exit: {
169
169
  opacity: 0,
170
170
  transition: {
@@ -172,183 +172,183 @@ function hi(e) {
172
172
  }
173
173
  }, variants: {
174
174
  initial: {
175
- x: l(`${n.id}`),
175
+ x: n(`${l.id}`),
176
176
  y: 0,
177
- opacity: et.length !== 0 ? et.indexOf(n.label) !== -1 ? 0.85 : m : 0.85
177
+ opacity: _ ? _.indexOf(l.label) !== -1 ? 0.85 : f : 0.85
178
178
  },
179
179
  whileInView: {
180
- x: l(`${n.id}`),
180
+ x: n(`${l.id}`),
181
181
  y: 0,
182
- opacity: et.length !== 0 ? et.indexOf(n.label) !== -1 ? 0.85 : m : 0.85,
182
+ opacity: _ ? _.indexOf(l.label) !== -1 ? 0.85 : f : 0.85,
183
183
  transition: {
184
184
  duration: r.duration
185
185
  }
186
186
  }
187
- }, initial: "initial", animate: $ ? "whileInView" : "initial", children: [
188
- n.qualitativeRange ? n.qualitativeRange.map((Mt, Et) => /* @__PURE__ */ s.jsx(Vt.rect, { x: 0, exit: {
187
+ }, initial: "initial", animate: N ? "whileInView" : "initial", children: [
188
+ l.qualitativeRange ? l.qualitativeRange.map((gt, ee) => /* @__PURE__ */ s.jsx(zt.rect, { x: 0, exit: {
189
189
  height: 0,
190
- y: c(0),
190
+ y: u(0),
191
191
  transition: {
192
192
  duration: r.duration
193
193
  }
194
194
  }, variants: {
195
195
  initial: {
196
196
  height: 0,
197
- y: c(0),
198
- fill: at[Et]
197
+ y: u(0),
198
+ fill: et[ee]
199
199
  },
200
200
  whileInView: {
201
- height: Math.abs(c(Le(n.qualitativeRange.filter((ye, we) => we <= Et && ye))) - c(Le(n.qualitativeRange.filter((ye, we) => we < Et && ye)))),
202
- y: c(Le(n.qualitativeRange.filter((ye, we) => we <= Et && ye))),
203
- fill: at[Et],
201
+ height: Math.abs(u(Oe(l.qualitativeRange.filter((we, ie) => ie <= ee && we))) - u(Oe(l.qualitativeRange.filter((we, ie) => ie < ee && we)))),
202
+ y: u(Oe(l.qualitativeRange.filter((we, ie) => ie <= ee && we))),
203
+ fill: et[ee],
204
204
  transition: {
205
205
  duration: r.duration
206
206
  }
207
207
  }
208
- }, initial: "initial", animate: $ ? "whileInView" : "initial", width: l.bandwidth() }, Et)) : null,
209
- n.target && f === "background" ? /* @__PURE__ */ s.jsx(Vt.rect, { x: 0, width: l.bandwidth(), exit: {
208
+ }, initial: "initial", animate: N ? "whileInView" : "initial", width: n.bandwidth() }, ee)) : null,
209
+ l.target && d === "background" ? /* @__PURE__ */ s.jsx(zt.rect, { x: 0, width: n.bandwidth(), exit: {
210
210
  height: 0,
211
- y: c(0),
212
- fill: W,
211
+ y: u(0),
212
+ fill: P,
213
213
  transition: {
214
214
  duration: r.duration
215
215
  }
216
216
  }, variants: {
217
217
  initial: {
218
218
  height: 0,
219
- fill: W,
220
- y: c(0)
219
+ fill: P,
220
+ y: u(0)
221
221
  },
222
222
  whileInView: {
223
- height: Math.abs(c(n.target) - c(0)),
224
- fill: W,
225
- y: n.target > 0 ? c(n.target) : c(0),
223
+ height: Math.abs(u(l.target) - u(0)),
224
+ fill: P,
225
+ y: l.target > 0 ? u(l.target) : u(0),
226
226
  transition: {
227
227
  duration: r.duration
228
228
  }
229
229
  }
230
- }, initial: "initial", animate: $ ? "whileInView" : "initial" }) : null,
231
- n.size ? /* @__PURE__ */ s.jsx(Vt.rect, { x: l.bandwidth() * ((1 - g) / 2), width: l.bandwidth() * g, style: {
232
- fill: Gt
230
+ }, initial: "initial", animate: N ? "whileInView" : "initial" }) : null,
231
+ l.size ? /* @__PURE__ */ s.jsx(zt.rect, { x: n.bandwidth() * ((1 - g) / 2), width: n.bandwidth() * g, style: {
232
+ fill: Yt
233
233
  }, exit: {
234
234
  height: 0,
235
- y: c(0),
235
+ y: u(0),
236
236
  transition: {
237
237
  duration: r.duration
238
238
  }
239
239
  }, variants: {
240
240
  initial: {
241
241
  height: 0,
242
- y: c(0)
242
+ y: u(0)
243
243
  },
244
244
  whileInView: {
245
- height: Math.abs(c(n.size) - c(0)),
246
- y: n.size > 0 ? c(n.size) : c(0),
245
+ height: Math.abs(u(l.size) - u(0)),
246
+ y: l.size > 0 ? u(l.size) : u(0),
247
247
  transition: {
248
248
  duration: r.duration
249
249
  }
250
250
  }
251
- }, initial: "initial", animate: $ ? "whileInView" : "initial" }) : null,
252
- n.target && f === "line" ? /* @__PURE__ */ s.jsx(Vt.rect, { x: 0, width: l.bandwidth(), exit: {
253
- y: c(0),
251
+ }, initial: "initial", animate: N ? "whileInView" : "initial" }) : null,
252
+ l.target && d === "line" ? /* @__PURE__ */ s.jsx(zt.rect, { x: 0, width: n.bandwidth(), exit: {
253
+ y: u(0),
254
254
  opacity: 0,
255
- fill: W,
255
+ fill: P,
256
256
  transition: {
257
257
  duration: r.duration
258
258
  }
259
259
  }, variants: {
260
260
  initial: {
261
- y: c(0),
261
+ y: u(0),
262
262
  opacity: 0,
263
- fill: W
263
+ fill: P
264
264
  },
265
265
  whileInView: {
266
- y: c(n.target) - oe / 2,
266
+ y: u(l.target) - re / 2,
267
267
  opacity: 1,
268
- fill: W,
268
+ fill: P,
269
269
  transition: {
270
270
  duration: r.duration
271
271
  }
272
272
  }
273
- }, initial: "initial", animate: $ ? "whileInView" : "initial", height: oe }) : null,
274
- Ut ? /* @__PURE__ */ s.jsx(ti, { value: `${n.label}`.length < le ? `${n.label}` : `${`${n.label}`.substring(0, le)}...`, y: (n.size || 0) < 0 ? 0 : c(0) + 5, x: 0, width: l.bandwidth(), height: (n.size || 0) < 0 ? c(0) - 5 : b.bottom, style: p?.xAxis?.labels, className: o?.xAxis?.labels, alignment: (n.size || 0) < 0 ? "bottom" : "top", animate: r, isInView: $ }) : null,
275
- ne ? /* @__PURE__ */ s.jsx(Vt.text, { x: l.bandwidth() / 2, style: {
273
+ }, initial: "initial", animate: N ? "whileInView" : "initial", height: re }) : null,
274
+ Gt ? /* @__PURE__ */ s.jsx(Ze, { value: `${l.label}`.length < se ? `${l.label}` : `${`${l.label}`.substring(0, se)}...`, y: (l.size || 0) < 0 ? 0 : u(0) + 5, x: 0, width: n.bandwidth(), height: (l.size || 0) < 0 ? u(0) - 5 : b.bottom, style: p?.xAxis?.labels, className: o?.xAxis?.labels, alignment: (l.size || 0) < 0 ? "bottom" : "top", animate: r, isInView: N }) : null,
275
+ le ? /* @__PURE__ */ s.jsx(zt.text, { x: n.bandwidth() / 2, style: {
276
276
  textAnchor: "middle",
277
277
  ...p?.graphObjectValues || {}
278
- }, className: Be("graph-value text-sm", !it && Gt.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", o?.graphObjectValues), dy: n.size ? n.size >= 0 ? "-5px" : "1em" : "-5px", exit: {
278
+ }, className: Re("graph-value text-sm", !tt && Yt.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", o?.graphObjectValues), dy: l.size ? l.size >= 0 ? "-5px" : "1em" : "-5px", exit: {
279
279
  opacity: 0,
280
280
  transition: {
281
281
  duration: r.duration
282
282
  }
283
283
  }, variants: {
284
284
  initial: {
285
- y: c(0),
285
+ y: u(0),
286
286
  opacity: 0,
287
- fill: it || Gt
287
+ fill: tt || Yt
288
288
  },
289
289
  whileInView: {
290
- y: c(n.size || 0),
290
+ y: u(l.size || 0),
291
291
  opacity: 1,
292
- fill: it || Gt,
292
+ fill: tt || Yt,
293
293
  transition: {
294
294
  duration: r.duration
295
295
  }
296
296
  }
297
- }, initial: "initial", animate: $ ? "whileInView" : "initial", children: Te(n.size, I, ft, N, jt, yt) }) : null
298
- ] }, n.label)), E = Ct ? /* @__PURE__ */ s.jsx(s.Fragment, { children: Ct.map((n, Mt) => /* @__PURE__ */ s.jsx(ii, { text: n.text, color: n.color, y: c(n.value), x1: 0 - X, x2: d + b.right, classNames: n.classNames, styles: n.styles, animate: r, isInView: $ }, Mt)) }) : null, t[33] = r, t[34] = P, t[35] = Gt, t[36] = At, t[37] = Ht, t[38] = o?.graphObjectValues, t[39] = o?.xAxis?.axis, t[40] = o?.xAxis?.labels, t[41] = o?.yAxis?.gridLines, t[42] = o?.yAxis?.labels, t[43] = o?.yAxis?.title, t[44] = nt, t[45] = ht, t[46] = mt, t[47] = m, t[48] = dt, t[49] = d, t[50] = ae, t[51] = re, t[52] = et, t[53] = $, t[54] = X, t[55] = yt, t[56] = b.bottom, t[57] = b.left, t[58] = b.right, t[59] = b.top, t[60] = Kt, t[61] = g, t[62] = Ot, t[63] = st, t[64] = I, t[65] = Lt, t[66] = ut, t[67] = pt, t[68] = ft, t[69] = N, t[70] = at, t[71] = Ct, t[72] = Qt, t[73] = Ut, t[74] = kt, t[75] = ne, t[76] = p?.graphObjectValues, t[77] = p?.xAxis?.axis, t[78] = p?.xAxis?.labels, t[79] = p?.yAxis?.gridLines, t[80] = p?.yAxis?.labels, t[81] = p?.yAxis?.title, t[82] = jt, t[83] = W, t[84] = oe, t[85] = f, t[86] = le, t[87] = it, t[88] = zt, t[89] = St, t[90] = M, t[91] = ct, t[92] = T, t[93] = Y, t[94] = E, t[95] = F, t[96] = G, t[97] = H, t[98] = V, t[99] = O, t[100] = w, t[101] = A, t[102] = U, t[103] = J, t[104] = K;
297
+ }, initial: "initial", animate: N ? "whileInView" : "initial", children: $e(l.size, L, ut, O, kt, wt) }) : null
298
+ ] }, l.label)), E = Ot ? /* @__PURE__ */ s.jsx(s.Fragment, { children: Ot.map((l, gt) => /* @__PURE__ */ s.jsx(ti, { text: l.text, color: l.color, y: u(l.value), x1: 0 - W, x2: h + b.right, classNames: l.classNames, styles: l.styles, animate: r, isInView: N }, gt)) }) : null, t[33] = r, t[34] = B, t[35] = Yt, t[36] = xt, t[37] = Et, t[38] = o?.graphObjectValues, t[39] = o?.xAxis?.axis, t[40] = o?.xAxis?.labels, t[41] = o?.yAxis?.gridLines, t[42] = o?.yAxis?.labels, t[43] = o?.yAxis?.title, t[44] = it, t[45] = dt, t[46] = ct, t[47] = f, t[48] = mt, t[49] = h, t[50] = ne, t[51] = ce, t[52] = _, t[53] = N, t[54] = W, t[55] = wt, t[56] = b.bottom, t[57] = b.left, t[58] = b.right, t[59] = b.top, t[60] = Ut, t[61] = g, t[62] = Lt, t[63] = nt, t[64] = L, t[65] = Nt, t[66] = rt, t[67] = bt, t[68] = ut, t[69] = O, t[70] = et, t[71] = Ot, t[72] = Jt, t[73] = Gt, t[74] = Ct, t[75] = le, t[76] = p?.graphObjectValues, t[77] = p?.xAxis?.axis, t[78] = p?.xAxis?.labels, t[79] = p?.yAxis?.gridLines, t[80] = p?.yAxis?.labels, t[81] = p?.yAxis?.title, t[82] = kt, t[83] = P, t[84] = re, t[85] = d, t[86] = se, t[87] = tt, t[88] = jt, t[89] = Rt, t[90] = V, t[91] = st, t[92] = Y, t[93] = I, t[94] = E, t[95] = G, t[96] = $, t[97] = D, t[98] = v, t[99] = w, t[100] = C, t[101] = H, t[102] = U, t[103] = J, t[104] = T;
299
299
  } else
300
- ct = t[91], T = t[92], Y = t[93], E = t[94], F = t[95], G = t[96], H = t[97], V = t[98], O = t[99], w = t[100], A = t[101], U = t[102], J = t[103], K = t[104];
301
- let Q;
302
- t[127] !== ct || t[128] !== Y || t[129] !== E ? (Q = /* @__PURE__ */ s.jsxs(ct, { children: [
303
- Y,
300
+ st = t[91], Y = t[92], I = t[93], E = t[94], G = t[95], $ = t[96], D = t[97], v = t[98], w = t[99], C = t[100], H = t[101], U = t[102], J = t[103], T = t[104];
301
+ let c;
302
+ t[127] !== st || t[128] !== I || t[129] !== E ? (c = /* @__PURE__ */ s.jsxs(st, { children: [
303
+ I,
304
304
  E
305
- ] }), t[127] = ct, t[128] = Y, t[129] = E, t[130] = Q) : Q = t[130];
305
+ ] }), t[127] = st, t[128] = I, t[129] = E, t[130] = c) : c = t[130];
306
+ let K;
307
+ t[131] !== it ? (K = it.filter(hi).map(di), t[131] = it, t[132] = K) : K = t[132];
308
+ let Q;
309
+ t[133] !== G || t[134] !== $ || t[135] !== D || t[136] !== v || t[137] !== w || t[138] !== c || t[139] !== K ? (Q = /* @__PURE__ */ s.jsxs("g", { transform: G, children: [
310
+ $,
311
+ D,
312
+ v,
313
+ w,
314
+ c,
315
+ K
316
+ ] }), t[133] = G, t[134] = $, t[135] = D, t[136] = v, t[137] = w, t[138] = c, t[139] = K, t[140] = Q) : Q = t[140];
317
+ let F;
318
+ t[141] !== Y || t[142] !== C || t[143] !== H || t[144] !== U || t[145] !== J || t[146] !== T || t[147] !== Q ? (F = /* @__PURE__ */ s.jsx(Y, { width: C, height: H, viewBox: U, direction: J, ref: T, children: Q }), t[141] = Y, t[142] = C, t[143] = H, t[144] = U, t[145] = J, t[146] = T, t[147] = Q, t[148] = F) : F = t[148];
319
+ let pt;
320
+ t[149] !== o?.tooltip || t[150] !== Kt || t[151] !== Qt || t[152] !== at || t[153] !== p?.tooltip || t[154] !== yt ? (pt = at && yt && Kt && Qt ? /* @__PURE__ */ s.jsx(Be, { data: at, body: yt, xPos: Kt, yPos: Qt, backgroundStyle: p?.tooltip, className: o?.tooltip }) : null, t[149] = o?.tooltip, t[150] = Kt, t[151] = Qt, t[152] = at, t[153] = p?.tooltip, t[154] = yt, t[155] = pt) : pt = t[155];
306
321
  let S;
307
- t[131] !== nt ? (S = nt.filter(pi).map(xi), t[131] = nt, t[132] = S) : S = t[132];
308
- let u;
309
- t[133] !== F || t[134] !== G || t[135] !== H || t[136] !== V || t[137] !== O || t[138] !== Q || t[139] !== S ? (u = /* @__PURE__ */ s.jsxs("g", { transform: F, children: [
310
- G,
311
- H,
312
- V,
313
- O,
314
- Q,
322
+ t[156] !== o?.modal || t[157] !== ct || t[158] !== nt ? (S = ct && nt !== void 0 ? /* @__PURE__ */ s.jsx(Xe, { body: ct, data: nt, setData: ue, className: o?.modal }) : null, t[156] = o?.modal, t[157] = ct, t[158] = nt, t[159] = S) : S = t[159];
323
+ let Wt;
324
+ return t[160] !== F || t[161] !== pt || t[162] !== S ? (Wt = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
325
+ F,
326
+ pt,
315
327
  S
316
- ] }), t[133] = F, t[134] = G, t[135] = H, t[136] = V, t[137] = O, t[138] = Q, t[139] = S, t[140] = u) : u = t[140];
317
- let Z;
318
- t[141] !== T || t[142] !== w || t[143] !== A || t[144] !== U || t[145] !== J || t[146] !== K || t[147] !== u ? (Z = /* @__PURE__ */ s.jsx(T, { width: w, height: A, viewBox: U, direction: J, ref: K, children: u }), t[141] = T, t[142] = w, t[143] = A, t[144] = U, t[145] = J, t[146] = K, t[147] = u, t[148] = Z) : Z = t[148];
319
- let _;
320
- t[149] !== o?.tooltip || t[150] !== Zt || t[151] !== _t || t[152] !== lt || t[153] !== p?.tooltip || t[154] !== xt ? (_ = lt && xt && Zt && _t ? /* @__PURE__ */ s.jsx(We, { data: lt, body: xt, xPos: Zt, yPos: _t, backgroundStyle: p?.tooltip, className: o?.tooltip }) : null, t[149] = o?.tooltip, t[150] = Zt, t[151] = _t, t[152] = lt, t[153] = p?.tooltip, t[154] = xt, t[155] = _) : _ = t[155];
321
- let R;
322
- t[156] !== o?.modal || t[157] !== mt || t[158] !== st ? (R = mt && st !== void 0 ? /* @__PURE__ */ s.jsx(Ee, { body: mt, data: st, setData: ce, className: o?.modal }) : null, t[156] = o?.modal, t[157] = mt, t[158] = st, t[159] = R) : R = t[159];
323
- let Pt;
324
- return t[160] !== Z || t[161] !== _ || t[162] !== R ? (Pt = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
325
- Z,
326
- _,
327
- R
328
- ] }), t[160] = Z, t[161] = _, t[162] = R, t[163] = Pt) : Pt = t[163], Pt;
328
+ ] }), t[160] = F, t[161] = pt, t[162] = S, t[163] = Wt) : Wt = t[163], Wt;
329
329
  }
330
- function xi(e) {
330
+ function di(e) {
331
331
  return e.layer;
332
332
  }
333
- function pi(e) {
333
+ function hi(e) {
334
334
  return e.position === "after";
335
335
  }
336
- function gi(e) {
336
+ function xi(e) {
337
337
  return e.layer;
338
338
  }
339
- function yi(e) {
339
+ function pi(e) {
340
340
  return e.position === "before";
341
341
  }
342
- function bi(e) {
342
+ function gi(e) {
343
343
  return e !== 0;
344
344
  }
345
- function vi(e) {
345
+ function yi(e) {
346
346
  return e !== 0;
347
347
  }
348
- function wi(e) {
348
+ function bi(e) {
349
349
  return `${e.id}`;
350
350
  }
351
- function Ai(e) {
351
+ function vi(e) {
352
352
  return {
353
353
  id: e,
354
354
  label: e,
@@ -357,6 +357,12 @@ function Ai(e) {
357
357
  qualitativeRange: null
358
358
  };
359
359
  }
360
+ function wi(e) {
361
+ return e.target;
362
+ }
363
+ function Ai(e) {
364
+ return !y(e.target);
365
+ }
360
366
  function Mi(e) {
361
367
  return e.target;
362
368
  }
@@ -364,10 +370,10 @@ function Vi(e) {
364
370
  return !y(e.target);
365
371
  }
366
372
  function zi(e) {
367
- return e.target;
373
+ return e.size;
368
374
  }
369
375
  function ji(e) {
370
- return !y(e.target);
376
+ return !y(e.size);
371
377
  }
372
378
  function ki(e) {
373
379
  return e.size;
@@ -376,28 +382,28 @@ function Ci(e) {
376
382
  return !y(e.size);
377
383
  }
378
384
  function Oi(e) {
379
- return e.size;
385
+ return Oe((e.qualitativeRange || []).filter(Li)) || 0;
380
386
  }
381
387
  function Li(e) {
382
- return !y(e.size);
388
+ return !y(e);
383
389
  }
384
390
  function Ni(e) {
385
- return Le((e.qualitativeRange || []).filter(Ii)) || 0;
391
+ return e.target;
386
392
  }
387
393
  function Ii(e) {
388
- return !y(e);
394
+ return !y(e.size);
389
395
  }
390
396
  function $i(e) {
391
397
  return e.target;
392
398
  }
393
399
  function Di(e) {
394
- return !y(e.size);
400
+ return !y(e.target);
395
401
  }
396
402
  function Ti(e) {
397
- return e.target;
403
+ return e.size;
398
404
  }
399
405
  function Fi(e) {
400
- return !y(e.target);
406
+ return !y(e.size);
401
407
  }
402
408
  function Si(e) {
403
409
  return e.size;
@@ -406,323 +412,317 @@ function Ri(e) {
406
412
  return !y(e.size);
407
413
  }
408
414
  function qi(e) {
409
- return e.size;
410
- }
411
- function Bi(e) {
412
- return !y(e.size);
413
- }
414
- function Pi(e) {
415
- const t = Fe.c(154), {
415
+ const t = De.c(154), {
416
416
  data: i,
417
- topMargin: zt,
418
- bottomMargin: ae,
419
- leftMargin: Gt,
420
- rightMargin: jt,
421
- barColor: N,
422
- suffix: Ht,
423
- prefix: Ut,
424
- barPadding: ne,
425
- showValues: kt,
426
- showTicks: le,
427
- truncateBy: he,
428
- width: Jt,
429
- height: se,
417
+ topMargin: jt,
418
+ bottomMargin: ne,
419
+ leftMargin: Yt,
420
+ rightMargin: kt,
421
+ barColor: O,
422
+ suffix: Et,
423
+ prefix: Gt,
424
+ barPadding: le,
425
+ showValues: Ct,
426
+ showTicks: se,
427
+ truncateBy: xe,
428
+ width: Ht,
429
+ height: oe,
430
430
  showLabels: be,
431
- tooltip: xt,
432
- onSeriesMouseOver: pt,
433
- refValues: Ct,
434
- highlightedDataPoints: v,
435
- maxValue: gt,
436
- minValue: et,
437
- onSeriesMouseClick: ut,
438
- labelOrder: j,
439
- rtl: Kt,
440
- maxBarThickness: Ot,
441
- minBarThickness: Qt,
442
- resetSelectionOnDoubleClick: mt,
443
- detailsOnClick: P,
444
- barAxisTitle: it,
445
- valueColor: Lt,
431
+ tooltip: yt,
432
+ onSeriesMouseOver: bt,
433
+ refValues: Ot,
434
+ highlightedDataPoints: A,
435
+ maxValue: vt,
436
+ minValue: _,
437
+ onSeriesMouseClick: rt,
438
+ labelOrder: z,
439
+ rtl: Ut,
440
+ maxBarThickness: Lt,
441
+ minBarThickness: Jt,
442
+ resetSelectionOnDoubleClick: ct,
443
+ detailsOnClick: B,
444
+ barAxisTitle: tt,
445
+ valueColor: Nt,
446
446
  noOfTicks: p,
447
447
  styles: o,
448
- classNames: f,
449
- targetStyle: W,
450
- targetColor: at,
448
+ classNames: d,
449
+ targetStyle: P,
450
+ targetColor: et,
451
451
  qualitativeRangeColors: g,
452
452
  measureBarWidthFactor: r,
453
- animate: m,
454
- dimmedOpacity: ft,
455
- precision: nt,
456
- customLayers: I,
457
- naLabel: oe,
458
- targetLineThickness: re,
459
- hideAxisLine: yt,
460
- locale: X
461
- } = e, bt = zt === void 0 ? 25 : zt, xe = ae === void 0 ? 10 : ae, pe = Gt === void 0 ? 100 : Gt, ve = jt === void 0 ? 40 : jt, ge = $e(null);
462
- let $;
463
- t[0] !== m.amount || t[1] !== m.once ? ($ = {
464
- once: m.once,
465
- amount: m.amount
466
- }, t[0] = m.amount, t[1] = m.once, t[2] = $) : $ = t[2];
467
- const C = Ue(ge, $), [Nt, b] = ie(void 0), [lt, vt] = ie(void 0), [st, ce] = ie(void 0), [Zt, ue] = ie(void 0), _t = it ? bt + 25 : bt;
468
- let me;
469
- t[3] !== xe || t[4] !== pe || t[5] !== ve || t[6] !== _t ? (me = {
470
- top: _t,
471
- bottom: xe,
472
- left: pe,
453
+ animate: f,
454
+ dimmedOpacity: ut,
455
+ precision: it,
456
+ customLayers: L,
457
+ naLabel: re,
458
+ targetLineThickness: ce,
459
+ hideAxisLine: wt,
460
+ locale: W
461
+ } = e, At = jt === void 0 ? 25 : jt, pe = ne === void 0 ? 10 : ne, ge = Yt === void 0 ? 100 : Yt, ve = kt === void 0 ? 40 : kt, ye = Ie(null);
462
+ let N;
463
+ t[0] !== f.amount || t[1] !== f.once ? (N = {
464
+ once: f.once,
465
+ amount: f.amount
466
+ }, t[0] = f.amount, t[1] = f.once, t[2] = N) : N = t[2];
467
+ const k = Ge(ye, N), [It, b] = ae(void 0), [at, Mt] = ae(void 0), [nt, ue] = ae(void 0), [Kt, me] = ae(void 0), Qt = tt ? At + 25 : At;
468
+ let fe;
469
+ t[3] !== pe || t[4] !== ge || t[5] !== ve || t[6] !== Qt ? (fe = {
470
+ top: Qt,
471
+ bottom: pe,
472
+ left: ge,
473
473
  right: ve
474
- }, t[3] = xe, t[4] = pe, t[5] = ve, t[6] = _t, t[7] = me) : me = t[7];
475
- const d = me, dt = Jt - d.left - d.right, ot = se - d.top - d.bottom;
476
- let te;
477
- t[8] !== i ? (te = Math.max(...i.filter(da).map(fa)) < 0 ? 0 : Math.max(...i.filter(ma).map(ua)), t[8] = i, t[9] = te) : te = t[9];
478
- const It = te;
479
- let $t;
480
- t[10] !== i ? ($t = Math.max(...i.filter(ca).map(ra)) < 0 ? 0 : Math.max(...i.filter(oa).map(sa)), t[10] = i, t[11] = $t) : $t = t[11];
481
- const Dt = $t;
482
- let Tt;
483
- t[12] !== i ? (Tt = Math.max(...i.map(na)), t[12] = i, t[13] = Tt) : Tt = t[13];
484
- const Ft = Tt;
485
- let St;
486
- t[14] !== It || t[15] !== gt || t[16] !== Ft || t[17] !== Dt ? (St = y(gt) ? Math.max(...[It, Dt, Ft].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[It, Dt, Ft].filter(Number.isFinite)) : gt, t[14] = It, t[15] = gt, t[16] = Ft, t[17] = Dt, t[18] = St) : St = t[18];
487
- const ee = St;
474
+ }, t[3] = pe, t[4] = ge, t[5] = ve, t[6] = Qt, t[7] = fe) : fe = t[7];
475
+ const h = fe, mt = Ht - h.left - h.right, lt = oe - h.top - h.bottom;
476
+ let Zt;
477
+ t[8] !== i ? (Zt = Math.max(...i.filter(ma).map(ua)) < 0 ? 0 : Math.max(...i.filter(ca).map(ra)), t[8] = i, t[9] = Zt) : Zt = t[9];
478
+ const $t = Zt;
479
+ let Dt;
480
+ t[10] !== i ? (Dt = Math.max(...i.filter(oa).map(sa)) < 0 ? 0 : Math.max(...i.filter(la).map(na)), t[10] = i, t[11] = Dt) : Dt = t[11];
481
+ const Tt = Dt;
482
+ let Ft;
483
+ t[12] !== i ? (Ft = Math.max(...i.map(ia)), t[12] = i, t[13] = Ft) : Ft = t[13];
484
+ const St = Ft;
488
485
  let Rt;
489
- t[19] !== i ? (Rt = Math.min(...i.filter(aa).map(ia)) >= 0 ? 0 : Math.min(...i.filter(ea).map(ta)), t[19] = i, t[20] = Rt) : Rt = t[20];
490
- const qt = Rt;
491
- let Bt;
492
- t[21] !== i ? (Bt = Math.min(...i.filter(_i).map(Zi)) >= 0 ? 0 : Math.min(...i.filter(Qi).map(Ki)), t[21] = i, t[22] = Bt) : Bt = t[22];
493
- const wt = Bt;
494
- let M;
495
- t[23] !== qt || t[24] !== et || t[25] !== wt ? (M = y(et) ? Math.min(...[qt, wt].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[qt, wt].filter(Number.isFinite)) : et, t[23] = qt, t[24] = et, t[25] = wt, t[26] = M) : M = t[26];
496
- const D = M;
497
- let ht;
498
- if (t[27] !== i || t[28] !== j) {
499
- const l = /* @__PURE__ */ new Set(), k = i.map((q, z) => {
500
- const Wt = j ? `${q.label}` : `${z}`;
501
- return l.add(Wt), {
502
- ...q,
503
- id: Wt
486
+ t[14] !== $t || t[15] !== vt || t[16] !== St || t[17] !== Tt ? (Rt = y(vt) ? Math.max(...[$t, Tt, St].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[$t, Tt, St].filter(Number.isFinite)) : vt, t[14] = $t, t[15] = vt, t[16] = St, t[17] = Tt, t[18] = Rt) : Rt = t[18];
487
+ const _t = Rt;
488
+ let qt;
489
+ t[19] !== i ? (qt = Math.min(...i.filter(ea).map(ta)) >= 0 ? 0 : Math.min(...i.filter(_i).map(Zi)), t[19] = i, t[20] = qt) : qt = t[20];
490
+ const Bt = qt;
491
+ let Pt;
492
+ t[21] !== i ? (Pt = Math.min(...i.filter(Qi).map(Ki)) >= 0 ? 0 : Math.min(...i.filter(Ji).map(Ui)), t[21] = i, t[22] = Pt) : Pt = t[22];
493
+ const ft = Pt;
494
+ let V;
495
+ t[23] !== Bt || t[24] !== _ || t[25] !== ft ? (V = y(_) ? Math.min(...[Bt, ft].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[Bt, ft].filter(Number.isFinite)) : _, t[23] = Bt, t[24] = _, t[25] = ft, t[26] = V) : V = t[26];
496
+ const X = V;
497
+ let dt;
498
+ if (t[27] !== i || t[28] !== z) {
499
+ const n = /* @__PURE__ */ new Set(), j = i.map((ot, R) => {
500
+ const m = z ? `${ot.label}` : `${R}`;
501
+ return n.add(m), {
502
+ ...ot,
503
+ id: m
504
504
  };
505
- }), tt = j ? j.filter((q) => !l.has(q)) : [];
506
- ht = [...k, ...tt.map(Ji)], t[27] = i, t[28] = j, t[29] = ht;
505
+ }), M = z ? z.filter((ot) => !n.has(ot)) : [];
506
+ dt = [...j, ...M.map(Hi)], t[27] = i, t[28] = z, t[29] = dt;
507
507
  } else
508
- ht = t[29];
509
- const rt = ht;
510
- let At;
511
- t[30] !== rt || t[31] !== j ? (At = j ?? rt.map(Ui), t[30] = rt, t[31] = j, t[32] = At) : At = t[32];
512
- const ct = At;
513
- let T, Y, E, F, G, H, V, O, w, A, U, J, K, Q;
514
- if (t[33] !== m || t[34] !== it || t[35] !== N || t[36] !== ct || t[37] !== ne || t[38] !== f?.graphObjectValues || t[39] !== f?.xAxis?.gridLines || t[40] !== f?.xAxis?.labels || t[41] !== f?.xAxis?.title || t[42] !== f?.yAxis?.axis || t[43] !== f?.yAxis?.labels || t[44] !== I || t[45] !== rt || t[46] !== P || t[47] !== ft || t[48] !== ot || t[49] !== dt || t[50] !== se || t[51] !== yt || t[52] !== v || t[53] !== C || t[54] !== X || t[55] !== d.bottom || t[56] !== d.left || t[57] !== d.top || t[58] !== Ot || t[59] !== r || t[60] !== Qt || t[61] !== lt || t[62] !== oe || t[63] !== p || t[64] !== ut || t[65] !== pt || t[66] !== nt || t[67] !== Ut || t[68] !== g || t[69] !== Ct || t[70] !== mt || t[71] !== Kt || t[72] !== be || t[73] !== le || t[74] !== kt || t[75] !== o?.graphObjectValues || t[76] !== o?.xAxis?.gridLines || t[77] !== o?.xAxis?.labels || t[78] !== o?.xAxis?.title || t[79] !== o?.yAxis?.axis || t[80] !== o?.yAxis?.labels || t[81] !== Ht || t[82] !== at || t[83] !== re || t[84] !== W || t[85] !== bt || t[86] !== he || t[87] !== Lt || t[88] !== Jt || t[89] !== ee || t[90] !== D) {
515
- const l = Ge().domain([D, ee]).range([0, dt]).nice(), k = He().domain(ct).range([0, Qt ? Math.max(ot, Qt * ct.length) : Ot ? Math.min(ot, Ot * ct.length) : ot]).paddingInner(ne), tt = l.ticks(p);
516
- Y = Vt.svg, A = `${Jt}px`, U = `${se}px`, J = `0 0 ${Jt} ${se}`, K = "ltr", Q = ge, G = `translate(${d.left},${d.top})`, H = le ? /* @__PURE__ */ s.jsx(ni, { values: tt.filter(Hi), x: tt.filter(Gi).map((a) => l(a)), y1: 0 - bt, y2: ot + d.bottom, styles: {
508
+ dt = t[29];
509
+ const ht = dt;
510
+ let xt;
511
+ t[30] !== ht || t[31] !== z ? (xt = z ?? ht.map(Gi), t[30] = ht, t[31] = z, t[32] = xt) : xt = t[32];
512
+ const st = xt;
513
+ let Y, I, E, G, $, D, v, w, C, H, U, J, T, c;
514
+ if (t[33] !== f || t[34] !== tt || t[35] !== O || t[36] !== st || t[37] !== le || t[38] !== d?.graphObjectValues || t[39] !== d?.xAxis?.gridLines || t[40] !== d?.xAxis?.labels || t[41] !== d?.xAxis?.title || t[42] !== d?.yAxis?.axis || t[43] !== d?.yAxis?.labels || t[44] !== L || t[45] !== ht || t[46] !== B || t[47] !== ut || t[48] !== lt || t[49] !== mt || t[50] !== oe || t[51] !== wt || t[52] !== A || t[53] !== k || t[54] !== W || t[55] !== h.bottom || t[56] !== h.left || t[57] !== h.top || t[58] !== Lt || t[59] !== r || t[60] !== Jt || t[61] !== at || t[62] !== re || t[63] !== p || t[64] !== rt || t[65] !== bt || t[66] !== it || t[67] !== Gt || t[68] !== g || t[69] !== Ot || t[70] !== ct || t[71] !== Ut || t[72] !== be || t[73] !== se || t[74] !== Ct || t[75] !== o?.graphObjectValues || t[76] !== o?.xAxis?.gridLines || t[77] !== o?.xAxis?.labels || t[78] !== o?.xAxis?.title || t[79] !== o?.yAxis?.axis || t[80] !== o?.yAxis?.labels || t[81] !== Et || t[82] !== et || t[83] !== ce || t[84] !== P || t[85] !== At || t[86] !== xe || t[87] !== Nt || t[88] !== Ht || t[89] !== _t || t[90] !== X) {
515
+ const n = Ye().domain([X, _t]).range([0, mt]).nice(), j = Ee().domain(st).range([0, Jt ? Math.max(lt, Jt * st.length) : Lt ? Math.min(lt, Lt * st.length) : lt]).paddingInner(le), M = n.ticks(p);
516
+ I = zt.svg, H = `${Ht}px`, U = `${oe}px`, J = `0 0 ${Ht} ${oe}`, T = "ltr", c = ye, $ = `translate(${h.left},${h.top})`, D = se ? /* @__PURE__ */ s.jsx(ii, { values: M.filter(Ei), x: M.filter(Yi).map((a) => n(a)), y1: 0 - At, y2: lt + h.bottom, styles: {
517
517
  gridLines: o?.xAxis?.gridLines,
518
518
  labels: o?.xAxis?.labels
519
519
  }, classNames: {
520
- gridLines: f?.xAxis?.gridLines,
521
- labels: f?.xAxis?.labels
522
- }, suffix: Ht, prefix: Ut, labelType: "secondary", showGridLines: !0, precision: nt, locale: X }) : null;
523
- const q = dt / 2, z = 0 - d.top + 15, Wt = o?.xAxis?.title, Xt = f?.xAxis?.title;
524
- t[105] !== it || t[106] !== q || t[107] !== z || t[108] !== Wt || t[109] !== Xt ? (V = /* @__PURE__ */ s.jsx(Ye, { x: q, y: z, style: Wt, className: Xt, text: it }), t[105] = it, t[106] = q, t[107] = z, t[108] = Wt, t[109] = Xt, t[110] = V) : V = t[110];
525
- const h = f?.yAxis?.axis;
526
- let L;
527
- t[111] !== h ? (L = {
528
- axis: h
529
- }, t[111] = h, t[112] = L) : L = t[112];
530
- const fe = o?.yAxis?.axis;
531
- let Yt;
532
- t[113] !== fe ? (Yt = {
533
- axis: fe
534
- }, t[113] = fe, t[114] = Yt) : Yt = t[114], O = /* @__PURE__ */ s.jsx(Xe, { hideAxisLine: yt, x1: l(D < 0 ? 0 : D), x2: l(D < 0 ? 0 : D), y1: -2.5, y2: ot + d.bottom, classNames: L, styles: Yt }), t[115] !== I ? (w = I.filter(Ei).map(Yi), t[115] = I, t[116] = w) : w = t[116], T = Je, E = rt.map((a) => y(k(a.id)) ? null : /* @__PURE__ */ s.jsxs(Vt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (B) => {
535
- b(a), ue(B.clientY), ce(B.clientX), pt?.(a);
520
+ gridLines: d?.xAxis?.gridLines,
521
+ labels: d?.xAxis?.labels
522
+ }, suffix: Et, prefix: Gt, labelType: "secondary", showGridLines: !0, precision: it, locale: W }) : null;
523
+ const ot = mt / 2, R = 0 - h.top + 15, m = o?.xAxis?.title, q = d?.xAxis?.title;
524
+ t[105] !== tt || t[106] !== ot || t[107] !== R || t[108] !== m || t[109] !== q ? (v = /* @__PURE__ */ s.jsx(We, { x: ot, y: R, style: m, className: q, text: tt }), t[105] = tt, t[106] = ot, t[107] = R, t[108] = m, t[109] = q, t[110] = v) : v = t[110];
525
+ const de = d?.yAxis?.axis;
526
+ let Vt;
527
+ t[111] !== de ? (Vt = {
528
+ axis: de
529
+ }, t[111] = de, t[112] = Vt) : Vt = t[112];
530
+ const te = o?.yAxis?.axis;
531
+ let Xt;
532
+ t[113] !== te ? (Xt = {
533
+ axis: te
534
+ }, t[113] = te, t[114] = Xt) : Xt = t[114], w = /* @__PURE__ */ s.jsx(Pe, { hideAxisLine: wt, x1: n(X < 0 ? 0 : X), x2: n(X < 0 ? 0 : X), y1: -2.5, y2: lt + h.bottom, classNames: Vt, styles: Xt }), t[115] !== L ? (C = L.filter(Xi).map(Wi), t[115] = L, t[116] = C) : C = t[116], Y = He, E = ht.map((a) => y(j(a.id)) ? null : /* @__PURE__ */ s.jsxs(zt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (Z) => {
535
+ b(a), me(Z.clientY), ue(Z.clientX), bt?.(a);
536
536
  }, onClick: () => {
537
- (ut || P) && (Pe(lt, a) && mt ? (vt(void 0), ut?.(void 0)) : (vt(a), ut?.(a)));
538
- }, onMouseMove: (B) => {
539
- b(a), ue(B.clientY), ce(B.clientX);
537
+ (rt || B) && (qe(at, a) && ct ? (Mt(void 0), rt?.(void 0)) : (Mt(a), rt?.(a)));
538
+ }, onMouseMove: (Z) => {
539
+ b(a), me(Z.clientY), ue(Z.clientX);
540
540
  }, onMouseLeave: () => {
541
- b(void 0), ce(void 0), ue(void 0), pt?.(void 0);
541
+ b(void 0), ue(void 0), me(void 0), bt?.(void 0);
542
542
  }, exit: {
543
543
  opacity: 0,
544
544
  transition: {
545
- duration: m.duration
545
+ duration: f.duration
546
546
  }
547
547
  }, variants: {
548
548
  initial: {
549
549
  x: 0,
550
- y: k(`${a.id}`),
551
- opacity: v.length !== 0 ? v.indexOf(a.label) !== -1 ? 0.85 : ft : 0.85
550
+ y: j(`${a.id}`),
551
+ opacity: A ? A.indexOf(a.label) !== -1 ? 0.85 : ut : 0.85
552
552
  },
553
553
  whileInView: {
554
554
  x: 0,
555
- y: k(`${a.id}`),
556
- opacity: v.length !== 0 ? v.indexOf(a.label) !== -1 ? 0.85 : ft : 0.85,
555
+ y: j(`${a.id}`),
556
+ opacity: A ? A.indexOf(a.label) !== -1 ? 0.85 : ut : 0.85,
557
557
  transition: {
558
- duration: m.duration
558
+ duration: f.duration
559
559
  }
560
560
  }
561
- }, initial: "initial", animate: C ? "whileInView" : "initial", children: [
562
- a.qualitativeRange ? a.qualitativeRange.map((B, n) => /* @__PURE__ */ s.jsx(Vt.rect, { exit: {
561
+ }, initial: "initial", animate: k ? "whileInView" : "initial", children: [
562
+ a.qualitativeRange ? a.qualitativeRange.map((Z, l) => /* @__PURE__ */ s.jsx(zt.rect, { exit: {
563
563
  width: 0,
564
- x: l(0),
564
+ x: n(0),
565
565
  transition: {
566
- duration: m.duration
566
+ duration: f.duration
567
567
  }
568
568
  }, variants: {
569
569
  initial: {
570
- x: l(0),
570
+ x: n(0),
571
571
  width: 0,
572
- fill: g[n]
572
+ fill: g[l]
573
573
  },
574
574
  whileInView: {
575
- x: l(n === 0 ? 0 : Le(a.qualitativeRange.filter((Mt, Et) => Et < n && Mt))),
576
- width: l(B),
577
- fill: g[n],
575
+ x: n(l === 0 ? 0 : Oe(a.qualitativeRange.filter((gt, ee) => ee < l && gt))),
576
+ width: n(Z),
577
+ fill: g[l],
578
578
  transition: {
579
- duration: m.duration
579
+ duration: f.duration
580
580
  }
581
581
  }
582
- }, initial: "initial", animate: C ? "whileInView" : "initial", y: 0, height: k.bandwidth() }, n)) : null,
583
- a.target && W === "background" ? /* @__PURE__ */ s.jsx(Vt.rect, { y: 0, x: a.target >= 0 ? l(0) : l(a.target), height: k.bandwidth(), exit: {
582
+ }, initial: "initial", animate: k ? "whileInView" : "initial", y: 0, height: j.bandwidth() }, l)) : null,
583
+ a.target && P === "background" ? /* @__PURE__ */ s.jsx(zt.rect, { y: 0, x: a.target >= 0 ? n(0) : n(a.target), height: j.bandwidth(), exit: {
584
584
  width: 0,
585
- x: l(0),
586
- fill: at,
585
+ x: n(0),
586
+ fill: et,
587
587
  transition: {
588
- duration: m.duration
588
+ duration: f.duration
589
589
  }
590
590
  }, variants: {
591
591
  initial: {
592
- x: l(0),
593
- fill: at,
592
+ x: n(0),
593
+ fill: et,
594
594
  width: 0
595
595
  },
596
596
  whileInView: {
597
- x: a.target >= 0 ? l(0) : l(a.target),
598
- fill: at,
599
- width: a.target >= 0 ? l(a.target) - l(0) : l(0) - l(a.target),
597
+ x: a.target >= 0 ? n(0) : n(a.target),
598
+ fill: et,
599
+ width: a.target >= 0 ? n(a.target) - n(0) : n(0) - n(a.target),
600
600
  transition: {
601
- duration: m.duration
601
+ duration: f.duration
602
602
  }
603
603
  }
604
- }, initial: "initial", animate: C ? "whileInView" : "initial" }) : null,
605
- a.size ? /* @__PURE__ */ s.jsx(Vt.rect, { y: k.bandwidth() * ((1 - r) / 2), style: {
606
- fill: N
607
- }, height: k.bandwidth() * r, exit: {
604
+ }, initial: "initial", animate: k ? "whileInView" : "initial" }) : null,
605
+ a.size ? /* @__PURE__ */ s.jsx(zt.rect, { y: j.bandwidth() * ((1 - r) / 2), style: {
606
+ fill: O
607
+ }, height: j.bandwidth() * r, exit: {
608
608
  width: 0,
609
- x: l(0),
609
+ x: n(0),
610
610
  transition: {
611
- duration: m.duration
611
+ duration: f.duration
612
612
  }
613
613
  }, variants: {
614
614
  initial: {
615
- x: l(0),
615
+ x: n(0),
616
616
  width: 0
617
617
  },
618
618
  whileInView: {
619
- x: a.size >= 0 ? l(0) : l(a.size),
620
- width: a.size >= 0 ? l(a.size) - l(0) : l(0) - l(a.size),
619
+ x: a.size >= 0 ? n(0) : n(a.size),
620
+ width: a.size >= 0 ? n(a.size) - n(0) : n(0) - n(a.size),
621
621
  transition: {
622
- duration: m.duration
622
+ duration: f.duration
623
623
  }
624
624
  }
625
- }, initial: "initial", animate: C ? "whileInView" : "initial" }) : null,
626
- a.target && W === "line" ? /* @__PURE__ */ s.jsx(Vt.rect, { y: 0, height: k.bandwidth(), width: re, exit: {
625
+ }, initial: "initial", animate: k ? "whileInView" : "initial" }) : null,
626
+ a.target && P === "line" ? /* @__PURE__ */ s.jsx(zt.rect, { y: 0, height: j.bandwidth(), width: ce, exit: {
627
627
  opacity: 0,
628
- x: l(0),
629
- fill: at,
628
+ x: n(0),
629
+ fill: et,
630
630
  transition: {
631
- duration: m.duration
631
+ duration: f.duration
632
632
  }
633
633
  }, variants: {
634
634
  initial: {
635
- x: l(0),
635
+ x: n(0),
636
636
  opacity: 0,
637
- fill: at
637
+ fill: et
638
638
  },
639
639
  whileInView: {
640
- x: l(a.target) - re / 2,
640
+ x: n(a.target) - ce / 2,
641
641
  opacity: 1,
642
- fill: at,
642
+ fill: et,
643
643
  transition: {
644
- duration: m.duration
644
+ duration: f.duration
645
645
  }
646
646
  }
647
- }, initial: "initial", animate: C ? "whileInView" : "initial" }) : null,
648
- be ? /* @__PURE__ */ s.jsx(li, { value: `${a.label}`.length < he ? `${a.label}` : `${`${a.label}`.substring(0, he)}...`, y: 0, x: (a.size || 0) < 0 ? l(0) : 0 - d.left, width: (a.size || 0) < 0 ? Jt - l(0) : l(0) + d.left, height: k.bandwidth(), alignment: a.size && a.size < 0 ? "left" : "right", style: o?.yAxis?.labels, className: f?.yAxis?.labels, animate: m, isInView: C }) : null,
649
- kt ? /* @__PURE__ */ s.jsx(Vt.text, { y: k.bandwidth() / 2, style: {
647
+ }, initial: "initial", animate: k ? "whileInView" : "initial" }) : null,
648
+ be ? /* @__PURE__ */ s.jsx(ai, { value: `${a.label}`.length < xe ? `${a.label}` : `${`${a.label}`.substring(0, xe)}...`, y: 0, x: (a.size || 0) < 0 ? n(0) : 0 - h.left, width: (a.size || 0) < 0 ? Ht - n(0) : n(0) + h.left, height: j.bandwidth(), alignment: a.size && a.size < 0 ? "left" : "right", style: o?.yAxis?.labels, className: d?.yAxis?.labels, animate: f, isInView: k }) : null,
649
+ Ct ? /* @__PURE__ */ s.jsx(zt.text, { y: j.bandwidth() / 2, style: {
650
650
  textAnchor: a.size && a.size < 0 ? "end" : "start",
651
651
  ...o?.graphObjectValues || {}
652
- }, className: Be("graph-value text-sm", !Lt && N.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", f?.graphObjectValues), dx: a.size && a.size < 0 ? -5 : 5, dy: "0.33em", exit: {
652
+ }, className: Re("graph-value text-sm", !Nt && O.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dx: a.size && a.size < 0 ? -5 : 5, dy: "0.33em", exit: {
653
653
  opacity: 0,
654
654
  transition: {
655
- duration: m.duration
655
+ duration: f.duration
656
656
  }
657
657
  }, variants: {
658
658
  initial: {
659
- x: l(0),
659
+ x: n(0),
660
660
  opacity: 0,
661
- fill: Lt || N
661
+ fill: Nt || O
662
662
  },
663
663
  whileInView: {
664
- x: a.size ? l(a.size) : l(0),
664
+ x: a.size ? n(a.size) : n(0),
665
665
  opacity: 1,
666
- fill: Lt || N,
666
+ fill: Nt || O,
667
667
  transition: {
668
- duration: m.duration
668
+ duration: f.duration
669
669
  }
670
670
  }
671
- }, initial: "initial", animate: C ? "whileInView" : "initial", children: Te(a.size, oe, nt, Ut, Ht, X) }) : null
672
- ] }, a.label)), F = Ct ? /* @__PURE__ */ s.jsx(s.Fragment, { children: Ct.map((a, B) => /* @__PURE__ */ s.jsx(ei, { text: a.text, color: a.color, x: l(a.value), y1: 0 - d.top, y2: ot + d.bottom, textSide: l(a.value) > dt * 0.75 || Kt ? "left" : "right", classNames: a.classNames, styles: a.styles, animate: m, isInView: C }, B)) }) : null, t[33] = m, t[34] = it, t[35] = N, t[36] = ct, t[37] = ne, t[38] = f?.graphObjectValues, t[39] = f?.xAxis?.gridLines, t[40] = f?.xAxis?.labels, t[41] = f?.xAxis?.title, t[42] = f?.yAxis?.axis, t[43] = f?.yAxis?.labels, t[44] = I, t[45] = rt, t[46] = P, t[47] = ft, t[48] = ot, t[49] = dt, t[50] = se, t[51] = yt, t[52] = v, t[53] = C, t[54] = X, t[55] = d.bottom, t[56] = d.left, t[57] = d.top, t[58] = Ot, t[59] = r, t[60] = Qt, t[61] = lt, t[62] = oe, t[63] = p, t[64] = ut, t[65] = pt, t[66] = nt, t[67] = Ut, t[68] = g, t[69] = Ct, t[70] = mt, t[71] = Kt, t[72] = be, t[73] = le, t[74] = kt, t[75] = o?.graphObjectValues, t[76] = o?.xAxis?.gridLines, t[77] = o?.xAxis?.labels, t[78] = o?.xAxis?.title, t[79] = o?.yAxis?.axis, t[80] = o?.yAxis?.labels, t[81] = Ht, t[82] = at, t[83] = re, t[84] = W, t[85] = bt, t[86] = he, t[87] = Lt, t[88] = Jt, t[89] = ee, t[90] = D, t[91] = T, t[92] = Y, t[93] = E, t[94] = F, t[95] = G, t[96] = H, t[97] = V, t[98] = O, t[99] = w, t[100] = A, t[101] = U, t[102] = J, t[103] = K, t[104] = Q;
671
+ }, initial: "initial", animate: k ? "whileInView" : "initial", children: $e(a.size, re, it, Gt, Et, W) }) : null
672
+ ] }, a.label)), G = Ot ? /* @__PURE__ */ s.jsx(s.Fragment, { children: Ot.map((a, Z) => /* @__PURE__ */ s.jsx(_e, { text: a.text, color: a.color, x: n(a.value), y1: 0 - h.top, y2: lt + h.bottom, textSide: n(a.value) > mt * 0.75 || Ut ? "left" : "right", classNames: a.classNames, styles: a.styles, animate: f, isInView: k }, Z)) }) : null, t[33] = f, t[34] = tt, t[35] = O, t[36] = st, t[37] = le, t[38] = d?.graphObjectValues, t[39] = d?.xAxis?.gridLines, t[40] = d?.xAxis?.labels, t[41] = d?.xAxis?.title, t[42] = d?.yAxis?.axis, t[43] = d?.yAxis?.labels, t[44] = L, t[45] = ht, t[46] = B, t[47] = ut, t[48] = lt, t[49] = mt, t[50] = oe, t[51] = wt, t[52] = A, t[53] = k, t[54] = W, t[55] = h.bottom, t[56] = h.left, t[57] = h.top, t[58] = Lt, t[59] = r, t[60] = Jt, t[61] = at, t[62] = re, t[63] = p, t[64] = rt, t[65] = bt, t[66] = it, t[67] = Gt, t[68] = g, t[69] = Ot, t[70] = ct, t[71] = Ut, t[72] = be, t[73] = se, t[74] = Ct, t[75] = o?.graphObjectValues, t[76] = o?.xAxis?.gridLines, t[77] = o?.xAxis?.labels, t[78] = o?.xAxis?.title, t[79] = o?.yAxis?.axis, t[80] = o?.yAxis?.labels, t[81] = Et, t[82] = et, t[83] = ce, t[84] = P, t[85] = At, t[86] = xe, t[87] = Nt, t[88] = Ht, t[89] = _t, t[90] = X, t[91] = Y, t[92] = I, t[93] = E, t[94] = G, t[95] = $, t[96] = D, t[97] = v, t[98] = w, t[99] = C, t[100] = H, t[101] = U, t[102] = J, t[103] = T, t[104] = c;
673
673
  } else
674
- T = t[91], Y = t[92], E = t[93], F = t[94], G = t[95], H = t[96], V = t[97], O = t[98], w = t[99], A = t[100], U = t[101], J = t[102], K = t[103], Q = t[104];
675
- let S;
676
- t[117] !== T || t[118] !== E || t[119] !== F ? (S = /* @__PURE__ */ s.jsxs(T, { children: [
674
+ Y = t[91], I = t[92], E = t[93], G = t[94], $ = t[95], D = t[96], v = t[97], w = t[98], C = t[99], H = t[100], U = t[101], J = t[102], T = t[103], c = t[104];
675
+ let K;
676
+ t[117] !== Y || t[118] !== E || t[119] !== G ? (K = /* @__PURE__ */ s.jsxs(Y, { children: [
677
677
  E,
678
- F
679
- ] }), t[117] = T, t[118] = E, t[119] = F, t[120] = S) : S = t[120];
680
- let u;
681
- t[121] !== I ? (u = I.filter(Xi).map(Wi), t[121] = I, t[122] = u) : u = t[122];
682
- let Z;
683
- t[123] !== G || t[124] !== H || t[125] !== V || t[126] !== O || t[127] !== w || t[128] !== S || t[129] !== u ? (Z = /* @__PURE__ */ s.jsxs("g", { transform: G, children: [
684
- H,
685
- V,
686
- O,
678
+ G
679
+ ] }), t[117] = Y, t[118] = E, t[119] = G, t[120] = K) : K = t[120];
680
+ let Q;
681
+ t[121] !== L ? (Q = L.filter(Pi).map(Bi), t[121] = L, t[122] = Q) : Q = t[122];
682
+ let F;
683
+ t[123] !== $ || t[124] !== D || t[125] !== v || t[126] !== w || t[127] !== C || t[128] !== K || t[129] !== Q ? (F = /* @__PURE__ */ s.jsxs("g", { transform: $, children: [
684
+ D,
685
+ v,
687
686
  w,
687
+ C,
688
+ K,
689
+ Q
690
+ ] }), t[123] = $, t[124] = D, t[125] = v, t[126] = w, t[127] = C, t[128] = K, t[129] = Q, t[130] = F) : F = t[130];
691
+ let pt;
692
+ t[131] !== I || t[132] !== H || t[133] !== U || t[134] !== J || t[135] !== T || t[136] !== c || t[137] !== F ? (pt = /* @__PURE__ */ s.jsx(I, { width: H, height: U, viewBox: J, direction: T, ref: c, children: F }), t[131] = I, t[132] = H, t[133] = U, t[134] = J, t[135] = T, t[136] = c, t[137] = F, t[138] = pt) : pt = t[138];
693
+ let S;
694
+ t[139] !== d?.tooltip || t[140] !== nt || t[141] !== Kt || t[142] !== It || t[143] !== o?.tooltip || t[144] !== yt ? (S = It && yt && nt && Kt ? /* @__PURE__ */ s.jsx(Be, { data: It, body: yt, xPos: nt, yPos: Kt, backgroundStyle: o?.tooltip, className: d?.tooltip }) : null, t[139] = d?.tooltip, t[140] = nt, t[141] = Kt, t[142] = It, t[143] = o?.tooltip, t[144] = yt, t[145] = S) : S = t[145];
695
+ let Wt;
696
+ t[146] !== d?.modal || t[147] !== B || t[148] !== at ? (Wt = B && at !== void 0 ? /* @__PURE__ */ s.jsx(Xe, { body: B, data: at, setData: Mt, className: d?.modal }) : null, t[146] = d?.modal, t[147] = B, t[148] = at, t[149] = Wt) : Wt = t[149];
697
+ let u;
698
+ return t[150] !== pt || t[151] !== S || t[152] !== Wt ? (u = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
699
+ pt,
688
700
  S,
689
- u
690
- ] }), t[123] = G, t[124] = H, t[125] = V, t[126] = O, t[127] = w, t[128] = S, t[129] = u, t[130] = Z) : Z = t[130];
691
- let _;
692
- t[131] !== Y || t[132] !== A || t[133] !== U || t[134] !== J || t[135] !== K || t[136] !== Q || t[137] !== Z ? (_ = /* @__PURE__ */ s.jsx(Y, { width: A, height: U, viewBox: J, direction: K, ref: Q, children: Z }), t[131] = Y, t[132] = A, t[133] = U, t[134] = J, t[135] = K, t[136] = Q, t[137] = Z, t[138] = _) : _ = t[138];
693
- let R;
694
- t[139] !== f?.tooltip || t[140] !== st || t[141] !== Zt || t[142] !== Nt || t[143] !== o?.tooltip || t[144] !== xt ? (R = Nt && xt && st && Zt ? /* @__PURE__ */ s.jsx(We, { data: Nt, body: xt, xPos: st, yPos: Zt, backgroundStyle: o?.tooltip, className: f?.tooltip }) : null, t[139] = f?.tooltip, t[140] = st, t[141] = Zt, t[142] = Nt, t[143] = o?.tooltip, t[144] = xt, t[145] = R) : R = t[145];
695
- let Pt;
696
- t[146] !== f?.modal || t[147] !== P || t[148] !== lt ? (Pt = P && lt !== void 0 ? /* @__PURE__ */ s.jsx(Ee, { body: P, data: lt, setData: vt, className: f?.modal }) : null, t[146] = f?.modal, t[147] = P, t[148] = lt, t[149] = Pt) : Pt = t[149];
697
- let c;
698
- return t[150] !== _ || t[151] !== R || t[152] !== Pt ? (c = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
699
- _,
700
- R,
701
- Pt
702
- ] }), t[150] = _, t[151] = R, t[152] = Pt, t[153] = c) : c = t[153], c;
701
+ Wt
702
+ ] }), t[150] = pt, t[151] = S, t[152] = Wt, t[153] = u) : u = t[153], u;
703
703
  }
704
- function Wi(e) {
704
+ function Bi(e) {
705
705
  return e.layer;
706
706
  }
707
- function Xi(e) {
707
+ function Pi(e) {
708
708
  return e.position === "after";
709
709
  }
710
- function Yi(e) {
710
+ function Wi(e) {
711
711
  return e.layer;
712
712
  }
713
- function Ei(e) {
713
+ function Xi(e) {
714
714
  return e.position === "before";
715
715
  }
716
- function Gi(e) {
716
+ function Yi(e) {
717
717
  return e !== 0;
718
718
  }
719
- function Hi(e) {
719
+ function Ei(e) {
720
720
  return e !== 0;
721
721
  }
722
- function Ui(e) {
722
+ function Gi(e) {
723
723
  return `${e.id}`;
724
724
  }
725
- function Ji(e) {
725
+ function Hi(e) {
726
726
  return {
727
727
  id: e,
728
728
  label: e,
@@ -731,6 +731,12 @@ function Ji(e) {
731
731
  qualitativeRange: null
732
732
  };
733
733
  }
734
+ function Ui(e) {
735
+ return e.target;
736
+ }
737
+ function Ji(e) {
738
+ return !y(e.target);
739
+ }
734
740
  function Ki(e) {
735
741
  return e.target;
736
742
  }
@@ -738,10 +744,10 @@ function Qi(e) {
738
744
  return !y(e.target);
739
745
  }
740
746
  function Zi(e) {
741
- return e.target;
747
+ return e.size;
742
748
  }
743
749
  function _i(e) {
744
- return !y(e.target);
750
+ return !y(e.size);
745
751
  }
746
752
  function ta(e) {
747
753
  return e.size;
@@ -750,16 +756,16 @@ function ea(e) {
750
756
  return !y(e.size);
751
757
  }
752
758
  function ia(e) {
753
- return e.size;
759
+ return Oe((e.qualitativeRange || []).filter(aa)) || 0;
754
760
  }
755
761
  function aa(e) {
756
- return !y(e.size);
762
+ return !y(e);
757
763
  }
758
764
  function na(e) {
759
- return Le((e.qualitativeRange || []).filter(la)) || 0;
765
+ return e.target;
760
766
  }
761
767
  function la(e) {
762
- return !y(e);
768
+ return !y(e.target);
763
769
  }
764
770
  function sa(e) {
765
771
  return e.target;
@@ -768,10 +774,10 @@ function oa(e) {
768
774
  return !y(e.target);
769
775
  }
770
776
  function ra(e) {
771
- return e.target;
777
+ return e.size;
772
778
  }
773
779
  function ca(e) {
774
- return !y(e.target);
780
+ return !y(e.size);
775
781
  }
776
782
  function ua(e) {
777
783
  return e.size;
@@ -779,203 +785,194 @@ function ua(e) {
779
785
  function ma(e) {
780
786
  return !y(e.size);
781
787
  }
782
- function fa(e) {
783
- return e.size;
784
- }
785
- function da(e) {
786
- return !y(e.size);
787
- }
788
- function _a(e) {
789
- const t = Fe.c(138), {
788
+ function Qa(e) {
789
+ const t = De.c(136), {
790
790
  data: i,
791
- graphTitle: zt,
792
- barColor: ae,
793
- barPadding: Gt,
794
- showTicks: jt,
795
- leftMargin: N,
796
- rightMargin: Ht,
797
- topMargin: Ut,
798
- bottomMargin: ne,
799
- truncateBy: kt,
800
- showLabels: le,
801
- showValues: he,
802
- backgroundColor: Jt,
803
- suffix: se,
791
+ graphTitle: jt,
792
+ barColor: ne,
793
+ barPadding: Yt,
794
+ showTicks: kt,
795
+ leftMargin: O,
796
+ rightMargin: Et,
797
+ topMargin: Gt,
798
+ bottomMargin: le,
799
+ truncateBy: Ct,
800
+ showLabels: se,
801
+ showValues: xe,
802
+ backgroundColor: Ht,
803
+ suffix: oe,
804
804
  prefix: be,
805
- sources: xt,
806
- graphDescription: pt,
807
- height: Ct,
808
- width: v,
809
- footNote: gt,
810
- colorDomain: et,
811
- colorLegendTitle: ut,
812
- padding: j,
813
- relativeHeight: Kt,
814
- tooltip: Ot,
815
- onSeriesMouseOver: Qt,
816
- refValues: mt,
817
- showColorScale: P,
818
- graphID: it,
819
- maxValue: Lt,
805
+ sources: yt,
806
+ graphDescription: bt,
807
+ height: Ot,
808
+ width: A,
809
+ footNote: vt,
810
+ colorDomain: _,
811
+ colorLegendTitle: rt,
812
+ padding: z,
813
+ relativeHeight: Ut,
814
+ tooltip: Lt,
815
+ onSeriesMouseOver: Jt,
816
+ refValues: ct,
817
+ showColorScale: B,
818
+ graphID: tt,
819
+ maxValue: Nt,
820
820
  minValue: p,
821
821
  highlightedDataPoints: o,
822
- onSeriesMouseClick: f,
823
- valueColor: W,
824
- orientation: at,
822
+ onSeriesMouseClick: d,
823
+ valueColor: P,
824
+ orientation: et,
825
825
  styles: g,
826
826
  classNames: r,
827
- qualitativeRangeColors: m,
828
- targetColor: ft,
829
- filterNA: nt,
830
- targetStyle: I,
831
- measureBarWidthFactor: oe,
832
- animate: re,
833
- dimmedOpacity: yt,
834
- precision: X,
835
- customLayers: bt,
836
- naLabel: xe,
837
- graphDownload: pe,
827
+ qualitativeRangeColors: f,
828
+ targetColor: ut,
829
+ filterNA: it,
830
+ targetStyle: L,
831
+ measureBarWidthFactor: re,
832
+ animate: ce,
833
+ dimmedOpacity: wt,
834
+ precision: W,
835
+ customLayers: At,
836
+ naLabel: pe,
837
+ graphDownload: ge,
838
838
  dataDownload: ve,
839
- language: ge,
840
- theme: $,
841
- sortData: C,
842
- labelOrder: Nt,
839
+ language: ye,
840
+ theme: N,
841
+ sortData: k,
842
+ labelOrder: It,
843
843
  minHeight: b,
844
- maxBarThickness: lt,
845
- maxNumberOfBars: vt,
846
- minBarThickness: st,
847
- ariaLabel: ce,
848
- resetSelectionOnDoubleClick: Zt,
849
- detailsOnClick: ue,
850
- barAxisTitle: _t,
851
- noOfTicks: me,
852
- targetLineThickness: d,
853
- timeline: dt,
854
- hideAxisLine: ot,
855
- locale: te
856
- } = e, It = ae === void 0 ? Ie.primaryColors["blue-600"] : ae, $t = Gt === void 0 ? 0.25 : Gt, Dt = jt === void 0 ? !0 : jt, Tt = kt === void 0 ? 999 : kt, Ft = le === void 0 ? !0 : le, St = he === void 0 ? !0 : he, ee = Jt === void 0 ? !1 : Jt, Rt = se === void 0 ? "" : se, qt = be === void 0 ? "" : be, Bt = P === void 0 ? !0 : P;
857
- let wt;
858
- t[0] !== o ? (wt = o === void 0 ? [] : o, t[0] = o, t[1] = wt) : wt = t[1];
859
- const M = wt, D = at === void 0 ? "vertical" : at, ht = ft === void 0 ? Ie.light.grays["gray-700"] : ft, rt = nt === void 0 ? !0 : nt, At = I === void 0 ? "line" : I, ct = oe === void 0 ? 0.4 : oe, T = re === void 0 ? !1 : re, Y = yt === void 0 ? 0.3 : yt, E = X === void 0 ? 2 : X;
860
- let F;
861
- t[2] !== bt ? (F = bt === void 0 ? [] : bt, t[2] = bt, t[3] = F) : F = t[3];
862
- const G = F, H = xe === void 0 ? "NA" : xe, V = pe === void 0 ? !1 : pe, O = ve === void 0 ? !1 : ve, w = ge === void 0 ? "en" : ge, A = $ === void 0 ? "light" : $, U = b === void 0 ? 0 : b, J = Zt === void 0 ? !0 : Zt, K = me === void 0 ? 5 : me, Q = d === void 0 ? 2 : d;
863
- let S;
864
- t[4] !== dt ? (S = dt === void 0 ? {
844
+ maxBarThickness: at,
845
+ maxNumberOfBars: Mt,
846
+ minBarThickness: nt,
847
+ ariaLabel: ue,
848
+ resetSelectionOnDoubleClick: Kt,
849
+ detailsOnClick: me,
850
+ barAxisTitle: Qt,
851
+ noOfTicks: fe,
852
+ targetLineThickness: h,
853
+ timeline: mt,
854
+ hideAxisLine: lt,
855
+ locale: Zt
856
+ } = e, $t = ne === void 0 ? Ne.primaryColors["blue-600"] : ne, Dt = Yt === void 0 ? 0.25 : Yt, Tt = kt === void 0 ? !0 : kt, Ft = Ct === void 0 ? 999 : Ct, St = se === void 0 ? !0 : se, Rt = xe === void 0 ? !0 : xe, _t = Ht === void 0 ? !1 : Ht, qt = oe === void 0 ? "" : oe, Bt = be === void 0 ? "" : be, Pt = B === void 0 ? !0 : B, ft = et === void 0 ? "vertical" : et, V = ut === void 0 ? Ne.light.grays["gray-700"] : ut, X = it === void 0 ? !0 : it, dt = L === void 0 ? "line" : L, ht = re === void 0 ? 0.4 : re, xt = ce === void 0 ? !1 : ce, st = wt === void 0 ? 0.3 : wt, Y = W === void 0 ? 2 : W;
857
+ let I;
858
+ t[0] !== At ? (I = At === void 0 ? [] : At, t[0] = At, t[1] = I) : I = t[1];
859
+ const E = I, G = pe === void 0 ? "NA" : pe, $ = ge === void 0 ? !1 : ge, D = ve === void 0 ? !1 : ve, v = ye === void 0 ? "en" : ye, w = N === void 0 ? "light" : N, C = b === void 0 ? 0 : b, H = Kt === void 0 ? !0 : Kt, U = fe === void 0 ? 5 : fe, J = h === void 0 ? 2 : h;
860
+ let T;
861
+ t[2] !== mt ? (T = mt === void 0 ? {
865
862
  enabled: !1,
866
863
  autoplay: !1,
867
864
  showOnlyActiveDate: !0
868
- } : dt, t[4] = dt, t[5] = S) : S = t[5];
869
- const u = S, Z = ot === void 0 ? !1 : ot, _ = te === void 0 ? "en" : te, [R, Pt] = ie(0), [c, l] = ie(0), k = $e(null), tt = $e(null), q = D === "horizontal" ? Pi : hi, [z, Wt] = ie(u.autoplay);
870
- let Xt;
871
- if (t[6] !== i || t[7] !== u.dateFormat) {
865
+ } : mt, t[2] = mt, t[3] = T) : T = t[3];
866
+ const c = T, K = lt === void 0 ? !1 : lt, Q = Zt === void 0 ? "en" : Zt, [F, pt] = ae(0), [S, Wt] = ae(0), u = Ie(null), n = Ie(null), j = ft === "horizontal" ? qi : fi, [M, ot] = ae(c.autoplay);
867
+ let R;
868
+ if (t[4] !== i || t[5] !== c.dateFormat) {
872
869
  let x;
873
- t[9] !== u.dateFormat ? (x = (de) => Qe(`${de.date}`, u.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = u.dateFormat, t[10] = x) : x = t[10], Xt = [...new Set(i.filter(wa).map(x))], Xt.sort(va), t[6] = i, t[7] = u.dateFormat, t[8] = Xt;
870
+ t[7] !== c.dateFormat ? (x = (he) => Je(`${he.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = c.dateFormat, t[8] = x) : x = t[8], R = [...new Set(i.filter(ba).map(x))], R.sort(ya), t[4] = i, t[5] = c.dateFormat, t[6] = R;
874
871
  } else
875
- Xt = t[8];
876
- const h = Xt, [L, fe] = ie(u.autoplay ? 0 : h.length - 1);
877
- let Yt, a;
878
- t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Yt = () => {
879
- const x = new ResizeObserver((de) => {
880
- Pt(de[0].target.clientWidth || 620), l(de[0].target.clientHeight || 480);
872
+ R = t[6];
873
+ const m = R, [q, de] = ae(c.autoplay ? 0 : m.length - 1);
874
+ let Vt, te;
875
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Vt = () => {
876
+ const x = new ResizeObserver((he) => {
877
+ pt(he[0].target.clientWidth || 620), Wt(he[0].target.clientHeight || 480);
881
878
  });
882
- return k.current && x.observe(k.current), () => x.disconnect();
883
- }, a = [], t[11] = Yt, t[12] = a) : (Yt = t[11], a = t[12]), Se(Yt, a);
884
- let B, n;
885
- t[13] !== z || t[14] !== u.speed || t[15] !== h ? (B = () => {
879
+ return u.current && x.observe(u.current), () => x.disconnect();
880
+ }, te = [], t[9] = Vt, t[10] = te) : (Vt = t[9], te = t[10]), Te(Vt, te);
881
+ let Xt, a;
882
+ t[11] !== M || t[12] !== c.speed || t[13] !== m ? (Xt = () => {
886
883
  const x = setInterval(() => {
887
- fe((de) => de < h.length - 1 ? de + 1 : 0);
888
- }, (u.speed || 2) * 1e3);
889
- return z || clearInterval(x), () => clearInterval(x);
890
- }, n = [h, z, u.speed], t[13] = z, t[14] = u.speed, t[15] = h, t[16] = B, t[17] = n) : (B = t[16], n = t[17]), Se(B, n);
891
- const Mt = u.dateFormat || "yyyy";
892
- let Et;
893
- t[18] !== L || t[19] !== Mt || t[20] !== u.showOnlyActiveDate || t[21] !== h ? (Et = Ze(h, L, u.showOnlyActiveDate, Mt), t[18] = L, t[19] = Mt, t[20] = u.showOnlyActiveDate, t[21] = h, t[22] = Et) : Et = t[22];
894
- const ye = Et, we = r?.graphContainer, De = g?.graphContainer;
895
- let Ae;
896
- t[23] !== r?.description || t[24] !== r?.title || t[25] !== i || t[26] !== O || t[27] !== pt || t[28] !== V || t[29] !== zt || t[30] !== g?.description || t[31] !== g?.title || t[32] !== v ? (Ae = zt || pt || V || O ? /* @__PURE__ */ s.jsx(ui, { styles: {
884
+ de((he) => he < m.length - 1 ? he + 1 : 0);
885
+ }, (c.speed || 2) * 1e3);
886
+ return M || clearInterval(x), () => clearInterval(x);
887
+ }, a = [m, M, c.speed], t[11] = M, t[12] = c.speed, t[13] = m, t[14] = Xt, t[15] = a) : (Xt = t[14], a = t[15]), Te(Xt, a);
888
+ const Z = c.dateFormat || "yyyy";
889
+ let l;
890
+ t[16] !== q || t[17] !== Z || t[18] !== c.showOnlyActiveDate || t[19] !== m ? (l = Ke(m, q, c.showOnlyActiveDate, Z), t[16] = q, t[17] = Z, t[18] = c.showOnlyActiveDate, t[19] = m, t[20] = l) : l = t[20];
891
+ const gt = l, ee = r?.graphContainer, we = g?.graphContainer;
892
+ let ie;
893
+ t[21] !== r?.description || t[22] !== r?.title || t[23] !== i || t[24] !== D || t[25] !== bt || t[26] !== $ || t[27] !== jt || t[28] !== g?.description || t[29] !== g?.title || t[30] !== A ? (ie = jt || bt || $ || D ? /* @__PURE__ */ s.jsx(ri, { styles: {
897
894
  title: g?.title,
898
895
  description: g?.description
899
896
  }, classNames: {
900
897
  title: r?.title,
901
898
  description: r?.description
902
- }, graphTitle: zt, graphDescription: pt, width: v, graphDownload: V ? tt : void 0, dataDownload: O ? i.map(ba).filter(ya).length > 0 ? i.map(ga).filter(pa) : i.filter(xa) : null }) : null, t[23] = r?.description, t[24] = r?.title, t[25] = i, t[26] = O, t[27] = pt, t[28] = V, t[29] = zt, t[30] = g?.description, t[31] = g?.title, t[32] = v, t[33] = Ae) : Ae = t[33];
903
- let Me;
904
- t[34] !== L || t[35] !== ye || t[36] !== z || t[37] !== u.enabled || t[38] !== h ? (Me = u.enabled && h.length > 0 && ye ? /* @__PURE__ */ s.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
899
+ }, graphTitle: jt, graphDescription: bt, width: A, graphDownload: $ ? n : void 0, dataDownload: D ? i.map(ga).filter(pa).length > 0 ? i.map(xa).filter(ha) : i.filter(da) : null }) : null, t[21] = r?.description, t[22] = r?.title, t[23] = i, t[24] = D, t[25] = bt, t[26] = $, t[27] = jt, t[28] = g?.description, t[29] = g?.title, t[30] = A, t[31] = ie) : ie = t[31];
900
+ let Ae;
901
+ t[32] !== q || t[33] !== gt || t[34] !== M || t[35] !== c.enabled || t[36] !== m ? (Ae = c.enabled && m.length > 0 && gt ? /* @__PURE__ */ s.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
905
902
  /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => {
906
- Wt(!z);
907
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": z ? "Click to pause animation" : "Click to play animation", children: z ? /* @__PURE__ */ s.jsx(fi, {}) : /* @__PURE__ */ s.jsx(di, {}) }),
908
- /* @__PURE__ */ s.jsx(_e, { min: h[0], max: h[h.length - 1], marks: ye, step: null, defaultValue: h[h.length - 1], value: h[L], onChangeComplete: (x) => {
909
- fe(h.indexOf(x));
903
+ ot(!M);
904
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": M ? "Click to pause animation" : "Click to play animation", children: M ? /* @__PURE__ */ s.jsx(ui, {}) : /* @__PURE__ */ s.jsx(mi, {}) }),
905
+ /* @__PURE__ */ s.jsx(Qe, { min: m[0], max: m[m.length - 1], marks: gt, step: null, defaultValue: m[m.length - 1], value: m[q], onChangeComplete: (x) => {
906
+ de(m.indexOf(x));
910
907
  }, onChange: (x) => {
911
- fe(h.indexOf(x));
908
+ de(m.indexOf(x));
912
909
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
913
- ] }) : null, t[34] = L, t[35] = ye, t[36] = z, t[37] = u.enabled, t[38] = h, t[39] = Me) : Me = t[39];
910
+ ] }) : null, t[32] = q, t[33] = gt, t[34] = M, t[35] = c.enabled, t[36] = m, t[37] = Ae) : Ae = t[37];
911
+ let Me;
912
+ t[38] !== r?.colorLegend || t[39] !== _ || t[40] !== rt || t[41] !== i || t[42] !== f || t[43] !== Pt || t[44] !== w || t[45] !== A ? (Me = Pt && i.filter(fa).length !== 0 && _ && i.length > 0 ? /* @__PURE__ */ s.jsx(ci, { width: A, colorLegendTitle: rt, colors: f || Ne[w].sequentialColors.positiveColorsx10, colorDomain: _, showNAColor: !1, className: r?.colorLegend }) : null, t[38] = r?.colorLegend, t[39] = _, t[40] = rt, t[41] = i, t[42] = f, t[43] = Pt, t[44] = w, t[45] = A, t[46] = Me) : Me = t[46];
914
913
  let Ve;
915
- t[40] !== r?.colorLegend || t[41] !== et || t[42] !== ut || t[43] !== i || t[44] !== m || t[45] !== Bt || t[46] !== A || t[47] !== v ? (Ve = Bt && i.filter(ha).length !== 0 && et && i.length > 0 ? /* @__PURE__ */ s.jsx(mi, { width: v, colorLegendTitle: ut, colors: m || Ie[A].sequentialColors.positiveColorsx10, colorDomain: et, showNAColor: !1, className: r?.colorLegend }) : null, t[40] = r?.colorLegend, t[41] = et, t[42] = ut, t[43] = i, t[44] = m, t[45] = Bt, t[46] = A, t[47] = v, t[48] = Ve) : Ve = t[48];
914
+ t[47] !== i.length ? (Ve = i.length === 0 && /* @__PURE__ */ s.jsx(ni, {}), t[47] = i.length, t[48] = Ve) : Ve = t[48];
916
915
  let ze;
917
- t[49] !== i.length ? (ze = i.length === 0 && /* @__PURE__ */ s.jsx(si, {}), t[49] = i.length, t[50] = ze) : ze = t[50];
918
- let je;
919
- t[51] !== q || t[52] !== T || t[53] !== _t || t[54] !== It || t[55] !== $t || t[56] !== ne || t[57] !== r || t[58] !== G || t[59] !== i || t[60] !== ue || t[61] !== Y || t[62] !== rt || t[63] !== Z || t[64] !== M || t[65] !== L || t[66] !== Nt || t[67] !== w || t[68] !== N || t[69] !== _ || t[70] !== lt || t[71] !== vt || t[72] !== Lt || t[73] !== ct || t[74] !== st || t[75] !== p || t[76] !== H || t[77] !== K || t[78] !== f || t[79] !== Qt || t[80] !== D || t[81] !== E || t[82] !== qt || t[83] !== m || t[84] !== mt || t[85] !== J || t[86] !== Ht || t[87] !== Ft || t[88] !== Dt || t[89] !== St || t[90] !== C || t[91] !== g || t[92] !== Rt || t[93] !== c || t[94] !== R || t[95] !== ht || t[96] !== Q || t[97] !== At || t[98] !== A || t[99] !== u.dateFormat || t[100] !== u.enabled || t[101] !== Ot || t[102] !== Ut || t[103] !== Tt || t[104] !== h || t[105] !== W ? (je = R && c && i.length > 0 ? /* @__PURE__ */ s.jsx(q, { hideAxisLine: Z, data: C ? Ke(qe(i, u.dateFormat || "yyyy").filter((x) => u.enabled ? `${x.date}` === Re(new Date(h[L]), u.dateFormat || "yyyy") : x).filter((x) => rt ? !y(x.size) : x), [(x) => x.size === void 0 ? C === "asc" ? (D === "horizontal" ? 1 : -1) * (1 / 0) : (D === "horizontal" ? -1 : 1) * (1 / 0) : x.size], [C]).filter((x, de) => vt ? de < vt : !0) : qe(i, u.dateFormat || "yyyy").filter((x) => u.enabled ? `${x.date}` === Re(new Date(h[L]), u.dateFormat || "yyyy") : x).filter((x) => rt ? !y(x.size) : x).filter((x, de) => vt ? de < vt : !0), barColor: It, targetColor: ht, width: R, refValues: mt, height: c, suffix: Rt, prefix: qt, barPadding: $t, showLabels: Ft, showValues: St, showTicks: Dt, truncateBy: Tt, leftMargin: N, rightMargin: Ht, qualitativeRangeColors: m || Ie[A].sequentialColors.positiveColorsx10, topMargin: Ut, bottomMargin: ne, tooltip: Ot, onSeriesMouseOver: Qt, maxValue: Lt, minValue: p, highlightedDataPoints: M, onSeriesMouseClick: f, labelOrder: Nt, maxBarThickness: lt, minBarThickness: st, resetSelectionOnDoubleClick: J, detailsOnClick: ue, barAxisTitle: _t, noOfTicks: K, valueColor: W, styles: g, classNames: r, targetStyle: At, dimmedOpacity: Y, measureBarWidthFactor: ct, animate: T === !0 ? {
916
+ t[49] !== j || t[50] !== xt || t[51] !== Qt || t[52] !== $t || t[53] !== Dt || t[54] !== le || t[55] !== r || t[56] !== E || t[57] !== i || t[58] !== me || t[59] !== st || t[60] !== X || t[61] !== K || t[62] !== o || t[63] !== q || t[64] !== It || t[65] !== v || t[66] !== O || t[67] !== Q || t[68] !== at || t[69] !== Mt || t[70] !== Nt || t[71] !== ht || t[72] !== nt || t[73] !== p || t[74] !== G || t[75] !== U || t[76] !== d || t[77] !== Jt || t[78] !== ft || t[79] !== Y || t[80] !== Bt || t[81] !== f || t[82] !== ct || t[83] !== H || t[84] !== Et || t[85] !== St || t[86] !== Tt || t[87] !== Rt || t[88] !== k || t[89] !== g || t[90] !== qt || t[91] !== S || t[92] !== F || t[93] !== V || t[94] !== J || t[95] !== dt || t[96] !== w || t[97] !== c.dateFormat || t[98] !== c.enabled || t[99] !== Lt || t[100] !== Gt || t[101] !== Ft || t[102] !== m || t[103] !== P ? (ze = F && S && i.length > 0 ? /* @__PURE__ */ s.jsx(j, { hideAxisLine: K, data: k ? Ue(Se(i, c.dateFormat || "yyyy").filter((x) => c.enabled ? `${x.date}` === Fe(new Date(m[q]), c.dateFormat || "yyyy") : x).filter((x) => X ? !y(x.size) : x), [(x) => x.size === void 0 ? k === "asc" ? (ft === "horizontal" ? 1 : -1) * (1 / 0) : (ft === "horizontal" ? -1 : 1) * (1 / 0) : x.size], [k]).filter((x, he) => Mt ? he < Mt : !0) : Se(i, c.dateFormat || "yyyy").filter((x) => c.enabled ? `${x.date}` === Fe(new Date(m[q]), c.dateFormat || "yyyy") : x).filter((x) => X ? !y(x.size) : x).filter((x, he) => Mt ? he < Mt : !0), barColor: $t, targetColor: V, width: F, refValues: ct, height: S, suffix: qt, prefix: Bt, barPadding: Dt, showLabels: St, showValues: Rt, showTicks: Tt, truncateBy: Ft, leftMargin: O, rightMargin: Et, qualitativeRangeColors: f || Ne[w].sequentialColors.positiveColorsx10, topMargin: Gt, bottomMargin: le, tooltip: Lt, onSeriesMouseOver: Jt, maxValue: Nt, minValue: p, highlightedDataPoints: o, onSeriesMouseClick: d, labelOrder: It, maxBarThickness: at, minBarThickness: nt, resetSelectionOnDoubleClick: H, detailsOnClick: me, barAxisTitle: Qt, noOfTicks: U, valueColor: P, styles: g, classNames: r, targetStyle: dt, dimmedOpacity: st, measureBarWidthFactor: ht, animate: xt === !0 ? {
920
917
  duration: 0.5,
921
918
  once: !0,
922
919
  amount: 0.5
923
- } : T || {
920
+ } : xt || {
924
921
  duration: 0,
925
922
  once: !0,
926
923
  amount: 0
927
- }, precision: E, customLayers: G, naLabel: H, targetLineThickness: Q, rtl: w === "ar" || w === "he", locale: _ }) : null, t[51] = q, t[52] = T, t[53] = _t, t[54] = It, t[55] = $t, t[56] = ne, t[57] = r, t[58] = G, t[59] = i, t[60] = ue, t[61] = Y, t[62] = rt, t[63] = Z, t[64] = M, t[65] = L, t[66] = Nt, t[67] = w, t[68] = N, t[69] = _, t[70] = lt, t[71] = vt, t[72] = Lt, t[73] = ct, t[74] = st, t[75] = p, t[76] = H, t[77] = K, t[78] = f, t[79] = Qt, t[80] = D, t[81] = E, t[82] = qt, t[83] = m, t[84] = mt, t[85] = J, t[86] = Ht, t[87] = Ft, t[88] = Dt, t[89] = St, t[90] = C, t[91] = g, t[92] = Rt, t[93] = c, t[94] = R, t[95] = ht, t[96] = Q, t[97] = At, t[98] = A, t[99] = u.dateFormat, t[100] = u.enabled, t[101] = Ot, t[102] = Ut, t[103] = Tt, t[104] = h, t[105] = W, t[106] = je) : je = t[106];
924
+ }, precision: Y, customLayers: E, naLabel: G, targetLineThickness: J, rtl: v === "ar" || v === "he", locale: Q }) : null, t[49] = j, t[50] = xt, t[51] = Qt, t[52] = $t, t[53] = Dt, t[54] = le, t[55] = r, t[56] = E, t[57] = i, t[58] = me, t[59] = st, t[60] = X, t[61] = K, t[62] = o, t[63] = q, t[64] = It, t[65] = v, t[66] = O, t[67] = Q, t[68] = at, t[69] = Mt, t[70] = Nt, t[71] = ht, t[72] = nt, t[73] = p, t[74] = G, t[75] = U, t[76] = d, t[77] = Jt, t[78] = ft, t[79] = Y, t[80] = Bt, t[81] = f, t[82] = ct, t[83] = H, t[84] = Et, t[85] = St, t[86] = Tt, t[87] = Rt, t[88] = k, t[89] = g, t[90] = qt, t[91] = S, t[92] = F, t[93] = V, t[94] = J, t[95] = dt, t[96] = w, t[97] = c.dateFormat, t[98] = c.enabled, t[99] = Lt, t[100] = Gt, t[101] = Ft, t[102] = m, t[103] = P, t[104] = ze) : ze = t[104];
925
+ let je;
926
+ t[105] !== Ve || t[106] !== ze ? (je = /* @__PURE__ */ s.jsxs(li, { ref: u, children: [
927
+ Ve,
928
+ ze
929
+ ] }), t[105] = Ve, t[106] = ze, t[107] = je) : je = t[107];
928
930
  let ke;
929
- t[107] !== ze || t[108] !== je ? (ke = /* @__PURE__ */ s.jsxs(oi, { ref: k, children: [
930
- ze,
931
+ t[108] !== Me || t[109] !== je ? (ke = /* @__PURE__ */ s.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
932
+ Me,
931
933
  je
932
- ] }), t[107] = ze, t[108] = je, t[109] = ke) : ke = t[109];
934
+ ] }), t[108] = Me, t[109] = je, t[110] = ke) : ke = t[110];
933
935
  let Ce;
934
- t[110] !== Ve || t[111] !== ke ? (Ce = /* @__PURE__ */ s.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
935
- Ve,
936
- ke
937
- ] }), t[110] = Ve, t[111] = ke, t[112] = Ce) : Ce = t[112];
938
- let Oe;
939
- t[113] !== r?.footnote || t[114] !== r?.source || t[115] !== gt || t[116] !== xt || t[117] !== g?.footnote || t[118] !== g?.source || t[119] !== v ? (Oe = xt || gt ? /* @__PURE__ */ s.jsx(ci, { styles: {
936
+ t[111] !== r?.footnote || t[112] !== r?.source || t[113] !== vt || t[114] !== yt || t[115] !== g?.footnote || t[116] !== g?.source || t[117] !== A ? (Ce = yt || vt ? /* @__PURE__ */ s.jsx(oi, { styles: {
940
937
  footnote: g?.footnote,
941
938
  source: g?.source
942
939
  }, classNames: {
943
940
  footnote: r?.footnote,
944
941
  source: r?.source
945
- }, sources: xt, footNote: gt, width: v }) : null, t[113] = r?.footnote, t[114] = r?.source, t[115] = gt, t[116] = xt, t[117] = g?.footnote, t[118] = g?.source, t[119] = v, t[120] = Oe) : Oe = t[120];
946
- let Ne;
947
- return t[121] !== ce || t[122] !== ee || t[123] !== it || t[124] !== Ct || t[125] !== w || t[126] !== U || t[127] !== j || t[128] !== Kt || t[129] !== we || t[130] !== De || t[131] !== Ae || t[132] !== Me || t[133] !== Ce || t[134] !== Oe || t[135] !== A || t[136] !== v ? (Ne = /* @__PURE__ */ s.jsxs(ri, { className: we, style: De, id: it, ref: tt, "aria-label": ce, backgroundColor: ee, theme: A, language: w, minHeight: U, width: v, height: Ct, relativeHeight: Kt, padding: j, children: [
942
+ }, sources: yt, footNote: vt, width: A }) : null, t[111] = r?.footnote, t[112] = r?.source, t[113] = vt, t[114] = yt, t[115] = g?.footnote, t[116] = g?.source, t[117] = A, t[118] = Ce) : Ce = t[118];
943
+ let Le;
944
+ return t[119] !== ue || t[120] !== _t || t[121] !== tt || t[122] !== Ot || t[123] !== v || t[124] !== C || t[125] !== z || t[126] !== Ut || t[127] !== ee || t[128] !== we || t[129] !== ie || t[130] !== Ae || t[131] !== ke || t[132] !== Ce || t[133] !== w || t[134] !== A ? (Le = /* @__PURE__ */ s.jsxs(si, { className: ee, style: we, id: tt, ref: n, "aria-label": ue, backgroundColor: _t, theme: w, language: v, minHeight: C, width: A, height: Ot, relativeHeight: Ut, padding: z, children: [
945
+ ie,
948
946
  Ae,
949
- Me,
950
- Ce,
951
- Oe
952
- ] }), t[121] = ce, t[122] = ee, t[123] = it, t[124] = Ct, t[125] = w, t[126] = U, t[127] = j, t[128] = Kt, t[129] = we, t[130] = De, t[131] = Ae, t[132] = Me, t[133] = Ce, t[134] = Oe, t[135] = A, t[136] = v, t[137] = Ne) : Ne = t[137], Ne;
947
+ ke,
948
+ Ce
949
+ ] }), t[119] = ue, t[120] = _t, t[121] = tt, t[122] = Ot, t[123] = v, t[124] = C, t[125] = z, t[126] = Ut, t[127] = ee, t[128] = we, t[129] = ie, t[130] = Ae, t[131] = ke, t[132] = Ce, t[133] = w, t[134] = A, t[135] = Le) : Le = t[135], Le;
953
950
  }
954
- function ha(e) {
951
+ function fa(e) {
955
952
  return e.qualitativeRange;
956
953
  }
957
- function xa(e) {
954
+ function da(e) {
958
955
  return e !== void 0;
959
956
  }
960
- function pa(e) {
957
+ function ha(e) {
961
958
  return e !== void 0;
962
959
  }
963
- function ga(e) {
960
+ function xa(e) {
964
961
  return e.data;
965
962
  }
966
- function ya(e) {
963
+ function pa(e) {
967
964
  return e !== void 0;
968
965
  }
969
- function ba(e) {
966
+ function ga(e) {
970
967
  return e.data;
971
968
  }
972
- function va(e, t) {
969
+ function ya(e, t) {
973
970
  return e - t;
974
971
  }
975
- function wa(e) {
972
+ function ba(e) {
976
973
  return e.date;
977
974
  }
978
975
  export {
979
- _a as BulletChart
976
+ Qa as BulletChart
980
977
  };
981
978
  //# sourceMappingURL=BulletChart.js.map