@modelform/react-native 0.1.0 → 0.2.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.
package/dist/index.js CHANGED
@@ -187,7 +187,9 @@
187
187
 
188
188
 
189
189
 
190
- var _chunkL4SQVIJVjs = require('./chunk-L4SQVIJV.js');
190
+
191
+
192
+ var _chunkM5R44SAFjs = require('./chunk-M5R44SAF.js');
191
193
 
192
194
  // src/ui/theme.tsx
193
195
  var _react = require('react');
@@ -377,7 +379,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
377
379
  if (!dashboard.refresh) return;
378
380
  let ms;
379
381
  try {
380
- ms = _chunkL4SQVIJVjs.parseDuration.call(void 0, dashboard.refresh);
382
+ ms = _chunkM5R44SAFjs.parseDuration.call(void 0, dashboard.refresh);
381
383
  } catch (e2) {
382
384
  return;
383
385
  }
@@ -385,7 +387,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
385
387
  return () => clearInterval(id);
386
388
  }, [dashboard.refresh, refresh]);
387
389
  const refreshKey = tick + externalKey;
388
- const range3 = _react.useMemo.call(void 0, () => _chunkL4SQVIJVjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
390
+ const range3 = _react.useMemo.call(void 0, () => _chunkM5R44SAFjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
389
391
  const shared = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), [range3, vars.variables, vars.variableInfo]);
390
392
  const value = _react.useMemo.call(void 0,
391
393
  () => ({
@@ -422,8 +424,8 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
422
424
  ] });
423
425
  }
424
426
  function useDashboardVariables(dashboard, resolve, rawRange) {
425
- const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkL4SQVIJVjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
426
- const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkL4SQVIJVjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
427
+ const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkM5R44SAFjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
428
+ const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkM5R44SAFjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
427
429
  const [runKey, setRunKey] = _react.useState.call(void 0, 0);
428
430
  const pending = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
429
431
  const stateRef = _react.useRef.call(void 0, state);
@@ -456,7 +458,7 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
456
458
  setState(update);
457
459
  setResolving(false);
458
460
  };
459
- _chunkL4SQVIJVjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkL4SQVIJVjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
461
+ _chunkM5R44SAFjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkM5R44SAFjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
460
462
  (res) => finish((s) => ({
461
463
  // Only the re-run variables change, so a pick made while this ran isn't overwritten.
462
464
  values: { ...s.values, ...Object.fromEntries([...names].filter((n) => n in res.values).map((n) => [n, res.values[n]])) },
@@ -470,11 +472,11 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
470
472
  const [loadedDashboard, setLoadedDashboard] = _react.useState.call(void 0, dashboard);
471
473
  if (dashboard !== loadedDashboard) {
472
474
  setLoadedDashboard(dashboard);
473
- setState((s) => ({ ...s, values: { ..._chunkL4SQVIJVjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
475
+ setState((s) => ({ ...s, values: { ..._chunkM5R44SAFjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
474
476
  }
475
477
  _react.useEffect.call(void 0, () => {
476
- const roots = _chunkL4SQVIJVjs.refreshedVariables.call(void 0, dashboard, "load");
477
- schedule([...roots, ..._chunkL4SQVIJVjs.variableDependents.call(void 0, dashboard, roots)]);
478
+ const roots = _chunkM5R44SAFjs.refreshedVariables.call(void 0, dashboard, "load");
479
+ schedule([...roots, ..._chunkM5R44SAFjs.variableDependents.call(void 0, dashboard, roots)]);
478
480
  }, [dashboard, schedule]);
479
481
  const mounted = _react.useRef.call(void 0, false);
480
482
  _react.useEffect.call(void 0, () => {
@@ -482,17 +484,17 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
482
484
  mounted.current = true;
483
485
  return;
484
486
  }
485
- const roots = _chunkL4SQVIJVjs.refreshedVariables.call(void 0, dashboard, "range");
486
- schedule([...roots, ..._chunkL4SQVIJVjs.variableDependents.call(void 0, dashboard, roots)]);
487
+ const roots = _chunkM5R44SAFjs.refreshedVariables.call(void 0, dashboard, "range");
488
+ schedule([...roots, ..._chunkM5R44SAFjs.variableDependents.call(void 0, dashboard, roots)]);
487
489
  }, [rawRange]);
488
490
  const setVariable = _react.useCallback.call(void 0,
489
491
  (name, value) => {
490
492
  setState((s) => ({ ...s, values: { ...s.values, [name]: value } }));
491
- schedule(_chunkL4SQVIJVjs.variableDependents.call(void 0, dashboard, [name]));
493
+ schedule(_chunkM5R44SAFjs.variableDependents.call(void 0, dashboard, [name]));
492
494
  },
493
495
  [dashboard, schedule]
494
496
  );
495
- const info = _react.useMemo.call(void 0, () => _chunkL4SQVIJVjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
497
+ const info = _react.useMemo.call(void 0, () => _chunkM5R44SAFjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
496
498
  return _react.useMemo.call(void 0,
497
499
  () => ({
498
500
  variables: state.values,
@@ -522,7 +524,7 @@ function usePanelData(panel, widthPx, enabled = true) {
522
524
  _react.useEffect.call(void 0, () => {
523
525
  if (!enabled || !request || !variablesReady) return;
524
526
  const controller = new AbortController();
525
- _chunkL4SQVIJVjs.queryPanel.call(void 0, request.panel, request.options, controller.signal).then((frames) => !controller.signal.aborted && setResult({ request, frames })).catch((e) => !controller.signal.aborted && setResult({ request, frames: [], error: String(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _5 => _5.message]), () => ( e))) }));
527
+ _chunkM5R44SAFjs.queryPanel.call(void 0, request.panel, request.options, controller.signal).then((frames) => !controller.signal.aborted && setResult({ request, frames })).catch((e) => !controller.signal.aborted && setResult({ request, frames: [], error: String(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _5 => _5.message]), () => ( e))) }));
526
528
  return () => controller.abort();
527
529
  }, [enabled, request, variablesReady]);
528
530
  if (!enabled) return IDLE;
@@ -532,7 +534,7 @@ function usePanelData(panel, widthPx, enabled = true) {
532
534
  function usePanelLinks(panel) {
533
535
  const { dashboard, variables, variableInfo: variableInfo2, range: range3, openLinks } = useDashboard();
534
536
  const resolve = _react.useCallback.call(void 0,
535
- (links, data) => _chunkL4SQVIJVjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
537
+ (links, data) => _chunkM5R44SAFjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
536
538
  [dashboard, variables, variableInfo2, panel.scopedVars, range3]
537
539
  );
538
540
  return { resolve, openLinks };
@@ -629,14 +631,14 @@ var ArrowIcon = ({ color, dir }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
629
631
  function displayExpr(expr) {
630
632
  if (expr.trim().startsWith("now")) return expr;
631
633
  try {
632
- return _chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, _chunkL4SQVIJVjs.parseTime.call(void 0, expr));
634
+ return _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, _chunkM5R44SAFjs.parseTime.call(void 0, expr));
633
635
  } catch (e3) {
634
636
  return expr;
635
637
  }
636
638
  }
637
639
  function tryParse(expr, roundUp, now = Date.now()) {
638
640
  try {
639
- return _chunkL4SQVIJVjs.parseTime.call(void 0, expr, now, roundUp);
641
+ return _chunkM5R44SAFjs.parseTime.call(void 0, expr, now, roundUp);
640
642
  } catch (e4) {
641
643
  return null;
642
644
  }
@@ -650,7 +652,7 @@ function endOfDay(ms) {
650
652
  return new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1).getTime() - 1e3;
651
653
  }
652
654
  function resolveTo(expr) {
653
- return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, endOfDay(_chunkL4SQVIJVjs.parseTime.call(void 0, expr))) : expr;
655
+ return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, endOfDay(_chunkM5R44SAFjs.parseTime.call(void 0, expr))) : expr;
654
656
  }
655
657
  function TimeRangeSheet({ visible, value, onApply, onClose }) {
656
658
  const theme = useDashTheme();
@@ -661,12 +663,12 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
661
663
  const [now] = _react.useState.call(void 0, () => Date.now());
662
664
  const [month, setMonth] = _react.useState.call(void 0, () => new Date(_nullishCoalesce(tryParse(value.from, false), () => ( now))));
663
665
  const fromMs = tryParse(from, false, now);
664
- const toMs = tryParse(_chunkL4SQVIJVjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
665
- const fromError = _chunkL4SQVIJVjs.timeExprError.call(void 0, from);
666
- const toError = _chunkL4SQVIJVjs.timeExprError.call(void 0, to);
666
+ const toMs = tryParse(_chunkM5R44SAFjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
667
+ const fromError = _chunkM5R44SAFjs.timeExprError.call(void 0, from);
668
+ const toError = _chunkM5R44SAFjs.timeExprError.call(void 0, to);
667
669
  const orderError = fromMs != null && toMs != null && fromMs >= toMs ? "\u201CTo\u201D must be after \u201CFrom\u201D" : null;
668
670
  const valid = !fromError && !toError && !orderError;
669
- const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, _chunkL4SQVIJVjs.parseTime.call(void 0, expr));
671
+ const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, _chunkM5R44SAFjs.parseTime.call(void 0, expr));
670
672
  const apply = () => {
671
673
  if (!valid) return;
672
674
  onApply({ from: normalize(from), to: normalize(resolveTo(to)) });
@@ -675,14 +677,14 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
675
677
  const pickDay = (day) => {
676
678
  const end = endOfDay(day);
677
679
  if (active === "from") {
678
- setFrom(_chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, day));
679
- if (toMs == null || toMs <= day) setTo(_chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, end));
680
+ setFrom(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, day));
681
+ if (toMs == null || toMs <= day) setTo(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, end));
680
682
  setActive("to");
681
683
  } else if (fromMs != null && day < startOfDay(fromMs)) {
682
- setFrom(_chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, day));
683
- setTo(_chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, end));
684
+ setFrom(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, day));
685
+ setTo(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, end));
684
686
  } else {
685
- setTo(_chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, end));
687
+ setTo(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, end));
686
688
  }
687
689
  };
688
690
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -718,7 +720,7 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
718
720
  }
719
721
  ),
720
722
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles3.sectionTitle, { color: theme.textSecondary }], children: "Relative ranges" }),
721
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkL4SQVIJVjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
723
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkM5R44SAFjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
722
724
  Chip,
