@marimo-team/islands 0.26.1-dev40 → 0.26.1-dev43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BVMWCBON.js → ConnectedDataExplorerComponent-yQVBQBUW.js} +16 -16
  2. package/dist/{ErrorBoundary-DVP5YAkc.js → ErrorBoundary-jwCXNfZJ.js} +18 -18
  3. package/dist/{abnfDiagram-VCTEODGH-BRj77JhY.js → abnfDiagram-VCTEODGH-Ck_lXwQR.js} +2 -2
  4. package/dist/{any-language-editor-BQ9dhxg5.js → any-language-editor-Cx4idbgX.js} +2 -2
  5. package/dist/{architectureDiagram-5GKGNRK7-CDnAsvE1.js → architectureDiagram-5GKGNRK7-XeVhic7Z.js} +1 -1
  6. package/dist/{assertNever-DeSqnr83.js → assertNever-473SFxLt.js} +2 -2
  7. package/dist/{chat-ui-CXyZb62N.js → chat-ui-D2dBBkxD.js} +870 -870
  8. package/dist/{check-COXd6cXw.js → check-DmTIavbZ.js} +1 -1
  9. package/dist/{chunk-IMKFNOWR-BFtu1O6j.js → chunk-IMKFNOWR-DdQni67K.js} +1 -1
  10. package/dist/{chunk-SHT3W25Y-B9zWo9Da.js → chunk-SHT3W25Y-BdK-vMct.js} +1 -1
  11. package/dist/{chunk-SVP7TREG-kKS-I24p.js → chunk-SVP7TREG-cpFZk4Ca.js} +1 -1
  12. package/dist/{chunk-TICWLB2K-EY3w5-eg.js → chunk-TICWLB2K-DDgQFRgT.js} +1 -1
  13. package/dist/{classDiagram-ZZMXUADV-BR66X7fj.js → classDiagram-ZZMXUADV-DeojX9X4.js} +2 -2
  14. package/dist/{classDiagram-v2-VYDZK3BY-DPcxw_9g.js → classDiagram-v2-VYDZK3BY-DPfTAiQ6.js} +2 -2
  15. package/dist/{code-visibility-Ce0BABBn.js → code-visibility-BWkMC88N.js} +27 -27
  16. package/dist/{common-DNSfbc89.js → common-DfQQ4A9M.js} +4892 -4900
  17. package/dist/{config-DE3A8m65.js → config-D-lhQq-h.js} +3 -3
  18. package/dist/{copy-icon-gSCLWI50.js → copy-icon-DuxRkh7T.js} +2 -2
  19. package/dist/{createReducer-BFfuVhJG.js → createReducer-D3pBhIVD.js} +5 -5
  20. package/dist/{cynefinDiagram-5FMLGOSQ-B9kG0Adl.js → cynefinDiagram-5FMLGOSQ-DyY9TvuI.js} +1 -1
  21. package/dist/{dagre-GXQ25YYZ-ClnyHQzL.js → dagre-GXQ25YYZ-BPCOgtKg.js} +1 -1
  22. package/dist/{data-grid-overlay-editor-APzy2wKQ.js → data-grid-overlay-editor-BcO56m4p.js} +1 -1
  23. package/dist/{diagram-S7CK7UJ4-afCjSSlp.js → diagram-S7CK7UJ4-KaF-C6kd.js} +1 -1
  24. package/dist/{diagram-UQ7AKVKN-BCHefG5P.js → diagram-UQ7AKVKN-DkeqoSvK.js} +1 -1
  25. package/dist/{diagram-VX7I27RA-9jXA0khj.js → diagram-VX7I27RA-DExolTAf.js} +1 -1
  26. package/dist/{diagram-Z3DM3KII-C8tsbK7Q.js → diagram-Z3DM3KII-BioFuBF3.js} +1 -1
  27. package/dist/{dialog-Dn_UHaEl.js → dialog-CvyFEwby.js} +28 -28
  28. package/dist/{dropdown-menu-D0nePAlm.js → dropdown-menu-BiXHfje7.js} +651 -651
  29. package/dist/{ebnfDiagram-PWID7BFC-It0ZS33j.js → ebnfDiagram-PWID7BFC-BSb9k1ed.js} +2 -2
  30. package/dist/{erDiagram-RLTQ6QDP-Z0Qfo02H.js → erDiagram-RLTQ6QDP-PWA30a_r.js} +1 -1
  31. package/dist/{error-banner-DChjSagB.js → error-banner-B9HQMSaH.js} +70 -70
  32. package/dist/{error-entries-DYoi03MZ.js → error-entries-DJXufUac.js} +812 -697
  33. package/dist/{feedback-button-CkP52HSN.js → feedback-button-DNzGMlV8.js} +52 -52
  34. package/dist/{flowDiagram-HODETNUW-8DeXLUFK.js → flowDiagram-HODETNUW-BPtD__Zz.js} +2 -2
  35. package/dist/{formats-6QF5hRsy.js → formats-BF95BoCT.js} +1 -1
  36. package/dist/{glide-data-editor-BXDTDi7B.js → glide-data-editor-DdyqdPXc.js} +11 -11
  37. package/dist/{glide-utils-B7gy9Her.js → glide-utils-iHKKQPJ8.js} +2 -2
  38. package/dist/{globals-BDTioM8h.js → globals-DNb4-fss.js} +3 -3
  39. package/dist/{html-to-image-CUFNjxtw.js → html-to-image-R7PUQb3h.js} +404 -404
  40. package/dist/{infoDiagram-27XIBGKW-B5wmzeRz.js → infoDiagram-27XIBGKW-SJuilBEE.js} +1 -1
  41. package/dist/{ishikawaDiagram-5VMMS53U-BcbPwik7.js → ishikawaDiagram-5VMMS53U-DjzyxMr8.js} +1 -1
  42. package/dist/{kanban-definition-UXKFOSKX-AfQmkIoH.js → kanban-definition-UXKFOSKX-D2_qopGt.js} +1 -1
  43. package/dist/main.js +5863 -5771
  44. package/dist/{mermaid-az53hfgW.js → mermaid-DcowNmCx.js} +34 -34
  45. package/dist/{mindmap-definition-YA3MSWOX-B7eBrMap.js → mindmap-definition-YA3MSWOX-pEra10M0.js} +1 -1
  46. package/dist/{number-overlay-editor-CHSGajIu.js → number-overlay-editor-Co2zZ0AQ.js} +1 -1
  47. package/dist/{pegDiagram-XKGWAZYB-BwjpXSLR.js → pegDiagram-XKGWAZYB-CHOPKVOf.js} +2 -2
  48. package/dist/{pencil-pQhLU2Up.js → pencil-FAv6JUvp.js} +1 -1
  49. package/dist/{pieDiagram-E7YTZNPT-D5AyRqAQ.js → pieDiagram-E7YTZNPT-yGDhsyEN.js} +1 -1
  50. package/dist/{process-output-DMMs8Ywh.js → process-output-KUevsERL.js} +4 -4
  51. package/dist/{railroadDiagram-O6MQD6OU-Hhrla0Qq.js → railroadDiagram-O6MQD6OU-CeKEPdyc.js} +2 -2
  52. package/dist/{requirementDiagram-BXWQKSXE-MgDRuFUM.js → requirementDiagram-BXWQKSXE-DSAbAzKe.js} +1 -1
  53. package/dist/{reveal-component-DgxsJDBG.js → reveal-component-B5WBKEMn.js} +7 -7
  54. package/dist/{select-C4rPKgSx.js → select-BszV-bbI.js} +307 -307
  55. package/dist/{sequenceDiagram-WJ2MYXX4-xZYdOGbe.js → sequenceDiagram-WJ2MYXX4-DVhWj_9H.js} +1 -1
  56. package/dist/{spec-BsiCag5K.js → spec-CRfw-lOm.js} +4 -4
  57. package/dist/{stateDiagram-D77RDMKH-DdhE3Yx9.js → stateDiagram-D77RDMKH-CDQ2MltG.js} +2 -2
  58. package/dist/{stateDiagram-v2-MP3YSRHH-DENKYVKr.js → stateDiagram-v2-MP3YSRHH-BQmvwBaz.js} +2 -2
  59. package/dist/{static-state-CNnjDcOR.js → static-state-BtDNJuc2.js} +5 -5
  60. package/dist/{swimlanes-42K2YHIH-Bw7xuGAn.js → swimlanes-42K2YHIH-DLOUTCEL.js} +1 -1
  61. package/dist/{swimlanesDiagram-VR7AAH4N-L91TUeh5.js → swimlanesDiagram-VR7AAH4N-BVKrkNJ6.js} +2 -2
  62. package/dist/{timeline-definition-24CTP7MA-BeGrmws1.js → timeline-definition-24CTP7MA-Cb2JoCSd.js} +1 -1
  63. package/dist/{toast-qyBwbZJ0.js → toast-QsOAIPfq.js} +192 -192
  64. package/dist/{tooltip-COQxCMLx.js → tooltip-BQZ-Bm6h.js} +76 -76
  65. package/dist/{use-restore-focus-D5-Hgr1l.js → use-restore-focus-DT1TZACX.js} +1167 -1167
  66. package/dist/{useDateFormatter-L8edl513.js → useDateFormatter-D3gyMY-g.js} +2 -2
  67. package/dist/{useDeepCompareMemoize-B6yhm6sM.js → useDeepCompareMemoize-CO6rO5Mq.js} +1 -1
  68. package/dist/{useLifecycle-Dnxradbp.js → useLifecycle-C9UTzCY8.js} +1 -1
  69. package/dist/{vega-component-CWKS3tOU.js → vega-component-i5lZ23n7.js} +17 -17
  70. package/dist/{vennDiagram-4TSXK5OY-fknCUyJ2.js → vennDiagram-4TSXK5OY-Cm3EcCcP.js} +1 -1
  71. package/dist/{wardleyDiagram-VM6X3IG4-DvoVMCdj.js → wardleyDiagram-VM6X3IG4-DjlUs2CC.js} +1 -1
  72. package/dist/{xychartDiagram-S5SC5T6Z-0TYtO6UV.js → xychartDiagram-S5SC5T6Z-DxNDul9l.js} +1 -1
  73. package/package.json +1 -1
  74. package/src/__mocks__/animation-frames.ts +31 -0
  75. package/src/__mocks__/executions.ts +6 -1
  76. package/src/components/editor/cell/collapse.tsx +6 -3
  77. package/src/components/editor/header/status.tsx +5 -2
  78. package/src/components/scratchpad/scratchpad.tsx +2 -2
  79. package/src/core/cells/cells.ts +24 -16
  80. package/src/core/cells/execution-console.ts +7 -2
  81. package/src/core/executions/__tests__/atoms.test.ts +204 -1
  82. package/src/core/executions/__tests__/output-lifecycle.test.ts +20 -3
  83. package/src/core/executions/__tests__/select.test.ts +32 -1
  84. package/src/core/executions/atoms.ts +245 -81
  85. package/src/core/executions/hooks.ts +15 -59
  86. package/src/core/executions/index.ts +2 -0
  87. package/src/core/executions/output.ts +34 -14
  88. package/src/core/executions/select.ts +70 -25
  89. package/src/core/islands/bootstrap.ts +7 -2
  90. package/src/core/notebook/replica/__tests__/frame.test.ts +206 -0
  91. package/src/core/notebook/replica/__tests__/once-per-frame.test.ts +95 -0
  92. package/src/core/notebook/replica/frame.ts +54 -0
  93. package/src/core/notebook/replica/index.ts +1 -0
  94. package/src/core/notebook/replica/once-per-frame.ts +60 -0
  95. package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +53 -7
  96. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +29 -7
  97. package/src/core/session/active-notebook.ts +4 -1
  98. package/src/core/session/useNotebookReplica.ts +14 -1
  99. package/src/core/state/__tests__/atom-with-selected-inputs.test.ts +48 -0
  100. package/src/core/state/__tests__/create-keyed-selector-hook.test.tsx +16 -7
  101. package/src/core/state/atom-with-selected-inputs.ts +24 -0
  102. package/src/core/state/create-keyed-atom-hook.ts +18 -0
  103. package/src/core/state/create-keyed-selector-hook.ts +5 -9
  104. package/src/core/wasm/__tests__/bridge.test.ts +73 -1
  105. package/src/utils/arrays.ts +4 -1
@@ -2,29 +2,29 @@ import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { g as a, h as o, i as s, p as c, s as l, t as u, u as d } from "./button-Z2R2272J.js";
3
3
  import { t as f } from "./react-Bgs_wQh3.js";
4
4
  import { t as p } from "./compiler-runtime-C5KHtL5D.js";
5
- import { i as m, n as h, t as g } from "./copy-icon-gSCLWI50.js";
5
+ import { i as m, n as h, t as g } from "./copy-icon-DuxRkh7T.js";
6
6
  import { c as _, l as v, o as y, r as b, s as x } from "./chunk-7TTQLYRW-DBSfUUe5.js";
7
- import { c as S, h as C, i as ee, l as w, s as te, t as ne, u as T } from "./tooltip-COQxCMLx.js";
8
- import { a as E, i as re, o as ie, r as D, s as O, t as ae } from "./useLifecycle-Dnxradbp.js";
9
- import { a as oe, c as se, i as ce, n as le, o as ue, r as de, s as fe, t as pe } from "./select-C4rPKgSx.js";
10
- import { X as me, ht as he, p as ge } from "./dropdown-menu-D0nePAlm.js";
11
- import { c as _e, l as ve, n as ye } from "./config-DE3A8m65.js";
12
- import { $ as k, A, At as be, B as xe, Bt as Se, D as Ce, E as we, Gt as j, I as Te, J as Ee, Jt as De, Lt as Oe, M as ke, Mt as Ae, N as je, Ot as Me, R as Ne, Rt as Pe, St as Fe, Ut as Ie, Vt as Le, Wt as Re, Yt as ze, _ as Be, _t as Ve, a as He, at as Ue, c as We, ct as Ge, dt as Ke, en as qe, et as Je, f as Ye, ft as Xe, gt as Ze, h as Qe, it as $e, k as et, lt as tt, nn as nt, o as rt, ot as it, p as at, pt as ot, q as st, qt as ct, s as lt, st as ut, tt as dt, ut as ft, v as pt, x as mt, z as ht } from "./error-entries-DYoi03MZ.js";
13
- import { n as gt } from "./assertNever-DeSqnr83.js";
7
+ import { c as S, h as C, i as ee, l as w, s as te, t as ne, u as T } from "./tooltip-BQZ-Bm6h.js";
8
+ import { a as E, i as re, o as ie, r as D, s as O, t as ae } from "./useLifecycle-C9UTzCY8.js";
9
+ import { a as oe, c as se, i as ce, n as le, o as ue, r as de, s as fe, t as pe } from "./select-BszV-bbI.js";
10
+ import { X as me, ht as he, p as ge } from "./dropdown-menu-BiXHfje7.js";
11
+ import { c as _e, l as ve, n as ye } from "./config-D-lhQq-h.js";
12
+ import { $ as k, A, At as be, B as xe, Bt as Se, D as Ce, E as we, Gt as j, Ht as Te, I as Ee, J as De, Kt as Oe, M as ke, Mt as Ae, N as je, Ot as Me, R as Ne, Rt as Pe, St as Fe, Ut as Ie, Xt as Le, Yt as Re, Zt as ze, _ as Be, _t as Ve, a as He, at as Ue, c as We, ct as Ge, dt as Ke, et as qe, f as Je, ft as Ye, gt as Xe, h as Ze, in as Qe, it as $e, k as et, lt as tt, nn as nt, o as rt, ot as it, p as at, pt as ot, q as st, qt as ct, s as lt, st as ut, tt as dt, ut as ft, v as pt, x as mt, z as ht } from "./error-entries-DJXufUac.js";
13
+ import { n as gt } from "./assertNever-473SFxLt.js";
14
14
  import { t as _t } from "./react-dom-DdqGVp5N.js";
15
15
  import { t as vt } from "./jsx-runtime-D8btoEHk.js";
16
- import { Bt as yt, Ct as M, Dt as bt, Et as xt, Ft as St, J as Ct, Lt as wt, Nt as Tt, Ot as Et, Pt as Dt, Rt as Ot, Ut as N, Vt as P, Y as kt, an as At, at as jt, cn as Mt, d as Nt, ft as Pt, gn as Ft, hn as It, in as Lt, kt as Rt, l as zt, ln as Bt, mn as Vt, n as Ht, nn as Ut, o as Wt, on as Gt, ot as Kt, pn as qt, s as Jt, sn as F, tn as Yt, tt as Xt, u as Zt, un as Qt, ut as $t, vn as en, x as tn, y as nn, yn as rn, zt as an } from "./use-restore-focus-D5-Hgr1l.js";
17
- import { h as on } from "./error-banner-DChjSagB.js";
16
+ import { At as yt, Bt as bt, Ct as M, Et as xt, Ft as St, Ht as N, It as Ct, J as wt, Ot as Tt, Pt as Et, Rt as Dt, Vt as Ot, Wt as P, Y as kt, _n as At, an as jt, at as Mt, bn as Nt, cn as Pt, d as Ft, dn as It, ft as Lt, gn as Rt, hn as zt, kt as Bt, l as Vt, ln as Ht, mn as Ut, n as Wt, nn as Gt, o as Kt, on as qt, ot as Jt, rn as F, s as Yt, sn as Xt, tt as Zt, u as Qt, un as $t, ut as en, x as tn, y as nn, yn as rn, zt as an } from "./use-restore-focus-DT1TZACX.js";
17
+ import { h as on } from "./error-banner-B9HQMSaH.js";
18
18
  import { t as sn } from "./debounce-DrhhziJv.js";
19
19
  import { t as cn } from "./objects-DCmMvZtn.js";
20
20
  import { t as ln } from "./invariant-DLmrl-hA.js";
21
21
  import { t as un } from "./useEvent-BoN7U38T.js";
22
- import { t as dn } from "./createReducer-BFfuVhJG.js";
23
- import { $ as fn, At as pn, B as mn, C as hn, Ct as gn, Dt as _n, G as vn, Gt as yn, H as bn, I as xn, L as Sn, N as Cn, Ot as wn, Rt as Tn, U as En, W as Dn, a as I, bt as On, c as kn, dt as An, ft as jn, h as Mn, it as Nn, kt as Pn, mt as Fn, o as In, rt as Ln, st as Rn, vt as zn, wt as Bn, x as Vn, xt as Hn, y as Un, yt as Wn, z as Gn } from "./dist-BIaGGUbU.js";
24
- import { c as Kn, m as qn, r as Jn } from "./static-state-CNnjDcOR.js";
25
- import { i as Yn, o as Xn, r as Zn, s as Qn, t as $n, u as er } from "./dist-D9Qhvxvg.js";
26
- import { d as tr, n as nr, r as rr, t as ir, u as ar } from "./dist-m0MWV-aw.js";
27
- import { i as or, n as sr } from "./arrays-DoQ-AILx.js";
22
+ import { i as dn, n as fn } from "./arrays-DoQ-AILx.js";
23
+ import { t as pn } from "./createReducer-D3pBhIVD.js";
24
+ import { $ as mn, At as hn, B as gn, C as _n, Ct as vn, Dt as yn, G as bn, Gt as xn, H as Sn, I as Cn, L as wn, N as Tn, Ot as En, Rt as Dn, U as On, W as kn, a as I, bt as An, c as jn, dt as Mn, ft as Nn, h as Pn, it as Fn, kt as In, mt as Ln, o as Rn, rt as zn, st as Bn, vt as Vn, wt as Hn, x as Un, xt as Wn, y as Gn, yt as Kn, z as qn } from "./dist-BIaGGUbU.js";
25
+ import { c as Jn, m as Yn, r as Xn } from "./static-state-BtDNJuc2.js";
26
+ import { i as Zn, o as Qn, r as $n, s as er, t as tr, u as nr } from "./dist-D9Qhvxvg.js";
27
+ import { d as rr, n as ir, r as ar, t as or, u as sr } from "./dist-m0MWV-aw.js";
28
28
  import { n as cr } from "./once-NnpX_HnX.js";
29
29
  import { n as lr, r as ur } from "./dist-CQfpgadU.js";
30
30
  import { a as dr, i as fr, n as pr, o as mr, r as hr } from "./dist-BG-7Qpaj.js";
