@graphysdk/react-renderer 1.9.0-beta.1794408227684 → 1.9.0-beta.1794417595407

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/editable.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as Or, A as Qn, An as kc, At as R, Bt as Pe, C as Tc, Ct as yn, E as Ac, Et as Pc, F as Lc, Ft as Ic, G as Mc, Gt as ue, Hn as Ec, I as Oc, J as Rc, Jn as F, K as Y, Kn as ee, Kt as Nc, L as Dc, Ln as _c, Lt as ye, Mt as Fc, Nn as zc, Nt as Bc, O as er, Ot as Hc, Pt as Gc, Q as J, Qn as Rr, R as M, Rt as ni, S as Vc, St as $c, T as Wc, U as Uc, Vn as Kc, W as ri, Wn as ai, Wt as nt, X as jc, Xn as W, Y as Ca, Yn as Xc, Z as qc, _ as rt, _n as Nr, _t as wa, an as oi, at as Yc, b as ii, bt as Ne, c as li, ct as Sn, d as Zc, dn as si, dt as Cn, et as Dr, f as Jc, fn as Qc, g as ci, gn as ve, gt as ed, h as at, hn as di, ht as ui, i as Et, it as td, j as wn, jt as hi, k as pi, kn as nd, kt as gi, l as tr, ln as rd, lt as ad, m as od, mn as mi, mt as id, n as Se, nn as ld, nt as sd, o as cd, ot as vi, p as fi, q as ae, qt as dd, r as Q, rt as ud, st as _r, t as hd, tn as xa, tt as pd, u as gd, un as md, ut as bi, v as vd, vn as ut, vt as fd, x as bd, xt as yd, y as Sd, yt as Le, zt as rn } from "./history-chords-Bslv61fu.js";
2
- import { ARROW_DEFAULTS as yi, ARROW_STICKER_DECLARATIONS as Cd, ARROW_STROKE_WIDTHS_PX as Hn, AddAnnotationCommand as we, AddHighlightCommand as wd, COMBO_TYPES as ka, CONSTANT_VARIABLES as Fr, DASH_PRESETS as xd, DEFAULT_BAR_CORNER_RADII as kd, DEFAULT_GEOM_COLOR as Td, DEFAULT_POINT_SIZE_PX as Si, DEFAULT_STROKE_WIDTH_PX as Ad, DIFFERENCE_ARROW_DEFAULTS as Ci, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Ta, InternalError as Pd, MAX_BAR_WIDTH_FRACTION as Ld, MIN_BAR_WIDTH_FRACTION as Id, MoveAnnotationCommand as Md, PANEL_FRACTION_BOUNDS as wi, POSITION_VARIABLES as je, RESTING_HOVER_STATE as Ot, RemoveAnnotationCommand as ze, RemoveHighlightCommand as Ed, SHAPE_DEFAULTS as xi, SequenceCommand as ct, SetAxisLabelCommand as ki, SetAxisPositionCommand as Ti, SetAxisTickModeCommand as Ai, SetAxisTicksVisibilityCommand as Od, SetAxisVisibilityCommand as nr, SetBarCornerRadiusCommand as Rd, SetBarWidthCommand as Pi, SetContentCaptionCommand as Li, SetContentSourceCommand as Nd, SetContentSubtitleCommand as Ii, SetContentTitleCommand as Mi, SetDataLabelsFormatCommand as Ei, SetDifferenceArrowStyleCommand as Dd, SetGraphTypeCommand as zr, SetGridLineStyleCommand as Oi, SetGridVisibilityCommand as rr, SetHeadlineCompareWithCommand as _d, SetHeadlinePositionCommand as Fd, SetHeadlineShowCommand as Aa, SetHeadlineSizeCommand as zd, SetHighlightDimStyleCommand as Bd, SetLayerYScaleTypeCommand as Hd, SetLegendAlignCommand as Gd, SetLegendDisplayCommand as Vd, SetLegendPlacementCommand as $d, SetLegendPositionCommand as ar, SetLineCurveCommand as Ri, SetLineMissingValuesCommand as Ni, SetLineStyleCommand as Fe, SetMappingCommand as Wd, SetNumberFormatAbbreviationCommand as Ud, SetNumberFormatDecimalsCommand as Pa, SetObservationsColorCommand as Kd, SetPointSizeCommand as xn, SetPointSymbolCommand as Br, SetPolarInnerRadiusCommand as jd, SetPolarStartAngleCommand as Xd, SetRuleLabelCommand as qd, SetRuleValueCommand as Yd, SetScaleDomainCommand as Pt, SetScaleRangeCommand as Di, SetScaleTransformCommand as _i, SetStatLineCommand as Zd, SetStyleRuleCommand as Xe, TEXT_ANNOTATION_DEFAULTS as Fi, TEXT_ANNOTATION_FADE_ALPHA as Jd, ToggleCategoryLabelsCommand as zi, ToggleContentVisibilityCommand as Qe, ToggleDataLabelsCommand as Bi, ToggleGoalLineCommand as Qd, ToggleLinePointsCommand as Hr, ToggleStackTotalsCommand as Hi, UpdateAnnotationCommand as fe, alignUnitFractions as eu, areAnchorsEqual as Gr, areEditTargetsEqual as Vr, areEndpointsComparable as tu, areSameStackEndpoints as nu, buildColormapRange as ru, buildDivergingRange as La, buildLayerStyleAddress as gt, buildObservationPredicate as au, buildObservationsTarget as Ve, buildObservationsTargetAtValue as Gi, buildPointSymbolInBox as ou, canAnchorDirectLabels as iu, canBecomeCombo as lu, canBecomeHeatmap as su, clampAnnotationTranslation as cu, combineKindStyleDeclarations as Ia, computeArrow as Vi, createObservationAnchorBuilder as du, createObservationAnchorParser as uu, createStyleResolver as hu, createStyleRuleMatcher as pu, createValueFormatter as $r, createXValueReader as gu, filterLayersByGeoms as or, findAnnotation as mu, findAverageLineLayer as vu, findAxisGuide as $i, findCompanionLayers as Wi, findGoalLineLayer as fu, findHighlightsAtObservation as bu, findHostLayer as kn, findKindStyleDeclarations as an, findLayerByGeom as Ui, findLayerById as q, findObservationAttachment as yu, findPointerRegion as Su, findStyleRule as qe, findTrendLineLayer as Cu, formatDifferenceLabel as wu, getBoundingRect as ir, getGroupVariables as Wr, getScaledAesthetic as xu, getXBand as ku, getYBand as Tu, hasMainAxisBand as Au, hasMultipleGroups as Tn, inferDefaultDifferenceArrowEndpoints as Pu, inferDifferenceArrowEndpoints as Lu, isComboGraphType as be, isCompanionLayer as Ki, isGeomStyleRule as Iu, isGeometricSymbol as Tt, isImageSymbol as lr, isLayerSpecOf as bt, isObservationAttachmentKind as Mu, isSafeUrl as Eu, isZeroAnchoredAxis as ji, measureObservationsBoxes as Xi, polarToUnit as Ou, projectAnchorToPanel as sr, readBroadestObservationsScope as Ru, readColorChoices as qi, readColorPart as Nu, readColormapColor as Du, readComboLineLayerId as _u, readCompanionRowsAtScopeKey as Fu, readConstantValue as zu, readDivergingColor as Ma, readEditTargetKey as Rt, readGeomColor as Bu, readGraphType as An, readHighlightDimStyle as Hu, readMainAxis as Gu, readMappableAesthetics as Vu, readMappedVariable as $u, readObservationIndex as yt, readObservationsColor as Wu, readObservationsColorPart as Uu, readObservationsColorRoute as Pn, readReachableLevels as Ku, readRowScopeKey as ju, readRowsAtScopeKey as Xu, readScopeXVariable as qu, readStyleCoord as xe, readStyleRulesBeneath as Yu, readVariableName as Re, resolveArrowAnnotationStyle as Ur, resolveBarBandFraction as Yi, resolveComparisonBasis as Zu, resolveDifferenceArrowAnnotationStyle as Ju, resolveEditOutlineStyle as Qu, resolveLayerAxisValueFormat as eh, resolveObservationPoint as Zi, resolveObservationsTarget as et, stepDifferenceArrowEndpoint as th, toDashPreset as tt, toPaintColor as on, toPanelCursor as Nt, toStrokeDasharray as Ji } from "@graphysdk/viz-engine";
1
+ import { $ as Or, A as Qn, An as kc, At as R, Bt as Pe, C as Tc, Ct as yn, E as Ac, Et as Pc, F as Lc, Ft as Ic, G as Mc, Gt as ue, Hn as Ec, I as Oc, J as Rc, Jn as F, K as Y, Kn as ee, Kt as Nc, L as Dc, Ln as _c, Lt as ye, Mt as Fc, Nn as zc, Nt as Bc, O as er, Ot as Hc, Pt as Gc, Q as J, Qn as Rr, R as M, Rt as ni, S as Vc, St as $c, T as Wc, U as Uc, Vn as Kc, W as ri, Wn as ai, Wt as nt, X as jc, Xn as W, Y as Ca, Yn as Xc, Z as qc, _ as rt, _n as Nr, _t as wa, an as oi, at as Yc, b as ii, bt as Ne, c as li, ct as Sn, d as Zc, dn as si, dt as Cn, et as Dr, f as Jc, fn as Qc, g as ci, gn as ve, gt as ed, h as at, hn as di, ht as ui, i as Mt, it as td, j as wn, jt as hi, k as pi, kn as nd, kt as gi, l as tr, ln as rd, lt as ad, m as od, mn as mi, mt as id, n as Se, nn as ld, nt as sd, o as cd, ot as vi, p as fi, q as ae, qt as dd, r as Q, rt as ud, st as _r, t as hd, tn as xa, tt as pd, u as gd, un as md, ut as bi, v as vd, vn as ut, vt as fd, x as bd, xt as yd, y as Sd, yt as Le, zt as rn } from "./history-chords-AhpkUcV4.js";
2
+ import { ARROW_DEFAULTS as yi, ARROW_STICKER_DECLARATIONS as Cd, ARROW_STROKE_WIDTHS_PX as Hn, AddAnnotationCommand as we, AddHighlightCommand as wd, COMBO_TYPES as ka, CONSTANT_VARIABLES as Fr, DASH_PRESETS as xd, DEFAULT_BAR_CORNER_RADII as kd, DEFAULT_GEOM_COLOR as Td, DEFAULT_POINT_SIZE_PX as Si, DEFAULT_STROKE_WIDTH_PX as Ad, DIFFERENCE_ARROW_DEFAULTS as Ci, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Ta, InternalError as Pd, MAX_BAR_WIDTH_FRACTION as Ld, MIN_BAR_WIDTH_FRACTION as Id, MoveAnnotationCommand as Md, PANEL_FRACTION_BOUNDS as wi, POSITION_VARIABLES as je, RESTING_HOVER_STATE as Et, RemoveAnnotationCommand as ze, RemoveHighlightCommand as Ed, SHAPE_DEFAULTS as xi, SequenceCommand as ct, SetAxisLabelCommand as ki, SetAxisPositionCommand as Ti, SetAxisTickModeCommand as Ai, SetAxisTicksVisibilityCommand as Od, SetAxisVisibilityCommand as nr, SetBarCornerRadiusCommand as Rd, SetBarWidthCommand as Pi, SetContentCaptionCommand as Li, SetContentSourceCommand as Nd, SetContentSubtitleCommand as Ii, SetContentTitleCommand as Mi, SetDataLabelsFormatCommand as Ei, SetDifferenceArrowStyleCommand as Dd, SetGraphTypeCommand as zr, SetGridLineStyleCommand as Oi, SetGridVisibilityCommand as rr, SetHeadlineCompareWithCommand as _d, SetHeadlinePositionCommand as Fd, SetHeadlineShowCommand as Aa, SetHeadlineSizeCommand as zd, SetHighlightDimStyleCommand as Bd, SetLayerYScaleTypeCommand as Hd, SetLegendAlignCommand as Gd, SetLegendDisplayCommand as Vd, SetLegendPlacementCommand as $d, SetLegendPositionCommand as ar, SetLineCurveCommand as Ri, SetLineMissingValuesCommand as Ni, SetLineStyleCommand as Fe, SetMappingCommand as Wd, SetNumberFormatAbbreviationCommand as Ud, SetNumberFormatDecimalsCommand as Pa, SetObservationsColorCommand as Kd, SetPointSizeCommand as xn, SetPointSymbolCommand as Br, SetPolarInnerRadiusCommand as jd, SetPolarStartAngleCommand as Xd, SetRuleLabelCommand as qd, SetRuleValueCommand as Yd, SetScaleDomainCommand as At, SetScaleRangeCommand as Di, SetScaleTransformCommand as _i, SetStatLineCommand as Zd, SetStyleRuleCommand as Xe, TEXT_ANNOTATION_DEFAULTS as Fi, TEXT_ANNOTATION_FADE_ALPHA as Jd, ToggleCategoryLabelsCommand as zi, ToggleContentVisibilityCommand as Qe, ToggleDataLabelsCommand as Bi, ToggleGoalLineCommand as Qd, ToggleLinePointsCommand as Hr, ToggleStackTotalsCommand as Hi, UpdateAnnotationCommand as fe, alignUnitFractions as eu, areAnchorsEqual as Gr, areEditTargetsEqual as Vr, areEndpointsComparable as tu, areSameStackEndpoints as nu, buildColormapRange as ru, buildDivergingRange as La, buildLayerStyleAddress as gt, buildObservationPredicate as au, buildObservationsTarget as Ve, buildObservationsTargetAtValue as Gi, buildPointSymbolInBox as ou, canAnchorDirectLabels as iu, canBecomeCombo as lu, canBecomeHeatmap as su, clampAnnotationTranslation as cu, combineKindStyleDeclarations as Ia, computeArrow as Vi, createObservationAnchorBuilder as du, createObservationAnchorParser as uu, createStyleResolver as hu, createStyleRuleMatcher as pu, createValueFormatter as $r, createXValueReader as gu, filterLayersByGeoms as or, findAnnotation as mu, findAverageLineLayer as vu, findAxisGuide as $i, findCompanionLayers as Wi, findGoalLineLayer as fu, findHighlightsAtObservation as bu, findHostLayer as kn, findKindStyleDeclarations as an, findLayerByGeom as Ui, findLayerById as q, findObservationAttachment as yu, findPointerRegion as Su, findStyleRule as qe, findTrendLineLayer as Cu, formatDifferenceLabel as wu, getBoundingRect as ir, getGroupVariables as Wr, getScaledAesthetic as xu, getXBand as ku, getYBand as Tu, hasMainAxisBand as Au, hasMultipleGroups as Tn, inferDefaultDifferenceArrowEndpoints as Pu, inferDifferenceArrowEndpoints as Lu, isComboGraphType as be, isCompanionLayer as Ki, isGeomStyleRule as Iu, isGeometricSymbol as kt, isImageSymbol as lr, isLayerSpecOf as bt, isObservationAttachmentKind as Mu, isSafeUrl as Eu, isZeroAnchoredAxis as ji, measureObservationsBoxes as Xi, polarToUnit as Ou, projectAnchorToPanel as sr, readBroadestObservationsScope as Ru, readColorChoices as qi, readColorPart as Nu, readColormapColor as Du, readComboLineLayerId as _u, readCompanionRowsAtScopeKey as Fu, readConstantValue as zu, readDivergingColor as Ma, readEditTargetKey as Ot, readGeomColor as Bu, readGraphType as An, readHighlightDimStyle as Hu, readMainAxis as Gu, readMappableAesthetics as Vu, readMappedVariable as $u, readObservationIndex as yt, readObservationsColor as Wu, readObservationsColorPart as Uu, readObservationsColorRoute as Pn, readReachableLevels as Ku, readRowScopeKey as ju, readRowsAtScopeKey as Xu, readScopeXVariable as qu, readStyleCoord as xe, readStyleRulesBeneath as Yu, readVariableName as Re, resolveArrowAnnotationStyle as Ur, resolveBarBandFraction as Yi, resolveComparisonBasis as Zu, resolveDifferenceArrowAnnotationStyle as Ju, resolveEditOutlineStyle as Qu, resolveLayerAxisValueFormat as eh, resolveObservationPoint as Zi, resolveObservationsTarget as et, stepDifferenceArrowEndpoint as th, toDashPreset as tt, toPaintColor as on, toPanelCursor as Rt, toStrokeDasharray as Ji } from "@graphysdk/viz-engine";
3
3
  import { Fragment as Qi, createContext as Je, memo as el, useCallback as ce, useContext as Ce, useEffect as B, useId as Be, useLayoutEffect as Ye, useMemo as _, useRef as X, useState as Z, useSyncExternalStore as nh } from "react";
