@graphysdk/react-renderer 1.9.0-beta.1791973199869 → 1.9.0-beta.1791976962179
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/editable.cjs +1 -1
- package/dist/editable.css +1 -1
- package/dist/editable.mjs +3391 -3394
- package/dist/history-chords-BpsDOHI_.cjs +2 -0
- package/dist/{history-chords-DJMC5bsR.js → history-chords-T1AuwA5r.js} +703 -702
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +97 -97
- package/package.json +4 -4
- package/dist/history-chords-aJhtFY5y.cjs +0 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as
|
|
2
|
-
import { Fragment as _t, createContext as K, memo as ge, useCallback as ue, useContext as W, useEffect as G, useId as U, useLayoutEffect as
|
|
1
|
+
import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as cs, CachedTextMeasurer as Hn, DATA_LABEL_ROLES as us, DEFAULT_GEOM_COLOR as Wr, DEFAULT_HOVER_AFFORDANCE_COLOR as Gr, DEFAULT_POINT_SIZE_PX as $e, GROUP_VARIABLES as ne, HeuristicTextMeasurer as hs, HoverEngine as vs, InternalError as gs, LayoutCompiler as fs, NAMED_WEIGHTS as ct, POLAR_RIM_LABEL_GAP_PX as ps, POSITION_VARIABLES as ut, RESOLVED_DATA_LABEL_POSITIONS as ms, RESTING_HOVER_STATE as Gt, VISUAL_VARIABLES as Dn, alignUnitFractions as Oo, applyTextTransform as wt, areAnchorsEqual as ys, areEditMenuTriggersEqual as xs, areEditTargetsEqual as pt, areEndpointsComparable as Fn, arePointerRegionListsEqual as As, arePredicatesEqual as No, buildAverageLineSymbols as bs, buildBarRectBounds as ws, buildCalloutHitRegions as Ss, buildColumnKey as Vr, buildDataLabelsContent as ks, buildFontString as Es, buildHeadlineItemRows as Ho, buildLayerIntroPlan as Ps, buildObservationsTarget as Rs, buildPointSymbolInBox as Cs, buildPointSymbolPath as Ls, buildPolarBarArcPath as Fe, buildSliceGroupKey as zr, buildTooltipContent as Is, compositeColor as mr, computeArrow as Ts, computeDifferenceArrow as Bs, computeDirectLabelsLayout as Ms, computeLetterSpacingWidth as Os, computeLineBoxHeight as We, computePanelBorderPaths as Ns, computePanelBorderSizes as Hs, countLayerGeoms as Ds, createAreaPathGenerators as Yr, createDataLabelPlacementResolver as Fs, createLayerYValueFormatter as Ws, createLineFillAreaGenerator as Gs, createLinePathGenerator as jr, createPinnedNumberValueFormatter as Vs, createSegmentYReader as zs, createStableCellKeyGenerator as Ys, createStableKeyGenerator as we, ensureReadableTextColor as Kr, findAnnotation as js, findLayerById as qt, findPointerRegion as Wn, formatHeadline as Ks, formatLegends as Us, formatRuleValue as Qs, getAestheticFromScaleAestheticKey as Ae, getAlpha as Do, getAngleExtent as Xs, getBarRectBounds as Jt, getBoundingRect as qs, getDifferenceArrowLabelBox as Js, getGroup as ze, getHoverGuideLineProps as Zs, getHoverGuideRectProps as $s, getPaintedTileRect as Ur, getPointSymbolOuterRadius as _s, getPolarHoverGuideArcProps as el, getRadiusExtent as Fo, getShapeAnnotationStroke as tl, getSize as rl, getStackRole as nl, getUnionExtent as Wo, getX as q, getXMax as Go, getY as _, getYMax as Zt, isAnnotationMovable as ol, isFullTurnSweep as Qr, isGradientPaint as Vo, isImagePaint as al, isOpaquePaint as il, isPatternPaint as Xr, isPositionScale as Gn, isSafeUrl as qr, orderPointerRegions as sl, paintKey as kr, paintsInDonutHole as ll, pickFilters as dl, pickReadableTextColor as zo, placeCallouts as cl, polarToUnit as ul, positionToAngle as hl, prepareAreaObservations as Jr, prepareLineObservations as Zr, projectAnchorToPanel as At, projectRegionToPanel as $r, readAnchoredObservation as Yo, readColorGroupObservation as vl, readGeomColor as $t, readGeomEffects as J, readGroupRuleColor as jo, readMainAxis as St, removeAlpha as gl, resolveArrowAnnotationStyle as fl, resolveArrowColor as pl, resolveBarBorderTreatment as kt, resolveBarCornerRadiiPx as ml, resolveBarCornerRadiusPx as _r, resolveBarPaintOrigin as yl, resolveCalloutAnnotationStyle as Er, resolveChromeMargins as xl, resolveDataLabelStyle as Al, resolveDeferredAnchors as bl, resolveDifferenceArrowAnnotationStyle as Ko, resolveDirectLabelStyle as Uo, resolveGraphPadding as wl, resolveHeadlineItemStyle as Wt, resolveHeadlineNumberStyle as Qo, resolveHeadlinePlacement as Sl, resolveLegendItemStyle as Et, resolvePanelBorderStyle as Xo, resolvePolarBarCornerRadiusUnit as kl, resolveRuleLabelStyle as El, resolveSwatchGeomPaint as qo, resolveTooltipStyle as Pl, toFontSpec as te, toPaintColor as V, toPanelCursor as Rl, toPercent as C, toStrokeDasharray as ve, toViewBoxX as Jo, toViewBoxY as Zo, truncateToWidth as $o, withAlpha as Cl } from "@graphysdk/viz-engine";
|
|
2
|
+
import { Fragment as _t, createContext as K, memo as ge, useCallback as ue, useContext as W, useEffect as G, useId as U, useLayoutEffect as Ll, useMemo as b, useRef as D, useState as j, useSyncExternalStore as Il } from "react";
|
|
3
3
|
import { Fragment as T, jsx as s, jsxs as w } from "react/jsx-runtime";
|
|
4
4
|
import { useStore as _e } from "zustand";
|
|
5
|
-
import { animate as Pe, motion as z, useMotionValue as ye, useReducedMotion as
|
|
6
|
-
import { interpolatePath as
|
|
5
|
+
import { animate as Pe, motion as z, useMotionValue as ye, useReducedMotion as Tl, useTransform as Nt } from "motion/react";
|
|
6
|
+
import { interpolatePath as Bl } from "d3-interpolate-path";
|
|
7
7
|
import { useShallow as se } from "zustand/react/shallow";
|
|
8
8
|
import { assignInlineVars as er } from "@vanilla-extract/dynamic";
|
|
9
9
|
import { createStore as en } from "zustand/vanilla";
|
|
10
10
|
import { createPortal as _o } from "react-dom";
|
|
11
|
-
import bt, { clsx as
|
|
12
|
-
import { merge as
|
|
13
|
-
import { IntlProvider as
|
|
11
|
+
import bt, { clsx as De } from "clsx";
|
|
12
|
+
import { merge as Ml } from "lodash-es";
|
|
13
|
+
import { IntlProvider as Ol } from "react-intl";
|
|
14
14
|
import { flip as Pr, offset as Rr, shift as Cr, useFloating as ea } from "@floating-ui/react-dom";
|
|
15
|
-
import { getContrast as
|
|
16
|
-
import './history-chords.css';var Vn = Object.defineProperty,
|
|
15
|
+
import { getContrast as Nl } from "color2k";
|
|
16
|
+
import './history-chords.css';var Vn = Object.defineProperty, Hl = (e, t) => {
|
|
17
17
|
let r = {};
|
|
18
18
|
for (var n in e)
|
|
19
19
|
Vn(r, n, {
|
|
@@ -22,8 +22,8 @@ import './history-chords.css';var Vn = Object.defineProperty, Nl = (e, t) => {
|
|
|
22
22
|
});
|
|
23
23
|
return t || Vn(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
24
24
|
};
|
|
25
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.
|
|
26
|
-
function
|
|
25
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1791976962179");
|
|
26
|
+
function Dl(e) {
|
|
27
27
|
for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
|
|
28
28
|
}
|
|
29
29
|
var ta = K(null), Wy = ta.Provider, Fl = null, tn = () => W(ta) ?? (Fl ??= Fs());
|
|
@@ -34,7 +34,7 @@ var ra = K(null), ee = () => {
|
|
|
34
34
|
}, M = (e) => {
|
|
35
35
|
const { store: t } = ee();
|
|
36
36
|
return _e(t, (r) => e(r.scene));
|
|
37
|
-
}, et = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`,
|
|
37
|
+
}, et = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, Wl = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, Ye = (e) => {
|
|
38
38
|
if (e !== "none")
|
|
39
39
|
return `drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`;
|
|
40
40
|
}, tr = K(null), zn = [
|
|
@@ -43,7 +43,7 @@ var ra = K(null), ee = () => {
|
|
|
43
43
|
"alpha",
|
|
44
44
|
"fillAlpha",
|
|
45
45
|
"fill"
|
|
46
|
-
],
|
|
46
|
+
], Gl = (e, t) => b(() => {
|
|
47
47
|
if (Object.keys(e.styles.parts).length > 0) return;
|
|
48
48
|
const r = e.data.getFirst();
|
|
49
49
|
if (r === null) return;
|
|
@@ -52,7 +52,7 @@ var ra = K(null), ee = () => {
|
|
|
52
52
|
const a = /* @__PURE__ */ new Map(), i = (c, u) => {
|
|
53
53
|
switch (u) {
|
|
54
54
|
case "shadow":
|
|
55
|
-
return
|
|
55
|
+
return jl(t.get("shadow", c), n);
|
|
56
56
|
case "blendMode":
|
|
57
57
|
return t.get("blendMode", c) === "normal";
|
|
58
58
|
case "alpha":
|
|
@@ -64,25 +64,25 @@ var ra = K(null), ee = () => {
|
|
|
64
64
|
if (h === void 0) return !0;
|
|
65
65
|
const g = kr(h);
|
|
66
66
|
let f = a.get(g);
|
|
67
|
-
return f === void 0 && (f =
|
|
67
|
+
return f === void 0 && (f = il(h), a.set(g, f)), f;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
}, l =
|
|
70
|
+
}, l = zl(e.styles), d = zn.filter((c) => l.has(c) || Yl(e, c));
|
|
71
71
|
if (!zn.filter((c) => !d.includes(c)).some((c) => !i(r, c)))
|
|
72
72
|
return d.length === 0 || e.data.findFirst((c) => d.some((u) => !i(c, u))) === null ? o : void 0;
|
|
73
|
-
}, [e, t]),
|
|
73
|
+
}, [e, t]), Vl = (e, t) => {
|
|
74
74
|
const r = W(tr), n = r?.layerId === e.id && r.paintsShadow;
|
|
75
|
-
return b(() => n ?
|
|
76
|
-
},
|
|
75
|
+
return b(() => n ? Kl(t) : t, [n, t]);
|
|
76
|
+
}, zl = (e) => {
|
|
77
77
|
const t = /* @__PURE__ */ new Set();
|
|
78
78
|
for (const r of [...e.defaults, ...e.overrides])
|
|
79
79
|
if (!(r.matches === void 0 || r.state !== void 0 || r.part !== void 0))
|
|
80
80
|
for (const n of Object.keys(r.declarations)) t.add(n);
|
|
81
81
|
return t;
|
|
82
|
-
},
|
|
82
|
+
}, Yl = (e, t) => {
|
|
83
83
|
const r = e.styles.observation.aesthetics[t];
|
|
84
|
-
return r === void 0 || !Object.hasOwn(
|
|
85
|
-
},
|
|
84
|
+
return r === void 0 || !Object.hasOwn(Dn, r) ? !1 : e.data.hasVariable(Dn[r]);
|
|
85
|
+
}, jl = (e, t) => e === "none" || t === "none" ? e === t : e.offsetX === t.offsetX && e.offsetY === t.offsetY && e.blur === t.blur && e.color === t.color, Kl = (e) => {
|
|
86
86
|
const { get: t, resolve: r } = e;
|
|
87
87
|
return {
|
|
88
88
|
...e,
|
|
@@ -92,7 +92,7 @@ var ra = K(null), ee = () => {
|
|
|
92
92
|
return i === void 0 && (l.shadow = "none"), l;
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
}, na = () => ee().styleResolver,
|
|
95
|
+
}, na = () => ee().styleResolver, F = (e) => Vl(e, tt()(e)), O = () => {
|
|
96
96
|
const e = na(), t = M((r) => r.chrome);
|
|
97
97
|
return e.readers({ chrome: t });
|
|
98
98
|
}, oa = (e) => {
|
|
@@ -101,14 +101,14 @@ var ra = K(null), ee = () => {
|
|
|
101
101
|
}, aa = (e) => {
|
|
102
102
|
const t = tt(), r = M((n) => n.layers).find((n) => n.id === e.layerId);
|
|
103
103
|
return r === void 0 ? void 0 : $t({ geom: t }, r, e.observation);
|
|
104
|
-
},
|
|
104
|
+
}, Ul = () => {
|
|
105
105
|
const e = tt(), t = M((r) => r.layers);
|
|
106
106
|
return b(() => (r) => {
|
|
107
107
|
const n = Yo(t, r);
|
|
108
108
|
if (n !== null)
|
|
109
109
|
return $t({ geom: e }, n.layer, n.observation);
|
|
110
110
|
}, [t, e]);
|
|
111
|
-
},
|
|
111
|
+
}, Ql = (e) => {
|
|
112
112
|
const t = tt(), r = M((n) => n.layers);
|
|
113
113
|
return b(() => (n) => {
|
|
114
114
|
const o = Yo(r, n);
|
|
@@ -132,7 +132,7 @@ var ra = K(null), ee = () => {
|
|
|
132
132
|
}, tt = () => {
|
|
133
133
|
const e = na();
|
|
134
134
|
return M((t) => e.readers(t).geom);
|
|
135
|
-
},
|
|
135
|
+
}, Xl = {
|
|
136
136
|
centerX: 0,
|
|
137
137
|
centerY: 0,
|
|
138
138
|
radius: 1
|
|
@@ -149,8 +149,8 @@ var ra = K(null), ee = () => {
|
|
|
149
149
|
x: r,
|
|
150
150
|
y: r
|
|
151
151
|
};
|
|
152
|
-
}, ie = (e, t, r =
|
|
153
|
-
const n =
|
|
152
|
+
}, ie = (e, t, r = Xl) => {
|
|
153
|
+
const n = ul(e, t);
|
|
154
154
|
return {
|
|
155
155
|
x: r.centerX + n.x * r.radius,
|
|
156
156
|
y: r.centerY - n.y * r.radius
|
|
@@ -200,7 +200,7 @@ var ra = K(null), ee = () => {
|
|
|
200
200
|
...f
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
const m =
|
|
203
|
+
const m = Ls(e, n), p = {
|
|
204
204
|
...f,
|
|
205
205
|
strokeLinejoin: "round",
|
|
206
206
|
style: {
|
|
@@ -241,10 +241,10 @@ var ra = K(null), ee = () => {
|
|
|
241
241
|
transform: `translate(${t}, ${r})`
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
|
-
},
|
|
244
|
+
}, ql = 2, Jl = 0.7, Be = ({ hit: e, project: t = Ge }) => {
|
|
245
245
|
const r = oa(e.layerId), n = aa(e) ?? Wr;
|
|
246
246
|
if (!e.anchored) return null;
|
|
247
|
-
const o = (
|
|
247
|
+
const o = (Do(e.observation) ?? 1) * Jl, a = r?.get("size", e.observation) ?? $e, i = r?.get("stroke", e.observation, "hovered") ?? Gr, l = t(e.x, e.y);
|
|
248
248
|
return /* @__PURE__ */ s(rr, {
|
|
249
249
|
symbol: r?.get("symbol", e.observation) ?? "circle",
|
|
250
250
|
cx: C(l.x),
|
|
@@ -253,14 +253,14 @@ var ra = K(null), ee = () => {
|
|
|
253
253
|
fill: n,
|
|
254
254
|
opacity: o,
|
|
255
255
|
stroke: i,
|
|
256
|
-
strokeWidth:
|
|
256
|
+
strokeWidth: ql,
|
|
257
257
|
"data-testid": "companion-point"
|
|
258
258
|
});
|
|
259
259
|
};
|
|
260
260
|
var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
261
261
|
const r = Y(t), n = Y(2 * t), o = `a${r},${r} 0 1,0 ${n},0a${r},${r} 0 1,0 ${-n},0Z`;
|
|
262
262
|
return e.map(({ x: a, y: i }) => `M${Y(a - t)},${Y(i)}${o}`).join("");
|
|
263
|
-
},
|
|
263
|
+
}, Zl = (e, t, r) => {
|
|
264
264
|
const n = r.axis === "x", o = n ? e.y : e.x, a = n ? e.x : e.y, i = n ? e.height : e.width, l = n ? e.width : e.height, d = Math.max(Math.min(r.from, r.to), a), c = Math.min(Math.max(r.from, r.to), a + l);
|
|
265
265
|
if (c - d <= 0 || i <= 0) return "";
|
|
266
266
|
const u = Math.max(0, Math.min(t, i / 2)), h = Math.max(0, Math.min(t, l / 2)), g = a + h, f = a + l - h, v = o + i, m = n ? 0 : 1, p = (P, B) => {
|
|
@@ -312,7 +312,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
312
312
|
}, Vt = (e, t) => ({
|
|
313
313
|
x: e.x * t.width,
|
|
314
314
|
y: e.y * t.height
|
|
315
|
-
}),
|
|
315
|
+
}), $l = (e) => {
|
|
316
316
|
const t = /* @__PURE__ */ new Map();
|
|
317
317
|
for (const { center: r, size: n } of e) {
|
|
318
318
|
const o = t.get(n) ?? [];
|
|
@@ -323,7 +323,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
323
323
|
centers: n,
|
|
324
324
|
size: r
|
|
325
325
|
}));
|
|
326
|
-
}, sa = (e, t, { origin: r, scaleX: n, scaleY: o }) => `${Y(r.x + e * n)},${Y(r.y + t * o)}`,
|
|
326
|
+
}, sa = (e, t, { origin: r, scaleX: n, scaleY: o }) => `${Y(r.x + e * n)},${Y(r.y + t * o)}`, _l = ({ layer: e, coordSystem: t, panelRect: r, shouldAnimateTransitions: n }) => {
|
|
327
327
|
const { areaGenerator: o } = Yr(t, e.params), a = {
|
|
328
328
|
origin: {
|
|
329
329
|
x: 0,
|
|
@@ -338,7 +338,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
338
338
|
const u = Jr([...c], e.params.missingValues), [h] = u;
|
|
339
339
|
if (h !== void 0) {
|
|
340
340
|
if (u.length === 1) {
|
|
341
|
-
const g =
|
|
341
|
+
const g = ed(h, t, r);
|
|
342
342
|
g !== null && l.push(g);
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
@@ -355,7 +355,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
355
355
|
centers: l,
|
|
356
356
|
size: $e
|
|
357
357
|
}), d;
|
|
358
|
-
},
|
|
358
|
+
}, ed = (e, t, r) => {
|
|
359
359
|
if (t.mainAxis === "y") {
|
|
360
360
|
const a = _(e), i = Go(e) ?? q(e);
|
|
361
361
|
return a === null || i === null ? null : Vt(Ge(i, a), r);
|
|
@@ -383,8 +383,8 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
383
383
|
stiffness: 500,
|
|
384
384
|
damping: 60,
|
|
385
385
|
mass: 1
|
|
386
|
-
},
|
|
387
|
-
const n = ye(e), o =
|
|
386
|
+
}, td = { duration: 0 }, rn = (e) => e ? be : td, Ir = (e, t, r) => {
|
|
387
|
+
const n = ye(e), o = D(r);
|
|
388
388
|
return G(() => {
|
|
389
389
|
const a = r !== void 0 && r === o.current;
|
|
390
390
|
if (o.current = r, n.get() === e) return;
|
|
@@ -392,7 +392,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
392
392
|
n.set(e);
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
|
-
const i =
|
|
395
|
+
const i = Bl(n.get(), e), l = Pe(0, 1, {
|
|
396
396
|
...t,
|
|
397
397
|
onUpdate: (d) => n.set(i(d))
|
|
398
398
|
});
|
|
@@ -403,7 +403,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
403
403
|
r,
|
|
404
404
|
n
|
|
405
405
|
]), n;
|
|
406
|
-
}, da = ({ shouldAnimateTransitions: e, ...t }) => e ? /* @__PURE__ */ s(
|
|
406
|
+
}, da = ({ shouldAnimateTransitions: e, ...t }) => e ? /* @__PURE__ */ s(nd, { ...t }) : /* @__PURE__ */ s(rd, { ...t }), rd = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l, lineCap: d, lineJoin: c, opacity: u }) => /* @__PURE__ */ w("g", {
|
|
407
407
|
opacity: u,
|
|
408
408
|
children: [/* @__PURE__ */ s("path", {
|
|
409
409
|
d: e,
|
|
@@ -421,7 +421,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
421
421
|
strokeLinejoin: c,
|
|
422
422
|
vectorEffect: "non-scaling-stroke"
|
|
423
423
|
})]
|
|
424
|
-
}),
|
|
424
|
+
}), nd = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l, lineCap: d, lineJoin: c, opacity: u }) => {
|
|
425
425
|
const h = Ir(e, be), g = Ir(t, be);
|
|
426
426
|
return /* @__PURE__ */ w("g", {
|
|
427
427
|
opacity: u,
|
|
@@ -449,13 +449,13 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
449
449
|
ease: e.growAxis === "angle" ? "circOut" : "backOut",
|
|
450
450
|
delay: r
|
|
451
451
|
};
|
|
452
|
-
},
|
|
452
|
+
}, od = (e) => ({
|
|
453
453
|
duration: e.durationSeconds,
|
|
454
454
|
ease: "easeOut"
|
|
455
455
|
}), ca = (e) => ({
|
|
456
456
|
duration: e.durationSeconds,
|
|
457
457
|
ease: "easeOut"
|
|
458
|
-
}),
|
|
458
|
+
}), ad = (e) => id(e) + e.durationSeconds, id = (e) => {
|
|
459
459
|
switch (e.type) {
|
|
460
460
|
case "grow":
|
|
461
461
|
return Object.values(e.delayByKey).reduce((t, r) => Math.max(t, r), 0);
|
|
@@ -468,14 +468,14 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
468
468
|
return /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ s("clipPath", {
|
|
469
469
|
id: r,
|
|
470
470
|
children: /* @__PURE__ */ s(z.rect, {
|
|
471
|
-
...
|
|
472
|
-
transition:
|
|
471
|
+
...sd(e.axis),
|
|
472
|
+
transition: od(e)
|
|
473
473
|
})
|
|
474
474
|
}), /* @__PURE__ */ s("g", {
|
|
475
475
|
clipPath: `url(#${r})`,
|
|
476
476
|
children: t
|
|
477
477
|
})] });
|
|
478
|
-
},
|
|
478
|
+
}, sd = (e) => e === "x" ? {
|
|
479
479
|
x: "-5%",
|
|
480
480
|
y: "-25%",
|
|
481
481
|
height: `${Kn}%`,
|
|
@@ -490,8 +490,8 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
490
490
|
}, Se = ({ effects: e, ...t }) => /* @__PURE__ */ s("g", {
|
|
491
491
|
style: e,
|
|
492
492
|
children: /* @__PURE__ */ s("svg", { ...t })
|
|
493
|
-
}),
|
|
494
|
-
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = b(() => Yr(r, t.params), [t.params, r]), d =
|
|
493
|
+
}), ld = ge(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
494
|
+
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = b(() => Yr(r, t.params), [t.params, r]), d = F(t), c = b(() => {
|
|
495
495
|
const u = we(t.data, t.mapping, t.id), h = [];
|
|
496
496
|
return t.data.groupBy(ne.group).forEach((g) => {
|
|
497
497
|
const f = Jr([...g], t.params.missingValues), v = l(f), m = i(f);
|
|
@@ -521,7 +521,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
521
521
|
t.mapping,
|
|
522
522
|
t.params,
|
|
523
523
|
d
|
|
524
|
-
]).map((u) => /* @__PURE__ */ s(
|
|
524
|
+
]).map((u) => /* @__PURE__ */ s(dd, {
|
|
525
525
|
areaPath: u.areaPath,
|
|
526
526
|
linePath: u.linePath,
|
|
527
527
|
fill: u.fill,
|
|
@@ -547,7 +547,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
547
547
|
children: c
|
|
548
548
|
}) : c
|
|
549
549
|
});
|
|
550
|
-
}),
|
|
550
|
+
}), dd = ({ areaPath: e, linePath: t, fill: r, stroke: n, fillOpacity: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l, lineCap: d, lineJoin: c, shouldAnimateTransitions: u }) => /* @__PURE__ */ s(da, {
|
|
551
551
|
fillPath: e,
|
|
552
552
|
linePath: t,
|
|
553
553
|
fill: r,
|
|
@@ -559,10 +559,10 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
559
559
|
lineCap: d,
|
|
560
560
|
lineJoin: c,
|
|
561
561
|
shouldAnimateTransitions: u
|
|
562
|
-
}), ha = 1,
|
|
562
|
+
}), ha = 1, cd = 0.4, ud = 0.2, hd = 1, vd = 0.5, gd = 2.25, nt = ({ hit: e, project: t = Ge, ...r }) => {
|
|
563
563
|
const n = oa(e.layerId), o = aa(e) ?? Wr;
|
|
564
564
|
if (!e.anchored) return null;
|
|
565
|
-
const a =
|
|
565
|
+
const a = Do(e.observation) ?? 1, i = n?.get("stroke", e.observation, "hovered") ?? Gr, l = n?.get("symbol", e.observation) ?? "circle", d = t(e.x, e.y), c = C(d.x), u = C(d.y), h = fd(e.observation, n), { ringRadius: g, ringWidth: f } = pd(h, _s(l, h * 2)), v = n ? Z(J(n, e.observation, "hovered")) : void 0;
|
|
566
566
|
return /* @__PURE__ */ w("g", {
|
|
567
567
|
...r,
|
|
568
568
|
style: v,
|
|
@@ -584,17 +584,17 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
584
584
|
strokeWidth: ha
|
|
585
585
|
})]
|
|
586
586
|
});
|
|
587
|
-
}, gd = (e, t) => {
|
|
588
|
-
const r = t?.get("size", e), n = tl(e) ?? null;
|
|
589
|
-
return n !== null ? (r ?? n) / vd : (r ?? 12) / 2;
|
|
590
587
|
}, fd = (e, t) => {
|
|
591
|
-
const r =
|
|
588
|
+
const r = t?.get("size", e), n = rl(e) ?? null;
|
|
589
|
+
return n !== null ? (r ?? n) / gd : (r ?? 12) / 2;
|
|
590
|
+
}, pd = (e, t) => {
|
|
591
|
+
const r = Math.max(hd, e * cd), n = Math.max(vd, e * ud);
|
|
592
592
|
return {
|
|
593
593
|
ringRadius: t + ha / 2 + n + r / 2,
|
|
594
594
|
ringWidth: r
|
|
595
595
|
};
|
|
596
|
-
},
|
|
597
|
-
const o =
|
|
596
|
+
}, md = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
|
|
597
|
+
const o = F(e), a = ze(r.observation), i = b(() => Jr([...e.data.filter(ne.group, "eq", a)], e.params.missingValues), [
|
|
598
598
|
e.data,
|
|
599
599
|
e.params.missingValues,
|
|
600
600
|
a
|
|
@@ -648,25 +648,25 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
|
|
|
648
648
|
})
|
|
649
649
|
]
|
|
650
650
|
});
|
|
651
|
-
},
|
|
651
|
+
}, yd = {
|
|
652
652
|
geom: "area",
|
|
653
653
|
coord: "cartesian",
|
|
654
654
|
swatchShape: "area",
|
|
655
655
|
guideMode: "crosshair",
|
|
656
|
-
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(
|
|
656
|
+
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(ld, {
|
|
657
657
|
layer: e,
|
|
658
658
|
coordSystem: t,
|
|
659
659
|
shouldAnimateTransitions: r,
|
|
660
660
|
intro: n
|
|
661
661
|
}),
|
|
662
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r, group: n, related: o }) => /* @__PURE__ */ s(
|
|
662
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r, group: n, related: o }) => /* @__PURE__ */ s(md, {
|
|
663
663
|
layer: e,
|
|
664
664
|
coordSystem: t,
|
|
665
665
|
primary: r,
|
|
666
666
|
companions: [...n, ...o]
|
|
667
667
|
}),
|
|
668
668
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(T, { children: e.map((t) => /* @__PURE__ */ s(Be, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
|
|
669
|
-
getEditOutlineShapes:
|
|
669
|
+
getEditOutlineShapes: _l,
|
|
670
670
|
getOverlayAnchor: ({ observation: e, coordSystem: t }) => {
|
|
671
671
|
if (t.mainAxis === "x") {
|
|
672
672
|
const o = q(e), a = Zt(e) ?? _(e);
|
|
@@ -714,7 +714,7 @@ var Un = "\0", ga = (e, t) => {
|
|
|
714
714
|
width: r,
|
|
715
715
|
height: t == null ? r : r * t.height / t.width
|
|
716
716
|
};
|
|
717
|
-
},
|
|
717
|
+
}, xd = (e) => new Promise((t) => {
|
|
718
718
|
if (typeof Image > "u") {
|
|
719
719
|
t(null);
|
|
720
720
|
return;
|
|
@@ -728,7 +728,7 @@ var Un = "\0", ga = (e, t) => {
|
|
|
728
728
|
} : null);
|
|
729
729
|
}, r.onerror = () => t(null), r.src = e;
|
|
730
730
|
}), ot = (e) => {
|
|
731
|
-
const t = [...new Set(e.map(Qn).filter((i) => i !== void 0))].join(Un), [r, n] = j(() => /* @__PURE__ */ new Map()), o =
|
|
731
|
+
const t = [...new Set(e.map(Qn).filter((i) => i !== void 0))].join(Un), [r, n] = j(() => /* @__PURE__ */ new Map()), o = D(/* @__PURE__ */ new Set()), a = D(/* @__PURE__ */ new Set());
|
|
732
732
|
return G(() => () => {
|
|
733
733
|
o.current = /* @__PURE__ */ new Set();
|
|
734
734
|
}, []), G(() => {
|
|
@@ -740,28 +740,28 @@ var Un = "\0", ga = (e, t) => {
|
|
|
740
740
|
return d.size === l.size ? l : d;
|
|
741
741
|
});
|
|
742
742
|
for (const l of i)
|
|
743
|
-
r.has(l) || a.current.has(l) || (a.current.add(l),
|
|
743
|
+
r.has(l) || a.current.has(l) || (a.current.add(l), xd(l).then((d) => {
|
|
744
744
|
o.current.has(l) && (a.current.delete(l), n((c) => new Map(c).set(l, d)));
|
|
745
745
|
}));
|
|
746
746
|
}, [t, r]), ue((i) => {
|
|
747
747
|
const l = Qn(i);
|
|
748
748
|
return l === void 0 ? void 0 : r.get(l);
|
|
749
749
|
}, [r]);
|
|
750
|
-
}, Qn = (e) => e !== void 0 &&
|
|
751
|
-
var
|
|
750
|
+
}, Qn = (e) => e !== void 0 && al(e) && (e.fit ?? "tile") === "tile" ? e.image : void 0;
|
|
751
|
+
var Ad = 1 / 3, bd = {
|
|
752
752
|
x: 1,
|
|
753
753
|
y: 1
|
|
754
|
-
},
|
|
754
|
+
}, wd = {
|
|
755
755
|
x: 0,
|
|
756
756
|
y: 0
|
|
757
|
-
}, le = ({ paints: e, unitsPerPixel: t =
|
|
757
|
+
}, le = ({ paints: e, unitsPerPixel: t = bd, origin: r = wd }) => {
|
|
758
758
|
const n = U(), o = b(() => {
|
|
759
759
|
const a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
|
|
760
760
|
for (const l of e) {
|
|
761
761
|
if (typeof l == "string") continue;
|
|
762
762
|
const d = kr(l);
|
|
763
763
|
if (a.has(d)) continue;
|
|
764
|
-
const c = `${n}paint-${
|
|
764
|
+
const c = `${n}paint-${Sd(d)}`;
|
|
765
765
|
let u = c, h = 1;
|
|
766
766
|
for (; i.has(u); ) u = `${c}-${h++}`;
|
|
767
767
|
i.add(u), a.set(d, {
|
|
@@ -778,35 +778,35 @@ var xd = 1 / 3, Ad = {
|
|
|
778
778
|
if (i === void 0) throw new Error("fillFor requires a paint supplied to usePaintDefs.");
|
|
779
779
|
return `url(#${i.id})`;
|
|
780
780
|
}, [o]),
|
|
781
|
-
defs: /* @__PURE__ */ s(
|
|
781
|
+
defs: /* @__PURE__ */ s(kd, {
|
|
782
782
|
entries: [...o.values()],
|
|
783
783
|
unitsPerPixel: t,
|
|
784
784
|
origin: r
|
|
785
785
|
})
|
|
786
786
|
};
|
|
787
|
-
},
|
|
787
|
+
}, Sd = (e) => {
|
|
788
788
|
let t = 2166136261;
|
|
789
789
|
for (let r = 0; r < e.length; r++)
|
|
790
790
|
t ^= e.charCodeAt(r), t = Math.imul(t, 16777619);
|
|
791
791
|
return (t >>> 0).toString(36);
|
|
792
|
-
},
|
|
792
|
+
}, kd = ({ entries: e, unitsPerPixel: t, origin: r }) => {
|
|
793
793
|
const n = ot(e.map(({ paint: o }) => o));
|
|
794
|
-
return e.length === 0 ? null : /* @__PURE__ */ s("defs", { children: e.map(({ id: o, paint: a }) => /* @__PURE__ */ s(
|
|
794
|
+
return e.length === 0 ? null : /* @__PURE__ */ s("defs", { children: e.map(({ id: o, paint: a }) => /* @__PURE__ */ s(Ed, {
|
|
795
795
|
id: o,
|
|
796
796
|
paint: a,
|
|
797
797
|
unitsPerPixel: t,
|
|
798
798
|
origin: r,
|
|
799
799
|
imageSize: n(a)
|
|
800
800
|
}, o)) });
|
|
801
|
-
},
|
|
801
|
+
}, Ed = ({ id: e, paint: t, unitsPerPixel: r, origin: n, imageSize: o }) => Vo(t) ? /* @__PURE__ */ s(Rd, {
|
|
802
802
|
id: e,
|
|
803
803
|
paint: t
|
|
804
|
-
}) : Xr(t) ? /* @__PURE__ */ s(
|
|
804
|
+
}) : Xr(t) ? /* @__PURE__ */ s(Cd, {
|
|
805
805
|
id: e,
|
|
806
806
|
paint: t,
|
|
807
807
|
unitsPerPixel: r,
|
|
808
808
|
origin: n
|
|
809
|
-
}) : /* @__PURE__ */ s(
|
|
809
|
+
}) : /* @__PURE__ */ s(Ld, {
|
|
810
810
|
id: e,
|
|
811
811
|
paint: t,
|
|
812
812
|
unitsPerPixel: r,
|
|
@@ -815,7 +815,7 @@ var xd = 1 / 3, Ad = {
|
|
|
815
815
|
}), fa = (e) => ({
|
|
816
816
|
x: C(e.x),
|
|
817
817
|
y: C(e.y)
|
|
818
|
-
}),
|
|
818
|
+
}), Pd = (e) => {
|
|
819
819
|
const t = (e - 90) * Math.PI / 180, r = Math.cos(t) / 2, n = Math.sin(t) / 2;
|
|
820
820
|
return {
|
|
821
821
|
x1: 0.5 - r,
|
|
@@ -823,7 +823,7 @@ var xd = 1 / 3, Ad = {
|
|
|
823
823
|
x2: 0.5 + r,
|
|
824
824
|
y2: 0.5 + n
|
|
825
825
|
};
|
|
826
|
-
},
|
|
826
|
+
}, Rd = ({ id: e, paint: t }) => {
|
|
827
827
|
const r = t.stops.map((n, o) => /* @__PURE__ */ s("stop", {
|
|
828
828
|
offset: n.offset,
|
|
829
829
|
stopColor: n.color
|
|
@@ -835,10 +835,10 @@ var xd = 1 / 3, Ad = {
|
|
|
835
835
|
}) : /* @__PURE__ */ s("linearGradient", {
|
|
836
836
|
id: e,
|
|
837
837
|
gradientUnits: "objectBoundingBox",
|
|
838
|
-
...
|
|
838
|
+
...Pd(t.angle ?? 180),
|
|
839
839
|
children: r
|
|
840
840
|
});
|
|
841
|
-
},
|
|
841
|
+
}, Cd = ({ id: e, paint: t, unitsPerPixel: r, origin: n }) => {
|
|
842
842
|
const o = t.size ?? 8, a = o / 2;
|
|
843
843
|
return /* @__PURE__ */ w("pattern", {
|
|
844
844
|
id: e,
|
|
@@ -879,7 +879,7 @@ var xd = 1 / 3, Ad = {
|
|
|
879
879
|
})
|
|
880
880
|
]
|
|
881
881
|
});
|
|
882
|
-
},
|
|
882
|
+
}, Ld = ({ id: e, paint: t, unitsPerPixel: r, origin: n, imageSize: o }) => {
|
|
883
883
|
if ((t.fit ?? "tile") === "stretch") return /* @__PURE__ */ w("pattern", {
|
|
884
884
|
id: e,
|
|
885
885
|
patternUnits: "objectBoundingBox",
|
|
@@ -935,13 +935,13 @@ var xd = 1 / 3, Ad = {
|
|
|
935
935
|
const i = /* @__PURE__ */ new Map();
|
|
936
936
|
for (const [l, { firstObservation: d, segments: c }] of o) i.set(l, {
|
|
937
937
|
style: nr(r, d),
|
|
938
|
-
bounds:
|
|
938
|
+
bounds: qs(c),
|
|
939
939
|
segments: c
|
|
940
940
|
});
|
|
941
941
|
return i;
|
|
942
942
|
}, on = (e, t, r) => {
|
|
943
943
|
const n = /* @__PURE__ */ new Map();
|
|
944
|
-
for (const [o, { style: a, bounds: i }] of pa(e, t, r,
|
|
944
|
+
for (const [o, { style: a, bounds: i }] of pa(e, t, r, Bd)) n.set(o, {
|
|
945
945
|
style: a,
|
|
946
946
|
bounds: i
|
|
947
947
|
});
|
|
@@ -972,7 +972,7 @@ var xd = 1 / 3, Ad = {
|
|
|
972
972
|
`${a}`
|
|
973
973
|
], f = `${Y(r + i)}`, v = `${Y(o - i)}`, m = `${Y(n + l)}`, p = `${Y(a - l)}`;
|
|
974
974
|
return `M${f},${u}H${v}${d}${h},${m}V${p}${d}${v},${g}H${f}${d}${c},${p}V${m}${d}${f},${u}Z`;
|
|
975
|
-
},
|
|
975
|
+
}, Id = ({ observation: e, mainAxis: t, styleReaders: r, column: n, panelRect: o, fill: a }) => {
|
|
976
976
|
const i = U(), l = U(), d = Jt(t, e);
|
|
977
977
|
if (!d) return null;
|
|
978
978
|
const c = Ve(d, o), u = Ve(n.bounds, o), { stroke: h, strokeWidth: g, cornerRadius: f, strokeAlpha: v } = n.style, m = _r({
|
|
@@ -1015,8 +1015,8 @@ var xd = 1 / 3, Ad = {
|
|
|
1015
1015
|
})
|
|
1016
1016
|
]
|
|
1017
1017
|
});
|
|
1018
|
-
},
|
|
1019
|
-
const o =
|
|
1018
|
+
}, Td = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => {
|
|
1019
|
+
const o = F(t), a = b(() => on(t, r.mainAxis, o), [
|
|
1020
1020
|
t,
|
|
1021
1021
|
r.mainAxis,
|
|
1022
1022
|
o
|
|
@@ -1028,7 +1028,7 @@ var xd = 1 / 3, Ad = {
|
|
|
1028
1028
|
for (const f of e.data) {
|
|
1029
1029
|
g += 1;
|
|
1030
1030
|
const v = ma(a, r.mainAxis, o, f);
|
|
1031
|
-
v !== null && h.push(/* @__PURE__ */ s(
|
|
1031
|
+
v !== null && h.push(/* @__PURE__ */ s(Id, {
|
|
1032
1032
|
observation: f,
|
|
1033
1033
|
mainAxis: r.mainAxis,
|
|
1034
1034
|
styleReaders: o,
|
|
@@ -1040,16 +1040,16 @@ var xd = 1 / 3, Ad = {
|
|
|
1040
1040
|
return /* @__PURE__ */ w(T, { children: [c, h] });
|
|
1041
1041
|
}, an = (e, t) => {
|
|
1042
1042
|
const r = M((n) => n.scales);
|
|
1043
|
-
return b(() =>
|
|
1043
|
+
return b(() => yl(e, t, r), [
|
|
1044
1044
|
e,
|
|
1045
1045
|
t,
|
|
1046
1046
|
r
|
|
1047
1047
|
]);
|
|
1048
|
-
},
|
|
1049
|
-
const { mainAxis: i } = r, l =
|
|
1048
|
+
}, Bd = (e, t) => t, Md = va(on), Od = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o, shouldAnimateTransitions: a }) => {
|
|
1049
|
+
const { mainAxis: i } = r, l = Md(t, i, o), d = Nd(e.data);
|
|
1050
1050
|
let c = "";
|
|
1051
1051
|
for (let u = 0; u < e.data.size(); u++) {
|
|
1052
|
-
const h =
|
|
1052
|
+
const h = ws(i, {
|
|
1053
1053
|
xMin: d.xMin[u] ?? null,
|
|
1054
1054
|
xMax: d.xMax[u] ?? null,
|
|
1055
1055
|
yMin: d.yMin[u] ?? null,
|
|
@@ -1064,7 +1064,7 @@ var xd = 1 / 3, Ad = {
|
|
|
1064
1064
|
mainAxis: i,
|
|
1065
1065
|
bounds: f
|
|
1066
1066
|
});
|
|
1067
|
-
c +=
|
|
1067
|
+
c += Hd(v, f) ? Ie(f, m) : Zl(f, m, i === "x" ? {
|
|
1068
1068
|
axis: "y",
|
|
1069
1069
|
from: v.y,
|
|
1070
1070
|
to: v.y + v.height
|
|
@@ -1079,7 +1079,7 @@ var xd = 1 / 3, Ad = {
|
|
|
1079
1079
|
pathData: c,
|
|
1080
1080
|
shouldAnimateTransitions: a
|
|
1081
1081
|
}];
|
|
1082
|
-
},
|
|
1082
|
+
}, Nd = (e) => {
|
|
1083
1083
|
const t = (r) => e.hasVariable(r) ? e.getValues(r, { type: "numeric" }) : null;
|
|
1084
1084
|
return {
|
|
1085
1085
|
xMin: e.getValues(ut.xMin, { type: "numeric" }),
|
|
@@ -1088,14 +1088,14 @@ var xd = 1 / 3, Ad = {
|
|
|
1088
1088
|
yMax: t(ut.yMax),
|
|
1089
1089
|
y: t(ut.y)
|
|
1090
1090
|
};
|
|
1091
|
-
},
|
|
1092
|
-
const n = r === void 0 ? e.activeIntro : r, o =
|
|
1091
|
+
}, Hd = (e, t) => Math.abs(e.x - t.x) < 0.5 && Math.abs(e.y - t.y) < 0.5 && Math.abs(e.width - t.width) < 0.5 && Math.abs(e.height - t.height) < 0.5, Tr = (e, t, r) => {
|
|
1092
|
+
const n = r === void 0 ? e.activeIntro : r, o = D(n ? nn(n, t) : null), a = D(e.shouldAnimateTransitions);
|
|
1093
1093
|
return a.current = e.shouldAnimateTransitions, ue(() => {
|
|
1094
1094
|
const i = o.current;
|
|
1095
1095
|
return o.current = null, i ?? rn(a.current);
|
|
1096
1096
|
}, []);
|
|
1097
1097
|
}, or = (e, t) => {
|
|
1098
|
-
const r =
|
|
1098
|
+
const r = D(!0);
|
|
1099
1099
|
G(() => {
|
|
1100
1100
|
r.current = !1;
|
|
1101
1101
|
}, []);
|
|
@@ -1120,8 +1120,8 @@ var xd = 1 / 3, Ad = {
|
|
|
1120
1120
|
y: t.baseline,
|
|
1121
1121
|
width: e.width,
|
|
1122
1122
|
height: 0
|
|
1123
|
-
},
|
|
1124
|
-
const a = U(), i =
|
|
1123
|
+
}, Dd = ge(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
1124
|
+
const a = U(), i = F(t), l = or(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n), { paints: d, paintAt: c } = Rt(t, i), { fillFor: u, defs: h } = le({
|
|
1125
1125
|
paints: d,
|
|
1126
1126
|
origin: an(t, r)
|
|
1127
1127
|
});
|
|
@@ -1139,9 +1139,9 @@ var xd = 1 / 3, Ad = {
|
|
|
1139
1139
|
key: f[0]?.key ?? String(p),
|
|
1140
1140
|
id: `${a}${p}`,
|
|
1141
1141
|
bars: f,
|
|
1142
|
-
effects:
|
|
1142
|
+
effects: Vd(f),
|
|
1143
1143
|
...m,
|
|
1144
|
-
radii:
|
|
1144
|
+
radii: Yd({
|
|
1145
1145
|
cornerRadius: v.cornerRadius,
|
|
1146
1146
|
mainAxis: r.mainAxis,
|
|
1147
1147
|
bounds: m
|
|
@@ -1177,7 +1177,7 @@ var xd = 1 / 3, Ad = {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
return /* @__PURE__ */ s("g", {
|
|
1179
1179
|
style: f,
|
|
1180
|
-
children: l.isAnimated ? /* @__PURE__ */ s(
|
|
1180
|
+
children: l.isAnimated ? /* @__PURE__ */ s(Wd, {
|
|
1181
1181
|
column: g,
|
|
1182
1182
|
animation: l
|
|
1183
1183
|
}) : /* @__PURE__ */ s(Fd, {
|
|
@@ -1217,8 +1217,8 @@ var xd = 1 / 3, Ad = {
|
|
|
1217
1217
|
strokeWidth: l,
|
|
1218
1218
|
opacity: i
|
|
1219
1219
|
}))] });
|
|
1220
|
-
},
|
|
1221
|
-
const { id: r, bars: n, radii: o, stroke: a, outlineOpacity: i, clippedStrokeWidth: l } = e, d = a !== void 0, c =
|
|
1220
|
+
}, Wd = ({ column: e, animation: t }) => {
|
|
1221
|
+
const { id: r, bars: n, radii: o, stroke: a, outlineOpacity: i, clippedStrokeWidth: l } = e, d = a !== void 0, c = zd(e, t, n[0]?.key), u = {
|
|
1222
1222
|
x: c.x,
|
|
1223
1223
|
y: c.y,
|
|
1224
1224
|
width: c.width,
|
|
@@ -1267,9 +1267,9 @@ var xd = 1 / 3, Ad = {
|
|
|
1267
1267
|
clipPath: d,
|
|
1268
1268
|
children: r
|
|
1269
1269
|
})] });
|
|
1270
|
-
},
|
|
1270
|
+
}, Gd = (e, t) => e === t || e !== void 0 && t !== void 0 && e.filter === t.filter && e.mixBlendMode === t.mixBlendMode, Vd = (e) => {
|
|
1271
1271
|
const [t, ...r] = e, n = t?.effects;
|
|
1272
|
-
return r.every((o) =>
|
|
1272
|
+
return r.every((o) => Gd(o.effects, n)) ? {
|
|
1273
1273
|
scope: "column",
|
|
1274
1274
|
style: n
|
|
1275
1275
|
} : { scope: "bar" };
|
|
@@ -1324,7 +1324,7 @@ var xd = 1 / 3, Ad = {
|
|
|
1324
1324
|
stroke: n,
|
|
1325
1325
|
strokeWidth: o,
|
|
1326
1326
|
opacity: a
|
|
1327
|
-
}),
|
|
1327
|
+
}), zd = (e, t, r) => {
|
|
1328
1328
|
const n = t.activeIntro ? ya(e, t.activeIntro) : e, o = ye(n.x), a = ye(n.y), i = ye(n.width), l = ye(n.height), d = Tr(t, r);
|
|
1329
1329
|
return G(() => {
|
|
1330
1330
|
const c = d(), u = [
|
|
@@ -1353,14 +1353,14 @@ var xd = 1 / 3, Ad = {
|
|
|
1353
1353
|
height: Nt(l, C)
|
|
1354
1354
|
};
|
|
1355
1355
|
};
|
|
1356
|
-
function
|
|
1357
|
-
const t =
|
|
1356
|
+
function Yd(e) {
|
|
1357
|
+
const t = ml(e);
|
|
1358
1358
|
if (e.cornerRadius !== "full") return t;
|
|
1359
1359
|
const r = {};
|
|
1360
1360
|
return t.rx !== void 0 && (r.rx = C(t.rx)), t.ry !== void 0 && (r.ry = C(t.ry)), r;
|
|
1361
1361
|
}
|
|
1362
|
-
var yr = 3,
|
|
1363
|
-
const o =
|
|
1362
|
+
var yr = 3, jd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
1363
|
+
const o = F(e), a = U(), i = U(), l = U(), d = b(() => on(e, t.mainAxis, o), [
|
|
1364
1364
|
e,
|
|
1365
1365
|
t.mainAxis,
|
|
1366
1366
|
o
|
|
@@ -1426,32 +1426,32 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1426
1426
|
})
|
|
1427
1427
|
]
|
|
1428
1428
|
});
|
|
1429
|
-
},
|
|
1429
|
+
}, Kd = {
|
|
1430
1430
|
geom: "bar",
|
|
1431
1431
|
coord: "cartesian",
|
|
1432
1432
|
swatchShape: "square",
|
|
1433
1433
|
guideMode: "band",
|
|
1434
|
-
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(
|
|
1434
|
+
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n }) => /* @__PURE__ */ s(Dd, {
|
|
1435
1435
|
layer: e,
|
|
1436
1436
|
coordSystem: t,
|
|
1437
1437
|
shouldAnimateTransitions: r,
|
|
1438
1438
|
intro: n
|
|
1439
1439
|
}),
|
|
1440
|
-
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ s(
|
|
1440
|
+
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ s(Td, {
|
|
1441
1441
|
layer: e,
|
|
1442
1442
|
sourceLayer: t,
|
|
1443
1443
|
coordSystem: r,
|
|
1444
1444
|
panelRect: n
|
|
1445
1445
|
}),
|
|
1446
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ s(
|
|
1446
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ s(jd, {
|
|
1447
1447
|
layer: e,
|
|
1448
1448
|
coordSystem: t,
|
|
1449
1449
|
primary: r,
|
|
1450
1450
|
panelRect: n
|
|
1451
1451
|
}),
|
|
1452
1452
|
renderHoverCompanions: () => null,
|
|
1453
|
-
getEditOutlineShapes:
|
|
1454
|
-
},
|
|
1453
|
+
getEditOutlineShapes: Od
|
|
1454
|
+
}, Ud = ({ layer: e, panelRect: t, styleReaders: r, shouldAnimateTransitions: n }) => {
|
|
1455
1455
|
const o = jr(e.params), a = {
|
|
1456
1456
|
origin: {
|
|
1457
1457
|
x: 0,
|
|
@@ -1464,7 +1464,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1464
1464
|
const c = Zr([...d], e.params.missingValues), [u] = c;
|
|
1465
1465
|
if (u === void 0) return;
|
|
1466
1466
|
if (c.length === 1) {
|
|
1467
|
-
const g =
|
|
1467
|
+
const g = Qd(u, t);
|
|
1468
1468
|
g !== null && l.push(g);
|
|
1469
1469
|
return;
|
|
1470
1470
|
}
|
|
@@ -1481,11 +1481,11 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1481
1481
|
centers: l,
|
|
1482
1482
|
size: $e
|
|
1483
1483
|
}), i;
|
|
1484
|
-
},
|
|
1484
|
+
}, Qd = (e, t) => {
|
|
1485
1485
|
const r = q(e), n = _(e);
|
|
1486
1486
|
return r === null || n === null ? null : Vt(Ge(r, n), t);
|
|
1487
|
-
},
|
|
1488
|
-
const o = n?.type === "wipe" ? n : null, a = b(() => jr(t.params), [t.params]), i = b(() =>
|
|
1487
|
+
}, Xd = ge(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1488
|
+
const o = n?.type === "wipe" ? n : null, a = b(() => jr(t.params), [t.params]), i = b(() => Gs(t.params), [t.params]), l = F(t), d = b(() => {
|
|
1489
1489
|
const c = we(t.data, t.mapping, t.id), u = [];
|
|
1490
1490
|
return t.data.groupBy(ne.group).forEach((h) => {
|
|
1491
1491
|
const g = Zr([...h], t.params.missingValues), f = a(g);
|
|
@@ -1516,7 +1516,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1516
1516
|
t.mapping,
|
|
1517
1517
|
t.params,
|
|
1518
1518
|
l
|
|
1519
|
-
]).map((c) => /* @__PURE__ */ s(
|
|
1519
|
+
]).map((c) => /* @__PURE__ */ s(qd, {
|
|
1520
1520
|
pathData: c.pathData,
|
|
1521
1521
|
fillPath: c.fillPath,
|
|
1522
1522
|
fillAlpha: c.fillAlpha,
|
|
@@ -1543,7 +1543,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1543
1543
|
children: d
|
|
1544
1544
|
}) : d
|
|
1545
1545
|
});
|
|
1546
|
-
}),
|
|
1546
|
+
}), qd = ({ pathData: e, fillPath: t, fillAlpha: r, stroke: n, fill: o, strokeWidth: a, opacity: i, strokeAlpha: l, strokeDasharray: d, lineCap: c, lineJoin: u, shouldAnimateTransitions: h }) => t !== void 0 && r !== void 0 ? /* @__PURE__ */ s(Jd, {
|
|
1547
1547
|
fillPath: t,
|
|
1548
1548
|
fillAlpha: r,
|
|
1549
1549
|
fill: o,
|
|
@@ -1556,7 +1556,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1556
1556
|
lineCap: c,
|
|
1557
1557
|
lineJoin: u,
|
|
1558
1558
|
shouldAnimateTransitions: h
|
|
1559
|
-
}) : h ? /* @__PURE__ */ s(
|
|
1559
|
+
}) : h ? /* @__PURE__ */ s(Zd, {
|
|
1560
1560
|
pathData: e,
|
|
1561
1561
|
stroke: n,
|
|
1562
1562
|
strokeWidth: a,
|
|
@@ -1576,7 +1576,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1576
1576
|
strokeLinecap: c,
|
|
1577
1577
|
strokeLinejoin: u,
|
|
1578
1578
|
vectorEffect: "non-scaling-stroke"
|
|
1579
|
-
}),
|
|
1579
|
+
}), Jd = ({ fillPath: e, fillAlpha: t, linePath: r, stroke: n, fill: o, strokeWidth: a, opacity: i, strokeAlpha: l, strokeDasharray: d, lineCap: c, lineJoin: u, shouldAnimateTransitions: h }) => {
|
|
1580
1580
|
const g = `line_fill_gradient_${U()}`;
|
|
1581
1581
|
return /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ w("linearGradient", {
|
|
1582
1582
|
id: g,
|
|
@@ -1611,7 +1611,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1611
1611
|
lineJoin: u,
|
|
1612
1612
|
shouldAnimateTransitions: h
|
|
1613
1613
|
})] });
|
|
1614
|
-
},
|
|
1614
|
+
}, Zd = ({ pathData: e, stroke: t, strokeWidth: r, opacity: n, strokeAlpha: o, strokeDasharray: a, lineCap: i, lineJoin: l }) => {
|
|
1615
1615
|
const d = Ir(e, be);
|
|
1616
1616
|
return /* @__PURE__ */ s(z.path, {
|
|
1617
1617
|
d,
|
|
@@ -1625,8 +1625,8 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1625
1625
|
strokeLinejoin: l,
|
|
1626
1626
|
vectorEffect: "non-scaling-stroke"
|
|
1627
1627
|
});
|
|
1628
|
-
},
|
|
1629
|
-
const n =
|
|
1628
|
+
}, $d = ({ layer: e, primary: t, companions: r }) => {
|
|
1629
|
+
const n = F(e), o = ze(t.observation), a = b(() => Zr([...e.data.filter(ne.group, "eq", o)], e.params.missingValues), [
|
|
1630
1630
|
e.data,
|
|
1631
1631
|
e.params.missingValues,
|
|
1632
1632
|
o
|
|
@@ -1665,23 +1665,23 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1665
1665
|
})
|
|
1666
1666
|
]
|
|
1667
1667
|
});
|
|
1668
|
-
},
|
|
1668
|
+
}, _d = {
|
|
1669
1669
|
geom: "line",
|
|
1670
1670
|
coord: "cartesian",
|
|
1671
1671
|
swatchShape: "line",
|
|
1672
1672
|
guideMode: "crosshair",
|
|
1673
|
-
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(
|
|
1673
|
+
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(Xd, {
|
|
1674
1674
|
layer: e,
|
|
1675
1675
|
shouldAnimateTransitions: t,
|
|
1676
1676
|
intro: r
|
|
1677
1677
|
}),
|
|
1678
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s(
|
|
1678
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s($d, {
|
|
1679
1679
|
layer: e,
|
|
1680
1680
|
primary: t,
|
|
1681
1681
|
companions: [...r, ...n]
|
|
1682
1682
|
}),
|
|
1683
1683
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(T, { children: e.map((t) => /* @__PURE__ */ s(Be, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
|
|
1684
|
-
getEditOutlineShapes:
|
|
1684
|
+
getEditOutlineShapes: Ud,
|
|
1685
1685
|
getOverlayAnchor: ({ observation: e }) => {
|
|
1686
1686
|
const t = q(e), r = _(e);
|
|
1687
1687
|
return t === null || r === null ? null : {
|
|
@@ -1723,9 +1723,9 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1723
1723
|
size: r.get("size", a) + r.get("strokeWidth", a)
|
|
1724
1724
|
});
|
|
1725
1725
|
}
|
|
1726
|
-
return
|
|
1727
|
-
},
|
|
1728
|
-
const o =
|
|
1726
|
+
return $l(o);
|
|
1727
|
+
}, ec = ge(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1728
|
+
const o = F(t), a = or(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
1729
1729
|
return b(() => {
|
|
1730
1730
|
const i = a.activeIntro ? we(t.data, t.mapping, t.id) : null, l = [];
|
|
1731
1731
|
let d = 0;
|
|
@@ -1750,11 +1750,11 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1750
1750
|
"data-testid": "hovered-point",
|
|
1751
1751
|
children: r
|
|
1752
1752
|
}) : r;
|
|
1753
|
-
},
|
|
1753
|
+
}, tc = {
|
|
1754
1754
|
geom: "point",
|
|
1755
1755
|
coord: "cartesian",
|
|
1756
1756
|
swatchShape: "circle",
|
|
1757
|
-
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(
|
|
1757
|
+
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(ec, {
|
|
1758
1758
|
layer: e,
|
|
1759
1759
|
shouldAnimateTransitions: t,
|
|
1760
1760
|
intro: r
|
|
@@ -1931,7 +1931,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1931
1931
|
fontEditorSectionTitle: "var(--graphy-font-editor-section-title)",
|
|
1932
1932
|
fontEditorCaption: "var(--graphy-font-editor-caption)"
|
|
1933
1933
|
}, ar = `"Stack Sans Text", 'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
|
|
1934
|
-
'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`,
|
|
1934
|
+
'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, rc = ar, vt = {
|
|
1935
1935
|
regular: ct.regular,
|
|
1936
1936
|
medium: ct.medium,
|
|
1937
1937
|
semibold: ct.semiBold,
|
|
@@ -1962,7 +1962,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1962
1962
|
}, me = (e) => `${e}em`, Sa = {
|
|
1963
1963
|
textScale: "1",
|
|
1964
1964
|
fontFamily: ar,
|
|
1965
|
-
fontFamilyHeading:
|
|
1965
|
+
fontFamilyHeading: rc,
|
|
1966
1966
|
fontWeightRegular: vt.regular.toString(),
|
|
1967
1967
|
fontWeightMedium: vt.medium.toString(),
|
|
1968
1968
|
fontWeightSemibold: vt.semibold.toString(),
|
|
@@ -2020,7 +2020,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2020
2020
|
fontEditorControlValue: H(y.fontWeightMedium, y.fontSizeSm, y.fontLineHeightSm, ht),
|
|
2021
2021
|
fontEditorSectionTitle: H(y.fontWeightSemibold, y.fontSizeSm, y.fontLineHeightSm, ht),
|
|
2022
2022
|
fontEditorCaption: H(y.fontWeightMedium, y.fontSizeXxs, y.fontLineHeightXxs, ht)
|
|
2023
|
-
},
|
|
2023
|
+
}, nc = (e, t) => ({ familyDefault: xr(t) ?? xr(e.fontFamily) ?? xr(ar) ?? "" }), xr = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), re = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, oc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, zy = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, Yy = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), jy = (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), ac = (e) => `${e}px`, Pa = { editorControlHeight: ac(32) }, gt = {
|
|
2024
2024
|
editOutline: 1,
|
|
2025
2025
|
panelOverlay: 5,
|
|
2026
2026
|
textToolbar: 10,
|
|
@@ -2045,14 +2045,14 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2045
2045
|
zIndexToolbarTooltip: `${gt.textToolbarTooltip}`,
|
|
2046
2046
|
zIndexToolbarPopover: `${gt.textToolbarPopover}`,
|
|
2047
2047
|
zIndexEditorPopover: `${gt.editorOverlayPopover}`
|
|
2048
|
-
},
|
|
2048
|
+
}, ic = 8, Xe = (e) => `${ic * e}px`, Ia = {
|
|
2049
2049
|
spaceXxs: Xe(0.25),
|
|
2050
2050
|
spaceXs: Xe(0.5),
|
|
2051
2051
|
spaceSm: Xe(0.75),
|
|
2052
2052
|
spaceMd: Xe(1),
|
|
2053
2053
|
spaceLg: Xe(1.5),
|
|
2054
2054
|
spaceXl: Xe(2)
|
|
2055
|
-
},
|
|
2055
|
+
}, sc = {
|
|
2056
2056
|
transparent: "transparent",
|
|
2057
2057
|
white: "#FFFFFF",
|
|
2058
2058
|
black: "#000000",
|
|
@@ -2079,7 +2079,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2079
2079
|
purple50: "#7B56EA",
|
|
2080
2080
|
purple30: "#E093FE",
|
|
2081
2081
|
grayGradient80: "linear-gradient(to top, #222429, #31353f)"
|
|
2082
|
-
},
|
|
2082
|
+
}, lc = {
|
|
2083
2083
|
textPrimary: y.gray0,
|
|
2084
2084
|
textSecondary: re(y.textPrimary, 0.8),
|
|
2085
2085
|
textDisabled: re(y.textPrimary, 0.5),
|
|
@@ -2098,7 +2098,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2098
2098
|
raisedBackground: y.gray80,
|
|
2099
2099
|
overlayBackground: y.gray90,
|
|
2100
2100
|
overlayBorderGradient: y.grayGradient80
|
|
2101
|
-
},
|
|
2101
|
+
}, dc = {
|
|
2102
2102
|
graphBackground: y.gray90,
|
|
2103
2103
|
toolbarBackgroundColor: y.overlayBackground,
|
|
2104
2104
|
toolbarButtonBackgroundColor: "transparent",
|
|
@@ -2109,7 +2109,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2109
2109
|
editorDefaultSurface: "#26241F",
|
|
2110
2110
|
editorDefaultText: "#ECE7DF",
|
|
2111
2111
|
editorDefaultShadow: `${y.elevationMd}, 0 16px 40px rgba(0, 0, 0, 0.45)`
|
|
2112
|
-
},
|
|
2112
|
+
}, cc = {
|
|
2113
2113
|
canvasDefault: "#FFFFFF",
|
|
2114
2114
|
canvasBlue: "#60a5fa",
|
|
2115
2115
|
canvasCyan: "#22d3ee",
|
|
@@ -2121,20 +2121,20 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2121
2121
|
canvasPurple: "#a78bfa",
|
|
2122
2122
|
canvasGray: "#a8a29e",
|
|
2123
2123
|
canvasInverse: "#000000"
|
|
2124
|
-
},
|
|
2125
|
-
...ic,
|
|
2124
|
+
}, uc = {
|
|
2126
2125
|
...sc,
|
|
2126
|
+
...lc,
|
|
2127
2127
|
...Ra,
|
|
2128
2128
|
...Ca,
|
|
2129
2129
|
...Ia,
|
|
2130
2130
|
...La,
|
|
2131
|
-
...lc,
|
|
2132
2131
|
...dc,
|
|
2132
|
+
...cc,
|
|
2133
2133
|
...Pa,
|
|
2134
2134
|
...Sa,
|
|
2135
2135
|
...ka,
|
|
2136
2136
|
...Ea
|
|
2137
|
-
},
|
|
2137
|
+
}, hc = {
|
|
2138
2138
|
transparent: "transparent",
|
|
2139
2139
|
white: "#FFFFFF",
|
|
2140
2140
|
black: "#000000",
|
|
@@ -2161,7 +2161,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2161
2161
|
purple50: "#7B56EA",
|
|
2162
2162
|
purple30: "#E093FE",
|
|
2163
2163
|
grayGradient80: "linear-gradient(to top, #F0F0F1, #F9F9FF)"
|
|
2164
|
-
},
|
|
2164
|
+
}, vc = {
|
|
2165
2165
|
textPrimary: y.black,
|
|
2166
2166
|
textSecondary: re(y.textPrimary, 0.6),
|
|
2167
2167
|
textDisabled: re(y.textPrimary, 0.5),
|
|
@@ -2180,7 +2180,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2180
2180
|
raisedBackground: y.gray85,
|
|
2181
2181
|
overlayBackground: y.gray100,
|
|
2182
2182
|
overlayBorderGradient: y.border10
|
|
2183
|
-
},
|
|
2183
|
+
}, gc = {
|
|
2184
2184
|
graphBackground: y.gray100,
|
|
2185
2185
|
toolbarBackgroundColor: y.overlayBackground,
|
|
2186
2186
|
toolbarButtonBackgroundColor: "transparent",
|
|
@@ -2191,7 +2191,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2191
2191
|
editorDefaultSurface: "#FFFFFF",
|
|
2192
2192
|
editorDefaultText: "#3B372F",
|
|
2193
2193
|
editorDefaultShadow: `${y.elevationMd}, 0 16px 40px rgba(20, 18, 15, 0.14)`
|
|
2194
|
-
},
|
|
2194
|
+
}, fc = {
|
|
2195
2195
|
canvasDefault: "#000000",
|
|
2196
2196
|
canvasBlue: "#3b82f6",
|
|
2197
2197
|
canvasCyan: "#06b6d4",
|
|
@@ -2203,15 +2203,15 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2203
2203
|
canvasPurple: "#8b5cf6",
|
|
2204
2204
|
canvasGray: "#78716c",
|
|
2205
2205
|
canvasInverse: "#ffffff"
|
|
2206
|
-
},
|
|
2207
|
-
...uc,
|
|
2206
|
+
}, pc = {
|
|
2208
2207
|
...hc,
|
|
2208
|
+
...vc,
|
|
2209
2209
|
...Ra,
|
|
2210
2210
|
...Ca,
|
|
2211
2211
|
...Ia,
|
|
2212
2212
|
...La,
|
|
2213
|
-
...vc,
|
|
2214
2213
|
...gc,
|
|
2214
|
+
...fc,
|
|
2215
2215
|
...Pa,
|
|
2216
2216
|
...Sa,
|
|
2217
2217
|
...ka,
|
|
@@ -2221,10 +2221,10 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2221
2221
|
for (const [n, o] of Object.entries(t))
|
|
2222
2222
|
o != null && (r[n] = o);
|
|
2223
2223
|
return {
|
|
2224
|
-
...e === "dark" ?
|
|
2224
|
+
...e === "dark" ? uc : pc,
|
|
2225
2225
|
...r
|
|
2226
2226
|
};
|
|
2227
|
-
}, Ta = (e, t = {}, r) => ({ fonts:
|
|
2227
|
+
}, Ta = (e, t = {}, r) => ({ fonts: nc(ln(e, t), r) }), mc = Object.freeze(Ta("light")), Ba = K(mc), yc = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Ba.Provider, {
|
|
2228
2228
|
value: e,
|
|
2229
2229
|
children: t
|
|
2230
2230
|
}), je = () => W(Ba), ir = (e, t, r) => {
|
|
@@ -2239,7 +2239,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2239
2239
|
const n = tt(), o = M((a) => e === void 0 ? void 0 : qt(a.layers, e));
|
|
2240
2240
|
return b(() => {
|
|
2241
2241
|
if (o === void 0) return {};
|
|
2242
|
-
const a =
|
|
2242
|
+
const a = vl(o, t), i = qo(n, o, a, {
|
|
2243
2243
|
width: r,
|
|
2244
2244
|
height: r
|
|
2245
2245
|
});
|
|
@@ -2255,7 +2255,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2255
2255
|
t,
|
|
2256
2256
|
r
|
|
2257
2257
|
]);
|
|
2258
|
-
},
|
|
2258
|
+
}, xc = /\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu, Ma = "😀", Ac = class Oa {
|
|
2259
2259
|
constructor() {
|
|
2260
2260
|
this.emojiCorrections = /* @__PURE__ */ new Map(), this.currentFont = "";
|
|
2261
2261
|
const t = new OffscreenCanvas(1, 1).getContext("2d");
|
|
@@ -2266,11 +2266,11 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2266
2266
|
return typeof document < "u" && "fonts" in document && await document.fonts.ready, new Oa();
|
|
2267
2267
|
}
|
|
2268
2268
|
measureText(t, r) {
|
|
2269
|
-
const n = wt(t, r.textTransform), o =
|
|
2269
|
+
const n = wt(t, r.textTransform), o = Es(r);
|
|
2270
2270
|
this.setFont(o);
|
|
2271
2271
|
const { width: a, fontBoundingBoxAscent: i, fontBoundingBoxDescent: l } = this.ctx.measureText(n);
|
|
2272
|
-
let d = a +
|
|
2273
|
-
const c =
|
|
2272
|
+
let d = a + Os(n, r.letterSpacing);
|
|
2273
|
+
const c = bc(n);
|
|
2274
2274
|
if (c > 0) {
|
|
2275
2275
|
const u = this.getEmojiCorrection(o);
|
|
2276
2276
|
d -= u * c;
|
|
@@ -2289,7 +2289,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2289
2289
|
const r = this.emojiCorrections.get(t);
|
|
2290
2290
|
if (r !== void 0) return r;
|
|
2291
2291
|
this.setFont(t);
|
|
2292
|
-
const n = this.ctx.measureText(Ma).width, o =
|
|
2292
|
+
const n = this.ctx.measureText(Ma).width, o = wc(t);
|
|
2293
2293
|
let a = 0;
|
|
2294
2294
|
if (o !== null) {
|
|
2295
2295
|
const i = n - o;
|
|
@@ -2297,19 +2297,19 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
return this.emojiCorrections.set(t, a), a;
|
|
2299
2299
|
}
|
|
2300
|
-
}, Ee = null,
|
|
2301
|
-
const t = e.match(
|
|
2300
|
+
}, Ee = null, bc = (e) => {
|
|
2301
|
+
const t = e.match(xc);
|
|
2302
2302
|
return t ? t.length : 0;
|
|
2303
|
-
},
|
|
2304
|
-
const t =
|
|
2303
|
+
}, wc = (e) => {
|
|
2304
|
+
const t = Sc();
|
|
2305
2305
|
return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
|
|
2306
|
-
},
|
|
2306
|
+
}, Sc = () => typeof document > "u" ? null : (Ee || (Ee = document.createElement("span"), Ee.style.position = "absolute", Ee.style.visibility = "hidden", Ee.style.whiteSpace = "nowrap", Ee.style.left = "-9999px", Ee.textContent = Ma, document.body.appendChild(Ee)), Ee), Na = K(null), Zn = 3e3, kc = ({ children: e, measurer: t }) => {
|
|
2307
2307
|
const [r, n] = j(null);
|
|
2308
2308
|
G(() => {
|
|
2309
2309
|
if (t !== void 0) return;
|
|
2310
2310
|
let a = !1;
|
|
2311
2311
|
const i = () => {
|
|
2312
|
-
a || n(
|
|
2312
|
+
a || n(Ec());
|
|
2313
2313
|
};
|
|
2314
2314
|
if (!(typeof document < "u" && "fonts" in document)) {
|
|
2315
2315
|
i();
|
|
@@ -2333,13 +2333,13 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2333
2333
|
const e = W(Na);
|
|
2334
2334
|
if (e === null) throw new Error("useTextMeasurer must be used inside a <TextMeasurerProvider>.");
|
|
2335
2335
|
return e;
|
|
2336
|
-
},
|
|
2336
|
+
}, Ec = () => {
|
|
2337
2337
|
try {
|
|
2338
|
-
return new Hn(new
|
|
2338
|
+
return new Hn(new Ac());
|
|
2339
2339
|
} catch {
|
|
2340
|
-
return new Hn(new
|
|
2340
|
+
return new Hn(new hs());
|
|
2341
2341
|
}
|
|
2342
|
-
}, Ha = K(null), Ky = Ha.Provider,
|
|
2342
|
+
}, Ha = K(null), Ky = Ha.Provider, Pc = null, Ce = () => W(Ha) ?? (Pc ??= Gu()), Rc = 11.7, Cc = 0.75, $n = 21.6, Lc = "0 0 10 18", Ic = "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", Tc = "_16vokpr0", Bc = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Mc = (e, t) => {
|
|
2343
2343
|
const r = C(e ? 1 - t : t);
|
|
2344
2344
|
return e ? {
|
|
2345
2345
|
x1: "0%",
|
|
@@ -2352,7 +2352,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2352
2352
|
x2: r,
|
|
2353
2353
|
y2: "100%"
|
|
2354
2354
|
};
|
|
2355
|
-
},
|
|
2355
|
+
}, Oc = (e, t, r, n) => {
|
|
2356
2356
|
const o = ve(e, t), a = {
|
|
2357
2357
|
...r === void 0 ? {} : { strokeLinecap: r },
|
|
2358
2358
|
...n === void 0 ? {} : { strokeLinejoin: n }
|
|
@@ -2363,18 +2363,18 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2363
2363
|
...a,
|
|
2364
2364
|
...(e[0] ?? 0) > 1 ? { strokeMiterlimit: 16 } : {}
|
|
2365
2365
|
};
|
|
2366
|
-
},
|
|
2366
|
+
}, Nc = (e, t) => Ht(e) && Ht(t) ? `${e}: ${t}` : Ht(e) ? e : Ht(t) ? t : null, Hc = (e) => e ? 14 : 0, Dc = (e, t) => e * Cc - Hc(t) - 10, Fc = (e, t, r) => {
|
|
2367
2367
|
const n = e * r, o = -13 - n, a = r + 13 - n - t;
|
|
2368
2368
|
return a < o ? o : Math.min(Math.max(-t / 2, o), a);
|
|
2369
|
-
}, Ht = (e) => e != null && e.trim() !== "",
|
|
2370
|
-
value: e ??
|
|
2369
|
+
}, Ht = (e) => e != null && e.trim() !== "", Da = Object.freeze({}), dn = K(Da), Wc = ({ slots: e, children: t }) => /* @__PURE__ */ s(dn.Provider, {
|
|
2370
|
+
value: e ?? Da,
|
|
2371
2371
|
children: t
|
|
2372
2372
|
});
|
|
2373
2373
|
function xe(e, t) {
|
|
2374
2374
|
const r = W(dn)[e];
|
|
2375
|
-
return r === void 0 ? t : typeof r == "object" &&
|
|
2375
|
+
return r === void 0 ? t : typeof r == "object" && Vc(r) ? r.render : r;
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2377
|
+
function Gc() {
|
|
2378
2378
|
const e = W(dn);
|
|
2379
2379
|
return {
|
|
2380
2380
|
measureAxis: e.AxisTicks?.measure,
|
|
@@ -2384,20 +2384,20 @@ function Wc() {
|
|
|
2384
2384
|
measureHeadlineItemWidths: e.Headline?.measure.measureHeadlineItemWidths
|
|
2385
2385
|
};
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function Vc(e) {
|
|
2388
2388
|
return "render" in e && "measure" in e;
|
|
2389
2389
|
}
|
|
2390
|
-
var
|
|
2391
|
-
const h =
|
|
2390
|
+
var zc = "_2qyyu60", Yc = 2, jc = 12, Kc = 12, _n = 1, eo = 2, Uc = 4, Qc = 3, Xc = 2, qc = /* @__PURE__ */ new Set(["square", "slice"]), to = 0.375, Fa = 1, Ct = (e) => /* @__PURE__ */ s(xe("Swatch", Jc), { ...e }), Jc = ({ shape: e, color: t, paint: r, lineType: n = "solid", width: o = jc, height: a = Kc, strokeWidth: i = Yc, alpha: l, cornerRadius: d, symbol: c, mainAxis: u = "x" }) => {
|
|
2391
|
+
const h = _c(e, t, r, Math.min(o, a)), g = le({ paints: [h] }), f = g.fillFor(h);
|
|
2392
2392
|
return /* @__PURE__ */ w("svg", {
|
|
2393
|
-
className:
|
|
2393
|
+
className: zc,
|
|
2394
2394
|
width: o,
|
|
2395
2395
|
height: a,
|
|
2396
2396
|
viewBox: `0 0 ${o} ${a}`,
|
|
2397
2397
|
"aria-hidden": !0,
|
|
2398
2398
|
"data-testid": "chart-swatch",
|
|
2399
2399
|
"data-shape": e,
|
|
2400
|
-
children: [g.defs,
|
|
2400
|
+
children: [g.defs, Zc({
|
|
2401
2401
|
shape: e,
|
|
2402
2402
|
color: t,
|
|
2403
2403
|
fill: f,
|
|
@@ -2411,8 +2411,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2411
2411
|
mainAxis: u
|
|
2412
2412
|
})]
|
|
2413
2413
|
});
|
|
2414
|
-
},
|
|
2415
|
-
const h =
|
|
2414
|
+
}, Zc = ({ shape: e, color: t, fill: r, lineType: n, width: o, height: a, strokeWidth: i, alpha: l, cornerRadius: d, symbol: c, mainAxis: u }) => {
|
|
2415
|
+
const h = tu(n, o);
|
|
2416
2416
|
switch (e) {
|
|
2417
2417
|
case "square":
|
|
2418
2418
|
return /* @__PURE__ */ s("rect", {
|
|
@@ -2439,7 +2439,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2439
2439
|
case "circle": {
|
|
2440
2440
|
const g = Math.max(0, (Math.min(o, a) - 2) / 2);
|
|
2441
2441
|
if (c !== void 0 && c !== "circle") {
|
|
2442
|
-
const f =
|
|
2442
|
+
const f = Cs(c, o - 2, a - 2);
|
|
2443
2443
|
return /* @__PURE__ */ s("path", {
|
|
2444
2444
|
transform: `translate(${o / 2 + f.offsetX} ${a / 2 + f.offsetY})`,
|
|
2445
2445
|
d: f.path,
|
|
@@ -2483,31 +2483,31 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2483
2483
|
});
|
|
2484
2484
|
case "interval":
|
|
2485
2485
|
return /* @__PURE__ */ s("path", {
|
|
2486
|
-
d:
|
|
2486
|
+
d: $c(o, a, u),
|
|
2487
2487
|
fill: "none",
|
|
2488
2488
|
stroke: t,
|
|
2489
|
-
strokeWidth:
|
|
2489
|
+
strokeWidth: Fa,
|
|
2490
2490
|
opacity: l
|
|
2491
2491
|
});
|
|
2492
2492
|
default:
|
|
2493
2493
|
return e;
|
|
2494
2494
|
}
|
|
2495
|
-
},
|
|
2496
|
-
const n =
|
|
2495
|
+
}, $c = (e, t, r) => {
|
|
2496
|
+
const n = Fa / 2;
|
|
2497
2497
|
if (r === "x") {
|
|
2498
2498
|
const l = e / 2, d = e * to, c = (u) => `M ${l - d} ${u} H ${l + d}`;
|
|
2499
2499
|
return `${c(n)} M ${l} ${n} V ${t - n} ${c(t - n)}`;
|
|
2500
2500
|
}
|
|
2501
2501
|
const o = t / 2, a = t * to, i = (l) => `M ${l} ${o - a} V ${o + a}`;
|
|
2502
2502
|
return `${i(n)} M ${n} ${o} H ${e - n} ${i(e - n)}`;
|
|
2503
|
-
},
|
|
2503
|
+
}, _c = (e, t, r, n) => r === void 0 ? t : qc.has(e) ? eu(r, n) : V(r), eu = (e, t) => {
|
|
2504
2504
|
if (typeof e == "string" || !Xr(e)) return e;
|
|
2505
|
-
const r = Math.max(
|
|
2505
|
+
const r = Math.max(Xc, Math.floor(t / Qc));
|
|
2506
2506
|
return {
|
|
2507
2507
|
...e,
|
|
2508
2508
|
size: Math.min(e.size ?? 8, r)
|
|
2509
2509
|
};
|
|
2510
|
-
},
|
|
2510
|
+
}, tu = (e, t) => e === "solid" ? {
|
|
2511
2511
|
x1: 0,
|
|
2512
2512
|
x2: t,
|
|
2513
2513
|
dashArray: void 0,
|
|
@@ -2520,7 +2520,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2520
2520
|
} : {
|
|
2521
2521
|
x1: 0,
|
|
2522
2522
|
x2: t,
|
|
2523
|
-
dashArray: `1 ${t / (
|
|
2523
|
+
dashArray: `1 ${t / (Uc - 1)}`,
|
|
2524
2524
|
linecap: "round"
|
|
2525
2525
|
}, at = (e, t = y.fontFamily) => ({
|
|
2526
2526
|
fontFamily: e.fontFamily ?? t,
|
|
@@ -2534,7 +2534,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2534
2534
|
strokeWidth: e.textOutlineWidth * 2,
|
|
2535
2535
|
strokeLinejoin: "round",
|
|
2536
2536
|
paintOrder: "stroke"
|
|
2537
|
-
} : {}, Wa = (e) => e.textShadow === void 0 ? {} : { textShadow:
|
|
2537
|
+
} : {}, Wa = (e) => e.textShadow === void 0 ? {} : { textShadow: Wl(e.textShadow) }, dr = (e) => {
|
|
2538
2538
|
const t = e.textShadow === void 0 ? void 0 : Ye(e.textShadow);
|
|
2539
2539
|
return t === void 0 ? {} : { filter: t };
|
|
2540
2540
|
}, Ga = (e) => Va(e) ? {
|
|
@@ -2560,7 +2560,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2560
2560
|
[e.fontWeight]: String(t.fontWeight),
|
|
2561
2561
|
[e.lineHeight]: String(t.lineHeight),
|
|
2562
2562
|
[e.textColor]: t.textColor
|
|
2563
|
-
}), Va = (e) => e.textOutlineColor !== void 0 && e.textOutlineWidth !== void 0 && e.textOutlineWidth > 0,
|
|
2563
|
+
}), Va = (e) => e.textOutlineColor !== void 0 && e.textOutlineWidth !== void 0 && e.textOutlineWidth > 0, ru = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a, shouldAnimateTransitions: i }) => {
|
|
2564
2564
|
const l = e === "start", d = l ? -13 : -(n - 13), c = l ? d + n - 5 : d + 5 - 12, u = l ? void 0 : `rotate(180 ${c + 12 / 2} ${o / 2})`, h = l ? "0%" : "100%", g = C(1 - t), f = /* @__PURE__ */ w("g", {
|
|
2565
2565
|
transform: `translate(0, ${-o / 2})`,
|
|
2566
2566
|
pointerEvents: "none",
|
|
@@ -2580,10 +2580,10 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2580
2580
|
y: (o - $n) / 2,
|
|
2581
2581
|
width: 12,
|
|
2582
2582
|
height: $n,
|
|
2583
|
-
viewBox:
|
|
2583
|
+
viewBox: Lc,
|
|
2584
2584
|
overflow: "visible",
|
|
2585
2585
|
children: /* @__PURE__ */ s("path", {
|
|
2586
|
-
d:
|
|
2586
|
+
d: Ic,
|
|
2587
2587
|
fill: r
|
|
2588
2588
|
})
|
|
2589
2589
|
})
|
|
@@ -2607,7 +2607,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2607
2607
|
overflow: "visible",
|
|
2608
2608
|
children: f
|
|
2609
2609
|
});
|
|
2610
|
-
},
|
|
2610
|
+
}, nu = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, panelWidth: a, text: i, shouldAnimateTransitions: l }) => {
|
|
2611
2611
|
const d = e === "start", c = d ? -13 : -(o - 13), u = C(t), h = d ? "100%" : "0%", g = /* @__PURE__ */ w("g", {
|
|
2612
2612
|
transform: `translate(${Fc(t, n, a)}, 0)`,
|
|
2613
2613
|
pointerEvents: "none",
|
|
@@ -2636,8 +2636,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2636
2636
|
overflow: "visible",
|
|
2637
2637
|
children: g
|
|
2638
2638
|
});
|
|
2639
|
-
},
|
|
2640
|
-
const A = d === null ? 0 : 14, x = r + A + 10, S = Math.max(
|
|
2639
|
+
}, ou = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, isHorizontalLine: o, position: a, color: i, textColor: l, symbolShape: d, symbolColor: c, symbolPaint: u, symbolAlpha: h, symbolCornerRadius: g, symbolGlyph: f, symbolMainAxis: v, panelWidth: m, shouldAnimateTransitions: p }) => {
|
|
2640
|
+
const A = d === null ? 0 : 14, x = r + A + 10, S = Math.max(Rc, We(t)) + 10, k = /* @__PURE__ */ w(T, { children: [d !== null && c !== null && /* @__PURE__ */ s("g", {
|
|
2641
2641
|
transform: `translate(0, ${-10 / 2})`,
|
|
2642
2642
|
children: /* @__PURE__ */ s(Ct, {
|
|
2643
2643
|
shape: d,
|
|
@@ -2663,7 +2663,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2663
2663
|
...lr(t),
|
|
2664
2664
|
children: wt(e, t.textTransform)
|
|
2665
2665
|
})] });
|
|
2666
|
-
return o ? /* @__PURE__ */ s(
|
|
2666
|
+
return o ? /* @__PURE__ */ s(ru, {
|
|
2667
2667
|
labelPosition: n,
|
|
2668
2668
|
linePosition: a,
|
|
2669
2669
|
color: i,
|
|
@@ -2671,7 +2671,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2671
2671
|
pillHeight: S,
|
|
2672
2672
|
text: k,
|
|
2673
2673
|
shouldAnimateTransitions: p
|
|
2674
|
-
}) : /* @__PURE__ */ s(
|
|
2674
|
+
}) : /* @__PURE__ */ s(nu, {
|
|
2675
2675
|
labelPosition: n,
|
|
2676
2676
|
linePosition: a,
|
|
2677
2677
|
color: i,
|
|
@@ -2681,8 +2681,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2681
2681
|
text: k,
|
|
2682
2682
|
shouldAnimateTransitions: p
|
|
2683
2683
|
});
|
|
2684
|
-
},
|
|
2685
|
-
const c =
|
|
2684
|
+
}, au = ({ strokeWidth: e, dashArray: t, lineCap: r, lineJoin: n, isHorizontalLine: o, position: a, lineColor: i, effects: l, shouldAnimateTransitions: d }) => {
|
|
2685
|
+
const c = Mc(o, a), u = Oc(t, e, r, n);
|
|
2686
2686
|
return d ? /* @__PURE__ */ s(z.line, {
|
|
2687
2687
|
initial: !1,
|
|
2688
2688
|
transition: be,
|
|
@@ -2705,17 +2705,17 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2705
2705
|
strokeWidth: e,
|
|
2706
2706
|
vectorEffect: "non-scaling-stroke"
|
|
2707
2707
|
});
|
|
2708
|
-
},
|
|
2708
|
+
}, iu = ge(function({ layer: t, coordSystem: r, formattingLocale: n, shouldAnimateTransitions: o, panelWidth: a }) {
|
|
2709
2709
|
const i = Me(), l = Ce(), { guides: d, numberFormat: c, specLayers: u, colorScale: h } = M(se((Q) => ({
|
|
2710
2710
|
guides: Q.guides,
|
|
2711
2711
|
numberFormat: Q.config.numberFormat,
|
|
2712
2712
|
specLayers: Q.spec.layers,
|
|
2713
2713
|
colorScale: Q.scales.color
|
|
2714
|
-
}))), g = b(() =>
|
|
2714
|
+
}))), g = b(() => bs(u, h).get(t.id) ?? null, [
|
|
2715
2715
|
u,
|
|
2716
2716
|
h,
|
|
2717
2717
|
t.id
|
|
2718
|
-
]), f = g ? l(g.geom, r.type)?.swatchShape ?? "square" : null, v = sr(g?.layerId, g?.groupValue, 10), m = ir(g?.layerId, g?.groupValue, g?.color) ?? null, p = b(() =>
|
|
2718
|
+
]), f = g ? l(g.geom, r.type)?.swatchShape ?? "square" : null, v = sr(g?.layerId, g?.groupValue, 10), m = ir(g?.layerId, g?.groupValue, g?.color) ?? null, p = b(() => Nc(t.params.label, Qs({
|
|
2719
2719
|
guides: d,
|
|
2720
2720
|
numberFormat: c,
|
|
2721
2721
|
layer: t,
|
|
@@ -2725,7 +2725,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2725
2725
|
c,
|
|
2726
2726
|
n,
|
|
2727
2727
|
t
|
|
2728
|
-
]), { fonts: A } = je(), x = O(), S = I(
|
|
2728
|
+
]), { fonts: A } = je(), x = O(), S = I(El, x.geom.rule.label(t), x.graph()), k = b(() => te(S, A.familyDefault), [S, A.familyDefault]), E = b(() => p === null ? null : $o(p, Dc(a, f !== null), (Q) => i.measureText(Q, k).width), [
|
|
2729
2729
|
p,
|
|
2730
2730
|
a,
|
|
2731
2731
|
f,
|
|
@@ -2735,13 +2735,13 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2735
2735
|
E,
|
|
2736
2736
|
k,
|
|
2737
2737
|
i
|
|
2738
|
-
]), L =
|
|
2738
|
+
]), L = F(t), P = t.data.getFirst();
|
|
2739
2739
|
if (!P) return null;
|
|
2740
|
-
const B = L.get("stroke", P), N =
|
|
2740
|
+
const B = L.get("stroke", P), N = su(S, B), $ = Bc(t, r), oe = $ ? _(P) : q(P);
|
|
2741
2741
|
return oe === null ? null : /* @__PURE__ */ w("g", {
|
|
2742
2742
|
"data-geom": "rule",
|
|
2743
|
-
className:
|
|
2744
|
-
children: [/* @__PURE__ */ s(
|
|
2743
|
+
className: Tc,
|
|
2744
|
+
children: [/* @__PURE__ */ s(au, {
|
|
2745
2745
|
strokeWidth: L.get("strokeWidth", P),
|
|
2746
2746
|
dashArray: L.get("dashArray", P),
|
|
2747
2747
|
lineCap: L.get("lineCap", P),
|
|
@@ -2751,7 +2751,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2751
2751
|
lineColor: B,
|
|
2752
2752
|
effects: Z(J(L, P)),
|
|
2753
2753
|
shouldAnimateTransitions: o
|
|
2754
|
-
}), E !== null && E !== "" && /* @__PURE__ */ s(
|
|
2754
|
+
}), E !== null && E !== "" && /* @__PURE__ */ s(ou, {
|
|
2755
2755
|
label: E,
|
|
2756
2756
|
textStyle: S,
|
|
2757
2757
|
textWidth: R,
|
|
@@ -2771,10 +2771,10 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2771
2771
|
shouldAnimateTransitions: o
|
|
2772
2772
|
})]
|
|
2773
2773
|
});
|
|
2774
|
-
}),
|
|
2774
|
+
}), su = (e, t) => e.textColor === void 0 ? zo(t) : e.isTextColorThemed ? Kr(e.textColor, t) : e.textColor, lu = {
|
|
2775
2775
|
geom: "rule",
|
|
2776
2776
|
coord: "cartesian",
|
|
2777
|
-
render: ({ layer: e, coordSystem: t, formattingLocale: r, shouldAnimateTransitions: n, panelRect: o }) => /* @__PURE__ */ s(
|
|
2777
|
+
render: ({ layer: e, coordSystem: t, formattingLocale: r, shouldAnimateTransitions: n, panelRect: o }) => /* @__PURE__ */ s(iu, {
|
|
2778
2778
|
layer: e,
|
|
2779
2779
|
coordSystem: t,
|
|
2780
2780
|
formattingLocale: r,
|
|
@@ -2783,7 +2783,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2783
2783
|
}),
|
|
2784
2784
|
renderHover: () => null,
|
|
2785
2785
|
renderHoverCompanions: () => null
|
|
2786
|
-
},
|
|
2786
|
+
}, du = ({ layer: e, panelRect: t, styleReaders: r, shouldAnimateTransitions: n }) => {
|
|
2787
2787
|
let o = "";
|
|
2788
2788
|
for (const a of e.data) {
|
|
2789
2789
|
const i = Ur(a);
|
|
@@ -2794,14 +2794,14 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2794
2794
|
pathData: o,
|
|
2795
2795
|
shouldAnimateTransitions: n
|
|
2796
2796
|
}];
|
|
2797
|
-
},
|
|
2797
|
+
}, cu = ({ intro: e, children: t }) => W(tr)?.isFading ? t : /* @__PURE__ */ s(z.g, {
|
|
2798
2798
|
initial: { opacity: 0 },
|
|
2799
2799
|
animate: { opacity: 1 },
|
|
2800
2800
|
transition: ca(e),
|
|
2801
2801
|
children: t
|
|
2802
|
-
}),
|
|
2803
|
-
const o = n?.type === "fade" ? n : null, a =
|
|
2804
|
-
const h =
|
|
2802
|
+
}), uu = ge(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
2803
|
+
const o = n?.type === "fade" ? n : null, a = F(t), { paints: i, paintAt: l } = Rt(t, a), { fillFor: d, defs: c } = le({ paints: i }), u = b(() => {
|
|
2804
|
+
const h = Ys(t.data, t.mapping, t.id), g = [];
|
|
2805
2805
|
let f = -1;
|
|
2806
2806
|
for (const v of t.data) {
|
|
2807
2807
|
f += 1;
|
|
@@ -2817,7 +2817,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2817
2817
|
effects: Z(J(a, v))
|
|
2818
2818
|
});
|
|
2819
2819
|
}
|
|
2820
|
-
return g.map(({ key: v, ...m }) => /* @__PURE__ */ s(
|
|
2820
|
+
return g.map(({ key: v, ...m }) => /* @__PURE__ */ s(hu, {
|
|
2821
2821
|
...m,
|
|
2822
2822
|
isAnimated: r
|
|
2823
2823
|
}, v));
|
|
@@ -2828,11 +2828,11 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2828
2828
|
d,
|
|
2829
2829
|
l
|
|
2830
2830
|
]);
|
|
2831
|
-
return o ? /* @__PURE__ */ w(
|
|
2831
|
+
return o ? /* @__PURE__ */ w(cu, {
|
|
2832
2832
|
intro: o,
|
|
2833
2833
|
children: [c, u]
|
|
2834
2834
|
}) : /* @__PURE__ */ w(T, { children: [c, u] });
|
|
2835
|
-
}),
|
|
2835
|
+
}), hu = ({ isAnimated: e, ...t }) => e ? /* @__PURE__ */ s(z.rect, {
|
|
2836
2836
|
initial: !1,
|
|
2837
2837
|
style: t.effects,
|
|
2838
2838
|
transition: be,
|
|
@@ -2858,8 +2858,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2858
2858
|
rx: t.rx,
|
|
2859
2859
|
stroke: t.stroke,
|
|
2860
2860
|
strokeWidth: t.strokeWidth
|
|
2861
|
-
}),
|
|
2862
|
-
const n =
|
|
2861
|
+
}), vu = ({ layer: e, primary: t, panelRect: r }) => {
|
|
2862
|
+
const n = F(e), o = n.get("fill", t.observation), { fillFor: a, defs: i } = le({ paints: [o] }), l = Ur(t.observation);
|
|
2863
2863
|
if (!l) return null;
|
|
2864
2864
|
const d = a(o), c = n.get("alpha", t.observation) * n.get("fillAlpha", t.observation), u = n.get("stroke", t.observation, "hovered") ?? Gr, h = n.get("strokeWidth", t.observation, "hovered"), g = n.get("cornerRadius", t.observation, "hovered"), f = l.x * r.width, v = l.y * r.height, m = l.width * r.width, p = l.height * r.height;
|
|
2865
2865
|
return /* @__PURE__ */ w("g", {
|
|
@@ -2887,23 +2887,23 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2887
2887
|
})
|
|
2888
2888
|
]
|
|
2889
2889
|
});
|
|
2890
|
-
},
|
|
2890
|
+
}, gu = {
|
|
2891
2891
|
geom: "tile",
|
|
2892
2892
|
coord: "cartesian",
|
|
2893
2893
|
swatchShape: "square",
|
|
2894
2894
|
guideMode: null,
|
|
2895
|
-
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(
|
|
2895
|
+
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(uu, {
|
|
2896
2896
|
layer: e,
|
|
2897
2897
|
shouldAnimateTransitions: t,
|
|
2898
2898
|
intro: r
|
|
2899
2899
|
}),
|
|
2900
|
-
renderHover: ({ layer: e, primary: t, panelRect: r }) => /* @__PURE__ */ s(
|
|
2900
|
+
renderHover: ({ layer: e, primary: t, panelRect: r }) => /* @__PURE__ */ s(vu, {
|
|
2901
2901
|
layer: e,
|
|
2902
2902
|
primary: t,
|
|
2903
2903
|
panelRect: r
|
|
2904
2904
|
}),
|
|
2905
2905
|
renderHoverCompanions: () => null,
|
|
2906
|
-
getEditOutlineShapes:
|
|
2906
|
+
getEditOutlineShapes: du
|
|
2907
2907
|
}, zt = ({ primary: e, companions: t }) => {
|
|
2908
2908
|
const r = /* @__PURE__ */ w(T, { children: [t.map((n) => /* @__PURE__ */ s(Be, {
|
|
2909
2909
|
hit: n,
|
|
@@ -2926,7 +2926,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2926
2926
|
scaleX: t.radius,
|
|
2927
2927
|
scaleY: t.radius
|
|
2928
2928
|
};
|
|
2929
|
-
},
|
|
2929
|
+
}, fu = (e) => ({
|
|
2930
2930
|
...rt(e),
|
|
2931
2931
|
digits: 2
|
|
2932
2932
|
}), Ya = (e, t, r) => ie(e, t, rt(r)), Br = (e) => {
|
|
@@ -2934,8 +2934,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2934
2934
|
if (!t) return "";
|
|
2935
2935
|
const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
|
|
2936
2936
|
return `M ${t.x} ${t.y} ${n} Z`;
|
|
2937
|
-
},
|
|
2938
|
-
const n =
|
|
2937
|
+
}, pu = ge(function({ layer: t, panelRect: r }) {
|
|
2938
|
+
const n = F(t), o = b(() => {
|
|
2939
2939
|
const l = we(t.data, t.mapping, t.id), d = [];
|
|
2940
2940
|
return t.data.groupBy(ne.group).forEach((c) => {
|
|
2941
2941
|
const u = [...c], h = ja(u);
|
|
@@ -2996,7 +2996,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
2996
2996
|
}, Ka = (e) => {
|
|
2997
2997
|
const t = [];
|
|
2998
2998
|
for (const o of e) {
|
|
2999
|
-
const a = q(o), { innerRadius: i, outerRadius: l } =
|
|
2999
|
+
const a = q(o), { innerRadius: i, outerRadius: l } = Fo(o);
|
|
3000
3000
|
a === null || i === null || l === null || t.push({
|
|
3001
3001
|
angle: a,
|
|
3002
3002
|
outer: ie(a, l),
|
|
@@ -3010,7 +3010,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3010
3010
|
outer: r,
|
|
3011
3011
|
hole: n.some((o) => o.x !== 0 || o.y !== 0) ? [...n].reverse() : null
|
|
3012
3012
|
};
|
|
3013
|
-
},
|
|
3013
|
+
}, mu = ({ layer: e, panelRect: t }) => {
|
|
3014
3014
|
const r = za(t), n = [], o = [];
|
|
3015
3015
|
return e.data.groupBy(ne.group).forEach((a) => {
|
|
3016
3016
|
const i = [...a], [l] = i;
|
|
@@ -3034,8 +3034,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3034
3034
|
centers: o,
|
|
3035
3035
|
size: $e
|
|
3036
3036
|
}), n;
|
|
3037
|
-
},
|
|
3038
|
-
const o =
|
|
3037
|
+
}, yu = ({ layer: e, primary: t, companions: r, panelRect: n }) => {
|
|
3038
|
+
const o = F(e), a = ze(t.observation), i = o.get("fill", t.observation, "hovered"), { fillFor: l, defs: d } = le({
|
|
3039
3039
|
paints: [i],
|
|
3040
3040
|
unitsPerPixel: Pt(n)
|
|
3041
3041
|
}), c = b(() => ja([...e.data.filter(ne.group, "eq", a)]), [e.data, a]);
|
|
@@ -3081,23 +3081,23 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3081
3081
|
"data-testid": "hovered-area-point"
|
|
3082
3082
|
})
|
|
3083
3083
|
] });
|
|
3084
|
-
},
|
|
3084
|
+
}, xu = {
|
|
3085
3085
|
geom: "area",
|
|
3086
3086
|
coord: "polar",
|
|
3087
3087
|
swatchShape: "area",
|
|
3088
3088
|
guideMode: "crosshair",
|
|
3089
|
-
render: ({ layer: e, panelRect: t }) => /* @__PURE__ */ s(
|
|
3089
|
+
render: ({ layer: e, panelRect: t }) => /* @__PURE__ */ s(pu, {
|
|
3090
3090
|
layer: e,
|
|
3091
3091
|
panelRect: t
|
|
3092
3092
|
}),
|
|
3093
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n, panelRect: o }) => /* @__PURE__ */ s(
|
|
3093
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n, panelRect: o }) => /* @__PURE__ */ s(yu, {
|
|
3094
3094
|
layer: e,
|
|
3095
3095
|
primary: t,
|
|
3096
3096
|
companions: [...r, ...n],
|
|
3097
3097
|
panelRect: o
|
|
3098
3098
|
}),
|
|
3099
3099
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(zt, { companions: e }),
|
|
3100
|
-
getEditOutlineShapes:
|
|
3100
|
+
getEditOutlineShapes: mu,
|
|
3101
3101
|
getOverlayAnchor: ({ observation: e }) => {
|
|
3102
3102
|
const t = q(e), r = Zt(e) ?? _(e);
|
|
3103
3103
|
if (t === null || r === null) return null;
|
|
@@ -3108,7 +3108,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3108
3108
|
};
|
|
3109
3109
|
}
|
|
3110
3110
|
}, cn = (e) => {
|
|
3111
|
-
const { startAngle: t, endAngle: r } =
|
|
3111
|
+
const { startAngle: t, endAngle: r } = Xs(e), { innerRadius: n, outerRadius: o } = Fo(e);
|
|
3112
3112
|
return t === null || r === null || n === null || o === null ? null : {
|
|
3113
3113
|
startAngle: t,
|
|
3114
3114
|
endAngle: r,
|
|
@@ -3142,10 +3142,10 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3142
3142
|
union: l
|
|
3143
3143
|
});
|
|
3144
3144
|
return o;
|
|
3145
|
-
},
|
|
3145
|
+
}, Au = (e, t, r, n, o) => e.get(zr(t, o)) ?? {
|
|
3146
3146
|
style: nr(r, n),
|
|
3147
3147
|
union: Wo([o])
|
|
3148
|
-
}, hn = ({ style: e, union: t }) =>
|
|
3148
|
+
}, hn = ({ style: e, union: t }) => kl(e.cornerRadius, t.outerRadius - t.innerRadius), Qa = (e, t, r, n) => Fe({
|
|
3149
3149
|
...t.union,
|
|
3150
3150
|
cornerRadius: hn(t),
|
|
3151
3151
|
slice: r === "x" ? {
|
|
@@ -3157,8 +3157,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3157
3157
|
from: e.startAngle,
|
|
3158
3158
|
to: e.endAngle
|
|
3159
3159
|
}
|
|
3160
|
-
}, n),
|
|
3161
|
-
const { bandAxis: i } = r, l =
|
|
3160
|
+
}, n), bu = va(un), wu = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o, shouldAnimateTransitions: a }) => {
|
|
3161
|
+
const { bandAxis: i } = r, l = bu(t, i, o), d = fu(n);
|
|
3162
3162
|
let c = "";
|
|
3163
3163
|
for (const u of e.data) {
|
|
3164
3164
|
const h = cn(u);
|
|
@@ -3175,8 +3175,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3175
3175
|
stroke: e,
|
|
3176
3176
|
strokeWidth: t,
|
|
3177
3177
|
vectorEffect: "non-scaling-stroke"
|
|
3178
|
-
}),
|
|
3179
|
-
const i = U(), l = or(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), d = r.bandAxis !== "x", c =
|
|
3178
|
+
}), Su = ge(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o, panelRect: a }) {
|
|
3179
|
+
const i = U(), l = or(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), d = r.bandAxis !== "x", c = F(t), { paints: u, paintAt: h } = Rt(t, c), { fillFor: g, defs: f } = le({
|
|
3180
3180
|
paints: u,
|
|
3181
3181
|
unitsPerPixel: Pt(a)
|
|
3182
3182
|
}), v = b(() => {
|
|
@@ -3208,7 +3208,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3208
3208
|
children: [f, v.map((m, p) => {
|
|
3209
3209
|
const { stroke: A, strokeWidth: x, strokeAlpha: S } = m.style, k = A !== void 0, E = kt(x), R = A === void 0 ? {} : Yt(A, E.separatorWidth), L = A === void 0 ? void 0 : Yt(A, E.outlineWidth), P = m.members.map((oe) => {
|
|
3210
3210
|
const { key: Q, ...Le } = oe;
|
|
3211
|
-
return l.isAnimated ? /* @__PURE__ */ s(
|
|
3211
|
+
return l.isAnimated ? /* @__PURE__ */ s(ku, {
|
|
3212
3212
|
...Le,
|
|
3213
3213
|
animation: l,
|
|
3214
3214
|
sweepsInOnLateMount: d,
|
|
@@ -3219,7 +3219,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3219
3219
|
...R
|
|
3220
3220
|
}
|
|
3221
3221
|
}, Q) : /* @__PURE__ */ s("path", {
|
|
3222
|
-
d:
|
|
3222
|
+
d: Fe(Le) ?? void 0,
|
|
3223
3223
|
fill: Le.fill,
|
|
3224
3224
|
opacity: Le.opacity,
|
|
3225
3225
|
...R
|
|
@@ -3229,7 +3229,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3229
3229
|
const N = `${i}${p}`;
|
|
3230
3230
|
if (l.isAnimated) return /* @__PURE__ */ s("g", {
|
|
3231
3231
|
clipPath: `url(#${N})`,
|
|
3232
|
-
children: /* @__PURE__ */ s(
|
|
3232
|
+
children: /* @__PURE__ */ s(Eu, {
|
|
3233
3233
|
...m.union,
|
|
3234
3234
|
cornerRadius: B,
|
|
3235
3235
|
animation: l,
|
|
@@ -3241,7 +3241,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3241
3241
|
children: P
|
|
3242
3242
|
})
|
|
3243
3243
|
}, m.key);
|
|
3244
|
-
const $ =
|
|
3244
|
+
const $ = Fe({
|
|
3245
3245
|
...m.union,
|
|
3246
3246
|
cornerRadius: B
|
|
3247
3247
|
});
|
|
@@ -3264,7 +3264,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3264
3264
|
})]
|
|
3265
3265
|
});
|
|
3266
3266
|
}), Xa = ({ startAngle: e, endAngle: t, innerRadius: r, outerRadius: n, cornerRadius: o, animation: a, sweepsInOnLateMount: i, introKey: l }) => {
|
|
3267
|
-
const d = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, c = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, u = i && !a.isLayerEntrance, h = d?.baseline ?? (u ? ro : e), g = d?.baseline ?? (u ? ro : t), f = c ? c.baseline : r, v = c ? c.baseline : n, m = ye(h), p = ye(g), A = ye(f), x = ye(v), S = ye(
|
|
3267
|
+
const d = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, c = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, u = i && !a.isLayerEntrance, h = d?.baseline ?? (u ? ro : e), g = d?.baseline ?? (u ? ro : t), f = c ? c.baseline : r, v = c ? c.baseline : n, m = ye(h), p = ye(g), A = ye(f), x = ye(v), S = ye(Fe({
|
|
3268
3268
|
startAngle: h,
|
|
3269
3269
|
endAngle: g,
|
|
3270
3270
|
innerRadius: f,
|
|
@@ -3297,7 +3297,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3297
3297
|
E
|
|
3298
3298
|
]), G(() => {
|
|
3299
3299
|
const R = () => {
|
|
3300
|
-
S.set(
|
|
3300
|
+
S.set(Fe({
|
|
3301
3301
|
startAngle: m.get(),
|
|
3302
3302
|
endAngle: p.get(),
|
|
3303
3303
|
innerRadius: A.get(),
|
|
@@ -3323,14 +3323,14 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3323
3323
|
o,
|
|
3324
3324
|
S
|
|
3325
3325
|
]), S;
|
|
3326
|
-
},
|
|
3326
|
+
}, ku = ({ pathProps: e, ...t }) => {
|
|
3327
3327
|
const r = Xa(t);
|
|
3328
3328
|
return /* @__PURE__ */ s(z.path, {
|
|
3329
3329
|
d: r,
|
|
3330
3330
|
transition: be,
|
|
3331
3331
|
...e
|
|
3332
3332
|
});
|
|
3333
|
-
},
|
|
3333
|
+
}, Eu = ({ clipId: e, outlineProps: t, outlineOpacity: r, children: n, ...o }) => {
|
|
3334
3334
|
const a = Xa(o);
|
|
3335
3335
|
return /* @__PURE__ */ w(T, { children: [
|
|
3336
3336
|
/* @__PURE__ */ s("clipPath", {
|
|
@@ -3346,7 +3346,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3346
3346
|
...t
|
|
3347
3347
|
})
|
|
3348
3348
|
] });
|
|
3349
|
-
},
|
|
3349
|
+
}, Pu = (e, t, r) => {
|
|
3350
3350
|
const n = e === "solo" || e === "floor", o = e === "solo" || e === "ceiling", a = !Qr(r.startAngle, r.endAngle);
|
|
3351
3351
|
return t === "x" ? {
|
|
3352
3352
|
innerArc: n,
|
|
@@ -3362,7 +3362,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3362
3362
|
}, qa = ({ observation: e, bandAxis: t, styleReaders: r, groupPaints: n, state: o, fill: a }) => {
|
|
3363
3363
|
const i = U(), l = cn(e);
|
|
3364
3364
|
if (l === null) return null;
|
|
3365
|
-
const d =
|
|
3365
|
+
const d = Au(n, t, r, e, l), c = Qa(l, d, t);
|
|
3366
3366
|
if (c === void 0) return null;
|
|
3367
3367
|
const u = r.get("alpha", e, o) * r.get("fillAlpha", e, o), { stroke: h, strokeWidth: g, strokeAlpha: f } = d.style;
|
|
3368
3368
|
if (h === void 0) return /* @__PURE__ */ s("path", {
|
|
@@ -3371,7 +3371,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3371
3371
|
opacity: u,
|
|
3372
3372
|
"data-testid": "arc-segment"
|
|
3373
3373
|
});
|
|
3374
|
-
const v = kt(g), m =
|
|
3374
|
+
const v = kt(g), m = Pu(nl(e), t, d.union), p = Cu(l, Lu(m)), A = Fe({
|
|
3375
3375
|
...d.union,
|
|
3376
3376
|
cornerRadius: hn(d)
|
|
3377
3377
|
});
|
|
@@ -3402,8 +3402,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3402
3402
|
})
|
|
3403
3403
|
]
|
|
3404
3404
|
});
|
|
3405
|
-
},
|
|
3406
|
-
const o =
|
|
3405
|
+
}, Ru = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => {
|
|
3406
|
+
const o = F(t), a = b(() => un(t, r.bandAxis, o), [
|
|
3407
3407
|
t,
|
|
3408
3408
|
r.bandAxis,
|
|
3409
3409
|
o
|
|
@@ -3438,7 +3438,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3438
3438
|
if (Qr(t, r)) return `M${n}A${e},${e} 0 1 1 ${mt(e, t + Math.PI)}A${e},${e} 0 1 1 ${n}`;
|
|
3439
3439
|
const o = r - t;
|
|
3440
3440
|
return `M${n}A${e},${e} 0 ${Math.abs(o) > Math.PI ? 1 : 0} ${o >= 0 ? 1 : 0} ${mt(e, r)}`;
|
|
3441
|
-
}, oo = (e, t, r) => `M${mt(t, e)}L${mt(r, e)}`,
|
|
3441
|
+
}, oo = (e, t, r) => `M${mt(t, e)}L${mt(r, e)}`, Cu = (e, t) => {
|
|
3442
3442
|
const { startAngle: r, endAngle: n, innerRadius: o, outerRadius: a } = e, i = Qr(r, n);
|
|
3443
3443
|
return [
|
|
3444
3444
|
t.innerArc ? no(o, r, n) : "",
|
|
@@ -3446,13 +3446,13 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3446
3446
|
t.startSpoke && !i ? oo(r, o, a) : "",
|
|
3447
3447
|
t.endSpoke && !i ? oo(n, o, a) : ""
|
|
3448
3448
|
].filter(Boolean).join("");
|
|
3449
|
-
},
|
|
3449
|
+
}, Lu = (e) => ({
|
|
3450
3450
|
innerArc: !e.innerArc,
|
|
3451
3451
|
outerArc: !e.outerArc,
|
|
3452
3452
|
startSpoke: !e.startSpoke,
|
|
3453
3453
|
endSpoke: !e.endSpoke
|
|
3454
|
-
}),
|
|
3455
|
-
const o =
|
|
3454
|
+
}), Iu = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
3455
|
+
const o = F(e), a = b(() => un(e, t.bandAxis, o), [
|
|
3456
3456
|
e,
|
|
3457
3457
|
t.bandAxis,
|
|
3458
3458
|
o
|
|
@@ -3478,34 +3478,34 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3478
3478
|
fill: l(i)
|
|
3479
3479
|
})]
|
|
3480
3480
|
});
|
|
3481
|
-
},
|
|
3481
|
+
}, Tu = {
|
|
3482
3482
|
geom: "bar",
|
|
3483
3483
|
coord: "polar",
|
|
3484
3484
|
swatchShape: "slice",
|
|
3485
3485
|
guideMode: "band",
|
|
3486
|
-
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n, panelRect: o }) => /* @__PURE__ */ s(
|
|
3486
|
+
render: ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, intro: n, panelRect: o }) => /* @__PURE__ */ s(Su, {
|
|
3487
3487
|
layer: e,
|
|
3488
3488
|
coordSystem: t,
|
|
3489
3489
|
shouldAnimateTransitions: r,
|
|
3490
3490
|
intro: n,
|
|
3491
3491
|
panelRect: o
|
|
3492
3492
|
}),
|
|
3493
|
-
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ s(
|
|
3493
|
+
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ s(Ru, {
|
|
3494
3494
|
layer: e,
|
|
3495
3495
|
sourceLayer: t,
|
|
3496
3496
|
coordSystem: r,
|
|
3497
3497
|
panelRect: n
|
|
3498
3498
|
}),
|
|
3499
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ s(
|
|
3499
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ s(Iu, {
|
|
3500
3500
|
layer: e,
|
|
3501
3501
|
coordSystem: t,
|
|
3502
3502
|
primary: r,
|
|
3503
3503
|
panelRect: n
|
|
3504
3504
|
}),
|
|
3505
3505
|
renderHoverCompanions: () => null,
|
|
3506
|
-
getEditOutlineShapes:
|
|
3507
|
-
},
|
|
3508
|
-
const r =
|
|
3506
|
+
getEditOutlineShapes: wu
|
|
3507
|
+
}, Bu = ge(function({ layer: t }) {
|
|
3508
|
+
const r = F(t), n = b(() => {
|
|
3509
3509
|
const o = we(t.data, t.mapping, t.id), a = [];
|
|
3510
3510
|
return t.data.groupBy(ne.group).forEach((i) => {
|
|
3511
3511
|
const l = [...i], d = Ja(l);
|
|
@@ -3563,7 +3563,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3563
3563
|
});
|
|
3564
3564
|
}
|
|
3565
3565
|
return t.sort((r, n) => r.angle - n.angle), t.map((r) => r.point);
|
|
3566
|
-
},
|
|
3566
|
+
}, Mu = ({ layer: e, panelRect: t, styleReaders: r }) => {
|
|
3567
3567
|
const n = za(t), o = [], a = [];
|
|
3568
3568
|
return e.data.groupBy(ne.group).forEach((i) => {
|
|
3569
3569
|
const l = [...i], [d] = l;
|
|
@@ -3585,8 +3585,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3585
3585
|
centers: a,
|
|
3586
3586
|
size: $e
|
|
3587
3587
|
}), o;
|
|
3588
|
-
},
|
|
3589
|
-
const n =
|
|
3588
|
+
}, Ou = ({ layer: e, primary: t, companions: r }) => {
|
|
3589
|
+
const n = F(e), o = ze(t.observation), a = b(() => Ja([...e.data.filter(ne.group, "eq", o)]), [e.data, o]);
|
|
3590
3590
|
if (!a) return null;
|
|
3591
3591
|
const i = n.get("stroke", t.observation, "hovered"), l = n.get("alpha", t.observation, "hovered"), d = n.get("strokeAlpha", t.observation, "hovered"), c = n.get("strokeWidth", t.observation, "hovered"), u = ve(n.get("dashArray", t.observation, "hovered"), c), h = n.get("lineCap", t.observation, "hovered"), g = n.get("lineJoin", t.observation, "hovered");
|
|
3592
3592
|
return /* @__PURE__ */ w(T, { children: [
|
|
@@ -3623,19 +3623,19 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3623
3623
|
"data-testid": "hovered-line-point"
|
|
3624
3624
|
})
|
|
3625
3625
|
] });
|
|
3626
|
-
},
|
|
3626
|
+
}, Nu = {
|
|
3627
3627
|
geom: "line",
|
|
3628
3628
|
coord: "polar",
|
|
3629
3629
|
swatchShape: "line",
|
|
3630
3630
|
guideMode: "crosshair",
|
|
3631
|
-
render: ({ layer: e }) => /* @__PURE__ */ s(
|
|
3632
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s(
|
|
3631
|
+
render: ({ layer: e }) => /* @__PURE__ */ s(Bu, { layer: e }),
|
|
3632
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ s(Ou, {
|
|
3633
3633
|
layer: e,
|
|
3634
3634
|
primary: t,
|
|
3635
3635
|
companions: [...r, ...n]
|
|
3636
3636
|
}),
|
|
3637
3637
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(zt, { companions: e }),
|
|
3638
|
-
getEditOutlineShapes:
|
|
3638
|
+
getEditOutlineShapes: Mu,
|
|
3639
3639
|
getOverlayAnchor: ({ observation: e }) => {
|
|
3640
3640
|
const t = q(e), r = _(e);
|
|
3641
3641
|
if (t === null || r === null) return null;
|
|
@@ -3645,8 +3645,8 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3645
3645
|
y: 1 - o
|
|
3646
3646
|
};
|
|
3647
3647
|
}
|
|
3648
|
-
},
|
|
3649
|
-
const o =
|
|
3648
|
+
}, Hu = ge(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
3649
|
+
const o = F(t), a = or(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
3650
3650
|
return b(() => {
|
|
3651
3651
|
const i = a.activeIntro ? we(t.data, t.mapping, t.id) : null, l = [];
|
|
3652
3652
|
let d = 0;
|
|
@@ -3665,11 +3665,11 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3665
3665
|
o,
|
|
3666
3666
|
a
|
|
3667
3667
|
]);
|
|
3668
|
-
}),
|
|
3668
|
+
}), Du = {
|
|
3669
3669
|
geom: "point",
|
|
3670
3670
|
coord: "polar",
|
|
3671
3671
|
swatchShape: "circle",
|
|
3672
|
-
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(
|
|
3672
|
+
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(Hu, {
|
|
3673
3673
|
layer: e,
|
|
3674
3674
|
shouldAnimateTransitions: t,
|
|
3675
3675
|
intro: r
|
|
@@ -3694,23 +3694,23 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
|
|
|
3694
3694
|
}
|
|
3695
3695
|
}, Fu = {
|
|
3696
3696
|
bar: {
|
|
3697
|
-
cartesian:
|
|
3698
|
-
polar:
|
|
3697
|
+
cartesian: Kd,
|
|
3698
|
+
polar: Tu
|
|
3699
3699
|
},
|
|
3700
3700
|
line: {
|
|
3701
|
-
cartesian:
|
|
3702
|
-
polar:
|
|
3701
|
+
cartesian: _d,
|
|
3702
|
+
polar: Nu
|
|
3703
3703
|
},
|
|
3704
3704
|
area: {
|
|
3705
|
-
cartesian:
|
|
3706
|
-
polar:
|
|
3705
|
+
cartesian: yd,
|
|
3706
|
+
polar: xu
|
|
3707
3707
|
},
|
|
3708
3708
|
point: {
|
|
3709
|
-
cartesian:
|
|
3710
|
-
polar:
|
|
3709
|
+
cartesian: tc,
|
|
3710
|
+
polar: Du
|
|
3711
3711
|
},
|
|
3712
|
-
rule: { cartesian:
|
|
3713
|
-
tile: { cartesian:
|
|
3712
|
+
rule: { cartesian: lu },
|
|
3713
|
+
tile: { cartesian: gu }
|
|
3714
3714
|
};
|
|
3715
3715
|
function cr(e) {
|
|
3716
3716
|
return typeof e == "function" ? {
|
|
@@ -3721,7 +3721,7 @@ function cr(e) {
|
|
|
3721
3721
|
fn: e.fn
|
|
3722
3722
|
};
|
|
3723
3723
|
}
|
|
3724
|
-
function
|
|
3724
|
+
function Wu(e) {
|
|
3725
3725
|
return e ? cr(e.render).overlay : !1;
|
|
3726
3726
|
}
|
|
3727
3727
|
function Qy(e, t) {
|
|
@@ -3734,24 +3734,24 @@ function Qy(e, t) {
|
|
|
3734
3734
|
geom: e.type
|
|
3735
3735
|
};
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function Gu(e = []) {
|
|
3738
3738
|
const t = {};
|
|
3739
3739
|
for (const [r, n] of Object.entries(Fu)) t[r] = { ...n };
|
|
3740
3740
|
for (const r of e) (t[r.geom] ??= {})[r.coord] = r;
|
|
3741
3741
|
return (r, n) => t[r]?.[n] ?? null;
|
|
3742
3742
|
}
|
|
3743
|
-
var
|
|
3743
|
+
var Vu = [
|
|
3744
3744
|
"top",
|
|
3745
3745
|
"right",
|
|
3746
3746
|
"bottom",
|
|
3747
3747
|
"left"
|
|
3748
3748
|
], Xy = () => en((e) => ({
|
|
3749
3749
|
boundary: null,
|
|
3750
|
-
setBoundary: (t) => e((r) =>
|
|
3751
|
-
})), Mr = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, Or = (e, t) =>
|
|
3752
|
-
const t =
|
|
3750
|
+
setBoundary: (t) => e((r) => zu(r.boundary, t) ? r : { boundary: t })
|
|
3751
|
+
})), Mr = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, Or = (e, t) => Vu.every((r) => e[r].from === t[r].from && e[r].to === t[r].to), zu = (e, t) => e === t ? !0 : e === null || t === null ? !1 : Mr(e.frame, t.frame) && Mr(e.client, t.client) && Or(e.frameSpans, t.frameSpans) && Or(e.clientSpans, t.clientSpans), Nr = (e) => {
|
|
3752
|
+
const t = D(e);
|
|
3753
3753
|
return t.current = e, t;
|
|
3754
|
-
},
|
|
3754
|
+
}, Yu = () => {
|
|
3755
3755
|
const e = /* @__PURE__ */ new Map();
|
|
3756
3756
|
return en((t) => ({
|
|
3757
3757
|
hover: Gt,
|
|
@@ -3760,22 +3760,22 @@ var Gu = [
|
|
|
3760
3760
|
isPointerSuspended: !1,
|
|
3761
3761
|
isQueryOwnedByEditor: !1,
|
|
3762
3762
|
setHoverState: (r) => t((n) => n.hover === r ? n : { hover: r }),
|
|
3763
|
-
setTooltipAnchor: (r) => t((n) =>
|
|
3763
|
+
setTooltipAnchor: (r) => t((n) => ju(n.tooltipAnchor, r) ? n : { tooltipAnchor: r }),
|
|
3764
3764
|
publishPointerRegions: (r, n) => {
|
|
3765
3765
|
n.length === 0 ? e.delete(r) : e.set(r, n);
|
|
3766
|
-
const o =
|
|
3767
|
-
t((a) =>
|
|
3766
|
+
const o = sl(e);
|
|
3767
|
+
t((a) => As(a.pointerRegions, o) ? a : { pointerRegions: o });
|
|
3768
3768
|
},
|
|
3769
3769
|
setPointerSuspended: (r) => t((n) => n.isPointerSuspended === r ? n : { isPointerSuspended: r }),
|
|
3770
3770
|
setQueryOwnedByEditor: (r) => t((n) => n.isQueryOwnedByEditor === r ? n : { isQueryOwnedByEditor: r })
|
|
3771
3771
|
}));
|
|
3772
|
-
},
|
|
3772
|
+
}, ju = (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, Ku = (e, t) => {
|
|
3773
3773
|
const r = b(() => ({
|
|
3774
3774
|
layers: e,
|
|
3775
3775
|
coordSystem: t
|
|
3776
|
-
}), [e, t]), n =
|
|
3777
|
-
n.current === null && (n.current = new
|
|
3778
|
-
const o = n.current, a =
|
|
3776
|
+
}), [e, t]), n = D(null);
|
|
3777
|
+
n.current === null && (n.current = new vs(r));
|
|
3778
|
+
const o = n.current, a = D(!1);
|
|
3779
3779
|
return G(() => {
|
|
3780
3780
|
if (!a.current) {
|
|
3781
3781
|
a.current = !0;
|
|
@@ -3783,11 +3783,11 @@ var Gu = [
|
|
|
3783
3783
|
}
|
|
3784
3784
|
o.update(r);
|
|
3785
3785
|
}, [o, r]), o;
|
|
3786
|
-
}, $a = K(null),
|
|
3786
|
+
}, $a = K(null), Uu = ({ children: e }) => {
|
|
3787
3787
|
const { layers: t, coordSystem: r } = M(se((l) => ({
|
|
3788
3788
|
layers: l.layers,
|
|
3789
3789
|
coordSystem: l.coordSystem
|
|
3790
|
-
}))), n =
|
|
3790
|
+
}))), n = Ku(t, r), [o] = j(() => Yu()), a = D(null), i = D(null);
|
|
3791
3791
|
return i.current === null && (i.current = {
|
|
3792
3792
|
engine: n,
|
|
3793
3793
|
store: o,
|
|
@@ -3801,13 +3801,13 @@ var Gu = [
|
|
|
3801
3801
|
if (e === null) throw new Error("useHoverContext must be used inside a <HoverProvider>.");
|
|
3802
3802
|
return e;
|
|
3803
3803
|
};
|
|
3804
|
-
function
|
|
3805
|
-
const { engine: r } = Ke(), n =
|
|
3804
|
+
function Qu(e, t) {
|
|
3805
|
+
const { engine: r } = Ke(), n = D(t);
|
|
3806
3806
|
G(() => {
|
|
3807
3807
|
n.current = t;
|
|
3808
3808
|
}, [t]), G(() => (r.registerHitTester(e, (o) => n.current(o)), () => r.unregisterHitTester(e)), [r, e]);
|
|
3809
3809
|
}
|
|
3810
|
-
var
|
|
3810
|
+
var Xu = ({ hitTest: e, input: t }) => {
|
|
3811
3811
|
const r = b(() => e(t), [
|
|
3812
3812
|
e,
|
|
3813
3813
|
t.layer.data,
|
|
@@ -3816,11 +3816,11 @@ var Qu = ({ hitTest: e, input: t }) => {
|
|
|
3816
3816
|
t.panelRect.width,
|
|
3817
3817
|
t.panelRect.height
|
|
3818
3818
|
]);
|
|
3819
|
-
return
|
|
3820
|
-
},
|
|
3819
|
+
return Qu(t.layer.id, r), null;
|
|
3820
|
+
}, qu = "graphy_root", _a = () => typeof document > "u" ? null : document.getElementById(qu) ?? document.body, Ju = "_10igzta0", Zu = ({ rect: e, zIndex: t, container: r, boxRef: n, children: o, ...a }) => r === null ? null : _o(/* @__PURE__ */ s("div", {
|
|
3821
3821
|
...a,
|
|
3822
3822
|
ref: n,
|
|
3823
|
-
className:
|
|
3823
|
+
className: Ju,
|
|
3824
3824
|
style: {
|
|
3825
3825
|
transform: `translate(${e.left}px, ${e.top}px)`,
|
|
3826
3826
|
width: e.width,
|
|
@@ -3828,16 +3828,16 @@ var Qu = ({ hitTest: e, input: t }) => {
|
|
|
3828
3828
|
zIndex: t
|
|
3829
3829
|
},
|
|
3830
3830
|
children: o
|
|
3831
|
-
}), r),
|
|
3831
|
+
}), r), $u = ({ rect: e, children: t }) => {
|
|
3832
3832
|
const [r] = j(_a);
|
|
3833
|
-
return /* @__PURE__ */ s(
|
|
3833
|
+
return /* @__PURE__ */ s(Zu, {
|
|
3834
3834
|
rect: e,
|
|
3835
3835
|
zIndex: gt.panelOverlay,
|
|
3836
3836
|
container: r,
|
|
3837
3837
|
children: t
|
|
3838
3838
|
});
|
|
3839
|
-
},
|
|
3840
|
-
const r = Nr(e), n = Nr(t), o =
|
|
3839
|
+
}, _u = (e, t) => {
|
|
3840
|
+
const r = Nr(e), n = Nr(t), o = D(null), a = D(null), i = b(() => {
|
|
3841
3841
|
const l = () => {
|
|
3842
3842
|
a.current !== null && (clearTimeout(a.current), a.current = null), o.current = null;
|
|
3843
3843
|
}, d = () => {
|
|
@@ -3860,18 +3860,18 @@ var Qu = ({ hitTest: e, input: t }) => {
|
|
|
3860
3860
|
return G(() => () => {
|
|
3861
3861
|
a.current !== null && clearTimeout(a.current);
|
|
3862
3862
|
}, []), i;
|
|
3863
|
-
},
|
|
3863
|
+
}, eh = {
|
|
3864
3864
|
width: 0,
|
|
3865
3865
|
height: 0,
|
|
3866
3866
|
isDefault: !0
|
|
3867
3867
|
}, ei = ({ debounce: e = 0, onResize: t } = {}) => {
|
|
3868
|
-
const [r, n] = j(
|
|
3868
|
+
const [r, n] = j(eh), o = D(null), a = _u((c) => {
|
|
3869
3869
|
const u = o.current;
|
|
3870
3870
|
u && u.width === c.width && u.height === c.height || (o.current = {
|
|
3871
3871
|
width: c.width,
|
|
3872
3872
|
height: c.height
|
|
3873
3873
|
}, t?.(c), n(c));
|
|
3874
|
-
}, e), i =
|
|
3874
|
+
}, e), i = D(null), l = D(null), d = ue((c) => {
|
|
3875
3875
|
i.current !== c && (i.current && l.current?.unobserve(i.current), i.current = c, c && (l.current ??= new ResizeObserver(([u]) => {
|
|
3876
3876
|
if (!u) return;
|
|
3877
3877
|
const h = Math.round(u.contentBoxSize[0]?.inlineSize ?? u.contentRect.width), g = Math.round(u.contentBoxSize[0]?.blockSize ?? u.contentRect.height);
|
|
@@ -3887,8 +3887,8 @@ var Qu = ({ hitTest: e, input: t }) => {
|
|
|
3887
3887
|
setElement: d
|
|
3888
3888
|
};
|
|
3889
3889
|
};
|
|
3890
|
-
function
|
|
3891
|
-
const [e, t] = j(null), r =
|
|
3890
|
+
function th() {
|
|
3891
|
+
const [e, t] = j(null), r = D(null), n = D(null), o = D(null), a = ue(() => {
|
|
3892
3892
|
o.current = null;
|
|
3893
3893
|
const c = n.current;
|
|
3894
3894
|
if (!c) return;
|
|
@@ -3916,7 +3916,7 @@ function eh() {
|
|
|
3916
3916
|
screenRect: e
|
|
3917
3917
|
};
|
|
3918
3918
|
}
|
|
3919
|
-
function
|
|
3919
|
+
function rh(e) {
|
|
3920
3920
|
const { engine: t, store: r } = Ke();
|
|
3921
3921
|
return ue((n, o) => {
|
|
3922
3922
|
const { hover: a, setHoverState: i, setTooltipAnchor: l } = r.getState(), d = n === null ? Gt : t.resolveHoverByKey(e, n);
|
|
@@ -3935,8 +3935,8 @@ function th(e) {
|
|
|
3935
3935
|
e
|
|
3936
3936
|
]);
|
|
3937
3937
|
}
|
|
3938
|
-
var
|
|
3939
|
-
const r =
|
|
3938
|
+
var nh = ({ render: e, input: t }) => {
|
|
3939
|
+
const r = rh(t.layer.id), { measureRef: n, screenRect: o } = th();
|
|
3940
3940
|
return G(() => () => r(null), [r]), /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ s("rect", {
|
|
3941
3941
|
ref: n,
|
|
3942
3942
|
x: 0,
|
|
@@ -3945,16 +3945,16 @@ var rh = ({ render: e, input: t }) => {
|
|
|
3945
3945
|
height: "100%",
|
|
3946
3946
|
fill: "none",
|
|
3947
3947
|
pointerEvents: "none"
|
|
3948
|
-
}), o && /* @__PURE__ */ s(
|
|
3948
|
+
}), o && /* @__PURE__ */ s($u, {
|
|
3949
3949
|
rect: o,
|
|
3950
|
-
children: /* @__PURE__ */ s(
|
|
3950
|
+
children: /* @__PURE__ */ s(oh, {
|
|
3951
3951
|
render: e,
|
|
3952
3952
|
input: t,
|
|
3953
3953
|
pushHover: r,
|
|
3954
3954
|
panelRect: o
|
|
3955
3955
|
})
|
|
3956
3956
|
})] });
|
|
3957
|
-
},
|
|
3957
|
+
}, oh = ({ render: e, input: t, pushHover: r, panelRect: n }) => e({
|
|
3958
3958
|
...t,
|
|
3959
3959
|
overlay: {
|
|
3960
3960
|
pushHover: r,
|
|
@@ -4020,13 +4020,13 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4020
4020
|
editorSurface: !0,
|
|
4021
4021
|
inlineTextEditing: !1
|
|
4022
4022
|
}
|
|
4023
|
-
},
|
|
4023
|
+
}, ah = new Set(Object.values(Re)), ih = (e) => ah.has(e), vn = (e) => ih(e) ? e : Re.readonly, jt = {
|
|
4024
4024
|
enabled: !0,
|
|
4025
4025
|
trigger: "mount",
|
|
4026
4026
|
durationScale: 1,
|
|
4027
4027
|
stagger: !0,
|
|
4028
4028
|
staggerOrder: "main-axis"
|
|
4029
|
-
}, ao = 1500,
|
|
4029
|
+
}, ao = 1500, sh = (e, t) => t ? {
|
|
4030
4030
|
intro: {
|
|
4031
4031
|
...jt,
|
|
4032
4032
|
enabled: !1
|
|
@@ -4041,14 +4041,14 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4041
4041
|
transitions: e,
|
|
4042
4042
|
maxAnimatedGeoms: ao
|
|
4043
4043
|
} : {
|
|
4044
|
-
intro:
|
|
4044
|
+
intro: lh(e?.intro),
|
|
4045
4045
|
transitions: e?.transitions ?? !0,
|
|
4046
4046
|
maxAnimatedGeoms: e?.maxAnimatedGeoms ?? 1500
|
|
4047
|
-
},
|
|
4047
|
+
}, lh = (e) => typeof e == "boolean" ? {
|
|
4048
4048
|
...jt,
|
|
4049
4049
|
enabled: e
|
|
4050
|
-
} :
|
|
4051
|
-
const r =
|
|
4050
|
+
} : Ml({}, jt, e), dh = (e, t) => {
|
|
4051
|
+
const r = Tl(), n = b(() => sh(e, r ?? !1), [e, r]), o = b(() => t.reduce((a, i) => a + Ds(i), 0), [t]);
|
|
4052
4052
|
return b(() => o <= n.maxAnimatedGeoms ? n : {
|
|
4053
4053
|
...n,
|
|
4054
4054
|
intro: {
|
|
@@ -4057,7 +4057,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4057
4057
|
},
|
|
4058
4058
|
transitions: !1
|
|
4059
4059
|
}, [n, o]);
|
|
4060
|
-
},
|
|
4060
|
+
}, ch = {
|
|
4061
4061
|
loading: "جاري التحميل",
|
|
4062
4062
|
error: "حدث خطأ ما",
|
|
4063
4063
|
axisLabels: { placeholder: "إضافة تسمية" },
|
|
@@ -4108,10 +4108,10 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4108
4108
|
comparisonReference: ({ value: e }) => `من ${e}`
|
|
4109
4109
|
},
|
|
4110
4110
|
legend: { hiddenItems: "عناصر وسيلة الإيضاح المخفية" }
|
|
4111
|
-
}, ch = {
|
|
4112
|
-
graph: dh,
|
|
4113
|
-
dir: "rtl"
|
|
4114
4111
|
}, uh = {
|
|
4112
|
+
graph: ch,
|
|
4113
|
+
dir: "rtl"
|
|
4114
|
+
}, hh = {
|
|
4115
4115
|
loading: "Loading",
|
|
4116
4116
|
error: "Something went wrong",
|
|
4117
4117
|
axisLabels: { placeholder: "Add label" },
|
|
@@ -4162,10 +4162,10 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4162
4162
|
comparisonReference: ({ value: e }) => `from ${e}`
|
|
4163
4163
|
},
|
|
4164
4164
|
legend: { hiddenItems: "Hidden legend items" }
|
|
4165
|
-
},
|
|
4166
|
-
graph:
|
|
4165
|
+
}, vh = {
|
|
4166
|
+
graph: hh,
|
|
4167
4167
|
dir: "ltr"
|
|
4168
|
-
},
|
|
4168
|
+
}, gh = {}, fh = {
|
|
4169
4169
|
loading: "A carregar",
|
|
4170
4170
|
error: "Algo correu mal",
|
|
4171
4171
|
axisLabels: { placeholder: "Adicionar etiqueta" },
|
|
@@ -4216,47 +4216,47 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4216
4216
|
comparisonReference: ({ value: e }) => `de ${e}`
|
|
4217
4217
|
},
|
|
4218
4218
|
legend: { hiddenItems: "Itens de legenda ocultos" }
|
|
4219
|
-
},
|
|
4220
|
-
graph:
|
|
4219
|
+
}, ph = {
|
|
4220
|
+
graph: fh,
|
|
4221
4221
|
dir: "ltr"
|
|
4222
4222
|
}, gn = {
|
|
4223
|
-
"en-GB":
|
|
4224
|
-
"en-US":
|
|
4225
|
-
ar:
|
|
4226
|
-
"pt-PT":
|
|
4227
|
-
},
|
|
4223
|
+
"en-GB": vh,
|
|
4224
|
+
"en-US": gh,
|
|
4225
|
+
ar: uh,
|
|
4226
|
+
"pt-PT": ph
|
|
4227
|
+
}, mh = ({ locale: e, overrides: t, fallbackLocale: r = "en-GB", dictionaries: n }) => {
|
|
4228
4228
|
const o = t ?? {}, a = e ?? r, i = [...n.map((d) => d[a]), ...n.map((d) => d[r])];
|
|
4229
4229
|
return (d, c) => {
|
|
4230
4230
|
const u = c ?? {}, h = d.split("."), g = o[d];
|
|
4231
4231
|
if (g) return typeof g == "function" ? g(u) : g;
|
|
4232
4232
|
for (const f of i) {
|
|
4233
4233
|
if (f === void 0) continue;
|
|
4234
|
-
const v =
|
|
4234
|
+
const v = xh(f, h);
|
|
4235
4235
|
if (v) return typeof v == "function" ? v(u) : v;
|
|
4236
4236
|
}
|
|
4237
4237
|
return d;
|
|
4238
4238
|
};
|
|
4239
|
-
},
|
|
4239
|
+
}, yh = ({ locale: e, overrides: t }) => t?.dir ?? gn[e].dir ?? "ltr", xh = (e, t) => {
|
|
4240
4240
|
let r = e;
|
|
4241
4241
|
for (const n of t) {
|
|
4242
4242
|
if (typeof r != "object" || r === null) return;
|
|
4243
4243
|
r = r[n];
|
|
4244
4244
|
}
|
|
4245
4245
|
if (typeof r == "string" || typeof r == "function") return r;
|
|
4246
|
-
},
|
|
4246
|
+
}, Ah = (e) => {
|
|
4247
4247
|
const t = "en-GB";
|
|
4248
4248
|
if (!e) return t;
|
|
4249
4249
|
const r = e.trim().replace("_", "-").toLowerCase();
|
|
4250
4250
|
return Object.keys(gn).find((n) => n.toLowerCase() === r) ?? t;
|
|
4251
|
-
}, ti = K(null),
|
|
4252
|
-
const o =
|
|
4253
|
-
translator:
|
|
4251
|
+
}, ti = K(null), bh = [gn], ri = () => ni().translator, qy = () => ni().dir, wh = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = bh }) => {
|
|
4252
|
+
const o = Ah(e), a = b(() => ({
|
|
4253
|
+
translator: mh({
|
|
4254
4254
|
locale: o,
|
|
4255
4255
|
overrides: r,
|
|
4256
4256
|
fallbackLocale: "en-GB",
|
|
4257
4257
|
dictionaries: n
|
|
4258
4258
|
}),
|
|
4259
|
-
dir:
|
|
4259
|
+
dir: yh({
|
|
4260
4260
|
locale: o,
|
|
4261
4261
|
overrides: r
|
|
4262
4262
|
})
|
|
@@ -4265,7 +4265,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4265
4265
|
o,
|
|
4266
4266
|
n
|
|
4267
4267
|
]);
|
|
4268
|
-
return /* @__PURE__ */ s(
|
|
4268
|
+
return /* @__PURE__ */ s(Ol, {
|
|
4269
4269
|
locale: o,
|
|
4270
4270
|
timeZone: "UTC",
|
|
4271
4271
|
children: /* @__PURE__ */ s(ti.Provider, {
|
|
@@ -4273,11 +4273,11 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4273
4273
|
children: t
|
|
4274
4274
|
})
|
|
4275
4275
|
});
|
|
4276
|
-
},
|
|
4276
|
+
}, ni = () => {
|
|
4277
4277
|
const e = W(ti);
|
|
4278
4278
|
if (!e) throw new Error("useI18n must be used within IntlProvider");
|
|
4279
4279
|
return e;
|
|
4280
|
-
},
|
|
4280
|
+
}, oi = (e) => typeof e == "number" ? {
|
|
4281
4281
|
topLeft: e,
|
|
4282
4282
|
topRight: e,
|
|
4283
4283
|
bottomRight: e,
|
|
@@ -4287,7 +4287,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4287
4287
|
const { topLeft: t, topRight: r, bottomRight: n, bottomLeft: o } = e;
|
|
4288
4288
|
return t === r && r === n && n === o ? t : null;
|
|
4289
4289
|
}, Sh = (e) => {
|
|
4290
|
-
const { topLeft: t, topRight: r, bottomRight: n, bottomLeft: o } =
|
|
4290
|
+
const { topLeft: t, topRight: r, bottomRight: n, bottomLeft: o } = oi(e);
|
|
4291
4291
|
return t > 0 || r > 0 || n > 0 || o > 0;
|
|
4292
4292
|
}, Lt = (e, t = 0) => {
|
|
4293
4293
|
const r = ur(e);
|
|
@@ -4300,7 +4300,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4300
4300
|
i
|
|
4301
4301
|
].map((l) => `${io(l, t)}px`).join(" ");
|
|
4302
4302
|
}, fn = (e, t) => {
|
|
4303
|
-
const { x: r, y: n, width: o, height: a } = e, { topLeft: i, topRight: l, bottomRight: d, bottomLeft: c } = kh(
|
|
4303
|
+
const { x: r, y: n, width: o, height: a } = e, { topLeft: i, topRight: l, bottomRight: d, bottomLeft: c } = kh(oi(t), o, a), u = r + o, h = n + a, g = (f, v, m) => f > 0 ? `A${f},${f},0,0,1,${v},${m}` : "";
|
|
4304
4304
|
return [
|
|
4305
4305
|
`M${r + i},${n}`,
|
|
4306
4306
|
`H${u - l}`,
|
|
@@ -4354,7 +4354,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4354
4354
|
}, Eh = (e, t, r) => {
|
|
4355
4355
|
if (e.pattern === "dots") return [`radial-gradient(circle, ${e.color} ${r}px, transparent ${r}px)`];
|
|
4356
4356
|
if (e.pattern === "lines") {
|
|
4357
|
-
const n = `${t *
|
|
4357
|
+
const n = `${t * Ad}px`;
|
|
4358
4358
|
return [`linear-gradient(to bottom, ${e.color} ${n}, transparent ${n})`];
|
|
4359
4359
|
}
|
|
4360
4360
|
return [so(-45, e.color, t, r), ...e.pattern === "crosshatch" ? [so(45, e.color, t, r)] : []];
|
|
@@ -4365,12 +4365,12 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4365
4365
|
if (e.alpha === void 0 || e.alpha >= 1) return e.image;
|
|
4366
4366
|
const r = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${t.width} ${t.height}" preserveAspectRatio="none"><image href="${Ph(e.image)}" width="${t.width}" height="${t.height}" opacity="${e.alpha}" preserveAspectRatio="none"/></svg>`;
|
|
4367
4367
|
return `data:image/svg+xml,${encodeURIComponent(r)}`;
|
|
4368
|
-
}, Ph = (e) => e.replace(/&/gu, "&").replace(/</gu, "<").replace(/>/gu, ">").replace(/"/gu, """), co = (e) => `url("${e.replace(/[\\"]/gu, "\\$&").replace(/[\n\r\f]/gu, (t) => `\\${t.charCodeAt(0).toString(16)} `)}")`, Rh = "bow4tg0", Ch = "bow4tg1", Lh = "bow4tg2", Ih = "bow4tg3", Th = "bow4tg4",
|
|
4368
|
+
}, Ph = (e) => e.replace(/&/gu, "&").replace(/</gu, "<").replace(/>/gu, ">").replace(/"/gu, """), co = (e) => `url("${e.replace(/[\\"]/gu, "\\$&").replace(/[\n\r\f]/gu, (t) => `\\${t.charCodeAt(0).toString(16)} `)}")`, Rh = "bow4tg0", Ch = "bow4tg1", Lh = "bow4tg2", Ih = "bow4tg3", Th = "bow4tg4", ai = "_1ii3bsb0", Bh = "_1ii3bsb1", ii = K({
|
|
4369
4369
|
colorScheme: "light",
|
|
4370
|
-
themeClass:
|
|
4370
|
+
themeClass: ai,
|
|
4371
4371
|
inlineVarsStyle: {},
|
|
4372
4372
|
themeValues: ln("light", {})
|
|
4373
|
-
}), pn = () => W(
|
|
4373
|
+
}), pn = () => W(ii), Mh = ({ colorScheme: e, textScale: t = 1, graphBackground: r, graphFontFamily: n, headingFontFamily: o, children: a }) => {
|
|
4374
4374
|
const i = b(() => ln(e), [e]), l = b(() => {
|
|
4375
4375
|
const c = { [y.textScale]: String(t) };
|
|
4376
4376
|
return r !== void 0 && (c[y.graphBackground] = r), n !== void 0 && (c[y.fontFamily] = n), o !== void 0 && (c[y.fontFamilyHeading] = o), er(c);
|
|
@@ -4381,7 +4381,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4381
4381
|
o
|
|
4382
4382
|
]), d = b(() => ({
|
|
4383
4383
|
colorScheme: e,
|
|
4384
|
-
themeClass: e === "dark" ? Bh :
|
|
4384
|
+
themeClass: e === "dark" ? Bh : ai,
|
|
4385
4385
|
inlineVarsStyle: l,
|
|
4386
4386
|
themeValues: i
|
|
4387
4387
|
}), [
|
|
@@ -4389,7 +4389,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4389
4389
|
l,
|
|
4390
4390
|
i
|
|
4391
4391
|
]);
|
|
4392
|
-
return /* @__PURE__ */ s(
|
|
4392
|
+
return /* @__PURE__ */ s(ii.Provider, {
|
|
4393
4393
|
value: d,
|
|
4394
4394
|
children: a
|
|
4395
4395
|
});
|
|
@@ -4418,10 +4418,10 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4418
4418
|
const t = Hh(e);
|
|
4419
4419
|
if (t !== void 0)
|
|
4420
4420
|
return Nh[t] ?? t;
|
|
4421
|
-
},
|
|
4421
|
+
}, Dh = "_1cocly40", Ze = ({ content: e }) => /* @__PURE__ */ s(T, { children: si(e.content ?? [e]) }), si = (e) => e.map((t, r) => Fh(t, r)), Fh = (e, t) => {
|
|
4422
4422
|
if (e.type === "text") return Wh(e, t);
|
|
4423
4423
|
if (e.type === "hardBreak" || e.type === "hard_break") return /* @__PURE__ */ s("br", {}, t);
|
|
4424
|
-
const r = e.content ?
|
|
4424
|
+
const r = e.content ? si(e.content) : null;
|
|
4425
4425
|
switch (e.type) {
|
|
4426
4426
|
case "doc":
|
|
4427
4427
|
return /* @__PURE__ */ s(_t, { children: r }, t);
|
|
@@ -4432,7 +4432,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4432
4432
|
case "paragraph":
|
|
4433
4433
|
return /* @__PURE__ */ s("p", {
|
|
4434
4434
|
"data-variant": mn(e.attrs?.variant) ?? void 0,
|
|
4435
|
-
style:
|
|
4435
|
+
style: li(ho(e.attrs)),
|
|
4436
4436
|
children: r
|
|
4437
4437
|
}, t);
|
|
4438
4438
|
case "blockquote":
|
|
@@ -4471,7 +4471,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4471
4471
|
case "link": {
|
|
4472
4472
|
const n = mn(e.attrs?.href);
|
|
4473
4473
|
return qr(n) ? /* @__PURE__ */ s("a", {
|
|
4474
|
-
className:
|
|
4474
|
+
className: Dh,
|
|
4475
4475
|
href: n,
|
|
4476
4476
|
rel: "noopener noreferrer",
|
|
4477
4477
|
target: "_blank",
|
|
@@ -4499,7 +4499,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4499
4499
|
}, zh = (e) => {
|
|
4500
4500
|
if (typeof e == "number" && Number.isFinite(e)) return `calc(${e}px * ${y.textScale})`;
|
|
4501
4501
|
}, mn = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Yh = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), jh = (e, t, r, n) => {
|
|
4502
|
-
const o =
|
|
4502
|
+
const o = li(n);
|
|
4503
4503
|
switch (e) {
|
|
4504
4504
|
case 1:
|
|
4505
4505
|
return /* @__PURE__ */ s("h1", {
|
|
@@ -4520,7 +4520,7 @@ var rh = ({ render: e, input: t }) => {
|
|
|
4520
4520
|
}, ho = (e) => {
|
|
4521
4521
|
const t = e?.textAlign;
|
|
4522
4522
|
if (t === "left" || t === "right" || t === "center" || t === "justify") return t;
|
|
4523
|
-
},
|
|
4523
|
+
}, li = (e) => e ? { textAlign: e } : void 0;
|
|
4524
4524
|
function yt(e) {
|
|
4525
4525
|
const { store: t } = Ke();
|
|
4526
4526
|
return _e(t, e);
|
|
@@ -4536,7 +4536,7 @@ var Kt = {
|
|
|
4536
4536
|
}, Zh = {
|
|
4537
4537
|
...Kt,
|
|
4538
4538
|
isWaitingForView: !0
|
|
4539
|
-
}, hr = K(Kt),
|
|
4539
|
+
}, hr = K(Kt), di = 0.4, $h = ({ intro: e, panelRect: t, children: r }) => {
|
|
4540
4540
|
const { layers: n, coordSystem: o, scales: a } = M(se((h) => ({
|
|
4541
4541
|
layers: h.layers,
|
|
4542
4542
|
coordSystem: h.coordSystem,
|
|
@@ -4568,8 +4568,8 @@ var Kt = {
|
|
|
4568
4568
|
}, it = () => W(hr).isWaitingForView, _h = () => {
|
|
4569
4569
|
const { introEndsAtMs: e } = W(hr), [t] = j(() => rv(e) / 1e3);
|
|
4570
4570
|
return t;
|
|
4571
|
-
},
|
|
4572
|
-
const { plansByLayerId: t, coordKey: r } = W(hr), n = M((o) =>
|
|
4571
|
+
}, ci = (e) => {
|
|
4572
|
+
const { plansByLayerId: t, coordKey: r } = W(hr), n = M((o) => ui(o.coordSystem));
|
|
4573
4573
|
return t === null || r !== n ? null : t.get(e) ?? null;
|
|
4574
4574
|
}, vo = (e) => e.enabled && e.trigger === "inView" && typeof IntersectionObserver < "u", go = ({ layers: e, coordSystem: t, scales: r, intro: n }) => {
|
|
4575
4575
|
if (!n.enabled) return Kt;
|
|
@@ -4579,7 +4579,7 @@ var Kt = {
|
|
|
4579
4579
|
staggerOrder: n.staggerOrder
|
|
4580
4580
|
}, a = /* @__PURE__ */ new Map();
|
|
4581
4581
|
for (const l of e) {
|
|
4582
|
-
const d =
|
|
4582
|
+
const d = Ps({
|
|
4583
4583
|
layer: l,
|
|
4584
4584
|
coordSystem: t,
|
|
4585
4585
|
scales: r,
|
|
@@ -4588,10 +4588,10 @@ var Kt = {
|
|
|
4588
4588
|
d !== null && a.set(l.id, d);
|
|
4589
4589
|
}
|
|
4590
4590
|
if (a.size === 0) return Kt;
|
|
4591
|
-
const i = [...a.values()].reduce((l, d) => Math.max(l,
|
|
4591
|
+
const i = [...a.values()].reduce((l, d) => Math.max(l, ad(d)), 0);
|
|
4592
4592
|
return {
|
|
4593
4593
|
plansByLayerId: a,
|
|
4594
|
-
coordKey:
|
|
4594
|
+
coordKey: ui(t),
|
|
4595
4595
|
introEndsAtMs: performance.now() + i * 1e3,
|
|
4596
4596
|
isWaitingForView: !1
|
|
4597
4597
|
};
|
|
@@ -4601,11 +4601,11 @@ var Kt = {
|
|
|
4601
4601
|
if (e === null) return;
|
|
4602
4602
|
const n = new IntersectionObserver((o) => {
|
|
4603
4603
|
o.some(tv) && r(!0);
|
|
4604
|
-
}, { threshold:
|
|
4604
|
+
}, { threshold: di });
|
|
4605
4605
|
return n.observe(e), () => n.disconnect();
|
|
4606
4606
|
}, [e]), t;
|
|
4607
|
-
}, tv = ({ intersectionRatio: e, intersectionRect: t }) => t.width > 0 && t.height > 0 && e >=
|
|
4608
|
-
const { overlayRef: t } = Ke(), r =
|
|
4607
|
+
}, tv = ({ intersectionRatio: e, intersectionRect: t }) => t.width > 0 && t.height > 0 && e >= di, rv = (e) => Math.max(0, e - performance.now()), ui = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, nv = (e) => {
|
|
4608
|
+
const { overlayRef: t } = Ke(), r = D(null), [n, o] = j(!1), a = Nr(e);
|
|
4609
4609
|
return G(() => {
|
|
4610
4610
|
const i = t.current;
|
|
4611
4611
|
if (!i) return;
|
|
@@ -4638,7 +4638,7 @@ var Kt = {
|
|
|
4638
4638
|
width: 0,
|
|
4639
4639
|
height: 0,
|
|
4640
4640
|
toJSON: () => ({})
|
|
4641
|
-
},
|
|
4641
|
+
}, Dt = {
|
|
4642
4642
|
boundary: [],
|
|
4643
4643
|
padding: av
|
|
4644
4644
|
}, sv = () => {
|
|
@@ -4651,8 +4651,8 @@ var Kt = {
|
|
|
4651
4651
|
parsingLocale: x.config.parsingLocale,
|
|
4652
4652
|
mode: x.config.tooltip.mode,
|
|
4653
4653
|
comments: x.annotations.comments
|
|
4654
|
-
}))), { formattingLocale: t } = ee(), r = O(), n = yt((x) => x.hover), o = yt((x) => x.tooltipAnchor), a = yt((x) => x.isPointerSuspended), i = xe("Tooltip", lv), l =
|
|
4655
|
-
}), { cursorRef: d, isInside: c } = nv(() => l.current()), u = b(() =>
|
|
4654
|
+
}))), { formattingLocale: t } = ee(), r = O(), n = yt((x) => x.hover), o = yt((x) => x.tooltipAnchor), a = yt((x) => x.isPointerSuspended), i = xe("Tooltip", lv), l = D(() => {
|
|
4655
|
+
}), { cursorRef: d, isInside: c } = nv(() => l.current()), u = b(() => Is({
|
|
4656
4656
|
...e,
|
|
4657
4657
|
hover: n,
|
|
4658
4658
|
readers: r,
|
|
@@ -4684,7 +4684,7 @@ var Kt = {
|
|
|
4684
4684
|
}), A = _a();
|
|
4685
4685
|
return A ? _o(/* @__PURE__ */ s(Oh, { children: p }), A) : p;
|
|
4686
4686
|
}, lv = ({ content: e }) => {
|
|
4687
|
-
const t = Ce(), r = M((h) => h.coordSystem), n = I(
|
|
4687
|
+
const t = Ce(), r = M((h) => h.coordSystem), n = I(Pl, O()), o = ot([n.box.fill]), a = X(n.heading), i = X(n.label), l = X(n.value), d = { paddingInline: n.box.paddingInline }, c = e.rows.some((h) => h.swatchColor !== null), u = e.rows.some((h) => !h.isPrimary);
|
|
4688
4688
|
return /* @__PURE__ */ w("div", {
|
|
4689
4689
|
className: Kh,
|
|
4690
4690
|
style: dv(n.box, o(n.box.fill)),
|
|
@@ -4759,13 +4759,13 @@ var Kt = {
|
|
|
4759
4759
|
open: e,
|
|
4760
4760
|
placement: t !== null ? t.placement : "right",
|
|
4761
4761
|
middleware: t !== null ? [
|
|
4762
|
-
Rr(
|
|
4763
|
-
Cr(
|
|
4764
|
-
Pr(
|
|
4762
|
+
Rr(cs),
|
|
4763
|
+
Cr(Dt),
|
|
4764
|
+
Pr(Dt)
|
|
4765
4765
|
] : [
|
|
4766
4766
|
Rr(ov),
|
|
4767
|
-
Pr(
|
|
4768
|
-
Cr(
|
|
4767
|
+
Pr(Dt),
|
|
4768
|
+
Cr(Dt)
|
|
4769
4769
|
],
|
|
4770
4770
|
elements: { reference: r }
|
|
4771
4771
|
}), vv = ({ row: e, swatchShape: t, mainAxis: r, hasSwatches: n, shouldHighlight: o, labelStyle: a, valueStyle: i, paddingInline: l, paddingBlock: d, highlightBackground: c }) => /* @__PURE__ */ w("div", {
|
|
@@ -4805,24 +4805,24 @@ var Kt = {
|
|
|
4805
4805
|
children: e.value
|
|
4806
4806
|
})
|
|
4807
4807
|
]
|
|
4808
|
-
}),
|
|
4808
|
+
}), hi = (e) => ({
|
|
4809
4809
|
x: e.axisLabel.x().resolve(),
|
|
4810
4810
|
y: e.axisLabel.y().resolve()
|
|
4811
|
-
}),
|
|
4811
|
+
}), vi = (e) => ({
|
|
4812
4812
|
x: e.tickLine.x().resolve(),
|
|
4813
4813
|
y: e.tickLine.y().resolve()
|
|
4814
4814
|
}), gv = (e) => {
|
|
4815
4815
|
const t = e.graph();
|
|
4816
|
-
return
|
|
4816
|
+
return Cl(V(t.get("fill")), t.get("alpha") ?? 1);
|
|
4817
4817
|
}, yn = (e) => (t, r) => r === void 0 ? e.tickLabel[t]().resolve() : e.tickLabel[r](t).resolve(), vr = (e) => {
|
|
4818
4818
|
const t = {};
|
|
4819
|
-
for (const r of
|
|
4819
|
+
for (const r of us) {
|
|
4820
4820
|
const n = {};
|
|
4821
|
-
for (const o of
|
|
4821
|
+
for (const o of ms) n[o] = Al(e, r, o);
|
|
4822
4822
|
t[r] = n;
|
|
4823
4823
|
}
|
|
4824
4824
|
return t;
|
|
4825
|
-
},
|
|
4825
|
+
}, gi = (e) => {
|
|
4826
4826
|
const t = e.legend().resolve();
|
|
4827
4827
|
return {
|
|
4828
4828
|
gap: t.gap,
|
|
@@ -4839,7 +4839,7 @@ var Kt = {
|
|
|
4839
4839
|
return Math.max(...h.map((f) => f.height)) + c;
|
|
4840
4840
|
}
|
|
4841
4841
|
return fo(h.map((f) => f.width), g) + c;
|
|
4842
|
-
}, fo = (e, t) => Math.min(Math.max(...e), t), pv = ({ axisLabelStyles: e }) => (t) => We(e[Ae(t.scaleAestheticKey)]),
|
|
4842
|
+
}, fo = (e, t) => Math.min(Math.max(...e), t), pv = ({ axisLabelStyles: e }) => (t) => We(e[Ae(t.scaleAestheticKey)]), fi = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, a) => {
|
|
4843
4843
|
const i = t[n][o], l = e.measureText(a, te(i, r));
|
|
4844
4844
|
return {
|
|
4845
4845
|
...l,
|
|
@@ -4847,12 +4847,12 @@ var Kt = {
|
|
|
4847
4847
|
height: l.height + i.paddingBlock * 2
|
|
4848
4848
|
};
|
|
4849
4849
|
}, mv = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, te(n, t)), yv = ce.sm, xv = ({ textMeasurer: e, familyDefault: t, itemGap: r, headlineItemStyles: n }) => (o, a) => {
|
|
4850
|
-
const i =
|
|
4850
|
+
const i = pi(o, n[a], e, t);
|
|
4851
4851
|
return {
|
|
4852
|
-
width:
|
|
4852
|
+
width: mi(i.map((l) => l.width)) + Math.max(0, i.length - 1) * r,
|
|
4853
4853
|
height: Math.max(0, ...i.map((l) => l.height))
|
|
4854
4854
|
};
|
|
4855
|
-
}, Av = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o) =>
|
|
4855
|
+
}, Av = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o) => pi(n, r[o], e, t).map((a) => a.width), bv = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o, a = !1) => {
|
|
4856
4856
|
const i = Qo(r[o], a);
|
|
4857
4857
|
return {
|
|
4858
4858
|
width: e.measureText(n, te(i, t)).width,
|
|
@@ -4861,13 +4861,13 @@ var Kt = {
|
|
|
4861
4861
|
}, wv = (e) => {
|
|
4862
4862
|
const t = xv(e), r = bv(e);
|
|
4863
4863
|
return (n, o, a = !1) => n.kind === "perGroup" ? t(n, o) : r(n.value, o, a);
|
|
4864
|
-
},
|
|
4864
|
+
}, pi = (e, t, r, n) => {
|
|
4865
4865
|
const o = (a) => Sv(a, t, r, n);
|
|
4866
4866
|
return e.items.map((a) => {
|
|
4867
4867
|
const i = Ho(a, t).map(o), l = Math.max(0, i.length - 1) * t.gap;
|
|
4868
4868
|
return {
|
|
4869
4869
|
width: Math.max(0, ...i.map((d) => d.width)),
|
|
4870
|
-
height:
|
|
4870
|
+
height: mi(i.map((d) => d.height)) + l
|
|
4871
4871
|
};
|
|
4872
4872
|
});
|
|
4873
4873
|
}, Sv = (e, t, r, n) => {
|
|
@@ -4895,7 +4895,7 @@ var Kt = {
|
|
|
4895
4895
|
default:
|
|
4896
4896
|
return t;
|
|
4897
4897
|
}
|
|
4898
|
-
}, Ev = (e) => e.fontSize * (e.lineHeight ?? yv),
|
|
4898
|
+
}, Ev = (e) => e.fontSize * (e.lineHeight ?? yv), mi = (e) => e.reduce((t, r) => t + r, 0), Pv = (e, t) => e ? t : 0, Ut = (e, t, r) => {
|
|
4899
4899
|
if (r) {
|
|
4900
4900
|
const n = Number(e.size);
|
|
4901
4901
|
return Number.isFinite(n) && n > 0 ? n : 0;
|
|
@@ -4920,7 +4920,7 @@ var Kt = {
|
|
|
4920
4920
|
});
|
|
4921
4921
|
return Math.max(...f) + h;
|
|
4922
4922
|
}, Cv = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, te(t(o), r)), Lv = Object.freeze({}), Iv = ({ textMeasurer: e, metrics: t, overrides: r = Lv }) => {
|
|
4923
|
-
const n = O(), o = I(
|
|
4923
|
+
const n = O(), o = I(hi, n), a = I(vr, n), i = I(Uo, n), l = I(Et, n), d = I(yn, n), c = I(vi, n), u = D(r);
|
|
4924
4924
|
return u.current = r, b(() => {
|
|
4925
4925
|
if (!e) return null;
|
|
4926
4926
|
const h = t.fonts.familyDefault, g = n.graph().get("textScale"), f = {
|
|
@@ -4972,7 +4972,7 @@ var Kt = {
|
|
|
4972
4972
|
textMeasurer: e,
|
|
4973
4973
|
familyDefault: h
|
|
4974
4974
|
}),
|
|
4975
|
-
measureDataLabel:
|
|
4975
|
+
measureDataLabel: fi({
|
|
4976
4976
|
textMeasurer: e,
|
|
4977
4977
|
dataLabelStyles: a,
|
|
4978
4978
|
familyDefault: h
|
|
@@ -4991,7 +4991,7 @@ var Kt = {
|
|
|
4991
4991
|
]);
|
|
4992
4992
|
}, Tv = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: o, containerSize: a, externalMeasurements: i, headline: l, formattingLocale: d, annotations: c, layers: u, coordSystem: h, overflowStrategy: g, panelBorder: f, padding: v, margins: m }) => {
|
|
4993
4993
|
const p = O(), A = tn(), x = b(() => (S) => Ko(p, S), [p]);
|
|
4994
|
-
return b(() => e ? new
|
|
4994
|
+
return b(() => e ? new fs(e).compile({
|
|
4995
4995
|
axes: t,
|
|
4996
4996
|
numberFormat: r,
|
|
4997
4997
|
parsingLocale: n,
|
|
@@ -5034,9 +5034,9 @@ var Kt = {
|
|
|
5034
5034
|
}, Bv = (e) => !e.isVisible || e.ticks.length === 0, Mv = (e) => e.items.length === 0, Ov = () => {
|
|
5035
5035
|
const { formattingLocale: e } = ee(), t = M((r) => r.config.parsingLocale);
|
|
5036
5036
|
return e ?? t;
|
|
5037
|
-
}, po = 0.5,
|
|
5038
|
-
}),
|
|
5039
|
-
const [t, r] = j(() => /* @__PURE__ */ new Map()), [n] = j(() => /* @__PURE__ */ new Set()), o =
|
|
5037
|
+
}, po = 0.5, yi = K(/* @__PURE__ */ new Map()), xi = K(() => {
|
|
5038
|
+
}), Ai = K(/* @__PURE__ */ new Set()), Nv = ({ children: e }) => {
|
|
5039
|
+
const [t, r] = j(() => /* @__PURE__ */ new Map()), [n] = j(() => /* @__PURE__ */ new Set()), o = D(/* @__PURE__ */ new Map()), a = ue((i, l, d) => {
|
|
5040
5040
|
const c = o.current.get(i) ?? /* @__PURE__ */ new Set();
|
|
5041
5041
|
if (d !== null) {
|
|
5042
5042
|
c.add(l), o.current.set(i, c), r((u) => Gv(u, i, d));
|
|
@@ -5044,18 +5044,18 @@ var Kt = {
|
|
|
5044
5044
|
}
|
|
5045
5045
|
c.delete(l), !(c.size > 0) && (o.current.delete(i), r((u) => Vv(u, i)));
|
|
5046
5046
|
}, []);
|
|
5047
|
-
return /* @__PURE__ */ s(
|
|
5047
|
+
return /* @__PURE__ */ s(xi.Provider, {
|
|
5048
5048
|
value: a,
|
|
5049
|
-
children: /* @__PURE__ */ s(
|
|
5049
|
+
children: /* @__PURE__ */ s(Ai.Provider, {
|
|
5050
5050
|
value: n,
|
|
5051
|
-
children: /* @__PURE__ */ s(
|
|
5051
|
+
children: /* @__PURE__ */ s(yi.Provider, {
|
|
5052
5052
|
value: t,
|
|
5053
5053
|
children: e
|
|
5054
5054
|
})
|
|
5055
5055
|
})
|
|
5056
5056
|
});
|
|
5057
|
-
}, Hv = () => W(
|
|
5058
|
-
const t =
|
|
5057
|
+
}, Hv = () => W(yi), Dv = () => W(xi), Fv = (e) => {
|
|
5058
|
+
const t = Dv(), r = U(), n = D(null);
|
|
5059
5059
|
return G(() => {
|
|
5060
5060
|
if (typeof ResizeObserver > "u") return;
|
|
5061
5061
|
const o = n.current;
|
|
@@ -5074,7 +5074,7 @@ var Kt = {
|
|
|
5074
5074
|
r,
|
|
5075
5075
|
t
|
|
5076
5076
|
]), n;
|
|
5077
|
-
}, Wv = () => W(
|
|
5077
|
+
}, Wv = () => W(Ai), Gv = (e, t, r) => {
|
|
5078
5078
|
const n = e.get(t);
|
|
5079
5079
|
if (n !== void 0 && Math.abs(n.width - r.width) < po && Math.abs(n.height - r.height) < po) return e;
|
|
5080
5080
|
const o = new Map(e);
|
|
@@ -5083,7 +5083,7 @@ var Kt = {
|
|
|
5083
5083
|
if (!e.has(t)) return e;
|
|
5084
5084
|
const r = new Map(e);
|
|
5085
5085
|
return r.delete(t), r;
|
|
5086
|
-
},
|
|
5086
|
+
}, Jy = (e, t) => e !== null && e.annotationId === t ? e : null, zv = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, Zy = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Yv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, $y = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, jv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && ys(e.point.anchor, t.point.anchor), _y = (e, t) => e !== null && e.annotationId === t ? e : null, Kv = (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, e0 = (e, t) => e !== null && e.annotationId === t ? e : null, Uv = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, xt = ({ standingInteraction: e }, t) => e !== null && He(e, t) ? e : null, Qv = (e, t) => {
|
|
5087
5087
|
if (e === null) return !1;
|
|
5088
5088
|
switch (t.kind) {
|
|
5089
5089
|
case "difference-arrow-endpoint-drag":
|
|
@@ -5101,20 +5101,20 @@ var Kt = {
|
|
|
5101
5101
|
case "menu":
|
|
5102
5102
|
return !1;
|
|
5103
5103
|
}
|
|
5104
|
-
}, He = (e, t) => e.kind === t,
|
|
5105
|
-
const o =
|
|
5104
|
+
}, He = (e, t) => e.kind === t, t0 = (e, t, r, n) => {
|
|
5105
|
+
const o = bi(r.layerId, e, t, n);
|
|
5106
5106
|
return o === null ? null : {
|
|
5107
5107
|
observationIndex: e,
|
|
5108
5108
|
predicate: o.predicate,
|
|
5109
5109
|
selectedFor: r
|
|
5110
5110
|
};
|
|
5111
|
-
},
|
|
5112
|
-
const a =
|
|
5111
|
+
}, r0 = ({ observationIndex: e, predicate: t, selectedFor: r }, n, o) => {
|
|
5112
|
+
const a = bi(r.layerId, e, n, o);
|
|
5113
5113
|
return a !== null && No(a.predicate, t) ? a.standing : null;
|
|
5114
|
-
}, Xv = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.observationIndex === t.observationIndex && No(e.predicate, t.predicate) && pt(e.selectedFor, t.selectedFor),
|
|
5114
|
+
}, Xv = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.observationIndex === t.observationIndex && No(e.predicate, t.predicate) && pt(e.selectedFor, t.selectedFor), bi = (e, t, r, n) => {
|
|
5115
5115
|
const o = qt(r, e), a = o?.data.getAt(t) ?? null;
|
|
5116
5116
|
if (o === void 0 || a === null) return null;
|
|
5117
|
-
const i =
|
|
5117
|
+
const i = Rs({
|
|
5118
5118
|
layer: o,
|
|
5119
5119
|
observationIndex: t,
|
|
5120
5120
|
scope: "data-point",
|
|
@@ -5127,7 +5127,7 @@ var Kt = {
|
|
|
5127
5127
|
},
|
|
5128
5128
|
predicate: i.predicate
|
|
5129
5129
|
};
|
|
5130
|
-
},
|
|
5130
|
+
}, n0 = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
|
|
5131
5131
|
kind: "observations",
|
|
5132
5132
|
observations: r
|
|
5133
5133
|
} : t, qv = (e, t) => {
|
|
@@ -5142,20 +5142,20 @@ var Kt = {
|
|
|
5142
5142
|
return r.layerId === n.layerId && r.observationIndex === n.observationIndex && r.target.scope === n.target.scope && r.isOnObservation === n.isOnObservation;
|
|
5143
5143
|
}
|
|
5144
5144
|
return e.kind === "menu-trigger" && t.kind === "menu-trigger";
|
|
5145
|
-
},
|
|
5145
|
+
}, wi = (e) => {
|
|
5146
5146
|
const t = e.editTargetUnderPointer;
|
|
5147
5147
|
return t?.kind === "annotation" ? t.target.id : null;
|
|
5148
5148
|
}, Jv = (e) => {
|
|
5149
5149
|
const t = e.editTargetUnderPointer;
|
|
5150
5150
|
return t !== null && t.kind !== "menu-trigger";
|
|
5151
|
-
},
|
|
5151
|
+
}, Si = () => en((e) => ({
|
|
5152
5152
|
menuTrigger: null,
|
|
5153
5153
|
editTargetUnderPointer: null,
|
|
5154
5154
|
standingInteraction: null,
|
|
5155
5155
|
selectedOutline: null,
|
|
5156
5156
|
caret: null,
|
|
5157
5157
|
pressedObservation: null,
|
|
5158
|
-
setMenuTrigger: (t) => e((r) =>
|
|
5158
|
+
setMenuTrigger: (t) => e((r) => xs(r.menuTrigger, t) ? r : { menuTrigger: t }),
|
|
5159
5159
|
setEditTargetUnderPointer: (t) => e((r) => qv(r.editTargetUnderPointer, t) ? r : { editTargetUnderPointer: t }),
|
|
5160
5160
|
claimInteraction: (t) => e((r) => Qv(r.standingInteraction, t) ? r : { standingInteraction: t }),
|
|
5161
5161
|
releaseInteraction: (t) => e((r) => r.standingInteraction?.kind === t ? { standingInteraction: null } : r),
|
|
@@ -5169,13 +5169,13 @@ var Kt = {
|
|
|
5169
5169
|
editor: t
|
|
5170
5170
|
} }),
|
|
5171
5171
|
setPressedObservation: (t) => e((r) => Xv(r.pressedObservation, t) ? r : { pressedObservation: t })
|
|
5172
|
-
})), Zv = (e, t) => e === t ? !0 : e === null || t === null ? !1 : pt(e.target, t.target) && e.frameScale === t.frameScale && Mr(e.frame, t.frame) && Or(e.frameSpans, t.frameSpans), An = K(null), $v =
|
|
5173
|
-
const [t] = j(() =>
|
|
5172
|
+
})), Zv = (e, t) => e === t ? !0 : e === null || t === null ? !1 : pt(e.target, t.target) && e.frameScale === t.frameScale && Mr(e.frame, t.frame) && Or(e.frameSpans, t.frameSpans), An = K(null), $v = Si(), o0 = ({ children: e }) => {
|
|
5173
|
+
const [t] = j(() => Si());
|
|
5174
5174
|
return /* @__PURE__ */ s(An.Provider, {
|
|
5175
5175
|
value: t,
|
|
5176
5176
|
children: e
|
|
5177
5177
|
});
|
|
5178
|
-
},
|
|
5178
|
+
}, a0 = () => {
|
|
5179
5179
|
const e = W(An);
|
|
5180
5180
|
if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
|
|
5181
5181
|
return e;
|
|
@@ -5183,21 +5183,21 @@ var Kt = {
|
|
|
5183
5183
|
function Te(e) {
|
|
5184
5184
|
return _e(W(An) ?? $v, e);
|
|
5185
5185
|
}
|
|
5186
|
-
var
|
|
5186
|
+
var ki = K(null), _v = ({ panelRect: e, children: t }) => {
|
|
5187
5187
|
const r = tg(e);
|
|
5188
|
-
return /* @__PURE__ */ s(
|
|
5188
|
+
return /* @__PURE__ */ s(ki.Provider, {
|
|
5189
5189
|
value: r,
|
|
5190
5190
|
children: t
|
|
5191
5191
|
});
|
|
5192
5192
|
}, eg = () => {
|
|
5193
|
-
const e = W(
|
|
5193
|
+
const e = W(ki);
|
|
5194
5194
|
if (e === null) throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");
|
|
5195
5195
|
return e;
|
|
5196
|
-
}, mo = (e, t, r) => t.isStrokeAuthored ? t.stroke :
|
|
5196
|
+
}, mo = (e, t, r) => t.isStrokeAuthored ? t.stroke : pl(e.start, e.end, {
|
|
5197
5197
|
start: r(e.start),
|
|
5198
5198
|
end: r(e.end)
|
|
5199
5199
|
}) ?? t.stroke, tg = (e) => {
|
|
5200
|
-
const { formattingLocale: t } = ee(), r = Me(), { fonts: n } = je(), o = Te((p) => xt(p, "difference-arrow-endpoint-drag")), a =
|
|
5200
|
+
const { formattingLocale: t } = ee(), r = Me(), { fonts: n } = je(), o = Te((p) => xt(p, "difference-arrow-endpoint-drag")), a = Ul(), i = O(), { differenceArrows: l, mainAxis: d, parsingLocale: c } = M(se((p) => ({
|
|
5201
5201
|
differenceArrows: p.annotations.differenceArrows,
|
|
5202
5202
|
mainAxis: St(p.coordSystem),
|
|
5203
5203
|
parsingLocale: p.config.parsingLocale
|
|
@@ -5222,7 +5222,7 @@ var Si = K(null), _v = ({ panelRect: e, children: t }) => {
|
|
|
5222
5222
|
committedLabelBox: x.labelBox,
|
|
5223
5223
|
committedLabelText: x.labelText,
|
|
5224
5224
|
isDragged: !1,
|
|
5225
|
-
hasComparableEndpoints:
|
|
5225
|
+
hasComparableEndpoints: Fn(p.start, p.end)
|
|
5226
5226
|
};
|
|
5227
5227
|
}), [
|
|
5228
5228
|
l,
|
|
@@ -5243,7 +5243,7 @@ var Si = K(null), _v = ({ panelRect: e, children: t }) => {
|
|
|
5243
5243
|
committedLabelBox: p.committedLabelBox,
|
|
5244
5244
|
committedLabelText: p.committedLabelText,
|
|
5245
5245
|
isDragged: !0,
|
|
5246
|
-
hasComparableEndpoints:
|
|
5246
|
+
hasComparableEndpoints: Fn(A.start, A.end)
|
|
5247
5247
|
};
|
|
5248
5248
|
}), [
|
|
5249
5249
|
m,
|
|
@@ -5253,14 +5253,14 @@ var Si = K(null), _v = ({ panelRect: e, children: t }) => {
|
|
|
5253
5253
|
a
|
|
5254
5254
|
]);
|
|
5255
5255
|
}, yo = (e, t, r, n) => {
|
|
5256
|
-
const o =
|
|
5256
|
+
const o = Bs({
|
|
5257
5257
|
arrow: e,
|
|
5258
5258
|
style: t,
|
|
5259
5259
|
...r
|
|
5260
5260
|
});
|
|
5261
5261
|
return {
|
|
5262
5262
|
...o,
|
|
5263
|
-
labelBox:
|
|
5263
|
+
labelBox: Js({
|
|
5264
5264
|
labelPosition: o.labelPosition,
|
|
5265
5265
|
measuredTextWidth: n(o.labelText, t.label),
|
|
5266
5266
|
label: t.label
|
|
@@ -5342,7 +5342,7 @@ var sg = "vultop2", lg = "vultop3", dg = "vultop4", cg = "vultop5", ug = (e) =>
|
|
|
5342
5342
|
"aria-hidden": "true",
|
|
5343
5343
|
className: t,
|
|
5344
5344
|
children: e === "dark" ? pg : fg
|
|
5345
|
-
}), yg = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full",
|
|
5345
|
+
}), yg = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", Ei = ({ visual: e, placement: t }) => {
|
|
5346
5346
|
const r = ug(V(O().graph().get("fill")));
|
|
5347
5347
|
return /* @__PURE__ */ w("a", {
|
|
5348
5348
|
className: bt(ig, e === "mini" && "vultop1", t === "footer" ? dg : cg),
|
|
@@ -5360,14 +5360,14 @@ var sg = "vultop2", lg = "vultop3", dg = "vultop4", cg = "vultop5", ug = (e) =>
|
|
|
5360
5360
|
children: "Made with Graphy"
|
|
5361
5361
|
})]
|
|
5362
5362
|
});
|
|
5363
|
-
},
|
|
5363
|
+
}, Pi = K({
|
|
5364
5364
|
Title: null,
|
|
5365
5365
|
Caption: null,
|
|
5366
5366
|
TextAnnotation: null
|
|
5367
|
-
}),
|
|
5367
|
+
}), i0 = ({ editors: e, children: t }) => /* @__PURE__ */ s(Pi.Provider, {
|
|
5368
5368
|
value: e,
|
|
5369
5369
|
children: t
|
|
5370
|
-
}), bn = () => W(
|
|
5370
|
+
}), bn = () => W(Pi), xo = "_4dlrid0", xg = "xfz7dq0";
|
|
5371
5371
|
var Ag = "xfz7dq2", bg = "xfz7dq3", wg = "xfz7dq4", Sg = "xfz7dq5", kg = ({ ref: e, footerRect: t, mode: r = Re.readonly, caption: n, isCaptionVisible: o, source: a, isSourceVisible: i, captionStyle: l, sourceStyle: d, brandMark: c }) => {
|
|
5372
5372
|
const { Caption: u } = bn(), h = Oe[vn(r)].inlineTextEditing ? u : null, g = o && (h !== null || n !== null), f = i && a !== null && Cg(a), v = c !== "hidden";
|
|
5373
5373
|
return !g && !f && !v ? null : /* @__PURE__ */ w("div", {
|
|
@@ -5389,7 +5389,7 @@ var Ag = "xfz7dq2", bg = "xfz7dq3", wg = "xfz7dq4", Sg = "xfz7dq5", kg = ({ ref:
|
|
|
5389
5389
|
children: [f && /* @__PURE__ */ s(Pg, {
|
|
5390
5390
|
source: a,
|
|
5391
5391
|
sourceStyle: d
|
|
5392
|
-
}), c !== "hidden" ? /* @__PURE__ */ s(
|
|
5392
|
+
}), c !== "hidden" ? /* @__PURE__ */ s(Ei, {
|
|
5393
5393
|
visual: c,
|
|
5394
5394
|
placement: "footer"
|
|
5395
5395
|
}) : null]
|
|
@@ -5455,7 +5455,7 @@ var Ig = 22, Tg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, isT
|
|
|
5455
5455
|
subtitle: a,
|
|
5456
5456
|
headingStyle: l,
|
|
5457
5457
|
subtitleStyle: d
|
|
5458
|
-
}), c !== "hidden" ? /* @__PURE__ */ s(
|
|
5458
|
+
}), c !== "hidden" ? /* @__PURE__ */ s(Ei, {
|
|
5459
5459
|
visual: c,
|
|
5460
5460
|
placement: "header"
|
|
5461
5461
|
}) : null]
|
|
@@ -5479,12 +5479,12 @@ var Ig = 22, Tg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, isT
|
|
|
5479
5479
|
style: X(a),
|
|
5480
5480
|
children: /* @__PURE__ */ s(Ze, { content: n })
|
|
5481
5481
|
}))] });
|
|
5482
|
-
}, Mg = "_1u9qprb0", Og = "_1u9qprb1", Ng = /* @__PURE__ */
|
|
5483
|
-
group: () =>
|
|
5484
|
-
item: () =>
|
|
5485
|
-
trend: () =>
|
|
5482
|
+
}, Mg = "_1u9qprb0", Og = "_1u9qprb1", Ng = /* @__PURE__ */ Hl({
|
|
5483
|
+
group: () => Fg,
|
|
5484
|
+
item: () => Ri,
|
|
5485
|
+
trend: () => Dg,
|
|
5486
5486
|
value: () => Hg
|
|
5487
|
-
}), Hg = "_9aen060",
|
|
5487
|
+
}), Hg = "_9aen060", Dg = "_9aen061", Fg = "_9aen062", Ri = "_9aen063", Wg = {
|
|
5488
5488
|
xxs: 8,
|
|
5489
5489
|
xs: 12,
|
|
5490
5490
|
sm: 16,
|
|
@@ -5494,7 +5494,7 @@ var Ig = 22, Tg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, isT
|
|
|
5494
5494
|
}, Gg = {
|
|
5495
5495
|
primary: "asohov1 asohov0",
|
|
5496
5496
|
secondary: "asohov2 asohov0"
|
|
5497
|
-
},
|
|
5497
|
+
}, Ci = ({ children: e, title: t, variant: r = "primary", size: n = "sm", ...o }) => {
|
|
5498
5498
|
const a = U(), i = Wg[n];
|
|
5499
5499
|
return /* @__PURE__ */ w("svg", {
|
|
5500
5500
|
className: Gg[r],
|
|
@@ -5510,7 +5510,7 @@ var Ig = 22, Tg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, isT
|
|
|
5510
5510
|
children: t
|
|
5511
5511
|
}), e]
|
|
5512
5512
|
});
|
|
5513
|
-
}, Vg = (e) => /* @__PURE__ */ s(
|
|
5513
|
+
}, Vg = (e) => /* @__PURE__ */ s(Ci, {
|
|
5514
5514
|
...e,
|
|
5515
5515
|
children: /* @__PURE__ */ w("g", {
|
|
5516
5516
|
stroke: "currentColor",
|
|
@@ -5519,7 +5519,7 @@ var Ig = 22, Tg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, isT
|
|
|
5519
5519
|
strokeLinejoin: "round",
|
|
5520
5520
|
children: [/* @__PURE__ */ s("path", { d: "m5 12 7-7 7 7" }), /* @__PURE__ */ s("path", { d: "M12 19V5" })]
|
|
5521
5521
|
})
|
|
5522
|
-
}), zg = (e) => /* @__PURE__ */ s(
|
|
5522
|
+
}), zg = (e) => /* @__PURE__ */ s(Ci, {
|
|
5523
5523
|
...e,
|
|
5524
5524
|
children: /* @__PURE__ */ s("g", {
|
|
5525
5525
|
stroke: "currentColor",
|
|
@@ -5535,9 +5535,9 @@ var Ug = ({ segment: e, itemStyle: t }) => {
|
|
|
5535
5535
|
size: e.size
|
|
5536
5536
|
});
|
|
5537
5537
|
if (e.kind === "trendArrow") {
|
|
5538
|
-
const o =
|
|
5538
|
+
const o = Li(t, e.direction);
|
|
5539
5539
|
return /* @__PURE__ */ s("div", {
|
|
5540
|
-
className:
|
|
5540
|
+
className: De(Kg, e.direction === "down" && "n7clvo3"),
|
|
5541
5541
|
style: {
|
|
5542
5542
|
color: o,
|
|
5543
5543
|
backgroundColor: e.direction === "flat" ? re(y.textPrimary, 0.1) : re(o, 0.2)
|
|
@@ -5587,14 +5587,14 @@ var Ug = ({ segment: e, itemStyle: t }) => {
|
|
|
5587
5587
|
case "trendPercentage":
|
|
5588
5588
|
return { style: qe({
|
|
5589
5589
|
...t.trend,
|
|
5590
|
-
textColor:
|
|
5590
|
+
textColor: Li(t, e.trendDirection ?? "up")
|
|
5591
5591
|
}) };
|
|
5592
5592
|
case "trendReference":
|
|
5593
5593
|
return { style: qe(t.trend) };
|
|
5594
5594
|
default:
|
|
5595
5595
|
return e.textRole;
|
|
5596
5596
|
}
|
|
5597
|
-
},
|
|
5597
|
+
}, Li = (e, t) => {
|
|
5598
5598
|
switch (t) {
|
|
5599
5599
|
case "up":
|
|
5600
5600
|
return e.trendUp.textColor;
|
|
@@ -5606,7 +5606,7 @@ var Ug = ({ segment: e, itemStyle: t }) => {
|
|
|
5606
5606
|
return t;
|
|
5607
5607
|
}
|
|
5608
5608
|
}, qg = ({ item: e, itemStyle: t }) => /* @__PURE__ */ s("div", {
|
|
5609
|
-
className:
|
|
5609
|
+
className: Ri,
|
|
5610
5610
|
style: { gap: t.gap },
|
|
5611
5611
|
children: Ho(e, t).map((r) => /* @__PURE__ */ s(Jg, {
|
|
5612
5612
|
row: r,
|
|
@@ -5658,11 +5658,11 @@ var Ug = ({ segment: e, itemStyle: t }) => {
|
|
|
5658
5658
|
itemStyle: l
|
|
5659
5659
|
}, `${c.label}-${u}`))
|
|
5660
5660
|
});
|
|
5661
|
-
},
|
|
5662
|
-
[
|
|
5663
|
-
[
|
|
5661
|
+
}, Ii = "data-legend-index", Ti = "data-legend-item-index", Bi = ({ legendIndex: e, itemIndex: t }) => ({
|
|
5662
|
+
[Ii]: String(e),
|
|
5663
|
+
[Ti]: String(t)
|
|
5664
5664
|
}), _g = (e) => {
|
|
5665
|
-
const t = Hr(e,
|
|
5665
|
+
const t = Hr(e, Ii), r = Hr(e, Ti);
|
|
5666
5666
|
return t === null || r === null ? null : {
|
|
5667
5667
|
legendIndex: t,
|
|
5668
5668
|
itemIndex: r
|
|
@@ -5672,20 +5672,20 @@ var Ug = ({ segment: e, itemStyle: t }) => {
|
|
|
5672
5672
|
if (r === null || !/^(0|[1-9]\d*)$/.test(r)) return null;
|
|
5673
5673
|
const n = Number(r);
|
|
5674
5674
|
return Number.isSafeInteger(n) ? n : null;
|
|
5675
|
-
}, Ue = "data-edit-kind",
|
|
5675
|
+
}, Ue = "data-edit-kind", Mi = "data-edit-id", Qt = "data-edit-axis", Oi = "data-edit-tick-index", Ni = "data-legend-overflow-control", s0 = `[${Ni}]`, ef = "observations", tf = `[${Ue}]`, It = (e) => ({
|
|
5676
5676
|
[Ue]: e.kind,
|
|
5677
|
-
[
|
|
5677
|
+
[Mi]: e.id
|
|
5678
5678
|
}), wn = (e, t) => ({
|
|
5679
5679
|
[Ue]: "axis",
|
|
5680
5680
|
[Qt]: e,
|
|
5681
|
-
...t === void 0 ? {} : { [
|
|
5681
|
+
...t === void 0 ? {} : { [Oi]: String(t) }
|
|
5682
5682
|
}), Sn = (e) => ({
|
|
5683
5683
|
[Ue]: "legend",
|
|
5684
|
-
...
|
|
5685
|
-
}),
|
|
5684
|
+
...Bi(e)
|
|
5685
|
+
}), Hi = (e) => ({
|
|
5686
5686
|
[Ue]: "grid",
|
|
5687
5687
|
[Qt]: e
|
|
5688
|
-
}),
|
|
5688
|
+
}), l0 = (e, t) => {
|
|
5689
5689
|
for (const r of e) {
|
|
5690
5690
|
const n = r.closest(tf);
|
|
5691
5691
|
if (n === null || !t.contains(n)) continue;
|
|
@@ -5698,7 +5698,7 @@ var Ug = ({ segment: e, itemStyle: t }) => {
|
|
|
5698
5698
|
const t = e.getAttribute(Ue);
|
|
5699
5699
|
switch (t) {
|
|
5700
5700
|
case "annotation": {
|
|
5701
|
-
const r = e.getAttribute(
|
|
5701
|
+
const r = e.getAttribute(Mi);
|
|
5702
5702
|
return r === null || r === "" ? null : {
|
|
5703
5703
|
kind: t,
|
|
5704
5704
|
target: {
|
|
@@ -5718,7 +5718,7 @@ var Ug = ({ segment: e, itemStyle: t }) => {
|
|
|
5718
5718
|
},
|
|
5719
5719
|
part: null
|
|
5720
5720
|
};
|
|
5721
|
-
const n = Hr(e,
|
|
5721
|
+
const n = Hr(e, Oi);
|
|
5722
5722
|
return n === null ? null : {
|
|
5723
5723
|
kind: t,
|
|
5724
5724
|
target: {
|
|
@@ -5749,9 +5749,9 @@ var Ug = ({ segment: e, itemStyle: t }) => {
|
|
|
5749
5749
|
default:
|
|
5750
5750
|
return null;
|
|
5751
5751
|
}
|
|
5752
|
-
},
|
|
5752
|
+
}, Di = K(Re.readonly);
|
|
5753
5753
|
function Tt() {
|
|
5754
|
-
return W(
|
|
5754
|
+
return W(Di);
|
|
5755
5755
|
}
|
|
5756
5756
|
var Ne = () => Oe[Tt()].guidePress, of = 0.25, kn = (e) => it() ? null : /* @__PURE__ */ s(af, { ...e }), af = ({ children: e, as: t = "g", ...r }) => {
|
|
5757
5757
|
const n = _h(), o = t;
|
|
@@ -5793,14 +5793,14 @@ var cf = 8, uf = 16, hf = 2, vf = ({ indexedLegends: e, containerRect: t }) => {
|
|
|
5793
5793
|
dashArray: u
|
|
5794
5794
|
}, h.payload.key))
|
|
5795
5795
|
}), o.map((h) => /* @__PURE__ */ s("span", {
|
|
5796
|
-
className:
|
|
5796
|
+
className: De(df, i && "_1oj6yix3"),
|
|
5797
5797
|
style: {
|
|
5798
5798
|
...l,
|
|
5799
5799
|
left: d,
|
|
5800
5800
|
top: h.y,
|
|
5801
5801
|
color: sf(r, h.payload.color)
|
|
5802
5802
|
},
|
|
5803
|
-
...i ? Sn(h.payload.address) :
|
|
5803
|
+
...i ? Sn(h.payload.address) : Bi(h.payload.address),
|
|
5804
5804
|
children: h.payload.label
|
|
5805
5805
|
}, h.payload.key))]
|
|
5806
5806
|
});
|
|
@@ -5827,7 +5827,7 @@ var cf = 8, uf = 16, hf = 2, vf = ({ indexedLegends: e, containerRect: t }) => {
|
|
|
5827
5827
|
return a.length === 0 || t.height <= 0 ? {
|
|
5828
5828
|
placements: [],
|
|
5829
5829
|
hasOverlap: !1
|
|
5830
|
-
} :
|
|
5830
|
+
} : Ms({
|
|
5831
5831
|
items: a,
|
|
5832
5832
|
containerHeight: t.height,
|
|
5833
5833
|
labelHeight: r
|
|
@@ -5854,23 +5854,23 @@ var Fi = (e, t) => ({
|
|
|
5854
5854
|
...e.fill === void 0 ? {} : Je(e.fill, t),
|
|
5855
5855
|
...e.cornerRadius === void 0 ? {} : { borderRadius: Lt(e.cornerRadius) },
|
|
5856
5856
|
...e.shadow === void 0 ? {} : { boxShadow: et(e.shadow) },
|
|
5857
|
-
...
|
|
5858
|
-
}),
|
|
5857
|
+
...Vi(e.strokeWidth, e.stroke)
|
|
5858
|
+
}), Wi = (e, t) => ({
|
|
5859
5859
|
...X(e),
|
|
5860
5860
|
...Fi(e, t),
|
|
5861
5861
|
...e.alpha === void 0 ? {} : { opacity: e.alpha },
|
|
5862
5862
|
paddingInline: e.paddingInline,
|
|
5863
5863
|
paddingBlock: e.paddingBlock
|
|
5864
|
-
}),
|
|
5864
|
+
}), Gi = (e) => e.fill !== void 0 || e.strokeWidth > 0, yf = (e, t, r) => ({
|
|
5865
5865
|
...Je(e.fill, r),
|
|
5866
5866
|
borderRadius: Lt(e.cornerRadius),
|
|
5867
5867
|
paddingInline: e.paddingInline,
|
|
5868
5868
|
paddingBlock: e.paddingBlock,
|
|
5869
5869
|
boxShadow: et(e.shadow),
|
|
5870
5870
|
...e.alpha === void 0 ? {} : { opacity: e.alpha },
|
|
5871
|
-
...
|
|
5871
|
+
...Vi(e.strokeWidth, e.stroke),
|
|
5872
5872
|
...X(t)
|
|
5873
|
-
}),
|
|
5873
|
+
}), Vi = (e, t) => e > 0 && t !== void 0 ? { border: `${e}px solid ${t}` } : {}, xf = "var(--_1kjk02r0)", Af = "_1kjk02r1", bf = {
|
|
5874
5874
|
1: "_1kjk02r2",
|
|
5875
5875
|
2: "_1kjk02r3"
|
|
5876
5876
|
}, wf = {
|
|
@@ -5911,7 +5911,7 @@ var Rf = "_1dw9dgx0", Ar = "\0", Cf = (e, t) => {
|
|
|
5911
5911
|
});
|
|
5912
5912
|
}
|
|
5913
5913
|
return r;
|
|
5914
|
-
},
|
|
5914
|
+
}, zi = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ s(Tf, { pill: e }) : /* @__PURE__ */ s(If, { pill: e }), Lf = ({ color: e, lineType: t, shape: r, label: n, layerId: o, groupValue: a }) => {
|
|
5915
5915
|
const { swatch: i } = I(Et, O()), l = sr(o, a, i.size), d = ir(o, a, e), c = M((h) => St(h.coordSystem)), u = Bf(e, d);
|
|
5916
5916
|
return u ? /* @__PURE__ */ s(Ct, {
|
|
5917
5917
|
shape: r,
|
|
@@ -5946,8 +5946,8 @@ var Rf = "_1dw9dgx0", Ar = "\0", Cf = (e, t) => {
|
|
|
5946
5946
|
opacity: n.alpha
|
|
5947
5947
|
}
|
|
5948
5948
|
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
|
|
5949
|
-
}, Bf = (e, t) => e === void 0 ? void 0 : t, Ao = { [
|
|
5950
|
-
const r = ri(), [n, o] = j(!1), a = O(), i = I(Et, a), l = I(
|
|
5949
|
+
}, Bf = (e, t) => e === void 0 ? void 0 : t, Ao = { [Ni]: "" }, Mf = ({ hiddenPills: e, placement: t }) => {
|
|
5950
|
+
const r = ri(), [n, o] = j(!1), a = O(), i = I(Et, a), l = I(gi, a), d = Ne(), c = ot([i.item.fill, l.popover.fill]), u = c(i.item.fill), h = Wi(i.item, u), g = Of(e.length, i.item), f = g === null ? void 0 : {
|
|
5951
5951
|
...Fi(i.item, u),
|
|
5952
5952
|
opacity: mf * (i.item.alpha ?? 1)
|
|
5953
5953
|
}, { refs: v, floatingStyles: m } = ea({
|
|
@@ -5980,10 +5980,10 @@ var Rf = "_1dw9dgx0", Ar = "\0", Cf = (e, t) => {
|
|
|
5980
5980
|
const p = t === "left" || t === "right", A = g === null ? [] : Array.from({ length: g }, (x, S) => g - S);
|
|
5981
5981
|
return /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ w("div", {
|
|
5982
5982
|
ref: v.setReference,
|
|
5983
|
-
className:
|
|
5983
|
+
className: De(Af, g !== null && p && wf[g], g !== null && !p && bf[g]),
|
|
5984
5984
|
...Ao,
|
|
5985
5985
|
children: [g !== null && A.map((x) => /* @__PURE__ */ s("span", {
|
|
5986
|
-
className:
|
|
5986
|
+
className: De("_1kjk02r6", p ? kf[g] : Sf[g]),
|
|
5987
5987
|
style: {
|
|
5988
5988
|
...f,
|
|
5989
5989
|
...Nf(x, p)
|
|
@@ -6018,21 +6018,21 @@ var Rf = "_1dw9dgx0", Ar = "\0", Cf = (e, t) => {
|
|
|
6018
6018
|
children: /* @__PURE__ */ s("ul", {
|
|
6019
6019
|
className: "_1kjk02re",
|
|
6020
6020
|
children: e.map((x) => /* @__PURE__ */ s("li", {
|
|
6021
|
-
className:
|
|
6021
|
+
className: De("_1kjk02rf", d && "_1kjk02rg"),
|
|
6022
6022
|
style: { gap: i.item.gap },
|
|
6023
6023
|
...d ? Sn(x.address) : void 0,
|
|
6024
|
-
children: /* @__PURE__ */ s(
|
|
6024
|
+
children: /* @__PURE__ */ s(zi, { pill: x })
|
|
6025
6025
|
}, x.key))
|
|
6026
6026
|
})
|
|
6027
6027
|
})] });
|
|
6028
6028
|
}, Of = (e, t) => {
|
|
6029
|
-
if (!
|
|
6029
|
+
if (!Gi(t)) return null;
|
|
6030
6030
|
const r = Math.min(e - 1, 2);
|
|
6031
6031
|
return r === 1 ? 1 : r === 2 ? 2 : null;
|
|
6032
6032
|
}, Nf = (e, t) => {
|
|
6033
6033
|
const r = -e * 4;
|
|
6034
6034
|
return { transform: t ? `translateY(${r}px)` : `translateX(${r}px)` };
|
|
6035
|
-
}, Hf = "_1cecisi0",
|
|
6035
|
+
}, Hf = "_1cecisi0", Df = "_1cecisi1", Ff = "_1cecisi2", Wf = {
|
|
6036
6036
|
start: "_1cecisi3",
|
|
6037
6037
|
center: "_1cecisi4",
|
|
6038
6038
|
end: "_1cecisi5"
|
|
@@ -6041,7 +6041,7 @@ var Rf = "_1dw9dgx0", Ar = "\0", Cf = (e, t) => {
|
|
|
6041
6041
|
left: "_1cecisi7"
|
|
6042
6042
|
}, Vf = "_1cecisi8";
|
|
6043
6043
|
var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
|
|
6044
|
-
const o = Me(), a = je(), i = O(), l = I(
|
|
6044
|
+
const o = Me(), a = je(), i = O(), l = I(gi, i), d = I(Et, i), c = Ce(), u = M((R) => R.coordSystem.type), h = Ne(), g = b(() => Cf(t, (R) => c(R, u)?.swatchShape ?? "square"), [
|
|
6045
6045
|
t,
|
|
6046
6046
|
c,
|
|
6047
6047
|
u
|
|
@@ -6068,7 +6068,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6068
6068
|
font: R,
|
|
6069
6069
|
swatchGap: d.item.gap,
|
|
6070
6070
|
horizontalChrome: P
|
|
6071
|
-
})) + (
|
|
6071
|
+
})) + (Gi(d.item) ? 8 : 0);
|
|
6072
6072
|
return Uf({
|
|
6073
6073
|
pillSizes: $,
|
|
6074
6074
|
overflowPillSize: oe,
|
|
@@ -6085,22 +6085,22 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6085
6085
|
d
|
|
6086
6086
|
]), A = ot([d.item.fill]);
|
|
6087
6087
|
if (g.length === 0) return null;
|
|
6088
|
-
const x = g.slice(0, p.visibleCount), S = g.slice(p.visibleCount), k = p.hasOverflow && S.length > 0, E =
|
|
6088
|
+
const x = g.slice(0, p.visibleCount), S = g.slice(p.visibleCount), k = p.hasOverflow && S.length > 0, E = Wi(d.item, A(d.item.fill));
|
|
6089
6089
|
return /* @__PURE__ */ w("div", {
|
|
6090
|
-
className:
|
|
6091
|
-
[
|
|
6092
|
-
[
|
|
6090
|
+
className: De(Wf[m], Hf, {
|
|
6091
|
+
[Ff]: f,
|
|
6092
|
+
[Df]: !f,
|
|
6093
6093
|
[Gf[e === "left" ? "left" : "right"]]: f
|
|
6094
6094
|
}),
|
|
6095
6095
|
style: { gap: l.gap },
|
|
6096
6096
|
children: [x.map((R) => /* @__PURE__ */ s("div", {
|
|
6097
|
-
className:
|
|
6097
|
+
className: De(Vf, h && "_1cecisi9"),
|
|
6098
6098
|
style: {
|
|
6099
6099
|
...E,
|
|
6100
6100
|
gap: d.item.gap
|
|
6101
6101
|
},
|
|
6102
6102
|
...h ? Sn(R.address) : void 0,
|
|
6103
|
-
children: /* @__PURE__ */ s(
|
|
6103
|
+
children: /* @__PURE__ */ s(zi, { pill: R })
|
|
6104
6104
|
}, R.key)), k && /* @__PURE__ */ s(Mf, {
|
|
6105
6105
|
hiddenPills: S,
|
|
6106
6106
|
placement: Qf(e)
|
|
@@ -6183,7 +6183,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6183
6183
|
}, a);
|
|
6184
6184
|
}) });
|
|
6185
6185
|
}), qf = (e, t, r) => {
|
|
6186
|
-
if (e.type === "cartesian") return
|
|
6186
|
+
if (e.type === "cartesian") return Zs(e, t);
|
|
6187
6187
|
const n = rt(r), o = ie(t.x, e.innerRadius, n), a = ie(t.x, 1, n);
|
|
6188
6188
|
return {
|
|
6189
6189
|
x1: o.x,
|
|
@@ -6240,7 +6240,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6240
6240
|
})
|
|
6241
6241
|
});
|
|
6242
6242
|
}, _f = ({ coordSystem: e, scales: t, primary: r, panelRect: n, guide: o }) => {
|
|
6243
|
-
const a =
|
|
6243
|
+
const a = $s(e, t, r);
|
|
6244
6244
|
return a === null ? null : /* @__PURE__ */ s(En, {
|
|
6245
6245
|
panelRect: n,
|
|
6246
6246
|
children: /* @__PURE__ */ s("rect", {
|
|
@@ -6250,9 +6250,9 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6250
6250
|
})
|
|
6251
6251
|
});
|
|
6252
6252
|
}, ep = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
|
|
6253
|
-
const o =
|
|
6253
|
+
const o = el(e, t);
|
|
6254
6254
|
if (o === null) return null;
|
|
6255
|
-
const a =
|
|
6255
|
+
const a = Fe(o);
|
|
6256
6256
|
return a ? /* @__PURE__ */ s(En, {
|
|
6257
6257
|
panelRect: r,
|
|
6258
6258
|
children: /* @__PURE__ */ s("svg", {
|
|
@@ -6279,13 +6279,13 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6279
6279
|
},
|
|
6280
6280
|
"data-testid": "hover-guide",
|
|
6281
6281
|
children: t
|
|
6282
|
-
}), tp = (e) => e.hoverGuide().resolve(),
|
|
6283
|
-
for (const n of Object.values(
|
|
6282
|
+
}), tp = (e) => e.hoverGuide().resolve(), d0 = (e, t, r) => {
|
|
6283
|
+
for (const n of Object.values(ji)) {
|
|
6284
6284
|
const o = n(e, t, r);
|
|
6285
6285
|
if (o !== null) return o;
|
|
6286
6286
|
}
|
|
6287
6287
|
return null;
|
|
6288
|
-
}, rp = (e) =>
|
|
6288
|
+
}, rp = (e) => ji[e] !== void 0, np = (e, t, r) => Yi(e, r, t / 2), op = (e, t) => {
|
|
6289
6289
|
const r = At(e.start, t), n = At(e.end, t);
|
|
6290
6290
|
return r.x === n.x && r.y === n.y ? null : {
|
|
6291
6291
|
shape: "segment",
|
|
@@ -6305,10 +6305,10 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6305
6305
|
height: n.height
|
|
6306
6306
|
}
|
|
6307
6307
|
};
|
|
6308
|
-
},
|
|
6308
|
+
}, Ft = (e, t) => (r, n, o) => {
|
|
6309
6309
|
const a = e(r).find((i) => i.id === n);
|
|
6310
6310
|
return a === void 0 ? null : t(a, o);
|
|
6311
|
-
},
|
|
6311
|
+
}, Yi = (e, t, r = 0) => {
|
|
6312
6312
|
const n = $r(e, t);
|
|
6313
6313
|
return {
|
|
6314
6314
|
shape: "rect",
|
|
@@ -6319,14 +6319,14 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6319
6319
|
height: n.height + r * 2
|
|
6320
6320
|
}
|
|
6321
6321
|
};
|
|
6322
|
-
},
|
|
6323
|
-
text:
|
|
6324
|
-
shape:
|
|
6325
|
-
image:
|
|
6326
|
-
arrow:
|
|
6322
|
+
}, ji = {
|
|
6323
|
+
text: Ft((e) => e.textAnnotations, ap),
|
|
6324
|
+
shape: Ft((e) => e.shapes, (e, t) => np(e.region, t.readers.annotation.shape(e.id).get("strokeWidth"), t.panel)),
|
|
6325
|
+
image: Ft((e) => e.images, (e, t) => Yi(e.region, t.panel)),
|
|
6326
|
+
arrow: Ft((e) => e.arrows, (e, t) => op(e, t.panel))
|
|
6327
6327
|
}, ip = (e, t) => {
|
|
6328
|
-
const r =
|
|
6329
|
-
return r !== null && rp(r.kind) &&
|
|
6328
|
+
const r = js(e, t);
|
|
6329
|
+
return r !== null && rp(r.kind) && ol(r);
|
|
6330
6330
|
}, sp = 200, lp = ({ engine: e, store: t, overlayRef: r }) => {
|
|
6331
6331
|
const { tolerance: n } = Oe[Tt()], o = _e(t, (i) => i.isQueryOwnedByEditor), a = it();
|
|
6332
6332
|
G(() => {
|
|
@@ -6387,7 +6387,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6387
6387
|
A.setHoverState(t.query(x.cursor, { tolerance: n })), A.setTooltipAnchor(cp(x.tooltip, m));
|
|
6388
6388
|
return;
|
|
6389
6389
|
}
|
|
6390
|
-
const S =
|
|
6390
|
+
const S = Rl(p, m);
|
|
6391
6391
|
A.setHoverState(t.query(S, { tolerance: n })), A.setTooltipAnchor(null);
|
|
6392
6392
|
}, c = () => {
|
|
6393
6393
|
const v = r.getState();
|
|
@@ -6414,7 +6414,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6414
6414
|
e.removeEventListener("pointermove", g), e.removeEventListener("pointerleave", f), document.removeEventListener("pointermove", h), a !== null && cancelAnimationFrame(a), o = null;
|
|
6415
6415
|
};
|
|
6416
6416
|
}, hp = ({ panelRect: e }) => {
|
|
6417
|
-
const { engine: t, store: r, overlayRef: n } = Ke(), o = Te(
|
|
6417
|
+
const { engine: t, store: r, overlayRef: n } = Ke(), o = Te(wi), a = Te(Jv), i = Te((d) => d.caret !== null);
|
|
6418
6418
|
lp({
|
|
6419
6419
|
engine: t,
|
|
6420
6420
|
store: r,
|
|
@@ -6443,7 +6443,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6443
6443
|
}, [e, o]);
|
|
6444
6444
|
}, gr = () => Te((e) => xt(e, "move-drag")?.annotationId ?? xt(e, "shape-resize-drag")?.annotationId ?? xt(e, "arrow-endpoint-drag")?.annotationId ?? null), Bt = (e) => {
|
|
6445
6445
|
const t = M((i) => i.annotations), r = Hv(), n = Wv(), o = ue((i) => wo(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = ue((i) => wo(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
|
|
6446
|
-
return b(() =>
|
|
6446
|
+
return b(() => bl({
|
|
6447
6447
|
annotations: t,
|
|
6448
6448
|
panelRect: e,
|
|
6449
6449
|
measuredBoxes: r,
|
|
@@ -6459,7 +6459,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6459
6459
|
}, wo = (e, t, r, n) => {
|
|
6460
6460
|
const o = [t, ...[...r].sort()].join("\0");
|
|
6461
6461
|
e.has(o) || (e.add(o), console.warn(n));
|
|
6462
|
-
}, fp = 16,
|
|
6462
|
+
}, fp = 16, Ki = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ s("path", {
|
|
6463
6463
|
d: e,
|
|
6464
6464
|
stroke: "transparent",
|
|
6465
6465
|
strokeWidth: Math.max(t, fp),
|
|
@@ -6482,7 +6482,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6482
6482
|
return /* @__PURE__ */ w("g", {
|
|
6483
6483
|
pointerEvents: r ? void 0 : "none",
|
|
6484
6484
|
children: [
|
|
6485
|
-
r && /* @__PURE__ */ s(
|
|
6485
|
+
r && /* @__PURE__ */ s(Ki, {
|
|
6486
6486
|
linePath: e.linePath,
|
|
6487
6487
|
strokeWidth: e.strokeWidth
|
|
6488
6488
|
}),
|
|
@@ -6547,13 +6547,13 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6547
6547
|
};
|
|
6548
6548
|
}, bp = (e, t, r) => {
|
|
6549
6549
|
try {
|
|
6550
|
-
return
|
|
6550
|
+
return Nl(e, t) < pp ? r : t;
|
|
6551
6551
|
} catch {
|
|
6552
6552
|
return r;
|
|
6553
6553
|
}
|
|
6554
6554
|
}, wp = ({ panelRect: e, isEditable: t }) => {
|
|
6555
6555
|
const { arrows: r } = Bt(e), n = gr(), o = O(), a = b(() => r.filter((i) => i.id !== n).flatMap((i) => {
|
|
6556
|
-
const l =
|
|
6556
|
+
const l = fl(o, i.id), d = Ts({
|
|
6557
6557
|
arrow: i,
|
|
6558
6558
|
style: l,
|
|
6559
6559
|
panelWidth: e.width,
|
|
@@ -6598,7 +6598,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6598
6598
|
return /* @__PURE__ */ w("g", {
|
|
6599
6599
|
pointerEvents: o ? void 0 : "none",
|
|
6600
6600
|
children: [
|
|
6601
|
-
o && /* @__PURE__ */ s(
|
|
6601
|
+
o && /* @__PURE__ */ s(Ki, {
|
|
6602
6602
|
linePath: e,
|
|
6603
6603
|
strokeWidth: n
|
|
6604
6604
|
}),
|
|
@@ -6648,7 +6648,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6648
6648
|
})]
|
|
6649
6649
|
});
|
|
6650
6650
|
}, Pp = "_1i8rg6j0", Rp = "75%", Cp = ({ panelRect: e, isEditable: t }) => {
|
|
6651
|
-
const r = eg(), n = Te(
|
|
6651
|
+
const r = eg(), n = Te(wi), o = Sp(), a = b(() => new Set(o.filter((i) => i.kind === "annotation").map((i) => i.id)), [o]);
|
|
6652
6652
|
return r.length === 0 ? null : /* @__PURE__ */ s("g", {
|
|
6653
6653
|
transform: `translate(${e.x}, ${e.y})`,
|
|
6654
6654
|
"data-testid": "difference-arrows",
|
|
@@ -6732,7 +6732,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6732
6732
|
fill: V(t.fill),
|
|
6733
6733
|
fillOpacity: t.fillAlpha,
|
|
6734
6734
|
opacity: t.alpha,
|
|
6735
|
-
stroke:
|
|
6735
|
+
stroke: tl(t) ?? "none",
|
|
6736
6736
|
strokeWidth: t.strokeWidth
|
|
6737
6737
|
});
|
|
6738
6738
|
}, ko = ({ panelRect: e, zOrder: t }) => {
|
|
@@ -6756,13 +6756,13 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6756
6756
|
})
|
|
6757
6757
|
}, i.id))
|
|
6758
6758
|
});
|
|
6759
|
-
}, Mp = "_1aj6s5s0",
|
|
6759
|
+
}, Mp = "_1aj6s5s0", c0 = "_1aj6s5s1", Op = 0.1, u0 = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Ui, {
|
|
6760
6760
|
annotation: e,
|
|
6761
6761
|
panel: t,
|
|
6762
6762
|
style: r,
|
|
6763
6763
|
blockRef: n,
|
|
6764
6764
|
children: /* @__PURE__ */ s(Ze, { content: e.content })
|
|
6765
|
-
}),
|
|
6765
|
+
}), Ui = ({ annotation: e, panel: t, style: r, blockRef: n, children: o }) => {
|
|
6766
6766
|
const a = At(e.at, t);
|
|
6767
6767
|
return /* @__PURE__ */ s("foreignObject", {
|
|
6768
6768
|
x: a.x,
|
|
@@ -6785,7 +6785,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6785
6785
|
const t = Oo(e);
|
|
6786
6786
|
return `translate(${-t.x * 100}%, ${-(1 - t.y) * 100}%)`;
|
|
6787
6787
|
}, Hp = (e) => {
|
|
6788
|
-
const { backgroundColor: t, borderShadow: r } =
|
|
6788
|
+
const { backgroundColor: t, borderShadow: r } = Dp(e), n = [r, e.shadow === void 0 || e.shadow === "none" ? void 0 : et(e.shadow)].filter((o) => o !== void 0);
|
|
6789
6789
|
return {
|
|
6790
6790
|
...X(e),
|
|
6791
6791
|
padding: `${e.paddingBlock}px ${e.paddingInline}px`,
|
|
@@ -6794,16 +6794,16 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6794
6794
|
...t === void 0 ? {} : { backgroundColor: t },
|
|
6795
6795
|
...n.length === 0 ? {} : { boxShadow: n.join(", ") }
|
|
6796
6796
|
};
|
|
6797
|
-
},
|
|
6797
|
+
}, Dp = (e) => {
|
|
6798
6798
|
if (e.fill === "transparent") return {};
|
|
6799
6799
|
const t = V(e.fill), r = e.fillAlpha < 1 ? re(t, e.fillAlpha) : t;
|
|
6800
6800
|
if (e.strokeWidth <= 0) return { backgroundColor: r };
|
|
6801
|
-
const n = e.stroke ??
|
|
6801
|
+
const n = e.stroke ?? oc(t, Op);
|
|
6802
6802
|
return {
|
|
6803
6803
|
backgroundColor: r,
|
|
6804
6804
|
borderShadow: `0 0 0 ${e.strokeWidth}px ${n}`
|
|
6805
6805
|
};
|
|
6806
|
-
},
|
|
6806
|
+
}, Fp = (e) => {
|
|
6807
6807
|
const t = Bt(e).textAnnotations, r = Te((n) => xt(n, "text-resize-drag"));
|
|
6808
6808
|
return b(() => t.map((n) => Wp(n, r)), [t, r]);
|
|
6809
6809
|
}, Wp = (e, t) => t === null || t.annotationId !== e.id ? e : {
|
|
@@ -6814,7 +6814,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6814
6814
|
},
|
|
6815
6815
|
width: t.width
|
|
6816
6816
|
}, Gp = ({ panelRect: e }) => {
|
|
6817
|
-
const t =
|
|
6817
|
+
const t = Fp(e), r = O(), n = gr(), o = t.filter((a) => a.id !== n);
|
|
6818
6818
|
return o.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
6819
6819
|
x: e.x,
|
|
6820
6820
|
y: e.y,
|
|
@@ -6829,13 +6829,13 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6829
6829
|
}, a.id))
|
|
6830
6830
|
});
|
|
6831
6831
|
}, Vp = ({ annotation: e, panel: t, style: r }) => {
|
|
6832
|
-
const n =
|
|
6832
|
+
const n = Fv(e.id), o = Te((i) => i.caret?.annotationId === e.id), { TextAnnotation: a } = bn();
|
|
6833
6833
|
return /* @__PURE__ */ s("g", {
|
|
6834
6834
|
...It({
|
|
6835
6835
|
kind: "annotation",
|
|
6836
6836
|
id: e.id
|
|
6837
6837
|
}),
|
|
6838
|
-
children: /* @__PURE__ */ s(
|
|
6838
|
+
children: /* @__PURE__ */ s(Ui, {
|
|
6839
6839
|
annotation: e,
|
|
6840
6840
|
panel: t,
|
|
6841
6841
|
style: r,
|
|
@@ -6868,7 +6868,7 @@ function Kp(e) {
|
|
|
6868
6868
|
coordSystem: d.coordSystem,
|
|
6869
6869
|
numberFormat: d.config.numberFormat,
|
|
6870
6870
|
parsingLocale: d.config.parsingLocale
|
|
6871
|
-
}))), a = r ?? o.parsingLocale, i = b(() =>
|
|
6871
|
+
}))), a = r ?? o.parsingLocale, i = b(() => Vs({
|
|
6872
6872
|
numberFormat: o.numberFormat,
|
|
6873
6873
|
locale: a
|
|
6874
6874
|
}), [o.numberFormat, a]), l = b(() => (d, c, u) => {
|
|
@@ -6879,7 +6879,7 @@ function Kp(e) {
|
|
|
6879
6879
|
text: f
|
|
6880
6880
|
};
|
|
6881
6881
|
}, [t, n]);
|
|
6882
|
-
return b(() =>
|
|
6882
|
+
return b(() => cl({
|
|
6883
6883
|
pinnedNumbers: o.pinnedNumbers,
|
|
6884
6884
|
comments: o.comments,
|
|
6885
6885
|
panelRect: e,
|
|
@@ -6899,7 +6899,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
6899
6899
|
const { pinnedNumbers: t, comments: r } = M(se((v) => ({
|
|
6900
6900
|
pinnedNumbers: v.annotations.pinnedNumbers,
|
|
6901
6901
|
comments: v.annotations.comments
|
|
6902
|
-
}))), n = M((v) => v.coordSystem), o = Ce(), a =
|
|
6902
|
+
}))), n = M((v) => v.coordSystem), o = Ce(), a = Ql(10), i = O(), l = Kp(e), { store: d } = Ke(), c = b(() => {
|
|
6903
6903
|
const v = /* @__PURE__ */ new Map();
|
|
6904
6904
|
for (const m of t) v.set(m.id, m.at);
|
|
6905
6905
|
for (const m of r) v.set(m.id, m.at);
|
|
@@ -6917,7 +6917,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
6917
6917
|
t,
|
|
6918
6918
|
r,
|
|
6919
6919
|
i
|
|
6920
|
-
]), g = b(() =>
|
|
6920
|
+
]), g = b(() => Ss(l, e), [l, e]), f = ot([...h.values()].map((v) => v.label.fill));
|
|
6921
6921
|
return G(() => {
|
|
6922
6922
|
const v = d.getState();
|
|
6923
6923
|
return v.publishPointerRegions(Po, g), () => {
|
|
@@ -7046,7 +7046,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7046
7046
|
} : {
|
|
7047
7047
|
width: t * e,
|
|
7048
7048
|
height: t
|
|
7049
|
-
}, om = "_1agclyl0", am = "_1agclyl1", im = "_1agclyl2",
|
|
7049
|
+
}, om = "_1agclyl0", am = "_1agclyl1", im = "_1agclyl2", Qi = ({ x: e, y: t, width: r, height: n, text: o, isRotated: a, labelRole: i, position: l, coordType: d, backdropColor: c }) => {
|
|
7050
7050
|
const u = O(), h = I(vr, u), g = I(gv, u), f = a ? `rotate(-90 ${e} ${t})` : void 0, v = h[i][l], m = v.stroke !== void 0 && (v.strokeWidth ?? 0) > 0, p = dm(i, d, v), A = lm(v, p, c, g), x = {
|
|
7051
7051
|
x: e - r / 2,
|
|
7052
7052
|
y: t - n / 2,
|
|
@@ -7091,7 +7091,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7091
7091
|
if (r === void 0) return;
|
|
7092
7092
|
const o = t && e.fill !== void 0 ? V(e.fill) : void 0, a = o === void 0 ? void 0 : mr(void 0, o);
|
|
7093
7093
|
if (a !== void 0) return a;
|
|
7094
|
-
const i = mr(r, n) ??
|
|
7094
|
+
const i = mr(r, n) ?? gl(r);
|
|
7095
7095
|
if (i !== void 0)
|
|
7096
7096
|
return mr(o, i);
|
|
7097
7097
|
}, dm = (e, t, r) => r.fill === void 0 ? !1 : e === "aggregate" || t === "cartesian", cm = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
|
|
@@ -7101,7 +7101,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7101
7101
|
axes: v.guides.axes,
|
|
7102
7102
|
numberFormat: v.config.numberFormat,
|
|
7103
7103
|
parsingLocale: v.config.parsingLocale
|
|
7104
|
-
}))), l = O(), d = tn(), c = I(vr, l), u = b(() =>
|
|
7104
|
+
}))), l = O(), d = tn(), c = I(vr, l), u = b(() => fi({
|
|
7105
7105
|
textMeasurer: o,
|
|
7106
7106
|
dataLabelStyles: c,
|
|
7107
7107
|
familyDefault: a.fonts.familyDefault
|
|
@@ -7109,7 +7109,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7109
7109
|
o,
|
|
7110
7110
|
c,
|
|
7111
7111
|
a.fonts.familyDefault
|
|
7112
|
-
]), h = b(() =>
|
|
7112
|
+
]), h = b(() => ks({
|
|
7113
7113
|
...i,
|
|
7114
7114
|
panelRect: e,
|
|
7115
7115
|
measureDataLabel: u,
|
|
@@ -7127,16 +7127,16 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7127
7127
|
r,
|
|
7128
7128
|
n,
|
|
7129
7129
|
d
|
|
7130
|
-
]), g =
|
|
7130
|
+
]), g = D("");
|
|
7131
7131
|
G(() => {
|
|
7132
7132
|
if (h.warnings.length === 0) {
|
|
7133
7133
|
g.current = "";
|
|
7134
7134
|
return;
|
|
7135
7135
|
}
|
|
7136
7136
|
const v = JSON.stringify(h.warnings);
|
|
7137
|
-
v !== g.current && (g.current = v,
|
|
7137
|
+
v !== g.current && (g.current = v, Dl(h.warnings));
|
|
7138
7138
|
}, [h.warnings]);
|
|
7139
|
-
const f = h.labels.map((v, m) => /* @__PURE__ */ s(
|
|
7139
|
+
const f = h.labels.map((v, m) => /* @__PURE__ */ s(Qi, {
|
|
7140
7140
|
x: v.x,
|
|
7141
7141
|
y: v.y,
|
|
7142
7142
|
width: v.width,
|
|
@@ -7385,7 +7385,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7385
7385
|
children: u
|
|
7386
7386
|
});
|
|
7387
7387
|
}, Sm = ({ formattedAxis: e, rect: t }) => {
|
|
7388
|
-
const r = e.position === "bottom" || e.position === "top", n = Ae(e.scaleAestheticKey), o = O(), a = I(yn, o)(n, e.position), i = I(
|
|
7388
|
+
const r = e.position === "bottom" || e.position === "top", n = Ae(e.scaleAestheticKey), o = O(), a = I(yn, o)(n, e.position), i = I(vi, o)[n], l = Ne(), d = b(() => ({
|
|
7389
7389
|
width: t.width,
|
|
7390
7390
|
height: t.height
|
|
7391
7391
|
}), [t.width, t.height]), c = r ? t.width : t.height, u = b(() => l ? gm(e.ticks.map((h) => h.position), c) : void 0, [
|
|
@@ -7456,7 +7456,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7456
7456
|
};
|
|
7457
7457
|
}
|
|
7458
7458
|
}, Em = ({ axes: e, rects: t }) => {
|
|
7459
|
-
const r = I(
|
|
7459
|
+
const r = I(hi, O()), n = Ne();
|
|
7460
7460
|
return /* @__PURE__ */ s(T, { children: e.map((o) => {
|
|
7461
7461
|
const a = t[o.position];
|
|
7462
7462
|
return !a || !o.isVisible ? null : /* @__PURE__ */ s(Pm, {
|
|
@@ -7489,7 +7489,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7489
7489
|
}) }), Cm = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ s(Em, {
|
|
7490
7490
|
axes: e.filter((r) => r.geometry === "linear"),
|
|
7491
7491
|
rects: t
|
|
7492
|
-
}),
|
|
7492
|
+
}), Xi = {
|
|
7493
7493
|
strokeDashoffset: "0",
|
|
7494
7494
|
strokeLinecap: "round"
|
|
7495
7495
|
}, Lm = 1.5, Im = ({ strokeWidth: e, dashArray: t }) => t[0] === 0 ? Math.max(e, Lm) : e, Xt = (e, t) => e.gridLine[t]().resolve(), Tm = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
|
|
@@ -7530,13 +7530,13 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7530
7530
|
}
|
|
7531
7531
|
const k = /* @__PURE__ */ s("line", {
|
|
7532
7532
|
...S,
|
|
7533
|
-
...
|
|
7533
|
+
...Xi,
|
|
7534
7534
|
strokeDasharray: v,
|
|
7535
7535
|
strokeWidth: f,
|
|
7536
7536
|
stroke: h.stroke
|
|
7537
7537
|
});
|
|
7538
7538
|
return a ? /* @__PURE__ */ w("g", {
|
|
7539
|
-
...
|
|
7539
|
+
...Hi(u.scaleAestheticKey),
|
|
7540
7540
|
children: [k, /* @__PURE__ */ s("line", {
|
|
7541
7541
|
...S,
|
|
7542
7542
|
stroke: "transparent",
|
|
@@ -7551,7 +7551,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7551
7551
|
}, Bm = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, Mm = ({ sizes: e, panelFrameRect: t }) => {
|
|
7552
7552
|
const r = M((a) => a.coordSystem.type === "polar"), n = I(Xo, O());
|
|
7553
7553
|
if (r) return null;
|
|
7554
|
-
const o =
|
|
7554
|
+
const o = Ns(n, {
|
|
7555
7555
|
x: e.left / 2,
|
|
7556
7556
|
y: e.top / 2,
|
|
7557
7557
|
width: t.width - (e.left + e.right) / 2,
|
|
@@ -7570,7 +7570,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7570
7570
|
stroke: a.stroke,
|
|
7571
7571
|
strokeDasharray: ve(a.dashArray, a.strokeWidth),
|
|
7572
7572
|
strokeWidth: a.strokeWidth,
|
|
7573
|
-
...
|
|
7573
|
+
...Xi
|
|
7574
7574
|
}, i))
|
|
7575
7575
|
});
|
|
7576
7576
|
}, Om = (e) => e.map((t) => {
|
|
@@ -7587,7 +7587,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
|
|
|
7587
7587
|
return "Z";
|
|
7588
7588
|
}
|
|
7589
7589
|
}).join(" ");
|
|
7590
|
-
var
|
|
7590
|
+
var qi = (e, t) => {
|
|
7591
7591
|
const r = M((d) => d.coordSystem);
|
|
7592
7592
|
if (r.type !== "polar") return null;
|
|
7593
7593
|
const n = t.find((d) => d.geometry === "circular");
|
|
@@ -7599,13 +7599,13 @@ var Xi = (e, t) => {
|
|
|
7599
7599
|
radialAxis: t.find((d) => d.geometry === "radial"),
|
|
7600
7600
|
innerRadius: o,
|
|
7601
7601
|
startAngle: a,
|
|
7602
|
-
angleFor: (d) =>
|
|
7602
|
+
angleFor: (d) => hl(d, a, i),
|
|
7603
7603
|
radiusNormFor: (d) => o + d * (1 - o)
|
|
7604
7604
|
};
|
|
7605
7605
|
}, Nm = 16, Hm = ({ formattedAxes: e, panelRect: t }) => {
|
|
7606
|
-
const r = I(yn, O()), n = Ne(), o =
|
|
7606
|
+
const r = I(yn, O()), n = Ne(), o = qi(t, e);
|
|
7607
7607
|
if (!o) return null;
|
|
7608
|
-
const { circle: a, circularAxis: i, radialAxis: l, startAngle: d, angleFor: c, radiusNormFor: u } = o, h =
|
|
7608
|
+
const { circle: a, circularAxis: i, radialAxis: l, startAngle: d, angleFor: c, radiusNormFor: u } = o, h = Dm(l, u, a.radius), g = (f) => r(Ae(f.scaleAestheticKey));
|
|
7609
7609
|
return /* @__PURE__ */ w("svg", {
|
|
7610
7610
|
x: t.x,
|
|
7611
7611
|
y: t.y,
|
|
@@ -7622,11 +7622,11 @@ var Xi = (e, t) => {
|
|
|
7622
7622
|
isHitTestable: n
|
|
7623
7623
|
}, `radial-label-${v}`)), i.isVisible && i.ticks.map((f, v) => {
|
|
7624
7624
|
if (f.position >= 1 - 1e-9) return null;
|
|
7625
|
-
const m = c(f.position), p = ie(m, (a.radius +
|
|
7625
|
+
const m = c(f.position), p = ie(m, (a.radius + ps) / a.radius, a);
|
|
7626
7626
|
return /* @__PURE__ */ s(Co, {
|
|
7627
7627
|
scaleAestheticKey: i.scaleAestheticKey,
|
|
7628
7628
|
tickIndex: v,
|
|
7629
|
-
placement: Lo(p,
|
|
7629
|
+
placement: Lo(p, Fm(m)),
|
|
7630
7630
|
label: f.formattedLabel,
|
|
7631
7631
|
labelStyle: g(i),
|
|
7632
7632
|
isHitTestable: n
|
|
@@ -7645,7 +7645,7 @@ var Xi = (e, t) => {
|
|
|
7645
7645
|
cursor: "pointer",
|
|
7646
7646
|
children: i
|
|
7647
7647
|
}) : i;
|
|
7648
|
-
},
|
|
7648
|
+
}, Dm = (e, t, r) => {
|
|
7649
7649
|
if (!e) return [];
|
|
7650
7650
|
const n = [];
|
|
7651
7651
|
let o = Number.NEGATIVE_INFINITY;
|
|
@@ -7666,11 +7666,11 @@ var Xi = (e, t) => {
|
|
|
7666
7666
|
textAnchor: t,
|
|
7667
7667
|
dominantBaseline: "central",
|
|
7668
7668
|
transform: void 0
|
|
7669
|
-
}),
|
|
7669
|
+
}), Fm = (e) => {
|
|
7670
7670
|
const t = Math.sin(e);
|
|
7671
7671
|
return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
|
|
7672
7672
|
}, Wm = ({ formattedAxes: e, panelRect: t }) => {
|
|
7673
|
-
const r = O(), n = Ne(), o = I(Xt, r, "y"), a = I(Xt, r, "x"), i =
|
|
7673
|
+
const r = O(), n = Ne(), o = I(Xt, r, "y"), a = I(Xt, r, "x"), i = qi(t, e);
|
|
7674
7674
|
if (!i) return null;
|
|
7675
7675
|
const { circle: l, circularAxis: d, radialAxis: c, innerRadius: u, angleFor: h, radiusNormFor: g } = i;
|
|
7676
7676
|
return /* @__PURE__ */ w("svg", {
|
|
@@ -7733,7 +7733,7 @@ var Xi = (e, t) => {
|
|
|
7733
7733
|
strokeWidth: t.strokeWidth
|
|
7734
7734
|
});
|
|
7735
7735
|
return r ? /* @__PURE__ */ w("g", {
|
|
7736
|
-
...
|
|
7736
|
+
...Hi(e),
|
|
7737
7737
|
children: [o, n({
|
|
7738
7738
|
stroke: "transparent",
|
|
7739
7739
|
strokeWidth: 7,
|
|
@@ -7742,7 +7742,7 @@ var Xi = (e, t) => {
|
|
|
7742
7742
|
})]
|
|
7743
7743
|
}) : o;
|
|
7744
7744
|
}, Gm = ({ layer: e, isDimmed: t, dimStyle: r, ...n }) => {
|
|
7745
|
-
const o =
|
|
7745
|
+
const o = ci(e.id), a = Gl(e, F(e)), i = t ? r.filter : void 0, l = a && i ? `${a} ${i}` : a || i, d = o?.type === "fade", c = b(() => ({
|
|
7746
7746
|
layerId: e.id,
|
|
7747
7747
|
paintsShadow: a !== void 0,
|
|
7748
7748
|
isFading: d
|
|
@@ -7770,7 +7770,7 @@ var Xi = (e, t) => {
|
|
|
7770
7770
|
children: u
|
|
7771
7771
|
}) : u;
|
|
7772
7772
|
}, Vm = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, formattingLocale: n, panelRect: o }) => {
|
|
7773
|
-
const a = Ce(), i =
|
|
7773
|
+
const a = Ce(), i = ci(e.id), { colorScheme: l } = ee(), d = F(e), c = a(e.geom, t.type);
|
|
7774
7774
|
if (c === null) return null;
|
|
7775
7775
|
const u = cr(c.render);
|
|
7776
7776
|
return u.overlay ? null : u.fn({
|
|
@@ -7812,7 +7812,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7812
7812
|
t,
|
|
7813
7813
|
o,
|
|
7814
7814
|
n
|
|
7815
|
-
]), { colorScheme: u } = ee(), h =
|
|
7815
|
+
]), { colorScheme: u } = ee(), h = F(t), g = O(), f = b(() => zs(t), [t]), v = b(() => Ws({
|
|
7816
7816
|
layer: t,
|
|
7817
7817
|
numberFormat: d,
|
|
7818
7818
|
locale: l
|
|
@@ -7870,7 +7870,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7870
7870
|
size: a * 2,
|
|
7871
7871
|
fill: n,
|
|
7872
7872
|
"data-testid": "highlight-overlay-dot"
|
|
7873
|
-
}), v !== null && m !== null && /* @__PURE__ */ s(
|
|
7873
|
+
}), v !== null && m !== null && /* @__PURE__ */ s(Qi, {
|
|
7874
7874
|
x: h * r.width,
|
|
7875
7875
|
y: g * r.height - a - Ym - m.height / 2,
|
|
7876
7876
|
width: m.width,
|
|
@@ -7884,7 +7884,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7884
7884
|
}, Um = (e, t) => {
|
|
7885
7885
|
const r = e[ne.group];
|
|
7886
7886
|
return `${String(r ?? "")}\0${t}`;
|
|
7887
|
-
}, Io = 64,
|
|
7887
|
+
}, Io = 64, Dr = ({ overlay: e, panelRect: t, children: r }) => {
|
|
7888
7888
|
const n = U(), o = U(), { fillFor: a, defs: i } = le({ paints: e }), l = /* @__PURE__ */ s("g", {
|
|
7889
7889
|
id: n,
|
|
7890
7890
|
children: r
|
|
@@ -7916,8 +7916,8 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7916
7916
|
}, u))
|
|
7917
7917
|
})
|
|
7918
7918
|
] });
|
|
7919
|
-
}, To = [],
|
|
7920
|
-
const n =
|
|
7919
|
+
}, To = [], Ji = (e, t, r) => {
|
|
7920
|
+
const n = F(e);
|
|
7921
7921
|
return b(() => {
|
|
7922
7922
|
const [o] = e.data, a = r ?? o;
|
|
7923
7923
|
return a === void 0 ? To : n.get("overlay", a, t) ?? To;
|
|
@@ -7932,10 +7932,10 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7932
7932
|
primary: v.hover.primary,
|
|
7933
7933
|
group: v.hover.group,
|
|
7934
7934
|
related: v.hover.related
|
|
7935
|
-
}))), i = Ce(), { colorScheme: l } = ee(), d =
|
|
7935
|
+
}))), i = Ce(), { colorScheme: l } = ee(), d = F(e), c = Oe[Tt()].hoverPaint, u = n?.layerId === e.id, h = a.get(e.id) ?? [], g = Ji(e, u ? "hovered" : void 0, u ? n.observation : void 0);
|
|
7936
7936
|
if (!c || n === null) return null;
|
|
7937
7937
|
const f = i(e.geom, t.type);
|
|
7938
|
-
return f === null ||
|
|
7938
|
+
return f === null || Wu(f) ? null : u ? /* @__PURE__ */ s(Dr, {
|
|
7939
7939
|
overlay: g,
|
|
7940
7940
|
panelRect: r,
|
|
7941
7941
|
children: f.renderHover({
|
|
@@ -7948,7 +7948,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7948
7948
|
colorScheme: l,
|
|
7949
7949
|
styleReaders: d
|
|
7950
7950
|
})
|
|
7951
|
-
}) : h.length === 0 ? null : /* @__PURE__ */ s(
|
|
7951
|
+
}) : h.length === 0 ? null : /* @__PURE__ */ s(Dr, {
|
|
7952
7952
|
overlay: g,
|
|
7953
7953
|
panelRect: r,
|
|
7954
7954
|
children: f.renderHoverCompanions({
|
|
@@ -7961,7 +7961,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7961
7961
|
})
|
|
7962
7962
|
});
|
|
7963
7963
|
}, Xm = (e) => {
|
|
7964
|
-
const t =
|
|
7964
|
+
const t = F(e);
|
|
7965
7965
|
return b(() => {
|
|
7966
7966
|
const [r] = e.data;
|
|
7967
7967
|
if (r === void 0) return {
|
|
@@ -7971,7 +7971,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7971
7971
|
const n = t.resolveState("dimmed", r);
|
|
7972
7972
|
return {
|
|
7973
7973
|
opacity: n.alpha,
|
|
7974
|
-
filter: la(
|
|
7974
|
+
filter: la(dl(n))
|
|
7975
7975
|
};
|
|
7976
7976
|
}, [e, t]);
|
|
7977
7977
|
}, qm = "var(--to1jkx0)", Jm = "var(--to1jkx1)", Zm = "to1jkx2", $m = "to1jkx3", _m = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
|
|
@@ -8007,19 +8007,19 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8007
8007
|
a,
|
|
8008
8008
|
e,
|
|
8009
8009
|
t
|
|
8010
|
-
]), l = e.highlight, d = Xm(e), c =
|
|
8010
|
+
]), l = e.highlight, d = Xm(e), c = Ji(e), { colorScheme: u } = ee(), h = {
|
|
8011
8011
|
layer: e,
|
|
8012
8012
|
coordSystem: t,
|
|
8013
8013
|
shouldAnimateTransitions: r,
|
|
8014
8014
|
formattingLocale: o,
|
|
8015
8015
|
panelRect: n,
|
|
8016
8016
|
colorScheme: u,
|
|
8017
|
-
styleReaders:
|
|
8017
|
+
styleReaders: F(e)
|
|
8018
8018
|
}, g = i ? cr(i.render) : null, f = e.spatialKind === "render-hit-test", v = d.opacity !== void 0 || d.filter !== void 0;
|
|
8019
8019
|
return /* @__PURE__ */ s("g", {
|
|
8020
8020
|
className: v ? $m : void 0,
|
|
8021
8021
|
style: v ? ty(d) : void 0,
|
|
8022
|
-
children: /* @__PURE__ */ w(
|
|
8022
|
+
children: /* @__PURE__ */ w(Dr, {
|
|
8023
8023
|
overlay: g?.overlay ? [] : c,
|
|
8024
8024
|
panelRect: n,
|
|
8025
8025
|
children: [
|
|
@@ -8032,11 +8032,11 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8032
8032
|
formattingLocale: o,
|
|
8033
8033
|
panelRect: n
|
|
8034
8034
|
}),
|
|
8035
|
-
f && !g?.overlay && i?.hitTest && /* @__PURE__ */ s(
|
|
8035
|
+
f && !g?.overlay && i?.hitTest && /* @__PURE__ */ s(Xu, {
|
|
8036
8036
|
hitTest: i.hitTest,
|
|
8037
8037
|
input: h
|
|
8038
8038
|
}),
|
|
8039
|
-
f && g?.overlay && /* @__PURE__ */ s(
|
|
8039
|
+
f && g?.overlay && /* @__PURE__ */ s(nh, {
|
|
8040
8040
|
render: g.fn,
|
|
8041
8041
|
input: h
|
|
8042
8042
|
}),
|
|
@@ -8054,9 +8054,9 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8054
8054
|
})
|
|
8055
8055
|
});
|
|
8056
8056
|
}, ny = "_17uhij30", oy = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: d, plotBottomY: c, isFooterChromeReserved: u, isEditable: h, showAnnotations: g }) => {
|
|
8057
|
-
const f =
|
|
8057
|
+
const f = D(null);
|
|
8058
8058
|
gp(f);
|
|
8059
|
-
const v = xe("Grid", Tm), m = xe("AxisTicks", Rm), p = xe("AxisLabel", Cm), A = b(() =>
|
|
8059
|
+
const v = xe("Grid", Tm), m = xe("AxisTicks", Rm), p = xe("AxisLabel", Cm), A = b(() => Fr(n, t), [n, t]), x = b(() => Fr(o, t), [o, t]), S = b(() => Bo(a, t), [a, t]), k = b(() => Bo(i, t), [i, t]), E = it(), R = g && !E;
|
|
8060
8060
|
return /* @__PURE__ */ w("svg", {
|
|
8061
8061
|
ref: f,
|
|
8062
8062
|
className: ny,
|
|
@@ -8134,14 +8134,14 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8134
8134
|
/* @__PURE__ */ s(hp, { panelRect: x })
|
|
8135
8135
|
]
|
|
8136
8136
|
});
|
|
8137
|
-
},
|
|
8137
|
+
}, Fr = (e, t) => ({
|
|
8138
8138
|
x: e.x - t.x,
|
|
8139
8139
|
y: e.y - t.y,
|
|
8140
8140
|
width: e.width,
|
|
8141
8141
|
height: e.height
|
|
8142
8142
|
}), Bo = (e, t) => {
|
|
8143
8143
|
const r = {};
|
|
8144
|
-
for (const [n, o] of Object.entries(e)) r[n] =
|
|
8144
|
+
for (const [n, o] of Object.entries(e)) r[n] = Fr(o, t);
|
|
8145
8145
|
return r;
|
|
8146
8146
|
}, ay = (e) => {
|
|
8147
8147
|
let t, r;
|
|
@@ -8150,10 +8150,10 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8150
8150
|
height: Mo(r, "height")
|
|
8151
8151
|
};
|
|
8152
8152
|
}, Mo = (e, t) => {
|
|
8153
|
-
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new
|
|
8153
|
+
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new gs({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
|
|
8154
8154
|
return e;
|
|
8155
8155
|
}, iy = ({ sizing: e, onResize: t, children: r }) => {
|
|
8156
|
-
const n = ei({ onResize: t }), o =
|
|
8156
|
+
const n = ei({ onResize: t }), o = D(!1);
|
|
8157
8157
|
if (G(() => {
|
|
8158
8158
|
e.mode === "responsive" && (n.isDefault || n.width > 0 && n.height > 0 || o.current || (o.current = !0, console.warn(`[graphy] ZERO_SIZE_CONTAINER: GraphRenderer measured ${n.width}×${n.height}; the chart will not paint until the host has a positive width and height.`)));
|
|
8159
8159
|
}, [
|
|
@@ -8225,7 +8225,7 @@ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8225
8225
|
}
|
|
8226
8226
|
}, dy = () => {
|
|
8227
8227
|
const [e, t] = j(null), [r, n] = j(null), [o, a] = j(Sr);
|
|
8228
|
-
return
|
|
8228
|
+
return Ll(() => {
|
|
8229
8229
|
const i = () => {
|
|
8230
8230
|
const d = e ? {
|
|
8231
8231
|
width: e.offsetWidth,
|
|
@@ -8318,10 +8318,10 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8318
8318
|
]
|
|
8319
8319
|
})
|
|
8320
8320
|
});
|
|
8321
|
-
}, py = (e, t) => e ? { backgroundColor: "transparent" } : t === void 0 || t >= 1 ? {} : { backgroundColor: `color-mix(in srgb, ${y.graphBackground} ${t * 100}%, transparent)` },
|
|
8321
|
+
}, py = (e, t) => e ? { backgroundColor: "transparent" } : t === void 0 || t >= 1 ? {} : { backgroundColor: `color-mix(in srgb, ${y.graphBackground} ${t * 100}%, transparent)` }, h0 = (e) => /* @__PURE__ */ s(wh, {
|
|
8322
8322
|
locale: Ov(),
|
|
8323
8323
|
children: /* @__PURE__ */ s(my, { ...e })
|
|
8324
|
-
}), my = ({ slots: e, sizing: t = ly, onResize: r, ...n }) => /* @__PURE__ */ s(
|
|
8324
|
+
}), my = ({ slots: e, sizing: t = ly, onResize: r, ...n }) => /* @__PURE__ */ s(Uu, { children: /* @__PURE__ */ s(kc, { children: /* @__PURE__ */ s(Wc, {
|
|
8325
8325
|
slots: e,
|
|
8326
8326
|
children: /* @__PURE__ */ s(iy, {
|
|
8327
8327
|
sizing: t,
|
|
@@ -8345,7 +8345,7 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8345
8345
|
headlineConfig: de.config.headline,
|
|
8346
8346
|
content: de.config.content,
|
|
8347
8347
|
overflowStrategy: de.config.panel.overflow
|
|
8348
|
-
}))), { intro: x, transitions: S } =
|
|
8348
|
+
}))), { intro: x, transitions: S } = dh(r, c), { headerRef: k, footerRef: E, measurements: R } = dy(), { formattingLocale: L, colorScheme: P } = ee(), B = Oe[i], N = B.editorSurface, [$, oe] = j(null), Q = xe("Header", Tg), Le = xe("Footer", kg), Zi = xe("Legend", Xf), $i = xe("Headline", $g), _i = xe("EditorSurface", uy), Rn = b(() => Us({
|
|
8349
8349
|
legends: d,
|
|
8350
8350
|
numberFormat: u,
|
|
8351
8351
|
parsingLocale: h,
|
|
@@ -8355,7 +8355,7 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8355
8355
|
u,
|
|
8356
8356
|
h,
|
|
8357
8357
|
L
|
|
8358
|
-
]), st = b(() =>
|
|
8358
|
+
]), st = b(() => Ks({
|
|
8359
8359
|
headline: v,
|
|
8360
8360
|
show: m.show,
|
|
8361
8361
|
numberFormat: u,
|
|
@@ -8369,7 +8369,7 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8369
8369
|
h,
|
|
8370
8370
|
L,
|
|
8371
8371
|
a
|
|
8372
|
-
]),
|
|
8372
|
+
]), es = Me(), ke = O(), Cn = I(xy, ke), Ln = I(Xo, ke), In = I(xn, ke), Tn = I(Ay, ke), ts = I(by, ke), rs = I(wy, ke), ns = I(Sy, ke), { fontFamily: fr, textScale: os, strokeWidth: pr, fill: as } = Cn, Bn = b(() => Ta(P, {}, fr), [P, fr]), lt = b(() => ({
|
|
8373
8373
|
width: Math.max(0, e - 2 * pr),
|
|
8374
8374
|
height: Math.max(0, t - 2 * pr)
|
|
8375
8375
|
}), [
|
|
@@ -8380,7 +8380,7 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8380
8380
|
p.brandMark.enabled,
|
|
8381
8381
|
p.brandMark.variant,
|
|
8382
8382
|
lt
|
|
8383
|
-
]),
|
|
8383
|
+
]), is = p.brandMark.placement === "footer" ? Mn : "hidden", ss = p.brandMark.placement === "header" ? Mn : "hidden", Qe = b(() => st ? {
|
|
8384
8384
|
formatted: st,
|
|
8385
8385
|
size: m.size,
|
|
8386
8386
|
position: m.position,
|
|
@@ -8391,10 +8391,10 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8391
8391
|
m.position,
|
|
8392
8392
|
f
|
|
8393
8393
|
]), Mt = Iv({
|
|
8394
|
-
textMeasurer:
|
|
8394
|
+
textMeasurer: es,
|
|
8395
8395
|
metrics: Bn,
|
|
8396
|
-
overrides:
|
|
8397
|
-
}), On = b(() =>
|
|
8396
|
+
overrides: Gc()
|
|
8397
|
+
}), On = b(() => Hs(Ln), [Ln]), dt = Tv({
|
|
8398
8398
|
measurer: Mt,
|
|
8399
8399
|
axes: l,
|
|
8400
8400
|
numberFormat: u,
|
|
@@ -8409,9 +8409,9 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8409
8409
|
coordSystem: f,
|
|
8410
8410
|
overflowStrategy: A,
|
|
8411
8411
|
panelBorder: On,
|
|
8412
|
-
padding: I(
|
|
8413
|
-
margins: I(
|
|
8414
|
-
}), Ot = b(() => !dt || !Qe || !Mt ? null :
|
|
8412
|
+
padding: I(wl, ke),
|
|
8413
|
+
margins: I(xl, ke)
|
|
8414
|
+
}), Ot = b(() => !dt || !Qe || !Mt ? null : Sl({
|
|
8415
8415
|
headline: Qe,
|
|
8416
8416
|
layout: dt.layout,
|
|
8417
8417
|
containerSize: lt,
|
|
@@ -8425,16 +8425,16 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8425
8425
|
In.gap
|
|
8426
8426
|
]);
|
|
8427
8427
|
if (!dt) return null;
|
|
8428
|
-
const { layout: ae, formattedAxes: Nn, plotBottomY:
|
|
8429
|
-
return /* @__PURE__ */ s(
|
|
8428
|
+
const { layout: ae, formattedAxes: Nn, plotBottomY: ls } = dt, ds = ae.footer.height > 0;
|
|
8429
|
+
return /* @__PURE__ */ s(Di.Provider, {
|
|
8430
8430
|
value: i,
|
|
8431
8431
|
children: /* @__PURE__ */ s(Mh, {
|
|
8432
8432
|
colorScheme: P,
|
|
8433
|
-
textScale:
|
|
8434
|
-
graphBackground: V(
|
|
8433
|
+
textScale: os,
|
|
8434
|
+
graphBackground: V(as),
|
|
8435
8435
|
graphFontFamily: fr,
|
|
8436
8436
|
headingFontFamily: Tn.fontFamily,
|
|
8437
|
-
children: /* @__PURE__ */ s(
|
|
8437
|
+
children: /* @__PURE__ */ s(yc, {
|
|
8438
8438
|
metrics: Bn,
|
|
8439
8439
|
children: /* @__PURE__ */ s(Nv, { children: /* @__PURE__ */ s(_v, {
|
|
8440
8440
|
panelRect: ae.panel,
|
|
@@ -8460,8 +8460,8 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8460
8460
|
subtitle: p.subtitle,
|
|
8461
8461
|
isSubtitleVisible: p.isSubtitleVisible,
|
|
8462
8462
|
headingStyle: Tn,
|
|
8463
|
-
subtitleStyle:
|
|
8464
|
-
brandMark:
|
|
8463
|
+
subtitleStyle: ts,
|
|
8464
|
+
brandMark: ss
|
|
8465
8465
|
}),
|
|
8466
8466
|
/* @__PURE__ */ s(oy, {
|
|
8467
8467
|
formattedAxes: Nn,
|
|
@@ -8473,8 +8473,8 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8473
8473
|
axisLabelRects: ae.axisLabels,
|
|
8474
8474
|
shouldAnimateTransitions: S,
|
|
8475
8475
|
formattingLocale: L ?? h,
|
|
8476
|
-
plotBottomY:
|
|
8477
|
-
isFooterChromeReserved:
|
|
8476
|
+
plotBottomY: ls,
|
|
8477
|
+
isFooterChromeReserved: ds,
|
|
8478
8478
|
isEditable: N,
|
|
8479
8479
|
showAnnotations: B.annotations
|
|
8480
8480
|
}),
|
|
@@ -8486,22 +8486,22 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8486
8486
|
isCaptionVisible: p.isCaptionVisible,
|
|
8487
8487
|
source: p.source,
|
|
8488
8488
|
isSourceVisible: p.isSourceVisible,
|
|
8489
|
-
captionStyle:
|
|
8490
|
-
sourceStyle:
|
|
8491
|
-
brandMark:
|
|
8489
|
+
captionStyle: rs,
|
|
8490
|
+
sourceStyle: ns,
|
|
8491
|
+
brandMark: is
|
|
8492
8492
|
}),
|
|
8493
|
-
/* @__PURE__ */ s(
|
|
8493
|
+
/* @__PURE__ */ s(Zi, {
|
|
8494
8494
|
formattedLegends: Rn,
|
|
8495
8495
|
rects: ae.legends
|
|
8496
8496
|
}),
|
|
8497
|
-
st && Ot && /* @__PURE__ */ s(
|
|
8497
|
+
st && Ot && /* @__PURE__ */ s($i, {
|
|
8498
8498
|
headline: st,
|
|
8499
8499
|
rect: Ot.rect,
|
|
8500
8500
|
resolvedSize: Ot.resolvedSize,
|
|
8501
8501
|
visibleItemCount: Ot.visibleItemCount,
|
|
8502
|
-
isInDonutHole: Qe !== void 0 &&
|
|
8502
|
+
isInDonutHole: Qe !== void 0 && ll(Qe)
|
|
8503
8503
|
}),
|
|
8504
|
-
N && $ !== null && /* @__PURE__ */ s(
|
|
8504
|
+
N && $ !== null && /* @__PURE__ */ s(_i, {
|
|
8505
8505
|
frameElement: $,
|
|
8506
8506
|
panelRect: ae.panel,
|
|
8507
8507
|
formattedAxes: Nn,
|
|
@@ -8518,7 +8518,7 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8518
8518
|
}, xy = (e) => e.graph().resolve(), Ay = (e) => e.heading.h1().resolve(), by = (e) => e.heading.h2().resolve(), wy = (e) => e.caption().resolve(), Sy = (e) => ({
|
|
8519
8519
|
label: e.source().resolve(),
|
|
8520
8520
|
link: e.source.link().resolve()
|
|
8521
|
-
}),
|
|
8521
|
+
}), v0 = (e) => {
|
|
8522
8522
|
const t = W(ra), r = tn();
|
|
8523
8523
|
return b(() => e || (t ? {
|
|
8524
8524
|
commands: t.commands,
|
|
@@ -8536,141 +8536,142 @@ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
|
|
|
8536
8536
|
t,
|
|
8537
8537
|
r
|
|
8538
8538
|
]);
|
|
8539
|
-
},
|
|
8539
|
+
}, g0 = (e) => Il(e.subscribe, e.getScene, e.getScene), f0 = () => {
|
|
8540
8540
|
const { commands: e } = ee();
|
|
8541
8541
|
return e;
|
|
8542
|
-
},
|
|
8542
|
+
}, p0 = (e) => {
|
|
8543
8543
|
if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
|
|
8544
8544
|
const t = e.key.toLowerCase();
|
|
8545
8545
|
return t === "z" ? e.shiftKey ? "redo" : "undo" : t === "y" && e.ctrlKey && !e.shiftKey ? "redo" : null;
|
|
8546
8546
|
};
|
|
8547
8547
|
export {
|
|
8548
|
-
|
|
8549
|
-
|
|
8548
|
+
$y as $,
|
|
8549
|
+
ar as $t,
|
|
8550
8550
|
wn as A,
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8551
|
+
Ke as At,
|
|
8552
|
+
Ei as B,
|
|
8553
|
+
Uy as Bt,
|
|
8554
8554
|
qf as C,
|
|
8555
|
-
|
|
8555
|
+
rh as Ct,
|
|
8556
8556
|
Ue as D,
|
|
8557
|
-
|
|
8557
|
+
_a as Dt,
|
|
8558
8558
|
Qt as E,
|
|
8559
|
-
|
|
8559
|
+
Zu as Et,
|
|
8560
8560
|
Vg as F,
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8561
|
+
Gu as Ft,
|
|
8562
|
+
a0 as G,
|
|
8563
|
+
kc as Gt,
|
|
8564
8564
|
eg as H,
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8565
|
+
Jc as Ht,
|
|
8566
|
+
Ci as I,
|
|
8567
|
+
Qy as It,
|
|
8568
|
+
r0 as J,
|
|
8569
|
+
I as Jt,
|
|
8570
|
+
wi as K,
|
|
8571
|
+
Me as Kt,
|
|
8572
8572
|
Tg as L,
|
|
8573
|
-
|
|
8573
|
+
Wu as Lt,
|
|
8574
8574
|
Sn as M,
|
|
8575
|
-
|
|
8575
|
+
Vu as Mt,
|
|
8576
8576
|
_g as N,
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8577
|
+
Mr as Nt,
|
|
8578
|
+
s0 as O,
|
|
8579
|
+
Qu as Ot,
|
|
8580
8580
|
zg as P,
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8581
|
+
Xy as Pt,
|
|
8582
|
+
_y as Q,
|
|
8583
|
+
zy as Qt,
|
|
8584
8584
|
kg as R,
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8585
|
+
Fu as Rt,
|
|
8586
|
+
d0 as S,
|
|
8587
|
+
Oe as St,
|
|
8588
8588
|
Tt as T,
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8589
|
+
_u as Tt,
|
|
8590
|
+
o0 as U,
|
|
8591
|
+
Ky as Ut,
|
|
8592
8592
|
yg as V,
|
|
8593
|
-
|
|
8593
|
+
X as Vt,
|
|
8594
8594
|
Te as W,
|
|
8595
|
-
|
|
8595
|
+
Ce as Wt,
|
|
8596
8596
|
xt as X,
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8597
|
+
Yy as Xt,
|
|
8598
|
+
t0 as Y,
|
|
8599
|
+
gt as Yt,
|
|
8600
|
+
e0 as Z,
|
|
8601
|
+
jy as Zt,
|
|
8602
8602
|
Bt as _,
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8603
|
+
ra as _n,
|
|
8604
|
+
wh as _t,
|
|
8605
|
+
h0 as a,
|
|
8606
|
+
ua as an,
|
|
8607
8607
|
lv as at,
|
|
8608
8608
|
np as b,
|
|
8609
|
-
|
|
8610
|
-
|
|
8609
|
+
tn as bn,
|
|
8610
|
+
gn as bt,
|
|
8611
8611
|
Xt as c,
|
|
8612
|
-
|
|
8612
|
+
Gy as cn,
|
|
8613
8613
|
Nh as ct,
|
|
8614
|
-
|
|
8615
|
-
|
|
8614
|
+
u0 as d,
|
|
8615
|
+
Ge as dn,
|
|
8616
8616
|
Oh as dt,
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8617
|
+
Vy as en,
|
|
8618
|
+
Zy as et,
|
|
8619
|
+
c0 as f,
|
|
8620
|
+
tt as fn,
|
|
8621
8621
|
Mh as ft,
|
|
8622
8622
|
yp as g,
|
|
8623
|
-
|
|
8623
|
+
M as gn,
|
|
8624
8624
|
Lt as gt,
|
|
8625
8625
|
Sp as h,
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8626
|
+
na as hn,
|
|
8627
|
+
ai as ht,
|
|
8628
|
+
v0 as i,
|
|
8629
|
+
le as in,
|
|
8630
8630
|
Ov as it,
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8631
|
+
Hi as j,
|
|
8632
|
+
Nr as jt,
|
|
8633
|
+
l0 as k,
|
|
8634
|
+
Uu as kt,
|
|
8635
8635
|
_p as l,
|
|
8636
|
-
|
|
8636
|
+
$l as ln,
|
|
8637
8637
|
Hh as lt,
|
|
8638
8638
|
Tp as m,
|
|
8639
|
-
|
|
8639
|
+
O as mn,
|
|
8640
8640
|
Bh as mt,
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8641
|
+
f0 as n,
|
|
8642
|
+
Ie as nn,
|
|
8643
|
+
Fv as nt,
|
|
8644
8644
|
my as o,
|
|
8645
|
-
|
|
8645
|
+
Ir as on,
|
|
8646
8646
|
it as ot,
|
|
8647
8647
|
Bp as p,
|
|
8648
|
-
|
|
8648
|
+
F as pn,
|
|
8649
8649
|
pn as pt,
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8650
|
+
n0 as q,
|
|
8651
|
+
Ac as qt,
|
|
8652
|
+
g0 as r,
|
|
8653
|
+
Xn as rn,
|
|
8654
8654
|
Hv as rt,
|
|
8655
8655
|
Tm as s,
|
|
8656
|
-
|
|
8656
|
+
be as sn,
|
|
8657
8657
|
yt as st,
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8658
|
+
p0 as t,
|
|
8659
|
+
y as tn,
|
|
8660
|
+
Jy as tt,
|
|
8661
8661
|
Wp as u,
|
|
8662
|
-
|
|
8662
|
+
Vt as un,
|
|
8663
8663
|
uo as ut,
|
|
8664
8664
|
ip as v,
|
|
8665
|
-
|
|
8665
|
+
ee as vn,
|
|
8666
8666
|
ri as vt,
|
|
8667
8667
|
Ne as w,
|
|
8668
|
-
|
|
8668
|
+
th as wt,
|
|
8669
8669
|
ap as x,
|
|
8670
|
-
|
|
8670
|
+
Dl as xn,
|
|
8671
|
+
Re as xt,
|
|
8671
8672
|
op as y,
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8673
|
+
Wy as yn,
|
|
8674
|
+
qy as yt,
|
|
8675
|
+
i0 as z,
|
|
8676
|
+
cu as zt
|
|
8676
8677
|
};
|