@graphysdk/react-renderer 1.9.0-beta.1792510459918 → 1.9.0-beta.1792517610964

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,4 +1,4 @@
1
- import { $ as Dn, $t as Xl, A as Mt, An as H, B as Zl, C as Yl, Ct as Ma, D as Jl, Dt as Ql, E as es, En as W, Et as Ne, F as ts, Ft as ne, G as ee, Gt as ns, I as rs, It as as, J as Sr, Jt as os, K as U, L, Lt as is, Mn as _n, O as Oa, On as R, Ot as ls, P as ss, Pt as et, Q as Fn, Qt as cs, S as ds, St as E, T as Ee, U as us, W as hs, Wt as Cr, X as ps, Y as ms, Z as j, _ as De, _n as gs, an as ce, at as zn, b as Ra, bn as vs, bt as fs, c as Na, ct as bs, d as ys, dt as Ss, en as Da, et as _a, f as Cs, ft as ge, g as Fa, gn as xs, gt as Ot, h as Rt, ht as ws, i as Bn, in as za, it as Ba, k as un, kn as ks, kt as Ts, l as As, lt as Ps, m as Ls, mt as Is, n as le, nt as Nt, o as Es, on as Hn, p as Ha, pt as ue, q as Ms, r as K, rn as Ga, rt as Os, sn as Be, st as Rs, t as Ns, tn as Ds, tt as Gn, u as _s, ut as xr, v as Fs, wn as Va, wt as zs, x as Bs, xt as Hs, y as Gs, yt as Vs } from "./history-chords-Kybi2Tvr.js";
1
+ import { $ as Dn, $t as Xl, A as Mt, An as H, B as Zl, C as Yl, Ct as Ma, D as Jl, Dt as Ql, E as es, En as W, Et as Ne, F as ts, Ft as ne, G as ee, Gt as ns, I as rs, It as as, J as Sr, Jt as os, K as U, L, Lt as is, Mn as _n, O as Oa, On as R, Ot as ls, P as ss, Pt as et, Q as Fn, Qt as cs, S as ds, St as E, T as Ee, U as us, W as hs, Wt as Cr, X as ps, Y as ms, Z as j, _ as De, _n as gs, an as ce, at as zn, b as Ra, bn as vs, bt as fs, c as Na, ct as bs, d as ys, dt as Ss, en as Da, et as _a, f as Cs, ft as ge, g as Fa, gn as xs, gt as Ot, h as Rt, ht as ws, i as Bn, in as za, it as Ba, k as un, kn as ks, kt as Ts, l as As, lt as Ps, m as Ls, mt as Is, n as le, nt as Nt, o as Es, on as Hn, p as Ha, pt as ue, q as Ms, r as K, rn as Ga, rt as Os, sn as Be, st as Rs, t as Ns, tn as Ds, tt as Gn, u as _s, ut as xr, v as Fs, wn as Va, wt as zs, x as Bs, xt as Hs, y as Gs, yt as Vs } from "./history-chords-J8zi_Vu7.js";
2
2
  import { ARROW_DEFAULTS as $s, ARROW_STICKER_DECLARATIONS as Ws, ARROW_STROKE_WIDTHS_PX as Jt, AddAnnotationCommand as Te, AddHighlightCommand as Us, BORDER_RADIUS_TOKENS as wr, COMBO_TYPES as kr, CONSTANT_VARIABLES as Ks, DASH_PRESETS as qs, DEFAULT_BAR_CORNER_RADIUS as js, DEFAULT_GEOM_COLOR as Xs, DEFAULT_POINT_SIZE_PX as $a, DEFAULT_STROKE_WIDTH_PX as Zs, DIFFERENCE_ARROW_DEFAULTS as Wa, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Tr, InternalError as Ys, MAX_BAR_WIDTH_FRACTION as Js, MIN_BAR_WIDTH_FRACTION as Qs, MoveAnnotationCommand as ec, RESTING_HOVER_STATE as Vn, RemoveAnnotationCommand as $e, RemoveHighlightCommand as tc, SHAPE_DEFAULTS as nc, SequenceCommand as qe, SetAxisLabelCommand as Ua, SetAxisPositionCommand as Ka, SetAxisTickModeCommand as qa, SetAxisTicksVisibilityCommand as rc, SetAxisVisibilityCommand as hn, SetBarCornerRadiusCommand as ac, SetBarWidthCommand as ja, SetChartTypeCommand as $n, SetContentCaptionCommand as Xa, SetContentSourceCommand as oc, SetContentSubtitleCommand as Za, SetContentTitleCommand as Ya, SetDataLabelsFormatCommand as Ja, SetDifferenceArrowStyleCommand as ic, SetGridLineStyleCommand as Qa, SetGridVisibilityCommand as pn, SetHeadlineCompareWithCommand as lc, SetHeadlinePositionCommand as sc, SetHeadlineShowCommand as Ar, SetHeadlineSizeCommand as cc, SetHighlightDimStyleCommand as dc, SetLayerYScaleTypeCommand as uc, SetLegendAlignCommand as hc, SetLegendDisplayCommand as pc, SetLegendPlacementCommand as mc, SetLegendPositionCommand as mn, SetLineCurveCommand as eo, SetLineMissingValuesCommand as to, SetLineStyleCommand as Ce, SetMappingCommand as gc, SetNumberFormatAbbreviationCommand as vc, SetNumberFormatDecimalsCommand as Pr, SetObservationsColorCommand as fc, SetPointSizeCommand as Wn, SetPolarInnerRadiusCommand as bc, SetPolarStartAngleCommand as yc, SetRuleLabelCommand as Sc, SetRuleValueCommand as Cc, SetScaleDomainCommand as Ze, SetScaleRangeCommand as xc, SetScaleReverseCommand as wc, SetScaleTransformCommand as no, SetStatLineCommand as kc, SetStyleRuleCommand as Oe, TEXT_ANNOTATION_DEFAULTS as Tc, TEXT_ANNOTATION_FADE_ALPHA as Ac, ToggleCategoryLabelsCommand as ro, ToggleContentVisibilityCommand as Dt, ToggleDataLabelsCommand as ao, ToggleGoalLineCommand as Pc, ToggleLinePointsCommand as Un, ToggleStackTotalsCommand as oo, UpdateAnnotationCommand as ve, alignUnitFractions as Lc, areAnchorsEqual as io, areEditTargetsEqual as Kn, areEndpointsComparable as Ic, buildEditMenuTriggerRegion as Ec, buildLayerStyleAddress as Ge, buildObservationPredicate as Mc, buildObservationsTarget as tt, buildObservationsTargetAtValue as lo, canAnchorDirectLabels as Oc, canBecomeCombo as Rc, canBecomeHeatmap as Nc, clampAnnotationTranslation as Dc, combineKindStyleDeclarations as Lr, computeArrow as so, createObservationAnchorBuilder as _c, createObservationAnchorParser as Fc, createStyleResolver as zc, createStyleRuleMatcher as Bc, createValueFormatter as co, createXValueReader as Hc, filterLayersByGeoms as gn, findAnnotation as Gc, findAverageLineLayer as Vc, findAxisGuide as uo, findCompanionLayers as ho, findGoalLineLayer as $c, findHighlightsAtObservation as Wc, findHostLayer as _t, findKindStyleDeclarations as bt, findLayerByGeom as po, findLayerById as Z, findObservationAttachment as Uc, findStyleRule as Pe, findTrendLineLayer as Kc, formatDifferenceLabel as qc, getBoundingRect as vn, getGroupVariables as mo, getXBand as jc, getYBand as Xc, hasMainAxisBand as Zc, hasMultipleGroups as go, inferDefaultDifferenceArrowEndpoints as Yc, inferDifferenceArrowEndpoints as Jc, isComboChartType as se, isCompanionLayer as vo, isGeomStyleRule as Qc, isLayerSpecOf as Ft, isObservationAttachmentKind as ed, isPointWithinEditMenuTrigger as qn, isSafeUrl as td, isZeroAnchoredAxis as fo, measureObservationsBoxes as bo, projectAnchorToPanel as yt, readBroadestObservationsScope as nd, readChartType as zt, readColorChoices as rd, readComboLineLayerId as ad, readCompanionRowsAtScopeKey as od, readConstantValue as id, readEditTargetKey as Bt, readGeomColor as ld, readHighlightDimStyle as sd, readMainAxis as cd, readMappableAesthetics as dd, readMappedVariable as ud, readObservationIndex as yo, readObservationsColor as hd, readObservationsColorRoute as jn, readReachableLevels as pd, readRowScopeKey as md, readRowsAtScopeKey as gd, readScopeXVariable as vd, readStyleCoord as de, readStyleRulesBeneath as fd, readVariableName as Ht, resolveArrowAnnotationStyle as Xn, resolveBarBandFraction as So, resolveComparisonBasis as bd, resolveDifferenceArrowAnnotationStyle as yd, resolveEditOutlineStyle as Sd, resolveLayerAxisValueFormat as Cd, resolveObservationPoint as Co, resolveObservationsTarget as Je, stepDifferenceArrowEndpoint as xd, toDashPreset as Re, toPaintColor as St, toPanelCursor as Gt, toStrokeDasharray as xo } from "@graphysdk/viz-engine";
3
3
  import { Fragment as wo, createContext as Me, memo as ko, useCallback as re, useContext as he, useEffect as z, useId as Le, useLayoutEffect as Ie, useMemo as M, useRef as ae, useState as X, useSyncExternalStore as wd } from "react";
4
4
  import { Fragment as $, jsx as r, jsxs as v } from "react/jsx-runtime";
@@ -4621,12 +4621,13 @@ var kn = [
4621
4621
  ], lr = (e, t, n) => {
4622
4622
  const a = Z(e.spec.layers, n);
4623
4623
  if (!Ft(a, "line", "area")) return null;
4624
- const o = e.coordSystem.type === "polar", i = Ge(a.geom, a.id), l = de(e.spec), s = e.spec.styles.overrides, c = Lr(s, i, l), d = Lr(fd(s, i, l), i, l), u = typeof c?.strokeWidth == "number" ? c.strokeWidth : null, h = A1(a, e.spec.layers), p = o ? [] : L1(a), g = p.length > 1;
4624
+ const o = e.coordSystem.type === "polar", i = Ge(a.geom, a.id), l = de(e.spec), s = e.spec.styles.overrides, c = Lr(s, i, l), d = Lr(fd(s, i, l), i, l), u = typeof c?.strokeWidth == "number" ? c.strokeWidth : null, h = A1(a, e.spec.layers), p = o ? [] : L1(a), g = p.length > 1, m = a.geom === "line" && !o, f = m ? E1(e, t, a) : 0;
4625
4625
  return {
4626
4626
  layerId: a.id,
4627
4627
  showPoints: h !== void 0 && P1(e, t, h.id),
4628
4628
  pointLayerId: h?.id ?? null,
4629
- showFill: a.geom === "line" && !o ? (c?.fillAlpha ?? 0) > 0 : null,
4629
+ showFill: m ? f > 0 : null,
4630
+ drawnFillAlpha: f,
4630
4631
  smooth: o ? null : a.params.curve === "smooth",
4631
4632
  widthMode: u === null ? "auto" : "custom",
4632
4633
  hasUnderlyingStrokeWidth: d?.strokeWidth !== void 0,
@@ -4646,7 +4647,10 @@ var kn = [
4646
4647
  const a = Z(e.layers, n.id);
4647
4648
  if (a?.geom === "line") return t.geom.line(a).get("strokeWidth");
4648
4649
  if (a?.geom === "area") return t.geom.area(a).get("strokeWidth");
4649
- }, E1 = (e) => /* @__PURE__ */ v(L, {
4650
+ }, E1 = (e, t, n) => {
4651
+ const a = Z(e.layers, n.id);
4652
+ return a?.geom === "line" ? t.geom.line(a).get("fillAlpha") ?? 0 : 0;
4653
+ }, M1 = (e) => /* @__PURE__ */ v(L, {
4650
4654
  viewBox: "0 0 16 16",
4651
4655
  ...e,
4652
4656
  children: [/* @__PURE__ */ r("path", {
@@ -4658,7 +4662,7 @@ var kn = [
4658
4662
  fillOpacity: "0.3",
4659
4663
  d: "M0 11 5.5 5.5 10.5 9 16 4V0H0z"
4660
4664
  })]
4661
- }), M1 = (e) => /* @__PURE__ */ v(L, {
4665
+ }), O1 = (e) => /* @__PURE__ */ v(L, {
4662
4666
  viewBox: "0 0 16 16",
4663
4667
  ...e,
4664
4668
  children: [/* @__PURE__ */ v("g", {
@@ -4836,7 +4840,7 @@ var kn = [
4836
4840
  ]
4837
4841
  })]
4838
4842
  })
4839
- }), O1 = (e) => /* @__PURE__ */ v(L, {
4843
+ }), R1 = (e) => /* @__PURE__ */ v(L, {
4840
4844
  viewBox: "0 0 16 16",
4841
4845
  ...e,
4842
4846
  children: [/* @__PURE__ */ r("path", {
@@ -4848,7 +4852,7 @@ var kn = [
4848
4852
  fillOpacity: "0.3",
4849
4853
  d: "M5.744 5.565 0 11.826V8l5.744-6.957 4.718 2.087L16 0v6.957l-5.538 4z"
4850
4854
  })]
4851
- }), R1 = (e) => /* @__PURE__ */ r(L, {
4855
+ }), N1 = (e) => /* @__PURE__ */ r(L, {
4852
4856
  viewBox: "0 0 16 16",
4853
4857
  ...e,
4854
4858
  children: /* @__PURE__ */ v("g", {
@@ -4890,7 +4894,7 @@ var kn = [
4890
4894
  })
4891
4895
  ]
4892
4896
  })
4893
- }), N1 = (e) => /* @__PURE__ */ r(L, {
4897
+ }), D1 = (e) => /* @__PURE__ */ r(L, {
4894
4898
  viewBox: "0 0 16 16",
4895
4899
  ...e,
4896
4900
  children: /* @__PURE__ */ v("g", {
@@ -4905,7 +4909,7 @@ var kn = [
4905
4909
  d: "M0 12.445h4.267V.52A.52.52 0 0 0 3.748 0H.518A.52.52 0 0 0 0 .519zM5.867 7.111h4.266V.52A.52.52 0 0 0 9.615 0h-3.23a.52.52 0 0 0-.518.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
4906
4910
  })]
4907
4911
  })
4908
- }), D1 = (e) => /* @__PURE__ */ r(L, {
4912
+ }), _1 = (e) => /* @__PURE__ */ r(L, {
4909
4913
  viewBox: "0 0 16 16",
4910
4914
  ...e,
4911
4915
  children: /* @__PURE__ */ v("g", {
@@ -4920,7 +4924,7 @@ var kn = [
4920
4924
  d: "M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
4921
4925
  })]
4922
4926
  })
4923
- }), _1 = (e) => /* @__PURE__ */ v(L, {
4927
+ }), F1 = (e) => /* @__PURE__ */ v(L, {
4924
4928
  viewBox: "0 0 16 16",
4925
4929
  ...e,
4926
4930
  children: [
@@ -4959,7 +4963,7 @@ var kn = [
4959
4963
  rx: ".533"
4960
4964
  })
4961
4965
  ]
4962
- }), F1 = (e) => /* @__PURE__ */ v(L, {
4966
+ }), z1 = (e) => /* @__PURE__ */ v(L, {
4963
4967
  viewBox: "0 0 16 16",
4964
4968
  ...e,
4965
4969
  children: [/* @__PURE__ */ r("path", {
@@ -4971,7 +4975,7 @@ var kn = [
4971
4975
  fillOpacity: "0.3",
4972
4976
  d: "M0 12.445h4.267V.52A.52.52 0 0 0 3.748 0H.518A.52.52 0 0 0 0 .519zM5.867 7.111h4.266V.52A.52.52 0 0 0 9.615 0h-3.23a.52.52 0 0 0-.518.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
4973
4977
  })]
4974
- }), z1 = (e) => /* @__PURE__ */ v(L, {
4978
+ }), B1 = (e) => /* @__PURE__ */ v(L, {
4975
4979
  viewBox: "0 0 16 16",
4976
4980
  ...e,
4977
4981
  children: [/* @__PURE__ */ r("path", {
@@ -4983,7 +4987,7 @@ var kn = [
4983
4987
  fillOpacity: "0.3",
4984
4988
  d: "M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
4985
4989
  })]
4986
- }), B1 = (e) => /* @__PURE__ */ v(L, {
4990
+ }), H1 = (e) => /* @__PURE__ */ v(L, {
4987
4991
  viewBox: "0 0 16 16",
4988
4992
  ...e,
4989
4993
  children: [/* @__PURE__ */ v("g", {
@@ -5057,7 +5061,7 @@ var kn = [
5057
5061
  })
5058
5062
  ]
5059
5063
  })]
5060
- }), H1 = (e) => /* @__PURE__ */ r(L, {
5064
+ }), G1 = (e) => /* @__PURE__ */ r(L, {
5061
5065
  viewBox: "0 0 16 16",
5062
5066
  ...e,
5063
5067
  children: /* @__PURE__ */ v("g", {
@@ -5092,7 +5096,7 @@ var kn = [
5092
5096
  })
5093
5097
  ]
5094
5098
  })
5095
- }), G1 = (e) => /* @__PURE__ */ r(L, {
5099
+ }), V1 = (e) => /* @__PURE__ */ r(L, {
5096
5100
  viewBox: "0 0 16 16",
5097
5101
  ...e,
5098
5102
  children: /* @__PURE__ */ v("g", {
@@ -5169,7 +5173,7 @@ var kn = [
5169
5173
  })
5170
5174
  ]
5171
5175
  })
5172
- }), V1 = (e) => /* @__PURE__ */ v(L, {
5176
+ }), $1 = (e) => /* @__PURE__ */ v(L, {
5173
5177
  viewBox: "0 0 16 16",
5174
5178
  ...e,
5175
5179
  children: [
@@ -5191,7 +5195,7 @@ var kn = [
5191
5195
  d: "M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"
5192
5196
  })
5193
5197
  ]
5194
- }), $1 = (e) => /* @__PURE__ */ r(L, {
5198
+ }), W1 = (e) => /* @__PURE__ */ r(L, {
5195
5199
  viewBox: "0 0 16 16",
5196
5200
  ...e,
5197
5201
  children: /* @__PURE__ */ v("g", {
@@ -5208,7 +5212,7 @@ var kn = [
5208
5212
  strokeWidth: "1.2"
5209
5213
  })]
5210
5214
  })
5211
- }), W1 = (e) => /* @__PURE__ */ v(L, {
5215
+ }), U1 = (e) => /* @__PURE__ */ v(L, {
5212
5216
  viewBox: "0 0 16 16",
5213
5217
  ...e,
5214
5218
  children: [/* @__PURE__ */ r("polygon", {
@@ -5223,7 +5227,7 @@ var kn = [
5223
5227
  fill: "currentColor",
5224
5228
  fillOpacity: "0.6"
5225
5229
  })]
5226
- }), U1 = (e) => /* @__PURE__ */ r(L, {
5230
+ }), K1 = (e) => /* @__PURE__ */ r(L, {
5227
5231
  viewBox: "0 0 16 16",
5228
5232
  ...e,
5229
5233
  children: /* @__PURE__ */ v("g", {
@@ -5278,7 +5282,7 @@ var kn = [
5278
5282
  })
5279
5283
  ]
5280
5284
  })
5281
- }), K1 = (e) => /* @__PURE__ */ r(L, {
5285
+ }), q1 = (e) => /* @__PURE__ */ r(L, {
5282
5286
  viewBox: "0 0 16 16",
5283
5287
  ...e,
5284
5288
  children: /* @__PURE__ */ r("path", {
@@ -5286,7 +5290,7 @@ var kn = [
5286
5290
  fillOpacity: "0.75",
5287
5291
  d: "M8.4 7.31 8.4 1.01A7 7 0 0 1 13.85 4.16ZM8.8 8 13.64 5.2A6.3 6.3 0 0 1 13.64 10.8ZM8.4 8.69 12.64 11.14A5.6 5.6 0 0 1 8.4 13.59ZM7.6 8.69 7.6 12.78A4.8 4.8 0 0 1 4.06 10.74ZM7.2 8 4.27 9.69A4.1 4.1 0 0 1 4.27 6.31ZM7.6 7.31 5.19 5.92A3.5 3.5 0 0 1 7.6 4.52Z"
5288
5292
  })
5289
- }), q1 = (e) => /* @__PURE__ */ r(L, {
5293
+ }), j1 = (e) => /* @__PURE__ */ r(L, {
5290
5294
  viewBox: "0 0 16 16",
5291
5295
  ...e,
5292
5296
  children: /* @__PURE__ */ v("g", {
@@ -5299,7 +5303,7 @@ var kn = [
5299
5303
  d: "M8.4 7.31 8.4 3.82A4.2 4.2 0 0 1 11.42 5.56ZM8.8 8 11.46 6.47A3.78 3.78 0 0 1 11.46 9.53ZM8.4 8.69 10.69 10.01A3.36 3.36 0 0 1 8.4 11.34ZM7.6 8.69 7.6 10.85A2.88 2.88 0 0 1 5.73 9.77ZM7.2 8 5.7 8.87A2.46 2.46 0 0 1 5.7 7.13ZM7.6 7.31 6.41 6.62A2.1 2.1 0 0 1 7.6 5.94Z"
5300
5304
  })]
5301
5305
  })
5302
- }), j1 = (e) => /* @__PURE__ */ r(L, {
5306
+ }), X1 = (e) => /* @__PURE__ */ r(L, {
5303
5307
  viewBox: "0 0 16 16",
5304
5308
  ...e,
5305
5309
  children: /* @__PURE__ */ v("g", {
@@ -5343,10 +5347,10 @@ var kn = [
5343
5347
  })
5344
5348
  ]
5345
5349
  })
