@marimo-team/islands 0.23.15-dev31 → 0.23.15-dev33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
6
6
  import { t as require_react } from "./react-DA-nE2FX.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
8
8
  import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
9
- import { At as goToCellLine, B as isDataURLString, C as Accordion, Cn as jsonToMarkdown, E as AccordionTrigger, Ft as jotaiJsonStorage, H as renderHTML, Hn as FileText, L as base64ToUint8Array, Ln as NotebookPen, Lt as getFeatureFlag, M as DotFilledIcon, N as PinLeftIcon, Nn as Wrench, Nt as useChromeActions, On as Close$1, Ot as toggleBreakpoint, P as PinRightIcon, Pn as Trash2, Pt as adaptForLocalStorage, Qt as useRequestClient, Rn as Minus, Sn as jsonParseWithSpecialChar, St as Checkbox, T as AccordionItem, Tn as atomWithStorage, Un as Eye, Ut as DATA_TYPE_ICON, Vn as Info, Vt as PluralWord, Wn as ExternalLink, Wt as getDataTypeColor, X as notebookAtom, Xn as esm_default, Xt as getRequestClient, Yn as Braces, Zn as import_lib, _ as getDatasourceContext, _n as SCRATCH_CELL_ID, _t as getCellDomProps, c as Popover, cn as getTracebackInfo, d as PopoverTrigger, dn as filenameAtom, dt as viewStateAtom, et as useCellActions, ft as outputIsLoading, gn as HTMLCellId, gt as DATA_CELL_ID, hn as CellOutputId, ht as sanitizeHtml, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, lt as kioskModeAtom, m as useExpandedOutput, n as Spinner, nt as useCellNames, on as elementContainsMarimoCellFile, ot as AnsiUp, q as getCellEditorView, qn as CircleX, r as MarkdownRenderer, sn as extractAllTracebackInfo, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as displayCellName, w as AccordionContent, z as extractBase64FromDataURL, zn as LoaderCircle, __tla as __tla_0 } from "./html-to-image-CtsZpKdg.js";
9
+ import { $n as import_lib, An as Close$1, At as toggleBreakpoint, B as isDataURLString, Bn as Minus, C as Accordion, Dn as atomWithStorage, E as AccordionTrigger, Fn as Wrench, Ft as useChromeActions, Gn as Eye, Gt as DATA_TYPE_ICON, H as renderHTML, In as Trash2, It as adaptForLocalStorage, J as getCellEditorView, Kn as ExternalLink, Kt as getDataTypeColor, L as base64ToUint8Array, Lt as jotaiJsonStorage, M as DotFilledIcon, Mt as goToCellLine, N as PinLeftIcon, P as PinRightIcon, Q as notebookAtom, Qn as esm_default, Qt as getRequestClient, T as AccordionItem, Tn as jsonToMarkdown, Un as Info, Ut as PluralWord, Vn as LoaderCircle, Wn as FileText, Yn as CircleX, Zn as Braces, _ as getDatasourceContext, _n as CellOutputId, _t as sanitizeHtml, bt as displayCellName, c as Popover, cn as elementContainsMarimoCellFile, ct as AnsiUp, d as PopoverTrigger, dt as kioskModeAtom, en as useRequestClient, ft as useInstallAllowed, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, ln as extractAllTracebackInfo, m as useExpandedOutput, mt as outputIsLoading, n as Spinner, nt as useCellActions, pn as filenameAtom, pt as viewStateAtom, r as MarkdownRenderer, rt as useCellIds, t as toPng, u as PopoverContent, un as getTracebackInfo, vn as HTMLCellId, vt as DATA_CELL_ID, w as AccordionContent, wn as jsonParseWithSpecialChar, wt as Checkbox, yn as SCRATCH_CELL_ID, yt as getCellDomProps, z as extractBase64FromDataURL, zn as NotebookPen, zt as getFeatureFlag, __tla as __tla_0 } from "./html-to-image-D8Q5SLSJ.js";
10
10
  import { o as useSize, u as createLucideIcon } from "./dist--2Bqjvs0.js";
11
11
  import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-C6wHjkhW.js";
12
12
  import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-CMnRuVmN.js";
