@marimo-team/islands 0.25.3-dev20 → 0.25.3-dev23
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-CNMliVzw.js → ConnectedDataExplorerComponent-DfG3PRaJ.js} +9 -9
- package/dist/{ErrorBoundary-DAPIRYqd.js → ErrorBoundary-h0Ea26dF.js} +8 -8
- package/dist/{abnfDiagram-VCTEODGH-D-Ez91gV.js → abnfDiagram-VCTEODGH-B3w-XWX8.js} +2 -2
- package/dist/{any-language-editor-DZ_YTVus.js → any-language-editor-D4q-IFcM.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-CTpcNtO8.js → architectureDiagram-5GKGNRK7-C18U9A6k.js} +1 -1
- package/dist/{chat-ui-DaHynk8g.js → chat-ui-w8SVynkn.js} +1096 -1096
- package/dist/{check-EDwSwP89.js → check-BMKBBrdc.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DGxi-zeo.js → chunk-IMKFNOWR-CrS5bzqW.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CV9J3rAB.js → chunk-SHT3W25Y-StpvPvUG.js} +1 -1
- package/dist/{chunk-SVP7TREG-BL-9Fqgg.js → chunk-SVP7TREG-CBXjbYZC.js} +1 -1
- package/dist/{chunk-TICWLB2K-Cu_XMjDM.js → chunk-TICWLB2K-Dp6bIb-q.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-BXXV13Hq.js → classDiagram-ZZMXUADV-BFYuxV5g.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-B7FXJ1Cp.js → classDiagram-v2-VYDZK3BY-D_tjXVMl.js} +2 -2
- package/dist/{code-visibility-DkCqn-PO.js → code-visibility-vqPDeo1_.js} +5 -5
- package/dist/{common-DsUPhkD6.js → common-DNPxRLm_.js} +6265 -6262
- package/dist/{copy-icon-Ft7t9bqz.js → copy-icon-BgUO8jsi.js} +2 -2
- package/dist/{cynefinDiagram-5FMLGOSQ-CH96rwba.js → cynefinDiagram-5FMLGOSQ-DSgYrHB2.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-BD3PmpFY.js → dagre-GXQ25YYZ-GYlruCBf.js} +1 -1
- package/dist/{data-grid-overlay-editor-D7UuVsgB.js → data-grid-overlay-editor-B9QxYH-I.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BsSJJldB.js → diagram-S7CK7UJ4-DRu5LX5_.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-muQtNZc4.js → diagram-UQ7AKVKN-DD7uiejP.js} +1 -1
- package/dist/{diagram-VX7I27RA-CdhuZAqR.js → diagram-VX7I27RA-ByH9KAJJ.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BD8mXjOj.js → diagram-Z3DM3KII-BsQHPRke.js} +1 -1
- package/dist/{dialog-CEBFZNyc.js → dialog-Cc479ZEH.js} +24 -24
- package/dist/{dropdown-menu-CP_qCYHC.js → dropdown-menu-DHP9P4VE.js} +790 -790
- package/dist/{ebnfDiagram-PWID7BFC-BIN1sweE.js → ebnfDiagram-PWID7BFC-CQRK5_eT.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Ctp5cfoN.js → erDiagram-RLTQ6QDP-BKtWrDVh.js} +1 -1
- package/dist/{error-banner-D-WCIiMt.js → error-banner-CFPHFw4h.js} +16 -16
- package/dist/{error-entries-Bv6bZPF3.js → error-entries-Damuuclv.js} +983 -985
- package/dist/{feedback-button-wnAMXOGA.js → feedback-button-BPcyKSZd.js} +28 -28
- package/dist/{flowDiagram-HODETNUW-3EfLrlFb.js → flowDiagram-HODETNUW-1IN-ih2E.js} +2 -2
- package/dist/{formats-27CW_UP4.js → formats-X4mMQWzX.js} +1 -1
- package/dist/{glide-data-editor-KvS90MGh.js → glide-data-editor-BIYjd9hQ.js} +10 -10
- package/dist/{glide-utils-DJyqh0EM.js → glide-utils-DM9zBO4W.js} +2 -2
- package/dist/{globals-yruoELTW.js → globals-BX22lYk2.js} +3 -3
- package/dist/{html-to-image-Bf8QMGi4.js → html-to-image-BdA59IUD.js} +60 -60
- package/dist/{infoDiagram-27XIBGKW-DipQoHxl.js → infoDiagram-27XIBGKW-CkB-zr4p.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DgFMjSGz.js → ishikawaDiagram-5VMMS53U-wlyLjBmM.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-w1ACVjgl.js → kanban-definition-UXKFOSKX-C2usY0i-.js} +1 -1
- package/dist/{label-BDKF3Afc.js → label-DoysmLMW.js} +1 -1
- package/dist/main.js +722 -723
- package/dist/{mermaid-CHo49Yv-.js → mermaid-BA-Z6wGL.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-CrT0KSfX.js → mindmap-definition-YA3MSWOX-nKOWS8RR.js} +1 -1
- package/dist/{number-overlay-editor-R2i0FdxV.js → number-overlay-editor-DK-HbLsV.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-BqvywNJA.js → pegDiagram-XKGWAZYB-Dac9EIKD.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BfxJ_XCc.js → pieDiagram-E7YTZNPT-B7S-DsW_.js} +1 -1
- package/dist/{process-output-BZg56CCb.js → process-output-CTPTtxXB.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-8vFLVTPu.js → railroadDiagram-O6MQD6OU-Cfa5Q-hr.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-a_MxGvxe.js → requirementDiagram-BXWQKSXE-d8zXCJIk.js} +1 -1
- package/dist/{reveal-component-C42-YBfQ.js → reveal-component-Dl9ZugRb.js} +9 -9
- package/dist/{select-BButFi-d.js → select-DemoKT4G.js} +199 -199
- package/dist/{sequenceDiagram-WJ2MYXX4-CXFMnxGh.js → sequenceDiagram-WJ2MYXX4-b6pei3lJ.js} +1 -1
- package/dist/{spec-BwarBpUJ.js → spec-BJzgmvVa.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-DQeA_CwI.js → stateDiagram-D77RDMKH-Be-xSpaZ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BxxQucm1.js → stateDiagram-v2-MP3YSRHH-5Y-FxesJ.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-Do6L-cYg.js → swimlanes-42K2YHIH-nRRl4NU0.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-DUzPvSVU.js → swimlanesDiagram-VR7AAH4N-BS79510V.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-D3c46WM5.js → timeline-definition-24CTP7MA-Cfzf8WPf.js} +1 -1
- package/dist/toDate-B5mIgxwZ.js +1185 -0
- package/dist/{toast-B9UMEi8u.js → toast-PkdZraM8.js} +221 -221
- package/dist/{tooltip-BO1REbqs.js → tooltip-CtBZ5q8p.js} +51 -51
- package/dist/{use-restore-focus-BEM7sFWl.js → use-restore-focus-CKjfFjLM.js} +1 -1
- package/dist/{useAsyncData-Deh5kszT.js → useAsyncData-BD534XmW.js} +1 -1
- package/dist/{useDateFormatter-D8XruNGG.js → useDateFormatter-DkajGwwd.js} +2 -2
- package/dist/{useDeepCompareMemoize-DXwzRINI.js → useDeepCompareMemoize-C72_RNsu.js} +1 -1
- package/dist/{useLifecycle-j7D9uD1o.js → useLifecycle-BGWzTwHK.js} +2 -2
- package/dist/{useTheme-CRnjkku0.js → useTheme-BhQvec43.js} +83 -83
- package/dist/{vega-component-BeF9dfyO.js → vega-component-DfcYgj-Y.js} +7 -7
- package/dist/{vennDiagram-4TSXK5OY-BSZD8JcZ.js → vennDiagram-4TSXK5OY-CeY6Z1xZ.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-48cUWkfA.js → wardleyDiagram-VM6X3IG4-Cxs9NtVi.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-CswYgYeu.js → xychartDiagram-S5SC5T6Z-DNWbvPK7.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +12 -18
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +12 -23
- package/src/core/attachments/state.ts +5 -8
- package/src/core/host/__tests__/attachments.test.ts +57 -0
- package/src/core/host/__tests__/notebook-client.test.ts +131 -1
- package/src/core/host/events.ts +1 -0
- package/src/core/host/notebook-client.ts +20 -2
- package/src/core/host/resources/attachments.ts +19 -0
- package/src/core/islands/__tests__/bootstrap.test.ts +0 -26
- package/src/core/islands/bootstrap.ts +0 -1
- package/src/core/runtime/__tests__/runtime.test.ts +1 -1
- package/src/core/runtime/runtime.ts +4 -3
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +30 -0
- package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +0 -171
- package/src/core/websocket/state.ts +7 -0
- package/src/core/websocket/useNotebookClient.ts +9 -1
- package/src/core/websocket/useNotebookSession.tsx +0 -8
- package/src/utils/once.ts +19 -19
- package/dist/toDate-UtiwmnH2.js +0 -705
package/dist/main.js
CHANGED
|
@@ -2,30 +2,30 @@ import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { _ as a, c as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, t as g, v as _ } from "./button-CvjkwdSk.js";
|
|
3
3
|
import { t as v } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as y } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { i as b, n as x, r as S, t as C } from "./copy-icon-
|
|
6
|
-
import { C as w, F as T, G as E, I as D, J as O, K as k, L as A, P as j, R as M, X as N, Z as P, _ as F, a as I, b as L, g as R, i as z, j as B, k as ee, n as te, o as ne, q as re, v as ie, y as ae } from "./html-to-image-
|
|
7
|
-
import { a as oe, d as se, f as ce, h as V, i as le, n as ue, o as de, r as fe, t as pe } from "./tooltip-
|
|
8
|
-
import { $ as me, At as he, B as ge, Bt as _e, D as ve, Dt as ye, E as be,
|
|
9
|
-
import { D as At, E as jt, O as Mt, S as Nt, T as Pt, _ as Ft, a as It, c as Lt, d as Rt, f as zt, g as Bt, h as Vt, i as Ht, l as Ut, m as Wt, n as Gt, o as Kt, p as qt, r as Jt, s as Yt, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./spec-
|
|
10
|
-
import { $t as nn, A as rn, At as an, B as on, Bt as sn, C as cn, Ct as ln, D as un, Dt as dn, E as fn, Et as pn, F as mn, Ft as hn, G as gn, Gt as _n, H as vn, Ht as yn, I as bn, It as xn, J as Sn, Jt as Cn, K as wn, Kt as Tn, L as En, Lt as Dn, M as On, Mt as kn, N as An, Nt as jn, O as Mn, Ot as Nn, P as Pn, Pt as Fn, Qt as In, R as Ln, Rt as Rn, S as zn, St as Bn, T as Vn, Tt as Hn, U as Un, Ut as Wn, V as Gn, Vt as Kn, W as qn, Wt as Jn, X as Yn, Xt as Xn, Y as Zn, Yt as Qn, Zt as $n, _ as er, _t as tr, an as nr, at as rr, b as ir, c as ar, cn as or, ct as sr, d as cr, dn as lr, dt as ur, en as dr, et as fr, f as pr, fn as mr, ft as hr, g as gr, gt as _r, h as vr, hn as yr, ht as br, in as xr, it as Sr, j as Cr, jt as wr, k as Tr, kt as Er, ln as Dr, lt as Or, m as kr, mn as Ar, mt as jr, nn as Mr, nt as Nr, ot as Pr, p as Fr, pn as Ir, pt as Lr, q as Rr, qt as zr, r as Br, rn as Vr, rt as Hr, sn as Ur, st as Wr, t as Gr, tn as Kr, tt as qr, u as Jr, un as Yr, ut as Xr, v as Zr, vt as Qr, w as $r, wt as ei, x as ti, y as ni, yt as ri, z as ii, zt as ai } from "./common-
|
|
11
|
-
import { c as oi, i as si, n as ci, o as li, t as ui } from "./useLifecycle-
|
|
12
|
-
import { t as di } from "./check-
|
|
13
|
-
import { A as fi, C as pi, D as mi, E as hi, M as gi, O as _i, S as vi, T as yi, a as bi, b as xi, c as Si, i as Ci, k as wi, l as Ti, n as Ei, o as Di, r as Oi, s as ki, t as Ai, w as ji, x as Mi } from "./select-
|
|
14
|
-
import { $ as Ni, C as Pi, Et as Fi, J as Ii, K as Li, R as Ri, S as zi, U as Bi, Y as Vi, _ as Hi, _n as Ui, a as Wi, c as Gi, f as Ki, g as qi, h as Ji, i as Yi, kt as Xi, m as Zi, mt as Qi, n as $i, p as ea, q as ta, r as na, s as ra, t as ia, ut as aa, v as oa, vn as sa, x as ca, z as la } from "./dropdown-menu-
|
|
15
|
-
import { C as ua, _ as da, a as fa, b as pa, c as ma, f as ha, h as ga, m as _a, p as va, s as ya, u as ba, x as xa, y as Sa } from "./toDate-
|
|
16
|
-
import { a as Ca, c as wa, d as Ta, f as Ea, i as Da, l as Oa, n as ka, o as Aa, r as ja, s as Ma, t as Na } from "./process-output-
|
|
17
|
-
import { a as Pa, c as Fa, d as Ia, i as La, l as Ra, r as za, u as Ba } from "./glide-utils-
|
|
18
|
-
import { n as Va, t as Ha } from "./ErrorBoundary-
|
|
19
|
-
import { n as Ua, t as Wa } from "./globals-
|
|
5
|
+
import { i as b, n as x, r as S, t as C } from "./copy-icon-BgUO8jsi.js";
|
|
6
|
+
import { C as w, F as T, G as E, I as D, J as O, K as k, L as A, P as j, R as M, X as N, Z as P, _ as F, a as I, b as L, g as R, i as z, j as B, k as ee, n as te, o as ne, q as re, v as ie, y as ae } from "./html-to-image-BdA59IUD.js";
|
|
7
|
+
import { a as oe, d as se, f as ce, h as V, i as le, n as ue, o as de, r as fe, t as pe } from "./tooltip-CtBZ5q8p.js";
|
|
8
|
+
import { $t as me, At as he, B as ge, Bt as _e, D as ve, Dt as ye, E as be, Et as xe, Ft as Se, Gt as Ce, J as we, Jt as Te, Kt as Ee, M as De, Mt as Oe, N as ke, O as Ae, Ot as je, Q as Me, R as Ne, S as Pe, Ut as Fe, V as Ie, Vt as Le, W as Re, Y as ze, Yt as Be, Z as Ve, _ as He, b as Ue, bt as We, cn as Ge, dt as Ke, en as qe, f as Je, fn as Ye, ft as Xe, g as Ze, gn as Qe, gt as $e, h as et, hn as tt, ht as nt, in as rt, j as it, jt as at, k as ot, kt as st, ln as ct, m as lt, nn as ut, nt as dt, o as ft, p as pt, pn as mt, q as ht, qt as gt, rt as _t, s as vt, sn as yt, st as bt, tn as xt, u as St, un as Ct, ut as wt, v as Tt, wt as Et, y as Dt, z as Ot, zt as kt } from "./error-entries-Damuuclv.js";
|
|
9
|
+
import { D as At, E as jt, O as Mt, S as Nt, T as Pt, _ as Ft, a as It, c as Lt, d as Rt, f as zt, g as Bt, h as Vt, i as Ht, l as Ut, m as Wt, n as Gt, o as Kt, p as qt, r as Jt, s as Yt, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./spec-BJzgmvVa.js";
|
|
10
|
+
import { $t as nn, A as rn, At as an, B as on, Bt as sn, C as cn, Ct as ln, D as un, Dt as dn, E as fn, Et as pn, F as mn, Ft as hn, G as gn, Gt as _n, H as vn, Ht as yn, I as bn, It as xn, J as Sn, Jt as Cn, K as wn, Kt as Tn, L as En, Lt as Dn, M as On, Mt as kn, N as An, Nt as jn, O as Mn, Ot as Nn, P as Pn, Pt as Fn, Qt as In, R as Ln, Rt as Rn, S as zn, St as Bn, T as Vn, Tt as Hn, U as Un, Ut as Wn, V as Gn, Vt as Kn, W as qn, Wt as Jn, X as Yn, Xt as Xn, Y as Zn, Yt as Qn, Zt as $n, _ as er, _t as tr, an as nr, at as rr, b as ir, c as ar, cn as or, ct as sr, d as cr, dn as lr, dt as ur, en as dr, et as fr, f as pr, fn as mr, ft as hr, g as gr, gt as _r, h as vr, hn as yr, ht as br, in as xr, it as Sr, j as Cr, jt as wr, k as Tr, kt as Er, ln as Dr, lt as Or, m as kr, mn as Ar, mt as jr, nn as Mr, nt as Nr, ot as Pr, p as Fr, pn as Ir, pt as Lr, q as Rr, qt as zr, r as Br, rn as Vr, rt as Hr, sn as Ur, st as Wr, t as Gr, tn as Kr, tt as qr, u as Jr, un as Yr, ut as Xr, v as Zr, vt as Qr, w as $r, wt as ei, x as ti, y as ni, yt as ri, z as ii, zt as ai } from "./common-DNPxRLm_.js";
|
|
11
|
+
import { c as oi, i as si, n as ci, o as li, t as ui } from "./useLifecycle-BGWzTwHK.js";
|
|
12
|
+
import { t as di } from "./check-BMKBBrdc.js";
|
|
13
|
+
import { A as fi, C as pi, D as mi, E as hi, M as gi, O as _i, S as vi, T as yi, a as bi, b as xi, c as Si, i as Ci, k as wi, l as Ti, n as Ei, o as Di, r as Oi, s as ki, t as Ai, w as ji, x as Mi } from "./select-DemoKT4G.js";
|
|
14
|
+
import { $ as Ni, C as Pi, Et as Fi, J as Ii, K as Li, R as Ri, S as zi, U as Bi, Y as Vi, _ as Hi, _n as Ui, a as Wi, c as Gi, f as Ki, g as qi, h as Ji, i as Yi, kt as Xi, m as Zi, mt as Qi, n as $i, p as ea, q as ta, r as na, s as ra, t as ia, ut as aa, v as oa, vn as sa, x as ca, z as la } from "./dropdown-menu-DHP9P4VE.js";
|
|
15
|
+
import { C as ua, _ as da, a as fa, b as pa, c as ma, f as ha, h as ga, m as _a, p as va, s as ya, u as ba, x as xa, y as Sa } from "./toDate-B5mIgxwZ.js";
|
|
16
|
+
import { a as Ca, c as wa, d as Ta, f as Ea, i as Da, l as Oa, n as ka, o as Aa, r as ja, s as Ma, t as Na } from "./process-output-CTPTtxXB.js";
|
|
17
|
+
import { a as Pa, c as Fa, d as Ia, i as La, l as Ra, r as za, u as Ba } from "./glide-utils-DM9zBO4W.js";
|
|
18
|
+
import { n as Va, t as Ha } from "./ErrorBoundary-h0Ea26dF.js";
|
|
19
|
+
import { n as Ua, t as Wa } from "./globals-BX22lYk2.js";
|
|
20
20
|
import { t as Ga } from "./react-dom-DUmH0GXv.js";
|
|
21
21
|
import { t as Ka } from "./jsx-runtime-3BD1kT0s.js";
|
|
22
|
-
import {
|
|
23
|
-
import { i as Uo, n as Wo, r as Go, t as Ko } from "./error-banner-
|
|
24
|
-
import { a as qo, i as Jo, n as Yo, t as Xo } from "./label-
|
|
22
|
+
import { A as qa, B as Ja, C as H, Ct as Ya, Dt as Xa, Et as Za, F as Qa, G as $a, H as eo, I as to, J as no, K as ro, L as U, N as W, O as io, Ot as ao, P as G, Q as oo, R as so, S as co, St as lo, T as uo, Tt as fo, W as po, _ as mo, a as ho, b as go, bt as _o, c as vo, d as yo, et as bo, f as xo, g as So, h as Co, i as wo, j as To, k as Eo, m as Do, n as Oo, o as ko, p as Ao, pt as jo, r as Mo, s as No, tt as Po, u as Fo, v as Io, vt as Lo, w as K, wt as Ro, x as zo, xt as Bo, y as Vo, z as Ho } from "./use-restore-focus-CKjfFjLM.js";
|
|
23
|
+
import { i as Uo, n as Wo, r as Go, t as Ko } from "./error-banner-CFPHFw4h.js";
|
|
24
|
+
import { a as qo, i as Jo, n as Yo, t as Xo } from "./label-DoysmLMW.js";
|
|
25
25
|
import { a as Zo } from "./hasIn-o2Us0uVx.js";
|
|
26
26
|
import { n as Qo, t as $o } from "./pick-CJeoxYOS.js";
|
|
27
27
|
import { t as es } from "./debounce-C3jyATpc.js";
|
|
28
|
-
import { A as ts, C as ns, E as rs, S as is, _ as as, a as os, b as ss, c as cs, h as ls, k as us, n as ds, p as fs, r as ps, u as ms, x as hs } from "./useTheme-
|
|
28
|
+
import { A as ts, C as ns, E as rs, S as is, _ as as, a as os, b as ss, c as cs, h as ls, k as us, n as ds, p as fs, r as ps, u as ms, x as hs } from "./useTheme-BhQvec43.js";
|
|
29
29
|
import { $ as gs, F as _s, H as q, a as vs, g as ys } from "./dist-DoE4XJBC.js";
|
|
30
30
|
import { t as bs } from "./invariant-DLmrl-hA.js";
|
|
31
31
|
import { l as xs, o as Ss, t as Cs, u as ws } from "./arrays-CN1djC4k.js";
|
|
@@ -35,12 +35,12 @@ import { p as Ds } from "./dist-diIx5qJW.js";
|
|
|
35
35
|
import { n as Os } from "./dist-CrSP_H1M.js";
|
|
36
36
|
import { i as ks } from "./dist-BorMD-uX.js";
|
|
37
37
|
import { n as As, t as js } from "./esm-AMFssoNp.js";
|
|
38
|
-
import { t as Ms } from "./useAsyncData-
|
|
39
|
-
import { i as Ns, n as Ps, r as Fs } from "./formats-
|
|
38
|
+
import { t as Ms } from "./useAsyncData-BD534XmW.js";
|
|
39
|
+
import { i as Ns, n as Ps, r as Fs } from "./formats-X4mMQWzX.js";
|
|
40
40
|
import { M as Is, N as Ls } from "./vega-loader.browser-DNST6uVf.js";
|
|
41
41
|
import { a as Rs, n as zs } from "./loader-BQOfjTIJ.js";
|
|
42
|
-
import { c as Bs, d as Vs, i as Hs, l as Us, o as Ws, s as Gs, t as Ks, u as qs } from "./code-visibility-
|
|
43
|
-
import { t as Js } from "./useDeepCompareMemoize-
|
|
42
|
+
import { c as Bs, d as Vs, i as Hs, l as Us, o as Ws, s as Gs, t as Ks, u as qs } from "./code-visibility-vqPDeo1_.js";
|
|
43
|
+
import { t as Js } from "./useDeepCompareMemoize-C72_RNsu.js";
|
|
44
44
|
import { t as Ys } from "./esm-D2gTsXEV.js";
|
|
45
45
|
//#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
46
46
|
var Xs = Object.freeze({
|
|
@@ -1861,8 +1861,8 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
1861
1861
|
]), J = /* @__PURE__ */ e(v(), 1), od = /* @__PURE__ */ e(Ga(), 1), Y = Ka(), sd = Object.defineProperty, cd = (e, t) => sd(e, "name", {
|
|
1862
1862
|
value: t,
|
|
1863
1863
|
configurable: !0
|
|
1864
|
-
}), ld = "NavigationMenu", [ud, dd, fd] = wi(ld), [pd, md, hd] = wi(ld), [gd, _d] =
|
|
1865
|
-
let { __scopeNavigationMenu: n, value: r, onValueChange: i, defaultValue: a, delayDuration: o = 200, skipDelayDuration: s = 300, orientation: c = "horizontal", dir: l, ...u } = e, [d, f] = J.useState(null), p = m(t, f), h = _i(l), g = J.useRef(0), _ = J.useRef(0), v = J.useRef(0), [y, b] = J.useState(!0), [x, S] =
|
|
1864
|
+
}), ld = "NavigationMenu", [ud, dd, fd] = wi(ld), [pd, md, hd] = wi(ld), [gd, _d] = Za(ld, [fd, hd]), [vd, yd] = gd(ld), [bd, xd] = gd(ld), Sd = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ cd(function(e, t) {
|
|
1865
|
+
let { __scopeNavigationMenu: n, value: r, onValueChange: i, defaultValue: a, delayDuration: o = 200, skipDelayDuration: s = 300, orientation: c = "horizontal", dir: l, ...u } = e, [d, f] = J.useState(null), p = m(t, f), h = _i(l), g = J.useRef(0), _ = J.useRef(0), v = J.useRef(0), [y, b] = J.useState(!0), [x, S] = Ya({
|
|
1866
1866
|
prop: r,
|
|
1867
1867
|
onChange: /* @__PURE__ */ cd((e) => {
|
|
1868
1868
|
let t = e !== "", n = s > 0;
|
|
@@ -1904,7 +1904,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
1904
1904
|
S((t) => t === e ? "" : e);
|
|
1905
1905
|
},
|
|
1906
1906
|
onItemDismiss: () => S(""),
|
|
1907
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
1907
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Xa.nav, {
|
|
1908
1908
|
"aria-label": "Main",
|
|
1909
1909
|
"data-orientation": c,
|
|
1910
1910
|
dir: h,
|
|
@@ -1920,19 +1920,19 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
1920
1920
|
rootNavigationMenu: r,
|
|
1921
1921
|
value: s,
|
|
1922
1922
|
previousValue: mi(s),
|
|
1923
|
-
baseId:
|
|
1923
|
+
baseId: Bo(),
|
|
1924
1924
|
dir: i,
|
|
1925
1925
|
orientation: a,
|
|
1926
1926
|
viewport: m,
|
|
1927
1927
|
onViewportChange: h,
|
|
1928
1928
|
indicatorTrack: v,
|
|
1929
1929
|
onIndicatorTrackChange: y,
|
|
1930
|
-
onTriggerEnter:
|
|
1931
|
-
onTriggerLeave:
|
|
1932
|
-
onContentEnter:
|
|
1933
|
-
onContentLeave:
|
|
1934
|
-
onItemSelect:
|
|
1935
|
-
onItemDismiss:
|
|
1930
|
+
onTriggerEnter: _o(u),
|
|
1931
|
+
onTriggerLeave: _o(d),
|
|
1932
|
+
onContentEnter: _o(f),
|
|
1933
|
+
onContentLeave: _o(p),
|
|
1934
|
+
onItemSelect: _o(c),
|
|
1935
|
+
onItemDismiss: _o(l),
|
|
1936
1936
|
onViewportContentChange: J.useCallback((e, t) => {
|
|
1937
1937
|
_((n) => (n.set(e, t), new Map(n)));
|
|
1938
1938
|
}, []),
|
|
@@ -1949,12 +1949,12 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
1949
1949
|
})
|
|
1950
1950
|
});
|
|
1951
1951
|
}, "NavigationMenuProvider"), wd = "NavigationMenuList", Td = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ cd(function(e, t) {
|
|
1952
|
-
let { __scopeNavigationMenu: n, ...r } = e, i = yd(wd, n), a = /* @__PURE__ */ (0, Y.jsx)(
|
|
1952
|
+
let { __scopeNavigationMenu: n, ...r } = e, i = yd(wd, n), a = /* @__PURE__ */ (0, Y.jsx)(Xa.ul, {
|
|
1953
1953
|
"data-orientation": i.orientation,
|
|
1954
1954
|
...r,
|
|
1955
1955
|
ref: t
|
|
1956
1956
|
});
|
|
1957
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
1957
|
+
return /* @__PURE__ */ (0, Y.jsx)(Xa.div, {
|
|
1958
1958
|
style: { position: "relative" },
|
|
1959
1959
|
ref: i.onIndicatorTrackChange,
|
|
1960
1960
|
children: /* @__PURE__ */ (0, Y.jsx)(ud.Slot, {
|
|
@@ -1966,7 +1966,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
1966
1966
|
})
|
|
1967
1967
|
});
|
|
1968
1968
|
}, "NavigationMenuList")), [Ed, Dd] = gd("NavigationMenuItem"), Od = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ cd(function(e, t) {
|
|
1969
|
-
let { __scopeNavigationMenu: n, value: r, ...i } = e, a =
|
|
1969
|
+
let { __scopeNavigationMenu: n, value: r, ...i } = e, a = Bo(), 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") => {
|
|
1970
1970
|
if (s.current) {
|
|
1971
1971
|
u.current();
|
|
1972
1972
|
let t = Xd(s.current);
|
|
@@ -1989,7 +1989,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
1989
1989
|
onFocusProxyEnter: f,
|
|
1990
1990
|
onRootContentClose: p,
|
|
1991
1991
|
onContentFocusOutside: p,
|
|
1992
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
1992
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Xa.li, {
|
|
1993
1993
|
...i,
|
|
1994
1994
|
ref: t
|
|
1995
1995
|
})
|
|
@@ -2001,7 +2001,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2001
2001
|
value: o.value,
|
|
2002
2002
|
children: /* @__PURE__ */ (0, Y.jsx)(Yd, {
|
|
2003
2003
|
asChild: !0,
|
|
2004
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2004
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Xa.button, {
|
|
2005
2005
|
id: l,
|
|
2006
2006
|
disabled: r,
|
|
2007
2007
|
"data-disabled": r ? "" : void 0,
|
|
@@ -2010,19 +2010,19 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2010
2010
|
"aria-controls": p ? u : void 0,
|
|
2011
2011
|
...i,
|
|
2012
2012
|
ref: c,
|
|
2013
|
-
onPointerEnter:
|
|
2013
|
+
onPointerEnter: fo(e.onPointerEnter, () => {
|
|
2014
2014
|
f.current = !1, o.wasEscapeCloseRef.current = !1;
|
|
2015
2015
|
}),
|
|
2016
|
-
onPointerMove:
|
|
2016
|
+
onPointerMove: fo(e.onPointerMove, rf(() => {
|
|
2017
2017
|
r || f.current || o.wasEscapeCloseRef.current || d.current || (a.onTriggerEnter(o.value), d.current = !0);
|
|
2018
2018
|
})),
|
|
2019
|
-
onPointerLeave:
|
|
2019
|
+
onPointerLeave: fo(e.onPointerLeave, rf(() => {
|
|
2020
2020
|
r || (a.onTriggerLeave(), d.current = !1);
|
|
2021
2021
|
})),
|
|
2022
|
-
onClick:
|
|
2022
|
+
onClick: fo(e.onClick, () => {
|
|
2023
2023
|
a.onItemSelect(o.value), f.current = p;
|
|
2024
2024
|
}),
|
|
2025
|
-
onKeyDown:
|
|
2025
|
+
onKeyDown: fo(e.onKeyDown, (e) => {
|
|
2026
2026
|
let t = {
|
|
2027
2027
|
horizontal: "ArrowDown",
|
|
2028
2028
|
vertical: a.dir === "rtl" ? "ArrowLeft" : "ArrowRight"
|
|
@@ -2044,29 +2044,29 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2044
2044
|
let { __scopeNavigationMenu: n, active: r, onSelect: i, ...a } = e;
|
|
2045
2045
|
return /* @__PURE__ */ (0, Y.jsx)(Yd, {
|
|
2046
2046
|
asChild: !0,
|
|
2047
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2047
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Xa.a, {
|
|
2048
2048
|
"data-active": r ? "" : void 0,
|
|
2049
2049
|
"aria-current": r ? "page" : void 0,
|
|
2050
2050
|
...a,
|
|
2051
2051
|
ref: t,
|
|
2052
|
-
onClick:
|
|
2052
|
+
onClick: fo(e.onClick, (e) => {
|
|
2053
2053
|
let t = e.target, n = new CustomEvent(jd, {
|
|
2054
2054
|
bubbles: !0,
|
|
2055
2055
|
cancelable: !0
|
|
2056
2056
|
});
|
|
2057
|
-
if (t.addEventListener(jd, (e) => i?.(e), { once: !0 }),
|
|
2057
|
+
if (t.addEventListener(jd, (e) => i?.(e), { once: !0 }), ao(t, n), !n.defaultPrevented && !e.metaKey) {
|
|
2058
2058
|
let e = new CustomEvent(zd, {
|
|
2059
2059
|
bubbles: !0,
|
|
2060
2060
|
cancelable: !0
|
|
2061
2061
|
});
|
|
2062
|
-
|
|
2062
|
+
ao(t, e);
|
|
2063
2063
|
}
|
|
2064
2064
|
}, { checkForDefaultPrevented: !1 })
|
|
2065
2065
|
})
|
|
2066
2066
|
});
|
|
2067
2067
|
}, "NavigationMenuLink")), Nd = "NavigationMenuIndicator", Pd = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ cd(function(e, t) {
|
|
2068
2068
|
let { forceMount: n, ...r } = e, i = yd(Nd, e.__scopeNavigationMenu), a = !!i.value;
|
|
2069
|
-
return i.indicatorTrack ? od.createPortal(/* @__PURE__ */ (0, Y.jsx)(
|
|
2069
|
+
return i.indicatorTrack ? od.createPortal(/* @__PURE__ */ (0, Y.jsx)(lo, {
|
|
2070
2070
|
present: n || a,
|
|
2071
2071
|
children: /* @__PURE__ */ (0, Y.jsx)(Fd, {
|
|
2072
2072
|
...r,
|
|
@@ -2085,7 +2085,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2085
2085
|
offset: u ? o.offsetLeft : o.offsetTop
|
|
2086
2086
|
});
|
|
2087
2087
|
}, "handlePositionChange");
|
|
2088
|
-
return $d(o, f), $d(i.indicatorTrack, f), c ? /* @__PURE__ */ (0, Y.jsx)(
|
|
2088
|
+
return $d(o, f), $d(i.indicatorTrack, f), c ? /* @__PURE__ */ (0, Y.jsx)(Xa.div, {
|
|
2089
2089
|
"aria-hidden": !0,
|
|
2090
2090
|
"data-state": d ? "visible" : "hidden",
|
|
2091
2091
|
"data-orientation": i.orientation,
|
|
@@ -2121,14 +2121,14 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2121
2121
|
forceMount: n,
|
|
2122
2122
|
...c,
|
|
2123
2123
|
ref: o
|
|
2124
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
2124
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(lo, {
|
|
2125
2125
|
present: n || s,
|
|
2126
2126
|
children: /* @__PURE__ */ (0, Y.jsx)(Bd, {
|
|
2127
2127
|
"data-state": ef(s),
|
|
2128
2128
|
...c,
|
|
2129
2129
|
ref: o,
|
|
2130
|
-
onPointerEnter:
|
|
2131
|
-
onPointerLeave:
|
|
2130
|
+
onPointerEnter: fo(e.onPointerEnter, i.onContentEnter),
|
|
2131
|
+
onPointerLeave: fo(e.onPointerLeave, rf(i.onContentLeave)),
|
|
2132
2132
|
style: {
|
|
2133
2133
|
pointerEvents: !s && i.isRootMenu ? "none" : void 0,
|
|
2134
2134
|
...c.style
|
|
@@ -2137,7 +2137,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2137
2137
|
});
|
|
2138
2138
|
}, "NavigationMenuContent")), Rd = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ cd(function(e, t) {
|
|
2139
2139
|
let { onViewportContentChange: n, onViewportContentRemove: r } = yd(Id, e.__scopeNavigationMenu);
|
|
2140
|
-
return
|
|
2140
|
+
return Ro(() => {
|
|
2141
2141
|
n(e.value, {
|
|
2142
2142
|
ref: t,
|
|
2143
2143
|
...e
|
|
@@ -2146,7 +2146,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2146
2146
|
e,
|
|
2147
2147
|
t,
|
|
2148
2148
|
n
|
|
2149
|
-
]),
|
|
2149
|
+
]), Ro(() => () => r(e.value), [e.value, r]), null;
|
|
2150
2150
|
}, "ViewportContentMounter")), zd = "navigationMenu.rootContentDismiss", Bd = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ cd(function(e, t) {
|
|
2151
2151
|
let { __scopeNavigationMenu: n, value: r, triggerRef: i, focusProxyRef: a, wasEscapeCloseRef: o, onRootContentClose: s, onContentFocusOutside: c, ...l } = e, u = yd(Id, n), d = J.useRef(null), f = m(d, t), p = tf(u.baseId, r), h = nf(u.baseId, r), g = dd(n), _ = J.useRef(null), { onItemDismiss: v } = u;
|
|
2152
2152
|
J.useEffect(() => {
|
|
@@ -2186,7 +2186,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2186
2186
|
]);
|
|
2187
2187
|
return /* @__PURE__ */ (0, Y.jsx)(Kd, {
|
|
2188
2188
|
asChild: !0,
|
|
2189
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2189
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Lo, {
|
|
2190
2190
|
id: h,
|
|
2191
2191
|
"aria-labelledby": p,
|
|
2192
2192
|
"data-motion": y,
|
|
@@ -2201,30 +2201,30 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2201
2201
|
});
|
|
2202
2202
|
d.current?.dispatchEvent(e);
|
|
2203
2203
|
},
|
|
2204
|
-
onFocusOutside:
|
|
2204
|
+
onFocusOutside: fo(e.onFocusOutside, (e) => {
|
|
2205
2205
|
c();
|
|
2206
2206
|
let t = e.target;
|
|
2207
2207
|
u.rootNavigationMenu?.contains(t) && e.preventDefault();
|
|
2208
2208
|
}),
|
|
2209
|
-
onPointerDownOutside:
|
|
2209
|
+
onPointerDownOutside: fo(e.onPointerDownOutside, (e) => {
|
|
2210
2210
|
let t = e.target, n = g().some((e) => e.ref.current?.contains(t)), r = u.isRootMenu && u.viewport?.contains(t);
|
|
2211
2211
|
(n || r || !u.isRootMenu) && e.preventDefault();
|
|
2212
2212
|
}),
|
|
2213
|
-
onKeyDown:
|
|
2213
|
+
onKeyDown: fo(e.onKeyDown, (e) => {
|
|
2214
2214
|
let t = e.altKey || e.ctrlKey || e.metaKey;
|
|
2215
2215
|
if (e.key === "Tab" && !t) {
|
|
2216
2216
|
let t = Xd(e.currentTarget), n = document.activeElement, r = t.findIndex((e) => e === n);
|
|
2217
2217
|
Zd(e.shiftKey ? t.slice(0, r).reverse() : t.slice(r + 1, t.length)) ? e.preventDefault() : a.current?.focus();
|
|
2218
2218
|
}
|
|
2219
2219
|
}),
|
|
2220
|
-
onEscapeKeyDown:
|
|
2220
|
+
onEscapeKeyDown: fo(e.onEscapeKeyDown, (e) => {
|
|
2221
2221
|
o.current = !0;
|
|
2222
2222
|
})
|
|
2223
2223
|
})
|
|
2224
2224
|
});
|
|
2225
2225
|
}, "NavigationMenuContentImpl")), Vd = "NavigationMenuViewport", Hd = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ cd(function(e, t) {
|
|
2226
2226
|
let { forceMount: n, ...r } = e, i = !!yd(Vd, e.__scopeNavigationMenu).value;
|
|
2227
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2227
|
+
return /* @__PURE__ */ (0, Y.jsx)(lo, {
|
|
2228
2228
|
present: n || i,
|
|
2229
2229
|
children: /* @__PURE__ */ (0, Y.jsx)(Ud, {
|
|
2230
2230
|
...r,
|
|
@@ -2238,7 +2238,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2238
2238
|
width: u.offsetWidth,
|
|
2239
2239
|
height: u.offsetHeight
|
|
2240
2240
|
});
|
|
2241
|
-
}, "handleSizeChange")), /* @__PURE__ */ (0, Y.jsx)(
|
|
2241
|
+
}, "handleSizeChange")), /* @__PURE__ */ (0, Y.jsx)(Xa.div, {
|
|
2242
2242
|
"data-state": ef(h),
|
|
2243
2243
|
"data-orientation": a.orientation,
|
|
2244
2244
|
...i,
|
|
@@ -2249,11 +2249,11 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2249
2249
|
"--radix-navigation-menu-viewport-height": p,
|
|
2250
2250
|
...i.style
|
|
2251
2251
|
},
|
|
2252
|
-
onPointerEnter:
|
|
2253
|
-
onPointerLeave:
|
|
2252
|
+
onPointerEnter: fo(e.onPointerEnter, a.onContentEnter),
|
|
2253
|
+
onPointerLeave: fo(e.onPointerLeave, rf(a.onContentLeave)),
|
|
2254
2254
|
children: Array.from(s.items).map(([e, { ref: t, forceMount: n, ...r }]) => {
|
|
2255
2255
|
let i = g === e;
|
|
2256
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2256
|
+
return /* @__PURE__ */ (0, Y.jsx)(lo, {
|
|
2257
2257
|
present: n || i,
|
|
2258
2258
|
children: /* @__PURE__ */ (0, Y.jsx)(Wd, {
|
|
2259
2259
|
...r,
|
|
@@ -2278,7 +2278,7 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2278
2278
|
scope: n,
|
|
2279
2279
|
children: /* @__PURE__ */ (0, Y.jsx)(pd.Slot, {
|
|
2280
2280
|
scope: n,
|
|
2281
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2281
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Xa.div, {
|
|
2282
2282
|
dir: i.dir,
|
|
2283
2283
|
...r,
|
|
2284
2284
|
ref: t
|
|
@@ -2294,10 +2294,10 @@ var { enableCache: eu, disableCache: tu, iconLoaded: nu, iconExists: ru, getIcon
|
|
|
2294
2294
|
let { __scopeNavigationMenu: n, ...r } = e, i = md(n), a = yd(Jd, n);
|
|
2295
2295
|
return /* @__PURE__ */ (0, Y.jsx)(pd.ItemSlot, {
|
|
2296
2296
|
scope: n,
|
|
2297
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2297
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Xa.button, {
|
|
2298
2298
|
...r,
|
|
2299
2299
|
ref: t,
|
|
2300
|
-
onKeyDown:
|
|
2300
|
+
onKeyDown: fo(e.onKeyDown, (e) => {
|
|
2301
2301
|
if ([
|
|
2302
2302
|
"Home",
|
|
2303
2303
|
"End",
|
|
@@ -2344,8 +2344,8 @@ function Qd(e) {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
cd(Qd, "removeFromTabOrder");
|
|
2346
2346
|
function $d(e, t) {
|
|
2347
|
-
let n =
|
|
2348
|
-
|
|
2347
|
+
let n = _o(t);
|
|
2348
|
+
Ro(() => {
|
|
2349
2349
|
let t = 0;
|
|
2350
2350
|
if (e) {
|
|
2351
2351
|
let r = new ResizeObserver(() => {
|
|
@@ -2407,8 +2407,8 @@ var af = Sd, of = Td, sf = Od, cf = Ad, lf = Md, uf = Pd, df = Ld, ff = Hd, pf =
|
|
|
2407
2407
|
"ArrowUp",
|
|
2408
2408
|
"ArrowLeft"
|
|
2409
2409
|
]
|
|
2410
|
-
}, vf = "Slider", [yf, bf, xf] = wi(vf), [Sf, Cf] =
|
|
2411
|
-
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = "horizontal", disabled: s = !1, minStepsBetweenThumbs: c = 0, defaultValue: l = [r], value: u, onValueChange: d = /* @__PURE__ */ mf(() => {}, "onValueChange"), onValueCommit: f = /* @__PURE__ */ mf(() => {}, "onValueCommit"), inverted: p = !1, form: h, ...g } = e, _ = J.useRef(/* @__PURE__ */ new Set()), v = J.useRef(0), y = J.useRef(!1), b = o === "horizontal" ? kf : Af, [x, S] = J.useState(null), C = m(t, S), [w = [], T] =
|
|
2410
|
+
}, vf = "Slider", [yf, bf, xf] = wi(vf), [Sf, Cf] = Za(vf, [xf]), [wf, Tf] = Sf(vf), Ef = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ mf(function(e, t) {
|
|
2411
|
+
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = "horizontal", disabled: s = !1, minStepsBetweenThumbs: c = 0, defaultValue: l = [r], value: u, onValueChange: d = /* @__PURE__ */ mf(() => {}, "onValueChange"), onValueCommit: f = /* @__PURE__ */ mf(() => {}, "onValueCommit"), inverted: p = !1, form: h, ...g } = e, _ = J.useRef(/* @__PURE__ */ new Set()), v = J.useRef(0), y = J.useRef(!1), b = o === "horizontal" ? kf : Af, [x, S] = J.useState(null), C = m(t, S), [w = [], T] = Ya({
|
|
2412
2412
|
prop: u,
|
|
2413
2413
|
defaultProp: l,
|
|
2414
2414
|
onChange: /* @__PURE__ */ mf((e) => {
|
|
@@ -2473,7 +2473,7 @@ var af = Sd, of = Td, sf = Od, cf = Ad, lf = Md, uf = Pd, df = Ld, ff = Hd, pf =
|
|
|
2473
2473
|
"data-disabled": s ? "" : void 0,
|
|
2474
2474
|
...g,
|
|
2475
2475
|
ref: C,
|
|
2476
|
-
onPointerDown:
|
|
2476
|
+
onPointerDown: fo(g.onPointerDown, () => {
|
|
2477
2477
|
s || (E.current = w, y.current = !1);
|
|
2478
2478
|
}),
|
|
2479
2479
|
min: r,
|
|
@@ -2592,30 +2592,30 @@ var af = Sd, of = Td, sf = Od, cf = Ad, lf = Md, uf = Pd, df = Ld, ff = Hd, pf =
|
|
|
2592
2592
|
});
|
|
2593
2593
|
}, "SliderVertical")), jf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ mf(function(e, t) {
|
|
2594
2594
|
let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: s, onStepKeyDown: c, ...l } = e, u = Tf(vf, n);
|
|
2595
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2595
|
+
return /* @__PURE__ */ (0, Y.jsx)(Xa.span, {
|
|
2596
2596
|
...l,
|
|
2597
2597
|
ref: t,
|
|
2598
|
-
onKeyDown:
|
|
2598
|
+
onKeyDown: fo(e.onKeyDown, (e) => {
|
|
2599
2599
|
e.key === "Home" ? (o(e), e.preventDefault()) : e.key === "End" ? (s(e), e.preventDefault()) : hf.concat(gf).includes(e.key) && (c(e), e.preventDefault());
|
|
2600
2600
|
}),
|
|
2601
|
-
onPointerDown:
|
|
2601
|
+
onPointerDown: fo(e.onPointerDown, (e) => {
|
|
2602
2602
|
let t = e.target;
|
|
2603
2603
|
t.setPointerCapture(e.pointerId), e.preventDefault(), u.thumbs.has(t) ? t.focus({
|
|
2604
2604
|
preventScroll: !0,
|
|
2605
2605
|
focusVisible: !1
|
|
2606
2606
|
}) : r(e);
|
|
2607
2607
|
}),
|
|
2608
|
-
onPointerMove:
|
|
2608
|
+
onPointerMove: fo(e.onPointerMove, (e) => {
|
|
2609
2609
|
e.target.hasPointerCapture(e.pointerId) && i(e);
|
|
2610
2610
|
}),
|
|
2611
|
-
onPointerUp:
|
|
2611
|
+
onPointerUp: fo(e.onPointerUp, (e) => {
|
|
2612
2612
|
let t = e.target;
|
|
2613
2613
|
t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), a(e));
|
|
2614
2614
|
})
|
|
2615
2615
|
});
|
|
2616
2616
|
}, "SliderImpl")), Mf = "SliderTrack", Nf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ mf(function(e, t) {
|
|
2617
2617
|
let { __scopeSlider: n, ...r } = e, i = Tf(Mf, n);
|
|
2618
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2618
|
+
return /* @__PURE__ */ (0, Y.jsx)(Xa.span, {
|
|
2619
2619
|
"data-disabled": i.disabled ? "" : void 0,
|
|
2620
2620
|
"data-orientation": i.orientation,
|
|
2621
2621
|
...r,
|
|
@@ -2623,7 +2623,7 @@ var af = Sd, of = Td, sf = Od, cf = Ad, lf = Md, uf = Pd, df = Ld, ff = Hd, pf =
|
|
|
2623
2623
|
});
|
|
2624
2624
|
}, "SliderTrack")), Pf = "SliderRange", Ff = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ mf(function(e, t) {
|
|
2625
2625
|
let { __scopeSlider: n, ...r } = e, i = Tf(Pf, n), a = Of(Pf, n), o = J.useRef(null), s = m(t, o), c = i.values.length, l = i.values.map((e) => Kf(e, i.min, i.max)), u = c > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
|
|
2626
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2626
|
+
return /* @__PURE__ */ (0, Y.jsx)(Xa.span, {
|
|
2627
2627
|
"data-orientation": i.orientation,
|
|
2628
2628
|
"data-disabled": i.disabled ? "" : void 0,
|
|
2629
2629
|
...r,
|
|
@@ -2670,7 +2670,7 @@ var Bf = "SliderThumbTrigger", Vf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */
|
|
|
2670
2670
|
},
|
|
2671
2671
|
children: /* @__PURE__ */ (0, Y.jsx)(yf.ItemSlot, {
|
|
2672
2672
|
scope: n,
|
|
2673
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2673
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Xa.span, {
|
|
2674
2674
|
role: "slider",
|
|
2675
2675
|
"aria-label": e["aria-label"] || f,
|
|
2676
2676
|
"aria-valuemin": i.min,
|
|
@@ -2683,7 +2683,7 @@ var Bf = "SliderThumbTrigger", Vf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */
|
|
|
2683
2683
|
...r,
|
|
2684
2684
|
ref: d,
|
|
2685
2685
|
style: s === void 0 ? { display: "none" } : e.style,
|
|
2686
|
-
onFocus:
|
|
2686
|
+
onFocus: fo(e.onFocus, () => {
|
|
2687
2687
|
i.valueIndexToChangeRef.current = o;
|
|
2688
2688
|
})
|
|
2689
2689
|
})
|
|
@@ -2710,7 +2710,7 @@ var Bf = "SliderThumbTrigger", Vf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */
|
|
|
2710
2710
|
let t = new Event("input", { bubbles: !0 });
|
|
2711
2711
|
n.call(e, r), e.dispatchEvent(t);
|
|
2712
2712
|
}
|
|
2713
|
-
}, [c, r]), /* @__PURE__ */ (0, Y.jsx)(
|
|
2713
|
+
}, [c, r]), /* @__PURE__ */ (0, Y.jsx)(Xa.input, {
|
|
2714
2714
|
style: { display: "none" },
|
|
2715
2715
|
name: i,
|
|
2716
2716
|
form: a,
|
|
@@ -2796,20 +2796,20 @@ var rp = Object.defineProperty, ip = (e, t) => rp(e, "name", {
|
|
|
2796
2796
|
value: t,
|
|
2797
2797
|
configurable: !0
|
|
2798
2798
|
}), ap = "Toggle", op = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ ip(function(e, t) {
|
|
2799
|
-
let { pressed: n, defaultPressed: r, onPressedChange: i, ...a } = e, [o, s] =
|
|
2799
|
+
let { pressed: n, defaultPressed: r, onPressedChange: i, ...a } = e, [o, s] = Ya({
|
|
2800
2800
|
prop: n,
|
|
2801
2801
|
onChange: i,
|
|
2802
2802
|
defaultProp: r ?? !1,
|
|
2803
2803
|
caller: ap
|
|
2804
2804
|
});
|
|
2805
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2805
|
+
return /* @__PURE__ */ (0, Y.jsx)(Xa.button, {
|
|
2806
2806
|
type: "button",
|
|
2807
2807
|
"aria-pressed": o,
|
|
2808
2808
|
"data-state": o ? "on" : "off",
|
|
2809
2809
|
"data-disabled": e.disabled ? "" : void 0,
|
|
2810
2810
|
...a,
|
|
2811
2811
|
ref: t,
|
|
2812
|
-
onClick:
|
|
2812
|
+
onClick: fo(e.onClick, () => {
|
|
2813
2813
|
e.disabled || s(!o);
|
|
2814
2814
|
})
|
|
2815
2815
|
});
|
|
@@ -2893,17 +2893,17 @@ fp ||= {};
|
|
|
2893
2893
|
//#endregion
|
|
2894
2894
|
//#region ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/coerce.js
|
|
2895
2895
|
function pp(e) {
|
|
2896
|
-
return
|
|
2896
|
+
return ro(Co, e);
|
|
2897
2897
|
}
|
|
2898
2898
|
function mp(e) {
|
|
2899
|
-
return
|
|
2899
|
+
return $a(yo, e);
|
|
2900
2900
|
}
|
|
2901
2901
|
function hp(e) {
|
|
2902
|
-
return
|
|
2902
|
+
return po(ho, e);
|
|
2903
2903
|
}
|
|
2904
2904
|
//#endregion
|
|
2905
2905
|
//#region ../node_modules/.pnpm/react-hook-form@7.54.2_react@19.3.0/node_modules/react-hook-form/dist/index.esm.mjs
|
|
2906
|
-
var X = y(), gp = /* @__PURE__ */ e(
|
|
2906
|
+
var X = y(), gp = /* @__PURE__ */ e(We(), 1), _p = va(), vp = (e) => e.type === "checkbox", yp = (e) => e instanceof Date, bp = (e) => e == null, xp = (e) => typeof e == "object", Sp = (e) => !bp(e) && !Array.isArray(e) && xp(e) && !yp(e), Cp = (e) => Sp(e) && e.target ? vp(e.target) ? e.target.checked : e.target.value : e, wp = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Tp = (e, t) => e.has(wp(t)), Ep = (e) => {
|
|
2907
2907
|
let t = e.constructor && e.constructor.prototype;
|
|
2908
2908
|
return Sp(t) && t.hasOwnProperty("isPrototypeOf");
|
|
2909
2909
|
}, Dp = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
@@ -4197,10 +4197,10 @@ function ph() {
|
|
|
4197
4197
|
//#endregion
|
|
4198
4198
|
//#region src/utils/zod-utils.ts
|
|
4199
4199
|
function mh(e) {
|
|
4200
|
-
return e instanceof
|
|
4200
|
+
return e instanceof Mo;
|
|
4201
4201
|
}
|
|
4202
4202
|
function hh(e) {
|
|
4203
|
-
return e instanceof
|
|
4203
|
+
return e instanceof Do;
|
|
4204
4204
|
}
|
|
4205
4205
|
function gh(e) {
|
|
4206
4206
|
return e instanceof So;
|
|
@@ -4321,7 +4321,7 @@ var Dh = (e) => {
|
|
|
4321
4321
|
let a;
|
|
4322
4322
|
t[0] === n ? a = t[1] : (a = c("stroke-[1.8px]", n), t[0] = n, t[1] = a);
|
|
4323
4323
|
let o;
|
|
4324
|
-
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(
|
|
4324
|
+
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(tt, { className: a }), t[2] = a, t[3] = o);
|
|
4325
4325
|
let s;
|
|
4326
4326
|
return t[4] !== i || t[5] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(pe, {
|
|
4327
4327
|
content: i,
|
|
@@ -4428,7 +4428,7 @@ var Ph = J.forwardRef((e, t) => {
|
|
|
4428
4428
|
defaultProp: o,
|
|
4429
4429
|
onChange: i
|
|
4430
4430
|
}, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
|
|
4431
|
-
let [l, u] =
|
|
4431
|
+
let [l, u] = Ya(c), d, f;
|
|
4432
4432
|
n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
|
|
4433
4433
|
s(l || "");
|
|
4434
4434
|
}, f = [l], n[8] = l, n[9] = d, n[10] = f), J.useEffect(d, f);
|
|
@@ -4457,7 +4457,7 @@ function Fh(e) {
|
|
|
4457
4457
|
}
|
|
4458
4458
|
function Ih(e) {
|
|
4459
4459
|
let t = (e) => {
|
|
4460
|
-
if (e instanceof
|
|
4460
|
+
if (e instanceof Fo) {
|
|
4461
4461
|
let t = [...e.values];
|
|
4462
4462
|
return e.values.size === 1 ? t[0] : t;
|
|
4463
4463
|
}
|
|
@@ -4469,16 +4469,16 @@ function Ih(e) {
|
|
|
4469
4469
|
if (gh(e)) return e.def.items.map((e) => t(e));
|
|
4470
4470
|
if ("unwrap" in e) return t(Fh(e));
|
|
4471
4471
|
};
|
|
4472
|
-
return e instanceof
|
|
4472
|
+
return e instanceof Io || e instanceof No ? t(e.options[0]) : mh(e) ? Rh(e) ? [Ih(e.element)] : [] : e instanceof Co ? "" : e instanceof vo ? e.options[0] : e instanceof xo ? Object.fromEntries(Object.entries(e.shape).map(([e, n]) => [e, t(n)])) : t(e);
|
|
4473
4473
|
}
|
|
4474
4474
|
function Lh(e) {
|
|
4475
|
-
if (e instanceof
|
|
4476
|
-
if (e instanceof
|
|
4475
|
+
if (e instanceof Fo) return e;
|
|
4476
|
+
if (e instanceof xo) {
|
|
4477
4477
|
let t = e.shape.type;
|
|
4478
|
-
if (t instanceof
|
|
4478
|
+
if (t instanceof Fo) return t;
|
|
4479
4479
|
throw Error("Invalid schema");
|
|
4480
4480
|
}
|
|
4481
|
-
if (e instanceof
|
|
4481
|
+
if (e instanceof Io || e instanceof No) return Lh(e.options[0]);
|
|
4482
4482
|
throw s.warn(e), Error("Invalid schema");
|
|
4483
4483
|
}
|
|
4484
4484
|
function Rh(e) {
|
|
@@ -4636,7 +4636,7 @@ function Yh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4636
4636
|
renderers: r
|
|
4637
4637
|
});
|
|
4638
4638
|
}
|
|
4639
|
-
if (e instanceof
|
|
4639
|
+
if (e instanceof Ao) {
|
|
4640
4640
|
let i = e.unwrap();
|
|
4641
4641
|
return i = !i.description && e.description ? i.describe(e.description) : i, Yh({
|
|
4642
4642
|
schema: i,
|
|
@@ -4645,10 +4645,10 @@ function Yh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4645
4645
|
renderers: r
|
|
4646
4646
|
});
|
|
4647
4647
|
}
|
|
4648
|
-
if (e instanceof
|
|
4648
|
+
if (e instanceof xo) return /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
4649
4649
|
className: c("flex", s === "row" ? "flex-row gap-6 items-start" : s === "two-columns" ? "grid grid-cols-2 gap-y-6" : "flex-col gap-6"),
|
|
4650
4650
|
children: [/* @__PURE__ */ (0, Y.jsx)(Ch, { children: i }), Ts.entries(e.shape).map(([e, i]) => {
|
|
4651
|
-
let a = i instanceof
|
|
4651
|
+
let a = i instanceof Fo, o = Yh({
|
|
4652
4652
|
schema: i,
|
|
4653
4653
|
form: t,
|
|
4654
4654
|
path: tg(n, e),
|
|
@@ -4660,7 +4660,7 @@ function Yh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4660
4660
|
}, e);
|
|
4661
4661
|
})]
|
|
4662
4662
|
});
|
|
4663
|
-
if (e instanceof
|
|
4663
|
+
if (e instanceof Co) return o === "time" ? /* @__PURE__ */ (0, Y.jsx)(yh, {
|
|
4664
4664
|
control: t.control,
|
|
4665
4665
|
name: n,
|
|
4666
4666
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(Sh, { children: [
|
|
@@ -4695,7 +4695,7 @@ function Yh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4695
4695
|
})]
|
|
4696
4696
|
}), /* @__PURE__ */ (0, Y.jsx)(Eh, {})] })
|
|
4697
4697
|
});
|
|
4698
|
-
if (e instanceof
|
|
4698
|
+
if (e instanceof yo) return o === "random_number_button" ? /* @__PURE__ */ (0, Y.jsx)(yh, {
|
|
4699
4699
|
control: t.control,
|
|
4700
4700
|
name: n,
|
|
4701
4701
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(g, {
|
|
@@ -4753,7 +4753,7 @@ function Yh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4753
4753
|
options: r
|
|
4754
4754
|
});
|
|
4755
4755
|
}
|
|
4756
|
-
if (e instanceof
|
|
4756
|
+
if (e instanceof Mo) {
|
|
4757
4757
|
if (o === "text_area_multiline") return /* @__PURE__ */ (0, Y.jsx)(Qh, {
|
|
4758
4758
|
schema: e,
|
|
4759
4759
|
form: t,
|
|
@@ -4781,7 +4781,7 @@ function Yh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4781
4781
|
}, n)]
|
|
4782
4782
|
});
|
|
4783
4783
|
}
|
|
4784
|
-
if (e instanceof
|
|
4784
|
+
if (e instanceof No) {
|
|
4785
4785
|
let a = e.def, o = a.options, s = a.discriminator, c = (e) => o.find((t) => Lh(t).value === e);
|
|
4786
4786
|
return /* @__PURE__ */ (0, Y.jsx)(yh, {
|
|
4787
4787
|
control: t.control,
|
|
@@ -4821,7 +4821,7 @@ function Yh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4821
4821
|
}
|
|
4822
4822
|
});
|
|
4823
4823
|
}
|
|
4824
|
-
return e instanceof
|
|
4824
|
+
return e instanceof Io ? /* @__PURE__ */ (0, Y.jsx)(yh, {
|
|
4825
4825
|
control: t.control,
|
|
4826
4826
|
name: n,
|
|
4827
4827
|
render: ({ field: a }) => {
|
|
@@ -4849,7 +4849,7 @@ function Yh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4849
4849
|
]
|
|
4850
4850
|
});
|
|
4851
4851
|
}
|
|
4852
|
-
}) : e instanceof
|
|
4852
|
+
}) : e instanceof Fo ? /* @__PURE__ */ (0, Y.jsx)(yh, {
|
|
4853
4853
|
control: t.control,
|
|
4854
4854
|
name: n,
|
|
4855
4855
|
render: ({ field: t }) => /* @__PURE__ */ (0, Y.jsx)("input", {
|
|
@@ -5304,18 +5304,18 @@ function pg(e) {
|
|
|
5304
5304
|
return typeof e == "function";
|
|
5305
5305
|
}
|
|
5306
5306
|
function mg(e) {
|
|
5307
|
-
return
|
|
5307
|
+
return we(e) && (fg(e.render) || pg(e.initialize));
|
|
5308
5308
|
}
|
|
5309
5309
|
function hg(e) {
|
|
5310
5310
|
return typeof e == "function" || mg(e);
|
|
5311
5311
|
}
|
|
5312
5312
|
function gg(e) {
|
|
5313
|
-
return
|
|
5313
|
+
return we(e) && hg(e.default);
|
|
5314
5314
|
}
|
|
5315
5315
|
var _g = /* @__PURE__ */ new Set(), vg = /* @__PURE__ */ new WeakMap();
|
|
5316
5316
|
function yg(e, t) {
|
|
5317
5317
|
if (gg(e)) return e.default;
|
|
5318
|
-
if (!
|
|
5318
|
+
if (!we(e) || e.default !== void 0) return null;
|
|
5319
5319
|
let n = fg(e.render) ? e.render : void 0, r = pg(e.initialize) ? e.initialize : void 0;
|
|
5320
5320
|
if (n === void 0 && r === void 0) return null;
|
|
5321
5321
|
let i = vg.get(e);
|
|
@@ -5328,8 +5328,8 @@ function yg(e, t) {
|
|
|
5328
5328
|
return vg.set(e, a), a;
|
|
5329
5329
|
}
|
|
5330
5330
|
function bg(e, t) {
|
|
5331
|
-
let n = "https://anywidget.dev/en/afm/", r =
|
|
5332
|
-
if (
|
|
5331
|
+
let n = "https://anywidget.dev/en/afm/", r = we(e) && ht(e, "render"), i = we(e) && ht(e, "initialize");
|
|
5332
|
+
if (we(e) && e.default !== void 0) return /* @__PURE__ */ Error(`Anywidget module at ${t} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${n}`);
|
|
5333
5333
|
if (r || i) {
|
|
5334
5334
|
let e = [r ? "`render`" : null, i ? "`initialize`" : null].filter(Boolean).join(" and "), a = [r ? "render" : null, i ? "initialize" : null].filter((e) => e !== null), o = `export default { ${a.join(", ")} }`, s = a.length === 1 ? `export function ${a[0]}` : "named export function ...";
|
|
5335
5335
|
return /* @__PURE__ */ Error(`Anywidget module at ${t} uses named exports (${e}). Per the AFM spec, use a default export instead: \`${o}\` (not \`${s}\`). See ${n}`);
|
|
@@ -5826,7 +5826,7 @@ async function Wg(e, t) {
|
|
|
5826
5826
|
return;
|
|
5827
5827
|
}
|
|
5828
5828
|
let { state: r, buffers: i, bufferPaths: a } = Bg(t);
|
|
5829
|
-
await
|
|
5829
|
+
await xe().sendModelValue({
|
|
5830
5830
|
modelId: n,
|
|
5831
5831
|
message: {
|
|
5832
5832
|
method: "update",
|
|
@@ -5841,7 +5841,7 @@ async function Wg(e, t) {
|
|
|
5841
5841
|
s.debug(`[Model] sendCustomMessage suppressed for model=${n} (signal aborted)`);
|
|
5842
5842
|
return;
|
|
5843
5843
|
}
|
|
5844
|
-
await
|
|
5844
|
+
await xe().sendModelValue({
|
|
5845
5845
|
modelId: n,
|
|
5846
5846
|
message: {
|
|
5847
5847
|
method: "custom",
|
|
@@ -5878,7 +5878,7 @@ async function Wg(e, t) {
|
|
|
5878
5878
|
default: vi(r);
|
|
5879
5879
|
}
|
|
5880
5880
|
}
|
|
5881
|
-
|
|
5881
|
+
wt(Ug, "WIDGET_REGISTRY");
|
|
5882
5882
|
//#endregion
|
|
5883
5883
|
//#region src/components/ui/navigation.tsx
|
|
5884
5884
|
var Gg = J.forwardRef((e, t) => {
|
|
@@ -6072,7 +6072,7 @@ var i_ = (e) => {
|
|
|
6072
6072
|
onValueChange: c,
|
|
6073
6073
|
children: [p, h]
|
|
6074
6074
|
}), t[20] = p, t[21] = h, t[22] = g) : g = t[22], g;
|
|
6075
|
-
}, a_ =
|
|
6075
|
+
}, a_ = oo(({ container: e, children: t }) => (0, od.createPortal)(t, e ?? document.body)), o_ = 8, s_ = (e) => {
|
|
6076
6076
|
let t = (0, X.c)(18), { anchorRef: n, open: r, children: i } = e, [a, o] = J.useState(null), s = J.useRef(null), c;
|
|
6077
6077
|
t[0] === n ? c = t[1] : (c = () => {
|
|
6078
6078
|
if (!n.current) return;
|
|
@@ -6114,18 +6114,18 @@ var i_ = (e) => {
|
|
|
6114
6114
|
}) }), t[15] = i, t[16] = h, t[17] = g) : g = t[17], g;
|
|
6115
6115
|
}, c_ = class {
|
|
6116
6116
|
tagName = "marimo-nav-menu";
|
|
6117
|
-
menuItemValidator =
|
|
6117
|
+
menuItemValidator = G({
|
|
6118
6118
|
label: U(),
|
|
6119
6119
|
href: U(),
|
|
6120
6120
|
description: U().nullish()
|
|
6121
6121
|
});
|
|
6122
|
-
menuItemGroupValidator =
|
|
6122
|
+
menuItemGroupValidator = G({
|
|
6123
6123
|
label: U(),
|
|
6124
|
-
items:
|
|
6124
|
+
items: H(this.menuItemValidator)
|
|
6125
6125
|
});
|
|
6126
|
-
validator =
|
|
6127
|
-
items:
|
|
6128
|
-
orientation:
|
|
6126
|
+
validator = G({
|
|
6127
|
+
items: H(Ho([this.menuItemValidator, this.menuItemGroupValidator])),
|
|
6128
|
+
orientation: Vo(["horizontal", "vertical"])
|
|
6129
6129
|
});
|
|
6130
6130
|
render(e) {
|
|
6131
6131
|
return /* @__PURE__ */ (0, Y.jsx)(l_, { ...e.data });
|
|
@@ -6245,7 +6245,7 @@ var h_ = class e {
|
|
|
6245
6245
|
let n = this.entries.get(e);
|
|
6246
6246
|
n === void 0 ? this.entries.set(e, {
|
|
6247
6247
|
objectId: e,
|
|
6248
|
-
value:
|
|
6248
|
+
value: Le(t, this),
|
|
6249
6249
|
elements: /* @__PURE__ */ new Set([t])
|
|
6250
6250
|
}) : n.elements.add(t);
|
|
6251
6251
|
}
|
|
@@ -6310,8 +6310,8 @@ var h_ = class e {
|
|
|
6310
6310
|
detail: { objectId: t }
|
|
6311
6311
|
})));
|
|
6312
6312
|
}
|
|
6313
|
-
}, g_ = h_.INSTANCE, __ = new
|
|
6314
|
-
await
|
|
6313
|
+
}, g_ = h_.INSTANCE, __ = new dt("function-call-result", async (e, t) => {
|
|
6314
|
+
await xe().sendFunctionRequest({
|
|
6315
6315
|
functionCallId: e,
|
|
6316
6316
|
...t
|
|
6317
6317
|
});
|
|
@@ -9233,7 +9233,7 @@ function $x(e) {
|
|
|
9233
9233
|
//#region src/plugins/core/BadPlugin.tsx
|
|
9234
9234
|
var eS = re, tS = E, nS = k, rS = O, iS = (e) => {
|
|
9235
9235
|
let t = (0, X.c)(13), { error: n, badData: r } = e;
|
|
9236
|
-
if (n instanceof
|
|
9236
|
+
if (n instanceof eo) {
|
|
9237
9237
|
let e;
|
|
9238
9238
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(Ns, { children: "Bad Data" }), t[0] = e) : e = t[0];
|
|
9239
9239
|
let i;
|
|
@@ -9295,10 +9295,10 @@ function oS(e) {
|
|
|
9295
9295
|
//#region src/plugins/core/registerReactComponent.tsx
|
|
9296
9296
|
var sS = 3, cS = 150;
|
|
9297
9297
|
function lS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
9298
|
-
let [c, l] = (0, J.useState)(n), [u, d] = (0, J.useState)(r()), { theme: f } = ds(), [p, m] = (0, J.useState)(() => t.validator.safeParse(
|
|
9298
|
+
let [c, l] = (0, J.useState)(n), [u, d] = (0, J.useState)(r()), { theme: f } = ds(), [p, m] = (0, J.useState)(() => t.validator.safeParse(_e(e))), [h, g] = (0, J.useState)(0);
|
|
9299
9299
|
(0, J.useImperativeHandle)(i, () => ({
|
|
9300
9300
|
reset: () => {
|
|
9301
|
-
d(r()), m(t.validator.safeParse(
|
|
9301
|
+
d(r()), m(t.validator.safeParse(_e(e))), g((e) => e + 1);
|
|
9302
9302
|
},
|
|
9303
9303
|
setChildren: (e) => {
|
|
9304
9304
|
l(e);
|
|
@@ -9307,7 +9307,7 @@ function lS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
9307
9307
|
t.detail.element === e && d(t.detail.value);
|
|
9308
9308
|
}), (0, J.useEffect)(() => {
|
|
9309
9309
|
let n = new MutationObserver((n) => {
|
|
9310
|
-
n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(
|
|
9310
|
+
n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(_e(e)));
|
|
9311
9311
|
});
|
|
9312
9312
|
return n.observe(e, { attributes: !0 }), () => {
|
|
9313
9313
|
n.disconnect();
|
|
@@ -9325,10 +9325,10 @@ function lS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
9325
9325
|
let { input: t, output: a } = i;
|
|
9326
9326
|
n[r] = async (...n) => {
|
|
9327
9327
|
bs(n.length <= 1, `Plugin functions only supports a single argument. Called ${r}`);
|
|
9328
|
-
let i = ma(), o =
|
|
9328
|
+
let i = ma(), o = Fe.findElementThroughShadowDOMs(e)?.id, c = o ? Fe.parse(o) : null;
|
|
9329
9329
|
if (c && !i) {
|
|
9330
|
-
let e = as.get(
|
|
9331
|
-
if (
|
|
9330
|
+
let e = as.get(et), t = e.cellRuntime[c], n = e.cellData[c];
|
|
9331
|
+
if (st({
|
|
9332
9332
|
executionTime: t.runElapsedTimeMs ?? n.lastExecutionTime,
|
|
9333
9333
|
status: t.status,
|
|
9334
9334
|
errored: t.errored,
|
|
@@ -9362,7 +9362,7 @@ function lS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
9362
9362
|
e,
|
|
9363
9363
|
h
|
|
9364
9364
|
]);
|
|
9365
|
-
return p.success ? /* @__PURE__ */ (0, Y.jsx)(
|
|
9365
|
+
return p.success ? /* @__PURE__ */ (0, Y.jsx)(Po, { children: /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
9366
9366
|
className: `contents ${f}`,
|
|
9367
9367
|
children: /* @__PURE__ */ (0, Y.jsx)(J.Suspense, {
|
|
9368
9368
|
fallback: /* @__PURE__ */ (0, Y.jsx)("div", {}),
|
|
@@ -9375,7 +9375,7 @@ function lS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
9375
9375
|
functions: v
|
|
9376
9376
|
}) })
|
|
9377
9377
|
})
|
|
9378
|
-
}) }) : aS(p.error, Ts.mapValues(e.dataset, (e) => typeof e == "string" ?
|
|
9378
|
+
}) }) : aS(p.error, Ts.mapValues(e.dataset, (e) => typeof e == "string" ? kt(e) : e));
|
|
9379
9379
|
}
|
|
9380
9380
|
var uS = J.forwardRef(lS), dS = /* @__PURE__ */ new Map(), fS = "__custom_marimo_element__";
|
|
9381
9381
|
function pS(e) {
|
|
@@ -9410,7 +9410,7 @@ function pS(e) {
|
|
|
9410
9410
|
return !1;
|
|
9411
9411
|
}
|
|
9412
9412
|
reset() {
|
|
9413
|
-
this.dispatchEvent(wa(
|
|
9413
|
+
this.dispatchEvent(wa(kt(this.dataset.initialValue), this)), this.rerender();
|
|
9414
9414
|
}
|
|
9415
9415
|
rerender() {
|
|
9416
9416
|
this.pluginRef.current?.reset();
|
|
@@ -9431,7 +9431,7 @@ function pS(e) {
|
|
|
9431
9431
|
hostElement: this,
|
|
9432
9432
|
plugin: e,
|
|
9433
9433
|
ref: this.pluginRef,
|
|
9434
|
-
getInitialValue: () =>
|
|
9434
|
+
getInitialValue: () => Le(this, h_.INSTANCE),
|
|
9435
9435
|
children: this.getChildren()
|
|
9436
9436
|
}) })
|
|
9437
9437
|
}));
|
|
@@ -9490,7 +9490,7 @@ function hS(e) {
|
|
|
9490
9490
|
}
|
|
9491
9491
|
function gS(e, t) {
|
|
9492
9492
|
let n = e.safeParse(t);
|
|
9493
|
-
if (!n.success) throw s.log("Failed to parse data", t, n.error), Error(
|
|
9493
|
+
if (!n.success) throw s.log("Failed to parse data", t, n.error), Error(no(n.error));
|
|
9494
9494
|
return n.data;
|
|
9495
9495
|
}
|
|
9496
9496
|
//#endregion
|
|
@@ -9502,7 +9502,7 @@ function vS() {
|
|
|
9502
9502
|
inputListener = a.NOOP;
|
|
9503
9503
|
init() {
|
|
9504
9504
|
if (this.initialized) return;
|
|
9505
|
-
let e =
|
|
9505
|
+
let e = Ce.parseOrThrow(this);
|
|
9506
9506
|
this.inputListener = (n) => {
|
|
9507
9507
|
e !== null && n.detail.element === this.firstElementChild && (g_.has(e) || g_.registerInstance(e, t), g_.broadcastValueUpdate(t, e, n.detail.value));
|
|
9508
9508
|
};
|
|
@@ -9523,14 +9523,14 @@ function vS() {
|
|
|
9523
9523
|
}
|
|
9524
9524
|
connectedCallback() {
|
|
9525
9525
|
if (this.init(), this.initialized) {
|
|
9526
|
-
let e =
|
|
9526
|
+
let e = Ce.parseOrThrow(this), t = this.firstElementChild;
|
|
9527
9527
|
g_.registerInstance(e, t), document.addEventListener(Ca.TYPE, this.inputListener);
|
|
9528
9528
|
}
|
|
9529
9529
|
}
|
|
9530
9530
|
disconnectedCallback() {
|
|
9531
9531
|
if (this.initialized) {
|
|
9532
9532
|
document.removeEventListener(Ca.TYPE, this.inputListener);
|
|
9533
|
-
let e =
|
|
9533
|
+
let e = Ce.parseOrThrow(this);
|
|
9534
9534
|
g_.removeInstance(e, this.firstElementChild);
|
|
9535
9535
|
}
|
|
9536
9536
|
}
|
|
@@ -9539,7 +9539,7 @@ function vS() {
|
|
|
9539
9539
|
hS(e) ? e.reset() : s.error("[marimo-ui-element] first child must have a reset method");
|
|
9540
9540
|
}
|
|
9541
9541
|
static get observedAttributes() {
|
|
9542
|
-
return [
|
|
9542
|
+
return [Te];
|
|
9543
9543
|
}
|
|
9544
9544
|
attributeChangedCallback(e, t, n) {
|
|
9545
9545
|
if (this.initialized && e === "random-id" && t !== n) {
|
|
@@ -9553,16 +9553,16 @@ function vS() {
|
|
|
9553
9553
|
}
|
|
9554
9554
|
function yS(e) {
|
|
9555
9555
|
if (!e) return null;
|
|
9556
|
-
if (e.nodeName === _S) return
|
|
9556
|
+
if (e.nodeName === _S) return Ce.parseOrThrow(e);
|
|
9557
9557
|
let t = e.parentElement;
|
|
9558
|
-
return t?.nodeName === _S ?
|
|
9558
|
+
return t?.nodeName === _S ? Ce.parseOrThrow(t) : null;
|
|
9559
9559
|
}
|
|
9560
9560
|
function bS(e) {
|
|
9561
9561
|
return e.tagName === _S;
|
|
9562
9562
|
}
|
|
9563
9563
|
//#endregion
|
|
9564
9564
|
//#region src/components/editor/renderers/vertical-layout/sidebar/state.ts
|
|
9565
|
-
var xS =
|
|
9565
|
+
var xS = me({ isOpen: !0 }, (e, t) => {
|
|
9566
9566
|
if (!t) return e;
|
|
9567
9567
|
switch (t.type) {
|
|
9568
9568
|
case "toggle": return {
|
|
@@ -9661,7 +9661,7 @@ function wS(e, t = {}) {
|
|
|
9661
9661
|
}
|
|
9662
9662
|
//#endregion
|
|
9663
9663
|
//#region src/plugins/impl/anywidget/AnyWidgetPlugin.tsx
|
|
9664
|
-
var TS = wS("marimo-anywidget").withData(
|
|
9664
|
+
var TS = wS("marimo-anywidget").withData(G({ modelId: uo(og, { message: "Expected a non-empty widget model id" }) })).withFunctions({}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(ES, { ...e })), ES = (e) => {
|
|
9665
9665
|
let t = (0, X.c)(9), { modelId: n } = e.data, r = (0, J.useRef)(null), [i, a] = (0, J.useState)(), o = ns(Gs), s, c;
|
|
9666
9666
|
t[0] !== o || t[1] !== n ? (s = () => {
|
|
9667
9667
|
if (!o) return;
|
|
@@ -9863,7 +9863,7 @@ function NS(e) {
|
|
|
9863
9863
|
}
|
|
9864
9864
|
//#endregion
|
|
9865
9865
|
//#region src/plugins/impl/common/intent.ts
|
|
9866
|
-
var PS =
|
|
9866
|
+
var PS = Vo([
|
|
9867
9867
|
"neutral",
|
|
9868
9868
|
"success",
|
|
9869
9869
|
"warn",
|
|
@@ -9872,11 +9872,11 @@ var PS = Fo([
|
|
|
9872
9872
|
"alert"
|
|
9873
9873
|
]).default("neutral"), FS = class {
|
|
9874
9874
|
tagName = "marimo-button";
|
|
9875
|
-
validator =
|
|
9875
|
+
validator = G({
|
|
9876
9876
|
label: U(),
|
|
9877
9877
|
kind: PS,
|
|
9878
|
-
disabled:
|
|
9879
|
-
fullWidth:
|
|
9878
|
+
disabled: K().default(!1),
|
|
9879
|
+
fullWidth: K().default(!1),
|
|
9880
9880
|
tooltip: U().optional(),
|
|
9881
9881
|
keyboardShortcut: U().optional()
|
|
9882
9882
|
});
|
|
@@ -9956,10 +9956,10 @@ var LS = (e) => {
|
|
|
9956
9956
|
}), t[24] = r, t[25] = h, t[26] = x, t[27] = S) : S = t[27], S;
|
|
9957
9957
|
}, RS = class {
|
|
9958
9958
|
tagName = "marimo-checkbox";
|
|
9959
|
-
validator =
|
|
9960
|
-
initialValue:
|
|
9959
|
+
validator = G({
|
|
9960
|
+
initialValue: K(),
|
|
9961
9961
|
label: U().nullable(),
|
|
9962
|
-
disabled:
|
|
9962
|
+
disabled: K().optional()
|
|
9963
9963
|
});
|
|
9964
9964
|
render(e) {
|
|
9965
9965
|
return /* @__PURE__ */ (0, Y.jsx)(zS, { ...e });
|
|
@@ -9986,17 +9986,17 @@ var LS = (e) => {
|
|
|
9986
9986
|
}), t[7] = i.label, t[8] = s, t[9] = c, t[10] = l) : l = t[10], l;
|
|
9987
9987
|
}, BS = class {
|
|
9988
9988
|
tagName = "marimo-code-editor";
|
|
9989
|
-
validator =
|
|
9989
|
+
validator = G({
|
|
9990
9990
|
initialValue: U(),
|
|
9991
9991
|
language: U().default("python"),
|
|
9992
9992
|
placeholder: U(),
|
|
9993
|
-
theme:
|
|
9993
|
+
theme: Vo(["light", "dark"]).optional(),
|
|
9994
9994
|
label: U().nullable(),
|
|
9995
|
-
disabled:
|
|
9996
|
-
minHeight:
|
|
9997
|
-
maxHeight:
|
|
9998
|
-
showCopyButton:
|
|
9999
|
-
debounce:
|
|
9995
|
+
disabled: K().optional(),
|
|
9996
|
+
minHeight: W().optional(),
|
|
9997
|
+
maxHeight: W().optional(),
|
|
9998
|
+
showCopyButton: K().optional(),
|
|
9999
|
+
debounce: Ho([K(), W()]).default(!1)
|
|
10000
10000
|
});
|
|
10001
10001
|
render(e) {
|
|
10002
10002
|
return /* @__PURE__ */ (0, Y.jsx)(VS, {
|
|
@@ -10067,40 +10067,40 @@ var LS = (e) => {
|
|
|
10067
10067
|
output: t
|
|
10068
10068
|
};
|
|
10069
10069
|
} };
|
|
10070
|
-
} }, US = J.lazy(() => import("./chat-ui-
|
|
10070
|
+
} }, US = J.lazy(() => import("./chat-ui-w8SVynkn.js").then((e) => ({ default: e.Chatbot }))), WS = H(G({
|
|
10071
10071
|
id: U(),
|
|
10072
|
-
role:
|
|
10072
|
+
role: Vo([
|
|
10073
10073
|
"system",
|
|
10074
10074
|
"user",
|
|
10075
10075
|
"assistant"
|
|
10076
10076
|
]),
|
|
10077
10077
|
content: U().nullable(),
|
|
10078
|
-
parts:
|
|
10079
|
-
metadata:
|
|
10080
|
-
})), GS =
|
|
10081
|
-
max_tokens:
|
|
10082
|
-
temperature:
|
|
10083
|
-
top_p:
|
|
10084
|
-
top_k:
|
|
10085
|
-
frequency_penalty:
|
|
10086
|
-
presence_penalty:
|
|
10087
|
-
}), KS = wS("marimo-chatbot").withData(
|
|
10088
|
-
prompts:
|
|
10089
|
-
showConfigurationControls:
|
|
10090
|
-
maxHeight:
|
|
10078
|
+
parts: H(co()),
|
|
10079
|
+
metadata: co().optional()
|
|
10080
|
+
})), GS = G({
|
|
10081
|
+
max_tokens: W().nullable(),
|
|
10082
|
+
temperature: W().nullable(),
|
|
10083
|
+
top_p: W().nullable(),
|
|
10084
|
+
top_k: W().nullable(),
|
|
10085
|
+
frequency_penalty: W().nullable(),
|
|
10086
|
+
presence_penalty: W().nullable()
|
|
10087
|
+
}), KS = wS("marimo-chatbot").withData(G({
|
|
10088
|
+
prompts: H(U()).default(Cs.EMPTY),
|
|
10089
|
+
showConfigurationControls: K(),
|
|
10090
|
+
maxHeight: W().optional(),
|
|
10091
10091
|
config: GS,
|
|
10092
|
-
allowAttachments:
|
|
10093
|
-
disabled:
|
|
10092
|
+
allowAttachments: Ho([K(), U().array()]),
|
|
10093
|
+
disabled: K().default(!1)
|
|
10094
10094
|
})).withFunctions({
|
|
10095
|
-
get_chat_history: HS.input(
|
|
10096
|
-
delete_chat_history: HS.input(
|
|
10097
|
-
delete_chat_message: HS.input(
|
|
10098
|
-
send_prompt: HS.input(
|
|
10095
|
+
get_chat_history: HS.input(G({})).output(G({ messages: WS })),
|
|
10096
|
+
delete_chat_history: HS.input(G({})).output(zo()),
|
|
10097
|
+
delete_chat_message: HS.input(G({ index: W() })).output(zo()),
|
|
10098
|
+
send_prompt: HS.input(G({
|
|
10099
10099
|
request_id: U(),
|
|
10100
10100
|
messages: WS,
|
|
10101
10101
|
config: GS
|
|
10102
|
-
})).output(
|
|
10103
|
-
cancel_prompt: HS.input(
|
|
10102
|
+
})).output(Ja()),
|
|
10103
|
+
cancel_prompt: HS.input(G({ request_id: U() })).output(zo())
|
|
10104
10104
|
}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(J.Suspense, { children: /* @__PURE__ */ (0, Y.jsx)(US, {
|
|
10105
10105
|
prompts: e.data.prompts,
|
|
10106
10106
|
showConfigurationControls: e.data.showConfigurationControls,
|
|
@@ -10197,7 +10197,7 @@ var $S = [
|
|
|
10197
10197
|
label: "Value",
|
|
10198
10198
|
special: "column_values"
|
|
10199
10199
|
})),
|
|
10200
|
-
stringMultiColumnValues:
|
|
10200
|
+
stringMultiColumnValues: H(U()).min(1).describe(fh.of({
|
|
10201
10201
|
label: "Value",
|
|
10202
10202
|
special: "column_values"
|
|
10203
10203
|
})),
|
|
@@ -10223,7 +10223,7 @@ var $S = [
|
|
|
10223
10223
|
">=": [e],
|
|
10224
10224
|
"<": [e],
|
|
10225
10225
|
"<=": [e],
|
|
10226
|
-
between: [
|
|
10226
|
+
between: [G({
|
|
10227
10227
|
min: e,
|
|
10228
10228
|
max: e
|
|
10229
10229
|
})],
|
|
@@ -10289,53 +10289,53 @@ function mC(e, t) {
|
|
|
10289
10289
|
].flat();
|
|
10290
10290
|
return n.length === 0 || n.some((e) => e.safeParse(t).success);
|
|
10291
10291
|
}
|
|
10292
|
-
var hC = (e, t) => e[t] ? e[t] : [], gC =
|
|
10292
|
+
var hC = (e, t) => e[t] ? e[t] : [], gC = H(so([pp(), so([Vo($S).catch("unknown"), U()])])), _C = U().min(1, "Required").or(W()).transform((e) => e).describe(fh.of({
|
|
10293
10293
|
label: "Column",
|
|
10294
10294
|
special: "column_id"
|
|
10295
|
-
})), vC =
|
|
10295
|
+
})), vC = H(_C.describe(fh.of({ special: "column_id" }))).min(1, "At least one column is required").default([]).describe(fh.of({
|
|
10296
10296
|
label: "Columns",
|
|
10297
10297
|
minLength: 1
|
|
10298
|
-
})), yC =
|
|
10299
|
-
type:
|
|
10298
|
+
})), yC = G({
|
|
10299
|
+
type: Eo("column_conversion"),
|
|
10300
10300
|
column_id: _C,
|
|
10301
|
-
data_type:
|
|
10302
|
-
errors:
|
|
10301
|
+
data_type: Vo(eC).describe(fh.of({ label: "Data type (numpy)" })).default("bool"),
|
|
10302
|
+
errors: Vo(["ignore", "raise"]).default("ignore").describe(fh.of({
|
|
10303
10303
|
label: "Handle errors",
|
|
10304
10304
|
special: "radio_group"
|
|
10305
10305
|
}))
|
|
10306
|
-
}).describe(fh.of({})), bC =
|
|
10307
|
-
type:
|
|
10306
|
+
}).describe(fh.of({})), bC = G({
|
|
10307
|
+
type: Eo("rename_column"),
|
|
10308
10308
|
column_id: _C,
|
|
10309
10309
|
new_column_id: U().min(1, "Required").transform((e) => e).describe(fh.of({
|
|
10310
10310
|
label: "New column name",
|
|
10311
10311
|
minLength: 1
|
|
10312
10312
|
}))
|
|
10313
|
-
}), xC =
|
|
10314
|
-
type:
|
|
10313
|
+
}), xC = G({
|
|
10314
|
+
type: Eo("sort_column"),
|
|
10315
10315
|
column_id: _C,
|
|
10316
|
-
ascending:
|
|
10317
|
-
na_position:
|
|
10316
|
+
ascending: K().describe(fh.of({ label: "Ascending" })).default(!0),
|
|
10317
|
+
na_position: Vo(["first", "last"]).describe(fh.of({
|
|
10318
10318
|
label: "N/A position",
|
|
10319
10319
|
special: "radio_group"
|
|
10320
10320
|
})).default("last")
|
|
10321
|
-
}), SC =
|
|
10321
|
+
}), SC = G({
|
|
10322
10322
|
column_id: _C,
|
|
10323
|
-
operator:
|
|
10324
|
-
type:
|
|
10325
|
-
value:
|
|
10326
|
-
negate:
|
|
10323
|
+
operator: Vo(Object.keys(uC)).describe(fh.of({ label: " " })),
|
|
10324
|
+
type: Eo("condition").default("condition"),
|
|
10325
|
+
value: co().optional().describe(fh.of({ label: "Value" })),
|
|
10326
|
+
negate: K().default(!1)
|
|
10327
10327
|
}).describe(fh.of({
|
|
10328
10328
|
direction: "row",
|
|
10329
10329
|
special: "column_filter"
|
|
10330
|
-
})), CC =
|
|
10331
|
-
type:
|
|
10332
|
-
operator:
|
|
10333
|
-
children:
|
|
10334
|
-
negate:
|
|
10335
|
-
})), wC =
|
|
10336
|
-
type:
|
|
10337
|
-
operation:
|
|
10338
|
-
where:
|
|
10330
|
+
})), CC = io(() => G({
|
|
10331
|
+
type: Eo("group").default("group"),
|
|
10332
|
+
operator: Vo(["and", "or"]).default("and"),
|
|
10333
|
+
children: H(Ho([SC, CC])).default([]),
|
|
10334
|
+
negate: K().default(!1)
|
|
10335
|
+
})), wC = G({
|
|
10336
|
+
type: Eo("filter_rows"),
|
|
10337
|
+
operation: Vo(["keep_rows", "remove_rows"]).default("keep_rows").describe(fh.of({ special: "radio_group" })),
|
|
10338
|
+
where: H(SC).min(1).describe(fh.of({
|
|
10339
10339
|
label: "Value",
|
|
10340
10340
|
minLength: 1
|
|
10341
10341
|
})).default(() => [{
|
|
@@ -10345,64 +10345,64 @@ var hC = (e, t) => e[t] ? e[t] : [], gC = G($a([pp(), $a([Fo($S).catch("unknown"
|
|
|
10345
10345
|
type: "condition",
|
|
10346
10346
|
negate: !1
|
|
10347
10347
|
}]).transform((e) => e.filter((e) => mC(e.operator, e.value)))
|
|
10348
|
-
}), TC =
|
|
10349
|
-
type:
|
|
10350
|
-
column_ids:
|
|
10348
|
+
}), TC = G({
|
|
10349
|
+
type: Eo("group_by"),
|
|
10350
|
+
column_ids: H(_C.describe(fh.of({ special: "column_id" }))).default([]).describe(fh.of({
|
|
10351
10351
|
label: "Group by columns",
|
|
10352
10352
|
minLength: 1
|
|
10353
10353
|
})),
|
|
10354
|
-
aggregation_column_ids:
|
|
10355
|
-
aggregation:
|
|
10356
|
-
drop_na:
|
|
10357
|
-
}).describe(fh.of({})), EC =
|
|
10358
|
-
type:
|
|
10354
|
+
aggregation_column_ids: H(_C.describe(fh.of({ special: "column_id" }))).default([]).describe(fh.of({ label: "Aggregate on columns" })),
|
|
10355
|
+
aggregation: Vo(tC).default("count").describe(fh.of({ label: "Aggregation" })),
|
|
10356
|
+
drop_na: K().default(!1).describe(fh.of({ label: "Drop N/A" }))
|
|
10357
|
+
}).describe(fh.of({})), EC = G({
|
|
10358
|
+
type: Eo("aggregate"),
|
|
10359
10359
|
column_ids: vC,
|
|
10360
|
-
aggregations:
|
|
10360
|
+
aggregations: H(Vo(tC)).min(1, "At least one aggregation is required").default(["count"]).describe(fh.of({
|
|
10361
10361
|
label: "Aggregations",
|
|
10362
10362
|
minLength: 1
|
|
10363
10363
|
}))
|
|
10364
|
-
}).describe(fh.of({ direction: "row" })), DC =
|
|
10365
|
-
type:
|
|
10364
|
+
}).describe(fh.of({ direction: "row" })), DC = G({
|
|
10365
|
+
type: Eo("select_columns"),
|
|
10366
10366
|
column_ids: vC
|
|
10367
|
-
}), OC =
|
|
10368
|
-
type:
|
|
10369
|
-
n:
|
|
10370
|
-
seed:
|
|
10367
|
+
}), OC = G({
|
|
10368
|
+
type: Eo("sample_rows"),
|
|
10369
|
+
n: W().positive().describe(fh.of({ label: "Number of rows" })),
|
|
10370
|
+
seed: W().default(() => ph()).describe(fh.of({
|
|
10371
10371
|
label: "Re-sample",
|
|
10372
10372
|
special: "random_number_button"
|
|
10373
10373
|
})),
|
|
10374
|
-
replace:
|
|
10375
|
-
}), kC =
|
|
10376
|
-
type:
|
|
10377
|
-
seed:
|
|
10374
|
+
replace: K().default(!1).describe(fh.of({ label: "Sample with replacement" }))
|
|
10375
|
+
}), kC = G({
|
|
10376
|
+
type: Eo("shuffle_rows"),
|
|
10377
|
+
seed: W().default(() => ph()).describe(fh.of({
|
|
10378
10378
|
label: "Re-shuffle",
|
|
10379
10379
|
special: "random_number_button"
|
|
10380
10380
|
}))
|
|
10381
|
-
}), AC =
|
|
10382
|
-
type:
|
|
10381
|
+
}), AC = G({
|
|
10382
|
+
type: Eo("explode_columns"),
|
|
10383
10383
|
column_ids: vC
|
|
10384
|
-
}), jC =
|
|
10385
|
-
type:
|
|
10384
|
+
}), jC = G({
|
|
10385
|
+
type: Eo("expand_dict"),
|
|
10386
10386
|
column_id: _C
|
|
10387
|
-
}), MC =
|
|
10388
|
-
type:
|
|
10387
|
+
}), MC = G({
|
|
10388
|
+
type: Eo("unique"),
|
|
10389
10389
|
column_ids: vC,
|
|
10390
|
-
keep:
|
|
10390
|
+
keep: Vo([
|
|
10391
10391
|
"first",
|
|
10392
10392
|
"last",
|
|
10393
10393
|
"none",
|
|
10394
10394
|
"any"
|
|
10395
10395
|
]).default("first").describe(fh.of({ label: "Keep" }))
|
|
10396
|
-
}).describe(fh.of({ direction: "row" })), NC =
|
|
10397
|
-
type:
|
|
10396
|
+
}).describe(fh.of({ direction: "row" })), NC = G({
|
|
10397
|
+
type: Eo("pivot"),
|
|
10398
10398
|
column_ids: vC,
|
|
10399
|
-
index_column_ids:
|
|
10400
|
-
value_column_ids:
|
|
10399
|
+
index_column_ids: H(_C.describe(fh.of({ special: "column_id" }))).default([]).describe(fh.of({ label: "Rows" })),
|
|
10400
|
+
value_column_ids: H(_C.describe(fh.of({ special: "column_id" }))).default([]).describe(fh.of({
|
|
10401
10401
|
label: "Values",
|
|
10402
10402
|
minLength: 1
|
|
10403
10403
|
})),
|
|
10404
|
-
aggregation:
|
|
10405
|
-
}).describe(fh.of({})), PC =
|
|
10404
|
+
aggregation: Vo(tC).default("sum").describe(fh.of({ label: "Aggregation" }))
|
|
10405
|
+
}).describe(fh.of({})), PC = Ho([
|
|
10406
10406
|
wC,
|
|
10407
10407
|
DC,
|
|
10408
10408
|
bC,
|
|
@@ -10416,7 +10416,7 @@ var hC = (e, t) => e[t] ? e[t] : [], gC = G($a([pp(), $a([Fo($S).catch("unknown"
|
|
|
10416
10416
|
jC,
|
|
10417
10417
|
MC,
|
|
10418
10418
|
NC
|
|
10419
|
-
]), FC =
|
|
10419
|
+
]), FC = G({ transforms: H(PC) });
|
|
10420
10420
|
//#endregion
|
|
10421
10421
|
//#region src/plugins/impl/data-editor/data-utils.ts
|
|
10422
10422
|
function IC(e, t) {
|
|
@@ -10533,18 +10533,18 @@ function VC(e, t) {
|
|
|
10533
10533
|
}
|
|
10534
10534
|
//#endregion
|
|
10535
10535
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
10536
|
-
var HC = J.lazy(() => import("./glide-data-editor-
|
|
10537
|
-
initialValue:
|
|
10538
|
-
rowIdx:
|
|
10536
|
+
var HC = J.lazy(() => import("./glide-data-editor-BIYjd9hQ.js").then((e) => e.t)), UC = wS("marimo-data-editor", { cssStyles: [qS] }).withData(G({
|
|
10537
|
+
initialValue: G({ edits: H(G({
|
|
10538
|
+
rowIdx: W(),
|
|
10539
10539
|
columnId: U(),
|
|
10540
|
-
value:
|
|
10540
|
+
value: Ja()
|
|
10541
10541
|
})) }),
|
|
10542
10542
|
label: U().nullable(),
|
|
10543
|
-
data:
|
|
10543
|
+
data: Ho([U(), H(G({}).passthrough())]),
|
|
10544
10544
|
fieldTypes: gC.nullish(),
|
|
10545
|
-
columnNames:
|
|
10546
|
-
editableColumns:
|
|
10547
|
-
columnSizingMode:
|
|
10545
|
+
columnNames: H(U()).default([]),
|
|
10546
|
+
editableColumns: Ho([H(U()), Eo("all")]),
|
|
10547
|
+
columnSizingMode: Vo(["auto", "fit"]).default("auto")
|
|
10548
10548
|
})).withFunctions({}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(WC, {
|
|
10549
10549
|
data: e.data.data,
|
|
10550
10550
|
fieldTypes: e.data.fieldTypes,
|
|
@@ -10908,13 +10908,13 @@ fw.displayName = Ef.displayName;
|
|
|
10908
10908
|
//#region src/plugins/impl/MultiselectPlugin.tsx
|
|
10909
10909
|
var pw = class {
|
|
10910
10910
|
tagName = "marimo-multiselect";
|
|
10911
|
-
validator =
|
|
10912
|
-
initialValue:
|
|
10911
|
+
validator = G({
|
|
10912
|
+
initialValue: H(U()),
|
|
10913
10913
|
label: U().nullable(),
|
|
10914
|
-
options:
|
|
10915
|
-
fullWidth:
|
|
10916
|
-
maxSelections:
|
|
10917
|
-
disabled:
|
|
10914
|
+
options: H(U()),
|
|
10915
|
+
fullWidth: K().default(!1),
|
|
10916
|
+
maxSelections: W().optional(),
|
|
10917
|
+
disabled: K().default(!1)
|
|
10918
10918
|
});
|
|
10919
10919
|
render(e) {
|
|
10920
10920
|
return /* @__PURE__ */ (0, Y.jsx)(mw, {
|
|
@@ -10958,9 +10958,9 @@ function hw(e) {
|
|
|
10958
10958
|
//#endregion
|
|
10959
10959
|
//#region src/components/editor/cell/useAddCell.ts
|
|
10960
10960
|
function gw() {
|
|
10961
|
-
let e = (0, X.c)(4), t = ns(cs), n =
|
|
10961
|
+
let e = (0, X.c)(4), t = ns(cs), n = De(), { createNewCell: r } = Dt(), i;
|
|
10962
10962
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
10963
|
-
e.includes("alt") &&
|
|
10963
|
+
e.includes("alt") && ke({
|
|
10964
10964
|
autoInstantiate: t,
|
|
10965
10965
|
createNewCell: r,
|
|
10966
10966
|
fromCellId: n
|
|
@@ -12315,7 +12315,7 @@ var Tw = (e) => {
|
|
|
12315
12315
|
}), t[3] = r, t[4] = a), a;
|
|
12316
12316
|
}, Ew = (e) => {
|
|
12317
12317
|
let t = (0, X.c)(9), n = e.hidden ? "Show code" : "Hide code", r = e.hidden ? "Show code" : "Hide code", i;
|
|
12318
|
-
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(
|
|
12318
|
+
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(Ct, {
|
|
12319
12319
|
size: 14,
|
|
12320
12320
|
strokeWidth: 1.5
|
|
12321
12321
|
}) : /* @__PURE__ */ (0, Y.jsx)(nr, {
|
|
@@ -12370,7 +12370,7 @@ var kw = (e) => {
|
|
|
12370
12370
|
let t = (0, X.c)(5), { text: n, tooltip: r } = e, i;
|
|
12371
12371
|
t[0] === r ? i = t[1] : (i = r && /* @__PURE__ */ (0, Y.jsx)(pe, {
|
|
12372
12372
|
content: r,
|
|
12373
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12373
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ge, { className: "w-3 h-3 mt-0.5" })
|
|
12374
12374
|
}), t[0] = r, t[1] = i);
|
|
12375
12375
|
let a;
|
|
12376
12376
|
return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ (0, Y.jsxs)("h2", {
|
|
@@ -12745,7 +12745,7 @@ var kw = (e) => {
|
|
|
12745
12745
|
open: o,
|
|
12746
12746
|
onOpenChange: s,
|
|
12747
12747
|
children: [/* @__PURE__ */ (0, Y.jsx)(ki, { children: /* @__PURE__ */ (0, Y.jsx)(Si, { placeholder: "Select an option" }) }), /* @__PURE__ */ (0, Y.jsx)(Ei, { children: /* @__PURE__ */ (0, Y.jsx)(Oi, { children: Rt.map((e) => {
|
|
12748
|
-
let t =
|
|
12748
|
+
let t = $e[e], n = e === "string" ? "categorical" : e;
|
|
12749
12749
|
return /* @__PURE__ */ (0, Y.jsx)(Ci, {
|
|
12750
12750
|
value: e,
|
|
12751
12751
|
className: "flex flex-col items-start justify-center",
|
|
@@ -12868,7 +12868,7 @@ var kw = (e) => {
|
|
|
12868
12868
|
};
|
|
12869
12869
|
function Qw(e) {
|
|
12870
12870
|
if (e.name.trim() === "") return null;
|
|
12871
|
-
let t =
|
|
12871
|
+
let t = $e[e.type];
|
|
12872
12872
|
return /* @__PURE__ */ (0, Y.jsx)(Ci, {
|
|
12873
12873
|
value: e.name,
|
|
12874
12874
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
@@ -13315,7 +13315,7 @@ var CT = () => {
|
|
|
13315
13315
|
p,
|
|
13316
13316
|
/* @__PURE__ */ (0, Y.jsxs)("p", {
|
|
13317
13317
|
className: "text-xs",
|
|
13318
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13318
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ge, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
|
|
13319
13319
|
})
|
|
13320
13320
|
] })]
|
|
13321
13321
|
}), e[12] = m) : m = e[12];
|
|
@@ -13515,63 +13515,63 @@ var OT = () => {
|
|
|
13515
13515
|
className: "mt-14",
|
|
13516
13516
|
children: "Loading chart..."
|
|
13517
13517
|
}), e[0] = t) : t = e[0], t;
|
|
13518
|
-
}, MT =
|
|
13519
|
-
binned:
|
|
13520
|
-
step:
|
|
13521
|
-
maxbins:
|
|
13522
|
-
}), NT =
|
|
13518
|
+
}, MT = G({
|
|
13519
|
+
binned: K().optional(),
|
|
13520
|
+
step: W().optional(),
|
|
13521
|
+
maxbins: W().optional()
|
|
13522
|
+
}), NT = G({
|
|
13523
13523
|
field: U().optional(),
|
|
13524
|
-
type:
|
|
13525
|
-
selectedDataType:
|
|
13526
|
-
sort:
|
|
13527
|
-
timeUnit:
|
|
13528
|
-
}), PT = NT.extend({ aggregate:
|
|
13529
|
-
linkYAxis:
|
|
13530
|
-
binned:
|
|
13531
|
-
maxbins:
|
|
13524
|
+
type: Vo([...$S, ""]).catch("unknown").optional(),
|
|
13525
|
+
selectedDataType: Vo([...Rt, ""]).optional(),
|
|
13526
|
+
sort: Vo(qt).default("ascending").optional(),
|
|
13527
|
+
timeUnit: Vo(Vt).optional()
|
|
13528
|
+
}), PT = NT.extend({ aggregate: Vo(It).default(Zt).optional() }), FT = NT.extend({
|
|
13529
|
+
linkYAxis: K().default(!0),
|
|
13530
|
+
binned: K().default(!0),
|
|
13531
|
+
maxbins: W().default(6)
|
|
13532
13532
|
}), IT = NT.extend({
|
|
13533
|
-
linkXAxis:
|
|
13534
|
-
binned:
|
|
13535
|
-
maxbins:
|
|
13536
|
-
}), LT =
|
|
13537
|
-
general:
|
|
13533
|
+
linkXAxis: K().default(!0),
|
|
13534
|
+
binned: K().default(!0),
|
|
13535
|
+
maxbins: W().default(6)
|
|
13536
|
+
}), LT = G({
|
|
13537
|
+
general: G({
|
|
13538
13538
|
title: U().optional(),
|
|
13539
13539
|
xColumn: PT.optional(),
|
|
13540
13540
|
yColumn: PT.optional(),
|
|
13541
13541
|
colorByColumn: PT.optional(),
|
|
13542
|
-
facet:
|
|
13542
|
+
facet: G({
|
|
13543
13543
|
row: FT,
|
|
13544
13544
|
column: IT
|
|
13545
13545
|
}).optional(),
|
|
13546
|
-
horizontal:
|
|
13547
|
-
stacking:
|
|
13546
|
+
horizontal: K().optional(),
|
|
13547
|
+
stacking: K().optional()
|
|
13548
13548
|
}).optional(),
|
|
13549
|
-
xAxis:
|
|
13549
|
+
xAxis: G({
|
|
13550
13550
|
label: U().optional(),
|
|
13551
|
-
width:
|
|
13551
|
+
width: W().optional(),
|
|
13552
13552
|
bin: MT.optional()
|
|
13553
13553
|
}).optional(),
|
|
13554
|
-
yAxis:
|
|
13554
|
+
yAxis: G({
|
|
13555
13555
|
label: U().optional(),
|
|
13556
|
-
height:
|
|
13556
|
+
height: W().optional(),
|
|
13557
13557
|
bin: MT.optional()
|
|
13558
13558
|
}).optional(),
|
|
13559
|
-
color:
|
|
13560
|
-
field:
|
|
13559
|
+
color: G({
|
|
13560
|
+
field: Vo([...Yt, Zt]).default(Zt),
|
|
13561
13561
|
scheme: U().default(Nt).optional(),
|
|
13562
|
-
range:
|
|
13563
|
-
domain:
|
|
13562
|
+
range: H(U()).optional(),
|
|
13563
|
+
domain: H(U()).optional(),
|
|
13564
13564
|
bin: MT.optional()
|
|
13565
13565
|
}).optional(),
|
|
13566
|
-
style:
|
|
13567
|
-
innerRadius:
|
|
13568
|
-
gridLines:
|
|
13566
|
+
style: G({
|
|
13567
|
+
innerRadius: W().optional(),
|
|
13568
|
+
gridLines: K().optional()
|
|
13569
13569
|
}).optional(),
|
|
13570
|
-
tooltips:
|
|
13571
|
-
auto:
|
|
13572
|
-
fields: G(
|
|
13570
|
+
tooltips: G({
|
|
13571
|
+
auto: K(),
|
|
13572
|
+
fields: H(G({
|
|
13573
13573
|
field: U(),
|
|
13574
|
-
type:
|
|
13574
|
+
type: Vo($S).catch("unknown")
|
|
13575
13575
|
}))
|
|
13576
13576
|
}).default({
|
|
13577
13577
|
auto: !0,
|
|
@@ -13604,11 +13604,11 @@ function RT() {
|
|
|
13604
13604
|
}
|
|
13605
13605
|
//#endregion
|
|
13606
13606
|
//#region src/components/data-table/charts/storage.ts
|
|
13607
|
-
var zT = "marimo:charts:v2", BT =
|
|
13607
|
+
var zT = "marimo:charts:v2", BT = G({
|
|
13608
13608
|
tabName: U().transform((e) => e),
|
|
13609
13609
|
chartType: U().transform((e) => e),
|
|
13610
13610
|
config: LT
|
|
13611
|
-
}), VT =
|
|
13611
|
+
}), VT = H(so([U().transform((e) => e), H(BT)])), HT = new Se(zT, VT, () => []), UT = {
|
|
13612
13612
|
getItem: (e) => {
|
|
13613
13613
|
try {
|
|
13614
13614
|
let t = HT.get(e);
|
|
@@ -13623,7 +13623,7 @@ var zT = "marimo:charts:v2", BT = W({
|
|
|
13623
13623
|
removeItem: (e) => {
|
|
13624
13624
|
HT.remove(e);
|
|
13625
13625
|
}
|
|
13626
|
-
}, WT =
|
|
13626
|
+
}, WT = qe(zT, /* @__PURE__ */ new Map(), UT);
|
|
13627
13627
|
function GT(e, t) {
|
|
13628
13628
|
let n = Mi(t);
|
|
13629
13629
|
return e === 0 ? `${n} Chart` : `${n} Chart ${e + 1}`;
|
|
@@ -13875,7 +13875,7 @@ var eE = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13875
13875
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsxs)(jn, {
|
|
13876
13876
|
value: "data",
|
|
13877
13877
|
className: "w-1/2 h-6",
|
|
13878
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13878
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ye, { className: "w-4 h-4 mr-2" }), "Data"]
|
|
13879
13879
|
}), t[10] = f) : f = t[10];
|
|
13880
13880
|
let p;
|
|
13881
13881
|
t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, Y.jsxs)(kn, {
|
|
@@ -13883,7 +13883,7 @@ var eE = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13883
13883
|
children: [f, /* @__PURE__ */ (0, Y.jsxs)(jn, {
|
|
13884
13884
|
value: "style",
|
|
13885
13885
|
className: "w-1/2 h-6",
|
|
13886
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13886
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(rt, { className: "w-4 h-4 mr-2" }), "Style"]
|
|
13887
13887
|
})]
|
|
13888
13888
|
}), t[11] = p) : p = t[11];
|
|
13889
13889
|
let m;
|
|
@@ -13938,7 +13938,7 @@ function aE(e) {
|
|
|
13938
13938
|
//#endregion
|
|
13939
13939
|
//#region src/components/data-table/hooks/use-panel-ownership.ts
|
|
13940
13940
|
function oE(e, t) {
|
|
13941
|
-
let n = (0, X.c)(16), r = ns(D_), { focusCell: i } =
|
|
13941
|
+
let n = (0, X.c)(16), r = ns(D_), { focusCell: i } = it(), a = De(), [o, c] = is(T_), [l, u] = is(w_), [d, f] = is(E_), p = sE(e, t);
|
|
13942
13942
|
!t && r && (s.error("CellId is not found, defaulting to fixed mode"), r = !1);
|
|
13943
13943
|
let m = (e) => l === p && d && e === o, h = a === t, g = l && cE(l, t);
|
|
13944
13944
|
r && h && l !== p && !g && u(p);
|
|
@@ -13963,19 +13963,19 @@ function cE(e, t) {
|
|
|
13963
13963
|
}
|
|
13964
13964
|
//#endregion
|
|
13965
13965
|
//#region src/components/data-table/schemas.ts
|
|
13966
|
-
var lE =
|
|
13966
|
+
var lE = G({
|
|
13967
13967
|
geometry_column: U().nullish(),
|
|
13968
|
-
options:
|
|
13968
|
+
options: G({
|
|
13969
13969
|
separator: U().optional(),
|
|
13970
13970
|
encoding: U().optional(),
|
|
13971
|
-
ensure_ascii:
|
|
13971
|
+
ensure_ascii: K().optional()
|
|
13972
13972
|
}).optional()
|
|
13973
|
-
}), uE =
|
|
13973
|
+
}), uE = G({
|
|
13974
13974
|
url: U(),
|
|
13975
13975
|
filename: U(),
|
|
13976
13976
|
error: U().nullish(),
|
|
13977
|
-
missing_packages:
|
|
13978
|
-
code:
|
|
13977
|
+
missing_packages: H(U()).nullish(),
|
|
13978
|
+
code: Vo([
|
|
13979
13979
|
"geometry_required",
|
|
13980
13980
|
"invalid_geometry",
|
|
13981
13981
|
"invalid_metadata",
|
|
@@ -13985,30 +13985,30 @@ var lE = W({
|
|
|
13985
13985
|
"conversion_failed"
|
|
13986
13986
|
]).nullish(),
|
|
13987
13987
|
column: U().nullish()
|
|
13988
|
-
}), dE = HS.input(lE.extend({ format:
|
|
13988
|
+
}), dE = HS.input(lE.extend({ format: Vo([
|
|
13989
13989
|
"csv",
|
|
13990
13990
|
"json",
|
|
13991
13991
|
"parquet",
|
|
13992
13992
|
"tsv"
|
|
13993
|
-
]) })).output(uE), fE = HS.input(lE.extend({ format:
|
|
13994
|
-
geometry_columns: G(
|
|
13993
|
+
]) })).output(uE), fE = HS.input(lE.extend({ format: Eo("geojson") })).output(uE.extend({ code: Ho([uE.shape.code, Eo("missing_crs")]) })), pE = G({
|
|
13994
|
+
geometry_columns: H(G({
|
|
13995
13995
|
name: U(),
|
|
13996
|
-
encoding:
|
|
13996
|
+
encoding: Vo([
|
|
13997
13997
|
"objects",
|
|
13998
13998
|
"wkb",
|
|
13999
13999
|
"wkt",
|
|
14000
14000
|
"other"
|
|
14001
14001
|
]),
|
|
14002
|
-
crs:
|
|
14002
|
+
crs: Ho([U(), to(U(), Ja())]).nullable()
|
|
14003
14003
|
})),
|
|
14004
14004
|
primary_geometry_column: U().nullable(),
|
|
14005
14005
|
default_geometry_column: U().nullable(),
|
|
14006
|
-
formats:
|
|
14007
|
-
available:
|
|
14006
|
+
formats: to(U(), G({
|
|
14007
|
+
available: K(),
|
|
14008
14008
|
reason: U().nullable(),
|
|
14009
|
-
missing_packages:
|
|
14009
|
+
missing_packages: H(U())
|
|
14010
14010
|
}))
|
|
14011
|
-
}), mE = HS.input(
|
|
14011
|
+
}), mE = HS.input(G({})).output(pE);
|
|
14012
14012
|
//#endregion
|
|
14013
14013
|
//#region src/components/datasources/column-preview.tsx
|
|
14014
14014
|
function hE({ error: e, missingPackages: t, refetchPreview: n }) {
|
|
@@ -14030,7 +14030,7 @@ function gE({ stats: e, dataType: t, locale: n }) {
|
|
|
14030
14030
|
children: [
|
|
14031
14031
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
14032
14032
|
className: "text-xs min-w-[60px] capitalize",
|
|
14033
|
-
children:
|
|
14033
|
+
children: Et(e, t)
|
|
14034
14034
|
}),
|
|
14035
14035
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
14036
14036
|
className: "text-xs font-bold text-muted-foreground tracking-wide",
|
|
@@ -14072,9 +14072,9 @@ function vE(e, t) {
|
|
|
14072
14072
|
});
|
|
14073
14073
|
}
|
|
14074
14074
|
var yE = (e) => {
|
|
14075
|
-
let t = (0, X.c)(10), { chartCode: n } = e, r = ns(cs), i =
|
|
14075
|
+
let t = (0, X.c)(10), { chartCode: n } = e, r = ns(cs), i = De(), { createNewCell: a } = Dt(), o;
|
|
14076
14076
|
t[0] !== r || t[1] !== a || t[2] !== i ? (o = (e) => {
|
|
14077
|
-
e.includes("alt") &&
|
|
14077
|
+
e.includes("alt") && ke({
|
|
14078
14078
|
autoInstantiate: r,
|
|
14079
14079
|
createNewCell: a,
|
|
14080
14080
|
fromCellId: i
|
|
@@ -14134,7 +14134,7 @@ function bE({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
|
|
|
14134
14134
|
className: "gap-1",
|
|
14135
14135
|
disabled: f === 0,
|
|
14136
14136
|
onClick: () => a.toggleAllColumnsVisible(!0),
|
|
14137
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14137
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ct, { className: "w-3 h-3" }), "Show all"]
|
|
14138
14138
|
})
|
|
14139
14139
|
}), /* @__PURE__ */ (0, Y.jsx)(pe, {
|
|
14140
14140
|
content: "Hide all columns",
|
|
@@ -14217,7 +14217,7 @@ function xE({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
14217
14217
|
onClick: (e) => {
|
|
14218
14218
|
e.preventDefault(), e.stopPropagation(), t.toggleVisibility(!t.getIsVisible());
|
|
14219
14219
|
},
|
|
14220
|
-
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(
|
|
14220
|
+
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(Ct, {
|
|
14221
14221
|
className: "h-3 w-3",
|
|
14222
14222
|
strokeWidth: 2.5
|
|
14223
14223
|
}) : /* @__PURE__ */ (0, Y.jsx)(nr, {
|
|
@@ -14386,7 +14386,7 @@ var SE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14386
14386
|
});
|
|
14387
14387
|
if (n === 0) return /* @__PURE__ */ (0, Y.jsx)(TE, {
|
|
14388
14388
|
kind: "info",
|
|
14389
|
-
Icon:
|
|
14389
|
+
Icon: Ge,
|
|
14390
14390
|
message: "No rows selected"
|
|
14391
14391
|
});
|
|
14392
14392
|
if (!m) return /* @__PURE__ */ (0, Y.jsx)(jr, {
|
|
@@ -14555,16 +14555,16 @@ function AE(e, t) {
|
|
|
14555
14555
|
}
|
|
14556
14556
|
//#endregion
|
|
14557
14557
|
//#region src/plugins/impl/DataTablePlugin.tsx
|
|
14558
|
-
var jE =
|
|
14559
|
-
|
|
14558
|
+
var jE = Ho([
|
|
14559
|
+
W(),
|
|
14560
14560
|
To(),
|
|
14561
14561
|
U()
|
|
14562
|
-
]).nullable(), ME =
|
|
14563
|
-
total:
|
|
14564
|
-
nulls:
|
|
14565
|
-
unique:
|
|
14566
|
-
true:
|
|
14567
|
-
false:
|
|
14562
|
+
]).nullable(), ME = G({
|
|
14563
|
+
total: W().nullable(),
|
|
14564
|
+
nulls: W().nullable(),
|
|
14565
|
+
unique: W().nullable(),
|
|
14566
|
+
true: W().nullable(),
|
|
14567
|
+
false: W().nullable(),
|
|
14568
14568
|
min: jE,
|
|
14569
14569
|
max: jE,
|
|
14570
14570
|
std: jE,
|
|
@@ -14574,123 +14574,123 @@ var jE = eo([
|
|
|
14574
14574
|
p25: jE,
|
|
14575
14575
|
p75: jE,
|
|
14576
14576
|
p95: jE
|
|
14577
|
-
}), NE = G(
|
|
14578
|
-
bin_start:
|
|
14579
|
-
|
|
14577
|
+
}), NE = H(G({
|
|
14578
|
+
bin_start: Ho([
|
|
14579
|
+
W(),
|
|
14580
14580
|
U(),
|
|
14581
|
-
|
|
14581
|
+
go(Date)
|
|
14582
14582
|
]),
|
|
14583
|
-
bin_end:
|
|
14584
|
-
|
|
14583
|
+
bin_end: Ho([
|
|
14584
|
+
W(),
|
|
14585
14585
|
U(),
|
|
14586
|
-
|
|
14586
|
+
go(Date)
|
|
14587
14587
|
]),
|
|
14588
|
-
count:
|
|
14589
|
-
})), PE = G(
|
|
14588
|
+
count: W()
|
|
14589
|
+
})), PE = H(G({
|
|
14590
14590
|
value: U(),
|
|
14591
|
-
count:
|
|
14592
|
-
})), FE =
|
|
14593
|
-
initialValue:
|
|
14591
|
+
count: W()
|
|
14592
|
+
})), FE = to(U(), to(U(), U().nullable())).optional(), IE = wS("marimo-table").withData(G({
|
|
14593
|
+
initialValue: Ho([H(W()), H(G({
|
|
14594
14594
|
rowId: U(),
|
|
14595
14595
|
columnName: U()
|
|
14596
14596
|
}))]),
|
|
14597
14597
|
label: U().nullable(),
|
|
14598
|
-
data:
|
|
14599
|
-
rawData:
|
|
14600
|
-
totalRows:
|
|
14601
|
-
pagination:
|
|
14602
|
-
pageSize:
|
|
14603
|
-
selection:
|
|
14598
|
+
data: Ho([U(), H(G({}).passthrough())]),
|
|
14599
|
+
rawData: Ho([U(), H(qa({}))]).nullish(),
|
|
14600
|
+
totalRows: Ho([W(), Eo(Bn)]),
|
|
14601
|
+
pagination: K().default(!1),
|
|
14602
|
+
pageSize: W().default(10),
|
|
14603
|
+
selection: Vo([
|
|
14604
14604
|
"single",
|
|
14605
14605
|
"multi",
|
|
14606
14606
|
"single-cell",
|
|
14607
14607
|
"multi-cell"
|
|
14608
14608
|
]).nullable().default(null),
|
|
14609
|
-
showDownload:
|
|
14610
|
-
showFilters:
|
|
14611
|
-
showColumnSummaries:
|
|
14612
|
-
showDataTypes:
|
|
14613
|
-
showPageSizeSelector:
|
|
14614
|
-
showColumnExplorer:
|
|
14615
|
-
showRowExplorer:
|
|
14616
|
-
showChartBuilder:
|
|
14617
|
-
showSearch:
|
|
14609
|
+
showDownload: K().default(!1),
|
|
14610
|
+
showFilters: K().default(!1),
|
|
14611
|
+
showColumnSummaries: Ho([K(), Vo(["stats", "chart"])]).default(!0),
|
|
14612
|
+
showDataTypes: K().default(!0),
|
|
14613
|
+
showPageSizeSelector: K().default(!0),
|
|
14614
|
+
showColumnExplorer: K().default(!0),
|
|
14615
|
+
showRowExplorer: K().default(!0),
|
|
14616
|
+
showChartBuilder: K().default(!0),
|
|
14617
|
+
showSearch: K().default(!0),
|
|
14618
14618
|
rowHeaders: gC,
|
|
14619
|
-
freezeColumnsLeft:
|
|
14620
|
-
freezeColumnsRight:
|
|
14621
|
-
hiddenColumns:
|
|
14622
|
-
textJustifyColumns:
|
|
14619
|
+
freezeColumnsLeft: H(U()).optional(),
|
|
14620
|
+
freezeColumnsRight: H(U()).optional(),
|
|
14621
|
+
hiddenColumns: H(U()).optional(),
|
|
14622
|
+
textJustifyColumns: to(U(), Vo([
|
|
14623
14623
|
"left",
|
|
14624
14624
|
"center",
|
|
14625
14625
|
"right"
|
|
14626
14626
|
])).optional(),
|
|
14627
|
-
wrappedColumns:
|
|
14628
|
-
columnWidths:
|
|
14629
|
-
headerTooltip:
|
|
14627
|
+
wrappedColumns: H(U()).optional(),
|
|
14628
|
+
columnWidths: to(U(), W().int().positive()).optional(),
|
|
14629
|
+
headerTooltip: to(U(), U()).optional(),
|
|
14630
14630
|
fieldTypes: gC.nullish(),
|
|
14631
|
-
totalColumns:
|
|
14632
|
-
maxColumns:
|
|
14633
|
-
hasStableRowId:
|
|
14634
|
-
maxHeight:
|
|
14635
|
-
cellStyles:
|
|
14631
|
+
totalColumns: W(),
|
|
14632
|
+
maxColumns: Ho([W(), Eo("all")]).default("all"),
|
|
14633
|
+
hasStableRowId: K().default(!1),
|
|
14634
|
+
maxHeight: W().optional(),
|
|
14635
|
+
cellStyles: to(U(), to(U(), G({}).passthrough())).optional(),
|
|
14636
14636
|
hoverTemplate: U().optional(),
|
|
14637
14637
|
cellHoverTexts: FE,
|
|
14638
|
-
lazy:
|
|
14639
|
-
preload:
|
|
14638
|
+
lazy: K().default(!1),
|
|
14639
|
+
preload: K().default(!1)
|
|
14640
14640
|
})).withFunctions({
|
|
14641
14641
|
download_as: dE,
|
|
14642
14642
|
download_geojson: fE,
|
|
14643
14643
|
get_export_metadata: mE,
|
|
14644
|
-
get_column_summaries: HS.input(
|
|
14645
|
-
data:
|
|
14646
|
-
stats:
|
|
14647
|
-
bin_values:
|
|
14648
|
-
value_counts:
|
|
14649
|
-
show_charts:
|
|
14650
|
-
is_disabled:
|
|
14644
|
+
get_column_summaries: HS.input(qa({})).output(G({
|
|
14645
|
+
data: Ho([U(), H(qa({}))]).nullable(),
|
|
14646
|
+
stats: to(U(), ME),
|
|
14647
|
+
bin_values: to(U(), NE),
|
|
14648
|
+
value_counts: to(U(), PE),
|
|
14649
|
+
show_charts: K(),
|
|
14650
|
+
is_disabled: K().optional()
|
|
14651
14651
|
})),
|
|
14652
|
-
search: HS.input(
|
|
14653
|
-
sort: G(
|
|
14652
|
+
search: HS.input(G({
|
|
14653
|
+
sort: H(G({
|
|
14654
14654
|
by: U(),
|
|
14655
|
-
descending:
|
|
14655
|
+
descending: K()
|
|
14656
14656
|
})).optional(),
|
|
14657
14657
|
query: U().optional(),
|
|
14658
14658
|
filters: CC.optional(),
|
|
14659
|
-
page_number:
|
|
14660
|
-
page_size:
|
|
14661
|
-
max_columns:
|
|
14662
|
-
})).output(
|
|
14663
|
-
data:
|
|
14664
|
-
total_rows:
|
|
14665
|
-
cell_styles:
|
|
14659
|
+
page_number: W(),
|
|
14660
|
+
page_size: W(),
|
|
14661
|
+
max_columns: W().nullable().optional()
|
|
14662
|
+
})).output(G({
|
|
14663
|
+
data: Ho([U(), H(G({}).passthrough())]),
|
|
14664
|
+
total_rows: Ho([W(), Eo(Bn)]),
|
|
14665
|
+
cell_styles: to(U(), to(U(), G({}).passthrough())).nullable(),
|
|
14666
14666
|
cell_hover_texts: FE.nullable(),
|
|
14667
|
-
raw_data:
|
|
14667
|
+
raw_data: Ho([U(), H(qa({}))]).nullish()
|
|
14668
14668
|
})),
|
|
14669
|
-
get_row_ids: HS.input(
|
|
14670
|
-
row_ids:
|
|
14671
|
-
all_rows:
|
|
14669
|
+
get_row_ids: HS.input(G({}).passthrough()).output(G({
|
|
14670
|
+
row_ids: H(W()),
|
|
14671
|
+
all_rows: K(),
|
|
14672
14672
|
error: U().nullable()
|
|
14673
14673
|
})),
|
|
14674
|
-
get_data_url: HS.input(
|
|
14675
|
-
data_url:
|
|
14676
|
-
format:
|
|
14674
|
+
get_data_url: HS.input(G({}).passthrough()).output(G({
|
|
14675
|
+
data_url: Ho([U(), H(G({}).passthrough())]),
|
|
14676
|
+
format: Vo([
|
|
14677
14677
|
"csv",
|
|
14678
14678
|
"json",
|
|
14679
14679
|
"arrow"
|
|
14680
14680
|
])
|
|
14681
14681
|
})),
|
|
14682
|
-
calculate_top_k_rows: HS.input(
|
|
14682
|
+
calculate_top_k_rows: HS.input(G({
|
|
14683
14683
|
column: U(),
|
|
14684
|
-
k:
|
|
14685
|
-
})).output(
|
|
14686
|
-
preview_column: HS.input(
|
|
14684
|
+
k: W()
|
|
14685
|
+
})).output(G({ data: H(so([co(), W()])) })),
|
|
14686
|
+
preview_column: HS.input(G({ column: U() })).output(G({
|
|
14687
14687
|
chart_spec: U().nullable(),
|
|
14688
14688
|
chart_code: U().nullable(),
|
|
14689
14689
|
error: U().nullable(),
|
|
14690
|
-
missing_packages:
|
|
14690
|
+
missing_packages: H(U()).nullable(),
|
|
14691
14691
|
stats: ME.nullable()
|
|
14692
14692
|
})),
|
|
14693
|
-
get_size_bytes: HS.input(
|
|
14693
|
+
get_size_bytes: HS.input(G({})).output(G({ size_bytes: W().nullish() }))
|
|
14694
14694
|
}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(UE, { children: /* @__PURE__ */ (0, Y.jsx)(BE, {
|
|
14695
14695
|
isLazy: e.data.lazy,
|
|
14696
14696
|
preload: e.data.preload,
|
|
@@ -14714,8 +14714,8 @@ function zE(e, t) {
|
|
|
14714
14714
|
var BE = (e) => {
|
|
14715
14715
|
let t = (0, X.c)(13), { isLazy: n, children: r, preload: i, host: a } = e, o, s, c, l;
|
|
14716
14716
|
if (t[0] !== a || t[1] !== n || t[2] !== i) {
|
|
14717
|
-
let e = a.closest(`[${
|
|
14718
|
-
l = e ?
|
|
14717
|
+
let e = a.closest(`[${gt}]`);
|
|
14718
|
+
l = e ? Ce.parse(e) : null, o = a.closest(`[${Te}]`)?.getAttribute(Te), s = J.useState, c = n && !i && !RE(l, o), t[0] = a, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = l;
|
|
14719
14719
|
} else o = t[3], s = t[4], c = t[5], l = t[6];
|
|
14720
14720
|
let [u, d] = s(c);
|
|
14721
14721
|
if (u) {
|
|
@@ -14724,7 +14724,7 @@ var BE = (e) => {
|
|
|
14724
14724
|
zE(l, o), d(!1);
|
|
14725
14725
|
}, t[7] = o, t[8] = l, t[9] = e) : e = t[9];
|
|
14726
14726
|
let n;
|
|
14727
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(
|
|
14727
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(ut, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
|
|
14728
14728
|
let r;
|
|
14729
14729
|
return t[11] === e ? r = t[12] : (r = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
14730
14730
|
className: "flex h-20 items-center justify-center",
|
|
@@ -14739,7 +14739,7 @@ var BE = (e) => {
|
|
|
14739
14739
|
return r;
|
|
14740
14740
|
}, VE = (0, J.memo)((e) => {
|
|
14741
14741
|
let t = (0, X.c)(119), n;
|
|
14742
|
-
t[0] === e.host ? n = t[1] : (n =
|
|
14742
|
+
t[0] === e.host ? n = t[1] : (n = Ee(e.host), t[0] = e.host, t[1] = n);
|
|
14743
14743
|
let r = n, i = e.search, a = e.setValue, o;
|
|
14744
14744
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[2] = o) : o = t[2];
|
|
14745
14745
|
let [c, l] = (0, J.useState)(o), u;
|
|
@@ -14930,8 +14930,8 @@ var BE = (e) => {
|
|
|
14930
14930
|
rowHeaders: e.rowHeaders,
|
|
14931
14931
|
cellId: r
|
|
14932
14932
|
}) : we, t[105] = r, t[106] = we, t[107] = O?.rows, t[108] = y, t[109] = e.fieldTypes, t[110] = e.get_data_url, t[111] = e.rowHeaders, t[112] = e.showChartBuilder, t[113] = e.totalColumns, t[114] = e.totalRows, t[115] = Te) : Te = t[115];
|
|
14933
|
-
let
|
|
14934
|
-
return t[116] !== me || t[117] !== Te ? (
|
|
14933
|
+
let De;
|
|
14934
|
+
return t[116] !== me || t[117] !== Te ? (De = /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [me, Te] }), t[116] = me, t[117] = Te, t[118] = De) : De = t[118], De;
|
|
14935
14935
|
});
|
|
14936
14936
|
VE.displayName = "LoadingDataTableComponent";
|
|
14937
14937
|
var HE = (e) => {
|
|
@@ -15050,7 +15050,7 @@ var HE = (e) => {
|
|
|
15050
15050
|
}
|
|
15051
15051
|
}, t[48] = nt, t[49] = he, t[50] = k, t[51] = rt) : rt = t[51];
|
|
15052
15052
|
let it = ts(rt), at = he === "multi" || he === "single", ot = g && !!de, st;
|
|
15053
|
-
t[52] === Symbol.for("react.memo_cache_sentinel") ? (st =
|
|
15053
|
+
t[52] === Symbol.for("react.memo_cache_sentinel") ? (st = bo(), t[52] = st) : st = t[52];
|
|
15054
15054
|
let ct = st, lt;
|
|
15055
15055
|
t[53] === Symbol.for("react.memo_cache_sentinel") ? (lt = ss(), t[53] = lt) : lt = t[53];
|
|
15056
15056
|
let ut = lt, dt;
|
|
@@ -15237,14 +15237,14 @@ function XE(e) {
|
|
|
15237
15237
|
//#region src/plugins/impl/DatePickerPlugin.tsx
|
|
15238
15238
|
var ZE = class {
|
|
15239
15239
|
tagName = "marimo-date";
|
|
15240
|
-
validator =
|
|
15240
|
+
validator = G({
|
|
15241
15241
|
initialValue: U(),
|
|
15242
15242
|
label: U().nullable(),
|
|
15243
15243
|
start: U(),
|
|
15244
15244
|
stop: U(),
|
|
15245
15245
|
step: U().optional(),
|
|
15246
|
-
fullWidth:
|
|
15247
|
-
disabled:
|
|
15246
|
+
fullWidth: K().default(!1),
|
|
15247
|
+
disabled: K().optional()
|
|
15248
15248
|
});
|
|
15249
15249
|
render(e) {
|
|
15250
15250
|
return /* @__PURE__ */ (0, Y.jsx)(QE, {
|
|
@@ -15287,14 +15287,14 @@ var ZE = class {
|
|
|
15287
15287
|
}), t[16] = n, t[17] = e.fullWidth, t[18] = e.label, t[19] = f, t[20] = p) : p = t[20], p;
|
|
15288
15288
|
}, $E = class {
|
|
15289
15289
|
tagName = "marimo-date-range";
|
|
15290
|
-
validator =
|
|
15291
|
-
initialValue:
|
|
15290
|
+
validator = G({
|
|
15291
|
+
initialValue: so([U(), U()]),
|
|
15292
15292
|
label: U().nullable(),
|
|
15293
15293
|
start: U(),
|
|
15294
15294
|
stop: U(),
|
|
15295
15295
|
step: U().optional(),
|
|
15296
|
-
fullWidth:
|
|
15297
|
-
disabled:
|
|
15296
|
+
fullWidth: K().default(!1),
|
|
15297
|
+
disabled: K().optional()
|
|
15298
15298
|
});
|
|
15299
15299
|
render(e) {
|
|
15300
15300
|
return /* @__PURE__ */ (0, Y.jsx)(eD, {
|
|
@@ -15343,19 +15343,19 @@ var ZE = class {
|
|
|
15343
15343
|
}), t[21] = n, t[22] = e.fullWidth, t[23] = e.label, t[24] = m, t[25] = h) : h = t[25], h;
|
|
15344
15344
|
}, tD = class {
|
|
15345
15345
|
tagName = "marimo-datetime";
|
|
15346
|
-
validator =
|
|
15346
|
+
validator = G({
|
|
15347
15347
|
initialValue: U(),
|
|
15348
15348
|
label: U().nullable(),
|
|
15349
15349
|
start: U(),
|
|
15350
15350
|
stop: U(),
|
|
15351
15351
|
step: U().optional(),
|
|
15352
|
-
precision:
|
|
15352
|
+
precision: Vo([
|
|
15353
15353
|
"hour",
|
|
15354
15354
|
"minute",
|
|
15355
15355
|
"second"
|
|
15356
15356
|
]).default("minute"),
|
|
15357
|
-
fullWidth:
|
|
15358
|
-
disabled:
|
|
15357
|
+
fullWidth: K().default(!1),
|
|
15358
|
+
disabled: K().optional()
|
|
15359
15359
|
});
|
|
15360
15360
|
render(e) {
|
|
15361
15361
|
return /* @__PURE__ */ (0, Y.jsx)(nD, {
|
|
@@ -15397,9 +15397,9 @@ var ZE = class {
|
|
|
15397
15397
|
}), t[17] = n, t[18] = e.fullWidth, t[19] = e.label, t[20] = m, t[21] = h) : h = t[21], h;
|
|
15398
15398
|
}, rD = class {
|
|
15399
15399
|
tagName = "marimo-dict";
|
|
15400
|
-
validator =
|
|
15400
|
+
validator = G({
|
|
15401
15401
|
label: U().nullable(),
|
|
15402
|
-
elementIds:
|
|
15402
|
+
elementIds: to(U(), U())
|
|
15403
15403
|
});
|
|
15404
15404
|
render(e) {
|
|
15405
15405
|
return /* @__PURE__ */ (0, Y.jsx)(iD, {
|
|
@@ -15465,14 +15465,14 @@ function oD(e) {
|
|
|
15465
15465
|
//#region src/plugins/impl/DropdownPlugin.tsx
|
|
15466
15466
|
var sD = class {
|
|
15467
15467
|
tagName = "marimo-dropdown";
|
|
15468
|
-
validator =
|
|
15469
|
-
initialValue:
|
|
15468
|
+
validator = G({
|
|
15469
|
+
initialValue: H(U()),
|
|
15470
15470
|
label: U().nullable(),
|
|
15471
|
-
options:
|
|
15472
|
-
allowSelectNone:
|
|
15473
|
-
fullWidth:
|
|
15474
|
-
searchable:
|
|
15475
|
-
disabled:
|
|
15471
|
+
options: H(U()),
|
|
15472
|
+
allowSelectNone: K(),
|
|
15473
|
+
fullWidth: K().default(!1),
|
|
15474
|
+
searchable: K().default(!1),
|
|
15475
|
+
disabled: K().default(!1)
|
|
15476
15476
|
});
|
|
15477
15477
|
render(e) {
|
|
15478
15478
|
if (e.data.searchable) {
|
|
@@ -15529,7 +15529,7 @@ var sD = class {
|
|
|
15529
15529
|
fullWidth: s,
|
|
15530
15530
|
children: _
|
|
15531
15531
|
}), t[20] = s, t[21] = u, t[22] = n, t[23] = _, t[24] = v) : v = t[24], v;
|
|
15532
|
-
}, uD = J.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
15532
|
+
}, uD = J.lazy(() => import("./ConnectedDataExplorerComponent-DfG3PRaJ.js")), dD = wS("marimo-data-explorer").withData(G({
|
|
15533
15533
|
label: U().nullish(),
|
|
15534
15534
|
data: U()
|
|
15535
15535
|
})).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(uD, {
|
|
@@ -15541,7 +15541,7 @@ var sD = class {
|
|
|
15541
15541
|
too_many_values: !1
|
|
15542
15542
|
})), hD = (e) => {
|
|
15543
15543
|
let t = (0, X.c)(4), { type: n } = e, r;
|
|
15544
|
-
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, Y.jsx)(ku, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(ju, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(oi, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(li, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(
|
|
15544
|
+
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, Y.jsx)(ku, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(ju, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(oi, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(li, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(Qe, { size: 14 }), t[0] = n, t[1] = r);
|
|
15545
15545
|
let i = r, a;
|
|
15546
15546
|
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
15547
15547
|
className: "border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",
|
|
@@ -15604,8 +15604,8 @@ var sD = class {
|
|
|
15604
15604
|
}
|
|
15605
15605
|
}), _D = () => ({
|
|
15606
15606
|
isMatch: (e) => {
|
|
15607
|
-
if (e instanceof
|
|
15608
|
-
let t = e.element, n = t instanceof
|
|
15607
|
+
if (e instanceof Mo) {
|
|
15608
|
+
let t = e.element, n = t instanceof mo ? t.description : "", { special: r } = fh.parse(n || "");
|
|
15609
15609
|
return r === "column_id";
|
|
15610
15610
|
}
|
|
15611
15611
|
return !1;
|
|
@@ -15654,7 +15654,7 @@ var sD = class {
|
|
|
15654
15654
|
}), t[9] = r.control, t[10] = i, t[11] = d, t[12] = f) : f = t[12], f;
|
|
15655
15655
|
}, yD = () => ({
|
|
15656
15656
|
isMatch: (e) => {
|
|
15657
|
-
if (e instanceof
|
|
15657
|
+
if (e instanceof Mo) {
|
|
15658
15658
|
let { special: t } = fh.parse(e.description || "");
|
|
15659
15659
|
return t === "column_values";
|
|
15660
15660
|
}
|
|
@@ -15707,7 +15707,7 @@ var sD = class {
|
|
|
15707
15707
|
}), bD = () => ({
|
|
15708
15708
|
isMatch: (e) => {
|
|
15709
15709
|
let { special: t } = fh.parse(e.description || "");
|
|
15710
|
-
return t === "column_values" && e instanceof
|
|
15710
|
+
return t === "column_values" && e instanceof Mo;
|
|
15711
15711
|
},
|
|
15712
15712
|
Component: ({ schema: e, form: t, path: n }) => {
|
|
15713
15713
|
let r = J.use(pD), i = J.use(mD), { data: a, isPending: o } = Ms(() => i({ column: r }), [r]), s = a?.values || [];
|
|
@@ -15745,7 +15745,7 @@ var sD = class {
|
|
|
15745
15745
|
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ (0, Y.jsx)(Dh, { className: r }), t[2] = r, t[3] = i), i;
|
|
15746
15746
|
}, SD = () => ({
|
|
15747
15747
|
isMatch: (e) => {
|
|
15748
|
-
if (e instanceof
|
|
15748
|
+
if (e instanceof xo) {
|
|
15749
15749
|
let { special: t } = fh.parse(e.description || "");
|
|
15750
15750
|
return t === "column_filter";
|
|
15751
15751
|
}
|
|
@@ -16019,7 +16019,7 @@ var kD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
16019
16019
|
"to automatically apply transformations."
|
|
16020
16020
|
] })]
|
|
16021
16021
|
}),
|
|
16022
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
16022
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ge, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
|
|
16023
16023
|
})]
|
|
16024
16024
|
})
|
|
16025
16025
|
]
|
|
@@ -16114,7 +16114,7 @@ var kD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
16114
16114
|
}), t[9] = i, t[10] = l, t[11] = u) : u = t[11], u;
|
|
16115
16115
|
}, MD = {
|
|
16116
16116
|
aggregate: At,
|
|
16117
|
-
column_conversion:
|
|
16117
|
+
column_conversion: mt,
|
|
16118
16118
|
filter_rows: xr,
|
|
16119
16119
|
group_by: Gu,
|
|
16120
16120
|
rename_column: Ia,
|
|
@@ -16125,20 +16125,20 @@ var kD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
16125
16125
|
explode_columns: Au,
|
|
16126
16126
|
expand_dict: Iu,
|
|
16127
16127
|
unique: Pu,
|
|
16128
|
-
pivot:
|
|
16128
|
+
pivot: ut
|
|
16129
16129
|
};
|
|
16130
16130
|
function ND(e) {
|
|
16131
16131
|
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
|
|
16132
16132
|
}
|
|
16133
16133
|
//#endregion
|
|
16134
16134
|
//#region src/plugins/impl/data-frames/DataFramePlugin.tsx
|
|
16135
|
-
var PD = wS("marimo-dataframe").withData(
|
|
16135
|
+
var PD = wS("marimo-dataframe").withData(G({
|
|
16136
16136
|
label: U().nullish(),
|
|
16137
|
-
pageSize:
|
|
16138
|
-
showDownload:
|
|
16137
|
+
pageSize: W().default(5),
|
|
16138
|
+
showDownload: K().default(!0),
|
|
16139
16139
|
dataframeName: U().optional(),
|
|
16140
|
-
columns:
|
|
16141
|
-
U().or(
|
|
16140
|
+
columns: H(so([
|
|
16141
|
+
U().or(W()),
|
|
16142
16142
|
U(),
|
|
16143
16143
|
U()
|
|
16144
16144
|
])).transform((e) => {
|
|
@@ -16147,38 +16147,38 @@ var PD = wS("marimo-dataframe").withData(W({
|
|
|
16147
16147
|
t.set(e, n);
|
|
16148
16148
|
}), t;
|
|
16149
16149
|
}),
|
|
16150
|
-
lazy:
|
|
16150
|
+
lazy: K().default(!1)
|
|
16151
16151
|
})).withFunctions({
|
|
16152
|
-
get_dataframe: HS.input(
|
|
16152
|
+
get_dataframe: HS.input(G({})).output(G({
|
|
16153
16153
|
url: U(),
|
|
16154
|
-
total_rows:
|
|
16154
|
+
total_rows: W(),
|
|
16155
16155
|
row_headers: gC,
|
|
16156
16156
|
field_types: gC,
|
|
16157
|
-
column_types_per_step:
|
|
16157
|
+
column_types_per_step: H(gC),
|
|
16158
16158
|
python_code: U().nullish(),
|
|
16159
16159
|
sql_code: U().nullish()
|
|
16160
16160
|
})),
|
|
16161
|
-
get_column_values: HS.input(
|
|
16162
|
-
values:
|
|
16163
|
-
too_many_values:
|
|
16161
|
+
get_column_values: HS.input(G({ column: U() })).output(G({
|
|
16162
|
+
values: H(co()),
|
|
16163
|
+
too_many_values: K()
|
|
16164
16164
|
})),
|
|
16165
|
-
search: HS.input(
|
|
16166
|
-
sort: G(
|
|
16165
|
+
search: HS.input(G({
|
|
16166
|
+
sort: H(G({
|
|
16167
16167
|
by: U(),
|
|
16168
|
-
descending:
|
|
16168
|
+
descending: K()
|
|
16169
16169
|
})).optional(),
|
|
16170
16170
|
query: U().optional(),
|
|
16171
16171
|
filters: CC.optional(),
|
|
16172
|
-
page_number:
|
|
16173
|
-
page_size:
|
|
16174
|
-
})).output(
|
|
16175
|
-
data:
|
|
16176
|
-
total_rows:
|
|
16172
|
+
page_number: W(),
|
|
16173
|
+
page_size: W()
|
|
16174
|
+
})).output(G({
|
|
16175
|
+
data: Ho([U(), H(G({}).passthrough())]),
|
|
16176
|
+
total_rows: W()
|
|
16177
16177
|
})),
|
|
16178
16178
|
download_as: dE,
|
|
16179
16179
|
download_geojson: fE,
|
|
16180
16180
|
get_export_metadata: mE,
|
|
16181
|
-
get_size_bytes: HS.input(
|
|
16181
|
+
get_size_bytes: HS.input(G({})).output(G({ size_bytes: W().nullish() }))
|
|
16182
16182
|
}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(UE, { children: /* @__PURE__ */ (0, Y.jsx)(ID, {
|
|
16183
16183
|
...e.data,
|
|
16184
16184
|
...e.functions,
|
|
@@ -16228,7 +16228,7 @@ var PD = wS("marimo-dataframe").withData(W({
|
|
|
16228
16228
|
t[20] === A ? ie = t[21] : (ie = A && /* @__PURE__ */ (0, Y.jsxs)(jn, {
|
|
16229
16229
|
value: "sql-code",
|
|
16230
16230
|
className: "text-xs py-1",
|
|
16231
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16231
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ye, { className: "w-3 h-3 mr-2" }), "SQL Code"]
|
|
16232
16232
|
}), t[20] = A, t[21] = ie);
|
|
16233
16233
|
let ae;
|
|
16234
16234
|
t[22] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ (0, Y.jsx)("div", { className: "grow" }), t[22] = ae) : ae = t[22];
|
|
@@ -16405,12 +16405,12 @@ var BD = {
|
|
|
16405
16405
|
python: Lu,
|
|
16406
16406
|
code: Lu,
|
|
16407
16407
|
json: Iu,
|
|
16408
|
-
text:
|
|
16408
|
+
text: ct,
|
|
16409
16409
|
image: Ku,
|
|
16410
16410
|
audio: Ru,
|
|
16411
16411
|
video: zu,
|
|
16412
16412
|
data: Bu,
|
|
16413
|
-
pdf:
|
|
16413
|
+
pdf: ct,
|
|
16414
16414
|
zip: Vu,
|
|
16415
16415
|
unknown: Ea
|
|
16416
16416
|
};
|
|
@@ -16437,22 +16437,22 @@ function VD({ path: e, delimiter: t, initialPath: n, restrictNavigation: r }) {
|
|
|
16437
16437
|
}
|
|
16438
16438
|
//#endregion
|
|
16439
16439
|
//#region src/plugins/impl/FileBrowserPlugin.tsx
|
|
16440
|
-
var HD = wS("marimo-file-browser").withData(
|
|
16440
|
+
var HD = wS("marimo-file-browser").withData(G({
|
|
16441
16441
|
initialPath: U(),
|
|
16442
|
-
filetypes:
|
|
16442
|
+
filetypes: H(U()),
|
|
16443
16443
|
selectionMode: U(),
|
|
16444
|
-
multiple:
|
|
16444
|
+
multiple: K(),
|
|
16445
16445
|
label: U().nullable(),
|
|
16446
|
-
restrictNavigation:
|
|
16447
|
-
})).withFunctions({ list_directory: HS.input(
|
|
16448
|
-
files: G(
|
|
16446
|
+
restrictNavigation: K()
|
|
16447
|
+
})).withFunctions({ list_directory: HS.input(G({ path: U() })).output(G({
|
|
16448
|
+
files: H(G({
|
|
16449
16449
|
id: U(),
|
|
16450
16450
|
path: U(),
|
|
16451
16451
|
name: U(),
|
|
16452
|
-
is_directory:
|
|
16452
|
+
is_directory: K()
|
|
16453
16453
|
})),
|
|
16454
|
-
total_count:
|
|
16455
|
-
is_truncated:
|
|
16454
|
+
total_count: W(),
|
|
16455
|
+
is_truncated: K()
|
|
16456
16456
|
})) }).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(GD, {
|
|
16457
16457
|
...e.data,
|
|
16458
16458
|
...e.functions,
|
|
@@ -16497,7 +16497,7 @@ function WD(e) {
|
|
|
16497
16497
|
}), t[18] = a, t[19] = s), s;
|
|
16498
16498
|
}
|
|
16499
16499
|
var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i, label: a, restrictNavigation: o, list_directory: s, host: l }) => {
|
|
16500
|
-
let [u, d] = vn(n), [f, p] = (0, J.useState)(!1), [m, h] = (0, J.useState)(!1), [_, v] = (0, J.useState)(0), y = (0, J.useRef)([]), x = (0, J.useRef)(null), S = (0, J.useRef)(!1), C = l.closest(`[${
|
|
16500
|
+
let [u, d] = vn(n), [f, p] = (0, J.useState)(!1), [m, h] = (0, J.useState)(!1), [_, v] = (0, J.useState)(0), y = (0, J.useRef)([]), x = (0, J.useRef)(null), S = (0, J.useRef)(!1), C = l.closest(`[${Te}]`)?.getAttribute(Te), { data: w, error: E, isPending: D } = Ms(() => s({ path: u }), [
|
|
16501
16501
|
u,
|
|
16502
16502
|
C,
|
|
16503
16503
|
s
|
|
@@ -16529,7 +16529,7 @@ var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16529
16529
|
kind: "danger",
|
|
16530
16530
|
children: E.message
|
|
16531
16531
|
});
|
|
16532
|
-
let L =
|
|
16532
|
+
let L = Ve.guessDeliminator(n).deliminator, R = e.map((e) => /* @__PURE__ */ (0, Y.jsx)("li", { children: e.path }, e.id));
|
|
16533
16533
|
function z(e) {
|
|
16534
16534
|
if (f) return;
|
|
16535
16535
|
if (p(!0), e === UD) {
|
|
@@ -16537,7 +16537,7 @@ var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16537
16537
|
p(!1);
|
|
16538
16538
|
return;
|
|
16539
16539
|
}
|
|
16540
|
-
e =
|
|
16540
|
+
e = Me.dirname(u), e === "" && (e = L);
|
|
16541
16541
|
}
|
|
16542
16542
|
let t = e.length < n.length;
|
|
16543
16543
|
if (o && t) {
|
|
@@ -16567,7 +16567,7 @@ var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16567
16567
|
M.has(n) ? t(e.filter((e) => e.path !== n)) : t(i ? [...e, o] : [o]);
|
|
16568
16568
|
}
|
|
16569
16569
|
function ne() {
|
|
16570
|
-
t(e.filter((e) =>
|
|
16570
|
+
t(e.filter((e) => Me.dirname(e.path) !== u));
|
|
16571
16571
|
}
|
|
16572
16572
|
function re() {
|
|
16573
16573
|
let n = [];
|
|
@@ -16640,7 +16640,7 @@ var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16640
16640
|
}), V = ce.toReversed().map((e) => ({
|
|
16641
16641
|
path: e,
|
|
16642
16642
|
name: e === se ? se : e.split(L).findLast(Boolean) ?? e
|
|
16643
|
-
})), le = r === "all" ?
|
|
16643
|
+
})), le = r === "all" ? nt.of("file", "folder") : r === "directory" ? nt.of("folder") : nt.of("file");
|
|
16644
16644
|
return /* @__PURE__ */ (0, Y.jsxs)("div", { children: [
|
|
16645
16645
|
E && /* @__PURE__ */ (0, Y.jsx)(Ko, {
|
|
16646
16646
|
kind: "danger",
|
|
@@ -17999,7 +17999,7 @@ function YD(e, t, n) {
|
|
|
17999
17999
|
//#region ../node_modules/.pnpm/file-selector@2.1.2/node_modules/file-selector/dist/es2015/file-selector.js
|
|
18000
18000
|
var XD = [".DS_Store", "Thumbs.db"];
|
|
18001
18001
|
function ZD(e) {
|
|
18002
|
-
return
|
|
18002
|
+
return jo(this, void 0, void 0, function* () {
|
|
18003
18003
|
return eO(e) && QD(e.dataTransfer) ? rO(e.dataTransfer, e.type) : $D(e) ? tO(e) : Array.isArray(e) && e.every((e) => "getFile" in e && typeof e.getFile == "function") ? nO(e) : [];
|
|
18004
18004
|
});
|
|
18005
18005
|
}
|
|
@@ -18016,12 +18016,12 @@ function tO(e) {
|
|
|
18016
18016
|
return aO(e.target.files).map((e) => qD(e));
|
|
18017
18017
|
}
|
|
18018
18018
|
function nO(e) {
|
|
18019
|
-
return
|
|
18019
|
+
return jo(this, void 0, void 0, function* () {
|
|
18020
18020
|
return (yield Promise.all(e.map((e) => e.getFile()))).map((e) => qD(e));
|
|
18021
18021
|
});
|
|
18022
18022
|
}
|
|
18023
18023
|
function rO(e, t) {
|
|
18024
|
-
return
|
|
18024
|
+
return jo(this, void 0, void 0, function* () {
|
|
18025
18025
|
if (e.items) {
|
|
18026
18026
|
let n = aO(e.items).filter((e) => e.kind === "file");
|
|
18027
18027
|
return t === "drop" ? iO(sO(yield Promise.all(n.map(oO)))) : n;
|
|
@@ -18050,7 +18050,7 @@ function sO(e) {
|
|
|
18050
18050
|
return e.reduce((e, t) => [...e, ...Array.isArray(t) ? sO(t) : [t]], []);
|
|
18051
18051
|
}
|
|
18052
18052
|
function cO(e, t) {
|
|
18053
|
-
return
|
|
18053
|
+
return jo(this, void 0, void 0, function* () {
|
|
18054
18054
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
18055
18055
|
let t = yield e.getAsFileSystemHandle();
|
|
18056
18056
|
if (t === null) throw Error(`${e} is not a File`);
|
|
@@ -18065,7 +18065,7 @@ function cO(e, t) {
|
|
|
18065
18065
|
});
|
|
18066
18066
|
}
|
|
18067
18067
|
function lO(e) {
|
|
18068
|
-
return
|
|
18068
|
+
return jo(this, void 0, void 0, function* () {
|
|
18069
18069
|
return e.isDirectory ? uO(e) : dO(e);
|
|
18070
18070
|
});
|
|
18071
18071
|
}
|
|
@@ -18074,7 +18074,7 @@ function uO(e) {
|
|
|
18074
18074
|
return new Promise((e, n) => {
|
|
18075
18075
|
let r = [];
|
|
18076
18076
|
function i() {
|
|
18077
|
-
t.readEntries((t) =>
|
|
18077
|
+
t.readEntries((t) => jo(this, void 0, void 0, function* () {
|
|
18078
18078
|
if (t.length) {
|
|
18079
18079
|
let e = Promise.all(t.map(lO));
|
|
18080
18080
|
r.push(e), i();
|
|
@@ -18091,7 +18091,7 @@ function uO(e) {
|
|
|
18091
18091
|
});
|
|
18092
18092
|
}
|
|
18093
18093
|
function dO(e) {
|
|
18094
|
-
return
|
|
18094
|
+
return jo(this, void 0, void 0, function* () {
|
|
18095
18095
|
return new Promise((t, n) => {
|
|
18096
18096
|
e.file((n) => {
|
|
18097
18097
|
t(qD(n, e.fullPath));
|
|
@@ -18792,12 +18792,12 @@ function Ek() {}
|
|
|
18792
18792
|
//#region src/plugins/impl/FileUploadPlugin.tsx
|
|
18793
18793
|
var Dk = class {
|
|
18794
18794
|
tagName = "marimo-file";
|
|
18795
|
-
validator =
|
|
18796
|
-
filetypes:
|
|
18797
|
-
multiple:
|
|
18798
|
-
kind:
|
|
18795
|
+
validator = G({
|
|
18796
|
+
filetypes: H(U()),
|
|
18797
|
+
multiple: K(),
|
|
18798
|
+
kind: Vo(["button", "area"]),
|
|
18799
18799
|
label: U().nullable(),
|
|
18800
|
-
max_size:
|
|
18800
|
+
max_size: W()
|
|
18801
18801
|
});
|
|
18802
18802
|
render(e) {
|
|
18803
18803
|
return /* @__PURE__ */ (0, Y.jsx)(kk, {
|
|
@@ -19058,20 +19058,20 @@ function Fk(e) {
|
|
|
19058
19058
|
}
|
|
19059
19059
|
//#endregion
|
|
19060
19060
|
//#region src/plugins/impl/FormPlugin.tsx
|
|
19061
|
-
var Ik = wS("marimo-form").withData(
|
|
19061
|
+
var Ik = wS("marimo-form").withData(G({
|
|
19062
19062
|
label: U().nullable(),
|
|
19063
19063
|
elementId: U().transform((e) => e),
|
|
19064
|
-
bordered:
|
|
19065
|
-
loading:
|
|
19064
|
+
bordered: K().default(!0),
|
|
19065
|
+
loading: K().default(!1),
|
|
19066
19066
|
submitButtonLabel: U().default("Submit"),
|
|
19067
19067
|
submitButtonTooltip: U().optional(),
|
|
19068
|
-
submitButtonDisabled:
|
|
19069
|
-
clearOnSubmit:
|
|
19070
|
-
showClearButton:
|
|
19068
|
+
submitButtonDisabled: K().default(!1),
|
|
19069
|
+
clearOnSubmit: K().default(!1),
|
|
19070
|
+
showClearButton: K().default(!1),
|
|
19071
19071
|
clearButtonLabel: U().default("Clear"),
|
|
19072
19072
|
clearButtonTooltip: U().optional(),
|
|
19073
|
-
shouldValidate:
|
|
19074
|
-
})).withFunctions({ validate: HS.input(
|
|
19073
|
+
shouldValidate: K().optional()
|
|
19074
|
+
})).withFunctions({ validate: HS.input(G({ value: Ja() })).output(U().nullish()) }).renderer(({ data: e, functions: t, ...n }) => /* @__PURE__ */ (0, Y.jsx)(Rk, {
|
|
19075
19075
|
...e,
|
|
19076
19076
|
...n,
|
|
19077
19077
|
...t
|
|
@@ -19206,19 +19206,19 @@ function Bk(e) {
|
|
|
19206
19206
|
var Vk = ".marimo td.bracket-l:before{border-left:2px solid var(--foreground);content:\"\";pointer-events:none;width:0;position:absolute;top:0;bottom:0;left:-4px}.marimo td.bracket-l.bracket-t:before{border-top:2px solid var(--foreground);width:8px;top:-1px}.marimo td.bracket-l.bracket-b:before{border-bottom:2px solid var(--foreground);width:8px;bottom:-1px}.marimo td.bracket-r:after{border-right:2px solid var(--foreground);content:\"\";pointer-events:none;width:0;position:absolute;top:0;bottom:0;right:-4px}.marimo td.bracket-r.bracket-t:after{border-top:2px solid var(--foreground);width:8px;top:-1px}.marimo td.bracket-r.bracket-b:after{border-bottom:2px solid var(--foreground);width:8px;bottom:-1px}", Hk = class {
|
|
19207
19207
|
tagName = "marimo-matrix";
|
|
19208
19208
|
cssStyles = [Vk];
|
|
19209
|
-
validator =
|
|
19210
|
-
initialValue:
|
|
19209
|
+
validator = G({
|
|
19210
|
+
initialValue: H(H(W())),
|
|
19211
19211
|
label: U().nullable(),
|
|
19212
|
-
minValue:
|
|
19213
|
-
maxValue:
|
|
19214
|
-
step:
|
|
19215
|
-
precision:
|
|
19216
|
-
rowLabels:
|
|
19217
|
-
columnLabels:
|
|
19218
|
-
symmetric:
|
|
19219
|
-
debounce:
|
|
19220
|
-
scientific:
|
|
19221
|
-
disabled:
|
|
19212
|
+
minValue: H(H(W())).nullish(),
|
|
19213
|
+
maxValue: H(H(W())).nullish(),
|
|
19214
|
+
step: H(H(W())),
|
|
19215
|
+
precision: W(),
|
|
19216
|
+
rowLabels: H(U()).nullish(),
|
|
19217
|
+
columnLabels: H(U()).nullish(),
|
|
19218
|
+
symmetric: K(),
|
|
19219
|
+
debounce: K().default(!1),
|
|
19220
|
+
scientific: K(),
|
|
19221
|
+
disabled: H(H(K()))
|
|
19222
19222
|
});
|
|
19223
19223
|
render(e) {
|
|
19224
19224
|
return /* @__PURE__ */ (0, Y.jsx)(Jk, {
|
|
@@ -19560,7 +19560,7 @@ function rA(e) {
|
|
|
19560
19560
|
//#region src/plugins/impl/MicrophonePlugin.tsx
|
|
19561
19561
|
var iA = class {
|
|
19562
19562
|
tagName = "marimo-microphone";
|
|
19563
|
-
validator =
|
|
19563
|
+
validator = G({ label: U().nullish() });
|
|
19564
19564
|
render(e) {
|
|
19565
19565
|
return /* @__PURE__ */ (0, Y.jsx)(aA, { ...e });
|
|
19566
19566
|
}
|
|
@@ -20035,24 +20035,24 @@ var _A = class {
|
|
|
20035
20035
|
};
|
|
20036
20036
|
}, vA = class {
|
|
20037
20037
|
tagName = "marimo-matplotlib";
|
|
20038
|
-
validator =
|
|
20038
|
+
validator = G({
|
|
20039
20039
|
chartBase64: U(),
|
|
20040
|
-
xBounds:
|
|
20041
|
-
yBounds:
|
|
20042
|
-
axesPixelBounds:
|
|
20043
|
-
|
|
20044
|
-
|
|
20045
|
-
|
|
20046
|
-
|
|
20040
|
+
xBounds: so([W(), W()]),
|
|
20041
|
+
yBounds: so([W(), W()]),
|
|
20042
|
+
axesPixelBounds: so([
|
|
20043
|
+
W(),
|
|
20044
|
+
W(),
|
|
20045
|
+
W(),
|
|
20046
|
+
W()
|
|
20047
20047
|
]),
|
|
20048
|
-
width:
|
|
20049
|
-
height:
|
|
20048
|
+
width: W(),
|
|
20049
|
+
height: W(),
|
|
20050
20050
|
selectionColor: U().default("#3b82f6"),
|
|
20051
|
-
selectionOpacity:
|
|
20052
|
-
strokeWidth:
|
|
20053
|
-
debounce:
|
|
20054
|
-
xScale:
|
|
20055
|
-
yScale:
|
|
20051
|
+
selectionOpacity: W().default(.15),
|
|
20052
|
+
strokeWidth: W().default(2),
|
|
20053
|
+
debounce: K(),
|
|
20054
|
+
xScale: Vo(["linear", "log"]).default("linear"),
|
|
20055
|
+
yScale: Vo(["linear", "log"]).default("linear")
|
|
20056
20056
|
});
|
|
20057
20057
|
render(e) {
|
|
20058
20058
|
return /* @__PURE__ */ (0, Y.jsx)(yA, {
|
|
@@ -20101,12 +20101,12 @@ var _A = class {
|
|
|
20101
20101
|
close() {
|
|
20102
20102
|
this.readyState = WebSocket.CLOSED, this.onclose?.();
|
|
20103
20103
|
}
|
|
20104
|
-
}, xA = "mpl-interactive-figure", SA = wS("marimo-mpl-interactive").withData(
|
|
20104
|
+
}, xA = "mpl-interactive-figure", SA = wS("marimo-mpl-interactive").withData(G({
|
|
20105
20105
|
mplJsUrl: U(),
|
|
20106
20106
|
cssUrl: U(),
|
|
20107
|
-
toolbarImages:
|
|
20108
|
-
width:
|
|
20109
|
-
height:
|
|
20107
|
+
toolbarImages: to(U(), U()),
|
|
20108
|
+
width: W(),
|
|
20109
|
+
height: W()
|
|
20110
20110
|
})).withFunctions({}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(DA, { ...e })), CA = null;
|
|
20111
20111
|
async function wA(e) {
|
|
20112
20112
|
if (!window.mpl) {
|
|
@@ -20233,15 +20233,15 @@ var DA = (e) => {
|
|
|
20233
20233
|
});
|
|
20234
20234
|
}, OA = class {
|
|
20235
20235
|
tagName = "marimo-number";
|
|
20236
|
-
validator =
|
|
20237
|
-
initialValue:
|
|
20236
|
+
validator = G({
|
|
20237
|
+
initialValue: W().nullish(),
|
|
20238
20238
|
label: U().nullable(),
|
|
20239
|
-
start:
|
|
20240
|
-
stop:
|
|
20241
|
-
step:
|
|
20242
|
-
debounce:
|
|
20243
|
-
fullWidth:
|
|
20244
|
-
disabled:
|
|
20239
|
+
start: W().nullish(),
|
|
20240
|
+
stop: W().nullish(),
|
|
20241
|
+
step: W().optional(),
|
|
20242
|
+
debounce: K().default(!1),
|
|
20243
|
+
fullWidth: K().default(!1),
|
|
20244
|
+
disabled: K().optional()
|
|
20245
20245
|
});
|
|
20246
20246
|
render(e) {
|
|
20247
20247
|
return /* @__PURE__ */ (0, Y.jsx)(kA, {
|
|
@@ -20300,7 +20300,7 @@ function AA(e) {
|
|
|
20300
20300
|
}
|
|
20301
20301
|
//#endregion
|
|
20302
20302
|
//#region src/plugins/impl/panel/utils.ts
|
|
20303
|
-
var jA =
|
|
20303
|
+
var jA = G({ content: Ho([G({ type: Eo("ACK") }), U()]).nullable() });
|
|
20304
20304
|
function MA(e, t) {
|
|
20305
20305
|
if (Array.isArray(e)) return e.map((e) => MA(e, t));
|
|
20306
20306
|
if (e instanceof Map) {
|
|
@@ -20349,14 +20349,14 @@ var NA = class {
|
|
|
20349
20349
|
let e = this.buffer;
|
|
20350
20350
|
return this.buffer = [], e;
|
|
20351
20351
|
}
|
|
20352
|
-
}, PA = wS("marimo-panel").withData(
|
|
20352
|
+
}, PA = wS("marimo-panel").withData(G({
|
|
20353
20353
|
extensionUrl: U().nullable(),
|
|
20354
|
-
docs_json:
|
|
20355
|
-
render_json:
|
|
20356
|
-
})).withFunctions({ send_to_widget: HS.input(
|
|
20357
|
-
message:
|
|
20358
|
-
buffers:
|
|
20359
|
-
})).output(
|
|
20354
|
+
docs_json: to(U(), Ja()),
|
|
20355
|
+
render_json: G({ roots: to(U(), U()) }).catchall(Ja())
|
|
20356
|
+
})).withFunctions({ send_to_widget: HS.input(G({
|
|
20357
|
+
message: Ja(),
|
|
20358
|
+
buffers: H(U())
|
|
20359
|
+
})).output(zo().optional()) }).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(LA, { ...e }));
|
|
20360
20360
|
function FA() {
|
|
20361
20361
|
return window.Bokeh != null;
|
|
20362
20362
|
}
|
|
@@ -20767,9 +20767,9 @@ function bj(e) {
|
|
|
20767
20767
|
//#region src/plugins/impl/plotly/PlotlyPlugin.tsx
|
|
20768
20768
|
var xj = class {
|
|
20769
20769
|
tagName = "marimo-plotly";
|
|
20770
|
-
validator =
|
|
20771
|
-
figure:
|
|
20772
|
-
config:
|
|
20770
|
+
validator = G({
|
|
20771
|
+
figure: G({}).passthrough().transform((e) => e),
|
|
20772
|
+
config: G({}).passthrough()
|
|
20773
20773
|
});
|
|
20774
20774
|
render(e) {
|
|
20775
20775
|
return /* @__PURE__ */ (0, Y.jsx)(Cj, {
|
|
@@ -20914,12 +20914,12 @@ function Ej(e) {
|
|
|
20914
20914
|
//#region src/plugins/impl/RadioPlugin.tsx
|
|
20915
20915
|
var Dj = class {
|
|
20916
20916
|
tagName = "marimo-radio";
|
|
20917
|
-
validator =
|
|
20917
|
+
validator = G({
|
|
20918
20918
|
initialValue: U().nullable(),
|
|
20919
|
-
inline:
|
|
20919
|
+
inline: K().default(!1),
|
|
20920
20920
|
label: U().nullable(),
|
|
20921
|
-
options:
|
|
20922
|
-
disabled:
|
|
20921
|
+
options: H(U()),
|
|
20922
|
+
disabled: K().optional()
|
|
20923
20923
|
});
|
|
20924
20924
|
render(e) {
|
|
20925
20925
|
return /* @__PURE__ */ (0, Y.jsx)(Oj, {
|
|
@@ -21080,18 +21080,18 @@ kj.displayName = Ef.displayName;
|
|
|
21080
21080
|
//#region src/plugins/impl/RangeSliderPlugin.tsx
|
|
21081
21081
|
var Aj = class {
|
|
21082
21082
|
tagName = "marimo-range-slider";
|
|
21083
|
-
validator =
|
|
21084
|
-
initialValue:
|
|
21083
|
+
validator = G({
|
|
21084
|
+
initialValue: H(W()),
|
|
21085
21085
|
label: U().nullable(),
|
|
21086
|
-
start:
|
|
21087
|
-
stop:
|
|
21088
|
-
step:
|
|
21089
|
-
steps:
|
|
21090
|
-
debounce:
|
|
21091
|
-
orientation:
|
|
21092
|
-
showValue:
|
|
21093
|
-
fullWidth:
|
|
21094
|
-
disabled:
|
|
21086
|
+
start: W(),
|
|
21087
|
+
stop: W(),
|
|
21088
|
+
step: W().optional(),
|
|
21089
|
+
steps: H(W()).nullable(),
|
|
21090
|
+
debounce: K().default(!1),
|
|
21091
|
+
orientation: Vo(["horizontal", "vertical"]).default("horizontal"),
|
|
21092
|
+
showValue: K().default(!1),
|
|
21093
|
+
fullWidth: K().default(!1),
|
|
21094
|
+
disabled: K().optional()
|
|
21095
21095
|
});
|
|
21096
21096
|
render(e) {
|
|
21097
21097
|
let t = (t) => e.data.steps && e.data.steps.length > 0 ? e.data.steps[t] : t;
|
|
@@ -21265,9 +21265,9 @@ var Aj = class {
|
|
|
21265
21265
|
}
|
|
21266
21266
|
}), Fj = class {
|
|
21267
21267
|
tagName = "marimo-refresh";
|
|
21268
|
-
validator =
|
|
21269
|
-
options:
|
|
21270
|
-
defaultInterval:
|
|
21268
|
+
validator = G({
|
|
21269
|
+
options: H(Ho([Pj, W().min(Nj)])).default([]),
|
|
21270
|
+
defaultInterval: Ho([Pj, W().min(Nj)]).optional(),
|
|
21271
21271
|
label: U().nullable()
|
|
21272
21272
|
});
|
|
21273
21273
|
render(e) {
|
|
@@ -21319,19 +21319,19 @@ var Aj = class {
|
|
|
21319
21319
|
});
|
|
21320
21320
|
}, zj = class {
|
|
21321
21321
|
tagName = "marimo-slider";
|
|
21322
|
-
validator =
|
|
21323
|
-
initialValue:
|
|
21322
|
+
validator = G({
|
|
21323
|
+
initialValue: W(),
|
|
21324
21324
|
label: U().nullable(),
|
|
21325
|
-
start:
|
|
21326
|
-
stop:
|
|
21327
|
-
step:
|
|
21328
|
-
steps:
|
|
21329
|
-
debounce:
|
|
21330
|
-
orientation:
|
|
21331
|
-
showValue:
|
|
21332
|
-
fullWidth:
|
|
21333
|
-
includeInput:
|
|
21334
|
-
disabled:
|
|
21325
|
+
start: W(),
|
|
21326
|
+
stop: W(),
|
|
21327
|
+
step: W().optional(),
|
|
21328
|
+
steps: H(W()).nullable(),
|
|
21329
|
+
debounce: K().default(!1),
|
|
21330
|
+
orientation: Vo(["horizontal", "vertical"]).default("horizontal"),
|
|
21331
|
+
showValue: K().default(!1),
|
|
21332
|
+
fullWidth: K().default(!1),
|
|
21333
|
+
includeInput: K().default(!1),
|
|
21334
|
+
disabled: K().optional()
|
|
21335
21335
|
});
|
|
21336
21336
|
render(e) {
|
|
21337
21337
|
let t = (t) => {
|
|
@@ -21476,10 +21476,10 @@ var Hj = (e) => {
|
|
|
21476
21476
|
}), t[59] = p, t[60] = _, t[61] = n, t[62] = v, t[63] = ie, t[64] = A, t[65] = M, t[66] = ae) : ae = t[66], ae;
|
|
21477
21477
|
}, Uj = class {
|
|
21478
21478
|
tagName = "marimo-switch";
|
|
21479
|
-
validator =
|
|
21480
|
-
initialValue:
|
|
21479
|
+
validator = G({
|
|
21480
|
+
initialValue: K(),
|
|
21481
21481
|
label: U().nullable(),
|
|
21482
|
-
disabled:
|
|
21482
|
+
disabled: K().optional()
|
|
21483
21483
|
});
|
|
21484
21484
|
render(e) {
|
|
21485
21485
|
return /* @__PURE__ */ (0, Y.jsx)(Wj, { ...e });
|
|
@@ -21504,10 +21504,10 @@ var Hj = (e) => {
|
|
|
21504
21504
|
}), t[5] = i.label, t[6] = a, t[7] = o, t[8] = s) : s = t[8], s;
|
|
21505
21505
|
}, Gj = class {
|
|
21506
21506
|
tagName = "marimo-tabs";
|
|
21507
|
-
validator =
|
|
21508
|
-
tabs:
|
|
21507
|
+
validator = G({
|
|
21508
|
+
tabs: H(U()),
|
|
21509
21509
|
label: U().nullable(),
|
|
21510
|
-
orientation:
|
|
21510
|
+
orientation: Vo(["horizontal", "vertical"]).default("horizontal")
|
|
21511
21511
|
});
|
|
21512
21512
|
render(e) {
|
|
21513
21513
|
return /* @__PURE__ */ (0, Y.jsx)(Kj, {
|
|
@@ -21579,16 +21579,16 @@ function qj(e, t) {
|
|
|
21579
21579
|
//#region src/plugins/impl/TextAreaPlugin.tsx
|
|
21580
21580
|
var Jj = class {
|
|
21581
21581
|
tagName = "marimo-text-area";
|
|
21582
|
-
validator =
|
|
21582
|
+
validator = G({
|
|
21583
21583
|
initialValue: U(),
|
|
21584
21584
|
placeholder: U(),
|
|
21585
21585
|
label: U().nullable(),
|
|
21586
|
-
maxLength:
|
|
21587
|
-
minLength:
|
|
21588
|
-
disabled:
|
|
21589
|
-
debounce:
|
|
21590
|
-
rows:
|
|
21591
|
-
fullWidth:
|
|
21586
|
+
maxLength: W().optional(),
|
|
21587
|
+
minLength: W().optional(),
|
|
21588
|
+
disabled: K().optional(),
|
|
21589
|
+
debounce: Qa(Ho([K(), W()])),
|
|
21590
|
+
rows: W().default(4),
|
|
21591
|
+
fullWidth: K().default(!1)
|
|
21592
21592
|
});
|
|
21593
21593
|
render(e) {
|
|
21594
21594
|
return /* @__PURE__ */ (0, Y.jsx)(Yj, {
|
|
@@ -21692,25 +21692,25 @@ var Jj = class {
|
|
|
21692
21692
|
}), t[58] = e.fullWidth, t[59] = e.label, t[60] = d, t[61] = n, t[62] = f) : f = t[62], f;
|
|
21693
21693
|
}, Xj = "••••••••", Zj = class {
|
|
21694
21694
|
tagName = "marimo-text";
|
|
21695
|
-
validator =
|
|
21695
|
+
validator = G({
|
|
21696
21696
|
initialValue: U(),
|
|
21697
21697
|
placeholder: U(),
|
|
21698
21698
|
label: U().nullable(),
|
|
21699
|
-
kind:
|
|
21699
|
+
kind: Vo([
|
|
21700
21700
|
"text",
|
|
21701
21701
|
"password",
|
|
21702
21702
|
"email",
|
|
21703
21703
|
"url"
|
|
21704
21704
|
]).default("text"),
|
|
21705
|
-
maxLength:
|
|
21706
|
-
minLength:
|
|
21707
|
-
fullWidth:
|
|
21708
|
-
disabled:
|
|
21709
|
-
debounce:
|
|
21710
|
-
passwordHasValue:
|
|
21705
|
+
maxLength: W().optional(),
|
|
21706
|
+
minLength: W().optional(),
|
|
21707
|
+
fullWidth: K().default(!1),
|
|
21708
|
+
disabled: K().optional(),
|
|
21709
|
+
debounce: Qa(Ho([K(), W()])),
|
|
21710
|
+
passwordHasValue: K().optional()
|
|
21711
21711
|
});
|
|
21712
21712
|
render(e) {
|
|
21713
|
-
let t = e.data.kind === "password" ? e.host.closest(`[${
|
|
21713
|
+
let t = e.data.kind === "password" ? e.host.closest(`[${Te}]`)?.getAttribute(Te) : void 0;
|
|
21714
21714
|
return /* @__PURE__ */ (0, Y.jsx)(Qj, {
|
|
21715
21715
|
...e.data,
|
|
21716
21716
|
value: e.value,
|
|
@@ -21832,17 +21832,17 @@ function $j(e, t) {
|
|
|
21832
21832
|
}
|
|
21833
21833
|
//#endregion
|
|
21834
21834
|
//#region src/plugins/impl/vega/VegaPlugin.tsx
|
|
21835
|
-
var eM = J.lazy(() => import("./vega-component-
|
|
21835
|
+
var eM = J.lazy(() => import("./vega-component-DfcYgj-Y.js")), tM = class {
|
|
21836
21836
|
tagName = "marimo-vega";
|
|
21837
|
-
validator =
|
|
21838
|
-
spec:
|
|
21839
|
-
chartSelection:
|
|
21840
|
-
|
|
21841
|
-
|
|
21842
|
-
|
|
21837
|
+
validator = G({
|
|
21838
|
+
spec: G({}).passthrough().transform((e) => e),
|
|
21839
|
+
chartSelection: Ho([
|
|
21840
|
+
K(),
|
|
21841
|
+
Eo("point"),
|
|
21842
|
+
Eo("interval")
|
|
21843
21843
|
]).default(!0),
|
|
21844
|
-
fieldSelection:
|
|
21845
|
-
embedOptions:
|
|
21844
|
+
fieldSelection: Ho([K(), H(U())]).default(!0),
|
|
21845
|
+
embedOptions: G({}).passthrough().default({})
|
|
21846
21846
|
});
|
|
21847
21847
|
render(e) {
|
|
21848
21848
|
return /* @__PURE__ */ (0, Y.jsx)(eM, {
|
|
@@ -21853,10 +21853,10 @@ var eM = J.lazy(() => import("./vega-component-BeF9dfyO.js")), tM = class {
|
|
|
21853
21853
|
}
|
|
21854
21854
|
}, nM = class {
|
|
21855
21855
|
tagName = "marimo-accordion";
|
|
21856
|
-
validator =
|
|
21857
|
-
labels:
|
|
21858
|
-
multiple:
|
|
21859
|
-
expanded:
|
|
21856
|
+
validator = G({
|
|
21857
|
+
labels: H(U()),
|
|
21858
|
+
multiple: K(),
|
|
21859
|
+
expanded: H(U()).default([])
|
|
21860
21860
|
});
|
|
21861
21861
|
render(e) {
|
|
21862
21862
|
return /* @__PURE__ */ (0, Y.jsx)(rM, {
|
|
@@ -21925,7 +21925,7 @@ aM.displayName = "CalloutOutput";
|
|
|
21925
21925
|
//#region src/plugins/layout/CalloutPlugin.tsx
|
|
21926
21926
|
var oM = class {
|
|
21927
21927
|
tagName = "marimo-callout-output";
|
|
21928
|
-
validator =
|
|
21928
|
+
validator = G({
|
|
21929
21929
|
html: U(),
|
|
21930
21930
|
kind: PS,
|
|
21931
21931
|
title: U().optional()
|
|
@@ -21939,9 +21939,9 @@ var oM = class {
|
|
|
21939
21939
|
}
|
|
21940
21940
|
}, sM = ".marimo{--swiper-navigation-size:44px}.marimo .swiper-button-next,.marimo .swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute}.marimo :is(.marimo .swiper-button-next,.marimo .swiper-button-prev).swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.marimo :is(.marimo .swiper-button-next,.marimo .swiper-button-prev).swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.marimo .swiper-navigation-disabled :is(.marimo .swiper-button-next,.marimo .swiper-button-prev){display:none!important}:is(.marimo .swiper-button-next,.marimo .swiper-button-prev) .marimo ::slotted(svg),:is(.marimo .swiper-button-next,.marimo .swiper-button-prev) .marimo svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}.marimo .swiper-button-lock{display:none}.marimo .swiper-button-next,.marimo .swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.marimo .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.marimo .swiper-button-prev .marimo .swiper-navigation-icon,.marimo .swiper-button-prev .marimo ::slotted(.swiper-navigation-icon){transform:rotate(180deg)}.marimo .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.marimo .swiper-horizontal .marimo .swiper-button-next,.marimo .swiper-horizontal .marimo .swiper-button-prev,.marimo .swiper-horizontal .marimo~.swiper-button-next,.marimo .swiper-horizontal .marimo~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-next,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-next,.marimo :is(.marimo .swiper-horizontal)~.swiper-button-prev,.marimo .swiper-horizontal .marimo .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-prev,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-prev,.marimo :is(.marimo .swiper-horizontal)~.swiper-button-next,.marimo .swiper-horizontal .marimo .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}:is(.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-next,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-next,.marimo :is(.marimo .swiper-horizontal)~.swiper-button-prev,.marimo .swiper-horizontal .marimo .swiper-button-prev) .marimo .swiper-navigation-icon,:is(.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-next,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-next,.marimo :is(.marimo .swiper-horizontal)~.swiper-button-prev,.marimo .swiper-horizontal .marimo .swiper-button-prev) .marimo ::slotted(.swiper-navigation-icon){transform:rotate(180deg)}:is(.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-prev,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-prev) .marimo .swiper-navigation-icon,:is(.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-prev,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-prev) .marimo ::slotted(.swiper-navigation-icon){transform:rotate(0)}.marimo .swiper-vertical .marimo .swiper-button-next,.marimo .swiper-vertical .marimo .swiper-button-prev,.marimo .swiper-vertical .marimo~.swiper-button-next,.marimo .swiper-vertical .marimo~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.marimo .swiper-vertical .marimo .swiper-button-prev,.marimo .swiper-vertical .marimo~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px)}:is(.marimo .swiper-vertical .marimo .swiper-button-prev,.marimo .swiper-vertical .marimo~.swiper-button-prev) .marimo .swiper-navigation-icon,:is(.marimo .swiper-vertical .marimo .swiper-button-prev,.marimo .swiper-vertical .marimo~.swiper-button-prev) .marimo ::slotted(.swiper-navigation-icon){transform:rotate(-90deg)}.marimo .swiper-vertical .marimo .swiper-button-next,.marimo .swiper-vertical .marimo~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto}:is(.marimo .swiper-vertical .marimo .swiper-button-next,.marimo .swiper-vertical .marimo~.swiper-button-next) .marimo .swiper-navigation-icon,:is(.marimo .swiper-vertical .marimo .swiper-button-next,.marimo .swiper-vertical .marimo~.swiper-button-next) .marimo ::slotted(.swiper-navigation-icon){transform:rotate(90deg)}", cM = ".marimo .swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0)}.marimo :is(.marimo .swiper-pagination).swiper-pagination-hidden{opacity:0}.marimo :is(.marimo .swiper-pagination).swiper-pagination-disabled,.marimo .swiper-pagination-disabled>:is(.marimo .swiper-pagination){display:none!important}.marimo .swiper-horizontal>.swiper-pagination-bullets,.marimo .swiper-pagination-bullets.swiper-pagination-horizontal,.marimo .swiper-pagination-custom,.marimo .swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.marimo .swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet{position:relative;transform:scale(.33)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active,.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-main{transform:scale(1)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-prev{transform:scale(.66)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-next{transform:scale(.66)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.marimo .swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block}.marimo button:is(.marimo .swiper-pagination-bullet){appearance:none;box-shadow:none;border:none;margin:0;padding:0}.marimo .swiper-pagination-clickable :is(.marimo .swiper-pagination-bullet){cursor:pointer}.marimo :is(.marimo .swiper-pagination-bullet):only-child{display:none!important}.marimo .swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.marimo .swiper-pagination-vertical.swiper-pagination-bullets,.marimo .swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%)}:is(.marimo .swiper-pagination-vertical.swiper-pagination-bullets,.marimo .swiper-vertical>.swiper-pagination-bullets) .marimo .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.marimo :is(.marimo .swiper-pagination-vertical.swiper-pagination-bullets,.marimo .swiper-vertical>.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}.marimo :is(.marimo .swiper-pagination-vertical.swiper-pagination-bullets,.marimo .swiper-vertical>.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}:is(.marimo .swiper-horizontal>.swiper-pagination-bullets,.marimo .swiper-pagination-horizontal.swiper-pagination-bullets) .marimo .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.marimo :is(.marimo .swiper-horizontal>.swiper-pagination-bullets,.marimo .swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}.marimo :is(.marimo .swiper-horizontal>.swiper-pagination-bullets,.marimo .swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet{transition:transform .2s,left .2s}.marimo .swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.marimo .swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.marimo .swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.marimo .swiper-pagination-progressbar .marimo .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.marimo .swiper-rtl :is(.marimo .swiper-pagination-progressbar) .swiper-pagination-progressbar-fill{transform-origin:100% 0}.marimo :is(.marimo .swiper-pagination-progressbar).swiper-pagination-horizontal,.marimo :is(.marimo .swiper-pagination-progressbar).swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.marimo .swiper-horizontal>:is(.marimo .swiper-pagination-progressbar),.marimo .swiper-vertical>:is(.marimo .swiper-pagination-progressbar).swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}.marimo :is(.marimo .swiper-pagination-progressbar).swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.marimo :is(.marimo .swiper-pagination-progressbar).swiper-pagination-vertical,.marimo .swiper-horizontal>:is(.marimo .swiper-pagination-progressbar).swiper-pagination-progressbar-opposite,.marimo .swiper-vertical>:is(.marimo .swiper-pagination-progressbar){height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.marimo .swiper-pagination-lock{display:none}", lM = ".marimo .swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative}.marimo :is(.marimo .swiper-scrollbar).swiper-scrollbar-disabled,.marimo .swiper-scrollbar-disabled>:is(.marimo .swiper-scrollbar){display:none!important}.marimo :is(.marimo .swiper-scrollbar).swiper-scrollbar-horizontal,.marimo .swiper-horizontal>:is(.marimo .swiper-scrollbar){bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}.marimo :is(.marimo .swiper-scrollbar).swiper-scrollbar-vertical,.marimo .swiper-vertical>:is(.marimo .swiper-scrollbar){height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}.marimo .swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.marimo .swiper-scrollbar-cursor-drag{cursor:move}.marimo .swiper-scrollbar-lock{display:none}", uM = ".marimo .swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.marimo .swiper-virtual.swiper-css-mode .marimo .swiper-wrapper:after{content:\"\";pointer-events:none;position:absolute;top:0;left:0}.marimo .swiper-virtual.swiper-css-mode.swiper-horizontal .marimo .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.marimo .swiper-virtual.swiper-css-mode.swiper-vertical .marimo .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}", dM = ".marimo{--swiper-theme-color:#007aff}.marimo,.marimo .swiper{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.marimo .swiper{padding:0;list-style:none;overflow:hidden}.marimo .swiper-vertical>.swiper-wrapper{flex-direction:column}.marimo .swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.marimo .swiper-android .swiper-slide,.marimo .swiper-ios .swiper-slide,.marimo .swiper-wrapper{transform:translateZ(0)}.marimo .swiper-horizontal{touch-action:pan-y}.marimo .swiper-vertical{touch-action:pan-x}.marimo .swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.marimo .swiper-slide-invisible-blank{visibility:hidden}.marimo .swiper-autoheight,.marimo .swiper-autoheight .swiper-slide{height:auto}.marimo .swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.marimo .swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.marimo .swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.marimo .swiper-3d .swiper-wrapper{transform-style:preserve-3d}.marimo .swiper-3d{perspective:1200px}.marimo .swiper-3d .marimo .swiper-cube-shadow,.marimo .swiper-3d .marimo .swiper-slide{transform-style:preserve-3d}.marimo .swiper-css-mode .marimo>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.marimo :is(.marimo .swiper-css-mode .marimo>.swiper-wrapper)::-webkit-scrollbar{display:none}.marimo .swiper-css-mode .marimo>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.marimo :is(.marimo .swiper-css-mode).swiper-horizontal .marimo>.swiper-wrapper{scroll-snap-type:x mandatory}.marimo :is(.marimo .swiper-css-mode).swiper-horizontal .marimo>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.marimo :is(.marimo .swiper-css-mode).swiper-horizontal .marimo>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.marimo :is(.marimo .swiper-css-mode).swiper-vertical .marimo>.swiper-wrapper{scroll-snap-type:y mandatory}.marimo :is(.marimo .swiper-css-mode).swiper-vertical .marimo>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.marimo :is(.marimo .swiper-css-mode).swiper-vertical .marimo>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.marimo :is(.marimo .swiper-css-mode).swiper-free-mode .marimo>.swiper-wrapper{scroll-snap-type:none}.marimo :is(.marimo .swiper-css-mode).swiper-free-mode .marimo>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.marimo :is(.marimo .swiper-css-mode).swiper-centered .marimo>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.marimo :is(.marimo .swiper-css-mode).swiper-centered .marimo>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.marimo :is(.marimo .swiper-css-mode).swiper-centered.swiper-horizontal .marimo>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.marimo :is(.marimo .swiper-css-mode).swiper-centered.swiper-horizontal .marimo>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.marimo :is(.marimo .swiper-css-mode).swiper-centered.swiper-vertical .marimo>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.marimo :is(.marimo .swiper-css-mode).swiper-centered.swiper-vertical .marimo>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}.marimo .swiper-3d .marimo .swiper-slide-shadow,.marimo .swiper-3d .marimo .swiper-slide-shadow-bottom,.marimo .swiper-3d .marimo .swiper-slide-shadow-left,.marimo .swiper-3d .marimo .swiper-slide-shadow-right,.marimo .swiper-3d .marimo .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.marimo .swiper-3d .marimo .swiper-slide-shadow{background:#00000026}.marimo .swiper-3d .marimo .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.marimo .swiper-3d .marimo .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.marimo .swiper-3d .marimo .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.marimo .swiper-3d .marimo .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.marimo .swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}:is(.marimo .swiper-watch-progress .swiper-slide-visible,.marimo .swiper:not(.swiper-watch-progress)) .marimo .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.marimo .swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.marimo .swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}", fM = ".marimo .mo-slide-content{justify-content:center;width:100%;min-height:fit-content;display:flex}.marimo .mo-slide-content .marimo .output{max-width:100%;width:unset;margin:auto 0}.marimo .mo-slide-content .marimo>:only-child:has(>.output:only-child,>*>.output:only-child){flex:1}.marimo .mo-slide-content .marimo div:has(>marimo-ui-element>marimo-vega){flex:1;display:block!important}@media (width>=500px){.marimo .mo-slide-content .marimo div:has(>marimo-ui-element>marimo-vega){min-width:350px}}.marimo .mo-slides-notes-resize{background-color:#0000;outline:none;height:4px;transition:background-color .2s linear}.marimo .mo-slides-notes-resize:hover,.marimo .mo-slides-notes-resize[data-resize-handle-active]{background-color:var(--slate-11)}", pM = ".marimo{--swiper-theme-color:#007aff}.marimo,.marimo .swiper{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.marimo .swiper{padding:0;list-style:none;overflow:hidden}.marimo .swiper-vertical>.swiper-wrapper{flex-direction:column}.marimo .swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.marimo .swiper-android .swiper-slide,.marimo .swiper-ios .swiper-slide,.marimo .swiper-wrapper{transform:translateZ(0)}.marimo .swiper-horizontal{touch-action:pan-y}.marimo .swiper-vertical{touch-action:pan-x}.marimo .swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.marimo .swiper-slide-invisible-blank{visibility:hidden}.marimo .swiper-autoheight,.marimo .swiper-autoheight .swiper-slide{height:auto}.marimo .swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.marimo .swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.marimo .swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.marimo .swiper-3d .swiper-wrapper{transform-style:preserve-3d}.marimo .swiper-3d{perspective:1200px}.marimo .swiper-3d .marimo .swiper-cube-shadow,.marimo .swiper-3d .marimo .swiper-slide{transform-style:preserve-3d}.marimo .swiper-css-mode .marimo>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.marimo :is(.marimo .swiper-css-mode .marimo>.swiper-wrapper)::-webkit-scrollbar{display:none}.marimo .swiper-css-mode .marimo>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.marimo :is(.marimo .swiper-css-mode).swiper-horizontal .marimo>.swiper-wrapper{scroll-snap-type:x mandatory}.marimo :is(.marimo .swiper-css-mode).swiper-horizontal .marimo>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.marimo :is(.marimo .swiper-css-mode).swiper-horizontal .marimo>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.marimo :is(.marimo .swiper-css-mode).swiper-vertical .marimo>.swiper-wrapper{scroll-snap-type:y mandatory}.marimo :is(.marimo .swiper-css-mode).swiper-vertical .marimo>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.marimo :is(.marimo .swiper-css-mode).swiper-vertical .marimo>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.marimo :is(.marimo .swiper-css-mode).swiper-free-mode .marimo>.swiper-wrapper{scroll-snap-type:none}.marimo :is(.marimo .swiper-css-mode).swiper-free-mode .marimo>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.marimo :is(.marimo .swiper-css-mode).swiper-centered .marimo>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.marimo :is(.marimo .swiper-css-mode).swiper-centered .marimo>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.marimo :is(.marimo .swiper-css-mode).swiper-centered.swiper-horizontal .marimo>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.marimo :is(.marimo .swiper-css-mode).swiper-centered.swiper-horizontal .marimo>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.marimo :is(.marimo .swiper-css-mode).swiper-centered.swiper-vertical .marimo>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.marimo :is(.marimo .swiper-css-mode).swiper-centered.swiper-vertical .marimo>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}.marimo .swiper-3d .marimo .swiper-slide-shadow,.marimo .swiper-3d .marimo .swiper-slide-shadow-bottom,.marimo .swiper-3d .marimo .swiper-slide-shadow-left,.marimo .swiper-3d .marimo .swiper-slide-shadow-right,.marimo .swiper-3d .marimo .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.marimo .swiper-3d .marimo .swiper-slide-shadow{background:#00000026}.marimo .swiper-3d .marimo .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.marimo .swiper-3d .marimo .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.marimo .swiper-3d .marimo .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.marimo .swiper-3d .marimo .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.marimo .swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}:is(.marimo .swiper-watch-progress .swiper-slide-visible,.marimo .swiper:not(.swiper-watch-progress)) .marimo .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.marimo .swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.marimo .swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.marimo .swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.marimo .swiper-virtual.swiper-css-mode .marimo .swiper-wrapper:after{content:\"\";pointer-events:none;position:absolute;top:0;left:0}.marimo .swiper-virtual.swiper-css-mode.swiper-horizontal .marimo .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.marimo .swiper-virtual.swiper-css-mode.swiper-vertical .marimo .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}.marimo{--swiper-navigation-size:44px}.marimo .swiper-button-next,.marimo .swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute}.marimo :is(.marimo .swiper-button-next,.marimo .swiper-button-prev).swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.marimo :is(.marimo .swiper-button-next,.marimo .swiper-button-prev).swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.marimo .swiper-navigation-disabled :is(.marimo .swiper-button-next,.marimo .swiper-button-prev){display:none!important}:is(.marimo .swiper-button-next,.marimo .swiper-button-prev) .marimo ::slotted(svg),:is(.marimo .swiper-button-next,.marimo .swiper-button-prev) .marimo svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}.marimo .swiper-button-lock{display:none}.marimo .swiper-button-next,.marimo .swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.marimo .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.marimo .swiper-button-prev .marimo .swiper-navigation-icon,.marimo .swiper-button-prev .marimo ::slotted(.swiper-navigation-icon){transform:rotate(180deg)}.marimo .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.marimo .swiper-horizontal .marimo .swiper-button-next,.marimo .swiper-horizontal .marimo .swiper-button-prev,.marimo .swiper-horizontal .marimo~.swiper-button-next,.marimo .swiper-horizontal .marimo~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-next,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-next,.marimo :is(.marimo .swiper-horizontal)~.swiper-button-prev,.marimo .swiper-horizontal .marimo .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-prev,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-prev,.marimo :is(.marimo .swiper-horizontal)~.swiper-button-next,.marimo .swiper-horizontal .marimo .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}:is(.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-next,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-next,.marimo :is(.marimo .swiper-horizontal)~.swiper-button-prev,.marimo .swiper-horizontal .marimo .swiper-button-prev) .marimo .swiper-navigation-icon,:is(.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-next,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-next,.marimo :is(.marimo .swiper-horizontal)~.swiper-button-prev,.marimo .swiper-horizontal .marimo .swiper-button-prev) .marimo ::slotted(.swiper-navigation-icon){transform:rotate(180deg)}:is(.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-prev,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-prev) .marimo .swiper-navigation-icon,:is(.marimo :is(.marimo .swiper-horizontal).swiper-rtl .swiper-button-prev,.marimo :is(.marimo .swiper-horizontal).swiper-rtl~.swiper-button-prev) .marimo ::slotted(.swiper-navigation-icon){transform:rotate(0)}.marimo .swiper-vertical .marimo .swiper-button-next,.marimo .swiper-vertical .marimo .swiper-button-prev,.marimo .swiper-vertical .marimo~.swiper-button-next,.marimo .swiper-vertical .marimo~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.marimo .swiper-vertical .marimo .swiper-button-prev,.marimo .swiper-vertical .marimo~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px)}:is(.marimo .swiper-vertical .marimo .swiper-button-prev,.marimo .swiper-vertical .marimo~.swiper-button-prev) .marimo .swiper-navigation-icon,:is(.marimo .swiper-vertical .marimo .swiper-button-prev,.marimo .swiper-vertical .marimo~.swiper-button-prev) .marimo ::slotted(.swiper-navigation-icon){transform:rotate(-90deg)}.marimo .swiper-vertical .marimo .swiper-button-next,.marimo .swiper-vertical .marimo~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto}:is(.marimo .swiper-vertical .marimo .swiper-button-next,.marimo .swiper-vertical .marimo~.swiper-button-next) .marimo .swiper-navigation-icon,:is(.marimo .swiper-vertical .marimo .swiper-button-next,.marimo .swiper-vertical .marimo~.swiper-button-next) .marimo ::slotted(.swiper-navigation-icon){transform:rotate(90deg)}.marimo .swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0)}.marimo :is(.marimo .swiper-pagination).swiper-pagination-hidden{opacity:0}.marimo :is(.marimo .swiper-pagination).swiper-pagination-disabled,.marimo .swiper-pagination-disabled>:is(.marimo .swiper-pagination){display:none!important}.marimo .swiper-horizontal>.swiper-pagination-bullets,.marimo .swiper-pagination-bullets.swiper-pagination-horizontal,.marimo .swiper-pagination-custom,.marimo .swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.marimo .swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet{position:relative;transform:scale(.33)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active,.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-main{transform:scale(1)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-prev{transform:scale(.66)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-next{transform:scale(.66)}.marimo .swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.marimo .swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block}.marimo button:is(.marimo .swiper-pagination-bullet){appearance:none;box-shadow:none;border:none;margin:0;padding:0}.marimo .swiper-pagination-clickable :is(.marimo .swiper-pagination-bullet){cursor:pointer}.marimo :is(.marimo .swiper-pagination-bullet):only-child{display:none!important}.marimo .swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.marimo .swiper-pagination-vertical.swiper-pagination-bullets,.marimo .swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%)}:is(.marimo .swiper-pagination-vertical.swiper-pagination-bullets,.marimo .swiper-vertical>.swiper-pagination-bullets) .marimo .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.marimo :is(.marimo .swiper-pagination-vertical.swiper-pagination-bullets,.marimo .swiper-vertical>.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}.marimo :is(.marimo .swiper-pagination-vertical.swiper-pagination-bullets,.marimo .swiper-vertical>.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}:is(.marimo .swiper-horizontal>.swiper-pagination-bullets,.marimo .swiper-pagination-horizontal.swiper-pagination-bullets) .marimo .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.marimo :is(.marimo .swiper-horizontal>.swiper-pagination-bullets,.marimo .swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}.marimo :is(.marimo .swiper-horizontal>.swiper-pagination-bullets,.marimo .swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .marimo .swiper-pagination-bullet{transition:transform .2s,left .2s}.marimo .swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.marimo .swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.marimo .swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.marimo .swiper-pagination-progressbar .marimo .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.marimo .swiper-rtl :is(.marimo .swiper-pagination-progressbar) .swiper-pagination-progressbar-fill{transform-origin:100% 0}.marimo :is(.marimo .swiper-pagination-progressbar).swiper-pagination-horizontal,.marimo :is(.marimo .swiper-pagination-progressbar).swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.marimo .swiper-horizontal>:is(.marimo .swiper-pagination-progressbar),.marimo .swiper-vertical>:is(.marimo .swiper-pagination-progressbar).swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}.marimo :is(.marimo .swiper-pagination-progressbar).swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.marimo :is(.marimo .swiper-pagination-progressbar).swiper-pagination-vertical,.marimo .swiper-horizontal>:is(.marimo .swiper-pagination-progressbar).swiper-pagination-progressbar-opposite,.marimo .swiper-vertical>:is(.marimo .swiper-pagination-progressbar){height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.marimo .swiper-pagination-lock{display:none}.marimo .swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative}.marimo :is(.marimo .swiper-scrollbar).swiper-scrollbar-disabled,.marimo .swiper-scrollbar-disabled>:is(.marimo .swiper-scrollbar){display:none!important}.marimo :is(.marimo .swiper-scrollbar).swiper-scrollbar-horizontal,.marimo .swiper-horizontal>:is(.marimo .swiper-scrollbar){bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}.marimo :is(.marimo .swiper-scrollbar).swiper-scrollbar-vertical,.marimo .swiper-vertical>:is(.marimo .swiper-scrollbar){height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}.marimo .swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.marimo .swiper-scrollbar-cursor-drag{cursor:move}.marimo .swiper-scrollbar-lock{display:none}.marimo .mo-slides-theme{--swiper-theme-color:var(--primary);--swiper-pagination-color:var(--swiper-theme-color);--swiper-pagination-left:auto;--swiper-pagination-right:8px;--swiper-pagination-bottom:8px;--swiper-pagination-top:auto;--swiper-pagination-fraction-color:inherit;--swiper-pagination-progressbar-bg-color:#00000040;--swiper-pagination-progressbar-size:4px;--swiper-pagination-bullet-size:8px;--swiper-pagination-bullet-width:8px;--swiper-pagination-bullet-height:8px;--swiper-pagination-bullet-border-radius:50%;--swiper-pagination-bullet-inactive-color:#000;--swiper-pagination-bullet-inactive-opacity:.2;--swiper-pagination-bullet-opacity:1;--swiper-pagination-bullet-horizontal-gap:4px;--swiper-pagination-bullet-vertical-gap:6px}.marimo .mo-slides-theme .marimo .swiper-button-next,.marimo .mo-slides-theme .marimo .swiper-button-prev{opacity:0;--swiper-navigation-sides-offset:0;--swiper-navigation-size:20px;background-color:#0000001a;height:100%;margin-top:0;padding:0 15px;font-weight:900;transition:opacity .3s;top:0;bottom:0}.marimo :is(.marimo .mo-slides-theme .marimo .swiper-button-next,.marimo .mo-slides-theme .marimo .swiper-button-prev).swiper-button-disabled{opacity:0}.marimo :is(.marimo .mo-slides-theme .marimo .swiper-button-next,.marimo .mo-slides-theme .marimo .swiper-button-prev):hover:not(.swiper-button-disabled){opacity:1}@font-face{font-family:swiper-icons;font-style:normal;font-weight:400;src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\")}.marimo :host:host{display:initial}", mM = class {
|
|
21941
21941
|
tagName = "marimo-carousel";
|
|
21942
|
-
validator =
|
|
21942
|
+
validator = G({
|
|
21943
21943
|
index: U().nullish(),
|
|
21944
|
-
height:
|
|
21944
|
+
height: Ho([U(), W()]).nullish()
|
|
21945
21945
|
});
|
|
21946
21946
|
cssStyles = [
|
|
21947
21947
|
dM,
|
|
@@ -21959,13 +21959,13 @@ var oM = class {
|
|
|
21959
21959
|
children: e.children
|
|
21960
21960
|
});
|
|
21961
21961
|
}
|
|
21962
|
-
}, hM = J.lazy(() => import("./swiper-component-DKntyn8p.js")), gM = wS("marimo-download").withData(
|
|
21962
|
+
}, hM = J.lazy(() => import("./swiper-component-DKntyn8p.js")), gM = wS("marimo-download").withData(G({
|
|
21963
21963
|
data: U(),
|
|
21964
|
-
disabled:
|
|
21964
|
+
disabled: K().default(!1),
|
|
21965
21965
|
filename: U().nullish(),
|
|
21966
21966
|
label: U().nullish(),
|
|
21967
|
-
lazy:
|
|
21968
|
-
})).withFunctions({ load: HS.input(
|
|
21967
|
+
lazy: K().default(!1)
|
|
21968
|
+
})).withFunctions({ load: HS.input(G({})).output(G({
|
|
21969
21969
|
data: U(),
|
|
21970
21970
|
filename: U().nullish()
|
|
21971
21971
|
})) }).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(_M, {
|
|
@@ -22006,11 +22006,11 @@ var oM = class {
|
|
|
22006
22006
|
});
|
|
22007
22007
|
}, vM = J.lazy(() => import("./ImageComparisonComponent-uU8FSKZE.js")), yM = class {
|
|
22008
22008
|
tagName = "marimo-image-comparison";
|
|
22009
|
-
validator =
|
|
22009
|
+
validator = G({
|
|
22010
22010
|
beforeSrc: U(),
|
|
22011
22011
|
afterSrc: U(),
|
|
22012
|
-
value:
|
|
22013
|
-
direction:
|
|
22012
|
+
value: W().min(0).max(100).default(50),
|
|
22013
|
+
direction: Vo(["horizontal", "vertical"]).default("horizontal"),
|
|
22014
22014
|
width: U().optional(),
|
|
22015
22015
|
height: U().optional()
|
|
22016
22016
|
});
|
|
@@ -22022,10 +22022,10 @@ var oM = class {
|
|
|
22022
22022
|
}
|
|
22023
22023
|
}, bM = class {
|
|
22024
22024
|
tagName = "marimo-json-output";
|
|
22025
|
-
validator =
|
|
22025
|
+
validator = G({
|
|
22026
22026
|
name: U().nullish(),
|
|
22027
|
-
jsonData:
|
|
22028
|
-
valueTypes:
|
|
22027
|
+
jsonData: Ja(),
|
|
22028
|
+
valueTypes: Vo(["json", "python"]).default("python")
|
|
22029
22029
|
});
|
|
22030
22030
|
render({ data: e }) {
|
|
22031
22031
|
let t = e.name === void 0 ? !1 : e.name || "";
|
|
@@ -22036,7 +22036,7 @@ var oM = class {
|
|
|
22036
22036
|
name: t
|
|
22037
22037
|
});
|
|
22038
22038
|
}
|
|
22039
|
-
}, xM = wS("marimo-lazy").withData(
|
|
22039
|
+
}, xM = wS("marimo-lazy").withData(G({ showLoadingIndicator: K().default(!1) })).withFunctions({ load: HS.input(G({})).output(G({ html: U() })) }).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(SM, {
|
|
22040
22040
|
value: e.value,
|
|
22041
22041
|
setValue: e.setValue,
|
|
22042
22042
|
...e.data,
|
|
@@ -22069,13 +22069,13 @@ var oM = class {
|
|
|
22069
22069
|
}), t[12] = s, t[13] = m, t[14] = h) : h = t[14], h;
|
|
22070
22070
|
}, CM = class {
|
|
22071
22071
|
tagName = "marimo-mime-renderer";
|
|
22072
|
-
validator =
|
|
22072
|
+
validator = G({
|
|
22073
22073
|
mime: U().transform((e) => e),
|
|
22074
|
-
data:
|
|
22074
|
+
data: Ho([
|
|
22075
22075
|
U(),
|
|
22076
|
-
|
|
22077
|
-
|
|
22078
|
-
|
|
22076
|
+
zo(),
|
|
22077
|
+
to(U(), Ja()),
|
|
22078
|
+
H(co())
|
|
22079
22079
|
]).transform((e) => e)
|
|
22080
22080
|
});
|
|
22081
22081
|
render({ data: e }) {
|
|
@@ -22087,10 +22087,10 @@ var oM = class {
|
|
|
22087
22087
|
}
|
|
22088
22088
|
}, wM = class {
|
|
22089
22089
|
tagName = "marimo-mermaid";
|
|
22090
|
-
validator =
|
|
22090
|
+
validator = G({
|
|
22091
22091
|
diagram: U(),
|
|
22092
22092
|
theme: U().optional(),
|
|
22093
|
-
theme_variables:
|
|
22093
|
+
theme_variables: to(U(), U()).optional()
|
|
22094
22094
|
});
|
|
22095
22095
|
render(e) {
|
|
22096
22096
|
return /* @__PURE__ */ (0, Y.jsx)(TM, {
|
|
@@ -22099,7 +22099,7 @@ var oM = class {
|
|
|
22099
22099
|
themeVariables: e.data.theme_variables
|
|
22100
22100
|
});
|
|
22101
22101
|
}
|
|
22102
|
-
}, TM = (0, J.lazy)(() => import("./mermaid-
|
|
22102
|
+
}, TM = (0, J.lazy)(() => import("./mermaid-BA-Z6wGL.js").then((e) => e.t));
|
|
22103
22103
|
//#endregion
|
|
22104
22104
|
//#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
|
|
22105
22105
|
function EM() {
|
|
@@ -22115,7 +22115,7 @@ function DM(e) {
|
|
|
22115
22115
|
let n = e.target;
|
|
22116
22116
|
e.isIntersecting ? (!s.current || n.getBoundingClientRect().top < s.current.getBoundingClientRect().top) && (s.current = n, t = !0) : n === s.current && (s.current = null, t = !0);
|
|
22117
22117
|
}), t && s.current) {
|
|
22118
|
-
let e =
|
|
22118
|
+
let e = ot(s.current), t = "id" in e ? e.id : e.path;
|
|
22119
22119
|
r(t), a(l.current.get(s.current));
|
|
22120
22120
|
}
|
|
22121
22121
|
}, {
|
|
@@ -22124,7 +22124,7 @@ function DM(e) {
|
|
|
22124
22124
|
threshold: 0
|
|
22125
22125
|
}), e.forEach((t) => {
|
|
22126
22126
|
if (t) {
|
|
22127
|
-
let n =
|
|
22127
|
+
let n = ot(t[0]), r = e.map(OM).filter((e) => "id" in n ? e.id === n.id : e.textContent === t[0].textContent).indexOf(t[0]);
|
|
22128
22128
|
l.current.set(t[0], r), o.current?.observe(t[0]);
|
|
22129
22129
|
}
|
|
22130
22130
|
}), () => {
|
|
@@ -22169,7 +22169,7 @@ function jM(e, t) {
|
|
|
22169
22169
|
//#endregion
|
|
22170
22170
|
//#region src/components/editor/chrome/panels/outline/floating-outline.tsx
|
|
22171
22171
|
var MM = () => {
|
|
22172
|
-
let e = (0, X.c)(19), { items: t } = ns(
|
|
22172
|
+
let e = (0, X.c)(19), { items: t } = ns(Ze), n;
|
|
22173
22173
|
e[0] === t ? n = e[1] : (n = kM(t), e[0] = t, e[1] = n);
|
|
22174
22174
|
let { activeHeaderId: r, activeOccurrences: i } = DM(n), [a, o] = J.useState(!1);
|
|
22175
22175
|
if (t.length < 2) return null;
|
|
@@ -22240,7 +22240,7 @@ var MM = () => {
|
|
|
22240
22240
|
children: s
|
|
22241
22241
|
}), t[8] = o, t[9] = s, t[10] = l) : l = t[10], l;
|
|
22242
22242
|
}, FM = (e) => {
|
|
22243
|
-
let t = (0, X.c)(12), { label: n } = e, { items: r } = ns(
|
|
22243
|
+
let t = (0, X.c)(12), { label: n } = e, { items: r } = ns(Ze), i;
|
|
22244
22244
|
t[0] === r ? i = t[1] : (i = kM(r), t[0] = r, t[1] = i);
|
|
22245
22245
|
let { activeHeaderId: a, activeOccurrences: o } = DM(i);
|
|
22246
22246
|
if (r.length === 0) {
|
|
@@ -22269,7 +22269,7 @@ var MM = () => {
|
|
|
22269
22269
|
}), t[9] = s, t[10] = c, t[11] = l) : l = t[11], l;
|
|
22270
22270
|
}, IM = class {
|
|
22271
22271
|
tagName = "marimo-outline";
|
|
22272
|
-
validator =
|
|
22272
|
+
validator = G({ label: U().optional() });
|
|
22273
22273
|
render(e) {
|
|
22274
22274
|
let { label: t } = e.data;
|
|
22275
22275
|
return /* @__PURE__ */ (0, Y.jsx)(hs, {
|
|
@@ -23036,13 +23036,13 @@ var MM = () => {
|
|
|
23036
23036
|
})(e);
|
|
23037
23037
|
})))(), 1), RM = class {
|
|
23038
23038
|
tagName = "marimo-progress";
|
|
23039
|
-
validator =
|
|
23039
|
+
validator = G({
|
|
23040
23040
|
title: U().optional(),
|
|
23041
23041
|
subtitle: U().optional(),
|
|
23042
|
-
progress:
|
|
23043
|
-
total:
|
|
23044
|
-
eta:
|
|
23045
|
-
rate:
|
|
23042
|
+
progress: Ho([W(), K()]),
|
|
23043
|
+
total: W().optional(),
|
|
23044
|
+
eta: W().optional(),
|
|
23045
|
+
rate: W().optional()
|
|
23046
23046
|
});
|
|
23047
23047
|
render(e) {
|
|
23048
23048
|
return /* @__PURE__ */ (0, Y.jsx)(zM, { ...e.data });
|
|
@@ -23305,7 +23305,7 @@ var UM = (/* @__PURE__ */ i(((e) => {
|
|
|
23305
23305
|
}
|
|
23306
23306
|
}, GM = class {
|
|
23307
23307
|
tagName = "marimo-routes";
|
|
23308
|
-
validator =
|
|
23308
|
+
validator = G({ routes: H(U()) });
|
|
23309
23309
|
render(e) {
|
|
23310
23310
|
return /* @__PURE__ */ (0, Y.jsx)(KM, {
|
|
23311
23311
|
...e.data,
|
|
@@ -23340,18 +23340,18 @@ var UM = (/* @__PURE__ */ i(((e) => {
|
|
|
23340
23340
|
return t[9] === r ? h = t[10] : (h = J.Children.toArray(r), t[9] = r, t[10] = h), h[m];
|
|
23341
23341
|
}, qM = class {
|
|
23342
23342
|
tagName = "marimo-stat";
|
|
23343
|
-
validator =
|
|
23344
|
-
value:
|
|
23343
|
+
validator = G({
|
|
23344
|
+
value: Ho([
|
|
23345
23345
|
U(),
|
|
23346
|
-
|
|
23347
|
-
|
|
23346
|
+
W(),
|
|
23347
|
+
K()
|
|
23348
23348
|
]).optional(),
|
|
23349
23349
|
label: U().optional(),
|
|
23350
23350
|
caption: U().optional(),
|
|
23351
|
-
bordered:
|
|
23352
|
-
direction:
|
|
23353
|
-
target_direction:
|
|
23354
|
-
slot:
|
|
23351
|
+
bordered: K().default(!1),
|
|
23352
|
+
direction: Vo(["increase", "decrease"]).optional(),
|
|
23353
|
+
target_direction: Vo(["increase", "decrease"]).default("increase"),
|
|
23354
|
+
slot: co().optional()
|
|
23355
23355
|
});
|
|
23356
23356
|
render({ data: e }) {
|
|
23357
23357
|
return /* @__PURE__ */ (0, Y.jsx)(JM, { ...e });
|
|
@@ -23423,7 +23423,7 @@ var UM = (/* @__PURE__ */ i(((e) => {
|
|
|
23423
23423
|
}), t[27] = O, t[28] = b, t[29] = x, t[30] = k) : k = t[30], k;
|
|
23424
23424
|
}, YM = class {
|
|
23425
23425
|
tagName = "marimo-tex";
|
|
23426
|
-
validator =
|
|
23426
|
+
validator = G({});
|
|
23427
23427
|
render(e) {
|
|
23428
23428
|
return /* @__PURE__ */ (0, Y.jsx)(eN, {
|
|
23429
23429
|
host: e.host,
|
|
@@ -27097,20 +27097,20 @@ function CP(e) {
|
|
|
27097
27097
|
var wP = {
|
|
27098
27098
|
type: "grid",
|
|
27099
27099
|
name: "Grid",
|
|
27100
|
-
validator:
|
|
27101
|
-
columns:
|
|
27102
|
-
rowHeight:
|
|
27103
|
-
maxWidth:
|
|
27104
|
-
bordered:
|
|
27105
|
-
cells:
|
|
27106
|
-
position:
|
|
27107
|
-
|
|
27108
|
-
|
|
27109
|
-
|
|
27110
|
-
|
|
27100
|
+
validator: qa({
|
|
27101
|
+
columns: W().min(1),
|
|
27102
|
+
rowHeight: W().min(1),
|
|
27103
|
+
maxWidth: W().nullish().transform((e) => e ?? void 0).catch(void 0),
|
|
27104
|
+
bordered: K().optional().catch(void 0),
|
|
27105
|
+
cells: H(qa({
|
|
27106
|
+
position: so([
|
|
27107
|
+
W(),
|
|
27108
|
+
W(),
|
|
27109
|
+
W(),
|
|
27110
|
+
W()
|
|
27111
27111
|
]).nullable().catch(null),
|
|
27112
|
-
scrollable:
|
|
27113
|
-
side:
|
|
27112
|
+
scrollable: K().optional().catch(void 0),
|
|
27113
|
+
side: Vo([
|
|
27114
27114
|
"top",
|
|
27115
27115
|
"bottom",
|
|
27116
27116
|
"left",
|
|
@@ -27229,10 +27229,10 @@ var DP = (e) => {
|
|
|
27229
27229
|
//#endregion
|
|
27230
27230
|
//#region src/components/editor/cell/useDeleteCell.tsx
|
|
27231
27231
|
function OP() {
|
|
27232
|
-
let e = (0, X.c)(4), { deleteCell: t, undoDeleteCell: n } =
|
|
27232
|
+
let e = (0, X.c)(4), { deleteCell: t, undoDeleteCell: n } = Dt(), { sendDeleteCell: r } = je(), i;
|
|
27233
27233
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
27234
|
-
if (as.get(
|
|
27235
|
-
let { cellId: i } = e, a = (as.get(
|
|
27234
|
+
if (as.get(pt)) return;
|
|
27235
|
+
let { cellId: i } = e, a = (as.get(et).cellData[i]?.code ?? "").trim() === "";
|
|
27236
27236
|
if (t({ cellId: i }), r({ cellId: i }).catch(() => {
|
|
27237
27237
|
n();
|
|
27238
27238
|
}), !a) {
|
|
@@ -29762,7 +29762,7 @@ function gR() {
|
|
|
29762
29762
|
return /* @__PURE__ */ new Set();
|
|
29763
29763
|
}
|
|
29764
29764
|
var _R = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skippedIds: i, noOutputIds: a, slideTypes: o, onSlideClick: c }) => {
|
|
29765
|
-
let l =
|
|
29765
|
+
let l = Ue(), { moveCellToIndex: u, createNewCell: d } = Dt(), f = OP(), p = (0, J.useRef)(null), m = hR(p), [h, g] = (0, J.useState)(null), [_, v] = (0, J.useState)(null), y = uR(t), b = (e, t) => {
|
|
29766
29766
|
d({
|
|
29767
29767
|
cellId: e,
|
|
29768
29768
|
before: t,
|
|
@@ -29846,7 +29846,7 @@ var _R = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
29846
29846
|
ref: p,
|
|
29847
29847
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
29848
29848
|
className: "text-xs text-gray-500 flex items-center gap-0.5",
|
|
29849
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
29849
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ge, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
|
|
29850
29850
|
}), e.map((e, t) => /* @__PURE__ */ (0, Y.jsx)(bR, {
|
|
29851
29851
|
cell: e,
|
|
29852
29852
|
dimensions: y,
|
|
@@ -30107,8 +30107,8 @@ function OR(e) {
|
|
|
30107
30107
|
}
|
|
30108
30108
|
//#endregion
|
|
30109
30109
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
30110
|
-
var kR = J.lazy(() => import("./reveal-component-
|
|
30111
|
-
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = ns(da), s = a === "read" || o, c = ns(
|
|
30110
|
+
var kR = J.lazy(() => import("./reveal-component-Dl9ZugRb.js")), AR = (e) => {
|
|
30111
|
+
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = ns(da), s = a === "read" || o, c = ns(He) > 1, [l, u] = (0, J.useState)(null), d;
|
|
30112
30112
|
t[0] !== i || t[1] !== n ? (d = EP(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
30113
30113
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
30114
30114
|
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];
|
|
@@ -30163,34 +30163,34 @@ var kR = J.lazy(() => import("./reveal-component-C42-YBfQ.js")), AR = (e) => {
|
|
|
30163
30163
|
className: "flex-1 pr-18 pb-2 flex flex-row gap-2 min-h-0",
|
|
30164
30164
|
children: [M, k]
|
|
30165
30165
|
}), t[30] = k, t[31] = M, t[32] = N) : N = t[32], N;
|
|
30166
|
-
}, jR =
|
|
30166
|
+
}, jR = Vo([
|
|
30167
30167
|
"slide",
|
|
30168
30168
|
"sub-slide",
|
|
30169
30169
|
"fragment",
|
|
30170
30170
|
"skip"
|
|
30171
|
-
]), MR =
|
|
30171
|
+
]), MR = qa({
|
|
30172
30172
|
type: jR.optional().catch(void 0),
|
|
30173
30173
|
speakerNotes: U().optional().catch(void 0),
|
|
30174
|
-
showCode:
|
|
30175
|
-
}).catch({}), NR =
|
|
30174
|
+
showCode: K().optional().catch(void 0)
|
|
30175
|
+
}).catch({}), NR = Vo([
|
|
30176
30176
|
"none",
|
|
30177
30177
|
"fade",
|
|
30178
30178
|
"slide",
|
|
30179
30179
|
"convex",
|
|
30180
30180
|
"concave",
|
|
30181
30181
|
"zoom"
|
|
30182
|
-
]), PR =
|
|
30182
|
+
]), PR = Vo([
|
|
30183
30183
|
"top",
|
|
30184
30184
|
"center",
|
|
30185
30185
|
"bottom"
|
|
30186
|
-
]), FR =
|
|
30186
|
+
]), FR = qa({
|
|
30187
30187
|
transition: NR.optional().catch(void 0),
|
|
30188
30188
|
verticalAlign: PR.optional().catch(void 0)
|
|
30189
30189
|
}).catch({}), IR = {
|
|
30190
30190
|
type: "slides",
|
|
30191
30191
|
name: "Slides",
|
|
30192
|
-
validator:
|
|
30193
|
-
cells:
|
|
30192
|
+
validator: qa({
|
|
30193
|
+
cells: H(MR).optional().catch(void 0),
|
|
30194
30194
|
deck: FR.optional().catch(void 0)
|
|
30195
30195
|
}),
|
|
30196
30196
|
deserializeLayout: (e, t) => {
|
|
@@ -30314,7 +30314,7 @@ var zR = (e) => {
|
|
|
30314
30314
|
let m;
|
|
30315
30315
|
t[12] === n ? m = t[13] : (m = () => n("bt"), t[12] = n, t[13] = m);
|
|
30316
30316
|
let h;
|
|
30317
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(
|
|
30317
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(yt, {
|
|
30318
30318
|
fontSize: 36,
|
|
30319
30319
|
className: "w-5 h-5"
|
|
30320
30320
|
}), t[14] = h) : h = t[14];
|
|
@@ -30395,13 +30395,13 @@ function BR(e = !0) {
|
|
|
30395
30395
|
//#endregion
|
|
30396
30396
|
//#region src/components/editor/actions/name-cell-input.tsx
|
|
30397
30397
|
var VR = (e) => {
|
|
30398
|
-
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, { updateCellName: a } =
|
|
30398
|
+
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, { updateCellName: a } = Dt(), o;
|
|
30399
30399
|
t[0] !== r || t[1] !== a ? (o = (e) => a({
|
|
30400
30400
|
cellId: r,
|
|
30401
30401
|
name: e
|
|
30402
30402
|
}), t[0] = r, t[1] = a, t[2] = o) : o = t[2];
|
|
30403
30403
|
let s = HR(n, o);
|
|
30404
|
-
if (
|
|
30404
|
+
if (Ot(n)) return null;
|
|
30405
30405
|
let l = s.focusing ? "" : "text-ellipsis", u;
|
|
30406
30406
|
t[3] !== i || t[4] !== l ? (u = c("outline-hidden border hover:border-cyan-500/40 focus:border-cyan-500/40", l, i), t[3] = i, t[4] = l, t[5] = u) : u = t[5];
|
|
30407
30407
|
let d;
|
|
@@ -30423,15 +30423,15 @@ function HR(e, t) {
|
|
|
30423
30423
|
let n = (0, X.c)(13), [r, i] = (0, J.useState)(e), [a, o] = (0, J.useState)(!1), s;
|
|
30424
30424
|
n[0] !== t || n[1] !== e ? (s = (n) => {
|
|
30425
30425
|
if (n !== e) {
|
|
30426
|
-
if (!n ||
|
|
30426
|
+
if (!n || Ot(n)) {
|
|
30427
30427
|
t(n);
|
|
30428
30428
|
return;
|
|
30429
30429
|
}
|
|
30430
|
-
t(Ne(n,
|
|
30430
|
+
t(Ne(n, St()));
|
|
30431
30431
|
}
|
|
30432
30432
|
}, n[0] = t, n[1] = e, n[2] = s) : s = n[2];
|
|
30433
30433
|
let c = s, l;
|
|
30434
|
-
n[3] === r ? l = n[4] : (l =
|
|
30434
|
+
n[3] === r ? l = n[4] : (l = Ot(r) ? "" : r, n[3] = r, n[4] = l);
|
|
30435
30435
|
let u;
|
|
30436
30436
|
n[5] === Symbol.for("react.memo_cache_sentinel") ? (u = (e) => {
|
|
30437
30437
|
let t = e.target.value, n = ge(t);
|
|
@@ -30465,7 +30465,7 @@ function UR(e) {
|
|
|
30465
30465
|
}
|
|
30466
30466
|
//#endregion
|
|
30467
30467
|
//#region src/components/editor/output/useWrapText.ts
|
|
30468
|
-
var WR =
|
|
30468
|
+
var WR = qe("marimo:console:wrapText", !1, bt);
|
|
30469
30469
|
function GR() {
|
|
30470
30470
|
let e = (0, X.c)(3), [t, n] = is(WR), r;
|
|
30471
30471
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
@@ -30496,7 +30496,7 @@ var qR = (e) => {
|
|
|
30496
30496
|
if (!e) return;
|
|
30497
30497
|
let t = e.scrollHeight - e.clientHeight;
|
|
30498
30498
|
t - e.scrollTop < 120 && (e.scrollTop = t);
|
|
30499
|
-
}, t[2] = D) : D = t[2], (0, J.useLayoutEffect)(D), !w &&
|
|
30499
|
+
}, t[2] = D) : D = t[2], (0, J.useLayoutEffect)(D), !w && Ot(h)) return null;
|
|
30500
30500
|
let O, k, A, j, M, N, P, F, I, L;
|
|
30501
30501
|
if (t[3] !== _ || t[4] !== x || t[5] !== S || t[6] !== w || t[7] !== d || t[8] !== m || t[9] !== a || t[10] !== E || t[11] !== y || t[12] !== b || t[13] !== v || t[14] !== T || t[15] !== o || t[16] !== i || t[17] !== p || t[18] !== s || t[19] !== r) {
|
|
30502
30502
|
let e = S.toReversed(), u = e.some(QR), f = e.findIndex($R), h;
|
|
@@ -30671,7 +30671,7 @@ function tz(e) {
|
|
|
30671
30671
|
}
|
|
30672
30672
|
//#endregion
|
|
30673
30673
|
//#region src/core/cells/readonly-code-display.ts
|
|
30674
|
-
var nz = new
|
|
30674
|
+
var nz = new Xe(), rz = new Ke();
|
|
30675
30675
|
function iz(e) {
|
|
30676
30676
|
let t = e.trim();
|
|
30677
30677
|
return t ? nz.isSupported(t) ? {
|
|
@@ -30732,7 +30732,7 @@ function cz(e) {
|
|
|
30732
30732
|
//#endregion
|
|
30733
30733
|
//#region src/core/static/download-html.ts
|
|
30734
30734
|
async function lz(e) {
|
|
30735
|
-
let t =
|
|
30735
|
+
let t = xe(), { includeCode: n } = e, r = await t.exportAsHTML({
|
|
30736
30736
|
download: !0,
|
|
30737
30737
|
includeCode: n,
|
|
30738
30738
|
files: sz.INSTANCE.filenames(),
|
|
@@ -30778,7 +30778,7 @@ function mz(e) {
|
|
|
30778
30778
|
}), [...t.entries()].toSorted(([e], [t]) => e - t);
|
|
30779
30779
|
}
|
|
30780
30780
|
function hz(e, t) {
|
|
30781
|
-
let n = new
|
|
30781
|
+
let n = new ze().isSupported(e), r = t !== null && !I(t);
|
|
30782
30782
|
return n && r || e.trim() === "";
|
|
30783
30783
|
}
|
|
30784
30784
|
//#endregion
|
|
@@ -30882,7 +30882,7 @@ var gz = (e) => {
|
|
|
30882
30882
|
]
|
|
30883
30883
|
}), t[28] = r, t[29] = a, t[30] = w, t[31] = T, t[32] = D) : D = t[32], D;
|
|
30884
30884
|
}, vz = (e) => {
|
|
30885
|
-
let t = (0, X.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } =
|
|
30885
|
+
let t = (0, X.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } = je(), o = Sz, s = Cz, l;
|
|
30886
30886
|
t[0] === a ? l = t[1] : (l = async () => {
|
|
30887
30887
|
let e = await a();
|
|
30888
30888
|
Zr(new Blob([e.contents], { type: "text/plain" }), cn.toPY(document.title));
|
|
@@ -30993,8 +30993,8 @@ var gz = (e) => {
|
|
|
30993
30993
|
t[6] === o ? C = t[7] : (C = ve(o), t[6] = o, t[7] = C);
|
|
30994
30994
|
let w = C, T = v && g !== "present", E;
|
|
30995
30995
|
if (t[8] !== m || t[9] !== l || t[10] !== T || t[11] !== h || t[12] !== s) {
|
|
30996
|
-
let e = new
|
|
30997
|
-
E = c("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ?
|
|
30996
|
+
let e = new ze().isSupported(m);
|
|
30997
|
+
E = c("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? at({
|
|
30998
30998
|
errored: l,
|
|
30999
30999
|
stopped: s
|
|
31000
31000
|
}) : {
|
|
@@ -31053,7 +31053,7 @@ var gz = (e) => {
|
|
|
31053
31053
|
]
|
|
31054
31054
|
}), t[37] = D, t[38] = v, t[39] = y, t[40] = p, t[41] = h, t[42] = g, t[43] = x) : x = t[43], x;
|
|
31055
31055
|
}
|
|
31056
|
-
if (
|
|
31056
|
+
if (Oe({
|
|
31057
31057
|
errored: l,
|
|
31058
31058
|
interrupted: d,
|
|
31059
31059
|
stopped: s,
|
|
@@ -31084,7 +31084,7 @@ yz.displayName = "VerticalCell";
|
|
|
31084
31084
|
var bz = {
|
|
31085
31085
|
type: "vertical",
|
|
31086
31086
|
name: "Vertical",
|
|
31087
|
-
validator:
|
|
31087
|
+
validator: co(),
|
|
31088
31088
|
Component: _z,
|
|
31089
31089
|
deserializeLayout: (e) => e,
|
|
31090
31090
|
serializeLayout: (e) => e,
|
|
@@ -31191,11 +31191,11 @@ function Pz({ state: e, plugin: t, cells: n }) {
|
|
|
31191
31191
|
}) : t.getInitialLayout(n));
|
|
31192
31192
|
}
|
|
31193
31193
|
function Fz() {
|
|
31194
|
-
let e =
|
|
31194
|
+
let e = Je(), t = as.get(jz), { selectedLayout: n } = t;
|
|
31195
31195
|
if (n === "vertical") return null;
|
|
31196
31196
|
let r = Tz.find((e) => e.type === n);
|
|
31197
31197
|
if (r === void 0) return s.error(`Unknown layout type: ${n}`), null;
|
|
31198
|
-
let i =
|
|
31198
|
+
let i = he(e), a = Pz({
|
|
31199
31199
|
state: t,
|
|
31200
31200
|
plugin: r,
|
|
31201
31201
|
cells: i
|
|
@@ -31251,7 +31251,7 @@ function zz(e, t) {
|
|
|
31251
31251
|
return;
|
|
31252
31252
|
}
|
|
31253
31253
|
let { objectIds: y, values: b } = Rz(), x = g ? Object.fromEntries(n.map((e) => [e.id, e.code])) : void 0;
|
|
31254
|
-
|
|
31254
|
+
xe().sendInstantiate({
|
|
31255
31255
|
objectIds: y,
|
|
31256
31256
|
values: b,
|
|
31257
31257
|
autoRun: r,
|
|
@@ -31502,10 +31502,10 @@ function oB(e) {
|
|
|
31502
31502
|
return null;
|
|
31503
31503
|
}
|
|
31504
31504
|
function sB(e) {
|
|
31505
|
-
return
|
|
31505
|
+
return we(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && (e.dependencies === void 0 || Array.isArray(e.dependencies) && e.dependencies.every((e) => typeof e == "string")) && Array.isArray(e.cells) && e.cells.every(cB) : !1;
|
|
31506
31506
|
}
|
|
31507
31507
|
function cB(e) {
|
|
31508
|
-
return
|
|
31508
|
+
return we(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : !1;
|
|
31509
31509
|
}
|
|
31510
31510
|
//#endregion
|
|
31511
31511
|
//#region src/core/islands/components/IslandControls.tsx
|
|
@@ -31525,7 +31525,7 @@ var lB = (e) => {
|
|
|
31525
31525
|
children: a
|
|
31526
31526
|
}), t[3] = a, t[4] = n, t[5] = o) : o = t[5], o;
|
|
31527
31527
|
}, uB = (e) => {
|
|
31528
|
-
let t = (0, X.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } =
|
|
31528
|
+
let t = (0, X.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } = je(), o;
|
|
31529
31529
|
t[0] === r ? o = t[1] : (o = () => {
|
|
31530
31530
|
x(r());
|
|
31531
31531
|
}, t[0] = r, t[1] = o);
|
|
@@ -31599,7 +31599,7 @@ var pB = (e) => {
|
|
|
31599
31599
|
let t = (0, X.c)(19), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = dB(i), s = (0, J.useRef)(null), c;
|
|
31600
31600
|
t[0] === n ? c = t[1] : (c = (e) => e.cellRuntime[n], t[0] = n, t[1] = c);
|
|
31601
31601
|
let l = c, u;
|
|
31602
|
-
t[2] === l ? u = t[3] : (u =
|
|
31602
|
+
t[2] === l ? u = t[3] : (u = xt(et, l), t[2] = l, t[3] = u);
|
|
31603
31603
|
let d = ns(u), f = ns(Gs);
|
|
31604
31604
|
if (mB(s, d?.status ?? "idle"), !f || !d?.output) {
|
|
31605
31605
|
let e;
|
|
@@ -31689,7 +31689,7 @@ var hB = (e) => {
|
|
|
31689
31689
|
return rB(this);
|
|
31690
31690
|
}
|
|
31691
31691
|
getCellIdFromIndex(e) {
|
|
31692
|
-
let { cellIds: t } = as.get(
|
|
31692
|
+
let { cellIds: t } = as.get(et);
|
|
31693
31693
|
return t.inOrderIds.at(e);
|
|
31694
31694
|
}
|
|
31695
31695
|
connectedCallback() {
|
|
@@ -31703,7 +31703,7 @@ var hB = (e) => {
|
|
|
31703
31703
|
};
|
|
31704
31704
|
syncCellIdsSubscription() {
|
|
31705
31705
|
if (this.isReactive) {
|
|
31706
|
-
this.unsubscribeCellIds ??= as.sub(
|
|
31706
|
+
this.unsubscribeCellIds ??= as.sub(ft, () => {
|
|
31707
31707
|
this.runtimeCellId = this.cellId, this.renderIsland();
|
|
31708
31708
|
});
|
|
31709
31709
|
return;
|
|
@@ -31716,7 +31716,7 @@ var hB = (e) => {
|
|
|
31716
31716
|
code: r,
|
|
31717
31717
|
output: t
|
|
31718
31718
|
});
|
|
31719
|
-
let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(
|
|
31719
|
+
let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(gt);
|
|
31720
31720
|
return {
|
|
31721
31721
|
html: t,
|
|
31722
31722
|
codeCallback: n && i ? () => {
|
|
@@ -31775,7 +31775,7 @@ function xB() {
|
|
|
31775
31775
|
//#region src/core/islands/bootstrap.ts
|
|
31776
31776
|
async function SB(e) {
|
|
31777
31777
|
let t = e.store || as, n = e.root || document, r = e.bridge;
|
|
31778
|
-
t.set(
|
|
31778
|
+
t.set(ye, r), t.set(ga, "read"), t.set(Us, null), e.autoInitializePlugins !== !1 && rN();
|
|
31779
31779
|
let i = Array.from(n.querySelectorAll(vu.ISLAND));
|
|
31780
31780
|
if (i.length === 0) {
|
|
31781
31781
|
s.log("No islands found, skipping initialization");
|
|
@@ -31783,8 +31783,8 @@ async function SB(e) {
|
|
|
31783
31783
|
}
|
|
31784
31784
|
s.log(`Initializing ${i.length} island(s)`);
|
|
31785
31785
|
for (let e of i) e.classList.add(Su.NAMESPACE);
|
|
31786
|
-
let a =
|
|
31787
|
-
t.set(
|
|
31786
|
+
let a = vt((e) => {
|
|
31787
|
+
t.set(et, (t) => Tt(t, e));
|
|
31788
31788
|
});
|
|
31789
31789
|
t.sub(qs, () => {
|
|
31790
31790
|
let e = t.get(qs), r = n.querySelectorAll(vu.ISLAND);
|
|
@@ -31803,7 +31803,7 @@ async function SB(e) {
|
|
|
31803
31803
|
}
|
|
31804
31804
|
function CB(e, t, n, r) {
|
|
31805
31805
|
try {
|
|
31806
|
-
let i =
|
|
31806
|
+
let i = Be(e);
|
|
31807
31807
|
switch (s.debug("Islands received message:", i.op), i.op) {
|
|
31808
31808
|
case "banner":
|
|
31809
31809
|
case "missing-package-alert":
|
|
@@ -31834,8 +31834,7 @@ function CB(e, t, n, r) {
|
|
|
31834
31834
|
case "cache-cleared":
|
|
31835
31835
|
case "cache-info":
|
|
31836
31836
|
case "kernel-startup-error":
|
|
31837
|
-
case "notebook-document-transaction":
|
|
31838
|
-
case "attachments": return;
|
|
31837
|
+
case "notebook-document-transaction": return;
|
|
31839
31838
|
case "completed-run":
|
|
31840
31839
|
n.set(Us, (e) => {
|
|
31841
31840
|
if (!e?.has(r)) return e;
|
|
@@ -32198,7 +32197,7 @@ var BB = class {
|
|
|
32198
32197
|
appId: n.id,
|
|
32199
32198
|
sessionGeneration: ++this.nextSessionGeneration
|
|
32200
32199
|
}, a = this.session, o = t && a !== void 0;
|
|
32201
|
-
this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(
|
|
32200
|
+
this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(et, lt()), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new pa()), this.session = {
|
|
32202
32201
|
...r,
|
|
32203
32202
|
code: t ? e : void 0
|
|
32204
32203
|
});
|
|
@@ -32216,7 +32215,7 @@ var BB = class {
|
|
|
32216
32215
|
t?.code === void 0 || e && t.appId !== e || (this.activeSessionGenerations.delete(t.sessionGeneration), await this.rpc.proxy.request.stopSession({
|
|
32217
32216
|
appId: t.appId,
|
|
32218
32217
|
sessionGeneration: t.sessionGeneration
|
|
32219
|
-
}), this.store.set(Us, null), this.session = void 0, this.sessionReady = new pa(), this.store.set(
|
|
32218
|
+
}), this.store.set(Us, null), this.session = void 0, this.sessionReady = new pa(), this.store.set(et, lt()));
|
|
32220
32219
|
});
|
|
32221
32220
|
}
|
|
32222
32221
|
enqueueAppTransition(e) {
|
|
@@ -32232,7 +32231,7 @@ var BB = class {
|
|
|
32232
32231
|
sendComponentValues = async (e) => (await this.putControlRequest({
|
|
32233
32232
|
type: "update-ui-element",
|
|
32234
32233
|
...e,
|
|
32235
|
-
token:
|
|
32234
|
+
token: _t()
|
|
32236
32235
|
}), null);
|
|
32237
32236
|
sendInstantiate = async () => null;
|
|
32238
32237
|
sendFunctionRequest = async (e) => (await this.putControlRequest({
|