723
725
  {
724
726
  label: r.label,
@@ -862,17 +864,17 @@ var FilterIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _re
862
864
  var CalendarIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zM4 10h16M8 3v4M16 3v4" }) });
863
865
  var ChevronIcon = ({ color, open }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: open ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" }) });
864
866
  var CheckIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.4, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 12.5l4.5 4.5L19 7" }) });
865
- function DashboardToolbar({ presets = _chunkL4SQVIJVjs.TIME_PRESETS }) {
867
+ function DashboardToolbar({ presets = _chunkM5R44SAFjs.TIME_PRESETS }) {
866
868
  const theme = useDashTheme();
867
869
  const { dashboard, rawRange, setRawRange, variables, variableErrors } = useDashboard();
868
870
  const [filtersOpen, setFiltersOpen] = _react.useState.call(void 0, false);
869
871
  const [rangeOpen, setRangeOpen] = _react.useState.call(void 0, false);
870
872
  const [rangeKey, setRangeKey] = _react.useState.call(void 0, 0);
871
873
  const custom = !presets.some((p) => rawRange.from === p.from && rawRange.to === p.to);
872
- const vars = _chunkL4SQVIJVjs.visibleVariables.call(void 0, dashboard);
874
+ const vars = _chunkM5R44SAFjs.visibleVariables.call(void 0, dashboard);
873
875
  const active = vars.filter((v) => {
874
876
  const cur = variables[v.name];
875
- return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkL4SQVIJVjs.ALL) : cur === _chunkL4SQVIJVjs.ALL);
877
+ return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkM5R44SAFjs.ALL) : cur === _chunkM5R44SAFjs.ALL);
876
878
  }).length;
877
879
  const hasError = vars.some((v) => variableErrors[v.name]);
878
880
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles4.toolbar, children: [
@@ -898,7 +900,7 @@ function DashboardToolbar({ presets = _chunkL4SQVIJVjs.TIME_PRESETS }) {
898
900
  setRangeOpen(true);
899
901
  },
900
902
  accessibilityRole: "button",
901
- accessibilityLabel: custom ? `Time range, ${_chunkL4SQVIJVjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
903
+ accessibilityLabel: custom ? `Time range, ${_chunkM5R44SAFjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
902
904
  style: ({ pressed }) => [
903
905
  custom ? styles4.rangeButton : styles4.iconButton,
904
906
  { borderColor: custom ? theme.accent : theme.border, backgroundColor: theme.surface },
@@ -906,7 +908,7 @@ function DashboardToolbar({ presets = _chunkL4SQVIJVjs.TIME_PRESETS }) {
906
908
  ],
907
909
  children: [
908
910
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CalendarIcon, { color: custom ? theme.accent : theme.textSecondary }),
909
- custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkL4SQVIJVjs.describeRange.call(void 0, rawRange) })
911
+ custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkM5R44SAFjs.describeRange.call(void 0, rawRange) })
910
912
  ]
911
913
  }
912
914
  ),