@@ -20120,18 +20120,18 @@ ${n}` : "Please fix this error.";
20120
20120
  }
20121
20121
  let y, S, w, E, O, A;
20122
20122
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
20123
- let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), $ = n.filter(_temp14), rJ = n.filter(_temp15), iJ = n.filter(_temp16), aJ = n.filter(_temp17), oJ = n.filter(_temp18), sJ;
20124
- t[17] === s ? sJ = t[18] : (sJ = () => {
20123
+ let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), rJ = n.filter(_temp16), iJ = n.filter(_temp17), aJ = n.filter(_temp18), oJ;
20124
+ t[17] === s ? oJ = t[18] : (oJ = () => {
20125
20125
  s.openApplication("scratchpad");
20126
- }, t[17] = s, t[18] = sJ);
20127
- let cJ = sJ, lJ = () => {
20126
+ }, t[17] = s, t[18] = oJ);
20127
+ let sJ = oJ, cJ = () => {
20128
20128
  let t2 = [];
20129
- if (iJ.length > 0 || aJ.length > 0) {
20130
- let e3 = iJ.some(_temp19), n2 = !e3 && iJ.some(_temp20);
20129
+ if (rJ.length > 0 || iJ.length > 0) {
20130
+ let e3 = rJ.some(_temp19), n2 = !e3 && rJ.some(_temp20);
20131
20131
  t2.push((0, import_jsx_runtime.jsxs)("div", {
20132
20132
  children: [
20133
- iJ.map(_temp21),
20134
- aJ.map(_temp22),
20133
+ rJ.map(_temp21),
20134
+ iJ.map(_temp22),
20135
20135
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
20136
20136
  size: "xs",
20137
20137
  variant: "outline",
@@ -20162,8 +20162,8 @@ ${n}` : "Please fix this error.";
20162
20162
  }),
20163
20163
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20164
20164
  errors: [
20165
- ...iJ,
20166
- ...aJ
20165
+ ...rJ,
20166
+ ...iJ
20167
20167
  ],
20168
20168
  cellId: i
20169
20169
  })
@@ -20324,7 +20324,7 @@ ${n}` : "Please fix this error.";
20324
20324
  size: "xs",
20325
20325
  variant: "link",
20326
20326
  className: "my-2 font-normal mx-0 px-0",
20327
- onClick: cJ,
20327
+ onClick: sJ,
20328
20328
  children: [
20329
20329
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20330
20330
  className: "h-3"
@@ -20507,34 +20507,34 @@ ${n}` : "Please fix this error.";
20507
20507
  cellId: i
20508
20508
  })
20509
20509
  ]
20510
- }, "internal")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20510
+ }, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20511
20511
  children: [
20512
- $.map(_temp33),
20512
+ Q.map(_temp33),
20513
20513
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20514
- errors: $,
20514
+ errors: Q,
20515
20515
  cellId: i
20516
20516
  })
20517
20517
  ]
20518
- }, "ancestor-prevented")), rJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20518
+ }, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20519
20519
  children: [
20520
- rJ.map(_temp34),
20520
+ $.map(_temp34),
20521
20521
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20522
- errors: rJ,
20522
+ errors: $,
20523
20523
  cellId: i
20524
20524
  })
20525
20525
  ]
20526
- }, "ancestor-stopped")), oJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20526
+ }, "ancestor-stopped")), aJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20527
20527
  children: [
20528
- oJ.map(_temp35),
20528
+ aJ.map(_temp35),
20529
20529
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20530
- errors: oJ,
20530
+ errors: aJ,
20531
20531
  cellId: i,
20532
20532
  className: "mt-2.5"
20533
20533
  })
20534
20534
  ]
20535
20535
  }, "sql-errors")), t2;