4
4
  import { Fragment as K, jsx as a, jsxs as v } from "react/jsx-runtime";
5
5
  import { motion as rh } from "motion/react";
@@ -37,7 +37,7 @@ import { EditorContent as il, useEditor as kh, useEditorState as Th } from "@tip
37
37
  import { Toolbar as $e } from "@base-ui/react/toolbar";
38
38
  import { Menu as pe } from "@base-ui/react/menu";
39
39
  import { Toggle as Ah } from "@base-ui/react/toggle";
40
- import { Accordion as At } from "@base-ui/react/accordion";
40
+ import { Accordion as Tt } from "@base-ui/react/accordion";
41
41
  import { Separator as Ph } from "@base-ui/react/separator";
42
42
  import './editable.css';var ll = (e, t) => {
43
43
  if (e.scope !== "observation") return null;
@@ -115,7 +115,7 @@ import './editable.css';var ll = (e, t) => {
115
115
  strokeWidth: 1.6,
116
116
  strokeLinecap: "round"
117
117
  })
118
- }), Dt = (e) => /* @__PURE__ */ a(M, {
118
+ }), Nt = (e) => /* @__PURE__ */ a(M, {
119
119
  ...e,
120
120
  children: /* @__PURE__ */ a("g", {
121
121
  stroke: "currentColor",
@@ -271,7 +271,7 @@ var Hh = {
271
271
  o !== void 0 && r === "default" && /* @__PURE__ */ a("span", {
272
272
  className: "woi4bh2",
273
273
  "aria-hidden": "true",
274
- children: /* @__PURE__ */ a(Dt, { size: "sm" })
274
+ children: /* @__PURE__ */ a(Nt, { size: "sm" })
275
275
  })
276
276
  ]
277
277
  });
@@ -346,7 +346,7 @@ var Hh = {
346
346
  })]
347
347
  })]
348
348
  });
