@graphysdk/react-renderer 1.8.1-beta.1787050450192 → 1.8.1-beta.1787058270465

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.
@@ -1,11 +1,11 @@
1
- import { a as Ha, c as cn, d as Ga, f as dn, i as Wa, l as Va, n as za, o as un, p as m, r as Ua, s as Ya, t as St, u as hn } from "./typography-DUFp65Tx.js";
2
- import { ANNOTATION_TOOLTIP_MARKER_GAP as Qa, AXIS_KEYS as Jt, CachedTextMeasurer as wr, DATA_LABEL_POSITIONS as Ka, DATA_LABEL_ROLES as ja, DEFAULT_GEOM_COLOR as pn, DEFAULT_HOVER_AFFORDANCE_COLOR as Zt, GROUP_VARIABLES as ge, HeuristicTextMeasurer as qa, HoverEngine as Xa, InternalError as Ja, LayoutCompiler as Za, POLAR_RIM_LABEL_GAP_PX as $a, RESTING_HOVER_STATE as pt, SetContentCaptionCommand as _a, SetContentSubtitleCommand as ei, SetContentTitleCommand as ti, TAU as kr, alignUnitFractions as gn, areAnchorsEqual as ri, areEditMenuTriggersEqual as ni, areEndpointsComparable as Pr, arePointerRegionListsEqual as oi, buildAverageLineSymbols as ai, buildCalloutHitRegions as ii, buildColumnKey as $t, buildDataLabelsContent as li, buildFontString as si, buildLayerIntroPlan as ci, buildLayerYValueFormatter as di, buildPinnedNumberValueFormatter as ui, buildPolarBarArcPath as Se, buildSliceGroupKey as _t, buildTooltipContent as hi, computeArrow as pi, computeDifferenceArrow as gi, computeDirectLabelsLayout as mi, computeLineBoxHeight as mn, computePanelBorderPaths as vi, computePanelBorderSizes as fi, countLayerGeoms as bi, createAreaPathGenerators as vn, createHeadlineItemRows as fn, createLineFillAreaGenerator as Ai, createLinePathGenerator as bn, createSegmentYReader as yi, createStableKeyGenerator as ae, createStyleResolver as er, findAnnotation as xi, findPointerRegion as Cr, formatHeadline as Si, formatLegends as wi, formatRuleValue as ki, getAestheticFromScaleAestheticKey as Ie, getAlpha as An, getAngleExtent as tr, getBarRectBounds as je, getBoundingRect as yn, getChromeDashArray as rr, getDashArray as De, getDifferenceArrowDimensions as Pi, getDifferenceArrowLabelBox as Ci, getGroup as wt, getHoverGuideLineProps as Ei, getHoverGuideRectProps as Ri, getPolarHoverGuideArcProps as Li, getRadiusExtent as kt, getRuleDashPattern as Ti, getRuleLabelTextColor as Bi, getSize as Ni, getStackRole as Ii, getUnionExtent as Di, getX as q, getXMax as Fi, getY as ne, getYMax as xn, isAnnotationMovable as Mi, isDefined as Sn, isFullTurnSweep as wn, isSafeUrl as nr, orderPointerRegions as Oi, placeCallouts as Hi, polarToUnit as Gi, positionToAngle as Wi, prepareAreaObservations as kn, prepareLineObservations as Pn, resolveArrowColor as Vi, resolveAxisLabelStyle as zi, resolveBarBorderRadiusPx as Cn, resolveBarBorderTreatment as qe, resolveBarCornerRadiiPx as Ui, resolveDataLabelStyle as Yi, resolveDeferredAnchors as Qi, resolveGraphChromeStyle as En, resolveGridLineStyle as Wt, resolveHeadlinePlacement as Ki, resolvePanelBorderStyle as Rn, resolvePolarBarCornerRadiusUnit as Ln, resolveRuleLabelStyle as ji, resolveTickLabelStyle as qi, resolveTickLineStyle as Xi, toFontSpec as Xe, toPanelCursor as Ji, toPercent as w, toViewBoxX as Tn, toViewBoxY as Bn, truncateToWidth as Zi } from "@graphysdk/viz-engine";
1
+ import { a as Ha, c as cn, d as Ga, f as dn, i as Wa, l as Va, n as za, o as un, p as m, r as Ua, s as Qa, t as St, u as hn } from "./typography-DUFp65Tx.js";
2
+ import { ANNOTATION_TOOLTIP_MARKER_GAP as Ka, AXIS_KEYS as Jt, CachedTextMeasurer as wr, DATA_LABEL_POSITIONS as Ya, DATA_LABEL_ROLES as ja, DEFAULT_GEOM_COLOR as pn, DEFAULT_HOVER_AFFORDANCE_COLOR as Zt, GROUP_VARIABLES as ge, HeuristicTextMeasurer as qa, HoverEngine as Xa, InternalError as Ja, LayoutCompiler as Za, POLAR_RIM_LABEL_GAP_PX as $a, RESTING_HOVER_STATE as pt, SetContentCaptionCommand as _a, SetContentSubtitleCommand as ei, SetContentTitleCommand as ti, TAU as kr, alignUnitFractions as gn, areAnchorsEqual as ri, areEditMenuTriggersEqual as ni, areEndpointsComparable as Pr, arePointerRegionListsEqual as oi, buildAverageLineSymbols as ai, buildCalloutHitRegions as ii, buildColumnKey as $t, buildDataLabelsContent as li, buildFontString as si, buildLayerIntroPlan as ci, buildLayerYValueFormatter as di, buildPinnedNumberValueFormatter as ui, buildPolarBarArcPath as Se, buildSliceGroupKey as _t, buildTooltipContent as hi, computeArrow as pi, computeDifferenceArrow as gi, computeDirectLabelsLayout as mi, computeLineBoxHeight as mn, computePanelBorderPaths as vi, computePanelBorderSizes as fi, countLayerGeoms as bi, createAreaPathGenerators as vn, createHeadlineItemRows as fn, createLineFillAreaGenerator as Ai, createLinePathGenerator as bn, createSegmentYReader as yi, createStableKeyGenerator as ae, createStyleResolver as er, findAnnotation as xi, findPointerRegion as Cr, formatHeadline as Si, formatLegends as wi, formatRuleValue as ki, getAestheticFromScaleAestheticKey as Ie, getAlpha as An, getAngleExtent as tr, getBarRectBounds as je, getBoundingRect as yn, getChromeDashArray as rr, getDashArray as De, getDifferenceArrowDimensions as Pi, getDifferenceArrowLabelBox as Ci, getGroup as wt, getHoverGuideLineProps as Ei, getHoverGuideRectProps as Ri, getPolarHoverGuideArcProps as Li, getRadiusExtent as kt, getRuleDashPattern as Ti, getRuleLabelTextColor as Bi, getSize as Ni, getStackRole as Ii, getUnionExtent as Di, getX as q, getXMax as Fi, getY as ne, getYMax as xn, isAnnotationMovable as Mi, isDefined as Sn, isFullTurnSweep as wn, isSafeUrl as nr, orderPointerRegions as Oi, placeCallouts as Hi, polarToUnit as Gi, positionToAngle as Wi, prepareAreaObservations as kn, prepareLineObservations as Pn, resolveArrowColor as Vi, resolveAxisLabelStyle as zi, resolveBarBorderRadiusPx as Cn, resolveBarBorderTreatment as qe, resolveBarCornerRadiiPx as Ui, resolveDataLabelStyle as Qi, resolveDeferredAnchors as Ki, resolveGraphChromeStyle as En, resolveGridLineStyle as Wt, resolveHeadlinePlacement as Yi, resolvePanelBorderStyle as Rn, resolvePolarBarCornerRadiusUnit as Ln, resolveRuleLabelStyle as ji, resolveTickLabelStyle as qi, resolveTickLineStyle as Xi, toFontSpec as Xe, toPanelCursor as Ji, toPercent as w, toViewBoxX as Tn, toViewBoxY as Bn, truncateToWidth as Zi } from "@graphysdk/viz-engine";
3
3
  import { Fragment as or, createContext as z, memo as ie, useCallback as re, useContext as M, useEffect as T, useId as V, useMemo as x, useRef as L, useState as I, useSyncExternalStore as $i } from "react";
4
4
  import { Fragment as C, jsx as a, jsxs as A } from "react/jsx-runtime";
5
5
  import { useStore as Je } from "zustand";
6
6
  import { animate as ue, motion as H, useMotionValue as ee, useReducedMotion as _i, useTransform as lt } from "motion/react";
7
7
  import { interpolatePath as el } from "d3-interpolate-path";
8
- import { useShallow as Q } from "zustand/react/shallow";
8
+ import { useShallow as K } from "zustand/react/shallow";
9
9
  import { parseFontLength as tl, parseFontWeight as rl, parseUnitlessLineHeight as nl } from "@graphysdk/viz-engine/graph-config";
10
10
  import { createStore as Nn } from "zustand/vanilla";
11
11
  import { createPortal as ar } from "react-dom";
@@ -24,8 +24,8 @@ import { Link as Hn } from "@tiptap/extension-link";
24
24
  import { Text as Gn } from "@tiptap/extension-text";
25
25
  import { TextAlign as Wn } from "@tiptap/extension-text-align";
26
26
  import { Color as Vn, FontFamily as zn, TextStyle as Un } from "@tiptap/extension-text-style";
27
- import { Underline as Yn } from "@tiptap/extension-underline";
28
- import { Placeholder as Qn, UndoRedo as Kn } from "@tiptap/extensions";
27
+ import { Underline as Qn } from "@tiptap/extension-underline";
28
+ import { Placeholder as Kn, UndoRedo as Yn } from "@tiptap/extensions";
29
29
  import { Paragraph as sl } from "@tiptap/extension-paragraph";
30
30
  import { EditorContent as cl, useEditor as dl, useEditorState as ul } from "@tiptap/react";
31
31
  import { Toolbar as me } from "@base-ui/react/toolbar";
@@ -45,7 +45,7 @@ import './history-chords.css';var Er = Object.defineProperty, vl = (e, t) => {
45
45
  });
46
46
  return t || Er(r, Symbol.toStringTag, { value: "Module" }), r;