20536
- }, uJ;
20537
- t[19] === v ? uJ = t[20] : (uJ = v && (0, import_jsx_runtime.jsxs)("div", {
20536
+ }, lJ;
20537
+ t[19] === v ? lJ = t[20] : (lJ = v && (0, import_jsx_runtime.jsxs)("div", {
20538
20538
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20539
20539
  children: [
20540
20540
  v,
@@ -20546,22 +20546,22 @@ ${n}` : "Please fix this error.";
20546
20546
  })
20547
20547
  })
20548
20548
  ]
20549
- }), t[19] = v, t[20] = uJ);
20550
- let dJ;
20551
- t[21] !== _ || t[22] !== d ? (dJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20549
+ }), t[19] = v, t[20] = lJ);
20550
+ let uJ;
20551
+ t[21] !== _ || t[22] !== d ? (uJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20552
20552
  className: `font-code font-medium ${_}`,
20553
20553
  children: d
20554
- }), t[21] = _, t[22] = d, t[23] = dJ) : dJ = t[23];
20555
- let fJ;
20556
- t[24] !== uJ || t[25] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
20554
+ }), t[21] = _, t[22] = d, t[23] = uJ) : uJ = t[23];
20555
+ let dJ;
20556
+ t[24] !== lJ || t[25] !== uJ ? (dJ = (0, import_jsx_runtime.jsxs)("div", {
20557
20557
  className: "space-y-0.5",
20558
20558
  children: [
20559
- uJ,
20560
- dJ
20559
+ lJ,
20560
+ uJ
20561
20561
  ]
20562
- }), t[24] = uJ, t[25] = dJ, t[26] = fJ) : fJ = t[26];
20563
- let pJ = fJ;
20564
- y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = pJ, S = "flex flex-col gap-4", w = lJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20562
+ }), t[24] = lJ, t[25] = uJ, t[26] = dJ) : dJ = t[26];
20563
+ let fJ = dJ;
20564
+ y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = fJ, S = "flex flex-col gap-4", w = cJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20565
20565
  } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20566
20566
  let M;
20567
20567
  t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
@@ -28715,89 +28715,89 @@ ${n}` : "Please fix this error.";
28715
28715
  isSelected: vJ,
28716
28716
  onSelect: bJ
28717
28717
  }, t[49] = bJ, t[50] = vJ, t[51] = CJ) : CJ = t[51];
28718
- let wJ = CJ, TJ;
28719
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (TJ = cn("relative"), t[52] = TJ) : TJ = t[52];
28720
- let EJ;
28721
- t[53] !== sJ || t[54] !== dJ ? (EJ = (e2) => {
28718
+ let wJ = CJ, EJ;
28719
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (EJ = cn("relative"), t[52] = EJ) : EJ = t[52];
28720
+ let DJ;
28721
+ t[53] !== sJ || t[54] !== dJ ? (DJ = (e2) => {
28722
28722
  sJ && e2 || dJ(e2);
28723
- }, t[53] = sJ, t[54] = dJ, t[55] = EJ) : EJ = t[55];
28724
- let DJ = sJ && "cursor-not-allowed opacity-50", OJ;
28725
- t[56] !== o || t[57] !== DJ ? (OJ = cn("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:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", DJ, o), t[56] = o, t[57] = DJ, t[58] = OJ) : OJ = t[58];
28726
- let kJ;
28727
- t[59] !== O || t[60] !== SJ || t[61] !== hJ ? (kJ = O ? O(hJ ?? null) : SJ(), t[59] = O, t[60] = SJ, t[61] = hJ, t[62] = kJ) : kJ = t[62];
28723
+ }, t[53] = sJ, t[54] = dJ, t[55] = DJ) : DJ = t[55];
28724
+ let OJ = sJ && "cursor-not-allowed opacity-50", kJ;
28725
+ t[56] !== o || t[57] !== OJ ? (kJ = cn("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:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", OJ, o), t[56] = o, t[57] = OJ, t[58] = kJ) : kJ = t[58];
28728
28726
  let AJ;
28729
- t[63] === kJ ? AJ = t[64] : (AJ = (0, import_jsx_runtime.jsx)("span", {
28727
+ t[59] !== O || t[60] !== SJ || t[61] !== hJ ? (AJ = O ? O(hJ ?? null) : SJ(), t[59] = O, t[60] = SJ, t[61] = hJ, t[62] = AJ) : AJ = t[62];
28728
+ let MJ;
28729
+ t[63] === AJ ? MJ = t[64] : (MJ = (0, import_jsx_runtime.jsx)("span", {
28730
28730
  className: "truncate flex-1 min-w-0",
28731
- children: kJ
28732
- }), t[63] = kJ, t[64] = AJ);
28733
- let jJ;
28734
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28735
- className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28736
- }), t[65] = jJ) : jJ = t[65];
28731
+ children: AJ
28732
+ }), t[63] = AJ, t[64] = MJ);
28737
28733
  let NJ;
28738
- t[66] !== sJ || t[67] !== h || t[68] !== fJ || t[69] !== OJ || t[70] !== AJ ? (NJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28734
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28735
+ className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28736
+ }), t[65] = NJ) : NJ = t[65];
28737
+ let FJ;
28738
+ t[66] !== sJ || t[67] !== h || t[68] !== fJ || t[69] !== kJ || t[70] !== MJ ? (FJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28739
28739
  asChild: true,
28740
28740
  children: (0, import_jsx_runtime.jsxs)("button", {
28741
28741
  id: h,
28742
28742
  type: "button",
28743
- className: OJ,
28743
+ className: kJ,
28744
28744
  "aria-expanded": fJ,
28745
28745
  "aria-disabled": sJ,
28746
28746
  children: [
28747
- AJ,
28748
- jJ
28747
+ MJ,
28748
+ NJ
28749
28749
  ]
28750
28750
  })
28751
- }), t[66] = sJ, t[67] = h, t[68] = fJ, t[69] = OJ, t[70] = AJ, t[71] = NJ) : NJ = t[71];
28752
- let FJ;
28753
- t[72] !== iJ || t[73] !== y || t[74] !== M ? (FJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28751
+ }), t[66] = sJ, t[67] = h, t[68] = fJ, t[69] = kJ, t[70] = MJ, t[71] = FJ) : FJ = t[71];
28752
+ let IJ;
28753
+ t[72] !== iJ || t[73] !== y || t[74] !== M ? (IJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28754
28754
  placeholder: iJ,
28755
28755
  rootClassName: "px-1 h-8",
28756
28756
  autoFocus: true,
28757
28757
  value: M,
28758
28758
  onValueChange: y
28759
- }), t[72] = iJ, t[73] = y, t[74] = M, t[75] = FJ) : FJ = t[75];
28760
- let IJ;
28761
- t[76] === aJ ? IJ = t[77] : (IJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28762
- children: aJ
28763
- }), t[76] = aJ, t[77] = IJ);
28759
+ }), t[72] = iJ, t[73] = y, t[74] = M, t[75] = IJ) : IJ = t[75];
28764
28760
  let LJ;
