@undp/data-viz 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/AreaChart.js +3 -3
  2. package/dist/BarGraph.cjs +1 -1
  3. package/dist/BarGraph.cjs.map +1 -1
  4. package/dist/BarGraph.js +1760 -1604
  5. package/dist/BarGraph.js.map +1 -1
  6. package/dist/BeeSwarmChart.js +2 -2
  7. package/dist/BiVariateChoroplethMap.cjs +1 -1
  8. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  9. package/dist/BiVariateChoroplethMap.js +222 -207
  10. package/dist/BiVariateChoroplethMap.js.map +1 -1
  11. package/dist/BulletChart.cjs +1 -1
  12. package/dist/BulletChart.cjs.map +1 -1
  13. package/dist/BulletChart.d.ts +11 -0
  14. package/dist/BulletChart.js +726 -640
  15. package/dist/BulletChart.js.map +1 -1
  16. package/dist/ButterflyChart.cjs +1 -1
  17. package/dist/ButterflyChart.cjs.map +1 -1
  18. package/dist/ButterflyChart.js +366 -348
  19. package/dist/ButterflyChart.js.map +1 -1
  20. package/dist/ChoroplethMap.cjs +1 -1
  21. package/dist/ChoroplethMap.cjs.map +1 -1
  22. package/dist/ChoroplethMap.js +311 -297
  23. package/dist/ChoroplethMap.js.map +1 -1
  24. package/dist/CirclePackingGraph.js +1 -1
  25. package/dist/DifferenceLineChart.js +3 -3
  26. package/dist/DotDensityMap.cjs +1 -1
  27. package/dist/DotDensityMap.cjs.map +1 -1
  28. package/dist/DotDensityMap.js +219 -203
  29. package/dist/DotDensityMap.js.map +1 -1
  30. package/dist/DualAxisLineChart.js +3 -3
  31. package/dist/DumbbellChart.cjs +1 -1
  32. package/dist/DumbbellChart.cjs.map +1 -1
  33. package/dist/DumbbellChart.js +606 -556
  34. package/dist/DumbbellChart.js.map +1 -1
  35. package/dist/GraphEl-YKUlz-37.cjs +2 -0
  36. package/dist/GraphEl-YKUlz-37.cjs.map +1 -0
  37. package/dist/{GraphEl-ebgfxefq.js → GraphEl-sVZvlyWe.js} +3 -2
  38. package/dist/GraphEl-sVZvlyWe.js.map +1 -0
  39. package/dist/GriddedGraphs.cjs +1 -1
  40. package/dist/GriddedGraphs.js +2 -2
  41. package/dist/HeatMap.js +4 -4
  42. package/dist/Histogram.js +3 -3
  43. package/dist/HybridMap.cjs +1 -1
  44. package/dist/HybridMap.cjs.map +1 -1
  45. package/dist/HybridMap.js +357 -342
  46. package/dist/HybridMap.js.map +1 -1
  47. package/dist/LineChartWithConfidenceInterval.js +3 -3
  48. package/dist/MultiLineAltChart.cjs +1 -1
  49. package/dist/MultiLineAltChart.cjs.map +1 -1
  50. package/dist/MultiLineAltChart.js +453 -425
  51. package/dist/MultiLineAltChart.js.map +1 -1
  52. package/dist/MultiLineChart.js +3 -3
  53. package/dist/ParetoChart.js +2 -2
  54. package/dist/RadarChart.js +1 -1
  55. package/dist/ScatterPlot.cjs +1 -1
  56. package/dist/ScatterPlot.cjs.map +1 -1
  57. package/dist/ScatterPlot.js +471 -452
  58. package/dist/ScatterPlot.js.map +1 -1
  59. package/dist/SimpleLineChart.js +3 -3
  60. package/dist/SingleGraphDashboard.cjs +1 -1
  61. package/dist/SingleGraphDashboard.js +2 -2
  62. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  63. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  64. package/dist/SlopeChart.js +1 -1
  65. package/dist/SparkLine.js +3 -3
  66. package/dist/StripChart.js +1 -1
  67. package/dist/ThreeDGlobe.js +2 -2
  68. package/dist/Types.d.ts +1 -0
  69. package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
  70. package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
  71. package/dist/ensureCompleteData-DS7gCvVd.js +122 -0
  72. package/dist/ensureCompleteData-DS7gCvVd.js.map +1 -0
  73. package/dist/ensureCompleteData-Oib-vGb0.cjs +2 -0
  74. package/dist/ensureCompleteData-Oib-vGb0.cjs.map +1 -0
  75. package/dist/getSchema.cjs +1 -1
  76. package/dist/getSchema.cjs.map +1 -1
  77. package/dist/getSchema.js +15 -15
  78. package/dist/getSchema.js.map +1 -1
  79. package/dist/{index-BBV4tAeA.js → index-DPGq3eIL.js} +2 -2
  80. package/dist/{index-BBV4tAeA.js.map → index-DPGq3eIL.js.map} +1 -1
  81. package/dist/index.cjs +1 -1
  82. package/dist/index.d.ts +3 -0
  83. package/dist/index.js +3 -3
  84. package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
  85. package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
  86. package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
  87. package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
  88. package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
  89. package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
  90. package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
  91. package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
  92. package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
  93. package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
  94. package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
  95. package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
  96. package/dist/transformData.cjs +1 -1
  97. package/dist/transformData.js +2 -2
  98. package/dist/transformDataForAggregation-CYoB5Xsk.cjs +2 -0
  99. package/dist/transformDataForAggregation-CYoB5Xsk.cjs.map +1 -0
  100. package/dist/{transformDataForAggregation-DEU__LUl.js → transformDataForAggregation-j34UL73s.js} +14 -10
  101. package/dist/transformDataForAggregation-j34UL73s.js.map +1 -0
  102. package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs → transformDataForGraphFromFile-CuXxR8uA.cjs} +2 -2
  103. package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs.map → transformDataForGraphFromFile-CuXxR8uA.cjs.map} +1 -1
  104. package/dist/{transformDataForGraphFromFile-CSG24iF6.js → transformDataForGraphFromFile-DyP-83Nh.js} +2 -2
  105. package/dist/{transformDataForGraphFromFile-CSG24iF6.js.map → transformDataForGraphFromFile-DyP-83Nh.js.map} +1 -1
  106. package/package.json +4 -4
  107. package/dist/GraphEl-B16EYkko.cjs +0 -2
  108. package/dist/GraphEl-B16EYkko.cjs.map +0 -1
  109. package/dist/GraphEl-ebgfxefq.js.map +0 -1
  110. package/dist/ensureCompleteData-DNKEGRiP.js +0 -102
  111. package/dist/ensureCompleteData-DNKEGRiP.js.map +0 -1
  112. package/dist/ensureCompleteData-I6nYmT8E.cjs +0 -2
  113. package/dist/ensureCompleteData-I6nYmT8E.cjs.map +0 -1
  114. package/dist/sort-BIvMlUH1.js +0 -34
  115. package/dist/sort-BIvMlUH1.js.map +0 -1
  116. package/dist/sort-O96oMZLb.cjs +0 -2
  117. package/dist/sort-O96oMZLb.cjs.map +0 -1
  118. package/dist/transformDataForAggregation-DEU__LUl.js.map +0 -1
  119. package/dist/transformDataForAggregation-XNg0OGYE.cjs +0 -2
  120. package/dist/transformDataForAggregation-XNg0OGYE.cjs.map +0 -1
