@graphysdk/react-renderer 2.0.0-beta.1788514429233 → 2.0.0-beta.1788522453950
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/dev.css +1 -0
- package/dist/dev.utils-CgbFVnHz.cjs +2 -0
- package/dist/{dev.utils-Br27cPUX.js → dev.utils-SaP1jpou.js} +1 -1
- package/dist/editable.cjs +1 -1
- package/dist/editable.mjs +2 -2
- package/dist/graph-config.cjs +1 -1
- package/dist/graph-config.mjs +1 -1
- package/dist/{history-chords-CoXPRWd1.cjs → history-chords-Cbb9d_Dq.cjs} +1 -1
- package/dist/{history-chords-DFZ-mUdA.js → history-chords-D8a5Pu1F.js} +849 -850
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
- package/dist/dev.utils-BXqtpFeo.cjs +0 -2
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { ANNOTATION_TOOLTIP_MARKER_GAP as
|
|
3
|
-
import { Fragment as jt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as F, useId as V, useMemo as m, useRef as B, useState as G, useSyncExternalStore as
|
|
1
|
+
import { a as Vr, c as oa, f as y, i as aa, l as Ur, n as Qr, o as ia, r as sa, s as Yr, t as la, u as Kr } from "./dev.utils-SaP1jpou.js";
|
|
2
|
+
import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Wt, CachedTextMeasurer as ur, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as zr, DEFAULT_HOVER_AFFORDANCE_COLOR as vt, GROUP_VARIABLES as le, HeuristicTextMeasurer as ha, HoverEngine as va, InternalError as ga, LayoutCompiler as fa, POLAR_RIM_LABEL_GAP_PX as pa, RESTING_HOVER_STATE as st, TAU as hr, alignUnitFractions as jr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as vr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Vt, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as pe, buildSliceGroupKey as Ut, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as Ye, computePanelBorderPaths as La, computePanelBorderSizes as Na, countLayerGeoms as Ma, createAreaPathGenerators as Xr, createHeadlineItemRows as qr, createLineFillAreaGenerator as Fa, createLinePathGenerator as Jr, createSegmentYReader as Da, createStableCellKeyGenerator as Ha, createStableKeyGenerator as oe, createStyleResolver as gt, findAnnotation as Oa, findPointerRegion as gr, formatHeadline as Ga, formatLegends as Wa, formatRuleValue as Va, getAestheticFromScaleAestheticKey as Ee, getAlpha as Zr, getAngleExtent as Qt, getBarRectBounds as Ke, getBoundingRect as $r, getChromeDashArray as Yt, getColor as _r, getDashArray as Pe, getDifferenceArrowLabelBox as Ua, getGroup as ft, getHoverGuideLineProps as Qa, getHoverGuideRectProps as Ya, getInsetTileRect as en, getPolarHoverGuideArcProps as Ka, getRadiusExtent as pt, getRuleDashPattern as za, getShapeAnnotationStroke as ja, getSize as Xa, getStackRole as qa, getUnionExtent as Ja, getX as X, getXMax as Za, getY as te, getYMax as tn, isAnnotationMovable as $a, isDefined as rn, isFullTurnSweep as nn, isSafeUrl as Kt, orderPointerRegions as _a, paintsInDonutHole as ei, pickReadableTextColor as on, placeCallouts as ti, polarToUnit as ri, positionToAngle as ni, prepareAreaObservations as an, prepareLineObservations as sn, projectAnchorToPanel as Ue, projectRegionToPanel as zt, readAnchoredObservation as oi, resolveArrowAnnotationStyle as ai, resolveArrowColor as ii, resolveAxisLabelStyle as si, resolveBarBorderRadiusPx as ln, resolveBarBorderTreatment as ze, resolveBarCornerRadiiPx as li, resolveCalloutAnnotationStyle as ci, resolveDataLabelStyle as di, resolveDeferredAnchors as ui, resolveDifferenceArrowAnnotationStyle as hi, resolveGraphChromeStyle as cn, resolveGridLineStyle as Tt, resolveHeadlineFigure as dn, resolveHeadlineItemStyle as at, resolveHeadlinePlacement as vi, resolveHeadlineStyle as un, resolveImageAnnotationStyle as gi, resolveLegendItemStyle as fi, resolveLegendStyle as pi, resolvePanelBorderStyle as hn, resolvePolarBarCornerRadiusUnit as vn, resolveRuleLabelStyle as mi, resolveShapeAnnotationStyle as gn, resolveTextAnnotationStyle as Ai, resolveTickLabelStyle as yi, resolveTickLineStyle as xi, resolveTooltipStyle as bi, toFontSpec as J, toPanelCursor as wi, toPercent as k, toViewBoxX as fn, toViewBoxY as pn, truncateToWidth as Si } from "@graphysdk/viz-engine";
|
|
3
|
+
import { Fragment as jt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as F, useId as V, useMemo as m, useRef as B, useState as G, useSyncExternalStore as ki } from "react";
|
|
4
4
|
import { Fragment as P, jsx as s, jsxs as b } from "react/jsx-runtime";
|
|
5
5
|
import { useStore as je } from "zustand";
|
|
6
|
-
import { animate as ie, motion as H, useMotionValue as _, useReducedMotion as
|
|
7
|
-
import { interpolatePath as
|
|
6
|
+
import { animate as ie, motion as H, useMotionValue as _, useReducedMotion as Ri, useTransform as tt } from "motion/react";
|
|
7
|
+
import { interpolatePath as Ci } from "d3-interpolate-path";
|
|
8
8
|
import { useShallow as K } from "zustand/react/shallow";
|
|
9
|
-
import { parseFontLength as
|
|
10
|
-
import { createStore as
|
|
11
|
-
import { createPortal as
|
|
9
|
+
import { parseFontLength as Ei, parseFontWeight as Pi, parseUnitlessLineHeight as Bi } from "@graphysdk/viz-engine/graph-config";
|
|
10
|
+
import { createStore as mn } from "zustand/vanilla";
|
|
11
|
+
import { createPortal as An } from "react-dom";
|
|
12
12
|
import Qe, { clsx as He } from "clsx";
|
|
13
|
-
import
|
|
14
|
-
import { IntlProvider as
|
|
15
|
-
import { flip as Lt, offset as Nt, shift as Mt, useFloating as
|
|
16
|
-
import { assignInlineVars as
|
|
17
|
-
import { getContrast as
|
|
18
|
-
import './history-chords.css';var fr = Object.defineProperty,
|
|
13
|
+
import Ii from "lodash-es/merge";
|
|
14
|
+
import { IntlProvider as Ti } from "react-intl";
|
|
15
|
+
import { flip as Lt, offset as Nt, shift as Mt, useFloating as yn } from "@floating-ui/react-dom";
|
|
16
|
+
import { assignInlineVars as xn } from "@vanilla-extract/dynamic";
|
|
17
|
+
import { getContrast as Li } from "color2k";
|
|
18
|
+
import './history-chords.css';var fr = Object.defineProperty, Ni = (e, t) => {
|
|
19
19
|
let r = {};
|
|
20
20
|
for (var n in e)
|
|
21
21
|
fr(r, n, {
|
|
@@ -24,9 +24,9 @@ import './history-chords.css';var fr = Object.defineProperty, Mi = (e, t) => {
|
|
|
24
24
|
});
|
|
25
25
|
return t || fr(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
26
26
|
};
|
|
27
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "2.0.0-beta.
|
|
28
|
-
var
|
|
29
|
-
const e = D(
|
|
27
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "2.0.0-beta.1788522453950");
|
|
28
|
+
var bn = U(null), z = () => {
|
|
29
|
+
const e = D(bn);
|
|
30
30
|
if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
|
|
31
31
|
return e;
|
|
32
32
|
}, C = (e) => {
|
|
@@ -37,7 +37,7 @@ function L(e) {
|
|
|
37
37
|
const { colorScheme: t } = z();
|
|
38
38
|
return m(() => gt({ colorScheme: t }).geomReaders(e), [e, t]);
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var wn = (e) => {
|
|
41
41
|
const { colorScheme: t } = z(), r = C((n) => n.layers);
|
|
42
42
|
return m(() => {
|
|
43
43
|
const n = r.find((o) => o.id === e);
|
|
@@ -47,46 +47,46 @@ var Sn = (e) => {
|
|
|
47
47
|
e,
|
|
48
48
|
t
|
|
49
49
|
]);
|
|
50
|
-
},
|
|
50
|
+
}, Sn = () => {
|
|
51
51
|
const { colorScheme: e } = z(), t = C((r) => r.layers);
|
|
52
52
|
return m(() => {
|
|
53
53
|
const r = gt({ colorScheme: e });
|
|
54
54
|
return (n) => {
|
|
55
|
-
const o =
|
|
55
|
+
const o = oi(t, n);
|
|
56
56
|
if (o !== null)
|
|
57
57
|
return r.geomReaders(o.layer).get("color", o.observation);
|
|
58
58
|
};
|
|
59
59
|
}, [t, e]);
|
|
60
|
-
},
|
|
60
|
+
}, Mi = {
|
|
61
61
|
centerX: 0,
|
|
62
62
|
centerY: 0,
|
|
63
63
|
radius: 1
|
|
64
|
-
},
|
|
64
|
+
}, kn = (e) => {
|
|
65
65
|
const t = Math.min(e.width, e.height);
|
|
66
66
|
return {
|
|
67
67
|
centerX: (e.width - t) / 2 + t / 2,
|
|
68
68
|
centerY: (e.height - t) / 2 + t / 2,
|
|
69
69
|
radius: t / 2
|
|
70
70
|
};
|
|
71
|
-
}, q = (e, t, r =
|
|
72
|
-
const n =
|
|
71
|
+
}, q = (e, t, r = Mi) => {
|
|
72
|
+
const n = ri(e, t);
|
|
73
73
|
return {
|
|
74
74
|
x: r.centerX + n.x * r.radius,
|
|
75
75
|
y: r.centerY - n.y * r.radius
|
|
76
76
|
};
|
|
77
77
|
}, Xt = (e, t) => ({
|
|
78
|
-
x:
|
|
79
|
-
y:
|
|
78
|
+
x: fn(e),
|
|
79
|
+
y: pn(t)
|
|
80
80
|
}), re = (e, t) => {
|
|
81
81
|
const r = q(e, t);
|
|
82
82
|
return {
|
|
83
83
|
x: (r.x + 1) / 2,
|
|
84
84
|
y: (r.y + 1) / 2
|
|
85
85
|
};
|
|
86
|
-
},
|
|
87
|
-
const r =
|
|
86
|
+
}, Fi = 2, Di = 0.7, ve = ({ hit: e, project: t = Xt }) => {
|
|
87
|
+
const r = wn(e.layerId);
|
|
88
88
|
if (!e.anchored) return null;
|
|
89
|
-
const n = r?.get("color", e.observation) ??
|
|
89
|
+
const n = r?.get("color", e.observation) ?? zr, o = (Zr(e.observation) ?? 1) * Di, a = (r?.get("size", e.observation) ?? 8) / 2, i = r?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y);
|
|
90
90
|
return /* @__PURE__ */ s("circle", {
|
|
91
91
|
cx: k(l.x),
|
|
92
92
|
cy: k(l.y),
|
|
@@ -94,7 +94,7 @@ var Sn = (e) => {
|
|
|
94
94
|
fill: n,
|
|
95
95
|
opacity: o,
|
|
96
96
|
stroke: i,
|
|
97
|
-
strokeWidth:
|
|
97
|
+
strokeWidth: Fi,
|
|
98
98
|
"data-testid": "companion-point"
|
|
99
99
|
});
|
|
100
100
|
}, $ = "_1d8mpa10", ne = {
|
|
@@ -102,10 +102,10 @@ var Sn = (e) => {
|
|
|
102
102
|
stiffness: 500,
|
|
103
103
|
damping: 60,
|
|
104
104
|
mass: 1
|
|
105
|
-
},
|
|
105
|
+
}, Hi = { duration: 0 }, qt = (e) => e ? ne : Hi, Ft = (e, t) => {
|
|
106
106
|
const r = _(e);
|
|
107
107
|
return F(() => {
|
|
108
|
-
const n =
|
|
108
|
+
const n = Ci(r.get(), e);
|
|
109
109
|
ie(0, 1, {
|
|
110
110
|
...t,
|
|
111
111
|
onUpdate: (o) => {
|
|
@@ -118,7 +118,7 @@ var Sn = (e) => {
|
|
|
118
118
|
e,
|
|
119
119
|
r
|
|
120
120
|
]), r;
|
|
121
|
-
},
|
|
121
|
+
}, Rn = ({ shouldAnimateTransitions: e, ...t }) => e ? /* @__PURE__ */ s(Gi, { ...t }) : /* @__PURE__ */ s(Oi, { ...t }), Oi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => /* @__PURE__ */ b("g", { children: [/* @__PURE__ */ s("path", {
|
|
122
122
|
d: e,
|
|
123
123
|
fill: r,
|
|
124
124
|
fillOpacity: n,
|
|
@@ -131,7 +131,7 @@ var Sn = (e) => {
|
|
|
131
131
|
strokeOpacity: i,
|
|
132
132
|
strokeDasharray: l,
|
|
133
133
|
vectorEffect: "non-scaling-stroke"
|
|
134
|
-
})] }),
|
|
134
|
+
})] }), Gi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => {
|
|
135
135
|
const c = Ft(e, ne), d = Ft(t, ne);
|
|
136
136
|
return /* @__PURE__ */ b("g", { children: [/* @__PURE__ */ s(H.path, {
|
|
137
137
|
d: c,
|
|
@@ -154,13 +154,13 @@ var Sn = (e) => {
|
|
|
154
154
|
ease: e.growAxis === "angle" ? "circOut" : "backOut",
|
|
155
155
|
delay: r
|
|
156
156
|
};
|
|
157
|
-
},
|
|
157
|
+
}, Wi = (e) => ({
|
|
158
158
|
duration: e.durationSeconds,
|
|
159
159
|
ease: "easeOut"
|
|
160
|
-
}),
|
|
160
|
+
}), Vi = (e) => ({
|
|
161
161
|
duration: e.durationSeconds,
|
|
162
162
|
ease: "easeOut"
|
|
163
|
-
}),
|
|
163
|
+
}), Ui = (e) => Qi(e) + e.durationSeconds, Qi = (e) => {
|
|
164
164
|
switch (e.type) {
|
|
165
165
|
case "grow":
|
|
166
166
|
return Object.values(e.delayByKey).reduce((t, r) => Math.max(t, r), 0);
|
|
@@ -168,19 +168,19 @@ var Sn = (e) => {
|
|
|
168
168
|
case "fade":
|
|
169
169
|
return 0;
|
|
170
170
|
}
|
|
171
|
-
}, pr = 1.1, mr = 1.5,
|
|
171
|
+
}, pr = 1.1, mr = 1.5, Cn = ({ intro: e, children: t }) => {
|
|
172
172
|
const r = V();
|
|
173
173
|
return /* @__PURE__ */ b(P, { children: [/* @__PURE__ */ s("clipPath", {
|
|
174
174
|
id: r,
|
|
175
175
|
children: /* @__PURE__ */ s(H.rect, {
|
|
176
|
-
...
|
|
177
|
-
transition:
|
|
176
|
+
...Yi(e.axis),
|
|
177
|
+
transition: Wi(e)
|
|
178
178
|
})
|
|
179
179
|
}), /* @__PURE__ */ s("g", {
|
|
180
180
|
clipPath: `url(#${r})`,
|
|
181
181
|
children: t
|
|
182
182
|
})] });
|
|
183
|
-
},
|
|
183
|
+
}, Yi = (e) => e === "x" ? {
|
|
184
184
|
x: -0.05,
|
|
185
185
|
y: -0.25,
|
|
186
186
|
height: mr,
|
|
@@ -192,11 +192,11 @@ var Sn = (e) => {
|
|
|
192
192
|
width: mr,
|
|
193
193
|
initial: { height: 0 },
|
|
194
194
|
animate: { height: pr }
|
|
195
|
-
},
|
|
196
|
-
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = m(() =>
|
|
195
|
+
}, Ki = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
196
|
+
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = m(() => Xr(r, t.params), [t.params, r]), c = L(t), d = m(() => {
|
|
197
197
|
const u = oe(t.data, t.mapping, t.id), v = [];
|
|
198
198
|
return t.data.groupBy(le.group).forEach((g) => {
|
|
199
|
-
const h =
|
|
199
|
+
const h = an([...g], t.params.missingValues), f = l(h), A = i(h);
|
|
200
200
|
if (!f || !A) return;
|
|
201
201
|
const p = h[0];
|
|
202
202
|
if (!p) return;
|
|
@@ -220,7 +220,7 @@ var Sn = (e) => {
|
|
|
220
220
|
t.mapping,
|
|
221
221
|
t.params,
|
|
222
222
|
c
|
|
223
|
-
]).map((u) => /* @__PURE__ */ s(
|
|
223
|
+
]).map((u) => /* @__PURE__ */ s(zi, {
|
|
224
224
|
areaPath: u.areaPath,
|
|
225
225
|
linePath: u.linePath,
|
|
226
226
|
color: u.color,
|
|
@@ -237,12 +237,12 @@ var Sn = (e) => {
|
|
|
237
237
|
height: "100%",
|
|
238
238
|
"data-geom": "area",
|
|
239
239
|
className: $,
|
|
240
|
-
children: a ? /* @__PURE__ */ s(
|
|
240
|
+
children: a ? /* @__PURE__ */ s(Cn, {
|
|
241
241
|
intro: a,
|
|
242
242
|
children: d
|
|
243
243
|
}) : d
|
|
244
244
|
});
|
|
245
|
-
}),
|
|
245
|
+
}), zi = ({ areaPath: e, linePath: t, color: r, fillOpacity: n, strokeWidth: o, strokeOpacity: a, strokeDasharray: i, shouldAnimateTransitions: l }) => /* @__PURE__ */ s(Rn, {
|
|
246
246
|
fillPath: e,
|
|
247
247
|
linePath: t,
|
|
248
248
|
fill: r,
|
|
@@ -252,20 +252,20 @@ var Sn = (e) => {
|
|
|
252
252
|
strokeOpacity: a,
|
|
253
253
|
strokeDasharray: i,
|
|
254
254
|
shouldAnimateTransitions: l
|
|
255
|
-
}),
|
|
256
|
-
const n =
|
|
255
|
+
}), ji = "_324dw20", kt = 1, Xi = 2, qi = 1, Ji = 12 / 2, Zi = 2.25, Be = ({ hit: e, project: t = Xt, ...r }) => {
|
|
256
|
+
const n = wn(e.layerId);
|
|
257
257
|
if (!e.anchored) return null;
|
|
258
|
-
const o = n?.get("color", e.observation) ??
|
|
258
|
+
const o = n?.get("color", e.observation) ?? zr, a = Zr(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y), c = k(l.x), d = k(l.y), u = $i(e.observation), v = u + kt / 2 + qi + kt / 2;
|
|
259
259
|
return /* @__PURE__ */ b("g", {
|
|
260
260
|
...r,
|
|
261
|
-
className:
|
|
261
|
+
className: ji,
|
|
262
262
|
children: [/* @__PURE__ */ s("circle", {
|
|
263
263
|
cx: c,
|
|
264
264
|
cy: d,
|
|
265
265
|
r: v,
|
|
266
266
|
fill: "none",
|
|
267
267
|
stroke: i,
|
|
268
|
-
strokeWidth:
|
|
268
|
+
strokeWidth: Xi
|
|
269
269
|
}), /* @__PURE__ */ s("circle", {
|
|
270
270
|
cx: c,
|
|
271
271
|
cy: d,
|
|
@@ -276,16 +276,16 @@ var Sn = (e) => {
|
|
|
276
276
|
strokeWidth: kt
|
|
277
277
|
})]
|
|
278
278
|
});
|
|
279
|
-
},
|
|
280
|
-
const t =
|
|
281
|
-
return
|
|
282
|
-
},
|
|
283
|
-
const o = L(e), a = ft(r.observation), i = m(() =>
|
|
279
|
+
}, $i = (e) => {
|
|
280
|
+
const t = Xa(e);
|
|
281
|
+
return rn(t) ? t / Zi : Ji;
|
|
282
|
+
}, _i = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
|
|
283
|
+
const o = L(e), a = ft(r.observation), i = m(() => an([...e.data.filter(le.group, "eq", a)], e.params.missingValues), [
|
|
284
284
|
e.data,
|
|
285
285
|
e.params.missingValues,
|
|
286
286
|
a
|
|
287
287
|
]), { areaPath: l, linePath: c } = m(() => {
|
|
288
|
-
const { lineGenerator: h, areaGenerator: f } =
|
|
288
|
+
const { lineGenerator: h, areaGenerator: f } = Xr(t, e.params);
|
|
289
289
|
return {
|
|
290
290
|
areaPath: f(i) ?? "",
|
|
291
291
|
linePath: h(i) ?? ""
|
|
@@ -331,18 +331,18 @@ var Sn = (e) => {
|
|
|
331
331
|
})
|
|
332
332
|
]
|
|
333
333
|
});
|
|
334
|
-
},
|
|
334
|
+
}, es = {
|
|
335
335
|
geom: "area",
|
|
336
336
|
coord: "cartesian",
|
|
337
337
|
swatchShape: "area",
|
|
338
338
|
guideMode: "crosshair",
|
|
339
|
-
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(
|
|
339
|
+
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(Ki, {
|
|
340
340
|
layer: e,
|
|
341
341
|
coordSystem: t,
|
|
342
342
|
shouldAnimateTransitions: r,
|
|
343
343
|
intro: n
|
|
344
344
|
}),
|
|
345
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r, group: n, related: o }) => /* @__PURE__ */ s(
|
|
345
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r, group: n, related: o }) => /* @__PURE__ */ s(_i, {
|
|
346
346
|
layer: e,
|
|
347
347
|
coordSystem: t,
|
|
348
348
|
primary: r,
|
|
@@ -351,13 +351,13 @@ var Sn = (e) => {
|
|
|
351
351
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(P, { children: e.map((t) => /* @__PURE__ */ s(ve, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
|
|
352
352
|
getOverlayAnchor: ({ observation: e, coordSystem: t }) => {
|
|
353
353
|
if (t.mainAxis === "x") {
|
|
354
|
-
const o = X(e), a =
|
|
354
|
+
const o = X(e), a = tn(e) ?? te(e);
|
|
355
355
|
return o === null || a === null ? null : {
|
|
356
356
|
x: o,
|
|
357
357
|
y: a
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
const r = te(e), n =
|
|
360
|
+
const r = te(e), n = Za(e) ?? X(e);
|
|
361
361
|
return r === null || n === null ? null : {
|
|
362
362
|
x: n,
|
|
363
363
|
y: r
|
|
@@ -390,7 +390,7 @@ var Sn = (e) => {
|
|
|
390
390
|
borderWidth: e.get("borderWidth", t),
|
|
391
391
|
borderRadius: e.get("borderRadius", t),
|
|
392
392
|
borderAlpha: e.get("alpha", t)
|
|
393
|
-
}),
|
|
393
|
+
}), En = (e, t) => t.growAxis === "x" ? {
|
|
394
394
|
x: t.baseline,
|
|
395
395
|
y: e.y,
|
|
396
396
|
width: 0,
|
|
@@ -400,7 +400,7 @@ var Sn = (e) => {
|
|
|
400
400
|
y: t.baseline,
|
|
401
401
|
width: e.width,
|
|
402
402
|
height: 0
|
|
403
|
-
},
|
|
403
|
+
}, ts = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
404
404
|
const a = V(), i = L(t), l = mt(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n);
|
|
405
405
|
return /* @__PURE__ */ s(P, { children: m(() => {
|
|
406
406
|
const c = oe(t.data, t.mapping, t.id), d = /* @__PURE__ */ new Map();
|
|
@@ -419,13 +419,13 @@ var Sn = (e) => {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
return [...d.values()].map(({ bars: u, style: v }, g) => {
|
|
422
|
-
const h =
|
|
422
|
+
const h = $r(u), f = v.borderColor === void 0 ? void 0 : ze(v.borderWidth);
|
|
423
423
|
return {
|
|
424
424
|
key: u[0]?.key ?? String(g),
|
|
425
425
|
id: `${a}${g}`,
|
|
426
426
|
bars: u,
|
|
427
427
|
...h,
|
|
428
|
-
radii:
|
|
428
|
+
radii: as({
|
|
429
429
|
borderRadius: v.borderRadius,
|
|
430
430
|
mainAxis: r.mainAxis,
|
|
431
431
|
bounds: h
|
|
@@ -453,15 +453,15 @@ var Sn = (e) => {
|
|
|
453
453
|
introKey: u
|
|
454
454
|
}, u);
|
|
455
455
|
}
|
|
456
|
-
return l.isAnimated ? /* @__PURE__ */ s(
|
|
456
|
+
return l.isAnimated ? /* @__PURE__ */ s(ns, {
|
|
457
457
|
column: c,
|
|
458
458
|
animation: l
|
|
459
|
-
}, c.key) : /* @__PURE__ */ s(
|
|
459
|
+
}, c.key) : /* @__PURE__ */ s(rs, {
|
|
460
460
|
column: c,
|
|
461
461
|
animation: l
|
|
462
462
|
}, c.key);
|
|
463
463
|
}) });
|
|
464
|
-
}),
|
|
464
|
+
}), rs = ({ column: e, animation: t }) => {
|
|
465
465
|
const { id: r, bars: n, radii: o, borderColor: a, outlineOpacity: i, clippedStrokeWidth: l, separatorStrokeWidth: c } = e, d = a !== void 0, u = /* @__PURE__ */ s("clipPath", {
|
|
466
466
|
id: r,
|
|
467
467
|
children: /* @__PURE__ */ s(Ar, {
|
|
@@ -503,8 +503,8 @@ var Sn = (e) => {
|
|
|
503
503
|
opacity: i
|
|
504
504
|
})]
|
|
505
505
|
})] });
|
|
506
|
-
},
|
|
507
|
-
const { id: r, bars: n, radii: o, borderColor: a, outlineOpacity: i, clippedStrokeWidth: l, separatorStrokeWidth: c } = e, d = a !== void 0, u =
|
|
506
|
+
}, ns = ({ column: e, animation: t }) => {
|
|
507
|
+
const { id: r, bars: n, radii: o, borderColor: a, outlineOpacity: i, clippedStrokeWidth: l, separatorStrokeWidth: c } = e, d = a !== void 0, u = os(e, t, n[0]?.key), v = {
|
|
508
508
|
style: {
|
|
509
509
|
transformBox: "view-box",
|
|
510
510
|
x: u.x,
|
|
@@ -553,7 +553,7 @@ var Sn = (e) => {
|
|
|
553
553
|
}, lt = ({ animation: e, introKey: t, rx: r, ry: n, stroke: o, strokeWidth: a, ...i }) => {
|
|
554
554
|
const { isAnimated: l, activeIntro: c, shouldAnimateTransitions: d } = e;
|
|
555
555
|
if (l) {
|
|
556
|
-
const u = c ?
|
|
556
|
+
const u = c ? En(i, c) : null;
|
|
557
557
|
return /* @__PURE__ */ s(H.rect, {
|
|
558
558
|
initial: u ? {
|
|
559
559
|
x: k(u.x),
|
|
@@ -603,8 +603,8 @@ var Sn = (e) => {
|
|
|
603
603
|
stroke: n,
|
|
604
604
|
strokeWidth: o,
|
|
605
605
|
opacity: a
|
|
606
|
-
}),
|
|
607
|
-
const n = t.activeIntro ?
|
|
606
|
+
}), os = (e, t, r) => {
|
|
607
|
+
const n = t.activeIntro ? En(e, t.activeIntro) : e, o = _(n.x), a = _(n.y), i = _(n.width), l = _(n.height), c = Dt(t, r);
|
|
608
608
|
return F(() => {
|
|
609
609
|
const d = c(), u = [
|
|
610
610
|
ie(o, e.x, d),
|
|
@@ -632,13 +632,13 @@ var Sn = (e) => {
|
|
|
632
632
|
height: tt(l, k)
|
|
633
633
|
};
|
|
634
634
|
};
|
|
635
|
-
function
|
|
636
|
-
const t =
|
|
635
|
+
function as(e) {
|
|
636
|
+
const t = li(e);
|
|
637
637
|
if (e.borderRadius !== "full") return t;
|
|
638
638
|
const r = {};
|
|
639
639
|
return t.rx !== void 0 && (r.rx = k(t.rx)), t.ry !== void 0 && (r.ry = k(t.ry)), r;
|
|
640
640
|
}
|
|
641
|
-
var
|
|
641
|
+
var is = "_1suo8ub0", Pn = (e, t, r) => {
|
|
642
642
|
const n = /* @__PURE__ */ new Map();
|
|
643
643
|
for (const a of e.data) {
|
|
644
644
|
const i = Ke(t, a);
|
|
@@ -652,10 +652,10 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
652
652
|
const o = /* @__PURE__ */ new Map();
|
|
653
653
|
for (const [a, { firstObservation: i, memberBounds: l }] of n) o.set(a, {
|
|
654
654
|
style: Ie(r, i),
|
|
655
|
-
bounds:
|
|
655
|
+
bounds: $r(l)
|
|
656
656
|
});
|
|
657
657
|
return o;
|
|
658
|
-
},
|
|
658
|
+
}, Bn = (e, t, r, n) => {
|
|
659
659
|
const o = Ke(t, n);
|
|
660
660
|
return o ? e.get(Vt(t, o)) ?? {
|
|
661
661
|
style: Ie(r, n),
|
|
@@ -685,10 +685,10 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
685
685
|
`A${r},${n} 0 0 1 ${e.x + r},${e.y}`,
|
|
686
686
|
"Z"
|
|
687
687
|
].join("");
|
|
688
|
-
},
|
|
688
|
+
}, ss = ({ observation: e, mainAxis: t, styleReaders: r, column: n, panelRect: o }) => {
|
|
689
689
|
const a = V(), i = V(), l = Ke(t, e);
|
|
690
690
|
if (!l) return null;
|
|
691
|
-
const c = ct(l, o), d = ct(n.bounds, o), { borderColor: u, borderWidth: v, borderRadius: g, borderAlpha: h } = n.style, f =
|
|
691
|
+
const c = ct(l, o), d = ct(n.bounds, o), { borderColor: u, borderWidth: v, borderRadius: g, borderAlpha: h } = n.style, f = ln({
|
|
692
692
|
borderRadius: g,
|
|
693
693
|
mainAxis: t,
|
|
694
694
|
bounds: d
|
|
@@ -728,15 +728,15 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
728
728
|
})
|
|
729
729
|
]
|
|
730
730
|
});
|
|
731
|
-
},
|
|
732
|
-
const o = L(t), a = m(() =>
|
|
731
|
+
}, ls = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => {
|
|
732
|
+
const o = L(t), a = m(() => Pn(t, r.mainAxis, o), [
|
|
733
733
|
t,
|
|
734
734
|
r.mainAxis,
|
|
735
735
|
o
|
|
736
736
|
]), i = oe(e.data, e.mapping, e.id), l = [];
|
|
737
737
|
for (const c of e.data) {
|
|
738
|
-
const d =
|
|
739
|
-
d !== null && l.push(/* @__PURE__ */ s(
|
|
738
|
+
const d = Bn(a, r.mainAxis, o, c);
|
|
739
|
+
d !== null && l.push(/* @__PURE__ */ s(ss, {
|
|
740
740
|
observation: c,
|
|
741
741
|
mainAxis: r.mainAxis,
|
|
742
742
|
styleReaders: o,
|
|
@@ -745,14 +745,14 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
745
745
|
}, i(c)));
|
|
746
746
|
}
|
|
747
747
|
return l;
|
|
748
|
-
}, Rt = 3,
|
|
749
|
-
const o = L(e), a = V(), i = V(), l = V(), c = m(() =>
|
|
748
|
+
}, Rt = 3, cs = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
749
|
+
const o = L(e), a = V(), i = V(), l = V(), c = m(() => Pn(e, t.mainAxis, o), [
|
|
750
750
|
e,
|
|
751
751
|
t.mainAxis,
|
|
752
752
|
o
|
|
753
|
-
]), d = Ke(t.mainAxis, r.observation), u =
|
|
753
|
+
]), d = Ke(t.mainAxis, r.observation), u = Bn(c, t.mainAxis, o, r.observation);
|
|
754
754
|
if (!d || u === null) return null;
|
|
755
|
-
const v = ct(d, n), g = ct(u.bounds, n), { borderColor: h, borderWidth: f, borderRadius: A, borderAlpha: p } = u.style, x =
|
|
755
|
+
const v = ct(d, n), g = ct(u.bounds, n), { borderColor: h, borderWidth: f, borderRadius: A, borderAlpha: p } = u.style, x = ln({
|
|
756
756
|
borderRadius: A,
|
|
757
757
|
mainAxis: t.mainAxis,
|
|
758
758
|
bounds: g
|
|
@@ -773,7 +773,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
773
773
|
children: /* @__PURE__ */ s("path", { d: S })
|
|
774
774
|
}),
|
|
775
775
|
/* @__PURE__ */ s("g", {
|
|
776
|
-
className:
|
|
776
|
+
className: is,
|
|
777
777
|
children: /* @__PURE__ */ s("g", {
|
|
778
778
|
clipPath: `url(#${a})`,
|
|
779
779
|
children: /* @__PURE__ */ s("path", {
|
|
@@ -810,35 +810,35 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
810
810
|
})
|
|
811
811
|
]
|
|
812
812
|
});
|
|
813
|
-
},
|
|
813
|
+
}, ds = {
|
|
814
814
|
geom: "bar",
|
|
815
815
|
coord: "cartesian",
|
|
816
816
|
swatchShape: "square",
|
|
817
817
|
guideMode: "band",
|
|
818
|
-
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(
|
|
818
|
+
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(ts, {
|
|
819
819
|
layer: e,
|
|
820
820
|
coordSystem: t,
|
|
821
821
|
shouldAnimateTransitions: r,
|
|
822
822
|
intro: n
|
|
823
823
|
}),
|
|
824
|
-
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ s(
|
|
824
|
+
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ s(ls, {
|
|
825
825
|
layer: e,
|
|
826
826
|
sourceLayer: t,
|
|
827
827
|
coordSystem: r,
|
|
828
828
|
panelRect: n
|
|
829
829
|
}),
|
|
830
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ s(
|
|
830
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ s(cs, {
|
|
831
831
|
layer: e,
|
|
832
832
|
coordSystem: t,
|
|
833
833
|
primary: r,
|
|
834
834
|
panelRect: n
|
|
835
835
|
}),
|
|
836
836
|
renderHoverCompanions: () => null
|
|
837
|
-
},
|
|
838
|
-
const o = n?.type === "wipe" ? n : null, a = m(() =>
|
|
837
|
+
}, us = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
838
|
+
const o = n?.type === "wipe" ? n : null, a = m(() => Jr(t.params), [t.params]), i = m(() => Fa(t.params), [t.params]), l = L(t), c = m(() => {
|
|
839
839
|
const d = oe(t.data, t.mapping, t.id), u = [];
|
|
840
840
|
return t.data.groupBy(le.group).forEach((v) => {
|
|
841
|
-
const g =
|
|
841
|
+
const g = sn([...v], t.params.missingValues), h = a(g);
|
|
842
842
|
if (!h) return;
|
|
843
843
|
const f = g[0];
|
|
844
844
|
if (!f) return;
|
|
@@ -862,7 +862,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
862
862
|
t.mapping,
|
|
863
863
|
t.params,
|
|
864
864
|
l
|
|
865
|
-
]).map((d) => /* @__PURE__ */ s(
|
|
865
|
+
]).map((d) => /* @__PURE__ */ s(hs, {
|
|
866
866
|
pathData: d.pathData,
|
|
867
867
|
fillPath: d.fillPath,
|
|
868
868
|
fillAlpha: d.fillAlpha,
|
|
@@ -879,12 +879,12 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
879
879
|
height: "100%",
|
|
880
880
|
"data-geom": "line",
|
|
881
881
|
className: $,
|
|
882
|
-
children: o ? /* @__PURE__ */ s(
|
|
882
|
+
children: o ? /* @__PURE__ */ s(Cn, {
|
|
883
883
|
intro: o,
|
|
884
884
|
children: c
|
|
885
885
|
}) : c
|
|
886
886
|
});
|
|
887
|
-
}),
|
|
887
|
+
}), hs = ({ pathData: e, fillPath: t, fillAlpha: r, color: n, strokeWidth: o, opacity: a, strokeDasharray: i, shouldAnimateTransitions: l }) => t !== void 0 && r !== void 0 ? /* @__PURE__ */ s(vs, {
|
|
888
888
|
fillPath: t,
|
|
889
889
|
fillAlpha: r,
|
|
890
890
|
linePath: e,
|
|
@@ -893,7 +893,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
893
893
|
opacity: a,
|
|
894
894
|
strokeDasharray: i,
|
|
895
895
|
shouldAnimateTransitions: l
|
|
896
|
-
}) : l ? /* @__PURE__ */ s(
|
|
896
|
+
}) : l ? /* @__PURE__ */ s(gs, {
|
|
897
897
|
pathData: e,
|
|
898
898
|
color: n,
|
|
899
899
|
strokeWidth: o,
|
|
@@ -907,7 +907,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
907
907
|
opacity: a,
|
|
908
908
|
strokeDasharray: i,
|
|
909
909
|
vectorEffect: "non-scaling-stroke"
|
|
910
|
-
}),
|
|
910
|
+
}), vs = ({ fillPath: e, fillAlpha: t, linePath: r, color: n, strokeWidth: o, opacity: a, strokeDasharray: i, shouldAnimateTransitions: l }) => {
|
|
911
911
|
const c = `line_fill_gradient_${V()}`;
|
|
912
912
|
return /* @__PURE__ */ b(P, { children: [/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ b("linearGradient", {
|
|
913
913
|
id: c,
|
|
@@ -928,7 +928,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
928
928
|
stopOpacity: 0
|
|
929
929
|
})
|
|
930
930
|
]
|
|
931
|
-
}) }), /* @__PURE__ */ s(
|
|
931
|
+
}) }), /* @__PURE__ */ s(Rn, {
|
|
932
932
|
fillPath: e,
|
|
933
933
|
linePath: r,
|
|
934
934
|
fill: `url(#${c})`,
|
|
@@ -939,7 +939,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
939
939
|
strokeDasharray: i,
|
|
940
940
|
shouldAnimateTransitions: l
|
|
941
941
|
})] });
|
|
942
|
-
},
|
|
942
|
+
}, gs = ({ pathData: e, color: t, strokeWidth: r, opacity: n, strokeDasharray: o }) => {
|
|
943
943
|
const a = Ft(e, ne);
|
|
944
944
|
return /* @__PURE__ */ s(H.path, {
|
|
945
945
|
d: a,
|
|
@@ -950,12 +950,12 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
950
950
|
strokeDasharray: o,
|
|
951
951
|
vectorEffect: "non-scaling-stroke"
|
|
952
952
|
});
|
|
953
|
-
},
|
|
954
|
-
const n = L(e), o = ft(t.observation), a = m(() =>
|
|
953
|
+
}, fs = ({ layer: e, primary: t, companions: r }) => {
|
|
954
|
+
const n = L(e), o = ft(t.observation), a = m(() => sn([...e.data.filter(le.group, "eq", o)], e.params.missingValues), [
|
|
955
955
|
e.data,
|
|
956
956
|
e.params.missingValues,
|
|
957
957
|
o
|
|
958
|
-
]), i = m(() =>
|
|
958
|
+
]), i = m(() => Jr(e.params)(a), [e.params, a]);
|
|
959
959
|
if (!i) return null;
|
|
960
960
|
const l = n.get("color", t.observation), c = n.get("alpha", t.observation), d = n.get("strokeWidth", t.observation), u = Pe(n.get("lineType", t.observation));
|
|
961
961
|
return /* @__PURE__ */ b("g", {
|
|
@@ -986,17 +986,17 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
986
986
|
})
|
|
987
987
|
]
|
|
988
988
|
});
|
|
989
|
-
},
|
|
989
|
+
}, ps = {
|
|
990
990
|
geom: "line",
|
|
991
991
|
coord: "cartesian",
|
|
992
992
|
swatchShape: "line",
|
|
993
993
|
guideMode: "crosshair",
|
|
994
|
-
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(
|
|
994
|
+
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(us, {
|
|
995
995
|
layer: e,
|
|
996
996
|
shouldAnimateTransitions: t,
|
|
997
997
|
intro: r
|
|
998
998
|
}),
|
|
999
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s(
|
|
999
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s(fs, {
|
|
1000
1000
|
layer: e,
|
|
1001
1001
|
primary: t,
|
|
1002
1002
|
companions: [...r, ...n]
|
|
@@ -1009,7 +1009,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1009
1009
|
y: r
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
},
|
|
1012
|
+
}, In = ({ observation: e, project: t, styleReaders: r, animation: n, introKey: o }) => {
|
|
1013
1013
|
const a = X(e), i = te(e);
|
|
1014
1014
|
if (a === null || i === null) return null;
|
|
1015
1015
|
const l = t(a, i), c = k(l.x), d = k(l.y), u = r.get("size", e) / 2, v = r.get("color", e), g = r.get("alpha", e), h = r.get("borderColor", e), f = r.get("borderWidth", e), { isAnimated: A, activeIntro: p, shouldAnimateTransitions: x } = n;
|
|
@@ -1039,12 +1039,12 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1039
1039
|
stroke: h,
|
|
1040
1040
|
strokeWidth: f
|
|
1041
1041
|
});
|
|
1042
|
-
},
|
|
1042
|
+
}, ms = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1043
1043
|
const o = L(t), a = mt(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
1044
1044
|
return m(() => {
|
|
1045
1045
|
const i = a.activeIntro ? oe(t.data, t.mapping, t.id) : null, l = [];
|
|
1046
1046
|
let c = 0;
|
|
1047
|
-
for (const d of t.data) l.push(/* @__PURE__ */ s(
|
|
1047
|
+
for (const d of t.data) l.push(/* @__PURE__ */ s(In, {
|
|
1048
1048
|
observation: d,
|
|
1049
1049
|
project: Xt,
|
|
1050
1050
|
styleReaders: o,
|
|
@@ -1065,11 +1065,11 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1065
1065
|
"data-testid": "hovered-point",
|
|
1066
1066
|
children: r
|
|
1067
1067
|
}) : r;
|
|
1068
|
-
},
|
|
1068
|
+
}, As = {
|
|
1069
1069
|
geom: "point",
|
|
1070
1070
|
coord: "cartesian",
|
|
1071
1071
|
swatchShape: "circle",
|
|
1072
|
-
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(
|
|
1072
|
+
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(ms, {
|
|
1073
1073
|
layer: e,
|
|
1074
1074
|
shouldAnimateTransitions: t,
|
|
1075
1075
|
intro: r
|
|
@@ -1086,7 +1086,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1086
1086
|
y: r
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
1089
|
-
},
|
|
1089
|
+
}, ys = sa.sm, O = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, xs = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, df = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, uf = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), hf = (e) => e.length === 0 ? !1 : typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("color", e) : /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), de = (e) => `${e}px`, Tn = {
|
|
1090
1090
|
gridLineWidth: "1px",
|
|
1091
1091
|
tooltipBorderRadius: "6px",
|
|
1092
1092
|
tooltipPaddingBlock: "8px",
|
|
@@ -1110,29 +1110,29 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1110
1110
|
editorOverlay: 900,
|
|
1111
1111
|
editorOverlayPopover: 950,
|
|
1112
1112
|
tooltip: 1e3
|
|
1113
|
-
},
|
|
1113
|
+
}, Ln = {
|
|
1114
1114
|
elevationXs: "0 0 2px rgba(15, 15, 24, 0.12), 0 2px 2px rgba(14, 14, 52, 0.08)",
|
|
1115
1115
|
elevationSm: "0 0 4px rgba(15, 15, 24, 0.12), 0 4px 4px rgba(14, 14, 52, 0.08)",
|
|
1116
1116
|
elevationMd: "0 0 8px rgba(15, 15, 24, 0.12), 0 8px 8px rgba(14, 14, 52, 0.08)",
|
|
1117
1117
|
elevationLg: "0 0 16px rgba(15, 15, 24, 0.12), 0 16px 16px rgba(14, 14, 52, 0.08)"
|
|
1118
|
-
},
|
|
1118
|
+
}, Nn = {
|
|
1119
1119
|
radiiXs: "4px",
|
|
1120
1120
|
radiiSm: "6px",
|
|
1121
1121
|
radiiMd: "8px",
|
|
1122
1122
|
radiiLg: "12px"
|
|
1123
|
-
},
|
|
1123
|
+
}, Mn = {
|
|
1124
1124
|
zIndexToolbar: `${De.textToolbar}`,
|
|
1125
1125
|
zIndexToolbarTooltip: `${De.textToolbarTooltip}`,
|
|
1126
1126
|
zIndexToolbarPopover: `${De.textToolbarPopover}`,
|
|
1127
1127
|
zIndexEditorPopover: `${De.editorOverlayPopover}`
|
|
1128
|
-
},
|
|
1128
|
+
}, bs = 8, Se = (e) => `${bs * e}px`, Fn = {
|
|
1129
1129
|
spaceXxs: Se(0.25),
|
|
1130
1130
|
spaceXs: Se(0.5),
|
|
1131
1131
|
spaceSm: Se(0.75),
|
|
1132
1132
|
spaceMd: Se(1),
|
|
1133
1133
|
spaceLg: Se(1.5),
|
|
1134
1134
|
spaceXl: Se(2)
|
|
1135
|
-
},
|
|
1135
|
+
}, ws = {
|
|
1136
1136
|
transparent: "transparent",
|
|
1137
1137
|
white: "#FFFFFF",
|
|
1138
1138
|
black: "#000000",
|
|
@@ -1159,7 +1159,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1159
1159
|
purple50: "#7B56EA",
|
|
1160
1160
|
purple30: "#E093FE",
|
|
1161
1161
|
greyGradient80: "linear-gradient(to top, #F0F0F1, #F9F9FF)"
|
|
1162
|
-
},
|
|
1162
|
+
}, Ss = {
|
|
1163
1163
|
textPrimary: y.black,
|
|
1164
1164
|
textSecondary: O(y.textPrimary, 0.6),
|
|
1165
1165
|
textDisabled: O(y.textPrimary, 0.5),
|
|
@@ -1178,7 +1178,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1178
1178
|
raisedBackground: y.grey85,
|
|
1179
1179
|
overlayBackground: y.grey100,
|
|
1180
1180
|
overlayBorderGradient: y.border10
|
|
1181
|
-
},
|
|
1181
|
+
}, ks = {
|
|
1182
1182
|
graphBackground: y.grey100,
|
|
1183
1183
|
gridLineColor: y.border10,
|
|
1184
1184
|
axisTickColor: y.border10,
|
|
@@ -1202,7 +1202,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1202
1202
|
heatmapEmptyTileBackground: y.grey80,
|
|
1203
1203
|
annotationFrameBorderColor: y.blue60,
|
|
1204
1204
|
editMenuTriggerIconColor: "#3d414c"
|
|
1205
|
-
},
|
|
1205
|
+
}, Rs = {
|
|
1206
1206
|
canvasDefault: "#000000",
|
|
1207
1207
|
canvasBlue: "#3b82f6",
|
|
1208
1208
|
canvasCyan: "#06b6d4",
|
|
@@ -1214,31 +1214,31 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1214
1214
|
canvasPurple: "#8b5cf6",
|
|
1215
1215
|
canvasGray: "#78716c",
|
|
1216
1216
|
canvasInverse: "#ffffff"
|
|
1217
|
-
},
|
|
1217
|
+
}, Dn = {
|
|
1218
|
+
...ws,
|
|
1218
1219
|
...Ss,
|
|
1219
|
-
...
|
|
1220
|
+
...Ln,
|
|
1220
1221
|
...Nn,
|
|
1221
|
-
...Mn,
|
|
1222
|
-
...Dn,
|
|
1223
1222
|
...Fn,
|
|
1223
|
+
...Mn,
|
|
1224
|
+
...ks,
|
|
1224
1225
|
...Rs,
|
|
1225
|
-
...
|
|
1226
|
-
...
|
|
1226
|
+
...Tn,
|
|
1227
|
+
...Vr,
|
|
1227
1228
|
...Ur,
|
|
1228
|
-
...
|
|
1229
|
-
|
|
1230
|
-
}, On = (e, t) => e * 10 * t, Gn = (e, t) => ({
|
|
1229
|
+
...Yr
|
|
1230
|
+
}, Hn = (e, t) => e * 10 * t, On = (e, t) => ({
|
|
1231
1231
|
family: e.family,
|
|
1232
|
-
size: e.size.unit === "em" ?
|
|
1232
|
+
size: e.size.unit === "em" ? Hn(e.size.value, t) : e.size.value,
|
|
1233
1233
|
weight: e.weight,
|
|
1234
1234
|
style: e.style
|
|
1235
|
-
}),
|
|
1236
|
-
const r = Ct(e.fontFamilyDefault) ?? Ct(
|
|
1235
|
+
}), Cs = (e, t = {}) => {
|
|
1236
|
+
const r = Ct(e.fontFamilyDefault) ?? Ct(Qr) ?? "";
|
|
1237
1237
|
return {
|
|
1238
1238
|
legendLabel: ((o) => {
|
|
1239
|
-
const a = t[o] ?? {}, i =
|
|
1240
|
-
l === null &&
|
|
1241
|
-
const c = l ??
|
|
1239
|
+
const a = t[o] ?? {}, i = aa[o], l = Gn(i, e);
|
|
1240
|
+
l === null && Ps(o);
|
|
1241
|
+
const c = l ?? Es(i);
|
|
1242
1242
|
return {
|
|
1243
1243
|
family: Ct(a.family) ?? r,
|
|
1244
1244
|
style: a.style ?? "normal",
|
|
@@ -1249,20 +1249,20 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1249
1249
|
})("fontLegendLabel"),
|
|
1250
1250
|
familyDefault: r
|
|
1251
1251
|
};
|
|
1252
|
-
},
|
|
1253
|
-
const r =
|
|
1252
|
+
}, Gn = (e, t) => {
|
|
1253
|
+
const r = Pi(t[e.weight]), n = Ei(t[e.size]), o = Bi(t[e.lineHeight]);
|
|
1254
1254
|
return r === null || n === null || o === null ? null : {
|
|
1255
1255
|
weight: r,
|
|
1256
1256
|
size: n,
|
|
1257
1257
|
lineHeight: o
|
|
1258
1258
|
};
|
|
1259
|
-
},
|
|
1260
|
-
const t =
|
|
1259
|
+
}, Es = (e) => {
|
|
1260
|
+
const t = Gn(e, Dn);
|
|
1261
1261
|
if (t === null) throw new Error("[react-renderer] Base typography leaf tokens failed to parse.");
|
|
1262
1262
|
return t;
|
|
1263
|
-
}, Ct = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(),
|
|
1264
|
-
|
|
1265
|
-
},
|
|
1263
|
+
}, Ct = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), Ps = (e) => {
|
|
1264
|
+
la && console.warn(`[react-renderer] The leaf tokens composing "${e}" could not be resolved to a measurable font. Measurement falls back to the token's default; paint may disagree. Leaf overrides must be concrete values (px/em sizes, numeric weights, unitless line-heights).`);
|
|
1265
|
+
}, Bs = {
|
|
1266
1266
|
transparent: "transparent",
|
|
1267
1267
|
white: "#FFFFFF",
|
|
1268
1268
|
black: "#000000",
|
|
@@ -1289,7 +1289,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1289
1289
|
purple50: "#7B56EA",
|
|
1290
1290
|
purple30: "#E093FE",
|
|
1291
1291
|
greyGradient80: "linear-gradient(to top, #222429, #31353f)"
|
|
1292
|
-
},
|
|
1292
|
+
}, Is = {
|
|
1293
1293
|
textPrimary: y.grey0,
|
|
1294
1294
|
textSecondary: O(y.textPrimary, 0.8),
|
|
1295
1295
|
textDisabled: O(y.textPrimary, 0.5),
|
|
@@ -1308,7 +1308,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1308
1308
|
raisedBackground: y.grey80,
|
|
1309
1309
|
overlayBackground: y.grey90,
|
|
1310
1310
|
overlayBorderGradient: y.greyGradient80
|
|
1311
|
-
},
|
|
1311
|
+
}, Ts = {
|
|
1312
1312
|
graphBackground: y.grey90,
|
|
1313
1313
|
gridLineColor: y.border10,
|
|
1314
1314
|
axisTickColor: y.border10,
|
|
@@ -1332,7 +1332,7 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1332
1332
|
heatmapEmptyTileBackground: y.grey80,
|
|
1333
1333
|
annotationFrameBorderColor: y.blue60,
|
|
1334
1334
|
editMenuTriggerIconColor: y.white
|
|
1335
|
-
},
|
|
1335
|
+
}, Ls = {
|
|
1336
1336
|
canvasDefault: "#FFFFFF",
|
|
1337
1337
|
canvasBlue: "#60a5fa",
|
|
1338
1338
|
canvasCyan: "#22d3ee",
|
|
@@ -1344,36 +1344,36 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1344
1344
|
canvasPurple: "#a78bfa",
|
|
1345
1345
|
canvasGray: "#a8a29e",
|
|
1346
1346
|
canvasInverse: "#000000"
|
|
1347
|
-
},
|
|
1347
|
+
}, Ns = {
|
|
1348
|
+
...Bs,
|
|
1348
1349
|
...Is,
|
|
1349
|
-
...
|
|
1350
|
+
...Ln,
|
|
1350
1351
|
...Nn,
|
|
1351
|
-
...Mn,
|
|
1352
|
-
...Dn,
|
|
1353
1352
|
...Fn,
|
|
1353
|
+
...Mn,
|
|
1354
|
+
...Ts,
|
|
1354
1355
|
...Ls,
|
|
1355
|
-
...
|
|
1356
|
-
...
|
|
1356
|
+
...Tn,
|
|
1357
|
+
...Vr,
|
|
1357
1358
|
...Ur,
|
|
1358
|
-
...
|
|
1359
|
-
|
|
1360
|
-
}, Vn = (e, t = {}) => {
|
|
1359
|
+
...Yr
|
|
1360
|
+
}, Wn = (e, t = {}) => {
|
|
1361
1361
|
const r = {}, n = {};
|
|
1362
1362
|
for (const [o, a] of Object.entries(t))
|
|
1363
1363
|
if (a != null)
|
|
1364
|
-
if (
|
|
1364
|
+
if (oa(o)) {
|
|
1365
1365
|
const i = a;
|
|
1366
|
-
n[o] = i, r[o] =
|
|
1366
|
+
n[o] = i, r[o] = ia(o, i);
|
|
1367
1367
|
} else r[o] = a;
|
|
1368
1368
|
return {
|
|
1369
1369
|
values: {
|
|
1370
|
-
...e === "dark" ?
|
|
1370
|
+
...e === "dark" ? Ns : Dn,
|
|
1371
1371
|
...r
|
|
1372
1372
|
},
|
|
1373
1373
|
fontOverrides: n
|
|
1374
1374
|
};
|
|
1375
|
-
},
|
|
1376
|
-
const { values: r, fontOverrides: n } =
|
|
1375
|
+
}, Vn = (e, t = {}) => Wn(e, t).values, Un = (e, t = {}) => {
|
|
1376
|
+
const { values: r, fontOverrides: n } = Wn(e, t), o = ge(r.legendPillPaddingInline, 8), a = ge(r.legendPillPaddingBlock, 2), i = ge(r.legendPillBorderWidth, 1);
|
|
1377
1377
|
return {
|
|
1378
1378
|
legendSwatchWidth: ge(r.legendSwatchWidth, 10),
|
|
1379
1379
|
legendSwatchHeight: ge(r.legendSwatchHeight, 12),
|
|
@@ -1384,29 +1384,29 @@ var ss = "_1suo8ub0", Bn = (e, t, r) => {
|
|
|
1384
1384
|
legendPillHorizontalChrome: 2 * (o + i),
|
|
1385
1385
|
legendPillVerticalChrome: 2 * (a + i),
|
|
1386
1386
|
headlineRowGap: ge(r.headlineRowGap, 2),
|
|
1387
|
-
fonts:
|
|
1387
|
+
fonts: Cs(r, n)
|
|
1388
1388
|
};
|
|
1389
|
-
},
|
|
1389
|
+
}, Ms = Object.freeze(Un("light"));
|
|
1390
1390
|
function ge(e, t) {
|
|
1391
1391
|
const r = e.trim();
|
|
1392
1392
|
if (!/^-?\d*\.?\d+(px)?$/.test(r)) return t;
|
|
1393
1393
|
const n = Number.parseFloat(r);
|
|
1394
1394
|
return Number.isFinite(n) ? n : t;
|
|
1395
1395
|
}
|
|
1396
|
-
var
|
|
1396
|
+
var Qn = U(Ms), Fs = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provider, {
|
|
1397
1397
|
value: e,
|
|
1398
1398
|
children: t
|
|
1399
|
-
}), me = () => D(
|
|
1399
|
+
}), me = () => D(Qn), T = () => {
|
|
1400
1400
|
const { colorScheme: e } = z(), t = C((r) => r.chrome);
|
|
1401
1401
|
return m(() => gt({ colorScheme: e }).chromeReaders(t), [t, e]);
|
|
1402
|
-
},
|
|
1402
|
+
}, Ds = (e) => {
|
|
1403
1403
|
const t = T(), r = C((n) => n.config.appearance.textScale);
|
|
1404
|
-
return m(() =>
|
|
1404
|
+
return m(() => mi(t, e, r), [
|
|
1405
1405
|
t,
|
|
1406
1406
|
e,
|
|
1407
1407
|
r
|
|
1408
1408
|
]);
|
|
1409
|
-
},
|
|
1409
|
+
}, Hs = /\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu, Yn = "😀", Os = class Kn {
|
|
1410
1410
|
constructor() {
|
|
1411
1411
|
this.emojiCorrections = /* @__PURE__ */ new Map(), this.currentFont = "";
|
|
1412
1412
|
const t = new OffscreenCanvas(1, 1).getContext("2d");
|
|
@@ -1414,14 +1414,14 @@ var Yn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Yn.Provi
|
|
|
1414
1414
|
this.ctx = t;
|
|
1415
1415
|
}
|
|
1416
1416
|
static async create() {
|
|
1417
|
-
return typeof document < "u" && "fonts" in document && await document.fonts.ready, new
|
|
1417
|
+
return typeof document < "u" && "fonts" in document && await document.fonts.ready, new Kn();
|
|
1418
1418
|
}
|
|
1419
1419
|
measureText(t, r) {
|
|
1420
|
-
const n =
|
|
1420
|
+
const n = Sa(r);
|
|
1421
1421
|
this.setFont(n);
|
|
1422
1422
|
const { width: o, fontBoundingBoxAscent: a, fontBoundingBoxDescent: i } = this.ctx.measureText(t);
|
|
1423
1423
|
let l = o;
|
|
1424
|
-
const c =
|
|
1424
|
+
const c = Gs(t);
|
|
1425
1425
|
if (c > 0) {
|
|
1426
1426
|
const d = this.getEmojiCorrection(n);
|
|
1427
1427
|
l -= d * c;
|
|
@@ -1440,7 +1440,7 @@ var Yn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Yn.Provi
|
|
|
1440
1440
|
const r = this.emojiCorrections.get(t);
|
|
1441
1441
|
if (r !== void 0) return r;
|
|
1442
1442
|
this.setFont(t);
|
|
1443
|
-
const n = this.ctx.measureText(
|
|
1443
|
+
const n = this.ctx.measureText(Yn).width, o = Ws(t);
|
|
1444
1444
|
let a = 0;
|
|
1445
1445
|
if (o !== null) {
|
|
1446
1446
|
const i = n - o;
|
|
@@ -1448,40 +1448,40 @@ var Yn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Yn.Provi
|
|
|
1448
1448
|
}
|
|
1449
1449
|
return this.emojiCorrections.set(t, a), a;
|
|
1450
1450
|
}
|
|
1451
|
-
}, ae = null,
|
|
1452
|
-
const t = e.match(
|
|
1451
|
+
}, ae = null, Gs = (e) => {
|
|
1452
|
+
const t = e.match(Hs);
|
|
1453
1453
|
return t ? t.length : 0;
|
|
1454
|
-
},
|
|
1455
|
-
const t =
|
|
1454
|
+
}, Ws = (e) => {
|
|
1455
|
+
const t = Vs();
|
|
1456
1456
|
return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
|
|
1457
|
-
},
|
|
1457
|
+
}, Vs = () => typeof document > "u" ? null : (ae || (ae = document.createElement("span"), ae.style.position = "absolute", ae.style.visibility = "hidden", ae.style.whiteSpace = "nowrap", ae.style.left = "-9999px", ae.textContent = Yn, document.body.appendChild(ae)), ae), zn = U(null), Us = ({ children: e, measurer: t }) => {
|
|
1458
1458
|
const [r, n] = G(null);
|
|
1459
1459
|
F(() => {
|
|
1460
1460
|
if (t !== void 0) return;
|
|
1461
1461
|
let a = !1;
|
|
1462
1462
|
const i = () => {
|
|
1463
|
-
a || n(
|
|
1463
|
+
a || n(Qs());
|
|
1464
1464
|
};
|
|
1465
1465
|
return (async () => (typeof document < "u" && "fonts" in document && await document.fonts.ready, i()))(), typeof document < "u" && "fonts" in document && document.fonts.addEventListener("loadingdone", i), () => {
|
|
1466
1466
|
a = !0, typeof document < "u" && "fonts" in document && document.fonts.removeEventListener("loadingdone", i);
|
|
1467
1467
|
};
|
|
1468
1468
|
}, [t]);
|
|
1469
1469
|
const o = t ?? r;
|
|
1470
|
-
return o === null ? null : /* @__PURE__ */ s(
|
|
1470
|
+
return o === null ? null : /* @__PURE__ */ s(zn.Provider, {
|
|
1471
1471
|
value: o,
|
|
1472
1472
|
children: e
|
|
1473
1473
|
});
|
|
1474
1474
|
}, Ae = () => {
|
|
1475
|
-
const e = D(
|
|
1475
|
+
const e = D(zn);
|
|
1476
1476
|
if (e === null) throw new Error("useTextMeasurer must be used inside a <TextMeasurerProvider>.");
|
|
1477
1477
|
return e;
|
|
1478
|
-
},
|
|
1478
|
+
}, Qs = () => {
|
|
1479
1479
|
try {
|
|
1480
|
-
return new ur(new
|
|
1480
|
+
return new ur(new Os());
|
|
1481
1481
|
} catch {
|
|
1482
|
-
return new ur(new
|
|
1482
|
+
return new ur(new ha());
|
|
1483
1483
|
}
|
|
1484
|
-
},
|
|
1484
|
+
}, jn = U(null), vf = jn.Provider, Ys = null, ce = () => D(jn) ?? (Ys ??= Gl()), Ks = "_16vokpr0", zs = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), js = (e, t) => {
|
|
1485
1485
|
const r = k(e ? 1 - t : t);
|
|
1486
1486
|
return e ? {
|
|
1487
1487
|
x1: "0%",
|
|
@@ -1494,22 +1494,22 @@ var Yn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Yn.Provi
|
|
|
1494
1494
|
x2: r,
|
|
1495
1495
|
y2: "100%"
|
|
1496
1496
|
};
|
|
1497
|
-
},
|
|
1498
|
-
const r =
|
|
1497
|
+
}, Xs = (e, t) => {
|
|
1498
|
+
const r = za(e, t);
|
|
1499
1499
|
return r.length === 0 ? {} : {
|
|
1500
1500
|
strokeDasharray: r.join(" "),
|
|
1501
1501
|
strokeLinecap: "round",
|
|
1502
1502
|
...e === "dashed" ? { strokeMiterlimit: 16 } : {}
|
|
1503
1503
|
};
|
|
1504
|
-
},
|
|
1505
|
-
value: e ??
|
|
1504
|
+
}, qs = (e, t) => rt(e) && rt(t) ? `${e}: ${t}` : rt(e) ? e : rt(t) ? t : null, rt = (e) => e != null && e.trim() !== "", Xn = Object.freeze({}), Zt = U(Xn), Js = ({ slots: e, children: t }) => /* @__PURE__ */ s(Zt.Provider, {
|
|
1505
|
+
value: e ?? Xn,
|
|
1506
1506
|
children: t
|
|
1507
1507
|
});
|
|
1508
1508
|
function ee(e, t) {
|
|
1509
1509
|
const r = D(Zt)[e];
|
|
1510
|
-
return r === void 0 ? t : typeof r == "object" &&
|
|
1510
|
+
return r === void 0 ? t : typeof r == "object" && $s(r) ? r.render : r;
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function Zs() {
|
|
1513
1513
|
const e = D(Zt);
|
|
1514
1514
|
return {
|
|
1515
1515
|
measureAxis: e.AxisTicks?.measure,
|
|
@@ -1519,18 +1519,18 @@ function $s() {
|
|
|
1519
1519
|
measureHeadlineItemWidths: e.Headline?.measure.measureHeadlineItemWidths
|
|
1520
1520
|
};
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function $s(e) {
|
|
1523
1523
|
return "render" in e && "measure" in e;
|
|
1524
1524
|
}
|
|
1525
|
-
var
|
|
1526
|
-
className:
|
|
1525
|
+
var _s = "_2qyyu60", el = 2, tl = 12, rl = 12, br = 1, wr = 2, nl = 4, Xe = (e) => /* @__PURE__ */ s(ee("Swatch", ol), { ...e }), ol = ({ shape: e, color: t, lineType: r = "solid", width: n = tl, height: o = rl, strokeWidth: a = el }) => /* @__PURE__ */ s("svg", {
|
|
1526
|
+
className: _s,
|
|
1527
1527
|
width: n,
|
|
1528
1528
|
height: o,
|
|
1529
1529
|
viewBox: `0 0 ${n} ${o}`,
|
|
1530
1530
|
"aria-hidden": !0,
|
|
1531
1531
|
"data-testid": "chart-swatch",
|
|
1532
1532
|
"data-shape": e,
|
|
1533
|
-
children:
|
|
1533
|
+
children: al({
|
|
1534
1534
|
shape: e,
|
|
1535
1535
|
color: t,
|
|
1536
1536
|
lineType: r,
|
|
@@ -1538,8 +1538,8 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1538
1538
|
height: o,
|
|
1539
1539
|
strokeWidth: a
|
|
1540
1540
|
})
|
|
1541
|
-
}),
|
|
1542
|
-
const i =
|
|
1541
|
+
}), al = ({ shape: e, color: t, lineType: r, width: n, height: o, strokeWidth: a }) => {
|
|
1542
|
+
const i = il(r, n);
|
|
1543
1543
|
switch (e) {
|
|
1544
1544
|
case "square":
|
|
1545
1545
|
return /* @__PURE__ */ s("rect", {
|
|
@@ -1596,7 +1596,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1596
1596
|
fill: t
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
|
-
},
|
|
1599
|
+
}, il = (e, t) => e === "solid" ? {
|
|
1600
1600
|
x1: 0,
|
|
1601
1601
|
x2: t,
|
|
1602
1602
|
dashArray: void 0,
|
|
@@ -1609,19 +1609,19 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1609
1609
|
} : {
|
|
1610
1610
|
x1: 0,
|
|
1611
1611
|
x2: t,
|
|
1612
|
-
dashArray: `1 ${t / (
|
|
1612
|
+
dashArray: `1 ${t / (nl - 1)}`,
|
|
1613
1613
|
linecap: "round"
|
|
1614
1614
|
}, he = (e) => ({
|
|
1615
|
-
fontFamily: e.fontFamily ??
|
|
1615
|
+
fontFamily: e.fontFamily ?? Kr,
|
|
1616
1616
|
fontSize: e.fontSize,
|
|
1617
1617
|
fontWeight: e.fontWeight
|
|
1618
1618
|
}), ke = (e) => ({
|
|
1619
|
-
fontFamily: e.fontFamily ??
|
|
1619
|
+
fontFamily: e.fontFamily ?? Kr,
|
|
1620
1620
|
fontSize: e.fontSize,
|
|
1621
1621
|
fontWeight: e.fontWeight,
|
|
1622
1622
|
lineHeight: e.lineHeight,
|
|
1623
1623
|
color: e.textColor
|
|
1624
|
-
}),
|
|
1624
|
+
}), sl = 11.7, Sr = 21.6, ll = "0 0 10 18", cl = "M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z", dl = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a, shouldAnimateTransitions: i }) => {
|
|
1625
1625
|
const l = e === "start", c = l ? -13 : -(n - 13), d = l ? c + n - 5 : c + 5 - 12, u = l ? void 0 : `rotate(180 ${d + 12 / 2} ${o / 2})`, v = l ? "0%" : "100%", g = k(1 - t), h = /* @__PURE__ */ b("g", {
|
|
1626
1626
|
transform: `translate(0, ${-o / 2})`,
|
|
1627
1627
|
pointerEvents: "none",
|
|
@@ -1641,10 +1641,10 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1641
1641
|
y: (o - Sr) / 2,
|
|
1642
1642
|
width: 12,
|
|
1643
1643
|
height: Sr,
|
|
1644
|
-
viewBox:
|
|
1644
|
+
viewBox: ll,
|
|
1645
1645
|
overflow: "visible",
|
|
1646
1646
|
children: /* @__PURE__ */ s("path", {
|
|
1647
|
-
d:
|
|
1647
|
+
d: cl,
|
|
1648
1648
|
fill: r
|
|
1649
1649
|
})
|
|
1650
1650
|
})
|
|
@@ -1668,7 +1668,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1668
1668
|
overflow: "visible",
|
|
1669
1669
|
children: h
|
|
1670
1670
|
});
|
|
1671
|
-
},
|
|
1671
|
+
}, ul = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a, shouldAnimateTransitions: i }) => {
|
|
1672
1672
|
const l = e === "start", c = l ? -13 : -(o - 13), d = k(t), u = l ? "100%" : "0%", v = /* @__PURE__ */ b("g", {
|
|
1673
1673
|
transform: `translate(${-n / 2}, 0)`,
|
|
1674
1674
|
pointerEvents: "none",
|
|
@@ -1697,8 +1697,8 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1697
1697
|
overflow: "visible",
|
|
1698
1698
|
children: v
|
|
1699
1699
|
});
|
|
1700
|
-
},
|
|
1701
|
-
const v = c === null ? 0 : 14, g = r + v + 10, h = Math.max(
|
|
1700
|
+
}, hl = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, isHorizontalLine: o, position: a, color: i, textColor: l, symbolShape: c, symbolColor: d, shouldAnimateTransitions: u }) => {
|
|
1701
|
+
const v = c === null ? 0 : 14, g = r + v + 10, h = Math.max(sl, Ye(t)) + 10, f = /* @__PURE__ */ b(P, { children: [c !== null && d !== null && /* @__PURE__ */ s("g", {
|
|
1702
1702
|
transform: `translate(0, ${-10 / 2})`,
|
|
1703
1703
|
children: /* @__PURE__ */ s(Xe, {
|
|
1704
1704
|
shape: c,
|
|
@@ -1715,7 +1715,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1715
1715
|
style: he(t),
|
|
1716
1716
|
children: e
|
|
1717
1717
|
})] });
|
|
1718
|
-
return o ? /* @__PURE__ */ s(
|
|
1718
|
+
return o ? /* @__PURE__ */ s(dl, {
|
|
1719
1719
|
labelPosition: n,
|
|
1720
1720
|
linePosition: a,
|
|
1721
1721
|
color: i,
|
|
@@ -1723,7 +1723,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1723
1723
|
pillHeight: h,
|
|
1724
1724
|
text: f,
|
|
1725
1725
|
shouldAnimateTransitions: u
|
|
1726
|
-
}) : /* @__PURE__ */ s(
|
|
1726
|
+
}) : /* @__PURE__ */ s(ul, {
|
|
1727
1727
|
labelPosition: n,
|
|
1728
1728
|
linePosition: a,
|
|
1729
1729
|
color: i,
|
|
@@ -1732,8 +1732,8 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1732
1732
|
text: f,
|
|
1733
1733
|
shouldAnimateTransitions: u
|
|
1734
1734
|
});
|
|
1735
|
-
},
|
|
1736
|
-
const i =
|
|
1735
|
+
}, vl = ({ strokeWidth: e, lineType: t, isHorizontalLine: r, position: n, lineColor: o, shouldAnimateTransitions: a }) => {
|
|
1736
|
+
const i = js(r, n), l = Xs(t, e);
|
|
1737
1737
|
return a ? /* @__PURE__ */ s(H.line, {
|
|
1738
1738
|
initial: !1,
|
|
1739
1739
|
transition: ne,
|
|
@@ -1754,17 +1754,17 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1754
1754
|
strokeWidth: e,
|
|
1755
1755
|
vectorEffect: "non-scaling-stroke"
|
|
1756
1756
|
});
|
|
1757
|
-
},
|
|
1757
|
+
}, gl = Z(function({ layer: t, coordSystem: r, formattingLocale: n, shouldAnimateTransitions: o }) {
|
|
1758
1758
|
const a = Ae(), i = ce(), { guides: l, numberFormat: c, layers: d, colorScale: u } = C(K((M) => ({
|
|
1759
1759
|
guides: M.guides,
|
|
1760
1760
|
numberFormat: M.config.numberFormat,
|
|
1761
1761
|
layers: M.spec.layers,
|
|
1762
1762
|
colorScale: M.scales.color
|
|
1763
|
-
}))), v = m(() =>
|
|
1763
|
+
}))), v = m(() => xa(d, u).get(t.id) ?? null, [
|
|
1764
1764
|
d,
|
|
1765
1765
|
u,
|
|
1766
1766
|
t.id
|
|
1767
|
-
]), g = v ? i(v.geom, r.type)?.swatchShape ?? "square" : null, h = m(() =>
|
|
1767
|
+
]), g = v ? i(v.geom, r.type)?.swatchShape ?? "square" : null, h = m(() => qs(t.params.label, Va({
|
|
1768
1768
|
guides: l,
|
|
1769
1769
|
numberFormat: c,
|
|
1770
1770
|
layer: t,
|
|
@@ -1774,24 +1774,24 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1774
1774
|
c,
|
|
1775
1775
|
n,
|
|
1776
1776
|
t
|
|
1777
|
-
]), { fonts: f } = me(), A =
|
|
1777
|
+
]), { fonts: f } = me(), A = Ds(t.id), p = m(() => J(A, f.familyDefault), [A, f.familyDefault]), x = m(() => h === null ? 0 : a.measureText(h, p).width, [
|
|
1778
1778
|
h,
|
|
1779
1779
|
p,
|
|
1780
1780
|
a
|
|
1781
1781
|
]), w = L(t), S = t.data.getFirst();
|
|
1782
1782
|
if (!S) return null;
|
|
1783
|
-
const R = w.get("color", S), N =
|
|
1783
|
+
const R = w.get("color", S), N = on(R), E = zs(t, r), I = E ? te(S) : X(S);
|
|
1784
1784
|
return I === null ? null : /* @__PURE__ */ b("g", {
|
|
1785
1785
|
"data-geom": "rule",
|
|
1786
|
-
className:
|
|
1787
|
-
children: [/* @__PURE__ */ s(
|
|
1786
|
+
className: Ks,
|
|
1787
|
+
children: [/* @__PURE__ */ s(vl, {
|
|
1788
1788
|
strokeWidth: w.get("strokeWidth", S),
|
|
1789
1789
|
lineType: w.get("lineType", S),
|
|
1790
1790
|
isHorizontalLine: E,
|
|
1791
1791
|
position: I,
|
|
1792
1792
|
lineColor: R,
|
|
1793
1793
|
shouldAnimateTransitions: o
|
|
1794
|
-
}), h !== null && /* @__PURE__ */ s(
|
|
1794
|
+
}), h !== null && /* @__PURE__ */ s(hl, {
|
|
1795
1795
|
label: h,
|
|
1796
1796
|
textStyle: A,
|
|
1797
1797
|
textWidth: x,
|
|
@@ -1805,10 +1805,10 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1805
1805
|
shouldAnimateTransitions: o
|
|
1806
1806
|
})]
|
|
1807
1807
|
});
|
|
1808
|
-
}),
|
|
1808
|
+
}), fl = {
|
|
1809
1809
|
geom: "rule",
|
|
1810
1810
|
coord: "cartesian",
|
|
1811
|
-
render: ({ layer: e, coordSystem: t, formattingLocale: r, shouldAnimateTransitions: n }) => /* @__PURE__ */ s(
|
|
1811
|
+
render: ({ layer: e, coordSystem: t, formattingLocale: r, shouldAnimateTransitions: n }) => /* @__PURE__ */ s(gl, {
|
|
1812
1812
|
layer: e,
|
|
1813
1813
|
coordSystem: t,
|
|
1814
1814
|
formattingLocale: r,
|
|
@@ -1816,19 +1816,19 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1816
1816
|
}),
|
|
1817
1817
|
renderHover: () => null,
|
|
1818
1818
|
renderHoverCompanions: () => null
|
|
1819
|
-
},
|
|
1819
|
+
}, pl = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1820
1820
|
const o = n?.type === "fade" ? n : null, a = L(t), i = m(() => {
|
|
1821
|
-
const l =
|
|
1821
|
+
const l = Ha(t.data, t.mapping, t.id), c = [];
|
|
1822
1822
|
for (const d of t.data) {
|
|
1823
|
-
const u =
|
|
1824
|
-
u &&
|
|
1823
|
+
const u = en(d);
|
|
1824
|
+
u && _r(d) && c.push({
|
|
1825
1825
|
key: l(d),
|
|
1826
1826
|
...u,
|
|
1827
1827
|
fill: a.get("color", d),
|
|
1828
1828
|
opacity: a.get("alpha", d)
|
|
1829
1829
|
});
|
|
1830
1830
|
}
|
|
1831
|
-
return c.map(({ key: d, ...u }) => /* @__PURE__ */ s(
|
|
1831
|
+
return c.map(({ key: d, ...u }) => /* @__PURE__ */ s(ml, {
|
|
1832
1832
|
...u,
|
|
1833
1833
|
isAnimated: r
|
|
1834
1834
|
}, d));
|
|
@@ -1840,10 +1840,10 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1840
1840
|
return o ? /* @__PURE__ */ s(H.g, {
|
|
1841
1841
|
initial: { opacity: 0 },
|
|
1842
1842
|
animate: { opacity: 1 },
|
|
1843
|
-
transition:
|
|
1843
|
+
transition: Vi(o),
|
|
1844
1844
|
children: i
|
|
1845
1845
|
}) : i;
|
|
1846
|
-
}),
|
|
1846
|
+
}), ml = ({ isAnimated: e, ...t }) => e ? /* @__PURE__ */ s(H.rect, {
|
|
1847
1847
|
initial: !1,
|
|
1848
1848
|
style: { transformBox: "view-box" },
|
|
1849
1849
|
transition: ne,
|
|
@@ -1865,9 +1865,9 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1865
1865
|
fill: t.fill,
|
|
1866
1866
|
opacity: t.opacity,
|
|
1867
1867
|
rx: 8
|
|
1868
|
-
}), Fe = 2,
|
|
1869
|
-
const n = L(e), o =
|
|
1870
|
-
if (!o || !
|
|
1868
|
+
}), Fe = 2, Al = ({ layer: e, primary: t, panelRect: r }) => {
|
|
1869
|
+
const n = L(e), o = en(t.observation);
|
|
1870
|
+
if (!o || !_r(t.observation)) return null;
|
|
1871
1871
|
const a = n.get("color", t.observation), i = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ?? vt, c = o.x * r.width, d = o.y * r.height, u = o.width * r.width, v = o.height * r.height;
|
|
1872
1872
|
return /* @__PURE__ */ b("g", {
|
|
1873
1873
|
"data-testid": "hovered-tile",
|
|
@@ -1890,17 +1890,17 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1890
1890
|
"data-testid": "hovered-tile-fill"
|
|
1891
1891
|
})]
|
|
1892
1892
|
});
|
|
1893
|
-
},
|
|
1893
|
+
}, yl = {
|
|
1894
1894
|
geom: "tile",
|
|
1895
1895
|
coord: "cartesian",
|
|
1896
1896
|
swatchShape: "square",
|
|
1897
1897
|
guideMode: null,
|
|
1898
|
-
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(
|
|
1898
|
+
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(pl, {
|
|
1899
1899
|
layer: e,
|
|
1900
1900
|
shouldAnimateTransitions: t,
|
|
1901
1901
|
intro: r
|
|
1902
1902
|
}),
|
|
1903
|
-
renderHover: ({ layer: e, primary: t, panelRect: r }) => /* @__PURE__ */ s(
|
|
1903
|
+
renderHover: ({ layer: e, primary: t, panelRect: r }) => /* @__PURE__ */ s(Al, {
|
|
1904
1904
|
layer: e,
|
|
1905
1905
|
primary: t,
|
|
1906
1906
|
panelRect: r
|
|
@@ -1923,11 +1923,11 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1923
1923
|
if (!t) return "";
|
|
1924
1924
|
const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
|
|
1925
1925
|
return `M ${t.x} ${t.y} ${n} Z`;
|
|
1926
|
-
},
|
|
1926
|
+
}, xl = Z(function({ layer: t }) {
|
|
1927
1927
|
const r = L(t), n = m(() => {
|
|
1928
1928
|
const o = oe(t.data, t.mapping, t.id), a = [];
|
|
1929
1929
|
return t.data.groupBy(le.group).forEach((i) => {
|
|
1930
|
-
const l = [...i], c =
|
|
1930
|
+
const l = [...i], c = qn(l);
|
|
1931
1931
|
if (!c) return;
|
|
1932
1932
|
const d = l[0];
|
|
1933
1933
|
d && a.push({
|
|
@@ -1967,7 +1967,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1967
1967
|
vectorEffect: "non-scaling-stroke"
|
|
1968
1968
|
})] }, o.key))
|
|
1969
1969
|
});
|
|
1970
|
-
}),
|
|
1970
|
+
}), qn = (e) => {
|
|
1971
1971
|
const t = [];
|
|
1972
1972
|
for (const a of e) {
|
|
1973
1973
|
const i = X(a), { innerRadius: l, outerRadius: c } = pt(a);
|
|
@@ -1984,8 +1984,8 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1984
1984
|
fillPath: n.some((a) => a.x !== 0 || a.y !== 0) ? `${o} ${Ht([...n].reverse())}` : o,
|
|
1985
1985
|
outlinePath: o
|
|
1986
1986
|
};
|
|
1987
|
-
},
|
|
1988
|
-
const n = L(e), o = ft(t.observation), a = m(() =>
|
|
1987
|
+
}, bl = ({ layer: e, primary: t, companions: r }) => {
|
|
1988
|
+
const n = L(e), o = ft(t.observation), a = m(() => qn([...e.data.filter(le.group, "eq", o)]), [e.data, o]);
|
|
1989
1989
|
if (!a) return null;
|
|
1990
1990
|
const i = n.get("color", t.observation), l = n.get("alpha", t.observation), c = n.get("strokeAlpha", t.observation), d = n.get("strokeWidth", t.observation);
|
|
1991
1991
|
return /* @__PURE__ */ b(P, { children: [
|
|
@@ -2023,20 +2023,20 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2023
2023
|
"data-testid": "hovered-area-point"
|
|
2024
2024
|
})
|
|
2025
2025
|
] });
|
|
2026
|
-
},
|
|
2026
|
+
}, wl = {
|
|
2027
2027
|
geom: "area",
|
|
2028
2028
|
coord: "polar",
|
|
2029
2029
|
swatchShape: "area",
|
|
2030
2030
|
guideMode: "crosshair",
|
|
2031
|
-
render: ({ layer: e }) => /* @__PURE__ */ s(
|
|
2032
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s(
|
|
2031
|
+
render: ({ layer: e }) => /* @__PURE__ */ s(xl, { layer: e }),
|
|
2032
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s(bl, {
|
|
2033
2033
|
layer: e,
|
|
2034
2034
|
primary: t,
|
|
2035
2035
|
companions: [...r, ...n]
|
|
2036
2036
|
}),
|
|
2037
2037
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(dt, { companions: e }),
|
|
2038
2038
|
getOverlayAnchor: ({ observation: e }) => {
|
|
2039
|
-
const t = X(e), r =
|
|
2039
|
+
const t = X(e), r = tn(e) ?? te(e);
|
|
2040
2040
|
if (t === null || r === null) return null;
|
|
2041
2041
|
const { x: n, y: o } = re(t, r);
|
|
2042
2042
|
return {
|
|
@@ -2048,7 +2048,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2048
2048
|
stroke: e,
|
|
2049
2049
|
strokeWidth: t,
|
|
2050
2050
|
vectorEffect: "non-scaling-stroke"
|
|
2051
|
-
}),
|
|
2051
|
+
}), Sl = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
2052
2052
|
const a = V(), i = mt(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), l = r.bandAxis !== "x", c = L(t), d = m(() => {
|
|
2053
2053
|
const u = oe(t.data, t.mapping, t.id), v = /* @__PURE__ */ new Map();
|
|
2054
2054
|
for (const g of t.data) {
|
|
@@ -2071,7 +2071,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2071
2071
|
return [...v.values()].map(({ items: g, style: h }, f) => ({
|
|
2072
2072
|
key: g[0]?.key ?? String(f),
|
|
2073
2073
|
items: g,
|
|
2074
|
-
union:
|
|
2074
|
+
union: Ja(g),
|
|
2075
2075
|
style: h
|
|
2076
2076
|
}));
|
|
2077
2077
|
}, [
|
|
@@ -2091,7 +2091,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2091
2091
|
children: d.map((u, v) => {
|
|
2092
2092
|
const { borderColor: g, borderWidth: h, borderRadius: f, borderAlpha: A } = u.style, p = g !== void 0, x = ze(h), w = g === void 0 ? {} : Oe(g, x.separatorWidth), S = g === void 0 ? void 0 : Oe(g, x.outlineWidth), R = u.items.map((M) => {
|
|
2093
2093
|
const { key: W, ...Y } = M;
|
|
2094
|
-
return i.isAnimated ? /* @__PURE__ */ s(
|
|
2094
|
+
return i.isAnimated ? /* @__PURE__ */ s(kl, {
|
|
2095
2095
|
...Y,
|
|
2096
2096
|
animation: i,
|
|
2097
2097
|
sweepsInOnLateMount: l,
|
|
@@ -2107,12 +2107,12 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2107
2107
|
opacity: Y.opacity,
|
|
2108
2108
|
...w
|
|
2109
2109
|
}, W);
|
|
2110
|
-
}), N =
|
|
2110
|
+
}), N = vn(f, u.union.outerRadius - u.union.innerRadius);
|
|
2111
2111
|
if (!p && N <= 0) return /* @__PURE__ */ s(jt, { children: R }, u.key);
|
|
2112
2112
|
const E = `${a}${v}`;
|
|
2113
2113
|
if (i.isAnimated) return /* @__PURE__ */ s("g", {
|
|
2114
2114
|
clipPath: `url(#${E})`,
|
|
2115
|
-
children: /* @__PURE__ */ s(
|
|
2115
|
+
children: /* @__PURE__ */ s(Rl, {
|
|
2116
2116
|
...u.union,
|
|
2117
2117
|
cornerRadius: N,
|
|
2118
2118
|
animation: i,
|
|
@@ -2146,7 +2146,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2146
2146
|
}, u.key);
|
|
2147
2147
|
})
|
|
2148
2148
|
});
|
|
2149
|
-
}),
|
|
2149
|
+
}), Jn = ({ startAngle: e, endAngle: t, innerRadius: r, outerRadius: n, cornerRadius: o, animation: a, sweepsInOnLateMount: i, introKey: l }) => {
|
|
2150
2150
|
const c = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, d = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, u = i && !a.isLayerEntrance, v = c?.baseline ?? (u ? hr : e), g = c?.baseline ?? (u ? hr : t), h = d ? d.baseline : r, f = d ? d.baseline : n, A = _(v), p = _(g), x = _(h), w = _(f), S = _(pe({
|
|
2151
2151
|
startAngle: v,
|
|
2152
2152
|
endAngle: g,
|
|
@@ -2206,15 +2206,15 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2206
2206
|
o,
|
|
2207
2207
|
S
|
|
2208
2208
|
]), S;
|
|
2209
|
-
},
|
|
2210
|
-
const r =
|
|
2209
|
+
}, kl = ({ pathProps: e, ...t }) => {
|
|
2210
|
+
const r = Jn(t);
|
|
2211
2211
|
return /* @__PURE__ */ s(H.path, {
|
|
2212
2212
|
d: r,
|
|
2213
2213
|
transition: ne,
|
|
2214
2214
|
...e
|
|
2215
2215
|
});
|
|
2216
|
-
},
|
|
2217
|
-
const a =
|
|
2216
|
+
}, Rl = ({ clipId: e, outlineProps: t, outlineOpacity: r, children: n, ...o }) => {
|
|
2217
|
+
const a = Jn(o);
|
|
2218
2218
|
return /* @__PURE__ */ b(P, { children: [
|
|
2219
2219
|
/* @__PURE__ */ s("clipPath", {
|
|
2220
2220
|
id: e,
|
|
@@ -2229,7 +2229,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2229
2229
|
...t
|
|
2230
2230
|
})
|
|
2231
2231
|
] });
|
|
2232
|
-
},
|
|
2232
|
+
}, Cl = (e, t) => {
|
|
2233
2233
|
const r = e === "solo" || e === "floor", n = e === "solo" || e === "ceiling";
|
|
2234
2234
|
return t === "x" ? {
|
|
2235
2235
|
innerArc: r,
|
|
@@ -2242,10 +2242,10 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2242
2242
|
startSpoke: r,
|
|
2243
2243
|
endSpoke: n
|
|
2244
2244
|
};
|
|
2245
|
-
},
|
|
2245
|
+
}, Zn = (e, t, r) => {
|
|
2246
2246
|
const n = /* @__PURE__ */ new Map();
|
|
2247
2247
|
for (const a of e.data) {
|
|
2248
|
-
const i =
|
|
2248
|
+
const i = eo(a);
|
|
2249
2249
|
if (i === null) continue;
|
|
2250
2250
|
const l = Ut(t, i), c = n.get(l);
|
|
2251
2251
|
c === void 0 ? n.set(l, {
|
|
@@ -2260,13 +2260,13 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2260
2260
|
radialSpan: c - l
|
|
2261
2261
|
});
|
|
2262
2262
|
return o;
|
|
2263
|
-
},
|
|
2264
|
-
const o =
|
|
2263
|
+
}, $n = (e, t, r, n) => {
|
|
2264
|
+
const o = eo(n), a = o === null ? void 0 : e.get(Ut(t, o));
|
|
2265
2265
|
return a !== void 0 ? a : {
|
|
2266
2266
|
style: Ie(r, n),
|
|
2267
2267
|
radialSpan: o === null ? 0 : o.outerRadius - o.innerRadius
|
|
2268
2268
|
};
|
|
2269
|
-
},
|
|
2269
|
+
}, _n = ({ observation: e, bandAxis: t, styleReaders: r, group: n }) => {
|
|
2270
2270
|
const o = V(), a = V(), { startAngle: i, endAngle: l } = Qt(e), { innerRadius: c, outerRadius: d } = pt(e);
|
|
2271
2271
|
if (i === null || l === null || c === null || d === null) return null;
|
|
2272
2272
|
const u = {
|
|
@@ -2276,20 +2276,20 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2276
2276
|
outerRadius: d
|
|
2277
2277
|
}, v = pe(u);
|
|
2278
2278
|
if (v === void 0) return null;
|
|
2279
|
-
const g = r.get("color", e), h = r.get("alpha", e), { borderColor: f, borderWidth: A, borderRadius: p, borderAlpha: x } = n.style, w =
|
|
2279
|
+
const g = r.get("color", e), h = r.get("alpha", e), { borderColor: f, borderWidth: A, borderRadius: p, borderAlpha: x } = n.style, w = vn(p, n.radialSpan), S = w > 0;
|
|
2280
2280
|
if (f === void 0 && !S) return /* @__PURE__ */ s("path", {
|
|
2281
2281
|
d: v,
|
|
2282
2282
|
fill: g,
|
|
2283
2283
|
opacity: h,
|
|
2284
2284
|
"data-testid": "arc-segment"
|
|
2285
2285
|
});
|
|
2286
|
-
const R =
|
|
2287
|
-
...
|
|
2286
|
+
const R = Cl(qa(e), t), N = S ? pe({
|
|
2287
|
+
...Pl(u, R, w),
|
|
2288
2288
|
cornerRadius: w
|
|
2289
2289
|
}) ?? v : v, E = f === void 0 ? null : {
|
|
2290
2290
|
color: f,
|
|
2291
2291
|
...ze(A)
|
|
2292
|
-
}, I = E === null ? "" : Cr(u,
|
|
2292
|
+
}, I = E === null ? "" : Cr(u, Bl(R));
|
|
2293
2293
|
return /* @__PURE__ */ b("g", {
|
|
2294
2294
|
clipPath: `url(#${o})`,
|
|
2295
2295
|
"data-testid": "arc-segment",
|
|
@@ -2328,17 +2328,17 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2328
2328
|
}))
|
|
2329
2329
|
]
|
|
2330
2330
|
});
|
|
2331
|
-
},
|
|
2332
|
-
const n = L(t), o = m(() =>
|
|
2331
|
+
}, El = ({ layer: e, sourceLayer: t, coordSystem: r }) => {
|
|
2332
|
+
const n = L(t), o = m(() => Zn(t, r.bandAxis, n), [
|
|
2333
2333
|
t,
|
|
2334
2334
|
r.bandAxis,
|
|
2335
2335
|
n
|
|
2336
2336
|
]), a = oe(e.data, e.mapping, e.id), i = [];
|
|
2337
|
-
for (const l of e.data) i.push(/* @__PURE__ */ s(
|
|
2337
|
+
for (const l of e.data) i.push(/* @__PURE__ */ s(_n, {
|
|
2338
2338
|
observation: l,
|
|
2339
2339
|
bandAxis: r.bandAxis,
|
|
2340
2340
|
styleReaders: n,
|
|
2341
|
-
group:
|
|
2341
|
+
group: $n(o, r.bandAxis, n, l)
|
|
2342
2342
|
}, a(l)));
|
|
2343
2343
|
return /* @__PURE__ */ s("svg", {
|
|
2344
2344
|
viewBox: "-1 -1 2 2",
|
|
@@ -2349,7 +2349,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2349
2349
|
className: $,
|
|
2350
2350
|
children: i
|
|
2351
2351
|
});
|
|
2352
|
-
},
|
|
2352
|
+
}, Pl = (e, t, r) => {
|
|
2353
2353
|
let { startAngle: n, endAngle: o, innerRadius: a, outerRadius: i } = e;
|
|
2354
2354
|
t.innerArc || (a = Math.max(0, a - r)), t.outerArc || (i = i + r);
|
|
2355
2355
|
const l = Math.max(a, r), c = l > 0 ? r / l : 0, d = Math.sign(o - n) || 1;
|
|
@@ -2359,7 +2359,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2359
2359
|
innerRadius: a,
|
|
2360
2360
|
outerRadius: i
|
|
2361
2361
|
};
|
|
2362
|
-
},
|
|
2362
|
+
}, eo = (e) => {
|
|
2363
2363
|
const { startAngle: t, endAngle: r } = Qt(e), { innerRadius: n, outerRadius: o } = pt(e);
|
|
2364
2364
|
return t === null || r === null || n === null || o === null ? null : {
|
|
2365
2365
|
startAngle: t,
|
|
@@ -2373,24 +2373,24 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2373
2373
|
}, kr = (e, t, r) => {
|
|
2374
2374
|
if (e <= 0) return "";
|
|
2375
2375
|
const n = Ge(e, t);
|
|
2376
|
-
if (
|
|
2376
|
+
if (nn(t, r)) return `M${n}A${e},${e} 0 1 1 ${Ge(e, t + Math.PI)}A${e},${e} 0 1 1 ${n}`;
|
|
2377
2377
|
const o = r - t;
|
|
2378
2378
|
return `M${n}A${e},${e} 0 ${Math.abs(o) > Math.PI ? 1 : 0} ${o >= 0 ? 1 : 0} ${Ge(e, r)}`;
|
|
2379
2379
|
}, Rr = (e, t, r) => `M${Ge(t, e)}L${Ge(r, e)}`, Cr = (e, t) => {
|
|
2380
|
-
const { startAngle: r, endAngle: n, innerRadius: o, outerRadius: a } = e, i =
|
|
2380
|
+
const { startAngle: r, endAngle: n, innerRadius: o, outerRadius: a } = e, i = nn(r, n);
|
|
2381
2381
|
return [
|
|
2382
2382
|
t.innerArc ? kr(o, r, n) : "",
|
|
2383
2383
|
t.outerArc ? kr(a, r, n) : "",
|
|
2384
2384
|
t.startSpoke && !i ? Rr(r, o, a) : "",
|
|
2385
2385
|
t.endSpoke && !i ? Rr(n, o, a) : ""
|
|
2386
2386
|
].filter(Boolean).join("");
|
|
2387
|
-
},
|
|
2387
|
+
}, Bl = (e) => ({
|
|
2388
2388
|
innerArc: !e.innerArc,
|
|
2389
2389
|
outerArc: !e.outerArc,
|
|
2390
2390
|
startSpoke: !e.startSpoke,
|
|
2391
2391
|
endSpoke: !e.endSpoke
|
|
2392
|
-
}),
|
|
2393
|
-
const n = L(e), o =
|
|
2392
|
+
}), Il = ({ layer: e, coordSystem: t, primary: r }) => {
|
|
2393
|
+
const n = L(e), o = $n(m(() => Zn(e, t.bandAxis, n), [
|
|
2394
2394
|
e,
|
|
2395
2395
|
t.bandAxis,
|
|
2396
2396
|
n
|
|
@@ -2403,40 +2403,40 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2403
2403
|
"data-geom": "arc",
|
|
2404
2404
|
"data-testid": "hovered-arc",
|
|
2405
2405
|
className: $,
|
|
2406
|
-
children: /* @__PURE__ */ s(
|
|
2406
|
+
children: /* @__PURE__ */ s(_n, {
|
|
2407
2407
|
observation: r.observation,
|
|
2408
2408
|
bandAxis: t.bandAxis,
|
|
2409
2409
|
styleReaders: n,
|
|
2410
2410
|
group: o
|
|
2411
2411
|
})
|
|
2412
2412
|
});
|
|
2413
|
-
},
|
|
2413
|
+
}, Tl = {
|
|
2414
2414
|
geom: "bar",
|
|
2415
2415
|
coord: "polar",
|
|
2416
2416
|
swatchShape: "slice",
|
|
2417
2417
|
guideMode: "band",
|
|
2418
|
-
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(
|
|
2418
|
+
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(Sl, {
|
|
2419
2419
|
layer: e,
|
|
2420
2420
|
coordSystem: t,
|
|
2421
2421
|
shouldAnimateTransitions: r,
|
|
2422
2422
|
intro: n
|
|
2423
2423
|
}),
|
|
2424
|
-
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r }) => /* @__PURE__ */ s(
|
|
2424
|
+
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r }) => /* @__PURE__ */ s(El, {
|
|
2425
2425
|
layer: e,
|
|
2426
2426
|
sourceLayer: t,
|
|
2427
2427
|
coordSystem: r
|
|
2428
2428
|
}),
|
|
2429
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r }) => /* @__PURE__ */ s(
|
|
2429
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r }) => /* @__PURE__ */ s(Il, {
|
|
2430
2430
|
layer: e,
|
|
2431
2431
|
coordSystem: t,
|
|
2432
2432
|
primary: r
|
|
2433
2433
|
}),
|
|
2434
2434
|
renderHoverCompanions: () => null
|
|
2435
|
-
},
|
|
2435
|
+
}, Ll = Z(function({ layer: t }) {
|
|
2436
2436
|
const r = L(t), n = m(() => {
|
|
2437
2437
|
const o = oe(t.data, t.mapping, t.id), a = [];
|
|
2438
2438
|
return t.data.groupBy(le.group).forEach((i) => {
|
|
2439
|
-
const l = [...i], c =
|
|
2439
|
+
const l = [...i], c = to(l);
|
|
2440
2440
|
if (!c) return;
|
|
2441
2441
|
const d = l[0];
|
|
2442
2442
|
d && a.push({
|
|
@@ -2471,7 +2471,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2471
2471
|
vectorEffect: "non-scaling-stroke"
|
|
2472
2472
|
}, o.key))
|
|
2473
2473
|
});
|
|
2474
|
-
}),
|
|
2474
|
+
}), to = (e) => {
|
|
2475
2475
|
const t = [];
|
|
2476
2476
|
for (const r of e) {
|
|
2477
2477
|
const n = X(r), o = te(r);
|
|
@@ -2481,8 +2481,8 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2481
2481
|
});
|
|
2482
2482
|
}
|
|
2483
2483
|
return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Ht(t.map((r) => r.point)));
|
|
2484
|
-
},
|
|
2485
|
-
const n = L(e), o = ft(t.observation), a = m(() =>
|
|
2484
|
+
}, Nl = ({ layer: e, primary: t, companions: r }) => {
|
|
2485
|
+
const n = L(e), o = ft(t.observation), a = m(() => to([...e.data.filter(le.group, "eq", o)]), [e.data, o]);
|
|
2486
2486
|
if (!a) return null;
|
|
2487
2487
|
const i = n.get("color", t.observation), l = n.get("alpha", t.observation), c = n.get("strokeWidth", t.observation), d = Pe(n.get("lineType", t.observation));
|
|
2488
2488
|
return /* @__PURE__ */ b(P, { children: [
|
|
@@ -2515,13 +2515,13 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2515
2515
|
"data-testid": "hovered-line-point"
|
|
2516
2516
|
})
|
|
2517
2517
|
] });
|
|
2518
|
-
},
|
|
2518
|
+
}, Ml = {
|
|
2519
2519
|
geom: "line",
|
|
2520
2520
|
coord: "polar",
|
|
2521
2521
|
swatchShape: "line",
|
|
2522
2522
|
guideMode: "crosshair",
|
|
2523
|
-
render: ({ layer: e }) => /* @__PURE__ */ s(
|
|
2524
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s(
|
|
2523
|
+
render: ({ layer: e }) => /* @__PURE__ */ s(Ll, { layer: e }),
|
|
2524
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s(Nl, {
|
|
2525
2525
|
layer: e,
|
|
2526
2526
|
primary: t,
|
|
2527
2527
|
companions: [...r, ...n]
|
|
@@ -2536,12 +2536,12 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2536
2536
|
y: 1 - o
|
|
2537
2537
|
};
|
|
2538
2538
|
}
|
|
2539
|
-
},
|
|
2539
|
+
}, Fl = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
2540
2540
|
const o = L(t), a = mt(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
2541
2541
|
return m(() => {
|
|
2542
2542
|
const i = a.activeIntro ? oe(t.data, t.mapping, t.id) : null, l = [];
|
|
2543
2543
|
let c = 0;
|
|
2544
|
-
for (const d of t.data) l.push(/* @__PURE__ */ s(
|
|
2544
|
+
for (const d of t.data) l.push(/* @__PURE__ */ s(In, {
|
|
2545
2545
|
observation: d,
|
|
2546
2546
|
project: re,
|
|
2547
2547
|
styleReaders: o,
|
|
@@ -2556,11 +2556,11 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2556
2556
|
o,
|
|
2557
2557
|
a
|
|
2558
2558
|
]);
|
|
2559
|
-
}),
|
|
2559
|
+
}), Dl = {
|
|
2560
2560
|
geom: "point",
|
|
2561
2561
|
coord: "polar",
|
|
2562
2562
|
swatchShape: "circle",
|
|
2563
|
-
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(
|
|
2563
|
+
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(Fl, {
|
|
2564
2564
|
layer: e,
|
|
2565
2565
|
shouldAnimateTransitions: t,
|
|
2566
2566
|
intro: r
|
|
@@ -2579,25 +2579,25 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2579
2579
|
y: 1 - o
|
|
2580
2580
|
};
|
|
2581
2581
|
}
|
|
2582
|
-
},
|
|
2582
|
+
}, Hl = {
|
|
2583
2583
|
bar: {
|
|
2584
|
-
cartesian:
|
|
2585
|
-
polar:
|
|
2584
|
+
cartesian: ds,
|
|
2585
|
+
polar: Tl
|
|
2586
2586
|
},
|
|
2587
2587
|
line: {
|
|
2588
|
-
cartesian:
|
|
2589
|
-
polar:
|
|
2588
|
+
cartesian: ps,
|
|
2589
|
+
polar: Ml
|
|
2590
2590
|
},
|
|
2591
2591
|
area: {
|
|
2592
|
-
cartesian:
|
|
2593
|
-
polar:
|
|
2592
|
+
cartesian: es,
|
|
2593
|
+
polar: wl
|
|
2594
2594
|
},
|
|
2595
2595
|
point: {
|
|
2596
|
-
cartesian:
|
|
2597
|
-
polar:
|
|
2596
|
+
cartesian: As,
|
|
2597
|
+
polar: Dl
|
|
2598
2598
|
},
|
|
2599
|
-
rule: { cartesian:
|
|
2600
|
-
tile: { cartesian:
|
|
2599
|
+
rule: { cartesian: fl },
|
|
2600
|
+
tile: { cartesian: yl }
|
|
2601
2601
|
};
|
|
2602
2602
|
function At(e) {
|
|
2603
2603
|
return typeof e == "function" ? {
|
|
@@ -2608,7 +2608,7 @@ function At(e) {
|
|
|
2608
2608
|
fn: e.fn
|
|
2609
2609
|
};
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2611
|
+
function Ol(e) {
|
|
2612
2612
|
return e ? At(e.render).overlay : !1;
|
|
2613
2613
|
}
|
|
2614
2614
|
function gf(e, t) {
|
|
@@ -2621,37 +2621,37 @@ function gf(e, t) {
|
|
|
2621
2621
|
geom: e.type
|
|
2622
2622
|
};
|
|
2623
2623
|
}
|
|
2624
|
-
function
|
|
2624
|
+
function Gl(e = []) {
|
|
2625
2625
|
const t = {};
|
|
2626
|
-
for (const [r, n] of Object.entries(
|
|
2626
|
+
for (const [r, n] of Object.entries(Hl)) t[r] = { ...n };
|
|
2627
2627
|
for (const r of e) (t[r.geom] ??= {})[r.coord] = r;
|
|
2628
2628
|
return (r, n) => t[r]?.[n] ?? null;
|
|
2629
2629
|
}
|
|
2630
2630
|
var Ot = (e) => {
|
|
2631
2631
|
const t = B(e);
|
|
2632
2632
|
return t.current = e, t;
|
|
2633
|
-
},
|
|
2633
|
+
}, Wl = () => {
|
|
2634
2634
|
const e = /* @__PURE__ */ new Map();
|
|
2635
|
-
return
|
|
2635
|
+
return mn((t) => ({
|
|
2636
2636
|
hover: st,
|
|
2637
2637
|
tooltipAnchor: null,
|
|
2638
2638
|
pointerRegions: [],
|
|
2639
2639
|
isPointerSuspended: !1,
|
|
2640
2640
|
setHoverState: (r) => t((n) => n.hover === r ? n : { hover: r }),
|
|
2641
|
-
setTooltipAnchor: (r) => t((n) =>
|
|
2641
|
+
setTooltipAnchor: (r) => t((n) => Vl(n.tooltipAnchor, r) ? n : { tooltipAnchor: r }),
|
|
2642
2642
|
publishPointerRegions: (r, n) => {
|
|
2643
2643
|
n.length === 0 ? e.delete(r) : e.set(r, n);
|
|
2644
|
-
const o =
|
|
2645
|
-
t((a) =>
|
|
2644
|
+
const o = _a(e);
|
|
2645
|
+
t((a) => ya(a.pointerRegions, o) ? a : { pointerRegions: o });
|
|
2646
2646
|
},
|
|
2647
2647
|
setPointerSuspended: (r) => t((n) => n.isPointerSuspended === r ? n : { isPointerSuspended: r })
|
|
2648
2648
|
}));
|
|
2649
|
-
},
|
|
2649
|
+
}, Vl = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.x === t.x && e.y === t.y && e.placement === t.placement && e.annotationId === t.annotationId, Ul = (e, t) => {
|
|
2650
2650
|
const r = m(() => ({
|
|
2651
2651
|
layers: e,
|
|
2652
2652
|
coordSystem: t
|
|
2653
2653
|
}), [e, t]), n = B(null);
|
|
2654
|
-
n.current === null && (n.current = new
|
|
2654
|
+
n.current === null && (n.current = new va(r));
|
|
2655
2655
|
const o = n.current, a = B(!1);
|
|
2656
2656
|
return F(() => {
|
|
2657
2657
|
if (!a.current) {
|
|
@@ -2660,37 +2660,37 @@ var Ot = (e) => {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
o.update(r);
|
|
2662
2662
|
}, [o, r]), o;
|
|
2663
|
-
},
|
|
2663
|
+
}, ro = U(null), Ql = ({ children: e }) => {
|
|
2664
2664
|
const { layers: t, coordSystem: r } = C(K((l) => ({
|
|
2665
2665
|
layers: l.layers,
|
|
2666
2666
|
coordSystem: l.coordSystem
|
|
2667
|
-
}))), n =
|
|
2667
|
+
}))), n = Ul(t, r), [o] = G(() => Wl()), a = B(null), i = B(null);
|
|
2668
2668
|
return i.current === null && (i.current = {
|
|
2669
2669
|
engine: n,
|
|
2670
2670
|
store: o,
|
|
2671
2671
|
overlayRef: a
|
|
2672
|
-
}), /* @__PURE__ */ s(
|
|
2672
|
+
}), /* @__PURE__ */ s(ro.Provider, {
|
|
2673
2673
|
value: i.current,
|
|
2674
2674
|
children: e
|
|
2675
2675
|
});
|
|
2676
2676
|
}, ye = () => {
|
|
2677
|
-
const e = D(
|
|
2677
|
+
const e = D(ro);
|
|
2678
2678
|
if (e === null) throw new Error("useHoverContext must be used inside a <HoverProvider>.");
|
|
2679
2679
|
return e;
|
|
2680
2680
|
};
|
|
2681
|
-
function
|
|
2681
|
+
function Yl(e, t) {
|
|
2682
2682
|
const { engine: r } = ye(), n = B(t);
|
|
2683
2683
|
F(() => {
|
|
2684
2684
|
n.current = t;
|
|
2685
2685
|
}, [t]), F(() => (r.registerHitTester(e, (o) => n.current(o)), () => r.unregisterHitTester(e)), [r, e]);
|
|
2686
2686
|
}
|
|
2687
|
-
var
|
|
2687
|
+
var Kl = ({ hitTest: e, input: t }) => {
|
|
2688
2688
|
const r = m(() => e(t), [e, t.layer.data]);
|
|
2689
|
-
return
|
|
2690
|
-
},
|
|
2689
|
+
return Yl(t.layer.id, r), null;
|
|
2690
|
+
}, zl = "graphy_root", no = () => typeof document > "u" ? null : document.getElementById(zl) ?? document.body, jl = "_10igzta0", Xl = ({ rect: e, zIndex: t, container: r, boxRef: n, children: o, ...a }) => r === null ? null : An(/* @__PURE__ */ s("div", {
|
|
2691
2691
|
...a,
|
|
2692
2692
|
ref: n,
|
|
2693
|
-
className:
|
|
2693
|
+
className: jl,
|
|
2694
2694
|
style: {
|
|
2695
2695
|
transform: `translate(${e.left}px, ${e.top}px)`,
|
|
2696
2696
|
width: e.width,
|
|
@@ -2698,15 +2698,15 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2698
2698
|
zIndex: t
|
|
2699
2699
|
},
|
|
2700
2700
|
children: o
|
|
2701
|
-
}), r),
|
|
2702
|
-
const [r] = G(
|
|
2703
|
-
return /* @__PURE__ */ s(
|
|
2701
|
+
}), r), ql = ({ rect: e, children: t }) => {
|
|
2702
|
+
const [r] = G(no);
|
|
2703
|
+
return /* @__PURE__ */ s(Xl, {
|
|
2704
2704
|
rect: e,
|
|
2705
2705
|
zIndex: De.panelOverlay,
|
|
2706
2706
|
container: r,
|
|
2707
2707
|
children: t
|
|
2708
2708
|
});
|
|
2709
|
-
},
|
|
2709
|
+
}, Jl = (e, t) => {
|
|
2710
2710
|
const r = Ot(e), n = Ot(t), o = B(null), a = B(null), i = m(() => {
|
|
2711
2711
|
const l = () => {
|
|
2712
2712
|
a.current !== null && (clearTimeout(a.current), a.current = null), o.current = null;
|
|
@@ -2730,12 +2730,12 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2730
2730
|
return F(() => () => {
|
|
2731
2731
|
a.current !== null && clearTimeout(a.current);
|
|
2732
2732
|
}, []), i;
|
|
2733
|
-
},
|
|
2733
|
+
}, Zl = {
|
|
2734
2734
|
width: 0,
|
|
2735
2735
|
height: 0,
|
|
2736
2736
|
isDefault: !0
|
|
2737
|
-
},
|
|
2738
|
-
const [r, n] = G(
|
|
2737
|
+
}, oo = ({ debounce: e = 0, onResize: t } = {}) => {
|
|
2738
|
+
const [r, n] = G(Zl), o = B(null), a = Jl((d) => {
|
|
2739
2739
|
const u = o.current;
|
|
2740
2740
|
u && u.width === d.width && u.height === d.height || (o.current = {
|
|
2741
2741
|
width: d.width,
|
|
@@ -2757,7 +2757,7 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2757
2757
|
setElement: c
|
|
2758
2758
|
};
|
|
2759
2759
|
};
|
|
2760
|
-
function
|
|
2760
|
+
function $l() {
|
|
2761
2761
|
const [e, t] = G(null), r = B(null), n = B(null), o = B(null), a = se(() => {
|
|
2762
2762
|
o.current = null;
|
|
2763
2763
|
const d = n.current;
|
|
@@ -2776,7 +2776,7 @@ function _l() {
|
|
|
2776
2776
|
g && g.left === v.left && g.top === v.top && g.width === v.width && g.height === v.height || (r.current = v, t(v));
|
|
2777
2777
|
}, []), i = se(() => {
|
|
2778
2778
|
o.current === null && (o.current = requestAnimationFrame(a));
|
|
2779
|
-
}, [a]), { setElement: l } =
|
|
2779
|
+
}, [a]), { setElement: l } = oo({ onResize: i }), c = se((d) => {
|
|
2780
2780
|
n.current = d, l(d), d && a();
|
|
2781
2781
|
}, [l, a]);
|
|
2782
2782
|
return F(() => (window.addEventListener("scroll", i, !0), window.addEventListener("resize", i), () => {
|
|
@@ -2786,7 +2786,7 @@ function _l() {
|
|
|
2786
2786
|
screenRect: e
|
|
2787
2787
|
};
|
|
2788
2788
|
}
|
|
2789
|
-
function
|
|
2789
|
+
function _l(e) {
|
|
2790
2790
|
const { engine: t, store: r } = ye();
|
|
2791
2791
|
return se((n, o) => {
|
|
2792
2792
|
const { hover: a, setHoverState: i, setTooltipAnchor: l } = r.getState(), c = n === null ? st : t.resolveHoverByKey(e, n);
|
|
@@ -2805,8 +2805,8 @@ function ec(e) {
|
|
|
2805
2805
|
e
|
|
2806
2806
|
]);
|
|
2807
2807
|
}
|
|
2808
|
-
var
|
|
2809
|
-
const r =
|
|
2808
|
+
var ec = ({ render: e, input: t }) => {
|
|
2809
|
+
const r = _l(t.layer.id), { measureRef: n, screenRect: o } = $l();
|
|
2810
2810
|
return F(() => () => r(null), [r]), /* @__PURE__ */ b(P, { children: [/* @__PURE__ */ s("rect", {
|
|
2811
2811
|
ref: n,
|
|
2812
2812
|
x: 0,
|
|
@@ -2815,16 +2815,16 @@ var tc = ({ render: e, input: t }) => {
|
|
|
2815
2815
|
height: "100%",
|
|
2816
2816
|
fill: "none",
|
|
2817
2817
|
pointerEvents: "none"
|
|
2818
|
-
}), o && /* @__PURE__ */ s(
|
|
2818
|
+
}), o && /* @__PURE__ */ s(ql, {
|
|
2819
2819
|
rect: o,
|
|
2820
|
-
children: /* @__PURE__ */ s(
|
|
2820
|
+
children: /* @__PURE__ */ s(tc, {
|
|
2821
2821
|
render: e,
|
|
2822
2822
|
input: t,
|
|
2823
2823
|
pushHover: r,
|
|
2824
2824
|
panelRect: o
|
|
2825
2825
|
})
|
|
2826
2826
|
})] });
|
|
2827
|
-
},
|
|
2827
|
+
}, tc = ({ render: e, input: t, pushHover: r, panelRect: n }) => e({
|
|
2828
2828
|
...t,
|
|
2829
2829
|
overlay: {
|
|
2830
2830
|
pushHover: r,
|
|
@@ -2836,7 +2836,7 @@ var tc = ({ render: e, input: t }) => {
|
|
|
2836
2836
|
stagger: !0,
|
|
2837
2837
|
staggerOrder: "main-axis",
|
|
2838
2838
|
maxAnimatedGeoms: 1500
|
|
2839
|
-
},
|
|
2839
|
+
}, rc = (e, t) => t ? {
|
|
2840
2840
|
intro: {
|
|
2841
2841
|
...ut,
|
|
2842
2842
|
enabled: !1
|
|
@@ -2849,12 +2849,12 @@ var tc = ({ render: e, input: t }) => {
|
|
|
2849
2849
|
},
|
|
2850
2850
|
transitions: e
|
|
2851
2851
|
} : {
|
|
2852
|
-
intro:
|
|
2852
|
+
intro: nc(e?.intro),
|
|
2853
2853
|
transitions: e?.transitions ?? !0
|
|
2854
|
-
},
|
|
2854
|
+
}, nc = (e) => typeof e == "boolean" ? {
|
|
2855
2855
|
...ut,
|
|
2856
2856
|
enabled: e
|
|
2857
|
-
} :
|
|
2857
|
+
} : Ii({}, ut, e), oc = {
|
|
2858
2858
|
loading: "جاري التحميل",
|
|
2859
2859
|
error: "حدث خطأ ما",
|
|
2860
2860
|
axisLabels: { placeholder: "إضافة تسمية" },
|
|
@@ -2905,10 +2905,10 @@ var tc = ({ render: e, input: t }) => {
|
|
|
2905
2905
|
comparisonReference: ({ value: e }) => `من ${e}`
|
|
2906
2906
|
},
|
|
2907
2907
|
legend: { hiddenItems: "عناصر وسيلة الإيضاح المخفية" }
|
|
2908
|
-
},
|
|
2909
|
-
graph:
|
|
2908
|
+
}, ac = {
|
|
2909
|
+
graph: oc,
|
|
2910
2910
|
dir: "rtl"
|
|
2911
|
-
},
|
|
2911
|
+
}, ic = {
|
|
2912
2912
|
loading: "Loading",
|
|
2913
2913
|
error: "Something went wrong",
|
|
2914
2914
|
axisLabels: { placeholder: "Add label" },
|
|
@@ -2959,10 +2959,10 @@ var tc = ({ render: e, input: t }) => {
|
|
|
2959
2959
|
comparisonReference: ({ value: e }) => `from ${e}`
|
|
2960
2960
|
},
|
|
2961
2961
|
legend: { hiddenItems: "Hidden legend items" }
|
|
2962
|
-
},
|
|
2963
|
-
graph:
|
|
2962
|
+
}, sc = {
|
|
2963
|
+
graph: ic,
|
|
2964
2964
|
dir: "ltr"
|
|
2965
|
-
},
|
|
2965
|
+
}, lc = {}, cc = {
|
|
2966
2966
|
loading: "A carregar",
|
|
2967
2967
|
error: "Algo correu mal",
|
|
2968
2968
|
axisLabels: { placeholder: "Adicionar etiqueta" },
|
|
@@ -3013,47 +3013,47 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3013
3013
|
comparisonReference: ({ value: e }) => `de ${e}`
|
|
3014
3014
|
},
|
|
3015
3015
|
legend: { hiddenItems: "Itens de legenda ocultos" }
|
|
3016
|
-
},
|
|
3017
|
-
graph:
|
|
3016
|
+
}, dc = {
|
|
3017
|
+
graph: cc,
|
|
3018
3018
|
dir: "ltr"
|
|
3019
3019
|
}, $t = {
|
|
3020
|
-
"en-GB":
|
|
3021
|
-
"en-US":
|
|
3022
|
-
ar:
|
|
3023
|
-
"pt-PT":
|
|
3024
|
-
},
|
|
3020
|
+
"en-GB": sc,
|
|
3021
|
+
"en-US": lc,
|
|
3022
|
+
ar: ac,
|
|
3023
|
+
"pt-PT": dc
|
|
3024
|
+
}, uc = ({ locale: e, overrides: t, fallbackLocale: r = "en-GB", dictionaries: n }) => {
|
|
3025
3025
|
const o = t ?? {}, a = e ?? r, i = [...n.map((c) => c[a]), ...n.map((c) => c[r])];
|
|
3026
3026
|
return (c, d) => {
|
|
3027
3027
|
const u = d ?? {}, v = c.split("."), g = o[c];
|
|
3028
3028
|
if (g) return typeof g == "function" ? g(u) : g;
|
|
3029
3029
|
for (const h of i) {
|
|
3030
3030
|
if (h === void 0) continue;
|
|
3031
|
-
const f =
|
|
3031
|
+
const f = vc(h, v);
|
|
3032
3032
|
if (f) return typeof f == "function" ? f(u) : f;
|
|
3033
3033
|
}
|
|
3034
3034
|
return c;
|
|
3035
3035
|
};
|
|
3036
|
-
},
|
|
3036
|
+
}, hc = ({ locale: e, overrides: t }) => t?.dir ?? $t[e].dir ?? "ltr", vc = (e, t) => {
|
|
3037
3037
|
let r = e;
|
|
3038
3038
|
for (const n of t) {
|
|
3039
3039
|
if (typeof r != "object" || r === null) return;
|
|
3040
3040
|
r = r[n];
|
|
3041
3041
|
}
|
|
3042
3042
|
if (typeof r == "string" || typeof r == "function") return r;
|
|
3043
|
-
},
|
|
3043
|
+
}, gc = (e) => {
|
|
3044
3044
|
const t = "en-GB";
|
|
3045
3045
|
if (!e) return t;
|
|
3046
3046
|
const r = e.trim().replace("_", "-").toLowerCase();
|
|
3047
3047
|
return Object.keys($t).find((n) => n.toLowerCase() === r) ?? t;
|
|
3048
|
-
},
|
|
3049
|
-
const o =
|
|
3050
|
-
translator:
|
|
3048
|
+
}, ao = U(null), fc = [$t], io = () => mc().translator, pc = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = fc }) => {
|
|
3049
|
+
const o = gc(e), a = m(() => ({
|
|
3050
|
+
translator: uc({
|
|
3051
3051
|
locale: o,
|
|
3052
3052
|
overrides: r,
|
|
3053
3053
|
fallbackLocale: "en-GB",
|
|
3054
3054
|
dictionaries: n
|
|
3055
3055
|
}),
|
|
3056
|
-
dir:
|
|
3056
|
+
dir: hc({
|
|
3057
3057
|
locale: o,
|
|
3058
3058
|
overrides: r
|
|
3059
3059
|
})
|
|
@@ -3062,37 +3062,37 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3062
3062
|
o,
|
|
3063
3063
|
n
|
|
3064
3064
|
]);
|
|
3065
|
-
return /* @__PURE__ */ s(
|
|
3065
|
+
return /* @__PURE__ */ s(Ti, {
|
|
3066
3066
|
locale: o,
|
|
3067
3067
|
timeZone: "UTC",
|
|
3068
|
-
children: /* @__PURE__ */ s(
|
|
3068
|
+
children: /* @__PURE__ */ s(ao.Provider, {
|
|
3069
3069
|
value: a,
|
|
3070
3070
|
children: t
|
|
3071
3071
|
})
|
|
3072
3072
|
});
|
|
3073
|
-
},
|
|
3074
|
-
const e = D(
|
|
3073
|
+
}, mc = () => {
|
|
3074
|
+
const e = D(ao);
|
|
3075
3075
|
if (!e) throw new Error("useI18n must be used within IntlProvider");
|
|
3076
3076
|
return e;
|
|
3077
|
-
},
|
|
3077
|
+
}, so = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, Ac = (e) => {
|
|
3078
3078
|
if (e !== "none")
|
|
3079
3079
|
return `drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`;
|
|
3080
|
-
},
|
|
3080
|
+
}, yc = () => {
|
|
3081
3081
|
const e = T(), t = C((r) => r.config.appearance.textScale);
|
|
3082
|
-
return m(() =>
|
|
3083
|
-
},
|
|
3082
|
+
return m(() => bi(e, t), [e, t]);
|
|
3083
|
+
}, xc = "bow4tg0", bc = "bow4tg1", wc = "bow4tg2", Sc = "bow4tg3", kc = "bow4tg4", lo = "_1ii3bsb0", Rc = "_1ii3bsb1", co = U({
|
|
3084
3084
|
colorScheme: "light",
|
|
3085
|
-
themeClass:
|
|
3085
|
+
themeClass: lo,
|
|
3086
3086
|
inlineVarsStyle: {},
|
|
3087
|
-
themeValues:
|
|
3088
|
-
}), _t = () => D(
|
|
3089
|
-
const a = m(() =>
|
|
3087
|
+
themeValues: Vn("light", {})
|
|
3088
|
+
}), _t = () => D(co), Cc = ({ colorScheme: e, themeOverrides: t = {}, textScale: r = 1, graphBackground: n, children: o }) => {
|
|
3089
|
+
const a = m(() => Vn(e, t), [e, t]), i = m(() => {
|
|
3090
3090
|
const c = { [y.textScale]: String(r) };
|
|
3091
3091
|
for (const d of Object.keys(t)) {
|
|
3092
3092
|
const u = d;
|
|
3093
3093
|
c[y[u]] = a[u];
|
|
3094
3094
|
}
|
|
3095
|
-
return n !== void 0 && (c[y.graphBackground] = n),
|
|
3095
|
+
return n !== void 0 && (c[y.graphBackground] = n), xn(c);
|
|
3096
3096
|
}, [
|
|
3097
3097
|
r,
|
|
3098
3098
|
n,
|
|
@@ -3100,7 +3100,7 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3100
3100
|
t
|
|
3101
3101
|
]), l = m(() => ({
|
|
3102
3102
|
colorScheme: e,
|
|
3103
|
-
themeClass: e === "dark" ?
|
|
3103
|
+
themeClass: e === "dark" ? Rc : lo,
|
|
3104
3104
|
inlineVarsStyle: i,
|
|
3105
3105
|
themeValues: a
|
|
3106
3106
|
}), [
|
|
@@ -3108,49 +3108,49 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3108
3108
|
i,
|
|
3109
3109
|
a
|
|
3110
3110
|
]);
|
|
3111
|
-
return /* @__PURE__ */ s(
|
|
3111
|
+
return /* @__PURE__ */ s(co.Provider, {
|
|
3112
3112
|
value: l,
|
|
3113
3113
|
children: o
|
|
3114
3114
|
});
|
|
3115
|
-
},
|
|
3115
|
+
}, Ec = ({ children: e, className: t, style: r }) => {
|
|
3116
3116
|
const { themeClass: n, inlineVarsStyle: o } = _t();
|
|
3117
3117
|
return /* @__PURE__ */ s("div", {
|
|
3118
|
-
className: Qe(n,
|
|
3118
|
+
className: Qe(n, bc, t),
|
|
3119
3119
|
style: {
|
|
3120
3120
|
...o,
|
|
3121
3121
|
...r
|
|
3122
3122
|
},
|
|
3123
3123
|
children: e
|
|
3124
3124
|
});
|
|
3125
|
-
},
|
|
3125
|
+
}, Pc = {
|
|
3126
3126
|
modern: "'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif",
|
|
3127
3127
|
timeless: "'Noto Serif', Georgia, 'Times New Roman', serif",
|
|
3128
3128
|
fresh: "'Aeonik', 'Aeonik Fallback', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
3129
3129
|
technical: "'PT Mono', 'Courier New', monospace",
|
|
3130
3130
|
handwritten: "'Permanent Marker', cursive",
|
|
3131
3131
|
fineliner: "'Intruding Cat', cursive"
|
|
3132
|
-
},
|
|
3132
|
+
}, Bc = (e) => {
|
|
3133
3133
|
const t = e !== null && typeof e == "object" ? e.fontFamily : e;
|
|
3134
3134
|
return typeof t == "string" && t.length > 0 ? t : void 0;
|
|
3135
3135
|
}, Er = (e) => {
|
|
3136
|
-
const t =
|
|
3136
|
+
const t = Bc(e);
|
|
3137
3137
|
if (t !== void 0)
|
|
3138
|
-
return
|
|
3139
|
-
},
|
|
3140
|
-
if (e.type === "text") return
|
|
3138
|
+
return Pc[t] ?? t;
|
|
3139
|
+
}, Ic = "_1cocly40", Ce = ({ content: e }) => /* @__PURE__ */ s(P, { children: uo(e.content ?? [e]) }), uo = (e) => e.map((t, r) => Tc(t, r)), Tc = (e, t) => {
|
|
3140
|
+
if (e.type === "text") return Lc(e, t);
|
|
3141
3141
|
if (e.type === "hardBreak" || e.type === "hard_break") return /* @__PURE__ */ s("br", {}, t);
|
|
3142
|
-
const r = e.content ?
|
|
3142
|
+
const r = e.content ? uo(e.content) : null;
|
|
3143
3143
|
switch (e.type) {
|
|
3144
3144
|
case "doc":
|
|
3145
3145
|
return /* @__PURE__ */ s(jt, { children: r }, t);
|
|
3146
3146
|
case "heading": {
|
|
3147
|
-
const n =
|
|
3148
|
-
return
|
|
3147
|
+
const n = Dc(e.attrs?.level);
|
|
3148
|
+
return Hc(n, t, r, Pr(e.attrs));
|
|
3149
3149
|
}
|
|
3150
3150
|
case "paragraph":
|
|
3151
3151
|
return /* @__PURE__ */ s("p", {
|
|
3152
3152
|
"data-variant": yt(e.attrs?.variant) ?? void 0,
|
|
3153
|
-
style:
|
|
3153
|
+
style: ho(Pr(e.attrs)),
|
|
3154
3154
|
children: r
|
|
3155
3155
|
}, t);
|
|
3156
3156
|
case "blockquote":
|
|
@@ -3167,10 +3167,10 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3167
3167
|
default:
|
|
3168
3168
|
return /* @__PURE__ */ s("span", { children: r }, t);
|
|
3169
3169
|
}
|
|
3170
|
-
},
|
|
3170
|
+
}, Lc = (e, t) => {
|
|
3171
3171
|
const r = e.text ?? "";
|
|
3172
|
-
return !e.marks || e.marks.length === 0 ? /* @__PURE__ */ s("span", { children: r }, t) : e.marks.reduceRight((n, o, a) =>
|
|
3173
|
-
},
|
|
3172
|
+
return !e.marks || e.marks.length === 0 ? /* @__PURE__ */ s("span", { children: r }, t) : e.marks.reduceRight((n, o, a) => Nc(o, n, `${t}-${a}`), r);
|
|
3173
|
+
}, Nc = (e, t, r) => {
|
|
3174
3174
|
switch (e.type) {
|
|
3175
3175
|
case "bold":
|
|
3176
3176
|
case "strong":
|
|
@@ -3189,7 +3189,7 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3189
3189
|
case "link": {
|
|
3190
3190
|
const n = yt(e.attrs?.href);
|
|
3191
3191
|
return Kt(n) ? /* @__PURE__ */ s("a", {
|
|
3192
|
-
className:
|
|
3192
|
+
className: Ic,
|
|
3193
3193
|
href: n,
|
|
3194
3194
|
rel: "noopener noreferrer",
|
|
3195
3195
|
target: "_blank",
|
|
@@ -3197,7 +3197,7 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3197
3197
|
}, r) : /* @__PURE__ */ s("span", { children: t }, r);
|
|
3198
3198
|
}
|
|
3199
3199
|
case "textStyle": {
|
|
3200
|
-
const n =
|
|
3200
|
+
const n = Mc(e.attrs);
|
|
3201
3201
|
return n ? /* @__PURE__ */ s("span", {
|
|
3202
3202
|
style: n,
|
|
3203
3203
|
children: t
|
|
@@ -3206,16 +3206,16 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3206
3206
|
default:
|
|
3207
3207
|
return /* @__PURE__ */ s("span", { children: t }, r);
|
|
3208
3208
|
}
|
|
3209
|
-
},
|
|
3209
|
+
}, Mc = (e) => {
|
|
3210
3210
|
if (!e) return null;
|
|
3211
3211
|
const t = {}, r = yt(e.color);
|
|
3212
3212
|
r && (t.color = r);
|
|
3213
3213
|
const n = Er(e.font) ?? Er(e.fontFamily);
|
|
3214
3214
|
n && (t.fontFamily = n);
|
|
3215
|
-
const o =
|
|
3215
|
+
const o = Fc(e.fontSize);
|
|
3216
3216
|
return o && (t.fontSize = o), Object.keys(t).length > 0 ? t : null;
|
|
3217
|
-
},
|
|
3218
|
-
const o =
|
|
3217
|
+
}, Fc = (e) => typeof e == "number" && Number.isFinite(e) ? `${e / 10}em` : yt(e), yt = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Dc = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), Hc = (e, t, r, n) => {
|
|
3218
|
+
const o = ho(n);
|
|
3219
3219
|
switch (e) {
|
|
3220
3220
|
case 1:
|
|
3221
3221
|
return /* @__PURE__ */ s("h1", {
|
|
@@ -3236,13 +3236,13 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3236
3236
|
}, Pr = (e) => {
|
|
3237
3237
|
const t = e?.textAlign;
|
|
3238
3238
|
if (t === "left" || t === "right" || t === "center" || t === "justify") return t;
|
|
3239
|
-
},
|
|
3239
|
+
}, ho = (e) => e ? { textAlign: e } : void 0;
|
|
3240
3240
|
function We(e) {
|
|
3241
3241
|
const { store: t } = ye();
|
|
3242
3242
|
return je(t, e);
|
|
3243
3243
|
}
|
|
3244
|
-
var
|
|
3245
|
-
var
|
|
3244
|
+
var Oc = "_19519k80";
|
|
3245
|
+
var Gc = "_19519k82", Wc = "_19519k83", Vc = "_19519k85", Uc = "_19519k86", Qc = "_19519k87", Yc = "_19519k88", Kc = (e) => {
|
|
3246
3246
|
const { overlayRef: t } = ye(), r = B(null), [n, o] = G(!1), a = Ot(e);
|
|
3247
3247
|
return F(() => {
|
|
3248
3248
|
const i = t.current;
|
|
@@ -3262,7 +3262,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3262
3262
|
cursorRef: r,
|
|
3263
3263
|
isInside: n
|
|
3264
3264
|
};
|
|
3265
|
-
},
|
|
3265
|
+
}, zc = 24, jc = 8, Xc = {
|
|
3266
3266
|
x: 0,
|
|
3267
3267
|
y: 0,
|
|
3268
3268
|
top: 0,
|
|
@@ -3274,8 +3274,8 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3274
3274
|
toJSON: () => ({})
|
|
3275
3275
|
}, nt = {
|
|
3276
3276
|
boundary: [],
|
|
3277
|
-
padding:
|
|
3278
|
-
},
|
|
3277
|
+
padding: jc
|
|
3278
|
+
}, qc = () => {
|
|
3279
3279
|
const e = C(K((w) => ({
|
|
3280
3280
|
layers: w.layers,
|
|
3281
3281
|
coordSystem: w.coordSystem,
|
|
@@ -3284,8 +3284,8 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3284
3284
|
numberFormat: w.config.numberFormat,
|
|
3285
3285
|
parsingLocale: w.config.parsingLocale,
|
|
3286
3286
|
comments: w.annotations.comments
|
|
3287
|
-
}))), { formattingLocale: t, colorScheme: r } = z(), n = We((w) => w.hover), o = We((w) => w.tooltipAnchor), a = We((w) => w.isPointerSuspended), i = ee("Tooltip",
|
|
3288
|
-
}), { cursorRef: c, isInside: d } =
|
|
3287
|
+
}))), { formattingLocale: t, colorScheme: r } = z(), n = We((w) => w.hover), o = We((w) => w.tooltipAnchor), a = We((w) => w.isPointerSuspended), i = ee("Tooltip", Jc), l = B(() => {
|
|
3288
|
+
}), { cursorRef: c, isInside: d } = Kc(() => l.current()), u = m(() => Ea({
|
|
3289
3289
|
...e,
|
|
3290
3290
|
hover: n,
|
|
3291
3291
|
colorScheme: r,
|
|
@@ -3298,10 +3298,10 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3298
3298
|
t,
|
|
3299
3299
|
o
|
|
3300
3300
|
]), v = !a && u !== null && (d || o !== null), g = m(() => ({ getBoundingClientRect: () => {
|
|
3301
|
-
if (o !== null) return
|
|
3301
|
+
if (o !== null) return _c(o);
|
|
3302
3302
|
const w = c.current;
|
|
3303
|
-
return w === null ?
|
|
3304
|
-
} }), [c, o]), { refs: h, floatingStyles: f, update: A } =
|
|
3303
|
+
return w === null ? Xc : $c(w);
|
|
3304
|
+
} }), [c, o]), { refs: h, floatingStyles: f, update: A } = yn(ed({
|
|
3305
3305
|
isOpen: v,
|
|
3306
3306
|
tooltipAnchor: o,
|
|
3307
3307
|
virtualReference: g
|
|
@@ -3310,17 +3310,17 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3310
3310
|
const p = /* @__PURE__ */ s("div", {
|
|
3311
3311
|
ref: h.setFloating,
|
|
3312
3312
|
role: "tooltip",
|
|
3313
|
-
className:
|
|
3313
|
+
className: Yc,
|
|
3314
3314
|
style: f,
|
|
3315
3315
|
"data-testid": "chart-tooltip",
|
|
3316
3316
|
children: /* @__PURE__ */ s(i, { content: u })
|
|
3317
|
-
}), x =
|
|
3318
|
-
return x ?
|
|
3319
|
-
},
|
|
3320
|
-
const t = ce(), r = C((c) => c.coordSystem), n =
|
|
3317
|
+
}), x = no();
|
|
3318
|
+
return x ? An(/* @__PURE__ */ s(Ec, { children: p }), x) : p;
|
|
3319
|
+
}, Jc = ({ content: e }) => {
|
|
3320
|
+
const t = ce(), r = C((c) => c.coordSystem), n = yc(), o = Et(n.heading), a = Et(n.label), i = Et(n.value), l = { paddingInline: n.box.paddingInline };
|
|
3321
3321
|
return /* @__PURE__ */ b("div", {
|
|
3322
|
-
className:
|
|
3323
|
-
style:
|
|
3322
|
+
className: Oc,
|
|
3323
|
+
style: Zc(n.box),
|
|
3324
3324
|
"data-testid": "chart-tooltip-body",
|
|
3325
3325
|
children: [
|
|
3326
3326
|
e.comment !== null && /* @__PURE__ */ s("div", {
|
|
@@ -3342,10 +3342,10 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3342
3342
|
children: e.header
|
|
3343
3343
|
}),
|
|
3344
3344
|
/* @__PURE__ */ s("div", {
|
|
3345
|
-
className:
|
|
3345
|
+
className: Gc,
|
|
3346
3346
|
children: e.rows.map((c) => {
|
|
3347
3347
|
const d = t(c.geom, r.type);
|
|
3348
|
-
return /* @__PURE__ */ s(
|
|
3348
|
+
return /* @__PURE__ */ s(td, {
|
|
3349
3349
|
row: c,
|
|
3350
3350
|
swatchShape: d?.swatchShape ?? "square",
|
|
3351
3351
|
shouldHighlight: c.isPrimary && e.rows.length > 1,
|
|
@@ -3362,13 +3362,13 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3362
3362
|
...he(e),
|
|
3363
3363
|
color: e.textColor,
|
|
3364
3364
|
lineHeight: e.lineHeight
|
|
3365
|
-
}),
|
|
3365
|
+
}), Zc = (e) => ({
|
|
3366
3366
|
background: e.background,
|
|
3367
3367
|
borderRadius: e.borderRadius,
|
|
3368
3368
|
paddingBlock: e.paddingBlock,
|
|
3369
|
-
boxShadow:
|
|
3369
|
+
boxShadow: so(e.shadow),
|
|
3370
3370
|
...e.borderWidth > 0 ? { border: `${e.borderWidth}px solid ${e.borderColor}` } : {}
|
|
3371
|
-
}),
|
|
3371
|
+
}), $c = (e) => ({
|
|
3372
3372
|
x: e.clientX,
|
|
3373
3373
|
y: e.clientY,
|
|
3374
3374
|
top: e.clientY,
|
|
@@ -3378,7 +3378,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3378
3378
|
width: 0,
|
|
3379
3379
|
height: 0,
|
|
3380
3380
|
toJSON: () => ({})
|
|
3381
|
-
}),
|
|
3381
|
+
}), _c = (e) => ({
|
|
3382
3382
|
x: e.x,
|
|
3383
3383
|
y: e.y,
|
|
3384
3384
|
top: e.y,
|
|
@@ -3388,21 +3388,21 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3388
3388
|
width: 0,
|
|
3389
3389
|
height: 0,
|
|
3390
3390
|
toJSON: () => ({})
|
|
3391
|
-
}),
|
|
3391
|
+
}), ed = ({ isOpen: e, tooltipAnchor: t, virtualReference: r }) => ({
|
|
3392
3392
|
open: e,
|
|
3393
3393
|
placement: t !== null ? t.placement : "right",
|
|
3394
3394
|
middleware: t !== null ? [
|
|
3395
|
-
Nt(
|
|
3395
|
+
Nt(ca),
|
|
3396
3396
|
Mt(nt),
|
|
3397
3397
|
Lt(nt)
|
|
3398
3398
|
] : [
|
|
3399
|
-
Nt(
|
|
3399
|
+
Nt(zc),
|
|
3400
3400
|
Lt(nt),
|
|
3401
3401
|
Mt(nt)
|
|
3402
3402
|
],
|
|
3403
3403
|
elements: { reference: r }
|
|
3404
|
-
}),
|
|
3405
|
-
className:
|
|
3404
|
+
}), td = ({ row: e, swatchShape: t, shouldHighlight: r, labelStyle: n, valueStyle: o, paddingInline: a, highlightBackground: i }) => /* @__PURE__ */ b("div", {
|
|
3405
|
+
className: Wc,
|
|
3406
3406
|
style: {
|
|
3407
3407
|
paddingInline: a,
|
|
3408
3408
|
...r ? { backgroundColor: i } : {}
|
|
@@ -3410,7 +3410,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3410
3410
|
"data-testid": "chart-tooltip-row",
|
|
3411
3411
|
children: [
|
|
3412
3412
|
e.swatchColor === null ? /* @__PURE__ */ s("span", {
|
|
3413
|
-
className:
|
|
3413
|
+
className: Vc,
|
|
3414
3414
|
"aria-hidden": !0
|
|
3415
3415
|
}) : /* @__PURE__ */ s(Xe, {
|
|
3416
3416
|
shape: t,
|
|
@@ -3420,13 +3420,13 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3420
3420
|
lineType: e.swatchLineType
|
|
3421
3421
|
}),
|
|
3422
3422
|
/* @__PURE__ */ s("span", {
|
|
3423
|
-
className:
|
|
3423
|
+
className: Uc,
|
|
3424
3424
|
style: n,
|
|
3425
3425
|
"data-testid": "chart-tooltip-label",
|
|
3426
3426
|
children: e.label
|
|
3427
3427
|
}),
|
|
3428
3428
|
/* @__PURE__ */ s("span", {
|
|
3429
|
-
className:
|
|
3429
|
+
className: Qc,
|
|
3430
3430
|
style: o,
|
|
3431
3431
|
"data-testid": "chart-tooltip-value",
|
|
3432
3432
|
children: e.value
|
|
@@ -3436,12 +3436,12 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3436
3436
|
plansByLayerId: null,
|
|
3437
3437
|
coordKey: null,
|
|
3438
3438
|
introEndsAtMs: 0
|
|
3439
|
-
}, er = U(it),
|
|
3439
|
+
}, er = U(it), rd = ({ intro: e, children: t }) => {
|
|
3440
3440
|
const { layers: r, coordSystem: n, scales: o } = C(K((i) => ({
|
|
3441
3441
|
layers: i.layers,
|
|
3442
3442
|
coordSystem: i.coordSystem,
|
|
3443
3443
|
scales: i.scales
|
|
3444
|
-
}))), [a] = G(() =>
|
|
3444
|
+
}))), [a] = G(() => ad({
|
|
3445
3445
|
layers: r,
|
|
3446
3446
|
coordSystem: n,
|
|
3447
3447
|
scales: o,
|
|
@@ -3451,21 +3451,21 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3451
3451
|
value: a,
|
|
3452
3452
|
children: t
|
|
3453
3453
|
});
|
|
3454
|
-
},
|
|
3455
|
-
const { introEndsAtMs: e } = D(er), [t] = G(() =>
|
|
3454
|
+
}, nd = () => {
|
|
3455
|
+
const { introEndsAtMs: e } = D(er), [t] = G(() => id(e) / 1e3);
|
|
3456
3456
|
return t;
|
|
3457
|
-
},
|
|
3458
|
-
const { plansByLayerId: t, coordKey: r } = D(er), n = C((o) =>
|
|
3457
|
+
}, od = (e) => {
|
|
3458
|
+
const { plansByLayerId: t, coordKey: r } = D(er), n = C((o) => vo(o.coordSystem));
|
|
3459
3459
|
return t === null || r !== n ? null : t.get(e) ?? null;
|
|
3460
|
-
},
|
|
3461
|
-
if (!n.enabled || e.reduce((l, c) => l +
|
|
3460
|
+
}, ad = ({ layers: e, coordSystem: t, scales: r, intro: n }) => {
|
|
3461
|
+
if (!n.enabled || e.reduce((l, c) => l + Ma(c), 0) > n.maxAnimatedGeoms) return it;
|
|
3462
3462
|
const o = {
|
|
3463
3463
|
durationScale: n.durationScale,
|
|
3464
3464
|
stagger: n.stagger,
|
|
3465
3465
|
staggerOrder: n.staggerOrder
|
|
3466
3466
|
}, a = /* @__PURE__ */ new Map();
|
|
3467
3467
|
for (const l of e) {
|
|
3468
|
-
const c =
|
|
3468
|
+
const c = ka({
|
|
3469
3469
|
layer: l,
|
|
3470
3470
|
coordSystem: t,
|
|
3471
3471
|
scales: r,
|
|
@@ -3474,51 +3474,51 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3474
3474
|
c !== null && a.set(l.id, c);
|
|
3475
3475
|
}
|
|
3476
3476
|
if (a.size === 0) return it;
|
|
3477
|
-
const i = [...a.values()].reduce((l, c) => Math.max(l,
|
|
3477
|
+
const i = [...a.values()].reduce((l, c) => Math.max(l, Ui(c)), 0);
|
|
3478
3478
|
return {
|
|
3479
3479
|
plansByLayerId: a,
|
|
3480
|
-
coordKey:
|
|
3480
|
+
coordKey: vo(t),
|
|
3481
3481
|
introEndsAtMs: performance.now() + i * 1e3
|
|
3482
3482
|
};
|
|
3483
|
-
},
|
|
3483
|
+
}, id = (e) => Math.max(0, e - performance.now()), vo = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, go = () => {
|
|
3484
3484
|
const e = T(), t = C((r) => r.config.appearance.textScale);
|
|
3485
3485
|
return m(() => {
|
|
3486
3486
|
const r = {};
|
|
3487
|
-
for (const n of Wt) r[n] =
|
|
3487
|
+
for (const n of Wt) r[n] = si(e, n, t);
|
|
3488
3488
|
return r;
|
|
3489
3489
|
}, [e, t]);
|
|
3490
3490
|
}, xt = () => {
|
|
3491
3491
|
const e = T(), t = C((r) => r.config.appearance.textScale);
|
|
3492
3492
|
return m(() => {
|
|
3493
3493
|
const r = {};
|
|
3494
|
-
for (const n of
|
|
3494
|
+
for (const n of ua) {
|
|
3495
3495
|
const o = {};
|
|
3496
|
-
for (const a of
|
|
3496
|
+
for (const a of da) o[a] = di(e, n, a, t);
|
|
3497
3497
|
r[n] = o;
|
|
3498
3498
|
}
|
|
3499
3499
|
return r;
|
|
3500
3500
|
}, [e, t]);
|
|
3501
|
-
},
|
|
3501
|
+
}, fo = () => {
|
|
3502
3502
|
const e = T(), t = C((r) => r.config.appearance.textScale);
|
|
3503
|
-
return m(() => (r) =>
|
|
3503
|
+
return m(() => (r) => hi(e, r, t), [e, t]);
|
|
3504
3504
|
}, tr = () => {
|
|
3505
3505
|
const e = T(), t = C((r) => r.config.appearance.textScale);
|
|
3506
|
-
return m(() =>
|
|
3506
|
+
return m(() => fi(e, t), [e, t]);
|
|
3507
3507
|
}, rr = () => {
|
|
3508
3508
|
const e = T(), t = C((r) => r.config.appearance.textScale);
|
|
3509
3509
|
return m(() => {
|
|
3510
3510
|
const r = {};
|
|
3511
|
-
for (const n of Wt) r[n] =
|
|
3511
|
+
for (const n of Wt) r[n] = yi(e, n, t);
|
|
3512
3512
|
return r;
|
|
3513
3513
|
}, [e, t]);
|
|
3514
|
-
},
|
|
3514
|
+
}, po = () => {
|
|
3515
3515
|
const e = T();
|
|
3516
3516
|
return m(() => {
|
|
3517
3517
|
const t = {};
|
|
3518
|
-
for (const r of Wt) t[r] =
|
|
3518
|
+
for (const r of Wt) t[r] = xi(e, r);
|
|
3519
3519
|
return t;
|
|
3520
3520
|
}, [e]);
|
|
3521
|
-
},
|
|
3521
|
+
}, sd = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (o) => {
|
|
3522
3522
|
const a = o.position === "top" || o.position === "bottom", i = Ee(o.scaleAestheticKey), { offset: l, ...c } = t[i], d = o.ticksVisible ? Math.max(l, r[i].length) : l, u = J(c, n), v = o.ticks.map((h) => e.measureText(h.formattedLabel, u)), g = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
|
|
3523
3523
|
if (a) {
|
|
3524
3524
|
if (o.labelRotation !== 0) {
|
|
@@ -3528,49 +3528,49 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3528
3528
|
return Math.max(...v.map((h) => h.height)) + d;
|
|
3529
3529
|
}
|
|
3530
3530
|
return Br(v.map((h) => h.width), g) + d;
|
|
3531
|
-
}, Br = (e, t) => Math.min(Math.max(...e), t),
|
|
3531
|
+
}, Br = (e, t) => Math.min(Math.max(...e), t), ld = ({ axisLabelStyles: e }) => (t) => Ye(e[Ee(t.scaleAestheticKey)]), mo = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, a) => {
|
|
3532
3532
|
const i = t[n][o], l = e.measureText(a, J(i, r));
|
|
3533
3533
|
return {
|
|
3534
3534
|
...l,
|
|
3535
3535
|
width: l.width + i.paddingInline * 2,
|
|
3536
3536
|
height: l.height + i.paddingBlock * 2
|
|
3537
3537
|
};
|
|
3538
|
-
},
|
|
3539
|
-
const l =
|
|
3538
|
+
}, cd = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, J(n, t)), dd = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, itemGap: n, headlineItemStyles: o }) => (a, i) => {
|
|
3539
|
+
const l = Ao(a, o[i], e, t, r);
|
|
3540
3540
|
return {
|
|
3541
|
-
width:
|
|
3541
|
+
width: yo(l.map((c) => c.width)) + Math.max(0, l.length - 1) * n,
|
|
3542
3542
|
height: Math.max(0, ...l.map((c) => c.height))
|
|
3543
3543
|
};
|
|
3544
|
-
},
|
|
3545
|
-
const i =
|
|
3544
|
+
}, ud = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, headlineItemStyles: n }) => (o, a) => Ao(o, n[a], e, t, r).map((i) => i.width), hd = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o, a = !1) => {
|
|
3545
|
+
const i = dn(r[o], a);
|
|
3546
3546
|
return {
|
|
3547
3547
|
width: e.measureText(n, J(i, t)).width,
|
|
3548
3548
|
height: Ye(i)
|
|
3549
3549
|
};
|
|
3550
|
-
},
|
|
3551
|
-
const t =
|
|
3550
|
+
}, vd = (e) => {
|
|
3551
|
+
const t = dd(e), r = hd(e);
|
|
3552
3552
|
return (n, o, a = !1) => n.kind === "perGroup" ? t(n, o) : r(n.value, o, a);
|
|
3553
|
-
},
|
|
3554
|
-
const a = (i) =>
|
|
3553
|
+
}, Ao = (e, t, r, n, o) => {
|
|
3554
|
+
const a = (i) => gd(i, t, r, n);
|
|
3555
3555
|
return e.items.map((i) => {
|
|
3556
|
-
const l =
|
|
3556
|
+
const l = qr(i, t.swatch.size).map(a), c = Math.max(0, l.length - 1) * o;
|
|
3557
3557
|
return {
|
|
3558
3558
|
width: Math.max(0, ...l.map((d) => d.width)),
|
|
3559
|
-
height:
|
|
3559
|
+
height: yo(l.map((d) => d.height)) + c
|
|
3560
3560
|
};
|
|
3561
3561
|
});
|
|
3562
|
-
},
|
|
3562
|
+
}, gd = (e, t, r, n) => {
|
|
3563
3563
|
let o = 0, a = 0;
|
|
3564
3564
|
for (const i of e.segments) if (i.kind === "text") {
|
|
3565
|
-
const l =
|
|
3566
|
-
o += r.measureText(i.text, J(l, n)).width, a = Math.max(a,
|
|
3565
|
+
const l = fd(t, i.textRole);
|
|
3566
|
+
o += r.measureText(i.text, J(l, n)).width, a = Math.max(a, pd(l));
|
|
3567
3567
|
} else
|
|
3568
3568
|
o += i.size, a = Math.max(a, i.size);
|
|
3569
3569
|
return {
|
|
3570
3570
|
width: o + Math.max(0, e.segments.length - 1) * e.gap,
|
|
3571
3571
|
height: a
|
|
3572
3572
|
};
|
|
3573
|
-
},
|
|
3573
|
+
}, fd = (e, t) => {
|
|
3574
3574
|
switch (t) {
|
|
3575
3575
|
case "value":
|
|
3576
3576
|
return e.number;
|
|
@@ -3584,13 +3584,13 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3584
3584
|
default:
|
|
3585
3585
|
return t;
|
|
3586
3586
|
}
|
|
3587
|
-
},
|
|
3587
|
+
}, pd = (e) => e.fontSize * (e.lineHeight ?? ys), yo = (e) => e.reduce((t, r) => t + r, 0), xo = (e, t) => On(e, t).size * e.lineHeight, md = (e, t) => e ? t : 0, ht = (e, t, r) => {
|
|
3588
3588
|
if (r) {
|
|
3589
3589
|
const n = Number(e.size);
|
|
3590
3590
|
return Number.isFinite(n) && n > 0 ? n : 0;
|
|
3591
3591
|
}
|
|
3592
|
-
return
|
|
3593
|
-
},
|
|
3592
|
+
return md(e.color, t);
|
|
3593
|
+
}, Ad = ({ textMeasurer: e, familyDefault: t, legendItemStyle: r, legendSwatchGap: n }) => (o) => {
|
|
3594
3594
|
const { item: a, swatch: i } = r, l = Ye(a), c = J(a, t), d = 2 * (a.paddingBlock + a.borderWidth), u = 2 * (a.paddingInline + a.borderWidth), v = o.position === "top" || o.position === "bottom", g = o.aesthetics.includes("size");
|
|
3595
3595
|
if (v) {
|
|
3596
3596
|
const f = g ? Math.max(0, ...o.items.map((A) => ht(A.visual, i.size, !0))) : i.size;
|
|
@@ -3601,37 +3601,37 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3601
3601
|
return p + (p > 0 ? n : 0) + A;
|
|
3602
3602
|
});
|
|
3603
3603
|
return Math.max(...h) + u;
|
|
3604
|
-
},
|
|
3605
|
-
const o =
|
|
3604
|
+
}, yd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, J(t[o], r)), xd = Object.freeze({}), bd = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = xd }) => {
|
|
3605
|
+
const o = go(), a = xt(), i = tr(), l = rr(), c = po(), d = T(), u = B(n);
|
|
3606
3606
|
return u.current = n, m(() => {
|
|
3607
3607
|
if (!e) return null;
|
|
3608
3608
|
const v = r.fonts.familyDefault, g = {
|
|
3609
3609
|
textMeasurer: e,
|
|
3610
3610
|
familyDefault: v,
|
|
3611
3611
|
headlineRowGap: r.headlineRowGap,
|
|
3612
|
-
itemGap:
|
|
3612
|
+
itemGap: un(d).gap,
|
|
3613
3613
|
headlineItemStyles: {
|
|
3614
3614
|
small: at(d, t, "small"),
|
|
3615
3615
|
medium: at(d, t, "medium"),
|
|
3616
3616
|
large: at(d, t, "large")
|
|
3617
3617
|
}
|
|
3618
|
-
}, h =
|
|
3618
|
+
}, h = sd({
|
|
3619
3619
|
textMeasurer: e,
|
|
3620
3620
|
tickLabelStyles: l,
|
|
3621
3621
|
tickLineStyles: c,
|
|
3622
3622
|
familyDefault: v
|
|
3623
|
-
}), f =
|
|
3623
|
+
}), f = ld({ axisLabelStyles: o }), A = Ad({
|
|
3624
3624
|
textMeasurer: e,
|
|
3625
3625
|
familyDefault: v,
|
|
3626
3626
|
legendItemStyle: i,
|
|
3627
3627
|
legendSwatchGap: r.legendSwatchGap
|
|
3628
|
-
}), p =
|
|
3628
|
+
}), p = vd(g), x = ud(g), w = {
|
|
3629
3629
|
measureText: (S, R) => e.measureText(S, R),
|
|
3630
3630
|
textScale: t
|
|
3631
3631
|
};
|
|
3632
3632
|
return {
|
|
3633
3633
|
measureAxis: (S) => {
|
|
3634
|
-
if (
|
|
3634
|
+
if (Sd(S)) return 0;
|
|
3635
3635
|
const R = u.current.measureAxis;
|
|
3636
3636
|
return R ? R(S, w) : h(S);
|
|
3637
3637
|
},
|
|
@@ -3640,22 +3640,22 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3640
3640
|
return R ? R(S, w) : f(S);
|
|
3641
3641
|
},
|
|
3642
3642
|
measureLegend: (S) => {
|
|
3643
|
-
if (
|
|
3643
|
+
if (kd(S)) return 0;
|
|
3644
3644
|
const R = u.current.measureLegend;
|
|
3645
3645
|
return R ? R(S, w) : A(S);
|
|
3646
3646
|
},
|
|
3647
3647
|
measureHeadline: (S, R, N) => (u.current.measureHeadline ?? p)(S, R, N),
|
|
3648
3648
|
measureHeadlineItemWidths: (S, R) => (u.current.measureHeadlineItemWidths ?? x)(S, R),
|
|
3649
|
-
measureTickLabel:
|
|
3649
|
+
measureTickLabel: yd({
|
|
3650
3650
|
textMeasurer: e,
|
|
3651
3651
|
tickLabelStyles: l,
|
|
3652
3652
|
familyDefault: v
|
|
3653
3653
|
}),
|
|
3654
|
-
measureDifferenceArrowLabel:
|
|
3654
|
+
measureDifferenceArrowLabel: cd({
|
|
3655
3655
|
textMeasurer: e,
|
|
3656
3656
|
familyDefault: v
|
|
3657
3657
|
}),
|
|
3658
|
-
measureDataLabel:
|
|
3658
|
+
measureDataLabel: mo({
|
|
3659
3659
|
textMeasurer: e,
|
|
3660
3660
|
dataLabelStyles: a,
|
|
3661
3661
|
familyDefault: v
|
|
@@ -3672,9 +3672,9 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3672
3672
|
c,
|
|
3673
3673
|
d
|
|
3674
3674
|
]);
|
|
3675
|
-
},
|
|
3676
|
-
const p =
|
|
3677
|
-
return m(() => e ? new
|
|
3675
|
+
}, wd = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: o, containerSize: a, externalMeasurements: i, headline: l, formattingLocale: c, annotations: d, layers: u, coordSystem: v, textScale: g, overflowStrategy: h, layout: f, panelBorder: A }) => {
|
|
3676
|
+
const p = fo();
|
|
3677
|
+
return m(() => e ? new fa(e).compile({
|
|
3678
3678
|
axes: t,
|
|
3679
3679
|
numberFormat: r,
|
|
3680
3680
|
parsingLocale: n,
|
|
@@ -3710,31 +3710,31 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3710
3710
|
A,
|
|
3711
3711
|
e
|
|
3712
3712
|
]);
|
|
3713
|
-
},
|
|
3713
|
+
}, Sd = (e) => !e.isVisible || e.ticks.length === 0, kd = (e) => e.items.length === 0, Rd = () => {
|
|
3714
3714
|
const { formattingLocale: e } = z(), t = C((r) => r.config.parsingLocale);
|
|
3715
3715
|
return e ?? t;
|
|
3716
|
-
}, Ir = 0.5,
|
|
3717
|
-
}),
|
|
3716
|
+
}, Ir = 0.5, bo = U(/* @__PURE__ */ new Map()), wo = U(() => {
|
|
3717
|
+
}), So = U(/* @__PURE__ */ new Set()), Cd = ({ children: e }) => {
|
|
3718
3718
|
const [t, r] = G(() => /* @__PURE__ */ new Map()), [n] = G(() => /* @__PURE__ */ new Set()), o = B(/* @__PURE__ */ new Map()), a = se((i, l, c) => {
|
|
3719
3719
|
const d = o.current.get(i) ?? /* @__PURE__ */ new Set();
|
|
3720
3720
|
if (c !== null) {
|
|
3721
|
-
d.add(l), o.current.set(i, d), r((u) =>
|
|
3721
|
+
d.add(l), o.current.set(i, d), r((u) => Td(u, i, c));
|
|
3722
3722
|
return;
|
|
3723
3723
|
}
|
|
3724
|
-
d.delete(l), !(d.size > 0) && (o.current.delete(i), r((u) =>
|
|
3724
|
+
d.delete(l), !(d.size > 0) && (o.current.delete(i), r((u) => Ld(u, i)));
|
|
3725
3725
|
}, []);
|
|
3726
|
-
return /* @__PURE__ */ s(
|
|
3726
|
+
return /* @__PURE__ */ s(wo.Provider, {
|
|
3727
3727
|
value: a,
|
|
3728
|
-
children: /* @__PURE__ */ s(
|
|
3728
|
+
children: /* @__PURE__ */ s(So.Provider, {
|
|
3729
3729
|
value: n,
|
|
3730
|
-
children: /* @__PURE__ */ s(
|
|
3730
|
+
children: /* @__PURE__ */ s(bo.Provider, {
|
|
3731
3731
|
value: t,
|
|
3732
3732
|
children: e
|
|
3733
3733
|
})
|
|
3734
3734
|
})
|
|
3735
3735
|
});
|
|
3736
|
-
},
|
|
3737
|
-
const t =
|
|
3736
|
+
}, Ed = () => D(bo), Pd = () => D(wo), Bd = (e) => {
|
|
3737
|
+
const t = Pd(), r = V(), n = B(null);
|
|
3738
3738
|
return F(() => {
|
|
3739
3739
|
if (typeof ResizeObserver > "u") return;
|
|
3740
3740
|
const o = n.current;
|
|
@@ -3753,46 +3753,46 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3753
3753
|
r,
|
|
3754
3754
|
t
|
|
3755
3755
|
]), n;
|
|
3756
|
-
},
|
|
3756
|
+
}, Id = () => D(So), Td = (e, t, r) => {
|
|
3757
3757
|
const n = e.get(t);
|
|
3758
3758
|
if (n !== void 0 && Math.abs(n.width - r.width) < Ir && Math.abs(n.height - r.height) < Ir) return e;
|
|
3759
3759
|
const o = new Map(e);
|
|
3760
3760
|
return o.set(t, r), o;
|
|
3761
|
-
},
|
|
3761
|
+
}, Ld = (e, t) => {
|
|
3762
3762
|
if (!e.has(t)) return e;
|
|
3763
3763
|
const r = new Map(e);
|
|
3764
3764
|
return r.delete(t), r;
|
|
3765
|
-
},
|
|
3766
|
-
[
|
|
3767
|
-
[
|
|
3768
|
-
}),
|
|
3765
|
+
}, ko = "data-edit-kind", Nd = "data-edit-id", Md = "observation", Fd = /* @__PURE__ */ new Set(["annotation"]), Dd = (e) => Fd.has(e.kind), Hd = (e, t) => e === t ? !0 : e === null || t === null || e.kind !== t.kind ? !1 : e.id === t.id, qe = (e) => ({
|
|
3766
|
+
[ko]: e.kind,
|
|
3767
|
+
[Nd]: e.id
|
|
3768
|
+
}), Od = () => ({ [ko]: Md }), ff = (e, t) => e !== null && e.annotationId === t ? e : null, Gd = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, pf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Wd = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, mf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Vd = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && ma(e.point.anchor, t.point.anchor), Af = (e, t) => e !== null && e.annotationId === t ? e : null, Ud = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, yf = (e, t) => e !== null && e.annotationId === t ? e : null, Qd = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, Ve = ({ standingInteraction: e }, t) => e !== null && fe(e, t) ? e : null, Yd = (e, t) => {
|
|
3769
3769
|
if (e === null) return !1;
|
|
3770
3770
|
switch (t.kind) {
|
|
3771
3771
|
case "difference-arrow-endpoint-drag":
|
|
3772
|
-
return fe(e, t.kind) && Ud(e, t);
|
|
3773
|
-
case "arrow-endpoint-drag":
|
|
3774
3772
|
return fe(e, t.kind) && Vd(e, t);
|
|
3775
|
-
case "
|
|
3773
|
+
case "arrow-endpoint-drag":
|
|
3776
3774
|
return fe(e, t.kind) && Wd(e, t);
|
|
3775
|
+
case "move-drag":
|
|
3776
|
+
return fe(e, t.kind) && Gd(e, t);
|
|
3777
3777
|
case "shape-resize-drag":
|
|
3778
|
-
return fe(e, t.kind) &&
|
|
3778
|
+
return fe(e, t.kind) && Ud(e, t);
|
|
3779
3779
|
case "text-resize-drag":
|
|
3780
|
-
return fe(e, t.kind) &&
|
|
3780
|
+
return fe(e, t.kind) && Qd(e, t);
|
|
3781
3781
|
case "chrome-popup":
|
|
3782
3782
|
return fe(e, t.kind);
|
|
3783
3783
|
case "menu":
|
|
3784
3784
|
return !1;
|
|
3785
3785
|
}
|
|
3786
|
-
}, fe = (e, t) => e.kind === t,
|
|
3786
|
+
}, fe = (e, t) => e.kind === t, Ro = () => mn((e) => ({
|
|
3787
3787
|
menuTrigger: null,
|
|
3788
3788
|
chromeUnderPointer: null,
|
|
3789
3789
|
editTargetUnderPointer: null,
|
|
3790
3790
|
standingInteraction: null,
|
|
3791
3791
|
caret: null,
|
|
3792
|
-
setMenuTrigger: (t) => e((r) =>
|
|
3792
|
+
setMenuTrigger: (t) => e((r) => Aa(r.menuTrigger, t) ? r : { menuTrigger: t }),
|
|
3793
3793
|
setChromeUnderPointer: (t) => e({ chromeUnderPointer: t }),
|
|
3794
|
-
setEditTargetUnderPointer: (t) => e((r) =>
|
|
3795
|
-
claimInteraction: (t) => e((r) =>
|
|
3794
|
+
setEditTargetUnderPointer: (t) => e((r) => Hd(r.editTargetUnderPointer, t) ? r : { editTargetUnderPointer: t }),
|
|
3795
|
+
claimInteraction: (t) => e((r) => Yd(r.standingInteraction, t) ? r : { standingInteraction: t }),
|
|
3796
3796
|
releaseInteraction: (t) => e((r) => r.standingInteraction?.kind === t ? { standingInteraction: null } : r),
|
|
3797
3797
|
setCaret: (t) => e((r) => (r.caret?.annotationId ?? null) === t ? r : { caret: t === null ? null : {
|
|
3798
3798
|
annotationId: t,
|
|
@@ -3802,8 +3802,8 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3802
3802
|
...r.caret,
|
|
3803
3803
|
editor: t
|
|
3804
3804
|
} })
|
|
3805
|
-
})), nr = U(null),
|
|
3806
|
-
const [t] = G(() =>
|
|
3805
|
+
})), nr = U(null), Kd = Ro(), xf = ({ children: e }) => {
|
|
3806
|
+
const [t] = G(() => Ro());
|
|
3807
3807
|
return /* @__PURE__ */ s(nr.Provider, {
|
|
3808
3808
|
value: t,
|
|
3809
3809
|
children: e
|
|
@@ -3814,23 +3814,23 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3814
3814
|
return e;
|
|
3815
3815
|
};
|
|
3816
3816
|
function ue(e) {
|
|
3817
|
-
return je(D(nr) ??
|
|
3817
|
+
return je(D(nr) ?? Kd, e);
|
|
3818
3818
|
}
|
|
3819
|
-
var
|
|
3820
|
-
const r =
|
|
3821
|
-
return /* @__PURE__ */ s(
|
|
3819
|
+
var Co = U(null), zd = ({ panelRect: e, children: t }) => {
|
|
3820
|
+
const r = Xd(e);
|
|
3821
|
+
return /* @__PURE__ */ s(Co.Provider, {
|
|
3822
3822
|
value: r,
|
|
3823
3823
|
children: t
|
|
3824
3824
|
});
|
|
3825
|
-
},
|
|
3826
|
-
const e = D(
|
|
3825
|
+
}, jd = () => {
|
|
3826
|
+
const e = D(Co);
|
|
3827
3827
|
if (e === null) throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");
|
|
3828
3828
|
return e;
|
|
3829
|
-
}, Tr = (e, t, r) => t.isColorAuthored ? t.color :
|
|
3829
|
+
}, Tr = (e, t, r) => t.isColorAuthored ? t.color : ii(e.start, e.end, {
|
|
3830
3830
|
start: r(e.start),
|
|
3831
3831
|
end: r(e.end)
|
|
3832
|
-
}) ?? t.color,
|
|
3833
|
-
const { formattingLocale: t } = z(), r = Ae(), { fonts: n } = me(), o = ue((p) => Ve(p, "difference-arrow-endpoint-drag")), a =
|
|
3832
|
+
}) ?? t.color, Xd = (e) => {
|
|
3833
|
+
const { formattingLocale: t } = z(), r = Ae(), { fonts: n } = me(), o = ue((p) => Ve(p, "difference-arrow-endpoint-drag")), a = Sn(), i = fo(), { differenceArrows: l, mainAxis: c, parsingLocale: d } = C(K((p) => ({
|
|
3834
3834
|
differenceArrows: p.annotations.differenceArrows,
|
|
3835
3835
|
mainAxis: p.coordSystem.type === "cartesian" ? p.coordSystem.mainAxis : "x",
|
|
3836
3836
|
parsingLocale: p.config.parsingLocale
|
|
@@ -3844,7 +3844,7 @@ var Eo = U(null), jd = ({ panelRect: e, children: t }) => {
|
|
|
3844
3844
|
v,
|
|
3845
3845
|
g,
|
|
3846
3846
|
u
|
|
3847
|
-
]), f = m(() =>
|
|
3847
|
+
]), f = m(() => qd(r, n.familyDefault), [r, n.familyDefault]), A = m(() => l.map((p) => {
|
|
3848
3848
|
const x = i(p.id), w = Lr(p, x, h, f);
|
|
3849
3849
|
return {
|
|
3850
3850
|
...w,
|
|
@@ -3866,7 +3866,7 @@ var Eo = U(null), jd = ({ panelRect: e, children: t }) => {
|
|
|
3866
3866
|
]);
|
|
3867
3867
|
return m(() => o === null ? A : A.map((p) => {
|
|
3868
3868
|
if (p.id !== o.annotationId) return p;
|
|
3869
|
-
const x =
|
|
3869
|
+
const x = Jd(p.committedArrow, o);
|
|
3870
3870
|
return {
|
|
3871
3871
|
...Lr(x, p.style, h, f),
|
|
3872
3872
|
style: p.style,
|
|
@@ -3886,20 +3886,20 @@ var Eo = U(null), jd = ({ panelRect: e, children: t }) => {
|
|
|
3886
3886
|
a
|
|
3887
3887
|
]);
|
|
3888
3888
|
}, Lr = (e, t, r, n) => {
|
|
3889
|
-
const o =
|
|
3889
|
+
const o = Ia({
|
|
3890
3890
|
arrow: e,
|
|
3891
3891
|
style: t,
|
|
3892
3892
|
...r
|
|
3893
3893
|
});
|
|
3894
3894
|
return {
|
|
3895
3895
|
...o,
|
|
3896
|
-
labelBox:
|
|
3896
|
+
labelBox: Ua({
|
|
3897
3897
|
labelPosition: o.labelPosition,
|
|
3898
3898
|
measuredTextWidth: n(o.labelText, t.label),
|
|
3899
3899
|
label: t.label
|
|
3900
3900
|
})
|
|
3901
3901
|
};
|
|
3902
|
-
},
|
|
3902
|
+
}, qd = (e, t) => {
|
|
3903
3903
|
const r = /* @__PURE__ */ new Map();
|
|
3904
3904
|
return (n, o) => {
|
|
3905
3905
|
const a = J(o, t), i = `${a.family}|${a.size}|${a.weight}|${n}`, l = r.get(i);
|
|
@@ -3907,24 +3907,24 @@ var Eo = U(null), jd = ({ panelRect: e, children: t }) => {
|
|
|
3907
3907
|
const { width: c } = e.measureText(n, a);
|
|
3908
3908
|
return r.set(i, c), c;
|
|
3909
3909
|
};
|
|
3910
|
-
},
|
|
3910
|
+
}, Jd = (e, t) => ({
|
|
3911
3911
|
...e,
|
|
3912
3912
|
start: t.endpoint === "start" ? t.point : e.start,
|
|
3913
3913
|
end: t.endpoint === "end" ? t.point : e.end
|
|
3914
|
-
}),
|
|
3915
|
-
src:
|
|
3914
|
+
}), Zd = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABgCAYAAAC65+QhAAAKo0lEQVR42u2de4wdVR3HPzN32+oSUQSsikEoosR3iko08oovEkwMpmiIr/KHIomgUYyPiBofkRjjE+MjEk3RQNIYTdUotKkoaql0Wyympbtl2XbLtrW71n3v3ntnrn+c38n98cvcOzP3tfcud5LJ5u7Ozpz5nt/7nN/3QncfAVBQn18LfBd4GJgFYvm5B/iW/N0fBfn/VX9ogF4K3A0sAhV1xubzIrBFrk+6z6oDyEvCmcBXgTkFRgkoA5E6y/J7f80s8GXg2Uoyw9UCUGhm/wPAYQNQJFJkJUmDpgEbkfusCnW0dujNwM4aAEVGak4aaYvVdRqwHcAbexkwDdCLgZ8mqJgFaBo4BowD/wQOAbuBCSNhsVHJGPgJ8KJesl+hshnPBD4LTKqXLCUANAPsF0CKRvWm5W+Pi6RZwErqXqeA24DBhLF0rZptkhfUUhQbO7QEHBUJmjZqFhl7NQ/sEsCWjf2KjTo+AlzXbeoYAAPq80Zgmxp0McEOxQLOiNiiSsqpATsK3A+MJUhXZCTyd8Cr1dgGVgowLUEvAL6tZrtcww7NAAeAg3VipjTAisAR4CEDtLZfZRV/fQdYbya34+6+ANwiElJRamABmhdVPGxmPStISdefFjUbVfYrrqGO48DNymaFnVSza8QrJalZrGzTmHiz/2UESIOdBbBJ4G/ynCgh/tITcz/wwnaCpdXsEuDeDPHQmLj4YzkkppzyOQ2wIfO8JPt1ADiv1WBpj3EW8BUl5lEdO3RQVK2UUcU0ICeAH4q7zwKYluBFUcW/q7BEA+Zt6G4JX8JWpx2bZQBp7v4A8KgaUBpIkQIhAn4sASrA+RKoxgqsKKN0/Qf4l3jWhRpg3dbKeOhK4IEUd18WEMeAqRx2SEvJdpOKaFv4JklVtHRltV/jIl3HE7RgXLSkKTu0AfhZhrTjvxIEPqEGmEfNRoD3mTGECVIdyHUjOdTRj3NBwFoyOWPFPDt32vEZcb310o5Z4DEBKc6hZrGyY1+UcktauURPoC3PRBnVcU7Mgn2nLY2o2fXAv1PsUEk82R5TbMujZncDL2kggdXXXQzck0MdKzJuO55/5AHo9cAfUtx9JHZo2HijPAHjLuAtTeZgduxvk/tmeX5JeWEP1FCWWVkPfM/8c5IdOi0gjapYJM4YRccSKmwG1rQwq9f3KAAflbQmrjO2OTV+D9SepJnwN14jacdEjbRDu/tDotvlBqTIg/0b4JwaEtGKOC9U3rHe+ObTgApN2vFwStoRiXc5klBlrNBYbjYD3K5qRa2sdQ8IYBubAcoP5myx8PXsUCyx0CMSsMVNAJQkWT59uL7FtaKCsrUNARWoEsjeDPHQqEjSUpPAZPF8f5IXawVgHqjXNQpUKHGRz/CXE9z9skjRvhxpR7PSpSP6HwDPb7LW3TRQSBKrQdJq9oS4+7kOAJSWBN/ahFdsGqgLpAYUmZlcFAk6YYCrrMCpAdsDXNtpiQqBD8qKaiz6H0jqMSo1pfVq5oIVXNbyKnkp8Htgq0TuQSfGFUooUJGH+Z8TYtyfIQB20wqOj+c2ATfKmAudAOpiNSuheLPnSGmh0oVrXqGM1VcjO/bQ5wog/pg1qxb0wGaOjs2OPeKny96iPED1jz5QfaD6QPWB6gPVB6p/9IHqA9UHqg9UH6g+UH2g+gd1FwXbfVRU2abSq91O7QYqEmAKptbVc9LcrsH6NcECrr59B642v1MtM5W7vILaVqD8SokHYxtwGfA54D7grbi2sBHVIRA9nYDya2B+pcT3mbwLtzZYUEtOv8QtOX0Nt4ZWUBK4qoGK1Cb8SeCTuA2pv1WSFSnJKeAWMG7H7Sy511xXWW1AxcpYR7gtzBtxPSVLdSQlUpI3DNwAvB3Xs+JXVrrOfoVNSJHfjbsduBy4CbfVOIvtsbZsO67z82Zzj7iXgfKx0GHg/SINuxqUBu0d/Ub7S3EdWEUZX6UXgfIz/E3cCvOvZPabtS/afp0CPgW8AfizeW7PAOUXRa/Crf2jvF3QQsewDtd68aNuUcFGgApktrdS3REXKZUMWhiLDfa6Mfe25R1in/yOuKiF+Vy7Yqugk0DpuKcAfEyCzFvFZkVd2v1daBT8sEU7bSOqG/cfwu2I8xIx0AUbPvQ41ykV73gKU2tH3CtUuBCsII2Jzww+RHV7eFDHRrY1KQ5MNL4Jx3RxB9VNaZ0CS48lAq4A/gL8ArgoxUuv7VSZRduvQVy72pBIWifqUFq6LwB+jmu6vEI1F9Q7JsRcaMkqhR0YcAm4EHhZm6VKb1kcBD4vE7RZ/b5QY6I8KMumGuvP0YEOqsBym59RptpP+CWxj7WqrBakQLXQbVC/8+eOAVZ2C2SrpHZZ1biuSUjc6wEU4PbZPymee51SzwDXZ7ytU0C165jF7WD+OvARsS1xShuIBmgO198TinkYVKpXxnVJfB+YGuhx/rt3S3lng1Gzem4/UA1Qx3B0AGeZTb4l8X77JOsIB3qYxQxcPT6PHUJU7BSOJeM1CbugPUhHxN7NA2GvL4DqelaaFJ2i2lj9cuBcqv0wvgoSCkh/Ba7GddeHQDzQ5eqVNpFhBju0JCBNSbD5LCNFXhrX4Bo1vwHcqYCL6dBKcaMBaxFH2pC3RKNV87S8/NlUyUxtnDQgoNyFa8ebUOOIk8Q3Unwl+xLaV5ttgd2U4o0sndJVkmDHGceh28qmJNg8noGRbIeydXUZySxQJ+UhnQTK0phsydFEGZtW3kNisBcTSLU0QAdxK0CZe2uWzQt5HpVWNTLWA0rXrHzaMZnAm5J2LovK7DdEXUmsiaclcj8zbyf84+amscxK3EagLK/Be6hyouQlzhrHUYKcSOHhrIikbmi0N3lrAupHzINbBVSgCmfg2lb/2CCV0bxUVZ803FJJduhBsXlNMSNeZwYZKUq142oQjUqYv997eSp74p0JXJlZ7jeDYxCqZYdKhhbuw4Z2pOHYcQ1V1gxLbXRUim/TTXSo+3v5ZPUTRlqz0q0VxQ4dMgQ5SXSRC1IwPLfVdLdX1mF4Lkr5Ybfii8rLixlLcvlgg2o2JaFCLXevpejXEnm3fLOcR/rTNUizYsU2OCxiP9+EhOUByIcqRxUYtSi595o2/7a00nqwblHiW4t25Jh4mZM5wcpjhxZkUg4qd2/tUKzA/LhyEm1fJvM3v5ynklIVE8gjYgkrdhp67EaZfjTj4XEce8eJFDtUxNFLnrcStNsFBdpNhpRYq2OkOOw8RdtCE7y+3psNSVwUp9ih+2gduU1L2Fmfh/t2jIUUNrJJkbBhxQIU5+Dy3SdSVEpx949JcNpV1NraW7wKxxhWj2ezIi+7VxJrq1o2DivhNr0OS9qUBFCkvN4XgDO6lazdphrvVJUFD5j1jmV5+QdMOFExzD3jGdKOGLcud1Gv0P/rGVyH29B6MiWcmBbARiVAHBNg9srvsqQdV3cDIXuz9ut88Tpp4cSi5I77RSWLGdKOGxUoBXq0Z8cW2C7D8X+n0XFXUtz9nJRhz1lt3xJkFxdvUMV7b7/K5tuAdEStpWgr8MpeVbNGVoHPwG20n6lBs21DhiGVLK9agOrZrwtxq7ePGm48X5PfgeuJWdvN381CG7+pIlBbfryEXCJpxlqRtBG10oHa6NXVx/8Ba+cluUx5B18AAAAASUVORK5CYII=", $d = ({ className: e }) => /* @__PURE__ */ s("img", {
|
|
3915
|
+
src: Zd,
|
|
3916
3916
|
alt: "",
|
|
3917
3917
|
"aria-hidden": "true",
|
|
3918
3918
|
className: e,
|
|
3919
3919
|
draggable: !1
|
|
3920
|
-
}),
|
|
3921
|
-
var
|
|
3922
|
-
var
|
|
3923
|
-
const t =
|
|
3920
|
+
}), _d = "https://graphy.app/?utm_source=chart-mark&utm_medium=embed", eu = "Made with Graphy — open graphy.app";
|
|
3921
|
+
var tu = "vultop0";
|
|
3922
|
+
var ru = "vultop2", nu = "vultop3", ou = "vultop4", au = "vultop5", iu = "vultop6", su = "vultop7", lu = (e) => {
|
|
3923
|
+
const t = cu(e.trim());
|
|
3924
3924
|
if (t === null) return "light";
|
|
3925
|
-
const r =
|
|
3925
|
+
const r = du(t);
|
|
3926
3926
|
return r <= 0.22 ? "dark" : r <= 0.65 ? "mid" : "light";
|
|
3927
|
-
},
|
|
3927
|
+
}, cu = (e) => {
|
|
3928
3928
|
if (!e.startsWith("#")) return null;
|
|
3929
3929
|
const t = e.slice(1);
|
|
3930
3930
|
if (t.length === 3) {
|
|
@@ -3940,149 +3940,149 @@ var nu = "vultop2", ou = "vultop3", au = "vultop4", iu = "vultop5", su = "vultop
|
|
|
3940
3940
|
green: Number.parseInt(t.slice(2, 4), 16),
|
|
3941
3941
|
blue: Number.parseInt(t.slice(4, 6), 16)
|
|
3942
3942
|
} : null;
|
|
3943
|
-
},
|
|
3943
|
+
}, du = ({ red: e, green: t, blue: r }) => {
|
|
3944
3944
|
const n = (o) => {
|
|
3945
3945
|
const a = o / 255;
|
|
3946
3946
|
return a <= 0.03928 ? a / 12.92 : ((a + 0.055) / 1.055) ** 2.4;
|
|
3947
3947
|
};
|
|
3948
3948
|
return 0.2126 * n(e) + 0.7152 * n(t) + 0.0722 * n(r);
|
|
3949
|
-
},
|
|
3950
|
-
const { background: r } =
|
|
3949
|
+
}, uu = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", Eo = ({ visual: e, placement: t }) => {
|
|
3950
|
+
const { background: r } = cn(T()), n = lu(r);
|
|
3951
3951
|
return /* @__PURE__ */ b("a", {
|
|
3952
|
-
className: Qe(
|
|
3953
|
-
href:
|
|
3952
|
+
className: Qe(tu, e === "mini" && "vultop1", t === "footer" ? iu : su),
|
|
3953
|
+
href: _d,
|
|
3954
3954
|
target: "_blank",
|
|
3955
3955
|
rel: "noopener noreferrer",
|
|
3956
|
-
"aria-label":
|
|
3956
|
+
"aria-label": eu,
|
|
3957
3957
|
"data-visual": e,
|
|
3958
3958
|
"data-zone": n,
|
|
3959
3959
|
children: [/* @__PURE__ */ s("span", {
|
|
3960
|
-
className:
|
|
3961
|
-
children: /* @__PURE__ */ s(
|
|
3960
|
+
className: ru,
|
|
3961
|
+
children: /* @__PURE__ */ s($d, { className: nu })
|
|
3962
3962
|
}), /* @__PURE__ */ b("span", {
|
|
3963
|
-
className:
|
|
3963
|
+
className: ou,
|
|
3964
3964
|
children: [/* @__PURE__ */ s("span", { children: "Made with" }), /* @__PURE__ */ s("span", {
|
|
3965
|
-
className:
|
|
3965
|
+
className: au,
|
|
3966
3966
|
children: "Graphy"
|
|
3967
3967
|
})]
|
|
3968
3968
|
})]
|
|
3969
3969
|
});
|
|
3970
|
-
},
|
|
3970
|
+
}, Po = U({
|
|
3971
3971
|
Title: null,
|
|
3972
3972
|
Caption: null,
|
|
3973
3973
|
TextAnnotation: null
|
|
3974
|
-
}), wf = ({ editors: e, children: t }) => /* @__PURE__ */ s(
|
|
3974
|
+
}), wf = ({ editors: e, children: t }) => /* @__PURE__ */ s(Po.Provider, {
|
|
3975
3975
|
value: e,
|
|
3976
3976
|
children: t
|
|
3977
|
-
}), or = () => D(
|
|
3978
|
-
var
|
|
3979
|
-
var
|
|
3980
|
-
const { Caption: c } = or(), d = r === "editable" ? c : null, u = o && (d !== null || n !== null), v = i && a !== null &&
|
|
3977
|
+
}), or = () => D(Po);
|
|
3978
|
+
var hu = "_4dlrid1", vu = "xfz7dq0";
|
|
3979
|
+
var gu = "xfz7dq2", fu = "xfz7dq3", pu = "xfz7dq4", mu = "xfz7dq5", Au = ({ ref: e, footerRect: t, mode: r = "readonly", caption: n, isCaptionVisible: o, source: a, isSourceVisible: i, brandMark: l }) => {
|
|
3980
|
+
const { Caption: c } = or(), d = r === "editable" ? c : null, u = o && (d !== null || n !== null), v = i && a !== null && wu(a), g = l !== "hidden";
|
|
3981
3981
|
return !u && !v && !g ? null : /* @__PURE__ */ b("div", {
|
|
3982
3982
|
ref: e,
|
|
3983
|
-
className:
|
|
3983
|
+
className: vu,
|
|
3984
3984
|
style: {
|
|
3985
3985
|
left: t.x,
|
|
3986
3986
|
top: t.y,
|
|
3987
3987
|
width: t.width
|
|
3988
3988
|
},
|
|
3989
|
-
children: [u ? d ? /* @__PURE__ */ s(d, { caption: n }) : /* @__PURE__ */ s(
|
|
3989
|
+
children: [u ? d ? /* @__PURE__ */ s(d, { caption: n }) : /* @__PURE__ */ s(yu, { caption: n }) : null, (v || g) && /* @__PURE__ */ b("div", {
|
|
3990
3990
|
className: "xfz7dq1",
|
|
3991
|
-
children: [v && /* @__PURE__ */ s(
|
|
3991
|
+
children: [v && /* @__PURE__ */ s(xu, { source: a }), l !== "hidden" ? /* @__PURE__ */ s(Eo, {
|
|
3992
3992
|
visual: l,
|
|
3993
3993
|
placement: "footer"
|
|
3994
3994
|
}) : null]
|
|
3995
3995
|
})]
|
|
3996
3996
|
});
|
|
3997
|
-
},
|
|
3998
|
-
className:
|
|
3997
|
+
}, yu = ({ caption: e }) => e === null ? null : typeof e == "string" ? /* @__PURE__ */ s("p", {
|
|
3998
|
+
className: hu,
|
|
3999
3999
|
children: e
|
|
4000
|
-
}) : /* @__PURE__ */ s(Ce, { content: e }),
|
|
4001
|
-
const t = Kt(e.url) ? e.url : void 0, r = e.label ?? (t !== void 0 ?
|
|
4000
|
+
}) : /* @__PURE__ */ s(Ce, { content: e }), xu = ({ source: e }) => {
|
|
4001
|
+
const t = Kt(e.url) ? e.url : void 0, r = e.label ?? (t !== void 0 ? bu(t) : "");
|
|
4002
4002
|
return r === "" && t === void 0 ? null : /* @__PURE__ */ b("span", {
|
|
4003
|
-
className:
|
|
4003
|
+
className: gu,
|
|
4004
4004
|
children: [/* @__PURE__ */ s("span", {
|
|
4005
|
-
className:
|
|
4005
|
+
className: pu,
|
|
4006
4006
|
children: "Source:"
|
|
4007
4007
|
}), t !== void 0 ? /* @__PURE__ */ s("a", {
|
|
4008
|
-
className:
|
|
4008
|
+
className: fu,
|
|
4009
4009
|
href: t,
|
|
4010
4010
|
target: "_blank",
|
|
4011
4011
|
rel: "noopener noreferrer",
|
|
4012
4012
|
children: r
|
|
4013
4013
|
}) : /* @__PURE__ */ s("span", {
|
|
4014
|
-
className:
|
|
4014
|
+
className: mu,
|
|
4015
4015
|
children: r
|
|
4016
4016
|
})]
|
|
4017
4017
|
});
|
|
4018
|
-
},
|
|
4018
|
+
}, bu = (e) => {
|
|
4019
4019
|
try {
|
|
4020
4020
|
return new URL(e).hostname;
|
|
4021
4021
|
} catch {
|
|
4022
4022
|
return e;
|
|
4023
4023
|
}
|
|
4024
|
-
},
|
|
4025
|
-
var
|
|
4024
|
+
}, wu = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Kt(e.url), Su = "_1k4qtbg0";
|
|
4025
|
+
var ku = 22, Ru = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTitleVisible: o, subtitle: a, isSubtitleVisible: i, brandMark: l }) => {
|
|
4026
4026
|
const { Title: c } = or(), d = r === "editable" ? c : null, u = d !== null, v = o && (u || n !== null), g = i && (u || a !== null), h = l !== "hidden";
|
|
4027
4027
|
return !v && !g && !h ? null : /* @__PURE__ */ b("div", {
|
|
4028
4028
|
ref: e,
|
|
4029
|
-
className: Qe(
|
|
4029
|
+
className: Qe(Su, h && "_1k4qtbg1"),
|
|
4030
4030
|
style: {
|
|
4031
4031
|
left: t.x,
|
|
4032
4032
|
top: t.y,
|
|
4033
4033
|
width: t.width,
|
|
4034
|
-
...h && !v && !g ? { minHeight:
|
|
4034
|
+
...h && !v && !g ? { minHeight: ku } : {}
|
|
4035
4035
|
},
|
|
4036
4036
|
children: [d ? /* @__PURE__ */ s(d, {
|
|
4037
4037
|
title: n,
|
|
4038
4038
|
isTitleVisible: o,
|
|
4039
4039
|
isSubtitleVisible: i,
|
|
4040
4040
|
subtitle: a
|
|
4041
|
-
}, [o ? "title" : "", i ? "subtitle" : ""].join("-")) : /* @__PURE__ */ s(
|
|
4041
|
+
}, [o ? "title" : "", i ? "subtitle" : ""].join("-")) : /* @__PURE__ */ s(Cu, {
|
|
4042
4042
|
title: n,
|
|
4043
4043
|
isTitleVisible: o,
|
|
4044
4044
|
isSubtitleVisible: i,
|
|
4045
4045
|
subtitle: a
|
|
4046
|
-
}), l !== "hidden" ? /* @__PURE__ */ s(
|
|
4046
|
+
}), l !== "hidden" ? /* @__PURE__ */ s(Eo, {
|
|
4047
4047
|
visual: l,
|
|
4048
4048
|
placement: "header"
|
|
4049
4049
|
}) : null]
|
|
4050
4050
|
});
|
|
4051
|
-
},
|
|
4051
|
+
}, Cu = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n }) => /* @__PURE__ */ b(P, { children: [t && e !== null && (typeof e == "string" ? /* @__PURE__ */ s("h1", {
|
|
4052
4052
|
className: "_4dlrid0",
|
|
4053
4053
|
children: e
|
|
4054
4054
|
}) : /* @__PURE__ */ s(Ce, { content: e })), r && n !== null && (typeof n == "string" ? /* @__PURE__ */ s("p", {
|
|
4055
4055
|
className: "_4dlrid1",
|
|
4056
4056
|
children: n
|
|
4057
|
-
}) : /* @__PURE__ */ s(Ce, { content: n }))] }),
|
|
4057
|
+
}) : /* @__PURE__ */ s(Ce, { content: n }))] }), Eu = (e) => {
|
|
4058
4058
|
const t = T(), r = C((n) => n.config.appearance.textScale);
|
|
4059
4059
|
return m(() => at(t, r, e), [
|
|
4060
4060
|
t,
|
|
4061
4061
|
r,
|
|
4062
4062
|
e
|
|
4063
4063
|
]);
|
|
4064
|
-
},
|
|
4064
|
+
}, Bo = () => {
|
|
4065
4065
|
const e = T();
|
|
4066
|
-
return m(() =>
|
|
4067
|
-
},
|
|
4068
|
-
groupRow: () =>
|
|
4069
|
-
item: () =>
|
|
4070
|
-
trendRow: () =>
|
|
4071
|
-
valueRow: () =>
|
|
4072
|
-
}),
|
|
4066
|
+
return m(() => un(e), [e]);
|
|
4067
|
+
}, Pu = "_1u9qprb0", Bu = "_1u9qprb1", Iu = /* @__PURE__ */ Ni({
|
|
4068
|
+
groupRow: () => Nu,
|
|
4069
|
+
item: () => Io,
|
|
4070
|
+
trendRow: () => Lu,
|
|
4071
|
+
valueRow: () => Tu
|
|
4072
|
+
}), Tu = "_9aen060", Lu = "_9aen061", Nu = "_9aen062", Io = "_9aen063", Mu = {
|
|
4073
4073
|
xxs: 8,
|
|
4074
4074
|
xs: 12,
|
|
4075
4075
|
sm: 16,
|
|
4076
4076
|
md: 20,
|
|
4077
4077
|
lg: 24,
|
|
4078
4078
|
xl: 36
|
|
4079
|
-
},
|
|
4079
|
+
}, Fu = {
|
|
4080
4080
|
primary: "asohov1 asohov0",
|
|
4081
4081
|
secondary: "asohov2 asohov0"
|
|
4082
|
-
},
|
|
4083
|
-
const a = V(), i =
|
|
4082
|
+
}, To = ({ children: e, title: t, variant: r = "primary", size: n = "sm", ...o }) => {
|
|
4083
|
+
const a = V(), i = Mu[n];
|
|
4084
4084
|
return /* @__PURE__ */ b("svg", {
|
|
4085
|
-
className:
|
|
4085
|
+
className: Fu[r],
|
|
4086
4086
|
"aria-labelledby": t ? a : void 0,
|
|
4087
4087
|
height: i,
|
|
4088
4088
|
width: i,
|
|
@@ -4095,7 +4095,7 @@ var Ru = 22, Cu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4095
4095
|
children: t
|
|
4096
4096
|
}), e]
|
|
4097
4097
|
});
|
|
4098
|
-
},
|
|
4098
|
+
}, Du = (e) => /* @__PURE__ */ s(To, {
|
|
4099
4099
|
...e,
|
|
4100
4100
|
children: /* @__PURE__ */ b("g", {
|
|
4101
4101
|
stroke: "currentColor",
|
|
@@ -4104,7 +4104,7 @@ var Ru = 22, Cu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4104
4104
|
strokeLinejoin: "round",
|
|
4105
4105
|
children: [/* @__PURE__ */ s("path", { d: "m5 12 7-7 7 7" }), /* @__PURE__ */ s("path", { d: "M12 19V5" })]
|
|
4106
4106
|
})
|
|
4107
|
-
}),
|
|
4107
|
+
}), Hu = (e) => /* @__PURE__ */ s(To, {
|
|
4108
4108
|
...e,
|
|
4109
4109
|
children: /* @__PURE__ */ s("g", {
|
|
4110
4110
|
stroke: "currentColor",
|
|
@@ -4113,8 +4113,8 @@ var Ru = 22, Cu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4113
4113
|
strokeLinejoin: "round",
|
|
4114
4114
|
children: /* @__PURE__ */ s("path", { d: "M5 12h14" })
|
|
4115
4115
|
})
|
|
4116
|
-
}),
|
|
4117
|
-
var
|
|
4116
|
+
}), Ou = "n7clvo0", Gu = "n7clvo1", Wu = "n7clvo2", Vu = "n7clvo3";
|
|
4117
|
+
var Uu = ({ segment: e, itemStyle: t }) => {
|
|
4118
4118
|
const r = ce();
|
|
4119
4119
|
if (e.kind === "swatch") return /* @__PURE__ */ s(Xe, {
|
|
4120
4120
|
shape: r(e.swatch.geom, "cartesian")?.swatchShape ?? "square",
|
|
@@ -4124,50 +4124,50 @@ var Qu = ({ segment: e, itemStyle: t }) => {
|
|
|
4124
4124
|
height: e.size
|
|
4125
4125
|
});
|
|
4126
4126
|
if (e.kind === "trendArrow") {
|
|
4127
|
-
const a =
|
|
4127
|
+
const a = Lo(t, e.direction);
|
|
4128
4128
|
return /* @__PURE__ */ s("div", {
|
|
4129
|
-
className: He(
|
|
4129
|
+
className: He(Vu, e.direction === "down" && "n7clvo4"),
|
|
4130
4130
|
style: {
|
|
4131
4131
|
color: a,
|
|
4132
4132
|
backgroundColor: e.direction === "flat" ? O(y.textPrimary, 0.1) : O(a, 0.2)
|
|
4133
4133
|
},
|
|
4134
|
-
children: e.direction === "flat" ? /* @__PURE__ */ s(
|
|
4134
|
+
children: e.direction === "flat" ? /* @__PURE__ */ s(Hu, {
|
|
4135
4135
|
size: "xs",
|
|
4136
4136
|
title: ""
|
|
4137
|
-
}) : /* @__PURE__ */ s(
|
|
4137
|
+
}) : /* @__PURE__ */ s(Du, {
|
|
4138
4138
|
size: "xs",
|
|
4139
4139
|
title: ""
|
|
4140
4140
|
})
|
|
4141
4141
|
});
|
|
4142
4142
|
}
|
|
4143
|
-
const { className: n, style: o } =
|
|
4143
|
+
const { className: n, style: o } = Qu(e, t);
|
|
4144
4144
|
return /* @__PURE__ */ s("span", {
|
|
4145
4145
|
className: n,
|
|
4146
4146
|
style: o,
|
|
4147
4147
|
children: e.text
|
|
4148
4148
|
});
|
|
4149
|
-
},
|
|
4149
|
+
}, Qu = (e, t) => {
|
|
4150
4150
|
switch (e.textRole) {
|
|
4151
4151
|
case "value":
|
|
4152
4152
|
return { style: ke(t.number) };
|
|
4153
4153
|
case "caption":
|
|
4154
4154
|
return {
|
|
4155
|
-
className:
|
|
4155
|
+
className: Ou,
|
|
4156
4156
|
style: ke(t.caption)
|
|
4157
4157
|
};
|
|
4158
4158
|
case "label":
|
|
4159
4159
|
return {
|
|
4160
|
-
className:
|
|
4160
|
+
className: Wu,
|
|
4161
4161
|
style: ke(t.label)
|
|
4162
4162
|
};
|
|
4163
4163
|
case "trendPercentage":
|
|
4164
4164
|
return { style: ke({
|
|
4165
4165
|
...t.trend,
|
|
4166
|
-
textColor:
|
|
4166
|
+
textColor: Lo(t, e.trendDirection ?? "up")
|
|
4167
4167
|
}) };
|
|
4168
4168
|
case "trendReference":
|
|
4169
4169
|
return {
|
|
4170
|
-
className:
|
|
4170
|
+
className: Gu,
|
|
4171
4171
|
style: ke({
|
|
4172
4172
|
...t.trend,
|
|
4173
4173
|
textColor: void 0
|
|
@@ -4176,7 +4176,7 @@ var Qu = ({ segment: e, itemStyle: t }) => {
|
|
|
4176
4176
|
default:
|
|
4177
4177
|
return e.textRole;
|
|
4178
4178
|
}
|
|
4179
|
-
},
|
|
4179
|
+
}, Lo = (e, t) => {
|
|
4180
4180
|
switch (t) {
|
|
4181
4181
|
case "up":
|
|
4182
4182
|
return e.trendUp.textColor;
|
|
@@ -4187,39 +4187,39 @@ var Qu = ({ segment: e, itemStyle: t }) => {
|
|
|
4187
4187
|
default:
|
|
4188
4188
|
return t;
|
|
4189
4189
|
}
|
|
4190
|
-
},
|
|
4191
|
-
className:
|
|
4192
|
-
children:
|
|
4190
|
+
}, Yu = ({ item: e, itemStyle: t }) => /* @__PURE__ */ s("div", {
|
|
4191
|
+
className: Io,
|
|
4192
|
+
children: qr(e, t.swatch.size).map((r) => /* @__PURE__ */ s(Ku, {
|
|
4193
4193
|
row: r,
|
|
4194
4194
|
itemStyle: t
|
|
4195
4195
|
}, r.role))
|
|
4196
|
-
}),
|
|
4196
|
+
}), Ku = ({ row: e, itemStyle: t }) => {
|
|
4197
4197
|
const r = e.role === "trendRow";
|
|
4198
4198
|
return /* @__PURE__ */ s("div", {
|
|
4199
|
-
className:
|
|
4199
|
+
className: Iu[e.role],
|
|
4200
4200
|
"data-testid": r ? "headline-trend" : void 0,
|
|
4201
|
-
"data-direction": r ?
|
|
4201
|
+
"data-direction": r ? zu(e) : void 0,
|
|
4202
4202
|
role: r ? "img" : void 0,
|
|
4203
4203
|
"aria-label": r ? e.ariaLabel : void 0,
|
|
4204
|
-
children: e.segments.map((n, o) => /* @__PURE__ */ s(
|
|
4204
|
+
children: e.segments.map((n, o) => /* @__PURE__ */ s(Uu, {
|
|
4205
4205
|
segment: n,
|
|
4206
4206
|
itemStyle: t
|
|
4207
4207
|
}, o))
|
|
4208
4208
|
});
|
|
4209
|
-
},
|
|
4209
|
+
}, zu = (e) => {
|
|
4210
4210
|
const t = e.segments.find((r) => r.kind === "trendArrow");
|
|
4211
4211
|
return t?.kind === "trendArrow" ? t.direction : void 0;
|
|
4212
|
-
},
|
|
4213
|
-
const a =
|
|
4212
|
+
}, ju = ({ headline: e, rect: t, resolvedSize: r, visibleItemCount: n, isInDonutHole: o = !1 }) => {
|
|
4213
|
+
const a = Bo(), i = Eu(r), l = {
|
|
4214
4214
|
left: t.x,
|
|
4215
4215
|
top: t.y,
|
|
4216
4216
|
width: t.width,
|
|
4217
4217
|
height: t.height
|
|
4218
4218
|
};
|
|
4219
4219
|
if (e.kind === "grandTotal") {
|
|
4220
|
-
const c =
|
|
4220
|
+
const c = dn(i, o);
|
|
4221
4221
|
return /* @__PURE__ */ s("div", {
|
|
4222
|
-
className:
|
|
4222
|
+
className: Bu,
|
|
4223
4223
|
style: l,
|
|
4224
4224
|
children: /* @__PURE__ */ s("span", {
|
|
4225
4225
|
style: ke(c),
|
|
@@ -4228,35 +4228,35 @@ var Qu = ({ segment: e, itemStyle: t }) => {
|
|
|
4228
4228
|
});
|
|
4229
4229
|
}
|
|
4230
4230
|
return /* @__PURE__ */ s("div", {
|
|
4231
|
-
className:
|
|
4231
|
+
className: Pu,
|
|
4232
4232
|
style: {
|
|
4233
4233
|
...l,
|
|
4234
4234
|
gap: a.gap
|
|
4235
4235
|
},
|
|
4236
|
-
children: e.items.slice(0, n).map((c, d) => /* @__PURE__ */ s(
|
|
4236
|
+
children: e.items.slice(0, n).map((c, d) => /* @__PURE__ */ s(Yu, {
|
|
4237
4237
|
item: c,
|
|
4238
4238
|
itemStyle: i
|
|
4239
4239
|
}, `${c.label}-${d}`))
|
|
4240
4240
|
});
|
|
4241
|
-
},
|
|
4242
|
-
var
|
|
4243
|
-
const { fonts: n } = me(), o =
|
|
4241
|
+
}, Xu = "_1oj6yix0";
|
|
4242
|
+
var qu = "_1oj6yix2", Ju = 8, Zu = 16, $u = 2, _u = ({ legends: e, containerRect: t, textScale: r }) => {
|
|
4243
|
+
const { fonts: n } = me(), o = xo(n.legendLabel, r), { placements: a, hasOverlap: i } = eh(e, t, o);
|
|
4244
4244
|
if (a.length === 0) return null;
|
|
4245
|
-
const l = i ?
|
|
4245
|
+
const l = i ? Zu : Ju, c = l - $u;
|
|
4246
4246
|
return /* @__PURE__ */ b("div", {
|
|
4247
|
-
className:
|
|
4247
|
+
className: Xu,
|
|
4248
4248
|
children: [i && /* @__PURE__ */ s("svg", {
|
|
4249
4249
|
className: "_1oj6yix1",
|
|
4250
4250
|
width: t.width,
|
|
4251
4251
|
height: t.height,
|
|
4252
|
-
children: a.map((d) => /* @__PURE__ */ s(
|
|
4252
|
+
children: a.map((d) => /* @__PURE__ */ s(th, {
|
|
4253
4253
|
anchorY: d.anchorY,
|
|
4254
4254
|
labelY: d.y,
|
|
4255
4255
|
endX: c,
|
|
4256
4256
|
color: d.payload.color
|
|
4257
4257
|
}, d.payload.key))
|
|
4258
4258
|
}), a.map((d) => /* @__PURE__ */ s("span", {
|
|
4259
|
-
className:
|
|
4259
|
+
className: qu,
|
|
4260
4260
|
style: {
|
|
4261
4261
|
left: l,
|
|
4262
4262
|
top: d.y,
|
|
@@ -4265,7 +4265,7 @@ var Ju = "_1oj6yix2", Zu = 8, $u = 16, _u = 2, eh = ({ legends: e, containerRect
|
|
|
4265
4265
|
children: d.payload.label
|
|
4266
4266
|
}, d.payload.key))]
|
|
4267
4267
|
});
|
|
4268
|
-
},
|
|
4268
|
+
}, eh = (e, t, r) => m(() => {
|
|
4269
4269
|
const n = [];
|
|
4270
4270
|
for (const o of e) for (const a of o.items) {
|
|
4271
4271
|
if (a.normalizedY === null) continue;
|
|
@@ -4282,7 +4282,7 @@ var Ju = "_1oj6yix2", Zu = 8, $u = 16, _u = 2, eh = ({ legends: e, containerRect
|
|
|
4282
4282
|
return n.length === 0 || t.height <= 0 ? {
|
|
4283
4283
|
placements: [],
|
|
4284
4284
|
hasOverlap: !1
|
|
4285
|
-
} :
|
|
4285
|
+
} : Ta({
|
|
4286
4286
|
items: n,
|
|
4287
4287
|
containerHeight: t.height,
|
|
4288
4288
|
labelHeight: r
|
|
@@ -4291,7 +4291,7 @@ var Ju = "_1oj6yix2", Zu = 8, $u = 16, _u = 2, eh = ({ legends: e, containerRect
|
|
|
4291
4291
|
e,
|
|
4292
4292
|
t.height,
|
|
4293
4293
|
r
|
|
4294
|
-
]),
|
|
4294
|
+
]), th = ({ anchorY: e, labelY: t, endX: r, color: n }) => {
|
|
4295
4295
|
const o = r / 2;
|
|
4296
4296
|
return /* @__PURE__ */ s("path", {
|
|
4297
4297
|
d: `M0,${e} C${o},${e} ${o},${t} ${r},${t}`,
|
|
@@ -4300,11 +4300,11 @@ var Ju = "_1oj6yix2", Zu = 8, $u = 16, _u = 2, eh = ({ legends: e, containerRect
|
|
|
4300
4300
|
strokeWidth: 1,
|
|
4301
4301
|
strokeDasharray: "2 2"
|
|
4302
4302
|
});
|
|
4303
|
-
},
|
|
4303
|
+
}, rh = "_6a636s0", nh = () => {
|
|
4304
4304
|
const e = T();
|
|
4305
|
-
return m(() =>
|
|
4306
|
-
},
|
|
4307
|
-
var
|
|
4305
|
+
return m(() => pi(e), [e]);
|
|
4306
|
+
}, oh = "_1kjk02r0", ah = "_1kjk02r1", ih = "_1kjk02r2", sh = "_1kjk02r3", lh = "_1kjk02r4", ch = "_1kjk02r5", dh = "_1kjk02r6", uh = "_1kjk02r7", hh = "_1kjk02r8";
|
|
4307
|
+
var vh = "_1dw9dgx0", gh = "#9ca3af", Pt = "\0", fh = (e, t) => {
|
|
4308
4308
|
const r = [];
|
|
4309
4309
|
return e.forEach((n, o) => {
|
|
4310
4310
|
const a = n.aesthetics.includes("size");
|
|
@@ -4324,7 +4324,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4324
4324
|
});
|
|
4325
4325
|
}
|
|
4326
4326
|
}), r;
|
|
4327
|
-
},
|
|
4327
|
+
}, No = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ s(Ah, { pill: e }) : /* @__PURE__ */ s(mh, { pill: e }), ph = ({ color: e, lineType: t, shape: r, label: n }) => {
|
|
4328
4328
|
const { swatch: o } = tr();
|
|
4329
4329
|
return e ? /* @__PURE__ */ s(Xe, {
|
|
4330
4330
|
shape: r,
|
|
@@ -4336,23 +4336,23 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4336
4336
|
height: o.size,
|
|
4337
4337
|
strokeWidth: o.strokeWidth
|
|
4338
4338
|
}) : null;
|
|
4339
|
-
},
|
|
4339
|
+
}, mh = ({ pill: e }) => /* @__PURE__ */ b(P, { children: [/* @__PURE__ */ s(ph, {
|
|
4340
4340
|
color: e.visual.color,
|
|
4341
4341
|
lineType: e.primaryLineType,
|
|
4342
4342
|
shape: e.swatchShape,
|
|
4343
4343
|
label: e.formattedLabel
|
|
4344
|
-
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }),
|
|
4344
|
+
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }), Ah = ({ pill: e }) => {
|
|
4345
4345
|
const t = Number(e.visual.size);
|
|
4346
4346
|
return /* @__PURE__ */ b(P, { children: [/* @__PURE__ */ s("span", {
|
|
4347
|
-
className:
|
|
4347
|
+
className: vh,
|
|
4348
4348
|
style: {
|
|
4349
4349
|
width: t,
|
|
4350
4350
|
height: t,
|
|
4351
|
-
backgroundColor: e.visual.color ??
|
|
4351
|
+
backgroundColor: e.visual.color ?? gh
|
|
4352
4352
|
}
|
|
4353
4353
|
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
|
|
4354
|
-
},
|
|
4355
|
-
const r =
|
|
4354
|
+
}, yh = ({ hiddenPills: e, placement: t }) => {
|
|
4355
|
+
const r = io(), [n, o] = G(!1), { refs: a, floatingStyles: i } = yn({
|
|
4356
4356
|
open: n,
|
|
4357
4357
|
placement: t,
|
|
4358
4358
|
middleware: [
|
|
@@ -4382,26 +4382,26 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4382
4382
|
const l = t === "left" || t === "right", c = Math.min(e.length - 1, 2), d = Array.from({ length: c }, (u, v) => c - v);
|
|
4383
4383
|
return /* @__PURE__ */ b(P, { children: [/* @__PURE__ */ b("div", {
|
|
4384
4384
|
ref: a.setReference,
|
|
4385
|
-
className: He(
|
|
4386
|
-
[
|
|
4387
|
-
[
|
|
4385
|
+
className: He(oh, {
|
|
4386
|
+
[ih]: l,
|
|
4387
|
+
[ah]: !l
|
|
4388
4388
|
}),
|
|
4389
4389
|
children: [d.map((u) => /* @__PURE__ */ s("span", {
|
|
4390
|
-
className: He(
|
|
4391
|
-
[
|
|
4392
|
-
[
|
|
4390
|
+
className: He(sh, {
|
|
4391
|
+
[ch]: l,
|
|
4392
|
+
[lh]: !l
|
|
4393
4393
|
}),
|
|
4394
|
-
style:
|
|
4394
|
+
style: xh(u, l),
|
|
4395
4395
|
"aria-hidden": !0
|
|
4396
4396
|
}, u)), /* @__PURE__ */ s("button", {
|
|
4397
4397
|
type: "button",
|
|
4398
|
-
className: He(
|
|
4398
|
+
className: He(dh, { [uh]: n }),
|
|
4399
4399
|
onClick: () => o((u) => !u),
|
|
4400
4400
|
"aria-haspopup": "dialog",
|
|
4401
4401
|
"aria-expanded": n,
|
|
4402
4402
|
"aria-label": `Show ${e.length} hidden legend ${e.length === 1 ? "item" : "items"}`,
|
|
4403
4403
|
children: /* @__PURE__ */ b("span", {
|
|
4404
|
-
className:
|
|
4404
|
+
className: hh,
|
|
4405
4405
|
children: ["+", e.length]
|
|
4406
4406
|
})
|
|
4407
4407
|
})]
|
|
@@ -4415,22 +4415,22 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4415
4415
|
className: "_1kjk02ra",
|
|
4416
4416
|
children: e.map((u) => /* @__PURE__ */ s("li", {
|
|
4417
4417
|
className: "_1kjk02rb",
|
|
4418
|
-
children: /* @__PURE__ */ s(
|
|
4418
|
+
children: /* @__PURE__ */ s(No, { pill: u })
|
|
4419
4419
|
}, u.key))
|
|
4420
4420
|
})
|
|
4421
4421
|
})] });
|
|
4422
|
-
},
|
|
4422
|
+
}, xh = (e, t) => {
|
|
4423
4423
|
const r = -e * 4;
|
|
4424
4424
|
return { transform: t ? `translateY(${r}px)` : `translateX(${r}px)` };
|
|
4425
|
-
},
|
|
4425
|
+
}, bh = "_1cecisi0", wh = "_1cecisi1", Sh = "_1cecisi2", kh = {
|
|
4426
4426
|
start: "_1cecisi3",
|
|
4427
4427
|
center: "_1cecisi4",
|
|
4428
4428
|
end: "_1cecisi5"
|
|
4429
|
-
},
|
|
4429
|
+
}, Rh = {
|
|
4430
4430
|
right: "_1cecisi6",
|
|
4431
4431
|
left: "_1cecisi7"
|
|
4432
|
-
},
|
|
4433
|
-
const a = Ae(), i = me(), l =
|
|
4432
|
+
}, Ch = "_1cecisi8", Eh = ({ edge: e, formattedLegends: t, containerWidth: r, containerHeight: n, textScale: o }) => {
|
|
4433
|
+
const a = Ae(), i = me(), l = nh(), c = tr(), d = ce(), u = C((R) => R.coordSystem.type), v = m(() => fh(t, (R) => d(R, u)?.swatchShape ?? "square"), [
|
|
4434
4434
|
t,
|
|
4435
4435
|
d,
|
|
4436
4436
|
u
|
|
@@ -4443,14 +4443,14 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4443
4443
|
visibleCount: v.length,
|
|
4444
4444
|
hasOverflow: !1
|
|
4445
4445
|
};
|
|
4446
|
-
const R = J(c.item, i.fonts.familyDefault), N = Ye(c.item), E = 2 * (c.item.paddingInline + c.item.borderWidth), I = 2 * (c.item.paddingBlock + c.item.borderWidth), M = (be) => g ?
|
|
4446
|
+
const R = J(c.item, i.fonts.familyDefault), N = Ye(c.item), E = 2 * (c.item.paddingInline + c.item.borderWidth), I = 2 * (c.item.paddingBlock + c.item.borderWidth), M = (be) => g ? Ph(be, N, c.swatch.size, I) : Nr({
|
|
4447
4447
|
label: be.formattedLabel,
|
|
4448
|
-
swatchInlineSize:
|
|
4448
|
+
swatchInlineSize: Bh(be, c.swatch.size),
|
|
4449
4449
|
textMeasurer: a,
|
|
4450
4450
|
font: R,
|
|
4451
4451
|
swatchGap: i.legendSwatchGap,
|
|
4452
4452
|
horizontalChrome: E
|
|
4453
|
-
}), W = v.map(M), Y =
|
|
4453
|
+
}), W = v.map(M), Y = On(i.fonts.legendLabel, o), Te = xo(i.fonts.legendLabel, o), xe = (g ? Te + i.legendPillVerticalChrome : Nr({
|
|
4454
4454
|
label: `+${v.length}`,
|
|
4455
4455
|
swatchInlineSize: 0,
|
|
4456
4456
|
textMeasurer: a,
|
|
@@ -4458,7 +4458,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4458
4458
|
swatchGap: i.legendSwatchGap,
|
|
4459
4459
|
horizontalChrome: i.legendPillHorizontalChrome
|
|
4460
4460
|
})) + 8;
|
|
4461
|
-
return
|
|
4461
|
+
return Th({
|
|
4462
4462
|
pillSizes: W,
|
|
4463
4463
|
overflowPillSize: xe,
|
|
4464
4464
|
containerSize: h,
|
|
@@ -4475,30 +4475,30 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4475
4475
|
c
|
|
4476
4476
|
]);
|
|
4477
4477
|
if (v.length === 0) return null;
|
|
4478
|
-
const p = v.slice(0, A.visibleCount), x = v.slice(A.visibleCount), w = A.hasOverflow && x.length > 0, S =
|
|
4478
|
+
const p = v.slice(0, A.visibleCount), x = v.slice(A.visibleCount), w = A.hasOverflow && x.length > 0, S = Nh(c.item);
|
|
4479
4479
|
return /* @__PURE__ */ b("div", {
|
|
4480
|
-
className: He(
|
|
4481
|
-
[
|
|
4482
|
-
[
|
|
4483
|
-
[
|
|
4480
|
+
className: He(kh[f], bh, {
|
|
4481
|
+
[Sh]: g,
|
|
4482
|
+
[wh]: !g,
|
|
4483
|
+
[Rh[e === "left" ? "left" : "right"]]: g
|
|
4484
4484
|
}),
|
|
4485
4485
|
style: { gap: l.gap },
|
|
4486
4486
|
children: [p.map((R) => /* @__PURE__ */ s("div", {
|
|
4487
|
-
className:
|
|
4487
|
+
className: Ch,
|
|
4488
4488
|
style: S,
|
|
4489
|
-
children: /* @__PURE__ */ s(
|
|
4490
|
-
}, R.key)), w && /* @__PURE__ */ s(
|
|
4489
|
+
children: /* @__PURE__ */ s(No, { pill: R })
|
|
4490
|
+
}, R.key)), w && /* @__PURE__ */ s(yh, {
|
|
4491
4491
|
hiddenPills: x,
|
|
4492
|
-
placement:
|
|
4492
|
+
placement: Lh(e)
|
|
4493
4493
|
})]
|
|
4494
4494
|
});
|
|
4495
4495
|
}, Nr = ({ label: e, swatchInlineSize: t, textMeasurer: r, font: n, swatchGap: o, horizontalChrome: a }) => {
|
|
4496
4496
|
const i = r.measureText(e, n).width;
|
|
4497
4497
|
return t + (t > 0 ? o : 0) + i + a;
|
|
4498
|
-
},
|
|
4499
|
-
const o =
|
|
4498
|
+
}, Ph = (e, t, r, n) => {
|
|
4499
|
+
const o = Ih(e, r);
|
|
4500
4500
|
return Math.max(t, o) + n;
|
|
4501
|
-
},
|
|
4501
|
+
}, Bh = (e, t) => ht(e.visual, t, e.isBubble), Ih = (e, t) => e.isBubble ? ht(e.visual, t, !0) : t, Th = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
|
|
4502
4502
|
if (e.length === 0) return {
|
|
4503
4503
|
visibleCount: 0,
|
|
4504
4504
|
hasOverflow: !1
|
|
@@ -4520,7 +4520,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4520
4520
|
visibleCount: i,
|
|
4521
4521
|
hasOverflow: !0
|
|
4522
4522
|
};
|
|
4523
|
-
},
|
|
4523
|
+
}, Lh = (e) => {
|
|
4524
4524
|
switch (e) {
|
|
4525
4525
|
case "top":
|
|
4526
4526
|
return "bottom";
|
|
@@ -4531,7 +4531,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4531
4531
|
case "right":
|
|
4532
4532
|
return "left";
|
|
4533
4533
|
}
|
|
4534
|
-
},
|
|
4534
|
+
}, Nh = (e) => ({
|
|
4535
4535
|
...he(e),
|
|
4536
4536
|
color: e.textColor,
|
|
4537
4537
|
lineHeight: e.lineHeight,
|
|
@@ -4540,7 +4540,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4540
4540
|
paddingInline: e.paddingInline,
|
|
4541
4541
|
paddingBlock: e.paddingBlock,
|
|
4542
4542
|
...e.borderWidth > 0 ? { border: `${e.borderWidth}px solid ${e.borderColor}` } : {}
|
|
4543
|
-
}),
|
|
4543
|
+
}), Mh = Z(function({ formattedLegends: t, rects: r, textScale: n }) {
|
|
4544
4544
|
const o = m(() => {
|
|
4545
4545
|
const a = /* @__PURE__ */ new Map();
|
|
4546
4546
|
for (const i of t) {
|
|
@@ -4555,39 +4555,39 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4555
4555
|
return /* @__PURE__ */ s(P, { children: Array.from(o, ([a, i]) => {
|
|
4556
4556
|
const l = r[a];
|
|
4557
4557
|
return l === void 0 ? null : /* @__PURE__ */ b("div", {
|
|
4558
|
-
className:
|
|
4558
|
+
className: rh,
|
|
4559
4559
|
style: {
|
|
4560
4560
|
left: l.x,
|
|
4561
4561
|
top: l.y,
|
|
4562
4562
|
width: l.width,
|
|
4563
4563
|
height: l.height
|
|
4564
4564
|
},
|
|
4565
|
-
children: [/* @__PURE__ */ s(
|
|
4565
|
+
children: [/* @__PURE__ */ s(Eh, {
|
|
4566
4566
|
edge: a,
|
|
4567
4567
|
formattedLegends: i.pill,
|
|
4568
4568
|
containerWidth: l.width,
|
|
4569
4569
|
containerHeight: l.height,
|
|
4570
4570
|
textScale: n
|
|
4571
|
-
}), /* @__PURE__ */ s(
|
|
4571
|
+
}), /* @__PURE__ */ s(_u, {
|
|
4572
4572
|
legends: i.direct,
|
|
4573
4573
|
containerRect: l,
|
|
4574
4574
|
textScale: n
|
|
4575
4575
|
})]
|
|
4576
4576
|
}, a);
|
|
4577
4577
|
}) });
|
|
4578
|
-
}),
|
|
4578
|
+
}), Fh = ({ layers: e, primaryLayerId: t, coordSystem: r, resolveRenderer: n }) => {
|
|
4579
4579
|
const o = e.find((i) => i.id === t);
|
|
4580
4580
|
if (!o) return null;
|
|
4581
4581
|
const a = n(o.geom, r.type);
|
|
4582
4582
|
return a ? a.guideMode ?? null : null;
|
|
4583
|
-
},
|
|
4583
|
+
}, Mo = 1, Fo = "4 3", Dh = ({ panelRect: e }) => {
|
|
4584
4584
|
const { coordSystem: t, layers: r, scales: n } = C(K((l) => ({
|
|
4585
4585
|
coordSystem: l.coordSystem,
|
|
4586
4586
|
layers: l.layers,
|
|
4587
4587
|
scales: l.scales
|
|
4588
4588
|
}))), o = We((l) => l.hover.primary), a = ce();
|
|
4589
4589
|
if (r.length === 0 || o === null || !o.anchored) return null;
|
|
4590
|
-
const i =
|
|
4590
|
+
const i = Fh({
|
|
4591
4591
|
layers: r,
|
|
4592
4592
|
primaryLayerId: o.layerId,
|
|
4593
4593
|
coordSystem: t,
|
|
@@ -4612,20 +4612,20 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4612
4612
|
panelRect: e
|
|
4613
4613
|
});
|
|
4614
4614
|
}, Hh = ({ coordSystem: e, primary: t, panelRect: r }) => {
|
|
4615
|
-
const n =
|
|
4615
|
+
const n = Qa(e, t);
|
|
4616
4616
|
return /* @__PURE__ */ s(bt, {
|
|
4617
4617
|
panelRect: r,
|
|
4618
4618
|
children: /* @__PURE__ */ s("line", {
|
|
4619
4619
|
...n,
|
|
4620
4620
|
stroke: y.hoverGuideLineColor,
|
|
4621
|
-
strokeWidth:
|
|
4622
|
-
strokeDasharray:
|
|
4621
|
+
strokeWidth: Mo,
|
|
4622
|
+
strokeDasharray: Fo,
|
|
4623
4623
|
strokeLinecap: "round",
|
|
4624
4624
|
"data-testid": "hover-guide-line"
|
|
4625
4625
|
})
|
|
4626
4626
|
});
|
|
4627
4627
|
}, Oh = ({ coordSystem: e, scales: t, primary: r, panelRect: n }) => {
|
|
4628
|
-
const o =
|
|
4628
|
+
const o = Ya(e, t, r);
|
|
4629
4629
|
return o === null ? null : /* @__PURE__ */ s(bt, {
|
|
4630
4630
|
panelRect: n,
|
|
4631
4631
|
children: /* @__PURE__ */ s("rect", {
|
|
@@ -4635,7 +4635,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4635
4635
|
})
|
|
4636
4636
|
});
|
|
4637
4637
|
}, Gh = ({ coordSystem: e, primary: t, panelRect: r }) => {
|
|
4638
|
-
const n =
|
|
4638
|
+
const n = kn(r), o = q(t.x, e.innerRadius, n), a = q(t.x, 1, n);
|
|
4639
4639
|
return /* @__PURE__ */ s(bt, {
|
|
4640
4640
|
panelRect: r,
|
|
4641
4641
|
children: /* @__PURE__ */ s("line", {
|
|
@@ -4644,14 +4644,14 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4644
4644
|
x2: a.x,
|
|
4645
4645
|
y2: a.y,
|
|
4646
4646
|
stroke: y.hoverGuideLineColor,
|
|
4647
|
-
strokeWidth:
|
|
4648
|
-
strokeDasharray:
|
|
4647
|
+
strokeWidth: Mo,
|
|
4648
|
+
strokeDasharray: Fo,
|
|
4649
4649
|
strokeLinecap: "round",
|
|
4650
4650
|
"data-testid": "hover-guide-line"
|
|
4651
4651
|
})
|
|
4652
4652
|
});
|
|
4653
4653
|
}, Wh = ({ coordSystem: e, primary: t, panelRect: r }) => {
|
|
4654
|
-
const n =
|
|
4654
|
+
const n = Ka(e, t);
|
|
4655
4655
|
if (n === null) return null;
|
|
4656
4656
|
const o = pe(n);
|
|
4657
4657
|
return o ? /* @__PURE__ */ s(bt, {
|
|
@@ -4681,12 +4681,12 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4681
4681
|
"data-testid": "hover-guide",
|
|
4682
4682
|
children: t
|
|
4683
4683
|
}), Sf = (e, t, r) => {
|
|
4684
|
-
for (const n of Object.values(
|
|
4684
|
+
for (const n of Object.values(Ho)) {
|
|
4685
4685
|
const o = n(e, t, r);
|
|
4686
4686
|
if (o !== null) return o;
|
|
4687
4687
|
}
|
|
4688
4688
|
return null;
|
|
4689
|
-
}, Vh = (e) =>
|
|
4689
|
+
}, Vh = (e) => Ho[e] !== void 0, Uh = (e, t, r) => Do(e, r, t / 2), Qh = (e, t) => {
|
|
4690
4690
|
const r = Ue(e.start, t), n = Ue(e.end, t);
|
|
4691
4691
|
return r.x === n.x && r.y === n.y ? null : {
|
|
4692
4692
|
shape: "segment",
|
|
@@ -4696,7 +4696,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4696
4696
|
}, Yh = (e, { panel: t, measuredBoxes: r }) => {
|
|
4697
4697
|
const n = r.get(e.id);
|
|
4698
4698
|
if (n === void 0) return null;
|
|
4699
|
-
const o =
|
|
4699
|
+
const o = jr(e.align), a = Ue(e.at, t);
|
|
4700
4700
|
return {
|
|
4701
4701
|
shape: "rect",
|
|
4702
4702
|
rect: {
|
|
@@ -4709,7 +4709,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4709
4709
|
}, ot = (e, t) => (r, n, o) => {
|
|
4710
4710
|
const a = e(r).find((i) => i.id === n);
|
|
4711
4711
|
return a === void 0 ? null : t(a, o);
|
|
4712
|
-
},
|
|
4712
|
+
}, Do = (e, t, r = 0) => {
|
|
4713
4713
|
const n = zt(e, t);
|
|
4714
4714
|
return {
|
|
4715
4715
|
shape: "rect",
|
|
@@ -4720,14 +4720,14 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4720
4720
|
height: n.height + r * 2
|
|
4721
4721
|
}
|
|
4722
4722
|
};
|
|
4723
|
-
},
|
|
4723
|
+
}, Ho = {
|
|
4724
4724
|
text: ot((e) => e.textAnnotations, Yh),
|
|
4725
|
-
shape: ot((e) => e.shapes, (e, t) => Uh(e.region,
|
|
4726
|
-
image: ot((e) => e.images, (e, t) =>
|
|
4725
|
+
shape: ot((e) => e.shapes, (e, t) => Uh(e.region, gn(t.chromeReaders, e.id).borderWidth, t.panel)),
|
|
4726
|
+
image: ot((e) => e.images, (e, t) => Do(e.region, t.panel)),
|
|
4727
4727
|
arrow: ot((e) => e.arrows, (e, t) => Qh(e, t.panel))
|
|
4728
4728
|
}, Kh = (e, t) => {
|
|
4729
|
-
const r =
|
|
4730
|
-
return r !== null && Vh(r.kind) &&
|
|
4729
|
+
const r = Oa(e, t);
|
|
4730
|
+
return r !== null && Vh(r.kind) && $a(r);
|
|
4731
4731
|
}, zh = 200, jh = ({ engine: e, store: t, overlayRef: r }) => {
|
|
4732
4732
|
F(() => {
|
|
4733
4733
|
const n = r.current;
|
|
@@ -4784,7 +4784,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4784
4784
|
p.setHoverState(t.query(x.cursor)), p.setTooltipAnchor(qh(x.tooltip, f));
|
|
4785
4785
|
return;
|
|
4786
4786
|
}
|
|
4787
|
-
const w =
|
|
4787
|
+
const w = wi(A, f);
|
|
4788
4788
|
p.setHoverState(t.query(w)), p.setTooltipAnchor(null);
|
|
4789
4789
|
}, c = () => {
|
|
4790
4790
|
const h = r.getState();
|
|
@@ -4813,7 +4813,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4813
4813
|
}, Zh = ({ panelRect: e }) => {
|
|
4814
4814
|
const { engine: t, store: r, overlayRef: n } = ye(), o = ue((c) => {
|
|
4815
4815
|
const d = c.editTargetUnderPointer;
|
|
4816
|
-
return d !== null &&
|
|
4816
|
+
return d !== null && Dd(d);
|
|
4817
4817
|
}), a = ue((c) => {
|
|
4818
4818
|
const d = c.editTargetUnderPointer;
|
|
4819
4819
|
return d?.kind === "annotation" ? d.id : null;
|
|
@@ -4846,10 +4846,10 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4846
4846
|
}, [e, r]);
|
|
4847
4847
|
}, ev = () => {
|
|
4848
4848
|
const e = T();
|
|
4849
|
-
return m(() => (t) =>
|
|
4849
|
+
return m(() => (t) => ai(e, t), [e]);
|
|
4850
4850
|
}, wt = () => ue((e) => Ve(e, "move-drag")?.annotationId ?? Ve(e, "shape-resize-drag")?.annotationId ?? Ve(e, "arrow-endpoint-drag")?.annotationId ?? null), Je = (e) => {
|
|
4851
|
-
const t = C((i) => i.annotations), r =
|
|
4852
|
-
return m(() =>
|
|
4851
|
+
const t = C((i) => i.annotations), r = Ed(), n = Id(), o = se((i) => Mr(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = se((i) => Mr(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
|
|
4852
|
+
return m(() => ui({
|
|
4853
4853
|
annotations: t,
|
|
4854
4854
|
panelRect: e,
|
|
4855
4855
|
measuredBoxes: r,
|
|
@@ -4862,10 +4862,10 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4862
4862
|
o,
|
|
4863
4863
|
a
|
|
4864
4864
|
]);
|
|
4865
|
-
},
|
|
4865
|
+
}, Mr = (e, t, r, n) => {
|
|
4866
4866
|
const o = [t, ...[...r].sort()].join("\0");
|
|
4867
4867
|
e.has(o) || (e.add(o), console.warn(n));
|
|
4868
|
-
}, tv = 16,
|
|
4868
|
+
}, tv = 16, Oo = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ s("path", {
|
|
4869
4869
|
d: e,
|
|
4870
4870
|
stroke: "transparent",
|
|
4871
4871
|
strokeWidth: Math.max(t, tv),
|
|
@@ -4888,7 +4888,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4888
4888
|
return /* @__PURE__ */ b("g", {
|
|
4889
4889
|
pointerEvents: r ? void 0 : "none",
|
|
4890
4890
|
children: [
|
|
4891
|
-
r && /* @__PURE__ */ s(
|
|
4891
|
+
r && /* @__PURE__ */ s(Oo, {
|
|
4892
4892
|
linePath: e.linePath,
|
|
4893
4893
|
strokeWidth: e.strokeWidth
|
|
4894
4894
|
}),
|
|
@@ -4953,13 +4953,13 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
4953
4953
|
};
|
|
4954
4954
|
}, sv = (e, t, r) => {
|
|
4955
4955
|
try {
|
|
4956
|
-
return
|
|
4956
|
+
return Li(e, t) < rv ? r : t;
|
|
4957
4957
|
} catch {
|
|
4958
4958
|
return r;
|
|
4959
4959
|
}
|
|
4960
4960
|
}, lv = ({ panelRect: e, isEditable: t }) => {
|
|
4961
4961
|
const { arrows: r } = Je(e), n = wt(), o = ev(), a = m(() => r.filter((i) => i.id !== n).flatMap((i) => {
|
|
4962
|
-
const l = o(i.id), c =
|
|
4962
|
+
const l = o(i.id), c = Ba({
|
|
4963
4963
|
arrow: i,
|
|
4964
4964
|
style: l,
|
|
4965
4965
|
panelWidth: e.width,
|
|
@@ -5004,7 +5004,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5004
5004
|
return /* @__PURE__ */ b("g", {
|
|
5005
5005
|
pointerEvents: o ? void 0 : "none",
|
|
5006
5006
|
children: [
|
|
5007
|
-
o && /* @__PURE__ */ s(
|
|
5007
|
+
o && /* @__PURE__ */ s(Oo, {
|
|
5008
5008
|
linePath: e,
|
|
5009
5009
|
strokeWidth: n
|
|
5010
5010
|
}),
|
|
@@ -5047,7 +5047,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5047
5047
|
})]
|
|
5048
5048
|
});
|
|
5049
5049
|
}, hv = "_1i8rg6j0", vv = "75%", gv = ({ panelRect: e, isEditable: t }) => {
|
|
5050
|
-
const r =
|
|
5050
|
+
const r = jd(), n = ue((i) => {
|
|
5051
5051
|
const l = i.editTargetUnderPointer;
|
|
5052
5052
|
return l?.kind === "annotation" ? l.id : null;
|
|
5053
5053
|
}), o = cv(), a = m(() => new Set(o.filter((i) => i.kind === "annotation").map((i) => i.id)), [o]);
|
|
@@ -5083,7 +5083,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5083
5083
|
});
|
|
5084
5084
|
}, fv = (e) => `color-mix(in srgb, ${e} ${vv}, ${y.textPrimary})`, pv = () => {
|
|
5085
5085
|
const e = T();
|
|
5086
|
-
return m(() => (t) =>
|
|
5086
|
+
return m(() => (t) => gi(e, t), [e]);
|
|
5087
5087
|
}, mv = {
|
|
5088
5088
|
fill: "none",
|
|
5089
5089
|
contain: "xMidYMid meet",
|
|
@@ -5103,7 +5103,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5103
5103
|
opacity: r.alpha,
|
|
5104
5104
|
clipPath: c ? `url(#${n})` : void 0
|
|
5105
5105
|
})] });
|
|
5106
|
-
},
|
|
5106
|
+
}, Fr = ({ panelRect: e, zOrder: t }) => {
|
|
5107
5107
|
const r = Je(e).images, n = pv(), o = wt(), a = r.filter((i) => i.zOrder === t && i.id !== o);
|
|
5108
5108
|
return a.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5109
5109
|
x: e.x,
|
|
@@ -5126,7 +5126,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5126
5126
|
});
|
|
5127
5127
|
}, yv = () => {
|
|
5128
5128
|
const e = T();
|
|
5129
|
-
return m(() => (t) =>
|
|
5129
|
+
return m(() => (t) => gn(e, t), [e]);
|
|
5130
5130
|
}, xv = ({ shape: e, style: t, panel: r }) => {
|
|
5131
5131
|
const n = zt(e.region, r);
|
|
5132
5132
|
return /* @__PURE__ */ s("rect", {
|
|
@@ -5136,10 +5136,10 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5136
5136
|
height: n.height,
|
|
5137
5137
|
fill: t.color,
|
|
5138
5138
|
fillOpacity: t.alpha,
|
|
5139
|
-
stroke:
|
|
5139
|
+
stroke: ja(t) ?? "none",
|
|
5140
5140
|
strokeWidth: t.borderWidth
|
|
5141
5141
|
});
|
|
5142
|
-
},
|
|
5142
|
+
}, Dr = ({ panelRect: e, zOrder: t }) => {
|
|
5143
5143
|
const r = Je(e).shapes, n = yv(), o = wt(), a = r.filter((i) => i.zOrder === t && i.id !== o);
|
|
5144
5144
|
return a.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5145
5145
|
x: e.x,
|
|
@@ -5162,14 +5162,14 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5162
5162
|
});
|
|
5163
5163
|
}, bv = () => {
|
|
5164
5164
|
const e = T(), t = C((r) => r.config.appearance.textScale);
|
|
5165
|
-
return m(() => (r) =>
|
|
5166
|
-
}, wv = "_1aj6s5s0", kf = "_1aj6s5s1", Sv = 0.1, Rf = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(
|
|
5165
|
+
return m(() => (r) => Ai(e, r, t), [e, t]);
|
|
5166
|
+
}, wv = "_1aj6s5s0", kf = "_1aj6s5s1", Sv = 0.1, Rf = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Go, {
|
|
5167
5167
|
annotation: e,
|
|
5168
5168
|
panel: t,
|
|
5169
5169
|
style: r,
|
|
5170
5170
|
blockRef: n,
|
|
5171
5171
|
children: /* @__PURE__ */ s(Ce, { content: e.content })
|
|
5172
|
-
}),
|
|
5172
|
+
}), Go = ({ annotation: e, panel: t, style: r, blockRef: n, children: o }) => {
|
|
5173
5173
|
const a = Ue(e.at, t);
|
|
5174
5174
|
return /* @__PURE__ */ s("foreignObject", {
|
|
5175
5175
|
x: a.x,
|
|
@@ -5189,7 +5189,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5189
5189
|
})
|
|
5190
5190
|
});
|
|
5191
5191
|
}, kv = (e) => {
|
|
5192
|
-
const t =
|
|
5192
|
+
const t = jr(e);
|
|
5193
5193
|
return `translate(${-t.x * 100}%, ${-(1 - t.y) * 100}%)`;
|
|
5194
5194
|
}, Rv = (e) => ({
|
|
5195
5195
|
color: e.textColor,
|
|
@@ -5204,7 +5204,7 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5204
5204
|
if (e.background === "transparent") return {};
|
|
5205
5205
|
const t = e.alpha < 1 ? O(e.background, e.alpha) : e.background;
|
|
5206
5206
|
if (e.borderWidth <= 0) return { backgroundColor: t };
|
|
5207
|
-
const r = e.borderColor ??
|
|
5207
|
+
const r = e.borderColor ?? xs(e.background, Sv);
|
|
5208
5208
|
return {
|
|
5209
5209
|
backgroundColor: t,
|
|
5210
5210
|
boxShadow: `0 0 0 ${e.borderWidth}px ${r}`
|
|
@@ -5235,13 +5235,13 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5235
5235
|
}, a.id))
|
|
5236
5236
|
});
|
|
5237
5237
|
}, Iv = ({ annotation: e, panel: t, style: r }) => {
|
|
5238
|
-
const n =
|
|
5238
|
+
const n = Bd(e.id), o = ue((i) => i.caret?.annotationId === e.id), { TextAnnotation: a } = or();
|
|
5239
5239
|
return /* @__PURE__ */ s("g", {
|
|
5240
5240
|
...qe({
|
|
5241
5241
|
kind: "annotation",
|
|
5242
5242
|
id: e.id
|
|
5243
5243
|
}),
|
|
5244
|
-
children: /* @__PURE__ */ s(
|
|
5244
|
+
children: /* @__PURE__ */ s(Go, {
|
|
5245
5245
|
annotation: e,
|
|
5246
5246
|
panel: t,
|
|
5247
5247
|
style: r,
|
|
@@ -5249,15 +5249,15 @@ var gh = "_1dw9dgx0", fh = "#9ca3af", Pt = "\0", ph = (e, t) => {
|
|
|
5249
5249
|
children: o && a ? /* @__PURE__ */ s(a, { annotation: e }) : /* @__PURE__ */ s(Ce, { content: e.content })
|
|
5250
5250
|
})
|
|
5251
5251
|
});
|
|
5252
|
-
},
|
|
5252
|
+
}, Wo = () => {
|
|
5253
5253
|
const e = T(), t = C((r) => r.config.appearance.textScale);
|
|
5254
|
-
return m(() => (r, n) =>
|
|
5254
|
+
return m(() => (r, n) => ci(e, r, n, t), [e, t]);
|
|
5255
5255
|
}, Tv = "ph8bdc0";
|
|
5256
|
-
var Lv = "ph8bdc2",
|
|
5256
|
+
var Lv = "ph8bdc2", Hr = {
|
|
5257
5257
|
hittable: "ph8bdc4 ph8bdc3",
|
|
5258
5258
|
inert: "ph8bdc5 ph8bdc3"
|
|
5259
5259
|
}, Nv = ({ cx: e, cy: t, color: r, style: n }) => {
|
|
5260
|
-
const o =
|
|
5260
|
+
const o = Ac(n.shadow);
|
|
5261
5261
|
return /* @__PURE__ */ s("circle", {
|
|
5262
5262
|
cx: e,
|
|
5263
5263
|
cy: t,
|
|
@@ -5271,18 +5271,18 @@ var Lv = "ph8bdc2", Or = {
|
|
|
5271
5271
|
});
|
|
5272
5272
|
};
|
|
5273
5273
|
function Mv(e) {
|
|
5274
|
-
const t = Ae(), { formattingLocale: r } = z(), n =
|
|
5274
|
+
const t = Ae(), { formattingLocale: r } = z(), n = Wo(), o = C(K((c) => ({
|
|
5275
5275
|
pinnedNumbers: c.annotations.pinnedNumbers,
|
|
5276
5276
|
comments: c.annotations.comments,
|
|
5277
5277
|
coordSystem: c.coordSystem,
|
|
5278
5278
|
numberFormat: c.config.numberFormat,
|
|
5279
5279
|
parsingLocale: c.config.parsingLocale
|
|
5280
|
-
}))), a = r ?? o.parsingLocale, i = m(() =>
|
|
5280
|
+
}))), a = r ?? o.parsingLocale, i = m(() => Ca({
|
|
5281
5281
|
numberFormat: o.numberFormat,
|
|
5282
5282
|
locale: a
|
|
5283
5283
|
}), [o.numberFormat, a]), l = m(() => (c, d, u) => {
|
|
5284
5284
|
const v = n(c === "pinned-number" ? "pinnedNumber" : "comment", d).label, g = {
|
|
5285
|
-
family: v.fontFamily ??
|
|
5285
|
+
family: v.fontFamily ?? Qr,
|
|
5286
5286
|
size: v.fontSize,
|
|
5287
5287
|
weight: v.fontWeight
|
|
5288
5288
|
}, h = Fv(t, c, u, g), f = t.measureText(h, g), A = c === "pinned-number" ? 15 : 0;
|
|
@@ -5292,7 +5292,7 @@ function Mv(e) {
|
|
|
5292
5292
|
text: h
|
|
5293
5293
|
};
|
|
5294
5294
|
}, [t, n]);
|
|
5295
|
-
return m(() =>
|
|
5295
|
+
return m(() => ti({
|
|
5296
5296
|
pinnedNumbers: o.pinnedNumbers,
|
|
5297
5297
|
comments: o.comments,
|
|
5298
5298
|
panelRect: e,
|
|
@@ -5308,11 +5308,11 @@ function Mv(e) {
|
|
|
5308
5308
|
i
|
|
5309
5309
|
]);
|
|
5310
5310
|
}
|
|
5311
|
-
var Fv = (e, t, r, n) => t !== "comment" ? r :
|
|
5311
|
+
var Fv = (e, t, r, n) => t !== "comment" ? r : Si(r, 140, (o) => e.measureText(o, n).width), Or = "callouts", Dv = ({ panelRect: e }) => {
|
|
5312
5312
|
const { pinnedNumbers: t, comments: r } = C(K((h) => ({
|
|
5313
5313
|
pinnedNumbers: h.annotations.pinnedNumbers,
|
|
5314
5314
|
comments: h.annotations.comments
|
|
5315
|
-
}))), n = C((h) => h.coordSystem), o = ce(), a =
|
|
5315
|
+
}))), n = C((h) => h.coordSystem), o = ce(), a = Sn(), i = Wo(), l = Mv(e), { store: c } = ye(), d = m(() => {
|
|
5316
5316
|
const h = /* @__PURE__ */ new Map();
|
|
5317
5317
|
for (const f of t) h.set(f.id, f.at);
|
|
5318
5318
|
for (const f of r) h.set(f.id, f.at);
|
|
@@ -5330,11 +5330,11 @@ var Fv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5330
5330
|
t,
|
|
5331
5331
|
r,
|
|
5332
5332
|
i
|
|
5333
|
-
]), g = m(() =>
|
|
5333
|
+
]), g = m(() => ba(l, e), [l, e]);
|
|
5334
5334
|
return F(() => {
|
|
5335
5335
|
const h = c.getState();
|
|
5336
|
-
return h.publishPointerRegions(
|
|
5337
|
-
h.publishPointerRegions(
|
|
5336
|
+
return h.publishPointerRegions(Or, g), () => {
|
|
5337
|
+
h.publishPointerRegions(Or, []);
|
|
5338
5338
|
};
|
|
5339
5339
|
}, [c, g]), t.length === 0 && r.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5340
5340
|
x: e.x,
|
|
@@ -5358,7 +5358,7 @@ var Fv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5358
5358
|
height: h.miniRect.height,
|
|
5359
5359
|
overflow: "visible",
|
|
5360
5360
|
children: /* @__PURE__ */ b("div", {
|
|
5361
|
-
className: x ?
|
|
5361
|
+
className: x ? Hr.hittable : Hr.inert,
|
|
5362
5362
|
style: Ov(A.label),
|
|
5363
5363
|
children: [h.kind === "pinned-number" && /* @__PURE__ */ s("span", {
|
|
5364
5364
|
className: "ph8bdc1",
|
|
@@ -5388,7 +5388,7 @@ var Fv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5388
5388
|
background: e.background,
|
|
5389
5389
|
borderRadius: e.borderRadius,
|
|
5390
5390
|
padding: `${e.paddingBlock}px ${e.paddingInline}px`,
|
|
5391
|
-
boxShadow:
|
|
5391
|
+
boxShadow: so(e.shadow),
|
|
5392
5392
|
...e.borderWidth > 0 ? { border: `${e.borderWidth}px solid ${e.borderColor}` } : {}
|
|
5393
5393
|
}), Gv = (e) => ({
|
|
5394
5394
|
...e.fontFamily === void 0 ? {} : { fontFamily: e.fontFamily },
|
|
@@ -5420,7 +5420,7 @@ var Fv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5420
5420
|
}, Vv = 3.2, Uv = ({ panelRect: e }) => {
|
|
5421
5421
|
const t = Je(e).stickers, r = C((o) => o.config.appearance.textScale);
|
|
5422
5422
|
if (t.length === 0) return null;
|
|
5423
|
-
const n =
|
|
5423
|
+
const n = Hn(Vv, r);
|
|
5424
5424
|
return /* @__PURE__ */ s("svg", {
|
|
5425
5425
|
x: e.x,
|
|
5426
5426
|
y: e.y,
|
|
@@ -5456,8 +5456,8 @@ var Fv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5456
5456
|
} : {
|
|
5457
5457
|
width: t * e,
|
|
5458
5458
|
height: t
|
|
5459
|
-
}, Kv = 0.25,
|
|
5460
|
-
const r =
|
|
5459
|
+
}, Kv = 0.25, Vo = ({ children: e, ...t }) => {
|
|
5460
|
+
const r = nd();
|
|
5461
5461
|
return r <= 0 ? /* @__PURE__ */ s("g", {
|
|
5462
5462
|
...t,
|
|
5463
5463
|
children: e
|
|
@@ -5472,7 +5472,7 @@ var Fv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5472
5472
|
children: e
|
|
5473
5473
|
});
|
|
5474
5474
|
}, zv = "_1agclyl0";
|
|
5475
|
-
var jv = "_1agclyl2",
|
|
5475
|
+
var jv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotated: a, target: i, position: l, coordType: c, backdropColor: d }) => {
|
|
5476
5476
|
const u = xt(), v = a ? `rotate(-90 ${e} ${t})` : void 0, g = u[i][l], h = g.borderColor !== void 0 && (g.borderWidth ?? 0) > 0, f = Jv(i, c, g), A = qv(g, f, d);
|
|
5477
5477
|
return /* @__PURE__ */ b("g", {
|
|
5478
5478
|
transform: v,
|
|
@@ -5502,9 +5502,9 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5502
5502
|
children: o
|
|
5503
5503
|
})]
|
|
5504
5504
|
});
|
|
5505
|
-
}, Xv = (e, t) => e.isTextColorAuthored || t === void 0 ? e.textColor :
|
|
5505
|
+
}, Xv = (e, t) => e.isTextColorAuthored || t === void 0 ? e.textColor : on(t), qv = (e, t, r) => {
|
|
5506
5506
|
if (r !== void 0)
|
|
5507
|
-
return
|
|
5507
|
+
return Pa(t ? e.background : void 0, r);
|
|
5508
5508
|
}, Jv = (e, t, r) => r.background === void 0 ? !1 : e === "aggregate" || t === "cartesian", Zv = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
|
|
5509
5509
|
const o = Ae(), a = me(), i = C(K((u) => ({
|
|
5510
5510
|
layers: u.layers,
|
|
@@ -5513,7 +5513,7 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5513
5513
|
numberFormat: u.config.numberFormat,
|
|
5514
5514
|
parsingLocale: u.config.parsingLocale,
|
|
5515
5515
|
textScale: u.config.appearance.textScale
|
|
5516
|
-
}))), l = xt(), c = m(() =>
|
|
5516
|
+
}))), l = xt(), c = m(() => mo({
|
|
5517
5517
|
textMeasurer: o,
|
|
5518
5518
|
dataLabelStyles: l,
|
|
5519
5519
|
familyDefault: a.fonts.familyDefault
|
|
@@ -5521,7 +5521,7 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5521
5521
|
o,
|
|
5522
5522
|
l,
|
|
5523
5523
|
a.fonts.familyDefault
|
|
5524
|
-
]), d = m(() =>
|
|
5524
|
+
]), d = m(() => wa({
|
|
5525
5525
|
...i,
|
|
5526
5526
|
panelRect: e,
|
|
5527
5527
|
measureDataLabel: c,
|
|
@@ -5535,7 +5535,7 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5535
5535
|
t,
|
|
5536
5536
|
r,
|
|
5537
5537
|
n
|
|
5538
|
-
]).labels.map((u, v) => /* @__PURE__ */ s(
|
|
5538
|
+
]).labels.map((u, v) => /* @__PURE__ */ s(Uo, {
|
|
5539
5539
|
x: u.x,
|
|
5540
5540
|
y: u.y,
|
|
5541
5541
|
width: u.width,
|
|
@@ -5547,7 +5547,7 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5547
5547
|
coordType: i.coordSystem.type,
|
|
5548
5548
|
backdropColor: u.backdropColor
|
|
5549
5549
|
}, `${u.layerId}:${v}`));
|
|
5550
|
-
return /* @__PURE__ */ s(
|
|
5550
|
+
return /* @__PURE__ */ s(Vo, {
|
|
5551
5551
|
className: zv,
|
|
5552
5552
|
transform: `translate(${e.x}, ${e.y})`,
|
|
5553
5553
|
"data-testid": "data-labels",
|
|
@@ -5615,7 +5615,7 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5615
5615
|
transform: `rotate(${r}, 0, ${n})`
|
|
5616
5616
|
};
|
|
5617
5617
|
}, tg = ({ formattedAxis: e, rect: t }) => {
|
|
5618
|
-
const r = e.position === "bottom" || e.position === "top", n = Ee(e.scaleAestheticKey), o = rr()[n], a =
|
|
5618
|
+
const r = e.position === "bottom" || e.position === "top", n = Ee(e.scaleAestheticKey), o = rr()[n], a = po()[n];
|
|
5619
5619
|
return /* @__PURE__ */ b("svg", {
|
|
5620
5620
|
x: t.x,
|
|
5621
5621
|
y: t.y,
|
|
@@ -5671,7 +5671,7 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5671
5671
|
};
|
|
5672
5672
|
}
|
|
5673
5673
|
}, ng = ({ axes: e, rects: t }) => {
|
|
5674
|
-
const r =
|
|
5674
|
+
const r = go();
|
|
5675
5675
|
return /* @__PURE__ */ s(P, { children: e.map((n) => {
|
|
5676
5676
|
const o = t[n.position];
|
|
5677
5677
|
if (!o || !n.isVisible) return null;
|
|
@@ -5704,7 +5704,7 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5704
5704
|
}) }), ig = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ s(ng, {
|
|
5705
5705
|
axes: e.filter((r) => r.geometry === "linear"),
|
|
5706
5706
|
rects: t
|
|
5707
|
-
}),
|
|
5707
|
+
}), Qo = {
|
|
5708
5708
|
strokeDashoffset: "0",
|
|
5709
5709
|
strokeLinecap: "round"
|
|
5710
5710
|
}, sg = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
|
|
@@ -5743,7 +5743,7 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5743
5743
|
}
|
|
5744
5744
|
return /* @__PURE__ */ s("line", {
|
|
5745
5745
|
...A,
|
|
5746
|
-
...
|
|
5746
|
+
...Qo,
|
|
5747
5747
|
strokeDasharray: u,
|
|
5748
5748
|
strokeWidth: d.strokeWidth,
|
|
5749
5749
|
stroke: d.color
|
|
@@ -5752,9 +5752,9 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5752
5752
|
})
|
|
5753
5753
|
});
|
|
5754
5754
|
}, lg = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, cg = ({ sizes: e, panelFrameRect: t }) => {
|
|
5755
|
-
const r = C((i) => i.coordSystem.type === "polar"), n = T(), o = m(() =>
|
|
5755
|
+
const r = C((i) => i.coordSystem.type === "polar"), n = T(), o = m(() => hn(n), [n]);
|
|
5756
5756
|
if (r) return null;
|
|
5757
|
-
const a =
|
|
5757
|
+
const a = La(o, {
|
|
5758
5758
|
x: e.left / 2,
|
|
5759
5759
|
y: e.top / 2,
|
|
5760
5760
|
width: t.width - (e.left + e.right) / 2,
|
|
@@ -5773,7 +5773,7 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5773
5773
|
stroke: i.color,
|
|
5774
5774
|
strokeDasharray: Yt(i.lineType),
|
|
5775
5775
|
strokeWidth: i.strokeWidth,
|
|
5776
|
-
...
|
|
5776
|
+
...Qo
|
|
5777
5777
|
}, l))
|
|
5778
5778
|
});
|
|
5779
5779
|
}, dg = (e) => e.map((t) => {
|
|
@@ -5790,23 +5790,23 @@ var jv = "_1agclyl2", Qo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5790
5790
|
return "Z";
|
|
5791
5791
|
}
|
|
5792
5792
|
}).join(" ");
|
|
5793
|
-
var
|
|
5793
|
+
var Yo = (e, t) => {
|
|
5794
5794
|
const r = C((c) => c.coordSystem);
|
|
5795
5795
|
if (r.type !== "polar") return null;
|
|
5796
5796
|
const n = t.find((c) => c.geometry === "circular");
|
|
5797
5797
|
if (!n) return null;
|
|
5798
|
-
const { innerRadius: o, startAngle: a, spokeRotation: i } = r, l =
|
|
5798
|
+
const { innerRadius: o, startAngle: a, spokeRotation: i } = r, l = kn(e);
|
|
5799
5799
|
return l.radius <= 0 ? null : {
|
|
5800
5800
|
circle: l,
|
|
5801
5801
|
circularAxis: n,
|
|
5802
5802
|
radialAxis: t.find((c) => c.geometry === "radial"),
|
|
5803
5803
|
innerRadius: o,
|
|
5804
5804
|
startAngle: a,
|
|
5805
|
-
angleFor: (c) =>
|
|
5805
|
+
angleFor: (c) => ni(c, a, i),
|
|
5806
5806
|
radiusNormFor: (c) => o + c * (1 - o)
|
|
5807
5807
|
};
|
|
5808
5808
|
}, ug = 3, hg = 16, vg = ({ formattedAxes: e, panelRect: t }) => {
|
|
5809
|
-
const r = rr(), n =
|
|
5809
|
+
const r = rr(), n = Yo(t, e);
|
|
5810
5810
|
if (!n) return null;
|
|
5811
5811
|
const { circle: o, circularAxis: a, radialAxis: i, startAngle: l, angleFor: c, radiusNormFor: d } = n, u = gg(i, d, o.radius), v = (g) => r[Ee(g.scaleAestheticKey)];
|
|
5812
5812
|
return /* @__PURE__ */ b("svg", {
|
|
@@ -5834,7 +5834,7 @@ var Ko = (e, t) => {
|
|
|
5834
5834
|
}, `radial-label-${f}`);
|
|
5835
5835
|
}), a.isVisible && a.ticks.map((g, h) => {
|
|
5836
5836
|
if (g.position >= 1 - 1e-9) return null;
|
|
5837
|
-
const f = c(g.position), A = q(f, (o.radius +
|
|
5837
|
+
const f = c(g.position), A = q(f, (o.radius + pa) / o.radius, o);
|
|
5838
5838
|
return /* @__PURE__ */ s("text", {
|
|
5839
5839
|
x: A.x,
|
|
5840
5840
|
y: A.y,
|
|
@@ -5864,7 +5864,7 @@ var Ko = (e, t) => {
|
|
|
5864
5864
|
const t = Math.sin(e);
|
|
5865
5865
|
return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
|
|
5866
5866
|
}, pg = ({ formattedAxes: e, panelRect: t }) => {
|
|
5867
|
-
const r = T(), n =
|
|
5867
|
+
const r = T(), n = Yo(t, e);
|
|
5868
5868
|
if (!n) return null;
|
|
5869
5869
|
const { circle: o, circularAxis: a, radialAxis: i, innerRadius: l, angleFor: c, radiusNormFor: d } = n, u = Tt(r, "y"), v = Tt(r, "x");
|
|
5870
5870
|
return /* @__PURE__ */ b("svg", {
|
|
@@ -5909,7 +5909,7 @@ var Ko = (e, t) => {
|
|
|
5909
5909
|
]
|
|
5910
5910
|
});
|
|
5911
5911
|
}, mg = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: a }) => {
|
|
5912
|
-
const i = ce(), l =
|
|
5912
|
+
const i = ce(), l = od(e.id), c = i(e.geom, t.type);
|
|
5913
5913
|
if (c === null) return null;
|
|
5914
5914
|
const d = At(c.render);
|
|
5915
5915
|
return d.overlay ? null : /* @__PURE__ */ s("g", {
|
|
@@ -5954,7 +5954,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
5954
5954
|
t,
|
|
5955
5955
|
o,
|
|
5956
5956
|
n
|
|
5957
|
-
]), u = L(t), v = m(() =>
|
|
5957
|
+
]), u = L(t), v = m(() => Da(t), [t]), g = m(() => Ra({
|
|
5958
5958
|
layer: t,
|
|
5959
5959
|
numberFormat: c,
|
|
5960
5960
|
locale: l
|
|
@@ -5977,7 +5977,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
5977
5977
|
};
|
|
5978
5978
|
p = e.renderHighlight ? e.renderHighlight(x) : A.fn(x);
|
|
5979
5979
|
}
|
|
5980
|
-
return /* @__PURE__ */ b(
|
|
5980
|
+
return /* @__PURE__ */ b(Vo, { children: [p, d.map(({ observation: x, observationIndex: w, anchor: S }) => /* @__PURE__ */ s(bg, {
|
|
5981
5981
|
observation: x,
|
|
5982
5982
|
anchor: S,
|
|
5983
5983
|
panelRect: i,
|
|
@@ -5989,7 +5989,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
5989
5989
|
familyDefault: h.familyDefault
|
|
5990
5990
|
}, wg(x, w)))] });
|
|
5991
5991
|
}, bg = ({ observation: e, anchor: t, panelRect: r, fill: n, dotRadius: o, readSegmentY: a, formatYValue: i, labelStyle: l, familyDefault: c }) => {
|
|
5992
|
-
const d = Ae(), u =
|
|
5992
|
+
const d = Ae(), u = fn(t.x), v = pn(t.y), g = a(e), h = rn(g) ? i(g, e) : null, f = m(() => {
|
|
5993
5993
|
if (h === null) return null;
|
|
5994
5994
|
const A = d.measureText(h, J(l, c));
|
|
5995
5995
|
return {
|
|
@@ -6008,7 +6008,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6008
6008
|
cy: k(v),
|
|
6009
6009
|
r: o,
|
|
6010
6010
|
fill: n
|
|
6011
|
-
}), h !== null && f !== null && /* @__PURE__ */ s(
|
|
6011
|
+
}), h !== null && f !== null && /* @__PURE__ */ s(Uo, {
|
|
6012
6012
|
x: u * r.width,
|
|
6013
6013
|
y: v * r.height - o - yg - f.height / 2,
|
|
6014
6014
|
width: f.width,
|
|
@@ -6030,7 +6030,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6030
6030
|
}))), i = ce();
|
|
6031
6031
|
if (n === null) return null;
|
|
6032
6032
|
const l = i(e.geom, t.type);
|
|
6033
|
-
if (l === null ||
|
|
6033
|
+
if (l === null || Ol(l)) return null;
|
|
6034
6034
|
const c = a.get(e.id) ?? [];
|
|
6035
6035
|
return n.layerId === e.id ? l.renderHover({
|
|
6036
6036
|
layer: e,
|
|
@@ -6068,7 +6068,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6068
6068
|
height: t.height,
|
|
6069
6069
|
className: Eg,
|
|
6070
6070
|
"data-testid": "geom-layers",
|
|
6071
|
-
...
|
|
6071
|
+
...Od(),
|
|
6072
6072
|
children: n.map((a) => /* @__PURE__ */ b(jt, { children: [/* @__PURE__ */ s(Ng, {
|
|
6073
6073
|
layer: a,
|
|
6074
6074
|
coordSystem: o,
|
|
@@ -6084,7 +6084,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6084
6084
|
}, Ig = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, Tg = (e) => {
|
|
6085
6085
|
if (e.geom !== "rule")
|
|
6086
6086
|
return Pg;
|
|
6087
|
-
}, Lg = (e) =>
|
|
6087
|
+
}, Lg = (e) => xn({
|
|
6088
6088
|
...e.opacity === void 0 ? {} : { [Rg]: String(e.opacity) },
|
|
6089
6089
|
...e.saturation === void 0 ? {} : { [Cg]: `saturate(${e.saturation})` }
|
|
6090
6090
|
}), Ng = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
|
|
@@ -6110,11 +6110,11 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6110
6110
|
dimStyle: c,
|
|
6111
6111
|
formattingLocale: o
|
|
6112
6112
|
}),
|
|
6113
|
-
v && !u?.overlay && i?.hitTest && /* @__PURE__ */ s(
|
|
6113
|
+
v && !u?.overlay && i?.hitTest && /* @__PURE__ */ s(Kl, {
|
|
6114
6114
|
hitTest: i.hitTest,
|
|
6115
6115
|
input: d
|
|
6116
6116
|
}),
|
|
6117
|
-
v && u?.overlay && /* @__PURE__ */ s(
|
|
6117
|
+
v && u?.overlay && /* @__PURE__ */ s(ec, {
|
|
6118
6118
|
render: u.fn,
|
|
6119
6119
|
input: d
|
|
6120
6120
|
}),
|
|
@@ -6133,7 +6133,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6133
6133
|
}, Mg = "_17uhij30", Fg = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: d, isFooterChromeReserved: u, isEditable: v }) => {
|
|
6134
6134
|
const g = B(null);
|
|
6135
6135
|
_h(g);
|
|
6136
|
-
const h = ee("Grid", sg), f = ee("AxisTicks", ag), A = ee("AxisLabel", ig), p = m(() => Gt(n, t), [n, t]), x = m(() => Gt(o, t), [o, t]), w = m(() =>
|
|
6136
|
+
const h = ee("Grid", sg), f = ee("AxisTicks", ag), A = ee("AxisLabel", ig), p = m(() => Gt(n, t), [n, t]), x = m(() => Gt(o, t), [o, t]), w = m(() => Gr(a, t), [a, t]), S = m(() => Gr(i, t), [i, t]);
|
|
6137
6137
|
return /* @__PURE__ */ b("svg", {
|
|
6138
6138
|
ref: g,
|
|
6139
6139
|
className: Mg,
|
|
@@ -6142,7 +6142,6 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6142
6142
|
style: { transform: `translate(${t.x}px, ${t.y}px)` },
|
|
6143
6143
|
"data-testid": "plot",
|
|
6144
6144
|
children: [
|
|
6145
|
-
/* @__PURE__ */ s(Mr, { panelRect: x }),
|
|
6146
6145
|
/* @__PURE__ */ s(h, {
|
|
6147
6146
|
axes: e,
|
|
6148
6147
|
panelBorderSizes: r,
|
|
@@ -6161,12 +6160,12 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6161
6160
|
formattedAxes: e,
|
|
6162
6161
|
panelRect: x
|
|
6163
6162
|
}),
|
|
6164
|
-
/* @__PURE__ */ s(
|
|
6165
|
-
/* @__PURE__ */ s(
|
|
6163
|
+
/* @__PURE__ */ s(Dh, { panelRect: x }),
|
|
6164
|
+
/* @__PURE__ */ s(Dr, {
|
|
6166
6165
|
panelRect: x,
|
|
6167
6166
|
zOrder: "background"
|
|
6168
6167
|
}),
|
|
6169
|
-
/* @__PURE__ */ s(
|
|
6168
|
+
/* @__PURE__ */ s(Fr, {
|
|
6170
6169
|
panelRect: x,
|
|
6171
6170
|
zOrder: "background"
|
|
6172
6171
|
}),
|
|
@@ -6193,11 +6192,11 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6193
6192
|
panelRect: x,
|
|
6194
6193
|
isEditable: v
|
|
6195
6194
|
}),
|
|
6196
|
-
/* @__PURE__ */ s(
|
|
6195
|
+
/* @__PURE__ */ s(Dr, {
|
|
6197
6196
|
panelRect: x,
|
|
6198
6197
|
zOrder: "foreground"
|
|
6199
6198
|
}),
|
|
6200
|
-
/* @__PURE__ */ s(
|
|
6199
|
+
/* @__PURE__ */ s(Fr, {
|
|
6201
6200
|
panelRect: x,
|
|
6202
6201
|
zOrder: "foreground"
|
|
6203
6202
|
}),
|
|
@@ -6216,21 +6215,21 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6216
6215
|
y: e.y - t.y,
|
|
6217
6216
|
width: e.width,
|
|
6218
6217
|
height: e.height
|
|
6219
|
-
}),
|
|
6218
|
+
}), Gr = (e, t) => {
|
|
6220
6219
|
const r = {};
|
|
6221
6220
|
for (const [n, o] of Object.entries(e)) r[n] = Gt(o, t);
|
|
6222
6221
|
return r;
|
|
6223
6222
|
}, Dg = (e) => {
|
|
6224
6223
|
let t, r;
|
|
6225
6224
|
return "aspectRatio" in e ? "intrinsicWidth" in e ? (t = e.intrinsicWidth, r = t / e.aspectRatio) : (r = e.intrinsicHeight, t = r * e.aspectRatio) : (t = e.intrinsicWidth, r = e.intrinsicHeight), {
|
|
6226
|
-
width:
|
|
6227
|
-
height:
|
|
6225
|
+
width: Wr(t, "width"),
|
|
6226
|
+
height: Wr(r, "height")
|
|
6228
6227
|
};
|
|
6229
|
-
},
|
|
6230
|
-
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new
|
|
6228
|
+
}, Wr = (e, t) => {
|
|
6229
|
+
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new ga({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
|
|
6231
6230
|
return e;
|
|
6232
6231
|
}, Hg = ({ sizing: e, onResize: t, children: r }) => {
|
|
6233
|
-
const n =
|
|
6232
|
+
const n = oo({ onResize: t });
|
|
6234
6233
|
if (e.mode === "keepAspectRatio") {
|
|
6235
6234
|
const { intrinsicSize: a, canRender: i, outerStyles: l, innerStyles: c } = Og(e, n.width, !n.isDefault);
|
|
6236
6235
|
return /* @__PURE__ */ s("div", {
|
|
@@ -6337,24 +6336,24 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6337
6336
|
}), [l, d]), h = t && e.background === "transparent";
|
|
6338
6337
|
return /* @__PURE__ */ s("div", {
|
|
6339
6338
|
"data-testid": "graph-wrapper",
|
|
6340
|
-
className: Qe(
|
|
6339
|
+
className: Qe(xc, a),
|
|
6341
6340
|
style: v,
|
|
6342
6341
|
children: /* @__PURE__ */ s("div", {
|
|
6343
6342
|
ref: n,
|
|
6344
6343
|
"data-testid": "graph-inner",
|
|
6345
6344
|
tabIndex: t ? 0 : void 0,
|
|
6346
|
-
className: Qe(
|
|
6347
|
-
[
|
|
6348
|
-
[
|
|
6345
|
+
className: Qe(wc, {
|
|
6346
|
+
[Sc]: t,
|
|
6347
|
+
[kc]: h
|
|
6349
6348
|
}),
|
|
6350
6349
|
style: g,
|
|
6351
6350
|
children: o
|
|
6352
6351
|
})
|
|
6353
6352
|
});
|
|
6354
|
-
}, Cf = (e) => /* @__PURE__ */ s(
|
|
6355
|
-
locale:
|
|
6353
|
+
}, Cf = (e) => /* @__PURE__ */ s(pc, {
|
|
6354
|
+
locale: Rd(),
|
|
6356
6355
|
children: /* @__PURE__ */ s(Yg, { ...e })
|
|
6357
|
-
}), Yg = ({ slots: e, sizing: t = Gg, onResize: r, ...n }) => /* @__PURE__ */ s(
|
|
6356
|
+
}), Yg = ({ slots: e, sizing: t = Gg, onResize: r, ...n }) => /* @__PURE__ */ s(Ql, { children: /* @__PURE__ */ s(Us, { children: /* @__PURE__ */ s(Js, {
|
|
6358
6357
|
slots: e,
|
|
6359
6358
|
children: /* @__PURE__ */ s(Hg, {
|
|
6360
6359
|
sizing: t,
|
|
@@ -6366,7 +6365,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6366
6365
|
})
|
|
6367
6366
|
})
|
|
6368
6367
|
}) }) }), Kg = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = "readonly" }) => {
|
|
6369
|
-
const a =
|
|
6368
|
+
const a = io(), { axes: i, legends: l, layers: c, numberFormat: d, parsingLocale: u, appearance: v, annotations: g, coordSystem: h, headline: f, headlineConfig: A, content: p, overflowStrategy: x, layoutConfig: w } = C(K((Q) => ({
|
|
6370
6369
|
axes: Q.guides.axes,
|
|
6371
6370
|
legends: Q.guides.legends.drawn,
|
|
6372
6371
|
layers: Q.layers,
|
|
@@ -6380,7 +6379,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6380
6379
|
content: Q.config.content,
|
|
6381
6380
|
overflowStrategy: Q.config.panel.overflow,
|
|
6382
6381
|
layoutConfig: Q.config.layout
|
|
6383
|
-
}))), S =
|
|
6382
|
+
}))), S = Ri(), { intro: R, transitions: N } = m(() => rc(r, S ?? !1), [r, S]), { headerRef: E, footerRef: I, measurements: M } = Wg(), { formattingLocale: W, colorScheme: Y, themeOverrides: Te } = z(), xe = o === "editable", [be, Ko] = G(null), ar = m(() => Un(Y, Te), [Y, Te]), zo = ee("Header", Ru), jo = ee("Footer", Au), Xo = ee("Legend", Mh), qo = ee("Headline", ju), Jo = ee("EditorSurface", Ug), ir = m(() => Wa({
|
|
6384
6383
|
legends: l,
|
|
6385
6384
|
numberFormat: d,
|
|
6386
6385
|
parsingLocale: u,
|
|
@@ -6390,7 +6389,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6390
6389
|
d,
|
|
6391
6390
|
u,
|
|
6392
6391
|
W
|
|
6393
|
-
]), Le = m(() =>
|
|
6392
|
+
]), Le = m(() => Ga({
|
|
6394
6393
|
headline: f,
|
|
6395
6394
|
show: A.show,
|
|
6396
6395
|
numberFormat: d,
|
|
@@ -6404,18 +6403,18 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6404
6403
|
u,
|
|
6405
6404
|
W,
|
|
6406
6405
|
a
|
|
6407
|
-
]),
|
|
6406
|
+
]), Zo = Ae(), Ze = T(), $e = m(() => cn(Ze), [Ze]), sr = m(() => hn(Ze), [Ze]), lr = Bo(), St = $e.borderColor === void 0 ? 0 : $e.borderWidth, Ne = m(() => ({
|
|
6408
6407
|
width: Math.max(0, e - 2 * St),
|
|
6409
6408
|
height: Math.max(0, t - 2 * St)
|
|
6410
6409
|
}), [
|
|
6411
6410
|
e,
|
|
6412
6411
|
t,
|
|
6413
6412
|
St
|
|
6414
|
-
]), cr = m(() =>
|
|
6413
|
+
]), cr = m(() => uu(p.brandMark.enabled, Ne, p.brandMark.variant), [
|
|
6415
6414
|
p.brandMark.enabled,
|
|
6416
6415
|
p.brandMark.variant,
|
|
6417
6416
|
Ne
|
|
6418
|
-
]),
|
|
6417
|
+
]), $o = p.brandMark.placement === "footer" ? cr : "hidden", _o = p.brandMark.placement === "header" ? cr : "hidden", we = m(() => Le ? {
|
|
6419
6418
|
formatted: Le,
|
|
6420
6419
|
size: A.size,
|
|
6421
6420
|
position: A.position,
|
|
@@ -6425,12 +6424,12 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6425
6424
|
A.size,
|
|
6426
6425
|
A.position,
|
|
6427
6426
|
h
|
|
6428
|
-
]),
|
|
6429
|
-
textMeasurer:
|
|
6427
|
+
]), ea = Zs(), _e = bd({
|
|
6428
|
+
textMeasurer: Zo,
|
|
6430
6429
|
textScale: v.textScale,
|
|
6431
6430
|
metrics: ar,
|
|
6432
|
-
overrides:
|
|
6433
|
-
}), dr = m(() =>
|
|
6431
|
+
overrides: ea
|
|
6432
|
+
}), dr = m(() => Na(sr), [sr]), Me = wd({
|
|
6434
6433
|
measurer: _e,
|
|
6435
6434
|
axes: i,
|
|
6436
6435
|
numberFormat: d,
|
|
@@ -6447,7 +6446,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6447
6446
|
overflowStrategy: x,
|
|
6448
6447
|
layout: w,
|
|
6449
6448
|
panelBorder: dr
|
|
6450
|
-
}), et = m(() => !Me || !we || !_e ? null :
|
|
6449
|
+
}), et = m(() => !Me || !we || !_e ? null : vi({
|
|
6451
6450
|
headline: we,
|
|
6452
6451
|
layout: Me.layout,
|
|
6453
6452
|
containerSize: Ne,
|
|
@@ -6461,28 +6460,28 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6461
6460
|
lr.gap
|
|
6462
6461
|
]);
|
|
6463
6462
|
if (!Me) return null;
|
|
6464
|
-
const { layout: j, formattedAxes:
|
|
6465
|
-
return /* @__PURE__ */ s(
|
|
6463
|
+
const { layout: j, formattedAxes: ta, plotBottomY: ra } = Me, na = j.footer.height > 0;
|
|
6464
|
+
return /* @__PURE__ */ s(Cc, {
|
|
6466
6465
|
colorScheme: Y,
|
|
6467
6466
|
themeOverrides: Te,
|
|
6468
6467
|
textScale: v.textScale,
|
|
6469
6468
|
graphBackground: $e.background,
|
|
6470
|
-
children: /* @__PURE__ */ s(
|
|
6469
|
+
children: /* @__PURE__ */ s(Fs, {
|
|
6471
6470
|
metrics: ar,
|
|
6472
|
-
children: /* @__PURE__ */ s(
|
|
6471
|
+
children: /* @__PURE__ */ s(Cd, { children: /* @__PURE__ */ s(zd, {
|
|
6473
6472
|
panelRect: j.panel,
|
|
6474
6473
|
children: /* @__PURE__ */ s(Qg, {
|
|
6475
6474
|
graphChrome: $e,
|
|
6476
6475
|
isEditable: xe,
|
|
6477
|
-
contentRef: xe ?
|
|
6476
|
+
contentRef: xe ? Ko : void 0,
|
|
6478
6477
|
style: {
|
|
6479
6478
|
width: "100%",
|
|
6480
6479
|
height: "100%"
|
|
6481
6480
|
},
|
|
6482
|
-
children: /* @__PURE__ */ b(
|
|
6481
|
+
children: /* @__PURE__ */ b(rd, {
|
|
6483
6482
|
intro: R,
|
|
6484
6483
|
children: [
|
|
6485
|
-
/* @__PURE__ */ s(
|
|
6484
|
+
/* @__PURE__ */ s(zo, {
|
|
6486
6485
|
ref: E,
|
|
6487
6486
|
headerRect: j.header,
|
|
6488
6487
|
mode: o,
|
|
@@ -6490,10 +6489,10 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6490
6489
|
isTitleVisible: p.isTitleVisible,
|
|
6491
6490
|
subtitle: p.subtitle,
|
|
6492
6491
|
isSubtitleVisible: p.isSubtitleVisible,
|
|
6493
|
-
brandMark:
|
|
6492
|
+
brandMark: _o
|
|
6494
6493
|
}),
|
|
6495
6494
|
/* @__PURE__ */ s(Fg, {
|
|
6496
|
-
formattedAxes:
|
|
6495
|
+
formattedAxes: ta,
|
|
6497
6496
|
plotRect: j.plot,
|
|
6498
6497
|
panelBorder: dr,
|
|
6499
6498
|
panelFrameRect: j.panelFrame,
|
|
@@ -6502,11 +6501,11 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6502
6501
|
axisLabelRects: j.axisLabels,
|
|
6503
6502
|
shouldAnimateTransitions: N,
|
|
6504
6503
|
formattingLocale: W ?? u,
|
|
6505
|
-
plotBottomY:
|
|
6506
|
-
isFooterChromeReserved:
|
|
6504
|
+
plotBottomY: ra,
|
|
6505
|
+
isFooterChromeReserved: na,
|
|
6507
6506
|
isEditable: xe
|
|
6508
6507
|
}),
|
|
6509
|
-
/* @__PURE__ */ s(
|
|
6508
|
+
/* @__PURE__ */ s(jo, {
|
|
6510
6509
|
ref: I,
|
|
6511
6510
|
footerRect: j.footer,
|
|
6512
6511
|
mode: o,
|
|
@@ -6514,25 +6513,25 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6514
6513
|
isCaptionVisible: p.isCaptionVisible,
|
|
6515
6514
|
source: p.source,
|
|
6516
6515
|
isSourceVisible: p.isSourceVisible,
|
|
6517
|
-
brandMark:
|
|
6516
|
+
brandMark: $o
|
|
6518
6517
|
}),
|
|
6519
|
-
/* @__PURE__ */ s(
|
|
6518
|
+
/* @__PURE__ */ s(Xo, {
|
|
6520
6519
|
formattedLegends: ir,
|
|
6521
6520
|
rects: j.legends,
|
|
6522
6521
|
textScale: v.textScale
|
|
6523
6522
|
}),
|
|
6524
|
-
Le && et && /* @__PURE__ */ s(
|
|
6523
|
+
Le && et && /* @__PURE__ */ s(qo, {
|
|
6525
6524
|
headline: Le,
|
|
6526
6525
|
rect: et.rect,
|
|
6527
6526
|
resolvedSize: et.resolvedSize,
|
|
6528
6527
|
visibleItemCount: et.visibleItemCount,
|
|
6529
|
-
isInDonutHole: we !== void 0 &&
|
|
6528
|
+
isInDonutHole: we !== void 0 && ei(we)
|
|
6530
6529
|
}),
|
|
6531
|
-
xe && be !== null && /* @__PURE__ */ s(
|
|
6530
|
+
xe && be !== null && /* @__PURE__ */ s(Jo, {
|
|
6532
6531
|
frameElement: be,
|
|
6533
6532
|
panelRect: j.panel
|
|
6534
6533
|
}),
|
|
6535
|
-
n && /* @__PURE__ */ s(
|
|
6534
|
+
n && /* @__PURE__ */ s(qc, {})
|
|
6536
6535
|
]
|
|
6537
6536
|
})
|
|
6538
6537
|
})
|
|
@@ -6540,7 +6539,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6540
6539
|
})
|
|
6541
6540
|
});
|
|
6542
6541
|
}, Ef = (e) => {
|
|
6543
|
-
const t = D(
|
|
6542
|
+
const t = D(bn);
|
|
6544
6543
|
return m(() => e || (t ? {
|
|
6545
6544
|
commands: t.commands,
|
|
6546
6545
|
undo: t.history.undo,
|
|
@@ -6551,7 +6550,7 @@ var yg = 4, xg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6551
6550
|
setSelection: (r) => t.selectionStore.getState().setSelection(r),
|
|
6552
6551
|
subscribeSelection: t.selectionStore.subscribe
|
|
6553
6552
|
} : null), [e, t]);
|
|
6554
|
-
}, Pf = (e) =>
|
|
6553
|
+
}, Pf = (e) => ki(e.subscribe, e.getCompiled, e.getCompiled), Bf = () => {
|
|
6555
6554
|
const { commands: e } = z();
|
|
6556
6555
|
return e;
|
|
6557
6556
|
}, If = (e) => {
|
|
@@ -6565,87 +6564,87 @@ export {
|
|
|
6565
6564
|
hf as At,
|
|
6566
6565
|
mf as B,
|
|
6567
6566
|
Uh as C,
|
|
6568
|
-
|
|
6569
|
-
|
|
6567
|
+
Us as Ct,
|
|
6568
|
+
To as D,
|
|
6570
6569
|
De as Dt,
|
|
6571
|
-
|
|
6570
|
+
Hu as E,
|
|
6572
6571
|
T as Et,
|
|
6573
6572
|
ue as F,
|
|
6574
|
-
|
|
6573
|
+
Bd as G,
|
|
6575
6574
|
ff as H,
|
|
6576
6575
|
bf as I,
|
|
6577
|
-
|
|
6578
|
-
|
|
6576
|
+
fo as J,
|
|
6577
|
+
Ed as K,
|
|
6579
6578
|
Ve as L,
|
|
6580
|
-
|
|
6579
|
+
uu as M,
|
|
6581
6580
|
C as Mt,
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6581
|
+
jd as N,
|
|
6582
|
+
bn as Nt,
|
|
6583
|
+
Ru as O,
|
|
6584
|
+
xs as Ot,
|
|
6586
6585
|
xf as P,
|
|
6587
6586
|
z as Pt,
|
|
6588
|
-
|
|
6587
|
+
Bc as Q,
|
|
6589
6588
|
yf as R,
|
|
6590
6589
|
Qh as S,
|
|
6591
6590
|
vf as St,
|
|
6592
6591
|
Sf as T,
|
|
6593
|
-
|
|
6594
|
-
|
|
6592
|
+
Os as Tt,
|
|
6593
|
+
Nd as U,
|
|
6595
6594
|
pf as V,
|
|
6596
|
-
|
|
6595
|
+
ko as W,
|
|
6597
6596
|
We as X,
|
|
6598
|
-
|
|
6599
|
-
|
|
6597
|
+
Jc as Y,
|
|
6598
|
+
Pc as Z,
|
|
6600
6599
|
cv as _,
|
|
6601
|
-
|
|
6600
|
+
Gl as _t,
|
|
6602
6601
|
Cf as a,
|
|
6603
|
-
|
|
6602
|
+
pc as at,
|
|
6604
6603
|
ev as b,
|
|
6605
|
-
|
|
6604
|
+
Hl as bt,
|
|
6606
6605
|
Wv as c,
|
|
6607
|
-
|
|
6606
|
+
_l as ct,
|
|
6608
6607
|
kf as d,
|
|
6609
|
-
|
|
6610
|
-
|
|
6608
|
+
Xl as dt,
|
|
6609
|
+
Ec as et,
|
|
6611
6610
|
bv as f,
|
|
6612
|
-
|
|
6611
|
+
no as ft,
|
|
6613
6612
|
pv as g,
|
|
6614
6613
|
Ot as gt,
|
|
6615
6614
|
Av as h,
|
|
6616
6615
|
ye as ht,
|
|
6617
6616
|
Ef as i,
|
|
6618
|
-
|
|
6619
|
-
|
|
6617
|
+
lo as it,
|
|
6618
|
+
Eo as j,
|
|
6620
6619
|
df as jt,
|
|
6621
|
-
|
|
6620
|
+
Au as k,
|
|
6622
6621
|
uf as kt,
|
|
6623
6622
|
Pv as l,
|
|
6624
|
-
|
|
6623
|
+
$l as lt,
|
|
6625
6624
|
yv as m,
|
|
6626
|
-
|
|
6625
|
+
Ql as mt,
|
|
6627
6626
|
Bf as n,
|
|
6628
6627
|
_t as nt,
|
|
6629
6628
|
Yg as o,
|
|
6630
|
-
|
|
6629
|
+
io as ot,
|
|
6631
6630
|
xv as p,
|
|
6632
|
-
|
|
6633
|
-
|
|
6631
|
+
Yl as pt,
|
|
6632
|
+
Rd as q,
|
|
6634
6633
|
Pf as r,
|
|
6635
|
-
|
|
6634
|
+
Rc as rt,
|
|
6636
6635
|
sg as s,
|
|
6637
6636
|
$t as st,
|
|
6638
6637
|
If as t,
|
|
6639
|
-
|
|
6638
|
+
Cc as tt,
|
|
6640
6639
|
Rf as u,
|
|
6641
|
-
|
|
6640
|
+
Jl as ut,
|
|
6642
6641
|
ov as v,
|
|
6643
6642
|
gf as vt,
|
|
6644
6643
|
Yh as w,
|
|
6645
6644
|
Ae as wt,
|
|
6646
6645
|
Kh as x,
|
|
6647
|
-
|
|
6646
|
+
ol as xt,
|
|
6648
6647
|
Je as y,
|
|
6649
|
-
|
|
6648
|
+
Ol as yt,
|
|
6650
6649
|
Af as z
|
|
6651
6650
|
};
|