@@ -1890,8 +1890,8 @@ var jr = /* @__PURE__ */ i(((e) => {
1890
1890
  }]]), z = vt(), Di = Object.defineProperty, Oi = (e, t) => Di(e, "name", {
1891
1891
  value: t,
1892
1892
  configurable: !0
1893
- }), ki = "Popover", [Ai, ji] = en(ki, [T]), Mi = T(), [Ni, Pi] = Ai(ki), Fi = /* @__PURE__ */ Oi((e) => {
1894
- let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = Mi(t), c = L.useRef(null), [l, u] = L.useState(!1), [d, f] = L.useState(0), [p, m] = L.useState(0), [h, g] = It({
1893
+ }), ki = "Popover", [Ai, ji] = rn(ki, [T]), Mi = T(), [Ni, Pi] = Ai(ki), Fi = /* @__PURE__ */ Oi((e) => {
1894
+ let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = Mi(t), c = L.useRef(null), [l, u] = L.useState(!1), [d, f] = L.useState(0), [p, m] = L.useState(0), [h, g] = Rt({
1895
1895
  prop: r,
1896
1896
  defaultProp: i ?? !1,
1897
1897
  onChange: a,
@@ -1901,9 +1901,9 @@ var jr = /* @__PURE__ */ i(((e) => {
1901
1901
  ...s,
1902
1902
  children: /* @__PURE__ */ (0, z.jsx)(Ni, {
1903
1903
  scope: t,
1904
- contentId: qt(),
1905
- titleId: qt(),
1906
- descriptionId: qt(),
1904
+ contentId: Ut(),
1905
+ titleId: Ut(),
1906
+ descriptionId: Ut(),
1907
1907
  titlePresent: d > 0,
1908
1908
  descriptionPresent: p > 0,
1909
1909
  setTitleCount: f,
@@ -1927,7 +1927,7 @@ var jr = /* @__PURE__ */ i(((e) => {
1927
1927
  ref: t
1928
1928
  });
1929
1929
  }, "PopoverAnchor")), Ri = "PopoverTrigger", zi = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Oi(function(e, t) {
1930
- let { __scopePopover: n, ...r } = e, i = Pi(Ri, n), a = Mi(n), o = c(t, i.triggerRef), s = /* @__PURE__ */ (0, z.jsx)(rn.button, {
1930
+ let { __scopePopover: n, ...r } = e, i = Pi(Ri, n), a = Mi(n), o = c(t, i.triggerRef), s = /* @__PURE__ */ (0, z.jsx)(Nt.button, {
1931
1931
  type: "button",
1932
1932
  "aria-haspopup": "dialog",
1933
1933
  "aria-expanded": i.open,
@@ -1935,7 +1935,7 @@ var jr = /* @__PURE__ */ i(((e) => {
1935
1935
  "data-state": Qi(i.open),
1936
1936
  ...r,
1937
1937
  ref: o,
1938
- onClick: Ft(e.onClick, i.onOpenToggle)
1938
+ onClick: At(e.onClick, i.onOpenToggle)
1939
1939
  });
1940
1940
  return i.hasCustomAnchor ? s : /* @__PURE__ */ (0, z.jsx)(S, {
1941
1941
  asChild: !0,
@@ -1947,9 +1947,9 @@ var jr = /* @__PURE__ */ i(((e) => {
1947
1947
  return /* @__PURE__ */ (0, z.jsx)(Vi, {
1948
1948
  scope: t,
1949
1949
  forceMount: n,
1950
- children: /* @__PURE__ */ (0, z.jsx)(Vt, {
1950
+ children: /* @__PURE__ */ (0, z.jsx)(zt, {
1951
1951
  present: n || a.open,
1952
- children: /* @__PURE__ */ (0, z.jsx)(At, {
1952
+ children: /* @__PURE__ */ (0, z.jsx)(qt, {
1953
1953
  asChild: !0,
1954
1954
  container: i,
1955
1955
  children: r
@@ -1958,7 +1958,7 @@ var jr = /* @__PURE__ */ i(((e) => {
1958
1958
  });
1959
1959
  }, "PopoverPortal"), Wi = "PopoverContent", Gi = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Oi(function(e, t) {
1960
1960
  let n = Hi(Wi, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = Pi(Wi, e.__scopePopover);
1961
- return /* @__PURE__ */ (0, z.jsx)(Vt, {
1961
+ return /* @__PURE__ */ (0, z.jsx)(zt, {
1962
1962
  present: r || a.open,
1963
1963
  children: a.modal ? /* @__PURE__ */ (0, z.jsx)(qi, {
1964
1964
  ...i,
@@ -1969,11 +1969,11 @@ var jr = /* @__PURE__ */ i(((e) => {
1969
1969
  })
1970
1970
  });
1971
1971
  }, "PopoverContent")), Ki = d("PopoverContent.RemoveScroll"), qi = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Oi(function(e, t) {
1972
- let n = Pi(Wi, e.__scopePopover), r = L.useRef(null), i = c(t, r), a = L.useRef(!1), { nodes: o, registry: s } = Bt();
1972
+ let n = Pi(Wi, e.__scopePopover), r = L.useRef(null), i = c(t, r), a = L.useRef(!1), { nodes: o, registry: s } = $t();
1973
1973
  return L.useEffect(() => {
1974
1974
  let e = r.current;
1975
- if (e) return Yt(e);
1976
- }, []), /* @__PURE__ */ (0, z.jsx)(Ut, {
1975
+ if (e) return Gt(e);
1976
+ }, []), /* @__PURE__ */ (0, z.jsx)(F, {
1977
1977
  as: Ki,
1978
1978
  allowPinchZoom: !0,
1979
1979
  shards: L.useMemo(() => [r, ...o.map((e) => ({ current: e }))], [r, o]),
@@ -1984,14 +1984,14 @@ var jr = /* @__PURE__ */ i(((e) => {
1984
1984
  branchRegistry: s,
1985
1985
  trapFocus: n.open,
1986
1986
  disableOutsidePointerEvents: !0,
1987
- onCloseAutoFocus: Ft(e.onCloseAutoFocus, (e) => {
1987
+ onCloseAutoFocus: At(e.onCloseAutoFocus, (e) => {
1988
1988
  e.preventDefault(), a.current || n.triggerRef.current?.focus();
1989
1989
  }),
1990
- onPointerDownOutside: Ft(e.onPointerDownOutside, (e) => {
1990
+ onPointerDownOutside: At(e.onPointerDownOutside, (e) => {
1991
1991
  let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
1992
1992
  a.current = r;
1993
1993
  }, { checkForDefaultPrevented: !1 }),
1994
- onFocusOutside: Ft(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
1994
+ onFocusOutside: At(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
1995
1995
  })
1996
1996
  });
1997
1997
  }, "PopoverContentModal")), Ji = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Oi(function(e, t) {
@@ -2012,16 +2012,16 @@ var jr = /* @__PURE__ */ i(((e) => {
2012
2012
  });
2013
2013
  }, "PopoverContentNonModal")), Yi = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Oi(function(e, t) {
2014
2014
  let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, "aria-describedby": f, branchNodes: p, branchRegistry: m, ...h } = e, g = Pi(Wi, n), _ = Mi(n), [v, y] = L.useState(null), b = c(t, y);
2015
- return Mt(v), Lt(), /* @__PURE__ */ (0, z.jsx)(F, {
2015
+ return Ht(v), jt(), /* @__PURE__ */ (0, z.jsx)(Pt, {
2016
2016
  registry: m,
2017
- children: /* @__PURE__ */ (0, z.jsx)(Gt, {
2017
+ children: /* @__PURE__ */ (0, z.jsx)(Xt, {
2018
2018
  asChild: !0,
2019
2019
  loop: !0,
2020
2020
  trapped: r,
2021
2021
  branches: p,
2022
2022
  onMountAutoFocus: i,
2023
2023
  onUnmountAutoFocus: a,
2024
- children: /* @__PURE__ */ (0, z.jsx)(Qt, {
2024
+ children: /* @__PURE__ */ (0, z.jsx)(It, {
2025
2025
  asChild: !0,
2026
2026
  disableOutsidePointerEvents: o,
2027
2027
  onInteractOutside: d,
@@ -2053,11 +2053,11 @@ var jr = /* @__PURE__ */ i(((e) => {
2053
2053
  });
2054
2054
  }, "PopoverContentImpl")), Xi = "PopoverClose", Zi = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Oi(function(e, t) {
2055
2055
  let { __scopePopover: n, ...r } = e, i = Pi(Xi, n);
2056
- return /* @__PURE__ */ (0, z.jsx)(rn.button, {
2056
+ return /* @__PURE__ */ (0, z.jsx)(Nt.button, {
2057
2057
  type: "button",
2058
2058
  ...r,
2059
2059
  ref: t,
2060
- onClick: Ft(e.onClick, () => i.onOpenChange(!1))
2060
+ onClick: At(e.onClick, () => i.onOpenChange(!1))
2061
2061
  });
2062
2062
  }, "PopoverClose"));
2063
2063
  function Qi(e) {
@@ -2104,33 +2104,38 @@ var ea = (e) => {
2104
2104
  }), t[10] = n, t[11] = d, t[12] = r, t[13] = l, t[14] = i, t[15] = f) : f = t[15], f;
2105
2105
  };
2106
2106
  //#endregion
2107
+ //#region src/utils/math.ts
2108
+ function ta(e, t, n) {
2109
+ return Math.min(Math.max(e, t), n);
2110
+ }
2111
+ //#endregion
2107
2112
  //#region src/core/executions/run.ts
2108
- function ta(e) {
2113
+ function na(e) {
2109
2114
  return e.retry();
2110
2115
  }
2111
- async function na(e, t) {
2116
+ async function ra(e, t) {
2112
2117
  if (t.length === 0) return;
2113
2118
  let n = e.get(xt);
2114
2119
  if (n === null) {
2115
2120
  a.warn("No notebook is open to run cells in");
2116
2121
  return;
2117
2122
  }
2118
- let r = j(e, t);
2123
+ let r = ct(e, t);
2119
2124
  try {
2120
- if (await ct(e), r ??= j(e, t), r === null) throw Error("No notebook is shown");
2121
- let { notebook_id: i } = await ta(n);
2122
- if (e.get(xt) !== n || !Re(e, r) || i !== r.notebook.id) {
2123
- De(e, r);
2125
+ if (await Re(e), r ??= ct(e, t), r === null) throw Error("No notebook is shown");
2126
+ let { notebook_id: i } = await na(n);
2127
+ if (e.get(xt) !== n || !Oe(e, r) || i !== r.notebook.id) {
2128
+ Le(e, r);
2124
2129
  return;
2125
2130
  }
2126
2131
  let o = e.get(r.notebook.replica.backendAtom);
2127
2132
  if (o === null) throw Error("The notebook is not connected");
2128
2133
  let s = await o.notebook(i).run({ cells: t.map((e) => ({ id: e })) });
2129
2134
  if (s.ok) {
2130
- Oe(e, r, s.data);
2135
+ Pe(e, r, s.data);
2131
2136
  return;
2132
2137
  }
2133
- if (De(e, r), s.status === 403) {
2138
+ if (Le(e, r), s.status === 403) {
2134
2139
  a.warn("Run refused, connection is read-only", s.problem);
2135
2140
  return;
2136
2141
  }
@@ -2140,7 +2145,7 @@ async function na(e, t) {
2140
2145
  variant: "danger"
2141
2146
  });
2142
2147
  } catch (t) {
2143
- r !== null && De(e, r), a.error("Failed to run cells", t), m({
2148
+ r !== null && Le(e, r), a.error("Failed to run cells", t), m({
2144
2149
  title: "Failed to run",
2145
2150
  description: on(t),
2146
2151
  variant: "danger"
@@ -2149,8 +2154,8 @@ async function na(e, t) {
2149
2154
  }
2150
2155
  //#endregion
2151
2156
  //#region src/core/codemirror/cells/state.ts
2152
- var ra = Hn.define({ combine: (e) => e[0] }), B = Hn.define({ combine: (e) => e[0] }), ia = N((e) => {
2153
- let t = e(Rt);
2157
+ var B = Wn.define({ combine: (e) => e[0] }), ia = Wn.define({ combine: (e) => e[0] }), aa = P((e) => {
2158
+ let t = e(yt);
2154
2159
  if (t === null) return null;
2155
2160
  let n = Object.create(null), r = cn.entries(t.cells);
2156
2161
  for (let [e, t] of r) for (let r of t.defs) (n[r] ??= {
@@ -2160,16 +2165,16 @@ var ra = Hn.define({ combine: (e) => e[0] }), B = Hn.define({ combine: (e) => e[
2160
2165
  }).declaredBy.push(e);
2161
2166
  for (let [e, t] of r) for (let r of t.refs) n[r]?.usedBy.push(e);
2162
2167
  return n;
2163
- }), aa = N((e) => {
2164
- let t = e(bt);
2168
+ }), oa = P((e) => {
2169
+ let t = e(Tt);
2165
2170
  return t && e(t.shownDocumentAtom) ? e(t.executionsAtom).variables : null;
2166
- }), oa = N((e) => {
2167
- let t = e(Et);
2168
- return t !== null && e(Rt)?.document_etag === t.revision.etag;
2169
- }), sa = Object.freeze(Object.create(null)), ca = N((e) => {
2170
- let t = e(ia), n = e(aa);
2171
- if (!n?.size) return t ?? sa;
2172
- let r = e(oa), i = Object.assign(Object.create(null), t);
2171
+ }), sa = P((e) => {
2172
+ let t = e(Bt);
2173
+ return t !== null && e(yt)?.document_etag === t.revision.etag;
2174
+ }), ca = Object.freeze(Object.create(null)), la = P((e) => {
2175
+ let t = e(aa), n = e(oa);
2176
+ if (!n?.size) return t ?? ca;
2177
+ let r = e(sa), i = Object.assign(Object.create(null), t);
2173
2178
  for (let [e, a] of n) for (let n of a.values()) {
2174
2179
  let a = n.name, o = t?.[a], s = o?.declaredBy.includes(e) ? o : void 0;
2175
2180
  r && o && !s || (i[a] = {
@@ -2185,11 +2190,6 @@ var ra = Hn.define({ combine: (e) => e[0] }), B = Hn.define({ combine: (e) => e[
2185
2190
  return i;
2186
2191
  });
2187
2192
  //#endregion
2188
- //#region src/utils/math.ts
2189
- function la(e, t, n) {
2190
- return Math.min(Math.max(e, t), n);
2191
- }
2192
- //#endregion
2193
2193
  //#region src/utils/storage/jotai.ts
2194
2194
  function ua(e) {
2195
2195
  let t = e.storage || st;
@@ -2212,7 +2212,7 @@ function ua(e) {
2212
2212
  }
2213
2213
  };
2214
2214
  }
2215
- var da = Dt(() => st);
2215
+ var da = St(() => st);
2216
2216
  //#endregion
2217
2217
  //#region src/utils/repl.ts
2218
2218
  function fa(e, t) {
@@ -2234,7 +2234,7 @@ function ma(e) {
2234
2234
  return tn()?.experimental?.[e] ?? pa[e];
2235
2235
  }
2236
2236
  function ha(e, t) {
2237
- Ee().saveUserConfig({ config: { experimental: { [e]: t } } });
2237
+ De().saveUserConfig({ config: { experimental: { [e]: t } } });
2238
2238
  }
2239
2239
  fa(ha, "setFeatureFlag");
2240
2240
  //#endregion
@@ -2354,7 +2354,7 @@ var ga = [
2354
2354
  label: "Secrets",
2355
2355
  tooltip: "Manage secrets",
2356
2356
  defaultSection: "developer-panel",
2357
- hidden: qn(),
2357
+ hidden: Yn(),
2358
2358
  additionalKeywords: [
2359
2359
  "env",
2360
2360
  "environment",
@@ -2375,7 +2375,7 @@ var ga = [
2375
2375
  Icon: xi,
2376
2376
  label: "Terminal",
2377
2377
  tooltip: "Terminal",
2378
- hidden: qn(),
2378
+ hidden: Yn(),
2379
2379
  defaultSection: "developer-panel",
2380
2380
  requiredCapability: "terminal",
2381
2381
  additionalKeywords: [
@@ -2420,16 +2420,16 @@ function va(e) {
2420
2420
  var ya = ua({
2421
2421
  toSerializable: (e) => e,
2422
2422
  fromSerializable: (e) => va(e)
2423
- }), ba = Tt("marimo:panel-layout", _a, ya, { getOnInit: !0 });
2423
+ }), ba = Et("marimo:panel-layout", _a, ya, { getOnInit: !0 });
2424
2424
  function xa(e) {
2425
2425
  let t = M.get(ba);
2426
2426
  return t.sidebar.includes(e) ? "sidebar" : t.developerPanel.includes(e) ? "developer-panel" : null;
2427
2427
  }
2428
- var Sa = "marimo:sidebar", Ca = new Ne(Kt({
2429
- selectedPanel: $t().optional().transform((e) => e),
2428
+ var Sa = "marimo:sidebar", Ca = new Ne(Jt({
2429
+ selectedPanel: en().optional().transform((e) => e),
2430
2430
  isSidebarOpen: kt(),
2431
2431
  isDeveloperPanelOpen: kt().optional().default(!1),
2432
- selectedDeveloperPanelTab: $t().optional().default("errors").transform((e) => e)
2432
+ selectedDeveloperPanelTab: en().optional().default("errors").transform((e) => e)
2433
2433
  }), wa);
2434
2434
  function wa() {
2435
2435
  return {
@@ -2439,7 +2439,7 @@ function wa() {
2439
2439
  selectedDeveloperPanelTab: "errors"
2440
2440
  };
2441
2441
  }
2442
- var { reducer: Ta, createActions: Ea, valueAtom: Da, useActions: Oa } = dn(() => Ca.get(Sa), {
2442
+ var { reducer: Ta, createActions: Ea, valueAtom: Da, useActions: Oa } = pn(() => Ca.get(Sa), {
2443
2443
  openApplication: (e, t) => {
2444
2444
  let n = xa(t);
2445
2445
  return n === "sidebar" ? {
@@ -2486,7 +2486,7 @@ function ka() {
2486
2486
  }
2487
2487
  //#endregion
2488
2488
  //#region src/core/config/capabilities.ts
2489
- var Aa = N({
2489
+ var Aa = P({
2490
2490
  terminal: !1,
2491
2491
  pylsp: !1,
2492
2492
  basedpyright: !1,
@@ -2498,12 +2498,12 @@ function ja(e) {
2498
2498
  }
2499
2499
  //#endregion
2500
2500
  //#region src/core/documentation/state.ts
2501
- var Ma = N({ documentation: null }), Na = mn.mark({ class: "mo-cm-reactive-reference" });
2502
- mn.mark({ class: "mo-cm-reactive-reference-hover" });
2503
- var Pa = _n.define(), Fa = wn.define({
2501
+ var Ma = P({ documentation: null }), Na = gn.mark({ class: "mo-cm-reactive-reference" });
2502
+ gn.mark({ class: "mo-cm-reactive-reference-hover" });
2503
+ var Pa = yn.define(), Fa = En.define({
2504
2504
  create() {
2505
2505
  return {
2506
- decorations: mn.none,
2506
+ decorations: gn.none,
2507
2507
  ranges: []
2508
2508
  };
2509
2509
  },
@@ -2513,12 +2513,12 @@ var Pa = _n.define(), Fa = wn.define({
2513
2513
  ranges: e.ranges
2514
2514
  };
2515
2515
  for (let e of t.effects) e.is(Pa) && (n = {
2516
- decorations: mn.set(e.value.map((e) => Na.range(e.from, e.to))),
2516
+ decorations: gn.set(e.value.map((e) => Na.range(e.from, e.to))),
2517
2517
  ranges: e.value
2518
2518
  });
2519
2519
  return n;
2520
2520
  },
2521
- provide: (e) => bn.decorations.from(e, (e) => e.decorations)
2521
+ provide: (e) => Sn.decorations.from(e, (e) => e.decorations)
2522
2522
  });
2523
2523
  //#endregion
2524
2524
  //#region src/utils/uuid.ts
@@ -2574,7 +2574,7 @@ function za(e, t = !1) {
2574
2574
  return n;
2575
2575
  }
2576
2576
  var Ba = new Ra("autocomplete-result", async (e, t) => {
2577
- let { sendCodeCompletionRequest: n } = Ee();
2577
+ let { sendCodeCompletionRequest: n } = De();
2578
2578
  await n({
2579
2579
  id: e,
2580
2580
  ...t
@@ -2667,7 +2667,7 @@ var qa = sn(async (e, t) => {
2667
2667
  });
2668
2668
  n !== "cancelled" && M.set(Ma, { documentation: n?.html ?? null });
2669
2669
  }, 300);
2670
- bn.updateListener.of((e) => {
2670
+ Sn.updateListener.of((e) => {
2671
2671
  if (e.selectionSet && Ka(e.state)) {
2672
2672
  let t = e.state.selection.main.head;
2673
2673
  qa(e.view, t);
@@ -7793,11 +7793,11 @@ function Nl(e, t) {
7793
7793
  n.dispatch({ changes: r }), e = r.mapPos(e, 1), t = r.mapPos(t, 1);
7794
7794
  }
7795
7795
  let r = n.state.doc.length;
7796
- tr(jl(f))(n, null, e, t), h(n.state.doc.length - r + (t - e));
7796
+ rr(jl(f))(n, null, e, t), h(n.state.doc.length - r + (t - e));
7797
7797
  return;
7798
7798
  }
7799
7799
  if (c === Cl.Snippet && (f = Ml(f)), m.length === 0) {
7800
- n.dispatch(ar(o, f, l, u)), h(f.length);
7800
+ n.dispatch(sr(o, f, l, u)), h(f.length);
7801
7801
  return;
7802
7802
  }
7803
7803
  let g = o.changes([{
@@ -7881,12 +7881,12 @@ function Ul(e) {
7881
7881
  return !1;
7882
7882
  }
7883
7883
  }
7884
- var Wl = Hn.define({ combine(e) {
7884
+ var Wl = Wn.define({ combine(e) {
7885
7885
  if (e.length === 0) return Vl(e);
7886
7886
  let t = Vl(e);
7887
7887
  if (!(t && Ul(t))) throw Error("Document URI must be a non-empty absolute URI");
7888
7888
  return t;
7889
- } }), Gl = Hn.define({ combine(e) {
7889
+ } }), Gl = Wn.define({ combine(e) {
7890
7890
  if (e.length === 0) return Hl(e);
7891
7891
  let t = Hl(e);
7892
7892
  if (!t.trim()) throw Error("Language ID must be a non-empty string");
@@ -8436,7 +8436,7 @@ function lu(e) {
8436
8436
  }
8437
8437
  return t.protocol === "http:" || t.protocol === "https:" || t.protocol === "mailto:";
8438
8438
  }
8439
- var uu = _n.define(), du = wn.define({
8439
+ var uu = yn.define(), du = En.define({
8440
8440
  create: () => /* @__PURE__ */ new Map(),
8441
8441
  update(e, t) {
8442
8442
  let n = e;
@@ -8454,7 +8454,7 @@ var uu = _n.define(), du = wn.define({
8454
8454
  }
8455
8455
  return n;
8456
8456
  }
8457
- }), fu = _n.define(), pu = wn.define({
8457
+ }), fu = yn.define(), pu = En.define({
8458
8458
  create: () => null,
8459
8459
  update(e, t) {
8460
8460
  for (let e of t.effects) if (e.is(fu)) return e.value;
@@ -8468,8 +8468,8 @@ var uu = _n.define(), du = wn.define({
8468
8468
  }
8469
8469
  return e;
8470
8470
  },
8471
- provide: (e) => jn.from(e)
8472
- }), mu = Fn.define(), hu = 20, gu = /* @__PURE__ */ new WeakMap();
8471
+ provide: (e) => Nn.from(e)
8472
+ }), mu = Ln.define(), hu = 20, gu = /* @__PURE__ */ new WeakMap();
8473
8473
  function _u(e, t) {
8474
8474
  let n = gu.get(e);
8475
8475
  n ? n.push(t) : gu.set(e, [t]);
@@ -8781,14 +8781,14 @@ var yu = class {
8781
8781
  }
8782
8782
  setOwnDiagnostics(e, t = /* @__PURE__ */ new Map()) {
8783
8783
  let n = this.view.state, r = [];
8784
- $n(n, (e, t, n) => {
8784
+ tr(n, (e, t, n) => {
8785
8785
  this.ownsDiagnostic(e) || r.push({
8786
8786
  ...e,
8787
8787
  from: t,
8788
8788
  to: n
8789
8789
  });
8790
8790
  });
8791
- let i = Yn(n, [...r, ...e]), a = i.effects, o = Array.isArray(a) ? [...a] : a ? [a] : [];
8791
+ let i = Zn(n, [...r, ...e]), a = i.effects, o = Array.isArray(a) ? [...a] : a ? [a] : [];
8792
8792
  o.push(uu.of({
8793
8793
  pluginId: this.pluginId,
8794
8794
  anchors: t
@@ -8906,7 +8906,7 @@ var yu = class {
8906
8906
  info: Bc.DiagnosticSeverity.Information,
8907
8907
  hint: Bc.DiagnosticSeverity.Hint
8908
8908
  }, o = [];
8909
- return $n(e.state, (e, t, s) => {
8909
+ return tr(e.state, (e, t, s) => {
8910
8910
  if (t > i || s < r) return;
8911
8911
  let c = {
8912
8912
  start: Hc(n, t),
@@ -9238,7 +9238,7 @@ var yu = class {
9238
9238
  async applyRenameEdit(e, t) {
9239
9239
  return this.applyWorkspaceEdit(e, t);
9240
9240
  }
9241
- }, bu = bn.baseTheme({
9241
+ }, bu = Sn.baseTheme({
9242
9242
  ".cm-lsp-unnecessary": { opacity: "0.6" },
9243
9243
  ".cm-lsp-deprecated": { textDecoration: "line-through" },
9244
9244
  ".cm-diagnostic-related": {
@@ -9253,7 +9253,7 @@ var yu = class {
9253
9253
  display: "inline-block",
9254
9254
  marginTop: "4px"
9255
9255
  }
9256
- }), xu = bn.baseTheme({ ".cm-tooltip-autocomplete li.cm-deprecated .cm-completionLabel": { textDecoration: "line-through" } });
9256
+ }), xu = Sn.baseTheme({ ".cm-tooltip-autocomplete li.cm-deprecated .cm-completionLabel": { textDecoration: "line-through" } });
9257
9257
  function Su(e) {
9258
9258
  let t = {
9259
9259
  rename: "F2",
@@ -9272,7 +9272,7 @@ function Su(e) {
9272
9272
  signatureActivateOnTyping: !1,
9273
9273
  signatureHelpOptions: { position: "below" },
9274
9274
  ...e
9275
- }, i = Dn.define((t) => new yu({
9275
+ }, i = kn.define((t) => new yu({
9276
9276
  client: n,
9277
9277
  documentUri: e.documentUri ?? t.state.facet(Wl),
9278
9278
  languageId: e.languageId ?? t.state.facet(Gl),
@@ -9287,7 +9287,7 @@ function Su(e) {
9287
9287
  markdownRenderer: e.markdownRenderer,
9288
9288
  codeActionsConfig: e.codeActionsConfig
9289
9289
  })), a = (e) => e.plugin(i), o = [i];
9290
- if (r.diagnosticsEnabled && o.push(du, bu), o.push(Nn.of([
9290
+ if (r.diagnosticsEnabled && o.push(du, bu), o.push(Fn.of([
9291
9291
  {
9292
9292
  key: t.signatureHelp,
9293
9293
  run: (e) => {
@@ -9322,25 +9322,25 @@ function Su(e) {
9322
9322
  return t.requestDefinition(e, Hc(e.state.doc, n)).catch((t) => ll(e, `Go to definition failed: ${t instanceof Error ? t.message : "Unknown error"}`)), !0;
9323
9323
  }
9324
9324
  }
9325
- ])), r.hoverEnabled && o.push(Ln((e, t) => {
9325
+ ])), r.hoverEnabled && o.push(zn((e, t) => {
9326
9326
  let n = a(e);
9327
9327
  return n == null ? null : n.requestHoverTooltip(e, Hc(e.state.doc, t));
9328
9328
  }, e.hoverConfig)), r.signatureHelpEnabled) {
9329
9329
  o.push(pu);
9330
9330
  let e = (e) => e.state.field(pu) ? (e.dispatch({ effects: fu.of(null) }), !0) : !1;
9331
- o.push(bn.domEventHandlers({ mousedown: (t, n) => (e(n), !1) })), o.push(Nn.of([{
9331
+ o.push(Sn.domEventHandlers({ mousedown: (t, n) => (e(n), !1) })), o.push(Fn.of([{
9332
9332
  key: ")",
9333
9333
  run: (t) => (e(t), !1)
9334
9334
  }, {
9335
9335
  key: "Escape",
9336
9336
  run: (t) => e(t)
9337
- }])), o.push(bn.updateListener.of((t) => {
9337
+ }])), o.push(Sn.updateListener.of((t) => {
9338
9338
  if (!(a(t.view) && r.signatureActivateOnTyping) || !t.state.field(pu) || !(t.selectionSet || t.docChanged)) return;
9339
9339
  let n = t.state.selection.main.head;
9340
9340
  Eu(t.state.doc, n) || queueMicrotask(() => {
9341
9341
  e(t.view);
9342
9342
  });
9343
- })), o.push(bn.updateListener.of(async (e) => {
9343
+ })), o.push(Sn.updateListener.of(async (e) => {
9344
9344
  let t = a(e.view);
9345
9345
  if (!(t && e.docChanged) || e.transactions.some((e) => e.annotation(mu)) || !t.client.hasCapability("textDocument/signatureHelp") || !r.signatureActivateOnTyping) return;
9346
9346
  let n = t.client.capabilities?.signatureHelpProvider?.triggerCharacters || ["(", ","], i = e.changes, o = -1, s;
@@ -9353,7 +9353,7 @@ function Su(e) {
9353
9353
  }
9354
9354
  if (r.completionEnabled) {
9355
9355
  let t = e.completionConfig?.optionClass;
9356
- o.push(xu, rr({
9356
+ o.push(xu, ar({
9357
9357
  ...e.completionConfig,
9358
9358
  optionClass: (e) => [gl(e), t?.(e) ?? ""].filter(Boolean).join(" "),
9359
9359
  override: [async (t) => {
@@ -9364,7 +9364,7 @@ function Su(e) {
9364
9364
  }, ...e.completionConfig?.override || []]
9365
9365
  }));
9366
9366
  }
9367
- return o.push(bn.domEventHandlers({ click: (e, n) => {
9367
+ return o.push(Sn.domEventHandlers({ click: (e, n) => {
9368
9368
  if (r.definitionEnabled && t.goToDefinition === "ctrlcmd" && (e.ctrlKey || e.metaKey)) {
9369
9369
  let t = n.posAtCoords({
9370
9370
  x: e.clientX,
@@ -9404,7 +9404,7 @@ function Eu(e, t, n = hu) {
9404
9404
  //#endregion
9405
9405
  //#region src/core/codemirror/facet.ts
9406
9406
  function Du() {
9407
- return Hn.define({ combine: (e) => e.find((e) => e !== void 0) });
9407
+ return Wn.define({ combine: (e) => e.find((e) => e !== void 0) });
9408
9408
  }
9409
9409
  //#endregion
9410
9410
  //#region src/core/codemirror/config/extension.ts
@@ -10107,14 +10107,14 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10107
10107
  }
10108
10108
  n &= ~d;
10109
10109
  }
10110
- r !== 0 && M(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
10110
+ r !== 0 && bt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
10111
10111
  }
10112
- function M(e, t, n) {
10112
+ function bt(e, t, n) {
10113
10113
  e.pendingLanes |= t, e.suspendedLanes &= ~t;
10114
10114
  var r = 31 - rt(t);
10115
10115
  e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
10116
10116
  }
10117
- function bt(e, t) {
10117
+ function M(e, t) {
10118
10118
  var n = e.entangledLanes |= t;
10119
10119
  for (e = e.entanglements; n;) {
10120
10120
  var r = 31 - rt(n), i = 1 << r;
@@ -10163,14 +10163,14 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10163
10163
  }
10164
10164
  return e;
10165
10165
  }
10166
- function Ct(e) {
10166
+ function N(e) {
10167
10167
  return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
10168
10168
  }
10169
- function wt() {
10169
+ function Ct() {
10170
10170
  var e = A.p;
10171
10171
  return e === 0 ? (e = window.event, e === void 0 ? 32 : wh(e.type)) : e;
10172
10172
  }
10173
- function Tt(e, t) {
10173
+ function wt(e, t) {
10174
10174
  var n = A.p;
10175
10175
  try {
10176
10176
  return A.p = e, t();
@@ -10178,17 +10178,17 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10178
10178
  A.p = n;
10179
10179
  }
10180
10180
  }
10181
- var Et = Math.random().toString(36).slice(2), Dt = "__reactFiber$" + Et, Ot = "__reactProps$" + Et, N = "__reactContainer$" + Et, P = "__reactEvents$" + Et, kt = "__reactListeners$" + Et, At = "__reactHandles$" + Et, jt = "__reactResources$" + Et, Mt = "__reactMarker$" + Et, Nt = "__reactLoad$" + Et;
10181
+ var Tt = Math.random().toString(36).slice(2), Et = "__reactFiber$" + Tt, Dt = "__reactProps$" + Tt, Ot = "__reactContainer$" + Tt, P = "__reactEvents$" + Tt, kt = "__reactListeners$" + Tt, At = "__reactHandles$" + Tt, jt = "__reactResources$" + Tt, Mt = "__reactMarker$" + Tt, Nt = "__reactLoad$" + Tt;
10182
10182
  function Pt(e) {
10183
- delete e[Dt], delete e[Ot], delete e[kt], delete e[At];
10183
+ delete e[Et], delete e[Dt], delete e[kt], delete e[At];
10184
10184
  }
10185
10185
  function Ft(e) {
10186
10186
  var t;
10187
- if (t = e[Dt]) return t;
10187
+ if (t = e[Et]) return t;
10188
10188
  for (var n = e.parentNode; n;) {
10189
- if (t = n[N] || n[Dt]) {
10189
+ if (t = n[Ot] || n[Et]) {
10190
10190
  if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = pm(e); e !== null;) {
10191
- if (n = e[Dt]) return n;
10191
+ if (n = e[Et]) return n;
10192
10192
  e = pm(e);
10193
10193
  }
10194
10194
  return t;
@@ -10198,7 +10198,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10198
10198
  return null;
10199
10199
  }
10200
10200
  function It(e) {
10201
- if (e = e[Dt] || e[N]) {
10201
+ if (e = e[Et] || e[Ot]) {
10202
10202
  var t = e.tag;
10203
10203
  if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
10204
10204
  }
@@ -10524,7 +10524,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10524
10524
  function En(e) {
10525
10525
  var t = It(e);
10526
10526
  if (t && (e = t.stateNode)) {
10527
- var n = e[Ot] || null;
10527
+ var n = e[Dt] || null;
10528
10528
  a: switch (e = t.stateNode, t.type) {
10529
10529
  case "input":
10530
10530
  if (sn(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
@@ -10532,7 +10532,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10532
10532
  for (n = n.querySelectorAll("input[name=\"" + on("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
10533
10533
  var r = n[t];
10534
10534
  if (r !== e && r.form === e.form) {
10535
- var a = r[Ot] || null;
10535
+ var a = r[Dt] || null;
10536
10536
  if (!a) throw Error(i(90));
10537
10537
  sn(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
10538
10538
  }
@@ -10548,7 +10548,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10548
10548
  }
10549
10549
  }
10550
10550
  var Dn = !1;
10551
- function I(e, t, n) {
10551
+ function On(e, t, n) {
10552
10552
  if (Dn) return e(t, n);
10553
10553
  Dn = !0;
10554
10554
  try {
@@ -10557,10 +10557,10 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10557
10557
  if (Dn = !1, (wn !== null || Tn !== null) && (Bd(), wn && (t = wn, e = Tn, Tn = wn = null, En(t), e))) for (t = 0; t < e.length; t++) En(e[t]);
10558
10558
  }
10559
10559
  }
10560
- function On(e, t) {
10560
+ function kn(e, t) {
10561
10561
  var n = e.stateNode;
10562
10562
  if (n === null) return null;
10563
- var r = n[Ot] || null;
10563
+ var r = n[Dt] || null;
10564
10564
  if (r === null) return null;
10565
10565
  n = r[t];
10566
10566
  a: switch (t) {
@@ -10583,8 +10583,8 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10583
10583
  if (n && typeof n != "function") throw Error(i(231, t, typeof n));
10584
10584
  return n;
10585
10585
  }
10586
- var kn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, An = !1;
10587
- if (kn) try {
10586
+ var I = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, An = !1;
10587
+ if (I) try {
10588
10588
  var jn = {};
10589
10589
  Object.defineProperty(jn, "passive", { get: function() {
10590
10590
  An = !0;
@@ -10802,9 +10802,9 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10802
10802
  13,
10803
10803
  27,
10804
10804
  32
10805
- ], pr = kn && "CompositionEvent" in window, mr = null;
10806
- kn && "documentMode" in document && (mr = document.documentMode);
10807
- var hr = kn && "TextEvent" in window && !mr, gr = kn && (!pr || mr && 8 < mr && 11 >= mr), _r = " ", vr = !1;
10805
+ ], pr = I && "CompositionEvent" in window, mr = null;
10806
+ I && "documentMode" in document && (mr = document.documentMode);
10807
+ var hr = I && "TextEvent" in window && !mr, gr = I && (!pr || mr && 8 < mr && 11 >= mr), _r = " ", vr = !1;
10808
10808
  function yr(e, t) {
10809
10809
  switch (e) {
10810
10810
  case "keyup": return fr.indexOf(t.keyCode) !== -1;
@@ -10879,9 +10879,9 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10879
10879
  if (e === "change") return t;
10880
10880
  }
10881
10881
  var Mr = !1;
10882
- if (kn) {
10882
+ if (I) {
10883
10883
  var Nr;
10884
- if (kn) {
10884
+ if (I) {
10885
10885
  var Pr = "oninput" in document;
10886
10886
  if (!Pr) {
10887
10887
  var Fr = document.createElement("div");
@@ -10897,7 +10897,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10897
10897
  function Lr(e) {
10898
10898
  if (e.propertyName === "value" && Ar(Or)) {
10899
10899
  var t = [];
10900
- Er(t, Or, e, Cn(e)), I(kr, t);
10900
+ Er(t, Or, e, Cn(e)), On(kr, t);
10901
10901
  }
10902
10902
  }
10903
10903
  function Rr(e, t, n) {
@@ -10984,7 +10984,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
10984
10984
  var t = e && e.nodeName && e.nodeName.toLowerCase();
10985
10985
  return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
10986
10986
  }
10987
- var Yr = kn && "documentMode" in document && 11 >= document.documentMode, Xr = null, Zr = null, Qr = null, $r = !1;
10987
+ var Yr = I && "documentMode" in document && 11 >= document.documentMode, Xr = null, Zr = null, Qr = null, $r = !1;
10988
10988
  function ei(e, t, n) {
10989
10989
  var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
10990
10990
  $r || Xr == null || Xr !== R(r) || (r = Xr, "selectionStart" in r && Jr(r) ? r = {
@@ -11013,7 +11013,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
11013
11013
  transitioncancel: ti("Transition", "TransitionCancel"),
11014
11014
  transitionend: ti("Transition", "TransitionEnd")
11015
11015
  }, ri = {}, ii = {};
11016
- kn && (ii = document.createElement("div").style, "AnimationEvent" in window || (delete ni.animationend.animation, delete ni.animationiteration.animation, delete ni.animationstart.animation), "TransitionEvent" in window || delete ni.transitionend.transition);
11016
+ I && (ii = document.createElement("div").style, "AnimationEvent" in window || (delete ni.animationend.animation, delete ni.animationiteration.animation, delete ni.animationstart.animation), "TransitionEvent" in window || delete ni.transitionend.transition);
11017
11017
  function ai(e) {
11018
11018
  if (ri[e]) return ri[e];
11019
11019
  if (!ni[e]) return e;
@@ -11233,7 +11233,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
11233
11233
  }
11234
11234
  function ca(e) {
11235
11235
  var t = e.stateNode, n = e.type, r = e.memoizedProps;
11236
- switch (t[Dt] = e, t[Ot] = r, n) {
11236
+ switch (t[Et] = e, t[Dt] = r, n) {
11237
11237
  case "dialog":
11238
11238
  Q("cancel", t), Q("close", t);
11239
11239
  break;
@@ -11813,7 +11813,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
11813
11813
  function vo(e, t, n) {
11814
11814
  if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
11815
11815
  var r = t.lanes;
11816
- r &= e.pendingLanes, n |= r, t.lanes = n, bt(e, n);
11816
+ r &= e.pendingLanes, n |= r, t.lanes = n, M(e, n);
11817
11817
  }
11818
11818
  }
11819
11819
  function yo(e, t) {
@@ -12616,7 +12616,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
12616
12616
  function U(e, t, n) {
12617
12617
  if (n & 4194048) {
12618
12618
  var r = t.lanes;
12619
- r &= e.pendingLanes, n |= r, t.lanes = n, bt(e, n);
12619
+ r &= e.pendingLanes, n |= r, t.lanes = n, M(e, n);
12620
12620
  }
12621
12621
  }
12622
12622
  var pc = {
@@ -13549,7 +13549,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
13549
13549
  default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
13550
13550
  }
13551
13551
  }
13552
- o[Dt] = t, o[Ot] = r;
13552
+ o[Et] = t, o[Dt] = r;
13553
13553
  a: for (s = t.child; s !== null;) {
13554
13554
  if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);
13555
13555
  else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {
@@ -13589,8 +13589,8 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
13589
13589
  case 27:
13590
13590
  case 5: r = a.memoizedProps;
13591
13591
  }
13592
- e[Dt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || ep(e.nodeValue, n)), e || sa(t, !0);
13593
- } else e = up(e).createTextNode(r), e[Dt] = t, t.stateNode = e;
13592
+ e[Et] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || ep(e.nodeValue, n)), e || sa(t, !0);
13593
+ } else e = up(e).createTextNode(r), e[Et] = t, t.stateNode = e;
13594
13594
  }
13595
13595
  return _l(t), null;
13596
13596
  case 31:
@@ -13599,7 +13599,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
13599
13599
  if (e === null) {
13600
13600
  if (!r) throw Error(i(318));
13601
13601
  if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
13602
- e[Dt] = t;
13602
+ e[Et] = t;
13603
13603
  } else da(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
13604
13604
  _l(t), e = !1;
13605
13605
  } else n = fa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
@@ -13613,7 +13613,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
13613
13613
  if (e === null) {
13614
13614
  if (!a) throw Error(i(318));
13615
13615
  if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
13616
- a[Dt] = t;
13616
+ a[Et] = t;
13617
13617
  } else da(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
13618
13618
  _l(t), a = !1;
13619
13619
  } else a = fa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
@@ -13873,7 +13873,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
13873
13873
  function Nl(e, t, n) {
13874
13874
  try {
13875
13875
  var r = e.stateNode;
13876
- ap(r, e.type, n, t), r[Ot] = t;
13876
+ ap(r, e.type, n, t), r[Dt] = t;
13877
13877
  } catch (t) {
13878
13878
  X(e, e.return, t);
13879
13879
  }
@@ -13908,7 +13908,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
13908
13908
  var t = e.stateNode, n = e.memoizedProps;
13909
13909
  try {
13910
13910
  for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
13911
- rp(t, r, n), t[Dt] = e, t[Ot] = n;
13911
+ rp(t, r, n), t[Et] = e, t[Dt] = n;
13912
13912
  } catch (t) {
13913
13913
  X(e, e.return, t);
13914
13914
  }
@@ -14459,7 +14459,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
14459
14459
  t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
14460
14460
  b: switch (t) {
14461
14461
  case "title":
14462
- r = a.getElementsByTagName("title")[0], (!r || r[Mt] || r[Dt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), rp(r, t, n), r[Dt] = e, zt(r), t = r;
14462
+ r = a.getElementsByTagName("title")[0], (!r || r[Mt] || r[Et] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), rp(r, t, n), r[Et] = e, zt(r), t = r;
14463
14463
  break a;
14464
14464
  case "link":
14465
14465
  if (o = Km("link", "href", a).get(t + (n.href || ""))) {
@@ -14481,7 +14481,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
14481
14481
  break;
14482
14482
  default: throw Error(i(468, t));
14483
14483
  }
14484
- r[Dt] = e, zt(r), t = r;
14484
+ r[Et] = e, zt(r), t = r;
14485
14485
  }
14486
14486
  e.stateNode = t;
14487
14487
  }
@@ -14991,7 +14991,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
14991
14991
  }
14992
14992
  }, $u = typeof WeakMap == "function" ? WeakMap : Map, K = 0, ed = null, q = null, J = 0, Y = 0, td = null, nd = !1, rd = !1, id = !1, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = 0, fd = null, pd = null, md = !1, hd = 0, gd = 0, _d = Infinity, vd = null, yd = null, bd = 0, xd = null, Sd = null, Cd = 0, wd = 0, Td = null, Ed = null, Dd = null, Od = null, kd = null, Ad = 0, jd = null;
14993
14993
  function Md() {
14994
- return K & 2 && J !== 0 ? J & -J : k.T === null ? wt() : Pf();
14994
+ return K & 2 && J !== 0 ? J & -J : k.T === null ? Ct() : Pf();
14995
14995
  }
14996
14996
  function Nd() {
14997
14997
  if (ud === 0) {
@@ -15117,7 +15117,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15117
15117
  var a = 31 - rt(i), o = 1 << a;
15118
15118
  r[a] = -1, i &= ~o;
15119
15119
  }
15120
- n !== 0 && M(e, n, t);
15120
+ n !== 0 && bt(e, n, t);
15121
15121
  }
15122
15122
  function Bd() {
15123
15123
  return K & 6 ? !0 : (Df(0, !1), !1);
@@ -15444,7 +15444,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15444
15444
  var e = Dd;
15445
15445
  Dd = null, We();
15446
15446
  var t = xd, n = Sd, r = Cd, i = Ed, a = (r & 335544064) === r ? 10262 : 10256;
15447
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? bd = 5 : (bd = 0, Sd = xd = null, df(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (yd = null), Ct(r), n = n.stateNode, tt && typeof tt.onCommitFiberRoot == "function") try {
15447
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? bd = 5 : (bd = 0, Sd = xd = null, df(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (yd = null), N(r), n = n.stateNode, tt && typeof tt.onCommitFiberRoot == "function") try {
15448
15448
  tt.onCommitFiberRoot(et, n, void 0, (n.current.flags & 128) == 128);
15449
15449
  } catch {}
15450
15450
  if (i !== null) {
@@ -15472,7 +15472,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15472
15472
  if (bd !== 5) return !1;
15473
15473
  var e = xd, t = wd;
15474
15474
  wd = 0;
15475
- var n = Ct(Cd), r = k.T, a = A.p;
15475
+ var n = N(Cd), r = k.T, a = A.p;
15476
15476
  try {
15477
15477
  A.p = 32 > n ? 32 : n, k.T = null, n = Td, Td = null;
15478
15478
  var o = xd, s = Cd;
@@ -15594,7 +15594,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15594
15594
  if (t = ed, n = J, n = dt(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (Y === 2 || Y === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && He(r), e.callbackNode = null, e.callbackPriority = 0;
15595
15595
  if (!(n & 3) || ft(e, n)) {
15596
15596
  if (t = n & -n, t === e.callbackPriority) return t;
15597
- switch (r !== null && He(r), Ct(n)) {
15597
+ switch (r !== null && He(r), N(n)) {
15598
15598
  case 2:
15599
15599
  case 8:
15600
15600
  n = Je;
@@ -15639,8 +15639,8 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15639
15639
  }
15640
15640
  function If(e, t, n, r, i) {
15641
15641
  if (t === "submit" && n && n.stateNode === i) {
15642
- var a = Ff((i[Ot] || null).action), o = r.submitter;
15643
- o && (t = (t = o[Ot] || null) ? Ff(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
15642
+ var a = Ff((i[Dt] || null).action), o = r.submitter;
15643
+ o && (t = (t = o[Dt] || null) ? Ff(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
15644
15644
  var s = new Vn("action", "action", null, r, i);
15645
15645
  e.push({
15646
15646
  event: s,
@@ -15770,7 +15770,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15770
15770
  }
15771
15771
  r = r.return;
15772
15772
  }
15773
- I(function() {
15773
+ On(function() {
15774
15774
  var r = a, i = Cn(n), s = [];
15775
15775
  a: {
15776
15776
  var c = pi.get(e);
@@ -15859,7 +15859,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15859
15859
  d = [];
15860
15860
  for (var m = r, h; m !== null;) {
15861
15861
  var g = m;
15862
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = On(m, p), g != null && d.push(qf(m, g, h))), f) break;
15862
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = kn(m, p), g != null && d.push(qf(m, g, h))), f) break;
15863
15863
  m = m.return;
15864
15864
  }
15865
15865
  0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -15870,7 +15870,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15870
15870
  }
15871
15871
  if (!(t & 7)) {
15872
15872
  a: {
15873
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== Sn && (u = n.relatedTarget || n.fromElement) && (Ft(u) || u[N])) break a;
15873
+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== Sn && (u = n.relatedTarget || n.fromElement) && (Ft(u) || u[Ot])) break a;
15874
15874
  (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Ft(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Jn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = or, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Lt(c), h = l == null ? u : Lt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Ft(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? ee(c, l, Yf) : null, c !== null && Xf(s, u, c, d, !1), l !== null && f !== null && Xf(s, f, l, d, !0)));
15875
15875
  }
15876
15876
  a: {
@@ -15944,7 +15944,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15944
15944
  function Jf(e, t) {
15945
15945
  for (var n = t + "Capture", r = []; e !== null;) {
15946
15946
  var i = e, a = i.stateNode;
15947
- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = On(e, n), i != null && r.unshift(qf(e, i, a)), i = On(e, t), i != null && r.push(qf(e, i, a))), e.tag === 3) return r;
15947
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = kn(e, n), i != null && r.unshift(qf(e, i, a)), i = kn(e, t), i != null && r.push(qf(e, i, a))), e.tag === 3) return r;
15948
15948
  e = e.return;
15949
15949
  }
15950
15950
  return [];
@@ -15960,7 +15960,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
15960
15960
  for (var a = t._reactName, o = []; n !== null && n !== r;) {
15961
15961
  var s = n, c = s.alternate, l = s.stateNode;
15962
15962
  if (s = s.tag, c !== null && c === r) break;
15963
- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = On(n, a), l != null && o.unshift(qf(n, l, c))) : i || (l = On(n, a), l != null && o.push(qf(n, l, c)))), n = n.return;
15963
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = kn(n, a), l != null && o.unshift(qf(n, l, c))) : i || (l = kn(n, a), l != null && o.push(qf(n, l, c)))), n = n.return;
15964
15964
  }
15965
15965
  o.length !== 0 && e.push({
15966
15966
  event: t,
@@ -16185,7 +16185,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
16185
16185
  case "textContent": return;
16186
16186
  default:
16187
16187
  if (!Ht.hasOwnProperty(n)) a: {
16188
- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[Ot] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
16188
+ if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[Dt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
16189
16189
  typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);
16190
16190
  break a;
16191
16191
  }
@@ -16528,7 +16528,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
16528
16528
  return e === 1 && t === "foreignObject" ? 0 : e;
16529
16529
  }
16530
16530
  function pp(e, t, n, r) {
16531
- return n = up(n).createElement(e), n[Dt] = r, n[Ot] = t, rp(n, e, t), zt(n), n;
16531
+ return n = up(n).createElement(e), n[Et] = r, n[Dt] = t, rp(n, e, t), zt(n), n;
16532
16532
  }
16533
16533
  function mp(e, t) {
16534
16534
  return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
@@ -17452,7 +17452,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
17452
17452
  if (r.has(e)) return r;
17453
17453
  for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
17454
17454
  var a = n[i];
17455
- if (!(a[Mt] || a[Dt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
17455
+ if (!(a[Mt] || a[Et] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
17456
17456
  var o = a.getAttribute(t) || "";
17457
17457
  o = e + o;
17458
17458
  var s = r.get(o);
@@ -17826,14 +17826,14 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
17826
17826
  if (n !== null) {
17827
17827
  if (t = n.tag, t === 13) {
17828
17828
  if (t = s(n), t !== null) {
17829
- e.blockedOn = t, Tt(e.priority, function() {
17829
+ e.blockedOn = t, wt(e.priority, function() {
17830
17830
  gh(n);
17831
17831
  });
17832
17832
  return;
17833
17833
  }
17834
17834
  } else if (t === 31) {
17835
17835
  if (t = c(n), t !== null) {
17836
- e.blockedOn = t, Tt(e.priority, function() {
17836
+ e.blockedOn = t, wt(e.priority, function() {
17837
17837
  gh(n);
17838
17838
  });
17839
17839
  return;
@@ -17899,12 +17899,12 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
17899
17899
  }
17900
17900
  for (; 0 < jh.length && (n = jh[0], n.blockedOn === null);) Ih(n), n.blockedOn === null && jh.shift();
17901
17901
  if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
17902
- var i = n[r], a = n[r + 1], o = i[Ot] || null;
17902
+ var i = n[r], a = n[r + 1], o = i[Dt] || null;
17903
17903
  if (typeof a == "function") o || Vh(n);
17904
17904
  else if (o) {
17905
17905
  var s = null;
17906
17906
  if (a && a.hasAttribute("formAction")) {
17907
- if (i = a, o = a[Ot] || null) s = o.formAction;
17907
+ if (i = a, o = a[Dt] || null) s = o.formAction;
17908
17908
  else if (Ch(i) !== null) continue;
17909
17909
  } else s = o.action;
17910
17910
  typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Vh(n);
@@ -17956,7 +17956,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
17956
17956
  if (e !== null) {
17957
17957
  this._internalRoot = null;
17958
17958
  var t = e.containerInfo;
17959
- fh(e.current, 2, null, e, null, null), Bd(), t[N] = null;
17959
+ fh(e.current, 2, null, e, null, null), Bd(), t[Ot] = null;
17960
17960
  }
17961
17961
  };
17962
17962
  function Gh(e) {
@@ -17964,7 +17964,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
17964
17964
  }
17965
17965
  Gh.prototype.unstable_scheduleHydration = function(e) {
17966
17966
  if (e) {
17967
- var t = wt();
17967
+ var t = Ct();
17968
17968
  e = {
17969
17969
  blockedOn: null,
17970
17970
  target: e,
@@ -17997,7 +17997,7 @@ var Ou = Du(), ku = Du(), Au = Du(), ju = Du(), Mu = Du(), Nu = /* @__PURE__ */
17997
17997
  e.createRoot = function(e, t) {
17998
17998
  if (!a(e)) throw Error(i(299));
17999
17999
  var n = !1, r = "", o = Sc, s = Cc, c = wc;
18000
- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = uh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[N] = t.current, Wf(e), new Wh(t);
18000
+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = uh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[Ot] = t.current, Wf(e), new Wh(t);
18001
18001
  };
18002
18002
  })), Iu = /* @__PURE__ */ i(((e, t) => {
18003
18003
  function n() {
@@ -18014,13 +18014,13 @@ function Ru(e, t) {
18014
18014
  return {
18015
18015
  dom: n,
18016
18016
  mount() {
18017
- r = (0, Lu.createRoot)(n), r.render(/* @__PURE__ */ (0, z.jsx)(Ot, {
18017
+ r = (0, Lu.createRoot)(n), r.render(/* @__PURE__ */ (0, z.jsx)(an, {
18018
18018
  store: M,
18019
18019
  children: /* @__PURE__ */ (0, z.jsx)(t, { view: e })
18020
18020
  }));
18021
18021
  },
18022
18022
  update() {
18023
- r?.render(/* @__PURE__ */ (0, z.jsx)(Ot, {
18023
+ r?.render(/* @__PURE__ */ (0, z.jsx)(an, {
18024
18024
  store: M,
18025
18025
  children: /* @__PURE__ */ (0, z.jsx)(t, { view: e })
18026
18026
  }));
@@ -18033,7 +18033,7 @@ function Ru(e, t) {
18033
18033
  //#endregion
18034
18034
  //#region ../node_modules/.pnpm/@codemirror+language-data@6.5.2/node_modules/@codemirror/language-data/dist/index.js
18035
18035
  function G(e) {
18036
- return new In(kn.define(e));
18036
+ return new Rn(jn.define(e));
18037
18037
  }
18038
18038
  function zu(e) {
18039
18039
  return import("./dist-BidYR5m4.js").then((e) => e.u).then((t) => t.sql({ dialect: t[e] }));
@@ -19766,21 +19766,21 @@ var Nd = [
19766
19766
  "redo"
19767
19767
  ];
19768
19768
  function Pd({ docChanged: e, transactions: t, predicate: n = () => !0, hasFocus: r = !1 }) {
19769
- return !e || !n() || t.some((e) => e.effects.some((e) => e.is(Nx))) ? !1 : t.some((e) => e.annotation(pn.remote) ? !1 : Nd.some((t) => e.isUserEvent(t)) || r);
19769
+ return !e || !n() || t.some((e) => e.effects.some((e) => e.is(Nx))) ? !1 : t.some((e) => e.annotation(hn.remote) ? !1 : Nd.some((t) => e.isUserEvent(t)) || r);
19770
19770
  }
19771
19771
  function Fd({ predicate: e }) {
19772
- return bn.updateListener.of((t) => {
19772
+ return Sn.updateListener.of((t) => {
19773
19773
  Pd({
19774
19774
  docChanged: t.docChanged,
19775
19775
  transactions: t.transactions,
19776
19776
  predicate: e,
19777
19777
  hasFocus: t.view.hasFocus
19778
- }) && t.view.state.facet(ra).onRun();
19778
+ }) && t.view.state.facet(B).onRun();
19779
19779
  });
19780
19780
  }
19781
19781
  //#endregion
19782
19782
  //#region src/core/codemirror/completion/signature-hint.ts
19783
- var Id = _n.define(), Ld = 20;
19783
+ var Id = yn.define(), Ld = 20;
19784
19784
  function Rd(e) {
19785
19785
  let { state: t, anchor: n, head: r } = e;
19786
19786
  if (r < n) return !1;
@@ -19805,7 +19805,7 @@ function zd(e) {
19805
19805
  }
19806
19806
  };
19807
19807
  }
19808
- var Bd = wn.define({
19808
+ var Bd = En.define({
19809
19809
  create: () => null,
19810
19810
  update(e, t) {
19811
19811
  for (let e of t.effects) if (e.is(Id)) return e.value;
@@ -19823,7 +19823,7 @@ var Bd = wn.define({
19823
19823
  }
19824
19824
  return e;
19825
19825
  },
19826
- provide: (e) => jn.from(e)
19826
+ provide: (e) => Nn.from(e)
19827
19827
  }), Vd = async (e) => {
19828
19828
  let t = e.state.doc.sliceString(0, e.pos), n = document.activeElement, r = null;
19829
19829
  if (n !== null) {
@@ -20451,14 +20451,14 @@ function Qd({ view: e, selection: t, markup: n }) {
20451
20451
  i ? r.push({
20452
20452
  from: t.from,
20453
20453
  to: t.from + n.length,
20454
- insert: Pn.of([""])
20454
+ insert: In.of([""])
20455
20455
  }) : (o && r.push({
20456
20456
  from: t.from,
20457
20457
  to: t.from + n.length,
20458
- insert: Pn.of([""])
20458
+ insert: In.of([""])
20459
20459
  }), r.push({
20460
20460
  from: t.from,
20461
- insert: Pn.of([n])
20461
+ insert: In.of([n])
20462
20462
  })), a = t.to + 1;
20463
20463
  }
20464
20464
  return r;
@@ -20472,22 +20472,22 @@ function $d({ view: e, range: t, markupAfter: n, markupBefore: r }) {
20472
20472
  o.push(i ? {
20473
20473
  from: t.from - r.length,
20474
20474
  to: t.from,
20475
- insert: Pn.of([""])
20475
+ insert: In.of([""])
20476
20476
  } : {
20477
20477
  from: t.from,
20478
- insert: Pn.of(r.split("\n"))
20478
+ insert: In.of(r.split("\n"))
20479
20479
  }, a ? {
20480
20480
  from: t.to,
20481
20481
  to: t.to + n.length,
20482
- insert: Pn.of([""])
20482
+ insert: In.of([""])
20483
20483
  } : {
20484
20484
  from: t.to,
20485
- insert: Pn.of(n.split("\n"))
20485
+ insert: In.of(n.split("\n"))
20486
20486
  });
20487
20487
  let s = i ? -r.length : r.length, c = a ? -n.length : n.length;
20488
20488
  return {
20489
20489
  changes: o,
20490
- range: Wn.range(t.from + s, t.to + c)
20490
+ range: Kn.range(t.from + s, t.to + c)
20491
20491
  };
20492
20492
  }
20493
20493
  function ef(e) {
@@ -20519,7 +20519,7 @@ function tf(e) {
20519
20519
  });
20520
20520
  return e.dispatch(e.state.update(t, {
20521
20521
  scrollIntoView: !0,
20522
- annotations: pn.userEvent.of("input")
20522
+ annotations: hn.userEvent.of("input")
20523
20523
  })), e.focus(), !0;
20524
20524
  }
20525
20525
  function nf(e) {
@@ -20539,7 +20539,7 @@ function nf(e) {
20539
20539
  });
20540
20540
  return e.dispatch(e.state.update(t, {
20541
20541
  scrollIntoView: !0,
20542
- annotations: pn.userEvent.of("input")
20542
+ annotations: hn.userEvent.of("input")
20543
20543
  })), e.focus(), !0;
20544
20544
  }
20545
20545
  function rf(e) {
@@ -20557,7 +20557,7 @@ function rf(e) {
20557
20557
  });
20558
20558
  return e.dispatch(e.state.update(t, {
20559
20559
  scrollIntoView: !0,
20560
- annotations: pn.userEvent.of("input")
20560
+ annotations: hn.userEvent.of("input")
20561
20561
  })), e.focus(), !0;
20562
20562
  }
20563
20563
  function af(e, t = "http://") {
@@ -20575,11 +20575,11 @@ function af(e, t = "http://") {
20575
20575
  });
20576
20576
  e.dispatch(e.state.update(n, {
20577
20577
  scrollIntoView: !0,
20578
- annotations: pn.userEvent.of("input")
20578
+ annotations: hn.userEvent.of("input")
20579
20579
  }));
20580
20580
  let { to: r } = n.selection.main;
20581
20581
  try {
20582
- e.dispatch({ selection: Wn.create([Wn.range(r + 3, r + 3 + t.length), Wn.cursor(r + 3 + t.length)]) });
20582
+ e.dispatch({ selection: Kn.create([Kn.range(r + 3, r + 3 + t.length), Kn.cursor(r + 3 + t.length)]) });
20583
20583
  } catch {}
20584
20584
  return e.focus(), !0;
20585
20585
  }
@@ -20601,7 +20601,7 @@ async function of(e, t) {
20601
20601
  }
20602
20602
  } else {
20603
20603
  e.trim() === "" ? e = t.name : e.endsWith(`.${n}`) || (e = `${e}.${n}`);
20604
- let r = M.get(ht), a = r ? Xa.dirname(r) : null, o = a ? `${a}/public` : "public", s = await Ee().sendCreateFileOrFolder({
20604
+ let r = M.get(ht), a = r ? Xa.dirname(r) : null, o = a ? `${a}/public` : "public", s = await De().sendCreateFileOrFolder({
20605
20605
  path: o,
20606
20606
  type: "file",
20607
20607
  name: e,
@@ -20629,11 +20629,11 @@ async function of(e, t) {
20629
20629
  });
20630
20630
  e.dispatch(e.state.update(a, {
20631
20631
  scrollIntoView: !0,
20632
- annotations: pn.userEvent.of("input")
20632
+ annotations: hn.userEvent.of("input")
20633
20633
  }));
20634
20634
  let { to: o } = a.selection.main;
20635
20635
  try {
20636
- e.dispatch({ selection: Wn.create([Wn.range(o + 4, o + 4 + r.length), Wn.cursor(o + 4 + r.length)]) });
20636
+ e.dispatch({ selection: Kn.create([Kn.range(o + 4, o + 4 + r.length), Kn.cursor(o + 4 + r.length)]) });
20637
20637
  } catch {}
20638
20638
  return e.focus(), !0;
20639
20639
  }
@@ -20648,7 +20648,7 @@ async function sf(e, t) {
20648
20648
  }));
20649
20649
  return e.dispatch(e.state.update(r, {
20650
20650
  scrollIntoView: !0,
20651
- annotations: pn.userEvent.of("input")
20651
+ annotations: hn.userEvent.of("input")
20652
20652
  })), e.focus(), !0;
20653
20653
  }
20654
20654
  function cf(e) {
@@ -20687,7 +20687,7 @@ function lf(e) {
20687
20687
  //#region src/core/codemirror/markdown/extension.ts
20688
20688
  function uf(e) {
20689
20689
  return [
20690
- gn.highest(Nn.of([
20690
+ vn.highest(Fn.of([
20691
20691
  {
20692
20692
  key: e.getHotkey("markdown.bold").key,
20693
20693
  stopPropagation: !0,
@@ -20724,12 +20724,12 @@ function uf(e) {
20724
20724
  run: nf
20725
20725
  }
20726
20726
  ])),
20727
- bn.domEventHandlers({ paste: (e, t) => {
20727
+ Sn.domEventHandlers({ paste: (e, t) => {
20728
20728
  if (t.state.selection.main.empty) return !1;
20729
20729
  let n = e.clipboardData?.getData("text/plain");
20730
20730
  n?.startsWith("http") && (e.preventDefault(), af(t, n));
20731
20731
  } }),
20732
- bn.domEventHandlers({ paste: (e, t) => {
20732
+ Sn.domEventHandlers({ paste: (e, t) => {
20733
20733
  let n = e.clipboardData?.files[0];
20734
20734
  if (!n) return !1;
20735
20735
  if (n.type.startsWith("image/")) return e.preventDefault(), of(t, n), !0;
@@ -20779,10 +20779,10 @@ function hf(e, t) {
20779
20779
  return {
20780
20780
  defineNodes: [{
20781
20781
  name: pf,
20782
- style: Gn.emphasis
20782
+ style: qn.emphasis
20783
20783
  }, {
20784
20784
  name: `${pf}Mark`,
20785
- style: Gn.processingInstruction
20785
+ style: qn.processingInstruction
20786
20786
  }],
20787
20787
  parseInline: [{
20788
20788
  name: pf,
@@ -20805,7 +20805,7 @@ function hf(e, t) {
20805
20805
  return s === void 0 ? -1 : r.addElement(r.elt(pf, a, s, [r.elt(`${pf}Mark`, a, a + 1), r.elt(`${pf}Mark`, s - 1, s)]));
20806
20806
  }
20807
20807
  }],
20808
- wrap: yn((n) => {
20808
+ wrap: xn((n) => {
20809
20809
  if (!t() || n.type.name !== pf) return null;
20810
20810
  let r = n.from + X, i = n.to - X;
20811
20811
  return r >= i || r < 0 || i < 0 ? null : {
@@ -20824,7 +20824,7 @@ var gf = (e) => {
20824
20824
  if (t.at(n - 1) === "{" || n === -1 || t.indexOf("}", n) > n) return null;
20825
20825
  let r = e.matchBefore(/\w*$/);
20826
20826
  if (!r) return null;
20827
- let i = df(M.get(ca), /* @__PURE__ */ new Set(), 99);
20827
+ let i = df(M.get(la), /* @__PURE__ */ new Set(), 99);
20828
20828
  return {
20829
20829
  from: r.from,
20830
20830
  options: i,
@@ -20851,10 +20851,10 @@ function Cf(e) {
20851
20851
  return Object.keys(xf).forEach((e) => {
20852
20852
  t.push({
20853
20853
  name: e,
20854
- style: Gn.emphasis
20854
+ style: qn.emphasis
20855
20855
  }, {
20856
20856
  name: `${e}Mark`,
20857
- style: Gn.processingInstruction
20857
+ style: qn.processingInstruction
20858
20858
  });
20859
20859
  }), {
20860
20860
  defineNodes: t,
@@ -20900,13 +20900,13 @@ function Cf(e) {
20900
20900
  }
20901
20901
  }
20902
20902
  ],
20903
- wrap: yn((t) => {
20903
+ wrap: xn((t) => {
20904
20904
  let n = xf[t.type.name];
20905
20905
  if (n) {
20906
20906
  let r = t.node.firstChild?.to ?? t.from + n, i = t.node.lastChild?.from ?? t.to - n;
20907
20907
  if (r >= i || r < 0 || i < 0) return null;
20908
20908
  let a = [], o = r;
20909
- return t.node.cursor(Tn.IgnoreMounts).iterate((e) => {
20909
+ return t.node.cursor(Dn.IgnoreMounts).iterate((e) => {
20910
20910
  if (e.name === "Python") return o < e.from && a.push({
20911
20911
  from: o,
20912
20912
  to: e.from
@@ -20925,7 +20925,7 @@ function Cf(e) {
20925
20925
  }
20926
20926
  //#endregion
20927
20927
  //#region src/core/codemirror/language/metadata.ts
20928
- var wf = _n.define(), Tf = _n.define(), Ef = wn.define({
20928
+ var wf = yn.define(), Tf = yn.define(), Ef = En.define({
20929
20929
  create: () => ({}),
20930
20930
  update: (e, t) => {
20931
20931
  for (let n of t.effects) {
@@ -20967,11 +20967,11 @@ var wf = _n.define(), Tf = _n.define(), Ef = wn.define({
20967
20967
  return e === void 0 ? !1 : e.quotePrefix?.includes("f") ?? !1;
20968
20968
  };
20969
20969
  return [
20970
- Dn.define((e) => (n = e, {})),
20970
+ kn.define((e) => (n = e, {})),
20971
20971
  lr({
20972
20972
  base: ur,
20973
20973
  codeLanguages: Bu,
20974
- extensions: [Cf(kn.define(gr).parser), hf(dr.parser, r)]
20974
+ extensions: [Cf(jn.define(gr).parser), hf(dr.parser, r)]
20975
20975
  }),
20976
20976
  uf(e),
20977
20977
  Yd.map((e) => t.of({ autocomplete: e })),
@@ -20979,7 +20979,7 @@ var wf = _n.define(), Tf = _n.define(), Ef = wn.define({
20979
20979
  completion: Vd,
20980
20980
  predicate: r
20981
20981
  }) }),
20982
- rr({
20982
+ ar({
20983
20983
  defaultKeymap: !1,
20984
20984
  activateOnTyping: !0
20985
20985
  }),
@@ -21166,7 +21166,7 @@ function Rf(e) {
21166
21166
  //#region src/core/codemirror/lsp/markdown-renderer.ts
21167
21167
  function zf(e) {
21168
21168
  let t = mr.parse(e), n = "";
21169
- return Sn(e, t, xn, (e, t) => {
21169
+ return wn(e, t, Cn, (e, t) => {
21170
21170
  let r = e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
21171
21171
  n += t ? `<span class="${t}">${r}</span>` : r;
21172
21172
  }, () => {
@@ -21195,10 +21195,10 @@ function Q(e, t) {
21195
21195
  }
21196
21196
  //#endregion
21197
21197
  //#region src/core/codemirror/copilot/getCodes.ts
21198
- var Hf = N((e) => {
21199
- let t = e(Qe);
21198
+ var Hf = P((e) => {
21199
+ let t = e(Ze);
21200
21200
  return cn.fromEntries(t.cellIds.map((e) => [e, Ax(e, t)]));
21201
- }), Uf = N((e) => e(Qe).cellIds), Wf = N((e) => Kf(e(Uf), e(ca))), Gf = N((e) => ({
21201
+ }), Uf = P((e) => e(Ze).cellIds), Wf = P((e) => Kf(e(Uf), e(la))), Gf = P((e) => ({
21202
21202
  cellIds: e(Wf),
21203
21203
  codes: e(Hf)
21204
21204
  }));
@@ -21990,14 +21990,14 @@ function Pp(e, t) {
21990
21990
  });
21991
21991
  return r.onMessage((t) => Np(e, t)), r;
21992
21992
  }
21993
- _n.define(), new zn();
21993
+ yn.define(), new Vn();
21994
21994
  function Fp(e) {
21995
- return e.facet(On.readOnly);
21995
+ return e.facet(An.readOnly);
21996
21996
  }
21997
21997
  //#endregion
21998
21998
  //#region src/core/codemirror/placeholder/extensions.ts
21999
21999
  function Ip(e) {
22000
- return [Rn(e), Nn.of([{
22000
+ return [Bn(e), Fn.of([{
22001
22001
  key: "ArrowRight",
22002
22002
  preventDefault: !0,
22003
22003
  run: (t) => Lp(t, e)
@@ -22022,7 +22022,7 @@ function Lp(e, t) {
22022
22022
  }
22023
22023
  }), !0);
22024
22024
  }
22025
- var Rp = bn.theme({
22025
+ var Rp = Sn.theme({
22026
22026
  ".cm-placeholder": { color: "var(--slate-8)" },
22027
22027
  ".cm-clickable-placeholder": {
22028
22028
  cursor: "pointer !important",
@@ -22044,7 +22044,7 @@ var Rp = bn.theme({
22044
22044
  });
22045
22045
  function zp(e) {
22046
22046
  let { beforeText: t, linkText: n, afterText: r, onClick: i } = e;
22047
- class a extends vn {
22047
+ class a extends bn {
22048
22048
  toDOM(e) {
22049
22049
  let a = document.createElement("span");
22050
22050
  a.className = "cm-placeholder", a.contentEditable = "false";
@@ -22077,10 +22077,10 @@ function zp(e) {
22077
22077
  return e.target instanceof Element && e.target.closest(".cm-clickable-placeholder") !== null;
22078
22078
  }
22079
22079
  }
22080
- return [bn.decorations.compute(["doc"], (e) => e.doc.length === 0 ? mn.set([mn.widget({
22080
+ return [Sn.decorations.compute(["doc"], (e) => e.doc.length === 0 ? gn.set([gn.widget({
22081
22081
  widget: new a(),
22082
22082
  side: 1
22083
- }).range(0)]) : mn.none), Rp];
22083
+ }).range(0)]) : gn.none), Rp];
22084
22084
  }
22085
22085
  //#endregion
22086
22086
  //#region src/core/codemirror/language/languages/python.ts
@@ -22192,7 +22192,7 @@ var Bp = cr((e) => {
22192
22192
  let c = t.signature_hint_on_typing, l = c ? /(\w+|\w+\.|\/)$/ : /(\w+|\w+\.|\(|\/|,)$/;
22193
22193
  if (s.length > 0) {
22194
22194
  let t = s.length === 1 ? s[0] : new Lf(s), u = (e) => {
22195
- a.debug("openExternalLocation", e), !(t.documentUri === e.uri || jf(e.uri)) && Ee().openFile({ path: e.uri.replace("file://", "") });
22195
+ a.debug("openExternalLocation", e), !(t.documentUri === e.uri || jf(e.uri)) && De().openFile({ path: e.uri.replace("file://", "") });
22196
22196
  };
22197
22197
  return [Su({
22198
22198
  client: t,
@@ -22218,7 +22218,7 @@ var Bp = cr((e) => {
22218
22218
  onShowLocation: u
22219
22219
  }), Wl.of(Of.of(e))];
22220
22220
  }
22221
- return [rr({
22221
+ return [ar({
22222
22222
  ...r,
22223
22223
  override: [Vd]
22224
22224
  }), Bd];
@@ -22229,21 +22229,21 @@ var Bp = cr((e) => {
22229
22229
  }
22230
22230
  };
22231
22231
  function Gp(e) {
22232
- return e === "marimo-import" ? gn.highest(Ip("import marimo as mo")) : e === "ai" ? zp({
22232
+ return e === "marimo-import" ? vn.highest(Ip("import marimo as mo")) : e === "ai" ? zp({
22233
22233
  beforeText: "Start coding or ",
22234
22234
  linkText: "generate with AI",
22235
22235
  afterText: ".",
22236
22236
  onClick: (e) => {
22237
- e.state.facet(ra).askAiAboutCell();
22237
+ e.state.facet(B).askAiAboutCell();
22238
22238
  }
22239
22239
  }) : [];
22240
22240
  }
22241
- var Kp = dr.configure({ props: [Vn.add({
22242
- ParenthesizedExpression: Un,
22243
- ArgList: Un
22241
+ var Kp = dr.configure({ props: [Un.add({
22242
+ ParenthesizedExpression: Gn,
22243
+ ArgList: Gn
22244
22244
  })] });
22245
22245
  function qp() {
22246
- return new In(Kp, [Kp.data.of({ autocomplete: hr }), Kp.data.of({ autocomplete: pr })]);
22246
+ return new Rn(Kp, [Kp.data.of({ autocomplete: hr }), Kp.data.of({ autocomplete: pr })]);
22247
22247
  }
22248
22248
  //#endregion
22249
22249
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-sql@0.3.2_@codemirror+autocomplete@6.20.3_@codemirror+lint@6.9._a9870779caf537eed27501ec93b5612b/node_modules/@marimo-team/codemirror-sql/dist/sql/scanner.js
@@ -22828,7 +22828,7 @@ function Fm(e = {}) {
22828
22828
  }
22829
22829
  //#endregion
22830
22830
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-sql@0.3.2_@codemirror+autocomplete@6.20.3_@codemirror+lint@6.9._a9870779caf537eed27501ec93b5612b/node_modules/@marimo-team/codemirror-sql/dist/sql/schema-facet.js
22831
- var Im = Hn.define({ combine: (e) => e[0] ?? null });
22831
+ var Im = Wn.define({ combine: (e) => e[0] ?? null });
22832
22832
  function Lm(e, t) {
22833
22833
  let n = e ?? t.state.facet(Im);
22834
22834
  return n == null ? null : typeof n == "function" ? n(t) : n;
@@ -23489,7 +23489,7 @@ function Fh(e, t, n) {
23489
23489
  };
23490
23490
  }
23491
23491
  function Ih(e = {}) {
23492
- return Zn(Lh(e), {
23492
+ return $n(Lh(e), {
23493
23493
  delay: e.delay ?? Mh,
23494
23494
  needsRefresh: e.needsRefresh
23495
23495
  });
@@ -23583,7 +23583,7 @@ function zh(e = {}) {
23583
23583
  }
23584
23584
  function Bh(e = {}) {
23585
23585
  let { hoverTime: t = 300 } = e;
23586
- return Ln(zh(e), { hoverTime: t });
23586
+ return zn(zh(e), { hoverTime: t });
23587
23587
  }
23588
23588
  function $(e) {
23589
23589
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
@@ -23719,7 +23719,7 @@ function qh(e) {
23719
23719
  columns: "#374151",
23720
23720
  syntax: "#374151"
23721
23721
  };
23722
- return bn.theme({
23722
+ return Sn.theme({
23723
23723
  ".cm-sql-hover-tooltip": {
23724
23724
  padding: "8px 12px",
23725
23725
  backgroundColor: t.tooltipBg,
@@ -23812,30 +23812,30 @@ var Jh = {
23812
23812
  function Xh(e) {
23813
23813
  return e.resolver ?? new Th(e);
23814
23814
  }
23815
- var Zh = bn.baseTheme({
23815
+ var Zh = Sn.baseTheme({
23816
23816
  ".cm-sqlReference": { backgroundColor: "rgba(96, 165, 250, 0.18)" },
23817
23817
  ".cm-sqlReference.cm-sqlDefinition": { backgroundColor: "rgba(96, 165, 250, 0.35)" },
23818
23818
  ".cm-sqlGotoTarget": {
23819
23819
  textDecoration: "underline",
23820
23820
  cursor: "pointer"
23821
23821
  }
23822
- }), Qh = mn.mark({ class: "cm-sqlReference" }), $h = mn.mark({ class: "cm-sqlReference cm-sqlDefinition" }), eg = mn.mark({ class: "cm-sqlGotoTarget" });
23822
+ }), Qh = gn.mark({ class: "cm-sqlReference" }), $h = gn.mark({ class: "cm-sqlReference cm-sqlDefinition" }), eg = gn.mark({ class: "cm-sqlGotoTarget" });
23823
23823
  function tg(e) {
23824
- return mn.set(e.references.map((t) => (t.from === e.definition.from ? $h : Qh).range(t.from, t.to)), !0);
23824
+ return gn.set(e.references.map((t) => (t.from === e.definition.from ? $h : Qh).range(t.from, t.to)), !0);
23825
23825
  }
23826
- var ng = _n.define(), rg = wn.define({
23827
- create: () => mn.none,
23826
+ var ng = yn.define(), rg = En.define({
23827
+ create: () => gn.none,
23828
23828
  update(e, t) {
23829
23829
  for (let e of t.effects) if (e.is(ng)) return e.value;
23830
23830
  return t.docChanged ? e.map(t.changes) : e;
23831
23831
  },
23832
- provide: (e) => bn.decorations.from(e)
23832
+ provide: (e) => Sn.decorations.from(e)
23833
23833
  });
23834
23834
  function ig(e = {}) {
23835
23835
  let t = Xh(e), n = e.highlightDelay ?? 150;
23836
23836
  return [
23837
23837
  rg,
23838
- Dn.fromClass(class {
23838
+ kn.fromClass(class {
23839
23839
  view;
23840
23840
  timer = null;
23841
23841
  generation = 0;
@@ -23851,7 +23851,7 @@ function ig(e = {}) {
23851
23851
  }, n);
23852
23852
  }
23853
23853
  async run() {
23854
- let e = this.generation, n = this.view.state, r = n.selection.main, i = mn.none;
23854
+ let e = this.generation, n = this.view.state, r = n.selection.main, i = gn.none;
23855
23855
  if (r.empty) try {
23856
23856
  let e = await t.resolve(n, r.head);
23857
23857
  e && (i = tg(e));
@@ -23878,19 +23878,19 @@ async function ag(e, t, n = {}) {
23878
23878
  userEvent: "select"
23879
23879
  }), !0);
23880
23880
  }
23881
- var og = _n.define(), sg = wn.define({
23882
- create: () => mn.none,
23881
+ var og = yn.define(), sg = En.define({
23882
+ create: () => gn.none,
23883
23883
  update(e, t) {
23884
23884
  for (let e of t.effects) if (e.is(og)) return e.value;
23885
23885
  return t.docChanged ? e.map(t.changes) : e;
23886
23886
  },
23887
- provide: (e) => bn.decorations.from(e)
23887
+ provide: (e) => Sn.decorations.from(e)
23888
23888
  });
23889
23889
  function cg(e = {}) {
23890
23890
  let t = Xh(e);
23891
23891
  return [
23892
23892
  sg,
23893
- Dn.fromClass(class {
23893
+ kn.fromClass(class {
23894
23894
  view;
23895
23895
  hovered = null;
23896
23896
  constructor(e) {
@@ -23906,7 +23906,7 @@ function cg(e = {}) {
23906
23906
  if (this.hovered) {
23907
23907
  this.hovered = null;
23908
23908
  let e = this.view.state.field(sg, !1);
23909
- e && e.size > 0 && this.view.dispatch({ effects: og.of(mn.none) });
23909
+ e && e.size > 0 && this.view.dispatch({ effects: og.of(gn.none) });
23910
23910
  }
23911
23911
  }
23912
23912
  async hover(e) {
@@ -23926,7 +23926,7 @@ function cg(e = {}) {
23926
23926
  try {
23927
23927
  let a = await t.resolve(i, e);
23928
23928
  if (this.hovered !== r || this.view.state !== i) return;
23929
- r.result = a, this.view.dispatch({ effects: og.of(a ? mn.set([eg.range(n.from, n.to)]) : mn.none) });
23929
+ r.result = a, this.view.dispatch({ effects: og.of(a ? gn.set([eg.range(n.from, n.to)]) : gn.none) });
23930
23930
  } catch {}
23931
23931
  }
23932
23932
  destroy() {
@@ -23984,7 +23984,7 @@ function pg(e = {}) {
23984
23984
  ...e,
23985
23985
  resolver: Xh(e)
23986
23986
  }, n = e.gotoDefinitionKeys ?? ["F12", "Mod-b"], r = e.renameKey ?? "F2";
23987
- return Nn.of([...n.map((e) => ({
23987
+ return Fn.of([...n.map((e) => ({
23988
23988
  key: e,
23989
23989
  run: (e) => (ag(e, void 0, t), !0)
23990
23990
  })), {
@@ -24237,14 +24237,14 @@ function Og(e = {}) {
24237
24237
  };
24238
24238
  }
24239
24239
  function kg(e = {}) {
24240
- return Zn(Og(e), {
24240
+ return $n(Og(e), {
24241
24241
  delay: e.delay ?? hg,
24242
24242
  needsRefresh: e.needsRefresh
24243
24243
  });
24244
24244
  }
24245
24245
  //#endregion
24246
24246
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-sql@0.3.2_@codemirror+autocomplete@6.20.3_@codemirror+lint@6.9._a9870779caf537eed27501ec93b5612b/node_modules/@marimo-team/codemirror-sql/dist/sql/structure-extension.js
24247
- var Ag = _n.define(), jg = wn.define({
24247
+ var Ag = yn.define(), jg = En.define({
24248
24248
  create() {
24249
24249
  return {
24250
24250
  currentStatement: null,
@@ -24281,7 +24281,7 @@ function Mg(e, t) {
24281
24281
  opacity: s
24282
24282
  };
24283
24283
  }
24284
- var Ng = class extends En {
24284
+ var Ng = class extends On {
24285
24285
  config;
24286
24286
  isCurrent;
24287
24287
  isValid;
@@ -24311,19 +24311,19 @@ var Ng = class extends En {
24311
24311
  }
24312
24312
  };
24313
24313
  function Pg(e, t) {
24314
- if (t.whenHide?.(e)) return Bn.empty;
24314
+ if (t.whenHide?.(e)) return Hn.empty;
24315
24315
  let n = e.state.field(jg, !1);
24316
- if (!n) return Bn.empty;
24316
+ if (!n) return Hn.empty;
24317
24317
  let { currentStatement: r, allStatements: i, isFocused: a } = n, o = e.state.doc.lineAt(e.viewport.from).number, s = e.state.doc.lineAt(e.viewport.to).number, c = [];
24318
24318
  for (let n of i) {
24319
24319
  if (!n.isValid && t.showInvalid === !1) continue;
24320
24320
  let i = new Ng(t, r?.from === n.from && r.to === n.to, n.isValid, a), l = Math.max(1, n.lineFrom, o), u = Math.min(e.state.doc.lines, n.lineTo, s);
24321
24321
  for (let t = l; t <= u; t++) c.push(i.range(e.state.doc.line(t).from));
24322
24322
  }
24323
- return Bn.of(c, !0);
24323
+ return Hn.of(c, !0);
24324
24324
  }
24325
24325
  function Fg(e, t) {
24326
- return Dn.define((n) => {
24326
+ return kn.define((n) => {
24327
24327
  let r = 0, i, a = async (t = !1) => {
24328
24328
  let a = ++r, { state: o } = n;
24329
24329
  try {
@@ -24351,7 +24351,7 @@ function Fg(e, t) {
24351
24351
  };
24352
24352
  });
24353
24353
  }
24354
- var Ig = bn.baseTheme({
24354
+ var Ig = Sn.baseTheme({
24355
24355
  ".cm-sql-gutter": {
24356
24356
  width: "var(--cm-sql-gutter-width, 3px)",
24357
24357
  minWidth: "var(--cm-sql-gutter-width, 3px)"
@@ -24372,7 +24372,7 @@ var Ig = bn.baseTheme({
24372
24372
  }
24373
24373
  });
24374
24374
  function Lg(e) {
24375
- return fn({
24375
+ return mn({
24376
24376
  class: `cm-sql-gutter ${e.className || ""}`,
24377
24377
  markers: (t) => Pg(t, e)
24378
24378
  });
@@ -24382,7 +24382,7 @@ function Rg(e = {}) {
24382
24382
  return [
24383
24383
  jg,
24384
24384
  Fg(t, e),
24385
- [Ig, bn.editorAttributes.of({ style: `--cm-sql-gutter-width: ${e.width || 3}px` })],
24385
+ [Ig, Sn.editorAttributes.of({ style: `--cm-sql-gutter-width: ${e.width || 3}px` })],
24386
24386
  Lg(e)
24387
24387
  ];
24388
24388
  }
@@ -24511,9 +24511,9 @@ function $g() {
24511
24511
  columnsPreviews: /* @__PURE__ */ new Map()
24512
24512
  };
24513
24513
  }
24514
- var { reducer: e_, createActions: t_, valueAtom: n_, useActions: r_ } = dn($g, {
24514
+ var { reducer: e_, createActions: t_, valueAtom: n_, useActions: r_ } = pn($g, {
24515
24515
  addDatasets: (e, t) => {
24516
- let { previewDatasetColumn: n } = Ee();
24516
+ let { previewDatasetColumn: n } = De();
24517
24517
  for (let r of t.tables) for (let t of r.columns) {
24518
24518
  let i = `${r.name}:${t.name}`;
24519
24519
  e.expandedColumns.has(i) && n({
@@ -24566,8 +24566,8 @@ var { reducer: e_, createActions: t_, valueAtom: n_, useActions: r_ } = dn($g, {
24566
24566
  columnsPreviews: r
24567
24567
  };
24568
24568
  }
24569
- }), i_ = N((e) => e(n_).tables);
24570
- N(/* @__PURE__ */ new Set()), N(!1);
24569
+ }), i_ = P((e) => e(n_).tables);
24570
+ P(/* @__PURE__ */ new Set()), P(!1);
24571
24571
  //#endregion
24572
24572
  //#region src/core/datasets/data-source-connections.ts
24573
24573
  var a_ = /* @__PURE__ */ new Map([[Yg, {
@@ -24595,7 +24595,7 @@ function c_() {
24595
24595
  connectionsMap: a_
24596
24596
  };
24597
24597
  }
24598
- var { reducer: l_, createActions: u_, valueAtom: d_, useActions: f_ } = dn(c_, {
24598
+ var { reducer: l_, createActions: u_, valueAtom: d_, useActions: f_ } = pn(c_, {
24599
24599
  addDataSourceConnection: (e, t) => {
24600
24600
  if (t.connections.length === 0) return e;
24601
24601
  let { latestEngineSelected: n, connectionsMap: r } = e, i = new Map(r);
@@ -24686,14 +24686,14 @@ var { reducer: l_, createActions: u_, valueAtom: d_, useActions: f_ } = dn(c_, {
24686
24686
  connectionsMap: u
24687
24687
  };
24688
24688
  }
24689
- }), p_ = N((e) => e(d_).connectionsMap);
24690
- N((e) => {
24689
+ }), p_ = P((e) => e(d_).connectionsMap);
24690
+ P((e) => {
24691
24691
  let t = new Map(e(p_));
24692
24692
  for (let e of Xg) {
24693
24693
  let n = t.get(e);
24694
24694
  n && (n.databases.length === 0 && t.delete(e), n.databases.length === 1 && n.databases[0].name === "memory" && n.databases[0].schemas.length === 0 && t.delete(e));
24695
24695
  }
24696
- return or([...t.values()], (e) => +!!Xg.has(e.name));
24696
+ return dn([...t.values()], (e) => +!!Xg.has(e.name));
24697
24697
  });
24698
24698
  function m_(e) {
24699
24699
  let t = M.get(d_);
@@ -24702,7 +24702,7 @@ function m_(e) {
24702
24702
  latestEngineSelected: e
24703
24703
  });
24704
24704
  }
24705
- var h_ = N((e) => {
24705
+ var h_ = P((e) => {
24706
24706
  let t = M.get(i_), n = e(d_).connectionsMap, r = /* @__PURE__ */ new Map();
24707
24707
  for (let e of t) r.set(e.name, e);
24708
24708
  for (let e of n.values()) for (let t of e.databases) {
@@ -24750,30 +24750,30 @@ var __ = class e {
24750
24750
  this.delegate.reject(e, t);
24751
24751
  }
24752
24752
  }, v_ = new Ra("data-source-discovery-result", async (e) => {
24753
- await Ee().discoverDataSources({ requestId: e });
24753
+ await De().discoverDataSources({ requestId: e });
24754
24754
  });
24755
24755
  new Ra("sql-table-preview", async (e, t) => {
24756
- await Ee().previewSQLTable({
24756
+ await De().previewSQLTable({
24757
24757
  requestId: e,
24758
24758
  ...t
24759
24759
  });
24760
24760
  }), new Ra("sql-schema-list-preview", async (e, t) => {
24761
- await Ee().previewSQLSchemaList({
24761
+ await De().previewSQLSchemaList({
24762
24762
  requestId: e,
24763
24763
  ...t
24764
24764
  });
24765
24765
  }), new Ra("sql-table-list-preview", async (e, t) => {
24766
- await Ee().previewSQLTableList({
24766
+ await De().previewSQLTableList({
24767
24767
  requestId: e,
24768
24768
  ...t
24769
24769
  });
24770
24770
  });
24771
24771
  var y_ = new __(new Ra("validate-sql", async (e, t) => {
24772
- await Ee().validateSQL({
24772
+ await De().validateSQL({
24773
24773
  requestId: e,
24774
24774
  ...t
24775
24775
  });
24776
- }), { maxSize: 3 }), b_ = N(/* @__PURE__ */ new Map());
24776
+ }), { maxSize: 3 }), b_ = P(/* @__PURE__ */ new Map());
24777
24777
  function x_(e) {
24778
24778
  let t = M.get(b_), n = new Map(t);
24779
24779
  n.delete(e), M.set(b_, n);
@@ -25516,13 +25516,13 @@ function dv(e, t) {
25516
25516
  if (!n.fieldPattern) return !1;
25517
25517
  for (let [r] of t.matchAll(n.fieldPattern)) {
25518
25518
  let t = n.fields.get(r);
25519
- if (t && (t.quoted === void 0 && (t.quoted = (Mn(e.state, t.to, 20) ?? Cn(e.state)).resolveInner(t.from, 1).name === "QuotedIdentifier"), t.quoted)) return !0;
25519
+ if (t && (t.quoted === void 0 && (t.quoted = (Pn(e.state, t.to, 20) ?? Tn(e.state)).resolveInner(t.from, 1).name === "QuotedIdentifier"), t.quoted)) return !0;
25520
25520
  }
25521
25521
  return !1;
25522
25522
  },
25523
25523
  displayQuery: r,
25524
25524
  encodeQuery: (e) => r(bd(e, t)),
25525
- context: n.changes ? new ir(n.state, n.changes.mapPos(e.pos), e.explicit, e.view) : e,
25525
+ context: n.changes ? new or(n.state, n.changes.mapPos(e.pos), e.explicit, e.view) : e,
25526
25526
  toSource: (e) => n.changes?.invertedDesc.mapPos(e) ?? e,
25527
25527
  literalPrefix: (t) => {
25528
25528
  let r = n.changes?.invertedDesc.mapPos(t) ?? t, i = r;
@@ -25533,7 +25533,7 @@ function dv(e, t) {
25533
25533
  }
25534
25534
  //#endregion
25535
25535
  //#region src/core/codemirror/language/languages/sql/completion-store.ts
25536
- var fv = N((e) => {
25536
+ var fv = P((e) => {
25537
25537
  let t = e(i_), n = new iv();
25538
25538
  for (let e of t) n.addTable([], e);
25539
25539
  return n.build();
@@ -25675,9 +25675,9 @@ var Sv = cr(async () => {
25675
25675
  ...e.default.keywords,
25676
25676
  ...t.default.keywords
25677
25677
  };
25678
- }), Cv = Tt("marimo:notebook-sql-mode", "default", da);
25678
+ }), Cv = Et("marimo:notebook-sql-mode", "default", da);
25679
25679
  function wv() {
25680
- let e = (0, R.c)(3), [t, n] = an(Cv), r;
25680
+ let e = (0, R.c)(3), [t, n] = bt(Cv), r;
25681
25681
  return e[0] !== n || e[1] !== t ? (r = {
25682
25682
  sqlMode: t,
25683
25683
  setSQLMode: n
@@ -25688,7 +25688,7 @@ function Tv() {
25688
25688
  }
25689
25689
  //#endregion
25690
25690
  //#region src/core/codemirror/language/languages/sql/sql.ts
25691
- var Ev = Ug, Dv = "DuckDB", Ov = new zn();
25691
+ var Ev = Ug, Dv = "DuckDB", Ov = new Vn();
25692
25692
  function kv() {
25693
25693
  let { latestEngineSelected: e, connectionsMap: t } = M.get(d_);
25694
25694
  return e === null ? [...t.values()].reverse().find((e) => !Xg.has(e.name) && e.source !== "iceberg")?.name ?? "__marimo_duckdb" : e;
@@ -25730,12 +25730,12 @@ var Av = class {
25730
25730
  getExtension({ lspConfig: e }) {
25731
25731
  let t = jv(), n = [
25732
25732
  Ov.of(Er({ dialect: Ev })),
25733
- Nn.of([{
25733
+ Fn.of([{
25734
25734
  key: "Tab",
25735
- run: (e) => nr(e) || er(e),
25735
+ run: (e) => ir(e) || nr(e),
25736
25736
  preventDefault: !0
25737
25737
  }]),
25738
- rr({
25738
+ ar({
25739
25739
  defaultKeymap: !1,
25740
25740
  activateOnTyping: !0,
25741
25741
  override: [
@@ -25749,7 +25749,7 @@ var Av = class {
25749
25749
  })
25750
25750
  ];
25751
25751
  if (e?.diagnostics?.sql_linter ?? !1) {
25752
- let e = M.get(Zt), r = new Fv({ getParserOptions: (e) => ({ database: Hv(e) ?? Dv }) });
25752
+ let e = M.get(Qt), r = new Fv({ getParserOptions: (e) => ({ database: Hv(e) ?? Dv }) });
25753
25753
  n.push(zg({
25754
25754
  schema: Bv,
25755
25755
  needsRefresh: (e) => zv(e.startState).engine !== zv(e.state).engine,
@@ -25792,7 +25792,7 @@ var Av = class {
25792
25792
  parser: t.parser,
25793
25793
  structureAnalyzer: t.structureAnalyzer
25794
25794
  }
25795
- }), bn.updateListener.of((e) => {
25795
+ }), Sn.updateListener.of((e) => {
25796
25796
  e.focusChanged && r.setFocusState(e.view.hasFocus);
25797
25797
  }));
25798
25798
  }
@@ -25978,8 +25978,8 @@ function Uv(e) {
25978
25978
  }
25979
25979
  var Wv = 300;
25980
25980
  function Gv() {
25981
- return Dn.define((e) => {
25982
- let t, n = null, r = e.state.facet(B);
25981
+ return kn.define((e) => {
25982
+ let t, n = null, r = e.state.facet(ia);
25983
25983
  return {
25984
25984
  update(e) {
25985
25985
  if (!e.docChanged) return;
@@ -26186,18 +26186,18 @@ var iy = "data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20x
26186
26186
  alt: n,
26187
26187
  className: a
26188
26188
  }), t[7] = n, t[8] = a, t[9] = i, t[10] = s) : s = t[10], s;
26189
- }, hy = Fi, gy = zi, _y = Wt(Ui), vy = Zi, yy = Jt(Gi), by = L.forwardRef((e, t) => {
26189
+ }, hy = Fi, gy = zi, _y = Kt(Ui), vy = Zi, yy = Yt(Gi), by = L.forwardRef((e, t) => {
26190
26190
  let n = (0, R.c)(22), r, i, a, s, c, l;
26191
26191
  n[0] === e ? (r = n[1], i = n[2], a = n[3], s = n[4], c = n[5], l = n[6]) : ({className: r, align: a, sideOffset: s, portal: c, scrollable: l, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = s, n[5] = c, n[6] = l);
26192
26192
  let u = a === void 0 ? "center" : a, d = s === void 0 ? 4 : s, f = c === void 0 || c, p = l !== void 0 && l, m = p && "overflow-auto", h;
26193
26193
  n[7] !== r || n[8] !== m ? (h = o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", r, m), n[7] = r, n[8] = m, n[9] = h) : h = n[9];
26194
- let g = p ? `calc(var(--radix-popover-content-available-height) - ${Ht}px)` : void 0, _;
26194
+ let g = p ? `calc(var(--radix-popover-content-available-height) - ${Wt}px)` : void 0, _;
26195
26195
  n[10] !== i.style || n[11] !== g ? (_ = {
26196
26196
  ...i.style,
26197
26197
  maxHeight: g
26198
26198
  }, n[10] = i.style, n[11] = g, n[12] = _) : _ = n[12];
26199
26199
  let v;
26200
- n[13] !== u || n[14] !== i || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, z.jsx)(zt, { children: /* @__PURE__ */ (0, z.jsx)(yy, {
26200
+ n[13] !== u || n[14] !== i || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, z.jsx)(Vt, { children: /* @__PURE__ */ (0, z.jsx)(yy, {
26201
26201
  ref: t,
26202
26202
  align: u,
26203
26203
  sideOffset: d,
@@ -26216,8 +26216,8 @@ by.displayName = Gi.displayName;
26216
26216
  //#endregion
26217
26217
  //#region src/core/cells/add-missing-import.ts
26218
26218
  function xy({ moduleName: e, variableName: t, onAddImport: n, appStore: r = M }) {
26219
- if (r.get(ca)[t]?.declaredBy.length) return !1;
26220
- let { cellData: i, cellIds: a } = r.get(Qe), o = RegExp(`import[ \t]+${e}[ \t]+as[ \t]+${t}`, "g");
26219
+ if (r.get(la)[t]?.declaredBy.length) return !1;
26220
+ let { cellData: i, cellIds: a } = r.get(Ze), o = RegExp(`import[ \t]+${e}[ \t]+as[ \t]+${t}`, "g");
26221
26221
  for (let e of a) if (o.test(i[e].code)) return !1;
26222
26222
  return n(`import ${e} as ${t}`), !0;
26223
26223
  }
@@ -26252,7 +26252,7 @@ function wy({ moduleName: e, variableName: t, autoInstantiate: n, createCell: r,
26252
26252
  code: e,
26253
26253
  skipIfCodeExists: !0,
26254
26254
  focus: !1
26255
- }) === null ? null : t, n && a !== null && na(M, [a]);
26255
+ }) === null ? null : t, n && a !== null && ra(M, [a]);
26256
26256
  }
26257
26257
  }), a;
26258
26258
  }
@@ -26264,7 +26264,7 @@ function Ty() {
26264
26264
  lastFocusedCellId: null
26265
26265
  };
26266
26266
  }
26267
- var { reducer: Ey, createActions: Dy, valueAtom: Oy, useActions: ky } = dn(Ty, {
26267
+ var { reducer: Ey, createActions: Dy, valueAtom: Oy, useActions: ky } = pn(Ty, {
26268
26268
  focusCell: (e, t) => ({
26269
26269
  ...e,
26270
26270
  focusedCellId: t.cellId,
@@ -26282,18 +26282,18 @@ var { reducer: Ey, createActions: Dy, valueAtom: Oy, useActions: ky } = dn(Ty, {
26282
26282
  ...e,
26283
26283
  focusedCellId: null
26284
26284
  })
26285
- }), Ay = N((e) => e(Oy).lastFocusedCellId);
26285
+ }), Ay = P((e) => e(Oy).lastFocusedCellId);
26286
26286
  function jy() {
26287
- return yt(Ay);
26287
+ return Ot(Ay);
26288
26288
  }
26289
- N((e) => {
26289
+ P((e) => {
26290
26290
  let t = e(Ay);
26291
26291
  return !t || t === "__scratch__" ? null : My(e, t);
26292
26292
  });
26293
26293
  function My(e, t) {
26294
- let { cellData: n, cellHandles: r } = e(Qe), i = n[t], a = r[t]?.current;
26294
+ let { cellData: n, cellHandles: r } = e(Ze), i = n[t], a = r[t]?.current;
26295
26295
  if (!i || !a) return null;
26296
- let o = () => a.editorView, s = ze(e(Pe), t);
26296
+ let o = () => a.editorView, s = ze(e(Se), t);
26297
26297
  return {
26298
26298
  cellId: t,
26299
26299
  name: i.name,
@@ -26301,14 +26301,14 @@ function My(e, t) {
26301
26301
  status: s.status,
26302
26302
  blocked: s.blocked,
26303
26303
  getEditorView: o,
26304
- hasOutput: e(Le(t)) !== null,
26304
+ hasOutput: e(Ie(t)) !== null,
26305
26305
  hasConsoleOutput: e(We(t)).consoleOutputs.length > 0
26306
26306
  };
26307
26307
  }
26308
26308
  //#endregion
26309
26309
  //#region src/components/editor/connections/components.tsx
26310
26310
  function Ny() {
26311
- let e = (0, R.c)(4), { createCell: t } = kx(), n = jy(), r = yt(nn), i;
26311
+ let e = (0, R.c)(4), { createCell: t } = kx(), n = jy(), r = Ot(nn), i;
26312
26312
  return e[0] !== r || e[1] !== t || e[2] !== n ? (i = (e) => {
26313
26313
  /\bmo\./.test(e) && Sy({
26314
26314
  autoInstantiate: r,
@@ -26336,7 +26336,7 @@ function Iy(e, t) {
26336
26336
  let n = e.hidesWhen;
26337
26337
  return n.kind === "dialect" ? n.substrings.some((e) => t.dialects.some((t) => t.includes(e))) : n.protocols.some((e) => t.storageProtocols.has(e)) ? !0 : n.backendTypes.some((e) => t.storageBackendTypes.has(e));
26338
26338
  }
26339
- var Ly = N(0), Ry, zy = 0;
26339
+ var Ly = P(0), Ry, zy = 0;
26340
26340
  function By() {
26341
26341
  let e = M.get(Ly);
26342
26342
  return (!Ry || zy !== e) && (zy = e, Ry = je().then(() => v_.request({})).then((e) => e.sources).catch((t) => {
@@ -26358,7 +26358,7 @@ function Uy() {
26358
26358
  pageMetadataByPath: /* @__PURE__ */ new Map()
26359
26359
  };
26360
26360
  }
26361
- var { reducer: Wy, createActions: Gy, valueAtom: Ky, useActions: qy } = dn(Uy, {
26361
+ var { reducer: Wy, createActions: Gy, valueAtom: Ky, useActions: qy } = pn(Uy, {
26362
26362
  setNamespaces: (e, t) => {
26363
26363
  let n = new Map(e.namespaces.map((e) => [e.name, e]));
26364
26364
  for (let e of t.namespaces) n.set(e.name, e);
@@ -26394,15 +26394,15 @@ var { reducer: Wy, createActions: Gy, valueAtom: Ky, useActions: qy } = dn(Uy, {
26394
26394
  namespaces: n
26395
26395
  };
26396
26396
  }
26397
- }), Jy = N((e) => e(Ky).namespaces);
26397
+ }), Jy = P((e) => e(Ky).namespaces);
26398
26398
  //#endregion
26399
26399
  //#region src/hooks/useDataSourceDiscovery.ts
26400
26400
  function Yy() {
26401
- let e = (0, R.c)(2), t = yt(Ly), n;
26401
+ let e = (0, R.c)(2), t = Ot(Ly), n;
26402
26402
  return e[0] === t ? n = e[1] : (n = [t], e[0] = t, e[1] = n), Ar(By, n);
26403
26403
  }
26404
26404
  function Xy(e) {
26405
- let t = (0, R.c)(6), { data: n } = Yy(), r = yt(p_), i = yt(Jy), a;
26405
+ let t = (0, R.c)(6), { data: n } = Yy(), r = Ot(p_), i = Ot(Jy), a;
26406
26406
  bb0: {
26407
26407
  if (!n) {
26408
26408
  let e;
@@ -26468,7 +26468,7 @@ var nb = (e) => {
26468
26468
  addDetectedDataSource: i
26469
26469
  }), t[3] = i, t[4] = n, t[5] = r, t[6] = a) : a = t[6], a;
26470
26470
  }, ib = (e) => {
26471
- let t = (0, R.c)(42), { selectedEngine: n, onChange: r, cellId: i, detectedDataSources: a, addDetectedDataSource: o } = e, s = yt(p_), c = [], l = [];
26471
+ let t = (0, R.c)(42), { selectedEngine: n, onChange: r, cellId: i, detectedDataSources: a, addDetectedDataSource: o } = e, s = Ot(p_), c = [], l = [];
26472
26472
  for (let [e, t] of s.entries()) Xg.has(e) ? c.push(t) : l.push(t);
26473
26473
  let u = eb(), d;
26474
26474
  t[0] !== s || t[1] !== n ? (d = n && !s.has(n), t[0] = s, t[1] = n, t[2] = d) : d = t[2];
@@ -26663,7 +26663,7 @@ var gb = () => {
26663
26663
  let { spanProps: i, inputProps: a } = Zv(r), o;
26664
26664
  t[1] === n.state ? o = t[2] : (o = n.state.field(xb), t[1] = n.state, t[2] = o);
26665
26665
  let s = o, c;
26666
- t[3] === n.state ? c = t[4] : (c = n.state.facet(B), t[3] = n.state, t[4] = c);
26666
+ t[3] === n.state ? c = t[4] : (c = n.state.facet(ia), t[3] = n.state, t[4] = c);
26667
26667
  let l = c, d;
26668
26668
  t[5] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, z.jsx)("div", {}), t[5] = d) : d = t[5];
26669
26669
  let f = d, p = !1, m;
@@ -26865,7 +26865,7 @@ var gb = () => {
26865
26865
  s.type
26866
26866
  ]
26867
26867
  }) }), t[98] = f, t[99] = s.type, t[100] = g, t[101] = _) : _ = t[101], _;
26868
- }, vb = new zn();
26868
+ }, vb = new Vn();
26869
26869
  function yb(e, t) {
26870
26870
  let n = t.getExtension({
26871
26871
  cellId: e.facet(ju),
@@ -26874,9 +26874,9 @@ function yb(e, t) {
26874
26874
  placeholderType: e.facet(Au),
26875
26875
  lspConfig: e.facet(Mu)
26876
26876
  });
26877
- return e.field(Qn, !1) !== void 0 && n.push(Qn.init(() => On.create({ extensions: [Xn()] }).field(Qn))), [bb.of(t), vb.reconfigure(n)];
26877
+ return e.field(er, !1) !== void 0 && n.push(er.init(() => An.create({ extensions: [Qn()] }).field(er))), [bb.of(t), vb.reconfigure(n)];
26878
26878
  }
26879
- var bb = _n.define(), xb = wn.define({
26879
+ var bb = yn.define(), xb = En.define({
26880
26880
  create() {
26881
26881
  return Xv.python;
26882
26882
  },
@@ -26884,7 +26884,7 @@ var bb = _n.define(), xb = wn.define({
26884
26884
  for (let e of t.effects) if (e.is(bb)) return e.value;
26885
26885
  return e;
26886
26886
  },
26887
- provide: (e) => An.from(e, (e) => e.type === "python" ? null : (e) => Ru(e, _b))
26887
+ provide: (e) => Mn.from(e, (e) => e.type === "python" ? null : (e) => Ru(e, _b))
26888
26888
  });
26889
26889
  function Sb(e) {
26890
26890
  return e ? Xv.markdown.isSupported(e) ? Xv.markdown : Xv.sql.isSupported(e) ? Xv.sql : Xv.python : Xv.python;
@@ -26900,7 +26900,7 @@ function wb(e, t) {
26900
26900
  let n = e.field(xb, !1);
26901
26901
  if (!n?.isSupported(t)) return !1;
26902
26902
  let [r, , i] = n.transformIn(t);
26903
- return r === e.doc.toString() && wt(i, e.field(Ef, !1));
26903
+ return r === e.doc.toString() && Dt(i, e.field(Ef, !1));
26904
26904
  }
26905
26905
  function Tb(e, t, { initialize: n = !1 } = {}) {
26906
26906
  let r = e.field(xb, !1), i = r;
@@ -26912,7 +26912,7 @@ function Tb(e, t, { initialize: n = !1 } = {}) {
26912
26912
  a && o.push(...yb(e, i));
26913
26913
  let [n, , r] = i.transformIn(t);
26914
26914
  s = n;
26915
- let c = !wt(r, e.field(Ef, !1));
26915
+ let c = !Dt(r, e.field(Ef, !1));
26916
26916
  c && o.push(wf.of(r)), i.type === "sql" && (a || c) && o.push(Lv(r.engine));
26917
26917
  }
26918
26918
  return {
@@ -26922,7 +26922,7 @@ function Tb(e, t, { initialize: n = !1 } = {}) {
26922
26922
  insert: s.slice(e.fromB, e.toB)
26923
26923
  })),
26924
26924
  effects: o,
26925
- annotations: [mu.of(!0), ...a ? [pn.addToHistory.of(!1)] : []]
26925
+ annotations: [mu.of(!0), ...a ? [hn.addToHistory.of(!1)] : []]
26926
26926
  };
26927
26927
  }
26928
26928
  //#endregion
@@ -26931,9 +26931,9 @@ var Eb = "marimo:notebook-col-sizes";
26931
26931
  function Db() {
26932
26932
  return { widths: [] };
26933
26933
  }
26934
- var Ob = new Te(Eb, Kt({ widths: Ct(Pt([jt(), Xt("contentWidth")]).default("contentWidth")) }), Db);
26934
+ var Ob = new Ee(Eb, Jt({ widths: wt(Lt([Mt(), Zt("contentWidth")]).default("contentWidth")) }), Db);
26935
26935
  function kb(e, t) {
26936
- let n = Ob.get(Eb).widths, r = sr(n, e, t);
26936
+ let n = Ob.get(Eb).widths, r = fn(n, e, t);
26937
26937
  Ob.set(Eb, { widths: r });
26938
26938
  }
26939
26939
  //#endregion
@@ -26949,7 +26949,7 @@ function jb(e) {
26949
26949
  return t;
26950
26950
  }
26951
26951
  function Mb(e, t) {
26952
- e(Qe, (e) => ({
26952
+ e(Ze, (e) => ({
26953
26953
  ...e,
26954
26954
  scrollKey: t
26955
26955
  }));
@@ -26984,7 +26984,7 @@ function Lb(e, t) {
26984
26984
  }), n;
26985
26985
  }
26986
26986
  function Rb(e, t) {
26987
- let n = t.flatMap((e) => e.ids), r = Lb(t, (t) => e.cells.get(t)?.config.column ?? null), i = !wt(n, e.order);
26987
+ let n = t.flatMap((e) => e.ids), r = Lb(t, (t) => e.cells.get(t)?.config.column ?? null), i = !Dt(n, e.order);
26988
26988
  return !i && r.length === 0 ? null : (e) => {
26989
26989
  i && e.setOrder(n);
26990
26990
  for (let [t, n] of r) e.updateConfig(t, { column: n });
@@ -27006,16 +27006,16 @@ function Vb(e, t, n) {
27006
27006
  i !== null && t(Ab(e).editAtom, i);
27007
27007
  }
27008
27008
  function Hb(e, t, n, r) {
27009
- let i = e(Xe), a = it(i, n), o = a.visible.indexOf(n);
27009
+ let i = e(Ye), a = it(i, n), o = a.visible.indexOf(n);
27010
27010
  if (o === -1) return !1;
27011
27011
  let s = r(o, a.visible);
27012
27012
  if (s < 0 || s >= a.visible.length || s === o) return !1;
27013
27013
  let c = Fb(i);
27014
- return c[i.columns.indexOf(a)].ids = sr(Pb(a), o, s).flat(), Vb(e, t, c), !0;
27014
+ return c[i.columns.indexOf(a)].ids = fn(Pb(a), o, s).flat(), Vb(e, t, c), !0;
27015
27015
  }
27016
- var Ub = N(null, (e, t, { cellId: n, before: r, direction: i }) => {
27016
+ var Ub = P(null, (e, t, { cellId: n, before: r, direction: i }) => {
27017
27017
  if (i) {
27018
- let r = e(Xe), a = it(r, n), o = r.columns.indexOf(a), s = Fb(r), c = i === "left" ? o - 1 : o + 1;
27018
+ let r = e(Ye), a = it(r, n), o = r.columns.indexOf(a), s = Fb(r), c = i === "left" ? o - 1 : o + 1;
27019
27019
  if (c < 0 || c >= s.length) return;
27020
27020
  let l = Nb(a, n), u = Ib(s, new Set(l));
27021
27021
  u[c].ids.unshift(...l), Vb(e, t, u), Mb(t, n);
@@ -27024,41 +27024,41 @@ var Ub = N(null, (e, t, { cellId: n, before: r, direction: i }) => {
27024
27024
  function Wb(e, t, { cellId: n, scroll: r = !0 }, i) {
27025
27025
  Hb(e, t, n, (e, t) => i === "top" ? 0 : t.length - 1) && r && Mb(t, n);
27026
27026
  }
27027
- var Gb = N(null, (e, t, n) => Wb(e, t, n, "top")), Kb = N(null, (e, t, n) => Wb(e, t, n, "bottom")), qb = N(null, (e, t, { cellId: n, overCellId: r }) => {
27028
- let i = e(Xe), a = it(i, n), o = it(i, r);
27027
+ var Gb = P(null, (e, t, n) => Wb(e, t, n, "top")), Kb = P(null, (e, t, n) => Wb(e, t, n, "bottom")), qb = P(null, (e, t, { cellId: n, overCellId: r }) => {
27028
+ let i = e(Ye), a = it(i, n), o = it(i, r);
27029
27029
  if (a === o) {
27030
27030
  Hb(e, t, n, (e, t) => t.indexOf(r));
27031
27031
  return;
27032
27032
  }
27033
27033
  let s = Nb(a, n), c = Ib(Fb(i), new Set(s)), l = c[i.columns.indexOf(o)].ids, u = l.indexOf(r);
27034
27034
  l.splice(u, 0, ...s), Vb(e, t, c);
27035
- }), Jb = N(null, (e, t, { cellId: n, columnId: r }) => {
27036
- let i = e(Xe), a = Ge(i, r);
27035
+ }), Jb = P(null, (e, t, { cellId: n, columnId: r }) => {
27036
+ let i = e(Ye), a = Ge(i, r);
27037
27037
  if (a === void 0) return;
27038
27038
  let o = Nb(it(i, n), n), s = Ib(Fb(i), new Set(o));
27039
27039
  s[i.columns.indexOf(a)].ids.unshift(...o), Vb(e, t, s);
27040
- }), Yb = N(null, (e, t, { cellId: n, columnId: r, index: i }) => {
27041
- let a = e(Xe), o = Ge(a, r);
27040
+ }), Yb = P(null, (e, t, { cellId: n, columnId: r, index: i }) => {
27041
+ let a = e(Ye), o = Ge(a, r);
27042
27042
  if (o === void 0) return;
27043
27043
  let s = it(a, n), c = Nb(s, n), l = Fb(a), u = s.ids.indexOf(n), d = Ib(l, new Set(c)), f = d[a.columns.indexOf(o)].ids, p = Math.max(0, Math.min(i, o.ids.length));
27044
27044
  s === o && u < p && (p -= c.length), f.splice(Math.max(0, Math.min(p, f.length)), 0, ...c), Vb(e, t, d);
27045
- }), Xb = N(null, (e, t, { cellIds: n, targetCellId: r, position: i, previousPlacements: a }) => {
27045
+ }), Xb = P(null, (e, t, { cellIds: n, targetCellId: r, position: i, previousPlacements: a }) => {
27046
27046
  if (n.length === 0) return;
27047
- let o = e(Xe), s = new Set(n), c = Ib(Fb(o), s), l = c[o.columns.indexOf(it(o, r))].ids, u = l.indexOf(r);
27047
+ let o = e(Ye), s = new Set(n), c = Ib(Fb(o), s), l = c[o.columns.indexOf(it(o, r))].ids, u = l.indexOf(r);
27048
27048
  if (u === -1 ? u = l.length : i === "after" && (u += 1), l.splice(u, 0, ...n), Vb(e, t, c), a && a.length === n.length) {
27049
27049
  let e = {
27050
27050
  type: "move",
27051
27051
  cellIds: n,
27052
27052
  placements: a
27053
27053
  };
27054
- t(Qe, (t) => ({
27054
+ t(Ze, (t) => ({
27055
27055
  ...t,
27056
27056
  history: [...t.history, e]
27057
27057
  }));
27058
27058
  }
27059
27059
  });
27060
27060
  function Zb(e, t, n, r) {
27061
- let i = e(Xe), a = Ib(Fb(i), new Set(n)), o = (e) => {
27061
+ let i = e(Ye), a = Ib(Fb(i), new Set(n)), o = (e) => {
27062
27062
  let t = i.columns.findIndex((t) => t.id === e);
27063
27063
  return t === -1 ? a.length - 1 : t;
27064
27064
  }, s = n.map((e, t) => ({
@@ -27072,8 +27072,8 @@ function Zb(e, t, n, r) {
27072
27072
  }
27073
27073
  Vb(e, t, a);
27074
27074
  }
27075
- var Qb = N(null, (e, t, { columnId: n }) => {
27076
- let r = e(Xe), i = r.columns.findIndex((e) => e.id === n);
27075
+ var Qb = P(null, (e, t, { columnId: n }) => {
27076
+ let r = e(Ye), i = r.columns.findIndex((e) => e.id === n);
27077
27077
  if (i === -1) return;
27078
27078
  let a = Me.create(), o = Fb(r);
27079
27079
  o.splice(i + 1, 0, {
@@ -27088,8 +27088,8 @@ var Qb = N(null, (e, t, { columnId: n }) => {
27088
27088
  config: { column: i + 1 }
27089
27089
  }, c === void 0 ? {} : { after: c }), Rb(s, o.slice(0, l))?.(e);
27090
27090
  }), Mb(t, a);
27091
- }), $b = N(null, (e, t, { cellId: n }) => {
27092
- let r = e(Xe), i = it(r, n), a = r.columns.indexOf(i), o = i.ids.indexOf(n);
27091
+ }), $b = P(null, (e, t, { cellId: n }) => {
27092
+ let r = e(Ye), i = it(r, n), a = r.columns.indexOf(i), o = i.ids.indexOf(n);
27093
27093
  if (a === 0 && o === 0) return;
27094
27094
  let s = Fb(r), c = ot();
27095
27095
  s.splice(a, 1, {
@@ -27099,24 +27099,24 @@ var Qb = N(null, (e, t, { columnId: n }) => {
27099
27099
  id: o === 0 ? i.id : c,
27100
27100
  ids: i.ids.slice(o)
27101
27101
  }), Vb(e, t, s);
27102
- }), ex = N(null, (e, t, { columnId: n }) => {
27103
- let r = e(Xe), i = r.columns.findIndex((e) => e.id === n);
27102
+ }), ex = P(null, (e, t, { columnId: n }) => {
27103
+ let r = e(Ye), i = r.columns.findIndex((e) => e.id === n);
27104
27104
  if (i === -1 || r.columns.length <= 1) return;
27105
27105
  let a = Fb(r), o = i === 0 ? 1 : i - 1;
27106
27106
  a[o].ids = i === 0 ? [...a[i].ids, ...a[o].ids] : [...a[o].ids, ...a[i].ids], a.splice(i, 1), Vb(e, t, a);
27107
- }), tx = N(null, (e, t) => {
27108
- let n = e(Xe);
27107
+ }), tx = P(null, (e, t) => {
27108
+ let n = e(Ye);
27109
27109
  n.columns.length <= 1 || Vb(e, t, [{
27110
27110
  id: n.columns[0].id,
27111
27111
  ids: n.columns.flatMap((e) => [...e.ids])
27112
27112
  }]);
27113
- }), nx = N(null, (e, t) => {
27114
- let n = e(Xe), r = Fb(n).filter((e) => e.ids.length > 0);
27113
+ }), nx = P(null, (e, t) => {
27114
+ let n = e(Ye), r = Fb(n).filter((e) => e.ids.length > 0);
27115
27115
  r.length === n.columns.length || n.columns.length <= 1 || Vb(e, t, r);
27116
- }), rx = N(null, (e, t, { column: n, overColumn: r }) => {
27116
+ }), rx = P(null, (e, t, { column: n, overColumn: r }) => {
27117
27117
  if (n === r) return;
27118
- let i = Fb(e(Xe)), a = i.findIndex(({ id: e }) => e === n), o = r === "_left_" ? a - 1 : r === "_right_" ? a + 1 : i.findIndex(({ id: e }) => e === r);
27119
- a === -1 || o < 0 || o >= i.length || (Vb(e, t, sr(i, a, o)), kb(a, o));
27118
+ let i = Fb(e(Ye)), a = i.findIndex(({ id: e }) => e === n), o = r === "_left_" ? a - 1 : r === "_right_" ? a + 1 : i.findIndex(({ id: e }) => e === r);
27119
+ a === -1 || o < 0 || o >= i.length || (Vb(e, t, fn(i, a, o)), kb(a, o));
27120
27120
  });
27121
27121
  //#endregion
27122
27122
  //#region src/core/cells/actions.ts
@@ -27124,10 +27124,10 @@ function ix(e, t) {
27124
27124
  for (let n of e.cells.values()) if (n.code === t) return !0;
27125
27125
  return !1;
27126
27126
  }
27127
- var ax = N(null, (e, t, n = {}) => {
27127
+ var ax = P(null, (e, t, n = {}) => {
27128
27128
  let { code: r = "", focus: i = !0 } = n, a = jb(e);
27129
27129
  if (n.skipIfCodeExists && ix(a, r)) return null;
27130
- let o = e(Xe), s = {}, c = null, l;
27130
+ let o = e(Ye), s = {}, c = null, l;
27131
27131
  if (n.after) l = tt(o, n.after)?.at(-1) ?? n.after, s = { after: l };
27132
27132
  else if (n.before) {
27133
27133
  let e = it(o, n.before), t = o.columns.indexOf(e);
@@ -27148,10 +27148,10 @@ var ax = N(null, (e, t, n = {}) => {
27148
27148
  config: d
27149
27149
  }, s), c !== null && n.before && e.updateConfig(n.before, { column: null });
27150
27150
  }), i && (yx(t, l === void 0 ? [] : ft(o, l)), Mb(t, u), d.hide_code && t(dt, (e) => /* @__PURE__ */ new Set([...e, u]))), u;
27151
- }), ox = N(null, (e, t, { cellId: n, code: r }) => {
27151
+ }), ox = P(null, (e, t, { cellId: n, code: r }) => {
27152
27152
  jb(e).cells.has(n) && t(Ab(e).editAtom, (e) => e.setCode(n, r));
27153
- }), sx = N(null, (e, t, { cellId: n }) => {
27154
- let r = e(Qe).cellHandles[n]?.current?.editorView;
27153
+ }), sx = P(null, (e, t, { cellId: n }) => {
27154
+ let r = e(Ze).cellHandles[n]?.current?.editorView;
27155
27155
  if (!r) return null;
27156
27156
  let { beforeCursorCode: i, afterCursorCode: a } = Jf(r), o = Tb(r.state, i);
27157
27157
  o && r.dispatch(o);
@@ -27162,8 +27162,8 @@ var ax = N(null, (e, t, n = {}) => {
27162
27162
  code: a
27163
27163
  }, { after: n });
27164
27164
  }), lx(e, t, n), Mb(t, s), s;
27165
- }), cx = N(null, (e, t, { cellId: n, newCellId: r, snapshot: i }) => {
27166
- let a = e(Qe).cellHandles[n]?.current?.editorView, o = a && Tb(a.state, i);
27165
+ }), cx = P(null, (e, t, { cellId: n, newCellId: r, snapshot: i }) => {
27166
+ let a = e(Ze).cellHandles[n]?.current?.editorView, o = a && Tb(a.state, i);
27167
27167
  a && o && a.dispatch(o);
27168
27168
  let s = jb(e);
27169
27169
  t(Ab(e).editAtom, (e) => {
@@ -27177,39 +27177,39 @@ function lx(e, t, n) {
27177
27177
  }, [n]);
27178
27178
  }
27179
27179
  function ux(e, t) {
27180
- Ie(e, t);
27180
+ j(e, t);
27181
27181
  for (let n of t) e.set(dx, { cellId: n });
27182
27182
  }
27183
- var dx = N(null, (e, t, { cellId: n }) => {
27183
+ var dx = P(null, (e, t, { cellId: n }) => {
27184
27184
  let r = Ve(e, n), i = r && {
27185
27185
  executionId: r.record.id,
27186
27186
  seq: r.lastSeq ?? -1,
27187
27187
  prompts: new Set([...r.items.values()].filter((e) => e.kind === "input" && e.status === "pending").map((e) => e.id))
27188
27188
  };
27189
- t(Qe, (e) => Be(e, {
27189
+ t(Ze, (e) => Be(e, {
27190
27190
  type: "clearCellConsole",
27191
27191
  payload: {
27192
27192
  cellId: n,
27193
27193
  clearedConsole: i
27194
27194
  }
27195
27195
  }));
27196
- }), fx = N(null, (e, t, { cellId: n }) => {
27196
+ }), fx = P(null, (e, t, { cellId: n }) => {
27197
27197
  ux({
27198
27198
  get: e,
27199
27199
  set: t
27200
27200
  }, [n]);
27201
- }), px = N(null, (e, t) => {
27201
+ }), px = P(null, (e, t) => {
27202
27202
  ux({
27203
27203
  get: e,
27204
27204
  set: t
27205
- }, e(Qe).cellIds);
27206
- }), mx = N(null, (e, t, { cellId: n, before: r, create: i = !0 }) => {
27205
+ }, e(Ze).cellIds);
27206
+ }), mx = P(null, (e, t, { cellId: n, before: r, create: i = !0 }) => {
27207
27207
  if (n === "__scratch__") return;
27208
- let { visible: a } = it(e(Xe), n), o = a.indexOf(n), s = r ? o - 1 : o + 1;
27208
+ let { visible: a } = it(e(Ye), n), o = a.indexOf(n), s = r ? o - 1 : o + 1;
27209
27209
  o === -1 || s < 0 || s >= a.length ? i && t(ax, r ? { before: n } : { after: n }) : hx(e, a[s], r ? "bottom" : "top");
27210
27210
  });
27211
27211
  function hx(e, t, n) {
27212
- let r = e(Qe);
27212
+ let r = e(Ze);
27213
27213
  we({
27214
27214
  cellId: t,
27215
27215
  cell: r.cellHandles[t],
@@ -27218,14 +27218,14 @@ function hx(e, t, n) {
27218
27218
  variableName: void 0
27219
27219
  });
27220
27220
  }
27221
- var gx = N(null, (e, t, { cellId: n, where: r }) => {
27222
- let { visible: i } = it(e(Xe), n), a = i.indexOf(n);
27223
- a !== -1 && hx(e, i[la(a + (r === "before" ? -1 : +(r === "after")), 0, i.length - 1)], r === "after" ? "top" : "bottom");
27224
- }), _x = N(null, (e) => {
27225
- let t = e(Xe).columns[0]?.visible[0];
27221
+ var gx = P(null, (e, t, { cellId: n, where: r }) => {
27222
+ let { visible: i } = it(e(Ye), n), a = i.indexOf(n);
27223
+ a !== -1 && hx(e, i[ta(a + (r === "before" ? -1 : +(r === "after")), 0, i.length - 1)], r === "after" ? "top" : "bottom");
27224
+ }), _x = P(null, (e) => {
27225
+ let t = e(Ye).columns[0]?.visible[0];
27226
27226
  t !== void 0 && (hx(e, t, void 0), et());
27227
- }), vx = N(null, (e) => {
27228
- let t = e(Xe).columns.at(-1)?.visible.at(-1);
27227
+ }), vx = P(null, (e) => {
27228
+ let t = e(Ye).columns.at(-1)?.visible.at(-1);
27229
27229
  t !== void 0 && (hx(e, t, void 0), Ce());
27230
27230
  });
27231
27231
  function yx(e, t) {
@@ -27235,42 +27235,42 @@ function yx(e, t) {
27235
27235
  return n;
27236
27236
  });
27237
27237
  }
27238
- var bx = N(null, (e, t, { cellId: n }) => {
27239
- qe(e(Se(n))) && (t($e, (e) => /* @__PURE__ */ new Set([...e, n])), Mb(t, n));
27240
- }), xx = N(null, (e, t, { cellId: n }) => {
27238
+ var bx = P(null, (e, t, { cellId: n }) => {
27239
+ nt(e(Te(n))) && (t($e, (e) => /* @__PURE__ */ new Set([...e, n])), Mb(t, n));
27240
+ }), xx = P(null, (e, t, { cellId: n }) => {
27241
27241
  yx(t, [n]), Mb(t, n);
27242
- }), Sx = N(null, (e, t) => {
27243
- t($e, new Set(e(Qe).cellIds.filter((t) => qe(e(Se(t))))));
27244
- }), Cx = N(null, (e, t) => {
27242
+ }), Sx = P(null, (e, t) => {
27243
+ t($e, new Set(e(Ze).cellIds.filter((t) => nt(e(Te(t))))));
27244
+ }), Cx = P(null, (e, t) => {
27245
27245
  t($e, /* @__PURE__ */ new Set());
27246
- }), wx = N(null, (e, t, { cellId: n }) => {
27247
- yx(t, Ke(e(Xe), n));
27248
- }), Tx = N(null, (e, t, { code: n } = {}) => {
27249
- let { cellIds: r } = e(Qe);
27246
+ }), wx = P(null, (e, t, { cellId: n }) => {
27247
+ yx(t, Ke(e(Ye), n));
27248
+ }), Tx = P(null, (e, t, { code: n } = {}) => {
27249
+ let { cellIds: r } = e(Ze);
27250
27250
  if (r.includes("setup")) {
27251
27251
  Mb(t, Ae);
27252
27252
  return;
27253
27253
  }
27254
- let i = e(Xe).columns[0];
27254
+ let i = e(Ye).columns[0];
27255
27255
  t(ax, {
27256
27256
  id: Ae,
27257
27257
  name: Ae,
27258
27258
  code: n ?? "",
27259
27259
  ...i.ids.length > 0 ? { before: i.ids[0] } : { endOf: i.id }
27260
27260
  });
27261
- }), Ex = N(null, (e, t, { code: n }) => {
27261
+ }), Ex = P(null, (e, t, { code: n }) => {
27262
27262
  let r = jb(e).cells.get(Ae);
27263
27263
  if (r === void 0) {
27264
27264
  t(Tx, { code: n });
27265
27265
  return;
27266
27266
  }
27267
- let i = r.code ?? e(Qe).cellData.setup?.code ?? "";
27267
+ let i = r.code ?? e(Ze).cellData.setup?.code ?? "";
27268
27268
  t(ox, {
27269
27269
  cellId: Ae,
27270
27270
  code: i.trim() ? `${i.trimEnd()}\n\n${n}` : n
27271
27271
  });
27272
- }), Dx = N(null, (e, t, { cellIds: n }) => {
27273
- let r = jb(e), i = e(Qe), o = new Set(n);
27272
+ }), Dx = P(null, (e, t, { cellIds: n }) => {
27273
+ let r = jb(e), i = e(Ze), o = new Set(n);
27274
27274
  for (let e of n) r.cells.has(e) || a.warn("Skipping delete for missing cellId", { cellId: e });
27275
27275
  let s = r.order, c = s.flatMap((e) => {
27276
27276
  let t = r.cells.get(e);
@@ -27278,7 +27278,7 @@ var bx = N(null, (e, t, { cellId: n }) => {
27278
27278
  });
27279
27279
  if (c.length === s.length && c.pop(), c.length === 0) return !1;
27280
27280
  let l = new Set(c.map((e) => e.id)), u = s.find((e) => !l.has(e)), d = c.map((e) => {
27281
- let t = e.id, n = s.indexOf(t), r = e.code ?? i.cellData[t]?.code ?? "", a = (i.cellHandles[t]?.current?.editorView)?.state.toJSON({ history: Qn }) ?? null;
27281
+ let t = e.id, n = s.indexOf(t), r = e.code ?? i.cellData[t]?.code ?? "", a = (i.cellHandles[t]?.current?.editorView)?.state.toJSON({ history: er }) ?? null;
27282
27282
  return a && (a.doc = r), {
27283
27283
  cell: {
27284
27284
  id: t,
@@ -27289,7 +27289,7 @@ var bx = N(null, (e, t, { cellId: n }) => {
27289
27289
  placement: n > 0 ? { after: s[n - 1] } : { before: u },
27290
27290
  serializedEditorState: a
27291
27291
  };
27292
- }), f = c[0].id, p = it(e(Xe), f), m = p.visible.includes(f) ? p.visible : p.ids, h = m.indexOf(f), g = m.slice(0, h).findLast((e) => !l.has(e)) ?? m.slice(h + 1).find((e) => !l.has(e)) ?? null, _ = Ze(r);
27292
+ }), f = c[0].id, p = it(e(Ye), f), m = p.visible.includes(f) ? p.visible : p.ids, h = m.indexOf(f), g = m.slice(0, h).findLast((e) => !l.has(e)) ?? m.slice(h + 1).find((e) => !l.has(e)) ?? null, _ = Xe(r);
27293
27293
  t(Ab(e).editAtom, (e) => {
27294
27294
  let t = null, n = !1;
27295
27295
  for (let i of s) {
@@ -27303,7 +27303,7 @@ var bx = N(null, (e, t, { cellId: n }) => {
27303
27303
  for (let t of l) e.deleteCell(t);
27304
27304
  });
27305
27305
  for (let e of l) pt(e);
27306
- return t(dt, (e) => e.size === 0 ? e : new Set([...e].filter((e) => !l.has(e)))), t(Je, (e) => [...e.keys()].some((e) => l.has(e)) ? new Map([...e].filter(([e]) => !l.has(e))) : e), t(Qe, (e) => ({
27306
+ return t(dt, (e) => e.size === 0 ? e : new Set([...e].filter((e) => !l.has(e)))), t(qe, (e) => [...e.keys()].some((e) => l.has(e)) ? new Map([...e].filter(([e]) => !l.has(e))) : e), t(Ze, (e) => ({
27307
27307
  ...e,
27308
27308
  history: [...e.history, {
27309
27309
  type: "delete",
@@ -27311,11 +27311,11 @@ var bx = N(null, (e, t, { cellId: n }) => {
27311
27311
  }],
27312
27312
  scrollKey: g
27313
27313
  })), !0;
27314
- }), Ox = N(null, (e, t) => {
27315
- let n = e(Qe).history.at(-1);
27314
+ }), Ox = P(null, (e, t) => {
27315
+ let n = e(Ze).history.at(-1);
27316
27316
  if (n === void 0) return;
27317
27317
  if (n.type === "move") {
27318
- t(Qe, (e) => ({
27318
+ t(Ze, (e) => ({
27319
27319
  ...e,
27320
27320
  history: e.history.slice(0, -1)
27321
27321
  })), Zb(e, t, n.cellIds, n.placements), Mb(t, n.cellIds[0]);
@@ -27328,18 +27328,18 @@ var bx = N(null, (e, t, { cellId: n }) => {
27328
27328
  let n = a.after ?? a.before, o = n === void 0 || i.cells.has(n) || t.has(n);
27329
27329
  e.createCell(r, o ? a : {}), t.add(r.id);
27330
27330
  }
27331
- }), t(Je, (e) => {
27331
+ }), t(qe, (e) => {
27332
27332
  let t = new Map(e);
27333
27333
  for (let { cell: e, serializedEditorState: r } of n.cells) r !== null && t.set(e.id, r);
27334
27334
  return t;
27335
- }), t(Qe, (e) => ({
27335
+ }), t(Ze, (e) => ({
27336
27336
  ...e,
27337
27337
  history: e.history.slice(0, -1),
27338
27338
  scrollKey: n.cells[0].cell.id
27339
27339
  }));
27340
27340
  });
27341
27341
  function kx() {
27342
- let { addLogs: e, reconcileDocument: t, resetCellRuntimes: n, ...r } = mt(), i = P(ax), a = P(mx), o = P(Tx), s = P(Ex), c = P(Dx), l = P(Ox), u = P(gx), d = P(_x), f = P(vx), p = P(bx), m = P(xx), h = P(Sx), g = P(Cx), _ = P(fx), v = P(dx), y = P(px), b = P(wx), x = P(Ub), S = P(Yb), C = P(Xb), ee = P(qb), w = P(Jb), te = P(Gb), ne = P(Kb), T = P(Qb), E = P($b), re = P(ex), ie = P(tx), D = P(nx), O = P(rx), ae = P(ox), oe = P(sx), se = P(cx);
27342
+ let { addLogs: e, reconcileDocument: t, resetCellRuntimes: n, ...r } = mt(), i = N(ax), a = N(mx), o = N(Tx), s = N(Ex), c = N(Dx), l = N(Ox), u = N(gx), d = N(_x), f = N(vx), p = N(bx), m = N(xx), h = N(Sx), g = N(Cx), _ = N(fx), v = N(dx), y = N(px), b = N(wx), x = N(Ub), S = N(Yb), C = N(Xb), ee = N(qb), w = N(Jb), te = N(Gb), ne = N(Kb), T = N(Qb), E = N($b), re = N(ex), ie = N(tx), D = N(nx), O = N(rx), ae = N(ox), oe = N(sx), se = N(cx);
27343
27343
  return (0, L.useMemo)(() => ({
27344
27344
  ...r,
27345
27345
  setCellCode: ae,
@@ -27437,9 +27437,9 @@ function Mx(e, t, n = {}) {
27437
27437
  }
27438
27438
  //#endregion
27439
27439
  //#region src/core/codemirror/format.ts
27440
- var Nx = _n.define();
27440
+ var Nx = yn.define();
27441
27441
  async function Px(e, t) {
27442
- let { formatDialect: n } = await import("./esm-DQtHTnHn.js"), r = await Fx(hv.getInternalDialect(t)), i = e.state.field(xb), o = hn(e.state);
27442
+ let { formatDialect: n } = await import("./esm-DQtHTnHn.js"), r = await Fx(hv.getInternalDialect(t)), i = e.state.field(xb), o = _n(e.state);
27443
27443
  if (i.type !== "sql") {
27444
27444
  a.error("Language adapter is not SQL");
27445
27445
  return;
@@ -27499,7 +27499,7 @@ async function Fx(e) {
27499
27499
  //#endregion
27500
27500
  //#region src/core/documentation/doc-lookup.ts
27501
27501
  async function Ix(e) {
27502
- let t = Ye().at(0);
27502
+ let t = Je().at(0);
27503
27503
  if (t) try {
27504
27504
  let n = await Ba.request({
27505
27505
  document: e,
@@ -27527,7 +27527,7 @@ var Lx = (e) => {
27527
27527
  onMouseLeave: o,
27528
27528
  children: r
27529
27529
  }), t[4] = r, t[5] = a, t[6] = o, t[7] = s) : s = t[7], s;
27530
- }, Rx = N(!1);
27530
+ }, Rx = P(!1);
27531
27531
  //#endregion
27532
27532
  //#region src/core/static/export-context.ts
27533
27533
  function zx(e) {
@@ -27545,25 +27545,25 @@ function Vx() {
27545
27545
  function Hx() {
27546
27546
  if (M.get(Rx) || Vx() || M.get(nn)) return !0;
27547
27547
  try {
27548
- if (Jn() === "read") return !0;
27548
+ if (Xn() === "read") return !0;
27549
27549
  } catch {}
27550
27550
  return !1;
27551
27551
  }
27552
27552
  //#endregion
27553
27553
  //#region src/plugins/core/sanitize.ts
27554
- var Ux = N((e) => {
27554
+ var Ux = P((e) => {
27555
27555
  let t = e(Rx), n = e(nn);
27556
27556
  if (t || n || Vx()) return !1;
27557
27557
  let r = !0;
27558
27558
  try {
27559
- r = Jn() === "read";
27559
+ r = Xn() === "read";
27560
27560
  } catch {
27561
27561
  return !0;
27562
27562
  }
27563
27563
  return !r;
27564
27564
  });
27565
27565
  function Wx() {
27566
- return yt(Ux);
27566
+ return Ot(Ux);
27567
27567
  }
27568
27568
  //#endregion
27569
27569
  //#region src/plugins/core/RenderHTML.tsx
@@ -27664,7 +27664,7 @@ var Gx = [], Kx = (e) => {
27664
27664
  bb0: {
27665
27665
  if (i || o) {
27666
27666
  let e;
27667
- t[0] === n ? e = t[1] : (e = nt(n), t[0] = n, t[1] = e), s = e;
27667
+ t[0] === n ? e = t[1] : (e = Qe(n), t[0] = n, t[1] = e), s = e;
27668
27668
  break bb0;
27669
27669
  }
27670
27670
  s = n;
@@ -28233,7 +28233,7 @@ function YS(e, t) {
28233
28233
  //#endregion
28234
28234
  //#region src/core/notebook/document/select.ts
28235
28235
  function XS(e, t, n) {
28236
- return St(e, (e) => e?.cells.get(t)?.[n], wt);
28236
+ return Ct(e, (e) => e?.cells.get(t)?.[n], Dt);
28237
28237
  }
28238
28238
  //#endregion
28239
28239
  //#region src/core/notebook/document/hooks.tsx
@@ -28245,19 +28245,19 @@ function QS() {
28245
28245
  }
28246
28246
  function $S(e, t) {
28247
28247
  let n = (0, R.c)(4), { documentAtom: r } = QS(), i;
28248
- return n[0] !== r || n[1] !== t || n[2] !== e ? (i = XS(r, e, t), n[0] = r, n[1] = t, n[2] = e, n[3] = i) : i = n[3], yt(i);
28248
+ return n[0] !== r || n[1] !== t || n[2] !== e ? (i = XS(r, e, t), n[0] = r, n[1] = t, n[2] = e, n[3] = i) : i = n[3], Ot(i);
28249
28249
  }
28250
28250
  function eC(e) {
28251
28251
  return $S(e, "config");
28252
28252
  }
28253
28253
  function tC() {
28254
- return P(QS().editAtom);
28254
+ return N(QS().editAtom);
28255
28255
  }
28256
28256
  //#endregion
28257
28257
  //#region src/core/cells/outputs.ts
28258
28258
  var nC = {}, rC = {};
28259
28259
  function iC(e) {
28260
- let t = (0, R.c)(14), { mode: n } = yt(Kn), r = tC(), i = eC(e)?.expand_output ?? !1, a;
28260
+ let t = (0, R.c)(14), { mode: n } = Ot(Jn), r = tC(), i = eC(e)?.expand_output ?? !1, a;
28261
28261
  t[0] !== e || t[1] !== i ? (a = () => nC[e] ?? i, t[0] = e, t[1] = i, t[2] = a) : a = t[2];
28262
28262
  let [o, s] = (0, L.useState)(a), c, l;
28263
28263
  t[3] !== e || t[4] !== o ? (c = () => {
@@ -28283,7 +28283,7 @@ function oC(e) {
28283
28283
  }
28284
28284
  //#endregion
28285
28285
  //#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
28286
- var sC = (0, L.lazy)(() => import("./any-language-editor-BQ9dhxg5.js")), cC = [bn.lineWrapping], lC = (0, L.createContext)(!0);
28286
+ var sC = (0, L.lazy)(() => import("./any-language-editor-Cx4idbgX.js")), cC = [Sn.lineWrapping], lC = (0, L.createContext)(!0);
28287
28287
  function uC(e, t) {
28288
28288
  return e ? e === "python" ? {
28289
28289
  language: e,
@@ -28306,7 +28306,7 @@ function uC(e, t) {
28306
28306
  };
28307
28307
  }
28308
28308
  var dC = (e) => {
28309
- let t = (0, R.c)(6), { code: n, language: r } = e, { createCell: i } = kx(), a = jy(), o = yt(nn), s;
28309
+ let t = (0, R.c)(6), { code: n, language: r } = e, { createCell: i } = kx(), a = jy(), o = Ot(nn), s;
28310
28310
  return t[0] !== o || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (s = /* @__PURE__ */ (0, z.jsx)(u, {
28311
28311
  size: "xs",
28312
28312
  variant: "outline",
@@ -28324,7 +28324,7 @@ var dC = (e) => {
28324
28324
  children: "Add to Notebook"
28325
28325
  }), t[0] = o, t[1] = n, t[2] = i, t[3] = r, t[4] = a, t[5] = s) : s = t[5], s;
28326
28326
  }, fC = (e) => {
28327
- let t = (0, R.c)(18), { code: n, language: r } = e, { theme: i } = Nt(), a = (0, L.useContext)(lC), [o, s] = (0, L.useState)(n);
28327
+ let t = (0, R.c)(18), { code: n, language: r } = e, { theme: i } = Ft(), a = (0, L.useContext)(lC), [o, s] = (0, L.useState)(n);
28328
28328
  o !== n && s(n);
28329
28329
  let c;
28330
28330
  t[0] === o ? c = t[1] : (c = async () => {
@@ -28944,4 +28944,4 @@ async function Ww(e, t) {
28944
28944
  });
28945
28945
  }
28946
28946
  //#endregion
28947
- export { d_ as $, cS as A, xi as At, Cy as B, ii as Bt, jS as C, na as Ct, dS as D, Ti as Dt, fS as E, Ei as Et, Vx as F, fi as Ft, ey as G, Gr as Gt, vy as H, $r as Ht, Rx as I, di as It, M_ as J, ty as K, Wr as Kt, kx as L, ci as Lt, iS as M, gi as Mt, Wx as N, hi as Nt, hS as O, wi as Ot, Bx as P, mi as Pt, h_ as Q, ky as R, oi as Rt, kS as S, ca as St, sS as T, Zi as Tt, by as U, Qr as Ut, hy as V, ni as Vt, gy as W, Xr as Wt, A_ as X, O_ as Y, k_ as Z, yS as _, ma as _t, oC as a, Vf as at, TS as b, da as bt, tC as c, wd as ct, JS as d, Du as dt, g_ as et, WS as f, Za as ft, VS as g, ka as gt, BS as h, Ia as ht, sC as i, Q as it, gS as j, yi as jt, lS as k, Si as kt, qS as l, vd as lt, US as m, Ra as mt, xC as n, qp as nt, aC as o, Df as ot, GS as p, Xa as pt, j_ as q, yC as r, zp as rt, iC as s, ff as st, Ww as t, Qg as tt, YS as u, Iu as ut, xS as v, fa as vt, NS as w, Li as wt, DS as x, la as xt, CS as y, ua as yt, jy as z, ai as zt };
28947
+ export { d_ as $, cS as A, xi as At, Cy as B, ii as Bt, jS as C, ta as Ct, dS as D, Ti as Dt, fS as E, Ei as Et, Vx as F, fi as Ft, ey as G, Gr as Gt, vy as H, $r as Ht, Rx as I, di as It, M_ as J, ty as K, Wr as Kt, kx as L, ci as Lt, iS as M, gi as Mt, Wx as N, hi as Nt, hS as O, wi as Ot, Bx as P, mi as Pt, h_ as Q, ky as R, oi as Rt, kS as S, ra as St, sS as T, Zi as Tt, by as U, Qr as Ut, hy as V, ni as Vt, gy as W, Xr as Wt, A_ as X, O_ as Y, k_ as Z, yS as _, ma as _t, oC as a, Vf as at, TS as b, da as bt, tC as c, wd as ct, JS as d, Du as dt, g_ as et, WS as f, Za as ft, VS as g, ka as gt, BS as h, Ia as ht, sC as i, Q as it, gS as j, yi as jt, lS as k, Si as kt, qS as l, vd as lt, US as m, Ra as mt, xC as n, qp as nt, aC as o, Df as ot, GS as p, Xa as pt, j_ as q, yC as r, zp as rt, iC as s, ff as st, Ww as t, Qg as tt, YS as u, Iu as ut, xS as v, fa as vt, NS as w, Li as wt, DS as x, la as xt, CS as y, ua as yt, jy as z, ai as zt };