@marimo-team/islands 0.24.3-dev1 → 0.24.3-dev13

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.
Files changed (45) hide show
  1. package/dist/{ConnectedDataExplorerComponent-qIKbwYin.js → ConnectedDataExplorerComponent-C9OF_75w.js} +1 -1
  2. package/dist/{any-language-editor-CpTnK43-.js → any-language-editor-DmQ7dyCx.js} +1 -1
  3. package/dist/{chat-ui-DttQ-5Ut.js → chat-ui-CH7Gg-KH.js} +1300 -1300
  4. package/dist/{common-C7aHdgSC.js → common-DM9Wj-cL.js} +6484 -6276
  5. package/dist/{error-banner-WDhUzJyg.js → error-banner-CsXbEEjo.js} +160 -160
  6. package/dist/{formats-CJMVUfb3.js → formats-CslNOKy0.js} +1 -1
  7. package/dist/{html-to-image-BTYnN4ev.js → html-to-image-B3oyXfx7.js} +10 -9
  8. package/dist/main.js +257 -243
  9. package/dist/{mermaid-BsHdQeQf.js → mermaid-Bi23Ibnw.js} +1 -1
  10. package/dist/{process-output-CsALk6tp.js → process-output-ew3B35of.js} +2 -2
  11. package/dist/{reveal-component-DsDcTC8C.js → reveal-component-DjEi3rsH.js} +2 -2
  12. package/dist/{toDate-D-Rx3ux5.js → toDate-CpXBeDq0.js} +3 -2
  13. package/dist/{vega-component-D-IXRnlx.js → vega-component-ovBXgp91.js} +3 -3
  14. package/package.json +1 -1
  15. package/src/__mocks__/requests.ts +7 -2
  16. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
  17. package/src/components/data-table/column-visibility-dropdown.tsx +9 -3
  18. package/src/components/datasources/components.tsx +4 -2
  19. package/src/components/editor/chrome/components/feedback-button.tsx +10 -9
  20. package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +143 -0
  21. package/src/components/editor/chrome/panels/packages-panel.tsx +145 -51
  22. package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
  23. package/src/components/editor/code/readonly-diff.tsx +1 -1
  24. package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
  25. package/src/components/editor/file-tree/tree-actions.tsx +11 -14
  26. package/src/components/editor/package-alert.tsx +25 -1
  27. package/src/components/home/components.tsx +17 -0
  28. package/src/components/pages/gallery-page.tsx +2 -4
  29. package/src/components/pages/home-page.tsx +2 -4
  30. package/src/components/terminal/terminal.tsx +4 -4
  31. package/src/core/cells/pending-delete-service.ts +12 -16
  32. package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
  33. package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
  34. package/src/core/datasets/__tests__/data-source.test.ts +2 -0
  35. package/src/core/datasets/data-source-connections.ts +15 -10
  36. package/src/core/islands/__tests__/parse.test.ts +140 -7
  37. package/src/core/islands/parse.ts +20 -0
  38. package/src/core/packages/__tests__/useInstallPackage.test.tsx +47 -1
  39. package/src/core/packages/toast-components.tsx +26 -0
  40. package/src/core/packages/useInstallPackage.ts +7 -2
  41. package/src/core/runtime/__tests__/runtime.test.ts +11 -0
  42. package/src/core/runtime/runtime.ts +7 -2
  43. package/src/core/wasm/bridge.ts +1 -0
  44. package/src/plugins/layout/AccordionPlugin.tsx +7 -2
  45. package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
