@marimo-team/islands 0.25.3-dev431 → 0.25.3-dev432

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.
@@ -3,7 +3,7 @@ import { _ as t, f as n, g as r, h as i, i as a, m as o, n as s, p as c, r as l,
3
3
  import { t as d } from "./react-Bgs_wQh3.js";
4
4
  import { t as f } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { i as p, n as m, r as h, t as g } from "./copy-icon-Bv5SAA0w.js";
6
- import { A as _, At as v, C as y, D as b, Dt as x, G as S, Gt as C, H as w, Ht as T, It as E, J as D, K as O, Lt as k, M as A, Mt as j, N as M, Pt as N, Q as P, Rt as F, S as I, Tt as L, U as R, Ut as z, V as B, Vt as ee, W as te, Wt as ne, X as V, Z as re, d as ie, dt as ae, ft as oe, ht as se, it as ce, k as le, n as ue, pt as de, r as fe, s as pe, t as me, w as he, wt as ge, x as _e, y as ve, z as ye } from "./html-to-image-ffxLmS29.js";
6
+ import { $ as _, A as v, C as y, D as b, Et as x, Ft as S, G as C, Gt as w, H as T, Ht as E, K as D, Kt as O, Lt as k, M as A, N as j, Nt as M, Ot as N, Q as P, Rt as F, S as I, Tt as ee, U as L, Ut as R, V as z, W as B, Wt as te, Y as ne, Z as V, at as re, d as ie, ft as ae, gt as oe, jt as se, k as ce, mt as le, n as ue, pt as de, r as fe, s as pe, t as me, w as he, x as ge, y as _e, z as ve, zt as ye } from "./html-to-image-DuNAF8H5.js";
7
7
  import { a as be, f as xe, h as H, n as Se, o as Ce, r as we, t as U } from "./tooltip-DsQZP310.js";
8
8
  import { r as Te, s as Ee } from "./useLifecycle-Bw0JtmoB.js";
9
9
  import { a as De, i as Oe, n as ke, o as Ae, r as je, t as Me } from "./useDateFormatter-CRuBYwR6.js";
@@ -33,7 +33,7 @@ import { o as ba } from "./dist-DNkrY12t.js";
33
33
  import { a as xa, i as Sa, n as Ca, o as wa, r as Ta, t as Ea } from "./dialog-B8vU2hHC.js";
34
34
  import { t as Da } from "./useAsyncData-P5-Oovhq.js";
35
35
  import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
36
- import { t as Oa } from "./ErrorBoundary-CRk39Htl.js";
36
+ import { t as Oa } from "./ErrorBoundary-B43oV3b6.js";
37
37
  import { W as ka, n as Aa } from "./vega-loader.browser-Co9gYE8Z.js";
38
38
  import { a as ja, n as Ma, r as Na, t as Pa } from "./loader-Bin_dutt.js";
39
39
  import { t as Fa } from "./useIframeCapabilities-HTZiVlGV.js";
@@ -4334,21 +4334,21 @@ function Wp(e, t, n = {}) {
4334
4334
  e !== t && Gp(e, t, t.getBoundingClientRect(), n);
4335
4335
  }
4336
4336
  function Gp(e, t, n, r = {}) {
4337
- let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, F = e === d ? 0 : e.offsetWidth - e.clientWidth - N, I = e === d ? 0 : e.offsetHeight - e.clientHeight - P, L = p + (f ? 0 : T) + x, R = m - (f ? 0 : E) - S - I, z = h + (f ? 0 : D) + C, B = g - (f ? 0 : O) - w;
4338
- ur() && Ot() || u.direction === "ltr" ? B -= F : u.direction === "rtl" && (z += F);
4339
- let ee = k < L || A > R, te = j < z || M > B;
4340
- if (ee && i === "start") o += k - L;
4341
- else if (ee && i === "center") o += (k + A) / 2 - (L + R) / 2;
4342
- else if (ee && i === "end") o += A - R;
4343
- else if (ee && i === "nearest") {
4344
- let e = k - L, t = A - R;
4337
+ let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, F = e === d ? 0 : e.offsetWidth - e.clientWidth - N, I = e === d ? 0 : e.offsetHeight - e.clientHeight - P, ee = p + (f ? 0 : T) + x, L = m - (f ? 0 : E) - S - I, R = h + (f ? 0 : D) + C, z = g - (f ? 0 : O) - w;
4338
+ ur() && Ot() || u.direction === "ltr" ? z -= F : u.direction === "rtl" && (R += F);
4339
+ let B = k < ee || A > L, te = j < R || M > z;
4340
+ if (B && i === "start") o += k - ee;
4341
+ else if (B && i === "center") o += (k + A) / 2 - (ee + L) / 2;
4342
+ else if (B && i === "end") o += A - L;
4343
+ else if (B && i === "nearest") {
4344
+ let e = k - ee, t = A - L;
4345
4345
  o += Math.abs(e) <= Math.abs(t) ? e : t;
4346
4346
  }
4347
- if (te && a === "start") s += j - z;
4348
- else if (te && a === "center") s += (j + M) / 2 - (z + B) / 2;
4349
- else if (te && a === "end") s += M - B;
4347
+ if (te && a === "start") s += j - R;
4348
+ else if (te && a === "center") s += (j + M) / 2 - (R + z) / 2;
4349
+ else if (te && a === "end") s += M - z;
4350
4350
  else if (te && a === "nearest") {
4351
- let e = j - z, t = M - B;
4351
+ let e = j - R, t = M - z;
4352
4352
  s += Math.abs(e) <= Math.abs(t) ? e : t;
4353
4353
  }
4354
4354
  e.scrollTo({
@@ -6707,11 +6707,11 @@ function jg(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
6707
6707
  w[b] += O;
6708
6708
  let k = kg(w, s, l, f, i, a, n.height, D, c, g, _);
6709
6709
  p && p < k && (k = p), n.height = Math.min(n.height, k), w = Og(t, s, n, v, T, d, l, f, m, h, c), O = Tg(b, w[b], n[x], s, c, a, l), w[b] += O;
6710
- let A = {}, j = t[b] - w[b] - i[gg[b]], M = j + .5 * t[x], N = m / 2 + h, P = gg[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h, I = t[b] + m / 2 - (w[b] + i[gg[b]]), L = t[b] + t[x] - m / 2 - (w[b] + i[gg[b]]), R = Ln(M, I, L);
6711
- A[b] = Ln(R, N, F), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
6712
- let z = S === "left" || S === "top" ? n[y] : 0, B = {
6713
- x: S === "top" || S === "bottom" ? j : z,
6714
- y: S === "left" || S === "right" ? j : z
6710
+ let A = {}, j = t[b] - w[b] - i[gg[b]], M = j + .5 * t[x], N = m / 2 + h, P = gg[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h, I = t[b] + m / 2 - (w[b] + i[gg[b]]), ee = t[b] + t[x] - m / 2 - (w[b] + i[gg[b]]), L = Ln(M, I, ee);
6711
+ A[b] = Ln(L, N, F), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
6712
+ let R = S === "left" || S === "top" ? n[y] : 0, z = {
6713
+ x: S === "top" || S === "bottom" ? j : R,
6714
+ y: S === "left" || S === "right" ? j : R
6715
6715
  };
6716
6716
  return {
6717
6717
  position: w,
@@ -6719,7 +6719,7 @@ function jg(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
6719
6719
  arrowOffsetLeft: A.left,
6720
6720
  arrowOffsetTop: A.top,
6721
6721
  placement: S,
6722
- triggerAnchorPoint: B
6722
+ triggerAnchorPoint: z
6723
6723
  };
6724
6724
  }
6725
6725
  function Mg(e) {
@@ -6974,13 +6974,13 @@ function Yg(e) {
6974
6974
  var Xg = (e, t) => {
6975
6975
  let [n, ...r] = t.split("."), i = (e.attribs.class || "").split(" ");
6976
6976
  return e.tagName === n && r.every((e) => i.includes(e));
6977
- }, Zg = (e) => e && Xg(e, "span.nb") && e.firstChild instanceof C.Text && e.firstChild.nodeValue?.includes("__marimo__");
6977
+ }, Zg = (e) => e && Xg(e, "span.nb") && e.firstChild instanceof O.Text && e.firstChild.nodeValue?.includes("__marimo__");
6978
6978
  function Qg(e) {
6979
- if (e instanceof C.Element && e.firstChild instanceof C.Text && Xg(e, "span.nb")) {
6979
+ if (e instanceof O.Element && e.firstChild instanceof O.Text && Xg(e, "span.nb")) {
6980
6980
  let t = e.next;
6981
- if (t && t instanceof C.Text) {
6981
+ if (t && t instanceof O.Text) {
6982
6982
  let n = t.next;
6983
- if (n && n instanceof C.Element && n.firstChild instanceof C.Text && Xg(n, "span.m")) {
6983
+ if (n && n instanceof O.Element && n.firstChild instanceof O.Text && Xg(n, "span.m")) {
6984
6984
  let t = Number.parseInt(n.firstChild.nodeValue || "0", 10);
6985
6985
  if (e.firstChild.nodeValue?.includes("__marimo__")) {
6986
6986
  let n = /__marimo__cell_(\w+)_/.exec(e.firstChild.nodeValue)?.[1];
@@ -7004,7 +7004,7 @@ function Qg(e) {
7004
7004
  }
7005
7005
  function $g(e) {
7006
7006
  let t = [];
7007
- return ne(e, { replace: (e) => {
7007
+ return w(e, { replace: (e) => {
7008
7008
  let n = Qg(e);
7009
7009
  if (n) return t.push(n), "dummy";
7010
7010
  } }), t;
@@ -8324,7 +8324,7 @@ var bv = "[cmdk-group=\"\"]", xv = "[cmdk-group-items=\"\"]", Sv = "[cmdk-group-
8324
8324
  }
8325
8325
  let F = () => M(j().length - 1), I = (e) => {
8326
8326
  e.preventDefault(), e.metaKey ? F() : e.altKey ? P(1) : N(1);
8327
- }, L = (e) => {
8327
+ }, ee = (e) => {
8328
8328
  e.preventDefault(), e.metaKey ? M(0) : e.altKey ? P(-1) : N(-1);
8329
8329
  };
8330
8330
  return K.createElement(Ci.div, {
@@ -8346,10 +8346,10 @@ var bv = "[cmdk-group=\"\"]", xv = "[cmdk-group-items=\"\"]", Sv = "[cmdk-group-
8346
8346
  break;
8347
8347
  case "p":
8348
8348
  case "k":
8349
- g && e.ctrlKey && L(e);
8349
+ g && e.ctrlKey && ee(e);
8350
8350
  break;
8351
8351
  case "ArrowUp":
8352
- L(e);
8352
+ ee(e);
8353
8353
  break;
8354
8354
  case "Home":
8355
8355
  e.preventDefault(), M(0);
@@ -8737,30 +8737,30 @@ var uy = (0, K.createContext)({
8737
8737
  isSelected: () => !1,
8738
8738
  onSelect: t.NOOP
8739
8739
  }), dy = (e) => {
8740
- let t = (0, J.c)(106), n, r, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E;
8741
- t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16], y = t[17], b = t[18], x = t[19], S = t[20], C = t[21], w = t[22], T = t[23], E = t[24]) : ({children: n, displayValue: c, className: a, placeholder: g, value: E, defaultValue: s, onValueChange: m, multiple: b, shouldFilter: x, filterFn: l, open: h, defaultOpen: o, onOpenChange: f, inputPlaceholder: S, search: y, onSearchChange: p, emptyState: C, chips: w, chipsClassName: r, keepPopoverOpenOnSelect: d, id: u, disabled: T, renderValue: _, ...v} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g, t[15] = _, t[16] = v, t[17] = y, t[18] = b, t[19] = x, t[20] = S, t[21] = C, t[22] = w, t[23] = T, t[24] = E);
8742
- let D = b !== void 0 && b, O = x === void 0 || x, k = S === void 0 ? "Search..." : S, A = C === void 0 ? "Nothing found." : C, j = w !== void 0 && w, M = T !== void 0 && T, N = o ?? !1, P;
8743
- t[25] !== f || t[26] !== h || t[27] !== N ? (P = {
8740
+ let t = (0, J.c)(106), n, r, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, D;
8741
+ t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16], y = t[17], b = t[18], x = t[19], S = t[20], C = t[21], w = t[22], T = t[23], D = t[24]) : ({children: n, displayValue: c, className: a, placeholder: g, value: D, defaultValue: s, onValueChange: m, multiple: b, shouldFilter: x, filterFn: l, open: h, defaultOpen: o, onOpenChange: f, inputPlaceholder: S, search: y, onSearchChange: p, emptyState: C, chips: w, chipsClassName: r, keepPopoverOpenOnSelect: d, id: u, disabled: T, renderValue: _, ...v} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g, t[15] = _, t[16] = v, t[17] = y, t[18] = b, t[19] = x, t[20] = S, t[21] = C, t[22] = w, t[23] = T, t[24] = D);
8742
+ let O = b !== void 0 && b, k = x === void 0 || x, A = S === void 0 ? "Search..." : S, j = C === void 0 ? "Nothing found." : C, M = w !== void 0 && w, N = T !== void 0 && T, P = o ?? !1, F;
8743
+ t[25] !== f || t[26] !== h || t[27] !== P ? (F = {
8744
8744
  prop: h,
8745
- defaultProp: N,
8745
+ defaultProp: P,
8746
8746
  onChange: f
8747
- }, t[25] = f, t[26] = h, t[27] = N, t[28] = P) : P = t[28];
8748
- let [F, I] = Si(P), L = F !== void 0 && F, z;
8749
- t[29] === m ? z = t[30] : (z = (e) => {
8747
+ }, t[25] = f, t[26] = h, t[27] = P, t[28] = F) : F = t[28];
8748
+ let [I, ee] = Si(F), R = I !== void 0 && I, te;
8749
+ t[29] === m ? te = t[30] : (te = (e) => {
8750
8750
  m?.(e);
8751
- }, t[29] = m, t[30] = z);
8751
+ }, t[29] = m, t[30] = te);
8752
8752
  let ne;
8753
- t[31] !== s || t[32] !== z || t[33] !== E ? (ne = {
8754
- prop: E,
8753
+ t[31] !== s || t[32] !== te || t[33] !== D ? (ne = {
8754
+ prop: D,
8755
8755
  defaultProp: s,
8756
- onChange: z
8757
- }, t[31] = s, t[32] = z, t[33] = E, t[34] = ne) : ne = t[34];
8756
+ onChange: te
8757
+ }, t[31] = s, t[32] = te, t[33] = D, t[34] = ne) : ne = t[34];
8758
8758
  let [V, re] = Si(ne), ie;
8759
8759
  t[35] === V ? ie = t[36] : (ie = (e) => Array.isArray(V) ? V.includes(e) : V === e, t[35] = V, t[36] = ie);
8760
8760
  let ae = ie, oe;
8761
- t[37] !== d || t[38] !== D || t[39] !== I || t[40] !== re || t[41] !== V ? (oe = (e) => {
8761
+ t[37] !== d || t[38] !== O || t[39] !== ee || t[40] !== re || t[41] !== V ? (oe = (e) => {
8762
8762
  let t = e;
8763
- if (D) {
8763
+ if (O) {
8764
8764
  if (Array.isArray(V)) {
8765
8765
  if (V.includes(t)) {
8766
8766
  let n = V.filter((t) => t !== e);
@@ -8768,10 +8768,10 @@ var uy = (0, K.createContext)({
8768
8768
  } else t = [...V, t];
8769
8769
  } else t = [t];
8770
8770
  } else V === e && (t = null);
8771
- re(t), (d ?? D) || I(!1);
8772
- }, t[37] = d, t[38] = D, t[39] = I, t[40] = re, t[41] = V, t[42] = oe) : oe = t[42];
8771
+ re(t), (d ?? O) || ee(!1);
8772
+ }, t[37] = d, t[38] = O, t[39] = ee, t[40] = re, t[41] = V, t[42] = oe) : oe = t[42];
8773
8773
  let se = oe, ce;
8774
- t[43] !== j || t[44] !== c || t[45] !== D || t[46] !== g || t[47] !== V ? (ce = () => D && j && g ? g : V == null ? g ?? "--" : Array.isArray(V) ? V.length === 0 ? g ?? "--" : V.length === 1 && c !== void 0 ? c(V[0]) : `${V.length} selected` : c === void 0 ? g ?? "--" : c(V), t[43] = j, t[44] = c, t[45] = D, t[46] = g, t[47] = V, t[48] = ce) : ce = t[48];
8774
+ t[43] !== M || t[44] !== c || t[45] !== O || t[46] !== g || t[47] !== V ? (ce = () => O && M && g ? g : V == null ? g ?? "--" : Array.isArray(V) ? V.length === 0 ? g ?? "--" : V.length === 1 && c !== void 0 ? c(V[0]) : `${V.length} selected` : c === void 0 ? g ?? "--" : c(V), t[43] = M, t[44] = c, t[45] = O, t[46] = g, t[47] = V, t[48] = ce) : ce = t[48];
8775
8775
  let le = ce, ue;
8776
8776
  t[49] !== se || t[50] !== ae ? (ue = {
8777
8777
  isSelected: ae,
@@ -8780,10 +8780,10 @@ var uy = (0, K.createContext)({
8780
8780
  let de = ue, fe;
8781
8781
  t[52] === Symbol.for("react.memo_cache_sentinel") ? (fe = i("relative"), t[52] = fe) : fe = t[52];
8782
8782
  let pe;
8783
- t[53] !== M || t[54] !== I ? (pe = (e) => {
8784
- M && e || I(e);
8785
- }, t[53] = M, t[54] = I, t[55] = pe) : pe = t[55];
8786
- let me = M && "cursor-not-allowed opacity-50", he;
8783
+ t[53] !== N || t[54] !== ee ? (pe = (e) => {
8784
+ N && e || ee(e);
8785
+ }, t[53] = N, t[54] = ee, t[55] = pe) : pe = t[55];
8786
+ let me = N && "cursor-not-allowed opacity-50", he;
8787
8787
  t[56] !== a || t[57] !== me ? (he = i("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary focus-visible:shadow-md-solid", me, a), t[56] = a, t[57] = me, t[58] = he) : he = t[58];
8788
8788
  let ge;
8789
8789
  t[59] !== _ || t[60] !== le || t[61] !== V ? (ge = _ ? _(V ?? null) : le(), t[59] = _, t[60] = le, t[61] = V, t[62] = ge) : ge = t[62];
@@ -8795,27 +8795,27 @@ var uy = (0, K.createContext)({
8795
8795
  let ve;
8796
8796
  t[65] === Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ (0, q.jsx)(Ie, { className: "ml-3 w-4 h-4 opacity-50 shrink-0" }), t[65] = ve) : ve = t[65];
8797
8797
  let ye;
8798
- t[66] !== M || t[67] !== u || t[68] !== L || t[69] !== he || t[70] !== _e ? (ye = /* @__PURE__ */ (0, q.jsx)(te, {
8798
+ t[66] !== N || t[67] !== u || t[68] !== R || t[69] !== he || t[70] !== _e ? (ye = /* @__PURE__ */ (0, q.jsx)(B, {
8799
8799
  asChild: !0,
8800
8800
  children: /* @__PURE__ */ (0, q.jsxs)("button", {
8801
8801
  id: u,
8802
8802
  type: "button",
8803
8803
  className: he,
8804
- "aria-expanded": L,
8805
- "aria-disabled": M,
8804
+ "aria-expanded": R,
8805
+ "aria-disabled": N,
8806
8806
  children: [_e, ve]
8807
8807
  })
8808
- }), t[66] = M, t[67] = u, t[68] = L, t[69] = he, t[70] = _e, t[71] = ye) : ye = t[71];
8808
+ }), t[66] = N, t[67] = u, t[68] = R, t[69] = he, t[70] = _e, t[71] = ye) : ye = t[71];
8809
8809
  let be;
8810
- t[72] !== k || t[73] !== p || t[74] !== y ? (be = /* @__PURE__ */ (0, q.jsx)(iy, {
8811
- placeholder: k,
8810
+ t[72] !== A || t[73] !== p || t[74] !== y ? (be = /* @__PURE__ */ (0, q.jsx)(iy, {
8811
+ placeholder: A,
8812
8812
  rootClassName: "px-1 h-8",
8813
8813
  autoFocus: !0,
8814
8814
  value: y,
8815
8815
  onValueChange: p
8816
- }), t[72] = k, t[73] = p, t[74] = y, t[75] = be) : be = t[75];
8816
+ }), t[72] = A, t[73] = p, t[74] = y, t[75] = be) : be = t[75];
8817
8817
  let xe;
8818
- t[76] === A ? xe = t[77] : (xe = /* @__PURE__ */ (0, q.jsx)(oy, { children: A }), t[76] = A, t[77] = xe);
8818
+ t[76] === j ? xe = t[77] : (xe = /* @__PURE__ */ (0, q.jsx)(oy, { children: j }), t[76] = j, t[77] = xe);
8819
8819
  let H;
8820
8820
  t[78] !== n || t[79] !== de ? (H = /* @__PURE__ */ (0, q.jsx)(uy, {
8821
8821
  value: de,
@@ -8827,34 +8827,34 @@ var uy = (0, K.createContext)({
8827
8827
  children: [xe, H]
8828
8828
  }), t[81] = xe, t[82] = H, t[83] = Se) : Se = t[83];
8829
8829
  let Ce;
8830
- t[84] !== l || t[85] !== O || t[86] !== be || t[87] !== Se ? (Ce = /* @__PURE__ */ (0, q.jsx)(R, {
8830
+ t[84] !== l || t[85] !== k || t[86] !== be || t[87] !== Se ? (Ce = /* @__PURE__ */ (0, q.jsx)(L, {
8831
8831
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
8832
8832
  align: "start",
8833
8833
  children: /* @__PURE__ */ (0, q.jsxs)(ry, {
8834
8834
  filter: l,
8835
- shouldFilter: O,
8835
+ shouldFilter: k,
8836
8836
  children: [be, Se]
8837
8837
  })
8838
- }), t[84] = l, t[85] = O, t[86] = be, t[87] = Se, t[88] = Ce) : Ce = t[88];
8838
+ }), t[84] = l, t[85] = k, t[86] = be, t[87] = Se, t[88] = Ce) : Ce = t[88];
8839
8839
  let we;
8840
- t[89] !== L || t[90] !== pe || t[91] !== ye || t[92] !== Ce ? (we = /* @__PURE__ */ (0, q.jsxs)(B, {
8841
- open: L,
8840
+ t[89] !== R || t[90] !== pe || t[91] !== ye || t[92] !== Ce ? (we = /* @__PURE__ */ (0, q.jsxs)(z, {
8841
+ open: R,
8842
8842
  onOpenChange: pe,
8843
8843
  children: [ye, Ce]
8844
- }), t[89] = L, t[90] = pe, t[91] = ye, t[92] = Ce, t[93] = we) : we = t[93];
8844
+ }), t[89] = R, t[90] = pe, t[91] = ye, t[92] = Ce, t[93] = we) : we = t[93];
8845
8845
  let U;
8846
- t[94] !== j || t[95] !== r || t[96] !== M || t[97] !== c || t[98] !== se || t[99] !== D || t[100] !== V ? (U = D && j && /* @__PURE__ */ (0, q.jsx)("div", {
8846
+ t[94] !== M || t[95] !== r || t[96] !== N || t[97] !== c || t[98] !== se || t[99] !== O || t[100] !== V ? (U = O && M && /* @__PURE__ */ (0, q.jsx)("div", {
8847
8847
  className: i("flex flex-col gap-1 items-start", r),
8848
8848
  children: Array.isArray(V) && V.map((e) => e == null ? null : /* @__PURE__ */ (0, q.jsxs)(Te, {
8849
8849
  variant: "secondary",
8850
- children: [c?.(e) ?? String(e), /* @__PURE__ */ (0, q.jsx)(ee, {
8850
+ children: [c?.(e) ?? String(e), /* @__PURE__ */ (0, q.jsx)(E, {
8851
8851
  onClick: () => {
8852
- M || se(e);
8852
+ N || se(e);
8853
8853
  },
8854
- className: i("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", M && "pointer-events-none")
8854
+ className: i("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", N && "pointer-events-none")
8855
8855
  })]
8856
8856
  }, String(e)))
8857
- }), t[94] = j, t[95] = r, t[96] = M, t[97] = c, t[98] = se, t[99] = D, t[100] = V, t[101] = U) : U = t[101];
8857
+ }), t[94] = M, t[95] = r, t[96] = N, t[97] = c, t[98] = se, t[99] = O, t[100] = V, t[101] = U) : U = t[101];
8858
8858
  let Ee;
8859
8859
  return t[102] !== v || t[103] !== we || t[104] !== U ? (Ee = /* @__PURE__ */ (0, q.jsxs)("div", {
8860
8860
  className: fe,
@@ -9040,7 +9040,7 @@ function Ty(e) {
9040
9040
  l,
9041
9041
  o,
9042
9042
  s
9043
- ]), L = e.isInvalid || e.validationState === "invalid" || I, R = L ? "invalid" : null, z = (0, K.useMemo)(() => u === "visible" ? a : Ey(a), [u, a]);
9043
+ ]), ee = e.isInvalid || e.validationState === "invalid" || I, L = ee ? "invalid" : null, R = (0, K.useMemo)(() => u === "visible" ? a : Ey(a), [u, a]);
9044
9044
  return {
9045
9045
  isDisabled: e.isDisabled ?? !1,
9046
9046
  isReadOnly: e.isReadOnly ?? !1,
@@ -9056,8 +9056,8 @@ function Ty(e) {
9056
9056
  maxValue: s,
9057
9057
  focusedDate: x,
9058
9058
  timeZone: v,
9059
- validationState: R,
9060
- isValueInvalid: L,
9059
+ validationState: L,
9060
+ isValueInvalid: ee,
9061
9061
  setFocusedDate(e) {
9062
9062
  N(e);
9063
9063
  },
@@ -9074,12 +9074,12 @@ function Ty(e) {
9074
9074
  a.days ? this.focusPreviousPage() : (a.weeks || a.months || a.years) && N(x.subtract({ weeks: 1 }));
9075
9075
  },
9076
9076
  focusNextPage() {
9077
- let e = w.add(z);
9078
- S(Sy(x.add(z), o, s)), T(yy(xy(x, e, z, r, o, s), z, r));
9077
+ let e = w.add(R);
9078
+ S(Sy(x.add(R), o, s)), T(yy(xy(x, e, R, r, o, s), R, r));
9079
9079
  },
9080
9080
  focusPreviousPage() {
9081
- let e = w.subtract(z);
9082
- S(Sy(x.subtract(z), o, s)), T(yy(xy(x, e, z, r, o, s), z, r));
9081
+ let e = w.subtract(R);
9082
+ S(Sy(x.subtract(R), o, s)), T(yy(xy(x, e, R, r, o, s), R, r));
9083
9083
  },
9084
9084
  focusSectionStart() {
9085
9085
  a.days ? N(w) : a.weeks ? N(od(x, r)) : (a.months || a.years) && N(rd(x));
@@ -10868,7 +10868,7 @@ function ux(e) {
10868
10868
  p,
10869
10869
  y,
10870
10870
  D
10871
- ]), L = (0, K.useMemo)(() => dx(I, b, T, E, m, t, d), [
10871
+ ]), ee = (0, K.useMemo)(() => dx(I, b, T, E, m, t, d), [
10872
10872
  I,
10873
10873
  T,
10874
10874
  E,
@@ -10876,46 +10876,46 @@ function ux(e) {
10876
10876
  m,
10877
10877
  t,
10878
10878
  d
10879
- ]), R = (e, t) => {
10879
+ ]), L = (e, t) => {
10880
10880
  F(b.cycle(e, t, D, O));
10881
- }, z = (0, K.useMemo)(() => Kb(g, s, c, l, C), [
10881
+ }, R = (0, K.useMemo)(() => Kb(g, s, c, l, C), [
10882
10882
  g,
10883
10883
  s,
10884
10884
  c,
10885
10885
  l,
10886
10886
  C
10887
- ]), B = $n({
10887
+ ]), z = $n({
10888
10888
  ...e,
10889
10889
  value: g,
10890
- builtinValidation: z
10891
- }), ee = B.displayValidation.isInvalid, te = e.validationState || (ee ? "invalid" : null);
10890
+ builtinValidation: R
10891
+ }), B = z.displayValidation.isInvalid, te = e.validationState || (B ? "invalid" : null);
10892
10892
  return {
10893
- ...B,
10893
+ ...z,
10894
10894
  value: y,
10895
10895
  defaultValue: e.defaultValue ?? v,
10896
10896
  dateValue: I,
10897
10897
  calendar: m,
10898
10898
  setValue: F,
10899
- segments: L,
10899
+ segments: ee,
10900
10900
  dateFormatter: T,
10901
10901
  validationState: te,
10902
- isInvalid: ee,
10902
+ isInvalid: B,
10903
10903
  granularity: d,
10904
10904
  maxGranularity: e.maxGranularity ?? "year",
10905
10905
  isDisabled: i,
10906
10906
  isReadOnly: a,
10907
10907
  isRequired: o,
10908
10908
  increment(e) {
10909
- R(e, 1);
10909
+ L(e, 1);
10910
10910
  },
10911
10911
  decrement(e) {
10912
- R(e, -1);
10912
+ L(e, -1);
10913
10913
  },
10914
10914
  incrementPage(e) {
10915
- R(e, cx[e] || 1);
10915
+ L(e, cx[e] || 1);
10916
10916
  },
10917
10917
  decrementPage(e) {
10918
- R(e, -(cx[e] || 1));
10918
+ L(e, -(cx[e] || 1));
10919
10919
  },
10920
10920
  incrementToMax(e) {
10921
10921
  let t = e === "hour" && h === "h12" ? 11 : b.getSegmentLimits(e).maxValue;
@@ -11624,7 +11624,7 @@ function Fx() {
11624
11624
  //#endregion
11625
11625
  //#region src/components/editor/links/cell-link.tsx
11626
11626
  var Ix = (e) => {
11627
- let t = (0, J.c)(15), { className: n, cellId: r, variant: a, onClick: s, formatCellName: c, skipScroll: l } = e, u = Mr()[r] ?? "", d = Ur().indexOf(r), { showCellIfHidden: f } = ye(), p = c ?? Bx, m;
11627
+ let t = (0, J.c)(15), { className: n, cellId: r, variant: a, onClick: s, formatCellName: c, skipScroll: l } = e, u = Mr()[r] ?? "", d = Ur().indexOf(r), { showCellIfHidden: f } = ve(), p = c ?? Bx, m;
11628
11628
  t[0] === r ? m = t[1] : (m = r === "__scratch__" ? void 0 : `#${Hr.create(r)}`, t[0] = r, t[1] = m);
11629
11629
  let h;
11630
11630
  t[2] === n ? h = t[3] : (h = i("inline-block cursor-pointer text-left text-link hover:underline focus-visible:outline focus-visible:outline-ring", n), t[2] = n, t[3] = h);
@@ -13509,7 +13509,7 @@ var gT = "packages-install-input", _T = () => {
13509
13509
  }, vT = (e) => {
13510
13510
  e.openApplication("packages"), _T();
13511
13511
  }, yT = "marimo:ai:chatState:v5", bT = ei(null), xT = ei(null);
13512
- ei(!1), $r("marimo:ai:chatOptions", { webSearch: !1 }, de), $r("marimo:ai:includeOtherCells", !0, de);
13512
+ ei(!1), $r("marimo:ai:chatOptions", { webSearch: !1 }, le), $r("marimo:ai:includeOtherCells", !0, le);
13513
13513
  function ST(e) {
13514
13514
  let t = /* @__PURE__ */ new Map();
13515
13515
  for (let [n, r] of e.entries()) {
@@ -13522,7 +13522,7 @@ function ST(e) {
13522
13522
  }
13523
13523
  return t;
13524
13524
  }
13525
- var CT = oe({
13525
+ var CT = de({
13526
13526
  toSerializable: (e) => ({
13527
13527
  chats: [...ST(e.chats).entries()],
13528
13528
  activeChatId: e.activeChatId
@@ -13670,7 +13670,7 @@ var AT = {
13670
13670
  }, jT = $r("marimo:acp:sessions:v1", {
13671
13671
  sessions: [],
13672
13672
  activeTabId: null
13673
- }, de);
13673
+ }, le);
13674
13674
  ei((e) => {
13675
13675
  let t = e(jT);
13676
13676
  return t.activeTabId && t.sessions.find((e) => e.tabId === t.activeTabId) || null;
@@ -13710,7 +13710,7 @@ var MT = (e) => {
13710
13710
  saveModelChange: o,
13711
13711
  saveModeChange: c
13712
13712
  }, e[7] = c, e[8] = o, e[9] = l) : l = e[9], l;
13713
- }, PT = $r("marimo:chrome:ai-panel-tab", "chat", de);
13713
+ }, PT = $r("marimo:chrome:ai-panel-tab", "chat", le);
13714
13714
  function FT() {
13715
13715
  let e = (0, J.c)(3), [t, n] = ai(PT), r;
13716
13716
  return e[0] !== t || e[1] !== n ? (r = {
@@ -13722,12 +13722,12 @@ function FT() {
13722
13722
  //#region src/components/editor/chrome/wrapper/useOpenAiAssistant.ts
13723
13723
  var IT = "code_mode";
13724
13724
  function LT(e, t) {
13725
- return e || (se("external_agents") ? t : "chat");
13725
+ return e || (oe("external_agents") ? t : "chat");
13726
13726
  }
13727
13727
  function RT() {
13728
13728
  let e = (0, J.c)(6), { openApplication: t } = ae(), { setAiPanelTab: n } = FT(), { saveModeChange: r } = NT(), i = di(xT), a = Ii(), o;
13729
13729
  return e[0] !== t || e[1] !== r || e[2] !== n || e[3] !== i || e[4] !== a ? (o = async (e) => {
13730
- let o = LT(e.panel, a.get(PT)), s = a.get(Pi), c = se("external_agents") && a.get(jT).sessions.length > 0;
13730
+ let o = LT(e.panel, a.get(PT)), s = a.get(Pi), c = oe("external_agents") && a.get(jT).sessions.length > 0;
13731
13731
  (o === "agents" ? c : s) ? (e.panel && n(e.panel), o === "chat" && await r(IT).catch(zT), i({
13732
13732
  prompt: e.prompt,
13733
13733
  submit: e.submit ?? !1
@@ -13743,7 +13743,7 @@ function zT() {
13743
13743
  }
13744
13744
  //#endregion
13745
13745
  //#region src/components/editor/errors/fix-mode.ts
13746
- var BT = $r("marimo:ai-autofix-mode", "autofix", de);
13746
+ var BT = $r("marimo:ai-autofix-mode", "autofix", le);
13747
13747
  function VT() {
13748
13748
  let e = (0, J.c)(3), [t, n] = ai(BT), r;
13749
13749
  return e[0] !== t || e[1] !== n ? (r = {
@@ -13759,7 +13759,7 @@ function HT(e, t) {
13759
13759
  return n ? `My code gives the following error. Please fix it:\n\n${n}` : "Please fix this error.";
13760
13760
  }
13761
13761
  var UT = (e) => {
13762
- let t = (0, J.c)(25), { errors: n, cellId: r, className: a } = e, o = Ii(), { createCell: s } = ye(), c = ci(_i), l;
13762
+ let t = (0, J.c)(25), { errors: n, cellId: r, className: a } = e, o = Ii(), { createCell: s } = ve(), c = ci(_i), l;
13763
13763
  if (t[0] !== c || t[1] !== n) {
13764
13764
  let e;
13765
13765
  t[3] === c ? e = t[4] : (e = (e) => OT(e, { aiEnabled: c }), t[3] = c, t[4] = e), l = n.flatMap(e), t[0] = c, t[1] = n, t[2] = l;
@@ -13805,17 +13805,17 @@ var UT = (e) => {
13805
13805
  variant: "outline",
13806
13806
  className: "font-normal",
13807
13807
  onClick: () => g(!1),
13808
- children: [/* @__PURE__ */ (0, q.jsx)(L, { className: "h-3 w-3 mr-2" }), m.title]
13808
+ children: [/* @__PURE__ */ (0, q.jsx)(x, { className: "h-3 w-3 mr-2" }), m.title]
13809
13809
  })
13810
13810
  }), t[16] = m.description, t[17] = m.fixType, t[18] = m.title, t[19] = g, t[20] = v, t[21] = b) : b = t[21];
13811
- let x;
13812
- return t[22] !== y || t[23] !== b ? (x = /* @__PURE__ */ (0, q.jsx)("div", {
13811
+ let S;
13812
+ return t[22] !== y || t[23] !== b ? (S = /* @__PURE__ */ (0, q.jsx)("div", {
13813
13813
  className: y,
13814
13814
  children: b
13815
- }), t[22] = y, t[23] = b, t[24] = x) : x = t[24], x;
13815
+ }), t[22] = y, t[23] = b, t[24] = S) : S = t[24], S;
13816
13816
  }, WT = {
13817
13817
  autofix: {
13818
- Icon: L,
13818
+ Icon: x,
13819
13819
  title: "Inline AI Fix",
13820
13820
  description: "Apply AI fixes inline in the cell"
13821
13821
  },
@@ -13825,7 +13825,7 @@ var UT = (e) => {
13825
13825
  description: "Open the AI sidebar to fix"
13826
13826
  },
13827
13827
  prompt: {
13828
- Icon: v,
13828
+ Icon: se,
13829
13829
  title: "Suggest a prompt",
13830
13830
  description: "Edit the prompt before applying"
13831
13831
  }
@@ -14243,7 +14243,7 @@ var bE = (e) => {
14243
14243
  children: r
14244
14244
  }), t[3] = r, t[4] = a, t[5] = o) : o = t[5], o;
14245
14245
  }, xE = (e) => {
14246
- if (!(e instanceof C.Text)) return;
14246
+ if (!(e instanceof O.Text)) return;
14247
14247
  let t = gE(e.data);
14248
14248
  if (!/(pip\s+install|uv\s+add|uv\s+pip\s+install)/i.test(t)) return;
14249
14249
  let n = [], r = /(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi, i;
@@ -14273,7 +14273,7 @@ var bE = (e) => {
14273
14273
  }
14274
14274
  return /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: a });
14275
14275
  }, SE = (e) => {
14276
- if (!(e instanceof C.Text)) return;
14276
+ if (!(e instanceof O.Text)) return;
14277
14277
  let t = e.data;
14278
14278
  if (!/https?:\/\//.test(t)) return;
14279
14279
  let n = yE(t);
@@ -14284,7 +14284,7 @@ var bE = (e) => {
14284
14284
  if (e !== void 0) return e;
14285
14285
  }
14286
14286
  }, wE = (e, t) => {
14287
- let n = hE.ansi_to_html(e), r = ne(n, { replace: (e) => t(e) });
14287
+ let n = hE.ansi_to_html(e), r = w(n, { replace: (e) => t(e) });
14288
14288
  return /* @__PURE__ */ (0, q.jsx)("span", { children: r });
14289
14289
  }, TE = (e) => {
14290
14290
  let t = (0, J.c)(2), { text: n } = e, r;
@@ -14359,18 +14359,18 @@ var bE = (e) => {
14359
14359
  }
14360
14360
  let h, g, _, v, y, b, x;
14361
14361
  if (t[2] !== f || t[3] !== r || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== l || t[9] !== m || t[10] !== p || t[11] !== d) {
14362
- let e = n.filter(IE), a = n.filter(LE), S = n.filter(RE), C = n.filter(zE), w = n.filter(BE), T = n.filter(VE), D = n.filter(HE), O = n.filter(UE), k = n.filter(WE), A = n.filter(GE), M = n.filter(KE), N = n.filter(qE), P = n.filter(JE), F = n.filter(YE), I;
14362
+ let e = n.filter(IE), a = n.filter(LE), S = n.filter(RE), C = n.filter(zE), w = n.filter(BE), T = n.filter(VE), E = n.filter(HE), D = n.filter(UE), O = n.filter(WE), A = n.filter(GE), j = n.filter(KE), N = n.filter(qE), P = n.filter(JE), F = n.filter(YE), I;
14363
14363
  t[19] === n ? I = t[20] : (I = n.filter(XE), t[19] = n, t[20] = I), g = I;
14364
- let L;
14365
- t[21] === s ? L = t[22] : (L = () => {
14364
+ let ee;
14365
+ t[21] === s ? ee = t[22] : (ee = () => {
14366
14366
  s.openApplication("scratchpad");
14367
- }, t[21] = s, t[22] = L);
14368
- let R = L, z = () => {
14367
+ }, t[21] = s, t[22] = ee);
14368
+ let L = ee, R = () => {
14369
14369
  let t = [];
14370
- if (M.length > 0 || N.length > 0) {
14371
- let e = M.some(ZE), n = !e && M.some(QE);
14370
+ if (j.length > 0 || N.length > 0) {
14371
+ let e = j.some(ZE), n = !e && j.some(QE);
14372
14372
  t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [
14373
- M.map($E),
14373
+ j.map($E),
14374
14374
  N.map(eD),
14375
14375
  e && /* @__PURE__ */ (0, q.jsxs)(u, {
14376
14376
  size: "xs",
@@ -14387,7 +14387,7 @@ var bE = (e) => {
14387
14387
  children: [/* @__PURE__ */ (0, q.jsx)(bo, { className: "h-3.5 w-3.5 mr-1.5" }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Open terminal" })]
14388
14388
  }),
14389
14389
  r && /* @__PURE__ */ (0, q.jsx)(UT, {
14390
- errors: [...M, ...N],
14390
+ errors: [...j, ...N],
14391
14391
  cellId: r
14392
14392
  })
14393
14393
  ] }, "syntax-unknown"));
@@ -14528,8 +14528,8 @@ var bE = (e) => {
14528
14528
  size: "xs",
14529
14529
  variant: "link",
14530
14530
  className: "my-2 font-normal mx-0 px-0",
14531
- onClick: R,
14532
- children: [/* @__PURE__ */ (0, q.jsx)(j, { className: "h-3" }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Try the scratchpad" })]
14531
+ onClick: L,
14532
+ children: [/* @__PURE__ */ (0, q.jsx)(M, { className: "h-3" }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Try the scratchpad" })]
14533
14533
  }), /* @__PURE__ */ (0, q.jsx)("span", { children: "to experiment without restrictions on variable names." })]
14534
14534
  })
14535
14535
  })
@@ -14651,18 +14651,18 @@ var bE = (e) => {
14651
14651
  errors: T,
14652
14652
  cellId: r
14653
14653
  })
14654
- ] }, "exception")), D.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("ul", { children: [
14655
- D.map(uD),
14654
+ ] }, "exception")), E.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("ul", { children: [
14655
+ E.map(uD),
14656
14656
  r && /* @__PURE__ */ (0, q.jsx)(UT, {
14657
- errors: D,
14657
+ errors: E,
14658
14658
  cellId: r
14659
14659
  }),
14660
- /* @__PURE__ */ (0, q.jsx)(DE, { children: D.some(dD) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution." })
14661
- ] }, "strict-exception")), O.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [O.map(fD), r && /* @__PURE__ */ (0, q.jsx)(UT, {
14662
- errors: O,
14660
+ /* @__PURE__ */ (0, q.jsx)(DE, { children: E.some(dD) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution." })
14661
+ ] }, "strict-exception")), D.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [D.map(fD), r && /* @__PURE__ */ (0, q.jsx)(UT, {
14662
+ errors: D,
14663
14663
  cellId: r
14664
- })] }, "internal")), k.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [k.map(pD), r && /* @__PURE__ */ (0, q.jsx)(UT, {
14665
- errors: k,
14664
+ })] }, "internal")), O.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [O.map(pD), r && /* @__PURE__ */ (0, q.jsx)(UT, {
14665
+ errors: O,
14666
14666
  cellId: r
14667
14667
  })] }, "ancestor-prevented")), A.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [A.map(mD), r && /* @__PURE__ */ (0, q.jsx)(UT, {
14668
14668
  errors: A,
@@ -14672,27 +14672,27 @@ var bE = (e) => {
14672
14672
  cellId: r,
14673
14673
  className: "mt-2.5"
14674
14674
  })] }, "sql-errors")), t;
14675
- }, B;
14676
- t[23] === m ? B = t[24] : (B = m && /* @__PURE__ */ (0, q.jsxs)("div", {
14675
+ }, z;
14676
+ t[23] === m ? z = t[24] : (z = m && /* @__PURE__ */ (0, q.jsxs)("div", {
14677
14677
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
14678
14678
  children: [m, /* @__PURE__ */ (0, q.jsx)(U, {
14679
14679
  content: "marimo didn't run this cell because it detected an error.",
14680
14680
  delayDuration: 200,
14681
- children: /* @__PURE__ */ (0, q.jsx)(E, { className: "size-3 cursor-help" })
14681
+ children: /* @__PURE__ */ (0, q.jsx)(k, { className: "size-3 cursor-help" })
14682
14682
  })]
14683
- }), t[23] = m, t[24] = B);
14684
- let ee;
14685
- t[25] !== p || t[26] !== d ? (ee = d && /* @__PURE__ */ (0, q.jsx)(fa, {
14683
+ }), t[23] = m, t[24] = z);
14684
+ let B;
14685
+ t[25] !== p || t[26] !== d ? (B = d && /* @__PURE__ */ (0, q.jsx)(fa, {
14686
14686
  className: `font-code font-medium ${p}`,
14687
14687
  children: d
14688
- }), t[25] = p, t[26] = d, t[27] = ee) : ee = t[27];
14688
+ }), t[25] = p, t[26] = d, t[27] = B) : B = t[27];
14689
14689
  let te;
14690
- t[28] !== B || t[29] !== ee ? (te = /* @__PURE__ */ (0, q.jsxs)("div", {
14690
+ t[28] !== z || t[29] !== B ? (te = /* @__PURE__ */ (0, q.jsxs)("div", {
14691
14691
  className: "space-y-0.5",
14692
- children: [B, ee]
14693
- }), t[28] = B, t[29] = ee, t[30] = te) : te = t[30];
14692
+ children: [z, B]
14693
+ }), t[28] = z, t[29] = B, t[30] = te) : te = t[30];
14694
14694
  let ne = te;
14695
- h = pa, y = f, t[31] === o ? b = t[32] : (b = i("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[31] = o, t[32] = b), x = ne, _ = "flex flex-col gap-4", v = z(), t[2] = f, t[3] = r, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = l, t[9] = m, t[10] = p, t[11] = d, t[12] = h, t[13] = g, t[14] = _, t[15] = v, t[16] = y, t[17] = b, t[18] = x;
14695
+ h = pa, y = f, t[31] === o ? b = t[32] : (b = i("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[31] = o, t[32] = b), x = ne, _ = "flex flex-col gap-4", v = R(), t[2] = f, t[3] = r, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = l, t[9] = m, t[10] = p, t[11] = d, t[12] = h, t[13] = g, t[14] = _, t[15] = v, t[16] = y, t[17] = b, t[18] = x;
14696
14696
  } else h = t[12], g = t[13], _ = t[14], v = t[15], y = t[16], b = t[17], x = t[18];
14697
14697
  let S;
14698
14698
  t[33] !== _ || t[34] !== v ? (S = /* @__PURE__ */ (0, q.jsx)("div", {
@@ -14925,7 +14925,7 @@ var gD = (e) => {
14925
14925
  }), t[10] = d, t[11] = f, t[12] = p) : p = t[12], p;
14926
14926
  }, _D = (e) => {
14927
14927
  let t = (0, J.c)(6), { src: n, className: r } = e;
14928
- if (M()) {
14928
+ if (j()) {
14929
14929
  let e;
14930
14930
  return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ (0, q.jsx)("video", {
14931
14931
  className: r,
@@ -15040,7 +15040,7 @@ var wD = K.lazy(() => import("./vega-embed-container-DgpACsCB.js").then((e) => (
15040
15040
  let e = (0, J.c)(1), t;
15041
15041
  return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, q.jsxs)("div", {
15042
15042
  className: "flex items-center gap-2 justify-center",
15043
- children: [/* @__PURE__ */ (0, q.jsx)(N, {
15043
+ children: [/* @__PURE__ */ (0, q.jsx)(S, {
15044
15044
  className: "w-10 h-10 animate-spin",
15045
15045
  strokeWidth: 1
15046
15046
  }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Loading chart..." })]
@@ -15683,7 +15683,7 @@ function lk(e, t, n) {
15683
15683
  let r = e.options.meta?.rawData;
15684
15684
  if (r) {
15685
15685
  let e = r[t];
15686
- if (ce(e)) return e[n];
15686
+ if (re(e)) return e[n];
15687
15687
  }
15688
15688
  }
15689
15689
  //#endregion
@@ -18302,9 +18302,9 @@ function Cj(e) {
18302
18302
  let t, n;
18303
18303
  if (typeof e == "string") {
18304
18304
  if (e.startsWith("./@file") || e.startsWith("/@file")) t = { url: mr(e).href }, n = "source_0";
18305
- else if (_(e)) {
18305
+ else if (v(e)) {
18306
18306
  n = "data_0";
18307
- let r = le(e), i = window.atob(r);
18307
+ let r = ce(e), i = window.atob(r);
18308
18308
  t = i.startsWith(Sj) ? {
18309
18309
  values: b(r),
18310
18310
  format: { type: "arrow" }
@@ -19240,7 +19240,7 @@ var nM = (e) => {
19240
19240
  let u;
19241
19241
  t[5] === Symbol.for("react.memo_cache_sentinel") ? (u = () => a(!0), t[5] = u) : u = t[5];
19242
19242
  let d;
19243
- t[6] === n ? d = t[7] : (d = /* @__PURE__ */ (0, q.jsx)(te, {
19243
+ t[6] === n ? d = t[7] : (d = /* @__PURE__ */ (0, q.jsx)(B, {
19244
19244
  asChild: !0,
19245
19245
  children: /* @__PURE__ */ (0, q.jsx)("div", {
19246
19246
  className: "flex max-h-[80px] overflow-hidden cursor-pointer",
@@ -19257,7 +19257,7 @@ var nM = (e) => {
19257
19257
  let f;
19258
19258
  t[8] === Symbol.for("react.memo_cache_sentinel") ? (f = () => a(!0), t[8] = f) : f = t[8];
19259
19259
  let p;
19260
- t[9] === n ? p = t[10] : (p = /* @__PURE__ */ (0, q.jsx)(R, {
19260
+ t[9] === n ? p = t[10] : (p = /* @__PURE__ */ (0, q.jsx)(L, {
19261
19261
  className: "z-50 p-2 bg-popover rounded-md shadow-lg border w-fit",
19262
19262
  align: "start",
19263
19263
  side: "right",
@@ -19269,7 +19269,7 @@ var nM = (e) => {
19269
19269
  })
19270
19270
  }), t[9] = n, t[10] = p);
19271
19271
  let m;
19272
- return t[11] !== o || t[12] !== d || t[13] !== p ? (m = /* @__PURE__ */ (0, q.jsxs)(B, {
19272
+ return t[11] !== o || t[12] !== d || t[13] !== p ? (m = /* @__PURE__ */ (0, q.jsxs)(z, {
19273
19273
  open: o,
19274
19274
  onOpenChange: s,
19275
19275
  children: [d, p]
@@ -19334,7 +19334,7 @@ var sM = (e) => {
19334
19334
  className: "text-link hover:underline",
19335
19335
  children: a
19336
19336
  }), t[1] = a, t[2] = n, t[3] = s) : s = t[3], s;
19337
- }, cM = ge, lM = "__m_column__", uM = "__select__", dM = 50;
19337
+ }, cM = ee, lM = "__m_column__", uM = "__select__", dM = 50;
19338
19338
  function fM(e) {
19339
19339
  return typeof e == "string" ? ["string", "string"] : typeof e == "number" ? ["number", "number"] : e instanceof Date ? ["datetime", "datetime"] : typeof e == "boolean" ? ["boolean", "boolean"] : ["unknown", "object"];
19340
19340
  }
@@ -19468,7 +19468,7 @@ function mM({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: a, tex
19468
19468
  }
19469
19469
  var hM = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: r, contentClassName: a, scrollable: s = !1, wrapped: c, children: l, buttonText: d }) => {
19470
19470
  let f = (0, K.useRef)(null), p = r !== void 0 && (r.leading.length > 0 || r.trailing.length > 0) ? n.slice(r.leading.length, n.length - r.trailing.length) : n;
19471
- return /* @__PURE__ */ (0, q.jsxs)(B, { children: [/* @__PURE__ */ (0, q.jsx)(te, {
19471
+ return /* @__PURE__ */ (0, q.jsxs)(z, { children: [/* @__PURE__ */ (0, q.jsx)(B, {
19472
19472
  ref: f,
19473
19473
  className: i(e, "max-w-fit outline-hidden"),
19474
19474
  onClick: t,
@@ -19484,7 +19484,7 @@ var hM = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: r, contentCl
19484
19484
  r ? /* @__PURE__ */ (0, q.jsx)(Yj, { value: r.trailing }) : null
19485
19485
  ]
19486
19486
  })
19487
- }), /* @__PURE__ */ (0, q.jsxs)(R, {
19487
+ }), /* @__PURE__ */ (0, q.jsxs)(L, {
19488
19488
  className: i(a, s && "flex flex-col overflow-hidden"),
19489
19489
  align: "start",
19490
19490
  alignOffset: 10,
@@ -20867,7 +20867,7 @@ function wP({ autoSaveId: e = null, children: t, className: n = "", direction: r
20867
20867
  }, []), I = (0, K.useCallback)((e) => {
20868
20868
  let { panelDataArray: t } = C.current, n = EP(t, e);
20869
20869
  n >= 0 && (t.splice(n, 1), delete y.current[e.id], C.current.panelDataArrayChanged = !0, v());
20870
- }, [v]), L = (0, K.useMemo)(() => ({
20870
+ }, [v]), ee = (0, K.useMemo)(() => ({
20871
20871
  collapsePanel: w,
20872
20872
  direction: r,
20873
20873
  dragState: m,
@@ -20902,21 +20902,21 @@ function wP({ autoSaveId: e = null, children: t, className: n = "", direction: r
20902
20902
  P,
20903
20903
  F,
20904
20904
  I
20905
- ]), R = {
20905
+ ]), L = {
20906
20906
  display: "flex",
20907
20907
  flexDirection: r === "horizontal" ? "row" : "column",
20908
20908
  height: "100%",
20909
20909
  overflow: "hidden",
20910
20910
  width: "100%"
20911
20911
  };
20912
- return (0, K.createElement)(KM.Provider, { value: L }, (0, K.createElement)(u, {
20912
+ return (0, K.createElement)(KM.Provider, { value: ee }, (0, K.createElement)(u, {
20913
20913
  ...d,
20914
20914
  children: t,
20915
20915
  className: n,
20916
20916
  id: a,
20917
20917
  ref: p,
20918
20918
  style: {
20919
- ...R,
20919
+ ...L,
20920
20920
  ...l
20921
20921
  },
20922
20922
  [qM.group]: "",
@@ -22059,10 +22059,10 @@ var qF = {
22059
22059
  }
22060
22060
  }, JF = 30, YF = ({ column: e, calculateTopKRows: t, chosenValues: n, onChange: r, creatable: i = !1 }) => {
22061
22061
  let [a, o] = (0, K.useState)(n.length === 0), s = (0, K.useMemo)(() => new Set(n), [n]), c = (0, K.useMemo)(() => [...s].map((e) => ak({ value: e })), [s]);
22062
- return /* @__PURE__ */ (0, q.jsxs)(B, {
22062
+ return /* @__PURE__ */ (0, q.jsxs)(z, {
22063
22063
  open: a,
22064
22064
  onOpenChange: o,
22065
- children: [/* @__PURE__ */ (0, q.jsx)(te, {
22065
+ children: [/* @__PURE__ */ (0, q.jsx)(B, {
22066
22066
  asChild: !0,
22067
22067
  children: /* @__PURE__ */ (0, q.jsxs)(u, {
22068
22068
  type: "button",
@@ -22077,7 +22077,7 @@ var qF = {
22077
22077
  max: 3
22078
22078
  }), /* @__PURE__ */ (0, q.jsx)(Ie, { className: "h-4 w-4 opacity-50 shrink-0" })]
22079
22079
  })
22080
- }), /* @__PURE__ */ (0, q.jsx)(R, {
22080
+ }), /* @__PURE__ */ (0, q.jsx)(L, {
22081
22081
  className: "w-80 p-0",
22082
22082
  children: /* @__PURE__ */ (0, q.jsx)(XF, {
22083
22083
  column: e,
@@ -22290,31 +22290,31 @@ function rI(e) {
22290
22290
  });
22291
22291
  }
22292
22292
  var iI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex: i }) => {
22293
- let a = (0, K.useId)(), o = (0, K.useId)(), s = (0, K.useId)(), c = e.value.type, l = e.value.operator, d = oI(e.value), [f, p] = (0, K.useState)(e.columnId), [m, h] = (0, K.useState)(c), [g, _] = (0, K.useState)(l), [v, y] = (0, K.useState)(d), [b, S] = (0, K.useState)($F), C = rI(t), w = (t) => {
22293
+ let a = (0, K.useId)(), o = (0, K.useId)(), s = (0, K.useId)(), c = e.value.type, l = e.value.operator, d = oI(e.value), [f, p] = (0, K.useState)(e.columnId), [m, h] = (0, K.useState)(c), [g, _] = (0, K.useState)(l), [v, y] = (0, K.useState)(d), [b, x] = (0, K.useState)($F), S = rI(t), C = (t) => {
22294
22294
  t.id === e.columnId && t.operator === l && y(d);
22295
- }, T = (e) => {
22295
+ }, w = (e) => {
22296
22296
  if (!e) return;
22297
22297
  let n = t.getColumn(e);
22298
22298
  if (!n) return;
22299
22299
  let r = MO(n), i = g;
22300
- r !== m && (i = xO[r], h(r), _(i), y(sI(r, i)), S($F)), p(e), w({
22300
+ r !== m && (i = xO[r], h(r), _(i), y(sI(r, i)), x($F)), p(e), C({
22301
22301
  id: e,
22302
22302
  operator: i
22303
22303
  });
22304
- }, E = (e) => {
22304
+ }, T = (e) => {
22305
22305
  _(e);
22306
22306
  let t = sI(m, e);
22307
- t.kind !== v.kind && y(t), S($F), w({
22307
+ t.kind !== v.kind && y(t), x($F), C({
22308
22308
  id: f,
22309
22309
  operator: e
22310
22310
  });
22311
- }, D = lI({
22311
+ }, E = lI({
22312
22312
  type: m,
22313
22313
  operator: g,
22314
22314
  draft: tI(v, b)
22315
- }), O = D === void 0, k = O ? cI(m, g) : "Apply filter", A = () => {
22316
- if (!D) return;
22317
- let e = D;
22315
+ }), D = E === void 0, O = D ? cI(m, g) : "Apply filter", k = () => {
22316
+ if (!E) return;
22317
+ let e = E;
22318
22318
  t.setColumnFilters((t) => {
22319
22319
  if (i === void 0) return [{
22320
22320
  id: f,
@@ -22326,16 +22326,16 @@ var iI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
22326
22326
  value: e
22327
22327
  }, n;
22328
22328
  }), r();
22329
- }, j = () => {
22329
+ }, A = () => {
22330
22330
  i !== void 0 && t.setColumnFilters((e) => e.filter((e, t) => t !== i)), r();
22331
- }, M = !SO.has(g), N = bO[m], P = (0, K.useRef)(null), F = (0, K.useRef)(null);
22331
+ }, j = !SO.has(g), M = bO[m], P = (0, K.useRef)(null), F = (0, K.useRef)(null);
22332
22332
  return (0, K.useEffect)(() => {
22333
22333
  let e = P.current?.querySelector("input, [role=\"spinbutton\"], [role=\"combobox\"], button");
22334
22334
  e ? e.focus() : F.current?.focus();
22335
22335
  }, [m, g]), /* @__PURE__ */ (0, q.jsxs)("form", {
22336
22336
  className: "flex flex-row gap-4 items-end p-3",
22337
22337
  onSubmit: (e) => {
22338
- e.preventDefault(), A();
22338
+ e.preventDefault(), k();
22339
22339
  },
22340
22340
  onKeyDownCapture: (e) => {
22341
22341
  e.key === "Tab" && e.stopPropagation();
@@ -22350,11 +22350,11 @@ var iI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
22350
22350
  }), /* @__PURE__ */ (0, q.jsx)(dy, {
22351
22351
  id: a,
22352
22352
  value: f,
22353
- onValueChange: T,
22353
+ onValueChange: w,
22354
22354
  multiple: !1,
22355
22355
  placeholder: "Select column…",
22356
22356
  displayValue: (e) => e,
22357
- children: C.map((e) => /* @__PURE__ */ (0, q.jsx)(fy, {
22357
+ children: S.map((e) => /* @__PURE__ */ (0, q.jsx)(fy, {
22358
22358
  value: e.id,
22359
22359
  children: e.id
22360
22360
  }, e.id))
@@ -22368,19 +22368,19 @@ var iI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
22368
22368
  children: "Operator"
22369
22369
  }), /* @__PURE__ */ (0, q.jsxs)(Ze, {
22370
22370
  value: g,
22371
- onValueChange: (e) => E(e),
22371
+ onValueChange: (e) => T(e),
22372
22372
  children: [/* @__PURE__ */ (0, q.jsx)(Xe, {
22373
22373
  ref: F,
22374
22374
  id: o,
22375
22375
  className: "h-6 mb-1 bg-transparent",
22376
22376
  children: /* @__PURE__ */ (0, q.jsx)(Ve, {})
22377
- }), /* @__PURE__ */ (0, q.jsx)(Ye, { children: N.map((e) => /* @__PURE__ */ (0, q.jsx)(Ke, {
22377
+ }), /* @__PURE__ */ (0, q.jsx)(Ye, { children: M.map((e) => /* @__PURE__ */ (0, q.jsx)(Ke, {
22378
22378
  value: e,
22379
22379
  children: PO[e]
22380
22380
  }, e)) })]
22381
22381
  }, m)]
22382
22382
  }),
22383
- M && /* @__PURE__ */ (0, q.jsxs)("div", {
22383
+ j && /* @__PURE__ */ (0, q.jsxs)("div", {
22384
22384
  ref: P,
22385
22385
  className: "flex flex-col gap-1",
22386
22386
  children: [/* @__PURE__ */ (0, q.jsx)("label", {
@@ -22393,7 +22393,7 @@ var iI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
22393
22393
  operator: g,
22394
22394
  value: v,
22395
22395
  onChange: y,
22396
- onNumberTextChange: (e, t) => S((n) => ({
22396
+ onNumberTextChange: (e, t) => x((n) => ({
22397
22397
  ...n,
22398
22398
  [e]: t
22399
22399
  })),
@@ -22405,14 +22405,14 @@ var iI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
22405
22405
  className: "flex gap-1 mb-1",
22406
22406
  children: [
22407
22407
  /* @__PURE__ */ (0, q.jsx)(U, {
22408
- content: k,
22408
+ content: O,
22409
22409
  children: /* @__PURE__ */ (0, q.jsx)("span", {
22410
22410
  className: "inline-flex",
22411
22411
  children: /* @__PURE__ */ (0, q.jsx)(u, {
22412
22412
  type: "submit",
22413
22413
  size: "icon",
22414
22414
  variant: "ghost",
22415
- disabled: O,
22415
+ disabled: D,
22416
22416
  className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
22417
22417
  "aria-label": "Apply filter",
22418
22418
  children: /* @__PURE__ */ (0, q.jsx)(Ne, {
@@ -22444,9 +22444,9 @@ var iI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
22444
22444
  size: "icon",
22445
22445
  variant: "ghost",
22446
22446
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
22447
- onClick: j,
22447
+ onClick: A,
22448
22448
  "aria-label": "Remove filter",
22449
- children: /* @__PURE__ */ (0, q.jsx)(x, {
22449
+ children: /* @__PURE__ */ (0, q.jsx)(N, {
22450
22450
  className: "h-3.5 w-3.5",
22451
22451
  "aria-hidden": !0
22452
22452
  })
@@ -22696,7 +22696,7 @@ var uI = (e) => {
22696
22696
  t[6] = o.x, t[7] = o.y, t[8] = f;
22697
22697
  } else f = t[8];
22698
22698
  let p;
22699
- t[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, q.jsx)(te, {}), t[9] = p) : p = t[9];
22699
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, q.jsx)(B, {}), t[9] = p) : p = t[9];
22700
22700
  let m;
22701
22701
  t[10] !== o.x || t[11] !== o.y ? (m = {
22702
22702
  position: "fixed",
@@ -22740,25 +22740,25 @@ var uI = (e) => {
22740
22740
  children: _
22741
22741
  }), t[15] = f, t[16] = g, t[17] = v) : v = t[17];
22742
22742
  let y;
22743
- t[18] !== n || t[19] !== r || t[20] !== m || t[21] !== v ? (y = /* @__PURE__ */ (0, q.jsxs)(R, {
22743
+ t[18] !== n || t[19] !== r || t[20] !== m || t[21] !== v ? (y = /* @__PURE__ */ (0, q.jsxs)(L, {
22744
22744
  className: r,
22745
22745
  style: m,
22746
22746
  children: [v, n]
22747
22747
  }), t[18] = n, t[19] = r, t[20] = m, t[21] = v, t[22] = y) : y = t[22];
22748
22748
  let b;
22749
- return t[23] !== i || t[24] !== y ? (b = /* @__PURE__ */ (0, q.jsxs)(B, {
22749
+ return t[23] !== i || t[24] !== y ? (b = /* @__PURE__ */ (0, q.jsxs)(z, {
22750
22750
  ...i,
22751
22751
  children: [p, y]
22752
22752
  }), t[23] = i, t[24] = y, t[25] = b) : b = t[25], b;
22753
22753
  }, dI = ({ table: e, calculateTopKRows: t, snapshot: n, onSnapshotChange: r }) => {
22754
22754
  let i = rI(e);
22755
- return i.length === 0 ? null : /* @__PURE__ */ (0, q.jsxs)(B, {
22755
+ return i.length === 0 ? null : /* @__PURE__ */ (0, q.jsxs)(z, {
22756
22756
  open: n !== null,
22757
22757
  onOpenChange: (e) => {
22758
22758
  e ? n === null && r(nI(i[0])) : r(null);
22759
22759
  },
22760
22760
  modal: !1,
22761
- children: [/* @__PURE__ */ (0, q.jsx)(te, {
22761
+ children: [/* @__PURE__ */ (0, q.jsx)(B, {
22762
22762
  asChild: !0,
22763
22763
  children: /* @__PURE__ */ (0, q.jsx)(u, {
22764
22764
  type: "button",
@@ -22771,7 +22771,7 @@ var uI = (e) => {
22771
22771
  "aria-hidden": !0
22772
22772
  })
22773
22773
  })
22774
- }), n !== null && /* @__PURE__ */ (0, q.jsx)(R, {
22774
+ }), n !== null && /* @__PURE__ */ (0, q.jsx)(L, {
22775
22775
  className: "w-auto p-0",
22776
22776
  align: "start",
22777
22777
  alignOffset: -10,
@@ -22838,7 +22838,7 @@ var uI = (e) => {
22838
22838
  open: c,
22839
22839
  onOpenChange: l,
22840
22840
  className: "w-fit max-w-[min(90vw,40rem)] p-0",
22841
- children: [/* @__PURE__ */ (0, q.jsx)(w, {
22841
+ children: [/* @__PURE__ */ (0, q.jsx)(T, {
22842
22842
  className: "absolute top-2 right-2",
22843
22843
  "aria-label": "Close",
22844
22844
  children: /* @__PURE__ */ (0, q.jsx)(Jr, {
@@ -22912,7 +22912,7 @@ var uI = (e) => {
22912
22912
  "aria-hidden": !0
22913
22913
  })
22914
22914
  });
22915
- return /* @__PURE__ */ (0, q.jsxs)(B, {
22915
+ return /* @__PURE__ */ (0, q.jsxs)(z, {
22916
22916
  open: c,
22917
22917
  onOpenChange: l,
22918
22918
  modal: !1,
@@ -22924,7 +22924,7 @@ var uI = (e) => {
22924
22924
  delayDuration: 600,
22925
22925
  children: /* @__PURE__ */ (0, q.jsxs)("span", {
22926
22926
  className: "inline-flex items-center",
22927
- children: [/* @__PURE__ */ (0, q.jsx)(te, {
22927
+ children: [/* @__PURE__ */ (0, q.jsx)(B, {
22928
22928
  asChild: !0,
22929
22929
  children: /* @__PURE__ */ (0, q.jsx)("button", {
22930
22930
  type: "button",
@@ -22935,7 +22935,7 @@ var uI = (e) => {
22935
22935
  }), v]
22936
22936
  })
22937
22937
  })
22938
- }), /* @__PURE__ */ (0, q.jsx)(R, {
22938
+ }), /* @__PURE__ */ (0, q.jsx)(L, {
22939
22939
  className: "w-auto p-0",
22940
22940
  align: "start",
22941
22941
  alignOffset: -10,
@@ -24632,7 +24632,7 @@ var wR = Ts, TR = Ds, ER = ki(Os), DR = Mi(As), OR = Mi(Rs), kR = K.forwardRef((
24632
24632
  inset: a
24633
24633
  }), n[5] = i, n[6] = a, n[7] = s) : s = n[7];
24634
24634
  let c;
24635
- n[8] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(_e, { className: "ml-auto h-4 w-4" }), n[8] = c) : c = n[8];
24635
+ n[8] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(ge, { className: "ml-auto h-4 w-4" }), n[8] = c) : c = n[8];
24636
24636
  let l;
24637
24637
  return n[9] !== r || n[10] !== o || n[11] !== t || n[12] !== s ? (l = /* @__PURE__ */ (0, q.jsxs)(Ls, {
24638
24638
  ref: t,
@@ -24701,7 +24701,7 @@ var PR = K.forwardRef((e, t) => {
24701
24701
  let l;
24702
24702
  n[8] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, q.jsx)("span", {
24703
24703
  className: c,
24704
- children: /* @__PURE__ */ (0, q.jsx)(Fs, { children: /* @__PURE__ */ (0, q.jsx)(ve, { className: "h-4 w-4" }) })
24704
+ children: /* @__PURE__ */ (0, q.jsx)(Fs, { children: /* @__PURE__ */ (0, q.jsx)(_e, { className: "h-4 w-4" }) })
24705
24705
  }), n[8] = l) : l = n[8];
24706
24706
  let u;
24707
24707
  return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, q.jsxs)(Ns, {
@@ -24823,7 +24823,7 @@ var VR = (e) => {
24823
24823
  }
24824
24824
  let t = n.current;
24825
24825
  if (c(t), !t) return;
24826
- let i = a.current?.querySelector(`[${S}="${t.id}"]`);
24826
+ let i = a.current?.querySelector(`[${C}="${t.id}"]`);
24827
24827
  i ? (i.classList.add("bg-(--green-4)"), l.current = i) : r.error("Context menu cell not found in table");
24828
24828
  }, t[0] = n, t[1] = a, t[2] = u) : u = t[2];
24829
24829
  let d = ea(u), f;
@@ -25252,7 +25252,7 @@ var nz = ({ table: e, columns: t, rowViewerPanelOpen: n, getRowIndex: r, viewedR
25252
25252
  tabIndex: 0,
25253
25253
  role: e.options.enableCellSelection ? "gridcell" : void 0,
25254
25254
  "aria-selected": e.options.enableCellSelection ? t.getIsSelected?.() : void 0,
25255
- ...O(t.id),
25255
+ ...D(t.id),
25256
25256
  key: t.id,
25257
25257
  className: i("whitespace-pre truncate outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring border-r border-r-border/75", !a && "max-w-[300px]", t.column.getColumnWrapping && t.column.getColumnWrapping?.() === "wrap" && "whitespace-pre-wrap min-w-[200px]", "px-1.5 py-[0.18rem]", n),
25258
25258
  style: o,
@@ -25574,12 +25574,12 @@ var gz = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
25574
25574
  let [r, a] = K.useState(!1), [o, s] = K.useState(""), c = K.useMemo(() => hz(o, t), [o, t]), l = (e) => {
25575
25575
  n(e - 1), s(""), a(!1);
25576
25576
  }, u = Math.min(c.count * pz, 240);
25577
- return /* @__PURE__ */ (0, q.jsxs)(B, {
25577
+ return /* @__PURE__ */ (0, q.jsxs)(z, {
25578
25578
  open: t > 1 && r,
25579
25579
  onOpenChange: (e) => {
25580
25580
  a(e), e || s("");
25581
25581
  },
25582
- children: [/* @__PURE__ */ (0, q.jsx)(te, {
25582
+ children: [/* @__PURE__ */ (0, q.jsx)(B, {
25583
25583
  asChild: !0,
25584
25584
  disabled: t <= 1,
25585
25585
  children: /* @__PURE__ */ (0, q.jsxs)("button", {
@@ -25590,7 +25590,7 @@ var gz = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
25590
25590
  disabled: t <= 1,
25591
25591
  children: [e, /* @__PURE__ */ (0, q.jsx)(Ie, { className: "h-3 w-3 opacity-50 mb-px" })]
25592
25592
  })
25593
- }), /* @__PURE__ */ (0, q.jsx)(R, {
25593
+ }), /* @__PURE__ */ (0, q.jsx)(L, {
25594
25594
  className: "w-36 p-0",
25595
25595
  align: "center",
25596
25596
  sideOffset: 6,
@@ -25681,12 +25681,12 @@ var gz = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
25681
25681
  });
25682
25682
  };
25683
25683
  function vz(e, t) {
25684
- return `${ct(e, t)} ${new D("row").pluralize(e)}`;
25684
+ return `${ct(e, t)} ${new ne("row").pluralize(e)}`;
25685
25685
  }
25686
25686
  var yz = ({ numRows: e, totalColumns: t, hiddenColumns: n, locale: r }) => {
25687
25687
  let i = e === "too_many" ? "Unknown" : vz(e, r), a = n ?? 0, o = t - a;
25688
25688
  return {
25689
- rowsAndColumns: [i, a > 0 ? `${ct(o, r)} visible` : `${ct(t, r)} ${new D("column").pluralize(t)}`].join(", "),
25689
+ rowsAndColumns: [i, a > 0 ? `${ct(o, r)} visible` : `${ct(t, r)} ${new ne("column").pluralize(t)}`].join(", "),
25690
25690
  hiddenSuffix: a > 0 ? `(${ct(a, r)} hidden)` : null
25691
25691
  };
25692
25692
  }, bz = 3, xz = (e) => {
@@ -25889,7 +25889,7 @@ var kz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
25889
25889
  let t = (0, J.c)(7), { message: n, className: r, style: a } = e, o;
25890
25890
  t[0] === r ? o = t[1] : (o = i("text-sm bg-blue-50 dark:bg-(--accent) text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8", r), t[0] = r, t[1] = o);
25891
25891
  let s;
25892
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(N, { className: "h-4 w-4 animate-spin" }), t[2] = s) : s = t[2];
25892
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(S, { className: "h-4 w-4 animate-spin" }), t[2] = s) : s = t[2];
25893
25893
  let c;
25894
25894
  return t[3] !== n || t[4] !== a || t[5] !== o ? (c = /* @__PURE__ */ (0, q.jsxs)("div", {
25895
25895
  className: o,
@@ -25907,8 +25907,8 @@ var kz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
25907
25907
  }, Pz = (e) => {
25908
25908
  let t = (0, J.c)(12), { columnName: n, dataType: r, className: a } = e, o, s;
25909
25909
  if (t[0] !== r) {
25910
- let e = P(r);
25911
- o = V[e], s = re(e), t[0] = r, t[1] = o, t[2] = s;
25910
+ let e = _(r);
25911
+ o = V[e], s = P(e), t[0] = r, t[1] = o, t[2] = s;
25912
25912
  } else o = t[1], s = t[2];
25913
25913
  let c = s, l;
25914
25914
  t[3] === a ? l = t[4] : (l = i("flex flex-row items-center gap-1.5", a), t[3] = a, t[4] = l);
@@ -25973,10 +25973,10 @@ var Rz = ({ table: e }) => {
25973
25973
  visibleHideableColumnIds: s,
25974
25974
  hideableColumnIdSet: new Set(a)
25975
25975
  }, h = p.length > 0 || f.length > 0;
25976
- return /* @__PURE__ */ (0, q.jsxs)(B, {
25976
+ return /* @__PURE__ */ (0, q.jsxs)(z, {
25977
25977
  open: d.open,
25978
25978
  onOpenChange: d.setOpen,
25979
- children: [/* @__PURE__ */ (0, q.jsx)(te, {
25979
+ children: [/* @__PURE__ */ (0, q.jsx)(B, {
25980
25980
  asChild: !0,
25981
25981
  children: /* @__PURE__ */ (0, q.jsxs)(u, {
25982
25982
  variant: "text",
@@ -25986,7 +25986,7 @@ var Rz = ({ table: e }) => {
25986
25986
  className: i("print:hidden text-xs gap-1", d.open ? "text-primary" : "text-muted-foreground"),
25987
25987
  children: [/* @__PURE__ */ (0, q.jsx)(Ja, { className: "w-3.5 h-3.5" }), "Columns"]
25988
25988
  })
25989
- }), /* @__PURE__ */ (0, q.jsx)(R, {
25989
+ }), /* @__PURE__ */ (0, q.jsx)(L, {
25990
25990
  className: "w-64 p-0",
25991
25991
  align: "end",
25992
25992
  children: /* @__PURE__ */ (0, q.jsxs)(ry, {
@@ -26003,7 +26003,7 @@ var Rz = ({ table: e }) => {
26003
26003
  disabled: r.length === 0,
26004
26004
  onSelect: () => l([]),
26005
26005
  className: "cursor-pointer",
26006
- children: [/* @__PURE__ */ (0, q.jsx)(F, { className: "w-3 h-3 mr-1.5" }), "Show all"]
26006
+ children: [/* @__PURE__ */ (0, q.jsx)(ye, { className: "w-3 h-3 mr-1.5" }), "Show all"]
26007
26007
  }),
26008
26008
  /* @__PURE__ */ (0, q.jsxs)(ly, {
26009
26009
  value: "__hide_all__",
@@ -26033,7 +26033,7 @@ var Rz = ({ table: e }) => {
26033
26033
  onSelect: e.run,
26034
26034
  className: "cursor-pointer",
26035
26035
  children: [
26036
- e.kind === "select-matching" ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3 mr-1.5" }) : /* @__PURE__ */ (0, q.jsx)(F, { className: "w-3 h-3 mr-1.5" }),
26036
+ e.kind === "select-matching" ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3 mr-1.5" }) : /* @__PURE__ */ (0, q.jsx)(ye, { className: "w-3 h-3 mr-1.5" }),
26037
26037
  e.kind === "select-matching" ? "Hide" : "Show",
26038
26038
  " ",
26039
26039
  e.items.length,
@@ -26066,7 +26066,7 @@ var Rz = ({ table: e }) => {
26066
26066
  iconClassName: "w-3 h-3"
26067
26067
  }), /* @__PURE__ */ (0, q.jsx)("span", {
26068
26068
  className: i(r ? "text-primary" : "text-muted-foreground"),
26069
- children: r ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3" }) : /* @__PURE__ */ (0, q.jsx)(F, { className: "w-3 h-3" })
26069
+ children: r ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3" }) : /* @__PURE__ */ (0, q.jsx)(ye, { className: "w-3 h-3" })
26070
26070
  })]
26071
26071
  })]
26072
26072
  })] }, t.value);
@@ -26397,7 +26397,7 @@ var oB = [
26397
26397
  label: "JSON",
26398
26398
  format: "json",
26399
26399
  description: "Raw JSON data",
26400
- icon: z,
26400
+ icon: te,
26401
26401
  canDownload: !0,
26402
26402
  canCopy: !0
26403
26403
  },
@@ -26421,7 +26421,7 @@ var oB = [
26421
26421
  label: "Markdown",
26422
26422
  format: "markdown",
26423
26423
  description: "Preserves hyperlinks and formatting",
26424
- icon: k,
26424
+ icon: F,
26425
26425
  canDownload: !1,
26426
26426
  canCopy: !0
26427
26427
  }
@@ -26531,25 +26531,25 @@ var CB = (e) => {
26531
26531
  ], t[4] = d, t[5] = a, t[6] = n, t[7] = b, t[8] = x) : (b = t[7], x = t[8]);
26532
26532
  let S = Da(b, x), C = S.status === "success" && S.data?.context === d ? S.data.metadata : null, w;
26533
26533
  t[9] !== S.error || t[10] !== S.status ? (w = S.status === "error" ? vB(S.error) : null, t[9] = S.error, t[10] = S.status, t[11] = w) : w = t[11];
26534
- let E = w, [D, O] = K.useState(null), [k, A] = K.useState(null);
26535
- C !== k && (A(C), C && O((e) => e !== null && C.geometry_columns.some((t) => t.name === e) ? e : C.default_geometry_column));
26536
- let j = !!C?.geometry_columns.length, [M, N] = K.useState(null), P = K.useRef(null), F = K.useRef(null), I = K.useRef(0), L, R;
26537
- t[12] === Symbol.for("react.memo_cache_sentinel") ? (L = () => (_.current = !0, () => {
26538
- _.current = !1, I.current += 1;
26539
- }), R = [], t[12] = L, t[13] = R) : (L = t[12], R = t[13]), K.useLayoutEffect(L, R);
26534
+ let T = w, [E, D] = K.useState(null), [O, k] = K.useState(null);
26535
+ C !== O && (k(C), C && D((e) => e !== null && C.geometry_columns.some((t) => t.name === e) ? e : C.default_geometry_column));
26536
+ let A = !!C?.geometry_columns.length, [j, M] = K.useState(null), N = K.useRef(null), P = K.useRef(null), F = K.useRef(0), I, ee;
26537
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (I = () => (_.current = !0, () => {
26538
+ _.current = !1, F.current += 1;
26539
+ }), ee = [], t[12] = I, t[13] = ee) : (I = t[12], ee = t[13]), K.useLayoutEffect(I, ee);
26540
+ let L;
26541
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (L = () => {
26542
+ F.current += 1;
26543
+ }, t[14] = L) : L = t[14];
26540
26544
  let z;
26541
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (z = () => {
26542
- I.current += 1;
26543
- }, t[14] = z) : z = t[14];
26544
- let B;
26545
- t[15] === r ? B = t[16] : (B = [r], t[15] = r, t[16] = B), K.useEffect(z, B);
26546
- let ee = ci(zz), te = !!(ee && e.sizeBytes != null && e.sizeBytes > ee.limitBytes), ne = !!(ee && (e.sizeBytesIsLoading || te)), V = ne ? e.sizeBytesIsLoading ? "Checking download size…" : ee?.unavailableMessage : "Export", re = a ? "text-primary" : "text-muted-foreground", ie;
26545
+ t[15] === r ? z = t[16] : (z = [r], t[15] = r, t[16] = z), K.useEffect(L, z);
26546
+ let B = ci(zz), te = !!(B && e.sizeBytes != null && e.sizeBytes > B.limitBytes), ne = !!(B && (e.sizeBytesIsLoading || te)), V = ne ? e.sizeBytesIsLoading ? "Checking download size…" : B?.unavailableMessage : "Export", re = a ? "text-primary" : "text-muted-foreground", ie;
26547
26547
  t[17] === re ? ie = t[18] : (ie = i("print:hidden text-xs gap-1", re), t[17] = re, t[18] = ie);
26548
26548
  let ae;
26549
26549
  t[19] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ (0, q.jsx)(Xa, { className: "w-3.5 h-3.5" }), t[19] = ae) : ae = t[19];
26550
26550
  let oe;
26551
26551
  t[20] !== ne || t[21] !== ie ? (oe = /* @__PURE__ */ (0, q.jsxs)(u, {
26552
- ref: P,
26552
+ ref: N,
26553
26553
  "data-testid": "export-button",
26554
26554
  size: "xs",
26555
26555
  variant: "text",
@@ -26559,25 +26559,25 @@ var CB = (e) => {
26559
26559
  }), t[20] = ne, t[21] = ie, t[22] = oe) : oe = t[22];
26560
26560
  let se = oe, ce;
26561
26561
  t[23] === r ? ce = t[24] : (ce = (e) => {
26562
- o(e), e || (I.current += 1, N(null), c(dB), O(null), f({ source: r }));
26562
+ o(e), e || (F.current += 1, M(null), c(dB), D(null), f({ source: r }));
26563
26563
  }, t[23] = r, t[24] = ce);
26564
26564
  let le = ce, ue;
26565
26565
  t[25] === g ? ue = t[26] : (ue = () => {
26566
- let e = I.current + 1;
26567
- return I.current = e, g(null), e;
26566
+ let e = F.current + 1;
26567
+ return F.current = e, g(null), e;
26568
26568
  }, t[25] = g, t[26] = ue);
26569
26569
  let de = ue, fe;
26570
26570
  t[27] === g ? fe = t[28] : (fe = (e, t) => {
26571
- e === I.current && g(t);
26571
+ e === F.current && g(t);
26572
26572
  }, t[27] = g, t[28] = fe);
26573
26573
  let pe = fe, me;
26574
- t[29] !== D || t[30] !== e || t[31] !== pe || t[32] !== s ? (me = async (t, n, r) => {
26574
+ t[29] !== E || t[30] !== e || t[31] !== pe || t[32] !== s ? (me = async (t, n, r) => {
26575
26575
  let i = pB(s, t, n.destination), a = {
26576
26576
  format: t,
26577
26577
  ...i ? { options: i } : {},
26578
- ...sB(t) && D !== null ? { geometry_column: D } : {}
26578
+ ...sB(t) && E !== null ? { geometry_column: E } : {}
26579
26579
  }, o = await e.downloadAs(a);
26580
- return r === I.current ? o.missing_packages && o.missing_packages.length > 0 ? (pe(r, {
26580
+ return r === F.current ? o.missing_packages && o.missing_packages.length > 0 ? (pe(r, {
26581
26581
  kind: "missing-packages",
26582
26582
  packages: o.missing_packages,
26583
26583
  description: o.error,
@@ -26591,17 +26591,17 @@ var CB = (e) => {
26591
26591
  url: o.url,
26592
26592
  filename: o.filename
26593
26593
  } : null;
26594
- }, t[29] = D, t[30] = e, t[31] = pe, t[32] = s, t[33] = me) : me = t[33];
26594
+ }, t[29] = E, t[30] = e, t[31] = pe, t[32] = s, t[33] = me) : me = t[33];
26595
26595
  let he = me, ge;
26596
- t[34] !== de || t[35] !== j || t[36] !== he || t[37] !== pe ? (ge = async (e) => {
26596
+ t[34] !== de || t[35] !== A || t[36] !== he || t[37] !== pe ? (ge = async (e) => {
26597
26597
  let t = {
26598
26598
  destination: "download",
26599
26599
  format: e
26600
- }, n = de(), r = gB(e, j);
26600
+ }, n = de(), r = gB(e, A);
26601
26601
  try {
26602
26602
  await qz(`Preparing ${r} export...`, async () => {
26603
26603
  let r = await he(e, t, n);
26604
- if (!r || n !== I.current) return !1;
26604
+ if (!r || n !== F.current) return !1;
26605
26605
  let i = (r.filename ?? "").trim(), a = `${Hz.withoutExtension(i) || "download"}.${e}`, o = r.url;
26606
26606
  if (!o.startsWith("data:")) {
26607
26607
  let e = o.includes("?") ? "&" : "?", t = new URLSearchParams({
@@ -26621,10 +26621,10 @@ var CB = (e) => {
26621
26621
  action: t
26622
26622
  });
26623
26623
  }
26624
- }, t[34] = de, t[35] = j, t[36] = he, t[37] = pe, t[38] = ge) : ge = t[38];
26624
+ }, t[34] = de, t[35] = A, t[36] = he, t[37] = pe, t[38] = ge) : ge = t[38];
26625
26625
  let _e = ge, ve;
26626
- t[39] !== le || t[40] !== j || t[41] !== he ? (ve = async (e, t, n) => {
26627
- await qz(`Preparing ${gB(e, j)} for clipboard...`, async () => {
26626
+ t[39] !== le || t[40] !== A || t[41] !== he ? (ve = async (e, t, n) => {
26627
+ await qz(`Preparing ${gB(e, A)} for clipboard...`, async () => {
26628
26628
  let r = cB[e], i = await he(r, t, n);
26629
26629
  if (!i) return;
26630
26630
  let a;
@@ -26648,9 +26648,9 @@ var CB = (e) => {
26648
26648
  Gr(e);
26649
26649
  return;
26650
26650
  }
26651
- n === I.current && (await m(a), p({ title: "Copied to clipboard" }), le(!1));
26651
+ n === F.current && (await m(a), p({ title: "Copied to clipboard" }), le(!1));
26652
26652
  });
26653
- }, t[39] = le, t[40] = j, t[41] = he, t[42] = ve) : ve = t[42];
26653
+ }, t[39] = le, t[40] = A, t[41] = he, t[42] = ve) : ve = t[42];
26654
26654
  let ye = ve, be;
26655
26655
  t[43] !== de || t[44] !== ye || t[45] !== pe ? (be = async (e) => {
26656
26656
  let t = {
@@ -26674,13 +26674,13 @@ var CB = (e) => {
26674
26674
  e.destination === "download" ? _e(e.format) : xe(e.format);
26675
26675
  }, t[47] = xe, t[48] = _e, t[49] = H) : H = t[49];
26676
26676
  let Se = H, Ce;
26677
- t[50] !== D || t[51] !== n || t[52] !== y || t[53] !== S || t[54] !== Se || t[55] !== pe || t[56] !== g ? (Ce = async (e, t) => {
26677
+ t[50] !== E || t[51] !== n || t[52] !== y || t[53] !== S || t[54] !== Se || t[55] !== pe || t[56] !== g ? (Ce = async (e, t) => {
26678
26678
  if (!y(t)) return;
26679
26679
  if (!sB(e.format) || !n) {
26680
26680
  Se(e);
26681
26681
  return;
26682
26682
  }
26683
- let r = I.current, i = () => y(t) && r === I.current, a;
26683
+ let r = F.current, i = () => y(t) && r === F.current, a;
26684
26684
  try {
26685
26685
  a = await n({});
26686
26686
  } catch {
@@ -26689,13 +26689,13 @@ var CB = (e) => {
26689
26689
  }
26690
26690
  if (!i()) return;
26691
26691
  S.refetch();
26692
- let o = bB(a, e.format, D);
26692
+ let o = bB(a, e.format, E);
26693
26693
  switch (o) {
26694
26694
  case null:
26695
26695
  Se(e);
26696
26696
  return;
26697
26697
  case "obsolete-geometry":
26698
- O(a.default_geometry_column), pe(r, {
26698
+ D(a.default_geometry_column), pe(r, {
26699
26699
  kind: "error",
26700
26700
  title: _B(e),
26701
26701
  description: yB,
@@ -26710,7 +26710,7 @@ var CB = (e) => {
26710
26710
  return;
26711
26711
  default: Gr(o);
26712
26712
  }
26713
- }, t[50] = D, t[51] = n, t[52] = y, t[53] = S, t[54] = Se, t[55] = pe, t[56] = g, t[57] = Ce) : Ce = t[57];
26713
+ }, t[50] = E, t[51] = n, t[52] = y, t[53] = S, t[54] = Se, t[55] = pe, t[56] = g, t[57] = Ce) : Ce = t[57];
26714
26714
  let we = ea(Ce), Te;
26715
26715
  t[58] !== d || t[59] !== we ? (Te = (e) => {
26716
26716
  let t = d;
@@ -26719,9 +26719,9 @@ var CB = (e) => {
26719
26719
  };
26720
26720
  }, t[58] = d, t[59] = we, t[60] = Te) : Te = t[60];
26721
26721
  let Ee = Te, De;
26722
- t[61] === j ? De = t[62] : (De = (e) => {
26723
- (fB(e) || sB(e) && j) && N((t) => t === e ? null : e);
26724
- }, t[61] = j, t[62] = De);
26722
+ t[61] === A ? De = t[62] : (De = (e) => {
26723
+ (fB(e) || sB(e) && A) && M((t) => t === e ? null : e);
26724
+ }, t[61] = A, t[62] = De);
26725
26725
  let Oe = De, ke;
26726
26726
  t[63] !== se || t[64] !== ne ? (ke = ne ? /* @__PURE__ */ (0, q.jsx)("span", {
26727
26727
  tabIndex: 0,
@@ -26738,9 +26738,9 @@ var CB = (e) => {
26738
26738
  }), t[66] = ke, t[67] = V, t[68] = Ae) : Ae = t[68];
26739
26739
  let je, Me;
26740
26740
  t[69] === Symbol.for("react.memo_cache_sentinel") ? (je = (e) => {
26741
- e.preventDefault(), F.current?.focus();
26742
- }, Me = (e) => {
26743
26741
  e.preventDefault(), P.current?.focus();
26742
+ }, Me = (e) => {
26743
+ e.preventDefault(), N.current?.focus();
26744
26744
  }, t[69] = je, t[70] = Me) : (je = t[69], Me = t[70]);
26745
26745
  let Ne;
26746
26746
  t[71] === le ? Ne = t[72] : (Ne = (e) => {
@@ -26749,10 +26749,10 @@ var CB = (e) => {
26749
26749
  let Pe;
26750
26750
  t[73] === Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ (0, q.jsxs)(Sa, { children: [/* @__PURE__ */ (0, q.jsx)(xa, { children: "Export table" }), /* @__PURE__ */ (0, q.jsx)(Ta, { children: "Download a file or copy to the clipboard." })] }), t[73] = Pe) : Pe = t[73];
26751
26751
  let Fe;
26752
- if (t[74] !== Ee || t[75] !== M || t[76] !== h || t[77] !== D || t[78] !== n || t[79] !== xe || t[80] !== _e || t[81] !== j || t[82] !== C || t[83] !== E || t[84] !== S.refetch || t[85] !== s || t[86] !== Oe) {
26752
+ if (t[74] !== Ee || t[75] !== j || t[76] !== h || t[77] !== E || t[78] !== n || t[79] !== xe || t[80] !== _e || t[81] !== A || t[82] !== C || t[83] !== T || t[84] !== S.refetch || t[85] !== s || t[86] !== Oe) {
26753
26753
  let e;
26754
- t[88] === j ? e = t[89] : (e = (e) => e.format !== "geojson" || j, t[88] = j, t[89] = e), Fe = oB.filter(e).map((e) => {
26755
- let t = gB(e.format, j), r = fB(e.format) || sB(e.format) && j ? e.format : null, a = r !== null && M === r, o = r ? "button" : "div", l = `export-options-${e.format}`, d = `${l}-description`, f = `${l}-summary`, p = h?.action.format === e.format ? h : null, m = sB(e.format) && j ? xB(D) ?? "Choose geometry" : hB(s, e.format), g = C?.geometry_columns.findIndex((e) => e.name === D) ?? -1, _ = sB(e.format) ? C?.formats[e.format] : void 0, v = sB(e.format) && C ? bB(C, e.format, D) : null, y = E ? `Could not load geometry options: ${E}` : _?.reason ?? SB(v, t, D), b = p?.kind === "missing-packages" ? p : null, x = b?.packages ?? (_?.available === !1 ? _.missing_packages : []), w = sB(e.format) && (!!n && !C || v !== null), k = sB(e.format) && (w || x.length > 0);
26754
+ t[88] === A ? e = t[89] : (e = (e) => e.format !== "geojson" || A, t[88] = A, t[89] = e), Fe = oB.filter(e).map((e) => {
26755
+ let t = gB(e.format, A), r = fB(e.format) || sB(e.format) && A ? e.format : null, a = r !== null && j === r, o = r ? "button" : "div", l = `export-options-${e.format}`, d = `${l}-description`, f = `${l}-summary`, p = h?.action.format === e.format ? h : null, m = sB(e.format) && A ? xB(E) ?? "Choose geometry" : hB(s, e.format), g = C?.geometry_columns.findIndex((e) => e.name === E) ?? -1, _ = sB(e.format) ? C?.formats[e.format] : void 0, v = sB(e.format) && C ? bB(C, e.format, E) : null, y = T ? `Could not load geometry options: ${T}` : _?.reason ?? SB(v, t, E), b = p?.kind === "missing-packages" ? p : null, x = b?.packages ?? (_?.available === !1 ? _.missing_packages : []), w = sB(e.format) && (!!n && !C || v !== null), O = sB(e.format) && (w || x.length > 0);
26756
26756
  return /* @__PURE__ */ (0, q.jsxs)("li", {
26757
26757
  "data-testid": `export-row-${e.format}`,
26758
26758
  className: i(a && "bg-muted/40"),
@@ -26793,7 +26793,7 @@ var CB = (e) => {
26793
26793
  }), /* @__PURE__ */ (0, q.jsx)("span", {
26794
26794
  id: d,
26795
26795
  className: "text-xs text-muted-foreground leading-tight",
26796
- children: e.format === "parquet" && j ? "Parquet with geometry and CRS metadata" : e.description
26796
+ children: e.format === "parquet" && A ? "Parquet with geometry and CRS metadata" : e.description
26797
26797
  })]
26798
26798
  })]
26799
26799
  })]
@@ -26824,8 +26824,8 @@ var CB = (e) => {
26824
26824
  variant: "ghost",
26825
26825
  size: "icon",
26826
26826
  "aria-label": `Copy ${t}`,
26827
- disabled: !e.canCopy || k,
26828
- onClick: e.canCopy && !k ? () => {
26827
+ disabled: !e.canCopy || O,
26828
+ onClick: e.canCopy && !O ? () => {
26829
26829
  xe(e.format);
26830
26830
  } : void 0,
26831
26831
  children: /* @__PURE__ */ (0, q.jsx)(Ka, { className: "h-4 w-4" })
@@ -26856,7 +26856,7 @@ var CB = (e) => {
26856
26856
  value: String(g),
26857
26857
  onChange: (e) => {
26858
26858
  let t = Number(e.target.value);
26859
- O(C?.geometry_columns[t]?.name ?? null);
26859
+ D(C?.geometry_columns[t]?.name ?? null);
26860
26860
  },
26861
26861
  children: [/* @__PURE__ */ (0, q.jsx)("option", {
26862
26862
  value: "-1",
@@ -26873,7 +26873,7 @@ var CB = (e) => {
26873
26873
  }),
26874
26874
  sB(e.format) && x.length === 0 && y && /* @__PURE__ */ (0, q.jsxs)("div", {
26875
26875
  className: "flex items-center justify-between gap-2 border-t px-3 py-2 pl-[42px] text-xs text-muted-foreground",
26876
- children: [/* @__PURE__ */ (0, q.jsx)("span", { children: y }), E && /* @__PURE__ */ (0, q.jsx)(u, {
26876
+ children: [/* @__PURE__ */ (0, q.jsx)("span", { children: y }), T && /* @__PURE__ */ (0, q.jsx)(u, {
26877
26877
  type: "button",
26878
26878
  size: "xs",
26879
26879
  variant: "outline",
@@ -26899,7 +26899,7 @@ var CB = (e) => {
26899
26899
  children: /* @__PURE__ */ (0, q.jsxs)(pa, {
26900
26900
  variant: "destructive",
26901
26901
  className: "p-3 has-[svg]:pl-9 [&>svg]:left-3 [&>svg]:top-3",
26902
- children: [/* @__PURE__ */ (0, q.jsx)(T, { className: "h-4 w-4" }), /* @__PURE__ */ (0, q.jsxs)("div", { children: [/* @__PURE__ */ (0, q.jsx)(fa, {
26902
+ children: [/* @__PURE__ */ (0, q.jsx)(R, { className: "h-4 w-4" }), /* @__PURE__ */ (0, q.jsxs)("div", { children: [/* @__PURE__ */ (0, q.jsx)(fa, {
26903
26903
  className: "text-sm",
26904
26904
  children: p.title
26905
26905
  }), /* @__PURE__ */ (0, q.jsx)(ma, {
@@ -26910,7 +26910,7 @@ var CB = (e) => {
26910
26910
  })
26911
26911
  ]
26912
26912
  }, e.format);
26913
- }), t[74] = Ee, t[75] = M, t[76] = h, t[77] = D, t[78] = n, t[79] = xe, t[80] = _e, t[81] = j, t[82] = C, t[83] = E, t[84] = S.refetch, t[85] = s, t[86] = Oe, t[87] = Fe;
26913
+ }), t[74] = Ee, t[75] = j, t[76] = h, t[77] = E, t[78] = n, t[79] = xe, t[80] = _e, t[81] = A, t[82] = C, t[83] = T, t[84] = S.refetch, t[85] = s, t[86] = Oe, t[87] = Fe;
26914
26914
  } else Fe = t[87];
26915
26915
  let Ie;
26916
26916
  t[90] === Fe ? Ie = t[91] : (Ie = /* @__PURE__ */ (0, q.jsx)("ul", {
@@ -26920,7 +26920,7 @@ var CB = (e) => {
26920
26920
  }), t[90] = Fe, t[91] = Ie);
26921
26921
  let Le;
26922
26922
  t[92] !== Ne || t[93] !== Ie ? (Le = /* @__PURE__ */ (0, q.jsxs)(Ca, {
26923
- ref: F,
26923
+ ref: P,
26924
26924
  className: "print:hidden gap-4 sm:max-w-[540px]",
26925
26925
  onOpenAutoFocus: je,
26926
26926
  onCloseAutoFocus: Me,
@@ -27029,7 +27029,7 @@ var CB = (e) => {
27029
27029
  children: r
27030
27030
  }), t[0] = n, t[1] = r, t[2] = o) : o = t[2];
27031
27031
  let s = `${r} help`, c;
27032
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(E, { className: "h-3 w-3" }), t[3] = c) : c = t[3];
27032
+ t[3] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(k, { className: "h-3 w-3" }), t[3] = c) : c = t[3];
27033
27033
  let l;
27034
27034
  t[4] === s ? l = t[5] : (l = /* @__PURE__ */ (0, q.jsx)("button", {
27035
27035
  type: "button",
@@ -27150,16 +27150,16 @@ var MB = () => {}, NB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
27150
27150
  ]
27151
27151
  })]
27152
27152
  });
27153
- }, PB = (0, K.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: r, data: a, rawData: o, selection: s, totalColumns: c, totalRows: l, hasNextPage: d, sizeBytes: f, sizeBytesIsLoading: p, manualSorting: m = !1, sorting: h, setSorting: g, rowSelection: _, cellSelection: v, cellStyling: y, hoverTemplate: b, cellHoverTexts: x, paginationState: S, setPaginationState: C, downloadAs: w, getExportMetadata: T, manualPagination: E = !1, pagination: D = !1, onRowSelectionChange: O, onCellSelectionChange: k, getRowIds: A, showSearch: j = !1, searchQuery: M, onSearchQueryChange: N, showFilters: P = !1, filters: F, onFiltersChange: I, calculateTopKRows: L, reloading: R, freezeColumnsLeft: z, freezeColumnsRight: B, hiddenColumns: ee, toggleDisplayHeader: te, showChartBuilder: ne, isChartBuilderOpen: V, showPageSizeSelector: re, showTableExplorer: ie, togglePanel: ae, isPanelOpen: oe, isAnyPanelOpen: se, viewedRowIdx: ce, onViewedRowChange: le, renderTableExplorerPanel: ue }) => {
27154
- let de = sa(), fe = !de, [pe, me] = K.useState(!1), { locale: he } = Fe(), { columnPinning: ge, setColumnPinning: _e } = _I(z, B), { columnVisibility: ve, setColumnVisibility: ye } = az(ee);
27153
+ }, PB = (0, K.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: r, data: a, rawData: o, selection: s, totalColumns: c, totalRows: l, hasNextPage: d, sizeBytes: f, sizeBytesIsLoading: p, manualSorting: m = !1, sorting: h, setSorting: g, rowSelection: _, cellSelection: v, cellStyling: y, hoverTemplate: b, cellHoverTexts: x, paginationState: S, setPaginationState: C, downloadAs: w, getExportMetadata: T, manualPagination: E = !1, pagination: D = !1, onRowSelectionChange: O, onCellSelectionChange: k, getRowIds: A, showSearch: j = !1, searchQuery: M, onSearchQueryChange: N, showFilters: P = !1, filters: F, onFiltersChange: I, calculateTopKRows: ee, reloading: L, freezeColumnsLeft: R, freezeColumnsRight: z, hiddenColumns: B, toggleDisplayHeader: te, showChartBuilder: ne, isChartBuilderOpen: V, showPageSizeSelector: re, showTableExplorer: ie, togglePanel: ae, isPanelOpen: oe, isAnyPanelOpen: se, viewedRowIdx: ce, onViewedRowChange: le, renderTableExplorerPanel: ue }) => {
27154
+ let de = sa(), fe = !de, [pe, me] = K.useState(!1), { locale: he } = Fe(), { columnPinning: ge, setColumnPinning: _e } = _I(R, z), { columnVisibility: ve, setColumnVisibility: ye } = az(B);
27155
27155
  K.useEffect(() => {
27156
27156
  let e;
27157
- return R ? e = setTimeout(() => {
27157
+ return L ? e = setTimeout(() => {
27158
27158
  me(!0);
27159
27159
  }, 300) : me(!1), () => {
27160
27160
  e && clearTimeout(e);
27161
27161
  };
27162
- }, [R]);
27162
+ }, [L]);
27163
27163
  function be(e, t) {
27164
27164
  return S ? t + (E ? S.pageIndex * S.pageSize : 0) : t;
27165
27165
  }
@@ -27243,7 +27243,7 @@ var MB = () => {}, NB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
27243
27243
  /* @__PURE__ */ (0, q.jsx)(pI, {
27244
27244
  filters: F,
27245
27245
  table: H,
27246
- calculateTopKRows: L,
27246
+ calculateTopKRows: ee,
27247
27247
  addFilterSnapshot: U,
27248
27248
  onAddFilterSnapshotChange: Te
27249
27249
  }),
@@ -27257,7 +27257,7 @@ var MB = () => {}, NB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
27257
27257
  showSearch: j,
27258
27258
  searchQuery: M,
27259
27259
  onSearchQueryChange: N,
27260
- reloading: R,
27260
+ reloading: L,
27261
27261
  showChartBuilder: ne,
27262
27262
  isChartBuilderOpen: V,
27263
27263
  toggleDisplayHeader: te,
@@ -27308,7 +27308,7 @@ var MB = () => {}, NB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
27308
27308
  table: H,
27309
27309
  getRowIds: A,
27310
27310
  showPageSizeSelector: re,
27311
- tableLoading: R
27311
+ tableLoading: L
27312
27312
  })
27313
27313
  ]
27314
27314
  }) })
@@ -27407,38 +27407,38 @@ var RB = (e) => {
27407
27407
  t[24] === D ? P = t[25] : (P = () => O(!D), t[24] = D, t[25] = P);
27408
27408
  let F = D ? "Collapse traceback" : "Expand traceback", I;
27409
27409
  t[26] === D ? I = t[27] : (I = D ? /* @__PURE__ */ (0, q.jsx)(Ie, { className: "h-3 w-3" }) : /* @__PURE__ */ (0, q.jsx)(lt, { className: "h-3 w-3" }), t[26] = D, t[27] = I);
27410
- let L;
27411
- t[28] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ (0, q.jsx)("span", {
27410
+ let ee;
27411
+ t[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ (0, q.jsx)("span", {
27412
27412
  className: "text-[0.6875rem] uppercase tracking-wider",
27413
27413
  children: "Traceback"
27414
- }), t[28] = L) : L = t[28];
27415
- let R;
27416
- t[29] !== D || t[30] !== P || t[31] !== F || t[32] !== I ? (R = /* @__PURE__ */ (0, q.jsxs)("button", {
27414
+ }), t[28] = ee) : ee = t[28];
27415
+ let L;
27416
+ t[29] !== D || t[30] !== P || t[31] !== F || t[32] !== I ? (L = /* @__PURE__ */ (0, q.jsxs)("button", {
27417
27417
  type: "button",
27418
27418
  onClick: P,
27419
27419
  "aria-expanded": D,
27420
27420
  "aria-label": F,
27421
27421
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
27422
- children: [I, L]
27423
- }), t[29] = D, t[30] = P, t[31] = F, t[32] = I, t[33] = R) : R = t[33];
27424
- let z;
27425
- t[34] !== l || t[35] !== D ? (z = D && /* @__PURE__ */ (0, q.jsx)("div", {
27422
+ children: [I, ee]
27423
+ }), t[29] = D, t[30] = P, t[31] = F, t[32] = I, t[33] = L) : L = t[33];
27424
+ let R;
27425
+ t[34] !== l || t[35] !== D ? (R = D && /* @__PURE__ */ (0, q.jsx)("div", {
27426
27426
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
27427
27427
  children: l
27428
- }), t[34] = l, t[35] = D, t[36] = z) : z = t[36];
27429
- let B;
27430
- t[37] !== a || t[38] !== o || t[39] !== g || t[40] !== r || t[41] !== s ? (B = a && g && /* @__PURE__ */ (0, q.jsx)(sE, { getContent: () => lT(a, {
27428
+ }), t[34] = l, t[35] = D, t[36] = R) : R = t[36];
27429
+ let z;
27430
+ t[37] !== a || t[38] !== o || t[39] !== g || t[40] !== r || t[41] !== s ? (z = a && g && /* @__PURE__ */ (0, q.jsx)(sE, { getContent: () => lT(a, {
27431
27431
  code: o,
27432
27432
  traceback: r,
27433
27433
  tracebackFormat: s
27434
- }) }), t[37] = a, t[38] = o, t[39] = g, t[40] = r, t[41] = s, t[42] = B) : B = t[42];
27435
- let ee;
27436
- t[43] !== j || t[44] !== N || t[45] !== w ? (ee = w && /* @__PURE__ */ (0, q.jsx)(KT, {
27434
+ }) }), t[37] = a, t[38] = o, t[39] = g, t[40] = r, t[41] = s, t[42] = z) : z = t[42];
27435
+ let B;
27436
+ t[43] !== j || t[44] !== N || t[45] !== w ? (B = w && /* @__PURE__ */ (0, q.jsx)(KT, {
27437
27437
  tooltip: "Fix with AI",
27438
27438
  openPrompt: () => j(!1),
27439
27439
  applyAutofix: () => j(!0),
27440
27440
  openChat: N
27441
- }), t[43] = j, t[44] = N, t[45] = w, t[46] = ee) : ee = t[46];
27441
+ }), t[43] = j, t[44] = N, t[45] = w, t[46] = B) : B = t[46];
27442
27442
  let te;
27443
27443
  t[47] !== S || t[48] !== b ? (te = S && /* @__PURE__ */ (0, q.jsx)(U, {
27444
27444
  content: "Attach pdb to the exception point.",
@@ -27498,24 +27498,24 @@ var RB = (e) => {
27498
27498
  ]
27499
27499
  })] }), t[50] = g, t[51] = f, t[52] = ne) : ne = t[52];
27500
27500
  let V;
27501
- t[53] !== B || t[54] !== ee || t[55] !== te || t[56] !== ne ? (V = /* @__PURE__ */ (0, q.jsxs)("div", {
27501
+ t[53] !== z || t[54] !== B || t[55] !== te || t[56] !== ne ? (V = /* @__PURE__ */ (0, q.jsxs)("div", {
27502
27502
  className: "flex gap-2",
27503
27503
  children: [
27504
+ z,
27504
27505
  B,
27505
- ee,
27506
27506
  te,
27507
27507
  ne
27508
27508
  ]
27509
- }), t[53] = B, t[54] = ee, t[55] = te, t[56] = ne, t[57] = V) : V = t[57];
27509
+ }), t[53] = z, t[54] = B, t[55] = te, t[56] = ne, t[57] = V) : V = t[57];
27510
27510
  let re;
27511
- return t[58] !== R || t[59] !== z || t[60] !== V ? (re = /* @__PURE__ */ (0, q.jsxs)("div", {
27511
+ return t[58] !== L || t[59] !== R || t[60] !== V ? (re = /* @__PURE__ */ (0, q.jsxs)("div", {
27512
27512
  className: "flex flex-col gap-2 min-w-full w-fit",
27513
27513
  children: [
27514
+ L,
27514
27515
  R,
27515
- z,
27516
27516
  V
27517
27517
  ]
27518
- }), t[58] = R, t[59] = z, t[60] = V, t[61] = re) : re = t[61], re;
27518
+ }), t[58] = L, t[59] = R, t[60] = V, t[61] = re) : re = t[61], re;
27519
27519
  };
27520
27520
  function zB(e) {
27521
27521
  return e.split("\n").filter(Boolean)?.at(-1) || "";
@@ -27523,7 +27523,7 @@ function zB(e) {
27523
27523
  var BB = (e) => {
27524
27524
  let t = Qg(e);
27525
27525
  if (t?.kind === "cell") {
27526
- let e = se("debugger"), n = e ? /* @__PURE__ */ (0, q.jsx)(WB, {}) : /* @__PURE__ */ (0, q.jsx)(UB, {});
27526
+ let e = oe("debugger"), n = e ? /* @__PURE__ */ (0, q.jsx)(WB, {}) : /* @__PURE__ */ (0, q.jsx)(UB, {});
27527
27527
  return /* @__PURE__ */ (0, q.jsx)("span", {
27528
27528
  className: "nb",
27529
27529
  children: /* @__PURE__ */ (0, q.jsxs)("span", {
@@ -27570,11 +27570,11 @@ var BB = (e) => {
27570
27570
  })
27571
27571
  });
27572
27572
  }, VB = (e) => {
27573
- if (!(e instanceof C.Text) || !e.nodeValue || !hT(e.nodeValue)) return;
27573
+ if (!(e instanceof O.Text) || !e.nodeValue || !hT(e.nodeValue)) return;
27574
27574
  let t = mT(e.nodeValue);
27575
27575
  return /* @__PURE__ */ (0, q.jsx)(YT, { segments: t });
27576
27576
  }, HB = (e) => {
27577
- if (e instanceof C.Text && e.nodeValue?.includes("File") && e.next instanceof C.Element && Zg(e.next)) return /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: e.nodeValue.replace("File", "Cell") });
27577
+ if (e instanceof O.Text && e.nodeValue?.includes("File") && e.next instanceof O.Element && Zg(e.next)) return /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: e.nodeValue.replace("File", "Cell") });
27578
27578
  }, UB = () => {
27579
27579
  let e = (0, J.c)(1), t;
27580
27580
  return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [
@@ -28276,12 +28276,12 @@ function bV(e) {
28276
28276
  t[24] === o ? N = t[25] : (N = i("marimo-json-output", o), t[24] = o, t[25] = N);
28277
28277
  let P = s || void 0, F = l === "dark" ? vV : _V, I;
28278
28278
  t[26] === E ? I = t[27] : (I = /* @__PURE__ */ (0, q.jsx)(Y.String, { render: E }), t[26] = E, t[27] = I);
28279
- let L, R;
28280
- t[28] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ (0, q.jsx)(Y.Colon, { style: { marginRight: 4 } }), R = /* @__PURE__ */ (0, q.jsx)(Y.Arrow, { render: uV }), t[28] = L, t[29] = R) : (L = t[28], R = t[29]);
28281
- let z;
28282
- t[30] === A ? z = t[31] : (z = /* @__PURE__ */ (0, q.jsx)(Y.CountInfo, { render: A }), t[30] = A, t[31] = z);
28283
- let B = u ? oV : void 0, ee;
28284
- t[32] === B ? ee = t[33] : (ee = /* @__PURE__ */ (0, q.jsx)(Y.KeyName, { render: B }), t[32] = B, t[33] = ee);
28279
+ let ee, L;
28280
+ t[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ (0, q.jsx)(Y.Colon, { style: { marginRight: 4 } }), L = /* @__PURE__ */ (0, q.jsx)(Y.Arrow, { render: uV }), t[28] = ee, t[29] = L) : (ee = t[28], L = t[29]);
28281
+ let R;
28282
+ t[30] === A ? R = t[31] : (R = /* @__PURE__ */ (0, q.jsx)(Y.CountInfo, { render: A }), t[30] = A, t[31] = R);
28283
+ let z = u ? oV : void 0, B;
28284
+ t[32] === z ? B = t[33] : (B = /* @__PURE__ */ (0, q.jsx)(Y.KeyName, { render: z }), t[32] = z, t[33] = B);
28285
28285
  let te = u ? sV : void 0, ne;
28286
28286
  t[34] === te ? ne = t[35] : (ne = /* @__PURE__ */ (0, q.jsx)(Y.Quote, { render: te }), t[34] = te, t[35] = ne);
28287
28287
  let V = u ? fV : void 0, re;
@@ -28295,7 +28295,7 @@ function bV(e) {
28295
28295
  let le;
28296
28296
  t[44] === M ? le = t[45] : (le = /* @__PURE__ */ (0, q.jsx)(Y.CountInfoExtra, { render: M }), t[44] = M, t[45] = le);
28297
28297
  let ue;
28298
- return t[46] !== N || t[47] !== P || t[48] !== F || t[49] !== I || t[50] !== z || t[51] !== ee || t[52] !== ne || t[53] !== re || t[54] !== ae || t[55] !== se || t[56] !== ce || t[57] !== le || t[58] !== b.data ? (ue = /* @__PURE__ */ (0, q.jsxs)(Y, {
28298
+ return t[46] !== N || t[47] !== P || t[48] !== F || t[49] !== I || t[50] !== R || t[51] !== B || t[52] !== ne || t[53] !== re || t[54] !== ae || t[55] !== se || t[56] !== ce || t[57] !== le || t[58] !== b.data ? (ue = /* @__PURE__ */ (0, q.jsxs)(Y, {
28299
28299
  className: N,
28300
28300
  keyName: P,
28301
28301
  value: b.data,
@@ -28308,10 +28308,10 @@ function bV(e) {
28308
28308
  shouldExpandNodeInitially: $w,
28309
28309
  children: [
28310
28310
  I,
28311
+ ee,
28311
28312
  L,
28312
28313
  R,
28313
- z,
28314
- ee,
28314
+ B,
28315
28315
  ne,
28316
28316
  re,
28317
28317
  ae,
@@ -28319,7 +28319,7 @@ function bV(e) {
28319
28319
  ce,
28320
28320
  le
28321
28321
  ]
28322
- }), t[46] = N, t[47] = P, t[48] = F, t[49] = I, t[50] = z, t[51] = ee, t[52] = ne, t[53] = re, t[54] = ae, t[55] = se, t[56] = ce, t[57] = le, t[58] = b.data, t[59] = ue) : ue = t[59], ue;
28322
+ }), t[46] = N, t[47] = P, t[48] = F, t[49] = I, t[50] = R, t[51] = B, t[52] = ne, t[53] = re, t[54] = ae, t[55] = se, t[56] = ce, t[57] = le, t[58] = b.data, t[59] = ue) : ue = t[59], ue;
28323
28323
  }
28324
28324
  //#endregion
28325
28325
  //#region src/components/slides/slide.tsx
@@ -28339,7 +28339,7 @@ var xV = (0, K.memo)((e) => {
28339
28339
  xV.displayName = "Slide";
28340
28340
  //#endregion
28341
28341
  //#region src/components/slides/slide-form.tsx
28342
- var SV = "slide", CV = "slide", wV = "center", TV = 36, EV = $r("marimo:slides:config-open", !0, de, { getOnInit: !0 }), DV = [
28342
+ var SV = "slide", CV = "slide", wV = "center", TV = 36, EV = $r("marimo:slides:config-open", !0, le, { getOnInit: !0 }), DV = [
28343
28343
  {
28344
28344
  value: "slide",
28345
28345
  label: "Slide",