47
47
  };
48
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.8.1-beta.1787050450192");
48
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.8.1-beta.1787058270465");
49
49
  var jn = z(null), J = () => {
50
50
  const e = M(jn);
51
51
  if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
@@ -814,7 +814,7 @@ var Wl = "_1suo8ub0", $n = (e, t, r) => {
814
814
  })
815
815
  ]
816
816
  });
817
- }, Yl = {
817
+ }, Ql = {
818
818
  geom: "bar",
819
819
  coord: "cartesian",
820
820
  swatchShape: "square",
@@ -838,7 +838,7 @@ var Wl = "_1suo8ub0", $n = (e, t, r) => {
838
838
  panelRect: n
839
839
  }),
840
840
  renderHoverCompanions: () => null
841
- }, Ql = ie(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
841
+ }, Kl = ie(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
842
842
  const o = n?.type === "wipe" ? n : null, i = x(() => bn(t.params), [t.params]), l = x(() => Ai(t.params), [t.params]), s = D(t), c = x(() => {
843
843
  const d = ae(t.data, t.mapping, t.id), u = [];
844
844
  return t.data.groupBy(ge.group).forEach((h) => {
@@ -866,7 +866,7 @@ var Wl = "_1suo8ub0", $n = (e, t, r) => {
866
866
  t.mapping,
867
867
  t.params,
868
868
  s
869
- ]).map((d) => /* @__PURE__ */ a(Kl, {
869
+ ]).map((d) => /* @__PURE__ */ a(Yl, {
870
870
  pathData: d.pathData,
871
871
  fillPath: d.fillPath,
872
872
  fillAlpha: d.fillAlpha,
@@ -888,7 +888,7 @@ var Wl = "_1suo8ub0", $n = (e, t, r) => {
888
888
  children: c
889
889
  }) : c
890
890
  });
891
- }), Kl = ({ pathData: e, fillPath: t, fillAlpha: r, color: n, strokeWidth: o, opacity: i, strokeDasharray: l, shouldAnimateTransitions: s }) => t !== void 0 && r !== void 0 ? /* @__PURE__ */ a(jl, {
891
+ }), Yl = ({ pathData: e, fillPath: t, fillAlpha: r, color: n, strokeWidth: o, opacity: i, strokeDasharray: l, shouldAnimateTransitions: s }) => t !== void 0 && r !== void 0 ? /* @__PURE__ */ a(jl, {
892
892
  fillPath: t,
893
893
  fillAlpha: r,
894
894
  linePath: e,
@@ -995,7 +995,7 @@ var Wl = "_1suo8ub0", $n = (e, t, r) => {
995
995
  coord: "cartesian",
996
996
  swatchShape: "line",
997
997
  guideMode: "crosshair",
998
- render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ a(Ql, {
998
+ render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ a(Kl, {
999
999
  layer: e,
1000
1000
  shouldAnimateTransitions: t,
1001
1001
  intro: r
@@ -1398,7 +1398,7 @@ var Wl = "_1suo8ub0", $n = (e, t, r) => {
1398
1398
  if (i != null)
1399
1399
  if (Va(o)) {
1400
1400
  const l = i;
1401
- n[o] = l, r[o] = Ya(o, l);
1401
+ n[o] = l, r[o] = Qa(o, l);
1402
1402
  } else r[o] = i;
1403
1403
  return {
1404
1404
  values: {
@@ -1651,7 +1651,7 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
1651
1651
  fontFamily: e.fontFamily ?? Ga,
1652
1652
  fontSize: e.fontSize,
1653
1653
  fontWeight: e.fontWeight
1654
- }), zs = 11.7, Or = 21.6, Us = "0 0 10 18", Ys = "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", Qs = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: i, shouldAnimateTransitions: l }) => {
1654
+ }), zs = 11.7, Or = 21.6, Us = "0 0 10 18", Qs = "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", Ks = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: i, shouldAnimateTransitions: l }) => {
1655
1655
  const s = e === "start", c = s ? -13 : -(n - 13), d = s ? c + n - 5 : c + 5 - 12, u = s ? void 0 : `rotate(180 ${d + 12 / 2} ${o / 2})`, h = s ? "0%" : "100%", g = w(1 - t), p = /* @__PURE__ */ A("g", {
1656
1656
  transform: `translate(0, ${-o / 2})`,
1657
1657
  pointerEvents: "none",
@@ -1674,7 +1674,7 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
1674
1674
  viewBox: Us,
1675
1675
  overflow: "visible",
1676
1676
  children: /* @__PURE__ */ a("path", {
1677
- d: Ys,
1677
+ d: Qs,
1678
1678
  fill: r
1679
1679
  })
1680
1680
  })
@@ -1698,7 +1698,7 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
1698
1698
  overflow: "visible",
1699
1699
  children: p
1700
1700
  });
1701
- }, Ks = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: i, shouldAnimateTransitions: l }) => {
1701
+ }, Ys = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: i, shouldAnimateTransitions: l }) => {
1702
1702
  const s = e === "start", c = s ? -13 : -(o - 13), d = w(t), u = s ? "100%" : "0%", h = /* @__PURE__ */ A("g", {
1703
1703
  transform: `translate(${-n / 2}, 0)`,
1704
1704
  pointerEvents: "none",
@@ -1745,7 +1745,7 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
1745
1745
  style: Be(t),
1746
1746
  children: e
1747
1747
  })] });