@@ -962,14 +964,14 @@ function FilterSection({ variable: v, open, onToggle }) {
962
964
  const theme = useDashTheme();
963
965
  const { variables, variableInfo: variableInfo2, variableErrors, variablesReady, setVariable } = useDashboard();
964
966
  const current = variables[v.name];
965
- const summary = _chunkL4SQVIJVjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
966
- const options = [...v.includeAll ? [{ text: "All", value: _chunkL4SQVIJVjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
967
+ const summary = _chunkM5R44SAFjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
968
+ const options = [...v.includeAll ? [{ text: "All", value: _chunkM5R44SAFjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
967
969
  const error = variableErrors[v.name];
968
970
  const choose = (value, selected) => {
969
- if (v.multi && value !== _chunkL4SQVIJVjs.ALL) {
970
- const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkL4SQVIJVjs.ALL);
971
+ if (v.multi && value !== _chunkM5R44SAFjs.ALL) {
972
+ const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkM5R44SAFjs.ALL);
971
973
  const next = selected ? cur.filter((c) => c !== value) : [...cur, value];
972
- setVariable(v.name, next.length ? next : [_chunkL4SQVIJVjs.ALL]);
974
+ setVariable(v.name, next.length ? next : [_chunkM5R44SAFjs.ALL]);
973
975
  } else {
974
976
  setVariable(v.name, v.multi ? [value] : value);
975
977
  if (!v.multi) onToggle();
@@ -1109,7 +1111,7 @@ function barCategory(panel, frame) {
1109
1111
  }
1110
1112
  function categoryLabels(field) {
1111
1113
  if (field.type !== "time") return field.values.map((v) => v == null ? "" : String(v));
1112
- const times = field.values.map((v) => v == null ? null : _chunkL4SQVIJVjs.toMillis.call(void 0, v));
1114
+ const times = field.values.map((v) => v == null ? null : _chunkM5R44SAFjs.toMillis.call(void 0, v));
1113
1115
  let step = Infinity;
1114
1116
  times.forEach((t, i) => {
1115
1117
  const prev = times[i - 1];
@@ -1155,19 +1157,19 @@ function formatTooltipTime(t) {
1155
1157
  return new Date(t).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
1156
1158
  }
1157
1159
  function styledSeries(panel, frames, scheme) {
1158
- return styleSeries(panel, _chunkL4SQVIJVjs.toSeries.call(void 0, frames), frames, scheme);
1160
+ return styleSeries(panel, _chunkM5R44SAFjs.toSeries.call(void 0, frames), frames, scheme);
1159
1161
  }
1160
1162
  function styledXYSeries(panel, frames, scheme) {
1161
- const { series, x } = _chunkL4SQVIJVjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1162
- const xConfig = x ? _chunkL4SQVIJVjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1163
+ const { series, x } = _chunkM5R44SAFjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1164
+ const xConfig = x ? _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1163
1165
  return { series: styleSeries(panel, series, frames, scheme), xConfig };
1164
1166
  }
1165
1167
  function styleSeries(panel, series, frames, scheme) {
1166
1168
  const frameOf = /* @__PURE__ */ new Map();
1167
1169
  frames.forEach((f) => f.fields.forEach((field) => frameOf.set(field, f)));
1168
1170
  return series.map((s, i) => {
1169
- const config = _chunkL4SQVIJVjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1170
- return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkL4SQVIJVjs.seriesColor.call(void 0, i, scheme, config) };
1171
+ const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1172
+ return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkM5R44SAFjs.seriesColor.call(void 0, i, scheme, config) };
1171
1173
  });
1172
1174
  }
1173
1175
  function reducedValues(panel, frames, scheme) {
@@ -1175,30 +1177,30 @@ function reducedValues(panel, frames, scheme) {
1175
1177
  const out = [];
1176
1178
  const multiple = frames.length > 1;
1177
1179
  frames.forEach(
1178
- (frame, fi) => _chunkL4SQVIJVjs.numberFields.call(void 0, frame).forEach((field) => {
1179
- const raw = _chunkL4SQVIJVjs.fieldDisplayName.call(void 0, field, frame, multiple);
1180
- const config = _chunkL4SQVIJVjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1180
+ (frame, fi) => _chunkM5R44SAFjs.numberFields.call(void 0, frame).forEach((field) => {
1181
+ const raw = _chunkM5R44SAFjs.fieldDisplayName.call(void 0, field, frame, multiple);
1182
+ const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1181
1183
  const values = field.values.map((v) => v == null ? null : Number(v));
1182
- const value = _chunkL4SQVIJVjs.reduce.call(void 0, values, calc);
1183
- const color = _chunkL4SQVIJVjs.seriesColor.call(void 0, out.length, scheme, config);
1184
- const step = _chunkL4SQVIJVjs.thresholdStep.call(void 0, value, config);
1185
- const mapped = _chunkL4SQVIJVjs.mappedResult.call(void 0, value, config);
1184
+ const value = _chunkM5R44SAFjs.reduce.call(void 0, values, calc);
1185
+ const color = _chunkM5R44SAFjs.seriesColor.call(void 0, out.length, scheme, config);
1186
+ const step = _chunkM5R44SAFjs.thresholdStep.call(void 0, value, config);
1187
+ const mapped = _chunkM5R44SAFjs.mappedResult.call(void 0, value, config);
1186
1188
  out.push({
1187
1189
  key: `${fi}/${field.name}/${JSON.stringify(_nullishCoalesce(field.labels, () => ( {})))}`,
1188
1190
  name: _nullishCoalesce(config.displayName, () => ( raw)),
1189
1191
  value,
1190
- text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkL4SQVIJVjs.formatValue.call(void 0, value, config),
1192
+ text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkM5R44SAFjs.formatValue.call(void 0, value, config),
1191
1193
  mapped,
1192
1194
  config,
1193
1195
  color,
1194
- stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkL4SQVIJVjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkL4SQVIJVjs.resolveColor.call(void 0, step.color, color) : color,
1196
+ stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkM5R44SAFjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkM5R44SAFjs.resolveColor.call(void 0, step.color, color) : color,
1195
1197
  sparkline: values,
1196
1198
  field,
1197
1199
  frame
1198
1200
  });
1199
1201
  })
1200
1202
  );
1201
- return _chunkL4SQVIJVjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1203
+ return _chunkM5R44SAFjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1202
1204
  }
1203
1205
  function yDomain(series, includeZero) {
1204
1206
  let min = Infinity;
@@ -1259,22 +1261,22 @@ function NoData({ message = "No data" }) {
1259
1261
  }
1260
1262
  function rowTooltipItems(panel, frame, row, multiple) {
1261
1263
  return frame.fields.flatMap((f) => {
1262
- const name = _chunkL4SQVIJVjs.fieldDisplayName.call(void 0, f, frame, multiple);
1263
- const config = _chunkL4SQVIJVjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1264
+ const name = _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple);
1265
+ const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1264
1266
  if (_optionalChain([config, 'access', _36 => _36.custom, 'optionalAccess', _37 => _37.hideFrom, 'optionalAccess', _38 => _38.tooltip])) return [];
1265
1267
  const v = f.values[row];
1266
- const value = v == null ? "\u2014" : f.type === "number" ? _chunkL4SQVIJVjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkL4SQVIJVjs.toMillis.call(void 0, v)) : String(v);
1268
+ const value = v == null ? "\u2014" : f.type === "number" ? _chunkM5R44SAFjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkM5R44SAFjs.toMillis.call(void 0, v)) : String(v);
1267
1269
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), value }];
1268
1270
  });
1269
1271
  }
1270
1272
  function rowLinks(panel, frame, row, multiple, resolve) {
1271
1273
  return mergeLinks(
1272
1274
  frame.fields.flatMap((f) => {
1273
- const name = _chunkL4SQVIJVjs.fieldDisplayName.call(void 0, f, frame, multiple);
1274
- const config = _chunkL4SQVIJVjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1275
+ const name = _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple);
1276
+ const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1275
1277
  if (!_optionalChain([config, 'access', _39 => _39.links, 'optionalAccess', _40 => _40.length])) return [];
1276
1278
  const v = f.values[row];
1277
- const text = v == null ? void 0 : f.type === "number" ? _chunkL4SQVIJVjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1279
+ const text = v == null ? void 0 : f.type === "number" ? _chunkM5R44SAFjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1278
1280
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), links: resolve(config.links, { frame, row, field: f, fieldName: _nullishCoalesce(config.displayName, () => ( name)), value: v, text }) }];
1279
1281
  })
1280
1282
  );
@@ -1287,7 +1289,7 @@ function valueLinks(panel, v, resolve) {
1287
1289
  fieldName: v.name,
1288
1290
  seriesName: v.name,
1289
1291
  value: v.value,
1290
- text: _chunkL4SQVIJVjs.formatValue.call(void 0, v.value, v.config),
1292
+ text: _chunkM5R44SAFjs.formatValue.call(void 0, v.value, v.config),
1291
1293
  calc: _nullishCoalesce(_optionalChain([panel, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.reduceOptions, 'optionalAccess', _46 => _46.calcs, 'optionalAccess', _47 => _47[0]]), () => ( "lastNotNull"))
1292
1294
  });
1293
1295
  }
@@ -1432,15 +1434,15 @@ function NumberInput({ panel, value, onChange }) {
1432
1434
  }
1433
1435
  function DurationInput({ panel, value, onChange }) {
1434
1436
  const theme = useDashTheme();
1435
- const toDigits = (v) => typeof v === "number" ? _chunkL4SQVIJVjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1437
+ const toDigits = (v) => typeof v === "number" ? _chunkM5R44SAFjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1436
1438
  const [digits, setDigits] = _react.useState.call(void 0, toDigits(value));
1437
1439
  const [syncedValue, setSyncedValue] = _react.useState.call(void 0, value);
1438
1440
  if (value !== syncedValue) {
1439
1441
  setSyncedValue(value);
1440
- setDigits((d) => value == null ? _chunkL4SQVIJVjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkL4SQVIJVjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1442
+ setDigits((d) => value == null ? _chunkM5R44SAFjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkM5R44SAFjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1441
1443
  }
1442
1444
  const masked = digits ? maskClock(digits) : "";
1443
- const invalid = !!digits && _chunkL4SQVIJVjs.parseClockDigits.call(void 0, digits) == null;
1445
+ const invalid = !!digits && _chunkM5R44SAFjs.parseClockDigits.call(void 0, digits) == null;
1444
1446
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles6.numberField, { borderColor: invalid ? theme.danger : theme.border }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1445
1447
  _reactnative.TextInput,
1446
1448
  {
@@ -1448,7 +1450,7 @@ function DurationInput({ panel, value, onChange }) {
1448
1450
  onChangeText: (t) => {
1449
1451
  const d = t.replace(/\D/g, "").replace(/^0+/, "").slice(0, 6);
1450
1452
  setDigits(d);
1451
- onChange(_chunkL4SQVIJVjs.parseClockDigits.call(void 0, d));
1453
+ onChange(_chunkM5R44SAFjs.parseClockDigits.call(void 0, d));
1452
1454
  },
1453
1455
  keyboardType: "number-pad",
1454
1456
  placeholder: _nullishCoalesce(panel.options.placeholder, () => ( "00:00.00")),
@@ -1634,10 +1636,10 @@ function SuggestTextInput({ panel, value, onChange }) {
1634
1636
  }, [store, metric, suggestWith]);
1635
1637
  const withText = suggestWith ? form.value(suggestWith) : null;
1636
1638
  const own = entries.filter((e) => e.metric === metric);
1637
- const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkL4SQVIJVjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1639
+ const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkM5R44SAFjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1638
1640
  const query = typed ? text : "";
1639
- const fromScoped = _chunkL4SQVIJVjs.textSuggestions.call(void 0, scoped, query);
1640
- const suggestions = (fromScoped.length ? fromScoped : _chunkL4SQVIJVjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1641
+ const fromScoped = _chunkM5R44SAFjs.textSuggestions.call(void 0, scoped, query);
1642
+ const suggestions = (fromScoped.length ? fromScoped : _chunkM5R44SAFjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1641
1643
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles6.suggest, children: [
1642
1644
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1643
1645
  _reactnative.TextInput,
@@ -1676,7 +1678,7 @@ function CounterInput({ panel }) {
1676
1678
  const { metric, increment = 1, unit } = panel.options;
1677
1679
  const [today, setToday] = _react.useState.call(void 0, 0);
1678
1680
  _react.useEffect.call(void 0, () => {
1679
- const load = () => store.list({ metrics: [metric], from: _chunkL4SQVIJVjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1681
+ const load = () => store.list({ metrics: [metric], from: _chunkM5R44SAFjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1680
1682
  load();
1681
1683
  return store.subscribe(load);
1682
1684
  }, [store, metric]);
@@ -1878,7 +1880,7 @@ function BarGaugePanel({ panel, frames }) {
1878
1880
  const min = _nullishCoalesce(v.config.min, () => ( 0));
1879
1881
  const max = _nullishCoalesce(v.config.max, () => ( Math.max(...values.map((o) => _nullishCoalesce(o.value, () => ( 0))), 1)));
1880
1882
  const frac = v.value == null ? 0 : Math.min(1, Math.max(0, (v.value - min) / (max - min || 1)));
1881
- const color = v.config.thresholds || _optionalChain([v, 'access', _72 => _72.mapped, 'optionalAccess', _73 => _73.color]) ? v.stateColor : _chunkL4SQVIJVjs.resolveColor.call(void 0, _optionalChain([v, 'access', _74 => _74.config, 'access', _75 => _75.color, 'optionalAccess', _76 => _76.fixedColor]), v.color);
1883
+ const color = v.config.thresholds || _optionalChain([v, 'access', _72 => _72.mapped, 'optionalAccess', _73 => _73.color]) ? v.stateColor : _chunkM5R44SAFjs.resolveColor.call(void 0, _optionalChain([v, 'access', _74 => _74.config, 'access', _75 => _75.color, 'optionalAccess', _76 => _76.fixedColor]), v.color);
1882
1884
  const hasLinks = !!_optionalChain([v, 'access', _77 => _77.config, 'access', _78 => _78.links, 'optionalAccess', _79 => _79.length]);
1883
1885
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1884
1886
  _reactnative.Pressable,
@@ -2059,7 +2061,7 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2059
2061
  const color = _nullishCoalesce(style.color, () => ( {}));
2060
2062
  const size = _nullishCoalesce(style.size, () => ( {}));
2061
2063
  const text = style.text;
2062
- const fixedColor = _chunkL4SQVIJVjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2064
+ const fixedColor = _chunkM5R44SAFjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2063
2065
  const heat = layer.type === "heatmap";
2064
2066
  const weight = _nullishCoalesce(config.weight, () => ( {}));
2065
2067
  const legend = [];
@@ -2071,14 +2073,14 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2071
2073
  let { xs, ys } = located;
2072
2074
  if (layer.type === "lastPointTracker" && rows.length) [rows, xs, ys] = [rows.slice(-1), xs.slice(-1), ys.slice(-1)];
2073
2075
  const find = (field) => field ? fieldByName(frame, field, multiple) : void 0;
2074
- const configOf = (f) => _chunkL4SQVIJVjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkL4SQVIJVjs.fieldDisplayName.call(void 0, f, frame, multiple));
2076
+ const configOf = (f) => _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple));
2075
2077
  let colors = rows.map(() => fixedColor);
2076
2078
  const colorField = !heat ? find(color.field) : void 0;
2077
2079
  if (colorField) {
2078
2080
  const cConfig = configOf(colorField);
2079
2081
  const values = rows.map((i) => num(colorField.values[i]));
2080
2082
  const extent = range(values);
2081
- colors = values.map((v) => _chunkL4SQVIJVjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2083
+ colors = values.map((v) => _chunkM5R44SAFjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2082
2084
  if (showsLegend(layer) && legend.length === 0) legend.push(...thresholdLegend(`${key}/${frames.indexOf(frame)}`, cConfig, fixedColor));
2083
2085
  }
2084
2086
  const dim = heat ? weight : size;
@@ -2136,8 +2138,8 @@ function thresholdLegend(key, config, fallback) {
2136
2138
  if (steps.length < 2) return [];
2137
2139
  return steps.map((s, i) => ({
2138
2140
  key: `${key}/${i}`,
2139
- name: s.value == null ? `< ${_chunkL4SQVIJVjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkL4SQVIJVjs.formatValue.call(void 0, s.value, config)}+`,
2140
- color: _chunkL4SQVIJVjs.resolveColor.call(void 0, s.color, fallback)
2141
+ name: s.value == null ? `< ${_chunkM5R44SAFjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkM5R44SAFjs.formatValue.call(void 0, s.value, config)}+`,
2142
+ color: _chunkM5R44SAFjs.resolveColor.call(void 0, s.color, fallback)
2141
2143
  }));
2142
2144
  }
2143
2145
  var isDataLayer = (type) => type === "markers" || type === "heatmap" || type === "route" || type === "lastPointTracker";
@@ -2147,15 +2149,15 @@ function gazetteerPaths(panel, frames) {
2147
2149
  for (const layer of _nullishCoalesce(_optionalChain([panel, 'access', _97 => _97.options, 'optionalAccess', _98 => _98.layers]), () => ( DEFAULT_LAYERS))) {
2148
2150
  if (!isDataLayer(layer.type)) continue;
2149
2151
  const mode = _nullishCoalesce(_optionalChain([layer, 'access', _99 => _99.location, 'optionalAccess', _100 => _100.mode]), () => ( "auto"));
2150
- if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _101 => _101.location, 'optionalAccess', _102 => _102.gazetteer]) || _chunkL4SQVIJVjs.DEFAULT_GAZETTEER);
2151
- else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkL4SQVIJVjs.DEFAULT_GAZETTEER);
2152
+ if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _101 => _101.location, 'optionalAccess', _102 => _102.gazetteer]) || _chunkM5R44SAFjs.DEFAULT_GAZETTEER);
2153
+ else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkM5R44SAFjs.DEFAULT_GAZETTEER);
2152
2154
  }
2153
2155
  return [...paths];
2154
2156
  }
2155
2157
  var LAT_NAMES = ["lat", "latitude"];
2156
2158
  var LON_NAMES = ["lon", "lng", "long", "longitude"];
2157
2159
  function fieldByName(frame, name, multiple) {
2158
- return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkL4SQVIJVjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2160
+ return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2159
2161
  }
2160
2162
  function locate2(frame, location = {}, gazetteers = {}) {
2161
2163
  const mode = _nullishCoalesce(location.mode, () => ( "auto"));
@@ -2174,10 +2176,10 @@ function locate2(frame, location = {}, gazetteers = {}) {
2174
2176
  lat = named(LAT_NAMES);
2175
2177
  lon = named(LON_NAMES);
2176
2178
  if (!lat || !lon) hash = named(["geohash"]);
2177
- if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkL4SQVIJVjs.DEFAULT_GAZETTEER]];
2179
+ if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkM5R44SAFjs.DEFAULT_GAZETTEER]];
2178
2180
  } else if (mode === "lookup") {
2179
2181
  lookup = location.lookup ? fieldByName(frame, location.lookup, false) : lookupField(frame);
2180
- gazetteer = gazetteers[location.gazetteer || _chunkL4SQVIJVjs.DEFAULT_GAZETTEER];
2182
+ gazetteer = gazetteers[location.gazetteer || _chunkM5R44SAFjs.DEFAULT_GAZETTEER];
2181
2183
  }
2182
2184
  const rows = [];
2183
2185
  const xs = [];
@@ -2226,8 +2228,8 @@ function decodeGeohash(hash) {
2226
2228
  }
2227
2229
  function cellText(field, v, config) {
2228
2230
  if (v == null) return "";
2229
- if (field.type === "number") return _chunkL4SQVIJVjs.formatDisplay.call(void 0, Number(v), config);
2230
- if (field.type === "time") return new Date(_chunkL4SQVIJVjs.toMillis.call(void 0, v)).toLocaleString();
2231
+ if (field.type === "number") return _chunkM5R44SAFjs.formatDisplay.call(void 0, Number(v), config);
2232
+ if (field.type === "time") return new Date(_chunkM5R44SAFjs.toMillis.call(void 0, v)).toLocaleString();
2231
2233
  return String(v);
2232
2234
  }
2233
2235
  function num(v) {
@@ -2477,11 +2479,11 @@ function useGazetteers(panel, frames) {
2477
2479
  let live = true;
2478
2480
  let ds;
2479
2481
  try {
2480
- ds = _optionalChain([resolve, 'optionalCall', _112 => _112(_chunkL4SQVIJVjs.normalizeRef.call(void 0, panel.datasource))]);
2482
+ ds = _optionalChain([resolve, 'optionalCall', _112 => _112(_chunkM5R44SAFjs.normalizeRef.call(void 0, panel.datasource))]);
2481
2483
  } catch (e5) {
2482
2484
  }
2483
2485
  const paths = key.split("\n");
2484
- Promise.allSettled(paths.map((p) => _chunkL4SQVIJVjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2486
+ Promise.allSettled(paths.map((p) => _chunkM5R44SAFjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2485
2487
  if (!live) return;
2486
2488
  const gazetteers = {};
2487
2489
  const errors = [];
@@ -2624,8 +2626,8 @@ function cellType(config) {
2624
2626
  }
2625
2627
  function tableColumns(panel, frame, multipleFrames = false) {
2626
2628
  return frame.fields.flatMap((field, i) => {
2627
- const raw = _chunkL4SQVIJVjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2628
- const config = _chunkL4SQVIJVjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2629
+ const raw = _chunkM5R44SAFjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2630
+ const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2629
2631
  const custom = _nullishCoalesce(config.custom, () => ( {}));
2630
2632
  if (custom.hidden || _optionalChain([custom, 'access', _122 => _122.hideFrom, 'optionalAccess', _123 => _123.viz])) return [];
2631
2633
  const numeric = field.type === "number";
@@ -2668,16 +2670,16 @@ function tableFooter(columns) {
2668
2670
  counted = true;
2669
2671
  return [{ label: "Count", text: String(c.field.values.length) }];
2670
2672
  }
2671
- if (!_chunkL4SQVIJVjs.isReducer.call(void 0, r)) return [];
2672
- const label = _chunkL4SQVIJVjs.REDUCER_LABELS[r];
2673
+ if (!_chunkM5R44SAFjs.isReducer.call(void 0, r)) return [];
2674
+ const label = _chunkM5R44SAFjs.REDUCER_LABELS[r];
2673
2675
  if (r === "count") return [{ label, text: String(c.field.values.length) }];
2674
2676
  if (c.field.type !== "number") {
2675
2677
  if (r === "distinctCount") return [{ label, text: String(new Set(c.field.values.filter((v) => v != null)).size) }];
2676
2678
  return [];
2677
2679
  }
2678
- const value = _chunkL4SQVIJVjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2680
+ const value = _chunkM5R44SAFjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2679
2681
  const counts = r === "distinctCount" || r === "changeCount";
2680
- return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkL4SQVIJVjs.formatValue.call(void 0, value, c.config) }];
2682
+ return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkM5R44SAFjs.formatValue.call(void 0, value, c.config) }];
2681
2683
  });
2682
2684
  return lines.length === 1 && lines[0].label !== "Count" ? [{ text: lines[0].text }] : lines;
2683
2685
  });
@@ -2696,13 +2698,13 @@ function extentOf(values) {
2696
2698
  }
2697
2699
  function cellDisplay(col, raw, fallbackColor) {
2698
2700
  const { config, field } = col;
2699
- const mapped = _chunkL4SQVIJVjs.mappedResult.call(void 0, raw, config);
2701
+ const mapped = _chunkM5R44SAFjs.mappedResult.call(void 0, raw, config);
2700
2702
  const num4 = field.type === "number" && raw != null && Number.isFinite(Number(raw)) ? Number(raw) : null;
2701
- const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _137 => _137.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkL4SQVIJVjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkL4SQVIJVjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2703
+ const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _137 => _137.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkM5R44SAFjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkM5R44SAFjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2702
2704
  if (col.cellType === "auto") return { text };
2703
2705
  const mode = _optionalChain([config, 'access', _138 => _138.color, 'optionalAccess', _139 => _139.mode]);
2704
- const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _140 => _140.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _141 => _141.color, 'optionalAccess', _142 => _142.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkL4SQVIJVjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _143 => _143.color]) : void 0)));
2705
- const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _144 => _144.color]) ? _chunkL4SQVIJVjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkL4SQVIJVjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2706
+ const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _140 => _140.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _141 => _141.color, 'optionalAccess', _142 => _142.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkM5R44SAFjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _143 => _143.color]) : void 0)));
2707
+ const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _144 => _144.color]) ? _chunkM5R44SAFjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkM5R44SAFjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2706
2708
  if (col.cellType === "color-text") return { text, color };