@@ -1,479 +1,497 @@
1
- import { c as he, j as i, m as ae } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as ne, useState as Lt, useEffect as re } from "react";
3
- import { g as pe, N as ge } from "./getSliderMarks-HIDJ0_Cd.js";
4
- import { p as ye, f as be } from "./parse-DlCRUFh_.js";
5
- import { i as le } from "./index-Bwrro8-q.js";
6
- import { n as ce } from "./numberFormattingFunction-14YCbkN2.js";
7
- import { T as ve } from "./Tooltip-Dj5eVppQ.js";
8
- import { X as me } from "./XTicksAndGridLines-CObVFSm4.js";
9
- import { A as ue } from "./Axis-CRyfcLjc.js";
10
- import { Y as we } from "./YAxesLabels-a57ZRv-0.js";
11
- import { R as de } from "./ReferenceLine-2XCwHXQ4.js";
12
- import { D as je } from "./DetailsModal-0Ry5nXiC.js";
13
- import { b as Ae } from "./band-CyHaVft5.js";
14
- import { a as fe } from "./linear-BwnDd9KF.js";
15
- import { u as Be } from "./use-in-view-Cxa7y1TH.js";
16
- import { m as Ct } from "./proxy-BxkFHwUw.js";
17
- import { A as se } from "./index-BqfRwk1n.js";
18
- import { GraphFooter as Me } from "./GraphFooter.js";
19
- import { GraphHeader as Ce } from "./GraphHeader.js";
20
- import { ColorLegend as Le } from "./ColorLegend.js";
21
- import { Colors as xe } from "./Colors.js";
22
- import { E as ke } from "./EmptyState-BZo1BbAn.js";
23
- import { P as Ve, e as $e } from "./index-D491FEn1.js";
24
- import { c as oe } from "./checkIfNullOrUndefined-DmfiKkNw.js";
25
- import { b as Ne } from "./ensureCompleteData-DNKEGRiP.js";
26
- import { u as Oe } from "./uniqBy-BHy4I8PK.js";
27
- import { a as De, G as Te } from "./GraphContainer-CRqzdKu2.js";
28
- import { s as Se } from "./sort-BIvMlUH1.js";
29
- import { a as Ie } from "./init-BJFW6EwE.js";
30
- function Fe(a) {
31
- const t = he.c(140), {
32
- data: c,
1
+ import { c as ve, j as i, m as le } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as de, useState as Dt, useEffect as ue } from "react";
3
+ import { g as we, N as je } from "./getSliderMarks-HIDJ0_Cd.js";
4
+ import { f as Ae, p as Be } from "./parse-DlCRUFh_.js";
5
+ import { i as fe } from "./index-Bwrro8-q.js";
6
+ import { n as xe } from "./numberFormattingFunction-14YCbkN2.js";
7
+ import { T as Me } from "./Tooltip-Dj5eVppQ.js";
8
+ import { X as he } from "./XTicksAndGridLines-CObVFSm4.js";
9
+ import { A as pe } from "./Axis-CRyfcLjc.js";
10
+ import { Y as Ce } from "./YAxesLabels-a57ZRv-0.js";
11
+ import { R as ge } from "./ReferenceLine-2XCwHXQ4.js";
12
+ import { D as Le } from "./DetailsModal-0Ry5nXiC.js";
13
+ import { b as ke } from "./band-DHUZ2X7J.js";
14
+ import { a as ye } from "./linear-BqltdMeF.js";
15
+ import { u as Ve } from "./use-in-view-Cxa7y1TH.js";
16
+ import { m as Ot } from "./proxy-BxkFHwUw.js";
17
+ import { A as ce } from "./index-BqfRwk1n.js";
18
+ import { GraphFooter as $e } from "./GraphFooter.js";
19
+ import { GraphHeader as Ne } from "./GraphHeader.js";
20
+ import { ColorLegend as Oe } from "./ColorLegend.js";
21
+ import { Colors as be } from "./Colors.js";
22
+ import { E as De } from "./EmptyState-BZo1BbAn.js";
23
+ import { P as Te, e as Se } from "./index-D491FEn1.js";
24
+ import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
25
+ import { c as Fe } from "./ensureCompleteData-DS7gCvVd.js";
26
+ import { a as Ie, G as Ge } from "./GraphContainer-CRqzdKu2.js";
27
+ function Re(a) {
28
+ const t = ve.c(140), {
29
+ data: r,
33
30
  width: A,
34
- height: b,
35
- barColors: r,
36
- centerGap: v,
37
- refValues: u,
38
- maxValue: H,
39
- minValue: at,
40
- showValues: Y,
41
- axisTitles: W,
42
- rightMargin: Gt,
43
- leftMargin: Rt,
44
- topMargin: G,
45
- bottomMargin: Pt,
46
- tooltip: kt,
47
- onSeriesMouseOver: z,
48
- barPadding: Jt,
49
- truncateBy: st,
50
- onSeriesMouseClick: R,
51
- showTicks: ot,
52
- suffix: q,
53
- prefix: U,
54
- resetSelectionOnDoubleClick: Et,
55
- detailsOnClick: L,
56
- styles: o,
31
+ height: v,
32
+ barColors: d,
33
+ centerGap: w,
34
+ refValues: p,
35
+ maxValue: rt,
36
+ minValue: wt,
37
+ showValues: ct,
38
+ axisTitles: mt,
39
+ rightMargin: Ut,
40
+ leftMargin: Jt,
41
+ topMargin: Y,
42
+ bottomMargin: Kt,
43
+ tooltip: Tt,
44
+ onSeriesMouseOver: dt,
45
+ barPadding: St,
46
+ truncateBy: jt,
47
+ onSeriesMouseClick: V,
48
+ showTicks: At,
49
+ suffix: ut,
50
+ prefix: ft,
51
+ resetSelectionOnDoubleClick: Bt,
52
+ detailsOnClick: O,
53
+ styles: l,
57
54
  classNames: s,
58
- noOfTicks: k,
59
- animate: n,
60
- precision: J,
61
- customLayers: V,
62
- minValueLeftBar: $,
63
- minValueRightBar: N,
64
- naLabel: Vt
65
- } = a, Kt = ne(null);
66
- let $t;
67
- t[0] !== n.amount || t[1] !== n.once ? ($t = {
68
- once: n.once,
69
- amount: n.amount
70
- }, t[0] = n.amount, t[1] = n.once, t[2] = $t) : $t = t[2];
71
- const O = Be(Kt, $t), [Nt, K] = Lt(void 0), [C, nt] = Lt(void 0), [Xt, m] = Lt(void 0), [d, Q] = Lt(void 0);
72
- let Ot;
73
- t[3] !== Pt || t[4] !== Rt || t[5] !== Gt || t[6] !== G ? (Ot = {
74
- top: G,
75
- bottom: Pt,
76
- left: Rt,
77
- right: Gt
78
- }, t[3] = Pt, t[4] = Rt, t[5] = Gt, t[6] = G, t[7] = Ot) : Ot = t[7];
79
- const l = Ot, B = A - l.left - l.right, M = b - l.top - l.bottom;
80
- let Z, D, _, P, rt, lt, ct, mt, tt, T, ut, dt, ft, xt;
81
- if (t[8] !== n || t[9] !== r[0] || t[10] !== r[1] || t[11] !== Jt || t[12] !== v || t[13] !== s?.graphObjectValues || t[14] !== s?.xAxis?.gridLines || t[15] !== s?.xAxis?.labels || t[16] !== s?.yAxis?.axis || t[17] !== s?.yAxis?.labels || t[18] !== V || t[19] !== c || t[20] !== L || t[21] !== M || t[22] !== B || t[23] !== b || t[24] !== O || t[25] !== l.bottom || t[26] !== l.left || t[27] !== l.top || t[28] !== H || t[29] !== at || t[30] !== $ || t[31] !== N || t[32] !== C || t[33] !== Vt || t[34] !== k || t[35] !== R || t[36] !== z || t[37] !== J || t[38] !== U || t[39] !== u || t[40] !== Et || t[41] !== ot || t[42] !== Y || t[43] !== o?.graphObjectValues || t[44] !== o?.xAxis?.gridLines || t[45] !== o?.xAxis?.labels || t[46] !== o?.yAxis?.axis || t[47] !== o?.yAxis?.labels || t[48] !== q || t[49] !== G || t[50] !== st || t[51] !== A) {
82
- const Yt = c.map(qe), g = Ae().domain(Yt.map(ze)).range([M, 0]).paddingInner(Jt), h = fe().domain([at, H]).range([0, (B - v) / 2]).nice(), p = h.ticks(k), f = fe().domain([at, H]).range([(B - v) / 2, 0]).nice(), Wt = f.ticks(k);
83
- _ = Ct.svg, ft = `${A}px`, xt = `${b}px`, P = `0 0 ${A} ${b}`, rt = "ltr", lt = Kt, tt = `translate(${l.left},${l.top})`, t[66] !== V ? (T = V.filter(We).map(Ye), t[66] = V, t[67] = T) : T = t[67];
84
- const St = s?.yAxis?.axis;
85
- let It;
86
- t[68] !== St ? (It = {
87
- axis: St
88
- }, t[68] = St, t[69] = It) : It = t[69];
89
- const At = o?.yAxis?.axis;
90
- let it;
91
- t[70] !== At ? (it = {
92
- axis: At
93
- }, t[70] = At, t[71] = it) : it = t[71], ut = /* @__PURE__ */ i.jsxs("g", { transform: "translate(0,0)", children: [
94
- ot ? /* @__PURE__ */ i.jsx(me, { values: Wt.filter(He), x: Wt.filter(Xe).map((e) => f(e)), y1: 0 - G, y2: M + l.bottom, styles: {
95
- gridLines: o?.xAxis?.gridLines,
96
- labels: o?.xAxis?.labels
55
+ noOfTicks: B,
56
+ animate: m,
57
+ precision: xt,
58
+ customLayers: D,
59
+ minValueLeftBar: T,
60
+ minValueRightBar: S,
61
+ naLabel: Ft
62
+ } = a, ae = de(null);
63
+ let It;
64
+ t[0] !== m.amount || t[1] !== m.once ? (It = {
65
+ once: m.once,
66
+ amount: m.amount
67
+ }, t[0] = m.amount, t[1] = m.once, t[2] = It) : It = t[2];
68
+ const M = Ve(ae, It), [Gt, ht] = Dt(void 0), [$, Mt] = Dt(void 0), [Ct, u] = Dt(void 0), [x, pt] = Dt(void 0);
69
+ let Rt;
70
+ t[3] !== Kt || t[4] !== Jt || t[5] !== Ut || t[6] !== Y ? (Rt = {
71
+ top: Y,
72
+ bottom: Kt,
73
+ left: Jt,
74
+ right: Ut
75
+ }, t[3] = Kt, t[4] = Jt, t[5] = Ut, t[6] = Y, t[7] = Rt) : Rt = t[7];
76
+ const f = Rt, C = A - f.left - f.right, j = v - f.top - f.bottom;
77
+ let gt, F, I, W, z, q, U, J, G, L, K, Q, Z, _;
78
+ if (t[8] !== m || t[9] !== d[0] || t[10] !== d[1] || t[11] !== St || t[12] !== w || t[13] !== s?.graphObjectValues || t[14] !== s?.xAxis?.gridLines || t[15] !== s?.xAxis?.labels || t[16] !== s?.yAxis?.axis || t[17] !== s?.yAxis?.labels || t[18] !== D || t[19] !== r || t[20] !== O || t[21] !== j || t[22] !== C || t[23] !== v || t[24] !== M || t[25] !== f.bottom || t[26] !== f.left || t[27] !== f.top || t[28] !== rt || t[29] !== wt || t[30] !== T || t[31] !== S || t[32] !== $ || t[33] !== Ft || t[34] !== B || t[35] !== V || t[36] !== dt || t[37] !== xt || t[38] !== ft || t[39] !== p || t[40] !== Bt || t[41] !== At || t[42] !== ct || t[43] !== l?.graphObjectValues || t[44] !== l?.xAxis?.gridLines || t[45] !== l?.xAxis?.labels || t[46] !== l?.yAxis?.axis || t[47] !== l?.yAxis?.labels || t[48] !== ut || t[49] !== Y || t[50] !== jt || t[51] !== A) {
79
+ const yt = r.map(Je), N = ke().domain(yt.map(Ue)).range([j, 0]).paddingInner(St), n = ye().domain([wt, rt]).range([0, (C - w) / 2]).nice(), se = n.ticks(B), h = ye().domain([wt, rt]).range([(C - w) / 2, 0]).nice(), c = h.ticks(B);
80
+ I = Ot.svg, Z = `${A}px`, _ = `${v}px`, W = `0 0 ${A} ${v}`, z = "ltr", q = ae, G = `translate(${f.left},${f.top})`, t[66] !== D ? (L = D.filter(qe).map(ze), t[66] = D, t[67] = L) : L = t[67];
81
+ const k = s?.yAxis?.axis;
82
+ let Vt;
83
+ t[68] !== k ? (Vt = {
84
+ axis: k
85
+ }, t[68] = k, t[69] = Vt) : Vt = t[69];
86
+ const Wt = l?.yAxis?.axis;
87
+ let zt;
88
+ t[70] !== Wt ? (zt = {
89
+ axis: Wt
90
+ }, t[70] = Wt, t[71] = zt) : zt = t[71], K = /* @__PURE__ */ i.jsxs("g", { transform: "translate(0,0)", children: [
91
+ At ? /* @__PURE__ */ i.jsx(he, { values: c.filter(We), x: c.filter(Ye).map((e) => h(e)), y1: 0 - Y, y2: j + f.bottom, styles: {
92
+ gridLines: l?.xAxis?.gridLines,
93
+ labels: l?.xAxis?.labels
97
94
  }, classNames: {
98
95
  gridLines: s?.xAxis?.gridLines,
99
96
  labels: s?.xAxis?.labels
100
- }, suffix: q, prefix: U, labelType: "secondary", showGridLines: !0, leftLabel: !0, precision: J }) : null,
101
- /* @__PURE__ */ i.jsxs(se, { children: [
102
- Yt.map((e, y) => /* @__PURE__ */ i.jsxs(Ct.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (w) => {
103
- K(e), Q(w.clientY), m(w.clientX), z?.(e);
97
+ }, suffix: ut, prefix: ft, labelType: "secondary", showGridLines: !0, leftLabel: !0, precision: xt }) : null,
98
+ /* @__PURE__ */ i.jsxs(ce, { children: [
99
+ yt.map((e, g) => /* @__PURE__ */ i.jsxs(Ot.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (b) => {
100
+ ht(e), pt(b.clientY), u(b.clientX), dt?.(e);
104
101
  }, onClick: () => {
105
- (R || L) && (le(C, e) && Et ? (nt(void 0), R?.(void 0)) : (nt(e), R?.(e)));
106
- }, onMouseMove: (w) => {
107
- K(e), Q(w.clientY), m(w.clientX);
102
+ (V || O) && (fe($, e) && Bt ? (Mt(void 0), V?.(void 0)) : (Mt(e), V?.(e)));
103
+ }, onMouseMove: (b) => {
104
+ ht(e), pt(b.clientY), u(b.clientX);
108
105
  }, onMouseLeave: () => {
109
- K(void 0), m(void 0), Q(void 0), z?.(void 0);
106
+ ht(void 0), u(void 0), pt(void 0), dt?.(void 0);
110
107
  }, children: [
111
- e.leftBar ? /* @__PURE__ */ i.jsx(Ct.rect, { y: g(`${y}`), style: {
112
- fill: r[0]
113
- }, height: g.bandwidth(), variants: {
108
+ e.leftBar ? /* @__PURE__ */ i.jsx(Ot.rect, { y: N(`${g}`), style: {
109
+ fill: d[0]
110
+ }, height: N.bandwidth(), variants: {
114
111
  initial: {
115
- x: f(0),
112
+ x: h(0),
116
113
  width: 0
117
114
  },
118
115
  whileInView: {
119
- x: e.leftBar < 0 ? f(0) : f(e.leftBar),
120
- width: e.leftBar < 0 ? f(e.leftBar) - f(0) : f(0) - f(e.leftBar),
116
+ x: e.leftBar < 0 ? h(0) : h(e.leftBar),
117
+ width: e.leftBar < 0 ? h(e.leftBar) - h(0) : h(0) - h(e.leftBar),
121
118
  transition: {
122
- duration: n.duration
119
+ duration: m.duration
123
120
  }
124
121
  }
125
- }, initial: "initial", animate: O ? "whileInView" : "initial", exit: {
126
- x: f(0),
122
+ }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
123
+ x: h(0),
127
124
  width: 0,
128
125
  transition: {
129
- duration: n.duration
126
+ duration: m.duration
130
127
  }
131
128
  } }) : null,
132
- Y ? /* @__PURE__ */ i.jsx(Ct.text, { y: g(`${y}`) + g.bandwidth() / 2, style: {
129
+ ct ? /* @__PURE__ */ i.jsx(Ot.text, { y: N(`${g}`) + N.bandwidth() / 2, style: {
133
130
  textAnchor: e.rightBar && e.rightBar > 0 ? "end" : "start",
134
- ...o?.graphObjectValues || {}
135
- }, dx: e.rightBar && e.rightBar > 0 ? -5 : 5, dy: "0.33em", className: ae("graph-value text-sm", s?.graphObjectValues), exit: {
131
+ ...l?.graphObjectValues || {}
132
+ }, dx: e.rightBar && e.rightBar > 0 ? -5 : 5, dy: "0.33em", className: le("graph-value text-sm", s?.graphObjectValues), exit: {
136
133
  opacity: 0,
137
134
  transition: {
138
- duration: n.duration
135
+ duration: m.duration
139
136
  }
140
137
  }, variants: {
141
138
  initial: {
142
- x: f(0),
139
+ x: h(0),
143
140
  opacity: 0,
144
- fill: r[0]
141
+ fill: d[0]
145
142
  },
146
143
  whileInView: {
147
- x: e.leftBar ? f(e.leftBar) : f($ < 0 ? 0 : $),
144
+ x: e.leftBar ? h(e.leftBar) : h(T < 0 ? 0 : T),
148
145
  opacity: 1,
149
- fill: r[0],
146
+ fill: d[0],
150
147
  transition: {
151
- duration: n.duration
148
+ duration: m.duration
152
149
  }
153
150
  }
154
- }, initial: "initial", animate: O ? "whileInView" : "initial", children: ce(e.rightBar, Vt, J, U, q) }) : null
151
+ }, initial: "initial", animate: M ? "whileInView" : "initial", children: xe(e.rightBar, Ft, xt, ft, ut) }) : null
155
152
  ] }, e.label)),
156
- /* @__PURE__ */ i.jsx(ue, { y1: -2.5, y2: M + l.bottom, x1: f($ < 0 ? 0 : $), x2: f($ < 0 ? 0 : $), classNames: It, styles: it }),
157
- u ? /* @__PURE__ */ i.jsx(i.Fragment, { children: u.map((e, y) => /* @__PURE__ */ i.jsx(de, { text: e.text, color: e.color, x: f(e.value), y1: 0 - l.top, y2: M + l.bottom, textSide: "left", classNames: e.classNames, styles: e.styles, animate: n, isInView: O }, y)) }) : null
153
+ /* @__PURE__ */ i.jsx(pe, { y1: -2.5, y2: j + f.bottom, x1: h(T < 0 ? 0 : T), x2: h(T < 0 ? 0 : T), classNames: Vt, styles: zt }),
154
+ p ? /* @__PURE__ */ i.jsx(i.Fragment, { children: p.map((e, g) => /* @__PURE__ */ i.jsx(ge, { text: e.text, color: e.color, x: h(e.value), y1: 0 - f.top, y2: j + f.bottom, textSide: "left", classNames: e.classNames, styles: e.styles, animate: m, isInView: M }, g)) }) : null
158
155
  ] })
159
156
  ] });
160
- const zt = s?.yAxis?.axis;
161
- let Bt;
162
- t[72] !== zt ? (Bt = {
163
- axis: zt
164
- }, t[72] = zt, t[73] = Bt) : Bt = t[73];
165
- const Ft = o?.yAxis?.axis;
166
- let Mt;
167
- t[74] !== Ft ? (Mt = {
168
- axis: Ft
169
- }, t[74] = Ft, t[75] = Mt) : Mt = t[75], dt = /* @__PURE__ */ i.jsxs("g", { transform: `translate(${(B + v) / 2},0)`, children: [
170
- ot ? /* @__PURE__ */ i.jsx(me, { values: p.filter(Ee), x: p.filter(Pe).map((e) => h(e)), y1: 0 - G, y2: M + l.bottom, styles: {
171
- gridLines: o?.xAxis?.gridLines,
172
- labels: o?.xAxis?.labels
157
+ const $t = s?.yAxis?.axis;
158
+ let bt;
159
+ t[72] !== $t ? (bt = {
160
+ axis: $t
161
+ }, t[72] = $t, t[73] = bt) : bt = t[73];
162
+ const Nt = l?.yAxis?.axis;
163
+ let vt;
164
+ t[74] !== Nt ? (vt = {
165
+ axis: Nt
166
+ }, t[74] = Nt, t[75] = vt) : vt = t[75], Q = /* @__PURE__ */ i.jsxs("g", { transform: `translate(${(C + w) / 2},0)`, children: [
167
+ At ? /* @__PURE__ */ i.jsx(he, { values: se.filter(He), x: se.filter(Xe).map((e) => n(e)), y1: 0 - Y, y2: j + f.bottom, styles: {
168
+ gridLines: l?.xAxis?.gridLines,
169
+ labels: l?.xAxis?.labels
173
170
  }, classNames: {
174
171
  gridLines: s?.xAxis?.gridLines,
175
172
  labels: s?.xAxis?.labels
176
- }, suffix: q, prefix: U, labelType: "secondary", showGridLines: !0, precision: J }) : null,
177
- /* @__PURE__ */ i.jsxs(se, { children: [
178
- Yt.map((e, y) => /* @__PURE__ */ i.jsxs(Ct.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (w) => {
179
- K(e), Q(w.clientY), m(w.clientX), z?.(e);
173
+ }, suffix: ut, prefix: ft, labelType: "secondary", showGridLines: !0, precision: xt }) : null,
174
+ /* @__PURE__ */ i.jsxs(ce, { children: [
175
+ yt.map((e, g) => /* @__PURE__ */ i.jsxs(Ot.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (b) => {
176
+ ht(e), pt(b.clientY), u(b.clientX), dt?.(e);
180
177
  }, onClick: () => {
181
- (R || L) && (le(C, e) && Et ? (nt(void 0), R?.(void 0)) : (nt(e), R?.(e)));
182
- }, onMouseMove: (w) => {
183
- K(e), Q(w.clientY), m(w.clientX);
178
+ (V || O) && (fe($, e) && Bt ? (Mt(void 0), V?.(void 0)) : (Mt(e), V?.(e)));
179
+ }, onMouseMove: (b) => {
180
+ ht(e), pt(b.clientY), u(b.clientX);
184
181
  }, onMouseLeave: () => {
185
- K(void 0), m(void 0), Q(void 0), z?.(void 0);
182
+ ht(void 0), u(void 0), pt(void 0), dt?.(void 0);
186
183
  }, children: [
187
- e.rightBar ? /* @__PURE__ */ i.jsx(Ct.rect, { y: g(`${y}`), style: {
188
- fill: r[1]
189
- }, height: g.bandwidth(), exit: {
190
- x: h(0),
184
+ e.rightBar ? /* @__PURE__ */ i.jsx(Ot.rect, { y: N(`${g}`), style: {
185
+ fill: d[1]
186
+ }, height: N.bandwidth(), exit: {
187
+ x: n(0),
191
188
  width: 0,
192
189
  transition: {
193
- duration: n.duration
190
+ duration: m.duration
194
191
  }
195
192
  }, variants: {
196
193
  initial: {
197
- x: h(0),
194
+ x: n(0),
198
195
  width: 0
199
196
  },
200
197
  whileInView: {
201
- x: e.rightBar >= 0 ? h(0) : h(e.rightBar),
202
- width: e.rightBar >= 0 ? h(e.rightBar) - h(0) : h(0) - h(e.rightBar),
198
+ x: e.rightBar >= 0 ? n(0) : n(e.rightBar),
199
+ width: e.rightBar >= 0 ? n(e.rightBar) - n(0) : n(0) - n(e.rightBar),
203
200
  transition: {
204
- duration: n.duration
201
+ duration: m.duration
205
202
  }
206
203
  }
207
- }, initial: "initial", animate: O ? "whileInView" : "initial" }) : null,
208
- Y ? /* @__PURE__ */ i.jsx(Ct.text, { y: g(`${y}`) + g.bandwidth() / 2, style: {
204
+ }, initial: "initial", animate: M ? "whileInView" : "initial" }) : null,
205
+ ct ? /* @__PURE__ */ i.jsx(Ot.text, { y: N(`${g}`) + N.bandwidth() / 2, style: {
209
206
  textAnchor: e.rightBar && e.rightBar < 0 ? "end" : "start",
210
- ...o?.graphObjectValues || {}
211
- }, className: ae("graph-value text-sm", s?.graphObjectValues), dx: e.rightBar && e.rightBar < 0 ? -5 : 5, dy: "0.33em", exit: {
207
+ ...l?.graphObjectValues || {}
208
+ }, className: le("graph-value text-sm", s?.graphObjectValues), dx: e.rightBar && e.rightBar < 0 ? -5 : 5, dy: "0.33em", exit: {
212
209
  opacity: 0,
213
210
  transition: {
214
- duration: n.duration
211
+ duration: m.duration
215
212
  }
216
213
  }, variants: {
217
214
  initial: {
218
- x: h(0),
215
+ x: n(0),
219
216
  opacity: 0,
220
- fill: r[1]
217
+ fill: d[1]
221
218
  },
222
219
  whileInView: {
223
- x: e.rightBar ? h(e.rightBar) : h(N < 0 ? 0 : N),
220
+ x: e.rightBar ? n(e.rightBar) : n(S < 0 ? 0 : S),
224
221
  opacity: 1,
225
- fill: r[1],
222
+ fill: d[1],
226
223
  transition: {
227
- duration: n.duration
224
+ duration: m.duration
228
225
  }
229
226
  }
230
- }, initial: "initial", animate: O ? "whileInView" : "initial", children: ce(e.rightBar, Vt, J, U, q) }) : null
231
- ] }, y)),
232
- /* @__PURE__ */ i.jsx(ue, { y1: -2.5, y2: M + l.bottom, x1: h(N < 0 ? 0 : N), x2: h(N < 0 ? 0 : N), classNames: Bt, styles: Mt }),
233
- u ? /* @__PURE__ */ i.jsx(i.Fragment, { children: u.map((e, y) => /* @__PURE__ */ i.jsx(de, { text: e.text, color: e.color, x: h(e.value), y1: 0 - l.top, y2: M + l.bottom, textSide: "right", classNames: e.classNames, styles: e.styles, animate: n, isInView: O }, y)) }) : null
227
+ }, initial: "initial", animate: M ? "whileInView" : "initial", children: xe(e.rightBar, Ft, xt, ft, ut) }) : null
228
+ ] }, g)),
229
+ /* @__PURE__ */ i.jsx(pe, { y1: -2.5, y2: j + f.bottom, x1: n(S < 0 ? 0 : S), x2: n(S < 0 ? 0 : S), classNames: bt, styles: vt }),
230
+ p ? /* @__PURE__ */ i.jsx(i.Fragment, { children: p.map((e, g) => /* @__PURE__ */ i.jsx(ge, { text: e.text, color: e.color, x: n(e.value), y1: 0 - f.top, y2: j + f.bottom, textSide: "right", classNames: e.classNames, styles: e.styles, animate: m, isInView: M }, g)) }) : null
234
231
  ] })
235
- ] }), D = se, Z = Ct.g, ct = `translate(${B / 2},0)`, mt = Yt.map((e, y) => /* @__PURE__ */ i.jsx(we, { value: `${e.label}`.length < st ? `${e.label}` : `${`${e.label}`.substring(0, st)}...`, y: g(`${e.id}`), x: 0 - v / 2, width: v, height: g.bandwidth(), alignment: "center", style: o?.yAxis?.labels, className: s?.yAxis?.labels, animate: n, isInView: O }, y)), t[8] = n, t[9] = r[0], t[10] = r[1], t[11] = Jt, t[12] = v, t[13] = s?.graphObjectValues, t[14] = s?.xAxis?.gridLines, t[15] = s?.xAxis?.labels, t[16] = s?.yAxis?.axis, t[17] = s?.yAxis?.labels, t[18] = V, t[19] = c, t[20] = L, t[21] = M, t[22] = B, t[23] = b, t[24] = O, t[25] = l.bottom, t[26] = l.left, t[27] = l.top, t[28] = H, t[29] = at, t[30] = $, t[31] = N, t[32] = C, t[33] = Vt, t[34] = k, t[35] = R, t[36] = z, t[37] = J, t[38] = U, t[39] = u, t[40] = Et, t[41] = ot, t[42] = Y, t[43] = o?.graphObjectValues, t[44] = o?.xAxis?.gridLines, t[45] = o?.xAxis?.labels, t[46] = o?.yAxis?.axis, t[47] = o?.yAxis?.labels, t[48] = q, t[49] = G, t[50] = st, t[51] = A, t[52] = Z, t[53] = D, t[54] = _, t[55] = P, t[56] = rt, t[57] = lt, t[58] = ct, t[59] = mt, t[60] = tt, t[61] = T, t[62] = ut, t[63] = dt, t[64] = ft, t[65] = xt;
232
+ ] }), F = ce, gt = Ot.g, U = `translate(${C / 2},0)`, J = yt.map((e, g) => /* @__PURE__ */ i.jsx(Ce, { value: `${e.label}`.length < jt ? `${e.label}` : `${`${e.label}`.substring(0, jt)}...`, y: N(`${e.id}`), x: 0 - w / 2, width: w, height: N.bandwidth(), alignment: "center", style: l?.yAxis?.labels, className: s?.yAxis?.labels, animate: m, isInView: M }, g)), t[8] = m, t[9] = d[0], t[10] = d[1], t[11] = St, t[12] = w, t[13] = s?.graphObjectValues, t[14] = s?.xAxis?.gridLines, t[15] = s?.xAxis?.labels, t[16] = s?.yAxis?.axis, t[17] = s?.yAxis?.labels, t[18] = D, t[19] = r, t[20] = O, t[21] = j, t[22] = C, t[23] = v, t[24] = M, t[25] = f.bottom, t[26] = f.left, t[27] = f.top, t[28] = rt, t[29] = wt, t[30] = T, t[31] = S, t[32] = $, t[33] = Ft, t[34] = B, t[35] = V, t[36] = dt, t[37] = xt, t[38] = ft, t[39] = p, t[40] = Bt, t[41] = At, t[42] = ct, t[43] = l?.graphObjectValues, t[44] = l?.xAxis?.gridLines, t[45] = l?.xAxis?.labels, t[46] = l?.yAxis?.axis, t[47] = l?.yAxis?.labels, t[48] = ut, t[49] = Y, t[50] = jt, t[51] = A, t[52] = gt, t[53] = F, t[54] = I, t[55] = W, t[56] = z, t[57] = q, t[58] = U, t[59] = J, t[60] = G, t[61] = L, t[62] = K, t[63] = Q, t[64] = Z, t[65] = _;
236
233
  } else
237
- Z = t[52], D = t[53], _ = t[54], P = t[55], rt = t[56], lt = t[57], ct = t[58], mt = t[59], tt = t[60], T = t[61], ut = t[62], dt = t[63], ft = t[64], xt = t[65];
238
- let S;
239
- t[76] !== Z || t[77] !== ct || t[78] !== mt ? (S = /* @__PURE__ */ i.jsx(Z, { transform: ct, children: mt }), t[76] = Z, t[77] = ct, t[78] = mt, t[79] = S) : S = t[79];
240
- let ht;
241
- t[80] !== D || t[81] !== S ? (ht = /* @__PURE__ */ i.jsx(D, { children: S }), t[80] = D, t[81] = S, t[82] = ht) : ht = t[82];
242
- const Qt = `translate(0,${M})`, Zt = o?.yAxis?.title;
243
- let pt;
244
- t[83] !== r[0] || t[84] !== Zt ? (pt = {
245
- fill: r[0],
234
+ gt = t[52], F = t[53], I = t[54], W = t[55], z = t[56], q = t[57], U = t[58], J = t[59], G = t[60], L = t[61], K = t[62], Q = t[63], Z = t[64], _ = t[65];
235
+ let R;
236
+ t[76] !== gt || t[77] !== U || t[78] !== J ? (R = /* @__PURE__ */ i.jsx(gt, { transform: U, children: J }), t[76] = gt, t[77] = U, t[78] = J, t[79] = R) : R = t[79];
237
+ let tt;
238
+ t[80] !== F || t[81] !== R ? (tt = /* @__PURE__ */ i.jsx(F, { children: R }), t[80] = F, t[81] = R, t[82] = tt) : tt = t[82];
239
+ const Pt = `translate(0,${j})`, Et = l?.yAxis?.title;
240
+ let et;
241
+ t[83] !== d[0] || t[84] !== Et ? (et = {
242
+ fill: d[0],
246
243
  textAnchor: "end",
247
- ...Zt
248
- }, t[83] = r[0], t[84] = Zt, t[85] = pt) : pt = t[85];
249
- const _t = s?.yAxis?.title;
250
- let I;
251
- t[86] !== _t ? (I = ae("text-base", _t), t[86] = _t, t[87] = I) : I = t[87];
252
- const gt = B / 2 - v / 2;
244
+ ...Et
245
+ }, t[83] = d[0], t[84] = Et, t[85] = et) : et = t[85];
246
+ const Xt = s?.yAxis?.title;
247
+ let P;
248
+ t[86] !== Xt ? (P = le("text-base", Xt), t[86] = Xt, t[87] = P) : P = t[87];
249
+ const Lt = C / 2 - w / 2;
250
+ let it;
251
+ t[88] !== mt[0] || t[89] !== et || t[90] !== P || t[91] !== Lt ? (it = /* @__PURE__ */ i.jsx("text", { style: et, className: P, x: Lt, y: 0, dx: -5, dy: 20, children: mt[0] }), t[88] = mt[0], t[89] = et, t[90] = P, t[91] = Lt, t[92] = it) : it = t[92];
252
+ const Ht = l?.yAxis?.title;
253
+ let at;
254
+ t[93] !== d[1] || t[94] !== Ht ? (at = {
255
+ fill: d[1],
256
+ textAnchor: "start",
257
+ ...Ht
258
+ }, t[93] = d[1], t[94] = Ht, t[95] = at) : at = t[95];
259
+ const Yt = s?.yAxis?.title;
260
+ let st;
261
+ t[96] !== Yt ? (st = le("text-base", Yt), t[96] = Yt, t[97] = st) : st = t[97];
262
+ const kt = C / 2 + w / 2;
263
+ let ot;
264
+ t[98] !== mt[1] || t[99] !== at || t[100] !== st || t[101] !== kt ? (ot = /* @__PURE__ */ i.jsx("text", { style: at, className: st, x: kt, y: 0, dx: 5, dy: 20, children: mt[1] }), t[98] = mt[1], t[99] = at, t[100] = st, t[101] = kt, t[102] = ot) : ot = t[102];
253
265
  let E;
254
- t[88] !== W[0] || t[89] !== pt || t[90] !== I || t[91] !== gt ? (E = /* @__PURE__ */ i.jsx("text", { style: pt, className: I, x: gt, y: 0, dx: -5, dy: 20, children: W[0] }), t[88] = W[0], t[89] = pt, t[90] = I, t[91] = gt, t[92] = E) : E = t[92];
255
- const Dt = o?.yAxis?.title;
266
+ t[103] !== Pt || t[104] !== it || t[105] !== ot ? (E = /* @__PURE__ */ i.jsxs("g", { transform: Pt, children: [
267
+ it,
268
+ ot
269
+ ] }), t[103] = Pt, t[104] = it, t[105] = ot, t[106] = E) : E = t[106];
270
+ let lt;
271
+ t[107] !== D ? (lt = D.filter(Ee).map(Pe), t[107] = D, t[108] = lt) : lt = t[108];
256
272
  let X;
257
- t[93] !== r[1] || t[94] !== Dt ? (X = {
258
- fill: r[1],
259
- textAnchor: "start",
260
- ...Dt
261
- }, t[93] = r[1], t[94] = Dt, t[95] = X) : X = t[95];
262
- const te = s?.yAxis?.title;
263
- let yt;
264
- t[96] !== te ? (yt = ae("text-base", te), t[96] = te, t[97] = yt) : yt = t[97];
265
- const Ht = B / 2 + v / 2;
266
- let bt;
267
- t[98] !== W[1] || t[99] !== X || t[100] !== yt || t[101] !== Ht ? (bt = /* @__PURE__ */ i.jsx("text", { style: X, className: yt, x: Ht, y: 0, dx: 5, dy: 20, children: W[1] }), t[98] = W[1], t[99] = X, t[100] = yt, t[101] = Ht, t[102] = bt) : bt = t[102];
268
- let F;
269
- t[103] !== Qt || t[104] !== E || t[105] !== bt ? (F = /* @__PURE__ */ i.jsxs("g", { transform: Qt, children: [
273
+ t[109] !== tt || t[110] !== E || t[111] !== lt || t[112] !== G || t[113] !== L || t[114] !== K || t[115] !== Q ? (X = /* @__PURE__ */ i.jsxs("g", { transform: G, children: [
274
+ L,
275
+ K,
276
+ Q,
277
+ tt,
270
278
  E,
271
- bt
272
- ] }), t[103] = Qt, t[104] = E, t[105] = bt, t[106] = F) : F = t[106];
273
- let vt;
274
- t[107] !== V ? (vt = V.filter(Re).map(Ge), t[107] = V, t[108] = vt) : vt = t[108];
275
- let x;
276
- t[109] !== ht || t[110] !== F || t[111] !== vt || t[112] !== tt || t[113] !== T || t[114] !== ut || t[115] !== dt ? (x = /* @__PURE__ */ i.jsxs("g", { transform: tt, children: [
277
- T,
278
- ut,
279
- dt,
280
- ht,
281
- F,
282
- vt
283
- ] }), t[109] = ht, t[110] = F, t[111] = vt, t[112] = tt, t[113] = T, t[114] = ut, t[115] = dt, t[116] = x) : x = t[116];
284
- let wt;
285
- t[117] !== _ || t[118] !== P || t[119] !== rt || t[120] !== lt || t[121] !== x || t[122] !== ft || t[123] !== xt ? (wt = /* @__PURE__ */ i.jsx(_, { width: ft, height: xt, viewBox: P, direction: rt, ref: lt, children: x }), t[117] = _, t[118] = P, t[119] = rt, t[120] = lt, t[121] = x, t[122] = ft, t[123] = xt, t[124] = wt) : wt = t[124];
286
- let et;
287
- t[125] !== s?.tooltip || t[126] !== Xt || t[127] !== d || t[128] !== Nt || t[129] !== o?.tooltip || t[130] !== kt ? (et = Nt && kt && Xt && d ? /* @__PURE__ */ i.jsx(ve, { data: Nt, body: kt, xPos: Xt, yPos: d, backgroundStyle: o?.tooltip, className: s?.tooltip }) : null, t[125] = s?.tooltip, t[126] = Xt, t[127] = d, t[128] = Nt, t[129] = o?.tooltip, t[130] = kt, t[131] = et) : et = t[131];
288
- let jt;
289
- t[132] !== s?.modal || t[133] !== L || t[134] !== C ? (jt = L && C !== void 0 ? /* @__PURE__ */ i.jsx(je, { body: L, data: C, setData: nt, className: s?.modal }) : null, t[132] = s?.modal, t[133] = L, t[134] = C, t[135] = jt) : jt = t[135];
290
- let Tt;
291
- return t[136] !== wt || t[137] !== et || t[138] !== jt ? (Tt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
292
- wt,
293
- et,
294
- jt
295
- ] }), t[136] = wt, t[137] = et, t[138] = jt, t[139] = Tt) : Tt = t[139], Tt;
279
+ lt
280
+ ] }), t[109] = tt, t[110] = E, t[111] = lt, t[112] = G, t[113] = L, t[114] = K, t[115] = Q, t[116] = X) : X = t[116];
281
+ let o;
282
+ t[117] !== I || t[118] !== W || t[119] !== z || t[120] !== q || t[121] !== X || t[122] !== Z || t[123] !== _ ? (o = /* @__PURE__ */ i.jsx(I, { width: Z, height: _, viewBox: W, direction: z, ref: q, children: X }), t[117] = I, t[118] = W, t[119] = z, t[120] = q, t[121] = X, t[122] = Z, t[123] = _, t[124] = o) : o = t[124];
283
+ let nt;
284
+ t[125] !== s?.tooltip || t[126] !== Ct || t[127] !== x || t[128] !== Gt || t[129] !== l?.tooltip || t[130] !== Tt ? (nt = Gt && Tt && Ct && x ? /* @__PURE__ */ i.jsx(Me, { data: Gt, body: Tt, xPos: Ct, yPos: x, backgroundStyle: l?.tooltip, className: s?.tooltip }) : null, t[125] = s?.tooltip, t[126] = Ct, t[127] = x, t[128] = Gt, t[129] = l?.tooltip, t[130] = Tt, t[131] = nt) : nt = t[131];
285
+ let H;
286
+ t[132] !== s?.modal || t[133] !== O || t[134] !== $ ? (H = O && $ !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: O, data: $, setData: Mt, className: s?.modal }) : null, t[132] = s?.modal, t[133] = O, t[134] = $, t[135] = H) : H = t[135];
287
+ let Qt;
288
+ return t[136] !== o || t[137] !== nt || t[138] !== H ? (Qt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
289
+ o,
290
+ nt,
291
+ H
292
+ ] }), t[136] = o, t[137] = nt, t[138] = H, t[139] = Qt) : Qt = t[139], Qt;
296
293
  }
297
- function Ge(a) {
294
+ function Pe(a) {
298
295
  return a.layer;
299
296
  }
300
- function Re(a) {
297
+ function Ee(a) {
301
298
  return a.position === "after";
302
299
  }
303
- function Pe(a) {
300
+ function Xe(a) {
304
301
  return a !== 0;
305
302
  }
306
- function Ee(a) {
303
+ function He(a) {
307
304
  return a !== 0;
308
305
  }
309
- function Xe(a) {
306
+ function Ye(a) {
310
307
  return a !== 0;
311
308
  }
312
- function He(a) {
309
+ function We(a) {
313
310
  return a !== 0;
314
311
  }
315
- function Ye(a) {
312
+ function ze(a) {
316
313
  return a.layer;
317
314
  }
318
- function We(a) {
315
+ function qe(a) {
319
316
  return a.position === "before";
320
317
  }
321
- function ze(a) {
318
+ function Ue(a) {
322
319
  return `${a.id}`;
323
320
  }
324
- function qe(a, t) {
321
+ function Je(a, t) {
325
322
  return {
326
323
  ...a,
327
324
  id: `${t}`
328
325
  };
329
326
  }
330
- function Ut(a, t, c, A) {
331
- const b = a.map((u) => u[t]).filter((u) => !oe(u)), r = oe(c) ? Math.min(...b) >= 0 ? 0 : Math.min(...b) : c, v = oe(A) ? Math.max(...b) < 0 ? 0 : Math.max(...b) : A;
327
+ function ie(a, t, r, A) {
328
+ const v = a.map((p) => p[t]).filter((p) => !me(p)), d = me(r) ? Math.min(...v) >= 0 ? 0 : Math.min(...v) : r, w = me(A) ? Math.max(...v) < 0 ? 0 : Math.max(...v) : A;
332
329
  return {
333
- min: r,
334
- max: v
330
+ min: d,
331
+ max: w
335
332
  };
336
333
  }
337
334
  function Vi(a) {
338
- const t = he.c(45), {
339
- data: c,
335
+ const t = ve.c(106), {
336
+ data: r,
340
337
  graphTitle: A,
341
- sources: b,
342
- graphDescription: r,
343
- height: v,
344
- width: u,
345
- footNote: H,
346
- padding: at,
347
- barColors: Y,
348
- backgroundColor: W,
349
- leftMargin: Gt,
350
- rightMargin: Rt,
351
- topMargin: G,
352
- bottomMargin: Pt,
353
- rightBarTitle: kt,
354
- leftBarTitle: z,
355
- tooltip: Jt,
356
- relativeHeight: st,
357
- onSeriesMouseOver: R,
358
- graphID: ot,
359
- barPadding: q,
360
- truncateBy: U,
361
- onSeriesMouseClick: Et,
362
- centerGap: L,
363
- showValues: o,
338
+ sources: v,
339
+ graphDescription: d,
340
+ height: w,
341
+ width: p,
342
+ footNote: rt,
343
+ padding: wt,
344
+ barColors: ct,
345
+ backgroundColor: mt,
346
+ leftMargin: Ut,
347
+ rightMargin: Jt,
348
+ topMargin: Y,
349
+ bottomMargin: Kt,
350
+ rightBarTitle: Tt,
351
+ leftBarTitle: dt,
352
+ tooltip: St,
353
+ relativeHeight: jt,
354
+ onSeriesMouseOver: V,
355
+ graphID: At,
356
+ barPadding: ut,
357
+ truncateBy: ft,
358
+ onSeriesMouseClick: Bt,
359
+ centerGap: O,
360
+ showValues: l,
364
361
  maxValue: s,
365
- minValue: k,
366
- refValues: n,
367
- suffix: J,
368
- prefix: V,
369
- showTicks: $,
370
- showColorScale: N,
371
- graphDownload: Vt,
372
- dataDownload: Kt,
373
- language: $t,
374
- colorLegendTitle: O,
375
- minHeight: Nt,
376
- theme: K,
377
- ariaLabel: C,
378
- resetSelectionOnDoubleClick: nt,
379
- detailsOnClick: Xt,
380
- styles: m,
381
- classNames: d,
382
- noOfTicks: Q,
383
- animate: Ot,
384
- precision: l,
385
- customLayers: B,
386
- timeline: M,
387
- naLabel: Z
362
+ minValue: B,
363
+ refValues: m,
364
+ suffix: xt,
365
+ prefix: D,
366
+ showTicks: T,
367
+ showColorScale: S,
368
+ graphDownload: Ft,
369
+ dataDownload: ae,
370
+ language: It,
371
+ colorLegendTitle: M,
372
+ minHeight: Gt,
373
+ theme: ht,
374
+ ariaLabel: $,
375
+ resetSelectionOnDoubleClick: Mt,
376
+ detailsOnClick: Ct,
377
+ styles: u,
378
+ classNames: x,
379
+ noOfTicks: pt,
380
+ animate: Rt,
381
+ precision: f,
382
+ customLayers: C,
383
+ timeline: j,
384
+ naLabel: gt
388
385
  } = a;
389
- let D;
390
- t[0] !== Y ? (D = Y === void 0 ? [xe.light.categoricalColors.colors[0], xe.light.categoricalColors.colors[1]] : Y, t[0] = Y, t[1] = D) : D = t[1];
391
- const _ = D, P = W === void 0 ? !1 : W, rt = Gt === void 0 ? 20 : Gt, lt = Rt === void 0 ? 20 : Rt, ct = G === void 0 ? 25 : G, mt = Pt === void 0 ? 30 : Pt, tt = kt === void 0 ? "Right bar graph" : kt, T = z === void 0 ? "Left bar graph" : z, ut = q === void 0 ? 0.25 : q, dt = U === void 0 ? 999 : U, ft = L === void 0 ? 100 : L, xt = o === void 0 ? !0 : o;
392
- let S;
393
- t[2] !== n ? (S = n === void 0 ? [] : n, t[2] = n, t[3] = S) : S = t[3];
394
- const ht = S, Qt = J === void 0 ? "" : J, Zt = V === void 0 ? "" : V, pt = $ === void 0 ? !0 : $, _t = N === void 0 ? !1 : N, I = Vt === void 0 ? !1 : Vt, gt = Kt === void 0 ? !1 : Kt, E = $t === void 0 ? "en" : $t, Dt = Nt === void 0 ? 0 : Nt, X = K === void 0 ? "light" : K, te = nt === void 0 ? !0 : nt, yt = Q === void 0 ? 5 : Q, Ht = Ot === void 0 ? !1 : Ot, bt = l === void 0 ? 2 : l;
395
386
  let F;
396
- t[4] !== B ? (F = B === void 0 ? [] : B, t[4] = B, t[5] = F) : F = t[5];
397
- const vt = F, x = M === void 0 ? {
387
+ t[0] !== ct ? (F = ct === void 0 ? [be.light.categoricalColors.colors[0], be.light.categoricalColors.colors[1]] : ct, t[0] = ct, t[1] = F) : F = t[1];
388
+ const I = F, W = mt === void 0 ? !1 : mt, z = Ut === void 0 ? 20 : Ut, q = Jt === void 0 ? 20 : Jt, U = Y === void 0 ? 25 : Y, J = Kt === void 0 ? 30 : Kt, G = Tt === void 0 ? "Right bar graph" : Tt, L = dt === void 0 ? "Left bar graph" : dt, K = ut === void 0 ? 0.25 : ut, Q = ft === void 0 ? 999 : ft, Z = O === void 0 ? 100 : O, _ = l === void 0 ? !0 : l;
389
+ let R;
390
+ t[2] !== m ? (R = m === void 0 ? [] : m, t[2] = m, t[3] = R) : R = t[3];
391
+ const tt = R, Pt = xt === void 0 ? "" : xt, Et = D === void 0 ? "" : D, et = T === void 0 ? !0 : T, Xt = S === void 0 ? !1 : S, P = Ft === void 0 ? !1 : Ft, Lt = ae === void 0 ? !1 : ae, it = It === void 0 ? "en" : It, Ht = Gt === void 0 ? 0 : Gt, at = ht === void 0 ? "light" : ht, Yt = Mt === void 0 ? !0 : Mt, st = pt === void 0 ? 5 : pt, kt = Rt === void 0 ? !1 : Rt, ot = f === void 0 ? 2 : f;
392
+ let E;
393
+ t[4] !== C ? (E = C === void 0 ? [] : C, t[4] = C, t[5] = E) : E = t[5];
394
+ const lt = E;
395
+ let X;
396
+ t[6] !== j ? (X = j === void 0 ? {
398
397
  enabled: !1,
399
398
  autoplay: !1,
400
399
  showOnlyActiveDate: !0
401
- } : M, wt = Z === void 0 ? "NA" : Z, [et, jt] = Lt(0), [Tt, Yt] = Lt(0), [g, h] = Lt(x.autoplay), p = Se(Oe(c, "date", !0).map((j) => ye(`${j}`, x.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), _e), [f, Wt] = Lt(x.autoplay ? 0 : p.length - 1), St = ne(null), It = ne(null);
402
- let At, it;
403
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (At = () => {
404
- const j = new ResizeObserver((ee) => {
405
- jt(ee[0].target.clientWidth || 620), Yt(ee[0].target.clientHeight || 480);
400
+ } : j, t[6] = j, t[7] = X) : X = t[7];
401
+ const o = X, nt = gt === void 0 ? "NA" : gt, [H, Qt] = Dt(0), [yt, N] = Dt(0), [n, se] = Dt(o.autoplay);
402
+ let h;
403
+ if (t[8] !== r || t[9] !== o.dateFormat) {
404
+ let y;
405
+ t[11] !== o.dateFormat ? (y = (qt) => Be(`${qt.date}`, o.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[11] = o.dateFormat, t[12] = y) : y = t[12], h = [...new Set(r.filter(ii).map(y))], h.sort(ei), t[8] = r, t[9] = o.dateFormat, t[10] = h;
406
+ } else
407
+ h = t[10];
408
+ const c = h, [k, Vt] = Dt(o.autoplay ? 0 : c.length - 1), Wt = de(null), zt = de(null);
409
+ let $t, bt;
410
+ t[13] === Symbol.for("react.memo_cache_sentinel") ? ($t = () => {
411
+ const y = new ResizeObserver((qt) => {
412
+ Qt(qt[0].target.clientWidth || 620), N(qt[0].target.clientHeight || 480);
406
413
  });
407
- return St.current && j.observe(St.current), () => j.disconnect();
408
- }, it = [], t[6] = At, t[7] = it) : (At = t[6], it = t[7]), re(At, it), re(() => {
409
- const j = setInterval(() => {
410
- Wt((ee) => ee < p.length - 1 ? ee + 1 : 0);
411
- }, (x.speed || 2) * 1e3);
412
- return g || clearInterval(j), () => clearInterval(j);
413
- }, [p, g, x.speed]);
414
- const zt = pe(p, f, x.showOnlyActiveDate, x.dateFormat || "yyyy"), Bt = Te, Ft = d?.graphContainer, Mt = m?.graphContainer;
415
- let e;
416
- t[8] !== d?.description || t[9] !== d?.title || t[10] !== c || t[11] !== gt || t[12] !== r || t[13] !== I || t[14] !== A || t[15] !== m?.description || t[16] !== m?.title || t[17] !== u ? (e = A || r || I || gt ? /* @__PURE__ */ i.jsx(Ce, { styles: {
417
- title: m?.title,
418
- description: m?.description
414
+ return Wt.current && y.observe(Wt.current), () => y.disconnect();
415
+ }, bt = [], t[13] = $t, t[14] = bt) : ($t = t[13], bt = t[14]), ue($t, bt);
416
+ let Nt, vt;
417
+ t[15] !== n || t[16] !== o.speed || t[17] !== c ? (Nt = () => {
418
+ const y = setInterval(() => {
419
+ Vt((qt) => qt < c.length - 1 ? qt + 1 : 0);
420
+ }, (o.speed || 2) * 1e3);
421
+ return n || clearInterval(y), () => clearInterval(y);
422
+ }, vt = [c, n, o.speed], t[15] = n, t[16] = o.speed, t[17] = c, t[18] = Nt, t[19] = vt) : (Nt = t[18], vt = t[19]), ue(Nt, vt);
423
+ const e = o.dateFormat || "yyyy";
424
+ let g;
425
+ t[20] !== k || t[21] !== e || t[22] !== o.showOnlyActiveDate || t[23] !== c ? (g = we(c, k, o.showOnlyActiveDate, e), t[20] = k, t[21] = e, t[22] = o.showOnlyActiveDate, t[23] = c, t[24] = g) : g = t[24];
426
+ const b = g, ne = x?.graphContainer, re = u?.graphContainer;
427
+ let Zt;
428
+ t[25] !== x?.description || t[26] !== x?.title || t[27] !== r || t[28] !== Lt || t[29] !== d || t[30] !== P || t[31] !== A || t[32] !== u?.description || t[33] !== u?.title || t[34] !== p ? (Zt = A || d || P || Lt ? /* @__PURE__ */ i.jsx(Ne, { styles: {
429
+ title: u?.title,
430
+ description: u?.description
419
431
  }, classNames: {
420
- title: d?.title,
421
- description: d?.description
422
- }, graphTitle: A, graphDescription: r, width: u, graphDownload: I ? It : void 0, dataDownload: gt ? c.map(Ze).filter(Qe).length > 0 ? c.map(Ke).filter(Je) : c.filter(Ue) : null }) : null, t[8] = d?.description, t[9] = d?.title, t[10] = c, t[11] = gt, t[12] = r, t[13] = I, t[14] = A, t[15] = m?.description, t[16] = m?.title, t[17] = u, t[18] = e) : e = t[18];
423
- const y = x.enabled && p.length > 0 && zt ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
432
+ title: x?.title,
433
+ description: x?.description
434
+ }, graphTitle: A, graphDescription: d, width: p, graphDownload: P ? zt : void 0, dataDownload: Lt ? r.map(ti).filter(_e).length > 0 ? r.map(Ze).filter(Qe) : r.filter(Ke) : null }) : null, t[25] = x?.description, t[26] = x?.title, t[27] = r, t[28] = Lt, t[29] = d, t[30] = P, t[31] = A, t[32] = u?.description, t[33] = u?.title, t[34] = p, t[35] = Zt) : Zt = t[35];
435
+ let _t;
436
+ t[36] !== k || t[37] !== b || t[38] !== n || t[39] !== o.enabled || t[40] !== c ? (_t = o.enabled && c.length > 0 && b ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
424
437
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
425
- h(!g);
426
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": g ? "Click to pause animation" : "Click to play animation", children: g ? /* @__PURE__ */ i.jsx(Ve, {}) : /* @__PURE__ */ i.jsx($e, {}) }),
427
- /* @__PURE__ */ i.jsx(ge, { min: p[0], max: p[p.length - 1], marks: zt, step: null, defaultValue: p[p.length - 1], value: p[f], onChangeComplete: (j) => {
428
- Wt(p.indexOf(j));
429
- }, onChange: (j) => {
430
- Wt(p.indexOf(j));
438
+ se(!n);
439
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": n ? "Click to pause animation" : "Click to play animation", children: n ? /* @__PURE__ */ i.jsx(Te, {}) : /* @__PURE__ */ i.jsx(Se, {}) }),
440
+ /* @__PURE__ */ i.jsx(je, { min: c[0], max: c[c.length - 1], marks: b, step: null, defaultValue: c[c.length - 1], value: c[k], onChangeComplete: (y) => {
441
+ Vt(c.indexOf(y));
442
+ }, onChange: (y) => {
443
+ Vt(c.indexOf(y));
431
444
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
432
- ] }) : null, w = c.length === 0 ? /* @__PURE__ */ i.jsx(ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
433
- _t ? /* @__PURE__ */ i.jsx(Le, { colorLegendTitle: O, colorDomain: [T, tt], colors: _, showNAColor: !1, className: d?.colorLegend }) : null,
434
- /* @__PURE__ */ i.jsx(De, { ref: St, children: et && Tt ? /* @__PURE__ */ i.jsx(Fe, { data: Ne(c, x.dateFormat || "yyyy").filter((j) => x.enabled ? j.date === be(new Date(p[f]), x.dateFormat || "yyyy") : j), barColors: _, width: et, centerGap: ft, height: Tt, truncateBy: dt, leftMargin: rt, rightMargin: lt, topMargin: ct, bottomMargin: mt, axisTitles: [T, tt], tooltip: Jt, onSeriesMouseOver: R, barPadding: ut, refValues: ht, maxValue: Math.max(Ut(c, "leftBar", k, s).max, Ut(c, "rightBar", k, s).max), minValue: Math.min(Ut(c, "leftBar", k, s).min, Ut(c, "rightBar", k, s).min), minValueLeftBar: Ut(c, "leftBar", k, s).min, minValueRightBar: Ut(c, "rightBar", k, s).min, showValues: xt, onSeriesMouseClick: Et, showTicks: pt, suffix: Qt, prefix: Zt, resetSelectionOnDoubleClick: te, detailsOnClick: Xt, styles: m, classNames: d, noOfTicks: yt, animate: Ht === !0 ? {
445
+ ] }) : null, t[36] = k, t[37] = b, t[38] = n, t[39] = o.enabled, t[40] = c, t[41] = _t) : _t = t[41];
446
+ let te;
447
+ t[42] !== kt || t[43] !== I || t[44] !== K || t[45] !== J || t[46] !== Z || t[47] !== x || t[48] !== M || t[49] !== lt || t[50] !== r || t[51] !== Ct || t[52] !== k || t[53] !== L || t[54] !== z || t[55] !== s || t[56] !== B || t[57] !== nt || t[58] !== st || t[59] !== Bt || t[60] !== V || t[61] !== ot || t[62] !== Et || t[63] !== tt || t[64] !== Yt || t[65] !== G || t[66] !== q || t[67] !== Xt || t[68] !== et || t[69] !== _ || t[70] !== u || t[71] !== Pt || t[72] !== yt || t[73] !== H || t[74] !== o.dateFormat || t[75] !== o.enabled || t[76] !== St || t[77] !== U || t[78] !== Q || t[79] !== c ? (te = r.length === 0 ? /* @__PURE__ */ i.jsx(De, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
448
+ Xt ? /* @__PURE__ */ i.jsx(Oe, { colorLegendTitle: M, colorDomain: [L, G], colors: I, showNAColor: !1, className: x?.colorLegend }) : null,
449
+ /* @__PURE__ */ i.jsx(Ie, { ref: Wt, children: H && yt ? /* @__PURE__ */ i.jsx(Re, { data: Fe(r, o.dateFormat || "yyyy").filter((y) => o.enabled ? y.date === Ae(new Date(c[k]), o.dateFormat || "yyyy") : y), barColors: I, width: H, centerGap: Z, height: yt, truncateBy: Q, leftMargin: z, rightMargin: q, topMargin: U, bottomMargin: J, axisTitles: [L, G], tooltip: St, onSeriesMouseOver: V, barPadding: K, refValues: tt, maxValue: Math.max(ie(r, "leftBar", B, s).max, ie(r, "rightBar", B, s).max), minValue: Math.min(ie(r, "leftBar", B, s).min, ie(r, "rightBar", B, s).min), minValueLeftBar: ie(r, "leftBar", B, s).min, minValueRightBar: ie(r, "rightBar", B, s).min, showValues: _, onSeriesMouseClick: Bt, showTicks: et, suffix: Pt, prefix: Et, resetSelectionOnDoubleClick: Yt, detailsOnClick: Ct, styles: u, classNames: x, noOfTicks: st, animate: kt === !0 ? {
435
450
  duration: 0.5,
436
451
  once: !0,
437
452
  amount: 0.5
438
- } : Ht || {
453
+ } : kt || {
439
454
  duration: 0,
440
455
  once: !0,
441
456
  amount: 0
442
- }, precision: bt, customLayers: vt, naLabel: wt }) : null })
443
- ] });
444
- let qt;
445
- t[19] !== d?.footnote || t[20] !== d?.source || t[21] !== H || t[22] !== b || t[23] !== m?.footnote || t[24] !== m?.source || t[25] !== u ? (qt = b || H ? /* @__PURE__ */ i.jsx(Me, { styles: {
446
- footnote: m?.footnote,
447
- source: m?.source
457
+ }, precision: ot, customLayers: lt, naLabel: nt }) : null })
458
+ ] }), t[42] = kt, t[43] = I, t[44] = K, t[45] = J, t[46] = Z, t[47] = x, t[48] = M, t[49] = lt, t[50] = r, t[51] = Ct, t[52] = k, t[53] = L, t[54] = z, t[55] = s, t[56] = B, t[57] = nt, t[58] = st, t[59] = Bt, t[60] = V, t[61] = ot, t[62] = Et, t[63] = tt, t[64] = Yt, t[65] = G, t[66] = q, t[67] = Xt, t[68] = et, t[69] = _, t[70] = u, t[71] = Pt, t[72] = yt, t[73] = H, t[74] = o.dateFormat, t[75] = o.enabled, t[76] = St, t[77] = U, t[78] = Q, t[79] = c, t[80] = te) : te = t[80];
459
+ let ee;
460
+ t[81] !== x?.footnote || t[82] !== x?.source || t[83] !== rt || t[84] !== v || t[85] !== u?.footnote || t[86] !== u?.source || t[87] !== p ? (ee = v || rt ? /* @__PURE__ */ i.jsx($e, { styles: {
461
+ footnote: u?.footnote,
462
+ source: u?.source
448
463
  }, classNames: {
449
- footnote: d?.footnote,
450
- source: d?.source
451
- }, sources: b, footNote: H, width: u }) : null, t[19] = d?.footnote, t[20] = d?.source, t[21] = H, t[22] = b, t[23] = m?.footnote, t[24] = m?.source, t[25] = u, t[26] = qt) : qt = t[26];
452
- let ie;
453
- return t[27] !== Bt || t[28] !== C || t[29] !== P || t[30] !== ot || t[31] !== v || t[32] !== E || t[33] !== Dt || t[34] !== at || t[35] !== st || t[36] !== Ft || t[37] !== Mt || t[38] !== e || t[39] !== y || t[40] !== w || t[41] !== qt || t[42] !== X || t[43] !== u ? (ie = /* @__PURE__ */ i.jsxs(Bt, { className: Ft, style: Mt, id: ot, ref: It, "aria-label": C, backgroundColor: P, theme: X, language: E, minHeight: Dt, width: u, height: v, relativeHeight: st, padding: at, children: [
454
- e,
455
- y,
456
- w,
457
- qt
458
- ] }), t[27] = Bt, t[28] = C, t[29] = P, t[30] = ot, t[31] = v, t[32] = E, t[33] = Dt, t[34] = at, t[35] = st, t[36] = Ft, t[37] = Mt, t[38] = e, t[39] = y, t[40] = w, t[41] = qt, t[42] = X, t[43] = u, t[44] = ie) : ie = t[44], ie;
464
+ footnote: x?.footnote,
465
+ source: x?.source
466
+ }, sources: v, footNote: rt, width: p }) : null, t[81] = x?.footnote, t[82] = x?.source, t[83] = rt, t[84] = v, t[85] = u?.footnote, t[86] = u?.source, t[87] = p, t[88] = ee) : ee = t[88];
467
+ let oe;
468
+ return t[89] !== $ || t[90] !== W || t[91] !== At || t[92] !== w || t[93] !== it || t[94] !== Ht || t[95] !== wt || t[96] !== jt || t[97] !== ne || t[98] !== re || t[99] !== Zt || t[100] !== _t || t[101] !== te || t[102] !== ee || t[103] !== at || t[104] !== p ? (oe = /* @__PURE__ */ i.jsxs(Ge, { className: ne, style: re, id: At, ref: zt, "aria-label": $, backgroundColor: W, theme: at, language: it, minHeight: Ht, width: p, height: w, relativeHeight: jt, padding: wt, children: [
469
+ Zt,
470
+ _t,
471
+ te,
472
+ ee
473
+ ] }), t[89] = $, t[90] = W, t[91] = At, t[92] = w, t[93] = it, t[94] = Ht, t[95] = wt, t[96] = jt, t[97] = ne, t[98] = re, t[99] = Zt, t[100] = _t, t[101] = te, t[102] = ee, t[103] = at, t[104] = p, t[105] = oe) : oe = t[105], oe;
459
474
  }
460
- function Ue(a) {
475
+ function Ke(a) {
461
476
  return a !== void 0;
462
477
  }
463
- function Je(a) {
478
+ function Qe(a) {
464
479
  return a !== void 0;
465
480
  }
466
- function Ke(a) {
481
+ function Ze(a) {
467
482
  return a.data;
468
483
  }
469
- function Qe(a) {
484
+ function _e(a) {
470
485
  return a !== void 0;
471
486
  }
472
- function Ze(a) {
487
+ function ti(a) {
473
488
  return a.data;
474
489
  }
475
- function _e(a, t) {
476
- return Ie(a, t);
490
+ function ei(a, t) {
491
+ return a - t;
492
+ }
493
+ function ii(a) {
494
+ return a.date;
477
495
  }
478
496
  export {
479
497
  Vi as ButterflyChart