@graphysdk/react-renderer 0.0.1-experimental.2 → 0.0.1-experimental.4

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/index.mjs CHANGED
@@ -1,45 +1,45 @@
1
1
  import './index.css';
2
2
  import { jsx as a, jsxs as m, Fragment as T } from "react/jsx-runtime";
3
3
  import re, { clsx as ce } from "clsx";
4
- import bo, { useMemo as v, useState as E, useRef as C, useEffect as L, useCallback as mt, useContext as ee, createContext as fe, useId as vt, Fragment as hn, memo as oe } from "react";
5
- import { useStore as Ce } from "zustand";
6
- import { isGraphConfig as xo, createCompiler as So, convertSpecToInput as ko, isCompilerCachingEnabled as Lo, setCompilerCachingEnabled as Co, COMPILER_STAGE_KEYS as yt, RESTING_HOVER_STATE as gn, HoverEngine as To, buildTooltipContent as wo, getDifferenceArrowDimensions as Ao, createHeadlineItemRows as pn, LayoutCompiler as Eo, BORDER_PRESET_GRADIENTS as _o, isSafeUrl as fn, SetContentCaptionCommand as Po, SetContentTitleCommand as Ho, SetContentSubtitleCommand as Fo, computeDirectLabelsLayout as No, buildFontString as Bo, CachedTextMeasurer as It, HeuristicTextMeasurer as Io, getColor as z, getAlpha as W, getSize as Re, toPercent as x, toViewBoxY as ze, toViewBoxX as Ge, createAreaPathGenerators as mn, createStableKeyGenerator as We, GROUP_VARIABLES as we, prepareAreaObservations as vn, resolveStrokeWidth as $e, getDashArray as Xe, getLineType as Ve, isDefined as yn, getGroup as bn, getX as ue, getYMax as Mo, getY as he, getXMax as Do, getBarRectBounds as xn, createLinePathGenerator as Sn, prepareLineObservations as kn, getStrokeWidth as Oo, buildAverageLineSymbols as Ro, formatRuleValue as zo, getAngleExtent as Ln, getRadiusExtent as Cn, buildPolarBarArcPath as Ie, getHoverGuideRectProps as Go, getHoverGuideLineProps as Wo, buildDataLabelsContent as $o, computeDifferenceArrow as Xo, computeFreeformArrow as Vo, createSegmentYReader as Uo, buildLayerYValueFormatter as Yo, formatLegends as jo, formatHeadline as qo, resolveHeadlinePlacement as Ko } from "@graphysdk/viz-engine";
4
+ import xo, { useMemo as v, useState as E, useRef as C, useEffect as L, useCallback as mt, useContext as ee, createContext as fe, useId as vt, Fragment as hn, memo as oe } from "react";
5
+ import { useStore as Te } from "zustand";
6
+ import { isGraphConfig as So, createCompiler as ko, convertSpecToInput as Lo, isCompilerCachingEnabled as Co, setCompilerCachingEnabled as To, COMPILER_STAGE_KEYS as yt, RESTING_HOVER_STATE as gn, HoverEngine as wo, buildTooltipContent as Ao, LAYOUT_PADDING as pn, getDifferenceArrowDimensions as Eo, createHeadlineItemRows as fn, LayoutCompiler as _o, BORDER_PRESET_GRADIENTS as Po, isSafeUrl as mn, SetContentCaptionCommand as Ho, SetContentTitleCommand as Fo, SetContentSubtitleCommand as No, computeDirectLabelsLayout as Bo, buildFontString as Io, CachedTextMeasurer as It, HeuristicTextMeasurer as Mo, getColor as z, getAlpha as X, getSize as Re, toPercent as x, toViewBoxY as ze, toViewBoxX as Ge, createAreaPathGenerators as vn, createStableKeyGenerator as We, GROUP_VARIABLES as Ae, prepareAreaObservations as yn, resolveStrokeWidth as $e, getDashArray as Xe, getLineType as Ve, isDefined as bn, getGroup as xn, getX as ue, getYMax as Do, getY as he, getXMax as Oo, getBarRectBounds as Sn, createLinePathGenerator as kn, prepareLineObservations as Ln, getStrokeWidth as Ro, buildAverageLineSymbols as zo, formatRuleValue as Go, getAngleExtent as Cn, getRadiusExtent as Tn, buildPolarBarArcPath as Ie, getHoverGuideRectProps as Wo, getHoverGuideLineProps as $o, buildDataLabelsContent as Xo, computeDifferenceArrow as Vo, computeFreeformArrow as Uo, createSegmentYReader as Yo, buildLayerYValueFormatter as jo, formatLegends as qo, formatHeadline as Ko, resolveHeadlinePlacement as Jo } from "@graphysdk/viz-engine";
7
7
  import { createStore as bt } from "zustand/vanilla";
8
- import { useMotionValue as Tn, animate as Jo, motion as Y, useSpring as Mt, useReducedMotion as Zo } from "motion/react";
8
+ import { useMotionValue as wn, animate as Zo, motion as Y, useSpring as Mt, useReducedMotion as Qo } from "motion/react";
9
9
  import { useShallow as j } from "zustand/react/shallow";
10
- import { useI18n as J, IntlProvider as Qo } from "@graphysdk/i18n/react";
11
- import { useFloating as xt, offset as St, flip as kt, shift as Lt, autoUpdate as ea } from "@floating-ui/react-dom";
12
- import { Extension as ta } from "@tiptap/core";
13
- import { Bold as wn } from "@tiptap/extension-bold";
10
+ import { useI18n as J, IntlProvider as ea } from "@graphysdk/i18n/react";
11
+ import { useFloating as xt, offset as St, flip as kt, shift as Lt, autoUpdate as ta } from "@floating-ui/react-dom";
12
+ import { Extension as na } from "@tiptap/core";
13
+ import { Bold as An } from "@tiptap/extension-bold";
14
14
  import { Document as lt } from "@tiptap/extension-document";
15
- import { HardBreak as An } from "@tiptap/extension-hard-break";
16
- import { Heading as En } from "@tiptap/extension-heading";
17
- import { Italic as _n } from "@tiptap/extension-italic";
18
- import { Link as Pn } from "@tiptap/extension-link";
19
- import { Text as Hn } from "@tiptap/extension-text";
20
- import { TextAlign as Fn } from "@tiptap/extension-text-align";
21
- import { TextStyle as Nn, Color as Bn, FontFamily as In } from "@tiptap/extension-text-style";
22
- import { Underline as Mn } from "@tiptap/extension-underline";
23
- import { UndoRedo as Dn, Placeholder as On } from "@tiptap/extensions";
24
- import { Paragraph as na } from "@tiptap/extension-paragraph";
25
- import { useEditorState as ra, EditorContent as oa, useEditor as aa } from "@tiptap/react";
15
+ import { HardBreak as En } from "@tiptap/extension-hard-break";
16
+ import { Heading as _n } from "@tiptap/extension-heading";
17
+ import { Italic as Pn } from "@tiptap/extension-italic";
18
+ import { Link as Hn } from "@tiptap/extension-link";
19
+ import { Text as Fn } from "@tiptap/extension-text";
20
+ import { TextAlign as Nn } from "@tiptap/extension-text-align";
21
+ import { TextStyle as Bn, Color as In, FontFamily as Mn } from "@tiptap/extension-text-style";
22
+ import { Underline as Dn } from "@tiptap/extension-underline";
23
+ import { UndoRedo as On, Placeholder as Rn } from "@tiptap/extensions";
24
+ import { Paragraph as ra } from "@tiptap/extension-paragraph";
25
+ import { useEditorState as oa, EditorContent as aa, useEditor as ia } from "@tiptap/react";
26
26
  import { Toolbar as H } from "@base-ui/react/toolbar";
27
27
  import { Tooltip as le } from "@base-ui/react/tooltip";
28
- import { createPortal as ia } from "react-dom";
29
- import { assignInlineVars as sa } from "@vanilla-extract/dynamic";
28
+ import { createPortal as sa } from "react-dom";
29
+ import { assignInlineVars as la } from "@vanilla-extract/dynamic";
30
30
  import { Popover as F } from "@base-ui/react/popover";
31
- import { HexColorPicker as la, HexColorInput as ca } from "react-colorful";
31
+ import { HexColorPicker as ca, HexColorInput as da } from "react-colorful";
32
32
  import { Menu as M } from "@base-ui/react/menu";
33
- import { Toggle as da } from "@base-ui/react/toggle";
34
- import { interpolatePath as ua } from "d3-interpolate-path";
33
+ import { Toggle as ua } from "@base-ui/react/toggle";
34
+ import { interpolatePath as ha } from "d3-interpolate-path";
35
35
  import { getContrast as ct } from "color2k";
