@carto/ps-react-ui 4.7.0 → 4.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- import { jsx as x, jsxs as oe, Fragment as de } from "react/jsx-runtime";
2
- import { c as J } from "react/compiler-runtime";
3
- import { IconButton as Q, DialogContent as Me, Dialog as Ae, Typography as Be, DialogTitle as We, CircularProgress as Fe, MenuItem as Le, ListItemIcon as $e, ListItemText as ke, Menu as we, useTheme as Ne, Box as Pe, TextField as Ge, InputAdornment as pe, SvgIcon as Ze } from "@mui/material";
4
- import { w as b, u as Ve } from "../widget-store-Bw5zRUGg.js";
5
- import { u as te } from "../use-widget-selector-DFl2hW0R.js";
6
- import { FullscreenOutlined as He, Close as je, FileDownloadOutlined as Ue, PercentOutlined as Xe, SubdirectoryArrowLeftOutlined as Ke, ZoomInOutlined as Ye, CheckBoxOutlined as qe, SearchOutlined as Re, ClearOutlined as Je, HighlightAltOutlined as Qe } from "@mui/icons-material";
7
- import { useState as ie, useRef as le, useEffect as H, useSyncExternalStore as Se } from "react";
1
+ import { jsx as x, jsxs as oe, Fragment as ue } from "react/jsx-runtime";
2
+ import { c as Q } from "react/compiler-runtime";
3
+ import { IconButton as ee, DialogContent as Ae, Dialog as Be, Typography as We, DialogTitle as Fe, CircularProgress as $e, MenuItem as we, ListItemIcon as Ne, ListItemText as Pe, Menu as Re, useTheme as Ge, Box as De, TextField as Ze, InputAdornment as xe, SvgIcon as Ve } from "@mui/material";
4
+ import { w as p, u as He } from "../widget-store-Bw5zRUGg.js";
5
+ import { u as ne } from "../use-widget-selector-DFl2hW0R.js";
6
+ import { FullscreenOutlined as je, Close as Ue, FileDownloadOutlined as Xe, PercentOutlined as Ye, SubdirectoryArrowLeftOutlined as Ke, ZoomInOutlined as qe, CheckBoxOutlined as Je, SearchOutlined as ze, ClearOutlined as Qe, HighlightAltOutlined as et } from "@mui/icons-material";
7
+ import { useState as ie, useRef as le, useEffect as H, useSyncExternalStore as ve } from "react";
8
8
  import { a as Pn, d as Rn } from "../exports-Cr43OCul.js";
9
9
  import "../lasso-tool-BYbxrJ-7.js";
10
10
  import "../cjs-D4KH3azB.js";
11
11
  import { T as re } from "../tooltip-BDnrRKrp.js";
12
- import { b as et, a as tt, D as nt } from "../utils-BOhInag6.js";
13
- import { useSensors as ot, useSensor as xe, PointerSensor as lt, KeyboardSensor as rt, DndContext as it, closestCenter as st } from "@dnd-kit/core";
14
- import { useSortable as ct, sortableKeyboardCoordinates as at, arrayMove as dt, SortableContext as ut, verticalListSortingStrategy as ft } from "@dnd-kit/sortable";
12
+ import { b as tt, a as nt, D as ot } from "../utils-BOhInag6.js";
13
+ import { useSensors as lt, useSensor as ye, PointerSensor as rt, KeyboardSensor as it, DndContext as st, closestCenter as ct } from "@dnd-kit/core";
14
+ import { useSortable as at, sortableKeyboardCoordinates as dt, arrayMove as ut, SortableContext as ft, verticalListSortingStrategy as gt } from "@dnd-kit/sortable";
15
15
  import { CSS as mt } from "@dnd-kit/utilities";
16
- import { createPortal as gt } from "react-dom";
17
- import { o as ht } from "../shared-resize-observer-98b1SK1e.js";
18
- const ve = {
16
+ import { createPortal as ht } from "react-dom";
17
+ import { o as pt } from "../shared-resize-observer-98b1SK1e.js";
18
+ const Ie = {
19
19
  title: {
20
20
  container: {
21
21
  display: "flex",
@@ -32,29 +32,29 @@ const ve = {
32
32
  }) => n(1)
33
33
  }
34
34
  }, bt = {};
35
- function pn(n) {
36
- const e = J(42), {
35
+ function bn(n) {
36
+ const e = Q(42), {
37
37
  id: t,
38
- labels: l,
38
+ labels: r,
39
39
  children: u,
40
40
  Icon: c,
41
- IconButtonProps: p,
42
- DialogContentProps: E,
41
+ IconButtonProps: b,
42
+ DialogContentProps: C,
43
43
  DialogProps: S
44
- } = n, o = E === void 0 ? bt : E;
45
- let r, i;
44
+ } = n, o = C === void 0 ? bt : C;
45
+ let i, l;
46
46
  e[0] !== o ? ({
47
- sx: i,
48
- ...r
49
- } = o, e[0] = o, e[1] = r, e[2] = i) : (r = e[1], i = e[2]);
47
+ sx: l,
48
+ ...i
49
+ } = o, e[0] = o, e[1] = i, e[2] = l) : (i = e[1], l = e[2]);
50
50
  const {
51
51
  isFullScreen: a,
52
52
  title: d
53
- } = te(t, pt);
53
+ } = ne(t, St);
54
54
  let g;
55
- e[3] !== t ? (g = (B) => {
56
- b.setWidget(t, {
57
- isFullScreen: B.isFullScreen
55
+ e[3] !== t ? (g = (M) => {
56
+ p.setWidget(t, {
57
+ isFullScreen: M.isFullScreen
58
58
  });
59
59
  }, e[3] = t, e[4] = g) : g = e[4];
60
60
  const f = g;
@@ -63,128 +63,128 @@ function pn(n) {
63
63
  isFullScreen: !0
64
64
  }), e[5] = f, e[6] = h) : h = e[6];
65
65
  let m;
66
- e[7] !== c ? (m = c ?? /* @__PURE__ */ x(He, {}), e[7] = c, e[8] = m) : m = e[8];
67
- let y;
68
- e[9] !== p || e[10] !== h || e[11] !== m ? (y = /* @__PURE__ */ x(Q, { ...p, onClick: h, children: m }), e[9] = p, e[10] = h, e[11] = m, e[12] = y) : y = e[12];
69
- const s = !!a, w = l?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
70
- let C;
71
- e[13] !== f ? (C = () => f({
66
+ e[7] !== c ? (m = c ?? /* @__PURE__ */ x(je, {}), e[7] = c, e[8] = m) : m = e[8];
67
+ let I;
68
+ e[9] !== b || e[10] !== h || e[11] !== m ? (I = /* @__PURE__ */ x(ee, { ...b, onClick: h, children: m }), e[9] = b, e[10] = h, e[11] = m, e[12] = I) : I = e[12];
69
+ const s = !!a, w = r?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
70
+ let L;
71
+ e[13] !== f ? (L = () => f({
72
72
  isFullScreen: !1
73
- }), e[13] = f, e[14] = C) : C = e[14];
73
+ }), e[13] = f, e[14] = L) : L = e[14];
74
74
  const P = `fullscreen-dialog-title-${t}`;
75
75
  let D;
76
- e[15] !== d ? (D = /* @__PURE__ */ x(Be, { variant: "subtitle1", component: "span", children: d }), e[15] = d, e[16] = D) : D = e[16];
76
+ e[15] !== d ? (D = /* @__PURE__ */ x(We, { variant: "subtitle1", component: "span", children: d }), e[15] = d, e[16] = D) : D = e[16];
77
77
  let O;
78
78
  e[17] !== f ? (O = () => f({
79
79
  isFullScreen: !1
80
80
  }), e[17] = f, e[18] = O) : O = e[18];
81
- let T;
82
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ x(je, {}), e[19] = T) : T = e[19];
81
+ let E;
82
+ e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ x(Ue, {}), e[19] = E) : E = e[19];
83
83
  let R;
84
- e[20] !== O ? (R = /* @__PURE__ */ x(Q, { onClick: O, children: T }), e[20] = O, e[21] = R) : R = e[21];
85
- let L;
86
- e[22] !== P || e[23] !== D || e[24] !== R ? (L = /* @__PURE__ */ oe(We, { id: P, sx: ve.title.container, children: [
84
+ e[20] !== O ? (R = /* @__PURE__ */ x(ee, { onClick: O, children: E }), e[20] = O, e[21] = R) : R = e[21];
85
+ let k;
86
+ e[22] !== P || e[23] !== D || e[24] !== R ? (k = /* @__PURE__ */ oe(Fe, { id: P, sx: Ie.title.container, children: [
87
87
  D,
88
88
  R
89
- ] }), e[22] = P, e[23] = D, e[24] = R, e[25] = L) : L = e[25];
89
+ ] }), e[22] = P, e[23] = D, e[24] = R, e[25] = k) : k = e[25];
90
90
  let v;
91
- e[26] !== i ? (v = {
92
- ...ve.content,
93
- ...i
94
- }, e[26] = i, e[27] = v) : v = e[27];
91
+ e[26] !== l ? (v = {
92
+ ...Ie.content,
93
+ ...l
94
+ }, e[26] = l, e[27] = v) : v = e[27];
95
+ let T;
96
+ e[28] !== i || e[29] !== u || e[30] !== v ? (T = /* @__PURE__ */ x(Ae, { sx: v, ...i, children: u }), e[28] = i, e[29] = u, e[30] = v, e[31] = T) : T = e[31];
95
97
  let _;
96
- e[28] !== r || e[29] !== u || e[30] !== v ? (_ = /* @__PURE__ */ x(Me, { sx: v, ...r, children: u }), e[28] = r, e[29] = u, e[30] = v, e[31] = _) : _ = e[31];
97
- let I;
98
- e[32] !== S || e[33] !== L || e[34] !== _ || e[35] !== s || e[36] !== w || e[37] !== C ? (I = /* @__PURE__ */ oe(Ae, { maxWidth: !1, open: s, keepMounted: !0, "aria-labelledby": w, ...S, onClose: C, children: [
99
- L,
100
- _
101
- ] }), e[32] = S, e[33] = L, e[34] = _, e[35] = s, e[36] = w, e[37] = C, e[38] = I) : I = e[38];
98
+ e[32] !== S || e[33] !== k || e[34] !== T || e[35] !== s || e[36] !== w || e[37] !== L ? (_ = /* @__PURE__ */ oe(Be, { maxWidth: !1, open: s, keepMounted: !0, "aria-labelledby": w, ...S, onClose: L, children: [
99
+ k,
100
+ T
101
+ ] }), e[32] = S, e[33] = k, e[34] = T, e[35] = s, e[36] = w, e[37] = L, e[38] = _) : _ = e[38];
102
102
  let z;
103
- return e[39] !== I || e[40] !== y ? (z = /* @__PURE__ */ oe(de, { children: [
104
- y,
105
- I
106
- ] }), e[39] = I, e[40] = y, e[41] = z) : z = e[41], z;
103
+ return e[39] !== _ || e[40] !== I ? (z = /* @__PURE__ */ oe(ue, { children: [
104
+ I,
105
+ _
106
+ ] }), e[39] = _, e[40] = I, e[41] = z) : z = e[41], z;
107
107
  }
