@malloy-publisher/sdk 0.0.148 → 0.0.150

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.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as m, jsxs as z, Fragment as vt } from "react/jsx-runtime";
2
- import { styled as sn, Card as Pa, CardContent as Ra, CardMedia as CC, Typography as Ae, Box as He, CircularProgress as $0, Button as fn, Tooltip as Fn, IconButton as Mt, Collapse as Xf, Stack as Yt, Dialog as Rr, DialogTitle as Nr, DialogContent as Mr, DialogActions as B0, FormControl as Cd, Chip as hl, Menu as ks, Divider as Zr, MenuItem as mr, DialogContentText as EC, List as ku, ListItem as _a, ListItemText as Un, ListItemIcon as Ua, InputLabel as vC, Select as TC, TextField as H0, Snackbar as ro, Container as SC, Grid as Ht, Paper as gl, FormControlLabel as kC, Switch as _C, ListItemButton as U0, TableContainer as z0, Table as zl, TableHead as V0, TableRow as yo, TableCell as on, TableBody as Vl } from "@mui/material";
2
+ import { styled as sn, Card as Pa, CardContent as Ra, CardMedia as CC, Typography as Ae, Box as He, CircularProgress as $0, Button as mn, Tooltip as Fn, IconButton as Mt, Collapse as Xf, Stack as Yt, Dialog as Rr, DialogTitle as Nr, DialogContent as Mr, DialogActions as B0, FormControl as Cd, Chip as hl, Menu as ks, Divider as Zr, MenuItem as mr, DialogContentText as EC, List as ku, ListItem as _a, ListItemText as Un, ListItemIcon as Ua, InputLabel as vC, Select as TC, TextField as H0, Snackbar as ro, Container as SC, Grid as Ht, Paper as gl, FormControlLabel as kC, Switch as _C, ListItemButton as U0, TableContainer as z0, Table as zl, TableHead as V0, TableRow as yo, TableCell as on, TableBody as Vl } from "@mui/material";
3
3
  import * as k from "react";
4
- import ve, { useEffect as Ut, useImperativeHandle as j0, useContext as ei, Fragment as W0, useMemo as ft, useRef as xn, useReducer as wC, useState as Ye, Suspense as xp, lazy as q0, createContext as IC, isValidElement as bl, cloneElement as yl, Children as AC, useCallback as go, useLayoutEffect as DC } from "react";
4
+ import ve, { useEffect as Ut, useImperativeHandle as j0, useContext as ei, Fragment as W0, useMemo as ft, useRef as fn, useReducer as wC, useState as Ye, Suspense as xp, lazy as q0, createContext as IC, isValidElement as bl, cloneElement as yl, Children as AC, useCallback as go, useLayoutEffect as DC } from "react";
5
5
  import { useQuery as PC, useMutation as RC, useQueryClient as oa } from "@tanstack/react-query";
6
6
  import { u as ht, g as Y0, C as G0 } from "./ServerProvider-D-y63tG0.es.js";
7
7
  import { S as nq } from "./ServerProvider-D-y63tG0.es.js";
@@ -227,7 +227,7 @@ function rb(e) {
227
227
  t[n] = rb(e[n]);
228
228
  }), t;
229
229
  }
