@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.
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +1360 -1363
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +302 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +4 -4
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +591 -594
- package/dist/BulletChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +4 -4
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +255 -258
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +553 -556
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{GraphEl-Dorm_qQE.js → GraphEl-B73N4RIA.js} +2 -2
- package/dist/{GraphEl-Dorm_qQE.js.map → GraphEl-B73N4RIA.js.map} +1 -1
- package/dist/{GraphEl-D8WRC8-j.cjs → GraphEl-Lt1og0C-.cjs} +2 -2
- package/dist/{GraphEl-D8WRC8-j.cjs.map → GraphEl-Lt1og0C-.cjs.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +310 -313
- package/dist/HybridMap.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +269 -272
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +319 -322
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +3 -3
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +274 -280
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +341 -344
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +251 -254
- package/dist/SlopeChart.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +292 -295
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.js +3 -3
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +196 -199
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.js +274 -277
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/index-B0Awa_de.js +377 -0
- package/dist/index-B0Awa_de.js.map +1 -0
- package/dist/index-CP8cmNzt.cjs +2 -0
- package/dist/index-CP8cmNzt.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-Bdo_HXb_.cjs +0 -2
- package/dist/index-Bdo_HXb_.cjs.map +0 -1
- package/dist/index-CGrBpeUa.js +0 -380
- package/dist/index-CGrBpeUa.js.map +0 -1
package/dist/BarGraph.js
CHANGED
|
@@ -1,147 +1,147 @@
|
|
|
1
1
|
import { c as $e, j as i, m as Ce } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
-
import { useRef as Ae, useState as _t, useEffect as
|
|
3
|
-
import { g as
|
|
4
|
-
import { f as Ve, p as
|
|
5
|
-
import { o as
|
|
6
|
-
import { s as
|
|
7
|
-
import { i as
|
|
2
|
+
import { useRef as Ae, useState as _t, useEffect as Ie } from "react";
|
|
3
|
+
import { g as Ee, N as Ge } from "./getSliderMarks-X-_goqH9.js";
|
|
4
|
+
import { f as Ve, p as Re } from "./parse-Dv4of-PN.js";
|
|
5
|
+
import { o as We } from "./index-BZQYSqar.js";
|
|
6
|
+
import { s as me } from "./index-CeVNqhMO.js";
|
|
7
|
+
import { i as Ne } from "./index-Bwrro8-q.js";
|
|
8
8
|
import { n as we } from "./numberFormattingFunction-DqMf_v1m.js";
|
|
9
|
-
import { T as
|
|
10
|
-
import { c as
|
|
11
|
-
import { Y as
|
|
12
|
-
import { A as
|
|
13
|
-
import { A as
|
|
14
|
-
import { X as
|
|
15
|
-
import { R as
|
|
16
|
-
import { Y as
|
|
17
|
-
import { X as
|
|
18
|
-
import { D as
|
|
19
|
-
import { u as
|
|
20
|
-
import { a as
|
|
9
|
+
import { T as je } from "./Tooltip-Bj-s__cI.js";
|
|
10
|
+
import { c as ie } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
|
+
import { Y as qe } from "./YAxesLabels-hWEUCTvs.js";
|
|
12
|
+
import { A as Te } from "./Axis-CNZYWzH0.js";
|
|
13
|
+
import { A as Se } from "./AxisTitle-CyLCqpW6.js";
|
|
14
|
+
import { X as Ue } from "./XTicksAndGridLines-gdbGX2rm.js";
|
|
15
|
+
import { R as Je, a as Ke } from "./ReferenceLine-D41VuUhE.js";
|
|
16
|
+
import { Y as Qe } from "./YTicksAndGridLines-CsNSq9W9.js";
|
|
17
|
+
import { X as Ze } from "./XAxesLabels-B9gkjUiC.js";
|
|
18
|
+
import { D as Be } from "./DetailsModal-B2XBWR7w.js";
|
|
19
|
+
import { u as Fe } from "./use-in-view-KOXq5Kmc.js";
|
|
20
|
+
import { a as Pe } from "./linear-DNXM5Pdl.js";
|
|
21
21
|
import { b as Le } from "./band-DYty33LD.js";
|
|
22
|
-
import { m as
|
|
23
|
-
import { A as
|
|
24
|
-
import { GraphHeader as
|
|
25
|
-
import { GraphFooter as
|
|
26
|
-
import { ColorLegendWithMouseOver as
|
|
22
|
+
import { m as te } from "./proxy-BsxtcZKa.js";
|
|
23
|
+
import { A as He } from "./index-Cv_5q6Rb.js";
|
|
24
|
+
import { GraphHeader as _e } from "./GraphHeader.js";
|
|
25
|
+
import { GraphFooter as ti } from "./GraphFooter.js";
|
|
26
|
+
import { ColorLegendWithMouseOver as ei } from "./ColorLegendWithMouseOver.js";
|
|
27
27
|
import { Colors as ye } from "./Colors.js";
|
|
28
|
-
import { E as
|
|
29
|
-
import { P as
|
|
30
|
-
import { d as
|
|
31
|
-
import { a as
|
|
32
|
-
import { u as
|
|
33
|
-
import { g as
|
|
34
|
-
function
|
|
28
|
+
import { E as ii } from "./EmptyState-CaxXCkiN.js";
|
|
29
|
+
import { P as li, e as si } from "./index-ApTBN0kp.js";
|
|
30
|
+
import { d as De, f as ni } from "./ensureCompleteData-CDIukSG6.js";
|
|
31
|
+
import { a as ai, G as oi } from "./GraphContainer-B8ZqOzKI.js";
|
|
32
|
+
import { u as ri } from "./uniqBy-BHy4I8PK.js";
|
|
33
|
+
import { g as Ye } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
34
|
+
function ci(e) {
|
|
35
35
|
const t = $e.c(132), {
|
|
36
36
|
data: s,
|
|
37
37
|
leftMargin: H,
|
|
38
|
-
rightMargin:
|
|
38
|
+
rightMargin: Gt,
|
|
39
39
|
topMargin: Kt,
|
|
40
|
-
bottomMargin:
|
|
41
|
-
barColors:
|
|
40
|
+
bottomMargin: It,
|
|
41
|
+
barColors: At,
|
|
42
42
|
barPadding: Bt,
|
|
43
43
|
showTicks: P,
|
|
44
|
-
truncateBy:
|
|
44
|
+
truncateBy: R,
|
|
45
45
|
width: O,
|
|
46
46
|
height: X,
|
|
47
|
-
suffix:
|
|
48
|
-
prefix:
|
|
49
|
-
showValues:
|
|
47
|
+
suffix: ut,
|
|
48
|
+
prefix: Z,
|
|
49
|
+
showValues: $t,
|
|
50
50
|
showLabels: W,
|
|
51
51
|
tooltip: st,
|
|
52
|
-
onSeriesMouseOver:
|
|
53
|
-
refValues:
|
|
52
|
+
onSeriesMouseOver: Nt,
|
|
53
|
+
refValues: Ot,
|
|
54
54
|
maxValue: Xt,
|
|
55
55
|
minValue: k,
|
|
56
|
-
onSeriesMouseClick:
|
|
57
|
-
selectedColor:
|
|
56
|
+
onSeriesMouseClick: q,
|
|
57
|
+
selectedColor: j,
|
|
58
58
|
rtl: N,
|
|
59
|
-
labelOrder:
|
|
60
|
-
maxBarThickness:
|
|
61
|
-
resetSelectionOnDoubleClick:
|
|
62
|
-
detailsOnClick:
|
|
63
|
-
barAxisTitle:
|
|
64
|
-
valueColor:
|
|
65
|
-
noOfTicks:
|
|
59
|
+
labelOrder: ot,
|
|
60
|
+
maxBarThickness: U,
|
|
61
|
+
resetSelectionOnDoubleClick: xt,
|
|
62
|
+
detailsOnClick: T,
|
|
63
|
+
barAxisTitle: J,
|
|
64
|
+
valueColor: _,
|
|
65
|
+
noOfTicks: u,
|
|
66
66
|
styles: l,
|
|
67
67
|
classNames: a,
|
|
68
|
-
animate:
|
|
69
|
-
colorDomain:
|
|
70
|
-
precision:
|
|
71
|
-
customLayers:
|
|
68
|
+
animate: f,
|
|
69
|
+
colorDomain: x,
|
|
70
|
+
precision: w,
|
|
71
|
+
customLayers: h,
|
|
72
72
|
naLabel: at,
|
|
73
|
-
hideAxisLine:
|
|
73
|
+
hideAxisLine: S,
|
|
74
74
|
locale: C
|
|
75
|
-
} = e,
|
|
76
|
-
let
|
|
77
|
-
t[0] !==
|
|
78
|
-
once:
|
|
79
|
-
amount:
|
|
80
|
-
}, t[0] =
|
|
81
|
-
const D =
|
|
82
|
-
let
|
|
83
|
-
t[3] !== yt || t[4] !==
|
|
84
|
-
top:
|
|
75
|
+
} = e, Ht = H === void 0 ? 100 : H, Rt = Gt === void 0 ? 40 : Gt, Mt = Kt === void 0 ? 25 : Kt, yt = It === void 0 ? 10 : It, Yt = Ae(null);
|
|
76
|
+
let tt;
|
|
77
|
+
t[0] !== f.amount || t[1] !== f.once ? (tt = {
|
|
78
|
+
once: f.once,
|
|
79
|
+
amount: f.amount
|
|
80
|
+
}, t[0] = f.amount, t[1] = f.once, t[2] = tt) : tt = t[2];
|
|
81
|
+
const D = Fe(Yt, tt), B = J ? Mt + 25 : Mt;
|
|
82
|
+
let p;
|
|
83
|
+
t[3] !== yt || t[4] !== Ht || t[5] !== Rt || t[6] !== B ? (p = {
|
|
84
|
+
top: B,
|
|
85
85
|
bottom: yt,
|
|
86
|
-
left:
|
|
87
|
-
right:
|
|
88
|
-
}, t[3] = yt, t[4] =
|
|
89
|
-
const
|
|
90
|
-
let
|
|
91
|
-
if (t[8] !== s || t[9] !==
|
|
92
|
-
const v = /* @__PURE__ */ new Set(),
|
|
93
|
-
const Et =
|
|
86
|
+
left: Ht,
|
|
87
|
+
right: Rt
|
|
88
|
+
}, t[3] = yt, t[4] = Ht, t[5] = Rt, t[6] = B, t[7] = p) : p = t[7];
|
|
89
|
+
const c = p, [jt, z] = _t(void 0), [y, Ft] = _t(void 0), [Tt, mt] = _t(void 0), [qt, et] = _t(void 0), Pt = O - c.left - c.right, Y = X - c.top - c.bottom;
|
|
90
|
+
let it;
|
|
91
|
+
if (t[8] !== s || t[9] !== ot) {
|
|
92
|
+
const v = /* @__PURE__ */ new Set(), zt = s.map((b, G) => {
|
|
93
|
+
const Et = ot ? `${b.label}` : `${G}`;
|
|
94
94
|
return v.add(Et), {
|
|
95
|
-
...
|
|
95
|
+
...b,
|
|
96
96
|
id: Et
|
|
97
97
|
};
|
|
98
|
-
}),
|
|
99
|
-
let
|
|
100
|
-
t[11] !== s[0].size.length ? (
|
|
101
|
-
id:
|
|
102
|
-
label:
|
|
98
|
+
}), wt = ot ? ot.filter((b) => !v.has(b)) : [];
|
|
99
|
+
let r;
|
|
100
|
+
t[11] !== s[0].size.length ? (r = (b) => ({
|
|
101
|
+
id: b,
|
|
102
|
+
label: b,
|
|
103
103
|
size: Array(s[0].size.length).fill(null)
|
|
104
|
-
}), t[11] = s[0].size.length, t[12] =
|
|
104
|
+
}), t[11] = s[0].size.length, t[12] = r) : r = t[12], it = [...zt, ...wt.map(r)], t[8] = s, t[9] = ot, t[10] = it;
|
|
105
105
|
} else
|
|
106
|
-
|
|
107
|
-
const M =
|
|
106
|
+
it = t[10];
|
|
107
|
+
const M = it;
|
|
108
108
|
let bt;
|
|
109
|
-
t[13] !== M || t[14] !==
|
|
110
|
-
const
|
|
111
|
-
let
|
|
112
|
-
if (t[16] !==
|
|
113
|
-
const v =
|
|
114
|
-
|
|
109
|
+
t[13] !== M || t[14] !== ot ? (bt = ot ?? M.map(gi), t[13] = M, t[14] = ot, t[15] = bt) : bt = t[15];
|
|
110
|
+
const kt = bt;
|
|
111
|
+
let ht, ft, pt, St, Ct, K, F, I, Lt, nt, lt, Q, gt, rt;
|
|
112
|
+
if (t[16] !== f || t[17] !== J || t[18] !== At || t[19] !== kt || t[20] !== Bt || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== x || t[28] !== h || t[29] !== s[0].size || t[30] !== M || t[31] !== T || t[32] !== Y || t[33] !== Pt || t[34] !== X || t[35] !== S || t[36] !== D || t[37] !== C || t[38] !== c.bottom || t[39] !== c.left || t[40] !== c.top || t[41] !== U || t[42] !== Xt || t[43] !== k || t[44] !== y || t[45] !== at || t[46] !== u || t[47] !== q || t[48] !== Nt || t[49] !== w || t[50] !== Z || t[51] !== Ot || t[52] !== xt || t[53] !== N || t[54] !== j || t[55] !== W || t[56] !== P || t[57] !== $t || t[58] !== l?.graphObjectValues || t[59] !== l?.xAxis?.gridLines || t[60] !== l?.xAxis?.labels || t[61] !== l?.xAxis?.title || t[62] !== l?.yAxis?.axis || t[63] !== l?.yAxis?.labels || t[64] !== ut || t[65] !== Mt || t[66] !== R || t[67] !== _ || t[68] !== O) {
|
|
113
|
+
const v = Pe().domain([k, Xt]).range([0, Pt]).nice(), zt = Le().domain(kt).range([0, U ? Math.min(Y, U * kt.length) : Y]).paddingInner(Bt), wt = Le().domain(s[0].size.map(pi)).range([0, zt.bandwidth()]).paddingInner(0.1), r = v.ticks(u);
|
|
114
|
+
ft = te.svg, Lt = Yt, nt = `${O}px`, lt = `${X}px`, Q = `0 0 ${O} ${X}`, gt = "ltr", Ct = `translate(${c.left},${c.top})`, K = P ? /* @__PURE__ */ i.jsx(Ue, { values: r.filter(fi), x: r.filter(hi).map((V) => v(V)), y1: 0 - Mt, y2: Y + c.bottom, styles: {
|
|
115
115
|
gridLines: l?.xAxis?.gridLines,
|
|
116
116
|
labels: l?.xAxis?.labels
|
|
117
117
|
}, classNames: {
|
|
118
118
|
gridLines: a?.xAxis?.gridLines,
|
|
119
119
|
labels: a?.xAxis?.labels
|
|
120
|
-
}, suffix:
|
|
121
|
-
const
|
|
122
|
-
t[83] !==
|
|
120
|
+
}, suffix: ut, prefix: Z, labelType: "secondary", showGridLines: !0, precision: w, locale: C }) : null;
|
|
121
|
+
const b = Pt / 2, G = 0 - c.top + 15, Et = l?.xAxis?.title, Ut = a?.xAxis?.title;
|
|
122
|
+
t[83] !== J || t[84] !== b || t[85] !== G || t[86] !== Et || t[87] !== Ut ? (F = /* @__PURE__ */ i.jsx(Se, { x: b, y: G, style: Et, className: Ut, text: J }), t[83] = J, t[84] = b, t[85] = G, t[86] = Et, t[87] = Ut, t[88] = F) : F = t[88], t[89] !== h ? (I = h.filter(mi).map(xi), t[89] = h, t[90] = I) : I = t[90], ht = He, rt = M.map((V) => ie(zt(V.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { variants: {
|
|
123
123
|
initial: {
|
|
124
124
|
x: 0,
|
|
125
|
-
y:
|
|
125
|
+
y: zt(`${V.id}`)
|
|
126
126
|
},
|
|
127
127
|
whileInView: {
|
|
128
128
|
x: 0,
|
|
129
|
-
y:
|
|
129
|
+
y: zt(`${V.id}`),
|
|
130
130
|
transition: {
|
|
131
|
-
duration:
|
|
131
|
+
duration: f.duration
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
|
|
135
135
|
opacity: 0,
|
|
136
136
|
transition: {
|
|
137
|
-
duration:
|
|
137
|
+
duration: f.duration
|
|
138
138
|
}
|
|
139
139
|
}, children: [
|
|
140
|
-
V.size.map((
|
|
140
|
+
V.size.map((d, L) => /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-g-with-hover", opacity: j ? At[L] === j ? 1 : 0.3 : 0.85, onMouseEnter: (o) => {
|
|
141
141
|
z({
|
|
142
142
|
...V,
|
|
143
143
|
sizeIndex: L
|
|
144
|
-
}),
|
|
144
|
+
}), et(o.clientY), mt(o.clientX), Nt?.({
|
|
145
145
|
...V,
|
|
146
146
|
sizeIndex: L
|
|
147
147
|
});
|
|
@@ -149,240 +149,240 @@ function ui(e) {
|
|
|
149
149
|
z({
|
|
150
150
|
...V,
|
|
151
151
|
sizeIndex: L
|
|
152
|
-
}),
|
|
152
|
+
}), et(o.clientY), mt(o.clientX);
|
|
153
153
|
}, onMouseLeave: () => {
|
|
154
|
-
z(void 0),
|
|
154
|
+
z(void 0), mt(void 0), et(void 0), Nt?.(void 0);
|
|
155
155
|
}, onClick: () => {
|
|
156
|
-
(
|
|
156
|
+
(q || T) && (Ne(y, {
|
|
157
157
|
...V,
|
|
158
158
|
sizeIndex: L
|
|
159
|
-
}) &&
|
|
159
|
+
}) && xt ? (Ft(void 0), q?.(void 0)) : (Ft({
|
|
160
160
|
...V,
|
|
161
161
|
sizeIndex: L
|
|
162
|
-
}),
|
|
162
|
+
}), q && q({
|
|
163
163
|
...V,
|
|
164
164
|
sizeIndex: L
|
|
165
165
|
})));
|
|
166
166
|
}, children: [
|
|
167
|
-
|
|
167
|
+
ie(d) ? null : /* @__PURE__ */ i.jsx(te.rect, { y: wt(`${L}`), variants: {
|
|
168
168
|
initial: {
|
|
169
169
|
width: 0,
|
|
170
170
|
x: v(0),
|
|
171
|
-
fill:
|
|
171
|
+
fill: At[L]
|
|
172
172
|
},
|
|
173
173
|
whileInView: {
|
|
174
|
-
width:
|
|
175
|
-
x:
|
|
176
|
-
fill:
|
|
174
|
+
width: ie(d) ? 0 : d >= 0 ? v(d) - v(0) : v(0) - v(d),
|
|
175
|
+
x: d >= 0 ? v(0) : v(d),
|
|
176
|
+
fill: At[L],
|
|
177
177
|
transition: {
|
|
178
|
-
duration:
|
|
178
|
+
duration: f.duration
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}, exit: {
|
|
182
182
|
width: 0,
|
|
183
183
|
x: v(0),
|
|
184
184
|
transition: {
|
|
185
|
-
duration:
|
|
185
|
+
duration: f.duration
|
|
186
186
|
}
|
|
187
|
-
}, height:
|
|
188
|
-
|
|
189
|
-
textAnchor:
|
|
187
|
+
}, height: wt.bandwidth(), initial: "initial", animate: D ? "whileInView" : "initial" }),
|
|
188
|
+
$t ? /* @__PURE__ */ i.jsx(te.text, { y: wt(`${L}`) + wt.bandwidth() / 2, style: {
|
|
189
|
+
textAnchor: d && d < 0 ? "end" : "start",
|
|
190
190
|
...l?.graphObjectValues || {}
|
|
191
|
-
}, className: Ce("graph-value text-sm", a?.graphObjectValues), dx:
|
|
191
|
+
}, className: Ce("graph-value text-sm", a?.graphObjectValues), dx: d && d < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
192
192
|
initial: {
|
|
193
193
|
x: v(0),
|
|
194
194
|
opacity: 0,
|
|
195
|
-
fill:
|
|
195
|
+
fill: _ || At[L]
|
|
196
196
|
},
|
|
197
197
|
whileInView: {
|
|
198
|
-
x: v(
|
|
198
|
+
x: v(d || 0),
|
|
199
199
|
opacity: 1,
|
|
200
|
-
fill:
|
|
200
|
+
fill: _ || At[L],
|
|
201
201
|
transition: {
|
|
202
|
-
duration:
|
|
202
|
+
duration: f.duration
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
|
|
206
206
|
opacity: 0,
|
|
207
207
|
transition: {
|
|
208
|
-
duration:
|
|
208
|
+
duration: f.duration
|
|
209
209
|
}
|
|
210
|
-
}, children: we(
|
|
211
|
-
] }, `${V.label}-${
|
|
212
|
-
W ? /* @__PURE__ */ i.jsx(
|
|
210
|
+
}, children: we(d, at, w, Z, ut, C) }) : null
|
|
211
|
+
] }, `${V.label}-${x[L] || L}`)),
|
|
212
|
+
W ? /* @__PURE__ */ i.jsx(qe, { value: `${V.label}`.length < R ? `${V.label}` : `${`${V.label}`.substring(0, R)}...`, y: 0, x: 0 - c.left, width: v(k < 0 ? 0 : k) + c.left, height: zt.bandwidth(), style: l?.yAxis?.labels, className: a?.yAxis?.labels, animate: f, isInView: D }) : null
|
|
213
213
|
] }, V.label));
|
|
214
214
|
const Jt = a?.yAxis?.axis;
|
|
215
215
|
let Zt;
|
|
216
216
|
t[91] !== Jt ? (Zt = {
|
|
217
217
|
axis: Jt
|
|
218
218
|
}, t[91] = Jt, t[92] = Zt) : Zt = t[92];
|
|
219
|
-
const
|
|
220
|
-
let
|
|
221
|
-
t[93] !==
|
|
222
|
-
axis:
|
|
223
|
-
}, t[93] =
|
|
219
|
+
const dt = l?.yAxis?.axis;
|
|
220
|
+
let g;
|
|
221
|
+
t[93] !== dt ? (g = {
|
|
222
|
+
axis: dt
|
|
223
|
+
}, t[93] = dt, t[94] = g) : g = t[94], pt = /* @__PURE__ */ i.jsx(Te, { x1: v(k < 0 ? 0 : k), x2: v(k < 0 ? 0 : k), y1: -2.5, y2: Y + c.bottom, classNames: Zt, styles: g, hideAxisLine: S }), St = Ot ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ot.map((V, d) => /* @__PURE__ */ i.jsx(Je, { text: V.text, color: V.color, x: v(V.value), y1: 0 - c.top, y2: Y + c.bottom, textSide: v(V.value) > Pt * 0.75 || N ? "left" : "right", classNames: V.classNames, styles: V.styles, animate: f, isInView: D }, d)) }) : null, t[16] = f, t[17] = J, t[18] = At, t[19] = kt, t[20] = Bt, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = x, t[28] = h, t[29] = s[0].size, t[30] = M, t[31] = T, t[32] = Y, t[33] = Pt, t[34] = X, t[35] = S, t[36] = D, t[37] = C, t[38] = c.bottom, t[39] = c.left, t[40] = c.top, t[41] = U, t[42] = Xt, t[43] = k, t[44] = y, t[45] = at, t[46] = u, t[47] = q, t[48] = Nt, t[49] = w, t[50] = Z, t[51] = Ot, t[52] = xt, t[53] = N, t[54] = j, t[55] = W, t[56] = P, t[57] = $t, t[58] = l?.graphObjectValues, t[59] = l?.xAxis?.gridLines, t[60] = l?.xAxis?.labels, t[61] = l?.xAxis?.title, t[62] = l?.yAxis?.axis, t[63] = l?.yAxis?.labels, t[64] = ut, t[65] = Mt, t[66] = R, t[67] = _, t[68] = O, t[69] = ht, t[70] = ft, t[71] = pt, t[72] = St, t[73] = Ct, t[74] = K, t[75] = F, t[76] = I, t[77] = Lt, t[78] = nt, t[79] = lt, t[80] = Q, t[81] = gt, t[82] = rt;
|
|
224
224
|
} else
|
|
225
|
-
|
|
226
|
-
let
|
|
227
|
-
t[95] !==
|
|
228
|
-
|
|
229
|
-
|
|
225
|
+
ht = t[69], ft = t[70], pt = t[71], St = t[72], Ct = t[73], K = t[74], F = t[75], I = t[76], Lt = t[77], nt = t[78], lt = t[79], Q = t[80], gt = t[81], rt = t[82];
|
|
226
|
+
let E;
|
|
227
|
+
t[95] !== ht || t[96] !== pt || t[97] !== St || t[98] !== rt ? (E = /* @__PURE__ */ i.jsxs(ht, { children: [
|
|
228
|
+
rt,
|
|
229
|
+
pt,
|
|
230
230
|
St
|
|
231
|
-
] }), t[95] =
|
|
232
|
-
let
|
|
233
|
-
t[100] !==
|
|
234
|
-
let
|
|
235
|
-
t[102] !==
|
|
236
|
-
|
|
237
|
-
|
|
231
|
+
] }), t[95] = ht, t[96] = pt, t[97] = St, t[98] = rt, t[99] = E) : E = t[99];
|
|
232
|
+
let vt;
|
|
233
|
+
t[100] !== h ? (vt = h.filter(ui).map(di), t[100] = h, t[101] = vt) : vt = t[101];
|
|
234
|
+
let Vt;
|
|
235
|
+
t[102] !== Ct || t[103] !== K || t[104] !== F || t[105] !== I || t[106] !== E || t[107] !== vt ? (Vt = /* @__PURE__ */ i.jsxs("g", { transform: Ct, children: [
|
|
236
|
+
K,
|
|
237
|
+
F,
|
|
238
238
|
I,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
] }), t[102] =
|
|
242
|
-
let
|
|
243
|
-
t[109] !==
|
|
244
|
-
let
|
|
245
|
-
t[117] !== a?.tooltip || t[118] !== Tt || t[119] !==
|
|
246
|
-
let
|
|
247
|
-
t[124] !== a?.modal || t[125] !==
|
|
239
|
+
E,
|
|
240
|
+
vt
|
|
241
|
+
] }), t[102] = Ct, t[103] = K, t[104] = F, t[105] = I, t[106] = E, t[107] = vt, t[108] = Vt) : Vt = t[108];
|
|
242
|
+
let ct;
|
|
243
|
+
t[109] !== ft || t[110] !== Lt || t[111] !== nt || t[112] !== lt || t[113] !== Q || t[114] !== gt || t[115] !== Vt ? (ct = /* @__PURE__ */ i.jsx(ft, { ref: Lt, width: nt, height: lt, viewBox: Q, direction: gt, children: Vt }), t[109] = ft, t[110] = Lt, t[111] = nt, t[112] = lt, t[113] = Q, t[114] = gt, t[115] = Vt, t[116] = ct) : ct = t[116];
|
|
244
|
+
let A;
|
|
245
|
+
t[117] !== a?.tooltip || t[118] !== Tt || t[119] !== qt || t[120] !== jt || t[121] !== l?.tooltip || t[122] !== st ? (A = jt && st && Tt && qt ? /* @__PURE__ */ i.jsx(je, { data: jt, body: st, xPos: Tt, yPos: qt, backgroundStyle: l?.tooltip, className: a?.tooltip }) : null, t[117] = a?.tooltip, t[118] = Tt, t[119] = qt, t[120] = jt, t[121] = l?.tooltip, t[122] = st, t[123] = A) : A = t[123];
|
|
246
|
+
let Wt;
|
|
247
|
+
t[124] !== a?.modal || t[125] !== T || t[126] !== y ? (Wt = T && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: T, data: y, setData: Ft, className: a?.modal }) : null, t[124] = a?.modal, t[125] = T, t[126] = y, t[127] = Wt) : Wt = t[127];
|
|
248
248
|
let n;
|
|
249
|
-
return t[128] !==
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
] }), t[128] =
|
|
249
|
+
return t[128] !== ct || t[129] !== A || t[130] !== Wt ? (n = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
250
|
+
ct,
|
|
251
|
+
A,
|
|
252
|
+
Wt
|
|
253
|
+
] }), t[128] = ct, t[129] = A, t[130] = Wt, t[131] = n) : n = t[131], n;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function di(e) {
|
|
256
256
|
return e.layer;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function ui(e) {
|
|
259
259
|
return e.position === "after";
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function xi(e) {
|
|
262
262
|
return e.layer;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function mi(e) {
|
|
265
265
|
return e.position === "before";
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function hi(e) {
|
|
268
268
|
return e !== 0;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function fi(e) {
|
|
271
271
|
return e !== 0;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function pi(e, t) {
|
|
274
274
|
return `${t}`;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function gi(e) {
|
|
277
277
|
return `${e.id}`;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function yi(e) {
|
|
280
280
|
const t = $e.c(142), {
|
|
281
281
|
data: s,
|
|
282
282
|
leftMargin: H,
|
|
283
|
-
rightMargin:
|
|
283
|
+
rightMargin: Gt,
|
|
284
284
|
topMargin: Kt,
|
|
285
|
-
bottomMargin:
|
|
286
|
-
width:
|
|
285
|
+
bottomMargin: It,
|
|
286
|
+
width: At,
|
|
287
287
|
height: Bt,
|
|
288
288
|
barColors: P,
|
|
289
|
-
suffix:
|
|
289
|
+
suffix: R,
|
|
290
290
|
prefix: O,
|
|
291
291
|
barPadding: X,
|
|
292
|
-
showLabels:
|
|
293
|
-
showValues:
|
|
294
|
-
showTicks:
|
|
292
|
+
showLabels: ut,
|
|
293
|
+
showValues: Z,
|
|
294
|
+
showTicks: $t,
|
|
295
295
|
truncateBy: W,
|
|
296
296
|
tooltip: st,
|
|
297
|
-
onSeriesMouseOver:
|
|
298
|
-
refValues:
|
|
297
|
+
onSeriesMouseOver: Nt,
|
|
298
|
+
refValues: Ot,
|
|
299
299
|
maxValue: Xt,
|
|
300
300
|
minValue: k,
|
|
301
|
-
onSeriesMouseClick:
|
|
302
|
-
selectedColor:
|
|
301
|
+
onSeriesMouseClick: q,
|
|
302
|
+
selectedColor: j,
|
|
303
303
|
labelOrder: N,
|
|
304
|
-
maxBarThickness:
|
|
305
|
-
resetSelectionOnDoubleClick:
|
|
306
|
-
detailsOnClick:
|
|
307
|
-
barAxisTitle:
|
|
308
|
-
valueColor:
|
|
309
|
-
noOfTicks:
|
|
310
|
-
styles:
|
|
304
|
+
maxBarThickness: ot,
|
|
305
|
+
resetSelectionOnDoubleClick: U,
|
|
306
|
+
detailsOnClick: xt,
|
|
307
|
+
barAxisTitle: T,
|
|
308
|
+
valueColor: J,
|
|
309
|
+
noOfTicks: _,
|
|
310
|
+
styles: u,
|
|
311
311
|
classNames: l,
|
|
312
312
|
animate: a,
|
|
313
|
-
colorDomain:
|
|
314
|
-
precision:
|
|
315
|
-
customLayers:
|
|
316
|
-
naLabel:
|
|
313
|
+
colorDomain: f,
|
|
314
|
+
precision: x,
|
|
315
|
+
customLayers: w,
|
|
316
|
+
naLabel: h,
|
|
317
317
|
hideAxisLine: at,
|
|
318
|
-
locale:
|
|
319
|
-
} = e, C = H === void 0 ? 20 : H,
|
|
318
|
+
locale: S
|
|
319
|
+
} = e, C = H === void 0 ? 20 : H, Ht = Gt === void 0 ? 20 : Gt, Rt = Kt === void 0 ? 20 : Kt, Mt = It === void 0 ? 25 : It, yt = Ae(null);
|
|
320
320
|
let Yt;
|
|
321
321
|
t[0] !== a.amount || t[1] !== a.once ? (Yt = {
|
|
322
322
|
once: a.once,
|
|
323
323
|
amount: a.amount
|
|
324
324
|
}, t[0] = a.amount, t[1] = a.once, t[2] = Yt) : Yt = t[2];
|
|
325
|
-
const
|
|
326
|
-
let
|
|
327
|
-
t[3] !==
|
|
328
|
-
top:
|
|
329
|
-
bottom:
|
|
325
|
+
const tt = Fe(yt, Yt), D = T ? C + 30 : C;
|
|
326
|
+
let B;
|
|
327
|
+
t[3] !== Mt || t[4] !== Ht || t[5] !== D || t[6] !== Rt ? (B = {
|
|
328
|
+
top: Rt,
|
|
329
|
+
bottom: Mt,
|
|
330
330
|
left: D,
|
|
331
|
-
right:
|
|
332
|
-
}, t[3] =
|
|
333
|
-
const
|
|
331
|
+
right: Ht
|
|
332
|
+
}, t[3] = Mt, t[4] = Ht, t[5] = D, t[6] = Rt, t[7] = B) : B = t[7];
|
|
333
|
+
const p = B, [c, jt] = _t(void 0), [z, y] = _t(void 0), [Ft, Tt] = _t(void 0), [mt, qt] = _t(void 0), et = At - p.left - p.right, Pt = Bt - p.top - p.bottom;
|
|
334
334
|
let Y;
|
|
335
335
|
if (t[8] !== s || t[9] !== N) {
|
|
336
|
-
const n = /* @__PURE__ */ new Set(), v = s.map((
|
|
337
|
-
const
|
|
338
|
-
return n.add(
|
|
339
|
-
...
|
|
340
|
-
id:
|
|
336
|
+
const n = /* @__PURE__ */ new Set(), v = s.map((r, b) => {
|
|
337
|
+
const G = N ? `${r.label}` : `${b}`;
|
|
338
|
+
return n.add(G), {
|
|
339
|
+
...r,
|
|
340
|
+
id: G
|
|
341
341
|
};
|
|
342
|
-
}),
|
|
343
|
-
let
|
|
344
|
-
t[11] !== s[0].size.length ? (
|
|
345
|
-
id:
|
|
346
|
-
label:
|
|
342
|
+
}), zt = N ? N.filter((r) => !n.has(r)) : [];
|
|
343
|
+
let wt;
|
|
344
|
+
t[11] !== s[0].size.length ? (wt = (r) => ({
|
|
345
|
+
id: r,
|
|
346
|
+
label: r,
|
|
347
347
|
size: Array(s[0].size.length).fill(null)
|
|
348
|
-
}), t[11] = s[0].size.length, t[12] =
|
|
348
|
+
}), t[11] = s[0].size.length, t[12] = wt) : wt = t[12], Y = [...v, ...zt.map(wt)], t[8] = s, t[9] = N, t[10] = Y;
|
|
349
349
|
} else
|
|
350
350
|
Y = t[10];
|
|
351
|
-
const
|
|
351
|
+
const it = Y;
|
|
352
352
|
let M;
|
|
353
|
-
t[13] !==
|
|
353
|
+
t[13] !== it || t[14] !== N ? (M = N ?? it.map(ki), t[13] = it, t[14] = N, t[15] = M) : M = t[15];
|
|
354
354
|
const bt = M;
|
|
355
|
-
let
|
|
356
|
-
if (t[16] !== a || t[17] !==
|
|
357
|
-
const n =
|
|
358
|
-
|
|
359
|
-
let
|
|
360
|
-
t[83] !==
|
|
361
|
-
const
|
|
355
|
+
let kt, ht, ft, pt, St, Ct, K, F, I, Lt, nt, lt, Q, gt;
|
|
356
|
+
if (t[16] !== a || t[17] !== T || t[18] !== P || t[19] !== bt || t[20] !== X || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== f || t[28] !== w || t[29] !== s[0].size || t[30] !== it || t[31] !== xt || t[32] !== Pt || t[33] !== et || t[34] !== Bt || t[35] !== at || t[36] !== tt || t[37] !== C || t[38] !== S || t[39] !== p.bottom || t[40] !== p.left || t[41] !== p.right || t[42] !== p.top || t[43] !== ot || t[44] !== Xt || t[45] !== k || t[46] !== z || t[47] !== h || t[48] !== _ || t[49] !== q || t[50] !== Nt || t[51] !== x || t[52] !== O || t[53] !== Ot || t[54] !== U || t[55] !== j || t[56] !== ut || t[57] !== $t || t[58] !== Z || t[59] !== u?.graphObjectValues || t[60] !== u?.xAxis?.axis || t[61] !== u?.xAxis?.labels || t[62] !== u?.yAxis?.gridLines || t[63] !== u?.yAxis?.labels || t[64] !== u?.yAxis?.title || t[65] !== R || t[66] !== W || t[67] !== J || t[68] !== At) {
|
|
357
|
+
const n = Pe().domain([k, Xt]).range([Pt, 0]).nice(), v = Le().domain(bt).range([0, ot ? Math.min(et, ot * bt.length) : et]).paddingInner(X), zt = Le().domain(s[0].size.map(Mi)).range([0, v.bandwidth()]).paddingInner(0.1), wt = n.ticks(_);
|
|
358
|
+
ht = te.svg, I = `${At}px`, Lt = `${Bt}px`, nt = `0 0 ${At} ${Bt}`, lt = "ltr", Q = yt, pt = `translate(${p.left},${p.top})`;
|
|
359
|
+
let r;
|
|
360
|
+
t[83] !== S || t[84] !== k || t[85] !== h || t[86] !== x || t[87] !== O || t[88] !== $t || t[89] !== R ? (r = $t ? we(k < 0 ? 0 : k, h, x, O, R, S) : void 0, t[83] = S, t[84] = k, t[85] = h, t[86] = x, t[87] = O, t[88] = $t, t[89] = R, t[90] = r) : r = t[90];
|
|
361
|
+
const b = l?.xAxis?.axis, G = l?.yAxis?.labels;
|
|
362
362
|
let Et;
|
|
363
|
-
t[91] !==
|
|
364
|
-
axis:
|
|
365
|
-
label:
|
|
366
|
-
}, t[91] =
|
|
367
|
-
const
|
|
363
|
+
t[91] !== b || t[92] !== G ? (Et = {
|
|
364
|
+
axis: b,
|
|
365
|
+
label: G
|
|
366
|
+
}, t[91] = b, t[92] = G, t[93] = Et) : Et = t[93];
|
|
367
|
+
const Ut = u?.xAxis?.axis, Jt = u?.yAxis?.labels;
|
|
368
368
|
let Zt;
|
|
369
|
-
t[94] !==
|
|
370
|
-
axis:
|
|
369
|
+
t[94] !== Ut || t[95] !== Jt ? (Zt = {
|
|
370
|
+
axis: Ut,
|
|
371
371
|
label: Jt
|
|
372
|
-
}, t[94] =
|
|
372
|
+
}, t[94] = Ut, t[95] = Jt, t[96] = Zt) : Zt = t[96], St = /* @__PURE__ */ i.jsx(Te, { y1: n(k < 0 ? 0 : k), y2: n(k < 0 ? 0 : k), x1: 0 - C, x2: et + p.right, label: r, hideAxisLine: at, labelPos: {
|
|
373
373
|
x: 0 - C,
|
|
374
374
|
dx: 0,
|
|
375
375
|
dy: Xt < 0 ? "1em" : -5,
|
|
376
376
|
y: n(k < 0 ? 0 : k)
|
|
377
|
-
}, classNames: Et, styles: Zt }),
|
|
378
|
-
gridLines:
|
|
379
|
-
labels:
|
|
377
|
+
}, classNames: Et, styles: Zt }), Ct = $t ? /* @__PURE__ */ i.jsx(Qe, { values: wt.filter(Oi), y: wt.filter($i).map((L) => n(L)), x1: 0 - C, x2: et + p.right, styles: {
|
|
378
|
+
gridLines: u?.yAxis?.gridLines,
|
|
379
|
+
labels: u?.yAxis?.labels
|
|
380
380
|
}, classNames: {
|
|
381
381
|
gridLines: l?.yAxis?.gridLines,
|
|
382
382
|
labels: l?.yAxis?.labels
|
|
383
|
-
}, suffix:
|
|
384
|
-
const
|
|
385
|
-
t[97] !==
|
|
383
|
+
}, suffix: R, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x, locale: S }) : null;
|
|
384
|
+
const dt = 0 - C - 15, g = Pt / 2, V = u?.yAxis?.title, d = l?.yAxis?.title;
|
|
385
|
+
t[97] !== T || t[98] !== dt || t[99] !== g || t[100] !== V || t[101] !== d ? (K = /* @__PURE__ */ i.jsx(Se, { x: dt, y: g, style: V, className: d, text: T, rotate90: !0 }), t[97] = T, t[98] = dt, t[99] = g, t[100] = V, t[101] = d, t[102] = K) : K = t[102], t[103] !== w ? (F = w.filter(Ai).map(wi), t[103] = w, t[104] = F) : F = t[104], kt = He, gt = it.map((L) => ie(v(L.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { variants: {
|
|
386
386
|
initial: {
|
|
387
387
|
x: v(`${L.id}`),
|
|
388
388
|
y: 0
|
|
@@ -394,49 +394,49 @@ function vi(e) {
|
|
|
394
394
|
duration: a.duration
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
}, initial: "initial", animate:
|
|
397
|
+
}, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
|
|
398
398
|
opacity: 0,
|
|
399
399
|
transition: {
|
|
400
400
|
duration: a.duration
|
|
401
401
|
}
|
|
402
402
|
}, children: [
|
|
403
|
-
L.size.map((o,
|
|
403
|
+
L.size.map((o, $) => /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-g-with-hover", opacity: j ? P[$] === j ? 1 : 0.3 : 0.85, onMouseEnter: (m) => {
|
|
404
404
|
jt({
|
|
405
405
|
...L,
|
|
406
|
-
sizeIndex:
|
|
407
|
-
}),
|
|
406
|
+
sizeIndex: $
|
|
407
|
+
}), qt(m.clientY), Tt(m.clientX), Nt?.({
|
|
408
408
|
...L,
|
|
409
|
-
sizeIndex:
|
|
409
|
+
sizeIndex: $
|
|
410
410
|
});
|
|
411
|
-
}, onMouseMove: (
|
|
411
|
+
}, onMouseMove: (m) => {
|
|
412
412
|
jt({
|
|
413
413
|
...L,
|
|
414
|
-
sizeIndex:
|
|
415
|
-
}),
|
|
414
|
+
sizeIndex: $
|
|
415
|
+
}), qt(m.clientY), Tt(m.clientX);
|
|
416
416
|
}, onMouseLeave: () => {
|
|
417
|
-
jt(void 0), Tt(void 0),
|
|
417
|
+
jt(void 0), Tt(void 0), qt(void 0), Nt?.(void 0);
|
|
418
418
|
}, onClick: () => {
|
|
419
|
-
(
|
|
419
|
+
(q || xt) && (Ne(z, {
|
|
420
420
|
...L,
|
|
421
|
-
sizeIndex:
|
|
422
|
-
}) &&
|
|
421
|
+
sizeIndex: $
|
|
422
|
+
}) && U ? (y(void 0), q?.(void 0)) : (y({
|
|
423
423
|
...L,
|
|
424
|
-
sizeIndex:
|
|
425
|
-
}),
|
|
424
|
+
sizeIndex: $
|
|
425
|
+
}), q && q({
|
|
426
426
|
...L,
|
|
427
|
-
sizeIndex:
|
|
427
|
+
sizeIndex: $
|
|
428
428
|
})));
|
|
429
429
|
}, children: [
|
|
430
|
-
/* @__PURE__ */ i.jsx(
|
|
430
|
+
/* @__PURE__ */ i.jsx(te.rect, { x: zt(`${$}`), width: zt.bandwidth(), variants: {
|
|
431
431
|
initial: {
|
|
432
432
|
height: 0,
|
|
433
433
|
y: n(0),
|
|
434
|
-
fill: P[
|
|
434
|
+
fill: P[$]
|
|
435
435
|
},
|
|
436
436
|
whileInView: {
|
|
437
|
-
height:
|
|
438
|
-
y:
|
|
439
|
-
fill: P[
|
|
437
|
+
height: ie(o) ? 0 : Math.abs(n(o) - n(0)),
|
|
438
|
+
y: ie(o) ? n(0) : o > 0 ? n(o) : n(0),
|
|
439
|
+
fill: P[$],
|
|
440
440
|
transition: {
|
|
441
441
|
duration: a.duration
|
|
442
442
|
}
|
|
@@ -447,284 +447,290 @@ function vi(e) {
|
|
|
447
447
|
transition: {
|
|
448
448
|
duration: a.duration
|
|
449
449
|
}
|
|
450
|
-
}, initial: "initial", animate:
|
|
451
|
-
|
|
450
|
+
}, initial: "initial", animate: tt ? "whileInView" : "initial" }),
|
|
451
|
+
Z ? /* @__PURE__ */ i.jsx(te.text, { x: zt(`${$}`) + zt.bandwidth() / 2, style: {
|
|
452
452
|
textAnchor: "middle",
|
|
453
|
-
...
|
|
453
|
+
...u?.graphObjectValues || {}
|
|
454
454
|
}, className: Ce("graph-value text-sm", l?.graphObjectValues), dy: o ? o >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
455
455
|
initial: {
|
|
456
456
|
y: n(0),
|
|
457
457
|
opacity: 0,
|
|
458
|
-
fill:
|
|
458
|
+
fill: J || P[$]
|
|
459
459
|
},
|
|
460
460
|
whileInView: {
|
|
461
461
|
y: n(o || 0),
|
|
462
462
|
opacity: 1,
|
|
463
|
-
fill:
|
|
463
|
+
fill: J || P[$],
|
|
464
464
|
transition: {
|
|
465
465
|
duration: a.duration
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
}, initial: "initial", animate:
|
|
468
|
+
}, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
|
|
469
469
|
opacity: 0,
|
|
470
470
|
transition: {
|
|
471
471
|
duration: a.duration
|
|
472
472
|
}
|
|
473
|
-
}, children: we(o,
|
|
474
|
-
] }, `${L.label}-${
|
|
475
|
-
|
|
476
|
-
] }, L.label)),
|
|
473
|
+
}, children: we(o, h, x, O, R, S) }) : null
|
|
474
|
+
] }, `${L.label}-${f[$] || $}`)),
|
|
475
|
+
ut ? /* @__PURE__ */ i.jsx(Ze, { value: `${L.label}`.length < W ? `${L.label}` : `${`${L.label}`.substring(0, W)}...`, y: n(0) + 5, x: 0, width: v.bandwidth(), height: p.bottom, style: u?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: a, isInView: tt }) : null
|
|
476
|
+
] }, L.label)), ft = Ot ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ot.map((L, o) => /* @__PURE__ */ i.jsx(Ke, { text: L.text, color: L.color, y: n(L.value), x1: 0 - C, x2: et + p.right, classNames: L.classNames, styles: L.styles, animate: a, isInView: tt }, o)) }) : null, t[16] = a, t[17] = T, t[18] = P, t[19] = bt, t[20] = X, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = f, t[28] = w, t[29] = s[0].size, t[30] = it, t[31] = xt, t[32] = Pt, t[33] = et, t[34] = Bt, t[35] = at, t[36] = tt, t[37] = C, t[38] = S, t[39] = p.bottom, t[40] = p.left, t[41] = p.right, t[42] = p.top, t[43] = ot, t[44] = Xt, t[45] = k, t[46] = z, t[47] = h, t[48] = _, t[49] = q, t[50] = Nt, t[51] = x, t[52] = O, t[53] = Ot, t[54] = U, t[55] = j, t[56] = ut, t[57] = $t, t[58] = Z, t[59] = u?.graphObjectValues, t[60] = u?.xAxis?.axis, t[61] = u?.xAxis?.labels, t[62] = u?.yAxis?.gridLines, t[63] = u?.yAxis?.labels, t[64] = u?.yAxis?.title, t[65] = R, t[66] = W, t[67] = J, t[68] = At, t[69] = kt, t[70] = ht, t[71] = ft, t[72] = pt, t[73] = St, t[74] = Ct, t[75] = K, t[76] = F, t[77] = I, t[78] = Lt, t[79] = nt, t[80] = lt, t[81] = Q, t[82] = gt;
|
|
477
477
|
} else
|
|
478
|
-
|
|
478
|
+
kt = t[69], ht = t[70], ft = t[71], pt = t[72], St = t[73], Ct = t[74], K = t[75], F = t[76], I = t[77], Lt = t[78], nt = t[79], lt = t[80], Q = t[81], gt = t[82];
|
|
479
|
+
let rt;
|
|
480
|
+
t[105] !== kt || t[106] !== ft || t[107] !== gt ? (rt = /* @__PURE__ */ i.jsxs(kt, { children: [
|
|
481
|
+
gt,
|
|
482
|
+
ft
|
|
483
|
+
] }), t[105] = kt, t[106] = ft, t[107] = gt, t[108] = rt) : rt = t[108];
|
|
479
484
|
let E;
|
|
480
|
-
t[
|
|
481
|
-
ct,
|
|
482
|
-
ht
|
|
483
|
-
] }), t[105] = Lt, t[106] = ht, t[107] = ct, t[108] = E) : E = t[108];
|
|
485
|
+
t[109] !== w ? (E = w.filter(vi).map(bi), t[109] = w, t[110] = E) : E = t[110];
|
|
484
486
|
let vt;
|
|
485
|
-
t[
|
|
486
|
-
let wt;
|
|
487
|
-
t[111] !== ft || t[112] !== St || t[113] !== Vt || t[114] !== J || t[115] !== j || t[116] !== E || t[117] !== vt ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
|
|
487
|
+
t[111] !== pt || t[112] !== St || t[113] !== Ct || t[114] !== K || t[115] !== F || t[116] !== rt || t[117] !== E ? (vt = /* @__PURE__ */ i.jsxs("g", { transform: pt, children: [
|
|
488
488
|
St,
|
|
489
|
-
|
|
490
|
-
J,
|
|
491
|
-
j,
|
|
492
|
-
E,
|
|
493
|
-
vt
|
|
494
|
-
] }), t[111] = ft, t[112] = St, t[113] = Vt, t[114] = J, t[115] = j, t[116] = E, t[117] = vt, t[118] = wt) : wt = t[118];
|
|
495
|
-
let K;
|
|
496
|
-
t[119] !== mt || t[120] !== I || t[121] !== zt || t[122] !== pt || t[123] !== ot || t[124] !== rt || t[125] !== wt ? (K = /* @__PURE__ */ i.jsx(mt, { width: I, height: zt, viewBox: pt, direction: ot, ref: rt, children: wt }), t[119] = mt, t[120] = I, t[121] = zt, t[122] = pt, t[123] = ot, t[124] = rt, t[125] = wt, t[126] = K) : K = t[126];
|
|
497
|
-
let gt;
|
|
498
|
-
t[127] !== l?.tooltip || t[128] !== Ft || t[129] !== xt || t[130] !== r || t[131] !== c?.tooltip || t[132] !== st ? (gt = r && st && Ft && xt ? /* @__PURE__ */ i.jsx(Se, { data: r, body: st, xPos: Ft, yPos: xt, backgroundStyle: c?.tooltip, className: l?.tooltip }) : null, t[127] = l?.tooltip, t[128] = Ft, t[129] = xt, t[130] = r, t[131] = c?.tooltip, t[132] = st, t[133] = gt) : gt = t[133];
|
|
499
|
-
let $;
|
|
500
|
-
t[134] !== l?.modal || t[135] !== ut || t[136] !== z ? ($ = ut && z !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: ut, data: z, setData: y, className: l?.modal }) : null, t[134] = l?.modal, t[135] = ut, t[136] = z, t[137] = $) : $ = t[137];
|
|
501
|
-
let Ht;
|
|
502
|
-
return t[138] !== K || t[139] !== gt || t[140] !== $ ? (Ht = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
489
|
+
Ct,
|
|
503
490
|
K,
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
491
|
+
F,
|
|
492
|
+
rt,
|
|
493
|
+
E
|
|
494
|
+
] }), t[111] = pt, t[112] = St, t[113] = Ct, t[114] = K, t[115] = F, t[116] = rt, t[117] = E, t[118] = vt) : vt = t[118];
|
|
495
|
+
let Vt;
|
|
496
|
+
t[119] !== ht || t[120] !== I || t[121] !== Lt || t[122] !== nt || t[123] !== lt || t[124] !== Q || t[125] !== vt ? (Vt = /* @__PURE__ */ i.jsx(ht, { width: I, height: Lt, viewBox: nt, direction: lt, ref: Q, children: vt }), t[119] = ht, t[120] = I, t[121] = Lt, t[122] = nt, t[123] = lt, t[124] = Q, t[125] = vt, t[126] = Vt) : Vt = t[126];
|
|
497
|
+
let ct;
|
|
498
|
+
t[127] !== l?.tooltip || t[128] !== Ft || t[129] !== mt || t[130] !== c || t[131] !== u?.tooltip || t[132] !== st ? (ct = c && st && Ft && mt ? /* @__PURE__ */ i.jsx(je, { data: c, body: st, xPos: Ft, yPos: mt, backgroundStyle: u?.tooltip, className: l?.tooltip }) : null, t[127] = l?.tooltip, t[128] = Ft, t[129] = mt, t[130] = c, t[131] = u?.tooltip, t[132] = st, t[133] = ct) : ct = t[133];
|
|
499
|
+
let A;
|
|
500
|
+
t[134] !== l?.modal || t[135] !== xt || t[136] !== z ? (A = xt && z !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: xt, data: z, setData: y, className: l?.modal }) : null, t[134] = l?.modal, t[135] = xt, t[136] = z, t[137] = A) : A = t[137];
|
|
501
|
+
let Wt;
|
|
502
|
+
return t[138] !== Vt || t[139] !== ct || t[140] !== A ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
503
|
+
Vt,
|
|
504
|
+
ct,
|
|
505
|
+
A
|
|
506
|
+
] }), t[138] = Vt, t[139] = ct, t[140] = A, t[141] = Wt) : Wt = t[141], Wt;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function bi(e) {
|
|
509
509
|
return e.layer;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function vi(e) {
|
|
512
512
|
return e.position === "after";
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function wi(e) {
|
|
515
515
|
return e.layer;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Ai(e) {
|
|
518
518
|
return e.position === "before";
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function $i(e) {
|
|
521
521
|
return e !== 0;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Oi(e) {
|
|
524
524
|
return e !== 0;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Mi(e, t) {
|
|
527
527
|
return `${t}`;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function ki(e) {
|
|
530
530
|
return `${e.id}`;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Ci(e) {
|
|
533
533
|
const t = $e.c(127), {
|
|
534
534
|
data: s,
|
|
535
535
|
graphTitle: H,
|
|
536
|
-
colors:
|
|
536
|
+
colors: Gt,
|
|
537
537
|
sources: Kt,
|
|
538
|
-
graphDescription:
|
|
539
|
-
barPadding:
|
|
538
|
+
graphDescription: It,
|
|
539
|
+
barPadding: At,
|
|
540
540
|
showTicks: Bt,
|
|
541
541
|
truncateBy: P,
|
|
542
|
-
height:
|
|
542
|
+
height: R,
|
|
543
543
|
width: O,
|
|
544
544
|
footNote: X,
|
|
545
|
-
colorDomain:
|
|
546
|
-
colorLegendTitle:
|
|
547
|
-
suffix:
|
|
545
|
+
colorDomain: ut,
|
|
546
|
+
colorLegendTitle: Z,
|
|
547
|
+
suffix: $t,
|
|
548
548
|
prefix: W,
|
|
549
549
|
showValues: st,
|
|
550
|
-
showColorScale:
|
|
551
|
-
padding:
|
|
550
|
+
showColorScale: Nt,
|
|
551
|
+
padding: Ot,
|
|
552
552
|
backgroundColor: Xt,
|
|
553
553
|
leftMargin: k,
|
|
554
|
-
rightMargin:
|
|
555
|
-
topMargin:
|
|
554
|
+
rightMargin: q,
|
|
555
|
+
topMargin: j,
|
|
556
556
|
bottomMargin: N,
|
|
557
|
-
showLabels:
|
|
558
|
-
relativeHeight:
|
|
559
|
-
tooltip:
|
|
560
|
-
onSeriesMouseOver:
|
|
561
|
-
refValues:
|
|
562
|
-
graphID:
|
|
563
|
-
maxValue:
|
|
557
|
+
showLabels: ot,
|
|
558
|
+
relativeHeight: U,
|
|
559
|
+
tooltip: xt,
|
|
560
|
+
onSeriesMouseOver: T,
|
|
561
|
+
refValues: J,
|
|
562
|
+
graphID: _,
|
|
563
|
+
maxValue: u,
|
|
564
564
|
minValue: l,
|
|
565
565
|
onSeriesMouseClick: a,
|
|
566
|
-
graphDownload:
|
|
567
|
-
dataDownload:
|
|
568
|
-
language:
|
|
569
|
-
labelOrder:
|
|
566
|
+
graphDownload: f,
|
|
567
|
+
dataDownload: x,
|
|
568
|
+
language: w,
|
|
569
|
+
labelOrder: h,
|
|
570
570
|
minHeight: at,
|
|
571
|
-
theme:
|
|
571
|
+
theme: S,
|
|
572
572
|
maxBarThickness: C,
|
|
573
|
-
ariaLabel:
|
|
574
|
-
resetSelectionOnDoubleClick:
|
|
575
|
-
detailsOnClick:
|
|
573
|
+
ariaLabel: Ht,
|
|
574
|
+
resetSelectionOnDoubleClick: Rt,
|
|
575
|
+
detailsOnClick: Mt,
|
|
576
576
|
barAxisTitle: yt,
|
|
577
577
|
noOfTicks: Yt,
|
|
578
|
-
valueColor:
|
|
578
|
+
valueColor: tt,
|
|
579
579
|
styles: D,
|
|
580
|
-
classNames:
|
|
581
|
-
filterNA:
|
|
582
|
-
animate:
|
|
580
|
+
classNames: B,
|
|
581
|
+
filterNA: p,
|
|
582
|
+
animate: c,
|
|
583
583
|
precision: jt,
|
|
584
584
|
customLayers: z,
|
|
585
585
|
timeline: y,
|
|
586
586
|
naLabel: Ft,
|
|
587
587
|
sortParameter: Tt,
|
|
588
|
-
sortData:
|
|
589
|
-
orientation:
|
|
590
|
-
hideAxisLine:
|
|
588
|
+
sortData: mt,
|
|
589
|
+
orientation: qt,
|
|
590
|
+
hideAxisLine: et,
|
|
591
591
|
locale: Pt
|
|
592
|
-
} = e, Y =
|
|
593
|
-
let
|
|
594
|
-
t[0] !== z ? (
|
|
595
|
-
const
|
|
596
|
-
let
|
|
597
|
-
t[2] !== y ? (
|
|
592
|
+
} = e, Y = Gt === void 0 ? ye.light.categoricalColors.colors : Gt, it = At === void 0 ? 0.25 : At, M = Bt === void 0 ? !0 : Bt, bt = P === void 0 ? 999 : P, kt = $t === void 0 ? "" : $t, ht = W === void 0 ? "" : W, ft = st === void 0 ? !0 : st, pt = Nt === void 0 ? !0 : Nt, St = Xt === void 0 ? !1 : Xt, Ct = ot === void 0 ? !0 : ot, K = f === void 0 ? !1 : f, F = x === void 0 ? !1 : x, I = w === void 0 ? "en" : w, Lt = at === void 0 ? 0 : at, nt = S === void 0 ? "light" : S, lt = Rt === void 0 ? !0 : Rt, Q = Yt === void 0 ? 5 : Yt, gt = p === void 0 ? !0 : p, rt = c === void 0 ? !1 : c, E = jt === void 0 ? 2 : jt;
|
|
593
|
+
let vt;
|
|
594
|
+
t[0] !== z ? (vt = z === void 0 ? [] : z, t[0] = z, t[1] = vt) : vt = t[1];
|
|
595
|
+
const Vt = vt;
|
|
596
|
+
let ct;
|
|
597
|
+
t[2] !== y ? (ct = y === void 0 ? {
|
|
598
598
|
enabled: !1,
|
|
599
599
|
autoplay: !1,
|
|
600
600
|
showOnlyActiveDate: !0
|
|
601
|
-
} : y, t[2] = y, t[3] =
|
|
602
|
-
const
|
|
601
|
+
} : y, t[2] = y, t[3] = ct) : ct = t[3];
|
|
602
|
+
const A = ct, Wt = Ft === void 0 ? "NA" : Ft, n = qt === void 0 ? "vertical" : qt, v = et === void 0 ? !1 : et, zt = Pt === void 0 ? "en" : Pt, wt = n === "horizontal" ? ci : yi, [r, b] = _t(0), [G, Et] = _t(0), [Ut, Jt] = _t(A.autoplay);
|
|
603
603
|
let Zt;
|
|
604
|
-
if (t[4] !== s || t[5] !==
|
|
604
|
+
if (t[4] !== s || t[5] !== A.dateFormat) {
|
|
605
605
|
let Qt;
|
|
606
|
-
t[7] !==
|
|
606
|
+
t[7] !== A.dateFormat ? (Qt = (Dt) => Re(`${Dt.date}`, A.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = A.dateFormat, t[8] = Qt) : Qt = t[8], Zt = [...new Set(s.filter(qi).map(Qt))], Zt.sort(Ri), t[4] = s, t[5] = A.dateFormat, t[6] = Zt;
|
|
607
607
|
} else
|
|
608
608
|
Zt = t[6];
|
|
609
|
-
const
|
|
610
|
-
let
|
|
611
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
612
|
-
const Qt = new ResizeObserver((
|
|
613
|
-
|
|
609
|
+
const dt = Zt, [g, V] = _t(A.autoplay ? 0 : dt.length - 1), [d, L] = _t(void 0), o = Ae(null), $ = Ae(null);
|
|
610
|
+
let m, he;
|
|
611
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = () => {
|
|
612
|
+
const Qt = new ResizeObserver((Dt) => {
|
|
613
|
+
b(Dt[0].target.clientWidth || 620), Et(Dt[0].target.clientHeight || 480);
|
|
614
614
|
});
|
|
615
615
|
return o.current && Qt.observe(o.current), () => Qt.disconnect();
|
|
616
|
-
},
|
|
617
|
-
let
|
|
618
|
-
t[11] !==
|
|
616
|
+
}, he = [], t[9] = m, t[10] = he) : (m = t[9], he = t[10]), Ie(m, he);
|
|
617
|
+
let oe, Oe;
|
|
618
|
+
t[11] !== Ut || t[12] !== A.speed || t[13] !== dt ? (oe = () => {
|
|
619
619
|
const Qt = setInterval(() => {
|
|
620
|
-
V((
|
|
621
|
-
}, (
|
|
622
|
-
return
|
|
623
|
-
},
|
|
624
|
-
const be =
|
|
625
|
-
let
|
|
626
|
-
t[16] !==
|
|
627
|
-
const
|
|
620
|
+
V((Dt) => Dt < dt.length - 1 ? Dt + 1 : 0);
|
|
621
|
+
}, (A.speed || 2) * 1e3);
|
|
622
|
+
return Ut || clearInterval(Qt), () => clearInterval(Qt);
|
|
623
|
+
}, Oe = [dt, Ut, A.speed], t[11] = Ut, t[12] = A.speed, t[13] = dt, t[14] = oe, t[15] = Oe) : (oe = t[14], Oe = t[15]), Ie(oe, Oe);
|
|
624
|
+
const be = A.dateFormat || "yyyy";
|
|
625
|
+
let Me;
|
|
626
|
+
t[16] !== g || t[17] !== be || t[18] !== A.showOnlyActiveDate || t[19] !== dt ? (Me = Ee(dt, g, A.showOnlyActiveDate, be), t[16] = g, t[17] = be, t[18] = A.showOnlyActiveDate, t[19] = dt, t[20] = Me) : Me = t[20];
|
|
627
|
+
const pe = Me, ge = B?.graphContainer, ve = D?.graphContainer;
|
|
628
628
|
let fe;
|
|
629
|
-
t[21] !==
|
|
629
|
+
t[21] !== B?.description || t[22] !== B?.title || t[23] !== s || t[24] !== F || t[25] !== It || t[26] !== K || t[27] !== H || t[28] !== D?.description || t[29] !== D?.title || t[30] !== O ? (fe = H || It || K || F ? /* @__PURE__ */ i.jsx(_e, { styles: {
|
|
630
630
|
title: D?.title,
|
|
631
631
|
description: D?.description
|
|
632
632
|
}, classNames: {
|
|
633
|
-
title:
|
|
634
|
-
description:
|
|
635
|
-
}, graphTitle: H, graphDescription:
|
|
636
|
-
let
|
|
637
|
-
t[32] !==
|
|
633
|
+
title: B?.title,
|
|
634
|
+
description: B?.description
|
|
635
|
+
}, graphTitle: H, graphDescription: It, width: O, graphDownload: K ? $ : void 0, dataDownload: F ? s.map(Gi).filter(Ei).length > 0 ? s.map(Yi).filter(Xi) : s.filter(Wi) : null }) : null, t[21] = B?.description, t[22] = B?.title, t[23] = s, t[24] = F, t[25] = It, t[26] = K, t[27] = H, t[28] = D?.description, t[29] = D?.title, t[30] = O, t[31] = fe) : fe = t[31];
|
|
636
|
+
let de;
|
|
637
|
+
t[32] !== g || t[33] !== pe || t[34] !== Ut || t[35] !== A.enabled || t[36] !== dt ? (de = A.enabled && dt.length > 0 && pe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
638
638
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
639
|
-
Jt(!
|
|
640
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
641
|
-
/* @__PURE__ */ i.jsx(
|
|
642
|
-
V(
|
|
639
|
+
Jt(!Ut);
|
|
640
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Ut ? "Click to pause animation" : "Click to play animation", children: Ut ? /* @__PURE__ */ i.jsx(li, {}) : /* @__PURE__ */ i.jsx(si, {}) }),
|
|
641
|
+
/* @__PURE__ */ i.jsx(Ge, { min: dt[0], max: dt[dt.length - 1], marks: pe, step: null, defaultValue: dt[dt.length - 1], value: dt[g], onChangeComplete: (Qt) => {
|
|
642
|
+
V(dt.indexOf(Qt));
|
|
643
643
|
}, onChange: (Qt) => {
|
|
644
|
-
V(
|
|
644
|
+
V(dt.indexOf(Qt));
|
|
645
645
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
646
|
-
] }) : null, t[32] =
|
|
646
|
+
] }) : null, t[32] = g, t[33] = pe, t[34] = Ut, t[35] = A.enabled, t[36] = dt, t[37] = de) : de = t[37];
|
|
647
647
|
let ne;
|
|
648
|
-
t[38] !==
|
|
649
|
-
let ue;
|
|
650
|
-
t[46] !== s.length ? (ue = s.length === 0 && /* @__PURE__ */ i.jsx(si, {}), t[46] = s.length, t[47] = ue) : ue = t[47];
|
|
648
|
+
t[38] !== B?.colorLegend || t[39] !== ut || t[40] !== Z || t[41] !== Y || t[42] !== s.length || t[43] !== pt || t[44] !== O ? (ne = pt && s.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: O, colorDomain: ut, colors: Y, colorLegendTitle: Z, setSelectedColor: L, showNAColor: !1, className: B?.colorLegend }) : null, t[38] = B?.colorLegend, t[39] = ut, t[40] = Z, t[41] = Y, t[42] = s.length, t[43] = pt, t[44] = O, t[45] = ne) : ne = t[45];
|
|
651
649
|
let re;
|
|
652
|
-
t[
|
|
650
|
+
t[46] !== s.length ? (re = s.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = s.length, t[47] = re) : re = t[47];
|
|
651
|
+
let ue;
|
|
652
|
+
t[48] !== wt || t[49] !== rt || t[50] !== yt || t[51] !== it || t[52] !== N || t[53] !== B || t[54] !== ut || t[55] !== Y || t[56] !== Vt || t[57] !== s || t[58] !== Mt || t[59] !== gt || t[60] !== v || t[61] !== g || t[62] !== h || t[63] !== I || t[64] !== k || t[65] !== zt || t[66] !== C || t[67] !== u || t[68] !== l || t[69] !== Wt || t[70] !== Q || t[71] !== a || t[72] !== T || t[73] !== E || t[74] !== ht || t[75] !== J || t[76] !== lt || t[77] !== q || t[78] !== d || t[79] !== Ct || t[80] !== M || t[81] !== ft || t[82] !== mt || t[83] !== Tt || t[84] !== D || t[85] !== kt || t[86] !== G || t[87] !== r || t[88] !== A.dateFormat || t[89] !== A.enabled || t[90] !== xt || t[91] !== j || t[92] !== bt || t[93] !== dt || t[94] !== tt ? (ue = r && G && s.length > 0 ? /* @__PURE__ */ i.jsx(wt, { hideAxisLine: v, data: Tt !== void 0 ? Tt === "total" ? We(De(s, A.dateFormat || "yyyy").filter((Qt) => A.enabled ? `${Qt.date}` === Ve(new Date(dt[g]), A.dateFormat || "yyyy") : Qt).filter((Qt) => gt ? !Qt.size.every(Hi) : Qt), Fi, [mt || "asc"]) : We(De(s, A.dateFormat || "yyyy").filter((Qt) => A.enabled ? `${Qt.date}` === Ve(new Date(dt[g]), A.dateFormat || "yyyy") : Qt).filter((Qt) => gt ? !Qt.size.every(Bi) : Qt), (Qt) => ie(Qt.size[Tt]) ? -1 / 0 : Qt.size[Tt], [mt || "asc"]) : De(s, A.dateFormat || "yyyy").filter((Qt) => gt ? !Qt.size.every(Si) : Qt), barColors: Y, width: r, height: G, suffix: kt, prefix: ht, showValues: ft, barPadding: it, showTicks: M, leftMargin: k, rightMargin: q, topMargin: j, bottomMargin: N, truncateBy: bt, showLabels: Ct, tooltip: xt, onSeriesMouseOver: T, refValues: J, maxValue: ie(u) ? Math.max(...s.map(ji)) < 0 ? 0 : Math.max(...s.map(Ii)) : u, minValue: ie(l) ? Math.min(...s.map(zi)) >= 0 ? 0 : Math.min(...s.map(Li)) : l, onSeriesMouseClick: a, selectedColor: d, labelOrder: h, rtl: I === "he" || I === "ar", maxBarThickness: C, resetSelectionOnDoubleClick: lt, detailsOnClick: Mt, barAxisTitle: yt, noOfTicks: Q, valueColor: tt, styles: D, classNames: B, colorDomain: ut, animate: rt === !0 ? {
|
|
653
653
|
duration: 0.5,
|
|
654
654
|
once: !0,
|
|
655
655
|
amount: 0.5
|
|
656
|
-
} :
|
|
656
|
+
} : rt || {
|
|
657
657
|
duration: 0,
|
|
658
658
|
once: !0,
|
|
659
659
|
amount: 0
|
|
660
|
-
}, precision:
|
|
661
|
-
let ce;
|
|
662
|
-
t[96] !== ue || t[97] !== re ? (ce = /* @__PURE__ */ i.jsxs(ni, { ref: o, children: [
|
|
663
|
-
ue,
|
|
664
|
-
re
|
|
665
|
-
] }), t[96] = ue, t[97] = re, t[98] = ce) : ce = t[98];
|
|
660
|
+
}, precision: E, customLayers: Vt, naLabel: Wt, locale: zt }) : null, t[48] = wt, t[49] = rt, t[50] = yt, t[51] = it, t[52] = N, t[53] = B, t[54] = ut, t[55] = Y, t[56] = Vt, t[57] = s, t[58] = Mt, t[59] = gt, t[60] = v, t[61] = g, t[62] = h, t[63] = I, t[64] = k, t[65] = zt, t[66] = C, t[67] = u, t[68] = l, t[69] = Wt, t[70] = Q, t[71] = a, t[72] = T, t[73] = E, t[74] = ht, t[75] = J, t[76] = lt, t[77] = q, t[78] = d, t[79] = Ct, t[80] = M, t[81] = ft, t[82] = mt, t[83] = Tt, t[84] = D, t[85] = kt, t[86] = G, t[87] = r, t[88] = A.dateFormat, t[89] = A.enabled, t[90] = xt, t[91] = j, t[92] = bt, t[93] = dt, t[94] = tt, t[95] = ue) : ue = t[95];
|
|
666
661
|
let xe;
|
|
667
|
-
t[
|
|
662
|
+
t[96] !== re || t[97] !== ue ? (xe = /* @__PURE__ */ i.jsxs(ai, { ref: o, children: [
|
|
663
|
+
re,
|
|
664
|
+
ue
|
|
665
|
+
] }), t[96] = re, t[97] = ue, t[98] = xe) : xe = t[98];
|
|
666
|
+
let le;
|
|
667
|
+
t[99] !== ne || t[100] !== xe ? (le = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
|
|
668
668
|
ne,
|
|
669
|
-
|
|
670
|
-
] }), t[99] = ne, t[100] =
|
|
671
|
-
let
|
|
672
|
-
t[102] !==
|
|
669
|
+
xe
|
|
670
|
+
] }), t[99] = ne, t[100] = xe, t[101] = le) : le = t[101];
|
|
671
|
+
let se;
|
|
672
|
+
t[102] !== B?.footnote || t[103] !== B?.source || t[104] !== X || t[105] !== Kt || t[106] !== D?.footnote || t[107] !== D?.source || t[108] !== O ? (se = Kt || X ? /* @__PURE__ */ i.jsx(ti, { styles: {
|
|
673
673
|
footnote: D?.footnote,
|
|
674
674
|
source: D?.source
|
|
675
675
|
}, classNames: {
|
|
676
|
-
footnote:
|
|
677
|
-
source:
|
|
678
|
-
}, sources: Kt, footNote: X, width: O }) : null, t[102] =
|
|
679
|
-
let
|
|
680
|
-
return t[110] !==
|
|
676
|
+
footnote: B?.footnote,
|
|
677
|
+
source: B?.source
|
|
678
|
+
}, sources: Kt, footNote: X, width: O }) : null, t[102] = B?.footnote, t[103] = B?.source, t[104] = X, t[105] = Kt, t[106] = D?.footnote, t[107] = D?.source, t[108] = O, t[109] = se) : se = t[109];
|
|
679
|
+
let ce;
|
|
680
|
+
return t[110] !== Ht || t[111] !== St || t[112] !== _ || t[113] !== R || t[114] !== I || t[115] !== Lt || t[116] !== Ot || t[117] !== U || t[118] !== ge || t[119] !== ve || t[120] !== fe || t[121] !== de || t[122] !== le || t[123] !== se || t[124] !== nt || t[125] !== O ? (ce = /* @__PURE__ */ i.jsxs(oi, { className: ge, style: ve, id: _, ref: $, "aria-label": Ht, backgroundColor: St, theme: nt, language: I, minHeight: Lt, width: O, height: R, relativeHeight: U, padding: Ot, children: [
|
|
681
681
|
fe,
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
] }), t[110] =
|
|
682
|
+
de,
|
|
683
|
+
le,
|
|
684
|
+
se
|
|
685
|
+
] }), t[110] = Ht, t[111] = St, t[112] = _, t[113] = R, t[114] = I, t[115] = Lt, t[116] = Ot, t[117] = U, t[118] = ge, t[119] = ve, t[120] = fe, t[121] = de, t[122] = le, t[123] = se, t[124] = nt, t[125] = O, t[126] = ce) : ce = t[126], ce;
|
|
686
|
+
}
|
|
687
|
+
function Li(e) {
|
|
688
|
+
return Math.min(...e.size.filter(Vi));
|
|
689
|
+
}
|
|
690
|
+
function Vi(e) {
|
|
691
|
+
return !ie(e);
|
|
686
692
|
}
|
|
687
693
|
function zi(e) {
|
|
688
694
|
return Math.min(...e.size.filter(Di));
|
|
689
695
|
}
|
|
690
696
|
function Di(e) {
|
|
691
|
-
return !
|
|
697
|
+
return !ie(e);
|
|
692
698
|
}
|
|
693
699
|
function Ii(e) {
|
|
694
|
-
return Math.
|
|
700
|
+
return Math.max(...e.size.filter(Ni));
|
|
695
701
|
}
|
|
696
702
|
function Ni(e) {
|
|
697
|
-
return !
|
|
703
|
+
return !ie(e);
|
|
698
704
|
}
|
|
699
705
|
function ji(e) {
|
|
700
706
|
return Math.max(...e.size.filter(Ti));
|
|
701
707
|
}
|
|
702
708
|
function Ti(e) {
|
|
703
|
-
return !
|
|
709
|
+
return !ie(e);
|
|
704
710
|
}
|
|
705
711
|
function Si(e) {
|
|
706
|
-
return
|
|
712
|
+
return e == null;
|
|
707
713
|
}
|
|
708
714
|
function Bi(e) {
|
|
709
|
-
return
|
|
715
|
+
return e == null;
|
|
710
716
|
}
|
|
711
717
|
function Fi(e) {
|
|
712
|
-
return e
|
|
718
|
+
return me(e.size.filter(Pi));
|
|
713
719
|
}
|
|
714
720
|
function Pi(e) {
|
|
715
|
-
return e
|
|
721
|
+
return !ie(e);
|
|
716
722
|
}
|
|
717
723
|
function Hi(e) {
|
|
718
|
-
return
|
|
724
|
+
return e == null;
|
|
719
725
|
}
|
|
720
726
|
function Wi(e) {
|
|
721
|
-
return
|
|
727
|
+
return e !== void 0;
|
|
722
728
|
}
|
|
723
729
|
function Xi(e) {
|
|
724
|
-
return e
|
|
730
|
+
return e !== void 0;
|
|
725
731
|
}
|
|
726
732
|
function Yi(e) {
|
|
727
|
-
return e
|
|
733
|
+
return e.data;
|
|
728
734
|
}
|
|
729
735
|
function Ei(e) {
|
|
730
736
|
return e !== void 0;
|
|
@@ -732,273 +738,267 @@ function Ei(e) {
|
|
|
732
738
|
function Gi(e) {
|
|
733
739
|
return e.data;
|
|
734
740
|
}
|
|
735
|
-
function Ri(e) {
|
|
736
|
-
return e !== void 0;
|
|
737
|
-
}
|
|
738
|
-
function qi(e) {
|
|
739
|
-
return e.data;
|
|
740
|
-
}
|
|
741
|
-
function Ui(e, t) {
|
|
741
|
+
function Ri(e, t) {
|
|
742
742
|
return e - t;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function qi(e) {
|
|
745
745
|
return e.date;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Ui(e) {
|
|
748
748
|
const t = $e.c(134), {
|
|
749
749
|
data: s,
|
|
750
750
|
barColor: H,
|
|
751
|
-
suffix:
|
|
751
|
+
suffix: Gt,
|
|
752
752
|
prefix: Kt,
|
|
753
|
-
barPadding:
|
|
754
|
-
showValues:
|
|
753
|
+
barPadding: It,
|
|
754
|
+
showValues: At,
|
|
755
755
|
showTicks: Bt,
|
|
756
756
|
truncateBy: P,
|
|
757
|
-
width:
|
|
757
|
+
width: R,
|
|
758
758
|
height: O,
|
|
759
759
|
colorDomain: X,
|
|
760
|
-
topMargin:
|
|
761
|
-
bottomMargin:
|
|
762
|
-
leftMargin:
|
|
760
|
+
topMargin: ut,
|
|
761
|
+
bottomMargin: Z,
|
|
762
|
+
leftMargin: $t,
|
|
763
763
|
rightMargin: W,
|
|
764
764
|
showLabels: st,
|
|
765
|
-
tooltip:
|
|
766
|
-
onSeriesMouseOver:
|
|
765
|
+
tooltip: Nt,
|
|
766
|
+
onSeriesMouseOver: Ot,
|
|
767
767
|
refValues: Xt,
|
|
768
768
|
selectedColor: k,
|
|
769
|
-
highlightedDataPoints:
|
|
770
|
-
maxValue:
|
|
769
|
+
highlightedDataPoints: q,
|
|
770
|
+
maxValue: j,
|
|
771
771
|
minValue: N,
|
|
772
|
-
onSeriesMouseClick:
|
|
773
|
-
labelOrder:
|
|
774
|
-
rtl:
|
|
775
|
-
maxBarThickness:
|
|
776
|
-
minBarThickness:
|
|
777
|
-
resetSelectionOnDoubleClick:
|
|
778
|
-
detailsOnClick:
|
|
772
|
+
onSeriesMouseClick: ot,
|
|
773
|
+
labelOrder: U,
|
|
774
|
+
rtl: xt,
|
|
775
|
+
maxBarThickness: T,
|
|
776
|
+
minBarThickness: J,
|
|
777
|
+
resetSelectionOnDoubleClick: _,
|
|
778
|
+
detailsOnClick: u,
|
|
779
779
|
barAxisTitle: l,
|
|
780
780
|
valueColor: a,
|
|
781
|
-
noOfTicks:
|
|
782
|
-
styles:
|
|
783
|
-
classNames:
|
|
784
|
-
animate:
|
|
781
|
+
noOfTicks: f,
|
|
782
|
+
styles: x,
|
|
783
|
+
classNames: w,
|
|
784
|
+
animate: h,
|
|
785
785
|
dimmedOpacity: at,
|
|
786
|
-
precision:
|
|
786
|
+
precision: S,
|
|
787
787
|
customLayers: C,
|
|
788
|
-
naLabel:
|
|
789
|
-
trackColor:
|
|
790
|
-
hideAxisLine:
|
|
788
|
+
naLabel: Ht,
|
|
789
|
+
trackColor: Rt,
|
|
790
|
+
hideAxisLine: Mt,
|
|
791
791
|
locale: yt
|
|
792
|
-
} = e, Yt =
|
|
793
|
-
let
|
|
794
|
-
t[0] !==
|
|
795
|
-
once:
|
|
796
|
-
amount:
|
|
797
|
-
}, t[0] =
|
|
798
|
-
const jt =
|
|
799
|
-
let
|
|
800
|
-
t[3] !==
|
|
792
|
+
} = e, Yt = ut === void 0 ? 25 : ut, tt = Z === void 0 ? 10 : Z, D = $t === void 0 ? 100 : $t, B = W === void 0 ? 40 : W, p = Ae(null);
|
|
793
|
+
let c;
|
|
794
|
+
t[0] !== h.amount || t[1] !== h.once ? (c = {
|
|
795
|
+
once: h.once,
|
|
796
|
+
amount: h.amount
|
|
797
|
+
}, t[0] = h.amount, t[1] = h.once, t[2] = c) : c = t[2];
|
|
798
|
+
const jt = Fe(p, c), [z, y] = _t(void 0), [Ft, Tt] = _t(void 0), [mt, qt] = _t(void 0), [et, Pt] = _t(void 0), Y = l ? Yt + 25 : Yt;
|
|
799
|
+
let it;
|
|
800
|
+
t[3] !== tt || t[4] !== D || t[5] !== B || t[6] !== Y ? (it = {
|
|
801
801
|
top: Y,
|
|
802
|
-
bottom:
|
|
802
|
+
bottom: tt,
|
|
803
803
|
left: D,
|
|
804
|
-
right:
|
|
805
|
-
}, t[3] =
|
|
806
|
-
const M =
|
|
807
|
-
let
|
|
808
|
-
if (t[8] !== s || t[9] !==
|
|
809
|
-
const
|
|
810
|
-
const Zt =
|
|
811
|
-
return
|
|
812
|
-
...
|
|
804
|
+
right: B
|
|
805
|
+
}, t[3] = tt, t[4] = D, t[5] = B, t[6] = Y, t[7] = it) : it = t[7];
|
|
806
|
+
const M = it, bt = R - M.left - M.right, kt = O - M.top - M.bottom;
|
|
807
|
+
let ht;
|
|
808
|
+
if (t[8] !== s || t[9] !== U) {
|
|
809
|
+
const b = /* @__PURE__ */ new Set(), G = s.map((Ut, Jt) => {
|
|
810
|
+
const Zt = U ? `${Ut.label}` : `${Jt}`;
|
|
811
|
+
return b.add(Zt), {
|
|
812
|
+
...Ut,
|
|
813
813
|
id: Zt
|
|
814
814
|
};
|
|
815
|
-
}), Et =
|
|
816
|
-
|
|
815
|
+
}), Et = U ? U.filter((Ut) => !b.has(Ut)) : [];
|
|
816
|
+
ht = [...G, ...Et.map(ol)], t[8] = s, t[9] = U, t[10] = ht;
|
|
817
817
|
} else
|
|
818
|
-
|
|
819
|
-
const
|
|
820
|
-
let
|
|
821
|
-
t[11] !==
|
|
822
|
-
const St =
|
|
823
|
-
let
|
|
824
|
-
if (t[14] !==
|
|
825
|
-
const
|
|
826
|
-
|
|
827
|
-
gridLines:
|
|
828
|
-
labels:
|
|
818
|
+
ht = t[10];
|
|
819
|
+
const ft = ht;
|
|
820
|
+
let pt;
|
|
821
|
+
t[11] !== ft || t[12] !== U ? (pt = U ?? ft.map(al), t[11] = ft, t[12] = U, t[13] = pt) : pt = t[13];
|
|
822
|
+
const St = pt;
|
|
823
|
+
let Ct, K, F, I, Lt, nt, lt, Q, gt, rt, E, vt, Vt, ct;
|
|
824
|
+
if (t[14] !== h || t[15] !== l || t[16] !== H || t[17] !== St || t[18] !== It || t[19] !== w?.graphObjectValues || t[20] !== w?.xAxis?.gridLines || t[21] !== w?.xAxis?.labels || t[22] !== w?.xAxis?.title || t[23] !== w?.yAxis?.axis || t[24] !== w?.yAxis?.labels || t[25] !== X || t[26] !== C || t[27] !== s || t[28] !== ft || t[29] !== u || t[30] !== at || t[31] !== kt || t[32] !== bt || t[33] !== O || t[34] !== Mt || t[35] !== q || t[36] !== jt || t[37] !== yt || t[38] !== M.bottom || t[39] !== M.left || t[40] !== M.top || t[41] !== T || t[42] !== j || t[43] !== J || t[44] !== N || t[45] !== Ft || t[46] !== Ht || t[47] !== f || t[48] !== ot || t[49] !== Ot || t[50] !== S || t[51] !== Kt || t[52] !== Xt || t[53] !== _ || t[54] !== xt || t[55] !== k || t[56] !== st || t[57] !== Bt || t[58] !== At || t[59] !== x?.graphObjectValues || t[60] !== x?.xAxis?.gridLines || t[61] !== x?.xAxis?.labels || t[62] !== x?.xAxis?.title || t[63] !== x?.yAxis?.axis || t[64] !== x?.yAxis?.labels || t[65] !== Gt || t[66] !== Yt || t[67] !== Rt || t[68] !== P || t[69] !== a || t[70] !== R) {
|
|
825
|
+
const b = Pe().domain([N, j]).range([0, bt]).nice(), G = Le().domain(St).range([0, J ? Math.max(kt, J * St.length) : T ? Math.min(kt, T * St.length) : kt]).paddingInner(It), Et = b.ticks(f);
|
|
826
|
+
K = te.svg, gt = p, rt = `${R}px`, E = `${O}px`, vt = `0 0 ${R} ${O}`, Vt = "ltr", Lt = `translate(${M.left},${M.top})`, nt = Bt ? /* @__PURE__ */ i.jsx(Ue, { values: Et.filter(sl), x: Et.filter(ll).map((o) => b(o)), y1: 0 - Yt, y2: kt + M.bottom, styles: {
|
|
827
|
+
gridLines: x?.xAxis?.gridLines,
|
|
828
|
+
labels: x?.xAxis?.labels
|
|
829
829
|
}, classNames: {
|
|
830
|
-
gridLines:
|
|
831
|
-
labels:
|
|
832
|
-
}, suffix:
|
|
833
|
-
const
|
|
834
|
-
t[85] !== l || t[86] !==
|
|
830
|
+
gridLines: w?.xAxis?.gridLines,
|
|
831
|
+
labels: w?.xAxis?.labels
|
|
832
|
+
}, suffix: Gt, prefix: Kt, labelType: "secondary", showGridLines: !0, precision: S, locale: yt }) : null;
|
|
833
|
+
const Ut = bt / 2, Jt = 0 - M.top + 15, Zt = x?.xAxis?.title, dt = w?.xAxis?.title;
|
|
834
|
+
t[85] !== l || t[86] !== Ut || t[87] !== Jt || t[88] !== Zt || t[89] !== dt ? (lt = /* @__PURE__ */ i.jsx(Se, { x: Ut, y: Jt, style: Zt, className: dt, text: l }), t[85] = l, t[86] = Ut, t[87] = Jt, t[88] = Zt, t[89] = dt, t[90] = lt) : lt = t[90], t[91] !== C ? (Q = C.filter(il).map(el), t[91] = C, t[92] = Q) : Q = t[92], Ct = He, ct = ft.map((o) => ie(G(o.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-g-with-hover", variants: {
|
|
835
835
|
initial: {
|
|
836
|
-
opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at :
|
|
836
|
+
opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at : q ? q.indexOf(o.label) !== -1 ? 0.85 : at : 0.85
|
|
837
837
|
},
|
|
838
838
|
whileInView: {
|
|
839
|
-
opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at :
|
|
839
|
+
opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at : q ? q.indexOf(o.label) !== -1 ? 0.85 : at : 0.85,
|
|
840
840
|
transition: {
|
|
841
|
-
duration:
|
|
841
|
+
duration: h.duration
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
}, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
|
|
845
845
|
opacity: 0,
|
|
846
846
|
transition: {
|
|
847
|
-
duration:
|
|
847
|
+
duration: h.duration
|
|
848
848
|
}
|
|
849
|
-
}, onMouseEnter: (
|
|
850
|
-
y(o), Pt(
|
|
849
|
+
}, onMouseEnter: ($) => {
|
|
850
|
+
y(o), Pt($.clientY), qt($.clientX), Ot?.(o);
|
|
851
851
|
}, onClick: () => {
|
|
852
|
-
(
|
|
853
|
-
}, onMouseMove: (
|
|
854
|
-
y(o), Pt(
|
|
852
|
+
(ot || u) && (Ne(Ft, o) && _ ? (Tt(void 0), ot?.(void 0)) : (Tt(o), ot?.(o)));
|
|
853
|
+
}, onMouseMove: ($) => {
|
|
854
|
+
y(o), Pt($.clientY), qt($.clientX);
|
|
855
855
|
}, onMouseLeave: () => {
|
|
856
|
-
y(void 0),
|
|
856
|
+
y(void 0), qt(void 0), Pt(void 0), Ot?.(void 0);
|
|
857
857
|
}, children: [
|
|
858
|
-
|
|
858
|
+
Rt && /* @__PURE__ */ i.jsx(te.rect, { height: G.bandwidth(), variants: {
|
|
859
859
|
initial: {
|
|
860
860
|
width: bt,
|
|
861
861
|
x: 0,
|
|
862
|
-
y:
|
|
863
|
-
fill:
|
|
862
|
+
y: G(`${o.id}`),
|
|
863
|
+
fill: Rt
|
|
864
864
|
},
|
|
865
865
|
whileInView: {
|
|
866
866
|
width: bt,
|
|
867
867
|
x: 0,
|
|
868
|
-
y:
|
|
869
|
-
fill:
|
|
868
|
+
y: G(`${o.id}`),
|
|
869
|
+
fill: Rt
|
|
870
870
|
}
|
|
871
871
|
}, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
|
|
872
872
|
opacity: 0,
|
|
873
873
|
transition: {
|
|
874
|
-
duration:
|
|
874
|
+
duration: h.duration
|
|
875
875
|
}
|
|
876
876
|
} }),
|
|
877
|
-
o.size ? /* @__PURE__ */ i.jsx(
|
|
877
|
+
o.size ? /* @__PURE__ */ i.jsx(te.rect, { variants: {
|
|
878
878
|
initial: {
|
|
879
879
|
width: 0,
|
|
880
|
-
x:
|
|
881
|
-
y:
|
|
882
|
-
fill: s.filter(
|
|
880
|
+
x: b(0),
|
|
881
|
+
y: G(`${o.id}`),
|
|
882
|
+
fill: s.filter(tl).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray
|
|
883
883
|
},
|
|
884
884
|
whileInView: {
|
|
885
|
-
width: o.size >= 0 ?
|
|
886
|
-
x: o.size >= 0 ?
|
|
887
|
-
y:
|
|
888
|
-
fill: s.filter(
|
|
885
|
+
width: o.size >= 0 ? b(o.size) - b(0) : b(0) - b(o.size),
|
|
886
|
+
x: o.size >= 0 ? b(0) : b(o.size),
|
|
887
|
+
y: G(`${o.id}`),
|
|
888
|
+
fill: s.filter(_i).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray,
|
|
889
889
|
transition: {
|
|
890
|
-
duration:
|
|
890
|
+
duration: h.duration
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
}, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
|
|
894
894
|
width: 0,
|
|
895
|
-
x:
|
|
895
|
+
x: b(0),
|
|
896
896
|
transition: {
|
|
897
|
-
duration:
|
|
897
|
+
duration: h.duration
|
|
898
898
|
}
|
|
899
|
-
}, height:
|
|
900
|
-
st ? /* @__PURE__ */ i.jsx(
|
|
901
|
-
|
|
899
|
+
}, height: G.bandwidth() }) : null,
|
|
900
|
+
st ? /* @__PURE__ */ i.jsx(qe, { value: `${o.label}`.length < P ? `${o.label}` : `${`${o.label}`.substring(0, P)}...`, y: G(o.id) || 0, x: (o.size || 0) < 0 ? b(0) : 0 - M.left, width: (o.size || 0) < 0 ? R - b(0) : b(0) + M.left, height: G.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: x?.yAxis?.labels, className: w?.yAxis?.labels, animate: h, isInView: jt }) : null,
|
|
901
|
+
At ? /* @__PURE__ */ i.jsx(te.text, { style: {
|
|
902
902
|
textAnchor: o.size && o.size < 0 ? "end" : "start",
|
|
903
|
-
...
|
|
904
|
-
}, className: Ce("graph-value text-sm", !a && H.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "",
|
|
903
|
+
...x?.graphObjectValues || {}
|
|
904
|
+
}, className: Ce("graph-value text-sm", !a && H.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", w?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
905
905
|
initial: {
|
|
906
|
-
x:
|
|
907
|
-
y:
|
|
906
|
+
x: b(0),
|
|
907
|
+
y: G(`${o.id}`) + G.bandwidth() / 2,
|
|
908
908
|
opacity: 0,
|
|
909
|
-
fill: a || (s.filter(
|
|
909
|
+
fill: a || (s.filter(Zi).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray)
|
|
910
910
|
},
|
|
911
911
|
whileInView: {
|
|
912
|
-
x: o.size ?
|
|
912
|
+
x: o.size ? b(o.size) : b(0),
|
|
913
913
|
opacity: 1,
|
|
914
|
-
y:
|
|
915
|
-
fill: a || (s.filter(
|
|
914
|
+
y: G(`${o.id}`) + G.bandwidth() / 2,
|
|
915
|
+
fill: a || (s.filter(Qi).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray),
|
|
916
916
|
transition: {
|
|
917
|
-
duration:
|
|
917
|
+
duration: h.duration
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
920
|
}, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
|
|
921
921
|
opacity: 0,
|
|
922
922
|
transition: {
|
|
923
|
-
duration:
|
|
923
|
+
duration: h.duration
|
|
924
924
|
}
|
|
925
|
-
}, children: we(o.size,
|
|
925
|
+
}, children: we(o.size, Ht, S, Kt, Gt, yt) }) : null
|
|
926
926
|
] }, o.label));
|
|
927
|
-
const
|
|
927
|
+
const g = w?.yAxis?.axis;
|
|
928
928
|
let V;
|
|
929
|
-
t[93] !==
|
|
930
|
-
axis:
|
|
931
|
-
}, t[93] =
|
|
932
|
-
const
|
|
929
|
+
t[93] !== g ? (V = {
|
|
930
|
+
axis: g
|
|
931
|
+
}, t[93] = g, t[94] = V) : V = t[94];
|
|
932
|
+
const d = x?.yAxis?.axis;
|
|
933
933
|
let L;
|
|
934
|
-
t[95] !==
|
|
935
|
-
axis:
|
|
936
|
-
}, t[95] =
|
|
934
|
+
t[95] !== d ? (L = {
|
|
935
|
+
axis: d
|
|
936
|
+
}, t[95] = d, t[96] = L) : L = t[96], F = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Mt, x1: b(N < 0 ? 0 : N), x2: b(N < 0 ? 0 : N), y1: -2.5, y2: kt + M.bottom, classNames: V, styles: L }), I = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((o, $) => /* @__PURE__ */ i.jsx(Je, { text: o.text, color: o.color, x: b(o.value), y1: 0 - M.top, y2: kt + M.bottom, textSide: b(o.value) > bt * 0.75 || xt ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: h, isInView: jt }, $)) }) : null, t[14] = h, t[15] = l, t[16] = H, t[17] = St, t[18] = It, t[19] = w?.graphObjectValues, t[20] = w?.xAxis?.gridLines, t[21] = w?.xAxis?.labels, t[22] = w?.xAxis?.title, t[23] = w?.yAxis?.axis, t[24] = w?.yAxis?.labels, t[25] = X, t[26] = C, t[27] = s, t[28] = ft, t[29] = u, t[30] = at, t[31] = kt, t[32] = bt, t[33] = O, t[34] = Mt, t[35] = q, t[36] = jt, t[37] = yt, t[38] = M.bottom, t[39] = M.left, t[40] = M.top, t[41] = T, t[42] = j, t[43] = J, t[44] = N, t[45] = Ft, t[46] = Ht, t[47] = f, t[48] = ot, t[49] = Ot, t[50] = S, t[51] = Kt, t[52] = Xt, t[53] = _, t[54] = xt, t[55] = k, t[56] = st, t[57] = Bt, t[58] = At, t[59] = x?.graphObjectValues, t[60] = x?.xAxis?.gridLines, t[61] = x?.xAxis?.labels, t[62] = x?.xAxis?.title, t[63] = x?.yAxis?.axis, t[64] = x?.yAxis?.labels, t[65] = Gt, t[66] = Yt, t[67] = Rt, t[68] = P, t[69] = a, t[70] = R, t[71] = Ct, t[72] = K, t[73] = F, t[74] = I, t[75] = Lt, t[76] = nt, t[77] = lt, t[78] = Q, t[79] = gt, t[80] = rt, t[81] = E, t[82] = vt, t[83] = Vt, t[84] = ct;
|
|
937
937
|
} else
|
|
938
|
-
|
|
939
|
-
let
|
|
940
|
-
t[97] !==
|
|
941
|
-
|
|
942
|
-
|
|
938
|
+
Ct = t[71], K = t[72], F = t[73], I = t[74], Lt = t[75], nt = t[76], lt = t[77], Q = t[78], gt = t[79], rt = t[80], E = t[81], vt = t[82], Vt = t[83], ct = t[84];
|
|
939
|
+
let A;
|
|
940
|
+
t[97] !== Ct || t[98] !== F || t[99] !== I || t[100] !== ct ? (A = /* @__PURE__ */ i.jsxs(Ct, { children: [
|
|
941
|
+
ct,
|
|
942
|
+
F,
|
|
943
943
|
I
|
|
944
|
-
] }), t[97] =
|
|
945
|
-
let
|
|
946
|
-
t[102] !== C ? (
|
|
944
|
+
] }), t[97] = Ct, t[98] = F, t[99] = I, t[100] = ct, t[101] = A) : A = t[101];
|
|
945
|
+
let Wt;
|
|
946
|
+
t[102] !== C ? (Wt = C.filter(Ki).map(Ji), t[102] = C, t[103] = Wt) : Wt = t[103];
|
|
947
947
|
let n;
|
|
948
|
-
t[104] !==
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
] }), t[104] =
|
|
948
|
+
t[104] !== Lt || t[105] !== nt || t[106] !== lt || t[107] !== Q || t[108] !== A || t[109] !== Wt ? (n = /* @__PURE__ */ i.jsxs("g", { transform: Lt, children: [
|
|
949
|
+
nt,
|
|
950
|
+
lt,
|
|
951
|
+
Q,
|
|
952
|
+
A,
|
|
953
|
+
Wt
|
|
954
|
+
] }), t[104] = Lt, t[105] = nt, t[106] = lt, t[107] = Q, t[108] = A, t[109] = Wt, t[110] = n) : n = t[110];
|
|
955
955
|
let v;
|
|
956
|
-
t[111] !==
|
|
957
|
-
let
|
|
958
|
-
t[119] !==
|
|
959
|
-
let
|
|
960
|
-
t[126] !==
|
|
961
|
-
let
|
|
962
|
-
return t[130] !== v || t[131] !==
|
|
956
|
+
t[111] !== K || t[112] !== gt || t[113] !== rt || t[114] !== E || t[115] !== vt || t[116] !== Vt || t[117] !== n ? (v = /* @__PURE__ */ i.jsx(K, { ref: gt, width: rt, height: E, viewBox: vt, direction: Vt, children: n }), t[111] = K, t[112] = gt, t[113] = rt, t[114] = E, t[115] = vt, t[116] = Vt, t[117] = n, t[118] = v) : v = t[118];
|
|
957
|
+
let zt;
|
|
958
|
+
t[119] !== w?.tooltip || t[120] !== mt || t[121] !== et || t[122] !== z || t[123] !== x?.tooltip || t[124] !== Nt ? (zt = z && Nt && mt && et ? /* @__PURE__ */ i.jsx(je, { data: z, body: Nt, xPos: mt, yPos: et, backgroundStyle: x?.tooltip, className: w?.tooltip }) : null, t[119] = w?.tooltip, t[120] = mt, t[121] = et, t[122] = z, t[123] = x?.tooltip, t[124] = Nt, t[125] = zt) : zt = t[125];
|
|
959
|
+
let wt;
|
|
960
|
+
t[126] !== w?.modal || t[127] !== u || t[128] !== Ft ? (wt = u && Ft !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: u, data: Ft, setData: Tt, className: w?.modal }) : null, t[126] = w?.modal, t[127] = u, t[128] = Ft, t[129] = wt) : wt = t[129];
|
|
961
|
+
let r;
|
|
962
|
+
return t[130] !== v || t[131] !== zt || t[132] !== wt ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
963
963
|
v,
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
] }), t[130] = v, t[131] =
|
|
964
|
+
zt,
|
|
965
|
+
wt
|
|
966
|
+
] }), t[130] = v, t[131] = zt, t[132] = wt, t[133] = r) : r = t[133], r;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Ji(e) {
|
|
969
969
|
return e.layer;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function Ki(e) {
|
|
972
972
|
return e.position === "after";
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function Qi(e) {
|
|
975
975
|
return e.color;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function Zi(e) {
|
|
978
978
|
return e.color;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function _i(e) {
|
|
981
981
|
return e.color;
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function tl(e) {
|
|
984
984
|
return e.color;
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function el(e) {
|
|
987
987
|
return e.layer;
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function il(e) {
|
|
990
990
|
return e.position === "before";
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function ll(e) {
|
|
993
993
|
return e !== 0;
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function sl(e) {
|
|
996
996
|
return e !== 0;
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function al(e) {
|
|
999
999
|
return `${e.id}`;
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function ol(e) {
|
|
1002
1002
|
return {
|
|
1003
1003
|
id: e,
|
|
1004
1004
|
label: e,
|
|
@@ -1006,269 +1006,269 @@ function rl(e) {
|
|
|
1006
1006
|
size: null
|
|
1007
1007
|
};
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function nl(e) {
|
|
1010
1010
|
const t = $e.c(144), {
|
|
1011
1011
|
leftMargin: s,
|
|
1012
1012
|
rightMargin: H,
|
|
1013
|
-
topMargin:
|
|
1013
|
+
topMargin: Gt,
|
|
1014
1014
|
bottomMargin: Kt,
|
|
1015
|
-
data:
|
|
1016
|
-
width:
|
|
1015
|
+
data: It,
|
|
1016
|
+
width: At,
|
|
1017
1017
|
height: Bt,
|
|
1018
1018
|
barColor: P,
|
|
1019
|
-
suffix:
|
|
1019
|
+
suffix: R,
|
|
1020
1020
|
prefix: O,
|
|
1021
1021
|
barPadding: X,
|
|
1022
|
-
showLabels:
|
|
1023
|
-
showValues:
|
|
1024
|
-
showTicks:
|
|
1022
|
+
showLabels: ut,
|
|
1023
|
+
showValues: Z,
|
|
1024
|
+
showTicks: $t,
|
|
1025
1025
|
colorDomain: W,
|
|
1026
1026
|
truncateBy: st,
|
|
1027
|
-
tooltip:
|
|
1028
|
-
onSeriesMouseOver:
|
|
1027
|
+
tooltip: Nt,
|
|
1028
|
+
onSeriesMouseOver: Ot,
|
|
1029
1029
|
refValues: Xt,
|
|
1030
1030
|
selectedColor: k,
|
|
1031
|
-
maxValue:
|
|
1032
|
-
minValue:
|
|
1031
|
+
maxValue: q,
|
|
1032
|
+
minValue: j,
|
|
1033
1033
|
highlightedDataPoints: N,
|
|
1034
|
-
onSeriesMouseClick:
|
|
1035
|
-
labelOrder:
|
|
1036
|
-
maxBarThickness:
|
|
1037
|
-
minBarThickness:
|
|
1038
|
-
resetSelectionOnDoubleClick:
|
|
1039
|
-
detailsOnClick:
|
|
1040
|
-
barAxisTitle:
|
|
1034
|
+
onSeriesMouseClick: ot,
|
|
1035
|
+
labelOrder: U,
|
|
1036
|
+
maxBarThickness: xt,
|
|
1037
|
+
minBarThickness: T,
|
|
1038
|
+
resetSelectionOnDoubleClick: J,
|
|
1039
|
+
detailsOnClick: _,
|
|
1040
|
+
barAxisTitle: u,
|
|
1041
1041
|
valueColor: l,
|
|
1042
1042
|
noOfTicks: a,
|
|
1043
|
-
styles:
|
|
1044
|
-
classNames:
|
|
1045
|
-
dimmedOpacity:
|
|
1046
|
-
animate:
|
|
1043
|
+
styles: f,
|
|
1044
|
+
classNames: x,
|
|
1045
|
+
dimmedOpacity: w,
|
|
1046
|
+
animate: h,
|
|
1047
1047
|
precision: at,
|
|
1048
|
-
customLayers:
|
|
1048
|
+
customLayers: S,
|
|
1049
1049
|
naLabel: C,
|
|
1050
|
-
trackColor:
|
|
1051
|
-
hideAxisLine:
|
|
1052
|
-
locale:
|
|
1053
|
-
} = e, yt = s === void 0 ? 20 : s, Yt = H === void 0 ? 20 : H,
|
|
1054
|
-
let
|
|
1055
|
-
t[0] !==
|
|
1056
|
-
once:
|
|
1057
|
-
amount:
|
|
1058
|
-
}, t[0] =
|
|
1059
|
-
const
|
|
1050
|
+
trackColor: Ht,
|
|
1051
|
+
hideAxisLine: Rt,
|
|
1052
|
+
locale: Mt
|
|
1053
|
+
} = e, yt = s === void 0 ? 20 : s, Yt = H === void 0 ? 20 : H, tt = Gt === void 0 ? 20 : Gt, D = Kt === void 0 ? 25 : Kt, B = Ae(null);
|
|
1054
|
+
let p;
|
|
1055
|
+
t[0] !== h.amount || t[1] !== h.once ? (p = {
|
|
1056
|
+
once: h.once,
|
|
1057
|
+
amount: h.amount
|
|
1058
|
+
}, t[0] = h.amount, t[1] = h.once, t[2] = p) : p = t[2];
|
|
1059
|
+
const c = Fe(B, p), jt = u ? yt + 30 : yt;
|
|
1060
1060
|
let z;
|
|
1061
|
-
t[3] !== D || t[4] !== Yt || t[5] !== jt || t[6] !==
|
|
1062
|
-
top:
|
|
1061
|
+
t[3] !== D || t[4] !== Yt || t[5] !== jt || t[6] !== tt ? (z = {
|
|
1062
|
+
top: tt,
|
|
1063
1063
|
bottom: D,
|
|
1064
1064
|
left: jt,
|
|
1065
1065
|
right: Yt
|
|
1066
|
-
}, t[3] = D, t[4] = Yt, t[5] = jt, t[6] =
|
|
1067
|
-
const y = z, [Ft, Tt] = _t(void 0), [
|
|
1068
|
-
let
|
|
1069
|
-
if (t[8] !==
|
|
1070
|
-
const
|
|
1071
|
-
const Jt =
|
|
1072
|
-
return
|
|
1066
|
+
}, t[3] = D, t[4] = Yt, t[5] = jt, t[6] = tt, t[7] = z) : z = t[7];
|
|
1067
|
+
const y = z, [Ft, Tt] = _t(void 0), [mt, qt] = _t(void 0), [et, Pt] = _t(void 0), [Y, it] = _t(void 0), M = At - y.left - y.right, bt = Bt - y.top - y.bottom;
|
|
1068
|
+
let kt;
|
|
1069
|
+
if (t[8] !== It || t[9] !== U) {
|
|
1070
|
+
const r = /* @__PURE__ */ new Set(), b = It.map((Et, Ut) => {
|
|
1071
|
+
const Jt = U ? `${Et.label}` : `${Ut}`;
|
|
1072
|
+
return r.add(Jt), {
|
|
1073
1073
|
...Et,
|
|
1074
1074
|
id: Jt
|
|
1075
1075
|
};
|
|
1076
|
-
}),
|
|
1077
|
-
|
|
1076
|
+
}), G = U ? U.filter((Et) => !r.has(Et)) : [];
|
|
1077
|
+
kt = [...b, ...G.map(bl)], t[8] = It, t[9] = U, t[10] = kt;
|
|
1078
1078
|
} else
|
|
1079
|
-
|
|
1080
|
-
const
|
|
1081
|
-
let
|
|
1082
|
-
t[11] !==
|
|
1083
|
-
const
|
|
1084
|
-
let St,
|
|
1085
|
-
if (t[14] !==
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1079
|
+
kt = t[10];
|
|
1080
|
+
const ht = kt;
|
|
1081
|
+
let ft;
|
|
1082
|
+
t[11] !== ht || t[12] !== U ? (ft = U ?? ht.map(yl), t[11] = ht, t[12] = U, t[13] = ft) : ft = t[13];
|
|
1083
|
+
const pt = ft;
|
|
1084
|
+
let St, Ct, K, F, I, Lt, nt, lt, Q, gt, rt, E, vt, Vt;
|
|
1085
|
+
if (t[14] !== h || t[15] !== u || t[16] !== P || t[17] !== pt || t[18] !== X || t[19] !== x?.graphObjectValues || t[20] !== x?.xAxis?.axis || t[21] !== x?.xAxis?.labels || t[22] !== x?.yAxis?.gridLines || t[23] !== x?.yAxis?.labels || t[24] !== x?.yAxis?.title || t[25] !== W || t[26] !== S || t[27] !== It || t[28] !== ht || t[29] !== _ || t[30] !== w || t[31] !== bt || t[32] !== M || t[33] !== Bt || t[34] !== Rt || t[35] !== N || t[36] !== c || t[37] !== yt || t[38] !== Mt || t[39] !== y.bottom || t[40] !== y.left || t[41] !== y.right || t[42] !== y.top || t[43] !== xt || t[44] !== q || t[45] !== T || t[46] !== j || t[47] !== mt || t[48] !== C || t[49] !== a || t[50] !== ot || t[51] !== Ot || t[52] !== at || t[53] !== O || t[54] !== Xt || t[55] !== J || t[56] !== k || t[57] !== ut || t[58] !== $t || t[59] !== Z || t[60] !== f?.graphObjectValues || t[61] !== f?.xAxis?.axis || t[62] !== f?.xAxis?.labels || t[63] !== f?.yAxis?.gridLines || t[64] !== f?.yAxis?.labels || t[65] !== f?.yAxis?.title || t[66] !== R || t[67] !== Ht || t[68] !== st || t[69] !== l || t[70] !== At) {
|
|
1086
|
+
const r = Pe().domain([j, q]).range([bt, 0]).nice(), b = Le().domain(pt).range([0, T ? Math.max(M, T * pt.length) : xt ? Math.min(M, xt * pt.length) : M]).paddingInner(X), G = r.ticks(a);
|
|
1087
|
+
Ct = te.svg, Q = B, gt = `${At}px`, rt = `${Bt}px`, E = `0 0 ${At} ${Bt}`, vt = "ltr", F = `translate(${y.left},${y.top})`;
|
|
1088
1088
|
let Et;
|
|
1089
|
-
t[85] !==
|
|
1090
|
-
const
|
|
1089
|
+
t[85] !== Mt || t[86] !== j || t[87] !== C || t[88] !== at || t[89] !== O || t[90] !== $t || t[91] !== R ? (Et = $t ? we(j < 0 ? 0 : j, C, at, O, R, Mt) : void 0, t[85] = Mt, t[86] = j, t[87] = C, t[88] = at, t[89] = O, t[90] = $t, t[91] = R, t[92] = Et) : Et = t[92];
|
|
1090
|
+
const Ut = x?.xAxis?.axis, Jt = x?.yAxis?.labels;
|
|
1091
1091
|
let Zt;
|
|
1092
|
-
t[93] !==
|
|
1093
|
-
axis:
|
|
1092
|
+
t[93] !== Ut || t[94] !== Jt ? (Zt = {
|
|
1093
|
+
axis: Ut,
|
|
1094
1094
|
label: Jt
|
|
1095
|
-
}, t[93] =
|
|
1096
|
-
const
|
|
1095
|
+
}, t[93] = Ut, t[94] = Jt, t[95] = Zt) : Zt = t[95];
|
|
1096
|
+
const dt = f?.xAxis?.axis, g = f?.yAxis?.labels;
|
|
1097
1097
|
let V;
|
|
1098
|
-
t[96] !==
|
|
1099
|
-
axis:
|
|
1100
|
-
label:
|
|
1101
|
-
}, t[96] =
|
|
1098
|
+
t[96] !== dt || t[97] !== g ? (V = {
|
|
1099
|
+
axis: dt,
|
|
1100
|
+
label: g
|
|
1101
|
+
}, t[96] = dt, t[97] = g, t[98] = V) : V = t[98], I = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Rt, y1: r(j < 0 ? 0 : j), y2: r(j < 0 ? 0 : j), x1: 0 - yt, x2: M + y.right, label: Et, labelPos: {
|
|
1102
1102
|
x: 0 - yt,
|
|
1103
1103
|
dx: 0,
|
|
1104
|
-
dy:
|
|
1105
|
-
y:
|
|
1106
|
-
}, classNames: Zt, styles: V }),
|
|
1107
|
-
gridLines:
|
|
1108
|
-
labels:
|
|
1104
|
+
dy: q < 0 ? "1em" : -5,
|
|
1105
|
+
y: r(j < 0 ? 0 : j)
|
|
1106
|
+
}, classNames: Zt, styles: V }), Lt = $t ? /* @__PURE__ */ i.jsx(Qe, { values: G.filter(gl), y: G.filter(pl).map((m) => r(m)), x1: 0 - yt, x2: M + y.right, styles: {
|
|
1107
|
+
gridLines: f?.yAxis?.gridLines,
|
|
1108
|
+
labels: f?.yAxis?.labels
|
|
1109
1109
|
}, classNames: {
|
|
1110
|
-
gridLines:
|
|
1111
|
-
labels:
|
|
1112
|
-
}, suffix:
|
|
1113
|
-
const
|
|
1114
|
-
t[99] !==
|
|
1110
|
+
gridLines: x?.yAxis?.gridLines,
|
|
1111
|
+
labels: x?.yAxis?.labels
|
|
1112
|
+
}, suffix: R, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: at, locale: Mt }) : null;
|
|
1113
|
+
const d = 0 - yt - 15, L = bt / 2, o = f?.yAxis?.title, $ = x?.yAxis?.title;
|
|
1114
|
+
t[99] !== u || t[100] !== d || t[101] !== L || t[102] !== o || t[103] !== $ ? (nt = /* @__PURE__ */ i.jsx(Se, { x: d, y: L, style: o, className: $, text: u, rotate90: !0 }), t[99] = u, t[100] = d, t[101] = L, t[102] = o, t[103] = $, t[104] = nt) : nt = t[104], t[105] !== S ? (lt = S.filter(fl).map(hl), t[105] = S, t[106] = lt) : lt = t[106], St = He, Vt = ht.map((m, he) => ie(b(m.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: c ? "whileInView" : "initial", variants: {
|
|
1115
1115
|
initial: {
|
|
1116
|
-
opacity: k ?
|
|
1116
|
+
opacity: k ? m.color && P[W.indexOf(m.color)] === k ? 1 : w : N ? N.indexOf(m.label) !== -1 ? 0.85 : w : 0.85
|
|
1117
1117
|
},
|
|
1118
1118
|
whileInView: {
|
|
1119
|
-
opacity: k ?
|
|
1119
|
+
opacity: k ? m.color && P[W.indexOf(m.color)] === k ? 1 : w : N ? N.indexOf(m.label) !== -1 ? 0.85 : w : 0.85,
|
|
1120
1120
|
transition: {
|
|
1121
|
-
duration:
|
|
1121
|
+
duration: h.duration
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
}, exit: {
|
|
1125
1125
|
opacity: 0,
|
|
1126
1126
|
transition: {
|
|
1127
|
-
duration:
|
|
1127
|
+
duration: h.duration
|
|
1128
1128
|
}
|
|
1129
|
-
}, onMouseEnter: (
|
|
1130
|
-
Tt(
|
|
1129
|
+
}, onMouseEnter: (oe) => {
|
|
1130
|
+
Tt(m), it(oe.clientY), Pt(oe.clientX), Ot?.(m);
|
|
1131
1131
|
}, onClick: () => {
|
|
1132
|
-
(
|
|
1133
|
-
}, onMouseMove: (
|
|
1134
|
-
Tt(
|
|
1132
|
+
(ot || _) && (Ne(mt, m) && J ? (qt(void 0), ot?.(void 0)) : (qt(m), ot?.(m)));
|
|
1133
|
+
}, onMouseMove: (oe) => {
|
|
1134
|
+
Tt(m), it(oe.clientY), Pt(oe.clientX);
|
|
1135
1135
|
}, onMouseLeave: () => {
|
|
1136
|
-
Tt(void 0), Pt(void 0),
|
|
1136
|
+
Tt(void 0), Pt(void 0), it(void 0), Ot?.(void 0);
|
|
1137
1137
|
}, children: [
|
|
1138
|
-
|
|
1138
|
+
Ht && /* @__PURE__ */ i.jsx(te.rect, { width: b.bandwidth(), variants: {
|
|
1139
1139
|
initial: {
|
|
1140
1140
|
height: bt,
|
|
1141
1141
|
y: 0,
|
|
1142
|
-
x:
|
|
1143
|
-
fill:
|
|
1142
|
+
x: b(`${m.id}`),
|
|
1143
|
+
fill: Ht
|
|
1144
1144
|
},
|
|
1145
1145
|
whileInView: {
|
|
1146
1146
|
height: bt,
|
|
1147
1147
|
y: 0,
|
|
1148
|
-
x:
|
|
1149
|
-
fill:
|
|
1148
|
+
x: b(`${m.id}`),
|
|
1149
|
+
fill: Ht
|
|
1150
1150
|
}
|
|
1151
|
-
}, initial: "initial", animate:
|
|
1151
|
+
}, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
|
|
1152
1152
|
opacity: 0,
|
|
1153
1153
|
transition: {
|
|
1154
|
-
duration:
|
|
1154
|
+
duration: h.duration
|
|
1155
1155
|
}
|
|
1156
1156
|
} }),
|
|
1157
|
-
|
|
1157
|
+
m.size ? /* @__PURE__ */ i.jsx(te.rect, { width: b.bandwidth(), initial: "initial", animate: c ? "whileInView" : "initial", variants: {
|
|
1158
1158
|
initial: {
|
|
1159
1159
|
height: 0,
|
|
1160
|
-
x:
|
|
1161
|
-
y:
|
|
1162
|
-
fill:
|
|
1160
|
+
x: b(`${m.id}`),
|
|
1161
|
+
y: r(0),
|
|
1162
|
+
fill: It.filter(ml).length === 0 ? P[0] : m.color ? P[W.indexOf(m.color)] : ye.gray
|
|
1163
1163
|
},
|
|
1164
1164
|
whileInView: {
|
|
1165
|
-
height:
|
|
1166
|
-
y:
|
|
1167
|
-
x:
|
|
1168
|
-
fill:
|
|
1165
|
+
height: m.size ? Math.abs(r(m.size) - r(0)) : 0,
|
|
1166
|
+
y: m.size && m.size > 0 ? r(m.size) : r(0),
|
|
1167
|
+
x: b(`${m.id}`),
|
|
1168
|
+
fill: It.filter(xl).length === 0 ? P[0] : m.color ? P[W.indexOf(m.color)] : ye.gray,
|
|
1169
1169
|
transition: {
|
|
1170
|
-
duration:
|
|
1170
|
+
duration: h.duration
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
1173
|
}, exit: {
|
|
1174
1174
|
height: 0,
|
|
1175
|
-
y:
|
|
1175
|
+
y: r(0),
|
|
1176
1176
|
transition: {
|
|
1177
|
-
duration:
|
|
1177
|
+
duration: h.duration
|
|
1178
1178
|
}
|
|
1179
1179
|
} }) : null,
|
|
1180
|
-
|
|
1181
|
-
|
|
1180
|
+
ut ? /* @__PURE__ */ i.jsx(Ze, { value: `${m.label}`.length < st ? `${m.label}` : `${`${m.label}`.substring(0, st)}...`, y: (m.size || 0) < 0 ? 0 : r(0) + 5, x: b(`${m.id}`), width: b.bandwidth(), height: (m.size || 0) < 0 ? r(0) - 5 : y.bottom, style: f?.xAxis?.labels, className: x?.xAxis?.labels, alignment: (m.size || 0) < 0 ? "bottom" : "top", animate: h, isInView: c }) : null,
|
|
1181
|
+
Z ? /* @__PURE__ */ i.jsx(te.text, { style: {
|
|
1182
1182
|
textAnchor: "middle",
|
|
1183
|
-
...
|
|
1184
|
-
}, className: Ce("graph-value text-sm", !l && P.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "",
|
|
1183
|
+
...f?.graphObjectValues || {}
|
|
1184
|
+
}, className: Ce("graph-value text-sm", !l && P.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "", x?.graphObjectValues), dy: m.size ? m.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
1185
1185
|
initial: {
|
|
1186
|
-
x:
|
|
1187
|
-
y:
|
|
1186
|
+
x: b(`${m.id}`) + b.bandwidth() / 2,
|
|
1187
|
+
y: r(0),
|
|
1188
1188
|
opacity: 0,
|
|
1189
|
-
fill: l || (
|
|
1189
|
+
fill: l || (It.filter(ul).length === 0 ? P[0] : m.color ? P[W.indexOf(m.color)] : ye.gray)
|
|
1190
1190
|
},
|
|
1191
1191
|
whileInView: {
|
|
1192
|
-
x:
|
|
1193
|
-
y:
|
|
1194
|
-
fill: l || (
|
|
1192
|
+
x: b(`${m.id}`) + b.bandwidth() / 2,
|
|
1193
|
+
y: r(m.size || 0),
|
|
1194
|
+
fill: l || (It.filter(dl).length === 0 ? P[0] : m.color ? P[W.indexOf(m.color)] : ye.gray),
|
|
1195
1195
|
opacity: 1,
|
|
1196
1196
|
transition: {
|
|
1197
|
-
duration:
|
|
1197
|
+
duration: h.duration
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
}, initial: "initial", animate:
|
|
1200
|
+
}, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
|
|
1201
1201
|
opacity: 0,
|
|
1202
1202
|
transition: {
|
|
1203
|
-
duration:
|
|
1203
|
+
duration: h.duration
|
|
1204
1204
|
}
|
|
1205
|
-
}, children: we(
|
|
1206
|
-
] },
|
|
1205
|
+
}, children: we(m.size, C, at, O, R, Mt) }) : null
|
|
1206
|
+
] }, m.label)), K = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((m, he) => /* @__PURE__ */ i.jsx(Ke, { text: m.text, color: m.color, y: r(m.value), x1: 0 - yt, x2: M + y.right, classNames: m.classNames, styles: m.styles, animate: h, isInView: c }, he)) }) : null, t[14] = h, t[15] = u, t[16] = P, t[17] = pt, t[18] = X, t[19] = x?.graphObjectValues, t[20] = x?.xAxis?.axis, t[21] = x?.xAxis?.labels, t[22] = x?.yAxis?.gridLines, t[23] = x?.yAxis?.labels, t[24] = x?.yAxis?.title, t[25] = W, t[26] = S, t[27] = It, t[28] = ht, t[29] = _, t[30] = w, t[31] = bt, t[32] = M, t[33] = Bt, t[34] = Rt, t[35] = N, t[36] = c, t[37] = yt, t[38] = Mt, t[39] = y.bottom, t[40] = y.left, t[41] = y.right, t[42] = y.top, t[43] = xt, t[44] = q, t[45] = T, t[46] = j, t[47] = mt, t[48] = C, t[49] = a, t[50] = ot, t[51] = Ot, t[52] = at, t[53] = O, t[54] = Xt, t[55] = J, t[56] = k, t[57] = ut, t[58] = $t, t[59] = Z, t[60] = f?.graphObjectValues, t[61] = f?.xAxis?.axis, t[62] = f?.xAxis?.labels, t[63] = f?.yAxis?.gridLines, t[64] = f?.yAxis?.labels, t[65] = f?.yAxis?.title, t[66] = R, t[67] = Ht, t[68] = st, t[69] = l, t[70] = At, t[71] = St, t[72] = Ct, t[73] = K, t[74] = F, t[75] = I, t[76] = Lt, t[77] = nt, t[78] = lt, t[79] = Q, t[80] = gt, t[81] = rt, t[82] = E, t[83] = vt, t[84] = Vt;
|
|
1207
1207
|
} else
|
|
1208
|
-
St = t[71],
|
|
1209
|
-
let
|
|
1210
|
-
t[107] !== St || t[108] !==
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
] }), t[107] = St, t[108] =
|
|
1214
|
-
let
|
|
1215
|
-
t[111] !==
|
|
1216
|
-
let
|
|
1217
|
-
t[113] !==
|
|
1208
|
+
St = t[71], Ct = t[72], K = t[73], F = t[74], I = t[75], Lt = t[76], nt = t[77], lt = t[78], Q = t[79], gt = t[80], rt = t[81], E = t[82], vt = t[83], Vt = t[84];
|
|
1209
|
+
let ct;
|
|
1210
|
+
t[107] !== St || t[108] !== K || t[109] !== Vt ? (ct = /* @__PURE__ */ i.jsxs(St, { children: [
|
|
1211
|
+
Vt,
|
|
1212
|
+
K
|
|
1213
|
+
] }), t[107] = St, t[108] = K, t[109] = Vt, t[110] = ct) : ct = t[110];
|
|
1214
|
+
let A;
|
|
1215
|
+
t[111] !== S ? (A = S.filter(cl).map(rl), t[111] = S, t[112] = A) : A = t[112];
|
|
1216
|
+
let Wt;
|
|
1217
|
+
t[113] !== F || t[114] !== I || t[115] !== Lt || t[116] !== nt || t[117] !== lt || t[118] !== ct || t[119] !== A ? (Wt = /* @__PURE__ */ i.jsxs("g", { transform: F, children: [
|
|
1218
1218
|
I,
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
] }), t[113] =
|
|
1219
|
+
Lt,
|
|
1220
|
+
nt,
|
|
1221
|
+
lt,
|
|
1222
|
+
ct,
|
|
1223
|
+
A
|
|
1224
|
+
] }), t[113] = F, t[114] = I, t[115] = Lt, t[116] = nt, t[117] = lt, t[118] = ct, t[119] = A, t[120] = Wt) : Wt = t[120];
|
|
1225
1225
|
let n;
|
|
1226
|
-
t[121] !==
|
|
1226
|
+
t[121] !== Ct || t[122] !== Q || t[123] !== gt || t[124] !== rt || t[125] !== E || t[126] !== vt || t[127] !== Wt ? (n = /* @__PURE__ */ i.jsx(Ct, { ref: Q, width: gt, height: rt, viewBox: E, direction: vt, children: Wt }), t[121] = Ct, t[122] = Q, t[123] = gt, t[124] = rt, t[125] = E, t[126] = vt, t[127] = Wt, t[128] = n) : n = t[128];
|
|
1227
1227
|
let v;
|
|
1228
|
-
t[129] !==
|
|
1229
|
-
let
|
|
1230
|
-
t[136] !==
|
|
1231
|
-
let
|
|
1232
|
-
return t[140] !== n || t[141] !== v || t[142] !==
|
|
1228
|
+
t[129] !== x?.tooltip || t[130] !== et || t[131] !== Y || t[132] !== Ft || t[133] !== f?.tooltip || t[134] !== Nt ? (v = Ft && Nt && et && Y ? /* @__PURE__ */ i.jsx(je, { data: Ft, body: Nt, xPos: et, yPos: Y, backgroundStyle: f?.tooltip, className: x?.tooltip }) : null, t[129] = x?.tooltip, t[130] = et, t[131] = Y, t[132] = Ft, t[133] = f?.tooltip, t[134] = Nt, t[135] = v) : v = t[135];
|
|
1229
|
+
let zt;
|
|
1230
|
+
t[136] !== x?.modal || t[137] !== _ || t[138] !== mt ? (zt = _ && mt !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: _, data: mt, setData: qt, className: x?.modal }) : null, t[136] = x?.modal, t[137] = _, t[138] = mt, t[139] = zt) : zt = t[139];
|
|
1231
|
+
let wt;
|
|
1232
|
+
return t[140] !== n || t[141] !== v || t[142] !== zt ? (wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1233
1233
|
n,
|
|
1234
1234
|
v,
|
|
1235
|
-
|
|
1236
|
-
] }), t[140] = n, t[141] = v, t[142] =
|
|
1235
|
+
zt
|
|
1236
|
+
] }), t[140] = n, t[141] = v, t[142] = zt, t[143] = wt) : wt = t[143], wt;
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function rl(e) {
|
|
1239
1239
|
return e.layer;
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function cl(e) {
|
|
1242
1242
|
return e.position === "after";
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function dl(e) {
|
|
1245
1245
|
return e.color;
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function ul(e) {
|
|
1248
1248
|
return e.color;
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function xl(e) {
|
|
1251
1251
|
return e.color;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function ml(e) {
|
|
1254
1254
|
return e.color;
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function hl(e) {
|
|
1257
1257
|
return e.layer;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function fl(e) {
|
|
1260
1260
|
return e.position === "before";
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function pl(e) {
|
|
1263
1263
|
return e !== 0;
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function gl(e) {
|
|
1266
1266
|
return e !== 0;
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function yl(e) {
|
|
1269
1269
|
return `${e.id}`;
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1271
|
+
function bl(e) {
|
|
1272
1272
|
return {
|
|
1273
1273
|
id: e,
|
|
1274
1274
|
label: e,
|
|
@@ -1276,200 +1276,203 @@ function wl(e) {
|
|
|
1276
1276
|
size: null
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1280
|
-
const t = $e.c(
|
|
1279
|
+
function vl(e) {
|
|
1280
|
+
const t = $e.c(133), {
|
|
1281
1281
|
data: s,
|
|
1282
1282
|
graphTitle: H,
|
|
1283
|
-
colors:
|
|
1283
|
+
colors: Gt,
|
|
1284
1284
|
suffix: Kt,
|
|
1285
|
-
sources:
|
|
1286
|
-
prefix:
|
|
1285
|
+
sources: It,
|
|
1286
|
+
prefix: At,
|
|
1287
1287
|
graphDescription: Bt,
|
|
1288
1288
|
barPadding: P,
|
|
1289
|
-
showValues:
|
|
1289
|
+
showValues: R,
|
|
1290
1290
|
showTicks: O,
|
|
1291
1291
|
truncateBy: X,
|
|
1292
|
-
height:
|
|
1293
|
-
width:
|
|
1294
|
-
footNote:
|
|
1292
|
+
height: ut,
|
|
1293
|
+
width: Z,
|
|
1294
|
+
footNote: $t,
|
|
1295
1295
|
colorDomain: W,
|
|
1296
1296
|
colorLegendTitle: st,
|
|
1297
|
-
highlightedDataPoints:
|
|
1298
|
-
padding:
|
|
1297
|
+
highlightedDataPoints: Nt,
|
|
1298
|
+
padding: Ot,
|
|
1299
1299
|
backgroundColor: Xt,
|
|
1300
1300
|
topMargin: k,
|
|
1301
|
-
bottomMargin:
|
|
1302
|
-
leftMargin:
|
|
1301
|
+
bottomMargin: q,
|
|
1302
|
+
leftMargin: j,
|
|
1303
1303
|
rightMargin: N,
|
|
1304
|
-
showLabels:
|
|
1305
|
-
relativeHeight:
|
|
1306
|
-
tooltip:
|
|
1307
|
-
onSeriesMouseOver:
|
|
1308
|
-
refValues:
|
|
1309
|
-
showColorScale:
|
|
1310
|
-
graphID:
|
|
1304
|
+
showLabels: ot,
|
|
1305
|
+
relativeHeight: U,
|
|
1306
|
+
tooltip: xt,
|
|
1307
|
+
onSeriesMouseOver: T,
|
|
1308
|
+
refValues: J,
|
|
1309
|
+
showColorScale: _,
|
|
1310
|
+
graphID: u,
|
|
1311
1311
|
maxValue: l,
|
|
1312
1312
|
minValue: a,
|
|
1313
|
-
onSeriesMouseClick:
|
|
1314
|
-
graphDownload:
|
|
1315
|
-
dataDownload:
|
|
1316
|
-
sortData:
|
|
1313
|
+
onSeriesMouseClick: f,
|
|
1314
|
+
graphDownload: x,
|
|
1315
|
+
dataDownload: w,
|
|
1316
|
+
sortData: h,
|
|
1317
1317
|
labelOrder: at,
|
|
1318
|
-
language:
|
|
1318
|
+
language: S,
|
|
1319
1319
|
showNAColor: C,
|
|
1320
|
-
minHeight:
|
|
1321
|
-
theme:
|
|
1322
|
-
maxBarThickness:
|
|
1320
|
+
minHeight: Ht,
|
|
1321
|
+
theme: Rt,
|
|
1322
|
+
maxBarThickness: Mt,
|
|
1323
1323
|
maxNumberOfBars: yt,
|
|
1324
1324
|
minBarThickness: Yt,
|
|
1325
|
-
ariaLabel:
|
|
1325
|
+
ariaLabel: tt,
|
|
1326
1326
|
resetSelectionOnDoubleClick: D,
|
|
1327
|
-
detailsOnClick:
|
|
1328
|
-
barAxisTitle:
|
|
1329
|
-
noOfTicks:
|
|
1327
|
+
detailsOnClick: B,
|
|
1328
|
+
barAxisTitle: p,
|
|
1329
|
+
noOfTicks: c,
|
|
1330
1330
|
valueColor: jt,
|
|
1331
1331
|
styles: z,
|
|
1332
1332
|
classNames: y,
|
|
1333
1333
|
filterNA: Ft,
|
|
1334
1334
|
animate: Tt,
|
|
1335
|
-
dimmedOpacity:
|
|
1336
|
-
precision:
|
|
1337
|
-
customLayers:
|
|
1335
|
+
dimmedOpacity: mt,
|
|
1336
|
+
precision: qt,
|
|
1337
|
+
customLayers: et,
|
|
1338
1338
|
timeline: Pt,
|
|
1339
1339
|
naLabel: Y,
|
|
1340
|
-
orientation:
|
|
1340
|
+
orientation: it,
|
|
1341
1341
|
trackColor: M,
|
|
1342
1342
|
hideAxisLine: bt,
|
|
1343
|
-
locale:
|
|
1344
|
-
} = e,
|
|
1345
|
-
let
|
|
1346
|
-
t[0] !==
|
|
1347
|
-
const
|
|
1348
|
-
let
|
|
1349
|
-
t[2] !==
|
|
1350
|
-
const A = At;
|
|
1351
|
-
let g;
|
|
1352
|
-
t[4] !== Pt ? (g = Pt === void 0 ? {
|
|
1343
|
+
locale: kt
|
|
1344
|
+
} = e, ht = Kt === void 0 ? "" : Kt, ft = At === void 0 ? "" : At, pt = P === void 0 ? 0.25 : P, St = R === void 0 ? !0 : R, Ct = O === void 0 ? !0 : O, K = X === void 0 ? 999 : X, F = Xt === void 0 ? !1 : Xt, I = ot === void 0 ? !0 : ot, Lt = _ === void 0 ? !0 : _, nt = x === void 0 ? !1 : x, lt = w === void 0 ? !1 : w, Q = S === void 0 ? "en" : S, gt = C === void 0 ? !0 : C, rt = Ht === void 0 ? 0 : Ht, E = Rt === void 0 ? "light" : Rt, vt = D === void 0 ? !0 : D, Vt = c === void 0 ? 5 : c, ct = Ft === void 0 ? !0 : Ft, A = Tt === void 0 ? !1 : Tt, Wt = mt === void 0 ? 0.3 : mt, n = qt === void 0 ? 2 : qt;
|
|
1345
|
+
let v;
|
|
1346
|
+
t[0] !== et ? (v = et === void 0 ? [] : et, t[0] = et, t[1] = v) : v = t[1];
|
|
1347
|
+
const zt = v;
|
|
1348
|
+
let wt;
|
|
1349
|
+
t[2] !== Pt ? (wt = Pt === void 0 ? {
|
|
1353
1350
|
enabled: !1,
|
|
1354
1351
|
autoplay: !1,
|
|
1355
1352
|
showOnlyActiveDate: !0
|
|
1356
|
-
} : Pt, t[
|
|
1357
|
-
const
|
|
1358
|
-
let
|
|
1359
|
-
if (t[
|
|
1360
|
-
let
|
|
1361
|
-
t[
|
|
1353
|
+
} : Pt, t[2] = Pt, t[3] = wt) : wt = t[3];
|
|
1354
|
+
const r = wt, b = Y === void 0 ? "NA" : Y, G = it === void 0 ? "vertical" : it, Et = bt === void 0 ? !1 : bt, Ut = kt === void 0 ? "en" : kt, Jt = G === "horizontal" ? Ui : nl, [Zt, dt] = _t(0), [g, V] = _t(0), [d, L] = _t(r.autoplay);
|
|
1355
|
+
let o;
|
|
1356
|
+
if (t[4] !== s || t[5] !== r.dateFormat) {
|
|
1357
|
+
let ee;
|
|
1358
|
+
t[7] !== r.dateFormat ? (ee = (ke) => Re(`${ke.date}`, r.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = r.dateFormat, t[8] = ee) : ee = t[8], o = [...new Set(s.filter(Fl).map(ee))], o.sort(Bl), t[4] = s, t[5] = r.dateFormat, t[6] = o;
|
|
1362
1359
|
} else
|
|
1363
|
-
|
|
1364
|
-
const
|
|
1365
|
-
let
|
|
1366
|
-
t[
|
|
1367
|
-
const
|
|
1368
|
-
|
|
1360
|
+
o = t[6];
|
|
1361
|
+
const $ = o, [m, he] = _t(r.autoplay ? 0 : $.length - 1), [oe, Oe] = _t(void 0), be = Ae(null), Me = Ae(null);
|
|
1362
|
+
let pe, ge;
|
|
1363
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = () => {
|
|
1364
|
+
const ee = new ResizeObserver((ke) => {
|
|
1365
|
+
dt(ke[0].target.clientWidth || 620), V(ke[0].target.clientHeight || 480);
|
|
1369
1366
|
});
|
|
1370
|
-
return
|
|
1371
|
-
},
|
|
1372
|
-
let
|
|
1373
|
-
t[
|
|
1374
|
-
const
|
|
1375
|
-
|
|
1376
|
-
}, (
|
|
1377
|
-
return
|
|
1378
|
-
},
|
|
1379
|
-
const
|
|
1380
|
-
let
|
|
1381
|
-
t[
|
|
1382
|
-
const
|
|
1383
|
-
let
|
|
1384
|
-
t[
|
|
1367
|
+
return be.current && ee.observe(be.current), () => ee.disconnect();
|
|
1368
|
+
}, ge = [], t[9] = pe, t[10] = ge) : (pe = t[9], ge = t[10]), Ie(pe, ge);
|
|
1369
|
+
let ve, fe;
|
|
1370
|
+
t[11] !== d || t[12] !== r.speed || t[13] !== $ ? (ve = () => {
|
|
1371
|
+
const ee = setInterval(() => {
|
|
1372
|
+
he((ke) => ke < $.length - 1 ? ke + 1 : 0);
|
|
1373
|
+
}, (r.speed || 2) * 1e3);
|
|
1374
|
+
return d || clearInterval(ee), () => clearInterval(ee);
|
|
1375
|
+
}, fe = [$, d, r.speed], t[11] = d, t[12] = r.speed, t[13] = $, t[14] = ve, t[15] = fe) : (ve = t[14], fe = t[15]), Ie(ve, fe);
|
|
1376
|
+
const de = r.dateFormat || "yyyy";
|
|
1377
|
+
let ne;
|
|
1378
|
+
t[16] !== m || t[17] !== de || t[18] !== r.showOnlyActiveDate || t[19] !== $ ? (ne = Ee($, m, r.showOnlyActiveDate, de), t[16] = m, t[17] = de, t[18] = r.showOnlyActiveDate, t[19] = $, t[20] = ne) : ne = t[20];
|
|
1379
|
+
const re = ne, ue = y?.graphContainer, xe = z?.graphContainer;
|
|
1380
|
+
let le;
|
|
1381
|
+
t[21] !== y?.description || t[22] !== y?.title || t[23] !== s || t[24] !== lt || t[25] !== Bt || t[26] !== nt || t[27] !== H || t[28] !== z?.description || t[29] !== z?.title || t[30] !== Z ? (le = H || Bt || nt || lt ? /* @__PURE__ */ i.jsx(_e, { styles: {
|
|
1385
1382
|
title: z?.title,
|
|
1386
1383
|
description: z?.description
|
|
1387
1384
|
}, classNames: {
|
|
1388
1385
|
title: y?.title,
|
|
1389
1386
|
description: y?.description
|
|
1390
|
-
}, graphTitle: H, graphDescription: Bt, width:
|
|
1391
|
-
let
|
|
1392
|
-
t[
|
|
1387
|
+
}, graphTitle: H, graphDescription: Bt, width: Z, graphDownload: nt ? Me : void 0, dataDownload: lt ? s.map(Sl).filter(Tl).length > 0 ? s.map(jl).filter(Nl) : s.filter(Il) : null }) : null, t[21] = y?.description, t[22] = y?.title, t[23] = s, t[24] = lt, t[25] = Bt, t[26] = nt, t[27] = H, t[28] = z?.description, t[29] = z?.title, t[30] = Z, t[31] = le) : le = t[31];
|
|
1388
|
+
let se;
|
|
1389
|
+
t[32] !== m || t[33] !== re || t[34] !== d || t[35] !== r.enabled || t[36] !== $ ? (se = r.enabled && $.length > 0 && re ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
|
|
1393
1390
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
1394
|
-
|
|
1395
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
1396
|
-
/* @__PURE__ */ i.jsx(
|
|
1397
|
-
|
|
1398
|
-
}, onChange: (
|
|
1399
|
-
|
|
1391
|
+
L(!d);
|
|
1392
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": d ? "Click to pause animation" : "Click to play animation", children: d ? /* @__PURE__ */ i.jsx(li, {}) : /* @__PURE__ */ i.jsx(si, {}) }),
|
|
1393
|
+
/* @__PURE__ */ i.jsx(Ge, { min: $[0], max: $[$.length - 1], marks: re, step: null, defaultValue: $[$.length - 1], value: $[m], onChangeComplete: (ee) => {
|
|
1394
|
+
he($.indexOf(ee));
|
|
1395
|
+
}, onChange: (ee) => {
|
|
1396
|
+
he($.indexOf(ee));
|
|
1400
1397
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
1401
|
-
] }) : null, t[
|
|
1402
|
-
let
|
|
1403
|
-
t[
|
|
1404
|
-
let
|
|
1405
|
-
t[
|
|
1406
|
-
let
|
|
1407
|
-
t[52] !==
|
|
1398
|
+
] }) : null, t[32] = m, t[33] = re, t[34] = d, t[35] = r.enabled, t[36] = $, t[37] = se) : se = t[37];
|
|
1399
|
+
let ce;
|
|
1400
|
+
t[38] !== y?.colorLegend || t[39] !== W || t[40] !== st || t[41] !== Gt || t[42] !== s || t[43] !== Lt || t[44] !== gt || t[45] !== E || t[46] !== Z ? (ce = Lt && s.filter(Dl).length !== 0 && s.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: Z, colorLegendTitle: st, colors: Gt || ye[E].categoricalColors.colors, colorDomain: W || ri(s, "color", !0), setSelectedColor: Oe, showNAColor: gt, className: y?.colorLegend }) : null, t[38] = y?.colorLegend, t[39] = W, t[40] = st, t[41] = Gt, t[42] = s, t[43] = Lt, t[44] = gt, t[45] = E, t[46] = Z, t[47] = ce) : ce = t[47];
|
|
1401
|
+
let Qt;
|
|
1402
|
+
t[48] !== s.length ? (Qt = s.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[48] = s.length, t[49] = Qt) : Qt = t[49];
|
|
1403
|
+
let Dt;
|
|
1404
|
+
t[50] !== Jt || t[51] !== A || t[52] !== p || t[53] !== pt || t[54] !== q || t[55] !== y || t[56] !== W || t[57] !== Gt || t[58] !== zt || t[59] !== s || t[60] !== B || t[61] !== Wt || t[62] !== ct || t[63] !== Et || t[64] !== Nt || t[65] !== m || t[66] !== at || t[67] !== Q || t[68] !== j || t[69] !== Ut || t[70] !== Mt || t[71] !== yt || t[72] !== l || t[73] !== Yt || t[74] !== a || t[75] !== b || t[76] !== Vt || t[77] !== f || t[78] !== T || t[79] !== G || t[80] !== n || t[81] !== ft || t[82] !== J || t[83] !== vt || t[84] !== N || t[85] !== oe || t[86] !== I || t[87] !== Ct || t[88] !== St || t[89] !== h || t[90] !== z || t[91] !== ht || t[92] !== g || t[93] !== Zt || t[94] !== E || t[95] !== r.dateFormat || t[96] !== r.enabled || t[97] !== xt || t[98] !== k || t[99] !== M || t[100] !== K || t[101] !== $ || t[102] !== jt ? (Dt = Zt && g && s.length > 0 ? /* @__PURE__ */ i.jsx(Jt, { hideAxisLine: Et, data: h ? We(ni(s, r.dateFormat || "yyyy").filter((ee) => r.enabled ? `${ee.date}` === Ve(new Date($[m]), r.dateFormat || "yyyy") : ee).filter((ee) => ct ? !ie(ee.size) : ee), [(ee) => ee.size === void 0 ? h === "asc" ? (G === "horizontal" ? 1 : -1) * (1 / 0) : (G === "horizontal" ? -1 : 1) * (1 / 0) : ee.size], [h]).filter((ee, ke) => yt ? ke < yt : !0) : ni(s, r.dateFormat || "yyyy").filter((ee) => r.enabled ? `${ee.date}` === Ve(new Date($[m]), r.dateFormat || "yyyy") : ee).filter((ee) => ct ? !ie(ee.size) : ee).filter((ee, ke) => yt ? ke < yt : !0), barColor: s.filter(zl).length === 0 ? Gt ? [Gt] : [ye.primaryColors["blue-600"]] : Gt || ye[E].categoricalColors.colors, colorDomain: s.filter(Vl).length === 0 ? [] : W || ri(s, "color", !0), selectedColor: oe, trackColor: M, width: Zt, height: g, suffix: ht, prefix: ft, barPadding: pt, showValues: St, showTicks: Ct, leftMargin: j, rightMargin: N, topMargin: k, bottomMargin: q, truncateBy: K, showLabels: I, tooltip: xt, onSeriesMouseOver: T, refValues: J, maxValue: ie(l) ? Math.max(...s.filter(Ll).map(Cl)) < 0 ? 0 : Math.max(...s.filter(kl).map(Ml)) : l, minValue: ie(a) ? Math.min(...s.filter(Ol).map($l)) >= 0 ? 0 : Math.min(...s.filter(Al).map(wl)) : a, highlightedDataPoints: Nt, onSeriesMouseClick: f, labelOrder: at, rtl: Q === "he" || Q === "ar", maxBarThickness: Mt, minBarThickness: Yt, resetSelectionOnDoubleClick: vt, detailsOnClick: B, barAxisTitle: p, noOfTicks: Vt, valueColor: jt, classNames: y, styles: z, animate: A === !0 ? {
|
|
1408
1405
|
duration: 0.5,
|
|
1409
1406
|
once: !0,
|
|
1410
1407
|
amount: 0.5
|
|
1411
|
-
} :
|
|
1408
|
+
} : A || {
|
|
1412
1409
|
duration: 0,
|
|
1413
1410
|
once: !0,
|
|
1414
1411
|
amount: 0
|
|
1415
|
-
}, dimmedOpacity:
|
|
1416
|
-
let
|
|
1417
|
-
t[
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
] }), t[
|
|
1421
|
-
let
|
|
1422
|
-
t[
|
|
1412
|
+
}, dimmedOpacity: Wt, precision: n, customLayers: zt, naLabel: b, locale: Ut }) : null, t[50] = Jt, t[51] = A, t[52] = p, t[53] = pt, t[54] = q, t[55] = y, t[56] = W, t[57] = Gt, t[58] = zt, t[59] = s, t[60] = B, t[61] = Wt, t[62] = ct, t[63] = Et, t[64] = Nt, t[65] = m, t[66] = at, t[67] = Q, t[68] = j, t[69] = Ut, t[70] = Mt, t[71] = yt, t[72] = l, t[73] = Yt, t[74] = a, t[75] = b, t[76] = Vt, t[77] = f, t[78] = T, t[79] = G, t[80] = n, t[81] = ft, t[82] = J, t[83] = vt, t[84] = N, t[85] = oe, t[86] = I, t[87] = Ct, t[88] = St, t[89] = h, t[90] = z, t[91] = ht, t[92] = g, t[93] = Zt, t[94] = E, t[95] = r.dateFormat, t[96] = r.enabled, t[97] = xt, t[98] = k, t[99] = M, t[100] = K, t[101] = $, t[102] = jt, t[103] = Dt) : Dt = t[103];
|
|
1413
|
+
let ae;
|
|
1414
|
+
t[104] !== Qt || t[105] !== Dt ? (ae = /* @__PURE__ */ i.jsxs(ai, { ref: be, children: [
|
|
1415
|
+
Qt,
|
|
1416
|
+
Dt
|
|
1417
|
+
] }), t[104] = Qt, t[105] = Dt, t[106] = ae) : ae = t[106];
|
|
1418
|
+
let ze;
|
|
1419
|
+
t[107] !== y?.footnote || t[108] !== y?.source || t[109] !== $t || t[110] !== It || t[111] !== z?.footnote || t[112] !== z?.source || t[113] !== Z ? (ze = It || $t ? /* @__PURE__ */ i.jsx(ti, { sources: It, footNote: $t, width: Z, styles: {
|
|
1423
1420
|
footnote: z?.footnote,
|
|
1424
1421
|
source: z?.source
|
|
1425
1422
|
}, classNames: {
|
|
1426
1423
|
footnote: y?.footnote,
|
|
1427
1424
|
source: y?.source
|
|
1428
|
-
} }) : null, t[
|
|
1429
|
-
let
|
|
1430
|
-
return t[
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
] }), t[117] =
|
|
1425
|
+
} }) : null, t[107] = y?.footnote, t[108] = y?.source, t[109] = $t, t[110] = It, t[111] = z?.footnote, t[112] = z?.source, t[113] = Z, t[114] = ze) : ze = t[114];
|
|
1426
|
+
let Xe;
|
|
1427
|
+
return t[115] !== tt || t[116] !== F || t[117] !== u || t[118] !== ut || t[119] !== Q || t[120] !== rt || t[121] !== Ot || t[122] !== U || t[123] !== ue || t[124] !== xe || t[125] !== le || t[126] !== se || t[127] !== ce || t[128] !== ae || t[129] !== ze || t[130] !== E || t[131] !== Z ? (Xe = /* @__PURE__ */ i.jsxs(oi, { className: ue, style: xe, id: u, ref: Me, "aria-label": tt, backgroundColor: F, theme: E, language: Q, minHeight: rt, width: Z, height: ut, relativeHeight: U, padding: Ot, children: [
|
|
1428
|
+
le,
|
|
1429
|
+
se,
|
|
1430
|
+
ce,
|
|
1431
|
+
ae,
|
|
1432
|
+
ze
|
|
1433
|
+
] }), t[115] = tt, t[116] = F, t[117] = u, t[118] = ut, t[119] = Q, t[120] = rt, t[121] = Ot, t[122] = U, t[123] = ue, t[124] = xe, t[125] = le, t[126] = se, t[127] = ce, t[128] = ae, t[129] = ze, t[130] = E, t[131] = Z, t[132] = Xe) : Xe = t[132], Xe;
|
|
1434
|
+
}
|
|
1435
|
+
function wl(e) {
|
|
1436
|
+
return e.size;
|
|
1437
|
+
}
|
|
1438
|
+
function Al(e) {
|
|
1439
|
+
return !ie(e.size);
|
|
1437
1440
|
}
|
|
1438
1441
|
function $l(e) {
|
|
1439
1442
|
return e.size;
|
|
1440
1443
|
}
|
|
1441
1444
|
function Ol(e) {
|
|
1442
|
-
return !
|
|
1445
|
+
return !ie(e.size);
|
|
1443
1446
|
}
|
|
1444
1447
|
function Ml(e) {
|
|
1445
1448
|
return e.size;
|
|
1446
1449
|
}
|
|
1447
1450
|
function kl(e) {
|
|
1448
|
-
return !
|
|
1451
|
+
return !ie(e.size);
|
|
1449
1452
|
}
|
|
1450
1453
|
function Cl(e) {
|
|
1451
1454
|
return e.size;
|
|
1452
1455
|
}
|
|
1453
1456
|
function Ll(e) {
|
|
1454
|
-
return !
|
|
1457
|
+
return !ie(e.size);
|
|
1455
1458
|
}
|
|
1456
1459
|
function Vl(e) {
|
|
1457
|
-
return e.
|
|
1460
|
+
return e.color;
|
|
1458
1461
|
}
|
|
1459
1462
|
function zl(e) {
|
|
1460
|
-
return
|
|
1463
|
+
return e.color;
|
|
1461
1464
|
}
|
|
1462
1465
|
function Dl(e) {
|
|
1463
1466
|
return e.color;
|
|
1464
1467
|
}
|
|
1465
1468
|
function Il(e) {
|
|
1466
|
-
return e
|
|
1469
|
+
return e !== void 0;
|
|
1467
1470
|
}
|
|
1468
1471
|
function Nl(e) {
|
|
1469
|
-
return e
|
|
1472
|
+
return e !== void 0;
|
|
1470
1473
|
}
|
|
1471
1474
|
function jl(e) {
|
|
1472
|
-
return e
|
|
1475
|
+
return e.data;
|
|
1473
1476
|
}
|
|
1474
1477
|
function Tl(e) {
|
|
1475
1478
|
return e !== void 0;
|
|
@@ -1477,411 +1480,405 @@ function Tl(e) {
|
|
|
1477
1480
|
function Sl(e) {
|
|
1478
1481
|
return e.data;
|
|
1479
1482
|
}
|
|
1480
|
-
function Bl(e) {
|
|
1481
|
-
return e !== void 0;
|
|
1482
|
-
}
|
|
1483
|
-
function Fl(e) {
|
|
1484
|
-
return e.data;
|
|
1485
|
-
}
|
|
1486
|
-
function Pl(e, t) {
|
|
1483
|
+
function Bl(e, t) {
|
|
1487
1484
|
return e - t;
|
|
1488
1485
|
}
|
|
1489
|
-
function
|
|
1486
|
+
function Fl(e) {
|
|
1490
1487
|
return e.date;
|
|
1491
1488
|
}
|
|
1492
|
-
function
|
|
1489
|
+
function Pl(e) {
|
|
1493
1490
|
const t = $e.c(131), {
|
|
1494
1491
|
data: s,
|
|
1495
1492
|
barColors: H,
|
|
1496
|
-
barPadding:
|
|
1493
|
+
barPadding: Gt,
|
|
1497
1494
|
showTicks: Kt,
|
|
1498
|
-
topMargin:
|
|
1499
|
-
bottomMargin:
|
|
1495
|
+
topMargin: It,
|
|
1496
|
+
bottomMargin: At,
|
|
1500
1497
|
leftMargin: Bt,
|
|
1501
1498
|
rightMargin: P,
|
|
1502
|
-
truncateBy:
|
|
1499
|
+
truncateBy: R,
|
|
1503
1500
|
width: O,
|
|
1504
1501
|
height: X,
|
|
1505
|
-
tooltip:
|
|
1506
|
-
onSeriesMouseOver:
|
|
1507
|
-
showLabels:
|
|
1502
|
+
tooltip: ut,
|
|
1503
|
+
onSeriesMouseOver: Z,
|
|
1504
|
+
showLabels: $t,
|
|
1508
1505
|
suffix: W,
|
|
1509
1506
|
prefix: st,
|
|
1510
|
-
showValues:
|
|
1511
|
-
refValues:
|
|
1507
|
+
showValues: Nt,
|
|
1508
|
+
refValues: Ot,
|
|
1512
1509
|
maxValue: Xt,
|
|
1513
1510
|
onSeriesMouseClick: k,
|
|
1514
|
-
selectedColor:
|
|
1515
|
-
rtl:
|
|
1511
|
+
selectedColor: q,
|
|
1512
|
+
rtl: j,
|
|
1516
1513
|
labelOrder: N,
|
|
1517
|
-
maxBarThickness:
|
|
1518
|
-
minBarThickness:
|
|
1519
|
-
resetSelectionOnDoubleClick:
|
|
1520
|
-
detailsOnClick:
|
|
1521
|
-
barAxisTitle:
|
|
1522
|
-
valueColor:
|
|
1523
|
-
noOfTicks:
|
|
1514
|
+
maxBarThickness: ot,
|
|
1515
|
+
minBarThickness: U,
|
|
1516
|
+
resetSelectionOnDoubleClick: xt,
|
|
1517
|
+
detailsOnClick: T,
|
|
1518
|
+
barAxisTitle: J,
|
|
1519
|
+
valueColor: _,
|
|
1520
|
+
noOfTicks: u,
|
|
1524
1521
|
styles: l,
|
|
1525
1522
|
classNames: a,
|
|
1526
|
-
animate:
|
|
1527
|
-
colorDomain:
|
|
1528
|
-
precision:
|
|
1529
|
-
customLayers:
|
|
1523
|
+
animate: f,
|
|
1524
|
+
colorDomain: x,
|
|
1525
|
+
precision: w,
|
|
1526
|
+
customLayers: h,
|
|
1530
1527
|
naLabel: at,
|
|
1531
|
-
hideAxisLine:
|
|
1528
|
+
hideAxisLine: S,
|
|
1532
1529
|
locale: C
|
|
1533
|
-
} = e,
|
|
1534
|
-
let
|
|
1535
|
-
t[0] !==
|
|
1536
|
-
once:
|
|
1537
|
-
amount:
|
|
1538
|
-
}, t[0] =
|
|
1539
|
-
const D =
|
|
1540
|
-
let
|
|
1541
|
-
t[3] !==
|
|
1542
|
-
top:
|
|
1543
|
-
bottom:
|
|
1544
|
-
left:
|
|
1530
|
+
} = e, Ht = It === void 0 ? 25 : It, Rt = At === void 0 ? 10 : At, Mt = Bt === void 0 ? 100 : Bt, yt = P === void 0 ? 40 : P, Yt = Ae(null);
|
|
1531
|
+
let tt;
|
|
1532
|
+
t[0] !== f.amount || t[1] !== f.once ? (tt = {
|
|
1533
|
+
once: f.once,
|
|
1534
|
+
amount: f.amount
|
|
1535
|
+
}, t[0] = f.amount, t[1] = f.once, t[2] = tt) : tt = t[2];
|
|
1536
|
+
const D = Fe(Yt, tt), B = J ? Ht + 25 : Ht;
|
|
1537
|
+
let p;
|
|
1538
|
+
t[3] !== Rt || t[4] !== Mt || t[5] !== yt || t[6] !== B ? (p = {
|
|
1539
|
+
top: B,
|
|
1540
|
+
bottom: Rt,
|
|
1541
|
+
left: Mt,
|
|
1545
1542
|
right: yt
|
|
1546
|
-
}, t[3] =
|
|
1547
|
-
const
|
|
1548
|
-
let
|
|
1543
|
+
}, t[3] = Rt, t[4] = Mt, t[5] = yt, t[6] = B, t[7] = p) : p = t[7];
|
|
1544
|
+
const c = p, [jt, z] = _t(void 0), [y, Ft] = _t(void 0), [Tt, mt] = _t(void 0), [qt, et] = _t(void 0), Pt = O - c.left - c.right, Y = X - c.top - c.bottom;
|
|
1545
|
+
let it;
|
|
1549
1546
|
if (t[8] !== s || t[9] !== N) {
|
|
1550
|
-
const v = /* @__PURE__ */ new Set(),
|
|
1551
|
-
const Et = N ? `${
|
|
1547
|
+
const v = /* @__PURE__ */ new Set(), zt = s.map((b, G) => {
|
|
1548
|
+
const Et = N ? `${b.label}` : `${G}`;
|
|
1552
1549
|
return v.add(Et), {
|
|
1553
|
-
...
|
|
1550
|
+
...b,
|
|
1554
1551
|
id: Et
|
|
1555
1552
|
};
|
|
1556
|
-
}),
|
|
1557
|
-
let
|
|
1558
|
-
t[11] !== s[0] ? (
|
|
1559
|
-
id:
|
|
1560
|
-
label:
|
|
1553
|
+
}), wt = N ? N.filter((b) => !v.has(b)) : [];
|
|
1554
|
+
let r;
|
|
1555
|
+
t[11] !== s[0] ? (r = (b) => ({
|
|
1556
|
+
id: b,
|
|
1557
|
+
label: b,
|
|
1561
1558
|
size: Array(s[0].size.length).fill(null)
|
|
1562
|
-
}), t[11] = s[0], t[12] =
|
|
1559
|
+
}), t[11] = s[0], t[12] = r) : r = t[12], it = [...zt, ...wt.map(r)], t[8] = s, t[9] = N, t[10] = it;
|
|
1563
1560
|
} else
|
|
1564
|
-
|
|
1565
|
-
const M =
|
|
1561
|
+
it = t[10];
|
|
1562
|
+
const M = it;
|
|
1566
1563
|
let bt;
|
|
1567
|
-
t[13] !== M || t[14] !== N ? (bt = N ?? M.map(
|
|
1568
|
-
const
|
|
1569
|
-
let
|
|
1570
|
-
if (t[16] !==
|
|
1571
|
-
const v =
|
|
1572
|
-
|
|
1564
|
+
t[13] !== M || t[14] !== N ? (bt = N ?? M.map(Ul), t[13] = M, t[14] = N, t[15] = bt) : bt = t[15];
|
|
1565
|
+
const kt = bt;
|
|
1566
|
+
let ht, ft, pt, St, Ct, K, F, I, Lt, nt, lt, Q, gt, rt;
|
|
1567
|
+
if (t[16] !== f || t[17] !== J || t[18] !== H || t[19] !== kt || t[20] !== Gt || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== x || t[28] !== h || t[29] !== M || t[30] !== T || t[31] !== Y || t[32] !== Pt || t[33] !== X || t[34] !== S || t[35] !== D || t[36] !== C || t[37] !== c.bottom || t[38] !== c.left || t[39] !== c.top || t[40] !== ot || t[41] !== Xt || t[42] !== U || t[43] !== y || t[44] !== at || t[45] !== u || t[46] !== k || t[47] !== Z || t[48] !== w || t[49] !== st || t[50] !== Ot || t[51] !== xt || t[52] !== j || t[53] !== q || t[54] !== $t || t[55] !== Kt || t[56] !== Nt || t[57] !== l?.graphObjectValues || t[58] !== l?.xAxis?.gridLines || t[59] !== l?.xAxis?.labels || t[60] !== l?.xAxis?.title || t[61] !== l?.yAxis?.axis || t[62] !== l?.yAxis?.labels || t[63] !== W || t[64] !== Ht || t[65] !== R || t[66] !== _ || t[67] !== O) {
|
|
1568
|
+
const v = Pe().domain([0, Xt]).range([0, Pt]).nice(), zt = Le().domain(kt).range([0, U ? Math.max(Y, U * kt.length) : ot ? Math.min(Y, ot * kt.length) : Y]).paddingInner(Gt), wt = v.ticks(u);
|
|
1569
|
+
ft = te.svg, Lt = Yt, nt = `${O}px`, lt = `${X}px`, Q = `0 0 ${O} ${X}`, gt = "ltr", Ct = `translate(${c.left},${c.top})`, K = Kt ? /* @__PURE__ */ i.jsx(Ue, { values: wt.filter(ql), x: wt.filter(Rl).map((g) => v(g)), y1: 0 - Ht, y2: Y + c.bottom, styles: {
|
|
1573
1570
|
gridLines: l?.xAxis?.gridLines,
|
|
1574
1571
|
labels: l?.xAxis?.labels
|
|
1575
1572
|
}, classNames: {
|
|
1576
1573
|
gridLines: a?.xAxis?.gridLines,
|
|
1577
1574
|
labels: a?.xAxis?.labels
|
|
1578
|
-
}, suffix: W, prefix: st, labelType: "secondary", showGridLines: !0, precision:
|
|
1579
|
-
const
|
|
1580
|
-
t[82] !==
|
|
1575
|
+
}, suffix: W, prefix: st, labelType: "secondary", showGridLines: !0, precision: w, locale: C }) : null;
|
|
1576
|
+
const r = Pt / 2, b = 0 - c.top + 15, G = l?.xAxis?.title, Et = a?.xAxis?.title;
|
|
1577
|
+
t[82] !== J || t[83] !== r || t[84] !== b || t[85] !== G || t[86] !== Et ? (F = /* @__PURE__ */ i.jsx(Se, { x: r, y: b, style: G, className: Et, text: J }), t[82] = J, t[83] = r, t[84] = b, t[85] = G, t[86] = Et, t[87] = F) : F = t[87], t[88] !== h ? (I = h.filter(Gl).map(El), t[88] = h, t[89] = I) : I = t[89], ht = He, rt = M.map((g) => ie(zt(g.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1581
1578
|
initial: {
|
|
1582
1579
|
x: 0,
|
|
1583
|
-
y:
|
|
1580
|
+
y: zt(`${g.id}`)
|
|
1584
1581
|
},
|
|
1585
1582
|
whileInView: {
|
|
1586
1583
|
x: 0,
|
|
1587
|
-
y:
|
|
1584
|
+
y: zt(`${g.id}`),
|
|
1588
1585
|
transition: {
|
|
1589
|
-
duration:
|
|
1586
|
+
duration: f.duration
|
|
1590
1587
|
}
|
|
1591
1588
|
}
|
|
1592
1589
|
}, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
|
|
1593
1590
|
opacity: 0,
|
|
1594
1591
|
transition: {
|
|
1595
|
-
duration:
|
|
1592
|
+
duration: f.duration
|
|
1596
1593
|
}
|
|
1597
1594
|
}, children: [
|
|
1598
|
-
|
|
1595
|
+
g.size.map((V, d) => /* @__PURE__ */ i.jsxs(te.g, { opacity: q ? H[d] === q ? 1 : 0.3 : 1, onMouseEnter: (L) => {
|
|
1599
1596
|
z({
|
|
1600
|
-
...
|
|
1601
|
-
sizeIndex:
|
|
1602
|
-
}),
|
|
1603
|
-
...
|
|
1604
|
-
sizeIndex:
|
|
1597
|
+
...g,
|
|
1598
|
+
sizeIndex: d
|
|
1599
|
+
}), et(L.clientY), mt(L.clientX), Z?.({
|
|
1600
|
+
...g,
|
|
1601
|
+
sizeIndex: d
|
|
1605
1602
|
});
|
|
1606
1603
|
}, onMouseMove: (L) => {
|
|
1607
1604
|
z({
|
|
1608
|
-
...
|
|
1609
|
-
sizeIndex:
|
|
1610
|
-
}),
|
|
1605
|
+
...g,
|
|
1606
|
+
sizeIndex: d
|
|
1607
|
+
}), et(L.clientY), mt(L.clientX);
|
|
1611
1608
|
}, onMouseLeave: () => {
|
|
1612
|
-
z(void 0),
|
|
1609
|
+
z(void 0), mt(void 0), et(void 0), Z?.(void 0);
|
|
1613
1610
|
}, onClick: () => {
|
|
1614
|
-
(k ||
|
|
1615
|
-
...
|
|
1616
|
-
sizeIndex:
|
|
1617
|
-
}) &&
|
|
1618
|
-
...
|
|
1619
|
-
sizeIndex:
|
|
1611
|
+
(k || T) && (Ne(y, {
|
|
1612
|
+
...g,
|
|
1613
|
+
sizeIndex: d
|
|
1614
|
+
}) && xt ? (Ft(void 0), k?.(void 0)) : (Ft({
|
|
1615
|
+
...g,
|
|
1616
|
+
sizeIndex: d
|
|
1620
1617
|
}), k && k({
|
|
1621
|
-
...
|
|
1622
|
-
sizeIndex:
|
|
1618
|
+
...g,
|
|
1619
|
+
sizeIndex: d
|
|
1623
1620
|
})));
|
|
1624
1621
|
}, children: [
|
|
1625
|
-
V ? /* @__PURE__ */ i.jsx(
|
|
1626
|
-
fill: H[
|
|
1627
|
-
}, height:
|
|
1622
|
+
V ? /* @__PURE__ */ i.jsx(te.rect, { y: 0, style: {
|
|
1623
|
+
fill: H[d]
|
|
1624
|
+
}, height: zt.bandwidth(), exit: {
|
|
1628
1625
|
width: 0,
|
|
1629
1626
|
x: v(0),
|
|
1630
1627
|
transition: {
|
|
1631
|
-
duration:
|
|
1628
|
+
duration: f.duration
|
|
1632
1629
|
}
|
|
1633
1630
|
}, variants: {
|
|
1634
1631
|
initial: {
|
|
1635
1632
|
width: 0,
|
|
1636
1633
|
x: v(0),
|
|
1637
|
-
fill: H[
|
|
1634
|
+
fill: H[d]
|
|
1638
1635
|
},
|
|
1639
1636
|
whileInView: {
|
|
1640
1637
|
width: v(V || 0),
|
|
1641
|
-
x: v(
|
|
1642
|
-
fill: H[
|
|
1638
|
+
x: v(d === 0 ? 0 : me(g.size.filter((L, o) => o < d && L))),
|
|
1639
|
+
fill: H[d],
|
|
1643
1640
|
transition: {
|
|
1644
|
-
duration:
|
|
1641
|
+
duration: f.duration
|
|
1645
1642
|
}
|
|
1646
1643
|
}
|
|
1647
|
-
}, initial: "initial", animate: D ? "whileInView" : "initial" },
|
|
1648
|
-
|
|
1644
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial" }, d) : null,
|
|
1645
|
+
Nt ? /* @__PURE__ */ i.jsx(te.text, { y: zt.bandwidth() / 2, style: {
|
|
1649
1646
|
textAnchor: "middle",
|
|
1650
1647
|
...l?.graphObjectValues || {}
|
|
1651
1648
|
}, dy: "0.33em", className: Ce("graph-value text-sm", a?.graphObjectValues), exit: {
|
|
1652
1649
|
opacity: 0,
|
|
1653
1650
|
transition: {
|
|
1654
|
-
duration:
|
|
1651
|
+
duration: f.duration
|
|
1655
1652
|
}
|
|
1656
1653
|
}, variants: {
|
|
1657
1654
|
initial: {
|
|
1658
1655
|
x: v(0),
|
|
1659
1656
|
opacity: 0,
|
|
1660
|
-
fill:
|
|
1657
|
+
fill: Ye(H[d])
|
|
1661
1658
|
},
|
|
1662
1659
|
whileInView: {
|
|
1663
|
-
x: v(
|
|
1664
|
-
opacity: V && v(V) / we(V, at,
|
|
1665
|
-
fill:
|
|
1660
|
+
x: v(d === 0 ? 0 : me(g.size.filter((L, o) => o < d && L))) + v(V || 0) / 2,
|
|
1661
|
+
opacity: V && v(V) / we(V, at, w, st, W, C).length > 12 ? 1 : 0,
|
|
1662
|
+
fill: Ye(H[d]),
|
|
1666
1663
|
transition: {
|
|
1667
|
-
duration:
|
|
1664
|
+
duration: f.duration
|
|
1668
1665
|
}
|
|
1669
1666
|
}
|
|
1670
|
-
}, initial: "initial", animate: D ? "whileInView" : "initial", children: we(V, at,
|
|
1671
|
-
] }, `${
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
...
|
|
1675
|
-
fill:
|
|
1667
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", children: we(V, at, w, st, W, C) }) : null
|
|
1668
|
+
] }, `${g.label}-${x[d] || d}`)),
|
|
1669
|
+
$t ? /* @__PURE__ */ i.jsx(qe, { value: `${g.label}`.length < R ? `${g.label}` : `${`${g.label}`.substring(0, R)}...`, y: 0, x: 0 - c.left, width: 0 + c.left, height: zt.bandwidth(), style: l?.yAxis?.labels, className: a?.yAxis?.labels, animate: f, isInView: D }) : null,
|
|
1670
|
+
Nt ? /* @__PURE__ */ i.jsx(te.text, { className: Ce("graph-value graph-value-total text-sm", _ ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", a?.graphObjectValues), style: {
|
|
1671
|
+
..._ ? {
|
|
1672
|
+
fill: _
|
|
1676
1673
|
} : {},
|
|
1677
1674
|
textAnchor: "start",
|
|
1678
1675
|
...l?.graphObjectValues || {}
|
|
1679
|
-
}, y:
|
|
1676
|
+
}, y: zt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
|
|
1680
1677
|
initial: {
|
|
1681
1678
|
x: v(0),
|
|
1682
1679
|
opacity: 0,
|
|
1683
|
-
...
|
|
1684
|
-
fill:
|
|
1680
|
+
..._ ? {
|
|
1681
|
+
fill: _
|
|
1685
1682
|
} : {}
|
|
1686
1683
|
},
|
|
1687
1684
|
whileInView: {
|
|
1688
|
-
x: v(
|
|
1685
|
+
x: v(me(g.size.map(Yl))),
|
|
1689
1686
|
opacity: 1,
|
|
1690
|
-
...
|
|
1691
|
-
fill:
|
|
1687
|
+
..._ ? {
|
|
1688
|
+
fill: _
|
|
1692
1689
|
} : {},
|
|
1693
1690
|
transition: {
|
|
1694
|
-
duration:
|
|
1691
|
+
duration: f.duration
|
|
1695
1692
|
}
|
|
1696
1693
|
}
|
|
1697
1694
|
}, exit: {
|
|
1698
1695
|
opacity: 0,
|
|
1699
1696
|
transition: {
|
|
1700
|
-
duration:
|
|
1697
|
+
duration: f.duration
|
|
1701
1698
|
}
|
|
1702
|
-
}, initial: "initial", animate: D ? "whileInView" : "initial", children: we(
|
|
1703
|
-
] },
|
|
1704
|
-
const
|
|
1699
|
+
}, initial: "initial", animate: D ? "whileInView" : "initial", children: we(me(g.size.filter(Xl)), at, w, st, W, C) }) : null
|
|
1700
|
+
] }, g.label));
|
|
1701
|
+
const Ut = a?.yAxis?.axis;
|
|
1705
1702
|
let Jt;
|
|
1706
|
-
t[90] !==
|
|
1707
|
-
axis:
|
|
1708
|
-
}, t[90] =
|
|
1703
|
+
t[90] !== Ut ? (Jt = {
|
|
1704
|
+
axis: Ut
|
|
1705
|
+
}, t[90] = Ut, t[91] = Jt) : Jt = t[91];
|
|
1709
1706
|
const Zt = l?.yAxis?.axis;
|
|
1710
|
-
let
|
|
1711
|
-
t[92] !== Zt ? (
|
|
1707
|
+
let dt;
|
|
1708
|
+
t[92] !== Zt ? (dt = {
|
|
1712
1709
|
axis: Zt
|
|
1713
|
-
}, t[92] = Zt, t[93] =
|
|
1710
|
+
}, t[92] = Zt, t[93] = dt) : dt = t[93], pt = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: S, x1: v(0), x2: v(0), y1: -2.5, y2: Y + c.bottom, classNames: Jt, styles: dt }), St = Ot ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ot.map((g, V) => /* @__PURE__ */ i.jsx(Je, { text: g.text, color: g.color, x: v(g.value), y1: 0 - c.top, y2: Y + c.bottom, textSide: v(g.value) > Pt * 0.75 || j ? "left" : "right", classNames: g.classNames, styles: g.styles, animate: f, isInView: D }, V)) }) : null, t[16] = f, t[17] = J, t[18] = H, t[19] = kt, t[20] = Gt, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = x, t[28] = h, t[29] = M, t[30] = T, t[31] = Y, t[32] = Pt, t[33] = X, t[34] = S, t[35] = D, t[36] = C, t[37] = c.bottom, t[38] = c.left, t[39] = c.top, t[40] = ot, t[41] = Xt, t[42] = U, t[43] = y, t[44] = at, t[45] = u, t[46] = k, t[47] = Z, t[48] = w, t[49] = st, t[50] = Ot, t[51] = xt, t[52] = j, t[53] = q, t[54] = $t, t[55] = Kt, t[56] = Nt, t[57] = l?.graphObjectValues, t[58] = l?.xAxis?.gridLines, t[59] = l?.xAxis?.labels, t[60] = l?.xAxis?.title, t[61] = l?.yAxis?.axis, t[62] = l?.yAxis?.labels, t[63] = W, t[64] = Ht, t[65] = R, t[66] = _, t[67] = O, t[68] = ht, t[69] = ft, t[70] = pt, t[71] = St, t[72] = Ct, t[73] = K, t[74] = F, t[75] = I, t[76] = Lt, t[77] = nt, t[78] = lt, t[79] = Q, t[80] = gt, t[81] = rt;
|
|
1714
1711
|
} else
|
|
1715
|
-
|
|
1716
|
-
let
|
|
1717
|
-
t[94] !==
|
|
1718
|
-
|
|
1719
|
-
|
|
1712
|
+
ht = t[68], ft = t[69], pt = t[70], St = t[71], Ct = t[72], K = t[73], F = t[74], I = t[75], Lt = t[76], nt = t[77], lt = t[78], Q = t[79], gt = t[80], rt = t[81];
|
|
1713
|
+
let E;
|
|
1714
|
+
t[94] !== ht || t[95] !== pt || t[96] !== St || t[97] !== rt ? (E = /* @__PURE__ */ i.jsxs(ht, { children: [
|
|
1715
|
+
rt,
|
|
1716
|
+
pt,
|
|
1720
1717
|
St
|
|
1721
|
-
] }), t[94] =
|
|
1722
|
-
let
|
|
1723
|
-
t[99] !==
|
|
1724
|
-
let
|
|
1725
|
-
t[101] !==
|
|
1726
|
-
|
|
1727
|
-
|
|
1718
|
+
] }), t[94] = ht, t[95] = pt, t[96] = St, t[97] = rt, t[98] = E) : E = t[98];
|
|
1719
|
+
let vt;
|
|
1720
|
+
t[99] !== h ? (vt = h.filter(Wl).map(Hl), t[99] = h, t[100] = vt) : vt = t[100];
|
|
1721
|
+
let Vt;
|
|
1722
|
+
t[101] !== Ct || t[102] !== K || t[103] !== F || t[104] !== I || t[105] !== E || t[106] !== vt ? (Vt = /* @__PURE__ */ i.jsxs("g", { transform: Ct, children: [
|
|
1723
|
+
K,
|
|
1724
|
+
F,
|
|
1728
1725
|
I,
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
] }), t[101] =
|
|
1732
|
-
let
|
|
1733
|
-
t[108] !==
|
|
1734
|
-
let
|
|
1735
|
-
t[116] !== a?.tooltip || t[117] !== Tt || t[118] !==
|
|
1736
|
-
let
|
|
1737
|
-
t[123] !== a?.modal || t[124] !==
|
|
1726
|
+
E,
|
|
1727
|
+
vt
|
|
1728
|
+
] }), t[101] = Ct, t[102] = K, t[103] = F, t[104] = I, t[105] = E, t[106] = vt, t[107] = Vt) : Vt = t[107];
|
|
1729
|
+
let ct;
|
|
1730
|
+
t[108] !== ft || t[109] !== Lt || t[110] !== nt || t[111] !== lt || t[112] !== Q || t[113] !== gt || t[114] !== Vt ? (ct = /* @__PURE__ */ i.jsx(ft, { ref: Lt, width: nt, height: lt, viewBox: Q, direction: gt, children: Vt }), t[108] = ft, t[109] = Lt, t[110] = nt, t[111] = lt, t[112] = Q, t[113] = gt, t[114] = Vt, t[115] = ct) : ct = t[115];
|
|
1731
|
+
let A;
|
|
1732
|
+
t[116] !== a?.tooltip || t[117] !== Tt || t[118] !== qt || t[119] !== jt || t[120] !== l?.tooltip || t[121] !== ut ? (A = jt && ut && Tt && qt ? /* @__PURE__ */ i.jsx(je, { data: jt, body: ut, xPos: Tt, yPos: qt, backgroundStyle: l?.tooltip, className: a?.tooltip }) : null, t[116] = a?.tooltip, t[117] = Tt, t[118] = qt, t[119] = jt, t[120] = l?.tooltip, t[121] = ut, t[122] = A) : A = t[122];
|
|
1733
|
+
let Wt;
|
|
1734
|
+
t[123] !== a?.modal || t[124] !== T || t[125] !== y ? (Wt = T && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: T, data: y, setData: Ft, className: a?.modal }) : null, t[123] = a?.modal, t[124] = T, t[125] = y, t[126] = Wt) : Wt = t[126];
|
|
1738
1735
|
let n;
|
|
1739
|
-
return t[127] !==
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
] }), t[127] =
|
|
1736
|
+
return t[127] !== ct || t[128] !== A || t[129] !== Wt ? (n = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1737
|
+
ct,
|
|
1738
|
+
A,
|
|
1739
|
+
Wt
|
|
1740
|
+
] }), t[127] = ct, t[128] = A, t[129] = Wt, t[130] = n) : n = t[130], n;
|
|
1744
1741
|
}
|
|
1745
|
-
function
|
|
1742
|
+
function Hl(e) {
|
|
1746
1743
|
return e.layer;
|
|
1747
1744
|
}
|
|
1748
|
-
function
|
|
1745
|
+
function Wl(e) {
|
|
1749
1746
|
return e.position === "after";
|
|
1750
1747
|
}
|
|
1751
|
-
function
|
|
1748
|
+
function Xl(e) {
|
|
1752
1749
|
return e;
|
|
1753
1750
|
}
|
|
1754
|
-
function
|
|
1751
|
+
function Yl(e) {
|
|
1755
1752
|
return e || 0;
|
|
1756
1753
|
}
|
|
1757
|
-
function
|
|
1754
|
+
function El(e) {
|
|
1758
1755
|
return e.layer;
|
|
1759
1756
|
}
|
|
1760
|
-
function
|
|
1757
|
+
function Gl(e) {
|
|
1761
1758
|
return e.position === "before";
|
|
1762
1759
|
}
|
|
1763
|
-
function
|
|
1760
|
+
function Rl(e) {
|
|
1764
1761
|
return e !== 0;
|
|
1765
1762
|
}
|
|
1766
|
-
function
|
|
1763
|
+
function ql(e) {
|
|
1767
1764
|
return e !== 0;
|
|
1768
1765
|
}
|
|
1769
|
-
function
|
|
1766
|
+
function Ul(e) {
|
|
1770
1767
|
return `${e.id}`;
|
|
1771
1768
|
}
|
|
1772
|
-
function
|
|
1769
|
+
function Jl(e) {
|
|
1773
1770
|
const t = $e.c(140), {
|
|
1774
1771
|
data: s,
|
|
1775
1772
|
leftMargin: H,
|
|
1776
|
-
rightMargin:
|
|
1773
|
+
rightMargin: Gt,
|
|
1777
1774
|
topMargin: Kt,
|
|
1778
|
-
bottomMargin:
|
|
1779
|
-
width:
|
|
1775
|
+
bottomMargin: It,
|
|
1776
|
+
width: At,
|
|
1780
1777
|
height: Bt,
|
|
1781
1778
|
barColors: P,
|
|
1782
|
-
barPadding:
|
|
1779
|
+
barPadding: R,
|
|
1783
1780
|
showLabels: O,
|
|
1784
1781
|
showTicks: X,
|
|
1785
|
-
truncateBy:
|
|
1786
|
-
tooltip:
|
|
1787
|
-
onSeriesMouseOver:
|
|
1782
|
+
truncateBy: ut,
|
|
1783
|
+
tooltip: Z,
|
|
1784
|
+
onSeriesMouseOver: $t,
|
|
1788
1785
|
suffix: W,
|
|
1789
1786
|
prefix: st,
|
|
1790
|
-
showValues:
|
|
1791
|
-
refValues:
|
|
1787
|
+
showValues: Nt,
|
|
1788
|
+
refValues: Ot,
|
|
1792
1789
|
maxValue: Xt,
|
|
1793
1790
|
onSeriesMouseClick: k,
|
|
1794
|
-
selectedColor:
|
|
1795
|
-
labelOrder:
|
|
1791
|
+
selectedColor: q,
|
|
1792
|
+
labelOrder: j,
|
|
1796
1793
|
maxBarThickness: N,
|
|
1797
|
-
minBarThickness:
|
|
1798
|
-
resetSelectionOnDoubleClick:
|
|
1799
|
-
detailsOnClick:
|
|
1800
|
-
barAxisTitle:
|
|
1801
|
-
valueColor:
|
|
1802
|
-
noOfTicks:
|
|
1803
|
-
styles:
|
|
1794
|
+
minBarThickness: ot,
|
|
1795
|
+
resetSelectionOnDoubleClick: U,
|
|
1796
|
+
detailsOnClick: xt,
|
|
1797
|
+
barAxisTitle: T,
|
|
1798
|
+
valueColor: J,
|
|
1799
|
+
noOfTicks: _,
|
|
1800
|
+
styles: u,
|
|
1804
1801
|
classNames: l,
|
|
1805
1802
|
animate: a,
|
|
1806
|
-
colorDomain:
|
|
1807
|
-
precision:
|
|
1808
|
-
customLayers:
|
|
1809
|
-
naLabel:
|
|
1803
|
+
colorDomain: f,
|
|
1804
|
+
precision: x,
|
|
1805
|
+
customLayers: w,
|
|
1806
|
+
naLabel: h,
|
|
1810
1807
|
hideAxisLine: at,
|
|
1811
|
-
locale:
|
|
1812
|
-
} = e, C = H === void 0 ? 20 : H,
|
|
1808
|
+
locale: S
|
|
1809
|
+
} = e, C = H === void 0 ? 20 : H, Ht = Gt === void 0 ? 20 : Gt, Rt = Kt === void 0 ? 20 : Kt, Mt = It === void 0 ? 25 : It, yt = Ae(null);
|
|
1813
1810
|
let Yt;
|
|
1814
1811
|
t[0] !== a.amount || t[1] !== a.once ? (Yt = {
|
|
1815
1812
|
once: a.once,
|
|
1816
1813
|
amount: a.amount
|
|
1817
1814
|
}, t[0] = a.amount, t[1] = a.once, t[2] = Yt) : Yt = t[2];
|
|
1818
|
-
const
|
|
1819
|
-
let
|
|
1820
|
-
t[3] !==
|
|
1821
|
-
top:
|
|
1822
|
-
bottom:
|
|
1815
|
+
const tt = Fe(yt, Yt), D = T ? C + 30 : C;
|
|
1816
|
+
let B;
|
|
1817
|
+
t[3] !== Mt || t[4] !== Ht || t[5] !== D || t[6] !== Rt ? (B = {
|
|
1818
|
+
top: Rt,
|
|
1819
|
+
bottom: Mt,
|
|
1823
1820
|
left: D,
|
|
1824
|
-
right:
|
|
1825
|
-
}, t[3] =
|
|
1826
|
-
const
|
|
1821
|
+
right: Ht
|
|
1822
|
+
}, t[3] = Mt, t[4] = Ht, t[5] = D, t[6] = Rt, t[7] = B) : B = t[7];
|
|
1823
|
+
const p = B, [c, jt] = _t(void 0), [z, y] = _t(void 0), [Ft, Tt] = _t(void 0), [mt, qt] = _t(void 0), et = At - p.left - p.right, Pt = Bt - p.top - p.bottom;
|
|
1827
1824
|
let Y;
|
|
1828
|
-
if (t[8] !== s || t[9] !==
|
|
1829
|
-
const n = /* @__PURE__ */ new Set(), v = s.map((
|
|
1830
|
-
const
|
|
1831
|
-
return n.add(
|
|
1832
|
-
...
|
|
1833
|
-
id:
|
|
1825
|
+
if (t[8] !== s || t[9] !== j) {
|
|
1826
|
+
const n = /* @__PURE__ */ new Set(), v = s.map((r, b) => {
|
|
1827
|
+
const G = j ? `${r.label}` : `${b}`;
|
|
1828
|
+
return n.add(G), {
|
|
1829
|
+
...r,
|
|
1830
|
+
id: G
|
|
1834
1831
|
};
|
|
1835
|
-
}),
|
|
1836
|
-
let
|
|
1837
|
-
t[11] !== s[0] ? (
|
|
1838
|
-
id:
|
|
1839
|
-
label:
|
|
1832
|
+
}), zt = j ? j.filter((r) => !n.has(r)) : [];
|
|
1833
|
+
let wt;
|
|
1834
|
+
t[11] !== s[0] ? (wt = (r) => ({
|
|
1835
|
+
id: r,
|
|
1836
|
+
label: r,
|
|
1840
1837
|
size: Array(s[0].size.length).fill(null)
|
|
1841
|
-
}), t[11] = s[0], t[12] =
|
|
1838
|
+
}), t[11] = s[0], t[12] = wt) : wt = t[12], Y = [...v, ...zt.map(wt)], t[8] = s, t[9] = j, t[10] = Y;
|
|
1842
1839
|
} else
|
|
1843
1840
|
Y = t[10];
|
|
1844
|
-
const
|
|
1841
|
+
const it = Y;
|
|
1845
1842
|
let M;
|
|
1846
|
-
t[13] !==
|
|
1843
|
+
t[13] !== it || t[14] !== j ? (M = j ?? it.map(ss), t[13] = it, t[14] = j, t[15] = M) : M = t[15];
|
|
1847
1844
|
const bt = M;
|
|
1848
|
-
let
|
|
1849
|
-
if (t[16] !== a || t[17] !==
|
|
1850
|
-
const n =
|
|
1851
|
-
|
|
1852
|
-
let
|
|
1853
|
-
t[82] !==
|
|
1854
|
-
const
|
|
1855
|
-
let
|
|
1856
|
-
t[89] !==
|
|
1857
|
-
axis:
|
|
1858
|
-
label:
|
|
1859
|
-
}, t[89] =
|
|
1860
|
-
const Et =
|
|
1845
|
+
let kt, ht, ft, pt, St, Ct, K, F, I, Lt, nt, lt, Q, gt;
|
|
1846
|
+
if (t[16] !== a || t[17] !== T || t[18] !== P || t[19] !== bt || t[20] !== R || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== f || t[28] !== w || t[29] !== it || t[30] !== xt || t[31] !== Pt || t[32] !== et || t[33] !== Bt || t[34] !== at || t[35] !== tt || t[36] !== C || t[37] !== S || t[38] !== p.bottom || t[39] !== p.left || t[40] !== p.right || t[41] !== p.top || t[42] !== N || t[43] !== Xt || t[44] !== ot || t[45] !== z || t[46] !== h || t[47] !== _ || t[48] !== k || t[49] !== $t || t[50] !== x || t[51] !== st || t[52] !== Ot || t[53] !== U || t[54] !== q || t[55] !== O || t[56] !== X || t[57] !== Nt || t[58] !== u?.graphObjectValues || t[59] !== u?.xAxis?.axis || t[60] !== u?.xAxis?.labels || t[61] !== u?.yAxis?.gridLines || t[62] !== u?.yAxis?.labels || t[63] !== u?.yAxis?.title || t[64] !== W || t[65] !== ut || t[66] !== J || t[67] !== At) {
|
|
1847
|
+
const n = Pe().domain([0, Xt]).range([Pt, 0]).nice(), v = Le().domain(bt).range([0, ot ? Math.max(et, ot * bt.length) : N ? Math.min(et, N * bt.length) : et]).paddingInner(R), zt = n.ticks(_);
|
|
1848
|
+
ht = te.svg, I = `${At}px`, Lt = `${Bt}px`, nt = `0 0 ${At} ${Bt}`, lt = "ltr", Q = yt, pt = `translate(${p.left},${p.top})`;
|
|
1849
|
+
let wt;
|
|
1850
|
+
t[82] !== S || t[83] !== h || t[84] !== x || t[85] !== st || t[86] !== X || t[87] !== W ? (wt = X ? we(0, h, x, st, W, S) : void 0, t[82] = S, t[83] = h, t[84] = x, t[85] = st, t[86] = X, t[87] = W, t[88] = wt) : wt = t[88];
|
|
1851
|
+
const r = l?.xAxis?.axis, b = l?.yAxis?.labels;
|
|
1852
|
+
let G;
|
|
1853
|
+
t[89] !== r || t[90] !== b ? (G = {
|
|
1854
|
+
axis: r,
|
|
1855
|
+
label: b
|
|
1856
|
+
}, t[89] = r, t[90] = b, t[91] = G) : G = t[91];
|
|
1857
|
+
const Et = u?.xAxis?.axis, Ut = u?.yAxis?.labels;
|
|
1861
1858
|
let Jt;
|
|
1862
|
-
t[92] !== Et || t[93] !==
|
|
1859
|
+
t[92] !== Et || t[93] !== Ut ? (Jt = {
|
|
1863
1860
|
axis: Et,
|
|
1864
|
-
label:
|
|
1865
|
-
}, t[92] = Et, t[93] =
|
|
1861
|
+
label: Ut
|
|
1862
|
+
}, t[92] = Et, t[93] = Ut, t[94] = Jt) : Jt = t[94], St = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: at, y1: n(0), y2: n(0), x1: 0 - C, x2: et + p.right, label: wt, labelPos: {
|
|
1866
1863
|
x: 0 - C,
|
|
1867
1864
|
y: n(0),
|
|
1868
1865
|
dx: 0,
|
|
1869
1866
|
dy: -5
|
|
1870
|
-
}, classNames:
|
|
1871
|
-
gridLines:
|
|
1872
|
-
labels:
|
|
1867
|
+
}, classNames: G, styles: Jt }), Ct = X ? /* @__PURE__ */ i.jsx(Qe, { values: zt.filter(ls), y: zt.filter(is).map((d) => n(d)), x1: 0 - C, x2: et + p.right, styles: {
|
|
1868
|
+
gridLines: u?.yAxis?.gridLines,
|
|
1869
|
+
labels: u?.yAxis?.labels
|
|
1873
1870
|
}, classNames: {
|
|
1874
1871
|
gridLines: l?.yAxis?.gridLines,
|
|
1875
1872
|
labels: l?.yAxis?.labels
|
|
1876
|
-
}, suffix: W, prefix: st, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision:
|
|
1877
|
-
const Zt = 0 - C - 15,
|
|
1878
|
-
t[95] !==
|
|
1873
|
+
}, suffix: W, prefix: st, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x, locale: S }) : null;
|
|
1874
|
+
const Zt = 0 - C - 15, dt = Pt / 2, g = u?.yAxis?.title, V = l?.yAxis?.title;
|
|
1875
|
+
t[95] !== T || t[96] !== Zt || t[97] !== dt || t[98] !== g || t[99] !== V ? (K = /* @__PURE__ */ i.jsx(Se, { x: Zt, y: dt, style: g, className: V, text: T, rotate90: !0 }), t[95] = T, t[96] = Zt, t[97] = dt, t[98] = g, t[99] = V, t[100] = K) : K = t[100], t[101] !== w ? (F = w.filter(es).map(ts), t[101] = w, t[102] = F) : F = t[102], kt = He, gt = it.map((d) => ie(v(d.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1879
1876
|
initial: {
|
|
1880
|
-
x: v(`${
|
|
1877
|
+
x: v(`${d.id}`),
|
|
1881
1878
|
y: 0
|
|
1882
1879
|
},
|
|
1883
1880
|
whileInView: {
|
|
1884
|
-
x: v(`${
|
|
1881
|
+
x: v(`${d.id}`),
|
|
1885
1882
|
y: 0,
|
|
1886
1883
|
transition: {
|
|
1887
1884
|
duration: a.duration
|
|
@@ -1889,101 +1886,101 @@ function Ql(e) {
|
|
|
1889
1886
|
}
|
|
1890
1887
|
}, transition: {
|
|
1891
1888
|
duration: a.duration
|
|
1892
|
-
}, initial: "initial", animate:
|
|
1889
|
+
}, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
|
|
1893
1890
|
opacity: 0,
|
|
1894
1891
|
transition: {
|
|
1895
1892
|
duration: a.duration
|
|
1896
1893
|
}
|
|
1897
1894
|
}, children: [
|
|
1898
|
-
|
|
1895
|
+
d.size.map((L, o) => /* @__PURE__ */ i.jsxs(te.g, { opacity: q ? P[o] === q ? 1 : 0.3 : 1, onMouseEnter: ($) => {
|
|
1899
1896
|
jt({
|
|
1900
|
-
...
|
|
1897
|
+
...d,
|
|
1901
1898
|
sizeIndex: o
|
|
1902
|
-
}),
|
|
1903
|
-
...
|
|
1899
|
+
}), qt($.clientY), Tt($.clientX), $t?.({
|
|
1900
|
+
...d,
|
|
1904
1901
|
sizeIndex: o
|
|
1905
1902
|
});
|
|
1906
|
-
}, onMouseMove: (
|
|
1903
|
+
}, onMouseMove: ($) => {
|
|
1907
1904
|
jt({
|
|
1908
|
-
...
|
|
1905
|
+
...d,
|
|
1909
1906
|
sizeIndex: o
|
|
1910
|
-
}),
|
|
1907
|
+
}), qt($.clientY), Tt($.clientX);
|
|
1911
1908
|
}, onMouseLeave: () => {
|
|
1912
|
-
jt(void 0), Tt(void 0),
|
|
1909
|
+
jt(void 0), Tt(void 0), qt(void 0), $t?.(void 0);
|
|
1913
1910
|
}, onClick: () => {
|
|
1914
|
-
(k ||
|
|
1915
|
-
...
|
|
1911
|
+
(k || xt) && (Ne(z, {
|
|
1912
|
+
...d,
|
|
1916
1913
|
sizeIndex: o
|
|
1917
|
-
}) &&
|
|
1918
|
-
...
|
|
1914
|
+
}) && U ? (y(void 0), k?.(void 0)) : (y({
|
|
1915
|
+
...d,
|
|
1919
1916
|
sizeIndex: o
|
|
1920
1917
|
}), k && k({
|
|
1921
|
-
...
|
|
1918
|
+
...d,
|
|
1922
1919
|
sizeIndex: o
|
|
1923
1920
|
})));
|
|
1924
1921
|
}, children: [
|
|
1925
|
-
/* @__PURE__ */ i.jsx(
|
|
1922
|
+
/* @__PURE__ */ i.jsx(te.rect, { x: 0, width: v.bandwidth(), variants: {
|
|
1926
1923
|
initial: {
|
|
1927
1924
|
height: 0,
|
|
1928
1925
|
fill: P[o],
|
|
1929
1926
|
y: n(0)
|
|
1930
1927
|
},
|
|
1931
1928
|
whileInView: {
|
|
1932
|
-
height: Math.abs(n(
|
|
1933
|
-
y: n(
|
|
1929
|
+
height: Math.abs(n(me(d.size.filter(($, m) => m <= o && $))) - n(me(d.size.filter(($, m) => m < o && $)))),
|
|
1930
|
+
y: n(me(d.size.filter(($, m) => m <= o && $))),
|
|
1934
1931
|
fill: P[o],
|
|
1935
1932
|
transition: {
|
|
1936
1933
|
duration: a.duration
|
|
1937
1934
|
}
|
|
1938
1935
|
}
|
|
1939
|
-
}, initial: "initial", animate:
|
|
1936
|
+
}, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
|
|
1940
1937
|
height: 0,
|
|
1941
1938
|
y: n(0),
|
|
1942
1939
|
transition: {
|
|
1943
1940
|
duration: a.duration
|
|
1944
1941
|
}
|
|
1945
1942
|
} }),
|
|
1946
|
-
|
|
1943
|
+
Nt ? /* @__PURE__ */ i.jsx(te.text, { x: v.bandwidth() / 2, style: {
|
|
1947
1944
|
textAnchor: "middle",
|
|
1948
|
-
...
|
|
1945
|
+
...u?.graphObjectValues || {}
|
|
1949
1946
|
}, className: Ce("graph-value text-sm", l?.graphObjectValues), dy: "0.33em", variants: {
|
|
1950
1947
|
initial: {
|
|
1951
1948
|
y: n(0),
|
|
1952
1949
|
opacity: 0,
|
|
1953
|
-
fill:
|
|
1950
|
+
fill: Ye(P[o])
|
|
1954
1951
|
},
|
|
1955
1952
|
whileInView: {
|
|
1956
|
-
y: n(
|
|
1957
|
-
opacity: L && Math.abs(n(
|
|
1958
|
-
fill:
|
|
1953
|
+
y: n(me(d.size.filter(($, m) => m <= o && $))) + Math.abs(n(me(d.size.filter(($, m) => m <= o && $))) - n(me(d.size.filter(($, m) => m < o && $)))) / 2,
|
|
1954
|
+
opacity: L && Math.abs(n(me(d.size.filter(($, m) => m <= o && $))) - n(me(d.size.filter(($, m) => m < o && $)))) > 20 ? 1 : 0,
|
|
1955
|
+
fill: Ye(P[o]),
|
|
1959
1956
|
transition: {
|
|
1960
1957
|
duration: a.duration
|
|
1961
1958
|
}
|
|
1962
1959
|
}
|
|
1963
|
-
}, initial: "initial", animate:
|
|
1960
|
+
}, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
|
|
1964
1961
|
opacity: 0,
|
|
1965
1962
|
transition: {
|
|
1966
1963
|
duration: a.duration
|
|
1967
1964
|
}
|
|
1968
|
-
}, children: we(L,
|
|
1969
|
-
] }, `${
|
|
1970
|
-
O ? /* @__PURE__ */ i.jsx(
|
|
1971
|
-
|
|
1965
|
+
}, children: we(L, h, x, st, W, S) }) : null
|
|
1966
|
+
] }, `${d.label}-${f[o] || o}`)),
|
|
1967
|
+
O ? /* @__PURE__ */ i.jsx(Ze, { value: `${d.label}`.length < ut ? `${d.label}` : `${`${d.label}`.substring(0, ut)}...`, y: n(0) + 5, x: 0, width: v.bandwidth(), height: p.bottom, style: u?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: a, isInView: tt }) : null,
|
|
1968
|
+
Nt ? /* @__PURE__ */ i.jsx(te.text, { style: {
|
|
1972
1969
|
textAnchor: "middle",
|
|
1973
|
-
...
|
|
1974
|
-
}, x: v.bandwidth() / 2, dy: -10, className: Ce("graph-value graph-value-total",
|
|
1970
|
+
...u?.graphObjectValues || {}
|
|
1971
|
+
}, x: v.bandwidth() / 2, dy: -10, className: Ce("graph-value graph-value-total", J ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", l?.graphObjectValues), variants: {
|
|
1975
1972
|
initial: {
|
|
1976
1973
|
y: n(0),
|
|
1977
1974
|
opacity: 0,
|
|
1978
|
-
...
|
|
1979
|
-
fill:
|
|
1975
|
+
...J && {
|
|
1976
|
+
fill: J
|
|
1980
1977
|
}
|
|
1981
1978
|
},
|
|
1982
1979
|
whileInView: {
|
|
1983
|
-
y: n(
|
|
1980
|
+
y: n(me(d.size.map(_l))),
|
|
1984
1981
|
opacity: 1,
|
|
1985
|
-
...
|
|
1986
|
-
fill:
|
|
1982
|
+
...J && {
|
|
1983
|
+
fill: J
|
|
1987
1984
|
},
|
|
1988
1985
|
transition: {
|
|
1989
1986
|
duration: a.duration
|
|
@@ -1994,245 +1991,251 @@ function Ql(e) {
|
|
|
1994
1991
|
transition: {
|
|
1995
1992
|
duration: a.duration
|
|
1996
1993
|
}
|
|
1997
|
-
}, initial: "initial", animate:
|
|
1998
|
-
] },
|
|
1994
|
+
}, initial: "initial", animate: tt ? "whileInView" : "initial", children: we(me(d.size.filter(Zl)), h, x, st, W, S) }) : null
|
|
1995
|
+
] }, d.label)), ft = Ot ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ot.map((d, L) => /* @__PURE__ */ i.jsx(Ke, { text: d.text, color: d.color, y: n(d.value), x1: 0 - C, x2: et + p.right, classNames: d.classNames, styles: d.styles, animate: a, isInView: tt }, L)) }) : null, t[16] = a, t[17] = T, t[18] = P, t[19] = bt, t[20] = R, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = f, t[28] = w, t[29] = it, t[30] = xt, t[31] = Pt, t[32] = et, t[33] = Bt, t[34] = at, t[35] = tt, t[36] = C, t[37] = S, t[38] = p.bottom, t[39] = p.left, t[40] = p.right, t[41] = p.top, t[42] = N, t[43] = Xt, t[44] = ot, t[45] = z, t[46] = h, t[47] = _, t[48] = k, t[49] = $t, t[50] = x, t[51] = st, t[52] = Ot, t[53] = U, t[54] = q, t[55] = O, t[56] = X, t[57] = Nt, t[58] = u?.graphObjectValues, t[59] = u?.xAxis?.axis, t[60] = u?.xAxis?.labels, t[61] = u?.yAxis?.gridLines, t[62] = u?.yAxis?.labels, t[63] = u?.yAxis?.title, t[64] = W, t[65] = ut, t[66] = J, t[67] = At, t[68] = kt, t[69] = ht, t[70] = ft, t[71] = pt, t[72] = St, t[73] = Ct, t[74] = K, t[75] = F, t[76] = I, t[77] = Lt, t[78] = nt, t[79] = lt, t[80] = Q, t[81] = gt;
|
|
1999
1996
|
} else
|
|
2000
|
-
|
|
1997
|
+
kt = t[68], ht = t[69], ft = t[70], pt = t[71], St = t[72], Ct = t[73], K = t[74], F = t[75], I = t[76], Lt = t[77], nt = t[78], lt = t[79], Q = t[80], gt = t[81];
|
|
1998
|
+
let rt;
|
|
1999
|
+
t[103] !== kt || t[104] !== ft || t[105] !== gt ? (rt = /* @__PURE__ */ i.jsxs(kt, { children: [
|
|
2000
|
+
gt,
|
|
2001
|
+
ft
|
|
2002
|
+
] }), t[103] = kt, t[104] = ft, t[105] = gt, t[106] = rt) : rt = t[106];
|
|
2001
2003
|
let E;
|
|
2002
|
-
t[
|
|
2003
|
-
ct,
|
|
2004
|
-
ht
|
|
2005
|
-
] }), t[103] = Lt, t[104] = ht, t[105] = ct, t[106] = E) : E = t[106];
|
|
2004
|
+
t[107] !== w ? (E = w.filter(Ql).map(Kl), t[107] = w, t[108] = E) : E = t[108];
|
|
2006
2005
|
let vt;
|
|
2007
|
-
t[
|
|
2008
|
-
let wt;
|
|
2009
|
-
t[109] !== ft || t[110] !== St || t[111] !== Vt || t[112] !== J || t[113] !== j || t[114] !== E || t[115] !== vt ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
|
|
2006
|
+
t[109] !== pt || t[110] !== St || t[111] !== Ct || t[112] !== K || t[113] !== F || t[114] !== rt || t[115] !== E ? (vt = /* @__PURE__ */ i.jsxs("g", { transform: pt, children: [
|
|
2010
2007
|
St,
|
|
2011
|
-
|
|
2012
|
-
J,
|
|
2013
|
-
j,
|
|
2014
|
-
E,
|
|
2015
|
-
vt
|
|
2016
|
-
] }), t[109] = ft, t[110] = St, t[111] = Vt, t[112] = J, t[113] = j, t[114] = E, t[115] = vt, t[116] = wt) : wt = t[116];
|
|
2017
|
-
let K;
|
|
2018
|
-
t[117] !== mt || t[118] !== I || t[119] !== zt || t[120] !== pt || t[121] !== ot || t[122] !== rt || t[123] !== wt ? (K = /* @__PURE__ */ i.jsx(mt, { width: I, height: zt, viewBox: pt, direction: ot, ref: rt, children: wt }), t[117] = mt, t[118] = I, t[119] = zt, t[120] = pt, t[121] = ot, t[122] = rt, t[123] = wt, t[124] = K) : K = t[124];
|
|
2019
|
-
let gt;
|
|
2020
|
-
t[125] !== l?.tooltip || t[126] !== Ft || t[127] !== xt || t[128] !== r || t[129] !== c?.tooltip || t[130] !== Q ? (gt = r && Q && Ft && xt ? /* @__PURE__ */ i.jsx(Se, { data: r, body: Q, xPos: Ft, yPos: xt, backgroundStyle: c?.tooltip, className: l?.tooltip }) : null, t[125] = l?.tooltip, t[126] = Ft, t[127] = xt, t[128] = r, t[129] = c?.tooltip, t[130] = Q, t[131] = gt) : gt = t[131];
|
|
2021
|
-
let $;
|
|
2022
|
-
t[132] !== l?.modal || t[133] !== ut || t[134] !== z ? ($ = ut && z !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: ut, data: z, setData: y, className: l?.modal }) : null, t[132] = l?.modal, t[133] = ut, t[134] = z, t[135] = $) : $ = t[135];
|
|
2023
|
-
let Ht;
|
|
2024
|
-
return t[136] !== K || t[137] !== gt || t[138] !== $ ? (Ht = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2008
|
+
Ct,
|
|
2025
2009
|
K,
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2010
|
+
F,
|
|
2011
|
+
rt,
|
|
2012
|
+
E
|
|
2013
|
+
] }), t[109] = pt, t[110] = St, t[111] = Ct, t[112] = K, t[113] = F, t[114] = rt, t[115] = E, t[116] = vt) : vt = t[116];
|
|
2014
|
+
let Vt;
|
|
2015
|
+
t[117] !== ht || t[118] !== I || t[119] !== Lt || t[120] !== nt || t[121] !== lt || t[122] !== Q || t[123] !== vt ? (Vt = /* @__PURE__ */ i.jsx(ht, { width: I, height: Lt, viewBox: nt, direction: lt, ref: Q, children: vt }), t[117] = ht, t[118] = I, t[119] = Lt, t[120] = nt, t[121] = lt, t[122] = Q, t[123] = vt, t[124] = Vt) : Vt = t[124];
|
|
2016
|
+
let ct;
|
|
2017
|
+
t[125] !== l?.tooltip || t[126] !== Ft || t[127] !== mt || t[128] !== c || t[129] !== u?.tooltip || t[130] !== Z ? (ct = c && Z && Ft && mt ? /* @__PURE__ */ i.jsx(je, { data: c, body: Z, xPos: Ft, yPos: mt, backgroundStyle: u?.tooltip, className: l?.tooltip }) : null, t[125] = l?.tooltip, t[126] = Ft, t[127] = mt, t[128] = c, t[129] = u?.tooltip, t[130] = Z, t[131] = ct) : ct = t[131];
|
|
2018
|
+
let A;
|
|
2019
|
+
t[132] !== l?.modal || t[133] !== xt || t[134] !== z ? (A = xt && z !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: xt, data: z, setData: y, className: l?.modal }) : null, t[132] = l?.modal, t[133] = xt, t[134] = z, t[135] = A) : A = t[135];
|
|
2020
|
+
let Wt;
|
|
2021
|
+
return t[136] !== Vt || t[137] !== ct || t[138] !== A ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2022
|
+
Vt,
|
|
2023
|
+
ct,
|
|
2024
|
+
A
|
|
2025
|
+
] }), t[136] = Vt, t[137] = ct, t[138] = A, t[139] = Wt) : Wt = t[139], Wt;
|
|
2029
2026
|
}
|
|
2030
|
-
function
|
|
2027
|
+
function Kl(e) {
|
|
2031
2028
|
return e.layer;
|
|
2032
2029
|
}
|
|
2033
|
-
function
|
|
2030
|
+
function Ql(e) {
|
|
2034
2031
|
return e.position === "after";
|
|
2035
2032
|
}
|
|
2036
|
-
function
|
|
2033
|
+
function Zl(e) {
|
|
2037
2034
|
return e;
|
|
2038
2035
|
}
|
|
2039
|
-
function
|
|
2036
|
+
function _l(e) {
|
|
2040
2037
|
return e || 0;
|
|
2041
2038
|
}
|
|
2042
|
-
function
|
|
2039
|
+
function ts(e) {
|
|
2043
2040
|
return e.layer;
|
|
2044
2041
|
}
|
|
2045
|
-
function
|
|
2042
|
+
function es(e) {
|
|
2046
2043
|
return e.position === "before";
|
|
2047
2044
|
}
|
|
2048
|
-
function
|
|
2045
|
+
function is(e) {
|
|
2049
2046
|
return e !== 0;
|
|
2050
2047
|
}
|
|
2051
|
-
function
|
|
2048
|
+
function ls(e) {
|
|
2052
2049
|
return e !== 0;
|
|
2053
2050
|
}
|
|
2054
|
-
function
|
|
2051
|
+
function ss(e) {
|
|
2055
2052
|
return `${e.id}`;
|
|
2056
2053
|
}
|
|
2057
|
-
function
|
|
2054
|
+
function as(e) {
|
|
2058
2055
|
const t = $e.c(128), {
|
|
2059
2056
|
data: s,
|
|
2060
2057
|
graphTitle: H,
|
|
2061
|
-
colors:
|
|
2058
|
+
colors: Gt,
|
|
2062
2059
|
sources: Kt,
|
|
2063
|
-
graphDescription:
|
|
2064
|
-
barPadding:
|
|
2060
|
+
graphDescription: It,
|
|
2061
|
+
barPadding: At,
|
|
2065
2062
|
showTicks: Bt,
|
|
2066
2063
|
truncateBy: P,
|
|
2067
|
-
height:
|
|
2064
|
+
height: R,
|
|
2068
2065
|
width: O,
|
|
2069
2066
|
footNote: X,
|
|
2070
|
-
colorDomain:
|
|
2071
|
-
colorLegendTitle:
|
|
2072
|
-
padding:
|
|
2067
|
+
colorDomain: ut,
|
|
2068
|
+
colorLegendTitle: Z,
|
|
2069
|
+
padding: $t,
|
|
2073
2070
|
backgroundColor: W,
|
|
2074
2071
|
topMargin: st,
|
|
2075
|
-
bottomMargin:
|
|
2076
|
-
leftMargin:
|
|
2072
|
+
bottomMargin: Nt,
|
|
2073
|
+
leftMargin: Ot,
|
|
2077
2074
|
rightMargin: Xt,
|
|
2078
2075
|
tooltip: k,
|
|
2079
|
-
onSeriesMouseOver:
|
|
2080
|
-
suffix:
|
|
2076
|
+
onSeriesMouseOver: q,
|
|
2077
|
+
suffix: j,
|
|
2081
2078
|
prefix: N,
|
|
2082
|
-
showLabels:
|
|
2083
|
-
relativeHeight:
|
|
2084
|
-
showValues:
|
|
2085
|
-
refValues:
|
|
2086
|
-
graphID:
|
|
2087
|
-
maxValue:
|
|
2088
|
-
onSeriesMouseClick:
|
|
2079
|
+
showLabels: ot,
|
|
2080
|
+
relativeHeight: U,
|
|
2081
|
+
showValues: xt,
|
|
2082
|
+
refValues: T,
|
|
2083
|
+
graphID: J,
|
|
2084
|
+
maxValue: _,
|
|
2085
|
+
onSeriesMouseClick: u,
|
|
2089
2086
|
graphDownload: l,
|
|
2090
2087
|
dataDownload: a,
|
|
2091
|
-
language:
|
|
2092
|
-
labelOrder:
|
|
2093
|
-
minHeight:
|
|
2094
|
-
theme:
|
|
2088
|
+
language: f,
|
|
2089
|
+
labelOrder: x,
|
|
2090
|
+
minHeight: w,
|
|
2091
|
+
theme: h,
|
|
2095
2092
|
maxBarThickness: at,
|
|
2096
|
-
sortParameter:
|
|
2093
|
+
sortParameter: S,
|
|
2097
2094
|
maxNumberOfBars: C,
|
|
2098
|
-
minBarThickness:
|
|
2099
|
-
showColorScale:
|
|
2100
|
-
ariaLabel:
|
|
2095
|
+
minBarThickness: Ht,
|
|
2096
|
+
showColorScale: Rt,
|
|
2097
|
+
ariaLabel: Mt,
|
|
2101
2098
|
resetSelectionOnDoubleClick: yt,
|
|
2102
2099
|
detailsOnClick: Yt,
|
|
2103
|
-
barAxisTitle:
|
|
2100
|
+
barAxisTitle: tt,
|
|
2104
2101
|
noOfTicks: D,
|
|
2105
|
-
valueColor:
|
|
2106
|
-
styles:
|
|
2107
|
-
classNames:
|
|
2102
|
+
valueColor: B,
|
|
2103
|
+
styles: p,
|
|
2104
|
+
classNames: c,
|
|
2108
2105
|
filterNA: jt,
|
|
2109
2106
|
animate: z,
|
|
2110
2107
|
precision: y,
|
|
2111
2108
|
locale: Ft,
|
|
2112
2109
|
customLayers: Tt,
|
|
2113
|
-
timeline:
|
|
2114
|
-
naLabel:
|
|
2115
|
-
sortData:
|
|
2110
|
+
timeline: mt,
|
|
2111
|
+
naLabel: qt,
|
|
2112
|
+
sortData: et,
|
|
2116
2113
|
orientation: Pt,
|
|
2117
2114
|
hideAxisLine: Y
|
|
2118
|
-
} = e,
|
|
2119
|
-
let
|
|
2120
|
-
t[0] !== Tt ? (
|
|
2121
|
-
const
|
|
2122
|
-
let
|
|
2123
|
-
t[2] !==
|
|
2115
|
+
} = e, it = Gt === void 0 ? ye.light.categoricalColors.colors : Gt, M = At === void 0 ? 0.25 : At, bt = Bt === void 0 ? !0 : Bt, kt = P === void 0 ? 999 : P, ht = W === void 0 ? !1 : W, ft = j === void 0 ? "" : j, pt = N === void 0 ? "" : N, St = ot === void 0 ? !0 : ot, Ct = xt === void 0 ? !0 : xt, K = l === void 0 ? !1 : l, F = a === void 0 ? !1 : a, I = f === void 0 ? "en" : f, Lt = w === void 0 ? 0 : w, nt = h === void 0 ? "light" : h, lt = Rt === void 0 ? !0 : Rt, Q = yt === void 0 ? !0 : yt, gt = D === void 0 ? 5 : D, rt = jt === void 0 ? !0 : jt, E = z === void 0 ? !1 : z, vt = y === void 0 ? 2 : y, Vt = Ft === void 0 ? "en" : Ft;
|
|
2116
|
+
let ct;
|
|
2117
|
+
t[0] !== Tt ? (ct = Tt === void 0 ? [] : Tt, t[0] = Tt, t[1] = ct) : ct = t[1];
|
|
2118
|
+
const A = ct;
|
|
2119
|
+
let Wt;
|
|
2120
|
+
t[2] !== mt ? (Wt = mt === void 0 ? {
|
|
2124
2121
|
enabled: !1,
|
|
2125
2122
|
autoplay: !1,
|
|
2126
2123
|
showOnlyActiveDate: !0
|
|
2127
|
-
} :
|
|
2128
|
-
const n =
|
|
2129
|
-
let
|
|
2124
|
+
} : mt, t[2] = mt, t[3] = Wt) : Wt = t[3];
|
|
2125
|
+
const n = Wt, v = qt === void 0 ? "NA" : qt, zt = Pt === void 0 ? "vertical" : Pt, wt = Y === void 0 ? !1 : Y, r = zt === "horizontal" ? Pl : Jl, [b, G] = _t(0), [Et, Ut] = _t(0), [Jt, Zt] = _t(n.autoplay);
|
|
2126
|
+
let dt;
|
|
2130
2127
|
if (t[4] !== s || t[5] !== n.dateFormat) {
|
|
2131
|
-
let
|
|
2132
|
-
t[7] !== n.dateFormat ? (
|
|
2128
|
+
let Dt;
|
|
2129
|
+
t[7] !== n.dateFormat ? (Dt = (ae) => Re(`${ae.date}`, n.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = n.dateFormat, t[8] = Dt) : Dt = t[8], dt = [...new Set(s.filter(bs).map(Dt))], dt.sort(ys), t[4] = s, t[5] = n.dateFormat, t[6] = dt;
|
|
2133
2130
|
} else
|
|
2134
|
-
|
|
2135
|
-
const
|
|
2136
|
-
let
|
|
2137
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2138
|
-
const
|
|
2139
|
-
|
|
2131
|
+
dt = t[6];
|
|
2132
|
+
const g = dt, [V, d] = _t(n.autoplay ? 0 : g.length - 1), [L, o] = _t(void 0), $ = Ae(null), m = Ae(null);
|
|
2133
|
+
let he, oe;
|
|
2134
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = () => {
|
|
2135
|
+
const Dt = new ResizeObserver((ae) => {
|
|
2136
|
+
G(ae[0].target.clientWidth || 620), Ut(ae[0].target.clientHeight || 480);
|
|
2140
2137
|
});
|
|
2141
|
-
return
|
|
2142
|
-
},
|
|
2143
|
-
let
|
|
2144
|
-
t[11] !== Jt || t[12] !== n.speed || t[13] !==
|
|
2145
|
-
const
|
|
2146
|
-
|
|
2138
|
+
return $.current && Dt.observe($.current), () => Dt.disconnect();
|
|
2139
|
+
}, oe = [], t[9] = he, t[10] = oe) : (he = t[9], oe = t[10]), Ie(he, oe);
|
|
2140
|
+
let Oe, be;
|
|
2141
|
+
t[11] !== Jt || t[12] !== n.speed || t[13] !== g ? (Oe = () => {
|
|
2142
|
+
const Dt = setInterval(() => {
|
|
2143
|
+
d((ae) => ae < g.length - 1 ? ae + 1 : 0);
|
|
2147
2144
|
}, (n.speed || 2) * 1e3);
|
|
2148
|
-
return Jt || clearInterval(
|
|
2149
|
-
}, be = [
|
|
2150
|
-
const
|
|
2151
|
-
let
|
|
2152
|
-
t[16] !== V || t[17] !==
|
|
2153
|
-
const
|
|
2154
|
-
let
|
|
2155
|
-
t[21] !==
|
|
2156
|
-
title:
|
|
2157
|
-
description:
|
|
2145
|
+
return Jt || clearInterval(Dt), () => clearInterval(Dt);
|
|
2146
|
+
}, be = [g, Jt, n.speed], t[11] = Jt, t[12] = n.speed, t[13] = g, t[14] = Oe, t[15] = be) : (Oe = t[14], be = t[15]), Ie(Oe, be);
|
|
2147
|
+
const Me = n.dateFormat || "yyyy";
|
|
2148
|
+
let pe;
|
|
2149
|
+
t[16] !== V || t[17] !== Me || t[18] !== n.showOnlyActiveDate || t[19] !== g ? (pe = Ee(g, V, n.showOnlyActiveDate, Me), t[16] = V, t[17] = Me, t[18] = n.showOnlyActiveDate, t[19] = g, t[20] = pe) : pe = t[20];
|
|
2150
|
+
const ge = pe, ve = c?.graphContainer, fe = p?.graphContainer;
|
|
2151
|
+
let de;
|
|
2152
|
+
t[21] !== c?.description || t[22] !== c?.title || t[23] !== s || t[24] !== F || t[25] !== It || t[26] !== K || t[27] !== H || t[28] !== p?.description || t[29] !== p?.title || t[30] !== O ? (de = H || It || K || F ? /* @__PURE__ */ i.jsx(_e, { styles: {
|
|
2153
|
+
title: p?.title,
|
|
2154
|
+
description: p?.description
|
|
2158
2155
|
}, classNames: {
|
|
2159
|
-
title:
|
|
2160
|
-
description:
|
|
2161
|
-
}, graphTitle: H, graphDescription:
|
|
2156
|
+
title: c?.title,
|
|
2157
|
+
description: c?.description
|
|
2158
|
+
}, graphTitle: H, graphDescription: It, width: O, graphDownload: K ? m : void 0, dataDownload: F ? s.map(gs).filter(ps).length > 0 ? s.map(fs).filter(hs) : s.filter(ms) : null }) : null, t[21] = c?.description, t[22] = c?.title, t[23] = s, t[24] = F, t[25] = It, t[26] = K, t[27] = H, t[28] = p?.description, t[29] = p?.title, t[30] = O, t[31] = de) : de = t[31];
|
|
2162
2159
|
let ne;
|
|
2163
|
-
t[32] !== V || t[33] !==
|
|
2160
|
+
t[32] !== V || t[33] !== ge || t[34] !== Jt || t[35] !== n.enabled || t[36] !== g ? (ne = n.enabled && g.length > 0 && ge ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
2164
2161
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
2165
2162
|
Zt(!Jt);
|
|
2166
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Jt ? "Click to pause animation" : "Click to play animation", children: Jt ? /* @__PURE__ */ i.jsx(
|
|
2167
|
-
/* @__PURE__ */ i.jsx(
|
|
2168
|
-
|
|
2169
|
-
}, onChange: (
|
|
2170
|
-
|
|
2163
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Jt ? "Click to pause animation" : "Click to play animation", children: Jt ? /* @__PURE__ */ i.jsx(li, {}) : /* @__PURE__ */ i.jsx(si, {}) }),
|
|
2164
|
+
/* @__PURE__ */ i.jsx(Ge, { min: g[0], max: g[g.length - 1], marks: ge, step: null, defaultValue: g[g.length - 1], value: g[V], onChangeComplete: (Dt) => {
|
|
2165
|
+
d(g.indexOf(Dt));
|
|
2166
|
+
}, onChange: (Dt) => {
|
|
2167
|
+
d(g.indexOf(Dt));
|
|
2171
2168
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
2172
|
-
] }) : null, t[32] = V, t[33] =
|
|
2173
|
-
let ue;
|
|
2174
|
-
t[38] !== r?.colorLegend || t[39] !== dt || t[40] !== Q || t[41] !== et || t[42] !== s.length || t[43] !== ot || t[44] !== O ? (ue = ot && s.length > 0 ? /* @__PURE__ */ i.jsx(li, { width: O, colorDomain: dt, colors: et, colorLegendTitle: Q, setSelectedColor: o, showNAColor: !1, className: r?.colorLegend }) : null, t[38] = r?.colorLegend, t[39] = dt, t[40] = Q, t[41] = et, t[42] = s.length, t[43] = ot, t[44] = O, t[45] = ue) : ue = t[45];
|
|
2169
|
+
] }) : null, t[32] = V, t[33] = ge, t[34] = Jt, t[35] = n.enabled, t[36] = g, t[37] = ne) : ne = t[37];
|
|
2175
2170
|
let re;
|
|
2176
|
-
t[
|
|
2177
|
-
let
|
|
2178
|
-
t[
|
|
2171
|
+
t[38] !== c?.colorLegend || t[39] !== ut || t[40] !== Z || t[41] !== it || t[42] !== s.length || t[43] !== lt || t[44] !== O ? (re = lt && s.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: O, colorDomain: ut, colors: it, colorLegendTitle: Z, setSelectedColor: o, showNAColor: !1, className: c?.colorLegend }) : null, t[38] = c?.colorLegend, t[39] = ut, t[40] = Z, t[41] = it, t[42] = s.length, t[43] = lt, t[44] = O, t[45] = re) : re = t[45];
|
|
2172
|
+
let ue;
|
|
2173
|
+
t[46] !== s.length ? (ue = s.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = s.length, t[47] = ue) : ue = t[47];
|
|
2174
|
+
let xe;
|
|
2175
|
+
t[48] !== r || t[49] !== E || t[50] !== tt || t[51] !== M || t[52] !== Nt || t[53] !== c || t[54] !== ut || t[55] !== it || t[56] !== A || t[57] !== s || t[58] !== Yt || t[59] !== rt || t[60] !== wt || t[61] !== V || t[62] !== x || t[63] !== I || t[64] !== Ot || t[65] !== Vt || t[66] !== at || t[67] !== C || t[68] !== _ || t[69] !== Ht || t[70] !== v || t[71] !== gt || t[72] !== u || t[73] !== q || t[74] !== vt || t[75] !== pt || t[76] !== T || t[77] !== Q || t[78] !== Xt || t[79] !== L || t[80] !== St || t[81] !== bt || t[82] !== Ct || t[83] !== et || t[84] !== S || t[85] !== p || t[86] !== ft || t[87] !== Et || t[88] !== b || t[89] !== n.dateFormat || t[90] !== n.enabled || t[91] !== k || t[92] !== st || t[93] !== kt || t[94] !== g || t[95] !== B ? (xe = b && Et && s.length > 0 ? /* @__PURE__ */ i.jsx(r, { hideAxisLine: wt, data: S !== void 0 ? S === "total" ? We(De(s, n.dateFormat || "yyyy").filter((Dt) => n.enabled ? `${Dt.date}` === Ve(new Date(g[V]), n.dateFormat || "yyyy") : Dt).filter((Dt) => rt ? !Dt.size.every(xs) : Dt), ds, [et || "asc"]).filter((Dt, ae) => C ? ae < C : !0) : We(De(s, n.dateFormat || "yyyy").filter((Dt) => n.enabled ? `${Dt.date}` === Ve(new Date(g[V]), n.dateFormat || "yyyy") : Dt).filter((Dt) => rt ? !Dt.size.every(cs) : Dt), (Dt) => ie(Dt.size[S]) ? -1 / 0 : Dt.size[S], [et || "asc"]).filter((Dt, ae) => C ? ae < C : !0) : De(s, n.dateFormat || "yyyy").filter((Dt) => n.enabled ? `${Dt.date}` === Ve(new Date(g[V]), n.dateFormat || "yyyy") : Dt).filter((Dt) => rt ? !Dt.size.every(rs) : Dt).filter((Dt, ae) => C ? ae < C : !0), barColors: it, width: b, height: Et, barPadding: M, showTicks: bt, leftMargin: Ot, rightMargin: Xt, topMargin: st, bottomMargin: Nt, truncateBy: kt, showLabels: St, tooltip: k, onSeriesMouseOver: q, showValues: Ct, suffix: ft, prefix: pt, refValues: T, maxValue: ie(_) ? Math.max(...s.map(os)) : _, onSeriesMouseClick: u, selectedColor: L, rtl: I === "he" || I === "ar", labelOrder: x, maxBarThickness: at, minBarThickness: Ht, resetSelectionOnDoubleClick: Q, detailsOnClick: Yt, barAxisTitle: tt, noOfTicks: gt, valueColor: B, classNames: c, styles: p, animate: E === !0 ? {
|
|
2179
2176
|
duration: 0.5,
|
|
2180
2177
|
once: !0,
|
|
2181
2178
|
amount: 0.5
|
|
2182
|
-
} :
|
|
2179
|
+
} : E || {
|
|
2183
2180
|
duration: 0,
|
|
2184
2181
|
once: !0,
|
|
2185
2182
|
amount: 0
|
|
2186
|
-
}, colorDomain:
|
|
2187
|
-
let
|
|
2188
|
-
t[97] !==
|
|
2189
|
-
re,
|
|
2190
|
-
ce
|
|
2191
|
-
] }), t[97] = re, t[98] = ce, t[99] = xe) : xe = t[99];
|
|
2192
|
-
let me;
|
|
2193
|
-
t[100] !== ue || t[101] !== xe ? (me = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
|
|
2183
|
+
}, colorDomain: ut, precision: vt, customLayers: A, naLabel: v, locale: Vt }) : null, t[48] = r, t[49] = E, t[50] = tt, t[51] = M, t[52] = Nt, t[53] = c, t[54] = ut, t[55] = it, t[56] = A, t[57] = s, t[58] = Yt, t[59] = rt, t[60] = wt, t[61] = V, t[62] = x, t[63] = I, t[64] = Ot, t[65] = Vt, t[66] = at, t[67] = C, t[68] = _, t[69] = Ht, t[70] = v, t[71] = gt, t[72] = u, t[73] = q, t[74] = vt, t[75] = pt, t[76] = T, t[77] = Q, t[78] = Xt, t[79] = L, t[80] = St, t[81] = bt, t[82] = Ct, t[83] = et, t[84] = S, t[85] = p, t[86] = ft, t[87] = Et, t[88] = b, t[89] = n.dateFormat, t[90] = n.enabled, t[91] = k, t[92] = st, t[93] = kt, t[94] = g, t[95] = B, t[96] = xe) : xe = t[96];
|
|
2184
|
+
let le;
|
|
2185
|
+
t[97] !== ue || t[98] !== xe ? (le = /* @__PURE__ */ i.jsxs(ai, { ref: $, children: [
|
|
2194
2186
|
ue,
|
|
2195
2187
|
xe
|
|
2196
|
-
] }), t[
|
|
2197
|
-
let
|
|
2198
|
-
t[
|
|
2199
|
-
|
|
2200
|
-
|
|
2188
|
+
] }), t[97] = ue, t[98] = xe, t[99] = le) : le = t[99];
|
|
2189
|
+
let se;
|
|
2190
|
+
t[100] !== re || t[101] !== le ? (se = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
|
|
2191
|
+
re,
|
|
2192
|
+
le
|
|
2193
|
+
] }), t[100] = re, t[101] = le, t[102] = se) : se = t[102];
|
|
2194
|
+
let ce;
|
|
2195
|
+
t[103] !== c?.footnote || t[104] !== c?.source || t[105] !== X || t[106] !== Kt || t[107] !== p?.footnote || t[108] !== p?.source || t[109] !== O ? (ce = Kt || X ? /* @__PURE__ */ i.jsx(ti, { styles: {
|
|
2196
|
+
footnote: p?.footnote,
|
|
2197
|
+
source: p?.source
|
|
2201
2198
|
}, classNames: {
|
|
2202
|
-
footnote:
|
|
2203
|
-
source:
|
|
2204
|
-
}, sources: Kt, footNote: X, width: O }) : null, t[103] =
|
|
2199
|
+
footnote: c?.footnote,
|
|
2200
|
+
source: c?.source
|
|
2201
|
+
}, sources: Kt, footNote: X, width: O }) : null, t[103] = c?.footnote, t[104] = c?.source, t[105] = X, t[106] = Kt, t[107] = p?.footnote, t[108] = p?.source, t[109] = O, t[110] = ce) : ce = t[110];
|
|
2205
2202
|
let Qt;
|
|
2206
|
-
return t[111] !==
|
|
2207
|
-
|
|
2203
|
+
return t[111] !== Mt || t[112] !== ht || t[113] !== J || t[114] !== R || t[115] !== I || t[116] !== Lt || t[117] !== $t || t[118] !== U || t[119] !== ve || t[120] !== fe || t[121] !== de || t[122] !== ne || t[123] !== se || t[124] !== ce || t[125] !== nt || t[126] !== O ? (Qt = /* @__PURE__ */ i.jsxs(oi, { className: ve, style: fe, id: J, ref: m, "aria-label": Mt, backgroundColor: ht, theme: nt, language: I, minHeight: Lt, width: O, height: R, relativeHeight: U, padding: $t, children: [
|
|
2204
|
+
de,
|
|
2208
2205
|
ne,
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
] }), t[111] =
|
|
2206
|
+
se,
|
|
2207
|
+
ce
|
|
2208
|
+
] }), t[111] = Mt, t[112] = ht, t[113] = J, t[114] = R, t[115] = I, t[116] = Lt, t[117] = $t, t[118] = U, t[119] = ve, t[120] = fe, t[121] = de, t[122] = ne, t[123] = se, t[124] = ce, t[125] = nt, t[126] = O, t[127] = Qt) : Qt = t[127], Qt;
|
|
2209
|
+
}
|
|
2210
|
+
function os(e) {
|
|
2211
|
+
return me(e.size.filter(ns)) || 0;
|
|
2212
|
+
}
|
|
2213
|
+
function ns(e) {
|
|
2214
|
+
return !ie(e);
|
|
2212
2215
|
}
|
|
2213
2216
|
function rs(e) {
|
|
2214
|
-
return
|
|
2217
|
+
return e == null;
|
|
2215
2218
|
}
|
|
2216
2219
|
function cs(e) {
|
|
2217
|
-
return
|
|
2220
|
+
return e == null;
|
|
2218
2221
|
}
|
|
2219
2222
|
function ds(e) {
|
|
2220
|
-
return e
|
|
2223
|
+
return me(e.size.filter(us));
|
|
2221
2224
|
}
|
|
2222
2225
|
function us(e) {
|
|
2223
|
-
return e
|
|
2226
|
+
return !ie(e);
|
|
2224
2227
|
}
|
|
2225
2228
|
function xs(e) {
|
|
2226
|
-
return
|
|
2229
|
+
return e == null;
|
|
2227
2230
|
}
|
|
2228
2231
|
function ms(e) {
|
|
2229
|
-
return
|
|
2232
|
+
return e !== void 0;
|
|
2230
2233
|
}
|
|
2231
2234
|
function hs(e) {
|
|
2232
|
-
return e
|
|
2235
|
+
return e !== void 0;
|
|
2233
2236
|
}
|
|
2234
2237
|
function fs(e) {
|
|
2235
|
-
return e
|
|
2238
|
+
return e.data;
|
|
2236
2239
|
}
|
|
2237
2240
|
function ps(e) {
|
|
2238
2241
|
return e !== void 0;
|
|
@@ -2240,219 +2243,213 @@ function ps(e) {
|
|
|
2240
2243
|
function gs(e) {
|
|
2241
2244
|
return e.data;
|
|
2242
2245
|
}
|
|
2243
|
-
function ys(e) {
|
|
2244
|
-
return e !== void 0;
|
|
2245
|
-
}
|
|
2246
|
-
function bs(e) {
|
|
2247
|
-
return e.data;
|
|
2248
|
-
}
|
|
2249
|
-
function vs(e, t) {
|
|
2246
|
+
function ys(e, t) {
|
|
2250
2247
|
return e - t;
|
|
2251
2248
|
}
|
|
2252
|
-
function
|
|
2249
|
+
function bs(e) {
|
|
2253
2250
|
return e.date;
|
|
2254
2251
|
}
|
|
2255
|
-
function
|
|
2252
|
+
function _s(e) {
|
|
2256
2253
|
const t = $e.c(64), {
|
|
2257
2254
|
data: s,
|
|
2258
2255
|
graphTitle: H,
|
|
2259
|
-
colors:
|
|
2256
|
+
colors: Gt,
|
|
2260
2257
|
barPadding: Kt,
|
|
2261
|
-
showTicks:
|
|
2262
|
-
leftMargin:
|
|
2258
|
+
showTicks: It,
|
|
2259
|
+
leftMargin: At,
|
|
2263
2260
|
rightMargin: Bt,
|
|
2264
2261
|
topMargin: P,
|
|
2265
|
-
bottomMargin:
|
|
2262
|
+
bottomMargin: R,
|
|
2266
2263
|
truncateBy: O,
|
|
2267
2264
|
showLabels: X,
|
|
2268
|
-
showValues:
|
|
2269
|
-
backgroundColor:
|
|
2270
|
-
suffix:
|
|
2265
|
+
showValues: ut,
|
|
2266
|
+
backgroundColor: Z,
|
|
2267
|
+
suffix: $t,
|
|
2271
2268
|
prefix: W,
|
|
2272
2269
|
sources: st,
|
|
2273
|
-
graphDescription:
|
|
2274
|
-
height:
|
|
2270
|
+
graphDescription: Nt,
|
|
2271
|
+
height: Ot,
|
|
2275
2272
|
width: Xt,
|
|
2276
2273
|
footNote: k,
|
|
2277
|
-
colorDomain:
|
|
2278
|
-
colorLegendTitle:
|
|
2274
|
+
colorDomain: q,
|
|
2275
|
+
colorLegendTitle: j,
|
|
2279
2276
|
padding: N,
|
|
2280
|
-
relativeHeight:
|
|
2281
|
-
tooltip:
|
|
2282
|
-
onSeriesMouseOver:
|
|
2283
|
-
refValues:
|
|
2284
|
-
showColorScale:
|
|
2285
|
-
graphID:
|
|
2286
|
-
maxValue:
|
|
2277
|
+
relativeHeight: ot,
|
|
2278
|
+
tooltip: U,
|
|
2279
|
+
onSeriesMouseOver: xt,
|
|
2280
|
+
refValues: T,
|
|
2281
|
+
showColorScale: J,
|
|
2282
|
+
graphID: _,
|
|
2283
|
+
maxValue: u,
|
|
2287
2284
|
minValue: l,
|
|
2288
2285
|
highlightedDataPoints: a,
|
|
2289
|
-
onSeriesMouseClick:
|
|
2290
|
-
graphDownload:
|
|
2291
|
-
dataDownload:
|
|
2292
|
-
language:
|
|
2286
|
+
onSeriesMouseClick: f,
|
|
2287
|
+
graphDownload: x,
|
|
2288
|
+
dataDownload: w,
|
|
2289
|
+
language: h,
|
|
2293
2290
|
theme: at,
|
|
2294
|
-
sortData:
|
|
2291
|
+
sortData: S,
|
|
2295
2292
|
labelOrder: C,
|
|
2296
|
-
showNAColor:
|
|
2297
|
-
minHeight:
|
|
2298
|
-
maxBarThickness:
|
|
2293
|
+
showNAColor: Ht,
|
|
2294
|
+
minHeight: Rt,
|
|
2295
|
+
maxBarThickness: Mt,
|
|
2299
2296
|
maxNumberOfBars: yt,
|
|
2300
2297
|
minBarThickness: Yt,
|
|
2301
|
-
ariaLabel:
|
|
2298
|
+
ariaLabel: tt,
|
|
2302
2299
|
resetSelectionOnDoubleClick: D,
|
|
2303
|
-
detailsOnClick:
|
|
2304
|
-
barAxisTitle:
|
|
2305
|
-
noOfTicks:
|
|
2300
|
+
detailsOnClick: B,
|
|
2301
|
+
barAxisTitle: p,
|
|
2302
|
+
noOfTicks: c,
|
|
2306
2303
|
valueColor: jt,
|
|
2307
2304
|
orientation: z,
|
|
2308
2305
|
styles: y,
|
|
2309
2306
|
classNames: Ft,
|
|
2310
2307
|
filterNA: Tt,
|
|
2311
|
-
animate:
|
|
2312
|
-
dimmedOpacity:
|
|
2313
|
-
precision:
|
|
2308
|
+
animate: mt,
|
|
2309
|
+
dimmedOpacity: qt,
|
|
2310
|
+
precision: et,
|
|
2314
2311
|
customLayers: Pt,
|
|
2315
2312
|
timeline: Y,
|
|
2316
|
-
naLabel:
|
|
2313
|
+
naLabel: it,
|
|
2317
2314
|
trackColor: M,
|
|
2318
2315
|
hideAxisLine: bt,
|
|
2319
|
-
locale:
|
|
2320
|
-
} = e,
|
|
2321
|
-
let
|
|
2322
|
-
return t[0] !==
|
|
2316
|
+
locale: kt
|
|
2317
|
+
} = e, ht = z === void 0 ? "vertical" : z, ft = bt === void 0 ? !1 : bt;
|
|
2318
|
+
let pt;
|
|
2319
|
+
return t[0] !== mt || t[1] !== tt || t[2] !== Z || t[3] !== p || t[4] !== Kt || t[5] !== R || t[6] !== Ft || t[7] !== q || t[8] !== j || t[9] !== Gt || t[10] !== Pt || t[11] !== s || t[12] !== w || t[13] !== B || t[14] !== qt || t[15] !== Tt || t[16] !== k || t[17] !== Nt || t[18] !== x || t[19] !== _ || t[20] !== H || t[21] !== Ot || t[22] !== ft || t[23] !== a || t[24] !== C || t[25] !== h || t[26] !== At || t[27] !== kt || t[28] !== Mt || t[29] !== yt || t[30] !== u || t[31] !== Yt || t[32] !== Rt || t[33] !== l || t[34] !== it || t[35] !== c || t[36] !== f || t[37] !== xt || t[38] !== ht || t[39] !== N || t[40] !== et || t[41] !== W || t[42] !== T || t[43] !== ot || t[44] !== D || t[45] !== Bt || t[46] !== J || t[47] !== X || t[48] !== Ht || t[49] !== It || t[50] !== ut || t[51] !== S || t[52] !== st || t[53] !== y || t[54] !== $t || t[55] !== at || t[56] !== Y || t[57] !== U || t[58] !== P || t[59] !== M || t[60] !== O || t[61] !== jt || t[62] !== Xt ? (pt = /* @__PURE__ */ i.jsx(vl, { data: s, graphTitle: H, colors: Gt, barPadding: Kt, showTicks: It, leftMargin: At, rightMargin: Bt, topMargin: P, bottomMargin: R, truncateBy: O, showLabels: X, showValues: ut, backgroundColor: Z, suffix: $t, prefix: W, sources: st, graphDescription: Nt, height: Ot, width: Xt, footNote: k, colorDomain: q, colorLegendTitle: j, padding: N, relativeHeight: ot, tooltip: U, onSeriesMouseOver: xt, refValues: T, showColorScale: J, graphID: _, maxValue: u, minValue: l, highlightedDataPoints: a, onSeriesMouseClick: f, graphDownload: x, dataDownload: w, language: h, theme: at, sortData: S, labelOrder: C, showNAColor: Ht, minHeight: Rt, maxBarThickness: Mt, maxNumberOfBars: yt, minBarThickness: Yt, ariaLabel: tt, resetSelectionOnDoubleClick: D, styles: y, detailsOnClick: B, barAxisTitle: p, noOfTicks: c, valueColor: jt, classNames: Ft, filterNA: Tt, animate: mt, dimmedOpacity: qt, precision: et, customLayers: Pt, timeline: Y, naLabel: it, orientation: ht, trackColor: M, hideAxisLine: ft, locale: kt }), t[0] = mt, t[1] = tt, t[2] = Z, t[3] = p, t[4] = Kt, t[5] = R, t[6] = Ft, t[7] = q, t[8] = j, t[9] = Gt, t[10] = Pt, t[11] = s, t[12] = w, t[13] = B, t[14] = qt, t[15] = Tt, t[16] = k, t[17] = Nt, t[18] = x, t[19] = _, t[20] = H, t[21] = Ot, t[22] = ft, t[23] = a, t[24] = C, t[25] = h, t[26] = At, t[27] = kt, t[28] = Mt, t[29] = yt, t[30] = u, t[31] = Yt, t[32] = Rt, t[33] = l, t[34] = it, t[35] = c, t[36] = f, t[37] = xt, t[38] = ht, t[39] = N, t[40] = et, t[41] = W, t[42] = T, t[43] = ot, t[44] = D, t[45] = Bt, t[46] = J, t[47] = X, t[48] = Ht, t[49] = It, t[50] = ut, t[51] = S, t[52] = st, t[53] = y, t[54] = $t, t[55] = at, t[56] = Y, t[57] = U, t[58] = P, t[59] = M, t[60] = O, t[61] = jt, t[62] = Xt, t[63] = pt) : pt = t[63], pt;
|
|
2323
2320
|
}
|
|
2324
|
-
function
|
|
2321
|
+
function ta(e) {
|
|
2325
2322
|
const t = $e.c(59), {
|
|
2326
2323
|
data: s,
|
|
2327
2324
|
graphTitle: H,
|
|
2328
|
-
colors:
|
|
2325
|
+
colors: Gt,
|
|
2329
2326
|
sources: Kt,
|
|
2330
|
-
graphDescription:
|
|
2331
|
-
barPadding:
|
|
2327
|
+
graphDescription: It,
|
|
2328
|
+
barPadding: At,
|
|
2332
2329
|
showTicks: Bt,
|
|
2333
2330
|
truncateBy: P,
|
|
2334
|
-
height:
|
|
2331
|
+
height: R,
|
|
2335
2332
|
width: O,
|
|
2336
2333
|
footNote: X,
|
|
2337
|
-
colorDomain:
|
|
2338
|
-
colorLegendTitle:
|
|
2339
|
-
suffix:
|
|
2334
|
+
colorDomain: ut,
|
|
2335
|
+
colorLegendTitle: Z,
|
|
2336
|
+
suffix: $t,
|
|
2340
2337
|
prefix: W,
|
|
2341
2338
|
showValues: st,
|
|
2342
|
-
padding:
|
|
2343
|
-
backgroundColor:
|
|
2339
|
+
padding: Nt,
|
|
2340
|
+
backgroundColor: Ot,
|
|
2344
2341
|
leftMargin: Xt,
|
|
2345
2342
|
rightMargin: k,
|
|
2346
|
-
topMargin:
|
|
2347
|
-
bottomMargin:
|
|
2343
|
+
topMargin: q,
|
|
2344
|
+
bottomMargin: j,
|
|
2348
2345
|
showLabels: N,
|
|
2349
|
-
relativeHeight:
|
|
2350
|
-
tooltip:
|
|
2351
|
-
onSeriesMouseOver:
|
|
2352
|
-
refValues:
|
|
2353
|
-
graphID:
|
|
2354
|
-
maxValue:
|
|
2355
|
-
minValue:
|
|
2346
|
+
relativeHeight: ot,
|
|
2347
|
+
tooltip: U,
|
|
2348
|
+
onSeriesMouseOver: xt,
|
|
2349
|
+
refValues: T,
|
|
2350
|
+
graphID: J,
|
|
2351
|
+
maxValue: _,
|
|
2352
|
+
minValue: u,
|
|
2356
2353
|
onSeriesMouseClick: l,
|
|
2357
2354
|
graphDownload: a,
|
|
2358
|
-
dataDownload:
|
|
2359
|
-
language:
|
|
2360
|
-
labelOrder:
|
|
2361
|
-
minHeight:
|
|
2355
|
+
dataDownload: f,
|
|
2356
|
+
language: x,
|
|
2357
|
+
labelOrder: w,
|
|
2358
|
+
minHeight: h,
|
|
2362
2359
|
theme: at,
|
|
2363
|
-
sortParameter:
|
|
2360
|
+
sortParameter: S,
|
|
2364
2361
|
sortData: C,
|
|
2365
|
-
maxBarThickness:
|
|
2366
|
-
ariaLabel:
|
|
2367
|
-
resetSelectionOnDoubleClick:
|
|
2362
|
+
maxBarThickness: Ht,
|
|
2363
|
+
ariaLabel: Rt,
|
|
2364
|
+
resetSelectionOnDoubleClick: Mt,
|
|
2368
2365
|
detailsOnClick: yt,
|
|
2369
2366
|
barAxisTitle: Yt,
|
|
2370
|
-
noOfTicks:
|
|
2367
|
+
noOfTicks: tt,
|
|
2371
2368
|
valueColor: D,
|
|
2372
|
-
orientation:
|
|
2373
|
-
styles:
|
|
2374
|
-
classNames:
|
|
2369
|
+
orientation: B,
|
|
2370
|
+
styles: p,
|
|
2371
|
+
classNames: c,
|
|
2375
2372
|
filterNA: jt,
|
|
2376
2373
|
animate: z,
|
|
2377
2374
|
precision: y,
|
|
2378
2375
|
customLayers: Ft,
|
|
2379
2376
|
showColorScale: Tt,
|
|
2380
|
-
timeline:
|
|
2381
|
-
naLabel:
|
|
2382
|
-
hideAxisLine:
|
|
2377
|
+
timeline: mt,
|
|
2378
|
+
naLabel: qt,
|
|
2379
|
+
hideAxisLine: et,
|
|
2383
2380
|
locale: Pt
|
|
2384
|
-
} = e, Y =
|
|
2381
|
+
} = e, Y = B === void 0 ? "vertical" : B, it = et === void 0 ? !1 : et;
|
|
2385
2382
|
let M;
|
|
2386
|
-
return t[0] !== z || t[1] !==
|
|
2383
|
+
return t[0] !== z || t[1] !== Rt || t[2] !== Ot || t[3] !== Yt || t[4] !== At || t[5] !== j || t[6] !== c || t[7] !== ut || t[8] !== Z || t[9] !== Gt || t[10] !== Ft || t[11] !== s || t[12] !== f || t[13] !== yt || t[14] !== jt || t[15] !== X || t[16] !== It || t[17] !== a || t[18] !== J || t[19] !== H || t[20] !== R || t[21] !== it || t[22] !== w || t[23] !== x || t[24] !== Xt || t[25] !== Pt || t[26] !== Ht || t[27] !== _ || t[28] !== h || t[29] !== u || t[30] !== qt || t[31] !== tt || t[32] !== l || t[33] !== xt || t[34] !== Y || t[35] !== Nt || t[36] !== y || t[37] !== W || t[38] !== T || t[39] !== ot || t[40] !== Mt || t[41] !== k || t[42] !== Tt || t[43] !== N || t[44] !== Bt || t[45] !== st || t[46] !== C || t[47] !== S || t[48] !== Kt || t[49] !== p || t[50] !== $t || t[51] !== at || t[52] !== mt || t[53] !== U || t[54] !== q || t[55] !== P || t[56] !== D || t[57] !== O ? (M = /* @__PURE__ */ i.jsx(Ci, { orientation: Y, data: s, graphTitle: H, colors: Gt, sources: Kt, graphDescription: It, barPadding: At, showTicks: Bt, truncateBy: P, height: R, width: O, footNote: X, colorDomain: ut, colorLegendTitle: Z, suffix: $t, prefix: W, showValues: st, padding: Nt, backgroundColor: Ot, leftMargin: Xt, rightMargin: k, sortParameter: S, sortData: C, topMargin: q, bottomMargin: j, showLabels: N, relativeHeight: ot, tooltip: U, onSeriesMouseOver: xt, refValues: T, graphID: J, maxValue: _, minValue: u, onSeriesMouseClick: l, graphDownload: a, dataDownload: f, language: x, labelOrder: w, minHeight: h, theme: at, maxBarThickness: Ht, ariaLabel: Rt, resetSelectionOnDoubleClick: Mt, styles: p, detailsOnClick: yt, barAxisTitle: Yt, noOfTicks: tt, valueColor: D, classNames: c, filterNA: jt, animate: z, precision: y, customLayers: Ft, showColorScale: Tt, timeline: mt, naLabel: qt, hideAxisLine: it, locale: Pt }), t[0] = z, t[1] = Rt, t[2] = Ot, t[3] = Yt, t[4] = At, t[5] = j, t[6] = c, t[7] = ut, t[8] = Z, t[9] = Gt, t[10] = Ft, t[11] = s, t[12] = f, t[13] = yt, t[14] = jt, t[15] = X, t[16] = It, t[17] = a, t[18] = J, t[19] = H, t[20] = R, t[21] = it, t[22] = w, t[23] = x, t[24] = Xt, t[25] = Pt, t[26] = Ht, t[27] = _, t[28] = h, t[29] = u, t[30] = qt, t[31] = tt, t[32] = l, t[33] = xt, t[34] = Y, t[35] = Nt, t[36] = y, t[37] = W, t[38] = T, t[39] = ot, t[40] = Mt, t[41] = k, t[42] = Tt, t[43] = N, t[44] = Bt, t[45] = st, t[46] = C, t[47] = S, t[48] = Kt, t[49] = p, t[50] = $t, t[51] = at, t[52] = mt, t[53] = U, t[54] = q, t[55] = P, t[56] = D, t[57] = O, t[58] = M) : M = t[58], M;
|
|
2387
2384
|
}
|
|
2388
|
-
function
|
|
2385
|
+
function ea(e) {
|
|
2389
2386
|
const t = $e.c(60), {
|
|
2390
2387
|
data: s,
|
|
2391
2388
|
graphTitle: H,
|
|
2392
|
-
colors:
|
|
2389
|
+
colors: Gt,
|
|
2393
2390
|
sources: Kt,
|
|
2394
|
-
graphDescription:
|
|
2395
|
-
barPadding:
|
|
2391
|
+
graphDescription: It,
|
|
2392
|
+
barPadding: At,
|
|
2396
2393
|
showTicks: Bt,
|
|
2397
2394
|
leftMargin: P,
|
|
2398
|
-
rightMargin:
|
|
2395
|
+
rightMargin: R,
|
|
2399
2396
|
topMargin: O,
|
|
2400
2397
|
bottomMargin: X,
|
|
2401
|
-
truncateBy:
|
|
2402
|
-
showLabels:
|
|
2403
|
-
showValues:
|
|
2398
|
+
truncateBy: ut,
|
|
2399
|
+
showLabels: Z,
|
|
2400
|
+
showValues: $t,
|
|
2404
2401
|
backgroundColor: W,
|
|
2405
2402
|
suffix: st,
|
|
2406
|
-
prefix:
|
|
2407
|
-
height:
|
|
2403
|
+
prefix: Nt,
|
|
2404
|
+
height: Ot,
|
|
2408
2405
|
width: Xt,
|
|
2409
2406
|
footNote: k,
|
|
2410
|
-
colorDomain:
|
|
2411
|
-
colorLegendTitle:
|
|
2407
|
+
colorDomain: q,
|
|
2408
|
+
colorLegendTitle: j,
|
|
2412
2409
|
padding: N,
|
|
2413
|
-
tooltip:
|
|
2414
|
-
onSeriesMouseOver:
|
|
2415
|
-
relativeHeight:
|
|
2416
|
-
refValues:
|
|
2417
|
-
graphID:
|
|
2418
|
-
maxValue:
|
|
2419
|
-
onSeriesMouseClick:
|
|
2410
|
+
tooltip: ot,
|
|
2411
|
+
onSeriesMouseOver: U,
|
|
2412
|
+
relativeHeight: xt,
|
|
2413
|
+
refValues: T,
|
|
2414
|
+
graphID: J,
|
|
2415
|
+
maxValue: _,
|
|
2416
|
+
onSeriesMouseClick: u,
|
|
2420
2417
|
graphDownload: l,
|
|
2421
2418
|
dataDownload: a,
|
|
2422
|
-
language:
|
|
2423
|
-
theme:
|
|
2424
|
-
labelOrder:
|
|
2425
|
-
minHeight:
|
|
2419
|
+
language: f,
|
|
2420
|
+
theme: x,
|
|
2421
|
+
labelOrder: w,
|
|
2422
|
+
minHeight: h,
|
|
2426
2423
|
maxBarThickness: at,
|
|
2427
|
-
sortParameter:
|
|
2424
|
+
sortParameter: S,
|
|
2428
2425
|
sortData: C,
|
|
2429
|
-
maxNumberOfBars:
|
|
2430
|
-
minBarThickness:
|
|
2431
|
-
ariaLabel:
|
|
2426
|
+
maxNumberOfBars: Ht,
|
|
2427
|
+
minBarThickness: Rt,
|
|
2428
|
+
ariaLabel: Mt,
|
|
2432
2429
|
resetSelectionOnDoubleClick: yt,
|
|
2433
2430
|
detailsOnClick: Yt,
|
|
2434
|
-
barAxisTitle:
|
|
2431
|
+
barAxisTitle: tt,
|
|
2435
2432
|
noOfTicks: D,
|
|
2436
|
-
valueColor:
|
|
2437
|
-
orientation:
|
|
2438
|
-
styles:
|
|
2433
|
+
valueColor: B,
|
|
2434
|
+
orientation: p,
|
|
2435
|
+
styles: c,
|
|
2439
2436
|
classNames: jt,
|
|
2440
2437
|
filterNA: z,
|
|
2441
2438
|
animate: y,
|
|
2442
2439
|
precision: Ft,
|
|
2443
2440
|
customLayers: Tt,
|
|
2444
|
-
showColorScale:
|
|
2445
|
-
timeline:
|
|
2446
|
-
naLabel:
|
|
2441
|
+
showColorScale: mt,
|
|
2442
|
+
timeline: qt,
|
|
2443
|
+
naLabel: et,
|
|
2447
2444
|
hideAxisLine: Pt,
|
|
2448
2445
|
locale: Y
|
|
2449
|
-
} = e,
|
|
2446
|
+
} = e, it = p === void 0 ? "vertical" : p, M = Pt === void 0 ? !1 : Pt;
|
|
2450
2447
|
let bt;
|
|
2451
|
-
return t[0] !== y || t[1] !==
|
|
2448
|
+
return t[0] !== y || t[1] !== Mt || t[2] !== W || t[3] !== tt || t[4] !== At || t[5] !== X || t[6] !== jt || t[7] !== q || t[8] !== j || t[9] !== Gt || t[10] !== Tt || t[11] !== s || t[12] !== a || t[13] !== Yt || t[14] !== z || t[15] !== k || t[16] !== It || t[17] !== l || t[18] !== J || t[19] !== H || t[20] !== Ot || t[21] !== M || t[22] !== w || t[23] !== f || t[24] !== P || t[25] !== Y || t[26] !== at || t[27] !== Ht || t[28] !== _ || t[29] !== Rt || t[30] !== h || t[31] !== et || t[32] !== D || t[33] !== u || t[34] !== U || t[35] !== it || t[36] !== N || t[37] !== Ft || t[38] !== Nt || t[39] !== T || t[40] !== xt || t[41] !== yt || t[42] !== R || t[43] !== mt || t[44] !== Z || t[45] !== Bt || t[46] !== $t || t[47] !== C || t[48] !== S || t[49] !== Kt || t[50] !== c || t[51] !== st || t[52] !== x || t[53] !== qt || t[54] !== ot || t[55] !== O || t[56] !== ut || t[57] !== B || t[58] !== Xt ? (bt = /* @__PURE__ */ i.jsx(as, { data: s, graphTitle: H, colors: Gt, sources: Kt, graphDescription: It, barPadding: At, showTicks: Bt, leftMargin: P, rightMargin: R, topMargin: O, bottomMargin: X, truncateBy: ut, showLabels: Z, showValues: $t, backgroundColor: W, suffix: st, prefix: Nt, height: Ot, width: Xt, footNote: k, colorDomain: q, colorLegendTitle: j, padding: N, tooltip: ot, onSeriesMouseOver: U, relativeHeight: xt, refValues: T, graphID: J, maxValue: _, onSeriesMouseClick: u, graphDownload: l, dataDownload: a, language: f, theme: x, labelOrder: w, minHeight: h, maxBarThickness: at, sortParameter: S, sortData: C, maxNumberOfBars: Ht, minBarThickness: Rt, ariaLabel: Mt, resetSelectionOnDoubleClick: yt, styles: c, detailsOnClick: Yt, barAxisTitle: tt, noOfTicks: D, valueColor: B, classNames: jt, filterNA: z, animate: y, precision: Ft, customLayers: Tt, showColorScale: mt, timeline: qt, naLabel: et, orientation: it, hideAxisLine: M, locale: Y }), t[0] = y, t[1] = Mt, t[2] = W, t[3] = tt, t[4] = At, t[5] = X, t[6] = jt, t[7] = q, t[8] = j, t[9] = Gt, t[10] = Tt, t[11] = s, t[12] = a, t[13] = Yt, t[14] = z, t[15] = k, t[16] = It, t[17] = l, t[18] = J, t[19] = H, t[20] = Ot, t[21] = M, t[22] = w, t[23] = f, t[24] = P, t[25] = Y, t[26] = at, t[27] = Ht, t[28] = _, t[29] = Rt, t[30] = h, t[31] = et, t[32] = D, t[33] = u, t[34] = U, t[35] = it, t[36] = N, t[37] = Ft, t[38] = Nt, t[39] = T, t[40] = xt, t[41] = yt, t[42] = R, t[43] = mt, t[44] = Z, t[45] = Bt, t[46] = $t, t[47] = C, t[48] = S, t[49] = Kt, t[50] = c, t[51] = st, t[52] = x, t[53] = qt, t[54] = ot, t[55] = O, t[56] = ut, t[57] = B, t[58] = Xt, t[59] = bt) : bt = t[59], bt;
|
|
2452
2449
|
}
|
|
2453
2450
|
export {
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2451
|
+
ta as GroupedBarGraph,
|
|
2452
|
+
_s as SimpleBarGraph,
|
|
2453
|
+
ea as StackedBarGraph
|
|
2457
2454
|
};
|
|
2458
2455
|
//# sourceMappingURL=BarGraph.js.map
|