1748
- return o ? /* @__PURE__ */ a(Qs, {
1748
+ return o ? /* @__PURE__ */ a(Ks, {
1749
1749
  labelPosition: n,
1750
1750
  linePosition: i,
1751
1751
  color: l,
@@ -1753,7 +1753,7 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
1753
1753
  pillHeight: p,
1754
1754
  text: v,
1755
1755
  shouldAnimateTransitions: u
1756
- }) : /* @__PURE__ */ a(Ks, {
1756
+ }) : /* @__PURE__ */ a(Ys, {
1757
1757
  labelPosition: n,
1758
1758
  linePosition: i,
1759
1759
  color: l,
@@ -1785,7 +1785,7 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
1785
1785
  vectorEffect: "non-scaling-stroke"
1786
1786
  });
1787
1787
  }, Xs = ie(function({ layer: t, coordSystem: r, formattingLocale: n, shouldAnimateTransitions: o }) {
1788
- const i = we(), l = ve(), { guides: s, numberFormat: c, layers: d, colorScale: u } = E(Q((F) => ({
1788
+ const i = we(), l = ve(), { guides: s, numberFormat: c, layers: d, colorScale: u } = E(K((F) => ({
1789
1789
  guides: F.guides,
1790
1790
  numberFormat: F.config.numberFormat,
1791
1791
  layers: F.spec.layers,
@@ -1858,7 +1858,7 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
1858
1858
  "data-testid": "hovered-point",
1859
1859
  children: r
1860
1860
  }) : r;
1861
- }, Yt = (e) => {
1861
+ }, Qt = (e) => {
1862
1862
  const [t, ...r] = e;
1863
1863
  if (!t) return "";
1864
1864
  const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
@@ -1919,9 +1919,9 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
1919
1919
  }
1920
1920
  if (t.length === 0) return null;
1921
1921
  t.sort((i, l) => i.angle - l.angle);
1922
- const r = t.map((i) => i.outer), n = t.map((i) => i.inner), o = Yt(r);
1922
+ const r = t.map((i) => i.outer), n = t.map((i) => i.inner), o = Qt(r);
1923
1923
  return {
1924
- fillPath: n.some((i) => i.x !== 0 || i.y !== 0) ? `${o} ${Yt([...n].reverse())}` : o,
1924
+ fillPath: n.some((i) => i.x !== 0 || i.y !== 0) ? `${o} ${Qt([...n].reverse())}` : o,
1925
1925
  outlinePath: o
1926
1926
  };
1927
1927
  }, $s = ({ layer: e, primary: t, companions: r }) => {
@@ -2420,7 +2420,7 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
2420
2420
  point: X(n, o)
2421
2421
  });
2422
2422
  }
2423
- return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Yt(t.map((r) => r.point)));
2423
+ return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Qt(t.map((r) => r.point)));
2424
2424
  }, dc = ({ layer: e, primary: t, companions: r }) => {
2425
2425
  const n = D(e), o = wt(t.observation), i = x(() => Co([...e.data.filter(ge.group, "eq", o)]), [e.data, o]);
2426
2426
  if (!i) return null;
@@ -2521,7 +2521,7 @@ var Fs = "_2qyyu60", Dr = 2, Ms = 12, Os = 12, Fr = 1, Mr = 2, Hs = 4, Ze = (e)
2521
2521
  }
2522
2522
  }, gc = {
2523
2523
  bar: {
2524
- cartesian: Yl,
2524
+ cartesian: Ql,
2525
2525
  polar: sc
2526
2526
  },
2527
2527
  line: {
@@ -2566,7 +2566,7 @@ function vc(e = []) {
2566
2566
  for (const r of e) (t[r.geom] ??= {})[r.coord] = r;
2567
2567
  return (r, n) => t[r]?.[n] ?? null;
2568
2568
  }
2569
- var Qt = (e) => {
2569
+ var Kt = (e) => {
2570
2570
  const t = L(e);
2571
2571
  return t.current = e, t;
2572
2572
  }, fc = () => {
@@ -2600,7 +2600,7 @@ var Qt = (e) => {
2600
2600
  o.update(r);
2601
2601
  }, [o, r]), o;
2602
2602
  }, Eo = z(null), yc = ({ children: e }) => {
2603
- const { layers: t, coordSystem: r } = E(Q((s) => ({
2603
+ const { layers: t, coordSystem: r } = E(K((s) => ({
2604
2604
  layers: s.layers,
2605
2605
  coordSystem: s.coordSystem
2606
2606
  }))), n = Ac(t, r), [o] = I(() => fc()), i = L(null), l = L(null);
@@ -2646,7 +2646,7 @@ var Sc = ({ hitTest: e, input: t }) => {
2646
2646
  children: t
2647
2647
  });
2648
2648
  }, Ro = (e, t) => {
2649
- const r = Qt(e), n = Qt(t), o = L(null), i = L(null), l = x(() => {
2649
+ const r = Kt(e), n = Kt(t), o = L(null), i = L(null), l = x(() => {
2650
2650
  const s = () => {
2651
2651
  i.current !== null && (clearTimeout(i.current), i.current = null), o.current = null;
2652
2652
  }, c = () => {
@@ -2849,6 +2849,15 @@ var Tc = ({ render: e, input: t }) => {
2849
2849
  graphPanel: {
2850
2850
  toolbarButton: "الرسم البياني",
2851
2851
  graphTypeSection: { title: "نوع الرسم البياني" },
2852
+ mappingSection: {
2853
+ title: "البيانات",
2854
+ x: "المحور السيني",
2855
+ y: "القيمة",
2856
+ color: "اللون",
2857
+ size: "الحجم",
2858
+ label: "التسمية",
2859
+ none: "بلا"
2860
+ },
2852
2861
  polarSection: {
2853
2862
  title: "قطبي",
2854
2863
  innerRadius: "نصف القطر الداخلي",
@@ -2985,20 +2994,6 @@ var Tc = ({ render: e, input: t }) => {
2985
2994
  linesOnly: "خطوط فقط"
2986
2995
  }
2987
2996
  },
2988
- columnMapping: {
2989
- title: "البيانات",
2990
- xAxis: "المحور السيني",
2991
- yAxis: "المحور الصادي",
2992
- leftYAxis: "المحور الصادي (يسار)",
2993
- rightYAxis: "المحور الصادي (يمين)",
2994
- slices: "القيم (الشرائح)",
2995
- labels: "التسميات",
2996
- size: "الحجم",
2997
- shape: "الشكل",
2998
- reset: "إعادة التعيين إلى تلقائي",
2999
- addSeries: "إضافة سلسلة",
3000
- removeSeries: "إزالة السلسلة"
3001
- },
3002
2997
  axesPanel: {
3003
2998
  toolbarButton: "المحاور",
3004
2999
  mainAxisSection: {
@@ -3628,6 +3623,15 @@ var Tc = ({ render: e, input: t }) => {
3628
3623
  graphPanel: {
3629
3624
  toolbarButton: "Graph",
3630
3625
  graphTypeSection: { title: "Graph type" },
3626
+ mappingSection: {
3627
+ title: "Data",
3628
+ x: "X-axis",
3629
+ y: "Value",
3630
+ color: "Colour",
3631
+ size: "Size",
3632
+ label: "Label",
3633
+ none: "None"
3634
+ },
3631
3635
  polarSection: {
3632
3636
  title: "Polar",
3633
3637
  innerRadius: "Inner radius",
@@ -3764,20 +3768,6 @@ var Tc = ({ render: e, input: t }) => {
3764
3768
  linesOnly: "Lines only"
3765
3769
  }
3766
3770
  },
3767
- columnMapping: {
3768
- title: "Data",
3769
- xAxis: "X-axis",
3770
- yAxis: "Y-axis",
3771
- leftYAxis: "Y-axis (left)",
3772
- rightYAxis: "Y-axis (right)",
3773
- slices: "Values (slices)",
3774
- labels: "Labels",
3775
- size: "Size",
3776
- shape: "Shape",
3777
- reset: "Reset to auto",
3778
- addSeries: "Add series",
3779
- removeSeries: "Remove series"
3780
- },
3781
3771
  axesPanel: {
3782
3772
  toolbarButton: "Axes",
3783
3773
  mainAxisSection: {
@@ -4351,13 +4341,13 @@ var Tc = ({ render: e, input: t }) => {
4351
4341
  editor: Vc,
4352
4342
  graph: zc,
4353
4343
  dir: "ltr"
4354
- }, Yc = { editor: {
4344
+ }, Qc = { editor: {
4355
4345
  colorPanel: {
4356
4346
  backgroundSection: { grey: "Gray" },
4357
4347
  borderType: { grey: "Gray" }
4358
4348
  },
4359
4349
  highlighting: { highlightStyle: { grey: "Gray" } }
4360
- } }, Qc = {
4350
+ } }, Kc = {
4361
4351
  save: "Guardar",
4362
4352
  cancel: "Cancelar",
4363
4353
  confirm: "Confirmar",
@@ -4368,7 +4358,7 @@ var Tc = ({ render: e, input: t }) => {
4368
4358
  millions: "M",
4369
4359
  billions: "MM"
4370
4360
  }
4371
- }, Kc = {
4361
+ }, Yc = {
4372
4362
  title: "Editor Graphy",
4373
4363
  description: "Edite o seu conteúdo aqui",
4374
4364
  graphTypes: {
@@ -4413,6 +4403,15 @@ var Tc = ({ render: e, input: t }) => {
4413
4403
  graphPanel: {
4414
4404
  toolbarButton: "Gráfico",
4415
4405
  graphTypeSection: { title: "Tipo de gráfico" },
4406
+ mappingSection: {
4407
+ title: "Dados",
4408
+ x: "Eixo X",
4409
+ y: "Valor",
4410
+ color: "Cor",
4411
+ size: "Tamanho",
4412
+ label: "Etiqueta",
4413
+ none: "Nenhum"
4414
+ },
4416
4415
  polarSection: {
4417
4416
  title: "Polar",
4418
4417
  innerRadius: "Raio interno",
@@ -4549,20 +4548,6 @@ var Tc = ({ render: e, input: t }) => {
4549
4548
  linesOnly: "Apenas linhas"
4550
4549
  }
4551
4550
  },
4552
- columnMapping: {
4553
- title: "Dados",
4554
- xAxis: "Eixo X",
4555
- yAxis: "Eixo Y",
4556
- leftYAxis: "Eixo Y (esquerda)",
4557
- rightYAxis: "Eixo Y (direita)",
4558
- slices: "Valores (fatias)",
4559
- labels: "Etiquetas",
4560
- size: "Tamanho",
4561
- shape: "Forma",
4562
- reset: "Repor para automático",
4563
- addSeries: "Adicionar série",
4564
- removeSeries: "Remover série"
4565
- },
4566
4551
  axesPanel: {
4567
4552
  toolbarButton: "Eixos",
4568
4553
  mainAxisSection: {
@@ -5132,13 +5117,13 @@ var Tc = ({ render: e, input: t }) => {
5132
5117
  }
5133
5118
  }
5134
5119
  }, qc = {
5135
- common: Qc,
5136
- editor: Kc,
5120
+ common: Kc,
5121
+ editor: Yc,
5137
5122
  graph: jc,
5138
5123
  dir: "ltr"
5139
5124
  }, xt = {
5140
5125
  "en-GB": Uc,
5141
- "en-US": Yc,
5126
+ "en-US": Qc,
5142
5127
  ar: Gc,
5143
5128
  "pt-PT": qc
5144
5129
  }, Xc = ({ locale: e, overrides: t, fallbackLocale: r = "en-GB" }) => {
@@ -5237,7 +5222,7 @@ var Tc = ({ render: e, input: t }) => {
5237
5222
  handwritten: "'Permanent Marker', cursive",
5238
5223
  fineliner: "'Intruding Cat', cursive",
5239
5224
  brand: "var(--brand-font-family), 'Aeonik', 'Inter', sans-serif"
5240
- }, Qe = ({ content: e }) => /* @__PURE__ */ a(C, { children: Io(e.content ?? [e]) }), Io = (e) => e.map((t, r) => sd(t, r)), sd = (e, t) => {
5225
+ }, Ke = ({ content: e }) => /* @__PURE__ */ a(C, { children: Io(e.content ?? [e]) }), Io = (e) => e.map((t, r) => sd(t, r)), sd = (e, t) => {
5241
5226
  if (e.type === "text") return cd(e, t);
5242
5227
  if (e.type === "hardBreak" || e.type === "hard_break") return /* @__PURE__ */ a("br", {}, t);
5243
5228
  const r = e.content ? Io(e.content) : null;
@@ -5342,13 +5327,13 @@ var Tc = ({ render: e, input: t }) => {
5342
5327
  const t = e?.textAlign;
5343
5328
  if (t === "left" || t === "right" || t === "center" || t === "justify") return t;
5344
5329
  }, Do = (e) => e ? { textAlign: e } : void 0;
5345
- function Ye(e) {
5330
+ function Qe(e) {
5346
5331
  const { store: t } = ke();
5347
5332
  return Je(t, e);
5348
5333
  }
5349
5334
  var md = "_19519k80";
5350
5335
  var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd = "_19519k88", xd = "_19519k89", Sd = "_19519k8a", wd = (e) => {
5351
- const { overlayRef: t } = ke(), r = L(null), [n, o] = I(!1), i = Qt(e);
5336
+ const { overlayRef: t } = ke(), r = L(null), [n, o] = I(!1), i = Kt(e);
5352
5337
  return T(() => {
5353
5338
  const l = t.current;
5354
5339
  if (!l) return;
@@ -5381,7 +5366,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5381
5366
  boundary: [],
5382
5367
  padding: Pd
5383
5368
  }, Ed = () => {
5384
- const e = E(Q((S) => ({
5369
+ const e = E(K((S) => ({
5385
5370
  layers: S.layers,
5386
5371
  coordSystem: S.coordSystem,
5387
5372
  scales: S.scales,
@@ -5389,7 +5374,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5389
5374
  numberFormat: S.config.numberFormat,
5390
5375
  parsingLocale: S.config.parsingLocale,
5391
5376
  comments: S.annotations.comments
5392
- }))), { formattingLocale: t, colorScheme: r } = J(), n = Ye((S) => S.hover), o = Ye((S) => S.tooltipAnchor), i = Ye((S) => S.isPointerSuspended), l = te("Tooltip", Rd), s = L(() => {
5377
+ }))), { formattingLocale: t, colorScheme: r } = J(), n = Qe((S) => S.hover), o = Qe((S) => S.tooltipAnchor), i = Qe((S) => S.isPointerSuspended), l = te("Tooltip", Rd), s = L(() => {
5393
5378
  }), { cursorRef: c, isInside: d } = wd(() => s.current()), u = x(() => hi({
5394
5379
  ...e,
5395
5380
  hover: n,
@@ -5428,7 +5413,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5428
5413
  children: [
5429
5414
  e.comment !== null && /* @__PURE__ */ a("div", {
5430
5415
  className: "_19519k82",
5431
- children: /* @__PURE__ */ a(Qe, { content: e.comment })
5416
+ children: /* @__PURE__ */ a(Ke, { content: e.comment })
5432
5417
  }),
5433
5418
  e.header !== null && /* @__PURE__ */ a("div", {
5434
5419
  className: "_19519k81",
@@ -5472,7 +5457,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5472
5457
  open: e,
5473
5458
  placement: t !== null ? t.placement : "right",
5474
5459
  middleware: t !== null ? [
5475
- mt(Qa),
5460
+ mt(Ka),
5476
5461
  vt(ct),
5477
5462
  gt(ct)
5478
5463
  ] : [
@@ -5509,7 +5494,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5509
5494
  coordKey: null,
5510
5495
  chromeDelaySeconds: 0
5511
5496
  }, pr = z(ut), Id = ({ intro: e, children: t }) => {
5512
- const { layers: r, coordSystem: n, scales: o } = E(Q((l) => ({
5497
+ const { layers: r, coordSystem: n, scales: o } = E(K((l) => ({
5513
5498
  layers: l.layers,
5514
5499
  coordSystem: l.coordSystem,
5515
5500
  scales: l.scales
@@ -5560,7 +5545,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5560
5545
  const r = {};
5561
5546
  for (const n of ja) {
5562
5547
  const o = {};
5563
- for (const i of Ka) o[i] = Yi(e, n, i, t);
5548
+ for (const i of Ya) o[i] = Qi(e, n, i, t);
5564
5549
  r[n] = o;
5565
5550
  }
5566
5551
  return r;
@@ -5584,12 +5569,12 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5584
5569
  if (i) {
5585
5570
  if (o.labelRotation !== 0) {
5586
5571
  const p = h.map((v) => v.width);
5587
- return Yr(p, g) + 2 * d;
5572
+ return Qr(p, g) + 2 * d;
5588
5573
  }
5589
5574
  return Math.max(...h.map((p) => p.height)) + d;
5590
5575
  }
5591
- return Yr(h.map((p) => p.width), g) + d;
5592
- }, Yr = (e, t) => Math.min(Math.max(...e), t), Hd = ({ axisLabelStyles: e }) => (t) => mn(e[Ie(t.scaleAestheticKey)]), Ho = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, i) => {
5576
+ return Qr(h.map((p) => p.width), g) + d;
5577
+ }, Qr = (e, t) => Math.min(Math.max(...e), t), Hd = ({ axisLabelStyles: e }) => (t) => mn(e[Ie(t.scaleAestheticKey)]), Ho = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, i) => {
5593
5578
  const l = t[n][o], s = e.measureText(i, Xe(l, r));
5594
5579
  return {
5595
5580
  ...s,
@@ -5610,7 +5595,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5610
5595
  height: Math.max(0, ...i.map((l) => l.height))
5611
5596
  };
5612
5597
  }, Vd = ({ textMeasurer: e, textScale: t, metrics: r }) => (n, o) => Go(n, o, e, t, r).map((i) => i.width), zd = ({ textMeasurer: e, textScale: t, metrics: r }) => (n, o) => {
5613
- const i = Kt("value", o, t, r.fonts.familyDefault);
5598
+ const i = Yt("value", o, t, r.fonts.familyDefault);
5614
5599
  return {
5615
5600
  width: e.measureText(n, i).width,
5616
5601
  height: i.size * to
@@ -5628,9 +5613,9 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5628
5613
  return (i, l) => i.kind === "perGroup" ? n(i, l) : o(i.value, l);
5629
5614
  }, Go = (e, t, r, n, o) => {
5630
5615
  const i = {
5631
- value: Kt("value", t, n, o.fonts.familyDefault),
5632
- label: Kt("label", t, n, o.fonts.familyDefault)
5633
- }, l = (s) => Yd(s, i, r);
5616
+ value: Yt("value", t, n, o.fonts.familyDefault),
5617
+ label: Yt("label", t, n, o.fonts.familyDefault)
5618
+ }, l = (s) => Qd(s, i, r);
5634
5619
  return e.items.map((s) => {
5635
5620
  const c = fn(s).map(l), d = Math.max(0, c.length - 1) * o.headlineRowGap;
5636
5621
  return {
@@ -5638,7 +5623,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5638
5623
  height: Wo(c.map((u) => u.height)) + d
5639
5624
  };
5640
5625
  });
5641
- }, Yd = (e, t, r) => {
5626
+ }, Qd = (e, t, r) => {
5642
5627
  let n = 0, o = 0;
5643
5628
  for (const i of e.segments) if (i.kind === "text") {
5644
5629
  const l = t[i.fontRole];
@@ -5649,10 +5634,10 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5649
5634
  width: n + Math.max(0, e.segments.length - 1) * e.gap,
5650
5635
  height: o
5651
5636
  };
5652
- }, Kt = (e, t, r, n) => ({
5637
+ }, Yt = (e, t, r, n) => ({
5653
5638
  family: n,
5654
5639
  size: Ct(e === "value" ? _l[t] : es[t], r)
5655
- }), Wo = (e) => e.reduce((t, r) => t + r, 0), mr = (e, t) => ur(e, t).size * e.lineHeight, Vo = (e, t) => e ? t : 0, Qd = ({ textMeasurer: e, textScale: t, metrics: r }) => (n) => {
5640
+ }), Wo = (e) => e.reduce((t, r) => t + r, 0), mr = (e, t) => ur(e, t).size * e.lineHeight, Vo = (e, t) => e ? t : 0, Kd = ({ textMeasurer: e, textScale: t, metrics: r }) => (n) => {
5656
5641
  const o = mr(r.fonts.legendLabel, t), i = ur(r.fonts.legendLabel, t);
5657
5642
  if (n.position === "top" || n.position === "bottom") return Math.max(o, r.legendSwatchHeight) + r.legendPillVerticalChrome;
5658
5643
  const l = n.items.map((s) => {
@@ -5660,7 +5645,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5660
5645
  return d + (d > 0 ? r.legendSwatchGap : 0) + c;
5661
5646
  });
5662
5647
  return Math.max(...l) + r.legendPillHorizontalChrome;
5663
- }, Kd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, Xe(t[o], r)), jd = Object.freeze({}), qd = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = jd }) => {
5648
+ }, Yd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, Xe(t[o], r)), jd = Object.freeze({}), qd = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = jd }) => {
5664
5649
  const o = Mo(), i = Lt(), l = gr(), s = Oo(), c = L(n);
5665
5650
  return c.current = n, x(() => {
5666
5651
  if (!e) return null;
@@ -5669,7 +5654,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5669
5654
  tickLabelStyles: l,
5670
5655
  tickLineStyles: s,
5671
5656
  familyDefault: d
5672
- }), h = Hd({ axisLabelStyles: o }), g = Qd({
5657
+ }), h = Hd({ axisLabelStyles: o }), g = Kd({
5673
5658
  textMeasurer: e,
5674
5659
  textScale: t,
5675
5660
  metrics: r
@@ -5702,7 +5687,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5702
5687
  },
5703
5688
  measureHeadline: (f, y) => (c.current.measureHeadline ?? p)(f, y),
5704
5689
  measureHeadlineItemWidths: (f, y) => (c.current.measureHeadlineItemWidths ?? v)(f, y),
5705
- measureTickLabel: Kd({
5690
+ measureTickLabel: Yd({
5706
5691
  textMeasurer: e,
5707
5692
  tickLabelStyles: l,
5708
5693
  familyDefault: d
@@ -5760,8 +5745,8 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5760
5745
  v,
5761
5746
  b,
5762
5747
  e
5763
- ]), Jd = (e) => !e.isVisible || e.ticks.length === 0, Zd = (e) => e.items.length === 0, Qr = 0.5, zo = z(/* @__PURE__ */ new Map()), Uo = z(() => {
5764
- }), Yo = z(/* @__PURE__ */ new Set()), $d = ({ children: e }) => {
5748
+ ]), Jd = (e) => !e.isVisible || e.ticks.length === 0, Zd = (e) => e.items.length === 0, Kr = 0.5, zo = z(/* @__PURE__ */ new Map()), Uo = z(() => {
5749
+ }), Qo = z(/* @__PURE__ */ new Set()), $d = ({ children: e }) => {
5765
5750
  const [t, r] = I(() => /* @__PURE__ */ new Map()), [n] = I(() => /* @__PURE__ */ new Set()), o = L(/* @__PURE__ */ new Map()), i = re((l, s, c) => {
5766
5751
  const d = o.current.get(l) ?? /* @__PURE__ */ new Set();
5767
5752
  if (c !== null) {
@@ -5772,7 +5757,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5772
5757
  }, []);
5773
5758
  return /* @__PURE__ */ a(Uo.Provider, {
5774
5759
  value: i,
5775
- children: /* @__PURE__ */ a(Yo.Provider, {
5760
+ children: /* @__PURE__ */ a(Qo.Provider, {
5776
5761
  value: n,
5777
5762
  children: /* @__PURE__ */ a(zo.Provider, {
5778
5763
  value: t,
@@ -5800,19 +5785,19 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5800
5785
  r,
5801
5786
  t
5802
5787
  ]), n;
5803
- }, ru = () => M(Yo), nu = (e, t, r) => {
5788
+ }, ru = () => M(Qo), nu = (e, t, r) => {
5804
5789
  const n = e.get(t);
5805
- if (n !== void 0 && Math.abs(n.width - r.width) < Qr && Math.abs(n.height - r.height) < Qr) return e;
5790
+ if (n !== void 0 && Math.abs(n.width - r.width) < Kr && Math.abs(n.height - r.height) < Kr) return e;
5806
5791
  const o = new Map(e);
5807
5792
  return o.set(t, r), o;
5808
5793
  }, ou = (e, t) => {
5809
5794
  if (!e.has(t)) return e;
5810
5795
  const r = new Map(e);
5811
5796
  return r.delete(t), r;
5812
- }, Qo = "data-edit-kind", au = "data-edit-id", iu = "observation", lu = /* @__PURE__ */ new Set(["annotation"]), su = (e) => lu.has(e.kind), cu = (e, t) => e === t ? !0 : e === null || t === null || e.kind !== t.kind ? !1 : e.id === t.id, $e = (e) => ({
5813
- [Qo]: e.kind,
5797
+ }, Ko = "data-edit-kind", au = "data-edit-id", iu = "observation", lu = /* @__PURE__ */ new Set(["annotation"]), su = (e) => lu.has(e.kind), cu = (e, t) => e === t ? !0 : e === null || t === null || e.kind !== t.kind ? !1 : e.id === t.id, $e = (e) => ({
5798
+ [Ko]: e.kind,
5814
5799
  [au]: e.id
5815
- }), du = () => ({ [Qo]: iu }), Rf = (e, t) => e !== null && e.annotationId === t ? e : null, uu = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, Lf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, hu = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, Tf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, pu = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && ri(e.point.anchor, t.point.anchor), Bf = (e, t) => e !== null && e.annotationId === t ? e : null, gu = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, ht = ({ standingInteraction: e }, t) => e !== null && Ee(e, t) ? e : null, mu = (e, t) => {
5800
+ }), du = () => ({ [Ko]: iu }), Rf = (e, t) => e !== null && e.annotationId === t ? e : null, uu = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, Lf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, hu = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, Tf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, pu = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && ri(e.point.anchor, t.point.anchor), Bf = (e, t) => e !== null && e.annotationId === t ? e : null, gu = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, ht = ({ standingInteraction: e }, t) => e !== null && Ee(e, t) ? e : null, mu = (e, t) => {
5816
5801
  if (e === null) return !1;
5817
5802
  switch (t.kind) {
5818
5803
  case "difference-arrow-endpoint-drag":
@@ -5828,7 +5813,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5828
5813
  case "menu":
5829
5814
  return !1;
5830
5815
  }
5831
- }, Ee = (e, t) => e.kind === t, Ko = () => Nn((e) => ({
5816
+ }, Ee = (e, t) => e.kind === t, Yo = () => Nn((e) => ({
5832
5817
  menuTrigger: null,
5833
5818
  chromeUnderPointer: null,
5834
5819
  editTargetUnderPointer: null,
@@ -5838,8 +5823,8 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5838
5823
  setEditTargetUnderPointer: (t) => e((r) => cu(r.editTargetUnderPointer, t) ? r : { editTargetUnderPointer: t }),
5839
5824
  claimInteraction: (t) => e((r) => mu(r.standingInteraction, t) ? r : { standingInteraction: t }),
5840
5825
  releaseInteraction: (t) => e((r) => r.standingInteraction?.kind === t ? { standingInteraction: null } : r)
5841
- })), vr = z(null), vu = Ko(), Nf = ({ children: e }) => {
5842
- const [t] = I(() => Ko());
5826
+ })), vr = z(null), vu = Yo(), Nf = ({ children: e }) => {
5827
+ const [t] = I(() => Yo());
5843
5828
  return /* @__PURE__ */ a(vr.Provider, {
5844
5829
  value: t,
5845
5830
  children: e
@@ -5849,7 +5834,7 @@ var vd = "_19519k83", fd = "_19519k84", bd = "_19519k85", Ad = "_19519k87", yd =
5849
5834
  if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
5850
5835
  return e;
5851
5836
  };
5852
- function Ke(e) {
5837
+ function Ye(e) {
5853
5838
  return Je(M(vr) ?? vu, e);
5854
5839
  }
5855
5840
  var jo = z(null), fu = ({ panelRect: e, children: t }) => {
@@ -5863,7 +5848,7 @@ var jo = z(null), fu = ({ panelRect: e, children: t }) => {
5863
5848
  if (e === null) throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");
5864
5849
  return e;
5865
5850
  }, Au = (e) => {
5866
- const { formattingLocale: t } = J(), r = we(), { fonts: n } = xe(), o = Ke((b) => ht(b, "difference-arrow-endpoint-drag")), { differenceArrows: i, mainAxis: l, textScale: s, parsingLocale: c } = E(Q((b) => ({
5851
+ const { formattingLocale: t } = J(), r = we(), { fonts: n } = xe(), o = Ye((b) => ht(b, "difference-arrow-endpoint-drag")), { differenceArrows: i, mainAxis: l, textScale: s, parsingLocale: c } = E(K((b) => ({
5867
5852
  differenceArrows: b.annotations.differenceArrows,
5868
5853
  mainAxis: b.coordSystem.type === "cartesian" ? b.coordSystem.mainAxis : "x",
5869
5854
  textScale: b.config.appearance.textScale,
@@ -5881,7 +5866,7 @@ var jo = z(null), fu = ({ panelRect: e, children: t }) => {
5881
5866
  s,
5882
5867
  d
5883
5868
  ]), p = x(() => yu(r, n.familyDefault), [r, n.familyDefault]), v = x(() => i.map((b) => {
5884
- const f = Kr(b, g, p);
5869
+ const f = Yr(b, g, p);
5885
5870
  return {
5886
5871
  ...f,
5887
5872
  arrow: b,
@@ -5900,7 +5885,7 @@ var jo = z(null), fu = ({ panelRect: e, children: t }) => {
5900
5885
  if (b.id !== o.annotationId) return b;
5901
5886
  const f = xu(b.committedArrow, o);
5902
5887
  return {
5903
- ...Kr(f, g, p),
5888
+ ...Yr(f, g, p),
5904
5889
  arrow: f,
5905
5890
  committedArrow: b.committedArrow,
5906
5891
  committedLabelBox: b.committedLabelBox,
@@ -5914,7 +5899,7 @@ var jo = z(null), fu = ({ panelRect: e, children: t }) => {
5914
5899
  g,
5915
5900
  p
5916
5901
  ]);
5917
- }, Kr = (e, t, r) => {
5902
+ }, Yr = (e, t, r) => {
5918
5903
  const n = gi({
5919
5904
  arrow: e,
5920
5905
  ...t
@@ -6035,7 +6020,7 @@ var Eu = "vultop2", Ru = "vultop3", Lu = "vultop4", Tu = "vultop5", Bu = "vultop
6035
6020
  }),
6036
6021
  Jo,
6037
6022
  Gn,
6038
- Kn,
6023
+ Yn,
6039
6024
  Mn.configure({ levels: [
6040
6025
  1,
6041
6026
  2,
@@ -6043,7 +6028,7 @@ var Eu = "vultop2", Ru = "vultop3", Lu = "vultop4", Tu = "vultop5", Bu = "vultop
6043
6028
  ] }),
6044
6029
  Dn,
6045
6030
  On,
6046
- Yn,
6031
+ Qn,
6047
6032
  Wn.configure({ types: ["heading", "paragraph"] }),
6048
6033
  Hn.configure({
6049
6034
  openOnClick: !1,
@@ -6054,7 +6039,7 @@ var Eu = "vultop2", Ru = "vultop3", Lu = "vultop4", Tu = "vultop5", Bu = "vultop
6054
6039
  zn,
6055
6040
  Fn,
6056
6041
  Hu.configure({ isTitleVisible: r }),
6057
- Qn.configure({
6042
+ Kn.configure({
6058
6043
  showOnlyCurrent: !1,
6059
6044
  placeholder: ({ pos: o, editor: i }) => {
6060
6045
  if (r && o === 0) return e;
@@ -6066,7 +6051,7 @@ var Eu = "vultop2", Ru = "vultop3", Lu = "vultop4", Tu = "vultop5", Bu = "vultop
6066
6051
  Vt,
6067
6052
  Jo,
6068
6053
  Gn,
6069
- Kn,
6054
+ Yn,
6070
6055
  Mn.configure({ levels: [
6071
6056
  1,
6072
6057
  2,
@@ -6074,7 +6059,7 @@ var Eu = "vultop2", Ru = "vultop3", Lu = "vultop4", Tu = "vultop5", Bu = "vultop
6074
6059
  ] }),
6075
6060
  Dn,
6076
6061
  On,
6077
- Yn,
6062
+ Qn,
6078
6063
  Wn.configure({ types: ["heading", "paragraph"] }),
6079
6064
  Hn.configure({
6080
6065
  openOnClick: !1,
@@ -6084,12 +6069,12 @@ var Eu = "vultop2", Ru = "vultop3", Lu = "vultop4", Tu = "vultop5", Bu = "vultop
6084
6069
  Vn,
6085
6070
  zn,
6086
6071
  Fn,
6087
- Qn.configure({
6072
+ Kn.configure({
6088
6073
  showOnlyCurrent: !1,
6089
6074
  placeholder: ({ pos: t }) => t === 0 ? e : ""
6090
6075
  })
6091
6076
  ], Vu = ({ isTitleVisible: e, isSubtitleVisible: t }) => e && t ? Vt.extend({ content: "block{2,}" }) : Vt, zu = "yl2d2l0";
6092
- var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l7", Qu = "yl2d2l8", _o = "yl2d2l9", Ku = "yl2d2la", ju = "yl2d2lb", qu = "yl2d2lc", Xu = "yl2d2ld", Ju = "yl2d2le", Zu = "_1qa8u0q0", $u = "_1qa8u0q1", _u = "_1qa8u0q2", eh = "_1qa8u0q3", th = "_1qa8u0q4", rh = 0.01, nh = ({ value: e, onChange: t, label: r }) => /* @__PURE__ */ a(We.Root, {
6077
+ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Qu = "yl2d2l7", Ku = "yl2d2l8", _o = "yl2d2l9", Yu = "yl2d2la", ju = "yl2d2lb", qu = "yl2d2lc", Xu = "yl2d2ld", Ju = "yl2d2le", Zu = "_1qa8u0q0", $u = "_1qa8u0q1", _u = "_1qa8u0q2", eh = "_1qa8u0q3", th = "_1qa8u0q4", rh = 0.01, nh = ({ value: e, onChange: t, label: r }) => /* @__PURE__ */ a(We.Root, {
6093
6078
  className: Zu,
6094
6079
  value: e,
6095
6080
  onValueChange: (n) => t(n),
@@ -6172,11 +6157,11 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6172
6157
  className: jt,
6173
6158
  children: e
6174
6159
  }), /* @__PURE__ */ a("div", {
6175
- className: Yu,
6160
+ className: Qu,
6176
6161
  children: t.map((o) => /* @__PURE__ */ a("button", {
6177
6162
  type: "button",
6178
6163
  "aria-label": o,
6179
- className: Qu,
6164
+ className: Ku,
6180
6165
  "data-active": dh(o, r),
6181
6166
  onMouseDown: (i) => i.preventDefault(),
6182
6167
  onClick: () => n(o),
@@ -6197,7 +6182,7 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6197
6182
  className: jt,
6198
6183
  children: n("graph.colorDropdown.custom")
6199
6184
  }), /* @__PURE__ */ A(G.Trigger, {
6200
- className: Ku,
6185
+ className: Yu,
6201
6186
  onMouseDown: (c) => c.preventDefault(),
6202
6187
  "aria-label": n("graph.colorDropdown.pickCustom"),
6203
6188
  children: [/* @__PURE__ */ a("span", {
@@ -6292,7 +6277,7 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6292
6277
  }), Sh = ({ children: e }) => {
6293
6278
  const t = se();
6294
6279
  return t === null ? null : ar(/* @__PURE__ */ a(be, { children: e }), t);
6295
- }, K = {
6280
+ }, Y = {
6296
6281
  Portal: Sh,
6297
6282
  Root: Ah,
6298
6283
  Group: yh,
@@ -6542,7 +6527,7 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6542
6527
  n && s(t ?? "");
6543
6528
  }, [n, t]);
6544
6529
  const d = () => {
6545
- Yh(e, l), o(!1);
6530
+ Qh(e, l), o(!1);
6546
6531
  }, u = () => {
6547
6532
  s(""), o(!1);
6548
6533
  }, h = (p) => {
@@ -6601,7 +6586,7 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6601
6586
  }) })
6602
6587
  })]
6603
6588
  });
6604
- }, Yh = (e, t) => {
6589
+ }, Qh = (e, t) => {
6605
6590
  const r = t.trim(), { selection: n } = e.state;
6606
6591
  if (!r) {
6607
6592
  e.chain().focus().extendMarkRange("link").unsetLink().run();
@@ -6617,7 +6602,7 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6617
6602
  }
6618
6603
  const o = Hh(e);
6619
6604
  e.chain().focus().setTextSelection(o).setLink({ href: r }).run();
6620
- }, Qh = (e) => /* @__PURE__ */ a(Ae, {
6605
+ }, Kh = (e) => /* @__PURE__ */ a(Ae, {
6621
6606
  ...e,
6622
6607
  children: /* @__PURE__ */ A("g", {
6623
6608
  stroke: "currentColor",
@@ -6630,7 +6615,7 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6630
6615
  /* @__PURE__ */ a("path", { d: "M19 19H5" })
6631
6616
  ]
6632
6617
  })
6633
- }), Kh = (e) => /* @__PURE__ */ a(Ae, {
6618
+ }), Yh = (e) => /* @__PURE__ */ a(Ae, {
6634
6619
  ...e,
6635
6620
  children: /* @__PURE__ */ A("g", {
6636
6621
  stroke: "currentColor",
@@ -6691,13 +6676,13 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6691
6676
  label: r("graph.toolbar.textAlign.center"),
6692
6677
  isActive: t === "center",
6693
6678
  onToggle: () => e.chain().focus().setTextAlign("center").run(),
6694
- children: /* @__PURE__ */ a(Qh, {})
6679
+ children: /* @__PURE__ */ a(Kh, {})
6695
6680
  }),
6696
6681
  /* @__PURE__ */ a(Te, {
6697
6682
  label: r("graph.toolbar.textAlign.right"),
6698
6683
  isActive: t === "right",
6699
6684
  onToggle: () => e.chain().focus().setTextAlign("right").run(),
6700
- children: /* @__PURE__ */ a(Kh, {})
6685
+ children: /* @__PURE__ */ a(Yh, {})
6701
6686
  })
6702
6687
  ] });
6703
6688
  }, $h = "_1bp10ig0", _h = ({ editor: e }) => ({
@@ -6739,12 +6724,12 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6739
6724
  return e.on("focus", p), e.on("blur", v), () => {
6740
6725
  e.off("focus", p), e.off("blur", v);
6741
6726
  };
6742
- }, [e]), !e || !r && !l ? null : /* @__PURE__ */ a(K.Portal, { children: /* @__PURE__ */ A(K.Root, {
6727
+ }, [e]), !e || !r && !l ? null : /* @__PURE__ */ a(Y.Portal, { children: /* @__PURE__ */ A(Y.Root, {
6743
6728
  ref: g,
6744
6729
  className: $h,
6745
6730
  style: d,
6746
6731
  children: [
6747
- /* @__PURE__ */ A(K.Group, { children: [/* @__PURE__ */ a(K.ColorPicker, {
6732
+ /* @__PURE__ */ A(Y.Group, { children: [/* @__PURE__ */ a(Y.ColorPicker, {
6748
6733
  color: h?.color ?? null,
6749
6734
  onChange: (p) => e.chain().setColor(p).run(),
6750
6735
  isOpen: o === "color",
@@ -6755,15 +6740,15 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6755
6740
  isOpen: o === "fontFamily",
6756
6741
  onOpenChange: s("fontFamily")
6757
6742
  })] }),
6758
- /* @__PURE__ */ a(K.Separator, {}),
6759
- /* @__PURE__ */ a(K.Group, { children: /* @__PURE__ */ a(Bh, {
6743
+ /* @__PURE__ */ a(Y.Separator, {}),
6744
+ /* @__PURE__ */ a(Y.Group, { children: /* @__PURE__ */ a(Bh, {
6760
6745
  editor: e,
6761
6746
  activeStyle: h?.fontSize ?? "text",
6762
6747
  isOpen: o === "fontSize",
6763
6748
  onOpenChange: s("fontSize")
6764
6749
  }) }),
6765
- /* @__PURE__ */ a(K.Separator, {}),
6766
- /* @__PURE__ */ A(K.Group, { children: [
6750
+ /* @__PURE__ */ a(Y.Separator, {}),
6751
+ /* @__PURE__ */ A(Y.Group, { children: [
6767
6752
  /* @__PURE__ */ a(Te, {
6768
6753
  label: t("graph.toolbar.formatting.bold"),
6769
6754
  isActive: h?.isBold ?? !1,
@@ -6783,13 +6768,13 @@ var Zo = "yl2d2l3", Uu = "yl2d2l4", $o = "yl2d2l5", jt = "yl2d2l6", Yu = "yl2d2l
6783
6768
  children: /* @__PURE__ */ a("u", { children: "U" })
6784
6769
  })
6785
6770
  ] }),
6786
- /* @__PURE__ */ a(K.Separator, {}),
6787
- /* @__PURE__ */ a(K.Group, { children: /* @__PURE__ */ a(Zh, {
6771
+ /* @__PURE__ */ a(Y.Separator, {}),
6772
+ /* @__PURE__ */ a(Y.Group, { children: /* @__PURE__ */ a(Zh, {
6788
6773
  editor: e,
6789
6774
  activeAlignment: h?.textAlign
6790
6775
  }) }),
6791
- /* @__PURE__ */ a(K.Separator, {}),
6792
- /* @__PURE__ */ a(K.Group, { children: /* @__PURE__ */ a(Uh, {
6776
+ /* @__PURE__ */ a(Y.Separator, {}),
6777
+ /* @__PURE__ */ a(Y.Group, { children: /* @__PURE__ */ a(Uh, {
6793
6778
  editor: e,
6794
6779
  currentUrl: h?.linkUrl ?? null,
6795
6780
  isActive: h?.isLink ?? !1,
@@ -6864,7 +6849,7 @@ var dp = "xfz7dq2", up = "xfz7dq3", hp = "xfz7dq4", pp = "xfz7dq5", gp = ({ ref:
6864
6849
  }, mp = ({ caption: e }) => e === null ? null : typeof e == "string" ? /* @__PURE__ */ a("p", {
6865
6850
  className: sp,
6866
6851
  children: e
6867
- }) : /* @__PURE__ */ a(Qe, { content: e }), vp = ({ source: e }) => {
6852
+ }) : /* @__PURE__ */ a(Ke, { content: e }), vp = ({ source: e }) => {
6868
6853
  const t = nr(e.url) ? e.url : void 0, r = e.label ?? (t !== void 0 ? fp(t) : "");
6869
6854
  return r === "" && t === void 0 ? null : /* @__PURE__ */ A("span", {
6870
6855
  className: dp,
@@ -6985,10 +6970,10 @@ var xp = 3, Sp = ({ title: e, isTitleVisible: t, subtitle: r, isSubtitleVisible:
6985
6970
  }, Tp = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n }) => /* @__PURE__ */ A(C, { children: [t && e !== null && (typeof e == "string" ? /* @__PURE__ */ a("h1", {
6986
6971
  className: "_4dlrid0",
6987
6972
  children: e
6988
- }) : /* @__PURE__ */ a(Qe, { content: e })), r && n !== null && (typeof n == "string" ? /* @__PURE__ */ a("p", {
6973
+ }) : /* @__PURE__ */ a(Ke, { content: e })), r && n !== null && (typeof n == "string" ? /* @__PURE__ */ a("p", {
6989
6974
  className: "_4dlrid1",
6990
6975
  children: n
6991
- }) : /* @__PURE__ */ a(Qe, { content: n }))] }), Bp = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n }) => {
6976
+ }) : /* @__PURE__ */ a(Ke, { content: n }))] }), Bp = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n }) => {
6992
6977
  const { dispatch: o } = Xo(), i = x(() => Gu({
6993
6978
  titlePlaceholder: "Untitled",
6994
6979
  subtitlePlaceholder: "Untitled",
@@ -7048,15 +7033,15 @@ var xp = 3, Sp = ({ title: e, isTitleVisible: t, subtitle: r, isSubtitleVisible:
7048
7033
  small: "n7clvo7",
7049
7034
  medium: "n7clvo8",
7050
7035
  large: "n7clvo9"
7051
- }, Yp = {
7036
+ }, Qp = {
7052
7037
  up: "n7clvoa",
7053
7038
  down: "n7clvob",
7054
7039
  flat: "n7clvoc"
7055
- }, Qp = {
7040
+ }, Kp = {
7056
7041
  up: "n7clvoe n7clvod",
7057
7042
  down: "n7clvof n7clvod",
7058
7043
  flat: "n7clvog n7clvod"
7059
- }, Kp = ({ segment: e, resolvedSize: t }) => {
7044
+ }, Yp = ({ segment: e, resolvedSize: t }) => {
7060
7045
  const r = ve();
7061
7046
  if (e.kind === "swatch") return /* @__PURE__ */ a(Ze, {
7062
7047
  shape: r(e.swatch.geom, "cartesian")?.swatchShape ?? "square",
@@ -7066,7 +7051,7 @@ var xp = 3, Sp = ({ title: e, isTitleVisible: t, subtitle: r, isSubtitleVisible:
7066
7051
  height: e.size
7067
7052
  });
7068
7053
  if (e.kind === "trendArrow") return /* @__PURE__ */ a("div", {
7069
- className: Qp[e.direction],
7054
+ className: Kp[e.direction],
7070
7055
  children: e.direction === "flat" ? /* @__PURE__ */ a(Gp, {
7071
7056
  size: "xs",
7072
7057
  title: ""
@@ -7087,7 +7072,7 @@ var xp = 3, Sp = ({ title: e, isTitleVisible: t, subtitle: r, isSubtitleVisible:
7087
7072
  case "observation":
7088
7073
  return Wp;
7089
7074
  case "trendPercentage":
7090
- return Yp[e.trendDirection ?? "up"];
7075
+ return Qp[e.trendDirection ?? "up"];
7091
7076
  case "trendReference":
7092
7077
  return Vp;
7093
7078
  case "label":
@@ -7107,7 +7092,7 @@ var xp = 3, Sp = ({ title: e, isTitleVisible: t, subtitle: r, isSubtitleVisible:
7107
7092
  "data-direction": r ? Jp(e) : void 0,
7108
7093
  role: r ? "img" : void 0,
7109
7094
  "aria-label": r ? e.ariaLabel : void 0,
7110
- children: e.segments.map((n, o) => /* @__PURE__ */ a(Kp, {
7095
+ children: e.segments.map((n, o) => /* @__PURE__ */ a(Yp, {
7111
7096
  segment: n,
7112
7097
  resolvedSize: t
7113
7098
  }, o))
@@ -7463,11 +7448,11 @@ var vg = "_1dw9dgx0", fg = "#9ca3af", Ot = "\0", bg = (e, t) => {
7463
7448
  const i = n(o.geom, r.type);
7464
7449
  return i ? i.guideMode ?? null : null;
7465
7450
  }, ma = 1, va = "4 3", en = ({ panelRect: e }) => {
7466
- const { coordSystem: t, layers: r, scales: n } = E(Q((s) => ({
7451
+ const { coordSystem: t, layers: r, scales: n } = E(K((s) => ({
7467
7452
  coordSystem: s.coordSystem,
7468
7453
  layers: s.layers,
7469
7454
  scales: s.scales
7470
- }))), o = Ye((s) => s.hover.primary), i = ve();
7455
+ }))), o = Qe((s) => s.hover.primary), i = ve();
7471
7456
  if (r.length === 0 || o === null || !o.anchored) return null;
7472
7457
  const l = Og({
7473
7458
  layers: r,
@@ -7568,7 +7553,7 @@ var vg = "_1dw9dgx0", fg = "#9ca3af", Ot = "\0", bg = (e, t) => {
7568
7553
  if (o !== null) return o;
7569
7554
  }
7570
7555
  return null;
7571
- }, zg = (e) => ba[e] !== void 0, Ug = (e, t, r) => fa(e, r, t / 2), Yg = (e, t) => {
7556
+ }, zg = (e) => ba[e] !== void 0, Ug = (e, t, r) => fa(e, r, t / 2), Qg = (e, t) => {
7572
7557
  const r = {
7573
7558
  x: e.start.x * t.width,
7574
7559
  y: (1 - e.start.y) * t.height
@@ -7592,7 +7577,7 @@ var vg = "_1dw9dgx0", fg = "#9ca3af", Ot = "\0", bg = (e, t) => {
7592
7577
  width: e.width * t.width + r * 2,
7593
7578
  height: e.height * t.height + r * 2
7594
7579
  }
7595
- }), Qg = (e, { panel: t, measuredBoxes: r }) => {
7580
+ }), Kg = (e, { panel: t, measuredBoxes: r }) => {
7596
7581
  const n = r.get(e.id);
7597
7582
  if (n === void 0) return null;
7598
7583
  const o = gn(e.align);
@@ -7606,11 +7591,11 @@ var vg = "_1dw9dgx0", fg = "#9ca3af", Ot = "\0", bg = (e, t) => {
7606
7591
  }
7607
7592
  };
7608
7593
  }, ba = {
7609
- text: dt((e) => e.textAnnotations, Qg),
7594
+ text: dt((e) => e.textAnnotations, Kg),
7610
7595
  shape: dt((e) => e.shapes, (e, t) => Ug(e.region, e.strokeWidth, t.panel)),
7611
7596
  image: dt((e) => e.images, (e, t) => fa(e.region, t.panel)),
7612
- arrow: dt((e) => e.arrows, (e, t) => Yg(e, t.panel))
7613
- }, Kg = (e, t) => {
7597
+ arrow: dt((e) => e.arrows, (e, t) => Qg(e, t.panel))
7598
+ }, Yg = (e, t) => {
7614
7599
  const r = xi(e, t);
7615
7600
  return r !== null && zg(r.kind) && Mi(r);
7616
7601
  }, jg = 200, qg = ({ engine: e, store: t, overlayRef: r }) => {
@@ -7696,10 +7681,10 @@ var vg = "_1dw9dgx0", fg = "#9ca3af", Ot = "\0", bg = (e, t) => {
7696
7681
  e.removeEventListener("pointermove", h), e.removeEventListener("pointerleave", g), document.removeEventListener("pointermove", u), o !== null && cancelAnimationFrame(o), n = null;
7697
7682
  };
7698
7683
  }, $g = ({ panelRect: e }) => {
7699
- const { engine: t, store: r, overlayRef: n } = ke(), o = Ke((s) => {
7684
+ const { engine: t, store: r, overlayRef: n } = ke(), o = Ye((s) => {
7700
7685
  const c = s.editTargetUnderPointer;
7701
7686
  return c !== null && su(c);
7702
- }), i = Ke((s) => {
7687
+ }), i = Ye((s) => {
7703
7688
  const c = s.editTargetUnderPointer;
7704
7689
  return c?.kind === "annotation" ? c.id : null;
7705
7690
  });
@@ -7708,7 +7693,7 @@ var vg = "_1dw9dgx0", fg = "#9ca3af", Ot = "\0", bg = (e, t) => {
7708
7693
  store: r,
7709
7694
  overlayRef: n
7710
7695
  });
7711
- const l = E((s) => i !== null && Kg(s.spec.annotations, i));
7696
+ const l = E((s) => i !== null && Yg(s.spec.annotations, i));
7712
7697
  return /* @__PURE__ */ a("rect", {
7713
7698
  ref: n,
7714
7699
  x: e.x,
@@ -7729,12 +7714,12 @@ var vg = "_1dw9dgx0", fg = "#9ca3af", Ot = "\0", bg = (e, t) => {
7729
7714
  n.removeAttribute(Ht);
7730
7715
  };
7731
7716
  }, [e, r]);
7732
- }, Bt = () => Ke((e) => ht(e, "move-drag")?.annotationId ?? ht(e, "shape-resize-drag")?.annotationId ?? ht(e, "arrow-endpoint-drag")?.annotationId ?? null), _e = (e) => {
7733
- const { annotations: t, coordSystem: r } = E(Q((s) => ({
7717
+ }, Bt = () => Ye((e) => ht(e, "move-drag")?.annotationId ?? ht(e, "shape-resize-drag")?.annotationId ?? ht(e, "arrow-endpoint-drag")?.annotationId ?? null), _e = (e) => {
7718
+ const { annotations: t, coordSystem: r } = E(K((s) => ({
7734
7719
  annotations: s.annotations,
7735
7720
  coordSystem: s.coordSystem
7736
7721
  }))), n = _d(), o = ru(), i = re((s) => tn(o, "cycle", s, `Annotation reference cycle detected; dropping annotation(s): ${s.join(", ")}`), [o]), l = re((s) => tn(o, "missing-ref", s, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${s.join(", ")}`), [o]);
7737
- return x(() => Qi({
7722
+ return x(() => Ki({
7738
7723
  annotations: t,
7739
7724
  panelRect: e,
7740
7725
  coordSystem: r,
@@ -7921,7 +7906,7 @@ var vg = "_1dw9dgx0", fg = "#9ca3af", Ot = "\0", bg = (e, t) => {
7921
7906
  })]
7922
7907
  });
7923
7908
  }, gm = "75%", mm = ({ panelRect: e, isEditable: t }) => {
7924
- const r = bu(), n = Ke((l) => {
7909
+ const r = bu(), n = Ye((l) => {
7925
7910
  const s = l.editTargetUnderPointer;
7926
7911
  return s?.kind === "annotation" ? s.id : null;
7927
7912
  }), o = dm(), i = x(() => new Set(o.filter((l) => l.kind === "annotation").map((l) => l.id)), [o]);
@@ -8032,7 +8017,7 @@ var vg = "_1dw9dgx0", fg = "#9ca3af", Ot = "\0", bg = (e, t) => {
8032
8017
  ...wm(e.backgroundColor, e.backgroundColorStyle),
8033
8018
  transform: Sm(e.align)
8034
8019
  },
8035
- children: /* @__PURE__ */ a(Qe, { content: e.content })
8020
+ children: /* @__PURE__ */ a(Ke, { content: e.content })
8036
8021
  })
8037
8022
  }), Sm = (e) => {
8038
8023
  const t = gn(e);
@@ -8084,7 +8069,7 @@ var Bm = "ph8bdc2", on = {
8084
8069
  }
8085
8070
  });
8086
8071
  function Im(e) {
8087
- const t = we(), { formattingLocale: r } = J(), n = E(Q((s) => ({
8072
+ const t = we(), { formattingLocale: r } = J(), n = E(K((s) => ({
8088
8073
  pinnedNumbers: s.annotations.pinnedNumbers,
8089
8074
  comments: s.annotations.comments,
8090
8075
  coordSystem: s.coordSystem,
@@ -8126,7 +8111,7 @@ function Im(e) {
8126
8111
  ]);
8127
8112
  }
8128
8113
  var Dm = (e, t, r, n) => t !== "comment" ? r : Zi(r, 140, (o) => e.measureText(o, n).width), an = "callouts", Fm = ({ panelRect: e }) => {
8129
- const { pinnedNumbers: t, comments: r } = E(Q((d) => ({
8114
+ const { pinnedNumbers: t, comments: r } = E(K((d) => ({
8130
8115
  pinnedNumbers: d.annotations.pinnedNumbers,
8131
8116
  comments: d.annotations.comments
8132
8117
  }))), n = E((d) => d.coordSystem), o = ve(), i = Im(e), { store: l } = ke(), s = x(() => {
@@ -8255,11 +8240,11 @@ var Dm = (e, t, r, n) => t !== "comment" ? r : Zi(r, 140, (o) => e.measureText(o
8255
8240
  width: t * e,
8256
8241
  height: t
8257
8242
  }, Um = "_1agclyl0";
8258
- var Ym = "_1agclyl2", Sa = ({ x: e, y: t, width: r, height: n, text: o, isRotated: i, target: l, position: s, coordType: c }) => {
8243
+ var Qm = "_1agclyl2", Sa = ({ x: e, y: t, width: r, height: n, text: o, isRotated: i, target: l, position: s, coordType: c }) => {
8259
8244
  const d = Lt(), u = i ? `rotate(-90 ${e} ${t})` : void 0, h = d[l][s], g = h.borderColor !== void 0 && (h.borderWidth ?? 0) > 0;
8260
8245
  return /* @__PURE__ */ A("g", {
8261
8246
  transform: u,
8262
- children: [Qm(l, c, h) && /* @__PURE__ */ a("rect", {
8247
+ children: [Km(l, c, h) && /* @__PURE__ */ a("rect", {
8263
8248
  className: "_1agclyl1",
8264
8249
  x: e - r / 2,
8265
8250
  y: t - n / 2,
@@ -8273,7 +8258,7 @@ var Ym = "_1agclyl2", Sa = ({ x: e, y: t, width: r, height: n, text: o, isRotate
8273
8258
  strokeWidth: h.borderWidth
8274
8259
  } : {}
8275
8260
  }), /* @__PURE__ */ a("text", {
8276
- className: Ym,
8261
+ className: Qm,
8277
8262
  style: {
8278
8263
  ...Be(h),
8279
8264
  fill: h.textColor
@@ -8285,8 +8270,8 @@ var Ym = "_1agclyl2", Sa = ({ x: e, y: t, width: r, height: n, text: o, isRotate
8285
8270
  children: o
8286
8271
  })]
8287
8272
  });
8288
- }, Qm = (e, t, r) => r.background === void 0 ? !1 : e === "aggregate" || t === "cartesian", Km = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
8289
- const o = Dd(), i = we(), l = xe(), s = E(Q((g) => ({
8273
+ }, Km = (e, t, r) => r.background === void 0 ? !1 : e === "aggregate" || t === "cartesian", Ym = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
8274
+ const o = Dd(), i = we(), l = xe(), s = E(K((g) => ({
8290
8275
  layers: g.layers,
8291
8276
  coordSystem: g.coordSystem,
8292
8277
  axes: g.guides.axes,
@@ -8813,7 +8798,7 @@ var gv = 4, mv = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8813
8798
  const r = e[ge.group];
8814
8799
  return `${String(r ?? "")}\0${t}`;
8815
8800
  }, bv = ({ layer: e, coordSystem: t, panelRect: r }) => {
8816
- const { primary: n, group: o, related: i } = Ye(Q((d) => ({
8801
+ const { primary: n, group: o, related: i } = Qe(K((d) => ({
8817
8802
  primary: d.hover.primary,
8818
8803
  group: d.hover.group,
8819
8804
  related: d.hover.related
@@ -8847,7 +8832,7 @@ var gv = 4, mv = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8847
8832
  };
8848
8833
  }, [e, t]);
8849
8834
  }, yv = "var(--to1jkx0)", xv = "var(--to1jkx1)", Sv = "to1jkx2", wv = "to1jkx3", kv = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
8850
- const { layers: n, coordSystem: o } = E(Q((i) => ({
8835
+ const { layers: n, coordSystem: o } = E(K((i) => ({
8851
8836
  layers: i.layers,
8852
8837
  coordSystem: i.coordSystem
8853
8838
  })));
@@ -8973,7 +8958,7 @@ var gv = 4, mv = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8973
8958
  formattedAxes: e,
8974
8959
  panelRect: y
8975
8960
  }),
8976
- /* @__PURE__ */ a(Km, {
8961
+ /* @__PURE__ */ a(Ym, {
8977
8962
  panelRect: y,
8978
8963
  formattingLocale: c,
8979
8964
  plotBottomY: d,
@@ -9159,20 +9144,20 @@ var gv = 4, mv = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9159
9144
  })
9160
9145
  }) }) });
9161
9146
  }, Gv = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = "readonly" }) => {
9162
- const i = fe(), { axes: l, legends: s, layers: c, numberFormat: d, parsingLocale: u, appearance: h, annotations: g, coordSystem: p, headline: v, headlineConfig: b, content: f, overflowStrategy: y, layoutConfig: S } = E(Q((Y) => ({
9163
- axes: Y.guides.axes,
9164
- legends: Y.guides.legends.drawn,
9165
- layers: Y.layers,
9166
- numberFormat: Y.config.numberFormat,
9167
- parsingLocale: Y.config.parsingLocale,
9168
- appearance: Y.config.appearance,
9169
- annotations: Y.annotations,
9170
- coordSystem: Y.coordSystem,
9171
- headline: Y.guides.headline,
9172
- headlineConfig: Y.config.headline,
9173
- content: Y.config.content,
9174
- overflowStrategy: Y.config.panel.overflow,
9175
- layoutConfig: Y.config.layout
9147
+ const i = fe(), { axes: l, legends: s, layers: c, numberFormat: d, parsingLocale: u, appearance: h, annotations: g, coordSystem: p, headline: v, headlineConfig: b, content: f, overflowStrategy: y, layoutConfig: S } = E(K((Q) => ({
9148
+ axes: Q.guides.axes,
9149
+ legends: Q.guides.legends.drawn,
9150
+ layers: Q.layers,
9151
+ numberFormat: Q.config.numberFormat,
9152
+ parsingLocale: Q.config.parsingLocale,
9153
+ appearance: Q.config.appearance,
9154
+ annotations: Q.annotations,
9155
+ coordSystem: Q.coordSystem,
9156
+ headline: Q.guides.headline,
9157
+ headlineConfig: Q.config.headline,
9158
+ content: Q.config.content,
9159
+ overflowStrategy: Q.config.panel.overflow,
9160
+ layoutConfig: Q.config.layout
9176
9161
  }))), k = _i(), { intro: R, transitions: B } = x(() => Dc(r, k ?? !1), [r, k]), { headerRef: P, footerRef: N, measurements: F } = Fv(), { formattingLocale: U, colorScheme: $, themeOverrides: Nt } = J(), et = o === "editable", [br, Pa] = I(null), tt = x(() => po($, Nt), [$, Nt]), Ca = te("Header", Lp), Ea = te("Footer", gp), Ra = te("Legend", Mg), La = te("Headline", Zp), Ta = te("EditorSurface", Ov), Ar = x(() => wi({
9177
9162
  legends: s,
9178
9163
  numberFormat: d,
@@ -9240,7 +9225,7 @@ var gv = 4, mv = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9240
9225
  overflowStrategy: y,
9241
9226
  layout: S,
9242
9227
  panelBorder: Sr
9243
- }), it = x(() => !Ge || !ot || !at ? null : Ki({
9228
+ }), it = x(() => !Ge || !ot || !at ? null : Yi({
9244
9229
  headline: ot,
9245
9230
  layout: Ge.layout,
9246
9231
  containerSize: He,
@@ -9352,7 +9337,7 @@ export {
9352
9337
  xc as $,
9353
9338
  If as A,
9354
9339
  Rd as B,
9355
- K as C,
9340
+ Y as C,
9356
9341
  bu as D,
9357
9342
  Mu as E,
9358
9343
  Rf as F,
@@ -9361,7 +9346,7 @@ export {
9361
9346
  au as I,
9362
9347
  fe as J,
9363
9348
  Bo as K,
9364
- Qo as L,
9349
+ Ko as L,
9365
9350
  Bf as M,
9366
9351
  Tf as N,
9367
9352
  Nf as O,
@@ -9371,7 +9356,7 @@ export {
9371
9356
  Ae as S,
9372
9357
  qo as T,
9373
9358
  ad as U,
9374
- Ye as V,
9359
+ Qe as V,
9375
9360
  Rt as W,
9376
9361
  Rc as X,
9377
9362
  Lc as Y,
@@ -9395,16 +9380,16 @@ export {
9395
9380
  Ff as i,
9396
9381
  Ef as it,
9397
9382
  ht as j,
9398
- Ke as k,
9383
+ Ye as k,
9399
9384
  bm as l,
9400
9385
  ks as lt,
9401
- Yg as m,
9386
+ Qg as m,
9402
9387
  no as mt,
9403
9388
  Of as n,
9404
- Qt as nt,
9389
+ Kt as nt,
9405
9390
  Mm as o,
9406
9391
  gc as ot,
9407
- Kg as p,
9392
+ Yg as p,
9408
9393
  Ve as pt,
9409
9394
  $c as q,
9410
9395
  Mf as r,