349
- }, Yr = (e, t) => t !== null && e.toLowerCase() === t.toLowerCase(), qh = "data-graphy-chart-chrome", Yh = "data-graphy-chart-menu", Zh = { [Yh]: "" }, Ln = (e) => ({ [qh]: e }), Lt = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, sn = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, dr = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, ht = (e, t, n) => e instanceof Node && (t.contains(e) || Lt(e, n)), Jh = "cml7ha0", vl = Je(null), Qh = ({ children: e }) => {
349
+ }, Yr = (e, t) => t !== null && e.toLowerCase() === t.toLowerCase(), qh = "data-graphy-chart-chrome", Yh = "data-graphy-chart-menu", Zh = { [Yh]: "" }, Ln = (e) => ({ [qh]: e }), Pt = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, sn = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, dr = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, ht = (e, t, n) => e instanceof Node && (t.contains(e) || Pt(e, n)), Jh = "cml7ha0", vl = Je(null), Qh = ({ children: e }) => {
350
350
  const { chartId: t } = W(), [n] = Z(Le), [r, o] = Z(null);
351
351
  return n === null ? null : /* @__PURE__ */ v(K, { children: [Kr(/* @__PURE__ */ a("div", {
352
352
  ref: o,
@@ -654,7 +654,7 @@ var Mp = ({ options: e, value: t, onChange: n, placeholder: r, disabled: o, hasE
654
654
  children: (h) => Ep(e, h, r)
655
655
  }), /* @__PURE__ */ a(Oe.Icon, {
656
656
  className: Da,
657
- children: /* @__PURE__ */ a(Dt, { size: "sm" })
657
+ children: /* @__PURE__ */ a(Nt, { size: "sm" })
658
658
  })]
659
659
  }), /* @__PURE__ */ a(Oe.Portal, {
660
660
  container: u ?? Le(),
@@ -874,7 +874,7 @@ var Sl = ({ options: e, value: t, onChange: n, onCommit: r, itemLayout: o = "inl
874
874
  })]
875
875
  });
876
876
  }, wl = ({ target: e }) => {
877
- const t = Et();
877
+ const t = Mt();
878
878
  return t === null ? null : /* @__PURE__ */ a(Qp, {
879
879
  graph: t,
880
880
  axis: e.axis
@@ -980,7 +980,7 @@ var Qp = ({ graph: e, axis: t }) => {
980
980
  value: w,
981
981
  placeholder: r("editor.axesPanel.startFrom.auto"),
982
982
  onChange: (k) => {
983
- e.commands.dispatch(new Pt({
983
+ e.commands.dispatch(new At({
984
984
  scaledAesthetic: t,
985
985
  domainMin: k
986
986
  }), { transient: !0 });
@@ -994,7 +994,7 @@ var Qp = ({ graph: e, axis: t }) => {
994
994
  value: T,
995
995
  placeholder: r("editor.axesPanel.endAt.auto"),
996
996
  onChange: (k) => {
997
- e.commands.dispatch(new Pt({
997
+ e.commands.dispatch(new At({
998
998
  scaledAesthetic: t,
999
999
  domainMax: k
1000
1000
  }), { transient: !0 });
@@ -1900,7 +1900,7 @@ var hr = [
1900
1900
  })
1901
1901
  ]
1902
1902
  })
1903
- }), Rg = 0.55, Ng = 0.15, It = [
1903
+ }), Rg = 0.55, Ng = 0.15, Lt = [
1904
1904
  {
1905
1905
  name: "column",
1906
1906
  icon: Sg,
@@ -2076,7 +2076,7 @@ var hr = [
2076
2076
  position: "identity"
2077
2077
  }
2078
2078
  }
2079
- ], Dg = 0.05, Il = (e, t) => be(e) ? lu(t) : e.geom === "tile" ? su(t) : !0, cn = (e) => e === null ? null : It.find((t) => _g(t.summary, e)) ?? null, Ml = (e, t) => t === null || be(e) ? e : e.position === "dodge" && El(t) ? {
2079
+ ], Dg = 0.05, Il = (e, t) => be(e) ? lu(t) : e.geom === "tile" ? su(t) : !0, cn = (e) => e === null ? null : Lt.find((t) => _g(t.summary, e)) ?? null, Ml = (e, t) => t === null || be(e) ? e : e.position === "dodge" && El(t) ? {
2080
2080
  ...e,
2081
2081
  position: "identity"
2082
2082
  } : e.coordType !== "polar" || !dn(e.innerRadius) || t.coordType !== "polar" || !dn(t.innerRadius) ? e : {
@@ -2190,10 +2190,10 @@ var Fg = "_1a90obs1", zg = [
2190
2190
  })
2191
2191
  ] });
2192
2192
  }, Ol = (e, t) => be(e) || be(t) ? be(e) && be(t) : e.coordType === "polar" ? cn(e) === cn(t) : e.coordType === t.coordType && e.geom === t.geom, Rl = Bg.flatMap(([e, t]) => {
2193
- const n = It.find((r) => r.name === t);
2193
+ const n = Lt.find((r) => r.name === t);
2194
2194
  return n === void 0 ? [] : [{
2195
2195
  name: e,
2196
- arrangements: [n, ...[...It, ...zg].filter((r) => r !== n && Ol(n.summary, r.summary))]
2196
+ arrangements: [n, ...[...Lt, ...zg].filter((r) => r !== n && Ol(n.summary, r.summary))]
2197
2197
  }];
2198
2198
  }), Ba = Rl.filter(({ name: e }) => e !== "combo"), Wg = ({ type: e, arrangement: t, onPick: n, onCommit: r }) => {
2199
2199
  const o = R(), { ToggleGroup: i } = H(), l = e.arrangements.map(({ summary: c, icon: d }) => {
@@ -2410,9 +2410,9 @@ var QS = 512 * 1024, tm = (e) => new Promise((t) => {
2410
2410
  }, Jr = ({ symbol: e, coordType: t, onChange: n }) => {
2411
2411
  const r = R(), { RadioGrid: o } = H(), [i, l] = Z(null), s = Ce(Mn), c = Ec(), d = oi(), u = s ? s.getPointSymbols(t) : d("point", t)?.symbols, h = s ? new Map(s.getGlyphs().map(({ name: T, definition: I }) => [T, I])) : c;
2412
2412
  if (u === void 0 || u.length === 0) return null;
2413
- const p = (T) => typeof T == "string" && u.includes(T), g = (T) => p(T) || lr(T) || !Tt(T) && h.has(T), m = (T) => !Tt(T) || nm.some((I) => I === T), f = [...h.keys()].filter((T) => !Tt(T) && !p(T)), y = [...u.filter(m), ...f], x = e === null ? "" : $t(e), C = e === null || y.some((T) => $t(T) === x) || !g(e) ? y : [...y, e], w = (T) => Tt(T) ? r(`editor.graphPanel.pointSymbol.symbols.${T}`) : lr(T) ? r("editor.graphPanel.pointSymbol.custom") : T, A = (T) => {
2413
+ const p = (T) => typeof T == "string" && u.includes(T), g = (T) => p(T) || lr(T) || !kt(T) && h.has(T), m = (T) => !kt(T) || nm.some((I) => I === T), f = [...h.keys()].filter((T) => !kt(T) && !p(T)), y = [...u.filter(m), ...f], x = e === null ? "" : Vt(e), C = e === null || y.some((T) => Vt(T) === x) || !g(e) ? y : [...y, e], w = (T) => kt(T) ? r(`editor.graphPanel.pointSymbol.symbols.${T}`) : lr(T) ? r("editor.graphPanel.pointSymbol.custom") : T, A = (T) => {
2414
2414
  l(null);
2415
- const I = C.find((N) => $t(N) === T);
2415
+ const I = C.find((N) => Vt(N) === T);
2416
2416
  I !== void 0 && n(I);
2417
2417
  };
2418
2418
  return /* @__PURE__ */ a(L, {
@@ -2426,7 +2426,7 @@ var QS = 512 * 1024, tm = (e) => new Promise((t) => {
2426
2426
  itemLayout: "chip",
2427
2427
  value: x,
2428
2428
  options: C.map((T) => ({
2429
- value: $t(T),
2429
+ value: Vt(T),
2430
2430
  label: w(T),
2431
2431
  icon: /* @__PURE__ */ a(am, {
2432
2432
  symbol: T,
@@ -2484,7 +2484,7 @@ var QS = 512 * 1024, tm = (e) => new Promise((t) => {
2484
2484
  }
2485
2485
  });
2486
2486
  }, am = ({ symbol: e, glyphs: t }) => {
2487
- if (Tt(e)) return /* @__PURE__ */ a(Yg, { symbol: e });
2487
+ if (kt(e)) return /* @__PURE__ */ a(Yg, { symbol: e });
2488
2488
  const n = om(e, t);
2489
2489
  if (n !== null && Kc(n)) return /* @__PURE__ */ a("span", {
2490
2490
  className: em,
@@ -2508,11 +2508,11 @@ var QS = 512 * 1024, tm = (e) => new Promise((t) => {
2508
2508
  fill: "currentColor"
2509
2509
  })
2510
2510
  });
2511
- }, $t = (e) => typeof e == "string" ? e : e.image, om = (e, t) => {
2511
+ }, Vt = (e) => typeof e == "string" ? e : e.image, om = (e, t) => {
2512
2512
  if (lr(e)) return e.image;
2513
2513
  const n = t.get(e);
2514
2514
  return n !== void 0 && typeof n != "function" && "image" in n ? n.image : null;
2515
- }, zl = Je({}), im = zl.Provider, lm = () => Ce(zl), sm = "_1qh3fon0", pr = "theme", cm = 3, Wt = 14, Va = 9, dm = () => {
2515
+ }, zl = Je({}), im = zl.Provider, lm = () => Ce(zl), sm = "_1qh3fon0", pr = "theme", cm = 3, $t = 14, Va = 9, dm = () => {
2516
2516
  const e = F((u) => u.scales.color), t = lm(), n = Se(), r = R(), { RadioGrid: o } = H();
2517
2517
  if (Object.keys(t).length === 0 || e?.kind !== "visual" || e.spec.scaleType !== "discrete" || e.defaultPalette === void 0) return null;
2518
2518
  const { defaultPalette: i, spec: l } = e, s = Object.entries(t), c = [{
@@ -2549,11 +2549,11 @@ var QS = 512 * 1024, tm = (e) => new Promise((t) => {
2549
2549
  const n = t.find(([, r]) => ah(r, e));
2550
2550
  return n === void 0 ? "" : gr(n[0]);
2551
2551
  }, $a = ({ colors: e }) => {
2552
- const t = e.slice(0, cm), n = Wt / 2, r = Wt + (t.length - 1) * Va;
2552
+ const t = e.slice(0, cm), n = $t / 2, r = $t + (t.length - 1) * Va;
2553
2553
  return /* @__PURE__ */ a("svg", {
2554
2554
  width: r,
2555
- height: Wt,
2556
- viewBox: `0 0 ${r} ${Wt}`,
2555
+ height: $t,
2556
+ viewBox: `0 0 ${r} ${$t}`,
2557
2557
  "aria-hidden": "true",
2558
2558
  children: t.map((o, i) => /* @__PURE__ */ a("circle", {
2559
2559
  className: sm,
@@ -2609,7 +2609,7 @@ var QS = 512 * 1024, tm = (e) => new Promise((t) => {
2609
2609
  };
2610
2610
  return /* @__PURE__ */ v(K, { children: [
2611
2611
  /* @__PURE__ */ a($g, {}),
2612
- /* @__PURE__ */ a(Ut, {
2612
+ /* @__PURE__ */ a(Wt, {
2613
2613
  label: o("editor.graphPanel.graphOptions.dataLabels"),
2614
2614
  layers: c((S) => S.supportsDataLabels),
2615
2615
  isOn: (S) => S.showDataLabels,
@@ -2618,7 +2618,7 @@ var QS = 512 * 1024, tm = (e) => new Promise((t) => {
2618
2618
  showDataLabels: b
2619
2619
  })
2620
2620
  }),
2621
- /* @__PURE__ */ a(Ut, {
2621
+ /* @__PURE__ */ a(Wt, {
2622
2622
  label: o("editor.graphPanel.graphOptions.showPercentages"),
2623
2623
  layers: c((S) => S.supportsPercentages),
2624
2624
  isOn: (S) => S.format === "percentage",
@@ -2627,7 +2627,7 @@ var QS = 512 * 1024, tm = (e) => new Promise((t) => {
2627
2627
  format: b ? "percentage" : "absolute"
2628
2628
  })
2629
2629
  }),
2630
- /* @__PURE__ */ a(Ut, {
2630
+ /* @__PURE__ */ a(Wt, {
2631
2631
  label: o("editor.graphPanel.graphOptions.stackTotals"),
2632
2632
  layers: c((S) => S.supportsStackTotals),
2633
2633
  isOn: (S) => S.showStackTotals,
@@ -2636,7 +2636,7 @@ var QS = 512 * 1024, tm = (e) => new Promise((t) => {
2636
2636
  showStackTotals: b
2637
2637
  })
2638
2638
  }),
2639
- /* @__PURE__ */ a(Ut, {
2639
+ /* @__PURE__ */ a(Wt, {
2640
2640
  label: o("editor.graphPanel.graphOptions.categoryLabels"),
2641
2641
  layers: c((S) => S.supportsCategoryLabels),
2642
2642
  isOn: (S) => S.showCategoryLabels,
@@ -2773,7 +2773,7 @@ var Hl = (e, t, n) => e.filter((r) => r.interactive).map((r) => ({
2773
2773
  }, vm = (e) => e.every((t) => t.smooth === !0) ? "smooth" : e.every((t) => t.smooth !== !0) ? "linear" : "", fm = (e) => {
2774
2774
  const [t, ...n] = e, r = t?.missingValues ?? null;
2775
2775
  return r === null ? "" : n.every((o) => o.missingValues === r) ? r : "";
2776
- }, Ut = ({ label: e, layers: t, isOn: n, buildCommand: r }) => {
2776
+ }, Wt = ({ label: e, layers: t, isOn: n, buildCommand: r }) => {
2777
2777
  const o = Se(), { Switch: i } = H();
2778
2778
  if (t.length === 0) return null;
2779
2779
  const l = (s) => {
@@ -2795,7 +2795,7 @@ var Hl = (e, t, n) => e.filter((r) => r.interactive).map((r) => ({
2795
2795
  coord: t.spec.coords.coordType,
2796
2796
  position: i.position
2797
2797
  };
2798
- }, Kt = (e, t) => {
2798
+ }, Ut = (e, t) => {
2799
2799
  for (const n of e) {
2800
2800
  const r = t(n);
2801
2801
  if (r !== void 0) return r;
@@ -2994,7 +2994,7 @@ var ja = [
2994
2994
  ...gt("point", t),
2995
2995
  when: { where: n }
2996
2996
  }, xe(e.spec)), mr = ({ target: e }) => {
2997
- const t = Et();
2997
+ const t = Mt();
2998
2998
  return t === null ? null : /* @__PURE__ */ a(Am, {
2999
2999
  graph: t,
3000
3000
  target: e
@@ -3308,7 +3308,7 @@ var Fm = (e) => {
3308
3308
  if (i === null) return null;
3309
3309
  const l = Gm(e, t);
3310
3310
  if (l === null) return null;
3311
- const s = Vm(e, o, l), c = s.findIndex((h) => Mt(h) === Mt(i));
3311
+ const s = Vm(e, o, l), c = s.findIndex((h) => It(h) === It(i));
3312
3312
  if (c < 0 || c >= s.length - 1) return null;
3313
3313
  const d = {
3314
3314
  variable: o,
@@ -3336,14 +3336,14 @@ var Fm = (e) => {
3336
3336
  if (i === null || !$m(i, n)) continue;
3337
3337
  const l = i[t] ?? null;
3338
3338
  if (l === null) continue;
3339
- const s = i[je.x], c = typeof s == "number" ? s : o, d = Mt(l), u = r.get(d);
3339
+ const s = i[je.x], c = typeof s == "number" ? s : o, d = It(l), u = r.get(d);
3340
3340
  (u === void 0 || c < u.position) && r.set(d, {
3341
3341
  value: l,
3342
3342
  position: c
3343
3343
  });
3344
3344
  }
3345
3345
  return [...r.values()].sort((o, i) => o.position - i.position).map((o) => o.value);
3346
- }, $m = (e, t) => t.every((n) => Mt(e[n.variable] ?? null) === Mt(n.eq)), Wm = (e, t, n) => {
3346
+ }, $m = (e, t) => t.every((n) => It(e[n.variable] ?? null) === It(n.eq)), Wm = (e, t, n) => {
3347
3347
  for (let r = 0; r < e.data.size(); r += 1) {
3348
3348
  const o = e.data.getAt(r);
3349
3349
  if (o === null) continue;
@@ -3361,7 +3361,7 @@ var Fm = (e) => {
3361
3361
  numberFormat: o
3362
3362
  })(n);
3363
3363
  return i.length > 0 ? i : String(n);
3364
- }, Mt = (e) => e instanceof Date ? String(e.getTime()) : String(e), ta = (e, t) => "and" in e || "and" in t ? "and" in e && "and" in t && qa(e.and, t.and) : "or" in e || "or" in t ? "or" in e && "or" in t && qa(e.or, t.or) : "not" in e || "not" in t ? "not" in e && "not" in t && ta(e.not, t.not) : e.variable !== t.variable ? !1 : "eq" in e || "eq" in t ? "eq" in e && "eq" in t && st(e.eq, t.eq) : "oneOf" in e || "oneOf" in t ? "oneOf" in e && "oneOf" in t && Ya(e.oneOf, t.oneOf) : "lt" in e || "lt" in t ? "lt" in e && "lt" in t && st(e.lt, t.lt) : "lte" in e || "lte" in t ? "lte" in e && "lte" in t && st(e.lte, t.lte) : "gt" in e || "gt" in t ? "gt" in e && "gt" in t && st(e.gt, t.gt) : "gte" in e || "gte" in t ? "gte" in e && "gte" in t && st(e.gte, t.gte) : "range" in e && "range" in t && Ya(e.range, t.range), qa = (e, t) => e.length === t.length && e.every((n, r) => {
3364
+ }, It = (e) => e instanceof Date ? String(e.getTime()) : String(e), ta = (e, t) => "and" in e || "and" in t ? "and" in e && "and" in t && qa(e.and, t.and) : "or" in e || "or" in t ? "or" in e && "or" in t && qa(e.or, t.or) : "not" in e || "not" in t ? "not" in e && "not" in t && ta(e.not, t.not) : e.variable !== t.variable ? !1 : "eq" in e || "eq" in t ? "eq" in e && "eq" in t && st(e.eq, t.eq) : "oneOf" in e || "oneOf" in t ? "oneOf" in e && "oneOf" in t && Ya(e.oneOf, t.oneOf) : "lt" in e || "lt" in t ? "lt" in e && "lt" in t && st(e.lt, t.lt) : "lte" in e || "lte" in t ? "lte" in e && "lte" in t && st(e.lte, t.lte) : "gt" in e || "gt" in t ? "gt" in e && "gt" in t && st(e.gt, t.gt) : "gte" in e || "gte" in t ? "gte" in e && "gte" in t && st(e.gte, t.gte) : "range" in e && "range" in t && Ya(e.range, t.range), qa = (e, t) => e.length === t.length && e.every((n, r) => {
3365
3365
  const o = t[r];
3366
3366
  return o !== void 0 && ta(n, o);
3367
3367
  }), Ya = (e, t) => e.length === t.length && e.every((n, r) => {
@@ -3915,7 +3915,7 @@ var r1 = "vez73g7", a1 = "vez73g8", o1 = "vez73g9", ls = "vez73ga", ss = "vez73g
3915
3915
  }]
3916
3916
  }]
3917
3917
  }), ps = ({ target: e }) => {
3918
- const t = Et();
3918
+ const t = Mt();
3919
3919
  return t === null ? null : /* @__PURE__ */ a(A1, {
3920
3920
  graph: t,
3921
3921
  target: e
@@ -4022,19 +4022,19 @@ var A1 = ({ graph: e, target: t }) => {
4022
4022
  return i === null || i.hasRows?.(e, n) === !1 ? null : /* @__PURE__ */ a(i, { target: e });
4023
4023
  }
4024
4024
  case "legend": {
4025
- const o = Kt(t, (i) => i.legend);
4025
+ const o = Ut(t, (i) => i.legend);
4026
4026
  return o === null || o.hasRows?.(e, n) === !1 ? null : /* @__PURE__ */ a(o, { target: e });
4027
4027
  }
4028
4028
  case "axis": {
4029
- const o = Kt(t, (i) => i.axis);
4029
+ const o = Ut(t, (i) => i.axis);
4030
4030
  return o === null || o.hasRows?.(e, n) === !1 ? null : /* @__PURE__ */ a(o, { target: e });
4031
4031
  }
4032
4032
  case "grid": {
4033
- const o = Kt(t, (i) => i.grid);
4033
+ const o = Ut(t, (i) => i.grid);
4034
4034
  return o === null || o.hasRows?.(e, n) === !1 ? null : /* @__PURE__ */ a(o, { target: e });
4035
4035
  }
4036
4036
  case "graph": {
4037
- const o = Kt(t, (i) => i.graph);
4037
+ const o = Ut(t, (i) => i.graph);
4038
4038
  return o === null || o.hasRows?.(e, n) === !1 ? null : /* @__PURE__ */ a(o, { target: e });
4039
4039
  }
4040
4040
  default:
@@ -6830,7 +6830,7 @@ var ev = "d0bl03", tv = "d0bl04", nv = 0.01, yr = di.map((e) => ve[e]), rv = Obj
6830
6830
  className: Ss,
6831
6831
  style: { fontFamily: i?.fontFamily },
6832
6832
  children: i?.preview
6833
- }), /* @__PURE__ */ a(Dt, { size: "sm" })]
6833
+ }), /* @__PURE__ */ a(Nt, { size: "sm" })]
6834
6834
  }), /* @__PURE__ */ a(pe.Portal, {
6835
6835
  container: Le(),
6836
6836
  className: _e,
@@ -6894,7 +6894,7 @@ var ev = "d0bl03", tv = "d0bl04", nv = 0.01, yr = di.map((e) => ve[e]), rv = Obj
6894
6894
  children: [/* @__PURE__ */ a("span", {
6895
6895
  className: Ss,
6896
6896
  children: o(i.translationKey)
6897
- }), /* @__PURE__ */ a(Dt, { size: "sm" })]
6897
+ }), /* @__PURE__ */ a(Nt, { size: "sm" })]
6898
6898
  }), /* @__PURE__ */ a(pe.Portal, {
6899
6899
  container: Le(),
6900
6900
  className: _e,
@@ -7642,10 +7642,10 @@ var ev = "d0bl03", tv = "d0bl04", nv = 0.01, yr = di.map((e) => ve[e]), rv = Obj
7642
7642
  var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2 = (e) => {
7643
7643
  const t = Ns(e), n = R2(e);
7644
7644
  return {
7645
- color: jt(t.map((r) => N2(qn(r)?.color))),
7646
- font: jt(t.map((r) => O2(qn(r)))),
7647
- fontSize: jt(t.map((r) => D2(qn(r)?.fontSize))),
7648
- alignment: jt(n.map((r) => _2(r.attrs?.textAlign)))
7645
+ color: Kt(t.map((r) => N2(qn(r)?.color))),
7646
+ font: Kt(t.map((r) => O2(qn(r)))),
7647
+ fontSize: Kt(t.map((r) => D2(qn(r)?.fontSize))),
7648
+ alignment: Kt(n.map((r) => _2(r.attrs?.textAlign)))
7649
7649
  };
7650
7650
  }, I2 = (e, t) => sa(e, (n) => n.type === "text" ? E2(n, t) : n), Rs = (e) => Ns(e).length > 0, M2 = (e, t) => sa(e, (n) => Os.has(n.type ?? "") ? {
7651
7651
  ...n,
@@ -7668,7 +7668,7 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7668
7668
  ...e,
7669
7669
  marks: r === void 0 ? [...n, o] : n.map((i) => i === r ? o : i)
7670
7670
  };
7671
- }, qn = (e) => e.marks?.find((t) => t.type === mn)?.attrs, O2 = (e) => wa(e?.font) ?? wa(e?.fontFamily), Ns = (e) => ca(e, (t) => t.type === "text"), R2 = (e) => ca(e, (t) => Os.has(t.type ?? "")), ca = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((n) => ca(n, t))], jt = (e) => {
7671
+ }, qn = (e) => e.marks?.find((t) => t.type === mn)?.attrs, O2 = (e) => wa(e?.font) ?? wa(e?.fontFamily), Ns = (e) => ca(e, (t) => t.type === "text"), R2 = (e) => ca(e, (t) => Os.has(t.type ?? "")), ca = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((n) => ca(n, t))], Kt = (e) => {
7672
7672
  const [t, ...n] = e;
7673
7673
  return t === void 0 ? null : n.every((r) => r === t) ? t : null;
7674
7674
  }, N2 = (e) => typeof e == "string" && e.length > 0 ? e : void 0, D2 = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, _2 = (e) => e === "left" || e === "center" || e === "right" ? e : void 0, da = (e) => ({
@@ -7686,7 +7686,7 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7686
7686
  }
7687
7687
  const l = o.placementCommandId;
7688
7688
  l !== null && r !== null && r.readTopCommandId() === l && r.undo() || n(new ze({ id: o.annotationId }));
7689
- }, _t = (e, t) => e.geom === "boxplot" && xu(t, "outlier") !== null, F2 = (e, t, n) => {
7689
+ }, Dt = (e, t) => e.geom === "boxplot" && xu(t, "outlier") !== null, F2 = (e, t, n) => {
7690
7690
  const r = [];
7691
7691
  for (let o = e.layers.length - 1; o >= 0; o -= 1) {
7692
7692
  const i = e.layers[o];
@@ -7701,7 +7701,7 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7701
7701
  const o = [];
7702
7702
  for (let i = 0; i < e.data.size(); i += 1) {
7703
7703
  const l = e.data.getAt(i);
7704
- if (l === null || _t(e, l)) continue;
7704
+ if (l === null || Dt(e, l)) continue;
7705
7705
  const s = Ve({
7706
7706
  layer: e,
7707
7707
  observationIndex: i,
@@ -7737,7 +7737,7 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7737
7737
  x: r,
7738
7738
  y: o
7739
7739
  };
7740
- }, Ft = () => {
7740
+ }, _t = () => {
7741
7741
  const e = at();
7742
7742
  return xr(e);
7743
7743
  }, xr = (e) => {
@@ -7754,7 +7754,7 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7754
7754
  t,
7755
7755
  x
7756
7756
  ]), A = ce((I) => {
7757
- if (Lt(I.target, r)) return;
7757
+ if (Pt(I.target, r)) return;
7758
7758
  const N = x ? xr(t.getState().selection) : null;
7759
7759
  N !== null && p.current.some((k) => k.id === N) && (I.preventDefault(), h.getState().setCaret(N));
7760
7760
  }, [
@@ -7773,7 +7773,7 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7773
7773
  ua(h, i.getState().scene.annotations, n.dispatch, da(o)), N.setCaret(null), e.focus({ preventScroll: !0 });
7774
7774
  return;
7775
7775
  }
7776
- return Lt(I.target, r) ? e.focus({ preventScroll: !0 }) : t.getState().clearSelection();
7776
+ return Pt(I.target, r) ? e.focus({ preventScroll: !0 }) : t.getState().clearSelection();
7777
7777
  }, [
7778
7778
  h,
7779
7779
  t,
@@ -7786,7 +7786,7 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7786
7786
  B(() => {
7787
7787
  const I = (b) => {
7788
7788
  if (!ht(b.target, e, r) || sn(b.target)) return;
7789
- const E = ft(b.target), z = h.getState(), U = z.caret !== null && !Lt(b.target, r);
7789
+ const E = ft(b.target), z = h.getState(), U = z.caret !== null && !Pt(b.target, r);
7790
7790
  if (E && !U) return;
7791
7791
  const j = () => C && b.target === e && !E && !b.metaKey && !b.ctrlKey && !b.altKey && !b.shiftKey && z.standingInteraction === null && t.getState().selection.length === 0, se = () => {
7792
7792
  if (!j()) return;
@@ -7857,7 +7857,7 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7857
7857
  }), O = d.current, P = () => {
7858
7858
  f.current = !0;
7859
7859
  }, S = (b) => {
7860
- f.current = !1, !(g.current === null || G2(b, O, s)) && (g.current = null, m.current = null, s.getState().setHoverState(Ot));
7860
+ f.current = !1, !(g.current === null || G2(b, O, s)) && (g.current = null, m.current = null, s.getState().setHoverState(Et));
7861
7861
  };
7862
7862
  return O?.addEventListener("pointerenter", P), O?.addEventListener("pointerleave", S), document.addEventListener("keydown", I), () => {
7863
7863
  k(), O?.removeEventListener("pointerenter", P), O?.removeEventListener("pointerleave", S), document.removeEventListener("keydown", I);
@@ -7926,7 +7926,7 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7926
7926
  y: 0.5 - r.y * n / 2
7927
7927
  };
7928
7928
  }, U2 = (e) => {
7929
- const { observation: t, x: n, y: r } = e, o = Xt(t, je.xMin), i = Xt(t, je.xMax), l = Xt(t, je.yMin), s = Xt(t, je.yMax);
7929
+ const { observation: t, x: n, y: r } = e, o = jt(t, je.xMin), i = jt(t, je.xMax), l = jt(t, je.yMin), s = jt(t, je.yMax);
7930
7930
  return o === null || i === null || l === null || s === null ? {
7931
7931
  x: n,
7932
7932
  y: r
@@ -7945,11 +7945,11 @@ var mn = "textStyle", Os = /* @__PURE__ */ new Set(["paragraph", "heading"]), L2
7945
7945
  width: n.width,
7946
7946
  height: n.height
7947
7947
  }), n.width / n.height);
7948
- }, Xt = (e, t) => {
7948
+ }, jt = (e, t) => {
7949
7949
  const n = e[t];
7950
7950
  return typeof n == "number" && Number.isFinite(n) ? n : null;
7951
7951
  }, nn = (e, t) => e !== null && t !== null && e.layerId === t.layerId && e.observationIndex === t.observationIndex;
7952
- var j2 = "_1vbfegu3", zt = {
7952
+ var j2 = "_1vbfegu3", Ft = {
7953
7953
  fill: "none",
7954
7954
  stroke: "currentColor",
7955
7955
  strokeWidth: 1.8,
@@ -7960,35 +7960,35 @@ var j2 = "_1vbfegu3", zt = {
7960
7960
  ...e,
7961
7961
  children: /* @__PURE__ */ a("path", {
7962
7962
  d: "M5 6V4h14v2M12 4v16M9 20h6",
7963
- ...zt
7963
+ ...Ft
7964
7964
  })
7965
7965
  }), q2 = (e) => /* @__PURE__ */ a(M, {
7966
7966
  viewBox: "0 0 24 24",
7967
7967
  ...e,
7968
7968
  children: /* @__PURE__ */ a("path", {
7969
7969
  d: "M5 4h14v10l-6 6H5zM13 20v-6h6",
7970
- ...zt
7970
+ ...Ft
7971
7971
  })
7972
7972
  }), Y2 = (e) => /* @__PURE__ */ a(M, {
7973
7973
  viewBox: "0 0 24 24",
7974
7974
  ...e,
7975
7975
  children: /* @__PURE__ */ a("path", {
7976
7976
  d: "M5 19L19 5M10 5h9v9",
7977
- ...zt
7977
+ ...Ft
7978
7978
  })
7979
7979
  }), Z2 = (e) => /* @__PURE__ */ a(M, {
7980
7980
  viewBox: "0 0 24 24",
7981
7981
  ...e,
7982
7982
  children: /* @__PURE__ */ a("path", {
7983
7983
  d: "M4 6h16v12H4z",
7984
- ...zt
7984
+ ...Ft
7985
7985
  })
7986
7986
  }), J2 = (e) => /* @__PURE__ */ a(M, {
7987
7987
  viewBox: "0 0 24 24",
7988
7988
  ...e,
7989
7989
  children: /* @__PURE__ */ a("path", {
7990
7990
  d: "M12 3a9 9 0 1 0 0 18 9 9 0 1 0 0-18zM8.5 14.5s1.3 2 3.5 2 3.5-2 3.5-2M9 9.5h.01M15 9.5h.01",
7991
- ...zt
7991
+ ...Ft
7992
7992
  })
7993
7993
  }), ha = {
7994
7994
  fill: "none",
@@ -8049,7 +8049,7 @@ var j2 = "_1vbfegu3", zt = {
8049
8049
  if (!p && !g) return;
8050
8050
  const P = (S) => {
8051
8051
  if (S.key !== "Escape" || !ht(S.target, e, l) || sn(S.target)) return;
8052
- const b = ft(S.target), E = o.getState().caret !== null && !Lt(S.target, l);
8052
+ const b = ft(S.target), E = o.getState().caret !== null && !Pt(S.target, l);
8053
8053
  if (b && !E) return;
8054
8054
  const z = o.getState().standingInteraction?.kind;
8055
8055
  z !== "arrow-draw" && z !== "box-draw" || (S.preventDefault(), o.getState().releaseInteraction(z));
@@ -8327,7 +8327,7 @@ var j2 = "_1vbfegu3", zt = {
8327
8327
  x: t,
8328
8328
  y: n
8329
8329
  } };
8330
- }, Bt = (e) => e.offset + e.strokeWidth, po = "http://www.w3.org/2000/svg", go = /* @__PURE__ */ new WeakMap(), cf = (e, t) => {
8330
+ }, zt = (e) => e.offset + e.strokeWidth, po = "http://www.w3.org/2000/svg", go = /* @__PURE__ */ new WeakMap(), cf = (e, t) => {
8331
8331
  const n = df(e);
8332
8332
  n.setAttribute("d", t);
8333
8333
  const { x: r, y: o, width: i, height: l } = n.getBBox();
@@ -8345,7 +8345,7 @@ var j2 = "_1vbfegu3", zt = {
8345
8345
  const r = e.createElementNS(po, "path");
8346
8346
  return n.append(r), e.body.append(n), go.set(e, r), r;
8347
8347
  }, uf = (e, t) => {
8348
- const { panelRect: n, look: r, readGridLineWidth: o, measurePathBox: i } = t, l = Bt(r);
8348
+ const { panelRect: n, look: r, readGridLineWidth: o, measurePathBox: i } = t, l = zt(r);
8349
8349
  switch (e.kind) {
8350
8350
  case "observations":
8351
8351
  return Yn([...e.parts, ...e.vertex === null ? [] : [e.vertex]].flatMap((s) => hf(s, i)).map((s) => ({
@@ -8434,11 +8434,11 @@ var mf = (e, { coordSystem: t, panelRect: n }) => {
8434
8434
  bottom: kr(t),
8435
8435
  left: Tr(t)
8436
8436
  } : {
8437
- top: qt(e, t, "top", n),
8438
- right: qt(e, t, "right", n),
8439
- bottom: qt(e, t, "bottom", n),
8440
- left: qt(e, t, "left", n)
8441
- }, qt = (e, t, n, r) => {
8437
+ top: Xt(e, t, "top", n),
8438
+ right: Xt(e, t, "right", n),
8439
+ bottom: Xt(e, t, "bottom", n),
8440
+ left: Xt(e, t, "left", n)
8441
+ }, Xt = (e, t, n, r) => {
8442
8442
  const o = bf[n], i = n === "left" || n === "right", l = (m) => i ? m.y : m.x, s = (m) => i ? m.y + m.height : m.x + m.width;
8443
8443
  let c = -1 / 0;
8444
8444
  for (const m of e) c = Math.max(c, o(m));
@@ -8480,7 +8480,7 @@ var mf = (e, { coordSystem: t, panelRect: n }) => {
8480
8480
  const f = yf(mf(d, {
8481
8481
  coordSystem: l,
8482
8482
  panelRect: n
8483
- }), m, Bt(r)), y = Ms(t);
8483
+ }), m, zt(r)), y = Ms(t);
8484
8484
  o.getState().setSelectedOutline({
8485
8485
  target: c,
8486
8486
  frame: m,
@@ -8520,7 +8520,7 @@ var mf = (e, { coordSystem: t, panelRect: n }) => {
8520
8520
  return _(() => {
8521
8521
  if (s === null) return null;
8522
8522
  const c = t.find((u) => u.id === s.layerId);
8523
- if (c === void 0 || _t(c, s.observation)) return null;
8523
+ if (c === void 0 || Dt(c, s.observation)) return null;
8524
8524
  const d = Ve({
8525
8525
  layer: c,
8526
8526
  observationIndex: yt(s),
@@ -8556,7 +8556,7 @@ var mf = (e, { coordSystem: t, panelRect: n }) => {
8556
8556
  target: d,
8557
8557
  parsingLocale: o
8558
8558
  }), p = h === void 0 ? void 0 : u.data.getAt(h);
8559
- return p == null || _t(u, p) ? null : Fs({
8559
+ return p == null || Dt(u, p) ? null : Fs({
8560
8560
  layer: u,
8561
8561
  observation: p,
8562
8562
  target: d,
@@ -8637,7 +8637,7 @@ var mf = (e, { coordSystem: t, panelRect: n }) => {
8637
8637
  }
8638
8638
  return {
8639
8639
  kind: "observations",
8640
- key: Rt(e),
8640
+ key: Ot(e),
8641
8641
  layerId: e.layerId,
8642
8642
  scope: e.scope,
8643
8643
  parts: i,
@@ -8658,7 +8658,7 @@ var mf = (e, { coordSystem: t, panelRect: n }) => {
8658
8658
  return {
8659
8659
  outlined: {
8660
8660
  kind: "guide",
8661
- key: Rt(e),
8661
+ key: Ot(e),
8662
8662
  target: e
8663
8663
  },
8664
8664
  target: e
@@ -8737,7 +8737,7 @@ var fo = (e, t) => {
8737
8737
  case "grid": {
8738
8738
  const p = {
8739
8739
  kind: "guide",
8740
- key: Rt(r.target),
8740
+ key: Ot(r.target),
8741
8741
  target: r.target
8742
8742
  };
8743
8743
  return e !== null && fo(p, e) ? null : p;
@@ -9041,7 +9041,7 @@ var fo = (e, t) => {
9041
9041
  animateTransitions: o
9042
9042
  };
9043
9043
  if (!p) {
9044
- if (l !== null && l.target.kind !== "observations") return /* @__PURE__ */ a(Yt, {
9044
+ if (l !== null && l.target.kind !== "observations") return /* @__PURE__ */ a(qt, {
9045
9045
  part: "selected",
9046
9046
  target: l.outlined,
9047
9047
  editTarget: l.target,
@@ -9056,7 +9056,7 @@ var fo = (e, t) => {
9056
9056
  height: n.height,
9057
9057
  "aria-hidden": !0,
9058
9058
  "data-testid": "edit-outline",
9059
- children: /* @__PURE__ */ a(Yt, {
9059
+ children: /* @__PURE__ */ a(qt, {
9060
9060
  part: "selected",
9061
9061
  target: m,
9062
9062
  editTarget: l?.target.kind === "observations" ? l.target : void 0,
@@ -9072,13 +9072,13 @@ var fo = (e, t) => {
9072
9072
  height: n.height,
9073
9073
  "aria-hidden": !0,
9074
9074
  "data-testid": "edit-outline",
9075
- children: [s !== null && /* @__PURE__ */ a(Yt, {
9075
+ children: [s !== null && /* @__PURE__ */ a(qt, {
9076
9076
  part: "hover",
9077
9077
  target: s,
9078
9078
  look: i.hover,
9079
9079
  paints: !0,
9080
9080
  ...g
9081
- }, s.key), l !== null && /* @__PURE__ */ a(Yt, {
9081
+ }, s.key), l !== null && /* @__PURE__ */ a(qt, {
9082
9082
  part: "selected",
9083
9083
  target: l.outlined,
9084
9084
  editTarget: l.target,
@@ -9087,7 +9087,7 @@ var fo = (e, t) => {
9087
9087
  ...g
9088
9088
  }, l.outlined.key)]
9089
9089
  });
9090
- }), Yt = ({ part: e, target: t, editTarget: n, look: r, frameSize: o, panelRect: i, frameElement: l, animateTransitions: s, paints: c }) => {
9090
+ }), qt = ({ part: e, target: t, editTarget: n, look: r, frameSize: o, panelRect: i, frameElement: l, animateTransitions: s, paints: c }) => {
9091
9091
  const d = Be(), u = `${d}-shapes`, h = `${d}-hole`, p = Wf(t, {
9092
9092
  frameElement: l,
9093
9093
  frameSize: o,
@@ -9159,7 +9159,7 @@ var fo = (e, t) => {
9159
9159
  stroke: e.backingColor ?? ve.graphBackground,
9160
9160
  strokeLinecap: "round",
9161
9161
  opacity: e.backingAlpha,
9162
- ...De({ [pa]: `${2 * Bt(e)}px` })
9162
+ ...De({ [pa]: `${2 * zt(e)}px` })
9163
9163
  }), Jf = (e) => {
9164
9164
  const t = Ji(e.dashArray, e.strokeWidth);
9165
9165
  return {
@@ -9168,7 +9168,7 @@ var fo = (e, t) => {
9168
9168
  strokeDasharray: t,
9169
9169
  strokeLinecap: t === void 0 ? "round" : "butt",
9170
9170
  opacity: e.strokeAlpha,
9171
- ...De({ [pa]: `${2 * Bt(e)}px` })
9171
+ ...De({ [pa]: `${2 * zt(e)}px` })
9172
9172
  };
9173
9173
  }, Qf = ({ dashArray: e, strokeWidth: t }) => {
9174
9174
  if (Ji(e, t) === void 0) return;
@@ -9178,7 +9178,7 @@ var fo = (e, t) => {
9178
9178
  if (!(t === void 0 || e <= 0))
9179
9179
  return n * Math.max(1, Math.round(2 * Math.PI * e / t)) * t;
9180
9180
  }, e0 = (e, t, n) => {
9181
- const r = n.offset + Bt(n);
9181
+ const r = n.offset + zt(n);
9182
9182
  return Nr(ut({
9183
9183
  x: 0,
9184
9184
  y: 0,
@@ -9654,7 +9654,7 @@ var fo = (e, t) => {
9654
9654
  t: o
9655
9655
  }, e.scope);
9656
9656
  }, E0 = ({ frameElement: e }) => {
9657
- const { selectionStore: t } = W(), n = O0(Y((u) => u.selectedOutline)), r = Y((u) => u.annotatePress), o = Pe[ye()].showMenuTriggerOnHover, i = L1(n?.target ?? null), l = St(), s = n === null ? null : Rt(n.target), c = _(() => o && s !== null ? S0(r, s) : null, [
9657
+ const { selectionStore: t } = W(), n = O0(Y((u) => u.selectedOutline)), r = Y((u) => u.annotatePress), o = Pe[ye()].showMenuTriggerOnHover, i = L1(n?.target ?? null), l = St(), s = n === null ? null : Ot(n.target), c = _(() => o && s !== null ? S0(r, s) : null, [
9658
9658
  o,
9659
9659
  r,
9660
9660
  s
@@ -9693,10 +9693,10 @@ var fo = (e, t) => {
9693
9693
  },
9694
9694
  frameSpans: s,
9695
9695
  clientSpans: {
9696
- top: Zt(s.top, r, c),
9697
- right: Zt(s.right, o, c),
9698
- bottom: Zt(s.bottom, r, c),
9699
- left: Zt(s.left, o, c)
9696
+ top: Yt(s.top, r, c),
9697
+ right: Yt(s.right, o, c),
9698
+ bottom: Yt(s.bottom, r, c),
9699
+ left: Yt(s.left, o, c)
9700
9700
  }
9701
9701
  };
9702
9702
  }, [
@@ -9707,7 +9707,7 @@ var fo = (e, t) => {
9707
9707
  return Ye(() => {
9708
9708
  t.getState().setBoundary(i);
9709
9709
  }, [t, i]), Ye(() => () => t.getState().setBoundary(null), [t]), null;
9710
- }, Zt = (e, t, n) => ({
9710
+ }, Yt = (e, t, n) => ({
9711
9711
  from: t + e.from * n,
9712
9712
  to: t + e.to * n
9713
9713
  }), ga = "l8tsqe0", Hs = ["start", "end"], Gs = ({ anchor: e, point: t, delta: n, bounds: r = wi }) => {
@@ -9843,13 +9843,13 @@ var fo = (e, t) => {
9843
9843
  /* @__PURE__ */ a("path", { d: "M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2" })
9844
9844
  ]
9845
9845
  })
9846
- }), B0 = "var(--pvjfpx0)", H0 = "var(--pvjfpx1)", G0 = "pvjfpx2", V0 = "pvjfpx3", $0 = "pvjfpx4", W0 = "pvjfpx6 pvjfpx5", U0 = "pvjfpx7 pvjfpx6 pvjfpx5", K0 = "pvjfpx8 pvjfpx5", kt = 8, j0 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: r }) => {
9847
- const o = t.y + e.y, i = o + e.height, l = o - 8 - 36, s = i + 8, c = mt(l >= kt ? l : s, kt, r - kt - 36), d = kt;
9846
+ }), B0 = "var(--pvjfpx0)", H0 = "var(--pvjfpx1)", G0 = "pvjfpx2", V0 = "pvjfpx3", $0 = "pvjfpx4", W0 = "pvjfpx6 pvjfpx5", U0 = "pvjfpx7 pvjfpx6 pvjfpx5", K0 = "pvjfpx8 pvjfpx5", Zt = 8, j0 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: r }) => {
9847
+ const o = t.y + e.y, i = o + e.height, l = o - 8 - 36, s = i + 8, c = r - Zt - 36, d = mt(s <= c ? s : l, Zt, c), u = Zt;
9848
9848
  return {
9849
- top: c,
9850
- left: d,
9851
- available: Math.max(0, n - kt * 2),
9852
- centre: t.x + e.x + e.width / 2 - d
9849
+ top: d,
9850
+ left: u,
9851
+ available: Math.max(0, n - Zt * 2),
9852
+ centre: t.x + e.x + e.width / 2 - u
9853
9853
  };
9854
9854
  }, X0 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: r, label: o, testId: i, children: l }) => {
9855
9855
  const { chartId: s } = W(), c = j0({
@@ -9889,7 +9889,7 @@ var fo = (e, t) => {
9889
9889
  className: K0,
9890
9890
  disabled: o,
9891
9891
  onMouseDown: (s) => s.preventDefault(),
9892
- children: [t, /* @__PURE__ */ a(Dt, { size: "sm" })]
9892
+ children: [t, /* @__PURE__ */ a(Nt, { size: "sm" })]
9893
9893
  }), /* @__PURE__ */ a(ie.MenuPopup, {
9894
9894
  popupAttributes: Ln(l),
9895
9895
  children: i
@@ -10177,7 +10177,7 @@ var ib = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: r, frameHeight: o,
10177
10177
  x: e.x * t.width,
10178
10178
  y: e.y * t.height
10179
10179
  });
10180
- var cb = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, Ht = class {
10180
+ var cb = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, Bt = class {
10181
10181
  constructor(e) {
10182
10182
  this.params = e, this.listeners = new AbortController(), this.pendingEvent = null, this.scheduledFrame = null, this.hasMoved = !1, this.hasPublished = !1, this.confirmedDrag = !1, this.releasePoint = null, this.handleMove = (t) => {
10183
10183
  t.pointerId === this.params.pointerId && (this.pendingEvent = t, this.hasMoved = !0, this.scheduledFrame === null && (this.scheduledFrame = requestAnimationFrame(this.runFrame)));
@@ -10232,7 +10232,7 @@ var cb = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, Ht = class {
10232
10232
  if (r === void 0) return null;
10233
10233
  const o = r[n];
10234
10234
  return o.anchorType === "panel" ? o : null;
10235
- }, js = (e, t) => e === "start" ? { start: t } : { end: t }, db = class extends Ht {
10235
+ }, js = (e, t) => e === "start" ? { start: t } : { end: t }, db = class extends Bt {
10236
10236
  constructor(...e) {
10237
10237
  super(...e), this.kind = "arrow-endpoint-drag";
10238
10238
  }
@@ -10399,7 +10399,7 @@ var cb = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, Ht = class {
10399
10399
  return null;
10400
10400
  }
10401
10401
  }, mb = (e) => {
10402
- const t = Ft(), n = bb(t), r = yb(e.panelRect, t), o = Sb(t);
10402
+ const t = _t(), n = bb(t), r = yb(e.panelRect, t), o = Sb(t);
10403
10403
  if (n === null || r === null) return null;
10404
10404
  const i = o.dragged === null ? r : ma(r, o.dragged);
10405
10405
  return /* @__PURE__ */ a(vb, {
@@ -10646,7 +10646,7 @@ var Eb = "ydgo3h1", Ob = "ydgo3h2", Rb = "ydgo3h3", Nb = "ydgo3h4", Db = ({ clie
10646
10646
  const d = _b({
10647
10647
  x: e.x - t.x,
10648
10648
  y: e.y - t.y
10649
- }, n), { primary: u } = r.query(Nt(d, n));
10649
+ }, n), { primary: u } = r.query(Rt(d, n));
10650
10650
  if (u === null) return null;
10651
10651
  const h = o.find((g) => g.id === u.layerId);
10652
10652
  if (h === void 0) return null;
@@ -10668,7 +10668,7 @@ var Eb = "ydgo3h1", Ob = "ydgo3h2", Rb = "ydgo3h3", Nb = "ydgo3h4", Db = ({ clie
10668
10668
  id: t.id,
10669
10669
  patch: { [n]: r }
10670
10670
  }));
10671
- }, Fb = class extends Ht {
10671
+ }, Fb = class extends Bt {
10672
10672
  constructor(...e) {
10673
10673
  super(...e), this.kind = "difference-arrow-endpoint-drag";
10674
10674
  }
@@ -10833,7 +10833,7 @@ var Eb = "ydgo3h1", Ob = "ydgo3h2", Rb = "ydgo3h3", Nb = "ydgo3h4", Db = ({ clie
10833
10833
  })
10834
10834
  })?.point ?? null;
10835
10835
  }, $b = (e) => {
10836
- const t = Ft(), n = ri(), r = ce((o) => {
10836
+ const t = _t(), n = ri(), r = ce((o) => {
10837
10837
  const i = e.frameElement.querySelector('[data-testid="pointer-capture-layer"]');
10838
10838
  i !== null && i.dispatchEvent(new PointerEvent("pointerdown", {
10839
10839
  bubbles: !0,
@@ -10963,7 +10963,7 @@ var Xb = {
10963
10963
  hovered: "_1ee8fau5 _1ee8fau4",
10964
10964
  selected: "_1ee8fau6 _1ee8fau4"
10965
10965
  }, Yb = ({ panelRect: e }) => {
10966
- const t = rt(e), n = bi(), r = ee(), o = Ft(), i = Y((f) => J(f, "move-drag")), l = Y((f) => J(f, "shape-resize-drag")), s = Y((f) => J(f, "arrow-endpoint-drag")), c = Y((f) => J(f, "text-resize-drag")), d = Y(Rc), u = _(() => ({
10966
+ const t = rt(e), n = bi(), r = ee(), o = _t(), i = Y((f) => J(f, "move-drag")), l = Y((f) => J(f, "shape-resize-drag")), s = Y((f) => J(f, "arrow-endpoint-drag")), c = Y((f) => J(f, "text-resize-drag")), d = Y(Rc), u = _(() => ({
10967
10967
  panel: {
10968
10968
  width: e.width,
10969
10969
  height: e.height
@@ -11379,7 +11379,7 @@ var Qs = ({ width: e, height: t }) => ({
11379
11379
  }, fn = (e, t) => {
11380
11380
  const n = e.shapes.find((r) => r.id === t);
11381
11381
  return n === void 0 || n.region.anchorType !== "panel" ? null : n.region;
11382
- }, g5 = class extends Ht {
11382
+ }, g5 = class extends Bt {
11383
11383
  constructor(...e) {
11384
11384
  super(...e), this.kind = "shape-resize-drag";
11385
11385
  }
@@ -11512,7 +11512,7 @@ var Qs = ({ width: e, height: t }) => ({
11512
11512
  "top-right": "diagonalUp",
11513
11513
  "bottom-left": "diagonalUp"
11514
11514
  }, S5 = (e) => {
11515
- const t = Ft(), n = w5(t), r = x5(t);
11515
+ const t = _t(), n = w5(t), r = x5(t);
11516
11516
  if (n === null) return null;
11517
11517
  const o = r.resizedRegion ?? (n.region.anchorType === "panel" ? n.region : null);
11518
11518
  return o === null ? null : /* @__PURE__ */ a(C5, {
@@ -11807,7 +11807,7 @@ var sc = ({ width: e }) => Ae(60, e), R5 = (e, t) => ({
11807
11807
  width: n.width,
11808
11808
  align: n.align
11809
11809
  };
11810
- }, D5 = class extends Ht {
11810
+ }, D5 = class extends Bt {
11811
11811
  constructor(...e) {
11812
11812
  super(...e), this.kind = "text-resize-drag";
11813
11813
  }
@@ -11904,7 +11904,7 @@ var sc = ({ width: e }) => Ae(60, e), R5 = (e, t) => ({
11904
11904
  return null;
11905
11905
  }
11906
11906
  }, H5 = (e) => {
11907
- const t = Ft(), n = V5(t), r = $5(t), o = Y((l) => l.caret?.annotationId === t), i = W5(e.panelRect, t, r.resized);
11907
+ const t = _t(), n = V5(t), r = $5(t), o = Y((l) => l.caret?.annotationId === t), i = W5(e.panelRect, t, r.resized);
11908
11908
  return n === null || i === null ? null : /* @__PURE__ */ a(G5, {
11909
11909
  annotation: n,
11910
11910
  textBox: i,
@@ -11989,7 +11989,7 @@ var Do = [
11989
11989
  return B(() => {
11990
11990
  if (!i) return;
11991
11991
  const s = o.getState();
11992
- s.setHoverState(Ot), s.setTooltipAnchor(null);
11992
+ s.setHoverState(Et), s.setTooltipAnchor(null);
11993
11993
  }, [i, o]), B(() => {
11994
11994
  const s = l.current;
11995
11995
  if (s === null) return;
@@ -12194,7 +12194,7 @@ var Do = [
12194
12194
  elements: c
12195
12195
  };
12196
12196
  }, sy = (e, t, n) => {
12197
- const r = Nt({
12197
+ const r = Rt({
12198
12198
  x: e.clientX - t.left,
12199
12199
  y: e.clientY - t.top
12200
12200
  }, t);
@@ -12203,7 +12203,7 @@ var Do = [
12203
12203
  viewport: t,
12204
12204
  includeAttached: !0
12205
12205
  });
12206
- }, cy = class extends Ht {
12206
+ }, cy = class extends Bt {
12207
12207
  constructor(...e) {
12208
12208
  super(...e), this.kind = "move-drag";
12209
12209
  }
@@ -12233,7 +12233,7 @@ var Do = [
12233
12233
  const l = {
12234
12234
  x: e.x - t.left,
12235
12235
  y: e.y - t.top
12236
- }, { primary: s, intersection: c } = n.query(Nt(l, t), {
12236
+ }, { primary: s, intersection: c } = n.query(Rt(l, t), {
12237
12237
  tolerance: ni,
12238
12238
  viewport: {
12239
12239
  width: t.width,
@@ -12242,7 +12242,7 @@ var Do = [
12242
12242
  });
12243
12243
  if (s === null || c?.intersects !== !0) return null;
12244
12244
  const d = r.find((p) => p.id === s.layerId);
12245
- if (d === void 0 || _t(d, s.observation) || !uy(d.spatialKind)) return null;
12245
+ if (d === void 0 || Dt(d, s.observation) || !uy(d.spatialKind)) return null;
12246
12246
  const u = yt(s), h = Ve({
12247
12247
  layer: d,
12248
12248
  observationIndex: u,
@@ -12330,13 +12330,13 @@ var Do = [
12330
12330
  y: e.y - t.top
12331
12331
  };
12332
12332
  if (Vo(t, e)) {
12333
- const { primary: s, intersection: c } = r.query(Nt(i, t), {
12333
+ const { primary: s, intersection: c } = r.query(Rt(i, t), {
12334
12334
  tolerance: vy,
12335
12335
  viewport: {
12336
12336
  width: t.width,
12337
12337
  height: t.height
12338
12338
  }
12339
- }), d = s === null ? void 0 : o.find((h) => h.id === s.layerId), u = s !== null && d !== void 0 && _t(d, s.observation);
12339
+ }), d = s === null ? void 0 : o.find((h) => h.id === s.layerId), u = s !== null && d !== void 0 && Dt(d, s.observation);
12340
12340
  if (s !== null && c?.intersects !== !1 && !u) return null;
12341
12341
  }
12342
12342
  const l = Us({
@@ -12428,7 +12428,7 @@ var Do = [
12428
12428
  if (U !== void 0 && y0(U.geom, E.type)) {
12429
12429
  const j = e.getBoundingClientRect(), se = la(e, j.width);
12430
12430
  c.getState().setAnnotatePress({
12431
- key: Rt(O.target),
12431
+ key: Ot(O.target),
12432
12432
  x: (k.clientX - j.left) / se,
12433
12433
  y: (k.clientY - j.top) / se
12434
12434
  });
@@ -12682,7 +12682,7 @@ var Do = [
12682
12682
  const m = c.current, f = s.current, y = {
12683
12683
  x: g.clientX - f.x,
12684
12684
  y: g.clientY - f.y
12685
- }, x = Ay(y, m) ? i.query(Nt(y, m)) : Ot;
12685
+ }, x = Ay(y, m) ? i.query(Rt(y, m)) : Et;
12686
12686
  o.getState().setHoverState(x);
12687
12687
  };
12688
12688
  let u = !1;
@@ -12710,7 +12710,7 @@ var Do = [
12710
12710
  const d = (C) => {
12711
12711
  if (!i) return;
12712
12712
  const w = o.getState();
12713
- w.suspendsHover || C === null && w.hover.primary === null || w.setHoverState(C ?? Ot);
12713
+ w.suspendsHover || C === null && w.hover.primary === null || w.setHoverState(C ?? Et);
12714
12714
  }, u = () => {
12715
12715
  if (l = null, s === null) return;
12716
12716
  const C = n.getState();
@@ -12775,7 +12775,7 @@ var Do = [
12775
12775
  B(() => (l.getState().setSuspendsHover(u), () => l.getState().setSuspendsHover(!1)), [l, u]), B(() => {
12776
12776
  if (!s || !c) return;
12777
12777
  const h = l.getState();
12778
- h.setHoverState(Ot), h.setTooltipAnchor(null);
12778
+ h.setHoverState(Et), h.setTooltipAnchor(null);
12779
12779
  }, [
12780
12780
  l,
12781
12781
  s,
@@ -12966,7 +12966,7 @@ var Wy = () => () => {
12966
12966
  const t = nh(e?.subscribe ?? Wy, () => e?.getScene()?.config.parsingLocale);
12967
12967
  return e?.formattingLocale ?? t;
12968
12968
  }, Ky = (e) => {
12969
- const t = Ce(Xc), n = gi(Uy(Et(e.handle))), r = $c();
12969
+ const t = Ce(Xc), n = gi(Uy(Mt(e.handle))), r = $c();
12970
12970
  let o = /* @__PURE__ */ a(jy, { ...e });
12971
12971
  return !r && t && (o = /* @__PURE__ */ a(yd, {
12972
12972
  colorScheme: t.colorScheme,
@@ -12979,7 +12979,7 @@ var Wy = () => () => {
12979
12979
  Root: Ky,
12980
12980
  Controls: Vy
12981
12981
  }, jy = ({ handle: e, children: t, controls: n, defaultExpandedSection: r = void 0, className: o }) => {
12982
- const i = Et(e), { themeClass: l, inlineVarsStyle: s } = yn(), [c, d] = Z(() => r ? [r] : []), u = _(() => ({
12982
+ const i = Mt(e), { themeClass: l, inlineVarsStyle: s } = yn(), [c, d] = Z(() => r ? [r] : []), u = _(() => ({
12983
12983
  expandSection: (h) => d([h]),
12984
12984
  collapseAllSections: () => d([])
12985
12985
  }), []);
@@ -12989,7 +12989,7 @@ var Wy = () => () => {
12989
12989
  controls: n,
12990
12990
  children: /* @__PURE__ */ a(zy, {
12991
12991
  value: u,
12992
- children: /* @__PURE__ */ a(At.Root, {
12992
+ children: /* @__PURE__ */ a(Tt.Root, {
12993
12993
  [Gy]: "",
12994
12994
  className: Ze(Hy, o, { [l]: !$y(o) }),
12995
12995
  style: s,
@@ -13070,15 +13070,15 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13070
13070
  });
13071
13071
  }, t3 = ({ title: e, preview: t, accessory: n, onOpenChange: r, children: o }) => {
13072
13072
  const i = R();
13073
- return /* @__PURE__ */ v(At.Item, {
13073
+ return /* @__PURE__ */ v(Tt.Item, {
13074
13074
  value: e,
13075
13075
  className: fa,
13076
13076
  onOpenChange: r,
13077
- children: [/* @__PURE__ */ v(At.Header, {
13077
+ children: [/* @__PURE__ */ v(Tt.Header, {
13078
13078
  className: ba,
13079
13079
  render: /* @__PURE__ */ a("div", {}),
13080
13080
  children: [
13081
- /* @__PURE__ */ a(At.Trigger, {
13081
+ /* @__PURE__ */ a(Tt.Trigger, {
13082
13082
  className: Yy,
13083
13083
  "aria-label": i("editor.accessibility.toggleSection", { title: e })
13084
13084
  }),
@@ -13099,7 +13099,7 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13099
13099
  children: /* @__PURE__ */ a(qy, { size: "sm" })
13100
13100
  })
13101
13101
  ]
13102
- }), /* @__PURE__ */ a(At.Panel, { children: /* @__PURE__ */ a("div", { children: o }) })]
13102
+ }), /* @__PURE__ */ a(Tt.Panel, { children: /* @__PURE__ */ a("div", { children: o }) })]
13103
13103
  });
13104
13104
  }, n3 = ({ title: e, checked: t, onToggle: n, disabled: r, preview: o, children: i }) => {
13105
13105
  const { expandSection: l, collapseAllSections: s } = By(), { Switch: c } = H();
@@ -13136,9 +13136,9 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13136
13136
  if (!i) return null;
13137
13137
  const h = i.coordSystem.type === "polar" ? i.coordSystem.axisMapping[e].geometry : "linear", p = i.config.axes[e], g = i.scales[e], m = g?.spec, f = m?.scaleType === "continuous" ? m : void 0;
13138
13138
  if (h === "circular" || h === "radial" && f === void 0) return null;
13139
- const y = m?.scaleType === "continuous" || m?.scaleType === "datetime", x = f !== void 0 && ji(i, e), C = f?.transform === "log", w = f?.domainMax ?? null, A = i3(f), T = (D, Ee) => D.map((Vt) => ({
13140
- value: Vt,
13141
- label: Ee(Vt)
13139
+ const y = m?.scaleType === "continuous" || m?.scaleType === "datetime", x = f !== void 0 && ji(i, e), C = f?.transform === "log", w = f?.domainMax ?? null, A = i3(f), T = (D, Ee) => D.map((Gt) => ({
13140
+ value: Gt,
13141
+ label: Ee(Gt)
13142
13142
  })), I = i.guides.axes.find((D) => D.scaledAesthetic === e), N = I?.position, k = i.guides.axes.filter((D) => D.scaledAesthetic === e || e === "y" && D.scaledAesthetic === "ySecondary"), O = k.some((D) => D.visible), P = k.some((D) => D.visible || D.showGrid), S = p.label ?? I?.label ?? "", b = r3[N === "bottom" || N === "top" || N === void 0 && e === "x" ? "horizontal" : "vertical"], E = e === "y" ? _u(i.spec) : null, z = E === null ? void 0 : q(i.spec.layers, E), U = i.guides.legends.drawn.some((D) => !D.inHeadlineRow && b.some((Ee) => Ee === D.position)), j = b.map((D) => ({
13143
13143
  value: D,
13144
13144
  label: l(a3[D])
@@ -13172,7 +13172,7 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13172
13172
  transform: D === "log" ? "log" : "linear"
13173
13173
  }));
13174
13174
  }, Ct = (D) => {
13175
- o.commands.dispatch(new Pt({
13175
+ o.commands.dispatch(new At({
13176
13176
  scaledAesthetic: e,
13177
13177
  ...D
13178
13178
  }), { transient: !0 });
@@ -13182,13 +13182,13 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13182
13182
  D !== null && Ct({ domainMax: D });
13183
13183
  }, Ue = (D) => {
13184
13184
  const Ee = D === "auto" ? null : D === "zero" ? 0 : Uo(g?.domain, "start");
13185
- o.commands.dispatch(new Pt({
13185
+ o.commands.dispatch(new At({
13186
13186
  scaledAesthetic: e,
13187
13187
  domainMin: Ee
13188
13188
  }));
13189
13189
  }, Cc = (D) => {
13190
13190
  const Ee = D === "custom" ? Uo(g?.domain, "end") : null;
13191
- o.commands.dispatch(new Pt({
13191
+ o.commands.dispatch(new At({
13192
13192
  scaledAesthetic: e,
13193
13193
  domainMax: Ee
13194
13194
  }));
@@ -13198,7 +13198,7 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13198
13198
  yScaleType: D === "double" ? "secondary" : "primary"
13199
13199
  }));
13200
13200
  }, xc = (D) => {
13201
- const Ee = b.find((Vt) => Vt === D);
13201
+ const Ee = b.find((Gt) => Gt === D);
13202
13202
  Ee && o.commands.dispatch(new Ti({
13203
13203
  axis: e,
13204
13204
  position: Ee
@@ -13421,11 +13421,11 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13421
13421
  onChange: d
13422
13422
  })] })
13423
13423
  });
13424
- }, Gt = (e) => {
13424
+ }, Ht = (e) => {
13425
13425
  const { colorScheme: t } = yn(), n = _(() => hu({ colorScheme: t }), [t]);
13426
13426
  return _(() => e === null ? null : n.readers(e), [e, n]);
13427
13427
  }, Sa = (e, t, n) => {
13428
- const r = Gt(e);
13428
+ const r = Ht(e);
13429
13429
  return _(() => {
13430
13430
  if (r === null || e === null || t === null) return null;
13431
13431
  const o = q(e.layers, t);
@@ -13448,7 +13448,7 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13448
13448
  3,
13449
13449
  4
13450
13450
  ], h3 = Ir.length / 2, p3 = { select: { target: "graph" } }, g3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
13451
- const r = te(), o = Q(r), i = R(), { RadioGrid: l } = H(), s = Gt(o);
13451
+ const r = te(), o = Q(r), i = R(), { RadioGrid: l } = H(), s = Ht(o);
13452
13452
  if (!o || !s) return null;
13453
13453
  const c = s.graph().get("textScale"), d = (p) => i("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${p}` }), u = Ir.map((p) => ({
13454
13454
  value: `${p}`,
@@ -13519,7 +13519,7 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13519
13519
  ...t,
13520
13520
  children: e ?? /* @__PURE__ */ v(K, { children: [/* @__PURE__ */ a(Wo, { axis: "x" }), /* @__PURE__ */ a(Wo, { axis: "y" })] })
13521
13521
  }), _n = (e) => `${e}px`, vc = (e) => `${Math.round(e * 100)}%`, v3 = (e) => `${e}°`, f3 = 24, b3 = { select: { target: "graph" } }, jo = ["dim", "desaturate"], a6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
13522
- const r = te(), o = Q(r), i = R(), { Slider: l, ToggleGroup: s } = H(), c = Gt(o);
13522
+ const r = te(), o = Q(r), i = R(), { Slider: l, ToggleGroup: s } = H(), c = Ht(o);
13523
13523
  if (!o || !c) return null;
13524
13524
  const d = c.graph().get("cornerRadius"), u = Hu(o.spec), h = jo.map((m) => ({
13525
13525
  value: m,
@@ -13983,7 +13983,7 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13983
13983
  ] })
13984
13984
  });
13985
13985
  }, F3 = 3, d6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
13986
- const r = te(), o = Q(r), i = R(), { RadioGrid: l } = H(), s = _(() => It.map(({ name: h, icon: p, summary: g }) => ({
13986
+ const r = te(), o = Q(r), i = R(), { RadioGrid: l } = H(), s = _(() => Lt.map(({ name: h, icon: p, summary: g }) => ({
13987
13987
  value: h,
13988
13988
  label: i(`editor.graphTypes.${h}`),
13989
13989
  icon: /* @__PURE__ */ a(p, { size: "md" }),
@@ -13991,7 +13991,7 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
13991
13991
  })), [i, o]);
13992
13992
  if (!o) return null;
13993
13993
  const c = An(o.spec), d = cn(c), u = (h) => {
13994
- const p = It.find((g) => g.name === h);
13994
+ const p = Lt.find((g) => g.name === h);
13995
13995
  p && r.commands.dispatch(new zr(Ml(p.summary, c)));
13996
13996
  };
13997
13997
  return /* @__PURE__ */ a(oe, {
@@ -14007,7 +14007,7 @@ var Qy = "_40zvwv8", oe = ({ title: e, layout: t = "fixed", preview: n, accessor
14007
14007
  })
14008
14008
  });
14009
14009
  }, u6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
14010
- const r = te(), o = Q(r), i = R(), { Slider: l, Switch: s, ToggleGroup: c } = H(), d = Gt(o), u = o !== null && d !== null ? Vl(o, d) : null;
14010
+ const r = te(), o = Q(r), i = R(), { Slider: l, Switch: s, ToggleGroup: c } = H(), d = Ht(o), u = o !== null && d !== null ? Vl(o, d) : null;
14011
14011
  if (u === null) return null;
14012
14012
  const h = u.axes.filter((x) => x.supportsGrid);
14013
14013
  if (h.length === 0) return null;
@@ -14274,7 +14274,7 @@ var Jn = [
14274
14274
  }
14275
14275
  }) : null;
14276
14276
  }, g6 = ({ title: e, layout: t = "collapsible", preview: n }) => {
14277
- const r = te(), o = Q(r), i = R(), { Select: l, Slider: s, Switch: c, ToggleGroup: d } = H(), u = Gt(o), h = Ui(o?.spec.layers ?? [], "line", "area"), p = o && u && h ? Zr(o, u, h.id) : null;
14277
+ const r = te(), o = Q(r), i = R(), { Select: l, Slider: s, Switch: c, ToggleGroup: d } = H(), u = Ht(o), h = Ui(o?.spec.layers ?? [], "line", "area"), p = o && u && h ? Zr(o, u, h.id) : null;
14278
14278
  if (!o || !p) return null;
14279
14279
  const g = p.missingValueOptions.map((T) => ({
14280
14280
  value: T,