2707
2709
  if (col.cellType === "color-background") return { text, background: color };
2708
2710
  const min = _nullishCoalesce(config.min, () => ( Math.min(0, _nullishCoalesce(_optionalChain([col, 'access', _145 => _145.extent, 'optionalAccess', _146 => _146[0]]), () => ( 0)))));
@@ -2733,7 +2735,7 @@ function sortedRows(columns, length, sort) {
2733
2735
  if (!col) return rows;
2734
2736
  const { field } = col;
2735
2737
  const dir = sort.desc ? -1 : 1;
2736
- const key = (v) => field.type === "time" ? _chunkL4SQVIJVjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2738
+ const key = (v) => field.type === "time" ? _chunkM5R44SAFjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2737
2739
  const empty = (v) => v == null || v === "" || typeof v === "number" && Number.isNaN(v);
2738
2740
  return rows.sort((a, b) => {
2739
2741
  const va = field.values[a];
@@ -2799,8 +2801,8 @@ function TablePanel({ panel, frames }) {
2799
2801
  const columns = _react.useMemo.call(void 0, () => frame ? tableColumns(panel, frame, frames.length > 1) : [], [panel, frame, frames.length]);
2800
2802
  const [tapped, setSort] = _react.useState.call(void 0, );
2801
2803
  const sort = tapped === void 0 ? initialSort(panel, columns) : tapped;
2802
- const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkL4SQVIJVjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
2803
- if (!frame || !_chunkL4SQVIJVjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
2804
+ const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkM5R44SAFjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
2805
+ if (!frame || !_chunkM5R44SAFjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
2804
2806
  const shown = order.slice(0, 500);
2805
2807
  const rowColumn = columns.find((c) => c.applyToRow);
2806
2808
  const footer = tableFooter(columns);
@@ -2900,7 +2902,7 @@ function BarChartPanel({ panel, frames, width }) {
2900
2902
  {
2901
2903
  style: [styles10.tick, { color: theme.textMuted, top: plot.height * (1 - barFraction(axis, t)) - 7 }, axis.side === "left" ? styles10.tickLeft : styles10.tickRight],
2902
2904
  numberOfLines: 1,
2903
- children: _chunkL4SQVIJVjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
2905
+ children: _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
2904
2906
  },
2905
2907
  t
2906
2908
  )) });
@@ -3026,7 +3028,7 @@ function TimeSeriesPanel({ panel, frames }) {
3026
3028
  const y = linearScale(yMin, yMax, PAD.top + plotH, PAD.top);
3027
3029
  const span = xTo - xFrom;
3028
3030
  const xTicks = numericX ? numberTicks(xFrom, xTo, plotW) : timeTicks(xFrom, xTo, plotW);
3029
- const xLabel = (t) => numericX ? _chunkL4SQVIJVjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3031
+ const xLabel = (t) => numericX ? _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3030
3032
  const unitConfig = series[0].config;
3031
3033
  const barSeries = series.filter((s) => style(s) === "bars");
3032
3034
  const pointsCount = Math.max(...series.map((s) => s.times.length));
@@ -3044,11 +3046,11 @@ function TimeSeriesPanel({ panel, frames }) {
3044
3046
  if (!pinch.current) pinch.current = { start: { from: xFrom, to: xTo }, dist, frac };
3045
3047
  const p = pinch.current;
3046
3048
  const limits = extent ? { minSpan: (extent[1] - extent[0]) / 1e3, maxSpan: extent[1] - extent[0], minFrom: extent[0], maxTo: extent[1] } : { maxTo: Math.max(Date.now(), p.start.to) };
3047
- setPreview(_chunkL4SQVIJVjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3049
+ setPreview(_chunkM5R44SAFjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3048
3050
  };
3049
3051
  const onPinchEnd = (commit) => {
3050
3052
  if (commit && pinch.current && preview) {
3051
- if (!extent) setRawRange({ from: _chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkL4SQVIJVjs.formatLocalDateTime.call(void 0, preview.to) });
3053
+ if (!extent) setRawRange({ from: _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, preview.to) });
3052
3054
  else setXZoom(preview.to - preview.from >= extent[1] - extent[0] ? null : preview);
3053
3055
  }
3054
3056
  pinch.current = null;
@@ -3103,7 +3105,7 @@ function TimeSeriesPanel({ panel, frames }) {
3103
3105
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3104
3106
  ticks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3105
3107
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: PAD.left, x2: PAD.left + plotW, y1: y(t), y2: y(t), stroke: theme.grid, strokeWidth: 1 }),
3106
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkL4SQVIJVjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3108
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3107
3109
  ] }, t)),
3108
3110
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3109
3111
  _reactnativesvg.Text,
@@ -3169,11 +3171,11 @@ function TimeSeriesPanel({ panel, frames }) {
3169
3171
  x(hover.time) > size.width / 2 ? { right: size.width - x(hover.time) + 8 } : { left: x(hover.time) + 8 }
3170
3172
  ],
3171
3173
  children: [
3172
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkL4SQVIJVjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3174
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkM5R44SAFjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3173
3175
  hover.rows.map((r) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles11.tooltipRow, children: [
3174
3176
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles11.swatch, { backgroundColor: r.color }] }),
3175
3177
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipName, { color: theme.textSecondary }], numberOfLines: 1, children: r.name }),
3176
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipValue, { color: theme.text }], children: _chunkL4SQVIJVjs.formatValue.call(void 0, r.value, r.config) })
3178
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipValue, { color: theme.text }], children: _chunkM5R44SAFjs.formatValue.call(void 0, r.value, r.config) })
3177
3179
  ] }, r.key)),
