@marimo-team/islands 0.25.3-dev248 → 0.25.3-dev251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BBihxHrr.js → ConnectedDataExplorerComponent-DGOAQFtf.js} +11 -11
  2. package/dist/{ErrorBoundary-CD1s2-yk.js → ErrorBoundary-CZ19wGWT.js} +7 -7
  3. package/dist/{abnfDiagram-VCTEODGH-DBcJVxYP.js → abnfDiagram-VCTEODGH-DzrZZXRD.js} +2 -2
  4. package/dist/{any-language-editor-jGaR0EAo.js → any-language-editor-Be7dA2VK.js} +3 -3
  5. package/dist/{architectureDiagram-5GKGNRK7-BcHZXF4S.js → architectureDiagram-5GKGNRK7-iF_snyFL.js} +1 -1
  6. package/dist/{button-B6RjDKJx.js → button-0-RqY1DW.js} +2 -1
  7. package/dist/{capabilities-CkVzWJEX.js → capabilities-B6yy_CBN.js} +1 -1
  8. package/dist/{chat-ui-DgaVxFrc.js → chat-ui-zbfp80GW.js} +1547 -1482
  9. package/dist/{check-Z_vtI3OL.js → check-CSvxZk5I.js} +1 -1
  10. package/dist/{chunk-IMKFNOWR-CTZlwBAA.js → chunk-IMKFNOWR-B7xytD4B.js} +1 -1
  11. package/dist/{chunk-SHT3W25Y-53g_RZHm.js → chunk-SHT3W25Y-I8ZFP5L1.js} +1 -1
  12. package/dist/{chunk-SVP7TREG-P6abNGV_.js → chunk-SVP7TREG-Di-uAPdT.js} +1 -1
  13. package/dist/{chunk-TICWLB2K-BTJJqkyF.js → chunk-TICWLB2K-BFpUy0ud.js} +1 -1
  14. package/dist/{classDiagram-ZZMXUADV-BUGqOrTm.js → classDiagram-ZZMXUADV-Cqm4JGpx.js} +2 -2
  15. package/dist/{classDiagram-v2-VYDZK3BY-CXpQvO-s.js → classDiagram-v2-VYDZK3BY-DFHRJpN3.js} +2 -2
  16. package/dist/{code-visibility-BLiMCTCu.js → code-visibility-D2D_sL1T.js} +4 -4
  17. package/dist/{common-H6uadBsj.js → common-DSIM5DHJ.js} +262 -262
  18. package/dist/{config-DbjzjwxX.js → config-mwEjAmvP.js} +2 -2
  19. package/dist/{copy-icon-CG57cxwb.js → copy-icon-DD8bdw4L.js} +3 -3
  20. package/dist/{createReducer-DePYJ0F3.js → createReducer-Bx81cw8_.js} +1 -1
  21. package/dist/{cynefinDiagram-5FMLGOSQ-DOcnl8wW.js → cynefinDiagram-5FMLGOSQ-cuGOeTBC.js} +1 -1
  22. package/dist/{dagre-GXQ25YYZ-CuHR9QfG.js → dagre-GXQ25YYZ-DJ76aC4k.js} +1 -1
  23. package/dist/{data-grid-overlay-editor-Ba360Exn.js → data-grid-overlay-editor-ByfOIO6H.js} +1 -1
  24. package/dist/{diagram-S7CK7UJ4-BPiG4kso.js → diagram-S7CK7UJ4-DLLc0sw7.js} +1 -1
  25. package/dist/{diagram-UQ7AKVKN-_piBOvOC.js → diagram-UQ7AKVKN-Tz_d6qmk.js} +1 -1
  26. package/dist/{diagram-VX7I27RA-DCzVeJ8M.js → diagram-VX7I27RA-D7SzPrDN.js} +1 -1
  27. package/dist/{diagram-Z3DM3KII-D64CF1jQ.js → diagram-Z3DM3KII-qr37XV58.js} +1 -1
  28. package/dist/{dialog-DsZ49mmU.js → dialog-BHYPX87J.js} +3 -3
  29. package/dist/{dropdown-menu-BRiE7Vnp.js → dropdown-menu-Blu7V6Mk.js} +6 -6
  30. package/dist/{ebnfDiagram-PWID7BFC-BapQPML-.js → ebnfDiagram-PWID7BFC-BKOQb4J0.js} +2 -2
  31. package/dist/{erDiagram-RLTQ6QDP-CNQvC2_Q.js → erDiagram-RLTQ6QDP-CM15Vq68.js} +1 -1
  32. package/dist/{error-banner-IsonnvA0.js → error-banner-DbRFOd2O.js} +2 -2
  33. package/dist/{error-entries-CRPfxMqm.js → error-entries-BuIE3Ius.js} +9 -9
  34. package/dist/{feedback-button-Cfjlex_J.js → feedback-button-VT03EJ1h.js} +7 -7
  35. package/dist/{flowDiagram-HODETNUW-BBt6S6oe.js → flowDiagram-HODETNUW-Dt3N5yFT.js} +2 -2
  36. package/dist/{formats-BK4VefeF.js → formats-gGospKWJ.js} +2 -2
  37. package/dist/{glide-data-editor-CREvupa1.js → glide-data-editor-C94G7kD7.js} +10 -10
  38. package/dist/{glide-utils-CQddGpa-.js → glide-utils-qbkRZpEy.js} +3 -3
  39. package/dist/{globals-DUIx9HDW.js → globals-D7JZ5hgJ.js} +2 -2
  40. package/dist/{html-to-image-Gx4q3ZoD.js → html-to-image-BXrAd5q8.js} +460 -455
  41. package/dist/{infoDiagram-27XIBGKW-Hd8Ifz82.js → infoDiagram-27XIBGKW-C7axJMCl.js} +1 -1
  42. package/dist/{ishikawaDiagram-5VMMS53U-CP7hnHWx.js → ishikawaDiagram-5VMMS53U-CdC9Eur7.js} +1 -1
  43. package/dist/{kanban-definition-UXKFOSKX-CX91sa9b.js → kanban-definition-UXKFOSKX-BHnMIgD7.js} +1 -1
  44. package/dist/{loader-BisjOLiW.js → loader-BVEtQ4F3.js} +1 -1
  45. package/dist/main.js +236 -236
  46. package/dist/{mermaid-Djb3Ni9t.js → mermaid-DFYN_PXd.js} +35 -35
  47. package/dist/{mindmap-definition-YA3MSWOX-DgCNo07O.js → mindmap-definition-YA3MSWOX-BagHoCGU.js} +1 -1
  48. package/dist/{number-overlay-editor-B8TTAovO.js → number-overlay-editor-CdcscCHp.js} +1 -1
  49. package/dist/{pegDiagram-XKGWAZYB-SGJhnIKo.js → pegDiagram-XKGWAZYB-8IIZczip.js} +2 -2
  50. package/dist/{pieDiagram-E7YTZNPT-1stXIWCQ.js → pieDiagram-E7YTZNPT-CE6dKBIr.js} +1 -1
  51. package/dist/{process-output-D2ISIyIs.js → process-output-D2ZjxrHe.js} +4 -4
  52. package/dist/{railroadDiagram-O6MQD6OU-DY1mojzB.js → railroadDiagram-O6MQD6OU-CkexPq3b.js} +2 -2
  53. package/dist/{requirementDiagram-BXWQKSXE-gHzhUp0D.js → requirementDiagram-BXWQKSXE-B0-OkuAe.js} +1 -1
  54. package/dist/{reveal-component-CmZQtS97.js → reveal-component-Cr9euMM2.js} +8 -8
  55. package/dist/{select-BSxlITBo.js → select-CcidPqlM.js} +5 -5
  56. package/dist/{sequenceDiagram-WJ2MYXX4-rjPtD9fB.js → sequenceDiagram-WJ2MYXX4-Dxysg8DX.js} +1 -1
  57. package/dist/{spec-Dq8RNplp.js → spec-ZwfZcgsm.js} +4 -4
  58. package/dist/{stateDiagram-D77RDMKH-DMNxjUxV.js → stateDiagram-D77RDMKH-DTEN3-OJ.js} +2 -2
  59. package/dist/{stateDiagram-v2-MP3YSRHH-CumAaqGo.js → stateDiagram-v2-MP3YSRHH-vktk3Xc5.js} +2 -2
  60. package/dist/{strings-BGW-fXVJ.js → strings-BYJNyKmg.js} +3 -3
  61. package/dist/style.css +1 -1
  62. package/dist/{swimlanes-42K2YHIH-BU14_Tej.js → swimlanes-42K2YHIH-Cjveh9OM.js} +1 -1
  63. package/dist/{swimlanesDiagram-VR7AAH4N-CieAnPqJ.js → swimlanesDiagram-VR7AAH4N-Bdr7Ev_2.js} +2 -2
  64. package/dist/{swiper-component-Dir1o8ml.js → swiper-component-Dvj-goaD.js} +2 -2
  65. package/dist/{timeline-definition-24CTP7MA-CrVj4E1K.js → timeline-definition-24CTP7MA-KIuDcefn.js} +1 -1
  66. package/dist/{toast-BWIPi3aF.js → toast-CkB5Jq9K.js} +4 -4
  67. package/dist/{tooltip-C3UnvsRe.js → tooltip-Bzl4k00l.js} +2 -2
  68. package/dist/{use-restore-focus-BWO0z1lo.js → use-restore-focus-CmflVLWJ.js} +1 -1
  69. package/dist/{useDateFormatter-ChB4eyim.js → useDateFormatter-CYo5fm8s.js} +2 -2
  70. package/dist/{useIframeCapabilities-cMNQ80CK.js → useIframeCapabilities-BIolGsF1.js} +1 -1
  71. package/dist/{useLifecycle-BquH9ET-.js → useLifecycle-GNgvNwI-.js} +2 -2
  72. package/dist/{useTheme-DgOLVISn.js → useTheme-BZ2GGLgm.js} +141 -139
  73. package/dist/{vega-component-Bwg_Kuh-.js → vega-component-DOtem7Hf.js} +7 -7
  74. package/dist/{vennDiagram-4TSXK5OY-ZLxQ8yhm.js → vennDiagram-4TSXK5OY-DrIOUHfb.js} +1 -1
  75. package/dist/{wardleyDiagram-VM6X3IG4-D88pcLY1.js → wardleyDiagram-VM6X3IG4-CJNjf4OH.js} +1 -1
  76. package/dist/{xychartDiagram-S5SC5T6Z-_13d4g8g.js → xychartDiagram-S5SC5T6Z-DEshFho-.js} +1 -1
  77. package/package.json +1 -1
  78. package/src/__tests__/fixtures/pair-config.ts +1 -1
  79. package/src/components/app-config/__tests__/state.test.tsx +50 -0
  80. package/src/components/app-config/ai-config.tsx +1 -1
  81. package/src/components/chat/__tests__/capabilities-popover.test.tsx +0 -1
  82. package/src/components/chat/__tests__/chat-display.test.tsx +125 -0
  83. package/src/components/chat/__tests__/chat-markdown.test.tsx +43 -0
  84. package/src/components/chat/__tests__/chat-utils.test.ts +51 -1
  85. package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +1 -1
  86. package/src/components/chat/acp/__tests__/agent-panel.test.tsx +22 -17
  87. package/src/components/chat/acp/agent-panel.tsx +4 -3
  88. package/src/components/chat/acp/blocks.tsx +10 -10
  89. package/src/components/chat/acp/common.tsx +4 -5
  90. package/src/components/chat/acp/model-selector.tsx +1 -1
  91. package/src/components/chat/capabilities-popover.tsx +1 -6
  92. package/src/components/chat/chat-components.tsx +7 -4
  93. package/src/components/chat/chat-display.tsx +51 -6
  94. package/src/components/chat/chat-history-popover.tsx +6 -1
  95. package/src/components/chat/chat-markdown.tsx +15 -0
  96. package/src/components/chat/chat-panel.tsx +105 -119
  97. package/src/components/chat/chat-typography.css +108 -0
  98. package/src/components/chat/chat-utils.ts +8 -3
  99. package/src/components/chat/notebook-access-selector.tsx +1 -1
  100. package/src/components/chat/reasoning-accordion.tsx +3 -3
  101. package/src/components/chat/tool-call/tool-activity-group.tsx +49 -0
  102. package/src/components/chat/tool-call/tool-history-row.tsx +3 -30
  103. package/src/components/chat/tool-call/tool-result.tsx +1 -1
  104. package/src/components/chat/use-chat-generation.ts +19 -0
  105. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +18 -37
  106. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +5 -8
  107. package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +5 -19
  108. package/src/components/editor/actions/pair-with-agent-commands.ts +0 -1
  109. package/src/components/editor/actions/pair-with-agent-modal.tsx +7 -11
  110. package/src/components/editor/actions/pair-with-agent.tsx +3 -31
  111. package/src/components/editor/actions/useCellActionButton.tsx +1 -1
  112. package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
  113. package/src/components/editor/ai/prompt-input.tsx +189 -0
  114. package/src/components/editor/cell/StagedAICell.tsx +3 -3
  115. package/src/components/editor/cell/code/cell-editor.tsx +14 -1
  116. package/src/components/editor/chrome/panels/panel-header.tsx +13 -0
  117. package/src/components/editor/chrome/types.ts +1 -1
  118. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +53 -45
  119. package/src/components/editor/chrome/wrapper/__tests__/useAskAiAboutCell.test.tsx +58 -0
  120. package/src/components/editor/chrome/wrapper/app-chrome.tsx +89 -72
  121. package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +5 -8
  122. package/src/components/editor/chrome/wrapper/useAskAiAboutCell.ts +36 -0
  123. package/src/components/editor/renderers/__tests__/add-cell-buttons.test.tsx +18 -0
  124. package/src/components/editor/renderers/cell-array.tsx +10 -67
  125. package/src/components/markdown/markdown-renderer.tsx +35 -20
  126. package/src/components/mcp/mcp-status-indicator.tsx +18 -14
  127. package/src/core/ai/__tests__/staged-cells.test.ts +1 -467
  128. package/src/core/ai/context/context.ts +2 -0
  129. package/src/core/ai/context/providers/__tests__/cell.test.ts +49 -0
  130. package/src/core/ai/context/providers/cell.ts +54 -0
  131. package/src/core/ai/staged-cells.ts +4 -280
  132. package/src/core/ai/state.ts +3 -0
  133. package/src/core/codemirror/__tests__/setup.test.ts +32 -0
  134. package/src/core/codemirror/cells/state.ts +1 -0
  135. package/src/core/codemirror/cm.ts +5 -1
  136. package/src/core/codemirror/config/types.ts +1 -1
  137. package/src/core/codemirror/language/languages/python.ts +3 -3
  138. package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +16 -0
  139. package/src/core/codemirror/placeholder/extensions.ts +57 -19
  140. package/src/core/hotkeys/hotkeys.ts +2 -1
  141. package/src/core/notebook/document/__tests__/codemirror.test.ts +1 -0
  142. package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +1 -1
  143. package/src/plugins/impl/chat/chat-ui.tsx +1 -1
  144. package/src/components/editor/ai/__tests__/staged-cell-submission.test.ts +0 -106
  145. package/src/components/editor/ai/add-cell-with-ai.tsx +0 -506
  146. package/src/components/editor/ai/staged-cell-submission.ts +0 -46
  147. package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +0 -66
@@ -1,39 +1,39 @@
1
1
  import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { a, g as o, h as s, p as c, s as l, t as u, u as d } from "./button-B6RjDKJx.js";
2
+ import { a, g as o, h as s, p as c, s as l, t as u, u as d } from "./button-0-RqY1DW.js";
3
3
  import { t as f } from "./react-sHtZdjeP.js";
4
4
  import { t as p } from "./compiler-runtime-CldRdSsv.js";
5
- import { i as m, n as h, t as g } from "./copy-icon-CG57cxwb.js";
5
+ import { i as m, n as h, t as g } from "./copy-icon-DD8bdw4L.js";
6
6
  import { a as _, c as v, l as y, s as b, t as x } from "./chunk-YOKDWASO-DKplTrBY.js";
7
- import { c as S, i as C, l as w, m as T, s as ee, t as te, u as E } from "./tooltip-C3UnvsRe.js";
8
- import { a as ne, i as re, o as D, r as O, s as k, t as ie } from "./useLifecycle-BquH9ET-.js";
9
- import { A as ae, M as oe, a as se, c as ce, i as le, n as ue, o as A, r as de, s as fe, t as pe } from "./select-BSxlITBo.js";
10
- import { Y as me, mt as he, q as ge } from "./dropdown-menu-BRiE7Vnp.js";
11
- import { c as _e, l as j, n as M } from "./config-DbjzjwxX.js";
12
- import { C as ve, Ct as ye, D as be, Dt as xe, F as Se, Ft as N, G as Ce, I as we, L as Te, Lt as Ee, Mt as De, N as Oe, O as ke, S as Ae, T as je, Tt as Me, W as Ne, _ as Pe, _t as Fe, a as Ie, bt as Le, dt as Re, f as ze, ft as Be, gt as Ve, h as He, ht as Ue, it as We, mt as Ge, nt as Ke, o as qe, p as Je, pt as Ye, rt as Xe, s as Ze, ut as Qe, v as $e, vt as et, w as tt, x as nt, yt as rt } from "./error-entries-CRPfxMqm.js";
13
- import { i as it, o as at } from "./strings-BGW-fXVJ.js";
7
+ import { c as S, i as C, l as w, m as T, s as ee, t as te, u as E } from "./tooltip-Bzl4k00l.js";
8
+ import { a as ne, i as re, o as D, r as O, s as k, t as ie } from "./useLifecycle-GNgvNwI-.js";
9
+ import { A as ae, M as oe, a as se, c as ce, i as le, n as ue, o as A, r as de, s as fe, t as pe } from "./select-CcidPqlM.js";
10
+ import { Y as me, mt as he, q as ge } from "./dropdown-menu-Blu7V6Mk.js";
11
+ import { c as _e, l as j, n as M } from "./config-mwEjAmvP.js";
12
+ import { C as ve, Ct as ye, D as be, Dt as xe, F as Se, Ft as N, G as Ce, I as we, L as Te, Lt as Ee, Mt as De, N as Oe, O as ke, S as Ae, T as je, Tt as Me, W as Ne, _ as Pe, _t as Fe, a as Ie, bt as Le, dt as Re, f as ze, ft as Be, gt as Ve, h as He, ht as Ue, it as We, mt as Ge, nt as Ke, o as qe, p as Je, pt as Ye, rt as Xe, s as Ze, ut as Qe, v as $e, vt as et, w as tt, x as nt, yt as rt } from "./error-entries-BuIE3Ius.js";
13
+ import { i as it, o as at } from "./strings-BYJNyKmg.js";
14
14
  import { t as ot } from "./react-dom-DUmH0GXv.js";
15
15
  import { t as st } from "./jsx-runtime-3BD1kT0s.js";