28765
- t[78] !== n || t[79] !== wJ ? (LJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28761
+ t[76] === aJ ? LJ = t[77] : (LJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28762
+ children: aJ
28763
+ }), t[76] = aJ, t[77] = LJ);
28764
+ let RJ;
28765
+ t[78] !== n || t[79] !== wJ ? (RJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28766
28766
  value: wJ,
28767
28767
  children: n
28768
- }), t[78] = n, t[79] = wJ, t[80] = LJ) : LJ = t[80];
28769
- let RJ;
28770
- t[81] !== IJ || t[82] !== LJ ? (RJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28768
+ }), t[78] = n, t[79] = wJ, t[80] = RJ) : RJ = t[80];
28769
+ let zJ;
28770
+ t[81] !== LJ || t[82] !== RJ ? (zJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28771
28771
  className: "max-h-60 py-.5",
28772
28772
  children: [
28773
- IJ,
28774
- LJ
28773
+ LJ,
28774
+ RJ
28775
28775
  ]
28776
- }), t[81] = IJ, t[82] = LJ, t[83] = RJ) : RJ = t[83];
28777
- let zJ;
28778
- t[84] !== f || t[85] !== rJ || t[86] !== FJ || t[87] !== RJ ? (zJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28776
+ }), t[81] = LJ, t[82] = RJ, t[83] = zJ) : zJ = t[83];
28777
+ let BJ;
28778
+ t[84] !== f || t[85] !== rJ || t[86] !== IJ || t[87] !== zJ ? (BJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28779
28779
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28780
28780
  align: "start",
28781
28781
  children: (0, import_jsx_runtime.jsxs)(Command, {
28782
28782
  filter: f,
28783
28783
  shouldFilter: rJ,
28784
28784
  children: [
28785
- FJ,
28786
- RJ
28785
+ IJ,
28786
+ zJ
28787
28787
  ]
28788
28788
  })
28789
- }), t[84] = f, t[85] = rJ, t[86] = FJ, t[87] = RJ, t[88] = zJ) : zJ = t[88];
28790
- let BJ;
28791
- t[89] !== fJ || t[90] !== EJ || t[91] !== NJ || t[92] !== zJ ? (BJ = (0, import_jsx_runtime.jsxs)(Popover, {
28789
+ }), t[84] = f, t[85] = rJ, t[86] = IJ, t[87] = zJ, t[88] = BJ) : BJ = t[88];
28790
+ let VJ;
28791
+ t[89] !== fJ || t[90] !== DJ || t[91] !== FJ || t[92] !== BJ ? (VJ = (0, import_jsx_runtime.jsxs)(Popover, {
28792
28792
  open: fJ,
28793
- onOpenChange: EJ,
28793
+ onOpenChange: DJ,
28794
28794
  children: [
28795
- NJ,
28796
- zJ
28795
+ FJ,
28796
+ BJ
28797
28797
  ]
28798
- }), t[89] = fJ, t[90] = EJ, t[91] = NJ, t[92] = zJ, t[93] = BJ) : BJ = t[93];
28799
- let VJ;
28800
- t[94] !== oJ || t[95] !== i || t[96] !== sJ || t[97] !== d || t[98] !== bJ || t[99] !== $ || t[100] !== hJ ? (VJ = $ && oJ && (0, import_jsx_runtime.jsx)("div", {
28798
+ }), t[89] = fJ, t[90] = DJ, t[91] = FJ, t[92] = BJ, t[93] = VJ) : VJ = t[93];
28799
+ let HJ;
28800
+ t[94] !== oJ || t[95] !== i || t[96] !== sJ || t[97] !== d || t[98] !== bJ || t[99] !== $ || t[100] !== hJ ? (HJ = $ && oJ && (0, import_jsx_runtime.jsx)("div", {
28801
28801
  className: cn("flex flex-col gap-1 items-start", i),
28802
28802
  children: Array.isArray(hJ) && hJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28803
28803
  variant: "secondary",
@@ -28811,16 +28811,16 @@ ${n}` : "Please fix this error.";
28811
28811
  })
28812
28812
  ]
28813
28813
  }, String(e2)))
28814
- }), t[94] = oJ, t[95] = i, t[96] = sJ, t[97] = d, t[98] = bJ, t[99] = $, t[100] = hJ, t[101] = VJ) : VJ = t[101];
28815
- let HJ;
28816
- return t[102] !== A || t[103] !== BJ || t[104] !== VJ ? (HJ = (0, import_jsx_runtime.jsxs)("div", {
28817
- className: TJ,
28814
+ }), t[94] = oJ, t[95] = i, t[96] = sJ, t[97] = d, t[98] = bJ, t[99] = $, t[100] = hJ, t[101] = HJ) : HJ = t[101];
28815
+ let UJ;
28816
+ return t[102] !== A || t[103] !== VJ || t[104] !== HJ ? (UJ = (0, import_jsx_runtime.jsxs)("div", {
28817
+ className: EJ,
28818
28818
  ...A,
28819
28819
  children: [
28820
- BJ,
28821
- VJ
28820
+ VJ,
28821
+ HJ
28822
28822
  ]
28823
- }), t[102] = A, t[103] = BJ, t[104] = VJ, t[105] = HJ) : HJ = t[105], HJ;
28823
+ }), t[102] = A, t[103] = VJ, t[104] = HJ, t[105] = UJ) : UJ = t[105], UJ;
28824
28824
  };
28825
28825
  ComboboxItem = import_react.forwardRef((e, t) => {
28826
28826
  let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
@@ -30259,13 +30259,13 @@ ${n}` : "Please fix this error.";
30259
30259
  value: e2
30260
30260
  }, n2;
30261
30261
  }), i();