108
- function pt(n) {
108
+ function St(n) {
109
109
  return {
110
110
  isFullScreen: n?.isFullScreen,
111
111
  title: n?.title
112
112
  };
113
113
  }
114
- const St = {};
114
+ const xt = {};
115
115
  function Sn(n) {
116
- const e = J(31), {
116
+ const e = Q(31), {
117
117
  id: t,
118
- items: l,
118
+ items: r,
119
119
  labels: u,
120
120
  Icon: c,
121
- IconButtonProps: p
122
- } = n, E = u === void 0 ? St : u, {
121
+ IconButtonProps: b
122
+ } = n, C = u === void 0 ? xt : u, {
123
123
  data: S
124
- } = te(t, xt), [o, r] = ie(!1), [i, a] = ie(null);
124
+ } = ne(t, vt), [o, i] = ie(!1), [l, a] = ie(null);
125
125
  let d;
126
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (B) => {
127
- B.stopPropagation(), a(B.currentTarget);
126
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (M) => {
127
+ M.stopPropagation(), a(M.currentTarget);
128
128
  }, e[0] = d) : d = e[0];
129
129
  const g = d;
130
130
  let f;
131
- e[1] !== t ? (f = (B, M) => {
131
+ e[1] !== t ? (f = (M, A) => {
132
132
  const W = document.createElement("a");
133
- W.href = B, W.download = M.filename ?? t, W.style.display = "none", document.body.appendChild(W), W.click(), document.body.removeChild(W), M.callback?.(W.href);
133
+ W.href = M, W.download = A.filename ?? t, W.style.display = "none", document.body.appendChild(W), W.click(), document.body.removeChild(W), A.callback?.(W.href);
134
134
  }, e[1] = t, e[2] = f) : f = e[2];
135
135
  const h = f;
136
136
  let m;
137
- e[3] !== S || e[4] !== h ? (m = async (B, M) => {
138
- B.stopPropagation(), r(!0), a(null);
139
- const W = await M.modifier(S);
137
+ e[3] !== S || e[4] !== h ? (m = async (M, A) => {
138
+ M.stopPropagation(), i(!0), a(null);
139
+ const W = await A.modifier(S);
140
140
  if (!W) {
141
- r(!1);
141
+ i(!1);
142
142
  return;
143
143
  }
144
- h(W, M), r(!1);
144
+ h(W, A), i(!1);
145
145
  }, e[3] = S, e[4] = h, e[5] = m) : m = e[5];
146
- const y = m, s = E.ariaLabel ?? "download options", w = o || l.length === 0, C = o || i ? "active" : "";
146
+ const I = m, s = C.ariaLabel ?? "download options", w = o || r.length === 0, L = o || l ? "active" : "";
147
147
  let P;
148
- e[6] !== c || e[7] !== o ? (P = o ? /* @__PURE__ */ x(Fe, { size: 18, color: "inherit" }) : c ?? /* @__PURE__ */ x(Ue, {}), e[6] = c, e[7] = o, e[8] = P) : P = e[8];
148
+ e[6] !== c || e[7] !== o ? (P = o ? /* @__PURE__ */ x($e, { size: 18, color: "inherit" }) : c ?? /* @__PURE__ */ x(Xe, {}), e[6] = c, e[7] = o, e[8] = P) : P = e[8];
149
149
  let D;
150
- e[9] !== p || e[10] !== s || e[11] !== w || e[12] !== C || e[13] !== P ? (D = /* @__PURE__ */ x(Q, { size: "small", "aria-label": s, "aria-controls": "options-menu", "aria-haspopup": "true", onClick: g, ...p, disabled: w, className: C, children: P }), e[9] = p, e[10] = s, e[11] = w, e[12] = C, e[13] = P, e[14] = D) : D = e[14];
151
- let O, T;
150
+ e[9] !== b || e[10] !== s || e[11] !== w || e[12] !== L || e[13] !== P ? (D = /* @__PURE__ */ x(ee, { size: "small", "aria-label": s, "aria-controls": "options-menu", "aria-haspopup": "true", onClick: g, ...b, disabled: w, className: L, children: P }), e[9] = b, e[10] = s, e[11] = w, e[12] = L, e[13] = P, e[14] = D) : D = e[14];
151
+ let O, E;
152
152
  e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
153
153
  vertical: "bottom",
154
154
  horizontal: "right"
155
- }, T = {
155
+ }, E = {
156
156
  vertical: "top",
157
157
  horizontal: "right"
158
- }, e[15] = O, e[16] = T) : (O = e[15], T = e[16]);
159
- const R = !!i;
160
- let L, v;
161
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = () => a(null), v = {
158
+ }, e[15] = O, e[16] = E) : (O = e[15], E = e[16]);
159
+ const R = !!l;
160
+ let k, v;
161
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => a(null), v = {
162
162
  sx: {
163
163
  paddingBottom: 0
164
164
  }
165
- }, e[17] = L, e[18] = v) : (L = e[17], v = e[18]);
166
- let _;
167
- if (e[19] !== y || e[20] !== l) {
168
- let B;
169
- e[22] !== y ? (B = (M) => /* @__PURE__ */ oe(Le, { disabled: M.disabled, onClick: (W) => {
170
- y(W, M);
165
+ }, e[17] = k, e[18] = v) : (k = e[17], v = e[18]);
166
+ let T;
167
+ if (e[19] !== I || e[20] !== r) {
168
+ let M;
169
+ e[22] !== I ? (M = (A) => /* @__PURE__ */ oe(we, { disabled: A.disabled, onClick: (W) => {
170
+ I(W, A);
171
171
  }, children: [
172
- M.icon && /* @__PURE__ */ x($e, { sx: {
172
+ A.icon && /* @__PURE__ */ x(Ne, { sx: {
173
173
  color: "text.primary"
174
- }, children: M.icon }),
175
- /* @__PURE__ */ x(ke, { children: M.label })
176
- ] }, M.id), e[22] = y, e[23] = B) : B = e[23], _ = l.map(B), e[19] = y, e[20] = l, e[21] = _;
174
+ }, children: A.icon }),
175
+ /* @__PURE__ */ x(Pe, { children: A.label })
176
+ ] }, A.id), e[22] = I, e[23] = M) : M = e[23], T = r.map(M), e[19] = I, e[20] = r, e[21] = T;
177
177
  } else
178
- _ = e[21];
179
- let I;
180
- e[24] !== i || e[25] !== R || e[26] !== _ ? (I = /* @__PURE__ */ x(we, { variant: "menu", elevation: 8, anchorOrigin: O, transformOrigin: T, anchorEl: i, open: R, onClose: L, MenuListProps: v, children: _ }), e[24] = i, e[25] = R, e[26] = _, e[27] = I) : I = e[27];
178
+ T = e[21];
179
+ let _;
180
+ e[24] !== l || e[25] !== R || e[26] !== T ? (_ = /* @__PURE__ */ x(Re, { variant: "menu", elevation: 8, anchorOrigin: O, transformOrigin: E, anchorEl: l, open: R, onClose: k, MenuListProps: v, children: T }), e[24] = l, e[25] = R, e[26] = T, e[27] = _) : _ = e[27];
181
181
  let z;
182
- return e[28] !== I || e[29] !== D ? (z = /* @__PURE__ */ oe(de, { children: [
182
+ return e[28] !== _ || e[29] !== D ? (z = /* @__PURE__ */ oe(ue, { children: [
183
183
  D,
184
- I
185
- ] }), e[28] = I, e[29] = D, e[30] = z) : z = e[30], z;
184
+ _
185
+ ] }), e[28] = _, e[29] = D, e[30] = z) : z = e[30], z;
186
186
  }
187
- function xt(n) {
187
+ function vt(n) {
188
188
  return {
189
189
  data: n?.data
190
190
  };
@@ -196,137 +196,137 @@ const se = {
196
196
  }
197
197
  }
198
198
  };