16
- import { A as ct, C as lt, D as ut, E as dt, F as ft, I as pt, M as mt, N as ht, P as gt, S as _t, T as vt, a as yt, c as bt, j as xt, n as St, o as Ct, v as wt, w as Tt, x as Et, y as Dt } from "./use-restore-focus-BWO0z1lo.js";
16
+ import { A as ct, C as lt, D as ut, E as dt, F as ft, I as pt, M as mt, N as ht, P as gt, S as _t, T as vt, a as yt, c as bt, j as xt, n as St, o as Ct, v as wt, w as Tt, x as Et, y as Dt } from "./use-restore-focus-CmflVLWJ.js";
17
17
  import { t as Ot } from "./debounce-DrhhziJv.js";
18
- import { a as kt, n as At, o as jt, t as Mt } from "./useTheme-DgOLVISn.js";
18
+ import { n as kt, o as At, s as jt, t as Mt } from "./useTheme-BZ2GGLgm.js";
19
19
  import { D as Nt, S as P, _ as Pt, a as Ft, b as It, f as Lt, g as Rt, h as zt, l as F, w as I, x as Bt, y as Vt } from "./utils-DXkj82sK.js";
20
20
  import { t as Ht } from "./invariant-DLmrl-hA.js";
21
21
  import { t as Ut } from "./objects-DCmMvZtn.js";
22
- import { t as Wt } from "./createReducer-DePYJ0F3.js";
23
- import { Ct as Gt, Dt as Kt, Et as L, F as qt, H as Jt, I as Yt, Lt as Xt, Ot as Zt, Q as Qt, R as $t, S as en, St as tn, U as nn, V as R, Wt as rn, _t as an, a as z, b as on, bt as sn, c as cn, dt as ln, kt as un, nt as dn, o as fn, ot as pn, pt as mn, rt as hn, ut as gn, v as _n, vt as vn, yt as yn, z as bn } from "./dist-CYeqK4Xw.js";
24
- import { c as xn, m as Sn, r as Cn } from "./static-state-BldGd99T.js";
25
- import { C as wn, I as Tn, M as En, N as Dn, O as On, R as kn, S as An } from "./schemas-CdscWNy_.js";
26
- import { a as jn, c as Mn, f as Nn, l as Pn, o as Fn, r as In } from "./objectWithoutPropertiesLoose-ai5NUqGa.js";
27
- import { i as Ln, n as Rn } from "./arrays-DoQ-AILx.js";
28
- import { n as zn } from "./once-NnpX_HnX.js";
29
- import { d as Bn, n as Vn, r as Hn, u as Un } from "./dist-BX1mn8na.js";
30
- import { n as Wn, r as Gn } from "./dist-DiLFTlnl.js";
31
- import { a as Kn, i as qn, n as Jn, o as Yn, r as Xn } from "./dist-DU9ICsWZ.js";
32
- import { n as Zn } from "./stex-Btf3omL8.js";
33
- import { a as Qn, c as $n, d as er, f as tr, i as nr, l as rr, n as ir, o as ar, p as or, r as sr, s as cr, t as lr } from "./dist-B8pkfkzc.js";
34
- import { t as ur } from "./useAsyncData-DsZMvNXn.js";
22
+ import { t as Wt } from "./createReducer-Bx81cw8_.js";
23
+ import { Ct as Gt, Dt as Kt, Et as L, F as qt, H as Jt, I as Yt, Lt as Xt, Ot as Zt, Q as Qt, R as $t, S as en, St as tn, U as nn, V as R, W as rn, Wt as an, _t as on, a as z, b as sn, bt as cn, c as ln, dt as un, kt as dn, nt as fn, o as pn, ot as mn, pt as hn, rt as gn, ut as _n, v as vn, vt as yn, yt as bn, z as xn } from "./dist-CYeqK4Xw.js";
24
+ import { c as Sn, m as Cn, r as wn } from "./static-state-BldGd99T.js";
25
+ import { C as Tn, I as En, M as Dn, N as On, O as kn, R as An, S as jn } from "./schemas-CdscWNy_.js";
26
+ import { a as Mn, c as Nn, f as Pn, l as Fn, o as In, r as Ln } from "./objectWithoutPropertiesLoose-ai5NUqGa.js";
27
+ import { i as Rn, n as zn } from "./arrays-DoQ-AILx.js";
28
+ import { n as Bn } from "./once-NnpX_HnX.js";
29
+ import { d as Vn, n as Hn, r as Un, u as Wn } from "./dist-BX1mn8na.js";
30
+ import { n as Gn, r as Kn } from "./dist-DiLFTlnl.js";
31
+ import { a as qn, i as Jn, n as Yn, o as Xn, r as Zn } from "./dist-DU9ICsWZ.js";
32
+ import { n as Qn } from "./stex-Btf3omL8.js";
33
+ import { a as $n, c as er, d as tr, f as nr, i as rr, l as ir, n as ar, o as or, p as sr, r as cr, s as lr, t as ur } from "./dist-B8pkfkzc.js";
34
+ import { t as dr } from "./useAsyncData-DsZMvNXn.js";
35
35
  //#region ../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