30262
- }, aJ = () => {
30262
+ }, oJ = () => {
30263
30263
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
30264
- }, oJ = !OPERATORS_WITHOUT_VALUE.has(E), sJ = OPERATORS_BY_TYPE[S], cJ = (0, import_react.useRef)(null), lJ = (0, import_react.useRef)(null);
30264
+ }, sJ = !OPERATORS_WITHOUT_VALUE.has(E), cJ = OPERATORS_BY_TYPE[S], lJ = (0, import_react.useRef)(null), uJ = (0, import_react.useRef)(null);
30265
30265
  return (0, import_react.useEffect)(() => {
30266
30266
  var _a2, _b;
30267
- let e2 = (_a2 = cJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30268
- e2 ? e2.focus() : (_b = lJ.current) == null ? void 0 : _b.focus();
30267
+ let e2 = (_a2 = lJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30268
+ e2 ? e2.focus() : (_b = uJ.current) == null ? void 0 : _b.focus();
30269
30269
  }, [
30270
30270
  S,
30271
30271
  E
@@ -30313,13 +30313,13 @@ ${n}` : "Please fix this error.";
30313
30313
  onValueChange: (e2) => J(e2),
30314
30314
  children: [
30315
30315
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30316
- ref: lJ,
30316
+ ref: uJ,
30317
30317
  id: s,
30318
30318
  className: "h-6 mb-1 bg-transparent",
30319
30319
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30320
30320
  }),
30321
30321
  (0, import_jsx_runtime.jsx)(SelectContent, {
30322
- children: sJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30322
+ children: cJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30323
30323
  value: e2,
30324
30324
  children: OPERATOR_LABELS[e2]
30325
30325
  }, e2))
@@ -30328,8 +30328,8 @@ ${n}` : "Please fix this error.";
30328
30328
  }, S)
30329
30329
  ]
30330
30330
  }),