3178
3180
  isPinned && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipLinks, { links: hoverLinks, onOpen: (l) => openLinks([l]) })
3179
3181
  ]
@@ -3258,7 +3260,7 @@ function linkData(r, frames, xField) {
3258
3260
  if (frame && xField === void 0) {
3259
3261
  row = r.index;
3260
3262
  } else if (frame) {
3261
- const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkL4SQVIJVjs.numberFields.call(void 0, frame)[0]));
3263
+ const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkM5R44SAFjs.numberFields.call(void 0, frame)[0]));
3262
3264
  const at = _optionalChain([xf, 'optionalAccess', _206 => _206.values, 'access', _207 => _207.findIndex, 'call', _208 => _208((v, k) => Number(v) === r.time && Number(r.series.field.values[k]) === r.value)]);
3263
3265
  row = at != null && at >= 0 ? at : void 0;
3264
3266
  }
@@ -3269,7 +3271,7 @@ function linkData(r, frames, xField) {
3269
3271
  fieldName: r.name,
3270
3272
  seriesName: r.name,
3271
3273
  value: r.value,
3272
- text: _chunkL4SQVIJVjs.formatValue.call(void 0, r.value, r.config),
3274
+ text: _chunkM5R44SAFjs.formatValue.call(void 0, r.value, r.config),
3273
3275
  time: xField === void 0 ? r.time : void 0
3274
3276
  };
3275
3277
  }
@@ -3330,8 +3332,8 @@ function xySeries(panel, frames, scheme) {
3330
3332
  const { manual, series: maps, exclude } = mappings(panel);
3331
3333
  const multiple = frames.length > 1;
3332
3334
  const out = [];
3333
- const config = (field, frame) => _chunkL4SQVIJVjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkL4SQVIJVjs.fieldDisplayName.call(void 0, field, frame, multiple));
3334
- const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkL4SQVIJVjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkL4SQVIJVjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3335
+ const config = (field, frame) => _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkM5R44SAFjs.fieldDisplayName.call(void 0, field, frame, multiple));
3336
+ const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkM5R44SAFjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3335
3337
  for (const [mi, m] of (maps.length ? maps : [{}]).entries()) {
3336
3338
  const matcher = _optionalChain([m, 'access', _219 => _219.frame, 'optionalAccess', _220 => _220.matcher]);
3337
3339
  const chosen = _optionalChain([matcher, 'optionalAccess', _221 => _221.id]) === "byIndex" ? frames.filter((_, i) => i === matcher.options) : frames;
@@ -3347,16 +3349,16 @@ function xySeries(panel, frames, scheme) {
3347
3349
  const yConfig = config(yField, frame);
3348
3350
  if (_optionalChain([yConfig, 'access', _222 => _222.custom, 'optionalAccess', _223 => _223.hideFrom, 'optionalAccess', _224 => _224.viz]) && !manual) continue;
3349
3351
  const xConfig = config(xField, frame);
3350
- const color = _chunkL4SQVIJVjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3351
- const base = _optionalChain([yConfig, 'access', _225 => _225.color, 'optionalAccess', _226 => _226.mode]) === "thresholds" ? _chunkL4SQVIJVjs.valueColor.call(void 0, null, yConfig, color) : color;
3352
+ const color = _chunkM5R44SAFjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3353
+ const base = _optionalChain([yConfig, 'access', _225 => _225.color, 'optionalAccess', _226 => _226.mode]) === "thresholds" ? _chunkM5R44SAFjs.valueColor.call(void 0, null, yConfig, color) : color;
3352
3354
  const rows = [];
3353
3355
  const xs = [];
3354
3356
  const ys = [];
3355
3357
  yField.values.forEach((yv, i) => {
3356
3358
  const xv = xField.values[i];
3357
3359
  if (xv == null || yv == null) return;
3358
- const xn = xField.type === "time" ? _chunkL4SQVIJVjs.toMillis.call(void 0, xv) : Number(xv);
3359
- const yn = yField.type === "time" ? _chunkL4SQVIJVjs.toMillis.call(void 0, yv) : Number(yv);
3360
+ const xn = xField.type === "time" ? _chunkM5R44SAFjs.toMillis.call(void 0, xv) : Number(xv);
3361
+ const yn = yField.type === "time" ? _chunkM5R44SAFjs.toMillis.call(void 0, yv) : Number(yv);
3360
3362
  if (!Number.isFinite(xn) || !Number.isFinite(yn)) return;
3361
3363
  rows.push(i);
3362
3364
  xs.push(xn);
@@ -3369,7 +3371,7 @@ function xySeries(panel, frames, scheme) {
3369
3371
  const cConfig = config(colorField, frame);
3370
3372
  const values = rows.map((i) => num3(colorField.values[i]));
3371
3373
  const extent = range2(values);
3372
- colors = values.map((v) => _chunkL4SQVIJVjs.valueColor.call(void 0, v, cConfig, base, extent));
3374
+ colors = values.map((v) => _chunkM5R44SAFjs.valueColor.call(void 0, v, cConfig, base, extent));
3373
3375
  }
3374
3376
  let sizes = rows.map(() => fixedSize);
3375
3377
  if (sizeField) {
@@ -3379,7 +3381,7 @@ function xySeries(panel, frames, scheme) {
3379
3381
  sizes = values.map((v) => v == null ? min : min + (v - lo) / (hi - lo || 1) * (max - min));
3380
3382
  }
3381
3383
  const fixedName = _optionalChain([m, 'access', _238 => _238.name, 'optionalAccess', _239 => _239.fixed]);
3382
- const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkL4SQVIJVjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3384
+ const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkM5R44SAFjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3383
3385
  out.push({
3384
3386
  key: `${mi}/${frames.indexOf(frame)}/${yField.name}`,
3385
3387
  name: fixedName ? yFields.length > 1 ? `${fixedName} ${yName}` : fixedName : yName,
@@ -3502,7 +3504,7 @@ function XYChartPanel({ panel, frames }) {
3502
3504
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3503
3505
  yTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3504
3506
  gridY && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: pad.left, x2: pad.left + plotW, y1: layout.y(t), y2: layout.y(t), stroke: theme.grid, strokeWidth: 1 }),
3505
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkL4SQVIJVjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3507
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3506
3508
  ] }, `y${t}`)),
3507
3509
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3508
3510
  gridX && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: layout.x(t), x2: layout.x(t), y1: pad.top, y2: pad.top + plotH, stroke: theme.grid, strokeWidth: 1 }),
@@ -3514,7 +3516,7 @@ function XYChartPanel({ panel, frames }) {
3514
3516
  fontSize: 10,
3515
3517
  fill: theme.textMuted,
3516
3518
  textAnchor: layout.x(t) - pad.left < 20 ? "start" : pad.left + plotW - layout.x(t) < 20 ? "end" : "middle",
3517
- children: _chunkL4SQVIJVjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3519
+ children: _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3518
3520
  }
3519
3521
  )
3520
3522
  ] }, `x${t}`)),
@@ -3627,14 +3629,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3627
3629
  const width = (measured.width || window.width) - insets.left - insets.right;
3628
3630
  const layoutMode = mode === "auto" ? width >= TABLET_WIDTH ? "grid" : "phone" : mode;
3629
3631
  const sections = _react.useMemo.call(void 0,
3630
- () => _chunkL4SQVIJVjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3632
+ () => _chunkM5R44SAFjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3631
3633
  [dashboard, layoutMode, variables, variableInfo2]
3632
3634
  );
3633
3635
  const [toggled, setToggled] = _react.useState.call(void 0, {});
3634
3636
  const { seen, viewportH, onScroll, onViewportLayout, onSectionLayout } = useSeenSections(window.height);
3635
3637
  const maxPanelH = Math.max(MIN_PANEL_H, viewportH - SIDE * 2);
3636
3638
  const contentW = width - SIDE * 2;
3637
- const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkL4SQVIJVjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _262 => _262.panels, 'optionalAccess', _263 => _263.some, 'call', _264 => _264(_chunkL4SQVIJVjs.panelHasQueries)]))));
3639
+ const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkM5R44SAFjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _262 => _262.panels, 'optionalAccess', _263 => _263.some, 'call', _264 => _264(_chunkM5R44SAFjs.panelHasQueries)]))));
3638
3640
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles13.fill, { backgroundColor: theme.background }], onLayout, children: [
3639
3641
  width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3640
3642
  _reactnative.ScrollView,
@@ -3660,13 +3662,13 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3660
3662
  accessibilityState: { expanded: !collapsed },
3661
3663
  children: [
3662
3664
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.chevron, { color: theme.textMuted }], children: collapsed ? "\u25B8" : "\u25BE" }),
3663
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkL4SQVIJVjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3665
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkM5R44SAFjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3664
3666
  ]
3665
3667
  }
3666
3668
  ),
3667
3669
  !collapsed && section.rows.map((row, ri) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles13.row, children: row.cells.map((cell) => {
3668
- const w = (contentW + GAP) * (cell.span / _chunkL4SQVIJVjs.GRID_COLUMNS) - GAP;
3669
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkL4SQVIJVjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3670
+ const w = (contentW + GAP) * (cell.span / _chunkM5R44SAFjs.GRID_COLUMNS) - GAP;
3671
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkM5R44SAFjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3670
3672
  }) }, ri))
3671
3673
  ] }, section.key);
3672
3674
  })
