@marimo-team/islands 0.25.3-dev248 → 0.25.3-dev251
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-BBihxHrr.js → ConnectedDataExplorerComponent-DGOAQFtf.js} +11 -11
- package/dist/{ErrorBoundary-CD1s2-yk.js → ErrorBoundary-CZ19wGWT.js} +7 -7
- package/dist/{abnfDiagram-VCTEODGH-DBcJVxYP.js → abnfDiagram-VCTEODGH-DzrZZXRD.js} +2 -2
- package/dist/{any-language-editor-jGaR0EAo.js → any-language-editor-Be7dA2VK.js} +3 -3
- package/dist/{architectureDiagram-5GKGNRK7-BcHZXF4S.js → architectureDiagram-5GKGNRK7-iF_snyFL.js} +1 -1
- package/dist/{button-B6RjDKJx.js → button-0-RqY1DW.js} +2 -1
- package/dist/{capabilities-CkVzWJEX.js → capabilities-B6yy_CBN.js} +1 -1
- package/dist/{chat-ui-DgaVxFrc.js → chat-ui-zbfp80GW.js} +1547 -1482
- package/dist/{check-Z_vtI3OL.js → check-CSvxZk5I.js} +1 -1
- package/dist/{chunk-IMKFNOWR-CTZlwBAA.js → chunk-IMKFNOWR-B7xytD4B.js} +1 -1
- package/dist/{chunk-SHT3W25Y-53g_RZHm.js → chunk-SHT3W25Y-I8ZFP5L1.js} +1 -1
- package/dist/{chunk-SVP7TREG-P6abNGV_.js → chunk-SVP7TREG-Di-uAPdT.js} +1 -1
- package/dist/{chunk-TICWLB2K-BTJJqkyF.js → chunk-TICWLB2K-BFpUy0ud.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-BUGqOrTm.js → classDiagram-ZZMXUADV-Cqm4JGpx.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-CXpQvO-s.js → classDiagram-v2-VYDZK3BY-DFHRJpN3.js} +2 -2
- package/dist/{code-visibility-BLiMCTCu.js → code-visibility-D2D_sL1T.js} +4 -4
- package/dist/{common-H6uadBsj.js → common-DSIM5DHJ.js} +262 -262
- package/dist/{config-DbjzjwxX.js → config-mwEjAmvP.js} +2 -2
- package/dist/{copy-icon-CG57cxwb.js → copy-icon-DD8bdw4L.js} +3 -3
- package/dist/{createReducer-DePYJ0F3.js → createReducer-Bx81cw8_.js} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-DOcnl8wW.js → cynefinDiagram-5FMLGOSQ-cuGOeTBC.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-CuHR9QfG.js → dagre-GXQ25YYZ-DJ76aC4k.js} +1 -1
- package/dist/{data-grid-overlay-editor-Ba360Exn.js → data-grid-overlay-editor-ByfOIO6H.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BPiG4kso.js → diagram-S7CK7UJ4-DLLc0sw7.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-_piBOvOC.js → diagram-UQ7AKVKN-Tz_d6qmk.js} +1 -1
- package/dist/{diagram-VX7I27RA-DCzVeJ8M.js → diagram-VX7I27RA-D7SzPrDN.js} +1 -1
- package/dist/{diagram-Z3DM3KII-D64CF1jQ.js → diagram-Z3DM3KII-qr37XV58.js} +1 -1
- package/dist/{dialog-DsZ49mmU.js → dialog-BHYPX87J.js} +3 -3
- package/dist/{dropdown-menu-BRiE7Vnp.js → dropdown-menu-Blu7V6Mk.js} +6 -6
- package/dist/{ebnfDiagram-PWID7BFC-BapQPML-.js → ebnfDiagram-PWID7BFC-BKOQb4J0.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-CNQvC2_Q.js → erDiagram-RLTQ6QDP-CM15Vq68.js} +1 -1
- package/dist/{error-banner-IsonnvA0.js → error-banner-DbRFOd2O.js} +2 -2
- package/dist/{error-entries-CRPfxMqm.js → error-entries-BuIE3Ius.js} +9 -9
- package/dist/{feedback-button-Cfjlex_J.js → feedback-button-VT03EJ1h.js} +7 -7
- package/dist/{flowDiagram-HODETNUW-BBt6S6oe.js → flowDiagram-HODETNUW-Dt3N5yFT.js} +2 -2
- package/dist/{formats-BK4VefeF.js → formats-gGospKWJ.js} +2 -2
- package/dist/{glide-data-editor-CREvupa1.js → glide-data-editor-C94G7kD7.js} +10 -10
- package/dist/{glide-utils-CQddGpa-.js → glide-utils-qbkRZpEy.js} +3 -3
- package/dist/{globals-DUIx9HDW.js → globals-D7JZ5hgJ.js} +2 -2
- package/dist/{html-to-image-Gx4q3ZoD.js → html-to-image-BXrAd5q8.js} +460 -455
- package/dist/{infoDiagram-27XIBGKW-Hd8Ifz82.js → infoDiagram-27XIBGKW-C7axJMCl.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-CP7hnHWx.js → ishikawaDiagram-5VMMS53U-CdC9Eur7.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CX91sa9b.js → kanban-definition-UXKFOSKX-BHnMIgD7.js} +1 -1
- package/dist/{loader-BisjOLiW.js → loader-BVEtQ4F3.js} +1 -1
- package/dist/main.js +236 -236
- package/dist/{mermaid-Djb3Ni9t.js → mermaid-DFYN_PXd.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-DgCNo07O.js → mindmap-definition-YA3MSWOX-BagHoCGU.js} +1 -1
- package/dist/{number-overlay-editor-B8TTAovO.js → number-overlay-editor-CdcscCHp.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-SGJhnIKo.js → pegDiagram-XKGWAZYB-8IIZczip.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-1stXIWCQ.js → pieDiagram-E7YTZNPT-CE6dKBIr.js} +1 -1
- package/dist/{process-output-D2ISIyIs.js → process-output-D2ZjxrHe.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-DY1mojzB.js → railroadDiagram-O6MQD6OU-CkexPq3b.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-gHzhUp0D.js → requirementDiagram-BXWQKSXE-B0-OkuAe.js} +1 -1
- package/dist/{reveal-component-CmZQtS97.js → reveal-component-Cr9euMM2.js} +8 -8
- package/dist/{select-BSxlITBo.js → select-CcidPqlM.js} +5 -5
- package/dist/{sequenceDiagram-WJ2MYXX4-rjPtD9fB.js → sequenceDiagram-WJ2MYXX4-Dxysg8DX.js} +1 -1
- package/dist/{spec-Dq8RNplp.js → spec-ZwfZcgsm.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-DMNxjUxV.js → stateDiagram-D77RDMKH-DTEN3-OJ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-CumAaqGo.js → stateDiagram-v2-MP3YSRHH-vktk3Xc5.js} +2 -2
- package/dist/{strings-BGW-fXVJ.js → strings-BYJNyKmg.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-BU14_Tej.js → swimlanes-42K2YHIH-Cjveh9OM.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CieAnPqJ.js → swimlanesDiagram-VR7AAH4N-Bdr7Ev_2.js} +2 -2
- package/dist/{swiper-component-Dir1o8ml.js → swiper-component-Dvj-goaD.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-CrVj4E1K.js → timeline-definition-24CTP7MA-KIuDcefn.js} +1 -1
- package/dist/{toast-BWIPi3aF.js → toast-CkB5Jq9K.js} +4 -4
- package/dist/{tooltip-C3UnvsRe.js → tooltip-Bzl4k00l.js} +2 -2
- package/dist/{use-restore-focus-BWO0z1lo.js → use-restore-focus-CmflVLWJ.js} +1 -1
- package/dist/{useDateFormatter-ChB4eyim.js → useDateFormatter-CYo5fm8s.js} +2 -2
- package/dist/{useIframeCapabilities-cMNQ80CK.js → useIframeCapabilities-BIolGsF1.js} +1 -1
- package/dist/{useLifecycle-BquH9ET-.js → useLifecycle-GNgvNwI-.js} +2 -2
- package/dist/{useTheme-DgOLVISn.js → useTheme-BZ2GGLgm.js} +141 -139
- package/dist/{vega-component-Bwg_Kuh-.js → vega-component-DOtem7Hf.js} +7 -7
- package/dist/{vennDiagram-4TSXK5OY-ZLxQ8yhm.js → vennDiagram-4TSXK5OY-DrIOUHfb.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-D88pcLY1.js → wardleyDiagram-VM6X3IG4-CJNjf4OH.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-_13d4g8g.js → xychartDiagram-S5SC5T6Z-DEshFho-.js} +1 -1
- package/package.json +1 -1
- package/src/__tests__/fixtures/pair-config.ts +1 -1
- package/src/components/app-config/__tests__/state.test.tsx +50 -0
- package/src/components/app-config/ai-config.tsx +1 -1
- package/src/components/chat/__tests__/capabilities-popover.test.tsx +0 -1
- package/src/components/chat/__tests__/chat-display.test.tsx +125 -0
- package/src/components/chat/__tests__/chat-markdown.test.tsx +43 -0
- package/src/components/chat/__tests__/chat-utils.test.ts +51 -1
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +1 -1
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +22 -17
- package/src/components/chat/acp/agent-panel.tsx +4 -3
- package/src/components/chat/acp/blocks.tsx +10 -10
- package/src/components/chat/acp/common.tsx +4 -5
- package/src/components/chat/acp/model-selector.tsx +1 -1
- package/src/components/chat/capabilities-popover.tsx +1 -6
- package/src/components/chat/chat-components.tsx +7 -4
- package/src/components/chat/chat-display.tsx +51 -6
- package/src/components/chat/chat-history-popover.tsx +6 -1
- package/src/components/chat/chat-markdown.tsx +15 -0
- package/src/components/chat/chat-panel.tsx +105 -119
- package/src/components/chat/chat-typography.css +108 -0
- package/src/components/chat/chat-utils.ts +8 -3
- package/src/components/chat/notebook-access-selector.tsx +1 -1
- package/src/components/chat/reasoning-accordion.tsx +3 -3
- package/src/components/chat/tool-call/tool-activity-group.tsx +49 -0
- package/src/components/chat/tool-call/tool-history-row.tsx +3 -30
- package/src/components/chat/tool-call/tool-result.tsx +1 -1
- package/src/components/chat/use-chat-generation.ts +19 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +18 -37
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +5 -8
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +5 -19
- package/src/components/editor/actions/pair-with-agent-commands.ts +0 -1
- package/src/components/editor/actions/pair-with-agent-modal.tsx +7 -11
- package/src/components/editor/actions/pair-with-agent.tsx +3 -31
- package/src/components/editor/actions/useCellActionButton.tsx +1 -1
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
- package/src/components/editor/ai/prompt-input.tsx +189 -0
- package/src/components/editor/cell/StagedAICell.tsx +3 -3
- package/src/components/editor/cell/code/cell-editor.tsx +14 -1
- package/src/components/editor/chrome/panels/panel-header.tsx +13 -0
- package/src/components/editor/chrome/types.ts +1 -1
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +53 -45
- package/src/components/editor/chrome/wrapper/__tests__/useAskAiAboutCell.test.tsx +58 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +89 -72
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +5 -8
- package/src/components/editor/chrome/wrapper/useAskAiAboutCell.ts +36 -0
- package/src/components/editor/renderers/__tests__/add-cell-buttons.test.tsx +18 -0
- package/src/components/editor/renderers/cell-array.tsx +10 -67
- package/src/components/markdown/markdown-renderer.tsx +35 -20
- package/src/components/mcp/mcp-status-indicator.tsx +18 -14
- package/src/core/ai/__tests__/staged-cells.test.ts +1 -467
- package/src/core/ai/context/context.ts +2 -0
- package/src/core/ai/context/providers/__tests__/cell.test.ts +49 -0
- package/src/core/ai/context/providers/cell.ts +54 -0
- package/src/core/ai/staged-cells.ts +4 -280
- package/src/core/ai/state.ts +3 -0
- package/src/core/codemirror/__tests__/setup.test.ts +32 -0
- package/src/core/codemirror/cells/state.ts +1 -0
- package/src/core/codemirror/cm.ts +5 -1
- package/src/core/codemirror/config/types.ts +1 -1
- package/src/core/codemirror/language/languages/python.ts +3 -3
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +16 -0
- package/src/core/codemirror/placeholder/extensions.ts +57 -19
- package/src/core/hotkeys/hotkeys.ts +2 -1
- package/src/core/notebook/document/__tests__/codemirror.test.ts +1 -0
- package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +1 -1
- package/src/components/editor/ai/__tests__/staged-cell-submission.test.ts +0 -106
- package/src/components/editor/ai/add-cell-with-ai.tsx +0 -506
- package/src/components/editor/ai/staged-cell-submission.ts +0 -46
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +0 -66
package/dist/main.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { _ as a, a as o, c as s, d as c, g as l, h as u, l as d, m as f, n as p, p as m, r as h, s as g, t as _, v } from "./button-
|
|
2
|
+
import { _ as a, a as o, c as s, d as c, g as l, h as u, l as d, m as f, n as p, p as m, r as h, s as g, t as _, v } from "./button-0-RqY1DW.js";
|
|
3
3
|
import { t as y } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as b } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { i as x, n as S, r as C, t as w } from "./copy-icon-
|
|
6
|
-
import { $ as T, A as E, At as D, B as O, Bt as k, Ct as A,
|
|
7
|
-
import { a as ze, d as Be, i as Ve, m as He, n as Ue, o as We, p as Ge, r as Ke, t as qe } from "./tooltip-
|
|
8
|
-
import { D as Je, E as Ye, O as Xe, S as Ze, T as Qe, _ as $e, a as et, c as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, n as lt, o as ut, p as dt, r as ft, s as pt, t as mt, u as ht, v as gt, w as _t, x as vt, y as yt } from "./spec-
|
|
9
|
-
import { $t as bt, A as xt, At as St, B as Ct, Bt as wt, C as Tt, Ct as Et, D as Dt, Dt as Ot, E as kt, Et as At, F as jt, Ft as Mt, G as Nt, Gt as Pt, H as Ft, Ht as It, I as Lt, It as Rt, J as zt, Jt as Bt, K as Vt, Kt as Ht, L as Ut, Lt as Wt, M as Gt, Mt as Kt, N as qt, Nt as Jt, O as Yt, Ot as Xt, P as Zt, Pt as Qt, Qt as $t, R as en, Rt as tn, S as nn, T as rn, Tt as an, U as on, Ut as sn, V as cn, Vt as ln, W as un, Wt as dn, X as fn, Xt as pn, Y as mn, Yt as hn, Z as gn, Zt as _n, _ as vn, _t as yn, an as bn, at as xn, b as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jt as Un, k as Wn, kt as Gn, ln as Kn, lt as qn, m as Jn, mn as Yn, mt as Xn, nn as Zn, nt as Qn, on as $n, ot as er, p as tr, pn as nr, pt as rr, q as ir, qt as ar, r as or, rn as sr, rt as cr, st as lr, t as ur, tn as dr, tt as fr, u as pr, un as mr, ut as hr, v as gr, vt as _r, w as vr, wt as yr, x as br, y as xr, yt as Sr, z as Cr, zt as wr } from "./common-
|
|
10
|
-
import { a as Tr, n as Er, s as Dr, t as Or } from "./useLifecycle-
|
|
11
|
-
import { t as kr } from "./check-
|
|
12
|
-
import { A as Ar, C as jr, D as Mr, M as Nr, O as Pr, a as Fr, c as Ir, d as Lr, i as Rr, k as zr, l as Br, n as Vr, o as Hr, r as Ur, s as Wr, t as Gr, w as Kr, x as qr } from "./select-
|
|
13
|
-
import { B as Jr, C as Yr, J as Xr, Mt as Zr, Q as Qr, S as $r, W as ei, X as ti, Y as ni, Z as ri, _ as ii, _t as ai, a as oi, bn as si, c as ci, f as li, g as ui, h as di, i as fi, kt as pi, m as mi, n as hi, nt as gi, p as _i, pt as vi, r as yi, s as bi, t as xi, v as Si, w as Ci, xn as wi, y as Ti, z as Ei } from "./dropdown-menu-
|
|
14
|
-
import { c as Di, i as Oi, l as ki, o as Ai, s as ji, t as Mi } from "./config-
|
|
15
|
-
import { A as Ni, At as Pi, B as Fi, G as Ii, It as Li, J as Ri, K as zi, N as Bi, Nt as Vi, Ot as Hi, Pt as Ui, R as Wi, St as Gi, T as Ki, Tt as qi, V as Ji, X as Yi, Y as Xi, Z as Zi, _ as Qi, at as $i, c as ea, ct as ta, d as na, g as ra, h as ia, jt as aa, k as oa, kt as sa, lt as ca, m as la, ot as ua, p as da, q as fa, s as pa, ut as ma, xt as ha, z as ga } from "./error-entries-
|
|
16
|
-
import { a as _a, c as va, d as ya, f as ba, i as xa, l as Sa, n as Ca, o as wa, r as Ta, s as Ea, t as Da } from "./process-output-
|
|
17
|
-
import { a as Oa, c as ka, d as Aa, i as ja, l as Ma, r as Na, u as Pa } from "./glide-utils-
|
|
18
|
-
import { n as Fa, t as Ia } from "./ErrorBoundary-
|
|
19
|
-
import { n as La, t as Ra } from "./globals-
|
|
20
|
-
import { a as za, i as Ba, n as Va, r as Ha, s as Ua, t as Wa } from "./strings-
|
|
5
|
+
import { i as x, n as S, r as C, t as w } from "./copy-icon-DD8bdw4L.js";
|
|
6
|
+
import { $ as T, A as E, At as D, B as O, Bt as k, Ct as A, Et as j, F as M, Ft as N, Gt as P, H as F, Ht as I, I as L, Jt as R, Lt as z, M as B, Mt as ee, Pt as te, R as ne, St as re, U as ie, Ut as ae, V as oe, Vt as se, W as ce, Wt as le, Z as ue, _ as de, a as fe, at as pe, b as me, c as he, et as ge, ht as _e, i as ve, jt as ye, kt as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, pt as Ee, qt as De, rt as Oe, tt as ke, v as Ae, vt as je, w as Me, wt as Ne, x as Pe, xt as Fe, y as Ie, z as Le, zt as Re } from "./html-to-image-BXrAd5q8.js";
|
|
7
|
+
import { a as ze, d as Be, i as Ve, m as He, n as Ue, o as We, p as Ge, r as Ke, t as qe } from "./tooltip-Bzl4k00l.js";
|
|
8
|
+
import { D as Je, E as Ye, O as Xe, S as Ze, T as Qe, _ as $e, a as et, c as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, n as lt, o as ut, p as dt, r as ft, s as pt, t as mt, u as ht, v as gt, w as _t, x as vt, y as yt } from "./spec-ZwfZcgsm.js";
|
|
9
|
+
import { $t as bt, A as xt, At as St, B as Ct, Bt as wt, C as Tt, Ct as Et, D as Dt, Dt as Ot, E as kt, Et as At, F as jt, Ft as Mt, G as Nt, Gt as Pt, H as Ft, Ht as It, I as Lt, It as Rt, J as zt, Jt as Bt, K as Vt, Kt as Ht, L as Ut, Lt as Wt, M as Gt, Mt as Kt, N as qt, Nt as Jt, O as Yt, Ot as Xt, P as Zt, Pt as Qt, Qt as $t, R as en, Rt as tn, S as nn, T as rn, Tt as an, U as on, Ut as sn, V as cn, Vt as ln, W as un, Wt as dn, X as fn, Xt as pn, Y as mn, Yt as hn, Z as gn, Zt as _n, _ as vn, _t as yn, an as bn, at as xn, b as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jt as Un, k as Wn, kt as Gn, ln as Kn, lt as qn, m as Jn, mn as Yn, mt as Xn, nn as Zn, nt as Qn, on as $n, ot as er, p as tr, pn as nr, pt as rr, q as ir, qt as ar, r as or, rn as sr, rt as cr, st as lr, t as ur, tn as dr, tt as fr, u as pr, un as mr, ut as hr, v as gr, vt as _r, w as vr, wt as yr, x as br, y as xr, yt as Sr, z as Cr, zt as wr } from "./common-DSIM5DHJ.js";
|
|
10
|
+
import { a as Tr, n as Er, s as Dr, t as Or } from "./useLifecycle-GNgvNwI-.js";
|
|
11
|
+
import { t as kr } from "./check-CSvxZk5I.js";
|
|
12
|
+
import { A as Ar, C as jr, D as Mr, M as Nr, O as Pr, a as Fr, c as Ir, d as Lr, i as Rr, k as zr, l as Br, n as Vr, o as Hr, r as Ur, s as Wr, t as Gr, w as Kr, x as qr } from "./select-CcidPqlM.js";
|
|
13
|
+
import { B as Jr, C as Yr, J as Xr, Mt as Zr, Q as Qr, S as $r, W as ei, X as ti, Y as ni, Z as ri, _ as ii, _t as ai, a as oi, bn as si, c as ci, f as li, g as ui, h as di, i as fi, kt as pi, m as mi, n as hi, nt as gi, p as _i, pt as vi, r as yi, s as bi, t as xi, v as Si, w as Ci, xn as wi, y as Ti, z as Ei } from "./dropdown-menu-Blu7V6Mk.js";
|
|
14
|
+
import { c as Di, i as Oi, l as ki, o as Ai, s as ji, t as Mi } from "./config-mwEjAmvP.js";
|
|
15
|
+
import { A as Ni, At as Pi, B as Fi, G as Ii, It as Li, J as Ri, K as zi, N as Bi, Nt as Vi, Ot as Hi, Pt as Ui, R as Wi, St as Gi, T as Ki, Tt as qi, V as Ji, X as Yi, Y as Xi, Z as Zi, _ as Qi, at as $i, c as ea, ct as ta, d as na, g as ra, h as ia, jt as aa, k as oa, kt as sa, lt as ca, m as la, ot as ua, p as da, q as fa, s as pa, ut as ma, xt as ha, z as ga } from "./error-entries-BuIE3Ius.js";
|
|
16
|
+
import { a as _a, c as va, d as ya, f as ba, i as xa, l as Sa, n as Ca, o as wa, r as Ta, s as Ea, t as Da } from "./process-output-D2ZjxrHe.js";
|
|
17
|
+
import { a as Oa, c as ka, d as Aa, i as ja, l as Ma, r as Na, u as Pa } from "./glide-utils-qbkRZpEy.js";
|
|
18
|
+
import { n as Fa, t as Ia } from "./ErrorBoundary-CZ19wGWT.js";
|
|
19
|
+
import { n as La, t as Ra } from "./globals-D7JZ5hgJ.js";
|
|
20
|
+
import { a as za, i as Ba, n as Va, r as Ha, s as Ua, t as Wa } from "./strings-BYJNyKmg.js";
|
|
21
21
|
import { t as Ga } from "./react-dom-DUmH0GXv.js";
|
|
22
22
|
import { t as Ka } from "./jsx-runtime-3BD1kT0s.js";
|
|
23
|
-
import { A as qa, D as Ja, F as Ya, I as Xa, L as Za, M as Qa, N as $a, P as eo, a as to, b as no, c as ro, j as io, k as ao, s as oo } from "./use-restore-focus-
|
|
24
|
-
import { i as so, n as co, r as lo, t as uo } from "./error-banner-
|
|
23
|
+
import { A as qa, D as Ja, F as Ya, I as Xa, L as Za, M as Qa, N as $a, P as eo, a as to, b as no, c as ro, j as io, k as ao, s as oo } from "./use-restore-focus-CmflVLWJ.js";
|
|
24
|
+
import { i as so, n as co, r as lo, t as uo } from "./error-banner-DbRFOd2O.js";
|
|
25
25
|
import { m as fo } from "./isArrayLikeObject-B-HXCsex.js";
|
|
26
26
|
import { t as po } from "./pick-tCszMUbm.js";
|
|
27
27
|
import { t as mo } from "./debounce-DrhhziJv.js";
|
|
28
|
-
import {
|
|
28
|
+
import { c as ho, d as go, n as _o, o as vo, p as yo } from "./useTheme-BZ2GGLgm.js";
|
|
29
29
|
import { D as bo, _ as xo, b as So, f as Co, h as wo, i as To, l as Eo, m as Do, n as Oo, t as ko, w as Ao, x as jo, y as Mo } from "./utils-DXkj82sK.js";
|
|
30
30
|
import { t as No } from "./invariant-DLmrl-hA.js";
|
|
31
31
|
import { t as Po } from "./objects-DCmMvZtn.js";
|
|
32
|
-
import { t as Fo } from "./createReducer-
|
|
32
|
+
import { t as Fo } from "./createReducer-Bx81cw8_.js";
|
|
33
33
|
import { R as V, V as Io, f as Lo, j as Ro, t as zo } from "./dist-CYeqK4Xw.js";
|
|
34
34
|
import { c as Bo, i as Vo, m as Ho, n as Uo, o as Wo, r as Go, t as Ko } from "./static-state-BldGd99T.js";
|
|
35
|
-
import { i as qo, n as Jo, r as Yo } from "./formats-
|
|
35
|
+
import { i as qo, n as Jo, r as Yo } from "./formats-gGospKWJ.js";
|
|
36
36
|
import { A as Xo, C as H, D as Zo, E as Qo, F as $o, G as es, I as U, K as ts, L as ns, M as W, N as G, O as rs, P as is, R as as, S as K, U as os, V as ss, W as cs, _ as ls, a as us, b as ds, c as fs, d as ps, f as ms, g as hs, h as gs, i as _s, k as vs, l as ys, m as bs, n as xs, o as Ss, p as Cs, q as ws, r as Ts, s as Es, t as Ds, u as Os, v as q, w as ks, x as As, y as js, z as Ms } from "./schemas-CdscWNy_.js";
|
|
37
37
|
import { o as Ns, r as Ps, t as Fs } from "./arrays-DoQ-AILx.js";
|
|
38
38
|
import { n as Is } from "./once-NnpX_HnX.js";
|
|
@@ -43,8 +43,8 @@ import { p as Vs } from "./dist-B8pkfkzc.js";
|
|
|
43
43
|
import { t as Hs } from "./useAsyncData-DsZMvNXn.js";
|
|
44
44
|
import { t as Us } from "./semaphore-89jsoHtS.js";
|
|
45
45
|
import { D as Ws, O as Gs } from "./vega-loader.browser-B9Pz0EGP.js";
|
|
46
|
-
import { a as Ks, n as qs } from "./loader-
|
|
47
|
-
import { c as Js, d as Ys, i as Xs, l as Zs, o as Qs, s as $s, t as ec, u as tc } from "./code-visibility-
|
|
46
|
+
import { a as Ks, n as qs } from "./loader-BVEtQ4F3.js";
|
|
47
|
+
import { c as Js, d as Ys, i as Xs, l as Zs, o as Qs, s as $s, t as ec, u as tc } from "./code-visibility-D2D_sL1T.js";
|
|
48
48
|
import { t as nc } from "./useDeepCompareMemoize-KMBBux8C.js";
|
|
49
49
|
import { t as rc } from "./esm-BgKjMvWw.js";
|
|
50
50
|
//#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
@@ -4169,7 +4169,7 @@ function sg(e) {
|
|
|
4169
4169
|
}
|
|
4170
4170
|
//#endregion
|
|
4171
4171
|
//#region ../node_modules/.pnpm/react-hook-form@7.54.2_react@19.3.0/node_modules/react-hook-form/dist/index.esm.mjs
|
|
4172
|
-
var X = b(), cg = /* @__PURE__ */ e(
|
|
4172
|
+
var X = b(), cg = /* @__PURE__ */ e(Ne(), 1), lg = ji(), ug = (e) => e.type === "checkbox", dg = (e) => e instanceof Date, fg = (e) => e == null, pg = (e) => typeof e == "object", mg = (e) => !fg(e) && !Array.isArray(e) && pg(e) && !dg(e), hg = (e) => mg(e) && e.target ? ug(e.target) ? e.target.checked : e.target.value : e, gg = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, _g = (e, t) => e.has(gg(t)), vg = (e) => {
|
|
4173
4173
|
let t = e.constructor && e.constructor.prototype;
|
|
4174
4174
|
return mg(t) && t.hasOwnProperty("isPrototypeOf");
|
|
4175
4175
|
}, yg = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
@@ -5587,7 +5587,7 @@ var yv = (e) => {
|
|
|
5587
5587
|
let a;
|
|
5588
5588
|
t[0] === n ? a = t[1] : (a = u("stroke-[1.8px]", n), t[0] = n, t[1] = a);
|
|
5589
5589
|
let o;
|
|
5590
|
-
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(
|
|
5590
|
+
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(De, { className: a }), t[2] = a, t[3] = o);
|
|
5591
5591
|
let s;
|
|
5592
5592
|
return t[4] !== i || t[5] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
5593
5593
|
content: i,
|
|
@@ -6162,7 +6162,7 @@ var Hv = (e) => {
|
|
|
6162
6162
|
form: r,
|
|
6163
6163
|
path: `${i}[${t}]`,
|
|
6164
6164
|
renderers: o
|
|
6165
|
-
}), v && /* @__PURE__ */ (0, Y.jsx)(
|
|
6165
|
+
}), v && /* @__PURE__ */ (0, Y.jsx)(te, {
|
|
6166
6166
|
className: "w-4 h-4 ml-2 my-1 text-muted-foreground hover:text-destructive cursor-pointer absolute right-0 top-5",
|
|
6167
6167
|
onClick: () => {
|
|
6168
6168
|
h(t);
|
|
@@ -6572,18 +6572,18 @@ function ay(e) {
|
|
|
6572
6572
|
return typeof e == "function";
|
|
6573
6573
|
}
|
|
6574
6574
|
function oy(e) {
|
|
6575
|
-
return
|
|
6575
|
+
return ge(e) && (iy(e.render) || ay(e.initialize));
|
|
6576
6576
|
}
|
|
6577
6577
|
function sy(e) {
|
|
6578
6578
|
return typeof e == "function" || oy(e);
|
|
6579
6579
|
}
|
|
6580
6580
|
function cy(e) {
|
|
6581
|
-
return
|
|
6581
|
+
return ge(e) && sy(e.default);
|
|
6582
6582
|
}
|
|
6583
6583
|
var ly = /* @__PURE__ */ new Set(), uy = /* @__PURE__ */ new WeakMap();
|
|
6584
6584
|
function dy(e, t) {
|
|
6585
6585
|
if (cy(e)) return e.default;
|
|
6586
|
-
if (!
|
|
6586
|
+
if (!ge(e) || e.default !== void 0) return null;
|
|
6587
6587
|
let n = iy(e.render) ? e.render : void 0, r = ay(e.initialize) ? e.initialize : void 0;
|
|
6588
6588
|
if (n === void 0 && r === void 0) return null;
|
|
6589
6589
|
let i = uy.get(e);
|
|
@@ -6596,8 +6596,8 @@ function dy(e, t) {
|
|
|
6596
6596
|
return uy.set(e, a), a;
|
|
6597
6597
|
}
|
|
6598
6598
|
function fy(e, t) {
|
|
6599
|
-
let n = "https://anywidget.dev/en/afm/", r =
|
|
6600
|
-
if (
|
|
6599
|
+
let n = "https://anywidget.dev/en/afm/", r = ge(e) && T(e, "render"), i = ge(e) && T(e, "initialize");
|
|
6600
|
+
if (ge(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}`);
|
|
6601
6601
|
if (r || i) {
|
|
6602
6602
|
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 ...";
|
|
6603
6603
|
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}`);
|
|
@@ -7026,8 +7026,8 @@ function My(e) {
|
|
|
7026
7026
|
for (let a of t) {
|
|
7027
7027
|
let t = fo(e, a);
|
|
7028
7028
|
if (t instanceof DataView) {
|
|
7029
|
-
let e =
|
|
7030
|
-
r.push(e), i.push(a),
|
|
7029
|
+
let e = B(t);
|
|
7030
|
+
r.push(e), i.push(a), yo(n, a, e);
|
|
7031
7031
|
}
|
|
7032
7032
|
}
|
|
7033
7033
|
return {
|
|
@@ -7047,7 +7047,7 @@ function Ny(e) {
|
|
|
7047
7047
|
l.warn("[anywidget] Could not find buffer at path", t);
|
|
7048
7048
|
continue;
|
|
7049
7049
|
}
|
|
7050
|
-
typeof n == "string" ?
|
|
7050
|
+
typeof n == "string" ? yo(i, t, E(n)) : yo(i, t, n);
|
|
7051
7051
|
}
|
|
7052
7052
|
return i;
|
|
7053
7053
|
}
|
|
@@ -7153,7 +7153,7 @@ async function Iy(e, t) {
|
|
|
7153
7153
|
method: "custom",
|
|
7154
7154
|
content: e
|
|
7155
7155
|
},
|
|
7156
|
-
buffers: t.map(
|
|
7156
|
+
buffers: t.map(B)
|
|
7157
7157
|
});
|
|
7158
7158
|
}
|
|
7159
7159
|
};
|
|
@@ -7184,7 +7184,7 @@ async function Iy(e, t) {
|
|
|
7184
7184
|
default: Ha(r);
|
|
7185
7185
|
}
|
|
7186
7186
|
}
|
|
7187
|
-
|
|
7187
|
+
Fe(Fy, "WIDGET_REGISTRY");
|
|
7188
7188
|
//#endregion
|
|
7189
7189
|
//#region src/components/ui/navigation.tsx
|
|
7190
7190
|
var Ly = J.forwardRef((e, t) => {
|
|
@@ -7235,7 +7235,7 @@ var By = Hd, Vy = g("group inline-flex rounded-md bg-background px-4 py-2 text-l
|
|
|
7235
7235
|
let o;
|
|
7236
7236
|
n[4] === i ? o = n[5] : (o = u(Vy(), "group", i), n[4] = i, n[5] = o);
|
|
7237
7237
|
let s;
|
|
7238
|
-
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, Y.jsx)(
|
|
7238
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, Y.jsx)(Me, {
|
|
7239
7239
|
className: "relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
7240
7240
|
"aria-hidden": "true"
|
|
7241
7241
|
}), n[6] = s) : s = n[6];
|
|
@@ -7342,7 +7342,7 @@ var Xy = (e) => {
|
|
|
7342
7342
|
let t = (0, X.c)(23), { item: n, preserveQueryParams: r, target: i } = e, a = J.useRef(null), [o, s] = J.useState(!1), c;
|
|
7343
7343
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = (e) => s(e !== ""), t[0] = c) : c = t[0];
|
|
7344
7344
|
let l;
|
|
7345
|
-
t[1] === n.label ? l = t[2] : (l =
|
|
7345
|
+
t[1] === n.label ? l = t[2] : (l = L({ html: n.label }), t[1] = n.label, t[2] = l);
|
|
7346
7346
|
let u;
|
|
7347
7347
|
t[3] === l ? u = t[4] : (u = /* @__PURE__ */ (0, Y.jsx)(Hy, {
|
|
7348
7348
|
ref: a,
|
|
@@ -7355,7 +7355,7 @@ var Xy = (e) => {
|
|
|
7355
7355
|
label: e.label,
|
|
7356
7356
|
href: r(e.href),
|
|
7357
7357
|
target: i(e.href),
|
|
7358
|
-
children: e.description &&
|
|
7358
|
+
children: e.description && L({ html: e.description })
|
|
7359
7359
|
}, e.label), t[9] = r, t[10] = i, t[11] = e) : e = t[11], d = n.items.map(e), t[5] = n.items, t[6] = r, t[7] = i, t[8] = d;
|
|
7360
7360
|
} else d = t[8];
|
|
7361
7361
|
let f;
|
|
@@ -7449,7 +7449,7 @@ var Xy = (e) => {
|
|
|
7449
7449
|
target: a
|
|
7450
7450
|
}, e.label) : /* @__PURE__ */ (0, Y.jsxs)(By, { children: [/* @__PURE__ */ (0, Y.jsx)("div", {
|
|
7451
7451
|
className: "inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-base font-medium text-muted-foreground/80 tracking-wide font-semibold",
|
|
7452
|
-
children:
|
|
7452
|
+
children: L({ html: e.label })
|
|
7453
7453
|
}), /* @__PURE__ */ (0, Y.jsx)(zy, {
|
|
7454
7454
|
className: "ml-4 auto-collapse-nav",
|
|
7455
7455
|
orientation: r,
|
|
@@ -7457,13 +7457,13 @@ var Xy = (e) => {
|
|
|
7457
7457
|
href: o(e.href),
|
|
7458
7458
|
target: a(e.href),
|
|
7459
7459
|
className: Vy({ orientation: r }),
|
|
7460
|
-
children:
|
|
7460
|
+
children: L({ html: e.label })
|
|
7461
7461
|
}, e.label), e.description) }, e.label))
|
|
7462
7462
|
})] }, e.label) : /* @__PURE__ */ (0, Y.jsx)(By, { children: /* @__PURE__ */ (0, Y.jsx)(Wy, {
|
|
7463
7463
|
href: o(e.href),
|
|
7464
7464
|
target: a(e.href),
|
|
7465
7465
|
className: Vy({ orientation: r }),
|
|
7466
|
-
children:
|
|
7466
|
+
children: L({ html: e.label })
|
|
7467
7467
|
}) }, e.label), t[0] = r, t[1] = s);
|
|
7468
7468
|
let c = s, l;
|
|
7469
7469
|
if (t[2] !== n || t[3] !== c) {
|
|
@@ -7487,7 +7487,7 @@ var Xy = (e) => {
|
|
|
7487
7487
|
let s;
|
|
7488
7488
|
n[5] === i ? s = n[6] : (s = u("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", i), n[5] = i, n[6] = s);
|
|
7489
7489
|
let c;
|
|
7490
|
-
n[7] === a ? c = n[8] : (c =
|
|
7490
|
+
n[7] === a ? c = n[8] : (c = L({ html: a }), n[7] = a, n[8] = c);
|
|
7491
7491
|
let l;
|
|
7492
7492
|
n[9] === c ? l = n[10] : (l = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
7493
7493
|
className: "text-base font-medium leading-none",
|
|
@@ -7513,7 +7513,7 @@ nb.displayName = "ListItem";
|
|
|
7513
7513
|
function rb(e, t) {
|
|
7514
7514
|
return t ? /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
7515
7515
|
delayDuration: 200,
|
|
7516
|
-
content:
|
|
7516
|
+
content: L({ html: t }),
|
|
7517
7517
|
children: e
|
|
7518
7518
|
}) : e;
|
|
7519
7519
|
}
|
|
@@ -7621,13 +7621,13 @@ var sb = class e {
|
|
|
7621
7621
|
detail: { objectId: t }
|
|
7622
7622
|
})));
|
|
7623
7623
|
}
|
|
7624
|
-
}, cb = sb.INSTANCE, lb = new
|
|
7624
|
+
}, cb = sb.INSTANCE, lb = new xe("function-call-result", async (e, t) => {
|
|
7625
7625
|
await Ii().sendFunctionRequest({
|
|
7626
7626
|
functionCallId: e,
|
|
7627
7627
|
...t
|
|
7628
7628
|
});
|
|
7629
7629
|
}), ub = (e) => {
|
|
7630
|
-
let t = (0, X.c)(5), { children: n } = e, r = jo(
|
|
7630
|
+
let t = (0, X.c)(5), { children: n } = e, r = jo(ho), i;
|
|
7631
7631
|
t[0] === r ? i = t[1] : (i = sn(r), t[0] = r, t[1] = i);
|
|
7632
7632
|
let a;
|
|
7633
7633
|
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(Kr, {
|
|
@@ -11104,7 +11104,7 @@ function kT(e) {
|
|
|
11104
11104
|
}
|
|
11105
11105
|
//#endregion
|
|
11106
11106
|
//#region src/plugins/core/BadPlugin.tsx
|
|
11107
|
-
var AT =
|
|
11107
|
+
var AT = be, jT = D, MT = ye, NT = ee, PT = (e) => {
|
|
11108
11108
|
let t = (0, X.c)(13), { error: n, badData: r } = e;
|
|
11109
11109
|
if (n instanceof ss) {
|
|
11110
11110
|
let e;
|
|
@@ -11289,10 +11289,10 @@ function UT(e) {
|
|
|
11289
11289
|
this.pluginRef.current?.reset();
|
|
11290
11290
|
}
|
|
11291
11291
|
getChildren() {
|
|
11292
|
-
return this.children.length === 0 ? null : this.children.length === 1 ?
|
|
11292
|
+
return this.children.length === 0 ? null : this.children.length === 1 ? L({
|
|
11293
11293
|
html: this.innerHTML,
|
|
11294
11294
|
alwaysSanitizeHtml: !1
|
|
11295
|
-
}) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children:
|
|
11295
|
+
}) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children: L({
|
|
11296
11296
|
html: e.outerHTML,
|
|
11297
11297
|
alwaysSanitizeHtml: !1
|
|
11298
11298
|
}) }, t));
|
|
@@ -11501,7 +11501,7 @@ function $T() {
|
|
|
11501
11501
|
}
|
|
11502
11502
|
}
|
|
11503
11503
|
getContents() {
|
|
11504
|
-
return
|
|
11504
|
+
return L({ html: this.innerHTML });
|
|
11505
11505
|
}
|
|
11506
11506
|
});
|
|
11507
11507
|
}
|
|
@@ -11768,7 +11768,7 @@ var uE = q([
|
|
|
11768
11768
|
t || (n.stopPropagation(), e.setValue((e) => e + 1));
|
|
11769
11769
|
},
|
|
11770
11770
|
type: "submit",
|
|
11771
|
-
children:
|
|
11771
|
+
children: L({ html: r })
|
|
11772
11772
|
}), c = o && !a ? /* @__PURE__ */ (0, Y.jsx)(rE, { shortcut: o }) : a;
|
|
11773
11773
|
return c ? /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
11774
11774
|
content: c,
|
|
@@ -11808,7 +11808,7 @@ var pE = (e) => {
|
|
|
11808
11808
|
let f;
|
|
11809
11809
|
t[8] === o ? f = t[9] : (f = u("font-prose", o), t[8] = o, t[9] = f);
|
|
11810
11810
|
let p;
|
|
11811
|
-
t[10] === n ? p = t[11] : (p =
|
|
11811
|
+
t[10] === n ? p = t[11] : (p = L({ html: n }), t[10] = n, t[11] = p);
|
|
11812
11812
|
let m;
|
|
11813
11813
|
t[12] !== l || t[13] !== s || t[14] !== f || t[15] !== p ? (m = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
11814
11814
|
part: "label",
|
|
@@ -11913,7 +11913,7 @@ var pE = (e) => {
|
|
|
11913
11913
|
t[20] === Symbol.for("react.memo_cache_sentinel") ? (n = [], t[20] = n) : n = t[20], x = n;
|
|
11914
11914
|
}
|
|
11915
11915
|
let S = x, C = `cm *:outline-hidden border rounded overflow-hidden ${r}`, w = r === "dark" ? "dark" : "light", T = !e.disabled, E;
|
|
11916
|
-
t[21] !== S || t[22] !== g || t[23] !== o || t[24] !== a || t[25] !== i || t[26] !== e.language || t[27] !== e.placeholder || t[28] !== e.showCopyButton || t[29] !== C || t[30] !== w || t[31] !== T ? (E = /* @__PURE__ */ (0, Y.jsx)(
|
|
11916
|
+
t[21] !== S || t[22] !== g || t[23] !== o || t[24] !== a || t[25] !== i || t[26] !== e.language || t[27] !== e.placeholder || t[28] !== e.showCopyButton || t[29] !== C || t[30] !== w || t[31] !== T ? (E = /* @__PURE__ */ (0, Y.jsx)(ve, {
|
|
11917
11917
|
className: C,
|
|
11918
11918
|
theme: w,
|
|
11919
11919
|
minHeight: i,
|
|
@@ -11940,7 +11940,7 @@ var pE = (e) => {
|
|
|
11940
11940
|
output: t
|
|
11941
11941
|
};
|
|
11942
11942
|
} };
|
|
11943
|
-
} }, yE = J.lazy(() => import("./chat-ui-
|
|
11943
|
+
} }, yE = J.lazy(() => import("./chat-ui-zbfp80GW.js").then((e) => ({ default: e.Chatbot }))), bE = K(G({
|
|
11944
11944
|
id: U(),
|
|
11945
11945
|
role: q([
|
|
11946
11946
|
"system",
|
|
@@ -12406,7 +12406,7 @@ function _D(e, t) {
|
|
|
12406
12406
|
}
|
|
12407
12407
|
//#endregion
|
|
12408
12408
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
12409
|
-
var vD = J.lazy(() => import("./glide-data-editor-
|
|
12409
|
+
var vD = J.lazy(() => import("./glide-data-editor-C94G7kD7.js").then((e) => e.t)), yD = eE("marimo-data-editor", { cssStyles: [CE] }).withData(G({
|
|
12410
12410
|
initialValue: G({ edits: K(G({
|
|
12411
12411
|
rowIdx: W(),
|
|
12412
12412
|
columnId: U(),
|
|
@@ -12831,9 +12831,9 @@ function GD(e) {
|
|
|
12831
12831
|
//#endregion
|
|
12832
12832
|
//#region src/components/editor/cell/useAddCell.ts
|
|
12833
12833
|
function KD() {
|
|
12834
|
-
let e = (0, X.c)(4), t = jo(
|
|
12834
|
+
let e = (0, X.c)(4), t = jo(vo), n = F(), { createCell: r } = ie(), i;
|
|
12835
12835
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
12836
|
-
e.includes("alt") &&
|
|
12836
|
+
e.includes("alt") && ce({
|
|
12837
12837
|
autoInstantiate: t,
|
|
12838
12838
|
createCell: r,
|
|
12839
12839
|
fromCellId: n
|
|
@@ -14103,7 +14103,7 @@ var JD = [qD({
|
|
|
14103
14103
|
borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
|
|
14104
14104
|
},
|
|
14105
14105
|
".mo-cm-reactive-reference-hover": { cursor: "pointer" }
|
|
14106
|
-
})], XD = [
|
|
14106
|
+
})], XD = [ue(), Io.lineWrapping], ZD = [Vs(), Io.lineWrapping], QD = [Ls(), Io.lineWrapping];
|
|
14107
14107
|
function $D(e) {
|
|
14108
14108
|
switch (e) {
|
|
14109
14109
|
case "sql": return ZD;
|
|
@@ -14187,7 +14187,7 @@ var tO = (e) => {
|
|
|
14187
14187
|
}), t[3] = r, t[4] = a), a;
|
|
14188
14188
|
}, nO = (e) => {
|
|
14189
14189
|
let t = (0, X.c)(9), n = e.hidden ? "Show code" : "Hide code", r = e.hidden ? "Show code" : "Hide code", i;
|
|
14190
|
-
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(
|
|
14190
|
+
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(ae, {
|
|
14191
14191
|
size: 14,
|
|
14192
14192
|
strokeWidth: 1.5
|
|
14193
14193
|
}) : /* @__PURE__ */ (0, Y.jsx)($n, {
|
|
@@ -14242,7 +14242,7 @@ var aO = (e) => {
|
|
|
14242
14242
|
let t = (0, X.c)(5), { text: n, tooltip: r } = e, i;
|
|
14243
14243
|
t[0] === r ? i = t[1] : (i = r && /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
14244
14244
|
content: r,
|
|
14245
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
14245
|
+
children: /* @__PURE__ */ (0, Y.jsx)(se, { className: "w-3 h-3 mt-0.5" })
|
|
14246
14246
|
}), t[0] = r, t[1] = i);
|
|
14247
14247
|
let a;
|
|
14248
14248
|
return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ (0, Y.jsxs)("h2", {
|
|
@@ -14284,7 +14284,7 @@ var aO = (e) => {
|
|
|
14284
14284
|
let t = (0, X.c)(5), { children: n, className: r } = e, i;
|
|
14285
14285
|
t[0] === r ? i = t[1] : (i = u("py-1", r), t[0] = r, t[1] = i);
|
|
14286
14286
|
let a;
|
|
14287
|
-
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(
|
|
14287
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(me, {
|
|
14288
14288
|
className: i,
|
|
14289
14289
|
children: n
|
|
14290
14290
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
@@ -14299,7 +14299,7 @@ var aO = (e) => {
|
|
|
14299
14299
|
let t = (0, X.c)(5), { children: n, wrapperClassName: r } = e, i;
|
|
14300
14300
|
t[0] === r ? i = t[1] : (i = u("pb-2 flex flex-col gap-2", r), t[0] = r, t[1] = i);
|
|
14301
14301
|
let a;
|
|
14302
|
-
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(
|
|
14302
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(Ae, {
|
|
14303
14303
|
wrapperClassName: i,
|
|
14304
14304
|
children: n
|
|
14305
14305
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
@@ -14617,7 +14617,7 @@ var aO = (e) => {
|
|
|
14617
14617
|
open: o,
|
|
14618
14618
|
onOpenChange: s,
|
|
14619
14619
|
children: [/* @__PURE__ */ (0, Y.jsx)(Wr, { children: /* @__PURE__ */ (0, Y.jsx)(Ir, { placeholder: "Select an option" }) }), /* @__PURE__ */ (0, Y.jsx)(Vr, { children: /* @__PURE__ */ (0, Y.jsx)(Ur, { children: nt.map((e) => {
|
|
14620
|
-
let t =
|
|
14620
|
+
let t = Te[e], n = e === "string" ? "categorical" : e;
|
|
14621
14621
|
return /* @__PURE__ */ (0, Y.jsx)(Rr, {
|
|
14622
14622
|
value: e,
|
|
14623
14623
|
className: "flex flex-col items-start justify-center",
|
|
@@ -14740,7 +14740,7 @@ var aO = (e) => {
|
|
|
14740
14740
|
};
|
|
14741
14741
|
function OO(e) {
|
|
14742
14742
|
if (e.name.trim() === "") return null;
|
|
14743
|
-
let t =
|
|
14743
|
+
let t = Te[e.type];
|
|
14744
14744
|
return /* @__PURE__ */ (0, Y.jsx)(Rr, {
|
|
14745
14745
|
value: e.name,
|
|
14746
14746
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
@@ -15187,12 +15187,12 @@ var $O = () => {
|
|
|
15187
15187
|
p,
|
|
15188
15188
|
/* @__PURE__ */ (0, Y.jsxs)("p", {
|
|
15189
15189
|
className: "text-xs",
|
|
15190
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
15190
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(se, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
|
|
15191
15191
|
})
|
|
15192
15192
|
] })]
|
|
15193
15193
|
}), e[12] = m) : m = e[12];
|
|
15194
15194
|
let h;
|
|
15195
|
-
return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, Y.jsxs)(
|
|
15195
|
+
return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, Y.jsxs)(de, {
|
|
15196
15196
|
type: "multiple",
|
|
15197
15197
|
children: [
|
|
15198
15198
|
a,
|
|
@@ -15230,7 +15230,7 @@ var $O = () => {
|
|
|
15230
15230
|
saveFunction: t
|
|
15231
15231
|
}), e[6] = i, e[7] = t, e[8] = l) : l = e[8];
|
|
15232
15232
|
let u;
|
|
15233
|
-
return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, Y.jsxs)(
|
|
15233
|
+
return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, Y.jsxs)(de, {
|
|
15234
15234
|
type: "multiple",
|
|
15235
15235
|
children: [o, /* @__PURE__ */ (0, Y.jsxs)(dO, {
|
|
15236
15236
|
value: "tooltips",
|
|
@@ -15501,7 +15501,7 @@ var hk = "marimo:charts:v2", gk = G({
|
|
|
15501
15501
|
}
|
|
15502
15502
|
}, bk = wo(hk, /* @__PURE__ */ new Map(), yk);
|
|
15503
15503
|
function xk() {
|
|
15504
|
-
return
|
|
15504
|
+
return _e();
|
|
15505
15505
|
}
|
|
15506
15506
|
function Sk(e, t) {
|
|
15507
15507
|
let n = Va(t);
|
|
@@ -15819,7 +15819,7 @@ var jk = (e) => {
|
|
|
15819
15819
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsxs)(Qt, {
|
|
15820
15820
|
value: "data",
|
|
15821
15821
|
className: "w-1/2 h-6",
|
|
15822
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
15822
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(le, { className: "w-4 h-4 mr-2" }), "Data"]
|
|
15823
15823
|
}), t[10] = f) : f = t[10];
|
|
15824
15824
|
let p;
|
|
15825
15825
|
t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, Y.jsxs)(Jt, {
|
|
@@ -15827,7 +15827,7 @@ var jk = (e) => {
|
|
|
15827
15827
|
children: [f, /* @__PURE__ */ (0, Y.jsxs)(Qt, {
|
|
15828
15828
|
value: "style",
|
|
15829
15829
|
className: "w-1/2 h-6",
|
|
15830
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
15830
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(z, { className: "w-4 h-4 mr-2" }), "Style"]
|
|
15831
15831
|
})]
|
|
15832
15832
|
}), t[11] = p) : p = t[11];
|
|
15833
15833
|
let m;
|
|
@@ -15889,7 +15889,7 @@ function Rk(e) {
|
|
|
15889
15889
|
//#endregion
|
|
15890
15890
|
//#region src/components/data-table/hooks/use-panel-ownership.ts
|
|
15891
15891
|
function zk(e, t) {
|
|
15892
|
-
let n = (0, X.c)(16), r = jo(rx), { focusCell: i } =
|
|
15892
|
+
let n = (0, X.c)(16), r = jo(rx), { focusCell: i } = oe(), a = F(), [o, s] = So(tx), [c, u] = So(ex), [d, f] = So(nx), p = Bk(e, t);
|
|
15893
15893
|
!t && r && (l.error("CellId is not found, defaulting to fixed mode"), r = !1);
|
|
15894
15894
|
let m = (e) => c === p && d && e === o, h = a === t, g = c && Vk(c, t);
|
|
15895
15895
|
r && h && c !== p && !g && u(p);
|
|
@@ -15981,7 +15981,7 @@ function Yk({ stats: e, dataType: t, locale: n }) {
|
|
|
15981
15981
|
children: [
|
|
15982
15982
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
15983
15983
|
className: "text-xs min-w-[60px] capitalize",
|
|
15984
|
-
children:
|
|
15984
|
+
children: Ee(e, t)
|
|
15985
15985
|
}),
|
|
15986
15986
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
15987
15987
|
className: "text-xs font-bold text-muted-foreground tracking-wide",
|
|
@@ -15997,7 +15997,7 @@ function Yk({ stats: e, dataType: t, locale: n }) {
|
|
|
15997
15997
|
}
|
|
15998
15998
|
var Xk = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
15999
15999
|
className: "flex justify-center",
|
|
16000
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
16000
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Se, { className: "size-4" })
|
|
16001
16001
|
});
|
|
16002
16002
|
function Zk(e, t) {
|
|
16003
16003
|
return /* @__PURE__ */ (0, Y.jsx)(J.Suspense, {
|
|
@@ -16023,9 +16023,9 @@ function Zk(e, t) {
|
|
|
16023
16023
|
});
|
|
16024
16024
|
}
|
|
16025
16025
|
var Qk = (e) => {
|
|
16026
|
-
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i = jo(
|
|
16026
|
+
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i = jo(vo), a = F(), { createCell: o } = ie(), s;
|
|
16027
16027
|
t[0] !== i || t[1] !== o || t[2] !== a ? (s = (e) => {
|
|
16028
|
-
e.includes("alt") &&
|
|
16028
|
+
e.includes("alt") && ce({
|
|
16029
16029
|
autoInstantiate: i,
|
|
16030
16030
|
createCell: o,
|
|
16031
16031
|
fromCellId: a
|
|
@@ -16085,7 +16085,7 @@ function $k({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
|
|
|
16085
16085
|
className: "gap-1",
|
|
16086
16086
|
disabled: f === 0,
|
|
16087
16087
|
onClick: () => a.toggleAllColumnsVisible(!0),
|
|
16088
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16088
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(ae, { className: "w-3 h-3" }), "Show all"]
|
|
16089
16089
|
})
|
|
16090
16090
|
}), /* @__PURE__ */ (0, Y.jsx)(qe, {
|
|
16091
16091
|
content: "Hide all columns",
|
|
@@ -16168,7 +16168,7 @@ function eA({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
16168
16168
|
onClick: (e) => {
|
|
16169
16169
|
e.preventDefault(), e.stopPropagation(), t.toggleVisibility(!t.getIsVisible());
|
|
16170
16170
|
},
|
|
16171
|
-
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(
|
|
16171
|
+
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(ae, {
|
|
16172
16172
|
className: "h-3 w-3",
|
|
16173
16173
|
strokeWidth: 2.5
|
|
16174
16174
|
}) : /* @__PURE__ */ (0, Y.jsx)($n, {
|
|
@@ -16261,12 +16261,12 @@ var tA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16261
16261
|
});
|
|
16262
16262
|
if (i === 0) return /* @__PURE__ */ (0, Y.jsx)(iA, {
|
|
16263
16263
|
kind: "info",
|
|
16264
|
-
Icon:
|
|
16264
|
+
Icon: se,
|
|
16265
16265
|
message: "No rows selected"
|
|
16266
16266
|
});
|
|
16267
16267
|
if (!y) return /* @__PURE__ */ (0, Y.jsx)(zn, {
|
|
16268
16268
|
milliseconds: 200,
|
|
16269
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
16269
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Se, {
|
|
16270
16270
|
size: "medium",
|
|
16271
16271
|
centered: !0
|
|
16272
16272
|
})
|
|
@@ -16333,8 +16333,8 @@ var tA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16333
16333
|
}) })]
|
|
16334
16334
|
});
|
|
16335
16335
|
}, t[18] = b, t[19] = a, t[20] = y, t[21] = u, t[22] = h, t[23] = i, t[24] = O) : O = t[24];
|
|
16336
|
-
let
|
|
16337
|
-
t[25] !== p || t[26] !== c || t[27] !== s || t[28] !== T ? (
|
|
16336
|
+
let k = O, A;
|
|
16337
|
+
t[25] !== p || t[26] !== c || t[27] !== s || t[28] !== T ? (A = s && /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
16338
16338
|
className: "flex items-center",
|
|
16339
16339
|
title: "Select/unselect the current row",
|
|
16340
16340
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
@@ -16353,84 +16353,84 @@ var tA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16353
16353
|
shortcut: "Space",
|
|
16354
16354
|
className: "scale-75"
|
|
16355
16355
|
})]
|
|
16356
|
-
}), t[25] = p, t[26] = c, t[27] = s, t[28] = T, t[29] =
|
|
16357
|
-
let
|
|
16358
|
-
t[30] === S ?
|
|
16359
|
-
let
|
|
16360
|
-
t[32] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
16361
|
-
let
|
|
16362
|
-
t[33] !==
|
|
16356
|
+
}), t[25] = p, t[26] = c, t[27] = s, t[28] = T, t[29] = A) : A = t[29];
|
|
16357
|
+
let j;
|
|
16358
|
+
t[30] === S ? j = t[31] : (j = () => S(0), t[30] = S, t[31] = j);
|
|
16359
|
+
let M = n === 0, N;
|
|
16360
|
+
t[32] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, Y.jsx)(nr, {}), t[32] = N) : N = t[32];
|
|
16361
|
+
let P;
|
|
16362
|
+
t[33] !== j || t[34] !== M ? (P = /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
16363
16363
|
variant: "outline",
|
|
16364
16364
|
size: "xs",
|
|
16365
16365
|
className: "h-6 w-6 p-0.5 ml-auto",
|
|
16366
|
-
onClick:
|
|
16367
|
-
disabled:
|
|
16366
|
+
onClick: j,
|
|
16367
|
+
disabled: M,
|
|
16368
16368
|
"aria-label": "Go to first row",
|
|
16369
|
-
children:
|
|
16370
|
-
}), t[33] =
|
|
16371
|
-
let
|
|
16372
|
-
t[36] !== n || t[37] !== S ? (
|
|
16373
|
-
let
|
|
16374
|
-
t[39] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
16375
|
-
let
|
|
16376
|
-
t[40] !==
|
|
16369
|
+
children: N
|
|
16370
|
+
}), t[33] = j, t[34] = M, t[35] = P) : P = t[35];
|
|
16371
|
+
let F;
|
|
16372
|
+
t[36] !== n || t[37] !== S ? (F = () => S(n - 1), t[36] = n, t[37] = S, t[38] = F) : F = t[38];
|
|
16373
|
+
let I = n === 0, L;
|
|
16374
|
+
t[39] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ (0, Y.jsx)(Rn, {}), t[39] = L) : L = t[39];
|
|
16375
|
+
let R;
|
|
16376
|
+
t[40] !== F || t[41] !== I ? (R = /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
16377
16377
|
variant: "outline",
|
|
16378
16378
|
size: "xs",
|
|
16379
16379
|
className: "h-6 w-6 p-0.5",
|
|
16380
|
-
onClick:
|
|
16381
|
-
disabled:
|
|
16380
|
+
onClick: F,
|
|
16381
|
+
disabled: I,
|
|
16382
16382
|
"aria-label": "Previous row",
|
|
16383
|
-
children:
|
|
16384
|
-
}), t[40] =
|
|
16383
|
+
children: L
|
|
16384
|
+
}), t[40] = F, t[41] = I, t[42] = R) : R = t[42];
|
|
16385
|
+
let z;
|
|
16386
|
+
t[43] !== m || t[44] !== n || t[45] !== h || t[46] !== i ? (z = h ? `Row ${n + 1}` : `Row ${n + 1} of ${qt(i, m)}`, t[43] = m, t[44] = n, t[45] = h, t[46] = i, t[47] = z) : z = t[47];
|
|
16385
16387
|
let B;
|
|
16386
|
-
t[
|
|
16387
|
-
let ee;
|
|
16388
|
-
t[48] === B ? ee = t[49] : (ee = /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
16388
|
+
t[48] === z ? B = t[49] : (B = /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
16389
16389
|
className: "text-xs",
|
|
16390
|
-
children:
|
|
16391
|
-
}), t[48] =
|
|
16392
|
-
let
|
|
16393
|
-
t[50] !== n || t[51] !== S ? (
|
|
16394
|
-
let
|
|
16395
|
-
t[53] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
16396
|
-
let
|
|
16397
|
-
t[54] !==
|
|
16390
|
+
children: z
|
|
16391
|
+
}), t[48] = z, t[49] = B);
|
|
16392
|
+
let ee;
|
|
16393
|
+
t[50] !== n || t[51] !== S ? (ee = () => S(n + 1), t[50] = n, t[51] = S, t[52] = ee) : ee = t[52];
|
|
16394
|
+
let te = !h && n === i - 1, ne;
|
|
16395
|
+
t[53] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ (0, Y.jsx)(wi, {}), t[53] = ne) : ne = t[53];
|
|
16396
|
+
let re;
|
|
16397
|
+
t[54] !== ee || t[55] !== te ? (re = /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
16398
16398
|
variant: "outline",
|
|
16399
16399
|
size: "xs",
|
|
16400
16400
|
className: "h-6 w-6 p-0.5",
|
|
16401
|
-
onClick:
|
|
16402
|
-
disabled:
|
|
16401
|
+
onClick: ee,
|
|
16402
|
+
disabled: te,
|
|
16403
16403
|
"aria-label": "Next row",
|
|
16404
|
-
children:
|
|
16405
|
-
}), t[54] =
|
|
16406
|
-
let
|
|
16407
|
-
t[57] !== S || t[58] !== h || t[59] !== i ? (
|
|
16404
|
+
children: ne
|
|
16405
|
+
}), t[54] = ee, t[55] = te, t[56] = re) : re = t[56];
|
|
16406
|
+
let ie;
|
|
16407
|
+
t[57] !== S || t[58] !== h || t[59] !== i ? (ie = () => {
|
|
16408
16408
|
h || S(i - 1);
|
|
16409
|
-
}, t[57] = S, t[58] = h, t[59] = i, t[60] =
|
|
16410
|
-
let
|
|
16411
|
-
t[61] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
16409
|
+
}, t[57] = S, t[58] = h, t[59] = i, t[60] = ie) : ie = t[60];
|
|
16410
|
+
let ae = h || n === i - 1, oe;
|
|
16411
|
+
t[61] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ (0, Y.jsx)(Mn, {}), t[61] = oe) : oe = t[61];
|
|
16412
16412
|
let ce;
|
|
16413
|
-
t[62] !==
|
|
16413
|
+
t[62] !== ie || t[63] !== ae ? (ce = /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
16414
16414
|
variant: "outline",
|
|
16415
16415
|
size: "xs",
|
|
16416
16416
|
className: "h-6 w-6 p-0.5",
|
|
16417
|
-
onClick:
|
|
16418
|
-
disabled:
|
|
16417
|
+
onClick: ie,
|
|
16418
|
+
disabled: ae,
|
|
16419
16419
|
"aria-label": "Go to last row",
|
|
16420
|
-
children:
|
|
16421
|
-
}), t[62] =
|
|
16420
|
+
children: oe
|
|
16421
|
+
}), t[62] = ie, t[63] = ae, t[64] = ce) : ce = t[64];
|
|
16422
16422
|
let le;
|
|
16423
|
-
t[65] !==
|
|
16423
|
+
t[65] !== P || t[66] !== R || t[67] !== B || t[68] !== re || t[69] !== ce || t[70] !== A ? (le = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
16424
16424
|
className: "flex flex-row gap-2 items-center mr-2 px-2",
|
|
16425
16425
|
children: [
|
|
16426
|
-
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16426
|
+
A,
|
|
16427
|
+
P,
|
|
16428
|
+
R,
|
|
16429
|
+
B,
|
|
16430
|
+
re,
|
|
16431
16431
|
ce
|
|
16432
16432
|
]
|
|
16433
|
-
}), t[65] =
|
|
16433
|
+
}), t[65] = P, t[66] = R, t[67] = B, t[68] = re, t[69] = ce, t[70] = A, t[71] = le) : le = t[71];
|
|
16434
16434
|
let ue;
|
|
16435
16435
|
t[72] === u ? ue = t[73] : (ue = /* @__PURE__ */ (0, Y.jsx)(Bt, {
|
|
16436
16436
|
className: "bg-background",
|
|
@@ -16443,7 +16443,7 @@ var tA = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
16443
16443
|
})
|
|
16444
16444
|
}), t[72] = u, t[73] = ue);
|
|
16445
16445
|
let de;
|
|
16446
|
-
t[74] ===
|
|
16446
|
+
t[74] === k ? de = t[75] : (de = k(), t[74] = k, t[75] = de);
|
|
16447
16447
|
let fe;
|
|
16448
16448
|
return t[76] !== D || t[77] !== le || t[78] !== ue || t[79] !== de ? (fe = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
16449
16449
|
className: "flex flex-col gap-3 focus:outline-hidden",
|
|
@@ -16728,7 +16728,7 @@ var xA = (e) => {
|
|
|
16728
16728
|
bA(l, o), d(!1);
|
|
16729
16729
|
}, t[7] = o, t[8] = l, t[9] = e) : e = t[9];
|
|
16730
16730
|
let n;
|
|
16731
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(
|
|
16731
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(N, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
|
|
16732
16732
|
let r;
|
|
16733
16733
|
return t[11] === e ? r = t[12] : (r = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
16734
16734
|
className: "flex h-20 items-center justify-center",
|
|
@@ -17558,7 +17558,7 @@ function KA(e) {
|
|
|
17558
17558
|
}
|
|
17559
17559
|
//#endregion
|
|
17560
17560
|
//#region src/plugins/impl/data-explorer/DataExplorerPlugin.tsx
|
|
17561
|
-
var qA = J.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
17561
|
+
var qA = J.lazy(() => import("./ConnectedDataExplorerComponent-DGOAQFtf.js")), JA = eE("marimo-data-explorer").withData(G({
|
|
17562
17562
|
label: U().nullish(),
|
|
17563
17563
|
data: U()
|
|
17564
17564
|
})).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(qA, {
|
|
@@ -17570,7 +17570,7 @@ var qA = J.lazy(() => import("./ConnectedDataExplorerComponent-BBihxHrr.js")), J
|
|
|
17570
17570
|
too_many_values: !1
|
|
17571
17571
|
})), QA = (e) => {
|
|
17572
17572
|
let t = (0, X.c)(4), { type: n } = e, r;
|
|
17573
|
-
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)(Lu, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(zu, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(Dr, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(Tr, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(
|
|
17573
|
+
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)(Lu, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(zu, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(Dr, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(Tr, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(R, { size: 14 }), t[0] = n, t[1] = r);
|
|
17574
17574
|
let i = r, a;
|
|
17575
17575
|
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
17576
17576
|
className: "border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",
|
|
@@ -18051,7 +18051,7 @@ var fj = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18051
18051
|
"to automatically apply transformations."
|
|
18052
18052
|
] })]
|
|
18053
18053
|
}),
|
|
18054
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
18054
|
+
children: /* @__PURE__ */ (0, Y.jsx)(se, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
|
|
18055
18055
|
})]
|
|
18056
18056
|
})
|
|
18057
18057
|
]
|
|
@@ -18083,7 +18083,7 @@ var fj = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18083
18083
|
}
|
|
18084
18084
|
o(t);
|
|
18085
18085
|
},
|
|
18086
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
18086
|
+
children: /* @__PURE__ */ (0, Y.jsx)(te, { className: "w-3 h-3" })
|
|
18087
18087
|
})]
|
|
18088
18088
|
}, i);
|
|
18089
18089
|
}), d;
|
|
@@ -18157,7 +18157,7 @@ var fj = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18157
18157
|
}), t[9] = i, t[10] = l, t[11] = u) : u = t[11], u;
|
|
18158
18158
|
}, hj = {
|
|
18159
18159
|
aggregate: Je,
|
|
18160
|
-
column_conversion:
|
|
18160
|
+
column_conversion: P,
|
|
18161
18161
|
filter_rows: bn,
|
|
18162
18162
|
group_by: $u,
|
|
18163
18163
|
rename_column: Aa,
|
|
@@ -18168,7 +18168,7 @@ var fj = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
18168
18168
|
explode_columns: Ru,
|
|
18169
18169
|
expand_dict: Wu,
|
|
18170
18170
|
unique: Hu,
|
|
18171
|
-
pivot:
|
|
18171
|
+
pivot: N
|
|
18172
18172
|
};
|
|
18173
18173
|
function gj(e) {
|
|
18174
18174
|
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank", "noopener");
|
|
@@ -18271,7 +18271,7 @@ var _j = eE("marimo-dataframe").withData(G({
|
|
|
18271
18271
|
t[20] === A ? re = t[21] : (re = A && /* @__PURE__ */ (0, Y.jsxs)(Qt, {
|
|
18272
18272
|
value: "sql-code",
|
|
18273
18273
|
className: "text-xs py-1",
|
|
18274
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
18274
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(le, { className: "w-3 h-3 mr-2" }), "SQL Code"]
|
|
18275
18275
|
}), t[20] = A, t[21] = re);
|
|
18276
18276
|
let ie;
|
|
18277
18277
|
t[22] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ (0, Y.jsx)("div", { className: "grow" }), t[22] = ie) : ie = t[22];
|
|
@@ -18285,32 +18285,32 @@ var _j = eE("marimo-dataframe").withData(G({
|
|
|
18285
18285
|
ie
|
|
18286
18286
|
]
|
|
18287
18287
|
}), t[23] = ne, t[24] = re, t[25] = ae) : ae = t[25];
|
|
18288
|
+
let oe;
|
|
18289
|
+
t[26] === S ? oe = t[27] : (oe = S && /* @__PURE__ */ (0, Y.jsx)(Se, { size: "small" }), t[26] = S, t[27] = oe);
|
|
18288
18290
|
let se;
|
|
18289
|
-
t[
|
|
18290
|
-
let ce;
|
|
18291
|
-
t[28] !== ae || t[29] !== se ? (ce = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
18291
|
+
t[28] !== ae || t[29] !== oe ? (se = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
18292
18292
|
className: "flex items-center gap-2",
|
|
18293
|
-
children: [ae,
|
|
18294
|
-
}), t[28] = ae, t[29] =
|
|
18295
|
-
let
|
|
18296
|
-
t[31] !== c || t[32] !== s ? (
|
|
18293
|
+
children: [ae, oe]
|
|
18294
|
+
}), t[28] = ae, t[29] = oe, t[30] = se) : se = t[30];
|
|
18295
|
+
let ce;
|
|
18296
|
+
t[31] !== c || t[32] !== s ? (ce = (e) => {
|
|
18297
18297
|
Co(e, s) || (c(e), N(e));
|
|
18298
|
-
}, t[31] = c, t[32] = s, t[33] =
|
|
18298
|
+
}, t[31] = c, t[32] = s, t[33] = ce) : ce = t[33];
|
|
18299
18299
|
let ue;
|
|
18300
|
-
t[34] !== O || t[35] !== n || t[36] !== u || t[37] !== M || t[38] !== o || t[39] !==
|
|
18300
|
+
t[34] !== O || t[35] !== n || t[36] !== u || t[37] !== M || t[38] !== o || t[39] !== ce ? (ue = /* @__PURE__ */ (0, Y.jsx)(Kt, {
|
|
18301
18301
|
value: "transform",
|
|
18302
18302
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18303
18303
|
children: /* @__PURE__ */ (0, Y.jsx)(fj, {
|
|
18304
18304
|
ref: P,
|
|
18305
18305
|
initialValue: M,
|
|
18306
18306
|
columns: n,
|
|
18307
|
-
onChange:
|
|
18307
|
+
onChange: ce,
|
|
18308
18308
|
onInvalidChange: N,
|
|
18309
18309
|
getColumnValues: u,
|
|
18310
18310
|
columnTypesPerStep: O,
|
|
18311
18311
|
lazy: o
|
|
18312
18312
|
})
|
|
18313
|
-
}), t[34] = O, t[35] = n, t[36] = u, t[37] = M, t[38] = o, t[39] =
|
|
18313
|
+
}), t[34] = O, t[35] = n, t[36] = u, t[37] = M, t[38] = o, t[39] = ce, t[40] = ue) : ue = t[40];
|
|
18314
18314
|
let de;
|
|
18315
18315
|
t[41] === k ? de = t[42] : (de = k && /* @__PURE__ */ (0, Y.jsx)(Kt, {
|
|
18316
18316
|
value: "python-code",
|
|
@@ -18334,16 +18334,16 @@ var _j = eE("marimo-dataframe").withData(G({
|
|
|
18334
18334
|
})
|
|
18335
18335
|
}), t[43] = A, t[44] = fe);
|
|
18336
18336
|
let pe;
|
|
18337
|
-
t[45] !== I || t[46] !==
|
|
18337
|
+
t[45] !== I || t[46] !== se || t[47] !== ue || t[48] !== de || t[49] !== fe ? (pe = /* @__PURE__ */ (0, Y.jsxs)(Un, {
|
|
18338
18338
|
defaultValue: "transform",
|
|
18339
18339
|
onValueChange: I,
|
|
18340
18340
|
children: [
|
|
18341
|
-
|
|
18341
|
+
se,
|
|
18342
18342
|
ue,
|
|
18343
18343
|
de,
|
|
18344
18344
|
fe
|
|
18345
18345
|
]
|
|
18346
|
-
}), t[45] = I, t[46] =
|
|
18346
|
+
}), t[45] = I, t[46] = se, t[47] = ue, t[48] = de, t[49] = fe, t[50] = pe) : pe = t[50];
|
|
18347
18347
|
let me;
|
|
18348
18348
|
t[51] === x ? me = t[52] : (me = x && /* @__PURE__ */ (0, Y.jsx)(co, { error: x }), t[51] = x, t[52] = me);
|
|
18349
18349
|
let he = w || "", ge = T ?? 0, _e = j ?? 0, ve = E || Fs.EMPTY, ye = T && T > 5 || !1, be;
|
|
@@ -18448,12 +18448,12 @@ var Cj = {
|
|
|
18448
18448
|
python: Gu,
|
|
18449
18449
|
code: Gu,
|
|
18450
18450
|
json: Wu,
|
|
18451
|
-
text:
|
|
18451
|
+
text: I,
|
|
18452
18452
|
image: ed,
|
|
18453
18453
|
audio: Ku,
|
|
18454
18454
|
video: qu,
|
|
18455
18455
|
data: Ju,
|
|
18456
|
-
pdf:
|
|
18456
|
+
pdf: I,
|
|
18457
18457
|
zip: Yu,
|
|
18458
18458
|
unknown: ba
|
|
18459
18459
|
};
|
|
@@ -18577,20 +18577,20 @@ var kj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18577
18577
|
}), h(0)), (0, J.useLayoutEffect)(() => {
|
|
18578
18578
|
y.current && (y.current = !1, g.current[0]?.focus());
|
|
18579
18579
|
}, [D]);
|
|
18580
|
-
let A = S?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all",
|
|
18580
|
+
let A = S?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all", P = A.filter((e) => M && e.is_directory || N && !e.is_directory), F = P.length > 0 && P.every((e) => j.has(e.path));
|
|
18581
18581
|
if (!S && C) return /* @__PURE__ */ (0, Y.jsx)(uo, {
|
|
18582
18582
|
kind: "danger",
|
|
18583
18583
|
children: C.message
|
|
18584
18584
|
});
|
|
18585
|
-
let
|
|
18585
|
+
let I = Ce.guessDeliminator(n).deliminator, R = e.map((e) => /* @__PURE__ */ (0, Y.jsx)("li", { children: e.path }, e.id));
|
|
18586
18586
|
function z(e) {
|
|
18587
18587
|
if (f) return;
|
|
18588
18588
|
if (p(!0), e === Dj) {
|
|
18589
|
-
if (l ===
|
|
18589
|
+
if (l === I) {
|
|
18590
18590
|
p(!1);
|
|
18591
18591
|
return;
|
|
18592
18592
|
}
|
|
18593
|
-
e =
|
|
18593
|
+
e = Oe.dirname(l), e === "" && (e = I);
|
|
18594
18594
|
}
|
|
18595
18595
|
let t = e.length < n.length;
|
|
18596
18596
|
if (o && t) {
|
|
@@ -18620,7 +18620,7 @@ var kj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18620
18620
|
j.has(n) ? t(e.filter((e) => e.path !== n)) : t(i ? [...e, o] : [o]);
|
|
18621
18621
|
}
|
|
18622
18622
|
function te() {
|
|
18623
|
-
t(e.filter((e) =>
|
|
18623
|
+
t(e.filter((e) => Oe.dirname(e.path) !== l));
|
|
18624
18624
|
}
|
|
18625
18625
|
function ne() {
|
|
18626
18626
|
let n = [];
|
|
@@ -18687,20 +18687,20 @@ var kj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18687
18687
|
}
|
|
18688
18688
|
let { protocol: oe, parentDirectories: se } = Tj({
|
|
18689
18689
|
path: l,
|
|
18690
|
-
delimiter:
|
|
18690
|
+
delimiter: I,
|
|
18691
18691
|
initialPath: n,
|
|
18692
18692
|
restrictNavigation: o
|
|
18693
18693
|
}), ce = se.toReversed().map((e) => ({
|
|
18694
18694
|
path: e,
|
|
18695
|
-
name: e === oe ? oe : e.split(
|
|
18696
|
-
})), le = r === "all" ?
|
|
18695
|
+
name: e === oe ? oe : e.split(I).findLast(Boolean) ?? e
|
|
18696
|
+
})), le = r === "all" ? pe.of("file", "folder") : r === "directory" ? pe.of("folder") : pe.of("file");
|
|
18697
18697
|
return /* @__PURE__ */ (0, Y.jsxs)("div", { children: [
|
|
18698
18698
|
C && /* @__PURE__ */ (0, Y.jsx)(uo, {
|
|
18699
18699
|
kind: "danger",
|
|
18700
18700
|
children: C.message
|
|
18701
18701
|
}),
|
|
18702
18702
|
(() => {
|
|
18703
|
-
let e = a ?? `Select ${le.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(Lr, { children:
|
|
18703
|
+
let e = a ?? `Select ${le.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(Lr, { children: L({ html: e }) });
|
|
18704
18704
|
return i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
18705
18705
|
className: "flex items-center justify-between border px-2",
|
|
18706
18706
|
children: [/* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -18709,8 +18709,8 @@ var kj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18709
18709
|
}), /* @__PURE__ */ (0, Y.jsx)("div", { children: /* @__PURE__ */ (0, Y.jsx)(_, {
|
|
18710
18710
|
size: "xs",
|
|
18711
18711
|
variant: "link",
|
|
18712
|
-
onClick:
|
|
18713
|
-
children:
|
|
18712
|
+
onClick: F ? te : ne,
|
|
18713
|
+
children: F ? "Deselect all" : "Select all"
|
|
18714
18714
|
}) })]
|
|
18715
18715
|
}) : t;
|
|
18716
18716
|
})(),
|
|
@@ -18753,7 +18753,7 @@ var kj = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
18753
18753
|
children: [E && /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
18754
18754
|
className: "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-background/80 text-xs text-muted-foreground pointer-events-none z-10",
|
|
18755
18755
|
role: "status",
|
|
18756
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
18756
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Se, { size: "small" }), /* @__PURE__ */ (0, Y.jsx)("span", { children: "Listing files..." })]
|
|
18757
18757
|
}), /* @__PURE__ */ (0, Y.jsx)(cr, {
|
|
18758
18758
|
ref: v,
|
|
18759
18759
|
className: "cursor-pointer table-fixed",
|
|
@@ -20931,7 +20931,7 @@ var pN = (e) => {
|
|
|
20931
20931
|
size: "xs"
|
|
20932
20932
|
}), t[15] = a) : a = t[15];
|
|
20933
20933
|
let o;
|
|
20934
|
-
t[16] === n ? o = t[17] : (o =
|
|
20934
|
+
t[16] === n ? o = t[17] : (o = L({ html: n }), t[16] = n, t[17] = o);
|
|
20935
20935
|
let c;
|
|
20936
20936
|
t[18] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, Y.jsx)(pd, {
|
|
20937
20937
|
size: 14,
|
|
@@ -20995,9 +20995,9 @@ var pN = (e) => {
|
|
|
20995
20995
|
let O;
|
|
20996
20996
|
t[43] === D ? O = t[44] : (O = /* @__PURE__ */ (0, Y.jsx)("input", { ...D }), t[43] = D, t[44] = O);
|
|
20997
20997
|
let k;
|
|
20998
|
-
t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, Y.jsxs)("span", { children: ["To re-upload: ",
|
|
20998
|
+
t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, Y.jsxs)("span", { children: ["To re-upload: ", L({ html: S })] }) : /* @__PURE__ */ (0, Y.jsx)("span", {
|
|
20999
20999
|
className: "mt-0",
|
|
21000
|
-
children:
|
|
21000
|
+
children: L({ html: S })
|
|
21001
21001
|
}), t[45] = S, t[46] = x, t[47] = k) : k = t[47];
|
|
21002
21002
|
let A = g && "text-primary", j = _ && "text-destructive", M;
|
|
21003
21003
|
t[48] !== A || t[49] !== j ? (M = u(A, j), t[48] = A, t[49] = j, t[50] = M) : M = t[50];
|
|
@@ -21006,13 +21006,13 @@ var pN = (e) => {
|
|
|
21006
21006
|
strokeWidth: 1.4,
|
|
21007
21007
|
className: M
|
|
21008
21008
|
}), t[51] = M, t[52] = N);
|
|
21009
|
-
let
|
|
21010
|
-
t[53] !==
|
|
21009
|
+
let P = g && "text-primary", F = _ && "text-destructive", I;
|
|
21010
|
+
t[53] !== P || t[54] !== F ? (I = u(P, F), t[53] = P, t[54] = F, t[55] = I) : I = t[55];
|
|
21011
21011
|
let R;
|
|
21012
|
-
t[56] ===
|
|
21012
|
+
t[56] === I ? R = t[57] : (R = /* @__PURE__ */ (0, Y.jsx)(cd, {
|
|
21013
21013
|
strokeWidth: 1.4,
|
|
21014
|
-
className:
|
|
21015
|
-
}), t[56] =
|
|
21014
|
+
className: I
|
|
21015
|
+
}), t[56] = I, t[57] = R);
|
|
21016
21016
|
let z;
|
|
21017
21017
|
t[58] !== N || t[59] !== R ? (z = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
21018
21018
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
@@ -21158,7 +21158,7 @@ var bN = eE("marimo-form").withData(G({
|
|
|
21158
21158
|
let j;
|
|
21159
21159
|
t[11] === o ? j = t[12] : (j = o === null ? null : /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
21160
21160
|
className: "text-center",
|
|
21161
|
-
children:
|
|
21161
|
+
children: L({ html: o })
|
|
21162
21162
|
}), t[11] = o, t[12] = j);
|
|
21163
21163
|
let M;
|
|
21164
21164
|
t[13] === C ? M = t[14] : (M = C != null && /* @__PURE__ */ (0, Y.jsx)(uo, {
|
|
@@ -21168,32 +21168,32 @@ var bN = eE("marimo-form").withData(G({
|
|
|
21168
21168
|
}), t[13] = C, t[14] = M);
|
|
21169
21169
|
let N;
|
|
21170
21170
|
t[15] === n ? N = t[16] : (N = /* @__PURE__ */ (0, Y.jsx)("div", { children: n }), t[15] = n, t[16] = N);
|
|
21171
|
-
let
|
|
21172
|
-
t[17] !== h || t[18] !== g || t[19] !== m ? (
|
|
21171
|
+
let P;
|
|
21172
|
+
t[17] !== h || t[18] !== g || t[19] !== m ? (P = m && CN(/* @__PURE__ */ (0, Y.jsx)(_, {
|
|
21173
21173
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
21174
21174
|
variant: "text",
|
|
21175
21175
|
onClick: (e) => {
|
|
21176
21176
|
e.preventDefault(), E();
|
|
21177
21177
|
},
|
|
21178
21178
|
children: h
|
|
21179
|
-
}), g), t[17] = h, t[18] = g, t[19] = m, t[20] =
|
|
21180
|
-
let
|
|
21181
|
-
t[21] === c ?
|
|
21179
|
+
}), g), t[17] = h, t[18] = g, t[19] = m, t[20] = P) : P = t[20];
|
|
21180
|
+
let F = f || c, I;
|
|
21181
|
+
t[21] === c ? I = t[22] : (I = c && /* @__PURE__ */ (0, Y.jsx)(Re, { className: "h-4 w-4 mr-2 animate-spin" }), t[21] = c, t[22] = I);
|
|
21182
21182
|
let R;
|
|
21183
|
-
t[23] !== l || t[24] !==
|
|
21183
|
+
t[23] !== l || t[24] !== F || t[25] !== I || t[26] !== S ? (R = /* @__PURE__ */ (0, Y.jsxs)(_, {
|
|
21184
21184
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
21185
21185
|
variant: S,
|
|
21186
|
-
disabled:
|
|
21186
|
+
disabled: F,
|
|
21187
21187
|
type: "submit",
|
|
21188
|
-
children: [
|
|
21189
|
-
}), t[23] = l, t[24] =
|
|
21188
|
+
children: [I, l]
|
|
21189
|
+
}), t[23] = l, t[24] = F, t[25] = I, t[26] = S, t[27] = R) : R = t[27];
|
|
21190
21190
|
let z;
|
|
21191
21191
|
t[28] !== d || t[29] !== R ? (z = CN(R, d), t[28] = d, t[29] = R, t[30] = z) : z = t[30];
|
|
21192
21192
|
let B;
|
|
21193
|
-
t[31] !== z || t[32] !==
|
|
21193
|
+
t[31] !== z || t[32] !== P ? (B = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
21194
21194
|
className: "flex justify-end gap-2 font-code",
|
|
21195
|
-
children: [
|
|
21196
|
-
}), t[31] = z, t[32] =
|
|
21195
|
+
children: [P, z]
|
|
21196
|
+
}), t[31] = z, t[32] = P, t[33] = B) : B = t[33];
|
|
21197
21197
|
let ee;
|
|
21198
21198
|
t[34] !== B || t[35] !== k || t[36] !== j || t[37] !== M || t[38] !== N ? (ee = /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
21199
21199
|
className: k,
|
|
@@ -22324,7 +22324,7 @@ var pP = class {
|
|
|
22324
22324
|
onChange: e.setValue
|
|
22325
22325
|
}, t[2] = i, t[3] = e.setValue, t[4] = a, t[5] = o) : o = t[5];
|
|
22326
22326
|
let { value: s, onChange: c } = Xr(o), l;
|
|
22327
|
-
t[6] !== e.start || t[7] !== e.stop ? (l = (t) =>
|
|
22327
|
+
t[6] !== e.start || t[7] !== e.stop ? (l = (t) => j(t, e.start ?? -Infinity, e.stop ?? Infinity), t[6] = e.start, t[7] = e.stop, t[8] = l) : l = t[8];
|
|
22328
22328
|
let d = l, f;
|
|
22329
22329
|
t[9] !== d || t[10] !== c || t[11] !== s ? (f = (e) => {
|
|
22330
22330
|
let t = hP(e), n = t == null ? null : d(t);
|
|
@@ -22917,7 +22917,7 @@ var dF = class {
|
|
|
22917
22917
|
let t = {};
|
|
22918
22918
|
Object.entries(e).forEach((e) => {
|
|
22919
22919
|
let [n, r] = e;
|
|
22920
|
-
|
|
22920
|
+
yo(t, n, r);
|
|
22921
22921
|
}), i((e) => ({
|
|
22922
22922
|
...e,
|
|
22923
22923
|
...t
|
|
@@ -23420,7 +23420,7 @@ var bF = class {
|
|
|
23420
23420
|
render(e) {
|
|
23421
23421
|
let t = (t) => {
|
|
23422
23422
|
let { steps: n } = e.data;
|
|
23423
|
-
return n && n.length > 0 ? n[
|
|
23423
|
+
return n && n.length > 0 ? n[j(t, 0, n.length - 1)] : t;
|
|
23424
23424
|
};
|
|
23425
23425
|
return /* @__PURE__ */ (0, Y.jsx)(MF, {
|
|
23426
23426
|
...e.data,
|
|
@@ -23618,7 +23618,7 @@ var MF = (e) => {
|
|
|
23618
23618
|
t[11] === p ? e = t[12] : (e = (e, t) => /* @__PURE__ */ (0, Y.jsx)(Qt, {
|
|
23619
23619
|
value: t.toString(),
|
|
23620
23620
|
className: u(p && "w-full justify-start"),
|
|
23621
|
-
children:
|
|
23621
|
+
children: L({ html: e })
|
|
23622
23622
|
}, t), t[11] = p, t[12] = e), b = n.map(e), t[8] = p, t[9] = n, t[10] = b;
|
|
23623
23623
|
} else b = t[10];
|
|
23624
23624
|
let x;
|
|
@@ -23914,7 +23914,7 @@ function UF(e, t) {
|
|
|
23914
23914
|
}
|
|
23915
23915
|
//#endregion
|
|
23916
23916
|
//#region src/plugins/impl/vega/VegaPlugin.tsx
|
|
23917
|
-
var WF = J.lazy(() => import("./vega-component-
|
|
23917
|
+
var WF = J.lazy(() => import("./vega-component-DOtem7Hf.js")), GF = class {
|
|
23918
23918
|
tagName = "marimo-vega";
|
|
23919
23919
|
validator = G({
|
|
23920
23920
|
spec: vs({}).transform((e) => e),
|
|
@@ -23961,17 +23961,17 @@ var WF = J.lazy(() => import("./vega-component-Bwg_Kuh-.js")), GF = class {
|
|
|
23961
23961
|
let e;
|
|
23962
23962
|
t[6] === n ? e = t[7] : (e = (e, t) => /* @__PURE__ */ (0, Y.jsxs)(Ie, {
|
|
23963
23963
|
value: t.toString(),
|
|
23964
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
23964
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(me, {
|
|
23965
23965
|
className: "py-2 text-md",
|
|
23966
|
-
children:
|
|
23967
|
-
}), /* @__PURE__ */ (0, Y.jsx)(
|
|
23966
|
+
children: L({ html: n[t] })
|
|
23967
|
+
}), /* @__PURE__ */ (0, Y.jsx)(Ae, {
|
|
23968
23968
|
className: "text-md",
|
|
23969
23969
|
children: e
|
|
23970
23970
|
})]
|
|
23971
23971
|
}, t), t[6] = n, t[7] = e), c = J.Children.map(a, e), t[3] = a, t[4] = n, t[5] = c;
|
|
23972
23972
|
} else c = t[5];
|
|
23973
23973
|
let l;
|
|
23974
|
-
return t[8] !== s || t[9] !== c ? (l = /* @__PURE__ */ (0, Y.jsx)(
|
|
23974
|
+
return t[8] !== s || t[9] !== c ? (l = /* @__PURE__ */ (0, Y.jsx)(de, {
|
|
23975
23975
|
...s,
|
|
23976
23976
|
className: "text-muted-foreground",
|
|
23977
23977
|
children: c
|
|
@@ -24041,7 +24041,7 @@ var XF = class {
|
|
|
24041
24041
|
children: e.children
|
|
24042
24042
|
});
|
|
24043
24043
|
}
|
|
24044
|
-
}, aI = J.lazy(() => import("./swiper-component-
|
|
24044
|
+
}, aI = J.lazy(() => import("./swiper-component-Dvj-goaD.js")), oI = eE("marimo-download").withData(G({
|
|
24045
24045
|
data: U(),
|
|
24046
24046
|
disabled: H().default(!1),
|
|
24047
24047
|
filename: U().nullish(),
|
|
@@ -24072,7 +24072,7 @@ var XF = class {
|
|
|
24072
24072
|
} finally {
|
|
24073
24073
|
r(!1);
|
|
24074
24074
|
}
|
|
24075
|
-
}, a = n ?
|
|
24075
|
+
}, a = n ? Re : Kn, o = e.label ? L({ html: e.label }) : "Download";
|
|
24076
24076
|
return /* @__PURE__ */ (0, Y.jsxs)("a", {
|
|
24077
24077
|
href: nn(e.data) ? e.data : void 0,
|
|
24078
24078
|
download: e.filename ?? "",
|
|
@@ -24139,7 +24139,7 @@ var XF = class {
|
|
|
24139
24139
|
return t[6] === f ? e = t[7] : (e = /* @__PURE__ */ (0, Y.jsx)(co, { error: f }), t[6] = f, t[7] = e), e;
|
|
24140
24140
|
}
|
|
24141
24141
|
let m;
|
|
24142
|
-
t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, Y.jsx)(
|
|
24142
|
+
t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, Y.jsx)(Re, { className: "w-12 h-12 animate-spin text-primary my-4 mx-4" }) : d && L({ html: d.html }), t[8] = d, t[9] = p, t[10] = r, t[11] = m) : m = t[11];
|
|
24143
24143
|
let h;
|
|
24144
24144
|
return t[12] !== s || t[13] !== m ? (h = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
24145
24145
|
ref: s,
|
|
@@ -24178,7 +24178,7 @@ var XF = class {
|
|
|
24178
24178
|
themeVariables: e.data.theme_variables
|
|
24179
24179
|
});
|
|
24180
24180
|
}
|
|
24181
|
-
}, hI = (0, J.lazy)(() => import("./mermaid-
|
|
24181
|
+
}, hI = (0, J.lazy)(() => import("./mermaid-DFYN_PXd.js").then((e) => e.t));
|
|
24182
24182
|
//#endregion
|
|
24183
24183
|
//#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
|
|
24184
24184
|
function gI() {
|
|
@@ -25151,7 +25151,7 @@ var SI = () => {
|
|
|
25151
25151
|
a
|
|
25152
25152
|
]
|
|
25153
25153
|
})]
|
|
25154
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
25154
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(Re, { className: "w-12 h-12 animate-spin text-primary mx-auto" }), t[0] = i, t[1] = a, t[2] = l) : l = t[2];
|
|
25155
25155
|
let u = l, d;
|
|
25156
25156
|
t[3] !== o || t[4] !== i || t[5] !== s || t[6] !== a ? (d = () => {
|
|
25157
25157
|
let e = typeof i == "number" && a != null && i >= a, t = [];
|
|
@@ -25167,12 +25167,12 @@ var SI = () => {
|
|
|
25167
25167
|
let f = d, p = `flex flex-col ${c} max-w-sm p-6 mx-auto`, m;
|
|
25168
25168
|
t[8] === n ? m = t[9] : (m = n && /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
25169
25169
|
className: "text-lg font-bold text-foreground/60",
|
|
25170
|
-
children:
|
|
25170
|
+
children: L({ html: n })
|
|
25171
25171
|
}), t[8] = n, t[9] = m);
|
|
25172
25172
|
let h;
|
|
25173
25173
|
t[10] === r ? h = t[11] : (h = r && /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
25174
25174
|
className: "text-sm text-muted-foreground",
|
|
25175
|
-
children:
|
|
25175
|
+
children: L({ html: r })
|
|
25176
25176
|
}), t[10] = r, t[11] = h);
|
|
25177
25177
|
let g;
|
|
25178
25178
|
t[12] === u ? g = t[13] : (g = u(), t[12] = u, t[13] = g);
|
|
@@ -25194,7 +25194,7 @@ var SI = () => {
|
|
|
25194
25194
|
}), t[19] = p, t[20] = m, t[21] = h, t[22] = v, t[23] = y) : y = t[23], y;
|
|
25195
25195
|
};
|
|
25196
25196
|
function AI(e) {
|
|
25197
|
-
return
|
|
25197
|
+
return j(e, 0, 100);
|
|
25198
25198
|
}
|
|
25199
25199
|
var jI = DI.default.humanizer({
|
|
25200
25200
|
language: "shortEn",
|
|
@@ -25456,7 +25456,7 @@ var NI = (/* @__PURE__ */ i(((e) => {
|
|
|
25456
25456
|
let e = an(c);
|
|
25457
25457
|
if (e?.[0]) {
|
|
25458
25458
|
let { mimetype: t, data: n } = e[0];
|
|
25459
|
-
return t !== "text/html" && l.warn(`Expected text/html, got ${t}`),
|
|
25459
|
+
return t !== "text/html" && l.warn(`Expected text/html, got ${t}`), L({
|
|
25460
25460
|
html: n,
|
|
25461
25461
|
alwaysSanitizeHtml: !0
|
|
25462
25462
|
});
|
|
@@ -29321,7 +29321,7 @@ var _R = (e) => {
|
|
|
29321
29321
|
//#endregion
|
|
29322
29322
|
//#region src/components/editor/cell/useDeleteCell.tsx
|
|
29323
29323
|
function vR() {
|
|
29324
|
-
let e = (0, X.c)(3), { deleteCells: t, undoDeleteCell: n } =
|
|
29324
|
+
let e = (0, X.c)(3), { deleteCells: t, undoDeleteCell: n } = ie(), r;
|
|
29325
29325
|
return e[0] !== t || e[1] !== n ? (r = (e) => {
|
|
29326
29326
|
let { cellId: r } = e, i = (Eo.get(ia).cellData[r]?.code ?? "").trim() === "";
|
|
29327
29327
|
if (t({ cellIds: [r] }) && !i) {
|
|
@@ -31851,7 +31851,7 @@ function oH() {
|
|
|
31851
31851
|
return /* @__PURE__ */ new Set();
|
|
31852
31852
|
}
|
|
31853
31853
|
var sH = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skippedIds: i, noOutputIds: a, slideTypes: o, onSlideClick: s }) => {
|
|
31854
|
-
let c = Gi(), { moveCellToIndex: u, createCell: d } =
|
|
31854
|
+
let c = Gi(), { moveCellToIndex: u, createCell: d } = ie(), f = vR(), p = (0, J.useRef)(null), m = aH(p), [h, g] = (0, J.useState)(null), [_, v] = (0, J.useState)(null), y = eH(t), b = (e, t) => {
|
|
31855
31855
|
d({
|
|
31856
31856
|
...t ? { before: e } : { after: e },
|
|
31857
31857
|
focus: !1
|
|
@@ -31933,7 +31933,7 @@ var sH = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
31933
31933
|
ref: p,
|
|
31934
31934
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
31935
31935
|
className: "text-xs text-gray-500 flex items-center gap-0.5",
|
|
31936
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
31936
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(se, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
|
|
31937
31937
|
}), e.map((e, t) => /* @__PURE__ */ (0, Y.jsx)(uH, {
|
|
31938
31938
|
cell: e,
|
|
31939
31939
|
dimensions: y,
|
|
@@ -32048,7 +32048,7 @@ var sH = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
32048
32048
|
t[51] === l ? F = t[52] : (F = l && /* @__PURE__ */ (0, Y.jsxs)(cn, {
|
|
32049
32049
|
variant: "danger",
|
|
32050
32050
|
onSelect: l,
|
|
32051
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
32051
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(te, { className: "mr-2 h-3.5 w-3.5" }), "Delete cell"]
|
|
32052
32052
|
}), t[51] = l, t[52] = F);
|
|
32053
32053
|
let I;
|
|
32054
32054
|
t[53] !== N || t[54] !== F ? (I = /* @__PURE__ */ (0, Y.jsxs)(Ct, { children: [
|
|
@@ -32194,7 +32194,7 @@ function vH(e) {
|
|
|
32194
32194
|
}
|
|
32195
32195
|
//#endregion
|
|
32196
32196
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
32197
|
-
var yH = J.lazy(() => import("./reveal-component-
|
|
32197
|
+
var yH = J.lazy(() => import("./reveal-component-Cr9euMM2.js")), bH = (e) => {
|
|
32198
32198
|
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = jo(Wo), s = a === "read" || o, c = jo(ha) > 1, [l, u] = (0, J.useState)(null), d;
|
|
32199
32199
|
t[0] !== i || t[1] !== n ? (d = gR(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
32200
32200
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
@@ -32411,7 +32411,7 @@ var kH = (e) => {
|
|
|
32411
32411
|
let m;
|
|
32412
32412
|
t[12] === n ? m = t[13] : (m = () => n("bt"), t[12] = n, t[13] = m);
|
|
32413
32413
|
let h;
|
|
32414
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(
|
|
32414
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(k, {
|
|
32415
32415
|
fontSize: 36,
|
|
32416
32416
|
className: "w-5 h-5"
|
|
32417
32417
|
}), t[14] = h) : h = t[14];
|
|
@@ -32495,7 +32495,7 @@ function AH(e = !0) {
|
|
|
32495
32495
|
//#endregion
|
|
32496
32496
|
//#region src/components/editor/actions/name-cell-input.tsx
|
|
32497
32497
|
var jH = (e) => {
|
|
32498
|
-
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, a =
|
|
32498
|
+
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, a = he(), o;
|
|
32499
32499
|
t[0] !== r || t[1] !== a ? (o = (e) => a((t) => t.setName(r, e)), t[0] = r, t[1] = a, t[2] = o) : o = t[2];
|
|
32500
32500
|
let s = MH(n, o);
|
|
32501
32501
|
if (ca(n)) return null;
|
|
@@ -32562,7 +32562,7 @@ function NH(e) {
|
|
|
32562
32562
|
}
|
|
32563
32563
|
//#endregion
|
|
32564
32564
|
//#region src/components/editor/output/useWrapText.ts
|
|
32565
|
-
var PH = wo("marimo:console:wrapText", !1,
|
|
32565
|
+
var PH = wo("marimo:console:wrapText", !1, je);
|
|
32566
32566
|
function FH() {
|
|
32567
32567
|
let e = (0, X.c)(3), [t, n] = So(PH), r;
|
|
32568
32568
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
@@ -32588,7 +32588,7 @@ var LH = (e) => {
|
|
|
32588
32588
|
let t = (0, X.c)(2), n;
|
|
32589
32589
|
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ (0, Y.jsx)(Ia, { children: /* @__PURE__ */ (0, Y.jsx)(RH, { ...e }) }), t[0] = e, t[1] = n), n;
|
|
32590
32590
|
}, RH = (e) => {
|
|
32591
|
-
let t = (0, X.c)(63), n = J.useRef(null), { wrapText: r, setWrapText: i } = FH(), [a, o] =
|
|
32591
|
+
let t = (0, X.c)(63), n = J.useRef(null), { wrapText: r, setWrapText: i } = FH(), [a, o] = we(e.cellId), [s, c] = J.useState(""), l;
|
|
32592
32592
|
t[0] === s ? l = t[1] : (l = {
|
|
32593
32593
|
value: s,
|
|
32594
32594
|
setValue: c
|
|
@@ -32775,7 +32775,7 @@ function GH(e) {
|
|
|
32775
32775
|
}
|
|
32776
32776
|
//#endregion
|
|
32777
32777
|
//#region src/core/cells/readonly-code-display.ts
|
|
32778
|
-
var KH = new
|
|
32778
|
+
var KH = new A(), qH = new re();
|
|
32779
32779
|
function JH(e) {
|
|
32780
32780
|
let t = e.trim();
|
|
32781
32781
|
return t ? KH.isSupported(t) ? {
|
|
@@ -32854,7 +32854,7 @@ function tU(e, t) {
|
|
|
32854
32854
|
i(!1);
|
|
32855
32855
|
return;
|
|
32856
32856
|
}
|
|
32857
|
-
let n =
|
|
32857
|
+
let n = j((e - 1) * eU, 100, 2e3), r = setTimeout(() => {
|
|
32858
32858
|
i(!1);
|
|
32859
32859
|
}, n);
|
|
32860
32860
|
return () => clearTimeout(r);
|
|
@@ -32882,7 +32882,7 @@ function iU(e) {
|
|
|
32882
32882
|
}), [...t.entries()].toSorted(([e], [t]) => e - t);
|
|
32883
32883
|
}
|
|
32884
32884
|
function aU(e, t) {
|
|
32885
|
-
let n = new
|
|
32885
|
+
let n = new ke().isSupported(e), r = t !== null && !fe(t);
|
|
32886
32886
|
return n && r || e.trim() === "";
|
|
32887
32887
|
}
|
|
32888
32888
|
//#endregion
|
|
@@ -32903,7 +32903,7 @@ var oU = (e) => {
|
|
|
32903
32903
|
children: h
|
|
32904
32904
|
}), t[12] = s, t[13] = h, t[14] = g) : g = t[14], g;
|
|
32905
32905
|
}, sU = (e) => {
|
|
32906
|
-
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = tU(n.length, i), o = jo(Wo), s = jo(Qs), [c] =
|
|
32906
|
+
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = tU(n.length, i), o = jo(Wo), s = jo(Qs), [c] = go(), l = jo(Xs), d;
|
|
32907
32907
|
t[0] !== o || t[1] !== l ? (d = () => nU({
|
|
32908
32908
|
showCodeInRunModePreference: l,
|
|
32909
32909
|
kioskMode: o
|
|
@@ -32955,7 +32955,7 @@ var oU = (e) => {
|
|
|
32955
32955
|
})
|
|
32956
32956
|
}) : /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
32957
32957
|
className: "flex-1 flex flex-col items-center justify-center py-8",
|
|
32958
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
32958
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Re, { className: "w-8 h-8 animate-spin text-muted-foreground" })
|
|
32959
32959
|
}) : /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, { children: n.map(v) });
|
|
32960
32960
|
}, t[10] = r.width, t[11] = n, t[12] = a, t[13] = s, t[14] = v, t[15] = y) : y = t[15];
|
|
32961
32961
|
let b = y, x = f && m && "gap-5", S;
|
|
@@ -33097,7 +33097,7 @@ var oU = (e) => {
|
|
|
33097
33097
|
t[6] === o ? C = t[7] : (C = Vi(o), t[6] = o, t[7] = C);
|
|
33098
33098
|
let w = C, T = v && g !== "present", E;
|
|
33099
33099
|
if (t[8] !== m || t[9] !== c || t[10] !== T || t[11] !== h || t[12] !== s) {
|
|
33100
|
-
let e = new
|
|
33100
|
+
let e = new ke().isSupported(m);
|
|
33101
33101
|
E = u("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? Yi({
|
|
33102
33102
|
errored: c,
|
|
33103
33103
|
stopped: s
|
|
@@ -33593,10 +33593,10 @@ function YU(e) {
|
|
|
33593
33593
|
return null;
|
|
33594
33594
|
}
|
|
33595
33595
|
function XU(e) {
|
|
33596
|
-
return
|
|
33596
|
+
return ge(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(ZU) : !1;
|
|
33597
33597
|
}
|
|
33598
33598
|
function ZU(e) {
|
|
33599
|
-
return
|
|
33599
|
+
return ge(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;
|
|
33600
33600
|
}
|
|
33601
33601
|
//#endregion
|
|
33602
33602
|
//#region src/core/islands/components/IslandControls.tsx
|
|
@@ -33700,7 +33700,7 @@ var nW = (e) => {
|
|
|
33700
33700
|
children: a
|
|
33701
33701
|
}), t[4] = a, t[5] = e), e;
|
|
33702
33702
|
}
|
|
33703
|
-
if (
|
|
33703
|
+
if (fe(d.output)) {
|
|
33704
33704
|
let e;
|
|
33705
33705
|
return t[6] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)("div", { ref: s }), t[6] = e) : e = t[6], e;
|
|
33706
33706
|
}
|
|
@@ -33737,7 +33737,7 @@ var iW = (e) => {
|
|
|
33737
33737
|
let e;
|
|
33738
33738
|
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(aW, { children: /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
33739
33739
|
className: "absolute top-1 right-1",
|
|
33740
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
33740
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Re, { className: "animate-spin size-4" })
|
|
33741
33741
|
}) }), t[0] = e) : e = t[0], e;
|
|
33742
33742
|
}
|
|
33743
33743
|
return null;
|
|
@@ -33820,7 +33820,7 @@ var iW = (e) => {
|
|
|
33820
33820
|
renderIsland() {
|
|
33821
33821
|
let e = this.renderConfig;
|
|
33822
33822
|
if (!e) return;
|
|
33823
|
-
let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null :
|
|
33823
|
+
let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null : L({ html: o });
|
|
33824
33824
|
if (!i) {
|
|
33825
33825
|
this.removeAttribute("data-status"), this.root?.render(/* @__PURE__ */ (0, Y.jsx)(Ia, { children: /* @__PURE__ */ (0, Y.jsx)(Mo, {
|
|
33826
33826
|
store: Eo,
|
|
@@ -33841,7 +33841,7 @@ var iW = (e) => {
|
|
|
33841
33841
|
getOptionalEditor() {
|
|
33842
33842
|
let t = this.querySelector(e.editorTagName)?.parentNode?.outerHTML;
|
|
33843
33843
|
if (t) {
|
|
33844
|
-
let e =
|
|
33844
|
+
let e = L({ html: t });
|
|
33845
33845
|
if ((0, J.isValidElement)(e)) return e;
|
|
33846
33846
|
}
|
|
33847
33847
|
return null;
|
|
@@ -33958,7 +33958,7 @@ function fW(e, t, n, r) {
|
|
|
33958
33958
|
}), window.customElements?.get(Eu.ISLAND) || pb(Eu.ISLAND, oW);
|
|
33959
33959
|
return;
|
|
33960
33960
|
case "send-ui-element-message":
|
|
33961
|
-
cb.broadcastMessage(e.ui_element, e.message,
|
|
33961
|
+
cb.broadcastMessage(e.ui_element, e.message, M(e));
|
|
33962
33962
|
return;
|
|
33963
33963
|
case "remove-ui-elements":
|
|
33964
33964
|
kU(e);
|
|
@@ -33972,7 +33972,7 @@ function fW(e, t, n, r) {
|
|
|
33972
33972
|
case "alert":
|
|
33973
33973
|
x({
|
|
33974
33974
|
title: e.title,
|
|
33975
|
-
description:
|
|
33975
|
+
description: L({ html: e.description }),
|
|
33976
33976
|
variant: e.variant
|
|
33977
33977
|
});
|
|
33978
33978
|
return;
|
|
@@ -34311,7 +34311,7 @@ var kW = class {
|
|
|
34311
34311
|
async startApps() {
|
|
34312
34312
|
let e = PU(this.root, { materialize: !1 }), t = e.length === 1;
|
|
34313
34313
|
l.debug(`Starting sessions for ${e.length} app(s):`, e.map((e) => `${e.id} (${e.cells.length} cells)`));
|
|
34314
|
-
let n = (e.length === 1 && !e[0]?.payloadBacked ?
|
|
34314
|
+
let n = (e.length === 1 && !e[0]?.payloadBacked ? ne() : void 0)?.notebookCode, r = t ? e[0] : void 0, i = r ? n || UU(r) : void 0;
|
|
34315
34315
|
if (r && this.session?.appId === r.id && this.session.code === i) {
|
|
34316
34316
|
PU(this.root);
|
|
34317
34317
|
return;
|
|
@@ -34359,7 +34359,7 @@ var kW = class {
|
|
|
34359
34359
|
sendComponentValues = async (e) => (await this.putControlRequest({
|
|
34360
34360
|
type: "update-ui-element",
|
|
34361
34361
|
...e,
|
|
34362
|
-
token:
|
|
34362
|
+
token: _e()
|
|
34363
34363
|
}), null);
|
|
34364
34364
|
sendInstantiate = async () => null;
|
|
34365
34365
|
sendFunctionRequest = async (e) => (await this.putControlRequest({
|