30331
- oJ && (0, import_jsx_runtime.jsxs)("div", {
30332
- ref: cJ,
30331
+ sJ && (0, import_jsx_runtime.jsxs)("div", {
30332
+ ref: lJ,
30333
30333
  className: "flex flex-col gap-1",
30334
30334
  children: [
30335
30335
  (0, import_jsx_runtime.jsx)("label", {
@@ -30395,7 +30395,7 @@ ${n}` : "Please fix this error.";
30395
30395
  size: "icon",
30396
30396
  variant: "ghost",
30397
30397
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30398
- onClick: aJ,
30398
+ onClick: oJ,
30399
30399
  "aria-label": "Remove filter",
30400
30400
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30401
30401
  className: "h-3.5 w-3.5",
@@ -34063,7 +34063,7 @@ ${n}` : "Please fix this error.";
34063
34063
  filename: i2.filename
34064
34064
  };
34065
34065
  }, t[6] = e, t[7] = O);
34066
- let A = O, M, z, U, K, q, J, Q, $, rJ, iJ, aJ, oJ, sJ;
34066
+ let A = O, M, I, z, U, K, q, J, Q, $, rJ, iJ, aJ, oJ;
34067
34067
  if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
34068
34068
  let e2 = async (t2) => {
34069
34069
  let n2 = labelForDownloadFormat(t2);
@@ -34113,7 +34113,7 @@ ${n}` : "Please fix this error.";
34113
34113
  });
34114
34114
  });
34115
34115
  };
34116
- z = DropdownMenu, q = false, J = n, Q = i;
34116
+ I = DropdownMenu, K = false, q = n, J = i;
34117
34117
  let o2 = n ? false : void 0, s2 = c ? 0 : -1, f2;
34118
34118
  t[26] !== S || t[27] !== s2 ? (f2 = (0, import_jsx_runtime.jsx)("span", {
34119
34119
  tabIndex: s2,
@@ -34125,14 +34125,14 @@ ${n}` : "Please fix this error.";
34125
34125
  asChild: true,
34126
34126
  disabled: c,
34127
34127
  children: f2
34128
- }), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o2 || t[33] !== h || t[34] !== d ? ($ = (0, import_jsx_runtime.jsx)(Tooltip, {
34128
+ }), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o2 || t[33] !== h || t[34] !== d ? (Q = (0, import_jsx_runtime.jsx)(Tooltip, {
34129
34129
  content: d,
34130
34130
  open: o2,
34131
34131
  children: h
34132
- }), t[32] = o2, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], M = DropdownMenuContent, rJ = "bottom", iJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34132
+ }), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", rJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34133
34133
  className: "text-xs text-muted-foreground",
34134
34134
  children: "Download"
34135
- }), t[36] = aJ) : aJ = t[36], oJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34135
+ }), t[36] = iJ) : iJ = t[36], aJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34136
34136
  onSelect: () => {
34137
34137
  e2(t2.format);
34138
34138
  },
@@ -34153,10 +34153,10 @@ ${n}` : "Please fix this error.";
34153
34153
  ]
34154
34154
  })
34155
34155
  ]
34156
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (sJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34156
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34157
34157
  className: "text-xs text-muted-foreground",
34158
34158
  children: "Copy to clipboard"
34159
- }), t[37] = U, t[38] = sJ) : (U = t[37], sJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34159
+ }), t[37] = z, t[38] = oJ) : (z = t[37], oJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34160
34160
  onSelect: async () => {
34161
34161
  try {
34162
34162
  await a(e3.format);
@@ -34185,30 +34185,30 @@ ${n}` : "Please fix this error.";
34185
34185
  ]
34186
34186
  })
34187
34187
  ]
34188
- }, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = rJ, t[22] = iJ, t[23] = aJ, t[24] = oJ, t[25] = sJ;
34189
- } else M = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], rJ = t[21], iJ = t[22], aJ = t[23], oJ = t[24], sJ = t[25];
34190
- let cJ;
34191
- t[39] !== M || t[40] !== U || t[41] !== K || t[42] !== rJ || t[43] !== iJ || t[44] !== aJ || t[45] !== oJ || t[46] !== sJ ? (cJ = (0, import_jsx_runtime.jsxs)(M, {
34192
- side: rJ,
34193
- className: iJ,
34188
+ }, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = rJ, t[23] = iJ, t[24] = aJ, t[25] = oJ;
34189
+ } else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], rJ = t[22], iJ = t[23], aJ = t[24], oJ = t[25];
34190
+ let sJ;
34191
+ t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== rJ || t[44] !== iJ || t[45] !== aJ || t[46] !== oJ ? (sJ = (0, import_jsx_runtime.jsxs)(M, {
34192
+ side: $,
34193
+ className: rJ,
34194
34194
  children: [
34195
+ iJ,
34195
34196
  aJ,
34196
34197
  oJ,
34197
- sJ,
34198
- U,
34199
- K
34198
+ z,
34199
+ U
34200
34200
  ]
34201
- }), t[39] = M, t[40] = U, t[41] = K, t[42] = rJ, t[43] = iJ, t[44] = aJ, t[45] = oJ, t[46] = sJ, t[47] = cJ) : cJ = t[47];
34202
- let lJ;
34203
- return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== cJ ? (lJ = (0, import_jsx_runtime.jsxs)(z, {
34204
- modal: q,
34205
- open: J,
34206
- onOpenChange: Q,
34201
+ }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = rJ, t[44] = iJ, t[45] = aJ, t[46] = oJ, t[47] = sJ) : sJ = t[47];
34202
+ let cJ;
34203
+ return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== sJ ? (cJ = (0, import_jsx_runtime.jsxs)(I, {
34204
+ modal: K,
34205
+ open: q,
34206
+ onOpenChange: J,
34207
34207
  children: [
34208
- $,
34209
- cJ
34208
+ Q,
34209
+ sJ
34210
34210
  ]
34211
- }), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = cJ, t[54] = lJ) : lJ = t[54], lJ;
34211
+ }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = sJ, t[54] = cJ) : cJ = t[54], cJ;
34212
34212
  };