@@ -3733,12 +3735,12 @@ function PanelCardContent({ panel, width, height, deferred }) {
3733
3735
  const theme = useDashTheme();
3734
3736
  const { dashboard, variables, variableInfo: variableInfo2 } = useDashboard();
3735
3737
  const { resolve, openLinks } = usePanelLinks(panel);
3736
- const input = _chunkL4SQVIJVjs.isInputPanel.call(void 0, panel);
3738
+ const input = _chunkM5R44SAFjs.isInputPanel.call(void 0, panel);
3737
3739
  const form = _react.useContext.call(void 0, InputFormContext);
3738
3740
  const problem = input ? _optionalChain([form, 'optionalAccess', _265 => _265.problem, 'optionalCall', _266 => _266(panel.options.metric)]) : void 0;
3739
3741
  const hasLinks = !!_optionalChain([panel, 'access', _267 => _267.links, 'optionalAccess', _268 => _268.length]);
3740
3742
  const hasTitle = !!panel.title || hasLinks || !!problem;
3741
- const title = panel.title ? _chunkL4SQVIJVjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
3743
+ const title = panel.title ? _chunkM5R44SAFjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
3742
3744
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles13.card, { width, height, backgroundColor: theme.surface, borderColor: theme.border }], children: [
3743
3745
  hasTitle && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles13.titleRow, children: [
3744
3746
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.title, { color: theme.text }], numberOfLines: 1, children: title }),
@@ -3760,7 +3762,7 @@ function PanelCardContent({ panel, width, height, deferred }) {
3760
3762
  }
3761
3763
  function DataPanelBody({ panel, width, height }) {
3762
3764
  const theme = useDashTheme();
3763
- const needsData = _chunkL4SQVIJVjs.panelHasQueries.call(void 0, panel);
3765
+ const needsData = _chunkM5R44SAFjs.panelHasQueries.call(void 0, panel);
3764
3766
  const data = usePanelData(panel, width, needsData);
3765
3767
  const Component2 = panelComponent(panel.type);
3766
3768
  if (needsData && data.error) {
@@ -3801,13 +3803,13 @@ function savedValues(panels, entries) {
3801
3803
  const values = {};
3802
3804
  for (const p of panels) {
3803
3805
  const mine = entries.filter((e) => e.metric === p.options.metric);
3804
- values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkL4SQVIJVjs.entryToInputValue.call(void 0, p, mine[0]);
3806
+ values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkM5R44SAFjs.entryToInputValue.call(void 0, p, mine[0]);
3805
3807
  }
3806
3808
  return values;
3807
3809
  }
3808
3810
  function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing }) {
3809
3811
  const theme = useDashTheme();
3810
- const panels = _react.useMemo.call(void 0, () => _chunkL4SQVIJVjs.inputPanels.call(void 0, dashboard), [dashboard]);
3812
+ const panels = _react.useMemo.call(void 0, () => _chunkM5R44SAFjs.inputPanels.call(void 0, dashboard), [dashboard]);
3811
3813
  const saved = _react.useMemo.call(void 0, () => editing ? savedValues(panels, editing) : NO_DEFAULTS, [panels, editing]);
3812
3814
  const [defaults, setDefaults] = _react.useState.call(void 0, {});
3813
3815
  const [edits, setEdits] = _react.useState.call(void 0, {});
@@ -3821,7 +3823,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
3821
3823
  const next = {};
3822
3824
  for (const p of panels) {
3823
3825
  const d = p.options.default;
3824
- if (d === "last") next[p.options.metric] = _chunkL4SQVIJVjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
3826
+ if (d === "last") next[p.options.metric] = _chunkM5R44SAFjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
3825
3827
  else if (d !== void 0) next[p.options.metric] = d;
3826
3828
  }
3827
3829
  if (mine === run) setDefaults(next);
@@ -3846,14 +3848,14 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
3846
3848
  choices,
3847
3849
  problem: (m) => {
3848
3850
  const p = panels.find((x) => x.options.metric === m);
3849
- return p && (checked || m in edits) ? _chunkL4SQVIJVjs.inputProblem.call(void 0, p, value(m)) : void 0;
3851
+ return p && (checked || m in edits) ? _chunkM5R44SAFjs.inputProblem.call(void 0, p, value(m)) : void 0;
3850
3852
  }
3851
3853
  };
3852
3854
  }, [edits, saved, defaults, given, store, choices, panels, checked]);
3853
3855
  const dirty = Object.keys(edits).length;
3854
3856
  const save = _react.useCallback.call(void 0, async () => {
3855
3857
  const problems = panels.flatMap((p) => {
3856
- const problem = _chunkL4SQVIJVjs.inputProblem.call(void 0, p, state.value(p.options.metric));
3858
+ const problem = _chunkM5R44SAFjs.inputProblem.call(void 0, p, state.value(p.options.metric));
3857
3859
  return problem ? [`${p.title || p.options.metric}: ${problem.toLowerCase()}`] : [];
3858
3860
  });
3859
3861
  if (problems.length) {
@@ -3862,7 +3864,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
3862
3864
  return;
3863
3865
  }
3864
3866
  const ts = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _269 => _269[0], 'optionalAccess', _270 => _270.ts]), () => ( (header !== void 0 ? _nullishCoalesce(_optionalChain([timestamp, 'optionalCall', _271 => _271()]), () => ( Date.now())) : Date.now() + offsetMs)));
3865
- const entries = panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkL4SQVIJVjs.toEntries.call(void 0, p, state.value(p.options.metric), ts));
3867
+ const entries = panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkM5R44SAFjs.toEntries.call(void 0, p, state.value(p.options.metric), ts));
3866
3868
  if (!entries.length) return;
3867
3869
  const extra = beforeSave ? await beforeSave(ts) : [];
3868
3870
  if (!extra) return;