36
- var dr = /* @__PURE__ */ i(((e) => {
36
+ var fr = /* @__PURE__ */ i(((e) => {
37
37
  Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
38
38
  var t;
39
39
  (function(e) {
@@ -43,7 +43,7 @@ var dr = /* @__PURE__ */ i(((e) => {
43
43
  return e.type === t.Tag || e.type === t.Script || e.type === t.Style;
44
44
  }
45
45
  e.isTag = n, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
46
- })), fr = /* @__PURE__ */ i(((e) => {
46
+ })), pr = /* @__PURE__ */ i(((e) => {
47
47
  var t = e && e.__extends || (function() {
48
48
  var e = function(t, n) {
49
49
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
@@ -67,7 +67,7 @@ var dr = /* @__PURE__ */ i(((e) => {
67
67
  }, n.apply(this, arguments);
68
68
  };
69
69
  Object.defineProperty(e, "__esModule", { value: !0 }), e.cloneNode = e.hasChildren = e.isDocument = e.isDirective = e.isComment = e.isText = e.isCDATA = e.isTag = e.Element = e.Document = e.CDATA = e.NodeWithChildren = e.ProcessingInstruction = e.Comment = e.Text = e.DataNode = e.Node = void 0;
70
- var r = dr(), i = function() {
70
+ var r = fr(), i = function() {
71
71
  function e() {
72
72
  this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
73
73
  }
@@ -326,7 +326,7 @@ var dr = /* @__PURE__ */ i(((e) => {
326
326
  }), n = 1; n < t.length; n++) t[n].prev = t[n - 1], t[n - 1].next = t[n];
327
327
  return t;
328
328
  }
329
- })), pr = /* @__PURE__ */ i(((e) => {
329
+ })), mr = /* @__PURE__ */ i(((e) => {
330
330
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
331
331
  r === void 0 && (r = n);
332
332
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -342,8 +342,8 @@ var dr = /* @__PURE__ */ i(((e) => {
342
342
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
343
343
  };
344
344
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
345
- var r = dr(), i = fr();
346
- n(fr(), e);
345
+ var r = fr(), i = pr();
346
+ n(pr(), e);
347
347
  var a = {
348
348
  withStartIndices: !1,
349
349
  withEndIndices: !1,
@@ -400,13 +400,13 @@ var dr = /* @__PURE__ */ i(((e) => {
400
400
  }, e;
401
401
  }();
402
402
  e.DomHandler = o, e.default = o;
403
- })), mr = /* @__PURE__ */ i(((e) => {
403
+ })), hr = /* @__PURE__ */ i(((e) => {
404
404
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = e.CARRIAGE_RETURN_PLACEHOLDER = e.CARRIAGE_RETURN_REGEX = e.CARRIAGE_RETURN = e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = /* @__PURE__ */ "animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath".split("."), e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(e, t) {
405
405
  return e[t.toLowerCase()] = t, e;
406
406
  }, {}), e.CARRIAGE_RETURN = "\r", e.CARRIAGE_RETURN_REGEX = new RegExp(e.CARRIAGE_RETURN, "g"), e.CARRIAGE_RETURN_PLACEHOLDER = `__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`, e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER, "g");
407
- })), hr = /* @__PURE__ */ i(((e) => {
407
+ })), gr = /* @__PURE__ */ i(((e) => {
408
408
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatAttributes = i, e.hasOpenTag = o, e.escapeSpecialCharacters = s, e.revertEscapedCharacters = c, e.formatDOM = l;
409
- var t = pr(), n = mr();
409
+ var t = mr(), n = hr();
410
410
  function r(e) {
411
411
  return n.CASE_SENSITIVE_TAG_NAMES_MAP[e];
412
412
  }
@@ -454,9 +454,9 @@ var dr = /* @__PURE__ */ i(((e) => {
454
454
  }
455
455
  return r && (s = new t.ProcessingInstruction(r.substring(0, r.indexOf(" ")).toLowerCase(), r), s.next = o[0] ?? null, s.parent = n, o.unshift(s), o[1] && (o[1].prev = o[0])), o;
456
456
  }
457
- })), gr = /* @__PURE__ */ i(((e) => {
457
+ })), _r = /* @__PURE__ */ i(((e) => {
458
458
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = h;
459
- var t = hr(), n = "html", r = "head", i = "body", a = /<([a-zA-Z]+[0-9]?)/, o = function(e, t) {
459
+ var t = gr(), n = "html", r = "head", i = "body", a = /<([a-zA-Z]+[0-9]?)/, o = function(e, t) {
460
460
  throw Error("This browser does not support `document.implementation.createHTMLDocument`");
461
461
  }, s = function(e, t) {
462
462
  throw Error("This browser does not support `DOMParser.prototype.parseFromString`");
@@ -515,19 +515,19 @@ var dr = /* @__PURE__ */ i(((e) => {
515
515
  return f?.childNodes ?? m();
516
516
  }
517
517
  }
518
- })), _r = /* @__PURE__ */ i(((e) => {
518
+ })), vr = /* @__PURE__ */ i(((e) => {
519
519
  var t = e && e.__importDefault || function(e) {
520
520
  return e && e.__esModule ? e : { default: e };
521
521
  };
522
522
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = a;
523
- var n = t(gr()), r = hr(), i = /<(![a-zA-Z\s]+)>/;
523
+ var n = t(_r()), r = gr(), i = /<(![a-zA-Z\s]+)>/;
524
524
  function a(e) {
525
525
  if (typeof e != "string") throw TypeError("First argument must be a string");
526
526
  if (!e) return [];
527
527
  var t = i.exec(e), a = t ? t[1] : void 0;
528
528
  return (0, r.formatDOM)((0, n.default)(e), null, a);
529
529
  }
530
- })), vr = /* @__PURE__ */ i(((e) => {
530
+ })), yr = /* @__PURE__ */ i(((e) => {
531
531
  e.SAME = 0, e.CAMELCASE = 1, e.possibleStandardNames = {
532
532
  accept: 0,
533
533
  acceptCharset: 1,
@@ -1013,7 +1013,7 @@ var dr = /* @__PURE__ */ i(((e) => {
1013
1013
  z: 0,
1014
1014
  zoomAndPan: 1
1015
1015
  };
1016
- })), yr = /* @__PURE__ */ i(((e) => {
1016
+ })), br = /* @__PURE__ */ i(((e) => {
1017
1017
  var t = 0, n = 1, r = 2, i = 3, a = 4, o = 5, s = 6;
1018
1018
  function c(e) {
1019
1019
  return u.hasOwnProperty(e) ? u[e] : null;
@@ -1132,12 +1132,12 @@ var dr = /* @__PURE__ */ i(((e) => {
1132
1132
  ].forEach((e) => {
1133
1133
  u[e] = new l(e, n, !1, e.toLowerCase(), null, !0, !0);
1134
1134
  });
1135
- var { CAMELCASE: m, SAME: h, possibleStandardNames: g } = vr(), _ = RegExp.prototype.test.bind(/* @__PURE__ */ RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")), v = Object.keys(g).reduce((e, t) => {
1135
+ var { CAMELCASE: m, SAME: h, possibleStandardNames: g } = yr(), _ = RegExp.prototype.test.bind(/* @__PURE__ */ RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")), v = Object.keys(g).reduce((e, t) => {
1136
1136
  let n = g[t];
1137
1137
  return n === h ? e[t] = t : n === m ? e[t.toLowerCase()] = t : e[t] = n, e;
1138
1138
  }, {});
1139
1139
  e.BOOLEAN = i, e.BOOLEANISH_STRING = r, e.NUMERIC = o, e.OVERLOADED_BOOLEAN = a, e.POSITIVE_NUMERIC = s, e.RESERVED = t, e.STRING = n, e.getPropertyInfo = c, e.isCustomAttribute = _, e.possibleStandardNames = v;
1140
- })), br = /* @__PURE__ */ i(((e) => {
1140
+ })), xr = /* @__PURE__ */ i(((e) => {
1141
1141
  var t = e && e.__importDefault || function(e) {
1142
1142
  return e && e.__esModule ? e : { default: e };
1143
1143
  };
@@ -1184,9 +1184,9 @@ var dr = /* @__PURE__ */ i(((e) => {
1184
1184
  }, e.returnFirstArg = function(e) {
1185
1185
  return e;
1186
1186
  };
1187
- })), xr = /* @__PURE__ */ i(((e) => {
1187
+ })), Sr = /* @__PURE__ */ i(((e) => {
1188
1188
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = o;
1189
- var t = yr(), n = br(), r = ["checked", "value"], i = [
1189
+ var t = br(), n = xr(), r = ["checked", "value"], i = [
1190
1190
  "input",
1191
1191
  "select",
1192
1192
  "textarea"
@@ -1221,12 +1221,12 @@ var dr = /* @__PURE__ */ i(((e) => {
1221
1221
  function s(e) {
1222
1222
  return t.possibleStandardNames[e];
1223
1223
  }
1224
- })), Sr = /* @__PURE__ */ i(((e) => {
1224
+ })), Cr = /* @__PURE__ */ i(((e) => {
1225
1225
  var t = e && e.__importDefault || function(e) {
1226
1226
  return e && e.__esModule ? e : { default: e };
1227
1227
  };
1228
1228
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = o;
1229
- var n = f(), r = t(xr()), i = br(), a = {
1229
+ var n = f(), r = t(Sr()), i = xr(), a = {
1230
1230
  cloneElement: n.cloneElement,
1231
1231
  createElement: n.createElement,
1232
1232
  isValidElement: n.isValidElement
@@ -1268,16 +1268,16 @@ var dr = /* @__PURE__ */ i(((e) => {
1268
1268
  function s(e) {
1269
1269
  return i.PRESERVE_CUSTOM_ATTRIBUTES && e.type === "tag" && (0, i.isCustomComponent)(e.name, e.attribs);
1270
1270
  }
1271
- })), Cr = /* @__PURE__ */ i(((e) => {
1271
+ })), wr = /* @__PURE__ */ i(((e) => {
1272
1272
  var t = e && e.__importDefault || function(e) {
1273
1273
  return e && e.__esModule ? e : { default: e };
1274
1274
  };
1275
1275
  Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = o;
1276
- var n = t(_r());
1277
- e.htmlToDOM = n.default, e.attributesToProps = t(xr()).default;
1278
- var r = t(Sr());
1276
+ var n = t(vr());
1277
+ e.htmlToDOM = n.default, e.attributesToProps = t(Sr()).default;
1278
+ var r = t(Cr());
1279
1279
  e.domToReact = r.default;
1280
- var i = pr();
1280
+ var i = mr();
1281
1281
  Object.defineProperty(e, "Comment", {
1282
1282
  enumerable: !0,
1283
1283
  get: function() {
@@ -1304,31 +1304,10 @@ var dr = /* @__PURE__ */ i(((e) => {
1304
1304
  if (typeof e != "string") throw TypeError("First argument must be a string");
1305
1305
  return e ? (0, r.default)((0, n.default)(e, t?.htmlparser2 ?? a), t) : [];
1306
1306
  }
1307
- })), B = /* @__PURE__ */ e(f(), 1), V = p(), wr = /* @__PURE__ */ e(Cr(), 1), Tr = wr.default.default || wr.default, Er = T("activity", [["path", {
1307
+ })), B = /* @__PURE__ */ e(f(), 1), V = p(), Tr = /* @__PURE__ */ e(wr(), 1), Er = Tr.default.default || Tr.default, Dr = T("activity", [["path", {
1308
1308
  d: "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",
1309
1309
  key: "169zse"
1310
- }]]), Dr = T("between-horizontal-start", [
1311
- ["rect", {
1312
- width: "13",
1313
- height: "7",
1314
- x: "8",
1315
- y: "3",
1316
- rx: "1",
1317
- key: "pkso9a"
1318
- }],
1319
- ["path", {
1320
- d: "m2 9 3 3-3 3",
1321
- key: "1agib5"
1322
- }],
1323
- ["rect", {
1324
- width: "13",
1325
- height: "7",
1326
- x: "8",
1327
- y: "14",
1328
- rx: "1",
1329
- key: "1q5fc1"
1330
- }]
1331
- ]), Or = T("book-marked", [["path", {
1310
+ }]]), Or = T("book-marked", [["path", {
1332
1311
  d: "M10 2v8l3-3 3 3V2",
1333
1312
  key: "sqw3rj"
1334
1313
  }], ["path", {
@@ -2396,7 +2375,7 @@ var Oa = (e) => {
2396
2375
  ...i,
2397
2376
  children: n
2398
2377
  }), t[10] = n, t[11] = d, t[12] = r, t[13] = l, t[14] = i, t[15] = f) : f = t[15], f;
2399
- }, ka = sn.define({ combine: (e) => e[0] }), Aa = sn.define({ combine: (e) => e[0] });
2378
+ }, ka = cn.define({ combine: (e) => e[0] }), Aa = cn.define({ combine: (e) => e[0] });
2400
2379
  //#endregion
2401
2380
  //#region src/utils/math.ts
2402
2381
  function ja(e, t, n) {
@@ -2405,7 +2384,7 @@ function ja(e, t, n) {
2405
2384
  //#endregion
2406
2385
  //#region src/core/codemirror/facet.ts
2407
2386
  function Ma() {
2408
- return sn.define({ combine: (e) => e.find((e) => e !== void 0) });
2387
+ return cn.define({ combine: (e) => e.find((e) => e !== void 0) });
2409
2388
  }
2410
2389
  //#endregion
2411
2390
  //#region src/core/codemirror/config/extension.ts
@@ -3348,7 +3327,7 @@ var Na = Ma(), Pa = Ma(), Fa = Ma(), Ia = Ma(), La = Ma(), Ra = /* @__PURE__ */
3348
3327
  });
3349
3328
  }
3350
3329
  function rn(e, t, n, r, i, a, o, s) {
3351
- e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Zt(t)) : e.value !== "" + Zt(t) && (e.value = "" + Zt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : z(e, Zt(n)) : o === "number" && e.value == t ? z(e, Zt(e.value)) : z(e, Zt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Zt(s) : e.removeAttribute("name");
3330
+ e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Zt(t)) : e.value !== "" + Zt(t) && (e.value = "" + Zt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : on(e, Zt(n)) : o === "number" && e.value == t ? on(e, Zt(e.value)) : on(e, Zt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Zt(s) : e.removeAttribute("name");
3352
3331
  }
3353
3332
  function an(e, t, n, r, i, a, o, s) {
3354
3333
  if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {
@@ -3360,10 +3339,10 @@ var Na = Ma(), Pa = Ma(), Fa = Ma(), Ia = Ma(), La = Ma(), Ra = /* @__PURE__ */
3360
3339
  }
3361
3340
  r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), en(e);
3362
3341
  }
3363
- function z(e, t) {
3342
+ function on(e, t) {
3364
3343
  e.defaultValue !== "" + t && (e.defaultValue = "" + t);
3365
3344
  }
3366
- function on(e, t, n, r) {
3345
+ function z(e, t, n, r) {
3367
3346
  if (e = e.options, t) {
3368
3347
  t = {};
3369
3348
  for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;
@@ -3548,7 +3527,7 @@ var Na = Ma(), Pa = Ma(), Fa = Ma(), Ia = Ma(), La = Ma(), Ra = /* @__PURE__ */
3548
3527
  case "textarea":
3549
3528
  sn(e, n.value, n.defaultValue);
3550
3529
  break a;
3551
- case "select": t = n.value, t != null && on(e, !!n.multiple, t, !1);
3530
+ case "select": t = n.value, t != null && z(e, !!n.multiple, t, !1);
3552
3531
  }
3553
3532
  }
3554
3533
  }
@@ -3873,8 +3852,8 @@ var Na = Ma(), Pa = Ma(), Fa = Ma(), Ia = Ma(), La = Ma(), Ra = /* @__PURE__ */
3873
3852
  listeners: t
3874
3853
  }));
3875
3854
  }
3876
- var B = null, V = null;
3877
- function wr(e) {
3855
+ var wr = null, B = null;
3856
+ function V(e) {
3878
3857
  Vf(e, 0);
3879
3858
  }
3880
3859
  function Tr(e) {
@@ -3897,19 +3876,19 @@ var Na = Ma(), Pa = Ma(), Fa = Ma(), Ia = Ma(), La = Ma(), Ra = /* @__PURE__ */
3897
3876
  Dr = Or && (!document.documentMode || 9 < document.documentMode);
3898
3877
  }
3899
3878
  function jr() {
3900
- B && (B.detachEvent("onpropertychange", Mr), V = B = null);
3879
+ wr && (wr.detachEvent("onpropertychange", Mr), B = wr = null);
3901
3880
  }
3902
3881
  function Mr(e) {
3903
- if (e.propertyName === "value" && Tr(V)) {
3882
+ if (e.propertyName === "value" && Tr(B)) {
3904
3883
  var t = [];
3905
- Cr(t, V, e, yn(e)), wn(wr, t);
3884
+ Cr(t, B, e, yn(e)), wn(V, t);
3906
3885
  }
3907
3886
  }
3908
3887
  function Nr(e, t, n) {
3909
- e === "focusin" ? (jr(), B = t, V = n, B.attachEvent("onpropertychange", Mr)) : e === "focusout" && jr();
3888
+ e === "focusin" ? (jr(), wr = t, B = n, wr.attachEvent("onpropertychange", Mr)) : e === "focusout" && jr();
3910
3889
  }
3911
3890
  function Pr(e) {
3912
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return Tr(V);
3891
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return Tr(B);
3913
3892
  }
3914
3893
  function Fr(e, t) {
3915
3894
  if (e === "click") return Tr(t);
@@ -9290,7 +9269,7 @@ var Na = Ma(), Pa = Ma(), Fa = Ma(), Ia = Ma(), La = Ma(), Ra = /* @__PURE__ */
9290
9269
  case "multiple": r = c;
9291
9270
  default: $(e, t, a, c, n, null);
9292
9271
  }
9293
- t = o, n = s, e.multiple = !!r, t == null ? n != null && on(e, !!r, n, !0) : on(e, !!r, t, !1);
9272
+ t = o, n = s, e.multiple = !!r, t == null ? n != null && z(e, !!r, n, !0) : z(e, !!r, t, !1);
9294
9273
  return;
9295
9274
  case "textarea":
9296
9275
  for (s in Q("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
@@ -9430,7 +9409,7 @@ var Na = Ma(), Pa = Ma(), Fa = Ma(), Ia = Ma(), La = Ma(), Ra = /* @__PURE__ */
9430
9409
  case "multiple": o !== l && (L = !0), s = o;
9431
9410
  default: o !== l && $(e, t, a, o, r, l);
9432
9411
  }
9433
- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? on(e, !!n, n ? [] : "", !1) : on(e, !!n, t, !0)) : on(e, !!n, p, !1);
9412
+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? z(e, !!n, n ? [] : "", !1) : z(e, !!n, t, !0)) : z(e, !!n, p, !1);
9434
9413
  return;
9435
9414
  case "textarea":
9436
9415
  for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
@@ -11055,7 +11034,7 @@ function Ua(e, t) {
11055
11034
  //#endregion
11056
11035
  //#region ../node_modules/.pnpm/@codemirror+language-data@6.5.2/node_modules/@codemirror/language-data/dist/index.js
11057
11036
  function W(e) {
11058
- return new fn(cn.define(e));
11037
+ return new pn(ln.define(e));
11059
11038
  }
11060
11039
  function Wa(e) {
11061
11040
  return import("./dist-B8pkfkzc.js").then((e) => e.u).then((t) => t.sql({ dialect: t[e] }));
@@ -12391,7 +12370,7 @@ function mo(e) {
12391
12370
  //#endregion
12392
12371
  //#region ../packages/smart-cells/src/utils/python-ast.ts
12393
12372
  function ho(e) {
12394
- return Yn.parse(e);
12373
+ return Xn.parse(e);
12395
12374
  }
12396
12375
  var go = /* @__PURE__ */ new Set([
12397
12376
  "(",
@@ -12525,7 +12504,7 @@ var Do = class {
12525
12504
  if (e = e.trim(), e === "") return !0;
12526
12505
  if (!e.startsWith("mo.md(")) return !1;
12527
12506
  if (e === "mo.md()") return !0;
12528
- let t = Kn.parser.parse(e), n = [
12507
+ let t = qn.parser.parse(e), n = [
12529
12508
  { match: "Script" },
12530
12509
  { match: "ExpressionStatement" },
12531
12510
  { match: "CallExpression" },
@@ -12817,7 +12796,7 @@ var Uo = Rt(() => Ne), Wo = [
12817
12796
  type: "ai",
12818
12797
  Icon: kr,
12819
12798
  label: "AI",
12820
- tooltip: "Chat & Agents",
12799
+ tooltip: "Chat",
12821
12800
  defaultSection: "sidebar",
12822
12801
  additionalKeywords: [
12823
12802
  "chat",
@@ -12879,7 +12858,7 @@ var Uo = Rt(() => Ne), Wo = [
12879
12858
  },
12880
12859
  {
12881
12860
  type: "tracing",
12882
- Icon: Er,
12861
+ Icon: Dr,
12883
12862
  label: "Tracing",
12884
12863
  tooltip: "View tracing",
12885
12864
  defaultSection: "developer-panel",
@@ -12891,7 +12870,7 @@ var Uo = Rt(() => Ne), Wo = [
12891
12870
  label: "Secrets",
12892
12871
  tooltip: "Manage secrets",
12893
12872
  defaultSection: "developer-panel",
12894
- hidden: Sn(),
12873
+ hidden: Cn(),
12895
12874
  additionalKeywords: [
12896
12875
  "env",
12897
12876
  "environment",
@@ -12912,7 +12891,7 @@ var Uo = Rt(() => Ne), Wo = [
12912
12891
  Icon: ni,
12913
12892
  label: "Terminal",
12914
12893
  tooltip: "Terminal",
12915
- hidden: Sn(),
12894
+ hidden: Cn(),
12916
12895
  defaultSection: "developer-panel",
12917
12896
  requiredCapability: "terminal",
12918
12897
  additionalKeywords: [
@@ -12962,11 +12941,11 @@ function Yo(e) {
12962
12941
  let t = F.get(Jo);
12963
12942
  return t.sidebar.includes(e) ? "sidebar" : t.developerPanel.includes(e) ? "developer-panel" : null;
12964
12943
  }
12965
- var Xo = "marimo:sidebar", Zo = new Se(Dn({
12966
- selectedPanel: Tn().optional().transform((e) => e),
12967
- isSidebarOpen: wn(),
12968
- isDeveloperPanelOpen: wn().optional().default(!1),
12969
- selectedDeveloperPanelTab: Tn().optional().default("errors").transform((e) => e)
12944
+ var Xo = "marimo:sidebar", Zo = new Se(On({
12945
+ selectedPanel: En().optional().transform((e) => e),
12946
+ isSidebarOpen: Tn(),
12947
+ isDeveloperPanelOpen: Tn().optional().default(!1),
12948
+ selectedDeveloperPanelTab: En().optional().default("errors").transform((e) => e)
12970
12949
  }), Qo);
12971
12950
  function Qo() {
12972
12951
  return {
@@ -13035,12 +13014,12 @@ function as(e) {
13035
13014
  }
13036
13015
  //#endregion
13037
13016
  //#region src/core/documentation/state.ts
13038
- var os = I({ documentation: null }), ss = bn.mark({ class: "mo-cm-reactive-reference" });
13039
- bn.mark({ class: "mo-cm-reactive-reference-hover" });
13017
+ var os = I({ documentation: null }), ss = xn.mark({ class: "mo-cm-reactive-reference" });
13018
+ xn.mark({ class: "mo-cm-reactive-reference-hover" });
13040
13019
  var cs = L.define(), ls = Kt.define({
13041
13020
  create() {
13042
13021
  return {
13043
- decorations: bn.none,
13022
+ decorations: xn.none,
13044
13023
  ranges: []
13045
13024
  };
13046
13025
  },
@@ -13050,7 +13029,7 @@ var cs = L.define(), ls = Kt.define({
13050
13029
  ranges: e.ranges
13051
13030
  };
13052
13031
  for (let e of t.effects) e.is(cs) && (n = {
13053
- decorations: bn.set(e.value.map((e) => ss.range(e.from, e.to))),
13032
+ decorations: xn.set(e.value.map((e) => ss.range(e.from, e.to))),
13054
13033
  ranges: e.value
13055
13034
  });
13056
13035
  return n;
@@ -18297,11 +18276,11 @@ function $u(e, t) {
18297
18276
  n.dispatch({ changes: r }), e = r.mapPos(e, 1), t = r.mapPos(t, 1);
18298
18277
  }
18299
18278
  let r = n.state.doc.length;
18300
- Bn(Z(f))(n, null, e, t), h(n.state.doc.length - r + (t - e));
18279
+ Vn(Z(f))(n, null, e, t), h(n.state.doc.length - r + (t - e));
18301
18280
  return;
18302
18281
  }
18303
18282
  if (c === Ku.Snippet && (f = Qu(f)), m.length === 0) {
18304
- n.dispatch(Un(o, f, l, u)), h(f.length);
18283
+ n.dispatch(Wn(o, f, l, u)), h(f.length);
18305
18284
  return;
18306
18285
  }
18307
18286
  let g = o.changes([{
@@ -18385,12 +18364,12 @@ function ld(e) {
18385
18364
  return !1;
18386
18365
  }
18387
18366
  }
18388
- var ud = sn.define({ combine(e) {
18367
+ var ud = cn.define({ combine(e) {
18389
18368
  if (e.length === 0) return sd(e);
18390
18369
  let t = sd(e);
18391
18370
  if (!(t && ld(t))) throw Error("Document URI must be a non-empty absolute URI");
18392
18371
  return t;
18393
- } }), dd = sn.define({ combine(e) {
18372
+ } }), dd = cn.define({ combine(e) {
18394
18373
  if (e.length === 0) return cd(e);
18395
18374
  let t = cd(e);
18396
18375
  if (!t.trim()) throw Error("Language ID must be a non-empty string");
@@ -18990,8 +18969,8 @@ var jd = L.define(), Md = Kt.define({
18990
18969
  }
18991
18970
  return e;
18992
18971
  },
18993
- provide: (e) => ln.from(e)
18994
- }), Fd = mn.define(), Id = 20, Ld = /* @__PURE__ */ new WeakMap();
18972
+ provide: (e) => un.from(e)
18973
+ }), Fd = hn.define(), Id = 20, Ld = /* @__PURE__ */ new WeakMap();
18995
18974
  function Rd(e, t) {
18996
18975
  let n = Ld.get(e);
18997
18976
  n ? n.push(t) : Ld.set(e, [t]);
@@ -19303,14 +19282,14 @@ var Bd = class {
19303
19282
  }
19304
19283
  setOwnDiagnostics(e, t = /* @__PURE__ */ new Map()) {
19305
19284
  let n = this.view.state, r = [];
19306
- In(n, (e, t, n) => {
19285
+ Ln(n, (e, t, n) => {
19307
19286
  this.ownsDiagnostic(e) || r.push({
19308
19287
  ...e,
19309
19288
  from: t,
19310
19289
  to: n
19311
19290
  });
19312
19291
  });
19313
- let i = Fn(n, [...r, ...e]), a = i.effects, o = Array.isArray(a) ? [...a] : a ? [a] : [];
19292
+ let i = In(n, [...r, ...e]), a = i.effects, o = Array.isArray(a) ? [...a] : a ? [a] : [];
19314
19293
  o.push(jd.of({
19315
19294
  pluginId: this.pluginId,
19316
19295
  anchors: t
@@ -19428,7 +19407,7 @@ var Bd = class {
19428
19407
  info: uu.DiagnosticSeverity.Information,
19429
19408
  hint: uu.DiagnosticSeverity.Hint
19430
19409
  }, o = [];
19431
- return In(e.state, (e, t, s) => {
19410
+ return Ln(e.state, (e, t, s) => {
19432
19411
  if (t > i || s < r) return;
19433
19412
  let c = {
19434
19413
  start: fu(n, t),
@@ -19830,7 +19809,7 @@ function Vd(e) {
19830
19809
  display: "inline-block",
19831
19810
  marginTop: "4px"
19832
19811
  }
19833
- })), o.push(hn.of([
19812
+ })), o.push(gn.of([
19834
19813
  {
19835
19814
  key: t.signatureHelp,
19836
19815
  run: (e) => {
@@ -19865,13 +19844,13 @@ function Vd(e) {
19865
19844
  return t.requestDefinition(e, fu(e.state.doc, n)).catch((t) => J(e, `Go to definition failed: ${t instanceof Error ? t.message : "Unknown error"}`)), !0;
19866
19845
  }
19867
19846
  }
19868
- ])), r.hoverEnabled && o.push(dn((e, t) => {
19847
+ ])), r.hoverEnabled && o.push(fn((e, t) => {
19869
19848
  let n = a(e);
19870
19849
  return n == null ? null : n.requestHoverTooltip(e, fu(e.state.doc, t));
19871
19850
  }, e.hoverConfig)), r.signatureHelpEnabled) {
19872
19851
  o.push(Pd);
19873
19852
  let e = (e) => e.state.field(Pd) ? (e.dispatch({ effects: Nd.of(null) }), !0) : !1;
19874
- o.push(R.domEventHandlers({ mousedown: (t, n) => (e(n), !1) })), o.push(hn.of([{
19853
+ o.push(R.domEventHandlers({ mousedown: (t, n) => (e(n), !1) })), o.push(gn.of([{
19875
19854
  key: ")",
19876
19855
  run: (t) => (e(t), !1)
19877
19856
  }, {
@@ -19896,7 +19875,7 @@ function Vd(e) {
19896
19875
  }
19897
19876
  if (r.completionEnabled) {
19898
19877
  let t = e.completionConfig?.optionClass;
19899
- o.push(R.baseTheme({ ".cm-tooltip-autocomplete li.cm-deprecated .cm-completionLabel": { textDecoration: "line-through" } }), Hn({
19878
+ o.push(R.baseTheme({ ".cm-tooltip-autocomplete li.cm-deprecated .cm-completionLabel": { textDecoration: "line-through" } }), Un({
19900
19879
  ...e.completionConfig,
19901
19880
  optionClass: (e) => [zu(e), t?.(e) ?? ""].filter(Boolean).join(" "),
19902
19881
  override: [async (t) => {
@@ -20176,7 +20155,7 @@ function nf(e, t, n = {}) {
20176
20155
  }
20177
20156
  //#endregion
20178
20157
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-sql@0.3.0_@codemirror+autocomplete@6.20.3_@codemirror+lint@6.9._ea1055731b2d7fd34c5d3340d30da00f/node_modules/@marimo-team/codemirror-sql/dist/sql/schema-facet.js
20179
- var rf = sn.define({ combine: (e) => e[0] ?? null });
20158
+ var rf = cn.define({ combine: (e) => e[0] ?? null });
20180
20159
  function af(e, t) {
20181
20160
  let n = e ?? t.state.facet(rf);
20182
20161
  return n == null ? null : typeof n == "function" ? n(t) : n;
@@ -21109,7 +21088,7 @@ function gp(e, t, n) {
21109
21088
  };
21110
21089
  }
21111
21090
  function _p(e = {}) {
21112
- return jn(vp(e), { delay: e.delay || pp });
21091
+ return Mn(vp(e), { delay: e.delay || pp });
21113
21092
  }
21114
21093
  function vp(e = {}) {
21115
21094
  let t = e.parser || new df(), n = e.perStatement !== !1, r = e.structureAnalyzer || new Rf(t);
@@ -21206,7 +21185,7 @@ function bp(e = {}) {
21206
21185
  }
21207
21186
  function xp(e = {}) {
21208
21187
  let { hoverTime: t = 300 } = e;
21209
- return dn(bp(e), { hoverTime: t });
21188
+ return fn(bp(e), { hoverTime: t });
21210
21189
  }
21211
21190
  function Sp(e) {
21212
21191
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
@@ -21437,12 +21416,12 @@ var jp = R.baseTheme({
21437
21416
  textDecoration: "underline",
21438
21417
  cursor: "pointer"
21439
21418
  }
21440
- }), Mp = bn.mark({ class: "cm-sqlReference" }), Np = bn.mark({ class: "cm-sqlReference cm-sqlDefinition" }), Pp = bn.mark({ class: "cm-sqlGotoTarget" });
21419
+ }), Mp = xn.mark({ class: "cm-sqlReference" }), Np = xn.mark({ class: "cm-sqlReference cm-sqlDefinition" }), Pp = xn.mark({ class: "cm-sqlGotoTarget" });
21441
21420
  function Fp(e) {
21442
- return bn.set(e.references.map((t) => (t.from === e.definition.from ? Np : Mp).range(t.from, t.to)), !0);
21421
+ return xn.set(e.references.map((t) => (t.from === e.definition.from ? Np : Mp).range(t.from, t.to)), !0);
21443
21422
  }
21444
21423
  var Ip = L.define(), Lp = Kt.define({
21445
- create: () => bn.none,
21424
+ create: () => xn.none,
21446
21425
  update(e, t) {
21447
21426
  for (let e of t.effects) if (e.is(Ip)) return e.value;
21448
21427
  return t.docChanged ? e.map(t.changes) : e;
@@ -21469,7 +21448,7 @@ function Rp(e = {}) {
21469
21448
  }, n);
21470
21449
  }
21471
21450
  async run() {
21472
- let e = this.generation, n = this.view.state, r = n.selection.main, i = bn.none;
21451
+ let e = this.generation, n = this.view.state, r = n.selection.main, i = xn.none;
21473
21452
  if (r.empty) try {
21474
21453
  let e = await t.resolve(n, r.head);
21475
21454
  e && (i = Fp(e));
@@ -21497,7 +21476,7 @@ async function zp(e, t, n = {}) {
21497
21476
  }), !0);
21498
21477
  }
21499
21478
  var Bp = L.define(), Vp = Kt.define({
21500
- create: () => bn.none,
21479
+ create: () => xn.none,
21501
21480
  update(e, t) {
21502
21481
  for (let e of t.effects) if (e.is(Bp)) return e.value;
21503
21482
  return t.docChanged ? e.map(t.changes) : e;
@@ -21524,7 +21503,7 @@ function Hp(e = {}) {
21524
21503
  if (this.hovered) {
21525
21504
  this.hovered = null;
21526
21505
  let e = this.view.state.field(Vp, !1);
21527
- e && e.size > 0 && this.view.dispatch({ effects: Bp.of(bn.none) });
21506
+ e && e.size > 0 && this.view.dispatch({ effects: Bp.of(xn.none) });
21528
21507
  }
21529
21508
  }
21530
21509
  async hover(e) {
@@ -21544,7 +21523,7 @@ function Hp(e = {}) {
21544
21523
  try {
21545
21524
  let a = await t.resolve(i, e);
21546
21525
  if (this.hovered !== r || this.view.state !== i) return;
21547
- r.result = a, this.view.dispatch({ effects: Bp.of(a ? bn.set([Pp.range(n.from, n.to)]) : bn.none) });
21526
+ r.result = a, this.view.dispatch({ effects: Bp.of(a ? xn.set([Pp.range(n.from, n.to)]) : xn.none) });
21548
21527
  } catch {}
21549
21528
  }
21550
21529
  destroy() {
@@ -21606,7 +21585,7 @@ function qp(e = {}) {
21606
21585
  ...e,
21607
21586
  resolver: Ap(e)
21608
21587
  }, n = e.gotoDefinitionKeys ?? ["F12", "Mod-b"], r = e.renameKey ?? "F2";
21609
- return hn.of([...n.map((e) => ({
21588
+ return gn.of([...n.map((e) => ({
21610
21589
  key: e,
21611
21590
  run: (e) => (zp(e, void 0, t), !0)
21612
21591
  })), {
@@ -21913,7 +21892,7 @@ function pm(e = {}) {
21913
21892
  };
21914
21893
  }
21915
21894
  function mm(e = {}) {
21916
- return jn(pm(e), { delay: e.delay || Yp });
21895
+ return Mn(pm(e), { delay: e.delay || Yp });
21917
21896
  }
21918
21897
  //#endregion
21919
21898
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-sql@0.3.0_@codemirror+autocomplete@6.20.3_@codemirror+lint@6.9._ea1055731b2d7fd34c5d3340d30da00f/node_modules/@marimo-team/codemirror-sql/dist/sql/structure-extension.js
@@ -22071,10 +22050,10 @@ function Tm(e = {}) {
22071
22050
  //#endregion
22072
22051
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-sql@0.3.0_@codemirror+autocomplete@6.20.3_@codemirror+lint@6.9._ea1055731b2d7fd34c5d3340d30da00f/node_modules/@marimo-team/codemirror-sql/dist/dialects/bigquery.js
22073
22052
  var Em = {
22074
- ...ar,
22053
+ ...or,
22075
22054
  caseInsensitiveIdentifiers: !0,
22076
22055
  identifierQuotes: "`"
22077
- }, Dm = cr.define(Em), Om = cr.define({
22056
+ }, Dm = lr.define(Em), Om = lr.define({
22078
22057
  doubleQuotedStrings: !1,
22079
22058
  hashComments: !1,
22080
22059
  spaceAfterDashes: !1,
@@ -22082,7 +22061,7 @@ var Em = {
22082
22061
  caseInsensitiveIdentifiers: !0,
22083
22062
  keywords: "abs access acos aes_decrypt aggregate all allocate allow alter analyze and any approx_count_distinct approx_percentile are array array_avg array_cat array_compact array_contains array_generate_range array_max array_max_cardinality array_min array_position array_remove array_remove_at array_size array_sum array_to_string arrow as ascii asensitive asin assign asymmetric at atan atan2 atomic authorization auto avg avoid base64 batch begin begin_frame begin_partition between bigint bin bin_pack binary binary_string bit bit_and bit_length bit_or bitwise_and bitwise_not bitwise_or bitwise_xor blob bool_and bool_or boolean both branch bround btrim by cache call called cardinality cascaded case cast catalog cbrt ceil ceiling change char char_length character character_length check chr classifier clob close cloud coalesce col_like collate collect column columns commit commits_older_than compute concat concat_ws condition connect constraint contains convert convert_from convert_replaceutf8 convert_timezone convert_to copy corr corresponding cos cosh cot count covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_date_utc current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cycle data databases datasets date date_add date_diff date_format date_part date_sub date_trunc datediff datetype day dayofmonth dayofweek dayofyear deallocate dec decimal declare dedupe_lookback_period default define degrees delete dense_rank deref describe deterministic dimensions disallow disconnect display distinct double drop dynamic e each element else empty empty_as_null encode end end-exec end_frame end_partition ends_with engine equals escape escape_char every except exec execute exists exp expire explain extend external extract factorial false fetch field field_delimiter file_format files filter first_value flatten float floor folder for foreign frame_row free from from_hex full function fusion geo_beyond geo_distance geo_nearby get global grant grants greatest group grouping groups hash hash64 having hex history hold hour identity if ilike imindir import in include indicator initcap initial inner inout insensitive insert instr int integer intersect intersection interval into is is_bigint is_int is_member is_substr is_utf8 is_varchar isdate isnumeric job join json_array json_arrayagg json_exists json_object json_objectagg json_query json_value lag language large last_day last_query_id last_value lateral lazy lcase lead leading least left length levenshtein like like_regex limit listagg ln local localsort localtime localtimestamp locate log log10 logs lower lpad lshift ltrim manifests map_keys map_values mask mask_first_n mask_hash mask_last_n mask_show_first_n mask_show_last_n masking match match_number match_recognize matches max max_file_size_mb maxdir md5 measures median member merge metadata method min min_file_size_mb min_input_files mindir minus minute missing mod modifies module monitor month months_between more multiset national natural nchar nclob ndv new next next_day no none normalize normalize_string not notification_provider notification_queue_reference now nth_value ntile null null_if nullif numeric nvl occurrences_regex octet_length of offset old older_than omit on one only open operate optimize or order orphan out outer over overlaps overlay ownership parameter parse_url partition partitions pattern per percent percent_rank percentile_cont percentile_disc period permute pi pivot pmod policy portion position position_regex pow power precedes precision prepare prev primary procedure project promotion qualify quarter query query_user quote quote_char radians random range rank raw reads real record_delimiter recursive ref reference references referencing reflection reflections refresh regex regexp_col_like regexp_extract regexp_like regexp_matches regexp_replace regexp_split regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxy regr_syy release remove rename repeat repeatstr replace reset result retain_last retain_last_commits retain_last_snapshots return returns reverse revoke rewrite right role rollback rollup round route row row_number rows rpad rshift rtrim running savepoint schemas scope scroll search second seek select sensitive session_user set sha sha1 sha256 sha512 show sign similar similar_to sin sinh size skip smallint snapshot snapshots snapshots_older_than some soundex specific specifictype split_part sql sqlexception sqlstate sqlwarning sqrt st_fromgeohash st_geohash start starts_with static statistics stddev stddev_pop stddev_samp stream string_binary strpos submultiset subset substr substring substring_index substring_regex succeeds sum symmetric system system_time system_user table tables tablesample tag tan tanh target_file_size_mb tblproperties then time time_format timestamp timestamp_format timestampadd timestampdiff timestamptype timezone_hour timezone_minute tinyint to to_char to_date to_hex to_number to_time to_timestamp toascii trailing transaction_timestamp translate translate_regex translation treat trigger trim trim_array trim_space true truncate typeof ucase uescape unbase64 unhex union unique unix_timestamp unknown unnest unpivot unset update upper upsert usage use user using vacuum value value_of values var_pop var_samp varbinary varchar varying versioning view views week weekofyear when whenever where width_bucket window with within without write xor year",
22084
22063
  types: "array bigint binary boolean char character date dec decimal double float int integer interval map numeric struct time timestamp uuid varbinary varchar variant"
22085
- }), km = cr.define({
22064
+ }), km = lr.define({
22086
22065
  charSetCasts: !0,
22087
22066
  doubleQuotedStrings: !1,
22088
22067
  unquotedBitLiterals: !0,
@@ -22102,20 +22081,20 @@ function Mm(e) {
22102
22081
  if (!jm(t)) return o.debug("Unknown dialect", { dialect: t }), Pm;
22103
22082
  switch (t) {
22104
22083
  case "postgresql":
22105
- case "postgres": return ar;
22106
- case "mysql": return nr;
22107
- case "sqlite": return $n;
22084
+ case "postgres": return or;
22085
+ case "mysql": return rr;
22086
+ case "sqlite": return er;
22108
22087
  case "mssql":
22109
22088
  case "sqlserver":
22110
- case "microsoft sql server": return ir;
22089
+ case "microsoft sql server": return ar;
22111
22090
  case "duckdb": return km;
22112
- case "mariadb": return sr;
22113
- case "cassandra": return lr;
22091
+ case "mariadb": return cr;
22092
+ case "cassandra": return ur;
22114
22093
  case "oracledb":
22115
- case "oracle": return Qn;
22094
+ case "oracle": return $n;
22116
22095
  case "bigquery": return Dm;
22117
22096
  case "dremio": return Om;
22118
- case "timescaledb": return ar;
22097
+ case "timescaledb": return or;
22119
22098
  case "awsathena":
22120
22099
  case "athena":
22121
22100
  case "db2i":
@@ -22137,10 +22116,10 @@ function Mm(e) {
22137
22116
  }
22138
22117
  }
22139
22118
  var Nm = {
22140
- ...rr,
22119
+ ...ir,
22141
22120
  caseInsensitiveIdentifiers: !0,
22142
22121
  identifierQuotes: "'"
22143
- }, Pm = cr.define(Nm), Fm = "__marimo_duckdb", Im = /* @__PURE__ */ new Set([Fm]);
22122
+ }, Pm = lr.define(Nm), Fm = "__marimo_duckdb", Im = /* @__PURE__ */ new Set([Fm]);
22144
22123
  //#endregion
22145
22124
  //#region src/components/datasources/utils.ts
22146
22125
  function Lm(e) {
@@ -22345,7 +22324,7 @@ I((e) => {
22345
22324
  let n = t.get(e);
22346
22325
  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));
22347
22326
  }
22348
- return Ln([...t.values()], (e) => +!!Im.has(e.name));
22327
+ return Rn([...t.values()], (e) => +!!Im.has(e.name));
22349
22328
  });
22350
22329
  function eh(e) {
22351
22330
  let t = F.get(Zm);
@@ -22542,7 +22521,7 @@ function fh(e, t) {
22542
22521
  return s === void 0 ? -1 : r.addElement(r.elt(lh, a, s, [r.elt(`${lh}Mark`, a, a + 1), r.elt(`${lh}Mark`, s - 1, s)]));
22543
22522
  }
22544
22523
  }],
22545
- wrap: rn((n) => {
22524
+ wrap: an((n) => {
22546
22525
  if (!t() || n.type.name !== lh) return null;
22547
22526
  let r = n.from + dh, i = n.to - dh;
22548
22527
  return r >= i || r < 0 || i < 0 ? null : {
@@ -22551,7 +22530,7 @@ function fh(e, t) {
22551
22530
  from: r,
22552
22531
  to: i
22553
22532
  }],
22554
- extensions: [qn().support]
22533
+ extensions: [Jn().support]
22555
22534
  };
22556
22535
  })
22557
22536
  };
@@ -23309,13 +23288,13 @@ function cg(e) {
23309
23288
  function lg() {
23310
23289
  return (e) => {
23311
23290
  let t = cg(e.state).engine, n = sg.getCompletionSource(t);
23312
- return n && tr(n)(e) || null;
23291
+ return n && nr(n)(e) || null;
23313
23292
  };
23314
23293
  }
23315
23294
  function ug() {
23316
23295
  return (e) => {
23317
23296
  let t = cg(e.state).engine, n = sg.getDialect(t);
23318
- return e.matchBefore(/\.\w*/) ? null : er(n, !0, (e, t) => ({
23297
+ return e.matchBefore(/\.\w*/) ? null : tr(n, !0, (e, t) => ({
23319
23298
  label: e,
23320
23299
  type: t,
23321
23300
  info: async () => {
@@ -23330,7 +23309,7 @@ function ug() {
23330
23309
  }))(e);
23331
23310
  };
23332
23311
  }
23333
- var dg = zn(async () => {
23312
+ var dg = Bn(async () => {
23334
23313
  let e = await import("./common-keywords-8jMJIC1L.js"), t = await import("./duckdb-keywords-BGArYVVK.js");
23335
23314
  return {
23336
23315
  ...e.default.keywords,
@@ -23349,7 +23328,7 @@ function mg() {
23349
23328
  }
23350
23329
  //#endregion
23351
23330
  //#region src/core/codemirror/language/languages/sql/sql.ts
23352
- var hg = km, gg = "DuckDB", _g = new an();
23331
+ var hg = km, gg = "DuckDB", _g = new on();
23353
23332
  function vg() {
23354
23333
  let { latestEngineSelected: e, connectionsMap: t } = F.get(Zm);
23355
23334
  return e === null ? [...t.values()].reverse().find((e) => !Im.has(e.name) && e.source !== "iceberg")?.name ?? "__marimo_duckdb" : e;
@@ -23390,13 +23369,13 @@ var yg = class {
23390
23369
  }
23391
23370
  getExtension({ lspConfig: e }) {
23392
23371
  let t = bg(), n = [
23393
- _g.of(or({ dialect: hg })),
23394
- hn.of([{
23372
+ _g.of(sr({ dialect: hg })),
23373
+ gn.of([{
23395
23374
  key: "Tab",
23396
- run: (e) => Vn(e) || Nn(e),
23375
+ run: (e) => Hn(e) || Pn(e),
23397
23376
  preventDefault: !0
23398
23377
  }]),
23399
- Hn({
23378
+ Un({
23400
23379
  defaultKeymap: !1,
23401
23380
  activateOnTyping: !0,
23402
23381
  override: [
@@ -23571,7 +23550,7 @@ function Tg(e, t) {
23571
23550
  }
23572
23551
  function Eg(e) {
23573
23552
  let t = sg.getDialect(e);
23574
- return _g.reconfigure(or({ dialect: t }));
23553
+ return _g.reconfigure(sr({ dialect: t }));
23575
23554
  }
23576
23555
  function Dg(e, t) {
23577
23556
  e.dispatch({ effects: Eg(t) });
@@ -23719,7 +23698,7 @@ function Rg(e, t, { initialize: n = !1 } = {}) {
23719
23698
  insert: s.slice(e.fromB, e.toB)
23720
23699
  })),
23721
23700
  effects: o,
23722
- annotations: [Fd.of(!0), ...a ? [un.addToHistory.of(!1)] : []]
23701
+ annotations: [Fd.of(!0), ...a ? [dn.addToHistory.of(!1)] : []]
23723
23702
  };
23724
23703
  }
23725
23704
  //#endregion
@@ -23731,7 +23710,7 @@ var zg = [
23731
23710
  "redo"
23732
23711
  ];
23733
23712
  function Bg({ docChanged: e, transactions: t, predicate: n = () => !0, hasFocus: r = !1 }) {
23734
- return !e || !n() || t.some((e) => e.effects.some((e) => e.is(Ex))) ? !1 : t.some((e) => e.annotation(un.remote) ? !1 : zg.some((t) => e.isUserEvent(t)) || r);
23713
+ return !e || !n() || t.some((e) => e.effects.some((e) => e.is(Ex))) ? !1 : t.some((e) => e.annotation(dn.remote) ? !1 : zg.some((t) => e.isUserEvent(t)) || r);
23735
23714
  }
23736
23715
  function Vg({ predicate: e }) {
23737
23716
  return R.updateListener.of((t) => {
@@ -23788,7 +23767,7 @@ var Kg = Kt.define({
23788
23767
  }
23789
23768
  return e;
23790
23769
  },
23791
- provide: (e) => ln.from(e)
23770
+ provide: (e) => un.from(e)
23792
23771
  }), qg = async (e) => {
23793
23772
  let t = e.state.doc.sliceString(0, e.pos), n = document.activeElement, r = null;
23794
23773
  if (n !== null) {
@@ -23824,7 +23803,7 @@ var Yg = async (e) => {
23824
23803
  options: n,
23825
23804
  validFor: /^[\w:]*$/
23826
23805
  };
23827
- }, Xg = zn(async () => {
23806
+ }, Xg = Bn(async () => {
23828
23807
  let e = await fetch("https://unpkg.com/emojilib@3.0.11/dist/emoji-en-US.json").then((e) => {
23829
23808
  if (!e.ok) throw Error("Failed to fetch emoji list");
23830
23809
  return e.json();
@@ -23846,7 +23825,7 @@ var Yg = async (e) => {
23846
23825
  options: n,
23847
23826
  validFor: /^[\w-:]*$/
23848
23827
  };
23849
- }, Qg = zn(async () => {
23828
+ }, Qg = Bn(async () => {
23850
23829
  let e = await fetch("https://unpkg.com/lucide-static@0.452.0/tags.json").then((e) => {
23851
23830
  if (!e.ok) throw Error("Failed to fetch Lucide icon list");
23852
23831
  return e.json();
@@ -23870,7 +23849,7 @@ var Yg = async (e) => {
23870
23849
  options: e_(),
23871
23850
  validFor: /^[\w\\]*$/
23872
23851
  };
23873
- }, e_ = zn(() => [
23852
+ }, e_ = Bn(() => [
23874
23853
  [
23875
23854
  "alpha",
23876
23855
  "α",
@@ -24484,7 +24463,7 @@ function l_({ view: e, range: t, markupAfter: n, markupBefore: r }) {
24484
24463
  let s = i ? -r.length : r.length, c = a ? -n.length : n.length;
24485
24464
  return {
24486
24465
  changes: o,
24487
- range: vn.range(t.from + s, t.to + c)
24466
+ range: yn.range(t.from + s, t.to + c)
24488
24467
  };
24489
24468
  }
24490
24469
  function u_(e) {
@@ -24516,7 +24495,7 @@ function d_(e) {
24516
24495
  });
24517
24496
  return e.dispatch(e.state.update(t, {
24518
24497
  scrollIntoView: !0,
24519
- annotations: un.userEvent.of("input")
24498
+ annotations: dn.userEvent.of("input")
24520
24499
  })), e.focus(), !0;
24521
24500
  }
24522
24501
  function f_(e) {
@@ -24536,7 +24515,7 @@ function f_(e) {
24536
24515
  });
24537
24516
  return e.dispatch(e.state.update(t, {
24538
24517
  scrollIntoView: !0,
24539
- annotations: un.userEvent.of("input")
24518
+ annotations: dn.userEvent.of("input")
24540
24519
  })), e.focus(), !0;
24541
24520
  }
24542
24521
  function p_(e) {
@@ -24554,7 +24533,7 @@ function p_(e) {
24554
24533
  });
24555
24534
  return e.dispatch(e.state.update(t, {
24556
24535
  scrollIntoView: !0,
24557
- annotations: un.userEvent.of("input")
24536
+ annotations: dn.userEvent.of("input")
24558
24537
  })), e.focus(), !0;
24559
24538
  }
24560
24539
  function m_(e, t = "http://") {
@@ -24572,11 +24551,11 @@ function m_(e, t = "http://") {
24572
24551
  });
24573
24552
  e.dispatch(e.state.update(n, {
24574
24553
  scrollIntoView: !0,
24575
- annotations: un.userEvent.of("input")
24554
+ annotations: dn.userEvent.of("input")
24576
24555
  }));
24577
24556
  let { to: r } = n.selection.main;
24578
24557
  try {
24579
- e.dispatch({ selection: vn.create([vn.range(r + 3, r + 3 + t.length), vn.cursor(r + 3 + t.length)]) });
24558
+ e.dispatch({ selection: yn.create([yn.range(r + 3, r + 3 + t.length), yn.cursor(r + 3 + t.length)]) });
24580
24559
  } catch {}
24581
24560
  return e.focus(), !0;
24582
24561
  }
@@ -24626,11 +24605,11 @@ async function h_(e, t) {
24626
24605
  });
24627
24606
  e.dispatch(e.state.update(a, {
24628
24607
  scrollIntoView: !0,
24629
- annotations: un.userEvent.of("input")
24608
+ annotations: dn.userEvent.of("input")
24630
24609
  }));
24631
24610
  let { to: o } = a.selection.main;
24632
24611
  try {
24633
- e.dispatch({ selection: vn.create([vn.range(o + 4, o + 4 + r.length), vn.cursor(o + 4 + r.length)]) });
24612
+ e.dispatch({ selection: yn.create([yn.range(o + 4, o + 4 + r.length), yn.cursor(o + 4 + r.length)]) });
24634
24613
  } catch {}
24635
24614
  return e.focus(), !0;
24636
24615
  }
@@ -24645,7 +24624,7 @@ async function g_(e, t) {
24645
24624
  }));
24646
24625
  return e.dispatch(e.state.update(r, {
24647
24626
  scrollIntoView: !0,
24648
- annotations: un.userEvent.of("input")
24627
+ annotations: dn.userEvent.of("input")
24649
24628
  })), e.focus(), !0;
24650
24629
  }
24651
24630
  function __(e) {
@@ -24684,7 +24663,7 @@ function v_(e) {
24684
24663
  //#region src/core/codemirror/markdown/extension.ts
24685
24664
  function y_(e) {
24686
24665
  return [
24687
- tn.highest(hn.of([
24666
+ tn.highest(gn.of([
24688
24667
  {
24689
24668
  key: e.getHotkey("markdown.bold").key,
24690
24669
  stopPropagation: !0,
@@ -24806,7 +24785,7 @@ function D_(e) {
24806
24785
  }
24807
24786
  }
24808
24787
  ],
24809
- wrap: rn((t) => {
24788
+ wrap: an((t) => {
24810
24789
  let n = w_[t.type.name];
24811
24790
  if (n) {
24812
24791
  let r = t.node.firstChild?.to ?? t.from + n, i = t.node.lastChild?.from ?? t.to - n;
@@ -24855,25 +24834,25 @@ var O_ = class {
24855
24834
  return this.parser.isSupported(e);
24856
24835
  }
24857
24836
  getExtension({ hotkeys: e }) {
24858
- let t = Wn().language.data, n, r = () => {
24837
+ let t = Gn().language.data, n, r = () => {
24859
24838
  if (!n) return !0;
24860
24839
  let e = n?.state.field(gh);
24861
24840
  return e === void 0 ? !1 : e.quotePrefix?.includes("f") ?? !1;
24862
24841
  };
24863
24842
  return [
24864
24843
  nn.define((e) => (n = e, {})),
24865
- Wn({
24866
- base: Gn,
24844
+ Gn({
24845
+ base: Kn,
24867
24846
  codeLanguages: Ga,
24868
- extensions: [D_(cn.define(Zn).parser), fh(Kn.parser, r)]
24847
+ extensions: [D_(ln.define(Qn).parser), fh(qn.parser, r)]
24869
24848
  }),
24870
24849
  y_(e),
24871
24850
  t_.map((e) => t.of({ autocomplete: e })),
24872
- qn().language.data.of({ autocomplete: Jg({
24851
+ Jn().language.data.of({ autocomplete: Jg({
24873
24852
  completion: qg,
24874
24853
  predicate: r
24875
24854
  }) }),
24876
- Hn({
24855
+ Un({
24877
24856
  defaultKeymap: !1,
24878
24857
  activateOnTyping: !0
24879
24858
  }),
@@ -25059,7 +25038,7 @@ function z_(e) {
25059
25038
  //#endregion
25060
25039
  //#region src/core/codemirror/lsp/markdown-renderer.ts
25061
25040
  function B_(e) {
25062
- let t = Yn.parse(e), n = "";
25041
+ let t = Xn.parse(e), n = "";
25063
25042
  return Yt(e, t, qt, (e, t) => {
25064
25043
  let r = e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
25065
25044
  n += t ? `<span class="${t}">${r}</span>` : r;
@@ -25920,14 +25899,14 @@ function Iv(e, t) {
25920
25899
  });
25921
25900
  return r.onMessage((t) => Fv(e, t)), r;
25922
25901
  }
25923
- L.define(), new an();
25902
+ L.define(), new on();
25924
25903
  function Lv(e) {
25925
- return e.facet(yn.readOnly);
25904
+ return e.facet(bn.readOnly);
25926
25905
  }
25927
25906
  //#endregion
25928
25907
  //#region src/core/codemirror/placeholder/extensions.ts
25929
25908
  function Rv(e) {
25930
- return [pn(e), hn.of([{
25909
+ return [mn(e), gn.of([{
25931
25910
  key: "ArrowRight",
25932
25911
  preventDefault: !0,
25933
25912
  run: (t) => zv(t, e)
@@ -25954,28 +25933,50 @@ function zv(e, t) {
25954
25933
  }
25955
25934
  function Bv(e) {
25956
25935
  let { beforeText: t, linkText: n, afterText: r, onClick: i } = e;
25957
- return [pn((e) => {
25958
- let a = document.createElement("span");
25959
- a.append(document.createTextNode(t));
25960
- let o = document.createElement("span");
25961
- return o.textContent = n, o.classList.add("cm-clickable-placeholder"), o.onclick = (t) => {
25962
- t.stopPropagation(), i(e);
25963
- }, a.append(o), a.append(document.createTextNode(r)), a;
25964
- }), R.theme({
25936
+ class a extends rn {
25937
+ toDOM(e) {
25938
+ let a = document.createElement("span");
25939
+ a.className = "cm-placeholder", a.contentEditable = "false";
25940
+ let o = document.createElement("span");
25941
+ o.textContent = t, o.setAttribute("aria-hidden", "true"), a.append(o);
25942
+ let s = document.createElement("button");
25943
+ s.type = "button", s.textContent = n, s.className = "cm-clickable-placeholder", s.onclick = (t) => {
25944
+ t.stopPropagation(), i(e);
25945
+ };
25946
+ let c = document.createElement("span");
25947
+ return c.textContent = r, c.setAttribute("aria-hidden", "true"), a.append(s, c), a;
25948
+ }
25949
+ ignoreEvent(e) {
25950
+ return e.target instanceof Element && e.target.closest(".cm-clickable-placeholder") !== null;
25951
+ }
25952
+ }
25953
+ return [R.decorations.compute(["doc"], (e) => e.doc.length === 0 ? xn.set([xn.widget({
25954
+ widget: new a(),
25955
+ side: 1
25956
+ }).range(0)]) : xn.none), R.theme({
25965
25957
  ".cm-placeholder": { color: "var(--slate-8)" },
25966
25958
  ".cm-clickable-placeholder": {
25967
25959
  cursor: "pointer !important",
25960
+ font: "inherit",
25961
+ background: "transparent",
25962
+ border: "none",
25963
+ padding: "0",
25968
25964
  pointerEvents: "auto",
25969
25965
  color: "var(--slate-9)",
25970
25966
  textDecoration: "underline",
25971
25967
  textUnderlineOffset: "0.2em"
25972
25968
  },
25969
+ ".cm-clickable-placeholder:focus-visible": {
25970
+ outline: "1px solid var(--muted-foreground)",
25971
+ outlineOffset: "2px",
25972
+ borderRadius: "2px"
25973
+ },
25973
25974
  ".cm-clickable-placeholder:hover": { color: "var(--sky-11)" }
25974
25975
  })];
25975
25976
  }
25976
25977
  //#endregion
25977
25978
  //#region src/core/codemirror/language/languages/python.ts
25978
- var Vv = zn((e) => {
25979
+ var Vv = Bn((e) => {
25979
25980
  let t, n = {
25980
25981
  transport: Iv("pylsp", async () => {
25981
25982
  await t?.();
@@ -26022,7 +26023,7 @@ var Vv = zn((e) => {
26022
26023
  }
26023
26024
  } } }, c = new kv(new xd({ ...n }), s);
26024
26025
  return t = () => c.resyncAllDocuments(), c;
26025
- }), Hv = zn((e) => {
26026
+ }), Hv = Bn((e) => {
26026
26027
  let t, n = new kv(new xd({
26027
26028
  transport: Iv("ty", async () => {
26028
26029
  await t?.();
@@ -26032,7 +26033,7 @@ var Vv = zn((e) => {
26032
26033
  getWorkspaceConfiguration: () => [{ disableLanguageServices: !0 }]
26033
26034
  }), {});
26034
26035
  return t = () => n.resyncAllDocuments(), n;
26035
- }), Uv = zn((e) => {
26036
+ }), Uv = Bn((e) => {
26036
26037
  let t, n = new kv(new xd({
26037
26038
  transport: Iv("pyrefly", async () => {
26038
26039
  await t?.();
@@ -26042,7 +26043,7 @@ var Vv = zn((e) => {
26042
26043
  initializationOptions: { pyrefly: { displayTypeErrors: e.diagnostics?.enabled ?? !1 ? "force-on" : "force-off" } }
26043
26044
  }), {});
26044
26045
  return t = () => n.resyncAllDocuments(), n;
26045
- }), Wv = zn((e) => {
26046
+ }), Wv = Bn((e) => {
26046
26047
  let t, n = new kv(new xd({
26047
26048
  transport: Iv("basedpyright", async () => {
26048
26049
  await t?.();
@@ -26109,7 +26110,7 @@ var Vv = zn((e) => {
26109
26110
  onShowLocation: u
26110
26111
  }), ud.of(k_.of(e))];
26111
26112
  }
26112
- return [Hn({
26113
+ return [Un({
26113
26114
  ...r,
26114
26115
  override: [qg]
26115
26116
  }), Kg];
@@ -26122,23 +26123,23 @@ var Vv = zn((e) => {
26122
26123
  function Kv(e) {
26123
26124
  return e === "marimo-import" ? tn.highest(Rv("import marimo as mo")) : e === "ai" ? Bv({
26124
26125
  beforeText: "Start coding or ",
26125
- linkText: "generate",
26126
- afterText: " with AI.",
26126
+ linkText: "generate with AI",
26127
+ afterText: ".",
26127
26128
  onClick: (e) => {
26128
- e.state.facet(ka).aiCellCompletion();
26129
+ e.state.facet(ka).askAiAboutCell();
26129
26130
  }
26130
26131
  }) : [];
26131
26132
  }
26132
- var qv = Kn.configure({ props: [on.add({
26133
- ParenthesizedExpression: _n,
26134
- ArgList: _n
26133
+ var qv = qn.configure({ props: [sn.add({
26134
+ ParenthesizedExpression: vn,
26135
+ ArgList: vn
26135
26136
  })] });
26136
26137
  function Jv() {
26137
- return new fn(qv, [qv.data.of({ autocomplete: Xn }), qv.data.of({ autocomplete: Jn })]);
26138
+ return new pn(qv, [qv.data.of({ autocomplete: Zn }), qv.data.of({ autocomplete: Yn })]);
26138
26139
  }
26139
26140
  //#endregion
26140
26141
  //#region src/core/codemirror/language/LanguageAdapters.ts
26141
- var Yv = zn(() => new Gv()), Xv = zn(() => new O_()), Zv = zn(() => new yg()), Qv = {
26142
+ var Yv = Bn(() => new Gv()), Xv = Bn(() => new O_()), Zv = Bn(() => new yg()), Qv = {
26142
26143
  get python() {
26143
26144
  return Yv();
26144
26145
  },
@@ -26381,9 +26382,9 @@ var Dy = "marimo:notebook-col-sizes";
26381
26382
  function Oy() {
26382
26383
  return { widths: [] };
26383
26384
  }
26384
- var ky = new Oe(Dy, Dn({ widths: An(kn([En(), On("contentWidth")]).default("contentWidth")) }), Oy);
26385
+ var ky = new Oe(Dy, On({ widths: jn(An([Dn(), kn("contentWidth")]).default("contentWidth")) }), Oy);
26385
26386
  function Ay(e, t) {
26386
- let n = ky.get(Dy).widths, r = Rn(n, e, t);
26387
+ let n = ky.get(Dy).widths, r = zn(n, e, t);
26387
26388
  ky.set(Dy, { widths: r });
26388
26389
  }
26389
26390
  //#endregion
@@ -26461,7 +26462,7 @@ function Uy(e, t, n, r) {
26461
26462
  let s = r(o, a.visible);
26462
26463
  if (s < 0 || s >= a.visible.length || s === o) return !1;
26463
26464
  let c = Iy(i);
26464
- return c[i.columns.indexOf(a)].ids = Rn(Fy(a), o, s).flat(), Hy(e, t, c), !0;
26465
+ return c[i.columns.indexOf(a)].ids = zn(Fy(a), o, s).flat(), Hy(e, t, c), !0;
26465
26466
  }
26466
26467
  var Wy = I(null, (e, t, { cellId: n, before: r, direction: i }) => {
26467
26468
  if (i) {
@@ -26568,7 +26569,7 @@ var $y = I(null, (e, t, { columnId: n }) => {
26568
26569
  }), ib = I(null, (e, t, { column: n, overColumn: r }) => {
26569
26570
  if (n === r) return;
26570
26571
  let i = Iy(e(rt)), a = i.findIndex(({ id: e }) => e === n), o = r === "_left_" ? a - 1 : r === "_right_" ? a + 1 : i.findIndex(({ id: e }) => e === r);
26571
- a === -1 || o < 0 || o >= i.length || (Hy(e, t, Rn(i, a, o)), Ay(a, o));
26572
+ a === -1 || o < 0 || o >= i.length || (Hy(e, t, zn(i, a, o)), Ay(a, o));
26572
26573
  });
26573
26574
  //#endregion
26574
26575
  //#region src/core/cells/actions.ts
@@ -26708,7 +26709,7 @@ var _b = I(null, (e, t, { cellId: n }) => {
26708
26709
  });
26709
26710
  if (c.length === s.length && c.pop(), c.length === 0) return !1;
26710
26711
  let l = new Set(c.map((e) => e.id)), u = s.find((e) => !l.has(e)), d = c.map((e) => {
26711
- let t = e.id, n = s.indexOf(t), r = e.code ?? i.cellData[t]?.code ?? "", a = (i.cellHandles[t]?.current?.editorView)?.state.toJSON({ history: Pn }) ?? null;
26712
+ let t = e.id, n = s.indexOf(t), r = e.code ?? i.cellData[t]?.code ?? "", a = (i.cellHandles[t]?.current?.editorView)?.state.toJSON({ history: Fn }) ?? null;
26712
26713
  return a && (a.doc = r), {
26713
26714
  cell: {
26714
26715
  id: t,
@@ -26853,7 +26854,7 @@ function Pb(e, t) {
26853
26854
  //#endregion
26854
26855
  //#region src/components/editor/connections/components.tsx
26855
26856
  function Fb() {
26856
- let e = (0, V.c)(4), { createCell: t } = Eb(), n = Nb(), r = Bt(kt), i;
26857
+ let e = (0, V.c)(4), { createCell: t } = Eb(), n = Nb(), r = Bt(At), i;
26857
26858
  return e[0] !== r || e[1] !== t || e[2] !== n ? (i = (e) => {
26858
26859
  /\bmo\./.test(e) && wy({
26859
26860
  autoInstantiate: r,
@@ -26944,7 +26945,7 @@ var { reducer: Kb, createActions: qb, valueAtom: Jb, useActions: Yb } = Wt(Gb, {
26944
26945
  //#region src/hooks/useDataSourceDiscovery.ts
26945
26946
  function Zb() {
26946
26947
  let e = (0, V.c)(2), t = Bt(zb), n;
26947
- return e[0] === t ? n = e[1] : (n = [t], e[0] = t, e[1] = n), ur(Hb, n);
26948
+ return e[0] === t ? n = e[1] : (n = [t], e[0] = t, e[1] = n), dr(Hb, n);
26948
26949
  }
26949
26950
  function Qb(e) {
26950
26951
  let t = (0, V.c)(6), { data: n } = Zb(), r = Bt($m), i = Bt(Xb), a;
@@ -27410,7 +27411,7 @@ var vx = () => {
27410
27411
  s.type
27411
27412
  ]
27412
27413
  }) }), t[98] = f, t[99] = s.type, t[100] = g, t[101] = _) : _ = t[101], _;
27413
- }, bx = new an();
27414
+ }, bx = new on();
27414
27415
  function xx(e, t) {
27415
27416
  let n = t.getExtension({
27416
27417
  cellId: e.facet(Ia),
@@ -27419,7 +27420,7 @@ function xx(e, t) {
27419
27420
  placeholderType: e.facet(Fa),
27420
27421
  lspConfig: e.facet(La)
27421
27422
  });
27422
- return e.field(Pn, !1) !== void 0 && n.push(Pn.init(() => yn.create({ extensions: [Mn()] }).field(Pn))), [Sx.of(t), bx.reconfigure(n)];
27423
+ return e.field(Fn, !1) !== void 0 && n.push(Fn.init(() => bn.create({ extensions: [Nn()] }).field(Fn))), [Sx.of(t), bx.reconfigure(n)];
27423
27424
  }
27424
27425
  var Sx = L.define(), Cx = Kt.define({
27425
27426
  create() {
@@ -27429,7 +27430,7 @@ var Sx = L.define(), Cx = Kt.define({
27429
27430
  for (let e of t.effects) if (e.is(Sx)) return e.value;
27430
27431
  return e;
27431
27432
  },
27432
- provide: (e) => gn.from(e, (e) => e.type === "python" ? null : (e) => Ua(e, yx))
27433
+ provide: (e) => _n.from(e, (e) => e.type === "python" ? null : (e) => Ua(e, yx))
27433
27434
  });
27434
27435
  function wx(e) {
27435
27436
  return e ? Qv.markdown.isSupported(e) ? Qv.markdown : Qv.sql.isSupported(e) ? Qv.sql : Qv.python : Qv.python;
@@ -27579,20 +27580,20 @@ function Px() {
27579
27580
  return Nx()?.trusted === !0;
27580
27581
  }
27581
27582
  function Fx() {
27582
- if (F.get(jx) || Px() || F.get(kt)) return !0;
27583
+ if (F.get(jx) || Px() || F.get(At)) return !0;
27583
27584
  try {
27584
- if (Cn() === "read") return !0;
27585
+ if (wn() === "read") return !0;
27585
27586
  } catch {}
27586
27587
  return !1;
27587
27588
  }
27588
27589
  //#endregion
27589
27590
  //#region src/plugins/core/sanitize.ts
27590
27591
  var Ix = I((e) => {
27591
- let t = e(jx), n = e(kt);
27592
+ let t = e(jx), n = e(At);
27592
27593
  if (t || n || Px()) return !1;
27593
27594
  let r = !0;
27594
27595
  try {
27595
- r = Cn() === "read";
27596
+ r = wn() === "read";
27596
27597
  } catch {
27597
27598
  return !0;
27598
27599
  }
@@ -27604,9 +27605,9 @@ function Lx() {
27604
27605
  //#endregion
27605
27606
  //#region src/plugins/core/RenderHTML.tsx
27606
27607
  var Rx = [], zx = (e) => {
27607
- if (e instanceof wr.Element && !/^[A-Za-z][\w-]*$/.test(e.name)) return B.createElement(B.Fragment);
27608
+ if (e instanceof Tr.Element && !/^[A-Za-z][\w-]*$/.test(e.name)) return B.createElement(B.Fragment);
27608
27609
  }, Bx = (e, t) => {
27609
- if (t instanceof wr.Element && t.name === "body") {
27610
+ if (t instanceof Tr.Element && t.name === "body") {
27610
27611
  if ((0, B.isValidElement)(e) && "props" in e) {
27611
27612
  let t = e.props.children;
27612
27613
  return /* @__PURE__ */ (0, H.jsx)(H.Fragment, { children: t });
@@ -27614,7 +27615,7 @@ var Rx = [], zx = (e) => {
27614
27615
  return;
27615
27616
  }
27616
27617
  }, Vx = (e, t) => {
27617
- if (t instanceof wr.Element && t.name === "html") {
27618
+ if (t instanceof Tr.Element && t.name === "html") {
27618
27619
  if ((0, B.isValidElement)(e) && "props" in e) {
27619
27620
  let t = e.props.children;
27620
27621
  return /* @__PURE__ */ (0, H.jsx)(H.Fragment, { children: t });
@@ -27622,14 +27623,14 @@ var Rx = [], zx = (e) => {
27622
27623
  return;
27623
27624
  }
27624
27625
  }, Hx = (e) => {
27625
- if (e instanceof wr.Element && e.attribs && e.name === "iframe") {
27626
+ if (e instanceof Tr.Element && e.attribs && e.name === "iframe") {
27626
27627
  let t = document.createElement("iframe");
27627
27628
  return Object.entries(e.attribs).forEach(([e, n]) => {
27628
27629
  e.startsWith("\"") && e.endsWith("\"") && (e = e.slice(1, -1)), t.setAttribute(e, n);
27629
27630
  }), /* @__PURE__ */ (0, H.jsx)("div", { dangerouslySetInnerHTML: { __html: t.outerHTML } });
27630
27631
  }
27631
27632
  }, Ux = (e) => {
27632
- if (e instanceof wr.Element && e.name === "script") {
27633
+ if (e instanceof Tr.Element && e.name === "script") {
27633
27634
  let t = e.attribs.src;
27634
27635
  if (!t) return;
27635
27636
  if (!Fx()) return o.warn(`[RenderHTML] refusing <script src> in untrusted context: ${t}`), /* @__PURE__ */ (0, H.jsx)(H.Fragment, {});
@@ -27640,7 +27641,7 @@ var Rx = [], zx = (e) => {
27640
27641
  return /* @__PURE__ */ (0, H.jsx)(H.Fragment, {});
27641
27642
  }
27642
27643
  }, Wx = (e, t) => {
27643
- if (t instanceof wr.Element && t.name === "a") {
27644
+ if (t instanceof Tr.Element && t.name === "a") {
27644
27645
  let n = t.attribs.href;
27645
27646
  if (n?.startsWith("#") && !n.startsWith("#code/")) {
27646
27647
  let r = null;
@@ -27652,17 +27653,17 @@ var Rx = [], zx = (e) => {
27652
27653
  }
27653
27654
  }
27654
27655
  }, Gx = (e, t, n) => {
27655
- if (t instanceof wr.Element && t.name === "div" && t.attribs?.class?.includes("codehilite")) return /* @__PURE__ */ (0, H.jsx)(Xx, { children: e }, n);
27656
+ if (t instanceof Tr.Element && t.name === "div" && t.attribs?.class?.includes("codehilite")) return /* @__PURE__ */ (0, H.jsx)(Xx, { children: e }, n);
27656
27657
  }, Kx = (e, t, n) => {
27657
- if (!(t instanceof wr.Element) || t.name !== "img") return;
27658
+ if (!(t instanceof Tr.Element) || t.name !== "img") return;
27658
27659
  let r = t.attribs?.src;
27659
27660
  if (!(!r || !(0, B.isValidElement)(e)) && !/^data:/i.test(r)) return (0, B.cloneElement)(e, { key: `${r}-${n}` });
27660
27661
  }, qx = (e, t, n) => {
27661
- if (!(t instanceof wr.Element) || t.name !== "input" || t.attribs?.type !== "checkbox" || !(0, B.isValidElement)(e)) return;
27662
+ if (!(t instanceof Tr.Element) || t.name !== "input" || t.attribs?.type !== "checkbox" || !(0, B.isValidElement)(e)) return;
27662
27663
  let r = "checked" in t.attribs;
27663
27664
  return (0, B.cloneElement)(e, { key: `checkbox-${n}-${r}` });
27664
27665
  }, Jx = (e, t) => {
27665
- if (t instanceof wr.Element && t.attribs?.["data-marimo-doc"]) {
27666
+ if (t instanceof Tr.Element && t.attribs?.["data-marimo-doc"]) {
27666
27667
  let n = t.attribs["data-marimo-doc"];
27667
27668
  return /* @__PURE__ */ (0, H.jsx)(Ax, {
27668
27669
  qualifiedName: n,
@@ -27670,7 +27671,7 @@ var Rx = [], zx = (e) => {
27670
27671
  });
27671
27672
  }
27672
27673
  }, Yx = (e, t) => {
27673
- if (t instanceof wr.Element && t.attribs?.["data-tooltip"]) {
27674
+ if (t instanceof Tr.Element && t.attribs?.["data-tooltip"]) {
27674
27675
  if ((t.name?.toLowerCase() ?? "").startsWith("marimo-")) return;
27675
27676
  let n = t.attribs["data-tooltip"].replace(/^[\r\n]+|[\r\n]+$/g, "");
27676
27677
  return /* @__PURE__ */ (0, H.jsx)(te, {
@@ -27734,7 +27735,7 @@ function $x({ html: e, additionalReplacements: t = Rx }) {
27734
27735
  Bx,
27735
27736
  Vx
27736
27737
  ], i = [Kx, qx];
27737
- return Tr(e, {
27738
+ return Er(e, {
27738
27739
  replace: (e, t) => {
27739
27740
  for (let r of n) {
27740
27741
  let n = r(e, t);
@@ -28355,7 +28356,7 @@ function QS() {
28355
28356
  //#region src/core/cells/outputs.ts
28356
28357
  var $S = {}, eC = {};
28357
28358
  function tC(e) {
28358
- let t = (0, V.c)(14), { mode: n } = Bt(xn), r = QS(), i = ZS(e)?.expand_output ?? !1, a;
28359
+ let t = (0, V.c)(14), { mode: n } = Bt(Sn), r = QS(), i = ZS(e)?.expand_output ?? !1, a;
28359
28360
  t[0] !== e || t[1] !== i ? (a = () => $S[e] ?? i, t[0] = e, t[1] = i, t[2] = a) : a = t[2];
28360
28361
  let [o, s] = (0, B.useState)(a), c, l;
28361
28362
  t[3] !== e || t[4] !== o ? (c = () => {
@@ -28381,8 +28382,8 @@ function rC(e) {
28381
28382
  }
28382
28383
  //#endregion
28383
28384
  //#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
28384
- var iC = (0, B.lazy)(() => import("./any-language-editor-jGaR0EAo.js")), aC = [R.lineWrapping];
28385
- function oC(e, t) {
28385
+ var iC = (0, B.lazy)(() => import("./any-language-editor-Be7dA2VK.js")), aC = [R.lineWrapping], oC = (0, B.createContext)(!0);
28386
+ function sC(e, t) {
28386
28387
  return e ? e === "python" ? {
28387
28388
  language: e,
28388
28389
  code: t
@@ -28403,68 +28404,64 @@ function oC(e, t) {
28403
28404
  code: t
28404
28405
  };
28405
28406
  }
28406
- var sC = (e) => {
28407
- let t = (0, V.c)(9), { code: n, language: r } = e, { createCell: i } = Eb(), a = Nb(), o = Bt(kt), s;
28408
- t[0] !== o || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (s = () => {
28409
- let e = oC(r, n);
28410
- r === "sql" && wy({
28411
- autoInstantiate: o,
28412
- createCell: i,
28413
- fromCellId: a
28414
- }), i({
28415
- after: a,
28416
- code: e.code
28417
- });
28418
- }, t[0] = o, t[1] = n, t[2] = i, t[3] = r, t[4] = a, t[5] = s) : s = t[5];
28419
- let c = s, l;
28420
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, H.jsx)(Dr, { className: "ml-2 h-4 w-4" }), t[6] = l) : l = t[6];
28421
- let d;
28422
- return t[7] === c ? d = t[8] : (d = /* @__PURE__ */ (0, H.jsxs)(u, {
28407
+ var cC = (e) => {
28408
+ let t = (0, V.c)(6), { code: n, language: r } = e, { createCell: i } = Eb(), a = Nb(), o = Bt(At), s;
28409
+ return t[0] !== o || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (s = /* @__PURE__ */ (0, H.jsx)(u, {
28423
28410
  size: "xs",
28424
28411
  variant: "outline",
28425
- onClick: c,
28426
- children: ["Add to Notebook", l]
28427
- }), t[7] = c, t[8] = d), d;
28428
- }, cC = (e) => {
28429
- let t = (0, V.c)(17), { code: n, language: r } = e, { theme: i } = At(), [a, o] = (0, B.useState)(n);
28430
- a !== n && o(n);
28431
- let s;
28432
- t[0] === a ? s = t[1] : (s = async () => {
28433
- await h(a);
28434
- }, t[0] = a, t[1] = s);
28435
- let c = s, l = i === "dark" ? "dark" : "light", u;
28436
- t[2] !== r || t[3] !== l || t[4] !== a ? (u = /* @__PURE__ */ (0, H.jsx)(B.Suspense, { children: /* @__PURE__ */ (0, H.jsx)(iC, {
28437
- theme: l,
28412
+ onClick: () => {
28413
+ let e = sC(r, n);
28414
+ r === "sql" && wy({
28415
+ autoInstantiate: o,
28416
+ createCell: i,
28417
+ fromCellId: a
28418
+ }), i({
28419
+ after: a,
28420
+ code: e.code
28421
+ });
28422
+ },
28423
+ children: "Add to Notebook"
28424
+ }), t[0] = o, t[1] = n, t[2] = i, t[3] = r, t[4] = a, t[5] = s) : s = t[5], s;
28425
+ }, lC = (e) => {
28426
+ let t = (0, V.c)(18), { code: n, language: r } = e, { theme: i } = kt(), a = (0, B.useContext)(oC), [o, s] = (0, B.useState)(n);
28427
+ o !== n && s(n);
28428
+ let c;
28429
+ t[0] === o ? c = t[1] : (c = async () => {
28430
+ await h(o);
28431
+ }, t[0] = o, t[1] = c);
28432
+ let l = c, u = i === "dark" ? "dark" : "light", d;
28433
+ t[2] !== r || t[3] !== u || t[4] !== o ? (d = /* @__PURE__ */ (0, H.jsx)(B.Suspense, { children: /* @__PURE__ */ (0, H.jsx)(iC, {
28434
+ theme: u,
28438
28435
  language: r,
28439
28436
  hideUnsupportedLanguageErrors: !0,
28440
28437
  className: "cm border rounded overflow-hidden",
28441
28438
  extensions: aC,
28442
- value: a,
28443
- onChange: o
28444
- }) }), t[2] = r, t[3] = l, t[4] = a, t[5] = u) : u = t[5];
28445
- let d;
28446
- t[6] === c ? d = t[7] : (d = /* @__PURE__ */ (0, H.jsx)(lC, {
28439
+ value: o,
28440
+ onChange: s
28441
+ }) }), t[2] = r, t[3] = u, t[4] = o, t[5] = d) : d = t[5];
28442
+ let f;
28443
+ t[6] === l ? f = t[7] : (f = /* @__PURE__ */ (0, H.jsx)(uC, {
28447
28444
  size: "xs",
28448
28445
  variant: "outline",
28449
- onClick: c,
28446
+ onClick: l,
28450
28447
  children: "Copy"
28451
- }), t[6] = c, t[7] = d);
28452
- let f;
28453
- t[8] !== r || t[9] !== a ? (f = /* @__PURE__ */ (0, H.jsx)(sC, {
28454
- code: a,
28455
- language: r
28456
- }), t[8] = r, t[9] = a, t[10] = f) : f = t[10];
28448
+ }), t[6] = l, t[7] = f);
28457
28449
  let p;
28458
- t[11] !== d || t[12] !== f ? (p = /* @__PURE__ */ (0, H.jsxs)("div", {
28459
- className: "flex justify-end mt-2 space-x-2",
28460
- children: [d, f]
28461
- }), t[11] = d, t[12] = f, t[13] = p) : p = t[13];
28450
+ t[8] !== a || t[9] !== r || t[10] !== o ? (p = a && /* @__PURE__ */ (0, H.jsx)(cC, {
28451
+ code: o,
28452
+ language: r
28453
+ }), t[8] = a, t[9] = r, t[10] = o, t[11] = p) : p = t[11];
28462
28454
  let m;
28463
- return t[14] !== u || t[15] !== p ? (m = /* @__PURE__ */ (0, H.jsxs)("div", {
28455
+ t[12] !== f || t[13] !== p ? (m = /* @__PURE__ */ (0, H.jsxs)("div", {
28456
+ className: "flex justify-end mt-3 gap-2",
28457
+ children: [f, p]
28458
+ }), t[12] = f, t[13] = p, t[14] = m) : m = t[14];
28459
+ let g;
28460
+ return t[15] !== d || t[16] !== m ? (g = /* @__PURE__ */ (0, H.jsxs)("div", {
28464
28461
  className: "relative",
28465
- children: [u, p]
28466
- }), t[14] = u, t[15] = p, t[16] = m) : m = t[16], m;
28467
- }, lC = (e) => {
28462
+ children: [d, m]
28463
+ }), t[15] = d, t[16] = m, t[17] = g) : g = t[17], g;
28464
+ }, uC = (e) => {
28468
28465
  let t = (0, V.c)(9), n, r;
28469
28466
  t[0] === e ? (n = t[1], r = t[2]) : ({onClick: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
28470
28467
  let [i, a] = (0, B.useState)(!1), o;
@@ -28477,48 +28474,56 @@ var sC = (e) => {
28477
28474
  onClick: o,
28478
28475
  children: s
28479
28476
  }), t[5] = r, t[6] = o, t[7] = s, t[8] = c) : c = t[8], c;
28480
- }, uC = {
28477
+ }, dC = {
28481
28478
  ...v,
28482
28479
  attributes: {
28483
28480
  ...v.attributes,
28484
28481
  "*": [...v.attributes?.["*"] ?? [], "className"]
28485
28482
  }
28486
- }, dC = Object.values({
28483
+ }, fC = Object.values({
28487
28484
  ...x,
28488
- sanitize: [b, uC]
28489
- }), fC = { code: ({ children: e, className: t }) => {
28485
+ sanitize: [b, dC]
28486
+ }), pC = { code: ({ children: e, className: t }) => {
28490
28487
  let n = t?.replace("language-", "");
28491
28488
  if (n && typeof e == "string") {
28492
28489
  let t = e.trim();
28493
- return /* @__PURE__ */ (0, H.jsxs)("div", { children: [/* @__PURE__ */ (0, H.jsx)("div", {
28494
- className: "text-xs text-muted-foreground pl-1",
28495
- children: n
28496
- }), /* @__PURE__ */ (0, H.jsx)(cC, {
28497
- code: t,
28498
- language: n
28499
- })] });
28490
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
28491
+ className: "my-4",
28492
+ children: [/* @__PURE__ */ (0, H.jsx)("div", {
28493
+ className: "mb-1 text-xs text-muted-foreground pl-1",
28494
+ children: n
28495
+ }), /* @__PURE__ */ (0, H.jsx)(lC, {
28496
+ code: t,
28497
+ language: n
28498
+ })]
28499
+ });
28500
28500
  }
28501
28501
  return /* @__PURE__ */ (0, H.jsx)("code", {
28502
28502
  className: t,
28503
28503
  children: e
28504
28504
  });
28505
- } }, pC, mC = () => {
28506
- let { data: e } = ur(async () => pC || (pC = { math: (await import("./dist-Lm-D-Vr6.js")).math }, pC), []);
28505
+ } }, mC, hC = () => {
28506
+ let { data: e } = dr(async () => mC || (mC = { math: (await import("./dist-Lm-D-Vr6.js")).math }, mC), []);
28507
28507
  return e;
28508
- }, hC = (0, B.memo)((e) => {
28509
- let t = (0, V.c)(3), { content: n } = e, r = mC(), i;
28510
- return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, H.jsx)(_, {
28511
- components: fC,
28512
- plugins: r,
28513
- rehypePlugins: dC,
28508
+ }, gC = (0, B.memo)((e) => {
28509
+ let t = (0, V.c)(6), { content: n, allowNotebookInsertion: r } = e, i = r === void 0 || r, a = hC(), o;
28510
+ t[0] !== n || t[1] !== a ? (o = /* @__PURE__ */ (0, H.jsx)(_, {
28511
+ components: pC,
28512
+ plugins: a,
28513
+ rehypePlugins: fC,
28514
28514
  className: "mo-markdown-renderer",
28515
28515
  children: n
28516
- }), t[0] = n, t[1] = r, t[2] = i) : i = t[2], i;
28516
+ }), t[0] = n, t[1] = a, t[2] = o) : o = t[2];
28517
+ let s;
28518
+ return t[3] !== i || t[4] !== o ? (s = /* @__PURE__ */ (0, H.jsx)(oC.Provider, {
28519
+ value: i,
28520
+ children: o
28521
+ }), t[3] = i, t[4] = o, t[5] = s) : s = t[5], s;
28517
28522
  });
28518
- hC.displayName = "MarkdownRenderer";
28523
+ gC.displayName = "MarkdownRenderer";
28519
28524
  //#endregion
28520
28525
  //#region src/components/icons/spinner.tsx
28521
- var gC = l("animate-spin", {
28526
+ var _C = l("animate-spin", {
28522
28527
  variants: {
28523
28528
  centered: { true: "m-auto" },
28524
28529
  size: {
@@ -28529,14 +28534,14 @@ var gC = l("animate-spin", {
28529
28534
  }
28530
28535
  },
28531
28536
  defaultVariants: { size: "medium" }
28532
- }), _C = B.forwardRef((e, t) => {
28537
+ }), vC = B.forwardRef((e, t) => {
28533
28538
  let n = (0, V.c)(13), r, i, a, o;
28534
28539
  if (n[0] !== e) {
28535
28540
  let { className: t, children: s, centered: c, size: l, ...u } = e;
28536
28541
  i = t, r = c, o = l, a = u, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o;
28537
28542
  } else r = n[1], i = n[2], a = n[3], o = n[4];
28538
28543
  let c;
28539
- n[5] !== r || n[6] !== i || n[7] !== o ? (c = s(gC({
28544
+ n[5] !== r || n[6] !== i || n[7] !== o ? (c = s(_C({
28540
28545
  centered: r,
28541
28546
  size: o
28542
28547
  }), i), n[5] = r, n[6] = i, n[7] = o, n[8] = c) : c = n[8];
@@ -28548,48 +28553,48 @@ var gC = l("animate-spin", {
28548
28553
  ...a
28549
28554
  }), n[9] = a, n[10] = t, n[11] = c, n[12] = l) : l = n[12], l;
28550
28555
  });
28551
- _C.displayName = "Spinner";
28556
+ vC.displayName = "Spinner";
28552
28557
  //#endregion
28553
28558
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/util.js
28554
- function vC(e, t) {
28559
+ function yC(e, t) {
28555
28560
  if (e.match(/^[a-z]+:\/\//i)) return e;
28556
28561
  if (e.match(/^\/\//)) return window.location.protocol + e;
28557
28562
  if (e.match(/^[a-z]+:/i)) return e;
28558
28563
  let n = document.implementation.createHTMLDocument(), r = n.createElement("base"), i = n.createElement("a");
28559
28564
  return n.head.appendChild(r), n.body.appendChild(i), t && (r.href = t), i.href = e, i.href;
28560
28565
  }
28561
- var yC = (() => {
28566
+ var bC = (() => {
28562
28567
  let e = 0, t = () => `0000${(Math.random() * 36 ** 4 << 0).toString(36)}`.slice(-4);
28563
28568
  return () => (e += 1, `u${t()}${e}`);
28564
28569
  })();
28565
- function bC(e) {
28570
+ function xC(e) {
28566
28571
  let t = [];
28567
28572
  for (let n = 0, r = e.length; n < r; n++) t.push(e[n]);
28568
28573
  return t;
28569
28574
  }
28570
- var xC = null;
28571
- function SC(e = {}) {
28572
- return xC || (e.includeStyleProperties ? (xC = e.includeStyleProperties, xC) : (xC = bC(window.getComputedStyle(document.documentElement)), xC));
28575
+ var SC = null;
28576
+ function CC(e = {}) {
28577
+ return SC || (e.includeStyleProperties ? (SC = e.includeStyleProperties, SC) : (SC = xC(window.getComputedStyle(document.documentElement)), SC));
28573
28578
  }
28574
- function CC(e, t) {
28579
+ function wC(e, t) {
28575
28580
  let n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
28576
28581
  return n ? parseFloat(n.replace("px", "")) : 0;
28577
28582
  }
28578
- function wC(e) {
28579
- let t = CC(e, "border-left-width"), n = CC(e, "border-right-width");
28583
+ function TC(e) {
28584
+ let t = wC(e, "border-left-width"), n = wC(e, "border-right-width");
28580
28585
  return e.clientWidth + t + n;
28581
28586
  }
28582
- function TC(e) {
28583
- let t = CC(e, "border-top-width"), n = CC(e, "border-bottom-width");
28587
+ function EC(e) {
28588
+ let t = wC(e, "border-top-width"), n = wC(e, "border-bottom-width");
28584
28589
  return e.clientHeight + t + n;
28585
28590
  }
28586
- function EC(e, t = {}) {
28591
+ function DC(e, t = {}) {
28587
28592
  return {
28588
- width: t.width || wC(e),
28589
- height: t.height || TC(e)
28593
+ width: t.width || TC(e),
28594
+ height: t.height || EC(e)
28590
28595
  };
28591
28596
  }
28592
- function DC() {
28597
+ function OC() {
28593
28598
  let e, t;
28594
28599
  try {
28595
28600
  t = process;
@@ -28597,11 +28602,11 @@ function DC() {
28597
28602
  let n = t && t.env ? t.env.devicePixelRatio : null;
28598
28603
  return n && (e = parseInt(n, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
28599
28604
  }
28600
- var OC = 16384;
28601
- function kC(e) {
28602
- (e.width > OC || e.height > OC) && (e.width > OC && e.height > OC ? e.width > e.height ? (e.height *= OC / e.width, e.width = OC) : (e.width *= OC / e.height, e.height = OC) : e.width > OC ? (e.height *= OC / e.width, e.width = OC) : (e.width *= OC / e.height, e.height = OC));
28603
- }
28605
+ var kC = 16384;
28604
28606
  function AC(e) {
28607
+ (e.width > kC || e.height > kC) && (e.width > kC && e.height > kC ? e.width > e.height ? (e.height *= kC / e.width, e.width = kC) : (e.width *= kC / e.height, e.height = kC) : e.width > kC ? (e.height *= kC / e.width, e.width = kC) : (e.width *= kC / e.height, e.height = kC));
28608
+ }
28609
+ function jC(e) {
28605
28610
  return new Promise((t, n) => {
28606
28611
  let r = new Image();
28607
28612
  r.onload = () => {
@@ -28611,80 +28616,80 @@ function AC(e) {
28611
28616
  }, r.onerror = n, r.crossOrigin = "anonymous", r.decoding = "async", r.src = e;
28612
28617
  });
28613
28618
  }
28614
- async function jC(e) {
28619
+ async function MC(e) {
28615
28620
  return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((e) => `data:image/svg+xml;charset=utf-8,${e}`);
28616
28621
  }
28617
- async function MC(e, t, n) {
28622
+ async function NC(e, t, n) {
28618
28623
  let r = "http://www.w3.org/2000/svg", i = document.createElementNS(r, "svg"), a = document.createElementNS(r, "foreignObject");
28619
- return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e), jC(i);
28624
+ return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e), MC(i);
28620
28625
  }
28621
- var NC = (e, t) => {
28626
+ var PC = (e, t) => {
28622
28627
  if (e instanceof t) return !0;
28623
28628
  let n = Object.getPrototypeOf(e);
28624
- return n === null ? !1 : n.constructor.name === t.name || NC(n, t);
28629
+ return n === null ? !1 : n.constructor.name === t.name || PC(n, t);
28625
28630
  };
28626
28631
  //#endregion
28627
28632
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/clone-pseudos.js
28628
- function PC(e) {
28633
+ function FC(e) {
28629
28634
  let t = e.getPropertyValue("content");
28630
28635
  return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
28631
28636
  }
28632
- function FC(e, t) {
28633
- return SC(t).map((t) => `${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t) ? " !important" : ""};`).join(" ");
28637
+ function IC(e, t) {
28638
+ return CC(t).map((t) => `${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t) ? " !important" : ""};`).join(" ");
28634
28639
  }
28635
- function IC(e, t, n, r) {
28636
- let i = `.${e}:${t}`, a = n.cssText ? PC(n) : FC(n, r);
28640
+ function LC(e, t, n, r) {
28641
+ let i = `.${e}:${t}`, a = n.cssText ? FC(n) : IC(n, r);
28637
28642
  return document.createTextNode(`${i}{${a}}`);
28638
28643
  }
28639
- function LC(e, t, n, r) {
28644
+ function RC(e, t, n, r) {
28640
28645
  let i = window.getComputedStyle(e, n), a = i.getPropertyValue("content");
28641
28646
  if (a === "" || a === "none") return;
28642
- let o = yC();
28647
+ let o = bC();
28643
28648
  try {
28644
28649
  t.className = `${t.className} ${o}`;
28645
28650
  } catch {
28646
28651
  return;
28647
28652
  }
28648
28653
  let s = document.createElement("style");
28649
- s.appendChild(IC(o, n, i, r)), t.appendChild(s);
28654
+ s.appendChild(LC(o, n, i, r)), t.appendChild(s);
28650
28655
  }
28651
- function RC(e, t, n) {
28652
- LC(e, t, ":before", n), LC(e, t, ":after", n);
28656
+ function zC(e, t, n) {
28657
+ RC(e, t, ":before", n), RC(e, t, ":after", n);
28653
28658
  }
28654
28659
  //#endregion
28655
28660
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/mimes.js
28656
- var zC = "application/font-woff", BC = "image/jpeg", VC = {
28657
- woff: zC,
28658
- woff2: zC,
28661
+ var BC = "application/font-woff", VC = "image/jpeg", HC = {
28662
+ woff: BC,
28663
+ woff2: BC,
28659
28664
  ttf: "application/font-truetype",
28660
28665
  eot: "application/vnd.ms-fontobject",
28661
28666
  png: "image/png",
28662
- jpg: BC,
28663
- jpeg: BC,
28667
+ jpg: VC,
28668
+ jpeg: VC,
28664
28669
  gif: "image/gif",
28665
28670
  tiff: "image/tiff",
28666
28671
  svg: "image/svg+xml",
28667
28672
  webp: "image/webp"
28668
28673
  };
28669
- function HC(e) {
28674
+ function UC(e) {
28670
28675
  let t = /\.([^./]*?)$/g.exec(e);
28671
28676
  return t ? t[1] : "";
28672
28677
  }
28673
- function UC(e) {
28674
- return VC[HC(e).toLowerCase()] || "";
28678
+ function WC(e) {
28679
+ return HC[UC(e).toLowerCase()] || "";
28675
28680
  }
28676
28681
  //#endregion
28677
28682
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/dataurl.js
28678
- function WC(e) {
28683
+ function GC(e) {
28679
28684
  return e.split(/,/)[1];
28680
28685
  }
28681
- function GC(e) {
28686
+ function KC(e) {
28682
28687
  return e.search(/^(data:)/) !== -1;
28683
28688
  }
28684
- function KC(e, t) {
28689
+ function qC(e, t) {
28685
28690
  return `data:${t};base64,${e}`;
28686
28691
  }
28687
- async function qC(e, t, n) {
28692
+ async function JC(e, t, n) {
28688
28693
  let r = await fetch(e, t);
28689
28694
  if (r.status === 404) throw Error(`Resource "${r.url}" not found`);
28690
28695
  let i = await r.blob();
@@ -28702,83 +28707,83 @@ async function qC(e, t, n) {
28702
28707
  }, a.readAsDataURL(i);
28703
28708
  });
28704
28709
  }
28705
- var JC = {};
28706
- function YC(e, t, n) {
28710
+ var YC = {};
28711
+ function XC(e, t, n) {
28707
28712
  let r = e.replace(/\?.*/, "");
28708
28713
  return n && (r = e), /ttf|otf|eot|woff2?/i.test(r) && (r = r.replace(/.*\//, "")), t ? `[${t}]${r}` : r;
28709
28714
  }
28710
- async function XC(e, t, n) {
28711
- let r = YC(e, t, n.includeQueryParams);
28712
- if (JC[r] != null) return JC[r];
28715
+ async function ZC(e, t, n) {
28716
+ let r = XC(e, t, n.includeQueryParams);
28717
+ if (YC[r] != null) return YC[r];
28713
28718
  n.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
28714
28719
  let i;
28715
28720
  try {
28716
- i = KC(await qC(e, n.fetchRequestInit, ({ res: e, result: n }) => (t ||= e.headers.get("Content-Type") || "", WC(n))), t);
28721
+ i = qC(await JC(e, n.fetchRequestInit, ({ res: e, result: n }) => (t ||= e.headers.get("Content-Type") || "", GC(n))), t);
28717
28722
  } catch (t) {
28718
28723
  i = n.imagePlaceholder || "";
28719
28724
  let r = `Failed to fetch resource: ${e}`;
28720
28725
  t && (r = typeof t == "string" ? t : t.message), r && console.warn(r);
28721
28726
  }
28722
- return JC[r] = i, i;
28727
+ return YC[r] = i, i;
28723
28728
  }
28724
28729
  //#endregion
28725
28730
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/clone-node.js
28726
- async function ZC(e) {
28731
+ async function QC(e) {
28727
28732
  let t = e.toDataURL();
28728
- return t === "data:," ? e.cloneNode(!1) : AC(t);
28733
+ return t === "data:," ? e.cloneNode(!1) : jC(t);
28729
28734
  }
28730
- async function QC(e, t) {
28735
+ async function $C(e, t) {
28731
28736
  if (e.currentSrc) {
28732
28737
  let t = document.createElement("canvas"), n = t.getContext("2d");
28733
- return t.width = e.clientWidth, t.height = e.clientHeight, n?.drawImage(e, 0, 0, t.width, t.height), AC(t.toDataURL());
28738
+ return t.width = e.clientWidth, t.height = e.clientHeight, n?.drawImage(e, 0, 0, t.width, t.height), jC(t.toDataURL());
28734
28739
  }
28735
28740
  let n = e.poster;
28736
- return AC(await XC(n, UC(n), t));
28741
+ return jC(await ZC(n, WC(n), t));
28737
28742
  }
28738
- async function $C(e, t) {
28743
+ async function ew(e, t) {
28739
28744
  try {
28740
- if (e?.contentDocument?.body) return await lw(e.contentDocument.body, t, !0);
28745
+ if (e?.contentDocument?.body) return await uw(e.contentDocument.body, t, !0);
28741
28746
  } catch {}
28742
28747
  return e.cloneNode(!1);
28743
28748
  }
28744
- async function ew(e, t) {
28745
- return NC(e, HTMLCanvasElement) ? ZC(e) : NC(e, HTMLVideoElement) ? QC(e, t) : NC(e, HTMLIFrameElement) ? $C(e, t) : e.cloneNode(nw(e));
28749
+ async function tw(e, t) {
28750
+ return PC(e, HTMLCanvasElement) ? QC(e) : PC(e, HTMLVideoElement) ? $C(e, t) : PC(e, HTMLIFrameElement) ? ew(e, t) : e.cloneNode(rw(e));
28746
28751
  }
28747
- var tw = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", nw = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
28748
- async function rw(e, t, n) {
28749
- if (nw(t)) return t;
28752
+ var nw = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", rw = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
28753
+ async function iw(e, t, n) {
28754
+ if (rw(t)) return t;
28750
28755
  let r = [];
28751
- if (tw(e) && e.assignedNodes) r = bC(e.assignedNodes());
28752
- else if (NC(e, HTMLIFrameElement)) try {
28753
- e.contentDocument?.body && (r = bC(e.contentDocument.body.childNodes));
28756
+ if (nw(e) && e.assignedNodes) r = xC(e.assignedNodes());
28757
+ else if (PC(e, HTMLIFrameElement)) try {
28758
+ e.contentDocument?.body && (r = xC(e.contentDocument.body.childNodes));
28754
28759
  } catch {}
28755
- else r = bC((e.shadowRoot ?? e).childNodes);
28756
- return r.length === 0 || NC(e, HTMLVideoElement) || await r.reduce((e, r) => e.then(() => lw(r, n)).then((e) => {
28760
+ else r = xC((e.shadowRoot ?? e).childNodes);
28761
+ return r.length === 0 || PC(e, HTMLVideoElement) || await r.reduce((e, r) => e.then(() => uw(r, n)).then((e) => {
28757
28762
  e && t.appendChild(e);
28758
28763
  }), Promise.resolve()), t;
28759
28764
  }
28760
- function iw(e, t, n) {
28765
+ function aw(e, t, n) {
28761
28766
  let r = t.style;
28762
28767
  if (!r) return;
28763
28768
  let i = window.getComputedStyle(e);
28764
- i.cssText ? (r.cssText = i.cssText, r.transformOrigin = i.transformOrigin) : SC(n).forEach((n) => {
28769
+ i.cssText ? (r.cssText = i.cssText, r.transformOrigin = i.transformOrigin) : CC(n).forEach((n) => {
28765
28770
  let a = i.getPropertyValue(n);
28766
- n === "font-size" && a.endsWith("px") && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - .1}px`), NC(e, HTMLIFrameElement) && n === "display" && a === "inline" && (a = "block"), n === "d" && t.getAttribute("d") && (a = `path(${t.getAttribute("d")})`), r.setProperty(n, a, i.getPropertyPriority(n));
28771
+ n === "font-size" && a.endsWith("px") && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - .1}px`), PC(e, HTMLIFrameElement) && n === "display" && a === "inline" && (a = "block"), n === "d" && t.getAttribute("d") && (a = `path(${t.getAttribute("d")})`), r.setProperty(n, a, i.getPropertyPriority(n));
28767
28772
  });
28768
28773
  }
28769
- function aw(e, t) {
28770
- NC(e, HTMLTextAreaElement) && (t.innerHTML = e.value), NC(e, HTMLInputElement) && t.setAttribute("value", e.value);
28771
- }
28772
28774
  function ow(e, t) {
28773
- if (NC(e, HTMLSelectElement)) {
28775
+ PC(e, HTMLTextAreaElement) && (t.innerHTML = e.value), PC(e, HTMLInputElement) && t.setAttribute("value", e.value);
28776
+ }
28777
+ function sw(e, t) {
28778
+ if (PC(e, HTMLSelectElement)) {
28774
28779
  let n = t, r = Array.from(n.children).find((t) => e.value === t.getAttribute("value"));
28775
28780
  r && r.setAttribute("selected", "");
28776
28781
  }
28777
28782
  }
28778
- function sw(e, t, n) {
28779
- return NC(t, Element) && (iw(e, t, n), RC(e, t, n), aw(e, t), ow(e, t)), t;
28783
+ function cw(e, t, n) {
28784
+ return PC(t, Element) && (aw(e, t, n), zC(e, t, n), ow(e, t), sw(e, t)), t;
28780
28785
  }
28781
- async function cw(e, t) {
28786
+ async function lw(e, t) {
28782
28787
  let n = e.querySelectorAll ? e.querySelectorAll("use") : [];
28783
28788
  if (n.length === 0) return e;
28784
28789
  let r = {};
@@ -28786,7 +28791,7 @@ async function cw(e, t) {
28786
28791
  let a = n[i].getAttribute("xlink:href");
28787
28792
  if (a) {
28788
28793
  let n = e.querySelector(a), i = document.querySelector(a);
28789
- !n && i && !r[a] && (r[a] = await lw(i, t, !0));
28794
+ !n && i && !r[a] && (r[a] = await uw(i, t, !0));
28790
28795
  }
28791
28796
  }
28792
28797
  let i = Object.values(r);
@@ -28800,61 +28805,61 @@ async function cw(e, t) {
28800
28805
  }
28801
28806
  return e;
28802
28807
  }
28803
- async function lw(e, t, n) {
28804
- return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((e) => ew(e, t)).then((n) => rw(e, n, t)).then((n) => sw(e, n, t)).then((e) => cw(e, t));
28808
+ async function uw(e, t, n) {
28809
+ return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((e) => tw(e, t)).then((n) => iw(e, n, t)).then((n) => cw(e, n, t)).then((e) => lw(e, t));
28805
28810
  }
28806
28811
  //#endregion
28807
28812
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-resources.js
28808
- var uw = /url\((['"]?)([^'"]+?)\1\)/g, dw = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, fw = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
28809
- function pw(e) {
28813
+ var dw = /url\((['"]?)([^'"]+?)\1\)/g, fw = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, pw = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
28814
+ function mw(e) {
28810
28815
  let t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
28811
28816
  return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
28812
28817
  }
28813
- function mw(e) {
28818
+ function hw(e) {
28814
28819
  let t = [];
28815
- return e.replace(uw, (e, n, r) => (t.push(r), e)), t.filter((e) => !GC(e));
28820
+ return e.replace(dw, (e, n, r) => (t.push(r), e)), t.filter((e) => !KC(e));
28816
28821
  }
28817
- async function hw(e, t, n, r, i) {
28822
+ async function gw(e, t, n, r, i) {
28818
28823
  try {
28819
- let a = n ? vC(t, n) : t, o = UC(t), s;
28820
- return s = i ? KC(await i(a), o) : await XC(a, o, r), e.replace(pw(t), `$1${s}$3`);
28824
+ let a = n ? yC(t, n) : t, o = WC(t), s;
28825
+ return s = i ? qC(await i(a), o) : await ZC(a, o, r), e.replace(mw(t), `$1${s}$3`);
28821
28826
  } catch {}
28822
28827
  return e;
28823
28828
  }
28824
- function gw(e, { preferredFontFormat: t }) {
28825
- return t ? e.replace(fw, (e) => {
28829
+ function _w(e, { preferredFontFormat: t }) {
28830
+ return t ? e.replace(pw, (e) => {
28826
28831
  for (;;) {
28827
- let [n, , r] = dw.exec(e) || [];
28832
+ let [n, , r] = fw.exec(e) || [];
28828
28833
  if (!r) return "";
28829
28834
  if (r === t) return `src: ${n};`;
28830
28835
  }
28831
28836
  }) : e;
28832
28837
  }
28833
- function _w(e) {
28834
- return e.search(uw) !== -1;
28838
+ function vw(e) {
28839
+ return e.search(dw) !== -1;
28835
28840
  }
28836
- async function vw(e, t, n) {
28837
- if (!_w(e)) return e;
28838
- let r = gw(e, n);
28839
- return mw(r).reduce((e, r) => e.then((e) => hw(e, r, t, n)), Promise.resolve(r));
28841
+ async function yw(e, t, n) {
28842
+ if (!vw(e)) return e;
28843
+ let r = _w(e, n);
28844
+ return hw(r).reduce((e, r) => e.then((e) => gw(e, r, t, n)), Promise.resolve(r));
28840
28845
  }
28841
28846
  //#endregion
28842
28847
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-images.js
28843
- async function yw(e, t, n) {
28848
+ async function bw(e, t, n) {
28844
28849
  let r = t.style?.getPropertyValue(e);
28845
28850
  if (r) {
28846
- let i = await vw(r, null, n);
28851
+ let i = await yw(r, null, n);
28847
28852
  return t.style.setProperty(e, i, t.style.getPropertyPriority(e)), !0;
28848
28853
  }
28849
28854
  return !1;
28850
28855
  }
28851
- async function bw(e, t) {
28852
- await yw("background", e, t) || await yw("background-image", e, t), await yw("mask", e, t) || await yw("-webkit-mask", e, t) || await yw("mask-image", e, t) || await yw("-webkit-mask-image", e, t);
28853
- }
28854
28856
  async function xw(e, t) {
28855
- let n = NC(e, HTMLImageElement);
28856
- if (!(n && !GC(e.src)) && !(NC(e, SVGImageElement) && !GC(e.href.baseVal))) return;
28857
- let r = n ? e.src : e.href.baseVal, i = await XC(r, UC(r), t);
28857
+ await bw("background", e, t) || await bw("background-image", e, t), await bw("mask", e, t) || await bw("-webkit-mask", e, t) || await bw("mask-image", e, t) || await bw("-webkit-mask-image", e, t);
28858
+ }
28859
+ async function Sw(e, t) {
28860
+ let n = PC(e, HTMLImageElement);
28861
+ if (!(n && !KC(e.src)) && !(PC(e, SVGImageElement) && !KC(e.href.baseVal))) return;
28862
+ let r = n ? e.src : e.href.baseVal, i = await ZC(r, WC(r), t);
28858
28863
  await new Promise((r, a) => {
28859
28864
  e.onload = r, e.onerror = t.onImageErrorHandler ? (...e) => {
28860
28865
  try {
@@ -28867,16 +28872,16 @@ async function xw(e, t) {
28867
28872
  o.decode &&= r, o.loading === "lazy" && (o.loading = "eager"), n ? (e.srcset = "", e.src = i) : e.href.baseVal = i;
28868
28873
  });
28869
28874
  }
28870
- async function Sw(e, t) {
28871
- let n = bC(e.childNodes).map((e) => Cw(e, t));
28875
+ async function Cw(e, t) {
28876
+ let n = xC(e.childNodes).map((e) => ww(e, t));
28872
28877
  await Promise.all(n).then(() => e);
28873
28878
  }
28874
- async function Cw(e, t) {
28875
- NC(e, Element) && (await bw(e, t), await xw(e, t), await Sw(e, t));
28879
+ async function ww(e, t) {
28880
+ PC(e, Element) && (await xw(e, t), await Sw(e, t), await Cw(e, t));
28876
28881
  }
28877
28882
  //#endregion
28878
28883
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/apply-style.js
28879
- function ww(e, t) {
28884
+ function Tw(e, t) {
28880
28885
  let { style: n } = e;
28881
28886
  t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.width && (n.width = `${t.width}px`), t.height && (n.height = `${t.height}px`);
28882
28887
  let r = t.style;
@@ -28886,22 +28891,22 @@ function ww(e, t) {
28886
28891
  }
28887
28892
  //#endregion
28888
28893
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-webfonts.js
28889
- var Tw = {};
28890
- async function Ew(e) {
28891
- let t = Tw[e];
28894
+ var Ew = {};
28895
+ async function Dw(e) {
28896
+ let t = Ew[e];
28892
28897
  return t ?? (t = {
28893
28898
  url: e,
28894
28899
  cssText: await (await fetch(e)).text()
28895
- }, Tw[e] = t, t);
28900
+ }, Ew[e] = t, t);
28896
28901
  }
28897
- async function Dw(e, t) {
28902
+ async function Ow(e, t) {
28898
28903
  let n = e.cssText, r = /url\(["']?([^"')]+)["']?\)/g, i = (n.match(/url\([^)]+\)/g) || []).map(async (i) => {
28899
28904
  let a = i.replace(r, "$1");
28900
- return a.startsWith("https://") || (a = new URL(a, e.url).href), qC(a, t.fetchRequestInit, ({ result: e }) => (n = n.replace(i, `url(${e})`), [i, e]));
28905
+ return a.startsWith("https://") || (a = new URL(a, e.url).href), JC(a, t.fetchRequestInit, ({ result: e }) => (n = n.replace(i, `url(${e})`), [i, e]));
28901
28906
  });
28902
28907
  return Promise.all(i).then(() => n);
28903
28908
  }
28904
- function Ow(e) {
28909
+ function kw(e) {
28905
28910
  if (e == null) return [];
28906
28911
  let t = [], n = e.replace(/(\/\*[\s\S]*?\*\/)/gi, ""), r = /* @__PURE__ */ RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi");
28907
28912
  for (;;) {
@@ -28921,13 +28926,13 @@ function Ow(e) {
28921
28926
  }
28922
28927
  return t;
28923
28928
  }
28924
- async function kw(e, t) {
28929
+ async function Aw(e, t) {
28925
28930
  let n = [], r = [];
28926
28931
  return e.forEach((n) => {
28927
28932
  if ("cssRules" in n) try {
28928
- bC(n.cssRules || []).forEach((e, i) => {
28933
+ xC(n.cssRules || []).forEach((e, i) => {
28929
28934
  if (e.type === CSSRule.IMPORT_RULE) {
28930
- let a = i + 1, o = e.href, s = Ew(o).then((e) => Dw(e, t)).then((e) => Ow(e).forEach((e) => {
28935
+ let a = i + 1, o = e.href, s = Dw(o).then((e) => Ow(e, t)).then((e) => kw(e).forEach((e) => {
28931
28936
  try {
28932
28937
  n.insertRule(e, e.startsWith("@import") ? a += 1 : n.cssRules.length);
28933
28938
  } catch (t) {
@@ -28944,7 +28949,7 @@ async function kw(e, t) {
28944
28949
  });
28945
28950
  } catch (i) {
28946
28951
  let a = e.find((e) => e.href == null) || document.styleSheets[0];
28947
- n.href != null && r.push(Ew(n.href).then((e) => Dw(e, t)).then((e) => Ow(e).forEach((e) => {
28952
+ n.href != null && r.push(Dw(n.href).then((e) => Ow(e, t)).then((e) => kw(e).forEach((e) => {
28948
28953
  a.insertRule(e, a.cssRules.length);
28949
28954
  })).catch((e) => {
28950
28955
  console.error("Error loading remote stylesheet", e);
@@ -28952,7 +28957,7 @@ async function kw(e, t) {
28952
28957
  }
28953
28958
  }), Promise.all(r).then(() => (e.forEach((e) => {
28954
28959
  if ("cssRules" in e) try {
28955
- bC(e.cssRules || []).forEach((e) => {
28960
+ xC(e.cssRules || []).forEach((e) => {
28956
28961
  n.push(e);
28957
28962
  });
28958
28963
  } catch (t) {
@@ -28960,37 +28965,37 @@ async function kw(e, t) {
28960
28965
  }
28961
28966
  }), n));
28962
28967
  }
28963
- function Aw(e) {
28964
- return e.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => _w(e.style.getPropertyValue("src")));
28968
+ function jw(e) {
28969
+ return e.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => vw(e.style.getPropertyValue("src")));
28965
28970
  }
28966
- async function jw(e, t) {
28971
+ async function Mw(e, t) {
28967
28972
  if (e.ownerDocument == null) throw Error("Provided element is not within a Document");
28968
- return Aw(await kw(bC(e.ownerDocument.styleSheets), t));
28973
+ return jw(await Aw(xC(e.ownerDocument.styleSheets), t));
28969
28974
  }
28970
- function Mw(e) {
28975
+ function Nw(e) {
28971
28976
  return (e || "").trim().replace(/["']/g, "");
28972
28977
  }
28973
- function Nw(e) {
28978
+ function Pw(e) {
28974
28979
  let t = /* @__PURE__ */ new Set();
28975
28980
  function n(e) {
28976
28981
  let r = e.style.fontFamily || getComputedStyle(e).fontFamily;
28977
28982
  r && r.split(",").forEach((e) => {
28978
- t.add(Mw(e));
28983
+ t.add(Nw(e));
28979
28984
  }), Array.from(e.children).forEach((e) => {
28980
28985
  e instanceof HTMLElement && n(e);
28981
28986
  });
28982
28987
  }
28983
28988
  return n(e), t;
28984
28989
  }
28985
- async function Pw(e, t) {
28986
- let n = await jw(e, t), r = Nw(e);
28987
- return (await Promise.all(n.filter((e) => r.has(Mw(e.style.fontFamily))).map((e) => {
28990
+ async function Fw(e, t) {
28991
+ let n = await Mw(e, t), r = Pw(e);
28992
+ return (await Promise.all(n.filter((e) => r.has(Nw(e.style.fontFamily))).map((e) => {
28988
28993
  let n = e.parentStyleSheet ? e.parentStyleSheet.href : null;
28989
- return vw(e.cssText, n, t);
28994
+ return yw(e.cssText, n, t);
28990
28995
  }))).join("\n");
28991
28996
  }
28992
- async function Fw(e, t) {
28993
- let n = t.fontEmbedCSS == null ? t.skipFonts ? null : await Pw(e, t) : t.fontEmbedCSS, r = t.extraStyleContent == null ? n : (n || "").concat(t.extraStyleContent);
28997
+ async function Iw(e, t) {
28998
+ let n = t.fontEmbedCSS == null ? t.skipFonts ? null : await Fw(e, t) : t.fontEmbedCSS, r = t.extraStyleContent == null ? n : (n || "").concat(t.extraStyleContent);
28994
28999
  if (r) {
28995
29000
  let t = document.createElement("style"), n = document.createTextNode(r);
28996
29001
  t.appendChild(n), e.firstChild ? e.insertBefore(t, e.firstChild) : e.appendChild(t);
@@ -28998,18 +29003,18 @@ async function Fw(e, t) {
28998
29003
  }
28999
29004
  //#endregion
29000
29005
  //#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/index.js
29001
- async function Iw(e, t = {}) {
29002
- let { width: n, height: r } = EC(e, t), i = await lw(e, t, !0);
29003
- return await Fw(i, t), await Cw(i, t), ww(i, t), await MC(i, n, r);
29004
- }
29005
29006
  async function Lw(e, t = {}) {
29006
- let { width: n, height: r } = EC(e, t), i = await AC(await Iw(e, t)), a = document.createElement("canvas"), o = a.getContext("2d"), s = t.pixelRatio || DC(), c = t.canvasWidth || n, l = t.canvasHeight || r;
29007
- return a.width = c * s, a.height = l * s, t.skipAutoScale || kC(a), a.style.width = `${c}`, a.style.height = `${l}`, t.backgroundColor && (o.fillStyle = t.backgroundColor, o.fillRect(0, 0, a.width, a.height)), o.drawImage(i, 0, 0, a.width, a.height), a;
29007
+ let { width: n, height: r } = DC(e, t), i = await uw(e, t, !0);
29008
+ return await Iw(i, t), await ww(i, t), Tw(i, t), await NC(i, n, r);
29008
29009
  }
29009
29010
  async function Rw(e, t = {}) {
29010
- return (await Lw(e, t)).toDataURL();
29011
+ let { width: n, height: r } = DC(e, t), i = await jC(await Lw(e, t)), a = document.createElement("canvas"), o = a.getContext("2d"), s = t.pixelRatio || OC(), c = t.canvasWidth || n, l = t.canvasHeight || r;
29012
+ return a.width = c * s, a.height = l * s, t.skipAutoScale || AC(a), a.style.width = `${c}`, a.style.height = `${l}`, t.backgroundColor && (o.fillStyle = t.backgroundColor, o.fillRect(0, 0, a.width, a.height)), o.drawImage(i, 0, 0, a.width, a.height), a;
29013
+ }
29014
+ async function zw(e, t = {}) {
29015
+ return (await Rw(e, t)).toDataURL();
29011
29016
  }
29012
- var zw = {
29017
+ var Bw = {
29013
29018
  filter: (e) => {
29014
29019
  try {
29015
29020
  if ("classList" in e) {
@@ -29027,11 +29032,11 @@ var zw = {
29027
29032
  },
29028
29033
  includeStyleProperties: /* @__PURE__ */ "width.height.min-width.min-height.max-width.max-height.box-sizing.aspect-ratio.display.position.top.left.bottom.right.z-index.float.clear.flex.flex-direction.flex-wrap.flex-grow.flex-shrink.flex-basis.align-items.align-self.justify-content.gap.order.grid-template-columns.grid-template-rows.grid-column.grid-row.row-gap.column-gap.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.font.font-family.font-size.font-weight.font-style.line-height.letter-spacing.word-spacing.text-align.text-decoration.text-transform.text-indent.text-shadow.white-space.text-wrap.word-break.text-overflow.vertical-align.color.background.background-color.background-image.background-size.background-position.background-repeat.background-clip.border.border-width.border-style.border-color.border-top.border-right.border-bottom.border-left.border-radius.outline.box-shadow.text-shadow.opacity.filter.backdrop-filter.mix-blend-mode.transform.clip-path.overflow.overflow-x.overflow-y.visibility.fill.stroke.stroke-width.object-fit.object-position.list-style.list-style-type.border-collapse.border-spacing.content.cursor".split(".")
29029
29034
  };
29030
- async function Bw(e, t) {
29031
- return Rw(e, {
29032
- ...zw,
29035
+ async function Vw(e, t) {
29036
+ return zw(e, {
29037
+ ...Bw,
29033
29038
  ...t
29034
29039
  });
29035
29040
  }
29036
29041
  //#endregion
29037
- export { H_ as $, aS as A, Ji as At, jx as B, Ur as Bt, gS as C, Va as Ct, wS as D, Ta as Dt, SS as E, da as Et, lS as F, ei as Ft, _y as G, Pr as Gt, Nb as H, Br as Ht, Zx as I, Zr as It, vy as J, Tr as Jt, by as K, Nr as Kt, Lx as L, Xr as Lt, cS as M, si as Mt, nS as N, ai as Nt, ES as O, Fi as Ot, tS as P, ri as Pt, U_ as Q, Nx as R, qr as Rt, mS as S, Do as St, bS as T, ja as Tt, Eb as U, zr as Ut, jb as V, Vr as Vt, Ty as W, Lr as Wt, ry as X, ny as Y, wr as Yt, Jv as Z, DS as _, Uo as _t, rC as a, Th as at, kS as b, Po as bt, QS as c, ch as ct, GS as d, nh as dt, O_ as et, VS as f, Rm as ft, RS as g, Ho as gt, LS as h, rs as ht, iC as i, kh as it, iS as j, Qi as jt, eS as k, ea as kt, WS as l, th as lt, BS as m, us as mt, _C as n, i_ as nt, nC as o, Dh as ot, HS as p, fs as pt, Sy as q, jr as qt, hC as r, Oh as rt, tC as s, Eh as st, Bw as t, a_ as tt, KS as u, Zm as ut, AS as v, Bo as vt, vS as w, Ma as wt, fS as x, Ao as xt, OS as y, Io as yt, Px as z, Kr as zt };
29042
+ export { U_ as $, aS as A, ea as At, jx as B, Kr as Bt, gS as C, Do as Ct, wS as D, da as Dt, SS as E, ja as Et, lS as F, ri as Ft, _y as G, Lr as Gt, Nb as H, Vr as Ht, Zx as I, ei as It, vy as J, jr as Jt, by as K, Pr as Kt, Lx as L, Zr as Lt, cS as M, Qi as Mt, nS as N, si as Nt, ES as O, Ta as Ot, tS as P, ai as Pt, Bv as Q, Nx as R, Xr as Rt, mS as S, Ao as St, bS as T, Ma as Tt, Eb as U, Br as Ut, jb as V, Ur as Vt, Ty as W, zr as Wt, ry as X, Tr as Xt, ny as Y, Er as Yt, Jv as Z, DS as _, Ho as _t, rC as a, kh as at, kS as b, Io as bt, QS as c, Eh as ct, GS as d, Zm as dt, H_ as et, VS as f, nh as ft, RS as g, rs as gt, LS as h, us as ht, iC as i, Oh as it, iS as j, Ji as jt, eS as k, Fi as kt, WS as l, ch as lt, BS as m, fs as mt, vC as n, a_ as nt, nC as o, Th as ot, HS as p, Rm as pt, Sy as q, Nr as qt, gC as r, i_ as rt, tC as s, Dh as st, Vw as t, O_ as tt, KS as u, th as ut, AS as v, Uo as vt, vS as w, Va as wt, fS as x, Po as xt, OS as y, Bo as yt, Px as z, qr as zt };