@devtable/dashboard 5.11.0 → 6.0.0

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.
@@ -6,12 +6,12 @@ import { useModals as ss, ModalsProvider as Oo } from "@mantine/modals";
6
6
  import { useCreation as Be, usePrevious as ls, useRequest as Jt, useBoolean as $t, useAsyncEffect as Et, useLatest as uo } from "ahooks";
7
7
  import { observer as I } from "mobx-react-lite";
8
8
  import * as go from "react";
9
- import w, { useEffect as Z, createContext as zo, forwardRef as nn, useState as me, useMemo as L, createElement as rn, useCallback as Mt, useContext as He, useRef as cs } from "react";
9
+ import w, { useEffect as Z, createContext as zo, forwardRef as nn, useState as me, useMemo as L, createElement as rn, useCallback as kt, useContext as He, useRef as cs } from "react";
10
10
  import K, { get as Q, isFunction as us, omit as on, values as Po, unset as ds, isObject as To, set as Lo, orderBy as gs, last as ps, defaults as le, minBy as fs, maxBy as No, isEqual as we, groupBy as Ae, cloneDeep as qo, defaultsDeep as We, merge as jo, isEmpty as Go, noop as ms, findLastIndex as hs, isNumber as vs, isString as Bo, range as bs, template as Ho, cloneDeepWith as ys, throttle as xs, pick as Wo } from "lodash";
11
11
  import { useForm as Ue, useWatch as Cs, Controller as D, useFieldArray as Oe } from "react-hook-form";
12
12
  import { DateRangePicker as ws } from "@mantine/dates";
13
13
  import nt from "dayjs";
14
- import { Calendar as Ss, DeviceFloppy as se, Refresh as Uo, Trash as ie, PlaylistAdd as mt, Recycle as Yo, Settings as Qo, Filter as _s, Database as Rs, Share as Ds, Download as Jo, Code as Is, InfoCircle as Vs, ArrowRight as Vn, ArrowsMaximize as Ms, Copy as ks, ArrowLeft as Fs, ArrowsMove as $s, ChevronDownRight as Es } from "tabler-icons-react";
14
+ import { Calendar as Ss, DeviceFloppy as se, Refresh as Uo, Trash as ie, PlaylistAdd as mt, Recycle as Yo, Settings as Qo, Filter as _s, Database as Rs, Share as Ds, Download as Jo, Code as Is, InfoCircle as Vs, ArrowRight as Vn, ArrowsMaximize as ks, Copy as Ms, ArrowLeft as Fs, ArrowsMove as $s, ChevronDownRight as Es } from "tabler-icons-react";
15
15
  import As from "jszip";
16
16
  import { Prism as $e } from "@mantine/prism";
17
17
  import { showNotification as an } from "@mantine/notifications";
