@devtable/dashboard 5.9.0 → 5.9.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,44 +1,44 @@
1
1
  var Ja = Object.defineProperty;
2
2
  var Xa = (e, t, n) => t in e ? Ja(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var F = (e, t, n) => (Xa(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { Box as G, Text as C, Button as H, Checkbox as tt, MultiSelect as Jn, Select as T, TextInput as E, Group as y, Stack as R, JsonInput as Io, ActionIcon as A, AppShell as en, LoadingOverlay as tn, Table as Xn, Tooltip as dt, Tabs as $, Textarea as Vo, Modal as Te, Divider as te, SimpleGrid as Ka, NumberInput as ze, Menu as xe, Paper as Za, Code as ro, Switch as Ge, useMantineTheme as es, ColorInput as ts, ColorSwatch as oo, Slider as Mo, Accordion as j, SegmentedControl as ns, createStyles as Kn, Popover as Dn, Badge as rs } from "@mantine/core";
5
- import { useModals as os, ModalsProvider as ko } from "@mantine/modals";
6
- import { useCreation as Be, usePrevious as is, useRequest as Qt, useBoolean as $t, useAsyncEffect as Et, useLatest as io } from "ahooks";
4
+ import { Box as G, Text as C, Button as H, Checkbox as tt, MultiSelect as Xn, Select as T, TextInput as E, Group as y, Stack as R, JsonInput as Vo, ActionIcon as A, AppShell as en, LoadingOverlay as tn, Table as Kn, Tooltip as dt, Tabs as $, Textarea as Mo, Modal as Te, Divider as te, SimpleGrid as Ka, NumberInput as ze, Menu as Ce, Paper as Za, Code as oo, Switch as Ge, useMantineTheme as es, ColorInput as ts, ColorSwatch as io, Slider as ko, Accordion as j, SegmentedControl as ns, createStyles as Zn, Popover as Dn, Badge as rs } from "@mantine/core";
5
+ import { useModals as os, ModalsProvider as Fo } from "@mantine/modals";
6
+ import { useCreation as Be, usePrevious as is, useRequest as Qt, useBoolean as $t, useAsyncEffect as Et, useLatest as ao } from "ahooks";
7
7
  import { observer as I } from "mobx-react-lite";
8
- import * as ao from "react";
9
- import w, { useEffect as Z, createContext as Fo, useState as me, useMemo as L, forwardRef as Zn, createElement as nn, useCallback as Mt, useContext as He, useRef as as } from "react";
10
- import K, { get as Q, isFunction as ss, omit as rn, values as $o, unset as ls, isObject as Eo, set as Ao, orderBy as cs, last as us, defaults as le, minBy as ds, maxBy as Oo, isEqual as Ce, groupBy as Ee, cloneDeep as zo, defaultsDeep as We, merge as Po, isEmpty as To, noop as gs, findLastIndex as ps, isNumber as fs, isString as Lo, range as ms, template as No, cloneDeepWith as hs, throttle as vs, pick as qo } from "lodash";
8
+ import * as so from "react";
9
+ import w, { useEffect as Z, createContext as $o, useState as he, useMemo as L, forwardRef as er, createElement as nn, useCallback as Mt, useContext as He, useRef as as } from "react";
10
+ import K, { get as Q, isFunction as ss, omit as rn, values as Eo, unset as ls, isObject as Ao, set as Oo, orderBy as cs, last as us, defaults as le, minBy as ds, maxBy as zo, isEqual as we, groupBy as Ee, cloneDeep as Po, defaultsDeep as We, merge as To, isEmpty as Lo, noop as gs, findLastIndex as ps, isNumber as fs, isString as No, range as ms, template as qo, cloneDeepWith as hs, throttle as vs, pick as jo } from "lodash";
11
11
  import { useForm as Ue, useWatch as bs, Controller as D, useFieldArray as Ae } from "react-hook-form";
12
12
  import { DateRangePicker as ys } from "@mantine/dates";
13
13
  import nt from "dayjs";
14
- import { Calendar as xs, DeviceFloppy as se, Refresh as jo, Trash as ie, PlaylistAdd as mt, Recycle as Go, Settings as Bo, Filter as Cs, Database as ws, Share as Ss, Download as Ho, Code as _s, InfoCircle as Rs, ArrowRight as In, ArrowsMaximize as Ds, Copy as Is, ArrowLeft as Vs, ArrowsMove as Ms, ChevronDownRight as ks } from "tabler-icons-react";
14
+ import { Calendar as xs, DeviceFloppy as se, Refresh as Go, Trash as ie, PlaylistAdd as mt, Recycle as Bo, Settings as Ho, Filter as Cs, Database as ws, Share as Ss, Download as Wo, Code as _s, InfoCircle as Rs, ArrowRight as In, ArrowsMaximize as Ds, Copy as Is, ArrowLeft as Vs, ArrowsMove as Ms, ChevronDownRight as ks } from "tabler-icons-react";
15
15
  import Fs from "jszip";
16
16
  import { Prism as Pe } from "@mantine/prism";
17
17
  import { showNotification as on } from "@mantine/notifications";
18
- import Wo from "axios";
18
+ import Uo from "axios";
19
19
  import $s from "crypto-js";
20
- import { cast as ht, types as x, addDisposer as er, addMiddleware as Es, getType as As, getRoot as Jt, flow as Os, toGenerator as zs, detach as Ps, resolveIdentifier as so, castToSnapshot as Uo, getSnapshot as jt, applySnapshot as Ct, applyPatch as Ts, onSnapshot as Ls } from "mobx-state-tree";
21
- import { randomId as Ie, useClipboard as Ns, useElementSize as Pn, useInputState as Yo } from "@mantine/hooks";
22
- import Qo, { RichTextEditor as Jo } from "@mantine/rte";
23
- import { makeAutoObservable as tr, runInAction as Dt, observable as Xo, toJS as an, reaction as nr } from "mobx";
24
- import lo from "eventemitter2";
20
+ import { cast as ht, types as x, addDisposer as tr, addMiddleware as Es, getType as As, getRoot as Jt, flow as Os, toGenerator as zs, detach as Ps, resolveIdentifier as lo, castToSnapshot as Yo, getSnapshot as jt, applySnapshot as Ct, applyPatch as Ts, onSnapshot as Ls } from "mobx-state-tree";
21
+ import { randomId as Ie, useClipboard as Ns, useElementSize as Pn, useInputState as Qo } from "@mantine/hooks";
22
+ import Jo, { RichTextEditor as Xo } from "@mantine/rte";
23
+ import { makeAutoObservable as nr, runInAction as Dt, observable as Ko, toJS as an, reaction as rr } from "mobx";
24
+ import co from "eventemitter2";
25
25
  import kt from "chroma-js";
26
26
  import "echarts-gl";
27
27
  import * as ge from "echarts/core";
28
- import { GridComponent as vt, VisualMapComponent as qs, LegendComponent as bt, TooltipComponent as yt, DataZoomComponent as sn, MarkLineComponent as Ko, MarkAreaComponent as js } from "echarts/components";
28
+ import { GridComponent as vt, VisualMapComponent as qs, LegendComponent as bt, TooltipComponent as yt, DataZoomComponent as sn, MarkLineComponent as Zo, MarkAreaComponent as js } from "echarts/components";
29
29
  import { CanvasRenderer as it } from "echarts/renderers";
30
30
  import at from "echarts-for-react/lib/core";
31
- import { BoxplotChart as Gs, BarChart as Zo, LineChart as ei, ScatterChart as ti, PieChart as Bs, RadarChart as Hs, SunburstChart as Ws } from "echarts/charts";
31
+ import { BoxplotChart as Gs, BarChart as ei, LineChart as ti, ScatterChart as ni, PieChart as Bs, RadarChart as Hs, SunburstChart as Ws } from "echarts/charts";
32
32
  import De from "numbro";
33
33
  import { quantile as Us } from "d3-array";
34
- import { transform as ni } from "echarts-stat";
35
- import { useForm as rr } from "@mantine/form";
34
+ import { transform as ri } from "echarts-stat";
35
+ import { useForm as or } from "@mantine/form";
36
36
  import * as Je from "d3-regression";
37
37
  import { useVirtual as Ys } from "react-virtual";
38
38
  import Qs from "ajv";
39
39
  import Js from "stickybits";
40
- import ri, { WidthProvider as oi } from "react-grid-layout";
41
- function ii(e, t) {
40
+ import oi, { WidthProvider as ii } from "react-grid-layout";
41
+ function ai(e, t) {
42
42
  Z(() => {
43
43
  const n = (r) => {
44
44
  console.log(r);
@@ -78,14 +78,14 @@ class Xs {
78
78
  function Qe(e) {
79
79
  return new Xs(e);
80
80
  }
81
- class or {
81
+ class ir {
82
82
  constructor() {
83
83
  F(this, "parent");
84
84
  F(this, "factoryRegistry", /* @__PURE__ */ new Map());
85
85
  F(this, "instanceRegistry", /* @__PURE__ */ new Map());
86
86
  }
87
87
  createScoped() {
88
- const t = new or();
88
+ const t = new ir();
89
89
  return t.parent = this, t;
90
90
  }
91
91
  getRequired(t) {
@@ -125,11 +125,11 @@ var st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
125
125
  * This source code is licensed under the MIT license found in the
126
126
  * LICENSE file in the root directory of this source tree.
127
127
  */
128
- var co;
128
+ var uo;
129
129
  function Ks() {
130
- if (co)
130
+ if (uo)
131
131
  return wt;
132
- co = 1;
132
+ uo = 1;
133
133
  var e = w, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
134
134
  function s(l, c, d) {
135
135
  var u, p = {}, f = null, h = null;
@@ -153,9 +153,9 @@ var St = {};
153
153
  * This source code is licensed under the MIT license found in the
154
154
  * LICENSE file in the root directory of this source tree.
155
155
  */
156
- var uo;
156
+ var go;
157
157
  function Zs() {
158
- return uo || (uo = 1, process.env.NODE_ENV !== "production" && function() {
158
+ return go || (go = 1, process.env.NODE_ENV !== "production" && function() {
159
159
  var e = w, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.iterator, v = "@@iterator";
160
160
  function S(m) {
161
161
  if (m === null || typeof m != "object")
@@ -181,10 +181,10 @@ function Zs() {
181
181
  J.unshift("Warning: " + _), Function.prototype.apply.call(console[m], console, J);
182
182
  }
183
183
  }
184
- var N = !1, Y = !1, pe = !1, ce = !1, Se = !1, ve;
185
- ve = Symbol.for("react.module.reference");
184
+ var N = !1, Y = !1, fe = !1, ce = !1, _e = !1, be;
185
+ be = Symbol.for("react.module.reference");
186
186
  function Me(m) {
187
- return !!(typeof m == "string" || typeof m == "function" || m === r || m === a || Se || m === o || m === d || m === u || ce || m === h || N || Y || pe || typeof m == "object" && m !== null && (m.$$typeof === f || m.$$typeof === p || m.$$typeof === s || m.$$typeof === l || m.$$typeof === c || m.$$typeof === ve || m.getModuleId !== void 0));
187
+ return !!(typeof m == "string" || typeof m == "function" || m === r || m === a || _e || m === o || m === d || m === u || ce || m === h || N || Y || fe || typeof m == "object" && m !== null && (m.$$typeof === f || m.$$typeof === p || m.$$typeof === s || m.$$typeof === l || m.$$typeof === c || m.$$typeof === be || m.getModuleId !== void 0));
188
188
  }
189
189
  function ue(m, _, V) {
190
190
  var O = m.displayName;
@@ -196,7 +196,7 @@ function Zs() {
196
196
  function ke(m) {
197
197
  return m.displayName || "Context";
198
198
  }
199
- function be(m) {
199
+ function ye(m) {
200
200
  if (m == null)
201
201
  return null;
202
202
  if (typeof m.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof m == "function")
@@ -229,11 +229,11 @@ function Zs() {
229
229
  return ue(m, m.render, "ForwardRef");
230
230
  case p:
231
231
  var O = m.displayName || null;
232
- return O !== null ? O : be(m.type) || "Memo";
232
+ return O !== null ? O : ye(m.type) || "Memo";
233
233
  case f: {
234
234
  var W = m, J = W._payload, B = W._init;
235
235
  try {
236
- return be(B(J));
236
+ return ye(B(J));
237
237
  } catch {
238
238
  return null;
239
239
  }
@@ -241,18 +241,18 @@ function Zs() {
241
241
  }
242
242
  return null;
243
243
  }
244
- var ye = Object.assign, Ye = 0, Or, zr, Pr, Tr, Lr, Nr, qr;
245
- function jr() {
244
+ var xe = Object.assign, Ye = 0, zr, Pr, Tr, Lr, Nr, qr, jr;
245
+ function Gr() {
246
246
  }
247
- jr.__reactDisabledLog = !0;
247
+ Gr.__reactDisabledLog = !0;
248
248
  function Ra() {
249
249
  {
250
250
  if (Ye === 0) {
251
- Or = console.log, zr = console.info, Pr = console.warn, Tr = console.error, Lr = console.group, Nr = console.groupCollapsed, qr = console.groupEnd;
251
+ zr = console.log, Pr = console.info, Tr = console.warn, Lr = console.error, Nr = console.group, qr = console.groupCollapsed, jr = console.groupEnd;
252
252
  var m = {
253
253
  configurable: !0,
254
254
  enumerable: !0,
255
- value: jr,
255
+ value: Gr,
256
256
  writable: !0
257
257
  };
258
258
  Object.defineProperties(console, {
@@ -277,26 +277,26 @@ function Zs() {
277
277
  writable: !0
278
278
  };
279
279
  Object.defineProperties(console, {
280
- log: ye({}, m, {
281
- value: Or
282
- }),
283
- info: ye({}, m, {
280
+ log: xe({}, m, {
284
281
  value: zr
285
282
  }),
286
- warn: ye({}, m, {
283
+ info: xe({}, m, {
287
284
  value: Pr
288
285
  }),
289
- error: ye({}, m, {
286
+ warn: xe({}, m, {
290
287
  value: Tr
291
288
  }),
292
- group: ye({}, m, {
289
+ error: xe({}, m, {
293
290
  value: Lr
294
291
  }),
295
- groupCollapsed: ye({}, m, {
292
+ group: xe({}, m, {
296
293
  value: Nr
297
294
  }),
298
- groupEnd: ye({}, m, {
295
+ groupCollapsed: xe({}, m, {
299
296
  value: qr
297
+ }),
298
+ groupEnd: xe({}, m, {
299
+ value: jr
300
300
  })
301
301
  });
302
302
  }
@@ -322,7 +322,7 @@ function Zs() {
322
322
  var Ia = typeof WeakMap == "function" ? WeakMap : Map;
323
323
  Tt = new Ia();
324
324
  }
325
- function Gr(m, _) {
325
+ function Br(m, _) {
326
326
  if (!m || xn)
327
327
  return "";
328
328
  {
@@ -371,17 +371,17 @@ function Zs() {
371
371
  } catch (qe) {
372
372
  if (qe && O && typeof qe.stack == "string") {
373
373
  for (var q = qe.stack.split(`
374
- `), fe = O.stack.split(`
375
- `), oe = q.length - 1, ae = fe.length - 1; oe >= 1 && ae >= 0 && q[oe] !== fe[ae]; )
374
+ `), me = O.stack.split(`
375
+ `), oe = q.length - 1, ae = me.length - 1; oe >= 1 && ae >= 0 && q[oe] !== me[ae]; )
376
376
  ae--;
377
377
  for (; oe >= 1 && ae >= 0; oe--, ae--)
378
- if (q[oe] !== fe[ae]) {
378
+ if (q[oe] !== me[ae]) {
379
379
  if (oe !== 1 || ae !== 1)
380
380
  do
381
- if (oe--, ae--, ae < 0 || q[oe] !== fe[ae]) {
382
- var _e = `
381
+ if (oe--, ae--, ae < 0 || q[oe] !== me[ae]) {
382
+ var Re = `
383
383
  ` + q[oe].replace(" at new ", " at ");
384
- return m.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", m.displayName)), typeof m == "function" && Tt.set(m, _e), _e;
384
+ return m.displayName && Re.includes("<anonymous>") && (Re = Re.replace("<anonymous>", m.displayName)), typeof m == "function" && Tt.set(m, Re), Re;
385
385
  }
386
386
  while (oe >= 1 && ae >= 0);
387
387
  break;
@@ -390,11 +390,11 @@ function Zs() {
390
390
  } finally {
391
391
  xn = !1, bn.current = J, Da(), Error.prepareStackTrace = W;
392
392
  }
393
- var ut = m ? m.displayName || m.name : "", no = ut ? Pt(ut) : "";
394
- return typeof m == "function" && Tt.set(m, no), no;
393
+ var ut = m ? m.displayName || m.name : "", ro = ut ? Pt(ut) : "";
394
+ return typeof m == "function" && Tt.set(m, ro), ro;
395
395
  }
396
396
  function Va(m, _, V) {
397
- return Gr(m, !1);
397
+ return Br(m, !1);
398
398
  }
399
399
  function Ma(m) {
400
400
  var _ = m.prototype;
@@ -404,7 +404,7 @@ function Zs() {
404
404
  if (m == null)
405
405
  return "";
406
406
  if (typeof m == "function")
407
- return Gr(m, Ma(m));
407
+ return Br(m, Ma(m));
408
408
  if (typeof m == "string")
409
409
  return Pt(m);
410
410
  switch (m) {
@@ -429,13 +429,13 @@ function Zs() {
429
429
  }
430
430
  return "";
431
431
  }
432
- var Nt = Object.prototype.hasOwnProperty, Br = {}, Hr = M.ReactDebugCurrentFrame;
432
+ var Nt = Object.prototype.hasOwnProperty, Hr = {}, Wr = M.ReactDebugCurrentFrame;
433
433
  function qt(m) {
434
434
  if (m) {
435
435
  var _ = m._owner, V = Lt(m.type, m._source, _ ? _.type : null);
436
- Hr.setExtraStackFrame(V);
436
+ Wr.setExtraStackFrame(V);
437
437
  } else
438
- Hr.setExtraStackFrame(null);
438
+ Wr.setExtraStackFrame(null);
439
439
  }
440
440
  function ka(m, _, V, O, W) {
441
441
  {
@@ -445,14 +445,14 @@ function Zs() {
445
445
  var q = void 0;
446
446
  try {
447
447
  if (typeof m[B] != "function") {
448
- var fe = Error((O || "React class") + ": " + V + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
449
- throw fe.name = "Invariant Violation", fe;
448
+ var me = Error((O || "React class") + ": " + V + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
449
+ throw me.name = "Invariant Violation", me;
450
450
  }
451
451
  q = m[B](_, B, O, V, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
452
452
  } catch (oe) {
453
453
  q = oe;
454
454
  }
455
- q && !(q instanceof Error) && (qt(W), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", V, B, typeof q), qt(null)), q instanceof Error && !(q.message in Br) && (Br[q.message] = !0, qt(W), k("Failed %s type: %s", V, q.message), qt(null));
455
+ q && !(q instanceof Error) && (qt(W), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", V, B, typeof q), qt(null)), q instanceof Error && !(q.message in Hr) && (Hr[q.message] = !0, qt(W), k("Failed %s type: %s", V, q.message), qt(null));
456
456
  }
457
457
  }
458
458
  }
@@ -468,24 +468,24 @@ function Zs() {
468
468
  }
469
469
  function Ea(m) {
470
470
  try {
471
- return Wr(m), !1;
471
+ return Ur(m), !1;
472
472
  } catch {
473
473
  return !0;
474
474
  }
475
475
  }
476
- function Wr(m) {
476
+ function Ur(m) {
477
477
  return "" + m;
478
478
  }
479
- function Ur(m) {
479
+ function Yr(m) {
480
480
  if (Ea(m))
481
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $a(m)), Wr(m);
481
+ return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $a(m)), Ur(m);
482
482
  }
483
483
  var xt = M.ReactCurrentOwner, Aa = {
484
484
  key: !0,
485
485
  ref: !0,
486
486
  __self: !0,
487
487
  __source: !0
488
- }, Yr, Qr, wn;
488
+ }, Qr, Jr, wn;
489
489
  wn = {};
490
490
  function Oa(m) {
491
491
  if (Nt.call(m, "ref")) {
@@ -505,14 +505,14 @@ function Zs() {
505
505
  }
506
506
  function Pa(m, _) {
507
507
  if (typeof m.ref == "string" && xt.current && _ && xt.current.stateNode !== _) {
508
- var V = be(xt.current.type);
509
- wn[V] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', be(xt.current.type), m.ref), wn[V] = !0);
508
+ var V = ye(xt.current.type);
509
+ wn[V] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ye(xt.current.type), m.ref), wn[V] = !0);
510
510
  }
511
511
  }
512
512
  function Ta(m, _) {
513
513
  {
514
514
  var V = function() {
515
- Yr || (Yr = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
515
+ Qr || (Qr = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
516
516
  };
517
517
  V.isReactWarning = !0, Object.defineProperty(m, "key", {
518
518
  get: V,
@@ -523,7 +523,7 @@ function Zs() {
523
523
  function La(m, _) {
524
524
  {
525
525
  var V = function() {
526
- Qr || (Qr = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
526
+ Jr || (Jr = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
527
527
  };
528
528
  V.isReactWarning = !0, Object.defineProperty(m, "ref", {
529
529
  get: V,
@@ -559,8 +559,8 @@ function Zs() {
559
559
  };
560
560
  function qa(m, _, V, O, W) {
561
561
  {
562
- var J, B = {}, q = null, fe = null;
563
- V !== void 0 && (Ur(V), q = "" + V), za(_) && (Ur(_.key), q = "" + _.key), Oa(_) && (fe = _.ref, Pa(_, W));
562
+ var J, B = {}, q = null, me = null;
563
+ V !== void 0 && (Yr(V), q = "" + V), za(_) && (Yr(_.key), q = "" + _.key), Oa(_) && (me = _.ref, Pa(_, W));
564
564
  for (J in _)
565
565
  Nt.call(_, J) && !Aa.hasOwnProperty(J) && (B[J] = _[J]);
566
566
  if (m && m.defaultProps) {
@@ -568,30 +568,30 @@ function Zs() {
568
568
  for (J in oe)
569
569
  B[J] === void 0 && (B[J] = oe[J]);
570
570
  }
571
- if (q || fe) {
571
+ if (q || me) {
572
572
  var ae = typeof m == "function" ? m.displayName || m.name || "Unknown" : m;
573
- q && Ta(B, ae), fe && La(B, ae);
573
+ q && Ta(B, ae), me && La(B, ae);
574
574
  }
575
- return Na(m, q, fe, W, O, xt.current, B);
575
+ return Na(m, q, me, W, O, xt.current, B);
576
576
  }
577
577
  }
578
- var Sn = M.ReactCurrentOwner, Jr = M.ReactDebugCurrentFrame;
578
+ var Sn = M.ReactCurrentOwner, Xr = M.ReactDebugCurrentFrame;
579
579
  function ct(m) {
580
580
  if (m) {
581
581
  var _ = m._owner, V = Lt(m.type, m._source, _ ? _.type : null);
582
- Jr.setExtraStackFrame(V);
582
+ Xr.setExtraStackFrame(V);
583
583
  } else
584
- Jr.setExtraStackFrame(null);
584
+ Xr.setExtraStackFrame(null);
585
585
  }
586
586
  var _n;
587
587
  _n = !1;
588
588
  function Rn(m) {
589
589
  return typeof m == "object" && m !== null && m.$$typeof === t;
590
590
  }
591
- function Xr() {
591
+ function Kr() {
592
592
  {
593
593
  if (Sn.current) {
594
- var m = be(Sn.current.type);
594
+ var m = ye(Sn.current.type);
595
595
  if (m)
596
596
  return `
597
597
 
@@ -611,10 +611,10 @@ Check your code at ` + _ + ":" + V + ".";
611
611
  return "";
612
612
  }
613
613
  }
614
- var Kr = {};
614
+ var Zr = {};
615
615
  function Ga(m) {
616
616
  {
617
- var _ = Xr();
617
+ var _ = Kr();
618
618
  if (!_) {
619
619
  var V = typeof m == "string" ? m : m.displayName || m.name;
620
620
  V && (_ = `
@@ -624,27 +624,27 @@ Check the top-level render call using <` + V + ">.");
624
624
  return _;
625
625
  }
626
626
  }
627
- function Zr(m, _) {
627
+ function eo(m, _) {
628
628
  {
629
629
  if (!m._store || m._store.validated || m.key != null)
630
630
  return;
631
631
  m._store.validated = !0;
632
632
  var V = Ga(_);
633
- if (Kr[V])
633
+ if (Zr[V])
634
634
  return;
635
- Kr[V] = !0;
635
+ Zr[V] = !0;
636
636
  var O = "";
637
- m && m._owner && m._owner !== Sn.current && (O = " It was passed a child from " + be(m._owner.type) + "."), ct(m), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, O), ct(null);
637
+ m && m._owner && m._owner !== Sn.current && (O = " It was passed a child from " + ye(m._owner.type) + "."), ct(m), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, O), ct(null);
638
638
  }
639
639
  }
640
- function eo(m, _) {
640
+ function to(m, _) {
641
641
  {
642
642
  if (typeof m != "object")
643
643
  return;
644
644
  if (Cn(m))
645
645
  for (var V = 0; V < m.length; V++) {
646
646
  var O = m[V];
647
- Rn(O) && Zr(O, _);
647
+ Rn(O) && eo(O, _);
648
648
  }
649
649
  else if (Rn(m))
650
650
  m._store && (m._store.validated = !0);
@@ -652,7 +652,7 @@ Check the top-level render call using <` + V + ">.");
652
652
  var W = S(m);
653
653
  if (typeof W == "function" && W !== m.entries)
654
654
  for (var J = W.call(m), B; !(B = J.next()).done; )
655
- Rn(B.value) && Zr(B.value, _);
655
+ Rn(B.value) && eo(B.value, _);
656
656
  }
657
657
  }
658
658
  }
@@ -669,11 +669,11 @@ Check the top-level render call using <` + V + ">.");
669
669
  else
670
670
  return;
671
671
  if (V) {
672
- var O = be(_);
672
+ var O = ye(_);
673
673
  ka(V, m.props, "prop", O, m);
674
674
  } else if (_.PropTypes !== void 0 && !_n) {
675
675
  _n = !0;
676
- var W = be(_);
676
+ var W = ye(_);
677
677
  k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
678
678
  }
679
679
  typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -691,41 +691,41 @@ Check the top-level render call using <` + V + ">.");
691
691
  m.ref !== null && (ct(m), k("Invalid attribute `ref` supplied to `React.Fragment`."), ct(null));
692
692
  }
693
693
  }
694
- function to(m, _, V, O, W, J) {
694
+ function no(m, _, V, O, W, J) {
695
695
  {
696
696
  var B = Me(m);
697
697
  if (!B) {
698
698
  var q = "";
699
699
  (m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (q += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
700
- var fe = ja(W);
701
- fe ? q += fe : q += Xr();
700
+ var me = ja(W);
701
+ me ? q += me : q += Kr();
702
702
  var oe;
703
- m === null ? oe = "null" : Cn(m) ? oe = "array" : m !== void 0 && m.$$typeof === t ? (oe = "<" + (be(m.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : oe = typeof m, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", oe, q);
703
+ m === null ? oe = "null" : Cn(m) ? oe = "array" : m !== void 0 && m.$$typeof === t ? (oe = "<" + (ye(m.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : oe = typeof m, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", oe, q);
704
704
  }
705
705
  var ae = qa(m, _, V, W, J);
706
706
  if (ae == null)
707
707
  return ae;
708
708
  if (B) {
709
- var _e = _.children;
710
- if (_e !== void 0)
709
+ var Re = _.children;
710
+ if (Re !== void 0)
711
711
  if (O)
712
- if (Cn(_e)) {
713
- for (var ut = 0; ut < _e.length; ut++)
714
- eo(_e[ut], m);
715
- Object.freeze && Object.freeze(_e);
712
+ if (Cn(Re)) {
713
+ for (var ut = 0; ut < Re.length; ut++)
714
+ to(Re[ut], m);
715
+ Object.freeze && Object.freeze(Re);
716
716
  } else
717
717
  k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
718
718
  else
719
- eo(_e, m);
719
+ to(Re, m);
720
720
  }
721
721
  return m === r ? Ha(ae) : Ba(ae), ae;
722
722
  }
723
723
  }
724
724
  function Wa(m, _, V) {
725
- return to(m, _, V, !0);
725
+ return no(m, _, V, !0);
726
726
  }
727
727
  function Ua(m, _, V) {
728
- return to(m, _, V, !1);
728
+ return no(m, _, V, !1);
729
729
  }
730
730
  var Ya = Ua, Qa = Wa;
731
731
  St.Fragment = r, St.jsx = Ya, St.jsxs = Qa;
@@ -734,23 +734,23 @@ Check the top-level render call using <` + V + ">.");
734
734
  (function(e) {
735
735
  process.env.NODE_ENV === "production" ? e.exports = Ks() : e.exports = Zs();
736
736
  })(ln);
737
- const re = ln.exports.Fragment, i = ln.exports.jsx, g = ln.exports.jsxs, Tn = Fo(null);
737
+ const re = ln.exports.Fragment, i = ln.exports.jsx, g = ln.exports.jsxs, Tn = $o(null);
738
738
  function cn(e) {
739
- const t = w.useContext(Tn), n = Be(() => e.configure(t || new or()), [e.configure]), r = is(n);
739
+ const t = w.useContext(Tn), n = Be(() => e.configure(t || new ir()), [e.configure]), r = is(n);
740
740
  return r && r !== n && r.dispose(), /* @__PURE__ */ i(Tn.Provider, {
741
741
  value: n,
742
742
  children: e.children
743
743
  });
744
744
  }
745
- function ai() {
745
+ function si() {
746
746
  return w.useContext(Tn);
747
747
  }
748
748
  const el = {
749
749
  viewPanelInFullScreen: K.noop,
750
750
  inFullScreen: !1
751
- }, ir = w.createContext(el), si = w.createContext(null), li = si.Provider;
751
+ }, ar = w.createContext(el), li = w.createContext(null), ci = li.Provider;
752
752
  function X() {
753
- const e = w.useContext(si);
753
+ const e = w.useContext(li);
754
754
  if (!e)
755
755
  throw new Error("Please use ModelContextProvider");
756
756
  return e;
@@ -820,7 +820,7 @@ function tl({
820
820
  })]
821
821
  });
822
822
  }
823
- const ci = I(({
823
+ const ui = I(({
824
824
  label: e,
825
825
  config: t,
826
826
  value: n = [null, null],
@@ -851,13 +851,13 @@ const ci = I(({
851
851
  freezeLayout: K.noop,
852
852
  inEditMode: !1,
853
853
  inUseMode: !0
854
- }, Le = w.createContext(nl), ui = w.createContext({
854
+ }, Le = w.createContext(nl), di = w.createContext({
855
855
  panel: null,
856
856
  data: [],
857
857
  loading: !1
858
- }), rl = ui.Provider;
859
- function he() {
860
- const e = w.useContext(ui);
858
+ }), rl = di.Provider;
859
+ function ve() {
860
+ const e = w.useContext(di);
861
861
  if (!e.panel)
862
862
  throw new Error("Please use PanelContextProvider");
863
863
  return e;
@@ -878,7 +878,7 @@ const ol = I(({
878
878
  return;
879
879
  const d = [(u = s[0]) == null ? void 0 : u.value];
880
880
  JSON.stringify(n) !== JSON.stringify(d) && (console.log("Selecting the first option by default. Previous value: ", n, ", new value: ", d), r(d));
881
- }, [t.select_first_by_default, s, r, n]), /* @__PURE__ */ i(Jn, {
881
+ }, [t.select_first_by_default, s, r, n]), /* @__PURE__ */ i(Xn, {
882
882
  label: e,
883
883
  data: a ? s : t.static_options,
884
884
  disabled: a ? c : !1,
@@ -969,7 +969,7 @@ const sl = I(({
969
969
  config: t
970
970
  });
971
971
  case "date-range":
972
- return /* @__PURE__ */ i(ci, {
972
+ return /* @__PURE__ */ i(ui, {
973
973
  ...r,
974
974
  ...o,
975
975
  config: t
@@ -983,7 +983,7 @@ const sl = I(({
983
983
  default:
984
984
  return null;
985
985
  }
986
- }), di = I(w.forwardRef(({
986
+ }), gi = I(w.forwardRef(({
987
987
  filter: e,
988
988
  ...t
989
989
  }, n) => /* @__PURE__ */ i("div", {
@@ -995,7 +995,7 @@ const sl = I(({
995
995
  formFieldProps: t
996
996
  })
997
997
  })
998
- }))), gi = I(function({
998
+ }))), pi = I(function({
999
999
  view: t
1000
1000
  }) {
1001
1001
  const n = X(), {
@@ -1032,7 +1032,7 @@ const sl = I(({
1032
1032
  control: r,
1033
1033
  render: ({
1034
1034
  field: d
1035
- }) => /* @__PURE__ */ i(di, {
1035
+ }) => /* @__PURE__ */ i(gi, {
1036
1036
  filter: c,
1037
1037
  ...d
1038
1038
  })
@@ -1134,12 +1134,12 @@ function cl(e, t) {
1134
1134
  function ul(e) {
1135
1135
  const t = new Fs();
1136
1136
  e.forEach(({ id: n, data: r }) => {
1137
- t.file(`${n}.csv`, pi(r));
1137
+ t.file(`${n}.csv`, fi(r));
1138
1138
  }), t.generateAsync({ type: "blob" }).then((n) => {
1139
1139
  un.exports.saveAs(n, "dashboard_data.zip");
1140
1140
  });
1141
1141
  }
1142
- function pi(e) {
1142
+ function fi(e) {
1143
1143
  if (!Array.isArray(e) || e.length === 0)
1144
1144
  return "";
1145
1145
  const t = [], n = Object.keys(e[0]);
@@ -1161,7 +1161,7 @@ WHERE
1161
1161
  -- SQL snippets
1162
1162
  AND \${sql_snippets.author_email_condition}
1163
1163
  \${sql_snippets.order_by_clause}
1164
- `, ar = I(function({
1164
+ `, sr = I(function({
1165
1165
  showSQLSnippets: t = !0,
1166
1166
  sx: n = {}
1167
1167
  }) {
@@ -1227,7 +1227,7 @@ WHERE
1227
1227
  })]
1228
1228
  });
1229
1229
  }), gl = I(function() {
1230
- const t = X(), [n, r] = me(() => JSON.stringify(t.mock_context.current, null, 4)), o = () => {
1230
+ const t = X(), [n, r] = he(() => JSON.stringify(t.mock_context.current, null, 4)), o = () => {
1231
1231
  try {
1232
1232
  t.mock_context.replace(JSON.parse(n));
1233
1233
  } catch (s) {
@@ -1279,7 +1279,7 @@ WHERE
1279
1279
  },
1280
1280
  children: [/* @__PURE__ */ i(C, {
1281
1281
  children: "A valid json string is required"
1282
- }), /* @__PURE__ */ i(Io, {
1282
+ }), /* @__PURE__ */ i(Vo, {
1283
1283
  validationError: "Invalid json",
1284
1284
  formatOnBlur: !0,
1285
1285
  autosize: !0,
@@ -1329,7 +1329,7 @@ function pl() {
1329
1329
  grow: !0,
1330
1330
  align: "stretch",
1331
1331
  noWrap: !0,
1332
- children: [/* @__PURE__ */ i(gl, {}), /* @__PURE__ */ i(ar, {
1332
+ children: [/* @__PURE__ */ i(gl, {}), /* @__PURE__ */ i(sr, {
1333
1333
  showSQLSnippets: !1
1334
1334
  })]
1335
1335
  })
@@ -1342,7 +1342,7 @@ function fl({
1342
1342
  sx: {
1343
1343
  height: "5em"
1344
1344
  }
1345
- }) : /* @__PURE__ */ g(Xn, {
1345
+ }) : /* @__PURE__ */ g(Kn, {
1346
1346
  children: [/* @__PURE__ */ i("thead", {
1347
1347
  children: /* @__PURE__ */ i("tr", {
1348
1348
  children: Object.keys(e == null ? void 0 : e[0]).map((t) => /* @__PURE__ */ i("th", {
@@ -1371,7 +1371,7 @@ function fl({
1371
1371
  })]
1372
1372
  });
1373
1373
  }
1374
- const fi = I(function({
1374
+ const mi = I(function({
1375
1375
  id: t
1376
1376
  }) {
1377
1377
  const n = X(), {
@@ -1409,7 +1409,7 @@ const fi = I(function({
1409
1409
  color: "blue",
1410
1410
  disabled: a,
1411
1411
  onClick: s,
1412
- children: /* @__PURE__ */ i(jo, {
1412
+ children: /* @__PURE__ */ i(Go, {
1413
1413
  size: 15
1414
1414
  })
1415
1415
  })]
@@ -1426,14 +1426,14 @@ const fi = I(function({
1426
1426
  });
1427
1427
  });
1428
1428
  function ml(e, t, n, r) {
1429
- const o = lr(t, n, [], r), a = Object.keys(o), s = Object.values(o);
1429
+ const o = cr(t, n, [], r), a = Object.keys(o), s = Object.values(o);
1430
1430
  try {
1431
1431
  return new Function(...a, `return \`${e}\`;`)(...s);
1432
1432
  } catch (l) {
1433
1433
  return console.info(l), l.message;
1434
1434
  }
1435
1435
  }
1436
- function sr(e, t = {}) {
1436
+ function lr(e, t = {}) {
1437
1437
  const n = Object.keys(t), r = Object.values(t);
1438
1438
  try {
1439
1439
  return new Function(...n, `return \`${e}\`;`)(...r);
@@ -1441,20 +1441,20 @@ function sr(e, t = {}) {
1441
1441
  throw n.length === 0 && e.includes("$") ? new Error("[formatSQL] insufficient params") : o;
1442
1442
  }
1443
1443
  }
1444
- function lr(e, t, n, r) {
1444
+ function cr(e, t, n, r) {
1445
1445
  const o = {
1446
1446
  ...t,
1447
1447
  ...e
1448
1448
  }, a = {
1449
1449
  context: o,
1450
1450
  filters: r
1451
- }, s = n.reduce((l, c) => (l[c.key] = sr(c.value, a), l), {});
1451
+ }, s = n.reduce((l, c) => (l[c.key] = lr(c.value, a), l), {});
1452
1452
  return K.merge({}, { context: o, filters: r, sql_snippets: s });
1453
1453
  }
1454
- function mi(e, t, n, r, o) {
1454
+ function hi(e, t, n, r, o) {
1455
1455
  try {
1456
- const a = lr(t, n, r, o);
1457
- return sr(e, a);
1456
+ const a = cr(t, n, r, o);
1457
+ return lr(e, a);
1458
1458
  } catch (a) {
1459
1459
  return console.error(a), a.message;
1460
1460
  }
@@ -1517,17 +1517,17 @@ const gt = {
1517
1517
  params: e === "GET" ? n : r.params,
1518
1518
  headers: a
1519
1519
  };
1520
- return ["POST", "PUT"].includes(e) && (s.data = r.string ? JSON.stringify(n) : n, s.data.authentication = this.getAuthentication(s.data)), Wo(s).then((l) => l.data).catch((l) => Promise.reject(l));
1520
+ return ["POST", "PUT"].includes(e) && (s.data = r.string ? JSON.stringify(n) : n, s.data.authentication = this.getAuthentication(s.data)), Uo(s).then((l) => l.data).catch((l) => Promise.reject(l));
1521
1521
  };
1522
1522
  }
1523
1523
  };
1524
- function hi(e) {
1524
+ function vi(e) {
1525
1525
  gt.baseURL !== e.apiBaseURL && (gt.baseURL = e.apiBaseURL), e.app_id && (gt.app_id = e.app_id), e.app_secret && (gt.app_secret = e.app_secret);
1526
1526
  }
1527
1527
  async function bl({ context: e, mock_context: t, sqlSnippets: n, title: r, query: o, filterValues: a }) {
1528
1528
  if (!o.sql)
1529
1529
  return [];
1530
- const { type: s, key: l, sql: c } = o, d = c.includes("$"), u = lr(e, t, n, a), p = sr(c, u);
1530
+ const { type: s, key: l, sql: c } = o, d = c.includes("$"), u = cr(e, t, n, a), p = lr(c, u);
1531
1531
  return d && (console.groupCollapsed(`Final SQL for: ${r}`), console.log(p), console.groupEnd()), await gt.getRequest("POST")("/query", { type: s, key: l, query: p });
1532
1532
  }
1533
1533
  async function yl() {
@@ -1547,7 +1547,7 @@ async function yl() {
1547
1547
  return console.error(e), [];
1548
1548
  }
1549
1549
  }
1550
- const xl = Zn(({
1550
+ const xl = er(({
1551
1551
  label: e,
1552
1552
  type: t,
1553
1553
  ...n
@@ -1599,7 +1599,7 @@ function wl(e, t) {
1599
1599
  o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1600
1600
  return n;
1601
1601
  }
1602
- function cr(e, t) {
1602
+ function ur(e, t) {
1603
1603
  if (e == null)
1604
1604
  return {};
1605
1605
  var n = wl(e, t), r, o;
@@ -1612,17 +1612,17 @@ function cr(e, t) {
1612
1612
  }
1613
1613
  var Sl = ["size", "color", "stroke"];
1614
1614
  function _l(e) {
1615
- var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = cr(e, Sl);
1615
+ var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = ur(e, Sl);
1616
1616
  return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-arrow-down", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ i("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), /* @__PURE__ */ i("line", { x1: 18, y1: 13, x2: 12, y2: 19 }), /* @__PURE__ */ i("line", { x1: 6, y1: 13, x2: 12, y2: 19 })] });
1617
1617
  }
1618
1618
  var Rl = ["size", "color", "stroke"];
1619
1619
  function Dl(e) {
1620
- var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = cr(e, Rl);
1620
+ var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = ur(e, Rl);
1621
1621
  return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-arrow-up", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ i("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), /* @__PURE__ */ i("line", { x1: 18, y1: 11, x2: 12, y2: 5 }), /* @__PURE__ */ i("line", { x1: 6, y1: 11, x2: 12, y2: 5 })] });
1622
1622
  }
1623
1623
  var Il = ["size", "color", "stroke"];
1624
1624
  function Vl(e) {
1625
- var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = cr(e, Il);
1625
+ var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = ur(e, Il);
1626
1626
  return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-trash", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ i("line", { x1: 4, y1: 7, x2: 20, y2: 7 }), /* @__PURE__ */ i("line", { x1: 10, y1: 11, x2: 10, y2: 17 }), /* @__PURE__ */ i("line", { x1: 14, y1: 11, x2: 14, y2: 17 }), /* @__PURE__ */ i("path", { d: "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" }), /* @__PURE__ */ i("path", { d: "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" })] });
1627
1627
  }
1628
1628
  const Ml = (e) => {
@@ -1650,7 +1650,7 @@ const Ml = (e) => {
1650
1650
  }, kl = I(Ml), Fl = I(({
1651
1651
  value: e
1652
1652
  }) => {
1653
- const t = X(), n = t.context.current, r = w.useMemo(() => mi(e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values), [e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values]);
1653
+ const t = X(), n = t.context.current, r = w.useMemo(() => hi(e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values), [e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values]);
1654
1654
  return /* @__PURE__ */ i(Pe, {
1655
1655
  language: "sql",
1656
1656
  colorScheme: "light",
@@ -1748,7 +1748,7 @@ const Ml = (e) => {
1748
1748
  sx: {
1749
1749
  position: "relative"
1750
1750
  },
1751
- children: [/* @__PURE__ */ i(Vo, {
1751
+ children: [/* @__PURE__ */ i(Mo, {
1752
1752
  autosize: !0,
1753
1753
  minRows: 12,
1754
1754
  maxRows: 24,
@@ -1891,8 +1891,8 @@ const Al = I(function({
1891
1891
  id: t,
1892
1892
  setID: n
1893
1893
  })]
1894
- }), /* @__PURE__ */ i(ar, {})]
1895
- }), /* @__PURE__ */ i(fi, {
1894
+ }), /* @__PURE__ */ i(sr, {})]
1895
+ }), /* @__PURE__ */ i(mi, {
1896
1896
  id: t
1897
1897
  })]
1898
1898
  });
@@ -1957,7 +1957,7 @@ const Al = I(function({
1957
1957
  onChange: (a) => {
1958
1958
  r.setKey(a.currentTarget.value);
1959
1959
  }
1960
- }), /* @__PURE__ */ i(Vo, {
1960
+ }), /* @__PURE__ */ i(Mo, {
1961
1961
  minRows: 3,
1962
1962
  label: "Value",
1963
1963
  required: !0,
@@ -2020,7 +2020,7 @@ function Tl() {
2020
2020
  grow: !0,
2021
2021
  align: "stretch",
2022
2022
  noWrap: !0,
2023
- children: [/* @__PURE__ */ i(Pl, {}), /* @__PURE__ */ i(ar, {
2023
+ children: [/* @__PURE__ */ i(Pl, {}), /* @__PURE__ */ i(sr, {
2024
2024
  showSQLSnippets: !1
2025
2025
  })]
2026
2026
  })
@@ -2074,13 +2074,14 @@ const Ll = I(function({
2074
2074
  })
2075
2075
  });
2076
2076
  });
2077
- var Re = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(Re || {});
2077
+ var pe = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(pe || {});
2078
2078
  x.model({
2079
2079
  type: x.enumeration("DataSourceType", [et.Postgresql, et.MySQL, et.HTTP]),
2080
2080
  key: x.string,
2081
2081
  sql: x.string
2082
2082
  });
2083
- const vi = x.model("FilterConfigModel_TextInput", {
2083
+ const Ln = x.model("FilterConfigModel_TextInput", {
2084
+ _name: "text-input",
2084
2085
  required: x.boolean,
2085
2086
  default_value: x.string
2086
2087
  }).actions((e) => ({
@@ -2090,7 +2091,8 @@ const vi = x.model("FilterConfigModel_TextInput", {
2090
2091
  setDefaultValue(t) {
2091
2092
  e.default_value = t;
2092
2093
  }
2093
- })), bi = () => vi.create({
2094
+ })), bi = () => Ln.create({
2095
+ _name: "text-input",
2094
2096
  required: !1,
2095
2097
  default_value: ""
2096
2098
  }), Nl = I(function({
@@ -2137,7 +2139,7 @@ const vi = x.model("FilterConfigModel_TextInput", {
2137
2139
  label: "Display Format",
2138
2140
  value: t.inputFormat,
2139
2141
  onChange: t.setInputFormat
2140
- }), /* @__PURE__ */ i(ci, {
2142
+ }), /* @__PURE__ */ i(ui, {
2141
2143
  label: "Default Value",
2142
2144
  config: t,
2143
2145
  value: t.default_value,
@@ -2178,7 +2180,7 @@ const vi = x.model("FilterConfigModel_TextInput", {
2178
2180
  children: [/* @__PURE__ */ i(te, {
2179
2181
  label: "Configure options",
2180
2182
  labelPosition: "center"
2181
- }), r.length > 0 && /* @__PURE__ */ i(Jn, {
2183
+ }), r.length > 0 && /* @__PURE__ */ i(Xn, {
2182
2184
  label: "Default Selection",
2183
2185
  data: o,
2184
2186
  value: t.default_value,
@@ -2362,7 +2364,7 @@ const vi = x.model("FilterConfigModel_TextInput", {
2362
2364
  pb: "md",
2363
2365
  color: "gray",
2364
2366
  children: "Preview"
2365
- }), /* @__PURE__ */ i(di, {
2367
+ }), /* @__PURE__ */ i(gi, {
2366
2368
  filter: t,
2367
2369
  value: r,
2368
2370
  onChange: o
@@ -2422,7 +2424,7 @@ const vi = x.model("FilterConfigModel_TextInput", {
2422
2424
  value: t.order,
2423
2425
  onChange: t.setOrder,
2424
2426
  hideControls: !0
2425
- }), /* @__PURE__ */ i(Jn, {
2427
+ }), /* @__PURE__ */ i(Xn, {
2426
2428
  label: "Visible in...",
2427
2429
  data: r.views.options,
2428
2430
  value: [...t.visibleInViewsIDs],
@@ -2466,7 +2468,7 @@ const Jl = I(function() {
2466
2468
  key: o,
2467
2469
  label: o,
2468
2470
  order: n.length + 1,
2469
- type: Re.TextInput,
2471
+ type: pe.TextInput,
2470
2472
  config: bi(),
2471
2473
  visibleInViewsIDs: ["Main"]
2472
2474
  };
@@ -2487,7 +2489,7 @@ const Jl = I(function() {
2487
2489
  children: /* @__PURE__ */ i(H, {
2488
2490
  size: "xs",
2489
2491
  color: "red",
2490
- leftIcon: /* @__PURE__ */ i(Go, {
2492
+ leftIcon: /* @__PURE__ */ i(Bo, {
2491
2493
  size: 20
2492
2494
  }),
2493
2495
  disabled: !t.filtersChanged,
@@ -2713,7 +2715,7 @@ const ec = I(() => {
2713
2715
  },
2714
2716
  children: /* @__PURE__ */ i(oc, {})
2715
2717
  });
2716
- }), ac = Zn(({
2718
+ }), ac = er(({
2717
2719
  label: e,
2718
2720
  type: t,
2719
2721
  ...n
@@ -2745,7 +2747,7 @@ const ec = I(() => {
2745
2747
  children: e
2746
2748
  })
2747
2749
  })
2748
- })), go = "TRIGGER_TO_ADD", sc = I(({
2750
+ })), po = "TRIGGER_TO_ADD", sc = I(({
2749
2751
  value: e,
2750
2752
  onChange: t,
2751
2753
  triggerAdd: n,
@@ -2754,7 +2756,7 @@ const ec = I(() => {
2754
2756
  }) => {
2755
2757
  const a = L(() => [...o, {
2756
2758
  label: "Add a View",
2757
- value: go,
2759
+ value: po,
2758
2760
  type: "TRIGGER_TO_ADD"
2759
2761
  }], [o, n]);
2760
2762
  return /* @__PURE__ */ g(y, {
@@ -2766,7 +2768,7 @@ const ec = I(() => {
2766
2768
  children: [/* @__PURE__ */ i(T, {
2767
2769
  value: e,
2768
2770
  onChange: (l) => {
2769
- l !== go ? t(l) : n();
2771
+ l !== po ? t(l) : n();
2770
2772
  },
2771
2773
  placeholder: "Pick a View",
2772
2774
  itemComponent: ac,
@@ -2796,13 +2798,13 @@ const ec = I(() => {
2796
2798
  }
2797
2799
  }
2798
2800
  },
2799
- children: /* @__PURE__ */ i(Bo, {
2801
+ children: /* @__PURE__ */ i(Ho, {
2800
2802
  size: 20
2801
2803
  })
2802
2804
  })]
2803
2805
  });
2804
2806
  }), lc = I(() => {
2805
- const e = X(), [t, n] = me(!1), r = () => {
2807
+ const e = X(), [t, n] = he(!1), r = () => {
2806
2808
  n(!0);
2807
2809
  }, o = () => {
2808
2810
  n(!1);
@@ -2819,7 +2821,7 @@ const ec = I(() => {
2819
2821
  close: o
2820
2822
  })]
2821
2823
  });
2822
- }), po = {
2824
+ }), fo = {
2823
2825
  "> button": {
2824
2826
  "&:first-of-type": {
2825
2827
  borderTopRightRadius: 0,
@@ -2883,7 +2885,7 @@ const ec = I(() => {
2883
2885
  children: "Add a Panel"
2884
2886
  }), /* @__PURE__ */ g(y, {
2885
2887
  spacing: 0,
2886
- sx: po,
2888
+ sx: fo,
2887
2889
  children: [/* @__PURE__ */ i(dt, {
2888
2890
  label: "Filters",
2889
2891
  children: /* @__PURE__ */ i(A, {
@@ -2907,7 +2909,7 @@ const ec = I(() => {
2907
2909
  })]
2908
2910
  }), /* @__PURE__ */ g(y, {
2909
2911
  spacing: 0,
2910
- sx: po,
2912
+ sx: fo,
2911
2913
  children: [/* @__PURE__ */ i(dt, {
2912
2914
  label: "Save Changes",
2913
2915
  children: /* @__PURE__ */ i(A, {
@@ -2927,17 +2929,17 @@ const ec = I(() => {
2927
2929
  size: "md",
2928
2930
  disabled: !a,
2929
2931
  onClick: o,
2930
- children: /* @__PURE__ */ i(Go, {
2932
+ children: /* @__PURE__ */ i(Bo, {
2931
2933
  size: 20,
2932
2934
  color: "red"
2933
2935
  })
2934
2936
  })
2935
2937
  })]
2936
2938
  })]
2937
- }), !l && /* @__PURE__ */ g(xe, {
2939
+ }), !l && /* @__PURE__ */ g(Ce, {
2938
2940
  width: 180,
2939
2941
  trigger: "hover",
2940
- children: [/* @__PURE__ */ i(xe.Target, {
2942
+ children: [/* @__PURE__ */ i(Ce.Target, {
2941
2943
  children: /* @__PURE__ */ i(A, {
2942
2944
  variant: "default",
2943
2945
  size: "md",
@@ -2945,14 +2947,14 @@ const ec = I(() => {
2945
2947
  size: 20
2946
2948
  })
2947
2949
  })
2948
- }), /* @__PURE__ */ g(xe.Dropdown, {
2949
- children: [/* @__PURE__ */ i(xe.Item, {
2950
- icon: /* @__PURE__ */ i(Ho, {
2950
+ }), /* @__PURE__ */ g(Ce.Dropdown, {
2951
+ children: [/* @__PURE__ */ i(Ce.Item, {
2952
+ icon: /* @__PURE__ */ i(Wo, {
2951
2953
  size: 14
2952
2954
  }),
2953
2955
  onClick: n.queries.downloadAllData,
2954
2956
  children: "Download Data"
2955
- }), /* @__PURE__ */ i(xe.Item, {
2957
+ }), /* @__PURE__ */ i(Ce.Item, {
2956
2958
  icon: /* @__PURE__ */ i(_s, {
2957
2959
  size: 14
2958
2960
  }),
@@ -2975,7 +2977,7 @@ const Ci = I(() => {
2975
2977
  freezeLayout: e
2976
2978
  } = w.useContext(Le), [t, n] = w.useState(!1), {
2977
2979
  panel: r
2978
- } = he();
2980
+ } = ve();
2979
2981
  return w.useEffect(() => {
2980
2982
  e(t);
2981
2983
  }, [t]), !r.description || r.description === "<p><br></p>" ? null : /* @__PURE__ */ g(re, {
@@ -2984,7 +2986,7 @@ const Ci = I(() => {
2984
2986
  onClose: () => n(!1),
2985
2987
  title: r.title,
2986
2988
  withCloseButton: !1,
2987
- children: /* @__PURE__ */ i(Qo, {
2989
+ children: /* @__PURE__ */ i(Jo, {
2988
2990
  readOnly: !0,
2989
2991
  value: r.description,
2990
2992
  onChange: K.noop,
@@ -3034,10 +3036,10 @@ const Ci = I(() => {
3034
3036
  },
3035
3037
  children: n.map((a) => /* @__PURE__ */ g(C, {
3036
3038
  size: "sm",
3037
- children: [/* @__PURE__ */ g(ro, {
3039
+ children: [/* @__PURE__ */ g(oo, {
3038
3040
  color: "teal",
3039
3041
  children: ["// ", a.description]
3040
- }), /* @__PURE__ */ i("br", {}), /* @__PURE__ */ g(ro, {
3042
+ }), /* @__PURE__ */ i("br", {}), /* @__PURE__ */ g(oo, {
3041
3043
  onClick: () => o(a.name),
3042
3044
  style: {
3043
3045
  cursor: "pointer"
@@ -3054,7 +3056,7 @@ class cc {
3054
3056
  F(this, "operation");
3055
3057
  F(this, "operationSchema");
3056
3058
  F(this, "variables", []);
3057
- this.operationManager = t, this.instance = n, tr(this);
3059
+ this.operationManager = t, this.instance = n, nr(this);
3058
3060
  }
3059
3061
  get schemaList() {
3060
3062
  return this.operationManager.getOperationSchemaList();
@@ -3150,7 +3152,7 @@ class mc {
3150
3152
  F(this, "trigger");
3151
3153
  F(this, "triggerSchema");
3152
3154
  F(this, "sampleData");
3153
- this.triggerManager = t, this.instance = n, tr(this);
3155
+ this.triggerManager = t, this.instance = n, nr(this);
3154
3156
  }
3155
3157
  get schemaList() {
3156
3158
  return this.triggerManager.getTriggerSchemaList();
@@ -3279,7 +3281,7 @@ class pt {
3279
3281
  );
3280
3282
  }
3281
3283
  }
3282
- class ur {
3284
+ class dr {
3283
3285
  constructor(t, n, r) {
3284
3286
  F(this, "attachmentStorage");
3285
3287
  this.instance = t, this.attachmentKey = n, this.constructInstance = r, this.attachmentStorage = new pt(t.instanceData, n);
@@ -3297,7 +3299,7 @@ class ur {
3297
3299
  async list() {
3298
3300
  const t = await this.attachmentStorage.getItem(null);
3299
3301
  return Promise.all(
3300
- $o(t).map(
3302
+ Eo(t).map(
3301
3303
  (n) => this.constructInstance(new pt(this.attachmentStorage, n.id))
3302
3304
  )
3303
3305
  );
@@ -3306,7 +3308,7 @@ class ur {
3306
3308
  class Si {
3307
3309
  constructor(t) {
3308
3310
  F(this, "rootRef");
3309
- this.rootRef = Xo({ current: t });
3311
+ this.rootRef = Ko({ current: t });
3310
3312
  }
3311
3313
  async deleteItem(t) {
3312
3314
  Dt(() => {
@@ -3322,7 +3324,7 @@ class Si {
3322
3324
  }
3323
3325
  setItem(t, n) {
3324
3326
  if (t === null)
3325
- if (Eo(n))
3327
+ if (Ao(n))
3326
3328
  Dt(() => {
3327
3329
  this.rootRef.current = n;
3328
3330
  });
@@ -3330,12 +3332,12 @@ class Si {
3330
3332
  throw new Error("Cannot set root value to non-object");
3331
3333
  else
3332
3334
  Dt(() => {
3333
- Ao(this.rootRef.current, [t], n);
3335
+ Oo(this.rootRef.current, [t], n);
3334
3336
  });
3335
3337
  return Promise.resolve(this.getItem(t));
3336
3338
  }
3337
3339
  watchItem(t, n, r) {
3338
- return nr(
3340
+ return rr(
3339
3341
  () => this.getValueFromRoot(t),
3340
3342
  (o, a) => {
3341
3343
  n(o, a);
@@ -3350,13 +3352,13 @@ class Si {
3350
3352
  class wc {
3351
3353
  constructor() {
3352
3354
  F(this, "channels", /* @__PURE__ */ new Map());
3353
- F(this, "globalChannel", new lo());
3355
+ F(this, "globalChannel", new co());
3354
3356
  }
3355
3357
  getChannel(t) {
3356
3358
  const n = this.channels.get(t);
3357
3359
  if (n)
3358
3360
  return n;
3359
- const r = new lo();
3361
+ const r = new co();
3360
3362
  return this.channels.set(t, r), r;
3361
3363
  }
3362
3364
  }
@@ -3478,7 +3480,7 @@ const _c = (e) => {
3478
3480
  getColor: dn(["#fff7f1", "darkorange", "#b60000"]),
3479
3481
  name: "orange",
3480
3482
  category: "sequential"
3481
- }, $c = "5.9.0";
3483
+ }, $c = "5.9.1";
3482
3484
  class Ec {
3483
3485
  constructor(t) {
3484
3486
  F(this, "staticColors", /* @__PURE__ */ new Map());
@@ -3562,7 +3564,7 @@ class Oc {
3562
3564
  return o.reduce((s, l) => l.handler(s), n);
3563
3565
  }
3564
3566
  }
3565
- class we extends Oc {
3567
+ class Se extends Oc {
3566
3568
  constructor() {
3567
3569
  super(), this.configVersions();
3568
3570
  }
@@ -3579,7 +3581,7 @@ class we extends Oc {
3579
3581
  }
3580
3582
  }
3581
3583
  const U = (e, t) => {
3582
- const [n, { setFalse: r }] = $t(!0), [o, a] = me();
3584
+ const [n, { setFalse: r }] = $t(!0), [o, a] = he();
3583
3585
  Z(() => (e.getItem(t).then((l) => {
3584
3586
  a(l), r();
3585
3587
  }), e.watchItem(t, (l) => {
@@ -3596,7 +3598,7 @@ const U = (e, t) => {
3596
3598
  value: o,
3597
3599
  set: s
3598
3600
  };
3599
- }, dr = {
3601
+ }, gr = {
3600
3602
  x_axis_data_key: "",
3601
3603
  y_axis_data_key: "",
3602
3604
  z_axis_data_key: "",
@@ -3629,11 +3631,11 @@ function zc({
3629
3631
  xAxis3D: c,
3630
3632
  yAxis3D: d,
3631
3633
  zAxis3D: u
3632
- } = le({}, t, dr), p = L(() => {
3634
+ } = le({}, t, gr), p = L(() => {
3633
3635
  const b = ds(n, (v) => v[l]);
3634
3636
  return Q(b, l);
3635
3637
  }, [n, l]), f = L(() => {
3636
- const b = Oo(n, (v) => v[l]);
3638
+ const b = zo(n, (v) => v[l]);
3637
3639
  return Q(b, l);
3638
3640
  }, [n, l]), h = {
3639
3641
  tooltip: {},
@@ -3718,7 +3720,7 @@ function Tc({
3718
3720
  const {
3719
3721
  value: t,
3720
3722
  set: n
3721
- } = U(e.instanceData, "config"), r = e.data, o = le({}, t, dr), {
3723
+ } = U(e.instanceData, "config"), r = e.data, o = le({}, t, gr), {
3722
3724
  control: a,
3723
3725
  handleSubmit: s,
3724
3726
  reset: l
@@ -3861,7 +3863,7 @@ function Tc({
3861
3863
  })
3862
3864
  }) : null;
3863
3865
  }
3864
- class Lc extends we {
3866
+ class Lc extends Se {
3865
3867
  constructor() {
3866
3868
  super(...arguments);
3867
3869
  F(this, "VERSION", 1);
@@ -3879,8 +3881,8 @@ const Nc = {
3879
3881
  name: "bar-3d",
3880
3882
  viewRender: zc,
3881
3883
  configRender: Tc,
3882
- createConfig: () => dr
3883
- }, Ln = Zn(function({
3884
+ createConfig: () => gr
3885
+ }, Nn = er(function({
3884
3886
  value: t,
3885
3887
  onChange: n,
3886
3888
  ...r
@@ -4027,7 +4029,7 @@ function qc({
4027
4029
  })]
4028
4030
  });
4029
4031
  }
4030
- const gr = w.forwardRef(qc);
4032
+ const pr = w.forwardRef(qc);
4031
4033
  function gn() {
4032
4034
  return {
4033
4035
  name: Ie(),
@@ -4191,7 +4193,7 @@ function Uc({
4191
4193
  placeholder: "Set any color",
4192
4194
  value: a ? "" : e,
4193
4195
  onChange: (s) => t(s.currentTarget.value),
4194
- rightSection: /* @__PURE__ */ i(oo, {
4196
+ rightSection: /* @__PURE__ */ i(io, {
4195
4197
  color: a ? "transparent" : e,
4196
4198
  radius: 4
4197
4199
  }),
@@ -4211,7 +4213,7 @@ function Uc({
4211
4213
  onChange: t,
4212
4214
  variant: a ? "default" : "filled",
4213
4215
  placeholder: "Pick a theme color",
4214
- icon: /* @__PURE__ */ i(oo, {
4216
+ icon: /* @__PURE__ */ i(io, {
4215
4217
  color: a ? e : "transparent",
4216
4218
  radius: 4
4217
4219
  }),
@@ -4255,7 +4257,7 @@ function Yc({
4255
4257
  children: [/* @__PURE__ */ i(C, {
4256
4258
  size: "sm",
4257
4259
  children: e
4258
- }), /* @__PURE__ */ i(Mo, {
4260
+ }), /* @__PURE__ */ i(ko, {
4259
4261
  label: null,
4260
4262
  marks: Gt,
4261
4263
  value: o,
@@ -4437,7 +4439,7 @@ const Xc = w.forwardRef(Jc), Kc = w.forwardRef(function({
4437
4439
  my: "xs",
4438
4440
  label: "Format",
4439
4441
  labelPosition: "center"
4440
- }), /* @__PURE__ */ i(gr, {
4442
+ }), /* @__PURE__ */ i(pr, {
4441
4443
  value: t.formatter,
4442
4444
  onChange: (l) => s("formatter", l)
4443
4445
  }), o && /* @__PURE__ */ i(Kc, {
@@ -4450,7 +4452,7 @@ function Zc(e) {
4450
4452
  const t = Array.from(e).sort((r, o) => r - o), n = Math.floor(t.length / 2);
4451
4453
  return t.length % 2 === 0 ? (t[n - 1] + t[n]) / 2 : t[n];
4452
4454
  }
4453
- function pr(e, t, n) {
4455
+ function fr(e, t, n) {
4454
4456
  var o, a, s, l;
4455
4457
  const r = e.map((c) => c[t]);
4456
4458
  switch (n.type) {
@@ -4482,7 +4484,7 @@ process.env.NODE_ENV !== "production" && (Di = function(e, t) {
4482
4484
  const eu = (e, t, n) => Math.min(Math.max(n, e), t), Ii = (e, t, n) => {
4483
4485
  const r = t - e;
4484
4486
  return r === 0 ? 1 : (n - e) / r;
4485
- }, fr = (e, t, n) => -n * e + n * t + e, Vi = (e, t) => (n) => Math.max(Math.min(n, t), e), It = (e) => e % 1 ? Number(e.toFixed(5)) : e, Xt = /(-)?([\d]*\.?[\d])+/g, Nn = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi, tu = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
4487
+ }, mr = (e, t, n) => -n * e + n * t + e, Vi = (e, t) => (n) => Math.max(Math.min(n, t), e), It = (e) => e % 1 ? Number(e.toFixed(5)) : e, Xt = /(-)?([\d]*\.?[\d])+/g, qn = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi, tu = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
4486
4488
  function Ot(e) {
4487
4489
  return typeof e == "string";
4488
4490
  }
@@ -4498,7 +4500,7 @@ const nu = (e) => ({
4498
4500
  transform: (t) => `${t}${e}`
4499
4501
  }), Vt = nu("%");
4500
4502
  Object.assign(Object.assign({}, Vt), { parse: (e) => Vt.parse(e) / 100, transform: (e) => Vt.transform(e * 100) });
4501
- const mr = (e, t) => (n) => Boolean(Ot(n) && tu.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), ki = (e, t, n) => (r) => {
4503
+ const hr = (e, t) => (n) => Boolean(Ot(n) && tu.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), ki = (e, t, n) => (r) => {
4502
4504
  if (!Ot(r))
4503
4505
  return r;
4504
4506
  const [o, a, s, l] = r.match(Xt);
@@ -4509,11 +4511,11 @@ const mr = (e, t) => (n) => Boolean(Ot(n) && tu.test(n) && n.startsWith(e) || t
4509
4511
  alpha: l !== void 0 ? parseFloat(l) : 1
4510
4512
  };
4511
4513
  }, lt = {
4512
- test: mr("hsl", "hue"),
4514
+ test: hr("hsl", "hue"),
4513
4515
  parse: ki("hue", "saturation", "lightness"),
4514
4516
  transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Vt.transform(It(t)) + ", " + Vt.transform(It(n)) + ", " + It(Mi.transform(r)) + ")"
4515
4517
  }, ru = Vi(0, 255), Vn = Object.assign(Object.assign({}, fn), { transform: (e) => Math.round(ru(e)) }), Xe = {
4516
- test: mr("rgb", "red"),
4518
+ test: hr("rgb", "red"),
4517
4519
  parse: ki("red", "green", "blue"),
4518
4520
  transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Vn.transform(e) + ", " + Vn.transform(t) + ", " + Vn.transform(n) + ", " + It(Mi.transform(r)) + ")"
4519
4521
  };
@@ -4526,25 +4528,25 @@ function ou(e) {
4526
4528
  alpha: o ? parseInt(o, 16) / 255 : 1
4527
4529
  };
4528
4530
  }
4529
- const qn = {
4530
- test: mr("#"),
4531
+ const jn = {
4532
+ test: hr("#"),
4531
4533
  parse: ou,
4532
4534
  transform: Xe.transform
4533
4535
  }, mn = {
4534
- test: (e) => Xe.test(e) || qn.test(e) || lt.test(e),
4535
- parse: (e) => Xe.test(e) ? Xe.parse(e) : lt.test(e) ? lt.parse(e) : qn.parse(e),
4536
+ test: (e) => Xe.test(e) || jn.test(e) || lt.test(e),
4537
+ parse: (e) => Xe.test(e) ? Xe.parse(e) : lt.test(e) ? lt.parse(e) : jn.parse(e),
4536
4538
  transform: (e) => Ot(e) ? e : e.hasOwnProperty("red") ? Xe.transform(e) : lt.transform(e)
4537
4539
  }, Fi = "${c}", $i = "${n}";
4538
4540
  function iu(e) {
4539
4541
  var t, n, r, o;
4540
- return isNaN(e) && Ot(e) && ((n = (t = e.match(Xt)) === null || t === void 0 ? void 0 : t.length) !== null && n !== void 0 ? n : 0) + ((o = (r = e.match(Nn)) === null || r === void 0 ? void 0 : r.length) !== null && o !== void 0 ? o : 0) > 0;
4542
+ return isNaN(e) && Ot(e) && ((n = (t = e.match(Xt)) === null || t === void 0 ? void 0 : t.length) !== null && n !== void 0 ? n : 0) + ((o = (r = e.match(qn)) === null || r === void 0 ? void 0 : r.length) !== null && o !== void 0 ? o : 0) > 0;
4541
4543
  }
4542
4544
  function Ei(e) {
4543
4545
  typeof e == "number" && (e = `${e}`);
4544
4546
  const t = [];
4545
4547
  let n = 0;
4546
- const r = e.match(Nn);
4547
- r && (n = r.length, e = e.replace(Nn, Fi), t.push(...r.map(mn.parse)));
4548
+ const r = e.match(qn);
4549
+ r && (n = r.length, e = e.replace(qn, Fi), t.push(...r.map(mn.parse)));
4548
4550
  const o = e.match(Xt);
4549
4551
  return o && (e = e.replace(Xt, $i), t.push(...o.map(fn.parse))), { values: t, numColors: n, tokenised: e };
4550
4552
  }
@@ -4569,7 +4571,7 @@ const zi = { test: iu, parse: Ai, createTransformer: Oi, getAnimatableNone: su }
4569
4571
  function Mn(e, t, n) {
4570
4572
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
4571
4573
  }
4572
- function fo({ hue: e, saturation: t, lightness: n, alpha: r }) {
4574
+ function mo({ hue: e, saturation: t, lightness: n, alpha: r }) {
4573
4575
  e /= 360, t /= 100, n /= 100;
4574
4576
  let o = 0, a = 0, s = 0;
4575
4577
  if (!t)
@@ -4588,20 +4590,20 @@ function fo({ hue: e, saturation: t, lightness: n, alpha: r }) {
4588
4590
  const lu = (e, t, n) => {
4589
4591
  const r = e * e, o = t * t;
4590
4592
  return Math.sqrt(Math.max(0, n * (o - r) + r));
4591
- }, cu = [qn, Xe, lt], mo = (e) => cu.find((t) => t.test(e)), ho = (e) => `'${e}' is not an animatable color. Use the equivalent color code instead.`, Pi = (e, t) => {
4592
- let n = mo(e), r = mo(t);
4593
- Ft(!!n, ho(e)), Ft(!!r, ho(t));
4593
+ }, cu = [jn, Xe, lt], ho = (e) => cu.find((t) => t.test(e)), vo = (e) => `'${e}' is not an animatable color. Use the equivalent color code instead.`, Pi = (e, t) => {
4594
+ let n = ho(e), r = ho(t);
4595
+ Ft(!!n, vo(e)), Ft(!!r, vo(t));
4594
4596
  let o = n.parse(e), a = r.parse(t);
4595
- n === lt && (o = fo(o), n = Xe), r === lt && (a = fo(a), r = Xe);
4597
+ n === lt && (o = mo(o), n = Xe), r === lt && (a = mo(a), r = Xe);
4596
4598
  const s = Object.assign({}, o);
4597
4599
  return (l) => {
4598
4600
  for (const c in s)
4599
4601
  c !== "alpha" && (s[c] = lu(o[c], a[c], l));
4600
- return s.alpha = fr(o.alpha, a.alpha, l), n.transform(s);
4602
+ return s.alpha = mr(o.alpha, a.alpha, l), n.transform(s);
4601
4603
  };
4602
4604
  }, uu = (e) => typeof e == "number", du = (e, t) => (n) => t(e(n)), Ti = (...e) => e.reduce(du);
4603
4605
  function Li(e, t) {
4604
- return uu(e) ? (n) => fr(e, t, n) : mn.test(e) ? Pi(e, t) : qi(e, t);
4606
+ return uu(e) ? (n) => mr(e, t, n) : mn.test(e) ? Pi(e, t) : qi(e, t);
4605
4607
  }
4606
4608
  const Ni = (e, t) => {
4607
4609
  const n = [...e], r = n.length, o = e.map((a, s) => Li(a, t[s]));
@@ -4620,7 +4622,7 @@ const Ni = (e, t) => {
4620
4622
  return n;
4621
4623
  };
4622
4624
  };
4623
- function vo(e) {
4625
+ function bo(e) {
4624
4626
  const t = zi.parse(e), n = t.length;
4625
4627
  let r = 0, o = 0, a = 0;
4626
4628
  for (let s = 0; s < n; s++)
@@ -4628,9 +4630,9 @@ function vo(e) {
4628
4630
  return { parsed: t, numNumbers: r, numRGB: o, numHSL: a };
4629
4631
  }
4630
4632
  const qi = (e, t) => {
4631
- const n = zi.createTransformer(t), r = vo(e), o = vo(t);
4633
+ const n = zi.createTransformer(t), r = bo(e), o = bo(t);
4632
4634
  return r.numHSL === o.numHSL && r.numRGB === o.numRGB && r.numNumbers >= o.numNumbers ? Ti(Ni(r.parsed, o.parsed), n) : (Di(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), (s) => `${s > 0 ? t : e}`);
4633
- }, pu = (e, t) => (n) => fr(e, t, n);
4635
+ }, pu = (e, t) => (n) => mr(e, t, n);
4634
4636
  function fu(e) {
4635
4637
  if (typeof e == "number")
4636
4638
  return pu;
@@ -4688,8 +4690,8 @@ class yu {
4688
4690
  function xu(e) {
4689
4691
  return e === null ? "null" : e === void 0 ? "undefined" : Array.isArray(e) ? `Array(${e.length})` : e.toString();
4690
4692
  }
4691
- function hr({ data_field: e, aggregation: t }, n) {
4692
- return pr(n, e, t);
4693
+ function vr({ data_field: e, aggregation: t }, n) {
4694
+ return fr(n, e, t);
4693
4695
  }
4694
4696
  function zt({ formatter: e }, t) {
4695
4697
  return ["string", "number"].includes(typeof t) ? De(t).format(e) : xu(t);
@@ -4707,7 +4709,7 @@ function wu(e, t) {
4707
4709
  aggregation: l,
4708
4710
  size: c,
4709
4711
  weight: d
4710
- } = r, u = pr(t, s, l), p = zt(r, u);
4712
+ } = r, u = fr(t, s, l), p = zt(r, u);
4711
4713
  n[o] = /* @__PURE__ */ i(C, {
4712
4714
  sx: {
4713
4715
  fontSize: c,
@@ -4735,7 +4737,7 @@ function _u(e) {
4735
4737
  function kn(e) {
4736
4738
  return _u(e);
4737
4739
  }
4738
- function jn(e, t, n) {
4740
+ function Gn(e, t, n) {
4739
4741
  const r = wu(t, n), o = /^\{(.+)\}(.*)$/;
4740
4742
  return e.split("$").map((a) => {
4741
4743
  var d;
@@ -4754,7 +4756,7 @@ function jn(e, t, n) {
4754
4756
  function Ru(e, t) {
4755
4757
  const n = {};
4756
4758
  return e.forEach((r) => {
4757
- const { name: o, data_field: a, aggregation: s } = r, l = pr(t, a, s);
4759
+ const { name: o, data_field: a, aggregation: s } = r, l = fr(t, a, s);
4758
4760
  n[o] = zt(r, l);
4759
4761
  }), n;
4760
4762
  }
@@ -4772,7 +4774,7 @@ function ji(e, t, n) {
4772
4774
  return `${l}${c}`;
4773
4775
  }).join("");
4774
4776
  }
4775
- const vr = {
4777
+ const br = {
4776
4778
  x_axis: {
4777
4779
  name: "X Axis",
4778
4780
  data_key: ""
@@ -4785,10 +4787,10 @@ const vr = {
4785
4787
  variables: [],
4786
4788
  reference_lines: []
4787
4789
  };
4788
- ge.use([sn, Gs, Ko, vt, bt, yt, it]);
4790
+ ge.use([sn, Gs, Zo, vt, bt, yt, it]);
4789
4791
  function Du(e, t, n) {
4790
4792
  const r = t.reduce((o, a) => {
4791
- const s = hr(a, n);
4793
+ const s = vr(a, n);
4792
4794
  return o[a.name] = zt(a, s), o;
4793
4795
  }, {});
4794
4796
  return e.map((o) => ({
@@ -4825,7 +4827,7 @@ function Iu({
4825
4827
  color: l,
4826
4828
  variables: c,
4827
4829
  reference_lines: d
4828
- } = le({}, t, vr), {
4830
+ } = le({}, t, br), {
4829
4831
  xAxisData: u,
4830
4832
  boxplotData: p
4831
4833
  } = L(() => {
@@ -5076,7 +5078,7 @@ function $u({
5076
5078
  const {
5077
5079
  value: t,
5078
5080
  set: n
5079
- } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, vr), [t]), {
5081
+ } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, br), [t]), {
5080
5082
  control: a,
5081
5083
  handleSubmit: s,
5082
5084
  watch: l,
@@ -5088,7 +5090,7 @@ function $u({
5088
5090
  Z(() => {
5089
5091
  d(o);
5090
5092
  }, [o]), l(["x_axis", "y_axis", "reference_lines", "color"]);
5091
- const u = c(), p = L(() => !Ce(u, t), [u, t]);
5093
+ const u = c(), p = L(() => !we(u, t), [u, t]);
5092
5094
  return /* @__PURE__ */ i(R, {
5093
5095
  mt: "md",
5094
5096
  spacing: "xs",
@@ -5250,7 +5252,7 @@ function $u({
5250
5252
  })
5251
5253
  });
5252
5254
  }
5253
- class Eu extends we {
5255
+ class Eu extends Se {
5254
5256
  constructor() {
5255
5257
  super(...arguments);
5256
5258
  F(this, "VERSION", 1);
@@ -5268,7 +5270,7 @@ const Au = {
5268
5270
  name: "boxplot",
5269
5271
  viewRender: Iu,
5270
5272
  configRender: $u,
5271
- createConfig: () => vr
5273
+ createConfig: () => br
5272
5274
  };
5273
5275
  function Ou(e) {
5274
5276
  const t = e.y_axes.some((n) => !!n.name);
@@ -5311,7 +5313,7 @@ function Pu(e, t, n, r) {
5311
5313
  }
5312
5314
  function Tu(e, t, n) {
5313
5315
  const r = t.reduce((o, a) => {
5314
- const s = hr(a, n);
5316
+ const s = vr(a, n);
5315
5317
  return o[a.name] = zt(a, s), o;
5316
5318
  }, {});
5317
5319
  return e.map((o) => ({
@@ -5338,7 +5340,7 @@ function Tu(e, t, n) {
5338
5340
  }
5339
5341
  function Lu(e, t, n) {
5340
5342
  const r = t.reduce((o, a) => {
5341
- const s = hr(a, n);
5343
+ const s = vr(a, n);
5342
5344
  return o[a.name] = zt(a, s), o;
5343
5345
  }, {});
5344
5346
  return e.map((o) => ({
@@ -5396,7 +5398,7 @@ function Nu({ x_axis_data_key: e }, {
5396
5398
  return h.data = p.map((v) => v[t]), h;
5397
5399
  const b = Ee(p, a);
5398
5400
  return Object.entries(b).map(([v, S]) => {
5399
- const M = zo(h);
5401
+ const M = Po(h);
5400
5402
  return M.data = Pu(u, S, e, t), M.name = v, M.color = void 0, M;
5401
5403
  });
5402
5404
  }
@@ -5520,7 +5522,7 @@ function Wu(e, t) {
5520
5522
  };
5521
5523
  return We({}, c, Hu);
5522
5524
  }
5523
- const br = {
5525
+ const yr = {
5524
5526
  regressions: [],
5525
5527
  series: [],
5526
5528
  stats: { templates: { bottom: "", top: "" }, variables: [] },
@@ -5543,9 +5545,9 @@ const br = {
5543
5545
  reference_lines: [],
5544
5546
  reference_areas: []
5545
5547
  };
5546
- ge.use([sn, Zo, ei, ti, vt, bt, yt, it, Ko, js]);
5547
- ge.registerTransform(ni.regression);
5548
- function bo(e) {
5548
+ ge.use([sn, ei, ti, ni, vt, bt, yt, it, Zo, js]);
5549
+ ge.registerTransform(ri.regression);
5550
+ function yo(e) {
5549
5551
  return e.trim().length > 0;
5550
5552
  }
5551
5553
  function Uu({
@@ -5569,7 +5571,7 @@ function Yu({
5569
5571
  }) {
5570
5572
  const {
5571
5573
  value: t
5572
- } = U(e.instanceData, "config"), n = L(() => le({}, t, br), [t]), r = e.data, {
5574
+ } = U(e.instanceData, "config"), n = L(() => le({}, t, yr), [t]), r = e.data, {
5573
5575
  width: o,
5574
5576
  height: a
5575
5577
  } = e.viewport, {
@@ -5586,12 +5588,12 @@ function Yu({
5586
5588
  }
5587
5589
  } = n;
5588
5590
  return {
5589
- top: jn(f.top, h, r),
5590
- bottom: jn(f.bottom, h, r)
5591
+ top: Gn(f.top, h, r),
5592
+ bottom: Gn(f.bottom, h, r)
5591
5593
  };
5592
5594
  }, [n, r]), p = Math.max(0, a - l - d);
5593
5595
  return /* @__PURE__ */ g(G, {
5594
- children: [bo(n.stats.templates.top) && /* @__PURE__ */ i(C, {
5596
+ children: [yo(n.stats.templates.top) && /* @__PURE__ */ i(C, {
5595
5597
  ref: s,
5596
5598
  align: "left",
5597
5599
  size: "xs",
@@ -5602,7 +5604,7 @@ function Yu({
5602
5604
  height: p,
5603
5605
  data: r,
5604
5606
  conf: n
5605
- }), bo(n.stats.templates.bottom) && /* @__PURE__ */ i(C, {
5607
+ }), yo(n.stats.templates.bottom) && /* @__PURE__ */ i(C, {
5606
5608
  ref: c,
5607
5609
  align: "left",
5608
5610
  size: "xs",
@@ -6356,7 +6358,7 @@ function dd({
6356
6358
  children: [/* @__PURE__ */ i(C, {
6357
6359
  size: "sm",
6358
6360
  children: "Size"
6359
- }), /* @__PURE__ */ i(Mo, {
6361
+ }), /* @__PURE__ */ i(ko, {
6360
6362
  min: 1,
6361
6363
  max: 10,
6362
6364
  marks: ud,
@@ -6702,7 +6704,7 @@ function hd({
6702
6704
  control: e,
6703
6705
  render: ({
6704
6706
  field: d
6705
- }) => /* @__PURE__ */ i(Ln, {
6707
+ }) => /* @__PURE__ */ i(Nn, {
6706
6708
  label: "Template for stats above the chart",
6707
6709
  py: "md",
6708
6710
  sx: {
@@ -6715,7 +6717,7 @@ function hd({
6715
6717
  control: e,
6716
6718
  render: ({
6717
6719
  field: d
6718
- }) => /* @__PURE__ */ i(Ln, {
6720
+ }) => /* @__PURE__ */ i(Nn, {
6719
6721
  label: "Template for stats under the chart",
6720
6722
  py: "md",
6721
6723
  sx: {
@@ -6981,7 +6983,7 @@ function wd({
6981
6983
  control: e,
6982
6984
  render: ({
6983
6985
  field: r
6984
- }) => /* @__PURE__ */ i(gr, {
6986
+ }) => /* @__PURE__ */ i(pr, {
6985
6987
  ...r
6986
6988
  })
6987
6989
  })]
@@ -7103,9 +7105,9 @@ function Id({
7103
7105
  const {
7104
7106
  value: t,
7105
7107
  set: n
7106
- } = U(e.instanceData, "config"), r = e.data, o = L(() => We({}, t, br), [t]), a = L(() => Dd(o), [o]);
7108
+ } = U(e.instanceData, "config"), r = e.data, o = L(() => We({}, t, yr), [t]), a = L(() => Dd(o), [o]);
7107
7109
  Z(() => {
7108
- !Ce(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
7110
+ !we(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
7109
7111
  }, [o, a]);
7110
7112
  const {
7111
7113
  control: s,
@@ -7119,7 +7121,7 @@ function Id({
7119
7121
  Z(() => {
7120
7122
  u(a);
7121
7123
  }, [a]);
7122
- const p = d(), f = L(() => !Ce(p, o), [p, o]);
7124
+ const p = d(), f = L(() => !we(p, o), [p, o]);
7123
7125
  return /* @__PURE__ */ i(R, {
7124
7126
  mt: "md",
7125
7127
  spacing: "xs",
@@ -7258,7 +7260,7 @@ function Id({
7258
7260
  })
7259
7261
  });
7260
7262
  }
7261
- class Vd extends we {
7263
+ class Vd extends Se {
7262
7264
  constructor() {
7263
7265
  super(...arguments);
7264
7266
  F(this, "VERSION", 1);
@@ -7276,8 +7278,8 @@ const Md = {
7276
7278
  name: "cartesian",
7277
7279
  viewRender: Yu,
7278
7280
  configRender: Id,
7279
- createConfig: () => br
7280
- }, yr = {
7281
+ createConfig: () => yr
7282
+ }, xr = {
7281
7283
  x_axis: {
7282
7284
  name: "X Axis",
7283
7285
  data_key: ""
@@ -7292,7 +7294,7 @@ const Md = {
7292
7294
  color: "red"
7293
7295
  }
7294
7296
  };
7295
- function xr(e) {
7297
+ function Cr(e) {
7296
7298
  return De(e).format({
7297
7299
  output: "percent",
7298
7300
  mantissa: 0
@@ -7301,7 +7303,7 @@ function xr(e) {
7301
7303
  function kd(e) {
7302
7304
  const t = e.value[1];
7303
7305
  try {
7304
- return xr(t);
7306
+ return Cr(t);
7305
7307
  } catch (n) {
7306
7308
  return console.error(n), t;
7307
7309
  }
@@ -7312,11 +7314,11 @@ function Fd(e) {
7312
7314
  return "";
7313
7315
  const n = t.map((r, o) => {
7314
7316
  const a = r.seriesName, [s, l] = r.value;
7315
- return a ? `${a}: <strong>${(o === 0 ? (d) => d : xr)(l)}</strong>` : l;
7317
+ return a ? `${a}: <strong>${(o === 0 ? (d) => d : Cr)(l)}</strong>` : l;
7316
7318
  });
7317
7319
  return n.unshift(`<strong>${t[0].name}</strong>`), n.join("<br />");
7318
7320
  }
7319
- ge.use([Zo, ei, sn, vt, bt, yt, it]);
7321
+ ge.use([ei, ti, sn, vt, bt, yt, it]);
7320
7322
  function $d({
7321
7323
  context: e
7322
7324
  }) {
@@ -7330,7 +7332,7 @@ function $d({
7330
7332
  data_key: s,
7331
7333
  bar: l,
7332
7334
  line: c
7333
- } = le({}, t, yr), {
7335
+ } = le({}, t, xr), {
7334
7336
  barData: d,
7335
7337
  lineData: u
7336
7338
  } = L(() => {
@@ -7380,7 +7382,7 @@ function $d({
7380
7382
  },
7381
7383
  axisLabel: {
7382
7384
  show: !0,
7383
- formatter: xr
7385
+ formatter: Cr
7384
7386
  }
7385
7387
  }],
7386
7388
  series: [{
@@ -7425,7 +7427,7 @@ function Ed({
7425
7427
  const {
7426
7428
  value: t,
7427
7429
  set: n
7428
- } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, yr), [t]), {
7430
+ } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, xr), [t]), {
7429
7431
  control: a,
7430
7432
  handleSubmit: s,
7431
7433
  watch: l,
@@ -7437,7 +7439,7 @@ function Ed({
7437
7439
  Z(() => {
7438
7440
  d(o);
7439
7441
  }, [o]), l(["x_axis", "data_key", "bar", "line"]);
7440
- const u = c(), p = L(() => !Ce(u, t), [u, t]);
7442
+ const u = c(), p = L(() => !we(u, t), [u, t]);
7441
7443
  return /* @__PURE__ */ i(R, {
7442
7444
  mt: "md",
7443
7445
  spacing: "xs",
@@ -7579,7 +7581,7 @@ function Ed({
7579
7581
  })
7580
7582
  });
7581
7583
  }
7582
- class Ad extends we {
7584
+ class Ad extends Se {
7583
7585
  constructor() {
7584
7586
  super(...arguments);
7585
7587
  F(this, "VERSION", 1);
@@ -7597,8 +7599,8 @@ const Od = {
7597
7599
  name: "paretoChart",
7598
7600
  viewRender: $d,
7599
7601
  configRender: Ed,
7600
- createConfig: () => yr
7601
- }, Cr = {
7602
+ createConfig: () => xr
7603
+ }, wr = {
7602
7604
  label_field: "",
7603
7605
  value_field: ""
7604
7606
  };
@@ -7648,19 +7650,19 @@ function Pd({
7648
7650
  } = e.viewport, {
7649
7651
  label_field: a,
7650
7652
  value_field: s
7651
- } = le({}, t, Cr), l = L(() => n.map((u) => ({
7653
+ } = le({}, t, wr), l = L(() => n.map((u) => ({
7652
7654
  name: u[a],
7653
7655
  value: Number(u[s])
7654
7656
  })), [n, a, s]), c = L(() => ({
7655
7657
  series: {
7656
7658
  labelLayout: function(u) {
7657
7659
  const p = u.labelRect.x < r / 2, f = u.labelLinePoints;
7658
- return Ao(f, [2, 0], p ? u.labelRect.x : u.labelRect.x + u.labelRect.width), {
7660
+ return Oo(f, [2, 0], p ? u.labelRect.x : u.labelRect.x + u.labelRect.width), {
7659
7661
  labelLinePoints: f
7660
7662
  };
7661
7663
  }
7662
7664
  }
7663
- }), [r]), d = Po({}, zd, c, {
7665
+ }), [r]), d = To({}, zd, c, {
7664
7666
  series: {
7665
7667
  data: l
7666
7668
  }
@@ -7683,7 +7685,7 @@ function Td({
7683
7685
  } = U(e.instanceData, "config"), {
7684
7686
  label_field: r,
7685
7687
  value_field: o
7686
- } = le({}, t, Cr), a = e.data, s = rr({
7688
+ } = le({}, t, wr), a = e.data, s = or({
7687
7689
  initialValues: {
7688
7690
  label_field: r,
7689
7691
  value_field: o
@@ -7740,7 +7742,7 @@ function Td({
7740
7742
  })
7741
7743
  });
7742
7744
  }
7743
- class Ld extends we {
7745
+ class Ld extends Se {
7744
7746
  constructor() {
7745
7747
  super(...arguments);
7746
7748
  F(this, "VERSION", 1);
@@ -7758,7 +7760,7 @@ const Nd = {
7758
7760
  name: "pie",
7759
7761
  viewRender: Pd,
7760
7762
  configRender: Td,
7761
- createConfig: () => Cr
7763
+ createConfig: () => wr
7762
7764
  };
7763
7765
  function Gi(e) {
7764
7766
  return e ? (t) => {
@@ -7883,7 +7885,7 @@ function Bd(e, t) {
7883
7885
  };
7884
7886
  return K.merge({}, Gd, a);
7885
7887
  }
7886
- const wr = {
7888
+ const Sr = {
7887
7889
  series_name_key: "name",
7888
7890
  dimensions: []
7889
7891
  };
@@ -7896,8 +7898,8 @@ function Hd({
7896
7898
  } = U(e.instanceData, "config"), {
7897
7899
  width: n,
7898
7900
  height: r
7899
- } = e.viewport, o = e.data, a = L(() => Bd(We({}, t, wr), o), [t, o]);
7900
- return !n || !r || !t || To(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ i(G, {
7901
+ } = e.viewport, o = e.data, a = L(() => Bd(We({}, t, Sr), o), [t, o]);
7902
+ return !n || !r || !t || Lo(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ i(G, {
7901
7903
  children: /* @__PURE__ */ i(at, {
7902
7904
  echarts: ge,
7903
7905
  option: a,
@@ -7978,7 +7980,7 @@ function Wd({
7978
7980
  control: e,
7979
7981
  render: ({
7980
7982
  field: o
7981
- }) => /* @__PURE__ */ i(gr, {
7983
+ }) => /* @__PURE__ */ i(pr, {
7982
7984
  ...o
7983
7985
  })
7984
7986
  })]
@@ -8057,7 +8059,7 @@ function Qd({
8057
8059
  const t = e.data, {
8058
8060
  value: n,
8059
8061
  set: r
8060
- } = U(e.instanceData, "config"), o = L(() => We({}, n, wr), [n]), {
8062
+ } = U(e.instanceData, "config"), o = L(() => We({}, n, Sr), [n]), {
8061
8063
  dimensions: a,
8062
8064
  series_name_key: s
8063
8065
  } = o, l = L(() => ({
@@ -8065,7 +8067,7 @@ function Qd({
8065
8067
  series_name_key: s
8066
8068
  }), [a, s]);
8067
8069
  Z(() => {
8068
- !Ce(o, l) && r(l);
8070
+ !we(o, l) && r(l);
8069
8071
  }, [o, l]);
8070
8072
  const {
8071
8073
  control: c,
@@ -8077,9 +8079,9 @@ function Qd({
8077
8079
  defaultValues: l
8078
8080
  });
8079
8081
  Z(() => {
8080
- Ce(p(), l) || f(l);
8082
+ we(p(), l) || f(l);
8081
8083
  }, [o]), u(["series_name_key"]);
8082
- const h = p(), b = L(() => !Ce(h, o), [h, o]);
8084
+ const h = p(), b = L(() => !we(h, o), [h, o]);
8083
8085
  return /* @__PURE__ */ i(R, {
8084
8086
  mt: "md",
8085
8087
  spacing: "xs",
@@ -8130,7 +8132,7 @@ function Qd({
8130
8132
  })
8131
8133
  });
8132
8134
  }
8133
- class Jd extends we {
8135
+ class Jd extends Se {
8134
8136
  constructor() {
8135
8137
  super(...arguments);
8136
8138
  F(this, "VERSION", 1);
@@ -8148,7 +8150,7 @@ const Xd = {
8148
8150
  name: "radar",
8149
8151
  viewRender: Hd,
8150
8152
  configRender: Qd,
8151
- createConfig: () => wr
8153
+ createConfig: () => Sr
8152
8154
  };
8153
8155
  function Kd(e, t) {
8154
8156
  switch (e.config.method) {
@@ -8381,7 +8383,7 @@ function ng(e, t) {
8381
8383
  rSquared: 0
8382
8384
  };
8383
8385
  }
8384
- const Sr = {
8386
+ const _r = {
8385
8387
  x_axis: {
8386
8388
  name: "X Axis",
8387
8389
  data_key: ""
@@ -8411,8 +8413,8 @@ const Sr = {
8411
8413
  y_axis_data_key: "value"
8412
8414
  }
8413
8415
  };
8414
- ge.use([sn, ti, vt, bt, yt, it]);
8415
- ge.registerTransform(ni.regression);
8416
+ ge.use([sn, ni, vt, bt, yt, it]);
8417
+ ge.registerTransform(ri.regression);
8416
8418
  function rg({
8417
8419
  context: e
8418
8420
  }) {
@@ -8428,7 +8430,7 @@ function rg({
8428
8430
  ...h,
8429
8431
  [p]: Number(h[p])
8430
8432
  }) : u;
8431
- }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = L(() => tg(We({}, t, Sr), o), [t, o]), {
8433
+ }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = L(() => tg(We({}, t, _r), o), [t, o]), {
8432
8434
  expression: s,
8433
8435
  rSquared: l,
8434
8436
  adjustedRSquared: c
@@ -8458,7 +8460,7 @@ function rg({
8458
8460
  width: n - 190,
8459
8461
  height: d
8460
8462
  }
8461
- }), l && /* @__PURE__ */ i(Xn, {
8463
+ }), l && /* @__PURE__ */ i(Kn, {
8462
8464
  mt: 20,
8463
8465
  fontSize: 12,
8464
8466
  sx: {
@@ -8602,7 +8604,7 @@ function ag({
8602
8604
  const {
8603
8605
  value: t,
8604
8606
  set: n
8605
- } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, Sr), [t]), {
8607
+ } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, _r), [t]), {
8606
8608
  control: a,
8607
8609
  handleSubmit: s,
8608
8610
  watch: l,
@@ -8614,7 +8616,7 @@ function ag({
8614
8616
  Z(() => {
8615
8617
  d(o);
8616
8618
  }, [o]), l(["x_axis", "y_axis", "regression"]);
8617
- const u = c(), p = L(() => !Ce(u, t), [u, t]);
8619
+ const u = c(), p = L(() => !we(u, t), [u, t]);
8618
8620
  return /* @__PURE__ */ i(R, {
8619
8621
  mt: "md",
8620
8622
  spacing: "xs",
@@ -8712,7 +8714,7 @@ function ag({
8712
8714
  })
8713
8715
  });
8714
8716
  }
8715
- class sg extends we {
8717
+ class sg extends Se {
8716
8718
  constructor() {
8717
8719
  super(...arguments);
8718
8720
  F(this, "VERSION", 1);
@@ -8730,8 +8732,8 @@ const lg = {
8730
8732
  name: "regressionChart",
8731
8733
  viewRender: rg,
8732
8734
  configRender: ag,
8733
- createConfig: () => Sr
8734
- }, _r = {
8735
+ createConfig: () => _r
8736
+ }, Rr = {
8735
8737
  content: ""
8736
8738
  };
8737
8739
  function Bi(e) {
@@ -8746,10 +8748,10 @@ function cg({
8746
8748
  }) {
8747
8749
  const {
8748
8750
  panel: t
8749
- } = he(), {
8751
+ } = ve(), {
8750
8752
  value: n
8751
8753
  } = U(e.instanceData, "config"), r = n == null ? void 0 : n.content, o = Bi(r);
8752
- return n != null && n.content ? /* @__PURE__ */ i(Jo, {
8754
+ return n != null && n.content ? /* @__PURE__ */ i(Xo, {
8753
8755
  id: t.id,
8754
8756
  ref: o,
8755
8757
  readOnly: !0,
@@ -8774,7 +8776,7 @@ function ug({
8774
8776
  const {
8775
8777
  value: t,
8776
8778
  set: n
8777
- } = U(e.instanceData, "config"), r = L(() => le({}, t, _r), [t]), {
8779
+ } = U(e.instanceData, "config"), r = L(() => le({}, t, Rr), [t]), {
8778
8780
  control: o,
8779
8781
  handleSubmit: a,
8780
8782
  watch: s,
@@ -8783,7 +8785,7 @@ function ug({
8783
8785
  defaultValues: r
8784
8786
  });
8785
8787
  s("content");
8786
- const c = l(), d = L(() => !Ce(c, t), [c, t]), u = Bi(t == null ? void 0 : t.content);
8788
+ const c = l(), d = L(() => !we(c, t), [c, t]), u = Bi(t == null ? void 0 : t.content);
8787
8789
  return /* @__PURE__ */ i(R, {
8788
8790
  mt: "md",
8789
8791
  spacing: "xs",
@@ -8814,7 +8816,7 @@ function ug({
8814
8816
  control: o,
8815
8817
  render: ({
8816
8818
  field: p
8817
- }) => /* @__PURE__ */ i(Qo, {
8819
+ }) => /* @__PURE__ */ i(Jo, {
8818
8820
  ref: u,
8819
8821
  sx: {
8820
8822
  flex: 1
@@ -8825,13 +8827,13 @@ function ug({
8825
8827
  })
8826
8828
  });
8827
8829
  }
8828
- class dg extends we {
8830
+ class dg extends Se {
8829
8831
  constructor() {
8830
8832
  super(...arguments);
8831
8833
  F(this, "VERSION", 1);
8832
8834
  }
8833
8835
  fixMalformedConfig(n) {
8834
- return le({}, n, _r);
8836
+ return le({}, n, Rr);
8835
8837
  }
8836
8838
  configVersions() {
8837
8839
  this.version(1, (n) => ({
@@ -8846,8 +8848,8 @@ const gg = {
8846
8848
  name: "richText",
8847
8849
  viewRender: cg,
8848
8850
  configRender: ug,
8849
- createConfig: () => _r
8850
- }, Rr = {
8851
+ createConfig: () => Rr
8852
+ }, Dr = {
8851
8853
  align: "center",
8852
8854
  template: "The variable ${value} is defined in Variables section",
8853
8855
  variables: [
@@ -8902,7 +8904,7 @@ function pg(e) {
8902
8904
  ]
8903
8905
  };
8904
8906
  }
8905
- class fg extends we {
8907
+ class fg extends Se {
8906
8908
  constructor() {
8907
8909
  super(...arguments);
8908
8910
  F(this, "VERSION", 1);
@@ -8915,12 +8917,12 @@ function mg({
8915
8917
  context: e
8916
8918
  }) {
8917
8919
  const {
8918
- value: t = Rr
8920
+ value: t = Dr
8919
8921
  } = U(e.instanceData, "config"), {
8920
8922
  template: n,
8921
8923
  variables: r,
8922
8924
  align: o
8923
- } = t, a = L(() => jn(n, r, e.data), [n, r, e.data]);
8925
+ } = t, a = L(() => Gn(n, r, e.data), [n, r, e.data]);
8924
8926
  return /* @__PURE__ */ i(C, {
8925
8927
  align: o,
8926
8928
  children: Object.values(a).map((s, l) => /* @__PURE__ */ i(w.Fragment, {
@@ -9010,7 +9012,7 @@ function bg({
9010
9012
  align: f,
9011
9013
  template: h = "",
9012
9014
  variables: b = []
9013
- } = We({}, n, Rr);
9015
+ } = We({}, n, Dr);
9014
9016
  return {
9015
9017
  variables: b,
9016
9018
  template: h,
@@ -9060,7 +9062,7 @@ function bg({
9060
9062
  control: a,
9061
9063
  render: ({
9062
9064
  field: f
9063
- }) => /* @__PURE__ */ i(Ln, {
9065
+ }) => /* @__PURE__ */ i(Nn, {
9064
9066
  label: "Template",
9065
9067
  py: "md",
9066
9068
  sx: {
@@ -9085,7 +9087,7 @@ const yg = {
9085
9087
  createConfig() {
9086
9088
  return {
9087
9089
  version: 1,
9088
- config: Rr
9090
+ config: Dr
9089
9091
  };
9090
9092
  },
9091
9093
  displayName: "Stats",
@@ -9093,7 +9095,7 @@ const yg = {
9093
9095
  name: "stats",
9094
9096
  viewRender: mg,
9095
9097
  configRender: bg
9096
- }, Dr = {
9098
+ }, Ir = {
9097
9099
  label_field: "",
9098
9100
  value_field: ""
9099
9101
  };
@@ -9121,12 +9123,12 @@ function Cg({
9121
9123
  } = e.viewport, {
9122
9124
  label_field: a,
9123
9125
  value_field: s
9124
- } = le({}, t, Dr), l = L(() => n.map((p) => ({
9126
+ } = le({}, t, Ir), l = L(() => n.map((p) => ({
9125
9127
  name: p[a],
9126
9128
  value: Number(p[s])
9127
9129
  })), [n, a, s]), c = L(() => {
9128
9130
  var p, f;
9129
- return (f = (p = Oo(l, (h) => h.value)) == null ? void 0 : p.value) != null ? f : 1;
9131
+ return (f = (p = zo(l, (h) => h.value)) == null ? void 0 : p.value) != null ? f : 1;
9130
9132
  }, [l]), d = L(() => ({
9131
9133
  series: {
9132
9134
  label: {
@@ -9136,7 +9138,7 @@ function Cg({
9136
9138
  }) => f / c < 0.2 ? " " : p
9137
9139
  }
9138
9140
  }
9139
- }), [c]), u = Po({}, xg, d, {
9141
+ }), [c]), u = To({}, xg, d, {
9140
9142
  series: {
9141
9143
  data: l
9142
9144
  }
@@ -9159,7 +9161,7 @@ function wg({
9159
9161
  } = U(e.instanceData, "config"), {
9160
9162
  label_field: r,
9161
9163
  value_field: o
9162
- } = le({}, t, Dr), a = e.data, s = rr({
9164
+ } = le({}, t, Ir), a = e.data, s = or({
9163
9165
  initialValues: {
9164
9166
  label_field: r,
9165
9167
  value_field: o
@@ -9216,7 +9218,7 @@ function wg({
9216
9218
  })
9217
9219
  });
9218
9220
  }
9219
- class Sg extends we {
9221
+ class Sg extends Se {
9220
9222
  constructor() {
9221
9223
  super(...arguments);
9222
9224
  F(this, "VERSION", 1);
@@ -9234,7 +9236,7 @@ const _g = {
9234
9236
  name: "sunburst",
9235
9237
  viewRender: Cg,
9236
9238
  configRender: wg,
9237
- createConfig: () => Dr
9239
+ createConfig: () => Ir
9238
9240
  };
9239
9241
  var Ke = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e))(Ke || {});
9240
9242
  const Kt = {
@@ -9353,7 +9355,7 @@ function Dg(e, t, n, r) {
9353
9355
  };
9354
9356
  return p = e._features.reduce((f, h) => Object.assign(f, h.createColumn == null ? void 0 : h.createColumn(p, e)), p), p;
9355
9357
  }
9356
- function yo(e, t, n) {
9358
+ function xo(e, t, n) {
9357
9359
  var r;
9358
9360
  let a = {
9359
9361
  id: (r = n.id) != null ? r : t.id,
@@ -9545,10 +9547,10 @@ function Ht(e, t, n, r) {
9545
9547
  if (k && S.column.parent ? z = S.column.parent : (z = S.column, N = !0), M && (M == null ? void 0 : M.column) === z)
9546
9548
  M.subHeaders.push(S);
9547
9549
  else {
9548
- const Y = yo(n, z, {
9550
+ const Y = xo(n, z, {
9549
9551
  id: [r, h, z.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
9550
9552
  isPlaceholder: N,
9551
- placeholderId: N ? "" + v.filter((pe) => pe.column === z).length : void 0,
9553
+ placeholderId: N ? "" + v.filter((fe) => fe.column === z).length : void 0,
9552
9554
  depth: h,
9553
9555
  index: v.length
9554
9556
  });
@@ -9556,7 +9558,7 @@ function Ht(e, t, n, r) {
9556
9558
  }
9557
9559
  b.headers.push(S), S.headerGroup = b;
9558
9560
  }), c.push(b), h > 0 && d(v, h - 1);
9559
- }, u = t.map((f, h) => yo(n, f, {
9561
+ }, u = t.map((f, h) => xo(n, f, {
9560
9562
  depth: s,
9561
9563
  index: h
9562
9564
  }));
@@ -9663,8 +9665,8 @@ const Wt = {
9663
9665
  var M, k;
9664
9666
  const z = b - ((M = S == null ? void 0 : S.startOffset) != null ? M : 0), N = Math.max(z / ((k = S == null ? void 0 : S.startSize) != null ? k : 0), -0.999999);
9665
9667
  return S.columnSizingStart.forEach((Y) => {
9666
- let [pe, ce] = Y;
9667
- v[pe] = Math.round(Math.max(ce + ce * N, 0) * 100) / 100;
9668
+ let [fe, ce] = Y;
9669
+ v[fe] = Math.round(Math.max(ce + ce * N, 0) * 100) / 100;
9668
9670
  }), {
9669
9671
  ...S,
9670
9672
  deltaOffset: z,
@@ -9887,12 +9889,12 @@ const Xi = (e, t, n) => e.getValue(t) === n;
9887
9889
  Xi.autoRemove = (e) => Fe(e);
9888
9890
  const Ki = (e, t, n) => e.getValue(t) == n;
9889
9891
  Ki.autoRemove = (e) => Fe(e);
9890
- const Ir = (e, t, n) => {
9892
+ const Vr = (e, t, n) => {
9891
9893
  let [r, o] = n;
9892
9894
  const a = e.getValue(t);
9893
9895
  return a >= r && a <= o;
9894
9896
  };
9895
- Ir.resolveFilterValue = (e) => {
9897
+ Vr.resolveFilterValue = (e) => {
9896
9898
  let [t, n] = e, r = typeof t != "number" ? parseFloat(t) : t, o = typeof n != "number" ? parseFloat(n) : n, a = t === null || Number.isNaN(r) ? -1 / 0 : r, s = n === null || Number.isNaN(o) ? 1 / 0 : o;
9897
9899
  if (a > s) {
9898
9900
  const l = a;
@@ -9900,7 +9902,7 @@ Ir.resolveFilterValue = (e) => {
9900
9902
  }
9901
9903
  return [a, s];
9902
9904
  };
9903
- Ir.autoRemove = (e) => Fe(e) || Fe(e[0]) && Fe(e[1]);
9905
+ Vr.autoRemove = (e) => Fe(e) || Fe(e[0]) && Fe(e[1]);
9904
9906
  const je = {
9905
9907
  includesString: Hi,
9906
9908
  includesStringSensitive: Wi,
@@ -9910,7 +9912,7 @@ const je = {
9910
9912
  arrIncludesSome: Ji,
9911
9913
  equals: Xi,
9912
9914
  weakEquals: Ki,
9913
- inNumberRange: Ir
9915
+ inNumberRange: Vr
9914
9916
  };
9915
9917
  function Fe(e) {
9916
9918
  return e == null || e === "";
@@ -9964,7 +9966,7 @@ const Fg = {
9964
9966
  setFilterValue: (n) => {
9965
9967
  t.setColumnFilters((r) => {
9966
9968
  const o = e.getFilterFn(), a = r == null ? void 0 : r.find((u) => u.id === e.id), s = Ze(n, a ? a.value : void 0);
9967
- if (xo(o, s, e)) {
9969
+ if (Co(o, s, e)) {
9968
9970
  var l;
9969
9971
  return (l = r == null ? void 0 : r.filter((u) => u.id !== e.id)) != null ? l : [];
9970
9972
  }
@@ -10009,7 +10011,7 @@ const Fg = {
10009
10011
  const l = n.find((c) => c.id === s.id);
10010
10012
  if (l) {
10011
10013
  const c = l.getFilterFn();
10012
- if (xo(c, s.value, l))
10014
+ if (Co(c, s.value, l))
10013
10015
  return !1;
10014
10016
  }
10015
10017
  return !0;
@@ -10040,7 +10042,7 @@ const Fg = {
10040
10042
  }
10041
10043
  })
10042
10044
  };
10043
- function xo(e, t, n) {
10045
+ function Co(e, t, n) {
10044
10046
  return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || typeof t > "u" || typeof t == "string" && !t;
10045
10047
  }
10046
10048
  const $g = (e, t, n) => n.reduce((r, o) => {
@@ -10200,9 +10202,9 @@ const Gg = {
10200
10202
  key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
10201
10203
  })
10202
10204
  })
10203
- }, Gn = 0, Bn = 10, An = () => ({
10204
- pageIndex: Gn,
10205
- pageSize: Bn
10205
+ }, Bn = 0, Hn = 10, An = () => ({
10206
+ pageIndex: Bn,
10207
+ pageSize: Hn
10206
10208
  }), Bg = {
10207
10209
  getInitialState: (e) => ({
10208
10210
  ...e,
@@ -10253,11 +10255,11 @@ const Gg = {
10253
10255
  },
10254
10256
  resetPageIndex: (r) => {
10255
10257
  var o, a, s;
10256
- e.setPageIndex(r ? Gn : (o = (a = e.initialState) == null || (s = a.pagination) == null ? void 0 : s.pageIndex) != null ? o : Gn);
10258
+ e.setPageIndex(r ? Bn : (o = (a = e.initialState) == null || (s = a.pagination) == null ? void 0 : s.pageIndex) != null ? o : Bn);
10257
10259
  },
10258
10260
  resetPageSize: (r) => {
10259
10261
  var o, a, s;
10260
- e.setPageSize(r ? Bn : (o = (a = e.initialState) == null || (s = a.pagination) == null ? void 0 : s.pageSize) != null ? o : Bn);
10262
+ e.setPageSize(r ? Hn : (o = (a = e.initialState) == null || (s = a.pagination) == null ? void 0 : s.pageSize) != null ? o : Hn);
10261
10263
  },
10262
10264
  setPageSize: (r) => {
10263
10265
  e.setPagination((o) => {
@@ -10464,7 +10466,7 @@ const Gg = {
10464
10466
  ...n
10465
10467
  };
10466
10468
  return e.getRowModel().rows.forEach((a) => {
10467
- Hn(o, a.id, r, e);
10469
+ Wn(o, a.id, r, e);
10468
10470
  }), o;
10469
10471
  }),
10470
10472
  getPreSelectedRowModel: () => e.getCoreRowModel(),
@@ -10540,26 +10542,26 @@ const Gg = {
10540
10542
  const a = {
10541
10543
  ...o
10542
10544
  };
10543
- return Hn(a, e.id, n, t), a;
10545
+ return Wn(a, e.id, n, t), a;
10544
10546
  });
10545
10547
  },
10546
10548
  getIsSelected: () => {
10547
10549
  const {
10548
10550
  rowSelection: n
10549
10551
  } = t.getState();
10550
- return Vr(e, n);
10552
+ return Mr(e, n);
10551
10553
  },
10552
10554
  getIsSomeSelected: () => {
10553
10555
  const {
10554
10556
  rowSelection: n
10555
10557
  } = t.getState();
10556
- return Co(e, n) === "some";
10558
+ return wo(e, n) === "some";
10557
10559
  },
10558
10560
  getIsAllSubRowsSelected: () => {
10559
10561
  const {
10560
10562
  rowSelection: n
10561
10563
  } = t.getState();
10562
- return Co(e, n) === "all";
10564
+ return wo(e, n) === "all";
10563
10565
  },
10564
10566
  getCanSelect: () => {
10565
10567
  var n;
@@ -10581,16 +10583,16 @@ const Gg = {
10581
10583
  };
10582
10584
  }
10583
10585
  })
10584
- }, Hn = (e, t, n, r) => {
10586
+ }, Wn = (e, t, n, r) => {
10585
10587
  var o;
10586
10588
  const a = r.getRow(t);
10587
- n ? (a.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), a.getCanSelect() && (e[t] = !0)) : delete e[t], (o = a.subRows) != null && o.length && a.getCanSelectSubRows() && a.subRows.forEach((s) => Hn(e, s.id, n, r));
10589
+ n ? (a.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), a.getCanSelect() && (e[t] = !0)) : delete e[t], (o = a.subRows) != null && o.length && a.getCanSelectSubRows() && a.subRows.forEach((s) => Wn(e, s.id, n, r));
10588
10590
  };
10589
10591
  function zn(e, t) {
10590
10592
  const n = e.getState().rowSelection, r = [], o = {}, a = function(s, l) {
10591
10593
  return s.map((c) => {
10592
10594
  var d;
10593
- const u = Vr(c, n);
10595
+ const u = Mr(c, n);
10594
10596
  if (u && (r.push(c), o[c.id] = c), (d = c.subRows) != null && d.length && (c = {
10595
10597
  ...c,
10596
10598
  subRows: a(c.subRows)
@@ -10604,31 +10606,31 @@ function zn(e, t) {
10604
10606
  rowsById: o
10605
10607
  };
10606
10608
  }
10607
- function Vr(e, t) {
10609
+ function Mr(e, t) {
10608
10610
  var n;
10609
10611
  return (n = t[e.id]) != null ? n : !1;
10610
10612
  }
10611
- function Co(e, t, n) {
10613
+ function wo(e, t, n) {
10612
10614
  if (e.subRows && e.subRows.length) {
10613
10615
  let r = !0, o = !1;
10614
10616
  return e.subRows.forEach((a) => {
10615
- o && !r || (Vr(a, t) ? o = !0 : r = !1);
10617
+ o && !r || (Mr(a, t) ? o = !0 : r = !1);
10616
10618
  }), r ? "all" : o ? "some" : !1;
10617
10619
  }
10618
10620
  return !1;
10619
10621
  }
10620
- const Wn = /([0-9]+)/gm, Ug = (e, t, n) => Zi(ot(e.getValue(n)).toLowerCase(), ot(t.getValue(n)).toLowerCase()), Yg = (e, t, n) => Zi(ot(e.getValue(n)), ot(t.getValue(n))), Qg = (e, t, n) => Mr(ot(e.getValue(n)).toLowerCase(), ot(t.getValue(n)).toLowerCase()), Jg = (e, t, n) => Mr(ot(e.getValue(n)), ot(t.getValue(n))), Xg = (e, t, n) => {
10622
+ const Un = /([0-9]+)/gm, Ug = (e, t, n) => Zi(ot(e.getValue(n)).toLowerCase(), ot(t.getValue(n)).toLowerCase()), Yg = (e, t, n) => Zi(ot(e.getValue(n)), ot(t.getValue(n))), Qg = (e, t, n) => kr(ot(e.getValue(n)).toLowerCase(), ot(t.getValue(n)).toLowerCase()), Jg = (e, t, n) => kr(ot(e.getValue(n)), ot(t.getValue(n))), Xg = (e, t, n) => {
10621
10623
  const r = e.getValue(n), o = t.getValue(n);
10622
10624
  return r > o ? 1 : r < o ? -1 : 0;
10623
- }, Kg = (e, t, n) => Mr(e.getValue(n), t.getValue(n));
10624
- function Mr(e, t) {
10625
+ }, Kg = (e, t, n) => kr(e.getValue(n), t.getValue(n));
10626
+ function kr(e, t) {
10625
10627
  return e === t ? 0 : e > t ? 1 : -1;
10626
10628
  }
10627
10629
  function ot(e) {
10628
10630
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
10629
10631
  }
10630
10632
  function Zi(e, t) {
10631
- const n = e.split(Wn).filter(Boolean), r = t.split(Wn).filter(Boolean);
10633
+ const n = e.split(Un).filter(Boolean), r = t.split(Un).filter(Boolean);
10632
10634
  for (; n.length && r.length; ) {
10633
10635
  const o = n.shift(), a = r.shift(), s = parseInt(o, 10), l = parseInt(a, 10), c = [s, l].sort();
10634
10636
  if (isNaN(c[0])) {
@@ -10674,7 +10676,7 @@ const _t = {
10674
10676
  const a = o == null ? void 0 : o.getValue(e.id);
10675
10677
  if (Object.prototype.toString.call(a) === "[object Date]")
10676
10678
  return _t.datetime;
10677
- if (typeof a == "string" && (r = !0, a.split(Wn).length > 1))
10679
+ if (typeof a == "string" && (r = !0, a.split(Un).length > 1))
10678
10680
  return _t.alphanumeric;
10679
10681
  }
10680
10682
  return r ? _t.text : _t.basic;
@@ -10833,12 +10835,12 @@ const _t = {
10833
10835
  }
10834
10836
  };
10835
10837
  }
10836
- }, wo = [Ig, ep, Gg, Hg, Fg, Zg, qg, kg, Bg, Wg, Vg];
10838
+ }, So = [Ig, ep, Gg, Hg, Fg, Zg, qg, kg, Bg, Wg, Vg];
10837
10839
  function tp(e) {
10838
10840
  var t;
10839
10841
  (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
10840
10842
  let n = {
10841
- _features: wo
10843
+ _features: So
10842
10844
  };
10843
10845
  const r = n._features.reduce((u, p) => Object.assign(u, p.getDefaultOptions == null ? void 0 : p.getDefaultOptions(n)), {}), o = (u) => n.options.mergeOptions ? n.options.mergeOptions(r, u) : {
10844
10846
  ...r,
@@ -10855,7 +10857,7 @@ function tp(e) {
10855
10857
  const l = [];
10856
10858
  let c = !1;
10857
10859
  const d = {
10858
- _features: wo,
10860
+ _features: So,
10859
10861
  options: {
10860
10862
  ...r,
10861
10863
  ...e
@@ -11146,9 +11148,9 @@ function up(e) {
11146
11148
  },
11147
11149
  renderFallbackValue: null,
11148
11150
  ...e
11149
- }, [n] = ao.useState(() => ({
11151
+ }, [n] = so.useState(() => ({
11150
11152
  current: tp(t)
11151
- })), [r, o] = ao.useState(() => n.current.initialState);
11153
+ })), [r, o] = so.useState(() => n.current.initialState);
11152
11154
  return n.current.setOptions((a) => ({
11153
11155
  ...a,
11154
11156
  ...e,
@@ -11165,15 +11167,15 @@ const dp = ({
11165
11167
  vizManager: e,
11166
11168
  instance: t
11167
11169
  }) => Be(
11168
- () => new Er(t, e.resolveComponent(t.type), vn),
11170
+ () => new Ar(t, e.resolveComponent(t.type), vn),
11169
11171
  [t, e]
11170
11172
  ), gp = (e, t) => {
11171
- const [n, r] = me([]);
11173
+ const [n, r] = he([]);
11172
11174
  return Z(() => e.watchTriggerSnapshotList(
11173
11175
  (o) => r(o.filter((a) => a.schemaRef === t))
11174
11176
  ), []), n;
11175
11177
  };
11176
- function So(e, t, n) {
11178
+ function _o(e, t, n) {
11177
11179
  return Math.min(Math.max(e, t), n);
11178
11180
  }
11179
11181
  class pp {
@@ -11192,10 +11194,10 @@ class pp {
11192
11194
  }
11193
11195
  getStepFunctionForValue(t) {
11194
11196
  let n = ps(this.steps, (r) => r.from <= t);
11195
- return n = So(n, 0, this.steps.length - 2), this.getLinearFunction(this.steps[n], this.steps[n + 1]);
11197
+ return n = _o(n, 0, this.steps.length - 2), this.getLinearFunction(this.steps[n], this.steps[n + 1]);
11196
11198
  }
11197
11199
  mapValue(t) {
11198
- return So(this.getStepFunctionForValue(t)(t), 0, 100);
11200
+ return _o(this.getStepFunctionForValue(t)(t), 0, 100);
11199
11201
  }
11200
11202
  }
11201
11203
  const fp = ({
@@ -11224,7 +11226,7 @@ const fp = ({
11224
11226
  default:
11225
11227
  return null;
11226
11228
  }
11227
- }, kr = {
11229
+ }, Fr = {
11228
11230
  id: "builtin:table:click-cell-content",
11229
11231
  displayName: "Click Cell Content",
11230
11232
  nameRender: xp,
@@ -11255,7 +11257,7 @@ function ta(e) {
11255
11257
  })) : [];
11256
11258
  }
11257
11259
  function vp(e) {
11258
- return To(e) ? [] : Object.keys(e[0]).map((t) => ({
11260
+ return Lo(e) ? [] : Object.keys(e[0]).map((t) => ({
11259
11261
  label: t,
11260
11262
  value: t
11261
11263
  }));
@@ -11292,7 +11294,7 @@ function xp(e) {
11292
11294
  children: yp(n, t)
11293
11295
  });
11294
11296
  }
11295
- const Cp = Kn((e) => ({
11297
+ const Cp = Zn((e) => ({
11296
11298
  root: {
11297
11299
  overflow: "auto",
11298
11300
  "& .table-head-cell": {
@@ -11317,7 +11319,7 @@ const Cp = Kn((e) => ({
11317
11319
  position: "sticky",
11318
11320
  top: 0
11319
11321
  }
11320
- })), wp = Kn((e, t) => ({
11322
+ })), wp = Zn((e, t) => ({
11321
11323
  content: {
11322
11324
  display: "flex",
11323
11325
  alignItems: "center",
@@ -11410,7 +11412,7 @@ function Mp(e) {
11410
11412
  }
11411
11413
  }
11412
11414
  const kp = (e) => {
11413
- const t = dp(e), n = gp(t.triggerManager, kr.id), {
11415
+ const t = dp(e), n = gp(t.triggerManager, Fr.id), {
11414
11416
  colorManager: r
11415
11417
  } = He(Ne);
11416
11418
  return Mt((o) => new $p(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
@@ -11419,8 +11421,8 @@ function Fp({
11419
11421
  context: e,
11420
11422
  instance: t
11421
11423
  }) {
11422
- var Se, ve, Me;
11423
- const n = (Se = e.data) != null ? Se : [], {
11424
+ var _e, be, Me;
11425
+ const n = (_e = e.data) != null ? _e : [], {
11424
11426
  height: r,
11425
11427
  width: o
11426
11428
  } = e.viewport, {
@@ -11441,23 +11443,23 @@ function Fp({
11441
11443
  vizManager: e.vizManager,
11442
11444
  instance: t
11443
11445
  }), h = L(() => {
11444
- const ue = op(), ke = p.map((ye) => ue.accessor(ye.value_field, {
11446
+ const ue = op(), ke = p.map((xe) => ue.accessor(xe.value_field, {
11445
11447
  cell: (Ye) => /* @__PURE__ */ i(Mp, {
11446
11448
  tableCellContext: f(Ye.cell),
11447
11449
  value: Ye.getValue(),
11448
- type: ye.value_type
11450
+ type: xe.value_type
11449
11451
  }),
11450
- header: ye.label,
11452
+ header: xe.label,
11451
11453
  enableSorting: !0,
11452
- meta: ye
11454
+ meta: xe
11453
11455
  }));
11454
11456
  return [ue.display({
11455
11457
  id: "#index",
11456
- cell: (ye) => ye.row.index + 1,
11458
+ cell: (xe) => xe.row.index + 1,
11457
11459
  header: "#",
11458
11460
  size: 10 * (n.length.toString().length + 1)
11459
11461
  }), ...ke];
11460
- }, [p, f]), [b, v] = me([]), S = up({
11462
+ }, [p, f]), [b, v] = he([]), S = up({
11461
11463
  data: n,
11462
11464
  state: {
11463
11465
  sorting: b
@@ -11476,7 +11478,7 @@ function Fp({
11476
11478
  }), {
11477
11479
  virtualItems: N,
11478
11480
  totalSize: Y
11479
- } = z, pe = N.length > 0 && ((ve = N == null ? void 0 : N[0]) == null ? void 0 : ve.start) || 0, ce = N.length > 0 ? Y - (((Me = N == null ? void 0 : N[N.length - 1]) == null ? void 0 : Me.end) || 0) : 0;
11481
+ } = z, fe = N.length > 0 && ((be = N == null ? void 0 : N[0]) == null ? void 0 : be.start) || 0, ce = N.length > 0 ? Y - (((Me = N == null ? void 0 : N[N.length - 1]) == null ? void 0 : Me.end) || 0) : 0;
11480
11482
  return /* @__PURE__ */ i("div", {
11481
11483
  ref: k,
11482
11484
  style: {
@@ -11486,7 +11488,7 @@ function Fp({
11486
11488
  className: u(d.root, {
11487
11489
  "table-highlight-on-hover": a.highlightOnHover
11488
11490
  }),
11489
- children: /* @__PURE__ */ g(Xn, {
11491
+ children: /* @__PURE__ */ g(Kn, {
11490
11492
  sx: {
11491
11493
  maxHeight: r
11492
11494
  },
@@ -11506,18 +11508,18 @@ function Fp({
11506
11508
  }, ke.id))
11507
11509
  }, ue.id))
11508
11510
  }), /* @__PURE__ */ g("tbody", {
11509
- children: [pe > 0 && /* @__PURE__ */ i("tr", {
11511
+ children: [fe > 0 && /* @__PURE__ */ i("tr", {
11510
11512
  children: /* @__PURE__ */ i("td", {
11511
11513
  style: {
11512
- height: `${pe}px`
11514
+ height: `${fe}px`
11513
11515
  }
11514
11516
  })
11515
11517
  }), N.map((ue) => {
11516
11518
  const ke = M[ue.index];
11517
11519
  return /* @__PURE__ */ i("tr", {
11518
- children: ke.getVisibleCells().map((be) => /* @__PURE__ */ i("td", {
11519
- children: ea(be.column.columnDef.cell, be.getContext())
11520
- }, be.id))
11520
+ children: ke.getVisibleCells().map((ye) => /* @__PURE__ */ i("td", {
11521
+ children: ea(ye.column.columnDef.cell, ye.getContext())
11522
+ }, ye.id))
11521
11523
  }, ke.id);
11522
11524
  }), ce > 0 && /* @__PURE__ */ i("tr", {
11523
11525
  children: /* @__PURE__ */ i("td", {
@@ -11548,7 +11550,7 @@ class $p {
11548
11550
  };
11549
11551
  }
11550
11552
  getRelatedTrigger() {
11551
- return this.triggers.filter((n) => n.schemaRef === kr.id).filter((n) => {
11553
+ return this.triggers.filter((n) => n.schemaRef === Fr.id).filter((n) => {
11552
11554
  const r = this.getColIndex(this.cell), o = Q(this.cell.column.columnDef.meta, "value_field"), a = Q(n.config, "column");
11553
11555
  return a == r || a == o;
11554
11556
  });
@@ -11563,7 +11565,7 @@ class $p {
11563
11565
  const t = this.columnConf.cellBackgroundColor;
11564
11566
  if (!t || t === "none")
11565
11567
  return;
11566
- if (Lo(t))
11568
+ if (No(t))
11567
11569
  return t;
11568
11570
  const n = +this.cell.getValue();
11569
11571
  if (isFinite(n)) {
@@ -11572,7 +11574,7 @@ class $p {
11572
11574
  }
11573
11575
  }
11574
11576
  }
11575
- const na = Kn(() => ({
11577
+ const na = Zn(() => ({
11576
11578
  palette: {
11577
11579
  display: "flex",
11578
11580
  flexFlow: "row nowrap"
@@ -11607,11 +11609,11 @@ class Ap {
11607
11609
  F(this, "steps", /* @__PURE__ */ new Map());
11608
11610
  F(this, "interpolation");
11609
11611
  F(this, "onChange");
11610
- tr(this, {
11611
- steps: Xo
11612
+ nr(this, {
11613
+ steps: Ko
11612
11614
  }, {
11613
11615
  deep: !1
11614
- }), nr(() => an(this.steps), () => {
11616
+ }), rr(() => an(this.steps), () => {
11615
11617
  this.notifyStepChange();
11616
11618
  });
11617
11619
  }
@@ -11644,7 +11646,7 @@ function Op(e) {
11644
11646
  value: o
11645
11647
  } = e, {
11646
11648
  classes: a
11647
- } = na(), [s, l] = me(o), [c, {
11649
+ } = na(), [s, l] = he(o), [c, {
11648
11650
  setTrue: d,
11649
11651
  setFalse: u
11650
11652
  }] = $t(!1), p = r % 2 === 1, f = p && o != null, h = !p && o != null, b = `map ${o} to color ${r}`, v = () => {
@@ -11743,7 +11745,7 @@ const zp = I(({
11743
11745
  value: t,
11744
11746
  onChange: n,
11745
11747
  colorManager: r
11746
- } = e, o = r.getColorInterpolations(), [a, s] = me(t), l = r.decodeInterpolation(a.interpolation) || o[0], [c, {
11748
+ } = e, o = r.getColorInterpolations(), [a, s] = he(t), l = r.decodeInterpolation(a.interpolation) || o[0], [c, {
11747
11749
  setTrue: d,
11748
11750
  setFalse: u
11749
11751
  }] = $t(), p = o.map((S) => ({
@@ -11812,14 +11814,14 @@ const zp = I(({
11812
11814
  to: 100
11813
11815
  }];
11814
11816
  function ra(e) {
11815
- return e ? Lo(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
11817
+ return e ? No(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
11816
11818
  }
11817
11819
  function qp(e, t) {
11818
11820
  var n;
11819
11821
  return ra(t) === "static" ? t : (n = e.getStaticColors()[0]) == null ? void 0 : n.value;
11820
11822
  }
11821
11823
  function jp(e, t) {
11822
- return Eo(t) ? t : {
11824
+ return Ao(t) ? t : {
11823
11825
  steps: Np,
11824
11826
  interpolation: e.encodeColor(e.getColorInterpolations()[0])
11825
11827
  };
@@ -11827,7 +11829,7 @@ function jp(e, t) {
11827
11829
  const Gp = (e) => {
11828
11830
  const {
11829
11831
  colorManager: t
11830
- } = He(Ne), [n, r] = me(ra(e.value)), [o, a] = me(qp(t, e.value)), s = io(o), [l, c] = me(jp(t, e.value)), d = io(l);
11832
+ } = He(Ne), [n, r] = he(ra(e.value)), [o, a] = he(qp(t, e.value)), s = ao(o), [l, c] = he(jp(t, e.value)), d = ao(l);
11831
11833
  return /* @__PURE__ */ g(y, {
11832
11834
  align: "end",
11833
11835
  children: [/* @__PURE__ */ i(T, {
@@ -11877,7 +11879,7 @@ function Wp({
11877
11879
  const {
11878
11880
  value: t,
11879
11881
  set: n
11880
- } = U(e.instanceData, "config"), r = rr({
11882
+ } = U(e.instanceData, "config"), r = or({
11881
11883
  initialValues: Kt
11882
11884
  });
11883
11885
  Z(() => {
@@ -12078,7 +12080,7 @@ function Wp({
12078
12080
  })
12079
12081
  });
12080
12082
  }
12081
- class Up extends we {
12083
+ class Up extends Se {
12082
12084
  constructor() {
12083
12085
  super(...arguments);
12084
12086
  F(this, "VERSION", 1);
@@ -12090,11 +12092,11 @@ class Up extends we {
12090
12092
  }));
12091
12093
  }
12092
12094
  }
12093
- const Un = {
12095
+ const Yn = {
12094
12096
  createConfig() {
12095
12097
  return {
12096
12098
  version: 1,
12097
- config: zo(Kt)
12099
+ config: Po(Kt)
12098
12100
  };
12099
12101
  },
12100
12102
  displayName: "Table",
@@ -12102,7 +12104,7 @@ const Un = {
12102
12104
  name: "table",
12103
12105
  viewRender: Fp,
12104
12106
  configRender: Wp,
12105
- triggers: [kr]
12107
+ triggers: [Fr]
12106
12108
  };
12107
12109
  async function Yp(e, t, n, r = {}) {
12108
12110
  const o = {
@@ -12116,11 +12118,11 @@ async function Yp(e, t, n, r = {}) {
12116
12118
  params: r.params,
12117
12119
  headers: o
12118
12120
  };
12119
- return a.data = r.string ? JSON.stringify(n) : n, Wo(a).then((s) => s.data).catch((s) => Promise.reject(s));
12121
+ return a.data = r.string ? JSON.stringify(n) : n, Uo(a).then((s) => s.data).catch((s) => Promise.reject(s));
12120
12122
  }
12121
12123
  const Qp = ({ baseURL: e, payload: t }) => async () => e ? await Yp(e, "/expert/v2/scenario", t, {}) : {};
12122
12124
  var Oe = /* @__PURE__ */ ((e) => (e.dev_load = "dev_load", e.personal_report = "personal_report", e.performance = "performance", e.comparison = "comparison", e))(Oe || {}), ee = /* @__PURE__ */ ((e) => (e.productivity = "productivity", e.pareto = "pareto", e.heatmap = "heatmap", e.skills = "skills", e.commits = "commits", e.quality = "quality", e.quality_history = "quality_history", e.efficiency = "efficiency", e))(ee || {});
12123
- const Fr = {
12125
+ const $r = {
12124
12126
  expertSystemURL: "",
12125
12127
  scenario: "performance",
12126
12128
  metric_set: "quality"
@@ -12423,7 +12425,7 @@ function vf({
12423
12425
  var d, u, p;
12424
12426
  const {
12425
12427
  value: t
12426
- } = U(e.instanceData, "config"), n = L(() => We({}, t, Fr), [t]), {
12428
+ } = U(e.instanceData, "config"), n = L(() => We({}, t, $r), [t]), {
12427
12429
  width: r,
12428
12430
  height: o
12429
12431
  } = e.viewport, a = (d = e.data) != null ? d : [], {
@@ -12694,7 +12696,7 @@ function If({
12694
12696
  const {
12695
12697
  value: t,
12696
12698
  set: n
12697
- } = U(e.instanceData, "config"), r = L(() => We({}, t, Fr), [t]), o = (a, s) => {
12699
+ } = U(e.instanceData, "config"), r = L(() => We({}, t, $r), [t]), o = (a, s) => {
12698
12700
  n({
12699
12701
  ...r,
12700
12702
  [a]: s
@@ -12723,7 +12725,7 @@ function If({
12723
12725
  })]
12724
12726
  });
12725
12727
  }
12726
- class Vf extends we {
12728
+ class Vf extends Se {
12727
12729
  constructor() {
12728
12730
  super(...arguments);
12729
12731
  F(this, "VERSION", 1);
@@ -12741,7 +12743,7 @@ const Mf = {
12741
12743
  name: "expertSystem",
12742
12744
  viewRender: vf,
12743
12745
  configRender: If,
12744
- createConfig: () => Fr
12746
+ createConfig: () => $r
12745
12747
  }, kf = [{
12746
12748
  value: "#25262B",
12747
12749
  name: "Dark"
@@ -12793,7 +12795,7 @@ const Mf = {
12793
12795
  id: "dashboard",
12794
12796
  version: $c,
12795
12797
  manifest: {
12796
- viz: [Un, yg, gg, _g, Nd, Nc, Au, Od, Md, Xd, lg, Mf],
12798
+ viz: [Yn, yg, gg, _g, Nd, Nc, Au, Od, Md, Xd, lg, Mf],
12797
12799
  color: [...kf, ...Ff]
12798
12800
  }
12799
12801
  }), Rt = new Ac(), de = {
@@ -12807,7 +12809,7 @@ const Mf = {
12807
12809
  operationManager: Qe("operationManager"),
12808
12810
  triggerManager: Qe("triggerManager")
12809
12811
  }
12810
- }, $r = () => {
12812
+ }, Er = () => {
12811
12813
  try {
12812
12814
  Rt.install(ia());
12813
12815
  } catch {
@@ -12818,7 +12820,7 @@ const Mf = {
12818
12820
  vizManager: e,
12819
12821
  colorManager: t
12820
12822
  };
12821
- }, Ne = Fo($r());
12823
+ }, Ne = $o(Er());
12822
12824
  try {
12823
12825
  Rt.install(ia());
12824
12826
  } catch {
@@ -12827,7 +12829,7 @@ function $f(e, t) {
12827
12829
  const {
12828
12830
  value: n,
12829
12831
  set: r
12830
- } = U(e.operation.operationData, "config"), [o, a] = me(le({}, n, t)), s = async () => {
12832
+ } = U(e.operation.operationData, "config"), [o, a] = he(le({}, n, t)), s = async () => {
12831
12833
  await r(o);
12832
12834
  };
12833
12835
  return Z(() => {
@@ -12883,10 +12885,10 @@ async function Of(e, t) {
12883
12885
  const {
12884
12886
  urlTemplate: n,
12885
12887
  openInNewTab: r
12886
- } = await t.operationData.getItem("config"), a = No(n || "")(Af(e));
12888
+ } = await t.operationData.getItem("config"), a = qo(n || "")(Af(e));
12887
12889
  window.open(a, r ? "_blank" : "_self", "noopener");
12888
12890
  }
12889
- class zf extends we {
12891
+ class zf extends Se {
12890
12892
  constructor() {
12891
12893
  super(...arguments);
12892
12894
  F(this, "VERSION", 1);
@@ -12927,7 +12929,7 @@ function Lf(e) {
12927
12929
  });
12928
12930
  }
12929
12931
  async function Nf(e, t) {
12930
- const n = await t.operationData.getItem("config"), r = No(n.template || "");
12932
+ const n = await t.operationData.getItem("config"), r = qo(n.template || "");
12931
12933
  console.log("run with payload", e), console.log(r(e));
12932
12934
  }
12933
12935
  const qf = {
@@ -13040,7 +13042,7 @@ class Qf {
13040
13042
  operationData: new pt(o, "data")
13041
13043
  };
13042
13044
  };
13043
- this.attachments = new ur(t, "__OPERATIONS", r);
13045
+ this.attachments = new dr(t, "__OPERATIONS", r);
13044
13046
  }
13045
13047
  async runOperation(t, n) {
13046
13048
  const r = await this.attachments.getInstance(t);
@@ -13100,7 +13102,7 @@ class Qf {
13100
13102
  return await this.attachments.getInstance(t);
13101
13103
  }
13102
13104
  }
13103
- const _o = "__TRIGGERS";
13105
+ const Ro = "__TRIGGERS";
13104
13106
  class Jf {
13105
13107
  constructor(t, n) {
13106
13108
  F(this, "attachments");
@@ -13113,13 +13115,13 @@ class Jf {
13113
13115
  triggerData: new pt(o, "data")
13114
13116
  };
13115
13117
  };
13116
- this.attachments = new ur(t, _o, r);
13118
+ this.attachments = new dr(t, Ro, r);
13117
13119
  }
13118
13120
  watchTriggerSnapshotList(t) {
13119
13121
  return this.instance.instanceData.watchItem(
13120
- _o,
13122
+ Ro,
13121
13123
  (n) => {
13122
- const r = $o(n).map(
13124
+ const r = Eo(n).map(
13123
13125
  (o) => ({
13124
13126
  id: Q(o, "id"),
13125
13127
  schemaRef: Q(o, "schemaRef"),
@@ -13171,7 +13173,7 @@ class Jf {
13171
13173
  await Promise.all(t.map((n) => n()));
13172
13174
  }
13173
13175
  }
13174
- class Er {
13176
+ class Ar {
13175
13177
  constructor(t, n, r) {
13176
13178
  F(this, "operationManager");
13177
13179
  F(this, "triggerManager");
@@ -13185,7 +13187,7 @@ class Er {
13185
13187
  operationRef: c
13186
13188
  };
13187
13189
  };
13188
- this.attachments = new ur(t, "__INTERACTIONS", o);
13190
+ this.attachments = new dr(t, "__INTERACTIONS", o);
13189
13191
  }
13190
13192
  async addInteraction(t, n) {
13191
13193
  const r = t.id, o = n.id, a = `[${r}]:[${o}]`;
@@ -13225,7 +13227,7 @@ class Er {
13225
13227
  }
13226
13228
  }
13227
13229
  function Xf(e, t) {
13228
- const [n, r] = me([]);
13230
+ const [n, r] = he([]);
13229
13231
  return Et(async () => {
13230
13232
  const o = await e.getInteractionList();
13231
13233
  r(o);
@@ -13266,7 +13268,7 @@ const Kf = I(({
13266
13268
  }
13267
13269
  return null;
13268
13270
  }), Zf = (e) => {
13269
- const [t, n] = me(0), {
13271
+ const [t, n] = he(0), {
13270
13272
  interactionManager: r,
13271
13273
  instance: o,
13272
13274
  sampleData: a,
@@ -13298,9 +13300,9 @@ const Kf = I(({
13298
13300
  const {
13299
13301
  panel: e,
13300
13302
  data: t
13301
- } = he(), n = e.viz, {
13303
+ } = ve(), n = e.viz, {
13302
13304
  vizManager: r
13303
- } = He(Ne), o = e.json, a = Be(() => r.getOrCreateInstance(o), [r, n.type]), s = Be(() => new Er(a, r.resolveComponent(n.type), vn), [a, n.type]);
13305
+ } = He(Ne), o = e.json, a = Be(() => r.getOrCreateInstance(o), [r, n.type]), s = Be(() => new Ar(a, r.resolveComponent(n.type), vn), [a, n.type]);
13304
13306
  return Z(() => a.instanceData.watchItem(
13305
13307
  null,
13306
13308
  vs((l) => {
@@ -13324,7 +13326,7 @@ const Kf = I(({
13324
13326
  }, nm = I(() => {
13325
13327
  const {
13326
13328
  panel: e
13327
- } = he(), [t, n] = w.useState(e.description), r = e.description !== t, o = w.useCallback(() => {
13329
+ } = ve(), [t, n] = w.useState(e.description), r = e.description !== t, o = w.useCallback(() => {
13328
13330
  !r || e.setDescription(t);
13329
13331
  }, [r, t]);
13330
13332
  return /* @__PURE__ */ g(R, {
@@ -13348,7 +13350,7 @@ const Kf = I(({
13348
13350
  size: 20
13349
13351
  })
13350
13352
  })]
13351
- }), /* @__PURE__ */ i(Jo, {
13353
+ }), /* @__PURE__ */ i(Xo, {
13352
13354
  value: t,
13353
13355
  onChange: n,
13354
13356
  sx: {
@@ -13361,7 +13363,7 @@ const Kf = I(({
13361
13363
  }), rm = I(() => {
13362
13364
  const {
13363
13365
  panel: e
13364
- } = he(), {
13366
+ } = ve(), {
13365
13367
  style: t
13366
13368
  } = e;
13367
13369
  return /* @__PURE__ */ i(re, {
@@ -13379,7 +13381,7 @@ const Kf = I(({
13379
13381
  border: t
13380
13382
  }
13381
13383
  }
13382
- } = he();
13384
+ } = ve();
13383
13385
  return /* @__PURE__ */ i(ft, {
13384
13386
  children: /* @__PURE__ */ g(R, {
13385
13387
  mx: "auto",
@@ -13429,10 +13431,10 @@ const Kf = I(({
13429
13431
  }), im = I(() => {
13430
13432
  const {
13431
13433
  panel: e
13432
- } = he(), {
13434
+ } = ve(), {
13433
13435
  title: t,
13434
13436
  setTitle: n
13435
- } = e, [r, o] = Yo(t), a = t !== r, s = w.useCallback(() => {
13437
+ } = e, [r, o] = Qo(t), a = t !== r, s = w.useCallback(() => {
13436
13438
  !a || n(r);
13437
13439
  }, [a, r]);
13438
13440
  return /* @__PURE__ */ i(E, {
@@ -13503,7 +13505,7 @@ const sm = I(function() {
13503
13505
  queryID: n,
13504
13506
  setQueryID: r
13505
13507
  }
13506
- } = he(), o = w.useMemo(() => t.queries.current.map((a) => ({
13508
+ } = ve(), o = w.useMemo(() => t.queries.current.map((a) => ({
13507
13509
  value: a.id,
13508
13510
  label: a.id
13509
13511
  })), [t.queries.current]);
@@ -13526,7 +13528,7 @@ const sm = I(function() {
13526
13528
  flexGrow: 1
13527
13529
  }
13528
13530
  })]
13529
- }), /* @__PURE__ */ i(fi, {
13531
+ }), /* @__PURE__ */ i(mi, {
13530
13532
  id: n
13531
13533
  })]
13532
13534
  });
@@ -13581,14 +13583,14 @@ function sa(e) {
13581
13583
  const n = t.getRequired(de.vizManager), r = n.resolveComponent(e.viz.type);
13582
13584
  return t.createScoped().provideFactory(de.instanceScope.vizInstance, () => n.getOrCreateInstance(e)).provideFactory(de.instanceScope.interactionManager, (o) => {
13583
13585
  const a = o.getRequired(de.instanceScope.vizInstance);
13584
- return new Er(a, r, vn);
13586
+ return new Ar(a, r, vn);
13585
13587
  }).provideFactory(de.instanceScope.operationManager, (o) => o.getRequired(de.instanceScope.interactionManager).operationManager).provideFactory(de.instanceScope.triggerManager, (o) => o.getRequired(de.instanceScope.interactionManager).triggerManager).provideFactory(de.instanceScope.migrator, (o) => new lm(o));
13586
13588
  },
13587
13589
  [e.viz.type, e.viz.conf]
13588
13590
  );
13589
13591
  }
13590
13592
  function la(e) {
13591
- const [t, n] = me(!1), r = ai().getRequired(de.instanceScope.migrator);
13593
+ const [t, n] = he(!1), r = si().getRequired(de.instanceScope.migrator);
13592
13594
  return Et(async () => {
13593
13595
  const o = r.status === Yt.notStarted;
13594
13596
  n(r.status === Yt.done), r.status === Yt.notStarted && r.runMigration().then((a) => {
@@ -13599,7 +13601,7 @@ function la(e) {
13599
13601
  }, [r]), t;
13600
13602
  }
13601
13603
  function ca(e, t) {
13602
- const n = ai().getRequired(de.instanceScope.vizInstance);
13604
+ const n = si().getRequired(de.instanceScope.vizInstance);
13603
13605
  return Z(() => n.instanceData.watchItem(null, (r) => {
13604
13606
  e(r);
13605
13607
  }), [e, t.viz.type]), n;
@@ -13652,7 +13654,7 @@ function dm(e, t) {
13652
13654
  queryID: l,
13653
13655
  style: c
13654
13656
  }
13655
- } = he(), d = {
13657
+ } = ve(), d = {
13656
13658
  title: o,
13657
13659
  id: a,
13658
13660
  description: s,
@@ -13738,14 +13740,14 @@ const gm = ["richText"], ua = I(function({
13738
13740
  panel: {
13739
13741
  viz: n
13740
13742
  }
13741
- } = he();
13743
+ } = ve();
13742
13744
  return /* @__PURE__ */ i(ua, {
13743
13745
  viz: n,
13744
13746
  data: e,
13745
13747
  loading: t,
13746
13748
  height: "100%"
13747
13749
  });
13748
- }), Yn = [];
13750
+ }), Qn = [];
13749
13751
  function fm() {
13750
13752
  const {
13751
13753
  vizManager: e
@@ -13753,7 +13755,7 @@ function fm() {
13753
13755
  return L(() => e.availableVizList.map((t) => ({
13754
13756
  value: t.name,
13755
13757
  label: t.displayName
13756
- })).concat(Yn), [e]);
13758
+ })).concat(Qn), [e]);
13757
13759
  }
13758
13760
  function mm(e, t) {
13759
13761
  try {
@@ -13776,7 +13778,7 @@ function hm() {
13776
13778
  id: c,
13777
13779
  style: d
13778
13780
  }
13779
- } = he(), {
13781
+ } = ve(), {
13780
13782
  vizManager: u
13781
13783
  } = He(Ne), p = {
13782
13784
  title: n,
@@ -13811,7 +13813,7 @@ const vm = I(() => {
13811
13813
  panel: {
13812
13814
  viz: t
13813
13815
  }
13814
- } = he(), [n, r] = Yo(t.type), o = t.type !== n, {
13816
+ } = ve(), [n, r] = Qo(t.type), o = t.type !== n, {
13815
13817
  vizManager: a
13816
13818
  } = He(Ne), s = w.useCallback(() => {
13817
13819
  if (!o)
@@ -13826,8 +13828,8 @@ const vm = I(() => {
13826
13828
  }
13827
13829
  }, c = w.useMemo(() => {
13828
13830
  var h;
13829
- return (h = Yn.find((b) => b.value === n)) == null ? void 0 : h.Panel;
13830
- }, [n, Yn]), d = hm(), u = c ? nn(c, {
13831
+ return (h = Qn.find((b) => b.value === n)) == null ? void 0 : h.Panel;
13832
+ }, [n, Qn]), d = hm(), u = c ? nn(c, {
13831
13833
  data: e,
13832
13834
  conf: t.conf,
13833
13835
  setConf: t.setConf
@@ -13845,7 +13847,7 @@ const vm = I(() => {
13845
13847
  size: 20
13846
13848
  })
13847
13849
  })
13848
- }), p, !p && /* @__PURE__ */ i(Io, {
13850
+ }), p, !p && /* @__PURE__ */ i(Vo, {
13849
13851
  minRows: 20,
13850
13852
  label: "Config",
13851
13853
  value: JSON.stringify(t.conf, null, 2),
@@ -13887,10 +13889,10 @@ const ym = I(function({
13887
13889
  }) {
13888
13890
  const {
13889
13891
  freezeLayout: r
13890
- } = w.useContext(Le), [o, a] = me("Visualization"), {
13892
+ } = w.useContext(Le), [o, a] = he("Visualization"), {
13891
13893
  panel: s,
13892
13894
  loading: l
13893
- } = he(), {
13895
+ } = ve(), {
13894
13896
  id: c,
13895
13897
  title: d
13896
13898
  } = s;
@@ -13970,7 +13972,7 @@ const ym = I(function({
13970
13972
  }) => {
13971
13973
  const t = X(), n = os(), [r, o] = w.useState(!1), a = () => o(!0), s = () => o(!1), {
13972
13974
  panel: l
13973
- } = he(), {
13975
+ } = ve(), {
13974
13976
  id: c,
13975
13977
  query: d
13976
13978
  } = l, {
@@ -13978,7 +13980,7 @@ const ym = I(function({
13978
13980
  } = w.useContext(Le), p = () => d == null ? void 0 : d.fetchData(), {
13979
13981
  viewPanelInFullScreen: f,
13980
13982
  inFullScreen: h
13981
- } = w.useContext(ir), b = () => {
13983
+ } = w.useContext(ar), b = () => {
13982
13984
  e.panels.duplicateByID(c);
13983
13985
  }, v = () => n.openConfirmModal({
13984
13986
  title: "Delete this panel?",
@@ -14000,9 +14002,9 @@ const ym = I(function({
14000
14002
  right: 0,
14001
14003
  zIndex: 300
14002
14004
  },
14003
- children: /* @__PURE__ */ g(xe, {
14005
+ children: /* @__PURE__ */ g(Ce, {
14004
14006
  withinPortal: !0,
14005
- children: [/* @__PURE__ */ i(xe.Target, {
14007
+ children: [/* @__PURE__ */ i(Ce.Target, {
14006
14008
  children: /* @__PURE__ */ i(G, {
14007
14009
  className: "panel-dropdown-target",
14008
14010
  sx: {
@@ -14010,20 +14012,20 @@ const ym = I(function({
14010
14012
  height: "25px"
14011
14013
  }
14012
14014
  })
14013
- }), /* @__PURE__ */ g(xe.Dropdown, {
14014
- children: [/* @__PURE__ */ i(xe.Item, {
14015
+ }), /* @__PURE__ */ g(Ce.Dropdown, {
14016
+ children: [/* @__PURE__ */ i(Ce.Item, {
14015
14017
  onClick: p,
14016
- icon: /* @__PURE__ */ i(jo, {
14018
+ icon: /* @__PURE__ */ i(Go, {
14017
14019
  size: 14
14018
14020
  }),
14019
14021
  children: "Refresh"
14020
- }), /* @__PURE__ */ i(xe.Item, {
14022
+ }), /* @__PURE__ */ i(Ce.Item, {
14021
14023
  onClick: () => t.queries.downloadDataByQueryID(d),
14022
- icon: /* @__PURE__ */ i(Ho, {
14024
+ icon: /* @__PURE__ */ i(Wo, {
14023
14025
  size: 14
14024
14026
  }),
14025
14027
  children: "Download Data"
14026
- }), !h && /* @__PURE__ */ i(xe.Item, {
14028
+ }), !h && /* @__PURE__ */ i(Ce.Item, {
14027
14029
  onClick: S,
14028
14030
  icon: /* @__PURE__ */ i(Ds, {
14029
14031
  size: 14
@@ -14033,19 +14035,19 @@ const ym = I(function({
14033
14035
  children: [/* @__PURE__ */ i(te, {
14034
14036
  label: "Edit",
14035
14037
  labelPosition: "center"
14036
- }), /* @__PURE__ */ i(xe.Item, {
14038
+ }), /* @__PURE__ */ i(Ce.Item, {
14037
14039
  onClick: a,
14038
- icon: /* @__PURE__ */ i(Bo, {
14040
+ icon: /* @__PURE__ */ i(Ho, {
14039
14041
  size: 14
14040
14042
  }),
14041
14043
  children: "Settings"
14042
- }), /* @__PURE__ */ i(xe.Item, {
14044
+ }), /* @__PURE__ */ i(Ce.Item, {
14043
14045
  onClick: b,
14044
14046
  icon: /* @__PURE__ */ i(Is, {
14045
14047
  size: 14
14046
14048
  }),
14047
14049
  children: "Duplicate"
14048
- }), /* @__PURE__ */ i(xe.Item, {
14050
+ }), /* @__PURE__ */ i(Ce.Item, {
14049
14051
  color: "red",
14050
14052
  onClick: v,
14051
14053
  icon: /* @__PURE__ */ i(ie, {
@@ -14065,7 +14067,7 @@ const ym = I(function({
14065
14067
  const Cm = I(function() {
14066
14068
  const {
14067
14069
  panel: t
14068
- } = he(), {
14070
+ } = ve(), {
14069
14071
  title: n
14070
14072
  } = t;
14071
14073
  return n ? /* @__PURE__ */ i(y, {
@@ -14089,7 +14091,7 @@ function wm(e) {
14089
14091
  }
14090
14092
  const Sm = {
14091
14093
  border: "1px solid #e9ecef"
14092
- }, Ro = {
14094
+ }, Do = {
14093
14095
  border: "1px dashed transparent",
14094
14096
  transition: "border-color 300ms ease",
14095
14097
  "&:hover": {
@@ -14097,11 +14099,11 @@ const Sm = {
14097
14099
  }
14098
14100
  };
14099
14101
  function _m(e, t, n) {
14100
- return e.style.border.enabled ? Sm : n || t ? Ro : {
14102
+ return e.style.border.enabled ? Sm : n || t ? Do : {
14101
14103
  border: "1px dashed transparent"
14102
14104
  };
14103
14105
  }
14104
- const Ar = I(function({
14106
+ const Or = I(function({
14105
14107
  panel: t,
14106
14108
  view: n
14107
14109
  }) {
@@ -14179,7 +14181,7 @@ const Ar = I(function({
14179
14181
  flexGrow: 1,
14180
14182
  flexShrink: 0
14181
14183
  },
14182
- children: /* @__PURE__ */ i(Ar, {
14184
+ children: /* @__PURE__ */ i(Or, {
14183
14185
  view: t,
14184
14186
  panel: n
14185
14187
  })
@@ -14252,7 +14254,7 @@ const Rm = w.forwardRef(({
14252
14254
  children: /* @__PURE__ */ i(ks, {
14253
14255
  size: 16
14254
14256
  })
14255
- })), Im = oi(ri), Vm = I(function({
14257
+ })), Im = ii(oi), Vm = I(function({
14256
14258
  view: t,
14257
14259
  className: n = "layout",
14258
14260
  rowHeight: r = 10,
@@ -14284,13 +14286,13 @@ const Rm = w.forwardRef(({
14284
14286
  style: {
14285
14287
  position: "relative"
14286
14288
  },
14287
- children: [o && /* @__PURE__ */ i(Rm, {}), /* @__PURE__ */ i(Ar, {
14289
+ children: [o && /* @__PURE__ */ i(Rm, {}), /* @__PURE__ */ i(Or, {
14288
14290
  view: t,
14289
14291
  panel: l
14290
14292
  })]
14291
14293
  }, l.id))
14292
14294
  });
14293
- }), Mm = oi(ri), km = I(function({
14295
+ }), Mm = ii(oi), km = I(function({
14294
14296
  view: t,
14295
14297
  className: n = "layout",
14296
14298
  rowHeight: r = 10
@@ -14303,7 +14305,7 @@ const Rm = w.forwardRef(({
14303
14305
  layout: t.panels.layouts,
14304
14306
  children: t.panels.list.map((o) => /* @__PURE__ */ i("div", {
14305
14307
  "data-grid": o.layout,
14306
- children: /* @__PURE__ */ i(Ar, {
14308
+ children: /* @__PURE__ */ i(Or, {
14307
14309
  view: t,
14308
14310
  panel: o
14309
14311
  })
@@ -14376,7 +14378,7 @@ const Rm = w.forwardRef(({
14376
14378
  inFullScreen: l,
14377
14379
  fullScreenPanel: c
14378
14380
  } = ga(t, r, o);
14379
- return pa(), /* @__PURE__ */ i(ir.Provider, {
14381
+ return pa(), /* @__PURE__ */ i(ar.Provider, {
14380
14382
  value: {
14381
14383
  viewPanelInFullScreen: a,
14382
14384
  inFullScreen: l
@@ -14400,7 +14402,7 @@ const Rm = w.forwardRef(({
14400
14402
  className: "dashboard-sticky-parent",
14401
14403
  children: [!l && /* @__PURE__ */ i(G, {
14402
14404
  className: "dashboard-sticky-area",
14403
- children: /* @__PURE__ */ i(gi, {
14405
+ children: /* @__PURE__ */ i(pi, {
14404
14406
  view: t
14405
14407
  })
14406
14408
  }), !l && /* @__PURE__ */ i(Vm, {
@@ -14472,7 +14474,7 @@ const Rm = w.forwardRef(({
14472
14474
  inFullScreen: s,
14473
14475
  fullScreenPanel: l
14474
14476
  } = ga(t, n, r);
14475
- return pa(), /* @__PURE__ */ i(ir.Provider, {
14477
+ return pa(), /* @__PURE__ */ i(ar.Provider, {
14476
14478
  value: {
14477
14479
  viewPanelInFullScreen: o,
14478
14480
  inFullScreen: s
@@ -14496,7 +14498,7 @@ const Rm = w.forwardRef(({
14496
14498
  className: "dashboard-sticky-parent",
14497
14499
  children: [!s && /* @__PURE__ */ i(G, {
14498
14500
  className: "dashboard-sticky-area",
14499
- children: /* @__PURE__ */ i(gi, {
14501
+ children: /* @__PURE__ */ i(pi, {
14500
14502
  view: t
14501
14503
  })
14502
14504
  }), !s && /* @__PURE__ */ i(km, {
@@ -14507,14 +14509,17 @@ const Rm = w.forwardRef(({
14507
14509
  })
14508
14510
  });
14509
14511
  }), fa = x.model("FilterConfigModel_Checkbox", {
14512
+ _name: "checkbox",
14510
14513
  default_value: x.boolean
14511
14514
  }).actions((e) => ({
14512
14515
  setDefaultValue(t) {
14513
14516
  e.default_value = t;
14514
14517
  }
14515
14518
  })), Lm = () => fa.create({
14519
+ _name: "checkbox",
14516
14520
  default_value: !1
14517
14521
  }), Nm = x.model("FilterConfigModel_DateRange", {
14522
+ _name: "date-range",
14518
14523
  required: x.boolean,
14519
14524
  inputFormat: x.enumeration("DateRangeInputFormat", ["YYYY", "YYYYMM", "YYYYMMDD", "YYYY-MM", "YYYY-MM-DD"]),
14520
14525
  default_value: x.optional(x.array(x.union(x.string, x.null)), [null, null]),
@@ -14552,6 +14557,7 @@ const Rm = w.forwardRef(({
14552
14557
  };
14553
14558
  }
14554
14559
  }), qm = () => ma.create({
14560
+ _name: "date-range",
14555
14561
  required: !1,
14556
14562
  inputFormat: "YYYY-MM-DD",
14557
14563
  clearable: !1,
@@ -14586,6 +14592,7 @@ const Rm = w.forwardRef(({
14586
14592
  })), va = x.compose(
14587
14593
  "FilterConfigModel_MultiSelect",
14588
14594
  x.model({
14595
+ _name: "multi-select",
14589
14596
  default_value: x.optional(x.array(x.string), [])
14590
14597
  }),
14591
14598
  ha
@@ -14594,6 +14601,7 @@ const Rm = w.forwardRef(({
14594
14601
  e.default_value = ht(t);
14595
14602
  }
14596
14603
  })), Gm = () => va.create({
14604
+ _name: "multi-select",
14597
14605
  default_value: [],
14598
14606
  static_options: [],
14599
14607
  options_query_id: "",
@@ -14601,6 +14609,7 @@ const Rm = w.forwardRef(({
14601
14609
  }), ba = x.compose(
14602
14610
  "FilterConfigModel_Select",
14603
14611
  x.model({
14612
+ _name: "select",
14604
14613
  default_value: x.string,
14605
14614
  required: x.boolean
14606
14615
  }),
@@ -14613,31 +14622,43 @@ const Rm = w.forwardRef(({
14613
14622
  e.default_value = t;
14614
14623
  }
14615
14624
  })), Bm = () => ba.create({
14625
+ _name: "select",
14616
14626
  required: !1,
14617
14627
  default_value: "",
14618
14628
  static_options: [],
14619
14629
  options_query_id: "",
14620
14630
  select_first_by_default: !1
14621
- }), Do = x.model("FilterModel", {
14631
+ }), Io = x.model("FilterModel", {
14622
14632
  id: x.identifier,
14623
14633
  key: x.string,
14624
14634
  label: x.string,
14625
14635
  order: x.number,
14626
14636
  visibleInViewsIDs: x.array(x.string),
14627
14637
  type: x.enumeration("DashboardFilterType", [
14628
- Re.Select,
14629
- Re.MultiSelect,
14630
- Re.TextInput,
14631
- Re.Checkbox,
14632
- Re.DateRange
14638
+ pe.Select,
14639
+ pe.MultiSelect,
14640
+ pe.TextInput,
14641
+ pe.Checkbox,
14642
+ pe.DateRange
14633
14643
  ]),
14634
- config: x.union(
14635
- ba,
14636
- va,
14637
- vi,
14638
- fa,
14639
- ma
14640
- )
14644
+ config: x.union({
14645
+ dispatcher: (e) => {
14646
+ switch (e._name) {
14647
+ case pe.Select:
14648
+ return ba;
14649
+ case pe.MultiSelect:
14650
+ return va;
14651
+ case pe.TextInput:
14652
+ return Ln;
14653
+ case pe.Checkbox:
14654
+ return fa;
14655
+ case pe.DateRange:
14656
+ return ma;
14657
+ default:
14658
+ return console.error(`[filter model] invalid filter.config._name: ${e._name}`), Ln;
14659
+ }
14660
+ }
14661
+ })
14641
14662
  }).views((e) => ({
14642
14663
  get plainDefaultValue() {
14643
14664
  const t = e.config.default_value;
@@ -14655,19 +14676,19 @@ const Rm = w.forwardRef(({
14655
14676
  },
14656
14677
  setType(t) {
14657
14678
  switch (t) {
14658
- case Re.Select:
14679
+ case pe.Select:
14659
14680
  e.config = Bm();
14660
14681
  break;
14661
- case Re.MultiSelect:
14682
+ case pe.MultiSelect:
14662
14683
  e.config = Gm();
14663
14684
  break;
14664
- case Re.TextInput:
14685
+ case pe.TextInput:
14665
14686
  e.config = bi();
14666
14687
  break;
14667
- case Re.Checkbox:
14688
+ case pe.Checkbox:
14668
14689
  e.config = Lm();
14669
14690
  break;
14670
- case Re.DateRange:
14691
+ case pe.DateRange:
14671
14692
  e.config = qm();
14672
14693
  break;
14673
14694
  }
@@ -14695,7 +14716,7 @@ function xa(e) {
14695
14716
  return e.reduce((t, n) => (t[n.key] = ya(n.config.default_value, n.config), t), {});
14696
14717
  }
14697
14718
  function Hm(e, t, n) {
14698
- er(
14719
+ tr(
14699
14720
  e,
14700
14721
  Es(e, (r, o) => {
14701
14722
  o(r, () => {
@@ -14705,7 +14726,7 @@ function Hm(e, t, n) {
14705
14726
  );
14706
14727
  }
14707
14728
  const Wm = x.model("FiltersModel", {
14708
- current: x.optional(x.array(Do), []),
14729
+ current: x.optional(x.array(Io), []),
14709
14730
  values: x.optional(x.frozen(), {}),
14710
14731
  previewValues: x.optional(x.frozen(), {})
14711
14732
  }).views((e) => ({
@@ -14759,7 +14780,7 @@ const Wm = x.model("FiltersModel", {
14759
14780
  }
14760
14781
  })).actions((e) => {
14761
14782
  function t() {
14762
- Hm(e.current, Do, (n, r) => {
14783
+ Hm(e.current, Io, (n, r) => {
14763
14784
  if (n === "setType") {
14764
14785
  const o = ya(r.config.default_value, r.config);
14765
14786
  e.setValueByKey(r.key, o), e.updatePreviewValues({
@@ -14794,7 +14815,7 @@ const Ym = x.model("QueryModel", {
14794
14815
  const { id: t, type: n, key: r, sql: o } = e;
14795
14816
  return { id: t, type: n, key: r, sql: o };
14796
14817
  }
14797
- })), Qn = x.compose(
14818
+ })), Jn = x.compose(
14798
14819
  "QueryModel",
14799
14820
  Ym,
14800
14821
  x.model({
@@ -14805,7 +14826,7 @@ const Ym = x.model("QueryModel", {
14805
14826
  ).views((e) => ({
14806
14827
  get formattedSQL() {
14807
14828
  const { context: t, mock_context: n, sqlSnippets: r, filterValues: o } = Jt(e).payloadForSQL;
14808
- return mi(e.sql, t, n, r, o);
14829
+ return hi(e.sql, t, n, r, o);
14809
14830
  }
14810
14831
  })).views((e) => ({
14811
14832
  get json() {
@@ -14856,16 +14877,16 @@ const Ym = x.model("QueryModel", {
14856
14877
  })
14857
14878
  })).actions((e) => ({
14858
14879
  afterCreate() {
14859
- er(
14880
+ tr(
14860
14881
  e,
14861
- nr(() => `${e.id}--${e.key}--${e.type}--${e.formattedSQL}`, e.fetchData, {
14882
+ rr(() => `${e.id}--${e.key}--${e.type}--${e.formattedSQL}`, e.fetchData, {
14862
14883
  fireImmediately: !0,
14863
14884
  delay: 500
14864
14885
  })
14865
14886
  );
14866
14887
  }
14867
14888
  })), Qm = x.model("QueriesModel", {
14868
- current: x.optional(x.array(Qn), [])
14889
+ current: x.optional(x.array(Jn), [])
14869
14890
  }).views((e) => ({
14870
14891
  get firstID() {
14871
14892
  if (e.current.length !== 0)
@@ -14909,7 +14930,7 @@ const Ym = x.model("QueryModel", {
14909
14930
  console.log("[downloadDataByQueryID] query not found");
14910
14931
  return;
14911
14932
  }
14912
- const { id: n, data: r } = t, o = pi(r);
14933
+ const { id: n, data: r } = t, o = fi(r);
14913
14934
  ll(n, o);
14914
14935
  },
14915
14936
  refetchDataByQueryID(t) {
@@ -15075,7 +15096,7 @@ const Ym = x.model("QueryModel", {
15075
15096
  style: nh
15076
15097
  }).views((e) => ({
15077
15098
  get query() {
15078
- return so(Qn, Jt(e), e.queryID);
15099
+ return lo(Jn, Jt(e), e.queryID);
15079
15100
  },
15080
15101
  get json() {
15081
15102
  const { id: t, title: n, description: r, queryID: o } = e;
@@ -15100,7 +15121,7 @@ const Ym = x.model("QueryModel", {
15100
15121
  e.description = t;
15101
15122
  },
15102
15123
  setQueryID(t) {
15103
- if (so(Qn, Jt(e), t))
15124
+ if (lo(Jn, Jt(e), t))
15104
15125
  e.queryID = t;
15105
15126
  else
15106
15127
  throw new Error(`Query with id ${t} does not exist`);
@@ -15122,7 +15143,7 @@ const Ym = x.model("QueryModel", {
15122
15143
  }
15123
15144
  })).actions((e) => ({
15124
15145
  replace(t) {
15125
- e.list = Uo(t);
15146
+ e.list = Yo(t);
15126
15147
  },
15127
15148
  addANewPanel() {
15128
15149
  const t = Ie();
@@ -15138,8 +15159,8 @@ const Ym = x.model("QueryModel", {
15138
15159
  description: "<p><br></p>",
15139
15160
  queryID: "",
15140
15161
  viz: {
15141
- type: Un.name,
15142
- conf: Un.createConfig()
15162
+ type: Yn.name,
15163
+ conf: Yn.createConfig()
15143
15164
  },
15144
15165
  style: {
15145
15166
  border: {
@@ -15324,25 +15345,25 @@ const ch = x.model({
15324
15345
  }).views((e) => ({
15325
15346
  get filtersChanged() {
15326
15347
  const t = "filters.current";
15327
- return !Ce(jt(Q(e, t)), Q(e.origin, t));
15348
+ return !we(jt(Q(e, t)), Q(e.origin, t));
15328
15349
  },
15329
15350
  get queriesChanged() {
15330
15351
  const t = "queries.current", n = jt(Q(e, t)).map(
15331
- (r) => qo(r, ["id", "key", "type", "sql"])
15352
+ (r) => jo(r, ["id", "key", "type", "sql"])
15332
15353
  );
15333
- return !Ce(n, Q(e.origin, t));
15354
+ return !we(n, Q(e.origin, t));
15334
15355
  },
15335
15356
  get sqlSnippetsChanged() {
15336
15357
  const t = "sqlSnippets.current";
15337
- return !Ce(jt(Q(e, t)), Q(e.origin, t));
15358
+ return !we(jt(Q(e, t)), Q(e.origin, t));
15338
15359
  },
15339
15360
  get viewsChanged() {
15340
15361
  const t = "views.current";
15341
- return !Ce(jt(Q(e, t)), Q(e.origin, t));
15362
+ return !we(jt(Q(e, t)), Q(e.origin, t));
15342
15363
  },
15343
15364
  get mockContextChanged() {
15344
15365
  const t = "mock_context.current";
15345
- return !Ce(Q(e, t), Q(e.origin, t));
15366
+ return !we(Q(e, t), Q(e.origin, t));
15346
15367
  }
15347
15368
  })).views((e) => ({
15348
15369
  get payloadForSQL() {
@@ -15402,7 +15423,7 @@ const ch = x.model({
15402
15423
  const r = Ls(e.filters, (o) => {
15403
15424
  localStorage.setItem(n, JSON.stringify(o.values));
15404
15425
  });
15405
- er(e, r);
15426
+ tr(e, r);
15406
15427
  }
15407
15428
  return {
15408
15429
  afterCreate() {
@@ -15424,7 +15445,7 @@ const ch = x.model({
15424
15445
  },
15425
15446
  postProcessor(e) {
15426
15447
  delete e.origin;
15427
- const t = Uo(e.queries.current.map((n) => qo(n, ["id", "key", "type", "sql"])));
15448
+ const t = Yo(e.queries.current.map((n) => jo(n, ["id", "key", "type", "sql"])));
15428
15449
  return le({}, { queries: { current: t } }, e);
15429
15450
  }
15430
15451
  });
@@ -15461,9 +15482,9 @@ const Yh = I(function({
15461
15482
  fullScreenPanelID: s,
15462
15483
  setFullScreenPanelID: l
15463
15484
  }) {
15464
- hi(a);
15485
+ vi(a);
15465
15486
  const [c, d] = w.useState(!1), u = w.useMemo(() => Ca(n, t), [n]);
15466
- ii(u, !0), w.useEffect(() => {
15487
+ ai(u, !0), w.useEffect(() => {
15467
15488
  u.context.replace(t);
15468
15489
  }, [t]);
15469
15490
  const p = async () => {
@@ -15480,9 +15501,9 @@ const Yh = I(function({
15480
15501
  }
15481
15502
  };
15482
15503
  await r(k);
15483
- }, f = Be($r, []), h = wa(f);
15484
- return /* @__PURE__ */ i(ko, {
15485
- children: /* @__PURE__ */ i(li, {
15504
+ }, f = Be(Er, []), h = wa(f);
15505
+ return /* @__PURE__ */ i(Fo, {
15506
+ children: /* @__PURE__ */ i(ci, {
15486
15507
  value: u,
15487
15508
  children: /* @__PURE__ */ i(Le.Provider, {
15488
15509
  value: {
@@ -15520,14 +15541,14 @@ const Yh = I(function({
15520
15541
  fullScreenPanelID: o,
15521
15542
  setFullScreenPanelID: a
15522
15543
  }) => {
15523
- hi(r);
15544
+ vi(r);
15524
15545
  const s = w.useMemo(() => Ca(t, e), [t]);
15525
- ii(s, !1), w.useEffect(() => {
15546
+ ai(s, !1), w.useEffect(() => {
15526
15547
  s.context.replace(e);
15527
15548
  }, [e]);
15528
- const l = Be($r, []), c = wa(l);
15529
- return /* @__PURE__ */ i(ko, {
15530
- children: /* @__PURE__ */ i(li, {
15549
+ const l = Be(Er, []), c = wa(l);
15550
+ return /* @__PURE__ */ i(Fo, {
15551
+ children: /* @__PURE__ */ i(ci, {
15531
15552
  value: s,
15532
15553
  children: /* @__PURE__ */ i(Le.Provider, {
15533
15554
  value: {
@@ -15574,8 +15595,8 @@ var Sa = { exports: {} };
15574
15595
  var M = b[S], k = M.type, z = M.value, N = n[k];
15575
15596
  N >= 0 && (v[N] = parseInt(z, 10));
15576
15597
  }
15577
- var Y = v[3], pe = Y === 24 ? 0 : Y, ce = v[0] + "-" + v[1] + "-" + v[2] + " " + pe + ":" + v[4] + ":" + v[5] + ":000", Se = +f;
15578
- return (s.utc(ce).valueOf() - (Se -= Se % 1e3)) / 6e4;
15598
+ var Y = v[3], fe = Y === 24 ? 0 : Y, ce = v[0] + "-" + v[1] + "-" + v[2] + " " + fe + ":" + v[4] + ":" + v[5] + ":000", _e = +f;
15599
+ return (s.utc(ce).valueOf() - (_e -= _e % 1e3)) / 6e4;
15579
15600
  }, u = a.prototype;
15580
15601
  u.tz = function(f, h) {
15581
15602
  f === void 0 && (f = l);
@@ -15601,12 +15622,12 @@ var Sa = { exports: {} };
15601
15622
  var v = b && h, S = b || h || l, M = d(+s(), S);
15602
15623
  if (typeof f != "string")
15603
15624
  return s(f).tz(S);
15604
- var k = function(pe, ce, Se) {
15605
- var ve = pe - 60 * ce * 1e3, Me = d(ve, Se);
15625
+ var k = function(fe, ce, _e) {
15626
+ var be = fe - 60 * ce * 1e3, Me = d(be, _e);
15606
15627
  if (ce === Me)
15607
- return [ve, ce];
15608
- var ue = d(ve -= 60 * (Me - ce) * 1e3, Se);
15609
- return Me === ue ? [ve, Me] : [pe - 60 * Math.min(Me, ue) * 1e3, Math.max(Me, ue)];
15628
+ return [be, ce];
15629
+ var ue = d(be -= 60 * (Me - ce) * 1e3, _e);
15630
+ return Me === ue ? [be, Me] : [fe - 60 * Math.min(Me, ue) * 1e3, Math.max(Me, ue)];
15610
15631
  }(s.utc(f, v).valueOf(), M, S), z = k[0], N = k[1], Y = s(z).utcOffset(N);
15611
15632
  return Y.$x.$timezone = S, Y;
15612
15633
  }, s.tz.guess = function() {
@@ -15654,11 +15675,11 @@ var _a = { exports: {} };
15654
15675
  return this.$u ? 0 : M(this.$offset) ? p.call(this) : this.$offset;
15655
15676
  if (typeof v == "string" && (v = function(Y) {
15656
15677
  Y === void 0 && (Y = "");
15657
- var pe = Y.match(r);
15658
- if (!pe)
15678
+ var fe = Y.match(r);
15679
+ if (!fe)
15659
15680
  return null;
15660
- var ce = ("" + pe[0]).match(o) || ["-", 0, 0], Se = ce[0], ve = 60 * +ce[1] + +ce[2];
15661
- return ve === 0 ? 0 : Se === "+" ? ve : -ve;
15681
+ var ce = ("" + fe[0]).match(o) || ["-", 0, 0], _e = ce[0], be = 60 * +ce[1] + +ce[2];
15682
+ return be === 0 ? 0 : _e === "+" ? be : -be;
15662
15683
  }(v), v === null))
15663
15684
  return this;
15664
15685
  var k = Math.abs(v) <= 16 ? 60 * v : v, z = this;
@@ -15710,15 +15731,15 @@ export {
15710
15731
  Kl as DashboardMode,
15711
15732
  uh as DashboardModel,
15712
15733
  $e as EViewComponentType,
15713
- Do as FilterModel,
15734
+ Io as FilterModel,
15714
15735
  Wm as FiltersModel,
15715
15736
  Le as LayoutStateContext,
15716
15737
  Am as MainDashboardView,
15717
- li as ModelContextProvider,
15718
- Ar as Panel,
15738
+ ci as ModelContextProvider,
15739
+ Or as Panel,
15719
15740
  rl as PanelContextProvider,
15720
15741
  Qm as QueriesModel,
15721
- Qn as QueryModel,
15742
+ Jn as QueryModel,
15722
15743
  Qh as ReadOnlyDashboard,
15723
15744
  Tm as ReadOnlyDashboardView,
15724
15745
  Jm as SQLSnippetModel,
@@ -15729,6 +15750,6 @@ export {
15729
15750
  lh as createDashboardViewsModel,
15730
15751
  Um as getInitialFiltersPayload,
15731
15752
  X as useModelContext,
15732
- he as usePanelContext,
15753
+ ve as usePanelContext,
15733
15754
  wa as useTopLevelServices
15734
15755
  };