199
- function vt(n) {
200
- return n.reduce((e, t) => t.reduce((l, u) => {
199
+ function yt(n) {
200
+ return n.reduce((e, t) => t.reduce((r, u) => {
201
201
  if (Array.isArray(u)) {
202
202
  const c = u.at(-1);
203
- return typeof c == "number" ? l + c : l;
203
+ return typeof c == "number" ? r + c : r;
204
204
  }
205
- return Object.entries(u).reduce((c, [p, E]) => p === "name" ? c : typeof E == "number" ? c + E : c, l);
205
+ return Object.entries(u).reduce((c, [b, C]) => b === "name" ? c : typeof C == "number" ? c + C : c, r);
206
206
  }, e), 0);
207
207
  }
208
- function yt(n, e) {
209
- return e === 0 ? n : n.map((t) => t.map((l) => {
210
- if (Array.isArray(l))
211
- return l.map((c, p) => p === l.length - 1 && typeof c == "number" ? c / e * 100 : c);
208
+ function It(n, e) {
209
+ return e === 0 ? n : n.map((t) => t.map((r) => {
210
+ if (Array.isArray(r))
211
+ return r.map((c, b) => b === r.length - 1 && typeof c == "number" ? c / e * 100 : c);
212
212
  const u = {};
213
- for (const [c, p] of Object.entries(l)) {
213
+ for (const [c, b] of Object.entries(r)) {
214
214
  if (c === "name") {
215
- u[c] = p;
215
+ u[c] = b;
216
216
  continue;
217
217
  }
218
- u[c] = typeof p == "number" ? p / e * 100 : p;
218
+ u[c] = typeof b == "number" ? b / e * 100 : b;
219
219
  }
220
220
  return u;
221
221
  }));
222
222
  }
223
- const fe = "relative-data", ye = "relative-data-config";
223
+ const me = "relative-data", Te = "relative-data-config";
224
224
  function xn(n) {
225
- const e = J(36), {
225
+ const e = Q(36), {
226
226
  id: t,
227
- order: l,
227
+ order: r,
228
228
  defaultIsRelative: u,
229
229
  labels: c,
230
- Icon: p,
231
- IconButtonProps: E
232
- } = n, S = l === void 0 ? 10 : l, o = u === void 0 ? !1 : u, r = le(void 0);
233
- let i;
234
- e[0] !== o ? (i = (v) => ({
230
+ Icon: b,
231
+ IconButtonProps: C
232
+ } = n, S = r === void 0 ? 10 : r, o = u === void 0 ? !1 : u, i = le(void 0);
233
+ let l;
234
+ e[0] !== o ? (l = (v) => ({
235
235
  isRelative: v?.isRelative ?? o
236
- }), e[0] = o, e[1] = i) : i = e[1];
236
+ }), e[0] = o, e[1] = l) : l = e[1];
237
237
  const {
238
238
  isRelative: a
239
- } = te(t, i);
239
+ } = ne(t, l);
240
240
  let d, g;
241
241
  e[2] !== o || e[3] !== t ? (d = () => {
242
- const v = b.getWidget(t);
243
- v?.isRelative === void 0 && (o ? b.setWidget(t, {
242
+ const v = p.getWidget(t);
243
+ v?.isRelative === void 0 && (o ? p.setWidget(t, {
244
244
  isRelative: !0,
245
245
  originalFormatter: v?.formatter,
246
246
  originalMax: v?.max
247
- }) : b.setWidget(t, {
247
+ }) : p.setWidget(t, {
248
248
  isRelative: o
249
249
  }));
250
250
  }, g = [t, o], e[2] = o, e[3] = t, e[4] = d, e[5] = g) : (d = e[4], g = e[5]), H(d, g);
251
251
  let f, h;
252
- e[6] !== o || e[7] !== t || e[8] !== S ? (f = () => (b.registerTool(t, {
253
- id: fe,
252
+ e[6] !== o || e[7] !== t || e[8] !== S ? (f = () => (p.registerTool(t, {
253
+ id: me,
254
254
  order: S,
255
255
  enabled: o,
256
- fn: It
257
- }), () => b.unregisterTool(t, fe)), h = [t, S, o], e[6] = o, e[7] = t, e[8] = S, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
258
- let m, y;
256
+ fn: Tt
257
+ }), () => p.unregisterTool(t, me)), h = [t, S, o], e[6] = o, e[7] = t, e[8] = S, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
258
+ let m, I;
259
259
  e[11] !== t || e[12] !== a ? (m = () => {
260
- b.setToolEnabled(t, fe, a);
261
- }, y = [t, a], e[11] = t, e[12] = a, e[13] = m, e[14] = y) : (m = e[13], y = e[14]), H(m, y);
260
+ p.setToolEnabled(t, me, a);
261
+ }, I = [t, a], e[11] = t, e[12] = a, e[13] = m, e[14] = I) : (m = e[13], I = e[14]), H(m, I);
262
262
  let s;
263
- e[15] !== t || e[16] !== S ? (s = () => (b.registerTool(t, {
264
- id: ye,
263
+ e[15] !== t || e[16] !== S ? (s = () => (p.registerTool(t, {
264
+ id: Te,
265
265
  type: "config",
266
266
  order: S,
267
267
  enabled: !0,
268
268
  fn: (v) => {
269
- const _ = v, I = b.getWidget(t), z = I?.sourceData != null && !(Array.isArray(I.sourceData) && I.sourceData.length === 0);
270
- if (I?.isRelative) {
269
+ const T = v, _ = p.getWidget(t), z = _?.sourceData != null && !(Array.isArray(_.sourceData) && _.sourceData.length === 0);
270
+ if (_?.isRelative) {
271
271
  if (!z)
272
- return _;
273
- if (!r.current) {
274
- const B = I?.locale;
275
- r.current = (M) => new Intl.NumberFormat(B, {
272
+ return T;
273
+ if (!i.current) {
274
+ const M = _?.locale;
275
+ i.current = (A) => new Intl.NumberFormat(M, {
276
276
  style: "percent",
277
277
  minimumFractionDigits: 1,
278
278
  maximumFractionDigits: 1
279
- }).format(M / 100);
279
+ }).format(A / 100);
280
280
  }
281
281
  return {
282
- ..._,
283
- formatter: r.current,
282
+ ...T,
283
+ formatter: i.current,
284
284
  max: 100
285
285
  };
286
286
  }
287
- return r.current = void 0, I != null && "originalFormatter" in I ? {
288
- ..._,
289
- formatter: I.originalFormatter,
290
- max: I.originalMax
291
- } : _;
287
+ return i.current = void 0, _ != null && "originalFormatter" in _ ? {
288
+ ...T,
289
+ formatter: _.originalFormatter,
290
+ max: _.originalMax
291
+ } : T;
292
292
  }
293
293
  }), () => {
294
- const v = b.getWidget(t);
295
- v?.isRelative && "originalFormatter" in v && b.setWidget(t, {
294
+ const v = p.getWidget(t);
295
+ v?.isRelative && "originalFormatter" in v && p.setWidget(t, {
296
296
  formatter: v.originalFormatter,
297
297
  max: v.originalMax
298
- }), r.current = void 0, b.unregisterTool(t, ye);
298
+ }), i.current = void 0, p.unregisterTool(t, Te);
299
299
  }), e[15] = t, e[16] = S, e[17] = s) : s = e[17];
300
300
  let w;
301
301
  e[18] !== o || e[19] !== t || e[20] !== S ? (w = [t, S, o], e[18] = o, e[19] = t, e[20] = S, e[21] = w) : w = e[21], H(s, w);
302
- let C;
303
- e[22] !== t || e[23] !== a ? (C = () => {
302
+ let L;
303
+ e[22] !== t || e[23] !== a ? (L = () => {
304
304
  const v = !a;
305
- if (r.current = void 0, v) {
306
- const _ = b.getWidget(t);
307
- b.setWidget(t, {
305
+ if (i.current = void 0, v) {
306
+ const T = p.getWidget(t);
307
+ p.setWidget(t, {
308
308
  isRelative: !0,
309
- originalFormatter: _?.formatter,
310
- originalMax: _?.max
309
+ originalFormatter: T?.formatter,
310
+ originalMax: T?.max
311
311
  });
312
312
  } else
313
- b.setWidget(t, {
313
+ p.setWidget(t, {
314
314
  isRelative: !1
315
315
  });
316
- }, e[22] = t, e[23] = a, e[24] = C) : C = e[24];
317
- const P = C, D = a ? c?.absolute ?? "Show absolute values" : c?.relative ?? "Show relative values", O = c?.ariaLabel ?? D;
318
- let T;
319
- e[25] !== p ? (T = p ?? /* @__PURE__ */ x(Xe, {}), e[25] = p, e[26] = T) : T = e[26];
316
+ }, e[22] = t, e[23] = a, e[24] = L) : L = e[24];
317
+ const P = L, D = a ? c?.absolute ?? "Show absolute values" : c?.relative ?? "Show relative values", O = c?.ariaLabel ?? D;
318
+ let E;
319
+ e[25] !== b ? (E = b ?? /* @__PURE__ */ x(Ye, {}), e[25] = b, e[26] = E) : E = e[26];
320
320
  let R;
321
- e[27] !== E || e[28] !== P || e[29] !== a || e[30] !== O || e[31] !== T ? (R = /* @__PURE__ */ x(Q, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": a, ...E, children: T }), e[27] = E, e[28] = P, e[29] = a, e[30] = O, e[31] = T, e[32] = R) : R = e[32];
322
- let L;
323
- return e[33] !== R || e[34] !== D ? (L = /* @__PURE__ */ x(re, { title: D, children: R }), e[33] = R, e[34] = D, e[35] = L) : L = e[35], L;
321
+ e[27] !== C || e[28] !== P || e[29] !== a || e[30] !== O || e[31] !== E ? (R = /* @__PURE__ */ x(ee, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": a, ...C, children: E }), e[27] = C, e[28] = P, e[29] = a, e[30] = O, e[31] = E, e[32] = R) : R = e[32];
322
+ let k;
323
+ return e[33] !== R || e[34] !== D ? (k = /* @__PURE__ */ x(re, { title: D, children: R }), e[33] = R, e[34] = D, e[35] = k) : k = e[35], k;
324
324
  }
325
- function It(n) {
326
- const e = n, t = vt(e);
327
- return yt(e, t);
325
+ function Tt(n) {
326
+ const e = n, t = yt(e);
327
+ return It(e, t);
328
328
  }
329
- const Ie = {
329
+ const _e = {
330
330
  container: {
331
331
  display: "flex",
332
332
  alignItems: "center",
@@ -339,206 +339,206 @@ const Ie = {
339
339
  background: (n) => n.palette.primary.relatedLight
340
340
  }
341
341
  }
342
- }, me = "zoom-toggle";
342
+ }, he = "zoom-toggle";
343
343
  function vn(n) {
344
- const e = J(63), {
344
+ const e = Q(63), {
345
345
  id: t,
346
- defaultZoom: l,
346
+ defaultZoom: r,
347
347
  defaultZoomStart: u,
348
348
  defaultZoomEnd: c,
349
- labels: p,
350
- Icon: E,
349
+ labels: b,
350
+ Icon: C,
351
351
  ResetIcon: S,
352
352
  IconButtonProps: o
353
- } = n, r = l === void 0 ? !1 : l, i = u === void 0 ? 0 : u, a = c === void 0 ? 100 : c, d = Ne();
353
+ } = n, i = r === void 0 ? !1 : r, l = u === void 0 ? 0 : u, a = c === void 0 ? 100 : c, d = Ge();
354
354
  let g;
355
- e[0] !== r || e[1] !== a || e[2] !== i ? (g = (A) => ({
356
- zoom: A?.zoom ?? r,
357
- zoomStart: A?.zoomStart ?? i,
358
- zoomEnd: A?.zoomEnd ?? a
359
- }), e[0] = r, e[1] = a, e[2] = i, e[3] = g) : g = e[3];
355
+ e[0] !== i || e[1] !== a || e[2] !== l ? (g = (y) => ({
356
+ zoom: y?.zoom ?? i,
357
+ zoomStart: y?.zoomStart ?? l,
358
+ zoomEnd: y?.zoomEnd ?? a
359
+ }), e[0] = i, e[1] = a, e[2] = l, e[3] = g) : g = e[3];
360
360
  const {
361
361
  zoom: f,
362
362
  zoomStart: h,
363
363
  zoomEnd: m
364
- } = te(t, g);
365
- let y, s;
366
- e[4] !== r || e[5] !== a || e[6] !== i || e[7] !== t ? (y = () => {
367
- b.getWidget(t)?.zoom === void 0 && b.setWidget(t, {
368
- zoom: r,
369
- zoomStart: i,
364
+ } = ne(t, g);
365
+ let I, s;
366
+ e[4] !== i || e[5] !== a || e[6] !== l || e[7] !== t ? (I = () => {
367
+ p.getWidget(t)?.zoom === void 0 && p.setWidget(t, {
368
+ zoom: i,
369
+ zoomStart: l,
370
370
  zoomEnd: a
371
371
  });
372
- }, s = [t, r, i, a], e[4] = r, e[5] = a, e[6] = i, e[7] = t, e[8] = y, e[9] = s) : (y = e[8], s = e[9]), H(y, s);
372
+ }, s = [t, i, l, a], e[4] = i, e[5] = a, e[6] = l, e[7] = t, e[8] = I, e[9] = s) : (I = e[8], s = e[9]), H(I, s);
373
373
  let w;
374
- e[10] !== t ? (w = (A) => {
375
- const N = A, V = N.start ?? N.batch?.[0]?.start, X = N.end ?? N.batch?.[0]?.end;
376
- V !== void 0 && X !== void 0 && b.setWidget(t, {
374
+ e[10] !== t ? (w = (y) => {
375
+ const B = y, F = B.start ?? B.batch?.[0]?.start, V = B.end ?? B.batch?.[0]?.end;
376
+ F !== void 0 && V !== void 0 && p.setWidget(t, {
377
377
  zoom: !0,
378
- zoomStart: V,
379
- zoomEnd: X
378
+ zoomStart: F,
379
+ zoomEnd: V
380
380
  });
381
381
  }, e[10] = t, e[11] = w) : w = e[11];
382
- const C = w;
382
+ const L = w;
383
383
  let P;
384
- e[12] !== r || e[13] !== C || e[14] !== t || e[15] !== d ? (P = () => (b.registerTool(t, {
385
- id: me,
384
+ e[12] !== i || e[13] !== L || e[14] !== t || e[15] !== d ? (P = () => (p.registerTool(t, {
385
+ id: he,
386
386
  type: "config",
387
387
  order: 20,
388
- enabled: r,
389
- fn: (A) => {
390
- const N = A, V = N.option, X = N.onEvents ?? {}, K = b.getWidget(t), Y = K?.zoomStart ?? 0, ne = K?.zoomEnd ?? 100, q = V?.legend, ee = q?.show !== !1 && q !== void 0, ue = parseInt(d?.spacing?.(4) ?? "32"), De = et({
391
- start: Y,
392
- end: ne
388
+ enabled: i,
389
+ fn: (y) => {
390
+ const B = y, F = B.option, V = B.onEvents ?? {}, X = p.getWidget(t), q = X?.zoomStart ?? 0, te = X?.zoomEnd ?? 100, Y = F?.legend, J = Y?.show !== !1 && Y !== void 0, ce = parseInt(d?.spacing?.(4) ?? "32"), ge = tt({
391
+ start: q,
392
+ end: te
393
393
  }, {
394
394
  inside: !0,
395
395
  xSlider: !0,
396
396
  ySlider: !1,
397
- bottomOffset: ee ? 28 : 0
398
- }, d), ce = V?.grid, ze = (typeof ce?.bottom == "number" ? ce.bottom : parseInt(ce?.bottom ?? "24")) + ue + 8, Oe = {
399
- ...X,
400
- dataZoom: C
397
+ bottomOffset: J ? 28 : 0
398
+ }, d), ae = F?.grid, Oe = (typeof ae?.bottom == "number" ? ae.bottom : parseInt(ae?.bottom ?? "24")) + ce + 8, Me = {
399
+ ...V,
400
+ dataZoom: L
401
401
  };
402
402
  return {
403
- ...N,
403
+ ...B,
404
404
  option: {
405
- ...V,
406
- ...De,
405
+ ...F,
406
+ ...ge,
407
407
  grid: {
408
- ...ce,
409
- bottom: ze
408
+ ...ae,
409
+ bottom: Oe
410
410
  }
411
411
  },
412
- onEvents: Oe
412
+ onEvents: Me
413
413
  };
414
414
  }
415
- }), () => b.unregisterTool(t, me)), e[12] = r, e[13] = C, e[14] = t, e[15] = d, e[16] = P) : P = e[16];
415
+ }), () => p.unregisterTool(t, he)), e[12] = i, e[13] = L, e[14] = t, e[15] = d, e[16] = P) : P = e[16];
416
416
  let D;
417
- e[17] !== r || e[18] !== a || e[19] !== i || e[20] !== C || e[21] !== t || e[22] !== d ? (D = [t, d, C, r, i, a], e[17] = r, e[18] = a, e[19] = i, e[20] = C, e[21] = t, e[22] = d, e[23] = D) : D = e[23], H(P, D);
418
- let O, T;
417
+ e[17] !== i || e[18] !== a || e[19] !== l || e[20] !== L || e[21] !== t || e[22] !== d ? (D = [t, d, L, i, l, a], e[17] = i, e[18] = a, e[19] = l, e[20] = L, e[21] = t, e[22] = d, e[23] = D) : D = e[23], H(P, D);
418
+ let O, E;
419
419
  e[24] !== t || e[25] !== f ? (O = () => {
420
- b.setToolEnabled(t, me, f);
421
- }, T = [t, f], e[24] = t, e[25] = f, e[26] = O, e[27] = T) : (O = e[26], T = e[27]), H(O, T);
420
+ p.setToolEnabled(t, he, f);
421
+ }, E = [t, f], e[24] = t, e[25] = f, e[26] = O, e[27] = E) : (O = e[26], E = e[27]), H(O, E);
422
422
  let R;
423
423
  e[28] !== t ? (R = () => {
424
- b.triggerToolPipeline(t);
424
+ p.triggerToolPipeline(t);
425
425
  }, e[28] = t, e[29] = R) : R = e[29];
426
- let L;
427
- e[30] !== t || e[31] !== m || e[32] !== h ? (L = [t, h, m], e[30] = t, e[31] = m, e[32] = h, e[33] = L) : L = e[33], H(R, L);
426
+ let k;
427
+ e[30] !== t || e[31] !== m || e[32] !== h ? (k = [t, h, m], e[30] = t, e[31] = m, e[32] = h, e[33] = k) : k = e[33], H(R, k);
428
428
  let v;
429
429
  e[34] !== t || e[35] !== f || e[36] !== m || e[37] !== h ? (v = () => {
430
- const A = !f;
431
- b.setWidget(t, {
432
- zoom: A,
433
- zoomStart: A ? h : 0,
434
- zoomEnd: A ? m : 100
430
+ const y = !f;
431
+ p.setWidget(t, {
432
+ zoom: y,
433
+ zoomStart: y ? h : 0,
434
+ zoomEnd: y ? m : 100
435
435
  });
436
436
  }, e[34] = t, e[35] = f, e[36] = m, e[37] = h, e[38] = v) : v = e[38];
437
- const _ = v;
438
- let I;
439
- e[39] !== a || e[40] !== i || e[41] !== t ? (I = () => {
440
- b.setWidget(t, {
437
+ const T = v;
438
+ let _;
439
+ e[39] !== a || e[40] !== l || e[41] !== t ? (_ = () => {
440
+ p.setWidget(t, {
441
441
  zoom: !0,
442
- zoomStart: i,
442
+ zoomStart: l,
443
443
  zoomEnd: a
444
444
  });
445
- }, e[39] = a, e[40] = i, e[41] = t, e[42] = I) : I = e[42];
446
- const z = I, B = p?.enable ?? "Enable zoom", M = p?.disable ?? "Disable zoom", W = p?.reset ?? "Reset zoom", j = f ? M : B, Z = p?.ariaLabel ?? j;
445
+ }, e[39] = a, e[40] = l, e[41] = t, e[42] = _) : _ = e[42];
446
+ const z = _, M = b?.enable ?? "Enable zoom", A = b?.disable ?? "Disable zoom", W = b?.reset ?? "Reset zoom", U = f ? A : M, j = b?.ariaLabel ?? U;
447
447
  let $;
448
- e[43] !== E ? ($ = E ?? /* @__PURE__ */ x(Ye, {}), e[43] = E, e[44] = $) : $ = e[44];
448
+ e[43] !== C ? ($ = C ?? /* @__PURE__ */ x(qe, {}), e[43] = C, e[44] = $) : $ = e[44];
449
449
  let G;
450
- e[45] !== o || e[46] !== _ || e[47] !== Z || e[48] !== $ || e[49] !== f ? (G = /* @__PURE__ */ x(Q, { size: "small", "aria-label": Z, onClick: _, sx: Ie.trigger, "data-active": f, ...o, children: $ }), e[45] = o, e[46] = _, e[47] = Z, e[48] = $, e[49] = f, e[50] = G) : G = e[50];
451
- let U;
452
- e[51] !== G || e[52] !== j ? (U = /* @__PURE__ */ x(re, { title: j, children: G }), e[51] = G, e[52] = j, e[53] = U) : U = e[53];
453
- let k;
454
- e[54] !== o || e[55] !== S || e[56] !== z || e[57] !== W || e[58] !== f ? (k = f && /* @__PURE__ */ x(re, { title: W, children: /* @__PURE__ */ x(Q, { size: "small", "aria-label": W, onClick: z, ...o, children: S ?? /* @__PURE__ */ x(Ke, {}) }) }), e[54] = o, e[55] = S, e[56] = z, e[57] = W, e[58] = f, e[59] = k) : k = e[59];
455
- let F;
456
- return e[60] !== U || e[61] !== k ? (F = /* @__PURE__ */ oe(Pe, { sx: Ie.container, children: [
457
- U,
458
- k
459
- ] }), e[60] = U, e[61] = k, e[62] = F) : F = e[62], F;
450
+ e[45] !== o || e[46] !== T || e[47] !== j || e[48] !== $ || e[49] !== f ? (G = /* @__PURE__ */ x(ee, { size: "small", "aria-label": j, onClick: T, sx: _e.trigger, "data-active": f, ...o, children: $ }), e[45] = o, e[46] = T, e[47] = j, e[48] = $, e[49] = f, e[50] = G) : G = e[50];
451
+ let Z;
452
+ e[51] !== G || e[52] !== U ? (Z = /* @__PURE__ */ x(re, { title: U, children: G }), e[51] = G, e[52] = U, e[53] = Z) : Z = e[53];
453
+ let N;
454
+ e[54] !== o || e[55] !== S || e[56] !== z || e[57] !== W || e[58] !== f ? (N = f && /* @__PURE__ */ x(re, { title: W, children: /* @__PURE__ */ x(ee, { size: "small", "aria-label": W, onClick: z, ...o, children: S ?? /* @__PURE__ */ x(Ke, {}) }) }), e[54] = o, e[55] = S, e[56] = z, e[57] = W, e[58] = f, e[59] = N) : N = e[59];
455
+ let K;
456
+ return e[60] !== Z || e[61] !== N ? (K = /* @__PURE__ */ oe(De, { sx: _e.container, children: [
457
+ Z,
458
+ N
459
+ ] }), e[60] = Z, e[61] = N, e[62] = K) : K = e[62], K;
460
460
  }
461
461
  const _t = () => {
462
- const n = J(1);
462
+ const n = Q(1);
463
463
  let e;
464
464
  return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ x("path", { d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z", fill: "currentColor" }) }), n[0] = e) : e = n[0], e;
465
- }, ge = "stack-toggle";
465
+ }, pe = "stack-toggle";
466
466
  function yn(n) {
467
- const e = J(35), {
467
+ const e = Q(35), {
468
468
  id: t,
469
- defaultIsStacked: l,
469
+ defaultIsStacked: r,
470
470
  labels: u,
471
471
  Icon: c,
472
- IconButtonProps: p
473
- } = n, E = l === void 0 ? !1 : l, {
472
+ IconButtonProps: b
473
+ } = n, C = r === void 0 ? !1 : r, {
474
474
  storeIsStacked: S,
475
475
  option: o
476
- } = te(t, Lt);
477
- let r;
476
+ } = ne(t, kt);
477
+ let i;
478
478
  e: {
479
479
  if (!o) {
480
- let M;
481
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
480
+ let A;
481
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
482
482
  hasMultiSeries: !1,
483
483
  hasStackInSeries: !1
484
- }, e[0] = M) : M = e[0], r = M;
484
+ }, e[0] = A) : A = e[0], i = A;
485
485
  break e;
486
486
  }
487
487
  let v;
488
488
  e[1] !== o.series ? (v = Array.isArray(o.series) ? o.series : [o.series], e[1] = o.series, e[2] = v) : v = e[2];
489
- const _ = v, I = _.length > 1;
489
+ const T = v, _ = T.length > 1;
490
490
  let z;
491
- e[3] !== _ ? (z = _.some(Ct), e[3] = _, e[4] = z) : z = e[4];
492
- let B;
493
- e[5] !== I || e[6] !== z ? (B = {
494
- hasMultiSeries: I,
491
+ e[3] !== T ? (z = T.some(Lt), e[3] = T, e[4] = z) : z = e[4];
492
+ let M;
493
+ e[5] !== _ || e[6] !== z ? (M = {
494
+ hasMultiSeries: _,
495
495
  hasStackInSeries: z
496
- }, e[5] = I, e[6] = z, e[7] = B) : B = e[7], r = B;
496
+ }, e[5] = _, e[6] = z, e[7] = M) : M = e[7], i = M;
497
497
  }
498
498
  const {
499
- hasMultiSeries: i,
499
+ hasMultiSeries: l,
500
500
  hasStackInSeries: a
501
- } = r, d = a || E, g = S ?? d;
501
+ } = i, d = a || C, g = S ?? d;
502
502
  let f, h;
503
- e[8] !== t ? (f = () => (b.registerTool(t, {
504
- id: ge,
503
+ e[8] !== t ? (f = () => (p.registerTool(t, {
504
+ id: pe,
505
505
  type: "config",
506
506
  order: 10,
507
507
  enabled: !1,
508
- fn: Tt
509
- }), () => b.unregisterTool(t, ge)), h = [t], e[8] = t, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
510
- let m, y;
511
- e[11] !== i || e[12] !== t || e[13] !== g ? (m = () => {
512
- b.setToolEnabled(t, ge, g && i);
513
- }, y = [t, g, i], e[11] = i, e[12] = t, e[13] = g, e[14] = m, e[15] = y) : (m = e[14], y = e[15]), H(m, y);
508
+ fn: Et
509
+ }), () => p.unregisterTool(t, pe)), h = [t], e[8] = t, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
510
+ let m, I;
511
+ e[11] !== l || e[12] !== t || e[13] !== g ? (m = () => {
512
+ p.setToolEnabled(t, pe, g && l);
513
+ }, I = [t, g, l], e[11] = l, e[12] = t, e[13] = g, e[14] = m, e[15] = I) : (m = e[14], I = e[15]), H(m, I);
514
514
  let s, w;
515
515
  e[16] !== d || e[17] !== t || e[18] !== S ? (s = () => {
516
- S === void 0 && b.setWidget(t, {
516
+ S === void 0 && p.setWidget(t, {
517
517
  isStacked: d
518
518
  });
519
519
  }, w = [d, t, S], e[16] = d, e[17] = t, e[18] = S, e[19] = s, e[20] = w) : (s = e[19], w = e[20]), H(s, w);
520
- let C;
521
- e[21] !== t || e[22] !== g ? (C = () => {
522
- b.setWidget(t, {
520
+ let L;
521
+ e[21] !== t || e[22] !== g ? (L = () => {
522
+ p.setWidget(t, {
523
523
  isStacked: !g
524
524
  });
525
- }, e[21] = t, e[22] = g, e[23] = C) : C = e[23];
526
- const P = C, D = g ? u?.unstacked ?? "Disable stacking" : u?.stacked ?? "Enable stacking";
527
- if (!i)
525
+ }, e[21] = t, e[22] = g, e[23] = L) : L = e[23];
526
+ const P = L, D = g ? u?.unstacked ?? "Disable stacking" : u?.stacked ?? "Enable stacking";
527
+ if (!l)
528
528
  return null;
529
529
  const O = u?.ariaLabel ?? D;
530
- let T;
531
- e[24] !== c ? (T = c ?? /* @__PURE__ */ x(_t, {}), e[24] = c, e[25] = T) : T = e[25];
530
+ let E;
531
+ e[24] !== c ? (E = c ?? /* @__PURE__ */ x(_t, {}), e[24] = c, e[25] = E) : E = e[25];
532
532
  let R;
533
- e[26] !== p || e[27] !== P || e[28] !== g || e[29] !== O || e[30] !== T ? (R = /* @__PURE__ */ x(Q, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": g, ...p, children: T }), e[26] = p, e[27] = P, e[28] = g, e[29] = O, e[30] = T, e[31] = R) : R = e[31];
534
- let L;
535
- return e[32] !== R || e[33] !== D ? (L = /* @__PURE__ */ x(re, { title: D, children: R }), e[32] = R, e[33] = D, e[34] = L) : L = e[34], L;
533
+ e[26] !== b || e[27] !== P || e[28] !== g || e[29] !== O || e[30] !== E ? (R = /* @__PURE__ */ x(ee, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": g, ...b, children: E }), e[26] = b, e[27] = P, e[28] = g, e[29] = O, e[30] = E, e[31] = R) : R = e[31];
534
+ let k;
535
+ return e[32] !== R || e[33] !== D ? (k = /* @__PURE__ */ x(re, { title: D, children: R }), e[32] = R, e[33] = D, e[34] = k) : k = e[34], k;
536
536
  }
537
- function Tt(n) {
537
+ function Et(n) {
538
538
  const e = n, t = e.option;
539
539
  if (!t)
540
540
  return n;
541
- const u = (Array.isArray(t.series) ? t.series : [t.series]).map(Et);
541
+ const u = (Array.isArray(t.series) ? t.series : [t.series]).map(Ct);
542
542
  return {
543
543
  ...e,
544
544
  option: {
@@ -547,350 +547,350 @@ function Tt(n) {
547
547
  }
548
548
  };
549
549
  }
550
- function Et(n) {
550
+ function Ct(n) {
551
551
  const e = n?.stack;
552
552
  return {
553
553
  ...n,
554
- ...tt(typeof e == "string" ? e : nt)
554
+ ...nt(typeof e == "string" ? e : ot)
555
555
  };
556
556
  }
557
- function Ct(n) {
557
+ function Lt(n) {
558
558
  return n?.stack;
559
559
  }
560
- function Lt(n) {
560
+ function kt(n) {
561
561
  return {
562
562
  storeIsStacked: n?.isStacked,
563
563
  option: n?.option
564
564
  };
565
565
  }
566
- const ae = "lock-selection";
566
+ const de = "lock-selection";
567
567
  function In(n) {
568
- const e = J(24), {
568
+ const e = Q(24), {
569
569
  id: t,
570
- selectedItems: l,
570
+ selectedItems: r,
571
571
  order: u,
572
572
  labels: c,
573
- Icon: p,
574
- IconButtonProps: E
573
+ Icon: b,
574
+ IconButtonProps: C
575
575
  } = n, S = u === void 0 ? 30 : u, {
576
576
  storeIsLocked: o
577
- } = te(t, kt), r = o ?? !1;
578
- let i, a;
579
- e[0] !== t || e[1] !== S ? (i = () => (b.registerTool(t, {
580
- id: ae,
577
+ } = ne(t, wt), i = o ?? !1;
578
+ let l, a;
579
+ e[0] !== t || e[1] !== S ? (l = () => (p.registerTool(t, {
580
+ id: de,
581
581
  order: S,
582
582
  enabled: !1,
583
583
  fn: (P) => {
584
- const O = b.getWidget(t)?.lockedItems ?? [];
585
- return O.length === 0 ? P : wt(P, O);
584
+ const O = p.getWidget(t)?.lockedItems ?? [];
585
+ return O.length === 0 ? P : Pt(P, O);
586
586
  }
587
- }), () => b.unregisterTool(t, ae)), a = [t, S], e[0] = t, e[1] = S, e[2] = i, e[3] = a) : (i = e[2], a = e[3]), H(i, a);
587
+ }), () => p.unregisterTool(t, de)), a = [t, S], e[0] = t, e[1] = S, e[2] = l, e[3] = a) : (l = e[2], a = e[3]), H(l, a);
588
588
  let d, g;
589
- e[4] !== t || e[5] !== r || e[6] !== l.length ? (d = () => {
590
- if (r && l.length === 0) {
591
- b.setWidget(t, {
589
+ e[4] !== t || e[5] !== i || e[6] !== r.length ? (d = () => {
590
+ if (i && r.length === 0) {
591
+ p.setWidget(t, {
592
592
  isLocked: !1,
593
593
  lockedItems: []
594
594
  });
595
595
  return;
596
596
  }
597
- b.setToolEnabled(t, ae, r);
598
- }, g = [t, r, l.length], e[4] = t, e[5] = r, e[6] = l.length, e[7] = d, e[8] = g) : (d = e[7], g = e[8]), H(d, g);
597
+ p.setToolEnabled(t, de, i);
598
+ }, g = [t, i, r.length], e[4] = t, e[5] = i, e[6] = r.length, e[7] = d, e[8] = g) : (d = e[7], g = e[8]), H(d, g);
599
599
  let f;
600
- e[9] !== t || e[10] !== r || e[11] !== l ? (f = () => {
601
- r ? b.setWidget(t, {
600
+ e[9] !== t || e[10] !== i || e[11] !== r ? (f = () => {
601
+ i ? p.setWidget(t, {
602
602
  isLocked: !1,
603
603
  lockedItems: []
604
- }) : b.setWidget(t, {
604
+ }) : p.setWidget(t, {
605
605
  isLocked: !0,
606
- lockedItems: l
606
+ lockedItems: r
607
607
  });
608
- }, e[9] = t, e[10] = r, e[11] = l, e[12] = f) : f = e[12];
608
+ }, e[9] = t, e[10] = i, e[11] = r, e[12] = f) : f = e[12];
609
609
  const h = f;
610
- if (l.length === 0)
610
+ if (r.length === 0)
611
611
  return null;
612
- const m = r ? c?.unlock ?? "Unlock selection" : c?.lock ?? "Lock selection", y = c?.ariaLabel ?? m;
612
+ const m = i ? c?.unlock ?? "Unlock selection" : c?.lock ?? "Lock selection", I = c?.ariaLabel ?? m;
613
613
  let s;
614
- e[13] !== p ? (s = p ?? /* @__PURE__ */ x(qe, { fontSize: "small" }), e[13] = p, e[14] = s) : s = e[14];
614
+ e[13] !== b ? (s = b ?? /* @__PURE__ */ x(Je, { fontSize: "small" }), e[13] = b, e[14] = s) : s = e[14];
615
615
  let w;
616
- e[15] !== E || e[16] !== y || e[17] !== h || e[18] !== r || e[19] !== s ? (w = /* @__PURE__ */ x(Q, { size: "small", "aria-label": y, onClick: h, sx: se.trigger, "data-active": r, ...E, children: s }), e[15] = E, e[16] = y, e[17] = h, e[18] = r, e[19] = s, e[20] = w) : w = e[20];
617
- let C;
618
- return e[21] !== w || e[22] !== m ? (C = /* @__PURE__ */ x(re, { title: m, children: w }), e[21] = w, e[22] = m, e[23] = C) : C = e[23], C;
616
+ e[15] !== C || e[16] !== I || e[17] !== h || e[18] !== i || e[19] !== s ? (w = /* @__PURE__ */ x(ee, { size: "small", "aria-label": I, onClick: h, sx: se.trigger, "data-active": i, ...C, children: s }), e[15] = C, e[16] = I, e[17] = h, e[18] = i, e[19] = s, e[20] = w) : w = e[20];
617
+ let L;
618
+ return e[21] !== w || e[22] !== m ? (L = /* @__PURE__ */ x(re, { title: m, children: w }), e[21] = w, e[22] = m, e[23] = L) : L = e[23], L;
619
619
  }
620
- function kt(n) {
620
+ function wt(n) {
621
621
  return {
622
622
  storeIsLocked: n?.isLocked
623
623
  };
624
624
  }
625
- function wt(n, e) {
626
- return n.map((t) => t.filter((l) => {
627
- const u = l.name;
625
+ function Pt(n, e) {
626
+ return n.map((t) => t.filter((r) => {
627
+ const u = r.name;
628
628
  return typeof u == "string" && e.includes(u);
629
629
  }));
630
630
  }
631
- const he = "searcher", Pt = 300;
632
- function _n(n) {
633
- const e = J(39), {
631
+ const be = "searcher", Rt = 300;
632
+ function Tn(n) {
633
+ const e = Q(39), {
634
634
  id: t,
635
- filterFn: l,
635
+ filterFn: r,
636
636
  order: u,
637
637
  labels: c,
638
- TextFieldProps: p,
639
- ClearIcon: E,
638
+ TextFieldProps: b,
639
+ ClearIcon: C,
640
640
  debounceDelay: S
641
- } = n, o = u === void 0 ? 20 : u, r = S === void 0 ? Pt : S, i = le(null), a = le(null), {
641
+ } = n, o = u === void 0 ? 20 : u, i = S === void 0 ? Rt : S, l = le(null), a = le(null), {
642
642
  enabled: d,
643
643
  searchText: g
644
- } = te(t, Rt), f = le(d), h = l ?? Dt;
644
+ } = ne(t, Dt), f = le(d), h = r ?? zt;
645
645
  let m;
646
- e[0] !== t ? (m = (U) => {
647
- b.setWidget(t, {
648
- searchText: U
646
+ e[0] !== t ? (m = (Z) => {
647
+ p.setWidget(t, {
648
+ searchText: Z
649
649
  });
650
650
  }, e[0] = t, e[1] = m) : m = e[1];
651
- const y = m;
651
+ const I = m;
652
652
  let s, w;
653
- e[2] !== h || e[3] !== t || e[4] !== o ? (s = () => (b.registerTool(t, {
654
- id: he,
653
+ e[2] !== h || e[3] !== t || e[4] !== o ? (s = () => (p.registerTool(t, {
654
+ id: be,
655
655
  order: o,
656
656
  enabled: !1,
657
- fn: async (U) => {
658
- const F = b.getWidget(t)?.searchText ?? "";
659
- return h(U, F);
657
+ fn: async (Z) => {
658
+ const K = p.getWidget(t)?.searchText ?? "";
659
+ return h(Z, K);
660
660
  },
661
- disables: [ae]
662
- }), () => b.unregisterTool(t, he)), w = [t, o, h], e[2] = h, e[3] = t, e[4] = o, e[5] = s, e[6] = w) : (s = e[5], w = e[6]), H(s, w);
663
- let C, P;
664
- e[7] !== d || e[8] !== t ? (C = () => {
665
- b.setToolEnabled(t, he, d);
666
- }, P = [t, d], e[7] = d, e[8] = t, e[9] = C, e[10] = P) : (C = e[9], P = e[10]), H(C, P);
661
+ disables: [de]
662
+ }), () => p.unregisterTool(t, be)), w = [t, o, h], e[2] = h, e[3] = t, e[4] = o, e[5] = s, e[6] = w) : (s = e[5], w = e[6]), H(s, w);
663
+ let L, P;
664
+ e[7] !== d || e[8] !== t ? (L = () => {
665
+ p.setToolEnabled(t, be, d);
666
+ }, P = [t, d], e[7] = d, e[8] = t, e[9] = L, e[10] = P) : (L = e[9], P = e[10]), H(L, P);
667
667
  let D;
668
- e[11] !== r || e[12] !== t ? (D = () => {
668
+ e[11] !== i || e[12] !== t ? (D = () => {
669
669
  a.current && clearTimeout(a.current), a.current = setTimeout(() => {
670
- b.triggerToolPipeline(t);
671
- }, r);
672
- }, e[11] = r, e[12] = t, e[13] = D) : D = e[13];
670
+ p.triggerToolPipeline(t);
671
+ }, i);
672
+ }, e[11] = i, e[12] = t, e[13] = D) : D = e[13];
673
673
  const O = D;
674
- let T, R;
674
+ let E, R;
675
675
  e[14] !== d ? (R = () => {
676
- d && !f.current && i.current && i.current.focus(), f.current = d;
677
- }, T = [d], e[14] = d, e[15] = T, e[16] = R) : (T = e[15], R = e[16]), H(R, T);
678
- let L, v;
679
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = () => () => {
676
+ d && !f.current && l.current && l.current.focus(), f.current = d;
677
+ }, E = [d], e[14] = d, e[15] = E, e[16] = R) : (E = e[15], R = e[16]), H(R, E);
678
+ let k, v;
679
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => () => {
680
680
  a.current && clearTimeout(a.current);
681
- }, v = [], e[17] = L, e[18] = v) : (L = e[17], v = e[18]), H(L, v);
682
- let _;
683
- e[19] !== O || e[20] !== y ? (_ = (U) => {
684
- const k = U.target.value;
685
- y(k), O();
686
- }, e[19] = O, e[20] = y, e[21] = _) : _ = e[21];
687
- const I = _;
681
+ }, v = [], e[17] = k, e[18] = v) : (k = e[17], v = e[18]), H(k, v);
682
+ let T;
683
+ e[19] !== O || e[20] !== I ? (T = (Z) => {
684
+ const N = Z.target.value;
685
+ I(N), O();
686
+ }, e[19] = O, e[20] = I, e[21] = T) : T = e[21];
687
+ const _ = T;
688
688
  let z;
689
- e[22] !== t || e[23] !== y ? (z = () => {
690
- y(""), b.triggerToolPipeline(t), i.current && i.current.focus();
691
- }, e[22] = t, e[23] = y, e[24] = z) : z = e[24];
692
- const B = z;
689
+ e[22] !== t || e[23] !== I ? (z = () => {
690
+ I(""), p.triggerToolPipeline(t), l.current && l.current.focus();
691
+ }, e[22] = t, e[23] = I, e[24] = z) : z = e[24];
692
+ const M = z;
693
693
  if (!d)
694
694
  return null;
695
- const M = c?.placeholder ?? "Search...", W = c?.clearAriaLabel ?? "Clear search";
695
+ const A = c?.placeholder ?? "Search...", W = c?.clearAriaLabel ?? "Clear search";
696
+ let U;
697
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ x(xe, { position: "start", children: /* @__PURE__ */ x(ze, {}) }), e[25] = U) : U = e[25];
696
698
  let j;
697
- e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ x(pe, { position: "start", children: /* @__PURE__ */ x(Re, {}) }), e[25] = j) : j = e[25];
698
- let Z;
699
- e[26] !== E || e[27] !== W || e[28] !== B || e[29] !== g ? (Z = g ? /* @__PURE__ */ x(pe, { position: "end", children: /* @__PURE__ */ x(Q, { size: "small", "aria-label": W, onClick: B, edge: "end", children: E ?? /* @__PURE__ */ x(Je, { fontSize: "small" }) }) }) : null, e[26] = E, e[27] = W, e[28] = B, e[29] = g, e[30] = Z) : Z = e[30];
699
+ e[26] !== C || e[27] !== W || e[28] !== M || e[29] !== g ? (j = g ? /* @__PURE__ */ x(xe, { position: "end", children: /* @__PURE__ */ x(ee, { size: "small", "aria-label": W, onClick: M, edge: "end", children: C ?? /* @__PURE__ */ x(Qe, { fontSize: "small" }) }) }) : null, e[26] = C, e[27] = W, e[28] = M, e[29] = g, e[30] = j) : j = e[30];
700
700
  let $;
701
- e[31] !== Z ? ($ = {
702
- startAdornment: j,
703
- endAdornment: Z
704
- }, e[31] = Z, e[32] = $) : $ = e[32];
701
+ e[31] !== j ? ($ = {
702
+ startAdornment: U,
703
+ endAdornment: j
704
+ }, e[31] = j, e[32] = $) : $ = e[32];
705
705
  let G;
706
- return e[33] !== p || e[34] !== I || e[35] !== M || e[36] !== g || e[37] !== $ ? (G = /* @__PURE__ */ x(Ge, { inputRef: i, size: "small", fullWidth: !0, variant: "filled", placeholder: M, value: g, onChange: I, InputProps: $, ...p }), e[33] = p, e[34] = I, e[35] = M, e[36] = g, e[37] = $, e[38] = G) : G = e[38], G;
706
+ return e[33] !== b || e[34] !== _ || e[35] !== A || e[36] !== g || e[37] !== $ ? (G = /* @__PURE__ */ x(Ze, { inputRef: l, size: "small", fullWidth: !0, variant: "filled", placeholder: A, value: g, onChange: _, InputProps: $, ...b }), e[33] = b, e[34] = _, e[35] = A, e[36] = g, e[37] = $, e[38] = G) : G = e[38], G;
707
707
  }
708
- function Rt(n) {
708
+ function Dt(n) {
709
709
  return {
710
710
  enabled: n?.isSearchEnabled ?? !1,
711
711
  searchText: n?.searchText ?? ""
712
712
  };
713
713
  }
714
- const Dt = (n, e) => {
714
+ const zt = (n, e) => {
715
715
  if (!e.trim()) return Promise.resolve(n);
716
716
  const t = e.toLowerCase();
717
- return Promise.resolve(n.map((l) => l.filter((u) => Object.values(u).some((c) => String(c).toLowerCase().includes(t)))));
717
+ return Promise.resolve(n.map((r) => r.filter((u) => Object.values(u).some((c) => String(c).toLowerCase().includes(t)))));
718
718
  };
719
- function Tn(n) {
720
- const e = J(18), {
719
+ function _n(n) {
720
+ const e = Q(18), {
721
721
  id: t,
722
- defaultEnabled: l,
722
+ defaultEnabled: r,
723
723
  labels: u,
724
724
  Icon: c,
725
- IconButtonProps: p
726
- } = n, E = l === void 0 ? !1 : l, {
725
+ IconButtonProps: b
726
+ } = n, C = r === void 0 ? !1 : r, {
727
727
  storeIsEnabled: S
728
- } = te(t, zt), o = S ?? E;
729
- let r, i;
730
- e[0] !== E || e[1] !== t ? (r = () => {
731
- b.getWidget(t)?.isSearchEnabled === void 0 && b.setWidget(t, {
732
- isSearchEnabled: E
728
+ } = ne(t, Ot), o = S ?? C;
729
+ let i, l;
730
+ e[0] !== C || e[1] !== t ? (i = () => {
731
+ p.getWidget(t)?.isSearchEnabled === void 0 && p.setWidget(t, {
732
+ isSearchEnabled: C
733
733
  });
734
- }, i = [E, t], e[0] = E, e[1] = t, e[2] = r, e[3] = i) : (r = e[2], i = e[3]), H(r, i);
734
+ }, l = [C, t], e[0] = C, e[1] = t, e[2] = i, e[3] = l) : (i = e[2], l = e[3]), H(i, l);
735
735
  let a;
736
736
  e[4] !== t || e[5] !== o ? (a = () => {
737
- b.setWidget(t, {
737
+ p.setWidget(t, {
738
738
  isSearchEnabled: !o
739
739
  });
740
740
  }, e[4] = t, e[5] = o, e[6] = a) : a = e[6];
741
741
  const d = a, g = o ? u?.disable ?? "Disable search" : u?.enable ?? "Enable search", f = u?.ariaLabel ?? g;
742
742
  let h;
743
- e[7] !== c ? (h = c ?? /* @__PURE__ */ x(Re, { fontSize: "small" }), e[7] = c, e[8] = h) : h = e[8];
743
+ e[7] !== c ? (h = c ?? /* @__PURE__ */ x(ze, { fontSize: "small" }), e[7] = c, e[8] = h) : h = e[8];
744
744
  let m;
745
- e[9] !== p || e[10] !== f || e[11] !== d || e[12] !== o || e[13] !== h ? (m = /* @__PURE__ */ x(Q, { size: "small", "aria-label": f, onClick: d, sx: se.trigger, "data-active": o, ...p, children: h }), e[9] = p, e[10] = f, e[11] = d, e[12] = o, e[13] = h, e[14] = m) : m = e[14];
746
- let y;
747
- return e[15] !== m || e[16] !== g ? (y = /* @__PURE__ */ x(re, { title: g, children: m }), e[15] = m, e[16] = g, e[17] = y) : y = e[17], y;
745
+ e[9] !== b || e[10] !== f || e[11] !== d || e[12] !== o || e[13] !== h ? (m = /* @__PURE__ */ x(ee, { size: "small", "aria-label": f, onClick: d, sx: se.trigger, "data-active": o, ...b, children: h }), e[9] = b, e[10] = f, e[11] = d, e[12] = o, e[13] = h, e[14] = m) : m = e[14];
746
+ let I;
747
+ return e[15] !== m || e[16] !== g ? (I = /* @__PURE__ */ x(re, { title: g, children: m }), e[15] = m, e[16] = g, e[17] = I) : I = e[17], I;
748
748
  }
749
- function zt(n) {
749
+ function Ot(n) {
750
750
  return {
751
751
  storeIsEnabled: n?.isSearchEnabled
752
752
  };
753
753
  }
754
- const Ot = () => {
755
- const n = J(1);
754
+ const Mt = () => {
755
+ const n = Q(1);
756
756
  let e;
757
757
  return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 18 18", children: /* @__PURE__ */ x("path", { fill: "currentColor", fillRule: "evenodd", d: "M14.25 2.25H3.75c-.825 0-1.5.675-1.5 1.5v10.5c0 .825.675 1.5 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5V3.75c0-.825-.675-1.5-1.5-1.5m-3.75 12h-3V3.75h3zM3.75 3.75H6v10.5H3.75zM12 14.25V3.75h2.25v10.5z", clipRule: "evenodd" }) }), n[0] = e) : e = n[0], e;
758
758
  };
759
- function Mt(n) {
760
- const e = J(18), {
759
+ function At(n) {
760
+ const e = Q(18), {
761
761
  column: t
762
762
  } = n;
763
- let l;
764
- e[0] !== t.id ? (l = {
763
+ let r;
764
+ e[0] !== t.id ? (r = {
765
765
  id: t.id
766
- }, e[0] = t.id, e[1] = l) : l = e[1];
766
+ }, e[0] = t.id, e[1] = r) : r = e[1];
767
767
  const {
768
768
  attributes: u,
769
769
  listeners: c,
770
- setNodeRef: p,
771
- transform: E,
770
+ setNodeRef: b,
771
+ transform: C,
772
772
  transition: S,
773
773
  isDragging: o
774
- } = ct(l);
775
- let r;
776
- e[2] !== E ? (r = mt.Transform.toString(E ? {
777
- ...E,
774
+ } = at(r);
775
+ let i;
776
+ e[2] !== C ? (i = mt.Transform.toString(C ? {
777
+ ...C,
778
778
  x: 0
779
- } : null), e[2] = E, e[3] = r) : r = e[3];
780
- const i = o ? 0.5 : 1, a = o ? "grabbing" : "grab";
779
+ } : null), e[2] = C, e[3] = i) : i = e[3];
780
+ const l = o ? 0.5 : 1, a = o ? "grabbing" : "grab";
781
781
  let d;
782
- e[4] !== r || e[5] !== i || e[6] !== a || e[7] !== S ? (d = {
783
- transform: r,
782
+ e[4] !== i || e[5] !== l || e[6] !== a || e[7] !== S ? (d = {
783
+ transform: i,
784
784
  transition: S,
785
- opacity: i,
785
+ opacity: l,
786
786
  cursor: a
787
- }, e[4] = r, e[5] = i, e[6] = a, e[7] = S, e[8] = d) : d = e[8];
787
+ }, e[4] = i, e[5] = l, e[6] = a, e[7] = S, e[8] = d) : d = e[8];
788
788
  const g = d;
789
789
  let f;
790
790
  e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
791
791
  "&:focus-visible": {
792
- outline: At,
792
+ outline: Bt,
793
793
  outlineOffset: -2
794
794
  }
795
795
  }, e[9] = f) : f = e[9];
796
796
  let h;
797
- e[10] !== t.label ? (h = /* @__PURE__ */ x(ke, { children: t.label }), e[10] = t.label, e[11] = h) : h = e[11];
797
+ e[10] !== t.label ? (h = /* @__PURE__ */ x(Pe, { children: t.label }), e[10] = t.label, e[11] = h) : h = e[11];
798
798
  let m;
799
- return e[12] !== u || e[13] !== c || e[14] !== p || e[15] !== g || e[16] !== h ? (m = /* @__PURE__ */ x(Le, { ref: p, style: g, ...u, ...c, role: "menuitem", tabIndex: 0, sx: f, children: h }), e[12] = u, e[13] = c, e[14] = p, e[15] = g, e[16] = h, e[17] = m) : m = e[17], m;
799
+ return e[12] !== u || e[13] !== c || e[14] !== b || e[15] !== g || e[16] !== h ? (m = /* @__PURE__ */ x(we, { ref: b, style: g, ...u, ...c, role: "menuitem", tabIndex: 0, sx: f, children: h }), e[12] = u, e[13] = c, e[14] = b, e[15] = g, e[16] = h, e[17] = m) : m = e[17], m;
800
800
  }
801
- function At(n) {
801
+ function Bt(n) {
802
802
  return `2px solid ${n.palette.primary.main}`;
803
803
  }
804
- const _e = "change-column";
804
+ const Ee = "change-column";
805
805
  function En(n) {
806
- const e = J(46), {
806
+ const e = Q(46), {
807
807
  id: t,
808
- labels: l,
808
+ labels: r,
809
809
  Icon: u,
810
810
  IconButtonProps: c,
811
- MenuProps: p
812
- } = n, [E, S] = ie(null), {
811
+ MenuProps: b
812
+ } = n, [C, S] = ie(null), {
813
813
  columns: o
814
- } = te(t, $t);
815
- let r;
816
- e[0] !== t ? (r = (k) => {
817
- const A = b.getWidget(t)?.columns;
818
- if (!A || A.length === 0)
819
- return k;
820
- const N = k, V = N.columns;
821
- if (!V || V.length === 0 || V.length === A.length && V.every((q, ee) => q.id === A[ee]?.id))
822
- return k;
823
- const K = new Map(V.map(Ft)), Y = [];
824
- for (const q of A) {
825
- const ee = K.get(q.id);
826
- ee && (Y.push(ee), K.delete(q.id));
814
+ } = ne(t, Nt);
815
+ let i;
816
+ e[0] !== t ? (i = (N) => {
817
+ const y = p.getWidget(t)?.columns;
818
+ if (!y || y.length === 0)
819
+ return N;
820
+ const B = N, F = B.columns;
821
+ if (!F || F.length === 0 || F.length === y.length && F.every((Y, J) => Y.id === y[J]?.id))
822
+ return N;
823
+ const X = new Map(F.map($t)), q = [];
824
+ for (const Y of y) {
825
+ const J = X.get(Y.id);
826
+ J && (q.push(J), X.delete(Y.id));
827
827
  }
828
- for (const q of K.values())
829
- Y.push(q);
830
- const ne = Y.length === A.length && Y.every((q, ee) => q.id === A[ee]?.id);
828
+ for (const Y of X.values())
829
+ q.push(Y);
830
+ const te = q.length === y.length && q.every((Y, J) => Y.id === y[J]?.id);
831
831
  return {
832
- ...N,
833
- columns: ne ? A : Y
832
+ ...B,
833
+ columns: te ? y : q
834
834
  };
835
- }, e[0] = t, e[1] = r) : r = e[1];
836
- const i = r;
835
+ }, e[0] = t, e[1] = i) : i = e[1];
836
+ const l = i;
837
837
  let a;
838
838
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
839
- coordinateGetter: at
839
+ coordinateGetter: dt
840
840
  }, e[2] = a) : a = e[2];
841
- const d = ot(xe(lt), xe(rt, a));
841
+ const d = lt(ye(rt), ye(it, a));
842
842
  let g;
843
- e[3] !== o ? (g = o?.map(Wt) ?? [], e[3] = o, e[4] = g) : g = e[4];
843
+ e[3] !== o ? (g = o?.map(Ft) ?? [], e[3] = o, e[4] = g) : g = e[4];
844
844
  const f = g;
845
845
  let h, m;
846
- e[5] !== t || e[6] !== i ? (h = () => (b.registerTool(t, {
847
- id: _e,
846
+ e[5] !== t || e[6] !== l ? (h = () => (p.registerTool(t, {
847
+ id: Ee,
848
848
  type: "config",
849
849
  order: 100,
850
850
  enabled: !0,
851
- fn: i
852
- }), () => b.unregisterTool(t, _e)), m = [t, i], e[5] = t, e[6] = i, e[7] = h, e[8] = m) : (h = e[7], m = e[8]), H(h, m);
853
- let y;
854
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (k) => {
855
- k.stopPropagation(), S(k.currentTarget);
856
- }, e[9] = y) : y = e[9];
857
- const s = y;
851
+ fn: l
852
+ }), () => p.unregisterTool(t, Ee)), m = [t, l], e[5] = t, e[6] = l, e[7] = h, e[8] = m) : (h = e[7], m = e[8]), H(h, m);
853
+ let I;
854
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (N) => {
855
+ N.stopPropagation(), S(N.currentTarget);
856
+ }, e[9] = I) : I = e[9];
857
+ const s = I;
858
858
  let w;
859
859
  e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = () => {
860
860
  S(null);
861
861
  }, e[10] = w) : w = e[10];
862
- const C = w;
862
+ const L = w;
863
863
  let P;
864
- e[11] !== o || e[12] !== t ? (P = (k) => {
864
+ e[11] !== o || e[12] !== t ? (P = (N) => {
865
865
  const {
866
- active: F,
867
- over: A
868
- } = k;
869
- if (!A || F.id === A.id || !o)
866
+ active: K,
867
+ over: y
868
+ } = N;
869
+ if (!y || K.id === y.id || !o)
870
870
  return;
871
- const N = o.findIndex((X) => X.id === F.id), V = o.findIndex((X) => X.id === A.id);
872
- if (N !== -1 && V !== -1) {
873
- const X = dt(o, N, V);
874
- b.setWidget(t, {
875
- columns: X
871
+ const B = o.findIndex((V) => V.id === K.id), F = o.findIndex((V) => V.id === y.id);
872
+ if (B !== -1 && F !== -1) {
873
+ const V = ut(o, B, F);
874
+ p.setWidget(t, {
875
+ columns: V
876
876
  });
877
877
  }
878
878
  }, e[11] = o, e[12] = t, e[13] = P) : P = e[13];
879
879
  const D = P;
880
880
  if (!o || o.length < 2)
881
881
  return null;
882
- const O = l?.tooltip ?? "Change column", T = !!E, R = l?.ariaLabel ?? O, L = T ? "change-column-menu" : void 0, v = T ? "true" : void 0;
882
+ const O = r?.tooltip ?? "Change column", E = !!C, R = r?.ariaLabel ?? O, k = E ? "change-column-menu" : void 0, v = E ? "true" : void 0;
883
+ let T;
884
+ e[14] !== u ? (T = u ?? /* @__PURE__ */ x(Ve, { children: /* @__PURE__ */ x(Mt, {}) }), e[14] = u, e[15] = T) : T = e[15];
883
885
  let _;
884
- e[14] !== u ? (_ = u ?? /* @__PURE__ */ x(Ze, { children: /* @__PURE__ */ x(Ot, {}) }), e[14] = u, e[15] = _) : _ = e[15];
885
- let I;
886
- e[16] !== c || e[17] !== T || e[18] !== L || e[19] !== v || e[20] !== _ || e[21] !== R ? (I = /* @__PURE__ */ x(Q, { size: "small", "aria-label": R, "aria-controls": L, "aria-haspopup": "true", "aria-expanded": v, onClick: s, "data-active": T, sx: se.trigger, ...c, children: _ }), e[16] = c, e[17] = T, e[18] = L, e[19] = v, e[20] = _, e[21] = R, e[22] = I) : I = e[22];
886
+ e[16] !== c || e[17] !== E || e[18] !== k || e[19] !== v || e[20] !== T || e[21] !== R ? (_ = /* @__PURE__ */ x(ee, { size: "small", "aria-label": R, "aria-controls": k, "aria-haspopup": "true", "aria-expanded": v, onClick: s, "data-active": E, sx: se.trigger, ...c, children: T }), e[16] = c, e[17] = E, e[18] = k, e[19] = v, e[20] = T, e[21] = R, e[22] = _) : _ = e[22];
887
887
  let z;
888
- e[23] !== I || e[24] !== O ? (z = /* @__PURE__ */ x(re, { title: O, children: I }), e[23] = I, e[24] = O, e[25] = z) : z = e[25];
889
- let B, M, W;
890
- e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
888
+ e[23] !== _ || e[24] !== O ? (z = /* @__PURE__ */ x(re, { title: O, children: _ }), e[23] = _, e[24] = O, e[25] = z) : z = e[25];
889
+ let M, A, W;
890
+ e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
891
891
  vertical: "bottom",
892
892
  horizontal: "right"
893
- }, M = {
893
+ }, A = {
894
894
  vertical: "top",
895
895
  horizontal: "right"
896
896
  }, W = {
@@ -899,36 +899,36 @@ function En(n) {
899
899
  overflow: "hidden"
900
900
  }
901
901
  }
902
- }, e[26] = B, e[27] = M, e[28] = W) : (B = e[26], M = e[27], W = e[28]);
902
+ }, e[26] = M, e[27] = A, e[28] = W) : (M = e[26], A = e[27], W = e[28]);
903
+ let U;
904
+ e[29] !== o ? (U = o.map(Wt), e[29] = o, e[30] = U) : U = e[30];
903
905
  let j;
904
- e[29] !== o ? (j = o.map(Bt), e[29] = o, e[30] = j) : j = e[30];
905
- let Z;
906
- e[31] !== f || e[32] !== j ? (Z = /* @__PURE__ */ x(ut, { items: f, strategy: ft, children: j }), e[31] = f, e[32] = j, e[33] = Z) : Z = e[33];
906
+ e[31] !== f || e[32] !== U ? (j = /* @__PURE__ */ x(ft, { items: f, strategy: gt, children: U }), e[31] = f, e[32] = U, e[33] = j) : j = e[33];
907
907
  let $;
908
- e[34] !== p || e[35] !== E || e[36] !== T || e[37] !== Z ? ($ = /* @__PURE__ */ x(we, { id: "change-column-menu", anchorEl: E, open: T, onClose: C, anchorOrigin: B, transformOrigin: M, slotProps: W, ...p, children: Z }), e[34] = p, e[35] = E, e[36] = T, e[37] = Z, e[38] = $) : $ = e[38];
908
+ e[34] !== b || e[35] !== C || e[36] !== E || e[37] !== j ? ($ = /* @__PURE__ */ x(Re, { id: "change-column-menu", anchorEl: C, open: E, onClose: L, anchorOrigin: M, transformOrigin: A, slotProps: W, ...b, children: j }), e[34] = b, e[35] = C, e[36] = E, e[37] = j, e[38] = $) : $ = e[38];
909
909
  let G;
910
- e[39] !== D || e[40] !== d || e[41] !== $ ? (G = /* @__PURE__ */ x(it, { sensors: d, collisionDetection: st, onDragEnd: D, children: $ }), e[39] = D, e[40] = d, e[41] = $, e[42] = G) : G = e[42];
911
- let U;
912
- return e[43] !== z || e[44] !== G ? (U = /* @__PURE__ */ oe(de, { children: [
910
+ e[39] !== D || e[40] !== d || e[41] !== $ ? (G = /* @__PURE__ */ x(st, { sensors: d, collisionDetection: ct, onDragEnd: D, children: $ }), e[39] = D, e[40] = d, e[41] = $, e[42] = G) : G = e[42];
911
+ let Z;
912
+ return e[43] !== z || e[44] !== G ? (Z = /* @__PURE__ */ oe(ue, { children: [
913
913
  z,
914
914
  G
915
- ] }), e[43] = z, e[44] = G, e[45] = U) : U = e[45], U;
916
- }
917
- function Bt(n) {
918
- return /* @__PURE__ */ x(Mt, { column: n }, n.id);
915
+ ] }), e[43] = z, e[44] = G, e[45] = Z) : Z = e[45], Z;
919
916
  }
920
917
  function Wt(n) {
921
- return n.id;
918
+ return /* @__PURE__ */ x(At, { column: n }, n.id);
922
919
  }
923
920
  function Ft(n) {
924
- return [n.id, n];
921
+ return n.id;
925
922
  }
926
923
  function $t(n) {
924
+ return [n.id, n];
925
+ }
926
+ function Nt(n) {
927
927
  return {
928
928
  columns: n?.columns
929
929
  };
930
930
  }
931
- const Te = {
931
+ const Ce = {
932
932
  container: {
933
933
  display: "flex",
934
934
  alignItems: "center",
@@ -941,7 +941,7 @@ const Te = {
941
941
  background: (n) => n.palette.primary.relatedLight
942
942
  }
943
943
  }
944
- }, Ee = {
944
+ }, Le = {
945
945
  // `top` and `height` are filled in at render time from the chart's plot
946
946
  // rect so rectangles don't bleed over the legend / axis labels.
947
947
  //
@@ -965,175 +965,195 @@ const Te = {
965
965
  pointerEvents: "none"
966
966
  }
967
967
  };
968
- function Nt(n, e, t) {
968
+ function Gt(n, e, t) {
969
969
  if (t <= 0) return [];
970
- const [l, u] = n <= e ? [n, e] : [e, n], c = Math.max(0, Math.floor(l)), p = Math.min(t - 1, Math.ceil(u));
971
- if (c > p) return [];
972
- const E = [];
973
- for (let S = c; S <= p; S += 1) E.push(S);
974
- return E;
970
+ const [r, u] = n <= e ? [n, e] : [e, n], c = Math.max(0, Math.floor(r)), b = Math.min(t - 1, Math.ceil(u));
971
+ if (c > b) return [];
972
+ const C = [];
973
+ for (let S = c; S <= b; S += 1) C.push(S);
974
+ return C;
975
975
  }
976
- function Gt(n, e) {
976
+ function Zt(n, e) {
977
977
  if (n.length === 0) return [];
978
978
  const t = /* @__PURE__ */ new Set();
979
- for (const l of n)
980
- for (const u of Nt(l.xStart, l.xEnd, e))
979
+ for (const r of n)
980
+ for (const u of Gt(r.xStart, r.xEnd, e))
981
981
  t.add(u);
982
- return Array.from(t).sort((l, u) => l - u);
982
+ return Array.from(t).sort((r, u) => r - u);
983
983
  }
984
- const Zt = 2, Vt = Object.freeze([]), Ce = Object.freeze([]);
985
- function Ht(n) {
984
+ const Vt = 2, Ht = Object.freeze([]), ke = Object.freeze([]);
985
+ function jt(n) {
986
986
  try {
987
- const l = n.getModel().getComponent("grid", 0)?.coordinateSystem?.getRect();
988
- return !l || !Number.isFinite(l.x) || !Number.isFinite(l.y) || !Number.isFinite(l.width) || !Number.isFinite(l.height) ? null : {
989
- x: l.x,
990
- y: l.y,
991
- width: l.width,
992
- height: l.height
987
+ const r = n.getModel().getComponent("grid", 0)?.coordinateSystem?.getRect();
988
+ return !r || !Number.isFinite(r.x) || !Number.isFinite(r.y) || !Number.isFinite(r.width) || !Number.isFinite(r.height) ? null : {
989
+ x: r.x,
990
+ y: r.y,
991
+ width: r.width,
992
+ height: r.height
993
993
  };
994
994
  } catch {
995
995
  return null;
996
996
  }
997
997
  }
998
- function jt(n, e) {
998
+ function Ut(n, e) {
999
999
  return n === e ? !0 : !n || !e ? !1 : n.x === e.x && n.y === e.y && n.width === e.width && n.height === e.height;
1000
1000
  }
1001
- function Ut(n) {
1002
- const e = J(50), {
1001
+ function Xt(n) {
1002
+ const e = Q(55), {
1003
1003
  id: t,
1004
- multiBrush: l
1004
+ multiBrush: r
1005
1005
  } = n, {
1006
1006
  enabled: u,
1007
1007
  rects: c,
1008
- dataLength: p
1009
- } = te(t, qt), E = Yt;
1008
+ dataLength: b
1009
+ } = ne(t, Jt), C = qt;
1010
1010
  let S;
1011
- e[0] !== t ? (S = () => b.getWidget(t)?.refUI?.current ?? null, e[0] = t, e[1] = S) : S = e[1];
1012
- const o = Se(E, S, Kt);
1013
- let r;
1014
- e[2] !== t ? (r = () => b.getWidget(t)?.instance?.current ?? null, e[2] = t, e[3] = r) : r = e[3];
1015
- const i = Se(E, r, Xt), a = le(null), d = le(null), g = le(null), [f, h] = ie(Ce), [m, y] = ie(null), [s, w] = ie(null);
1016
- let C, P;
1017
- e[4] !== o || e[5] !== t ? (C = () => {
1011
+ e[0] !== t ? (S = () => p.getWidget(t)?.refUI?.current ?? null, e[0] = t, e[1] = S) : S = e[1];
1012
+ const o = ve(C, S, Kt);
1013
+ let i;
1014
+ e[2] !== t ? (i = () => p.getWidget(t)?.instance?.current ?? null, e[2] = t, e[3] = i) : i = e[3];
1015
+ const l = ve(C, i, Yt), a = le(null), d = le(null), g = le(null), [f, h] = ie(ke), [m, I] = ie(null), [s, w] = ie(null);
1016
+ let L, P;
1017
+ e[4] !== o || e[5] !== t ? (L = () => {
1018
1018
  if (!o)
1019
1019
  return;
1020
- const k = document.getElementById(t);
1021
- if (!k)
1020
+ const y = document.getElementById(t);
1021
+ if (!y)
1022
1022
  return;
1023
- const F = k.style.position;
1024
- return F || (k.style.position = "relative"), () => {
1025
- F || (k.style.position = "");
1023
+ const B = y.style.position;
1024
+ return B || (y.style.position = "relative"), () => {
1025
+ B || (y.style.position = "");
1026
1026
  };
1027
- }, P = [t, o], e[4] = o, e[5] = t, e[6] = C, e[7] = P) : (C = e[6], P = e[7]), H(C, P);
1027
+ }, P = [t, o], e[4] = o, e[5] = t, e[6] = L, e[7] = P) : (L = e[6], P = e[7]), H(L, P);
1028
1028
  let D, O;
1029
- e[8] !== o || e[9] !== i || e[10] !== c ? (D = () => {
1030
- if (!i || !o)
1029
+ e[8] !== o || e[9] !== l || e[10] !== c ? (D = () => {
1030
+ if (!l || !o)
1031
1031
  return;
1032
- const k = () => {
1033
- const A = Ht(i);
1034
- if (w((V) => jt(V, A) ? V : A), !A)
1032
+ const y = () => {
1033
+ const F = jt(l);
1034
+ if (w((X) => Ut(X, F) ? X : F), !F)
1035
1035
  return;
1036
- const N = [];
1037
- for (const V of c) {
1038
- const X = i.convertToPixel({
1036
+ const V = [];
1037
+ for (const X of c) {
1038
+ const q = l.convertToPixel({
1039
1039
  xAxisIndex: 0
1040
- }, V.xStart), K = i.convertToPixel({
1040
+ }, X.xStart), te = l.convertToPixel({
1041
1041
  xAxisIndex: 0
1042
- }, V.xEnd);
1043
- if (typeof X != "number" || typeof K != "number" || !Number.isFinite(X) || !Number.isFinite(K))
1042
+ }, X.xEnd);
1043
+ if (typeof q != "number" || typeof te != "number" || !Number.isFinite(q) || !Number.isFinite(te))
1044
1044
  continue;
1045
- const Y = Math.max(A.x, Math.min(X, K)), ne = Math.min(A.x + A.width, Math.max(X, K));
1046
- ne <= Y || N.push({
1045
+ const Y = Math.max(F.x, Math.min(q, te)), J = Math.min(F.x + F.width, Math.max(q, te));
1046
+ J <= Y || V.push({
1047
1047
  left: Y,
1048
- right: ne
1048
+ right: J
1049
1049
  });
1050
1050
  }
1051
- h(N.length === 0 ? Ce : N);
1051
+ h(V.length === 0 ? ke : V);
1052
1052
  };
1053
- k(), i.on("finished", k);
1054
- const F = ht(o, k);
1053
+ y(), l.on("finished", y);
1054
+ const B = pt(o, y);
1055
1055
  return () => {
1056
- i.off("finished", k), F();
1056
+ l.off("finished", y), B();
1057
1057
  };
1058
- }, O = [i, o, c], e[8] = o, e[9] = i, e[10] = c, e[11] = D, e[12] = O) : (D = e[11], O = e[12]), H(D, O);
1059
- let T;
1060
- e[13] !== o || e[14] !== u || e[15] !== s ? (T = (k) => {
1058
+ }, O = [l, o, c], e[8] = o, e[9] = l, e[10] = c, e[11] = D, e[12] = O) : (D = e[11], O = e[12]), H(D, O);
1059
+ let E;
1060
+ e[13] !== o || e[14] !== u || e[15] !== l || e[16] !== s ? (E = (y) => {
1061
1061
  if (!u || !o || !s)
1062
1062
  return;
1063
- const F = a.current;
1064
- if (!F)
1063
+ const B = a.current;
1064
+ if (!B)
1065
1065
  return;
1066
- k.preventDefault(), F.setPointerCapture(k.pointerId), g.current = k.pointerId;
1067
- const A = o.getBoundingClientRect(), N = be(k.clientX - A.left, s);
1068
- d.current = N, y({
1069
- left: N,
1070
- right: N
1066
+ y.preventDefault(), B.setPointerCapture(y.pointerId), g.current = y.pointerId, l?.dispatchAction({
1067
+ type: "hideTip"
1071
1068
  });
1072
- }, e[13] = o, e[14] = u, e[15] = s, e[16] = T) : T = e[16];
1073
- const R = T;
1074
- let L;
1075
- e[17] !== o || e[18] !== s ? (L = (k) => {
1076
- if (g.current !== k.pointerId)
1069
+ const F = o.getBoundingClientRect(), V = Se(y.clientX - F.left, s);
1070
+ d.current = V, I({
1071
+ left: V,
1072
+ right: V
1073
+ });
1074
+ }, e[13] = o, e[14] = u, e[15] = l, e[16] = s, e[17] = E) : E = e[17];
1075
+ const R = E;
1076
+ let k;
1077
+ e[18] !== o || e[19] !== l || e[20] !== s ? (k = (y) => {
1078
+ if (g.current === null) {
1079
+ if (l && o) {
1080
+ const X = o.getBoundingClientRect();
1081
+ l.dispatchAction({
1082
+ type: "showTip",
1083
+ x: y.clientX - X.left,
1084
+ y: y.clientY - X.top
1085
+ });
1086
+ }
1077
1087
  return;
1078
- const F = d.current;
1079
- if (F === null || !o || !s)
1088
+ }
1089
+ if (g.current !== y.pointerId)
1090
+ return;
1091
+ const B = d.current;
1092
+ if (B === null || !o || !s)
1080
1093
  return;
1081
- const A = o.getBoundingClientRect(), N = be(k.clientX - A.left, s);
1082
- y({
1083
- left: Math.min(F, N),
1084
- right: Math.max(F, N)
1094
+ const F = o.getBoundingClientRect(), V = Se(y.clientX - F.left, s);
1095
+ I({
1096
+ left: Math.min(B, V),
1097
+ right: Math.max(B, V)
1085
1098
  });
1086
- }, e[17] = o, e[18] = s, e[19] = L) : L = e[19];
1087
- const v = L;
1088
- let _;
1089
- e[20] !== o || e[21] !== p || e[22] !== t || e[23] !== i || e[24] !== l || e[25] !== s || e[26] !== c ? (_ = (k) => {
1090
- if (g.current !== k.pointerId)
1099
+ }, e[18] = o, e[19] = l, e[20] = s, e[21] = k) : k = e[21];
1100
+ const v = k;
1101
+ let T;
1102
+ e[22] !== l ? (T = () => {
1103
+ g.current === null && l?.dispatchAction({
1104
+ type: "hideTip"
1105
+ });
1106
+ }, e[22] = l, e[23] = T) : T = e[23];
1107
+ const _ = T;
1108
+ let z;
1109
+ e[24] !== o || e[25] !== b || e[26] !== t || e[27] !== l || e[28] !== r || e[29] !== s || e[30] !== c ? (z = (y) => {
1110
+ if (g.current !== y.pointerId)
1091
1111
  return;
1092
- const F = d.current, A = a.current;
1093
- if (g.current = null, d.current = null, y(null), F === null || !A || !i || !o || !s)
1112
+ const B = d.current, F = a.current;
1113
+ if (g.current = null, d.current = null, I(null), B === null || !F || !l || !o || !s)
1094
1114
  return;
1095
1115
  try {
1096
- A.releasePointerCapture(k.pointerId);
1116
+ F.releasePointerCapture(y.pointerId);
1097
1117
  } catch {
1098
1118
  }
1099
- const N = o.getBoundingClientRect(), V = be(k.clientX - N.left, s), X = Math.min(F, V), K = Math.max(F, V);
1100
- if (K - X < Zt)
1119
+ const V = o.getBoundingClientRect(), X = Se(y.clientX - V.left, s), q = Math.min(B, X), te = Math.max(B, X);
1120
+ if (te - q < Vt)
1101
1121
  return;
1102
- const Y = i.convertFromPixel({
1122
+ const Y = l.convertFromPixel({
1103
1123
  xAxisIndex: 0
1104
- }, X), ne = i.convertFromPixel({
1124
+ }, q), J = l.convertFromPixel({
1105
1125
  xAxisIndex: 0
1106
- }, K);
1107
- if (typeof Y != "number" || typeof ne != "number" || !Number.isFinite(Y) || !Number.isFinite(ne))
1126
+ }, te);
1127
+ if (typeof Y != "number" || typeof J != "number" || !Number.isFinite(Y) || !Number.isFinite(J))
1108
1128
  return;
1109
- const q = {
1129
+ const ce = {
1110
1130
  xStart: Y,
1111
- xEnd: ne
1112
- }, ee = l ? [...c, q] : [q], ue = {
1113
- dataIndex: Gt(ee, p),
1131
+ xEnd: J
1132
+ }, fe = r ? [...c, ce] : [ce], ge = {
1133
+ dataIndex: Zt(fe, b),
1114
1134
  seriesIndex: 0
1115
1135
  };
1116
- b.setWidget(t, {
1117
- brushRects: ee,
1118
- brushSelection: ue,
1119
- ...l ? {} : {
1136
+ p.setWidget(t, {
1137
+ brushRects: fe,
1138
+ brushSelection: ge,
1139
+ ...r ? {} : {
1120
1140
  brush: !1
1121
1141
  }
1122
1142
  });
1123
- }, e[20] = o, e[21] = p, e[22] = t, e[23] = i, e[24] = l, e[25] = s, e[26] = c, e[27] = _) : _ = e[27];
1124
- const I = _;
1143
+ }, e[24] = o, e[25] = b, e[26] = t, e[27] = l, e[28] = r, e[29] = s, e[30] = c, e[31] = z) : z = e[31];
1144
+ const M = z;
1125
1145
  if (!o)
1126
1146
  return null;
1127
- let z;
1128
- e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = {
1147
+ let A;
1148
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
1129
1149
  position: "absolute",
1130
1150
  inset: 0,
1131
1151
  pointerEvents: "none",
1132
1152
  zIndex: 1
1133
- }, e[28] = z) : z = e[28];
1134
- const B = z;
1135
- let M;
1136
- e[29] !== u || e[30] !== s ? (M = s ? {
1153
+ }, e[32] = A) : A = e[32];
1154
+ const W = A;
1155
+ let U;
1156
+ e[33] !== u || e[34] !== s ? (U = s ? {
1137
1157
  position: "absolute",
1138
1158
  left: s.x,
1139
1159
  top: s.y,
@@ -1143,152 +1163,152 @@ function Ut(n) {
1143
1163
  cursor: u ? "crosshair" : "default",
1144
1164
  userSelect: "none",
1145
1165
  touchAction: "none"
1146
- } : void 0, e[29] = u, e[30] = s, e[31] = M) : M = e[31];
1147
- const W = M;
1148
- let j;
1149
- e[32] !== W || e[33] !== R || e[34] !== v || e[35] !== I ? (j = W && /* @__PURE__ */ x("div", { ref: a, style: W, onPointerDown: R, onPointerMove: v, onPointerUp: I, onPointerCancel: I }), e[32] = W, e[33] = R, e[34] = v, e[35] = I, e[36] = j) : j = e[36];
1150
- let Z;
1151
- e[37] !== s || e[38] !== f ? (Z = s && f.map((k, F) => /* @__PURE__ */ x("div", { style: {
1152
- ...Ee.rect,
1153
- left: k.left,
1154
- width: Math.max(0, k.right - k.left),
1166
+ } : void 0, e[33] = u, e[34] = s, e[35] = U) : U = e[35];
1167
+ const j = U;
1168
+ let $;
1169
+ e[36] !== j || e[37] !== R || e[38] !== _ || e[39] !== v || e[40] !== M ? ($ = j && /* @__PURE__ */ x("div", { ref: a, style: j, onPointerDown: R, onPointerMove: v, onPointerUp: M, onPointerCancel: M, onPointerLeave: _ }), e[36] = j, e[37] = R, e[38] = _, e[39] = v, e[40] = M, e[41] = $) : $ = e[41];
1170
+ let G;
1171
+ e[42] !== s || e[43] !== f ? (G = s && f.map((y, B) => /* @__PURE__ */ x("div", { style: {
1172
+ ...Le.rect,
1173
+ left: y.left,
1174
+ width: Math.max(0, y.right - y.left),
1155
1175
  top: s.y,
1156
1176
  height: s.height
1157
- } }, `${k.left}-${k.right}-${F}`)), e[37] = s, e[38] = f, e[39] = Z) : Z = e[39];
1158
- let $;
1159
- e[40] !== m || e[41] !== s ? ($ = s && m && /* @__PURE__ */ x("div", { style: {
1160
- ...Ee.rectPreview,
1177
+ } }, `${y.left}-${y.right}-${B}`)), e[42] = s, e[43] = f, e[44] = G) : G = e[44];
1178
+ let Z;
1179
+ e[45] !== m || e[46] !== s ? (Z = s && m && /* @__PURE__ */ x("div", { style: {
1180
+ ...Le.rectPreview,
1161
1181
  left: m.left,
1162
1182
  width: Math.max(0, m.right - m.left),
1163
1183
  top: s.y,
1164
1184
  height: s.height
1165
- } }), e[40] = m, e[41] = s, e[42] = $) : $ = e[42];
1166
- let G;
1167
- e[43] !== j || e[44] !== Z || e[45] !== $ ? (G = /* @__PURE__ */ oe("div", { style: B, children: [
1168
- j,
1169
- Z,
1170
- $
1171
- ] }), e[43] = j, e[44] = Z, e[45] = $, e[46] = G) : G = e[46];
1172
- let U;
1173
- return e[47] !== o || e[48] !== G ? (U = gt(G, o), e[47] = o, e[48] = G, e[49] = U) : U = e[49], U;
1185
+ } }), e[45] = m, e[46] = s, e[47] = Z) : Z = e[47];
1186
+ let N;
1187
+ e[48] !== $ || e[49] !== G || e[50] !== Z ? (N = /* @__PURE__ */ oe("div", { style: W, children: [
1188
+ $,
1189
+ G,
1190
+ Z
1191
+ ] }), e[48] = $, e[49] = G, e[50] = Z, e[51] = N) : N = e[51];
1192
+ let K;
1193
+ return e[52] !== o || e[53] !== N ? (K = ht(N, o), e[52] = o, e[53] = N, e[54] = K) : K = e[54], K;
1174
1194
  }
1175
- function Xt() {
1195
+ function Yt() {
1176
1196
  return null;
1177
1197
  }
1178
1198
  function Kt() {
1179
1199
  return null;
1180
1200
  }
1181
- function Yt(n) {
1182
- return Ve.subscribe(n);
1183
- }
1184
1201
  function qt(n) {
1185
- const e = n, l = n?.data?.[0], u = Array.isArray(l) ? l.length : 0;
1202
+ return He.subscribe(n);
1203
+ }
1204
+ function Jt(n) {
1205
+ const e = n, r = n?.data?.[0], u = Array.isArray(r) ? r.length : 0;
1186
1206
  return {
1187
1207
  enabled: e?.brush ?? !1,
1188
- rects: e?.brushRects ?? Vt,
1208
+ rects: e?.brushRects ?? Ht,
1189
1209
  dataLength: u
1190
1210
  };
1191
1211
  }
1192
- function be(n, e) {
1212
+ function Se(n, e) {
1193
1213
  return Math.max(e.x, Math.min(e.x + e.width, n));
1194
1214
  }
1195
1215
  const Cn = "brush-toggle";
1196
1216
  function Ln(n) {
1197
- const e = J(35), {
1217
+ const e = Q(35), {
1198
1218
  id: t,
1199
- onBrushSelected: l,
1219
+ onBrushSelected: r,
1200
1220
  multiBrush: u,
1201
1221
  selections: c,
1202
- defaultEnabled: p,
1203
- labels: E,
1222
+ defaultEnabled: b,
1223
+ labels: C,
1204
1224
  Icon: S,
1205
1225
  IconButtonProps: o
1206
- } = n, r = p === void 0 ? !1 : p;
1207
- let i;
1208
- e[0] !== r ? (i = (B) => {
1209
- const M = B;
1226
+ } = n, i = b === void 0 ? !1 : b;
1227
+ let l;
1228
+ e[0] !== i ? (l = (M) => {
1229
+ const A = M;
1210
1230
  return {
1211
- brush: M?.brush ?? r,
1212
- selection: M?.brushSelection
1231
+ brush: A?.brush ?? i,
1232
+ selection: A?.brushSelection
1213
1233
  };
1214
- }, e[0] = r, e[1] = i) : i = e[1];
1234
+ }, e[0] = i, e[1] = l) : l = e[1];
1215
1235
  const {
1216
1236
  brush: a,
1217
1237
  selection: d
1218
- } = te(t, i);
1238
+ } = ne(t, l);
1219
1239
  let g, f;
1220
- e[2] !== r || e[3] !== t ? (g = () => {
1221
- b.getWidget(t)?.brush === void 0 && b.setWidget(t, {
1222
- brush: r
1240
+ e[2] !== i || e[3] !== t ? (g = () => {
1241
+ p.getWidget(t)?.brush === void 0 && p.setWidget(t, {
1242
+ brush: i
1223
1243
  });
1224
- }, f = [t, r], e[2] = r, e[3] = t, e[4] = g, e[5] = f) : (g = e[4], f = e[5]), H(g, f);
1244
+ }, f = [t, i], e[2] = i, e[3] = t, e[4] = g, e[5] = f) : (g = e[4], f = e[5]), H(g, f);
1225
1245
  let h;
1226
- e[6] !== a || e[7] !== t || e[8] !== l ? (h = () => {
1227
- a ? b.setWidget(t, {
1246
+ e[6] !== a || e[7] !== t || e[8] !== r ? (h = () => {
1247
+ a ? p.setWidget(t, {
1228
1248
  brush: !1
1229
- }) : (b.setWidget(t, {
1249
+ }) : (p.setWidget(t, {
1230
1250
  brush: !0,
1231
1251
  brushRects: [],
1232
1252
  brushSelection: {
1233
1253
  dataIndex: [],
1234
1254
  seriesIndex: 0
1235
1255
  }
1236
- }), l?.({
1256
+ }), r?.({
1237
1257
  dataIndex: [],
1238
1258
  seriesIndex: 0
1239
1259
  }));
1240
- }, e[6] = a, e[7] = t, e[8] = l, e[9] = h) : h = e[9];
1241
- const m = h, y = le(void 0);
1260
+ }, e[6] = a, e[7] = t, e[8] = r, e[9] = h) : h = e[9];
1261
+ const m = h, I = le(void 0);
1242
1262
  let s, w;
1243
- e[10] !== l || e[11] !== d ? (s = () => {
1244
- d && y.current !== d && (y.current = d, l?.(d));
1245
- }, w = [d, l], e[10] = l, e[11] = d, e[12] = s, e[13] = w) : (s = e[12], w = e[13]), H(s, w);
1246
- let C, P;
1247
- e[14] !== t || e[15] !== c ? (C = () => {
1263
+ e[10] !== r || e[11] !== d ? (s = () => {
1264
+ d && I.current !== d && (I.current = d, r?.(d));
1265
+ }, w = [d, r], e[10] = r, e[11] = d, e[12] = s, e[13] = w) : (s = e[12], w = e[13]), H(s, w);
1266
+ let L, P;
1267
+ e[14] !== t || e[15] !== c ? (L = () => {
1248
1268
  if (c !== 0)
1249
1269
  return;
1250
- const B = b.getWidget(t), M = (B?.brushRects?.length ?? 0) > 0, W = (B?.brushSelection?.dataIndex?.length ?? 0) > 0;
1251
- !M && !W || b.setWidget(t, {
1270
+ const M = p.getWidget(t), A = (M?.brushRects?.length ?? 0) > 0, W = (M?.brushSelection?.dataIndex?.length ?? 0) > 0;
1271
+ !A && !W || p.setWidget(t, {
1252
1272
  brushRects: [],
1253
1273
  brushSelection: {
1254
1274
  dataIndex: [],
1255
1275
  seriesIndex: 0
1256
1276
  }
1257
1277
  });
1258
- }, P = [c, t], e[14] = t, e[15] = c, e[16] = C, e[17] = P) : (C = e[16], P = e[17]), H(C, P);
1259
- const D = E?.enable ?? "Enable brush selection", O = E?.disable ?? "Disable brush selection", T = a ? O : D, R = E?.ariaLabel ?? T;
1260
- let L;
1261
- e[18] !== S ? (L = S ?? /* @__PURE__ */ x(Qe, {}), e[18] = S, e[19] = L) : L = e[19];
1278
+ }, P = [c, t], e[14] = t, e[15] = c, e[16] = L, e[17] = P) : (L = e[16], P = e[17]), H(L, P);
1279
+ const D = C?.enable ?? "Enable brush selection", O = C?.disable ?? "Disable brush selection", E = a ? O : D, R = C?.ariaLabel ?? E;
1280
+ let k;
1281
+ e[18] !== S ? (k = S ?? /* @__PURE__ */ x(et, {}), e[18] = S, e[19] = k) : k = e[19];
1262
1282
  let v;
1263
- e[20] !== o || e[21] !== a || e[22] !== m || e[23] !== R || e[24] !== L ? (v = /* @__PURE__ */ x(Q, { size: "small", "aria-label": R, onClick: m, sx: Te.trigger, "data-active": a, ...o, children: L }), e[20] = o, e[21] = a, e[22] = m, e[23] = R, e[24] = L, e[25] = v) : v = e[25];
1283
+ e[20] !== o || e[21] !== a || e[22] !== m || e[23] !== R || e[24] !== k ? (v = /* @__PURE__ */ x(ee, { size: "small", "aria-label": R, onClick: m, sx: Ce.trigger, "data-active": a, ...o, children: k }), e[20] = o, e[21] = a, e[22] = m, e[23] = R, e[24] = k, e[25] = v) : v = e[25];
1284
+ let T;
1285
+ e[26] !== v || e[27] !== E ? (T = /* @__PURE__ */ x(De, { sx: Ce.container, children: /* @__PURE__ */ x(re, { title: E, children: v }) }), e[26] = v, e[27] = E, e[28] = T) : T = e[28];
1264
1286
  let _;
1265
- e[26] !== v || e[27] !== T ? (_ = /* @__PURE__ */ x(Pe, { sx: Te.container, children: /* @__PURE__ */ x(re, { title: T, children: v }) }), e[26] = v, e[27] = T, e[28] = _) : _ = e[28];
1266
- let I;
1267
- e[29] !== t || e[30] !== u ? (I = /* @__PURE__ */ x(Ut, { id: t, multiBrush: u }), e[29] = t, e[30] = u, e[31] = I) : I = e[31];
1287
+ e[29] !== t || e[30] !== u ? (_ = /* @__PURE__ */ x(Xt, { id: t, multiBrush: u }), e[29] = t, e[30] = u, e[31] = _) : _ = e[31];
1268
1288
  let z;
1269
- return e[32] !== _ || e[33] !== I ? (z = /* @__PURE__ */ oe(de, { children: [
1270
- _,
1271
- I
1272
- ] }), e[32] = _, e[33] = I, e[34] = z) : z = e[34], z;
1289
+ return e[32] !== T || e[33] !== _ ? (z = /* @__PURE__ */ oe(ue, { children: [
1290
+ T,
1291
+ _
1292
+ ] }), e[32] = T, e[33] = _, e[34] = z) : z = e[34], z;
1273
1293
  }
1274
1294
  export {
1275
1295
  Cn as BRUSH_TOGGLE_TOOL_ID,
1276
1296
  Ln as BrushToggle,
1277
- _e as CHANGE_COLUMN_TOOL_ID,
1297
+ Ee as CHANGE_COLUMN_TOOL_ID,
1278
1298
  En as ChangeColumn,
1279
1299
  Sn as Download,
1280
- pn as FullScreen,
1281
- ae as LOCK_SELECTION_TOOL_ID,
1300
+ bn as FullScreen,
1301
+ de as LOCK_SELECTION_TOOL_ID,
1282
1302
  In as LockSelection,
1283
- ye as RELATIVE_DATA_CONFIG_TOOL_ID,
1284
- fe as RELATIVE_DATA_TOOL_ID,
1303
+ Te as RELATIVE_DATA_CONFIG_TOOL_ID,
1304
+ me as RELATIVE_DATA_TOOL_ID,
1285
1305
  xn as RelativeData,
1286
- he as SEARCHER_TOOL_ID,
1287
- ge as STACK_TOGGLE_TOOL_ID,
1288
- _n as Searcher,
1289
- Tn as SearcherToggle,
1306
+ be as SEARCHER_TOOL_ID,
1307
+ pe as STACK_TOGGLE_TOOL_ID,
1308
+ Tn as Searcher,
1309
+ _n as SearcherToggle,
1290
1310
  yn as StackToggle,
1291
- me as ZOOM_TOGGLE_TOOL_ID,
1311
+ he as ZOOM_TOGGLE_TOOL_ID,
1292
1312
  vn as ZoomToggle,
1293
1313
  Pn as downloadToCSV,
1294
1314
  Rn as downloadToPNG