@@ -4153,4 +4155,6 @@ var styles14 = _reactnative.StyleSheet.create({
4153
4155
 
4154
4156
 
4155
4157
 
4156
- exports.ALL = _chunkL4SQVIJVjs.ALL; exports.BUNDLE_ACCEPT = _chunkL4SQVIJVjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkL4SQVIJVjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkL4SQVIJVjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkL4SQVIJVjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkL4SQVIJVjs.ConfigLoader; exports.DASHBOARD_DS = _chunkL4SQVIJVjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkL4SQVIJVjs.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkL4SQVIJVjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkL4SQVIJVjs.GRID_COLUMNS; exports.GrafanaClient = _chunkL4SQVIJVjs.GrafanaClient; exports.GrafanaDataSource = _chunkL4SQVIJVjs.GrafanaDataSource; exports.GrafanaError = _chunkL4SQVIJVjs.GrafanaError; exports.HttpConfigFiles = _chunkL4SQVIJVjs.HttpConfigFiles; exports.INPUT_OPTION_KEYS = _chunkL4SQVIJVjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkL4SQVIJVjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkL4SQVIJVjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkL4SQVIJVjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkL4SQVIJVjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkL4SQVIJVjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkL4SQVIJVjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkL4SQVIJVjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkL4SQVIJVjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkL4SQVIJVjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkL4SQVIJVjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkL4SQVIJVjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkL4SQVIJVjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkL4SQVIJVjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkL4SQVIJVjs.SERIES_PALETTE; exports.SPECIAL_MATCHES = _chunkL4SQVIJVjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkL4SQVIJVjs.SaveConflictError; exports.TIME_PRESETS = _chunkL4SQVIJVjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkL4SQVIJVjs.UNIT_CHOICES; exports.addTime = _chunkL4SQVIJVjs.addTime; exports.appSchema = _chunkL4SQVIJVjs.appSchema; exports.applyDashboardLink = _chunkL4SQVIJVjs.applyDashboardLink; exports.applyJsonEdits = _chunkL4SQVIJVjs.applyJsonEdits; exports.applyTransformations = _chunkL4SQVIJVjs.applyTransformations; exports.assembleBundle = _chunkL4SQVIJVjs.assembleBundle; exports.assembleFromResponse = _chunkL4SQVIJVjs.assembleFromResponse; exports.buildFrames = _chunkL4SQVIJVjs.buildFrames; exports.bundleFromFiles = _chunkL4SQVIJVjs.bundleFromFiles; exports.bundleRoot = _chunkL4SQVIJVjs.bundleRoot; exports.calculateInterval = _chunkL4SQVIJVjs.calculateInterval; exports.checkFiles = _chunkL4SQVIJVjs.checkFiles; exports.cleanDashboard = _chunkL4SQVIJVjs.cleanDashboard; exports.cleanPanelOptions = _chunkL4SQVIJVjs.cleanPanelOptions; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkL4SQVIJVjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkL4SQVIJVjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkL4SQVIJVjs.dashboardSourceIds; exports.defaultFetchJson = _chunkL4SQVIJVjs.defaultFetchJson; exports.describeRange = _chunkL4SQVIJVjs.describeRange; exports.diffJson = _chunkL4SQVIJVjs.diffJson; exports.documentIdFor = _chunkL4SQVIJVjs.documentIdFor; exports.documentUses = _chunkL4SQVIJVjs.documentUses; exports.dropTarget = _chunkL4SQVIJVjs.dropTarget; exports.duplicatePanel = _chunkL4SQVIJVjs.duplicatePanel; exports.entriesSavedWith = _chunkL4SQVIJVjs.entriesSavedWith; exports.entryToInputValue = _chunkL4SQVIJVjs.entryToInputValue; exports.expandRow = _chunkL4SQVIJVjs.expandRow; exports.fetchBundle = _chunkL4SQVIJVjs.fetchBundle; exports.fetchJsonWithToken = _chunkL4SQVIJVjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkL4SQVIJVjs.fieldDisplayName; exports.fieldMatches = _chunkL4SQVIJVjs.fieldMatches; exports.formatClock = _chunkL4SQVIJVjs.formatClock; exports.formatDisplay = _chunkL4SQVIJVjs.formatDisplay; exports.formatDuration = _chunkL4SQVIJVjs.formatDuration; exports.formatJsonText = _chunkL4SQVIJVjs.formatJsonText; exports.formatLocalDateTime = _chunkL4SQVIJVjs.formatLocalDateTime; exports.formatValue = _chunkL4SQVIJVjs.formatValue; exports.frameLength = _chunkL4SQVIJVjs.frameLength; exports.framesToOptions = _chunkL4SQVIJVjs.framesToOptions; exports.fromWire = _chunkL4SQVIJVjs.fromWire; exports.getPath = _chunkL4SQVIJVjs.getPath; exports.gridUnitsToPx = _chunkL4SQVIJVjs.gridUnitsToPx; exports.initialVariableValues = _chunkL4SQVIJVjs.initialVariableValues; exports.inputPanels = _chunkL4SQVIJVjs.inputPanels; exports.inputProblem = _chunkL4SQVIJVjs.inputProblem; exports.insertPanel = _chunkL4SQVIJVjs.insertPanel; exports.interpolate = _chunkL4SQVIJVjs.interpolate; exports.interpolateDeep = _chunkL4SQVIJVjs.interpolateDeep; exports.isBundleResponse = _chunkL4SQVIJVjs.isBundleResponse; exports.isEditableVariableType = _chunkL4SQVIJVjs.isEditableVariableType; exports.isInputPanel = _chunkL4SQVIJVjs.isInputPanel; exports.isInputType = _chunkL4SQVIJVjs.isInputType; exports.isLocalDatasource = _chunkL4SQVIJVjs.isLocalDatasource; exports.isReducer = _chunkL4SQVIJVjs.isReducer; exports.isRow = _chunkL4SQVIJVjs.isRow; exports.isSqlDatasource = _chunkL4SQVIJVjs.isSqlDatasource; exports.layoutCanvas = _chunkL4SQVIJVjs.layoutCanvas; exports.layoutDashboard = _chunkL4SQVIJVjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkL4SQVIJVjs.lineColumn; exports.loadGazetteer = _chunkL4SQVIJVjs.loadGazetteer; exports.locate = _chunkL4SQVIJVjs.locate; exports.manifestSchemaIssues = _chunkL4SQVIJVjs.manifestSchemaIssues; exports.mappedResult = _chunkL4SQVIJVjs.mappedResult; exports.mappingProblem = _chunkL4SQVIJVjs.mappingProblem; exports.mappingRow = _chunkL4SQVIJVjs.mappingRow; exports.mappingRows = _chunkL4SQVIJVjs.mappingRows; exports.metricChanges = _chunkL4SQVIJVjs.metricChanges; exports.movePanel = _chunkL4SQVIJVjs.movePanel; exports.newDocument = _chunkL4SQVIJVjs.newDocument; exports.newPanel = _chunkL4SQVIJVjs.newPanel; exports.newVariable = _chunkL4SQVIJVjs.newVariable; exports.nextPanelId = _chunkL4SQVIJVjs.nextPanelId; exports.normalizeRef = _chunkL4SQVIJVjs.normalizeRef; exports.numberFields = _chunkL4SQVIJVjs.numberFields; exports.optionValue = _chunkL4SQVIJVjs.optionValue; exports.overrideProperties = _chunkL4SQVIJVjs.overrideProperties; exports.panelEdits = _chunkL4SQVIJVjs.panelEdits; exports.panelHasQueries = _chunkL4SQVIJVjs.panelHasQueries; exports.panelKey = _chunkL4SQVIJVjs.panelKey; exports.panelOptions = _chunkL4SQVIJVjs.panelOptions; exports.panelOverrides = _chunkL4SQVIJVjs.panelOverrides; exports.panelSize = _chunkL4SQVIJVjs.panelSize; exports.panelSpan = _chunkL4SQVIJVjs.panelSpan; exports.parseClockDigits = _chunkL4SQVIJVjs.parseClockDigits; exports.parseDashboardLink = _chunkL4SQVIJVjs.parseDashboardLink; exports.parseDuration = _chunkL4SQVIJVjs.parseDuration; exports.parseGazetteer = _chunkL4SQVIJVjs.parseGazetteer; exports.parseJsonText = _chunkL4SQVIJVjs.parseJsonText; exports.parseLocalDateTime = _chunkL4SQVIJVjs.parseLocalDateTime; exports.parseRange = _chunkL4SQVIJVjs.parseRange; exports.parseTime = _chunkL4SQVIJVjs.parseTime; exports.pointerToPath = _chunkL4SQVIJVjs.pointerToPath; exports.prepareDashboard = _chunkL4SQVIJVjs.prepareDashboard; exports.queryPanel = _chunkL4SQVIJVjs.queryPanel; exports.queryParam = _chunkL4SQVIJVjs.queryParam; exports.readConfigFiles = _chunkL4SQVIJVjs.readConfigFiles; exports.readingOrder = _chunkL4SQVIJVjs.readingOrder; exports.reduce = _chunkL4SQVIJVjs.reduce; exports.refineOptions = _chunkL4SQVIJVjs.refineOptions; exports.refreshedVariables = _chunkL4SQVIJVjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkL4SQVIJVjs.removeDocumentFromManifest; exports.removePanel = _chunkL4SQVIJVjs.removePanel; exports.renameDocumentInManifest = _chunkL4SQVIJVjs.renameDocumentInManifest; exports.renameVariableInPanels = _chunkL4SQVIJVjs.renameVariableInPanels; exports.repack = _chunkL4SQVIJVjs.repack; exports.repeatOptions = _chunkL4SQVIJVjs.repeatOptions; exports.resizePanel = _chunkL4SQVIJVjs.resizePanel; exports.resolveColor = _chunkL4SQVIJVjs.resolveColor; exports.resolveFieldConfig = _chunkL4SQVIJVjs.resolveFieldConfig; exports.resolveLinks = _chunkL4SQVIJVjs.resolveLinks; exports.resolveTimezone = _chunkL4SQVIJVjs.resolveTimezone; exports.resolveUrl = _chunkL4SQVIJVjs.resolveUrl; exports.resolveVariables = _chunkL4SQVIJVjs.resolveVariables; exports.rowsToMappings = _chunkL4SQVIJVjs.rowsToMappings; exports.sampleEntries = _chunkL4SQVIJVjs.sampleEntries; exports.screenDocuments = _chunkL4SQVIJVjs.screenDocuments; exports.screenOfType = _chunkL4SQVIJVjs.screenOfType; exports.selectValue = _chunkL4SQVIJVjs.selectValue; exports.seriesColor = _chunkL4SQVIJVjs.seriesColor; exports.setHiddenOnPhones = _chunkL4SQVIJVjs.setHiddenOnPhones; exports.setJsonValue = _chunkL4SQVIJVjs.setJsonValue; exports.setOption = _chunkL4SQVIJVjs.setOption; exports.setOptionValue = _chunkL4SQVIJVjs.setOptionValue; exports.setOverrides = _chunkL4SQVIJVjs.setOverrides; exports.splitPath = _chunkL4SQVIJVjs.splitPath; exports.startOf = _chunkL4SQVIJVjs.startOf; exports.stringifyCompact = _chunkL4SQVIJVjs.stringifyCompact; exports.tabIdFor = _chunkL4SQVIJVjs.tabIdFor; exports.textSuggestions = _chunkL4SQVIJVjs.textSuggestions; exports.thresholdStep = _chunkL4SQVIJVjs.thresholdStep; exports.timeExprError = _chunkL4SQVIJVjs.timeExprError; exports.timeField = _chunkL4SQVIJVjs.timeField; exports.toEntries = _chunkL4SQVIJVjs.toEntries; exports.toMillis = _chunkL4SQVIJVjs.toMillis; exports.toSeries = _chunkL4SQVIJVjs.toSeries; exports.toXYSeries = _chunkL4SQVIJVjs.toXYSeries; exports.uniqueNames = _chunkL4SQVIJVjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkL4SQVIJVjs.validateBundle; exports.validateDashboard = _chunkL4SQVIJVjs.validateDashboard; exports.validateManifest = _chunkL4SQVIJVjs.validateManifest; exports.valueColor = _chunkL4SQVIJVjs.valueColor; exports.valueText = _chunkL4SQVIJVjs.valueText; exports.variableDependents = _chunkL4SQVIJVjs.variableDependents; exports.variableInfo = _chunkL4SQVIJVjs.variableInfo; exports.variableNameError = _chunkL4SQVIJVjs.variableNameError; exports.variableOptions = _chunkL4SQVIJVjs.variableOptions; exports.variableOrder = _chunkL4SQVIJVjs.variableOrder; exports.variableReferences = _chunkL4SQVIJVjs.variableReferences; exports.variableUses = _chunkL4SQVIJVjs.variableUses; exports.variableWithCurrent = _chunkL4SQVIJVjs.variableWithCurrent; exports.variableWithFlags = _chunkL4SQVIJVjs.variableWithFlags; exports.variableWithQuery = _chunkL4SQVIJVjs.variableWithQuery; exports.variableWithType = _chunkL4SQVIJVjs.variableWithType; exports.visibleVariables = _chunkL4SQVIJVjs.visibleVariables; exports.zoomRange = _chunkL4SQVIJVjs.zoomRange;
4158
+
4159
+
4160
+ exports.ALL = _chunkM5R44SAFjs.ALL; exports.BUNDLE_ACCEPT = _chunkM5R44SAFjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkM5R44SAFjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkM5R44SAFjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkM5R44SAFjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkM5R44SAFjs.ConfigLoader; exports.DASHBOARD_DS = _chunkM5R44SAFjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkM5R44SAFjs.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkM5R44SAFjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkM5R44SAFjs.GRID_COLUMNS; exports.GrafanaClient = _chunkM5R44SAFjs.GrafanaClient; exports.GrafanaDataSource = _chunkM5R44SAFjs.GrafanaDataSource; exports.GrafanaError = _chunkM5R44SAFjs.GrafanaError; exports.HttpConfigFiles = _chunkM5R44SAFjs.HttpConfigFiles; exports.INPUT_OPTION_KEYS = _chunkM5R44SAFjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkM5R44SAFjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkM5R44SAFjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkM5R44SAFjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkM5R44SAFjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkM5R44SAFjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkM5R44SAFjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkM5R44SAFjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkM5R44SAFjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkM5R44SAFjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkM5R44SAFjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkM5R44SAFjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkM5R44SAFjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkM5R44SAFjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkM5R44SAFjs.SERIES_PALETTE; exports.SPECIAL_MATCHES = _chunkM5R44SAFjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkM5R44SAFjs.SaveConflictError; exports.TIME_PRESETS = _chunkM5R44SAFjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkM5R44SAFjs.UNIT_CHOICES; exports.addTime = _chunkM5R44SAFjs.addTime; exports.appSchema = _chunkM5R44SAFjs.appSchema; exports.applyDashboardLink = _chunkM5R44SAFjs.applyDashboardLink; exports.applyJsonEdits = _chunkM5R44SAFjs.applyJsonEdits; exports.applyTransformations = _chunkM5R44SAFjs.applyTransformations; exports.assembleBundle = _chunkM5R44SAFjs.assembleBundle; exports.assembleFromResponse = _chunkM5R44SAFjs.assembleFromResponse; exports.buildFrames = _chunkM5R44SAFjs.buildFrames; exports.bundleFromFiles = _chunkM5R44SAFjs.bundleFromFiles; exports.bundleRoot = _chunkM5R44SAFjs.bundleRoot; exports.calculateInterval = _chunkM5R44SAFjs.calculateInterval; exports.checkFiles = _chunkM5R44SAFjs.checkFiles; exports.cleanDashboard = _chunkM5R44SAFjs.cleanDashboard; exports.cleanPanelOptions = _chunkM5R44SAFjs.cleanPanelOptions; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkM5R44SAFjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkM5R44SAFjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkM5R44SAFjs.dashboardSourceIds; exports.defaultFetchJson = _chunkM5R44SAFjs.defaultFetchJson; exports.describeRange = _chunkM5R44SAFjs.describeRange; exports.diffJson = _chunkM5R44SAFjs.diffJson; exports.documentIdFor = _chunkM5R44SAFjs.documentIdFor; exports.documentUses = _chunkM5R44SAFjs.documentUses; exports.dropTarget = _chunkM5R44SAFjs.dropTarget; exports.duplicatePanel = _chunkM5R44SAFjs.duplicatePanel; exports.entriesSavedWith = _chunkM5R44SAFjs.entriesSavedWith; exports.entryToInputValue = _chunkM5R44SAFjs.entryToInputValue; exports.expandRow = _chunkM5R44SAFjs.expandRow; exports.fetchBundle = _chunkM5R44SAFjs.fetchBundle; exports.fetchJsonWithToken = _chunkM5R44SAFjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkM5R44SAFjs.fieldDisplayName; exports.fieldMatches = _chunkM5R44SAFjs.fieldMatches; exports.formatClock = _chunkM5R44SAFjs.formatClock; exports.formatDisplay = _chunkM5R44SAFjs.formatDisplay; exports.formatDuration = _chunkM5R44SAFjs.formatDuration; exports.formatJsonText = _chunkM5R44SAFjs.formatJsonText; exports.formatLocalDateTime = _chunkM5R44SAFjs.formatLocalDateTime; exports.formatValue = _chunkM5R44SAFjs.formatValue; exports.frameLength = _chunkM5R44SAFjs.frameLength; exports.framesToOptions = _chunkM5R44SAFjs.framesToOptions; exports.fromWire = _chunkM5R44SAFjs.fromWire; exports.getPath = _chunkM5R44SAFjs.getPath; exports.gridUnitsToPx = _chunkM5R44SAFjs.gridUnitsToPx; exports.httpFetchJson = _chunkM5R44SAFjs.httpFetchJson; exports.initialVariableValues = _chunkM5R44SAFjs.initialVariableValues; exports.inputPanels = _chunkM5R44SAFjs.inputPanels; exports.inputProblem = _chunkM5R44SAFjs.inputProblem; exports.insertPanel = _chunkM5R44SAFjs.insertPanel; exports.interpolate = _chunkM5R44SAFjs.interpolate; exports.interpolateDeep = _chunkM5R44SAFjs.interpolateDeep; exports.isBundleResponse = _chunkM5R44SAFjs.isBundleResponse; exports.isEditableVariableType = _chunkM5R44SAFjs.isEditableVariableType; exports.isInputPanel = _chunkM5R44SAFjs.isInputPanel; exports.isInputType = _chunkM5R44SAFjs.isInputType; exports.isLocalDatasource = _chunkM5R44SAFjs.isLocalDatasource; exports.isReducer = _chunkM5R44SAFjs.isReducer; exports.isRow = _chunkM5R44SAFjs.isRow; exports.isSqlDatasource = _chunkM5R44SAFjs.isSqlDatasource; exports.layoutCanvas = _chunkM5R44SAFjs.layoutCanvas; exports.layoutDashboard = _chunkM5R44SAFjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkM5R44SAFjs.lineColumn; exports.loadGazetteer = _chunkM5R44SAFjs.loadGazetteer; exports.locate = _chunkM5R44SAFjs.locate; exports.manifestSchemaIssues = _chunkM5R44SAFjs.manifestSchemaIssues; exports.mappedResult = _chunkM5R44SAFjs.mappedResult; exports.mappingProblem = _chunkM5R44SAFjs.mappingProblem; exports.mappingRow = _chunkM5R44SAFjs.mappingRow; exports.mappingRows = _chunkM5R44SAFjs.mappingRows; exports.metricChanges = _chunkM5R44SAFjs.metricChanges; exports.movePanel = _chunkM5R44SAFjs.movePanel; exports.newDocument = _chunkM5R44SAFjs.newDocument; exports.newPanel = _chunkM5R44SAFjs.newPanel; exports.newVariable = _chunkM5R44SAFjs.newVariable; exports.nextPanelId = _chunkM5R44SAFjs.nextPanelId; exports.normalizeRef = _chunkM5R44SAFjs.normalizeRef; exports.numberFields = _chunkM5R44SAFjs.numberFields; exports.optionValue = _chunkM5R44SAFjs.optionValue; exports.overrideProperties = _chunkM5R44SAFjs.overrideProperties; exports.panelEdits = _chunkM5R44SAFjs.panelEdits; exports.panelHasQueries = _chunkM5R44SAFjs.panelHasQueries; exports.panelKey = _chunkM5R44SAFjs.panelKey; exports.panelOptions = _chunkM5R44SAFjs.panelOptions; exports.panelOverrides = _chunkM5R44SAFjs.panelOverrides; exports.panelSize = _chunkM5R44SAFjs.panelSize; exports.panelSpan = _chunkM5R44SAFjs.panelSpan; exports.parseClockDigits = _chunkM5R44SAFjs.parseClockDigits; exports.parseDashboardLink = _chunkM5R44SAFjs.parseDashboardLink; exports.parseDuration = _chunkM5R44SAFjs.parseDuration; exports.parseGazetteer = _chunkM5R44SAFjs.parseGazetteer; exports.parseJsonText = _chunkM5R44SAFjs.parseJsonText; exports.parseLocalDateTime = _chunkM5R44SAFjs.parseLocalDateTime; exports.parseRange = _chunkM5R44SAFjs.parseRange; exports.parseTime = _chunkM5R44SAFjs.parseTime; exports.pointerToPath = _chunkM5R44SAFjs.pointerToPath; exports.prepareDashboard = _chunkM5R44SAFjs.prepareDashboard; exports.queryPanel = _chunkM5R44SAFjs.queryPanel; exports.queryParam = _chunkM5R44SAFjs.queryParam; exports.readConfigFiles = _chunkM5R44SAFjs.readConfigFiles; exports.readingOrder = _chunkM5R44SAFjs.readingOrder; exports.reduce = _chunkM5R44SAFjs.reduce; exports.refineOptions = _chunkM5R44SAFjs.refineOptions; exports.refreshedVariables = _chunkM5R44SAFjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkM5R44SAFjs.removeDocumentFromManifest; exports.removePanel = _chunkM5R44SAFjs.removePanel; exports.renameDocumentInManifest = _chunkM5R44SAFjs.renameDocumentInManifest; exports.renameVariableInPanels = _chunkM5R44SAFjs.renameVariableInPanels; exports.repack = _chunkM5R44SAFjs.repack; exports.repeatOptions = _chunkM5R44SAFjs.repeatOptions; exports.resizePanel = _chunkM5R44SAFjs.resizePanel; exports.resolveColor = _chunkM5R44SAFjs.resolveColor; exports.resolveFieldConfig = _chunkM5R44SAFjs.resolveFieldConfig; exports.resolveLinks = _chunkM5R44SAFjs.resolveLinks; exports.resolveTimezone = _chunkM5R44SAFjs.resolveTimezone; exports.resolveUrl = _chunkM5R44SAFjs.resolveUrl; exports.resolveVariables = _chunkM5R44SAFjs.resolveVariables; exports.revalidateBundle = _chunkM5R44SAFjs.revalidateBundle; exports.rowsToMappings = _chunkM5R44SAFjs.rowsToMappings; exports.sampleEntries = _chunkM5R44SAFjs.sampleEntries; exports.screenDocuments = _chunkM5R44SAFjs.screenDocuments; exports.screenOfType = _chunkM5R44SAFjs.screenOfType; exports.selectValue = _chunkM5R44SAFjs.selectValue; exports.seriesColor = _chunkM5R44SAFjs.seriesColor; exports.setHiddenOnPhones = _chunkM5R44SAFjs.setHiddenOnPhones; exports.setJsonValue = _chunkM5R44SAFjs.setJsonValue; exports.setOption = _chunkM5R44SAFjs.setOption; exports.setOptionValue = _chunkM5R44SAFjs.setOptionValue; exports.setOverrides = _chunkM5R44SAFjs.setOverrides; exports.splitPath = _chunkM5R44SAFjs.splitPath; exports.startOf = _chunkM5R44SAFjs.startOf; exports.stringifyCompact = _chunkM5R44SAFjs.stringifyCompact; exports.tabIdFor = _chunkM5R44SAFjs.tabIdFor; exports.textSuggestions = _chunkM5R44SAFjs.textSuggestions; exports.thresholdStep = _chunkM5R44SAFjs.thresholdStep; exports.timeExprError = _chunkM5R44SAFjs.timeExprError; exports.timeField = _chunkM5R44SAFjs.timeField; exports.toEntries = _chunkM5R44SAFjs.toEntries; exports.toMillis = _chunkM5R44SAFjs.toMillis; exports.toSeries = _chunkM5R44SAFjs.toSeries; exports.toXYSeries = _chunkM5R44SAFjs.toXYSeries; exports.uniqueNames = _chunkM5R44SAFjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkM5R44SAFjs.validateBundle; exports.validateDashboard = _chunkM5R44SAFjs.validateDashboard; exports.validateManifest = _chunkM5R44SAFjs.validateManifest; exports.valueColor = _chunkM5R44SAFjs.valueColor; exports.valueText = _chunkM5R44SAFjs.valueText; exports.variableDependents = _chunkM5R44SAFjs.variableDependents; exports.variableInfo = _chunkM5R44SAFjs.variableInfo; exports.variableNameError = _chunkM5R44SAFjs.variableNameError; exports.variableOptions = _chunkM5R44SAFjs.variableOptions; exports.variableOrder = _chunkM5R44SAFjs.variableOrder; exports.variableReferences = _chunkM5R44SAFjs.variableReferences; exports.variableUses = _chunkM5R44SAFjs.variableUses; exports.variableWithCurrent = _chunkM5R44SAFjs.variableWithCurrent; exports.variableWithFlags = _chunkM5R44SAFjs.variableWithFlags; exports.variableWithQuery = _chunkM5R44SAFjs.variableWithQuery; exports.variableWithType = _chunkM5R44SAFjs.variableWithType; exports.visibleVariables = _chunkM5R44SAFjs.visibleVariables; exports.zoomRange = _chunkM5R44SAFjs.zoomRange;