@@ -22,7 +22,7 @@ import { randomId as Ie, useClipboard as Gs, useElementSize as Ln, useInputState
22
22
  import ei, { RichTextEditor as ti } from "@mantine/rte";
23
23
  import { makeAutoObservable as ar, runInAction as Dt, observable as ni, toJS as sn, reaction as sr } from "mobx";
24
24
  import fo from "eventemitter2";
25
- import kt from "chroma-js";
25
+ import Mt from "chroma-js";
26
26
  import "echarts-gl";
27
27
  import * as ge from "echarts/core";
28
28
  import { GridComponent as vt, VisualMapComponent as Bs, LegendComponent as bt, TooltipComponent as yt, DataZoomComponent as ln, MarkLineComponent as ri, MarkAreaComponent as Hs } from "echarts/components";
@@ -163,8 +163,8 @@ function nl() {
163
163
  var _ = b && m[b] || m[v];
164
164
  return typeof _ == "function" ? _ : null;
165
165
  }
166
- var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
167
- function k(m) {
166
+ var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
167
+ function M(m) {
168
168
  {
169
169
  for (var _ = arguments.length, V = new Array(_ > 1 ? _ - 1 : 0), O = 1; O < _; O++)
170
170
  V[O - 1] = arguments[O];
@@ -173,7 +173,7 @@ function nl() {
173
173
  }
174
174
  function z(m, _, V) {
175
175
  {
176
- var O = M.ReactDebugCurrentFrame, W = O.getStackAddendum();
176
+ var O = k.ReactDebugCurrentFrame, W = O.getStackAddendum();
177
177
  W !== "" && (_ += "%s", V = V.concat([W]));
178
178
  var J = V.map(function(H) {
179
179
  return String(H);
@@ -183,7 +183,7 @@ function nl() {
183
183
  }
184
184
  var N = !1, Y = !1, fe = !1, ce = !1, _e = !1, be;
185
185
  be = Symbol.for("react.module.reference");
186
- function Me(m) {
186
+ function ke(m) {
187
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) {
@@ -193,13 +193,13 @@ function nl() {
193
193
  var W = _.displayName || _.name || "";
194
194
  return W !== "" ? V + "(" + W + ")" : V;
195
195
  }
196
- function ke(m) {
196
+ function Me(m) {
197
197
  return m.displayName || "Context";
198
198
  }
199
199
  function ye(m) {
200
200
  if (m == null)
201
201
  return null;
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")
202
+ if (typeof m.tag == "number" && M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof m == "function")
203
203
  return m.displayName || m.name || null;
204
204
  if (typeof m == "string")
205
205
  return m;
@@ -221,10 +221,10 @@ function nl() {
221
221
  switch (m.$$typeof) {
222
222
  case l:
223
223
  var _ = m;
224
- return ke(_) + ".Consumer";
224
+ return Me(_) + ".Consumer";
225
225
  case s:
226
226
  var V = m;
227
- return ke(V._context) + ".Provider";
227
+ return Me(V._context) + ".Provider";
228
228
  case c:
229
229
  return ue(m, m.render, "ForwardRef");
230
230
  case p:
@@ -300,10 +300,10 @@ function nl() {
300
300
  })
301
301
  });
302
302
  }
303
- Ye < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
303
+ Ye < 0 && M("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
304
304
  }
305
305
  }
306
- var yn = M.ReactCurrentDispatcher, xn;
306
+ var yn = k.ReactCurrentDispatcher, xn;
307
307
  function Pt(m, _, V) {
308
308
  {
309
309
  if (xn === void 0)
@@ -319,8 +319,8 @@ function nl() {
319
319
  }
320
320
  var Cn = !1, Tt;
321
321
  {
322
- var Ma = typeof WeakMap == "function" ? WeakMap : Map;
323
- Tt = new Ma();
322
+ var ka = typeof WeakMap == "function" ? WeakMap : Map;
323
+ Tt = new ka();
324
324
  }
325
325
  function Yr(m, _) {
326
326
  if (!m || Cn)
@@ -393,7 +393,7 @@ function nl() {
393
393
  var ut = m ? m.displayName || m.name : "", so = ut ? Pt(ut) : "";
394
394
  return typeof m == "function" && Tt.set(m, so), so;
395
395
  }
396
- function ka(m, _, V) {
396
+ function Ma(m, _, V) {
397
397
  return Yr(m, !1);
398
398
  }
399
399
  function Fa(m) {
@@ -416,7 +416,7 @@ function nl() {
416
416
  if (typeof m == "object")
417
417
  switch (m.$$typeof) {
418
418
  case c:
419
- return ka(m.render);
419
+ return Ma(m.render);
420
420
  case p:
421
421
  return Lt(m.type, _, V);
422
422
  case f: {
@@ -429,7 +429,7 @@ function nl() {
429
429
  }
430
430
  return "";
431
431
  }
432
- var Nt = Object.prototype.hasOwnProperty, Qr = {}, Jr = M.ReactDebugCurrentFrame;
432
+ var Nt = Object.prototype.hasOwnProperty, Qr = {}, Jr = k.ReactDebugCurrentFrame;
433
433
  function qt(m) {
434
434
  if (m) {
435
435
  var _ = m._owner, V = Lt(m.type, m._source, _ ? _.type : null);
@@ -452,7 +452,7 @@ function nl() {
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, H, typeof q), qt(null)), q instanceof Error && !(q.message in Qr) && (Qr[q.message] = !0, qt(W), k("Failed %s type: %s", V, q.message), qt(null));
455
+ q && !(q instanceof Error) && (qt(W), M("%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, H, typeof q), qt(null)), q instanceof Error && !(q.message in Qr) && (Qr[q.message] = !0, qt(W), M("Failed %s type: %s", V, q.message), qt(null));
456
456
  }
457
457
  }
458
458
  }
@@ -478,9 +478,9 @@ function nl() {
478
478
  }
479
479
  function Kr(m) {
480
480
  if (Oa(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.", Aa(m)), Xr(m);
481
+ return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Aa(m)), Xr(m);
482
482
  }
483
- var xt = M.ReactCurrentOwner, za = {
483
+ var xt = k.ReactCurrentOwner, za = {
484
484
  key: !0,
485
485
  ref: !0,
486
486
  __self: !0,
@@ -506,13 +506,13 @@ function nl() {
506
506
  function La(m, _) {
507
507
  if (typeof m.ref == "string" && xt.current && _ && xt.current.stateNode !== _) {
508
508
  var V = ye(xt.current.type);
509
- Sn[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), Sn[V] = !0);
509
+ Sn[V] || (M('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), Sn[V] = !0);
510
510
  }
511
511
  }
512
512
  function Na(m, _) {
513
513
  {
514
514
  var V = function() {
515
- Zr || (Zr = !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
+ Zr || (Zr = !0, M("%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 nl() {
523
523
  function qa(m, _) {
524
524
  {
525
525
  var V = function() {
526
- eo || (eo = !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
+ eo || (eo = !0, M("%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,
@@ -575,7 +575,7 @@ function nl() {
575
575
  return ja(m, q, he, W, O, xt.current, H);
576
576
  }
577
577
  }
578
- var _n = M.ReactCurrentOwner, to = M.ReactDebugCurrentFrame;
578
+ var _n = k.ReactCurrentOwner, to = k.ReactDebugCurrentFrame;
579
579
  function ct(m) {
580
580
  if (m) {
581
581
  var _ = m._owner, V = Lt(m.type, m._source, _ ? _.type : null);
@@ -634,7 +634,7 @@ Check the top-level render call using <` + V + ">.");
634
634
  return;
635
635
  ro[V] = !0;
636
636
  var O = "";
637
- m && m._owner && m._owner !== _n.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);
637
+ m && m._owner && m._owner !== _n.current && (O = " It was passed a child from " + ye(m._owner.type) + "."), ct(m), M('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
640
  function io(m, _) {
@@ -674,9 +674,9 @@ Check the top-level render call using <` + V + ">.");
674
674
  } else if (_.PropTypes !== void 0 && !Rn) {
675
675
  Rn = !0;
676
676
  var W = ye(_);
677
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
677
+ M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
678
678
  }
679
- typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
679
+ typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
680
680
  }
681
681
  }
682
682
  function Ua(m) {
@@ -684,23 +684,23 @@ Check the top-level render call using <` + V + ">.");
684
684
  for (var _ = Object.keys(m.props), V = 0; V < _.length; V++) {
685
685
  var O = _[V];
686
686
  if (O !== "children" && O !== "key") {
687
- ct(m), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), ct(null);
687
+ ct(m), M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), ct(null);
688
688
  break;
689
689
  }
690
690
  }
691
- m.ref !== null && (ct(m), k("Invalid attribute `ref` supplied to `React.Fragment`."), ct(null));
691
+ m.ref !== null && (ct(m), M("Invalid attribute `ref` supplied to `React.Fragment`."), ct(null));
692
692
  }
693
693
  }
694
694
  function ao(m, _, V, O, W, J) {
695
695
  {
696
- var H = Me(m);
696
+ var H = ke(m);
697
697
  if (!H) {
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
700
  var he = Ba(W);
701
701
  he ? q += he : q += no();
702
702
  var oe;
703
- m === null ? oe = "null" : wn(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);
703
+ m === null ? oe = "null" : wn(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, M("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 = Ga(m, _, V, W, J);
706
706
  if (ae == null)
@@ -714,7 +714,7 @@ Check the top-level render call using <` + V + ">.");
714
714
  io(Re[ut], m);
715
715
  Object.freeze && Object.freeze(Re);
716
716
  } else
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.");
717
+ M("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
719
  io(Re, m);
720
720
  }
@@ -1141,9 +1141,9 @@ var dn = { exports: {} };
1141
1141
  z = v ? z : z.replace(/^data:[^;]*;/, "data:attachment/file;"), f ? f.location.href = z : location = z, f = null;
1142
1142
  }, S.readAsDataURL(d);
1143
1143
  } else {
1144
- var M = s.URL || s.webkitURL, k = M.createObjectURL(d);
1145
- f ? f.location = k : location.href = k, f = null, setTimeout(function() {
1146
- M.revokeObjectURL(k);
1144
+ var k = s.URL || s.webkitURL, M = k.createObjectURL(d);
1145
+ f ? f.location = M : location.href = M, f = null, setTimeout(function() {
1146
+ k.revokeObjectURL(M);
1147
1147
  }, 4e4);
1148
1148
  }
1149
1149
  });
@@ -1643,13 +1643,13 @@ function Il(e) {
1643
1643
  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 })] });
1644
1644
  }
1645
1645
  var Vl = ["size", "color", "stroke"];
1646
- function Ml(e) {
1646
+ function kl(e) {
1647
1647
  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 = fr(e, Vl);
1648
1648
  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 })] });
1649
1649
  }
1650
- var kl = ["size", "color", "stroke"];
1650
+ var Ml = ["size", "color", "stroke"];
1651
1651
  function Fl(e) {
1652
- 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 = fr(e, kl);
1652
+ 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 = fr(e, Ml);
1653
1653
  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" })] });
1654
1654
  }
1655
1655
  const $l = (e) => {
@@ -2890,13 +2890,13 @@ const oc = I(() => {
2890
2890
  saveChanges: t
2891
2891
  }) {
2892
2892
  const n = X(), r = w.useCallback(() => {
2893
- const M = n.queries.json, k = n.views.json, z = n.sqlSnippets.json, N = n.filters.current, Y = n.mock_context.current;
2893
+ const k = n.queries.json, M = n.views.json, z = n.sqlSnippets.json, N = n.filters.current, Y = n.mock_context.current;
2894
2894
  return {
2895
2895
  filters: N,
2896
- views: k,
2896
+ views: M,
2897
2897
  definition: {
2898
2898
  sqlSnippets: z,
2899
- queries: M,
2899
+ queries: k,
2900
2900
  mock_context: Y
2901
2901
  },
2902
2902
  version: n.version
@@ -2907,8 +2907,8 @@ const oc = I(() => {
2907
2907
  inEditMode: s,
2908
2908
  inUseMode: l
2909
2909
  } = w.useContext(Le), [c, d] = w.useState(!1), u = () => d(!0), p = () => d(!1), [f, h] = w.useState(!1), b = () => h(!0), v = () => h(!1), S = () => {
2910
- const M = JSON.stringify(r(), null, 2);
2911
- gl(n.name, M);
2910
+ const k = JSON.stringify(r(), null, 2);
2911
+ gl(n.name, k);
2912
2912
  };
2913
2913
  return /* @__PURE__ */ g(y, {
2914
2914
  position: "apart",
@@ -3357,7 +3357,7 @@ class mr {
3357
3357
  );
3358
3358
  }
3359
3359
  }
3360
- class Mi {
3360
+ class ki {
3361
3361
  constructor(t) {
3362
3362
  F(this, "rootRef");
3363
3363
  this.rootRef = ni({ current: t });
@@ -3434,18 +3434,18 @@ class Ic {
3434
3434
  name: t.viz.type,
3435
3435
  type: t.viz.type,
3436
3436
  messageChannels: new Dc(),
3437
- instanceData: new Mi(t.viz.conf)
3437
+ instanceData: new ki(t.viz.conf)
3438
3438
  };
3439
3439
  return this.instances.set(t.id, r), r;
3440
3440
  }
3441
3441
  }
3442
- function ki(e, t, n) {
3442
+ function Mi(e, t, n) {
3443
3443
  return {
3444
3444
  vizManager: n,
3445
3445
  locale: "zh",
3446
3446
  msgChannels: e.messageChannels,
3447
3447
  instanceData: e.instanceData,
3448
- pluginData: new Mi({}),
3448
+ pluginData: new ki({}),
3449
3449
  colorPalette: {
3450
3450
  getColor() {
3451
3451
  return () => "";
@@ -3460,7 +3460,7 @@ const Vc = (e) => {
3460
3460
  vizManager: n,
3461
3461
  data: r
3462
3462
  } = e, o = n.resolveComponent(t.viz.type), a = n.getOrCreateInstance(t), s = {
3463
- ...ki(a, r, n),
3463
+ ...Mi(a, r, n),
3464
3464
  viewport: {
3465
3465
  width: t.layout.w,
3466
3466
  height: t.layout.h
@@ -3471,14 +3471,14 @@ const Vc = (e) => {
3471
3471
  instance: a,
3472
3472
  ...on(e, ["panel", "vizManager", "data"])
3473
3473
  });
3474
- }, Mc = (e) => {
3474
+ }, kc = (e) => {
3475
3475
  const {
3476
3476
  vizManager: t,
3477
3477
  panel: n,
3478
3478
  panelInfoEditor: r,
3479
3479
  data: o
3480
3480
  } = e, a = t.resolveComponent(n.viz.type), s = t.getOrCreateInstance(n), l = {
3481
- ...ki(s, o, t),
3481
+ ...Mi(s, o, t),
3482
3482
  panelInfoEditor: r
3483
3483
  }, c = a.configRender;
3484
3484
  return /* @__PURE__ */ i(c, {
@@ -3487,16 +3487,16 @@ const Vc = (e) => {
3487
3487
  ...on(e, ["panel", "vizManager", "data", "panelInfoEditor"])
3488
3488
  });
3489
3489
  }, Fi = (e, t) => {
3490
- const n = kt.bezier(e), r = kt.bezier(t);
3490
+ const n = Mt.bezier(e), r = Mt.bezier(t);
3491
3491
  return function(o) {
3492
3492
  return o < 50 ? n(o * 2 / 100).hex() : r((o - 50) * 2 / 100).hex();
3493
3493
  };
3494
3494
  }, gn = (e) => {
3495
- const t = kt.bezier(e);
3495
+ const t = Mt.bezier(e);
3496
3496
  return function(n) {
3497
3497
  return t(n / 100).hex();
3498
3498
  };
3499
- }, kc = {
3499
+ }, Mc = {
3500
3500
  type: "interpolation",
3501
3501
  displayName: "Red / Green",
3502
3502
  getColor: Fi(["darkred", "deeppink", "lightyellow"], ["lightyellow", "lightgreen", "teal"]),
@@ -3532,7 +3532,7 @@ const Vc = (e) => {
3532
3532
  getColor: gn(["#fff7f1", "darkorange", "#b60000"]),
3533
3533
  name: "orange",
3534
3534
  category: "sequential"
3535
- }, zc = "5.11.0";
3535
+ }, zc = "5.12.0";
3536
3536
  class Pc {
3537
3537
  constructor(t) {
3538
3538
  F(this, "staticColors", /* @__PURE__ */ new Map());
@@ -3639,7 +3639,7 @@ const U = (e, t) => {
3639
3639
  }), e.watchItem(t, (l) => {
3640
3640
  a(l);
3641
3641
  })));
3642
- const s = Mt(
3642
+ const s = kt(
3643
3643
  async (l) => {
3644
3644
  await e.setItem(t, l), a(l);
3645
3645
  },
@@ -4566,10 +4566,10 @@ const xr = (e, t) => (n) => Boolean(Ot(n) && iu.test(n) && n.startsWith(e) || t
4566
4566
  test: xr("hsl", "hue"),
4567
4567
  parse: zi("hue", "saturation", "lightness"),
4568
4568
  transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Vt.transform(It(t)) + ", " + Vt.transform(It(n)) + ", " + It(Oi.transform(r)) + ")"
4569
- }, su = Ai(0, 255), Mn = Object.assign(Object.assign({}, mn), { transform: (e) => Math.round(su(e)) }), Xe = {
4569
+ }, su = Ai(0, 255), kn = Object.assign(Object.assign({}, mn), { transform: (e) => Math.round(su(e)) }), Xe = {
4570
4570
  test: xr("rgb", "red"),
4571
4571
  parse: zi("red", "green", "blue"),
4572
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Mn.transform(e) + ", " + Mn.transform(t) + ", " + Mn.transform(n) + ", " + It(Oi.transform(r)) + ")"
4572
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + kn.transform(e) + ", " + kn.transform(t) + ", " + kn.transform(n) + ", " + It(Oi.transform(r)) + ")"
4573
4573
  };
4574
4574
  function lu(e) {
4575
4575
  let t = "", n = "", r = "", o = "";
@@ -4620,7 +4620,7 @@ function du(e) {
4620
4620
  return qi(e)(t.map(uu));
4621
4621
  }
4622
4622
  const ji = { test: cu, parse: Ni, createTransformer: qi, getAnimatableNone: du };
4623
- function kn(e, t, n) {
4623
+ function Mn(e, t, n) {
4624
4624
  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;
4625
4625
  }
4626
4626
  function yo({ hue: e, saturation: t, lightness: n, alpha: r }) {
@@ -4630,7 +4630,7 @@ function yo({ hue: e, saturation: t, lightness: n, alpha: r }) {
4630
4630
  o = a = s = n;
4631
4631
  else {
4632
4632
  const l = n < 0.5 ? n * (1 + t) : n + t - n * t, c = 2 * n - l;
4633
- o = kn(c, l, e + 1 / 3), a = kn(c, l, e), s = kn(c, l, e - 1 / 3);
4633
+ o = Mn(c, l, e + 1 / 3), a = Mn(c, l, e), s = Mn(c, l, e - 1 / 3);
4634
4634
  }
4635
4635
  return {
4636
4636
  red: Math.round(o * 255),
@@ -4805,7 +4805,7 @@ function Bn(e, t, n) {
4805
4805
  });
4806
4806
  });
4807
4807
  }
4808
- function Mu(e, t) {
4808
+ function ku(e, t) {
4809
4809
  const n = {};
4810
4810
  return e.forEach((r) => {
4811
4811
  const { name: o, data_field: a, aggregation: s } = r, l = br(t, a, s);
@@ -4813,7 +4813,7 @@ function Mu(e, t) {
4813
4813
  }), n;
4814
4814
  }
4815
4815
  function Yi(e, t, n) {
4816
- const r = Mu(t, n), o = /^\{(.+)\}(.*)$/;
4816
+ const r = ku(t, n), o = /^\{(.+)\}(.*)$/;
4817
4817
  return e.split("$").map((a) => {
4818
4818
  var d;
4819
4819
  const s = o.exec(a);
@@ -4840,7 +4840,7 @@ const wr = {
4840
4840
  reference_lines: []
4841
4841
  };
4842
4842
  ge.use([ln, Ws, ri, vt, bt, yt, it]);
4843
- function ku(e, t, n) {
4843
+ function Mu(e, t, n) {
4844
4844
  const r = t.reduce((o, a) => {
4845
4845
  const s = Cr(a, n);
4846
4846
  return o[a.name] = zt(a, s), o;
@@ -4914,10 +4914,17 @@ function Fu({
4914
4914
  },
4915
4915
  xAxis: [{
4916
4916
  type: "category",
4917
- name: a.name
4917
+ name: a.name,
4918
+ axisTick: {
4919
+ show: !0,
4920
+ alignWithLabel: !0
4921
+ }
4918
4922
  }],
4919
4923
  yAxis: [{
4920
- name: s.name
4924
+ name: s.name,
4925
+ axisLine: {
4926
+ show: !0
4927
+ }
4921
4928
  }],
4922
4929
  series: [{
4923
4930
  name: s.name,
@@ -4928,7 +4935,7 @@ function Fu({
4928
4935
  },
4929
4936
  boxWidth: [10, 40],
4930
4937
  datasetIndex: 1
4931
- }, ...ku(d, c, n)]
4938
+ }, ...Mu(d, c, n)]
4932
4939
  };
4933
4940
  return !t || !r || !o ? null : /* @__PURE__ */ i(at, {
4934
4941
  echarts: ge,
@@ -5450,8 +5457,8 @@ function Bu({ x_axis_data_key: e }, {
5450
5457
  return h.data = p.map((v) => v[t]), h;
5451
5458
  const b = Ae(p, a);
5452
5459
  return Object.entries(b).map(([v, S]) => {
5453
- const M = qo(h);
5454
- return M.data = qu(u, S, e, t), M.name = v, M.color = void 0, M;
5460
+ const k = qo(h);
5461
+ return k.data = qu(u, S, e, t), k.name = v, k.color = void 0, k;
5455
5462
  });
5456
5463
  }
5457
5464
  function Hu(e, t, n, r) {
@@ -5486,6 +5493,10 @@ function Uu(e, t, n) {
5486
5493
  data: t,
5487
5494
  name: (r = e.x_axis_name) != null ? r : "",
5488
5495
  id: "main-x-axis",
5496
+ axisTick: {
5497
+ show: !0,
5498
+ alignWithLabel: !0
5499
+ },
5489
5500
  ...e.x_axis
5490
5501
  },
5491
5502
  ...n
@@ -5502,6 +5513,9 @@ function Yu(e, t) {
5502
5513
  show: !0,
5503
5514
  formatter: (s = t[o]) != null ? s : t.default
5504
5515
  },
5516
+ axisLine: {
5517
+ show: !0
5518
+ },
5505
5519
  nameTextStyle: {
5506
5520
  fontWeight: "bold",
5507
5521
  align: n
@@ -5544,6 +5558,10 @@ const Qu = {
5544
5558
  },
5545
5559
  splitLine: {
5546
5560
  show: !1
5561
+ },
5562
+ axisTick: {
5563
+ show: !0,
5564
+ alignWithLabel: !0
5547
5565
  }
5548
5566
  }
5549
5567
  ],
@@ -7111,7 +7129,7 @@ function Vd(e) {
7111
7129
  step: b = !1,
7112
7130
  group_by_key: v = "",
7113
7131
  display_name_on_line: S = !1,
7114
- lineStyle: M = {
7132
+ lineStyle: k = {
7115
7133
  type: "solid",
7116
7134
  width: 1
7117
7135
  }
@@ -7132,12 +7150,12 @@ function Vd(e) {
7132
7150
  step: b,
7133
7151
  group_by_key: v,
7134
7152
  display_name_on_line: S,
7135
- lineStyle: M
7153
+ lineStyle: k
7136
7154
  };
7137
7155
  }
7138
7156
  return e.map(t);
7139
7157
  }
7140
- function Md(e) {
7158
+ function kd(e) {
7141
7159
  return e || {
7142
7160
  templates: {
7143
7161
  top: "",
@@ -7146,14 +7164,14 @@ function Md(e) {
7146
7164
  variables: []
7147
7165
  };
7148
7166
  }
7149
- function kd({
7167
+ function Md({
7150
7168
  series: e,
7151
7169
  stats: t,
7152
7170
  ...n
7153
7171
  }) {
7154
7172
  return {
7155
7173
  series: Vd(e != null ? e : []),
7156
- stats: Md(t),
7174
+ stats: kd(t),
7157
7175
  ...n
7158
7176
  };
7159
7177
  }
@@ -7163,7 +7181,7 @@ function Fd({
7163
7181
  const {
7164
7182
  value: t,
7165
7183
  set: n
7166
- } = U(e.instanceData, "config"), r = e.data, o = L(() => We({}, t, Sr), [t]), a = L(() => kd(o), [o]);
7184
+ } = U(e.instanceData, "config"), r = e.data, o = L(() => We({}, t, Sr), [t]), a = L(() => Md(o), [o]);
7167
7185
  Z(() => {
7168
7186
  !we(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
7169
7187
  }, [o, a]);
@@ -7394,9 +7412,9 @@ function zd({
7394
7412
  barData: d,
7395
7413
  lineData: u
7396
7414
  } = L(() => {
7397
- const f = n.map((v) => [v[a.data_key], Number(v[s])]).sort((v, S) => S[1] - v[1]), h = f.reduce((v, S) => v + S[1], 0), b = f.reduce((v, S, M) => {
7398
- const k = M === 0 ? 0 : v[M - 1][1];
7399
- return v.push([S[0], k + S[1]]), v;
7415
+ const f = n.map((v) => [v[a.data_key], Number(v[s])]).sort((v, S) => S[1] - v[1]), h = f.reduce((v, S) => v + S[1], 0), b = f.reduce((v, S, k) => {
7416
+ const M = k === 0 ? 0 : v[k - 1][1];
7417
+ return v.push([S[0], M + S[1]]), v;
7400
7418
  }, []).map((v) => [v[0], v[1] / h]);
7401
7419
  return {
7402
7420
  barData: f,
@@ -7425,6 +7443,10 @@ function zd({
7425
7443
  },
7426
7444
  splitLine: {
7427
7445
  show: !1
7446
+ },
7447
+ axisTick: {
7448
+ show: !0,
7449
+ alignWithLabel: !0
7428
7450
  }
7429
7451
  }],
7430
7452
  yAxis: [{
@@ -7434,6 +7456,9 @@ function zd({
7434
7456
  fontWeight: "bold",
7435
7457
  align: "right"
7436
7458
  },
7459
+ axisLine: {
7460
+ show: !0
7461
+ },
7437
7462
  splitLine: {
7438
7463
  show: !1
7439
7464
  }
@@ -8279,10 +8304,17 @@ function ig(e, t) {
8279
8304
  ), { regressionSeries: r } = rg(e, n), o = {
8280
8305
  xAxis: {
8281
8306
  type: "category",
8282
- name: (a = e.x_axis.name) != null ? a : ""
8307
+ name: (a = e.x_axis.name) != null ? a : "",
8308
+ axisTick: {
8309
+ show: !0,
8310
+ alignWithLabel: !0
8311
+ }
8283
8312
  },
8284
8313
  yAxis: {
8285
- name: (s = e.y_axis.name) != null ? s : ""
8314
+ name: (s = e.y_axis.name) != null ? s : "",
8315
+ axisLine: {
8316
+ show: !0
8317
+ }
8286
8318
  },
8287
8319
  series: [
8288
8320
  {
@@ -8800,7 +8832,7 @@ const gg = {
8800
8832
  viewRender: sg,
8801
8833
  configRender: ug,
8802
8834
  createConfig: () => Vr
8803
- }, Mr = {
8835
+ }, kr = {
8804
8836
  content: ""
8805
8837
  };
8806
8838
  function Ji(e) {
@@ -8843,7 +8875,7 @@ function fg({
8843
8875
  const {
8844
8876
  value: t,
8845
8877
  set: n
8846
- } = U(e.instanceData, "config"), r = L(() => le({}, t, Mr), [t]), {
8878
+ } = U(e.instanceData, "config"), r = L(() => le({}, t, kr), [t]), {
8847
8879
  control: o,
8848
8880
  handleSubmit: a,
8849
8881
  watch: s,
@@ -8900,7 +8932,7 @@ class mg extends Se {
8900
8932
  F(this, "VERSION", 1);
8901
8933
  }
8902
8934
  fixMalformedConfig(n) {
8903
- return le({}, n, Mr);
8935
+ return le({}, n, kr);
8904
8936
  }
8905
8937
  configVersions() {
8906
8938
  this.version(1, (n) => ({
@@ -8915,8 +8947,8 @@ const hg = {
8915
8947
  name: "richText",
8916
8948
  viewRender: pg,
8917
8949
  configRender: fg,
8918
- createConfig: () => Mr
8919
- }, kr = {
8950
+ createConfig: () => kr
8951
+ }, Mr = {
8920
8952
  align: "center",
8921
8953
  template: "The variable ${value} is defined in Variables section",
8922
8954
  variables: [
@@ -8984,7 +9016,7 @@ function yg({
8984
9016
  context: e
8985
9017
  }) {
8986
9018
  const {
8987
- value: t = kr
9019
+ value: t = Mr
8988
9020
  } = U(e.instanceData, "config"), {
8989
9021
  template: n,
8990
9022
  variables: r,
@@ -9079,7 +9111,7 @@ function wg({
9079
9111
  align: f,
9080
9112
  template: h = "",
9081
9113
  variables: b = []
9082
- } = We({}, n, kr);
9114
+ } = We({}, n, Mr);
9083
9115
  return {
9084
9116
  variables: b,
9085
9117
  template: h,
@@ -9154,7 +9186,7 @@ const Sg = {
9154
9186
  createConfig() {
9155
9187
  return {
9156
9188
  version: 1,
9157
- config: kr
9189
+ config: Mr
9158
9190
  };
9159
9191
  },
9160
9192
  displayName: "Stats",
@@ -9340,7 +9372,7 @@ function Ve(e, t) {
9340
9372
  function Zt(e) {
9341
9373
  return e instanceof Function;
9342
9374
  }
9343
- function Mg(e, t) {
9375
+ function kg(e, t) {
9344
9376
  const n = [], r = (o) => {
9345
9377
  o.forEach((a) => {
9346
9378
  n.push(a);
@@ -9374,7 +9406,7 @@ function P(e, t, n) {
9374
9406
  return o;
9375
9407
  };
9376
9408
  }
9377
- function kg(e, t, n, r) {
9409
+ function Mg(e, t, n, r) {
9378
9410
  var o, a;
9379
9411
  const l = {
9380
9412
  ...e._getDefaultColumnDef(),
@@ -9609,10 +9641,10 @@ function Ht(e, t, n, r) {
9609
9641
  headers: []
9610
9642
  }, v = [];
9611
9643
  f.forEach((S) => {
9612
- const M = [...v].reverse()[0], k = S.column.depth === b.depth;
9644
+ const k = [...v].reverse()[0], M = S.column.depth === b.depth;
9613
9645
  let z, N = !1;
9614
- if (k && S.column.parent ? z = S.column.parent : (z = S.column, N = !0), M && (M == null ? void 0 : M.column) === z)
9615
- M.subHeaders.push(S);
9646
+ if (M && S.column.parent ? z = S.column.parent : (z = S.column, N = !0), k && (k == null ? void 0 : k.column) === z)
9647
+ k.subHeaders.push(S);
9616
9648
  else {
9617
9649
  const Y = _o(n, z, {
9618
9650
  id: [r, h, z.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
@@ -9631,16 +9663,16 @@ function Ht(e, t, n, r) {
9631
9663
  }));
9632
9664
  d(u, s - 1), c.reverse();
9633
9665
  const p = (f) => f.filter((b) => b.column.getIsVisible()).map((b) => {
9634
- let v = 0, S = 0, M = [0];
9635
- b.subHeaders && b.subHeaders.length ? (M = [], p(b.subHeaders).forEach((z) => {
9666
+ let v = 0, S = 0, k = [0];
9667
+ b.subHeaders && b.subHeaders.length ? (k = [], p(b.subHeaders).forEach((z) => {
9636
9668
  let {
9637
9669
  colSpan: N,
9638
9670
  rowSpan: Y
9639
9671
  } = z;
9640
- v += N, M.push(Y);
9672
+ v += N, k.push(Y);
9641
9673
  })) : v = 1;
9642
- const k = Math.min(...M);
9643
- return S = S + k, b.colSpan = v, b.rowSpan = S, {
9674
+ const M = Math.min(...k);
9675
+ return S = S + M, b.colSpan = v, b.rowSpan = S, {
9644
9676
  colSpan: v,
9645
9677
  rowSpan: S
9646
9678
  };
@@ -9729,8 +9761,8 @@ const Wt = {
9729
9761
  return;
9730
9762
  let v = {};
9731
9763
  t.setColumnSizingInfo((S) => {
9732
- var M, k;
9733
- 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);
9764
+ var k, M;
9765
+ const z = b - ((k = S == null ? void 0 : S.startOffset) != null ? k : 0), N = Math.max(z / ((M = S == null ? void 0 : S.startSize) != null ? M : 0), -0.999999);
9734
9766
  return S.columnSizingStart.forEach((Y) => {
9735
9767
  let [fe, ce] = Y;
9736
9768
  v[fe] = Math.round(Math.max(ce + ce * N, 0) * 100) / 100;
@@ -10987,8 +11019,8 @@ function ip(e) {
10987
11019
  getAllColumns: P(() => [n._getColumnDefs()], (u) => {
10988
11020
  const p = function(f, h, b) {
10989
11021
  return b === void 0 && (b = 0), f.map((v) => {
10990
- const S = kg(n, v, b, h), M = v;
10991
- return S.columns = M.columns ? p(M.columns, S, b + 1) : [], S;
11022
+ const S = Mg(n, v, b, h), k = v;
11023
+ return S.columns = k.columns ? p(k.columns, S, b + 1) : [], S;
10992
11024
  });
10993
11025
  };
10994
11026
  return p(u);
@@ -11077,7 +11109,7 @@ const sp = (e, t, n, r, o, a) => {
11077
11109
  return (c = s.getValue(l)) != null ? c : e.options.renderFallbackValue;
11078
11110
  },
11079
11111
  subRows: a != null ? a : [],
11080
- getLeafRows: () => Mg(s.subRows, (l) => l.subRows),
11112
+ getLeafRows: () => kg(s.subRows, (l) => l.subRows),
11081
11113
  getAllCells: P(() => [e.getAllLeafColumns()], (l) => l.map((c) => ap(e, s, c, c.id)), {
11082
11114
  key: process.env.NODE_ENV === "development" && "row.getAllCells",
11083
11115
  debug: () => {
@@ -11162,13 +11194,13 @@ function up() {
11162
11194
  var f;
11163
11195
  const b = a[h], v = s[b.id], S = (f = b == null ? void 0 : b.desc) != null ? f : !1;
11164
11196
  if (v.sortUndefined) {
11165
- const k = u.getValue(b.id), z = p.getValue(b.id), N = typeof k > "u", Y = typeof z > "u";
11197
+ const M = u.getValue(b.id), z = p.getValue(b.id), N = typeof M > "u", Y = typeof z > "u";
11166
11198
  if (N || Y)
11167
11199
  return N && Y ? 0 : N ? v.sortUndefined : -v.sortUndefined;
11168
11200
  }
11169
- let M = v.sortingFn(u, p, b.id);
11170
- if (M !== 0)
11171
- return S && (M *= -1), v.invertSorting && (M *= -1), M;
11201
+ let k = v.sortingFn(u, p, b.id);
11202
+ if (k !== 0)
11203
+ return S && (k *= -1), v.invertSorting && (k *= -1), k;
11172
11204
  }
11173
11205
  return u.index - p.index;
11174
11206
  }), d.forEach((u) => {
@@ -11283,7 +11315,7 @@ const bp = ({
11283
11315
  }) => {
11284
11316
  switch (e) {
11285
11317
  case "asc":
11286
- return /* @__PURE__ */ i(Ml, {
11318
+ return /* @__PURE__ */ i(kl, {
11287
11319
  size: 16
11288
11320
  });
11289
11321
  case "desc":
@@ -11400,7 +11432,7 @@ const Rp = or((e) => ({
11400
11432
  }
11401
11433
  }));
11402
11434
  function Ip(e) {
11403
- return e ? kt(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
11435
+ return e ? Mt(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
11404
11436
  }
11405
11437
  function Vp(e) {
11406
11438
  const t = e.tableCellContext.bgColor;
@@ -11427,13 +11459,13 @@ function vn(e) {
11427
11459
  })
11428
11460
  });
11429
11461
  }
11430
- function Mp(e) {
11462
+ function kp(e) {
11431
11463
  return /* @__PURE__ */ i(vn, {
11432
11464
  ...e,
11433
11465
  children: e.value
11434
11466
  });
11435
11467
  }
11436
- function kp(e) {
11468
+ function Mp(e) {
11437
11469
  return /* @__PURE__ */ i(vn, {
11438
11470
  ...e,
11439
11471
  children: e.value
@@ -11461,11 +11493,11 @@ function $p(e) {
11461
11493
  function Ep(e) {
11462
11494
  switch (e.type) {
11463
11495
  case Ke.string:
11464
- return /* @__PURE__ */ i(Mp, {
11496
+ return /* @__PURE__ */ i(kp, {
11465
11497
  ...e
11466
11498
  });
11467
11499
  case Ke.eloc:
11468
- return /* @__PURE__ */ i(kp, {
11500
+ return /* @__PURE__ */ i(Mp, {
11469
11501
  ...e
11470
11502
  });
11471
11503
  case Ke.number:
@@ -11482,13 +11514,13 @@ const Ap = (e) => {
11482
11514
  const t = mp(e), n = hp(t.triggerManager, Or.id), {
11483
11515
  colorManager: r
11484
11516
  } = He(Ne);
11485
- return Mt((o) => new zp(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
11517
+ return kt((o) => new zp(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
11486
11518
  };
11487
11519
  function Op({
11488
11520
  context: e,
11489
11521
  instance: t
11490
11522
  }) {
11491
- var _e, be, Me;
11523
+ var _e, be, ke;
11492
11524
  const n = (_e = e.data) != null ? _e : [], {
11493
11525
  height: r,
11494
11526
  width: o
@@ -11506,11 +11538,11 @@ function Op({
11506
11538
  value_field: ue,
11507
11539
  value_type: Ke.string
11508
11540
  })) : l, [s, l, n]), f = Ap({
11509
- getColIndex: Mt((ue) => p.indexOf(ue.column.columnDef.meta), [p]),
11541
+ getColIndex: kt((ue) => p.indexOf(ue.column.columnDef.meta), [p]),
11510
11542
  vizManager: e.vizManager,
11511
11543
  instance: t
11512
11544
  }), h = L(() => {
11513
- const ue = lp(), ke = p.map((xe) => ue.accessor(xe.value_field, {
11545
+ const ue = lp(), Me = p.map((xe) => ue.accessor(xe.value_field, {
11514
11546
  cell: (Ye) => /* @__PURE__ */ i(Ep, {
11515
11547
  tableCellContext: f(Ye.cell),
11516
11548
  value: Ye.getValue(),
@@ -11525,7 +11557,7 @@ function Op({
11525
11557
  cell: (xe) => xe.row.index + 1,
11526
11558
  header: "#",
11527
11559
  size: 10 * (n.length.toString().length + 1)
11528
- }), ...ke];
11560
+ }), ...Me];
11529
11561
  }, [p, f]), [b, v] = me([]), S = fp({
11530
11562
  data: n,
11531
11563
  state: {
@@ -11536,18 +11568,18 @@ function Op({
11536
11568
  getCoreRowModel: cp(),
11537
11569
  getSortedRowModel: up()
11538
11570
  }), {
11539
- rows: M
11540
- } = S.getRowModel(), k = w.useRef(null), z = Xs({
11541
- parentRef: k,
11542
- size: M.length,
11543
- estimateSize: Mt(() => 28, []),
11571
+ rows: k
11572
+ } = S.getRowModel(), M = w.useRef(null), z = Xs({
11573
+ parentRef: M,
11574
+ size: k.length,
11575
+ estimateSize: kt(() => 28, []),
11544
11576
  overscan: 20
11545
11577
  }), {
11546
11578
  virtualItems: N,
11547
11579
  totalSize: Y
11548
- } = 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;
11580
+ } = z, fe = N.length > 0 && ((be = N == null ? void 0 : N[0]) == null ? void 0 : be.start) || 0, ce = N.length > 0 ? Y - (((ke = N == null ? void 0 : N[N.length - 1]) == null ? void 0 : ke.end) || 0) : 0;
11549
11581
  return /* @__PURE__ */ i("div", {
11550
- ref: k,
11582
+ ref: M,
11551
11583
  style: {
11552
11584
  height: r,
11553
11585
  width: o
@@ -11564,15 +11596,15 @@ function Op({
11564
11596
  children: [/* @__PURE__ */ i("thead", {
11565
11597
  className: d.thead,
11566
11598
  children: S.getHeaderGroups().map((ue) => /* @__PURE__ */ i("tr", {
11567
- children: ue.headers.map((ke) => /* @__PURE__ */ i("th", {
11599
+ children: ue.headers.map((Me) => /* @__PURE__ */ i("th", {
11568
11600
  style: {
11569
- width: ke.getSize()
11601
+ width: Me.getSize()
11570
11602
  },
11571
11603
  children: /* @__PURE__ */ i(bp, {
11572
- header: ke,
11604
+ header: Me,
11573
11605
  cx: u
11574
11606
  })
11575
- }, ke.id))
11607
+ }, Me.id))
11576
11608
  }, ue.id))
11577
11609
  }), /* @__PURE__ */ g("tbody", {
11578
11610
  children: [fe > 0 && /* @__PURE__ */ i("tr", {
@@ -11582,12 +11614,12 @@ function Op({
11582
11614
  }
11583
11615
  })
11584
11616
  }), N.map((ue) => {
11585
- const ke = M[ue.index];
11617
+ const Me = k[ue.index];
11586
11618
  return /* @__PURE__ */ i("tr", {
11587
- children: ke.getVisibleCells().map((ye) => /* @__PURE__ */ i("td", {
11619
+ children: Me.getVisibleCells().map((ye) => /* @__PURE__ */ i("td", {
11588
11620
  children: aa(ye.column.columnDef.cell, ye.getContext())
11589
11621
  }, ye.id))
11590
- }, ke.id);
11622
+ }, Me.id);
11591
11623
  }), ce > 0 && /* @__PURE__ */ i("tr", {
11592
11624
  children: /* @__PURE__ */ i("td", {
11593
11625
  style: {
@@ -11720,7 +11752,7 @@ function Lp(e) {
11720
11752
  l(o), u();
11721
11753
  }, S = () => {
11722
11754
  u(), t == null || t(s);
11723
- }, M = De(o).format({
11755
+ }, k = De(o).format({
11724
11756
  average: !0
11725
11757
  });
11726
11758
  return /* @__PURE__ */ g("div", {
@@ -11734,7 +11766,7 @@ function Lp(e) {
11734
11766
  color: "dimmed",
11735
11767
  size: "sm",
11736
11768
  className: "palette-value--up palette-value",
11737
- children: M
11769
+ children: k
11738
11770
  }), /* @__PURE__ */ g(In, {
11739
11771
  width: 200,
11740
11772
  trapFocus: !0,
@@ -11746,7 +11778,7 @@ function Lp(e) {
11746
11778
  className: "palette-item",
11747
11779
  onClick: d,
11748
11780
  style: {
11749
- "--shadow-color": kt(n).alpha(0.5).hex(),
11781
+ "--shadow-color": Mt(n).alpha(0.5).hex(),
11750
11782
  backgroundColor: n
11751
11783
  }
11752
11784
  })
@@ -11781,7 +11813,7 @@ function Lp(e) {
11781
11813
  color: "dimmed",
11782
11814
  size: "sm",
11783
11815
  className: "palette-value--bottom palette-value",
11784
- children: M
11816
+ children: k
11785
11817
  })]
11786
11818
  });
11787
11819
  }
@@ -11821,8 +11853,8 @@ const Np = I(({
11821
11853
  group: S.category
11822
11854
  }));
11823
11855
  function f(S) {
11824
- S && s((M) => ({
11825
- ...M,
11856
+ S && s((k) => ({
11857
+ ...k,
11826
11858
  interpolation: S
11827
11859
  }));
11828
11860
  }
@@ -11830,8 +11862,8 @@ const Np = I(({
11830
11862
  u(), n == null || n(sn(a));
11831
11863
  };
11832
11864
  function b(S) {
11833
- s((M) => ({
11834
- ...M,
11865
+ s((k) => ({
11866
+ ...k,
11835
11867
  steps: S
11836
11868
  }));
11837
11869
  }
@@ -12731,7 +12763,7 @@ function Vf({
12731
12763
  })]
12732
12764
  });
12733
12765
  }
12734
- const Mf = [{
12766
+ const kf = [{
12735
12767
  label: "dev_load",
12736
12768
  value: ze.dev_load
12737
12769
  }, {
@@ -12743,7 +12775,7 @@ const Mf = [{
12743
12775
  }, {
12744
12776
  label: "comparison",
12745
12777
  value: ze.comparison
12746
- }], kf = ({
12778
+ }], Mf = ({
12747
12779
  conf: e,
12748
12780
  setConfByKey: t
12749
12781
  }) => {
@@ -12752,7 +12784,7 @@ const Mf = [{
12752
12784
  };
12753
12785
  return /* @__PURE__ */ i(T, {
12754
12786
  label: "Scenario",
12755
- data: Mf,
12787
+ data: kf,
12756
12788
  value: e.scenario,
12757
12789
  onChange: n
12758
12790
  });
@@ -12779,7 +12811,7 @@ function Ff({
12779
12811
  required: !0
12780
12812
  }), /* @__PURE__ */ g(y, {
12781
12813
  grow: !0,
12782
- children: [/* @__PURE__ */ i(kf, {
12814
+ children: [/* @__PURE__ */ i(Mf, {
12783
12815
  conf: r,
12784
12816
  setConfByKey: o
12785
12817
  }), /* @__PURE__ */ i(Sf, {
@@ -12858,7 +12890,7 @@ const Ef = {
12858
12890
  value: e.value,
12859
12891
  type: "single",
12860
12892
  category: "basic"
12861
- })), Of = [kc, Fc, Ac, Ec, $c, Oc], da = () => ({
12893
+ })), Of = [Mc, Fc, Ac, Ec, $c, Oc], da = () => ({
12862
12894
  id: "dashboard",
12863
12895
  version: zc,
12864
12896
  manifest: {
@@ -13169,7 +13201,7 @@ class Zf {
13169
13201
  return await this.attachments.getInstance(t);
13170
13202
  }
13171
13203
  }
13172
- const Mo = "__TRIGGERS";
13204
+ const ko = "__TRIGGERS";
13173
13205
  class em {
13174
13206
  constructor(t, n) {
13175
13207
  F(this, "attachments");
@@ -13182,11 +13214,11 @@ class em {
13182
13214
  triggerData: new pt(o, "data")
13183
13215
  };
13184
13216
  };
13185
- this.attachments = new mr(t, Mo, r);
13217
+ this.attachments = new mr(t, ko, r);
13186
13218
  }
13187
13219
  watchTriggerSnapshotList(t) {
13188
13220
  return this.instance.instanceData.watchItem(
13189
- Mo,
13221
+ ko,
13190
13222
  (n) => {
13191
13223
  const r = Po(n).map(
13192
13224
  (o) => ({
@@ -13645,7 +13677,7 @@ class gm {
13645
13677
  }
13646
13678
  }
13647
13679
  function pa(e) {
13648
- return Mt(
13680
+ return kt(
13649
13681
  (t) => {
13650
13682
  const n = t.getRequired(de.vizManager), r = n.resolveComponent(e.viz.type);
13651
13683
  return t.createScoped().provideFactory(de.instanceScope.vizInstance, () => n.getOrCreateInstance(e)).provideFactory(de.instanceScope.interactionManager, (o) => {
@@ -13687,7 +13719,7 @@ function pm({
13687
13719
  });
13688
13720
  return Et(async () => {
13689
13721
  await r.instanceData.setItem(null, n.viz.conf);
13690
- }, [r, n.viz.type]), o ? /* @__PURE__ */ i(Mc, {
13722
+ }, [r, n.viz.type]), o ? /* @__PURE__ */ i(kc, {
13691
13723
  ...t
13692
13724
  }) : /* @__PURE__ */ i(C, {
13693
13725
  children: "Checking update..."
@@ -14094,7 +14126,7 @@ const Sm = I(function({
14094
14126
  children: "Download Data"
14095
14127
  }), !h && /* @__PURE__ */ i(Ce.Item, {
14096
14128
  onClick: S,
14097
- icon: /* @__PURE__ */ i(Ms, {
14129
+ icon: /* @__PURE__ */ i(ks, {
14098
14130
  size: 14
14099
14131
  }),
14100
14132
  children: "Full Screen"
@@ -14110,7 +14142,7 @@ const Sm = I(function({
14110
14142
  children: "Settings"
14111
14143
  }), /* @__PURE__ */ i(Ce.Item, {
14112
14144
  onClick: b,
14113
- icon: /* @__PURE__ */ i(ks, {
14145
+ icon: /* @__PURE__ */ i(Ms, {
14114
14146
  size: 14
14115
14147
  }),
14116
14148
  children: "Duplicate"
@@ -14158,7 +14190,7 @@ function Dm(e) {
14158
14190
  }
14159
14191
  const Im = {
14160
14192
  border: "1px solid #e9ecef"
14161
- }, ko = {
14193
+ }, Mo = {
14162
14194
  border: "1px dashed transparent",
14163
14195
  transition: "border-color 300ms ease",
14164
14196
  "&:hover": {
@@ -14166,7 +14198,7 @@ const Im = {
14166
14198
  }
14167
14199
  };
14168
14200
  function Vm(e, t, n) {
14169
- return e.style.border.enabled ? Im : n || t ? ko : {
14201
+ return e.style.border.enabled ? Im : n || t ? Mo : {
14170
14202
  border: "1px dashed transparent"
14171
14203
  };
14172
14204
  }
@@ -14279,7 +14311,7 @@ function ya() {
14279
14311
  };
14280
14312
  }, []);
14281
14313
  }
14282
- const Mm = w.forwardRef(({
14314
+ const km = w.forwardRef(({
14283
14315
  handleAxis: e
14284
14316
  }, t) => /* @__PURE__ */ i(A, {
14285
14317
  ref: t,
@@ -14299,7 +14331,7 @@ const Mm = w.forwardRef(({
14299
14331
  children: /* @__PURE__ */ i($s, {
14300
14332
  size: 16
14301
14333
  })
14302
- })), km = w.forwardRef(({
14334
+ })), Mm = w.forwardRef(({
14303
14335
  handleAxis: e,
14304
14336
  ...t
14305
14337
  }, n) => /* @__PURE__ */ i(A, {
@@ -14345,7 +14377,7 @@ const Mm = w.forwardRef(({
14345
14377
  isDraggable: o,
14346
14378
  isResizable: a,
14347
14379
  draggableHandle: ".react-grid-customDragHandle",
14348
- resizeHandle: /* @__PURE__ */ i(km, {}),
14380
+ resizeHandle: /* @__PURE__ */ i(Mm, {}),
14349
14381
  children: t.panels.list.map((l, c) => /* @__PURE__ */ g("div", {
14350
14382
  "data-grid": {
14351
14383
  ...l.layout
@@ -14353,7 +14385,7 @@ const Mm = w.forwardRef(({
14353
14385
  style: {
14354
14386
  position: "relative"
14355
14387
  },
14356
- children: [o && /* @__PURE__ */ i(Mm, {}), /* @__PURE__ */ i(Lr, {
14388
+ children: [o && /* @__PURE__ */ i(km, {}), /* @__PURE__ */ i(Lr, {
14357
14389
  view: t,
14358
14390
  panel: l
14359
14391
  })]
@@ -15570,19 +15602,19 @@ const Kh = I(function({
15570
15602
  u.context.replace(t);
15571
15603
  }, [t]);
15572
15604
  const p = async () => {
15573
- const b = [...u.queries.json], v = [...u.sqlSnippets.json], S = [...u.views.json], M = {
15605
+ const b = [...u.queries.json], v = [...u.sqlSnippets.json], S = [...u.views.json], k = {
15574
15606
  ...u.mock_context.current
15575
- }, k = {
15607
+ }, M = {
15576
15608
  ...n,
15577
15609
  filters: [...u.filters.current],
15578
15610
  views: S,
15579
15611
  definition: {
15580
15612
  sqlSnippets: v,
15581
15613
  queries: b,
15582
- mock_context: M
15614
+ mock_context: k
15583
15615
  }
15584
15616
  };
15585
- await r(k);
15617
+ await r(M);
15586
15618
  }, f = Be(Pr, []), h = _a(f);
15587
15619
  return /* @__PURE__ */ i(Oo, {
15588
15620
  children: /* @__PURE__ */ i(pi, {
@@ -15666,15 +15698,15 @@ var Ra = { exports: {} };
15666
15698
  return function(o, a, s) {
15667
15699
  var l, c = function(f, h, b) {
15668
15700
  b === void 0 && (b = {});
15669
- var v = new Date(f), S = function(M, k) {
15670
- k === void 0 && (k = {});
15671
- var z = k.timeZoneName || "short", N = M + "|" + z, Y = r[N];
15672
- return Y || (Y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: M, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: z }), r[N] = Y), Y;
15701
+ var v = new Date(f), S = function(k, M) {
15702
+ M === void 0 && (M = {});
15703
+ var z = M.timeZoneName || "short", N = k + "|" + z, Y = r[N];
15704
+ return Y || (Y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: k, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: z }), r[N] = Y), Y;
15673
15705
  }(h, b);
15674
15706
  return S.formatToParts(v);
15675
15707
  }, d = function(f, h) {
15676
15708
  for (var b = c(f, h), v = [], S = 0; S < b.length; S += 1) {
15677
- var M = b[S], k = M.type, z = M.value, N = n[k];
15709
+ var k = b[S], M = k.type, z = k.value, N = n[M];
15678
15710
  N >= 0 && (v[N] = parseInt(z, 10));
15679
15711
  }
15680
15712
  var Y = v[3], fe = Y === 24 ? 0 : Y, ce = v[0] + "-" + v[1] + "-" + v[2] + " " + fe + ":" + v[4] + ":" + v[5] + ":000", _e = +f;
@@ -15682,12 +15714,12 @@ var Ra = { exports: {} };
15682
15714
  }, u = a.prototype;
15683
15715
  u.tz = function(f, h) {
15684
15716
  f === void 0 && (f = l);
15685
- var b = this.utcOffset(), v = this.toDate(), S = v.toLocaleString("en-US", { timeZone: f }), M = Math.round((v - new Date(S)) / 1e3 / 60), k = s(S).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(v.getTimezoneOffset() / 15) - M, !0);
15717
+ var b = this.utcOffset(), v = this.toDate(), S = v.toLocaleString("en-US", { timeZone: f }), k = Math.round((v - new Date(S)) / 1e3 / 60), M = s(S).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(v.getTimezoneOffset() / 15) - k, !0);
15686
15718
  if (h) {
15687
- var z = k.utcOffset();
15688
- k = k.add(b - z, "minute");
15719
+ var z = M.utcOffset();
15720
+ M = M.add(b - z, "minute");
15689
15721
  }
15690
- return k.$x.$timezone = f, k;
15722
+ return M.$x.$timezone = f, M;
15691
15723
  }, u.offsetName = function(f) {
15692
15724
  var h = this.$x.$timezone || s.tz.guess(), b = c(this.valueOf(), h, { timeZoneName: f }).find(function(v) {
15693
15725
  return v.type.toLowerCase() === "timezonename";
@@ -15701,16 +15733,16 @@ var Ra = { exports: {} };
15701
15733
  var b = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
15702
15734
  return p.call(b, f, h).tz(this.$x.$timezone, !0);
15703
15735
  }, s.tz = function(f, h, b) {
15704
- var v = b && h, S = b || h || l, M = d(+s(), S);
15736
+ var v = b && h, S = b || h || l, k = d(+s(), S);
15705
15737
  if (typeof f != "string")
15706
15738
  return s(f).tz(S);
15707
- var k = function(fe, ce, _e) {
15708
- var be = fe - 60 * ce * 1e3, Me = d(be, _e);
15709
- if (ce === Me)
15739
+ var M = function(fe, ce, _e) {
15740
+ var be = fe - 60 * ce * 1e3, ke = d(be, _e);
15741
+ if (ce === ke)
15710
15742
  return [be, ce];
15711
- var ue = d(be -= 60 * (Me - ce) * 1e3, _e);
15712
- return Me === ue ? [be, Me] : [fe - 60 * Math.min(Me, ue) * 1e3, Math.max(Me, ue)];
15713
- }(s.utc(f, v).valueOf(), M, S), z = k[0], N = k[1], Y = s(z).utcOffset(N);
15743
+ var ue = d(be -= 60 * (ke - ce) * 1e3, _e);
15744
+ return ke === ue ? [be, ke] : [fe - 60 * Math.min(ke, ue) * 1e3, Math.max(ke, ue)];
15745
+ }(s.utc(f, v).valueOf(), k, S), z = M[0], N = M[1], Y = s(z).utcOffset(N);
15714
15746
  return Y.$x.$timezone = S, Y;
15715
15747
  }, s.tz.guess = function() {
15716
15748
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -15752,9 +15784,9 @@ var Da = { exports: {} };
15752
15784
  };
15753
15785
  var p = c.utcOffset;
15754
15786
  c.utcOffset = function(v, S) {
15755
- var M = this.$utils().u;
15756
- if (M(v))
15757
- return this.$u ? 0 : M(this.$offset) ? p.call(this) : this.$offset;
15787
+ var k = this.$utils().u;
15788
+ if (k(v))
15789
+ return this.$u ? 0 : k(this.$offset) ? p.call(this) : this.$offset;
15758
15790
  if (typeof v == "string" && (v = function(Y) {
15759
15791
  Y === void 0 && (Y = "");
15760
15792
  var fe = Y.match(r);
@@ -15764,12 +15796,12 @@ var Da = { exports: {} };
15764
15796
  return be === 0 ? 0 : _e === "+" ? be : -be;
15765
15797
  }(v), v === null))
15766
15798
  return this;
15767
- var k = Math.abs(v) <= 16 ? 60 * v : v, z = this;
15799
+ var M = Math.abs(v) <= 16 ? 60 * v : v, z = this;
15768
15800
  if (S)
15769
- return z.$offset = k, z.$u = v === 0, z;
15801
+ return z.$offset = M, z.$u = v === 0, z;
15770
15802
  if (v !== 0) {
15771
15803
  var N = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
15772
- (z = this.local().add(k + N, n)).$offset = k, z.$x.$localOffset = N;
15804
+ (z = this.local().add(M + N, n)).$offset = M, z.$x.$localOffset = N;
15773
15805
  } else
15774
15806
  z = this.utc();
15775
15807
  return z;
@@ -15793,11 +15825,11 @@ var Da = { exports: {} };
15793
15825
  return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : h.call(this);
15794
15826
  };
15795
15827
  var b = c.diff;
15796
- c.diff = function(v, S, M) {
15828
+ c.diff = function(v, S, k) {
15797
15829
  if (v && this.$u === v.$u)
15798
- return b.call(this, v, S, M);
15799
- var k = this.local(), z = l(v).local();
15800
- return b.call(k, z, S, M);
15830
+ return b.call(this, v, S, k);
15831
+ var M = this.local(), z = l(v).local();
15832
+ return b.call(M, z, S, k);
15801
15833
  };
15802
15834
  };
15803
15835
  });