34213
34213
  function fetchJson(e) {
34214
34214
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34564,24 +34564,24 @@ ${n}` : "Please fix this error.";
34564
34564
  t[6] !== a || t[7] !== y ? (w = y && y.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = y, t[8] = w) : w = t[8];
34565
34565
  let O = w, A;
34566
34566
  t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
34567
- let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), q;
34568
- t[12] !== d || t[13] !== n ? (q = (e2) => {
34567
+ let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), K;
34568
+ t[12] !== d || t[13] !== n ? (K = (e2) => {
34569
34569
  n == null ? void 0 : n({
34570
34570
  prompt: `My code gives the following error:
34571
34571
 
34572
34572
  ${d}`,
34573
34573
  triggerImmediately: e2
34574
34574
  });
34575
- }, t[12] = d, t[13] = n, t[14] = q) : q = t[14];
34576
- let J = q, Q;
34577
- t[15] !== a || t[16] !== d || t[17] !== _ ? (Q = () => {
34575
+ }, t[12] = d, t[13] = n, t[14] = K) : K = t[14];
34576
+ let q = K, J;
34577
+ t[15] !== a || t[16] !== d || t[17] !== _ ? (J = () => {
34578
34578
  _({
34579
34579
  prompt: buildFixInChatPrompt(a, d)
34580
34580
  });
34581
- }, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
34582
- let $ = Q, rJ;
34583
- t[19] === z ? rJ = t[20] : (rJ = () => U(!z), t[19] = z, t[20] = rJ);
34584
- let iJ = z ? "Collapse traceback" : "Expand traceback", aJ;
34581
+ }, t[15] = a, t[16] = d, t[17] = _, t[18] = J) : J = t[18];
34582
+ let Q = J, $;
34583
+ t[19] === z ? $ = t[20] : ($ = () => U(!z), t[19] = z, t[20] = $);
34584
+ let rJ = z ? "Collapse traceback" : "Expand traceback", aJ;
34585
34585
  t[21] === z ? aJ = t[22] : (aJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34586
34586
  className: "h-3 w-3"
34587
34587
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
@@ -34593,31 +34593,31 @@ ${d}`,
34593
34593
  children: "Traceback"
34594
34594
  }), t[23] = oJ) : oJ = t[23];
34595
34595
  let sJ;
34596
- t[24] !== z || t[25] !== aJ || t[26] !== rJ || t[27] !== iJ ? (sJ = (0, import_jsx_runtime.jsxs)("button", {
34596
+ t[24] !== z || t[25] !== aJ || t[26] !== $ || t[27] !== rJ ? (sJ = (0, import_jsx_runtime.jsxs)("button", {
34597
34597
  type: "button",
34598
- onClick: rJ,
34598
+ onClick: $,
34599
34599
  "aria-expanded": z,
34600
- "aria-label": iJ,
34600
+ "aria-label": rJ,
34601
34601
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34602
34602
  children: [
34603
34603
  aJ,
34604
34604
  oJ
34605
34605
  ]
34606
- }), t[24] = z, t[25] = aJ, t[26] = rJ, t[27] = iJ, t[28] = sJ) : sJ = t[28];
34607
- let cJ;
34608
- t[29] !== s || t[30] !== z ? (cJ = z && (0, import_jsx_runtime.jsx)("div", {
34606
+ }), t[24] = z, t[25] = aJ, t[26] = $, t[27] = rJ, t[28] = sJ) : sJ = t[28];
34607
+ let lJ;
34608
+ t[29] !== s || t[30] !== z ? (lJ = z && (0, import_jsx_runtime.jsx)("div", {
34609
34609
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34610
34610
  children: s
34611
- }), t[29] = s, t[30] = z, t[31] = cJ) : cJ = t[31];
34612
- let lJ;
34613
- t[32] !== J || t[33] !== $ || t[34] !== M ? (lJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34614
- tooltip: "Fix with AI",
34615
- openPrompt: () => J(false),
34616
- applyAutofix: () => J(true),
34617
- openChat: $
34618
- }), t[32] = J, t[33] = $, t[34] = M, t[35] = lJ) : lJ = t[35];
34611
+ }), t[29] = s, t[30] = z, t[31] = lJ) : lJ = t[31];
34619
34612
  let uJ;