230
- function hn(e, t, n = {
230
+ function gn(e, t, n = {
231
231
  clone: !0
232
232
  }) {
233
233
  const r = n.clone ? {
@@ -235,11 +235,11 @@ function hn(e, t, n = {
235
235
  } : e;
236
236
  return Ar(e) && Ar(t) && Object.keys(t).forEach((o) => {
237
237
  /* @__PURE__ */ k.isValidElement(t[o]) || nb.isValidElementType(t[o]) ? r[o] = t[o] : Ar(t[o]) && // Avoid prototype pollution
238
- Object.prototype.hasOwnProperty.call(e, o) && Ar(e[o]) ? r[o] = hn(e[o], t[o], n) : n.clone ? r[o] = Ar(t[o]) ? rb(t[o]) : t[o] : r[o] = t[o];
238
+ Object.prototype.hasOwnProperty.call(e, o) && Ar(e[o]) ? r[o] = gn(e[o], t[o], n) : n.clone ? r[o] = Ar(t[o]) ? rb(t[o]) : t[o] : r[o] = t[o];
239
239
  }), r;
240
240
  }
241
241
  function Vi(e, t) {
242
- return t ? hn(e, t, {
242
+ return t ? gn(e, t, {
243
243
  clone: !1
244
244
  // No need to clone deep, it's way faster.
245
245
  }) : e;
@@ -1356,7 +1356,7 @@ function wp(e) {
1356
1356
  return o ? (cm(o, g, "light", C, r), cm(o, g, "dark", T, r)) : (um(g, "light", C, r), um(g, "dark", T, r)), g.contrastText || (g.contrastText = f(g.main)), g;
1357
1357
  };
1358
1358
  let h;
1359
- return t === "light" ? h = ib() : t === "dark" && (h = lb()), hn({
1359
+ return t === "light" ? h = ib() : t === "dark" && (h = lb()), gn({
1360
1360
  // A collection of common colors.
1361
1361
  common: {
1362
1362
  ...ls
@@ -1792,7 +1792,7 @@ function Ip(e = {}, ...t) {
1792
1792
  shape: a = {},
1793
1793
  ...i
1794
1794
  } = e, s = kv(n), l = wv(o);
1795
- let u = hn({
1795
+ let u = gn({
1796
1796
  breakpoints: s,
1797
1797
  direction: "ltr",
1798
1798
  components: {},
@@ -1807,7 +1807,7 @@ function Ip(e = {}, ...t) {
1807
1807
  ...a
1808
1808
  }
1809
1809
  }, i);
1810
- return u = iE(u), u.applyStyles = Iv, u = t.reduce((c, d) => hn(c, d), u), u.unstable_sxConfig = {
1810
+ return u = iE(u), u.applyStyles = Iv, u = t.reduce((c, d) => gn(c, d), u), u.unstable_sxConfig = {
1811
1811
  ...As,
1812
1812
  ...i?.unstable_sxConfig
1813
1813
  }, u.unstable_sx = function(d) {
@@ -1884,7 +1884,7 @@ function Nv(e, t = {}) {
1884
1884
  css: M,
1885
1885
  varsWithDefaults: L
1886
1886
  } = _c(_, t);
1887
- p = hn(p, L), h[T] = {
1887
+ p = gn(p, L), h[T] = {
1888
1888
  css: M,
1889
1889
  vars: S
1890
1890
  };
@@ -1894,7 +1894,7 @@ function Nv(e, t = {}) {
1894
1894
  vars: _,
1895
1895
  varsWithDefaults: S
1896
1896
  } = _c(b, t);
1897
- p = hn(p, S), h[l] = {
1897
+ p = gn(p, S), h[l] = {
1898
1898
  css: T,
1899
1899
  vars: _
1900
1900
  };
@@ -1922,7 +1922,7 @@ function Nv(e, t = {}) {
1922
1922
  return Object.entries(h).forEach(([, {
1923
1923
  vars: _
1924
1924
  }]) => {
1925
- T = hn(T, _);
1925
+ T = gn(T, _);
1926
1926
  }), T;
1927
1927
  },
1928
1928
  generateStyleSheets: () => {
@@ -2083,7 +2083,7 @@ function Bv(e, t) {
2083
2083
  letterSpacing: "inherit"
2084
2084
  }
2085
2085
  };
2086
- return hn({
2086
+ return gn({
2087
2087
  htmlFontSize: l,
2088
2088
  pxToRem: p,
2089
2089
  fontFamily: n,
@@ -2243,7 +2243,7 @@ function Sd(e = {}, ...t) {
2243
2243
  ...a,
2244
2244
  colorSpace: u
2245
2245
  }), f = Ip(e);
2246
- let p = hn(f, {
2246
+ let p = gn(f, {
2247
2247
  mixins: Fv(f.breakpoints, r),
2248
2248
  palette: d,
2249
2249
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
@@ -2254,7 +2254,7 @@ function Sd(e = {}, ...t) {
2254
2254
  ...Yv
2255
2255
  }
2256
2256
  });
2257
- return p = hn(p, c), p = t.reduce((h, b) => hn(h, b), p), p.unstable_sxConfig = {
2257
+ return p = gn(p, c), p = t.reduce((h, b) => gn(h, b), p), p.unstable_sxConfig = {
2258
2258
  ...As,
2259
2259
  ...c?.unstable_sxConfig
2260
2260
  }, p.unstable_sx = function(b) {
@@ -2479,7 +2479,7 @@ function aT(e = {}, ...t) {
2479
2479
  const P = v[A];
2480
2480
  A !== "tonalOffset" && P && typeof P == "object" && (P.main && fe(v[A], "mainChannel", $i(Bi(P.main))), P.light && fe(v[A], "lightChannel", $i(Bi(P.light))), P.dark && fe(v[A], "darkChannel", $i(Bi(P.dark))), P.contrastText && fe(v[A], "contrastTextChannel", $i(Bi(P.contrastText))), A === "text" && (qr(v[A], "primary"), qr(v[A], "secondary")), A === "action" && (P.active && qr(v[A], "active"), P.selected && qr(v[A], "selected")));
2481
2481
  });
2482
- }), S = t.reduce((N, v) => hn(N, v), S);
2482
+ }), S = t.reduce((N, v) => gn(N, v), S);
2483
2483
  const M = {
2484
2484
  prefix: a,
2485
2485
  disableCssColorScheme: o,
@@ -3208,7 +3208,7 @@ const Gl = sn(Pa)({
3208
3208
  padding: "0"
3209
3209
  }), TT = sn("div")({
3210
3210
  backgroundColor: "#ffffff",
3211
- padding: "0 32px 32px 32px",
3211
+ padding: "0 8px 0px 8px",
3212
3212
  borderRadius: "12px",
3213
3213
  boxShadow: "none",
3214
3214
  border: "none",
@@ -4713,7 +4713,7 @@ function Rm(e) {
4713
4713
  function Nm(e) {
4714
4714
  return e && typeof e == "number" ? e : 1;
4715
4715
  }
4716
- class gn extends Error {
4716
+ class bn extends Error {
4717
4717
  /**
4718
4718
  * Create a message for `reason`.
4719
4719
  *
@@ -4787,19 +4787,19 @@ class gn extends Error {
4787
4787
  this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file = "", this.message = o, this.line = s ? s.line : void 0, this.name = Wi(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = i && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
4788
4788
  }
4789
4789
  }
4790
- gn.prototype.file = "";
4791
- gn.prototype.name = "";
4792
- gn.prototype.reason = "";
4793
- gn.prototype.message = "";
4794
- gn.prototype.stack = "";
4795
- gn.prototype.column = void 0;
4796
- gn.prototype.line = void 0;
4797
- gn.prototype.ancestors = void 0;
4798
- gn.prototype.cause = void 0;
4799
- gn.prototype.fatal = void 0;
4800
- gn.prototype.place = void 0;
4801
- gn.prototype.ruleId = void 0;
4802
- gn.prototype.source = void 0;
4790
+ bn.prototype.file = "";
4791
+ bn.prototype.name = "";
4792
+ bn.prototype.reason = "";
4793
+ bn.prototype.message = "";
4794
+ bn.prototype.stack = "";
4795
+ bn.prototype.column = void 0;
4796
+ bn.prototype.line = void 0;
4797
+ bn.prototype.ancestors = void 0;
4798
+ bn.prototype.cause = void 0;
4799
+ bn.prototype.fatal = void 0;
4800
+ bn.prototype.place = void 0;
4801
+ bn.prototype.ruleId = void 0;
4802
+ bn.prototype.source = void 0;
4803
4803
  const Rp = {}.hasOwnProperty, qT = /* @__PURE__ */ new Map(), YT = /[A-Z]/g, GT = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), KT = /* @__PURE__ */ new Set(["td", "th"]), Pb = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
4804
4804
  function QT(e, t) {
4805
4805
  if (!t || t.Fragment === void 0)
@@ -5022,7 +5022,7 @@ function lS(e, t) {
5022
5022
  const r = (
5023
5023
  /** @type {Error} */
5024
5024
  n
5025
- ), o = new gn("Cannot parse `style` attribute", {
5025
+ ), o = new bn("Cannot parse `style` attribute", {
5026
5026
  ancestors: e.ancestors,
5027
5027
  cause: r,
5028
5028
  ruleId: "style",
@@ -5063,7 +5063,7 @@ function Mb(e, t, n) {
5063
5063
  ds(e);
5064
5064
  }
5065
5065
  function ds(e, t) {
5066
- const n = new gn(
5066
+ const n = new bn(
5067
5067
  "Cannot handle MDX estrees without `createEvaluater`",
5068
5068
  {
5069
5069
  ancestors: e.ancestors,
@@ -5207,7 +5207,7 @@ function Fb(e, t) {
5207
5207
  function hr(e) {
5208
5208
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
5209
5209
  }
5210
- const En = wo(/[A-Za-z]/), mn = wo(/[\dA-Za-z]/), gS = wo(/[#-'*+\--9=?A-Z^-~]/);
5210
+ const En = wo(/[A-Za-z]/), hn = wo(/[\dA-Za-z]/), gS = wo(/[#-'*+\--9=?A-Z^-~]/);
5211
5211
  function Kl(e) {
5212
5212
  return (
5213
5213
  // Special whitespace codes (which have negative values), C0 and Control
@@ -5238,7 +5238,7 @@ function oi(e) {
5238
5238
  for (; ++n < e.length; ) {
5239
5239
  const a = e.charCodeAt(n);
5240
5240
  let i = "";
5241
- if (a === 37 && mn(e.charCodeAt(n + 1)) && mn(e.charCodeAt(n + 2)))
5241
+ if (a === 37 && hn(e.charCodeAt(n + 1)) && hn(e.charCodeAt(n + 2)))
5242
5242
  o = 2;
5243
5243
  else if (a < 128)
5244
5244
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a)) || (i = String.fromCharCode(a));
@@ -5520,10 +5520,10 @@ function wS(e, t, n) {
5520
5520
  return En(p) ? (e.consume(p), i) : p === 64 ? n(p) : u(p);
5521
5521
  }
5522
5522
  function i(p) {
5523
- return p === 43 || p === 45 || p === 46 || mn(p) ? (r = 1, s(p)) : u(p);
5523
+ return p === 43 || p === 45 || p === 46 || hn(p) ? (r = 1, s(p)) : u(p);
5524
5524
  }
5525
5525
  function s(p) {
5526
- return p === 58 ? (e.consume(p), r = 0, l) : (p === 43 || p === 45 || p === 46 || mn(p)) && r++ < 32 ? (e.consume(p), s) : (r = 0, u(p));
5526
+ return p === 58 ? (e.consume(p), r = 0, l) : (p === 43 || p === 45 || p === 46 || hn(p)) && r++ < 32 ? (e.consume(p), s) : (r = 0, u(p));
5527
5527
  }
5528
5528
  function l(p) {
5529
5529
  return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 || Kl(p) ? n(p) : (e.consume(p), l);
@@ -5532,13 +5532,13 @@ function wS(e, t, n) {
5532
5532
  return p === 64 ? (e.consume(p), c) : gS(p) ? (e.consume(p), u) : n(p);
5533
5533
  }
5534
5534
  function c(p) {
5535
- return mn(p) ? d(p) : n(p);
5535
+ return hn(p) ? d(p) : n(p);
5536
5536
  }
5537
5537
  function d(p) {
5538
5538
  return p === 46 ? (e.consume(p), r = 0, c) : p === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : f(p);
5539
5539
  }
5540
5540
  function f(p) {
5541
- if ((p === 45 || mn(p)) && r++ < 63) {
5541
+ if ((p === 45 || hn(p)) && r++ < 63) {
5542
5542
  const h = p === 45 ? f : d;
5543
5543
  return e.consume(p), h;
5544
5544
  }
@@ -5620,7 +5620,7 @@ function NS(e, t, n) {
5620
5620
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), l;
5621
5621
  }
5622
5622
  function l(d) {
5623
- return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, i = mn, c(d));
5623
+ return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, i = hn, c(d));
5624
5624
  }
5625
5625
  function u(d) {
5626
5626
  return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, i = bS, c) : (e.enter("characterReferenceValue"), a = 7, i = Md, c(d));
@@ -5628,7 +5628,7 @@ function NS(e, t, n) {
5628
5628
  function c(d) {
5629
5629
  if (d === 59 && o) {
5630
5630
  const f = e.exit("characterReferenceValue");
5631
- return i === mn && !Lp(r.sliceSerialize(f)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5631
+ return i === hn && !Lp(r.sliceSerialize(f)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5632
5632
  }
5633
5633
  return i(d) && o++ < a ? (e.consume(d), c) : n(d);
5634
5634
  }
@@ -6380,7 +6380,7 @@ function ck(e, t, n) {
6380
6380
  const pe = O === 47, Q = i.toLowerCase();
6381
6381
  return !pe && !a && Um.includes(Q) ? (o = 1, r.interrupt ? t(O) : v(O)) : ak.includes(i.toLowerCase()) ? (o = 6, pe ? (e.consume(O), x) : r.interrupt ? t(O) : v(O)) : (o = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(O) : a ? E(O) : C(O));
6382
6382
  }
6383
- return O === 45 || mn(O) ? (e.consume(O), i += String.fromCharCode(O), g) : n(O);
6383
+ return O === 45 || hn(O) ? (e.consume(O), i += String.fromCharCode(O), g) : n(O);
6384
6384
  }
6385
6385
  function x(O) {
6386
6386
  return O === 62 ? (e.consume(O), r.interrupt ? t : v) : n(O);
@@ -6392,7 +6392,7 @@ function ck(e, t, n) {
6392
6392
  return O === 47 ? (e.consume(O), D) : O === 58 || O === 95 || En(O) ? (e.consume(O), T) : lt(O) ? (e.consume(O), C) : D(O);
6393
6393
  }
6394
6394
  function T(O) {
6395
- return O === 45 || O === 46 || O === 58 || O === 95 || mn(O) ? (e.consume(O), T) : _(O);
6395
+ return O === 45 || O === 46 || O === 58 || O === 95 || hn(O) ? (e.consume(O), T) : _(O);
6396
6396
  }
6397
6397
  function _(O) {
6398
6398
  return O === 61 ? (e.consume(O), S) : lt(O) ? (e.consume(O), _) : C(O);
@@ -6524,19 +6524,19 @@ function mk(e, t, n) {
6524
6524
  return En(w) ? (e.consume(w), S) : n(w);
6525
6525
  }
6526
6526
  function S(w) {
6527
- return w === 45 || mn(w) ? (e.consume(w), S) : M(w);
6527
+ return w === 45 || hn(w) ? (e.consume(w), S) : M(w);
6528
6528
  }
6529
6529
  function M(w) {
6530
6530
  return je(w) ? (i = M, V(w)) : lt(w) ? (e.consume(w), M) : P(w);
6531
6531
  }
6532
6532
  function L(w) {
6533
- return w === 45 || mn(w) ? (e.consume(w), L) : w === 47 || w === 62 || Tt(w) ? $(w) : n(w);
6533
+ return w === 45 || hn(w) ? (e.consume(w), L) : w === 47 || w === 62 || Tt(w) ? $(w) : n(w);
6534
6534
  }
6535
6535
  function $(w) {
6536
6536
  return w === 47 ? (e.consume(w), P) : w === 58 || w === 95 || En(w) ? (e.consume(w), D) : je(w) ? (i = $, V(w)) : lt(w) ? (e.consume(w), $) : P(w);
6537
6537
  }
6538
6538
  function D(w) {
6539
- return w === 45 || w === 46 || w === 58 || w === 95 || mn(w) ? (e.consume(w), D) : N(w);
6539
+ return w === 45 || w === 46 || w === 58 || w === 95 || hn(w) ? (e.consume(w), D) : N(w);
6540
6540
  }
6541
6541
  function N(w) {
6542
6542
  return w === 61 ? (e.consume(w), v) : je(w) ? (i = N, V(w)) : lt(w) ? (e.consume(w), N) : $(w);
@@ -9427,7 +9427,7 @@ class n1 {
9427
9427
  * Message.
9428
9428
  */
9429
9429
  message(t, n, r) {
9430
- const o = new gn(
9430
+ const o = new bn(
9431
9431
  // @ts-expect-error: the overloads are fine.
9432
9432
  t,
9433
9433
  n,
@@ -11370,7 +11370,7 @@ function d6(e, t, n) {
11370
11370
  return Bd(d) ? (e.consume(d), s) : d === 64 ? (e.consume(d), l) : n(d);
11371
11371
  }
11372
11372
  function l(d) {
11373
- return d === 46 ? e.check(u6, c, u)(d) : d === 45 || d === 95 || mn(d) ? (a = !0, e.consume(d), l) : c(d);
11373
+ return d === 46 ? e.check(u6, c, u)(d) : d === 45 || d === 95 || hn(d) ? (a = !0, e.consume(d), l) : c(d);
11374
11374
  }
11375
11375
  function u(d) {
11376
11376
  return e.consume(d), o = !0, l;
@@ -11474,7 +11474,7 @@ function y6(e, t, n) {
11474
11474
  return e.consume(a), o;
11475
11475
  }
11476
11476
  function o(a) {
11477
- return mn(a) ? n(a) : t(a);
11477
+ return hn(a) ? n(a) : t(a);
11478
11478
  }
11479
11479
  }
11480
11480
  function T1(e) {
@@ -11487,7 +11487,7 @@ function k1(e) {
11487
11487
  return !(e === 47 || Bd(e));
11488
11488
  }
11489
11489
  function Bd(e) {
11490
- return e === 43 || e === 45 || e === 46 || e === 95 || mn(e);
11490
+ return e === 43 || e === 45 || e === 46 || e === 95 || hn(e);
11491
11491
  }
11492
11492
  function Wp(e) {
11493
11493
  let t = e.length, n = !1;
@@ -17655,7 +17655,7 @@ class Ih {
17655
17655
  break;
17656
17656
  }
17657
17657
  case q.IN_BODY: {
17658
- bn(this, t);
17658
+ yn(this, t);
17659
17659
  break;
17660
17660
  }
17661
17661
  case q.IN_TABLE: {
@@ -18022,7 +18022,7 @@ function Ki(e, t) {
18022
18022
  function IA(e, t) {
18023
18023
  switch (t.tagID) {
18024
18024
  case y.HTML: {
18025
- bn(e, t);
18025
+ yn(e, t);
18026
18026
  break;
18027
18027
  }
18028
18028
  case y.HEAD: {
@@ -18043,7 +18043,7 @@ function Qi(e, t) {
18043
18043
  function yr(e, t) {
18044
18044
  switch (t.tagID) {
18045
18045
  case y.HTML: {
18046
- bn(e, t);
18046
+ yn(e, t);
18047
18047
  break;
18048
18048
  }
18049
18049
  case y.BASE:
@@ -18112,7 +18112,7 @@ function Xi(e, t) {
18112
18112
  function PA(e, t) {
18113
18113
  switch (t.tagID) {
18114
18114
  case y.HTML: {
18115
- bn(e, t);
18115
+ yn(e, t);
18116
18116
  break;
18117
18117
  }
18118
18118
  case y.BASEFONT:
@@ -18154,7 +18154,7 @@ function Zi(e, t) {
18154
18154
  function NA(e, t) {
18155
18155
  switch (t.tagID) {
18156
18156
  case y.HTML: {
18157
- bn(e, t);
18157
+ yn(e, t);
18158
18158
  break;
18159
18159
  }
18160
18160
  case y.BODY: {
@@ -18220,7 +18220,7 @@ function qu(e, t) {
18220
18220
  break;
18221
18221
  }
18222
18222
  case rt.START_TAG: {
18223
- bn(e, t);
18223
+ yn(e, t);
18224
18224
  break;
18225
18225
  }
18226
18226
  case rt.END_TAG: {
@@ -18351,7 +18351,7 @@ function lD(e, t) {
18351
18351
  function Dh(e, t) {
18352
18352
  e._reconstructActiveFormattingElements(), e._insertElement(t, xe.HTML);
18353
18353
  }
18354
- function bn(e, t) {
18354
+ function yn(e, t) {
18355
18355
  switch (t.tagID) {
18356
18356
  case y.I:
18357
18357
  case y.S:
@@ -18857,7 +18857,7 @@ function ki(e, t) {
18857
18857
  const iy = /* @__PURE__ */ new Set([y.CAPTION, y.COL, y.COLGROUP, y.TBODY, y.TD, y.TFOOT, y.TH, y.THEAD, y.TR]);
18858
18858
  function AD(e, t) {
18859
18859
  const n = t.tagID;
18860
- iy.has(n) ? e.openElements.hasInTableScope(y.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(y.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = q.IN_TABLE, ja(e, t)) : bn(e, t);
18860
+ iy.has(n) ? e.openElements.hasInTableScope(y.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(y.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = q.IN_TABLE, ja(e, t)) : yn(e, t);
18861
18861
  }
18862
18862
  function DD(e, t) {
18863
18863
  const n = t.tagID;
@@ -18885,7 +18885,7 @@ function DD(e, t) {
18885
18885
  function Zp(e, t) {
18886
18886
  switch (t.tagID) {
18887
18887
  case y.HTML: {
18888
- bn(e, t);
18888
+ yn(e, t);
18889
18889
  break;
18890
18890
  }
18891
18891
  case y.COL: {
@@ -19020,7 +19020,7 @@ function sy(e, t) {
19020
19020
  }
19021
19021
  function RD(e, t) {
19022
19022
  const n = t.tagID;
19023
- iy.has(n) ? (e.openElements.hasInTableScope(y.TD) || e.openElements.hasInTableScope(y.TH)) && (e._closeTableCell(), Ku(e, t)) : bn(e, t);
19023
+ iy.has(n) ? (e.openElements.hasInTableScope(y.TD) || e.openElements.hasInTableScope(y.TH)) && (e._closeTableCell(), Ku(e, t)) : yn(e, t);
19024
19024
  }
19025
19025
  function ND(e, t) {
19026
19026
  const n = t.tagID;
@@ -19051,7 +19051,7 @@ function ND(e, t) {
19051
19051
  function ly(e, t) {
19052
19052
  switch (t.tagID) {
19053
19053
  case y.HTML: {
19054
- bn(e, t);
19054
+ yn(e, t);
19055
19055
  break;
19056
19056
  }
19057
19057
  case y.OPTION: {
@@ -19147,7 +19147,7 @@ function LD(e, t) {
19147
19147
  break;
19148
19148
  }
19149
19149
  default:
19150
- e.tmplInsertionModeStack[0] = q.IN_BODY, e.insertionMode = q.IN_BODY, bn(e, t);
19150
+ e.tmplInsertionModeStack[0] = q.IN_BODY, e.insertionMode = q.IN_BODY, yn(e, t);
19151
19151
  }
19152
19152
  }
19153
19153
  function FD(e, t) {
@@ -19157,7 +19157,7 @@ function cy(e, t) {
19157
19157
  e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(y.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Xp(e, t);
19158
19158
  }
19159
19159
  function $D(e, t) {
19160
- t.tagID === y.HTML ? bn(e, t) : nu(e, t);
19160
+ t.tagID === y.HTML ? yn(e, t) : nu(e, t);
19161
19161
  }
19162
19162
  function dy(e, t) {
19163
19163
  var n;
@@ -19176,7 +19176,7 @@ function nu(e, t) {
19176
19176
  function BD(e, t) {
19177
19177
  switch (t.tagID) {
19178
19178
  case y.HTML: {
19179
- bn(e, t);
19179
+ yn(e, t);
19180
19180
  break;
19181
19181
  }
19182
19182
  case y.FRAMESET: {
@@ -19199,7 +19199,7 @@ function HD(e, t) {
19199
19199
  function UD(e, t) {
19200
19200
  switch (t.tagID) {
19201
19201
  case y.HTML: {
19202
- bn(e, t);
19202
+ yn(e, t);
19203
19203
  break;
19204
19204
  }
19205
19205
  case y.NOFRAMES: {
@@ -19212,7 +19212,7 @@ function zD(e, t) {
19212
19212
  t.tagID === y.HTML && (e.insertionMode = q.AFTER_AFTER_FRAMESET);
19213
19213
  }
19214
19214
  function VD(e, t) {
19215
- t.tagID === y.HTML ? bn(e, t) : Sl(e, t);
19215
+ t.tagID === y.HTML ? yn(e, t) : Sl(e, t);
19216
19216
  }
19217
19217
  function Sl(e, t) {
19218
19218
  e.insertionMode = q.IN_BODY, qu(e, t);
@@ -19220,7 +19220,7 @@ function Sl(e, t) {
19220
19220
  function jD(e, t) {
19221
19221
  switch (t.tagID) {
19222
19222
  case y.HTML: {
19223
- bn(e, t);
19223
+ yn(e, t);
19224
19224
  break;
19225
19225
  }
19226
19226
  case y.NOFRAMES: {
@@ -22830,7 +22830,7 @@ function Jh(e) {
22830
22830
  components: i,
22831
22831
  commandOrchestrator: s,
22832
22832
  dispatch: l
22833
- } = ei(ui), u = xn("");
22833
+ } = ei(ui), u = fn("");
22834
22834
  function c(d, f) {
22835
22835
  if (l) {
22836
22836
  var p = {
@@ -22923,7 +22923,7 @@ var WP = (e) => {
22923
22923
  var {
22924
22924
  prefixCls: t,
22925
22925
  onChange: n
22926
- } = e || {}, r = xn(null), o = xn(), a = xn(e.height);
22926
+ } = e || {}, r = fn(null), o = fn(), a = fn(e.height);
22927
22927
  Ut(() => {
22928
22928
  a.current !== e.height && (a.current = e.height);
22929
22929
  }, [e.height]);
@@ -23029,7 +23029,7 @@ var GP = /* @__PURE__ */ ve.forwardRef((e, t) => {
23029
23029
  extraCommands: U,
23030
23030
  fullscreen: b,
23031
23031
  barPopup: {}
23032
- }), G = xn(null), te = xn(null), O = xn(d);
23032
+ }), G = fn(null), te = fn(null), O = fn(d);
23033
23033
  j0(t, () => H({}, B, {
23034
23034
  container: G.current,
23035
23035
  dispatch: w
@@ -23067,7 +23067,7 @@ var GP = /* @__PURE__ */ ve.forwardRef((e, t) => {
23067
23067
  }), [e.commands]), ft(() => u !== B.extraCommands && w({
23068
23068
  extraCommands: U
23069
23069
  }), [e.extraCommands]);
23070
- var Q = xn(), W = xn("preview"), ee = xn(!1);
23070
+ var Q = fn(), W = fn("preview"), ee = fn(!1);
23071
23071
  ft(() => {
23072
23072
  Q.current = B.textareaWarp, B.textareaWarp && (B.textareaWarp.addEventListener("mouseover", () => {
23073
23073
  W.current = "text";
@@ -28676,20 +28676,18 @@ function kn({
28676
28676
  const KN = q0(() => Promise.resolve().then(() => yC));
28677
28677
  function tc({
28678
28678
  result: e,
28679
- minHeight: t,
28680
- maxHeight: n,
28681
- hideToggle: r = !1,
28682
- maxResultSize: o = 0
28679
+ maxHeight: t,
28680
+ maxResultSize: n = 0
28683
28681
  }) {
28684
- const a = xn(null), [i, s] = Ye(n), [l, u] = Ye(!1);
28682
+ const r = fn(null), [o, a] = Ye(t), [i, s] = Ye(!1);
28685
28683
  if (!e)
28686
28684
  return null;
28687
- if (o > 0 && e.length > o && !l)
28685
+ if (n > 0 && e.length > n && !i)
28688
28686
  return /* @__PURE__ */ z(
28689
28687
  He,
28690
28688
  {
28691
28689
  sx: {
28692
- minHeight: `${t}px`,
28690
+ // minHeight: `${minHeight}px`,
28693
28691
  display: "flex",
28694
28692
  flexDirection: "column",
28695
28693
  alignItems: "center",
@@ -28705,35 +28703,35 @@ function tc({
28705
28703
  /* @__PURE__ */ m(MC, { sx: { fontSize: 48, color: "#757575" } }),
28706
28704
  /* @__PURE__ */ m(Ae, { variant: "h6", color: "text.secondary", align: "center", children: "Processing large results may cause browser performance issues. Proceed?" }),
28707
28705
  /* @__PURE__ */ m(
28708
- fn,
28706
+ mn,
28709
28707
  {
28710
28708
  variant: "contained",
28711
28709
  color: "primary",
28712
- onClick: () => u(!0),
28710
+ onClick: () => s(!0),
28713
28711
  children: "Proceed"
28714
28712
  }
28715
28713
  )
28716
28714
  ]
28717
28715
  }
28718
28716
  );
28719
- const d = /* @__PURE__ */ m(kn, { text: "Loading...", centered: !0, size: 32 }), f = Math.min(n, i);
28717
+ const u = /* @__PURE__ */ m(kn, { text: "Loading...", centered: !0, size: 32 }), c = Math.min(t, o);
28720
28718
  return /* @__PURE__ */ m(
28721
28719
  He,
28722
28720
  {
28723
- ref: a,
28721
+ ref: r,
28724
28722
  sx: {
28725
28723
  position: "relative",
28726
- height: `${f}px`,
28724
+ height: "auto",
28727
28725
  border: "0px",
28728
28726
  borderRadius: 0,
28729
28727
  overflow: "hidden"
28730
28728
  },
28731
- children: e && /* @__PURE__ */ m(xp, { fallback: d, children: /* @__PURE__ */ m(
28729
+ children: e && /* @__PURE__ */ m(xp, { fallback: u, children: /* @__PURE__ */ m(
28732
28730
  KN,
28733
28731
  {
28734
28732
  result: e,
28735
- height: f,
28736
- onSizeChange: s
28733
+ height: c,
28734
+ onSizeChange: a
28737
28735
  }
28738
28736
  ) })
28739
28737
  }
@@ -28831,8 +28829,8 @@ function XN({
28831
28829
  /* @__PURE__ */ m(Nr, { children: "Confirm Delete" }),
28832
28830
  /* @__PURE__ */ m(Mr, { children: /* @__PURE__ */ m(Ae, { children: "Are you sure you want to delete this cell?" }) }),
28833
28831
  /* @__PURE__ */ z(B0, { children: [
28834
- /* @__PURE__ */ m(fn, { onClick: () => D(!1), children: "Cancel" }),
28835
- /* @__PURE__ */ m(fn, { onClick: N, color: "error", children: "Delete" })
28832
+ /* @__PURE__ */ m(mn, { onClick: () => D(!1), children: "Cancel" }),
28833
+ /* @__PURE__ */ m(mn, { onClick: N, color: "error", children: "Delete" })
28836
28834
  ] })
28837
28835
  ]
28838
28836
  }
@@ -29053,14 +29051,7 @@ function XN({
29053
29051
  cell: e
29054
29052
  }
29055
29053
  )),
29056
- !t && e.result && /* @__PURE__ */ m(Gl, { variant: "outlined", sx: { borderRadius: 0 }, children: /* @__PURE__ */ m(
29057
- tc,
29058
- {
29059
- result: e.result,
29060
- minHeight: 300,
29061
- maxHeight: 800
29062
- }
29063
- ) }),
29054
+ !t && e.result && /* @__PURE__ */ m(Gl, { variant: "outlined", sx: { borderRadius: 0 }, children: /* @__PURE__ */ m(tc, { result: e.result, maxHeight: 800 }) }),
29064
29055
  !t && !e.result && /* @__PURE__ */ z(He, { onClick: s, sx: { cursor: "pointer" }, children: [
29065
29056
  /* @__PURE__ */ m(
29066
29057
  Ae,
@@ -29156,7 +29147,7 @@ function JN({
29156
29147
  C
29157
29148
  )),
29158
29149
  /* @__PURE__ */ m(
29159
- fn,
29150
+ mn,
29160
29151
  {
29161
29152
  size: "small",
29162
29153
  startIcon: /* @__PURE__ */ m(ZN, {}),
@@ -29281,7 +29272,7 @@ function jW({ workbookPath: e, resourceUri: t }) {
29281
29272
  });
29282
29273
  return te;
29283
29274
  }, B = (G, te) => /* @__PURE__ */ m(
29284
- fn,
29275
+ mn,
29285
29276
  {
29286
29277
  size: "small",
29287
29278
  startIcon: /* @__PURE__ */ m(vT, {}),
@@ -29376,7 +29367,7 @@ function jW({ workbookPath: e, resourceUri: t }) {
29376
29367
  },
29377
29368
  children: [
29378
29369
  /* @__PURE__ */ m(
29379
- fn,
29370
+ mn,
29380
29371
  {
29381
29372
  color: "error",
29382
29373
  onClick: I,
@@ -29398,7 +29389,7 @@ function jW({ workbookPath: e, resourceUri: t }) {
29398
29389
  ] }) }),
29399
29390
  /* @__PURE__ */ z(B0, { children: [
29400
29391
  /* @__PURE__ */ m(
29401
- fn,
29392
+ mn,
29402
29393
  {
29403
29394
  onClick: P,
29404
29395
  color: "primary",
@@ -29407,7 +29398,7 @@ function jW({ workbookPath: e, resourceUri: t }) {
29407
29398
  }
29408
29399
  ),
29409
29400
  /* @__PURE__ */ m(
29410
- fn,
29401
+ mn,
29411
29402
  {
29412
29403
  onClick: A,
29413
29404
  color: "error",
@@ -29544,7 +29535,7 @@ function tM({
29544
29535
  workbookData: e
29545
29536
  }) {
29546
29537
  const [t, n] = ve.useState(!1);
29547
- return /* @__PURE__ */ m(fn, { color: "primary", onClick: async () => {
29538
+ return /* @__PURE__ */ m(mn, { color: "primary", onClick: async () => {
29548
29539
  if (!e) return;
29549
29540
  const o = e.toMalloyWorkbook();
29550
29541
  try {
@@ -29694,7 +29685,7 @@ function qW({
29694
29685
  }, _ = i.length === 0;
29695
29686
  return /* @__PURE__ */ z(vt, { children: [
29696
29687
  /* @__PURE__ */ m(
29697
- fn,
29688
+ mn,
29698
29689
  {
29699
29690
  "aria-controls": h ? "basic-menu" : void 0,
29700
29691
  "aria-haspopup": "true",
@@ -29856,7 +29847,7 @@ function qW({
29856
29847
  ) }),
29857
29848
  /* @__PURE__ */ z(Yt, { direction: "row", spacing: 1, justifyContent: "flex-end", children: [
29858
29849
  /* @__PURE__ */ m(
29859
- fn,
29850
+ mn,
29860
29851
  {
29861
29852
  onClick: E,
29862
29853
  variant: "outlined",
@@ -29865,7 +29856,7 @@ function qW({
29865
29856
  }
29866
29857
  ),
29867
29858
  /* @__PURE__ */ m(
29868
- fn,
29859
+ mn,
29869
29860
  {
29870
29861
  onClick: (S) => T(S),
29871
29862
  variant: "contained",
@@ -31397,7 +31388,7 @@ function N2(e, t, n) {
31397
31388
  }
31398
31389
  };
31399
31390
  }
31400
- function yn(e, t = []) {
31391
+ function xn(e, t = []) {
31401
31392
  if (e === void 0)
31402
31393
  return {};
31403
31394
  const n = {};
@@ -31436,7 +31427,7 @@ function M2(e) {
31436
31427
  internalRef: void 0
31437
31428
  };
31438
31429
  }
31439
- const i = yn({
31430
+ const i = xn({
31440
31431
  ...o,
31441
31432
  ...r
31442
31433
  }), s = Rg(r), l = Rg(o), u = t(i), c = Pe(u?.className, n?.className, a, o?.className, r?.className), d = {
@@ -36451,7 +36442,7 @@ function ML(e) {
36451
36442
  };
36452
36443
  return {
36453
36444
  getRootProps: (A = {}) => {
36454
- const P = yn(e);
36445
+ const P = xn(e);
36455
36446
  delete P.onTransitionEnter, delete P.onTransitionExited;
36456
36447
  const V = {
36457
36448
  ...P,
@@ -37698,7 +37689,7 @@ const iF = (e) => {
37698
37689
  disableUnderline: o
37699
37690
  }
37700
37691
  }
37701
- }, x = c ?? i ? hn(c ?? i, g) : g, E = d.root ?? a.Root ?? uF, C = d.input ?? a.Input ?? cF;
37692
+ }, x = c ?? i ? gn(c ?? i, g) : g, E = d.root ?? a.Root ?? uF, C = d.input ?? a.Input ?? cF;
37702
37693
  return /* @__PURE__ */ m(If, {
37703
37694
  slots: {
37704
37695
  root: E,
@@ -37989,7 +37980,7 @@ const dF = (e) => {
37989
37980
  input: {
37990
37981
  ownerState: b
37991
37982
  }
37992
- }, E = d ?? i ? hn(x, d ?? i) : x, C = f.root ?? a.Root ?? pF, T = f.input ?? a.Input ?? fF;
37983
+ }, E = d ?? i ? gn(x, d ?? i) : x, C = f.root ?? a.Root ?? pF, T = f.input ?? a.Input ?? fF;
37993
37984
  return /* @__PURE__ */ m(If, {
37994
37985
  slots: {
37995
37986
  root: C,
@@ -38442,7 +38433,7 @@ const EF = (e) => {
38442
38433
  }
38443
38434
  },
38444
38435
  ...p,
38445
- classes: p ? hn(V, p.classes) : V,
38436
+ classes: p ? gn(V, p.classes) : V,
38446
38437
  ...f ? f.props.inputProps : {}
38447
38438
  },
38448
38439
  ...(x && E || u) && R === "outlined" ? {
@@ -48126,7 +48117,7 @@ function vz({
48126
48117
  n?.value2 ?? ""
48127
48118
  ), [f, p] = Ye(
48128
48119
  []
48129
- ), [h, b] = Ye(!1), [g, x] = Ye(""), [E, C] = Ye(!1), [T, _] = Ye(!1), S = xn(null), M = xn(0), [L, $] = Ye(!1);
48120
+ ), [h, b] = Ye(!1), [g, x] = Ye(""), [E, C] = Ye(!1), [T, _] = Ye(!1), S = fn(null), M = fn(0), [L, $] = Ye(!1);
48130
48121
  Ut(() => {
48131
48122
  if (e.filterType !== "Retrieval" || !o) return;
48132
48123
  const w = g.trim();
@@ -48891,8 +48882,8 @@ function zz(e = {}) {
48891
48882
  }, [n, o, d, c]), {
48892
48883
  getRootProps: (x = {}) => {
48893
48884
  const E = {
48894
- ...yn(e),
48895
- ...yn(x)
48885
+ ...xn(e),
48886
+ ...xn(x)
48896
48887
  };
48897
48888
  return {
48898
48889
  // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
@@ -49854,7 +49845,7 @@ function YW({ onClickProject: e }) {
49854
49845
  }
49855
49846
  ),
49856
49847
  n ? /* @__PURE__ */ m(O0, {}) : /* @__PURE__ */ m(
49857
- fn,
49848
+ mn,
49858
49849
  {
49859
49850
  variant: "contained",
49860
49851
  size: "large",
@@ -49994,7 +49985,7 @@ function rV({
49994
49985
  }
49995
49986
  ),
49996
49987
  /* @__PURE__ */ m(
49997
- fn,
49988
+ mn,
49998
49989
  {
49999
49990
  variant: "contained",
50000
49991
  color: "secondary",
@@ -50061,9 +50052,8 @@ function Ux({
50061
50052
  tc,
50062
50053
  {
50063
50054
  result: n,
50064
- minHeight: 800,
50065
50055
  maxHeight: 800,
50066
- hideToggle: !0
50056
+ maxResultSize: 1e6
50067
50057
  }
50068
50058
  )
50069
50059
  }
@@ -50192,7 +50182,7 @@ function aV({
50192
50182
  children: [
50193
50183
  /* @__PURE__ */ m(Ae, { variant: "body2", color: "text.secondary", children: "Click Run to execute the query" }),
50194
50184
  /* @__PURE__ */ m(
50195
- fn,
50185
+ mn,
50196
50186
  {
50197
50187
  variant: "contained",
50198
50188
  startIcon: /* @__PURE__ */ m(oV, {}),
@@ -50218,9 +50208,7 @@ function aV({
50218
50208
  tc,
50219
50209
  {
50220
50210
  result: g.data.result,
50221
- minHeight: 300,
50222
50211
  maxHeight: 600,
50223
- hideToggle: !1,
50224
50212
  maxResultSize: o
50225
50213
  }
50226
50214
  )
@@ -51359,28 +51347,12 @@ function mV({
51359
51347
  tc,
51360
51348
  {
51361
51349
  result: e.result,
51362
- minHeight: 200,
51363
51350
  maxHeight: 700,
51364
51351
  maxResultSize: a
51365
51352
  }
51366
51353
  )
51367
51354
  }
51368
51355
  ),
51369
- /* @__PURE__ */ m(
51370
- He,
51371
- {
51372
- sx: {
51373
- position: "absolute",
51374
- bottom: 0,
51375
- left: 0,
51376
- right: 0,
51377
- height: "40px",
51378
- background: "linear-gradient(transparent, rgba(255, 255, 255, 0.9))",
51379
- pointerEvents: "none",
51380
- zIndex: 1
51381
- }
51382
- }
51383
- ),
51384
51356
  /* @__PURE__ */ z(
51385
51357
  Yt,
51386
51358
  {
@@ -51591,7 +51563,7 @@ function hV({
51591
51563
  Ut(() => {
51592
51564
  !u || !l?.notebookCells || I([]);
51593
51565
  }, [u, l, I]);
51594
- const A = xn("");
51566
+ const A = fn("");
51595
51567
  Ut(() => {
51596
51568
  const V = JSON.stringify(
51597
51569
  D.map((U) => ({
@@ -51625,8 +51597,13 @@ function hV({
51625
51597
  sx: {
51626
51598
  p: 3,
51627
51599
  backgroundColor: "#ffffff",
51628
- border: "1px solid #e0e0e0",
51629
- borderRadius: 2
51600
+ border: "1px solid #f0f0f0",
51601
+ borderRadius: 2,
51602
+ boxShadow: "0 1px 3px rgba(0, 0, 0, 0.04)",
51603
+ transition: "box-shadow 0.2s ease-in-out",
51604
+ "&:hover": {
51605
+ boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
51606
+ }
51630
51607
  },
51631
51608
  children: [
51632
51609
  /* @__PURE__ */ m(
@@ -53801,7 +53778,7 @@ const QV = () => (L0 += 1, `mui-tree-view-${L0}`), jf = ({
53801
53778
  };
53802
53779
  return {
53803
53780
  getRootProps: (K = {}) => {
53804
- const Y = H({}, yn(e), yn(K));
53781
+ const Y = H({}, xn(e), xn(K));
53805
53782
  let ae;
53806
53783
  _.selected ? ae = !0 : a || _.disabled ? ae = void 0 : ae = !1;
53807
53784
  const Z = H({}, Y, {
@@ -53826,7 +53803,7 @@ const QV = () => (L0 += 1, `mui-tree-view-${L0}`), jf = ({
53826
53803
  return H({}, Z, J);
53827
53804
  },
53828
53805
  getContentProps: (K = {}) => {
53829
- const Y = yn(K), ae = H({}, Y, K, {
53806
+ const Y = xn(K), ae = H({}, Y, K, {
53830
53807
  ref: $,
53831
53808
  onClick: U(Y),
53832
53809
  onMouseDown: B(Y),
@@ -53839,7 +53816,7 @@ const QV = () => (L0 += 1, `mui-tree-view-${L0}`), jf = ({
53839
53816
  return H({}, ae, Z);
53840
53817
  },
53841
53818
  getGroupTransitionProps: (K = {}) => {
53842
- const Y = yn(K), ae = H({}, Y, {
53819
+ const Y = xn(K), ae = H({}, Y, {
53843
53820
  unmountOnExit: !0,
53844
53821
  component: "ul",
53845
53822
  role: "group",
@@ -53849,13 +53826,13 @@ const QV = () => (L0 += 1, `mui-tree-view-${L0}`), jf = ({
53849
53826
  return o && (ae.indentationAtItemLevel = !0), ae;
53850
53827
  },
53851
53828
  getIconContainerProps: (K = {}) => {
53852
- const Y = yn(K);
53829
+ const Y = xn(K);
53853
53830
  return H({}, Y, K, {
53854
53831
  onClick: G(Y)
53855
53832
  });
53856
53833
  },
53857
53834
  getCheckboxProps: (K = {}) => {
53858
- const Y = yn(K);
53835
+ const Y = xn(K);
53859
53836
  return H({}, Y, {
53860
53837
  visible: i,
53861
53838
  ref: D,
@@ -53867,7 +53844,7 @@ const QV = () => (L0 += 1, `mui-tree-view-${L0}`), jf = ({
53867
53844
  });
53868
53845
  },
53869
53846
  getLabelProps: (K = {}) => {
53870
- const Y = H({}, yn(K)), ae = H({}, Y, {
53847
+ const Y = H({}, xn(K)), ae = H({}, Y, {
53871
53848
  children: h
53872
53849
  }, K, {
53873
53850
  onDoubleClick: V(Y)
@@ -53875,7 +53852,7 @@ const QV = () => (L0 += 1, `mui-tree-view-${L0}`), jf = ({
53875
53852
  return u.isTreeViewEditable && (ae.editable = _.editable), ae;
53876
53853
  },
53877
53854
  getLabelInputProps: (K = {}) => {
53878
- const Y = yn(K), ae = C.labelInput?.({
53855
+ const Y = xn(K), ae = C.labelInput?.({
53879
53856
  rootRefObject: S,
53880
53857
  contentRefObject: M,
53881
53858
  externalEventHandlers: Y,
@@ -53884,7 +53861,7 @@ const QV = () => (L0 += 1, `mui-tree-view-${L0}`), jf = ({
53884
53861
  return H({}, K, ae);
53885
53862
  },
53886
53863
  getDragAndDropOverlayProps: (K = {}) => {
53887
- const Y = yn(K), ae = C.dragAndDropOverlay?.(H({}, R, {
53864
+ const Y = xn(K), ae = C.dragAndDropOverlay?.(H({}, R, {
53888
53865
  externalEventHandlers: Y
53889
53866
  })) ?? {};
53890
53867
  return H({}, K, ae);
@@ -54363,9 +54340,9 @@ const oj = ["children", "className", "slots", "slotProps", "ContentComponent", "
54363
54340
  handleCancelItemLabelEditing: V
54364
54341
  }
54365
54342
  }, yt = G.root?.(H({}, tt, {
54366
- externalEventHandlers: yn(D)
54343
+ externalEventHandlers: xn(D)
54367
54344
  })) ?? {}, mt = G.content?.(H({}, tt, {
54368
- externalEventHandlers: yn(E)
54345
+ externalEventHandlers: xn(E)
54369
54346
  })) ?? {}, ie = G.dragAndDropOverlay?.(H({}, tt, {
54370
54347
  externalEventHandlers: {}
54371
54348
  })) ?? {}, be = G.labelInput?.(H({}, tt, {
@@ -55954,7 +55931,7 @@ function cW({ resourceUri: e }) {
55954
55931
  f && /* @__PURE__ */ z(He, { sx: { mt: 1 }, children: [
55955
55932
  " ",
55956
55933
  /* @__PURE__ */ m(
55957
- fn,
55934
+ mn,
55958
55935
  {
55959
55936
  variant: "text",
55960
55937
  size: "small",
@@ -56500,42 +56477,45 @@ function bW({
56500
56477
  onDrill: n,
56501
56478
  onSizeChange: r
56502
56479
  }) {
56503
- const o = xn(null);
56480
+ const o = fn(null), a = fn(!1);
56504
56481
  return DC(() => {
56505
56482
  if (!o.current || !e) return;
56506
- let a = !0;
56507
- const i = o.current;
56508
- for (; i.firstChild; )
56509
- i.removeChild(i.firstChild);
56510
- let s = null, l = null;
56511
- const u = () => {
56512
- if (!a || !i.firstElementChild) return;
56513
- const d = i.firstElementChild.firstElementChild;
56514
- if (!d) return;
56515
- const f = d.scrollHeight || d.offsetHeight || 0;
56516
- f > 0 && r && r(f);
56483
+ let i = !0;
56484
+ const s = o.current;
56485
+ for (; s.firstChild; )
56486
+ s.removeChild(s.firstChild);
56487
+ a.current = !1;
56488
+ let l = null, u = null;
56489
+ const c = () => {
56490
+ if (a.current || !i || !s.firstElementChild)
56491
+ return;
56492
+ const f = s.firstElementChild.firstElementChild;
56493
+ if (!f) return;
56494
+ const p = f.firstElementChild;
56495
+ let h = f.scrollHeight || f.offsetHeight || 0;
56496
+ p && f.classList.contains("malloy-dashboard") && (h = p.scrollHeight || p.offsetHeight || 0), h > 0 && (a.current = !0, r && r(h));
56517
56497
  };
56518
- return gW(n).then((c) => {
56519
- if (a) {
56520
- s = new MutationObserver(() => {
56521
- l && clearTimeout(l), l = setTimeout(() => {
56522
- u(), s?.disconnect();
56498
+ return gW(n).then((d) => {
56499
+ if (i) {
56500
+ l = new MutationObserver(() => {
56501
+ u && clearTimeout(u), u = setTimeout(() => {
56502
+ c(), l?.disconnect();
56523
56503
  }, 100);
56524
- }), s.observe(i, {
56504
+ }), l.observe(s, {
56525
56505
  childList: !0,
56526
56506
  subtree: !0,
56527
56507
  attributes: !0
56528
56508
  });
56529
56509
  try {
56530
- c.setResult(JSON.parse(e)), c.render(i);
56531
- } catch (d) {
56532
- console.error("Error rendering visualization:", d), s?.disconnect();
56510
+ d.setResult(JSON.parse(e)), d.render(s);
56511
+ } catch (f) {
56512
+ console.error("Error rendering visualization:", f), l?.disconnect();
56533
56513
  }
56534
56514
  }
56535
- }).catch((c) => {
56536
- console.error("Failed to create renderer:", c);
56515
+ }).catch((d) => {
56516
+ console.error("Failed to create renderer:", d);
56537
56517
  }), () => {
56538
- a = !1, s?.disconnect(), l && clearTimeout(l);
56518
+ i = !1, l?.disconnect(), u && clearTimeout(u);
56539
56519
  };
56540
56520
  }, [e, n, r]), /* @__PURE__ */ m(
56541
56521
  "div",
@@ -56543,7 +56523,7 @@ function bW({
56543
56523
  ref: o,
56544
56524
  style: {
56545
56525
  width: "100%",
56546
- height: t ? `${t}px` : "100%"
56526
+ height: t ? `${t}px` : "400px"
56547
56527
  }
56548
56528
  }
56549
56529
  );