36
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "0.0.1-experimental.2");
37
- const ha = 5, ga = (e) => {
36
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "0.0.1-experimental.4");
37
+ const ga = 5, pa = (e) => {
38
38
  if (process.env.NODE_ENV === "production")
39
39
  return {
40
40
  emit: () => {
41
41
  },
42
- subscribe: () => fa,
42
+ subscribe: () => ma,
43
43
  getLastTrigger: () => null,
44
44
  getLastCompile: () => null,
45
45
  getCacheStats: () => e.getCacheStats()
@@ -61,7 +61,7 @@ const ha = 5, ga = (e) => {
61
61
  getLastCompile: () => e.getLastCompile(),
62
62
  getCacheStats: () => e.getCacheStats()
63
63
  };
64
- }, pa = () => bt((e) => ({
64
+ }, fa = () => bt((e) => ({
65
65
  lastCompile: null,
66
66
  history: [],
67
67
  nextId: 1,
@@ -70,19 +70,19 @@ const ha = 5, ga = (e) => {
70
70
  if (r.lastSnapshot === n) return r;
71
71
  const o = {
72
72
  id: r.nextId,
73
- label: ma(t),
73
+ label: va(t),
74
74
  stages: n.stages,
75
75
  durationMs: n.durationMs
76
76
  };
77
77
  return {
78
78
  lastCompile: o,
79
- history: va(r.history, o, ha),
79
+ history: ya(r.history, o, ga),
80
80
  nextId: r.nextId + 1,
81
81
  lastSnapshot: n
82
82
  };
83
83
  })
84
- })), fa = () => {
85
- }, ma = (e) => {
84
+ })), ma = () => {
85
+ }, va = (e) => {
86
86
  switch (e.kind) {
87
87
  case "init":
88
88
  return "init";
@@ -93,18 +93,18 @@ const ha = 5, ga = (e) => {
93
93
  case "command":
94
94
  return e.command.metadata.description;
95
95
  }
96
- }, va = (e, t, n) => {
96
+ }, ya = (e, t, n) => {
97
97
  const r = e.length >= n ? e.length - (n - 1) : 0;
98
98
  return [...e.slice(r), t];
99
- }, ya = (e) => bt((t) => ({
99
+ }, ba = (e) => bt((t) => ({
100
100
  compiled: e,
101
101
  setCompiled: (n) => t((r) => r.compiled === n ? r : { compiled: n })
102
102
  }));
103
- function ba(e, t) {
104
- const n = xo(e) ? e.themeOverrides : void 0;
103
+ function xa(e, t) {
104
+ const n = So(e) ? e.themeOverrides : void 0;
105
105
  return v(() => ({ ...t, ...n }), [t, n]);
106
106
  }
107
- const Rn = fe(null), rg = ({
107
+ const zn = fe(null), og = ({
108
108
  data: e,
109
109
  input: t,
110
110
  formattingLocale: n,
@@ -114,9 +114,9 @@ const Rn = fe(null), rg = ({
114
114
  themeOverrides: c,
115
115
  children: l
116
116
  }) => {
117
- const [d] = E(() => So()), [u] = E(() => ga(d)), h = ba(t, c), g = v(() => ({ customPalettes: o, theme: i }), [o, i]), [p] = E(() => {
117
+ const [d] = E(() => ko()), [u] = E(() => pa(d)), h = xa(t, c), g = v(() => ({ customPalettes: o, theme: i }), [o, i]), [p] = E(() => {
118
118
  const k = d.compile({ input: t, data: e, ctx: g });
119
- return u.emit({ kind: "init" }), ya(k);
119
+ return u.emit({ kind: "init" }), ba(k);
120
120
  }), f = C({ input: t, data: e, ctx: g });
121
121
  L(() => {
122
122
  const k = t !== f.current.input, w = e !== f.current.data, A = g !== f.current.ctx;
@@ -130,7 +130,7 @@ const Rn = fe(null), rg = ({
130
130
  if (!A) return;
131
131
  const I = d.recompile({ spec: A.spec });
132
132
  if (w.setCompiled(I), u.emit({ kind: "command", command: k }), !r) return;
133
- const _ = ko(A.spec);
133
+ const _ = Lo(A.spec);
134
134
  f.current = { input: _, data: f.current.data, ctx: f.current.ctx }, r(_);
135
135
  },
136
136
  [r, d, u, p]
@@ -138,40 +138,40 @@ const Rn = fe(null), rg = ({
138
138
  () => ({ store: p, dispatch: y, formattingLocale: n, compileBus: u, theme: i, themeOverrides: h }),
139
139
  [p, y, n, u, i, h]
140
140
  );
141
- return /* @__PURE__ */ a(Rn.Provider, { value: S, children: l });
141
+ return /* @__PURE__ */ a(zn.Provider, { value: S, children: l });
142
142
  }, me = () => {
143
- const e = ee(Rn);
143
+ const e = ee(zn);
144
144
  if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
145
145
  return e;
146
146
  }, B = (e) => {
147
147
  const { store: t } = me();
148
- return Ce(t, (n) => e(n.compiled));
149
- }, zn = () => {
148
+ return Te(t, (n) => e(n.compiled));
149
+ }, Gn = () => {
150
150
  const { dispatch: e } = me();
151
151
  return e;
152
152
  };
153
- var xa = "drqe3u0", Sa = "drqe3u1", ka = "drqe3u2", La = "drqe3u3", He = "drqe3u4", Ca = "drqe3u5", Ta = "drqe3u6", wa = "drqe3u7", et = "drqe3u8", Aa = "drqe3u9", Ea = "drqe3ua", _a = "drqe3ub", Pa = "drqe3uc", Ha = "drqe3ud", Fa = "drqe3ue", Na = "drqe3uf", Ba = "drqe3ug", Ia = "drqe3uh", Ma = "drqe3ui", Dt = { enabled: "drqe3uk drqe3uj", disabled: "drqe3ul drqe3uj" }, Ot = { ran: "drqe3un drqe3um", dim: "drqe3uo drqe3um" }, Gn = { ran: "drqe3uq drqe3up", cached: "drqe3ur drqe3up", untouched: "drqe3us drqe3up" };
154
- const og = ({ width: e = 380, style: t, className: n } = {}) => {
155
- const { compileBus: r } = me(), [o] = E(() => pa()), [i, c] = E(!1), [l, d] = E(Lo);
153
+ var Sa = "drqe3u0", ka = "drqe3u1", La = "drqe3u2", Ca = "drqe3u3", He = "drqe3u4", Ta = "drqe3u5", wa = "drqe3u6", Aa = "drqe3u7", et = "drqe3u8", Ea = "drqe3u9", _a = "drqe3ua", Pa = "drqe3ub", Ha = "drqe3uc", Fa = "drqe3ud", Na = "drqe3ue", Ba = "drqe3uf", Ia = "drqe3ug", Ma = "drqe3uh", Da = "drqe3ui", Dt = { enabled: "drqe3uk drqe3uj", disabled: "drqe3ul drqe3uj" }, Ot = { ran: "drqe3un drqe3um", dim: "drqe3uo drqe3um" }, Wn = { ran: "drqe3uq drqe3up", cached: "drqe3ur drqe3up", untouched: "drqe3us drqe3up" };
154
+ const ag = ({ width: e = 380, style: t, className: n } = {}) => {
155
+ const { compileBus: r } = me(), [o] = E(() => fa()), [i, c] = E(!1), [l, d] = E(Co);
156
156
  L(() => {
157
157
  const { recordCompile: y } = o.getState(), S = r.getLastTrigger(), k = r.getLastCompile();
158
158
  return S && k && y(S, k), r.subscribe(y);
159
159
  }, [o, r]);
160
- const u = Ce(o, (y) => y.lastCompile), h = Ce(o, (y) => y.history), g = r.getCacheStats(), p = u === null && h.length === 0, f = () => {
160
+ const u = Te(o, (y) => y.lastCompile), h = Te(o, (y) => y.history), g = r.getCacheStats(), p = u === null && h.length === 0, f = () => {
161
161
  d((y) => {
162
162
  const S = !y;
163
- return Co(S), S;
163
+ return To(S), S;
164
164
  });
165
165
  };
166
- return /* @__PURE__ */ m("div", { className: re(Ea, n), style: { width: e, ...t }, children: [
167
- /* @__PURE__ */ m("div", { className: xa, children: [
166
+ return /* @__PURE__ */ m("div", { className: re(_a, n), style: { width: e, ...t }, children: [
167
+ /* @__PURE__ */ m("div", { className: Sa, children: [
168
168
  /* @__PURE__ */ m("div", { children: [
169
- /* @__PURE__ */ a("div", { className: Sa, children: "compile cache" }),
170
- /* @__PURE__ */ a("div", { className: Fa, children: p ? "production: stats disabled" : u ? `last: ${u.label} · ${Wn(u.durationMs)}` : "awaiting first compile…" })
169
+ /* @__PURE__ */ a("div", { className: ka, children: "compile cache" }),
170
+ /* @__PURE__ */ a("div", { className: Na, children: p ? "production: stats disabled" : u ? `last: ${u.label} · ${$n(u.durationMs)}` : "awaiting first compile…" })
171
171
  ] }),
172
- /* @__PURE__ */ a("button", { type: "button", onClick: () => c((y) => !y), className: Na, children: i ? "▾" : "▴" })
172
+ /* @__PURE__ */ a("button", { type: "button", onClick: () => c((y) => !y), className: Ba, children: i ? "▾" : "▴" })
173
173
  ] }),
174
- !i && /* @__PURE__ */ m("div", { className: _a, children: [
174
+ !i && /* @__PURE__ */ m("div", { className: Pa, children: [
175
175
  /* @__PURE__ */ m(
176
176
  "button",
177
177
  {
@@ -185,26 +185,26 @@ const og = ({ width: e = 380, style: t, className: n } = {}) => {
185
185
  ]
186
186
  }
187
187
  ),
188
- /* @__PURE__ */ a("span", { className: Ba, children: "next compile reflects this toggle" })
188
+ /* @__PURE__ */ a("span", { className: Ia, children: "next compile reflects this toggle" })
189
189
  ] }),
190
190
  !i && !p && /* @__PURE__ */ m(T, { children: [
191
- /* @__PURE__ */ a(Da, { delta: u?.stages, cumulative: g }),
192
- /* @__PURE__ */ a(Oa, { entries: h })
191
+ /* @__PURE__ */ a(Oa, { delta: u?.stages, cumulative: g }),
192
+ /* @__PURE__ */ a(Ra, { entries: h })
193
193
  ] })
194
194
  ] });
195
- }, Da = ({ delta: e, cumulative: t }) => /* @__PURE__ */ m("table", { className: ka, children: [
196
- /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ m("tr", { className: Ia, children: [
197
- /* @__PURE__ */ a("th", { className: La, children: "stage" }),
195
+ }, Oa = ({ delta: e, cumulative: t }) => /* @__PURE__ */ m("table", { className: La, children: [
196
+ /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ m("tr", { className: Ma, children: [
197
+ /* @__PURE__ */ a("th", { className: Ca, children: "stage" }),
198
198
  /* @__PURE__ */ a("th", { className: He, children: "Δ miss" }),
199
199
  /* @__PURE__ */ a("th", { className: He, children: "Δ hit" }),
200
200
  /* @__PURE__ */ a("th", { className: He, children: "total miss" }),
201
201
  /* @__PURE__ */ a("th", { className: He, children: "total hit" })
202
202
  ] }) }),
203
203
  /* @__PURE__ */ a("tbody", { children: yt.map((n) => {
204
- const r = e?.[n], o = Ra(r);
205
- return /* @__PURE__ */ m("tr", { className: Pa, children: [
206
- /* @__PURE__ */ m("td", { className: Ca, children: [
207
- /* @__PURE__ */ a("span", { className: Gn[o], "aria-hidden": !0 }),
204
+ const r = e?.[n], o = za(r);
205
+ return /* @__PURE__ */ m("tr", { className: Ha, children: [
206
+ /* @__PURE__ */ m("td", { className: Ta, children: [
207
+ /* @__PURE__ */ a("span", { className: Wn[o], "aria-hidden": !0 }),
208
208
  " ",
209
209
  n
210
210
  ] }),
@@ -214,33 +214,33 @@ const og = ({ width: e = 380, style: t, className: n } = {}) => {
214
214
  /* @__PURE__ */ a("td", { className: et, children: t[n].hits })
215
215
  ] }, n);
216
216
  }) })
217
- ] }), Oa = ({ entries: e }) => e.length === 0 ? null : /* @__PURE__ */ m("div", { className: Ha, children: [
218
- /* @__PURE__ */ a("div", { className: Ma, children: "recent compiles" }),
217
+ ] }), Ra = ({ entries: e }) => e.length === 0 ? null : /* @__PURE__ */ m("div", { className: Fa, children: [
218
+ /* @__PURE__ */ a("div", { className: Da, children: "recent compiles" }),
219
219
  e.map((t) => {
220
- const n = za(t.stages, (i) => i.misses > 0), r = yt.length;
221
- return /* @__PURE__ */ m("div", { className: Ta, children: [
222
- /* @__PURE__ */ a("span", { className: Gn[n === 0 ? "cached" : "ran"], "aria-hidden": !0 }),
223
- /* @__PURE__ */ a("span", { className: wa, title: t.label, children: t.label }),
224
- /* @__PURE__ */ m("span", { className: Aa, children: [
220
+ const n = Ga(t.stages, (i) => i.misses > 0), r = yt.length;
221
+ return /* @__PURE__ */ m("div", { className: wa, children: [
222
+ /* @__PURE__ */ a("span", { className: Wn[n === 0 ? "cached" : "ran"], "aria-hidden": !0 }),
223
+ /* @__PURE__ */ a("span", { className: Aa, title: t.label, children: t.label }),
224
+ /* @__PURE__ */ m("span", { className: Ea, children: [
225
225
  n,
226
226
  "/",
227
227
  r,
228
228
  " ran · ",
229
- Wn(t.durationMs)
229
+ $n(t.durationMs)
230
230
  ] })
231
231
  ] }, t.id);
232
232
  })
233
- ] }), Ra = (e) => !e || e.hits === 0 && e.misses === 0 ? "untouched" : e.misses > 0 ? "ran" : "cached", za = (e, t) => {
233
+ ] }), za = (e) => !e || e.hits === 0 && e.misses === 0 ? "untouched" : e.misses > 0 ? "ran" : "cached", Ga = (e, t) => {
234
234
  let n = 0;
235
235
  for (const r of yt)
236
236
  t(e[r]) && (n += 1);
237
237
  return n;
238
- }, Wn = (e) => e >= 10 ? `${e.toFixed(0)}ms` : `${e.toFixed(2)}ms`, Ga = () => bt((e) => ({
238
+ }, $n = (e) => e >= 10 ? `${e.toFixed(0)}ms` : `${e.toFixed(2)}ms`, Wa = () => bt((e) => ({
239
239
  hover: gn,
240
240
  setHoverState: (t) => e((n) => n.hover === t ? n : { hover: t })
241
- })), Wa = (e, t) => {
241
+ })), $a = (e, t) => {
242
242
  const n = v(() => ({ layers: e, coordSystem: t }), [e, t]), r = C(null);
243
- r.current === null && (r.current = new To(n));
243
+ r.current === null && (r.current = new wo(n));
244
244
  const o = r.current, i = C(!1);
245
245
  return L(() => {
246
246
  if (!i.current) {
@@ -249,38 +249,38 @@ const og = ({ width: e = 380, style: t, className: n } = {}) => {
249
249
  }
250
250
  o.update(n);
251
251
  }, [o, n]), o;
252
- }, $n = fe(null), $a = ({ children: e }) => {
252
+ }, Xn = fe(null), Xa = ({ children: e }) => {
253
253
  const { layers: t, coordSystem: n } = B(
254
254
  j((l) => ({ layers: l.layers, coordSystem: l.coordSystem }))
255
- ), r = Wa(t, n), [o] = E(() => Ga()), i = C(null), c = C(null);
256
- return c.current === null && (c.current = { engine: r, store: o, overlayRef: i }), /* @__PURE__ */ a($n.Provider, { value: c.current, children: e });
255
+ ), r = $a(t, n), [o] = E(() => Wa()), i = C(null), c = C(null);
256
+ return c.current === null && (c.current = { engine: r, store: o, overlayRef: i }), /* @__PURE__ */ a(Xn.Provider, { value: c.current, children: e });
257
257
  }, Ue = () => {
258
- const e = ee($n);
258
+ const e = ee(Xn);
259
259
  if (e === null)
260
260
  throw new Error("useHoverContext must be used inside a <HoverProvider>.");
261
261
  return e;
262
262
  };
263
- var Xa = "_2qyyu60";
264
- const Rt = 2, Va = 12, Ua = 12, zt = 1, Gt = 2, Ya = 4, Ye = ({
263
+ var Va = "_2qyyu60";
264
+ const Rt = 2, Ua = 12, Ya = 12, zt = 1, Gt = 2, ja = 4, Ye = ({
265
265
  shape: e,
266
266
  color: t,
267
267
  lineType: n = "solid",
268
- width: r = Va,
269
- height: o = Ua
268
+ width: r = Ua,
269
+ height: o = Ya
270
270
  }) => /* @__PURE__ */ a(
271
271
  "svg",
272
272
  {
273
- className: Xa,
273
+ className: Va,
274
274
  width: r,
275
275
  height: o,
276
276
  viewBox: `0 0 ${r} ${o}`,
277
277
  "aria-hidden": !0,
278
278
  "data-testid": "chart-swatch",
279
279
  "data-shape": e,
280
- children: ja({ shape: e, color: t, lineType: n, width: r, height: o })
280
+ children: qa({ shape: e, color: t, lineType: n, width: r, height: o })
281
281
  }
282
- ), ja = ({ shape: e, color: t, lineType: n, width: r, height: o }) => {
283
- const i = qa(n, r);
282
+ ), qa = ({ shape: e, color: t, lineType: n, width: r, height: o }) => {
283
+ const i = Ka(n, r);
284
284
  switch (e) {
285
285
  case "square":
286
286
  return /* @__PURE__ */ a("rect", { x: 1, y: 1, width: r - 2, height: o - 2, rx: 2, fill: t });
@@ -324,21 +324,21 @@ const Rt = 2, Va = 12, Ua = 12, zt = 1, Gt = 2, Ya = 4, Ye = ({
324
324
  case "slice":
325
325
  return /* @__PURE__ */ a("path", { d: `M 0 ${o} L ${r} ${o} A ${r} ${o} 0 0 0 0 0 Z`, fill: t });
326
326
  }
327
- }, qa = (e, t) => {
327
+ }, Ka = (e, t) => {
328
328
  if (e === "solid")
329
329
  return { x1: 0, x2: t, dashArray: void 0, linecap: "round" };
330
330
  if (e === "dashed") {
331
331
  const r = (t - zt * (Gt - 1)) / Gt;
332
332
  return { x1: 0, x2: t, dashArray: `${r} ${zt}`, linecap: "butt" };
333
333
  }
334
- const n = t / (Ya - 1);
334
+ const n = t / (ja - 1);
335
335
  return { x1: 0, x2: t, dashArray: `1 ${n}`, linecap: "round" };
336
- }, Xn = Object.freeze({}), Ct = fe(Xn), Ka = ({ slots: e, children: t }) => /* @__PURE__ */ a(Ct.Provider, { value: e ?? Xn, children: t });
336
+ }, Vn = Object.freeze({}), Ct = fe(Vn), Ja = ({ slots: e, children: t }) => /* @__PURE__ */ a(Ct.Provider, { value: e ?? Vn, children: t });
337
337
  function Q(e, t) {
338
338
  const n = ee(Ct)[e];
339
- return n === void 0 ? t : typeof n == "object" && Za(n) ? n.render : n;
339
+ return n === void 0 ? t : typeof n == "object" && Qa(n) ? n.render : n;
340
340
  }
341
- function Ja() {
341
+ function Za() {
342
342
  const e = ee(Ct);
343
343
  return {
344
344
  measureAxis: e.AxisTicks?.measure,
@@ -348,15 +348,15 @@ function Ja() {
348
348
  measureHeadlineItemWidths: e.Headline?.measure.measureHeadlineItemWidths
349
349
  };
350
350
  }
351
- function Za(e) {
351
+ function Qa(e) {
352
352
  return "render" in e && typeof e.render == "function";
353
353
  }
354
354
  function Tt(e) {
355
355
  const { store: t } = Ue();
356
- return Ce(t, e);
356
+ return Te(t, e);
357
357
  }
358
- var Qa = "_19519k80", ei = "_19519k81", ti = "_19519k82", ni = "_19519k83", ri = "_19519k85", oi = "_19519k86", ai = "_19519k87", ii = "_19519k88", si = "_19519k89";
359
- const li = (e) => {
358
+ var ei = "_19519k80", ti = "_19519k81", ni = "_19519k82", ri = "_19519k83", oi = "_19519k85", ai = "_19519k86", ii = "_19519k87", si = "_19519k88", li = "_19519k89";
359
+ const ci = (e) => {
360
360
  const { overlayRef: t } = Ue(), n = C(null), [r, o] = E(!1), i = C(e);
361
361
  return i.current = e, L(() => {
362
362
  const c = t.current;
@@ -370,7 +370,7 @@ const li = (e) => {
370
370
  c.removeEventListener("pointermove", l), c.removeEventListener("pointerleave", d);
371
371
  };
372
372
  }, [t]), { cursorRef: n, isInside: r };
373
- }, ci = 16, di = 8, ui = {
373
+ }, di = 16, ui = 8, hi = {
374
374
  x: 0,
375
375
  y: 0,
376
376
  top: 0,
@@ -380,7 +380,7 @@ const li = (e) => {
380
380
  width: 0,
381
381
  height: 0,
382
382
  toJSON: () => ({})
383
- }, hi = () => {
383
+ }, gi = () => {
384
384
  const e = B(
385
385
  j((f) => ({
386
386
  layers: f.layers,
@@ -390,22 +390,22 @@ const li = (e) => {
390
390
  numberFormat: f.config.numberFormat,
391
391
  parsingLocale: f.config.parsingLocale
392
392
  }))
393
- ), { formattingLocale: t } = me(), n = Tt((f) => f.hover), r = Q("Tooltip", gi), o = C(() => {
394
- }), { cursorRef: i, isInside: c } = li(() => o.current()), l = v(
395
- () => wo({ ...e, hover: n, formattingLocale: t }),
393
+ ), { formattingLocale: t } = me(), n = Tt((f) => f.hover), r = Q("Tooltip", pi), o = C(() => {
394
+ }), { cursorRef: i, isInside: c } = ci(() => o.current()), l = v(
395
+ () => Ao({ ...e, hover: n, formattingLocale: t }),
396
396
  [e, n, t]
397
397
  ), d = l !== null && c, u = v(
398
398
  () => ({
399
399
  getBoundingClientRect: () => {
400
400
  const f = i.current;
401
- return f === null ? ui : pi(f);
401
+ return f === null ? hi : fi(f);
402
402
  }
403
403
  }),
404
404
  [i]
405
405
  ), { refs: h, floatingStyles: g, update: p } = xt({
406
406
  open: d,
407
407
  placement: "right",
408
- middleware: [St(ci), kt(), Lt({ padding: di })],
408
+ middleware: [St(di), kt(), Lt({ padding: ui })],
409
409
  elements: { reference: u }
410
410
  });
411
411
  return o.current = p, d ? /* @__PURE__ */ a(
@@ -413,16 +413,16 @@ const li = (e) => {
413
413
  {
414
414
  ref: h.setFloating,
415
415
  role: "tooltip",
416
- className: ii,
416
+ className: si,
417
417
  style: g,
418
418
  "data-testid": "chart-tooltip",
419
419
  children: /* @__PURE__ */ a(r, { content: l, isVisible: d })
420
420
  }
421
421
  ) : null;
422
- }, gi = ({ content: e, isVisible: t }) => t ? /* @__PURE__ */ m("div", { className: si, children: [
423
- e.header !== null && /* @__PURE__ */ a("div", { className: Qa, children: e.header }),
424
- /* @__PURE__ */ a("div", { className: ei, children: e.rows.map((n) => /* @__PURE__ */ a(fi, { row: n, shouldHighlight: n.isPrimary && e.rows.length > 1 }, n.key)) })
425
- ] }) : null, pi = (e) => ({
422
+ }, pi = ({ content: e, isVisible: t }) => t ? /* @__PURE__ */ m("div", { className: li, children: [
423
+ e.header !== null && /* @__PURE__ */ a("div", { className: ei, children: e.header }),
424
+ /* @__PURE__ */ a("div", { className: ti, children: e.rows.map((n) => /* @__PURE__ */ a(mi, { row: n, shouldHighlight: n.isPrimary && e.rows.length > 1 }, n.key)) })
425
+ ] }) : null, fi = (e) => ({
426
426
  x: e.clientX,
427
427
  y: e.clientY,
428
428
  top: e.clientY,
@@ -432,14 +432,14 @@ const li = (e) => {
432
432
  width: 0,
433
433
  height: 0,
434
434
  toJSON: () => ({})
435
- }), fi = ({ row: e, shouldHighlight: t }) => /* @__PURE__ */ m("div", { className: re(ti, { [ni]: t }), "data-testid": "chart-tooltip-row", children: [
436
- e.swatchColor === null ? /* @__PURE__ */ a("span", { className: ri, "aria-hidden": !0 }) : /* @__PURE__ */ a(Ye, { shape: e.swatchShape, color: e.swatchColor, lineType: e.swatchLineType }),
437
- /* @__PURE__ */ a("span", { className: oi, children: e.label }),
438
- /* @__PURE__ */ a("span", { className: ai, children: e.value })
435
+ }), mi = ({ row: e, shouldHighlight: t }) => /* @__PURE__ */ m("div", { className: re(ni, { [ri]: t }), "data-testid": "chart-tooltip-row", children: [
436
+ e.swatchColor === null ? /* @__PURE__ */ a("span", { className: oi, "aria-hidden": !0 }) : /* @__PURE__ */ a(Ye, { shape: e.swatchShape, color: e.swatchColor, lineType: e.swatchLineType }),
437
+ /* @__PURE__ */ a("span", { className: ai, children: e.label }),
438
+ /* @__PURE__ */ a("span", { className: ii, children: e.value })
439
439
  ] });
440
- var Vn = ["canvasDefault", "canvasBlue", "canvasCyan", "canvasGreen", "canvasYellow", "canvasOrange", "canvasRed", "canvasPink", "canvasPurple", "canvasGray", "canvasInverse"], s = { white: "var(--graphy-white)", black: "var(--graphy-black)", transparent: "var(--graphy-transparent)", grey100: "var(--graphy-grey-100)", grey95: "var(--graphy-grey-95)", grey90: "var(--graphy-grey-90)", grey85: "var(--graphy-grey-85)", grey80: "var(--graphy-grey-80)", grey75: "var(--graphy-grey-75)", grey70: "var(--graphy-grey-70)", grey60: "var(--graphy-grey-60)", grey50: "var(--graphy-grey-50)", grey0: "var(--graphy-grey-0)", greyGradient80: "var(--graphy-grey-gradient-80)", green60: "var(--graphy-green-60)", green50: "var(--graphy-green-50)", red60: "var(--graphy-red-60)", red50: "var(--graphy-red-50)", amber70: "var(--graphy-amber-70)", amber50: "var(--graphy-amber-50)", amber40: "var(--graphy-amber-40)", amber30: "var(--graphy-amber-30)", blue80: "var(--graphy-blue-80)", blue60: "var(--graphy-blue-60)", purple50: "var(--graphy-purple-50)", purple30: "var(--graphy-purple-30)", brand: "var(--graphy-brand)", success: "var(--graphy-success)", warning: "var(--graphy-warning)", alert: "var(--graphy-alert)", textPrimary: "var(--graphy-text-primary)", textSecondary: "var(--graphy-text-secondary)", textDisabled: "var(--graphy-text-disabled)", iconPrimary: "var(--graphy-icon-primary)", iconSecondary: "var(--graphy-icon-secondary)", iconStickerBackground: "var(--graphy-icon-sticker-background)", border100: "var(--graphy-border-100)", border50: "var(--graphy-border-50)", border10: "var(--graphy-border-10)", sunkenBackground: "var(--graphy-sunken-background)", defaultBackground: "var(--graphy-default-background)", raisedBackground: "var(--graphy-raised-background)", overlayBackground: "var(--graphy-overlay-background)", overlayBorderGradient: "var(--graphy-overlay-border-gradient)", graphBackground: "var(--graphy-graph-background)", gridLineColor: "var(--graphy-grid-line-color)", originLineColor: "var(--graphy-origin-line-color)", targetLineColor: "var(--graphy-target-line-color)", targetLineMarkerColor: "var(--graphy-target-line-marker-color)", targetLineLabelTextColor: "var(--graphy-target-line-label-text-color)", legendBackground: "var(--graphy-legend-background)", legendBorderColor: "var(--graphy-legend-border-color)", legendFocusOutlineColor: "var(--graphy-legend-focus-outline-color)", legendTextColor: "var(--graphy-legend-text-color)", dimmedSeriesLabelTextColor: "var(--graphy-dimmed-series-label-text-color)", dimmedSeriesLabelLineColor: "var(--graphy-dimmed-series-label-line-color)", trendNegativeColor: "var(--graphy-trend-negative-color)", trendPositiveColor: "var(--graphy-trend-positive-color)", trendNeutralColor: "var(--graphy-trend-neutral-color)", defaultAnnotationArrowStroke: "var(--graphy-default-annotation-arrow-stroke)", defaultAnnotationShapeStroke: "var(--graphy-default-annotation-shape-stroke)", defaultAnnotationShapeFill: "var(--graphy-default-annotation-shape-fill)", arrowAnnotationStickerOutlineColor: "var(--graphy-arrow-annotation-sticker-outline-color)", arrowAnnotationStickerOutlineColorInverse: "var(--graphy-arrow-annotation-sticker-outline-color-inverse)", annotationFrameBorderColor: "var(--graphy-annotation-frame-border-color)", annotationMenuTriggerIconColor: "var(--graphy-annotation-menu-trigger-icon-color)", heatmapEmptyTileBackground: "var(--graphy-heatmap-empty-tile-background)", dataLabelOutsideBackground: "var(--graphy-data-label-outside-background)", gridLineWidth: "var(--graphy-grid-line-width)", gridLineDash: "var(--graphy-grid-line-dash)", tooltipBorderRadius: "var(--graphy-tooltip-border-radius)", tooltipBorderWidth: "var(--graphy-tooltip-border-width)", tooltipPaddingBlock: "var(--graphy-tooltip-padding-block)", tooltipPaddingInline: "var(--graphy-tooltip-padding-inline)", tooltipRowGap: "var(--graphy-tooltip-row-gap)", tooltipShadow: "var(--graphy-tooltip-shadow)", tickLabelOffset: "var(--graphy-tick-label-offset)", legendItemGap: "var(--graphy-legend-item-gap)", legendSwatchGap: "var(--graphy-legend-swatch-gap)", legendSwatchWidth: "var(--graphy-legend-swatch-width)", legendSwatchHeight: "var(--graphy-legend-swatch-height)", legendPillPaddingInline: "var(--graphy-legend-pill-padding-inline)", legendPillPaddingBlock: "var(--graphy-legend-pill-padding-block)", legendPillBorderWidth: "var(--graphy-legend-pill-border-width)", headlineRowGap: "var(--graphy-headline-row-gap)", headlineItemGap: "var(--graphy-headline-item-gap)", canvasDefault: "var(--graphy-canvas-default)", canvasBlue: "var(--graphy-canvas-blue)", canvasCyan: "var(--graphy-canvas-cyan)", canvasGreen: "var(--graphy-canvas-green)", canvasYellow: "var(--graphy-canvas-yellow)", canvasOrange: "var(--graphy-canvas-orange)", canvasRed: "var(--graphy-canvas-red)", canvasPink: "var(--graphy-canvas-pink)", canvasPurple: "var(--graphy-canvas-purple)", canvasGray: "var(--graphy-canvas-gray)", canvasInverse: "var(--graphy-canvas-inverse)", elevationXs: "var(--graphy-elevation-xs)", elevationSm: "var(--graphy-elevation-sm)", elevationMd: "var(--graphy-elevation-md)", elevationLg: "var(--graphy-elevation-lg)", radiiXs: "var(--graphy-radii-xs)", radiiSm: "var(--graphy-radii-sm)", radiiMd: "var(--graphy-radii-md)", radiiLg: "var(--graphy-radii-lg)", spaceXxs: "var(--graphy-space-xxs)", spaceXs: "var(--graphy-space-xs)", spaceSm: "var(--graphy-space-sm)", spaceMd: "var(--graphy-space-md)", spaceLg: "var(--graphy-space-lg)", spaceXl: "var(--graphy-space-xl)", zIndexToolbar: "var(--graphy-z-index-toolbar)", zIndexToolbarTooltip: "var(--graphy-z-index-toolbar-tooltip)", zIndexToolbarPopover: "var(--graphy-z-index-toolbar-popover)", toolbarBackgroundColor: "var(--graphy-toolbar-background-color)", toolbarButtonBackgroundColor: "var(--graphy-toolbar-button-background-color)", toolbarButtonBackgroundColorHovered: "var(--graphy-toolbar-button-background-color-hovered)", toolbarButtonBackgroundColorSelected: "var(--graphy-toolbar-button-background-color-selected)", toolbarSeparatorColor: "var(--graphy-toolbar-separator-color)", tooltipBackground: "var(--graphy-tooltip-background)", tooltipBorderColor: "var(--graphy-tooltip-border-color)", tooltipHeadingTextColor: "var(--graphy-tooltip-heading-text-color)", tooltipLabelTextColor: "var(--graphy-tooltip-label-text-color)", tooltipValueTextColor: "var(--graphy-tooltip-value-text-color)", tooltipPrimaryRowColor: "var(--graphy-tooltip-primary-row-color)", hoverGuideLineColor: "var(--graphy-hover-guide-line-color)", hoverGuideFillColor: "var(--graphy-hover-guide-fill-color)", hoveredBarBorderColor: "var(--graphy-hovered-bar-border-color)", hoveredPointRingColor: "var(--graphy-hovered-point-ring-color)", pointStrokeColor: "var(--graphy-point-stroke-color)", stackedBarHoverBorderColor: "var(--graphy-stacked-bar-hover-border-color)", fontFamilyDefault: "var(--graphy-font-family-default)", fontFamilyHeading: "var(--graphy-font-family-heading)", fontWeightRegular: "var(--graphy-font-weight-regular)", fontWeightMedium: "var(--graphy-font-weight-medium)", fontWeightSemibold: "var(--graphy-font-weight-semibold)", fontWeightBold: "var(--graphy-font-weight-bold)", fontWeightExtraBold: "var(--graphy-font-weight-extra-bold)", fontWeightBlack: "var(--graphy-font-weight-black)", textScale: "var(--graphy-text-scale)", fontSizeXxs: "var(--graphy-font-size-xxs)", fontSizeXs: "var(--graphy-font-size-xs)", fontSizeSm: "var(--graphy-font-size-sm)", fontSizeMd: "var(--graphy-font-size-md)", fontSizeLg: "var(--graphy-font-size-lg)", fontSizeXl: "var(--graphy-font-size-xl)", fontLineHeightXxs: "var(--graphy-font-line-height-xxs)", fontLineHeightXs: "var(--graphy-font-line-height-xs)", fontLineHeightSm: "var(--graphy-font-line-height-sm)", fontLineHeightMd: "var(--graphy-font-line-height-md)", fontLineHeightLg: "var(--graphy-font-line-height-lg)", fontLineHeightXl: "var(--graphy-font-line-height-xl)", fontSizeEditorBody: "var(--graphy-font-size-editor-body)", fontSizeHeadingSm: "var(--graphy-font-size-heading-sm)", fontSizeHeadingMd: "var(--graphy-font-size-heading-md)", fontSizeHeadingLg: "var(--graphy-font-size-heading-lg)", fontLineHeightEditorBody: "var(--graphy-font-line-height-editor-body)", fontLineHeightHeadingSm: "var(--graphy-font-line-height-heading-sm)", fontLineHeightHeadingMd: "var(--graphy-font-line-height-heading-md)", fontLineHeightHeadingLg: "var(--graphy-font-line-height-heading-lg)", fontTickLabel: "var(--graphy-font-tick-label)", fontAxisLabel: "var(--graphy-font-axis-label)", fontDataLabel: "var(--graphy-font-data-label)", fontStackTotal: "var(--graphy-font-stack-total)", fontLegendLabel: "var(--graphy-font-legend-label)", fontSeriesLabel: "var(--graphy-font-series-label)", fontTooltipLabel: "var(--graphy-font-tooltip-label)", fontTooltipHeading: "var(--graphy-font-tooltip-heading)", fontTooltipFooter: "var(--graphy-font-tooltip-footer)", fontJumboTooltipLabel: "var(--graphy-font-jumbo-tooltip-label)", fontJumboTooltip: "var(--graphy-font-jumbo-tooltip)", fontMiniTooltipLabel: "var(--graphy-font-mini-tooltip-label)", fontMiniTooltipFooter: "var(--graphy-font-mini-tooltip-footer)", fontTooltipCaption: "var(--graphy-font-tooltip-caption)", fontTooltipCaptionSmall: "var(--graphy-font-tooltip-caption-small)", fontTrendTag: "var(--graphy-font-trend-tag)", fontTrendTagSmall: "var(--graphy-font-trend-tag-small)", fontGoalLineLabel: "var(--graphy-font-goal-line-label)", fontPieLabel: "var(--graphy-font-pie-label)", fontPieChartTotal: "var(--graphy-font-pie-chart-total)", fontDifferenceArrowSmall: "var(--graphy-font-difference-arrow-small)", fontDifferenceArrowMedium: "var(--graphy-font-difference-arrow-medium)", fontDifferenceArrowLarge: "var(--graphy-font-difference-arrow-large)", fontButton: "var(--graphy-font-button)", fontInput: "var(--graphy-font-input)", fontInputLabel: "var(--graphy-font-input-label)", fontSelectLabel: "var(--graphy-font-select-label)", fontSelectDescription: "var(--graphy-font-select-description)", fontColorSelectLabel: "var(--graphy-font-color-select-label)", fontMenuTitle: "var(--graphy-font-menu-title)", fontMenuGroupTitle: "var(--graphy-font-menu-group-title)", fontMenuItemLabel: "var(--graphy-font-menu-item-label)", fontMenuItemLabelSecondary: "var(--graphy-font-menu-item-label-secondary)", fontUITooltip: "var(--graphy-font-uitooltip)", fontUITooltipSecondary: "var(--graphy-font-uitooltip-secondary)", fontErrorBoundaryTitle: "var(--graphy-font-error-boundary-title)", fontErrorBoundaryMessage: "var(--graphy-font-error-boundary-message)", fontTableCell: "var(--graphy-font-table-cell)", fontTableHeaderCell: "var(--graphy-font-table-header-cell)", fontSourceLabel: "var(--graphy-font-source-label)", fontSourceLink: "var(--graphy-font-source-link)", fontTextEditorH1: "var(--graphy-font-text-editor-h1)", fontTextEditorH2: "var(--graphy-font-text-editor-h2)", fontTextEditorH3: "var(--graphy-font-text-editor-h3)", fontTextEditorH6: "var(--graphy-font-text-editor-h6)", fontTextEditorBody: "var(--graphy-font-text-editor-body)", fontTextEditorLink: "var(--graphy-font-text-editor-link)", fontHighlightModeTitle: "var(--graphy-font-highlight-mode-title)", fontHighlightModeSubtitle: "var(--graphy-font-highlight-mode-subtitle)" };
440
+ var Un = ["canvasDefault", "canvasBlue", "canvasCyan", "canvasGreen", "canvasYellow", "canvasOrange", "canvasRed", "canvasPink", "canvasPurple", "canvasGray", "canvasInverse"], s = { white: "var(--graphy-white)", black: "var(--graphy-black)", transparent: "var(--graphy-transparent)", grey100: "var(--graphy-grey-100)", grey95: "var(--graphy-grey-95)", grey90: "var(--graphy-grey-90)", grey85: "var(--graphy-grey-85)", grey80: "var(--graphy-grey-80)", grey75: "var(--graphy-grey-75)", grey70: "var(--graphy-grey-70)", grey60: "var(--graphy-grey-60)", grey50: "var(--graphy-grey-50)", grey0: "var(--graphy-grey-0)", greyGradient80: "var(--graphy-grey-gradient-80)", green60: "var(--graphy-green-60)", green50: "var(--graphy-green-50)", red60: "var(--graphy-red-60)", red50: "var(--graphy-red-50)", amber70: "var(--graphy-amber-70)", amber50: "var(--graphy-amber-50)", amber40: "var(--graphy-amber-40)", amber30: "var(--graphy-amber-30)", blue80: "var(--graphy-blue-80)", blue60: "var(--graphy-blue-60)", purple50: "var(--graphy-purple-50)", purple30: "var(--graphy-purple-30)", brand: "var(--graphy-brand)", success: "var(--graphy-success)", warning: "var(--graphy-warning)", alert: "var(--graphy-alert)", textPrimary: "var(--graphy-text-primary)", textSecondary: "var(--graphy-text-secondary)", textDisabled: "var(--graphy-text-disabled)", iconPrimary: "var(--graphy-icon-primary)", iconSecondary: "var(--graphy-icon-secondary)", iconStickerBackground: "var(--graphy-icon-sticker-background)", border100: "var(--graphy-border-100)", border50: "var(--graphy-border-50)", border10: "var(--graphy-border-10)", sunkenBackground: "var(--graphy-sunken-background)", defaultBackground: "var(--graphy-default-background)", raisedBackground: "var(--graphy-raised-background)", overlayBackground: "var(--graphy-overlay-background)", overlayBorderGradient: "var(--graphy-overlay-border-gradient)", graphBackground: "var(--graphy-graph-background)", gridLineColor: "var(--graphy-grid-line-color)", originLineColor: "var(--graphy-origin-line-color)", targetLineColor: "var(--graphy-target-line-color)", targetLineMarkerColor: "var(--graphy-target-line-marker-color)", targetLineLabelTextColor: "var(--graphy-target-line-label-text-color)", legendBackground: "var(--graphy-legend-background)", legendBorderColor: "var(--graphy-legend-border-color)", legendFocusOutlineColor: "var(--graphy-legend-focus-outline-color)", legendTextColor: "var(--graphy-legend-text-color)", dimmedSeriesLabelTextColor: "var(--graphy-dimmed-series-label-text-color)", dimmedSeriesLabelLineColor: "var(--graphy-dimmed-series-label-line-color)", trendNegativeColor: "var(--graphy-trend-negative-color)", trendPositiveColor: "var(--graphy-trend-positive-color)", trendNeutralColor: "var(--graphy-trend-neutral-color)", defaultAnnotationArrowStroke: "var(--graphy-default-annotation-arrow-stroke)", defaultAnnotationShapeStroke: "var(--graphy-default-annotation-shape-stroke)", defaultAnnotationShapeFill: "var(--graphy-default-annotation-shape-fill)", arrowAnnotationStickerOutlineColor: "var(--graphy-arrow-annotation-sticker-outline-color)", arrowAnnotationStickerOutlineColorInverse: "var(--graphy-arrow-annotation-sticker-outline-color-inverse)", annotationFrameBorderColor: "var(--graphy-annotation-frame-border-color)", annotationMenuTriggerIconColor: "var(--graphy-annotation-menu-trigger-icon-color)", heatmapEmptyTileBackground: "var(--graphy-heatmap-empty-tile-background)", dataLabelOutsideBackground: "var(--graphy-data-label-outside-background)", graphPadding: "var(--graphy-graph-padding)", gridLineWidth: "var(--graphy-grid-line-width)", gridLineDash: "var(--graphy-grid-line-dash)", tooltipBorderRadius: "var(--graphy-tooltip-border-radius)", tooltipBorderWidth: "var(--graphy-tooltip-border-width)", tooltipPaddingBlock: "var(--graphy-tooltip-padding-block)", tooltipPaddingInline: "var(--graphy-tooltip-padding-inline)", tooltipRowGap: "var(--graphy-tooltip-row-gap)", tooltipShadow: "var(--graphy-tooltip-shadow)", tickLabelOffset: "var(--graphy-tick-label-offset)", legendItemGap: "var(--graphy-legend-item-gap)", legendSwatchGap: "var(--graphy-legend-swatch-gap)", legendSwatchWidth: "var(--graphy-legend-swatch-width)", legendSwatchHeight: "var(--graphy-legend-swatch-height)", legendPillPaddingInline: "var(--graphy-legend-pill-padding-inline)", legendPillPaddingBlock: "var(--graphy-legend-pill-padding-block)", legendPillBorderWidth: "var(--graphy-legend-pill-border-width)", headlineRowGap: "var(--graphy-headline-row-gap)", headlineItemGap: "var(--graphy-headline-item-gap)", canvasDefault: "var(--graphy-canvas-default)", canvasBlue: "var(--graphy-canvas-blue)", canvasCyan: "var(--graphy-canvas-cyan)", canvasGreen: "var(--graphy-canvas-green)", canvasYellow: "var(--graphy-canvas-yellow)", canvasOrange: "var(--graphy-canvas-orange)", canvasRed: "var(--graphy-canvas-red)", canvasPink: "var(--graphy-canvas-pink)", canvasPurple: "var(--graphy-canvas-purple)", canvasGray: "var(--graphy-canvas-gray)", canvasInverse: "var(--graphy-canvas-inverse)", elevationXs: "var(--graphy-elevation-xs)", elevationSm: "var(--graphy-elevation-sm)", elevationMd: "var(--graphy-elevation-md)", elevationLg: "var(--graphy-elevation-lg)", radiiXs: "var(--graphy-radii-xs)", radiiSm: "var(--graphy-radii-sm)", radiiMd: "var(--graphy-radii-md)", radiiLg: "var(--graphy-radii-lg)", spaceXxs: "var(--graphy-space-xxs)", spaceXs: "var(--graphy-space-xs)", spaceSm: "var(--graphy-space-sm)", spaceMd: "var(--graphy-space-md)", spaceLg: "var(--graphy-space-lg)", spaceXl: "var(--graphy-space-xl)", zIndexToolbar: "var(--graphy-z-index-toolbar)", zIndexToolbarTooltip: "var(--graphy-z-index-toolbar-tooltip)", zIndexToolbarPopover: "var(--graphy-z-index-toolbar-popover)", toolbarBackgroundColor: "var(--graphy-toolbar-background-color)", toolbarButtonBackgroundColor: "var(--graphy-toolbar-button-background-color)", toolbarButtonBackgroundColorHovered: "var(--graphy-toolbar-button-background-color-hovered)", toolbarButtonBackgroundColorSelected: "var(--graphy-toolbar-button-background-color-selected)", toolbarSeparatorColor: "var(--graphy-toolbar-separator-color)", tooltipBackground: "var(--graphy-tooltip-background)", tooltipBorderColor: "var(--graphy-tooltip-border-color)", tooltipHeadingTextColor: "var(--graphy-tooltip-heading-text-color)", tooltipLabelTextColor: "var(--graphy-tooltip-label-text-color)", tooltipValueTextColor: "var(--graphy-tooltip-value-text-color)", tooltipPrimaryRowColor: "var(--graphy-tooltip-primary-row-color)", hoverGuideLineColor: "var(--graphy-hover-guide-line-color)", hoverGuideFillColor: "var(--graphy-hover-guide-fill-color)", hoveredBarBorderColor: "var(--graphy-hovered-bar-border-color)", hoveredPointRingColor: "var(--graphy-hovered-point-ring-color)", pointStrokeColor: "var(--graphy-point-stroke-color)", stackedBarHoverBorderColor: "var(--graphy-stacked-bar-hover-border-color)", fontFamilyDefault: "var(--graphy-font-family-default)", fontFamilyHeading: "var(--graphy-font-family-heading)", fontWeightRegular: "var(--graphy-font-weight-regular)", fontWeightMedium: "var(--graphy-font-weight-medium)", fontWeightSemibold: "var(--graphy-font-weight-semibold)", fontWeightBold: "var(--graphy-font-weight-bold)", fontWeightExtraBold: "var(--graphy-font-weight-extra-bold)", fontWeightBlack: "var(--graphy-font-weight-black)", textScale: "var(--graphy-text-scale)", fontSizeXxs: "var(--graphy-font-size-xxs)", fontSizeXs: "var(--graphy-font-size-xs)", fontSizeSm: "var(--graphy-font-size-sm)", fontSizeMd: "var(--graphy-font-size-md)", fontSizeLg: "var(--graphy-font-size-lg)", fontSizeXl: "var(--graphy-font-size-xl)", fontLineHeightXxs: "var(--graphy-font-line-height-xxs)", fontLineHeightXs: "var(--graphy-font-line-height-xs)", fontLineHeightSm: "var(--graphy-font-line-height-sm)", fontLineHeightMd: "var(--graphy-font-line-height-md)", fontLineHeightLg: "var(--graphy-font-line-height-lg)", fontLineHeightXl: "var(--graphy-font-line-height-xl)", fontSizeEditorBody: "var(--graphy-font-size-editor-body)", fontSizeHeadingSm: "var(--graphy-font-size-heading-sm)", fontSizeHeadingMd: "var(--graphy-font-size-heading-md)", fontSizeHeadingLg: "var(--graphy-font-size-heading-lg)", fontLineHeightEditorBody: "var(--graphy-font-line-height-editor-body)", fontLineHeightHeadingSm: "var(--graphy-font-line-height-heading-sm)", fontLineHeightHeadingMd: "var(--graphy-font-line-height-heading-md)", fontLineHeightHeadingLg: "var(--graphy-font-line-height-heading-lg)", fontTickLabel: "var(--graphy-font-tick-label)", fontAxisLabel: "var(--graphy-font-axis-label)", fontDataLabel: "var(--graphy-font-data-label)", fontStackTotal: "var(--graphy-font-stack-total)", fontLegendLabel: "var(--graphy-font-legend-label)", fontSeriesLabel: "var(--graphy-font-series-label)", fontTooltipLabel: "var(--graphy-font-tooltip-label)", fontTooltipHeading: "var(--graphy-font-tooltip-heading)", fontTooltipFooter: "var(--graphy-font-tooltip-footer)", fontJumboTooltipLabel: "var(--graphy-font-jumbo-tooltip-label)", fontJumboTooltip: "var(--graphy-font-jumbo-tooltip)", fontMiniTooltipLabel: "var(--graphy-font-mini-tooltip-label)", fontMiniTooltipFooter: "var(--graphy-font-mini-tooltip-footer)", fontTooltipCaption: "var(--graphy-font-tooltip-caption)", fontTooltipCaptionSmall: "var(--graphy-font-tooltip-caption-small)", fontTrendTag: "var(--graphy-font-trend-tag)", fontTrendTagSmall: "var(--graphy-font-trend-tag-small)", fontGoalLineLabel: "var(--graphy-font-goal-line-label)", fontPieLabel: "var(--graphy-font-pie-label)", fontPieChartTotal: "var(--graphy-font-pie-chart-total)", fontDifferenceArrowSmall: "var(--graphy-font-difference-arrow-small)", fontDifferenceArrowMedium: "var(--graphy-font-difference-arrow-medium)", fontDifferenceArrowLarge: "var(--graphy-font-difference-arrow-large)", fontButton: "var(--graphy-font-button)", fontInput: "var(--graphy-font-input)", fontInputLabel: "var(--graphy-font-input-label)", fontSelectLabel: "var(--graphy-font-select-label)", fontSelectDescription: "var(--graphy-font-select-description)", fontColorSelectLabel: "var(--graphy-font-color-select-label)", fontMenuTitle: "var(--graphy-font-menu-title)", fontMenuGroupTitle: "var(--graphy-font-menu-group-title)", fontMenuItemLabel: "var(--graphy-font-menu-item-label)", fontMenuItemLabelSecondary: "var(--graphy-font-menu-item-label-secondary)", fontUITooltip: "var(--graphy-font-uitooltip)", fontUITooltipSecondary: "var(--graphy-font-uitooltip-secondary)", fontErrorBoundaryTitle: "var(--graphy-font-error-boundary-title)", fontErrorBoundaryMessage: "var(--graphy-font-error-boundary-message)", fontTableCell: "var(--graphy-font-table-cell)", fontTableHeaderCell: "var(--graphy-font-table-header-cell)", fontSourceLabel: "var(--graphy-font-source-label)", fontSourceLink: "var(--graphy-font-source-link)", fontTextEditorH1: "var(--graphy-font-text-editor-h1)", fontTextEditorH2: "var(--graphy-font-text-editor-h2)", fontTextEditorH3: "var(--graphy-font-text-editor-h3)", fontTextEditorH6: "var(--graphy-font-text-editor-h6)", fontTextEditorBody: "var(--graphy-font-text-editor-body)", fontTextEditorLink: "var(--graphy-font-text-editor-link)", fontHighlightModeTitle: "var(--graphy-font-highlight-mode-title)", fontHighlightModeSubtitle: "var(--graphy-font-highlight-mode-subtitle)" };
441
441
  const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
442
- 'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, mi = R, K = {
442
+ 'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, vi = R, K = {
443
443
  regular: 400,
444
444
  medium: 500,
445
445
  semibold: 600,
@@ -468,10 +468,10 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
468
468
  headingSm: 1.25,
469
469
  headingMd: 1.41,
470
470
  headingLg: 1.29
471
- }, vi = `var(--typography-chart-font-family, ${s.fontFamilyDefault})`, tt = `var(--typography-chart-heading-font-family, ${s.fontFamilyHeading})`, U = (e) => `${e}em`, Un = {
471
+ }, yi = `var(--typography-chart-font-family, ${s.fontFamilyDefault})`, tt = `var(--typography-chart-heading-font-family, ${s.fontFamilyHeading})`, U = (e) => `${e}em`, Yn = {
472
472
  textScale: "1",
473
473
  fontFamilyDefault: R,
474
- fontFamilyHeading: mi,
474
+ fontFamilyHeading: vi,
475
475
  fontWeightRegular: K.regular.toString(),
476
476
  fontWeightMedium: K.medium.toString(),
477
477
  fontWeightSemibold: K.semibold.toString(),
@@ -490,7 +490,7 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
490
490
  fontLineHeightMd: D.md.toString(),
491
491
  fontLineHeightLg: D.lg.toString(),
492
492
  fontLineHeightXl: D.xl.toString()
493
- }, Yn = {
493
+ }, jn = {
494
494
  fontSizeEditorBody: U(N.editorBody),
495
495
  fontSizeHeadingSm: U(N.headingSm),
496
496
  fontSizeHeadingMd: U(N.headingMd),
@@ -499,7 +499,7 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
499
499
  fontLineHeightHeadingSm: D.headingSm.toString(),
500
500
  fontLineHeightHeadingMd: D.headingMd.toString(),
501
501
  fontLineHeightHeadingLg: D.headingLg.toString()
502
- }, b = (e, t, n, r = vi) => `${e} ${t}/${n} ${r}`, jn = {
502
+ }, b = (e, t, n, r = yi) => `${e} ${t}/${n} ${r}`, qn = {
503
503
  // Axes
504
504
  fontTickLabel: b(s.fontWeightMedium, s.fontSizeSm, s.fontLineHeightSm),
505
505
  fontAxisLabel: b(s.fontWeightMedium, s.fontSizeSm, s.fontLineHeightSm),
@@ -571,15 +571,16 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
571
571
  // Highlight mode
572
572
  fontHighlightModeTitle: b(s.fontWeightBold, s.fontSizeMd, s.fontLineHeightMd),
573
573
  fontHighlightModeSubtitle: b(s.fontWeightMedium, s.fontSizeSm, s.fontLineHeightSm)
574
- }, yi = {
574
+ }, bi = {
575
575
  small: 1.9,
576
576
  medium: 2.3,
577
577
  large: 2.6
578
- }, bi = {
578
+ }, xi = {
579
579
  small: 1,
580
580
  medium: 1,
581
581
  large: 1.2
582
- }, xi = R, qn = D.sm, Kn = 2, Jn = 24, Zn = 12, Qn = 10, er = 8, tr = 8, nr = 8, rr = 2, or = 1, ar = 2, ir = 4, sr = N.sm, lr = D.sm, cr = R, Si = ar * ir, dr = !1, Fe = 6, ur = 10, P = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, je = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, hr = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, dt = (e, t, n) => `color-mix(in srgb, ${e}, ${t} ${n * 100}%)`, ki = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), Li = (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), X = (e) => `${e}px`, gr = {
582
+ }, Si = R, Kn = D.sm, Jn = 2, Zn = 24, Qn = 12, er = 10, tr = 8, nr = 8, rr = 8, or = 2, ar = 1, ir = 2, sr = 4, lr = N.sm, cr = D.sm, dr = R, ki = ir * sr, ur = !1, Fe = 6, hr = 10, P = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, je = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, gr = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, dt = (e, t, n) => `color-mix(in srgb, ${e}, ${t} ${n * 100}%)`, Li = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), Ci = (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), W = (e) => `${e}px`, pr = {
583
+ graphPadding: W(pn),
583
584
  gridLineWidth: "1px",
584
585
  gridLineDash: "2 3",
585
586
  tooltipBorderRadius: "6px",
@@ -588,31 +589,31 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
588
589
  tooltipPaddingInline: "10px",
589
590
  tooltipRowGap: "4px",
590
591
  tooltipShadow: "0 4px 12px rgba(0, 0, 0, 0.18)",
591
- tickLabelOffset: X(ur),
592
- legendItemGap: X(tr),
593
- legendSwatchGap: X(er),
594
- legendSwatchWidth: X(Qn),
595
- legendSwatchHeight: X(Zn),
596
- legendPillPaddingInline: X(nr),
597
- legendPillPaddingBlock: X(rr),
598
- legendPillBorderWidth: X(or),
599
- headlineRowGap: X(Kn),
600
- headlineItemGap: X(Jn)
601
- }, pr = {
592
+ tickLabelOffset: W(hr),
593
+ legendItemGap: W(nr),
594
+ legendSwatchGap: W(tr),
595
+ legendSwatchWidth: W(er),
596
+ legendSwatchHeight: W(Qn),
597
+ legendPillPaddingInline: W(rr),
598
+ legendPillPaddingBlock: W(or),
599
+ legendPillBorderWidth: W(ar),
600
+ headlineRowGap: W(Jn),
601
+ headlineItemGap: W(Zn)
602
+ }, fr = {
602
603
  elevationXs: "0 0 2px rgba(15, 15, 24, 0.12), 0 2px 2px rgba(14, 14, 52, 0.08)",
603
604
  elevationSm: "0 0 4px rgba(15, 15, 24, 0.12), 0 4px 4px rgba(14, 14, 52, 0.08)",
604
605
  elevationMd: "0 0 8px rgba(15, 15, 24, 0.12), 0 8px 8px rgba(14, 14, 52, 0.08)",
605
606
  elevationLg: "0 0 16px rgba(15, 15, 24, 0.12), 0 16px 16px rgba(14, 14, 52, 0.08)"
606
- }, fr = {
607
+ }, mr = {
607
608
  radiiXs: "4px",
608
609
  radiiSm: "6px",
609
610
  radiiMd: "8px",
610
611
  radiiLg: "12px"
611
- }, mr = {
612
+ }, vr = {
612
613
  zIndexToolbar: "10",
613
614
  zIndexToolbarTooltip: "20",
614
615
  zIndexToolbarPopover: "30"
615
- }, Ci = 8, se = (e) => `${Ci * e}px`, vr = {
616
+ }, Ti = 8, se = (e) => `${Ti * e}px`, yr = {
616
617
  spaceXxs: se(0.25),
617
618
  // space(0.25) → 2px
618
619
  spaceXs: se(0.5),
@@ -625,7 +626,7 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
625
626
  // space(1.5) → 12px
626
627
  spaceXl: se(2)
627
628
  // space(2) → 16px
628
- }, Ti = {
629
+ }, wi = {
629
630
  transparent: "transparent",
630
631
  white: "#FFFFFF",
631
632
  black: "#000000",
@@ -652,7 +653,7 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
652
653
  purple50: "#7B56EA",
653
654
  purple30: "#E093FE",
654
655
  greyGradient80: "linear-gradient(to top, #222429, #31353f)"
655
- }, wi = {
656
+ }, Ai = {
656
657
  textPrimary: s.grey0,
657
658
  textSecondary: P(s.textPrimary, 0.8),
658
659
  textDisabled: P(s.textPrimary, 0.5),
@@ -671,7 +672,7 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
671
672
  raisedBackground: s.grey80,
672
673
  overlayBackground: s.grey90,
673
674
  overlayBorderGradient: s.greyGradient80
674
- }, Ai = {
675
+ }, Ei = {
675
676
  graphBackground: s.grey90,
676
677
  gridLineColor: s.border10,
677
678
  originLineColor: s.grey0,
@@ -716,7 +717,7 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
716
717
  arrowAnnotationStickerOutlineColorInverse: "#1D2129",
717
718
  annotationFrameBorderColor: s.blue60,
718
719
  annotationMenuTriggerIconColor: s.white
719
- }, Ei = {
720
+ }, _i = {
720
721
  canvasDefault: "#FFFFFF",
721
722
  canvasBlue: "#60a5fa",
722
723
  canvasCyan: "#22d3ee",
@@ -728,20 +729,20 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
728
729
  canvasPurple: "#a78bfa",
729
730
  canvasGray: "#a8a29e",
730
731
  canvasInverse: "#000000"
731
- }, _i = {
732
- ...Ti,
732
+ }, Pi = {
733
733
  ...wi,
734
- ...pr,
734
+ ...Ai,
735
735
  ...fr,
736
- ...vr,
737
736
  ...mr,
738
- ...Ai,
737
+ ...yr,
738
+ ...vr,
739
739
  ...Ei,
740
- ...gr,
741
- ...Un,
740
+ ..._i,
741
+ ...pr,
742
742
  ...Yn,
743
- ...jn
744
- }, Pi = {
743
+ ...jn,
744
+ ...qn
745
+ }, Hi = {
745
746
  transparent: "transparent",
746
747
  white: "#FFFFFF",
747
748
  black: "#000000",
@@ -768,7 +769,7 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
768
769
  purple50: "#7B56EA",
769
770
  purple30: "#E093FE",
770
771
  greyGradient80: "linear-gradient(to top, #F0F0F1, #F9F9FF)"
771
- }, Hi = {
772
+ }, Fi = {
772
773
  textPrimary: s.black,
773
774
  textSecondary: P(s.textPrimary, 0.6),
774
775
  textDisabled: P(s.textPrimary, 0.5),
@@ -787,7 +788,7 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
787
788
  raisedBackground: s.grey85,
788
789
  overlayBackground: s.grey100,
789
790
  overlayBorderGradient: s.border10
790
- }, Fi = {
791
+ }, Ni = {
791
792
  graphBackground: s.grey100,
792
793
  gridLineColor: s.border10,
793
794
  originLineColor: s.grey0,
@@ -832,7 +833,7 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
832
833
  arrowAnnotationStickerOutlineColorInverse: "#FFFFFF",
833
834
  annotationFrameBorderColor: s.blue60,
834
835
  annotationMenuTriggerIconColor: "#3d414c"
835
- }, Ni = {
836
+ }, Bi = {
836
837
  canvasDefault: "#000000",
837
838
  canvasBlue: "#3b82f6",
838
839
  canvasCyan: "#06b6d4",
@@ -844,51 +845,52 @@ const R = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',
844
845
  canvasPurple: "#8b5cf6",
845
846
  canvasGray: "#78716c",
846
847
  canvasInverse: "#ffffff"
847
- }, Bi = {
848
- ...Pi,
848
+ }, Ii = {
849
849
  ...Hi,
850
- ...pr,
850
+ ...Fi,
851
851
  ...fr,
852
- ...vr,
853
852
  ...mr,
854
- ...Fi,
853
+ ...yr,
854
+ ...vr,
855
855
  ...Ni,
856
- ...gr,
857
- ...Un,
856
+ ...Bi,
857
+ ...pr,
858
858
  ...Yn,
859
- ...jn
860
- }, yr = (e, t = {}) => ({
861
- ...e === "dark" ? _i : Bi,
859
+ ...jn,
860
+ ...qn
861
+ }, br = (e, t = {}) => ({
862
+ ...e === "dark" ? Pi : Ii,
862
863
  ...t
863
- }), br = (e, t) => {
864
- const n = yr(e, t), r = V(n.legendPillPaddingInline, nr), o = V(n.legendPillPaddingBlock, rr), i = V(n.legendPillBorderWidth, or);
864
+ }), xr = (e, t) => {
865
+ const n = br(e, t), r = $(n.legendPillPaddingInline, rr), o = $(n.legendPillPaddingBlock, or), i = $(n.legendPillBorderWidth, ar);
865
866
  return {
866
- tickLabelOffset: V(n.tickLabelOffset, ur),
867
- legendSwatchWidth: V(n.legendSwatchWidth, Qn),
868
- legendSwatchHeight: V(n.legendSwatchHeight, Zn),
869
- legendSwatchGap: V(n.legendSwatchGap, er),
870
- legendItemGap: V(n.legendItemGap, tr),
867
+ graphPadding: $(n.graphPadding, pn),
868
+ tickLabelOffset: $(n.tickLabelOffset, hr),
869
+ legendSwatchWidth: $(n.legendSwatchWidth, er),
870
+ legendSwatchHeight: $(n.legendSwatchHeight, Qn),
871
+ legendSwatchGap: $(n.legendSwatchGap, tr),
872
+ legendItemGap: $(n.legendItemGap, nr),
871
873
  legendPillPaddingInline: r,
872
874
  legendPillPaddingBlock: o,
873
875
  legendPillBorderWidth: i,
874
876
  legendPillHorizontalChrome: 2 * (r + i),
875
877
  legendPillVerticalChrome: 2 * (o + i),
876
- headlineRowGap: V(n.headlineRowGap, Kn),
877
- headlineItemGap: V(n.headlineItemGap, Jn)
878
+ headlineRowGap: $(n.headlineRowGap, Jn),
879
+ headlineItemGap: $(n.headlineItemGap, Zn)
878
880
  };
879
- }, Ii = Object.freeze(br("light"));
880
- function V(e, t) {
881
+ }, Mi = Object.freeze(xr("light"));
882
+ function $(e, t) {
881
883
  const n = e.trim();
882
884
  if (!/^-?\d*\.?\d+(px)?$/.test(n)) return t;
883
885
  const r = Number.parseFloat(n);
884
886
  return Number.isFinite(r) ? r : t;
885
887
  }
886
- const xr = fe(Ii), Mi = ({ metrics: e, children: t }) => /* @__PURE__ */ a(xr.Provider, { value: e, children: t }), wt = () => ee(xr), At = N.sm, Sr = R, kr = 10, te = (e, t) => e * kr * t, Di = (e, t, n) => {
888
+ const Sr = fe(Mi), Di = ({ metrics: e, children: t }) => /* @__PURE__ */ a(Sr.Provider, { value: e, children: t }), wt = () => ee(Sr), At = N.sm, kr = R, Lr = 10, te = (e, t) => e * Lr * t, Oi = (e, t, n) => {
887
889
  const { tickLabelOffset: r } = n;
888
890
  return (o) => {
889
891
  const i = o.position === "top" || o.position === "bottom", c = o.ticks.map(
890
892
  (u) => e.measureText(u.formattedLabel, {
891
- family: Sr,
893
+ family: kr,
892
894
  size: te(At, t)
893
895
  })
894
896
  ), l = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
@@ -904,77 +906,77 @@ const xr = fe(Ii), Mi = ({ metrics: e, children: t }) => /* @__PURE__ */ a(xr.Pr
904
906
  l
905
907
  ) + r;
906
908
  };
907
- }, Wt = (e, t) => Math.min(Math.max(...e), t), Oi = (e) => () => te(At, e), Ri = (e, t) => (n, r) => {
908
- const { labelLineHeight: o, labelFontWeight: i } = Ao(r, t);
909
+ }, Wt = (e, t) => Math.min(Math.max(...e), t), Ri = (e) => () => te(At, e), zi = (e, t) => (n, r) => {
910
+ const { labelLineHeight: o, labelFontWeight: i } = Eo(r, t);
909
911
  return e.measureText(n, {
910
912
  family: R,
911
913
  size: o,
912
914
  weight: i
913
915
  });
914
- }, zi = (e, t, n) => (r, o) => {
915
- const i = Lr(r, o, e, t, n.headlineRowGap), c = Cr(i.map((d) => d.width)), l = Math.max(0, i.length - 1) * n.headlineItemGap;
916
+ }, Gi = (e, t, n) => (r, o) => {
917
+ const i = Cr(r, o, e, t, n.headlineRowGap), c = Tr(i.map((d) => d.width)), l = Math.max(0, i.length - 1) * n.headlineItemGap;
916
918
  return {
917
919
  width: c + l,
918
920
  height: Math.max(0, ...i.map((d) => d.height))
919
921
  };
920
- }, Gi = (e, t, n) => (r, o) => Lr(r, o, e, t, n.headlineRowGap).map(
922
+ }, Wi = (e, t, n) => (r, o) => Cr(r, o, e, t, n.headlineRowGap).map(
921
923
  (i) => i.width
922
- ), Wi = (e, t) => (n, r) => {
924
+ ), $i = (e, t) => (n, r) => {
923
925
  const o = ut("value", r, t);
924
- return { width: e.measureText(n, o).width, height: o.size * qn };
925
- }, $i = (e, t, n) => {
926
- const r = zi(e, t, n), o = Wi(e, t);
926
+ return { width: e.measureText(n, o).width, height: o.size * Kn };
927
+ }, Xi = (e, t, n) => {
928
+ const r = Gi(e, t, n), o = $i(e, t);
927
929
  return (i, c) => i.kind === "perGroup" ? r(i, c) : o(i.value, c);
928
- }, Lr = (e, t, n, r, o) => {
930
+ }, Cr = (e, t, n, r, o) => {
929
931
  const i = {
930
932
  value: ut("value", t, r),
931
933
  label: ut("label", t, r)
932
- }, c = (l) => Xi(l, i, n);
934
+ }, c = (l) => Vi(l, i, n);
933
935
  return e.items.map((l) => {
934
- const d = pn(l).map(c), u = Math.max(0, d.length - 1) * o;
936
+ const d = fn(l).map(c), u = Math.max(0, d.length - 1) * o;
935
937
  return {
936
938
  width: Math.max(0, ...d.map((h) => h.width)),
937
- height: Cr(d.map((h) => h.height)) + u
939
+ height: Tr(d.map((h) => h.height)) + u
938
940
  };
939
941
  });
940
- }, Xi = (e, t, n) => {
942
+ }, Vi = (e, t, n) => {
941
943
  let r = 0, o = 0;
942
944
  for (const i of e.segments)
943
945
  if (i.kind === "text") {
944
946
  const c = t[i.fontRole];
945
- r += n.measureText(i.text, c).width, o = Math.max(o, c.size * qn);
947
+ r += n.measureText(i.text, c).width, o = Math.max(o, c.size * Kn);
946
948
  } else
947
949
  r += i.size, o = Math.max(o, i.size);
948
950
  return { width: r + Math.max(0, e.segments.length - 1) * e.gap, height: o };
949
951
  }, ut = (e, t, n) => {
950
- const r = e === "value" ? yi[t] : bi[t];
951
- return { family: xi, size: te(r, n) };
952
- }, Cr = (e) => e.reduce((t, n) => t + n, 0), Tr = (e) => {
953
- const t = te(sr, e);
954
- return { fontSizePx: t, lineBoxHeight: t * lr };
955
- }, wr = (e, t) => e ? t : 0, Vi = (e, t, n) => (r) => {
956
- const { fontSizePx: o, lineBoxHeight: i } = Tr(t), c = { family: cr, size: o };
952
+ const r = e === "value" ? bi[t] : xi[t];
953
+ return { family: Si, size: te(r, n) };
954
+ }, Tr = (e) => e.reduce((t, n) => t + n, 0), wr = (e) => {
955
+ const t = te(lr, e);
956
+ return { fontSizePx: t, lineBoxHeight: t * cr };
957
+ }, Ar = (e, t) => e ? t : 0, Ui = (e, t, n) => (r) => {
958
+ const { fontSizePx: o, lineBoxHeight: i } = wr(t), c = { family: dr, size: o };
957
959
  if (r.position === "top" || r.position === "bottom")
958
960
  return Math.max(i, n.legendSwatchHeight) + n.legendPillVerticalChrome;
959
961
  const d = r.items.map((u) => {
960
- const h = e.measureText(u.formattedLabel, c).width, g = wr(u.visual.color, n.legendSwatchWidth);
962
+ const h = e.measureText(u.formattedLabel, c).width, g = Ar(u.visual.color, n.legendSwatchWidth);
961
963
  return g + (g > 0 ? n.legendSwatchGap : 0) + h;
962
964
  });
963
965
  return Math.max(...d) + n.legendPillHorizontalChrome;
964
- }, Ui = (e, t) => (n) => e.measureText(n, {
965
- family: Sr,
966
+ }, Yi = (e, t) => (n) => e.measureText(n, {
967
+ family: kr,
966
968
  size: te(At, t)
967
- }), Yi = Object.freeze({}), ji = (e, t, n, r = Yi) => {
969
+ }), ji = Object.freeze({}), qi = (e, t, n, r = ji) => {
968
970
  const o = C(r);
969
971
  return o.current = r, v(() => {
970
972
  if (!e) return null;
971
- const i = Di(e, t, n), c = Oi(t), l = Vi(e, t, n), d = $i(e, t, n), u = Gi(e, t, n), h = {
973
+ const i = Oi(e, t, n), c = Ri(t), l = Ui(e, t, n), d = Xi(e, t, n), u = Wi(e, t, n), h = {
972
974
  measureText: (g, p) => e.measureText(g, p),
973
975
  textScale: t
974
976
  };
975
977
  return {
976
978
  measureAxis: (g) => {
977
- if (Ki(g)) return 0;
979
+ if (Ji(g)) return 0;
978
980
  const p = o.current.measureAxis;
979
981
  return p ? p(g, h) : i(g);
980
982
  },
@@ -983,17 +985,17 @@ const xr = fe(Ii), Mi = ({ metrics: e, children: t }) => /* @__PURE__ */ a(xr.Pr
983
985
  return p ? p(g, h) : c();
984
986
  },
985
987
  measureLegend: (g) => {
986
- if (Ji(g)) return 0;
988
+ if (Zi(g)) return 0;
987
989
  const p = o.current.measureLegend;
988
990
  return p ? p(g, h) : l(g);
989
991
  },
990
992
  measureHeadline: (g, p) => (o.current.measureHeadline ?? d)(g, p),
991
993
  measureHeadlineItemWidths: (g, p) => (o.current.measureHeadlineItemWidths ?? u)(g, p),
992
- measureTickLabel: Ui(e, t),
993
- measureDifferenceArrowLabel: Ri(e, t)
994
+ measureTickLabel: Yi(e, t),
995
+ measureDifferenceArrowLabel: zi(e, t)
994
996
  };
995
997
  }, [e, t, n]);
996
- }, qi = ({
998
+ }, Ki = ({
997
999
  measurer: e,
998
1000
  axes: t,
999
1001
  numberFormat: n,
@@ -1005,8 +1007,9 @@ const xr = fe(Ii), Mi = ({ metrics: e, children: t }) => /* @__PURE__ */ a(xr.Pr
1005
1007
  formattingLocale: d,
1006
1008
  annotations: u,
1007
1009
  coordSystem: h,
1008
- textScale: g
1009
- }) => v(() => e ? new Eo(e).compile({
1010
+ textScale: g,
1011
+ graphPadding: p
1012
+ }) => v(() => e ? new _o(e).compile({
1010
1013
  axes: t,
1011
1014
  numberFormat: n,
1012
1015
  parsingLocale: r,
@@ -1017,7 +1020,8 @@ const xr = fe(Ii), Mi = ({ metrics: e, children: t }) => /* @__PURE__ */ a(xr.Pr
1017
1020
  formattingLocale: d,
1018
1021
  annotations: u,
1019
1022
  coordSystem: h,
1020
- textScale: g
1023
+ textScale: g,
1024
+ padding: p
1021
1025
  }) : null, [
1022
1026
  t,
1023
1027
  n,
@@ -1030,8 +1034,9 @@ const xr = fe(Ii), Mi = ({ metrics: e, children: t }) => /* @__PURE__ */ a(xr.Pr
1030
1034
  u,
1031
1035
  h,
1032
1036
  g,
1037
+ p,
1033
1038
  e
1034
- ]), Ki = (e) => !e.isVisible || e.ticks.length === 0, Ji = (e) => e.items.length === 0, $t = "data-variant", Ar = na.extend({
1039
+ ]), Ji = (e) => !e.isVisible || e.ticks.length === 0, Zi = (e) => e.items.length === 0, $t = "data-variant", Er = ra.extend({
1035
1040
  addAttributes() {
1036
1041
  return {
1037
1042
  variant: {
@@ -1041,7 +1046,7 @@ const xr = fe(Ii), Mi = ({ metrics: e, children: t }) => /* @__PURE__ */ a(xr.Pr
1041
1046
  }
1042
1047
  };
1043
1048
  }
1044
- }), Zi = ta.create({
1049
+ }), Qi = na.create({
1045
1050
  name: "preventBackspaceAcrossTitleBoundary",
1046
1051
  addOptions() {
1047
1052
  return { isTitleVisible: !0 };
@@ -1057,28 +1062,28 @@ const xr = fe(Ii), Mi = ({ metrics: e, children: t }) => /* @__PURE__ */ a(xr.Pr
1057
1062
  }
1058
1063
  };
1059
1064
  }
1060
- }), Qi = ({
1065
+ }), es = ({
1061
1066
  titlePlaceholder: e,
1062
1067
  subtitlePlaceholder: t,
1063
1068
  isTitleVisible: n,
1064
1069
  isSubtitleVisible: r
1065
1070
  }) => [
1066
- ts({ isTitleVisible: n, isSubtitleVisible: r }),
1067
- Ar,
1068
- Hn,
1071
+ ns({ isTitleVisible: n, isSubtitleVisible: r }),
1072
+ Er,
1073
+ Fn,
1074
+ On,
1075
+ _n.configure({ levels: [1, 2, 3] }),
1076
+ An,
1077
+ Pn,
1069
1078
  Dn,
1070
- En.configure({ levels: [1, 2, 3] }),
1071
- wn,
1072
- _n,
1073
- Mn,
1074
- Fn.configure({ types: ["heading", "paragraph"] }),
1075
- Pn.configure({ openOnClick: !1, autolink: !0 }),
1076
- Nn,
1079
+ Nn.configure({ types: ["heading", "paragraph"] }),
1080
+ Hn.configure({ openOnClick: !1, autolink: !0 }),
1077
1081
  Bn,
1078
1082
  In,
1079
- An,
1080
- Zi.configure({ isTitleVisible: n }),
1081
- On.configure({
1083
+ Mn,
1084
+ En,
1085
+ Qi.configure({ isTitleVisible: n }),
1086
+ Rn.configure({
1082
1087
  showOnlyCurrent: !1,
1083
1088
  placeholder: ({ pos: o, editor: i }) => {
1084
1089
  if (n && o === 0) return e;
@@ -1086,68 +1091,68 @@ const xr = fe(Ii), Mi = ({ metrics: e, children: t }) => /* @__PURE__ */ a(xr.Pr
1086
1091
  return r && o === c ? t : "";
1087
1092
  }
1088
1093
  })
1089
- ], es = ({ placeholder: e }) => [
1094
+ ], ts = ({ placeholder: e }) => [
1090
1095
  lt,
1091
- Ar,
1092
- Hn,
1096
+ Er,
1097
+ Fn,
1098
+ On,
1099
+ _n.configure({ levels: [1, 2, 3] }),
1100
+ An,
1101
+ Pn,
1093
1102
  Dn,
1094
- En.configure({ levels: [1, 2, 3] }),
1095
- wn,
1096
- _n,
1097
- Mn,
1098
- Fn.configure({ types: ["heading", "paragraph"] }),
1099
- Pn.configure({ openOnClick: !1, autolink: !0 }),
1100
- Nn,
1103
+ Nn.configure({ types: ["heading", "paragraph"] }),
1104
+ Hn.configure({ openOnClick: !1, autolink: !0 }),
1101
1105
  Bn,
1102
1106
  In,
1103
- An,
1104
- On.configure({
1107
+ Mn,
1108
+ En,
1109
+ Rn.configure({
1105
1110
  showOnlyCurrent: !1,
1106
1111
  placeholder: ({ pos: t }) => t === 0 ? e : ""
1107
1112
  })
1108
- ], ts = ({
1113
+ ], ns = ({
1109
1114
  isTitleVisible: e,
1110
1115
  isSubtitleVisible: t
1111
- }) => e && t ? lt.extend({ content: "block{2,}" }) : lt, Me = 0.1, ns = { light: 0.05, dark: 0.1 }, rs = (e, t) => {
1116
+ }) => e && t ? lt.extend({ content: "block{2,}" }) : lt, Me = 0.1, rs = { light: 0.05, dark: 0.1 }, os = (e, t) => {
1112
1117
  switch (e.type) {
1113
1118
  case "none":
1114
1119
  return null;
1115
1120
  case "solid":
1116
1121
  return e.color;
1117
1122
  case "tinted":
1118
- return is(e.color, t);
1119
- case "gradient":
1120
1123
  return ss(e.color, t);
1124
+ case "gradient":
1125
+ return ls(e.color, t);
1121
1126
  case "preset":
1122
- return _o[e.preset];
1127
+ return Po[e.preset];
1123
1128
  }
1124
- }, os = (e) => e.type === "none" ? 0 : e.width, as = (e, t, n) => {
1129
+ }, as = (e) => e.type === "none" ? 0 : e.width, is = (e, t, n) => {
1125
1130
  if (e.type === "solid")
1126
1131
  return e.color;
1127
1132
  if (e.type === "tinted")
1128
- return dt(n, e.color, ns[t]);
1129
- }, is = (e, t) => t === "dark" ? je(e, Me) : hr(e, Me), ss = (e, t, n = 90) => {
1130
- const r = e, o = t === "dark" ? je(e, Me) : hr(e, Me);
1133
+ return dt(n, e.color, rs[t]);
1134
+ }, ss = (e, t) => t === "dark" ? je(e, Me) : gr(e, Me), ls = (e, t, n = 90) => {
1135
+ const r = e, o = t === "dark" ? je(e, Me) : gr(e, Me);
1131
1136
  return `linear-gradient(${n}deg, ${r} 0%, ${o} 100%)`;
1132
1137
  };
1133
- var ls = "bow4tg0", cs = "bow4tg1", ds = "bow4tg2", us = "bow4tg3", hs = "_1ii3bsb0", gs = "_1ii3bsb1";
1138
+ var cs = "bow4tg0", ds = "bow4tg1", us = "bow4tg2", hs = "bow4tg3", gs = "_1ii3bsb0", ps = "_1ii3bsb1";
1134
1139
  const Et = fe(null), _t = () => {
1135
1140
  const e = ee(Et);
1136
1141
  if (!e) throw new Error("useThemeContext must be used inside a <ThemeProvider>.");
1137
1142
  return e;
1138
- }, ps = ({ theme: e, themeOverrides: t = {}, appearance: n, children: r }) => {
1139
- const o = v(() => yr(e, t), [e, t]), i = v(() => {
1143
+ }, fs = ({ theme: e, themeOverrides: t = {}, appearance: n, children: r }) => {
1144
+ const o = v(() => br(e, t), [e, t]), i = v(() => {
1140
1145
  const l = {
1141
1146
  [s.textScale]: String(n.textScale)
1142
1147
  };
1143
1148
  for (const [u, h] of Object.entries(t))
1144
1149
  l[s[u]] = h;
1145
- const d = as(n.background, e, o.graphBackground);
1146
- return d !== void 0 && (l[s.graphBackground] = d), sa(l);
1150
+ const d = is(n.background, e, o.graphBackground);
1151
+ return d !== void 0 && (l[s.graphBackground] = d), la(l);
1147
1152
  }, [n.textScale, n.background, e, o.graphBackground, t]), c = v(
1148
1153
  () => ({
1149
1154
  theme: e,
1150
- themeClass: e === "dark" ? gs : hs,
1155
+ themeClass: e === "dark" ? ps : gs,
1151
1156
  inlineVarsStyle: i,
1152
1157
  themeValues: o
1153
1158
  }),
@@ -1155,14 +1160,14 @@ const Et = fe(null), _t = () => {
1155
1160
  );
1156
1161
  return /* @__PURE__ */ a(Et.Provider, { value: c, children: r });
1157
1162
  }, ae = ({ children: e, className: t, style: n }) => {
1158
- const r = ee(Et), o = r ? re(r.themeClass, cs) : void 0, i = r ? { ...r.inlineVarsStyle, ...n } : n;
1163
+ const r = ee(Et), o = r ? re(r.themeClass, ds) : void 0, i = r ? { ...r.inlineVarsStyle, ...n } : n;
1159
1164
  return /* @__PURE__ */ a("div", { className: re(o, t), style: i, children: e });
1160
- }, fs = "graphy_root", ie = () => typeof document > "u" ? null : document.getElementById(fs) ?? document.body;
1161
- var ms = "yp3g0k0", vs = "yp3g0k1", Er = "yp3g0k3", ys = "yp3g0k4", _r = "yp3g0k5", ht = "yp3g0k6", bs = "yp3g0k7", xs = "yp3g0k8", Pr = "yp3g0k9", Ss = "yp3g0ka", ks = "yp3g0kb", Ls = "yp3g0kc", Cs = "yp3g0kd", Ts = "yp3g0ke";
1162
- const ws = Vn.map((e) => s[e]), As = Object.fromEntries(
1163
- Vn.map((e) => [s[e], e])
1164
- ), Es = ({ editor: e, currentColor: t, isOpen: n, onOpenChange: r }) => {
1165
- const o = J(), i = Ps(), c = mt(
1165
+ }, ms = "graphy_root", ie = () => typeof document > "u" ? null : document.getElementById(ms) ?? document.body;
1166
+ var vs = "yp3g0k0", ys = "yp3g0k1", _r = "yp3g0k3", bs = "yp3g0k4", Pr = "yp3g0k5", ht = "yp3g0k6", xs = "yp3g0k7", Ss = "yp3g0k8", Hr = "yp3g0k9", ks = "yp3g0ka", Ls = "yp3g0kb", Cs = "yp3g0kc", Ts = "yp3g0kd", ws = "yp3g0ke";
1167
+ const As = Un.map((e) => s[e]), Es = Object.fromEntries(
1168
+ Un.map((e) => [s[e], e])
1169
+ ), _s = ({ editor: e, currentColor: t, isOpen: n, onOpenChange: r }) => {
1170
+ const o = J(), i = Hs(), c = mt(
1166
1171
  (d) => {
1167
1172
  e.chain().setColor(d).run();
1168
1173
  },
@@ -1176,17 +1181,17 @@ const ws = Vn.map((e) => s[e]), As = Object.fromEntries(
1176
1181
  {
1177
1182
  render: /* @__PURE__ */ a(H.Button, {}),
1178
1183
  "aria-label": o("graph.toolbar.color.label"),
1179
- className: ms,
1184
+ className: vs,
1180
1185
  onMouseDown: (d) => d.preventDefault(),
1181
- children: /* @__PURE__ */ a("span", { className: vs, style: { background: t ?? "transparent" } })
1186
+ children: /* @__PURE__ */ a("span", { className: ys, style: { background: t ?? "transparent" } })
1182
1187
  }
1183
1188
  ),
1184
- /* @__PURE__ */ a(F.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(F.Positioner, { sideOffset: 6, align: "start", className: Er, children: /* @__PURE__ */ m(F.Popup, { className: ys, onMouseDown: (d) => d.preventDefault(), children: [
1189
+ /* @__PURE__ */ a(F.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(F.Positioner, { sideOffset: 6, align: "start", className: _r, children: /* @__PURE__ */ m(F.Popup, { className: bs, onMouseDown: (d) => d.preventDefault(), children: [
1185
1190
  /* @__PURE__ */ a(
1186
1191
  Xt,
1187
1192
  {
1188
1193
  title: o("graph.colorDropdown.colors"),
1189
- colors: ws,
1194
+ colors: As,
1190
1195
  currentColor: t,
1191
1196
  onPick: l
1192
1197
  }
@@ -1200,58 +1205,58 @@ const ws = Vn.map((e) => s[e]), As = Object.fromEntries(
1200
1205
  onPick: l
1201
1206
  }
1202
1207
  ),
1203
- /* @__PURE__ */ a(_s, { value: t ?? "#000000", onChange: c })
1208
+ /* @__PURE__ */ a(Ps, { value: t ?? "#000000", onChange: c })
1204
1209
  ] }) }) }) })
1205
1210
  ] });
1206
- }, Xt = ({ title: e, colors: t, currentColor: n, onPick: r }) => /* @__PURE__ */ m("div", { className: _r, children: [
1211
+ }, Xt = ({ title: e, colors: t, currentColor: n, onPick: r }) => /* @__PURE__ */ m("div", { className: Pr, children: [
1207
1212
  /* @__PURE__ */ a("div", { className: ht, children: e }),
1208
- /* @__PURE__ */ a("div", { className: bs, children: t.map((o) => /* @__PURE__ */ a(
1213
+ /* @__PURE__ */ a("div", { className: xs, children: t.map((o) => /* @__PURE__ */ a(
1209
1214
  "button",
1210
1215
  {
1211
1216
  type: "button",
1212
1217
  "aria-label": o,
1213
- className: xs,
1214
- "data-active": Fs(o, n),
1218
+ className: Ss,
1219
+ "data-active": Ns(o, n),
1215
1220
  onMouseDown: (i) => i.preventDefault(),
1216
1221
  onClick: () => r(o),
1217
- children: /* @__PURE__ */ a("span", { className: Pr, style: Hr(o) })
1222
+ children: /* @__PURE__ */ a("span", { className: Hr, style: Fr(o) })
1218
1223
  },
1219
1224
  o
1220
1225
  )) })
1221
- ] }), _s = ({ value: e, onChange: t }) => {
1222
- const n = J(), [r, o] = E(!1), i = Li(e) ? e : "#000000", c = Hs(i);
1226
+ ] }), Ps = ({ value: e, onChange: t }) => {
1227
+ const n = J(), [r, o] = E(!1), i = Ci(e) ? e : "#000000", c = Fs(i);
1223
1228
  return /* @__PURE__ */ m(F.Root, { open: r, onOpenChange: o, children: [
1224
- /* @__PURE__ */ m("div", { className: _r, children: [
1229
+ /* @__PURE__ */ m("div", { className: Pr, children: [
1225
1230
  /* @__PURE__ */ a("div", { className: ht, children: n("graph.colorDropdown.custom") }),
1226
1231
  /* @__PURE__ */ m(
1227
1232
  F.Trigger,
1228
1233
  {
1229
- className: Ss,
1234
+ className: ks,
1230
1235
  onMouseDown: (l) => l.preventDefault(),
1231
1236
  "aria-label": n("graph.colorDropdown.pickCustom"),
1232
1237
  children: [
1233
- /* @__PURE__ */ a("span", { className: Pr, style: Hr(i) }),
1234
- /* @__PURE__ */ a("span", { className: ks, children: c })
1238
+ /* @__PURE__ */ a("span", { className: Hr, style: Fr(i) }),
1239
+ /* @__PURE__ */ a("span", { className: Ls, children: c })
1235
1240
  ]
1236
1241
  }
1237
1242
  )
1238
1243
  ] }),
1239
- /* @__PURE__ */ a(F.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(F.Positioner, { side: "right", align: "start", sideOffset: 18, className: Er, children: /* @__PURE__ */ m(F.Popup, { className: Ls, onMouseDown: (l) => l.preventDefault(), children: [
1244
+ /* @__PURE__ */ a(F.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(F.Positioner, { side: "right", align: "start", sideOffset: 18, className: _r, children: /* @__PURE__ */ m(F.Popup, { className: Cs, onMouseDown: (l) => l.preventDefault(), children: [
1240
1245
  /* @__PURE__ */ a("div", { className: ht, children: n("graph.colorDropdown.pickColor") }),
1241
- /* @__PURE__ */ a(la, { color: c, onChange: t, className: Cs }),
1246
+ /* @__PURE__ */ a(ca, { color: c, onChange: t, className: Ts }),
1242
1247
  /* @__PURE__ */ a(
1243
- ca,
1248
+ da,
1244
1249
  {
1245
1250
  color: c,
1246
1251
  onChange: t,
1247
1252
  prefixed: !0,
1248
- className: Ts,
1253
+ className: ws,
1249
1254
  onMouseDown: (l) => l.stopPropagation()
1250
1255
  }
1251
1256
  )
1252
1257
  ] }) }) }) })
1253
1258
  ] });
1254
- }, Ps = () => {
1259
+ }, Hs = () => {
1255
1260
  const e = B((t) => t.scales.color);
1256
1261
  return v(() => {
1257
1262
  if (!e || e.kind !== "visual") return [];
@@ -1262,15 +1267,15 @@ const ws = Vn.map((e) => s[e]), As = Object.fromEntries(
1262
1267
  }
1263
1268
  return [...t];
1264
1269
  }, [e]);
1265
- }, Hr = (e) => ({
1270
+ }, Fr = (e) => ({
1266
1271
  background: e,
1267
1272
  border: `1px solid ${je(e, 0.1)}`
1268
- }), Hs = (e) => {
1273
+ }), Fs = (e) => {
1269
1274
  const { themeValues: t } = _t();
1270
- if (ki(e)) return e.toUpperCase();
1271
- const n = As[e];
1275
+ if (Li(e)) return e.toUpperCase();
1276
+ const n = Es[e];
1272
1277
  return n ? t[n].toUpperCase() : "#000000";
1273
- }, Fs = (e, t) => t === null ? !1 : e.toLowerCase() === t.toLowerCase(), Ns = {
1278
+ }, Ns = (e, t) => t === null ? !1 : e.toLowerCase() === t.toLowerCase(), Bs = {
1274
1279
  xxs: 8,
1275
1280
  xs: 12,
1276
1281
  sm: 16,
@@ -1278,13 +1283,13 @@ const ws = Vn.map((e) => s[e]), As = Object.fromEntries(
1278
1283
  lg: 24,
1279
1284
  xl: 36
1280
1285
  };
1281
- var Bs = { primary: "asohov1 asohov0", secondary: "asohov2 asohov0" };
1286
+ var Is = { primary: "asohov1 asohov0", secondary: "asohov2 asohov0" };
1282
1287
  const Z = ({ children: e, title: t, variant: n = "primary", size: r = "sm", ...o }) => {
1283
- const i = vt(), c = Ns[r];
1288
+ const i = vt(), c = Bs[r];
1284
1289
  return /* @__PURE__ */ m(
1285
1290
  "svg",
1286
1291
  {
1287
- className: Bs[n],
1292
+ className: Is[n],
1288
1293
  "aria-labelledby": t ? i : void 0,
1289
1294
  height: c,
1290
1295
  width: c,
@@ -1298,17 +1303,17 @@ const Z = ({ children: e, title: t, variant: n = "primary", size: r = "sm", ...o
1298
1303
  ]
1299
1304
  }
1300
1305
  );
1301
- }, Fr = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ a("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ a("path", { d: "m6 9 6 6 6-6" }) }) }), Is = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", Nr = `'Aeonik', 'Aeonik Fallback', ${R}`, Ms = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", Ds = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", Os = `var(--brand-font-family), ${Nr}`, gt = [
1306
+ }, Nr = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ a("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ a("path", { d: "m6 9 6 6 6-6" }) }) }), Ms = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", Br = `'Aeonik', 'Aeonik Fallback', ${R}`, Ds = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", Os = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", Rs = `var(--brand-font-family), ${Br}`, gt = [
1302
1307
  { id: "modern", label: "Modern", preview: "Aa", fontFamily: R },
1303
- { id: "fresh", label: "Fresh", preview: "Aa", fontFamily: Nr },
1304
- { id: "timeless", label: "Timeless", preview: "Aa", fontFamily: Is },
1305
- { id: "technical", label: "Technical", preview: "00", fontFamily: Ms },
1306
- { id: "fineliner", label: "Fineliner", preview: "Aa", fontFamily: Ds },
1307
- { id: "brand", label: "Brand", preview: "Aa", fontFamily: Os }
1308
- ], Rs = (e) => e ? gt.find((t) => t.fontFamily === e) ?? null : null;
1309
- var Br = "_1qkyw7q0", Ir = "_1qkyw7q1", Mr = "_1qkyw7q3", Dr = "_1qkyw7q4", Or = "_1qkyw7q5";
1310
- const zs = ({ editor: e, currentFontFamily: t, isOpen: n, onOpenChange: r }) => {
1311
- const o = J(), i = Rs(t) ?? gt[0], c = (l) => {
1308
+ { id: "fresh", label: "Fresh", preview: "Aa", fontFamily: Br },
1309
+ { id: "timeless", label: "Timeless", preview: "Aa", fontFamily: Ms },
1310
+ { id: "technical", label: "Technical", preview: "00", fontFamily: Ds },
1311
+ { id: "fineliner", label: "Fineliner", preview: "Aa", fontFamily: Os },
1312
+ { id: "brand", label: "Brand", preview: "Aa", fontFamily: Rs }
1313
+ ], zs = (e) => e ? gt.find((t) => t.fontFamily === e) ?? null : null;
1314
+ var Ir = "_1qkyw7q0", Mr = "_1qkyw7q1", Dr = "_1qkyw7q3", Or = "_1qkyw7q4", Rr = "_1qkyw7q5";
1315
+ const Gs = ({ editor: e, currentFontFamily: t, isOpen: n, onOpenChange: r }) => {
1316
+ const o = J(), i = zs(t) ?? gt[0], c = (l) => {
1312
1317
  e.chain().focus().setFontFamily(l.fontFamily).run();
1313
1318
  };
1314
1319
  return /* @__PURE__ */ m(M.Root, { open: n, onOpenChange: r, children: [
@@ -1317,18 +1322,18 @@ const zs = ({ editor: e, currentFontFamily: t, isOpen: n, onOpenChange: r }) =>
1317
1322
  {
1318
1323
  render: /* @__PURE__ */ a(H.Button, {}),
1319
1324
  "aria-label": o("graph.toolbar.font.ariaLabel"),
1320
- className: Br,
1325
+ className: Ir,
1321
1326
  onMouseDown: (l) => l.preventDefault(),
1322
1327
  children: [
1323
- /* @__PURE__ */ a("span", { className: Ir, style: { fontFamily: i?.fontFamily }, children: i?.preview }),
1324
- /* @__PURE__ */ a(Fr, { size: "sm" })
1328
+ /* @__PURE__ */ a("span", { className: Mr, style: { fontFamily: i?.fontFamily }, children: i?.preview }),
1329
+ /* @__PURE__ */ a(Nr, { size: "sm" })
1325
1330
  ]
1326
1331
  }
1327
1332
  ),
1328
- /* @__PURE__ */ a(M.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(M.Positioner, { side: "bottom", align: "start", sideOffset: 6, className: Mr, children: /* @__PURE__ */ a(M.Popup, { className: Dr, onMouseDown: (l) => l.preventDefault(), children: gt.map((l) => /* @__PURE__ */ a(
1333
+ /* @__PURE__ */ a(M.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(M.Positioner, { side: "bottom", align: "start", sideOffset: 6, className: Dr, children: /* @__PURE__ */ a(M.Popup, { className: Or, onMouseDown: (l) => l.preventDefault(), children: gt.map((l) => /* @__PURE__ */ a(
1329
1334
  M.Item,
1330
1335
  {
1331
- className: Or,
1336
+ className: Rr,
1332
1337
  "data-selected": l.id === i?.id,
1333
1338
  onClick: () => c(l),
1334
1339
  children: /* @__PURE__ */ a("span", { style: { fontFamily: l.fontFamily }, children: l.label })
@@ -1336,44 +1341,44 @@ const zs = ({ editor: e, currentFontFamily: t, isOpen: n, onOpenChange: r }) =>
1336
1341
  l.id
1337
1342
  )) }) }) }) })
1338
1343
  ] });
1339
- }, Rr = {
1344
+ }, zr = {
1340
1345
  id: "text",
1341
1346
  translationKey: "graph.toolbar.heading.text",
1342
1347
  previewFont: s.fontTextEditorBody
1343
1348
  }, Vt = [
1344
1349
  { id: "caption", translationKey: "graph.toolbar.heading.caption", previewFont: s.fontTextEditorH6 },
1345
- Rr,
1350
+ zr,
1346
1351
  { id: "h3", translationKey: "graph.toolbar.heading.heading3", previewFont: s.fontTextEditorH3 },
1347
1352
  { id: "h2", translationKey: "graph.toolbar.heading.heading2", previewFont: s.fontTextEditorH2 },
1348
1353
  { id: "h1", translationKey: "graph.toolbar.heading.heading1", previewFont: s.fontTextEditorH1 }
1349
- ], Gs = ({ editor: e, activeStyle: t, isOpen: n, onOpenChange: r }) => {
1350
- const o = J(), i = Vt.find((c) => c.id === t) ?? Rr;
1354
+ ], Ws = ({ editor: e, activeStyle: t, isOpen: n, onOpenChange: r }) => {
1355
+ const o = J(), i = Vt.find((c) => c.id === t) ?? zr;
1351
1356
  return /* @__PURE__ */ m(M.Root, { open: n, onOpenChange: r, children: [
1352
1357
  /* @__PURE__ */ m(
1353
1358
  M.Trigger,
1354
1359
  {
1355
1360
  render: /* @__PURE__ */ a(H.Button, {}),
1356
1361
  "aria-label": o("graph.toolbar.heading.ariaLabel"),
1357
- className: Br,
1362
+ className: Ir,
1358
1363
  onMouseDown: (c) => c.preventDefault(),
1359
1364
  children: [
1360
- /* @__PURE__ */ a("span", { className: Ir, children: o(i.translationKey) }),
1361
- /* @__PURE__ */ a(Fr, { size: "sm" })
1365
+ /* @__PURE__ */ a("span", { className: Mr, children: o(i.translationKey) }),
1366
+ /* @__PURE__ */ a(Nr, { size: "sm" })
1362
1367
  ]
1363
1368
  }
1364
1369
  ),
1365
- /* @__PURE__ */ a(M.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(M.Positioner, { side: "bottom", align: "start", sideOffset: 6, className: Mr, children: /* @__PURE__ */ a(M.Popup, { className: Dr, onMouseDown: (c) => c.preventDefault(), children: Vt.map((c) => /* @__PURE__ */ a(
1370
+ /* @__PURE__ */ a(M.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(M.Positioner, { side: "bottom", align: "start", sideOffset: 6, className: Dr, children: /* @__PURE__ */ a(M.Popup, { className: Or, onMouseDown: (c) => c.preventDefault(), children: Vt.map((c) => /* @__PURE__ */ a(
1366
1371
  M.Item,
1367
1372
  {
1368
- className: Or,
1373
+ className: Rr,
1369
1374
  "data-selected": c.id === i.id,
1370
- onClick: () => Ws(e, c.id),
1371
- children: /* @__PURE__ */ a($s, { font: c.previewFont, children: o(c.translationKey) })
1375
+ onClick: () => $s(e, c.id),
1376
+ children: /* @__PURE__ */ a(Xs, { font: c.previewFont, children: o(c.translationKey) })
1372
1377
  },
1373
1378
  c.id
1374
1379
  )) }) }) }) })
1375
1380
  ] });
1376
- }, Ws = (e, t) => {
1381
+ }, $s = (e, t) => {
1377
1382
  switch (t) {
1378
1383
  case "caption": {
1379
1384
  e.chain().focus().setNode("paragraph", { variant: "caption" }).run();
@@ -1392,13 +1397,13 @@ const zs = ({ editor: e, currentFontFamily: t, isOpen: n, onOpenChange: r }) =>
1392
1397
  case "h3":
1393
1398
  e.chain().focus().setHeading({ level: 3 }).run();
1394
1399
  }
1395
- }, $s = ({ font: e, children: t }) => /* @__PURE__ */ a("span", { style: { font: e, margin: 0 }, children: t }), Xs = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ a("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ a("path", { d: "M20 6 9 17l-5-5" }) }) }), Vs = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1400
+ }, Xs = ({ font: e, children: t }) => /* @__PURE__ */ a("span", { style: { font: e, margin: 0 }, children: t }), Vs = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ a("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ a("path", { d: "M20 6 9 17l-5-5" }) }) }), Us = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1396
1401
  /* @__PURE__ */ a("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }),
1397
1402
  /* @__PURE__ */ a("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })
1398
- ] }) }), Us = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1403
+ ] }) }), Ys = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1399
1404
  /* @__PURE__ */ a("path", { d: "M18 6 6 18" }),
1400
1405
  /* @__PURE__ */ a("path", { d: "m6 6 12 12" })
1401
- ] }) }), Ys = (e) => !e.content || e.content.length === 0 ? !0 : e.content.every((t) => !t.content || t.content.length === 0), js = (e) => {
1406
+ ] }) }), js = (e) => !e.content || e.content.length === 0 ? !0 : e.content.every((t) => !t.content || t.content.length === 0), qs = (e) => {
1402
1407
  const { $from: t } = e.state.selection, n = t.parent.textContent, r = t.parentOffset, o = t.start();
1403
1408
  let i = r;
1404
1409
  for (; i > 0 && Ut(n[i - 1]); ) i -= 1;
@@ -1406,14 +1411,14 @@ const zs = ({ editor: e, currentFontFamily: t, isOpen: n, onOpenChange: r }) =>
1406
1411
  for (; c < n.length && Ut(n[c]); ) c += 1;
1407
1412
  return { from: o + i, to: o + c };
1408
1413
  }, Ut = (e) => e !== void 0 && /\S/.test(e);
1409
- var qs = "b5kquu0", Ks = "b5kquu1", Js = "b5kquu2", Zs = "b5kquu3", Yt = "b5kquu4";
1410
- const Qs = ({ editor: e, currentUrl: t, isActive: n, isOpen: r, onOpenChange: o }) => {
1414
+ var Ks = "b5kquu0", Js = "b5kquu1", Zs = "b5kquu2", Qs = "b5kquu3", Yt = "b5kquu4";
1415
+ const el = ({ editor: e, currentUrl: t, isActive: n, isOpen: r, onOpenChange: o }) => {
1411
1416
  const i = J(), [c, l] = E(""), d = C(null);
1412
1417
  L(() => {
1413
1418
  r && l(t ?? "");
1414
1419
  }, [r, t]);
1415
1420
  const u = () => {
1416
- el(e, c), o(!1);
1421
+ tl(e, c), o(!1);
1417
1422
  }, h = () => {
1418
1423
  l(""), o(!1);
1419
1424
  }, g = (f) => {
@@ -1428,15 +1433,15 @@ const Qs = ({ editor: e, currentUrl: t, isActive: n, isOpen: r, onOpenChange: o
1428
1433
  render: /* @__PURE__ */ a(H.Button, {}),
1429
1434
  "aria-label": i("graph.toolbar.formatting.link"),
1430
1435
  "data-active": n,
1431
- className: qs,
1436
+ className: Ks,
1432
1437
  onMouseDown: (f) => f.preventDefault(),
1433
- children: /* @__PURE__ */ a(Vs, {})
1438
+ children: /* @__PURE__ */ a(Us, {})
1434
1439
  }
1435
1440
  ),
1436
- /* @__PURE__ */ a(F.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(F.Positioner, { sideOffset: 6, align: "end", className: Ks, children: /* @__PURE__ */ m(
1441
+ /* @__PURE__ */ a(F.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(F.Positioner, { sideOffset: 6, align: "end", className: Js, children: /* @__PURE__ */ m(
1437
1442
  F.Popup,
1438
1443
  {
1439
- className: Js,
1444
+ className: Zs,
1440
1445
  initialFocus: d,
1441
1446
  onMouseDown: (f) => f.preventDefault(),
1442
1447
  children: [
@@ -1448,13 +1453,13 @@ const Qs = ({ editor: e, currentUrl: t, isActive: n, isOpen: r, onOpenChange: o
1448
1453
  value: c,
1449
1454
  placeholder: i("graph.toolbar.link.placeholder"),
1450
1455
  "aria-label": i("graph.toolbar.link.urlLabel"),
1451
- className: Zs,
1456
+ className: Qs,
1452
1457
  onMouseDown: (f) => f.stopPropagation(),
1453
1458
  onChange: g,
1454
1459
  onKeyDown: p
1455
1460
  }
1456
1461
  ),
1457
- /* @__PURE__ */ a("button", { type: "button", "aria-label": i("common.cancel"), className: Yt, onClick: h, children: /* @__PURE__ */ a(Us, {}) }),
1462
+ /* @__PURE__ */ a("button", { type: "button", "aria-label": i("common.cancel"), className: Yt, onClick: h, children: /* @__PURE__ */ a(Ys, {}) }),
1458
1463
  /* @__PURE__ */ a(
1459
1464
  "button",
1460
1465
  {
@@ -1462,14 +1467,14 @@ const Qs = ({ editor: e, currentUrl: t, isActive: n, isOpen: r, onOpenChange: o
1462
1467
  "aria-label": i("graph.toolbar.link.apply"),
1463
1468
  className: Yt,
1464
1469
  onClick: u,
1465
- children: /* @__PURE__ */ a(Xs, {})
1470
+ children: /* @__PURE__ */ a(Vs, {})
1466
1471
  }
1467
1472
  )
1468
1473
  ]
1469
1474
  }
1470
1475
  ) }) }) })
1471
1476
  ] });
1472
- }, el = (e, t) => {
1477
+ }, tl = (e, t) => {
1473
1478
  const n = t.trim(), { selection: r } = e.state;
1474
1479
  if (!n) {
1475
1480
  e.chain().focus().extendMarkRange("link").unsetLink().run();
@@ -1483,38 +1488,38 @@ const Qs = ({ editor: e, currentUrl: t, isActive: n, isOpen: r, onOpenChange: o
1483
1488
  e.chain().focus().extendMarkRange("link").setLink({ href: n }).run();
1484
1489
  return;
1485
1490
  }
1486
- const o = js(e);
1491
+ const o = qs(e);
1487
1492
  e.chain().focus().setTextSelection(o).setLink({ href: n }).run();
1488
- }, tl = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1493
+ }, nl = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1489
1494
  /* @__PURE__ */ a("path", { d: "M21 5H3" }),
1490
1495
  /* @__PURE__ */ a("path", { d: "M17 12H7" }),
1491
1496
  /* @__PURE__ */ a("path", { d: "M19 19H5" })
1492
- ] }) }), nl = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1497
+ ] }) }), rl = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1493
1498
  /* @__PURE__ */ a("path", { d: "M21 5H3" }),
1494
1499
  /* @__PURE__ */ a("path", { d: "M21 12H9" }),
1495
1500
  /* @__PURE__ */ a("path", { d: "M21 19H7" })
1496
- ] }) }), rl = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1501
+ ] }) }), ol = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1497
1502
  /* @__PURE__ */ a("path", { d: "M21 5H3" }),
1498
1503
  /* @__PURE__ */ a("path", { d: "M15 12H3" }),
1499
1504
  /* @__PURE__ */ a("path", { d: "M17 19H3" })
1500
1505
  ] }) });
1501
- var ol = "k91gos0", al = "k91gos1";
1502
- const il = 6, de = ({ label: e, isActive: t, onToggle: n, children: r }) => {
1506
+ var al = "k91gos0", il = "k91gos1";
1507
+ const sl = 6, de = ({ label: e, isActive: t, onToggle: n, children: r }) => {
1503
1508
  const o = (i) => i.preventDefault();
1504
1509
  return /* @__PURE__ */ m(le.Root, { children: [
1505
1510
  /* @__PURE__ */ a(
1506
1511
  le.Trigger,
1507
1512
  {
1508
- render: /* @__PURE__ */ a(da, { render: /* @__PURE__ */ a(H.Button, {}), pressed: t, onPressedChange: () => n() }),
1513
+ render: /* @__PURE__ */ a(ua, { render: /* @__PURE__ */ a(H.Button, {}), pressed: t, onPressedChange: () => n() }),
1509
1514
  "aria-label": e,
1510
- className: ol,
1515
+ className: al,
1511
1516
  onMouseDown: o,
1512
1517
  children: r
1513
1518
  }
1514
1519
  ),
1515
- /* @__PURE__ */ a(le.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(le.Positioner, { sideOffset: il, children: /* @__PURE__ */ a(le.Popup, { className: al, children: e }) }) }) })
1520
+ /* @__PURE__ */ a(le.Portal, { container: ie(), children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(le.Positioner, { sideOffset: sl, children: /* @__PURE__ */ a(le.Popup, { className: il, children: e }) }) }) })
1516
1521
  ] });
1517
- }, sl = ({ editor: e, activeAlignment: t = "left" }) => {
1522
+ }, ll = ({ editor: e, activeAlignment: t = "left" }) => {
1518
1523
  const n = J();
1519
1524
  return /* @__PURE__ */ m(T, { children: [
1520
1525
  /* @__PURE__ */ a(
@@ -1523,7 +1528,7 @@ const il = 6, de = ({ label: e, isActive: t, onToggle: n, children: r }) => {
1523
1528
  label: n("graph.toolbar.textAlign.left"),
1524
1529
  isActive: t === "left",
1525
1530
  onToggle: () => e.chain().focus().setTextAlign("left").run(),
1526
- children: /* @__PURE__ */ a(rl, {})
1531
+ children: /* @__PURE__ */ a(ol, {})
1527
1532
  }
1528
1533
  ),
1529
1534
  /* @__PURE__ */ a(
@@ -1532,7 +1537,7 @@ const il = 6, de = ({ label: e, isActive: t, onToggle: n, children: r }) => {
1532
1537
  label: n("graph.toolbar.textAlign.center"),
1533
1538
  isActive: t === "center",
1534
1539
  onToggle: () => e.chain().focus().setTextAlign("center").run(),
1535
- children: /* @__PURE__ */ a(tl, {})
1540
+ children: /* @__PURE__ */ a(nl, {})
1536
1541
  }
1537
1542
  ),
1538
1543
  /* @__PURE__ */ a(
@@ -1541,13 +1546,13 @@ const il = 6, de = ({ label: e, isActive: t, onToggle: n, children: r }) => {
1541
1546
  label: n("graph.toolbar.textAlign.right"),
1542
1547
  isActive: t === "right",
1543
1548
  onToggle: () => e.chain().focus().setTextAlign("right").run(),
1544
- children: /* @__PURE__ */ a(nl, {})
1549
+ children: /* @__PURE__ */ a(rl, {})
1545
1550
  }
1546
1551
  )
1547
1552
  ] });
1548
1553
  };
1549
- var ll = "_1bp10ig0", Se = "_1bp10ig1", Ne = "_1bp10ig2";
1550
- const cl = ({ editor: e }) => ({
1554
+ var cl = "_1bp10ig0", ke = "_1bp10ig1", Ne = "_1bp10ig2";
1555
+ const dl = ({ editor: e }) => ({
1551
1556
  isBold: e?.isActive("bold") ?? !1,
1552
1557
  isItalic: e?.isActive("italic") ?? !1,
1553
1558
  isUnderline: e?.isActive("underline") ?? !1,
@@ -1555,19 +1560,19 @@ const cl = ({ editor: e }) => ({
1555
1560
  linkUrl: e?.getAttributes("link").href ?? null,
1556
1561
  color: e?.getAttributes("textStyle").color ?? null,
1557
1562
  fontFamily: e?.getAttributes("textStyle").fontFamily ?? null,
1558
- fontSize: dl(e),
1559
- textAlign: ul(e)
1560
- }), dl = (e) => e ? e.isActive("heading", { level: 1 }) ? "h1" : e.isActive("heading", { level: 2 }) ? "h2" : e.isActive("heading", { level: 3 }) ? "h3" : e.isActive("paragraph", { variant: "caption" }) ? "caption" : "text" : "text", ul = (e) => e ? e.isActive({ textAlign: "center" }) ? "center" : e.isActive({ textAlign: "right" }) ? "right" : "left" : "left", hl = 8, gl = 8, pl = ({ editor: e }) => {
1563
+ fontSize: ul(e),
1564
+ textAlign: hl(e)
1565
+ }), ul = (e) => e ? e.isActive("heading", { level: 1 }) ? "h1" : e.isActive("heading", { level: 2 }) ? "h2" : e.isActive("heading", { level: 3 }) ? "h3" : e.isActive("paragraph", { variant: "caption" }) ? "caption" : "text" : "text", hl = (e) => e ? e.isActive({ textAlign: "center" }) ? "center" : e.isActive({ textAlign: "right" }) ? "right" : "left" : "left", gl = 8, pl = 8, fl = ({ editor: e }) => {
1561
1566
  const t = J(), [n, r] = E(!1), [o, i] = E(null), c = o !== null, l = (y) => (S) => {
1562
1567
  i(S ? y : null);
1563
1568
  }, { refs: d, floatingStyles: u } = xt({
1564
1569
  placement: "top-start",
1565
1570
  strategy: "fixed",
1566
- middleware: [St(hl), kt(), Lt({ padding: gl })],
1567
- whileElementsMounted: ea
1568
- }), h = C(null), g = ra({
1571
+ middleware: [St(gl), kt(), Lt({ padding: pl })],
1572
+ whileElementsMounted: ta
1573
+ }), h = C(null), g = oa({
1569
1574
  editor: e,
1570
- selector: cl
1575
+ selector: dl
1571
1576
  }), p = mt(
1572
1577
  (y) => {
1573
1578
  h.current = y, d.setFloating(y);
@@ -1587,11 +1592,11 @@ const cl = ({ editor: e }) => ({
1587
1592
  };
1588
1593
  }, [e]), !e || !n && !c) return null;
1589
1594
  const f = ie();
1590
- return f ? ia(
1591
- /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(le.Provider, { children: /* @__PURE__ */ m(H.Root, { ref: p, className: ll, style: u, children: [
1592
- /* @__PURE__ */ m(H.Group, { className: Se, children: [
1595
+ return f ? sa(
1596
+ /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(le.Provider, { children: /* @__PURE__ */ m(H.Root, { ref: p, className: cl, style: u, children: [
1597
+ /* @__PURE__ */ m(H.Group, { className: ke, children: [
1593
1598
  /* @__PURE__ */ a(
1594
- Es,
1599
+ _s,
1595
1600
  {
1596
1601
  editor: e,
1597
1602
  currentColor: g?.color ?? null,
@@ -1600,7 +1605,7 @@ const cl = ({ editor: e }) => ({
1600
1605
  }
1601
1606
  ),
1602
1607
  /* @__PURE__ */ a(
1603
- zs,
1608
+ Gs,
1604
1609
  {
1605
1610
  editor: e,
1606
1611
  currentFontFamily: g?.fontFamily ?? null,
@@ -1610,8 +1615,8 @@ const cl = ({ editor: e }) => ({
1610
1615
  )
1611
1616
  ] }),
1612
1617
  /* @__PURE__ */ a(H.Separator, { className: Ne }),
1613
- /* @__PURE__ */ a(H.Group, { className: Se, children: /* @__PURE__ */ a(
1614
- Gs,
1618
+ /* @__PURE__ */ a(H.Group, { className: ke, children: /* @__PURE__ */ a(
1619
+ Ws,
1615
1620
  {
1616
1621
  editor: e,
1617
1622
  activeStyle: g?.fontSize ?? "text",
@@ -1620,7 +1625,7 @@ const cl = ({ editor: e }) => ({
1620
1625
  }
1621
1626
  ) }),
1622
1627
  /* @__PURE__ */ a(H.Separator, { className: Ne }),
1623
- /* @__PURE__ */ m(H.Group, { className: Se, children: [
1628
+ /* @__PURE__ */ m(H.Group, { className: ke, children: [
1624
1629
  /* @__PURE__ */ a(
1625
1630
  de,
1626
1631
  {
@@ -1650,10 +1655,10 @@ const cl = ({ editor: e }) => ({
1650
1655
  )
1651
1656
  ] }),
1652
1657
  /* @__PURE__ */ a(H.Separator, { className: Ne }),
1653
- /* @__PURE__ */ a(H.Group, { className: Se, children: /* @__PURE__ */ a(sl, { editor: e, activeAlignment: g?.textAlign }) }),
1658
+ /* @__PURE__ */ a(H.Group, { className: ke, children: /* @__PURE__ */ a(ll, { editor: e, activeAlignment: g?.textAlign }) }),
1654
1659
  /* @__PURE__ */ a(H.Separator, { className: Ne }),
1655
- /* @__PURE__ */ a(H.Group, { className: Se, children: /* @__PURE__ */ a(
1656
- Qs,
1660
+ /* @__PURE__ */ a(H.Group, { className: ke, children: /* @__PURE__ */ a(
1661
+ el,
1657
1662
  {
1658
1663
  editor: e,
1659
1664
  currentUrl: g?.linkUrl ?? null,
@@ -1666,11 +1671,11 @@ const cl = ({ editor: e }) => ({
1666
1671
  f
1667
1672
  ) : null;
1668
1673
  };
1669
- var fl = "_2ngohc0";
1670
- const zr = ({ editor: e, ariaLabel: t }) => /* @__PURE__ */ m("div", { className: fl, children: [
1671
- /* @__PURE__ */ a(pl, { editor: e }),
1672
- /* @__PURE__ */ a(oa, { editor: e, "aria-label": t })
1673
- ] }), ml = (e, t) => {
1674
+ var ml = "_2ngohc0";
1675
+ const Gr = ({ editor: e, ariaLabel: t }) => /* @__PURE__ */ m("div", { className: ml, children: [
1676
+ /* @__PURE__ */ a(fl, { editor: e }),
1677
+ /* @__PURE__ */ a(aa, { editor: e, "aria-label": t })
1678
+ ] }), vl = (e, t) => {
1674
1679
  const n = C(e);
1675
1680
  n.current = e;
1676
1681
  const r = C(t);
@@ -1694,16 +1699,16 @@ const zr = ({ editor: e, ariaLabel: t }) => /* @__PURE__ */ m("div", { className
1694
1699
  return L(() => () => {
1695
1700
  i.current !== null && clearTimeout(i.current);
1696
1701
  }, []), c;
1697
- }, vl = 200, Gr = ({
1702
+ }, yl = 200, Wr = ({
1698
1703
  content: e,
1699
1704
  extensions: t,
1700
1705
  isEditable: n,
1701
1706
  onUpdate: r,
1702
- updateDebounceMs: o = vl
1707
+ updateDebounceMs: o = yl
1703
1708
  }) => {
1704
- const i = C(jt(e)), c = C(!1), l = ml((u) => {
1709
+ const i = C(jt(e)), c = C(!1), l = vl((u) => {
1705
1710
  c.current = !0, r?.(u);
1706
- }, o), d = aa({
1711
+ }, o), d = ia({
1707
1712
  extensions: t,
1708
1713
  content: i.current,
1709
1714
  editable: n,
@@ -1719,11 +1724,11 @@ const zr = ({ editor: e, ariaLabel: t }) => /* @__PURE__ */ m("div", { className
1719
1724
  return;
1720
1725
  }
1721
1726
  const u = jt(e), h = d.getJSON();
1722
- yl(h, u) || (l.cancel(), d.commands.setContent(u, { emitUpdate: !1 }));
1727
+ bl(h, u) || (l.cancel(), d.commands.setContent(u, { emitUpdate: !1 }));
1723
1728
  }, [d, e, l]), L(() => () => l.flush(), [l]), d;
1724
- }, jt = (e) => e === null ? { type: "doc", content: [] } : typeof e == "string" ? { type: "doc", content: [{ type: "paragraph", content: e ? [{ type: "text", text: e }] : [] }] } : e, yl = (e, t) => JSON.stringify(e) === JSON.stringify(t);
1725
- var bl = "_1cocly40";
1726
- const xl = {
1729
+ }, jt = (e) => e === null ? { type: "doc", content: [] } : typeof e == "string" ? { type: "doc", content: [{ type: "paragraph", content: e ? [{ type: "text", text: e }] : [] }] } : e, bl = (e, t) => JSON.stringify(e) === JSON.stringify(t);
1730
+ var xl = "_1cocly40";
1731
+ const Sl = {
1727
1732
  modern: "'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif",
1728
1733
  timeless: "'Noto Serif', Georgia, 'Times New Roman', serif",
1729
1734
  fresh: "'Aeonik', 'Aeonik Fallback', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
@@ -1731,22 +1736,22 @@ const xl = {
1731
1736
  handwritten: "'Permanent Marker', cursive",
1732
1737
  fineliner: "'Intruding Cat', cursive",
1733
1738
  brand: "var(--brand-font-family), 'Aeonik', 'Inter', sans-serif"
1734
- }, De = ({ content: e }) => /* @__PURE__ */ a(T, { children: Wr(e.content ?? [e]) }), Wr = (e) => e.map((t, n) => Sl(t, n)), Sl = (e, t) => {
1739
+ }, De = ({ content: e }) => /* @__PURE__ */ a(T, { children: $r(e.content ?? [e]) }), $r = (e) => e.map((t, n) => kl(t, n)), kl = (e, t) => {
1735
1740
  if (e.type === "text")
1736
- return kl(e, t);
1741
+ return Ll(e, t);
1737
1742
  if (e.type === "hardBreak" || e.type === "hard_break")
1738
1743
  return /* @__PURE__ */ a("br", {}, t);
1739
- const n = e.content ? Wr(e.content) : null;
1744
+ const n = e.content ? $r(e.content) : null;
1740
1745
  switch (e.type) {
1741
1746
  case "doc":
1742
1747
  return /* @__PURE__ */ a(hn, { children: n }, t);
1743
1748
  case "heading": {
1744
- const r = wl(e.attrs?.level);
1745
- return Al(r, t, n, Kt(e.attrs));
1749
+ const r = Al(e.attrs?.level);
1750
+ return El(r, t, n, Kt(e.attrs));
1746
1751
  }
1747
1752
  case "paragraph": {
1748
1753
  const r = ge(e.attrs?.variant);
1749
- return /* @__PURE__ */ a("p", { "data-variant": r ?? void 0, style: $r(Kt(e.attrs)), children: n }, t);
1754
+ return /* @__PURE__ */ a("p", { "data-variant": r ?? void 0, style: Xr(Kt(e.attrs)), children: n }, t);
1750
1755
  }
1751
1756
  case "blockquote":
1752
1757
  return /* @__PURE__ */ a("blockquote", { children: n }, t);
@@ -1762,10 +1767,10 @@ const xl = {
1762
1767
  default:
1763
1768
  return /* @__PURE__ */ a("span", { children: n }, t);
1764
1769
  }
1765
- }, kl = (e, t) => {
1770
+ }, Ll = (e, t) => {
1766
1771
  const n = e.text ?? "";
1767
- return !e.marks || e.marks.length === 0 ? /* @__PURE__ */ a("span", { children: n }, t) : e.marks.reduceRight((r, o, i) => Ll(o, r, `${t}-${i}`), n);
1768
- }, Ll = (e, t, n) => {
1772
+ return !e.marks || e.marks.length === 0 ? /* @__PURE__ */ a("span", { children: n }, t) : e.marks.reduceRight((r, o, i) => Cl(o, r, `${t}-${i}`), n);
1773
+ }, Cl = (e, t, n) => {
1769
1774
  switch (e.type) {
1770
1775
  case "bold":
1771
1776
  case "strong":
@@ -1783,10 +1788,10 @@ const xl = {
1783
1788
  return /* @__PURE__ */ a("code", { children: t }, n);
1784
1789
  case "link": {
1785
1790
  const r = ge(e.attrs?.href);
1786
- return fn(r) ? /* @__PURE__ */ a("a", { className: bl, href: r, rel: "noopener noreferrer", target: "_blank", children: t }, n) : /* @__PURE__ */ a("span", { children: t }, n);
1791
+ return mn(r) ? /* @__PURE__ */ a("a", { className: xl, href: r, rel: "noopener noreferrer", target: "_blank", children: t }, n) : /* @__PURE__ */ a("span", { children: t }, n);
1787
1792
  }
1788
1793
  case "textStyle": {
1789
- const r = Cl(e.attrs);
1794
+ const r = Tl(e.attrs);
1790
1795
  return r ? /* @__PURE__ */ a("span", { style: r, children: t }, n) : /* @__PURE__ */ a("span", { children: t }, n);
1791
1796
  }
1792
1797
  default:
@@ -1795,17 +1800,17 @@ const xl = {
1795
1800
  }, qt = (e) => {
1796
1801
  const t = ge(e && typeof e == "object" ? e.fontFamily : e);
1797
1802
  if (t)
1798
- return xl[t] ?? t;
1799
- }, Cl = (e) => {
1803
+ return Sl[t] ?? t;
1804
+ }, Tl = (e) => {
1800
1805
  if (!e) return null;
1801
1806
  const t = {}, n = ge(e.color);
1802
1807
  n && (t.color = n);
1803
1808
  const r = qt(e.font) ?? qt(e.fontFamily);
1804
1809
  r && (t.fontFamily = r);
1805
- const o = Tl(e.fontSize);
1810
+ const o = wl(e.fontSize);
1806
1811
  return o && (t.fontSize = o), Object.keys(t).length > 0 ? t : null;
1807
- }, Tl = (e) => typeof e == "number" && Number.isFinite(e) ? `${e / 10}em` : ge(e), ge = (e) => typeof e == "string" && e.length > 0 ? e : void 0, wl = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), Al = (e, t, n, r) => {
1808
- const o = $r(r);
1812
+ }, wl = (e) => typeof e == "number" && Number.isFinite(e) ? `${e / 10}em` : ge(e), ge = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Al = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), El = (e, t, n, r) => {
1813
+ const o = Xr(r);
1809
1814
  switch (e) {
1810
1815
  case 1:
1811
1816
  return /* @__PURE__ */ a("h1", { style: o, children: n }, t);
@@ -1817,9 +1822,9 @@ const xl = {
1817
1822
  }, Kt = (e) => {
1818
1823
  const t = e?.textAlign;
1819
1824
  if (t === "left" || t === "right" || t === "center" || t === "justify") return t;
1820
- }, $r = (e) => e ? { textAlign: e } : void 0;
1821
- var El = "_4dlrid0", Xr = "_4dlrid1", _l = "xfz7dq0", Pl = "xfz7dq1", Hl = "xfz7dq2", Fl = "xfz7dq3", Nl = "xfz7dq4";
1822
- const Bl = ({
1825
+ }, Xr = (e) => e ? { textAlign: e } : void 0;
1826
+ var _l = "_4dlrid0", Vr = "_4dlrid1", Pl = "xfz7dq0", Hl = "xfz7dq1", Fl = "xfz7dq2", Nl = "xfz7dq3", Bl = "xfz7dq4";
1827
+ const Il = ({
1823
1828
  ref: e,
1824
1829
  footerRect: t,
1825
1830
  mode: n = "readonly",
@@ -1828,61 +1833,61 @@ const Bl = ({
1828
1833
  source: i,
1829
1834
  isSourceVisible: c
1830
1835
  }) => {
1831
- const l = n === "editable", d = o && (l || r !== null), u = c && i !== null && Ol(i);
1836
+ const l = n === "editable", d = o && (l || r !== null), u = c && i !== null && Rl(i);
1832
1837
  return !d && !u ? null : /* @__PURE__ */ m(
1833
1838
  "div",
1834
1839
  {
1835
1840
  ref: e,
1836
- className: _l,
1841
+ className: Pl,
1837
1842
  style: {
1838
1843
  left: t.x,
1839
1844
  top: t.y,
1840
1845
  width: t.width
1841
1846
  },
1842
1847
  children: [
1843
- d ? l ? /* @__PURE__ */ a(Rl, { caption: r }) : /* @__PURE__ */ a(Il, { caption: r }) : null,
1844
- u && /* @__PURE__ */ a(Ml, { source: i })
1848
+ d ? l ? /* @__PURE__ */ a(zl, { caption: r }) : /* @__PURE__ */ a(Ml, { caption: r }) : null,
1849
+ u && /* @__PURE__ */ a(Dl, { source: i })
1845
1850
  ]
1846
1851
  }
1847
1852
  );
1848
- }, Il = ({ caption: e }) => e === null ? null : typeof e == "string" ? /* @__PURE__ */ a("p", { className: Xr, children: e }) : /* @__PURE__ */ a(De, { content: e }), Ml = ({ source: e }) => {
1849
- const t = fn(e.url) ? e.url : void 0, n = e.label ?? (t !== void 0 ? Dl(t) : "");
1850
- return n === "" && t === void 0 ? null : /* @__PURE__ */ m("div", { className: Pl, children: [
1851
- /* @__PURE__ */ a("span", { className: Fl, children: "Source:" }),
1852
- t !== void 0 ? /* @__PURE__ */ a("a", { className: Hl, href: t, target: "_blank", rel: "noopener noreferrer", children: n }) : /* @__PURE__ */ a("span", { className: Nl, children: n })
1853
+ }, Ml = ({ caption: e }) => e === null ? null : typeof e == "string" ? /* @__PURE__ */ a("p", { className: Vr, children: e }) : /* @__PURE__ */ a(De, { content: e }), Dl = ({ source: e }) => {
1854
+ const t = mn(e.url) ? e.url : void 0, n = e.label ?? (t !== void 0 ? Ol(t) : "");
1855
+ return n === "" && t === void 0 ? null : /* @__PURE__ */ m("div", { className: Hl, children: [
1856
+ /* @__PURE__ */ a("span", { className: Nl, children: "Source:" }),
1857
+ t !== void 0 ? /* @__PURE__ */ a("a", { className: Fl, href: t, target: "_blank", rel: "noopener noreferrer", children: n }) : /* @__PURE__ */ a("span", { className: Bl, children: n })
1853
1858
  ] });
1854
- }, Dl = (e) => {
1859
+ }, Ol = (e) => {
1855
1860
  try {
1856
1861
  return new URL(e).hostname;
1857
1862
  } catch {
1858
1863
  return e;
1859
1864
  }
1860
- }, Ol = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "", Rl = ({ caption: e }) => {
1861
- const t = zn(), n = v(() => es({ placeholder: "Add caption" }), []), r = Gr({
1865
+ }, Rl = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "", zl = ({ caption: e }) => {
1866
+ const t = Gn(), n = v(() => ts({ placeholder: "Add caption" }), []), r = Wr({
1862
1867
  content: e,
1863
1868
  extensions: n,
1864
1869
  isEditable: !0,
1865
1870
  onUpdate: (o) => {
1866
- const i = Ys(o) ? null : o;
1867
- t(new Po({ caption: i }));
1871
+ const i = js(o) ? null : o;
1872
+ t(new Ho({ caption: i }));
1868
1873
  }
1869
1874
  });
1870
- return /* @__PURE__ */ a(zr, { editor: r, ariaLabel: "Chart caption" });
1875
+ return /* @__PURE__ */ a(Gr, { editor: r, ariaLabel: "Chart caption" });
1871
1876
  };
1872
- var zl = "_1k4qtbg0";
1873
- const Gl = 3, Wl = ({
1877
+ var Gl = "_1k4qtbg0";
1878
+ const Wl = 3, $l = ({
1874
1879
  title: e,
1875
1880
  isTitleVisible: t,
1876
1881
  subtitle: n,
1877
1882
  isSubtitleVisible: r
1878
1883
  }) => {
1879
1884
  const o = [];
1880
- return t && o.push({ type: "heading", attrs: { level: Gl }, content: Xl(e) }), r && o.push(...Vl(n)), { type: "doc", content: o };
1881
- }, $l = (e) => {
1885
+ return t && o.push({ type: "heading", attrs: { level: Wl }, content: Vl(e) }), r && o.push(...Ul(n)), { type: "doc", content: o };
1886
+ }, Xl = (e) => {
1882
1887
  const t = e.content ?? [], [n, ...r] = t;
1883
1888
  return {
1884
- title: Ul(n?.content ?? []),
1885
- subtitle: Yl(r)
1889
+ title: Yl(n?.content ?? []),
1890
+ subtitle: jl(r)
1886
1891
  };
1887
1892
  }, Pt = (e) => ({
1888
1893
  type: e.type ?? "text",
@@ -1890,11 +1895,11 @@ const Gl = 3, Wl = ({
1890
1895
  ...e.text !== void 0 ? { text: e.text } : {},
1891
1896
  ...e.marks !== void 0 ? { marks: e.marks } : {},
1892
1897
  ...e.attrs !== void 0 ? { attrs: e.attrs } : {}
1893
- }), Xl = (e) => e === null ? [] : typeof e == "string" ? e === "" ? [] : [{ type: "text", text: e }] : e.type === "doc" && e.content ? e.content.flatMap((t) => t.content ?? []) : e.type === "text" || e.type === "hardBreak" ? [e] : e.content ?? [], Vl = (e) => e === null ? [{ type: "paragraph" }] : typeof e == "string" ? e === "" ? [{ type: "paragraph" }] : [{ type: "paragraph", content: [{ type: "text", text: e }] }] : e.type === "doc" && e.content ? e.content.length === 0 ? [{ type: "paragraph" }] : e.content.map(Jt) : [Jt(e)], Jt = (e) => e.type === "paragraph" ? e : { type: "paragraph", content: e.content ?? [e] }, Ul = (e) => {
1898
+ }), Vl = (e) => e === null ? [] : typeof e == "string" ? e === "" ? [] : [{ type: "text", text: e }] : e.type === "doc" && e.content ? e.content.flatMap((t) => t.content ?? []) : e.type === "text" || e.type === "hardBreak" ? [e] : e.content ?? [], Ul = (e) => e === null ? [{ type: "paragraph" }] : typeof e == "string" ? e === "" ? [{ type: "paragraph" }] : [{ type: "paragraph", content: [{ type: "text", text: e }] }] : e.type === "doc" && e.content ? e.content.length === 0 ? [{ type: "paragraph" }] : e.content.map(Jt) : [Jt(e)], Jt = (e) => e.type === "paragraph" ? e : { type: "paragraph", content: e.content ?? [e] }, Yl = (e) => {
1894
1899
  if (e.length === 0) return null;
1895
1900
  const [t] = e;
1896
1901
  return t && e.length === 1 && t.type === "text" && (!t.marks || t.marks.length === 0) ? t.text ?? null : { type: "paragraph", content: e.map(Pt) };
1897
- }, Yl = (e) => {
1902
+ }, jl = (e) => {
1898
1903
  const t = e.filter((r) => (r.content ?? []).length > 0);
1899
1904
  if (t.length === 0) return null;
1900
1905
  const [n] = t;
@@ -1904,7 +1909,7 @@ const Gl = 3, Wl = ({
1904
1909
  return o.text ?? null;
1905
1910
  }
1906
1911
  return { type: "doc", content: t.map(Pt) };
1907
- }, jl = ({
1912
+ }, ql = ({
1908
1913
  ref: e,
1909
1914
  headerRect: t,
1910
1915
  mode: n = "readonly",
@@ -1918,14 +1923,14 @@ const Gl = 3, Wl = ({
1918
1923
  "div",
1919
1924
  {
1920
1925
  ref: e,
1921
- className: zl,
1926
+ className: Gl,
1922
1927
  style: {
1923
1928
  left: t.x,
1924
1929
  top: t.y,
1925
1930
  width: t.width
1926
1931
  },
1927
1932
  children: l ? /* @__PURE__ */ a(
1928
- Kl,
1933
+ Jl,
1929
1934
  {
1930
1935
  title: r,
1931
1936
  isTitleVisible: o,
@@ -1934,7 +1939,7 @@ const Gl = 3, Wl = ({
1934
1939
  },
1935
1940
  [o ? "title" : "", c ? "subtitle" : ""].join("-")
1936
1941
  ) : /* @__PURE__ */ a(
1937
- ql,
1942
+ Kl,
1938
1943
  {
1939
1944
  title: r,
1940
1945
  isTitleVisible: o,
@@ -1944,22 +1949,22 @@ const Gl = 3, Wl = ({
1944
1949
  )
1945
1950
  }
1946
1951
  );
1947
- }, ql = ({
1952
+ }, Kl = ({
1948
1953
  title: e,
1949
1954
  isTitleVisible: t,
1950
1955
  isSubtitleVisible: n,
1951
1956
  subtitle: r
1952
1957
  }) => /* @__PURE__ */ m(T, { children: [
1953
- t && e !== null && (typeof e == "string" ? /* @__PURE__ */ a("h1", { className: El, children: e }) : /* @__PURE__ */ a(De, { content: e })),
1954
- n && r !== null && (typeof r == "string" ? /* @__PURE__ */ a("p", { className: Xr, children: r }) : /* @__PURE__ */ a(De, { content: r }))
1955
- ] }), Kl = ({
1958
+ t && e !== null && (typeof e == "string" ? /* @__PURE__ */ a("h1", { className: _l, children: e }) : /* @__PURE__ */ a(De, { content: e })),
1959
+ n && r !== null && (typeof r == "string" ? /* @__PURE__ */ a("p", { className: Vr, children: r }) : /* @__PURE__ */ a(De, { content: r }))
1960
+ ] }), Jl = ({
1956
1961
  title: e,
1957
1962
  isTitleVisible: t,
1958
1963
  isSubtitleVisible: n,
1959
1964
  subtitle: r
1960
1965
  }) => {
1961
- const o = zn(), i = v(
1962
- () => Qi({
1966
+ const o = Gn(), i = v(
1967
+ () => es({
1963
1968
  titlePlaceholder: "Untitled",
1964
1969
  subtitlePlaceholder: "Untitled",
1965
1970
  isTitleVisible: t,
@@ -1967,84 +1972,84 @@ const Gl = 3, Wl = ({
1967
1972
  }),
1968
1973
  [t, n]
1969
1974
  ), c = v(
1970
- () => Wl({ title: e, isTitleVisible: t, subtitle: r, isSubtitleVisible: n }),
1975
+ () => $l({ title: e, isTitleVisible: t, subtitle: r, isSubtitleVisible: n }),
1971
1976
  [e, t, r, n]
1972
- ), l = Gr({
1977
+ ), l = Wr({
1973
1978
  content: c,
1974
1979
  extensions: i,
1975
1980
  isEditable: !0,
1976
1981
  onUpdate: (d) => {
1977
- const u = $l(d);
1978
- t && o(new Ho({ title: u.title })), n && o(new Fo({ subtitle: u.subtitle }));
1982
+ const u = Xl(d);
1983
+ t && o(new Fo({ title: u.title })), n && o(new No({ subtitle: u.subtitle }));
1979
1984
  }
1980
1985
  });
1981
- return /* @__PURE__ */ a(zr, { editor: l, ariaLabel: "Chart title and subtitle" });
1986
+ return /* @__PURE__ */ a(Gr, { editor: l, ariaLabel: "Chart title and subtitle" });
1982
1987
  };
1983
- var Jl = "_1u9qprb0", Zl = "_1u9qprb1", Ql = "_9aen060", ec = "_9aen061", tc = "_9aen062", Vr = "_9aen063";
1984
- const nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1988
+ var Zl = "_1u9qprb0", Ql = "_1u9qprb1", ec = "_9aen060", tc = "_9aen061", nc = "_9aen062", Ur = "_9aen063";
1989
+ const rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1985
1990
  __proto__: null,
1986
- groupRow: tc,
1987
- item: Vr,
1988
- trendRow: ec,
1989
- valueRow: Ql
1990
- }, Symbol.toStringTag, { value: "Module" })), rc = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1991
+ groupRow: nc,
1992
+ item: Ur,
1993
+ trendRow: tc,
1994
+ valueRow: ec
1995
+ }, Symbol.toStringTag, { value: "Module" })), oc = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ m("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1991
1996
  /* @__PURE__ */ a("path", { d: "m5 12 7-7 7 7" }),
1992
1997
  /* @__PURE__ */ a("path", { d: "M12 19V5" })
1993
- ] }) }), oc = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ a("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ a("path", { d: "M5 12h14" }) }) });
1994
- var Ur = "n7clvo0", ac = "n7clvo1", ic = "n7clvo2", sc = "n7clvo3", Yr = { small: "n7clvo4", medium: "n7clvo5", large: "n7clvo6" }, lc = { small: "n7clvo7", medium: "n7clvo8", large: "n7clvo9" }, cc = { up: "n7clvoa", down: "n7clvob", flat: "n7clvoc" }, dc = { up: "n7clvoe n7clvod", down: "n7clvof n7clvod", flat: "n7clvog n7clvod" };
1995
- const uc = ({ segment: e, resolvedSize: t }) => {
1998
+ ] }) }), ac = (e) => /* @__PURE__ */ a(Z, { ...e, children: /* @__PURE__ */ a("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ a("path", { d: "M5 12h14" }) }) });
1999
+ var Yr = "n7clvo0", ic = "n7clvo1", sc = "n7clvo2", lc = "n7clvo3", jr = { small: "n7clvo4", medium: "n7clvo5", large: "n7clvo6" }, cc = { small: "n7clvo7", medium: "n7clvo8", large: "n7clvo9" }, dc = { up: "n7clvoa", down: "n7clvob", flat: "n7clvoc" }, uc = { up: "n7clvoe n7clvod", down: "n7clvof n7clvod", flat: "n7clvog n7clvod" };
2000
+ const hc = ({ segment: e, resolvedSize: t }) => {
1996
2001
  if (e.kind === "swatch")
1997
2002
  return /* @__PURE__ */ a(Ye, { shape: e.swatch.shape, color: e.swatch.color, width: e.size, height: e.size });
1998
2003
  if (e.kind === "trendArrow")
1999
- return /* @__PURE__ */ a("div", { className: dc[e.direction], children: e.direction === "flat" ? /* @__PURE__ */ a(oc, { size: "xs", title: "" }) : /* @__PURE__ */ a(rc, { size: "xs", title: "" }) });
2000
- const n = e.fontRole === "value" ? Yr[t] : lc[t];
2001
- return /* @__PURE__ */ a("span", { className: ce(hc(e), n), children: e.text });
2002
- }, hc = (e) => {
2004
+ return /* @__PURE__ */ a("div", { className: uc[e.direction], children: e.direction === "flat" ? /* @__PURE__ */ a(ac, { size: "xs", title: "" }) : /* @__PURE__ */ a(oc, { size: "xs", title: "" }) });
2005
+ const n = e.fontRole === "value" ? jr[t] : cc[t];
2006
+ return /* @__PURE__ */ a("span", { className: ce(gc(e), n), children: e.text });
2007
+ }, gc = (e) => {
2003
2008
  switch (e.textRole) {
2004
2009
  case "value":
2005
- return Ur;
2010
+ return Yr;
2006
2011
  case "observation":
2007
- return ac;
2012
+ return ic;
2008
2013
  case "trendPercentage":
2009
- return cc[e.trendDirection ?? "up"];
2014
+ return dc[e.trendDirection ?? "up"];
2010
2015
  case "trendReference":
2011
- return ic;
2012
- case "label":
2013
2016
  return sc;
2017
+ case "label":
2018
+ return lc;
2014
2019
  }
2015
- }, gc = ({ item: e, resolvedSize: t }) => /* @__PURE__ */ a("div", { className: Vr, children: pn(e).map((n) => /* @__PURE__ */ a(pc, { row: n, resolvedSize: t }, n.role)) }), pc = ({ row: e, resolvedSize: t }) => {
2020
+ }, pc = ({ item: e, resolvedSize: t }) => /* @__PURE__ */ a("div", { className: Ur, children: fn(e).map((n) => /* @__PURE__ */ a(fc, { row: n, resolvedSize: t }, n.role)) }), fc = ({ row: e, resolvedSize: t }) => {
2016
2021
  const n = e.role === "trendRow";
2017
2022
  return /* @__PURE__ */ a(
2018
2023
  "div",
2019
2024
  {
2020
- className: nc[e.role],
2025
+ className: rc[e.role],
2021
2026
  "data-testid": n ? "headline-trend" : void 0,
2022
- "data-direction": n ? fc(e) : void 0,
2027
+ "data-direction": n ? mc(e) : void 0,
2023
2028
  role: n ? "img" : void 0,
2024
2029
  "aria-label": n ? e.ariaLabel : void 0,
2025
- children: e.segments.map((r, o) => /* @__PURE__ */ a(uc, { segment: r, resolvedSize: t }, o))
2030
+ children: e.segments.map((r, o) => /* @__PURE__ */ a(hc, { segment: r, resolvedSize: t }, o))
2026
2031
  }
2027
2032
  );
2028
- }, fc = (e) => {
2033
+ }, mc = (e) => {
2029
2034
  const t = e.segments.find((n) => n.kind === "trendArrow");
2030
2035
  return t?.kind === "trendArrow" ? t.direction : void 0;
2031
- }, mc = ({ headline: e, rect: t, resolvedSize: n, visibleItemCount: r }) => {
2036
+ }, vc = ({ headline: e, rect: t, resolvedSize: n, visibleItemCount: r }) => {
2032
2037
  const o = {
2033
2038
  left: t.x,
2034
2039
  top: t.y,
2035
2040
  width: t.width,
2036
2041
  height: t.height
2037
2042
  };
2038
- return e.kind === "grandTotal" ? /* @__PURE__ */ a("div", { className: Zl, style: o, children: /* @__PURE__ */ a("span", { className: ce(Ur, Yr[n]), children: e.value }) }) : /* @__PURE__ */ a("div", { className: Jl, style: o, children: e.items.slice(0, r).map((i, c) => /* @__PURE__ */ a(gc, { item: i, resolvedSize: n }, `${i.label}-${c}`)) });
2043
+ return e.kind === "grandTotal" ? /* @__PURE__ */ a("div", { className: Ql, style: o, children: /* @__PURE__ */ a("span", { className: ce(Yr, jr[n]), children: e.value }) }) : /* @__PURE__ */ a("div", { className: Zl, style: o, children: e.items.slice(0, r).map((i, c) => /* @__PURE__ */ a(pc, { item: i, resolvedSize: n }, `${i.label}-${c}`)) });
2039
2044
  };
2040
- var vc = "_1oj6yix0", yc = "_1oj6yix1", bc = "_1oj6yix2";
2041
- const xc = 8, Sc = 16, kc = 2, Lc = ({ legends: e, containerRect: t, textScale: n }) => {
2042
- const { lineBoxHeight: r } = Tr(n), { placements: o, hasOverlap: i } = Cc(e, t, r);
2045
+ var yc = "_1oj6yix0", bc = "_1oj6yix1", xc = "_1oj6yix2";
2046
+ const Sc = 8, kc = 16, Lc = 2, Cc = ({ legends: e, containerRect: t, textScale: n }) => {
2047
+ const { lineBoxHeight: r } = wr(n), { placements: o, hasOverlap: i } = Tc(e, t, r);
2043
2048
  if (o.length === 0) return null;
2044
- const c = i ? Sc : xc, l = c - kc;
2045
- return /* @__PURE__ */ m("div", { className: vc, children: [
2046
- i && /* @__PURE__ */ a("svg", { className: yc, width: t.width, height: t.height, children: o.map((d) => /* @__PURE__ */ a(
2047
- Tc,
2049
+ const c = i ? kc : Sc, l = c - Lc;
2050
+ return /* @__PURE__ */ m("div", { className: yc, children: [
2051
+ i && /* @__PURE__ */ a("svg", { className: bc, width: t.width, height: t.height, children: o.map((d) => /* @__PURE__ */ a(
2052
+ wc,
2048
2053
  {
2049
2054
  anchorY: d.anchorY,
2050
2055
  labelY: d.y,
@@ -2056,14 +2061,14 @@ const xc = 8, Sc = 16, kc = 2, Lc = ({ legends: e, containerRect: t, textScale:
2056
2061
  o.map((d) => /* @__PURE__ */ a(
2057
2062
  "span",
2058
2063
  {
2059
- className: bc,
2064
+ className: xc,
2060
2065
  style: { left: c, top: d.y, color: d.payload.color },
2061
2066
  children: d.payload.label
2062
2067
  },
2063
2068
  d.payload.key
2064
2069
  ))
2065
2070
  ] });
2066
- }, Cc = (e, t, n) => v(() => {
2071
+ }, Tc = (e, t, n) => v(() => {
2067
2072
  const r = [];
2068
2073
  for (const o of e)
2069
2074
  for (const i of o.items) {
@@ -2074,12 +2079,12 @@ const xc = 8, Sc = 16, kc = 2, Lc = ({ legends: e, containerRect: t, textScale:
2074
2079
  payload: { key: String(r.length), label: i.formattedLabel, color: c }
2075
2080
  });
2076
2081
  }
2077
- return r.length === 0 || t.height <= 0 ? { placements: [], hasOverlap: !1 } : No({
2082
+ return r.length === 0 || t.height <= 0 ? { placements: [], hasOverlap: !1 } : Bo({
2078
2083
  items: r,
2079
2084
  containerHeight: t.height,
2080
2085
  labelHeight: n
2081
2086
  });
2082
- }, [e, t.height, n]), Tc = ({ anchorY: e, labelY: t, endX: n, color: r }) => {
2087
+ }, [e, t.height, n]), wc = ({ anchorY: e, labelY: t, endX: n, color: r }) => {
2083
2088
  const o = n / 2;
2084
2089
  return /* @__PURE__ */ a(
2085
2090
  "path",
@@ -2092,8 +2097,8 @@ const xc = 8, Sc = 16, kc = 2, Lc = ({ legends: e, containerRect: t, textScale:
2092
2097
  }
2093
2098
  );
2094
2099
  };
2095
- var wc = "_6a636s0";
2096
- const Ac = /\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu, jr = "😀";
2100
+ var Ac = "_6a636s0";
2101
+ const Ec = /\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu, qr = "😀";
2097
2102
  class Ht {
2098
2103
  constructor() {
2099
2104
  this.emojiCorrections = /* @__PURE__ */ new Map(), this.currentFont = "";
@@ -2116,11 +2121,11 @@ class Ht {
2116
2121
  return typeof document < "u" && "fonts" in document && await document.fonts.ready, new Ht();
2117
2122
  }
2118
2123
  measureText(t, n) {
2119
- const r = Bo(n);
2124
+ const r = Io(n);
2120
2125
  this.setFont(r);
2121
2126
  const { width: o, fontBoundingBoxAscent: i, fontBoundingBoxDescent: c } = this.ctx.measureText(t);
2122
2127
  let l = o;
2123
- const d = Ec(t);
2128
+ const d = _c(t);
2124
2129
  if (d > 0) {
2125
2130
  const u = this.getEmojiCorrection(r);
2126
2131
  l -= u * d;
@@ -2148,7 +2153,7 @@ class Ht {
2148
2153
  const n = this.emojiCorrections.get(t);
2149
2154
  if (n !== void 0) return n;
2150
2155
  this.setFont(t);
2151
- const r = this.ctx.measureText(jr).width, o = _c(t);
2156
+ const r = this.ctx.measureText(qr).width, o = Pc(t);
2152
2157
  let i = 0;
2153
2158
  if (o !== null) {
2154
2159
  const c = r - o;
@@ -2158,19 +2163,19 @@ class Ht {
2158
2163
  }
2159
2164
  }
2160
2165
  let q = null;
2161
- const Ec = (e) => {
2162
- const t = e.match(Ac);
2166
+ const _c = (e) => {
2167
+ const t = e.match(Ec);
2163
2168
  return t ? t.length : 0;
2164
- }, _c = (e) => {
2165
- const t = Pc();
2169
+ }, Pc = (e) => {
2170
+ const t = Hc();
2166
2171
  return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
2167
- }, Pc = () => typeof document > "u" ? null : (q || (q = document.createElement("span"), q.style.position = "absolute", q.style.visibility = "hidden", q.style.whiteSpace = "nowrap", q.style.left = "-9999px", q.textContent = jr, document.body.appendChild(q)), q), qr = fe(null), Hc = ({ children: e, measurer: t }) => {
2172
+ }, Hc = () => typeof document > "u" ? null : (q || (q = document.createElement("span"), q.style.position = "absolute", q.style.visibility = "hidden", q.style.whiteSpace = "nowrap", q.style.left = "-9999px", q.textContent = qr, document.body.appendChild(q)), q), Kr = fe(null), Fc = ({ children: e, measurer: t }) => {
2168
2173
  const [n, r] = E(null);
2169
2174
  L(() => {
2170
2175
  if (t !== void 0) return;
2171
2176
  let i = !1;
2172
2177
  const c = () => {
2173
- i || r(Fc());
2178
+ i || r(Nc());
2174
2179
  };
2175
2180
  return (async () => {
2176
2181
  typeof document < "u" && "fonts" in document && await document.fonts.ready, c();
@@ -2179,21 +2184,21 @@ const Ec = (e) => {
2179
2184
  };
2180
2185
  }, [t]);
2181
2186
  const o = t ?? n;
2182
- return o === null ? null : /* @__PURE__ */ a(qr.Provider, { value: o, children: e });
2187
+ return o === null ? null : /* @__PURE__ */ a(Kr.Provider, { value: o, children: e });
2183
2188
  }, ve = () => {
2184
- const e = ee(qr);
2189
+ const e = ee(Kr);
2185
2190
  if (e === null)
2186
2191
  throw new Error("useTextMeasurer must be used inside a <TextMeasurerProvider>.");
2187
2192
  return e;
2188
- }, Fc = () => {
2193
+ }, Nc = () => {
2189
2194
  try {
2190
2195
  return new It(new Ht());
2191
2196
  } catch {
2192
- return new It(new Io());
2197
+ return new It(new Mo());
2193
2198
  }
2194
2199
  };
2195
- var Nc = "_1kjk02r0", Bc = "_1kjk02r1", Ic = "_1kjk02r2", Mc = "_1kjk02r3", Dc = "_1kjk02r4", Oc = "_1kjk02r5", Rc = "_1kjk02r6", zc = "_1kjk02r7", Gc = "_1kjk02r8", Wc = "_1kjk02r9", $c = "_1kjk02ra", Xc = "_1kjk02rb", Vc = "_1dw9dgx0";
2196
- const Uc = "#9ca3af", nt = "\0", Yc = (e) => {
2200
+ var Bc = "_1kjk02r0", Ic = "_1kjk02r1", Mc = "_1kjk02r2", Dc = "_1kjk02r3", Oc = "_1kjk02r4", Rc = "_1kjk02r5", zc = "_1kjk02r6", Gc = "_1kjk02r7", Wc = "_1kjk02r8", $c = "_1kjk02r9", Xc = "_1kjk02ra", Vc = "_1kjk02rb", Uc = "_1dw9dgx0";
2201
+ const Yc = "#9ca3af", nt = "\0", jc = (e) => {
2197
2202
  const t = [];
2198
2203
  return e.forEach((n, r) => {
2199
2204
  const o = n.aesthetics.includes("size");
@@ -2213,29 +2218,29 @@ const Uc = "#9ca3af", nt = "\0", Yc = (e) => {
2213
2218
  });
2214
2219
  }
2215
2220
  }), t;
2216
- }, Kr = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ a(Kc, { pill: e }) : /* @__PURE__ */ a(qc, { pill: e }), jc = ({ color: e, lineType: t, shape: n }) => {
2221
+ }, Jr = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ a(Jc, { pill: e }) : /* @__PURE__ */ a(Kc, { pill: e }), qc = ({ color: e, lineType: t, shape: n }) => {
2217
2222
  const { legendSwatchWidth: r, legendSwatchHeight: o } = wt();
2218
2223
  return e ? /* @__PURE__ */ a(Ye, { shape: n, color: e, lineType: t, width: r, height: o }) : null;
2219
- }, qc = ({ pill: e }) => /* @__PURE__ */ m(T, { children: [
2220
- /* @__PURE__ */ a(jc, { color: e.visual.color, lineType: e.primaryLineType, shape: e.swatchShape }),
2224
+ }, Kc = ({ pill: e }) => /* @__PURE__ */ m(T, { children: [
2225
+ /* @__PURE__ */ a(qc, { color: e.visual.color, lineType: e.primaryLineType, shape: e.swatchShape }),
2221
2226
  /* @__PURE__ */ a("span", { children: e.formattedLabel })
2222
- ] }), Kc = ({ pill: e }) => {
2227
+ ] }), Jc = ({ pill: e }) => {
2223
2228
  const t = Number(e.visual.size);
2224
2229
  return /* @__PURE__ */ m(T, { children: [
2225
2230
  /* @__PURE__ */ a(
2226
2231
  "span",
2227
2232
  {
2228
- className: Vc,
2233
+ className: Uc,
2229
2234
  style: {
2230
2235
  width: t,
2231
2236
  height: t,
2232
- backgroundColor: e.visual.color ?? Uc
2237
+ backgroundColor: e.visual.color ?? Yc
2233
2238
  }
2234
2239
  }
2235
2240
  ),
2236
2241
  /* @__PURE__ */ a("span", { children: e.formattedLabel })
2237
2242
  ] });
2238
- }, Jc = ({ hiddenPills: e, placement: t }) => {
2243
+ }, Zc = ({ hiddenPills: e, placement: t }) => {
2239
2244
  const n = J(), [r, o] = E(!1), { refs: i, floatingStyles: c } = xt({
2240
2245
  open: r,
2241
2246
  placement: t,
@@ -2255,25 +2260,25 @@ const Uc = "#9ca3af", nt = "\0", Yc = (e) => {
2255
2260
  document.removeEventListener("pointerdown", h), document.removeEventListener("keydown", g);
2256
2261
  };
2257
2262
  }, [r, i.floating, i.reference]);
2258
- const l = t === "left" || t === "right", d = Math.min(e.length - 1, ar), u = Array.from({ length: d }, (h, g) => d - g);
2263
+ const l = t === "left" || t === "right", d = Math.min(e.length - 1, ir), u = Array.from({ length: d }, (h, g) => d - g);
2259
2264
  return /* @__PURE__ */ m(T, { children: [
2260
2265
  /* @__PURE__ */ m(
2261
2266
  "div",
2262
2267
  {
2263
2268
  ref: i.setReference,
2264
- className: ce(Nc, {
2265
- [Ic]: l,
2266
- [Bc]: !l
2269
+ className: ce(Bc, {
2270
+ [Mc]: l,
2271
+ [Ic]: !l
2267
2272
  }),
2268
2273
  children: [
2269
2274
  u.map((h) => /* @__PURE__ */ a(
2270
2275
  "span",
2271
2276
  {
2272
- className: ce(Mc, {
2273
- [Oc]: l,
2274
- [Dc]: !l
2277
+ className: ce(Dc, {
2278
+ [Rc]: l,
2279
+ [Oc]: !l
2275
2280
  }),
2276
- style: Zc(h, l),
2281
+ style: Qc(h, l),
2277
2282
  "aria-hidden": !0
2278
2283
  },
2279
2284
  h
@@ -2282,12 +2287,12 @@ const Uc = "#9ca3af", nt = "\0", Yc = (e) => {
2282
2287
  "button",
2283
2288
  {
2284
2289
  type: "button",
2285
- className: ce(Rc, { [zc]: r }),
2290
+ className: ce(zc, { [Gc]: r }),
2286
2291
  onClick: () => o((h) => !h),
2287
2292
  "aria-haspopup": "dialog",
2288
2293
  "aria-expanded": r,
2289
2294
  "aria-label": `Show ${e.length} hidden legend ${e.length === 1 ? "item" : "items"}`,
2290
- children: /* @__PURE__ */ m("span", { className: Gc, children: [
2295
+ children: /* @__PURE__ */ m("span", { className: Wc, children: [
2291
2296
  "+",
2292
2297
  e.length
2293
2298
  ] })
@@ -2302,30 +2307,30 @@ const Uc = "#9ca3af", nt = "\0", Yc = (e) => {
2302
2307
  ref: i.setFloating,
2303
2308
  role: "dialog",
2304
2309
  "aria-label": n("graph.legend.hiddenItems"),
2305
- className: Wc,
2310
+ className: $c,
2306
2311
  style: c,
2307
- children: /* @__PURE__ */ a("ul", { className: $c, children: e.map((h) => /* @__PURE__ */ a("li", { className: Xc, children: /* @__PURE__ */ a(Kr, { pill: h }) }, h.key)) })
2312
+ children: /* @__PURE__ */ a("ul", { className: Xc, children: e.map((h) => /* @__PURE__ */ a("li", { className: Vc, children: /* @__PURE__ */ a(Jr, { pill: h }) }, h.key)) })
2308
2313
  }
2309
2314
  )
2310
2315
  ] });
2311
- }, Zc = (e, t) => {
2312
- const n = -e * ir;
2316
+ }, Qc = (e, t) => {
2317
+ const n = -e * sr;
2313
2318
  return { transform: t ? `translateY(${n}px)` : `translateX(${n}px)` };
2314
2319
  };
2315
- var Qc = "_1cecisi0", ed = "_1cecisi1", td = "_1cecisi2", nd = "_1cecisi3";
2316
- const rd = ({
2320
+ var ed = "_1cecisi0", td = "_1cecisi1", nd = "_1cecisi2", rd = "_1cecisi3";
2321
+ const od = ({
2317
2322
  edge: e,
2318
2323
  formattedLegends: t,
2319
2324
  containerWidth: n,
2320
2325
  containerHeight: r,
2321
2326
  textScale: o
2322
2327
  }) => {
2323
- const i = ve(), c = wt(), l = v(() => Yc(t), [t]), d = e === "left" || e === "right", u = d ? r : n, h = v(() => {
2328
+ const i = ve(), c = wt(), l = v(() => jc(t), [t]), d = e === "left" || e === "right", u = d ? r : n, h = v(() => {
2324
2329
  if (l.length === 0) return { visibleCount: 0, hasOverflow: !1 };
2325
2330
  if (u <= 0) return { visibleCount: l.length, hasOverflow: !1 };
2326
- const y = te(sr, o), S = { family: cr, size: y }, k = y * lr, w = ($) => d ? od($, k, c) : Zt({
2327
- label: $.formattedLabel,
2328
- swatchInlineSize: ad($, c.legendSwatchWidth),
2331
+ const y = te(lr, o), S = { family: dr, size: y }, k = y * cr, w = (V) => d ? ad(V, k, c) : Zt({
2332
+ label: V.formattedLabel,
2333
+ swatchInlineSize: id(V, c.legendSwatchWidth),
2329
2334
  textMeasurer: i,
2330
2335
  font: S,
2331
2336
  swatchGap: c.legendSwatchGap,
@@ -2337,8 +2342,8 @@ const rd = ({
2337
2342
  font: S,
2338
2343
  swatchGap: c.legendSwatchGap,
2339
2344
  horizontalChrome: c.legendPillHorizontalChrome
2340
- })) + Si;
2341
- return sd({
2345
+ })) + ki;
2346
+ return ld({
2342
2347
  pillSizes: A,
2343
2348
  overflowPillSize: _,
2344
2349
  containerSize: u,
@@ -2350,13 +2355,13 @@ const rd = ({
2350
2355
  return /* @__PURE__ */ m(
2351
2356
  "div",
2352
2357
  {
2353
- className: ce(Qc, {
2354
- [td]: d,
2355
- [ed]: !d
2358
+ className: ce(ed, {
2359
+ [nd]: d,
2360
+ [td]: !d
2356
2361
  }),
2357
2362
  children: [
2358
- g.map((y) => /* @__PURE__ */ a("div", { className: nd, children: /* @__PURE__ */ a(Kr, { pill: y }) }, y.key)),
2359
- f && /* @__PURE__ */ a(Jc, { hiddenPills: p, placement: ld(e) })
2363
+ g.map((y) => /* @__PURE__ */ a("div", { className: rd, children: /* @__PURE__ */ a(Jr, { pill: y }) }, y.key)),
2364
+ f && /* @__PURE__ */ a(Zc, { hiddenPills: p, placement: cd(e) })
2360
2365
  ]
2361
2366
  }
2362
2367
  );
@@ -2370,10 +2375,10 @@ const rd = ({
2370
2375
  }) => {
2371
2376
  const c = n.measureText(e, r).width, l = t > 0 ? o : 0;
2372
2377
  return t + l + c + i;
2373
- }, od = (e, t, n) => {
2374
- const r = id(e, n.legendSwatchHeight);
2378
+ }, ad = (e, t, n) => {
2379
+ const r = sd(e, n.legendSwatchHeight);
2375
2380
  return Math.max(t, r) + n.legendPillVerticalChrome;
2376
- }, ad = (e, t) => e.isBubble ? Number(e.visual.size) : wr(e.visual.color, t), id = (e, t) => e.isBubble ? Number(e.visual.size) : t, sd = ({
2381
+ }, id = (e, t) => e.isBubble ? Number(e.visual.size) : Ar(e.visual.color, t), sd = (e, t) => e.isBubble ? Number(e.visual.size) : t, ld = ({
2377
2382
  pillSizes: e,
2378
2383
  overflowPillSize: t,
2379
2384
  containerSize: n,
@@ -2392,7 +2397,7 @@ const rd = ({
2392
2397
  i = d, c += 1;
2393
2398
  }
2394
2399
  return { visibleCount: c, hasOverflow: !0 };
2395
- }, ld = (e) => {
2400
+ }, cd = (e) => {
2396
2401
  switch (e) {
2397
2402
  case "top":
2398
2403
  return "bottom";
@@ -2403,7 +2408,7 @@ const rd = ({
2403
2408
  case "right":
2404
2409
  return "left";
2405
2410
  }
2406
- }, cd = oe(function({ formattedLegends: t, rects: n, textScale: r }) {
2411
+ }, dd = oe(function({ formattedLegends: t, rects: n, textScale: r }) {
2407
2412
  const o = v(() => {
2408
2413
  const i = /* @__PURE__ */ new Map();
2409
2414
  for (const c of t) {
@@ -2417,7 +2422,7 @@ const rd = ({
2417
2422
  return l === void 0 ? null : /* @__PURE__ */ m(
2418
2423
  "div",
2419
2424
  {
2420
- className: wc,
2425
+ className: Ac,
2421
2426
  style: {
2422
2427
  left: l.x,
2423
2428
  top: l.y,
@@ -2426,7 +2431,7 @@ const rd = ({
2426
2431
  },
2427
2432
  children: [
2428
2433
  /* @__PURE__ */ a(
2429
- rd,
2434
+ od,
2430
2435
  {
2431
2436
  edge: i,
2432
2437
  formattedLegends: c.pill,
@@ -2435,17 +2440,17 @@ const rd = ({
2435
2440
  textScale: r
2436
2441
  }
2437
2442
  ),
2438
- /* @__PURE__ */ a(Lc, { legends: c.direct, containerRect: l, textScale: r })
2443
+ /* @__PURE__ */ a(Cc, { legends: c.direct, containerRect: l, textScale: r })
2439
2444
  ]
2440
2445
  },
2441
2446
  i
2442
2447
  );
2443
2448
  }) });
2444
2449
  });
2445
- const Ft = 1, Jr = 8, dd = 12;
2450
+ const Ft = 1, Zr = 8, ud = 12;
2446
2451
  s.pointStrokeColor;
2447
- const ud = 1, hd = 2, gd = 0.7, pe = ({ hit: e }) => {
2448
- const t = z(e.observation), n = (W(e.observation) ?? Ft) * gd, r = (Re(e.observation) ?? Jr) / 2;
2452
+ const hd = 1, gd = 2, pd = 0.7, pe = ({ hit: e }) => {
2453
+ const t = z(e.observation), n = (X(e.observation) ?? Ft) * pd, r = (Re(e.observation) ?? Zr) / 2;
2449
2454
  return /* @__PURE__ */ a(
2450
2455
  "circle",
2451
2456
  {
@@ -2455,20 +2460,20 @@ const ud = 1, hd = 2, gd = 0.7, pe = ({ hit: e }) => {
2455
2460
  fill: t,
2456
2461
  opacity: n,
2457
2462
  stroke: s.hoveredPointRingColor,
2458
- strokeWidth: hd,
2463
+ strokeWidth: gd,
2459
2464
  "data-testid": "companion-point"
2460
2465
  }
2461
2466
  );
2462
- }, Zr = 0.3, Qr = 1, O = {
2467
+ }, Qr = 0.3, eo = 1, O = {
2463
2468
  type: "spring",
2464
2469
  stiffness: 500,
2465
2470
  damping: 60,
2466
2471
  mass: 1
2467
2472
  }, pt = (e, t) => {
2468
- const n = Tn(e);
2473
+ const n = wn(e);
2469
2474
  return L(() => {
2470
- const r = ua(n.get(), e);
2471
- Jo(0, 1, {
2475
+ const r = ha(n.get(), e);
2476
+ Zo(0, 1, {
2472
2477
  ...t,
2473
2478
  onUpdate: (o) => {
2474
2479
  const i = r(o);
@@ -2478,30 +2483,30 @@ const ud = 1, hd = 2, gd = 0.7, pe = ({ hit: e }) => {
2478
2483
  }, [t, e, n]), n;
2479
2484
  };
2480
2485
  var ye = "_1d8mpa10";
2481
- const pd = oe(function({
2486
+ const fd = oe(function({
2482
2487
  layer: t,
2483
2488
  coordSystem: n,
2484
2489
  isAnimated: r
2485
2490
  }) {
2486
2491
  const { lineGenerator: o, areaGenerator: i } = v(
2487
- () => mn(n, t.params),
2492
+ () => vn(n, t.params),
2488
2493
  [t.params, n]
2489
2494
  ), c = v(() => {
2490
2495
  const l = We(t.data, t.mapping, t.id), d = [];
2491
- return t.data.groupBy(we.group).forEach((u) => {
2492
- const h = vn([...u], t.params.missingValues), g = i(h), p = o(h);
2496
+ return t.data.groupBy(Ae.group).forEach((u) => {
2497
+ const h = yn([...u], t.params.missingValues), g = i(h), p = o(h);
2493
2498
  if (!g || !p) return;
2494
2499
  const f = h[0];
2495
2500
  if (!f) return;
2496
- const y = z(f), S = W(f), k = $e(f, t.params), w = Xe(Ve(f));
2501
+ const y = z(f), S = X(f), k = $e(f, t.params), w = Xe(Ve(f));
2497
2502
  d.push({
2498
2503
  key: l(f),
2499
2504
  areaPath: g,
2500
2505
  linePath: p,
2501
2506
  color: y,
2502
- fillOpacity: S ?? Zr,
2507
+ fillOpacity: S ?? Qr,
2503
2508
  strokeWidth: k,
2504
- strokeOpacity: Qr,
2509
+ strokeOpacity: eo,
2505
2510
  strokeDasharray: w
2506
2511
  });
2507
2512
  }), d;
@@ -2516,7 +2521,7 @@ const pd = oe(function({
2516
2521
  "data-geom": "area",
2517
2522
  className: ye,
2518
2523
  children: c.map((l) => /* @__PURE__ */ a(
2519
- fd,
2524
+ md,
2520
2525
  {
2521
2526
  areaPath: l.areaPath,
2522
2527
  linePath: l.linePath,
@@ -2531,7 +2536,7 @@ const pd = oe(function({
2531
2536
  ))
2532
2537
  }
2533
2538
  );
2534
- }), fd = ({
2539
+ }), md = ({
2535
2540
  areaPath: e,
2536
2541
  linePath: t,
2537
2542
  color: n,
@@ -2541,7 +2546,7 @@ const pd = oe(function({
2541
2546
  strokeDasharray: c,
2542
2547
  isAnimated: l
2543
2548
  }) => l ? /* @__PURE__ */ a(
2544
- md,
2549
+ vd,
2545
2550
  {
2546
2551
  areaPath: e,
2547
2552
  linePath: t,
@@ -2565,7 +2570,7 @@ const pd = oe(function({
2565
2570
  vectorEffect: "non-scaling-stroke"
2566
2571
  }
2567
2572
  )
2568
- ] }), md = ({
2573
+ ] }), vd = ({
2569
2574
  areaPath: e,
2570
2575
  linePath: t,
2571
2576
  color: n,
@@ -2591,10 +2596,10 @@ const pd = oe(function({
2591
2596
  )
2592
2597
  ] });
2593
2598
  };
2594
- var vd = "_46ebsf0";
2595
- const rt = 1, yd = 2, bd = 1, xd = dd / 2, Sd = 2.25, Nt = ({ hit: e, ...t }) => {
2596
- const n = kd(e.observation), r = z(e.observation), o = W(e.observation) ?? Ft, i = x(Ge(e.x)), c = x(ze(e.y)), d = n + rt / 2 + bd + rt / 2;
2597
- return /* @__PURE__ */ m("g", { ...t, className: vd, children: [
2599
+ var yd = "_46ebsf0";
2600
+ const rt = 1, bd = 2, xd = 1, Sd = ud / 2, kd = 2.25, Nt = ({ hit: e, ...t }) => {
2601
+ const n = Ld(e.observation), r = z(e.observation), o = X(e.observation) ?? Ft, i = x(Ge(e.x)), c = x(ze(e.y)), d = n + rt / 2 + xd + rt / 2;
2602
+ return /* @__PURE__ */ m("g", { ...t, className: yd, children: [
2598
2603
  /* @__PURE__ */ a(
2599
2604
  "circle",
2600
2605
  {
@@ -2603,7 +2608,7 @@ const rt = 1, yd = 2, bd = 1, xd = dd / 2, Sd = 2.25, Nt = ({ hit: e, ...t }) =>
2603
2608
  r: d,
2604
2609
  fill: "none",
2605
2610
  stroke: s.hoveredPointRingColor,
2606
- strokeWidth: yd
2611
+ strokeWidth: bd
2607
2612
  }
2608
2613
  ),
2609
2614
  /* @__PURE__ */ a(
@@ -2619,22 +2624,22 @@ const rt = 1, yd = 2, bd = 1, xd = dd / 2, Sd = 2.25, Nt = ({ hit: e, ...t }) =>
2619
2624
  }
2620
2625
  )
2621
2626
  ] });
2622
- }, kd = (e) => {
2627
+ }, Ld = (e) => {
2623
2628
  const t = Re(e);
2624
- return yn(t) ? t / Sd : xd;
2625
- }, Ld = ({ layer: e, coordSystem: t, primary: n, companions: r }) => {
2626
- const o = bn(n.observation), i = v(() => {
2627
- const p = e.data.filter(we.group, "eq", o);
2628
- return vn([...p], e.params.missingValues);
2629
+ return bn(t) ? t / kd : Sd;
2630
+ }, Cd = ({ layer: e, coordSystem: t, primary: n, companions: r }) => {
2631
+ const o = xn(n.observation), i = v(() => {
2632
+ const p = e.data.filter(Ae.group, "eq", o);
2633
+ return yn([...p], e.params.missingValues);
2629
2634
  }, [e.data, e.params.missingValues, o]), { areaPath: c, linePath: l } = v(() => {
2630
- const { lineGenerator: p, areaGenerator: f } = mn(t, e.params);
2635
+ const { lineGenerator: p, areaGenerator: f } = vn(t, e.params);
2631
2636
  return {
2632
2637
  areaPath: f(i) ?? "",
2633
2638
  linePath: p(i) ?? ""
2634
2639
  };
2635
2640
  }, [t, e.params, i]);
2636
2641
  if (!c || !l) return null;
2637
- const d = z(n.observation), u = W(n.observation) ?? Zr, h = $e(n.observation, e.params), g = Xe(Ve(n.observation));
2642
+ const d = z(n.observation), u = X(n.observation) ?? Qr, h = $e(n.observation, e.params), g = Xe(Ve(n.observation));
2638
2643
  return /* @__PURE__ */ m("g", { "data-testid": "hovered-area", children: [
2639
2644
  /* @__PURE__ */ m(
2640
2645
  "svg",
@@ -2654,7 +2659,7 @@ const rt = 1, yd = 2, bd = 1, xd = dd / 2, Sd = 2.25, Nt = ({ hit: e, ...t }) =>
2654
2659
  fill: "none",
2655
2660
  stroke: d,
2656
2661
  strokeWidth: h,
2657
- strokeOpacity: Qr,
2662
+ strokeOpacity: eo,
2658
2663
  strokeDasharray: g,
2659
2664
  vectorEffect: "non-scaling-stroke",
2660
2665
  "data-testid": "hovered-area-edge"
@@ -2666,22 +2671,22 @@ const rt = 1, yd = 2, bd = 1, xd = dd / 2, Sd = 2.25, Nt = ({ hit: e, ...t }) =>
2666
2671
  r.map((p) => /* @__PURE__ */ a(pe, { hit: p }, `companion-${p.layerId}-${p.pointIndex}`)),
2667
2672
  /* @__PURE__ */ a(Nt, { hit: n, "data-testid": "hovered-area-point" })
2668
2673
  ] });
2669
- }, Cd = {
2674
+ }, Td = {
2670
2675
  geom: "area",
2671
2676
  coord: "cartesian",
2672
2677
  guideMode: "continuous",
2673
- render: ({ layer: e, coordSystem: t, isAnimated: n }) => /* @__PURE__ */ a(pd, { layer: e, coordSystem: t, isAnimated: n }),
2674
- renderHover: ({ layer: e, coordSystem: t, primary: n, group: r, related: o }) => /* @__PURE__ */ a(Ld, { layer: e, coordSystem: t, primary: n, companions: [...r, ...o] }),
2678
+ render: ({ layer: e, coordSystem: t, isAnimated: n }) => /* @__PURE__ */ a(fd, { layer: e, coordSystem: t, isAnimated: n }),
2679
+ renderHover: ({ layer: e, coordSystem: t, primary: n, group: r, related: o }) => /* @__PURE__ */ a(Cd, { layer: e, coordSystem: t, primary: n, companions: [...r, ...o] }),
2675
2680
  renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ a(T, { children: e.map((t) => /* @__PURE__ */ a(pe, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
2676
2681
  getOverlayAnchor: ({ observation: e, coordSystem: t }) => {
2677
2682
  if (t.mainAxis === "x") {
2678
- const o = ue(e), i = Mo(e) ?? he(e);
2683
+ const o = ue(e), i = Do(e) ?? he(e);
2679
2684
  return o === null || i === null ? null : { x: o, y: i };
2680
2685
  }
2681
- const n = he(e), r = Do(e) ?? ue(e);
2686
+ const n = he(e), r = Oo(e) ?? ue(e);
2682
2687
  return n === null || r === null ? null : { x: r, y: n };
2683
2688
  }
2684
- }, eo = 1, Te = 4, Td = oe(function({
2689
+ }, to = 1, we = 4, wd = oe(function({
2685
2690
  layer: t,
2686
2691
  coordSystem: n,
2687
2692
  isAnimated: r
@@ -2689,29 +2694,29 @@ const rt = 1, yd = 2, bd = 1, xd = dd / 2, Sd = 2.25, Nt = ({ hit: e, ...t }) =>
2689
2694
  const o = vt(), i = v(() => {
2690
2695
  const l = We(t.data, t.mapping, t.id), d = /* @__PURE__ */ new Map();
2691
2696
  for (const u of t.data) {
2692
- const h = xn(n.mainAxis, u);
2697
+ const h = Sn(n.mainAxis, u);
2693
2698
  if (!h) continue;
2694
- const g = Ad(n.mainAxis, h), p = d.get(g), f = {
2699
+ const g = Ed(n.mainAxis, h), p = d.get(g), f = {
2695
2700
  key: l(u),
2696
2701
  ...h,
2697
2702
  fill: z(u),
2698
- opacity: W(u) ?? eo
2703
+ opacity: X(u) ?? to
2699
2704
  };
2700
2705
  p ? p.push(f) : d.set(g, [f]);
2701
2706
  }
2702
2707
  return [...d.entries()].map(([u, h]) => ({
2703
2708
  id: `${o}${u}`,
2704
2709
  bars: h,
2705
- ...Ed(h)
2710
+ ..._d(h)
2706
2711
  }));
2707
2712
  }, [o, n.mainAxis, t]), c = i.filter((l) => l.bars.length > 1);
2708
2713
  return /* @__PURE__ */ m(T, { children: [
2709
- c.length > 0 && /* @__PURE__ */ a("defs", { children: c.map((l) => /* @__PURE__ */ a("clipPath", { id: l.id, children: /* @__PURE__ */ a(wd, { column: l, isAnimated: r }) }, l.id)) }),
2714
+ c.length > 0 && /* @__PURE__ */ a("defs", { children: c.map((l) => /* @__PURE__ */ a("clipPath", { id: l.id, children: /* @__PURE__ */ a(Ad, { column: l, isAnimated: r }) }, l.id)) }),
2710
2715
  i.map((l) => {
2711
2716
  const [d] = l.bars;
2712
2717
  if (l.bars.length === 1 && d !== void 0) {
2713
2718
  const { key: u, ...h } = d;
2714
- return /* @__PURE__ */ a(Qt, { ...h, rx: Te, isAnimated: r }, u);
2719
+ return /* @__PURE__ */ a(Qt, { ...h, rx: we, isAnimated: r }, u);
2715
2720
  }
2716
2721
  return /* @__PURE__ */ a("g", { clipPath: `url(#${l.id})`, children: l.bars.map((u) => {
2717
2722
  const { key: h, ...g } = u;
@@ -2748,13 +2753,13 @@ const rt = 1, yd = 2, bd = 1, xd = dd / 2, Sd = 2.25, Nt = ({ hit: e, ...t }) =>
2748
2753
  opacity: n.opacity,
2749
2754
  rx: t
2750
2755
  }
2751
- ), wd = ({ column: e, isAnimated: t }) => t ? /* @__PURE__ */ a(
2756
+ ), Ad = ({ column: e, isAnimated: t }) => t ? /* @__PURE__ */ a(
2752
2757
  Y.rect,
2753
2758
  {
2754
2759
  initial: !1,
2755
2760
  style: { transformBox: "view-box" },
2756
2761
  transition: O,
2757
- rx: Te,
2762
+ rx: we,
2758
2763
  animate: {
2759
2764
  x: x(e.x),
2760
2765
  y: x(e.y),
@@ -2769,19 +2774,19 @@ const rt = 1, yd = 2, bd = 1, xd = dd / 2, Sd = 2.25, Nt = ({ hit: e, ...t }) =>
2769
2774
  y: x(e.y),
2770
2775
  width: x(e.width),
2771
2776
  height: x(e.height),
2772
- rx: Te
2777
+ rx: we
2773
2778
  }
2774
- ), Ad = (e, t) => e === "x" ? `${t.x}-${t.width}` : `${t.y}-${t.height}`, Ed = (e) => {
2779
+ ), Ed = (e, t) => e === "x" ? `${t.x}-${t.width}` : `${t.y}-${t.height}`, _d = (e) => {
2775
2780
  let t = 1 / 0, n = 1 / 0, r = -1 / 0, o = -1 / 0;
2776
2781
  for (const i of e)
2777
2782
  i.x < t && (t = i.x), i.y < n && (n = i.y), i.x + i.width > r && (r = i.x + i.width), i.y + i.height > o && (o = i.y + i.height);
2778
2783
  return { x: t, y: n, width: r - t, height: o - n };
2779
2784
  };
2780
- var _d = "_1suo8ub0";
2781
- const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2782
- const r = xn(e.mainAxis, t.observation);
2785
+ var Pd = "_1suo8ub0";
2786
+ const Le = 3, Hd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2787
+ const r = Sn(e.mainAxis, t.observation);
2783
2788
  if (!r) return null;
2784
- const o = r.x * n.width, i = r.y * n.height, c = r.width * n.width, l = r.height * n.height, d = o - ke, u = i - ke, h = c + ke * 2, g = l + ke * 2, p = Te + ke, f = z(t.observation), y = W(t.observation) ?? eo;
2789
+ const o = r.x * n.width, i = r.y * n.height, c = r.width * n.width, l = r.height * n.height, d = o - Le, u = i - Le, h = c + Le * 2, g = l + Le * 2, p = we + Le, f = z(t.observation), y = X(t.observation) ?? to;
2785
2790
  return /* @__PURE__ */ m("g", { "data-testid": "hovered-bar", children: [
2786
2791
  /* @__PURE__ */ a(
2787
2792
  "rect",
@@ -2792,7 +2797,7 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2792
2797
  height: g,
2793
2798
  rx: p,
2794
2799
  fill: s.hoveredBarBorderColor,
2795
- className: _d,
2800
+ className: Pd,
2796
2801
  "data-testid": "hovered-bar-border"
2797
2802
  }
2798
2803
  ),
@@ -2805,35 +2810,35 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2805
2810
  height: x(r.height),
2806
2811
  fill: f,
2807
2812
  opacity: y,
2808
- rx: Te,
2813
+ rx: we,
2809
2814
  "data-testid": "hovered-bar-fill"
2810
2815
  }
2811
2816
  )
2812
2817
  ] });
2813
- }, Hd = {
2818
+ }, Fd = {
2814
2819
  geom: "bar",
2815
2820
  coord: "cartesian",
2816
2821
  guideMode: "bar",
2817
- render: ({ layer: e, coordSystem: t, isAnimated: n }) => /* @__PURE__ */ a(Td, { layer: e, coordSystem: t, isAnimated: n }),
2818
- renderHover: ({ coordSystem: e, primary: t, panelRect: n }) => /* @__PURE__ */ a(Pd, { coordSystem: e, primary: t, panelRect: n }),
2822
+ render: ({ layer: e, coordSystem: t, isAnimated: n }) => /* @__PURE__ */ a(wd, { layer: e, coordSystem: t, isAnimated: n }),
2823
+ renderHover: ({ coordSystem: e, primary: t, panelRect: n }) => /* @__PURE__ */ a(Hd, { coordSystem: e, primary: t, panelRect: n }),
2819
2824
  renderHoverCompanions: () => null
2820
- }, to = 1, Fd = oe(function({
2825
+ }, no = 1, Nd = oe(function({
2821
2826
  layer: t,
2822
2827
  isAnimated: n
2823
2828
  }) {
2824
- const r = v(() => Sn(t.params), [t.params]), o = v(() => {
2829
+ const r = v(() => kn(t.params), [t.params]), o = v(() => {
2825
2830
  const i = We(t.data, t.mapping, t.id), c = [];
2826
- return t.data.groupBy(we.group).forEach((l) => {
2827
- const d = kn([...l], t.params.missingValues), u = r(d);
2831
+ return t.data.groupBy(Ae.group).forEach((l) => {
2832
+ const d = Ln([...l], t.params.missingValues), u = r(d);
2828
2833
  if (!u) return;
2829
2834
  const h = d[0];
2830
2835
  if (!h) return;
2831
- const g = z(h), p = W(h), f = $e(h, t.params), y = Xe(Ve(h));
2836
+ const g = z(h), p = X(h), f = $e(h, t.params), y = Xe(Ve(h));
2832
2837
  c.push({
2833
2838
  key: i(h),
2834
2839
  pathData: u,
2835
2840
  color: g,
2836
- opacity: p ?? to,
2841
+ opacity: p ?? no,
2837
2842
  strokeWidth: f,
2838
2843
  strokeDasharray: y
2839
2844
  });
@@ -2849,7 +2854,7 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2849
2854
  "data-geom": "line",
2850
2855
  className: ye,
2851
2856
  children: o.map((i) => /* @__PURE__ */ a(
2852
- Nd,
2857
+ Bd,
2853
2858
  {
2854
2859
  pathData: i.pathData,
2855
2860
  color: i.color,
@@ -2862,8 +2867,8 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2862
2867
  ))
2863
2868
  }
2864
2869
  );
2865
- }), Nd = ({ pathData: e, color: t, strokeWidth: n, opacity: r, strokeDasharray: o, isAnimated: i }) => i ? /* @__PURE__ */ a(
2866
- Bd,
2870
+ }), Bd = ({ pathData: e, color: t, strokeWidth: n, opacity: r, strokeDasharray: o, isAnimated: i }) => i ? /* @__PURE__ */ a(
2871
+ Id,
2867
2872
  {
2868
2873
  pathData: e,
2869
2874
  color: t,
@@ -2882,7 +2887,7 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2882
2887
  strokeDasharray: o,
2883
2888
  vectorEffect: "non-scaling-stroke"
2884
2889
  }
2885
- ), Bd = ({
2890
+ ), Id = ({
2886
2891
  pathData: e,
2887
2892
  color: t,
2888
2893
  strokeWidth: n,
@@ -2902,13 +2907,13 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2902
2907
  vectorEffect: "non-scaling-stroke"
2903
2908
  }
2904
2909
  );
2905
- }, Id = ({ layer: e, primary: t, companions: n }) => {
2906
- const r = bn(t.observation), o = v(() => {
2907
- const h = e.data.filter(we.group, "eq", r);
2908
- return kn([...h], e.params.missingValues);
2909
- }, [e.data, e.params.missingValues, r]), i = v(() => Sn(e.params)(o), [e.params, o]);
2910
+ }, Md = ({ layer: e, primary: t, companions: n }) => {
2911
+ const r = xn(t.observation), o = v(() => {
2912
+ const h = e.data.filter(Ae.group, "eq", r);
2913
+ return Ln([...h], e.params.missingValues);
2914
+ }, [e.data, e.params.missingValues, r]), i = v(() => kn(e.params)(o), [e.params, o]);
2910
2915
  if (!i) return null;
2911
- const c = z(t.observation), l = W(t.observation) ?? to, d = $e(t.observation, e.params), u = Xe(Ve(t.observation));
2916
+ const c = z(t.observation), l = X(t.observation) ?? no, d = $e(t.observation, e.params), u = Xe(Ve(t.observation));
2912
2917
  return /* @__PURE__ */ m("g", { "data-testid": "hovered-line", children: [
2913
2918
  /* @__PURE__ */ a(
2914
2919
  "svg",
@@ -2937,18 +2942,18 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2937
2942
  n.map((h) => /* @__PURE__ */ a(pe, { hit: h }, `companion-${h.layerId}-${h.pointIndex}`)),
2938
2943
  /* @__PURE__ */ a(Nt, { hit: t, "data-testid": "hovered-line-point" })
2939
2944
  ] });
2940
- }, Md = {
2945
+ }, Dd = {
2941
2946
  geom: "line",
2942
2947
  coord: "cartesian",
2943
2948
  guideMode: "continuous",
2944
- render: ({ layer: e, isAnimated: t }) => /* @__PURE__ */ a(Fd, { layer: e, isAnimated: t }),
2945
- renderHover: ({ layer: e, primary: t, group: n, related: r }) => /* @__PURE__ */ a(Id, { layer: e, primary: t, companions: [...n, ...r] }),
2949
+ render: ({ layer: e, isAnimated: t }) => /* @__PURE__ */ a(Nd, { layer: e, isAnimated: t }),
2950
+ renderHover: ({ layer: e, primary: t, group: n, related: r }) => /* @__PURE__ */ a(Md, { layer: e, primary: t, companions: [...n, ...r] }),
2946
2951
  renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ a(T, { children: e.map((t) => /* @__PURE__ */ a(pe, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
2947
2952
  getOverlayAnchor: ({ observation: e }) => {
2948
2953
  const t = ue(e), n = he(e);
2949
2954
  return t === null || n === null ? null : { x: t, y: n };
2950
2955
  }
2951
- }, Dd = oe(function({
2956
+ }, Od = oe(function({
2952
2957
  layer: t,
2953
2958
  isAnimated: n
2954
2959
  }) {
@@ -2959,7 +2964,7 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2959
2964
  const l = i++, d = ue(c), u = he(c);
2960
2965
  if (d === null || u === null)
2961
2966
  continue;
2962
- const h = z(c), g = W(c), p = Re(c), f = Oo(c);
2967
+ const h = z(c), g = X(c), p = Re(c), f = Ro(c);
2963
2968
  o.push({
2964
2969
  key: String(l),
2965
2970
  // using the observation index as key for points leads to nicer transitions
@@ -2969,7 +2974,7 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
2969
2974
  fill: h,
2970
2975
  stroke: s.pointStrokeColor,
2971
2976
  opacity: g ?? Ft,
2972
- strokeWidth: f ?? ud
2977
+ strokeWidth: f ?? hd
2973
2978
  });
2974
2979
  }
2975
2980
  return o;
@@ -3003,11 +3008,11 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
3003
3008
  },
3004
3009
  o.key
3005
3010
  )) });
3006
- }), Od = {
3011
+ }), Rd = {
3007
3012
  geom: "point",
3008
3013
  coord: "cartesian",
3009
3014
  guideMode: null,
3010
- render: ({ layer: e, isAnimated: t }) => /* @__PURE__ */ a(Dd, { layer: e, isAnimated: t }),
3015
+ render: ({ layer: e, isAnimated: t }) => /* @__PURE__ */ a(Od, { layer: e, isAnimated: t }),
3011
3016
  renderHover: ({ primary: e, group: t, related: n }) => /* @__PURE__ */ m("g", { "data-testid": "hovered-point", children: [
3012
3017
  [...t, ...n].map((r) => /* @__PURE__ */ a(pe, { hit: r }, `companion-${r.layerId}-${r.pointIndex}`)),
3013
3018
  /* @__PURE__ */ a(Nt, { hit: e })
@@ -3017,19 +3022,19 @@ const ke = 3, Pd = ({ coordSystem: e, primary: t, panelRect: n }) => {
3017
3022
  const t = ue(e), n = he(e);
3018
3023
  return t === null || n === null ? null : { x: t, y: n };
3019
3024
  }
3020
- }, Rd = 11.7, zd = N.xs, Gd = R, Wd = K.medium, Le = 5, $d = 5, en = 10, tn = 10, Xd = 4, Oe = 13, no = 6, ot = 12, nn = 21.6, Vd = "0 0 10 18", Ud = "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", rn = "#FFFFFF", at = "#1A1A1A";
3021
- var Yd = "_16vokpr0";
3022
- const jd = (e, t) => {
3025
+ }, zd = 11.7, Gd = N.xs, Wd = R, $d = K.medium, Ce = 5, Xd = 5, en = 10, tn = 10, Vd = 4, Oe = 13, ro = 6, ot = 12, nn = 21.6, Ud = "0 0 10 18", Yd = "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", rn = "#FFFFFF", at = "#1A1A1A";
3026
+ var jd = "_16vokpr0";
3027
+ const qd = (e, t) => {
3023
3028
  const n = e.mapping.y !== void 0, r = t.mainAxis === "y";
3024
3029
  return n !== r;
3025
- }, qd = (e, t) => {
3030
+ }, Kd = (e, t) => {
3026
3031
  const n = x(e ? 1 - t : t);
3027
3032
  return e ? { x1: "0%", y1: n, x2: "100%", y2: n } : { x1: n, y1: "0%", x2: n, y2: "100%" };
3028
- }, Kd = (e, t) => e === "solid" ? {} : e === "dotted" ? { strokeDasharray: `0 ${t * 2}`, strokeLinecap: "round" } : {
3033
+ }, Jd = (e, t) => e === "solid" ? {} : e === "dotted" ? { strokeDasharray: `0 ${t * 2}`, strokeLinecap: "round" } : {
3029
3034
  strokeDasharray: `${t * 2} ${t * 3}`,
3030
3035
  strokeLinecap: "round",
3031
3036
  strokeMiterlimit: 16
3032
- }, Jd = (e) => {
3037
+ }, Zd = (e) => {
3033
3038
  const t = e.params.color, n = t ?? s.targetLineColor;
3034
3039
  let r = s.targetLineLabelTextColor;
3035
3040
  if (t !== void 0)
@@ -3039,7 +3044,7 @@ const jd = (e, t) => {
3039
3044
  r = at;
3040
3045
  }
3041
3046
  return { lineColor: n, labelTextColor: r };
3042
- }, Zd = (e, t) => Be(e) && Be(t) ? `${e}: ${t}` : Be(e) ? e : Be(t) ? t : null, Be = (e) => e != null && e.trim() !== "", Qd = ({
3047
+ }, Qd = (e, t) => Be(e) && Be(t) ? `${e}: ${t}` : Be(e) ? e : Be(t) ? t : null, Be = (e) => e != null && e.trim() !== "", eu = ({
3043
3048
  labelPosition: e,
3044
3049
  linePosition: t,
3045
3050
  color: n,
@@ -3048,8 +3053,8 @@ const jd = (e, t) => {
3048
3053
  text: i,
3049
3054
  isAnimated: c
3050
3055
  }) => {
3051
- const l = e === "start", d = l ? -Oe : -(r - Oe), u = l ? d + r - Le : d + Le - ot, h = l ? void 0 : `rotate(180 ${u + ot / 2} ${o / 2})`, g = l ? "0%" : "100%", p = x(1 - t), f = /* @__PURE__ */ m("g", { transform: `translate(0, ${-o / 2})`, pointerEvents: "none", children: [
3052
- /* @__PURE__ */ a("rect", { x: d, y: 0, width: r, height: o, rx: no, fill: n }),
3056
+ const l = e === "start", d = l ? -Oe : -(r - Oe), u = l ? d + r - Ce : d + Ce - ot, h = l ? void 0 : `rotate(180 ${u + ot / 2} ${o / 2})`, g = l ? "0%" : "100%", p = x(1 - t), f = /* @__PURE__ */ m("g", { transform: `translate(0, ${-o / 2})`, pointerEvents: "none", children: [
3057
+ /* @__PURE__ */ a("rect", { x: d, y: 0, width: r, height: o, rx: ro, fill: n }),
3053
3058
  /* @__PURE__ */ a("g", { transform: h, children: /* @__PURE__ */ a(
3054
3059
  "svg",
3055
3060
  {
@@ -3057,12 +3062,12 @@ const jd = (e, t) => {
3057
3062
  y: (o - nn) / 2,
3058
3063
  width: ot,
3059
3064
  height: nn,
3060
- viewBox: Vd,
3065
+ viewBox: Ud,
3061
3066
  overflow: "visible",
3062
- children: /* @__PURE__ */ a("path", { d: Ud, fill: n })
3067
+ children: /* @__PURE__ */ a("path", { d: Yd, fill: n })
3063
3068
  }
3064
3069
  ) }),
3065
- /* @__PURE__ */ a("g", { transform: `translate(${d + Le}, ${o / 2})`, children: i })
3070
+ /* @__PURE__ */ a("g", { transform: `translate(${d + Ce}, ${o / 2})`, children: i })
3066
3071
  ] });
3067
3072
  return c ? /* @__PURE__ */ a(
3068
3073
  Y.svg,
@@ -3075,7 +3080,7 @@ const jd = (e, t) => {
3075
3080
  children: f
3076
3081
  }
3077
3082
  ) : /* @__PURE__ */ a("svg", { x: g, y: p, overflow: "visible", children: f });
3078
- }, eu = ({
3083
+ }, tu = ({
3079
3084
  labelPosition: e,
3080
3085
  linePosition: t,
3081
3086
  color: n,
@@ -3085,8 +3090,8 @@ const jd = (e, t) => {
3085
3090
  isAnimated: c
3086
3091
  }) => {
3087
3092
  const l = e === "start", d = l ? -Oe : -(o - Oe), u = x(t), h = l ? "100%" : "0%", g = /* @__PURE__ */ m("g", { transform: `translate(${-r / 2}, 0)`, pointerEvents: "none", children: [
3088
- /* @__PURE__ */ a("rect", { x: 0, y: d, width: r, height: o, rx: no, fill: n }),
3089
- /* @__PURE__ */ a("g", { transform: `translate(${Le}, ${d + o / 2})`, children: i })
3093
+ /* @__PURE__ */ a("rect", { x: 0, y: d, width: r, height: o, rx: ro, fill: n }),
3094
+ /* @__PURE__ */ a("g", { transform: `translate(${Ce}, ${d + o / 2})`, children: i })
3090
3095
  ] });
3091
3096
  return c ? /* @__PURE__ */ a(
3092
3097
  Y.svg,
@@ -3099,7 +3104,7 @@ const jd = (e, t) => {
3099
3104
  children: g
3100
3105
  }
3101
3106
  ) : /* @__PURE__ */ a("svg", { x: u, y: h, overflow: "visible", children: g });
3102
- }, tu = ({
3107
+ }, nu = ({
3103
3108
  label: e,
3104
3109
  textWidth: t,
3105
3110
  labelPosition: n,
@@ -3111,7 +3116,7 @@ const jd = (e, t) => {
3111
3116
  symbolColor: d,
3112
3117
  isAnimated: u
3113
3118
  }) => {
3114
- const h = l === null ? 0 : en + Xd, g = t + h + Le * 2, p = Rd + $d * 2, f = /* @__PURE__ */ m(T, { children: [
3119
+ const h = l === null ? 0 : en + Vd, g = t + h + Ce * 2, p = zd + Xd * 2, f = /* @__PURE__ */ m(T, { children: [
3115
3120
  l !== null && d !== null && /* @__PURE__ */ a("g", { transform: `translate(0, ${-tn / 2})`, children: /* @__PURE__ */ a(Ye, { shape: l, color: d, width: en, height: tn }) }),
3116
3121
  /* @__PURE__ */ a(
3117
3122
  "text",
@@ -3126,7 +3131,7 @@ const jd = (e, t) => {
3126
3131
  )
3127
3132
  ] });
3128
3133
  return r ? /* @__PURE__ */ a(
3129
- Qd,
3134
+ eu,
3130
3135
  {
3131
3136
  labelPosition: n,
3132
3137
  linePosition: o,
@@ -3137,7 +3142,7 @@ const jd = (e, t) => {
3137
3142
  isAnimated: u
3138
3143
  }
3139
3144
  ) : /* @__PURE__ */ a(
3140
- eu,
3145
+ tu,
3141
3146
  {
3142
3147
  labelPosition: n,
3143
3148
  linePosition: o,
@@ -3148,8 +3153,8 @@ const jd = (e, t) => {
3148
3153
  isAnimated: u
3149
3154
  }
3150
3155
  );
3151
- }, nu = ({ layer: e, isHorizontalLine: t, position: n, lineColor: r, isAnimated: o }) => {
3152
- const i = qd(t, n), c = Kd(e.params.lineType, e.params.strokeWidth);
3156
+ }, ru = ({ layer: e, isHorizontalLine: t, position: n, lineColor: r, isAnimated: o }) => {
3157
+ const i = Kd(t, n), c = Jd(e.params.lineType, e.params.strokeWidth);
3153
3158
  return o ? /* @__PURE__ */ a(
3154
3159
  Y.line,
3155
3160
  {
@@ -3171,7 +3176,7 @@ const jd = (e, t) => {
3171
3176
  vectorEffect: "non-scaling-stroke"
3172
3177
  }
3173
3178
  );
3174
- }, ru = oe(function({
3179
+ }, ou = oe(function({
3175
3180
  layer: t,
3176
3181
  coordSystem: n,
3177
3182
  formattingLocale: r,
@@ -3186,16 +3191,16 @@ const jd = (e, t) => {
3186
3191
  colorScale: _.scales.color
3187
3192
  }))
3188
3193
  ), g = v(
3189
- () => Ro(u, h, n).get(t.id) ?? null,
3194
+ () => zo(u, h, n).get(t.id) ?? null,
3190
3195
  [u, h, n, t.id]
3191
3196
  ), p = v(
3192
- () => Zd(t.params.label, zo({ guides: c, numberFormat: l, layer: t, locale: r })),
3197
+ () => Qd(t.params.label, Go({ guides: c, numberFormat: l, layer: t, locale: r })),
3193
3198
  [c, l, r, t]
3194
3199
  ), f = v(
3195
3200
  () => ({
3196
- family: Gd,
3197
- size: te(zd, d),
3198
- weight: Wd
3201
+ family: Wd,
3202
+ size: te(Gd, d),
3203
+ weight: $d
3199
3204
  }),
3200
3205
  [d]
3201
3206
  ), y = v(
@@ -3203,10 +3208,10 @@ const jd = (e, t) => {
3203
3208
  [p, f, i]
3204
3209
  ), S = t.data.getFirst();
3205
3210
  if (!S) return null;
3206
- const { lineColor: k, labelTextColor: w } = Jd(t), A = jd(t, n), I = A ? he(S) : ue(S);
3207
- return I === null ? null : /* @__PURE__ */ m("g", { "data-geom": "rule", className: Yd, children: [
3211
+ const { lineColor: k, labelTextColor: w } = Zd(t), A = qd(t, n), I = A ? he(S) : ue(S);
3212
+ return I === null ? null : /* @__PURE__ */ m("g", { "data-geom": "rule", className: jd, children: [
3208
3213
  /* @__PURE__ */ a(
3209
- nu,
3214
+ ru,
3210
3215
  {
3211
3216
  layer: t,
3212
3217
  isHorizontalLine: A,
@@ -3216,7 +3221,7 @@ const jd = (e, t) => {
3216
3221
  }
3217
3222
  ),
3218
3223
  p !== null && /* @__PURE__ */ a(
3219
- tu,
3224
+ nu,
3220
3225
  {
3221
3226
  label: p,
3222
3227
  textWidth: y,
@@ -3231,12 +3236,12 @@ const jd = (e, t) => {
3231
3236
  }
3232
3237
  )
3233
3238
  ] });
3234
- }), ou = {
3239
+ }), au = {
3235
3240
  geom: "rule",
3236
3241
  coord: "cartesian",
3237
3242
  guideMode: null,
3238
3243
  render: ({ layer: e, coordSystem: t, formattingLocale: n, isAnimated: r }) => /* @__PURE__ */ a(
3239
- ru,
3244
+ ou,
3240
3245
  {
3241
3246
  layer: e,
3242
3247
  coordSystem: t,
@@ -3246,7 +3251,7 @@ const jd = (e, t) => {
3246
3251
  ),
3247
3252
  renderHover: () => null,
3248
3253
  renderHoverCompanions: () => null
3249
- }, ro = 1, on = Math.PI * 2, au = oe(function({
3254
+ }, oo = 1, on = Math.PI * 2, iu = oe(function({
3250
3255
  layer: t,
3251
3256
  isAnimated: n
3252
3257
  }) {
@@ -3257,7 +3262,7 @@ const jd = (e, t) => {
3257
3262
  const o = v(() => {
3258
3263
  const i = We(t.data, t.mapping, t.id), c = [];
3259
3264
  for (const l of t.data) {
3260
- const d = i(l), { startAngle: u, endAngle: h } = Ln(l), { innerRadius: g, outerRadius: p } = Cn(l);
3265
+ const d = i(l), { startAngle: u, endAngle: h } = Cn(l), { innerRadius: g, outerRadius: p } = Tn(l);
3261
3266
  u === null || h === null || g === null || p === null || c.push({
3262
3267
  key: d,
3263
3268
  startAngle: u,
@@ -3265,7 +3270,7 @@ const jd = (e, t) => {
3265
3270
  innerRadius: g,
3266
3271
  outerRadius: p,
3267
3272
  fill: z(l),
3268
- opacity: W(l) ?? ro
3273
+ opacity: X(l) ?? oo
3269
3274
  });
3270
3275
  }
3271
3276
  return c;
@@ -3282,7 +3287,7 @@ const jd = (e, t) => {
3282
3287
  children: o.map((i) => {
3283
3288
  if (n) {
3284
3289
  const { key: c, ...l } = i;
3285
- return /* @__PURE__ */ a(iu, { isInitialRender: !r.current, ...l }, c);
3290
+ return /* @__PURE__ */ a(su, { isInitialRender: !r.current, ...l }, c);
3286
3291
  }
3287
3292
  return /* @__PURE__ */ a(
3288
3293
  "path",
@@ -3301,7 +3306,7 @@ const jd = (e, t) => {
3301
3306
  })
3302
3307
  }
3303
3308
  );
3304
- }), iu = ({
3309
+ }), su = ({
3305
3310
  startAngle: e,
3306
3311
  endAngle: t,
3307
3312
  innerRadius: n,
@@ -3310,7 +3315,7 @@ const jd = (e, t) => {
3310
3315
  opacity: i,
3311
3316
  isInitialRender: c
3312
3317
  }) => {
3313
- const l = c ? e : on, d = c ? t : on, u = Mt(l, O), h = Mt(d, O), g = Tn(
3318
+ const l = c ? e : on, d = c ? t : on, u = Mt(l, O), h = Mt(d, O), g = wn(
3314
3319
  Ie({ startAngle: l, endAngle: d, innerRadius: n, outerRadius: r }) ?? ""
3315
3320
  );
3316
3321
  return L(() => {
@@ -3326,13 +3331,13 @@ const jd = (e, t) => {
3326
3331
  f(), y();
3327
3332
  };
3328
3333
  }, [u, h, n, r, g]), /* @__PURE__ */ a(Y.path, { d: g, fill: o, opacity: i, transition: O });
3329
- }, su = ({ primary: e }) => {
3330
- const { startAngle: t, endAngle: n } = Ln(e.observation), { innerRadius: r, outerRadius: o } = Cn(e.observation);
3334
+ }, lu = ({ primary: e }) => {
3335
+ const { startAngle: t, endAngle: n } = Cn(e.observation), { innerRadius: r, outerRadius: o } = Tn(e.observation);
3331
3336
  if (t === null || n === null || r === null || o === null)
3332
3337
  return null;
3333
3338
  const i = Ie({ startAngle: t, endAngle: n, innerRadius: r, outerRadius: o });
3334
3339
  if (!i) return null;
3335
- const c = z(e.observation), l = W(e.observation) ?? ro;
3340
+ const c = z(e.observation), l = X(e.observation) ?? oo;
3336
3341
  return /* @__PURE__ */ a(
3337
3342
  "svg",
3338
3343
  {
@@ -3346,59 +3351,59 @@ const jd = (e, t) => {
3346
3351
  children: /* @__PURE__ */ a("path", { d: i, fill: c, opacity: l })
3347
3352
  }
3348
3353
  );
3349
- }, lu = {
3354
+ }, cu = {
3350
3355
  geom: "bar",
3351
3356
  coord: "polar",
3352
3357
  guideMode: null,
3353
- render: ({ layer: e, isAnimated: t }) => /* @__PURE__ */ a(au, { layer: e, isAnimated: t }),
3354
- renderHover: ({ primary: e }) => /* @__PURE__ */ a(su, { primary: e }),
3358
+ render: ({ layer: e, isAnimated: t }) => /* @__PURE__ */ a(iu, { layer: e, isAnimated: t }),
3359
+ renderHover: ({ primary: e }) => /* @__PURE__ */ a(lu, { primary: e }),
3355
3360
  renderHoverCompanions: () => null
3356
- }, cu = {
3361
+ }, du = {
3357
3362
  bar: {
3358
- cartesian: Hd,
3359
- polar: lu
3363
+ cartesian: Fd,
3364
+ polar: cu
3360
3365
  },
3361
3366
  line: {
3362
- cartesian: Md
3367
+ cartesian: Dd
3363
3368
  },
3364
3369
  area: {
3365
- cartesian: Cd
3370
+ cartesian: Td
3366
3371
  },
3367
3372
  point: {
3368
- cartesian: Od
3373
+ cartesian: Rd
3369
3374
  },
3370
3375
  rule: {
3371
- cartesian: ou
3376
+ cartesian: au
3372
3377
  }
3373
- }, qe = (e, t) => cu[e.geom]?.[t.type] ?? null, du = (e, t) => {
3378
+ }, qe = (e, t) => du[e.geom]?.[t.type] ?? null, uu = (e, t) => {
3374
3379
  const n = e.filter((o) => o.interactive);
3375
3380
  if (n.length === 0) return null;
3376
3381
  const r = n.map((o) => qe(o, t)).filter((o) => o !== null).map((o) => o.guideMode);
3377
3382
  return r.length === 0 ? null : r.some((o) => o === "bar") ? "bar" : r.every((o) => o === "continuous") ? "continuous" : null;
3378
- }, uu = 1, hu = "4 3", gu = ({ panelRect: e }) => {
3383
+ }, hu = 1, gu = "4 3", pu = ({ panelRect: e }) => {
3379
3384
  const { coordSystem: t, layers: n, scales: r } = B(
3380
3385
  j((c) => ({ coordSystem: c.coordSystem, layers: c.layers, scales: c.scales }))
3381
3386
  ), o = Tt((c) => c.hover.primary);
3382
3387
  if (t.type !== "cartesian" || n.length === 0 || o === null) return null;
3383
- const i = du(n, t);
3384
- return i === null ? null : i === "bar" ? /* @__PURE__ */ a(fu, { coordSystem: t, scales: r, primary: o, panelRect: e }) : /* @__PURE__ */ a(pu, { coordSystem: t, primary: o, panelRect: e });
3385
- }, pu = ({ coordSystem: e, primary: t, panelRect: n }) => {
3386
- const r = Wo(e, t);
3387
- return /* @__PURE__ */ a(oo, { panelRect: n, children: /* @__PURE__ */ a(
3388
+ const i = uu(n, t);
3389
+ return i === null ? null : i === "bar" ? /* @__PURE__ */ a(mu, { coordSystem: t, scales: r, primary: o, panelRect: e }) : /* @__PURE__ */ a(fu, { coordSystem: t, primary: o, panelRect: e });
3390
+ }, fu = ({ coordSystem: e, primary: t, panelRect: n }) => {
3391
+ const r = $o(e, t);
3392
+ return /* @__PURE__ */ a(ao, { panelRect: n, children: /* @__PURE__ */ a(
3388
3393
  "line",
3389
3394
  {
3390
3395
  ...r,
3391
3396
  stroke: s.hoverGuideLineColor,
3392
- strokeWidth: uu,
3393
- strokeDasharray: hu,
3397
+ strokeWidth: hu,
3398
+ strokeDasharray: gu,
3394
3399
  strokeLinecap: "round",
3395
3400
  "data-testid": "hover-guide-line"
3396
3401
  }
3397
3402
  ) });
3398
- }, fu = ({ coordSystem: e, scales: t, primary: n, panelRect: r }) => {
3399
- const o = Go(e, t, n);
3400
- return o === null ? null : /* @__PURE__ */ a(oo, { panelRect: r, children: /* @__PURE__ */ a("rect", { ...o, fill: s.hoverGuideFillColor, "data-testid": "hover-guide-rect" }) });
3401
- }, oo = ({ panelRect: e, children: t }) => /* @__PURE__ */ a(
3403
+ }, mu = ({ coordSystem: e, scales: t, primary: n, panelRect: r }) => {
3404
+ const o = Wo(e, t, n);
3405
+ return o === null ? null : /* @__PURE__ */ a(ao, { panelRect: r, children: /* @__PURE__ */ a("rect", { ...o, fill: s.hoverGuideFillColor, "data-testid": "hover-guide-rect" }) });
3406
+ }, ao = ({ panelRect: e, children: t }) => /* @__PURE__ */ a(
3402
3407
  "svg",
3403
3408
  {
3404
3409
  x: e.x,
@@ -3409,16 +3414,16 @@ const jd = (e, t) => {
3409
3414
  "data-testid": "hover-guide",
3410
3415
  children: t
3411
3416
  }
3412
- ), mu = 200, vu = ({ engine: e, store: t, overlayRef: n }) => {
3417
+ ), vu = 200, yu = ({ engine: e, store: t, overlayRef: n }) => {
3413
3418
  L(() => {
3414
3419
  const r = n.current;
3415
3420
  if (!r) return;
3416
- const o = yu(r, e), i = bu(r, e, t);
3421
+ const o = bu(r, e), i = xu(r, e, t);
3417
3422
  return () => {
3418
3423
  i(), o();
3419
3424
  };
3420
3425
  }, [e, t, n]);
3421
- }, yu = (e, t) => {
3426
+ }, bu = (e, t) => {
3422
3427
  const n = () => {
3423
3428
  const c = e.getBoundingClientRect();
3424
3429
  c.width === 0 || c.height === 0 || t.setViewport({ width: c.width, height: c.height });
@@ -3427,12 +3432,12 @@ const jd = (e, t) => {
3427
3432
  const o = () => {
3428
3433
  r !== null && clearTimeout(r), r = setTimeout(() => {
3429
3434
  r = null, n();
3430
- }, mu);
3435
+ }, vu);
3431
3436
  }, i = new ResizeObserver(o);
3432
3437
  return i.observe(e), n(), () => {
3433
3438
  i.disconnect(), r !== null && clearTimeout(r);
3434
3439
  };
3435
- }, bu = (e, t, n) => {
3440
+ }, xu = (e, t, n) => {
3436
3441
  let r = null, o = null;
3437
3442
  const i = () => {
3438
3443
  o = null;
@@ -3455,9 +3460,9 @@ const jd = (e, t) => {
3455
3460
  return e.addEventListener("pointermove", c), e.addEventListener("pointerleave", l), () => {
3456
3461
  e.removeEventListener("pointermove", c), e.removeEventListener("pointerleave", l), o !== null && cancelAnimationFrame(o), r = null;
3457
3462
  };
3458
- }, xu = ({ panelRect: e }) => {
3463
+ }, Su = ({ panelRect: e }) => {
3459
3464
  const { engine: t, store: n, overlayRef: r } = Ue();
3460
- return vu({ engine: t, store: n, overlayRef: r }), /* @__PURE__ */ a(
3465
+ return yu({ engine: t, store: n, overlayRef: r }), /* @__PURE__ */ a(
3461
3466
  "rect",
3462
3467
  {
3463
3468
  ref: r,
@@ -3470,8 +3475,8 @@ const jd = (e, t) => {
3470
3475
  "data-testid": "pointer-capture-layer"
3471
3476
  }
3472
3477
  );
3473
- }, it = "data-hover-active", Su = (e) => {
3474
- const { store: t } = Ue(), n = Ce(t, (r) => r.hover.primary !== null);
3478
+ }, it = "data-hover-active", ku = (e) => {
3479
+ const { store: t } = Ue(), n = Te(t, (r) => r.hover.primary !== null);
3475
3480
  L(() => {
3476
3481
  const r = e.current;
3477
3482
  if (r)
@@ -3479,10 +3484,10 @@ const jd = (e, t) => {
3479
3484
  r.removeAttribute(it);
3480
3485
  };
3481
3486
  }, [e, n]);
3482
- }, ao = N.xs, ft = R, io = K.medium, ku = K.semibold, so = 6, lo = 2, Lu = 4, Cu = 2, an = 4;
3483
- var Tu = "_1agclyl0", wu = "_1agclyl1", Au = "_1agclyl2", Eu = { inside: "_1agclyl4 _1agclyl3", outside: "_1agclyl5 _1agclyl3" }, _u = "_1agclyl6 _1agclyl3";
3484
- const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c, position: l, coordType: d }) => {
3485
- const u = i ? `rotate(-90 ${e} ${t})` : void 0, h = c === "aggregate" ? _u : Eu[l], g = Pu(c, l, d);
3487
+ }, io = N.xs, ft = R, so = K.medium, Lu = K.semibold, lo = 6, co = 2, Cu = 4, Tu = 2, an = 4;
3488
+ var wu = "_1agclyl0", Au = "_1agclyl1", Eu = "_1agclyl2", _u = { inside: "_1agclyl4 _1agclyl3", outside: "_1agclyl5 _1agclyl3" }, Pu = "_1agclyl6 _1agclyl3";
3489
+ const uo = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c, position: l, coordType: d }) => {
3490
+ const u = i ? `rotate(-90 ${e} ${t})` : void 0, h = c === "aggregate" ? Pu : _u[l], g = Hu(c, l, d);
3486
3491
  return /* @__PURE__ */ m("g", { transform: u, children: [
3487
3492
  g && /* @__PURE__ */ a(
3488
3493
  "rect",
@@ -3498,13 +3503,13 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3498
3503
  ),
3499
3504
  /* @__PURE__ */ a("text", { className: h, x: e, y: t, textAnchor: "middle", dominantBaseline: "central", children: o })
3500
3505
  ] });
3501
- }, Pu = (e, t, n) => {
3502
- if (e === "aggregate") return Au;
3503
- if (t === "outside" && n === "cartesian") return wu;
3504
- }, Hu = {
3505
- dataLabel: { x: so, y: lo },
3506
- stackTotal: { x: Lu, y: Cu }
3507
- }, Fu = ({ panelRect: e, formattingLocale: t }) => {
3506
+ }, Hu = (e, t, n) => {
3507
+ if (e === "aggregate") return Eu;
3508
+ if (t === "outside" && n === "cartesian") return Au;
3509
+ }, Fu = {
3510
+ dataLabel: { x: lo, y: co },
3511
+ stackTotal: { x: Cu, y: Tu }
3512
+ }, Nu = ({ panelRect: e, formattingLocale: t }) => {
3508
3513
  const n = ve(), r = B(
3509
3514
  j((l) => ({
3510
3515
  layers: l.layers,
@@ -3515,14 +3520,14 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3515
3520
  textScale: l.config.appearance.textScale
3516
3521
  }))
3517
3522
  ), o = v(() => {
3518
- const l = te(ao, r.textScale);
3523
+ const l = te(io, r.textScale);
3519
3524
  return {
3520
- dataLabel: { family: ft, size: l, weight: io },
3521
- stackTotal: { family: ft, size: l, weight: ku }
3525
+ dataLabel: { family: ft, size: l, weight: so },
3526
+ stackTotal: { family: ft, size: l, weight: Lu }
3522
3527
  };
3523
3528
  }, [r.textScale]), i = v(
3524
3529
  () => (l, d) => {
3525
- const u = n.measureText(d, o[l]), h = Hu[l];
3530
+ const u = n.measureText(d, o[l]), h = Fu[l];
3526
3531
  return {
3527
3532
  ...u,
3528
3533
  width: u.width + h.x * 2,
@@ -3531,11 +3536,11 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3531
3536
  },
3532
3537
  [n, o]
3533
3538
  ), c = v(
3534
- () => $o({ ...r, panelRect: e, measureDataLabel: i, formattingLocale: t }),
3539
+ () => Xo({ ...r, panelRect: e, measureDataLabel: i, formattingLocale: t }),
3535
3540
  [r, e, i, t]
3536
3541
  );
3537
- return /* @__PURE__ */ a("g", { className: Tu, transform: `translate(${e.x}, ${e.y})`, "data-testid": "data-labels", children: c.labels.map((l) => /* @__PURE__ */ a(
3538
- co,
3542
+ return /* @__PURE__ */ a("g", { className: wu, transform: `translate(${e.x}, ${e.y})`, "data-testid": "data-labels", children: c.labels.map((l) => /* @__PURE__ */ a(
3543
+ uo,
3539
3544
  {
3540
3545
  x: l.x,
3541
3546
  y: l.y,
@@ -3549,13 +3554,13 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3549
3554
  },
3550
3555
  l.key
3551
3556
  )) });
3552
- }, Nu = ({ linePath: e, arrowheadPath: t, stroke: n, strokeWidth: r }) => {
3557
+ }, Bu = ({ linePath: e, arrowheadPath: t, stroke: n, strokeWidth: r }) => {
3553
3558
  const o = { stroke: n, strokeWidth: r, strokeLinecap: "round", fill: "none" };
3554
3559
  return /* @__PURE__ */ m("g", { children: [
3555
3560
  /* @__PURE__ */ a("path", { d: e, ...o }),
3556
3561
  /* @__PURE__ */ a("path", { d: t, ...o, strokeLinejoin: "round" })
3557
3562
  ] });
3558
- }, Bu = ({
3563
+ }, Iu = ({
3559
3564
  x: e,
3560
3565
  y: t,
3561
3566
  text: n,
@@ -3597,7 +3602,7 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3597
3602
  }
3598
3603
  )
3599
3604
  ] });
3600
- }, Iu = ({ panelRect: e, formattingLocale: t }) => {
3605
+ }, Mu = ({ panelRect: e, formattingLocale: t }) => {
3601
3606
  const n = B(
3602
3607
  j((o) => ({
3603
3608
  differenceArrows: o.annotations.differenceArrows,
@@ -3606,7 +3611,7 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3606
3611
  }))
3607
3612
  ), r = v(
3608
3613
  () => n.differenceArrows.map(
3609
- (o) => Xo({
3614
+ (o) => Vo({
3610
3615
  arrow: o,
3611
3616
  mainAxis: n.mainAxis,
3612
3617
  panelWidth: e.width,
@@ -3633,9 +3638,9 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3633
3638
  labelFontWeight: S
3634
3639
  }) => {
3635
3640
  const k = o ?? s.defaultAnnotationArrowStroke;
3636
- return /* @__PURE__ */ m(bo.Fragment, { children: [
3641
+ return /* @__PURE__ */ m(xo.Fragment, { children: [
3637
3642
  /* @__PURE__ */ a(
3638
- Nu,
3643
+ Bu,
3639
3644
  {
3640
3645
  linePath: c,
3641
3646
  arrowheadPath: l,
@@ -3644,7 +3649,7 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3644
3649
  }
3645
3650
  ),
3646
3651
  /* @__PURE__ */ a(
3647
- Bu,
3652
+ Iu,
3648
3653
  {
3649
3654
  x: u.x,
3650
3655
  y: u.y,
@@ -3660,13 +3665,13 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3660
3665
  ] }, i);
3661
3666
  }
3662
3667
  ) });
3663
- }, Mu = 0, Du = 1.15, sn = 1.15, Ou = "rgba(0, 0, 0, 0.16)", ln = 2, Ru = 1.4, zu = ({
3668
+ }, Du = 0, Ou = 1.15, sn = 1.15, Ru = "rgba(0, 0, 0, 0.16)", ln = 2, zu = 1.4, Gu = ({
3664
3669
  arrow: e,
3665
3670
  fallbackColor: t,
3666
3671
  stickerOutlineColor: n,
3667
3672
  stickerOutlineColorInverse: r
3668
3673
  }) => {
3669
- const o = vt(), i = e.color ?? t, c = Gu(e.color, n, r), l = e.dashArray ? { strokeDasharray: e.dashArray, strokeDashoffset: e.dashOffset } : {}, d = e.arrowheadExtent + e.strokeWidth + ln + sn, u = {
3674
+ const o = vt(), i = e.color ?? t, c = Wu(e.color, n, r), l = e.dashArray ? { strokeDasharray: e.dashArray, strokeDashoffset: e.dashOffset } : {}, d = e.arrowheadExtent + e.strokeWidth + ln + sn, u = {
3670
3675
  x: Math.min(e.startX, e.endX) - d,
3671
3676
  y: Math.min(e.startY, e.endY) - d,
3672
3677
  width: Math.abs(e.endX - e.startX) + 2 * d,
@@ -3676,10 +3681,10 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3676
3681
  e.hasStickerStyle && /* @__PURE__ */ a("defs", { children: /* @__PURE__ */ a("filter", { id: o, filterUnits: "userSpaceOnUse", ...u, children: /* @__PURE__ */ a(
3677
3682
  "feDropShadow",
3678
3683
  {
3679
- dx: Mu,
3680
- dy: Du,
3684
+ dx: Du,
3685
+ dy: Ou,
3681
3686
  stdDeviation: sn,
3682
- floodColor: Ou
3687
+ floodColor: Ru
3683
3688
  }
3684
3689
  ) }) }),
3685
3690
  /* @__PURE__ */ m("g", { filter: e.hasStickerStyle ? `url(#${o})` : void 0, children: [
@@ -3726,20 +3731,20 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3726
3731
  )
3727
3732
  ] })
3728
3733
  ] });
3729
- }, Gu = (e, t, n) => {
3734
+ }, Wu = (e, t, n) => {
3730
3735
  if (e === null) return n;
3731
3736
  try {
3732
- return ct(e, t) < Ru ? n : t;
3737
+ return ct(e, t) < zu ? n : t;
3733
3738
  } catch {
3734
3739
  return n;
3735
3740
  }
3736
- }, Wu = ({ panelRect: e }) => {
3741
+ }, $u = ({ panelRect: e }) => {
3737
3742
  const { themeValues: t } = _t(), n = B((o) => o.annotations.freeformArrows), r = v(
3738
- () => n.map((o) => Vo({ arrow: o, panelWidth: e.width, panelHeight: e.height })).filter((o) => o !== null),
3743
+ () => n.map((o) => Uo({ arrow: o, panelWidth: e.width, panelHeight: e.height })).filter((o) => o !== null),
3739
3744
  [n, e.width, e.height]
3740
3745
  );
3741
3746
  return r.length === 0 ? null : /* @__PURE__ */ a("g", { transform: `translate(${e.x}, ${e.y})`, "data-testid": "freeform-arrows", children: r.map((o) => /* @__PURE__ */ a(
3742
- zu,
3747
+ Gu,
3743
3748
  {
3744
3749
  arrow: o,
3745
3750
  fallbackColor: s.defaultAnnotationArrowStroke,
@@ -3748,10 +3753,10 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3748
3753
  },
3749
3754
  o.id
3750
3755
  )) });
3751
- }, $u = ({ edge: e, areTicksVisible: t, position: n, labelRotation: r, label: o }) => {
3756
+ }, Xu = ({ edge: e, areTicksVisible: t, position: n, labelRotation: r, label: o }) => {
3752
3757
  const { tickLabelOffset: i } = wt(), c = x(n), l = (t ? 1 : 0) * i, d = { style: { font: s.fontTickLabel }, fill: s.textSecondary }, u = r !== 0 && (e === "top" || e === "bottom"), h = e === "top";
3753
- return u ? /* @__PURE__ */ a("svg", { x: c, y: h ? "100%" : 0, style: { overflow: "visible" }, children: /* @__PURE__ */ a("text", { ...Vu(h, l, r), ...d, children: o }) }) : /* @__PURE__ */ a("text", { ...Xu(e, c, l), ...d, children: o });
3754
- }, Xu = (e, t, n) => {
3758
+ return u ? /* @__PURE__ */ a("svg", { x: c, y: h ? "100%" : 0, style: { overflow: "visible" }, children: /* @__PURE__ */ a("text", { ...Uu(h, l, r), ...d, children: o }) }) : /* @__PURE__ */ a("text", { ...Vu(e, c, l), ...d, children: o });
3759
+ }, Vu = (e, t, n) => {
3755
3760
  switch (e) {
3756
3761
  case "bottom":
3757
3762
  return {
@@ -3784,7 +3789,7 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3784
3789
  dominantBaseline: "central"
3785
3790
  };
3786
3791
  }
3787
- }, Vu = (e, t, n) => {
3792
+ }, Uu = (e, t, n) => {
3788
3793
  const r = e ? -t : t;
3789
3794
  return {
3790
3795
  x: 0,
@@ -3793,16 +3798,16 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3793
3798
  dominantBaseline: "central",
3794
3799
  transform: `rotate(${n}, 0, ${r})`
3795
3800
  };
3796
- }, Uu = ({ formattedAxis: e, rect: t }) => {
3801
+ }, Yu = ({ formattedAxis: e, rect: t }) => {
3797
3802
  const n = e.position === "bottom" || e.position === "top";
3798
3803
  return /* @__PURE__ */ m("svg", { x: t.x, y: t.y, width: t.width, height: t.height, style: { overflow: "visible" }, children: [
3799
- dr,
3804
+ ur,
3800
3805
  e.ticks.map((r, o) => {
3801
- const i = r.formattedLabel, c = n ? r.position : 1 - r.position, l = Yu(e.position, c, t);
3806
+ const i = r.formattedLabel, c = n ? r.position : 1 - r.position, l = ju(e.position, c, t);
3802
3807
  return /* @__PURE__ */ m("g", { children: [
3803
3808
  e.ticksVisible && /* @__PURE__ */ a("line", { ...l, stroke: s.gridLineColor, strokeWidth: 1 }),
3804
3809
  /* @__PURE__ */ a(
3805
- $u,
3810
+ Xu,
3806
3811
  {
3807
3812
  edge: e.position,
3808
3813
  areTicksVisible: e.ticksVisible,
@@ -3814,7 +3819,7 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3814
3819
  ] }, o);
3815
3820
  })
3816
3821
  ] });
3817
- }, Yu = (e, t, n) => {
3822
+ }, ju = (e, t, n) => {
3818
3823
  const r = x(t);
3819
3824
  switch (e) {
3820
3825
  case "bottom":
@@ -3826,15 +3831,15 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3826
3831
  case "right":
3827
3832
  return { x1: 0, y1: r, x2: Fe, y2: r };
3828
3833
  }
3829
- }, ju = ({ axes: e, rects: t }) => /* @__PURE__ */ a(T, { children: e.map((n) => {
3834
+ }, qu = ({ axes: e, rects: t }) => /* @__PURE__ */ a(T, { children: e.map((n) => {
3830
3835
  const r = t[n.position];
3831
3836
  if (!r || !n.isVisible) return null;
3832
- const o = qu(n.position, r);
3837
+ const o = Ku(n.position, r);
3833
3838
  return /* @__PURE__ */ m("g", { transform: `translate(${r.x}, ${r.y})`, children: [
3834
- dr,
3839
+ ur,
3835
3840
  /* @__PURE__ */ a("text", { style: { font: s.fontAxisLabel }, fill: s.textPrimary, ...o, children: n.label })
3836
3841
  ] }, `axis-label-${n.position}`);
3837
- }) }), qu = (e, t) => {
3842
+ }) }), Ku = (e, t) => {
3838
3843
  const n = {
3839
3844
  x: t.width / 2,
3840
3845
  y: t.height / 2,
@@ -3842,15 +3847,15 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3842
3847
  dominantBaseline: "middle"
3843
3848
  };
3844
3849
  return e === "left" ? (n.x = 0, n.textAnchor = "start") : e === "right" && (n.x = t.width, n.textAnchor = "end"), n;
3845
- }, Ku = ({ formattedAxes: e, tickRects: t }) => /* @__PURE__ */ a(T, { children: e.map((n) => {
3850
+ }, Ju = ({ formattedAxes: e, tickRects: t }) => /* @__PURE__ */ a(T, { children: e.map((n) => {
3846
3851
  const r = t[n.position];
3847
- return !r || !n.isVisible ? null : /* @__PURE__ */ a(Uu, { formattedAxis: n, rect: r }, n.scaleAestheticKey);
3848
- }) }), Ju = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ a(ju, { axes: e, rects: t }), cn = {
3852
+ return !r || !n.isVisible ? null : /* @__PURE__ */ a(Yu, { formattedAxis: n, rect: r }, n.scaleAestheticKey);
3853
+ }) }), Zu = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ a(qu, { axes: e, rects: t }), cn = {
3849
3854
  strokeWidth: s.gridLineWidth,
3850
3855
  strokeDashoffset: "0",
3851
3856
  strokeDasharray: s.gridLineDash,
3852
3857
  strokeLinecap: "round"
3853
- }, Zu = ({ axes: e, panel: t, panelRect: n }) => /* @__PURE__ */ m(
3858
+ }, Qu = ({ axes: e, panel: t, panelRect: n }) => /* @__PURE__ */ m(
3854
3859
  "svg",
3855
3860
  {
3856
3861
  x: n.x,
@@ -3912,8 +3917,8 @@ const co = ({ x: e, y: t, width: n, height: r, text: o, isRotated: i, target: c,
3912
3917
  }
3913
3918
  );
3914
3919
  };
3915
- var Qu = "_120wioc0";
3916
- const eh = ({ panelRect: e }) => {
3920
+ var eh = "_120wioc0";
3921
+ const th = ({ panelRect: e }) => {
3917
3922
  const t = B((n) => n.annotations.textAnnotations);
3918
3923
  return t.length === 0 ? null : /* @__PURE__ */ a(
3919
3924
  "svg",
@@ -3935,8 +3940,8 @@ const eh = ({ panelRect: e }) => {
3935
3940
  children: /* @__PURE__ */ a(
3936
3941
  "div",
3937
3942
  {
3938
- className: Qu,
3939
- style: th(n.backgroundColor, n.backgroundColorStyle),
3943
+ className: eh,
3944
+ style: nh(n.backgroundColor, n.backgroundColorStyle),
3940
3945
  children: /* @__PURE__ */ a(De, { content: n.content })
3941
3946
  }
3942
3947
  )
@@ -3945,7 +3950,7 @@ const eh = ({ panelRect: e }) => {
3945
3950
  ))
3946
3951
  }
3947
3952
  );
3948
- }, th = (e, t) => e === null || e === "transparent" ? { color: s.textPrimary } : t === "fade" ? {
3953
+ }, nh = (e, t) => e === null || e === "transparent" ? { color: s.textPrimary } : t === "fade" ? {
3949
3954
  color: s.textPrimary,
3950
3955
  backgroundColor: dt(e, s.grey100, 0.5),
3951
3956
  boxShadow: `0 0 0 1.5px ${dt(e, s.grey0, 0.2)}`
@@ -3954,8 +3959,8 @@ const eh = ({ panelRect: e }) => {
3954
3959
  backgroundColor: e,
3955
3960
  boxShadow: `0 0 0 1.5px ${je(e, 0.1)}`
3956
3961
  };
3957
- var nh = "usd3ea0", rh = "usd3ea1";
3958
- const oh = ({
3962
+ var rh = "usd3ea0", oh = "usd3ea1";
3963
+ const ah = ({
3959
3964
  layer: e,
3960
3965
  coordSystem: t,
3961
3966
  isAnimated: n,
@@ -3971,14 +3976,14 @@ const oh = ({
3971
3976
  "g",
3972
3977
  {
3973
3978
  className: re({
3974
- [rh]: r && o === "desaturate",
3975
- [nh]: r && o === "dim"
3979
+ [oh]: r && o === "desaturate",
3980
+ [rh]: r && o === "dim"
3976
3981
  }),
3977
3982
  children: c.render({ layer: e, coordSystem: t, isAnimated: n, formattingLocale: i })
3978
3983
  }
3979
3984
  );
3980
3985
  };
3981
- function ah({
3986
+ function ih({
3982
3987
  plugin: e,
3983
3988
  layer: t,
3984
3989
  coordSystem: n,
@@ -3992,7 +3997,7 @@ function ah({
3992
3997
  }
3993
3998
  return o;
3994
3999
  }
3995
- const ih = 4, sh = ({
4000
+ const sh = 4, lh = ({
3996
4001
  plugin: e,
3997
4002
  layer: t,
3998
4003
  matchedLayer: n,
@@ -4008,16 +4013,16 @@ const ih = 4, sh = ({
4008
4013
  textScale: y.config.appearance.textScale
4009
4014
  }))
4010
4015
  ), h = v(
4011
- () => ah({ plugin: e, layer: t, coordSystem: o, candidates: r }),
4016
+ () => ih({ plugin: e, layer: t, coordSystem: o, candidates: r }),
4012
4017
  [e, t, o, r]
4013
- ), g = v(() => Uo(t), [t]), p = v(
4014
- () => Yo({ layer: t, numberFormat: d, locale: l }),
4018
+ ), g = v(() => Yo(t), [t]), p = v(
4019
+ () => jo({ layer: t, numberFormat: d, locale: l }),
4015
4020
  [d, t, l]
4016
- ), f = ao * kr * u;
4021
+ ), f = io * Lr * u;
4017
4022
  return e === null || n === null && h.length === 0 ? null : /* @__PURE__ */ m(T, { children: [
4018
4023
  n ? e.render({ layer: n, coordSystem: o, isAnimated: i, formattingLocale: l }) : null,
4019
4024
  h.map(({ observation: y, observationIndex: S, anchor: k }) => /* @__PURE__ */ a(
4020
- lh,
4025
+ ch,
4021
4026
  {
4022
4027
  observation: y,
4023
4028
  anchor: k,
@@ -4026,10 +4031,10 @@ const ih = 4, sh = ({
4026
4031
  formatYValue: p,
4027
4032
  labelFontSizePx: f
4028
4033
  },
4029
- ch(y, S)
4034
+ dh(y, S)
4030
4035
  ))
4031
4036
  ] });
4032
- }, lh = ({
4037
+ }, ch = ({
4033
4038
  observation: e,
4034
4039
  anchor: t,
4035
4040
  panelRect: n,
@@ -4037,16 +4042,16 @@ const ih = 4, sh = ({
4037
4042
  formatYValue: o,
4038
4043
  labelFontSizePx: i
4039
4044
  }) => {
4040
- const c = ve(), l = Ge(t.x), d = ze(t.y), u = (Re(e) ?? Jr) / 2, h = r(e), g = yn(h) ? o(h, e) : null, p = v(() => {
4045
+ const c = ve(), l = Ge(t.x), d = ze(t.y), u = (Re(e) ?? Zr) / 2, h = r(e), g = bn(h) ? o(h, e) : null, p = v(() => {
4041
4046
  if (g === null) return null;
4042
4047
  const f = c.measureText(g, {
4043
4048
  family: ft,
4044
4049
  size: i,
4045
- weight: io
4050
+ weight: so
4046
4051
  });
4047
4052
  return {
4048
- width: f.width + so * 2,
4049
- height: f.height + lo * 2
4053
+ width: f.width + lo * 2,
4054
+ height: f.height + co * 2
4050
4055
  };
4051
4056
  }, [g, c, i]);
4052
4057
  return /* @__PURE__ */ m(T, { children: [
@@ -4061,10 +4066,10 @@ const ih = 4, sh = ({
4061
4066
  }
4062
4067
  ),
4063
4068
  g !== null && p !== null && /* @__PURE__ */ a(
4064
- co,
4069
+ uo,
4065
4070
  {
4066
4071
  x: l * n.width,
4067
- y: d * n.height - u - ih - p.height / 2,
4072
+ y: d * n.height - u - sh - p.height / 2,
4068
4073
  width: p.width,
4069
4074
  height: p.height,
4070
4075
  text: g,
@@ -4075,10 +4080,10 @@ const ih = 4, sh = ({
4075
4080
  }
4076
4081
  )
4077
4082
  ] });
4078
- }, ch = (e, t) => {
4079
- const n = e[we.group];
4083
+ }, dh = (e, t) => {
4084
+ const n = e[Ae.group];
4080
4085
  return `${String(n ?? "")}\0${t}`;
4081
- }, dh = ({ layer: e, coordSystem: t, panelRect: n }) => {
4086
+ }, uh = ({ layer: e, coordSystem: t, panelRect: n }) => {
4082
4087
  const { primary: r, group: o, related: i } = Tt(
4083
4088
  j((d) => ({
4084
4089
  primary: d.hover.primary,
@@ -4099,8 +4104,8 @@ const ih = 4, sh = ({
4099
4104
  panelRect: n
4100
4105
  }) : l.length === 0 ? null : c.renderHoverCompanions({ layer: e, primary: r, related: l });
4101
4106
  };
4102
- var uh = "to1jkx0", hh = "to1jkx1";
4103
- const gh = ({ shouldAnimate: e, panelRect: t, formattingLocale: n }) => {
4107
+ var hh = "to1jkx0", gh = "to1jkx1";
4108
+ const ph = ({ shouldAnimate: e, panelRect: t, formattingLocale: n }) => {
4104
4109
  const { layers: r, coordSystem: o, highlightStyle: i } = B(
4105
4110
  j((c) => ({
4106
4111
  layers: c.layers,
@@ -4115,11 +4120,11 @@ const gh = ({ shouldAnimate: e, panelRect: t, formattingLocale: n }) => {
4115
4120
  y: t.y,
4116
4121
  width: t.width,
4117
4122
  height: t.height,
4118
- className: uh,
4123
+ className: hh,
4119
4124
  "data-testid": "geom-layers",
4120
4125
  children: r.map((c) => /* @__PURE__ */ m(hn, { children: [
4121
4126
  /* @__PURE__ */ a(
4122
- mh,
4127
+ vh,
4123
4128
  {
4124
4129
  layer: c,
4125
4130
  coordSystem: o,
@@ -4129,14 +4134,14 @@ const gh = ({ shouldAnimate: e, panelRect: t, formattingLocale: n }) => {
4129
4134
  formattingLocale: n
4130
4135
  }
4131
4136
  ),
4132
- /* @__PURE__ */ a(dh, { layer: c, coordSystem: o, panelRect: t })
4133
- ] }, `${c.id}-${ph(o)}`))
4137
+ /* @__PURE__ */ a(uh, { layer: c, coordSystem: o, panelRect: t })
4138
+ ] }, `${c.id}-${fh(o)}`))
4134
4139
  }
4135
4140
  );
4136
- }, ph = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, fh = (e) => {
4141
+ }, fh = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, mh = (e) => {
4137
4142
  if (e.geom !== "rule")
4138
- return hh;
4139
- }, mh = ({
4143
+ return gh;
4144
+ }, vh = ({
4140
4145
  layer: e,
4141
4146
  coordSystem: t,
4142
4147
  highlightStyle: n,
@@ -4145,9 +4150,9 @@ const gh = ({ shouldAnimate: e, panelRect: t, formattingLocale: n }) => {
4145
4150
  formattingLocale: i
4146
4151
  }) => {
4147
4152
  const c = v(() => qe(e, t), [e, t]), l = e.highlight;
4148
- return /* @__PURE__ */ m("g", { className: fh(e), children: [
4153
+ return /* @__PURE__ */ m("g", { className: mh(e), children: [
4149
4154
  /* @__PURE__ */ a(
4150
- oh,
4155
+ ah,
4151
4156
  {
4152
4157
  layer: e,
4153
4158
  coordSystem: t,
@@ -4158,7 +4163,7 @@ const gh = ({ shouldAnimate: e, panelRect: t, formattingLocale: n }) => {
4158
4163
  }
4159
4164
  ),
4160
4165
  l !== null && /* @__PURE__ */ a(
4161
- sh,
4166
+ lh,
4162
4167
  {
4163
4168
  plugin: c,
4164
4169
  layer: e,
@@ -4172,8 +4177,8 @@ const gh = ({ shouldAnimate: e, panelRect: t, formattingLocale: n }) => {
4172
4177
  )
4173
4178
  ] });
4174
4179
  };
4175
- var vh = "_17uhij30";
4176
- const yh = ({
4180
+ var yh = "_17uhij30";
4181
+ const bh = ({
4177
4182
  formattedAxes: e,
4178
4183
  panelGuide: t,
4179
4184
  plotRect: n,
@@ -4184,34 +4189,34 @@ const yh = ({
4184
4189
  formattingLocale: l
4185
4190
  }) => {
4186
4191
  const d = C(null);
4187
- Su(d);
4188
- const u = Q("Grid", Zu), h = Q("AxisTicks", Ku), g = Q("AxisLabel", Ju), p = v(() => uo(r, n), [r, n]), f = v(() => un(o, n), [o, n]), y = v(() => un(i, n), [i, n]);
4192
+ ku(d);
4193
+ const u = Q("Grid", Qu), h = Q("AxisTicks", Ju), g = Q("AxisLabel", Zu), p = v(() => ho(r, n), [r, n]), f = v(() => un(o, n), [o, n]), y = v(() => un(i, n), [i, n]);
4189
4194
  return /* @__PURE__ */ m(
4190
4195
  "svg",
4191
4196
  {
4192
4197
  ref: d,
4193
- className: vh,
4198
+ className: yh,
4194
4199
  width: n.width,
4195
4200
  height: n.height,
4196
4201
  style: { transform: `translate(${n.x}px, ${n.y}px)` },
4197
4202
  "data-testid": "plot",
4198
4203
  children: [
4199
4204
  /* @__PURE__ */ a(u, { axes: e, panel: t, panelRect: p }),
4200
- /* @__PURE__ */ a(gu, { panelRect: p }),
4205
+ /* @__PURE__ */ a(pu, { panelRect: p }),
4201
4206
  /* @__PURE__ */ a(h, { formattedAxes: e, tickRects: f }),
4202
4207
  /* @__PURE__ */ a(g, { formattedAxes: e, labelRects: y }),
4203
4208
  /* @__PURE__ */ a(dn, { panelRect: p, zOrder: "background" }),
4204
- /* @__PURE__ */ a(gh, { shouldAnimate: c, panelRect: p, formattingLocale: l }),
4205
- /* @__PURE__ */ a(Fu, { panelRect: p, formattingLocale: l }),
4206
- /* @__PURE__ */ a(Iu, { panelRect: p, formattingLocale: l }),
4209
+ /* @__PURE__ */ a(ph, { shouldAnimate: c, panelRect: p, formattingLocale: l }),
4210
+ /* @__PURE__ */ a(Nu, { panelRect: p, formattingLocale: l }),
4211
+ /* @__PURE__ */ a(Mu, { panelRect: p, formattingLocale: l }),
4207
4212
  /* @__PURE__ */ a(dn, { panelRect: p, zOrder: "foreground" }),
4208
- /* @__PURE__ */ a(Wu, { panelRect: p }),
4209
- /* @__PURE__ */ a(eh, { panelRect: p }),
4210
- /* @__PURE__ */ a(xu, { panelRect: p })
4213
+ /* @__PURE__ */ a($u, { panelRect: p }),
4214
+ /* @__PURE__ */ a(th, { panelRect: p }),
4215
+ /* @__PURE__ */ a(Su, { panelRect: p })
4211
4216
  ]
4212
4217
  }
4213
4218
  );
4214
- }, uo = (e, t) => ({
4219
+ }, ho = (e, t) => ({
4215
4220
  x: e.x - t.x,
4216
4221
  y: e.y - t.y,
4217
4222
  width: e.width,
@@ -4219,25 +4224,25 @@ const yh = ({
4219
4224
  }), un = (e, t) => {
4220
4225
  const n = {};
4221
4226
  for (const [r, o] of Object.entries(e))
4222
- n[r] = uo(o, t);
4227
+ n[r] = ho(o, t);
4223
4228
  return n;
4224
4229
  }, st = {
4225
4230
  headerSize: { width: 0, height: 0 },
4226
4231
  footerSize: { width: 0, height: 0 }
4227
- }, bh = () => {
4232
+ }, xh = () => {
4228
4233
  const [e, t] = E(null), [n, r] = E(null), [o, i] = E(st);
4229
4234
  return L(() => {
4230
4235
  const c = () => {
4231
4236
  const d = e ? { width: e.offsetWidth, height: e.offsetHeight } : st.headerSize, u = n ? { width: n.offsetWidth, height: n.offsetHeight } : st.footerSize;
4232
- i((h) => xh(h, { headerSize: d, footerSize: u }) ? { headerSize: d, footerSize: u } : h);
4237
+ i((h) => Sh(h, { headerSize: d, footerSize: u }) ? { headerSize: d, footerSize: u } : h);
4233
4238
  };
4234
4239
  c();
4235
4240
  const l = new ResizeObserver(c);
4236
4241
  return e && l.observe(e), n && l.observe(n), () => l.disconnect();
4237
4242
  }, [e, n]), { headerRef: t, footerRef: r, measurements: o };
4238
- }, xh = (e, t) => e.headerSize.width !== t.headerSize.width || e.headerSize.height !== t.headerSize.height || e.footerSize.width !== t.footerSize.width || e.footerSize.height !== t.footerSize.height, Sh = ({ appearance: e, isEditable: t, style: n, children: r }) => {
4239
- const { theme: o, themeClass: i, inlineVarsStyle: c } = _t(), l = os(e.border), d = Math.max(0, e.cornerRadius), u = d === 0 ? 0 : d + l, h = v(() => {
4240
- const f = { ...n, borderRadius: `${u}px`, ...c }, y = rs(e.border, o);
4243
+ }, Sh = (e, t) => e.headerSize.width !== t.headerSize.width || e.headerSize.height !== t.headerSize.height || e.footerSize.width !== t.footerSize.width || e.footerSize.height !== t.footerSize.height, kh = ({ appearance: e, isEditable: t, style: n, children: r }) => {
4244
+ const { theme: o, themeClass: i, inlineVarsStyle: c } = _t(), l = as(e.border), d = Math.max(0, e.cornerRadius), u = d === 0 ? 0 : d + l, h = v(() => {
4245
+ const f = { ...n, borderRadius: `${u}px`, ...c }, y = os(e.border, o);
4241
4246
  return y !== null && (f.background = y), f;
4242
4247
  }, [n, u, c, e.border, o]), g = v(
4243
4248
  () => ({
@@ -4246,19 +4251,19 @@ const yh = ({
4246
4251
  }),
4247
4252
  [l, d]
4248
4253
  ), p = t && e.background.type === "solid" && e.background.color === "transparent";
4249
- return /* @__PURE__ */ a("div", { "data-testid": "graph-wrapper", className: re(ls, i), style: h, children: /* @__PURE__ */ a(
4254
+ return /* @__PURE__ */ a("div", { "data-testid": "graph-wrapper", className: re(cs, i), style: h, children: /* @__PURE__ */ a(
4250
4255
  "div",
4251
4256
  {
4252
4257
  "data-testid": "graph-inner",
4253
- className: re(ds, { [us]: p }),
4258
+ className: re(us, { [hs]: p }),
4254
4259
  style: g,
4255
4260
  children: r
4256
4261
  }
4257
4262
  ) });
4258
- }, ag = ({ slots: e, ...t }) => {
4263
+ }, ig = ({ slots: e, ...t }) => {
4259
4264
  const { formattingLocale: n } = me(), r = B((o) => o.config.parsingLocale);
4260
- return /* @__PURE__ */ a($a, { children: /* @__PURE__ */ a(Hc, { children: /* @__PURE__ */ a(Qo, { locale: n ?? r, children: /* @__PURE__ */ a(Ka, { slots: e, children: /* @__PURE__ */ a(kh, { ...t }) }) }) }) });
4261
- }, kh = ({
4265
+ return /* @__PURE__ */ a(Xa, { children: /* @__PURE__ */ a(Fc, { children: /* @__PURE__ */ a(ea, { locale: n ?? r, children: /* @__PURE__ */ a(Ja, { slots: e, children: /* @__PURE__ */ a(Lh, { ...t }) }) }) }) });
4266
+ }, Lh = ({
4262
4267
  width: e,
4263
4268
  height: t,
4264
4269
  isAnimated: n,
@@ -4291,27 +4296,27 @@ const yh = ({
4291
4296
  headlineConfig: G.config.headline,
4292
4297
  content: G.config.content
4293
4298
  }))
4294
- ), w = Zo(), { headerRef: A, footerRef: I, measurements: _ } = bh(), { formattingLocale: $, theme: Ke, themeOverrides: Je } = me(), Ae = v(() => br(Ke, Je), [Ke, Je]), ho = Q("Header", jl), go = Q("Footer", Bl), po = Q("Legend", cd), fo = Q("Headline", mc), Bt = v(
4295
- () => jo({ legends: d, numberFormat: u, parsingLocale: h, formattingLocale: $ }),
4296
- [d, u, h, $]
4297
- ), be = v(
4298
- () => qo({ headline: y, show: S.show, numberFormat: u, parsingLocale: h, formattingLocale: $, t: i }),
4299
- [y, S.show, u, h, $, i]
4300
- ), mo = ve(), Ze = g.border.type === "none" ? 0 : g.border.width, Qe = v(
4299
+ ), w = Qo(), { headerRef: A, footerRef: I, measurements: _ } = xh(), { formattingLocale: V, theme: Ke, themeOverrides: Je } = me(), be = v(() => xr(Ke, Je), [Ke, Je]), go = Q("Header", ql), po = Q("Footer", Il), fo = Q("Legend", dd), mo = Q("Headline", vc), Bt = v(
4300
+ () => qo({ legends: d, numberFormat: u, parsingLocale: h, formattingLocale: V }),
4301
+ [d, u, h, V]
4302
+ ), xe = v(
4303
+ () => Ko({ headline: y, show: S.show, numberFormat: u, parsingLocale: h, formattingLocale: V, t: i }),
4304
+ [y, S.show, u, h, V, i]
4305
+ ), vo = ve(), Ze = g.border.type === "none" ? 0 : g.border.width, Qe = v(
4301
4306
  () => ({
4302
4307
  width: Math.max(0, e - 2 * Ze),
4303
4308
  height: Math.max(0, t - 2 * Ze)
4304
4309
  }),
4305
4310
  [e, t, Ze]
4306
4311
  ), Ee = v(
4307
- () => be ? {
4308
- formatted: be,
4312
+ () => xe ? {
4313
+ formatted: xe,
4309
4314
  size: S.size,
4310
4315
  position: S.position,
4311
4316
  innerRadius: f.type === "polar" ? f.innerRadius : 0
4312
4317
  } : void 0,
4313
- [be, S.size, S.position, f]
4314
- ), vo = Ja(), _e = ji(mo, g.textScale, Ae, vo), xe = qi({
4318
+ [xe, S.size, S.position, f]
4319
+ ), yo = Za(), _e = qi(vo, g.textScale, be, yo), Se = Ki({
4315
4320
  measurer: _e,
4316
4321
  axes: c,
4317
4322
  numberFormat: u,
@@ -4320,22 +4325,23 @@ const yh = ({
4320
4325
  containerSize: Qe,
4321
4326
  externalMeasurements: _,
4322
4327
  headline: Ee,
4323
- formattingLocale: $,
4328
+ formattingLocale: V,
4324
4329
  annotations: p,
4325
4330
  coordSystem: f,
4326
- textScale: g.textScale
4327
- }), Pe = v(() => !xe || !Ee || !_e ? null : Ko({
4331
+ textScale: g.textScale,
4332
+ graphPadding: be.graphPadding
4333
+ }), Pe = v(() => !Se || !Ee || !_e ? null : Jo({
4328
4334
  headline: Ee,
4329
- layout: xe.layout,
4335
+ layout: Se.layout,
4330
4336
  containerSize: Qe,
4331
4337
  measurer: _e,
4332
- itemGap: Ae.headlineItemGap
4333
- }), [xe, Ee, Qe, _e, Ae.headlineItemGap]);
4334
- if (!xe) return null;
4335
- const { layout: ne, formattedAxes: yo } = xe;
4336
- return /* @__PURE__ */ a(ps, { theme: Ke, themeOverrides: Je, appearance: g, children: /* @__PURE__ */ a(Mi, { metrics: Ae, children: /* @__PURE__ */ m(Sh, { appearance: g, isEditable: o === "editable", style: { width: e, height: t }, children: [
4338
+ itemGap: be.headlineItemGap
4339
+ }), [Se, Ee, Qe, _e, be.headlineItemGap]);
4340
+ if (!Se) return null;
4341
+ const { layout: ne, formattedAxes: bo } = Se;
4342
+ return /* @__PURE__ */ a(fs, { theme: Ke, themeOverrides: Je, appearance: g, children: /* @__PURE__ */ a(Di, { metrics: be, children: /* @__PURE__ */ m(kh, { appearance: g, isEditable: o === "editable", style: { width: e, height: t }, children: [
4337
4343
  /* @__PURE__ */ a(
4338
- ho,
4344
+ go,
4339
4345
  {
4340
4346
  ref: A,
4341
4347
  headerRect: ne.header,
@@ -4347,20 +4353,20 @@ const yh = ({
4347
4353
  }
4348
4354
  ),
4349
4355
  /* @__PURE__ */ a(
4350
- yh,
4356
+ bh,
4351
4357
  {
4352
- formattedAxes: yo,
4358
+ formattedAxes: bo,
4353
4359
  panelGuide: l,
4354
4360
  plotRect: ne.plot,
4355
4361
  panelRect: ne.panel,
4356
4362
  axisRects: ne.axes,
4357
4363
  axisLabelRects: ne.axisLabels,
4358
4364
  shouldAnimate: n ?? !w,
4359
- formattingLocale: $ ?? h
4365
+ formattingLocale: V ?? h
4360
4366
  }
4361
4367
  ),
4362
4368
  /* @__PURE__ */ a(
4363
- go,
4369
+ po,
4364
4370
  {
4365
4371
  ref: I,
4366
4372
  footerRect: ne.footer,
@@ -4371,35 +4377,35 @@ const yh = ({
4371
4377
  isSourceVisible: k.isSourceVisible
4372
4378
  }
4373
4379
  ),
4374
- /* @__PURE__ */ a(po, { formattedLegends: Bt, rects: ne.legends, textScale: g.textScale }),
4375
- be && Pe && /* @__PURE__ */ a(
4376
- fo,
4380
+ /* @__PURE__ */ a(fo, { formattedLegends: Bt, rects: ne.legends, textScale: g.textScale }),
4381
+ xe && Pe && /* @__PURE__ */ a(
4382
+ mo,
4377
4383
  {
4378
- headline: be,
4384
+ headline: xe,
4379
4385
  rect: Pe.rect,
4380
4386
  resolvedSize: Pe.resolvedSize,
4381
4387
  visibleItemCount: Pe.visibleItemCount
4382
4388
  }
4383
4389
  ),
4384
- r && /* @__PURE__ */ a(hi, {})
4390
+ r && /* @__PURE__ */ a(gi, {})
4385
4391
  ] }) }) });
4386
4392
  };
4387
4393
  export {
4388
4394
  Ht as CanvasTextMeasurer,
4389
- Bl as DefaultFooter,
4390
- Zu as DefaultGrid,
4391
- jl as DefaultHeader,
4392
- gi as DefaultTooltip,
4393
- og as DevToolsPanel,
4394
- rg as GraphProvider,
4395
- ag as GraphRenderer,
4396
- $a as HoverProvider,
4397
- Hc as TextMeasurerProvider,
4398
- ps as ThemeProvider,
4399
- gs as darkTheme,
4400
- hs as lightTheme,
4395
+ Il as DefaultFooter,
4396
+ Qu as DefaultGrid,
4397
+ ql as DefaultHeader,
4398
+ pi as DefaultTooltip,
4399
+ ag as DevToolsPanel,
4400
+ og as GraphProvider,
4401
+ ig as GraphRenderer,
4402
+ Xa as HoverProvider,
4403
+ Fc as TextMeasurerProvider,
4404
+ fs as ThemeProvider,
4405
+ ps as darkTheme,
4406
+ gs as lightTheme,
4401
4407
  B as useCompiledSelector,
4402
- zn as useGraphCommandDispatcher,
4408
+ Gn as useGraphCommandDispatcher,
4403
4409
  Tt as useHoverState,
4404
4410
  ve as useTextMeasurer,
4405
4411
  s as vars