34620
- t[36] !== O || t[37] !== y ? (uJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34613
+ t[32] !== q || t[33] !== Q || t[34] !== M ? (uJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34614
+ tooltip: "Fix with AI",
34615
+ openPrompt: () => q(false),
34616
+ applyAutofix: () => q(true),
34617
+ openChat: Q
34618
+ }), t[32] = q, t[33] = Q, t[34] = M, t[35] = uJ) : uJ = t[35];
34619
+ let dJ;
34620
+ t[36] !== O || t[37] !== y ? (dJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34621
34621
  content: "Attach pdb to the exception point.",
34622
34622
  children: (0, import_jsx_runtime.jsxs)(Button, {
34623
34623
  size: "xs",
@@ -34634,9 +34634,9 @@ ${d}`,
34634
34634
  "Launch debugger"
34635
34635
  ]
34636
34636
  })
34637
- }), t[36] = O, t[37] = y, t[38] = uJ) : uJ = t[38];
34638
- let dJ;
34639
- t[39] !== d || t[40] !== i ? (dJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34637
+ }), t[36] = O, t[37] = y, t[38] = dJ) : dJ = t[38];
34638
+ let fJ;
34639
+ t[39] !== d || t[40] !== i ? (fJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34640
34640
  children: [
34641
34641
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34642
34642
  asChild: true,
@@ -34704,25 +34704,25 @@ ${d}`,
34704
34704
  ]
34705
34705
  })
34706
34706
  ]
34707
- }), t[39] = d, t[40] = i, t[41] = dJ) : dJ = t[41];
34708
- let fJ;
34709
- t[42] !== lJ || t[43] !== uJ || t[44] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
34707
+ }), t[39] = d, t[40] = i, t[41] = fJ) : fJ = t[41];
34708
+ let pJ;
34709
+ t[42] !== uJ || t[43] !== dJ || t[44] !== fJ ? (pJ = (0, import_jsx_runtime.jsxs)("div", {
34710
34710
  className: "flex gap-2",
34711
34711
  children: [
34712
- lJ,
34713
34712
  uJ,
34714
- dJ
34713
+ dJ,
34714
+ fJ
34715
34715
  ]
34716
- }), t[42] = lJ, t[43] = uJ, t[44] = dJ, t[45] = fJ) : fJ = t[45];
34717
- let pJ;
34718
- return t[46] !== sJ || t[47] !== cJ || t[48] !== fJ ? (pJ = (0, import_jsx_runtime.jsxs)("div", {
34716
+ }), t[42] = uJ, t[43] = dJ, t[44] = fJ, t[45] = pJ) : pJ = t[45];
34717
+ let mJ;
34718
+ return t[46] !== sJ || t[47] !== lJ || t[48] !== pJ ? (mJ = (0, import_jsx_runtime.jsxs)("div", {
34719
34719
  className: "flex flex-col gap-2 min-w-full w-fit",
34720
34720
  children: [
34721
34721
  sJ,
34722
- cJ,
34723
- fJ
34722
+ lJ,
34723
+ pJ
34724
34724
  ]
34725
- }), t[46] = sJ, t[47] = cJ, t[48] = fJ, t[49] = pJ) : pJ = t[49], pJ;
34725
+ }), t[46] = sJ, t[47] = lJ, t[48] = pJ, t[49] = mJ) : mJ = t[49], mJ;
34726
34726
  };
34727
34727
  function lastLine(e) {
34728
34728
  var _a2, _b;
@@ -36290,7 +36290,7 @@ ${d}`,
36290
36290
  return Logger.warn("Failed to get version from mount config"), null;
36291
36291
  }
36292
36292
  }
36293
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-dev31");
36293
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-dev33");
36294
36294
  showCodeInRunModeAtom = atom(true);
36295
36295
  atom(null);
36296
36296
  var import_compiler_runtime = require_compiler_runtime();