@graphysdk/react-renderer 1.9.0-beta.1792518514317 → 1.9.0-beta.1792575115573
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.mjs +56 -56
- package/dist/{history-chords-Bf7f1kij.js → history-chords-CkXZ_0Gc.js} +607 -605
- package/dist/history-chords-XJ9tQsgG.cjs +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +111 -110
- package/package.json +4 -4
- package/dist/history-chords-w_1drv6K.cjs +0 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as
|
|
2
|
-
import { Fragment as Pt, createContext as Y, isValidElement as
|
|
1
|
+
import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as Rs, CachedTextMeasurer as Kn, DATA_LABEL_ROLES as Cs, DEFAULT_GEOM_COLOR as zr, DEFAULT_HOVER_AFFORDANCE_COLOR as Vr, DEFAULT_POINT_SIZE_PX as tt, GROUP_VARIABLES as ne, HeuristicTextMeasurer as Ls, HoverEngine as Is, InternalError as Ts, LayoutCompiler as Bs, NAMED_WEIGHTS as ht, POLAR_RIM_LABEL_GAP_PX as Ms, POSITION_VARIABLES as vt, RESOLVED_DATA_LABEL_POSITIONS as Os, RESTING_HOVER_STATE as jt, VISUAL_VARIABLES as Un, alignUnitFractions as Vo, applyTextTransform as St, areAnchorsEqual as Ns, areEditMenuTriggersEqual as Hs, areEditTargetsEqual as mt, areEndpointsComparable as Qn, arePointerRegionListsEqual as Ds, arePredicatesEqual as Yo, buildAverageLineSymbols as Fs, buildBarRectBounds as Gs, buildCalloutHitRegions as Ws, buildColumnKey as Yr, buildDataLabelsContent as zs, buildFontString as Vs, buildHeadlineItemRows as jo, buildLayerIntroPlan as Ys, buildObservationsTarget as js, buildPointSymbolInBox as Ks, buildPointSymbolPath as Us, buildPolarBarArcPath as Ge, buildSliceGroupKey as jr, buildTooltipContent as Qs, compositeColor as Vt, computeArrow as Xs, computeDifferenceArrow as qs, computeDirectLabelsLayout as Js, computeLetterSpacingWidth as Zs, computeLineBoxHeight as We, computePanelBorderPaths as $s, computePanelBorderSizes as _s, countLayerGeoms as el, createAreaPathGenerators as Kr, createBarBoundsReader as Ko, createDataLabelPlacementResolver as tl, createLayerYValueFormatter as rl, createLineFillAreaGenerator as nl, createLinePathGenerator as Ur, createObservationBoxReader as ol, createPinnedNumberValueFormatter as al, createSegmentYReader as il, createStableCellKeyGenerator as sl, createStableKeyGenerator as Se, ensureReadableTextColor as Qr, findAnnotation as ll, findLayerById as er, findPointerRegion as Xn, formatHeadline as dl, formatLegends as cl, formatRuleValue as ul, getAestheticFromScaleAestheticKey as Ae, getAlpha as Uo, getAngleExtent as hl, getBarRectBounds as Qo, getBoundingRect as vl, getDifferenceArrowLabelBox as gl, getGroup as Ve, getHoverGuideLineProps as fl, getHoverGuideRectProps as pl, getPaintedTileRect as Xr, getPointSymbolOuterRadius as ml, getPolarHoverGuideArcProps as yl, getRadiusExtent as Xo, getShapeAnnotationStroke as xl, getSize as Al, getStackRole as bl, getUnionExtent as qo, getX as $, getXMax as Jo, getY as _, getYMax as tr, isAnnotationMovable as Sl, isFullTurnSweep as qr, isGradientPaint as Zo, isImagePaint as wl, isOpaquePaint as kl, isPatternPaint as Jr, isPositionScale as qn, isSafeUrl as Zr, orderPointerRegions as El, paintKey as Pr, paintsInDonutHole as Pl, pickFilters as Rl, pickReadableTextColor as $o, placeCallouts as Cl, polarToUnit as Ll, positionToAngle as Il, prepareAreaObservations as $r, prepareLineObservations as _r, projectAnchorToPanel as At, projectRegionToPanel as en, readAnchoredObservation as _o, readColorGroupObservation as Tl, readGeomColor as rr, readGeomEffects as X, readGroupRuleColor as ea, readMainAxis as wt, removeAlpha as Bl, resolveArrowAnnotationStyle as Ml, resolveArrowColor as Ol, resolveBarBorderTreatment as kt, resolveBarCornerRadiiPx as Nl, resolveBarCornerRadiusPx as tn, resolveBarPaintOrigin as Hl, resolveCalloutAnnotationStyle as Rr, resolveChromeMargins as Dl, resolveDataLabelStyle as Fl, resolveDeferredAnchors as Gl, resolveDifferenceArrowAnnotationStyle as ta, resolveDirectLabelStyle as ra, resolveGeomCornerRadiusPx as Wl, resolveGraphPadding as zl, resolveHeadlineItemStyle as Yt, resolveHeadlineNumberStyle as na, resolveHeadlinePlacement as Vl, resolveLegendItemStyle as Et, resolvePanelBorderStyle as oa, resolvePolarBarCornerRadiusUnit as Yl, resolveRuleLabelStyle as jl, resolveSwatchGeomPaint as aa, resolveTooltipStyle as Kl, toFontSpec as te, toPaintColor as z, toPanelCursor as Ul, toPercent as C, toStrokeDasharray as rt, toViewBoxX as ia, toViewBoxY as sa, truncateToWidth as la, withAlpha as Ql } from "@graphysdk/viz-engine";
|
|
2
|
+
import { Fragment as Pt, createContext as Y, isValidElement as Xl, memo as ge, useCallback as ie, useContext as N, useEffect as W, useId as Q, useLayoutEffect as ql, useMemo as b, useRef as F, useState as U, useSyncExternalStore as Jl } from "react";
|
|
3
3
|
import { Fragment as T, jsx as l, jsxs as S } from "react/jsx-runtime";
|
|
4
4
|
import { useStore as nt } from "zustand";
|
|
5
|
-
import { animate as Pe, motion as V, useMotionValue as ye, useReducedMotion as
|
|
6
|
-
import { interpolatePath as
|
|
5
|
+
import { animate as Pe, motion as V, useMotionValue as ye, useReducedMotion as Zl, useTransform as Dt } from "motion/react";
|
|
6
|
+
import { interpolatePath as $l } from "d3-interpolate-path";
|
|
7
7
|
import { useShallow as oe } from "zustand/react/shallow";
|
|
8
8
|
import { assignInlineVars as nr } from "@vanilla-extract/dynamic";
|
|
9
9
|
import { createStore as rn } from "zustand/vanilla";
|
|
10
10
|
import bt, { clsx as Fe } from "clsx";
|
|
11
|
-
import { merge as
|
|
12
|
-
import { IntlProvider as
|
|
11
|
+
import { merge as _l } from "lodash-es";
|
|
12
|
+
import { IntlProvider as ed } from "react-intl";
|
|
13
13
|
import { flip as Cr, offset as Lr, shift as Ir, useFloating as da } from "@floating-ui/react-dom";
|
|
14
|
-
import { createPortal as
|
|
15
|
-
import { getContrast as
|
|
16
|
-
import './history-chords.css';var Jn = Object.defineProperty,
|
|
14
|
+
import { createPortal as td } from "react-dom";
|
|
15
|
+
import { getContrast as rd } from "color2k";
|
|
16
|
+
import './history-chords.css';var Jn = Object.defineProperty, nd = (e, t) => {
|
|
17
17
|
let r = {};
|
|
18
18
|
for (var n in e)
|
|
19
19
|
Jn(r, n, {
|
|
@@ -22,11 +22,11 @@ import './history-chords.css';var Jn = Object.defineProperty, rd = (e, t) => {
|
|
|
22
22
|
});
|
|
23
23
|
return t || Jn(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.1792575115573");
|
|
26
|
+
function od(e) {
|
|
27
27
|
for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
|
|
28
28
|
}
|
|
29
|
-
var ca = Y(null), ly = ca.Provider,
|
|
29
|
+
var ca = Y(null), ly = ca.Provider, ad = null, nn = () => N(ca) ?? (ad ??= tl());
|
|
30
30
|
var ua = Y(null), ee = () => {
|
|
31
31
|
const e = N(ua);
|
|
32
32
|
if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
|
|
@@ -34,7 +34,7 @@ var ua = Y(null), ee = () => {
|
|
|
34
34
|
}, B = (e) => {
|
|
35
35
|
const { store: t } = ee();
|
|
36
36
|
return nt(t, (r) => e(r.scene));
|
|
37
|
-
}, ot = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`,
|
|
37
|
+
}, ot = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, id = (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
|
}, Rt = Y(null), Zn = [
|
|
@@ -52,7 +52,7 @@ var ua = Y(null), ee = () => {
|
|
|
52
52
|
const a = /* @__PURE__ */ new Map(), i = (c, u) => {
|
|
53
53
|
switch (u) {
|
|
54
54
|
case "shadow":
|
|
55
|
-
return
|
|
55
|
+
return cd(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 ua = Y(null), ee = () => {
|
|
|
64
64
|
if (h === void 0) return !0;
|
|
65
65
|
const g = Pr(h);
|
|
66
66
|
let f = a.get(g);
|
|
67
|
-
return f === void 0 && (f =
|
|
67
|
+
return f === void 0 && (f = kl(h), a.set(g, f)), f;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
}, s =
|
|
70
|
+
}, s = ld(e.styles), d = Zn.filter((c) => s.has(c) || dd(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]), sd = (e, t) => {
|
|
74
74
|
const r = N(Rt), n = r?.layerId === e.id && r.paintsShadow;
|
|
75
|
-
return b(() => n ?
|
|
76
|
-
},
|
|
75
|
+
return b(() => n ? ud(t) : t, [n, t]);
|
|
76
|
+
}, ld = (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
|
+
}, dd = (e, t) => {
|
|
83
83
|
const r = e.styles.observation.aesthetics[t];
|
|
84
84
|
return r === void 0 || !Object.hasOwn(Un, r) ? !1 : e.data.hasVariable(Un[r]);
|
|
85
|
-
},
|
|
85
|
+
}, cd = (e, t) => e === "none" || t === "none" ? e === t : e.offsetX === t.offsetX && e.offsetY === t.offsetY && e.blur === t.blur && e.color === t.color, ud = (e) => {
|
|
86
86
|
const { get: t, resolve: r } = e;
|
|
87
87
|
return {
|
|
88
88
|
...e,
|
|
@@ -92,7 +92,7 @@ var ua = Y(null), ee = () => {
|
|
|
92
92
|
return i === void 0 && (s.shadow = "none"), s;
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
}, va = () => ee().styleResolver, G = (e) =>
|
|
95
|
+
}, va = () => ee().styleResolver, G = (e) => sd(e, je()(e)), O = () => {
|
|
96
96
|
const e = va(), t = B((r) => r.chrome);
|
|
97
97
|
return e.readers({ chrome: t });
|
|
98
98
|
}, ga = (e) => {
|
|
@@ -101,14 +101,14 @@ var ua = Y(null), ee = () => {
|
|
|
101
101
|
}, fa = (e) => {
|
|
102
102
|
const t = je(), r = B((n) => n.layers).find((n) => n.id === e.layerId);
|
|
103
103
|
return r === void 0 ? void 0 : rr({ geom: t }, r, e.observation);
|
|
104
|
-
},
|
|
104
|
+
}, hd = () => {
|
|
105
105
|
const e = je(), t = B((r) => r.layers);
|
|
106
106
|
return b(() => (r) => {
|
|
107
107
|
const n = _o(t, r);
|
|
108
108
|
if (n !== null)
|
|
109
109
|
return rr({ geom: e }, n.layer, n.observation);
|
|
110
110
|
}, [t, e]);
|
|
111
|
-
},
|
|
111
|
+
}, vd = (e) => {
|
|
112
112
|
const t = je(), r = B((n) => n.layers);
|
|
113
113
|
return b(() => (n) => {
|
|
114
114
|
const o = _o(r, n);
|
|
@@ -132,7 +132,7 @@ var ua = Y(null), ee = () => {
|
|
|
132
132
|
}, je = () => {
|
|
133
133
|
const e = va();
|
|
134
134
|
return B((t) => e.readers(t).geom);
|
|
135
|
-
},
|
|
135
|
+
}, gd = {
|
|
136
136
|
centerX: 0,
|
|
137
137
|
centerY: 0,
|
|
138
138
|
radius: 1
|
|
@@ -149,8 +149,8 @@ var ua = Y(null), ee = () => {
|
|
|
149
149
|
x: r,
|
|
150
150
|
y: r
|
|
151
151
|
};
|
|
152
|
-
}, se = (e, t, r =
|
|
153
|
-
const n =
|
|
152
|
+
}, se = (e, t, r = gd) => {
|
|
153
|
+
const n = Ll(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 ua = Y(null), ee = () => {
|
|
|
200
200
|
...f
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
const m =
|
|
203
|
+
const m = Us(e, n), p = {
|
|
204
204
|
...f,
|
|
205
205
|
strokeLinejoin: "round",
|
|
206
206
|
style: {
|
|
@@ -241,10 +241,10 @@ var ua = Y(null), ee = () => {
|
|
|
241
241
|
transform: `translate(${t}, ${r})`
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
|
-
},
|
|
244
|
+
}, fd = 2, pd = 0.7, Be = ({ hit: e, project: t = ze }) => {
|
|
245
245
|
const r = ga(e.layerId), n = fa(e) ?? zr;
|
|
246
246
|
if (!e.anchored) return null;
|
|
247
|
-
const o = (Uo(e.observation) ?? 1) *
|
|
247
|
+
const o = (Uo(e.observation) ?? 1) * pd, a = r?.get("size", e.observation) ?? tt, i = r?.get("stroke", e.observation, "hovered") ?? Vr, s = t(e.x, e.y);
|
|
248
248
|
return /* @__PURE__ */ l(or, {
|
|
249
249
|
symbol: r?.get("symbol", e.observation) ?? "circle",
|
|
250
250
|
cx: C(s.x),
|
|
@@ -253,14 +253,14 @@ var ua = Y(null), ee = () => {
|
|
|
253
253
|
fill: n,
|
|
254
254
|
opacity: o,
|
|
255
255
|
stroke: i,
|
|
256
|
-
strokeWidth:
|
|
256
|
+
strokeWidth: fd,
|
|
257
257
|
"data-testid": "companion-point"
|
|
258
258
|
});
|
|
259
259
|
};
|
|
260
260
|
var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
261
261
|
const r = K(t), n = K(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${K(a - t)},${K(i)}${o}`).join("");
|
|
263
|
-
},
|
|
263
|
+
}, md = (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, s = 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 + s);
|
|
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, s / 2)), g = a + h, f = a + s - h, v = o + i, m = n ? 0 : 1, p = (P, M) => {
|
|
@@ -312,7 +312,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
312
312
|
}, Kt = (e, t) => ({
|
|
313
313
|
x: e.x * t.width,
|
|
314
314
|
y: e.y * t.height
|
|
315
|
-
}),
|
|
315
|
+
}), yd = (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 $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
323
323
|
centers: n,
|
|
324
324
|
size: r
|
|
325
325
|
}));
|
|
326
|
-
}, ma = (e, t, { origin: r, scaleX: n, scaleY: o }) => `${K(r.x + e * n)},${K(r.y + t * o)}`,
|
|
326
|
+
}, ma = (e, t, { origin: r, scaleX: n, scaleY: o }) => `${K(r.x + e * n)},${K(r.y + t * o)}`, xd = ({ layer: e, coordSystem: t, panelRect: r, animateTransitions: n }) => {
|
|
327
327
|
const { areaGenerator: o } = Kr(t, e.params), a = {
|
|
328
328
|
origin: {
|
|
329
329
|
x: 0,
|
|
@@ -338,7 +338,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
338
338
|
const u = $r([...c], e.params.missingValues), [h] = u;
|
|
339
339
|
if (h !== void 0) {
|
|
340
340
|
if (u.length === 1) {
|
|
341
|
-
const g =
|
|
341
|
+
const g = Ad(h, t, r);
|
|
342
342
|
g !== null && s.push(g);
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
@@ -355,14 +355,14 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
355
355
|
centers: s,
|
|
356
356
|
size: tt
|
|
357
357
|
}), d;
|
|
358
|
-
},
|
|
358
|
+
}, Ad = (e, t, r) => {
|
|
359
359
|
if (t.mainAxis === "y") {
|
|
360
360
|
const a = _(e), i = Jo(e) ?? $(e);
|
|
361
361
|
return a === null || i === null ? null : Kt(ze(i, a), r);
|
|
362
362
|
}
|
|
363
363
|
const n = $(e), o = tr(e) ?? _(e);
|
|
364
364
|
return n === null || o === null ? null : Kt(ze(n, o), r);
|
|
365
|
-
},
|
|
365
|
+
}, bd = 1.5, ya = (e, t) => xa(e, t) ? Math.max(t, bd) : t, Me = (e, t, r) => {
|
|
366
366
|
const n = ya(e, t);
|
|
367
367
|
return {
|
|
368
368
|
strokeWidth: n,
|
|
@@ -391,7 +391,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
391
391
|
stiffness: 500,
|
|
392
392
|
damping: 60,
|
|
393
393
|
mass: 1
|
|
394
|
-
},
|
|
394
|
+
}, Sd = { duration: 0 }, on = (e) => e ? be : Sd, Br = (e, t, r) => {
|
|
395
395
|
const n = ye(e), o = F(r);
|
|
396
396
|
return W(() => {
|
|
397
397
|
const a = r !== void 0 && r === o.current;
|
|
@@ -400,7 +400,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
400
400
|
n.set(e);
|
|
401
401
|
return;
|
|
402
402
|
}
|
|
403
|
-
const i =
|
|
403
|
+
const i = $l(n.get(), e), s = Pe(0, 1, {
|
|
404
404
|
...t,
|
|
405
405
|
onUpdate: (d) => n.set(i(d))
|
|
406
406
|
});
|
|
@@ -411,7 +411,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
411
411
|
r,
|
|
412
412
|
n
|
|
413
413
|
]), n;
|
|
414
|
-
}, ba = ({ animateTransitions: e, ...t }) => e ? /* @__PURE__ */ l(
|
|
414
|
+
}, ba = ({ animateTransitions: e, ...t }) => e ? /* @__PURE__ */ l(kd, { ...t }) : /* @__PURE__ */ l(wd, { ...t }), wd = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: s, lineCap: d, lineJoin: c, opacity: u }) => /* @__PURE__ */ S("g", {
|
|
415
415
|
opacity: u,
|
|
416
416
|
children: [/* @__PURE__ */ l("path", {
|
|
417
417
|
d: e,
|
|
@@ -429,7 +429,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
429
429
|
strokeLinejoin: c,
|
|
430
430
|
vectorEffect: "non-scaling-stroke"
|
|
431
431
|
})]
|
|
432
|
-
}),
|
|
432
|
+
}), kd = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: s, lineCap: d, lineJoin: c, opacity: u }) => {
|
|
433
433
|
const h = Br(e, be), g = Br(t, be);
|
|
434
434
|
return /* @__PURE__ */ S("g", {
|
|
435
435
|
opacity: u,
|
|
@@ -457,13 +457,13 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
457
457
|
ease: e.growAxis === "angle" ? "circOut" : "backOut",
|
|
458
458
|
delay: r
|
|
459
459
|
};
|
|
460
|
-
},
|
|
460
|
+
}, Ed = (e) => ({
|
|
461
461
|
duration: e.durationSeconds,
|
|
462
462
|
ease: "easeOut"
|
|
463
463
|
}), Sa = (e) => ({
|
|
464
464
|
duration: e.durationSeconds,
|
|
465
465
|
ease: "easeOut"
|
|
466
|
-
}),
|
|
466
|
+
}), Pd = (e) => Rd(e) + e.durationSeconds, Rd = (e) => {
|
|
467
467
|
switch (e.type) {
|
|
468
468
|
case "grow":
|
|
469
469
|
return Object.values(e.delayByKey).reduce((t, r) => Math.max(t, r), 0);
|
|
@@ -476,14 +476,14 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
476
476
|
return /* @__PURE__ */ S(T, { children: [/* @__PURE__ */ l("clipPath", {
|
|
477
477
|
id: r,
|
|
478
478
|
children: /* @__PURE__ */ l(V.rect, {
|
|
479
|
-
...
|
|
480
|
-
transition:
|
|
479
|
+
...Cd(e.axis),
|
|
480
|
+
transition: Ed(e)
|
|
481
481
|
})
|
|
482
482
|
}), /* @__PURE__ */ l("g", {
|
|
483
483
|
clipPath: `url(#${r})`,
|
|
484
484
|
children: t
|
|
485
485
|
})] });
|
|
486
|
-
},
|
|
486
|
+
}, Cd = (e) => e === "x" ? {
|
|
487
487
|
x: "-5%",
|
|
488
488
|
y: "-25%",
|
|
489
489
|
height: `${eo}%`,
|
|
@@ -495,7 +495,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
495
495
|
width: `${eo}%`,
|
|
496
496
|
initial: { height: "0%" },
|
|
497
497
|
animate: { height: `${_n}%` }
|
|
498
|
-
}, ka = {}, Ea = Y(ka),
|
|
498
|
+
}, ka = {}, Ea = Y(ka), Ld = {
|
|
499
499
|
x: 1,
|
|
500
500
|
y: 1
|
|
501
501
|
}, ar = Y(null), cy = ({ shapes: e = ka, children: t }) => /* @__PURE__ */ l(Ea.Provider, {
|
|
@@ -510,17 +510,17 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
510
510
|
value: n,
|
|
511
511
|
children: r
|
|
512
512
|
});
|
|
513
|
-
},
|
|
513
|
+
}, Id = () => {
|
|
514
514
|
const e = N(ar);
|
|
515
515
|
return e?.space === "pixels" ? e.size : null;
|
|
516
|
-
},
|
|
516
|
+
}, Td = () => N(ar)?.size ?? null, hy = () => {
|
|
517
517
|
const e = N(ar);
|
|
518
|
-
return e?.space !== "unit" ?
|
|
518
|
+
return e?.space !== "unit" ? Ld : {
|
|
519
519
|
x: e.size.width,
|
|
520
520
|
y: e.size.height
|
|
521
521
|
};
|
|
522
522
|
}, we = ({ effects: e, children: t, ...r }) => {
|
|
523
|
-
const n =
|
|
523
|
+
const n = Td(), o = r.viewBox === "0 0 1 1" && r.preserveAspectRatio === "none";
|
|
524
524
|
return /* @__PURE__ */ l("g", {
|
|
525
525
|
style: e,
|
|
526
526
|
children: /* @__PURE__ */ l("svg", {
|
|
@@ -532,7 +532,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
532
532
|
})
|
|
533
533
|
})
|
|
534
534
|
});
|
|
535
|
-
},
|
|
535
|
+
}, Bd = ge(function({ layer: t, coordSystem: r, animateTransitions: n, intro: o }) {
|
|
536
536
|
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: s } = b(() => Kr(r, t.params), [t.params, r]), d = G(t), c = b(() => {
|
|
537
537
|
const u = Se(t.data, t.mapping, t.id), h = [];
|
|
538
538
|
return t.data.groupBy(ne.group).forEach((g) => {
|
|
@@ -563,7 +563,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
563
563
|
t.mapping,
|
|
564
564
|
t.params,
|
|
565
565
|
d
|
|
566
|
-
]).map((u) => /* @__PURE__ */ l(
|
|
566
|
+
]).map((u) => /* @__PURE__ */ l(Md, {
|
|
567
567
|
areaPath: u.areaPath,
|
|
568
568
|
linePath: u.linePath,
|
|
569
569
|
fill: u.fill,
|
|
@@ -589,7 +589,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
589
589
|
children: c
|
|
590
590
|
}) : c
|
|
591
591
|
});
|
|
592
|
-
}),
|
|
592
|
+
}), Md = ({ areaPath: e, linePath: t, fill: r, stroke: n, fillOpacity: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: s, lineCap: d, lineJoin: c, animateTransitions: u }) => /* @__PURE__ */ l(ba, {
|
|
593
593
|
fillPath: e,
|
|
594
594
|
linePath: t,
|
|
595
595
|
fill: r,
|
|
@@ -601,10 +601,10 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
601
601
|
lineCap: d,
|
|
602
602
|
lineJoin: c,
|
|
603
603
|
animateTransitions: u
|
|
604
|
-
}), Pa = 1,
|
|
604
|
+
}), Pa = 1, Od = 0.4, Nd = 0.2, Hd = 1, Dd = 0.5, Fd = 2.25, it = ({ hit: e, project: t = ze, ...r }) => {
|
|
605
605
|
const n = ga(e.layerId), o = fa(e) ?? zr;
|
|
606
606
|
if (!e.anchored) return null;
|
|
607
|
-
const a = Uo(e.observation) ?? 1, i = n?.get("stroke", e.observation, "hovered") ?? Vr, s = n?.get("symbol", e.observation) ?? "circle", d = t(e.x, e.y), c = C(d.x), u = C(d.y), h =
|
|
607
|
+
const a = Uo(e.observation) ?? 1, i = n?.get("stroke", e.observation, "hovered") ?? Vr, s = n?.get("symbol", e.observation) ?? "circle", d = t(e.x, e.y), c = C(d.x), u = C(d.y), h = Gd(e.observation, n), { ringRadius: g, ringWidth: f } = Wd(h, ml(s, h * 2)), v = n ? q(X(n, e.observation, "hovered")) : void 0;
|
|
608
608
|
return /* @__PURE__ */ S("g", {
|
|
609
609
|
...r,
|
|
610
610
|
style: v,
|
|
@@ -626,16 +626,16 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
626
626
|
strokeWidth: Pa
|
|
627
627
|
})]
|
|
628
628
|
});
|
|
629
|
-
}, Fd = (e, t) => {
|
|
630
|
-
const r = t?.get("size", e), n = xl(e) ?? null;
|
|
631
|
-
return n !== null ? (r ?? n) / Dd : (r ?? 12) / 2;
|
|
632
629
|
}, Gd = (e, t) => {
|
|
633
|
-
const r =
|
|
630
|
+
const r = t?.get("size", e), n = Al(e) ?? null;
|
|
631
|
+
return n !== null ? (r ?? n) / Fd : (r ?? 12) / 2;
|
|
632
|
+
}, Wd = (e, t) => {
|
|
633
|
+
const r = Math.max(Hd, e * Od), n = Math.max(Dd, e * Nd);
|
|
634
634
|
return {
|
|
635
635
|
ringRadius: t + Pa / 2 + n + r / 2,
|
|
636
636
|
ringWidth: r
|
|
637
637
|
};
|
|
638
|
-
},
|
|
638
|
+
}, zd = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
|
|
639
639
|
const o = G(e), a = Ve(r.observation), i = b(() => $r([...e.data.filter(ne.group, "eq", a)], e.params.missingValues), [
|
|
640
640
|
e.data,
|
|
641
641
|
e.params.missingValues,
|
|
@@ -690,25 +690,25 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, dy = (e, t) => {
|
|
|
690
690
|
})
|
|
691
691
|
]
|
|
692
692
|
});
|
|
693
|
-
},
|
|
693
|
+
}, Vd = {
|
|
694
694
|
geom: "area",
|
|
695
695
|
coord: "cartesian",
|
|
696
696
|
swatchShape: "area",
|
|
697
697
|
guideMode: "crosshair",
|
|
698
|
-
render: ({ layer: e, coordSystem: t, animateTransitions: r, intro: n }) => /* @__PURE__ */ l(
|
|
698
|
+
render: ({ layer: e, coordSystem: t, animateTransitions: r, intro: n }) => /* @__PURE__ */ l(Bd, {
|
|
699
699
|
layer: e,
|
|
700
700
|
coordSystem: t,
|
|
701
701
|
animateTransitions: r,
|
|
702
702
|
intro: n
|
|
703
703
|
}),
|
|
704
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r, group: n, related: o }) => /* @__PURE__ */ l(
|
|
704
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r, group: n, related: o }) => /* @__PURE__ */ l(zd, {
|
|
705
705
|
layer: e,
|
|
706
706
|
coordSystem: t,
|
|
707
707
|
primary: r,
|
|
708
708
|
companions: [...n, ...o]
|
|
709
709
|
}),
|
|
710
710
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ l(T, { children: e.map((t) => /* @__PURE__ */ l(Be, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
|
|
711
|
-
getEditOutlineShapes:
|
|
711
|
+
getEditOutlineShapes: xd,
|
|
712
712
|
getOverlayAnchor: ({ observation: e, coordSystem: t }) => {
|
|
713
713
|
if (t.mainAxis === "x") {
|
|
714
714
|
const o = $(e), a = tr(e) ?? _(e);
|
|
@@ -756,7 +756,7 @@ var to = "\0", Ra = (e, t) => {
|
|
|
756
756
|
width: r,
|
|
757
757
|
height: t == null ? r : r * t.height / t.width
|
|
758
758
|
};
|
|
759
|
-
},
|
|
759
|
+
}, Yd = (e) => new Promise((t) => {
|
|
760
760
|
if (typeof Image > "u") {
|
|
761
761
|
t(null);
|
|
762
762
|
return;
|
|
@@ -782,28 +782,28 @@ var to = "\0", Ra = (e, t) => {
|
|
|
782
782
|
return d.size === s.size ? s : d;
|
|
783
783
|
});
|
|
784
784
|
for (const s of i)
|
|
785
|
-
r.has(s) || a.current.has(s) || (a.current.add(s),
|
|
785
|
+
r.has(s) || a.current.has(s) || (a.current.add(s), Yd(s).then((d) => {
|
|
786
786
|
o.current.has(s) && (a.current.delete(s), n((c) => new Map(c).set(s, d)));
|
|
787
787
|
}));
|
|
788
788
|
}, [t, r]), ie((i) => {
|
|
789
789
|
const s = ro(i);
|
|
790
790
|
return s === void 0 ? void 0 : r.get(s);
|
|
791
791
|
}, [r]);
|
|
792
|
-
}, ro = (e) => e !== void 0 &&
|
|
793
|
-
var
|
|
792
|
+
}, ro = (e) => e !== void 0 && wl(e) && (e.fit ?? "tile") === "tile" ? e.image : void 0;
|
|
793
|
+
var jd = 1 / 3, Kd = {
|
|
794
794
|
x: 1,
|
|
795
795
|
y: 1
|
|
796
|
-
},
|
|
796
|
+
}, Ud = {
|
|
797
797
|
x: 0,
|
|
798
798
|
y: 0
|
|
799
|
-
}, le = ({ paints: e, unitsPerPixel: t =
|
|
799
|
+
}, le = ({ paints: e, unitsPerPixel: t = Kd, origin: r = Ud }) => {
|
|
800
800
|
const n = Q(), o = b(() => {
|
|
801
801
|
const a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
|
|
802
802
|
for (const s of e) {
|
|
803
803
|
if (typeof s == "string") continue;
|
|
804
804
|
const d = Pr(s);
|
|
805
805
|
if (a.has(d)) continue;
|
|
806
|
-
const c = `${n}paint-${
|
|
806
|
+
const c = `${n}paint-${Qd(d)}`;
|
|
807
807
|
let u = c, h = 1;
|
|
808
808
|
for (; i.has(u); ) u = `${c}-${h++}`;
|
|
809
809
|
i.add(u), a.set(d, {
|
|
@@ -820,35 +820,35 @@ var Yd = 1 / 3, jd = {
|
|
|
820
820
|
if (i === void 0) throw new Error("fillFor requires a paint supplied to usePaintDefs.");
|
|
821
821
|
return `url(#${i.id})`;
|
|
822
822
|
}, [o]),
|
|
823
|
-
defs: /* @__PURE__ */ l(
|
|
823
|
+
defs: /* @__PURE__ */ l(Xd, {
|
|
824
824
|
entries: [...o.values()],
|
|
825
825
|
unitsPerPixel: t,
|
|
826
826
|
origin: r
|
|
827
827
|
})
|
|
828
828
|
};
|
|
829
|
-
},
|
|
829
|
+
}, Qd = (e) => {
|
|
830
830
|
let t = 2166136261;
|
|
831
831
|
for (let r = 0; r < e.length; r++)
|
|
832
832
|
t ^= e.charCodeAt(r), t = Math.imul(t, 16777619);
|
|
833
833
|
return (t >>> 0).toString(36);
|
|
834
|
-
},
|
|
834
|
+
}, Xd = ({ entries: e, unitsPerPixel: t, origin: r }) => {
|
|
835
835
|
const n = st(e.map(({ paint: o }) => o));
|
|
836
|
-
return e.length === 0 ? null : /* @__PURE__ */ l("defs", { children: e.map(({ id: o, paint: a }) => /* @__PURE__ */ l(
|
|
836
|
+
return e.length === 0 ? null : /* @__PURE__ */ l("defs", { children: e.map(({ id: o, paint: a }) => /* @__PURE__ */ l(qd, {
|
|
837
837
|
id: o,
|
|
838
838
|
paint: a,
|
|
839
839
|
unitsPerPixel: t,
|
|
840
840
|
origin: r,
|
|
841
841
|
imageSize: n(a)
|
|
842
842
|
}, o)) });
|
|
843
|
-
},
|
|
843
|
+
}, qd = ({ id: e, paint: t, unitsPerPixel: r, origin: n, imageSize: o }) => Zo(t) ? /* @__PURE__ */ l(Zd, {
|
|
844
844
|
id: e,
|
|
845
845
|
paint: t
|
|
846
|
-
}) : Jr(t) ? /* @__PURE__ */ l(
|
|
846
|
+
}) : Jr(t) ? /* @__PURE__ */ l($d, {
|
|
847
847
|
id: e,
|
|
848
848
|
paint: t,
|
|
849
849
|
unitsPerPixel: r,
|
|
850
850
|
origin: n
|
|
851
|
-
}) : /* @__PURE__ */ l(
|
|
851
|
+
}) : /* @__PURE__ */ l(_d, {
|
|
852
852
|
id: e,
|
|
853
853
|
paint: t,
|
|
854
854
|
unitsPerPixel: r,
|
|
@@ -857,7 +857,7 @@ var Yd = 1 / 3, jd = {
|
|
|
857
857
|
}), Ca = (e) => ({
|
|
858
858
|
x: C(e.x),
|
|
859
859
|
y: C(e.y)
|
|
860
|
-
}),
|
|
860
|
+
}), Jd = (e) => {
|
|
861
861
|
const t = (e - 90) * Math.PI / 180, r = Math.cos(t) / 2, n = Math.sin(t) / 2;
|
|
862
862
|
return {
|
|
863
863
|
x1: 0.5 - r,
|
|
@@ -865,7 +865,7 @@ var Yd = 1 / 3, jd = {
|
|
|
865
865
|
x2: 0.5 + r,
|
|
866
866
|
y2: 0.5 + n
|
|
867
867
|
};
|
|
868
|
-
},
|
|
868
|
+
}, Zd = ({ id: e, paint: t }) => {
|
|
869
869
|
const r = t.stops.map((n, o) => /* @__PURE__ */ l("stop", {
|
|
870
870
|
offset: n.offset,
|
|
871
871
|
stopColor: n.color
|
|
@@ -877,10 +877,10 @@ var Yd = 1 / 3, jd = {
|
|
|
877
877
|
}) : /* @__PURE__ */ l("linearGradient", {
|
|
878
878
|
id: e,
|
|
879
879
|
gradientUnits: "objectBoundingBox",
|
|
880
|
-
...
|
|
880
|
+
...Jd(t.angle ?? 180),
|
|
881
881
|
children: r
|
|
882
882
|
});
|
|
883
|
-
},
|
|
883
|
+
}, $d = ({ id: e, paint: t, unitsPerPixel: r, origin: n }) => {
|
|
884
884
|
const o = t.size ?? 8, a = o / 2;
|
|
885
885
|
return /* @__PURE__ */ S("pattern", {
|
|
886
886
|
id: e,
|
|
@@ -921,7 +921,7 @@ var Yd = 1 / 3, jd = {
|
|
|
921
921
|
})
|
|
922
922
|
]
|
|
923
923
|
});
|
|
924
|
-
},
|
|
924
|
+
}, _d = ({ id: e, paint: t, unitsPerPixel: r, origin: n, imageSize: o }) => {
|
|
925
925
|
if ((t.fit ?? "tile") === "stretch") return /* @__PURE__ */ S("pattern", {
|
|
926
926
|
id: e,
|
|
927
927
|
patternUnits: "objectBoundingBox",
|
|
@@ -963,11 +963,11 @@ var Yd = 1 / 3, jd = {
|
|
|
963
963
|
});
|
|
964
964
|
}, La = (e) => {
|
|
965
965
|
const [t, ...r] = e, n = t?.effects;
|
|
966
|
-
return r.every((o) =>
|
|
966
|
+
return r.every((o) => ec(o.effects, n)) ? {
|
|
967
967
|
scope: "column",
|
|
968
968
|
style: n
|
|
969
969
|
} : { scope: "bar" };
|
|
970
|
-
},
|
|
970
|
+
}, ec = (e, t) => e === t || e !== void 0 && t !== void 0 && e.filter === t.filter && e.mixBlendMode === t.mixBlendMode, Ia = (e, t, r) => e === "x" ? {
|
|
971
971
|
...t,
|
|
972
972
|
x: r.x,
|
|
973
973
|
width: r.width
|
|
@@ -991,18 +991,18 @@ var Yd = 1 / 3, jd = {
|
|
|
991
991
|
const d = /* @__PURE__ */ new Map();
|
|
992
992
|
for (const [c, { firstObservation: u, segments: h }] of i) d.set(c, {
|
|
993
993
|
style: ir(r, u),
|
|
994
|
-
bounds:
|
|
994
|
+
bounds: vl(h),
|
|
995
995
|
segments: h
|
|
996
996
|
});
|
|
997
997
|
return d;
|
|
998
|
-
},
|
|
998
|
+
}, tc = (e, t, r, n) => {
|
|
999
999
|
const o = /* @__PURE__ */ new Map();
|
|
1000
|
-
for (const [a, { style: i, bounds: s }] of Ta(e, t, r,
|
|
1000
|
+
for (const [a, { style: i, bounds: s }] of Ta(e, t, r, ac, n)) o.set(a, {
|
|
1001
1001
|
style: i,
|
|
1002
1002
|
bounds: s
|
|
1003
1003
|
});
|
|
1004
1004
|
return o;
|
|
1005
|
-
}, dn = ln(
|
|
1005
|
+
}, dn = ln(tc), Ba = (e, t, r, n) => {
|
|
1006
1006
|
const o = Qo(t, n);
|
|
1007
1007
|
if (!o) return null;
|
|
1008
1008
|
const a = e.get(Yr(t, o)) ?? {
|
|
@@ -1033,7 +1033,7 @@ var Yd = 1 / 3, jd = {
|
|
|
1033
1033
|
`${a}`
|
|
1034
1034
|
], f = `${K(r + i)}`, v = `${K(o - i)}`, m = `${K(n + s)}`, p = `${K(a - s)}`;
|
|
1035
1035
|
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`;
|
|
1036
|
-
},
|
|
1036
|
+
}, rc = ({ observation: e, mainAxis: t, styleReaders: r, column: n, bounds: o, panelRect: a, fill: i }) => {
|
|
1037
1037
|
const s = Q(), d = Q(), c = Te(o, a), u = Te(n.bounds, a), { stroke: h, strokeWidth: g, cornerRadius: f, strokeAlpha: v } = n.style, m = tn({
|
|
1038
1038
|
cornerRadius: f,
|
|
1039
1039
|
mainAxis: t,
|
|
@@ -1074,7 +1074,7 @@ var Yd = 1 / 3, jd = {
|
|
|
1074
1074
|
})
|
|
1075
1075
|
]
|
|
1076
1076
|
});
|
|
1077
|
-
},
|
|
1077
|
+
}, nc = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => {
|
|
1078
1078
|
const o = G(t), a = dn(t, r.mainAxis, o, n), { paints: i, paintAt: s } = Lt(e, o), { fillFor: d, defs: c } = le({
|
|
1079
1079
|
paints: i,
|
|
1080
1080
|
origin: cn(t, r)
|
|
@@ -1087,7 +1087,7 @@ var Yd = 1 / 3, jd = {
|
|
|
1087
1087
|
const m = u(f), p = {
|
|
1088
1088
|
key: m,
|
|
1089
1089
|
effects: q(X(o, f)),
|
|
1090
|
-
node: /* @__PURE__ */ l(
|
|
1090
|
+
node: /* @__PURE__ */ l(rc, {
|
|
1091
1091
|
observation: f,
|
|
1092
1092
|
mainAxis: r.mainAxis,
|
|
1093
1093
|
styleReaders: o,
|
|
@@ -1099,15 +1099,15 @@ var Yd = 1 / 3, jd = {
|
|
|
1099
1099
|
}, A = h.get(v.column);
|
|
1100
1100
|
A === void 0 ? h.set(v.column, [p]) : A.push(p);
|
|
1101
1101
|
}
|
|
1102
|
-
return /* @__PURE__ */ S(T, { children: [c, [...h.values()].flatMap(
|
|
1102
|
+
return /* @__PURE__ */ S(T, { children: [c, [...h.values()].flatMap(oc)] });
|
|
1103
1103
|
}, cn = (e, t) => {
|
|
1104
1104
|
const r = B((n) => n.scales);
|
|
1105
|
-
return b(() =>
|
|
1105
|
+
return b(() => Hl(e, t, r), [
|
|
1106
1106
|
e,
|
|
1107
1107
|
t,
|
|
1108
1108
|
r
|
|
1109
1109
|
]);
|
|
1110
|
-
},
|
|
1110
|
+
}, oc = (e) => {
|
|
1111
1111
|
const [t] = e, r = La(e);
|
|
1112
1112
|
return t !== void 0 && r.scope === "column" ? [/* @__PURE__ */ l("g", {
|
|
1113
1113
|
style: r.style,
|
|
@@ -1116,11 +1116,11 @@ var Yd = 1 / 3, jd = {
|
|
|
1116
1116
|
style: o,
|
|
1117
1117
|
children: a
|
|
1118
1118
|
}, n));
|
|
1119
|
-
},
|
|
1120
|
-
const { mainAxis: i } = r, s = dn(t, i, o, n), d =
|
|
1119
|
+
}, ac = (e, t) => t, ic = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o, animateTransitions: a }) => {
|
|
1120
|
+
const { mainAxis: i } = r, s = dn(t, i, o, n), d = sc(e.data);
|
|
1121
1121
|
let c = "";
|
|
1122
1122
|
for (let u = 0; u < e.data.size(); u++) {
|
|
1123
|
-
const h =
|
|
1123
|
+
const h = Gs(i, {
|
|
1124
1124
|
xMin: d.xMin[u] ?? null,
|
|
1125
1125
|
xMax: d.xMax[u] ?? null,
|
|
1126
1126
|
yMin: d.yMin[u] ?? null,
|
|
@@ -1135,7 +1135,7 @@ var Yd = 1 / 3, jd = {
|
|
|
1135
1135
|
mainAxis: i,
|
|
1136
1136
|
bounds: v
|
|
1137
1137
|
});
|
|
1138
|
-
c +=
|
|
1138
|
+
c += lc(m, v) ? Le(v, p) : md(v, p, i === "x" ? {
|
|
1139
1139
|
axis: "y",
|
|
1140
1140
|
from: m.y,
|
|
1141
1141
|
to: m.y + m.height
|
|
@@ -1150,7 +1150,7 @@ var Yd = 1 / 3, jd = {
|
|
|
1150
1150
|
pathData: c,
|
|
1151
1151
|
animateTransitions: a
|
|
1152
1152
|
}];
|
|
1153
|
-
},
|
|
1153
|
+
}, sc = (e) => {
|
|
1154
1154
|
const t = (r) => e.hasVariable(r) ? e.getValues(r, { type: "numeric" }) : null;
|
|
1155
1155
|
return {
|
|
1156
1156
|
xMin: e.getValues(vt.xMin, { type: "numeric" }),
|
|
@@ -1159,7 +1159,7 @@ var Yd = 1 / 3, jd = {
|
|
|
1159
1159
|
yMax: t(vt.yMax),
|
|
1160
1160
|
y: t(vt.y)
|
|
1161
1161
|
};
|
|
1162
|
-
},
|
|
1162
|
+
}, lc = (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, Mr = (e, t, r) => {
|
|
1163
1163
|
const n = r === void 0 ? e.activeIntro : r, o = F(n ? an(n, t) : null), a = F(e.animateTransitions);
|
|
1164
1164
|
return a.current = e.animateTransitions, ie(() => {
|
|
1165
1165
|
const i = o.current;
|
|
@@ -1191,7 +1191,7 @@ var Yd = 1 / 3, jd = {
|
|
|
1191
1191
|
y: t.baseline,
|
|
1192
1192
|
width: e.width,
|
|
1193
1193
|
height: 0
|
|
1194
|
-
},
|
|
1194
|
+
}, dc = ge(function({ layer: t, coordSystem: r, animateTransitions: n, intro: o, panelRect: a }) {
|
|
1195
1195
|
const i = Q(), s = G(t), d = sr(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n), { paints: c, paintAt: u } = Lt(t, s), { fillFor: h, defs: g } = le({
|
|
1196
1196
|
paints: c,
|
|
1197
1197
|
origin: cn(t, r)
|
|
@@ -1212,7 +1212,7 @@ var Yd = 1 / 3, jd = {
|
|
|
1212
1212
|
bars: v,
|
|
1213
1213
|
effects: La(v),
|
|
1214
1214
|
...p,
|
|
1215
|
-
radii:
|
|
1215
|
+
radii: vc({
|
|
1216
1216
|
cornerRadius: m.cornerRadius,
|
|
1217
1217
|
mainAxis: r.mainAxis,
|
|
1218
1218
|
bounds: p
|
|
@@ -1249,16 +1249,16 @@ var Yd = 1 / 3, jd = {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
return /* @__PURE__ */ l("g", {
|
|
1251
1251
|
style: v,
|
|
1252
|
-
children: d.animated ? /* @__PURE__ */ l(
|
|
1252
|
+
children: d.animated ? /* @__PURE__ */ l(uc, {
|
|
1253
1253
|
column: f,
|
|
1254
1254
|
animation: d
|
|
1255
|
-
}) : /* @__PURE__ */ l(
|
|
1255
|
+
}) : /* @__PURE__ */ l(cc, {
|
|
1256
1256
|
column: f,
|
|
1257
1257
|
animation: d
|
|
1258
1258
|
})
|
|
1259
1259
|
}, f.key);
|
|
1260
1260
|
})] });
|
|
1261
|
-
}),
|
|
1261
|
+
}), cc = ({ column: e, animation: t }) => {
|
|
1262
1262
|
const { id: r, bars: n, radii: o, stroke: a, outlineOpacity: i, clippedStrokeWidth: s } = e, d = a !== void 0, c = /* @__PURE__ */ l("clipPath", {
|
|
1263
1263
|
id: r,
|
|
1264
1264
|
children: /* @__PURE__ */ l(oo, {
|
|
@@ -1289,8 +1289,8 @@ var Yd = 1 / 3, jd = {
|
|
|
1289
1289
|
strokeWidth: s,
|
|
1290
1290
|
opacity: i
|
|
1291
1291
|
}))] });
|
|
1292
|
-
},
|
|
1293
|
-
const { id: r, bars: n, radii: o, stroke: a, outlineOpacity: i, clippedStrokeWidth: s } = e, d = a !== void 0, c =
|
|
1292
|
+
}, uc = ({ column: e, animation: t }) => {
|
|
1293
|
+
const { id: r, bars: n, radii: o, stroke: a, outlineOpacity: i, clippedStrokeWidth: s } = e, d = a !== void 0, c = hc(e, t, n[0]?.key), u = {
|
|
1294
1294
|
x: c.x,
|
|
1295
1295
|
y: c.y,
|
|
1296
1296
|
width: c.width,
|
|
@@ -1390,7 +1390,7 @@ var Yd = 1 / 3, jd = {
|
|
|
1390
1390
|
stroke: n,
|
|
1391
1391
|
strokeWidth: o,
|
|
1392
1392
|
opacity: a
|
|
1393
|
-
}),
|
|
1393
|
+
}), hc = (e, t, r) => {
|
|
1394
1394
|
const n = t.activeIntro ? Ma(e, t.activeIntro) : e, o = ye(n.x), a = ye(n.y), i = ye(n.width), s = ye(n.height), d = Mr(t, r);
|
|
1395
1395
|
return W(() => {
|
|
1396
1396
|
const c = d(), u = [
|
|
@@ -1419,13 +1419,13 @@ var Yd = 1 / 3, jd = {
|
|
|
1419
1419
|
height: Dt(s, C)
|
|
1420
1420
|
};
|
|
1421
1421
|
};
|
|
1422
|
-
function
|
|
1423
|
-
const t =
|
|
1422
|
+
function vc(e) {
|
|
1423
|
+
const t = Nl(e);
|
|
1424
1424
|
if (e.cornerRadius !== "full") return t;
|
|
1425
1425
|
const r = {};
|
|
1426
1426
|
return t.rx !== void 0 && (r.rx = C(t.rx)), t.ry !== void 0 && (r.ry = C(t.ry)), r;
|
|
1427
1427
|
}
|
|
1428
|
-
var Ar = 3,
|
|
1428
|
+
var Ar = 3, gc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
1429
1429
|
const o = G(e), a = Q(), i = Q(), s = Q(), d = dn(e, t.mainAxis, o, n), c = o.get("fill", r.observation, "hovered"), { fillFor: u, defs: h } = le({
|
|
1430
1430
|
paints: [c],
|
|
1431
1431
|
origin: cn(e, t)
|
|
@@ -1488,34 +1488,34 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1488
1488
|
})
|
|
1489
1489
|
]
|
|
1490
1490
|
});
|
|
1491
|
-
},
|
|
1491
|
+
}, fc = ln(Ko), pc = {
|
|
1492
1492
|
geom: "bar",
|
|
1493
1493
|
coord: "cartesian",
|
|
1494
1494
|
swatchShape: "square",
|
|
1495
1495
|
guideMode: "band",
|
|
1496
|
-
render: ({ layer: e, coordSystem: t, animateTransitions: r, intro: n, panelRect: o }) => /* @__PURE__ */ l(
|
|
1496
|
+
render: ({ layer: e, coordSystem: t, animateTransitions: r, intro: n, panelRect: o }) => /* @__PURE__ */ l(dc, {
|
|
1497
1497
|
layer: e,
|
|
1498
1498
|
coordSystem: t,
|
|
1499
1499
|
animateTransitions: r,
|
|
1500
1500
|
intro: n,
|
|
1501
1501
|
panelRect: o
|
|
1502
1502
|
}),
|
|
1503
|
-
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ l(
|
|
1503
|
+
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ l(nc, {
|
|
1504
1504
|
layer: e,
|
|
1505
1505
|
sourceLayer: t,
|
|
1506
1506
|
coordSystem: r,
|
|
1507
1507
|
panelRect: n
|
|
1508
1508
|
}),
|
|
1509
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ l(
|
|
1509
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ l(gc, {
|
|
1510
1510
|
layer: e,
|
|
1511
1511
|
coordSystem: t,
|
|
1512
1512
|
primary: r,
|
|
1513
1513
|
panelRect: n
|
|
1514
1514
|
}),
|
|
1515
1515
|
renderHoverCompanions: () => null,
|
|
1516
|
-
getEditOutlineShapes:
|
|
1517
|
-
getObservationRect: ({ layer: e, coordSystem: t, observation: r, panelRect: n, styleReaders: o }) =>
|
|
1518
|
-
},
|
|
1516
|
+
getEditOutlineShapes: ic,
|
|
1517
|
+
getObservationRect: ({ layer: e, coordSystem: t, observation: r, panelRect: n, styleReaders: o }) => fc(e, t.mainAxis, o, n)(r)
|
|
1518
|
+
}, mc = ({ layer: e, panelRect: t, styleReaders: r, animateTransitions: n }) => {
|
|
1519
1519
|
const o = Ur(e.params), a = {
|
|
1520
1520
|
origin: {
|
|
1521
1521
|
x: 0,
|
|
@@ -1528,7 +1528,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1528
1528
|
const c = _r([...d], e.params.missingValues), [u] = c;
|
|
1529
1529
|
if (u === void 0) return;
|
|
1530
1530
|
if (c.length === 1) {
|
|
1531
|
-
const g =
|
|
1531
|
+
const g = yc(u, t);
|
|
1532
1532
|
g !== null && s.push(g);
|
|
1533
1533
|
return;
|
|
1534
1534
|
}
|
|
@@ -1545,11 +1545,11 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1545
1545
|
centers: s,
|
|
1546
1546
|
size: tt
|
|
1547
1547
|
}), i;
|
|
1548
|
-
},
|
|
1548
|
+
}, yc = (e, t) => {
|
|
1549
1549
|
const r = $(e), n = _(e);
|
|
1550
1550
|
return r === null || n === null ? null : Kt(ze(r, n), t);
|
|
1551
|
-
},
|
|
1552
|
-
const o = n?.type === "wipe" ? n : null, a = b(() => Ur(t.params), [t.params]), i = b(() =>
|
|
1551
|
+
}, xc = ge(function({ layer: t, animateTransitions: r, intro: n }) {
|
|
1552
|
+
const o = n?.type === "wipe" ? n : null, a = b(() => Ur(t.params), [t.params]), i = b(() => nl(t.params), [t.params]), s = G(t), d = b(() => {
|
|
1553
1553
|
const c = Se(t.data, t.mapping, t.id), u = [];
|
|
1554
1554
|
return t.data.groupBy(ne.group).forEach((h) => {
|
|
1555
1555
|
const g = _r([...h], t.params.missingValues), f = a(g);
|
|
@@ -1580,7 +1580,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1580
1580
|
t.mapping,
|
|
1581
1581
|
t.params,
|
|
1582
1582
|
s
|
|
1583
|
-
]).map((c) => /* @__PURE__ */ l(
|
|
1583
|
+
]).map((c) => /* @__PURE__ */ l(Ac, {
|
|
1584
1584
|
pathData: c.pathData,
|
|
1585
1585
|
fillPath: c.fillPath,
|
|
1586
1586
|
fillAlpha: c.fillAlpha,
|
|
@@ -1607,7 +1607,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1607
1607
|
children: d
|
|
1608
1608
|
}) : d
|
|
1609
1609
|
});
|
|
1610
|
-
}),
|
|
1610
|
+
}), Ac = ({ pathData: e, fillPath: t, fillAlpha: r, stroke: n, fill: o, strokeWidth: a, opacity: i, strokeAlpha: s, strokeDasharray: d, lineCap: c, lineJoin: u, animateTransitions: h }) => t !== void 0 && r !== void 0 ? /* @__PURE__ */ l(bc, {
|
|
1611
1611
|
fillPath: t,
|
|
1612
1612
|
fillAlpha: r,
|
|
1613
1613
|
fill: o,
|
|
@@ -1620,7 +1620,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1620
1620
|
lineCap: c,
|
|
1621
1621
|
lineJoin: u,
|
|
1622
1622
|
animateTransitions: h
|
|
1623
|
-
}) : h ? /* @__PURE__ */ l(
|
|
1623
|
+
}) : h ? /* @__PURE__ */ l(Sc, {
|
|
1624
1624
|
pathData: e,
|
|
1625
1625
|
stroke: n,
|
|
1626
1626
|
strokeWidth: a,
|
|
@@ -1640,7 +1640,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1640
1640
|
strokeLinecap: c,
|
|
1641
1641
|
strokeLinejoin: u,
|
|
1642
1642
|
vectorEffect: "non-scaling-stroke"
|
|
1643
|
-
}),
|
|
1643
|
+
}), bc = ({ fillPath: e, fillAlpha: t, linePath: r, stroke: n, fill: o, strokeWidth: a, opacity: i, strokeAlpha: s, strokeDasharray: d, lineCap: c, lineJoin: u, animateTransitions: h }) => {
|
|
1644
1644
|
const g = `line_fill_gradient_${Q()}`;
|
|
1645
1645
|
return /* @__PURE__ */ S(T, { children: [/* @__PURE__ */ l("defs", { children: /* @__PURE__ */ S("linearGradient", {
|
|
1646
1646
|
id: g,
|
|
@@ -1675,7 +1675,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1675
1675
|
lineJoin: u,
|
|
1676
1676
|
animateTransitions: h
|
|
1677
1677
|
})] });
|
|
1678
|
-
},
|
|
1678
|
+
}, Sc = ({ pathData: e, stroke: t, strokeWidth: r, opacity: n, strokeAlpha: o, strokeDasharray: a, lineCap: i, lineJoin: s }) => {
|
|
1679
1679
|
const d = Br(e, be);
|
|
1680
1680
|
return /* @__PURE__ */ l(V.path, {
|
|
1681
1681
|
d,
|
|
@@ -1689,7 +1689,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1689
1689
|
strokeLinejoin: s,
|
|
1690
1690
|
vectorEffect: "non-scaling-stroke"
|
|
1691
1691
|
});
|
|
1692
|
-
},
|
|
1692
|
+
}, wc = ({ layer: e, primary: t, companions: r }) => {
|
|
1693
1693
|
const n = G(e), o = Ve(t.observation), a = b(() => _r([...e.data.filter(ne.group, "eq", o)], e.params.missingValues), [
|
|
1694
1694
|
e.data,
|
|
1695
1695
|
e.params.missingValues,
|
|
@@ -1729,23 +1729,23 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1729
1729
|
})
|
|
1730
1730
|
]
|
|
1731
1731
|
});
|
|
1732
|
-
},
|
|
1732
|
+
}, kc = {
|
|
1733
1733
|
geom: "line",
|
|
1734
1734
|
coord: "cartesian",
|
|
1735
1735
|
swatchShape: "line",
|
|
1736
1736
|
guideMode: "crosshair",
|
|
1737
|
-
render: ({ layer: e, animateTransitions: t, intro: r }) => /* @__PURE__ */ l(
|
|
1737
|
+
render: ({ layer: e, animateTransitions: t, intro: r }) => /* @__PURE__ */ l(xc, {
|
|
1738
1738
|
layer: e,
|
|
1739
1739
|
animateTransitions: t,
|
|
1740
1740
|
intro: r
|
|
1741
1741
|
}),
|
|
1742
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ l(
|
|
1742
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ l(wc, {
|
|
1743
1743
|
layer: e,
|
|
1744
1744
|
primary: t,
|
|
1745
1745
|
companions: [...r, ...n]
|
|
1746
1746
|
}),
|
|
1747
1747
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ l(T, { children: e.map((t) => /* @__PURE__ */ l(Be, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
|
|
1748
|
-
getEditOutlineShapes:
|
|
1748
|
+
getEditOutlineShapes: mc,
|
|
1749
1749
|
getOverlayAnchor: ({ observation: e }) => {
|
|
1750
1750
|
const t = $(e), r = _(e);
|
|
1751
1751
|
return t === null || r === null ? null : {
|
|
@@ -1787,8 +1787,8 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1787
1787
|
size: r.get("size", a) + r.get("strokeWidth", a)
|
|
1788
1788
|
});
|
|
1789
1789
|
}
|
|
1790
|
-
return
|
|
1791
|
-
},
|
|
1790
|
+
return yd(o);
|
|
1791
|
+
}, Ec = ge(function({ layer: t, animateTransitions: r, intro: n }) {
|
|
1792
1792
|
const o = G(t), a = sr(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
1793
1793
|
return b(() => {
|
|
1794
1794
|
const i = a.activeIntro ? Se(t.data, t.mapping, t.id) : null, s = [];
|
|
@@ -1814,11 +1814,11 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1814
1814
|
"data-testid": "hovered-point",
|
|
1815
1815
|
children: r
|
|
1816
1816
|
}) : r;
|
|
1817
|
-
},
|
|
1817
|
+
}, Pc = {
|
|
1818
1818
|
geom: "point",
|
|
1819
1819
|
coord: "cartesian",
|
|
1820
1820
|
swatchShape: "circle",
|
|
1821
|
-
render: ({ layer: e, animateTransitions: t, intro: r }) => /* @__PURE__ */ l(
|
|
1821
|
+
render: ({ layer: e, animateTransitions: t, intro: r }) => /* @__PURE__ */ l(Ec, {
|
|
1822
1822
|
layer: e,
|
|
1823
1823
|
animateTransitions: t,
|
|
1824
1824
|
intro: r
|
|
@@ -1995,7 +1995,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
1995
1995
|
fontEditorSectionTitle: "var(--graphy-font-editor-section-title)",
|
|
1996
1996
|
fontEditorCaption: "var(--graphy-font-editor-caption)"
|
|
1997
1997
|
}, lr = `"Stack Sans Text", 'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
|
|
1998
|
-
'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`,
|
|
1998
|
+
'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, Rc = lr, ft = {
|
|
1999
1999
|
regular: ht.regular,
|
|
2000
2000
|
medium: ht.medium,
|
|
2001
2001
|
semibold: ht.semiBold,
|
|
@@ -2026,7 +2026,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2026
2026
|
}, me = (e) => `${e}em`, Fa = {
|
|
2027
2027
|
textScale: "1",
|
|
2028
2028
|
fontFamily: lr,
|
|
2029
|
-
fontFamilyHeading:
|
|
2029
|
+
fontFamilyHeading: Rc,
|
|
2030
2030
|
fontWeightRegular: ft.regular.toString(),
|
|
2031
2031
|
fontWeightMedium: ft.medium.toString(),
|
|
2032
2032
|
fontWeightSemibold: ft.semibold.toString(),
|
|
@@ -2084,7 +2084,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2084
2084
|
fontEditorControlValue: D(y.fontWeightMedium, y.fontSizeSm, y.fontLineHeightSm, gt),
|
|
2085
2085
|
fontEditorSectionTitle: D(y.fontWeightSemibold, y.fontSizeSm, y.fontLineHeightSm, gt),
|
|
2086
2086
|
fontEditorCaption: D(y.fontWeightMedium, y.fontSizeXxs, y.fontLineHeightXxs, gt)
|
|
2087
|
-
},
|
|
2087
|
+
}, Cc = (e, t) => ({ familyDefault: br(t) ?? br(e.fontFamily) ?? br(lr) ?? "" }), br = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), re = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, Lc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, gy = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, fy = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), py = (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), Ic = (e) => `${e}px`, za = { editorControlHeight: Ic(32) }, Ft = {
|
|
2088
2088
|
editOutline: 1,
|
|
2089
2089
|
textToolbar: 10,
|
|
2090
2090
|
textToolbarTooltip: 20,
|
|
@@ -2108,14 +2108,14 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2108
2108
|
zIndexToolbarTooltip: `${Ft.textToolbarTooltip}`,
|
|
2109
2109
|
zIndexToolbarPopover: `${Ft.textToolbarPopover}`,
|
|
2110
2110
|
zIndexEditorPopover: `${Ft.editorOverlayPopover}`
|
|
2111
|
-
},
|
|
2111
|
+
}, Tc = 8, Je = (e) => `${Tc * e}px`, Ka = {
|
|
2112
2112
|
spaceXxs: Je(0.25),
|
|
2113
2113
|
spaceXs: Je(0.5),
|
|
2114
2114
|
spaceSm: Je(0.75),
|
|
2115
2115
|
spaceMd: Je(1),
|
|
2116
2116
|
spaceLg: Je(1.5),
|
|
2117
2117
|
spaceXl: Je(2)
|
|
2118
|
-
},
|
|
2118
|
+
}, Bc = {
|
|
2119
2119
|
transparent: "transparent",
|
|
2120
2120
|
white: "#FFFFFF",
|
|
2121
2121
|
black: "#000000",
|
|
@@ -2142,7 +2142,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2142
2142
|
purple50: "#7B56EA",
|
|
2143
2143
|
purple30: "#E093FE",
|
|
2144
2144
|
grayGradient80: "linear-gradient(to top, #222429, #31353f)"
|
|
2145
|
-
},
|
|
2145
|
+
}, Mc = {
|
|
2146
2146
|
textPrimary: y.gray0,
|
|
2147
2147
|
textSecondary: re(y.textPrimary, 0.8),
|
|
2148
2148
|
textDisabled: re(y.textPrimary, 0.5),
|
|
@@ -2161,7 +2161,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2161
2161
|
raisedBackground: y.gray80,
|
|
2162
2162
|
overlayBackground: y.gray90,
|
|
2163
2163
|
overlayBorderGradient: y.grayGradient80
|
|
2164
|
-
},
|
|
2164
|
+
}, Oc = {
|
|
2165
2165
|
graphBackground: y.gray90,
|
|
2166
2166
|
toolbarBackgroundColor: y.overlayBackground,
|
|
2167
2167
|
toolbarButtonBackgroundColor: "transparent",
|
|
@@ -2172,7 +2172,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2172
2172
|
editorDefaultSurface: "#26241F",
|
|
2173
2173
|
editorDefaultText: "#ECE7DF",
|
|
2174
2174
|
editorDefaultShadow: `${y.elevationMd}, 0 16px 40px rgba(0, 0, 0, 0.45)`
|
|
2175
|
-
},
|
|
2175
|
+
}, Nc = {
|
|
2176
2176
|
canvasDefault: "#FFFFFF",
|
|
2177
2177
|
canvasBlue: "#60a5fa",
|
|
2178
2178
|
canvasCyan: "#22d3ee",
|
|
@@ -2184,20 +2184,20 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2184
2184
|
canvasPurple: "#a78bfa",
|
|
2185
2185
|
canvasGray: "#a8a29e",
|
|
2186
2186
|
canvasInverse: "#000000"
|
|
2187
|
-
},
|
|
2188
|
-
...Tc,
|
|
2187
|
+
}, Hc = {
|
|
2189
2188
|
...Bc,
|
|
2189
|
+
...Mc,
|
|
2190
2190
|
...Va,
|
|
2191
2191
|
...Ya,
|
|
2192
2192
|
...Ka,
|
|
2193
2193
|
...ja,
|
|
2194
|
-
...Mc,
|
|
2195
2194
|
...Oc,
|
|
2195
|
+
...Nc,
|
|
2196
2196
|
...za,
|
|
2197
2197
|
...Fa,
|
|
2198
2198
|
...Ga,
|
|
2199
2199
|
...Wa
|
|
2200
|
-
},
|
|
2200
|
+
}, Dc = {
|
|
2201
2201
|
transparent: "transparent",
|
|
2202
2202
|
white: "#FFFFFF",
|
|
2203
2203
|
black: "#000000",
|
|
@@ -2224,7 +2224,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2224
2224
|
purple50: "#7B56EA",
|
|
2225
2225
|
purple30: "#E093FE",
|
|
2226
2226
|
grayGradient80: "linear-gradient(to top, #F0F0F1, #F9F9FF)"
|
|
2227
|
-
},
|
|
2227
|
+
}, Fc = {
|
|
2228
2228
|
textPrimary: y.black,
|
|
2229
2229
|
textSecondary: re(y.textPrimary, 0.6),
|
|
2230
2230
|
textDisabled: re(y.textPrimary, 0.5),
|
|
@@ -2243,7 +2243,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2243
2243
|
raisedBackground: y.gray85,
|
|
2244
2244
|
overlayBackground: y.gray100,
|
|
2245
2245
|
overlayBorderGradient: y.border10
|
|
2246
|
-
},
|
|
2246
|
+
}, Gc = {
|
|
2247
2247
|
graphBackground: y.gray100,
|
|
2248
2248
|
toolbarBackgroundColor: y.overlayBackground,
|
|
2249
2249
|
toolbarButtonBackgroundColor: "transparent",
|
|
@@ -2254,7 +2254,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2254
2254
|
editorDefaultSurface: "#FFFFFF",
|
|
2255
2255
|
editorDefaultText: "#3B372F",
|
|
2256
2256
|
editorDefaultShadow: `${y.elevationMd}, 0 16px 40px rgba(20, 18, 15, 0.14)`
|
|
2257
|
-
},
|
|
2257
|
+
}, Wc = {
|
|
2258
2258
|
canvasDefault: "#000000",
|
|
2259
2259
|
canvasBlue: "#3b82f6",
|
|
2260
2260
|
canvasCyan: "#06b6d4",
|
|
@@ -2266,15 +2266,15 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2266
2266
|
canvasPurple: "#8b5cf6",
|
|
2267
2267
|
canvasGray: "#78716c",
|
|
2268
2268
|
canvasInverse: "#ffffff"
|
|
2269
|
-
},
|
|
2270
|
-
...Hc,
|
|
2269
|
+
}, zc = {
|
|
2271
2270
|
...Dc,
|
|
2271
|
+
...Fc,
|
|
2272
2272
|
...Va,
|
|
2273
2273
|
...Ya,
|
|
2274
2274
|
...Ka,
|
|
2275
2275
|
...ja,
|
|
2276
|
-
...Fc,
|
|
2277
2276
|
...Gc,
|
|
2277
|
+
...Wc,
|
|
2278
2278
|
...za,
|
|
2279
2279
|
...Fa,
|
|
2280
2280
|
...Ga,
|
|
@@ -2284,10 +2284,10 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2284
2284
|
for (const [n, o] of Object.entries(t))
|
|
2285
2285
|
o != null && (r[n] = o);
|
|
2286
2286
|
return {
|
|
2287
|
-
...e === "dark" ?
|
|
2287
|
+
...e === "dark" ? Hc : zc,
|
|
2288
2288
|
...r
|
|
2289
2289
|
};
|
|
2290
|
-
}, Ua = (e, t = {}, r) => ({ fonts:
|
|
2290
|
+
}, Ua = (e, t = {}, r) => ({ fonts: Cc(hn(e, t), r) }), Vc = Object.freeze(Ua("light")), Qa = Y(Vc), Yc = ({ metrics: e, children: t }) => /* @__PURE__ */ l(Qa.Provider, {
|
|
2291
2291
|
value: e,
|
|
2292
2292
|
children: t
|
|
2293
2293
|
}), Ke = () => N(Qa), dr = (e, t, r) => {
|
|
@@ -2302,7 +2302,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2302
2302
|
const n = je(), o = B((a) => e === void 0 ? void 0 : er(a.layers, e));
|
|
2303
2303
|
return b(() => {
|
|
2304
2304
|
if (o === void 0) return {};
|
|
2305
|
-
const a =
|
|
2305
|
+
const a = Tl(o, t), i = aa(n, o, a, {
|
|
2306
2306
|
width: r,
|
|
2307
2307
|
height: r
|
|
2308
2308
|
});
|
|
@@ -2318,7 +2318,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2318
2318
|
t,
|
|
2319
2319
|
r
|
|
2320
2320
|
]);
|
|
2321
|
-
},
|
|
2321
|
+
}, jc = /\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu, Xa = "😀", Kc = class qa {
|
|
2322
2322
|
constructor() {
|
|
2323
2323
|
this.emojiCorrections = /* @__PURE__ */ new Map(), this.currentFont = "";
|
|
2324
2324
|
const t = new OffscreenCanvas(1, 1).getContext("2d");
|
|
@@ -2329,11 +2329,11 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2329
2329
|
return typeof document < "u" && "fonts" in document && await document.fonts.ready, new qa();
|
|
2330
2330
|
}
|
|
2331
2331
|
measureText(t, r) {
|
|
2332
|
-
const n = St(t, r.textTransform), o =
|
|
2332
|
+
const n = St(t, r.textTransform), o = Vs(r);
|
|
2333
2333
|
this.setFont(o);
|
|
2334
2334
|
const { width: a, fontBoundingBoxAscent: i, fontBoundingBoxDescent: s } = this.ctx.measureText(n);
|
|
2335
|
-
let d = a +
|
|
2336
|
-
const c =
|
|
2335
|
+
let d = a + Zs(n, r.letterSpacing);
|
|
2336
|
+
const c = Uc(n);
|
|
2337
2337
|
if (c > 0) {
|
|
2338
2338
|
const u = this.getEmojiCorrection(o);
|
|
2339
2339
|
d -= u * c;
|
|
@@ -2352,7 +2352,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2352
2352
|
const r = this.emojiCorrections.get(t);
|
|
2353
2353
|
if (r !== void 0) return r;
|
|
2354
2354
|
this.setFont(t);
|
|
2355
|
-
const n = this.ctx.measureText(Xa).width, o =
|
|
2355
|
+
const n = this.ctx.measureText(Xa).width, o = Qc(t);
|
|
2356
2356
|
let a = 0;
|
|
2357
2357
|
if (o !== null) {
|
|
2358
2358
|
const i = n - o;
|
|
@@ -2360,19 +2360,19 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2360
2360
|
}
|
|
2361
2361
|
return this.emojiCorrections.set(t, a), a;
|
|
2362
2362
|
}
|
|
2363
|
-
}, Ee = null,
|
|
2364
|
-
const t = e.match(
|
|
2363
|
+
}, Ee = null, Uc = (e) => {
|
|
2364
|
+
const t = e.match(jc);
|
|
2365
2365
|
return t ? t.length : 0;
|
|
2366
|
-
},
|
|
2367
|
-
const t =
|
|
2366
|
+
}, Qc = (e) => {
|
|
2367
|
+
const t = Xc();
|
|
2368
2368
|
return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
|
|
2369
|
-
},
|
|
2369
|
+
}, Xc = () => 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 = Xa, document.body.appendChild(Ee)), Ee), Ja = Y(null), io = 3e3, qc = ({ children: e, measurer: t }) => {
|
|
2370
2370
|
const [r, n] = U(null);
|
|
2371
2371
|
W(() => {
|
|
2372
2372
|
if (t !== void 0) return;
|
|
2373
2373
|
let a = !1;
|
|
2374
2374
|
const i = () => {
|
|
2375
|
-
a || n(
|
|
2375
|
+
a || n(Jc());
|
|
2376
2376
|
};
|
|
2377
2377
|
if (!(typeof document < "u" && "fonts" in document)) {
|
|
2378
2378
|
i();
|
|
@@ -2396,13 +2396,13 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2396
2396
|
const e = N(Ja);
|
|
2397
2397
|
if (e === null) throw new Error("useTextMeasurer must be used inside a <TextMeasurerProvider>.");
|
|
2398
2398
|
return e;
|
|
2399
|
-
},
|
|
2399
|
+
}, Jc = () => {
|
|
2400
2400
|
try {
|
|
2401
|
-
return new Kn(new
|
|
2401
|
+
return new Kn(new Kc());
|
|
2402
2402
|
} catch {
|
|
2403
|
-
return new Kn(new
|
|
2403
|
+
return new Kn(new Ls());
|
|
2404
2404
|
}
|
|
2405
|
-
}, Za = Y(null), my = Za.Provider,
|
|
2405
|
+
}, Za = Y(null), my = Za.Provider, Zc = null, de = () => N(Za) ?? (Zc ??= hi()), $c = 11.7, _c = 0.75, so = 21.6, eu = "0 0 10 18", tu = "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", ru = "_16vokpr0", nu = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), ou = (e, t) => {
|
|
2406
2406
|
const r = C(e ? 1 - t : t);
|
|
2407
2407
|
return e ? {
|
|
2408
2408
|
x1: "0%",
|
|
@@ -2415,7 +2415,7 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2415
2415
|
x2: r,
|
|
2416
2416
|
y2: "100%"
|
|
2417
2417
|
};
|
|
2418
|
-
},
|
|
2418
|
+
}, au = (e, t, r, n) => {
|
|
2419
2419
|
const o = rt(e, t), a = {
|
|
2420
2420
|
...r === void 0 ? {} : { strokeLinecap: r },
|
|
2421
2421
|
...n === void 0 ? {} : { strokeLinejoin: n }
|
|
@@ -2426,18 +2426,18 @@ var Ar = 3, vc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
2426
2426
|
...a,
|
|
2427
2427
|
...(e[0] ?? 0) > 1 ? { strokeMiterlimit: 16 } : {}
|
|
2428
2428
|
};
|
|
2429
|
-
},
|
|
2429
|
+
}, iu = (e, t) => Gt(e) && Gt(t) ? `${e}: ${t}` : Gt(e) ? e : Gt(t) ? t : null, su = (e) => e ? 14 : 0, lu = (e, t) => e * _c - su(t) - 10, du = (e, t, r) => {
|
|
2430
2430
|
const n = e * r, o = -13 - n, a = r + 13 - n - t;
|
|
2431
2431
|
return a < o ? o : Math.min(Math.max(-t / 2, o), a);
|
|
2432
|
-
}, Gt = (e) => e != null && e.trim() !== "", $a = Object.freeze({}), vn = Y($a),
|
|
2432
|
+
}, Gt = (e) => e != null && e.trim() !== "", $a = Object.freeze({}), vn = Y($a), cu = ({ slots: e, children: t }) => /* @__PURE__ */ l(vn.Provider, {
|
|
2433
2433
|
value: e ?? $a,
|
|
2434
2434
|
children: t
|
|
2435
2435
|
});
|
|
2436
2436
|
function xe(e, t) {
|
|
2437
2437
|
const r = N(vn)[e];
|
|
2438
|
-
return r === void 0 ? t : typeof r == "object" &&
|
|
2438
|
+
return r === void 0 ? t : typeof r == "object" && hu(r) ? r.render : r;
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2440
|
+
function uu() {
|
|
2441
2441
|
const e = N(vn);
|
|
2442
2442
|
return {
|
|
2443
2443
|
measureAxis: e.AxisTicks?.measure,
|
|
@@ -2447,20 +2447,20 @@ function cu() {
|
|
|
2447
2447
|
measureHeadlineItemWidths: e.Headline?.measure.measureHeadlineItemWidths
|
|
2448
2448
|
};
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2450
|
+
function hu(e) {
|
|
2451
2451
|
return "render" in e && "measure" in e;
|
|
2452
2452
|
}
|
|
2453
|
-
var
|
|
2454
|
-
const h =
|
|
2453
|
+
var vu = "_2qyyu60", gu = 2, fu = 12, pu = 12, lo = 1, co = 2, mu = 4, yu = 3, xu = 2, Au = /* @__PURE__ */ new Set(["square", "slice"]), uo = 0.375, _a = 1, It = (e) => /* @__PURE__ */ l(xe("Swatch", bu), { ...e }), bu = ({ shape: e, color: t, paint: r, lineType: n = "solid", width: o = fu, height: a = pu, strokeWidth: i = gu, alpha: s, cornerRadius: d, symbol: c, mainAxis: u = "x" }) => {
|
|
2454
|
+
const h = ku(e, t, r, Math.min(o, a)), g = le({ paints: [h] }), f = g.fillFor(h);
|
|
2455
2455
|
return /* @__PURE__ */ S("svg", {
|
|
2456
|
-
className:
|
|
2456
|
+
className: vu,
|
|
2457
2457
|
width: o,
|
|
2458
2458
|
height: a,
|
|
2459
2459
|
viewBox: `0 0 ${o} ${a}`,
|
|
2460
2460
|
"aria-hidden": !0,
|
|
2461
2461
|
"data-testid": "chart-swatch",
|
|
2462
2462
|
"data-shape": e,
|
|
2463
|
-
children: [g.defs,
|
|
2463
|
+
children: [g.defs, Su({
|
|
2464
2464
|
shape: e,
|
|
2465
2465
|
color: t,
|
|
2466
2466
|
fill: f,
|
|
@@ -2474,8 +2474,8 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2474
2474
|
mainAxis: u
|
|
2475
2475
|
})]
|
|
2476
2476
|
});
|
|
2477
|
-
},
|
|
2478
|
-
const h =
|
|
2477
|
+
}, Su = ({ shape: e, color: t, fill: r, lineType: n, width: o, height: a, strokeWidth: i, alpha: s, cornerRadius: d, symbol: c, mainAxis: u }) => {
|
|
2478
|
+
const h = Pu(n, o);
|
|
2479
2479
|
switch (e) {
|
|
2480
2480
|
case "square":
|
|
2481
2481
|
return /* @__PURE__ */ l("rect", {
|
|
@@ -2502,7 +2502,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2502
2502
|
case "circle": {
|
|
2503
2503
|
const g = Math.max(0, (Math.min(o, a) - 2) / 2);
|
|
2504
2504
|
if (c !== void 0 && c !== "circle") {
|
|
2505
|
-
const f =
|
|
2505
|
+
const f = Ks(c, o - 2, a - 2);
|
|
2506
2506
|
return /* @__PURE__ */ l("path", {
|
|
2507
2507
|
transform: `translate(${o / 2 + f.offsetX} ${a / 2 + f.offsetY})`,
|
|
2508
2508
|
d: f.path,
|
|
@@ -2546,7 +2546,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2546
2546
|
});
|
|
2547
2547
|
case "interval":
|
|
2548
2548
|
return /* @__PURE__ */ l("path", {
|
|
2549
|
-
d:
|
|
2549
|
+
d: wu(o, a, u),
|
|
2550
2550
|
fill: "none",
|
|
2551
2551
|
stroke: t,
|
|
2552
2552
|
strokeWidth: _a,
|
|
@@ -2555,7 +2555,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2555
2555
|
default:
|
|
2556
2556
|
return e;
|
|
2557
2557
|
}
|
|
2558
|
-
},
|
|
2558
|
+
}, wu = (e, t, r) => {
|
|
2559
2559
|
const n = _a / 2;
|
|
2560
2560
|
if (r === "x") {
|
|
2561
2561
|
const s = e / 2, d = e * uo, c = (u) => `M ${s - d} ${u} H ${s + d}`;
|
|
@@ -2563,14 +2563,14 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2563
2563
|
}
|
|
2564
2564
|
const o = t / 2, a = t * uo, i = (s) => `M ${s} ${o - a} V ${o + a}`;
|
|
2565
2565
|
return `${i(n)} M ${n} ${o} H ${e - n} ${i(e - n)}`;
|
|
2566
|
-
},
|
|
2566
|
+
}, ku = (e, t, r, n) => r === void 0 ? t : Au.has(e) ? Eu(r, n) : z(r), Eu = (e, t) => {
|
|
2567
2567
|
if (typeof e == "string" || !Jr(e)) return e;
|
|
2568
|
-
const r = Math.max(
|
|
2568
|
+
const r = Math.max(xu, Math.floor(t / yu));
|
|
2569
2569
|
return {
|
|
2570
2570
|
...e,
|
|
2571
2571
|
size: Math.min(e.size ?? 8, r)
|
|
2572
2572
|
};
|
|
2573
|
-
},
|
|
2573
|
+
}, Pu = (e, t) => e === "solid" ? {
|
|
2574
2574
|
x1: 0,
|
|
2575
2575
|
x2: t,
|
|
2576
2576
|
dashArray: void 0,
|
|
@@ -2583,7 +2583,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2583
2583
|
} : {
|
|
2584
2584
|
x1: 0,
|
|
2585
2585
|
x2: t,
|
|
2586
|
-
dashArray: `1 ${t / (
|
|
2586
|
+
dashArray: `1 ${t / (mu - 1)}`,
|
|
2587
2587
|
linecap: "round"
|
|
2588
2588
|
}, lt = (e, t = y.fontFamily) => ({
|
|
2589
2589
|
fontFamily: e.fontFamily ?? t,
|
|
@@ -2597,7 +2597,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2597
2597
|
strokeWidth: e.textOutlineWidth * 2,
|
|
2598
2598
|
strokeLinejoin: "round",
|
|
2599
2599
|
paintOrder: "stroke"
|
|
2600
|
-
} : {}, gn = (e) => e.textShadow === void 0 ? {} : { textShadow:
|
|
2600
|
+
} : {}, gn = (e) => e.textShadow === void 0 ? {} : { textShadow: id(e.textShadow) }, hr = (e) => {
|
|
2601
2601
|
const t = e.textShadow === void 0 ? void 0 : Ye(e.textShadow);
|
|
2602
2602
|
return t === void 0 ? {} : { filter: t };
|
|
2603
2603
|
}, fn = (e) => ei(e) ? {
|
|
@@ -2629,7 +2629,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2629
2629
|
[e.letterSpacing]: t.letterSpacing === void 0 ? "normal" : `${t.letterSpacing}px`,
|
|
2630
2630
|
[e.lineHeight]: String(t.lineHeight),
|
|
2631
2631
|
[e.textColor]: t.textColor
|
|
2632
|
-
}), ei = (e) => e.textOutlineColor !== void 0 && e.textOutlineWidth !== void 0 && e.textOutlineWidth > 0,
|
|
2632
|
+
}), ei = (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, animateTransitions: i }) => {
|
|
2633
2633
|
const s = e === "start", d = s ? -13 : -(n - 13), c = s ? d + n - 5 : d + 5 - 12, u = s ? void 0 : `rotate(180 ${c + 12 / 2} ${o / 2})`, h = s ? "0%" : "100%", g = C(1 - t), f = /* @__PURE__ */ S("g", {
|
|
2634
2634
|
transform: `translate(0, ${-o / 2})`,
|
|
2635
2635
|
pointerEvents: "none",
|
|
@@ -2649,10 +2649,10 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2649
2649
|
y: (o - so) / 2,
|
|
2650
2650
|
width: 12,
|
|
2651
2651
|
height: so,
|
|
2652
|
-
viewBox:
|
|
2652
|
+
viewBox: eu,
|
|
2653
2653
|
overflow: "visible",
|
|
2654
2654
|
children: /* @__PURE__ */ l("path", {
|
|
2655
|
-
d:
|
|
2655
|
+
d: tu,
|
|
2656
2656
|
fill: r
|
|
2657
2657
|
})
|
|
2658
2658
|
})
|
|
@@ -2676,9 +2676,9 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2676
2676
|
overflow: "visible",
|
|
2677
2677
|
children: f
|
|
2678
2678
|
});
|
|
2679
|
-
},
|
|
2679
|
+
}, Cu = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, panelWidth: a, text: i, animateTransitions: s }) => {
|
|
2680
2680
|
const d = e === "start", c = d ? -13 : -(o - 13), u = C(t), h = d ? "100%" : "0%", g = /* @__PURE__ */ S("g", {
|
|
2681
|
-
transform: `translate(${
|
|
2681
|
+
transform: `translate(${du(t, n, a)}, 0)`,
|
|
2682
2682
|
pointerEvents: "none",
|
|
2683
2683
|
children: [/* @__PURE__ */ l("rect", {
|
|
2684
2684
|
x: 0,
|
|
@@ -2705,8 +2705,8 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2705
2705
|
overflow: "visible",
|
|
2706
2706
|
children: g
|
|
2707
2707
|
});
|
|
2708
|
-
},
|
|
2709
|
-
const A = d === null ? 0 : 14, x = r + A + 10, w = Math.max(
|
|
2708
|
+
}, Lu = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, horizontal: o, position: a, color: i, textColor: s, symbolShape: d, symbolColor: c, symbolPaint: u, symbolAlpha: h, symbolCornerRadius: g, symbolGlyph: f, symbolMainAxis: v, panelWidth: m, animateTransitions: p }) => {
|
|
2709
|
+
const A = d === null ? 0 : 14, x = r + A + 10, w = Math.max($c, We(t)) + 10, k = /* @__PURE__ */ S(T, { children: [d !== null && c !== null && /* @__PURE__ */ l("g", {
|
|
2710
2710
|
transform: `translate(0, ${-10 / 2})`,
|
|
2711
2711
|
children: /* @__PURE__ */ l(It, {
|
|
2712
2712
|
shape: d,
|
|
@@ -2732,7 +2732,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2732
2732
|
...ur(t),
|
|
2733
2733
|
children: St(e, t.textTransform)
|
|
2734
2734
|
})] });
|
|
2735
|
-
return o ? /* @__PURE__ */ l(
|
|
2735
|
+
return o ? /* @__PURE__ */ l(Ru, {
|
|
2736
2736
|
labelPosition: n,
|
|
2737
2737
|
linePosition: a,
|
|
2738
2738
|
color: i,
|
|
@@ -2740,7 +2740,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2740
2740
|
pillHeight: w,
|
|
2741
2741
|
text: k,
|
|
2742
2742
|
animateTransitions: p
|
|
2743
|
-
}) : /* @__PURE__ */ l(
|
|
2743
|
+
}) : /* @__PURE__ */ l(Cu, {
|
|
2744
2744
|
labelPosition: n,
|
|
2745
2745
|
linePosition: a,
|
|
2746
2746
|
color: i,
|
|
@@ -2750,8 +2750,8 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2750
2750
|
text: k,
|
|
2751
2751
|
animateTransitions: p
|
|
2752
2752
|
});
|
|
2753
|
-
},
|
|
2754
|
-
const c =
|
|
2753
|
+
}, Iu = ({ strokeWidth: e, dashArray: t, lineCap: r, lineJoin: n, horizontal: o, position: a, lineColor: i, effects: s, animateTransitions: d }) => {
|
|
2754
|
+
const c = ou(o, a), u = au(t, e, r, n);
|
|
2755
2755
|
return d ? /* @__PURE__ */ l(V.line, {
|
|
2756
2756
|
initial: !1,
|
|
2757
2757
|
transition: be,
|
|
@@ -2774,17 +2774,17 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2774
2774
|
strokeWidth: e,
|
|
2775
2775
|
vectorEffect: "non-scaling-stroke"
|
|
2776
2776
|
});
|
|
2777
|
-
},
|
|
2777
|
+
}, Tu = ge(function({ layer: t, coordSystem: r, formattingLocale: n, animateTransitions: o, panelWidth: a }) {
|
|
2778
2778
|
const i = Oe(), s = de(), { guides: d, numberFormat: c, specLayers: u, colorScale: h } = B(oe((j) => ({
|
|
2779
2779
|
guides: j.guides,
|
|
2780
2780
|
numberFormat: j.config.numberFormat,
|
|
2781
2781
|
specLayers: j.spec.layers,
|
|
2782
2782
|
colorScale: j.scales.color
|
|
2783
|
-
}))), g = b(() =>
|
|
2783
|
+
}))), g = b(() => Fs(u, h).get(t.id) ?? null, [
|
|
2784
2784
|
u,
|
|
2785
2785
|
h,
|
|
2786
2786
|
t.id
|
|
2787
|
-
]), f = g ? s(g.geom, r.type)?.swatchShape ?? "square" : null, v = cr(g?.layerId, g?.groupValue, 10), m = dr(g?.layerId, g?.groupValue, g?.color) ?? null, p = b(() =>
|
|
2787
|
+
]), f = g ? s(g.geom, r.type)?.swatchShape ?? "square" : null, v = cr(g?.layerId, g?.groupValue, 10), m = dr(g?.layerId, g?.groupValue, g?.color) ?? null, p = b(() => iu(t.params.label, ul({
|
|
2788
2788
|
guides: d,
|
|
2789
2789
|
numberFormat: c,
|
|
2790
2790
|
layer: t,
|
|
@@ -2794,7 +2794,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2794
2794
|
c,
|
|
2795
2795
|
n,
|
|
2796
2796
|
t
|
|
2797
|
-
]), { fonts: A } = Ke(), x = O(), w = I(
|
|
2797
|
+
]), { fonts: A } = Ke(), x = O(), w = I(jl, x.geom.rule.label(t), x.graph()), k = b(() => te(w, A.familyDefault), [w, A.familyDefault]), E = b(() => p === null ? null : la(p, lu(a, f !== null), (j) => i.measureText(j, k).width), [
|
|
2798
2798
|
p,
|
|
2799
2799
|
a,
|
|
2800
2800
|
f,
|
|
@@ -2806,11 +2806,11 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2806
2806
|
i
|
|
2807
2807
|
]), L = G(t), P = t.data.getFirst();
|
|
2808
2808
|
if (!P) return null;
|
|
2809
|
-
const M = L.get("stroke", P), H =
|
|
2809
|
+
const M = L.get("stroke", P), H = Bu(w, M), J = nu(t, r), ce = J ? _(P) : $(P);
|
|
2810
2810
|
return ce === null ? null : /* @__PURE__ */ S("g", {
|
|
2811
2811
|
"data-geom": "rule",
|
|
2812
|
-
className:
|
|
2813
|
-
children: [/* @__PURE__ */ l(
|
|
2812
|
+
className: ru,
|
|
2813
|
+
children: [/* @__PURE__ */ l(Iu, {
|
|
2814
2814
|
strokeWidth: L.get("strokeWidth", P),
|
|
2815
2815
|
dashArray: L.get("dashArray", P),
|
|
2816
2816
|
lineCap: L.get("lineCap", P),
|
|
@@ -2820,7 +2820,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2820
2820
|
lineColor: M,
|
|
2821
2821
|
effects: q(X(L, P)),
|
|
2822
2822
|
animateTransitions: o
|
|
2823
|
-
}), E !== null && E !== "" && /* @__PURE__ */ l(
|
|
2823
|
+
}), E !== null && E !== "" && /* @__PURE__ */ l(Lu, {
|
|
2824
2824
|
label: E,
|
|
2825
2825
|
textStyle: w,
|
|
2826
2826
|
textWidth: R,
|
|
@@ -2840,10 +2840,10 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2840
2840
|
animateTransitions: o
|
|
2841
2841
|
})]
|
|
2842
2842
|
});
|
|
2843
|
-
}),
|
|
2843
|
+
}), Bu = (e, t) => e.textColor === void 0 ? $o(t) : e.hasThemedTextColor ? Qr(e.textColor, t) : e.textColor, Mu = {
|
|
2844
2844
|
geom: "rule",
|
|
2845
2845
|
coord: "cartesian",
|
|
2846
|
-
render: ({ layer: e, coordSystem: t, formattingLocale: r, animateTransitions: n, panelRect: o }) => /* @__PURE__ */ l(
|
|
2846
|
+
render: ({ layer: e, coordSystem: t, formattingLocale: r, animateTransitions: n, panelRect: o }) => /* @__PURE__ */ l(Tu, {
|
|
2847
2847
|
layer: e,
|
|
2848
2848
|
coordSystem: t,
|
|
2849
2849
|
formattingLocale: r,
|
|
@@ -2852,10 +2852,10 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2852
2852
|
}),
|
|
2853
2853
|
renderHover: () => null,
|
|
2854
2854
|
renderHoverCompanions: () => null
|
|
2855
|
-
}, pn = (e, t, r) =>
|
|
2855
|
+
}, pn = (e, t, r) => Wl({
|
|
2856
2856
|
cornerRadius: e,
|
|
2857
2857
|
box: Te(t, r)
|
|
2858
|
-
}),
|
|
2858
|
+
}), Ou = ({ layer: e, panelRect: t, styleReaders: r, animateTransitions: n }) => {
|
|
2859
2859
|
let o = "";
|
|
2860
2860
|
for (const a of e.data) {
|
|
2861
2861
|
const i = Xr(a);
|
|
@@ -2866,14 +2866,14 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2866
2866
|
pathData: o,
|
|
2867
2867
|
animateTransitions: n
|
|
2868
2868
|
}];
|
|
2869
|
-
},
|
|
2869
|
+
}, Nu = ({ intro: e, children: t }) => N(Rt)?.fading ? t : /* @__PURE__ */ l(V.g, {
|
|
2870
2870
|
initial: { opacity: 0 },
|
|
2871
2871
|
animate: { opacity: 1 },
|
|
2872
2872
|
transition: Sa(e),
|
|
2873
2873
|
children: t
|
|
2874
|
-
}),
|
|
2874
|
+
}), Hu = ge(function({ layer: t, panelRect: r, animateTransitions: n, intro: o }) {
|
|
2875
2875
|
const a = o?.type === "fade" ? o : null, i = G(t), { paints: s, paintAt: d } = Lt(t, i), { fillFor: c, defs: u } = le({ paints: s }), h = b(() => {
|
|
2876
|
-
const g =
|
|
2876
|
+
const g = sl(t.data, t.mapping, t.id), f = [];
|
|
2877
2877
|
let v = -1;
|
|
2878
2878
|
for (const m of t.data) {
|
|
2879
2879
|
v += 1;
|
|
@@ -2889,7 +2889,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2889
2889
|
effects: q(X(i, m))
|
|
2890
2890
|
});
|
|
2891
2891
|
}
|
|
2892
|
-
return f.map(({ key: m, ...p }) => /* @__PURE__ */ l(
|
|
2892
|
+
return f.map(({ key: m, ...p }) => /* @__PURE__ */ l(Du, {
|
|
2893
2893
|
...p,
|
|
2894
2894
|
animated: n
|
|
2895
2895
|
}, m));
|
|
@@ -2901,11 +2901,11 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2901
2901
|
c,
|
|
2902
2902
|
d
|
|
2903
2903
|
]);
|
|
2904
|
-
return a ? /* @__PURE__ */ S(
|
|
2904
|
+
return a ? /* @__PURE__ */ S(Nu, {
|
|
2905
2905
|
intro: a,
|
|
2906
2906
|
children: [u, h]
|
|
2907
2907
|
}) : /* @__PURE__ */ S(T, { children: [u, h] });
|
|
2908
|
-
}),
|
|
2908
|
+
}), Du = ({ animated: e, ...t }) => e ? /* @__PURE__ */ l(V.rect, {
|
|
2909
2909
|
initial: !1,
|
|
2910
2910
|
style: t.effects,
|
|
2911
2911
|
transition: be,
|
|
@@ -2931,7 +2931,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2931
2931
|
rx: t.rx,
|
|
2932
2932
|
stroke: t.stroke,
|
|
2933
2933
|
strokeWidth: t.strokeWidth
|
|
2934
|
-
}),
|
|
2934
|
+
}), Fu = ({ layer: e, primary: t, panelRect: r }) => {
|
|
2935
2935
|
const n = G(e), o = n.get("fill", t.observation), { fillFor: a, defs: i } = le({ paints: [o] }), s = Xr(t.observation);
|
|
2936
2936
|
if (!s) return null;
|
|
2937
2937
|
const d = a(o), c = n.get("alpha", t.observation) * n.get("fillAlpha", t.observation), u = n.get("stroke", t.observation, "hovered") ?? Vr, h = n.get("strokeWidth", t.observation, "hovered"), g = pn(n.get("cornerRadius", t.observation, "hovered"), s, r), f = s.x * r.width, v = s.y * r.height, m = s.width * r.width, p = s.height * r.height;
|
|
@@ -2960,24 +2960,24 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
2960
2960
|
})
|
|
2961
2961
|
]
|
|
2962
2962
|
});
|
|
2963
|
-
},
|
|
2963
|
+
}, Gu = {
|
|
2964
2964
|
geom: "tile",
|
|
2965
2965
|
coord: "cartesian",
|
|
2966
2966
|
swatchShape: "square",
|
|
2967
2967
|
guideMode: null,
|
|
2968
|
-
render: ({ layer: e, panelRect: t, animateTransitions: r, intro: n }) => /* @__PURE__ */ l(
|
|
2968
|
+
render: ({ layer: e, panelRect: t, animateTransitions: r, intro: n }) => /* @__PURE__ */ l(Hu, {
|
|
2969
2969
|
layer: e,
|
|
2970
2970
|
panelRect: t,
|
|
2971
2971
|
animateTransitions: r,
|
|
2972
2972
|
intro: n
|
|
2973
2973
|
}),
|
|
2974
|
-
renderHover: ({ layer: e, primary: t, panelRect: r }) => /* @__PURE__ */ l(
|
|
2974
|
+
renderHover: ({ layer: e, primary: t, panelRect: r }) => /* @__PURE__ */ l(Fu, {
|
|
2975
2975
|
layer: e,
|
|
2976
2976
|
primary: t,
|
|
2977
2977
|
panelRect: r
|
|
2978
2978
|
}),
|
|
2979
2979
|
renderHoverCompanions: () => null,
|
|
2980
|
-
getEditOutlineShapes:
|
|
2980
|
+
getEditOutlineShapes: Ou
|
|
2981
2981
|
}, Ut = ({ primary: e, companions: t }) => {
|
|
2982
2982
|
const r = /* @__PURE__ */ S(T, { children: [t.map((n) => /* @__PURE__ */ l(Be, {
|
|
2983
2983
|
hit: n,
|
|
@@ -3000,7 +3000,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3000
3000
|
scaleX: t.radius,
|
|
3001
3001
|
scaleY: t.radius
|
|
3002
3002
|
};
|
|
3003
|
-
},
|
|
3003
|
+
}, Wu = (e) => ({
|
|
3004
3004
|
...at(e),
|
|
3005
3005
|
digits: 2
|
|
3006
3006
|
}), ri = (e, t, r) => se(e, t, at(r)), Or = (e) => {
|
|
@@ -3008,7 +3008,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3008
3008
|
if (!t) return "";
|
|
3009
3009
|
const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
|
|
3010
3010
|
return `M ${t.x} ${t.y} ${n} Z`;
|
|
3011
|
-
},
|
|
3011
|
+
}, zu = ge(function({ layer: t, panelRect: r }) {
|
|
3012
3012
|
const n = G(t), o = b(() => {
|
|
3013
3013
|
const s = Se(t.data, t.mapping, t.id), d = [];
|
|
3014
3014
|
return t.data.groupBy(ne.group).forEach((c) => {
|
|
@@ -3086,7 +3086,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3086
3086
|
outer: r,
|
|
3087
3087
|
hole: n.some((o) => o.x !== 0 || o.y !== 0) ? [...n].reverse() : null
|
|
3088
3088
|
};
|
|
3089
|
-
},
|
|
3089
|
+
}, Vu = ({ layer: e, panelRect: t }) => {
|
|
3090
3090
|
const r = ti(t), n = [], o = [];
|
|
3091
3091
|
return e.data.groupBy(ne.group).forEach((a) => {
|
|
3092
3092
|
const i = [...a], [s] = i;
|
|
@@ -3110,7 +3110,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3110
3110
|
centers: o,
|
|
3111
3111
|
size: tt
|
|
3112
3112
|
}), n;
|
|
3113
|
-
},
|
|
3113
|
+
}, Yu = ({ layer: e, primary: t, companions: r, panelRect: n }) => {
|
|
3114
3114
|
const o = G(e), a = Ve(t.observation), i = o.get("fill", t.observation, "hovered"), { fillFor: s, defs: d } = le({
|
|
3115
3115
|
paints: [i],
|
|
3116
3116
|
unitsPerPixel: Ct(n)
|
|
@@ -3159,23 +3159,23 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3159
3159
|
"data-testid": "hovered-area-point"
|
|
3160
3160
|
})
|
|
3161
3161
|
] });
|
|
3162
|
-
},
|
|
3162
|
+
}, ju = {
|
|
3163
3163
|
geom: "area",
|
|
3164
3164
|
coord: "polar",
|
|
3165
3165
|
swatchShape: "area",
|
|
3166
3166
|
guideMode: "crosshair",
|
|
3167
|
-
render: ({ layer: e, panelRect: t }) => /* @__PURE__ */ l(
|
|
3167
|
+
render: ({ layer: e, panelRect: t }) => /* @__PURE__ */ l(zu, {
|
|
3168
3168
|
layer: e,
|
|
3169
3169
|
panelRect: t
|
|
3170
3170
|
}),
|
|
3171
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n, panelRect: o }) => /* @__PURE__ */ l(
|
|
3171
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n, panelRect: o }) => /* @__PURE__ */ l(Yu, {
|
|
3172
3172
|
layer: e,
|
|
3173
3173
|
primary: t,
|
|
3174
3174
|
companions: [...r, ...n],
|
|
3175
3175
|
panelRect: o
|
|
3176
3176
|
}),
|
|
3177
3177
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ l(Ut, { companions: e }),
|
|
3178
|
-
getEditOutlineShapes:
|
|
3178
|
+
getEditOutlineShapes: Vu,
|
|
3179
3179
|
getOverlayAnchor: ({ observation: e }) => {
|
|
3180
3180
|
const t = $(e), r = tr(e) ?? _(e);
|
|
3181
3181
|
if (t === null || r === null) return null;
|
|
@@ -3186,7 +3186,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3186
3186
|
};
|
|
3187
3187
|
}
|
|
3188
3188
|
}, mn = (e) => {
|
|
3189
|
-
const { startAngle: t, endAngle: r } =
|
|
3189
|
+
const { startAngle: t, endAngle: r } = hl(e), { innerRadius: n, outerRadius: o } = Xo(e);
|
|
3190
3190
|
return t === null || r === null || n === null || o === null ? null : {
|
|
3191
3191
|
startAngle: t,
|
|
3192
3192
|
endAngle: r,
|
|
@@ -3220,10 +3220,10 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3220
3220
|
union: s
|
|
3221
3221
|
});
|
|
3222
3222
|
return o;
|
|
3223
|
-
},
|
|
3223
|
+
}, Ku = (e, t, r, n, o) => e.get(jr(t, o)) ?? {
|
|
3224
3224
|
style: ir(r, n),
|
|
3225
3225
|
union: qo([o])
|
|
3226
|
-
}, xn = ({ style: e, union: t }) =>
|
|
3226
|
+
}, xn = ({ style: e, union: t }) => Yl(e.cornerRadius, t.outerRadius - t.innerRadius), ii = (e, t, r, n) => Ge({
|
|
3227
3227
|
...t.union,
|
|
3228
3228
|
cornerRadius: xn(t),
|
|
3229
3229
|
slice: r === "x" ? {
|
|
@@ -3235,8 +3235,8 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3235
3235
|
from: e.startAngle,
|
|
3236
3236
|
to: e.endAngle
|
|
3237
3237
|
}
|
|
3238
|
-
}, n),
|
|
3239
|
-
const { bandAxis: i } = r, s =
|
|
3238
|
+
}, n), Uu = ln(yn), Qu = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o, animateTransitions: a }) => {
|
|
3239
|
+
const { bandAxis: i } = r, s = Uu(t, i, o), d = Wu(n);
|
|
3240
3240
|
let c = "";
|
|
3241
3241
|
for (const u of e.data) {
|
|
3242
3242
|
const h = mn(u);
|
|
@@ -3253,7 +3253,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3253
3253
|
stroke: e,
|
|
3254
3254
|
strokeWidth: t,
|
|
3255
3255
|
vectorEffect: "non-scaling-stroke"
|
|
3256
|
-
}),
|
|
3256
|
+
}), Xu = ge(function({ layer: t, coordSystem: r, animateTransitions: n, intro: o, panelRect: a }) {
|
|
3257
3257
|
const i = Q(), s = sr(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), d = r.bandAxis !== "x", c = G(t), { paints: u, paintAt: h } = Lt(t, c), { fillFor: g, defs: f } = le({
|
|
3258
3258
|
paints: u,
|
|
3259
3259
|
unitsPerPixel: Ct(a)
|
|
@@ -3286,7 +3286,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3286
3286
|
children: [f, v.map((m, p) => {
|
|
3287
3287
|
const { stroke: A, strokeWidth: x, strokeAlpha: w } = m.style, k = A !== void 0, E = kt(x), R = A === void 0 ? {} : Qt(A, E.separatorWidth), L = A === void 0 ? void 0 : Qt(A, E.outlineWidth), P = m.members.map((ce) => {
|
|
3288
3288
|
const { key: j, ...Ce } = ce;
|
|
3289
|
-
return s.animated ? /* @__PURE__ */ l(
|
|
3289
|
+
return s.animated ? /* @__PURE__ */ l(qu, {
|
|
3290
3290
|
...Ce,
|
|
3291
3291
|
animation: s,
|
|
3292
3292
|
sweepsInOnLateMount: d,
|
|
@@ -3307,7 +3307,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3307
3307
|
const H = `${i}${p}`;
|
|
3308
3308
|
if (s.animated) return /* @__PURE__ */ l("g", {
|
|
3309
3309
|
clipPath: `url(#${H})`,
|
|
3310
|
-
children: /* @__PURE__ */ l(
|
|
3310
|
+
children: /* @__PURE__ */ l(Ju, {
|
|
3311
3311
|
...m.union,
|
|
3312
3312
|
cornerRadius: M,
|
|
3313
3313
|
animation: s,
|
|
@@ -3401,14 +3401,14 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3401
3401
|
o,
|
|
3402
3402
|
w
|
|
3403
3403
|
]), w;
|
|
3404
|
-
},
|
|
3404
|
+
}, qu = ({ pathProps: e, ...t }) => {
|
|
3405
3405
|
const r = si(t);
|
|
3406
3406
|
return /* @__PURE__ */ l(V.path, {
|
|
3407
3407
|
d: r,
|
|
3408
3408
|
transition: be,
|
|
3409
3409
|
...e
|
|
3410
3410
|
});
|
|
3411
|
-
},
|
|
3411
|
+
}, Ju = ({ clipId: e, outlineProps: t, outlineOpacity: r, children: n, ...o }) => {
|
|
3412
3412
|
const a = si(o);
|
|
3413
3413
|
return /* @__PURE__ */ S(T, { children: [
|
|
3414
3414
|
/* @__PURE__ */ l("clipPath", {
|
|
@@ -3424,7 +3424,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3424
3424
|
...t
|
|
3425
3425
|
})
|
|
3426
3426
|
] });
|
|
3427
|
-
},
|
|
3427
|
+
}, Zu = (e, t, r) => {
|
|
3428
3428
|
const n = e === "solo" || e === "floor", o = e === "solo" || e === "ceiling", a = !qr(r.startAngle, r.endAngle);
|
|
3429
3429
|
return t === "x" ? {
|
|
3430
3430
|
innerArc: n,
|
|
@@ -3440,7 +3440,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3440
3440
|
}, li = ({ observation: e, bandAxis: t, styleReaders: r, groupPaints: n, state: o, fill: a }) => {
|
|
3441
3441
|
const i = Q(), s = mn(e);
|
|
3442
3442
|
if (s === null) return null;
|
|
3443
|
-
const d =
|
|
3443
|
+
const d = Ku(n, t, r, e, s), c = ii(s, d, t);
|
|
3444
3444
|
if (c === void 0) return null;
|
|
3445
3445
|
const u = r.get("alpha", e, o) * r.get("fillAlpha", e, o), { stroke: h, strokeWidth: g, strokeAlpha: f } = d.style;
|
|
3446
3446
|
if (h === void 0) return /* @__PURE__ */ l("path", {
|
|
@@ -3449,7 +3449,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3449
3449
|
opacity: u,
|
|
3450
3450
|
"data-testid": "arc-segment"
|
|
3451
3451
|
});
|
|
3452
|
-
const v = kt(g), m =
|
|
3452
|
+
const v = kt(g), m = Zu(bl(e), t, d.union), p = _u(s, eh(m)), A = Ge({
|
|
3453
3453
|
...d.union,
|
|
3454
3454
|
cornerRadius: xn(d)
|
|
3455
3455
|
});
|
|
@@ -3480,7 +3480,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3480
3480
|
})
|
|
3481
3481
|
]
|
|
3482
3482
|
});
|
|
3483
|
-
},
|
|
3483
|
+
}, $u = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => {
|
|
3484
3484
|
const o = G(t), a = b(() => yn(t, r.bandAxis, o), [
|
|
3485
3485
|
t,
|
|
3486
3486
|
r.bandAxis,
|
|
@@ -3516,7 +3516,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3516
3516
|
if (qr(t, r)) return `M${n}A${e},${e} 0 1 1 ${yt(e, t + Math.PI)}A${e},${e} 0 1 1 ${n}`;
|
|
3517
3517
|
const o = r - t;
|
|
3518
3518
|
return `M${n}A${e},${e} 0 ${Math.abs(o) > Math.PI ? 1 : 0} ${o >= 0 ? 1 : 0} ${yt(e, r)}`;
|
|
3519
|
-
}, go = (e, t, r) => `M${yt(t, e)}L${yt(r, e)}`,
|
|
3519
|
+
}, go = (e, t, r) => `M${yt(t, e)}L${yt(r, e)}`, _u = (e, t) => {
|
|
3520
3520
|
const { startAngle: r, endAngle: n, innerRadius: o, outerRadius: a } = e, i = qr(r, n);
|
|
3521
3521
|
return [
|
|
3522
3522
|
t.innerArc ? vo(o, r, n) : "",
|
|
@@ -3524,12 +3524,12 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3524
3524
|
t.startSpoke && !i ? go(r, o, a) : "",
|
|
3525
3525
|
t.endSpoke && !i ? go(n, o, a) : ""
|
|
3526
3526
|
].filter(Boolean).join("");
|
|
3527
|
-
},
|
|
3527
|
+
}, eh = (e) => ({
|
|
3528
3528
|
innerArc: !e.innerArc,
|
|
3529
3529
|
outerArc: !e.outerArc,
|
|
3530
3530
|
startSpoke: !e.startSpoke,
|
|
3531
3531
|
endSpoke: !e.endSpoke
|
|
3532
|
-
}),
|
|
3532
|
+
}), th = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
3533
3533
|
const o = G(e), a = b(() => yn(e, t.bandAxis, o), [
|
|
3534
3534
|
e,
|
|
3535
3535
|
t.bandAxis,
|
|
@@ -3556,33 +3556,33 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3556
3556
|
fill: s(i)
|
|
3557
3557
|
})]
|
|
3558
3558
|
});
|
|
3559
|
-
},
|
|
3559
|
+
}, rh = {
|
|
3560
3560
|
geom: "bar",
|
|
3561
3561
|
coord: "polar",
|
|
3562
3562
|
swatchShape: "slice",
|
|
3563
3563
|
guideMode: "band",
|
|
3564
|
-
render: ({ layer: e, coordSystem: t, animateTransitions: r, intro: n, panelRect: o }) => /* @__PURE__ */ l(
|
|
3564
|
+
render: ({ layer: e, coordSystem: t, animateTransitions: r, intro: n, panelRect: o }) => /* @__PURE__ */ l(Xu, {
|
|
3565
3565
|
layer: e,
|
|
3566
3566
|
coordSystem: t,
|
|
3567
3567
|
animateTransitions: r,
|
|
3568
3568
|
intro: n,
|
|
3569
3569
|
panelRect: o
|
|
3570
3570
|
}),
|
|
3571
|
-
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ l(
|
|
3571
|
+
renderHighlight: ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => /* @__PURE__ */ l($u, {
|
|
3572
3572
|
layer: e,
|
|
3573
3573
|
sourceLayer: t,
|
|
3574
3574
|
coordSystem: r,
|
|
3575
3575
|
panelRect: n
|
|
3576
3576
|
}),
|
|
3577
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ l(
|
|
3577
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ l(th, {
|
|
3578
3578
|
layer: e,
|
|
3579
3579
|
coordSystem: t,
|
|
3580
3580
|
primary: r,
|
|
3581
3581
|
panelRect: n
|
|
3582
3582
|
}),
|
|
3583
3583
|
renderHoverCompanions: () => null,
|
|
3584
|
-
getEditOutlineShapes:
|
|
3585
|
-
},
|
|
3584
|
+
getEditOutlineShapes: Qu
|
|
3585
|
+
}, nh = ge(function({ layer: t }) {
|
|
3586
3586
|
const r = G(t), n = b(() => {
|
|
3587
3587
|
const o = Se(t.data, t.mapping, t.id), a = [];
|
|
3588
3588
|
return t.data.groupBy(ne.group).forEach((i) => {
|
|
@@ -3639,7 +3639,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3639
3639
|
});
|
|
3640
3640
|
}
|
|
3641
3641
|
return t.sort((r, n) => r.angle - n.angle), t.map((r) => r.point);
|
|
3642
|
-
},
|
|
3642
|
+
}, oh = ({ layer: e, panelRect: t, styleReaders: r }) => {
|
|
3643
3643
|
const n = ti(t), o = [], a = [];
|
|
3644
3644
|
return e.data.groupBy(ne.group).forEach((i) => {
|
|
3645
3645
|
const s = [...i], [d] = s;
|
|
@@ -3661,7 +3661,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3661
3661
|
centers: a,
|
|
3662
3662
|
size: tt
|
|
3663
3663
|
}), o;
|
|
3664
|
-
},
|
|
3664
|
+
}, ah = ({ layer: e, primary: t, companions: r }) => {
|
|
3665
3665
|
const n = G(e), o = Ve(t.observation), a = b(() => di([...e.data.filter(ne.group, "eq", o)]), [e.data, o]);
|
|
3666
3666
|
if (!a) return null;
|
|
3667
3667
|
const i = n.get("stroke", t.observation, "hovered"), s = n.get("alpha", t.observation, "hovered"), d = n.get("strokeAlpha", t.observation, "hovered"), { strokeWidth: c, strokeDasharray: u, strokeLinecap: h } = Me(n.get("dashArray", t.observation, "hovered"), n.get("strokeWidth", t.observation, "hovered"), n.get("lineCap", t.observation, "hovered")), g = n.get("lineJoin", t.observation, "hovered");
|
|
@@ -3699,19 +3699,19 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3699
3699
|
"data-testid": "hovered-line-point"
|
|
3700
3700
|
})
|
|
3701
3701
|
] });
|
|
3702
|
-
},
|
|
3702
|
+
}, ih = {
|
|
3703
3703
|
geom: "line",
|
|
3704
3704
|
coord: "polar",
|
|
3705
3705
|
swatchShape: "line",
|
|
3706
3706
|
guideMode: "crosshair",
|
|
3707
|
-
render: ({ layer: e }) => /* @__PURE__ */ l(
|
|
3708
|
-
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ l(
|
|
3707
|
+
render: ({ layer: e }) => /* @__PURE__ */ l(nh, { layer: e }),
|
|
3708
|
+
renderHover: ({ layer: e, primary: t, group: r, related: n }) => /* @__PURE__ */ l(ah, {
|
|
3709
3709
|
layer: e,
|
|
3710
3710
|
primary: t,
|
|
3711
3711
|
companions: [...r, ...n]
|
|
3712
3712
|
}),
|
|
3713
3713
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ l(Ut, { companions: e }),
|
|
3714
|
-
getEditOutlineShapes:
|
|
3714
|
+
getEditOutlineShapes: oh,
|
|
3715
3715
|
getOverlayAnchor: ({ observation: e }) => {
|
|
3716
3716
|
const t = $(e), r = _(e);
|
|
3717
3717
|
if (t === null || r === null) return null;
|
|
@@ -3721,7 +3721,7 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3721
3721
|
y: 1 - o
|
|
3722
3722
|
};
|
|
3723
3723
|
}
|
|
3724
|
-
},
|
|
3724
|
+
}, sh = ge(function({ layer: t, animateTransitions: r, intro: n }) {
|
|
3725
3725
|
const o = G(t), a = sr(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
3726
3726
|
return b(() => {
|
|
3727
3727
|
const i = a.activeIntro ? Se(t.data, t.mapping, t.id) : null, s = [];
|
|
@@ -3741,11 +3741,11 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3741
3741
|
o,
|
|
3742
3742
|
a
|
|
3743
3743
|
]);
|
|
3744
|
-
}),
|
|
3744
|
+
}), lh = {
|
|
3745
3745
|
geom: "point",
|
|
3746
3746
|
coord: "polar",
|
|
3747
3747
|
swatchShape: "circle",
|
|
3748
|
-
render: ({ layer: e, animateTransitions: t, intro: r }) => /* @__PURE__ */ l(
|
|
3748
|
+
render: ({ layer: e, animateTransitions: t, intro: r }) => /* @__PURE__ */ l(sh, {
|
|
3749
3749
|
layer: e,
|
|
3750
3750
|
animateTransitions: t,
|
|
3751
3751
|
intro: r
|
|
@@ -3768,25 +3768,25 @@ var hu = "_2qyyu60", vu = 2, gu = 12, fu = 12, lo = 1, co = 2, pu = 4, mu = 3, y
|
|
|
3768
3768
|
y: 1 - o
|
|
3769
3769
|
};
|
|
3770
3770
|
}
|
|
3771
|
-
},
|
|
3771
|
+
}, dh = {
|
|
3772
3772
|
bar: {
|
|
3773
|
-
cartesian:
|
|
3774
|
-
polar:
|
|
3773
|
+
cartesian: pc,
|
|
3774
|
+
polar: rh
|
|
3775
3775
|
},
|
|
3776
3776
|
line: {
|
|
3777
|
-
cartesian:
|
|
3778
|
-
polar:
|
|
3777
|
+
cartesian: kc,
|
|
3778
|
+
polar: ih
|
|
3779
3779
|
},
|
|
3780
3780
|
area: {
|
|
3781
|
-
cartesian:
|
|
3782
|
-
polar:
|
|
3781
|
+
cartesian: Vd,
|
|
3782
|
+
polar: ju
|
|
3783
3783
|
},
|
|
3784
3784
|
point: {
|
|
3785
|
-
cartesian:
|
|
3786
|
-
polar:
|
|
3785
|
+
cartesian: Pc,
|
|
3786
|
+
polar: lh
|
|
3787
3787
|
},
|
|
3788
|
-
rule: { cartesian:
|
|
3789
|
-
tile: { cartesian:
|
|
3788
|
+
rule: { cartesian: Mu },
|
|
3789
|
+
tile: { cartesian: Gu }
|
|
3790
3790
|
};
|
|
3791
3791
|
function vr(e) {
|
|
3792
3792
|
return typeof e == "function" ? {
|
|
@@ -3810,9 +3810,10 @@ function xy(e, t) {
|
|
|
3810
3810
|
geom: e.type
|
|
3811
3811
|
};
|
|
3812
3812
|
}
|
|
3813
|
-
|
|
3813
|
+
var Ay = (e, t, r) => hi()(e, t)?.getEditOutlineShapes?.(r) ?? [];
|
|
3814
|
+
function hi(e = []) {
|
|
3814
3815
|
const t = {};
|
|
3815
|
-
for (const [r, n] of Object.entries(
|
|
3816
|
+
for (const [r, n] of Object.entries(dh)) t[r] = { ...n };
|
|
3816
3817
|
for (const r of e) (t[r.geom] ??= {})[r.coord] = r;
|
|
3817
3818
|
return (r, n) => t[r]?.[n] ?? null;
|
|
3818
3819
|
}
|
|
@@ -3821,7 +3822,7 @@ var ch = [
|
|
|
3821
3822
|
"right",
|
|
3822
3823
|
"bottom",
|
|
3823
3824
|
"left"
|
|
3824
|
-
],
|
|
3825
|
+
], by = () => rn((e) => ({
|
|
3825
3826
|
boundary: null,
|
|
3826
3827
|
setBoundary: (t) => e((r) => uh(r.boundary, t) ? r : { boundary: t })
|
|
3827
3828
|
})), Nr = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, Hr = (e, t) => ch.every((r) => e[r].from === t[r].from && e[r].to === t[r].to), uh = (e, t) => e === t ? !0 : e === null || t === null ? !1 : Nr(e.frame, t.frame) && Nr(e.client, t.client) && Hr(e.frameSpans, t.frameSpans) && Hr(e.clientSpans, t.clientSpans), Dr = (e) => {
|
|
@@ -3839,8 +3840,8 @@ var ch = [
|
|
|
3839
3840
|
setTooltipAnchor: (r) => t((n) => vh(n.tooltipAnchor, r) ? n : { tooltipAnchor: r }),
|
|
3840
3841
|
publishPointerRegions: (r, n) => {
|
|
3841
3842
|
n.length === 0 ? e.delete(r) : e.set(r, n);
|
|
3842
|
-
const o =
|
|
3843
|
-
t((a) =>
|
|
3843
|
+
const o = El(e);
|
|
3844
|
+
t((a) => Ds(a.pointerRegions, o) ? a : { pointerRegions: o });
|
|
3844
3845
|
},
|
|
3845
3846
|
setSuspendsHover: (r) => t((n) => n.suspendsHover === r ? n : { suspendsHover: r }),
|
|
3846
3847
|
setEditorOwnsQuery: (r) => t((n) => n.editorOwnsQuery === r ? n : { editorOwnsQuery: r })
|
|
@@ -3850,7 +3851,7 @@ var ch = [
|
|
|
3850
3851
|
layers: e,
|
|
3851
3852
|
coordSystem: t
|
|
3852
3853
|
}), [e, t]), n = F(null);
|
|
3853
|
-
n.current === null && (n.current = new
|
|
3854
|
+
n.current === null && (n.current = new Is(r));
|
|
3854
3855
|
const o = n.current, a = F(!1);
|
|
3855
3856
|
return W(() => {
|
|
3856
3857
|
if (!a.current) {
|
|
@@ -3859,7 +3860,7 @@ var ch = [
|
|
|
3859
3860
|
}
|
|
3860
3861
|
o.update(r);
|
|
3861
3862
|
}, [o, r]), o;
|
|
3862
|
-
},
|
|
3863
|
+
}, vi = Y(null), fh = ({ children: e }) => {
|
|
3863
3864
|
const { layers: t, coordSystem: r } = B(oe((s) => ({
|
|
3864
3865
|
layers: s.layers,
|
|
3865
3866
|
coordSystem: s.coordSystem
|
|
@@ -3868,12 +3869,12 @@ var ch = [
|
|
|
3868
3869
|
engine: n,
|
|
3869
3870
|
store: o,
|
|
3870
3871
|
overlayRef: a
|
|
3871
|
-
}), /* @__PURE__ */ l(
|
|
3872
|
+
}), /* @__PURE__ */ l(vi.Provider, {
|
|
3872
3873
|
value: i.current,
|
|
3873
3874
|
children: e
|
|
3874
3875
|
});
|
|
3875
3876
|
}, Ue = () => {
|
|
3876
|
-
const e = N(
|
|
3877
|
+
const e = N(vi);
|
|
3877
3878
|
if (e === null) throw new Error("useHoverContext must be used inside a <HoverProvider>.");
|
|
3878
3879
|
return e;
|
|
3879
3880
|
};
|
|
@@ -3898,11 +3899,11 @@ var mh = ({ hitTest: e, input: t }) => {
|
|
|
3898
3899
|
y: "-25%",
|
|
3899
3900
|
width: "150%",
|
|
3900
3901
|
height: "150%"
|
|
3901
|
-
},
|
|
3902
|
+
}, Sy = (e) => /* @__PURE__ */ l(gi, {
|
|
3902
3903
|
...e,
|
|
3903
3904
|
empty: !1
|
|
3904
|
-
}),
|
|
3905
|
-
const o = Q(), a = Q(), i =
|
|
3905
|
+
}), gi = ({ styleReaders: e, state: t, empty: r, children: n }) => {
|
|
3906
|
+
const o = Q(), a = Q(), i = Id(), s = e.get("overpaint", void 0, t) ?? yh, { fillFor: d, defs: c } = le({ paints: s }), u = /* @__PURE__ */ l("g", {
|
|
3906
3907
|
id: o,
|
|
3907
3908
|
children: n
|
|
3908
3909
|
});
|
|
@@ -3981,7 +3982,7 @@ var bh = (e, t) => {
|
|
|
3981
3982
|
width: 0,
|
|
3982
3983
|
height: 0,
|
|
3983
3984
|
unmeasured: !0
|
|
3984
|
-
},
|
|
3985
|
+
}, fi = ({ debounce: e = 0, onResize: t } = {}) => {
|
|
3985
3986
|
const [r, n] = U(Sh), o = F(null), a = bh((c) => {
|
|
3986
3987
|
const u = o.current;
|
|
3987
3988
|
u && u.width === c.width && u.height === c.height || (o.current = {
|
|
@@ -4004,7 +4005,7 @@ var bh = (e, t) => {
|
|
|
4004
4005
|
setElement: d
|
|
4005
4006
|
};
|
|
4006
4007
|
};
|
|
4007
|
-
function
|
|
4008
|
+
function wy() {
|
|
4008
4009
|
const [e, t] = U(null), r = F(null), n = F(null), o = F(null), a = ie(() => {
|
|
4009
4010
|
o.current = null;
|
|
4010
4011
|
const c = n.current;
|
|
@@ -4023,7 +4024,7 @@ function Sy() {
|
|
|
4023
4024
|
g && g.left === h.left && g.top === h.top && g.width === h.width && g.height === h.height || (r.current = h, t(h));
|
|
4024
4025
|
}, []), i = ie(() => {
|
|
4025
4026
|
o.current === null && (o.current = requestAnimationFrame(a));
|
|
4026
|
-
}, [a]), { setElement: s } =
|
|
4027
|
+
}, [a]), { setElement: s } = fi({ onResize: i }), d = ie((c) => {
|
|
4027
4028
|
n.current = c, s(c), c && a();
|
|
4028
4029
|
}, [s, a]);
|
|
4029
4030
|
return W(() => (window.addEventListener("scroll", i, !0), window.addEventListener("resize", i), () => {
|
|
@@ -4120,8 +4121,8 @@ var Re = {
|
|
|
4120
4121
|
}, Ph = (e) => typeof e == "boolean" ? {
|
|
4121
4122
|
...Xt,
|
|
4122
4123
|
enabled: e
|
|
4123
|
-
} :
|
|
4124
|
-
const r =
|
|
4124
|
+
} : _l({}, Xt, e), Rh = (e, t) => {
|
|
4125
|
+
const r = Zl(), n = b(() => Eh(e, r ?? !1), [e, r]), o = b(() => t.reduce((a, i) => a + el(i), 0), [t]);
|
|
4125
4126
|
return b(() => o <= n.maxAnimatedGeoms ? n : {
|
|
4126
4127
|
...n,
|
|
4127
4128
|
intro: {
|
|
@@ -4321,7 +4322,7 @@ var Re = {
|
|
|
4321
4322
|
if (!e) return t;
|
|
4322
4323
|
const r = e.trim().replace("_", "-").toLowerCase();
|
|
4323
4324
|
return Object.keys(bn).find((n) => n.toLowerCase() === r) ?? t;
|
|
4324
|
-
}, Sn = Y(null), Gh = [bn],
|
|
4325
|
+
}, Sn = Y(null), Gh = [bn], pi = () => mi().translator, ky = () => mi().dir, Ey = () => N(Sn) !== null, Wh = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = Gh }) => {
|
|
4325
4326
|
const o = Fh(e), a = b(() => ({
|
|
4326
4327
|
translator: Nh({
|
|
4327
4328
|
locale: o,
|
|
@@ -4338,7 +4339,7 @@ var Re = {
|
|
|
4338
4339
|
o,
|
|
4339
4340
|
n
|
|
4340
4341
|
]);
|
|
4341
|
-
return /* @__PURE__ */ l(
|
|
4342
|
+
return /* @__PURE__ */ l(ed, {
|
|
4342
4343
|
locale: o,
|
|
4343
4344
|
timeZone: "UTC",
|
|
4344
4345
|
children: /* @__PURE__ */ l(Sn.Provider, {
|
|
@@ -4346,11 +4347,11 @@ var Re = {
|
|
|
4346
4347
|
children: t
|
|
4347
4348
|
})
|
|
4348
4349
|
});
|
|
4349
|
-
},
|
|
4350
|
+
}, mi = () => {
|
|
4350
4351
|
const e = N(Sn);
|
|
4351
4352
|
if (!e) throw new Error("useI18n must be used within IntlProvider");
|
|
4352
4353
|
return e;
|
|
4353
|
-
},
|
|
4354
|
+
}, yi = (e) => typeof e == "number" ? {
|
|
4354
4355
|
topLeft: e,
|
|
4355
4356
|
topRight: e,
|
|
4356
4357
|
bottomRight: e,
|
|
@@ -4360,7 +4361,7 @@ var Re = {
|
|
|
4360
4361
|
const { topLeft: t, topRight: r, bottomRight: n, bottomLeft: o } = e;
|
|
4361
4362
|
return t === r && r === n && n === o ? t : null;
|
|
4362
4363
|
}, zh = (e) => {
|
|
4363
|
-
const { topLeft: t, topRight: r, bottomRight: n, bottomLeft: o } =
|
|
4364
|
+
const { topLeft: t, topRight: r, bottomRight: n, bottomLeft: o } = yi(e);
|
|
4364
4365
|
return t > 0 || r > 0 || n > 0 || o > 0;
|
|
4365
4366
|
}, Tt = (e, t = 0) => {
|
|
4366
4367
|
const r = gr(e);
|
|
@@ -4373,7 +4374,7 @@ var Re = {
|
|
|
4373
4374
|
i
|
|
4374
4375
|
].map((s) => `${mo(s, t)}px`).join(" ");
|
|
4375
4376
|
}, wn = (e, t) => {
|
|
4376
|
-
const { x: r, y: n, width: o, height: a } = e, { topLeft: i, topRight: s, bottomRight: d, bottomLeft: c } = Vh(
|
|
4377
|
+
const { x: r, y: n, width: o, height: a } = e, { topLeft: i, topRight: s, bottomRight: d, bottomLeft: c } = Vh(yi(t), o, a), u = r + o, h = n + a, g = (f, v, m) => f > 0 ? `A${f},${f},0,0,1,${v},${m}` : "";
|
|
4377
4378
|
return [
|
|
4378
4379
|
`M${r + i},${n}`,
|
|
4379
4380
|
`H${u - s}`,
|
|
@@ -4427,7 +4428,7 @@ var Re = {
|
|
|
4427
4428
|
}, Yh = (e, t, r) => {
|
|
4428
4429
|
if (e.pattern === "dots") return [`radial-gradient(circle, ${e.color} ${r}px, transparent ${r}px)`];
|
|
4429
4430
|
if (e.pattern === "lines") {
|
|
4430
|
-
const n = `${t *
|
|
4431
|
+
const n = `${t * jd}px`;
|
|
4431
4432
|
return [`linear-gradient(to bottom, ${e.color} ${n}, transparent ${n})`];
|
|
4432
4433
|
}
|
|
4433
4434
|
return [yo(-45, e.color, t, r), ...e.pattern === "crosshatch" ? [yo(45, e.color, t, r)] : []];
|
|
@@ -4438,12 +4439,12 @@ var Re = {
|
|
|
4438
4439
|
if (e.alpha === void 0 || e.alpha >= 1) return e.image;
|
|
4439
4440
|
const r = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${t.width} ${t.height}" preserveAspectRatio="none"><image href="${jh(e.image)}" width="${t.width}" height="${t.height}" opacity="${e.alpha}" preserveAspectRatio="none"/></svg>`;
|
|
4440
4441
|
return `data:image/svg+xml,${encodeURIComponent(r)}`;
|
|
4441
|
-
}, jh = (e) => e.replace(/&/gu, "&").replace(/</gu, "<").replace(/>/gu, ">").replace(/"/gu, """), Ao = (e) => `url("${e.replace(/[\\"]/gu, "\\$&").replace(/[\n\r\f]/gu, (t) => `\\${t.charCodeAt(0).toString(16)} `)}")`, Kh = "bow4tg0", Uh = "bow4tg1", Qh = "bow4tg2", Xh = "bow4tg3", qh = "bow4tg4",
|
|
4442
|
+
}, jh = (e) => e.replace(/&/gu, "&").replace(/</gu, "<").replace(/>/gu, ">").replace(/"/gu, """), Ao = (e) => `url("${e.replace(/[\\"]/gu, "\\$&").replace(/[\n\r\f]/gu, (t) => `\\${t.charCodeAt(0).toString(16)} `)}")`, Kh = "bow4tg0", Uh = "bow4tg1", Qh = "bow4tg2", Xh = "bow4tg3", qh = "bow4tg4", xi = "_1ii3bsb0", Jh = "_1ii3bsb1", Zh = {
|
|
4442
4443
|
colorScheme: "light",
|
|
4443
|
-
themeClass:
|
|
4444
|
+
themeClass: xi,
|
|
4444
4445
|
inlineVarsStyle: {},
|
|
4445
4446
|
themeValues: hn("light", {})
|
|
4446
|
-
}, kn = Y(null), En = () => N(kn) ?? Zh,
|
|
4447
|
+
}, kn = Y(null), En = () => N(kn) ?? Zh, Py = () => N(kn) !== null, $h = ({ colorScheme: e, textScale: t = 1, graphBackground: r, graphFontFamily: n, headingFontFamily: o, children: a }) => {
|
|
4447
4448
|
const i = b(() => hn(e), [e]), s = b(() => {
|
|
4448
4449
|
const c = { [y.textScale]: String(t) };
|
|
4449
4450
|
return r !== void 0 && (c[y.graphBackground] = r), n !== void 0 && (c[y.fontFamily] = n), o !== void 0 && (c[y.fontFamilyHeading] = o), nr(c);
|
|
@@ -4454,7 +4455,7 @@ var Re = {
|
|
|
4454
4455
|
o
|
|
4455
4456
|
]), d = b(() => ({
|
|
4456
4457
|
colorScheme: e,
|
|
4457
|
-
themeClass: e === "dark" ? Jh :
|
|
4458
|
+
themeClass: e === "dark" ? Jh : xi,
|
|
4458
4459
|
inlineVarsStyle: s,
|
|
4459
4460
|
themeValues: i
|
|
4460
4461
|
}), [
|
|
@@ -4491,10 +4492,10 @@ var Re = {
|
|
|
4491
4492
|
const t = nv(e);
|
|
4492
4493
|
if (t !== void 0)
|
|
4493
4494
|
return rv[t] ?? t;
|
|
4494
|
-
}, ov = "_1cocly40", et = ({ content: e }) => /* @__PURE__ */ l(T, { children:
|
|
4495
|
+
}, ov = "_1cocly40", et = ({ content: e }) => /* @__PURE__ */ l(T, { children: Ai(e.content ?? [e]) }), Ai = (e) => e.map((t, r) => av(t, r)), av = (e, t) => {
|
|
4495
4496
|
if (e.type === "text") return iv(e, t);
|
|
4496
4497
|
if (e.type === "hardBreak" || e.type === "hard_break") return /* @__PURE__ */ l("br", {}, t);
|
|
4497
|
-
const r = e.content ?
|
|
4498
|
+
const r = e.content ? Ai(e.content) : null;
|
|
4498
4499
|
switch (e.type) {
|
|
4499
4500
|
case "doc":
|
|
4500
4501
|
return /* @__PURE__ */ l(Pt, { children: r }, t);
|
|
@@ -4505,7 +4506,7 @@ var Re = {
|
|
|
4505
4506
|
case "paragraph":
|
|
4506
4507
|
return /* @__PURE__ */ l("p", {
|
|
4507
4508
|
"data-variant": Pn(e.attrs?.variant) ?? void 0,
|
|
4508
|
-
style:
|
|
4509
|
+
style: bi(So(e.attrs)),
|
|
4509
4510
|
children: r
|
|
4510
4511
|
}, t);
|
|
4511
4512
|
case "blockquote":
|
|
@@ -4572,7 +4573,7 @@ var Re = {
|
|
|
4572
4573
|
}, dv = (e) => {
|
|
4573
4574
|
if (typeof e == "number" && Number.isFinite(e)) return `calc(${e}px * ${y.textScale})`;
|
|
4574
4575
|
}, Pn = (e) => typeof e == "string" && e.length > 0 ? e : void 0, cv = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), uv = (e, t, r, n) => {
|
|
4575
|
-
const o =
|
|
4576
|
+
const o = bi(n);
|
|
4576
4577
|
switch (e) {
|
|
4577
4578
|
case 1:
|
|
4578
4579
|
return /* @__PURE__ */ l("h1", {
|
|
@@ -4593,7 +4594,7 @@ var Re = {
|
|
|
4593
4594
|
}, So = (e) => {
|
|
4594
4595
|
const t = e?.textAlign;
|
|
4595
4596
|
if (t === "left" || t === "right" || t === "center" || t === "justify") return t;
|
|
4596
|
-
},
|
|
4597
|
+
}, bi = (e) => e ? { textAlign: e } : void 0;
|
|
4597
4598
|
function $e(e) {
|
|
4598
4599
|
const { store: t } = Ue();
|
|
4599
4600
|
return nt(t, e);
|
|
@@ -4609,7 +4610,7 @@ var qt = {
|
|
|
4609
4610
|
}, yv = {
|
|
4610
4611
|
...qt,
|
|
4611
4612
|
waitingForView: !0
|
|
4612
|
-
}, fr = Y(qt),
|
|
4613
|
+
}, fr = Y(qt), Si = 0.4, xv = ({ intro: e, panelRect: t, children: r }) => {
|
|
4613
4614
|
const { layers: n, coordSystem: o, scales: a } = B(oe((h) => ({
|
|
4614
4615
|
layers: h.layers,
|
|
4615
4616
|
coordSystem: h.coordSystem,
|
|
@@ -4641,8 +4642,8 @@ var qt = {
|
|
|
4641
4642
|
}, Qe = () => N(fr).waitingForView, Av = () => {
|
|
4642
4643
|
const { introEndsAtMs: e } = N(fr), [t] = U(() => wv(e) / 1e3);
|
|
4643
4644
|
return t;
|
|
4644
|
-
},
|
|
4645
|
-
const { plansByLayerId: t, coordKey: r } = N(fr), n = B((o) =>
|
|
4645
|
+
}, wi = (e) => {
|
|
4646
|
+
const { plansByLayerId: t, coordKey: r } = N(fr), n = B((o) => ki(o.coordSystem));
|
|
4646
4647
|
return t === null || r !== n ? null : t.get(e) ?? null;
|
|
4647
4648
|
}, wo = (e) => e.enabled && e.trigger === "inView" && typeof IntersectionObserver < "u", ko = ({ layers: e, coordSystem: t, scales: r, intro: n }) => {
|
|
4648
4649
|
if (!n.enabled) return qt;
|
|
@@ -4652,7 +4653,7 @@ var qt = {
|
|
|
4652
4653
|
staggerOrder: n.staggerOrder
|
|
4653
4654
|
}, a = /* @__PURE__ */ new Map();
|
|
4654
4655
|
for (const s of e) {
|
|
4655
|
-
const d =
|
|
4656
|
+
const d = Ys({
|
|
4656
4657
|
layer: s,
|
|
4657
4658
|
coordSystem: t,
|
|
4658
4659
|
scales: r,
|
|
@@ -4661,10 +4662,10 @@ var qt = {
|
|
|
4661
4662
|
d !== null && a.set(s.id, d);
|
|
4662
4663
|
}
|
|
4663
4664
|
if (a.size === 0) return qt;
|
|
4664
|
-
const i = [...a.values()].reduce((s, d) => Math.max(s,
|
|
4665
|
+
const i = [...a.values()].reduce((s, d) => Math.max(s, Pd(d)), 0);
|
|
4665
4666
|
return {
|
|
4666
4667
|
plansByLayerId: a,
|
|
4667
|
-
coordKey:
|
|
4668
|
+
coordKey: ki(t),
|
|
4668
4669
|
introEndsAtMs: performance.now() + i * 1e3,
|
|
4669
4670
|
waitingForView: !1
|
|
4670
4671
|
};
|
|
@@ -4674,10 +4675,10 @@ var qt = {
|
|
|
4674
4675
|
if (e === null) return;
|
|
4675
4676
|
const n = new IntersectionObserver((o) => {
|
|
4676
4677
|
o.some(Sv) && r(!0);
|
|
4677
|
-
}, { threshold:
|
|
4678
|
+
}, { threshold: Si });
|
|
4678
4679
|
return n.observe(e), () => n.disconnect();
|
|
4679
4680
|
}, [e]), t;
|
|
4680
|
-
}, Sv = ({ intersectionRatio: e, intersectionRect: t }) => t.width > 0 && t.height > 0 && e >=
|
|
4681
|
+
}, Sv = ({ intersectionRatio: e, intersectionRect: t }) => t.width > 0 && t.height > 0 && e >= Si, wv = (e) => Math.max(0, e - performance.now()), ki = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, kv = (e) => {
|
|
4681
4682
|
const { overlayRef: t } = Ue(), r = F(null), [n, o] = U(!1), a = Dr(e);
|
|
4682
4683
|
return W(() => {
|
|
4683
4684
|
const i = t.current;
|
|
@@ -4725,7 +4726,7 @@ var qt = {
|
|
|
4725
4726
|
mode: x.config.tooltip.mode,
|
|
4726
4727
|
comments: x.annotations.comments
|
|
4727
4728
|
}))), { formattingLocale: t } = ee(), r = O(), n = $e((x) => x.hover), o = $e((x) => x.tooltipAnchor), a = $e((x) => x.suspendsHover), i = xe("Tooltip", Lv), s = F(() => {
|
|
4728
|
-
}), { cursorRef: d, inside: c } = kv(() => s.current()), u = b(() =>
|
|
4729
|
+
}), { cursorRef: d, inside: c } = kv(() => s.current()), u = b(() => Qs({
|
|
4729
4730
|
...e,
|
|
4730
4731
|
hover: n,
|
|
4731
4732
|
readers: r,
|
|
@@ -4755,9 +4756,9 @@ var qt = {
|
|
|
4755
4756
|
"data-testid": "chart-tooltip",
|
|
4756
4757
|
children: /* @__PURE__ */ l(i, { content: u })
|
|
4757
4758
|
}), A = tv();
|
|
4758
|
-
return A ?
|
|
4759
|
+
return A ? td(/* @__PURE__ */ l(_h, { children: p }), A) : p;
|
|
4759
4760
|
}, Lv = ({ content: e }) => {
|
|
4760
|
-
const t = de(), r = B((h) => h.coordSystem), n = I(
|
|
4761
|
+
const t = de(), r = B((h) => h.coordSystem), n = I(Kl, O()), o = st([n.box.fill]), a = Z(n.heading), i = Z(n.label), s = Z(n.value), d = { paddingInline: n.box.paddingInline }, c = e.rows.some((h) => h.swatchColor !== null), u = e.rows.some((h) => !h.primary);
|
|
4761
4762
|
return /* @__PURE__ */ S("div", {
|
|
4762
4763
|
className: hv,
|
|
4763
4764
|
style: Iv(n.box, o(n.box.fill)),
|
|
@@ -4832,7 +4833,7 @@ var qt = {
|
|
|
4832
4833
|
open: e,
|
|
4833
4834
|
placement: t !== null ? t.placement : "right",
|
|
4834
4835
|
middleware: t !== null ? [
|
|
4835
|
-
Lr(
|
|
4836
|
+
Lr(Rs),
|
|
4836
4837
|
Ir(Wt),
|
|
4837
4838
|
Cr(Wt)
|
|
4838
4839
|
] : [
|
|
@@ -4878,24 +4879,24 @@ var qt = {
|
|
|
4878
4879
|
children: e.value
|
|
4879
4880
|
})
|
|
4880
4881
|
]
|
|
4881
|
-
}),
|
|
4882
|
+
}), Ei = (e) => ({
|
|
4882
4883
|
x: e.axisLabel.x().resolve(),
|
|
4883
4884
|
y: e.axisLabel.y().resolve()
|
|
4884
|
-
}),
|
|
4885
|
+
}), Pi = (e) => ({
|
|
4885
4886
|
x: e.tickLine.x().resolve(),
|
|
4886
4887
|
y: e.tickLine.y().resolve()
|
|
4887
4888
|
}), Nv = (e) => {
|
|
4888
4889
|
const t = e.graph();
|
|
4889
|
-
return
|
|
4890
|
+
return Ql(z(t.get("fill")), t.get("alpha") ?? 1);
|
|
4890
4891
|
}, Rn = (e) => (t, r) => r === void 0 ? e.tickLabel[t]().resolve() : e.tickLabel[r](t).resolve(), pr = (e) => {
|
|
4891
4892
|
const t = {};
|
|
4892
|
-
for (const r of
|
|
4893
|
+
for (const r of Cs) {
|
|
4893
4894
|
const n = {};
|
|
4894
|
-
for (const o of
|
|
4895
|
+
for (const o of Os) n[o] = Fl(e, r, o);
|
|
4895
4896
|
t[r] = n;
|
|
4896
4897
|
}
|
|
4897
4898
|
return t;
|
|
4898
|
-
},
|
|
4899
|
+
}, Ri = (e) => {
|
|
4899
4900
|
const t = e.legend().resolve();
|
|
4900
4901
|
return {
|
|
4901
4902
|
gap: t.gap,
|
|
@@ -4912,7 +4913,7 @@ var qt = {
|
|
|
4912
4913
|
return Math.max(...h.map((f) => f.height)) + c;
|
|
4913
4914
|
}
|
|
4914
4915
|
return Eo(h.map((f) => f.width), g) + c;
|
|
4915
|
-
}, Eo = (e, t) => Math.min(Math.max(...e), t), Dv = ({ axisLabelStyles: e }) => (t) => We(e[Ae(t.scaleAestheticKey)]),
|
|
4916
|
+
}, Eo = (e, t) => Math.min(Math.max(...e), t), Dv = ({ axisLabelStyles: e }) => (t) => We(e[Ae(t.scaleAestheticKey)]), Ci = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, a) => {
|
|
4916
4917
|
const i = t[n][o], s = e.measureText(a, te(i, r));
|
|
4917
4918
|
return {
|
|
4918
4919
|
...s,
|
|
@@ -4920,12 +4921,12 @@ var qt = {
|
|
|
4920
4921
|
height: s.height + i.paddingBlock * 2
|
|
4921
4922
|
};
|
|
4922
4923
|
}, Fv = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, te(n, t)), Gv = he.sm, Wv = ({ textMeasurer: e, familyDefault: t, itemGap: r, headlineItemStyles: n }) => (o, a) => {
|
|
4923
|
-
const i =
|
|
4924
|
+
const i = Li(o, n[a], e, t);
|
|
4924
4925
|
return {
|
|
4925
|
-
width:
|
|
4926
|
+
width: Ii(i.map((s) => s.width)) + Math.max(0, i.length - 1) * r,
|
|
4926
4927
|
height: Math.max(0, ...i.map((s) => s.height))
|
|
4927
4928
|
};
|
|
4928
|
-
}, zv = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o) =>
|
|
4929
|
+
}, zv = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o) => Li(n, r[o], e, t).map((a) => a.width), Vv = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o, a = !1) => {
|
|
4929
4930
|
const i = na(r[o], a);
|
|
4930
4931
|
return {
|
|
4931
4932
|
width: e.measureText(n, te(i, t)).width,
|
|
@@ -4934,13 +4935,13 @@ var qt = {
|
|
|
4934
4935
|
}, Yv = (e) => {
|
|
4935
4936
|
const t = Wv(e), r = Vv(e);
|
|
4936
4937
|
return (n, o, a = !1) => n.kind === "perGroup" ? t(n, o) : r(n.value, o, a);
|
|
4937
|
-
},
|
|
4938
|
+
}, Li = (e, t, r, n) => {
|
|
4938
4939
|
const o = (a) => jv(a, t, r, n);
|
|
4939
4940
|
return e.items.map((a) => {
|
|
4940
4941
|
const i = jo(a, t).map(o), s = Math.max(0, i.length - 1) * t.gap;
|
|
4941
4942
|
return {
|
|
4942
4943
|
width: Math.max(0, ...i.map((d) => d.width)),
|
|
4943
|
-
height:
|
|
4944
|
+
height: Ii(i.map((d) => d.height)) + s
|
|
4944
4945
|
};
|
|
4945
4946
|
});
|
|
4946
4947
|
}, jv = (e, t, r, n) => {
|
|
@@ -4968,7 +4969,7 @@ var qt = {
|
|
|
4968
4969
|
default:
|
|
4969
4970
|
return t;
|
|
4970
4971
|
}
|
|
4971
|
-
}, Uv = (e) => e.fontSize * (e.lineHeight ?? Gv),
|
|
4972
|
+
}, Uv = (e) => e.fontSize * (e.lineHeight ?? Gv), Ii = (e) => e.reduce((t, r) => t + r, 0), Qv = (e, t) => e ? t : 0, Jt = (e, t, r) => {
|
|
4972
4973
|
if (r) {
|
|
4973
4974
|
const n = Number(e.size);
|
|
4974
4975
|
return Number.isFinite(n) && n > 0 ? n : 0;
|
|
@@ -4993,7 +4994,7 @@ var qt = {
|
|
|
4993
4994
|
});
|
|
4994
4995
|
return Math.max(...f) + h;
|
|
4995
4996
|
}, qv = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, te(t(o), r)), Jv = Object.freeze({}), Zv = ({ textMeasurer: e, metrics: t, overrides: r = Jv }) => {
|
|
4996
|
-
const n = O(), o = I(
|
|
4997
|
+
const n = O(), o = I(Ei, n), a = I(pr, n), i = I(ra, n), s = I(Et, n), d = I(Rn, n), c = I(Pi, n), u = F(r);
|
|
4997
4998
|
return u.current = r, b(() => {
|
|
4998
4999
|
if (!e) return null;
|
|
4999
5000
|
const h = t.fonts.familyDefault, g = n.graph().get("textScale"), f = {
|
|
@@ -5045,7 +5046,7 @@ var qt = {
|
|
|
5045
5046
|
textMeasurer: e,
|
|
5046
5047
|
familyDefault: h
|
|
5047
5048
|
}),
|
|
5048
|
-
measureDataLabel:
|
|
5049
|
+
measureDataLabel: Ci({
|
|
5049
5050
|
textMeasurer: e,
|
|
5050
5051
|
dataLabelStyles: a,
|
|
5051
5052
|
familyDefault: h
|
|
@@ -5064,7 +5065,7 @@ var qt = {
|
|
|
5064
5065
|
]);
|
|
5065
5066
|
}, $v = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: o, containerSize: a, externalMeasurements: i, headline: s, formattingLocale: d, annotations: c, layers: u, coordSystem: h, overflowStrategy: g, panelBorder: f, padding: v, margins: m }) => {
|
|
5066
5067
|
const p = O(), A = nn(), x = b(() => (w) => ta(p, w), [p]);
|
|
5067
|
-
return b(() => e ? new
|
|
5068
|
+
return b(() => e ? new Bs(e).compile({
|
|
5068
5069
|
axes: t,
|
|
5069
5070
|
numberFormat: r,
|
|
5070
5071
|
parsingLocale: n,
|
|
@@ -5107,8 +5108,8 @@ var qt = {
|
|
|
5107
5108
|
}, _v = (e) => !e.visible || e.ticks.length === 0, eg = (e) => e.items.length === 0, tg = () => {
|
|
5108
5109
|
const { formattingLocale: e } = ee(), t = B((r) => r.config.parsingLocale);
|
|
5109
5110
|
return e ?? t;
|
|
5110
|
-
}, Po = 0.5,
|
|
5111
|
-
}),
|
|
5111
|
+
}, Po = 0.5, Ti = Y(/* @__PURE__ */ new Map()), Bi = Y(() => {
|
|
5112
|
+
}), Mi = Y(/* @__PURE__ */ new Set()), rg = ({ children: e }) => {
|
|
5112
5113
|
const [t, r] = U(() => /* @__PURE__ */ new Map()), [n] = U(() => /* @__PURE__ */ new Set()), o = F(/* @__PURE__ */ new Map()), a = ie((i, s, d) => {
|
|
5113
5114
|
const c = o.current.get(i) ?? /* @__PURE__ */ new Set();
|
|
5114
5115
|
if (d !== null) {
|
|
@@ -5117,17 +5118,17 @@ var qt = {
|
|
|
5117
5118
|
}
|
|
5118
5119
|
c.delete(s), !(c.size > 0) && (o.current.delete(i), r((u) => lg(u, i)));
|
|
5119
5120
|
}, []);
|
|
5120
|
-
return /* @__PURE__ */ l(
|
|
5121
|
+
return /* @__PURE__ */ l(Bi.Provider, {
|
|
5121
5122
|
value: a,
|
|
5122
|
-
children: /* @__PURE__ */ l(
|
|
5123
|
+
children: /* @__PURE__ */ l(Mi.Provider, {
|
|
5123
5124
|
value: n,
|
|
5124
|
-
children: /* @__PURE__ */ l(
|
|
5125
|
+
children: /* @__PURE__ */ l(Ti.Provider, {
|
|
5125
5126
|
value: t,
|
|
5126
5127
|
children: e
|
|
5127
5128
|
})
|
|
5128
5129
|
})
|
|
5129
5130
|
});
|
|
5130
|
-
}, ng = () => N(
|
|
5131
|
+
}, ng = () => N(Ti), og = () => N(Bi), ag = (e) => {
|
|
5131
5132
|
const t = og(), r = Q(), n = F(null);
|
|
5132
5133
|
return W(() => {
|
|
5133
5134
|
if (typeof ResizeObserver > "u") return;
|
|
@@ -5147,7 +5148,7 @@ var qt = {
|
|
|
5147
5148
|
r,
|
|
5148
5149
|
t
|
|
5149
5150
|
]), n;
|
|
5150
|
-
}, ig = () => N(
|
|
5151
|
+
}, ig = () => N(Mi), sg = (e, t, r) => {
|
|
5151
5152
|
const n = e.get(t);
|
|
5152
5153
|
if (n !== void 0 && Math.abs(n.width - r.width) < Po && Math.abs(n.height - r.height) < Po) return e;
|
|
5153
5154
|
const o = new Map(e);
|
|
@@ -5156,7 +5157,7 @@ var qt = {
|
|
|
5156
5157
|
if (!e.has(t)) return e;
|
|
5157
5158
|
const r = new Map(e);
|
|
5158
5159
|
return r.delete(t), r;
|
|
5159
|
-
},
|
|
5160
|
+
}, Ry = (e, t) => e !== null && e.annotationId === t ? e : null, dg = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, Cy = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, cg = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, Ly = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, ug = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Ns(e.point.anchor, t.point.anchor), Iy = (e, t) => e !== null && e.annotationId === t ? e : null, hg = (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, Ty = (e, t) => e !== null && e.annotationId === t ? e : null, vg = (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 && De(e, t) ? e : null, gg = (e, t) => {
|
|
5160
5161
|
if (e === null) return !1;
|
|
5161
5162
|
switch (t.kind) {
|
|
5162
5163
|
case "difference-arrow-endpoint-drag":
|
|
@@ -5174,20 +5175,20 @@ var qt = {
|
|
|
5174
5175
|
case "menu":
|
|
5175
5176
|
return !1;
|
|
5176
5177
|
}
|
|
5177
|
-
}, De = (e, t) => e.kind === t,
|
|
5178
|
-
const o =
|
|
5178
|
+
}, De = (e, t) => e.kind === t, By = (e, t, r, n) => {
|
|
5179
|
+
const o = Oi(r.layerId, e, t, n);
|
|
5179
5180
|
return o === null ? null : {
|
|
5180
5181
|
observationIndex: e,
|
|
5181
5182
|
predicate: o.predicate,
|
|
5182
5183
|
selectedFor: r
|
|
5183
5184
|
};
|
|
5184
|
-
},
|
|
5185
|
-
const a =
|
|
5185
|
+
}, My = ({ observationIndex: e, predicate: t, selectedFor: r }, n, o) => {
|
|
5186
|
+
const a = Oi(r.layerId, e, n, o);
|
|
5186
5187
|
return a !== null && Yo(a.predicate, t) ? a.standing : null;
|
|
5187
|
-
}, fg = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.observationIndex === t.observationIndex && Yo(e.predicate, t.predicate) && mt(e.selectedFor, t.selectedFor),
|
|
5188
|
+
}, fg = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.observationIndex === t.observationIndex && Yo(e.predicate, t.predicate) && mt(e.selectedFor, t.selectedFor), Oi = (e, t, r, n) => {
|
|
5188
5189
|
const o = er(r, e), a = o?.data.getAt(t) ?? null;
|
|
5189
5190
|
if (o === void 0 || a === null) return null;
|
|
5190
|
-
const i =
|
|
5191
|
+
const i = js({
|
|
5191
5192
|
layer: o,
|
|
5192
5193
|
observationIndex: t,
|
|
5193
5194
|
scope: "data-point",
|
|
@@ -5200,7 +5201,7 @@ var qt = {
|
|
|
5200
5201
|
},
|
|
5201
5202
|
predicate: i.predicate
|
|
5202
5203
|
};
|
|
5203
|
-
},
|
|
5204
|
+
}, Oy = ({ overMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
|
|
5204
5205
|
kind: "observations",
|
|
5205
5206
|
observations: r
|
|
5206
5207
|
} : t, pg = (e, t) => {
|
|
@@ -5215,20 +5216,20 @@ var qt = {
|
|
|
5215
5216
|
return r.layerId === n.layerId && r.observationIndex === n.observationIndex && r.target.scope === n.target.scope && r.onObservation === n.onObservation;
|
|
5216
5217
|
}
|
|
5217
5218
|
return e.kind === "menu-trigger" && t.kind === "menu-trigger";
|
|
5218
|
-
},
|
|
5219
|
+
}, Ni = (e) => {
|
|
5219
5220
|
const t = e.editTargetUnderPointer;
|
|
5220
5221
|
return t?.kind === "annotation" ? t.target.id : null;
|
|
5221
5222
|
}, mg = (e) => {
|
|
5222
5223
|
const t = e.editTargetUnderPointer;
|
|
5223
5224
|
return t !== null && t.kind !== "menu-trigger";
|
|
5224
|
-
},
|
|
5225
|
+
}, Hi = () => rn((e) => ({
|
|
5225
5226
|
menuTrigger: null,
|
|
5226
5227
|
editTargetUnderPointer: null,
|
|
5227
5228
|
standingInteraction: null,
|
|
5228
5229
|
selectedOutline: null,
|
|
5229
5230
|
caret: null,
|
|
5230
5231
|
pressedObservation: null,
|
|
5231
|
-
setMenuTrigger: (t) => e((r) =>
|
|
5232
|
+
setMenuTrigger: (t) => e((r) => Hs(r.menuTrigger, t) ? r : { menuTrigger: t }),
|
|
5232
5233
|
setEditTargetUnderPointer: (t) => e((r) => pg(r.editTargetUnderPointer, t) ? r : { editTargetUnderPointer: t }),
|
|
5233
5234
|
claimInteraction: (t) => e((r) => gg(r.standingInteraction, t) ? r : { standingInteraction: t }),
|
|
5234
5235
|
releaseInteraction: (t) => e((r) => r.standingInteraction?.kind === t ? { standingInteraction: null } : r),
|
|
@@ -5242,13 +5243,13 @@ var qt = {
|
|
|
5242
5243
|
editor: t
|
|
5243
5244
|
} }),
|
|
5244
5245
|
setPressedObservation: (t) => e((r) => fg(r.pressedObservation, t) ? r : { pressedObservation: t })
|
|
5245
|
-
})), yg = (e, t) => e === t ? !0 : e === null || t === null ? !1 : mt(e.target, t.target) && e.frameScale === t.frameScale && Nr(e.frame, t.frame) && Hr(e.frameSpans, t.frameSpans), Ln = Y(null), xg =
|
|
5246
|
-
const [t] = U(() =>
|
|
5246
|
+
})), yg = (e, t) => e === t ? !0 : e === null || t === null ? !1 : mt(e.target, t.target) && e.frameScale === t.frameScale && Nr(e.frame, t.frame) && Hr(e.frameSpans, t.frameSpans), Ln = Y(null), xg = Hi(), Ny = ({ children: e }) => {
|
|
5247
|
+
const [t] = U(() => Hi());
|
|
5247
5248
|
return /* @__PURE__ */ l(Ln.Provider, {
|
|
5248
5249
|
value: t,
|
|
5249
5250
|
children: e
|
|
5250
5251
|
});
|
|
5251
|
-
},
|
|
5252
|
+
}, Hy = () => {
|
|
5252
5253
|
const e = N(Ln);
|
|
5253
5254
|
if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
|
|
5254
5255
|
return e;
|
|
@@ -5256,21 +5257,21 @@ var qt = {
|
|
|
5256
5257
|
function Ie(e) {
|
|
5257
5258
|
return nt(N(Ln) ?? xg, e);
|
|
5258
5259
|
}
|
|
5259
|
-
var
|
|
5260
|
+
var Di = Y(null), Ag = ({ panelRect: e, children: t }) => {
|
|
5260
5261
|
const r = Sg(e);
|
|
5261
|
-
return /* @__PURE__ */ l(
|
|
5262
|
+
return /* @__PURE__ */ l(Di.Provider, {
|
|
5262
5263
|
value: r,
|
|
5263
5264
|
children: t
|
|
5264
5265
|
});
|
|
5265
5266
|
}, bg = () => {
|
|
5266
|
-
const e = N(
|
|
5267
|
+
const e = N(Di);
|
|
5267
5268
|
if (e === null) throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");
|
|
5268
5269
|
return e;
|
|
5269
|
-
}, Ro = (e, t, r) => t.hasAuthoredStroke ? t.stroke :
|
|
5270
|
+
}, Ro = (e, t, r) => t.hasAuthoredStroke ? t.stroke : Ol(e.start, e.end, {
|
|
5270
5271
|
start: r(e.start),
|
|
5271
5272
|
end: r(e.end)
|
|
5272
5273
|
}) ?? t.stroke, Sg = (e) => {
|
|
5273
|
-
const { formattingLocale: t } = ee(), r = Oe(), { fonts: n } = Ke(), o = Ie((p) => xt(p, "difference-arrow-endpoint-drag")), a =
|
|
5274
|
+
const { formattingLocale: t } = ee(), r = Oe(), { fonts: n } = Ke(), o = Ie((p) => xt(p, "difference-arrow-endpoint-drag")), a = hd(), i = O(), { differenceArrows: s, mainAxis: d, parsingLocale: c } = B(oe((p) => ({
|
|
5274
5275
|
differenceArrows: p.annotations.differenceArrows,
|
|
5275
5276
|
mainAxis: wt(p.coordSystem),
|
|
5276
5277
|
parsingLocale: p.config.parsingLocale
|
|
@@ -5326,14 +5327,14 @@ var Hi = Y(null), Ag = ({ panelRect: e, children: t }) => {
|
|
|
5326
5327
|
a
|
|
5327
5328
|
]);
|
|
5328
5329
|
}, Co = (e, t, r, n) => {
|
|
5329
|
-
const o =
|
|
5330
|
+
const o = qs({
|
|
5330
5331
|
arrow: e,
|
|
5331
5332
|
style: t,
|
|
5332
5333
|
...r
|
|
5333
5334
|
});
|
|
5334
5335
|
return {
|
|
5335
5336
|
...o,
|
|
5336
|
-
labelBox:
|
|
5337
|
+
labelBox: gl({
|
|
5337
5338
|
labelPosition: o.labelPosition,
|
|
5338
5339
|
measuredTextWidth: n(o.labelText, t.label),
|
|
5339
5340
|
label: t.label
|
|
@@ -5415,7 +5416,7 @@ var Cg = "vultop2", Lg = "vultop3", Ig = "vultop4", Tg = "vultop5", Bg = (e) =>
|
|
|
5415
5416
|
"aria-hidden": "true",
|
|
5416
5417
|
className: t,
|
|
5417
5418
|
children: e === "dark" ? Dg : Hg
|
|
5418
|
-
}), Gg = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full",
|
|
5419
|
+
}), Gg = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", Fi = ({ visual: e, placement: t }) => {
|
|
5419
5420
|
const r = Bg(z(O().graph().get("fill")));
|
|
5420
5421
|
return /* @__PURE__ */ S("a", {
|
|
5421
5422
|
className: bt(Rg, e === "mini" && "vultop1", t === "footer" ? Ig : Tg),
|
|
@@ -5433,14 +5434,14 @@ var Cg = "vultop2", Lg = "vultop3", Ig = "vultop4", Tg = "vultop5", Bg = (e) =>
|
|
|
5433
5434
|
children: "Made with Graphy"
|
|
5434
5435
|
})]
|
|
5435
5436
|
});
|
|
5436
|
-
},
|
|
5437
|
+
}, Gi = Y({
|
|
5437
5438
|
Title: null,
|
|
5438
5439
|
Caption: null,
|
|
5439
5440
|
TextAnnotation: null
|
|
5440
|
-
}),
|
|
5441
|
+
}), Dy = ({ editors: e, children: t }) => /* @__PURE__ */ l(Gi.Provider, {
|
|
5441
5442
|
value: e,
|
|
5442
5443
|
children: t
|
|
5443
|
-
}), In = () => N(
|
|
5444
|
+
}), In = () => N(Gi), Lo = "_4dlrid0", Wg = "xfz7dq0";
|
|
5444
5445
|
var zg = "xfz7dq2", Vg = "xfz7dq3", Yg = "xfz7dq4", jg = "xfz7dq5", Kg = ({ ref: e, footerRect: t, mode: r = Re.readonly, caption: n, showCaption: o, source: a, showSource: i, captionStyle: s, sourceStyle: d, brandMark: c }) => {
|
|
5445
5446
|
const { Caption: u } = In(), h = Ne[An(r)].inlineTextEditing ? u : null, g = o && (h !== null || n !== null), f = i && a !== null && qg(a), v = c !== "hidden";
|
|
5446
5447
|
return !g && !f && !v ? null : /* @__PURE__ */ S("div", {
|
|
@@ -5462,7 +5463,7 @@ var zg = "xfz7dq2", Vg = "xfz7dq3", Yg = "xfz7dq4", jg = "xfz7dq5", Kg = ({ ref:
|
|
|
5462
5463
|
children: [f && /* @__PURE__ */ l(Qg, {
|
|
5463
5464
|
source: a,
|
|
5464
5465
|
sourceStyle: d
|
|
5465
|
-
}), c !== "hidden" ? /* @__PURE__ */ l(
|
|
5466
|
+
}), c !== "hidden" ? /* @__PURE__ */ l(Fi, {
|
|
5466
5467
|
visual: c,
|
|
5467
5468
|
placement: "footer"
|
|
5468
5469
|
}) : null]
|
|
@@ -5528,7 +5529,7 @@ var Zg = 22, $g = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, sho
|
|
|
5528
5529
|
subtitle: a,
|
|
5529
5530
|
headingStyle: s,
|
|
5530
5531
|
subtitleStyle: d
|
|
5531
|
-
}), c !== "hidden" ? /* @__PURE__ */ l(
|
|
5532
|
+
}), c !== "hidden" ? /* @__PURE__ */ l(Fi, {
|
|
5532
5533
|
visual: c,
|
|
5533
5534
|
placement: "header"
|
|
5534
5535
|
}) : null]
|
|
@@ -5552,12 +5553,12 @@ var Zg = 22, $g = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, sho
|
|
|
5552
5553
|
style: Z(a),
|
|
5553
5554
|
children: /* @__PURE__ */ l(et, { content: n })
|
|
5554
5555
|
}))] });
|
|
5555
|
-
}, ef = "_1u9qprb0", tf = "_1u9qprb1", rf = /* @__PURE__ */
|
|
5556
|
+
}, ef = "_1u9qprb0", tf = "_1u9qprb1", rf = /* @__PURE__ */ nd({
|
|
5556
5557
|
group: () => af,
|
|
5557
|
-
item: () =>
|
|
5558
|
+
item: () => Wi,
|
|
5558
5559
|
trend: () => of,
|
|
5559
5560
|
value: () => nf
|
|
5560
|
-
}), nf = "_9aen060", of = "_9aen061", af = "_9aen062",
|
|
5561
|
+
}), nf = "_9aen060", of = "_9aen061", af = "_9aen062", Wi = "_9aen063", sf = {
|
|
5561
5562
|
xxs: 8,
|
|
5562
5563
|
xs: 12,
|
|
5563
5564
|
sm: 16,
|
|
@@ -5567,7 +5568,7 @@ var Zg = 22, $g = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, sho
|
|
|
5567
5568
|
}, lf = {
|
|
5568
5569
|
primary: "asohov1 asohov0",
|
|
5569
5570
|
secondary: "asohov2 asohov0"
|
|
5570
|
-
},
|
|
5571
|
+
}, zi = ({ children: e, title: t, variant: r = "primary", size: n = "sm", ...o }) => {
|
|
5571
5572
|
const a = Q(), i = sf[n];
|
|
5572
5573
|
return /* @__PURE__ */ S("svg", {
|
|
5573
5574
|
className: lf[r],
|
|
@@ -5583,7 +5584,7 @@ var Zg = 22, $g = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, sho
|
|
|
5583
5584
|
children: t
|
|
5584
5585
|
}), e]
|
|
5585
5586
|
});
|
|
5586
|
-
}, df = (e) => /* @__PURE__ */ l(
|
|
5587
|
+
}, df = (e) => /* @__PURE__ */ l(zi, {
|
|
5587
5588
|
...e,
|
|
5588
5589
|
children: /* @__PURE__ */ S("g", {
|
|
5589
5590
|
stroke: "currentColor",
|
|
@@ -5592,7 +5593,7 @@ var Zg = 22, $g = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, sho
|
|
|
5592
5593
|
strokeLinejoin: "round",
|
|
5593
5594
|
children: [/* @__PURE__ */ l("path", { d: "m5 12 7-7 7 7" }), /* @__PURE__ */ l("path", { d: "M12 19V5" })]
|
|
5594
5595
|
})
|
|
5595
|
-
}), cf = (e) => /* @__PURE__ */ l(
|
|
5596
|
+
}), cf = (e) => /* @__PURE__ */ l(zi, {
|
|
5596
5597
|
...e,
|
|
5597
5598
|
children: /* @__PURE__ */ l("g", {
|
|
5598
5599
|
stroke: "currentColor",
|
|
@@ -5608,7 +5609,7 @@ var gf = ({ segment: e, itemStyle: t }) => {
|
|
|
5608
5609
|
size: e.size
|
|
5609
5610
|
});
|
|
5610
5611
|
if (e.kind === "trendArrow") {
|
|
5611
|
-
const o =
|
|
5612
|
+
const o = Vi(t, e.direction);
|
|
5612
5613
|
return /* @__PURE__ */ l("div", {
|
|
5613
5614
|
className: Fe(vf, e.direction === "down" && "n7clvo3"),
|
|
5614
5615
|
style: {
|
|
@@ -5660,14 +5661,14 @@ var gf = ({ segment: e, itemStyle: t }) => {
|
|
|
5660
5661
|
case "trendPercentage":
|
|
5661
5662
|
return { style: Ze({
|
|
5662
5663
|
...t.trend,
|
|
5663
|
-
textColor:
|
|
5664
|
+
textColor: Vi(t, e.trendDirection ?? "up")
|
|
5664
5665
|
}) };
|
|
5665
5666
|
case "trendReference":
|
|
5666
5667
|
return { style: Ze(t.trend) };
|
|
5667
5668
|
default:
|
|
5668
5669
|
return e.textRole;
|
|
5669
5670
|
}
|
|
5670
|
-
},
|
|
5671
|
+
}, Vi = (e, t) => {
|
|
5671
5672
|
switch (t) {
|
|
5672
5673
|
case "up":
|
|
5673
5674
|
return e.trendUp.textColor;
|
|
@@ -5679,7 +5680,7 @@ var gf = ({ segment: e, itemStyle: t }) => {
|
|
|
5679
5680
|
return t;
|
|
5680
5681
|
}
|
|
5681
5682
|
}, mf = ({ item: e, itemStyle: t }) => /* @__PURE__ */ l("div", {
|
|
5682
|
-
className:
|
|
5683
|
+
className: Wi,
|
|
5683
5684
|
style: { gap: t.gap },
|
|
5684
5685
|
children: jo(e, t).map((r) => /* @__PURE__ */ l(yf, {
|
|
5685
5686
|
row: r,
|
|
@@ -5731,11 +5732,11 @@ var gf = ({ segment: e, itemStyle: t }) => {
|
|
|
5731
5732
|
itemStyle: s
|
|
5732
5733
|
}, `${c.label}-${u}`))
|
|
5733
5734
|
});
|
|
5734
|
-
},
|
|
5735
|
-
[
|
|
5736
|
-
[
|
|
5735
|
+
}, Yi = "data-legend-index", ji = "data-legend-item-index", Ki = ({ legendIndex: e, itemIndex: t }) => ({
|
|
5736
|
+
[Yi]: String(e),
|
|
5737
|
+
[ji]: String(t)
|
|
5737
5738
|
}), bf = (e) => {
|
|
5738
|
-
const t = Fr(e,
|
|
5739
|
+
const t = Fr(e, Yi), r = Fr(e, ji);
|
|
5739
5740
|
return t === null || r === null ? null : {
|
|
5740
5741
|
legendIndex: t,
|
|
5741
5742
|
itemIndex: r
|
|
@@ -5745,20 +5746,20 @@ var gf = ({ segment: e, itemStyle: t }) => {
|
|
|
5745
5746
|
if (r === null || !/^(0|[1-9]\d*)$/.test(r)) return null;
|
|
5746
5747
|
const n = Number(r);
|
|
5747
5748
|
return Number.isSafeInteger(n) ? n : null;
|
|
5748
|
-
}, Xe = "data-edit-kind",
|
|
5749
|
+
}, Xe = "data-edit-kind", Ui = "data-edit-id", Zt = "data-edit-axis", Qi = "data-edit-tick-index", Xi = "data-legend-overflow-control", Fy = `[${Xi}]`, Sf = "observations", qi = "data-live-geom", wf = `[${Xe}]`, Bt = (e) => ({
|
|
5749
5750
|
[Xe]: e.kind,
|
|
5750
|
-
[
|
|
5751
|
+
[Ui]: e.id
|
|
5751
5752
|
}), Tn = (e, t) => ({
|
|
5752
5753
|
[Xe]: "axis",
|
|
5753
5754
|
[Zt]: e,
|
|
5754
|
-
...t === void 0 ? {} : { [
|
|
5755
|
+
...t === void 0 ? {} : { [Qi]: String(t) }
|
|
5755
5756
|
}), Bn = (e) => ({
|
|
5756
5757
|
[Xe]: "legend",
|
|
5757
|
-
...
|
|
5758
|
-
}),
|
|
5758
|
+
...Ki(e)
|
|
5759
|
+
}), Ji = (e) => ({
|
|
5759
5760
|
[Xe]: "grid",
|
|
5760
5761
|
[Zt]: e
|
|
5761
|
-
}),
|
|
5762
|
+
}), Gy = (e, t) => {
|
|
5762
5763
|
for (const r of e) {
|
|
5763
5764
|
const n = r.closest(wf);
|
|
5764
5765
|
if (n === null || !t.contains(n)) continue;
|
|
@@ -5767,18 +5768,18 @@ var gf = ({ segment: e, itemStyle: t }) => {
|
|
|
5767
5768
|
if (n !== r) return null;
|
|
5768
5769
|
}
|
|
5769
5770
|
return null;
|
|
5770
|
-
},
|
|
5771
|
+
}, Zi = ({ live: e = !1 } = {}) => ({
|
|
5771
5772
|
[Xe]: Sf,
|
|
5772
|
-
...e ? { [
|
|
5773
|
-
}),
|
|
5773
|
+
...e ? { [qi]: "" } : {}
|
|
5774
|
+
}), Wy = (e, t) => {
|
|
5774
5775
|
if (!(e instanceof Element)) return !1;
|
|
5775
|
-
const r = e.closest(`[${
|
|
5776
|
+
const r = e.closest(`[${qi}]`);
|
|
5776
5777
|
return r !== null && r !== e && t.contains(r);
|
|
5777
5778
|
}, kf = (e) => {
|
|
5778
5779
|
const t = e.getAttribute(Xe);
|
|
5779
5780
|
switch (t) {
|
|
5780
5781
|
case "annotation": {
|
|
5781
|
-
const r = e.getAttribute(
|
|
5782
|
+
const r = e.getAttribute(Ui);
|
|
5782
5783
|
return r === null || r === "" ? null : {
|
|
5783
5784
|
kind: t,
|
|
5784
5785
|
target: {
|
|
@@ -5798,7 +5799,7 @@ var gf = ({ segment: e, itemStyle: t }) => {
|
|
|
5798
5799
|
},
|
|
5799
5800
|
part: null
|
|
5800
5801
|
};
|
|
5801
|
-
const n = Fr(e,
|
|
5802
|
+
const n = Fr(e, Qi);
|
|
5802
5803
|
return n === null ? null : {
|
|
5803
5804
|
kind: t,
|
|
5804
5805
|
target: {
|
|
@@ -5829,9 +5830,9 @@ var gf = ({ segment: e, itemStyle: t }) => {
|
|
|
5829
5830
|
default:
|
|
5830
5831
|
return null;
|
|
5831
5832
|
}
|
|
5832
|
-
},
|
|
5833
|
+
}, $i = Y(Re.readonly);
|
|
5833
5834
|
function Mt() {
|
|
5834
|
-
return N(
|
|
5835
|
+
return N($i);
|
|
5835
5836
|
}
|
|
5836
5837
|
var He = () => Ne[Mt()].guidePress, Ef = 0.25, Mn = (e) => Qe() ? null : /* @__PURE__ */ l(Pf, { ...e }), Pf = ({ children: e, as: t = "g", ...r }) => {
|
|
5837
5838
|
const n = Av(), o = t;
|
|
@@ -5880,7 +5881,7 @@ var If = 8, Tf = 16, Bf = 2, Mf = ({ indexedLegends: e, containerRect: t }) => {
|
|
|
5880
5881
|
top: h.y,
|
|
5881
5882
|
color: Rf(r, h.payload.color)
|
|
5882
5883
|
},
|
|
5883
|
-
...i ? Bn(h.payload.address) :
|
|
5884
|
+
...i ? Bn(h.payload.address) : Ki(h.payload.address),
|
|
5884
5885
|
children: h.payload.label
|
|
5885
5886
|
}, h.payload.key))]
|
|
5886
5887
|
});
|
|
@@ -5907,7 +5908,7 @@ var If = 8, Tf = 16, Bf = 2, Mf = ({ indexedLegends: e, containerRect: t }) => {
|
|
|
5907
5908
|
return a.length === 0 || t.height <= 0 ? {
|
|
5908
5909
|
placements: [],
|
|
5909
5910
|
hasOverlap: !1
|
|
5910
|
-
} :
|
|
5911
|
+
} : Js({
|
|
5911
5912
|
items: a,
|
|
5912
5913
|
containerHeight: t.height,
|
|
5913
5914
|
labelHeight: r
|
|
@@ -5930,27 +5931,27 @@ var If = 8, Tf = 16, Bf = 2, Mf = ({ indexedLegends: e, containerRect: t }) => {
|
|
|
5930
5931
|
});
|
|
5931
5932
|
}, Hf = "_6a636s0";
|
|
5932
5933
|
var Df = 0.6;
|
|
5933
|
-
var
|
|
5934
|
+
var _i = (e, t) => ({
|
|
5934
5935
|
...e.fill === void 0 ? {} : _e(e.fill, t),
|
|
5935
5936
|
...e.cornerRadius === void 0 ? {} : { borderRadius: Tt(e.cornerRadius) },
|
|
5936
5937
|
...e.shadow === void 0 ? {} : { boxShadow: ot(e.shadow) },
|
|
5937
|
-
...
|
|
5938
|
-
}),
|
|
5938
|
+
...rs(e.strokeWidth, e.stroke)
|
|
5939
|
+
}), es = (e, t) => ({
|
|
5939
5940
|
...Z(e),
|
|
5940
|
-
|
|
5941
|
+
..._i(e, t),
|
|
5941
5942
|
...e.alpha === void 0 ? {} : { opacity: e.alpha },
|
|
5942
5943
|
paddingInline: e.paddingInline,
|
|
5943
5944
|
paddingBlock: e.paddingBlock
|
|
5944
|
-
}),
|
|
5945
|
+
}), ts = (e) => e.fill !== void 0 || e.strokeWidth > 0, Ff = (e, t, r) => ({
|
|
5945
5946
|
..._e(e.fill, r),
|
|
5946
5947
|
borderRadius: Tt(e.cornerRadius),
|
|
5947
5948
|
paddingInline: e.paddingInline,
|
|
5948
5949
|
paddingBlock: e.paddingBlock,
|
|
5949
5950
|
boxShadow: ot(e.shadow),
|
|
5950
5951
|
...e.alpha === void 0 ? {} : { opacity: e.alpha },
|
|
5951
|
-
...
|
|
5952
|
+
...rs(e.strokeWidth, e.stroke),
|
|
5952
5953
|
...Z(t)
|
|
5953
|
-
}),
|
|
5954
|
+
}), rs = (e, t) => e > 0 && t !== void 0 ? { border: `${e}px solid ${t}` } : {}, Gf = "var(--_1kjk02r0)", Wf = "_1kjk02r1", zf = {
|
|
5954
5955
|
1: "_1kjk02r2",
|
|
5955
5956
|
2: "_1kjk02r3"
|
|
5956
5957
|
}, Vf = {
|
|
@@ -5991,7 +5992,7 @@ var Qf = "_1dw9dgx0", Sr = "\0", Xf = (e, t) => {
|
|
|
5991
5992
|
});
|
|
5992
5993
|
}
|
|
5993
5994
|
return r;
|
|
5994
|
-
},
|
|
5995
|
+
}, ns = ({ pill: e }) => e.hasBubbleSwatch ? /* @__PURE__ */ l(Zf, { pill: e }) : /* @__PURE__ */ l(Jf, { pill: e }), qf = ({ color: e, lineType: t, shape: r, label: n, layerId: o, groupValue: a }) => {
|
|
5995
5996
|
const { swatch: i } = I(Et, O()), s = cr(o, a, i.size), d = dr(o, a, e), c = B((h) => wt(h.coordSystem)), u = $f(e, d);
|
|
5996
5997
|
return u ? /* @__PURE__ */ l(It, {
|
|
5997
5998
|
shape: r,
|
|
@@ -6026,9 +6027,9 @@ var Qf = "_1dw9dgx0", Sr = "\0", Xf = (e, t) => {
|
|
|
6026
6027
|
opacity: n.alpha
|
|
6027
6028
|
}
|
|
6028
6029
|
}), /* @__PURE__ */ l("span", { children: e.formattedLabel })] });
|
|
6029
|
-
}, $f = (e, t) => e === void 0 ? void 0 : t, Io = { [
|
|
6030
|
-
const r =
|
|
6031
|
-
|
|
6030
|
+
}, $f = (e, t) => e === void 0 ? void 0 : t, Io = { [Xi]: "" }, _f = ({ hiddenPills: e, placement: t }) => {
|
|
6031
|
+
const r = pi(), [n, o] = U(!1), a = O(), i = I(Et, a), s = I(Ri, a), d = He(), c = st([i.item.fill, s.popover.fill]), u = c(i.item.fill), h = es(i.item, u), g = ep(e.length, i.item), f = g === null ? void 0 : {
|
|
6032
|
+
..._i(i.item, u),
|
|
6032
6033
|
opacity: Df * (i.item.alpha ?? 1)
|
|
6033
6034
|
}, { refs: v, floatingStyles: m } = da({
|
|
6034
6035
|
open: n,
|
|
@@ -6101,12 +6102,12 @@ var Qf = "_1dw9dgx0", Sr = "\0", Xf = (e, t) => {
|
|
|
6101
6102
|
className: Fe("_1kjk02rf", d && "_1kjk02rg"),
|
|
6102
6103
|
style: { gap: i.item.gap },
|
|
6103
6104
|
...d ? Bn(x.address) : void 0,
|
|
6104
|
-
children: /* @__PURE__ */ l(
|
|
6105
|
+
children: /* @__PURE__ */ l(ns, { pill: x })
|
|
6105
6106
|
}, x.key))
|
|
6106
6107
|
})
|
|
6107
6108
|
})] });
|
|
6108
6109
|
}, ep = (e, t) => {
|
|
6109
|
-
if (!
|
|
6110
|
+
if (!ts(t)) return null;
|
|
6110
6111
|
const r = Math.min(e - 1, 2);
|
|
6111
6112
|
return r === 1 ? 1 : r === 2 ? 2 : null;
|
|
6112
6113
|
}, tp = (e, t) => {
|
|
@@ -6121,7 +6122,7 @@ var Qf = "_1dw9dgx0", Sr = "\0", Xf = (e, t) => {
|
|
|
6121
6122
|
left: "_1cecisi7"
|
|
6122
6123
|
}, sp = "_1cecisi8";
|
|
6123
6124
|
var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
|
|
6124
|
-
const o = Oe(), a = Ke(), i = O(), s = I(
|
|
6125
|
+
const o = Oe(), a = Ke(), i = O(), s = I(Ri, i), d = I(Et, i), c = de(), u = B((R) => R.coordSystem.type), h = He(), g = b(() => Xf(t, (R) => c(R, u)?.swatchShape ?? "square"), [
|
|
6125
6126
|
t,
|
|
6126
6127
|
c,
|
|
6127
6128
|
u
|
|
@@ -6148,7 +6149,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6148
6149
|
font: R,
|
|
6149
6150
|
swatchGap: d.item.gap,
|
|
6150
6151
|
horizontalChrome: P
|
|
6151
|
-
})) + (
|
|
6152
|
+
})) + (ts(d.item) ? 8 : 0);
|
|
6152
6153
|
return hp({
|
|
6153
6154
|
pillSizes: J,
|
|
6154
6155
|
overflowPillSize: ce,
|
|
@@ -6165,7 +6166,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6165
6166
|
d
|
|
6166
6167
|
]), A = st([d.item.fill]);
|
|
6167
6168
|
if (g.length === 0) return null;
|
|
6168
|
-
const x = g.slice(0, p.visibleCount), w = g.slice(p.visibleCount), k = p.hasOverflow && w.length > 0, E =
|
|
6169
|
+
const x = g.slice(0, p.visibleCount), w = g.slice(p.visibleCount), k = p.hasOverflow && w.length > 0, E = es(d.item, A(d.item.fill));
|
|
6169
6170
|
return /* @__PURE__ */ S("div", {
|
|
6170
6171
|
className: Fe(ap[m], rp, {
|
|
6171
6172
|
[op]: f,
|
|
@@ -6180,7 +6181,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6180
6181
|
gap: d.item.gap
|
|
6181
6182
|
},
|
|
6182
6183
|
...h ? Bn(R.address) : void 0,
|
|
6183
|
-
children: /* @__PURE__ */ l(
|
|
6184
|
+
children: /* @__PURE__ */ l(ns, { pill: R })
|
|
6184
6185
|
}, R.key)), k && /* @__PURE__ */ l(_f, {
|
|
6185
6186
|
hiddenPills: w,
|
|
6186
6187
|
placement: vp(e)
|
|
@@ -6263,7 +6264,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6263
6264
|
}, a);
|
|
6264
6265
|
}) });
|
|
6265
6266
|
}), fp = (e, t, r) => {
|
|
6266
|
-
if (e.type === "cartesian") return
|
|
6267
|
+
if (e.type === "cartesian") return fl(e, t);
|
|
6267
6268
|
const n = at(r), o = se(t.x, e.innerRadius, n), a = se(t.x, 1, n);
|
|
6268
6269
|
return {
|
|
6269
6270
|
x1: o.x,
|
|
@@ -6320,7 +6321,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6320
6321
|
})
|
|
6321
6322
|
});
|
|
6322
6323
|
}, xp = ({ coordSystem: e, scales: t, primary: r, panelRect: n, guide: o }) => {
|
|
6323
|
-
const a =
|
|
6324
|
+
const a = pl(e, t, r);
|
|
6324
6325
|
return a === null ? null : /* @__PURE__ */ l(On, {
|
|
6325
6326
|
panelRect: n,
|
|
6326
6327
|
children: /* @__PURE__ */ l("rect", {
|
|
@@ -6330,7 +6331,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6330
6331
|
})
|
|
6331
6332
|
});
|
|
6332
6333
|
}, Ap = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
|
|
6333
|
-
const o =
|
|
6334
|
+
const o = yl(e, t);
|
|
6334
6335
|
if (o === null) return null;
|
|
6335
6336
|
const a = Ge(o);
|
|
6336
6337
|
return a ? /* @__PURE__ */ l(On, {
|
|
@@ -6359,13 +6360,13 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6359
6360
|
},
|
|
6360
6361
|
"data-testid": "hover-guide",
|
|
6361
6362
|
children: t
|
|
6362
|
-
}), bp = (e) => e.hoverGuide().resolve(),
|
|
6363
|
-
for (const n of Object.values(
|
|
6363
|
+
}), bp = (e) => e.hoverGuide().resolve(), zy = (e, t, r) => {
|
|
6364
|
+
for (const n of Object.values(as)) {
|
|
6364
6365
|
const o = n(e, t, r);
|
|
6365
6366
|
if (o !== null) return o;
|
|
6366
6367
|
}
|
|
6367
6368
|
return null;
|
|
6368
|
-
}, Sp = (e) =>
|
|
6369
|
+
}, Sp = (e) => as[e] !== void 0, wp = (e, t, r) => os(e, r, t / 2), kp = (e, t) => {
|
|
6369
6370
|
const r = At(e.start, t), n = At(e.end, t);
|
|
6370
6371
|
return r.x === n.x && r.y === n.y ? null : {
|
|
6371
6372
|
shape: "segment",
|
|
@@ -6388,7 +6389,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6388
6389
|
}, zt = (e, t) => (r, n, o) => {
|
|
6389
6390
|
const a = e(r).find((i) => i.id === n);
|
|
6390
6391
|
return a === void 0 ? null : t(a, o);
|
|
6391
|
-
},
|
|
6392
|
+
}, os = (e, t, r = 0) => {
|
|
6392
6393
|
const n = en(e, t);
|
|
6393
6394
|
return {
|
|
6394
6395
|
shape: "rect",
|
|
@@ -6399,14 +6400,14 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6399
6400
|
height: n.height + r * 2
|
|
6400
6401
|
}
|
|
6401
6402
|
};
|
|
6402
|
-
},
|
|
6403
|
+
}, as = {
|
|
6403
6404
|
text: zt((e) => e.textAnnotations, Ep),
|
|
6404
6405
|
shape: zt((e) => e.shapes, (e, t) => wp(e.region, t.readers.annotation.shape(e.id).get("strokeWidth"), t.panel)),
|
|
6405
|
-
image: zt((e) => e.images, (e, t) =>
|
|
6406
|
+
image: zt((e) => e.images, (e, t) => os(e.region, t.panel)),
|
|
6406
6407
|
arrow: zt((e) => e.arrows, (e, t) => kp(e, t.panel))
|
|
6407
6408
|
}, Pp = (e, t) => {
|
|
6408
|
-
const r =
|
|
6409
|
-
return r !== null && Sp(r.kind) &&
|
|
6409
|
+
const r = ll(e, t);
|
|
6410
|
+
return r !== null && Sp(r.kind) && Sl(r);
|
|
6410
6411
|
}, Rp = 200, Cp = ({ engine: e, store: t, overlayRef: r }) => {
|
|
6411
6412
|
const { tolerance: n } = Ne[Mt()], o = nt(t, (i) => i.editorOwnsQuery), a = Qe();
|
|
6412
6413
|
W(() => {
|
|
@@ -6467,7 +6468,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6467
6468
|
A.setHoverState(t.query(x.cursor, { tolerance: n })), A.setTooltipAnchor(Ip(x.tooltip, m));
|
|
6468
6469
|
return;
|
|
6469
6470
|
}
|
|
6470
|
-
const w =
|
|
6471
|
+
const w = Ul(p, m);
|
|
6471
6472
|
A.setHoverState(t.query(w, { tolerance: n })), A.setTooltipAnchor(null);
|
|
6472
6473
|
}, c = () => {
|
|
6473
6474
|
const v = r.getState();
|
|
@@ -6494,7 +6495,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6494
6495
|
e.removeEventListener("pointermove", g), e.removeEventListener("pointerleave", f), document.removeEventListener("pointermove", h), a !== null && cancelAnimationFrame(a), o = null;
|
|
6495
6496
|
};
|
|
6496
6497
|
}, Bp = ({ panelRect: e }) => {
|
|
6497
|
-
const { engine: t, store: r, overlayRef: n } = Ue(), o = Ie(
|
|
6498
|
+
const { engine: t, store: r, overlayRef: n } = Ue(), o = Ie(Ni), a = Ie(mg), i = Ie((d) => d.caret !== null);
|
|
6498
6499
|
Cp({
|
|
6499
6500
|
engine: t,
|
|
6500
6501
|
store: r,
|
|
@@ -6523,7 +6524,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6523
6524
|
}, [e, o]);
|
|
6524
6525
|
}, mr = () => Ie((e) => xt(e, "move-drag")?.annotationId ?? xt(e, "shape-resize-drag")?.annotationId ?? xt(e, "arrow-endpoint-drag")?.annotationId ?? null), Ot = (e) => {
|
|
6525
6526
|
const t = B((s) => s.annotations), r = ng(), n = ig(), o = Np(e), a = ie((s) => Bo(n, "cycle", s, `Annotation reference cycle detected; dropping annotation(s): ${s.join(", ")}`), [n]), i = ie((s) => Bo(n, "missing-ref", s, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${s.join(", ")}`), [n]);
|
|
6526
|
-
return b(() =>
|
|
6527
|
+
return b(() => Gl({
|
|
6527
6528
|
annotations: t,
|
|
6528
6529
|
panelRect: e,
|
|
6529
6530
|
measuredBoxes: r,
|
|
@@ -6540,7 +6541,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6540
6541
|
]);
|
|
6541
6542
|
}, Np = (e) => {
|
|
6542
6543
|
const t = B((a) => a.layers), r = B((a) => a.coordSystem), n = de(), o = je();
|
|
6543
|
-
return b(() =>
|
|
6544
|
+
return b(() => ol({
|
|
6544
6545
|
layers: t,
|
|
6545
6546
|
coordSystem: r,
|
|
6546
6547
|
readPaintedRect: (a, i) => n(a.geom, r.type)?.getObservationRect?.({
|
|
@@ -6560,7 +6561,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6560
6561
|
}, Bo = (e, t, r, n) => {
|
|
6561
6562
|
const o = [t, ...[...r].sort()].join("\0");
|
|
6562
6563
|
e.has(o) || (e.add(o), console.warn(n));
|
|
6563
|
-
}, Hp = 16,
|
|
6564
|
+
}, Hp = 16, is = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ l("path", {
|
|
6564
6565
|
d: e,
|
|
6565
6566
|
stroke: "transparent",
|
|
6566
6567
|
strokeWidth: Math.max(t, Hp),
|
|
@@ -6583,7 +6584,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6583
6584
|
return /* @__PURE__ */ S("g", {
|
|
6584
6585
|
pointerEvents: r ? void 0 : "none",
|
|
6585
6586
|
children: [
|
|
6586
|
-
r && /* @__PURE__ */ l(
|
|
6587
|
+
r && /* @__PURE__ */ l(is, {
|
|
6587
6588
|
linePath: e.linePath,
|
|
6588
6589
|
strokeWidth: e.strokeWidth
|
|
6589
6590
|
}),
|
|
@@ -6648,13 +6649,13 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6648
6649
|
};
|
|
6649
6650
|
}, Vp = (e, t, r) => {
|
|
6650
6651
|
try {
|
|
6651
|
-
return
|
|
6652
|
+
return rd(e, t) < Dp ? r : t;
|
|
6652
6653
|
} catch {
|
|
6653
6654
|
return r;
|
|
6654
6655
|
}
|
|
6655
6656
|
}, Yp = ({ panelRect: e, editable: t }) => {
|
|
6656
6657
|
const { arrows: r } = Ot(e), n = mr(), o = O(), a = b(() => r.filter((i) => i.id !== n).flatMap((i) => {
|
|
6657
|
-
const s =
|
|
6658
|
+
const s = Ml(o, i.id), d = Xs({
|
|
6658
6659
|
arrow: i,
|
|
6659
6660
|
style: s,
|
|
6660
6661
|
panelWidth: e.width,
|
|
@@ -6699,7 +6700,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6699
6700
|
return /* @__PURE__ */ S("g", {
|
|
6700
6701
|
pointerEvents: o ? void 0 : "none",
|
|
6701
6702
|
children: [
|
|
6702
|
-
o && /* @__PURE__ */ l(
|
|
6703
|
+
o && /* @__PURE__ */ l(is, {
|
|
6703
6704
|
linePath: e,
|
|
6704
6705
|
strokeWidth: n
|
|
6705
6706
|
}),
|
|
@@ -6749,7 +6750,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6749
6750
|
})]
|
|
6750
6751
|
});
|
|
6751
6752
|
}, Qp = "_1i8rg6j0", Xp = "75%", qp = ({ panelRect: e, editable: t }) => {
|
|
6752
|
-
const r = bg(), n = Ie(
|
|
6753
|
+
const r = bg(), n = Ie(Ni), o = jp(), a = b(() => new Set(o.filter((i) => i.kind === "annotation").map((i) => i.id)), [o]);
|
|
6753
6754
|
return r.length === 0 ? null : /* @__PURE__ */ l("g", {
|
|
6754
6755
|
transform: `translate(${e.x}, ${e.y})`,
|
|
6755
6756
|
"data-testid": "difference-arrows",
|
|
@@ -6833,7 +6834,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6833
6834
|
fill: z(t.fill),
|
|
6834
6835
|
fillOpacity: t.fillAlpha,
|
|
6835
6836
|
opacity: t.alpha,
|
|
6836
|
-
stroke:
|
|
6837
|
+
stroke: xl(t) ?? "none",
|
|
6837
6838
|
strokeWidth: t.strokeWidth
|
|
6838
6839
|
});
|
|
6839
6840
|
}, Oo = ({ panelRect: e, zOrder: t }) => {
|
|
@@ -6857,13 +6858,13 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6857
6858
|
})
|
|
6858
6859
|
}, i.id))
|
|
6859
6860
|
});
|
|
6860
|
-
}, em = "_1aj6s5s0",
|
|
6861
|
+
}, em = "_1aj6s5s0", Vy = "_1aj6s5s1", tm = 0.1, Yy = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ l(ss, {
|
|
6861
6862
|
annotation: e,
|
|
6862
6863
|
panel: t,
|
|
6863
6864
|
style: r,
|
|
6864
6865
|
blockRef: n,
|
|
6865
6866
|
children: /* @__PURE__ */ l(et, { content: e.content })
|
|
6866
|
-
}),
|
|
6867
|
+
}), ss = ({ annotation: e, panel: t, style: r, blockRef: n, children: o }) => {
|
|
6867
6868
|
const a = At(e.at, t);
|
|
6868
6869
|
return /* @__PURE__ */ l("foreignObject", {
|
|
6869
6870
|
x: a.x,
|
|
@@ -6899,7 +6900,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6899
6900
|
if (e.fill === "transparent") return {};
|
|
6900
6901
|
const t = z(e.fill), r = e.fillAlpha < 1 ? re(t, e.fillAlpha) : t;
|
|
6901
6902
|
if (e.strokeWidth <= 0) return { backgroundColor: r };
|
|
6902
|
-
const n = e.stroke ??
|
|
6903
|
+
const n = e.stroke ?? Lc(t, tm);
|
|
6903
6904
|
return {
|
|
6904
6905
|
backgroundColor: r,
|
|
6905
6906
|
borderShadow: `0 0 0 ${e.strokeWidth}px ${n}`
|
|
@@ -6936,7 +6937,7 @@ var lp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
|
|
|
6936
6937
|
kind: "annotation",
|
|
6937
6938
|
id: e.id
|
|
6938
6939
|
}),
|
|
6939
|
-
children: /* @__PURE__ */ l(
|
|
6940
|
+
children: /* @__PURE__ */ l(ss, {
|
|
6940
6941
|
annotation: e,
|
|
6941
6942
|
panel: t,
|
|
6942
6943
|
style: r,
|
|
@@ -6969,7 +6970,7 @@ function hm(e) {
|
|
|
6969
6970
|
coordSystem: d.coordSystem,
|
|
6970
6971
|
numberFormat: d.config.numberFormat,
|
|
6971
6972
|
parsingLocale: d.config.parsingLocale
|
|
6972
|
-
}))), a = r ?? o.parsingLocale, i = b(() =>
|
|
6973
|
+
}))), a = r ?? o.parsingLocale, i = b(() => al({
|
|
6973
6974
|
numberFormat: o.numberFormat,
|
|
6974
6975
|
locale: a
|
|
6975
6976
|
}), [o.numberFormat, a]), s = b(() => (d, c, u) => {
|
|
@@ -6980,7 +6981,7 @@ function hm(e) {
|
|
|
6980
6981
|
text: f
|
|
6981
6982
|
};
|
|
6982
6983
|
}, [t, n]);
|
|
6983
|
-
return b(() =>
|
|
6984
|
+
return b(() => Cl({
|
|
6984
6985
|
pinnedNumbers: o.pinnedNumbers,
|
|
6985
6986
|
comments: o.comments,
|
|
6986
6987
|
panelRect: e,
|
|
@@ -7000,7 +7001,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7000
7001
|
const { pinnedNumbers: t, comments: r } = B(oe((v) => ({
|
|
7001
7002
|
pinnedNumbers: v.annotations.pinnedNumbers,
|
|
7002
7003
|
comments: v.annotations.comments
|
|
7003
|
-
}))), n = B((v) => v.coordSystem), o = de(), a =
|
|
7004
|
+
}))), n = B((v) => v.coordSystem), o = de(), a = vd(10), i = O(), s = hm(e), { store: d } = Ue(), c = b(() => {
|
|
7004
7005
|
const v = /* @__PURE__ */ new Map();
|
|
7005
7006
|
for (const m of t) v.set(m.id, m.at);
|
|
7006
7007
|
for (const m of r) v.set(m.id, m.at);
|
|
@@ -7018,7 +7019,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7018
7019
|
t,
|
|
7019
7020
|
r,
|
|
7020
7021
|
i
|
|
7021
|
-
]), g = b(() =>
|
|
7022
|
+
]), g = b(() => Ws(s, e), [s, e]), f = st([...h.values()].map((v) => v.label.fill));
|
|
7022
7023
|
return W(() => {
|
|
7023
7024
|
const v = d.getState();
|
|
7024
7025
|
return v.publishPointerRegions(Ho, g), () => {
|
|
@@ -7147,7 +7148,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7147
7148
|
} : {
|
|
7148
7149
|
width: t * e,
|
|
7149
7150
|
height: t
|
|
7150
|
-
}, Em = "_1agclyl0", Pm = "_1agclyl1", Rm = "_1agclyl2",
|
|
7151
|
+
}, Em = "_1agclyl0", Pm = "_1agclyl1", Rm = "_1agclyl2", ls = ({ x: e, y: t, width: r, height: n, text: o, rotated: a, labelRole: i, position: s, coordType: d, backdropColor: c }) => {
|
|
7151
7152
|
const u = O(), h = I(pr, u), g = I(Nv, u), f = a ? `rotate(-90 ${e} ${t})` : void 0, v = h[i][s], m = v.stroke !== void 0 && (v.strokeWidth ?? 0) > 0, p = Tm(i, d, v), A = Lm(v, p, c, g), x = {
|
|
7152
7153
|
x: e - r / 2,
|
|
7153
7154
|
y: t - n / 2,
|
|
@@ -7194,7 +7195,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7194
7195
|
if (o !== void 0) return o;
|
|
7195
7196
|
const a = t && e.fill !== void 0 ? z(e.fill) : void 0, i = a === void 0 ? void 0 : Vt(void 0, a);
|
|
7196
7197
|
if (i !== void 0) return i;
|
|
7197
|
-
const s = Vt(r, n) ??
|
|
7198
|
+
const s = Vt(r, n) ?? Bl(r);
|
|
7198
7199
|
if (s !== void 0)
|
|
7199
7200
|
return Vt(a, s);
|
|
7200
7201
|
}, Im = (e) => {
|
|
@@ -7207,7 +7208,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7207
7208
|
axes: v.guides.axes,
|
|
7208
7209
|
numberFormat: v.config.numberFormat,
|
|
7209
7210
|
parsingLocale: v.config.parsingLocale
|
|
7210
|
-
}))), s = O(), d = nn(), c = I(pr, s), u = b(() =>
|
|
7211
|
+
}))), s = O(), d = nn(), c = I(pr, s), u = b(() => Ci({
|
|
7211
7212
|
textMeasurer: o,
|
|
7212
7213
|
dataLabelStyles: c,
|
|
7213
7214
|
familyDefault: a.fonts.familyDefault
|
|
@@ -7215,7 +7216,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7215
7216
|
o,
|
|
7216
7217
|
c,
|
|
7217
7218
|
a.fonts.familyDefault
|
|
7218
|
-
]), h = b(() =>
|
|
7219
|
+
]), h = b(() => zs({
|
|
7219
7220
|
...i,
|
|
7220
7221
|
panelRect: e,
|
|
7221
7222
|
measureDataLabel: u,
|
|
@@ -7240,9 +7241,9 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7240
7241
|
return;
|
|
7241
7242
|
}
|
|
7242
7243
|
const v = JSON.stringify(h.warnings);
|
|
7243
|
-
v !== g.current && (g.current = v,
|
|
7244
|
+
v !== g.current && (g.current = v, od(h.warnings));
|
|
7244
7245
|
}, [h.warnings]);
|
|
7245
|
-
const f = h.labels.map((v, m) => /* @__PURE__ */ l(
|
|
7246
|
+
const f = h.labels.map((v, m) => /* @__PURE__ */ l(ls, {
|
|
7246
7247
|
x: v.x,
|
|
7247
7248
|
y: v.y,
|
|
7248
7249
|
width: v.width,
|
|
@@ -7491,7 +7492,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7491
7492
|
children: u
|
|
7492
7493
|
});
|
|
7493
7494
|
}, Km = ({ formattedAxis: e, rect: t }) => {
|
|
7494
|
-
const r = e.position === "bottom" || e.position === "top", n = Ae(e.scaleAestheticKey), o = O(), a = I(Rn, o)(n, e.position), i = I(
|
|
7495
|
+
const r = e.position === "bottom" || e.position === "top", n = Ae(e.scaleAestheticKey), o = O(), a = I(Rn, o)(n, e.position), i = I(Pi, o)[n], s = He(), d = b(() => ({
|
|
7495
7496
|
width: t.width,
|
|
7496
7497
|
height: t.height
|
|
7497
7498
|
}), [t.width, t.height]), c = r ? t.width : t.height, u = b(() => s ? Hm(e.ticks.map((h) => h.position), c) : void 0, [
|
|
@@ -7562,7 +7563,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7562
7563
|
};
|
|
7563
7564
|
}
|
|
7564
7565
|
}, Qm = ({ axes: e, rects: t }) => {
|
|
7565
|
-
const r = I(
|
|
7566
|
+
const r = I(Ei, O()), n = He();
|
|
7566
7567
|
return /* @__PURE__ */ l(T, { children: e.map((o) => {
|
|
7567
7568
|
const a = t[o.position];
|
|
7568
7569
|
return !a || !o.visible ? null : /* @__PURE__ */ l(Xm, {
|
|
@@ -7595,7 +7596,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7595
7596
|
}) }), Jm = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ l(Qm, {
|
|
7596
7597
|
axes: e.filter((r) => r.geometry === "linear"),
|
|
7597
7598
|
rects: t
|
|
7598
|
-
}),
|
|
7599
|
+
}), ds = {
|
|
7599
7600
|
strokeDashoffset: "0",
|
|
7600
7601
|
strokeLinecap: "round"
|
|
7601
7602
|
}, $t = (e, t) => e.gridLine[t]().resolve(), Zm = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
|
|
@@ -7636,13 +7637,13 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7636
7637
|
}
|
|
7637
7638
|
const k = /* @__PURE__ */ l("line", {
|
|
7638
7639
|
...w,
|
|
7639
|
-
...
|
|
7640
|
+
...ds,
|
|
7640
7641
|
strokeDasharray: v,
|
|
7641
7642
|
strokeWidth: f,
|
|
7642
7643
|
stroke: h.stroke
|
|
7643
7644
|
});
|
|
7644
7645
|
return a ? /* @__PURE__ */ S("g", {
|
|
7645
|
-
...
|
|
7646
|
+
...Ji(u.scaleAestheticKey),
|
|
7646
7647
|
children: [k, /* @__PURE__ */ l("line", {
|
|
7647
7648
|
...w,
|
|
7648
7649
|
stroke: "transparent",
|
|
@@ -7657,7 +7658,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7657
7658
|
}, $m = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, _m = ({ sizes: e, panelFrameRect: t }) => {
|
|
7658
7659
|
const r = B((a) => a.coordSystem.type === "polar"), n = I(oa, O());
|
|
7659
7660
|
if (r) return null;
|
|
7660
|
-
const o =
|
|
7661
|
+
const o = $s(n, {
|
|
7661
7662
|
x: e.left / 2,
|
|
7662
7663
|
y: e.top / 2,
|
|
7663
7664
|
width: t.width - (e.left + e.right) / 2,
|
|
@@ -7676,7 +7677,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7676
7677
|
stroke: a.stroke,
|
|
7677
7678
|
strokeDasharray: rt(a.dashArray, a.strokeWidth),
|
|
7678
7679
|
strokeWidth: a.strokeWidth,
|
|
7679
|
-
...
|
|
7680
|
+
...ds
|
|
7680
7681
|
}, i))
|
|
7681
7682
|
});
|
|
7682
7683
|
}, e0 = (e) => e.map((t) => {
|
|
@@ -7693,7 +7694,7 @@ var vm = (e, t, r, n) => t !== "comment" ? r : la(r, 140, (o) => e.measureText(o
|
|
|
7693
7694
|
return "Z";
|
|
7694
7695
|
}
|
|
7695
7696
|
}).join(" ");
|
|
7696
|
-
var
|
|
7697
|
+
var cs = (e, t) => {
|
|
7697
7698
|
const r = B((d) => d.coordSystem);
|
|
7698
7699
|
if (r.type !== "polar") return null;
|
|
7699
7700
|
const n = t.find((d) => d.geometry === "circular");
|
|
@@ -7705,11 +7706,11 @@ var ds = (e, t) => {
|
|
|
7705
7706
|
radialAxis: t.find((d) => d.geometry === "radial"),
|
|
7706
7707
|
innerRadius: o,
|
|
7707
7708
|
startAngle: a,
|
|
7708
|
-
angleFor: (d) =>
|
|
7709
|
+
angleFor: (d) => Il(d, a, i),
|
|
7709
7710
|
radiusNormFor: (d) => o + d * (1 - o)
|
|
7710
7711
|
};
|
|
7711
7712
|
}, t0 = 16, r0 = ({ formattedAxes: e, panelRect: t }) => {
|
|
7712
|
-
const r = I(Rn, O()), n = He(), o =
|
|
7713
|
+
const r = I(Rn, O()), n = He(), o = cs(t, e);
|
|
7713
7714
|
if (!o) return null;
|
|
7714
7715
|
const { circle: a, circularAxis: i, radialAxis: s, startAngle: d, angleFor: c, radiusNormFor: u } = o, h = n0(s, u, a.radius), g = (f) => r(Ae(f.scaleAestheticKey));
|
|
7715
7716
|
return /* @__PURE__ */ S("svg", {
|
|
@@ -7728,7 +7729,7 @@ var ds = (e, t) => {
|
|
|
7728
7729
|
hitTestable: n
|
|
7729
7730
|
}, `radial-label-${v}`)), i.visible && i.ticks.map((f, v) => {
|
|
7730
7731
|
if (f.position >= 1 - 1e-9) return null;
|
|
7731
|
-
const m = c(f.position), p = se(m, (a.radius +
|
|
7732
|
+
const m = c(f.position), p = se(m, (a.radius + Ms) / a.radius, a);
|
|
7732
7733
|
return /* @__PURE__ */ l(Fo, {
|
|
7733
7734
|
scaleAestheticKey: i.scaleAestheticKey,
|
|
7734
7735
|
tickIndex: v,
|
|
@@ -7776,7 +7777,7 @@ var ds = (e, t) => {
|
|
|
7776
7777
|
const t = Math.sin(e);
|
|
7777
7778
|
return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
|
|
7778
7779
|
}, a0 = ({ formattedAxes: e, panelRect: t }) => {
|
|
7779
|
-
const r = O(), n = He(), o = I($t, r, "y"), a = I($t, r, "x"), i =
|
|
7780
|
+
const r = O(), n = He(), o = I($t, r, "y"), a = I($t, r, "x"), i = cs(t, e);
|
|
7780
7781
|
if (!i) return null;
|
|
7781
7782
|
const { circle: s, circularAxis: d, radialAxis: c, innerRadius: u, angleFor: h, radiusNormFor: g } = i;
|
|
7782
7783
|
return /* @__PURE__ */ S("svg", {
|
|
@@ -7839,7 +7840,7 @@ var ds = (e, t) => {
|
|
|
7839
7840
|
strokeWidth: t.strokeWidth
|
|
7840
7841
|
});
|
|
7841
7842
|
return r ? /* @__PURE__ */ S("g", {
|
|
7842
|
-
...
|
|
7843
|
+
...Ji(e),
|
|
7843
7844
|
children: [o, n({
|
|
7844
7845
|
stroke: "transparent",
|
|
7845
7846
|
strokeWidth: 7,
|
|
@@ -7847,12 +7848,12 @@ var ds = (e, t) => {
|
|
|
7847
7848
|
"data-testid": "grid-line-hit-area"
|
|
7848
7849
|
})]
|
|
7849
7850
|
}) : o;
|
|
7850
|
-
}, _t = ({ renderer: e, children: t, ...r }) => e.overpaintPlacement === "manual" ? t : /* @__PURE__ */ l(
|
|
7851
|
+
}, _t = ({ renderer: e, children: t, ...r }) => e.overpaintPlacement === "manual" ? t : /* @__PURE__ */ l(gi, {
|
|
7851
7852
|
...r,
|
|
7852
7853
|
empty: Gr(t),
|
|
7853
7854
|
children: t
|
|
7854
|
-
}), Gr = (e) => e == null || typeof e == "boolean" || e === "" ? !0 : Array.isArray(e) ? e.every(Gr) :
|
|
7855
|
-
const o =
|
|
7855
|
+
}), Gr = (e) => e == null || typeof e == "boolean" || e === "" ? !0 : Array.isArray(e) ? e.every(Gr) : Xl(e) && (e.type === Pt || e.type === "g") ? Gr(e.props.children) : !1, i0 = ({ layer: e, dimmed: t, dimStyle: r, ...n }) => {
|
|
7856
|
+
const o = wi(e.id), a = ha(e, G(e)), i = t ? r.filter : void 0, s = a && i ? `${a} ${i}` : a || i, d = o?.type === "fade", c = b(() => ({
|
|
7856
7857
|
layerId: e.id,
|
|
7857
7858
|
paintsShadow: a !== void 0,
|
|
7858
7859
|
fading: d
|
|
@@ -7880,7 +7881,7 @@ var ds = (e, t) => {
|
|
|
7880
7881
|
children: u
|
|
7881
7882
|
}) : u;
|
|
7882
7883
|
}, s0 = ({ layer: e, coordSystem: t, animateTransitions: r, formattingLocale: n, panelRect: o, live: a }) => {
|
|
7883
|
-
const i = de(), s =
|
|
7884
|
+
const i = de(), s = wi(e.id), { colorScheme: d } = ee(), c = G(e), u = i(e.geom, t.type);
|
|
7884
7885
|
if (u === null) return null;
|
|
7885
7886
|
const h = vr(u.render), g = {
|
|
7886
7887
|
layer: e,
|
|
@@ -7935,7 +7936,7 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
7935
7936
|
t,
|
|
7936
7937
|
o,
|
|
7937
7938
|
n
|
|
7938
|
-
]), { colorScheme: u } = ee(), h = G(t), g = O(), f = b(() =>
|
|
7939
|
+
]), { colorScheme: u } = ee(), h = G(t), g = O(), f = b(() => il(t), [t]), v = b(() => rl({
|
|
7939
7940
|
layer: t,
|
|
7940
7941
|
numberFormat: d,
|
|
7941
7942
|
locale: s
|
|
@@ -8018,7 +8019,7 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8018
8019
|
size: a * 2,
|
|
8019
8020
|
fill: n,
|
|
8020
8021
|
"data-testid": "highlight-overlay-dot"
|
|
8021
|
-
}), v !== null && m !== null && /* @__PURE__ */ l(
|
|
8022
|
+
}), v !== null && m !== null && /* @__PURE__ */ l(ls, {
|
|
8022
8023
|
x: h * r.width,
|
|
8023
8024
|
y: g * r.height - a - d0 - m.height / 2,
|
|
8024
8025
|
width: m.width,
|
|
@@ -8077,10 +8078,10 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8077
8078
|
const n = t.resolveState("dimmed", r);
|
|
8078
8079
|
return {
|
|
8079
8080
|
opacity: n.alpha,
|
|
8080
|
-
filter: Aa(
|
|
8081
|
+
filter: Aa(Rl(n))
|
|
8081
8082
|
};
|
|
8082
8083
|
}, [e, t]);
|
|
8083
|
-
}, m0 = "var(--to1jkx0)", y0 = "var(--to1jkx1)",
|
|
8084
|
+
}, m0 = "var(--to1jkx0)", y0 = "var(--to1jkx1)", us = "to1jkx2", x0 = "to1jkx3", A0 = ({ animateTransitions: e, panelRect: t, formattingLocale: r }) => {
|
|
8084
8085
|
const { layers: n, coordSystem: o } = B(oe((s) => ({
|
|
8085
8086
|
layers: s.layers,
|
|
8086
8087
|
coordSystem: s.coordSystem
|
|
@@ -8093,12 +8094,12 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8093
8094
|
y: t.y,
|
|
8094
8095
|
width: t.width,
|
|
8095
8096
|
height: t.height,
|
|
8096
|
-
className:
|
|
8097
|
+
className: us,
|
|
8097
8098
|
"data-testid": "geom-layers",
|
|
8098
|
-
...
|
|
8099
|
+
...Zi(),
|
|
8099
8100
|
children: /* @__PURE__ */ l(sn, {
|
|
8100
8101
|
size: i,
|
|
8101
|
-
children: a.map((s) => /* @__PURE__ */ S(Pt, { children: [/* @__PURE__ */ l(
|
|
8102
|
+
children: a.map((s) => /* @__PURE__ */ S(Pt, { children: [/* @__PURE__ */ l(vs, {
|
|
8102
8103
|
layer: s,
|
|
8103
8104
|
coordSystem: o,
|
|
8104
8105
|
animateTransitions: e,
|
|
@@ -8108,10 +8109,10 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8108
8109
|
layer: s,
|
|
8109
8110
|
coordSystem: o,
|
|
8110
8111
|
panelRect: t
|
|
8111
|
-
})] }, `${s.id}-${
|
|
8112
|
+
})] }, `${s.id}-${hs(o)}`))
|
|
8112
8113
|
})
|
|
8113
8114
|
});
|
|
8114
|
-
},
|
|
8115
|
+
}, hs = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, vs = ({ layer: e, coordSystem: t, animateTransitions: r, panelRect: n, formattingLocale: o, live: a, dimOnHover: i = !0 }) => {
|
|
8115
8116
|
const s = de(), d = b(() => s(e.geom, t.type), [
|
|
8116
8117
|
s,
|
|
8117
8118
|
e,
|
|
@@ -8183,9 +8184,9 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8183
8184
|
y: e.y,
|
|
8184
8185
|
width: e.width,
|
|
8185
8186
|
height: e.height,
|
|
8186
|
-
className:
|
|
8187
|
+
className: us,
|
|
8187
8188
|
"data-testid": "live-geom-layers",
|
|
8188
|
-
...
|
|
8189
|
+
...Zi({ live: !0 }),
|
|
8189
8190
|
children: /* @__PURE__ */ l(sn, {
|
|
8190
8191
|
size: s,
|
|
8191
8192
|
children: d.map((c) => /* @__PURE__ */ l(k0, {
|
|
@@ -8195,7 +8196,7 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8195
8196
|
panelRect: e,
|
|
8196
8197
|
animateTransitions: t,
|
|
8197
8198
|
formattingLocale: r
|
|
8198
|
-
}, `${c.id}-${
|
|
8199
|
+
}, `${c.id}-${hs(o)}`))
|
|
8199
8200
|
})
|
|
8200
8201
|
});
|
|
8201
8202
|
}, k0 = ({ layer: e, coordSystem: t, readPanelPoint: r, panelRect: n, animateTransitions: o, formattingLocale: a }) => {
|
|
@@ -8203,7 +8204,7 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8203
8204
|
pushHover: i,
|
|
8204
8205
|
readPanelPoint: r
|
|
8205
8206
|
}), [i, r]), d = $e((c) => c.hover.primary?.layerId === e.id);
|
|
8206
|
-
return W(() => () => i(null), [i]), /* @__PURE__ */ l(
|
|
8207
|
+
return W(() => () => i(null), [i]), /* @__PURE__ */ l(vs, {
|
|
8207
8208
|
layer: e,
|
|
8208
8209
|
coordSystem: t,
|
|
8209
8210
|
animateTransitions: o,
|
|
@@ -8317,10 +8318,10 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8317
8318
|
height: zo(r, "height")
|
|
8318
8319
|
};
|
|
8319
8320
|
}, zo = (e, t) => {
|
|
8320
|
-
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new
|
|
8321
|
+
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new Ts({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
|
|
8321
8322
|
return e;
|
|
8322
8323
|
}, L0 = ({ sizing: e, onResize: t, children: r }) => {
|
|
8323
|
-
const n =
|
|
8324
|
+
const n = fi({ onResize: t }), o = F(!1);
|
|
8324
8325
|
if (W(() => {
|
|
8325
8326
|
e.mode === "responsive" && (n.unmeasured || 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.`)));
|
|
8326
8327
|
}, [
|
|
@@ -8392,7 +8393,7 @@ var d0 = 4, c0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8392
8393
|
}
|
|
8393
8394
|
}, B0 = () => {
|
|
8394
8395
|
const [e, t] = U(null), [r, n] = U(null), [o, a] = U(Er);
|
|
8395
|
-
return
|
|
8396
|
+
return ql(() => {
|
|
8396
8397
|
const i = () => {
|
|
8397
8398
|
const d = e ? {
|
|
8398
8399
|
width: e.offsetWidth,
|
|
@@ -8485,10 +8486,10 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8485
8486
|
]
|
|
8486
8487
|
})
|
|
8487
8488
|
});
|
|
8488
|
-
}, G0 = (e, t) => e ? { backgroundColor: "transparent" } : t === void 0 || t >= 1 ? {} : { backgroundColor: `color-mix(in srgb, ${y.graphBackground} ${t * 100}%, transparent)` },
|
|
8489
|
+
}, G0 = (e, t) => e ? { backgroundColor: "transparent" } : t === void 0 || t >= 1 ? {} : { backgroundColor: `color-mix(in srgb, ${y.graphBackground} ${t * 100}%, transparent)` }, jy = (e) => /* @__PURE__ */ l(Wh, {
|
|
8489
8490
|
locale: tg(),
|
|
8490
8491
|
children: /* @__PURE__ */ l(W0, { ...e })
|
|
8491
|
-
}), W0 = ({ slots: e, sizing: t = T0, onResize: r, ...n }) => /* @__PURE__ */ l(fh, { children: /* @__PURE__ */ l(
|
|
8492
|
+
}), W0 = ({ slots: e, sizing: t = T0, onResize: r, ...n }) => /* @__PURE__ */ l(fh, { children: /* @__PURE__ */ l(qc, { children: /* @__PURE__ */ l(cu, {
|
|
8492
8493
|
slots: e,
|
|
8493
8494
|
children: /* @__PURE__ */ l(L0, {
|
|
8494
8495
|
sizing: t,
|
|
@@ -8500,7 +8501,7 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8500
8501
|
})
|
|
8501
8502
|
})
|
|
8502
8503
|
}) }) }), z0 = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Re.readonly }) => {
|
|
8503
|
-
const a =
|
|
8504
|
+
const a = pi(), i = An(o), { axes: s, legends: d, layers: c, numberFormat: u, parsingLocale: h, annotations: g, coordSystem: f, headline: v, headlineConfig: m, content: p, overflowStrategy: A } = B(oe((ue) => ({
|
|
8504
8505
|
axes: ue.guides.axes,
|
|
8505
8506
|
legends: ue.guides.legends.drawn,
|
|
8506
8507
|
layers: ue.layers,
|
|
@@ -8512,7 +8513,7 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8512
8513
|
headlineConfig: ue.config.headline,
|
|
8513
8514
|
content: ue.config.content,
|
|
8514
8515
|
overflowStrategy: ue.config.panel.overflow
|
|
8515
|
-
}))), { intro: x, transitions: w } = Rh(r, c), { headerRef: k, footerRef: E, measurements: R } = B0(), { formattingLocale: L, colorScheme: P } = ee(), M = Ne[i], H = M.editorSurface, [J, ce] = U(null), j = xe("Header", $g), Ce = xe("Footer", Kg),
|
|
8516
|
+
}))), { intro: x, transitions: w } = Rh(r, c), { headerRef: k, footerRef: E, measurements: R } = B0(), { formattingLocale: L, colorScheme: P } = ee(), M = Ne[i], H = M.editorSurface, [J, ce] = U(null), j = xe("Header", $g), Ce = xe("Footer", Kg), gs = xe("Legend", gp), fs = xe("Headline", Af), ps = xe("EditorSurface", O0), Hn = b(() => cl({
|
|
8516
8517
|
legends: d,
|
|
8517
8518
|
numberFormat: u,
|
|
8518
8519
|
parsingLocale: h,
|
|
@@ -8522,7 +8523,7 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8522
8523
|
u,
|
|
8523
8524
|
h,
|
|
8524
8525
|
L
|
|
8525
|
-
]), dt = b(() =>
|
|
8526
|
+
]), dt = b(() => dl({
|
|
8526
8527
|
headline: v,
|
|
8527
8528
|
show: m.show,
|
|
8528
8529
|
numberFormat: u,
|
|
@@ -8536,7 +8537,7 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8536
8537
|
h,
|
|
8537
8538
|
L,
|
|
8538
8539
|
a
|
|
8539
|
-
]),
|
|
8540
|
+
]), ms = Oe(), ke = O(), Dn = I(V0, ke), Fn = I(oa, ke), Gn = I(Cn, ke), Wn = I(Y0, ke), ys = I(j0, ke), xs = I(K0, ke), As = I(U0, ke), { fontFamily: yr, textScale: bs, strokeWidth: xr, fill: Ss } = Dn, zn = b(() => Ua(P, {}, yr), [P, yr]), ct = b(() => ({
|
|
8540
8541
|
width: Math.max(0, e - 2 * xr),
|
|
8541
8542
|
height: Math.max(0, t - 2 * xr)
|
|
8542
8543
|
}), [
|
|
@@ -8547,7 +8548,7 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8547
8548
|
p.brandMark.enabled,
|
|
8548
8549
|
p.brandMark.variant,
|
|
8549
8550
|
ct
|
|
8550
|
-
]),
|
|
8551
|
+
]), ws = p.brandMark.placement === "footer" ? Vn : "hidden", ks = p.brandMark.placement === "header" ? Vn : "hidden", qe = b(() => dt ? {
|
|
8551
8552
|
formatted: dt,
|
|
8552
8553
|
size: m.size,
|
|
8553
8554
|
position: m.position,
|
|
@@ -8558,10 +8559,10 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8558
8559
|
m.position,
|
|
8559
8560
|
f
|
|
8560
8561
|
]), Nt = Zv({
|
|
8561
|
-
textMeasurer:
|
|
8562
|
+
textMeasurer: ms,
|
|
8562
8563
|
metrics: zn,
|
|
8563
|
-
overrides:
|
|
8564
|
-
}), Yn = b(() =>
|
|
8564
|
+
overrides: uu()
|
|
8565
|
+
}), Yn = b(() => _s(Fn), [Fn]), ut = $v({
|
|
8565
8566
|
measurer: Nt,
|
|
8566
8567
|
axes: s,
|
|
8567
8568
|
numberFormat: u,
|
|
@@ -8576,9 +8577,9 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8576
8577
|
coordSystem: f,
|
|
8577
8578
|
overflowStrategy: A,
|
|
8578
8579
|
panelBorder: Yn,
|
|
8579
|
-
padding: I(
|
|
8580
|
-
margins: I(
|
|
8581
|
-
}), Ht = b(() => !ut || !qe || !Nt ? null :
|
|
8580
|
+
padding: I(zl, ke),
|
|
8581
|
+
margins: I(Dl, ke)
|
|
8582
|
+
}), Ht = b(() => !ut || !qe || !Nt ? null : Vl({
|
|
8582
8583
|
headline: qe,
|
|
8583
8584
|
layout: ut.layout,
|
|
8584
8585
|
containerSize: ct,
|
|
@@ -8592,16 +8593,16 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8592
8593
|
Gn.gap
|
|
8593
8594
|
]);
|
|
8594
8595
|
if (!ut) return null;
|
|
8595
|
-
const { layout: ae, formattedAxes: jn, plotBottomY:
|
|
8596
|
-
return /* @__PURE__ */ l(
|
|
8596
|
+
const { layout: ae, formattedAxes: jn, plotBottomY: Es } = ut, Ps = ae.footer.height > 0;
|
|
8597
|
+
return /* @__PURE__ */ l($i.Provider, {
|
|
8597
8598
|
value: i,
|
|
8598
8599
|
children: /* @__PURE__ */ l($h, {
|
|
8599
8600
|
colorScheme: P,
|
|
8600
|
-
textScale:
|
|
8601
|
-
graphBackground: z(
|
|
8601
|
+
textScale: bs,
|
|
8602
|
+
graphBackground: z(Ss),
|
|
8602
8603
|
graphFontFamily: yr,
|
|
8603
8604
|
headingFontFamily: Wn.fontFamily,
|
|
8604
|
-
children: /* @__PURE__ */ l(
|
|
8605
|
+
children: /* @__PURE__ */ l(Yc, {
|
|
8605
8606
|
metrics: zn,
|
|
8606
8607
|
children: /* @__PURE__ */ l(rg, { children: /* @__PURE__ */ l(Ag, {
|
|
8607
8608
|
panelRect: ae.panel,
|
|
@@ -8627,8 +8628,8 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8627
8628
|
subtitle: p.subtitle,
|
|
8628
8629
|
showSubtitle: p.showSubtitle,
|
|
8629
8630
|
headingStyle: Wn,
|
|
8630
|
-
subtitleStyle:
|
|
8631
|
-
brandMark:
|
|
8631
|
+
subtitleStyle: ys,
|
|
8632
|
+
brandMark: ks
|
|
8632
8633
|
}),
|
|
8633
8634
|
/* @__PURE__ */ l(R0, {
|
|
8634
8635
|
formattedAxes: jn,
|
|
@@ -8640,8 +8641,8 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8640
8641
|
axisLabelRects: ae.axisLabels,
|
|
8641
8642
|
animateTransitions: w,
|
|
8642
8643
|
formattingLocale: L ?? h,
|
|
8643
|
-
plotBottomY:
|
|
8644
|
-
hasReservedFooterSpace:
|
|
8644
|
+
plotBottomY: Es,
|
|
8645
|
+
hasReservedFooterSpace: Ps,
|
|
8645
8646
|
editable: H,
|
|
8646
8647
|
showAnnotations: M.annotations
|
|
8647
8648
|
}),
|
|
@@ -8653,22 +8654,22 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8653
8654
|
showCaption: p.showCaption,
|
|
8654
8655
|
source: p.source,
|
|
8655
8656
|
showSource: p.showSource,
|
|
8656
|
-
captionStyle:
|
|
8657
|
-
sourceStyle:
|
|
8658
|
-
brandMark:
|
|
8657
|
+
captionStyle: xs,
|
|
8658
|
+
sourceStyle: As,
|
|
8659
|
+
brandMark: ws
|
|
8659
8660
|
}),
|
|
8660
|
-
/* @__PURE__ */ l(
|
|
8661
|
+
/* @__PURE__ */ l(gs, {
|
|
8661
8662
|
formattedLegends: Hn,
|
|
8662
8663
|
rects: ae.legends
|
|
8663
8664
|
}),
|
|
8664
|
-
dt && Ht && /* @__PURE__ */ l(
|
|
8665
|
+
dt && Ht && /* @__PURE__ */ l(fs, {
|
|
8665
8666
|
headline: dt,
|
|
8666
8667
|
rect: Ht.rect,
|
|
8667
8668
|
resolvedSize: Ht.resolvedSize,
|
|
8668
8669
|
visibleItemCount: Ht.visibleItemCount,
|
|
8669
|
-
inDonutHole: qe !== void 0 &&
|
|
8670
|
+
inDonutHole: qe !== void 0 && Pl(qe)
|
|
8670
8671
|
}),
|
|
8671
|
-
H && J !== null && /* @__PURE__ */ l(
|
|
8672
|
+
H && J !== null && /* @__PURE__ */ l(ps, {
|
|
8672
8673
|
frameElement: J,
|
|
8673
8674
|
panelRect: ae.panel,
|
|
8674
8675
|
formattedAxes: jn,
|
|
@@ -8685,7 +8686,7 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8685
8686
|
}, V0 = (e) => e.graph().resolve(), Y0 = (e) => e.heading.h1().resolve(), j0 = (e) => e.heading.h2().resolve(), K0 = (e) => e.caption().resolve(), U0 = (e) => ({
|
|
8686
8687
|
label: e.source().resolve(),
|
|
8687
8688
|
link: e.source.link().resolve()
|
|
8688
|
-
}),
|
|
8689
|
+
}), Ky = (e) => {
|
|
8689
8690
|
const t = N(ua), r = nn();
|
|
8690
8691
|
return b(() => e || (t ? {
|
|
8691
8692
|
commands: t.commands,
|
|
@@ -8703,154 +8704,155 @@ var D0 = [], F0 = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
|
|
|
8703
8704
|
t,
|
|
8704
8705
|
r
|
|
8705
8706
|
]);
|
|
8706
|
-
},
|
|
8707
|
+
}, Uy = (e) => Jl(e.subscribe, e.getScene, e.getScene), Qy = () => {
|
|
8707
8708
|
const { commands: e } = ee();
|
|
8708
8709
|
return e;
|
|
8709
|
-
},
|
|
8710
|
+
}, Xy = (e) => {
|
|
8710
8711
|
if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
|
|
8711
8712
|
const t = e.key.toLowerCase();
|
|
8712
8713
|
return t === "z" ? e.shiftKey ? "redo" : "undo" : t === "y" && e.ctrlKey && !e.shiftKey ? "redo" : null;
|
|
8713
8714
|
};
|
|
8714
8715
|
export {
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8716
|
+
Iy as $,
|
|
8717
|
+
I as $t,
|
|
8718
|
+
Gy as A,
|
|
8719
|
+
ua as An,
|
|
8719
8720
|
Ah as At,
|
|
8720
|
-
|
|
8721
|
+
Dy as B,
|
|
8721
8722
|
xy as Bt,
|
|
8722
8723
|
fp as C,
|
|
8723
|
-
|
|
8724
|
-
|
|
8724
|
+
Kt as Cn,
|
|
8725
|
+
ky as Ct,
|
|
8725
8726
|
Xe as D,
|
|
8726
|
-
|
|
8727
|
-
|
|
8727
|
+
O as Dn,
|
|
8728
|
+
wy as Dt,
|
|
8728
8729
|
Zt as E,
|
|
8729
|
-
|
|
8730
|
+
G as En,
|
|
8730
8731
|
Ne as Et,
|
|
8731
8732
|
cf as F,
|
|
8732
8733
|
Dr as Ft,
|
|
8733
8734
|
Ie as G,
|
|
8734
|
-
|
|
8735
|
+
yy as Gt,
|
|
8735
8736
|
Gg as H,
|
|
8736
|
-
|
|
8737
|
+
ui as Ht,
|
|
8737
8738
|
df as I,
|
|
8738
8739
|
ch as It,
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8740
|
+
Oy as J,
|
|
8741
|
+
my as Jt,
|
|
8742
|
+
Hy as K,
|
|
8743
|
+
Z as Kt,
|
|
8744
|
+
zi as L,
|
|
8744
8745
|
Nr as Lt,
|
|
8745
|
-
|
|
8746
|
-
|
|
8746
|
+
Ji as M,
|
|
8747
|
+
ly as Mn,
|
|
8747
8748
|
ph as Mt,
|
|
8748
8749
|
Bn as N,
|
|
8749
|
-
|
|
8750
|
+
nn as Nn,
|
|
8750
8751
|
fh as Nt,
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8752
|
+
Fy as O,
|
|
8753
|
+
va as On,
|
|
8754
|
+
fi as Ot,
|
|
8754
8755
|
bf as P,
|
|
8756
|
+
od as Pn,
|
|
8755
8757
|
Ue as Pt,
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
+
Ty as Q,
|
|
8759
|
+
Kc as Qt,
|
|
8758
8760
|
$g as R,
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8761
|
+
by as Rt,
|
|
8762
|
+
zy as S,
|
|
8763
|
+
yd as Sn,
|
|
8764
|
+
pi as St,
|
|
8763
8765
|
Mt as T,
|
|
8764
|
-
|
|
8766
|
+
je as Tn,
|
|
8765
8767
|
Re as Tt,
|
|
8766
8768
|
bg as U,
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
|
|
8769
|
+
dh as Ut,
|
|
8770
|
+
Fi as V,
|
|
8771
|
+
Ay as Vt,
|
|
8772
|
+
Ny as W,
|
|
8773
|
+
Nu as Wt,
|
|
8774
|
+
By as X,
|
|
8775
|
+
qc as Xt,
|
|
8776
|
+
My as Y,
|
|
8777
|
+
de as Yt,
|
|
8776
8778
|
xt as Z,
|
|
8777
|
-
|
|
8779
|
+
Oe as Zt,
|
|
8778
8780
|
Ot as _,
|
|
8779
|
-
|
|
8781
|
+
Br as _n,
|
|
8780
8782
|
Jh as _t,
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
+
jy as a,
|
|
8784
|
+
vy as an,
|
|
8783
8785
|
tg as at,
|
|
8784
8786
|
wp as b,
|
|
8785
|
-
|
|
8787
|
+
Me as bn,
|
|
8786
8788
|
Wh as bt,
|
|
8787
8789
|
$t as c,
|
|
8788
|
-
|
|
8790
|
+
no as cn,
|
|
8789
8791
|
$e as ct,
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
+
Yy as d,
|
|
8793
|
+
cy as dn,
|
|
8792
8794
|
bo as dt,
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8795
|
+
Ft as en,
|
|
8796
|
+
Ly as et,
|
|
8797
|
+
Vy as f,
|
|
8798
|
+
Td as fn,
|
|
8797
8799
|
tv as ft,
|
|
8798
8800
|
Gp as g,
|
|
8799
|
-
|
|
8801
|
+
wa as gn,
|
|
8800
8802
|
En as gt,
|
|
8801
8803
|
jp as h,
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8804
|
+
uy as hn,
|
|
8805
|
+
Py as ht,
|
|
8806
|
+
Ky as i,
|
|
8807
|
+
lr as in,
|
|
8806
8808
|
ng as it,
|
|
8807
8809
|
Tn as j,
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8810
|
+
ee as jn,
|
|
8811
|
+
Sy as jt,
|
|
8812
|
+
Wy as k,
|
|
8813
|
+
B as kn,
|
|
8812
8814
|
bh as kt,
|
|
8813
8815
|
Am as l,
|
|
8814
|
-
|
|
8816
|
+
le as ln,
|
|
8815
8817
|
rv as lt,
|
|
8816
8818
|
$p as m,
|
|
8817
|
-
|
|
8819
|
+
hy as mn,
|
|
8818
8820
|
$h as mt,
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8821
|
+
Qy as n,
|
|
8822
|
+
py as nn,
|
|
8823
|
+
Ry as nt,
|
|
8822
8824
|
W0 as o,
|
|
8823
|
-
|
|
8825
|
+
y as on,
|
|
8824
8826
|
Lv as ot,
|
|
8825
8827
|
_p as p,
|
|
8826
|
-
|
|
8828
|
+
Id as pn,
|
|
8827
8829
|
_h as pt,
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8830
|
+
Ni as q,
|
|
8831
|
+
bu as qt,
|
|
8832
|
+
Uy as r,
|
|
8833
|
+
gy as rn,
|
|
8832
8834
|
ag as rt,
|
|
8833
8835
|
Zm as s,
|
|
8834
|
-
|
|
8836
|
+
Le as sn,
|
|
8835
8837
|
Qe as st,
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8838
|
+
Xy as t,
|
|
8839
|
+
fy as tn,
|
|
8840
|
+
Cy as tt,
|
|
8839
8841
|
im as u,
|
|
8840
|
-
|
|
8842
|
+
sn as un,
|
|
8841
8843
|
nv as ut,
|
|
8842
8844
|
Pp as v,
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
+
be as vn,
|
|
8846
|
+
xi as vt,
|
|
8845
8847
|
He as w,
|
|
8846
|
-
|
|
8848
|
+
ze as wn,
|
|
8847
8849
|
bn as wt,
|
|
8848
8850
|
Ep as x,
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
+
dy as xn,
|
|
8852
|
+
Ey as xt,
|
|
8851
8853
|
kp as y,
|
|
8852
|
-
|
|
8854
|
+
q as yn,
|
|
8853
8855
|
Tt as yt,
|
|
8854
8856
|
Kg as z,
|
|
8855
|
-
|
|
8857
|
+
hi as zt
|
|
8856
8858
|
};
|