package/dist/main.js CHANGED
@@ -3,22 +3,22 @@ import { _ as a, c as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p,
3
3
  import { t as y } from "./react-DMWcHin-.js";
4
4
  import { t as b } from "./compiler-runtime-CAH9RLw2.js";
5
5
  import { n as x, r as S, t as C } from "./copy-CD7S58CY.js";
6
- import { At as w, B as T, Bn as E, Bt as D, C as O, Cn as k, Ct as A, Dn as j, Dt as M, En as N, Et as P, F, Ft as I, G as L, Gn as ee, Hn as te, I as R, It as ne, J as z, Jn as re, Jt as ie, K as ae, Kt as oe, L as se, Ln as ce, Mn as le, Mt as ue, Nn as de, Nt as fe, On as pe, Ot as me, P as he, Pn as ge, Q as _e, Qn as ve, R as ye, Rn as be, St as xe, Tn as Se, U as Ce, Un as we, Ut as Te, W as Ee, X as De, Xn as Oe, Xt as ke, Y as Ae, Yn as je, Z as Me, Zn as Ne, Zt as Pe, _ as Fe, a as Ie, an as Le, at as Re, b as ze, bn as Be, bt as Ve, cn as He, dn as Ue, dt as We, en as Ge, er as Ke, et as qe, g as Je, gn as Ye, i as Xe, in as Ze, ir as Qe, it as $e, j as et, jt as tt, k as nt, kn as rt, ln as it, lt as at, n as ot, o as st, on as ct, ot as lt, q as ut, qt as dt, rr as ft, sn as pt, st as mt, tr as ht, un as gt, ut as _t, v as vt, xn as yt, xt as bt, y as xt, yn as St, yt as Ct, z as wt, zn as Tt, zt as Et } from "./html-to-image-BTYnN4ev.js";
6
+ import { $n as w, An as T, B as E, Bn as D, Bt as O, C as k, Ct as A, Dn as j, Dt as M, En as N, F as P, Fn as F, G as I, I as L, It as ee, J as te, Jt as R, K as ne, Kn as z, L as re, Lt as ie, Mt as ae, Nn as oe, Nt as se, On as ce, Ot as le, P as ue, Pn as de, Pt as fe, Q as pe, Qn as me, Qt as he, R as ge, Rn as _e, Sn as ve, St as ye, U as be, Un as xe, Vn as Se, Vt as Ce, W as we, Wn as Te, Wt as Ee, X as De, Xn as Oe, Y as ke, Yn as Ae, Yt as je, Z as Me, Zn as Ne, Zt as Pe, _ as Fe, _n as Ie, a as Le, an as Re, ar as ze, at as Be, b as Ve, bn as He, bt as Ue, cn as We, ct as Ge, dn as Ke, dt as qe, et as Je, fn as Ye, ft as Xe, g as Ze, i as Qe, ir as $e, j as et, jt as tt, k as nt, kn as rt, kt as it, ln as at, n as ot, nr as st, o as ct, on as lt, ot as ut, q as dt, qt as ft, sn as pt, st as mt, tn as ht, tr as gt, un as _t, ut as vt, v as yt, wn as bt, wt as xt, xn as St, xt as Ct, y as wt, z as Tt, zn as Et } from "./html-to-image-B3oyXfx7.js";
7
7
  import { o as Dt, s as Ot, u as kt } from "./dist-3_o3T78I.js";
8
8
  import { D as At, E as jt, O as Mt, S as Nt, T as Pt, _ as Ft, a as It, c as Lt, d as Rt, f as zt, g as Bt, h as Vt, i as Ht, l as Ut, m as Wt, n as Gt, o as Kt, p as qt, r as Jt, s as Yt, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./spec-CutWdqo3.js";
9
- import { $ as nn, $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Cn as un, Ct as dn, D as fn, Dn as pn, Dt as mn, E as hn, En as gn, Et as _n, F as vn, Ft as yn, G as bn, Gt as xn, H as Sn, Ht as Cn, I as wn, It as Tn, J as En, Jt as Dn, K as On, Kt as kn, L as An, Lt as jn, M as Mn, N as Nn, Nt as Pn, O as Fn, Ot as In, P as Ln, Pt as Rn, Q as zn, Qt as Bn, R as Vn, Rt as Hn, S as Un, Sn as Wn, St as Gn, T as Kn, Tn as qn, Tt as Jn, U as Yn, Ut as Xn, V as Zn, Vt as Qn, W as $n, Wt as er, X as tr, Xt as nr, Y as rr, Yt as ir, Z as ar, Zt as or, _ as sr, _n as cr, _t as lr, a as ur, an as dr, at as fr, b as pr, bn as mr, bt as hr, cn as gr, dn as _r, dt as vr, en as yr, et as br, fn as xr, ft as Sr, g as Cr, gn as wr, gt as Tr, hn as Er, ht as Dr, i as Or, in as kr, it as Ar, j as jr, k as Mr, kt as Nr, l as Pr, ln as Fr, m as Ir, mn as Lr, mt as Rr, n as zr, nn as Br, nt as Vr, on as Hr, ot as Ur, pn as Wr, pt as Gr, q as Kr, qt as qr, rn as Jr, rt as Yr, s as Xr, sn as Zr, st as Qr, t as $r, tn as ei, tt as ti, un as ni, v as ri, vt as ii, w as ai, wn as oi, wt as si, x as ci, xn as li, xt as ui, y as di, yn as fi, yt as pi, z as mi, zt as hi } from "./common-C7aHdgSC.js";
9
+ import { $ as nn, $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Cn as un, Ct as dn, D as fn, Dn as pn, Dt as mn, E as hn, En as gn, Et as _n, F as vn, Ft as yn, G as bn, Gt as xn, H as Sn, Ht as Cn, I as wn, It as Tn, J as En, Jt as Dn, K as On, Kt as kn, L as An, Lt as jn, M as Mn, N as Nn, Nt as Pn, O as Fn, Ot as In, P as Ln, Pt as Rn, Q as zn, Qt as Bn, R as Vn, Rt as Hn, S as Un, Sn as Wn, St as Gn, T as Kn, Tn as qn, Tt as Jn, U as Yn, Ut as Xn, V as Zn, Vt as Qn, W as $n, Wt as er, X as tr, Xt as nr, Y as rr, Yt as ir, Z as ar, Zt as or, _ as sr, _n as cr, _t as lr, a as ur, an as dr, at as fr, b as pr, bn as mr, bt as hr, cn as gr, dn as _r, dt as vr, en as yr, et as br, fn as xr, ft as Sr, g as Cr, gn as wr, gt as Tr, hn as Er, ht as Dr, i as Or, in as kr, it as Ar, j as jr, k as Mr, kt as Nr, l as Pr, ln as Fr, m as Ir, mn as Lr, mt as Rr, n as zr, nn as Br, nt as Vr, on as Hr, ot as Ur, pn as Wr, pt as Gr, q as Kr, qt as qr, rn as Jr, rt as Yr, s as Xr, sn as Zr, st as Qr, t as $r, tn as ei, tt as ti, un as ni, v as ri, vt as ii, w as ai, wn as oi, wt as si, x as ci, xn as li, xt as ui, y as di, yn as fi, yt as pi, z as mi, zt as hi } from "./common-DM9Wj-cL.js";
10
10
  import { c as gi, i as _i, n as vi, o as yi, t as bi } from "./useLifecycle-B4RGlyf0.js";
11
11
  import { t as xi } from "./check-CHig47QV.js";
12
12
  import { A as Si, C as Ci, D as wi, E as Ti, F as Ei, I as Di, M as Oi, N as ki, P as Ai, R as ji, S as Mi, a as Ni, b as Pi, c as Fi, i as Ii, j as Li, l as Ri, n as zi, o as Bi, r as Vi, s as Hi, t as Ui, w as Wi, x as Gi } from "./select-3qHpFKF9.js";
13
13
  import { B as Ki, C as qi, Ft as Ji, J as Yi, Pt as Xi, S as Zi, Ut as Qi, W as $i, Y as ea, _ as ta, a as na, at as ra, bt as ia, c as aa, f as oa, ft as sa, g as ca, h as la, hn as ua, i as da, m as fa, mn as pa, n as ma, ot as ha, p as ga, r as _a, s as va, t as ya, v as ba, x as xa, z as Sa } from "./dropdown-menu-DhCfcscX.js";
14
- import { _ as Ca, c as wa, d as Ta, f as Ea, g as Da, h as Oa, m as ka, u as Aa, v as ja } from "./toDate-D-Rx3ux5.js";
15
- import { a as Ma, c as Na, d as Pa, f as Fa, i as Ia, l as La, n as Ra, o as za, r as Ba, s as Va, t as Ha } from "./process-output-CsALk6tp.js";
14
+ import { _ as Ca, c as wa, d as Ta, f as Ea, g as Da, h as Oa, m as ka, u as Aa, v as ja } from "./toDate-CpXBeDq0.js";
15
+ import { a as Ma, c as Na, d as Pa, f as Fa, i as Ia, l as La, n as Ra, o as za, r as Ba, s as Va, t as Ha } from "./process-output-ew3B35of.js";
16
16
  import { a as Ua, c as Wa, d as Ga, i as Ka, l as qa, r as Ja, u as Ya } from "./glide-utils-NShAPPtn.js";
17
17
  import { n as Xa, t as Za } from "./ErrorBoundary-CR-ZQN_c.js";
18
18
  import { t as Qa } from "./react-dom-C94wmq5w.js";
19
19
  import { t as $a } from "./jsx-runtime-CpoKNRgu.js";
20
20
  import { $ as eo, $a as to, $i as no, $n as ro, $o as io, $r as ao, $s as oo, $t as so, A as co, Aa as lo, Ac as uo, Ai as fo, An as po, Ao as mo, Ar as ho, As as go, At as _o, B as vo, Ba as yo, Bc as bo, Bi as xo, Bn as So, Bo as Co, Br as wo, Bs as To, Bt as Eo, C as Do, Ca as Oo, Cc as ko, Ci as Ao, Cn as B, Co as jo, Cr as Mo, Cs as No, Ct as Po, D as Fo, Da as Io, Dc as Lo, Di as Ro, Dn as zo, Do as Bo, Dr as Vo, Ds as Ho, Dt as Uo, E as Wo, Ea as Go, Ei as Ko, En as qo, Eo as Jo, Er as Yo, Es as Xo, Et as Zo, F as Qo, Fa as $o, Fi as es, Fn as ts, Fo as ns, Fr as rs, Fs as is, Ft as as, G as os, Ga as ss, Gc as cs, Gi as ls, Gn as us, Go as ds, Gr as fs, Gs as ps, Gt as ms, H as hs, Ha as gs, Hc as _s, Hi as vs, Hn as ys, Ho as bs, Hr as xs, Hs as Ss, Ht as Cs, I as ws, Ia as Ts, Ii as Es, In as V, Io as Ds, Ir as Os, Is as ks, It as As, J as js, Ja as Ms, Jc as Ns, Ji as Ps, Jn as Fs, Jo as Is, Jr as Ls, Js as Rs, Jt as zs, K as Bs, Ka as Vs, Ki as Hs, Kn as Us, Ko as Ws, Kr as Gs, Ks, Kt as qs, L as Js, La as Ys, Li as Xs, Ln as Zs, Lo as Qs, Lr as $s, Ls as ec, Lt as tc, M as nc, Ma as rc, Mi as ic, Mn as ac, Mo as oc, Mr as sc, Ms as cc, Mt as lc, N as uc, Na as dc, Nc as fc, Ni as pc, Nn as mc, No as hc, Nr as gc, Ns as _c, Nt as vc, O as yc, Oa as bc, Oi as xc, On as Sc, Oo as Cc, Or as wc, Os as Tc, Ot as Ec, P as Dc, Pa as Oc, Pi as kc, Pn as Ac, Po as jc, Pr as Mc, Ps as Nc, Pt as Pc, Q as Fc, Qa as Ic, Qi as Lc, Qn as Rc, Qo as zc, Qr as Bc, Qs as Vc, Qt as Hc, R as Uc, Ra as Wc, Rc as Gc, Ri as Kc, Rn as qc, Ro as Jc, Rr as Yc, Rs as Xc, Rt as Zc, S as Qc, Sa as $c, Sc as el, Si as tl, Sn as H, So as nl, Sr as rl, Ss as il, St as al, T as ol, Ta as sl, Ti as cl, Tn as ll, To as ul, Tr as dl, Ts as fl, Tt as U, U as pl, Ua as ml, Uc as hl, Ui as gl, Un as _l, Uo as vl, Ur as yl, Us as bl, Ut as xl, V as Sl, Va as Cl, Vc as wl, Vi as Tl, Vn as El, Vo as Dl, Vr as Ol, Vs as kl, Vt as Al, W as jl, Wa as Ml, Wc as Nl, Wi as Pl, Wn as Fl, Wo as Il, Wr as Ll, Ws as Rl, Wt as zl, X as Bl, Xa as Vl, Xi as Hl, Xn as Ul, Xo as Wl, Xr as Gl, Xs as Kl, Xt as ql, Y as Jl, Ya as Yl, Yc as Xl, Yi as Zl, Yn as Ql, Yo as $l, Yr as eu, Ys as tu, Yt as nu, Z as ru, Za as iu, Zi as au, Zn as ou, Zo as su, Zr as cu, Zs as lu, Zt as uu, _ as du, _a as fu, _c as pu, _i as mu, _n as hu, _o as gu, _r as _u, _s as vu, _t as yu, a as bu, aa as xu, ac as Su, ai as Cu, an as wu, ao as Tu, ar as Eu, as as Du, at as Ou, b as ku, ba as Au, bc as ju, bi as Mu, bn as Nu, bo as Pu, br as Fu, bs as Iu, bt as Lu, c as Ru, ca as zu, cc as Bu, ci as Vu, cn as Hu, co as Uu, cr as Wu, cs as Gu, ct as Ku, d as qu, da as Ju, dc as Yu, di as Xu, dn as Zu, do as Qu, dr as $u, ds as ed, dt as td, ea as nd, ec as rd, ei as id, en as ad, eo as od, er as sd, es as cd, et as ld, f as ud, fa as dd, fc as fd, fi as pd, fn as md, fo as hd, fr as gd, fs as _d, ft as vd, g as yd, ga as bd, gc as xd, gi as Sd, gn as Cd, go as wd, gr as Td, gs as Ed, gt as Dd, h as Od, ha as kd, hc as Ad, hi as jd, hn as Md, ho as Nd, hr as Pd, hs as Fd, ht as Id, i as Ld, ia as Rd, ic as zd, ii as Bd, in as Vd, io as Hd, ir as Ud, is as Wd, it as Gd, j as Kd, ja as qd, ji as Jd, jn as Yd, jo as Xd, jr as Zd, js as Qd, jt as $d, k as ef, ka as tf, kc as nf, ki as rf, kn as af, ko as of, kr as sf, ks as cf, kt as W, l as lf, la as uf, lc as df, li as ff, ln as pf, lo as mf, lr as hf, ls as gf, lt as _f, m as vf, ma as yf, mc as bf, mi as xf, mn as Sf, mo as Cf, mr as wf, ms as Tf, mt as Ef, n as Df, na as Of, nc as kf, ni as Af, nn as jf, no as Mf, nr as Nf, ns as Pf, nt as Ff, o as If, oa as Lf, oc as Rf, oi as zf, on as Bf, oo as Vf, or as Hf, os as Uf, ot as Wf, p as Gf, pa as Kf, pc as G, pi as qf, pn as Jf, po as Yf, pr as Xf, ps as Zf, pt as Qf, q as $f, qa as ep, qc as tp, qi as np, qn as rp, qo as ip, qr as ap, qs as op, qt as sp, r as cp, ra as lp, rc as up, ri as dp, rn as fp, ro as pp, rr as mp, rs as hp, rt as gp, s as _p, sa as vp, sc as yp, si as bp, sn as xp, so as Sp, sr as Cp, ss as wp, st as Tp, t as Ep, ta as Dp, tc as Op, ti as kp, tn as Ap, to as jp, tr as Mp, ts as Np, tt as Pp, u as Fp, ua as Ip, uc as Lp, ui as Rp, un as zp, uo as Bp, ur as Vp, us as Hp, ut as Up, v as Wp, va as Gp, vc as Kp, vi as qp, vn as Jp, vo as Yp, vr as Xp, vs as Zp, vt as Qp, w as $p, wa as em, wi as tm, wn as nm, wo as rm, wr as im, ws as am, wt as om, x as sm, xa as cm, xc as lm, xi as um, xn as dm, xo as fm, xr as pm, xs as mm, xt as hm, y as gm, ya as _m, yc as vm, yi as ym, yn as bm, yo as xm, yr as Sm, ys as Cm, yt as wm, z as Tm, za as Em, zi as Dm, zn as Om, zo as km, zr as Am, zs as jm, zt as Mm } from "./schemas-DzK6U94N.js";
21
- import { i as Nm, n as Pm, r as Fm, t as Im } from "./error-banner-WDhUzJyg.js";
21
+ import { i as Nm, n as Pm, r as Fm, t as Im } from "./error-banner-CsXbEEjo.js";
22
22
  import { t as Lm } from "./label-lwzzBHUW.js";
23
23
  import { a as Rm, i as zm, n as Bm, o as Vm, r as Hm, t as Um } from "./tooltip-Dt77sBeT.js";
24
24
  import { f as Wm } from "./extends-BPB6_lTK.js";
@@ -36,7 +36,7 @@ import { n as Sh } from "./dist-CRjAdnqF.js";
36
36
  import { i as Ch } from "./dist-BrQGcfQ9.js";
37
37
  import { n as wh, t as Th } from "./esm-CesmlDrs.js";
38
38
  import { t as Eh } from "./useAsyncData-CH6-CgJF.js";
39
- import { i as Dh, n as Oh, r as kh } from "./formats-CJMVUfb3.js";
39
+ import { i as Dh, n as Oh, r as kh } from "./formats-CslNOKy0.js";
40
40
  import { A as Ah, j as jh } from "./vega-loader.browser-DEggZzni.js";
41
41
  import { a as Mh, n as Nh } from "./loader-VZ__bv4g.js";
42
42
  import { t as Ph } from "./useDeepCompareMemoize-JC87C_jO.js";
@@ -8285,7 +8285,7 @@ var cC = /* @__PURE__ */ r({
8285
8285
  el(dx());
8286
8286
  //#endregion
8287
8287
  //#region ../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
8288
- var lC = cC, uC = /* @__PURE__ */ e(Ge(), 1), dC = Oa(), fC = (e) => e.type === "checkbox", pC = (e) => e instanceof Date, mC = (e) => e == null, hC = (e) => typeof e == "object", gC = (e) => !mC(e) && !Array.isArray(e) && hC(e) && !pC(e), _C = (e) => gC(e) && e.target ? fC(e.target) ? e.target.checked : e.target.value : e, vC = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, yC = (e, t) => e.has(vC(t)), bC = (e) => {
8288
+ var lC = cC, uC = /* @__PURE__ */ e(ht(), 1), dC = Oa(), fC = (e) => e.type === "checkbox", pC = (e) => e instanceof Date, mC = (e) => e == null, hC = (e) => typeof e == "object", gC = (e) => !mC(e) && !Array.isArray(e) && hC(e) && !pC(e), _C = (e) => gC(e) && e.target ? fC(e.target) ? e.target.checked : e.target.value : e, vC = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, yC = (e, t) => e.has(vC(t)), bC = (e) => {
8289
8289
  let t = e.constructor && e.constructor.prototype;
8290
8290
  return gC(t) && t.hasOwnProperty("isPrototypeOf");
8291
8291
  }, xC = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
@@ -9687,7 +9687,7 @@ var bT = (e) => {
9687
9687
  let a;
9688
9688
  t[0] === n ? a = t[1] : (a = l("stroke-[1.8px]", n), t[0] = n, t[1] = a);
9689
9689
  let o;
9690
- t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, J.jsx)(ft, { className: a }), t[2] = a, t[3] = o);
9690
+ t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, J.jsx)($e, { className: a }), t[2] = a, t[3] = o);
9691
9691
  let s;
9692
9692
  return t[4] !== i || t[5] !== o ? (s = /* @__PURE__ */ (0, J.jsx)(Um, {
9693
9693
  content: i,
@@ -10050,7 +10050,7 @@ function HT({ schema: e, form: t, path: n, renderers: r }) {
10050
10050
  name: n,
10051
10051
  render: ({ field: e }) => /* @__PURE__ */ (0, J.jsxs)(hT, { children: [/* @__PURE__ */ (0, J.jsxs)("div", {
10052
10052
  className: l("flex flex-row gap-2", a ? "items-start" : "items-center"),
10053
- children: [/* @__PURE__ */ (0, J.jsx)(_T, { children: /* @__PURE__ */ (0, J.jsx)(xe, {
10053
+ children: [/* @__PURE__ */ (0, J.jsx)(_T, { children: /* @__PURE__ */ (0, J.jsx)(A, {
10054
10054
  "data-testid": "marimo-plugin-data-frames-boolean-checkbox",
10055
10055
  checked: e.value,
10056
10056
  onCheckedChange: e.onChange,
@@ -10262,7 +10262,7 @@ var UT = (e) => {
10262
10262
  form: r,
10263
10263
  path: `${i}[${t}]`,
10264
10264
  renderers: o
10265
- }), v && /* @__PURE__ */ (0, J.jsx)(te, {
10265
+ }), v && /* @__PURE__ */ (0, J.jsx)(xe, {
10266
10266
  className: "w-4 h-4 ml-2 my-1 text-muted-foreground hover:text-destructive cursor-pointer absolute right-0 top-5",
10267
10267
  onClick: () => {
10268
10268
  h(t);
@@ -10670,18 +10670,18 @@ function oE(e) {
10670
10670
  return typeof e == "function";
10671
10671
  }
10672
10672
  function sE(e) {
10673
- return ue(e) && (aE(e.render) || oE(e.initialize));
10673
+ return se(e) && (aE(e.render) || oE(e.initialize));
10674
10674
  }
10675
10675
  function cE(e) {
10676
10676
  return typeof e == "function" || sE(e);
10677
10677
  }
10678
10678
  function lE(e) {
10679
- return ue(e) && cE(e.default);
10679
+ return se(e) && cE(e.default);
10680
10680
  }
10681
10681
  var uE = /* @__PURE__ */ new Set(), dE = /* @__PURE__ */ new WeakMap();
10682
10682
  function fE(e, t) {
10683
10683
  if (lE(e)) return e.default;
10684
- if (!ue(e) || e.default !== void 0) return null;
10684
+ if (!se(e) || e.default !== void 0) return null;
10685
10685
  let n = aE(e.render) ? e.render : void 0, r = oE(e.initialize) ? e.initialize : void 0;
10686
10686
  if (n === void 0 && r === void 0) return null;
10687
10687
  let i = dE.get(e);
@@ -10694,8 +10694,8 @@ function fE(e, t) {
10694
10694
  return dE.set(e, a), a;
10695
10695
  }
10696
10696
  function pE(e, t) {
10697
- let n = "https://anywidget.dev/en/afm/", r = ue(e) && tt(e, "render"), i = ue(e) && tt(e, "initialize");
10698
- if (ue(e) && e.default !== void 0) return /* @__PURE__ */ Error(`Anywidget module at ${t} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${n}`);
10697
+ let n = "https://anywidget.dev/en/afm/", r = se(e) && ae(e, "render"), i = se(e) && ae(e, "initialize");
10698
+ if (se(e) && e.default !== void 0) return /* @__PURE__ */ Error(`Anywidget module at ${t} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${n}`);
10699
10699
  if (r || i) {
10700
10700
  let e = [r ? "`render`" : null, i ? "`initialize`" : null].filter(Boolean).join(" and "), a = [r ? "render" : null, i ? "initialize" : null].filter((e) => e !== null), o = `export default { ${a.join(", ")} }`, s = a.length === 1 ? `export function ${a[0]}` : "named export function ...";
10701
10701
  return /* @__PURE__ */ Error(`Anywidget module at ${t} uses named exports (${e}). Per the AFM spec, use a default export instead: \`${o}\` (not \`${s}\`). See ${n}`);
@@ -10729,7 +10729,7 @@ function vE(e) {
10729
10729
  return typeof e != "string" || e.length === 0 ? !1 : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || bE(e));
10730
10730
  }
10731
10731
  function yE() {
10732
- return $m.get(ye) || se();
10732
+ return $m.get(ge) || re();
10733
10733
  }
10734
10734
  function bE(e) {
10735
10735
  return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,") ? yE() : !1;
@@ -11112,7 +11112,7 @@ function PE(e) {
11112
11112
  //#endregion
11113
11113
  //#region src/plugins/impl/anywidget/registry.ts
11114
11114
  function FE() {
11115
- let e = $m.get(w).mode;
11115
+ let e = $m.get(tt).mode;
11116
11116
  return e === "edit" || e === "present";
11117
11117
  }
11118
11118
  var IE = new class {
@@ -11192,7 +11192,7 @@ async function LE(e, t) {
11192
11192
  return;
11193
11193
  }
11194
11194
  let { state: r, buffers: i, bufferPaths: a } = NE(t);
11195
- await Le().sendModelValue({
11195
+ await lt().sendModelValue({
11196
11196
  modelId: n,
11197
11197
  message: {
11198
11198
  method: "update",
@@ -11207,7 +11207,7 @@ async function LE(e, t) {
11207
11207
  c.debug(`[Model] sendCustomMessage suppressed for model=${n} (signal aborted)`);
11208
11208
  return;
11209
11209
  }
11210
- await Le().sendModelValue({
11210
+ await lt().sendModelValue({
11211
11211
  modelId: n,
11212
11212
  message: {
11213
11213
  method: "custom",
@@ -11244,7 +11244,7 @@ async function LE(e, t) {
11244
11244
  default: Mi(r);
11245
11245
  }
11246
11246
  }
11247
- oe(IE, "WIDGET_REGISTRY");
11247
+ ft(IE, "WIDGET_REGISTRY");
11248
11248
  //#endregion
11249
11249
  //#region src/components/ui/navigation.tsx
11250
11250
  var RE = q.forwardRef((e, t) => {
@@ -11295,7 +11295,7 @@ var VE = Jy, HE = g("group inline-flex rounded-md bg-background px-4 py-2 text-l
11295
11295
  let o;
11296
11296
  n[4] === i ? o = n[5] : (o = l(HE(), "group", i), n[4] = i, n[5] = o);
11297
11297
  let s;
11298
- n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, J.jsx)(O, {
11298
+ n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, J.jsx)(k, {
11299
11299
  className: "relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
11300
11300
  "aria-hidden": "true"
11301
11301
  }), n[6] = s) : s = n[6];
@@ -11397,7 +11397,7 @@ var ZE = (e) => {
11397
11397
  let t = (0, Y.c)(23), { item: n, preserveQueryParams: r, target: i } = e, a = q.useRef(null), [o, s] = q.useState(!1), c;
11398
11398
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = (e) => s(e !== ""), t[0] = c) : c = t[0];
11399
11399
  let l;
11400
- t[1] === n.label ? l = t[2] : (l = F({ html: n.label }), t[1] = n.label, t[2] = l);
11400
+ t[1] === n.label ? l = t[2] : (l = P({ html: n.label }), t[1] = n.label, t[2] = l);
11401
11401
  let u;
11402
11402
  t[3] === l ? u = t[4] : (u = /* @__PURE__ */ (0, J.jsx)(UE, {
11403
11403
  ref: a,
@@ -11410,7 +11410,7 @@ var ZE = (e) => {
11410
11410
  label: e.label,
11411
11411
  href: r(e.href),
11412
11412
  target: i(e.href),
11413
- children: e.description && F({ html: e.description })
11413
+ children: e.description && P({ html: e.description })
11414
11414
  }, e.label), t[9] = r, t[10] = i, t[11] = e) : e = t[11], d = n.items.map(e), t[5] = n.items, t[6] = r, t[7] = i, t[8] = d;
11415
11415
  } else d = t[8];
11416
11416
  let f;
@@ -11504,7 +11504,7 @@ var ZE = (e) => {
11504
11504
  target: a
11505
11505
  }, e.label) : /* @__PURE__ */ (0, J.jsxs)(VE, { children: [/* @__PURE__ */ (0, J.jsx)("div", {
11506
11506
  className: "inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-base font-medium text-muted-foreground/80 tracking-wide font-semibold",
11507
- children: F({ html: e.label })
11507
+ children: P({ html: e.label })
11508
11508
  }), /* @__PURE__ */ (0, J.jsx)(BE, {
11509
11509
  className: "ml-4 auto-collapse-nav",
11510
11510
  orientation: r,
@@ -11512,13 +11512,13 @@ var ZE = (e) => {
11512
11512
  href: o(e.href),
11513
11513
  target: a(e.href),
11514
11514
  className: HE({ orientation: r }),
11515
- children: F({ html: e.label })
11515
+ children: P({ html: e.label })
11516
11516
  }, e.label), e.description) }, e.label))
11517
11517
  })] }, e.label) : /* @__PURE__ */ (0, J.jsx)(VE, { children: /* @__PURE__ */ (0, J.jsx)(GE, {
11518
11518
  href: o(e.href),
11519
11519
  target: a(e.href),
11520
11520
  className: HE({ orientation: r }),
11521
- children: F({ html: e.label })
11521
+ children: P({ html: e.label })
11522
11522
  }) }, e.label), t[0] = r, t[1] = s);
11523
11523
  let c = s, l;
11524
11524
  if (t[2] !== n || t[3] !== c) {
@@ -11542,7 +11542,7 @@ var ZE = (e) => {
11542
11542
  let s;
11543
11543
  n[5] === i ? s = n[6] : (s = l("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", i), n[5] = i, n[6] = s);
11544
11544
  let c;
11545
- n[7] === a ? c = n[8] : (c = F({ html: a }), n[7] = a, n[8] = c);
11545
+ n[7] === a ? c = n[8] : (c = P({ html: a }), n[7] = a, n[8] = c);
11546
11546
  let u;
11547
11547
  n[9] === c ? u = n[10] : (u = /* @__PURE__ */ (0, J.jsx)("div", {
11548
11548
  className: "text-base font-medium leading-none",
@@ -11568,7 +11568,7 @@ rD.displayName = "ListItem";
11568
11568
  function iD(e, t) {
11569
11569
  return t ? /* @__PURE__ */ (0, J.jsx)(Um, {
11570
11570
  delayDuration: 200,
11571
- content: F({ html: t }),
11571
+ content: P({ html: t }),
11572
11572
  children: e
11573
11573
  }) : e;
11574
11574
  }
@@ -11611,7 +11611,7 @@ var cD = class e {
11611
11611
  let n = this.entries.get(e);
11612
11612
  n === void 0 ? this.entries.set(e, {
11613
11613
  objectId: e,
11614
- value: yt(t, this),
11614
+ value: ve(t, this),
11615
11615
  elements: /* @__PURE__ */ new Set([t])
11616
11616
  }) : n.elements.add(t);
11617
11617
  }
@@ -11676,8 +11676,8 @@ var cD = class e {
11676
11676
  detail: { objectId: t }
11677
11677
  })));
11678
11678
  }
11679
- }, lD = cD.INSTANCE, uD = new Et("function-call-result", async (e, t) => {
11680
- await Le().sendFunctionRequest({
11679
+ }, lD = cD.INSTANCE, uD = new O("function-call-result", async (e, t) => {
11680
+ await lt().sendFunctionRequest({
11681
11681
  functionCallId: e,
11682
11682
  ...t
11683
11683
  });
@@ -14551,7 +14551,7 @@ function zj(e) {
14551
14551
  }
14552
14552
  //#endregion
14553
14553
  //#region src/plugins/core/BadPlugin.tsx
14554
- var Bj = Tt, Vj = ce, Hj = be, Uj = E, Wj = (e) => {
14554
+ var Bj = D, Vj = _e, Hj = Et, Uj = Se, Wj = (e) => {
14555
14555
  let t = (0, Y.c)(16), { error: n, badData: r, shadowRoot: i } = e;
14556
14556
  if (n instanceof Pd) {
14557
14557
  let e;
@@ -14621,10 +14621,10 @@ function Kj(e) {
14621
14621
  //#region src/plugins/core/registerReactComponent.tsx
14622
14622
  var qj = 3, Jj = 150;
14623
14623
  function Yj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
14624
- let [s, l] = (0, q.useState)(n), [u, d] = (0, q.useState)(r()), { theme: f } = ah(), [p, m] = (0, q.useState)(() => t.validator.safeParse(Be(e))), [h, g] = (0, q.useState)(0);
14624
+ let [s, l] = (0, q.useState)(n), [u, d] = (0, q.useState)(r()), { theme: f } = ah(), [p, m] = (0, q.useState)(() => t.validator.safeParse(St(e))), [h, g] = (0, q.useState)(0);
14625
14625
  (0, q.useImperativeHandle)(i, () => ({
14626
14626
  reset: () => {
14627
- d(r()), m(t.validator.safeParse(Be(e))), g((e) => e + 1);
14627
+ d(r()), m(t.validator.safeParse(St(e))), g((e) => e + 1);
14628
14628
  },
14629
14629
  setChildren: (e) => {
14630
14630
  l(e);
@@ -14633,7 +14633,7 @@ function Yj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
14633
14633
  t.detail.element === e && d(t.detail.value);
14634
14634
  }), (0, q.useEffect)(() => {
14635
14635
  let n = new MutationObserver((n) => {
14636
- n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(Be(e)));
14636
+ n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(St(e)));
14637
14637
  });
14638
14638
  return n.observe(e, { attributes: !0 }), () => {
14639
14639
  n.disconnect();
@@ -14651,10 +14651,10 @@ function Yj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
14651
14651
  let { input: t, output: a } = i;
14652
14652
  n[r] = async (...n) => {
14653
14653
  mh(n.length <= 1, `Plugin functions only supports a single argument. Called ${r}`);
14654
- let i = Ta(), o = k.findElementThroughShadowDOMs(e)?.id, s = o ? k.parse(o) : null;
14654
+ let i = Ta(), o = bt.findElementThroughShadowDOMs(e)?.id, s = o ? bt.parse(o) : null;
14655
14655
  if (s && !i) {
14656
- let e = $m.get(ut), t = e.cellRuntime[s], n = e.cellData[s];
14657
- if (He({
14656
+ let e = $m.get(dt), t = e.cellRuntime[s], n = e.cellData[s];
14657
+ if (at({
14658
14658
  executionTime: t.runElapsedTimeMs ?? n.lastExecutionTime,
14659
14659
  status: t.status,
14660
14660
  errored: t.errored,
@@ -14701,7 +14701,7 @@ function Yj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
14701
14701
  functions: v
14702
14702
  }) })
14703
14703
  })
14704
- }) }) : Gj(p.error, yh.mapValues(e.dataset, (e) => typeof e == "string" ? St(e) : e), e.shadowRoot);
14704
+ }) }) : Gj(p.error, yh.mapValues(e.dataset, (e) => typeof e == "string" ? He(e) : e), e.shadowRoot);
14705
14705
  }
14706
14706
  var Xj = q.forwardRef(Yj), Zj = /* @__PURE__ */ new Map(), Qj = "__custom_marimo_element__";
14707
14707
  function $j(e) {
@@ -14736,16 +14736,16 @@ function $j(e) {
14736
14736
  return !1;
14737
14737
  }
14738
14738
  reset() {
14739
- this.dispatchEvent(Na(St(this.dataset.initialValue), this)), this.rerender();
14739
+ this.dispatchEvent(Na(He(this.dataset.initialValue), this)), this.rerender();
14740
14740
  }
14741
14741
  rerender() {
14742
14742
  this.pluginRef.current?.reset();
14743
14743
  }
14744
14744
  getChildren() {
14745
- return this.children.length === 0 ? null : this.children.length === 1 ? F({
14745
+ return this.children.length === 0 ? null : this.children.length === 1 ? P({
14746
14746
  html: this.innerHTML,
14747
14747
  alwaysSanitizeHtml: !1
14748
- }) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, J.jsx)(q.Fragment, { children: F({
14748
+ }) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, J.jsx)(q.Fragment, { children: P({
14749
14749
  html: e.outerHTML,
14750
14750
  alwaysSanitizeHtml: !1
14751
14751
  }) }, t));
@@ -14757,7 +14757,7 @@ function $j(e) {
14757
14757
  hostElement: this,
14758
14758
  plugin: e,
14759
14759
  ref: this.pluginRef,
14760
- getInitialValue: () => yt(this, cD.INSTANCE),
14760
+ getInitialValue: () => ve(this, cD.INSTANCE),
14761
14761
  children: this.getChildren()
14762
14762
  }) })
14763
14763
  }));
@@ -14828,7 +14828,7 @@ function iM() {
14828
14828
  inputListener = a.NOOP;
14829
14829
  init() {
14830
14830
  if (this.initialized) return;
14831
- let e = Se.parseOrThrow(this);
14831
+ let e = N.parseOrThrow(this);
14832
14832
  this.inputListener = (n) => {
14833
14833
  e !== null && n.detail.element === this.firstElementChild && (lD.has(e) || lD.registerInstance(e, t), lD.broadcastValueUpdate(t, e, n.detail.value));
14834
14834
  };
@@ -14849,14 +14849,14 @@ function iM() {
14849
14849
  }
14850
14850
  connectedCallback() {
14851
14851
  if (this.init(), this.initialized) {
14852
- let e = Se.parseOrThrow(this), t = this.firstElementChild;
14852
+ let e = N.parseOrThrow(this), t = this.firstElementChild;
14853
14853
  lD.registerInstance(e, t), document.addEventListener(Ma.TYPE, this.inputListener);
14854
14854
  }
14855
14855
  }
14856
14856
  disconnectedCallback() {
14857
14857
  if (this.initialized) {
14858
14858
  document.removeEventListener(Ma.TYPE, this.inputListener);
14859
- let e = Se.parseOrThrow(this);
14859
+ let e = N.parseOrThrow(this);
14860
14860
  lD.removeInstance(e, this.firstElementChild);
14861
14861
  }
14862
14862
  }
@@ -14865,7 +14865,7 @@ function iM() {
14865
14865
  tM(e) ? e.reset() : c.error("[marimo-ui-element] first child must have a reset method");
14866
14866
  }
14867
14867
  static get observedAttributes() {
14868
- return [pe];
14868
+ return [rt];
14869
14869
  }
14870
14870
  attributeChangedCallback(e, t, n) {
14871
14871
  if (this.initialized && e === "random-id" && t !== n) {
@@ -14879,16 +14879,16 @@ function iM() {
14879
14879
  }
14880
14880
  function aM(e) {
14881
14881
  if (!e) return null;
14882
- if (e.nodeName === rM) return Se.parseOrThrow(e);
14882
+ if (e.nodeName === rM) return N.parseOrThrow(e);
14883
14883
  let t = e.parentElement;
14884
- return t?.nodeName === rM ? Se.parseOrThrow(t) : null;
14884
+ return t?.nodeName === rM ? N.parseOrThrow(t) : null;
14885
14885
  }
14886
14886
  function oM(e) {
14887
14887
  return e.tagName === rM;
14888
14888
  }
14889
14889
  //#endregion
14890
14890
  //#region src/components/editor/renderers/vertical-layout/sidebar/state.ts
14891
- var sM = le({ isOpen: !0 }, (e, t) => {
14891
+ var sM = oe({ isOpen: !0 }, (e, t) => {
14892
14892
  if (!t) return e;
14893
14893
  switch (t.type) {
14894
14894
  case "toggle": return {
@@ -14954,7 +14954,7 @@ function lM() {
14954
14954
  }
14955
14955
  }
14956
14956
  getContents() {
14957
- return F({ html: this.innerHTML });
14957
+ return P({ html: this.innerHTML });
14958
14958
  }
14959
14959
  });
14960
14960
  }
@@ -15221,7 +15221,7 @@ var bM = Qp([
15221
15221
  t || (n.stopPropagation(), e.setValue((e) => e + 1));
15222
15222
  },
15223
15223
  type: "submit",
15224
- children: F({ html: r })
15224
+ children: P({ html: r })
15225
15225
  }), c = o && !a ? /* @__PURE__ */ (0, J.jsx)(pM, { shortcut: o }) : a;
15226
15226
  return c ? /* @__PURE__ */ (0, J.jsx)(Um, {
15227
15227
  content: c,
@@ -15261,7 +15261,7 @@ var CM = (e) => {
15261
15261
  let d;
15262
15262
  t[8] === o ? d = t[9] : (d = l("font-prose", o), t[8] = o, t[9] = d);
15263
15263
  let f;
15264
- t[10] === n ? f = t[11] : (f = F({ html: n }), t[10] = n, t[11] = f);
15264
+ t[10] === n ? f = t[11] : (f = P({ html: n }), t[10] = n, t[11] = f);
15265
15265
  let p;
15266
15266
  t[12] !== c || t[13] !== d || t[14] !== f ? (p = /* @__PURE__ */ (0, J.jsx)("div", {
15267
15267
  part: "label",
@@ -15295,7 +15295,7 @@ var CM = (e) => {
15295
15295
  e !== "indeterminate" && r(e);
15296
15296
  }, t[0] = r, t[1] = a);
15297
15297
  let o = a, s = (0, q.useId)(), c;
15298
- t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, J.jsx)(xe, {
15298
+ t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, J.jsx)(A, {
15299
15299
  "data-testid": "marimo-plugin-checkbox",
15300
15300
  checked: n,
15301
15301
  onCheckedChange: o,
@@ -15365,7 +15365,7 @@ var CM = (e) => {
15365
15365
  t[20] === Symbol.for("react.memo_cache_sentinel") ? (n = [], t[20] = n) : n = t[20], x = n;
15366
15366
  }
15367
15367
  let S = x, C = `cm *:outline-hidden border rounded overflow-hidden ${r}`, w = r === "dark" ? "dark" : "light", T = !e.disabled, E;
15368
- t[21] !== S || t[22] !== g || t[23] !== o || t[24] !== a || t[25] !== i || t[26] !== e.language || t[27] !== e.placeholder || t[28] !== e.showCopyButton || t[29] !== C || t[30] !== w || t[31] !== T ? (E = /* @__PURE__ */ (0, J.jsx)(Xe, {
15368
+ t[21] !== S || t[22] !== g || t[23] !== o || t[24] !== a || t[25] !== i || t[26] !== e.language || t[27] !== e.placeholder || t[28] !== e.showCopyButton || t[29] !== C || t[30] !== w || t[31] !== T ? (E = /* @__PURE__ */ (0, J.jsx)(Qe, {
15369
15369
  className: C,
15370
15370
  theme: w,
15371
15371
  minHeight: i,
@@ -15392,7 +15392,7 @@ var CM = (e) => {
15392
15392
  output: t
15393
15393
  };
15394
15394
  } };
15395
- } }, kM = q.lazy(() => import("./chat-ui-DttQ-5Ut.js").then((e) => ({ default: e.Chatbot }))), AM = U(B({
15395
+ } }, kM = q.lazy(() => import("./chat-ui-CH7Gg-KH.js").then((e) => ({ default: e.Chatbot }))), AM = U(B({
15396
15396
  id: V(),
15397
15397
  role: Qp([
15398
15398
  "system",
@@ -16291,9 +16291,9 @@ function tP(e) {
16291
16291
  //#endregion
16292
16292
  //#region src/components/editor/cell/useAddCell.ts
16293
16293
  function nP() {
16294
- let e = (0, Y.c)(4), t = Xm(nh), n = _t(), { createNewCell: r } = Me(), i;
16294
+ let e = (0, Y.c)(4), t = Xm(nh), n = qe(), { createNewCell: r } = Me(), i;
16295
16295
  return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
16296
- e.includes("alt") && We({
16296
+ e.includes("alt") && Xe({
16297
16297
  autoInstantiate: t,
16298
16298
  createNewCell: r,
16299
16299
  fromCellId: n
@@ -17564,7 +17564,7 @@ var iP = [rP({
17564
17564
  borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
17565
17565
  },
17566
17566
  ".mo-cm-reactive-reference-hover": { cursor: "pointer" }
17567
- })], oP = [A(), uh.lineWrapping], sP = [xh(), uh.lineWrapping], cP = [Sh(), uh.lineWrapping];
17567
+ })], oP = [xt(), uh.lineWrapping], sP = [xh(), uh.lineWrapping], cP = [Sh(), uh.lineWrapping];
17568
17568
  function lP(e) {
17569
17569
  switch (e) {
17570
17570
  case "sql": return sP;
@@ -17648,7 +17648,7 @@ var dP = (e) => {
17648
17648
  }), t[3] = r, t[4] = a), a;
17649
17649
  }, fP = (e) => {
17650
17650
  let t = (0, Y.c)(9), n = e.hidden ? "Show code" : "Hide code", r = e.hidden ? "Show code" : "Hide code", i;
17651
- t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, J.jsx)(ve, {
17651
+ t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, J.jsx)(w, {
17652
17652
  size: 14,
17653
17653
  strokeWidth: 1.5
17654
17654
  }) : /* @__PURE__ */ (0, J.jsx)(cr, {
@@ -17703,7 +17703,7 @@ var hP = (e) => {
17703
17703
  let t = (0, Y.c)(5), { text: n, tooltip: r } = e, i;
17704
17704
  t[0] === r ? i = t[1] : (i = r && /* @__PURE__ */ (0, J.jsx)(Um, {
17705
17705
  content: r,
17706
- children: /* @__PURE__ */ (0, J.jsx)(Oe, { className: "w-3 h-3 mt-0.5" })
17706
+ children: /* @__PURE__ */ (0, J.jsx)(Ne, { className: "w-3 h-3 mt-0.5" })
17707
17707
  }), t[0] = r, t[1] = i);
17708
17708
  let a;
17709
17709
  return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ (0, J.jsxs)("h2", {
@@ -17745,13 +17745,13 @@ var hP = (e) => {
17745
17745
  let t = (0, Y.c)(5), { children: n, className: r } = e, i;
17746
17746
  t[0] === r ? i = t[1] : (i = l("py-1", r), t[0] = r, t[1] = i);
17747
17747
  let a;
17748
- return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(xt, {
17748
+ return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(wt, {
17749
17749
  className: i,
17750
17750
  children: n
17751
17751
  }), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
17752
17752
  }, xP = (e) => {
17753
17753
  let t = (0, Y.c)(3), { children: n, value: r } = e, i;
17754
- return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, J.jsx)(vt, {
17754
+ return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, J.jsx)(yt, {
17755
17755
  value: r,
17756
17756
  className: "border-none",
17757
17757
  children: n
@@ -17909,7 +17909,7 @@ var hP = (e) => {
17909
17909
  let { field: t } = e;
17910
17910
  return /* @__PURE__ */ (0, J.jsxs)(hT, {
17911
17911
  className: l("flex flex-row items-center gap-2", i),
17912
- children: [/* @__PURE__ */ (0, J.jsx)(gT, { children: r }), /* @__PURE__ */ (0, J.jsx)(_T, { children: /* @__PURE__ */ (0, J.jsx)(xe, {
17912
+ children: [/* @__PURE__ */ (0, J.jsx)(gT, { children: r }), /* @__PURE__ */ (0, J.jsx)(_T, { children: /* @__PURE__ */ (0, J.jsx)(A, {
17913
17913
  checked: t.value ?? a ?? !1,
17914
17914
  onCheckedChange: t.onChange,
17915
17915
  className: "w-4 h-4"
@@ -18074,7 +18074,7 @@ var hP = (e) => {
18074
18074
  open: o,
18075
18075
  onOpenChange: s,
18076
18076
  children: [/* @__PURE__ */ (0, J.jsx)(Hi, { children: /* @__PURE__ */ (0, J.jsx)(Fi, { placeholder: "Select an option" }) }), /* @__PURE__ */ (0, J.jsx)(zi, { children: /* @__PURE__ */ (0, J.jsx)(Vi, { children: Rt.map((e) => {
18077
- let t = Pe[e], n = e === "string" ? "categorical" : e;
18077
+ let t = he[e], n = e === "string" ? "categorical" : e;
18078
18078
  return /* @__PURE__ */ (0, J.jsx)(Ii, {
18079
18079
  value: e,
18080
18080
  className: "flex flex-col items-start justify-center",
@@ -18197,7 +18197,7 @@ var hP = (e) => {
18197
18197
  };
18198
18198
  function RP(e) {
18199
18199
  if (e.name.trim() === "") return null;
18200
- let t = Pe[e.type];
18200
+ let t = he[e.type];
18201
18201
  return /* @__PURE__ */ (0, J.jsx)(Ii, {
18202
18202
  value: e.name,
18203
18203
  children: /* @__PURE__ */ (0, J.jsxs)("div", {
@@ -18644,12 +18644,12 @@ var lF = () => {
18644
18644
  p,
18645
18645
  /* @__PURE__ */ (0, J.jsxs)("p", {
18646
18646
  className: "text-xs",
18647
- children: [/* @__PURE__ */ (0, J.jsx)(Oe, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
18647
+ children: [/* @__PURE__ */ (0, J.jsx)(Ne, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
18648
18648
  })
18649
18649
  ] })]
18650
18650
  }), e[12] = m) : m = e[12];
18651
18651
  let h;
18652
- return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, J.jsxs)(Je, {
18652
+ return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, J.jsxs)(Ze, {
18653
18653
  type: "multiple",
18654
18654
  children: [
18655
18655
  a,
@@ -18687,7 +18687,7 @@ var lF = () => {
18687
18687
  saveFunction: t
18688
18688
  }), e[6] = i, e[7] = t, e[8] = l) : l = e[8];
18689
18689
  let u;
18690
- return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, J.jsxs)(Je, {
18690
+ return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, J.jsxs)(Ze, {
18691
18691
  type: "multiple",
18692
18692
  children: [o, /* @__PURE__ */ (0, J.jsxs)(xP, {
18693
18693
  value: "tooltips",
@@ -18937,7 +18937,7 @@ var TF = "marimo:charts:v2", EF = B({
18937
18937
  tabName: V().transform((e) => e),
18938
18938
  chartType: V().transform((e) => e),
18939
18939
  config: CF
18940
- }), DF = U(Fl([V().transform((e) => e), U(EF)])), OF = new Ye(TF, DF, () => []), kF = {
18940
+ }), DF = U(Fl([V().transform((e) => e), U(EF)])), OF = new Ie(TF, DF, () => []), kF = {
18941
18941
  getItem: (e) => {
18942
18942
  try {
18943
18943
  let t = OF.get(e);
@@ -19197,7 +19197,7 @@ var BF = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
19197
19197
  t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, J.jsxs)(er, {
19198
19198
  value: "data",
19199
19199
  className: "w-1/2 h-6",
19200
- children: [/* @__PURE__ */ (0, J.jsx)(Ke, { className: "w-4 h-4 mr-2" }), "Data"]
19200
+ children: [/* @__PURE__ */ (0, J.jsx)(gt, { className: "w-4 h-4 mr-2" }), "Data"]
19201
19201
  }), t[10] = f) : f = t[10];
19202
19202
  let p;
19203
19203
  t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, J.jsxs)(Xn, {
@@ -19205,7 +19205,7 @@ var BF = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
19205
19205
  children: [f, /* @__PURE__ */ (0, J.jsxs)(er, {
19206
19206
  value: "style",
19207
19207
  className: "w-1/2 h-6",
19208
- children: [/* @__PURE__ */ (0, J.jsx)(ee, { className: "w-4 h-4 mr-2" }), "Style"]
19208
+ children: [/* @__PURE__ */ (0, J.jsx)(z, { className: "w-4 h-4 mr-2" }), "Style"]
19209
19209
  })]
19210
19210
  }), t[11] = p) : p = t[11];
19211
19211
  let m;
@@ -19260,7 +19260,7 @@ function GF(e) {
19260
19260
  //#endregion
19261
19261
  //#region src/components/data-table/hooks/use-panel-ownership.ts
19262
19262
  function KF(e, t) {
19263
- let n = (0, Y.c)(16), r = Xm(bD), { focusCell: i } = at(), a = _t(), [o, s] = Qm(vD), [l, u] = Qm(_D), [d, f] = Qm(yD), p = qF(e, t);
19263
+ let n = (0, Y.c)(16), r = Xm(bD), { focusCell: i } = vt(), a = qe(), [o, s] = Qm(vD), [l, u] = Qm(_D), [d, f] = Qm(yD), p = qF(e, t);
19264
19264
  !t && r && (c.error("CellId is not found, defaulting to fixed mode"), r = !1);
19265
19265
  let m = (e) => l === p && d && e === o, h = a === t, g = l && JF(l, t);
19266
19266
  r && h && l !== p && !g && u(p);
@@ -19317,7 +19317,7 @@ function ZF({ stats: e, dataType: t, locale: n }) {
19317
19317
  children: [
19318
19318
  /* @__PURE__ */ (0, J.jsx)("span", {
19319
19319
  className: "text-xs min-w-[60px] capitalize",
19320
- children: Ze(e, t)
19320
+ children: Re(e, t)
19321
19321
  }),
19322
19322
  /* @__PURE__ */ (0, J.jsx)("span", {
19323
19323
  className: "text-xs font-bold text-muted-foreground tracking-wide",
@@ -19359,9 +19359,9 @@ function $F(e, t) {
19359
19359
  });
19360
19360
  }
19361
19361
  var eI = (e) => {
19362
- let t = (0, Y.c)(10), { chartCode: n } = e, r = Xm(nh), i = _t(), { createNewCell: a } = Me(), o;
19362
+ let t = (0, Y.c)(10), { chartCode: n } = e, r = Xm(nh), i = qe(), { createNewCell: a } = Me(), o;
19363
19363
  t[0] !== r || t[1] !== a || t[2] !== i ? (o = (e) => {
19364
- e.includes("alt") && We({
19364
+ e.includes("alt") && Xe({
19365
19365
  autoInstantiate: r,
19366
19366
  createNewCell: a,
19367
19367
  fromCellId: i
@@ -19391,7 +19391,7 @@ var eI = (e) => {
19391
19391
  //#endregion
19392
19392
  //#region src/components/data-table/column-explorer-panel/column-explorer.tsx
19393
19393
  function tI({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, tableId: i, table: a }) {
19394
- let [o, s] = (0, q.useState)(""), { locale: c } = Ti(), l = t?.filter(([e]) => !(e === "__select__" || e === "_marimo_row_id" || e.startsWith("__m_column__"))), u = l?.filter(([e]) => _r(o, e)), { totalColumns: d, hiddenColumns: f } = $n(a, r), { visible: p } = On(a), m = a.getState().columnVisibility, h = (0, q.useMemo)(() => bn(a), [a, m]), { rowsAndColumns: g, hiddenSuffix: v } = Sn({
19394
+ let [o, s] = (0, q.useState)(""), { locale: c } = Ti(), l = t?.filter(([e]) => !(e === "__select__" || e === "_marimo_row_id" || e.startsWith("__m_column__"))), u = l?.filter(([e]) => _r(o, e)), { totalColumns: d, hiddenColumns: f } = $n(a, r), { visible: p } = On(a), m = bn(a), { rowsAndColumns: h, hiddenSuffix: g } = Sn({
19395
19395
  numRows: n,
19396
19396
  totalColumns: d,
19397
19397
  locale: c,
@@ -19402,8 +19402,8 @@ function tI({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
19402
19402
  children: [/* @__PURE__ */ (0, J.jsxs)("div", {
19403
19403
  className: "text-xs font-semibold ml-2 flex items-center gap-1",
19404
19404
  children: [
19405
- g,
19406
- f > 0 && /* @__PURE__ */ (0, J.jsx)("span", { children: v }),
19405
+ h,
19406
+ f > 0 && /* @__PURE__ */ (0, J.jsx)("span", { children: g }),
19407
19407
  /* @__PURE__ */ (0, J.jsx)(Wm, {
19408
19408
  tooltip: "Copy column names",
19409
19409
  value: l?.map(([e]) => e).join(",\n") || "",
@@ -19421,7 +19421,7 @@ function tI({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
19421
19421
  className: "gap-1",
19422
19422
  disabled: f === 0,
19423
19423
  onClick: () => a.toggleAllColumnsVisible(!0),
19424
- children: [/* @__PURE__ */ (0, J.jsx)(ve, { className: "w-3 h-3" }), "Show all"]
19424
+ children: [/* @__PURE__ */ (0, J.jsx)(w, { className: "w-3 h-3" }), "Show all"]
19425
19425
  })
19426
19426
  }), /* @__PURE__ */ (0, J.jsx)(Um, {
19427
19427
  content: "Hide all columns",
@@ -19456,7 +19456,7 @@ function tI({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
19456
19456
  externalType: r,
19457
19457
  previewColumn: e,
19458
19458
  table: a,
19459
- showOnlyColumnState: h,
19459
+ showOnlyColumnState: m,
19460
19460
  defaultExpanded: o === 0
19461
19461
  }, `${i}-${t}`);
19462
19462
  })]
@@ -19504,7 +19504,7 @@ function nI({ columnName: e, column: t, dataType: n, externalType: r, previewCol
19504
19504
  onClick: (e) => {
19505
19505
  e.preventDefault(), e.stopPropagation(), t.toggleVisibility(!t.getIsVisible());
19506
19506
  },
19507
- children: t.getIsVisible() ? /* @__PURE__ */ (0, J.jsx)(ve, {
19507
+ children: t.getIsVisible() ? /* @__PURE__ */ (0, J.jsx)(w, {
19508
19508
  className: "h-3 w-3",
19509
19509
  strokeWidth: 2.5
19510
19510
  }) : /* @__PURE__ */ (0, J.jsx)(cr, {
@@ -19597,7 +19597,7 @@ var rI = ({ previewColumn: e, columnName: t, dataType: n }) => {
19597
19597
  title: "Select/unselect the current row",
19598
19598
  children: [/* @__PURE__ */ (0, J.jsxs)("div", {
19599
19599
  className: "flex items-center gap-1.5",
19600
- children: [/* @__PURE__ */ (0, J.jsx)(xe, {
19600
+ children: [/* @__PURE__ */ (0, J.jsx)(A, {
19601
19601
  id: d,
19602
19602
  checked: o,
19603
19603
  onCheckedChange: v,
@@ -19673,7 +19673,7 @@ var rI = ({ previewColumn: e, columnName: t, dataType: n }) => {
19673
19673
  });
19674
19674
  if (n === 0) return /* @__PURE__ */ (0, J.jsx)(oI, {
19675
19675
  kind: "info",
19676
- Icon: Oe,
19676
+ Icon: Ne,
19677
19677
  message: "No rows selected"
19678
19678
  });
19679
19679
  if (!m) return /* @__PURE__ */ (0, J.jsx)(Jn, {
@@ -19999,8 +19999,8 @@ function bI(e, t) {
19999
19999
  var xI = (e) => {
20000
20000
  let t = (0, Y.c)(13), { isLazy: n, children: r, preload: i, host: a } = e, o, s, c, l;
20001
20001
  if (t[0] !== a || t[1] !== n || t[2] !== i) {
20002
- let e = a.closest(`[${j}]`);
20003
- l = e ? Se.parse(e) : null, o = a.closest(`[${pe}]`)?.getAttribute(pe), s = q.useState, c = n && !i && !yI(l, o), t[0] = a, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = l;
20002
+ let e = a.closest(`[${ce}]`);
20003
+ l = e ? N.parse(e) : null, o = a.closest(`[${rt}]`)?.getAttribute(rt), s = q.useState, c = n && !i && !yI(l, o), t[0] = a, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = l;
20004
20004
  } else o = t[3], s = t[4], c = t[5], l = t[6];
20005
20005
  let [u, d] = s(c);
20006
20006
  if (u) {
@@ -20009,7 +20009,7 @@ var xI = (e) => {
20009
20009
  bI(l, o), d(!1);
20010
20010
  }, t[7] = o, t[8] = l, t[9] = e) : e = t[9];
20011
20011
  let n;
20012
- t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, J.jsx)(we, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
20012
+ t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, J.jsx)(Te, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
20013
20013
  let r;
20014
20014
  return t[11] === e ? r = t[12] : (r = /* @__PURE__ */ (0, J.jsx)("div", {
20015
20015
  className: "flex h-20 items-center justify-center",
@@ -20024,7 +20024,7 @@ var xI = (e) => {
20024
20024
  return r;
20025
20025
  }, SI = (0, q.memo)((e) => {
20026
20026
  let t = (0, Y.c)(119), n;
20027
- t[0] === e.host ? n = t[1] : (n = N(e.host), t[0] = e.host, t[1] = n);
20027
+ t[0] === e.host ? n = t[1] : (n = j(e.host), t[0] = e.host, t[1] = n);
20028
20028
  let r = n, i = e.search, a = e.setValue, o;
20029
20029
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[2] = o) : o = t[2];
20030
20030
  let [s, l] = (0, q.useState)(o), u;
@@ -20098,11 +20098,11 @@ var xI = (e) => {
20098
20098
  d.pageSize,
20099
20099
  d.pageIndex
20100
20100
  ], t[35] = g, t[36] = d.pageIndex, t[37] = d.pageSize, t[38] = e.cellHoverTexts, t[39] = e.cellStyles, t[40] = e.data, t[41] = e.lazy, t[42] = e.totalRows, t[43] = i, t[44] = p, t[45] = s, t[46] = E, t[47] = D) : D = t[47];
20101
- let { data: O, error: k, isPending: A, isFetching: j } = Eh(T, D), M = Xm(vn), P;
20102
- t[48] !== M || t[49] !== e ? (P = async () => !M || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, t[48] = M, t[49] = e, t[50] = P) : P = t[50];
20101
+ let { data: O, error: k, isPending: A, isFetching: M } = Eh(T, D), N = Xm(vn), P;
20102
+ t[48] !== N || t[49] !== e ? (P = async () => !N || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, t[48] = N, t[49] = e, t[50] = P) : P = t[50];
20103
20103
  let F = e.showDownload, I = e.get_size_bytes, L = e.lazy, ee = e.totalRows, te = Ph(g), R = Ph(s), ne;
20104
- t[51] !== M || t[52] !== e.get_size_bytes || t[53] !== e.lazy || t[54] !== e.showDownload || t[55] !== e.totalRows || t[56] !== p || t[57] !== te || t[58] !== R ? (ne = [
20105
- M,
20104
+ t[51] !== N || t[52] !== e.get_size_bytes || t[53] !== e.lazy || t[54] !== e.showDownload || t[55] !== e.totalRows || t[56] !== p || t[57] !== te || t[58] !== R ? (ne = [
20105
+ N,
20106
20106
  F,
20107
20107
  I,
20108
20108
  L,
@@ -20110,8 +20110,8 @@ var xI = (e) => {
20110
20110
  p,
20111
20111
  te,
20112
20112
  R
20113
- ], t[51] = M, t[52] = e.get_size_bytes, t[53] = e.lazy, t[54] = e.showDownload, t[55] = e.totalRows, t[56] = p, t[57] = te, t[58] = R, t[59] = ne) : ne = t[59];
20114
- let { data: z, isPending: re } = Eh(P, ne), ie = z ?? null, ae = !!M && e.showDownload && re, oe;
20113
+ ], t[51] = N, t[52] = e.get_size_bytes, t[53] = e.lazy, t[54] = e.showDownload, t[55] = e.totalRows, t[56] = p, t[57] = te, t[58] = R, t[59] = ne) : ne = t[59];
20114
+ let { data: z, isPending: re } = Eh(P, ne), ie = z ?? null, ae = !!N && e.showDownload && re, oe;
20115
20115
  t[60] !== g || t[61] !== i || t[62] !== p || t[63] !== s ? (oe = async (e) => {
20116
20116
  let t = s.length > 0 ? s.map(DI) : void 0, n = await i({
20117
20117
  page_number: e,
@@ -20176,7 +20176,7 @@ var xI = (e) => {
20176
20176
  t[84] === y ? ve = t[85] : (ve = () => {
20177
20177
  b(!y);
20178
20178
  }, t[84] = y, t[85] = ve);
20179
- let ye = ve, be = O?.rows ?? _h.EMPTY, xe = O?.rawRows, Se = j && !A, Ce = O?.totalRows ?? e.totalRows, we = O?.cellStyles ?? e.cellStyles, Te = O?.cellHoverTexts ?? e.cellHoverTexts, Ee;
20179
+ let ye = ve, be = O?.rows ?? _h.EMPTY, xe = O?.rawRows, Se = M && !A, Ce = O?.totalRows ?? e.totalRows, we = O?.cellStyles ?? e.cellStyles, Te = O?.cellHoverTexts ?? e.cellHoverTexts, Ee;
20180
20180
  t[86] !== r || t[87] !== pe || t[88] !== y || t[89] !== g || t[90] !== se || t[91] !== d || t[92] !== e || t[93] !== p || t[94] !== ie || t[95] !== ae || t[96] !== s || t[97] !== be || t[98] !== xe || t[99] !== Se || t[100] !== Ce || t[101] !== we || t[102] !== Te || t[103] !== ye ? (Ee = /* @__PURE__ */ (0, J.jsx)(CI, {
20181
20181
  ...e,
20182
20182
  data: be,
@@ -20796,7 +20796,7 @@ var HI = class {
20796
20796
  fullWidth: s,
20797
20797
  children: _
20798
20798
  }), t[20] = s, t[21] = u, t[22] = n, t[23] = _, t[24] = v) : v = t[24], v;
20799
- }, GI = q.lazy(() => import("./ConnectedDataExplorerComponent-qIKbwYin.js")), KI = uM("marimo-data-explorer").withData(B({
20799
+ }, GI = q.lazy(() => import("./ConnectedDataExplorerComponent-C9OF_75w.js")), KI = uM("marimo-data-explorer").withData(B({
20800
20800
  label: V().nullish(),
20801
20801
  data: V()
20802
20802
  })).renderer((e) => /* @__PURE__ */ (0, J.jsx)(GI, {
@@ -20808,7 +20808,7 @@ var HI = class {
20808
20808
  too_many_values: !1
20809
20809
  })), XI = (e) => {
20810
20810
  let t = (0, Y.c)(4), { type: n } = e, r;
20811
- t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, J.jsx)(hv, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, J.jsx)(_v, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, J.jsx)(gi, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, J.jsx)(yi, { size: 14 }) : /* @__PURE__ */ (0, J.jsx)(Qe, { size: 14 }), t[0] = n, t[1] = r);
20811
+ t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, J.jsx)(hv, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, J.jsx)(_v, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, J.jsx)(gi, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, J.jsx)(yi, { size: 14 }) : /* @__PURE__ */ (0, J.jsx)(ze, { size: 14 }), t[0] = n, t[1] = r);
20812
20812
  let i = r, a;
20813
20813
  return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ (0, J.jsx)("div", {
20814
20814
  className: "border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",
@@ -21286,7 +21286,7 @@ var uL = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
21286
21286
  "to automatically apply transformations."
21287
21287
  ] })]
21288
21288
  }),
21289
- children: /* @__PURE__ */ (0, J.jsx)(Oe, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
21289
+ children: /* @__PURE__ */ (0, J.jsx)(Ne, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
21290
21290
  })]
21291
21291
  })
21292
21292
  ]
@@ -21305,7 +21305,7 @@ var uL = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
21305
21305
  children: [/* @__PURE__ */ (0, J.jsx)("div", {
21306
21306
  className: "grow text-ellipsis",
21307
21307
  children: Pi.startCase(e.type)
21308
- }), /* @__PURE__ */ (0, J.jsx)(te, {
21308
+ }), /* @__PURE__ */ (0, J.jsx)(xe, {
21309
21309
  className: "w-3 h-3 hover-action text-muted-foreground hover:text-destructive",
21310
21310
  onClick: (e) => {
21311
21311
  o(t), e.stopPropagation();
@@ -21381,7 +21381,7 @@ var uL = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
21381
21381
  }), t[9] = i, t[10] = l, t[11] = u) : u = t[11], u;
21382
21382
  }, pL = {
21383
21383
  aggregate: At,
21384
- column_conversion: ht,
21384
+ column_conversion: st,
21385
21385
  filter_rows: wr,
21386
21386
  group_by: jv,
21387
21387
  rename_column: Ga,
@@ -21392,7 +21392,7 @@ var uL = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
21392
21392
  explode_columns: gv,
21393
21393
  expand_dict: Sv,
21394
21394
  unique: bv,
21395
- pivot: we
21395
+ pivot: Te
21396
21396
  };
21397
21397
  function mL(e) {
21398
21398
  e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
@@ -21493,7 +21493,7 @@ var hL = uM("marimo-dataframe").withData(B({
21493
21493
  t[20] === O ? z = t[21] : (z = O && /* @__PURE__ */ (0, J.jsxs)(er, {
21494
21494
  value: "sql-code",
21495
21495
  className: "text-xs py-1",
21496
- children: [/* @__PURE__ */ (0, J.jsx)(Ke, { className: "w-3 h-3 mr-2" }), "SQL Code"]
21496
+ children: [/* @__PURE__ */ (0, J.jsx)(gt, { className: "w-3 h-3 mr-2" }), "SQL Code"]
21497
21497
  }), t[20] = O, t[21] = z);
21498
21498
  let re;
21499
21499
  t[22] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ (0, J.jsx)("div", { className: "grow" }), t[22] = re) : re = t[22];
@@ -21668,12 +21668,12 @@ var xL = {
21668
21668
  python: Cv,
21669
21669
  code: Cv,
21670
21670
  json: Sv,
21671
- text: Ne,
21671
+ text: me,
21672
21672
  image: Mv,
21673
21673
  audio: wv,
21674
21674
  video: Tv,
21675
21675
  data: Ev,
21676
- pdf: Ne,
21676
+ pdf: me,
21677
21677
  zip: Dv,
21678
21678
  unknown: Fa
21679
21679
  };
@@ -21733,7 +21733,7 @@ function TL(e) {
21733
21733
  let s = !r, c;
21734
21734
  t[2] === s ? c = t[3] : (c = l({ "hidden group-hover:flex group-focus:flex": s }), t[2] = s, t[3] = c);
21735
21735
  let u;
21736
- t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== c ? (u = /* @__PURE__ */ (0, J.jsx)(xe, {
21736
+ t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== c ? (u = /* @__PURE__ */ (0, J.jsx)(A, {
21737
21737
  checked: r,
21738
21738
  "aria-label": e,
21739
21739
  tabIndex: -1,
@@ -21760,7 +21760,7 @@ function TL(e) {
21760
21760
  }), t[18] = a, t[19] = s), s;
21761
21761
  }
21762
21762
  var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i, label: a, restrictNavigation: o, list_directory: s, host: c }) => {
21763
- let [u, d] = nn(n), [f, p] = (0, q.useState)(!1), [m, h] = (0, q.useState)(!1), [g, v] = (0, q.useState)(0), y = (0, q.useRef)([]), b = (0, q.useRef)(null), x = (0, q.useRef)(!1), C = c.closest(`[${pe}]`)?.getAttribute(pe), { data: w, error: T, isPending: E } = Eh(() => s({ path: u }), [u, C]);
21763
+ let [u, d] = nn(n), [f, p] = (0, q.useState)(!1), [m, h] = (0, q.useState)(!1), [g, v] = (0, q.useState)(0), y = (0, q.useRef)([]), b = (0, q.useRef)(null), x = (0, q.useRef)(!1), C = c.closest(`[${rt}]`)?.getAttribute(rt), { data: w, error: T, isPending: E } = Eh(() => s({ path: u }), [u, C]);
21764
21764
  (0, q.useEffect)(() => {
21765
21765
  if (!E) {
21766
21766
  h(!1);
@@ -21777,20 +21777,20 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21777
21777
  O !== D && (k(D), v(0)), (0, q.useLayoutEffect)(() => {
21778
21778
  x.current && (x.current = !1, y.current[0]?.focus());
21779
21779
  }, [D]);
21780
- let A = w?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all", P = A.filter((e) => M && e.is_directory || N && !e.is_directory), L = P.length > 0 && P.every((e) => j.has(e.path));
21780
+ let A = w?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all", F = A.filter((e) => M && e.is_directory || N && !e.is_directory), I = F.length > 0 && F.every((e) => j.has(e.path));
21781
21781
  if (!w && T) return /* @__PURE__ */ (0, J.jsx)(Im, {
21782
21782
  kind: "danger",
21783
21783
  children: T.message
21784
21784
  });
21785
- let ee = I.guessDeliminator(n).deliminator, te = e.map((e) => /* @__PURE__ */ (0, J.jsx)("li", { children: e.path }, e.id));
21785
+ let L = ee.guessDeliminator(n).deliminator, te = e.map((e) => /* @__PURE__ */ (0, J.jsx)("li", { children: e.path }, e.id));
21786
21786
  function R(e) {
21787
21787
  if (f) return;
21788
21788
  if (p(!0), e === wL) {
21789
- if (u === ee) {
21789
+ if (u === L) {
21790
21790
  p(!1);
21791
21791
  return;
21792
21792
  }
21793
- e = ne.dirname(u), e === "" && (e = ee);
21793
+ e = ie.dirname(u), e === "" && (e = L);
21794
21794
  }
21795
21795
  let t = e.length < n.length;
21796
21796
  if (o && t) {
@@ -21803,7 +21803,7 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21803
21803
  }
21804
21804
  x.current = b.current?.contains(document.activeElement) ?? !1, d(e), p(!1);
21805
21805
  }
21806
- function z({ path: e, name: t, isDirectory: n }) {
21806
+ function ne({ path: e, name: t, isDirectory: n }) {
21807
21807
  return {
21808
21808
  id: e,
21809
21809
  name: t,
@@ -21811,22 +21811,22 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21811
21811
  is_directory: n
21812
21812
  };
21813
21813
  }
21814
- function re({ path: n, name: r, isDirectory: a }) {
21815
- let o = z({
21814
+ function z({ path: n, name: r, isDirectory: a }) {
21815
+ let o = ne({
21816
21816
  path: n,
21817
21817
  name: r,
21818
21818
  isDirectory: a
21819
21819
  });
21820
21820
  j.has(n) ? t(e.filter((e) => e.path !== n)) : t(i ? [...e, o] : [o]);
21821
21821
  }
21822
- function ie() {
21823
- t(e.filter((e) => ne.dirname(e.path) !== u));
21822
+ function re() {
21823
+ t(e.filter((e) => ie.dirname(e.path) !== u));
21824
21824
  }
21825
21825
  function ae() {
21826
21826
  let n = [];
21827
21827
  for (let e of A) {
21828
21828
  if (!M && e.is_directory || j.has(e.path)) continue;
21829
- let t = z({
21829
+ let t = ne({
21830
21830
  path: e.path,
21831
21831
  name: e.name,
21832
21832
  isDirectory: e.is_directory
@@ -21846,7 +21846,7 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21846
21846
  }, ...A.map((e) => {
21847
21847
  let t = e.path;
21848
21848
  t.startsWith("//") && (t = t.slice(1));
21849
- let n = M && e.is_directory || N && !e.is_directory, r = j.has(t), i = e.is_directory ? "directory" : bL(e.name), a = () => re({
21849
+ let n = M && e.is_directory || N && !e.is_directory, r = j.has(t), i = e.is_directory ? "directory" : bL(e.name), a = () => z({
21850
21850
  path: t,
21851
21851
  name: e.name,
21852
21852
  isDirectory: e.is_directory
@@ -21887,17 +21887,17 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21887
21887
  }
21888
21888
  let { parentDirectories: le } = SL({
21889
21889
  path: u,
21890
- delimiter: ee,
21890
+ delimiter: L,
21891
21891
  initialPath: n,
21892
21892
  restrictNavigation: o
21893
- }), ue = r === "all" ? ke.of("file", "folder") : r === "directory" ? ke.of("folder") : ke.of("file");
21893
+ }), ue = r === "all" ? Pe.of("file", "folder") : r === "directory" ? Pe.of("folder") : Pe.of("file");
21894
21894
  return /* @__PURE__ */ (0, J.jsxs)("div", { children: [
21895
21895
  T && /* @__PURE__ */ (0, J.jsx)(Im, {
21896
21896
  kind: "danger",
21897
21897
  children: T.message
21898
21898
  }),
21899
21899
  (() => {
21900
- let e = a ?? `Select ${ue.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, J.jsx)(Lm, { children: F({ html: e }) });
21900
+ let e = a ?? `Select ${ue.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, J.jsx)(Lm, { children: P({ html: e }) });
21901
21901
  return i ? /* @__PURE__ */ (0, J.jsxs)("div", {
21902
21902
  className: "flex items-center justify-between border px-2",
21903
21903
  children: [/* @__PURE__ */ (0, J.jsx)("div", {
@@ -21906,8 +21906,8 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21906
21906
  }), /* @__PURE__ */ (0, J.jsx)("div", { children: /* @__PURE__ */ (0, J.jsx)(_, {
21907
21907
  size: "xs",
21908
21908
  variant: "link",
21909
- onClick: L ? ie : ae,
21910
- children: L ? "Deselect all" : "Select all"
21909
+ onClick: I ? re : ae,
21910
+ children: I ? "Deselect all" : "Select all"
21911
21911
  }) })]
21912
21912
  }) : t;
21913
21913
  })(),
@@ -24111,7 +24111,7 @@ var uz = (e) => {
24111
24111
  size: "xs"
24112
24112
  }), t[15] = a) : a = t[15];
24113
24113
  let o;
24114
- t[16] === n ? o = t[17] : (o = F({ html: n }), t[16] = n, t[17] = o);
24114
+ t[16] === n ? o = t[17] : (o = P({ html: n }), t[16] = n, t[17] = o);
24115
24115
  let c;
24116
24116
  t[18] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, J.jsx)(Kv, {
24117
24117
  size: 14,
@@ -24175,9 +24175,9 @@ var uz = (e) => {
24175
24175
  let O;
24176
24176
  t[43] === D ? O = t[44] : (O = /* @__PURE__ */ (0, J.jsx)("input", { ...D }), t[43] = D, t[44] = O);
24177
24177
  let k;
24178
- t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, J.jsxs)("span", { children: ["To re-upload: ", F({ html: S })] }) : /* @__PURE__ */ (0, J.jsx)("span", {
24178
+ t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, J.jsxs)("span", { children: ["To re-upload: ", P({ html: S })] }) : /* @__PURE__ */ (0, J.jsx)("span", {
24179
24179
  className: "mt-0",
24180
- children: F({ html: S })
24180
+ children: P({ html: S })
24181
24181
  }), t[45] = S, t[46] = x, t[47] = k) : k = t[47];
24182
24182
  let A = g && "text-primary", j = _ && "text-destructive", M;
24183
24183
  t[48] !== A || t[49] !== j ? (M = l(A, j), t[48] = A, t[49] = j, t[50] = M) : M = t[50];
@@ -24186,8 +24186,8 @@ var uz = (e) => {
24186
24186
  strokeWidth: 1.4,
24187
24187
  className: M
24188
24188
  }), t[51] = M, t[52] = N);
24189
- let P = g && "text-primary", I = _ && "text-destructive", L;
24190
- t[53] !== P || t[54] !== I ? (L = l(P, I), t[53] = P, t[54] = I, t[55] = L) : L = t[55];
24189
+ let F = g && "text-primary", I = _ && "text-destructive", L;
24190
+ t[53] !== F || t[54] !== I ? (L = l(F, I), t[53] = F, t[54] = I, t[55] = L) : L = t[55];
24191
24191
  let ee;
24192
24192
  t[56] === L ? ee = t[57] : (ee = /* @__PURE__ */ (0, J.jsx)(Bv, {
24193
24193
  strokeWidth: 1.4,
@@ -24338,7 +24338,7 @@ var _z = uM("marimo-form").withData(B({
24338
24338
  let j;
24339
24339
  t[11] === o ? j = t[12] : (j = o === null ? null : /* @__PURE__ */ (0, J.jsx)("div", {
24340
24340
  className: "text-center",
24341
- children: F({ html: o })
24341
+ children: P({ html: o })
24342
24342
  }), t[11] = o, t[12] = j);
24343
24343
  let M;
24344
24344
  t[13] === C ? M = t[14] : (M = C != null && /* @__PURE__ */ (0, J.jsx)(Im, {
@@ -24348,17 +24348,17 @@ var _z = uM("marimo-form").withData(B({
24348
24348
  }), t[13] = C, t[14] = M);
24349
24349
  let N;
24350
24350
  t[15] === n ? N = t[16] : (N = /* @__PURE__ */ (0, J.jsx)("div", { children: n }), t[15] = n, t[16] = N);
24351
- let P;
24352
- t[17] !== h || t[18] !== g || t[19] !== m ? (P = m && bz(/* @__PURE__ */ (0, J.jsx)(_, {
24351
+ let F;
24352
+ t[17] !== h || t[18] !== g || t[19] !== m ? (F = m && bz(/* @__PURE__ */ (0, J.jsx)(_, {
24353
24353
  "data-testid": "marimo-plugin-form-clear-button",
24354
24354
  variant: "text",
24355
24355
  onClick: (e) => {
24356
24356
  e.preventDefault(), E();
24357
24357
  },
24358
24358
  children: h
24359
- }), g), t[17] = h, t[18] = g, t[19] = m, t[20] = P) : P = t[20];
24359
+ }), g), t[17] = h, t[18] = g, t[19] = m, t[20] = F) : F = t[20];
24360
24360
  let I = f || c, L;
24361
- t[21] === c ? L = t[22] : (L = c && /* @__PURE__ */ (0, J.jsx)(re, { className: "h-4 w-4 mr-2 animate-spin" }), t[21] = c, t[22] = L);
24361
+ t[21] === c ? L = t[22] : (L = c && /* @__PURE__ */ (0, J.jsx)(Ae, { className: "h-4 w-4 mr-2 animate-spin" }), t[21] = c, t[22] = L);
24362
24362
  let ee;
24363
24363
  t[23] !== u || t[24] !== I || t[25] !== L || t[26] !== S ? (ee = /* @__PURE__ */ (0, J.jsxs)(_, {
24364
24364
  "data-testid": "marimo-plugin-form-submit-button",
@@ -24370,10 +24370,10 @@ var _z = uM("marimo-form").withData(B({
24370
24370
  let te;
24371
24371
  t[28] !== d || t[29] !== ee ? (te = bz(ee, d), t[28] = d, t[29] = ee, t[30] = te) : te = t[30];
24372
24372
  let R;
24373
- t[31] !== te || t[32] !== P ? (R = /* @__PURE__ */ (0, J.jsxs)("div", {
24373
+ t[31] !== te || t[32] !== F ? (R = /* @__PURE__ */ (0, J.jsxs)("div", {
24374
24374
  className: "flex justify-end gap-2 font-code",
24375
- children: [P, te]
24376
- }), t[31] = te, t[32] = P, t[33] = R) : R = t[33];
24375
+ children: [F, te]
24376
+ }), t[31] = te, t[32] = F, t[33] = R) : R = t[33];
24377
24377
  let ne;
24378
24378
  t[34] !== R || t[35] !== k || t[36] !== j || t[37] !== M || t[38] !== N ? (ne = /* @__PURE__ */ (0, J.jsxs)("div", {
24379
24379
  className: k,
@@ -26757,7 +26757,7 @@ var CV = (e) => {
26757
26757
  t[11] === p ? e = t[12] : (e = (e, t) => /* @__PURE__ */ (0, J.jsx)(er, {
26758
26758
  value: t.toString(),
26759
26759
  className: l(p && "w-full justify-start"),
26760
- children: F({ html: e })
26760
+ children: P({ html: e })
26761
26761
  }, t), t[11] = p, t[12] = e), b = n.map(e), t[8] = p, t[9] = n, t[10] = b;
26762
26762
  } else b = t[10];
26763
26763
  let x;
@@ -26925,7 +26925,7 @@ var kV = class {
26925
26925
  passwordHasValue: W().optional()
26926
26926
  });
26927
26927
  render(e) {
26928
- let t = e.data.kind === "password" ? e.host.closest(`[${pe}]`)?.getAttribute(pe) : void 0;
26928
+ let t = e.data.kind === "password" ? e.host.closest(`[${rt}]`)?.getAttribute(rt) : void 0;
26929
26929
  return /* @__PURE__ */ (0, J.jsx)(NV, {
26930
26930
  ...e.data,
26931
26931
  value: e.value,
@@ -27043,7 +27043,7 @@ function PV(e, t) {
27043
27043
  }
27044
27044
  //#endregion
27045
27045
  //#region src/plugins/impl/vega/VegaPlugin.tsx
27046
- var FV = q.lazy(() => import("./vega-component-D-IXRnlx.js")), IV = class {
27046
+ var FV = q.lazy(() => import("./vega-component-ovBXgp91.js")), IV = class {
27047
27047
  tagName = "marimo-vega";
27048
27048
  validator = B({
27049
27049
  spec: B({}).passthrough().transform((e) => e),
@@ -27066,7 +27066,8 @@ var FV = q.lazy(() => import("./vega-component-D-IXRnlx.js")), IV = class {
27066
27066
  tagName = "marimo-accordion";
27067
27067
  validator = B({
27068
27068
  labels: U(V()),
27069
- multiple: W()
27069
+ multiple: W(),
27070
+ expanded: U(V()).default([])
27070
27071
  });
27071
27072
  render(e) {
27072
27073
  return /* @__PURE__ */ (0, J.jsx)(RV, {
@@ -27075,27 +27076,35 @@ var FV = q.lazy(() => import("./vega-component-D-IXRnlx.js")), IV = class {
27075
27076
  });
27076
27077
  }
27077
27078
  }, RV = (e) => {
27078
- let t = (0, Y.c)(8), { labels: n, multiple: r, children: i } = e, a = r ? "multiple" : "single", o;
27079
- if (t[0] !== i || t[1] !== n) {
27079
+ let t = (0, Y.c)(11), { labels: n, multiple: r, expanded: i, children: a } = e, o;
27080
+ t[0] !== i || t[1] !== r ? (o = r ? {
27081
+ type: "multiple",
27082
+ defaultValue: i
27083
+ } : {
27084
+ type: "single",
27085
+ defaultValue: i[0],
27086
+ collapsible: !0
27087
+ }, t[0] = i, t[1] = r, t[2] = o) : o = t[2];
27088
+ let s = o, c;
27089
+ if (t[3] !== a || t[4] !== n) {
27080
27090
  let e;
27081
- t[3] === n ? e = t[4] : (e = (e, t) => /* @__PURE__ */ (0, J.jsxs)(vt, {
27091
+ t[6] === n ? e = t[7] : (e = (e, t) => /* @__PURE__ */ (0, J.jsxs)(yt, {
27082
27092
  value: t.toString(),
27083
- children: [/* @__PURE__ */ (0, J.jsx)(xt, {
27093
+ children: [/* @__PURE__ */ (0, J.jsx)(wt, {
27084
27094
  className: "py-2 text-md",
27085
- children: F({ html: n[t] })
27095
+ children: P({ html: n[t] })
27086
27096
  }), /* @__PURE__ */ (0, J.jsx)(Fe, {
27087
27097
  className: "text-md",
27088
27098
  children: e
27089
27099
  })]
27090
- }, t), t[3] = n, t[4] = e), o = q.Children.map(i, e), t[0] = i, t[1] = n, t[2] = o;
27091
- } else o = t[2];
27092
- let s;
27093
- return t[5] !== o || t[6] !== a ? (s = /* @__PURE__ */ (0, J.jsx)(Je, {
27094
- type: a,
27100
+ }, t), t[6] = n, t[7] = e), c = q.Children.map(a, e), t[3] = a, t[4] = n, t[5] = c;
27101
+ } else c = t[5];
27102
+ let l;
27103
+ return t[8] !== s || t[9] !== c ? (l = /* @__PURE__ */ (0, J.jsx)(Ze, {
27104
+ ...s,
27095
27105
  className: "text-muted-foreground",
27096
- collapsible: !0,
27097
- children: o
27098
- }), t[5] = o, t[6] = a, t[7] = s) : s = t[7], s;
27106
+ children: c
27107
+ }), t[8] = s, t[9] = c, t[10] = l) : l = t[10], l;
27099
27108
  }, zV = {
27100
27109
  neutral: "neutral",
27101
27110
  info: "info",
@@ -27195,7 +27204,7 @@ var VV = class {
27195
27204
  } finally {
27196
27205
  r(!1);
27197
27206
  }
27198
- }, a = n ? re : mr, o = e.label ? F({ html: e.label }) : "Download";
27207
+ }, a = n ? Ae : mr, o = e.label ? P({ html: e.label }) : "Download";
27199
27208
  return /* @__PURE__ */ (0, J.jsxs)("a", {
27200
27209
  href: e.data,
27201
27210
  download: e.filename ?? "",
@@ -27265,7 +27274,7 @@ var VV = class {
27265
27274
  return t[6] === f ? e = t[7] : (e = /* @__PURE__ */ (0, J.jsx)(Pm, { error: f }), t[6] = f, t[7] = e), e;
27266
27275
  }
27267
27276
  let m;
27268
- t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, J.jsx)(re, { className: "w-12 h-12 animate-spin text-primary my-4 mx-4" }) : d && F({ html: d.html }), t[8] = d, t[9] = p, t[10] = r, t[11] = m) : m = t[11];
27277
+ t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, J.jsx)(Ae, { className: "w-12 h-12 animate-spin text-primary my-4 mx-4" }) : d && P({ html: d.html }), t[8] = d, t[9] = p, t[10] = r, t[11] = m) : m = t[11];
27269
27278
  let h;
27270
27279
  return t[12] !== s || t[13] !== m ? (h = /* @__PURE__ */ (0, J.jsx)("div", {
27271
27280
  ref: s,
@@ -27304,11 +27313,11 @@ var VV = class {
27304
27313
  themeVariables: e.data.theme_variables
27305
27314
  });
27306
27315
  }
27307
- }, oH = (0, q.lazy)(() => import("./mermaid-BsHdQeQf.js"));
27316
+ }, oH = (0, q.lazy)(() => import("./mermaid-Bi23Ibnw.js"));
27308
27317
  //#endregion
27309
27318
  //#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
27310
27319
  function sH() {
27311
- return P() === "edit" ? document.getElementById("App") : void 0;
27320
+ return M() === "edit" ? document.getElementById("App") : void 0;
27312
27321
  }
27313
27322
  function cH(e) {
27314
27323
  let t = (0, Y.c)(7), [n, r] = (0, q.useState)(void 0), [i, a] = (0, q.useState)(void 0), o = (0, q.useRef)(null), s = (0, q.useRef)(null), c;
@@ -27320,7 +27329,7 @@ function cH(e) {
27320
27329
  let n = e.target;
27321
27330
  e.isIntersecting ? (!s.current || n.getBoundingClientRect().top < s.current.getBoundingClientRect().top) && (s.current = n, t = !0) : n === s.current && (s.current = null, t = !0);
27322
27331
  }), t && s.current) {
27323
- let e = mt(s.current), t = "id" in e ? e.id : e.path;
27332
+ let e = Ge(s.current), t = "id" in e ? e.id : e.path;
27324
27333
  r(t), a(l.current.get(s.current));
27325
27334
  }
27326
27335
  }, {
@@ -27329,7 +27338,7 @@ function cH(e) {
27329
27338
  threshold: 0
27330
27339
  }), e.forEach((t) => {
27331
27340
  if (t) {
27332
- let n = mt(t[0]), r = e.map(lH).filter((e) => "id" in n ? e.id === n.id : e.textContent === t[0].textContent).indexOf(t[0]);
27341
+ let n = Ge(t[0]), r = e.map(lH).filter((e) => "id" in n ? e.id === n.id : e.textContent === t[0].textContent).indexOf(t[0]);
27333
27342
  l.current.set(t[0], r), o.current?.observe(t[0]);
27334
27343
  }
27335
27344
  }), () => {
@@ -27374,7 +27383,7 @@ function fH(e, t) {
27374
27383
  //#endregion
27375
27384
  //#region src/components/editor/chrome/panels/outline/floating-outline.tsx
27376
27385
  var pH = () => {
27377
- let e = (0, Y.c)(19), { items: t } = Xm(z), n;
27386
+ let e = (0, Y.c)(19), { items: t } = Xm(te), n;
27378
27387
  e[0] === t ? n = e[1] : (n = uH(t), e[0] = t, e[1] = n);
27379
27388
  let { activeHeaderId: r, activeOccurrences: i } = cH(n), [a, o] = q.useState(!1);
27380
27389
  if (t.length < 2) return null;
@@ -27445,7 +27454,7 @@ var pH = () => {
27445
27454
  children: s
27446
27455
  }), t[8] = o, t[9] = s, t[10] = c) : c = t[10], c;
27447
27456
  }, gH = (e) => {
27448
- let t = (0, Y.c)(12), { label: n } = e, { items: r } = Xm(z), i;
27457
+ let t = (0, Y.c)(12), { label: n } = e, { items: r } = Xm(te), i;
27449
27458
  t[0] === r ? i = t[1] : (i = uH(r), t[0] = r, t[1] = i);
27450
27459
  let { activeHeaderId: a, activeOccurrences: o } = cH(i);
27451
27460
  if (r.length === 0) {
@@ -28258,7 +28267,7 @@ var pH = () => {
28258
28267
  a
28259
28268
  ]
28260
28269
  })]
28261
- }) : /* @__PURE__ */ (0, J.jsx)(re, { className: "w-12 h-12 animate-spin text-primary mx-auto" }), t[0] = i, t[1] = a, t[2] = l) : l = t[2];
28270
+ }) : /* @__PURE__ */ (0, J.jsx)(Ae, { className: "w-12 h-12 animate-spin text-primary mx-auto" }), t[0] = i, t[1] = a, t[2] = l) : l = t[2];
28262
28271
  let u = l, d;
28263
28272
  t[3] !== o || t[4] !== i || t[5] !== s || t[6] !== a ? (d = () => {
28264
28273
  let e = typeof i == "number" && a != null && i >= a, t = [];
@@ -28274,12 +28283,12 @@ var pH = () => {
28274
28283
  let f = d, p = `flex flex-col ${c} max-w-sm p-6 mx-auto`, m;
28275
28284
  t[8] === n ? m = t[9] : (m = n && /* @__PURE__ */ (0, J.jsx)("div", {
28276
28285
  className: "text-lg font-bold text-foreground/60",
28277
- children: F({ html: n })
28286
+ children: P({ html: n })
28278
28287
  }), t[8] = n, t[9] = m);
28279
28288
  let h;
28280
28289
  t[10] === r ? h = t[11] : (h = r && /* @__PURE__ */ (0, J.jsx)("div", {
28281
28290
  className: "text-sm text-muted-foreground",
28282
- children: F({ html: r })
28291
+ children: P({ html: r })
28283
28292
  }), t[10] = r, t[11] = h);
28284
28293
  let g;
28285
28294
  t[12] === u ? g = t[13] : (g = u(), t[12] = u, t[13] = g);
@@ -28568,7 +28577,7 @@ var wH = (/* @__PURE__ */ i(((e) => {
28568
28577
  let e = yn(u);
28569
28578
  if (e?.[0]) {
28570
28579
  let { mimetype: t, data: n } = e[0];
28571
- return t !== "text/html" && c.warn(`Expected text/html, got ${t}`), F({
28580
+ return t !== "text/html" && c.warn(`Expected text/html, got ${t}`), P({
28572
28581
  html: n,
28573
28582
  alwaysSanitizeHtml: !0
28574
28583
  });
@@ -31853,7 +31862,7 @@ var GU = (0, BU.WidthProvider)(BU.Responsive), KU = [0, 0], qU = "grid-drag-hand
31853
31862
  cellId: t.id,
31854
31863
  output: t.output,
31855
31864
  status: t.status,
31856
- stale: lt(t, !1),
31865
+ stale: mt(t, !1),
31857
31866
  isScrollable: o,
31858
31867
  side: s,
31859
31868
  hidden: t.errored || t.interrupted || t.stopped
@@ -31929,7 +31938,7 @@ var GU = (0, BU.WidthProvider)(BU.Responsive), KU = [0, 0], qU = "grid-drag-hand
31929
31938
  cellId: e.id,
31930
31939
  output: e.output,
31931
31940
  status: e.status,
31932
- stale: lt(e, !1),
31941
+ stale: mt(e, !1),
31933
31942
  isScrollable: !1,
31934
31943
  hidden: !1
31935
31944
  }, e.id), t[130] = a, t[131] = r), ge = /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [le, /* @__PURE__ */ (0, J.jsx)("div", {
@@ -31987,7 +31996,7 @@ var GU = (0, BU.WidthProvider)(BU.Responsive), KU = [0, 0], qU = "grid-drag-hand
31987
31996
  output: e.output,
31988
31997
  isScrollable: !1,
31989
31998
  status: e.status,
31990
- stale: lt(e, !1),
31999
+ stale: mt(e, !1),
31991
32000
  hidden: !1
31992
32001
  })
31993
32002
  }, e.id), t[146] = n.columns, t[147] = n.rowHeight, t[148] = a, t[149] = m) : m = t[149], fe = s.map(m);
@@ -32009,7 +32018,7 @@ var GU = (0, BU.WidthProvider)(BU.Responsive), KU = [0, 0], qU = "grid-drag-hand
32009
32018
  return t[158] !== he || t[159] !== ve ? (ye = /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [he, ve] }), t[158] = he, t[159] = ve, t[160] = ye) : ye = t[160], ye;
32010
32019
  }, YU = (0, q.memo)((e) => {
32011
32020
  let t = (0, Y.c)(21), { output: n, cellId: r, status: i, mode: a, code: o, hidden: s, isScrollable: c, side: u, className: d, stale: f } = e, p;
32012
- t[0] === i ? p = t[1] : (p = Re(i), t[0] = i, t[1] = p);
32021
+ t[0] === i ? p = t[1] : (p = ut(i), t[0] = i, t[1] = p);
32013
32022
  let m = p;
32014
32023
  if ((n == null || n.data === "") && a !== "read") {
32015
32024
  let e;
@@ -32115,7 +32124,7 @@ var XU = (e) => {
32115
32124
  t[21] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, J.jsxs)(Lm, {
32116
32125
  className: "flex flex-row items-center gap-1",
32117
32126
  htmlFor: "lock",
32118
- children: [/* @__PURE__ */ (0, J.jsx)(ze, { className: "h-3 w-3" }), "Bordered"]
32127
+ children: [/* @__PURE__ */ (0, J.jsx)(Ve, { className: "h-3 w-3" }), "Bordered"]
32119
32128
  }), t[21] = h) : h = t[21];
32120
32129
  let g;
32121
32130
  t[22] !== n || t[23] !== r ? (g = (e) => {
@@ -32433,10 +32442,10 @@ var cW = (e) => {
32433
32442
  //#endregion
32434
32443
  //#region src/components/editor/cell/useDeleteCell.tsx
32435
32444
  function lW() {
32436
- let e = (0, Y.c)(4), { deleteCell: t, undoDeleteCell: n } = Me(), { sendDeleteCell: r } = pt(), i;
32445
+ let e = (0, Y.c)(4), { deleteCell: t, undoDeleteCell: n } = Me(), { sendDeleteCell: r } = We(), i;
32437
32446
  return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
32438
- if ($m.get(L)) return;
32439
- let { cellId: i } = e, a = ($m.get(ut).cellData[i]?.code ?? "").trim() === "";
32447
+ if ($m.get(I)) return;
32448
+ let { cellId: i } = e, a = ($m.get(dt).cellData[i]?.code ?? "").trim() === "";
32440
32449
  if (t({ cellId: i }), r({ cellId: i }).catch(() => {
32441
32450
  n();
32442
32451
  }), !a) {
@@ -34966,7 +34975,7 @@ function Zq() {
34966
34975
  return /* @__PURE__ */ new Set();
34967
34976
  }
34968
34977
  var Qq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skippedIds: i, noOutputIds: a, slideTypes: o, onSlideClick: s }) => {
34969
- let l = _e(), { moveCellToIndex: u, createNewCell: d } = Me(), f = lW(), p = (0, q.useRef)(null), m = Xq(p), [h, g] = (0, q.useState)(null), [_, v] = (0, q.useState)(null), y = Gq(t), b = (e, t) => {
34978
+ let l = pe(), { moveCellToIndex: u, createNewCell: d } = Me(), f = lW(), p = (0, q.useRef)(null), m = Xq(p), [h, g] = (0, q.useState)(null), [_, v] = (0, q.useState)(null), y = Gq(t), b = (e, t) => {
34970
34979
  d({
34971
34980
  cellId: e,
34972
34981
  before: t,
@@ -35050,7 +35059,7 @@ var Qq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
35050
35059
  ref: p,
35051
35060
  children: [/* @__PURE__ */ (0, J.jsxs)("div", {
35052
35061
  className: "text-xs text-gray-500 flex items-center gap-0.5",
35053
- children: [/* @__PURE__ */ (0, J.jsx)(Oe, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
35062
+ children: [/* @__PURE__ */ (0, J.jsx)(Ne, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
35054
35063
  }), e.map((e, t) => /* @__PURE__ */ (0, J.jsx)(tJ, {
35055
35064
  cell: e,
35056
35065
  dimensions: y,
@@ -35165,7 +35174,7 @@ var Qq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
35165
35174
  t[51] === u ? F = t[52] : (F = u && /* @__PURE__ */ (0, J.jsxs)(tr, {
35166
35175
  variant: "danger",
35167
35176
  onSelect: u,
35168
- children: [/* @__PURE__ */ (0, J.jsx)(te, { className: "mr-2 h-3.5 w-3.5" }), "Delete cell"]
35177
+ children: [/* @__PURE__ */ (0, J.jsx)(xe, { className: "mr-2 h-3.5 w-3.5" }), "Delete cell"]
35169
35178
  }), t[51] = u, t[52] = F);
35170
35179
  let I;
35171
35180
  t[53] !== N || t[54] !== F ? (I = /* @__PURE__ */ (0, J.jsxs)(rr, { children: [
@@ -35238,7 +35247,7 @@ var Qq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
35238
35247
  cellId: n.id,
35239
35248
  status: n.status,
35240
35249
  output: n.output,
35241
- stale: lt(n, !1)
35250
+ stale: mt(n, !1)
35242
35251
  })
35243
35252
  }), t[30] = n, t[31] = x, t[32] = y, t[33] = S, t[34] = k, t[35] = b, t[36] = P) : P = t[36];
35244
35253
  let F;
@@ -35311,8 +35320,8 @@ function lJ(e) {
35311
35320
  }
35312
35321
  //#endregion
35313
35322
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
35314
- var uJ = q.lazy(() => import("./reveal-component-DsDcTC8C.js")), dJ = (e) => {
35315
- let t = (0, Y.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Xm(me), s = a === "read" || o, c = Xm(Ae) > 1, [l, u] = (0, q.useState)(null), d;
35323
+ var uJ = q.lazy(() => import("./reveal-component-DjEi3rsH.js")), dJ = (e) => {
35324
+ let t = (0, Y.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Xm(it), s = a === "read" || o, c = Xm(ke) > 1, [l, u] = (0, q.useState)(null), d;
35316
35325
  t[0] !== i || t[1] !== n ? (d = sW(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
35317
35326
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
35318
35327
  t[3] !== l || t[4] !== f || t[5] !== g ? (_ = l ? f.findIndex((e) => e.id === l) : g, t[3] = l, t[4] = f, t[5] = g, t[6] = _) : _ = t[6];
@@ -35518,7 +35527,7 @@ var bJ = (e) => {
35518
35527
  let m;
35519
35528
  t[12] === n ? m = t[13] : (m = () => n("bt"), t[12] = n, t[13] = m);
35520
35529
  let h;
35521
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, J.jsx)(je, {
35530
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, J.jsx)(Oe, {
35522
35531
  fontSize: 36,
35523
35532
  className: "w-5 h-5"
35524
35533
  }), t[14] = h) : h = t[14];
@@ -35605,7 +35614,7 @@ var SJ = (e) => {
35605
35614
  name: e
35606
35615
  }), t[0] = r, t[1] = a, t[2] = o) : o = t[2];
35607
35616
  let s = CJ(n, o);
35608
- if (Ve(n)) return null;
35617
+ if (Ct(n)) return null;
35609
35618
  let c = s.focusing ? "" : "text-ellipsis", u;
35610
35619
  t[3] !== i || t[4] !== c ? (u = l("outline-hidden border hover:border-cyan-500/40 focus:border-cyan-500/40", c, i), t[3] = i, t[4] = c, t[5] = u) : u = t[5];
35611
35620
  let d;
@@ -35627,28 +35636,28 @@ function CJ(e, t) {
35627
35636
  let n = (0, Y.c)(13), [r, i] = (0, q.useState)(e), [a, o] = (0, q.useState)(!1), s;
35628
35637
  n[0] !== t || n[1] !== e ? (s = (n) => {
35629
35638
  if (n !== e) {
35630
- if (!n || Ve(n)) {
35639
+ if (!n || Ct(n)) {
35631
35640
  t(n);
35632
35641
  return;
35633
35642
  }
35634
- t(Ct(n, Ce()));
35643
+ t(Ue(n, be()));
35635
35644
  }
35636
35645
  }, n[0] = t, n[1] = e, n[2] = s) : s = n[2];
35637
35646
  let c = s, l;
35638
- n[3] === r ? l = n[4] : (l = Ve(r) ? "" : r, n[3] = r, n[4] = l);
35647
+ n[3] === r ? l = n[4] : (l = Ct(r) ? "" : r, n[3] = r, n[4] = l);
35639
35648
  let u;
35640
35649
  n[5] === Symbol.for("react.memo_cache_sentinel") ? (u = (e) => {
35641
- let t = e.target.value, n = bt(t);
35650
+ let t = e.target.value, n = ye(t);
35642
35651
  i(n);
35643
35652
  }, n[5] = u) : u = n[5];
35644
35653
  let d;
35645
35654
  n[6] === c ? d = n[7] : (d = (e) => {
35646
35655
  if (e.target instanceof HTMLInputElement) {
35647
35656
  let t = e.target.value;
35648
- c(bt(t));
35657
+ c(ye(t));
35649
35658
  } else if (e.target instanceof HTMLSpanElement) {
35650
35659
  let t = e.target.innerText.trim();
35651
- c(bt(t)), e.target.scrollLeft = 0, o(!1);
35660
+ c(ye(t)), e.target.scrollLeft = 0, o(!1);
35652
35661
  }
35653
35662
  }, n[6] = c, n[7] = d);
35654
35663
  let f;
@@ -35669,7 +35678,7 @@ function wJ(e) {
35669
35678
  }
35670
35679
  //#endregion
35671
35680
  //#region src/components/editor/output/useWrapText.ts
35672
- var TJ = de("marimo:console:wrapText", !1, Te);
35681
+ var TJ = de("marimo:console:wrapText", !1, Ee);
35673
35682
  function EJ() {
35674
35683
  let e = (0, Y.c)(3), [t, n] = Qm(TJ), r;
35675
35684
  return e[0] !== n || e[1] !== t ? (r = {
@@ -35689,7 +35698,7 @@ var OJ = (e) => {
35689
35698
  let t = (0, Y.c)(2), n;
35690
35699
  return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ (0, J.jsx)(Za, { children: /* @__PURE__ */ (0, J.jsx)(kJ, { ...e }) }), t[0] = e, t[1] = n), n;
35691
35700
  }, kJ = (e) => {
35692
- let t = (0, Y.c)(63), n = q.useRef(null), { wrapText: r, setWrapText: i } = EJ(), [a, o] = st(e.cellId), [s, c] = q.useState(""), u;
35701
+ let t = (0, Y.c)(63), n = q.useRef(null), { wrapText: r, setWrapText: i } = EJ(), [a, o] = ct(e.cellId), [s, c] = q.useState(""), u;
35693
35702
  t[0] === s ? u = t[1] : (u = {
35694
35703
  value: s,
35695
35704
  setValue: c
@@ -35700,7 +35709,7 @@ var OJ = (e) => {
35700
35709
  if (!e) return;
35701
35710
  let t = e.scrollHeight - e.clientHeight;
35702
35711
  t - e.scrollTop < 120 && (e.scrollTop = t);
35703
- }, t[2] = E) : E = t[2], (0, q.useLayoutEffect)(E), !C && Ve(h)) return null;
35712
+ }, t[2] = E) : E = t[2], (0, q.useLayoutEffect)(E), !C && Ct(h)) return null;
35704
35713
  let D, O, k, A, j, M, N, P, F, I;
35705
35714
  if (t[3] !== g || t[4] !== x || t[5] !== S || t[6] !== C || t[7] !== d || t[8] !== m || t[9] !== a || t[10] !== T || t[11] !== y || t[12] !== b || t[13] !== v || t[14] !== w || t[15] !== o || t[16] !== i || t[17] !== p || t[18] !== s || t[19] !== r) {
35706
35715
  let e = S.toReversed(), u = e.some(NJ), f = e.findIndex(PJ), h;
@@ -35871,7 +35880,7 @@ function IJ(e) {
35871
35880
  }
35872
35881
  //#endregion
35873
35882
  //#region src/core/cells/readonly-code-display.ts
35874
- var LJ = new ie(), RJ = new dt();
35883
+ var LJ = new je(), RJ = new R();
35875
35884
  function zJ(e) {
35876
35885
  let t = e.trim();
35877
35886
  return t ? LJ.isSupported(t) ? {
@@ -35891,7 +35900,7 @@ function zJ(e) {
35891
35900
  //#endregion
35892
35901
  //#region src/core/export/layout.ts
35893
35902
  async function BJ() {
35894
- return await $e(), gY();
35903
+ return await Be(), gY();
35895
35904
  }
35896
35905
  //#endregion
35897
35906
  //#region src/core/static/virtual-file-tracker.ts
@@ -35932,7 +35941,7 @@ function UJ(e) {
35932
35941
  //#endregion
35933
35942
  //#region src/core/static/download-html.ts
35934
35943
  async function WJ(e) {
35935
- let t = Le(), { includeCode: n } = e, r = await t.exportAsHTML({
35944
+ let t = lt(), { includeCode: n } = e, r = await t.exportAsHTML({
35936
35945
  download: !0,
35937
35946
  includeCode: n,
35938
35947
  files: HJ.INSTANCE.filenames(),
@@ -35978,7 +35987,7 @@ function YJ(e) {
35978
35987
  }), [...t.entries()].toSorted(([e], [t]) => e - t);
35979
35988
  }
35980
35989
  function XJ(e, t) {
35981
- let n = new fe().isSupported(e), r = t !== null && !Ie(t);
35990
+ let n = new fe().isSupported(e), r = t !== null && !Le(t);
35982
35991
  return n && r || e.trim() === "";
35983
35992
  }
35984
35993
  //#endregion
@@ -35999,7 +36008,7 @@ var ZJ = (e) => {
35999
36008
  children: h
36000
36009
  }), t[12] = s, t[13] = h, t[14] = g) : g = t[14], g;
36001
36010
  }, QJ = (e) => {
36002
- let t = (0, Y.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = KJ(n.length, i), o = Xm(me), s = Xm(Xr), [c] = oh(), u = Xm(ur), d;
36011
+ let t = (0, Y.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = KJ(n.length, i), o = Xm(it), s = Xm(Xr), [c] = oh(), u = Xm(ur), d;
36003
36012
  t[0] !== o || t[1] !== u ? (d = () => qJ({
36004
36013
  showCodeInRunModePreference: u,
36005
36014
  kioskMode: o
@@ -36051,7 +36060,7 @@ var ZJ = (e) => {
36051
36060
  })
36052
36061
  }) : /* @__PURE__ */ (0, J.jsx)("div", {
36053
36062
  className: "flex-1 flex flex-col items-center justify-center py-8",
36054
- children: /* @__PURE__ */ (0, J.jsx)(re, { className: "w-8 h-8 animate-spin text-muted-foreground" })
36063
+ children: /* @__PURE__ */ (0, J.jsx)(Ae, { className: "w-8 h-8 animate-spin text-muted-foreground" })
36055
36064
  }) : /* @__PURE__ */ (0, J.jsx)(J.Fragment, { children: n.map(v) });
36056
36065
  }, t[10] = r.width, t[11] = n, t[12] = a, t[13] = s, t[14] = v, t[15] = y) : y = t[15];
36057
36066
  let b = y, x = f && m && "gap-5", S;
@@ -36082,7 +36091,7 @@ var ZJ = (e) => {
36082
36091
  ]
36083
36092
  }), t[28] = r, t[29] = a, t[30] = w, t[31] = T, t[32] = D) : D = t[32], D;
36084
36093
  }, $J = (e) => {
36085
- let t = (0, Y.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } = pt(), o = rY, s = iY, c;
36094
+ let t = (0, Y.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } = We(), o = rY, s = iY, c;
36086
36095
  t[0] === a ? c = t[1] : (c = async () => {
36087
36096
  let e = await a();
36088
36097
  Mr(new Blob([e.contents], { type: "text/plain" }), Ln.toPY(document.title));
@@ -36182,7 +36191,7 @@ var ZJ = (e) => {
36182
36191
  }), t[24] = p, t[25] = g), g;
36183
36192
  }, eY = (0, q.memo)((e) => {
36184
36193
  let t = (0, Y.c)(57), { output: n, consoleOutputs: r, cellOutputArea: i, cellId: a, status: o, stopped: s, errored: c, config: u, interrupted: d, staleInputs: f, runStartTimestamp: p, code: m, showCode: h, mode: g, name: _, kiosk: v, showErrorTracebacks: y } = e, b = (0, q.useRef)(null), x;
36185
- t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x = lt({
36194
+ t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x = mt({
36186
36195
  status: o,
36187
36196
  output: n,
36188
36197
  interrupted: d,
@@ -36190,11 +36199,11 @@ var ZJ = (e) => {
36190
36199
  staleInputs: f
36191
36200
  }, !1), t[0] = d, t[1] = n, t[2] = p, t[3] = f, t[4] = o, t[5] = x) : x = t[5];
36192
36201
  let S = x, C;
36193
- t[6] === o ? C = t[7] : (C = Re(o), t[6] = o, t[7] = C);
36202
+ t[6] === o ? C = t[7] : (C = ut(o), t[6] = o, t[7] = C);
36194
36203
  let w = C, T = v && g !== "present", E;
36195
36204
  if (t[8] !== m || t[9] !== c || t[10] !== T || t[11] !== h || t[12] !== s) {
36196
36205
  let e = new fe().isSupported(m);
36197
- E = l("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? gt({
36206
+ E = l("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? Ke({
36198
36207
  errored: c,
36199
36208
  stopped: s
36200
36209
  }) : {
@@ -36253,7 +36262,7 @@ var ZJ = (e) => {
36253
36262
  ]
36254
36263
  }), t[37] = D, t[38] = v, t[39] = y, t[40] = p, t[41] = h, t[42] = g, t[43] = x) : x = t[43], x;
36255
36264
  }
36256
- if (Ue({
36265
+ if (Ye({
36257
36266
  errored: c,
36258
36267
  interrupted: d,
36259
36268
  stopped: s,
@@ -36391,11 +36400,11 @@ function hY({ state: e, plugin: t, cells: n }) {
36391
36400
  }) : t.getInitialLayout(n));
36392
36401
  }
36393
36402
  function gY() {
36394
- let e = Ee(), t = $m.get(fY), { selectedLayout: n } = t;
36403
+ let e = we(), t = $m.get(fY), { selectedLayout: n } = t;
36395
36404
  if (n === "vertical") return null;
36396
36405
  let r = oY.find((e) => e.type === n);
36397
36406
  if (r === void 0) return c.error(`Unknown layout type: ${n}`), null;
36398
- let i = it(e), a = hY({
36407
+ let i = _t(e), a = hY({
36399
36408
  state: t,
36400
36409
  plugin: r,
36401
36410
  cells: i
@@ -36411,7 +36420,7 @@ function _Y(e) {
36411
36420
  let { codes: t, names: n, configs: r, cell_ids: i, last_executed_code: a, last_execution_time: o } = e, s = a || {}, c = o || {};
36412
36421
  return t.map((e, t) => {
36413
36422
  let a = i[t], o = s[a];
36414
- return qe({
36423
+ return Je({
36415
36424
  id: a,
36416
36425
  code: e,
36417
36426
  edited: o ? o !== e : !1,
@@ -36451,7 +36460,7 @@ function bY(e, t) {
36451
36460
  return;
36452
36461
  }
36453
36462
  let { objectIds: y, values: b } = yY(), x = g ? Object.fromEntries(n.map((e) => [e.id, e.code])) : void 0;
36454
- Le().sendInstantiate({
36463
+ lt().sendInstantiate({
36455
36464
  objectIds: y,
36456
36465
  values: b,
36457
36466
  autoRun: r,
@@ -36589,22 +36598,26 @@ function OY({ embeds: e, materialize: t, payloads: n }) {
36589
36598
  n && o.push(r);
36590
36599
  }
36591
36600
  let s = new Set(o.map((e) => e.appId)), c = new Set(o.filter((e) => e.cells.some((e) => e.reactive)).map((e) => e.appId));
36592
- for (let e of o) for (let n of e.cells) {
36593
- let a = i.get(n);
36594
- if (!c.has(e.appId)) continue;
36595
- let o = r.get(e.appId);
36596
- o || (o = {
36597
- id: e.appId,
36598
- payloadBacked: !0,
36599
- cells: []
36600
- }, r.set(e.appId, o));
36601
- let s = o.cells.length, l = {
36602
- cellId: n.cellId,
36603
- output: n.outputHtml,
36604
- code: n.reactive ? n.code : "",
36605
- idx: s
36606
- };
36607
- n.reactive || (l.disabled = !0), o.cells.push(l), t && n.reactive && a?.setAttribute(sv.CELL_IDX, s.toString());
36601
+ for (let e of o) {
36602
+ for (let n of e.cells) {
36603
+ let a = i.get(n);
36604
+ if (!c.has(e.appId)) continue;
36605
+ let o = r.get(e.appId);
36606
+ o || (o = {
36607
+ id: e.appId,
36608
+ payloadBacked: !0,
36609
+ cells: []
36610
+ }, r.set(e.appId, o));
36611
+ let s = o.cells.length, l = {
36612
+ cellId: n.cellId,
36613
+ output: n.outputHtml,
36614
+ code: n.reactive ? n.code : "",
36615
+ idx: s
36616
+ };
36617
+ n.reactive || (l.disabled = !0), o.cells.push(l), t && n.reactive && a?.setAttribute(sv.CELL_IDX, s.toString());
36618
+ }
36619
+ let n = r.get(e.appId);
36620
+ n && e.dependencies?.length && (n.dependencies = [.../* @__PURE__ */ new Set([...n.dependencies ?? [], ...e.dependencies])]);
36608
36621
  }
36609
36622
  if (t) for (let t of e) {
36610
36623
  let e = t.getAttribute(sv.APP_ID);
@@ -36647,14 +36660,15 @@ function PY(e) {
36647
36660
  return r?.code ? r : null;
36648
36661
  }
36649
36662
  function FY(e) {
36650
- return [
36663
+ let t = [
36651
36664
  "import marimo",
36652
36665
  "app = marimo.App()",
36653
36666
  e.cells.map((e) => {
36654
36667
  let t = e.disabled ? "" : e.code, n = t ? t.split("\n").map((e) => ` ${e}`).join("\n") : " pass", r = n.includes("await ") ? "async def" : "def";
36655
36668
  return `${e.disabled ? "@app.cell(disabled=True)" : "@app.cell"}\n${r} __():\n${n}\n return`;
36656
36669
  }).join("\n")
36657
- ].join("\n");
36670
+ ];
36671
+ return e.dependencies?.length && t.unshift("# /// script", `# dependencies = ${JSON.stringify(e.dependencies)}`, "# ///"), t.join("\n");
36658
36672
  }
36659
36673
  function IY(e) {
36660
36674
  if (!e) return "";
@@ -36697,10 +36711,10 @@ function VY(e) {
36697
36711
  return null;
36698
36712
  }
36699
36713
  function HY(e) {
36700
- return ue(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && Array.isArray(e.cells) && e.cells.every(UY) : !1;
36714
+ return se(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && (e.dependencies === void 0 || Array.isArray(e.dependencies) && e.dependencies.every((e) => typeof e == "string")) && Array.isArray(e.cells) && e.cells.every(UY) : !1;
36701
36715
  }
36702
36716
  function UY(e) {
36703
- return ue(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : !1;
36717
+ return se(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : !1;
36704
36718
  }
36705
36719
  //#endregion
36706
36720
  //#region src/core/islands/components/IslandControls.tsx
@@ -36720,7 +36734,7 @@ var WY = (e) => {
36720
36734
  children: a
36721
36735
  }), t[3] = a, t[4] = n, t[5] = o) : o = t[5], o;
36722
36736
  }, GY = (e) => {
36723
- let t = (0, Y.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } = pt(), o;
36737
+ let t = (0, Y.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } = We(), o;
36724
36738
  t[0] === r ? o = t[1] : (o = () => {
36725
36739
  C(r());
36726
36740
  }, t[0] = r, t[1] = o);
@@ -36794,7 +36808,7 @@ var JY = (e) => {
36794
36808
  let t = (0, Y.c)(19), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = KY(i), s = (0, q.useRef)(null), c;
36795
36809
  t[0] === n ? c = t[1] : (c = (e) => e.cellRuntime[n], t[0] = n, t[1] = c);
36796
36810
  let l = c, u;
36797
- t[2] === l ? u = t[3] : (u = ge(ut, l), t[2] = l, t[3] = u);
36811
+ t[2] === l ? u = t[3] : (u = F(dt, l), t[2] = l, t[3] = u);
36798
36812
  let d = Xm(u), f = Xm(ri);
36799
36813
  if (YY(s, d?.status ?? "idle"), !f || !d?.output) {
36800
36814
  let e;
@@ -36804,7 +36818,7 @@ var JY = (e) => {
36804
36818
  children: a
36805
36819
  }), t[4] = a, t[5] = e), e;
36806
36820
  }
36807
- if (Ie(d.output)) {
36821
+ if (Le(d.output)) {
36808
36822
  let e;
36809
36823
  return t[6] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, J.jsx)("div", { ref: s }), t[6] = e) : e = t[6], e;
36810
36824
  }
@@ -36841,7 +36855,7 @@ var XY = (e) => {
36841
36855
  let e;
36842
36856
  return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, J.jsx)(ZY, { children: /* @__PURE__ */ (0, J.jsx)("div", {
36843
36857
  className: "absolute top-1 right-1",
36844
- children: /* @__PURE__ */ (0, J.jsx)(re, { className: "animate-spin size-4" })
36858
+ children: /* @__PURE__ */ (0, J.jsx)(Ae, { className: "animate-spin size-4" })
36845
36859
  }) }), t[0] = e) : e = t[0], e;
36846
36860
  }
36847
36861
  return null;
@@ -36884,7 +36898,7 @@ var XY = (e) => {
36884
36898
  return RY(this);
36885
36899
  }
36886
36900
  getCellIdFromIndex(e) {
36887
- let { cellIds: t } = $m.get(ut);
36901
+ let { cellIds: t } = $m.get(dt);
36888
36902
  return t.inOrderIds.at(e);
36889
36903
  }
36890
36904
  connectedCallback() {
@@ -36898,7 +36912,7 @@ var XY = (e) => {
36898
36912
  };
36899
36913
  syncCellIdsSubscription() {
36900
36914
  if (this.isReactive) {
36901
- this.unsubscribeCellIds ??= $m.sub(wt, () => {
36915
+ this.unsubscribeCellIds ??= $m.sub(Tt, () => {
36902
36916
  this.runtimeCellId = this.cellId, this.renderIsland();
36903
36917
  });
36904
36918
  return;
@@ -36911,7 +36925,7 @@ var XY = (e) => {
36911
36925
  code: r,
36912
36926
  output: t
36913
36927
  });
36914
- let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(j);
36928
+ let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(ce);
36915
36929
  return {
36916
36930
  html: t,
36917
36931
  codeCallback: n && i ? () => {
@@ -36924,7 +36938,7 @@ var XY = (e) => {
36924
36938
  renderIsland() {
36925
36939
  let e = this.renderConfig;
36926
36940
  if (!e) return;
36927
- let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null : F({ html: o });
36941
+ let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null : P({ html: o });
36928
36942
  if (!i) {
36929
36943
  this.removeAttribute("data-status"), this.root?.render(/* @__PURE__ */ (0, J.jsx)(Za, { children: /* @__PURE__ */ (0, J.jsx)(lh, {
36930
36944
  store: $m,
@@ -36945,7 +36959,7 @@ var XY = (e) => {
36945
36959
  getOptionalEditor() {
36946
36960
  let t = this.querySelector(e.editorTagName)?.parentNode?.outerHTML;
36947
36961
  if (t) {
36948
- let e = F({ html: t });
36962
+ let e = P({ html: t });
36949
36963
  if ((0, q.isValidElement)(e)) return e;
36950
36964
  }
36951
36965
  return null;
@@ -36970,7 +36984,7 @@ function nX() {
36970
36984
  //#region src/core/islands/bootstrap.ts
36971
36985
  async function rX(e) {
36972
36986
  let t = e.store || $m, n = e.root || document, r = e.bridge;
36973
- t.set(ct, r), t.set(M, "read"), t.set(pr, null), e.autoInitializePlugins !== !1 && RH();
36987
+ t.set(pt, r), t.set(le, "read"), t.set(pr, null), e.autoInitializePlugins !== !1 && RH();
36974
36988
  let i = Array.from(n.querySelectorAll(iv.ISLAND));
36975
36989
  if (i.length === 0) {
36976
36990
  c.log("No islands found, skipping initialization");
@@ -36978,8 +36992,8 @@ async function rX(e) {
36978
36992
  }
36979
36993
  c.log(`Initializing ${i.length} island(s)`);
36980
36994
  for (let e of i) e.classList.add(cv.NAMESPACE);
36981
- let a = T((e) => {
36982
- t.set(ut, (t) => De(t, e));
36995
+ let a = E((e) => {
36996
+ t.set(dt, (t) => De(t, e));
36983
36997
  });
36984
36998
  t.sub(ci, () => {
36985
36999
  let e = t.get(ci), r = n.querySelectorAll(iv.ISLAND);
@@ -36998,7 +37012,7 @@ async function rX(e) {
36998
37012
  }
36999
37013
  function iX(e, t, n, r) {
37000
37014
  try {
37001
- let i = rt(e);
37015
+ let i = T(e);
37002
37016
  switch (c.debug("Islands received message:", i.op), i.op) {
37003
37017
  case "banner":
37004
37018
  case "missing-package-alert":
@@ -37047,7 +37061,7 @@ function iX(e, t, n, r) {
37047
37061
  }), window.customElements?.get(iv.ISLAND) || mD(iv.ISLAND, QY);
37048
37062
  return;
37049
37063
  case "send-ui-element-message":
37050
- lD.broadcastMessage(i.data.ui_element, i.data.message, he(i.data));
37064
+ lD.broadcastMessage(i.data.ui_element, i.data.message, ue(i.data));
37051
37065
  return;
37052
37066
  case "remove-ui-elements":
37053
37067
  xY(i.data);
@@ -37061,7 +37075,7 @@ function iX(e, t, n, r) {
37061
37075
  case "alert":
37062
37076
  S({
37063
37077
  title: i.data.title,
37064
- description: F({ html: i.data.description }),
37078
+ description: P({ html: i.data.description }),
37065
37079
  variant: i.data.variant
37066
37080
  });
37067
37081
  return;
@@ -37363,7 +37377,7 @@ var xX = class {
37363
37377
  async startApps() {
37364
37378
  let e = EY(this.root, { materialize: !1 }), t = e.length === 1;
37365
37379
  c.debug(`Starting sessions for ${e.length} app(s):`, e.map((e) => `${e.id} (${e.cells.length} cells)`));
37366
- let n = (e.length === 1 && !e[0]?.payloadBacked ? R() : void 0)?.notebookCode, r = t ? e[0] : void 0, i = r ? n || FY(r) : void 0;
37380
+ let n = (e.length === 1 && !e[0]?.payloadBacked ? L() : void 0)?.notebookCode, r = t ? e[0] : void 0, i = r ? n || FY(r) : void 0;
37367
37381
  if (r && this.session?.appId === r.id && this.session.code === i) {
37368
37382
  EY(this.root);
37369
37383
  return;
@@ -37377,7 +37391,7 @@ var xX = class {
37377
37391
  appId: n.id,
37378
37392
  sessionGeneration: ++this.nextSessionGeneration
37379
37393
  }, a = this.session, o = t && a !== void 0;
37380
- this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(ut, ae()), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new Da()), this.session = {
37394
+ this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(dt, ne()), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new Da()), this.session = {
37381
37395
  ...r,
37382
37396
  code: t ? e : void 0
37383
37397
  });
@@ -37395,7 +37409,7 @@ var xX = class {
37395
37409
  t?.code === void 0 || e && t.appId !== e || (this.activeSessionGenerations.delete(t.sessionGeneration), await this.rpc.proxy.request.stopSession({
37396
37410
  appId: t.appId,
37397
37411
  sessionGeneration: t.sessionGeneration
37398
- }), this.store.set(pr, null), this.session = void 0, this.sessionReady = new Da(), this.store.set(ut, ae()));
37412
+ }), this.store.set(pr, null), this.session = void 0, this.sessionReady = new Da(), this.store.set(dt, ne()));
37399
37413
  });
37400
37414
  }
37401
37415
  enqueueAppTransition(e) {
@@ -37411,7 +37425,7 @@ var xX = class {
37411
37425
  sendComponentValues = async (e) => (await this.putControlRequest({
37412
37426
  type: "update-ui-element",
37413
37427
  ...e,
37414
- token: D()
37428
+ token: Ce()
37415
37429
  }), null);
37416
37430
  sendInstantiate = async () => null;
37417
37431
  sendFunctionRequest = async (e) => (await this.putControlRequest({