5346
- }), X1 = 0.55, Z1 = 0.15, Qe = [
5350
+ }), Z1 = 0.55, Y1 = 0.15, Qe = [
5347
5351
  {
5348
5352
  name: "column",
5349
- icon: _1,
5353
+ icon: F1,
5350
5354
  summary: {
5351
5355
  coordType: "cartesian",
5352
5356
  geom: "bar",
@@ -5355,7 +5359,7 @@ var kn = [
5355
5359
  },
5356
5360
  {
5357
5361
  name: "columnStacked",
5358
- icon: z1,
5362
+ icon: B1,
5359
5363
  summary: {
5360
5364
  coordType: "cartesian",
5361
5365
  geom: "bar",
@@ -5364,7 +5368,7 @@ var kn = [
5364
5368
  },
5365
5369
  {
5366
5370
  name: "columnStackedFill",
5367
- icon: F1,
5371
+ icon: z1,
5368
5372
  summary: {
5369
5373
  coordType: "cartesian",
5370
5374
  geom: "bar",
@@ -5373,7 +5377,7 @@ var kn = [
5373
5377
  },
5374
5378
  {
5375
5379
  name: "bar",
5376
- icon: R1,
5380
+ icon: N1,
5377
5381
  summary: {
5378
5382
  coordType: "flip",
5379
5383
  geom: "bar",
@@ -5382,7 +5386,7 @@ var kn = [
5382
5386
  },
5383
5387
  {
5384
5388
  name: "barStacked",
5385
- icon: D1,
5389
+ icon: _1,
5386
5390
  summary: {
5387
5391
  coordType: "flip",
5388
5392
  geom: "bar",
@@ -5391,7 +5395,7 @@ var kn = [
5391
5395
  },
5392
5396
  {
5393
5397
  name: "barStackedFill",
5394
- icon: N1,
5398
+ icon: D1,
5395
5399
  summary: {
5396
5400
  coordType: "flip",
5397
5401
  geom: "bar",
@@ -5409,7 +5413,7 @@ var kn = [
5409
5413
  },
5410
5414
  {
5411
5415
  name: "areaStacked",
5412
- icon: O1,
5416
+ icon: R1,
5413
5417
  summary: {
5414
5418
  coordType: "cartesian",
5415
5419
  geom: "area",
@@ -5418,7 +5422,7 @@ var kn = [
5418
5422
  },
5419
5423
  {
5420
5424
  name: "combo",
5421
- icon: B1,
5425
+ icon: H1,
5422
5426
  summary: {
5423
5427
  coordType: "cartesian",
5424
5428
  comboType: "grouped-bars"
@@ -5426,7 +5430,7 @@ var kn = [
5426
5430
  },
5427
5431
  {
5428
5432
  name: "scatter",
5429
- icon: j1,
5433
+ icon: X1,
5430
5434
  summary: {
5431
5435
  coordType: "cartesian",
5432
5436
  geom: "point",
@@ -5435,7 +5439,7 @@ var kn = [
5435
5439
  },
5436
5440
  {
5437
5441
  name: "pie",
5438
- icon: V1,
5442
+ icon: $1,
5439
5443
  summary: {
5440
5444
  coordType: "polar",
5441
5445
  geom: "bar",
@@ -5446,29 +5450,29 @@ var kn = [
5446
5450
  },
5447
5451
  {
5448
5452
  name: "donut",
5449
- icon: H1,
5453
+ icon: G1,
5450
5454
  summary: {
5451
5455
  coordType: "polar",
5452
5456
  geom: "bar",
5453
5457
  position: "fill",
5454
5458
  theta: "y",
5455
- innerRadius: X1
5459
+ innerRadius: Z1
5456
5460
  }
5457
5461
  },
5458
5462
  {
5459
5463
  name: "radialBar",
5460
- icon: U1,
5464
+ icon: K1,
5461
5465
  summary: {
5462
5466
  coordType: "polar",
5463
5467
  geom: "bar",
5464
5468
  position: "stack",
5465
5469
  theta: "y",
5466
- innerRadius: Z1
5470
+ innerRadius: Y1
5467
5471
  }
5468
5472
  },
5469
5473
  {
5470
5474
  name: "rose",
5471
- icon: K1,
5475
+ icon: q1,
5472
5476
  summary: {
5473
5477
  coordType: "polar",
5474
5478
  geom: "bar",
@@ -5479,7 +5483,7 @@ var kn = [
5479
5483
  },
5480
5484
  {
5481
5485
  name: "roseStacked",
5482
- icon: q1,
5486
+ icon: j1,
5483
5487
  summary: {
5484
5488
  coordType: "polar",
5485
5489
  geom: "bar",
@@ -5490,7 +5494,7 @@ var kn = [
5490
5494
  },
5491
5495
  {
5492
5496
  name: "radar",
5493
- icon: $1,
5497
+ icon: W1,
5494
5498
  summary: {
5495
5499
  coordType: "polar",
5496
5500
  geom: "line",
@@ -5501,7 +5505,7 @@ var kn = [
5501
5505
  },
5502
5506
  {
5503
5507
  name: "radarFilled",
5504
- icon: W1,
5508
+ icon: U1,
5505
5509
  summary: {
5506
5510
  coordType: "polar",
5507
5511
  geom: "area",
@@ -5512,39 +5516,39 @@ var kn = [
5512
5516
  },
5513
5517
  {
5514
5518
  name: "heatmap",
5515
- icon: G1,
5519
+ icon: V1,
5516
5520
  summary: {
5517
5521
  coordType: "cartesian",
5518
5522
  geom: "tile",
5519
5523
  position: "identity"
5520
5524
  }
5521
5525
  }
5522
- ], Y1 = 0.05, gi = (e, t) => se(e) ? Rc(t) : e.geom === "tile" ? Nc(t) : !0, wt = (e) => e === null ? null : Qe.find((t) => J1(t.summary, e)) ?? null, vi = (e, t) => t === null || se(e) ? e : e.position === "dodge" && fi(t) ? {
5526
+ ], J1 = 0.05, gi = (e, t) => se(e) ? Rc(t) : e.geom === "tile" ? Nc(t) : !0, wt = (e) => e === null ? null : Qe.find((t) => Q1(t.summary, e)) ?? null, vi = (e, t) => t === null || se(e) ? e : e.position === "dodge" && fi(t) ? {
5523
5527
  ...e,
5524
5528
  position: "identity"
5525
5529
  } : e.coordType !== "polar" || !kt(e.innerRadius) || t.coordType !== "polar" || !kt(t.innerRadius) ? e : {
5526
5530
  ...e,
5527
5531
  innerRadius: t.innerRadius
5528
- }, fi = (e) => !se(e) && e.geom === "bar" && e.position === "identity", J1 = (e, t) => {
5532
+ }, fi = (e) => !se(e) && e.geom === "bar" && e.position === "identity", Q1 = (e, t) => {
5529
5533
  if (se(e) || se(t)) return se(e) && se(t);
5530
5534
  const n = e.position === t.position || e.position === "dodge" && fi(t);
5531
5535
  return e.coordType !== t.coordType || e.geom !== t.geom || !n ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && kt(e.innerRadius) === kt(t.innerRadius);
5532
- }, kt = (e) => e >= Y1;
5533
- var Q1 = "_1hrfeju1", em = [
5536
+ }, kt = (e) => e >= J1;
5537
+ var em = "_1hrfeju1", tm = [
5534
5538
  {
5535
5539
  summary: {
5536
5540
  coordType: "cartesian",
5537
5541
  geom: "area",
5538
5542
  position: "fill"
5539
5543
  },
5540
- icon: E1
5544
+ icon: M1
5541
5545
  },
5542
5546
  {
5543
5547
  summary: {
5544
5548
  coordType: "cartesian",
5545
5549
  comboType: "stacked-bars"
5546
5550
  },
5547
- icon: M1
5551
+ icon: O1
5548
5552
  },
5549
5553
  {
5550
5554
  summary: {
@@ -5553,7 +5557,7 @@ var Q1 = "_1hrfeju1", em = [
5553
5557
  },
5554
5558
  icon: mi
5555
5559
  }
5556
- ], tm = [
5560
+ ], nm = [
5557
5561
  ["column", "column"],
5558
5562
  ["bar", "bar"],
5559
5563
  ["line", "line"],
@@ -5563,27 +5567,27 @@ var Q1 = "_1hrfeju1", em = [
5563
5567
  ["pie", "pie"],
5564
5568
  ["donut", "donut"],
5565
5569
  ["heatmap", "heatmap"]
5566
- ], nm = 4, rm = {
5570
+ ], rm = 4, am = {
5567
5571
  dodge: "grouped",
5568
5572
  identity: "grouped",
5569
5573
  stack: "stacked",
5570
5574
  fill: "filled"
5571
- }, am = {
5575
+ }, om = {
5572
5576
  "grouped-bars": "grouped",
5573
5577
  "stacked-bars": "stacked",
5574
5578
  lines: "lines"
5575
- }, om = () => {
5579
+ }, im = () => {
5576
5580
  const e = R((w) => w.spec), t = R(({ layers: w }) => w.some((A) => go(A.data, A.mapping))), n = le(), a = E(), { Button: o, RadioGrid: i } = F(), [l, s] = X(!1), c = ae(null);
5577
5581
  z(() => {
5578
5582
  if (!l) return;
5579
5583
  const w = ({ target: A, detail: B }) => {
5580
- B > 0 && lm(A) && c.current?.contains(A) && s(!1);
5584
+ B > 0 && sm(A) && c.current?.contains(A) && s(!1);
5581
5585
  };
5582
5586
  return document.addEventListener("click", w), () => document.removeEventListener("click", w);
5583
5587
  }, [l]);
5584
5588
  const d = zt(e);
5585
5589
  if (d === null) return null;
5586
- const u = sm(d), h = Tt(d), p = wt(d), g = u ?? p, m = a(g === null ? "editor.overlayMenu.customChartType" : `editor.graphTypes.${g.name}`), f = (u === void 0 ? p : Kr(u, h))?.icon, b = u !== void 0 && u.arrangements.length > 1, C = b && (t || u.name === "combo"), P = () => s(!l), k = ({ summary: w }) => {
5590
+ const u = cm(d), h = Tt(d), p = wt(d), g = u ?? p, m = a(g === null ? "editor.overlayMenu.customChartType" : `editor.graphTypes.${g.name}`), f = (u === void 0 ? p : Kr(u, h))?.icon, b = u !== void 0 && u.arrangements.length > 1, C = b && (t || u.name === "combo"), P = () => s(!l), k = ({ summary: w }) => {
5587
5591
  n.dispatch(new $n(vi(w, d)), { transient: !0 });
5588
5592
  }, x = (w) => {
5589
5593
  const A = Ur.find((B) => B.name === w);
@@ -5619,26 +5623,26 @@ var Q1 = "_1hrfeju1", em = [
5619
5623
  value: u?.name ?? "",
5620
5624
  onChange: x,
5621
5625
  onCommit: n.commit,
5622
- columns: nm,
5626
+ columns: rm,
5623
5627
  itemLayout: "swatch",
5624
5628
  ariaLabel: a("editor.overlayMenu.chartType")
5625
5629
  })
5626
5630
  })
5627
5631
  }),
5628
- C && /* @__PURE__ */ r(im, {
5632
+ C && /* @__PURE__ */ r(lm, {
5629
5633
  type: u,
5630
5634
  arrangement: h,
5631
5635
  onPick: k,
5632
5636
  onCommit: n.commit
5633
5637
  })
5634
5638
  ] });
5635
- }, bi = (e, t) => se(e) || se(t) ? se(e) && se(t) : e.coordType === "polar" ? wt(e) === wt(t) : e.coordType === t.coordType && e.geom === t.geom, yi = tm.flatMap(([e, t]) => {
5639
+ }, bi = (e, t) => se(e) || se(t) ? se(e) && se(t) : e.coordType === "polar" ? wt(e) === wt(t) : e.coordType === t.coordType && e.geom === t.geom, yi = nm.flatMap(([e, t]) => {
5636
5640
  const n = Qe.find((a) => a.name === t);
5637
5641
  return n === void 0 ? [] : [{
5638
5642
  name: e,
5639
- arrangements: [n, ...[...Qe, ...em].filter((a) => a !== n && bi(n.summary, a.summary))]
5643
+ arrangements: [n, ...[...Qe, ...tm].filter((a) => a !== n && bi(n.summary, a.summary))]
5640
5644
  }];
5641
- }), Ur = yi.filter(({ name: e }) => e !== "combo"), im = ({ type: e, arrangement: t, onPick: n, onCommit: a }) => {
5645
+ }), Ur = yi.filter(({ name: e }) => e !== "combo"), lm = ({ type: e, arrangement: t, onPick: n, onCommit: a }) => {
5642
5646
  const o = E(), { ToggleGroup: i } = F(), l = e.arrangements.map(({ summary: c, icon: d }) => {
5643
5647
  const u = Tt(c);
5644
5648
  return {
@@ -5653,7 +5657,7 @@ var Q1 = "_1hrfeju1", em = [
5653
5657
  return /* @__PURE__ */ r(T, {
5654
5658
  label: o("editor.overlayMenu.arrange"),
5655
5659
  children: /* @__PURE__ */ r("div", {
5656
- className: Q1,
5660
+ className: em,
5657
5661
  children: /* @__PURE__ */ r(i, {
5658
5662
  options: l,
5659
5663
  value: t,
@@ -5662,7 +5666,7 @@ var Q1 = "_1hrfeju1", em = [
5662
5666
  })
5663
5667
  })
5664
5668
  });
5665
- }, lm = (e) => e instanceof Element && e.closest('[role="radio"]:not([aria-disabled="true"])') !== null, Tt = (e) => se(e) ? am[e.comboType] : rm[e.position], Kr = (e, t) => e.arrangements.find(({ summary: n }) => Tt(n) === t) ?? e.arrangements[0], sm = (e) => yi.find(({ arrangements: [t] }) => bi(t.summary, e)), Si = ({ lineStyle: e, ...t }) => /* @__PURE__ */ v(L, {
5669
+ }, sm = (e) => e instanceof Element && e.closest('[role="radio"]:not([aria-disabled="true"])') !== null, Tt = (e) => se(e) ? om[e.comboType] : am[e.position], Kr = (e, t) => e.arrangements.find(({ summary: n }) => Tt(n) === t) ?? e.arrangements[0], cm = (e) => yi.find(({ arrangements: [t] }) => bi(t.summary, e)), Si = ({ lineStyle: e, ...t }) => /* @__PURE__ */ v(L, {
5666
5670
  viewBox: "0 0 18 18",
5667
5671
  ...t,
5668
5672
  children: [
@@ -5705,17 +5709,17 @@ var Q1 = "_1hrfeju1", em = [
5705
5709
  stroke: "currentColor",
5706
5710
  strokeWidth: e
5707
5711
  })
5708
- }), cm = {
5712
+ }), dm = {
5709
5713
  small: 2,
5710
5714
  medium: 3.8,
5711
5715
  large: 5.6
5712
- }, dm = ({ pointSize: e, ...t }) => /* @__PURE__ */ r(L, {
5716
+ }, um = ({ pointSize: e, ...t }) => /* @__PURE__ */ r(L, {
5713
5717
  viewBox: "0 0 18 18",
5714
5718
  ...t,
5715
5719
  children: /* @__PURE__ */ r("circle", {
5716
5720
  cx: 9,
5717
5721
  cy: 9,
5718
- r: cm[e],
5722
+ r: dm[e],
5719
5723
  fill: "currentColor"
5720
5724
  })
5721
5725
  }), qr = [
@@ -5794,13 +5798,13 @@ var Q1 = "_1hrfeju1", em = [
5794
5798
  options: rn.map(({ name: i }) => ({
5795
5799
  value: i,
5796
5800
  label: n(`editor.graphPanel.pointSize.sizes.${i}`),
5797
- icon: /* @__PURE__ */ r(dm, { pointSize: i })
5801
+ icon: /* @__PURE__ */ r(um, { pointSize: i })
5798
5802
  })),
5799
5803
  onChange: o
5800
5804
  })
5801
5805
  });
5802
- }, Ti = Me({}), um = Ti.Provider, hm = () => he(Ti), pm = "_1m2a0t20", Tn = "theme", mm = 3, dt = 14, jr = 9, gm = () => {
5803
- const e = R((u) => u.scales.color), t = hm(), n = le(), a = E(), { RadioGrid: o } = F();
5806
+ }, Ti = Me({}), hm = Ti.Provider, pm = () => he(Ti), mm = "_1m2a0t20", Tn = "theme", gm = 3, dt = 14, jr = 9, vm = () => {
5807
+ const e = R((u) => u.scales.color), t = pm(), n = le(), a = E(), { RadioGrid: o } = F();
5804
5808
  if (Object.keys(t).length === 0 || e?.kind !== "visual" || e.spec.scaleType !== "discrete" || e.defaultPalette === void 0) return null;
5805
5809
  const { defaultPalette: i, spec: l } = e, s = Object.entries(t), c = [{
5806
5810
  value: Tn,
@@ -5824,26 +5828,26 @@ var Q1 = "_1hrfeju1", em = [
5824
5828
  layout: "stack",
5825
5829
  children: /* @__PURE__ */ r(o, {
5826
5830
  options: c,
5827
- value: vm(l.range, s),
5831
+ value: fm(l.range, s),
5828
5832
  onChange: d,
5829
5833
  onCommit: n.commit,
5830
5834
  columns: 4,
5831
5835
  itemLayout: "track"
5832
5836
  })
5833
5837
  });
5834
- }, An = (e) => `preset:${e}`, vm = (e, t) => {
5838
+ }, An = (e) => `preset:${e}`, fm = (e, t) => {
5835
5839
  if (e === null) return Tn;
5836
5840
  const n = t.find(([, a]) => Td(a, e));
5837
5841
  return n === void 0 ? "" : An(n[0]);
5838
5842
  }, Xr = ({ colors: e }) => {
5839
- const t = e.slice(0, mm), n = dt / 2, a = dt + (t.length - 1) * jr;
5843
+ const t = e.slice(0, gm), n = dt / 2, a = dt + (t.length - 1) * jr;
5840
5844
  return /* @__PURE__ */ r("svg", {
5841
5845
  width: a,
5842
5846
  height: dt,
5843
5847
  viewBox: `0 0 ${a} ${dt}`,
5844
5848
  "aria-hidden": "true",
5845
5849
  children: t.map((o, i) => /* @__PURE__ */ r("circle", {
5846
- className: pm,
5850
+ className: mm,
5847
5851
  cx: n + i * jr,
5848
5852
  cy: n,
5849
5853
  r: n - 0.5,
@@ -5851,7 +5855,7 @@ var Q1 = "_1hrfeju1", em = [
5851
5855
  }, i)).reverse()
5852
5856
  });
5853
5857
  }, Zr = ["smooth", "linear"], Ai = () => {
5854
- const e = R((S) => S), t = W(), n = _n(), a = le(), o = E(), { Switch: i, ToggleGroup: l } = F(), s = Pi(e.layers, e.coordSystem.type, n), c = (S) => s.filter(({ support: y }) => S(y)).map(({ layer: y }) => y), d = fm(e, t), u = d.filter((S) => S.smooth !== null), h = d.filter((S) => S.missingValues !== null && S.missingValueOptions.length > 1), p = kn.filter((S) => h.some((y) => y.missingValueOptions.includes(S))), g = Cm(u), m = xm(h), f = (S) => {
5858
+ const e = R((S) => S), t = W(), n = _n(), a = le(), o = E(), { Switch: i, ToggleGroup: l } = F(), s = Pi(e.layers, e.coordSystem.type, n), c = (S) => s.filter(({ support: y }) => S(y)).map(({ layer: y }) => y), d = bm(e, t), u = d.filter((S) => S.smooth !== null), h = d.filter((S) => S.missingValues !== null && S.missingValueOptions.length > 1), p = kn.filter((S) => h.some((y) => y.missingValueOptions.includes(S))), g = xm(u), m = wm(h), f = (S) => {
5855
5859
  a.dispatch(new qe({ commands: d.map((y) => new Un({
5856
5860
  layerId: y.layerId,
5857
5861
  showPoints: S
@@ -5870,7 +5874,7 @@ var Q1 = "_1hrfeju1", em = [
5870
5874
  missingValues: y
5871
5875
  }));
5872
5876
  N.length !== 0 && a.dispatch(new qe({ commands: N }));
5873
- }, P = d.filter((S) => S.showFill !== null), k = d.filter((S) => S.showPoints), x = bm(e, t, d), I = P.some((S) => ym(e, S)), w = (S) => {
5877
+ }, P = d.filter((S) => S.showFill !== null), k = d.filter((S) => S.showPoints), x = ym(e, t, d), I = P.some((S) => Sm(e, S)), w = (S) => {
5874
5878
  S.length > 0 && a.dispatch(new qe({ commands: S }));
5875
5879
  }, A = (S) => {
5876
5880
  w(d.map((y) => new Ce({
@@ -5885,7 +5889,8 @@ var Q1 = "_1hrfeju1", em = [
5885
5889
  }, te = (S) => {
5886
5890
  w(P.map((y) => new Ce({
5887
5891
  layerId: y.layerId,
5888
- showFill: S
5892
+ showFill: S,
5893
+ drawnFillAlpha: y.drawnFillAlpha
5889
5894
  })));
5890
5895
  }, D = (S) => {
5891
5896
  w(k.flatMap(({ pointLayerId: y }) => y === null ? [] : [new Wn({
@@ -5894,7 +5899,7 @@ var Q1 = "_1hrfeju1", em = [
5894
5899
  })]));
5895
5900
  };
5896
5901
  return /* @__PURE__ */ v($, { children: [
5897
- /* @__PURE__ */ r(om, {}),
5902
+ /* @__PURE__ */ r(im, {}),
5898
5903
  /* @__PURE__ */ r(ut, {
5899
5904
  label: o("editor.graphPanel.graphOptions.dataLabels"),
5900
5905
  layers: c((S) => S.supportsDataLabels),
@@ -5977,17 +5982,17 @@ var Q1 = "_1hrfeju1", em = [
5977
5982
  })
5978
5983
  }),
5979
5984
  k.length > 0 && /* @__PURE__ */ r(ki, {
5980
- sizePx: an(Sm(e, t, k)),
5985
+ sizePx: an(Cm(e, t, k)),
5981
5986
  onChange: D
5982
5987
  }),
5983
- /* @__PURE__ */ r(gm, {})
5988
+ /* @__PURE__ */ r(vm, {})
5984
5989
  ] });
5985
5990
  };
5986
5991
  Ai.hasRows = (e, { scene: t, dataLabelPlacement: n }) => zt(t.spec) !== null || Pi(t.layers, t.coordSystem.type, n).some(({ support: a }) => a.supportsDataLabels) || t.spec.layers.some((a) => a.interactive && Ft(a, "line", "area"));
5987
5992
  var Pi = (e, t, n) => e.filter((a) => a.interactive).map((a) => ({
5988
5993
  layer: a,
5989
5994
  support: hi(a, t, n)
5990
- })), fm = (e, t) => {
5995
+ })), bm = (e, t) => {
5991
5996
  const n = [];
5992
5997
  for (const a of e.spec.layers) {
5993
5998
  if (!a.interactive) continue;
@@ -5995,7 +6000,7 @@ var Pi = (e, t, n) => e.filter((a) => a.interactive).map((a) => ({
5995
6000
  o !== null && n.push(o);
5996
6001
  }
5997
6002
  return n;
5998
- }, bm = (e, t, n) => n.flatMap((a) => {
6003
+ }, ym = (e, t, n) => n.flatMap((a) => {
5999
6004
  const o = Z(e.layers, a.layerId);
6000
6005
  if (o?.geom === "line") {
6001
6006
  const l = t.geom.line(o);
@@ -6010,14 +6015,14 @@ var Pi = (e, t, n) => e.filter((a) => a.interactive).map((a) => ({
6010
6015
  strokeWidth: i.get("strokeWidth", l),
6011
6016
  lineStyle: Re(i.get("dashArray", l))
6012
6017
  }));
6013
- }), ym = (e, t) => {
6018
+ }), Sm = (e, t) => {
6014
6019
  if (t.showFill === !0) return !0;
6015
6020
  const n = Ge("line", t.layerId), a = de(e.spec);
6016
6021
  return e.spec.styles.overrides.some((o) => !Qc(o) || o.when?.where === void 0 ? !1 : Bc({
6017
6022
  ...n,
6018
6023
  when: o.when
6019
6024
  }, a)(o) && "fillAlpha" in o.declarations && (o.declarations.fillAlpha ?? 0) > 0);
6020
- }, Sm = (e, t, n) => n.flatMap((a) => {
6025
+ }, Cm = (e, t, n) => n.flatMap((a) => {
6021
6026
  const o = a.pointLayerId === null ? void 0 : Z(e.layers, a.pointLayerId);
6022
6027
  if (o?.geom !== "point") return [];
6023
6028
  const i = t.geom.point(o);
@@ -6025,7 +6030,7 @@ var Pi = (e, t, n) => e.filter((a) => a.interactive).map((a) => ({
6025
6030
  }), an = (e) => {
6026
6031
  const [t] = e;
6027
6032
  return t !== void 0 && e.every((n) => n === t) ? t : null;
6028
- }, Cm = (e) => e.every((t) => t.smooth === !0) ? "smooth" : e.every((t) => t.smooth !== !0) ? "linear" : "", xm = (e) => {
6033
+ }, xm = (e) => e.every((t) => t.smooth === !0) ? "smooth" : e.every((t) => t.smooth !== !0) ? "linear" : "", wm = (e) => {
6029
6034
  const [t, ...n] = e, a = t?.missingValues ?? null;
6030
6035
  return a === null ? "" : n.every((o) => o.missingValues === a) ? a : "";
6031
6036
  }, ut = ({ label: e, layers: t, isOn: n, buildCommand: a }) => {
@@ -6041,7 +6046,7 @@ var Pi = (e, t, n) => e.filter((a) => a.interactive).map((a) => ({
6041
6046
  onChange: l
6042
6047
  })
6043
6048
  });
6044
- }, wm = (e, t) => {
6049
+ }, km = (e, t) => {
6045
6050
  const n = Z(t.layers, e);
6046
6051
  if (n === void 0) return null;
6047
6052
  const a = Z(t.spec.layers, e), o = a === void 0 ? null : _t(a, t.spec.layers), i = o !== null && o.id !== n.id ? o : n;
@@ -6056,7 +6061,7 @@ var Pi = (e, t, n) => e.filter((a) => a.interactive).map((a) => ({
6056
6061
  if (a !== void 0) return a;
6057
6062
  }
6058
6063
  return null;
6059
- }, km = ({ geom: e, coord: t, position: n }, a) => Xe(a, (o) => {
6064
+ }, Tm = ({ geom: e, coord: t, position: n }, a) => Xe(a, (o) => {
6060
6065
  const i = Yr(o.layers, e)?.[t]?.[n];
6061
6066
  return i !== void 0 ? i : Yr(o.geoms, e);
6062
6067
  }), Yr = (e, t) => e !== void 0 && Object.hasOwn(e, t) ? e[t] : void 0, At = [
@@ -6074,7 +6079,7 @@ var Li = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Ii =
6074
6079
  lineStyle: Re(a.dashArray),
6075
6080
  strokeWidth: a.strokeWidth
6076
6081
  };
6077
- }, Tm = (e, t) => {
6082
+ }, Am = (e, t) => {
6078
6083
  if (e === "both") return t.axes.every((a) => !a.showGrid);
6079
6084
  const n = t.axes.find((a) => a.scaleAestheticKey === e);
6080
6085
  return n === void 0 || !n.showGrid;
@@ -6100,7 +6105,7 @@ var Li = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Ii =
6100
6105
  ], Oi = ({ target: e }) => {
6101
6106
  const t = R((b) => b), n = W(), a = Ii(t, n), o = E(), i = le(), { ToggleGroup: l } = F();
6102
6107
  if (a === null || !a.stylable) return null;
6103
- const s = e.axis === "both" ? "y" : e.axis, c = n.gridLine[s]().resolve(), d = Re(c.dashArray), u = Tm(e.axis, a), h = At.map((b) => ({
6108
+ const s = e.axis === "both" ? "y" : e.axis, c = n.gridLine[s]().resolve(), d = Re(c.dashArray), u = Am(e.axis, a), h = At.map((b) => ({
6104
6109
  value: b,
6105
6110
  label: o(`editor.graphPanel.gridSection.lineStyles.${b}`),
6106
6111
  icon: /* @__PURE__ */ r(Si, { lineStyle: b })
@@ -6187,11 +6192,11 @@ var Jr = [
6187
6192
  gridRow: 2,
6188
6193
  gridColumn: 1
6189
6194
  }
6190
- ], Am = {
6195
+ ], Pm = {
6191
6196
  start: "Start",
6192
6197
  center: "Center",
6193
6198
  end: "End"
6194
- }, Pm = () => {
6199
+ }, Lm = () => {
6195
6200
  const e = R((c) => c.guides.legends.drawn[0]), t = le(), n = E(), { RadioGrid: a } = F(), o = e === void 0, i = o ? "" : ln(e), l = Jr.map((c) => {
6196
6201
  const d = ln(c);
6197
6202
  return {
@@ -6200,7 +6205,7 @@ var Jr = [
6200
6205
  icon: /* @__PURE__ */ r(rs, {
6201
6206
  title: "",
6202
6207
  size: "xs",
6203
- style: { transform: `rotate(${Lm(c)}deg)` }
6208
+ style: { transform: `rotate(${Im(c)}deg)` }
6204
6209
  }),
6205
6210
  gridRow: c.gridRow,
6206
6211
  gridColumn: c.gridColumn
@@ -6230,18 +6235,18 @@ var Jr = [
6230
6235
  })
6231
6236
  })
6232
6237
  });
6233
- }, ln = ({ position: e, align: t }) => e === "left" || e === "right" ? e : `${e}${Am[t]}`, Lm = ({ gridRow: e, gridColumn: t }) => Math.atan2(t - 2, 2 - e) * 180 / Math.PI, Pn = ({ target: e }) => {
6238
+ }, ln = ({ position: e, align: t }) => e === "left" || e === "right" ? e : `${e}${Pm[t]}`, Im = ({ gridRow: e, gridColumn: t }) => Math.atan2(t - 2, 2 - e) * 180 / Math.PI, Pn = ({ target: e }) => {
6234
6239
  const t = Bn();
6235
- return t === null ? null : /* @__PURE__ */ r(Im, {
6240
+ return t === null ? null : /* @__PURE__ */ r(Em, {
6236
6241
  graph: t,
6237
6242
  target: e
6238
6243
  });
6239
6244
  };
6240
6245
  Pn.hasRows = (e, { scene: t }) => e.scope === "series" && Ri(t, e.layerId) !== null;
6241
- var Im = ({ graph: e, target: t }) => {
6246
+ var Em = ({ graph: e, target: t }) => {
6242
6247
  const n = K(e), a = W(), o = E(), { Switch: i } = F(), l = n === null ? null : Ri(n, t.layerId), s = n === null || l === null ? null : lr(n, a, l.id);
6243
6248
  if (n === null || l === null || s === null) return null;
6244
- const c = Nm(n, t), d = c === void 0 ? {} : { where: c }, u = c === void 0 || l.geom !== "line" ? void 0 : Rm(n, s.layerId, c), h = u === void 0 ? s.showFill : u > 0, p = c === void 0 ? null : Em(n, l.geom, s.layerId, c), g = c === void 0 ? s.strokeWidth : p ?? Mm(n, a, t) ?? s.strokeWidth, m = s.pointLayerId === null ? null : Om(n, a, s.pointLayerId, c), f = m !== null && m > 0, b = (w) => {
6249
+ const c = Dm(n, t), d = c === void 0 ? {} : { where: c }, u = c === void 0 || l.geom !== "line" ? void 0 : Nm(n, s.layerId, c), h = u === void 0 ? s.showFill : u > 0, p = c === void 0 ? null : Mm(n, l.geom, s.layerId, c), g = c === void 0 ? s.strokeWidth : p ?? Om(n, a, t) ?? s.strokeWidth, m = s.pointLayerId === null ? null : Rm(n, a, s.pointLayerId, c), f = m !== null && m > 0, b = (w) => {
6245
6250
  e.commands.dispatch(new Un({
6246
6251
  layerId: s.layerId,
6247
6252
  showPoints: w,
@@ -6251,6 +6256,7 @@ var Im = ({ graph: e, target: t }) => {
6251
6256
  e.commands.dispatch(new Ce({
6252
6257
  layerId: s.layerId,
6253
6258
  showFill: w,
6259
+ drawnFillAlpha: s.drawnFillAlpha,
6254
6260
  ...d
6255
6261
  }));
6256
6262
  }, P = (w) => {
@@ -6279,7 +6285,7 @@ var Im = ({ graph: e, target: t }) => {
6279
6285
  onChange: P
6280
6286
  }),
6281
6287
  I && /* @__PURE__ */ r(wi, {
6282
- lineStyle: Dm(n, a, t),
6288
+ lineStyle: _m(n, a, t),
6283
6289
  onChange: x
6284
6290
  }),
6285
6291
  s.showFill !== null && /* @__PURE__ */ r(T, {
@@ -6301,7 +6307,7 @@ var Im = ({ graph: e, target: t }) => {
6301
6307
  onChange: k
6302
6308
  })
6303
6309
  ] });
6304
- }, Em = (e, t, n, a) => {
6310
+ }, Mm = (e, t, n, a) => {
6305
6311
  const o = (t === "line" ? bt(e.spec.styles.overrides, {
6306
6312
  ...Ge("line", n),
6307
6313
  when: { where: a }
@@ -6310,7 +6316,7 @@ var Im = ({ graph: e, target: t }) => {
6310
6316
  when: { where: a }
6311
6317
  }, de(e.spec)))?.strokeWidth;
6312
6318
  return typeof o == "number" ? o : null;
6313
- }, Mm = (e, t, n) => {
6319
+ }, Om = (e, t, n) => {
6314
6320
  const a = Z(e.layers, n.layerId), o = a === void 0 ? void 0 : _t(a, e.layers);
6315
6321
  if (o?.geom !== "line" && o?.geom !== "area") return null;
6316
6322
  const [i] = Je({
@@ -6319,7 +6325,7 @@ var Im = ({ graph: e, target: t }) => {
6319
6325
  parsingLocale: e.config.parsingLocale
6320
6326
  }), l = i === void 0 ? void 0 : o.data.getAt(i) ?? void 0, s = o.geom === "line" ? t.geom.line(o).get("strokeWidth", l) : t.geom.area(o).get("strokeWidth", l);
6321
6327
  return typeof s == "number" ? s : null;
6322
- }, Om = (e, t, n, a) => {
6328
+ }, Rm = (e, t, n, a) => {
6323
6329
  const o = a === void 0 ? void 0 : bt(e.spec.styles.overrides, {
6324
6330
  ...Ge("point", n),
6325
6331
  when: { where: a }
@@ -6327,13 +6333,13 @@ var Im = ({ graph: e, target: t }) => {
6327
6333
  if (typeof o == "number") return o;
6328
6334
  const i = Z(e.layers, n);
6329
6335
  return i?.geom === "point" ? t.geom.point(i).get("size") : $a;
6330
- }, Rm = (e, t, n) => {
6336
+ }, Nm = (e, t, n) => {
6331
6337
  const a = bt(e.spec.styles.overrides, {
6332
6338
  ...Ge("line", t),
6333
6339
  when: { where: n }
6334
6340
  }, de(e.spec))?.fillAlpha;
6335
6341
  return typeof a == "number" ? a : void 0;
6336
- }, Nm = (e, t) => jn(e.spec, t)?.find((n) => n.geomKind === "line" || n.geomKind === "area")?.where, Dm = (e, t, n) => {
6342
+ }, Dm = (e, t) => jn(e.spec, t)?.find((n) => n.geomKind === "line" || n.geomKind === "area")?.where, _m = (e, t, n) => {
6337
6343
  const a = Z(e.layers, n.layerId), o = a === void 0 ? void 0 : _t(a, e.layers);
6338
6344
  if (o?.geom !== "line" && o?.geom !== "area") return "solid";
6339
6345
  const [i] = Je({
@@ -6356,17 +6362,17 @@ var Im = ({ graph: e, target: t }) => {
6356
6362
  rule: null,
6357
6363
  tile: null
6358
6364
  },
6359
- legend: Pm,
6365
+ legend: Lm,
6360
6366
  axis: ci,
6361
6367
  grid: Oi,
6362
6368
  graph: Ai
6363
- }, sr = Me([Ni]), _m = ({ editMenus: e, children: t }) => {
6369
+ }, sr = Me([Ni]), Fm = ({ editMenus: e, children: t }) => {
6364
6370
  const n = M(() => [e ?? {}, Ni], [e]);
6365
6371
  return /* @__PURE__ */ r(sr.Provider, {
6366
6372
  value: n,
6367
6373
  children: t
6368
6374
  });
6369
- }, Fm = (e) => {
6375
+ }, zm = (e) => {
6370
6376
  const t = he(sr), n = R((o) => o), a = _n();
6371
6377
  return M(() => e === null ? null : Di(e, t, {
6372
6378
  scene: n,
@@ -6377,7 +6383,7 @@ var Im = ({ graph: e, target: t }) => {
6377
6383
  n,
6378
6384
  a
6379
6385
  ]);
6380
- }, zm = () => {
6386
+ }, Bm = () => {
6381
6387
  const e = he(sr), { store: t } = H(), n = _n();
6382
6388
  return re((a) => Di(a, e, {
6383
6389
  scene: t.getState().scene,
@@ -6390,7 +6396,7 @@ var Im = ({ graph: e, target: t }) => {
6390
6396
  }, Di = (e, t, n) => {
6391
6397
  switch (e.kind) {
6392
6398
  case "observations": {
6393
- const a = wm(e.layerId, n.scene), o = a === null ? null : km(a, t);
6399
+ const a = km(e.layerId, n.scene), o = a === null ? null : Tm(a, t);
6394
6400
  return o === null || o.hasRows?.(e, n) === !1 ? null : /* @__PURE__ */ r(o, { target: e });
6395
6401
  }
6396
6402
  case "legend": {
@@ -6462,7 +6468,7 @@ var Im = ({ graph: e, target: t }) => {
6462
6468
  return e;
6463
6469
  }
6464
6470
  }, Wt = () => {
6465
- const e = zm(), { store: t } = H();
6471
+ const e = Bm(), { store: t } = H();
6466
6472
  return re((n) => e(n) || _i(n, t.getState().scene) !== null, [e, t]);
6467
6473
  };
6468
6474
  var Qr = (e, t) => {
@@ -6472,7 +6478,7 @@ var Qr = (e, t) => {
6472
6478
  return n !== void 0 && (t.parts[0]?.rows.includes(n) ?? !1);
6473
6479
  }
6474
6480
  return e.kind === "guide" && t.kind === "guide" ? Kn(e.target, t.target) : e.kind === "graph" && t.kind === "graph";
6475
- }, Bm = (e, t) => {
6481
+ }, Hm = (e, t) => {
6476
6482
  const n = Math.max(e.width, 8), a = Math.max(e.height, 8), o = Math.max(0, e.x + e.width / 2 - n / 2), i = Math.max(0, e.y + e.height / 2 - a / 2), l = Math.min(t.width, e.x + e.width / 2 + n / 2), s = Math.min(t.height, e.y + e.height / 2 + a / 2);
6477
6483
  return {
6478
6484
  x: o,
@@ -6480,16 +6486,16 @@ var Qr = (e, t) => {
6480
6486
  width: Math.max(0, l - o),
6481
6487
  height: Math.max(0, s - i)
6482
6488
  };
6483
- }, Hm = [], Gm = (e) => {
6489
+ }, Gm = [], Vm = (e) => {
6484
6490
  const { layers: t, parsingLocale: n } = R(xe((p) => ({
6485
6491
  layers: p.layers,
6486
6492
  parsingLocale: p.config.parsingLocale
6487
- }))), a = ee((p) => p.editTargetUnderPointer), o = a?.kind === "observations" ? a.observations : null, i = o === null ? void 0 : Z(t, o.layerId), l = o?.target.scope ?? null, s = o === null || i === void 0 ? null : md(i, o.target.scope, o.observationIndex), c = M(() => i === void 0 || l === null || s === null ? null : Vm(t, i, l, s), [
6493
+ }))), a = ee((p) => p.editTargetUnderPointer), o = a?.kind === "observations" ? a.observations : null, i = o === null ? void 0 : Z(t, o.layerId), l = o?.target.scope ?? null, s = o === null || i === void 0 ? null : md(i, o.target.scope, o.observationIndex), c = M(() => i === void 0 || l === null || s === null ? null : $m(t, i, l, s), [
6488
6494
  t,
6489
6495
  i,
6490
6496
  l,
6491
6497
  s
6492
- ]), d = M(() => c !== null && e !== null && Qr(c, e), [c, e]), u = Wt(), h = o !== null && i !== void 0 && $m(o, i, n, u) ? o.observationIndex : null;
6498
+ ]), d = M(() => c !== null && e !== null && Qr(c, e), [c, e]), u = Wt(), h = o !== null && i !== void 0 && Wm(o, i, n, u) ? o.observationIndex : null;
6493
6499
  return M(() => {
6494
6500
  switch (a?.kind) {
6495
6501
  case "observations": {
@@ -6501,7 +6507,7 @@ var Qr = (e, t) => {
6501
6507
  };
6502
6508
  return d ? g === null ? null : {
6503
6509
  ...c,
6504
- parts: Hm,
6510
+ parts: Gm,
6505
6511
  vertex: g
6506
6512
  } : {
6507
6513
  ...c,
@@ -6528,7 +6534,7 @@ var Qr = (e, t) => {
6528
6534
  h,
6529
6535
  e
6530
6536
  ]);
6531
- }, Vm = (e, t, n, a) => {
6537
+ }, $m = (e, t, n, a) => {
6532
6538
  const o = [{
6533
6539
  layer: t,
6534
6540
  rows: gd(t, n, a)
@@ -6552,7 +6558,7 @@ var Qr = (e, t) => {
6552
6558
  parts: o,
6553
6559
  vertex: null
6554
6560
  };
6555
- }, $m = ({ observationIndex: e, target: t, onObservation: n }, a, o, i) => {
6561
+ }, Wm = ({ observationIndex: e, target: t, onObservation: n }, a, o, i) => {
6556
6562
  if (!n || t.scope !== "series") return !1;
6557
6563
  const l = tt({
6558
6564
  layer: a,
@@ -6561,8 +6567,8 @@ var Qr = (e, t) => {
6561
6567
  parsingLocale: o
6562
6568
  });
6563
6569
  return l !== null && i(l);
6564
- }, Wm = ({ frameElement: e, target: t, coordType: n, legendDisplays: a }) => {
6565
- const o = e.getBoundingClientRect(), i = [...e.querySelectorAll(Um(t))], l = (s) => {
6570
+ }, Um = ({ frameElement: e, target: t, coordType: n, legendDisplays: a }) => {
6571
+ const o = e.getBoundingClientRect(), i = [...e.querySelectorAll(Km(t))], l = (s) => {
6566
6572
  const c = s.getBoundingClientRect();
6567
6573
  return {
6568
6574
  x: c.left - o.left,
@@ -6577,29 +6583,29 @@ var Qr = (e, t) => {
6577
6583
  return n === "polar" || s.length === 0 ? sn(s) : sn([vn(s)]);
6578
6584
  }
6579
6585
  case "legend":
6580
- return sn([...Km(i.filter((s) => !qm(s)))].flatMap(([s, c]) => a[s] === "direct" ? c.map(l) : [vn(c.map(l))]));
6586
+ return sn([...qm(i.filter((s) => !jm(s)))].flatMap(([s, c]) => a[s] === "direct" ? c.map(l) : [vn(c.map(l))]));
6581
6587
  case "grid":
6582
6588
  return i.flatMap((s) => {
6583
6589
  const c = Mt([s], e);
6584
6590
  if (c?.kind !== "grid" || c.target.axis === "both") return [];
6585
6591
  const { axis: d } = c.target;
6586
- return t.axis === "both" || d === t.axis ? [jm(s, l(s), d)] : [];
6592
+ return t.axis === "both" || d === t.axis ? [Xm(s, l(s), d)] : [];
6587
6593
  });
6588
6594
  }
6589
- }, Um = (e) => {
6595
+ }, Km = (e) => {
6590
6596
  const t = `[${Jl}="${e.kind}"]`;
6591
6597
  return e.kind !== "axis" ? t : `${t}[${es}="${e.axis}"]`;
6592
- }, Km = (e) => {
6598
+ }, qm = (e) => {
6593
6599
  const t = /* @__PURE__ */ new Map();
6594
6600
  for (const n of e) {
6595
6601
  const a = ss(n);
6596
6602
  a !== null && t.set(a.legendIndex, [...t.get(a.legendIndex) ?? [], n]);
6597
6603
  }
6598
6604
  return t;
6599
- }, qm = (e) => e.closest(Oa) !== null, sn = (e) => e.map((t) => ({
6605
+ }, jm = (e) => e.closest(Oa) !== null, sn = (e) => e.map((t) => ({
6600
6606
  kind: "box",
6601
6607
  rect: t
6602
- })), jm = (e, { x: t, y: n, width: a, height: o }, i) => e.querySelector("circle") !== null ? {
6608
+ })), Xm = (e, { x: t, y: n, width: a, height: o }, i) => e.querySelector("circle") !== null ? {
6603
6609
  kind: "ring",
6604
6610
  axis: i,
6605
6611
  center: {
@@ -6629,7 +6635,7 @@ var Qr = (e, t) => {
6629
6635
  x: t + a,
6630
6636
  y: n + o / 2
6631
6637
  }
6632
- } : Xm(e.querySelector("line")) ? {
6638
+ } : Zm(e.querySelector("line")) ? {
6633
6639
  kind: "line",
6634
6640
  axis: i,
6635
6641
  from: {
@@ -6651,14 +6657,14 @@ var Qr = (e, t) => {
6651
6657
  x: t + a,
6652
6658
  y: n
6653
6659
  }
6654
- }, Xm = (e) => {
6660
+ }, Zm = (e) => {
6655
6661
  const t = (n) => Number(e?.getAttribute(n) ?? 0);
6656
6662
  return (t("x2") - t("x1")) * (t("y2") - t("y1")) >= 0;
6657
- }, Zm = [], Ym = (e, { frameElement: t, frameSize: n, panelRect: a, animateTransitions: o }) => {
6658
- const i = R((f) => f.coordSystem), l = os(), s = Va(), c = Qm(e.kind === "guide" ? e.target : null, {
6663
+ }, Ym = [], Jm = (e, { frameElement: t, frameSize: n, panelRect: a, animateTransitions: o }) => {
6664
+ const i = R((f) => f.coordSystem), l = os(), s = Va(), c = eg(e.kind === "guide" ? e.target : null, {
6659
6665
  frameElement: t,
6660
6666
  frameSize: n
6661
- }), d = Jm(t, n), u = M(() => ({
6667
+ }), d = Qm(t, n), u = M(() => ({
6662
6668
  coordSystem: i,
6663
6669
  panelRect: a,
6664
6670
  resolveRenderer: l,
@@ -6668,7 +6674,7 @@ var Qr = (e, t) => {
6668
6674
  a,
6669
6675
  l,
6670
6676
  s
6671
- ]), h = e.kind === "observations" ? e.parts : null, p = e.kind === "observations" ? e.vertex : null, g = M(() => h?.map((f) => ea(f, u, o)) ?? Zm, [
6677
+ ]), h = e.kind === "observations" ? e.parts : null, p = e.kind === "observations" ? e.vertex : null, g = M(() => h?.map((f) => ea(f, u, o)) ?? Ym, [
6672
6678
  h,
6673
6679
  u,
6674
6680
  o
@@ -6700,7 +6706,7 @@ var Qr = (e, t) => {
6700
6706
  c,
6701
6707
  d
6702
6708
  ]);
6703
- }, Jm = (e, t) => {
6709
+ }, Qm = (e, t) => {
6704
6710
  const [n, a] = X(() => Br(e, t));
6705
6711
  return Ie(() => {
6706
6712
  a((o) => {
@@ -6728,7 +6734,7 @@ var Qr = (e, t) => {
6728
6734
  layer: s,
6729
6735
  coordSystem: n,
6730
6736
  panelSize: a
6731
- }).map((d) => Bm(d, a))
6737
+ }).map((d) => Hm(d, a))
6732
6738
  } : {
6733
6739
  kind: "declared",
6734
6740
  layer: e,
@@ -6742,19 +6748,19 @@ var Qr = (e, t) => {
6742
6748
  animateTransitions: l
6743
6749
  })
6744
6750
  };
6745
- }, Qm = (e, { frameElement: t, frameSize: n }) => {
6751
+ }, eg = (e, { frameElement: t, frameSize: n }) => {
6746
6752
  const a = R((u) => u.coordSystem.type), o = R(xe((u) => u.guides.legends.drawn.map((h) => h.display))), i = R((u) => e === null ? null : u), [l, s] = X([]), c = ne(e), d = ae(!1);
6747
6753
  return Ie(() => {
6748
6754
  const u = c.current;
6749
6755
  if (u === null) return;
6750
6756
  const h = () => {
6751
- const p = Wm({
6757
+ const p = Um({
6752
6758
  frameElement: t,
6753
6759
  target: u,
6754
6760
  coordType: a,
6755
6761
  legendDisplays: o
6756
6762
  }), g = li(t);
6757
- s(p.map((m) => eg(m, 1 / g)));
6763
+ s(p.map((m) => tg(m, 1 / g)));
6758
6764
  };
6759
6765
  if (d.current) {
6760
6766
  const p = requestAnimationFrame(h);
@@ -6770,7 +6776,7 @@ var Qr = (e, t) => {
6770
6776
  n.width,
6771
6777
  n.height
6772
6778
  ]), l;
6773
- }, eg = (e, t) => {
6779
+ }, tg = (e, t) => {
6774
6780
  switch (e.kind) {
6775
6781
  case "box": {
6776
6782
  const { x: n, y: a, width: o, height: i } = e.rect;
@@ -6806,20 +6812,20 @@ var Qr = (e, t) => {
6806
6812
  radius: e.radius * t
6807
6813
  };
6808
6814
  }
6809
- }, tg = () => {
6815
+ }, ng = () => {
6810
6816
  const e = Rt()[0] ?? null, { layers: t, parsingLocale: n } = R(xe((a) => ({
6811
6817
  layers: a.layers,
6812
6818
  parsingLocale: a.config.parsingLocale
6813
6819
  })));
6814
- return M(() => e === null ? null : ng(e, t, n), [
6820
+ return M(() => e === null ? null : rg(e, t, n), [
6815
6821
  e,
6816
6822
  t,
6817
6823
  n
6818
6824
  ]);
6819
- }, ng = (e, t, n) => {
6825
+ }, rg = (e, t, n) => {
6820
6826
  switch (e.kind) {
6821
6827
  case "observations": {
6822
- const a = rg(e, t, n);
6828
+ const a = ag(e, t, n);
6823
6829
  return a === null ? null : {
6824
6830
  outlined: a,
6825
6831
  target: e
@@ -6847,7 +6853,7 @@ var Qr = (e, t) => {
6847
6853
  default:
6848
6854
  return null;
6849
6855
  }
6850
- }, rg = (e, t, n) => {
6856
+ }, ag = (e, t, n) => {
6851
6857
  const a = Z(t, e.layerId);
6852
6858
  if (a === void 0) return null;
6853
6859
  const o = Je({
@@ -6880,8 +6886,8 @@ var Qr = (e, t) => {
6880
6886
  parts: i,
6881
6887
  vertex: null
6882
6888
  };
6883
- }, ag = ["x", "y"], og = ko(function({ frameElement: t, frameSize: n, panelRect: a, animateTransitions: o }) {
6884
- const i = cs(Sd, W()), l = tg(), s = Gm(l?.outlined ?? null);
6889
+ }, og = ["x", "y"], ig = ko(function({ frameElement: t, frameSize: n, panelRect: a, animateTransitions: o }) {
6890
+ const i = cs(Sd, W()), l = ng(), s = Vm(l?.outlined ?? null);
6885
6891
  if (l === null && s === null) return null;
6886
6892
  const c = {
6887
6893
  frameElement: t,
@@ -6909,7 +6915,7 @@ var Qr = (e, t) => {
6909
6915
  }, l.outlined.key)]
6910
6916
  });
6911
6917
  }), ta = ({ part: e, target: t, editTarget: n, look: a, frameSize: o, panelRect: i, frameElement: l, animateTransitions: s }) => {
6912
- const c = Le(), d = `${c}-shapes`, u = `${c}-hole`, h = Ym(t, {
6918
+ const c = Le(), d = `${c}-shapes`, u = `${c}-hole`, h = Jm(t, {
6913
6919
  frameElement: l,
6914
6920
  frameSize: o,
6915
6921
  panelRect: i,
@@ -6929,7 +6935,7 @@ var Qr = (e, t) => {
6929
6935
  /* @__PURE__ */ v("defs", { children: [/* @__PURE__ */ r("g", {
6930
6936
  id: d,
6931
6937
  className: o1,
6932
- children: /* @__PURE__ */ r(ug, {
6938
+ children: /* @__PURE__ */ r(hg, {
6933
6939
  outline: h,
6934
6940
  look: a,
6935
6941
  panelRect: i
@@ -6949,7 +6955,7 @@ var Qr = (e, t) => {
6949
6955
  fill: "white"
6950
6956
  }), /* @__PURE__ */ r("use", {
6951
6957
  href: `#${d}`,
6952
- style: ig(a.offset)
6958
+ style: lg(a.offset)
6953
6959
  })]
6954
6960
  })] }),
6955
6961
  /* @__PURE__ */ v("g", {
@@ -6957,31 +6963,31 @@ var Qr = (e, t) => {
6957
6963
  "data-testid": `edit-outline-${e}-ring`,
6958
6964
  children: [/* @__PURE__ */ r("use", {
6959
6965
  href: `#${d}`,
6960
- style: lg(a)
6966
+ style: sg(a)
6961
6967
  }), /* @__PURE__ */ r("use", {
6962
6968
  href: `#${d}`,
6963
- style: sg(a)
6969
+ style: cg(a)
6964
6970
  })]
6965
6971
  }),
6966
- t.kind === "observations" && /* @__PURE__ */ r(fg, {
6972
+ t.kind === "observations" && /* @__PURE__ */ r(bg, {
6967
6973
  target: t,
6968
6974
  look: a,
6969
6975
  panelRect: i
6970
6976
  })
6971
6977
  ]
6972
6978
  });
6973
- }, ig = (e) => ({
6979
+ }, lg = (e) => ({
6974
6980
  fill: "black",
6975
6981
  stroke: "black",
6976
6982
  strokeLinecap: "round",
6977
6983
  ...Se({ [ir]: `${2 * e}px` })
6978
- }), lg = (e) => ({
6984
+ }), sg = (e) => ({
6979
6985
  fill: "none",
6980
6986
  stroke: e.haloColor ?? ce.graphBackground,
6981
6987
  strokeLinecap: "round",
6982
6988
  opacity: e.haloAlpha,
6983
6989
  ...Se({ [ir]: `${2 * rt(e)}px` })
6984
- }), sg = (e) => {
6990
+ }), cg = (e) => {
6985
6991
  const t = xo(e.dashArray, e.strokeWidth);
6986
6992
  return {
6987
6993
  fill: "none",
@@ -6991,22 +6997,22 @@ var Qr = (e, t) => {
6991
6997
  opacity: e.strokeAlpha,
6992
6998
  ...Se({ [ir]: `${2 * rt(e)}px` })
6993
6999
  };
6994
- }, cg = ({ dashArray: e, strokeWidth: t }) => {
7000
+ }, dg = ({ dashArray: e, strokeWidth: t }) => {
6995
7001
  if (xo(e, t) === void 0) return;
6996
7002
  const n = (e.length % 2 === 0 ? 1 : 2) * e.reduce((a, o) => a + o * t, 0);
6997
7003
  return n > 0 ? n : void 0;
6998
7004
  }, Fi = (e, t, n = 1) => {
6999
7005
  if (!(t === void 0 || e <= 0))
7000
7006
  return n * Math.max(1, Math.round(2 * Math.PI * e / t)) * t;
7001
- }, dg = (e, t, n) => {
7007
+ }, ug = (e, t, n) => {
7002
7008
  const a = n.offset + rt(n);
7003
7009
  return Hn(Be({
7004
7010
  x: 0,
7005
7011
  y: 0,
7006
7012
  ...e
7007
7013
  }, -a), Math.max(0, t - a));
7008
- }, ug = ({ outline: e, look: t, panelRect: n }) => {
7009
- const a = W().graph().get("cornerRadius"), { cornerRadius: o } = t, i = cg(t);
7014
+ }, hg = ({ outline: e, look: t, panelRect: n }) => {
7015
+ const a = W().graph().get("cornerRadius"), { cornerRadius: o } = t, i = dg(t);
7010
7016
  switch (e.kind) {
7011
7017
  case "observations":
7012
7018
  return /* @__PURE__ */ v("g", {
@@ -7022,25 +7028,25 @@ var Qr = (e, t) => {
7022
7028
  }, `vertex-${e.vertex.rows.join()}`)]
7023
7029
  });
7024
7030
  case "guide":
7025
- return /* @__PURE__ */ r(mg, {
7031
+ return /* @__PURE__ */ r(gg, {
7026
7032
  target: e.target,
7027
7033
  shapes: e.shapes,
7028
7034
  borderRadius: o,
7029
7035
  dashPeriod: i
7030
7036
  });
7031
7037
  case "graph":
7032
- return /* @__PURE__ */ r("path", { d: dg(e.frameSize, a, t) });
7038
+ return /* @__PURE__ */ r("path", { d: ug(e.frameSize, a, t) });
7033
7039
  }
7034
7040
  }, na = ko(function({ part: t, borderRadius: n, dashPeriod: a }) {
7035
- return t.kind === "boxes" ? /* @__PURE__ */ r(pg, {
7041
+ return t.kind === "boxes" ? /* @__PURE__ */ r(mg, {
7036
7042
  boxes: t.boxes,
7037
7043
  borderRadius: n
7038
- }) : /* @__PURE__ */ r(hg, {
7044
+ }) : /* @__PURE__ */ r(pg, {
7039
7045
  shapes: t.shapes,
7040
7046
  layer: t.layer,
7041
7047
  dashPeriod: a
7042
7048
  });
7043
- }), hg = ({ shapes: e, layer: t, dashPeriod: n }) => e.map((a, o) => {
7049
+ }), pg = ({ shapes: e, layer: t, dashPeriod: n }) => e.map((a, o) => {
7044
7050
  const i = a.kind === "dots" || a.key === void 0 ? String(o) : `${a.kind}:${a.key}`;
7045
7051
  switch (a.kind) {
7046
7052
  case "region":
@@ -7066,34 +7072,34 @@ var Qr = (e, t) => {
7066
7072
  "data-geom": t.geom
7067
7073
  }, i);
7068
7074
  }
7069
- }), pg = ({ boxes: e, borderRadius: t }) => {
7075
+ }), mg = ({ boxes: e, borderRadius: t }) => {
7070
7076
  const n = e.map((a) => Hn(a, t)).join("");
7071
7077
  return n === "" ? null : /* @__PURE__ */ r("path", {
7072
7078
  d: n,
7073
7079
  "data-testid": "edit-outline-boxes"
7074
7080
  });
7075
- }, mg = ({ target: e, shapes: t, borderRadius: n, dashPeriod: a }) => {
7081
+ }, gg = ({ target: e, shapes: t, borderRadius: n, dashPeriod: a }) => {
7076
7082
  const o = W();
7077
- if (e.kind === "grid") return ag.map((l) => {
7078
- const s = si(Na(o, l).strokeWidth), c = t.map((u) => gg(u, l)).join(""), d = t.filter((u) => u.kind === "ring" && u.axis === l);
7083
+ if (e.kind === "grid") return og.map((l) => {
7084
+ const s = si(Na(o, l).strokeWidth), c = t.map((u) => vg(u, l)).join(""), d = t.filter((u) => u.kind === "ring" && u.axis === l);
7079
7085
  return /* @__PURE__ */ v(wo, { children: [c !== "" && /* @__PURE__ */ r("path", {
7080
7086
  d: c,
7081
7087
  ...s
7082
7088
  }), d.map((u, h) => /* @__PURE__ */ r("path", {
7083
- d: vg(u),
7089
+ d: fg(u),
7084
7090
  pathLength: Fi(u.radius, a),
7085
7091
  ...s
7086
7092
  }, h))] }, l);
7087
7093
  });
7088
7094
  const i = t.map((l) => l.kind === "box" ? Hn(l.rect, n) : "").join("");
7089
7095
  return i === "" ? null : /* @__PURE__ */ r("path", { d: i });
7090
- }, gg = (e, t) => e.kind === "line" && e.axis === t ? `M${e.from.x},${e.from.y}L${e.to.x},${e.to.y}` : "", vg = ({ center: e, radius: t }) => {
7096
+ }, vg = (e, t) => e.kind === "line" && e.axis === t ? `M${e.from.x},${e.from.y}L${e.to.x},${e.to.y}` : "", fg = ({ center: e, radius: t }) => {
7091
7097
  const n = `${e.x},${e.y - t}`;
7092
7098
  return `M${n}A${t},${t} 0 0 1 ${`${e.x},${e.y + t}`}A${t},${t} 0 0 1 ${n}`;
7093
- }, fg = ({ target: e, look: t, panelRect: n }) => {
7099
+ }, bg = ({ target: e, look: t, panelRect: n }) => {
7094
7100
  const a = R((l) => l.coordSystem), o = e.parts[0];
7095
7101
  if (e.scope !== "x-value" || o === void 0 || o.layer.highlight?.strategy !== "overlay-anchor") return null;
7096
- const i = bg(o);
7102
+ const i = yg(o);
7097
7103
  return i === null ? null : /* @__PURE__ */ r("svg", {
7098
7104
  x: n.x,
7099
7105
  y: n.y,
@@ -7110,7 +7116,7 @@ var Qr = (e, t) => {
7110
7116
  "data-testid": "edit-outline-band-guide"
7111
7117
  })
7112
7118
  });
7113
- }, bg = ({ layer: e, rows: t }) => {
7119
+ }, yg = ({ layer: e, rows: t }) => {
7114
7120
  for (const n of t) {
7115
7121
  const a = e.data.getAt(n), o = a === null ? null : jc(a), i = a === null ? null : Xc(a);
7116
7122
  if (o !== null && i !== null) return {
@@ -7119,14 +7125,14 @@ var Qr = (e, t) => {
7119
7125
  };
7120
7126
  }
7121
7127
  return null;
7122
- }, yg = "kwvn4c0", Sg = "kwvn4c1", zi = (e, t) => ({
7128
+ }, Sg = "kwvn4c0", Cg = "kwvn4c1", zi = (e, t) => ({
7123
7129
  contextElement: e,
7124
7130
  getBoundingClientRect: () => {
7125
7131
  const n = e.getBoundingClientRect(), a = ii(e, n.width);
7126
7132
  return new DOMRect(n.left + t.x * a, n.top + t.y * a, t.width * a, t.height * a);
7127
7133
  }
7128
- }), Cg = ({ side: e, boundary: t, spans: n, anchor: a, rightToLeft: o }) => {
7129
- if (!xg(e)) return 0;
7134
+ }), xg = ({ side: e, boundary: t, spans: n, anchor: a, rightToLeft: o }) => {
7135
+ if (!wg(e)) return 0;
7130
7136
  const i = n[e];
7131
7137
  if (e === "left" || e === "right") return ra(i.from - t.y, a.height, t.height);
7132
7138
  const l = o ? t.x + t.width - i.to : i.from - t.x;
@@ -7136,14 +7142,14 @@ var Qr = (e, t) => {
7136
7142
  return z(() => {
7137
7143
  t(!0);
7138
7144
  }, []), e;
7139
- }, xg = (e) => as.some((t) => t === e), ra = (e, t, n) => n === 0 ? 0 : e * t / n, wg = {
7145
+ }, wg = (e) => as.some((t) => t === e), ra = (e, t, n) => n === 0 ? 0 : e * t / n, kg = {
7140
7146
  x: 8,
7141
7147
  y: 8
7142
- }, kg = {
7148
+ }, Tg = {
7143
7149
  side: "flip",
7144
7150
  align: "shift",
7145
7151
  fallbackAxisSide: "end"
7146
- }, Tg = ({ frameElement: e, boundary: t, spans: n, clearance: a = wg, onEscape: o, children: i }) => {
7152
+ }, Ag = ({ frameElement: e, boundary: t, spans: n, clearance: a = kg, onEscape: o, children: i }) => {
7147
7153
  const l = We(), s = Bi(), [c, d] = X(null), u = ae(null), h = re((x) => {
7148
7154
  u.current = x, d(x);
7149
7155
  }, []), p = ae(null);
@@ -7179,20 +7185,20 @@ var Qr = (e, t) => {
7179
7185
  side: "right",
7180
7186
  align: "start",
7181
7187
  sideOffset: ({ side: x }) => x === "top" || x === "bottom" ? a.y : a.x,
7182
- alignOffset: ({ side: x, anchor: I }) => Cg({
7188
+ alignOffset: ({ side: x, anchor: I }) => xg({
7183
7189
  side: x,
7184
7190
  boundary: C.box,
7185
7191
  spans: C.spans,
7186
7192
  anchor: I,
7187
- rightToLeft: Ag(p.current)
7193
+ rightToLeft: Pg(p.current)
7188
7194
  }),
7189
- collisionAvoidance: kg,
7195
+ collisionAvoidance: Tg,
7190
7196
  sticky: !0,
7191
- className: yg,
7197
+ className: Sg,
7192
7198
  ...er,
7193
7199
  children: /* @__PURE__ */ r(Q.Popup, {
7194
7200
  ref: h,
7195
- className: Sg,
7201
+ className: Cg,
7196
7202
  initialFocus: u,
7197
7203
  finalFocus: !1,
7198
7204
  "data-testid": "anchored-popover",
@@ -7201,7 +7207,7 @@ var Qr = (e, t) => {
7201
7207
  }) })
7202
7208
  })
7203
7209
  });
7204
- }, Ag = (e) => e !== null && getComputedStyle(e).direction === "rtl", Hi = (e) => /* @__PURE__ */ v(L, {
7210
+ }, Pg = (e) => e !== null && getComputedStyle(e).direction === "rtl", Hi = (e) => /* @__PURE__ */ v(L, {
7205
7211
  viewBox: "0 0 16 16",
7206
7212
  ...e,
7207
7213
  children: [
@@ -7342,18 +7348,18 @@ var Qr = (e, t) => {
7342
7348
  options: a.map(({ option: o }) => o),
7343
7349
  findValue: (o) => a.find((i) => i.option.value === o)?.value
7344
7350
  };
7345
- }, [e]), Pg = ({ scene: e, layer: t, observation: n, groupOptions: a, locale: o, t: i }) => {
7351
+ }, [e]), Lg = ({ scene: e, layer: t, observation: n, groupOptions: a, locale: o, t: i }) => {
7346
7352
  const l = Ln(e, t, n, a);
7347
7353
  return {
7348
- "data-point": i(Mg(e, t)),
7354
+ "data-point": i(Og(e, t)),
7349
7355
  "x-value": i("editor.overlayMenu.allOf", { name: $i(e, t, n, o) }),
7350
7356
  series: l === null ? i("editor.overlayMenu.all") : i("editor.overlayMenu.allOf", { name: l })
7351
7357
  };
7352
- }, Lg = ({ scene: e, layer: t, observation: n, groupOptions: a, locale: o, t: i }, l) => {
7358
+ }, Ig = ({ scene: e, layer: t, observation: n, groupOptions: a, locale: o, t: i }, l) => {
7353
7359
  const s = mo(t.data, t.mapping), c = $i(e, t, n, o);
7354
7360
  switch (l) {
7355
7361
  case "data-point": {
7356
- const d = s.length === 0 ? null : Ln(e, t, n, a), u = Ig(d, c, i);
7362
+ const d = s.length === 0 ? null : Ln(e, t, n, a), u = Eg(d, c, i);
7357
7363
  return {
7358
7364
  whole: u,
7359
7365
  value: u
@@ -7363,12 +7369,12 @@ var Qr = (e, t) => {
7363
7369
  return aa(uo(e.guides, "x")?.label ?? null, c, i);
7364
7370
  case "series": {
7365
7371
  const d = Ln(e, t, n, a) ?? i("editor.overlayMenu.all");
7366
- return aa(Eg(e, s), d, i);
7372
+ return aa(Mg(e, s), d, i);
7367
7373
  }
7368
7374
  default:
7369
7375
  return l;
7370
7376
  }
7371
- }, Ig = (e, t, n) => e === null ? t : t === "" ? e : n("editor.overlayMenu.groupAtBand", {
7377
+ }, Eg = (e, t, n) => e === null ? t : t === "" ? e : n("editor.overlayMenu.groupAtBand", {
7372
7378
  group: e,
7373
7379
  band: t
7374
7380
  }), aa = (e, t, n) => ({
@@ -7377,10 +7383,10 @@ var Qr = (e, t) => {
7377
7383
  value: t
7378
7384
  }),
7379
7385
  value: t
7380
- }), Eg = (e, t) => {
7386
+ }), Mg = (e, t) => {
7381
7387
  const [n, ...a] = t;
7382
7388
  return n === void 0 || a.length > 0 ? null : e.guides.variableLabels[n] ?? null;
7383
- }, Mg = (e, t) => {
7389
+ }, Og = (e, t) => {
7384
7390
  switch (t.geom) {
7385
7391
  case "bar":
7386
7392
  return e.coordSystem.type === "polar" && e.coordSystem.bandAxis === null ? "editor.overlayMenu.thisSlice" : "editor.overlayMenu.thisBar";
@@ -7398,19 +7404,19 @@ var Qr = (e, t) => {
7398
7404
  })(Hc(t.data, t.mapping)(n), n);
7399
7405
  }, Ln = (e, t, n, a) => {
7400
7406
  const o = mo(t.data, t.mapping);
7401
- return o.length === 0 ? Og(e, t) : o.map((i) => Rg(n[i] ?? null, a)).join(", ");
7402
- }, Og = (e, t) => {
7407
+ return o.length === 0 ? Rg(e, t) : o.map((i) => Ng(n[i] ?? null, a)).join(", ");
7408
+ }, Rg = (e, t) => {
7403
7409
  const n = Ht(t.mapping.y), a = n === null ? void 0 : e.guides.variableLabels[n];
7404
7410
  return a === void 0 || a === "" ? null : a;
7405
- }, Rg = (e, t) => {
7411
+ }, Ng = (e, t) => {
7406
7412
  const n = String(e instanceof Date ? e.getTime() : e);
7407
7413
  return t.options.find((a) => a.value === n)?.label ?? n;
7408
- }, Ng = {
7414
+ }, Dg = {
7409
7415
  "data-point": Hi,
7410
7416
  "x-value": Gi,
7411
7417
  series: Vi
7412
- }, Dg = () => {
7413
- const { selectionStore: e } = H(), t = U(), n = E(), a = zn(), o = R((b) => b), i = cr(o), l = ee((b) => b.pressedObservation), s = Wt(), c = M(() => _g({
7418
+ }, _g = () => {
7419
+ const { selectionStore: e } = H(), t = U(), n = E(), a = zn(), o = R((b) => b), i = cr(o), l = ee((b) => b.pressedObservation), s = Wt(), c = M(() => Fg({
7414
7420
  scene: o,
7415
7421
  pressed: l,
7416
7422
  groupOptions: i,
@@ -7427,7 +7433,7 @@ var Qr = (e, t) => {
7427
7433
  ]);
7428
7434
  if (c === null) return null;
7429
7435
  const { layer: d, levels: u, names: h } = c, { observationIndex: p, selectedFor: g } = c.pressed, m = u.map((b) => {
7430
- const C = Ng[b];
7436
+ const C = Dg[b];
7431
7437
  return {
7432
7438
  value: b,
7433
7439
  label: h[b],
@@ -7451,7 +7457,7 @@ var Qr = (e, t) => {
7451
7457
  onChange: f,
7452
7458
  ariaLabel: n("editor.overlayMenu.selection")
7453
7459
  });
7454
- }, _g = ({ scene: e, pressed: t, groupOptions: n, locale: a, t: o, hasOverlayMenu: i }) => {
7460
+ }, Fg = ({ scene: e, pressed: t, groupOptions: n, locale: a, t: o, hasOverlayMenu: i }) => {
7455
7461
  const l = t === null ? null : ms(t, e.layers, e.config.parsingLocale);
7456
7462
  if (t === null || l === null) return null;
7457
7463
  const { layer: s, observation: c } = l, { observationIndex: d, selectedFor: u } = t, { parsingLocale: h } = e.config, p = pd({
@@ -7472,7 +7478,7 @@ var Qr = (e, t) => {
7472
7478
  pressed: t,
7473
7479
  layer: s,
7474
7480
  levels: p,
7475
- names: Pg({
7481
+ names: Lg({
7476
7482
  scene: e,
7477
7483
  layer: s,
7478
7484
  observation: c,
@@ -7481,7 +7487,7 @@ var Qr = (e, t) => {
7481
7487
  t: o
7482
7488
  })
7483
7489
  };
7484
- }, Fg = (e) => /* @__PURE__ */ r(L, {
7490
+ }, zg = (e) => /* @__PURE__ */ r(L, {
7485
7491
  ...e,
7486
7492
  children: /* @__PURE__ */ v("g", {
7487
7493
  stroke: "currentColor",
@@ -7494,7 +7500,7 @@ var Qr = (e, t) => {
7494
7500
  r: "3"
7495
7501
  })]
7496
7502
  })
7497
- }), zg = (e) => /* @__PURE__ */ r(L, {
7503
+ }), Bg = (e) => /* @__PURE__ */ r(L, {
7498
7504
  ...e,
7499
7505
  children: /* @__PURE__ */ v("g", {
7500
7506
  stroke: "currentColor",
@@ -7508,7 +7514,7 @@ var Qr = (e, t) => {
7508
7514
  /* @__PURE__ */ r("path", { d: "m2 2 20 20" })
7509
7515
  ]
7510
7516
  })
7511
- }), Bg = "_1de58rm0", Hg = ({ target: e }) => {
7517
+ }), Hg = "_1de58rm0", Gg = ({ target: e }) => {
7512
7518
  const t = E(), n = le(), a = R((g) => g), [o, i] = X(null), l = _i(e, a);
7513
7519
  if (l === null) return null;
7514
7520
  const { hidden: s, hide: c, show: d } = l, u = () => {
@@ -7522,25 +7528,25 @@ var Qr = (e, t) => {
7522
7528
  label: h,
7523
7529
  children: /* @__PURE__ */ r("button", {
7524
7530
  type: "button",
7525
- className: Bg,
7531
+ className: Hg,
7526
7532
  onClick: u,
7527
- children: /* @__PURE__ */ r(s ? zg : Fg, { title: "" })
7533
+ children: /* @__PURE__ */ r(s ? Bg : zg, { title: "" })
7528
7534
  })
7529
7535
  });
7530
- }, Gg = "_1xgvyvc0", Vg = "_1xgvyvc1", $g = "_1xgvyvc2", Wg = "_1xgvyvc3", Ug = (e, t) => {
7536
+ }, Vg = "_1xgvyvc0", $g = "_1xgvyvc1", Wg = "_1xgvyvc2", Ug = "_1xgvyvc3", Kg = (e, t) => {
7531
7537
  switch (e.kind) {
7532
7538
  case "observations":
7533
- return Kg(e.scope, t);
7539
+ return qg(e.scope, t);
7534
7540
  case "legend":
7535
7541
  case "axis":
7536
7542
  case "grid":
7537
- return qg(e.kind, t);
7543
+ return jg(e.kind, t);
7538
7544
  case "graph":
7539
7545
  return t("editor.overlayMenu.chart");
7540
7546
  default:
7541
7547
  return e;
7542
7548
  }
7543
- }, Kg = (e, t) => {
7549
+ }, qg = (e, t) => {
7544
7550
  switch (e) {
7545
7551
  case "data-point":
7546
7552
  return t("editor.overlayMenu.observation");
@@ -7551,7 +7557,7 @@ var Qr = (e, t) => {
7551
7557
  default:
7552
7558
  return e;
7553
7559
  }
7554
- }, qg = (e, t) => {
7560
+ }, jg = (e, t) => {
7555
7561
  switch (e) {
7556
7562
  case "axis":
7557
7563
  return t("editor.overlayMenu.axis");
@@ -7562,8 +7568,8 @@ var Qr = (e, t) => {
7562
7568
  default:
7563
7569
  return e;
7564
7570
  }
7565
- }, jg = ({ target: e }) => {
7566
- const t = E(), n = zn(), a = R((l) => l), o = cr(a), i = M(() => Zg({
7571
+ }, Xg = ({ target: e }) => {
7572
+ const t = E(), n = zn(), a = R((l) => l), o = cr(a), i = M(() => Yg({
7567
7573
  target: e,
7568
7574
  scene: a,
7569
7575
  groupOptions: o,
@@ -7576,8 +7582,8 @@ var Qr = (e, t) => {
7576
7582
  n,
7577
7583
  t
7578
7584
  ]);
7579
- return /* @__PURE__ */ r(Xg, { title: i });
7580
- }, Xg = ({ title: e }) => {
7585
+ return /* @__PURE__ */ r(Zg, { title: i });
7586
+ }, Zg = ({ title: e }) => {
7581
7587
  const t = ae(null), n = ae(null), [a, o] = X(!1), i = re(() => {
7582
7588
  const c = t.current, d = n.current;
7583
7589
  c === null || d === null || o(d.offsetWidth > c.clientWidth);
@@ -7588,17 +7594,17 @@ var Qr = (e, t) => {
7588
7594
  }, [l]);
7589
7595
  return /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(Q.Title, {
7590
7596
  ref: s,
7591
- className: $g,
7597
+ className: Wg,
7592
7598
  "data-testid": "overlay-menu-title",
7593
7599
  children: a ? e.value : e.whole
7594
7600
  }), /* @__PURE__ */ r("span", {
7595
7601
  ref: n,
7596
- className: Wg,
7602
+ className: Ug,
7597
7603
  "aria-hidden": !0,
7598
7604
  children: e.whole
7599
7605
  })] });
7600
- }, Zg = ({ target: e, scene: t, groupOptions: n, locale: a, t: o }) => {
7601
- const i = Ug(e, o), l = {
7606
+ }, Yg = ({ target: e, scene: t, groupOptions: n, locale: a, t: o }) => {
7607
+ const i = Kg(e, o), l = {
7602
7608
  whole: i,
7603
7609
  value: i
7604
7610
  };
@@ -7610,7 +7616,7 @@ var Qr = (e, t) => {
7610
7616
  target: e,
7611
7617
  parsingLocale: t.config.parsingLocale
7612
7618
  }), d = c === void 0 ? null : s.data.getAt(c);
7613
- return d === null ? l : Lg({
7619
+ return d === null ? l : Ig({
7614
7620
  scene: t,
7615
7621
  layer: s,
7616
7622
  observation: d,
@@ -7618,29 +7624,29 @@ var Qr = (e, t) => {
7618
7624
  locale: a,
7619
7625
  t: o
7620
7626
  }, e.scope);
7621
- }, Yg = ({ frameElement: e }) => {
7622
- const { selectionStore: t } = H(), n = Jg(ee((s) => s.selectedOutline)), a = Fm(n?.target ?? null), o = Wt();
7627
+ }, Jg = ({ frameElement: e }) => {
7628
+ const { selectionStore: t } = H(), n = Qg(ee((s) => s.selectedOutline)), a = zm(n?.target ?? null), o = Wt();
7623
7629
  if (n === null || !o(n.target)) return null;
7624
7630
  const i = () => {
7625
7631
  t.getState().clearSelection();
7626
7632
  }, l = Bt(n.target);
7627
- return /* @__PURE__ */ v(Tg, {
7633
+ return /* @__PURE__ */ v(Ag, {
7628
7634
  frameElement: e,
7629
7635
  boundary: n.frame,
7630
7636
  spans: n.frameSpans,
7631
7637
  onEscape: i,
7632
7638
  children: [/* @__PURE__ */ v(bn, {
7633
- className: Gg,
7639
+ className: Vg,
7634
7640
  children: [/* @__PURE__ */ v("div", {
7635
- className: Vg,
7636
- children: [/* @__PURE__ */ r(jg, { target: n.target }), /* @__PURE__ */ r(Hg, { target: n.target }, l)]
7637
- }), n.target.kind === "observations" && /* @__PURE__ */ r(Dg, {})]
7641
+ className: $g,
7642
+ children: [/* @__PURE__ */ r(Xg, { target: n.target }), /* @__PURE__ */ r(Gg, { target: n.target }, l)]
7643
+ }), n.target.kind === "observations" && /* @__PURE__ */ r(_g, {})]
7638
7644
  }), /* @__PURE__ */ r(wo, { children: a }, l)]
7639
7645
  });
7640
- }, Jg = (e) => {
7646
+ }, Qg = (e) => {
7641
7647
  const t = Rt(), [n, a] = X(e), o = n !== null && Kn(t[0] ?? null, n.target), i = e ?? (o ? n : null);
7642
7648
  return i !== n && a(i), i;
7643
- }, Qg = ({ frameRect: e }) => {
7649
+ }, e2 = ({ frameRect: e }) => {
7644
7650
  const { targetBoundaryStore: t } = H(), n = ee((l) => l.selectedOutline), { left: a, top: o } = e, i = M(() => {
7645
7651
  if (n === null) return null;
7646
7652
  const { frame: l, frameSpans: s, frameScale: c } = n;
@@ -7697,7 +7703,7 @@ var Qr = (e, t) => {
7697
7703
  })
7698
7704
  ]
7699
7705
  });
7700
- var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb44", t2 = "efjmb45", n2 = /* @__PURE__ */ new Set([
7706
+ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", t2 = "efjmb44", n2 = "efjmb45", r2 = /* @__PURE__ */ new Set([
7701
7707
  "item-press",
7702
7708
  "escape-key",
7703
7709
  "outside-press",
@@ -7706,12 +7712,12 @@ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb4
7706
7712
  "trigger-press"
7707
7713
  ]), dr = ({ label: e, icon: t, onOpened: n, children: a }) => {
7708
7714
  const o = We(), [i, l] = X(!1), s = (c, d) => {
7709
- c ? (l(!0), n?.()) : n2.has(d.reason) && l(!1);
7715
+ c ? (l(!0), n?.()) : r2.has(d.reason) && l(!1);
7710
7716
  };
7711
7717
  return /* @__PURE__ */ v(Ae.SubmenuRoot, {
7712
7718
  open: i,
7713
7719
  onOpenChange: s,
7714
- children: [/* @__PURE__ */ r(r2, {
7720
+ children: [/* @__PURE__ */ r(a2, {
7715
7721
  label: e,
7716
7722
  icon: t
7717
7723
  }), /* @__PURE__ */ r(Ae.Portal, {
@@ -7729,7 +7735,7 @@ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb4
7729
7735
  }) })
7730
7736
  })]
7731
7737
  });
7732
- }, r2 = ({ label: e, icon: t }) => /* @__PURE__ */ v(Ae.SubmenuTrigger, {
7738
+ }, a2 = ({ label: e, icon: t }) => /* @__PURE__ */ v(Ae.SubmenuTrigger, {
7733
7739
  className: _e,
7734
7740
  openOnHover: !1,
7735
7741
  children: [
@@ -7739,17 +7745,17 @@ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb4
7739
7745
  children: e
7740
7746
  }),
7741
7747
  /* @__PURE__ */ r("span", {
7742
- className: t2,
7748
+ className: n2,
7743
7749
  children: /* @__PURE__ */ r(nt, { size: "sm" })
7744
7750
  })
7745
7751
  ]
7746
- }), a2 = "_1qe7q450", o2 = "_1qe7q451", i2 = "_1qe7q452", l2 = ({ label: e, placeholder: t, addLabel: n, at: a, onRequestClose: o }) => {
7752
+ }), o2 = "_1qe7q450", i2 = "_1qe7q451", l2 = "_1qe7q452", s2 = ({ label: e, placeholder: t, addLabel: n, at: a, onRequestClose: o }) => {
7747
7753
  const i = ae(null), [l, s] = X(""), { dispatch: c } = le(), d = l.trim(), u = () => {
7748
7754
  d.length !== 0 && (c(new Te({
7749
7755
  kind: "comment",
7750
7756
  annotation: {
7751
7757
  at: a,
7752
- content: s2(d)
7758
+ content: c2(d)
7753
7759
  }
7754
7760
  })), o());
7755
7761
  };
@@ -7760,10 +7766,10 @@ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb4
7760
7766
  requestAnimationFrame(() => i.current?.focus());
7761
7767
  },
7762
7768
  children: /* @__PURE__ */ v("div", {
7763
- className: a2,
7769
+ className: o2,
7764
7770
  children: [/* @__PURE__ */ r("input", {
7765
7771
  ref: i,
7766
- className: o2,
7772
+ className: i2,
7767
7773
  value: l,
7768
7774
  placeholder: t,
7769
7775
  onChange: (m) => {
@@ -7774,14 +7780,14 @@ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb4
7774
7780
  }
7775
7781
  }), /* @__PURE__ */ r("button", {
7776
7782
  type: "button",
7777
- className: i2,
7783
+ className: l2,
7778
7784
  disabled: d.length === 0,
7779
7785
  onClick: u,
7780
7786
  children: n
7781
7787
  })]
7782
7788
  })
7783
7789
  });
7784
- }, s2 = (e) => ({
7790
+ }, c2 = (e) => ({
7785
7791
  type: "doc",
7786
7792
  content: [{
7787
7793
  type: "paragraph",
@@ -7790,7 +7796,7 @@ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb4
7790
7796
  text: e
7791
7797
  }]
7792
7798
  }]
7793
- }), c2 = (e) => /* @__PURE__ */ r(L, {
7799
+ }), d2 = (e) => /* @__PURE__ */ r(L, {
7794
7800
  viewBox: "0 0 15 14",
7795
7801
  ...e,
7796
7802
  children: /* @__PURE__ */ r("path", {
@@ -7798,7 +7804,7 @@ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb4
7798
7804
  fill: "currentColor",
7799
7805
  fillOpacity: "0.8"
7800
7806
  })
7801
- }), d2 = "relative-difference", u2 = ({ label: e, layer: t, at: n, onRequestClose: a }) => {
7807
+ }), u2 = "relative-difference", h2 = ({ label: e, layer: t, at: n, onRequestClose: a }) => {
7802
7808
  const { dispatch: o } = le(), i = R((c) => c.coordSystem), l = M(() => Jc({
7803
7809
  layer: t,
7804
7810
  at: n,
@@ -7815,21 +7821,21 @@ var Ui = "efjmb40", Ki = "efjmb41", _e = "efjmb42", Fe = "efjmb43", e2 = "efjmb4
7815
7821
  annotation: {
7816
7822
  ...Wa,
7817
7823
  ...l,
7818
- label: d2
7824
+ label: u2
7819
7825
  }
7820
7826
  })), a();
7821
7827
  };
7822
7828
  return /* @__PURE__ */ v(V.Item, {
7823
7829
  className: _e,
7824
7830
  onClick: s,
7825
- children: [/* @__PURE__ */ r(c2, {}), /* @__PURE__ */ r("span", {
7831
+ children: [/* @__PURE__ */ r(d2, {}), /* @__PURE__ */ r("span", {
7826
7832
  className: Fe,
7827
7833
  children: e
7828
7834
  })]
7829
7835
  });
7830
7836
  };
7831
- function h2(e, t) {
7832
- if (e.type === "polar" && !p2(t)) return [{
7837
+ function p2(e, t) {
7838
+ if (e.type === "polar" && !m2(t)) return [{
7833
7839
  scope: "series",
7834
7840
  labelKey: "pieSlice"
7835
7841
  }];
@@ -7877,10 +7883,10 @@ function h2(e, t) {
7877
7883
  return [];
7878
7884
  }
7879
7885
  }
7880
- var p2 = (e) => {
7886
+ var m2 = (e) => {
7881
7887
  const t = Ht(e.mapping.x);
7882
7888
  return t !== null && t !== Ks.x;
7883
- }, m2 = (e) => /* @__PURE__ */ v(L, {
7889
+ }, g2 = (e) => /* @__PURE__ */ v(L, {
7884
7890
  viewBox: "0 0 16 16",
7885
7891
  ...e,
7886
7892
  children: [
@@ -7900,7 +7906,7 @@ var p2 = (e) => {
7900
7906
  d: "M11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
7901
7907
  })
7902
7908
  ]
7903
- }), g2 = (e) => /* @__PURE__ */ v(L, {
7909
+ }), v2 = (e) => /* @__PURE__ */ v(L, {
7904
7910
  viewBox: "0 0 16 16",
7905
7911
  ...e,
7906
7912
  children: [
@@ -7934,7 +7940,7 @@ var p2 = (e) => {
7934
7940
  d: "M5.29 6.62a1.3 1.3 0 0 1-.424-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.262-.45 2.1 2.1 0 0 1-.096-.699q0-.389.082-.693.083-.304.238-.514a1.05 1.05 0 0 1 .374-.322q.22-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.321-.105.54.54 0 0 0-.485.273q-.168.273-.17.75h.021a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .813.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.571.134m-.003-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.07-.294.54.54 0 0 0-.484-.285.55.55 0 0 0-.403.173.596.596 0 0 0 .108.914.53.53 0 0 0 .288.08M6.88 6.579v-.396l1.05-1.03q.15-.15.25-.27a1 1 0 0 0 .151-.229.6.6 0 0 0 .05-.236.432.432 0 0 0-.244-.405.6.6 0 0 0-.258-.056q-.15 0-.261.062a.43.43 0 0 0-.175.173.56.56 0 0 0-.06.267H6.86q0-.288.132-.5a.9.9 0 0 1 .362-.33q.231-.117.532-.117.303 0 .534.114.23.114.358.312a.8.8 0 0 1 .128.452.9.9 0 0 1-.065.334q-.065.164-.229.363-.162.2-.456.483l-.522.53v.021h1.318v.458zM10.57 6.62a1.3 1.3 0 0 1-.423-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.263-.45 2.1 2.1 0 0 1-.096-.699q0-.389.083-.693t.238-.514a1.05 1.05 0 0 1 .374-.322q.219-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.322-.105.54.54 0 0 0-.484.273q-.168.273-.17.75h.02a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .814.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.572.134m-.002-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.071-.294.54.54 0 0 0-.483-.285.54.54 0 0 0-.403.173.597.597 0 0 0 .107.914.53.53 0 0 0 .289.08"
7935
7941
  })
7936
7942
  ]
7937
- }), v2 = (e) => /* @__PURE__ */ v(L, {
7943
+ }), f2 = (e) => /* @__PURE__ */ v(L, {
7938
7944
  viewBox: "0 0 16 16",
7939
7945
  ...e,
7940
7946
  children: [
@@ -7975,7 +7981,7 @@ var p2 = (e) => {
7975
7981
  fillOpacity: "0.8"
7976
7982
  })
7977
7983
  ]
7978
- }), f2 = (e) => /* @__PURE__ */ v(L, {
7984
+ }), b2 = (e) => /* @__PURE__ */ v(L, {
7979
7985
  viewBox: "0 0 16 16",
7980
7986
  ...e,
7981
7987
  children: [
@@ -7997,7 +8003,7 @@ var p2 = (e) => {
7997
8003
  d: "M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"
7998
8004
  })
7999
8005
  ]
8000
- }), b2 = (e) => /* @__PURE__ */ v(L, {
8006
+ }), y2 = (e) => /* @__PURE__ */ v(L, {
8001
8007
  viewBox: "0 0 16 16",
8002
8008
  ...e,
8003
8009
  children: [
@@ -8058,7 +8064,7 @@ var p2 = (e) => {
8058
8064
  transform: "matrix(-1 0 0 1 15.933 .533)"
8059
8065
  })
8060
8066
  ]
8061
- }), y2 = (e) => /* @__PURE__ */ v(L, {
8067
+ }), S2 = (e) => /* @__PURE__ */ v(L, {
8062
8068
  viewBox: "0 0 16 16",
8063
8069
  ...e,
8064
8070
  children: [
@@ -8119,18 +8125,18 @@ var p2 = (e) => {
8119
8125
  transform: "matrix(-1 0 0 1 15.933 .533)"
8120
8126
  })
8121
8127
  ]
8122
- }), S2 = {
8128
+ }), C2 = {
8123
8129
  bar: Hi,
8124
8130
  barGroup: Gi,
8125
- barStack: m2,
8131
+ barStack: g2,
8126
8132
  barSeries: Vi,
8127
- linePoint: g2,
8128
- lineSeries: v2,
8129
- scatterPoint: b2,
8130
- scatterSeries: y2,
8131
- pieSlice: f2
8133
+ linePoint: v2,
8134
+ lineSeries: f2,
8135
+ scatterPoint: y2,
8136
+ scatterSeries: S2,
8137
+ pieSlice: b2
8132
8138
  }, qi = ({ labelKey: e }) => {
8133
- const t = S2[e];
8139
+ const t = C2[e];
8134
8140
  return /* @__PURE__ */ r(t, {});
8135
8141
  }, ji = (e) => /* @__PURE__ */ v(L, {
8136
8142
  viewBox: "0 0 16 16",
@@ -8145,7 +8151,7 @@ var p2 = (e) => {
8145
8151
  fill: "currentColor",
8146
8152
  fillOpacity: "0.8"
8147
8153
  })]
8148
- }), C2 = ({ label: e, options: t, onSelect: n }) => {
8154
+ }), x2 = ({ label: e, options: t, onSelect: n }) => {
8149
8155
  const a = E();
8150
8156
  return /* @__PURE__ */ r(dr, {
8151
8157
  label: e,
@@ -8159,8 +8165,8 @@ var p2 = (e) => {
8159
8165
  })]
8160
8166
  }, o.scope))
8161
8167
  });
8162
- }, x2 = ({ label: e, layer: t, observation: n, highlights: a, onRequestClose: o }) => {
8163
- const i = E(), { dispatch: l } = le(), s = R((g) => g.coordSystem), c = M(() => Mc(t, n), [t, n]), d = M(() => h2(s, t), [s, t]), u = M(() => {
8168
+ }, w2 = ({ label: e, layer: t, observation: n, highlights: a, onRequestClose: o }) => {
8169
+ const i = E(), { dispatch: l } = le(), s = R((g) => g.coordSystem), c = M(() => Mc(t, n), [t, n]), d = M(() => p2(s, t), [s, t]), u = M(() => {
8164
8170
  const g = new Set(a.map((m) => m.scope));
8165
8171
  return d.filter((m) => !g.has(m.scope));
8166
8172
  }, [d, a]), [h] = u;
@@ -8183,16 +8189,16 @@ var p2 = (e) => {
8183
8189
  })]
8184
8190
  });
8185
8191
  }
8186
- return /* @__PURE__ */ r(C2, {
8192
+ return /* @__PURE__ */ r(x2, {
8187
8193
  label: e,
8188
8194
  options: u,
8189
8195
  onSelect: p
8190
8196
  });
8191
- }, w2 = "_1aafi1g0", k2 = "_1aafi1g1", Xi = ({ children: e }) => /* @__PURE__ */ v("span", {
8192
- className: w2,
8197
+ }, k2 = "_1aafi1g0", T2 = "_1aafi1g1", Xi = ({ children: e }) => /* @__PURE__ */ v("span", {
8198
+ className: k2,
8193
8199
  "aria-hidden": "true",
8194
- children: [e, /* @__PURE__ */ r("span", { className: k2 })]
8195
- }), T2 = ({ label: e, highlights: t, onRequestClose: n }) => {
8200
+ children: [e, /* @__PURE__ */ r("span", { className: T2 })]
8201
+ }), A2 = ({ label: e, highlights: t, onRequestClose: n }) => {
8196
8202
  const { dispatch: a } = le(), o = t.at(-1);
8197
8203
  if (o === void 0) return null;
8198
8204
  const i = () => {
@@ -8206,7 +8212,7 @@ var p2 = (e) => {
8206
8212
  children: e
8207
8213
  })]
8208
8214
  });
8209
- }, A2 = (e, t) => {
8215
+ }, P2 = (e, t) => {
8210
8216
  const n = R((o) => o.spec.highlights), a = R((o) => o.config.parsingLocale);
8211
8217
  return M(() => Wc({
8212
8218
  layer: e,
@@ -8242,7 +8248,7 @@ var p2 = (e) => {
8242
8248
  fillOpacity: "0.8"
8243
8249
  })
8244
8250
  ]
8245
- }), P2 = ({ label: e, at: t, onRequestClose: n }) => {
8251
+ }), L2 = ({ label: e, at: t, onRequestClose: n }) => {
8246
8252
  const { dispatch: a } = le(), o = () => {
8247
8253
  a(new Te({
8248
8254
  kind: "pinnedNumber",
@@ -8304,7 +8310,7 @@ var p2 = (e) => {
8304
8310
  labelKey: "graph.annotations.baseMenu.removeSticker"
8305
8311
  },
8306
8312
  image: null
8307
- }, L2 = (e) => ed(e.kind) && Ji[e.kind] !== null, I2 = ({ attachment: e, onRequestClose: t }) => {
8313
+ }, I2 = (e) => ed(e.kind) && Ji[e.kind] !== null, E2 = ({ attachment: e, onRequestClose: t }) => {
8308
8314
  const n = E(), { dispatch: a } = le(), { icon: o, labelKey: i } = Ji[e.kind], l = () => {
8309
8315
  a(new $e({ id: e.annotation.id })), t();
8310
8316
  };
@@ -8316,7 +8322,7 @@ var p2 = (e) => {
8316
8322
  children: n(i)
8317
8323
  })]
8318
8324
  });
8319
- }, E2 = "ceeojg0", M2 = "ceeojg1", O2 = "ceeojg2", R2 = ({ label: e, at: t, onRequestClose: n }) => {
8325
+ }, M2 = "ceeojg0", O2 = "ceeojg1", R2 = "ceeojg2", N2 = ({ label: e, at: t, onRequestClose: n }) => {
8320
8326
  const { dispatch: a } = le(), o = (i) => {
8321
8327
  a(new Te({
8322
8328
  kind: "sticker",
@@ -8333,26 +8339,26 @@ var p2 = (e) => {
8333
8339
  label: e,
8334
8340
  icon: /* @__PURE__ */ r(Yi, {}),
8335
8341
  children: /* @__PURE__ */ r("div", {
8336
- className: E2,
8342
+ className: M2,
8337
8343
  children: Object.entries(As).map(([i, l]) => /* @__PURE__ */ r(Ae.Item, {
8338
- className: M2,
8344
+ className: O2,
8339
8345
  "aria-label": i,
8340
8346
  onClick: () => o(i),
8341
8347
  children: /* @__PURE__ */ r("img", {
8342
- className: O2,
8348
+ className: R2,
8343
8349
  src: l.src,
8344
8350
  alt: i
8345
8351
  })
8346
8352
  }, i))
8347
8353
  })
8348
8354
  });
8349
- }, N2 = ({ interaction: e, frameElement: t, panelRect: n }) => {
8355
+ }, D2 = ({ interaction: e, frameElement: t, panelRect: n }) => {
8350
8356
  const a = U(), o = ee((c) => c.menuTrigger);
8351
8357
  if (e.kind !== "menu" || o === null) return null;
8352
8358
  const i = () => {
8353
8359
  a.getState().releaseInteraction("menu");
8354
8360
  }, { center: l, radius: s } = o;
8355
- return /* @__PURE__ */ r(D2, {
8361
+ return /* @__PURE__ */ r(_2, {
8356
8362
  frameElement: t,
8357
8363
  trigger: {
8358
8364
  x: n.x + l.x - s,
@@ -8365,7 +8371,7 @@ var p2 = (e) => {
8365
8371
  observation: e.anchor.observation,
8366
8372
  onClose: i
8367
8373
  });
8368
- }, D2 = ({ frameElement: e, trigger: t, layer: n, at: a, observation: o, onClose: i }) => {
8374
+ }, _2 = ({ frameElement: e, trigger: t, layer: n, at: a, observation: o, onClose: i }) => {
8369
8375
  const l = E(), s = We(), c = R((x) => x.spec.annotations), d = R((x) => x.config.parsingLocale), u = Bi(), { x: h, y: p, width: g, height: m } = t, f = M(() => zi(e, {
8370
8376
  x: h,
8371
8377
  y: p,
@@ -8377,8 +8383,8 @@ var p2 = (e) => {
8377
8383
  p,
8378
8384
  g,
8379
8385
  m
8380
- ]), b = Uc(c, a, M(() => Fc(n, d), [n, d])), C = b !== null && L2(b) ? b : null, P = A2(n, o), k = (x, I) => {
8381
- !x && _2(I.reason) && i();
8386
+ ]), b = Uc(c, a, M(() => Fc(n, d), [n, d])), C = b !== null && I2(b) ? b : null, P = P2(n, o), k = (x, I) => {
8387
+ !x && F2(I.reason) && i();
8382
8388
  };
8383
8389
  return /* @__PURE__ */ r(V.Root, {
8384
8390
  open: u,
@@ -8397,43 +8403,43 @@ var p2 = (e) => {
8397
8403
  className: Ki,
8398
8404
  "data-testid": "observation-menu",
8399
8405
  children: [
8400
- C !== null && /* @__PURE__ */ r(I2, {
8406
+ C !== null && /* @__PURE__ */ r(E2, {
8401
8407
  attachment: C,
8402
8408
  onRequestClose: i
8403
8409
  }),
8404
- /* @__PURE__ */ r(T2, {
8410
+ /* @__PURE__ */ r(A2, {
8405
8411
  label: l("graph.annotations.baseMenu.removeHighlight"),
8406
8412
  highlights: P,
8407
8413
  onRequestClose: i
8408
8414
  }),
8409
- /* @__PURE__ */ r(V.Separator, { className: e2 }),
8415
+ /* @__PURE__ */ r(V.Separator, { className: t2 }),
8410
8416
  C === null && /* @__PURE__ */ v($, { children: [
8411
- /* @__PURE__ */ r(P2, {
8417
+ /* @__PURE__ */ r(L2, {
8412
8418
  label: l("graph.annotations.baseMenu.pinNumber"),
8413
8419
  at: a,
8414
8420
  onRequestClose: i
8415
8421
  }),
8416
- /* @__PURE__ */ r(l2, {
8422
+ /* @__PURE__ */ r(s2, {
8417
8423
  label: l("graph.annotations.baseMenu.annotate"),
8418
8424
  placeholder: l("graph.annotations.textMenu.placeholder"),
8419
8425
  addLabel: l("graph.annotations.textMenu.addButton"),
8420
8426
  at: a,
8421
8427
  onRequestClose: i
8422
8428
  }),
8423
- /* @__PURE__ */ r(R2, {
8429
+ /* @__PURE__ */ r(N2, {
8424
8430
  label: l("graph.annotations.baseMenu.addSticker"),
8425
8431
  at: a,
8426
8432
  onRequestClose: i
8427
8433
  })
8428
8434
  ] }),
8429
- n.highlight !== null && /* @__PURE__ */ r(x2, {
8435
+ n.highlight !== null && /* @__PURE__ */ r(w2, {
8430
8436
  label: l("graph.annotations.baseMenu.highlight"),
8431
8437
  layer: n,
8432
8438
  observation: o,
8433
8439
  highlights: P,
8434
8440
  onRequestClose: i
8435
8441
  }),
8436
- /* @__PURE__ */ r(u2, {
8442
+ /* @__PURE__ */ r(h2, {
8437
8443
  label: l("graph.annotations.baseMenu.differenceArrow"),
8438
8444
  layer: n,
8439
8445
  at: a,
@@ -8444,7 +8450,7 @@ var p2 = (e) => {
8444
8450
  }) })
8445
8451
  })
8446
8452
  });
8447
- }, _2 = (e) => e === "outside-press" || e === "escape-key" || e === "item-press", ur = "l8tsqe0", Qi = ["start", "end"], el = ({ anchor: e, point: t, delta: n }) => {
8453
+ }, F2 = (e) => e === "outside-press" || e === "escape-key" || e === "item-press", ur = "l8tsqe0", Qi = ["start", "end"], el = ({ anchor: e, point: t, delta: n }) => {
8448
8454
  const a = {
8449
8455
  x: oa(t.x, n.x),
8450
8456
  y: oa(1 - t.y, n.y)
@@ -8466,13 +8472,13 @@ var p2 = (e) => {
8466
8472
  ...e[t.endpoint],
8467
8473
  ...t.point
8468
8474
  }
8469
- }), tl = (e, t) => e.x === t.x && e.y === t.y, F2 = (e, t) => {
8475
+ }), tl = (e, t) => e.x === t.x && e.y === t.y, z2 = (e, t) => {
8470
8476
  const n = yt(e, t);
8471
8477
  return {
8472
8478
  x: t.x + n.x,
8473
8479
  y: t.y + n.y
8474
8480
  };
8475
- }, z2 = (e, t, n) => {
8481
+ }, B2 = (e, t, n) => {
8476
8482
  const a = yt(e, n), o = yt(t, n);
8477
8483
  return {
8478
8484
  x: Math.min(a.x, o.x),
@@ -8480,7 +8486,7 @@ var p2 = (e) => {
8480
8486
  width: Math.abs(o.x - a.x),
8481
8487
  height: Math.abs(o.y - a.y)
8482
8488
  };
8483
- }, oa = (e, t) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : Ve(t, Math.min(-e, 0), Math.max(1 - e, 0)), B2 = ({ panelRect: e }) => {
8489
+ }, oa = (e, t) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : Ve(t, Math.min(-e, 0), Math.max(1 - e, 0)), H2 = ({ panelRect: e }) => {
8484
8490
  const t = ee((s) => j(s, "arrow-endpoint-drag")), n = De(e).arrows, a = W();
8485
8491
  if (t === null) return null;
8486
8492
  const o = n.find((s) => s.id === t.annotationId);
@@ -8515,7 +8521,7 @@ var p2 = (e) => {
8515
8521
  if (e.length !== 1) return null;
8516
8522
  const [t] = e;
8517
8523
  return t?.kind === "annotation" ? t.id : null;
8518
- }, H2 = (e) => /* @__PURE__ */ r(L, {
8524
+ }, G2 = (e) => /* @__PURE__ */ r(L, {
8519
8525
  ...e,
8520
8526
  children: /* @__PURE__ */ v("g", {
8521
8527
  stroke: "currentColor",
@@ -8533,7 +8539,7 @@ var p2 = (e) => {
8533
8539
  strokeLinejoin: "round",
8534
8540
  children: [/* @__PURE__ */ r("path", { d: "M5 12h14" }), /* @__PURE__ */ r("path", { d: "m12 5 7 7-7 7" })]
8535
8541
  })
8536
- }), G2 = (e) => /* @__PURE__ */ r(L, {
8542
+ }), V2 = (e) => /* @__PURE__ */ r(L, {
8537
8543
  ...e,
8538
8544
  children: /* @__PURE__ */ v("g", {
8539
8545
  stroke: "currentColor",
@@ -8584,7 +8590,7 @@ var p2 = (e) => {
8584
8590
  /* @__PURE__ */ r("path", { d: "M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2" })
8585
8591
  ]
8586
8592
  })
8587
- }), V2 = "var(--pvjfpx0)", $2 = "var(--pvjfpx1)", W2 = "pvjfpx2", U2 = "pvjfpx3", K2 = "pvjfpx4", q2 = "pvjfpx6 pvjfpx5", j2 = "pvjfpx7 pvjfpx6 pvjfpx5", X2 = "pvjfpx8 pvjfpx5", Ke = 8, Z2 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: a }) => {
8593
+ }), $2 = "var(--pvjfpx0)", W2 = "var(--pvjfpx1)", U2 = "pvjfpx2", K2 = "pvjfpx3", q2 = "pvjfpx4", j2 = "pvjfpx6 pvjfpx5", X2 = "pvjfpx7 pvjfpx6 pvjfpx5", Z2 = "pvjfpx8 pvjfpx5", Ke = 8, Y2 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: a }) => {
8588
8594
  const o = t.y + e.y, i = o + e.height, l = o - 8 - 36, s = i + 8, c = Ve(l >= Ke ? l : s, Ke, a - Ke - 36), d = Ke;
8589
8595
  return {
8590
8596
  top: c,
@@ -8592,15 +8598,15 @@ var p2 = (e) => {
8592
8598
  available: Math.max(0, n - Ke * 2),
8593
8599
  centre: t.x + e.x + e.width / 2 - d
8594
8600
  };
8595
- }, Y2 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: a, label: o, testId: i, children: l }) => {
8596
- const { chartId: s } = H(), c = Z2({
8601
+ }, J2 = ({ anchorBox: e, panelRect: t, frameWidth: n, frameHeight: a, label: o, testId: i, children: l }) => {
8602
+ const { chartId: s } = H(), c = Y2({
8597
8603
  anchorBox: e,
8598
8604
  panelRect: t,
8599
8605
  frameWidth: n,
8600
8606
  frameHeight: a
8601
8607
  });
8602
8608
  return /* @__PURE__ */ r("div", {
8603
- className: W2,
8609
+ className: U2,
8604
8610
  style: {
8605
8611
  top: c.top,
8606
8612
  left: c.left,
@@ -8608,17 +8614,17 @@ var p2 = (e) => {
8608
8614
  },
8609
8615
  children: /* @__PURE__ */ r(J.Root, {
8610
8616
  "aria-label": o,
8611
- className: U2,
8617
+ className: K2,
8612
8618
  "data-testid": i,
8613
8619
  ...Vt(s),
8614
8620
  style: Se({
8615
- [V2]: `${c.centre}px`,
8616
- [$2]: `${c.available}px`
8621
+ [$2]: `${c.centre}px`,
8622
+ [W2]: `${c.available}px`
8617
8623
  }),
8618
8624
  children: l
8619
8625
  })
8620
8626
  });
8621
- }, J2 = ({ label: e, trigger: t, open: n, onOpenChange: a, disabled: o = !1, children: i }) => {
8627
+ }, Q2 = ({ label: e, trigger: t, open: n, onOpenChange: a, disabled: o = !1, children: i }) => {
8622
8628
  const { chartId: l } = H();
8623
8629
  return /* @__PURE__ */ v(V.Root, {
8624
8630
  open: n,
@@ -8627,7 +8633,7 @@ var p2 = (e) => {
8627
8633
  children: [/* @__PURE__ */ v(V.Trigger, {
8628
8634
  render: /* @__PURE__ */ r(J.Button, {}),
8629
8635
  "aria-label": e,
8630
- className: X2,
8636
+ className: Z2,
8631
8637
  disabled: o,
8632
8638
  onMouseDown: (s) => s.preventDefault(),
8633
8639
  children: [t, /* @__PURE__ */ r(nt, { size: "sm" })]
@@ -8636,44 +8642,44 @@ var p2 = (e) => {
8636
8642
  children: i
8637
8643
  })]
8638
8644
  });
8639
- }, Q2 = (e) => {
8645
+ }, e0 = (e) => {
8640
8646
  const { chartId: t } = H();
8641
8647
  return /* @__PURE__ */ r(J.ColorPicker, {
8642
8648
  ...e,
8643
8649
  popupAttributes: Vt(t)
8644
8650
  });
8645
- }, e0 = ({ color: e, opacity: t }) => /* @__PURE__ */ r("span", {
8646
- className: K2,
8651
+ }, t0 = ({ color: e, opacity: t }) => /* @__PURE__ */ r("span", {
8652
+ className: q2,
8647
8653
  style: {
8648
8654
  background: e,
8649
8655
  opacity: t
8650
8656
  }
8651
- }), t0 = ({ label: e, onClick: t, children: n }) => /* @__PURE__ */ r(J.Button, {
8657
+ }), n0 = ({ label: e, onClick: t, children: n }) => /* @__PURE__ */ r(J.Button, {
8652
8658
  "aria-label": e,
8653
- className: q2,
8659
+ className: j2,
8654
8660
  onClick: t,
8655
8661
  children: n
8656
- }), n0 = ({ label: e, pressed: t, onClick: n, children: a }) => /* @__PURE__ */ r(J.Button, {
8662
+ }), r0 = ({ label: e, pressed: t, onClick: n, children: a }) => /* @__PURE__ */ r(J.Button, {
8657
8663
  "aria-label": e,
8658
8664
  "aria-pressed": t,
8659
- className: j2,
8665
+ className: X2,
8660
8666
  onClick: n,
8661
8667
  children: a
8662
8668
  }), _ = {
8663
- Root: Y2,
8664
- Dropdown: J2,
8669
+ Root: J2,
8670
+ Dropdown: Q2,
8665
8671
  MenuItem: J.MenuItem,
8666
- ColorPicker: Q2,
8667
- Swatch: e0,
8668
- IconButton: t0,
8669
- ToggleButton: n0,
8672
+ ColorPicker: e0,
8673
+ Swatch: t0,
8674
+ IconButton: n0,
8675
+ ToggleButton: r0,
8670
8676
  Button: J.Button,
8671
8677
  Separator: J.Separator
8672
- }, r0 = { kind: "chrome-popup" }, Kt = () => {
8678
+ }, a0 = { kind: "chrome-popup" }, Kt = () => {
8673
8679
  const { commands: e } = H(), t = U(), [n, a] = X(null);
8674
8680
  z(() => () => e.commit(), [e]), z(() => {
8675
8681
  const { claimInteraction: i, releaseInteraction: l } = t.getState();
8676
- return n === null ? l("chrome-popup") : i(r0), () => l("chrome-popup");
8682
+ return n === null ? l("chrome-popup") : i(a0), () => l("chrome-popup");
8677
8683
  }, [t, n]);
8678
8684
  const o = () => {
8679
8685
  a(null), e.commit();
@@ -8685,7 +8691,7 @@ var p2 = (e) => {
8685
8691
  }),
8686
8692
  close: o
8687
8693
  };
8688
- }, a0 = (e) => /* @__PURE__ */ r(L, {
8694
+ }, o0 = (e) => /* @__PURE__ */ r(L, {
8689
8695
  ...e,
8690
8696
  children: /* @__PURE__ */ v("g", {
8691
8697
  stroke: "currentColor",
@@ -8697,7 +8703,7 @@ var p2 = (e) => {
8697
8703
  /* @__PURE__ */ r("path", { d: "M16 8 19 5" })
8698
8704
  ]
8699
8705
  })
8700
- }), o0 = (e) => /* @__PURE__ */ r(L, {
8706
+ }), i0 = (e) => /* @__PURE__ */ r(L, {
8701
8707
  ...e,
8702
8708
  children: /* @__PURE__ */ v("g", {
8703
8709
  stroke: "currentColor",
@@ -8711,7 +8717,7 @@ var p2 = (e) => {
8711
8717
  /* @__PURE__ */ r("path", { d: "M19 5h0" })
8712
8718
  ]
8713
8719
  })
8714
- }), i0 = (e) => /* @__PURE__ */ r(L, {
8720
+ }), l0 = (e) => /* @__PURE__ */ r(L, {
8715
8721
  ...e,
8716
8722
  children: /* @__PURE__ */ r("path", {
8717
8723
  d: "M5 19 19 5",
@@ -8719,7 +8725,7 @@ var p2 = (e) => {
8719
8725
  strokeWidth: 2,
8720
8726
  strokeLinecap: "round"
8721
8727
  })
8722
- }), l0 = [
8728
+ }), s0 = [
8723
8729
  {
8724
8730
  value: Jt.thin,
8725
8731
  key: "graph.annotations.arrowToolbar.thickness.thin"
@@ -8744,21 +8750,21 @@ var p2 = (e) => {
8744
8750
  {
8745
8751
  value: "solid",
8746
8752
  key: "graph.annotations.arrowToolbar.lineStyle.solid",
8747
- Icon: i0
8753
+ Icon: l0
8748
8754
  },
8749
8755
  {
8750
8756
  value: "dashed",
8751
8757
  key: "graph.annotations.arrowToolbar.lineStyle.dashed",
8752
- Icon: a0
8758
+ Icon: o0
8753
8759
  },
8754
8760
  {
8755
8761
  value: "dotted",
8756
8762
  key: "graph.annotations.arrowToolbar.lineStyle.dotted",
8757
- Icon: o0
8763
+ Icon: i0
8758
8764
  }
8759
- ], s0 = (e, t) => e.find((n) => n.value === t) ?? e[0];
8760
- var c0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
8761
- const l = E(), { commands: s } = H(), c = R((S) => S.spec.styles.overrides), d = R((S) => de(S.spec)), u = Kt(), h = Xn(W(), e.id), p = s0(la, Re(h.dashArray)), g = h.outline.strokeWidth > 0 || h.outline.shadow !== "none", m = M(() => ({
8765
+ ], c0 = (e, t) => e.find((n) => n.value === t) ?? e[0];
8766
+ var d0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
8767
+ const l = E(), { commands: s } = H(), c = R((S) => S.spec.styles.overrides), d = R((S) => de(S.spec)), u = Kt(), h = Xn(W(), e.id), p = c0(la, Re(h.dashArray)), g = h.outline.strokeWidth > 0 || h.outline.shadow !== "none", m = M(() => ({
8762
8768
  target: "annotation",
8763
8769
  kind: "arrow",
8764
8770
  annotation: e.id
@@ -8826,14 +8832,14 @@ var c0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
8826
8832
  }),
8827
8833
  ...u.bind("thickness"),
8828
8834
  children: /* @__PURE__ */ r(pt, {
8829
- options: l0,
8835
+ options: s0,
8830
8836
  current: h.strokeWidth,
8831
8837
  onPick: w
8832
8838
  })
8833
8839
  }),
8834
8840
  /* @__PURE__ */ r(_.Dropdown, {
8835
8841
  label: l("graph.annotations.arrowToolbar.startArrowhead"),
8836
- trigger: /* @__PURE__ */ r(H2, {
8842
+ trigger: /* @__PURE__ */ r(G2, {
8837
8843
  size: "sm",
8838
8844
  title: ""
8839
8845
  }),
@@ -8874,7 +8880,7 @@ var c0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
8874
8880
  label: l("graph.annotations.arrowToolbar.sticker"),
8875
8881
  pressed: g,
8876
8882
  onClick: D,
8877
- children: /* @__PURE__ */ r(G2, {
8883
+ children: /* @__PURE__ */ r(V2, {
8878
8884
  size: "sm",
8879
8885
  title: ""
8880
8886
  })
@@ -8903,14 +8909,14 @@ var c0 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
8903
8909
  })
8904
8910
  })]
8905
8911
  }, String(i.value))) });
8906
- }, d0 = "_1me29t10", me = (e, t) => t > 0 ? e / t : 0, qt = (e, t, n) => ({
8912
+ }, u0 = "_1me29t10", me = (e, t) => t > 0 ? e / t : 0, qt = (e, t, n) => ({
8907
8913
  x: me(t.x - e.x, n.width),
8908
8914
  y: me(t.y - e.y, n.height)
8909
- }), u0 = (e) => e.x !== 0 || e.y !== 0, al = (e, t) => ({
8915
+ }), h0 = (e) => e.x !== 0 || e.y !== 0, al = (e, t) => ({
8910
8916
  x: e.x * t.width,
8911
8917
  y: e.y * t.height
8912
8918
  });
8913
- var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
8919
+ var p0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
8914
8920
  constructor(e) {
8915
8921
  this.params = e, this.listeners = new AbortController(), this.pendingEvent = null, this.scheduledFrame = null, this.hasMoved = !1, this.hasPublished = !1, this.handleMove = (t) => {
8916
8922
  t.pointerId === this.params.pointerId && (this.pendingEvent = t, this.hasMoved = !0, this.scheduledFrame === null && (this.scheduledFrame = requestAnimationFrame(this.runFrame)));
@@ -8946,7 +8952,7 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
8946
8952
  }
8947
8953
  }
8948
8954
  isDragConfirmed(e, t) {
8949
- return h0(e, t);
8955
+ return p0(e, t);
8950
8956
  }
8951
8957
  settle(e) {
8952
8958
  this.pendingEvent = null;
@@ -8961,7 +8967,7 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
8961
8967
  if (a === void 0) return null;
8962
8968
  const o = a[n];
8963
8969
  return o.anchorType === "panel" ? o : null;
8964
- }, ol = (e, t) => e === "start" ? { start: t } : { end: t }, p0 = class extends it {
8970
+ }, ol = (e, t) => e === "start" ? { start: t } : { end: t }, m0 = class extends it {
8965
8971
  constructor(...e) {
8966
8972
  super(...e), this.kind = "arrow-endpoint-drag";
8967
8973
  }
@@ -8990,7 +8996,7 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
8990
8996
  patch: ol(n, e)
8991
8997
  }));
8992
8998
  }
8993
- }, m0 = ({ annotationId: e, arrow: t, panelRect: n }) => {
8999
+ }, g0 = ({ annotationId: e, arrow: t, panelRect: n }) => {
8994
9000
  const { commands: a } = H(), o = U(), i = ne({
8995
9001
  annotations: R((s) => s.spec.annotations),
8996
9002
  arrow: t,
@@ -9003,7 +9009,7 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9003
9009
  } catch {
9004
9010
  return;
9005
9011
  }
9006
- c.currentTarget.focus({ preventScroll: !0 }), c.preventDefault(), l.current = new p0({
9012
+ c.currentTarget.focus({ preventScroll: !0 }), c.preventDefault(), l.current = new m0({
9007
9013
  handle: c.currentTarget,
9008
9014
  pointerId: c.pointerId,
9009
9015
  annotationId: e,
@@ -9026,7 +9032,7 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9026
9032
  o,
9027
9033
  a
9028
9034
  ]);
9029
- }, g0 = [" ", "Enter"], sa = 4, v0 = ({ annotationId: e, arrow: t, panelRect: n }) => {
9035
+ }, v0 = [" ", "Enter"], sa = 4, f0 = ({ annotationId: e, arrow: t, panelRect: n }) => {
9030
9036
  const { commands: a } = H(), o = U(), i = R((c) => c.spec.annotations), l = ne(i), s = ne(a.dispatch);
9031
9037
  return z(() => () => {
9032
9038
  for (const c of Qi) ca({
@@ -9044,7 +9050,7 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9044
9050
  ]), re((c) => ({ onKeyDown: (d) => {
9045
9051
  if (d.altKey || d.ctrlKey || d.metaKey || d.shiftKey) return;
9046
9052
  const u = o.getState(), h = Gn(j(u, "arrow-endpoint-drag"), e, c);
9047
- if (g0.includes(d.key)) {
9053
+ if (v0.includes(d.key)) {
9048
9054
  if (d.preventDefault(), d.repeat) return;
9049
9055
  if (h !== null) {
9050
9056
  ca({
@@ -9068,7 +9074,7 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9068
9074
  return;
9069
9075
  }
9070
9076
  if (h === null) return;
9071
- const p = f0(d.key, n);
9077
+ const p = b0(d.key, n);
9072
9078
  p !== null && (d.preventDefault(), u.claimInteraction({
9073
9079
  kind: "arrow-endpoint-drag",
9074
9080
  annotationId: e,
@@ -9097,7 +9103,7 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9097
9103
  id: t,
9098
9104
  patch: ol(n, l.anchor)
9099
9105
  }));
9100
- }, f0 = (e, t) => {
9106
+ }, b0 = (e, t) => {
9101
9107
  const n = me(sa, t.width), a = me(sa, t.height);
9102
9108
  switch (e) {
9103
9109
  case "ArrowLeft":
@@ -9123,11 +9129,11 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9123
9129
  default:
9124
9130
  return null;
9125
9131
  }
9126
- }, b0 = (e) => {
9127
- const t = ot(), n = C0(t), a = x0(e.panelRect, t), o = w0(t);
9132
+ }, y0 = (e) => {
9133
+ const t = ot(), n = x0(t), a = w0(e.panelRect, t), o = k0(t);
9128
9134
  if (n === null || a === null) return null;
9129
9135
  const i = o.dragged === null ? a : hr(a, o.dragged);
9130
- return /* @__PURE__ */ r(y0, {
9136
+ return /* @__PURE__ */ r(S0, {
9131
9137
  arrow: n,
9132
9138
  committed: a,
9133
9139
  painted: i,
@@ -9135,12 +9141,12 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9135
9141
  moving: o.moving,
9136
9142
  ...e
9137
9143
  });
9138
- }, y0 = ({ arrow: e, committed: t, painted: n, settled: a, moving: o, panelRect: i, frameRect: l, frameElement: s }) => {
9139
- const c = E(), d = m0({
9144
+ }, S0 = ({ arrow: e, committed: t, painted: n, settled: a, moving: o, panelRect: i, frameRect: l, frameElement: s }) => {
9145
+ const c = E(), d = g0({
9140
9146
  annotationId: e.id,
9141
9147
  arrow: t,
9142
9148
  panelRect: i
9143
- }), u = v0({
9149
+ }), u = f0({
9144
9150
  annotationId: e.id,
9145
9151
  arrow: t,
9146
9152
  panelRect: i
@@ -9148,24 +9154,24 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9148
9154
  return /* @__PURE__ */ v("div", {
9149
9155
  "data-testid": "arrow-selection",
9150
9156
  "data-annotation-id": e.id,
9151
- children: [a && /* @__PURE__ */ r(c0, {
9157
+ children: [a && /* @__PURE__ */ r(d0, {
9152
9158
  arrow: e,
9153
- arrowBox: z2(t.start, t.end, i),
9159
+ arrowBox: B2(t.start, t.end, i),
9154
9160
  panelRect: i,
9155
9161
  frameWidth: l.width,
9156
9162
  frameHeight: l.height,
9157
9163
  frameElement: s
9158
- }), !o && Qi.filter((h) => e[h].anchorType === "panel").map((h) => /* @__PURE__ */ r(S0, {
9164
+ }), !o && Qi.filter((h) => e[h].anchorType === "panel").map((h) => /* @__PURE__ */ r(C0, {
9159
9165
  endpoint: h,
9160
- point: F2(n[h], i),
9166
+ point: z2(n[h], i),
9161
9167
  label: c(`graph.annotations.arrowToolbar.moveEndpoint.${h}`),
9162
9168
  dragHandlers: d(h),
9163
9169
  keyboardHandlers: u(h)
9164
9170
  }, h))]
9165
9171
  });
9166
- }, S0 = ({ endpoint: e, point: t, label: n, dragHandlers: a, keyboardHandlers: o }) => /* @__PURE__ */ r("div", {
9172
+ }, C0 = ({ endpoint: e, point: t, label: n, dragHandlers: a, keyboardHandlers: o }) => /* @__PURE__ */ r("div", {
9167
9173
  "aria-label": n,
9168
- className: d0,
9174
+ className: u0,
9169
9175
  "data-testid": "arrow-endpoint-handle",
9170
9176
  "data-endpoint": e,
9171
9177
  role: "button",
@@ -9176,13 +9182,13 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9176
9182
  tabIndex: 0,
9177
9183
  ...a,
9178
9184
  ...o
9179
- }), C0 = (e) => {
9185
+ }), x0 = (e) => {
9180
9186
  const t = R((n) => n.spec.annotations.arrows);
9181
9187
  return e === null ? null : t.find((n) => n.id === e) ?? null;
9182
- }, x0 = (e, t) => {
9188
+ }, w0 = (e, t) => {
9183
9189
  const n = De(e).arrows;
9184
9190
  return t === null ? null : n.find((a) => a.id === t) ?? null;
9185
- }, w0 = (e) => ee(xe((t) => {
9191
+ }, k0 = (e) => ee(xe((t) => {
9186
9192
  if (e === null) return {
9187
9193
  dragged: null,
9188
9194
  moving: !1
@@ -9192,7 +9198,7 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9192
9198
  dragged: n?.annotationId === e ? n : null,
9193
9199
  moving: Nt(j(t, "move-drag"), e) !== null
9194
9200
  };
9195
- })), k0 = (e) => /* @__PURE__ */ r(L, {
9201
+ })), T0 = (e) => /* @__PURE__ */ r(L, {
9196
9202
  ...e,
9197
9203
  children: /* @__PURE__ */ v("g", {
9198
9204
  stroke: "currentColor",
@@ -9201,22 +9207,22 @@ var h0 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, it = class {
9201
9207
  strokeLinejoin: "round",
9202
9208
  children: [/* @__PURE__ */ r("path", { d: "M4 9h16m-4-4 4 4" }), /* @__PURE__ */ r("path", { d: "M20 15H4m4 4-4-4" })]
9203
9209
  })
9204
- }), T0 = "q7gcrz0", A0 = "q7gcrz1", P0 = "q7gcrz2";
9205
- var L0 = [
9210
+ }), A0 = "q7gcrz0", P0 = "q7gcrz1", L0 = "q7gcrz2";
9211
+ var I0 = [
9206
9212
  "absolute-difference",
9207
9213
  "relative-difference",
9208
9214
  "proportion"
9209
- ], da = ["absolute-difference", "relative-difference"], I0 = ["relative-difference", "proportion"], E0 = {
9215
+ ], da = ["absolute-difference", "relative-difference"], E0 = ["relative-difference", "proportion"], M0 = {
9210
9216
  "absolute-difference": "graph.annotations.differenceArrowToolbar.labelKind.absoluteDifference",
9211
9217
  "relative-difference": "graph.annotations.differenceArrowToolbar.labelKind.relativeDifference",
9212
9218
  proportion: "graph.annotations.differenceArrowToolbar.labelKind.proportion"
9213
- }, M0 = (e) => {
9219
+ }, O0 = (e) => {
9214
9220
  const { formattingLocale: t } = H(), n = R((o) => o.config.parsingLocale), a = t ?? n;
9215
9221
  return M(() => {
9216
9222
  const o = Ic(e.start, e.end);
9217
- return L0.filter((i) => o || !da.includes(i) || i === e.label).map((i) => ({
9223
+ return I0.filter((i) => o || !da.includes(i) || i === e.label).map((i) => ({
9218
9224
  kind: i,
9219
- key: E0[i],
9225
+ key: M0[i],
9220
9226
  preview: qc({
9221
9227
  locale: a,
9222
9228
  kind: i,
@@ -9225,7 +9231,7 @@ var L0 = [
9225
9231
  valueFormat: e.start.valueFormat
9226
9232
  }),
9227
9233
  pickable: o || !da.includes(i),
9228
- suspect: I0.includes(i) && e.start.measurementValue === 0
9234
+ suspect: E0.includes(i) && e.start.measurementValue === 0
9229
9235
  }));
9230
9236
  }, [e, a]);
9231
9237
  }, ua = [
@@ -9241,8 +9247,8 @@ var L0 = [
9241
9247
  id: "large",
9242
9248
  key: "graph.annotations.differenceArrowToolbar.size.large"
9243
9249
  }
9244
- ], O0 = ({ arrow: e, color: t, labelBox: n, panelRect: a, frameWidth: o, frameHeight: i, frameElement: l }) => {
9245
- const s = E(), { commands: c } = H(), d = R((y) => y.spec.styles.overrides), u = R((y) => de(y.spec)), h = Kt(), p = M0(e), g = yd(W(), e.id), m = M(() => ({
9250
+ ], R0 = ({ arrow: e, color: t, labelBox: n, panelRect: a, frameWidth: o, frameHeight: i, frameElement: l }) => {
9251
+ const s = E(), { commands: c } = H(), d = R((y) => y.spec.styles.overrides), u = R((y) => de(y.spec)), h = Kt(), p = O0(e), g = yd(W(), e.id), m = M(() => ({
9246
9252
  target: "annotation",
9247
9253
  kind: "differenceArrow",
9248
9254
  annotation: e.id
@@ -9292,7 +9298,7 @@ var L0 = [
9292
9298
  children: [
9293
9299
  /* @__PURE__ */ r(_.Dropdown, {
9294
9300
  label: s("graph.annotations.differenceArrowToolbar.labelKind.ariaLabel"),
9295
- trigger: /* @__PURE__ */ r(R0, { option: b }),
9301
+ trigger: /* @__PURE__ */ r(N0, { option: b }),
9296
9302
  disabled: !C,
9297
9303
  ...h.bind("labelKind"),
9298
9304
  children: p.map((y) => /* @__PURE__ */ v(_.MenuItem, {
@@ -9308,7 +9314,7 @@ var L0 = [
9308
9314
  children: "⚠"
9309
9315
  }),
9310
9316
  /* @__PURE__ */ r("span", {
9311
- className: P0,
9317
+ className: L0,
9312
9318
  children: y.preview
9313
9319
  })
9314
9320
  ]
@@ -9336,7 +9342,7 @@ var L0 = [
9336
9342
  /* @__PURE__ */ r(_.IconButton, {
9337
9343
  label: s("graph.annotations.differenceArrowToolbar.swap"),
9338
9344
  onClick: te,
9339
- children: /* @__PURE__ */ r(k0, {
9345
+ children: /* @__PURE__ */ r(T0, {
9340
9346
  size: "sm",
9341
9347
  title: ""
9342
9348
  })
@@ -9351,22 +9357,22 @@ var L0 = [
9351
9357
  })
9352
9358
  ]
9353
9359
  });
9354
- }, R0 = ({ option: e }) => {
9360
+ }, N0 = ({ option: e }) => {
9355
9361
  const t = E();
9356
9362
  return e === void 0 ? null : /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r("span", {
9357
- className: A0,
9363
+ className: P0,
9358
9364
  children: t(e.key)
9359
9365
  }), /* @__PURE__ */ v("span", {
9360
- className: T0,
9366
+ className: A0,
9361
9367
  children: [
9362
9368
  "(",
9363
9369
  e.preview,
9364
9370
  ")"
9365
9371
  ]
9366
9372
  })] });
9367
- }, N0 = "var(--ydgo3h0)";
9368
- var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, panelOrigin: t, panelRect: n, engine: a, layers: o, coordSystem: i, resolver: l, fixedAnchor: s, align: c }) => {
9369
- const d = B0({
9373
+ }, D0 = "var(--ydgo3h0)";
9374
+ var _0 = "ydgo3h1", F0 = "ydgo3h2", z0 = "ydgo3h3", B0 = ({ clientPoint: e, panelOrigin: t, panelRect: n, engine: a, layers: o, coordSystem: i, resolver: l, fixedAnchor: s, align: c }) => {
9375
+ const d = H0({
9370
9376
  x: e.x - t.x,
9371
9377
  y: e.y - t.y
9372
9378
  }, n), { primary: u } = a.query(Gt(d, n));
@@ -9382,7 +9388,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9382
9388
  align: c
9383
9389
  });
9384
9390
  return p === null || io(p.anchor, s) ? null : p;
9385
- }, B0 = (e, t) => ({
9391
+ }, H0 = (e, t) => ({
9386
9392
  x: Math.max(0, Math.min(e.x, t.width)),
9387
9393
  y: Math.max(0, Math.min(e.y, t.height))
9388
9394
  }), il = (e) => e === "start" ? "end" : "start", ll = ({ dispatch: e, arrow: t, endpoint: n, anchor: a }) => {
@@ -9391,7 +9397,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9391
9397
  id: t.id,
9392
9398
  patch: { [n]: a }
9393
9399
  }));
9394
- }, H0 = class extends it {
9400
+ }, G0 = class extends it {
9395
9401
  constructor(...e) {
9396
9402
  super(...e), this.kind = "difference-arrow-endpoint-drag";
9397
9403
  }
@@ -9403,7 +9409,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9403
9409
  return _a(j(e, "difference-arrow-endpoint-drag"), n().arrow.id, t);
9404
9410
  }
9405
9411
  resolvePreview(e) {
9406
- const { endpoint: t, readInputs: n, engine: a, anchorResolver: o } = this.params, { arrow: i, panelOrigin: l, panelRect: s, layers: c, coordSystem: d } = n(), u = z0({
9412
+ const { endpoint: t, readInputs: n, engine: a, anchorResolver: o } = this.params, { arrow: i, panelOrigin: l, panelRect: s, layers: c, coordSystem: d } = n(), u = B0({
9407
9413
  clientPoint: e,
9408
9414
  panelOrigin: l,
9409
9415
  panelRect: s,
@@ -9430,7 +9436,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9430
9436
  anchor: e.anchor
9431
9437
  });
9432
9438
  }
9433
- }, G0 = ({ arrow: e, panelOrigin: t, panelRect: n }) => {
9439
+ }, V0 = ({ arrow: e, panelOrigin: t, panelRect: n }) => {
9434
9440
  const { commands: a, anchorResolver: o } = H(), { engine: i } = et(), l = U(), s = ne({
9435
9441
  arrow: e,
9436
9442
  panelOrigin: t,
@@ -9447,7 +9453,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9447
9453
  } catch {
9448
9454
  return;
9449
9455
  }
9450
- u.currentTarget.focus({ preventScroll: !0 }), u.preventDefault(), c.current = new H0({
9456
+ u.currentTarget.focus({ preventScroll: !0 }), u.preventDefault(), c.current = new G0({
9451
9457
  handle: u.currentTarget,
9452
9458
  pointerId: u.pointerId,
9453
9459
  press: {
@@ -9472,7 +9478,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9472
9478
  o,
9473
9479
  a
9474
9480
  ]);
9475
- }, V0 = [" ", "Enter"], $0 = ({ arrow: e }) => {
9481
+ }, $0 = [" ", "Enter"], W0 = ({ arrow: e }) => {
9476
9482
  const { commands: t, anchorResolver: n } = H(), a = U(), { layers: o, coordSystem: i, mainAxis: l } = R(xe((c) => ({
9477
9483
  layers: c.layers,
9478
9484
  coordSystem: c.coordSystem,
@@ -9484,7 +9490,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9484
9490
  }, [a, s]), re((c) => ({ onKeyDown: (d) => {
9485
9491
  if (d.altKey || d.ctrlKey || d.metaKey || d.shiftKey) return;
9486
9492
  const u = a.getState(), h = _a(j(u, "difference-arrow-endpoint-drag"), e.id, c);
9487
- if (V0.includes(d.key)) {
9493
+ if ($0.includes(d.key)) {
9488
9494
  if (d.preventDefault(), d.repeat) return;
9489
9495
  if (h === null) return u.claimInteraction({
9490
9496
  kind: "difference-arrow-endpoint-drag",
@@ -9501,10 +9507,10 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9501
9507
  return;
9502
9508
  }
9503
9509
  if (h === null) return;
9504
- const p = W0(d.key, l);
9510
+ const p = U0(d.key, l);
9505
9511
  if (p === null) return;
9506
9512
  d.preventDefault();
9507
- const g = U0({
9513
+ const g = K0({
9508
9514
  arrow: e,
9509
9515
  endpoint: c,
9510
9516
  from: h.point.anchor,
@@ -9528,13 +9534,13 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9528
9534
  i,
9529
9535
  l
9530
9536
  ]);
9531
- }, W0 = (e, t) => {
9537
+ }, U0 = (e, t) => {
9532
9538
  const n = e === "ArrowUp" || e === "ArrowDown";
9533
9539
  return !n && !(e === "ArrowLeft" || e === "ArrowRight") ? null : {
9534
9540
  axis: t === "x" === n ? "cross" : "main",
9535
9541
  step: e === "ArrowDown" || e === "ArrowRight" ? 1 : -1
9536
9542
  };
9537
- }, U0 = ({ arrow: e, endpoint: t, from: n, move: a, layers: o, coordSystem: i, resolver: l }) => {
9543
+ }, K0 = ({ arrow: e, endpoint: t, from: n, move: a, layers: o, coordSystem: i, resolver: l }) => {
9538
9544
  const s = o.find((u) => u.id === n.layerId);
9539
9545
  if (s === void 0) return null;
9540
9546
  const c = l.createLayerMeasurement(s);
@@ -9556,15 +9562,15 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9556
9562
  measurement: c
9557
9563
  })
9558
9564
  })?.point ?? null;
9559
- }, K0 = (e) => {
9565
+ }, q0 = (e) => {
9560
9566
  const t = ot();
9561
- return t === null ? null : /* @__PURE__ */ r(q0, {
9567
+ return t === null ? null : /* @__PURE__ */ r(j0, {
9562
9568
  annotationId: t,
9563
9569
  ...e
9564
9570
  });
9565
- }, q0 = ({ annotationId: e, ...t }) => {
9571
+ }, j0 = ({ annotationId: e, ...t }) => {
9566
9572
  const n = us(), a = M(() => n.find((o) => o.id === e), [n, e]);
9567
- return a === void 0 ? null : /* @__PURE__ */ r(j0, {
9573
+ return a === void 0 ? null : /* @__PURE__ */ r(X0, {
9568
9574
  committedArrow: a.committedArrow,
9569
9575
  color: a.color,
9570
9576
  labelCornerRadius: a.style.label.cornerRadius,
@@ -9575,17 +9581,17 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9575
9581
  dragging: a.dragging,
9576
9582
  ...t
9577
9583
  });
9578
- }, j0 = ({ committedArrow: e, color: t, labelCornerRadius: n, committedLabelBox: a, labelBox: o, start: i, end: l, panelRect: s, panelOrigin: c, frameRect: d, frameElement: u, dragging: h }) => {
9579
- const p = G0({
9584
+ }, X0 = ({ committedArrow: e, color: t, labelCornerRadius: n, committedLabelBox: a, labelBox: o, start: i, end: l, panelRect: s, panelOrigin: c, frameRect: d, frameElement: u, dragging: h }) => {
9585
+ const p = V0({
9580
9586
  arrow: e,
9581
9587
  panelOrigin: c,
9582
9588
  panelRect: s
9583
- }), g = $0({ arrow: e }), m = W().editOutline.selected().resolve().stroke;
9589
+ }), g = W0({ arrow: e }), m = W().editOutline.selected().resolve().stroke;
9584
9590
  return /* @__PURE__ */ v("div", {
9585
9591
  "data-testid": "difference-arrow-selection",
9586
- style: Se({ [N0]: m }),
9592
+ style: Se({ [D0]: m }),
9587
9593
  children: [
9588
- !h && /* @__PURE__ */ r(O0, {
9594
+ !h && /* @__PURE__ */ r(R0, {
9589
9595
  arrow: e,
9590
9596
  color: t,
9591
9597
  labelBox: a,
@@ -9596,7 +9602,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9596
9602
  }),
9597
9603
  /* @__PURE__ */ r("div", {
9598
9604
  "aria-hidden": "true",
9599
- className: F0,
9605
+ className: z0,
9600
9606
  "data-testid": "difference-arrow-selection-label",
9601
9607
  style: {
9602
9608
  left: s.x + o.x - 2,
@@ -9623,7 +9629,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9623
9629
  ]
9624
9630
  });
9625
9631
  }, ha = ({ endpoint: e, point: t, panelRect: n, dragHandlers: a, keyboardHandlers: o }) => /* @__PURE__ */ r("div", {
9626
- className: D0,
9632
+ className: _0,
9627
9633
  "data-testid": "difference-arrow-selection-handle",
9628
9634
  "data-endpoint": e,
9629
9635
  role: "button",
@@ -9636,7 +9642,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9636
9642
  ...o,
9637
9643
  children: /* @__PURE__ */ r("span", {
9638
9644
  "aria-hidden": "true",
9639
- className: _0
9645
+ className: F0
9640
9646
  })
9641
9647
  }), En = ({ start: e, extent: t, moveStartEdge: n, delta: a, minExtent: o }) => {
9642
9648
  if (!Number.isFinite(a)) return {
@@ -9656,7 +9662,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9656
9662
  start: e,
9657
9663
  extent: Ve(i + a, s, c) - e
9658
9664
  };
9659
- }, X0 = [
9665
+ }, Z0 = [
9660
9666
  "top-left",
9661
9667
  "top-right",
9662
9668
  "bottom-right",
@@ -9665,7 +9671,7 @@ var D0 = "ydgo3h1", _0 = "ydgo3h2", F0 = "ydgo3h3", z0 = ({ clientPoint: e, pane
9665
9671
  var sl = ({ width: e, height: t }) => ({
9666
9672
  x: me(16, e),
9667
9673
  y: me(16, t)
9668
- }), Z0 = (e, t) => ({
9674
+ }), Y0 = (e, t) => ({
9669
9675
  x: ul(t) ? e.x : e.x + e.width,
9670
9676
  y: hl(t) ? e.y : e.y + e.height
9671
9677
  }), pr = (e) => ({
@@ -9697,14 +9703,14 @@ var sl = ({ width: e, height: t }) => ({
9697
9703
  }, dl = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, ul = (e) => e === "top-left" || e === "bottom-left", hl = (e) => e === "top-left" || e === "top-right", pl = (e, t, n, a) => {
9698
9704
  const o = e.textAnnotations.find((i) => i.id === t);
9699
9705
  return o === void 0 ? null : Bs(_s(o, n), a);
9700
- }, Y0 = "var(--_1ee8fau0)";
9701
- var J0 = {
9706
+ }, J0 = "var(--_1ee8fau0)";
9707
+ var Q0 = {
9702
9708
  hovered: "_1ee8fau2 _1ee8fau1",
9703
9709
  selected: "_1ee8fau3 _1ee8fau1"
9704
- }, Q0 = {
9710
+ }, ev = {
9705
9711
  hovered: "_1ee8fau5 _1ee8fau4",
9706
9712
  selected: "_1ee8fau6 _1ee8fau4"
9707
- }, ev = ({ panelRect: e }) => {
9713
+ }, tv = ({ panelRect: e }) => {
9708
9714
  const t = De(e), n = Ba(), a = W(), o = ot(), i = ee((f) => j(f, "move-drag")), l = ee((f) => j(f, "shape-resize-drag")), s = ee((f) => j(f, "arrow-endpoint-drag")), c = ee((f) => j(f, "text-resize-drag")), d = ee(Ms), u = M(() => ({
9709
9715
  panel: {
9710
9716
  width: e.width,
@@ -9754,7 +9760,7 @@ var J0 = {
9754
9760
  geometry: a
9755
9761
  };
9756
9762
  }, ma = ({ annotationId: e, geometry: t, state: n, origin: a }) => {
9757
- const o = W().editOutline.selected().resolve().stroke, i = Se({ [Y0]: o });
9763
+ const o = W().editOutline.selected().resolve().stroke, i = Se({ [J0]: o });
9758
9764
  return t.shape === "segment" ? /* @__PURE__ */ v("div", {
9759
9765
  "aria-hidden": "true",
9760
9766
  "data-testid": "annotation-chrome",
@@ -9772,7 +9778,7 @@ var J0 = {
9772
9778
  })]
9773
9779
  }) : /* @__PURE__ */ r("div", {
9774
9780
  "aria-hidden": "true",
9775
- className: J0[n],
9781
+ className: Q0[n],
9776
9782
  "data-testid": "annotation-chrome",
9777
9783
  "data-annotation-id": e,
9778
9784
  "data-state": n,
@@ -9785,12 +9791,12 @@ var J0 = {
9785
9791
  }
9786
9792
  });
9787
9793
  }, ga = ({ point: e, state: t, origin: n }) => /* @__PURE__ */ r("span", {
9788
- className: Q0[t],
9794
+ className: ev[t],
9789
9795
  style: {
9790
9796
  left: n.x + e.x,
9791
9797
  top: n.y + e.y
9792
9798
  }
9793
- }), tv = ({ panelRect: e }) => {
9799
+ }), nv = ({ panelRect: e }) => {
9794
9800
  const t = ee((o) => j(o, "move-drag")), n = De(e);
9795
9801
  if (t === null) return null;
9796
9802
  const a = al(t.translation, e);
@@ -9805,9 +9811,9 @@ var J0 = {
9805
9811
  },
9806
9812
  "data-testid": "annotation-preview",
9807
9813
  "data-annotation-id": t.annotationId,
9808
- children: av(n, t.annotationId, e)
9814
+ children: ov(n, t.annotationId, e)
9809
9815
  });
9810
- }, nv = ({ annotation: e, panel: t }) => {
9816
+ }, rv = ({ annotation: e, panel: t }) => {
9811
9817
  const n = Os(e.id);
9812
9818
  return /* @__PURE__ */ r(ys, {
9813
9819
  annotation: e,
@@ -9818,30 +9824,30 @@ var J0 = {
9818
9824
  }, mt = (e, t, n) => {
9819
9825
  const a = e.find((o) => o.id === t);
9820
9826
  return a === void 0 ? null : n(a);
9821
- }, rv = {
9822
- text: (e, t, n) => mt(e.textAnnotations, t, (a) => /* @__PURE__ */ r(nv, {
9827
+ }, av = {
9828
+ text: (e, t, n) => mt(e.textAnnotations, t, (a) => /* @__PURE__ */ r(rv, {
9823
9829
  annotation: a,
9824
9830
  panel: n
9825
9831
  })),
9826
- shape: (e, t, n) => mt(e.shapes, t, (a) => /* @__PURE__ */ r(iv, {
9832
+ shape: (e, t, n) => mt(e.shapes, t, (a) => /* @__PURE__ */ r(lv, {
9827
9833
  shape: a,
9828
9834
  panelSize: n
9829
9835
  })),
9830
- image: (e, t, n) => mt(e.images, t, (a) => /* @__PURE__ */ r(lv, {
9836
+ image: (e, t, n) => mt(e.images, t, (a) => /* @__PURE__ */ r(sv, {
9831
9837
  image: a,
9832
9838
  panelSize: n
9833
9839
  })),
9834
- arrow: (e, t, n) => mt(e.arrows, t, (a) => /* @__PURE__ */ r(ov, {
9840
+ arrow: (e, t, n) => mt(e.arrows, t, (a) => /* @__PURE__ */ r(iv, {
9835
9841
  arrow: a,
9836
9842
  panelSize: n
9837
9843
  }))
9838
- }, av = (e, t, n) => {
9839
- for (const a of Object.values(rv)) {
9844
+ }, ov = (e, t, n) => {
9845
+ for (const a of Object.values(av)) {
9840
9846
  const o = a(e, t, n);
9841
9847
  if (o !== null) return o;
9842
9848
  }
9843
9849
  return null;
9844
- }, ov = ({ arrow: e, panelSize: t }) => {
9850
+ }, iv = ({ arrow: e, panelSize: t }) => {
9845
9851
  const n = Xn(W(), e.id), a = so({
9846
9852
  arrow: e,
9847
9853
  style: n,
@@ -9853,15 +9859,15 @@ var J0 = {
9853
9859
  style: n,
9854
9860
  addressable: !1
9855
9861
  });
9856
- }, iv = ({ shape: e, panelSize: t }) => /* @__PURE__ */ r(Ha, {
9862
+ }, lv = ({ shape: e, panelSize: t }) => /* @__PURE__ */ r(Ha, {
9857
9863
  shape: e,
9858
9864
  style: W().annotation.shape(e.id).resolve(),
9859
9865
  panel: t
9860
- }), lv = ({ image: e, panelSize: t }) => /* @__PURE__ */ r(Ls, {
9866
+ }), sv = ({ image: e, panelSize: t }) => /* @__PURE__ */ r(Ls, {
9861
9867
  image: e,
9862
9868
  panel: t,
9863
9869
  style: W().annotation.image(e.id).resolve()
9864
- }), sv = ({ panelRect: e }) => {
9870
+ }), cv = ({ panelRect: e }) => {
9865
9871
  const t = ee((i) => j(i, "shape-resize-drag")), n = De(e).shapes, a = W();
9866
9872
  if (t === null) return null;
9867
9873
  const o = n.find((i) => i.id === t.annotationId);
@@ -9885,10 +9891,10 @@ var J0 = {
9885
9891
  panel: e
9886
9892
  })
9887
9893
  });
9888
- }, cv = "var(--o49ib40)", dv = {
9894
+ }, dv = "var(--o49ib40)", uv = {
9889
9895
  sm: "o49ib41",
9890
9896
  md: "o49ib42"
9891
- }, uv = {
9897
+ }, hv = {
9892
9898
  horizontal: "o49ib43",
9893
9899
  diagonalDown: "o49ib44",
9894
9900
  diagonalUp: "o49ib45"
@@ -9896,12 +9902,12 @@ var J0 = {
9896
9902
  const s = W().editOutline.selected().resolve().stroke;
9897
9903
  return /* @__PURE__ */ r("div", {
9898
9904
  "aria-label": t,
9899
- className: uv[n],
9905
+ className: hv[n],
9900
9906
  role: "button",
9901
9907
  style: {
9902
9908
  left: e.x,
9903
9909
  top: e.y,
9904
- ...Se({ [cv]: s })
9910
+ ...Se({ [dv]: s })
9905
9911
  },
9906
9912
  tabIndex: 0,
9907
9913
  ...o,
@@ -9909,7 +9915,7 @@ var J0 = {
9909
9915
  ...l,
9910
9916
  children: /* @__PURE__ */ r("span", {
9911
9917
  "aria-hidden": "true",
9912
- className: dv[a]
9918
+ className: uv[a]
9913
9919
  })
9914
9920
  });
9915
9921
  }, Mn = [
@@ -9929,8 +9935,8 @@ var J0 = {
9929
9935
  width: 16,
9930
9936
  key: "graph.annotations.shapeToolbar.border.thick"
9931
9937
  }
9932
- ], hv = (e) => [...Mn].reverse().find((t) => t.width <= e) ?? Mn[0], pv = ({ shape: e, shapeBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
9933
- const l = E(), { commands: s } = H(), c = R((k) => k.spec.styles.overrides), d = R((k) => de(k.spec)), u = Kt(), h = W().annotation.shape(e.id).resolve(), p = hv(h.strokeWidth), g = M(() => ({
9938
+ ], pv = (e) => [...Mn].reverse().find((t) => t.width <= e) ?? Mn[0], mv = ({ shape: e, shapeBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
9939
+ const l = E(), { commands: s } = H(), c = R((k) => k.spec.styles.overrides), d = R((k) => de(k.spec)), u = Kt(), h = W().annotation.shape(e.id).resolve(), p = pv(h.strokeWidth), g = M(() => ({
9934
9940
  target: "annotation",
9935
9941
  kind: "shape",
9936
9942
  annotation: e.id
@@ -10021,7 +10027,7 @@ var J0 = {
10021
10027
  }, Lt = (e, t) => {
10022
10028
  const n = e.shapes.find((a) => a.id === t);
10023
10029
  return n === void 0 || n.region.anchorType !== "panel" ? null : n.region;
10024
- }, mv = class extends it {
10030
+ }, gv = class extends it {
10025
10031
  constructor(...e) {
10026
10032
  super(...e), this.kind = "shape-resize-drag";
10027
10033
  }
@@ -10049,12 +10055,12 @@ var J0 = {
10049
10055
  patch: { region: e }
10050
10056
  }));
10051
10057
  }
10052
- }, gv = ({ annotationId: e, panelRect: t }) => {
10058
+ }, vv = ({ annotationId: e, panelRect: t }) => {
10053
10059
  const { commands: n } = H(), a = U(), o = ne({
10054
10060
  annotations: R((i) => i.spec.annotations),
10055
10061
  panelRect: t
10056
10062
  });
10057
- return gl((i, l) => new mv({
10063
+ return gl((i, l) => new gv({
10058
10064
  ...l,
10059
10065
  annotationId: e,
10060
10066
  corner: i,
@@ -10062,12 +10068,12 @@ var J0 = {
10062
10068
  editorStore: a,
10063
10069
  dispatch: n.dispatch
10064
10070
  }));
10065
- }, vv = [" ", "Enter"], vl = (e) => {
10071
+ }, fv = [" ", "Enter"], vl = (e) => {
10066
10072
  const t = U(), n = ne(e);
10067
10073
  return z(() => () => va(t, n.current), [t, n]), re((a) => ({ onKeyDown: (o) => {
10068
10074
  if (o.altKey || o.ctrlKey || o.metaKey || o.shiftKey) return;
10069
10075
  const i = t.getState(), l = n.current.readHeld();
10070
- if (vv.includes(o.key)) {
10076
+ if (fv.includes(o.key)) {
10071
10077
  if (o.preventDefault(), o.repeat) return;
10072
10078
  if (l !== null) {
10073
10079
  va(t, n.current);
@@ -10085,7 +10091,7 @@ var J0 = {
10085
10091
  }, va = (e, t) => {
10086
10092
  const n = t.readHeld();
10087
10093
  n !== null && (e.getState().releaseInteraction(n.kind), t.commit(n));
10088
- }, fa = 4, fv = ({ annotationId: e, panelRect: t }) => {
10094
+ }, fa = 4, bv = ({ annotationId: e, panelRect: t }) => {
10089
10095
  const { commands: n } = H(), a = U(), o = R((i) => i.spec.annotations);
10090
10096
  return vl({
10091
10097
  readHeld: () => Dn(j(a.getState(), "shape-resize-drag"), e),
@@ -10098,7 +10104,7 @@ var J0 = {
10098
10104
  };
10099
10105
  },
10100
10106
  step: (i, l, s) => {
10101
- const c = bv(s, t);
10107
+ const c = yv(s, t);
10102
10108
  return c === null ? null : {
10103
10109
  kind: "shape-resize-drag",
10104
10110
  annotationId: e,
@@ -10119,7 +10125,7 @@ var J0 = {
10119
10125
  }));
10120
10126
  }
10121
10127
  });
10122
- }, bv = (e, t) => {
10128
+ }, yv = (e, t) => {
10123
10129
  const n = me(fa, t.width), a = me(fa, t.height);
10124
10130
  switch (e) {
10125
10131
  case "ArrowLeft":
@@ -10145,49 +10151,49 @@ var J0 = {
10145
10151
  default:
10146
10152
  return null;
10147
10153
  }
10148
- }, yv = {
10154
+ }, Sv = {
10149
10155
  "top-left": "diagonalDown",
10150
10156
  "bottom-right": "diagonalDown",
10151
10157
  "top-right": "diagonalUp",
10152
10158
  "bottom-left": "diagonalUp"
10153
- }, Sv = (e) => {
10154
- const t = ot(), n = xv(t), a = wv(t);
10159
+ }, Cv = (e) => {
10160
+ const t = ot(), n = wv(t), a = kv(t);
10155
10161
  if (n === null) return null;
10156
10162
  const o = a.resizedRegion ?? (n.region.anchorType === "panel" ? n.region : null);
10157
- return o === null ? null : /* @__PURE__ */ r(Cv, {
10163
+ return o === null ? null : /* @__PURE__ */ r(xv, {
10158
10164
  shape: n,
10159
10165
  region: o,
10160
10166
  settled: a.resizedRegion === null && !a.moving,
10161
10167
  moving: a.moving,
10162
10168
  ...e
10163
10169
  });
10164
- }, Cv = ({ shape: e, region: t, settled: n, moving: a, panelRect: o, frameRect: i, frameElement: l }) => {
10165
- const s = E(), c = gv({
10170
+ }, xv = ({ shape: e, region: t, settled: n, moving: a, panelRect: o, frameRect: i, frameElement: l }) => {
10171
+ const s = E(), c = vv({
10166
10172
  annotationId: e.id,
10167
10173
  panelRect: o
10168
- }), d = fv({
10174
+ }), d = bv({
10169
10175
  annotationId: e.id,
10170
10176
  panelRect: o
10171
10177
  }), u = W().annotation.shape(e.id).resolve(), { rect: h } = Ra(pr(t), u.strokeWidth, o);
10172
10178
  return /* @__PURE__ */ v("div", {
10173
10179
  "data-testid": "shape-selection",
10174
10180
  "data-annotation-id": e.id,
10175
- children: [n && /* @__PURE__ */ r(pv, {
10181
+ children: [n && /* @__PURE__ */ r(mv, {
10176
10182
  shape: e,
10177
10183
  shapeBox: h,
10178
10184
  panelRect: o,
10179
10185
  frameWidth: i.width,
10180
10186
  frameHeight: i.height,
10181
10187
  frameElement: l
10182
- }), !a && X0.map((p) => {
10183
- const g = Z0(h, p);
10188
+ }), !a && Z0.map((p) => {
10189
+ const g = Y0(h, p);
10184
10190
  return /* @__PURE__ */ r(ml, {
10185
10191
  point: {
10186
10192
  x: o.x + g.x,
10187
10193
  y: o.y + g.y
10188
10194
  },
10189
10195
  label: s(`graph.annotations.shapeToolbar.resize.${p}`),
10190
- pull: yv[p],
10196
+ pull: Sv[p],
10191
10197
  size: "md",
10192
10198
  attributes: {
10193
10199
  "data-testid": "shape-resize-handle",
@@ -10198,16 +10204,16 @@ var J0 = {
10198
10204
  }, p);
10199
10205
  })]
10200
10206
  });
10201
- }, xv = (e) => {
10207
+ }, wv = (e) => {
10202
10208
  const t = R((n) => n.spec.annotations.shapes);
10203
10209
  return e === null ? null : t.find((n) => n.id === e) ?? null;
10204
- }, wv = (e) => ee(xe((t) => e === null ? {
10210
+ }, kv = (e) => ee(xe((t) => e === null ? {
10205
10211
  resizedRegion: null,
10206
10212
  moving: !1
10207
10213
  } : {
10208
10214
  resizedRegion: Dn(j(t, "shape-resize-drag"), e)?.region ?? null,
10209
10215
  moving: Nt(j(t, "move-drag"), e) !== null
10210
- })), kv = ({ textColor: e, ...t }) => /* @__PURE__ */ v(L, {
10216
+ })), Tv = ({ textColor: e, ...t }) => /* @__PURE__ */ v(L, {
10211
10217
  ...t,
10212
10218
  children: [/* @__PURE__ */ v("g", {
10213
10219
  stroke: "currentColor",
@@ -10221,15 +10227,15 @@ var J0 = {
10221
10227
  strokeLinecap: "round"
10222
10228
  })]
10223
10229
  });
10224
- var It = "textStyle", fl = /* @__PURE__ */ new Set(["paragraph", "heading"]), Tv = (e) => {
10225
- const t = bl(e), n = Mv(e);
10230
+ var It = "textStyle", fl = /* @__PURE__ */ new Set(["paragraph", "heading"]), Av = (e) => {
10231
+ const t = bl(e), n = Ov(e);
10226
10232
  return {
10227
- color: gt(t.map((a) => Ov(cn(a)?.color))),
10228
- font: gt(t.map((a) => Ev(cn(a)))),
10229
- fontSize: gt(t.map((a) => Rv(cn(a)?.fontSize))),
10230
- alignment: gt(n.map((a) => Nv(a.attrs?.textAlign)))
10233
+ color: gt(t.map((a) => Rv(cn(a)?.color))),
10234
+ font: gt(t.map((a) => Mv(cn(a)))),
10235
+ fontSize: gt(t.map((a) => Nv(cn(a)?.fontSize))),
10236
+ alignment: gt(n.map((a) => Dv(a.attrs?.textAlign)))
10231
10237
  };
10232
- }, Av = (e, t) => mr(e, (n) => n.type === "text" ? Iv(n, t) : n), Pv = (e) => bl(e).length > 0, Lv = (e, t) => mr(e, (n) => fl.has(n.type ?? "") ? {
10238
+ }, Pv = (e, t) => mr(e, (n) => n.type === "text" ? Ev(n, t) : n), Lv = (e) => bl(e).length > 0, Iv = (e, t) => mr(e, (n) => fl.has(n.type ?? "") ? {
10233
10239
  ...n,
10234
10240
  attrs: {
10235
10241
  ...n.attrs,
@@ -10238,7 +10244,7 @@ var It = "textStyle", fl = /* @__PURE__ */ new Set(["paragraph", "heading"]), Tv
10238
10244
  } : n), mr = (e, t) => t(e.content === void 0 ? e : {
10239
10245
  ...e,
10240
10246
  content: e.content.map((n) => mr(n, t))
10241
- }), Iv = (e, t) => {
10247
+ }), Ev = (e, t) => {
10242
10248
  const n = e.marks ?? [], a = n.find((i) => i.type === It), o = {
10243
10249
  type: It,
10244
10250
  attrs: {
@@ -10250,10 +10256,10 @@ var It = "textStyle", fl = /* @__PURE__ */ new Set(["paragraph", "heading"]), Tv
10250
10256
  ...e,
10251
10257
  marks: a === void 0 ? [...n, o] : n.map((i) => i === a ? o : i)
10252
10258
  };
10253
- }, cn = (e) => e.marks?.find((t) => t.type === It)?.attrs, Ev = (e) => xr(e?.font) ?? xr(e?.fontFamily), bl = (e) => gr(e, (t) => t.type === "text"), Mv = (e) => gr(e, (t) => fl.has(t.type ?? "")), gr = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((n) => gr(n, t))], gt = (e) => {
10259
+ }, cn = (e) => e.marks?.find((t) => t.type === It)?.attrs, Mv = (e) => xr(e?.font) ?? xr(e?.fontFamily), bl = (e) => gr(e, (t) => t.type === "text"), Ov = (e) => gr(e, (t) => fl.has(t.type ?? "")), gr = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((n) => gr(n, t))], gt = (e) => {
10254
10260
  const [t, ...n] = e;
10255
10261
  return t === void 0 ? null : n.every((a) => a === t) ? t : null;
10256
- }, Ov = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Rv = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, Nv = (e) => e === "left" || e === "center" || e === "right" ? e : void 0;
10262
+ }, Rv = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Nv = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, Dv = (e) => e === "left" || e === "center" || e === "right" ? e : void 0;
10257
10263
  var yl = [
10258
10264
  {
10259
10265
  id: "modern",
@@ -10279,7 +10285,7 @@ var yl = [
10279
10285
  id: e,
10280
10286
  key: t,
10281
10287
  fontFamily: Ps[e] ?? e
10282
- })), Dv = (e) => yl.find((t) => t.id === (e ?? "modern")) ?? null;
10288
+ })), _v = (e) => yl.find((t) => t.id === (e ?? "modern")) ?? null;
10283
10289
  var Sl = [
10284
10290
  {
10285
10291
  size: 12,
@@ -10301,7 +10307,7 @@ var Sl = [
10301
10307
  size: 30,
10302
10308
  key: "graph.annotations.textToolbar.fontSize.huge"
10303
10309
  }
10304
- ], _v = (e) => Sl.find((t) => t.size === (e ?? 15)) ?? null, Fv = (e) => `${e}px`, zv = [
10310
+ ], Fv = (e) => Sl.find((t) => t.size === (e ?? 15)) ?? null, zv = (e) => `${e}px`, Bv = [
10305
10311
  {
10306
10312
  alignment: "left",
10307
10313
  Icon: ai
@@ -10314,8 +10320,8 @@ var Sl = [
10314
10320
  alignment: "right",
10315
10321
  Icon: ri
10316
10322
  }
10317
- ], Bv = ({ annotation: e, textBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
10318
- const l = E(), { commands: s } = H(), c = R((y) => y.spec.styles.overrides), d = R((y) => de(y.spec)), u = U(), h = Kt(), p = W().annotation.text(e.id).resolve(), g = Tv(e.content), m = Dv(g.font), f = _v(g.fontSize), b = g.color ?? p.textColor, C = M(() => ({
10323
+ ], Hv = ({ annotation: e, textBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
10324
+ const l = E(), { commands: s } = H(), c = R((y) => y.spec.styles.overrides), d = R((y) => de(y.spec)), u = U(), h = Kt(), p = W().annotation.text(e.id).resolve(), g = Av(e.content), m = _v(g.font), f = Fv(g.fontSize), b = g.color ?? p.textColor, C = M(() => ({
10319
10325
  target: "annotation",
10320
10326
  kind: "text",
10321
10327
  annotation: e.id
@@ -10339,18 +10345,18 @@ var Sl = [
10339
10345
  }), N);
10340
10346
  }, x = () => u.getState().caret?.editor?.getJSON() ?? e.content, I = (y, N) => {
10341
10347
  const G = x(), ie = u.getState().caret?.editor ?? null;
10342
- if (ie !== null && !Pv(G)) {
10348
+ if (ie !== null && !Lv(G)) {
10343
10349
  ie.chain().focus().setMark(It, y).run();
10344
10350
  return;
10345
10351
  }
10346
- k({ content: Av(G, y) }, N);
10352
+ k({ content: Pv(G, y) }, N);
10347
10353
  }, w = () => {
10348
10354
  s.dispatch(new $e({ id: e.id })), i.focus({ preventScroll: !0 });
10349
- }, A = (y) => P(Hv(y), { transient: !0 }), B = (y) => I({ color: y }, { transient: !0 }), te = (y) => () => {
10355
+ }, A = (y) => P(Gv(y), { transient: !0 }), B = (y) => I({ color: y }, { transient: !0 }), te = (y) => () => {
10350
10356
  I({ font: y }), h.close();
10351
10357
  }, D = (y) => () => {
10352
10358
  I({ fontSize: y }), h.close();
10353
- }, S = (y) => k({ content: Lv(x(), y) });
10359
+ }, S = (y) => k({ content: Iv(x(), y) });
10354
10360
  return /* @__PURE__ */ v(_.Root, {
10355
10361
  anchorBox: t,
10356
10362
  panelRect: n,
@@ -10372,7 +10378,7 @@ var Sl = [
10372
10378
  label: l("graph.annotations.textToolbar.color"),
10373
10379
  onChange: B,
10374
10380
  ...h.bind("color"),
10375
- children: /* @__PURE__ */ r(kv, {
10381
+ children: /* @__PURE__ */ r(Tv, {
10376
10382
  size: "sm",
10377
10383
  textColor: b,
10378
10384
  title: ""
@@ -10402,13 +10408,13 @@ var Sl = [
10402
10408
  selected: y.size === f?.size,
10403
10409
  onClick: D(y.size),
10404
10410
  children: /* @__PURE__ */ r("span", {
10405
- style: { fontSize: Fv(y.size) },
10411
+ style: { fontSize: zv(y.size) },
10406
10412
  children: l(y.key)
10407
10413
  })
10408
10414
  }, y.size))
10409
10415
  }),
10410
10416
  /* @__PURE__ */ r(_.Separator, {}),
10411
- /* @__PURE__ */ r(Gv, {
10417
+ /* @__PURE__ */ r(Vv, {
10412
10418
  current: g.alignment ?? "center",
10413
10419
  onPick: S
10414
10420
  }),
@@ -10423,12 +10429,12 @@ var Sl = [
10423
10429
  })
10424
10430
  ]
10425
10431
  });
10426
- }, Hv = (e) => e === "transparent" ? { fill: Fo } : {
10432
+ }, Gv = (e) => e === "transparent" ? { fill: Fo } : {
10427
10433
  fill: e,
10428
10434
  fillAlpha: Mh(e) ? Ac : 1
10429
- }, Gv = ({ current: e, onPick: t }) => {
10435
+ }, Vv = ({ current: e, onPick: t }) => {
10430
10436
  const n = E(), a = (o) => () => t(o);
10431
- return /* @__PURE__ */ r($, { children: zv.map((o) => /* @__PURE__ */ r(_.ToggleButton, {
10437
+ return /* @__PURE__ */ r($, { children: Bv.map((o) => /* @__PURE__ */ r(_.ToggleButton, {
10432
10438
  label: n(`graph.annotations.textToolbar.align.${o.alignment}`),
10433
10439
  pressed: o.alignment === e,
10434
10440
  onClick: a(o.alignment),
@@ -10437,8 +10443,8 @@ var Sl = [
10437
10443
  title: ""
10438
10444
  })
10439
10445
  }, o.alignment)) });
10440
- }, Vv = ["left", "right"];
10441
- var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10446
+ }, $v = ["left", "right"];
10447
+ var Cl = ({ width: e }) => me(60, e), Wv = (e, t) => ({
10442
10448
  x: t === "left" ? e.x : e.x + e.width,
10443
10449
  y: e.y + e.height / 2
10444
10450
  }), xl = ({ at: e, width: t, align: n, edge: a, delta: o, minWidth: i, panelWidth: l }) => {
@@ -10447,7 +10453,7 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10447
10453
  width: t,
10448
10454
  shift: 0
10449
10455
  };
10450
- const s = Lc(n).x, c = Wv(e.offset, l), d = En({
10456
+ const s = Lc(n).x, c = Uv(e.offset, l), d = En({
10451
10457
  start: e.x + c - s * t,
10452
10458
  extent: t,
10453
10459
  moveStartEdge: a === "left",
@@ -10462,14 +10468,14 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10462
10468
  width: d.extent,
10463
10469
  shift: u - e.x
10464
10470
  };
10465
- }, wl = (e, t) => e.at.x === t.at.x && e.width === t.width, Wv = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? me(e.x, t) : e.x, Et = (e, t) => {
10471
+ }, wl = (e, t) => e.at.x === t.at.x && e.width === t.width, Uv = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? me(e.x, t) : e.x, Et = (e, t) => {
10466
10472
  const n = e.textAnnotations.find((a) => a.id === t);
10467
10473
  return n === void 0 || n.at.anchorType !== "panel" ? null : {
10468
10474
  at: n.at,
10469
10475
  width: n.width,
10470
10476
  align: n.align
10471
10477
  };
10472
- }, Uv = class extends it {
10478
+ }, Kv = class extends it {
10473
10479
  constructor(...e) {
10474
10480
  super(...e), this.kind = "text-resize-drag";
10475
10481
  }
@@ -10504,12 +10510,12 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10504
10510
  }
10505
10511
  }));
10506
10512
  }
10507
- }, Kv = ({ annotationId: e, panelRect: t }) => {
10513
+ }, qv = ({ annotationId: e, panelRect: t }) => {
10508
10514
  const { commands: n } = H(), a = U(), o = ne({
10509
10515
  annotations: R((i) => i.spec.annotations),
10510
10516
  panelRect: t
10511
10517
  });
10512
- return gl((i, l) => new Uv({
10518
+ return gl((i, l) => new Kv({
10513
10519
  ...l,
10514
10520
  annotationId: e,
10515
10521
  edge: i,
@@ -10517,7 +10523,7 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10517
10523
  editorStore: a,
10518
10524
  dispatch: n.dispatch
10519
10525
  }));
10520
- }, qv = 4, jv = ({ annotationId: e, panelRect: t }) => {
10526
+ }, jv = 4, Xv = ({ annotationId: e, panelRect: t }) => {
10521
10527
  const { commands: n } = H(), a = U(), o = R((l) => l.spec.annotations), i = (l, s) => {
10522
10528
  const c = Et(o, e);
10523
10529
  return c === null ? null : {
@@ -10537,7 +10543,7 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10537
10543
  readHeld: () => Fn(j(a.getState(), "text-resize-drag"), e),
10538
10544
  claim: (l) => i(l, 0),
10539
10545
  step: (l, s, c) => {
10540
- const d = Xv(c, t);
10546
+ const d = Zv(c, t);
10541
10547
  return d === null ? null : i(s, l.delta + d);
10542
10548
  },
10543
10549
  commit: (l) => {
@@ -10552,8 +10558,8 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10552
10558
  }));
10553
10559
  }
10554
10560
  });
10555
- }, Xv = (e, t) => {
10556
- const n = me(qv, t.width);
10561
+ }, Zv = (e, t) => {
10562
+ const n = me(jv, t.width);
10557
10563
  switch (e) {
10558
10564
  case "ArrowLeft":
10559
10565
  return -n;
@@ -10562,9 +10568,9 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10562
10568
  default:
10563
10569
  return null;
10564
10570
  }
10565
- }, Zv = (e) => {
10566
- const t = ot(), n = Jv(t), a = Qv(t), o = ee((l) => l.caret?.annotationId === t), i = ef(e.panelRect, t, a.resized);
10567
- return n === null || i === null ? null : /* @__PURE__ */ r(Yv, {
10571
+ }, Yv = (e) => {
10572
+ const t = ot(), n = Qv(t), a = ef(t), o = ee((l) => l.caret?.annotationId === t), i = tf(e.panelRect, t, a.resized);
10573
+ return n === null || i === null ? null : /* @__PURE__ */ r(Jv, {
10568
10574
  annotation: n,
10569
10575
  textBox: i,
10570
10576
  settled: a.resized === null && !a.moving,
@@ -10573,26 +10579,26 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10573
10579
  hasCaret: o,
10574
10580
  ...e
10575
10581
  });
10576
- }, Yv = ({ annotation: e, textBox: t, settled: n, moving: a, resizable: o, hasCaret: i, panelRect: l, frameRect: s, frameElement: c }) => {
10577
- const d = E(), u = Kv({
10582
+ }, Jv = ({ annotation: e, textBox: t, settled: n, moving: a, resizable: o, hasCaret: i, panelRect: l, frameRect: s, frameElement: c }) => {
10583
+ const d = E(), u = qv({
10578
10584
  annotationId: e.id,
10579
10585
  panelRect: l
10580
- }), h = jv({
10586
+ }), h = Xv({
10581
10587
  annotationId: e.id,
10582
10588
  panelRect: l
10583
10589
  });
10584
10590
  return /* @__PURE__ */ v("div", {
10585
10591
  "data-testid": "text-selection",
10586
10592
  "data-annotation-id": e.id,
10587
- children: [n && /* @__PURE__ */ r(Bv, {
10593
+ children: [n && /* @__PURE__ */ r(Hv, {
10588
10594
  annotation: e,
10589
10595
  textBox: t,
10590
10596
  panelRect: l,
10591
10597
  frameWidth: s.width,
10592
10598
  frameHeight: s.height,
10593
10599
  frameElement: c
10594
- }), o && !a && !i && Vv.map((p) => {
10595
- const g = $v(t, p);
10600
+ }), o && !a && !i && $v.map((p) => {
10601
+ const g = Wv(t, p);
10596
10602
  return /* @__PURE__ */ r(ml, {
10597
10603
  point: {
10598
10604
  x: l.x + g.x,
@@ -10610,16 +10616,16 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10610
10616
  }, p);
10611
10617
  })]
10612
10618
  });
10613
- }, Jv = (e) => {
10619
+ }, Qv = (e) => {
10614
10620
  const t = R((n) => n.spec.annotations.textAnnotations);
10615
10621
  return e === null ? null : t.find((n) => n.id === e) ?? null;
10616
- }, Qv = (e) => ee(xe((t) => e === null ? {
10622
+ }, ef = (e) => ee(xe((t) => e === null ? {
10617
10623
  resized: null,
10618
10624
  moving: !1
10619
10625
  } : {
10620
10626
  resized: Fn(j(t, "text-resize-drag"), e),
10621
10627
  moving: Nt(j(t, "move-drag"), e) !== null
10622
- })), ef = (e, t, n) => {
10628
+ })), tf = (e, t, n) => {
10623
10629
  const a = De(e), o = Ba(), i = W(), l = M(() => ({
10624
10630
  panel: {
10625
10631
  width: e.width,
@@ -10634,7 +10640,7 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10634
10640
  i
10635
10641
  ]);
10636
10642
  return t === null ? null : pl(a, t, n, l)?.rect ?? null;
10637
- }, tf = (e) => /* @__PURE__ */ r(L, {
10643
+ }, nf = (e) => /* @__PURE__ */ r(L, {
10638
10644
  ...e,
10639
10645
  children: /* @__PURE__ */ v("g", {
10640
10646
  stroke: "currentColor",
@@ -10643,25 +10649,25 @@ var Cl = ({ width: e }) => me(60, e), $v = (e, t) => ({
10643
10649
  strokeLinejoin: "round",
10644
10650
  children: [/* @__PURE__ */ r("path", { d: "M12 5v14" }), /* @__PURE__ */ r("path", { d: "M5 12h14" })]
10645
10651
  })
10646
- }), nf = "var(--_1tyillx0)", rf = "var(--_1tyillx1)", af = {
10652
+ }), rf = "var(--_1tyillx0)", af = "var(--_1tyillx1)", of = {
10647
10653
  rest: 0.5,
10648
10654
  hovered: 0.75,
10649
10655
  open: 1
10650
10656
  };
10651
- var of = "_1tyillx2", lf = {
10657
+ var lf = "_1tyillx2", sf = {
10652
10658
  rest: "_1tyillx3",
10653
10659
  hovered: "_1tyillx4",
10654
10660
  open: "_1tyillx5"
10655
- }, sf = "_1tyillx6", cf = {
10661
+ }, cf = "_1tyillx6", df = {
10656
10662
  closed: "_1tyillx7",
10657
10663
  open: "_1tyillx8"
10658
- }, df = ({ interaction: e, panelRect: t }) => {
10659
- const n = U(), a = W().editOutline.selected().resolve().stroke, o = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, i = uf(e), l = M(() => {
10664
+ }, uf = ({ interaction: e, panelRect: t }) => {
10665
+ const n = U(), a = W().editOutline.selected().resolve().stroke, o = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, i = hf(e), l = M(() => {
10660
10666
  if (o === null) return null;
10661
10667
  const s = yt(o.position, t);
10662
10668
  return {
10663
10669
  center: s,
10664
- radius: 19 * af[i],
10670
+ radius: 19 * of[i],
10665
10671
  target: {
10666
10672
  kind: "observation",
10667
10673
  cursor: Gt(s, t)
@@ -10678,27 +10684,27 @@ var of = "_1tyillx2", lf = {
10678
10684
  "aria-hidden": "true",
10679
10685
  "data-testid": "observation-menu-trigger",
10680
10686
  "data-state": i,
10681
- className: ye(of, lf[i]),
10687
+ className: ye(lf, sf[i]),
10682
10688
  style: {
10683
10689
  left: t.x + l.center.x,
10684
10690
  top: t.y + l.center.y,
10685
10691
  ...Se({
10686
- [nf]: o.color,
10687
- [rf]: a
10692
+ [rf]: o.color,
10693
+ [af]: a
10688
10694
  })
10689
10695
  },
10690
10696
  children: /* @__PURE__ */ r("span", {
10691
- className: ye(sf, cf[i === "open" ? "open" : "closed"]),
10692
- children: /* @__PURE__ */ r(tf, { size: "lg" })
10697
+ className: ye(cf, df[i === "open" ? "open" : "closed"]),
10698
+ children: /* @__PURE__ */ r(nf, { size: "lg" })
10693
10699
  })
10694
10700
  });
10695
- }, uf = (e) => e.kind === "menu" ? "open" : e.kind === "trigger" && e.engaged ? "hovered" : "rest", hf = 'button:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', pf = (e, t) => {
10701
+ }, hf = (e) => e.kind === "menu" ? "open" : e.kind === "trigger" && e.engaged ? "hovered" : "rest", pf = 'button:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', mf = (e, t) => {
10696
10702
  const { chartId: n } = H(), a = U();
10697
10703
  z(() => {
10698
10704
  if (t === null) return;
10699
10705
  const o = (i) => {
10700
10706
  if (i.key !== "Tab" || i.defaultPrevented || !Ye(i.target, e, n) || Ho(i.target) || a.getState().standingInteraction?.kind === "chrome-popup") return;
10701
- const l = [...t.querySelectorAll(hf)];
10707
+ const l = [...t.querySelectorAll(pf)];
10702
10708
  if (l.length === 0) return;
10703
10709
  i.preventDefault();
10704
10710
  const s = l.findIndex((c) => c === document.activeElement);
@@ -10711,7 +10717,7 @@ var of = "_1tyillx2", lf = {
10711
10717
  n,
10712
10718
  a
10713
10719
  ]);
10714
- }, mf = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], kl = (e, t, n) => Mt(mf(e, t), n), gf = (e) => {
10720
+ }, gf = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], kl = (e, t, n) => Mt(gf(e, t), n), vf = (e) => {
10715
10721
  const { selectionStore: t, chartId: n } = H(), a = U();
10716
10722
  z(() => {
10717
10723
  let o = null;
@@ -10735,12 +10741,12 @@ var of = "_1tyillx2", lf = {
10735
10741
  e,
10736
10742
  n
10737
10743
  ]);
10738
- }, vf = (e, t) => {
10744
+ }, ff = (e, t) => {
10739
10745
  switch (e.kind) {
10740
10746
  case "legend": {
10741
10747
  const n = t.legends[e.part.legendIndex], a = n?.items[e.part.itemIndex];
10742
10748
  if (n === void 0 || a === void 0) return null;
10743
- const o = ff(n, a.layerId, t.layers);
10749
+ const o = bf(n, a.layerId, t.layers);
10744
10750
  return o === null ? null : lo({
10745
10751
  layer: o.layer,
10746
10752
  scope: "series",
@@ -10755,29 +10761,29 @@ var of = "_1tyillx2", lf = {
10755
10761
  const a = t.formattedAxes.find((i) => i.scaleAestheticKey === "x");
10756
10762
  if (a === void 0 || a.bandwidth === void 0) return null;
10757
10763
  const o = a.ticks[n.tickIndex];
10758
- return o === void 0 ? null : Sf(t.layers, o.value, t.parsingLocale);
10764
+ return o === void 0 ? null : Cf(t.layers, o.value, t.parsingLocale);
10759
10765
  }
10760
10766
  case "annotation":
10761
10767
  case "grid":
10762
10768
  return null;
10763
10769
  }
10764
- }, ff = (e, t, n) => {
10770
+ }, bf = (e, t, n) => {
10765
10771
  const a = t === void 0 ? n : n.filter((o) => o.id === t);
10766
10772
  for (const o of e.aesthetics) {
10767
- const i = bf(a, o);
10773
+ const i = yf(a, o);
10768
10774
  if (i !== null) return i;
10769
10775
  }
10770
10776
  return null;
10771
- }, bf = (e, t) => {
10777
+ }, yf = (e, t) => {
10772
10778
  for (const n of e) {
10773
10779
  const a = Ht(n.mapping[t]);
10774
- if (a !== null && yf(n, a)) return {
10780
+ if (a !== null && Sf(n, a)) return {
10775
10781
  layer: n,
10776
10782
  variable: a
10777
10783
  };
10778
10784
  }
10779
10785
  return null;
10780
- }, yf = (e, t) => e.data.hasVariable(t) && e.data.getType(t) === "categorical", Sf = (e, t, n) => {
10786
+ }, Sf = (e, t) => e.data.hasVariable(t) && e.data.getType(t) === "categorical", Cf = (e, t, n) => {
10781
10787
  let a = null;
10782
10788
  for (const o of e) {
10783
10789
  if (!o.interactive) continue;
@@ -10796,7 +10802,7 @@ var of = "_1tyillx2", lf = {
10796
10802
  }
10797
10803
  }
10798
10804
  return a;
10799
- }, Cf = ({ hover: e, layers: t, scales: n, parsingLocale: a }) => {
10805
+ }, xf = ({ hover: e, layers: t, scales: n, parsingLocale: a }) => {
10800
10806
  const { primary: o, intersection: i } = e;
10801
10807
  if (o === null) return null;
10802
10808
  const l = Z(t, o.layerId);
@@ -10817,7 +10823,7 @@ var of = "_1tyillx2", lf = {
10817
10823
  };
10818
10824
  }
10819
10825
  return null;
10820
- }, xf = (e, t, n) => {
10826
+ }, wf = (e, t, n) => {
10821
10827
  if (!e.onObservation || e.target.scope !== "series") return null;
10822
10828
  const a = Z(t, e.layerId);
10823
10829
  return a === void 0 ? null : tt({
@@ -10839,7 +10845,7 @@ var of = "_1tyillx2", lf = {
10839
10845
  }),
10840
10846
  hover: null
10841
10847
  };
10842
- const p = l !== null && n === l, g = p && d ? wf(l) : null, m = g === null ? null : Tf(e, g, t), f = m === null ? null : Cf({
10848
+ const p = l !== null && n === l, g = p && d ? kf(l) : null, m = g === null ? null : Af(e, g, t), f = m === null ? null : xf({
10843
10849
  hover: m,
10844
10850
  layers: u.layers,
10845
10851
  scales: u.scales,
@@ -10853,14 +10859,14 @@ var of = "_1tyillx2", lf = {
10853
10859
  targetAtPoint: C,
10854
10860
  hover: C?.kind === "observations" ? m : null
10855
10861
  };
10856
- }, wf = (e) => {
10862
+ }, kf = (e) => {
10857
10863
  const t = e.getBoundingClientRect();
10858
10864
  return t.width > 0 && t.height > 0 ? t : null;
10859
10865
  }, ba = (e, t, n, { paintsAnnotations: a, resolvesGuides: o, frameElement: i, scene: l, hasOverlayMenu: s }) => {
10860
10866
  if (!a && l.coordSystem.type === "cartesian" && e && t) return null;
10861
- const c = e || a ? kl(n.clientX, n.clientY, i) : kf(n.target, i);
10867
+ const c = e || a ? kl(n.clientX, n.clientY, i) : Tf(n.target, i);
10862
10868
  return c === null ? null : (c.kind === "annotation" ? a : o && s(c.target)) ? c : null;
10863
- }, kf = (e, t) => e instanceof Element ? Mt([e], t) : null, Tf = (e, t, n) => {
10869
+ }, Tf = (e, t) => e instanceof Element ? Mt([e], t) : null, Af = (e, t, n) => {
10864
10870
  const a = Gt({
10865
10871
  x: e.clientX - t.left,
10866
10872
  y: e.clientY - t.top
@@ -10870,7 +10876,7 @@ var of = "_1tyillx2", lf = {
10870
10876
  viewport: t,
10871
10877
  includeAttached: !0
10872
10878
  });
10873
- }, Af = class extends it {
10879
+ }, Pf = class extends it {
10874
10880
  constructor(...e) {
10875
10881
  super(...e), this.kind = "move-drag";
10876
10882
  }
@@ -10889,12 +10895,12 @@ var of = "_1tyillx2", lf = {
10889
10895
  }
10890
10896
  commit({ translation: e }) {
10891
10897
  const { annotationId: t, dispatch: n } = this.params;
10892
- u0(e) && n(new ec({
10898
+ h0(e) && n(new ec({
10893
10899
  id: t,
10894
10900
  translation: e
10895
10901
  }));
10896
10902
  }
10897
- }, Pf = (e, { canSelectGraph: t, withinFrame: n, caretAnnotationId: a }) => {
10903
+ }, Lf = (e, { canSelectGraph: t, withinFrame: n, caretAnnotationId: a }) => {
10898
10904
  switch (e?.kind) {
10899
10905
  case "annotation":
10900
10906
  return e.target.id === a ? { kind: "keep-caret" } : {
@@ -10909,7 +10915,7 @@ var of = "_1tyillx2", lf = {
10909
10915
  target: e.target
10910
10916
  };
10911
10917
  case "observations":
10912
- return Lf(e.observations);
10918
+ return If(e.observations);
10913
10919
  case "menu-trigger":
10914
10920
  case void 0:
10915
10921
  break;
@@ -10918,14 +10924,14 @@ var of = "_1tyillx2", lf = {
10918
10924
  kind: "select-graph",
10919
10925
  target: { kind: "graph" }
10920
10926
  } : { kind: "clear" };
10921
- }, Lf = ({ target: e, observationIndex: t, onObservation: n }) => e.scope === "x-value" ? {
10927
+ }, If = ({ target: e, observationIndex: t, onObservation: n }) => e.scope === "x-value" ? {
10922
10928
  kind: "select-band",
10923
10929
  target: e
10924
10930
  } : {
10925
10931
  kind: "select-observations",
10926
10932
  target: e,
10927
10933
  observationIndex: n ? t : null
10928
- }, If = (e, t, n, a, o) => {
10934
+ }, Ef = (e, t, n, a, o) => {
10929
10935
  const { commands: i, selectionStore: l, store: s } = H(), c = U(), d = R((b) => b.spec.annotations), u = Ne[Ee()], h = ne(u.graphPress), p = ne({
10930
10936
  annotations: d,
10931
10937
  panelRect: n
@@ -10950,7 +10956,7 @@ var of = "_1tyillx2", lf = {
10950
10956
  return;
10951
10957
  }
10952
10958
  w.preventDefault();
10953
- const B = new Af({
10959
+ const B = new Pf({
10954
10960
  handle: e,
10955
10961
  pointerId: w.pointerId,
10956
10962
  annotationId: A.id,
@@ -10986,7 +10992,7 @@ var of = "_1tyillx2", lf = {
10986
10992
  }
10987
10993
  }, x = (w) => {
10988
10994
  if (w.button !== 0 || fn(w.target) || Go(w, g.current, c.getState().menuTrigger) || C(w) || un(w.target, e)) return;
10989
- const A = Pf(b(w), {
10995
+ const A = Lf(b(w), {
10990
10996
  canSelectGraph: h.current && a().hasOverlayMenu({ kind: "graph" }),
10991
10997
  withinFrame: w.target instanceof Node && e.contains(w.target),
10992
10998
  caretAnnotationId: c.getState().caret?.annotationId ?? null
@@ -10997,7 +11003,7 @@ var of = "_1tyillx2", lf = {
10997
11003
  const A = b(w), { layers: B, guides: te, config: D } = s.getState().scene, { hasOverlayMenu: S } = a(), y = l.getState(), N = c.getState();
10998
11004
  switch (A?.kind) {
10999
11005
  case "observations": {
11000
- const { observations: G } = A, ie = xf(G, B, D.parsingLocale);
11006
+ const { observations: G } = A, ie = wf(G, B, D.parsingLocale);
11001
11007
  if (ie === null || !S(ie)) return;
11002
11008
  const { observationIndex: Yt } = G;
11003
11009
  N.setPressedObservation({
@@ -11009,7 +11015,7 @@ var of = "_1tyillx2", lf = {
11009
11015
  }
11010
11016
  case "axis":
11011
11017
  case "legend": {
11012
- const G = vf(A, {
11018
+ const G = ff(A, {
11013
11019
  layers: B,
11014
11020
  legends: te.legends.drawn,
11015
11021
  formattedAxes: m.current,
@@ -11046,7 +11052,7 @@ var of = "_1tyillx2", lf = {
11046
11052
  h,
11047
11053
  a
11048
11054
  ]);
11049
- }, Ef = (e) => {
11055
+ }, Mf = (e) => {
11050
11056
  const { selectionStore: t, commands: n, chartId: a } = H(), o = U(), i = ne(R((u) => u.spec.annotations.textAnnotations)), { annotations: l } = Ne[Ee()], s = re((u) => {
11051
11057
  const { selection: h } = t.getState(), p = l ? In(h) : null;
11052
11058
  p !== null && (u.preventDefault(), n.dispatch(new $e({ id: p })), e.focus({ preventScroll: !0 }));
@@ -11085,7 +11091,7 @@ var of = "_1tyillx2", lf = {
11085
11091
  z(() => {
11086
11092
  const u = (h) => {
11087
11093
  if (!Ye(h.target, e, a) || Ho(h.target)) return;
11088
- const p = Mf(h.target), g = o.getState().caret !== null && !ft(h.target, a);
11094
+ const p = Of(h.target), g = o.getState().caret !== null && !ft(h.target, a);
11089
11095
  if (!(p && !g))
11090
11096
  switch (h.key) {
11091
11097
  case "Escape":
@@ -11108,7 +11114,7 @@ var of = "_1tyillx2", lf = {
11108
11114
  a,
11109
11115
  o
11110
11116
  ]);
11111
- }, Mf = (e) => e instanceof HTMLElement && (e.isContentEditable || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement), Of = (e, t) => {
11117
+ }, Of = (e) => e instanceof HTMLElement && (e.isContentEditable || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement), Rf = (e, t) => {
11112
11118
  const n = U(), { store: a } = H(), { engine: o, overlayRef: i } = et(), l = ne(t), { annotations: s, observationsPress: c, guidePress: d, tolerance: u } = Ne[Ee()], h = Rs(), p = Wt(), g = c && !h;
11113
11119
  return re(() => ({
11114
11120
  frameElement: e,
@@ -11135,7 +11141,7 @@ var of = "_1tyillx2", lf = {
11135
11141
  u,
11136
11142
  a
11137
11143
  ]);
11138
- }, Rf = () => {
11144
+ }, Nf = () => {
11139
11145
  const e = Ne[Ee()].observationMenu, t = bs((l) => e ? l.hover.primary : null), { layers: n, coordSystem: a } = R(xe((l) => ({
11140
11146
  layers: l.layers,
11141
11147
  coordSystem: l.coordSystem
@@ -11165,9 +11171,9 @@ var of = "_1tyillx2", lf = {
11165
11171
  o,
11166
11172
  i
11167
11173
  ]);
11168
- }, Nf = { kind: "idle" }, Al = () => {
11169
- const e = ee((a) => a.standingInteraction), t = ee((a) => a.editTargetUnderPointer?.kind === "menu-trigger"), n = Rf();
11170
- return M(() => e !== null ? e : n === null ? Nf : {
11174
+ }, Df = { kind: "idle" }, Al = () => {
11175
+ const e = ee((a) => a.standingInteraction), t = ee((a) => a.editTargetUnderPointer?.kind === "menu-trigger"), n = Nf();
11176
+ return M(() => e !== null ? e : n === null ? Df : {
11171
11177
  kind: "trigger",
11172
11178
  anchor: n,
11173
11179
  engaged: t
@@ -11176,7 +11182,7 @@ var of = "_1tyillx2", lf = {
11176
11182
  n,
11177
11183
  t
11178
11184
  ]);
11179
- }, Df = (e, t) => e.x >= 0 && e.x <= t.width && e.y >= 0 && e.y <= t.height, _f = (e, t, n) => {
11185
+ }, _f = (e, t) => e.x >= 0 && e.x <= t.width && e.y >= 0 && e.y <= t.height, Ff = (e, t, n) => {
11180
11186
  const a = U(), { selectionStore: o } = H(), { store: i, engine: l } = et(), s = ne(e), c = ne(t), d = ne(n);
11181
11187
  z(() => {
11182
11188
  const u = (f) => Go(f, c.current, a.getState().menuTrigger), h = (f) => {
@@ -11184,7 +11190,7 @@ var of = "_1tyillx2", lf = {
11184
11190
  const b = d.current, C = c.current, P = {
11185
11191
  x: f.clientX - C.x,
11186
11192
  y: f.clientY - C.y
11187
- }, k = Df(P, b) ? l.query(Gt(P, b)) : Vn;
11193
+ }, k = _f(P, b) ? l.query(Gt(P, b)) : Vn;
11188
11194
  i.getState().setHoverState(k);
11189
11195
  };
11190
11196
  let p = !1;
@@ -11215,7 +11221,7 @@ var of = "_1tyillx2", lf = {
11215
11221
  c,
11216
11222
  d
11217
11223
  ]);
11218
- }, Ff = (e, t, n) => {
11224
+ }, zf = (e, t, n) => {
11219
11225
  const a = U(), { store: o } = H(), { store: i } = et(), l = ne(t), s = Ne[Ee()].observationsPress;
11220
11226
  z(() => (i.getState().setEditorOwnsQuery(s), () => i.getState().setEditorOwnsQuery(!1)), [i, s]), z(() => {
11221
11227
  let c = null, d = null, u = !1;
@@ -11236,7 +11242,7 @@ var of = "_1tyillx2", lf = {
11236
11242
  }
11237
11243
  if (u && (u = !1, d = {
11238
11244
  ...d,
11239
- target: zf(d)
11245
+ target: Bf(d)
11240
11246
  }), un(d.target, e)) {
11241
11247
  x.setEditTargetUnderPointer(null);
11242
11248
  return;
@@ -11274,7 +11280,7 @@ var of = "_1tyillx2", lf = {
11274
11280
  s,
11275
11281
  n
11276
11282
  ]);
11277
- }, zf = (e) => typeof document.elementFromPoint == "function" ? document.elementFromPoint(e.clientX, e.clientY) : e.target, vt = (e) => {
11283
+ }, Bf = (e) => typeof document.elementFromPoint == "function" ? document.elementFromPoint(e.clientX, e.clientY) : e.target, vt = (e) => {
11278
11284
  if (e === null) return !1;
11279
11285
  switch (e.kind) {
11280
11286
  case "menu":
@@ -11287,9 +11293,9 @@ var of = "_1tyillx2", lf = {
11287
11293
  case "chrome-popup":
11288
11294
  return !1;
11289
11295
  }
11290
- }, ya = "editor", Sa = [], Bf = (e, t, n, a, o) => {
11291
- const i = Al(), { store: l } = et(), s = Rt().length > 0, c = Ne[Ee()].holdsHoverWhileSelected, d = ee((m) => m.menuTrigger), u = i.kind === "menu", h = M(() => d === null ? Sa : [Ec(d)], [d]), p = Of(e, t);
11292
- Ff(e, t, p), If(e, t, n, p, o), _f(i, t, n), gf(e), Ef(e), pf(e, a), z(() => (l.getState().publishPointerRegions(ya, h), () => l.getState().publishPointerRegions(ya, Sa)), [l, h]);
11296
+ }, ya = "editor", Sa = [], Hf = (e, t, n, a, o) => {
11297
+ const i = Al(), { store: l } = et(), s = Rt().length > 0, c = Ne[Ee()].holdsHoverWhileSelected, d = ee((m) => m.menuTrigger), u = i.kind === "menu", h = M(() => d === null ? Sa : [Ec(d)], [d]), p = Rf(e, t);
11298
+ zf(e, t, p), Ef(e, t, n, p, o), Ff(i, t, n), vf(e), Mf(e), mf(e, a), z(() => (l.getState().publishPointerRegions(ya, h), () => l.getState().publishPointerRegions(ya, Sa)), [l, h]);
11293
11299
  const g = u || s && c;
11294
11300
  z(() => (l.getState().setSuspendsHover(g), () => l.getState().setSuspendsHover(!1)), [l, g]), z(() => {
11295
11301
  if (!s || !c) return;
@@ -11300,7 +11306,7 @@ var of = "_1tyillx2", lf = {
11300
11306
  s,
11301
11307
  c
11302
11308
  ]);
11303
- }, Hf = ({ frameElement: e, panelRect: t, formattedAxes: n, animateTransitions: a }) => {
11309
+ }, Gf = ({ frameElement: e, panelRect: t, formattedAxes: n, animateTransitions: a }) => {
11304
11310
  const { measureRef: o, screenRect: i } = Ql(), { selectionStore: l } = H(), s = U(), c = ee((h) => h.caret?.annotationId ?? null), d = Ee(), u = ae(d);
11305
11311
  return z(() => (o(e), () => o(null)), [o, e]), z(() => () => {
11306
11312
  const h = s.getState();
@@ -11314,17 +11320,17 @@ var of = "_1tyillx2", lf = {
11314
11320
  d,
11315
11321
  s,
11316
11322
  l
11317
- ]), i === null ? null : /* @__PURE__ */ v(Pu, { children: [c !== null && /* @__PURE__ */ r(Gf, {
11323
+ ]), i === null ? null : /* @__PURE__ */ v(Pu, { children: [c !== null && /* @__PURE__ */ r(Vf, {
11318
11324
  annotationId: c,
11319
11325
  panelRect: t
11320
- }), /* @__PURE__ */ r(Vf, {
11326
+ }), /* @__PURE__ */ r($f, {
11321
11327
  frameElement: e,
11322
11328
  frameRect: i,
11323
11329
  panelRect: t,
11324
11330
  formattedAxes: n,
11325
11331
  animateTransitions: a
11326
11332
  })] });
11327
- }, Gf = ({ annotationId: e, panelRect: t }) => {
11333
+ }, Vf = ({ annotationId: e, panelRect: t }) => {
11328
11334
  const n = U(), { textAnnotations: a } = De(t);
11329
11335
  return z(() => {
11330
11336
  a.some(({ id: o }) => o === e) || n.getState().setCaret(null);
@@ -11333,7 +11339,7 @@ var of = "_1tyillx2", lf = {
11333
11339
  a,
11334
11340
  n
11335
11341
  ]), null;
11336
- }, Vf = ({ frameElement: e, frameRect: t, panelRect: n, formattedAxes: a, animateTransitions: o }) => {
11342
+ }, $f = ({ frameElement: e, frameRect: t, panelRect: n, formattedAxes: a, animateTransitions: o }) => {
11337
11343
  const i = M(() => ({
11338
11344
  x: t.left + n.x,
11339
11345
  y: t.top + n.y
@@ -11343,7 +11349,7 @@ var of = "_1tyillx2", lf = {
11343
11349
  n.x,
11344
11350
  n.y
11345
11351
  ]), [l, s] = X(null);
11346
- return Bf(e, i, n, l, a), /* @__PURE__ */ r($f, {
11352
+ return Hf(e, i, n, l, a), /* @__PURE__ */ r(Wf, {
11347
11353
  frameElement: e,
11348
11354
  frameRect: t,
11349
11355
  panelOrigin: i,
@@ -11351,17 +11357,17 @@ var of = "_1tyillx2", lf = {
11351
11357
  boxRef: s,
11352
11358
  animateTransitions: o
11353
11359
  });
11354
- }, $f = ({ frameElement: e, frameRect: t, panelOrigin: n, panelRect: a, boxRef: o, animateTransitions: i }) => {
11360
+ }, Wf = ({ frameElement: e, frameRect: t, panelOrigin: n, panelRect: a, boxRef: o, animateTransitions: i }) => {
11355
11361
  const l = We(), s = Al(), { annotations: c, editOutline: d, overlayMenu: u } = Ne[Ee()], h = M(() => ({
11356
11362
  width: t.width,
11357
11363
  height: t.height
11358
11364
  }), [t.width, t.height]);
11359
- return /* @__PURE__ */ v($, { children: [d && /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(og, {
11365
+ return /* @__PURE__ */ v($, { children: [d && /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(ig, {
11360
11366
  frameElement: e,
11361
11367
  frameSize: h,
11362
11368
  panelRect: a,
11363
11369
  animateTransitions: i
11364
- }), /* @__PURE__ */ r(Qg, { frameRect: t })] }), /* @__PURE__ */ r(Wp, {
11370
+ }), /* @__PURE__ */ r(e2, { frameRect: t })] }), /* @__PURE__ */ r(Wp, {
11365
11371
  rect: t,
11366
11372
  zIndex: Xl.editorOverlay,
11367
11373
  container: l,
@@ -11369,55 +11375,55 @@ var of = "_1tyillx2", lf = {
11369
11375
  boxRef: o,
11370
11376
  children: /* @__PURE__ */ v(ue, { children: [
11371
11377
  c && /* @__PURE__ */ v($, { children: [
11372
- /* @__PURE__ */ r(K0, {
11378
+ /* @__PURE__ */ r(q0, {
11373
11379
  panelRect: a,
11374
11380
  panelOrigin: n,
11375
11381
  frameRect: t,
11376
11382
  frameElement: e
11377
11383
  }),
11378
- /* @__PURE__ */ r(Sv, {
11384
+ /* @__PURE__ */ r(Cv, {
11379
11385
  panelRect: a,
11380
11386
  frameRect: t,
11381
11387
  frameElement: e
11382
11388
  }),
11383
- /* @__PURE__ */ r(b0, {
11389
+ /* @__PURE__ */ r(y0, {
11384
11390
  panelRect: a,
11385
11391
  frameRect: t,
11386
11392
  frameElement: e
11387
11393
  }),
11388
- /* @__PURE__ */ r(Zv, {
11394
+ /* @__PURE__ */ r(Yv, {
11389
11395
  panelRect: a,
11390
11396
  frameRect: t,
11391
11397
  frameElement: e
11392
11398
  }),
11393
- /* @__PURE__ */ r(tv, { panelRect: a }),
11394
- /* @__PURE__ */ r(sv, { panelRect: a }),
11395
- /* @__PURE__ */ r(B2, { panelRect: a }),
11396
- /* @__PURE__ */ r(ev, { panelRect: a })
11399
+ /* @__PURE__ */ r(nv, { panelRect: a }),
11400
+ /* @__PURE__ */ r(cv, { panelRect: a }),
11401
+ /* @__PURE__ */ r(H2, { panelRect: a }),
11402
+ /* @__PURE__ */ r(tv, { panelRect: a })
11397
11403
  ] }),
11398
- /* @__PURE__ */ r(df, {
11404
+ /* @__PURE__ */ r(uf, {
11399
11405
  interaction: s,
11400
11406
  panelRect: a
11401
11407
  }),
11402
- /* @__PURE__ */ r(N2, {
11408
+ /* @__PURE__ */ r(D2, {
11403
11409
  interaction: s,
11404
11410
  frameElement: e,
11405
11411
  panelRect: a
11406
11412
  }),
11407
- u && /* @__PURE__ */ r(Yg, { frameElement: e })
11413
+ u && /* @__PURE__ */ r(Jg, { frameElement: e })
11408
11414
  ] })
11409
11415
  })] });
11410
- }, Wf = {}, i3 = ({ slots: e, mode: t, palettePresets: n = Wf, editMenus: a, ...o }) => /* @__PURE__ */ r(Mo, {
11416
+ }, Uf = {}, l3 = ({ slots: e, mode: t, palettePresets: n = Uf, editMenus: a, ...o }) => /* @__PURE__ */ r(Mo, {
11411
11417
  locale: zn(),
11412
- children: /* @__PURE__ */ r(_m, {
11418
+ children: /* @__PURE__ */ r(Fm, {
11413
11419
  editMenus: a,
11414
- children: /* @__PURE__ */ r(hs, { children: /* @__PURE__ */ r(um, {
11420
+ children: /* @__PURE__ */ r(hs, { children: /* @__PURE__ */ r(hm, {
11415
11421
  value: n,
11416
11422
  children: /* @__PURE__ */ r(Zl, {
11417
11423
  editors: Vp,
11418
11424
  children: /* @__PURE__ */ r(Es, {
11419
11425
  slots: M(() => ({
11420
- EditorSurface: Hf,
11426
+ EditorSurface: Gf,
11421
11427
  ...e
11422
11428
  }), [e]),
11423
11429
  mode: t,
@@ -11426,32 +11432,32 @@ var of = "_1tyillx2", lf = {
11426
11432
  })
11427
11433
  }) })
11428
11434
  })
11429
- }), Uf = "_12lhx9e0", Pl = ({ children: e }) => /* @__PURE__ */ r("div", {
11430
- className: Uf,
11431
- children: e
11432
- }), Kf = "_139ohwv0", oe = ({ children: e }) => /* @__PURE__ */ r("div", {
11435
+ }), Kf = "_12lhx9e0", Pl = ({ children: e }) => /* @__PURE__ */ r("div", {
11433
11436
  className: Kf,
11434
11437
  children: e
11435
- }), Ll = Me(null), qf = Ll.Provider, jf = () => {
11438
+ }), qf = "_139ohwv0", oe = ({ children: e }) => /* @__PURE__ */ r("div", {
11439
+ className: qf,
11440
+ children: e
11441
+ }), Ll = Me(null), jf = Ll.Provider, Xf = () => {
11436
11442
  const e = he(Ll);
11437
11443
  if (!e) throw new Error("A section must be rendered inside <EditorPanel.Root>.");
11438
11444
  return e;
11439
- }, Xf = "_1jlczkt0", Zf = "data-graphy-editor-panel", Yf = {
11445
+ }, Zf = "_1jlczkt0", Yf = "data-graphy-editor-panel", Jf = {
11440
11446
  List: oe,
11441
11447
  Grid: Pl
11442
11448
  };
11443
- function Jf(e) {
11449
+ function Qf(e) {
11444
11450
  if (e === void 0) return !1;
11445
11451
  const t = e.split(/\s+/);
11446
11452
  return t.includes("_1ii3bsb0") || t.includes("_1ii3bsb1");
11447
11453
  }
11448
- var Qf = () => () => {
11449
- }, e5 = (e) => {
11450
- const t = wd(e?.store.subscribe ?? Qf, () => e?.store.getState().scene.config.parsingLocale);
11451
- return e?.formattingLocale ?? t;
11454
+ var e5 = () => () => {
11452
11455
  }, t5 = (e) => {
11453
- const t = he(ks), n = e5(t), a = Hs(), o = ws();
11454
- let i = /* @__PURE__ */ r(n5, { ...e });
11456
+ const t = wd(e?.store.subscribe ?? e5, () => e?.store.getState().scene.config.parsingLocale);
11457
+ return e?.formattingLocale ?? t;
11458
+ }, n5 = (e) => {
11459
+ const t = he(ks), n = t5(t), a = Hs(), o = ws();
11460
+ let i = /* @__PURE__ */ r(r5, { ...e });
11455
11461
  return !o && t && (i = /* @__PURE__ */ r(Is, {
11456
11462
  colorScheme: t.colorScheme,
11457
11463
  children: i
@@ -11460,9 +11466,9 @@ var Qf = () => () => {
11460
11466
  children: i
11461
11467
  })), i;
11462
11468
  }, Il = {
11463
- Root: t5,
11464
- Controls: Yf
11465
- }, n5 = ({ handle: e, children: t, controls: n, defaultExpandedSection: a = void 0, className: o }) => {
11469
+ Root: n5,
11470
+ Controls: Jf
11471
+ }, r5 = ({ handle: e, children: t, controls: n, defaultExpandedSection: a = void 0, className: o }) => {
11466
11472
  const i = Bn(e), { themeClass: l, inlineVarsStyle: s } = Ot(), [c, d] = X(() => a ? [a] : []), u = M(() => ({
11467
11473
  expandSection: (h) => d([h]),
11468
11474
  collapseAllSections: () => d([])
@@ -11471,11 +11477,11 @@ var Qf = () => () => {
11471
11477
  value: i,
11472
11478
  children: /* @__PURE__ */ r(kh, {
11473
11479
  controls: n,
11474
- children: /* @__PURE__ */ r(qf, {
11480
+ children: /* @__PURE__ */ r(jf, {
11475
11481
  value: u,
11476
11482
  children: /* @__PURE__ */ r(je.Root, {
11477
- [Zf]: "",
11478
- className: ye(Xf, o, { [l]: !Jf(o) }),
11483
+ [Yf]: "",
11484
+ className: ye(Zf, o, { [l]: !Qf(o) }),
11479
11485
  style: s,
11480
11486
  value: c,
11481
11487
  onValueChange: (h) => d(h),
@@ -11484,7 +11490,7 @@ var Qf = () => () => {
11484
11490
  })
11485
11491
  })
11486
11492
  });
11487
- }, r5 = "_2m7wuq0", l3 = () => /* @__PURE__ */ r(jd, { className: r5 }), a5 = (e) => /* @__PURE__ */ r(L, {
11493
+ }, a5 = "_2m7wuq0", s3 = () => /* @__PURE__ */ r(jd, { className: a5 }), o5 = (e) => /* @__PURE__ */ r(L, {
11488
11494
  ...e,
11489
11495
  children: /* @__PURE__ */ r("g", {
11490
11496
  stroke: "currentColor",
@@ -11493,15 +11499,15 @@ var Qf = () => () => {
11493
11499
  strokeLinejoin: "round",
11494
11500
  children: /* @__PURE__ */ r("path", { d: "m9 6 6 6-6 6" })
11495
11501
  })
11496
- }), vr = "_40zvwv0", fr = "_40zvwv1", o5 = "_40zvwv2", El = "_40zvwv3", i5 = "_40zvwv4 _40zvwv3";
11497
- var l5 = "_40zvwv6";
11498
- var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory: a, onOpenChange: o, children: i }) => t === "collapsible" ? /* @__PURE__ */ r(d5, {
11502
+ }), vr = "_40zvwv0", fr = "_40zvwv1", i5 = "_40zvwv2", El = "_40zvwv3", l5 = "_40zvwv4 _40zvwv3";
11503
+ var s5 = "_40zvwv6";
11504
+ var c5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory: a, onOpenChange: o, children: i }) => t === "collapsible" ? /* @__PURE__ */ r(u5, {
11499
11505
  title: e,
11500
11506
  preview: n,
11501
11507
  accessory: a,
11502
11508
  onOpenChange: o,
11503
11509
  children: i
11504
- }) : t === "inline" && n === void 0 ? /* @__PURE__ */ r(c5, {
11510
+ }) : t === "inline" && n === void 0 ? /* @__PURE__ */ r(d5, {
11505
11511
  title: e,
11506
11512
  accessory: a,
11507
11513
  children: i
@@ -11524,7 +11530,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11524
11530
  })
11525
11531
  ]
11526
11532
  }), /* @__PURE__ */ r("div", { children: i })]
11527
- }), c5 = ({ title: e, accessory: t, children: n }) => {
11533
+ }), d5 = ({ title: e, accessory: t, children: n }) => {
11528
11534
  const a = Le(), o = Le();
11529
11535
  return /* @__PURE__ */ r("div", {
11530
11536
  className: vr,
@@ -11534,11 +11540,11 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11534
11540
  /* @__PURE__ */ r("label", {
11535
11541
  id: a,
11536
11542
  htmlFor: o,
11537
- className: i5,
11543
+ className: l5,
11538
11544
  children: e
11539
11545
  }),
11540
11546
  /* @__PURE__ */ r("span", {
11541
- className: l5,
11547
+ className: s5,
11542
11548
  children: /* @__PURE__ */ r(No, {
11543
11549
  labelId: a,
11544
11550
  controlId: o,
@@ -11552,7 +11558,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11552
11558
  ]
11553
11559
  })
11554
11560
  });
11555
- }, d5 = ({ title: e, preview: t, accessory: n, onOpenChange: a, children: o }) => {
11561
+ }, u5 = ({ title: e, preview: t, accessory: n, onOpenChange: a, children: o }) => {
11556
11562
  const i = E();
11557
11563
  return /* @__PURE__ */ v(je.Item, {
11558
11564
  value: e,
@@ -11563,7 +11569,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11563
11569
  render: /* @__PURE__ */ r("div", {}),
11564
11570
  children: [
11565
11571
  /* @__PURE__ */ r(je.Trigger, {
11566
- className: o5,
11572
+ className: i5,
11567
11573
  "aria-label": i("editor.accessibility.toggleSection", { title: e })
11568
11574
  }),
11569
11575
  /* @__PURE__ */ r("span", {
@@ -11579,14 +11585,14 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11579
11585
  children: n
11580
11586
  }),
11581
11587
  /* @__PURE__ */ r("span", {
11582
- className: s5,
11583
- children: /* @__PURE__ */ r(a5, { size: "sm" })
11588
+ className: c5,
11589
+ children: /* @__PURE__ */ r(o5, { size: "sm" })
11584
11590
  })
11585
11591
  ]
11586
11592
  }), /* @__PURE__ */ r(je.Panel, { children: /* @__PURE__ */ r("div", { children: o }) })]
11587
11593
  });
11588
- }, u5 = ({ title: e, checked: t, onToggle: n, disabled: a, preview: o, children: i }) => {
11589
- const { expandSection: l, collapseAllSections: s } = jf(), { Switch: c } = F();
11594
+ }, h5 = ({ title: e, checked: t, onToggle: n, disabled: a, preview: o, children: i }) => {
11595
+ const { expandSection: l, collapseAllSections: s } = Xf(), { Switch: c } = F();
11590
11596
  return /* @__PURE__ */ r(Y, {
11591
11597
  title: e,
11592
11598
  layout: "collapsible",
@@ -11604,15 +11610,15 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11604
11610
  }),
11605
11611
  children: i
11606
11612
  });
11607
- }, h5 = {
11613
+ }, p5 = {
11608
11614
  horizontal: ["bottom", "top"],
11609
11615
  vertical: ["left", "right"]
11610
- }, p5 = {
11616
+ }, m5 = {
11611
11617
  left: "editor.axesPanel.position.left",
11612
11618
  right: "editor.axesPanel.position.right",
11613
11619
  top: "editor.axesPanel.position.top",
11614
11620
  bottom: "editor.axesPanel.position.bottom"
11615
- }, m5 = {
11621
+ }, g5 = {
11616
11622
  x: "editor.axesPanel.mainAxisSection.xAxis",
11617
11623
  y: "editor.axesPanel.mainAxisSection.yAxis"
11618
11624
  }, Ca = ({ axis: e, title: t, layout: n = "collapsible", preview: a }) => {
@@ -11620,12 +11626,12 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11620
11626
  if (!i) return null;
11621
11627
  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;
11622
11628
  if (h === "circular" || h === "radial" && f === void 0) return null;
11623
- const b = m !== void 0 && "reverse" in m ? m : void 0, C = m?.scaleType === "continuous" || m?.scaleType === "datetime", P = f !== void 0 && fo(i, e), k = f?.transform === "log", x = f?.domainMax ?? null, I = g5(f), w = (O, fe) => O.map((st) => ({
11629
+ const b = m !== void 0 && "reverse" in m ? m : void 0, C = m?.scaleType === "continuous" || m?.scaleType === "datetime", P = f !== void 0 && fo(i, e), k = f?.transform === "log", x = f?.domainMax ?? null, I = v5(f), w = (O, fe) => O.map((st) => ({
11624
11630
  value: st,
11625
11631
  label: fe(st)
11626
- })), A = i.guides.axes.find((O) => O.scaleAestheticKey === e)?.position, B = h5[A === "bottom" || A === "top" || A === void 0 && e === "x" ? "horizontal" : "vertical"], te = e === "y" ? ad(i.spec) : null, D = te === null ? void 0 : Z(i.spec.layers, te), S = i.guides.legends.drawn.some((O) => B.some((fe) => fe === O.position)), y = B.map((O) => ({
11632
+ })), A = i.guides.axes.find((O) => O.scaleAestheticKey === e)?.position, B = p5[A === "bottom" || A === "top" || A === void 0 && e === "x" ? "horizontal" : "vertical"], te = e === "y" ? ad(i.spec) : null, D = te === null ? void 0 : Z(i.spec.layers, te), S = i.guides.legends.drawn.some((O) => B.some((fe) => fe === O.position)), y = B.map((O) => ({
11627
11633
  value: O,
11628
- label: l(p5[O])
11634
+ label: l(m5[O])
11629
11635
  })), N = w(["auto", "edges"], (O) => l(O === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), G = w(["linear", "log"], (O) => l(O === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), ie = w([
11630
11636
  "auto",
11631
11637
  "zero",
@@ -11694,7 +11700,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11694
11700
  }));
11695
11701
  };
11696
11702
  return /* @__PURE__ */ r(Y, {
11697
- title: t ?? l(m5[e]),
11703
+ title: t ?? l(g5[e]),
11698
11704
  layout: n,
11699
11705
  preview: a,
11700
11706
  children: /* @__PURE__ */ v(oe, { children: [
@@ -11794,7 +11800,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11794
11800
  ] })
11795
11801
  ] })
11796
11802
  });
11797
- }, g5 = (e) => {
11803
+ }, v5 = (e) => {
11798
11804
  const t = e?.domainMin ?? null;
11799
11805
  return t === null ? "auto" : t === 0 ? "zero" : "custom";
11800
11806
  }, xa = (e, t) => {
@@ -11811,7 +11817,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11811
11817
  disabled: i
11812
11818
  })
11813
11819
  });
11814
- }, v5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11820
+ }, f5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11815
11821
  const a = q(), o = K(a), i = E(), { Switch: l } = F();
11816
11822
  if (!o) return null;
11817
11823
  const s = o.config.content, c = (u) => {
@@ -11837,7 +11843,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11837
11843
  onChange: d
11838
11844
  })] })
11839
11845
  });
11840
- }, wa = /^[a-z][a-z\d+.-]*:/i, f5 = {}, b5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11846
+ }, wa = /^[a-z][a-z\d+.-]*:/i, b5 = {}, y5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11841
11847
  const a = q(), o = K(a), i = E(), { Switch: l } = F();
11842
11848
  if (!o) return null;
11843
11849
  const s = o.config.content, c = (d) => {
@@ -11856,9 +11862,9 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11856
11862
  checked: s.showSource,
11857
11863
  onChange: c
11858
11864
  })
11859
- }), /* @__PURE__ */ r(y5, { source: s.source ?? f5 })] })
11865
+ }), /* @__PURE__ */ r(S5, { source: s.source ?? b5 })] })
11860
11866
  });
11861
- }, y5 = ({ source: e }) => {
11867
+ }, S5 = ({ source: e }) => {
11862
11868
  const t = q(), n = E(), { TextField: a } = F(), o = (c) => {
11863
11869
  const d = (c.label ?? "") !== "" || (c.url ?? "") !== "";
11864
11870
  t.commands.dispatch(new oc({ source: d ? c : null }), { transient: !0 });
@@ -11891,7 +11897,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11891
11897
  onCommit: t.commands.commit
11892
11898
  })
11893
11899
  })] });
11894
- }, S5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11900
+ }, C5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11895
11901
  const a = q(), o = K(a), i = E(), { Switch: l } = F();
11896
11902
  if (!o) return null;
11897
11903
  const s = o.config.content, c = (u) => {
@@ -11943,7 +11949,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11943
11949
  2.5,
11944
11950
  3,
11945
11951
  4
11946
- ], C5 = On.length / 2, x5 = { select: { target: "graph" } }, w5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11952
+ ], x5 = On.length / 2, w5 = { select: { target: "graph" } }, k5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11947
11953
  const a = q(), o = K(a), i = E(), { RadioGrid: l } = F(), s = lt(o);
11948
11954
  if (!o || !s) return null;
11949
11955
  const c = s.graph().get("textScale"), d = (p) => i("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${p}` }), u = On.map((p) => ({
@@ -11952,7 +11958,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11952
11958
  })), h = (p) => {
11953
11959
  const g = On.find((f) => `${f}` === p);
11954
11960
  if (g === void 0) return;
11955
- const m = Pe(o.spec.styles.overrides, x5, de(o.spec))?.declarations ?? {};
11961
+ const m = Pe(o.spec.styles.overrides, w5, de(o.spec))?.declarations ?? {};
11956
11962
  a.commands.dispatch(new Oe({
11957
11963
  list: "overrides",
11958
11964
  rule: {
@@ -11971,12 +11977,12 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
11971
11977
  children: /* @__PURE__ */ r(l, {
11972
11978
  value: `${c}`,
11973
11979
  options: u,
11974
- columns: C5,
11980
+ columns: x5,
11975
11981
  onChange: h,
11976
11982
  ariaLabel: i("editor.elementsPanel.textSizeSection.title")
11977
11983
  })
11978
11984
  });
11979
- }, k5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11985
+ }, T5 = ({ title: e, layout: t = "collapsible", preview: n }) => {
11980
11986
  const a = q(), o = K(a), i = E(), { Switch: l } = F();
11981
11987
  if (!o) return null;
11982
11988
  const s = o.config.content, c = (u) => {
@@ -12002,26 +12008,26 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12002
12008
  onChange: d
12003
12009
  })] })
12004
12010
  });
12005
- }, s3 = ({ children: e, ...t }) => /* @__PURE__ */ r(Il.Root, {
12011
+ }, c3 = ({ children: e, ...t }) => /* @__PURE__ */ r(Il.Root, {
12006
12012
  ...t,
12007
12013
  children: e ?? /* @__PURE__ */ v($, { children: [
12008
- /* @__PURE__ */ r(k5, {}),
12009
- /* @__PURE__ */ r(S5, {}),
12010
- /* @__PURE__ */ r(v5, {}),
12011
- /* @__PURE__ */ r(b5, {}),
12012
- /* @__PURE__ */ r(w5, {})
12014
+ /* @__PURE__ */ r(T5, {}),
12015
+ /* @__PURE__ */ r(C5, {}),
12016
+ /* @__PURE__ */ r(f5, {}),
12017
+ /* @__PURE__ */ r(y5, {}),
12018
+ /* @__PURE__ */ r(k5, {})
12013
12019
  ] })
12014
- }), c3 = ({ children: e, ...t }) => /* @__PURE__ */ r(Il.Root, {
12020
+ }), d3 = ({ children: e, ...t }) => /* @__PURE__ */ r(Il.Root, {
12015
12021
  ...t,
12016
12022
  children: e ?? /* @__PURE__ */ v($, { children: [/* @__PURE__ */ r(Ca, { axis: "x" }), /* @__PURE__ */ r(Ca, { axis: "y" })] })
12017
- }), jt = (e) => `${e}px`, Ol = (e) => `${Math.round(e * 100)}%`, T5 = (e) => `${e}°`, A5 = 24, P5 = { select: { target: "graph" } }, ka = ["dim", "desaturate"], d3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12023
+ }), jt = (e) => `${e}px`, Ol = (e) => `${Math.round(e * 100)}%`, A5 = (e) => `${e}°`, P5 = 24, L5 = { select: { target: "graph" } }, ka = ["dim", "desaturate"], u3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12018
12024
  const a = q(), o = K(a), i = E(), { Slider: l, ToggleGroup: s } = F(), c = lt(o);
12019
12025
  if (!o || !c) return null;
12020
12026
  const d = c.graph().get("cornerRadius"), u = sd(o.spec), h = ka.map((m) => ({
12021
12027
  value: m,
12022
12028
  label: i(m === "dim" ? "editor.highlighting.highlightStyle.tint" : "editor.highlighting.highlightStyle.gray")
12023
12029
  })), p = (m) => {
12024
- const f = Pe(o.spec.styles.overrides, P5, de(o.spec))?.declarations ?? {};
12030
+ const f = Pe(o.spec.styles.overrides, L5, de(o.spec))?.declarations ?? {};
12025
12031
  a.commands.dispatch(new Oe({
12026
12032
  list: "overrides",
12027
12033
  rule: {
@@ -12045,7 +12051,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12045
12051
  children: /* @__PURE__ */ r(l, {
12046
12052
  value: d,
12047
12053
  min: 0,
12048
- max: A5,
12054
+ max: P5,
12049
12055
  step: 1,
12050
12056
  formatValue: jt,
12051
12057
  onChange: p,
@@ -12060,7 +12066,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12060
12066
  })
12061
12067
  })] })
12062
12068
  });
12063
- }, L5 = 0.05, u3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12069
+ }, I5 = 0.05, h3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12064
12070
  const a = q(), o = K(a), i = E(), { Slider: l, ToggleGroup: s } = F(), c = o ? po(o.spec.layers, "bar") : void 0, d = Ml(o, c?.id ?? null, "bar");
12065
12071
  if (!o || !c || o.coordSystem.type === "polar" && o.coordSystem.bandAxis === null) return null;
12066
12072
  const u = (f) => {
@@ -12088,7 +12094,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12088
12094
  value: g,
12089
12095
  min: Qs,
12090
12096
  max: Js,
12091
- step: L5,
12097
+ step: I5,
12092
12098
  formatValue: Ol,
12093
12099
  onChange: u,
12094
12100
  onCommit: a.commands.commit
@@ -12128,7 +12134,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12128
12134
  floodOpacity: "0.16"
12129
12135
  })]
12130
12136
  }) })] });
12131
- }, Zt = "qdaoth0", I5 = (e) => /* @__PURE__ */ v(L, {
12137
+ }, Zt = "qdaoth0", E5 = (e) => /* @__PURE__ */ v(L, {
12132
12138
  viewBox: "0 0 31 33",
12133
12139
  ...e,
12134
12140
  children: [/* @__PURE__ */ r(Xt, { children: /* @__PURE__ */ r("path", {
@@ -12140,7 +12146,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12140
12146
  fill: "currentColor",
12141
12147
  d: "M12.0591 7.11C11.5767 7.11 11.1857 6.71899 11.1857 6.23664C11.1857 5.7543 11.5767 5.36328 12.0591 5.36328H24.8684C25.3507 5.36328 25.7417 5.7543 25.7417 6.23664V19.0459C25.7417 19.5283 25.3507 19.9193 24.8684 19.9193C24.386 19.9193 23.995 19.5283 23.995 19.0459V8.34512L6.8542 25.4859C6.51313 25.827 5.96015 25.827 5.61908 25.4859C5.27801 25.1448 5.27801 24.5919 5.61908 24.2508L22.7599 7.11H12.0591Z"
12142
12148
  })]
12143
- }), E5 = (e) => /* @__PURE__ */ r(L, {
12149
+ }), M5 = (e) => /* @__PURE__ */ r(L, {
12144
12150
  viewBox: "0 0 32 32",
12145
12151
  ...e,
12146
12152
  children: /* @__PURE__ */ v(Xt, { children: [/* @__PURE__ */ r("path", {
@@ -12150,7 +12156,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12150
12156
  fill: "currentColor",
12151
12157
  d: "M24.25 9C24.25 8.30964 23.6904 7.75 23 7.75H9C8.30964 7.75 7.75 8.30964 7.75 9V23C7.75 23.6904 8.30964 24.25 9 24.25H23C23.6904 24.25 24.25 23.6904 24.25 23V9ZM25.75 23C25.75 24.5188 24.5188 25.75 23 25.75H9C7.48122 25.75 6.25 24.5188 6.25 23V9C6.25 7.48122 7.48122 6.25 9 6.25H23C24.5188 6.25 25.75 7.48122 25.75 9V23Z"
12152
12158
  })] })
12153
- }), M5 = (e) => /* @__PURE__ */ v(L, {
12159
+ }), O5 = (e) => /* @__PURE__ */ v(L, {
12154
12160
  viewBox: "0 0 32 33",
12155
12161
  ...e,
12156
12162
  children: [/* @__PURE__ */ r(Xt, { children: /* @__PURE__ */ r("path", {
@@ -12164,7 +12170,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12164
12170
  clipRule: "evenodd",
12165
12171
  d: "M25.25 22C25.25 20.7574 24.2426 19.75 23 19.75C21.7574 19.75 20.75 20.7574 20.75 22C20.75 23.2426 21.7574 24.25 23 24.25C24.2426 24.25 25.25 23.2426 25.25 22ZM23 18.25C25.0711 18.25 26.75 19.9289 26.75 22C26.75 24.0711 25.0711 25.75 23 25.75C20.9289 25.75 19.25 24.0711 19.25 22C19.25 19.9289 20.9289 18.25 23 18.25ZM11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25C10.2426 11.25 11.25 10.2426 11.25 9ZM9.75 12.675C11.4617 12.3275 12.75 10.8142 12.75 9C12.75 6.92893 11.0711 5.25 9 5.25C6.92893 5.25 5.25 6.92893 5.25 9C5.25 10.8142 6.53832 12.3275 8.25 12.675L8.25 24C8.25 24.4142 8.58579 24.75 9 24.75L16 24.75C16.4142 24.75 16.75 24.4142 16.75 24L16.75 7.75L22.25 7.75L22.25 14.1893L21.0303 12.9697C20.7374 12.6768 20.2626 12.6768 19.9697 12.9697C19.6768 13.2626 19.6768 13.7374 19.9697 14.0303L22.4697 16.5303C22.7626 16.8232 23.2374 16.8232 23.5303 16.5303L26.0303 14.0303C26.3232 13.7374 26.3232 13.2626 26.0303 12.9697C25.7374 12.6768 25.2626 12.6768 24.9697 12.9697L23.75 14.1893L23.75 7C23.75 6.58579 23.4142 6.25 23 6.25L16 6.25C15.5858 6.25 15.25 6.58579 15.25 7L15.25 23.25L9.75 23.25L9.75 12.675Z"
12166
12172
  })]
12167
- }), O5 = (e) => /* @__PURE__ */ v(L, {
12173
+ }), R5 = (e) => /* @__PURE__ */ v(L, {
12168
12174
  viewBox: "0 0 32 33",
12169
12175
  ...e,
12170
12176
  children: [/* @__PURE__ */ r(Xt, { children: /* @__PURE__ */ r("path", {
@@ -12174,21 +12180,21 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12174
12180
  fill: "currentColor",
12175
12181
  d: "M8.41371 5H20.7271C21.1595 5 21.5325 5 21.8398 5.02507C22.1641 5.05157 22.4867 5.11007 22.7971 5.26822C23.2601 5.50416 23.6366 5.88064 23.8726 6.3437C24.0307 6.65409 24.0892 6.97666 24.1157 7.30097C24.1408 7.60823 24.1408 7.98127 24.1408 8.41369V9.10155C24.1408 9.55465 23.7735 9.92195 23.3205 9.92195C22.8674 9.92195 22.5001 9.55465 22.5001 9.10155V8.44533C22.5001 7.97237 22.4995 7.66699 22.4805 7.43457C22.4623 7.21172 22.4314 7.12909 22.4107 7.08853C22.3321 6.93418 22.2066 6.80869 22.0522 6.73004C22.0117 6.70938 21.9291 6.67847 21.7062 6.66026C21.4738 6.64127 21.1684 6.64063 20.6954 6.64063H15.3907V24.6877H20.0392C20.4922 24.6877 20.8595 25.0549 20.8595 25.508C20.8595 25.961 20.4922 26.3283 20.0392 26.3283H9.10159C8.64854 26.3283 8.28127 25.961 8.28127 25.508C8.28127 25.0549 8.64854 24.6877 9.10159 24.6877H13.7501V6.64063H8.44533C7.97238 6.64063 7.66699 6.64127 7.43457 6.66026C7.21172 6.67847 7.1291 6.70938 7.08854 6.73004C6.93418 6.80869 6.80869 6.93418 6.73004 7.08853C6.70938 7.12909 6.67847 7.21172 6.66026 7.43457C6.64127 7.66699 6.64063 7.97237 6.64063 8.44533V9.10155C6.64063 9.55465 6.27337 9.92195 5.82032 9.92195C5.36727 9.92195 5 9.55465 5 9.10155V8.41371C5 7.98128 5 7.60823 5.02508 7.30097C5.05157 6.97666 5.11007 6.65409 5.26823 6.3437C5.50417 5.88064 5.88064 5.50416 6.3437 5.26822C6.65409 5.11007 6.97666 5.05157 7.30097 5.02507C7.60824 5 7.98129 5 8.41371 5Z"
12176
12182
  })]
12177
- }), R5 = {
12183
+ }), N5 = {
12178
12184
  x: 0.5,
12179
12185
  y: 0.5
12180
- }, N5 = 0.2, D5 = {
12186
+ }, D5 = 0.2, _5 = {
12181
12187
  x: 0.375,
12182
12188
  y: 0.25,
12183
12189
  width: 0.25,
12184
12190
  height: 0.5
12185
- }, _5 = { zOrder: "background" }, F5 = {
12191
+ }, F5 = { zOrder: "background" }, z5 = {
12186
12192
  x: 0.4,
12187
12193
  y: 0.6
12188
- }, z5 = {
12194
+ }, B5 = {
12189
12195
  x: 0.6,
12190
12196
  y: 0.4
12191
- }, B5 = "relative-difference", h3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12197
+ }, H5 = "relative-difference", p3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12192
12198
  const a = q(), o = K(a), i = E(), { Button: l } = F();
12193
12199
  if (!o) return null;
12194
12200
  const s = () => {
@@ -12196,12 +12202,12 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12196
12202
  kind: "text",
12197
12203
  annotation: {
12198
12204
  ...Tc,
12199
- content: H5(i("editor.annotatePanel.callOutSection.text")),
12205
+ content: G5(i("editor.annotatePanel.callOutSection.text")),
12200
12206
  at: {
12201
12207
  anchorType: "panel",
12202
- ...R5
12208
+ ...N5
12203
12209
  },
12204
- width: N5
12210
+ width: D5
12205
12211
  }
12206
12212
  }));
12207
12213
  }, c = () => {
@@ -12211,11 +12217,11 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12211
12217
  ...$s,
12212
12218
  start: {
12213
12219
  anchorType: "panel",
12214
- ...F5
12220
+ ...z5
12215
12221
  },
12216
12222
  end: {
12217
12223
  anchorType: "panel",
12218
- ...z5
12224
+ ...B5
12219
12225
  }
12220
12226
  }
12221
12227
  }));
@@ -12224,10 +12230,10 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12224
12230
  kind: "shape",
12225
12231
  annotation: {
12226
12232
  ...nc,
12227
- ..._5,
12233
+ ...F5,
12228
12234
  region: {
12229
12235
  anchorType: "panel",
12230
- ...D5
12236
+ ..._5
12231
12237
  }
12232
12238
  }
12233
12239
  }));
@@ -12238,7 +12244,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12238
12244
  annotation: {
12239
12245
  ...Wa,
12240
12246
  ...p,
12241
- label: B5
12247
+ label: H5
12242
12248
  }
12243
12249
  }));
12244
12250
  }, h = o.coordSystem.type === "cartesian";
@@ -12249,31 +12255,31 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12249
12255
  children: /* @__PURE__ */ v(Pl, { children: [
12250
12256
  /* @__PURE__ */ r(l, {
12251
12257
  variant: "tile",
12252
- icon: /* @__PURE__ */ r(O5, { size: "xl" }),
12258
+ icon: /* @__PURE__ */ r(R5, { size: "xl" }),
12253
12259
  label: i("editor.annotatePanel.callOutSection.text"),
12254
12260
  onClick: s
12255
12261
  }),
12256
12262
  /* @__PURE__ */ r(l, {
12257
12263
  variant: "tile",
12258
- icon: /* @__PURE__ */ r(I5, { size: "xl" }),
12264
+ icon: /* @__PURE__ */ r(E5, { size: "xl" }),
12259
12265
  label: i("editor.annotatePanel.callOutSection.arrow"),
12260
12266
  onClick: c
12261
12267
  }),
12262
12268
  /* @__PURE__ */ r(l, {
12263
12269
  variant: "tile",
12264
- icon: /* @__PURE__ */ r(E5, { size: "xl" }),
12270
+ icon: /* @__PURE__ */ r(M5, { size: "xl" }),
12265
12271
  label: i("editor.annotatePanel.callOutSection.box"),
12266
12272
  onClick: d
12267
12273
  }),
12268
12274
  h && /* @__PURE__ */ r(l, {
12269
12275
  variant: "tile",
12270
- icon: /* @__PURE__ */ r(M5, { size: "xl" }),
12276
+ icon: /* @__PURE__ */ r(O5, { size: "xl" }),
12271
12277
  label: i("editor.annotatePanel.callOutSection.difference"),
12272
12278
  onClick: u
12273
12279
  })
12274
12280
  ] })
12275
12281
  });
12276
- }, H5 = (e) => ({
12282
+ }, G5 = (e) => ({
12277
12283
  type: "doc",
12278
12284
  content: [{
12279
12285
  type: "paragraph",
@@ -12282,7 +12288,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12282
12288
  text: e
12283
12289
  }]
12284
12290
  }]
12285
- }), p3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12291
+ }), m3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12286
12292
  const a = q(), o = K(a), i = E(), { ToggleGroup: l } = F();
12287
12293
  if (!o) return null;
12288
12294
  const s = zt(o.spec);
@@ -12308,13 +12314,13 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12308
12314
  ariaLabel: i("editor.graphPanel.comboSection.title")
12309
12315
  })
12310
12316
  });
12311
- }, G5 = 0.1, V5 = 20, m3 = ({ title: e, preview: t }) => {
12317
+ }, V5 = 0.1, $5 = 20, g3 = ({ title: e, preview: t }) => {
12312
12318
  const n = q(), a = K(n), o = E(), { NumberField: i, TextField: l } = F();
12313
12319
  if (!a || a.coordSystem.type === "polar") return null;
12314
12320
  const s = $c(a.spec.layers), c = e ?? o("editor.annotationsPanel.goalSection.title"), d = id(s?.mapping.y), u = typeof d == "number" ? d : null, h = (m) => {
12315
12321
  const f = new Pc({
12316
12322
  showGoalLine: m,
12317
- value: $5(a),
12323
+ value: W5(a),
12318
12324
  ...s !== void 0 && { layerId: s.id }
12319
12325
  });
12320
12326
  n.commands.dispatch(f);
@@ -12333,7 +12339,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12333
12339
  });
12334
12340
  n.commands.dispatch(f, { transient: !0 });
12335
12341
  };
12336
- return /* @__PURE__ */ r(u5, {
12342
+ return /* @__PURE__ */ r(h5, {
12337
12343
  title: c,
12338
12344
  preview: t,
12339
12345
  checked: s !== void 0,
@@ -12358,14 +12364,14 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12358
12364
  })
12359
12365
  })] })
12360
12366
  });
12361
- }, $5 = (e) => {
12367
+ }, W5 = (e) => {
12362
12368
  const t = (e.scales.y?.domain ?? []).filter((l) => typeof l == "number");
12363
12369
  if (t.length === 0) return 0;
12364
12370
  const n = Math.max(...t), a = n - Math.min(...t), o = a > 0 ? a : Math.abs(n);
12365
12371
  if (o === 0) return 0;
12366
- const i = Math.min(V5, Math.max(0, 1 - Math.floor(Math.log10(o))));
12367
- return Number((n + o * G5).toFixed(i));
12368
- }, g3 = ({ layerId: e, title: t, layout: n = "collapsible", preview: a }) => {
12372
+ const i = Math.min($5, Math.max(0, 1 - Math.floor(Math.log10(o))));
12373
+ return Number((n + o * V5).toFixed(i));
12374
+ }, v3 = ({ layerId: e, title: t, layout: n = "collapsible", preview: a }) => {
12369
12375
  const o = q(), i = K(o), l = E(), { Switch: s } = F();
12370
12376
  if (!i) return null;
12371
12377
  const c = e === void 0 ? i.layers[0] : Z(i.layers, e);
@@ -12435,7 +12441,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12435
12441
  })
12436
12442
  ] })
12437
12443
  });
12438
- }, W5 = 3, v3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12444
+ }, U5 = 3, f3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12439
12445
  const a = q(), o = K(a), i = E(), { RadioGrid: l } = F(), s = M(() => Qe.map(({ name: h, icon: p, summary: g }) => ({
12440
12446
  value: h,
12441
12447
  label: i(`editor.graphTypes.${h}`),
@@ -12454,12 +12460,12 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12454
12460
  children: /* @__PURE__ */ r(l, {
12455
12461
  value: d?.name ?? "",
12456
12462
  options: s,
12457
- columns: W5,
12463
+ columns: U5,
12458
12464
  onChange: u,
12459
12465
  ariaLabel: i("editor.graphPanel.graphTypeSection.title")
12460
12466
  })
12461
12467
  });
12462
- }, f3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12468
+ }, b3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12463
12469
  const a = q(), o = K(a), i = E(), { Slider: l, Switch: s, ToggleGroup: c } = F(), d = lt(o), u = o !== null && d !== null ? Ii(o, d) : null;
12464
12470
  if (u === null) return null;
12465
12471
  const h = u.axes.some((b) => b.showGrid), p = At.map((b) => ({
@@ -12481,7 +12487,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12481
12487
  layout: t,
12482
12488
  preview: n,
12483
12489
  children: /* @__PURE__ */ v(oe, { children: [u.axes.map((b) => /* @__PURE__ */ r(T, {
12484
- label: i(U5(b)),
12490
+ label: i(K5(b)),
12485
12491
  children: /* @__PURE__ */ r(s, {
12486
12492
  checked: b.showGrid,
12487
12493
  onChange: g(b.scaleAestheticKey)
@@ -12506,21 +12512,21 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12506
12512
  })
12507
12513
  })] })] })
12508
12514
  });
12509
- }, U5 = (e) => e.geometry === "radial" ? "editor.graphPanel.gridSection.rings" : e.geometry === "circular" ? "editor.graphPanel.gridSection.spokes" : e.scaleAestheticKey === "x" ? "editor.graphPanel.gridSection.verticalGridLines" : "editor.graphPanel.gridSection.horizontalGridLines", K5 = "total", Rl = [
12515
+ }, K5 = (e) => e.geometry === "radial" ? "editor.graphPanel.gridSection.rings" : e.geometry === "circular" ? "editor.graphPanel.gridSection.spokes" : e.scaleAestheticKey === "x" ? "editor.graphPanel.gridSection.verticalGridLines" : "editor.graphPanel.gridSection.horizontalGridLines", q5 = "total", Rl = [
12510
12516
  "total",
12511
12517
  "average",
12512
12518
  "current"
12513
- ], q5 = ["total"], Ta = ["previous", "first"], Aa = [
12519
+ ], j5 = ["total"], Ta = ["previous", "first"], Aa = [
12514
12520
  "auto",
12515
12521
  "small",
12516
12522
  "medium",
12517
12523
  "large"
12518
- ], b3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12524
+ ], y3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12519
12525
  const a = q(), o = K(a), i = E(), { Switch: l, ToggleGroup: s } = F();
12520
12526
  if (!o) return null;
12521
12527
  const c = o.config.headline, d = c.show !== "none", u = o.coordSystem, h = u.type === "polar", p = u.type === "polar" && u.innerRadius > 0, g = o.layers.some((D) => D.summary.grandTotal !== void 0);
12522
12528
  if (h && !g) return null;
12523
- const m = h ? q5 : Rl, f = o.guides.headline, b = f?.kind === "perGroup" && f.items.some((D) => D.comparison !== null), C = m.map((D) => ({
12529
+ const m = h ? j5 : Rl, f = o.guides.headline, b = f?.kind === "perGroup" && f.items.some((D) => D.comparison !== null), C = m.map((D) => ({
12524
12530
  value: D,
12525
12531
  label: i(`editor.graphPanel.headlineNumberSection.metrics.${D}`)
12526
12532
  })), P = Ta.map((D) => ({
@@ -12536,7 +12542,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12536
12542
  value: "center",
12537
12543
  label: i("editor.graphPanel.headlineNumberSection.position.center")
12538
12544
  }], I = (D) => {
12539
- a.commands.dispatch(new Ar({ show: D ? K5 : "none" }));
12545
+ a.commands.dispatch(new Ar({ show: D ? q5 : "none" }));
12540
12546
  }, w = (D) => {
12541
12547
  const S = m.find((y) => y === D);
12542
12548
  S && a.commands.dispatch(new Ar({ show: S }));
@@ -12552,7 +12558,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12552
12558
  return /* @__PURE__ */ r(Y, {
12553
12559
  title: e ?? i("editor.graphPanel.headlineNumberSection.title"),
12554
12560
  layout: t,
12555
- preview: n ?? j5(i, c.show),
12561
+ preview: n ?? X5(i, c.show),
12556
12562
  children: /* @__PURE__ */ v(oe, { children: [/* @__PURE__ */ r(T, {
12557
12563
  label: i("editor.graphPanel.headlineNumberSection.toggle"),
12558
12564
  children: /* @__PURE__ */ r(l, {
@@ -12596,7 +12602,7 @@ var s5 = "_40zvwv8", Y = ({ title: e, layout: t = "fixed", preview: n, accessory
12596
12602
  })
12597
12603
  ] })] })
12598
12604
  });
12599
- }, j5 = (e, t) => {
12605
+ }, X5 = (e, t) => {
12600
12606
  const n = Rl.find((a) => a === t);
12601
12607
  return n && e(`editor.graphPanel.headlineNumberSection.metrics.${n}`);
12602
12608
  };
@@ -12611,7 +12617,7 @@ var dn = [
12611
12617
  "start",
12612
12618
  "center",
12613
12619
  "end"
12614
- ], X5 = {
12620
+ ], Z5 = {
12615
12621
  row: {
12616
12622
  start: "left",
12617
12623
  end: "right"
@@ -12624,7 +12630,7 @@ var dn = [
12624
12630
  "auto",
12625
12631
  "pill",
12626
12632
  "direct"
12627
- ], y3 = ({ positions: e, title: t, layout: n = "collapsible", preview: a }) => {
12633
+ ], S3 = ({ positions: e, title: t, layout: n = "collapsible", preview: a }) => {
12628
12634
  const o = q(), i = K(o), l = E(), { ToggleGroup: s } = F(), c = Ma();
12629
12635
  if (!i) return null;
12630
12636
  const d = i.config.legend.position, u = e ?? dn, h = i.guides.legends.drawn[0], p = Oc({
@@ -12645,7 +12651,7 @@ var dn = [
12645
12651
  }, x = (N) => {
12646
12652
  const G = La.find((ie) => ie === N);
12647
12653
  G && o.commands.dispatch(new pc({ display: G }));
12648
- }, I = h?.position === "left" || h?.position === "right" ? "column" : "row", w = I === "row" ? "ltr" : c, A = (N) => l(N === "start" || N === "end" ? `editor.graphPanel.legendSection.${X5[I][N]}` : `editor.graphPanel.legendSection.align.${N}`), B = Pa.map((N) => ({
12654
+ }, I = h?.position === "left" || h?.position === "right" ? "column" : "row", w = I === "row" ? "ltr" : c, A = (N) => l(N === "start" || N === "end" ? `editor.graphPanel.legendSection.${Z5[I][N]}` : `editor.graphPanel.legendSection.align.${N}`), B = Pa.map((N) => ({
12649
12655
  value: N,
12650
12656
  label: A(N)
12651
12657
  })), te = La.map((N) => ({
@@ -12693,15 +12699,15 @@ var dn = [
12693
12699
  })
12694
12700
  ] })
12695
12701
  });
12696
- }, Z5 = 1, Y5 = 20, J5 = 0.5, Nl = ({ layerId: e }) => {
12702
+ }, Y5 = 1, J5 = 20, Q5 = 0.5, Nl = ({ layerId: e }) => {
12697
12703
  const t = q(), n = K(t), { Slider: a } = F(), o = Ml(n, e, "point");
12698
12704
  if (!n) return null;
12699
12705
  const i = Z(n.layers, e)?.data?.findFirst((c) => (o?.get("size", c) ?? 0) > 0) ?? void 0, l = o?.get("size", i) ?? $a;
12700
12706
  return /* @__PURE__ */ r(a, {
12701
12707
  value: l,
12702
- min: Z5,
12703
- max: Y5,
12704
- step: J5,
12708
+ min: Y5,
12709
+ max: J5,
12710
+ step: Q5,
12705
12711
  formatValue: jt,
12706
12712
  onChange: (c) => {
12707
12713
  const d = new Wn({
@@ -12712,7 +12718,7 @@ var dn = [
12712
12718
  },
12713
12719
  onCommit: t.commands.commit
12714
12720
  });
12715
- }, S3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12721
+ }, C3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12716
12722
  const a = q(), o = K(a), i = E(), { Select: l, Slider: s, Switch: c, ToggleGroup: d } = F(), u = lt(o), h = po(o?.spec.layers ?? [], "line", "area"), p = o && u && h ? lr(o, u, h.id) : null;
12717
12723
  if (!o || !p) return null;
12718
12724
  const g = p.missingValueOptions.map((I) => ({
@@ -12733,7 +12739,8 @@ var dn = [
12733
12739
  }, b = (I) => {
12734
12740
  a.commands.dispatch(new Ce({
12735
12741
  layerId: p.layerId,
12736
- showFill: I
12742
+ showFill: I,
12743
+ drawnFillAlpha: p.drawnFillAlpha
12737
12744
  }));
12738
12745
  }, C = (I) => {
12739
12746
  a.commands.dispatch(new eo({
@@ -12817,26 +12824,26 @@ var dn = [
12817
12824
  })
12818
12825
  ] })
12819
12826
  });
12820
- }, Rn = "\0none", Q5 = [
12827
+ }, Rn = "\0none", eb = [
12821
12828
  "x",
12822
12829
  "y",
12823
12830
  "color",
12824
12831
  "size",
12825
12832
  "label"
12826
- ], eb = {
12833
+ ], tb = {
12827
12834
  x: "editor.graphPanel.mappingSection.x",
12828
12835
  y: "editor.graphPanel.mappingSection.y",
12829
12836
  color: "editor.graphPanel.mappingSection.color",
12830
12837
  size: "editor.graphPanel.mappingSection.size",
12831
12838
  label: "editor.graphPanel.mappingSection.label"
12832
- }, C3 = ({ title: e, layout: t = "collapsible" }) => {
12833
- const n = q(), a = K(n), o = E(), { Select: i } = F(), l = o("editor.graphPanel.mappingSection.none"), s = a?.spec, c = M(() => s === void 0 ? [] : dd(s, Q5).map(({ aesthetic: d, variables: u, required: h }) => {
12839
+ }, x3 = ({ title: e, layout: t = "collapsible" }) => {
12840
+ const n = q(), a = K(n), o = E(), { Select: i } = F(), l = o("editor.graphPanel.mappingSection.none"), s = a?.spec, c = M(() => s === void 0 ? [] : dd(s, eb).map(({ aesthetic: d, variables: u, required: h }) => {
12834
12841
  const p = ud(s.mapping, d);
12835
12842
  return {
12836
12843
  aesthetic: d,
12837
- label: o(eb[d]),
12844
+ label: o(tb[d]),
12838
12845
  value: p ?? (h ? null : Rn),
12839
- options: tb(u, p, h ? null : l),
12846
+ options: nb(u, p, h ? null : l),
12840
12847
  chooseColumn: (g) => {
12841
12848
  n.commands.dispatch(new gc({
12842
12849
  aesthetic: d,
@@ -12863,7 +12870,7 @@ var dn = [
12863
12870
  })
12864
12871
  }, d)) })
12865
12872
  }) : null;
12866
- }, tb = (e, t, n) => {
12873
+ }, nb = (e, t, n) => {
12867
12874
  const a = t !== null && !e.includes(t) ? [t, ...e] : e;
12868
12875
  return [...n === null ? [] : [{
12869
12876
  value: Rn,
@@ -12872,7 +12879,7 @@ var dn = [
12872
12879
  value: o,
12873
12880
  label: o
12874
12881
  }))];
12875
- }, nb = "k", rb = 2, ab = 0, ob = 5, Nn = [
12882
+ }, rb = "k", ab = 2, ob = 0, ib = 5, Nn = [
12876
12883
  {
12877
12884
  value: "k",
12878
12885
  labelKey: "thousands"
@@ -12885,10 +12892,10 @@ var dn = [
12885
12892
  value: "b",
12886
12893
  labelKey: "billions"
12887
12894
  }
12888
- ], ib = ["auto", "none"], x3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12895
+ ], lb = ["auto", "none"], w3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12889
12896
  const a = q(), o = K(a), i = E(), { NumberField: l, ToggleGroup: s } = F();
12890
12897
  if (!o) return null;
12891
- const { abbreviation: c, decimals: d } = o.config.numberFormat, u = lb(c) !== void 0, h = d !== "auto", p = (k) => k.map((x) => ({
12898
+ const { abbreviation: c, decimals: d } = o.config.numberFormat, u = sb(c) !== void 0, h = d !== "auto", p = (k) => k.map((x) => ({
12892
12899
  value: x,
12893
12900
  label: i(`editor.graphPanel.numberFormat.options.${x}`)
12894
12901
  })), g = Nn.map(({ value: k, labelKey: x }) => ({
@@ -12897,13 +12904,13 @@ var dn = [
12897
12904
  })), m = (k) => {
12898
12905
  a.commands.dispatch(new vc({ abbreviation: k }));
12899
12906
  }, f = (k) => {
12900
- const x = ib.find((I) => I === k);
12901
- m(x ?? nb);
12907
+ const x = lb.find((I) => I === k);
12908
+ m(x ?? rb);
12902
12909
  }, b = (k) => {
12903
12910
  const x = Nn.find((I) => I.value === k);
12904
12911
  x && m(x.value);
12905
12912
  }, C = (k) => {
12906
- a.commands.dispatch(new Pr({ decimals: k === "custom" ? rb : "auto" }));
12913
+ a.commands.dispatch(new Pr({ decimals: k === "custom" ? ab : "auto" }));
12907
12914
  }, P = (k) => {
12908
12915
  k !== null && a.commands.dispatch(new Pr({ decimals: k }), { transient: !0 });
12909
12916
  };
@@ -12944,18 +12951,18 @@ var dn = [
12944
12951
  label: i("editor.graphPanel.numberFormat.valueLabel"),
12945
12952
  children: /* @__PURE__ */ r(l, {
12946
12953
  value: d,
12947
- min: ab,
12948
- max: ob,
12954
+ min: ob,
12955
+ max: ib,
12949
12956
  onChange: P,
12950
12957
  onCommit: a.commands.commit
12951
12958
  })
12952
12959
  })
12953
12960
  ] })
12954
12961
  });
12955
- }, lb = (e) => Nn.find((t) => t.value === e), w3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12962
+ }, sb = (e) => Nn.find((t) => t.value === e), k3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12956
12963
  const a = K(q()), o = E();
12957
12964
  if (!a) return null;
12958
- const i = sb(a.spec.layers);
12965
+ const i = cb(a.spec.layers);
12959
12966
  return i ? /* @__PURE__ */ r(Y, {
12960
12967
  title: e ?? o("editor.graphPanel.pointSize.label"),
12961
12968
  layout: t,
@@ -12965,10 +12972,10 @@ var dn = [
12965
12972
  children: /* @__PURE__ */ r(Nl, { layerId: i.id })
12966
12973
  }) })
12967
12974
  }) : null;
12968
- }, sb = (e) => {
12975
+ }, cb = (e) => {
12969
12976
  const t = gn(e, "line", "area");
12970
12977
  return gn(e, "point").find((n) => !vo(n, t));
12971
- }, cb = 0.9, db = 360, ub = 0.05, hb = 15, k3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12978
+ }, db = 0.9, ub = 360, hb = 0.05, pb = 15, T3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
12972
12979
  const a = q(), o = K(a), i = E(), { Slider: l } = F();
12973
12980
  if (!o || o.spec.coords.coordType !== "polar") return null;
12974
12981
  const { innerRadius: s, startAngle: c } = o.spec.coords.params, d = (h) => {
@@ -12985,8 +12992,8 @@ var dn = [
12985
12992
  children: /* @__PURE__ */ r(l, {
12986
12993
  value: s,
12987
12994
  min: 0,
12988
- max: cb,
12989
- step: ub,
12995
+ max: db,
12996
+ step: hb,
12990
12997
  formatValue: Ol,
12991
12998
  onChange: d,
12992
12999
  onCommit: a.commands.commit
@@ -12996,15 +13003,15 @@ var dn = [
12996
13003
  children: /* @__PURE__ */ r(l, {
12997
13004
  value: c,
12998
13005
  min: 0,
12999
- max: db - 1,
13000
- step: hb,
13001
- formatValue: T5,
13006
+ max: ub - 1,
13007
+ step: pb,
13008
+ formatValue: A5,
13002
13009
  onChange: u,
13003
13010
  onCommit: a.commands.commit
13004
13011
  })
13005
13012
  })] })
13006
13013
  });
13007
- }, pb = (e) => /* @__PURE__ */ v(L, {
13014
+ }, mb = (e) => /* @__PURE__ */ v(L, {
13008
13015
  ...e,
13009
13016
  children: [
13010
13017
  /* @__PURE__ */ r("path", {
@@ -13058,10 +13065,10 @@ var dn = [
13058
13065
  "logarithmic",
13059
13066
  "power",
13060
13067
  "loess"
13061
- ], mb = "linear", T3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
13068
+ ], gb = "linear", A3 = ({ title: e, layout: t = "collapsible", preview: n }) => {
13062
13069
  const a = q(), o = K(a), i = E(), { Select: l, Switch: s } = F(), { options: c, findValue: d } = cr(o);
13063
13070
  if (!o || o.coordSystem.type === "polar") return null;
13064
- const u = Kc(o.spec.layers), h = Vc(o.spec.layers), p = u?.stat.type === "smooth" ? u.stat.method : mb, g = gb(h), m = Ea.map((x) => ({
13071
+ const u = Kc(o.spec.layers), h = Vc(o.spec.layers), p = u?.stat.type === "smooth" ? u.stat.method : gb, g = vb(h), m = Ea.map((x) => ({
13065
13072
  value: x,
13066
13073
  label: i(`editor.annotationsPanel.trendType.options.${x}`)
13067
13074
  })), f = (x, I = {}) => {
@@ -13103,7 +13110,7 @@ var dn = [
13103
13110
  }),
13104
13111
  /* @__PURE__ */ r(T, {
13105
13112
  label: i("editor.annotationsPanel.trendsAndAveragesSection.average"),
13106
- icon: /* @__PURE__ */ r(pb, { size: "lg" }),
13113
+ icon: /* @__PURE__ */ r(mb, { size: "lg" }),
13107
13114
  children: /* @__PURE__ */ r(s, {
13108
13115
  checked: h !== void 0,
13109
13116
  onChange: C
@@ -13121,56 +13128,56 @@ var dn = [
13121
13128
  })
13122
13129
  ] })
13123
13130
  });
13124
- }, gb = (e) => {
13131
+ }, vb = (e) => {
13125
13132
  const t = e?.transforms.find((n) => n.transformType === "filter")?.options.value;
13126
13133
  return t instanceof Date ? t.getTime() : t;
13127
13134
  };
13128
13135
  export {
13129
- d3 as AppearanceSection,
13130
- c3 as AxesPanel,
13136
+ u3 as AppearanceSection,
13137
+ d3 as AxesPanel,
13131
13138
  Ca as AxisSection,
13132
- u3 as BarSection,
13139
+ h3 as BarSection,
13133
13140
  wu as Button,
13134
- h3 as CalloutsSection,
13135
- v5 as CaptionSection,
13141
+ p3 as CalloutsSection,
13142
+ f5 as CaptionSection,
13136
13143
  Cu as ColorSwatches,
13137
- p3 as ComboSection,
13144
+ m3 as ComboSection,
13138
13145
  kh as ControlRegistryProvider,
13139
13146
  rr as ControlTooltip,
13140
13147
  Fu as CustomColor,
13141
- i3 as EditableGraphRenderer,
13148
+ l3 as EditableGraphRenderer,
13142
13149
  Il as EditorPanel,
13143
- s3 as ElementsPanel,
13144
- m3 as GoalSection,
13145
- g3 as GraphOptionsSection,
13146
- v3 as GraphTypeSection,
13147
- f3 as GridSection,
13148
- b3 as HeadlineSection,
13150
+ c3 as ElementsPanel,
13151
+ g3 as GoalSection,
13152
+ v3 as GraphOptionsSection,
13153
+ f3 as GraphTypeSection,
13154
+ b3 as GridSection,
13155
+ y3 as HeadlineSection,
13149
13156
  Mo as IntlProvider,
13150
- y3 as LegendSection,
13151
- S3 as LineSection,
13152
- C3 as MappingSection,
13157
+ S3 as LegendSection,
13158
+ C3 as LineSection,
13159
+ x3 as MappingSection,
13153
13160
  Gu as NumberField,
13154
- x3 as NumberFormatSection,
13155
- Zf as PANEL_ROOT_ATTRIBUTE,
13156
- w3 as PointSection,
13157
- k3 as PolarSection,
13161
+ w3 as NumberFormatSection,
13162
+ Yf as PANEL_ROOT_ATTRIBUTE,
13163
+ k3 as PointSection,
13164
+ T3 as PolarSection,
13158
13165
  ju as RadioGrid,
13159
13166
  T as Row,
13160
13167
  Y as Section,
13161
13168
  rh as Select,
13162
- l3 as Separator,
13169
+ s3 as Separator,
13163
13170
  hh as Slider,
13164
- b5 as SourceSection,
13165
- S5 as SubtitleSection,
13171
+ y5 as SourceSection,
13172
+ C5 as SubtitleSection,
13166
13173
  vh as Switch,
13167
13174
  yh as TextField,
13168
- w5 as TextSizeSection,
13169
- k5 as TitleSection,
13175
+ k5 as TextSizeSection,
13176
+ T5 as TitleSection,
13170
13177
  jo as ToggleGroup,
13171
- u5 as ToggledSection,
13172
- T3 as TrendsAndAveragesSection,
13178
+ h5 as ToggledSection,
13179
+ A3 as TrendsAndAveragesSection,
13173
13180
  F as useControls,
13174
- jf as usePanelExpansion,
13181
+ Xf as usePanelExpansion,
13175
13182
  q as usePanelGraph
13176
13183
  };