@marimo-team/islands 0.26.1-dev83 → 0.26.1-dev84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-yQVBQBUW.js → ConnectedDataExplorerComponent-CO9uVewH.js} +12 -12
- package/dist/{ErrorBoundary-DqCVIA2k.js → ErrorBoundary-T8CwNebX.js} +18 -18
- package/dist/{abnfDiagram-VCTEODGH-Ck_lXwQR.js → abnfDiagram-VCTEODGH-Ba0MYVW8.js} +2 -2
- package/dist/{any-language-editor-Cx4idbgX.js → any-language-editor-BNe8do3C.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-XeVhic7Z.js → architectureDiagram-5GKGNRK7-7MqAehef.js} +1 -1
- package/dist/{assertNever-473SFxLt.js → assertNever-5vhHGKOK.js} +2 -2
- package/dist/{chat-ui-D1mRz9h6.js → chat-ui-CjZbdpzb.js} +18 -18
- package/dist/{check-DmTIavbZ.js → check-DUIc04aK.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DdQni67K.js → chunk-IMKFNOWR-CAWA0HGB.js} +1 -1
- package/dist/{chunk-SHT3W25Y-BdK-vMct.js → chunk-SHT3W25Y-BIwVQjG5.js} +1 -1
- package/dist/{chunk-SVP7TREG-cpFZk4Ca.js → chunk-SVP7TREG-Cux251TB.js} +1 -1
- package/dist/{chunk-TICWLB2K-DDgQFRgT.js → chunk-TICWLB2K-DJVQ6khO.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-DeojX9X4.js → classDiagram-ZZMXUADV-Cwve77ev.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DPfTAiQ6.js → classDiagram-v2-VYDZK3BY-BAeHKXmD.js} +2 -2
- package/dist/{code-visibility-Bg6LdTgJ.js → code-visibility-BBgRhs2A.js} +17 -17
- package/dist/{common-BXohsH8R.js → common-BF30ifb8.js} +3138 -3130
- package/dist/{config-D-lhQq-h.js → config-CShkLThS.js} +35 -33
- package/dist/{copy-icon-DuxRkh7T.js → copy-icon-CmNLxT5_.js} +2 -2
- package/dist/{createReducer-D3pBhIVD.js → createReducer-BUQhgLOI.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-DyY9TvuI.js → cynefinDiagram-5FMLGOSQ-t4eEkPJh.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-BPCOgtKg.js → dagre-GXQ25YYZ-IuZuI28B.js} +1 -1
- package/dist/{data-grid-overlay-editor-A_0tSQlT.js → data-grid-overlay-editor-ChntsIBb.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-KaF-C6kd.js → diagram-S7CK7UJ4-D8R5Q_ok.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DkeqoSvK.js → diagram-UQ7AKVKN-BGuMPsr-.js} +1 -1
- package/dist/{diagram-VX7I27RA-DExolTAf.js → diagram-VX7I27RA-BkTtpO8P.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BioFuBF3.js → diagram-Z3DM3KII-C0__Mxfm.js} +1 -1
- package/dist/{dialog-CvyFEwby.js → dialog-BvjfalZ9.js} +30 -30
- package/dist/{dropdown-menu-BiXHfje7.js → dropdown-menu-D0DeN-aL.js} +637 -637
- package/dist/{ebnfDiagram-PWID7BFC-BSb9k1ed.js → ebnfDiagram-PWID7BFC-CSESPZoz.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-PWA30a_r.js → erDiagram-RLTQ6QDP-DsDTtabH.js} +1 -1
- package/dist/{error-banner-B9HQMSaH.js → error-banner-CXLjTW24.js} +60 -65
- package/dist/{error-entries-P6Qpq6wP.js → error-entries-CsXAdy1j.js} +112 -112
- package/dist/{feedback-button-DSC9SNgL.js → feedback-button-nmOvfn22.js} +7 -7
- package/dist/{flowDiagram-HODETNUW-BPtD__Zz.js → flowDiagram-HODETNUW-qxDPYbfV.js} +2 -2
- package/dist/{formats-BF95BoCT.js → formats-BRDSQgKN.js} +1 -1
- package/dist/{glide-data-editor-NVoO9114.js → glide-data-editor-SkR9hqZZ.js} +11 -11
- package/dist/{glide-utils-iHKKQPJ8.js → glide-utils-CD8BaFTm.js} +2 -2
- package/dist/{globals-L7tZEIcx.js → globals-BjiU5aEs.js} +3 -3
- package/dist/{html-to-image-DhrFZL7t.js → html-to-image-CwpapHNl.js} +1059 -1059
- package/dist/{infoDiagram-27XIBGKW-SJuilBEE.js → infoDiagram-27XIBGKW-B5hq8RM_.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DjzyxMr8.js → ishikawaDiagram-5VMMS53U-DkHc_9ET.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-D2_qopGt.js → kanban-definition-UXKFOSKX-CqkTFXmU.js} +1 -1
- package/dist/main.js +423 -423
- package/dist/{mermaid-DcowNmCx.js → mermaid-pmVHDUQA.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-pEra10M0.js → mindmap-definition-YA3MSWOX-D6cNa__z.js} +1 -1
- package/dist/{number-overlay-editor-CjeU_gt8.js → number-overlay-editor-GjrMTG9X.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CHOPKVOf.js → pegDiagram-XKGWAZYB-CmWJX_s1.js} +2 -2
- package/dist/{pencil-FAv6JUvp.js → pencil-CxMgOe04.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-yGDhsyEN.js → pieDiagram-E7YTZNPT-CAQAxHah.js} +1 -1
- package/dist/{process-output-CBPqVQBu.js → process-output-ztSj9cDn.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-CeKEPdyc.js → railroadDiagram-O6MQD6OU-jlSsiQg3.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DSAbAzKe.js → requirementDiagram-BXWQKSXE-DkDjfPhn.js} +1 -1
- package/dist/{reveal-component-D8H5fBkv.js → reveal-component-BrZbx6s7.js} +11 -11
- package/dist/{select-BszV-bbI.js → select-CEnB18uc.js} +350 -350
- package/dist/{sequenceDiagram-WJ2MYXX4-DVhWj_9H.js → sequenceDiagram-WJ2MYXX4-DLywsGCW.js} +1 -1
- package/dist/{spec-CRfw-lOm.js → spec-Dz-Avv1m.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-CDQ2MltG.js → stateDiagram-D77RDMKH-DUmlKwYU.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BQmvwBaz.js → stateDiagram-v2-MP3YSRHH-D646KiXs.js} +2 -2
- package/dist/{static-state-BtDNJuc2.js → static-state-DhVFm8Z6.js} +6 -6
- package/dist/{swimlanes-42K2YHIH-DLOUTCEL.js → swimlanes-42K2YHIH-L7B1GphF.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BVKrkNJ6.js → swimlanesDiagram-VR7AAH4N-DEu2wxtC.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-Cb2JoCSd.js → timeline-definition-24CTP7MA-DDPyx1yG.js} +1 -1
- package/dist/{toast-QsOAIPfq.js → toast-BTjH6fIf.js} +187 -187
- package/dist/{tooltip-BQZ-Bm6h.js → tooltip-DyLdBIM4.js} +73 -73
- package/dist/{use-restore-focus-DT1TZACX.js → use-restore-focus-DJ_-uSn_.js} +1340 -1339
- package/dist/{useDateFormatter-D3gyMY-g.js → useDateFormatter-HpKD0jEC.js} +2 -2
- package/dist/{useDeepCompareMemoize-CO6rO5Mq.js → useDeepCompareMemoize-CHx-NxMl.js} +1 -1
- package/dist/{useLifecycle-C9UTzCY8.js → useLifecycle-tPpAt-OE.js} +1 -1
- package/dist/{vega-component-i5lZ23n7.js → vega-component-BxJFcD2G.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-Cm3EcCcP.js → vennDiagram-4TSXK5OY-CRwWeb7g.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DjlUs2CC.js → wardleyDiagram-VM6X3IG4-DVlG9eoq.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DxNDul9l.js → xychartDiagram-S5SC5T6Z-CM32AISp.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +240 -93
- package/src/components/editor/errors/send-error-report-button.tsx +139 -41
- package/src/core/notebook/replica/__tests__/fixtures.ts +1 -0
- package/src/core/notebook/replica/backend.ts +4 -1
- package/src/core/session/active-notebook.ts +6 -0
- package/src/core/transports/__tests__/static.test.ts +21 -18
- package/src/core/transports/static.ts +1 -0
package/dist/main.js
CHANGED
|
@@ -2,26 +2,26 @@ import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { _ as a, a as o, d as s, g as c, h as l, i as u, l as d, m as f, n as p, p as m, r as h, s as g, t as _, v } from "./button-Z2R2272J.js";
|
|
3
3
|
import { t as y } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as b } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { i as x, n as S, r as C, t as w } from "./copy-icon-
|
|
6
|
-
import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, J as N, L as P, Lt as F, M as I, Mt as L, O as R, Ot as z, P as B, R as ee, Rt as te, St as ne, Ut as re, Vt as ie, Wt as ae, Y as oe, _ as se, a as ce, at as le, b as ue, bt as de, c as fe, ct as pe, ft as me, ht as he, i as ge, it as _e, j as ve, kt as ye, lt as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, pt as Ee, tt as De, ut as Oe, vt as ke, z as Ae, zt as je } from "./html-to-image-
|
|
7
|
-
import { a as Me, f as Ne, h as Pe, i as Fe, m as Ie, n as Le, o as Re, r as ze, t as Be } from "./tooltip-
|
|
8
|
-
import { D as Ve, E as He, S as Ue, T as We, _ as Ge, a as Ke, c as qe, d as Je, f as Ye, g as Xe, h as Ze, i as Qe, l as $e, m as et, n as tt, o as nt, p as rt, r as it, s as at, t as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./spec-
|
|
9
|
-
import { $ as ft, $t as pt, A as mt, An as ht, At as gt, B as _t, Bt as vt, C as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mn as Vt, Mt as Ht, N as Ut, Nt as Wt, O as Gt, On as Kt, Ot as qt, P as Jt, Pt as Yt, Q as Xt, Qt as Zt, R as Qt, Rt as $t, S as en, Sn as tn, St as nn, T as rn, Tn as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Z as _n, Zt as vn, _ as yn, _n as bn, _t as xn, an as Sn, at as Cn, b as wn, bn as Tn, bt as En, c as Dn, cn as On, ct as kn, d as An, dn as jn, dt as Mn, en as Nn, f as Pn, fn as Fn, ft as In, g as Ln, gn as Rn, gt as zn, h as Bn, hn as Vn, ht as Hn, in as Un, it as Wn, j as Gn, jn as Kn, jt as qn, k as Jn, kn as Yn, kt as Xn, ln as Zn, lt as Qn, m as $n, mn as er, mt as tr, nn as nr, on as rr, ot as ir, p as ar, pn as or, pt as sr, q as cr, qt as lr, r as ur, rn as dr, rt as fr, sn as pr, st as mr, t as hr, tn as gr, u as _r, un as vr, ut as yr, v as br, vn as xr, vt as Sr, w as Cr, wn as wr, x as Tr, xn as Er, xt as Dr, y as Or, yn as kr, yt as Ar, z as jr, zt as Mr } from "./common-
|
|
10
|
-
import { a as Nr, n as Pr, s as Fr, t as Ir } from "./useLifecycle-
|
|
11
|
-
import { t as Lr } from "./check-
|
|
12
|
-
import { A as Rr, C as zr, D as Br, M as Vr, O as Hr, a as Ur, c as Wr, d as Gr, i as Kr, k as qr, l as Jr, n as Yr, o as Xr, r as Zr, s as Qr, t as $r, w as ei, x as ti } from "./select-
|
|
13
|
-
import { $ as ni, At as ri, Cn as ii, E as ai, H as oi, K as si, Nt as ci, Q as li, Sn as ui, T as di, V as fi, X as pi, Y as mi, Z as hi, _ as gi, a as _i, b as vi, c as yi, f as bi, g as xi, h as Si, i as Ci, m as wi, mt as Ti, n as Ei, r as Di, rt as Oi, s as ki, t as Ai, v as ji, vt as Mi, w as Ni, x as Pi, xn as Fi, y as Ii } from "./dropdown-menu-
|
|
14
|
-
import { a as Li, c as Ri,
|
|
15
|
-
import { $t as Ui, A as Wi, At as Gi, Bt as Ki, C as qi, Ct as Ji, Dt as Yi, Ft as Xi, H as Zi, I as Qi, It as $i, J as ea, Jt as ta, Nt as na, Pt as ra, Qt as ia, S as aa, St as oa, T as sa, U as ca, V as la, W as ua, X as da, Y as fa, Zt as pa, _ as ma, bt as ha, d as ga, en as _a, g as va, h as ya, ht as ba, l as xa, m as Sa, mt as Ca, nt as wa, p as Ta, rn as Ea, rt as Da, s as Oa, tn as ka, vt as Aa, w as ja, xt as Ma } from "./error-entries-
|
|
16
|
-
import { a as Na, d as Pa, i as Fa, n as Ia, o as La, r as Ra, s as za, t as Ba, u as Va } from "./process-output-
|
|
17
|
-
import { t as Ha } from "./pencil-
|
|
18
|
-
import { a as Ua, c as Wa, d as Ga, f as Ka, i as qa, l as Ja, r as Ya } from "./glide-utils-
|
|
19
|
-
import { n as Xa, t as Za } from "./globals-
|
|
20
|
-
import { a as Qa, i as $a, n as eo, r as to, s as no, t as ro } from "./assertNever-
|
|
5
|
+
import { i as x, n as S, r as C, t as w } from "./copy-icon-CmNLxT5_.js";
|
|
6
|
+
import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, J as N, L as P, Lt as F, M as I, Mt as L, O as R, Ot as z, P as B, R as ee, Rt as te, St as ne, Ut as re, Vt as ie, Wt as ae, Y as oe, _ as se, a as ce, at as le, b as ue, bt as de, c as fe, ct as pe, ft as me, ht as he, i as ge, it as _e, j as ve, kt as ye, lt as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, pt as Ee, tt as De, ut as Oe, vt as ke, z as Ae, zt as je } from "./html-to-image-CwpapHNl.js";
|
|
7
|
+
import { a as Me, f as Ne, h as Pe, i as Fe, m as Ie, n as Le, o as Re, r as ze, t as Be } from "./tooltip-DyLdBIM4.js";
|
|
8
|
+
import { D as Ve, E as He, S as Ue, T as We, _ as Ge, a as Ke, c as qe, d as Je, f as Ye, g as Xe, h as Ze, i as Qe, l as $e, m as et, n as tt, o as nt, p as rt, r as it, s as at, t as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./spec-Dz-Avv1m.js";
|
|
9
|
+
import { $ as ft, $t as pt, A as mt, An as ht, At as gt, B as _t, Bt as vt, C as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mn as Vt, Mt as Ht, N as Ut, Nt as Wt, O as Gt, On as Kt, Ot as qt, P as Jt, Pt as Yt, Q as Xt, Qt as Zt, R as Qt, Rt as $t, S as en, Sn as tn, St as nn, T as rn, Tn as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Z as _n, Zt as vn, _ as yn, _n as bn, _t as xn, an as Sn, at as Cn, b as wn, bn as Tn, bt as En, c as Dn, cn as On, ct as kn, d as An, dn as jn, dt as Mn, en as Nn, f as Pn, fn as Fn, ft as In, g as Ln, gn as Rn, gt as zn, h as Bn, hn as Vn, ht as Hn, in as Un, it as Wn, j as Gn, jn as Kn, jt as qn, k as Jn, kn as Yn, kt as Xn, ln as Zn, lt as Qn, m as $n, mn as er, mt as tr, nn as nr, on as rr, ot as ir, p as ar, pn as or, pt as sr, q as cr, qt as lr, r as ur, rn as dr, rt as fr, sn as pr, st as mr, t as hr, tn as gr, u as _r, un as vr, ut as yr, v as br, vn as xr, vt as Sr, w as Cr, wn as wr, x as Tr, xn as Er, xt as Dr, y as Or, yn as kr, yt as Ar, z as jr, zt as Mr } from "./common-BF30ifb8.js";
|
|
10
|
+
import { a as Nr, n as Pr, s as Fr, t as Ir } from "./useLifecycle-tPpAt-OE.js";
|
|
11
|
+
import { t as Lr } from "./check-DUIc04aK.js";
|
|
12
|
+
import { A as Rr, C as zr, D as Br, M as Vr, O as Hr, a as Ur, c as Wr, d as Gr, i as Kr, k as qr, l as Jr, n as Yr, o as Xr, r as Zr, s as Qr, t as $r, w as ei, x as ti } from "./select-CEnB18uc.js";
|
|
13
|
+
import { $ as ni, At as ri, Cn as ii, E as ai, H as oi, K as si, Nt as ci, Q as li, Sn as ui, T as di, V as fi, X as pi, Y as mi, Z as hi, _ as gi, a as _i, b as vi, c as yi, f as bi, g as xi, h as Si, i as Ci, m as wi, mt as Ti, n as Ei, r as Di, rt as Oi, s as ki, t as Ai, v as ji, vt as Mi, w as Ni, x as Pi, xn as Fi, y as Ii } from "./dropdown-menu-D0DeN-aL.js";
|
|
14
|
+
import { a as Li, c as Ri, o as zi, r as Bi, s as Vi, t as Hi } from "./config-CShkLThS.js";
|
|
15
|
+
import { $t as Ui, A as Wi, At as Gi, Bt as Ki, C as qi, Ct as Ji, Dt as Yi, Ft as Xi, H as Zi, I as Qi, It as $i, J as ea, Jt as ta, Nt as na, Pt as ra, Qt as ia, S as aa, St as oa, T as sa, U as ca, V as la, W as ua, X as da, Y as fa, Zt as pa, _ as ma, bt as ha, d as ga, en as _a, g as va, h as ya, ht as ba, l as xa, m as Sa, mt as Ca, nt as wa, p as Ta, rn as Ea, rt as Da, s as Oa, tn as ka, vt as Aa, w as ja, xt as Ma } from "./error-entries-CsXAdy1j.js";
|
|
16
|
+
import { a as Na, d as Pa, i as Fa, n as Ia, o as La, r as Ra, s as za, t as Ba, u as Va } from "./process-output-ztSj9cDn.js";
|
|
17
|
+
import { t as Ha } from "./pencil-CxMgOe04.js";
|
|
18
|
+
import { a as Ua, c as Wa, d as Ga, f as Ka, i as qa, l as Ja, r as Ya } from "./glide-utils-CD8BaFTm.js";
|
|
19
|
+
import { n as Xa, t as Za } from "./globals-BjiU5aEs.js";
|
|
20
|
+
import { a as Qa, i as $a, n as eo, r as to, s as no, t as ro } from "./assertNever-5vhHGKOK.js";
|
|
21
21
|
import { t as io } from "./react-dom-DdqGVp5N.js";
|
|
22
22
|
import { t as ao } from "./jsx-runtime-D8btoEHk.js";
|
|
23
|
-
import { $ as oo, A as so,
|
|
24
|
-
import { f as Ds, n as Os, p as ks, t as As } from "./error-banner-
|
|
23
|
+
import { $ as oo, A as so, At as co, B as lo, Bt as uo, Cn as fo, Ct as po, D as mo, Et as ho, F as go, Ft as _o, G as vo, Gt as yo, H as bo, Ht as xo, I as So, It as Co, J as V, K as wo, Kt as To, L as Eo, M as Do, N as Oo, Nt as ko, O as Ao, P as jo, Q as Mo, R as No, S as Po, Sn as Fo, T as Io, U as Lo, Ut as Ro, V as zo, Vt as Bo, W as H, X as Vo, Y as U, _n as Ho, _t as Uo, at as W, bn as Wo, bt as Go, c as Ko, ct as qo, d as Jo, dt as Yo, et as Xo, f as Zo, ft as Qo, gn as $o, h as es, hn as ts, ht as ns, j as rs, k as is, kt as as, l as os, lt as ss, nt as cs, o as ls, on as us, ot as G, p as ds, pn as fs, pt as ps, q as ms, rt as hs, st as gs, tt as _s, u as vs, ut as K, vn as ys, vt as bs, xn as xs, xt as Ss, y as Cs, yn as ws, yt as Ts, z as Es } from "./use-restore-focus-DJ_-uSn_.js";
|
|
24
|
+
import { f as Ds, n as Os, p as ks, t as As } from "./error-banner-CXLjTW24.js";
|
|
25
25
|
import { m as js } from "./isArrayLikeObject-B-HXCsex.js";
|
|
26
26
|
import { t as Ms } from "./pick-DgpAbcwP.js";
|
|
27
27
|
import { t as Ns } from "./debounce-DrhhziJv.js";
|
|
@@ -29,21 +29,21 @@ import { t as Ps } from "./objects-DCmMvZtn.js";
|
|
|
29
29
|
import { t as Fs } from "./invariant-DLmrl-hA.js";
|
|
30
30
|
import { t as Is } from "./useEvent-BoN7U38T.js";
|
|
31
31
|
import { o as Ls, r as Rs, t as zs } from "./arrays-DoQ-AILx.js";
|
|
32
|
-
import { t as Bs } from "./createReducer-
|
|
32
|
+
import { t as Bs } from "./createReducer-BUQhgLOI.js";
|
|
33
33
|
import { H as Vs, M as Hs, f as Us, t as Ws, z as q } from "./dist-BIaGGUbU.js";
|
|
34
|
-
import { c as Gs, i as Ks, m as qs, n as Js, o as Ys, r as Xs, t as Zs } from "./static-state-
|
|
35
|
-
import { i as Qs, n as $s, r as ec } from "./formats-
|
|
34
|
+
import { c as Gs, i as Ks, m as qs, n as Js, o as Ys, r as Xs, t as Zs } from "./static-state-DhVFm8Z6.js";
|
|
35
|
+
import { i as Qs, n as $s, r as ec } from "./formats-BRDSQgKN.js";
|
|
36
36
|
import { n as tc } from "./once-NnpX_HnX.js";
|
|
37
37
|
import { n as nc, t as rc } from "./esm-Dw2ZydG_.js";
|
|
38
38
|
import { n as ic } from "./dist-CQfpgadU.js";
|
|
39
39
|
import { i as ac } from "./dist-BG-7Qpaj.js";
|
|
40
40
|
import { p as oc } from "./dist-BidYR5m4.js";
|
|
41
41
|
import { t as sc } from "./useAsyncData-P5-Oovhq.js";
|
|
42
|
-
import { n as cc, r as lc, t as uc } from "./useDeepCompareMemoize-
|
|
43
|
-
import { t as dc } from "./ErrorBoundary-
|
|
42
|
+
import { n as cc, r as lc, t as uc } from "./useDeepCompareMemoize-CHx-NxMl.js";
|
|
43
|
+
import { t as dc } from "./ErrorBoundary-T8CwNebX.js";
|
|
44
44
|
import { G as fc, W as pc } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
45
45
|
import { a as mc, n as hc } from "./loader-qPmiRXZd.js";
|
|
46
|
-
import { a as gc, c as _c, i as vc, l as yc, o as bc, s as xc, t as Sc } from "./code-visibility-
|
|
46
|
+
import { a as gc, c as _c, i as vc, l as yc, o as bc, s as xc, t as Sc } from "./code-visibility-BBgRhs2A.js";
|
|
47
47
|
import { t as Cc } from "./esm-DY8dGAjJ.js";
|
|
48
48
|
//#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
49
49
|
var wc = Object.freeze({
|
|
@@ -1867,8 +1867,8 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
1867
1867
|
}, Hd = {
|
|
1868
1868
|
LTR: "ltr",
|
|
1869
1869
|
RTL: "rtl"
|
|
1870
|
-
}, Ud = "NavigationMenu", [Wd, Gd, Kd] = Qa(Ud), [qd, Jd, Yd] = Qa(Ud), [Xd, Zd] =
|
|
1871
|
-
let { __scopeNavigationMenu: n, value: r, onValueChange: i, defaultValue: a, delayDuration: o = 200, skipDelayDuration: s = 300, orientation: c = Vd.Horizontal, dir: l, activationMode: u = Bd.Automatic, ...d } = e, [f, p] = J.useState(null), h = m(t, p), g = Rr(l), _ = J.useRef(0), v = J.useRef(0), y = J.useRef(0), [b, x] = J.useState(!0), [S, C] =
|
|
1870
|
+
}, Ud = "NavigationMenu", [Wd, Gd, Kd] = Qa(Ud), [qd, Jd, Yd] = Qa(Ud), [Xd, Zd] = xs(Ud, [Kd, Yd]), [Qd, $d] = Xd(Ud), [ef, tf] = Xd(Ud), nf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ zd(function(e, t) {
|
|
1871
|
+
let { __scopeNavigationMenu: n, value: r, onValueChange: i, defaultValue: a, delayDuration: o = 200, skipDelayDuration: s = 300, orientation: c = Vd.Horizontal, dir: l, activationMode: u = Bd.Automatic, ...d } = e, [f, p] = J.useState(null), h = m(t, p), g = Rr(l), _ = J.useRef(0), v = J.useRef(0), y = J.useRef(0), [b, x] = J.useState(!0), [S, C] = ys({
|
|
1872
1872
|
prop: r,
|
|
1873
1873
|
onChange: /* @__PURE__ */ zd((e) => {
|
|
1874
1874
|
let t = e !== "", n = s > 0;
|
|
@@ -1915,7 +1915,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
1915
1915
|
C((t) => t === e ? "" : e);
|
|
1916
1916
|
},
|
|
1917
1917
|
onItemDismiss: () => C(""),
|
|
1918
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
1918
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Fo.nav, {
|
|
1919
1919
|
"aria-label": "Main",
|
|
1920
1920
|
"data-orientation": c,
|
|
1921
1921
|
dir: g,
|
|
@@ -1931,7 +1931,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
1931
1931
|
rootNavigationMenu: r,
|
|
1932
1932
|
value: c,
|
|
1933
1933
|
previousValue: Id(c),
|
|
1934
|
-
baseId:
|
|
1934
|
+
baseId: $o(),
|
|
1935
1935
|
dir: i,
|
|
1936
1936
|
orientation: a,
|
|
1937
1937
|
activationMode: o,
|
|
@@ -1939,12 +1939,12 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
1939
1939
|
onViewportChange: g,
|
|
1940
1940
|
indicatorTrack: y,
|
|
1941
1941
|
onIndicatorTrackChange: b,
|
|
1942
|
-
onTriggerEnter:
|
|
1943
|
-
onTriggerLeave:
|
|
1944
|
-
onContentEnter:
|
|
1945
|
-
onContentLeave:
|
|
1946
|
-
onItemSelect:
|
|
1947
|
-
onItemDismiss:
|
|
1942
|
+
onTriggerEnter: ts(d),
|
|
1943
|
+
onTriggerLeave: ts(f),
|
|
1944
|
+
onContentEnter: ts(p),
|
|
1945
|
+
onContentLeave: ts(m),
|
|
1946
|
+
onItemSelect: ts(l),
|
|
1947
|
+
onItemDismiss: ts(u),
|
|
1948
1948
|
onViewportContentChange: J.useCallback((e, t) => {
|
|
1949
1949
|
v((n) => (n.set(e, t), new Map(n)));
|
|
1950
1950
|
}, []),
|
|
@@ -1961,12 +1961,12 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
1961
1961
|
})
|
|
1962
1962
|
});
|
|
1963
1963
|
}, "NavigationMenuProvider"), af = "NavigationMenuList", of = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ zd(function(e, t) {
|
|
1964
|
-
let { __scopeNavigationMenu: n, ...r } = e, i = $d(af, n), a = /* @__PURE__ */ (0, Y.jsx)(
|
|
1964
|
+
let { __scopeNavigationMenu: n, ...r } = e, i = $d(af, n), a = /* @__PURE__ */ (0, Y.jsx)(Fo.ul, {
|
|
1965
1965
|
"data-orientation": i.orientation,
|
|
1966
1966
|
...r,
|
|
1967
1967
|
ref: t
|
|
1968
1968
|
});
|
|
1969
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
1969
|
+
return /* @__PURE__ */ (0, Y.jsx)(Fo.div, {
|
|
1970
1970
|
style: { position: "relative" },
|
|
1971
1971
|
ref: i.onIndicatorTrackChange,
|
|
1972
1972
|
children: /* @__PURE__ */ (0, Y.jsx)(Wd.Slot, {
|
|
@@ -1978,7 +1978,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
1978
1978
|
})
|
|
1979
1979
|
});
|
|
1980
1980
|
}, "NavigationMenuList")), [sf, cf] = Xd("NavigationMenuItem"), lf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ zd(function(e, t) {
|
|
1981
|
-
let { __scopeNavigationMenu: n, value: r, ...i } = e, a =
|
|
1981
|
+
let { __scopeNavigationMenu: n, value: r, ...i } = e, a = $o(), o = r || a || "LEGACY_REACT_AUTO_VALUE", s = J.useRef(null), c = J.useRef(null), l = J.useRef(null), u = J.useRef(() => {}), d = J.useRef(!1), f = J.useCallback((e = "start") => {
|
|
1982
1982
|
if (s.current) {
|
|
1983
1983
|
u.current();
|
|
1984
1984
|
let t = Mf(s.current);
|
|
@@ -2001,7 +2001,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2001
2001
|
onFocusProxyEnter: f,
|
|
2002
2002
|
onRootContentClose: p,
|
|
2003
2003
|
onContentFocusOutside: p,
|
|
2004
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2004
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Fo.li, {
|
|
2005
2005
|
...i,
|
|
2006
2006
|
ref: t
|
|
2007
2007
|
})
|
|
@@ -2013,7 +2013,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2013
2013
|
value: o.value,
|
|
2014
2014
|
children: /* @__PURE__ */ (0, Y.jsx)(jf, {
|
|
2015
2015
|
asChild: !0,
|
|
2016
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2016
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Fo.button, {
|
|
2017
2017
|
id: l,
|
|
2018
2018
|
disabled: r,
|
|
2019
2019
|
"data-disabled": r ? "" : void 0,
|
|
@@ -2022,19 +2022,19 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2022
2022
|
"aria-controls": p ? u : void 0,
|
|
2023
2023
|
...i,
|
|
2024
2024
|
ref: c,
|
|
2025
|
-
onPointerEnter:
|
|
2025
|
+
onPointerEnter: ws(e.onPointerEnter, () => {
|
|
2026
2026
|
f.current = !1, o.wasEscapeCloseRef.current = !1;
|
|
2027
2027
|
}),
|
|
2028
|
-
onPointerMove:
|
|
2028
|
+
onPointerMove: ws(e.onPointerMove, zf(() => {
|
|
2029
2029
|
r || f.current || o.wasEscapeCloseRef.current || d.current || (a.onTriggerEnter(o.value), d.current = !0);
|
|
2030
2030
|
})),
|
|
2031
|
-
onPointerLeave:
|
|
2031
|
+
onPointerLeave: ws(e.onPointerLeave, zf(() => {
|
|
2032
2032
|
r || (a.onTriggerLeave(), d.current = !1);
|
|
2033
2033
|
})),
|
|
2034
|
-
onClick:
|
|
2034
|
+
onClick: ws(e.onClick, () => {
|
|
2035
2035
|
a.onItemSelect(o.value), f.current = p;
|
|
2036
2036
|
}),
|
|
2037
|
-
onKeyDown:
|
|
2037
|
+
onKeyDown: ws(e.onKeyDown, (e) => {
|
|
2038
2038
|
let t = {
|
|
2039
2039
|
horizontal: "ArrowDown",
|
|
2040
2040
|
vertical: a.dir === Hd.RTL ? "ArrowLeft" : "ArrowRight"
|
|
@@ -2056,29 +2056,29 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2056
2056
|
let { __scopeNavigationMenu: n, active: r, onSelect: i, ...a } = e;
|
|
2057
2057
|
return /* @__PURE__ */ (0, Y.jsx)(jf, {
|
|
2058
2058
|
asChild: !0,
|
|
2059
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2059
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Fo.a, {
|
|
2060
2060
|
"data-active": r ? "" : void 0,
|
|
2061
2061
|
"aria-current": r ? "page" : void 0,
|
|
2062
2062
|
...a,
|
|
2063
2063
|
ref: t,
|
|
2064
|
-
onClick:
|
|
2064
|
+
onClick: ws(e.onClick, (e) => {
|
|
2065
2065
|
let t = e.target, n = new CustomEvent(ff, {
|
|
2066
2066
|
bubbles: !0,
|
|
2067
2067
|
cancelable: !0
|
|
2068
2068
|
});
|
|
2069
|
-
if (t.addEventListener(ff, (e) => i?.(e), { once: !0 }),
|
|
2069
|
+
if (t.addEventListener(ff, (e) => i?.(e), { once: !0 }), fo(t, n), !n.defaultPrevented && !e.metaKey) {
|
|
2070
2070
|
let e = new CustomEvent(bf, {
|
|
2071
2071
|
bubbles: !0,
|
|
2072
2072
|
cancelable: !0
|
|
2073
2073
|
});
|
|
2074
|
-
|
|
2074
|
+
fo(t, e);
|
|
2075
2075
|
}
|
|
2076
2076
|
}, { checkForDefaultPrevented: !1 })
|
|
2077
2077
|
})
|
|
2078
2078
|
});
|
|
2079
2079
|
}, "NavigationMenuLink")), mf = "NavigationMenuIndicator", hf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ zd(function(e, t) {
|
|
2080
2080
|
let { forceMount: n, ...r } = e, i = $d(mf, e.__scopeNavigationMenu), a = !!i.value;
|
|
2081
|
-
return i.indicatorTrack ? Ld.createPortal(/* @__PURE__ */ (0, Y.jsx)(
|
|
2081
|
+
return i.indicatorTrack ? Ld.createPortal(/* @__PURE__ */ (0, Y.jsx)(Ho, {
|
|
2082
2082
|
present: n || a,
|
|
2083
2083
|
children: /* @__PURE__ */ (0, Y.jsx)(gf, {
|
|
2084
2084
|
...r,
|
|
@@ -2097,7 +2097,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2097
2097
|
offset: u ? o.offsetLeft : o.offsetTop
|
|
2098
2098
|
});
|
|
2099
2099
|
}, "handlePositionChange");
|
|
2100
|
-
return Ff(o, f), Ff(i.indicatorTrack, f), c ? /* @__PURE__ */ (0, Y.jsx)(
|
|
2100
|
+
return Ff(o, f), Ff(i.indicatorTrack, f), c ? /* @__PURE__ */ (0, Y.jsx)(Fo.div, {
|
|
2101
2101
|
"aria-hidden": !0,
|
|
2102
2102
|
"data-state": d ? "visible" : "hidden",
|
|
2103
2103
|
"data-orientation": i.orientation,
|
|
@@ -2134,14 +2134,14 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2134
2134
|
forceMount: n,
|
|
2135
2135
|
...l,
|
|
2136
2136
|
ref: o
|
|
2137
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
2137
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(Ho, {
|
|
2138
2138
|
present: n || s,
|
|
2139
2139
|
children: /* @__PURE__ */ (0, Y.jsx)(xf, {
|
|
2140
2140
|
"data-state": c,
|
|
2141
2141
|
...l,
|
|
2142
2142
|
ref: o,
|
|
2143
|
-
onPointerEnter:
|
|
2144
|
-
onPointerLeave:
|
|
2143
|
+
onPointerEnter: ws(e.onPointerEnter, i.onContentEnter),
|
|
2144
|
+
onPointerLeave: ws(e.onPointerLeave, zf(i.onContentLeave)),
|
|
2145
2145
|
style: {
|
|
2146
2146
|
pointerEvents: !s && i.isRootMenu ? "none" : void 0,
|
|
2147
2147
|
...l.style
|
|
@@ -2150,7 +2150,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2150
2150
|
});
|
|
2151
2151
|
}, "NavigationMenuContent")), yf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ zd(function(e, t) {
|
|
2152
2152
|
let { onViewportContentChange: n, onViewportContentRemove: r } = $d(_f, e.__scopeNavigationMenu);
|
|
2153
|
-
return
|
|
2153
|
+
return Wo(() => {
|
|
2154
2154
|
n(e.value, {
|
|
2155
2155
|
ref: t,
|
|
2156
2156
|
...e
|
|
@@ -2159,7 +2159,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2159
2159
|
e,
|
|
2160
2160
|
t,
|
|
2161
2161
|
n
|
|
2162
|
-
]),
|
|
2162
|
+
]), Wo(() => () => r(e.value), [e.value, r]), null;
|
|
2163
2163
|
}, "ViewportContentMounter")), bf = "navigationMenu.rootContentDismiss", xf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ zd(function(e, t) {
|
|
2164
2164
|
let { __scopeNavigationMenu: n, value: r, triggerRef: i, focusProxyRef: a, wasEscapeCloseRef: o, onRootContentClose: s, onContentFocusOutside: c, ...l } = e, u = $d(_f, n), d = J.useRef(null), f = m(d, t), p = Lf(u.baseId, r), h = Rf(u.baseId, r), g = Gd(n), _ = J.useRef(null), { onItemDismiss: v } = u;
|
|
2165
2165
|
J.useEffect(() => {
|
|
@@ -2199,7 +2199,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2199
2199
|
]);
|
|
2200
2200
|
return /* @__PURE__ */ (0, Y.jsx)(Of, {
|
|
2201
2201
|
asChild: !0,
|
|
2202
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2202
|
+
children: /* @__PURE__ */ (0, Y.jsx)(fs, {
|
|
2203
2203
|
id: h,
|
|
2204
2204
|
"aria-labelledby": p,
|
|
2205
2205
|
"data-motion": y,
|
|
@@ -2214,30 +2214,30 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2214
2214
|
});
|
|
2215
2215
|
d.current?.dispatchEvent(e);
|
|
2216
2216
|
},
|
|
2217
|
-
onFocusOutside:
|
|
2217
|
+
onFocusOutside: ws(e.onFocusOutside, (e) => {
|
|
2218
2218
|
c();
|
|
2219
2219
|
let t = e.target, n = e.detail.originalEvent.relatedTarget, r = u.rootNavigationMenu?.contains(t), i = u.rootNavigationMenu?.contains(n);
|
|
2220
2220
|
(r || !i) && e.preventDefault();
|
|
2221
2221
|
}),
|
|
2222
|
-
onPointerDownOutside:
|
|
2222
|
+
onPointerDownOutside: ws(e.onPointerDownOutside, (e) => {
|
|
2223
2223
|
let t = e.target, n = g().some((e) => e.ref.current?.contains(t)), r = u.isRootMenu && u.viewport?.contains(t);
|
|
2224
2224
|
(n || r || !u.isRootMenu) && e.preventDefault();
|
|
2225
2225
|
}),
|
|
2226
|
-
onKeyDown:
|
|
2226
|
+
onKeyDown: ws(e.onKeyDown, (e) => {
|
|
2227
2227
|
let t = e.altKey || e.ctrlKey || e.metaKey;
|
|
2228
2228
|
if (e.key === "Tab" && !t) {
|
|
2229
2229
|
let t = Mf(e.currentTarget), n = document.activeElement, r = t.findIndex((e) => e === n);
|
|
2230
2230
|
Nf(e.shiftKey ? t.slice(0, r).reverse() : t.slice(r + 1, t.length)) ? e.preventDefault() : a.current?.focus();
|
|
2231
2231
|
}
|
|
2232
2232
|
}),
|
|
2233
|
-
onEscapeKeyDown:
|
|
2233
|
+
onEscapeKeyDown: ws(e.onEscapeKeyDown, (e) => {
|
|
2234
2234
|
o.current = !0;
|
|
2235
2235
|
})
|
|
2236
2236
|
})
|
|
2237
2237
|
});
|
|
2238
2238
|
}, "NavigationMenuContentImpl")), Sf = "NavigationMenuViewport", Cf = s(Sf), wf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ zd(function(e, t) {
|
|
2239
2239
|
let { forceMount: n, ...r } = e, i = !!$d(Sf, e.__scopeNavigationMenu).value;
|
|
2240
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2240
|
+
return /* @__PURE__ */ (0, Y.jsx)(Ho, {
|
|
2241
2241
|
present: n || i,
|
|
2242
2242
|
children: /* @__PURE__ */ (0, Y.jsx)(Tf, {
|
|
2243
2243
|
...r,
|
|
@@ -2251,7 +2251,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2251
2251
|
width: u.offsetWidth,
|
|
2252
2252
|
height: u.offsetHeight
|
|
2253
2253
|
});
|
|
2254
|
-
}, "handleSizeChange")), /* @__PURE__ */ (0, Y.jsxs)(
|
|
2254
|
+
}, "handleSizeChange")), /* @__PURE__ */ (0, Y.jsxs)(Fo.div, {
|
|
2255
2255
|
"data-state": If(h),
|
|
2256
2256
|
"data-orientation": a.orientation,
|
|
2257
2257
|
...i,
|
|
@@ -2262,11 +2262,11 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2262
2262
|
"--radix-navigation-menu-viewport-height": p,
|
|
2263
2263
|
...i.style
|
|
2264
2264
|
},
|
|
2265
|
-
onPointerEnter:
|
|
2266
|
-
onPointerLeave:
|
|
2265
|
+
onPointerEnter: ws(e.onPointerEnter, a.onContentEnter),
|
|
2266
|
+
onPointerLeave: ws(e.onPointerLeave, zf(a.onContentLeave)),
|
|
2267
2267
|
children: [/* @__PURE__ */ (0, Y.jsx)(Cf, { children: r }), Array.from(s.items).map(([e, { ref: t, forceMount: n, ...r }]) => {
|
|
2268
2268
|
let i = g === e;
|
|
2269
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2269
|
+
return /* @__PURE__ */ (0, Y.jsx)(Ho, {
|
|
2270
2270
|
present: n || i,
|
|
2271
2271
|
children: /* @__PURE__ */ (0, Y.jsx)(Ef, {
|
|
2272
2272
|
...r,
|
|
@@ -2291,7 +2291,7 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2291
2291
|
scope: n,
|
|
2292
2292
|
children: /* @__PURE__ */ (0, Y.jsx)(qd.Slot, {
|
|
2293
2293
|
scope: n,
|
|
2294
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2294
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Fo.div, {
|
|
2295
2295
|
dir: i.dir,
|
|
2296
2296
|
...r,
|
|
2297
2297
|
ref: t
|
|
@@ -2307,10 +2307,10 @@ var Ld = /* @__PURE__ */ e(io(), 1), Y = ao(), Rd = Object.defineProperty, zd =
|
|
|
2307
2307
|
let { __scopeNavigationMenu: n, ...r } = e, i = Jd(n), a = $d(Af, n);
|
|
2308
2308
|
return /* @__PURE__ */ (0, Y.jsx)(qd.ItemSlot, {
|
|
2309
2309
|
scope: n,
|
|
2310
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2310
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Fo.button, {
|
|
2311
2311
|
...r,
|
|
2312
2312
|
ref: t,
|
|
2313
|
-
onKeyDown:
|
|
2313
|
+
onKeyDown: ws(e.onKeyDown, (e) => {
|
|
2314
2314
|
if ([
|
|
2315
2315
|
"Home",
|
|
2316
2316
|
"End",
|
|
@@ -2357,8 +2357,8 @@ function Pf(e) {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
zd(Pf, "removeFromTabOrder");
|
|
2359
2359
|
function Ff(e, t) {
|
|
2360
|
-
let n =
|
|
2361
|
-
|
|
2360
|
+
let n = ts(t);
|
|
2361
|
+
Wo(() => {
|
|
2362
2362
|
let t = 0;
|
|
2363
2363
|
if (e) {
|
|
2364
2364
|
let r = new ResizeObserver(() => {
|
|
@@ -2428,8 +2428,8 @@ var Bf = Object.defineProperty, Vf = (e, t) => Bf(e, "name", {
|
|
|
2428
2428
|
"ArrowUp",
|
|
2429
2429
|
"ArrowLeft"
|
|
2430
2430
|
]
|
|
2431
|
-
}, qf = "Slider", [Jf, Yf, Xf] = Qa(qf), [Zf, Qf] =
|
|
2432
|
-
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = Hf.Horizontal, disabled: s = !1, minStepsBetweenThumbs: c = 0, preserveThumbOrder: l = !1, defaultValue: u = [r], value: d, onValueChange: f = /* @__PURE__ */ Vf(() => {}, "onValueChange"), onValueCommit: p = /* @__PURE__ */ Vf(() => {}, "onValueCommit"), inverted: h = !1, form: g, ..._ } = e, v = J.useRef(/* @__PURE__ */ new Set()), y = J.useRef(0), b = J.useRef(!1), [x, S] = J.useState(null), C = o === Hf.Horizontal ? ip : ap, [w, T] = J.useState(null), E = m(t, T), [D = [], O] =
|
|
2431
|
+
}, qf = "Slider", [Jf, Yf, Xf] = Qa(qf), [Zf, Qf] = xs(qf, [Xf]), [$f, ep] = Zf(qf), tp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Vf(function(e, t) {
|
|
2432
|
+
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = Hf.Horizontal, disabled: s = !1, minStepsBetweenThumbs: c = 0, preserveThumbOrder: l = !1, defaultValue: u = [r], value: d, onValueChange: f = /* @__PURE__ */ Vf(() => {}, "onValueChange"), onValueCommit: p = /* @__PURE__ */ Vf(() => {}, "onValueCommit"), inverted: h = !1, form: g, ..._ } = e, v = J.useRef(/* @__PURE__ */ new Set()), y = J.useRef(0), b = J.useRef(!1), [x, S] = J.useState(null), C = o === Hf.Horizontal ? ip : ap, [w, T] = J.useState(null), E = m(t, T), [D = [], O] = ys({
|
|
2433
2433
|
prop: d,
|
|
2434
2434
|
defaultProp: u,
|
|
2435
2435
|
onChange: /* @__PURE__ */ Vf((e) => {
|
|
@@ -2500,7 +2500,7 @@ var Bf = Object.defineProperty, Vf = (e, t) => Bf(e, "name", {
|
|
|
2500
2500
|
"data-disabled": s ? "" : void 0,
|
|
2501
2501
|
..._,
|
|
2502
2502
|
ref: E,
|
|
2503
|
-
onPointerDown:
|
|
2503
|
+
onPointerDown: ws(_.onPointerDown, () => {
|
|
2504
2504
|
s || (k.current = D, b.current = !1);
|
|
2505
2505
|
}),
|
|
2506
2506
|
min: r,
|
|
@@ -2619,30 +2619,30 @@ var Bf = Object.defineProperty, Vf = (e, t) => Bf(e, "name", {
|
|
|
2619
2619
|
});
|
|
2620
2620
|
}, "SliderVertical")), op = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Vf(function(e, t) {
|
|
2621
2621
|
let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: s, onStepKeyDown: c, ...l } = e, u = ep(qf, n);
|
|
2622
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2622
|
+
return /* @__PURE__ */ (0, Y.jsx)(Fo.span, {
|
|
2623
2623
|
...l,
|
|
2624
2624
|
ref: t,
|
|
2625
|
-
onKeyDown:
|
|
2625
|
+
onKeyDown: ws(e.onKeyDown, (e) => {
|
|
2626
2626
|
e.key === "Home" ? (o(e), e.preventDefault()) : e.key === "End" ? (s(e), e.preventDefault()) : Wf.concat(Gf).includes(e.key) && (c(e), e.preventDefault());
|
|
2627
2627
|
}),
|
|
2628
|
-
onPointerDown:
|
|
2628
|
+
onPointerDown: ws(e.onPointerDown, (e) => {
|
|
2629
2629
|
let t = e.target;
|
|
2630
2630
|
t.setPointerCapture(e.pointerId), e.preventDefault(), u.thumbs.has(t) ? t.focus({
|
|
2631
2631
|
preventScroll: !0,
|
|
2632
2632
|
focusVisible: !1
|
|
2633
2633
|
}) : r(e);
|
|
2634
2634
|
}),
|
|
2635
|
-
onPointerMove:
|
|
2635
|
+
onPointerMove: ws(e.onPointerMove, (e) => {
|
|
2636
2636
|
e.target.hasPointerCapture(e.pointerId) && i(e);
|
|
2637
2637
|
}),
|
|
2638
|
-
onPointerUp:
|
|
2638
|
+
onPointerUp: ws(e.onPointerUp, (e) => {
|
|
2639
2639
|
let t = e.target;
|
|
2640
2640
|
t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), a(e));
|
|
2641
2641
|
})
|
|
2642
2642
|
});
|
|
2643
2643
|
}, "SliderImpl")), sp = "SliderTrack", cp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Vf(function(e, t) {
|
|
2644
2644
|
let { __scopeSlider: n, ...r } = e, i = ep(sp, n);
|
|
2645
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2645
|
+
return /* @__PURE__ */ (0, Y.jsx)(Fo.span, {
|
|
2646
2646
|
"data-disabled": i.disabled ? "" : void 0,
|
|
2647
2647
|
"data-orientation": i.orientation,
|
|
2648
2648
|
...r,
|
|
@@ -2650,7 +2650,7 @@ var Bf = Object.defineProperty, Vf = (e, t) => Bf(e, "name", {
|
|
|
2650
2650
|
});
|
|
2651
2651
|
}, "SliderTrack")), lp = "SliderRange", up = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Vf(function(e, t) {
|
|
2652
2652
|
let { __scopeSlider: n, ...r } = e, i = ep(lp, n), a = rp(lp, n), o = J.useRef(null), s = m(t, o), c = i.values.length, l = i.values.map((e) => xp(e, i.min, i.max)), u = c > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
|
|
2653
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2653
|
+
return /* @__PURE__ */ (0, Y.jsx)(Fo.span, {
|
|
2654
2654
|
"data-orientation": i.orientation,
|
|
2655
2655
|
"data-disabled": i.disabled ? "" : void 0,
|
|
2656
2656
|
...r,
|
|
@@ -2697,7 +2697,7 @@ var hp = "SliderThumbTrigger", gp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */
|
|
|
2697
2697
|
},
|
|
2698
2698
|
children: /* @__PURE__ */ (0, Y.jsx)(Jf.ItemSlot, {
|
|
2699
2699
|
scope: n,
|
|
2700
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2700
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Fo.span, {
|
|
2701
2701
|
role: "slider",
|
|
2702
2702
|
"aria-label": e["aria-label"] || f,
|
|
2703
2703
|
"aria-valuemin": i.min,
|
|
@@ -2710,7 +2710,7 @@ var hp = "SliderThumbTrigger", gp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */
|
|
|
2710
2710
|
...r,
|
|
2711
2711
|
ref: d,
|
|
2712
2712
|
style: s === void 0 ? { display: "none" } : e.style,
|
|
2713
|
-
onFocus:
|
|
2713
|
+
onFocus: ws(e.onFocus, () => {
|
|
2714
2714
|
i.valueIndexToChangeRef.current = o;
|
|
2715
2715
|
})
|
|
2716
2716
|
})
|
|
@@ -2747,14 +2747,14 @@ var hp = "SliderThumbTrigger", gp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */
|
|
|
2747
2747
|
i,
|
|
2748
2748
|
a,
|
|
2749
2749
|
c
|
|
2750
|
-
]), /* @__PURE__ */ (0, Y.jsx)(
|
|
2750
|
+
]), /* @__PURE__ */ (0, Y.jsx)(Fo.input, {
|
|
2751
2751
|
style: { display: "none" },
|
|
2752
2752
|
name: o,
|
|
2753
2753
|
form: s,
|
|
2754
2754
|
...n,
|
|
2755
2755
|
ref: u,
|
|
2756
2756
|
defaultValue: a,
|
|
2757
|
-
onInput:
|
|
2757
|
+
onInput: ws(t, (e) => {
|
|
2758
2758
|
d.current && e.stopPropagation();
|
|
2759
2759
|
})
|
|
2760
2760
|
});
|
|
@@ -2836,20 +2836,20 @@ var Mp = Object.defineProperty, Np = (e, t) => Mp(e, "name", {
|
|
|
2836
2836
|
value: t,
|
|
2837
2837
|
configurable: !0
|
|
2838
2838
|
}), Pp = "Toggle", Fp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Np(function(e, t) {
|
|
2839
|
-
let { pressed: n, defaultPressed: r, onPressedChange: i, ...a } = e, [o, s] =
|
|
2839
|
+
let { pressed: n, defaultPressed: r, onPressedChange: i, ...a } = e, [o, s] = ys({
|
|
2840
2840
|
prop: n,
|
|
2841
2841
|
onChange: i,
|
|
2842
2842
|
defaultProp: r ?? !1,
|
|
2843
2843
|
caller: Pp
|
|
2844
2844
|
});
|
|
2845
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2845
|
+
return /* @__PURE__ */ (0, Y.jsx)(Fo.button, {
|
|
2846
2846
|
type: "button",
|
|
2847
2847
|
"aria-pressed": o,
|
|
2848
2848
|
"data-state": o ? "on" : "off",
|
|
2849
2849
|
"data-disabled": e.disabled ? "" : void 0,
|
|
2850
2850
|
...a,
|
|
2851
2851
|
ref: t,
|
|
2852
|
-
onClick:
|
|
2852
|
+
onClick: ws(e.onClick, () => {
|
|
2853
2853
|
e.disabled || s(!o);
|
|
2854
2854
|
})
|
|
2855
2855
|
});
|
|
@@ -2870,18 +2870,18 @@ Lp ||= {};
|
|
|
2870
2870
|
//#endregion
|
|
2871
2871
|
//#region ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/iso.js
|
|
2872
2872
|
function Rp(e) {
|
|
2873
|
-
return
|
|
2873
|
+
return Go(jo, e);
|
|
2874
2874
|
}
|
|
2875
2875
|
//#endregion
|
|
2876
2876
|
//#region ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/coerce.js
|
|
2877
2877
|
function zp(e) {
|
|
2878
|
-
return
|
|
2878
|
+
return Ts(lo, e);
|
|
2879
2879
|
}
|
|
2880
2880
|
function Bp(e) {
|
|
2881
|
-
return
|
|
2881
|
+
return bs(So, e);
|
|
2882
2882
|
}
|
|
2883
2883
|
function Vp(e) {
|
|
2884
|
-
return
|
|
2884
|
+
return Uo(so, e);
|
|
2885
2885
|
}
|
|
2886
2886
|
//#endregion
|
|
2887
2887
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/button/useToggleButton.mjs
|
|
@@ -2968,7 +2968,7 @@ function Gp(e, { signal: t }) {
|
|
|
2968
2968
|
//#endregion
|
|
2969
2969
|
//#region src/core/notebook/replica/frame.ts
|
|
2970
2970
|
function Kp(e, t, { signal: n }) {
|
|
2971
|
-
let r =
|
|
2971
|
+
let r = To((e) => ({
|
|
2972
2972
|
notebook: e(t.notebookAtom),
|
|
2973
2973
|
generation: e(t.generationAtom),
|
|
2974
2974
|
document: e(t.documentAtom),
|
|
@@ -2977,20 +2977,20 @@ function Kp(e, t, { signal: n }) {
|
|
|
2977
2977
|
executions: e(t.executionsAtom),
|
|
2978
2978
|
results: e(t.resultsAtom),
|
|
2979
2979
|
runtime: e(t.runtimeAtom)
|
|
2980
|
-
})), i =
|
|
2980
|
+
})), i = To(e.get(r)), a = Gp(() => e.set(i, e.get(r)), { signal: n });
|
|
2981
2981
|
if (!n.aborted) {
|
|
2982
2982
|
let t = e.sub(r, a);
|
|
2983
2983
|
n.addEventListener("abort", t, { once: !0 });
|
|
2984
2984
|
}
|
|
2985
2985
|
return {
|
|
2986
|
-
notebookAtom:
|
|
2987
|
-
generationAtom:
|
|
2988
|
-
documentAtom:
|
|
2989
|
-
shownDocumentAtom:
|
|
2990
|
-
analysisAtom:
|
|
2991
|
-
executionsAtom:
|
|
2992
|
-
resultsAtom:
|
|
2993
|
-
runtimeAtom:
|
|
2986
|
+
notebookAtom: To((e) => e(i).notebook),
|
|
2987
|
+
generationAtom: To((e) => e(i).generation),
|
|
2988
|
+
documentAtom: To((e) => e(i).document),
|
|
2989
|
+
shownDocumentAtom: To((e) => e(i).shownDocument),
|
|
2990
|
+
analysisAtom: To((e) => e(i).analysis),
|
|
2991
|
+
executionsAtom: To((e) => e(i).executions),
|
|
2992
|
+
resultsAtom: To((e) => e(i).results),
|
|
2993
|
+
runtimeAtom: To((e) => e(i).runtime)
|
|
2994
2994
|
};
|
|
2995
2995
|
}
|
|
2996
2996
|
//#endregion
|
|
@@ -3010,9 +3010,9 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3010
3010
|
]).describe("How far a host has gotten finding the notebooks in a project.\nWhile it is `indexing`, more notebooks are coming. Once it is\n`indexed`, the host believes it has found every notebook under the\nroot. A `partial` project is one the host stopped scanning on\npurpose, or one with something it could not read.\n"), $p = G({
|
|
3011
3011
|
id: Zp,
|
|
3012
3012
|
name: K().describe("A label to show people, usually the name of the root directory."),
|
|
3013
|
-
root:
|
|
3013
|
+
root: Qo([K(), wo()]).describe("The absolute path of the project's directory, written the way the host's operating system writes paths. Null when the project has no directory."),
|
|
3014
3014
|
status: Qp,
|
|
3015
|
-
message:
|
|
3015
|
+
message: Qo([K(), wo()]).describe("Why the host stopped scanning. Null unless `status` is `partial`."),
|
|
3016
3016
|
operations: V(K()).describe("Operations this client may call on the project, today `notebook.create`. A subset of `host.operations` selected by the client's permissions, independently of the project's current state. The host sends the project again when it changes.")
|
|
3017
3017
|
}).describe("A project is a group of notebooks that the host presents together, usually a directory."), em = G({
|
|
3018
3018
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
@@ -3025,10 +3025,10 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3025
3025
|
}).describe("The `project` event, carried by the catalog stream."), nm = K().min(1).describe("Identifies a notebook. Unique within the host and unchanged while the notebook exists."), rm = G({
|
|
3026
3026
|
id: nm,
|
|
3027
3027
|
project_id: Zp,
|
|
3028
|
-
path:
|
|
3028
|
+
path: Qo([K(), wo()]).describe("The file's path relative to the project root, written the way the host's operating system writes paths. Null when the notebook has no file, such as one not yet saved, or one deleted while a runtime still refers to it."),
|
|
3029
3029
|
name: K().describe("A label to show people. Derived from the filename when the host has nothing better."),
|
|
3030
3030
|
operations: V(K()).describe("Operations this client may call on the notebook, such as `notebook.edit` or `runtime.start`. A subset of `host.operations` selected by the client's permissions, independently of the notebook's current state. The `runtime` object shows whether a runtime is attached, and preconditions still apply when an operation is called. The host sends the notebook again when it changes."),
|
|
3031
|
-
modified_at:
|
|
3031
|
+
modified_at: Qo([qp, wo()]).describe("A hint of when the file was last modified, for display and ordering. It can lag, since a host need not send the notebook again when only this value changes. Null when the host does not know.")
|
|
3032
3032
|
}).describe("A notebook is a document and its results as the host knows them,\nusually backed by a file. Its kernel, when it has one, is a\nseparate object, the runtime.\n"), im = G({
|
|
3033
3033
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3034
3034
|
time: qp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3042,10 +3042,10 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3042
3042
|
order: V(om).describe("Cell ids in display order. A permutation of the notebook's cells, each appearing exactly once."),
|
|
3043
3043
|
app_config: cs({}).describe("Notebook-level settings, the keyword arguments to `marimo.App` such as `width` and `app_title`. Informational for now; no change sets it over this protocol."),
|
|
3044
3044
|
etag: sm.describe("Identifies the document as currently applied. It changes when the order, the app config, or any cell's `etag` does."),
|
|
3045
|
-
saved_etag:
|
|
3045
|
+
saved_etag: Qo([sm, wo()]).describe("Identifies the document as last written to the host's store, computed the same way over that state. Equal to `etag` when every accepted change has been persisted. Null when nothing has been persisted, which is the case for a scratch copy."),
|
|
3046
3046
|
order_etag: sm.describe("Identifies the order alone. Editing a cell does not change it."),
|
|
3047
3047
|
app_config_etag: sm.describe("Identifies the app config alone."),
|
|
3048
|
-
version:
|
|
3048
|
+
version: Mo().min(1).describe("Counts changes to the cells, the order, or the app config. A save does not advance it. Comparable only within one notebook while it is in the catalog.")
|
|
3049
3049
|
}).describe("The document as a whole, without its cells, which are their own\nobjects: the cell order and app config. One per notebook,\nand removed with it. The order and the app\nconfig carry their own etags, so an edit to one does not conflict\nwith an edit to the other, or with edits to cells.\n"), lm = G({
|
|
3050
3050
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3051
3051
|
time: qp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3055,19 +3055,19 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3055
3055
|
id: K().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
|
|
3056
3056
|
data: lm
|
|
3057
3057
|
}).describe("The `document` event, carried by the notebook stream."), dm = G({
|
|
3058
|
-
column:
|
|
3058
|
+
column: Qo([Mo(), wo()]).describe("The column the cell sits in, for multi-column layouts. Null in a single column."),
|
|
3059
3059
|
disabled: U().describe("Whether the cell is kept from running."),
|
|
3060
3060
|
hide_code: U().describe("Whether clients hide the code by default. This is a presentation preference; source availability is represented by `Cell.code`."),
|
|
3061
3061
|
expand_output: U().describe("Whether clients show the full output rather than a scrolled box.")
|
|
3062
3062
|
}).describe("How a cell is laid out and whether it runs. Every field is always present, so a cell's etag is well defined."), fm = K().min(1).describe("Opaque code identity assigned by the host. Clients compare cell and execution fingerprints for freshness. Incompatible schemes MUST produce distinct fingerprints."), pm = G({
|
|
3063
3063
|
id: om,
|
|
3064
3064
|
notebook_id: nm,
|
|
3065
|
-
code:
|
|
3065
|
+
code: Qo([K(), wo()]).describe("The cell's source code, with newline line endings, or null when the host does not expose source to this client. An empty string is an empty cell. A host normalizes other line endings when it loads a file. Source availability does not grant editing permission; see the notebook's operations."),
|
|
3066
3066
|
name: K().describe("The cell's name. `_` for an anonymous cell; otherwise a Python identifier, unique within the notebook."),
|
|
3067
3067
|
config: dm,
|
|
3068
3068
|
etag: sm.describe("Precondition for edits and cell runs. Covers exact source, name, and config."),
|
|
3069
3069
|
code_fingerprint: fm.describe("Fingerprint of the actual source, including when `code` is null. Formatting-only edits may preserve it. Independent of cell name, config, and source visibility."),
|
|
3070
|
-
version:
|
|
3070
|
+
version: Mo().min(1).describe("The document version at which the cell was created or last changed.")
|
|
3071
3071
|
}).describe("A unit of code and configuration in the document. A cell event\nfires when its code, name, or config changes. Markdown and SQL\ncells are code that calls `mo.md` or `mo.sql`; a client chooses\nthe editor to show.\n"), mm = G({
|
|
3072
3072
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3073
3073
|
time: qp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3078,15 +3078,15 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3078
3078
|
data: mm
|
|
3079
3079
|
}).describe("The `cell` event, carried by the notebook stream."), gm = K().min(1).describe("Identifies a runtime. Unique within the host; every start and restart creates a new id."), _m = G({
|
|
3080
3080
|
status: H(["starting"]),
|
|
3081
|
-
message:
|
|
3081
|
+
message: Qo([K(), wo()]).describe("A note about progress, such as the packages being installed. Null when the host has nothing to report.")
|
|
3082
3082
|
}), vm = G({ status: H(["ready"]) }), ym = G({ status: H(["stopping"]) }), bm = G({ kind: H(["stopped"]) }), xm = G({
|
|
3083
3083
|
kind: H(["failed"]),
|
|
3084
|
-
message:
|
|
3085
|
-
}), Sm =
|
|
3084
|
+
message: Qo([K(), wo()]).describe("Why the kernel could not start or why it exited, to show people. Null when the host does not know.")
|
|
3085
|
+
}), Sm = Qo([bm, xm]).describe("How a runtime ended, tagged on `kind`. A `stopped` runtime was\nended by a client or the host. A `failed` runtime could not start,\nor its kernel exited unexpectedly.\n"), Cm = G({
|
|
3086
3086
|
status: H(["ended"]),
|
|
3087
3087
|
ended_at: qp.describe("When the runtime ended."),
|
|
3088
3088
|
outcome: Sm
|
|
3089
|
-
}), wm =
|
|
3089
|
+
}), wm = Qo([
|
|
3090
3090
|
_m,
|
|
3091
3091
|
vm,
|
|
3092
3092
|
ym,
|
|
@@ -3094,7 +3094,7 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3094
3094
|
]).describe("Where a runtime is in its life, tagged on `status`. A `starting`\nruntime is bringing its kernel up. A `ready` runtime accepts work.\nA `stopping` runtime is shutting its kernel down. An `ended`\nruntime has no kernel and does not change again.\n"), Tm = G({
|
|
3095
3095
|
id: gm,
|
|
3096
3096
|
notebook_id: nm,
|
|
3097
|
-
marimo_version:
|
|
3097
|
+
marimo_version: Qo([K(), wo()]).describe("The version of marimo running the kernel. Null until the host knows it."),
|
|
3098
3098
|
created_at: qp.describe("When the host created this runtime and began starting it."),
|
|
3099
3099
|
state: wm
|
|
3100
3100
|
}).describe("A runtime is a kernel attached to one notebook, and a notebook has\nat most one. It ends when a client or the host stops it or its\nprocess exits. The notebook keeps the ended runtime, so clients can\nsee how it ended, until another one starts or the notebook closes.\nThe host then sends `runtime.removed`. Every start and restart\ncreates a new runtime with a new id. Executions carry their producer's\nruntime id, and their results are live while that runtime has not ended.\n"), Em = G({
|
|
@@ -3108,9 +3108,9 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3108
3108
|
}).describe("The `runtime` event, carried by the catalog and notebook streams."), Om = K().min(1).describe("Identifies an attachment. Unique within the host."), km = /* @__PURE__ */ RegExp("^[!-~]+$"), Am = /* @__PURE__ */ RegExp("^[a-z0-9-]+$"), jm = G({
|
|
3109
3109
|
id: Om,
|
|
3110
3110
|
notebook_id: nm,
|
|
3111
|
-
identity:
|
|
3111
|
+
identity: Qo([K().min(1).max(128).regex(km), wo()]).describe("The opaque client identity supplied by `Marimo-Attachment-Identity`.\nNull when none was supplied. Consumers can group attachments\nwith the same identity within a host. It does not identify an\nindividual connection or change its lifetime.\n"),
|
|
3112
3112
|
kind: K().regex(Am).describe("What kind of thing is attached, supplied by `Marimo-Attachment-Kind`, such as `browser`, `editor`, or `agent`. Defaults to `client` when the header is omitted. Clients accept kinds they do not recognize."),
|
|
3113
|
-
name:
|
|
3113
|
+
name: Qo([K().max(256), wo()]).describe("A label to show people, supplied by `Marimo-Attachment-Name`, such as the browser or editor's name. Null when the header is omitted or empty."),
|
|
3114
3114
|
created_at: qp.describe("When it attached.")
|
|
3115
3115
|
}).describe("An attachment is a consumer connected to a notebook, such as a\nbrowser tab, an editor, or an agent. Opening the notebook's stream\ncreates one. It is removed when that connection closes, and not\nwhen the notebook's runtime stops or restarts. Each stream has its\nown attachment, even when several share a client identity.\n"), Mm = G({
|
|
3116
3116
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
@@ -3126,7 +3126,7 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3126
3126
|
}), Im = G({
|
|
3127
3127
|
kind: H(["code"]),
|
|
3128
3128
|
code: K().describe("The submitted code, which the run's scratch execution evaluates.")
|
|
3129
|
-
}), Lm = G({ kind: H(["runtime"]) }), Rm =
|
|
3129
|
+
}), Lm = G({ kind: H(["runtime"]) }), Rm = Qo([
|
|
3130
3130
|
Fm,
|
|
3131
3131
|
Im,
|
|
3132
3132
|
Lm
|
|
@@ -3135,17 +3135,17 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3135
3135
|
started_at: qp.describe("When the first execution started.")
|
|
3136
3136
|
}), Vm = G({ kind: H(["succeeded"]) }), Hm = G({
|
|
3137
3137
|
kind: H(["failed"]),
|
|
3138
|
-
message:
|
|
3139
|
-
}), Um = G({ kind: H(["cancelled"]) }), Wm =
|
|
3138
|
+
message: Qo([K(), wo()]).describe("Why the host could not finish the cycle, to show people. Null when the run failed because an execution's code raised.")
|
|
3139
|
+
}), Um = G({ kind: H(["cancelled"]) }), Wm = Qo([
|
|
3140
3140
|
Vm,
|
|
3141
3141
|
Hm,
|
|
3142
3142
|
Um
|
|
3143
3143
|
]).describe("How a run ended, tagged on `kind`. `succeeded` means its work\nsettled without an execution failing or being cancelled. `failed`\nmeans an execution's code raised or the host could not finish the\ncycle. An execution skipped because of another cell does not fail\nits run. `cancelled` means the cycle was cut short by a cancel,\nan interrupt, or its runtime stopping, even if an earlier execution\nfailed. Execution outcomes retain their individual results.\n"), Gm = G({
|
|
3144
3144
|
status: H(["completed"]),
|
|
3145
|
-
started_at:
|
|
3145
|
+
started_at: Qo([qp, wo()]).describe("When the first execution started. Null if none started."),
|
|
3146
3146
|
completed_at: qp.describe("When the run ended."),
|
|
3147
3147
|
outcome: Wm.describe("An execution failure does not complete a run while other work remains. Interruption must have taken effect, not merely been requested.")
|
|
3148
|
-
}), Km =
|
|
3148
|
+
}), Km = Qo([
|
|
3149
3149
|
zm,
|
|
3150
3150
|
Bm,
|
|
3151
3151
|
Gm
|
|
@@ -3168,8 +3168,8 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3168
3168
|
status: H(["running"]),
|
|
3169
3169
|
started_at: qp.describe("When the code started executing.")
|
|
3170
3170
|
}), $m = G({
|
|
3171
|
-
line:
|
|
3172
|
-
character:
|
|
3171
|
+
line: Mo().min(0).describe("Zero-based line within the code."),
|
|
3172
|
+
character: Mo().min(0).describe("Zero-based offset in the line, in UTF-16 code units.")
|
|
3173
3173
|
}).describe("A position within code, using LSP coordinates."), eh = G({
|
|
3174
3174
|
start: $m,
|
|
3175
3175
|
end: $m.describe("Exclusive end. Equal to start when only a point is known.")
|
|
@@ -3178,21 +3178,21 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3178
3178
|
data: K().describe("The rendered value, embedded so clients can display it independently of the runtime. JSON mimetypes are encoded as text and binary mimetypes as base64.")
|
|
3179
3179
|
}).describe("A rendered value."), nh = G({
|
|
3180
3180
|
cell_id: om,
|
|
3181
|
-
range:
|
|
3181
|
+
range: Qo([eh, wo()]).describe("Where in that cell, when known."),
|
|
3182
3182
|
message: K().describe("What that cell contributes, such as `reads x from C`.")
|
|
3183
3183
|
}).describe("A cell involved in an error, possibly the one carrying it."), rh = G({
|
|
3184
3184
|
kind: K().describe("The producer's identifier, scoped by source. Open; this protocol defines `exception` and `internal` for executions. Clients show unrecognized kinds as plain errors."),
|
|
3185
3185
|
message: K().describe("A description of the error to show people."),
|
|
3186
|
-
source:
|
|
3186
|
+
source: Qo([K(), wo()]).describe("Who produced it, such as `marimo` or a SQL analyzer. Scopes kind."),
|
|
3187
3187
|
severity: H([
|
|
3188
3188
|
"error",
|
|
3189
3189
|
"warning",
|
|
3190
3190
|
"information",
|
|
3191
3191
|
"hint"
|
|
3192
3192
|
]).describe("Error unless the producer says otherwise. Only error affects scheduling."),
|
|
3193
|
-
range:
|
|
3194
|
-
name:
|
|
3195
|
-
traceback:
|
|
3193
|
+
range: Qo([eh, wo()]).describe("Where in the code, when known."),
|
|
3194
|
+
name: Qo([K(), wo()]).describe("The exception class, such as `ZeroDivisionError`. Set when kind is exception, null otherwise."),
|
|
3195
|
+
traceback: Qo([th, wo()]).describe("The traceback as rendered by the runtime, plain text or HTML by its mimetype. Null when unavailable or not shown."),
|
|
3196
3196
|
related: V(nh).describe("Every involved cell, including this one, in canonical order. Each copy of a cross-cell error carries the same list; clients deduplicate on kind and related cell ids. Empty when the error involves this code alone.")
|
|
3197
3197
|
}).describe("A problem shaped like an LSP diagnostic. Further members are\nkind-specific, as in Problem Details, and a client ignores\nmembers it does not know.\n"), ih = G({
|
|
3198
3198
|
kind: H(["failed"]),
|
|
@@ -3202,32 +3202,32 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3202
3202
|
reason: K().describe("Why the cell did not evaluate. The string is open. This protocol\ndefines `upstream-failed`, a cell it depends on did not produce\nits value because it raised or could not resolve a reference,\n`upstream-stopped`, a cell it depends on stopped the cycle on\npurpose, and `superseded`, a later execution of the same cell\nreplaced this one before it started because the cell's source\nchanged while it waited. Clients show unrecognized reasons as\nskipped, with the message.\n"),
|
|
3203
3203
|
message: K().describe("Why the cell did not run, to show in place of its output."),
|
|
3204
3204
|
related: V(nh).describe("The cells involved, the cause first and this cell last.")
|
|
3205
|
-
}), oh =
|
|
3205
|
+
}), oh = Qo([
|
|
3206
3206
|
Vm,
|
|
3207
3207
|
ih,
|
|
3208
3208
|
Um,
|
|
3209
3209
|
ah
|
|
3210
3210
|
]).describe("How an execution ended, tagged on `kind`. A `succeeded` execution\nevaluated its code without raising, and what it showed is its\n`output` item. A `failed` execution carries the error that ended it.\nA `cancelled` execution was stopped before or while it ran.\nA `skipped` execution did not evaluate because of another cell; it\nhas no value and binds no variables. Other kinds are defined by\nlater versions of this protocol.\n"), sh = G({
|
|
3211
3211
|
execution_id: Xm.describe("The execution whose evaluation produced the value. Usually the variable's `execution_id`, and earlier when the runtime carried the value forward."),
|
|
3212
|
-
update:
|
|
3212
|
+
update: Mo().min(0).describe("How many times the value has been updated since it was produced. Zero at binding.")
|
|
3213
3213
|
}).describe("A variable's value at a point in time. Two revisions are equal\nwhen `execution_id` and `update` are equal. Clients compare\nrevisions for equality.\n"), ch = G({
|
|
3214
3214
|
status: H(["completed"]),
|
|
3215
|
-
started_at:
|
|
3216
|
-
completed_at:
|
|
3215
|
+
started_at: Qo([qp, wo()]).describe("When the code started executing. Null if the execution never started or the start time of a restored result is unknown."),
|
|
3216
|
+
completed_at: Qo([qp, wo()]).describe("When the execution ended. Null for a restored result whose store does not record it."),
|
|
3217
3217
|
outcome: oh,
|
|
3218
|
-
depends_on:
|
|
3219
|
-
}), lh =
|
|
3218
|
+
depends_on: qo(K(), Qo([sh, wo()])).describe("The variable revisions this result is valid against, keyed by name. Null for a name no retained cell execution had bound. Stamped as the execution ends.")
|
|
3219
|
+
}), lh = Qo([
|
|
3220
3220
|
Zm,
|
|
3221
3221
|
Qm,
|
|
3222
3222
|
ch
|
|
3223
3223
|
]).describe("Where an execution is in its lifecycle, tagged on `status`. An\nexecution is `queued` until it starts, `running` while code\nexecutes, and `completed` once it has ended with its `outcome`.\n"), uh = G({
|
|
3224
3224
|
id: Xm,
|
|
3225
|
-
run_id:
|
|
3226
|
-
runtime_id:
|
|
3227
|
-
caused_by_id:
|
|
3228
|
-
cell_id:
|
|
3225
|
+
run_id: Qo([Pm, wo()]).describe("The run that owns this execution. Every live execution belongs to exactly one run. May name a run the host has dropped. Null only for a restored result whose run is unknown."),
|
|
3226
|
+
runtime_id: Qo([gm, wo()]).describe("The runtime that produced this execution. Live while that runtime is the notebook's and has not ended. Null when the producer is unknown."),
|
|
3227
|
+
caused_by_id: Qo([Xm, wo()]).describe("The execution in the same run whose code was running when this one was scheduled, such as scratch code that ran a cell, set a UI element's value, or wrote state, and the cells that reacted to it. Null for an execution a client requested and for the cells that reacted to one."),
|
|
3228
|
+
cell_id: Qo([om, wo()]).describe("The cell this execution belongs to. Null for a scratch execution, which evaluates the code in its run's `origin`."),
|
|
3229
3229
|
code_fingerprint: fm.describe("Fingerprint of the code the execution evaluates. Fixed when the execution is published, while it is still queued."),
|
|
3230
|
-
created_at:
|
|
3230
|
+
created_at: Qo([qp, wo()]).describe("When the runtime scheduled this execution. Null for a restored result, whose timing is unknown."),
|
|
3231
3231
|
state: lh
|
|
3232
3232
|
}).describe("One cell evaluated within a run, or scratch code evaluated once.\nIt moves through `queued`, `running`, and `completed`, and ends with\none outcome. Side effects belong to the execution whose context\nproduced them, and items can arrive after completion while the\nexecution remains retained. Each new input belongs to a running\nexecution. Input calls from completed or removed executions raise\n`EOFError` in the calling code. A scratch execution has no cell and\nevaluates the code in its run's `origin`.\n"), dh = G({
|
|
3233
3233
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
@@ -3240,7 +3240,7 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3240
3240
|
}).describe("The `execution` event, carried by the notebook stream."), ph = K().min(1).describe("Identifies an output, console, input, or variable item uniquely within the host. Sending an item again with the same id replaces it."), mh = G({
|
|
3241
3241
|
id: ph,
|
|
3242
3242
|
execution_id: Xm,
|
|
3243
|
-
media:
|
|
3243
|
+
media: Qo([th, wo()]).describe("The output as last rendered. Null when the code set it to nothing or cleared it.")
|
|
3244
3244
|
}).describe("What an execution's code shows as its result, such as the value of\na cell's last expression. An execution has at most one, published\nonce the code first sets it. A producer replaces it by sending it\nagain with the same id, including after the execution completes,\nand it is removed with its execution.\n"), hh = G({
|
|
3245
3245
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3246
3246
|
time: qp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3256,10 +3256,10 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3256
3256
|
}), vh = G({
|
|
3257
3257
|
kind: H(["media"]),
|
|
3258
3258
|
media: th.describe("Something rendered into the console, such as a figure from `plt.show()` or a formatted traceback.")
|
|
3259
|
-
}), yh =
|
|
3259
|
+
}), yh = Qo([_h, vh]), bh = G({
|
|
3260
3260
|
id: ph,
|
|
3261
3261
|
execution_id: Xm,
|
|
3262
|
-
seq:
|
|
3262
|
+
seq: Mo().min(0).describe("Position among the execution's console and input items, increasing in the order they were produced."),
|
|
3263
3263
|
content: yh.describe("What was written, tagged on `kind`.")
|
|
3264
3264
|
}).describe("One entry in an execution's console, which is text written to\nstdout or stderr, or media rendered among it. A producer replaces\nan entry by sending it again with the same id, and entries are\nremoved with their execution.\n"), xh = G({
|
|
3265
3265
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
@@ -3276,7 +3276,7 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3276
3276
|
]).describe("An input starts `pending` while it waits for an answer. It becomes\n`answered` when the host accepts a reply for delivery, or `cancelled`\nwhen the host ends the wait while input is still pending. Both\n`answered` and `cancelled` are final. An answered input stays\nanswered if execution later fails before consuming the value.\n"), wh = G({
|
|
3277
3277
|
id: ph.describe("Identifies this prompt uniquely across executions and runtime restarts."),
|
|
3278
3278
|
execution_id: Xm,
|
|
3279
|
-
seq:
|
|
3279
|
+
seq: Mo().min(0).describe("Position among the execution's console and input items, increasing in production order."),
|
|
3280
3280
|
prompt: K().describe("The prompt to display, which may be empty."),
|
|
3281
3281
|
password: U().describe("Whether clients must obscure the value as it is entered."),
|
|
3282
3282
|
status: Ch
|
|
@@ -3293,8 +3293,8 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3293
3293
|
execution_id: Xm.describe("The execution that bound the name."),
|
|
3294
3294
|
name: K().describe("The name in the namespace."),
|
|
3295
3295
|
revision: sh,
|
|
3296
|
-
type:
|
|
3297
|
-
preview:
|
|
3296
|
+
type: Qo([K(), wo()]).describe("The runtime's label for the value's type. A host may leave it null."),
|
|
3297
|
+
preview: Qo([K(), wo()]).describe("A short rendering of the value. A host may leave it null.")
|
|
3298
3298
|
}).describe("A name a cell's execution bound in the notebook's namespace, with\nthe revision of its value. The execution binds it as it ends, and\nthe item is removed when the name is unbound or the execution retires. An update, as when a\nstate setter runs or a UI element's value changes, advances the revision\nwithout binding again, and the producer sends the item again with\nthe same id. Hosts publish a cell execution's variables before its\n`completed` status, and remove its bindings before publishing the cell's next execution. A scratch execution's\nnames live only while it runs, so it publishes no variables.\n"), Oh = G({
|
|
3299
3299
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3300
3300
|
time: qp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3313,7 +3313,7 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3313
3313
|
"hint"
|
|
3314
3314
|
]),
|
|
3315
3315
|
message: K(),
|
|
3316
|
-
range:
|
|
3316
|
+
range: Qo([eh, wo()]).describe("Span in this cell, or null for a whole-cell finding or unknown location."),
|
|
3317
3317
|
related: V(nh)
|
|
3318
3318
|
}), jh = G({
|
|
3319
3319
|
defs: V(K()).describe("Names this cell defines."),
|
|
@@ -3323,7 +3323,7 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3323
3323
|
}).describe("The definitions, references, direct dependencies, and diagnostics for one cell at this document revision."), Mh = G({
|
|
3324
3324
|
notebook_id: nm.describe("The notebook this analysis belongs to."),
|
|
3325
3325
|
document_etag: sm.describe("The document revision this analysis describes. Equal to the document's `etag` while the analysis is current."),
|
|
3326
|
-
cells:
|
|
3326
|
+
cells: qo(K(), jh).describe("Every cell of that revision, by id.")
|
|
3327
3327
|
}).describe("What a document's cells imply, computed together over one\nrevision of the document so that cross-cell errors agree. One\nper notebook, and removed with it. It follows the document it\ndescribes, and `document_etag` says which revision that is.\n"), Nh = G({
|
|
3328
3328
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3329
3329
|
time: qp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3423,7 +3423,7 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3423
3423
|
event: H(["ready"]),
|
|
3424
3424
|
id: K().min(1).describe("The resume cursor. Omitted on snapshot and reset events."),
|
|
3425
3425
|
data: G({})
|
|
3426
|
-
}).describe("The `ready` event, carried by every stream."), ag =
|
|
3426
|
+
}).describe("The `ready` event, carried by every stream."), ag = Qo([
|
|
3427
3427
|
Xp,
|
|
3428
3428
|
tm,
|
|
3429
3429
|
am,
|
|
@@ -3450,7 +3450,7 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3450
3450
|
ng,
|
|
3451
3451
|
rg,
|
|
3452
3452
|
ig
|
|
3453
|
-
]).describe("A record, removal, or control message from a host stream. The data is decoded JSON. Snapshot records and reset events omit the cursor, and ready and live events carry it. Unknown event names belong to later versions or host extensions."), og =
|
|
3453
|
+
]).describe("A record, removal, or control message from a host stream. The data is decoded JSON. Snapshot records and reset events omit the cursor, and ready and live events carry it. Unknown event names belong to later versions or host extensions."), og = Qo([
|
|
3454
3454
|
Xp,
|
|
3455
3455
|
tm,
|
|
3456
3456
|
am,
|
|
@@ -3462,7 +3462,7 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3462
3462
|
Jh,
|
|
3463
3463
|
rg,
|
|
3464
3464
|
ig
|
|
3465
|
-
]).describe("Any event the catalog stream carries."), sg =
|
|
3465
|
+
]).describe("Any event the catalog stream carries."), sg = Qo([
|
|
3466
3466
|
am,
|
|
3467
3467
|
um,
|
|
3468
3468
|
hm,
|
|
@@ -3503,11 +3503,11 @@ var qp = Rp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3503
3503
|
"analysis",
|
|
3504
3504
|
"custom"
|
|
3505
3505
|
]).describe("The kinds a stream carries, and the values `kinds` accepts. The catalog stream carries host, project, notebook, runtime, and attachment. A notebook's stream carries notebook, document, cell, runtime, attachment, run, execution, output, console, input, variable, analysis, and custom. Custom events describe occurrences rather than object state."), lg = G({
|
|
3506
|
-
pid:
|
|
3506
|
+
pid: Mo().min(1).describe("The process id."),
|
|
3507
3507
|
started_at: qp.describe("When the process started.")
|
|
3508
3508
|
}).describe("The process that wrote a record. A client checks that a process\nwith this `pid` that started at `started_at` still exists. If it\ndoes not, the record is stale and may be removed.\n");
|
|
3509
3509
|
G({
|
|
3510
|
-
version:
|
|
3510
|
+
version: _s(1).describe("The version of this record's format. This document describes version 1."),
|
|
3511
3511
|
process: lg,
|
|
3512
3512
|
name: K().describe("A label for the host to show people, such as `VS Code` or `marimo`. Two hosts can share a name; the filename is the identity."),
|
|
3513
3513
|
url: K().describe("Where the host's API is. The scheme is `http`, and the host part is `127.0.0.1` or `[::1]`, written exactly that way."),
|
|
@@ -3517,43 +3517,43 @@ var ug = G({
|
|
|
3517
3517
|
detail: K().optional(),
|
|
3518
3518
|
instance: K().optional(),
|
|
3519
3519
|
type: H(["urn:marimo:problem:invalid-request"]),
|
|
3520
|
-
status:
|
|
3520
|
+
status: _s(400).default(400),
|
|
3521
3521
|
title: K().default("Invalid request")
|
|
3522
3522
|
}), dg = G({
|
|
3523
3523
|
detail: K().optional(),
|
|
3524
3524
|
instance: K().optional(),
|
|
3525
3525
|
type: H(["urn:marimo:problem:unauthorized"]),
|
|
3526
|
-
status:
|
|
3526
|
+
status: _s(401).default(401),
|
|
3527
3527
|
title: K().default("Unauthorized")
|
|
3528
3528
|
}), fg = G({
|
|
3529
3529
|
detail: K().optional(),
|
|
3530
3530
|
instance: K().optional(),
|
|
3531
3531
|
type: H(["urn:marimo:problem:forbidden"]),
|
|
3532
|
-
status:
|
|
3532
|
+
status: _s(403).default(403),
|
|
3533
3533
|
title: K().default("Forbidden")
|
|
3534
3534
|
}), pg = G({
|
|
3535
3535
|
detail: K().optional(),
|
|
3536
3536
|
instance: K().optional(),
|
|
3537
3537
|
type: H(["urn:marimo:problem:not-found"]),
|
|
3538
|
-
status:
|
|
3538
|
+
status: _s(404).default(404),
|
|
3539
3539
|
title: K().default("Not found")
|
|
3540
3540
|
}), mg = G({
|
|
3541
3541
|
detail: K().optional(),
|
|
3542
3542
|
instance: K().optional(),
|
|
3543
3543
|
type: H(["urn:marimo:problem:method-not-allowed"]),
|
|
3544
|
-
status:
|
|
3544
|
+
status: _s(405).default(405),
|
|
3545
3545
|
title: K().default("Method not allowed")
|
|
3546
3546
|
}), hg = G({
|
|
3547
3547
|
detail: K().optional(),
|
|
3548
3548
|
instance: K().optional(),
|
|
3549
3549
|
type: H(["urn:marimo:problem:conflict"]),
|
|
3550
|
-
status:
|
|
3550
|
+
status: _s(409).default(409),
|
|
3551
3551
|
title: K().default("Conflict")
|
|
3552
3552
|
}), gg = G({
|
|
3553
3553
|
detail: K().optional(),
|
|
3554
3554
|
instance: K().optional(),
|
|
3555
3555
|
type: H(["urn:marimo:problem:no-runtime"]),
|
|
3556
|
-
status:
|
|
3556
|
+
status: _s(409).default(409),
|
|
3557
3557
|
title: K().default("No runtime")
|
|
3558
3558
|
}), _g = G({
|
|
3559
3559
|
id: K().describe("Identifies this answer."),
|
|
@@ -3567,30 +3567,30 @@ var ug = G({
|
|
|
3567
3567
|
instance: K().optional(),
|
|
3568
3568
|
decisions: V(vg).describe("The choices the client has to make before the host can carry out the request."),
|
|
3569
3569
|
type: H(["urn:marimo:problem:decision-required"]),
|
|
3570
|
-
status:
|
|
3570
|
+
status: _s(409).default(409),
|
|
3571
3571
|
title: K().default("Decision required")
|
|
3572
3572
|
}), bg = G({
|
|
3573
3573
|
detail: K().optional(),
|
|
3574
3574
|
instance: K().optional(),
|
|
3575
|
-
index:
|
|
3576
|
-
cell:
|
|
3575
|
+
index: Mo().min(0).describe("The position of the first stale entry in the request, counted in an edit's `changes` or a run's `cells`. `0` for a save with a stale `If-Match`."),
|
|
3576
|
+
cell: Qo([pm, wo()]).describe("The cell that entry named, as it now is. Null when the document does not have it, or when the entry named the order or the whole document."),
|
|
3577
3577
|
document: cm.describe("The document as it now is."),
|
|
3578
3578
|
type: H(["urn:marimo:problem:precondition-failed"]),
|
|
3579
|
-
status:
|
|
3579
|
+
status: _s(412).default(412),
|
|
3580
3580
|
title: K().default("Precondition failed")
|
|
3581
3581
|
}), xg = G({
|
|
3582
3582
|
detail: K().optional(),
|
|
3583
3583
|
instance: K().optional(),
|
|
3584
3584
|
type: H(["urn:marimo:problem:internal"]),
|
|
3585
|
-
status:
|
|
3585
|
+
status: _s(500).default(500),
|
|
3586
3586
|
title: K().default("Internal error")
|
|
3587
3587
|
}), Sg = G({
|
|
3588
3588
|
detail: K().optional(),
|
|
3589
3589
|
instance: K().optional(),
|
|
3590
3590
|
type: H(["urn:marimo:problem:unsupported-operation"]),
|
|
3591
|
-
status:
|
|
3591
|
+
status: _s(501).default(501),
|
|
3592
3592
|
title: K().default("Unsupported operation")
|
|
3593
|
-
}), Cg =
|
|
3593
|
+
}), Cg = Qo([
|
|
3594
3594
|
ug,
|
|
3595
3595
|
dg,
|
|
3596
3596
|
fg,
|
|
@@ -3605,55 +3605,55 @@ var ug = G({
|
|
|
3605
3605
|
]).describe("An error. Every error response is a problem, following RFC 9457, and is served as `application/problem+json`. `type` says which. A client ignores members it does not recognize. Hosts redact tokens from errors."), wg = cs({
|
|
3606
3606
|
type: K().describe("What kind of problem this is, as a URI."),
|
|
3607
3607
|
title: K().describe("A short, human-readable name for the kind of problem."),
|
|
3608
|
-
status:
|
|
3608
|
+
status: Mo().min(400).max(599).describe("The HTTP status code of the response."),
|
|
3609
3609
|
detail: K().optional().describe("A human-readable explanation of what went wrong this time.")
|
|
3610
|
-
}).describe("A problem of a type this version does not define. A host on a later version can send one, and a client falls back to its `status`."), Tg =
|
|
3610
|
+
}).describe("A problem of a type this version does not define. A host on a later version can send one, and a client falls back to its `status`."), Tg = ss({
|
|
3611
3611
|
type: K().min(1).describe("A namespaced event type under a namespace the producer controls, such as `marimo.pair.agent-message`. Clients ignore types they do not recognize while retaining the stream cursor."),
|
|
3612
3612
|
data: Fh.describe("Any JSON value, including null. The producer defines its schema and consumers of the type validate it.")
|
|
3613
|
-
}).describe("A custom event to publish on the notebook stream."), Eg =
|
|
3613
|
+
}).describe("A custom event to publish on the notebook stream."), Eg = ss({
|
|
3614
3614
|
path: K().optional().describe("The new location, relative to the project root and written the way the host's operating system writes paths."),
|
|
3615
3615
|
name: K().optional().describe("The new label to show people.")
|
|
3616
3616
|
}).describe("The fields to change. At least one is present."), Dg = G({
|
|
3617
3617
|
etag: sm,
|
|
3618
3618
|
code_fingerprint: fm,
|
|
3619
|
-
version:
|
|
3619
|
+
version: Mo().min(1).describe("The cell's version after the edit.")
|
|
3620
3620
|
}).describe("A cell's etag, code fingerprint, and version after an edit."), Og = G({
|
|
3621
3621
|
document: cm,
|
|
3622
|
-
cells:
|
|
3623
|
-
}).describe("The document as an edit or save left it, or at a later revision, and the cells it touched."), kg =
|
|
3622
|
+
cells: qo(K(), Qo([Dg, wo()])).describe("The version of each cell the request created or changed, by id, and null for each cell it deleted.")
|
|
3623
|
+
}).describe("The document as an edit or save left it, or at a later revision, and the cells it touched."), kg = ss({ decisions: qo(K(), K()).optional().describe("Answers to the questions in a `decision-required` problem, as for `runtime.start`.") }).describe("What a save needs from the client, which is nothing until the host asks a question. `{}` is the usual body."), Ag = ss({ decisions: qo(K(), K()).optional().describe("Answers to the questions in a `decision-required` problem.\nEach key is a decision's `id` and each value is the `id` of\nthe chosen option. A client that already knows its choices can\nsend them the first time.\n") }), jg = ss({ code: K().describe("Python code that can read the notebook's current values.\nAssignments stay local to the call. Changes to shared objects persist.\n") }).describe("Python code to execute with access to notebook values."), Mg = ss({
|
|
3624
3624
|
id: om,
|
|
3625
3625
|
etag: sm.optional().describe("The cell's `etag` as last read. A cell whose source, name, or config differs is `precondition-failed`. Absent, the cell runs as it is.")
|
|
3626
|
-
}), Ng =
|
|
3627
|
-
column:
|
|
3626
|
+
}), Ng = ss({ cells: V(Mg).min(1).describe("Cells to run by id. The notebook's execution settings determine their order and whether dependent cells run too.") }).describe("Notebook cells to run."), Pg = ss({ value: K().describe("The text to deliver to the input exactly as submitted, including an empty string when the answer is empty.") }).describe("The answer to one pending input."), Fg = G({ url: K().describe("The URL the host used to show the notebook, with the host's token omitted.") }), Ig = ss({
|
|
3627
|
+
column: Qo([Mo(), wo()]).default(null),
|
|
3628
3628
|
disabled: U().default(!1),
|
|
3629
3629
|
hide_code: U().default(!1),
|
|
3630
3630
|
expand_output: U().default(!1)
|
|
3631
|
-
}).describe("A cell's settings as a client writes them. A field left out takes its default."), Lg =
|
|
3631
|
+
}).describe("A cell's settings as a client writes them. A field left out takes its default."), Lg = ss({
|
|
3632
3632
|
id: om.describe("The cell's id. A client chooses the id of a cell it creates."),
|
|
3633
3633
|
code: K().describe("The cell's source code."),
|
|
3634
3634
|
name: K().default("_").describe("The cell's name. `_` for an anonymous cell."),
|
|
3635
3635
|
config: Ig.optional()
|
|
3636
|
-
}).describe("A cell as a client writes it. Code must be a string, even when the host withholds source in cell records. Null is not an edit or a request to preserve existing source. The host derives the etags."), Rg =
|
|
3636
|
+
}).describe("A cell as a client writes it. Code must be a string, even when the host withholds source in cell records. Null is not an edit or a request to preserve existing source. The host derives the etags."), Rg = ss({
|
|
3637
3637
|
kind: H(["create_cell"]),
|
|
3638
3638
|
cell: Lg
|
|
3639
|
-
}).describe("Appends a new cell. An existing id is a failed precondition."), zg =
|
|
3639
|
+
}).describe("Appends a new cell. An existing id is a failed precondition."), zg = ss({
|
|
3640
3640
|
kind: H(["replace_cell"]),
|
|
3641
3641
|
base_etag: K().describe("The cell's etag as last read, or `*`."),
|
|
3642
3642
|
cell: Lg
|
|
3643
|
-
}).describe("Replaces an existing cell in place. A missing cell is a failed precondition."), Bg =
|
|
3643
|
+
}).describe("Replaces an existing cell in place. A missing cell is a failed precondition."), Bg = ss({
|
|
3644
3644
|
kind: H(["delete_cell"]),
|
|
3645
3645
|
id: om.describe("The cell to remove."),
|
|
3646
3646
|
base_etag: K().describe("The cell's etag as last read, or `*`.")
|
|
3647
|
-
}).describe("Removes a cell."), Vg =
|
|
3647
|
+
}).describe("Removes a cell."), Vg = ss({
|
|
3648
3648
|
kind: H(["set_order"]),
|
|
3649
3649
|
base_etag: K().describe("The document's `order_etag` as last read, or `*`."),
|
|
3650
3650
|
order: V(om).describe("Every cell id exactly once, in the new order, counting cells this edit creates and leaving out cells it deletes.")
|
|
3651
|
-
}).describe("Replaces the cell order."), Hg =
|
|
3651
|
+
}).describe("Replaces the cell order."), Hg = Qo([
|
|
3652
3652
|
Rg,
|
|
3653
3653
|
zg,
|
|
3654
3654
|
Bg,
|
|
3655
3655
|
Vg
|
|
3656
|
-
]).describe("One change to the document, tagged on `kind`."), Ug =
|
|
3656
|
+
]).describe("One change to the document, tagged on `kind`."), Ug = ss({ changes: V(Hg).describe("The changes, applied in order as one unit.") }), Wg = ss({
|
|
3657
3657
|
project_id: Zp,
|
|
3658
3658
|
path: K().optional().describe("Where to put the file, relative to the project root and written the way the host's operating system writes paths."),
|
|
3659
3659
|
name: K().optional().describe("A label to show people. In a project with a root it defaults to the filename.")
|
|
@@ -4013,7 +4013,7 @@ function e_(e, t, n) {
|
|
|
4013
4013
|
}
|
|
4014
4014
|
var t_ = G({
|
|
4015
4015
|
status: W().int(),
|
|
4016
|
-
body:
|
|
4016
|
+
body: ps()
|
|
4017
4017
|
});
|
|
4018
4018
|
async function n_(e, t, { params: n = {}, body: r, headers: i = {}, options: a = {} }) {
|
|
4019
4019
|
let o = Xg[t], s = {};
|
|
@@ -4165,7 +4165,7 @@ function c_(e, t = {}) {
|
|
|
4165
4165
|
//#region ../packages/client/dist/transport/stream.js
|
|
4166
4166
|
var l_ = new Set(ag.options.flatMap((e) => e.shape.event.options)), u_ = G({
|
|
4167
4167
|
event: K().min(1),
|
|
4168
|
-
data:
|
|
4168
|
+
data: ps(),
|
|
4169
4169
|
id: K().optional()
|
|
4170
4170
|
});
|
|
4171
4171
|
function d_(e) {
|
|
@@ -4683,7 +4683,7 @@ var O_ = {
|
|
|
4683
4683
|
"variable",
|
|
4684
4684
|
"analysis",
|
|
4685
4685
|
"marimo"
|
|
4686
|
-
], j_ = G({ marimo:
|
|
4686
|
+
], j_ = G({ marimo: ps() });
|
|
4687
4687
|
function M_(e, t, n) {
|
|
4688
4688
|
return t === null ? null : n?.document_etag === t.revision.etag ? e?.analysis === n && e.freshness === "current" ? e : {
|
|
4689
4689
|
freshness: "current",
|
|
@@ -4706,23 +4706,23 @@ function F_(e) {
|
|
|
4706
4706
|
return typeof e == "object" && !!e && "state" in e;
|
|
4707
4707
|
}
|
|
4708
4708
|
function I_(e) {
|
|
4709
|
-
return e instanceof qg && F_(e.cause) ? e.cause : e instanceof qg && e.cause instanceof
|
|
4709
|
+
return e instanceof qg && F_(e.cause) ? e.cause : e instanceof qg && e.cause instanceof ns ? P_ : N_;
|
|
4710
4710
|
}
|
|
4711
4711
|
function L_(e) {
|
|
4712
|
-
let t =
|
|
4712
|
+
let t = To({ state: ka.NOT_STARTED }), n = To(0), r = C_({
|
|
4713
4713
|
document: O_,
|
|
4714
4714
|
analysis: w_,
|
|
4715
4715
|
attachments: T_,
|
|
4716
4716
|
runtime: k_,
|
|
4717
4717
|
executions: ia
|
|
4718
|
-
}), i =
|
|
4718
|
+
}), i = To({
|
|
4719
4719
|
stream: r.initial,
|
|
4720
4720
|
retained: null,
|
|
4721
4721
|
analyzed: null
|
|
4722
|
-
}), a =
|
|
4722
|
+
}), a = To((e) => e(i).stream), o = To((e) => {
|
|
4723
4723
|
let { stream: t, retained: n } = e(i);
|
|
4724
4724
|
return n ?? t;
|
|
4725
|
-
}), s =
|
|
4725
|
+
}), s = To((e) => e(a).phase === "live" && e(t).state === ka.OPEN), l = To((e) => e(s) ? e(a).notebook : null), u = To((e) => e(a).resources.document.current), d = To((e) => e(i).analyzed), f = To((e) => e(o).resources.document.current), p = To((e) => e(s) ? e(a).resources.attachments : T_.initial), m = To((e) => e(s) ? e(a).resources.runtime : null), h = To((e) => e(o).resources.executions), g = To((e) => e(h).results), _ = To(null), v;
|
|
4726
4726
|
function y(t) {
|
|
4727
4727
|
e.set(i, (e) => {
|
|
4728
4728
|
let { stream: n, retained: r } = e;
|
|
@@ -4946,7 +4946,7 @@ var R_ = /*#__PURE__*/ (0, J.createContext)({ isSelected: !1 }), z_ = /*#__PURE_
|
|
|
4946
4946
|
"data-hovered": f || void 0,
|
|
4947
4947
|
"data-focus-visible": u || void 0
|
|
4948
4948
|
}, /*#__PURE__*/ J.createElement(R_.Provider, { value: { isSelected: o } }, p.children));
|
|
4949
|
-
}), X = b(), H_ =
|
|
4949
|
+
}), X = b(), H_ = zi(), U_ = /* @__PURE__ */ e(Oe(), 1), W_ = (e) => e.type === "checkbox", G_ = (e) => e instanceof Date, K_ = (e) => e == null, q_ = (e) => typeof e == "object", J_ = (e) => !K_(e) && !Array.isArray(e) && q_(e) && !G_(e), Y_ = (e) => J_(e) && e.target ? W_(e.target) ? e.target.checked : e.target.value : e, X_ = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Z_ = (e, t) => e.has(X_(t)), Q_ = (e) => {
|
|
4950
4950
|
let t = e.constructor && e.constructor.prototype;
|
|
4951
4951
|
return J_(t) && t.hasOwnProperty("isPrototypeOf");
|
|
4952
4952
|
}, $_ = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
@@ -6240,13 +6240,13 @@ function zy() {
|
|
|
6240
6240
|
//#endregion
|
|
6241
6241
|
//#region src/utils/zod-utils.ts
|
|
6242
6242
|
function By(e) {
|
|
6243
|
-
return e instanceof
|
|
6243
|
+
return e instanceof Ao;
|
|
6244
6244
|
}
|
|
6245
6245
|
function Vy(e) {
|
|
6246
|
-
return e instanceof
|
|
6246
|
+
return e instanceof Es;
|
|
6247
6247
|
}
|
|
6248
6248
|
function Hy(e) {
|
|
6249
|
-
return e instanceof
|
|
6249
|
+
return e instanceof zo;
|
|
6250
6250
|
}
|
|
6251
6251
|
//#endregion
|
|
6252
6252
|
//#region src/components/ui/form.tsx
|
|
@@ -6430,7 +6430,7 @@ var nb = J.forwardRef((e, t) => {
|
|
|
6430
6430
|
defaultProp: o,
|
|
6431
6431
|
onChange: i
|
|
6432
6432
|
}, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
|
|
6433
|
-
let [l, u] =
|
|
6433
|
+
let [l, u] = ys(c), d, f;
|
|
6434
6434
|
n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
|
|
6435
6435
|
s(l || "");
|
|
6436
6436
|
}, f = [l], n[8] = l, n[9] = d, n[10] = f), J.useEffect(d, f);
|
|
@@ -6459,11 +6459,11 @@ function rb(e) {
|
|
|
6459
6459
|
}
|
|
6460
6460
|
function ib(e) {
|
|
6461
6461
|
let t = (e) => {
|
|
6462
|
-
if (e instanceof
|
|
6462
|
+
if (e instanceof go) {
|
|
6463
6463
|
let t = [...e.values];
|
|
6464
6464
|
return e.values.size === 1 ? t[0] : t;
|
|
6465
6465
|
}
|
|
6466
|
-
if (e instanceof
|
|
6466
|
+
if (e instanceof rs) {
|
|
6467
6467
|
let t = e.def.defaultValue;
|
|
6468
6468
|
return typeof t == "function" ? t() : t;
|
|
6469
6469
|
}
|
|
@@ -6471,16 +6471,16 @@ function ib(e) {
|
|
|
6471
6471
|
if (Hy(e)) return e.def.items.map((e) => t(e));
|
|
6472
6472
|
if ("unwrap" in e) return t(rb(e));
|
|
6473
6473
|
};
|
|
6474
|
-
return e instanceof
|
|
6474
|
+
return e instanceof Lo || e instanceof Do ? t(e.options[0]) : By(e) ? ob(e) ? [ib(e.element)] : [] : e instanceof lo ? "" : e instanceof Oo ? e.options[0] : e instanceof Eo ? Object.fromEntries(Object.entries(e.shape).map(([e, n]) => [e, t(n)])) : t(e);
|
|
6475
6475
|
}
|
|
6476
6476
|
function ab(e) {
|
|
6477
|
-
if (e instanceof
|
|
6478
|
-
if (e instanceof
|
|
6477
|
+
if (e instanceof go) return e;
|
|
6478
|
+
if (e instanceof Eo) {
|
|
6479
6479
|
let t = e.shape.type;
|
|
6480
|
-
if (t instanceof
|
|
6480
|
+
if (t instanceof go) return t;
|
|
6481
6481
|
throw Error("Invalid schema");
|
|
6482
6482
|
}
|
|
6483
|
-
if (e instanceof
|
|
6483
|
+
if (e instanceof Lo || e instanceof Do) return ab(e.options[0]);
|
|
6484
6484
|
throw c.warn(e), Error("Invalid schema");
|
|
6485
6485
|
}
|
|
6486
6486
|
function ob(e) {
|
|
@@ -6625,7 +6625,7 @@ function _b({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6625
6625
|
});
|
|
6626
6626
|
}
|
|
6627
6627
|
let { label: i, description: a, special: o, direction: s = "column", minLength: c } = Ry.parse(e.description || "");
|
|
6628
|
-
if (e instanceof
|
|
6628
|
+
if (e instanceof rs || e instanceof No) {
|
|
6629
6629
|
let i = e.unwrap();
|
|
6630
6630
|
return i = !i.description && e.description ? i.describe(e.description) : i, _b({
|
|
6631
6631
|
schema: i,
|
|
@@ -6634,10 +6634,10 @@ function _b({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6634
6634
|
renderers: r
|
|
6635
6635
|
});
|
|
6636
6636
|
}
|
|
6637
|
-
if (e instanceof
|
|
6637
|
+
if (e instanceof Eo) return /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
6638
6638
|
className: l("flex", s === "row" ? "flex-row gap-6 items-start" : s === "two-columns" ? "grid grid-cols-2 gap-y-6" : "flex-col gap-6"),
|
|
6639
6639
|
children: [/* @__PURE__ */ (0, Y.jsx)(Yy, { children: i }), Ps.entries(e.shape).map(([e, i]) => {
|
|
6640
|
-
let a = i instanceof
|
|
6640
|
+
let a = i instanceof go, o = _b({
|
|
6641
6641
|
schema: i,
|
|
6642
6642
|
form: t,
|
|
6643
6643
|
path: Cb(n, e),
|
|
@@ -6649,7 +6649,7 @@ function _b({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6649
6649
|
}, e);
|
|
6650
6650
|
})]
|
|
6651
6651
|
});
|
|
6652
|
-
if (e instanceof
|
|
6652
|
+
if (e instanceof lo) return o === "time" ? /* @__PURE__ */ (0, Y.jsx)(Gy, {
|
|
6653
6653
|
control: t.control,
|
|
6654
6654
|
name: n,
|
|
6655
6655
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(Jy, { children: [
|
|
@@ -6684,7 +6684,7 @@ function _b({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6684
6684
|
})]
|
|
6685
6685
|
}), /* @__PURE__ */ (0, Y.jsx)(Qy, {})] })
|
|
6686
6686
|
});
|
|
6687
|
-
if (e instanceof
|
|
6687
|
+
if (e instanceof So) return o === "random_number_button" ? /* @__PURE__ */ (0, Y.jsx)(Gy, {
|
|
6688
6688
|
control: t.control,
|
|
6689
6689
|
name: n,
|
|
6690
6690
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(_, {
|
|
@@ -6728,12 +6728,12 @@ function _b({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6728
6728
|
] })
|
|
6729
6729
|
});
|
|
6730
6730
|
}
|
|
6731
|
-
if (e instanceof
|
|
6731
|
+
if (e instanceof mo) return /* @__PURE__ */ (0, Y.jsx)(yb, {
|
|
6732
6732
|
schema: e,
|
|
6733
6733
|
form: t,
|
|
6734
6734
|
path: n
|
|
6735
6735
|
});
|
|
6736
|
-
if (e instanceof
|
|
6736
|
+
if (e instanceof Oo) {
|
|
6737
6737
|
let r = e.options.map((e) => e.toString());
|
|
6738
6738
|
return /* @__PURE__ */ (0, Y.jsx)(xb, {
|
|
6739
6739
|
schema: e,
|
|
@@ -6742,14 +6742,14 @@ function _b({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6742
6742
|
options: r
|
|
6743
6743
|
});
|
|
6744
6744
|
}
|
|
6745
|
-
if (e instanceof
|
|
6745
|
+
if (e instanceof Ao) {
|
|
6746
6746
|
if (o === "text_area_multiline") return /* @__PURE__ */ (0, Y.jsx)(bb, {
|
|
6747
6747
|
schema: e,
|
|
6748
6748
|
form: t,
|
|
6749
6749
|
path: n
|
|
6750
6750
|
});
|
|
6751
6751
|
let a = e.element;
|
|
6752
|
-
if (a instanceof
|
|
6752
|
+
if (a instanceof Oo) {
|
|
6753
6753
|
let r = a.options.map((e) => e.toString());
|
|
6754
6754
|
return /* @__PURE__ */ (0, Y.jsx)(Sb, {
|
|
6755
6755
|
schema: e,
|
|
@@ -6770,7 +6770,7 @@ function _b({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6770
6770
|
}, n)]
|
|
6771
6771
|
});
|
|
6772
6772
|
}
|
|
6773
|
-
if (e instanceof
|
|
6773
|
+
if (e instanceof Do) {
|
|
6774
6774
|
let a = e.def, o = a.options, s = a.discriminator, c = (e) => o.find((t) => ab(t).value === e);
|
|
6775
6775
|
return /* @__PURE__ */ (0, Y.jsx)(Gy, {
|
|
6776
6776
|
control: t.control,
|
|
@@ -6810,7 +6810,7 @@ function _b({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6810
6810
|
}
|
|
6811
6811
|
});
|
|
6812
6812
|
}
|
|
6813
|
-
return e instanceof
|
|
6813
|
+
return e instanceof Lo ? /* @__PURE__ */ (0, Y.jsx)(Gy, {
|
|
6814
6814
|
control: t.control,
|
|
6815
6815
|
name: n,
|
|
6816
6816
|
render: ({ field: a }) => {
|
|
@@ -6838,7 +6838,7 @@ function _b({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6838
6838
|
]
|
|
6839
6839
|
});
|
|
6840
6840
|
}
|
|
6841
|
-
}) : e instanceof
|
|
6841
|
+
}) : e instanceof go ? /* @__PURE__ */ (0, Y.jsx)(Gy, {
|
|
6842
6842
|
control: t.control,
|
|
6843
6843
|
name: n,
|
|
6844
6844
|
render: ({ field: t }) => /* @__PURE__ */ (0, Y.jsx)("input", {
|
|
@@ -7346,7 +7346,7 @@ function qb(e) {
|
|
|
7346
7346
|
return typeof e != "string" || e.length === 0 ? !1 : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || Yb(e));
|
|
7347
7347
|
}
|
|
7348
7348
|
function Jb() {
|
|
7349
|
-
return
|
|
7349
|
+
return po.get(j) || k();
|
|
7350
7350
|
}
|
|
7351
7351
|
function Yb(e) {
|
|
7352
7352
|
return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,") ? Jb() : !1;
|
|
@@ -7517,7 +7517,7 @@ var tx = class e {
|
|
|
7517
7517
|
#r;
|
|
7518
7518
|
#i;
|
|
7519
7519
|
#a = new AbortController();
|
|
7520
|
-
#o = new
|
|
7520
|
+
#o = new Vi();
|
|
7521
7521
|
#s = /* @__PURE__ */ new Set();
|
|
7522
7522
|
#c = /* @__PURE__ */ new Map();
|
|
7523
7523
|
#l;
|
|
@@ -7734,7 +7734,7 @@ function cx(e) {
|
|
|
7734
7734
|
let t = js(e, a);
|
|
7735
7735
|
if (t instanceof DataView) {
|
|
7736
7736
|
let e = R(t);
|
|
7737
|
-
r.push(e), i.push(a),
|
|
7737
|
+
r.push(e), i.push(a), ko(n, a, e);
|
|
7738
7738
|
}
|
|
7739
7739
|
}
|
|
7740
7740
|
return {
|
|
@@ -7750,14 +7750,14 @@ function lx(e) {
|
|
|
7750
7750
|
let i = t;
|
|
7751
7751
|
for (let [e, t] of n.entries()) {
|
|
7752
7752
|
let n = r?.[e];
|
|
7753
|
-
n == null ? c.warn("[anywidget] Could not find buffer at path", t) : typeof n == "string" ?
|
|
7753
|
+
n == null ? c.warn("[anywidget] Could not find buffer at path", t) : typeof n == "string" ? ko(i, t, O(n)) : ko(i, t, n);
|
|
7754
7754
|
}
|
|
7755
7755
|
return i;
|
|
7756
7756
|
}
|
|
7757
7757
|
//#endregion
|
|
7758
7758
|
//#region src/plugins/impl/anywidget/registry.ts
|
|
7759
7759
|
function ux() {
|
|
7760
|
-
let e =
|
|
7760
|
+
let e = po.get(Gs).mode;
|
|
7761
7761
|
return e === "edit" || e === "present";
|
|
7762
7762
|
}
|
|
7763
7763
|
var dx = new class {
|
|
@@ -8134,7 +8134,7 @@ var Ex = (e) => {
|
|
|
8134
8134
|
items: V(this.menuItemValidator)
|
|
8135
8135
|
});
|
|
8136
8136
|
validator = G({
|
|
8137
|
-
items: V(
|
|
8137
|
+
items: V(Qo([this.menuItemValidator, this.menuItemGroupValidator])),
|
|
8138
8138
|
orientation: H(["horizontal", "vertical"])
|
|
8139
8139
|
});
|
|
8140
8140
|
render(e) {
|
|
@@ -8224,7 +8224,7 @@ function Fx(e) {
|
|
|
8224
8224
|
return Bi({
|
|
8225
8225
|
href: e,
|
|
8226
8226
|
queryParams: t.search,
|
|
8227
|
-
keys: [
|
|
8227
|
+
keys: [es.filePath]
|
|
8228
8228
|
});
|
|
8229
8229
|
}
|
|
8230
8230
|
//#endregion
|
|
@@ -8317,7 +8317,7 @@ var Lx = class e {
|
|
|
8317
8317
|
...t
|
|
8318
8318
|
});
|
|
8319
8319
|
}), Bx = (e) => {
|
|
8320
|
-
let t = (0, X.c)(5), { children: n } = e, r =
|
|
8320
|
+
let t = (0, X.c)(5), { children: n } = e, r = Ro(Po), i;
|
|
8321
8321
|
t[0] === r ? i = t[1] : (i = gn(r), t[0] = r, t[1] = i);
|
|
8322
8322
|
let a;
|
|
8323
8323
|
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(ei, {
|
|
@@ -8601,20 +8601,20 @@ function yS(e) {
|
|
|
8601
8601
|
}
|
|
8602
8602
|
function bS({ store: e, source: t, shown: n, signal: r }) {
|
|
8603
8603
|
r.throwIfAborted();
|
|
8604
|
-
let i =
|
|
8604
|
+
let i = To((e) => ({
|
|
8605
8605
|
confirmed: e(t),
|
|
8606
8606
|
shown: e(n)
|
|
8607
|
-
})), a =
|
|
8607
|
+
})), a = To({
|
|
8608
8608
|
...e.get(i),
|
|
8609
8609
|
drafts: /* @__PURE__ */ new Map(),
|
|
8610
8610
|
pending: null
|
|
8611
|
-
}), o =
|
|
8611
|
+
}), o = To((e) => {
|
|
8612
8612
|
let t = e(a), n = gS(t);
|
|
8613
8613
|
return n === null ? null : mS(n, _S(t));
|
|
8614
|
-
}), s =
|
|
8614
|
+
}), s = To((e) => {
|
|
8615
8615
|
let t = e(a);
|
|
8616
8616
|
return t.confirmed === null ? null : hS(t.confirmed, _S(t));
|
|
8617
|
-
}), c =
|
|
8617
|
+
}), c = To((e) => e(a).pending?.submission ?? null), l = e.sub(i, () => {
|
|
8618
8618
|
let { confirmed: t, shown: n } = e.get(i);
|
|
8619
8619
|
e.set(a, (e) => yS({
|
|
8620
8620
|
...e,
|
|
@@ -8622,7 +8622,7 @@ function bS({ store: e, source: t, shown: n, signal: r }) {
|
|
|
8622
8622
|
shown: n,
|
|
8623
8623
|
pending: t !== null && e.pending !== null && t.revision.notebook_id !== e.pending.submission.notebookId ? null : e.pending
|
|
8624
8624
|
}));
|
|
8625
|
-
}), u = !1, d =
|
|
8625
|
+
}), u = !1, d = To(null, (e, i, o) => {
|
|
8626
8626
|
if (u) throw Error("Document transactions cannot be nested");
|
|
8627
8627
|
let s = e(a), c = gS(s);
|
|
8628
8628
|
if (!(r.aborted || c === null)) {
|
|
@@ -8635,7 +8635,7 @@ function bS({ store: e, source: t, shown: n, signal: r }) {
|
|
|
8635
8635
|
u = !1;
|
|
8636
8636
|
}
|
|
8637
8637
|
}
|
|
8638
|
-
}), f =
|
|
8638
|
+
}), f = To(null, (e, t) => {
|
|
8639
8639
|
let n = e(a);
|
|
8640
8640
|
if (r.aborted || n.confirmed === null || n.pending !== null) return null;
|
|
8641
8641
|
let i = _S(n), o = hS(n.confirmed, i);
|
|
@@ -8653,7 +8653,7 @@ function bS({ store: e, source: t, shown: n, signal: r }) {
|
|
|
8653
8653
|
responseRevision: null
|
|
8654
8654
|
}
|
|
8655
8655
|
}), s;
|
|
8656
|
-
}), p =
|
|
8656
|
+
}), p = To(null, (e, t, n, i) => {
|
|
8657
8657
|
let o = e(a);
|
|
8658
8658
|
if (!(r.aborted || o.pending?.submission !== n || o.pending.responseRevision !== null)) {
|
|
8659
8659
|
if (i !== null && i.notebook_id !== n.notebookId) throw Error("Edit response belongs to another notebook");
|
|
@@ -8749,7 +8749,7 @@ function DS(e, t) {
|
|
|
8749
8749
|
}
|
|
8750
8750
|
function OS({ store: e, documentAtom: t, backendAtom: n, state: r, signal: i }) {
|
|
8751
8751
|
i.throwIfAborted();
|
|
8752
|
-
let a =
|
|
8752
|
+
let a = To({ status: "idle" }), o = To((e) => ({
|
|
8753
8753
|
document: e(t),
|
|
8754
8754
|
backend: e(n),
|
|
8755
8755
|
pending: e(r.pendingAtom),
|
|
@@ -8877,20 +8877,20 @@ function OS({ store: e, documentAtom: t, backendAtom: n, state: r, signal: i })
|
|
|
8877
8877
|
//#endregion
|
|
8878
8878
|
//#region src/core/notebook/document/model.ts
|
|
8879
8879
|
function kS({ store: e, documentAtom: t, shownDocumentAtom: n, backendAtom: r }) {
|
|
8880
|
-
let i =
|
|
8880
|
+
let i = To(null);
|
|
8881
8881
|
function a() {
|
|
8882
8882
|
return Promise.reject(/* @__PURE__ */ Error("The document model is not started"));
|
|
8883
8883
|
}
|
|
8884
8884
|
return {
|
|
8885
|
-
documentAtom:
|
|
8885
|
+
documentAtom: To((e) => {
|
|
8886
8886
|
let t = e(i);
|
|
8887
8887
|
return t ? e(t.state.documentAtom) : null;
|
|
8888
8888
|
}),
|
|
8889
|
-
editAtom:
|
|
8889
|
+
editAtom: To(null, (e, t, n) => {
|
|
8890
8890
|
let r = e(i);
|
|
8891
8891
|
r && t(r.state.editAtom, n);
|
|
8892
8892
|
}),
|
|
8893
|
-
syncStatusAtom:
|
|
8893
|
+
syncStatusAtom: To((e) => {
|
|
8894
8894
|
let t = e(i);
|
|
8895
8895
|
return t ? e(t.sync.statusAtom) : { status: "unavailable" };
|
|
8896
8896
|
}),
|
|
@@ -9040,9 +9040,9 @@ function jS(e) {
|
|
|
9040
9040
|
}
|
|
9041
9041
|
//#endregion
|
|
9042
9042
|
//#region src/components/editor/chrome/panels/context-aware-panel/atoms.ts
|
|
9043
|
-
var MS =
|
|
9044
|
-
|
|
9045
|
-
var FS =
|
|
9043
|
+
var MS = To(null), NS = To(null), PS = To(!1);
|
|
9044
|
+
To(!1);
|
|
9045
|
+
var FS = To(!1), IS = 0, LS = 1, RS = 2, zS = 4;
|
|
9046
9046
|
function BS(e) {
|
|
9047
9047
|
return () => e;
|
|
9048
9048
|
}
|
|
@@ -11826,7 +11826,7 @@ function sD(e) {
|
|
|
11826
11826
|
//#region src/plugins/core/BadPlugin.tsx
|
|
11827
11827
|
var cD = Vn, lD = Rn, uD = bn, dD = xr, fD = (e) => {
|
|
11828
11828
|
let t = (0, X.c)(13), { error: n, badData: r } = e;
|
|
11829
|
-
if (n instanceof
|
|
11829
|
+
if (n instanceof ns) {
|
|
11830
11830
|
let e;
|
|
11831
11831
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(Qs, { children: "Bad Data" }), t[0] = e) : e = t[0];
|
|
11832
11832
|
let i;
|
|
@@ -11888,7 +11888,7 @@ function mD(e) {
|
|
|
11888
11888
|
//#region src/plugins/core/registerReactComponent.tsx
|
|
11889
11889
|
var hD = 3, gD = 150;
|
|
11890
11890
|
function _D({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
11891
|
-
let [o, s] = (0, J.useState)(n), [l, u] = (0, J.useState)(r), d = (0, J.useRef)(l), { theme: f } =
|
|
11891
|
+
let [o, s] = (0, J.useState)(n), [l, u] = (0, J.useState)(r), d = (0, J.useRef)(l), { theme: f } = Jo(), p = (e) => {
|
|
11892
11892
|
d.current = e, u(e);
|
|
11893
11893
|
}, [m, g] = (0, J.useState)(() => t.validator.safeParse(Zi(e))), [_, v] = (0, J.useState)(0);
|
|
11894
11894
|
(0, J.useImperativeHandle)(i, () => ({
|
|
@@ -11920,7 +11920,7 @@ function _D({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
11920
11920
|
Fs(n.length <= 1, `Plugin functions only supports a single argument. Called ${r}`);
|
|
11921
11921
|
let i = Js(), o = Gi.findElementThroughShadowDOMs(e)?.id, s = o ? Gi.parse(o) : null;
|
|
11922
11922
|
if (s && !i) {
|
|
11923
|
-
if (aa(pa(
|
|
11923
|
+
if (aa(pa(po.get(Ki), s))) throw new Ds();
|
|
11924
11924
|
} else c.warn(`Cell ID ${s} cannot be found`);
|
|
11925
11925
|
let l = wD(t, n[0]);
|
|
11926
11926
|
for (let t = 0;; t++) {
|
|
@@ -11946,7 +11946,7 @@ function _D({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
11946
11946
|
e,
|
|
11947
11947
|
_
|
|
11948
11948
|
]);
|
|
11949
|
-
return m.success ? /* @__PURE__ */ (0, Y.jsx)(
|
|
11949
|
+
return m.success ? /* @__PURE__ */ (0, Y.jsx)(os, { children: /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
11950
11950
|
className: `contents ${f}`,
|
|
11951
11951
|
children: /* @__PURE__ */ (0, Y.jsx)(J.Suspense, {
|
|
11952
11952
|
fallback: /* @__PURE__ */ (0, Y.jsx)("div", {}),
|
|
@@ -12009,8 +12009,8 @@ function xD(e) {
|
|
|
12009
12009
|
}) }, t));
|
|
12010
12010
|
}
|
|
12011
12011
|
async mountReactComponent() {
|
|
12012
|
-
this.mounted = !0, Fs(this.root, "Root must be defined"), this.root.render(/* @__PURE__ */ (0, Y.jsx)(
|
|
12013
|
-
store:
|
|
12012
|
+
this.mounted = !0, Fs(this.root, "Root must be defined"), this.root.render(/* @__PURE__ */ (0, Y.jsx)(Bo, {
|
|
12013
|
+
store: po,
|
|
12014
12014
|
children: /* @__PURE__ */ (0, Y.jsx)(Bx, { children: /* @__PURE__ */ (0, Y.jsx)(vD, {
|
|
12015
12015
|
hostElement: this,
|
|
12016
12016
|
plugin: e,
|
|
@@ -12074,7 +12074,7 @@ function CD(e) {
|
|
|
12074
12074
|
}
|
|
12075
12075
|
function wD(e, t) {
|
|
12076
12076
|
let n = e.safeParse(t);
|
|
12077
|
-
if (!n.success) throw c.log("Failed to parse data", t, n.error), Error(
|
|
12077
|
+
if (!n.success) throw c.log("Failed to parse data", t, n.error), Error(Ss(n.error));
|
|
12078
12078
|
return n.data;
|
|
12079
12079
|
}
|
|
12080
12080
|
//#endregion
|
|
@@ -12134,7 +12134,7 @@ function OD(e) {
|
|
|
12134
12134
|
}
|
|
12135
12135
|
//#endregion
|
|
12136
12136
|
//#region src/components/editor/renderers/vertical-layout/sidebar/state.ts
|
|
12137
|
-
var kD =
|
|
12137
|
+
var kD = _o({ isOpen: !0 }, (e, t) => {
|
|
12138
12138
|
if (!t) return e;
|
|
12139
12139
|
switch (t.type) {
|
|
12140
12140
|
case "toggle": return {
|
|
@@ -12188,10 +12188,10 @@ function jD() {
|
|
|
12188
12188
|
syncWidth() {
|
|
12189
12189
|
try {
|
|
12190
12190
|
let e = this.dataset.width;
|
|
12191
|
-
e ?
|
|
12191
|
+
e ? po.set(kD, {
|
|
12192
12192
|
type: "setWidth",
|
|
12193
12193
|
width: JSON.parse(e)
|
|
12194
|
-
}) :
|
|
12194
|
+
}) : po.set(kD, {
|
|
12195
12195
|
type: "setWidth",
|
|
12196
12196
|
width: void 0
|
|
12197
12197
|
});
|
|
@@ -12233,8 +12233,8 @@ function MD(e, t = {}) {
|
|
|
12233
12233
|
}
|
|
12234
12234
|
//#endregion
|
|
12235
12235
|
//#region src/plugins/impl/anywidget/AnyWidgetPlugin.tsx
|
|
12236
|
-
var ND = MD("marimo-anywidget").withData(G({ modelId:
|
|
12237
|
-
let t = (0, X.c)(9), { modelId: n } = e.data, r = (0, J.useRef)(null), [i, a] = (0, J.useState)(), o =
|
|
12236
|
+
var ND = MD("marimo-anywidget").withData(G({ modelId: Vo(Ob, { message: "Expected a non-empty widget model id" }) })).withFunctions({}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(PD, { ...e })), PD = (e) => {
|
|
12237
|
+
let t = (0, X.c)(9), { modelId: n } = e.data, r = (0, J.useRef)(null), [i, a] = (0, J.useState)(), o = Ro(gc), s, c;
|
|
12238
12238
|
t[0] !== o || t[1] !== n ? (s = () => {
|
|
12239
12239
|
if (!o) return;
|
|
12240
12240
|
let e = r.current;
|
|
@@ -12568,7 +12568,7 @@ var GD = (e) => {
|
|
|
12568
12568
|
minHeight: W().optional(),
|
|
12569
12569
|
maxHeight: W().optional(),
|
|
12570
12570
|
showCopyButton: U().optional(),
|
|
12571
|
-
debounce:
|
|
12571
|
+
debounce: Qo([U(), W()]).default(!1)
|
|
12572
12572
|
});
|
|
12573
12573
|
render(e) {
|
|
12574
12574
|
return /* @__PURE__ */ (0, Y.jsx)(YD, {
|
|
@@ -12578,7 +12578,7 @@ var GD = (e) => {
|
|
|
12578
12578
|
});
|
|
12579
12579
|
}
|
|
12580
12580
|
}, YD = (e) => {
|
|
12581
|
-
let t = (0, X.c)(36), { theme: n } =
|
|
12581
|
+
let t = (0, X.c)(36), { theme: n } = Jo(), r = e.theme || n, i = e.minHeight ? `${e.minHeight}px` : "70px", a = e.maxHeight ? `${e.maxHeight}px` : void 0, [o, s] = (0, J.useState)(e.value), c = e.value, l = Number.isFinite(e.debounce) ? e.debounce : 0, u = e.setValue, d;
|
|
12582
12582
|
t[0] === e.debounce ? d = t[1] : (d = Number.isFinite(e.debounce), t[0] = e.debounce, t[1] = d);
|
|
12583
12583
|
let f = !d, p;
|
|
12584
12584
|
t[2] !== e.setValue || t[3] !== e.value || t[4] !== l || t[5] !== f ? (p = {
|
|
@@ -12639,7 +12639,7 @@ var GD = (e) => {
|
|
|
12639
12639
|
output: t
|
|
12640
12640
|
};
|
|
12641
12641
|
} };
|
|
12642
|
-
} }, ZD = J.lazy(() => import("./chat-ui-
|
|
12642
|
+
} }, ZD = J.lazy(() => import("./chat-ui-CjZbdpzb.js").then((e) => ({ default: e.Chatbot }))), QD = V(G({
|
|
12643
12643
|
id: K(),
|
|
12644
12644
|
role: H([
|
|
12645
12645
|
"system",
|
|
@@ -12647,8 +12647,8 @@ var GD = (e) => {
|
|
|
12647
12647
|
"assistant"
|
|
12648
12648
|
]),
|
|
12649
12649
|
content: K().nullable(),
|
|
12650
|
-
parts: V(
|
|
12651
|
-
metadata:
|
|
12650
|
+
parts: V(ms()),
|
|
12651
|
+
metadata: ms().optional()
|
|
12652
12652
|
})), $D = G({
|
|
12653
12653
|
max_tokens: W().nullable(),
|
|
12654
12654
|
temperature: W().nullable(),
|
|
@@ -12661,18 +12661,18 @@ var GD = (e) => {
|
|
|
12661
12661
|
showConfigurationControls: U(),
|
|
12662
12662
|
maxHeight: W().optional(),
|
|
12663
12663
|
config: $D,
|
|
12664
|
-
allowAttachments:
|
|
12664
|
+
allowAttachments: Qo([U(), K().array()]),
|
|
12665
12665
|
disabled: U().default(!1)
|
|
12666
12666
|
})).withFunctions({
|
|
12667
12667
|
get_chat_history: XD.input(G({})).output(G({ messages: QD })),
|
|
12668
|
-
delete_chat_history: XD.input(G({})).output(
|
|
12669
|
-
delete_chat_message: XD.input(G({ index: W() })).output(
|
|
12668
|
+
delete_chat_history: XD.input(G({})).output(wo()),
|
|
12669
|
+
delete_chat_message: XD.input(G({ index: W() })).output(wo()),
|
|
12670
12670
|
send_prompt: XD.input(G({
|
|
12671
12671
|
request_id: K(),
|
|
12672
12672
|
messages: QD,
|
|
12673
12673
|
config: $D
|
|
12674
|
-
})).output(
|
|
12675
|
-
cancel_prompt: XD.input(G({ request_id: K() })).output(
|
|
12674
|
+
})).output(ps()),
|
|
12675
|
+
cancel_prompt: XD.input(G({ request_id: K() })).output(wo())
|
|
12676
12676
|
}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(J.Suspense, { children: /* @__PURE__ */ (0, Y.jsx)(ZD, {
|
|
12677
12677
|
prompts: e.data.prompts,
|
|
12678
12678
|
showConfigurationControls: e.data.showConfigurationControls,
|
|
@@ -12861,14 +12861,14 @@ function CO(e, t) {
|
|
|
12861
12861
|
].flat();
|
|
12862
12862
|
return n.length === 0 || n.some((e) => e.safeParse(t).success);
|
|
12863
12863
|
}
|
|
12864
|
-
var wO = (e, t) => e[t] ? e[t] : [], TO = V(
|
|
12864
|
+
var wO = (e, t) => e[t] ? e[t] : [], TO = V(Yo([zp(), Yo([H(cO).catch("unknown"), K()])])), EO = K().min(1, "Required").or(W()).transform((e) => e).describe(Ry.of({
|
|
12865
12865
|
label: "Column",
|
|
12866
12866
|
special: "column_id"
|
|
12867
12867
|
})), DO = V(EO.describe(Ry.of({ special: "column_id" }))).min(1, "At least one column is required").default([]).describe(Ry.of({
|
|
12868
12868
|
label: "Columns",
|
|
12869
12869
|
minLength: 1
|
|
12870
12870
|
})), OO = G({
|
|
12871
|
-
type:
|
|
12871
|
+
type: _s("column_conversion"),
|
|
12872
12872
|
column_id: EO,
|
|
12873
12873
|
data_type: H(lO).describe(Ry.of({ label: "Data type (numpy)" })).default("bool"),
|
|
12874
12874
|
errors: H(["ignore", "raise"]).default("ignore").describe(Ry.of({
|
|
@@ -12876,14 +12876,14 @@ var wO = (e, t) => e[t] ? e[t] : [], TO = V(qo([zp(), qo([H(cO).catch("unknown")
|
|
|
12876
12876
|
special: "radio_group"
|
|
12877
12877
|
}))
|
|
12878
12878
|
}).describe(Ry.of({})), kO = G({
|
|
12879
|
-
type:
|
|
12879
|
+
type: _s("rename_column"),
|
|
12880
12880
|
column_id: EO,
|
|
12881
12881
|
new_column_id: K().min(1, "Required").transform((e) => e).describe(Ry.of({
|
|
12882
12882
|
label: "New column name",
|
|
12883
12883
|
minLength: 1
|
|
12884
12884
|
}))
|
|
12885
12885
|
}), AO = G({
|
|
12886
|
-
type:
|
|
12886
|
+
type: _s("sort_column"),
|
|
12887
12887
|
column_id: EO,
|
|
12888
12888
|
ascending: U().describe(Ry.of({ label: "Ascending" })).default(!0),
|
|
12889
12889
|
na_position: H(["first", "last"]).describe(Ry.of({
|
|
@@ -12893,19 +12893,19 @@ var wO = (e, t) => e[t] ? e[t] : [], TO = V(qo([zp(), qo([H(cO).catch("unknown")
|
|
|
12893
12893
|
}), jO = G({
|
|
12894
12894
|
column_id: EO,
|
|
12895
12895
|
operator: H(Object.keys(yO)).describe(Ry.of({ label: " " })),
|
|
12896
|
-
type:
|
|
12897
|
-
value:
|
|
12896
|
+
type: _s("condition").default("condition"),
|
|
12897
|
+
value: ms().optional().describe(Ry.of({ label: "Value" })),
|
|
12898
12898
|
negate: U().default(!1)
|
|
12899
12899
|
}).describe(Ry.of({
|
|
12900
12900
|
direction: "row",
|
|
12901
12901
|
special: "column_filter"
|
|
12902
|
-
})), MO =
|
|
12903
|
-
type:
|
|
12902
|
+
})), MO = Xo(() => G({
|
|
12903
|
+
type: _s("group").default("group"),
|
|
12904
12904
|
operator: H(["and", "or"]).default("and"),
|
|
12905
|
-
children: V(
|
|
12905
|
+
children: V(Qo([jO, MO])).default([]),
|
|
12906
12906
|
negate: U().default(!1)
|
|
12907
12907
|
})), NO = G({
|
|
12908
|
-
type:
|
|
12908
|
+
type: _s("filter_rows"),
|
|
12909
12909
|
operation: H(["keep_rows", "remove_rows"]).default("keep_rows").describe(Ry.of({ special: "radio_group" })),
|
|
12910
12910
|
where: V(jO).min(1).describe(Ry.of({
|
|
12911
12911
|
label: "Value",
|
|
@@ -12918,7 +12918,7 @@ var wO = (e, t) => e[t] ? e[t] : [], TO = V(qo([zp(), qo([H(cO).catch("unknown")
|
|
|
12918
12918
|
negate: !1
|
|
12919
12919
|
}]).transform((e) => e.filter((e) => CO(e.operator, e.value)))
|
|
12920
12920
|
}), PO = G({
|
|
12921
|
-
type:
|
|
12921
|
+
type: _s("group_by"),
|
|
12922
12922
|
column_ids: V(EO.describe(Ry.of({ special: "column_id" }))).default([]).describe(Ry.of({
|
|
12923
12923
|
label: "Group by columns",
|
|
12924
12924
|
minLength: 1
|
|
@@ -12927,17 +12927,17 @@ var wO = (e, t) => e[t] ? e[t] : [], TO = V(qo([zp(), qo([H(cO).catch("unknown")
|
|
|
12927
12927
|
aggregation: H(uO).default("count").describe(Ry.of({ label: "Aggregation" })),
|
|
12928
12928
|
drop_na: U().default(!1).describe(Ry.of({ label: "Drop N/A" }))
|
|
12929
12929
|
}).describe(Ry.of({})), FO = G({
|
|
12930
|
-
type:
|
|
12930
|
+
type: _s("aggregate"),
|
|
12931
12931
|
column_ids: DO,
|
|
12932
12932
|
aggregations: V(H(uO)).min(1, "At least one aggregation is required").default(["count"]).describe(Ry.of({
|
|
12933
12933
|
label: "Aggregations",
|
|
12934
12934
|
minLength: 1
|
|
12935
12935
|
}))
|
|
12936
12936
|
}).describe(Ry.of({ direction: "row" })), IO = G({
|
|
12937
|
-
type:
|
|
12937
|
+
type: _s("select_columns"),
|
|
12938
12938
|
column_ids: DO
|
|
12939
12939
|
}), LO = G({
|
|
12940
|
-
type:
|
|
12940
|
+
type: _s("sample_rows"),
|
|
12941
12941
|
n: W().positive().describe(Ry.of({ label: "Number of rows" })),
|
|
12942
12942
|
seed: W().default(() => zy()).describe(Ry.of({
|
|
12943
12943
|
label: "Re-sample",
|
|
@@ -12945,19 +12945,19 @@ var wO = (e, t) => e[t] ? e[t] : [], TO = V(qo([zp(), qo([H(cO).catch("unknown")
|
|
|
12945
12945
|
})),
|
|
12946
12946
|
replace: U().default(!1).describe(Ry.of({ label: "Sample with replacement" }))
|
|
12947
12947
|
}), RO = G({
|
|
12948
|
-
type:
|
|
12948
|
+
type: _s("shuffle_rows"),
|
|
12949
12949
|
seed: W().default(() => zy()).describe(Ry.of({
|
|
12950
12950
|
label: "Re-shuffle",
|
|
12951
12951
|
special: "random_number_button"
|
|
12952
12952
|
}))
|
|
12953
12953
|
}), zO = G({
|
|
12954
|
-
type:
|
|
12954
|
+
type: _s("explode_columns"),
|
|
12955
12955
|
column_ids: DO
|
|
12956
12956
|
}), BO = G({
|
|
12957
|
-
type:
|
|
12957
|
+
type: _s("expand_dict"),
|
|
12958
12958
|
column_id: EO
|
|
12959
12959
|
}), VO = G({
|
|
12960
|
-
type:
|
|
12960
|
+
type: _s("unique"),
|
|
12961
12961
|
column_ids: DO,
|
|
12962
12962
|
keep: H([
|
|
12963
12963
|
"first",
|
|
@@ -12966,7 +12966,7 @@ var wO = (e, t) => e[t] ? e[t] : [], TO = V(qo([zp(), qo([H(cO).catch("unknown")
|
|
|
12966
12966
|
"any"
|
|
12967
12967
|
]).default("first").describe(Ry.of({ label: "Keep" }))
|
|
12968
12968
|
}).describe(Ry.of({ direction: "row" })), HO = G({
|
|
12969
|
-
type:
|
|
12969
|
+
type: _s("pivot"),
|
|
12970
12970
|
column_ids: DO,
|
|
12971
12971
|
index_column_ids: V(EO.describe(Ry.of({ special: "column_id" }))).default([]).describe(Ry.of({ label: "Rows" })),
|
|
12972
12972
|
value_column_ids: V(EO.describe(Ry.of({ special: "column_id" }))).default([]).describe(Ry.of({
|
|
@@ -12974,7 +12974,7 @@ var wO = (e, t) => e[t] ? e[t] : [], TO = V(qo([zp(), qo([H(cO).catch("unknown")
|
|
|
12974
12974
|
minLength: 1
|
|
12975
12975
|
})),
|
|
12976
12976
|
aggregation: H(uO).default("sum").describe(Ry.of({ label: "Aggregation" }))
|
|
12977
|
-
}).describe(Ry.of({})), UO =
|
|
12977
|
+
}).describe(Ry.of({})), UO = Qo([
|
|
12978
12978
|
NO,
|
|
12979
12979
|
IO,
|
|
12980
12980
|
kO,
|
|
@@ -13108,18 +13108,18 @@ function XO(e, t) {
|
|
|
13108
13108
|
}
|
|
13109
13109
|
//#endregion
|
|
13110
13110
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
13111
|
-
var ZO = J.lazy(() => import("./glide-data-editor-
|
|
13111
|
+
var ZO = J.lazy(() => import("./glide-data-editor-SkR9hqZZ.js").then((e) => e.t)), QO = MD("marimo-data-editor", { cssStyles: [tO, nO] }).withData(G({
|
|
13112
13112
|
initialValue: G({ edits: V(G({
|
|
13113
13113
|
rowIdx: W(),
|
|
13114
13114
|
columnId: K(),
|
|
13115
|
-
value:
|
|
13115
|
+
value: ps()
|
|
13116
13116
|
})) }),
|
|
13117
13117
|
label: K().nullable(),
|
|
13118
|
-
data:
|
|
13118
|
+
data: Qo([K(), V(cs({}))]),
|
|
13119
13119
|
fieldTypes: TO.nullish(),
|
|
13120
13120
|
columnNames: V(K()).default([]),
|
|
13121
|
-
editableColumns:
|
|
13122
|
-
columnTypes:
|
|
13121
|
+
editableColumns: Qo([V(K()), _s("all")]),
|
|
13122
|
+
columnTypes: qo(K(), Qo([_s("boolean"), V(K())])).default({}),
|
|
13123
13123
|
columnSizingMode: H(["auto", "fit"]).default("auto")
|
|
13124
13124
|
})).withFunctions({}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)($O, {
|
|
13125
13125
|
data: e.data.data,
|
|
@@ -13547,7 +13547,7 @@ function wk(e) {
|
|
|
13547
13547
|
//#endregion
|
|
13548
13548
|
//#region src/components/editor/cell/useAddCell.ts
|
|
13549
13549
|
function Tk() {
|
|
13550
|
-
let e = (0, X.c)(4), t =
|
|
13550
|
+
let e = (0, X.c)(4), t = Ro(Cs), n = Ae(), { createCell: r } = P(), i;
|
|
13551
13551
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
13552
13552
|
e.includes("alt") && T({
|
|
13553
13553
|
autoInstantiate: t,
|
|
@@ -14828,7 +14828,7 @@ function Mk(e) {
|
|
|
14828
14828
|
}
|
|
14829
14829
|
}
|
|
14830
14830
|
var Nk = (0, J.memo)((e) => {
|
|
14831
|
-
let t = (0, X.c)(39), { theme: n } =
|
|
14831
|
+
let t = (0, X.c)(39), { theme: n } = Jo(), r, i, a, o, s, c, u, d;
|
|
14832
14832
|
t[0] === e ? (r = t[1], i = t[2], a = t[3], o = t[4], s = t[5], c = t[6], u = t[7], d = t[8]) : ({code: i, className: r, initiallyHideCode: a, showHideCode: c, showCopyCode: u, insertNewCell: o, language: d, ...s} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = u, t[8] = d);
|
|
14833
14833
|
let f = c === void 0 || c, p = u === void 0 || u, m = d === void 0 ? "python" : d, [h, g] = (0, J.useState)(!!a), _ = n === "dark" ? Dk : Ok, v;
|
|
14834
14834
|
t[9] === Symbol.for("react.memo_cache_sentinel") ? (v = Hs(Us, { fallback: !0 }), t[9] = v) : v = t[9];
|
|
@@ -16062,7 +16062,7 @@ var LA = () => {
|
|
|
16062
16062
|
_
|
|
16063
16063
|
] }), e[21] = u, e[22] = d, e[23] = h, e[24] = y) : y = e[24], y;
|
|
16064
16064
|
}, zA = (e) => {
|
|
16065
|
-
let t = (0, X.c)(8), { baseSpec: n, data: r, height: i } = e, { theme: a } =
|
|
16065
|
+
let t = (0, X.c)(8), { baseSpec: n, data: r, height: i } = e, { theme: a } = Jo();
|
|
16066
16066
|
if (!r) {
|
|
16067
16067
|
let e;
|
|
16068
16068
|
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)("div", { children: "No data" }), t[0] = e) : e = t[0], e;
|
|
@@ -16200,7 +16200,7 @@ var JA = "marimo:charts:v2", YA = G({
|
|
|
16200
16200
|
}).transform((e) => ({
|
|
16201
16201
|
...e,
|
|
16202
16202
|
id: e.id ?? e.tabName
|
|
16203
|
-
})), XA = V(
|
|
16203
|
+
})), XA = V(Yo([K().transform((e) => e), V(YA)])), ZA = new Qi(JA, XA, () => []), QA = {
|
|
16204
16204
|
getItem: (e) => {
|
|
16205
16205
|
try {
|
|
16206
16206
|
let t = ZA.get(e);
|
|
@@ -16215,7 +16215,7 @@ var JA = "marimo:charts:v2", YA = G({
|
|
|
16215
16215
|
removeItem: (e) => {
|
|
16216
16216
|
ZA.remove(e);
|
|
16217
16217
|
}
|
|
16218
|
-
}, $A =
|
|
16218
|
+
}, $A = Co(JA, /* @__PURE__ */ new Map(), QA);
|
|
16219
16219
|
function ej() {
|
|
16220
16220
|
return he();
|
|
16221
16221
|
}
|
|
@@ -16236,7 +16236,7 @@ function lj(e, t) {
|
|
|
16236
16236
|
return !t || t.length === 0 ? n : Ls([...n, ...t], (e) => e[0]);
|
|
16237
16237
|
}
|
|
16238
16238
|
var uj = (e) => {
|
|
16239
|
-
let t = (0, X.c)(7), { cellId: n, data: r, dataTable: i, totalRows: a, columns: o, getDataUrl: s, fieldTypes: c, rowHeaders: l, displayHeader: u, onCloseChartBuilder: d } = e, [f, p] =
|
|
16239
|
+
let t = (0, X.c)(7), { cellId: n, data: r, dataTable: i, totalRows: a, columns: o, getDataUrl: s, fieldTypes: c, rowHeaders: l, displayHeader: u, onCloseChartBuilder: d } = e, [f, p] = xo($A), m = n ? f.get(n) ?? [] : [], [h, g] = (0, J.useState)(aj), [v, y] = (0, J.useState)(m.length), [b, x] = (0, J.useState)(u);
|
|
16240
16240
|
if (u !== b && x(u), u && !b && m.length === 0 && n) {
|
|
16241
16241
|
let e = tj(0, ij), t = new Map(f);
|
|
16242
16242
|
t.set(n, [{
|
|
@@ -16348,7 +16348,7 @@ var uj = (e) => {
|
|
|
16348
16348
|
]
|
|
16349
16349
|
});
|
|
16350
16350
|
}, dj = "X and Y columns are not set", fj = (e) => {
|
|
16351
|
-
let t = (0, X.c)(73), { tableData: n, chartConfig: r, chartType: i, saveChart: a, saveChartType: o, getDataUrl: s, fieldTypes: c, hasSchema: l, isLargeDataset: u } = e, d = l ?? !!c?.length, { theme: f } =
|
|
16351
|
+
let t = (0, X.c)(73), { tableData: n, chartConfig: r, chartType: i, saveChart: a, saveChartType: o, getDataUrl: s, fieldTypes: c, hasSchema: l, isLargeDataset: u } = e, d = l ?? !!c?.length, { theme: f } = Jo(), p;
|
|
16352
16352
|
t[0] === r ? p = t[1] : (p = r ?? qA(), t[0] = r, t[1] = p);
|
|
16353
16353
|
let m;
|
|
16354
16354
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (m = Ly(KA), t[2] = m) : m = t[2];
|
|
@@ -16605,7 +16605,7 @@ function _j(e) {
|
|
|
16605
16605
|
//#endregion
|
|
16606
16606
|
//#region src/components/data-table/hooks/use-panel-ownership.ts
|
|
16607
16607
|
function vj(e, t) {
|
|
16608
|
-
let n = (0, X.c)(16), r =
|
|
16608
|
+
let n = (0, X.c)(16), r = Ro(FS), { focusCell: i } = ee(), a = Ae(), [o, s] = xo(NS), [l, u] = xo(MS), [d, f] = xo(PS), p = yj(e, t);
|
|
16609
16609
|
!t && r && (c.error("CellId is not found, defaulting to fixed mode"), r = !1);
|
|
16610
16610
|
let m = (e) => l === p && d && e === o, h = a === t, g = l && bj(l, t);
|
|
16611
16611
|
r && h && l !== p && !g && u(p);
|
|
@@ -16658,7 +16658,7 @@ var xj = G({
|
|
|
16658
16658
|
"json",
|
|
16659
16659
|
"parquet",
|
|
16660
16660
|
"tsv"
|
|
16661
|
-
]) })).output(Sj), wj = XD.input(xj.extend({ format:
|
|
16661
|
+
]) })).output(Sj), wj = XD.input(xj.extend({ format: _s("geojson") })).output(Sj.extend({ code: Qo([Sj.shape.code, _s("missing_crs")]) })), Tj = G({
|
|
16662
16662
|
geometry_columns: V(G({
|
|
16663
16663
|
name: K(),
|
|
16664
16664
|
encoding: H([
|
|
@@ -16667,11 +16667,11 @@ var xj = G({
|
|
|
16667
16667
|
"wkt",
|
|
16668
16668
|
"other"
|
|
16669
16669
|
]),
|
|
16670
|
-
crs:
|
|
16670
|
+
crs: Qo([K(), qo(K(), ps())]).nullable()
|
|
16671
16671
|
})),
|
|
16672
16672
|
primary_geometry_column: K().nullable(),
|
|
16673
16673
|
default_geometry_column: K().nullable(),
|
|
16674
|
-
formats:
|
|
16674
|
+
formats: qo(K(), G({
|
|
16675
16675
|
available: U(),
|
|
16676
16676
|
reason: K().nullable(),
|
|
16677
16677
|
missing_packages: V(K())
|
|
@@ -16740,7 +16740,7 @@ function Aj(e, t) {
|
|
|
16740
16740
|
});
|
|
16741
16741
|
}
|
|
16742
16742
|
var jj = (e) => {
|
|
16743
|
-
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i =
|
|
16743
|
+
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i = Ro(Cs), a = Ae(), { createCell: o } = P(), s;
|
|
16744
16744
|
t[0] !== i || t[1] !== o || t[2] !== a ? (s = (e) => {
|
|
16745
16745
|
e.includes("alt") && T({
|
|
16746
16746
|
autoInstantiate: i,
|
|
@@ -16908,7 +16908,7 @@ function Nj({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
16908
16908
|
}) })] });
|
|
16909
16909
|
}
|
|
16910
16910
|
var Pj = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
16911
|
-
let { theme: r } =
|
|
16911
|
+
let { theme: r } = Jo(), { locale: i } = zr(), { data: a, error: o, isPending: s, refetch: c } = sc(async () => await e({ column: t }), []);
|
|
16912
16912
|
if (o) return /* @__PURE__ */ (0, Y.jsx)(Bt, { error: o });
|
|
16913
16913
|
if (s) return /* @__PURE__ */ (0, Y.jsx)(Ut, { message: "Loading..." });
|
|
16914
16914
|
if (!a) return /* @__PURE__ */ (0, Y.jsx)(Gn, {
|
|
@@ -17271,9 +17271,9 @@ function Wj(e, t) {
|
|
|
17271
17271
|
}
|
|
17272
17272
|
//#endregion
|
|
17273
17273
|
//#region src/plugins/impl/DataTablePlugin.tsx
|
|
17274
|
-
var Gj =
|
|
17274
|
+
var Gj = Qo([
|
|
17275
17275
|
W(),
|
|
17276
|
-
|
|
17276
|
+
hs(),
|
|
17277
17277
|
K()
|
|
17278
17278
|
]).nullable(), Kj = G({
|
|
17279
17279
|
total: W().nullable(),
|
|
@@ -17291,29 +17291,29 @@ var Gj = Xo([
|
|
|
17291
17291
|
p75: Gj,
|
|
17292
17292
|
p95: Gj
|
|
17293
17293
|
}), qj = V(G({
|
|
17294
|
-
bin_start:
|
|
17294
|
+
bin_start: Qo([
|
|
17295
17295
|
W(),
|
|
17296
17296
|
K(),
|
|
17297
|
-
|
|
17297
|
+
vo(Date)
|
|
17298
17298
|
]),
|
|
17299
|
-
bin_end:
|
|
17299
|
+
bin_end: Qo([
|
|
17300
17300
|
W(),
|
|
17301
17301
|
K(),
|
|
17302
|
-
|
|
17302
|
+
vo(Date)
|
|
17303
17303
|
]),
|
|
17304
17304
|
count: W()
|
|
17305
17305
|
})), Jj = V(G({
|
|
17306
17306
|
value: K(),
|
|
17307
17307
|
count: W()
|
|
17308
|
-
})), Yj =
|
|
17309
|
-
initialValue:
|
|
17308
|
+
})), Yj = qo(K(), qo(K(), K().nullable())).optional(), Xj = MD("marimo-table").withData(G({
|
|
17309
|
+
initialValue: Qo([V(W()), V(G({
|
|
17310
17310
|
rowId: K(),
|
|
17311
17311
|
columnName: K()
|
|
17312
17312
|
}))]),
|
|
17313
17313
|
label: K().nullable(),
|
|
17314
|
-
data:
|
|
17315
|
-
rawData:
|
|
17316
|
-
totalRows:
|
|
17314
|
+
data: Qo([K(), V(cs({}))]),
|
|
17315
|
+
rawData: Qo([K(), V(cs({}))]).nullish(),
|
|
17316
|
+
totalRows: Qo([W(), _s(on)]),
|
|
17317
17317
|
pagination: U().default(!1),
|
|
17318
17318
|
pageSize: W().default(10),
|
|
17319
17319
|
selection: H([
|
|
@@ -17324,7 +17324,7 @@ var Gj = Xo([
|
|
|
17324
17324
|
]).nullable().default(null),
|
|
17325
17325
|
showDownload: U().default(!1),
|
|
17326
17326
|
showFilters: U().default(!1),
|
|
17327
|
-
showColumnSummaries:
|
|
17327
|
+
showColumnSummaries: Qo([U(), H(["stats", "chart"])]).default(!0),
|
|
17328
17328
|
showDataTypes: U().default(!0),
|
|
17329
17329
|
showPageSizeSelector: U().default(!0),
|
|
17330
17330
|
showColumnExplorer: U().default(!0),
|
|
@@ -17335,20 +17335,20 @@ var Gj = Xo([
|
|
|
17335
17335
|
freezeColumnsLeft: V(K()).optional(),
|
|
17336
17336
|
freezeColumnsRight: V(K()).optional(),
|
|
17337
17337
|
hiddenColumns: V(K()).optional(),
|
|
17338
|
-
textJustifyColumns:
|
|
17338
|
+
textJustifyColumns: qo(K(), H([
|
|
17339
17339
|
"left",
|
|
17340
17340
|
"center",
|
|
17341
17341
|
"right"
|
|
17342
17342
|
])).optional(),
|
|
17343
17343
|
wrappedColumns: V(K()).optional(),
|
|
17344
|
-
columnWidths:
|
|
17345
|
-
headerTooltip:
|
|
17344
|
+
columnWidths: qo(K(), W().int().positive()).optional(),
|
|
17345
|
+
headerTooltip: qo(K(), K()).optional(),
|
|
17346
17346
|
fieldTypes: TO.nullish(),
|
|
17347
17347
|
totalColumns: W(),
|
|
17348
|
-
maxColumns:
|
|
17348
|
+
maxColumns: Qo([W(), _s("all")]).default("all"),
|
|
17349
17349
|
hasStableRowId: U().default(!1),
|
|
17350
17350
|
maxHeight: W().optional(),
|
|
17351
|
-
cellStyles:
|
|
17351
|
+
cellStyles: qo(K(), qo(K(), cs({}))).optional(),
|
|
17352
17352
|
hoverTemplate: K().optional(),
|
|
17353
17353
|
cellHoverTexts: Yj,
|
|
17354
17354
|
lazy: U().default(!1),
|
|
@@ -17358,10 +17358,10 @@ var Gj = Xo([
|
|
|
17358
17358
|
download_geojson: wj,
|
|
17359
17359
|
get_export_metadata: Ej,
|
|
17360
17360
|
get_column_summaries: XD.input(cs({})).output(G({
|
|
17361
|
-
data:
|
|
17362
|
-
stats:
|
|
17363
|
-
bin_values:
|
|
17364
|
-
value_counts:
|
|
17361
|
+
data: Qo([K(), V(cs({}))]).nullable(),
|
|
17362
|
+
stats: qo(K(), Kj),
|
|
17363
|
+
bin_values: qo(K(), qj),
|
|
17364
|
+
value_counts: qo(K(), Jj),
|
|
17365
17365
|
show_charts: U(),
|
|
17366
17366
|
is_disabled: U().optional()
|
|
17367
17367
|
})),
|
|
@@ -17376,12 +17376,12 @@ var Gj = Xo([
|
|
|
17376
17376
|
page_size: W(),
|
|
17377
17377
|
max_columns: W().nullable().optional()
|
|
17378
17378
|
})).output(G({
|
|
17379
|
-
data:
|
|
17380
|
-
total_rows:
|
|
17379
|
+
data: Qo([K(), V(cs({}))]),
|
|
17380
|
+
total_rows: Qo([W(), _s(on)]),
|
|
17381
17381
|
has_next_page: U().nullish(),
|
|
17382
|
-
cell_styles:
|
|
17382
|
+
cell_styles: qo(K(), qo(K(), cs({}))).nullable(),
|
|
17383
17383
|
cell_hover_texts: Yj.nullable(),
|
|
17384
|
-
raw_data:
|
|
17384
|
+
raw_data: Qo([K(), V(cs({}))]).nullish()
|
|
17385
17385
|
})),
|
|
17386
17386
|
get_row_ids: XD.input(cs({})).output(G({
|
|
17387
17387
|
row_ids: V(W()),
|
|
@@ -17389,7 +17389,7 @@ var Gj = Xo([
|
|
|
17389
17389
|
error: K().nullable()
|
|
17390
17390
|
})),
|
|
17391
17391
|
get_data_url: XD.input(cs({})).output(G({
|
|
17392
|
-
data_url:
|
|
17392
|
+
data_url: Qo([K(), V(cs({}))]),
|
|
17393
17393
|
format: H([
|
|
17394
17394
|
"csv",
|
|
17395
17395
|
"json",
|
|
@@ -17399,7 +17399,7 @@ var Gj = Xo([
|
|
|
17399
17399
|
calculate_top_k_rows: XD.input(G({
|
|
17400
17400
|
column: K(),
|
|
17401
17401
|
k: W()
|
|
17402
|
-
})).output(G({ data: V(
|
|
17402
|
+
})).output(G({ data: V(Yo([ms(), W()])) })),
|
|
17403
17403
|
preview_column: XD.input(G({ column: K() })).output(G({
|
|
17404
17404
|
chart_spec: K().nullable(),
|
|
17405
17405
|
chart_code: K().nullable(),
|
|
@@ -17545,7 +17545,7 @@ var eM = (e) => {
|
|
|
17545
17545
|
d.pageSize,
|
|
17546
17546
|
d.pageIndex
|
|
17547
17547
|
], t[40] = g, t[41] = d.pageIndex, t[42] = d.pageSize, t[43] = e.cellHoverTexts, t[44] = e.cellStyles, t[45] = e.data, t[46] = e.lazy, t[47] = e.totalRows, t[48] = i, t[49] = p, t[50] = s, t[51] = P, t[52] = F) : F = t[52];
|
|
17548
|
-
let { data: I, error: L, isPending: R, isFetching: z } = sc(N, F), B =
|
|
17548
|
+
let { data: I, error: L, isPending: R, isFetching: z } = sc(N, F), B = Ro(bt), ee;
|
|
17549
17549
|
t[53] !== B || t[54] !== e ? (ee = async () => !B || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, t[53] = B, t[54] = e, t[55] = ee) : ee = t[55];
|
|
17550
17550
|
let te = e.showDownload, ne = e.get_size_bytes, re = e.lazy, ie = e.totalRows, ae = uc(g), oe = uc(s), se;
|
|
17551
17551
|
t[56] !== B || t[57] !== e.get_size_bytes || t[58] !== e.lazy || t[59] !== e.showDownload || t[60] !== e.totalRows || t[61] !== p || t[62] !== ae || t[63] !== oe ? (se = [
|
|
@@ -17780,9 +17780,9 @@ var nM = (e) => {
|
|
|
17780
17780
|
}
|
|
17781
17781
|
}, t[49] = it, t[50] = Je, t[51] = A, t[52] = at) : at = t[52];
|
|
17782
17782
|
let ot = Is(at), st = Je === "multi" || Je === "single", ct = _ && !!pe, lt;
|
|
17783
|
-
t[53] === Symbol.for("react.memo_cache_sentinel") ? (lt =
|
|
17783
|
+
t[53] === Symbol.for("react.memo_cache_sentinel") ? (lt = Ko(), t[53] = lt) : lt = t[53];
|
|
17784
17784
|
let ut = lt, dt;
|
|
17785
|
-
t[54] === Symbol.for("react.memo_cache_sentinel") ? (dt =
|
|
17785
|
+
t[54] === Symbol.for("react.memo_cache_sentinel") ? (dt = Zo(), t[54] = dt) : dt = t[54];
|
|
17786
17786
|
let ft = dt, pt;
|
|
17787
17787
|
bb2: {
|
|
17788
17788
|
if (!we || !(v || ct)) {
|
|
@@ -17925,8 +17925,8 @@ var nM = (e) => {
|
|
|
17925
17925
|
] }), t[140] = ht, t[141] = gt, t[142] = _t, t[143] = vt, t[144] = Dt, t[145] = Ot) : Ot = t[145], Ot;
|
|
17926
17926
|
}, rM = (e) => {
|
|
17927
17927
|
let t = (0, X.c)(2), { children: n } = e, r;
|
|
17928
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, Y.jsx)(dc, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
17929
|
-
store:
|
|
17928
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, Y.jsx)(dc, { children: /* @__PURE__ */ (0, Y.jsx)(Bo, {
|
|
17929
|
+
store: po,
|
|
17930
17930
|
children: /* @__PURE__ */ (0, Y.jsx)(Wn, {
|
|
17931
17931
|
controller: ft,
|
|
17932
17932
|
children: n
|
|
@@ -18025,7 +18025,7 @@ var fM = class {
|
|
|
18025
18025
|
}, mM = class {
|
|
18026
18026
|
tagName = "marimo-date-range";
|
|
18027
18027
|
validator = G({
|
|
18028
|
-
initialValue:
|
|
18028
|
+
initialValue: Yo([K(), K()]),
|
|
18029
18029
|
label: K().nullable(),
|
|
18030
18030
|
start: K(),
|
|
18031
18031
|
stop: K(),
|
|
@@ -18136,7 +18136,7 @@ var fM = class {
|
|
|
18136
18136
|
tagName = "marimo-dict";
|
|
18137
18137
|
validator = G({
|
|
18138
18138
|
label: K().nullable(),
|
|
18139
|
-
elementIds:
|
|
18139
|
+
elementIds: qo(K(), K())
|
|
18140
18140
|
});
|
|
18141
18141
|
render(e) {
|
|
18142
18142
|
return /* @__PURE__ */ (0, Y.jsx)(yM, {
|
|
@@ -18267,7 +18267,7 @@ function TM(e) {
|
|
|
18267
18267
|
}
|
|
18268
18268
|
//#endregion
|
|
18269
18269
|
//#region src/plugins/impl/data-explorer/DataExplorerPlugin.tsx
|
|
18270
|
-
var EM = J.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
18270
|
+
var EM = J.lazy(() => import("./ConnectedDataExplorerComponent-CO9uVewH.js")), DM = MD("marimo-data-explorer").withData(G({
|
|
18271
18271
|
label: K().nullish(),
|
|
18272
18272
|
data: K()
|
|
18273
18273
|
})).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(EM, {
|
|
@@ -18342,8 +18342,8 @@ var EM = J.lazy(() => import("./ConnectedDataExplorerComponent-yQVBQBUW.js")), D
|
|
|
18342
18342
|
}
|
|
18343
18343
|
}), NM = () => ({
|
|
18344
18344
|
isMatch: (e) => {
|
|
18345
|
-
if (e instanceof
|
|
18346
|
-
let t = e.element, n = t instanceof
|
|
18345
|
+
if (e instanceof Ao) {
|
|
18346
|
+
let t = e.element, n = t instanceof bo ? t.description : "", { special: r } = Ry.parse(n || "");
|
|
18347
18347
|
return r === "column_id";
|
|
18348
18348
|
}
|
|
18349
18349
|
return !1;
|
|
@@ -18392,7 +18392,7 @@ var EM = J.lazy(() => import("./ConnectedDataExplorerComponent-yQVBQBUW.js")), D
|
|
|
18392
18392
|
}), t[9] = r.control, t[10] = i, t[11] = d, t[12] = f) : f = t[12], f;
|
|
18393
18393
|
}, FM = () => ({
|
|
18394
18394
|
isMatch: (e) => {
|
|
18395
|
-
if (e instanceof
|
|
18395
|
+
if (e instanceof Ao) {
|
|
18396
18396
|
let { special: t } = Ry.parse(e.description || "");
|
|
18397
18397
|
return t === "column_values";
|
|
18398
18398
|
}
|
|
@@ -18445,7 +18445,7 @@ var EM = J.lazy(() => import("./ConnectedDataExplorerComponent-yQVBQBUW.js")), D
|
|
|
18445
18445
|
}), IM = () => ({
|
|
18446
18446
|
isMatch: (e) => {
|
|
18447
18447
|
let { special: t } = Ry.parse(e.description || "");
|
|
18448
|
-
return t === "column_values" && e instanceof
|
|
18448
|
+
return t === "column_values" && e instanceof Ao;
|
|
18449
18449
|
},
|
|
18450
18450
|
Component: ({ schema: e, form: t, path: n }) => {
|
|
18451
18451
|
let r = J.use(kM), i = J.use(AM), { data: a, isPending: o } = sc(() => i({ column: r }), [r]), s = a?.values || [];
|
|
@@ -18483,7 +18483,7 @@ var EM = J.lazy(() => import("./ConnectedDataExplorerComponent-yQVBQBUW.js")), D
|
|
|
18483
18483
|
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ (0, Y.jsx)($y, { className: r }), t[2] = r, t[3] = i), i;
|
|
18484
18484
|
}, RM = () => ({
|
|
18485
18485
|
isMatch: (e) => {
|
|
18486
|
-
if (e instanceof
|
|
18486
|
+
if (e instanceof Eo) {
|
|
18487
18487
|
let { special: t } = Ry.parse(e.description || "");
|
|
18488
18488
|
return t === "column_filter";
|
|
18489
18489
|
}
|
|
@@ -18889,7 +18889,7 @@ var XM = MD("marimo-dataframe").withData(G({
|
|
|
18889
18889
|
pageSize: W().default(5),
|
|
18890
18890
|
showDownload: U().default(!0),
|
|
18891
18891
|
dataframeName: K().optional(),
|
|
18892
|
-
columns: V(
|
|
18892
|
+
columns: V(Yo([
|
|
18893
18893
|
K().or(W()),
|
|
18894
18894
|
K(),
|
|
18895
18895
|
K()
|
|
@@ -18911,7 +18911,7 @@ var XM = MD("marimo-dataframe").withData(G({
|
|
|
18911
18911
|
sql_code: K().nullish()
|
|
18912
18912
|
})),
|
|
18913
18913
|
get_column_values: XD.input(G({ column: K() })).output(G({
|
|
18914
|
-
values: V(
|
|
18914
|
+
values: V(ms()),
|
|
18915
18915
|
too_many_values: U()
|
|
18916
18916
|
})),
|
|
18917
18917
|
search: XD.input(G({
|
|
@@ -18924,7 +18924,7 @@ var XM = MD("marimo-dataframe").withData(G({
|
|
|
18924
18924
|
page_number: W(),
|
|
18925
18925
|
page_size: W()
|
|
18926
18926
|
})).output(G({
|
|
18927
|
-
data:
|
|
18927
|
+
data: Qo([K(), V(cs({}))]),
|
|
18928
18928
|
total_rows: W()
|
|
18929
18929
|
})),
|
|
18930
18930
|
download_as: Cj,
|
|
@@ -19003,7 +19003,7 @@ var XM = MD("marimo-dataframe").withData(G({
|
|
|
19003
19003
|
}), t[28] = oe, t[29] = se, t[30] = ce) : ce = t[30];
|
|
19004
19004
|
let le;
|
|
19005
19005
|
t[31] !== c || t[32] !== s ? (le = (e) => {
|
|
19006
|
-
|
|
19006
|
+
uo(e, s) || (c(e), P(e));
|
|
19007
19007
|
}, t[31] = c, t[32] = s, t[33] = le) : le = t[33];
|
|
19008
19008
|
let ue;
|
|
19009
19009
|
t[34] !== k || t[35] !== n || t[36] !== u || t[37] !== N || t[38] !== o || t[39] !== le ? (ue = /* @__PURE__ */ (0, Y.jsx)(Yt, {
|
|
@@ -20734,7 +20734,7 @@ function dN(e, t, n) {
|
|
|
20734
20734
|
//#region ../node_modules/.pnpm/file-selector@2.1.2/node_modules/file-selector/dist/es2015/file-selector.js
|
|
20735
20735
|
var fN = [".DS_Store", "Thumbs.db"];
|
|
20736
20736
|
function pN(e) {
|
|
20737
|
-
return
|
|
20737
|
+
return us(this, void 0, void 0, function* () {
|
|
20738
20738
|
return gN(e) && mN(e.dataTransfer) ? yN(e.dataTransfer, e.type) : hN(e) ? _N(e) : Array.isArray(e) && e.every((e) => "getFile" in e && typeof e.getFile == "function") ? vN(e) : [];
|
|
20739
20739
|
});
|
|
20740
20740
|
}
|
|
@@ -20751,12 +20751,12 @@ function _N(e) {
|
|
|
20751
20751
|
return xN(e.target.files).map((e) => lN(e));
|
|
20752
20752
|
}
|
|
20753
20753
|
function vN(e) {
|
|
20754
|
-
return
|
|
20754
|
+
return us(this, void 0, void 0, function* () {
|
|
20755
20755
|
return (yield Promise.all(e.map((e) => e.getFile()))).map((e) => lN(e));
|
|
20756
20756
|
});
|
|
20757
20757
|
}
|
|
20758
20758
|
function yN(e, t) {
|
|
20759
|
-
return
|
|
20759
|
+
return us(this, void 0, void 0, function* () {
|
|
20760
20760
|
if (e.items) {
|
|
20761
20761
|
let n = xN(e.items).filter((e) => e.kind === "file");
|
|
20762
20762
|
return t === "drop" ? bN(CN(yield Promise.all(n.map(SN)))) : n;
|
|
@@ -20785,7 +20785,7 @@ function CN(e) {
|
|
|
20785
20785
|
return e.reduce((e, t) => [...e, ...Array.isArray(t) ? CN(t) : [t]], []);
|
|
20786
20786
|
}
|
|
20787
20787
|
function wN(e, t) {
|
|
20788
|
-
return
|
|
20788
|
+
return us(this, void 0, void 0, function* () {
|
|
20789
20789
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
20790
20790
|
let t = yield e.getAsFileSystemHandle();
|
|
20791
20791
|
if (t === null) throw Error(`${e} is not a File`);
|
|
@@ -20800,7 +20800,7 @@ function wN(e, t) {
|
|
|
20800
20800
|
});
|
|
20801
20801
|
}
|
|
20802
20802
|
function TN(e) {
|
|
20803
|
-
return
|
|
20803
|
+
return us(this, void 0, void 0, function* () {
|
|
20804
20804
|
return e.isDirectory ? EN(e) : DN(e);
|
|
20805
20805
|
});
|
|
20806
20806
|
}
|
|
@@ -20809,7 +20809,7 @@ function EN(e) {
|
|
|
20809
20809
|
return new Promise((e, n) => {
|
|
20810
20810
|
let r = [];
|
|
20811
20811
|
function i() {
|
|
20812
|
-
t.readEntries((t) =>
|
|
20812
|
+
t.readEntries((t) => us(this, void 0, void 0, function* () {
|
|
20813
20813
|
if (t.length) {
|
|
20814
20814
|
let e = Promise.all(t.map(TN));
|
|
20815
20815
|
r.push(e), i();
|
|
@@ -20826,7 +20826,7 @@ function EN(e) {
|
|
|
20826
20826
|
});
|
|
20827
20827
|
}
|
|
20828
20828
|
function DN(e) {
|
|
20829
|
-
return
|
|
20829
|
+
return us(this, void 0, void 0, function* () {
|
|
20830
20830
|
return new Promise((t, n) => {
|
|
20831
20831
|
e.file((n) => {
|
|
20832
20832
|
t(lN(n, e.fullPath));
|
|
@@ -21823,7 +21823,7 @@ var tF = MD("marimo-form").withData(G({
|
|
|
21823
21823
|
clearButtonLabel: K().default("Clear"),
|
|
21824
21824
|
clearButtonTooltip: K().optional(),
|
|
21825
21825
|
shouldValidate: U().optional()
|
|
21826
|
-
})).withFunctions({ validate: XD.input(G({ value:
|
|
21826
|
+
})).withFunctions({ validate: XD.input(G({ value: ps() })).output(K().nullish()) }).renderer(({ data: e, functions: t, ...n }) => /* @__PURE__ */ (0, Y.jsx)(rF, {
|
|
21827
21827
|
...e,
|
|
21828
21828
|
...n,
|
|
21829
21829
|
...t
|
|
@@ -22760,9 +22760,9 @@ var IF = class {
|
|
|
22760
22760
|
tagName = "marimo-matplotlib";
|
|
22761
22761
|
validator = G({
|
|
22762
22762
|
chartBase64: K(),
|
|
22763
|
-
xBounds:
|
|
22764
|
-
yBounds:
|
|
22765
|
-
axesPixelBounds:
|
|
22763
|
+
xBounds: Yo([W(), W()]),
|
|
22764
|
+
yBounds: Yo([W(), W()]),
|
|
22765
|
+
axesPixelBounds: Yo([
|
|
22766
22766
|
W(),
|
|
22767
22767
|
W(),
|
|
22768
22768
|
W(),
|
|
@@ -22827,7 +22827,7 @@ var IF = class {
|
|
|
22827
22827
|
}, BF = "mpl-interactive-figure", VF = MD("marimo-mpl-interactive").withData(G({
|
|
22828
22828
|
mplJsUrl: K(),
|
|
22829
22829
|
cssUrl: K(),
|
|
22830
|
-
toolbarImages:
|
|
22830
|
+
toolbarImages: qo(K(), K()),
|
|
22831
22831
|
width: W(),
|
|
22832
22832
|
height: W()
|
|
22833
22833
|
})).withFunctions({}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(KF, { ...e })), HF = null;
|
|
@@ -23029,7 +23029,7 @@ function XF(e) {
|
|
|
23029
23029
|
}
|
|
23030
23030
|
//#endregion
|
|
23031
23031
|
//#region src/plugins/impl/panel/utils.ts
|
|
23032
|
-
var ZF = G({ content:
|
|
23032
|
+
var ZF = G({ content: Qo([G({ type: _s("ACK") }), K()]).nullable() });
|
|
23033
23033
|
function QF(e, t) {
|
|
23034
23034
|
if (Array.isArray(e)) return e.map((e) => QF(e, t));
|
|
23035
23035
|
if (e instanceof Map) {
|
|
@@ -23083,12 +23083,12 @@ var $F = class {
|
|
|
23083
23083
|
}
|
|
23084
23084
|
}, eI = MD("marimo-panel").withData(G({
|
|
23085
23085
|
extensionUrl: K().nullable(),
|
|
23086
|
-
docs_json:
|
|
23087
|
-
render_json: G({ roots:
|
|
23086
|
+
docs_json: qo(K(), ps()),
|
|
23087
|
+
render_json: G({ roots: qo(K(), K()) }).catchall(ps())
|
|
23088
23088
|
})).withFunctions({ send_to_widget: XD.input(G({
|
|
23089
|
-
message:
|
|
23089
|
+
message: ps(),
|
|
23090
23090
|
buffers: V(K())
|
|
23091
|
-
})).output(
|
|
23091
|
+
})).output(wo().optional()) }).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(rI, { ...e }));
|
|
23092
23092
|
function tI() {
|
|
23093
23093
|
return window.Bokeh != null;
|
|
23094
23094
|
}
|
|
@@ -23475,7 +23475,7 @@ function HI(e, t, n) {
|
|
|
23475
23475
|
}
|
|
23476
23476
|
function UI(e, t) {
|
|
23477
23477
|
let n = new Set(zI);
|
|
23478
|
-
for (let r of n)
|
|
23478
|
+
for (let r of n) uo(e[r], t[r]) || n.delete(r);
|
|
23479
23479
|
return n;
|
|
23480
23480
|
}
|
|
23481
23481
|
function WI(e, t, n) {
|
|
@@ -23581,7 +23581,7 @@ var KI = class {
|
|
|
23581
23581
|
let t = {};
|
|
23582
23582
|
Object.entries(e).forEach((e) => {
|
|
23583
23583
|
let [n, r] = e;
|
|
23584
|
-
|
|
23584
|
+
ko(t, n, r);
|
|
23585
23585
|
}), i((e) => ({
|
|
23586
23586
|
...e,
|
|
23587
23587
|
...t
|
|
@@ -23863,9 +23863,9 @@ var tL = class {
|
|
|
23863
23863
|
}, t[10] = u, t[11] = r, t[12] = N, t[13] = P) : (N = t[12], P = t[13]);
|
|
23864
23864
|
let F, I;
|
|
23865
23865
|
t[14] !== u || t[15] !== v || t[16] !== r || t[17] !== i ? (F = () => {
|
|
23866
|
-
u && !
|
|
23866
|
+
u && !uo(v, i) && r(v);
|
|
23867
23867
|
}, I = () => {
|
|
23868
|
-
u && !
|
|
23868
|
+
u && !uo(v, i) && r(v);
|
|
23869
23869
|
}, t[14] = u, t[15] = v, t[16] = r, t[17] = i, t[18] = F, t[19] = I) : (F = t[18], I = t[19]);
|
|
23870
23870
|
let L;
|
|
23871
23871
|
t[20] !== m || t[21] !== g || t[22] !== v || t[23] !== d || t[24] !== a || t[25] !== s || t[26] !== o || t[27] !== j || t[28] !== M || t[29] !== N || t[30] !== P || t[31] !== F || t[32] !== I || t[33] !== h ? (L = /* @__PURE__ */ (0, Y.jsx)(eL, {
|
|
@@ -24013,8 +24013,8 @@ var tL = class {
|
|
|
24013
24013
|
}), oL = class {
|
|
24014
24014
|
tagName = "marimo-refresh";
|
|
24015
24015
|
validator = G({
|
|
24016
|
-
options: V(
|
|
24017
|
-
defaultInterval:
|
|
24016
|
+
options: V(Qo([aL, W().min(iL)])).default([]),
|
|
24017
|
+
defaultInterval: Qo([aL, W().min(iL)]).optional(),
|
|
24018
24018
|
label: K().nullable()
|
|
24019
24019
|
});
|
|
24020
24020
|
render(e) {
|
|
@@ -24340,7 +24340,7 @@ var yL = class {
|
|
|
24340
24340
|
maxLength: W().optional(),
|
|
24341
24341
|
minLength: W().optional(),
|
|
24342
24342
|
disabled: U().optional(),
|
|
24343
|
-
debounce:
|
|
24343
|
+
debounce: gs(Qo([U(), W()])),
|
|
24344
24344
|
rows: W().default(4),
|
|
24345
24345
|
fullWidth: U().default(!1)
|
|
24346
24346
|
});
|
|
@@ -24460,7 +24460,7 @@ var yL = class {
|
|
|
24460
24460
|
minLength: W().optional(),
|
|
24461
24461
|
fullWidth: U().default(!1),
|
|
24462
24462
|
disabled: U().optional(),
|
|
24463
|
-
debounce:
|
|
24463
|
+
debounce: gs(Qo([U(), W()])),
|
|
24464
24464
|
passwordHasValue: U().optional()
|
|
24465
24465
|
});
|
|
24466
24466
|
render(e) {
|
|
@@ -24586,16 +24586,16 @@ function wL(e, t) {
|
|
|
24586
24586
|
}
|
|
24587
24587
|
//#endregion
|
|
24588
24588
|
//#region src/plugins/impl/vega/VegaPlugin.tsx
|
|
24589
|
-
var TL = J.lazy(() => import("./vega-component-
|
|
24589
|
+
var TL = J.lazy(() => import("./vega-component-BxJFcD2G.js")), EL = class {
|
|
24590
24590
|
tagName = "marimo-vega";
|
|
24591
24591
|
validator = G({
|
|
24592
24592
|
spec: cs({}).transform((e) => e),
|
|
24593
|
-
chartSelection:
|
|
24593
|
+
chartSelection: Qo([
|
|
24594
24594
|
U(),
|
|
24595
|
-
|
|
24596
|
-
|
|
24595
|
+
_s("point"),
|
|
24596
|
+
_s("interval")
|
|
24597
24597
|
]).default(!0),
|
|
24598
|
-
fieldSelection:
|
|
24598
|
+
fieldSelection: Qo([U(), V(K())]).default(!0),
|
|
24599
24599
|
embedOptions: cs({}).default({})
|
|
24600
24600
|
});
|
|
24601
24601
|
render(e) {
|
|
@@ -24695,7 +24695,7 @@ var jL = class {
|
|
|
24695
24695
|
tagName = "marimo-carousel";
|
|
24696
24696
|
validator = G({
|
|
24697
24697
|
index: K().nullish(),
|
|
24698
|
-
height:
|
|
24698
|
+
height: Qo([K(), W()]).nullish()
|
|
24699
24699
|
});
|
|
24700
24700
|
cssStyles = [
|
|
24701
24701
|
IL,
|
|
@@ -24774,7 +24774,7 @@ var jL = class {
|
|
|
24774
24774
|
tagName = "marimo-json-output";
|
|
24775
24775
|
validator = G({
|
|
24776
24776
|
name: K().nullish(),
|
|
24777
|
-
jsonData:
|
|
24777
|
+
jsonData: ps(),
|
|
24778
24778
|
valueTypes: H(["json", "python"]).default("python")
|
|
24779
24779
|
});
|
|
24780
24780
|
render({ data: e }) {
|
|
@@ -24827,11 +24827,11 @@ var jL = class {
|
|
|
24827
24827
|
tagName = "marimo-mime-renderer";
|
|
24828
24828
|
validator = G({
|
|
24829
24829
|
mime: K().transform((e) => e),
|
|
24830
|
-
data:
|
|
24830
|
+
data: Qo([
|
|
24831
24831
|
K(),
|
|
24832
|
-
|
|
24833
|
-
|
|
24834
|
-
V(
|
|
24832
|
+
wo(),
|
|
24833
|
+
qo(K(), ps()),
|
|
24834
|
+
V(ms())
|
|
24835
24835
|
]).transform((e) => e)
|
|
24836
24836
|
});
|
|
24837
24837
|
render({ data: e }) {
|
|
@@ -24846,7 +24846,7 @@ var jL = class {
|
|
|
24846
24846
|
validator = G({
|
|
24847
24847
|
diagram: K(),
|
|
24848
24848
|
theme: K().optional(),
|
|
24849
|
-
theme_variables:
|
|
24849
|
+
theme_variables: qo(K(), K()).optional()
|
|
24850
24850
|
});
|
|
24851
24851
|
render(e) {
|
|
24852
24852
|
return /* @__PURE__ */ (0, Y.jsx)(XL, {
|
|
@@ -24855,7 +24855,7 @@ var jL = class {
|
|
|
24855
24855
|
themeVariables: e.data.theme_variables
|
|
24856
24856
|
});
|
|
24857
24857
|
}
|
|
24858
|
-
}, XL = (0, J.lazy)(() => import("./mermaid-
|
|
24858
|
+
}, XL = (0, J.lazy)(() => import("./mermaid-pmVHDUQA.js").then((e) => e.t));
|
|
24859
24859
|
//#endregion
|
|
24860
24860
|
//#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
|
|
24861
24861
|
function ZL() {
|
|
@@ -24921,7 +24921,7 @@ function nR(e, t) {
|
|
|
24921
24921
|
//#endregion
|
|
24922
24922
|
//#region src/components/editor/chrome/panels/outline/floating-outline.tsx
|
|
24923
24923
|
var rR = () => {
|
|
24924
|
-
let e = (0, X.c)(22), { items: t } =
|
|
24924
|
+
let e = (0, X.c)(22), { items: t } = Ro(va), n;
|
|
24925
24925
|
e[0] === t ? n = e[1] : (n = eR(t), e[0] = t, e[1] = n);
|
|
24926
24926
|
let { activeHeaderId: r, activeOccurrences: i } = QL(n), [a, o] = J.useState(!1), [s, c] = J.useState(!1), u = a || s;
|
|
24927
24927
|
if (t.length < 2) return null;
|
|
@@ -25005,7 +25005,7 @@ var rR = () => {
|
|
|
25005
25005
|
children: u
|
|
25006
25006
|
}), t[10] = s, t[11] = c, t[12] = u, t[13] = d) : d = t[13], d;
|
|
25007
25007
|
}, oR = (e) => {
|
|
25008
|
-
let t = (0, X.c)(12), { label: n } = e, { items: r } =
|
|
25008
|
+
let t = (0, X.c)(12), { label: n } = e, { items: r } = Ro(va), i;
|
|
25009
25009
|
t[0] === r ? i = t[1] : (i = eR(r), t[0] = r, t[1] = i);
|
|
25010
25010
|
let { activeHeaderId: a, activeOccurrences: o } = QL(i);
|
|
25011
25011
|
if (r.length === 0) {
|
|
@@ -25037,8 +25037,8 @@ var rR = () => {
|
|
|
25037
25037
|
validator = G({ label: K().optional() });
|
|
25038
25038
|
render(e) {
|
|
25039
25039
|
let { label: t } = e.data;
|
|
25040
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
25041
|
-
store:
|
|
25040
|
+
return /* @__PURE__ */ (0, Y.jsx)(Bo, {
|
|
25041
|
+
store: po,
|
|
25042
25042
|
children: /* @__PURE__ */ (0, Y.jsx)(oR, { label: t })
|
|
25043
25043
|
});
|
|
25044
25044
|
}
|
|
@@ -25804,7 +25804,7 @@ var rR = () => {
|
|
|
25804
25804
|
validator = G({
|
|
25805
25805
|
title: K().optional(),
|
|
25806
25806
|
subtitle: K().optional(),
|
|
25807
|
-
progress:
|
|
25807
|
+
progress: Qo([W(), U()]),
|
|
25808
25808
|
total: W().optional(),
|
|
25809
25809
|
eta: W().optional(),
|
|
25810
25810
|
rate: W().optional()
|
|
@@ -26094,7 +26094,7 @@ var mR = (/* @__PURE__ */ i(((e) => {
|
|
|
26094
26094
|
}, vR = class {
|
|
26095
26095
|
tagName = "marimo-stat";
|
|
26096
26096
|
validator = G({
|
|
26097
|
-
value:
|
|
26097
|
+
value: Qo([
|
|
26098
26098
|
K(),
|
|
26099
26099
|
W(),
|
|
26100
26100
|
U()
|
|
@@ -26104,7 +26104,7 @@ var mR = (/* @__PURE__ */ i(((e) => {
|
|
|
26104
26104
|
bordered: U().default(!1),
|
|
26105
26105
|
direction: H(["increase", "decrease"]).optional(),
|
|
26106
26106
|
target_direction: H(["increase", "decrease"]).default("increase"),
|
|
26107
|
-
slot:
|
|
26107
|
+
slot: ms().optional()
|
|
26108
26108
|
});
|
|
26109
26109
|
render({ data: e }) {
|
|
26110
26110
|
return /* @__PURE__ */ (0, Y.jsx)(yR, { ...e });
|
|
@@ -29276,7 +29276,7 @@ var lz, uz, dz, fz, pz, mz, hz, gz, _z, vz, yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz,
|
|
|
29276
29276
|
defaultKeymap: !1,
|
|
29277
29277
|
historyKeymap: !1
|
|
29278
29278
|
})], Mz = (0, J.memo)((e) => {
|
|
29279
|
-
let t = (0, X.c)(8), { code: n, className: r } = e, { theme: i } =
|
|
29279
|
+
let t = (0, X.c)(8), { code: n, className: r } = e, { theme: i } = Jo(), a;
|
|
29280
29280
|
t[0] === r ? a = t[1] : (a = l(r, "text-muted-foreground flex flex-col overflow-hidden"), t[0] = r, t[1] = a);
|
|
29281
29281
|
let o = i === "dark" ? "dark" : "light", s;
|
|
29282
29282
|
t[2] !== n || t[3] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(rc, {
|
|
@@ -29844,7 +29844,7 @@ var Yz = {
|
|
|
29844
29844
|
maxWidth: W().nullish().transform((e) => e ?? void 0).catch(void 0),
|
|
29845
29845
|
bordered: U().optional().catch(void 0),
|
|
29846
29846
|
cells: V(cs({
|
|
29847
|
-
position:
|
|
29847
|
+
position: Yo([
|
|
29848
29848
|
W(),
|
|
29849
29849
|
W(),
|
|
29850
29850
|
W(),
|
|
@@ -29972,7 +29972,7 @@ var Qz = (e) => {
|
|
|
29972
29972
|
function $z() {
|
|
29973
29973
|
let e = (0, X.c)(3), { deleteCells: t, undoDeleteCell: n } = P(), r;
|
|
29974
29974
|
return e[0] !== t || e[1] !== n ? (r = (e) => {
|
|
29975
|
-
let { cellId: r } = e, i = (
|
|
29975
|
+
let { cellId: r } = e, i = (po.get(ya).cellData[r]?.code ?? "").trim() === "";
|
|
29976
29976
|
if (t({ cellIds: [r] }) && !i) {
|
|
29977
29977
|
let { dismiss: e } = x({
|
|
29978
29978
|
title: "Cell deleted",
|
|
@@ -32832,8 +32832,8 @@ function $U(e) {
|
|
|
32832
32832
|
}
|
|
32833
32833
|
//#endregion
|
|
32834
32834
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
32835
|
-
var eW = J.lazy(() => import("./reveal-component-
|
|
32836
|
-
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o =
|
|
32835
|
+
var eW = J.lazy(() => import("./reveal-component-BrZbx6s7.js")), tW = (e) => {
|
|
32836
|
+
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Ro(Ys), s = a === "read" || o, c = Ro(Ca) > 1, [l, u] = (0, J.useState)(null), d;
|
|
32837
32837
|
t[0] !== i || t[1] !== n ? (d = Zz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
32838
32838
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
32839
32839
|
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];
|
|
@@ -33069,7 +33069,7 @@ var uW = (e) => {
|
|
|
33069
33069
|
let v;
|
|
33070
33070
|
t[17] === n ? v = t[18] : (v = () => n("help"), t[17] = n, t[18] = v);
|
|
33071
33071
|
let y;
|
|
33072
|
-
t[19] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ (0, Y.jsx)(
|
|
33072
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ (0, Y.jsx)(Ri, {
|
|
33073
33073
|
fontSize: 36,
|
|
33074
33074
|
className: "w-5 h-5"
|
|
33075
33075
|
}), t[19] = y) : y = t[19];
|
|
@@ -33194,9 +33194,9 @@ function mW(e) {
|
|
|
33194
33194
|
}
|
|
33195
33195
|
//#endregion
|
|
33196
33196
|
//#region src/components/editor/output/useWrapText.ts
|
|
33197
|
-
var hW =
|
|
33197
|
+
var hW = Co("marimo:console:wrapText", !1, de);
|
|
33198
33198
|
function gW() {
|
|
33199
|
-
let e = (0, X.c)(3), [t, n] =
|
|
33199
|
+
let e = (0, X.c)(3), [t, n] = xo(hW), r;
|
|
33200
33200
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
33201
33201
|
wrapText: t,
|
|
33202
33202
|
setWrapText: n
|
|
@@ -33225,7 +33225,7 @@ var vW = J.memo((e) => {
|
|
|
33225
33225
|
value: s,
|
|
33226
33226
|
setValue: c
|
|
33227
33227
|
}, t[0] = s, t[1] = u);
|
|
33228
|
-
let d = cW(u), { consoleOutputs: f, stale: p, cellName: m, cellId: h, onSubmitDebugger: g, onClear: _, onRefactorWithAI: v, className: y } = e, b = _W(f), x =
|
|
33228
|
+
let d = cW(u), { consoleOutputs: f, stale: p, cellName: m, cellId: h, onSubmitDebugger: g, onClear: _, onRefactorWithAI: v, className: y } = e, b = _W(f), x = Ro(Ys), S = Ro(pr), C = !x && S?.cellId === h ? S.inputId : null, w = b.length > 0 || C != null, T = dW(w), E = un(n, w), D;
|
|
33229
33229
|
t[2] === w ? D = t[3] : (D = () => {
|
|
33230
33230
|
let e = n.current;
|
|
33231
33231
|
if (!e || !w) return;
|
|
@@ -33504,12 +33504,12 @@ function FW(e, t) {
|
|
|
33504
33504
|
//#region src/components/editor/renderers/vertical-layout/utils.ts
|
|
33505
33505
|
function IW({ showCodeInRunModePreference: e, kioskMode: t }) {
|
|
33506
33506
|
if (!e) return !1;
|
|
33507
|
-
let n = new URLSearchParams(window.location.search).get(
|
|
33507
|
+
let n = new URLSearchParams(window.location.search).get(es.showCode);
|
|
33508
33508
|
return n === null ? Js() || qs() || t : n === "true";
|
|
33509
33509
|
}
|
|
33510
33510
|
function LW(e) {
|
|
33511
33511
|
Js() && Li((t) => {
|
|
33512
|
-
t.set(
|
|
33512
|
+
t.set(es.showCode, String(e));
|
|
33513
33513
|
});
|
|
33514
33514
|
}
|
|
33515
33515
|
function RW(e) {
|
|
@@ -33541,7 +33541,7 @@ var BW = (e) => {
|
|
|
33541
33541
|
children: h
|
|
33542
33542
|
}), t[12] = s, t[13] = h, t[14] = g) : g = t[14], g;
|
|
33543
33543
|
}, VW = (e) => {
|
|
33544
|
-
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = FW(n.length, i), o =
|
|
33544
|
+
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = FW(n.length, i), o = Ro(Ys), s = Ro(ta), [c] = Io(), u = Ro(vc), d;
|
|
33545
33545
|
t[0] !== o || t[1] !== u ? (d = () => IW({
|
|
33546
33546
|
showCodeInRunModePreference: u,
|
|
33547
33547
|
kioskMode: o
|
|
@@ -33738,7 +33738,7 @@ var BW = (e) => {
|
|
|
33738
33738
|
t[11] !== i || t[12] !== S || t[13] !== m || t[14] !== b ? (e = /* @__PURE__ */ (0, Y.jsx)($n, {
|
|
33739
33739
|
allowExpand: !0,
|
|
33740
33740
|
output: m,
|
|
33741
|
-
className:
|
|
33741
|
+
className: ds.outputArea,
|
|
33742
33742
|
cellId: i,
|
|
33743
33743
|
stale: b,
|
|
33744
33744
|
loading: S
|
|
@@ -33793,7 +33793,7 @@ var BW = (e) => {
|
|
|
33793
33793
|
t[43] !== i || t[44] !== S || t[45] !== m || t[46] !== b || t[47] !== D ? (O = /* @__PURE__ */ (0, Y.jsx)($n, {
|
|
33794
33794
|
allowExpand: D,
|
|
33795
33795
|
output: m,
|
|
33796
|
-
className:
|
|
33796
|
+
className: ds.outputArea,
|
|
33797
33797
|
cellId: i,
|
|
33798
33798
|
stale: b,
|
|
33799
33799
|
loading: S
|
|
@@ -33811,7 +33811,7 @@ UW.displayName = "VerticalCell";
|
|
|
33811
33811
|
var WW = {
|
|
33812
33812
|
type: "vertical",
|
|
33813
33813
|
name: "Vertical",
|
|
33814
|
-
validator:
|
|
33814
|
+
validator: ms(),
|
|
33815
33815
|
Component: VW,
|
|
33816
33816
|
deserializeLayout: (e) => e,
|
|
33817
33817
|
serializeLayout: (e) => e,
|
|
@@ -33918,7 +33918,7 @@ function iG({ state: e, plugin: t, cells: n }) {
|
|
|
33918
33918
|
}) : t.getInitialLayout(n));
|
|
33919
33919
|
}
|
|
33920
33920
|
function aG() {
|
|
33921
|
-
let e = Ta(), t =
|
|
33921
|
+
let e = Ta(), t = po.get(tG), { selectedLayout: n } = t;
|
|
33922
33922
|
if (n === "vertical") return null;
|
|
33923
33923
|
let r = YW.find((e) => e.type === n);
|
|
33924
33924
|
if (r === void 0) return c.error(`Unknown layout type: ${n}`), null;
|
|
@@ -34197,7 +34197,7 @@ var AG = (e) => {
|
|
|
34197
34197
|
children: a
|
|
34198
34198
|
}), t[3] = a, t[4] = n, t[5] = o) : o = t[5], o;
|
|
34199
34199
|
}, jG = (e) => {
|
|
34200
|
-
let t = (0, X.c)(19), { cellId: n, codeCallback: r, visible: i } = e, a =
|
|
34200
|
+
let t = (0, X.c)(19), { cellId: n, codeCallback: r, visible: i } = e, a = yo(), o = Ro(ho), s;
|
|
34201
34201
|
t[0] === r ? s = t[1] : (s = () => {
|
|
34202
34202
|
S(r());
|
|
34203
34203
|
}, t[0] = r, t[1] = s);
|
|
@@ -34269,7 +34269,7 @@ function NG() {}
|
|
|
34269
34269
|
//#endregion
|
|
34270
34270
|
//#region src/core/islands/components/output-wrapper.tsx
|
|
34271
34271
|
var PG = (e) => {
|
|
34272
|
-
let t = (0, X.c)(15), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = MG(i), s = (0, J.useRef)(null), c = vr(n), l = Zn(n), u =
|
|
34272
|
+
let t = (0, X.c)(15), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = MG(i), s = (0, J.useRef)(null), c = vr(n), l = Zn(n), u = Ro(gc), { status: d } = On(n);
|
|
34273
34273
|
if (FG(s, d), !u || c === null && !l) {
|
|
34274
34274
|
let e;
|
|
34275
34275
|
return t[0] === a ? e = t[1] : (e = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -34359,17 +34359,17 @@ var IG = (e) => {
|
|
|
34359
34359
|
return wG(this);
|
|
34360
34360
|
}
|
|
34361
34361
|
getCellIdFromIndex(e) {
|
|
34362
|
-
let { cellIds: t } =
|
|
34362
|
+
let { cellIds: t } = po.get(ya);
|
|
34363
34363
|
return t.at(e);
|
|
34364
34364
|
}
|
|
34365
34365
|
connectedCallback() {
|
|
34366
34366
|
let t = ++this.connectionGeneration;
|
|
34367
34367
|
this.addEventListener(Ju, this.handleSourceChanged), this.querySelector(e.outputTagName) && (this.renderConfig = this.extractRenderConfig()), Fs(this.renderConfig, "Missing island render source"), this.runtimeAppId = this.appId, this.runtimeCellId = this.hasAttribute(Yu.CELL_IDX) ? this.cellId : void 0, this.syncCellIdsSubscription();
|
|
34368
34368
|
let n = () => {
|
|
34369
|
-
let e =
|
|
34369
|
+
let e = po.get(vs);
|
|
34370
34370
|
this.classList.toggle("dark", e === "dark"), this.classList.toggle("light", e === "light");
|
|
34371
34371
|
};
|
|
34372
|
-
this.unsubscribeTheme =
|
|
34372
|
+
this.unsubscribeTheme = po.sub(vs, n), n(), queueMicrotask(() => {
|
|
34373
34373
|
this.isConnected && t === this.connectionGeneration && (this.root = U_.createRoot(this), this.renderIsland());
|
|
34374
34374
|
});
|
|
34375
34375
|
}
|
|
@@ -34377,7 +34377,7 @@ var IG = (e) => {
|
|
|
34377
34377
|
this.querySelector(e.outputTagName) && (this.renderConfig = this.extractRenderConfig(), this.querySelector(e.outputTagName)?.remove(), this.querySelector(e.codeTagName)?.remove()), this.runtimeCellId = this.isReactive && this.runtimeAppId === this.appId ? this.cellId : void 0, this.runtimeAppId = this.appId, this.syncCellIdsSubscription(), this.renderIsland();
|
|
34378
34378
|
};
|
|
34379
34379
|
syncCellIdsSubscription() {
|
|
34380
|
-
this.isReactive ? this.unsubscribeCellIds ??=
|
|
34380
|
+
this.isReactive ? this.unsubscribeCellIds ??= po.sub(Oa, () => {
|
|
34381
34381
|
this.runtimeCellId = this.cellId, this.renderIsland();
|
|
34382
34382
|
}) : (this.unsubscribeCellIds?.(), this.unsubscribeCellIds = void 0);
|
|
34383
34383
|
}
|
|
@@ -34401,16 +34401,16 @@ var IG = (e) => {
|
|
|
34401
34401
|
let e = this.renderConfig;
|
|
34402
34402
|
if (!e) return;
|
|
34403
34403
|
let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null : I({ html: o });
|
|
34404
|
-
i ? this.root?.render(/* @__PURE__ */ (0, Y.jsx)(dc, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
34405
|
-
store:
|
|
34404
|
+
i ? this.root?.render(/* @__PURE__ */ (0, Y.jsx)(dc, { children: /* @__PURE__ */ (0, Y.jsx)(Bo, {
|
|
34405
|
+
store: po,
|
|
34406
34406
|
children: /* @__PURE__ */ (0, Y.jsx)(Bx, { children: /* @__PURE__ */ (0, Y.jsxs)(Fe, { children: [/* @__PURE__ */ (0, Y.jsx)(PG, {
|
|
34407
34407
|
cellId: i,
|
|
34408
34408
|
codeCallback: n,
|
|
34409
34409
|
alwaysShowRun: a,
|
|
34410
34410
|
children: s
|
|
34411
34411
|
}), r] }) })
|
|
34412
|
-
}) })) : (this.removeAttribute("data-status"), this.root?.render(/* @__PURE__ */ (0, Y.jsx)(dc, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
34413
|
-
store:
|
|
34412
|
+
}) })) : (this.removeAttribute("data-status"), this.root?.render(/* @__PURE__ */ (0, Y.jsx)(dc, { children: /* @__PURE__ */ (0, Y.jsx)(Bo, {
|
|
34413
|
+
store: po,
|
|
34414
34414
|
children: /* @__PURE__ */ (0, Y.jsx)(Bx, { children: s })
|
|
34415
34415
|
}) })));
|
|
34416
34416
|
}
|
|
@@ -34441,7 +34441,7 @@ function HG() {
|
|
|
34441
34441
|
//#endregion
|
|
34442
34442
|
//#region src/core/islands/bootstrap.ts
|
|
34443
34443
|
async function UG(e) {
|
|
34444
|
-
let t = e.store ||
|
|
34444
|
+
let t = e.store || po, n = e.root || document, r = e.bridge;
|
|
34445
34445
|
t.set(fa, r), t.set(Ks, "read"), t.set(xc, null), e.autoInitializePlugins !== !1 && OR();
|
|
34446
34446
|
let i = Array.from(n.querySelectorAll(Ku.ISLAND));
|
|
34447
34447
|
if (i.length === 0) {
|
|
@@ -34466,17 +34466,17 @@ async function UG(e) {
|
|
|
34466
34466
|
WG(e, o, t, n);
|
|
34467
34467
|
});
|
|
34468
34468
|
let s = L_(t), l = new AbortController();
|
|
34469
|
-
t.set(
|
|
34469
|
+
t.set(as, Kp(t, s, { signal: l.signal })), s.connect(r.notebookBackend, {
|
|
34470
34470
|
onNotification: a.NOOP,
|
|
34471
34471
|
...Aa(o)
|
|
34472
|
-
}), t.set(
|
|
34472
|
+
}), t.set(co, s);
|
|
34473
34473
|
let u = kS({
|
|
34474
34474
|
store: t,
|
|
34475
34475
|
documentAtom: s.documentAtom,
|
|
34476
34476
|
shownDocumentAtom: s.shownDocumentAtom,
|
|
34477
34477
|
backendAtom: s.backendAtom
|
|
34478
34478
|
});
|
|
34479
|
-
u.start({ signal: l.signal }), t.set(
|
|
34479
|
+
u.start({ signal: l.signal }), t.set(ho, u), Da({
|
|
34480
34480
|
store: t,
|
|
34481
34481
|
model: u,
|
|
34482
34482
|
reconcile: o.reconcileDocument,
|
|
@@ -34815,13 +34815,13 @@ var sK = class {
|
|
|
34815
34815
|
store;
|
|
34816
34816
|
root;
|
|
34817
34817
|
session;
|
|
34818
|
-
sessionReady = new
|
|
34818
|
+
sessionReady = new Vi();
|
|
34819
34819
|
nextSessionGeneration = 0;
|
|
34820
34820
|
activeSessions = /* @__PURE__ */ new Map();
|
|
34821
34821
|
appTransition = Promise.resolve();
|
|
34822
|
-
workerReady = new
|
|
34822
|
+
workerReady = new Vi();
|
|
34823
34823
|
stream;
|
|
34824
|
-
initialized = new
|
|
34824
|
+
initialized = new Vi();
|
|
34825
34825
|
notebookBackend = {
|
|
34826
34826
|
transport: ({ signal: e }, t) => new Promise((n) => {
|
|
34827
34827
|
this.stream = t, t.open(), e.addEventListener("abort", () => {
|
|
@@ -34840,7 +34840,7 @@ var sK = class {
|
|
|
34840
34840
|
}
|
|
34841
34841
|
};
|
|
34842
34842
|
constructor(e = {}) {
|
|
34843
|
-
this.store = e.store ||
|
|
34843
|
+
this.store = e.store || po, this.root = e.root || document;
|
|
34844
34844
|
try {
|
|
34845
34845
|
let t = (e.workerFactory || new aK()).create();
|
|
34846
34846
|
this.rpc = nK(t), this.setupMessageListeners();
|
|
@@ -34922,7 +34922,7 @@ var sK = class {
|
|
|
34922
34922
|
appId: n.id,
|
|
34923
34923
|
sessionGeneration: ++this.nextSessionGeneration
|
|
34924
34924
|
}, a = this.session, o = t && a !== void 0;
|
|
34925
|
-
this.activeSessions.set(r.sessionGeneration, /* @__PURE__ */ new Map()), o && (this.resetNotebookStream(), this.store.set(ya, Sa())), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new
|
|
34925
|
+
this.activeSessions.set(r.sessionGeneration, /* @__PURE__ */ new Map()), o && (this.resetNotebookStream(), this.store.set(ya, Sa())), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new Vi()), this.session = {
|
|
34926
34926
|
...r,
|
|
34927
34927
|
code: t ? e : void 0
|
|
34928
34928
|
});
|
|
@@ -34941,7 +34941,7 @@ var sK = class {
|
|
|
34941
34941
|
t?.code === void 0 || e && t.appId !== e || (this.activeSessions.delete(t.sessionGeneration), await this.rpc.proxy.request.stopSession({
|
|
34942
34942
|
appId: t.appId,
|
|
34943
34943
|
sessionGeneration: t.sessionGeneration
|
|
34944
|
-
}), this.store.set(xc, null), this.session = void 0, this.sessionReady = new
|
|
34944
|
+
}), this.store.set(xc, null), this.session = void 0, this.sessionReady = new Vi(), this.resetNotebookStream(), this.store.set(ya, Sa()));
|
|
34945
34945
|
});
|
|
34946
34946
|
}
|
|
34947
34947
|
enqueueAppTransition(e) {
|